Skip to content

Commit 1028530

Browse files
authored
refactor: running prettier (#5454)
* refactor: running prettier * Update _variables.scss
1 parent 0d039a8 commit 1028530

File tree

35 files changed

+336
-339
lines changed

35 files changed

+336
-339
lines changed

.changeset/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,8 @@ We handle pre-releases without changesets.
110110
Instead, create a new [GitHub release](https://github.com/db-ux-design-system/core-web/releases/new)
111111
with a tag like `1.2.3-next0` and the CI will pick it up and publish it to npm with the tag `next`.
112112

113-
114113
---
115114

116-
117115
## 🔑 Cheatsheet
118116

119117
```bash

.config/.lintstagedrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ export default {
1515
'**/package.json': [
1616
() => 'npm install --package-lock-only --ignore-scripts',
1717
'npx npm-package-json-lint'
18-
],
18+
]
1919
};

.github/actions/auto-commit/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ runs:
6666
BASE_BRANCH: ${{ github.head_ref }}
6767
run: |
6868
PR_BODY="This PR was created automatically by a GitHub Action.
69-
69+
7070
Target PR (this PR will be merged into): <https://github.com/${{ github.repository }}/pull/${{ github.event.pull_request.number }}>"
71-
71+
7272
# Create the PR and capture its URL
7373
gh pr create --base "$BASE_BRANCH" --head "$NEW_PR_BRANCH" --title "Automated PR: $COMMIT_MESSAGE" --body "$PR_BODY"
7474

.npmpackagejsonlintrc.json

Lines changed: 37 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,38 @@
11
{
2-
"rules": {
3-
"require-name": "error",
4-
"require-version": "error",
5-
"require-description": "error",
6-
"require-license": "error",
7-
"require-repository": "error",
8-
"valid-values-license": ["error", ["Apache-2.0"]],
9-
"require-files": "warning",
10-
"no-duplicate-properties": "error",
11-
"prefer-absolute-version-devDependencies": "off",
12-
"prefer-property-order": ["warning", [
13-
"name",
14-
"version",
15-
"type",
16-
"description",
17-
"repository",
18-
"homepage",
19-
"bugs",
20-
"author",
21-
"license",
22-
"private",
23-
"main",
24-
"types",
25-
"module",
26-
"exports",
27-
"files",
28-
"scripts",
29-
"dependencies",
30-
"devDependencies",
31-
"peerDependencies",
32-
"publishConfig"
33-
]]
34-
}
35-
}
2+
"rules": {
3+
"require-name": "error",
4+
"require-version": "error",
5+
"require-description": "error",
6+
"require-license": "error",
7+
"require-repository": "error",
8+
"valid-values-license": ["error", ["Apache-2.0"]],
9+
"require-files": "warning",
10+
"no-duplicate-properties": "error",
11+
"prefer-absolute-version-devDependencies": "off",
12+
"prefer-property-order": [
13+
"warning",
14+
[
15+
"name",
16+
"version",
17+
"type",
18+
"description",
19+
"repository",
20+
"homepage",
21+
"bugs",
22+
"author",
23+
"license",
24+
"private",
25+
"main",
26+
"types",
27+
"module",
28+
"exports",
29+
"files",
30+
"scripts",
31+
"dependencies",
32+
"devDependencies",
33+
"peerDependencies",
34+
"publishConfig"
35+
]
36+
]
37+
}
38+
}

packages/agent-cli/CHANGELOG.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
_version bump_
66

7-
87
## 4.1.0
98

109
_version bump_
@@ -24,7 +23,7 @@ _version bump_
2423
### Patch Changes
2524

2625
- chore: update instructions files for better copilot outputs - [see commit e4bc905](https://github.com/db-ux-design-system/core-web/commit/e4bc90508479387371d816d5776f9f568aa5fb82):
27-
- fix: add some missing variables
26+
- fix: add some missing variables
2827

2928
## 4.0.1
3029

@@ -47,4 +46,4 @@ _version bump_
4746
### Patch Changes
4847

4948
- enabled [`@db-ux/agent-cli`](https://www.npmjs.com/package/@db-ux/agent-cli) for every package - [see commit 0233048](https://github.com/db-ux-design-system/core-web/commit/023304869e61f5a506dca66a22d69e5f3d70f4d0):
50-
- auto-generate/auto-update `.github/copilot-instructions.md`, to ensure GitHub Copilot uses DB UX Components for code generation
49+
- auto-generate/auto-update `.github/copilot-instructions.md`, to ensure GitHub Copilot uses DB UX Components for code generation

packages/components/CHANGELOG.md

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,21 @@
44

55
_version bump_
66

7-
87
## 4.1.0
98

109
### Minor Changes
1110

1211
- refactor(notification): update and simplify grid layout for block link variant - [see commit cb83f96](https://github.com/db-ux-design-system/core-web/commit/cb83f966eaf29c85b4cf0079750bdd563f216d6e)
1312

1413
- fix(DBCustomSelect): properly announce selected options - [see commit 773edeb](https://github.com/db-ux-design-system/core-web/commit/773edeb943a085eb79e1c8d59059137b2830fbf0):
15-
- feat(DBCustomSelect): introduce new property `selectedPrefix`
14+
- feat(DBCustomSelect): introduce new property `selectedPrefix`
1615

1716
### Patch Changes
1817

1918
- fix(DBCustomSelect): automatically handle form reset events - [see commit 6af5246](https://github.com/db-ux-design-system/core-web/commit/6af5246b3b2e6febdc6ff6342ba1a8eb10184d14):
20-
- An event listener is now added for every form component (input, custom-select, etc.) when a `form` property is passed.
21-
- This listener detects form resets and updates the component's internal value/checked state accordingly.
22-
- > **Note**: This does not work for `ngModel` in Angular.
19+
- An event listener is now added for every form component (input, custom-select, etc.) when a `form` property is passed.
20+
- This listener detects form resets and updates the component's internal value/checked state accordingly.
21+
- > **Note**: This does not work for `ngModel` in Angular.
2322
2423
- fix(button): Replace fixed height with min-height for buttons to allow dynamic height adjustment when text wraps - [see commit d1fd2c4](https://github.com/db-ux-design-system/core-web/commit/d1fd2c4e58a5ed6f75fab44700cd2d93c7232474)
2524

@@ -42,7 +41,7 @@ _version bump_
4241
### Patch Changes
4342

4443
- chore: update instructions files for better copilot outputs - [see commit e4bc905](https://github.com/db-ux-design-system/core-web/commit/e4bc90508479387371d816d5776f9f568aa5fb82):
45-
- fix: add some missing variables
44+
- fix: add some missing variables
4645

4746
- fix(card): Remove the obsolete but harmful declaration regarding wrapping button and link styles. - [see commit 34c78df](https://github.com/db-ux-design-system/core-web/commit/34c78dffd4f43b0ac740574358b426a562e05cd0)
4847

@@ -57,9 +56,9 @@ _version bump_
5756
### Major Changes
5857

5958
- feat: Switch stable rework - [see commit cb2deb0](https://github.com/db-ux-design-system/core-web/commit/cb2deb0f1c54900d1967483aea05d81279c02f59):
60-
- **BREAKING CHANGE**: remove `emphasis` property
61-
- introduce validation (invalid and valid)
62-
- configurable label position
59+
- **BREAKING CHANGE**: remove `emphasis` property
60+
- introduce validation (invalid and valid)
61+
- configurable label position
6362

6463
- **BREAKING CHANGE**: refactor(Custom Select): renamed `ariaListLabel` property to `listLabel` - [see commit 966d5ad](https://github.com/db-ux-design-system/core-web/commit/966d5ad01f00d0ca1707cc316a63e2d431fff1e9)
6564

@@ -78,30 +77,30 @@ _version bump_
7877
### Patch Changes
7978

8079
- fix(DBTabs): ensure navigation arrows appear correctly on window resize - [see commit 4e65e00](https://github.com/db-ux-design-system/core-web/commit/4e65e00d280cae18baee03b5a7a9b13eec063835):
81-
- This update resolves an issue where navigation arrows in DBTabs would not appear or update correctly when the window was resized. The component now properly responds to resize events, ensuring arrows are always shown or hidden as needed.
80+
- This update resolves an issue where navigation arrows in DBTabs would not appear or update correctly when the window was resized. The component now properly responds to resize events, ensuring arrows are always shown or hidden as needed.
8281

8382
- fix(select): jumping placeholder for label above - [see commit 7ed8d22](https://github.com/db-ux-design-system/core-web/commit/7ed8d2225102e0e9044437e95917e11eef4bc73f)
8483

8584
- enabled [`@db-ux/agent-cli`](https://www.npmjs.com/package/@db-ux/agent-cli) for every package - [see commit 0233048](https://github.com/db-ux-design-system/core-web/commit/023304869e61f5a506dca66a22d69e5f3d70f4d0):
86-
- auto-generate/auto-update `.github/copilot-instructions.md`, to ensure GitHub Copilot uses DB UX Components for code generation
85+
- auto-generate/auto-update `.github/copilot-instructions.md`, to ensure GitHub Copilot uses DB UX Components for code generation
8786

8887
## 3.1.17
8988

9089
### Patch Changes
9190

9291
- fix: color mode for textarea resizer control set by color-mode-switch documentation UI component - [see commit 354e270](https://github.com/db-ux-design-system/core-web/commit/354e27029a4378288a97ed5e31b75c11758f0c01)
9392
- refactor: enabling `hidden` HTML attribute in every context in which we need to set overwriting styling declarations (`display`) - [see commit 4826455](https://github.com/db-ux-design-system/core-web/commit/4826455637590b6ae780afb93abb9effe9380342)
94-
- @db-ux/core-foundations@3.1.17
93+
- @db-ux/core-foundations@3.1.17
9594

9695
## 3.1.16
9796

9897
### Patch Changes
9998

10099
- a28eb71: fix(custom-select): keyboard navigation for option groups in single-select mode - [see commit 6d60bab](https://github.com/db-ux-design-system/core-web/commit/6d60bab2eb87f16a9ffa942085bffd658564769c):
101-
- Fixes a keyboard accessibility issue where users could not navigate to options in subsequent option groups using arrow keys in single-select mode.
102-
- Now, all options are accessible via keyboard regardless of group boundaries.
100+
- Fixes a keyboard accessibility issue where users could not navigate to options in subsequent option groups using arrow keys in single-select mode.
101+
- Now, all options are accessible via keyboard regardless of group boundaries.
103102
- fix: JS framework core-components packages are missing `@db-ux` dependencies - [see commit 49df866](https://github.com/db-ux-design-system/core-web/commit/49df866e753a9459f5acdca4ad1e19141b477471)
104-
- @db-ux/core-foundations@3.1.16
103+
- @db-ux/core-foundations@3.1.16
105104

106105
## 3.1.15
107106

@@ -110,4 +109,4 @@ _version bump_
110109
- 262964b: fix(Switch): double event firing with Angular signals
111110
- 262964b: fix(CustomSelect): tags remaining visible when form values are reset
112111
- 262964b: fix(CustomSelect): custom removeTagsTexts are not applied correctly
113-
- @db-ux/core-foundations@3.1.15
112+
- @db-ux/core-foundations@3.1.15

packages/components/src/components/notification/notification-grid-non-overlay.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
@use "notification-grid-shared" as shared;
22

3-
43
// Wrapper mixins for non-overlay variants that use shared grid logic
54
@mixin non-overlay-base-grid($areas, $columns) {
65
@include shared.shared-base-grid($areas, $columns);

packages/foundations/CHANGELOG.md

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
_version bump_
66

7-
87
## 4.1.0
98

109
_version bump_
@@ -22,28 +21,28 @@ _version bump_
2221
### Patch Changes
2322

2423
- chore: update instructions files for better copilot outputs - [see commit e4bc905](https://github.com/db-ux-design-system/core-web/commit/e4bc90508479387371d816d5776f9f568aa5fb82):
25-
- fix: add some missing variables
24+
- fix: add some missing variables
2625

2726
- fix(tailwind): add individual color theme files for all color variants - [see commit e8d58bd](https://github.com/db-ux-design-system/core-web/commit/e8d58bde01039a3d233105c2c72efa71c619c4b4):
28-
- Create separate CSS files for each color
29-
- Move colors.css to colors/ subdirectory with adaptive theme
30-
- Add colors/index.css that imports all color variants
31-
- Update theme/index.css to import from colors/index.css
32-
- burgundy
33-
- critical
34-
- cyan
35-
- green
36-
- informational
37-
- light-green
38-
- neutral
39-
- orange
40-
- pink
41-
- red
42-
- successful
43-
- turquoise
44-
- violet
45-
- warning
46-
- yellow
27+
- Create separate CSS files for each color
28+
- Move colors.css to colors/ subdirectory with adaptive theme
29+
- Add colors/index.css that imports all color variants
30+
- Update theme/index.css to import from colors/index.css
31+
- burgundy
32+
- critical
33+
- cyan
34+
- green
35+
- informational
36+
- light-green
37+
- neutral
38+
- orange
39+
- pink
40+
- red
41+
- successful
42+
- turquoise
43+
- violet
44+
- warning
45+
- yellow
4746

4847
## 4.0.1
4948

@@ -70,7 +69,7 @@ _version bump_
7069
### Patch Changes
7170

7271
- enabled [`@db-ux/agent-cli`](https://www.npmjs.com/package/@db-ux/agent-cli) for every package - [see commit 0233048](https://github.com/db-ux-design-system/core-web/commit/023304869e61f5a506dca66a22d69e5f3d70f4d0):
73-
- auto-generate/auto-update `.github/copilot-instructions.md`, to ensure GitHub Copilot uses DB UX Components for code generation
72+
- auto-generate/auto-update `.github/copilot-instructions.md`, to ensure GitHub Copilot uses DB UX Components for code generation
7473

7574
## 3.1.17
7675

packages/foundations/assets/fonts/generate-eu-fonts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const generateFonts = async () => {
2727
try {
2828
const files = await glob(`${__dirname}/*.ttf`);
2929

30-
for (const file of files.map(f=> f.replaceAll('\\', '/'))) {
30+
for (const file of files.map((f) => f.replaceAll('\\', '/'))) {
3131
// Security: Validate that the file is within the expected directory
3232
// and has the expected extension to prevent path traversal attacks
3333
if (!file.startsWith(__dirname) || !file.endsWith('.ttf')) {

packages/foundations/scss/icons/relative.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@
6060

6161
/* pre-load icon fallback font */
6262
html::after {
63-
content: "";
64-
position: absolute;
65-
z-index: -1;
66-
font-family: icon-font-fallback,sans-serif;
63+
content: "";
64+
position: absolute;
65+
z-index: -1;
66+
font-family: icon-font-fallback, sans-serif;
6767
}

0 commit comments

Comments
 (0)