@skf-design-system/ui-components 1.0.2-beta.3 → 1.0.2-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/dist/components/alert/alert.component.d.ts +5 -1
  2. package/dist/components/alert/alert.component.js +57 -54
  3. package/dist/components/alert/alert.styles.js +51 -47
  4. package/dist/components/breadcrumb/breadcrumb-item.component.js +24 -25
  5. package/dist/components/breadcrumb/breadcrumb-item.styles.js +16 -15
  6. package/dist/components/breadcrumb/breadcrumb.component.d.ts +5 -2
  7. package/dist/components/breadcrumb/breadcrumb.component.js +51 -46
  8. package/dist/components/breadcrumb/breadcrumb.styles.js +13 -10
  9. package/dist/components/button/button.component.js +39 -39
  10. package/dist/components/button/button.styles.js +2 -1
  11. package/dist/components/card/card.component.d.ts +5 -0
  12. package/dist/components/card/card.component.js +46 -24
  13. package/dist/components/card/card.styles.js +5 -4
  14. package/dist/components/heading/heading.component.d.ts +5 -1
  15. package/dist/components/heading/heading.component.js +46 -33
  16. package/dist/components/heading/heading.styles.js +34 -36
  17. package/dist/components/icon/icon.component.d.ts +4 -0
  18. package/dist/components/icon/icon.component.js +52 -43
  19. package/dist/components/icon/icon.styles.js +60 -60
  20. package/dist/components/logo/logo.component.d.ts +4 -1
  21. package/dist/components/logo/logo.component.js +55 -51
  22. package/dist/components/logo/logo.styles.js +26 -16
  23. package/dist/components/select/select-option.component.js +8 -8
  24. package/dist/components/select/select.component.js +1 -2
  25. package/dist/components/tag/tag.component.d.ts +6 -1
  26. package/dist/components/tag/tag.component.js +66 -45
  27. package/dist/components/tag/tag.styles.js +6 -6
  28. package/dist/custom-elements.json +173 -33
  29. package/dist/internal/helpers/stateMap.d.ts +14 -0
  30. package/dist/internal/helpers/stateMap.js +68 -0
  31. package/dist/internal/helpers/watch.d.ts +1 -1
  32. package/dist/internal/helpers/watch.js +12 -12
  33. package/dist/styles/component.styles.js +37 -36
  34. package/dist/styles/global.css +1 -1
  35. package/dist/types/jsx/custom-element-jsx.d.ts +8 -5
  36. package/dist/types/vue/index.d.ts +8 -5
  37. package/dist/vscode.html-custom-data.json +6 -6
  38. package/dist/web-types.json +12 -10
  39. package/package.json +7 -7
@@ -1,7 +1,7 @@
1
1
  import type { SkfIcon } from "../../components/icon/icon.component.js";
2
2
  import type { SkfAccordionItem, CustomEvent } from "../../components/accordion-item/accordion-item.component.js";
3
3
  import type { SkfAccordion } from "../../components/accordion/accordion.component.js";
4
- import type { SkfAlert } from "../../components/alert/alert.component.js";
4
+ import type { SkfAlert, CustomEvent } from "../../components/alert/alert.component.js";
5
5
  import type { SkfBreadcrumbItem } from "../../components/breadcrumb-item/breadcrumb-item.component.js";
6
6
  import type { SkfBreadcrumb } from "../../components/breadcrumb/breadcrumb.component.js";
7
7
  import type { SkfLoader } from "../../components/loader/loader.component.js";
@@ -162,7 +162,7 @@ export type SkfAlertProps = {
162
162
  severity?: SkfAlert["severity"];
163
163
 
164
164
  /** Fires when the close button is clicked */
165
- "onskf-alert-close"?: (e: CustomEvent<never>) => void;
165
+ "onskf-alert-close"?: (e: CustomEvent<CustomEvent>) => void;
166
166
  };
167
167
 
168
168
  export type SkfBreadcrumbItemProps = {
@@ -175,8 +175,8 @@ export type SkfBreadcrumbItemProps = {
175
175
  export type SkfBreadcrumbProps = {
176
176
  /** aria-label for the breadcrumb control */
177
177
  label?: SkfBreadcrumb["label"];
178
- /** Displays an alternative size */
179
- size?: SkfBreadcrumb["size"];
178
+ /** If true, renders a smaller version */
179
+ small?: SkfBreadcrumb["small"];
180
180
 
181
181
  /** Fired when the item is clicked */
182
182
  onclick?: (e: CustomEvent<never>) => void;
@@ -1004,6 +1004,9 @@ export type CustomElements = {
1004
1004
  *
1005
1005
  * ### **Slots:**
1006
1006
  * - _default_ - The card's main content
1007
+ *
1008
+ * ### **CSS Properties:**
1009
+ * - **--mod-card-bg-color** - Ability to set a custom background color _(default: undefined)_
1007
1010
  */
1008
1011
  "skf-card": Partial<SkfCardProps & BaseProps & BaseEvents>;
1009
1012
 
@@ -1104,7 +1107,7 @@ export type CustomElements = {
1104
1107
  *
1105
1108
  *
1106
1109
  * ### **CSS Properties:**
1107
- * - **--skf-logo-height** - The height of the logo _(default: undefined)_
1110
+ * - **--mod-logo-height** - The height of the logo _(default: undefined)_
1108
1111
  */
1109
1112
  "skf-logo": Partial<SkfLogoProps & BaseProps & BaseEvents>;
1110
1113
 
@@ -3,7 +3,7 @@ import type { DefineComponent } from "vue";
3
3
  import type { SkfIcon } from "../../components/icon/icon.component.js";
4
4
  import type { SkfAccordionItem, CustomEvent } from "../../components/accordion-item/accordion-item.component.js";
5
5
  import type { SkfAccordion } from "../../components/accordion/accordion.component.js";
6
- import type { SkfAlert } from "../../components/alert/alert.component.js";
6
+ import type { SkfAlert, CustomEvent } from "../../components/alert/alert.component.js";
7
7
  import type { SkfBreadcrumbItem } from "../../components/breadcrumb-item/breadcrumb-item.component.js";
8
8
  import type { SkfBreadcrumb } from "../../components/breadcrumb/breadcrumb.component.js";
9
9
  import type { SkfLoader } from "../../components/loader/loader.component.js";
@@ -102,7 +102,7 @@ type SkfAlertProps = {
102
102
  severity?: SkfAlert["severity"];
103
103
 
104
104
  /** Fires when the close button is clicked */
105
- "onskf-alert-close"?: (e: CustomEvent<never>) => void;
105
+ "onskf-alert-close"?: (e: CustomEvent<CustomEvent>) => void;
106
106
  };
107
107
 
108
108
  type SkfBreadcrumbItemProps = {
@@ -115,8 +115,8 @@ type SkfBreadcrumbItemProps = {
115
115
  type SkfBreadcrumbProps = {
116
116
  /** aria-label for the breadcrumb control */
117
117
  label?: SkfBreadcrumb["label"];
118
- /** Displays an alternative size */
119
- size?: SkfBreadcrumb["size"];
118
+ /** If true, renders a smaller version */
119
+ small?: SkfBreadcrumb["small"];
120
120
 
121
121
  /** Fired when the item is clicked */
122
122
  onclick?: (e: CustomEvent<never>) => void;
@@ -944,6 +944,9 @@ export type CustomElements = {
944
944
  *
945
945
  * ### **Slots:**
946
946
  * - _default_ - The card's main content
947
+ *
948
+ * ### **CSS Properties:**
949
+ * - **--mod-card-bg-color** - Ability to set a custom background color _(default: undefined)_
947
950
  */
948
951
  "skf-card": DefineComponent<SkfCardProps>;
949
952
 
@@ -1044,7 +1047,7 @@ export type CustomElements = {
1044
1047
  *
1045
1048
  *
1046
1049
  * ### **CSS Properties:**
1047
- * - **--skf-logo-height** - The height of the logo _(default: undefined)_
1050
+ * - **--mod-logo-height** - The height of the logo _(default: undefined)_
1048
1051
  */
1049
1052
  "skf-logo": DefineComponent<SkfLogoProps>;
1050
1053
 
@@ -152,9 +152,9 @@
152
152
  "values": []
153
153
  },
154
154
  {
155
- "name": "size",
156
- "description": "Displays an alternative size",
157
- "values": [{ "name": "md" }, { "name": "sm" }]
155
+ "name": "small",
156
+ "description": "If true, renders a smaller version",
157
+ "values": []
158
158
  }
159
159
  ],
160
160
  "references": []
@@ -240,7 +240,7 @@
240
240
  },
241
241
  {
242
242
  "name": "skf-card",
243
- "description": "The `<skf-card>` can be used to group related subjects in a container\n\nSee [zeroheight](https://zeroheight.com/853e936c9/p/021eed-card) for design principles\n---\n\n\n### **Slots:**\n - _default_ - The card's main content",
243
+ "description": "The `<skf-card>` can be used to group related subjects in a container\n\nSee [zeroheight](https://zeroheight.com/853e936c9/p/021eed-card) for design principles\n---\n\n\n### **Slots:**\n - _default_ - The card's main content\n\n### **CSS Properties:**\n - **--mod-card-bg-color** - Ability to set a custom background color _(default: undefined)_",
244
244
  "attributes": [
245
245
  {
246
246
  "name": "no-border",
@@ -566,7 +566,7 @@
566
566
  },
567
567
  {
568
568
  "name": "skf-logo",
569
- "description": "The `<skf-logo>` component is used to display the SKF logo.\n---\n\n\n### **CSS Properties:**\n - **--skf-logo-height** - The height of the logo _(default: undefined)_",
569
+ "description": "The `<skf-logo>` component is used to display the SKF logo.\n---\n\n\n### **CSS Properties:**\n - **--mod-logo-height** - The height of the logo _(default: undefined)_",
570
570
  "attributes": [
571
571
  {
572
572
  "name": "title",
@@ -1133,7 +1133,7 @@
1133
1133
  {
1134
1134
  "name": "size",
1135
1135
  "description": "Specifies Tag size",
1136
- "values": [{ "name": "sm" }, { "name": "md" }]
1136
+ "values": [{ "name": "Size" }]
1137
1137
  },
1138
1138
  {
1139
1139
  "name": "icon",
@@ -266,6 +266,7 @@
266
266
  "events": [
267
267
  {
268
268
  "name": "skf-alert-close",
269
+ "type": "CustomEvent",
269
270
  "description": "Fires when the close button is clicked"
270
271
  }
271
272
  ],
@@ -295,6 +296,7 @@
295
296
  "events": [
296
297
  {
297
298
  "name": "skf-alert-close",
299
+ "type": "CustomEvent",
298
300
  "description": "Fires when the close button is clicked"
299
301
  }
300
302
  ]
@@ -341,9 +343,9 @@
341
343
  "value": { "type": "string", "default": "'Breadcrumb'" }
342
344
  },
343
345
  {
344
- "name": "size",
345
- "description": "Displays an alternative size",
346
- "value": { "type": "'md' | 'sm'", "default": "'md'" }
346
+ "name": "small",
347
+ "description": "If true, renders a smaller version",
348
+ "value": { "type": "boolean", "default": "false" }
347
349
  }
348
350
  ],
349
351
  "slots": [
@@ -360,9 +362,9 @@
360
362
  "type": "string"
361
363
  },
362
364
  {
363
- "name": "size",
364
- "description": "Displays an alternative size",
365
- "type": "'md' | 'sm'"
365
+ "name": "small",
366
+ "description": "If true, renders a smaller version",
367
+ "type": "boolean"
366
368
  }
367
369
  ],
368
370
  "events": [
@@ -545,7 +547,7 @@
545
547
  },
546
548
  {
547
549
  "name": "skf-card",
548
- "description": "The `<skf-card>` can be used to group related subjects in a container\n\nSee [zeroheight](https://zeroheight.com/853e936c9/p/021eed-card) for design principles\n---\n\n\n### **Slots:**\n - _default_ - The card's main content",
550
+ "description": "The `<skf-card>` can be used to group related subjects in a container\n\nSee [zeroheight](https://zeroheight.com/853e936c9/p/021eed-card) for design principles\n---\n\n\n### **Slots:**\n - _default_ - The card's main content\n\n### **CSS Properties:**\n - **--mod-card-bg-color** - Ability to set a custom background color _(default: undefined)_",
549
551
  "doc-url": "",
550
552
  "attributes": [
551
553
  {
@@ -1279,7 +1281,7 @@
1279
1281
  },
1280
1282
  {
1281
1283
  "name": "skf-logo",
1282
- "description": "The `<skf-logo>` component is used to display the SKF logo.\n---\n\n\n### **CSS Properties:**\n - **--skf-logo-height** - The height of the logo _(default: undefined)_",
1284
+ "description": "The `<skf-logo>` component is used to display the SKF logo.\n---\n\n\n### **CSS Properties:**\n - **--mod-logo-height** - The height of the logo _(default: undefined)_",
1283
1285
  "doc-url": "",
1284
1286
  "attributes": [
1285
1287
  {
@@ -2434,7 +2436,7 @@
2434
2436
  {
2435
2437
  "name": "size",
2436
2438
  "description": "Specifies Tag size",
2437
- "value": { "type": "'sm' | 'md'", "default": "'md'" }
2439
+ "value": { "type": "Size", "default": "'md'" }
2438
2440
  },
2439
2441
  {
2440
2442
  "name": "icon",
@@ -2461,7 +2463,7 @@
2461
2463
  {
2462
2464
  "name": "size",
2463
2465
  "description": "Specifies Tag size",
2464
- "type": "'sm' | 'md'"
2466
+ "type": "Size"
2465
2467
  },
2466
2468
  {
2467
2469
  "name": "icon",
package/package.json CHANGED
@@ -34,7 +34,7 @@
34
34
  "sideEffects": true,
35
35
  "type": "module",
36
36
  "types": "./dist/index.d.ts",
37
- "version": "1.0.2-beta.3",
37
+ "version": "1.0.2-beta.4",
38
38
  "dependencies": {
39
39
  "@floating-ui/dom": "^1.6.13",
40
40
  "@js-temporal/polyfill": "^0.5.1"
@@ -56,7 +56,7 @@
56
56
  "@storybook/theming": "^8.6.12",
57
57
  "@storybook/web-components": "^8.6.12",
58
58
  "@storybook/web-components-vite": "^8.6.12",
59
- "@types/node": "^22.14.0",
59
+ "@types/node": "^22.14.1",
60
60
  "@wc-toolkit/module-path-resolver": "^1.0.0",
61
61
  "@wc-toolkit/storybook-helpers": "^1.1.2",
62
62
  "@wc-toolkit/type-parser": "^1.0.3",
@@ -70,8 +70,8 @@
70
70
  "eslint-plugin-lit-a11y": "^4.1.4",
71
71
  "eslint-plugin-wc": "^3.0.0",
72
72
  "husky": "^9.1.7",
73
- "lint-staged": "^15.5.0",
74
- "lit": "^3.2.1",
73
+ "lint-staged": "^15.5.1",
74
+ "lit": "^3.3.0",
75
75
  "postcss-styled-syntax": "^0.7.1",
76
76
  "prettier": "3.5.3",
77
77
  "storybook": "^8.6.12",
@@ -80,10 +80,10 @@
80
80
  "stylelint-no-unsupported-browser-features": "^8.0.4",
81
81
  "stylelint-order": "^6.0.4",
82
82
  "stylelint-value-no-unknown-custom-properties": "^6.0.1",
83
- "tsc-alias": "^1.8.13",
83
+ "tsc-alias": "^1.8.15",
84
84
  "typescript": "^5.8.3",
85
- "typescript-eslint": "^8.29.0",
86
- "vite": "^6.2.5",
85
+ "typescript-eslint": "^8.30.1",
86
+ "vite": "^6.3.0",
87
87
  "vite-tsconfig-paths": "^5.1.4"
88
88
  },
89
89
  "peerDependencies": {