@skf-design-system/ui-components 1.0.2-beta.0 → 1.0.2-beta.1

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 (181) hide show
  1. package/README.md +12 -8
  2. package/dist/components/accordion/accordion-item.component.d.ts +36 -0
  3. package/dist/components/accordion/accordion-item.component.js +87 -0
  4. package/dist/components/accordion/accordion-item.d.ts +3 -3
  5. package/dist/components/accordion/accordion-item.js +4 -5
  6. package/dist/components/accordion/accordion-item.styles.js +77 -0
  7. package/dist/components/accordion/accordion.component.d.ts +5 -9
  8. package/dist/components/accordion/accordion.component.js +4 -5
  9. package/dist/components/accordion/accordion.d.ts +0 -1
  10. package/dist/components/accordion/accordion.js +0 -2
  11. package/dist/components/alert/alert.component.d.ts +4 -7
  12. package/dist/components/alert/alert.component.js +8 -9
  13. package/dist/components/alert/alert.styles.js +0 -5
  14. package/dist/components/breadcrumb/breadcrumb-item.component.js +61 -0
  15. package/dist/components/breadcrumb/breadcrumb-item.js +6 -0
  16. package/dist/components/breadcrumb/breadcrumb-item.styles.js +62 -0
  17. package/dist/components/breadcrumb/breadcrumb.component.d.ts +1 -1
  18. package/dist/components/breadcrumb/breadcrumb.component.js +60 -0
  19. package/dist/components/breadcrumb/breadcrumb.js +6 -0
  20. package/dist/components/breadcrumb/breadcrumb.styles.js +22 -0
  21. package/dist/components/button/button.component.d.ts +13 -10
  22. package/dist/components/button/button.component.js +83 -76
  23. package/dist/components/button/button.styles.d.ts +1 -2
  24. package/dist/components/button/button.styles.js +1 -1
  25. package/dist/components/card/card.component.d.ts +1 -1
  26. package/dist/components/card/card.component.js +1 -1
  27. package/dist/components/checkbox/checkbox.component.d.ts +8 -6
  28. package/dist/components/checkbox/checkbox.component.js +2 -2
  29. package/dist/components/checkbox/checkbox.styles.d.ts +1 -2
  30. package/dist/components/checkbox/checkbox.styles.js +1 -5
  31. package/dist/components/date-picker/datepicker.calendar.component.js +1 -1
  32. package/dist/components/date-picker/datepicker.component.js +1 -1
  33. package/dist/components/date-picker-input/datepicker-input.component.d.ts +1 -0
  34. package/dist/components/date-picker-input/datepicker-input.component.js +3 -2
  35. package/dist/components/dialog/dialog.component.d.ts +5 -4
  36. package/dist/components/dialog/dialog.component.js +44 -44
  37. package/dist/components/dialog/dialog.styles.js +4 -4
  38. package/dist/components/divider/divider.component.js +1 -1
  39. package/dist/components/drawer/drawer.component.d.ts +12 -8
  40. package/dist/components/drawer/drawer.component.js +5 -4
  41. package/dist/components/header/header.component.d.ts +3 -2
  42. package/dist/components/header/header.component.js +34 -28
  43. package/dist/components/heading/heading.component.d.ts +3 -5
  44. package/dist/components/heading/heading.component.js +22 -21
  45. package/dist/components/icon/icon.component.d.ts +11 -17
  46. package/dist/components/icon/icon.component.js +2 -2
  47. package/dist/components/icon/icon.styles.d.ts +1 -2
  48. package/dist/components/icon/icon.styles.js +1 -1
  49. package/dist/components/input/input.component.d.ts +30 -31
  50. package/dist/components/input/input.component.js +136 -123
  51. package/dist/components/link/link.component.d.ts +12 -14
  52. package/dist/components/link/link.component.js +34 -34
  53. package/dist/components/link/link.styles.d.ts +1 -2
  54. package/dist/components/link/link.styles.js +2 -2
  55. package/dist/components/loader/loader.component.d.ts +1 -1
  56. package/dist/components/loader/loader.component.js +36 -40
  57. package/dist/components/loader/loader.styles.d.ts +1 -2
  58. package/dist/components/loader/loader.styles.js +40 -32
  59. package/dist/components/logo/logo.component.d.ts +4 -5
  60. package/dist/components/logo/logo.component.js +1 -1
  61. package/dist/components/menu/menu-item.component.d.ts +13 -0
  62. package/dist/components/{menu-item → menu}/menu-item.component.js +3 -3
  63. package/dist/components/menu/menu.component.d.ts +9 -6
  64. package/dist/components/menu/menu.component.js +8 -10
  65. package/dist/components/{nav-item → nav}/nav-item.component.d.ts +0 -2
  66. package/dist/components/{nav-item → nav}/nav-item.component.js +1 -1
  67. package/dist/components/nav/nav.component.js +1 -1
  68. package/dist/components/popover/popover.component.d.ts +10 -6
  69. package/dist/components/popover/popover.component.js +22 -24
  70. package/dist/components/progress/progress.component.d.ts +2 -2
  71. package/dist/components/progress/progress.component.js +31 -37
  72. package/dist/components/progress/progress.styles.js +40 -35
  73. package/dist/components/radio/radio.component.d.ts +9 -7
  74. package/dist/components/radio/radio.component.js +2 -2
  75. package/dist/components/{segmented-button-item → segmented-button}/segmented-button-item.component.d.ts +4 -4
  76. package/dist/components/segmented-button/segmented-button-item.component.js +56 -0
  77. package/dist/components/segmented-button/segmented-button-item.js +6 -0
  78. package/dist/components/segmented-button/segmented-button-item.styles.js +62 -0
  79. package/dist/components/segmented-button/segmented-button.component.d.ts +0 -2
  80. package/dist/components/segmented-button/segmented-button.component.js +73 -0
  81. package/dist/components/segmented-button/segmented-button.js +6 -0
  82. package/dist/components/segmented-button/segmented-button.styles.js +16 -0
  83. package/dist/components/{select-option-group → select}/select-option-group.component.js +1 -1
  84. package/dist/components/{select-option → select}/select-option.component.d.ts +7 -8
  85. package/dist/components/{select-option → select}/select-option.component.js +15 -15
  86. package/dist/components/select/select.component.d.ts +16 -15
  87. package/dist/components/select/select.component.js +17 -17
  88. package/dist/components/select/select.controllers.d.ts +1 -1
  89. package/dist/components/select/select.controllers.js +14 -11
  90. package/dist/components/select/select.stories.icons.d.ts +7 -0
  91. package/dist/components/{stepper-item → stepper}/stepper-item.component.js +8 -8
  92. package/dist/components/stepper/stepper.component.d.ts +2 -2
  93. package/dist/components/stepper/stepper.component.js +15 -15
  94. package/dist/components/stepper/stepper.helpers.d.ts +1 -1
  95. package/dist/components/switch/switch.component.js +15 -15
  96. package/dist/components/tab/tab.component.js +1 -1
  97. package/dist/components/tab-group/tab-group.component.js +1 -1
  98. package/dist/components/tab-panel/tab-panel.component.js +1 -1
  99. package/dist/components/tag/tag.component.d.ts +10 -14
  100. package/dist/components/tag/tag.component.js +32 -35
  101. package/dist/components/textarea/textarea.component.d.ts +10 -11
  102. package/dist/components/textarea/textarea.component.js +62 -64
  103. package/dist/components/{toast-item → toast}/toast-item.d.ts +2 -0
  104. package/dist/components/{toast-item → toast}/toast-item.js +4 -0
  105. package/dist/components/{toast-wrapper → toast}/toast-wrapper.component.js +1 -1
  106. package/dist/components/toast/toast-wrapper.styles.d.ts +1 -0
  107. package/dist/components/toast/toast.component.d.ts +5 -4
  108. package/dist/components/toast/toast.component.js +15 -15
  109. package/dist/components/toast/toast.singleton.d.ts +4 -4
  110. package/dist/components/toast/toast.singleton.js +12 -12
  111. package/dist/components/tooltip/tooltip.component.d.ts +2 -1
  112. package/dist/components/tooltip/tooltip.component.js +15 -10
  113. package/dist/custom-elements.json +733 -820
  114. package/dist/index.d.ts +13 -7
  115. package/dist/index.js +100 -84
  116. package/dist/internal/base-classes/popover/popover.base.d.ts +10 -5
  117. package/dist/internal/base-classes/popover/popover.base.js +77 -60
  118. package/dist/internal/components/hint/hint.component.d.ts +2 -2
  119. package/dist/internal/components/hint/hint.component.js +2 -2
  120. package/dist/internal/components/hint/hint.styles.d.ts +1 -2
  121. package/dist/internal/components/hint/hint.styles.js +1 -1
  122. package/dist/internal/constants/iconSeverity.d.ts +3 -2
  123. package/dist/internal/constants/iconSeverity.js +2 -3
  124. package/dist/internal/helpers/hintSeverity.d.ts +2 -2
  125. package/dist/internal/helpers/hintSeverity.js +1 -1
  126. package/dist/internal/types/formField.d.ts +1 -1
  127. package/dist/internal/types.d.ts +18 -0
  128. package/dist/styles/component.styles.d.ts +1 -2
  129. package/dist/styles/component.styles.js +1 -1
  130. package/dist/styles/global.css +1 -1
  131. package/dist/types/jsx/custom-element-jsx.d.ts +162 -180
  132. package/dist/types/vue/index.d.ts +162 -180
  133. package/dist/vscode.html-custom-data.json +133 -1091
  134. package/dist/web-types.json +368 -424
  135. package/package.json +24 -25
  136. package/dist/components/collapse/collapse.component.d.ts +0 -40
  137. package/dist/components/collapse/collapse.component.js +0 -86
  138. package/dist/components/collapse/collapse.d.ts +0 -8
  139. package/dist/components/collapse/collapse.js +0 -6
  140. package/dist/components/collapse/collapse.styles.d.ts +0 -2
  141. package/dist/components/collapse/collapse.styles.js +0 -77
  142. package/dist/components/menu-item/menu-item.component.d.ts +0 -25
  143. package/dist/internal/constants/heading.d.ts +0 -2
  144. /package/dist/components/{breadcrumb-item/breadcrumb-item.styles.d.ts → accordion/accordion-item.styles.d.ts} +0 -0
  145. /package/dist/components/{collapse/collapse.test.d.ts → accordion/accordion-item.test.d.ts} +0 -0
  146. /package/dist/components/{breadcrumb-item → breadcrumb}/breadcrumb-item.component.d.ts +0 -0
  147. /package/dist/components/{breadcrumb-item → breadcrumb}/breadcrumb-item.d.ts +0 -0
  148. /package/dist/components/{menu-item/menu-item.styles.d.ts → breadcrumb/breadcrumb-item.styles.d.ts} +0 -0
  149. /package/dist/components/{menu-item → menu}/menu-item.d.ts +0 -0
  150. /package/dist/components/{menu-item → menu}/menu-item.js +0 -0
  151. /package/dist/components/{nav-item/nav-item.styles.d.ts → menu/menu-item.styles.d.ts} +0 -0
  152. /package/dist/components/{menu-item → menu}/menu-item.styles.js +0 -0
  153. /package/dist/components/{nav-item → nav}/nav-item.d.ts +0 -0
  154. /package/dist/components/{nav-item → nav}/nav-item.js +0 -0
  155. /package/dist/components/{segmented-button-item/segmented-button-item.styles.d.ts → nav/nav-item.styles.d.ts} +0 -0
  156. /package/dist/components/{nav-item → nav}/nav-item.styles.js +0 -0
  157. /package/dist/components/{segmented-button-item → segmented-button}/segmented-button-item.d.ts +0 -0
  158. /package/dist/components/{select-option-group/select-option-group.style.d.ts → segmented-button/segmented-button-item.styles.d.ts} +0 -0
  159. /package/dist/components/{select-option-group → select}/select-option-group.component.d.ts +0 -0
  160. /package/dist/components/{select-option-group → select}/select-option-group.d.ts +0 -0
  161. /package/dist/components/{select-option-group → select}/select-option-group.js +0 -0
  162. /package/dist/components/{select-option/select-option.styles.d.ts → select/select-option-group.style.d.ts} +0 -0
  163. /package/dist/components/{select-option-group → select}/select-option-group.style.js +0 -0
  164. /package/dist/components/{select-option → select}/select-option.controllers.d.ts +0 -0
  165. /package/dist/components/{select-option → select}/select-option.d.ts +0 -0
  166. /package/dist/components/{select-option → select}/select-option.js +0 -0
  167. /package/dist/components/{stepper-item/stepper-item.styles.d.ts → select/select-option.styles.d.ts} +0 -0
  168. /package/dist/components/{select-option → select}/select-option.styles.js +0 -0
  169. /package/dist/components/{stepper-item → stepper}/stepper-item.component.d.ts +0 -0
  170. /package/dist/components/{stepper-item → stepper}/stepper-item.d.ts +0 -0
  171. /package/dist/components/{stepper-item → stepper}/stepper-item.js +0 -0
  172. /package/dist/components/{toast-wrapper/toast-wrapper.styles.d.ts → stepper/stepper-item.styles.d.ts} +0 -0
  173. /package/dist/components/{stepper-item → stepper}/stepper-item.styles.js +0 -0
  174. /package/dist/components/{toast-item → toast}/toast-item.component.d.ts +0 -0
  175. /package/dist/components/{toast-item → toast}/toast-item.component.js +0 -0
  176. /package/dist/components/{toast-item → toast}/toast-item.styles.d.ts +0 -0
  177. /package/dist/components/{toast-item → toast}/toast-item.styles.js +0 -0
  178. /package/dist/components/{toast-wrapper → toast}/toast-wrapper.component.d.ts +0 -0
  179. /package/dist/components/{toast-wrapper → toast}/toast-wrapper.d.ts +0 -0
  180. /package/dist/components/{toast-wrapper → toast}/toast-wrapper.js +0 -0
  181. /package/dist/components/{toast-wrapper → toast}/toast-wrapper.styles.js +0 -0
@@ -1,40 +1,40 @@
1
1
  import type { SkfIcon } from "../../components/icon/icon.component.js";
2
- import type { SkfCollapse, CustomEvent } from "../../components/collapse/collapse.component.js";
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
4
  import type { SkfAlert } 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";
8
- import type { SkfButton } from "../../components/button/button.component.js";
8
+ import type { SkfButton, CustomEvent } from "../../components/button/button.component.js";
9
9
  import type { SkfCard } from "../../components/card/card.component.js";
10
- import type { SkfCheckbox } from "../../components/checkbox/checkbox.component.js";
10
+ import type { SkfCheckbox, Event } from "../../components/checkbox/checkbox.component.js";
11
11
  import type { SkfDatePicker } from "../../components/datepicker/datepicker.component.js";
12
12
  import type { SkfHeading } from "../../components/heading/heading.component.js";
13
- import type { SkfDialog } from "../../components/dialog/dialog.component.js";
13
+ import type { SkfDialog, CustomEvent } from "../../components/dialog/dialog.component.js";
14
14
  import type { SkfDivider } from "../../components/divider/divider.component.js";
15
- import type { SkfDrawer } from "../../components/drawer/drawer.component.js";
15
+ import type { SkfDrawer, CustomEvent } from "../../components/drawer/drawer.component.js";
16
16
  import type { SkfLogo } from "../../components/logo/logo.component.js";
17
17
  import type { SkfNav } from "../../components/nav/nav.component.js";
18
18
  import type { SkfHeader } from "../../components/header/header.component.js";
19
- import type { SkfInput } from "../../components/input/input.component.js";
19
+ import type { SkfInput, CustomEvent } from "../../components/input/input.component.js";
20
20
  import type { SkfLink } from "../../components/link/link.component.js";
21
- import type { SkfMenu } from "../../components/menu/menu.component.js";
22
- import type { SkfMenuItem, CustomEvent } from "../../components/menu-item/menu-item.component.js";
21
+ import type { SkfMenuItem } from "../../components/menu-item/menu-item.component.js";
22
+ import type { SkfMenu, CustomEvent } from "../../components/menu/menu.component.js";
23
23
  import type { SkfNavItem } from "../../components/nav-item/nav-item.component.js";
24
- import type { SkfPopover } from "../../components/popover/popover.component.js";
24
+ import type { SkfPopover, CustomEvent } from "../../components/popover/popover.component.js";
25
25
  import type { SkfProgress } from "../../components/progress/progress.component.js";
26
- import type { SkfRadio } from "../../components/radio/radio.component.js";
26
+ import type { SkfRadio, Event } from "../../components/radio/radio.component.js";
27
27
  import type {
28
28
  SkfSegmentedButtonItem,
29
29
  CustomEvent,
30
30
  } from "../../components/segmented-button-item/segmented-button-item.component.js";
31
31
  import type { SkfSegmentedButton } from "../../components/segmented-button/segmented-button.component.js";
32
- import type { SkfSelectOption } from "../../components/select-option/select-option.component.js";
33
- import type { SkfTag } from "../../components/tag/tag.component.js";
34
- import type { SkfSelect } from "../../components/select/select.component.js";
35
32
  import type { SkfSelectOptionGroup } from "../../components/select-option-group/select-option-group.component.js";
33
+ import type { SkfTag } from "../../components/tag/tag.component.js";
34
+ import type { SkfSelect, Event, CustomEvent } from "../../components/select/select.component.js";
35
+ import type { SkfSelectOption } from "../../components/select-option/select-option.component.js";
36
36
  import type { SkfStepperItem } from "../../components/stepper-item/stepper-item.component.js";
37
- import type { SkfStepper } from "../../components/stepper/stepper.component.js";
37
+ import type { SkfStepper, CustomEvent } from "../../components/stepper/stepper.component.js";
38
38
  import type { SkfSwitch } from "../../components/switch/switch.component.js";
39
39
  import type { SkfTabPanel } from "../../components/tab-panel/tab-panel.component.js";
40
40
  import type { SkfTabGroup } from "../../components/tab-group/tab-group.component.js";
@@ -117,22 +117,22 @@ export type SkfIconProps = {
117
117
  size?: SkfIcon["size"];
118
118
  };
119
119
 
120
- export type SkfCollapseProps = {
121
- /** If true, will animate the expand/collapse state */
122
- animated?: SkfCollapse["animated"];
123
- /** If true, will set the collapse to be expanded by default */
124
- expanded?: SkfCollapse["expanded"];
125
- /** Heading for the collapse */
126
- heading?: SkfCollapse["heading"];
120
+ export type SkfAccordionItemProps = {
121
+ /** If true, will animate the expand/accordion-item state */
122
+ animated?: SkfAccordionItem["animated"];
123
+ /** If true, will set the accordion-item to be expanded by default */
124
+ expanded?: SkfAccordionItem["expanded"];
125
+ /** Heading for the accordion-item */
126
+ heading?: SkfAccordionItem["heading"];
127
127
  /** Defines which heading element will be rendered */
128
- "heading-as"?: SkfCollapse["headingAs"];
128
+ "heading-as"?: SkfAccordionItem["headingAs"];
129
129
  /** If true, renders the small version */
130
- small?: SkfCollapse["small"];
131
- /** If true, will truncate the heading in collapsed state */
132
- truncate?: SkfCollapse["truncate"];
130
+ small?: SkfAccordionItem["small"];
131
+ /** If true, will truncate the heading in accordion-item state */
132
+ truncate?: SkfAccordionItem["truncate"];
133
133
 
134
134
  /** Event emitted when toggled */
135
- "onskf-collapse-toggle"?: (e: CustomEvent<CustomEvent>) => void;
135
+ "onskf-accordion-item-toggle"?: (e: CustomEvent<CustomEvent>) => void;
136
136
  };
137
137
 
138
138
  export type SkfAccordionProps = {
@@ -188,10 +188,6 @@ export type SkfLoaderProps = {
188
188
  invert?: SkfLoader["invert"];
189
189
  /** Defines the size of the loader */
190
190
  size?: SkfLoader["size"];
191
- /** */
192
- role?: SkfLoader["role"];
193
- /** */
194
- ariaLive?: SkfLoader["ariaLive"];
195
191
  };
196
192
 
197
193
  export type SkfButtonProps = {
@@ -201,8 +197,8 @@ export type SkfButtonProps = {
201
197
  disabled?: SkfButton["disabled"];
202
198
  /** If provided, renders an icon before or after the text */
203
199
  icon?: SkfButton["icon"];
204
- /** If true, removes border */
205
- iconOnly?: SkfButton["iconOnly"];
200
+ /** If true, button will take a square shape */
201
+ "icon-only"?: SkfButton["iconOnly"];
206
202
  /** Determines the positioning of the icon in relation to the text */
207
203
  "icon-position"?: SkfButton["iconPosition"];
208
204
  /** If true, hides text & icon and shows loading indicator. **Notice!** Only applicable if `variant` is `primary`. */
@@ -217,7 +213,7 @@ export type SkfButtonProps = {
217
213
  variant?: SkfButton["variant"];
218
214
 
219
215
  /** Fires when the button is clicked */
220
- onclick?: (e: CustomEvent<never>) => void;
216
+ onclick?: (e: CustomEvent<CustomEvent>) => void;
221
217
  };
222
218
 
223
219
  export type SkfCardProps = {
@@ -257,8 +253,8 @@ export type SkfCheckboxProps = {
257
253
  /** The current value of the input field */
258
254
  value?: SkfCheckbox["value"];
259
255
 
260
- /** {object} - When the value of the input changes */
261
- onchange?: (e: CustomEvent<never>) => void;
256
+ /** When the value of the input changes */
257
+ onchange?: (e: CustomEvent<Event>) => void;
262
258
  };
263
259
 
264
260
  export type SkfDatePickerProps = {
@@ -308,11 +304,11 @@ export type SkfDialogProps = {
308
304
  open?: SkfDialog["open"];
309
305
 
310
306
  /** Fires when the dialog is opened (after transitioned in) */
311
- "onskf-dialog-opened"?: (e: CustomEvent<never>) => void;
312
- /** Fires when the dialog is closed (before transitioned out) */
313
- "onskf-dialog-closing"?: (e: CustomEvent<never>) => void;
307
+ "onskf-dialog-opened"?: (e: CustomEvent<CustomEvent>) => void;
308
+ /** Fires when the dialog is closing (before transitioned out) */
309
+ "onskf-dialog-closing"?: (e: CustomEvent<CustomEvent>) => void;
314
310
  /** Fires when the dialog is closed (after transitioned out) */
315
- "onskf-dialog-closed"?: (e: CustomEvent<never>) => void;
311
+ "onskf-dialog-closed"?: (e: CustomEvent<CustomEvent>) => void;
316
312
  };
317
313
 
318
314
  export type SkfDividerProps = {
@@ -335,18 +331,13 @@ export type SkfDrawerProps = {
335
331
  open?: SkfDrawer["open"];
336
332
  /** Placement of the Drawer */
337
333
  placement?: SkfDrawer["placement"];
338
- /** */
339
- _clickstartInDialog?: SkfDrawer["_clickstartInDialog"];
340
- /** */
341
- _handleMouseDown?: SkfDrawer["_handleMouseDown"];
342
- /** */
343
- _handleMouseUp?: SkfDrawer["_handleMouseUp"];
334
+
344
335
  /** Fires when the drawer is opened (after transitioned in) */
345
- "onskf-drawer-opened"?: (e: CustomEvent<never>) => void;
346
- /** Fires when the drawer is closed (before transitioned out) */
347
- "onskf-drawer-closing"?: (e: CustomEvent<never>) => void;
336
+ "onskf-drawer-opened"?: (e: CustomEvent<CustomEvent>) => void;
337
+ /** Fires when the drawer is closing (before transitioned out) */
338
+ "onskf-drawer-closing"?: (e: CustomEvent<CustomEvent>) => void;
348
339
  /** Fires when the drawer is closed (after transitioned out) */
349
- "onskf-drawer-closed"?: (e: CustomEvent<never>) => void;
340
+ "onskf-drawer-closed"?: (e: CustomEvent<CustomEvent>) => void;
350
341
  };
351
342
 
352
343
  export type SkfLogoProps = {
@@ -377,8 +368,8 @@ export type SkfInputProps = {
377
368
  disabled?: SkfInput["undefined"];
378
369
  /** If true, value is required or must be checked for the form to be submittable */
379
370
  required?: SkfInput["undefined"];
380
- /** Specifies what permission the browser has to provide assistance in filling out form field values. Refer to
381
- [this page on MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) for available values. */
371
+ /** Indicates whether the value of the control can be automatically completed by the browser. See
372
+ [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/autocomplete) for details. */
382
373
  autocomplete?: SkfInput["autocomplete"];
383
374
  /** Custom aria-label for the clear button. **Notice!** Only applicable to type=search. */
384
375
  "button-aria-label-clear"?: SkfInput["buttonAriaLabelClear"];
@@ -394,7 +385,8 @@ export type SkfInputProps = {
394
385
  "hide-label"?: SkfInput["hideLabel"];
395
386
  /** If defined, displays informational text below the field */
396
387
  hint?: SkfInput["hint"];
397
- /** Tells what keyboard to use if applicable */
388
+ /** Provides a hint about the type of data that might be entered by the user while editing the element or its contents. See
389
+ [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/inputMode) for details. */
398
390
  inputmode?: SkfInput["inputmode"];
399
391
  /** If defined, sets the input's label. Alternatively, you can use the `label` attribute. */
400
392
  label?: SkfInput["label"];
@@ -426,7 +418,7 @@ export type SkfInputProps = {
426
418
  size?: SkfInput["size"];
427
419
  /** If defined, displays a suffix/adornment after the input-element */
428
420
  trailing?: SkfInput["trailing"];
429
- /** Type of input control */
421
+ /** Type of input */
430
422
  type?: SkfInput["type"];
431
423
  /** Sets validation start */
432
424
  "validate-on"?: SkfInput["validateOn"];
@@ -434,9 +426,9 @@ export type SkfInputProps = {
434
426
  value?: SkfInput["value"];
435
427
 
436
428
  /** Fires when the value of the input changes */
437
- onchange?: (e: CustomEvent<never>) => void;
429
+ onchange?: (e: CustomEvent<CustomEvent>) => void;
438
430
  /** Fires when the input is invalid */
439
- oninvalid?: (e: CustomEvent<never>) => void;
431
+ oninvalid?: (e: CustomEvent<CustomEvent>) => void;
440
432
  };
441
433
 
442
434
  export type SkfLinkProps = {
@@ -464,25 +456,10 @@ export type SkfLinkProps = {
464
456
  target?: SkfLink["target"];
465
457
  /** Defines the type of button */
466
458
  type?: SkfLink["type"];
467
- /** If provided, custom function triggered by click where the second return parameter enables custom routing. */
459
+ /** If defined, accepts a function that runs on click. Forwards optional route as second argument. */
468
460
  onClick?: SkfLink["onClick"];
469
461
  };
470
462
 
471
- export type SkfMenuProps = {
472
- /** The placement of the menu */
473
- placement?: SkfMenu["undefined"];
474
- /** The id of the element the menu will be anchored to */
475
- anchor?: SkfMenu["undefined"];
476
- /** */
477
- placement?: SkfMenu["placement"];
478
- /** */
479
- triggerEvent?: SkfMenu["triggerEvent"];
480
- /** Fired when the menu is opened */
481
- "onskf-opened"?: (e: CustomEvent<never>) => void;
482
- /** Fired when the menu is closed */
483
- "onskf-closed"?: (e: CustomEvent<never>) => void;
484
- };
485
-
486
463
  export type SkfMenuItemProps = {
487
464
  /** Defines the semantic element to render */
488
465
  as?: SkfMenuItem["as"];
@@ -508,22 +485,22 @@ export type SkfMenuItemProps = {
508
485
  target?: SkfMenuItem["target"];
509
486
  /** Defines the type of button */
510
487
  type?: SkfMenuItem["type"];
511
- /** If provided, custom function triggered by click where the second return parameter enables custom routing. */
488
+ /** */
489
+ role?: SkfMenuItem["role"];
490
+ /** If defined, accepts a function that runs on click. Forwards optional route as second argument. */
512
491
  onClick?: SkfMenuItem["onClick"];
513
- /** Fired when something happens */
514
- "onmy-tag-my-event"?: (e: CustomEvent<CustomEvent>) => void;
515
- /** Fired when the component is clicked */
516
- onclick?: (e: CustomEvent<never>) => void;
517
- /** Fired when the mouse is over the component */
518
- onmouseover?: (e: CustomEvent<never>) => void;
519
- /** Fired when the mouse is out of the component */
520
- onmouseout?: (e: CustomEvent<never>) => void;
521
- /** Fired when the component is focused */
522
- onfocus?: (e: CustomEvent<never>) => void;
523
- /** Fired when the component is blurred */
524
- onblur?: (e: CustomEvent<never>) => void;
525
- /** Fired when the component's value changes */
526
- onchange?: (e: CustomEvent<never>) => void;
492
+ };
493
+
494
+ export type SkfMenuProps = {
495
+ /** The placement of the menu */
496
+ placement?: SkfMenu["undefined"];
497
+ /** The id of the element the menu will be anchored to */
498
+ anchor?: SkfMenu["undefined"];
499
+
500
+ /** Fired when the menu is opened */
501
+ "onskf-opened"?: (e: CustomEvent<CustomEvent>) => void;
502
+ /** Fired when the menu is closed */
503
+ "onskf-closed"?: (e: CustomEvent<CustomEvent>) => void;
527
504
  };
528
505
 
529
506
  export type SkfNavItemProps = {
@@ -534,7 +511,7 @@ export type SkfNavItemProps = {
534
511
  };
535
512
 
536
513
  export type SkfPopoverProps = {
537
- /** The placement of the menu */
514
+ /** The placement of the popover */
538
515
  placement?: SkfPopover["undefined"];
539
516
  /** The id of the element the menu will be anchored to */
540
517
  anchor?: SkfPopover["undefined"];
@@ -542,16 +519,11 @@ export type SkfPopoverProps = {
542
519
  offset?: SkfPopover["offset"];
543
520
  /** If true, hides the arrow */
544
521
  hideArrow?: SkfPopover["hideArrow"];
545
- /** */
546
- arrow?: SkfPopover["arrow"];
547
- /** */
548
- placement?: SkfPopover["placement"];
549
- /** */
550
- triggerEvent?: SkfPopover["triggerEvent"];
522
+
551
523
  /** Fired when the menu is opened */
552
- "onskf-opened"?: (e: CustomEvent<never>) => void;
524
+ "onskf-opened"?: (e: CustomEvent<CustomEvent>) => void;
553
525
  /** Fired when the menu is closed */
554
- "onskf-closed"?: (e: CustomEvent<never>) => void;
526
+ "onskf-closed"?: (e: CustomEvent<CustomEvent>) => void;
555
527
  };
556
528
 
557
529
  export type SkfProgressProps = {
@@ -589,50 +561,30 @@ export type SkfRadioProps = {
589
561
  /** The current value of the input field */
590
562
  value?: SkfRadio["value"];
591
563
 
592
- /** {object} - When the value of the input changes */
593
- onchange?: (e: CustomEvent<never>) => void;
564
+ /** When the value of the input changes */
565
+ onchange?: (e: CustomEvent<Event>) => void;
594
566
  };
595
567
 
596
568
  export type SkfSegmentedButtonItemProps = {
597
569
  /** If true, items is marked as disabled */
598
570
  disabled?: SkfSegmentedButtonItem["disabled"];
571
+ /** If true, items is marked as selected */
572
+ selected?: SkfSegmentedButtonItem["selected"];
599
573
  /** Sets the item value */
600
574
  value?: SkfSegmentedButtonItem["value"];
601
575
 
602
- /** Fired when something happens */
603
- "onmy-tag-my-event"?: (e: CustomEvent<CustomEvent>) => void;
576
+ /** Fired when selected */
577
+ "onskf-segmented-button-item-select"?: (e: CustomEvent<CustomEvent>) => void;
604
578
  };
605
579
 
606
580
  export type SkfSegmentedButtonProps = {
607
- /** Sets the default selected control */
608
- "default-selected"?: SkfSegmentedButton["defaultSelected"];
609
581
  /** If true, allowes multiple items to be selected */
610
582
  multiple?: SkfSegmentedButton["multiple"];
611
583
  };
612
584
 
613
- export type SkfSelectOptionProps = {
614
- /** If true, prevents interaction with the option */
615
- disabled?: SkfSelectOption["disabled"];
616
- /** If defined, set an icon */
617
- icon?: SkfSelectOption["icon"];
618
- /** If defined, sets provided color on the icon */
619
- "icon-color"?: SkfSelectOption["iconColor"];
620
- /** If true, sets the option as selected */
621
- selected?: SkfSelectOption["selected"];
622
- /** If defined, sets a short label */
623
- "short-label"?: SkfSelectOption["shortLabel"];
624
- /** Returns or sets the tags value. If value is omitted, defaults to the tags text. */
625
- value?: SkfSelectOption["value"];
626
- /** The option's label text (equivalent to the tags textContent) */
627
- text?: SkfSelectOption["text"];
628
- /** */
629
- role?: SkfSelectOption["role"];
630
- /** */
631
- _parent?: SkfSelectOption["_parent"];
585
+ export type SkfSelectOptionGroupProps = {
632
586
  /** */
633
- _shortcutUpdate?: SkfSelectOption["_shortcutUpdate"];
634
- /** {detail: { value: string | null, option: SkfSelectOption }} Fires when the option is selected/deselected. */
635
- "onskf-select-option:select"?: (e: CustomEvent<never>) => void;
587
+ label?: SkfSelectOptionGroup["label"];
636
588
  };
637
589
 
638
590
  export type SkfTagProps = {
@@ -651,8 +603,10 @@ export type SkfTagProps = {
651
603
  };
652
604
 
653
605
  export type SkfSelectProps = {
654
- /** If true, the select is disabled `default: false` */
606
+ /** If true, the select is disabled */
655
607
  disabled?: SkfSelect["undefined"];
608
+ /** If true, the select is required */
609
+ required?: SkfSelect["undefined"];
656
610
  /** Sets the first visible text on the component */
657
611
  "button-label"?: SkfSelect["buttonLabel"];
658
612
  /** If defined, forces component to invalid state until removed */
@@ -690,20 +644,40 @@ export type SkfSelectProps = {
690
644
  /** */
691
645
  _selectedOptions?: SkfSelect["_selectedOptions"];
692
646
  /** Fired when the selected option(s) changes */
693
- onchange?: (e: CustomEvent<never>) => void;
647
+ onchange?: (e: CustomEvent<Event>) => void;
694
648
  /** Fired when the select is invalid */
695
- oninvalid?: (e: CustomEvent<never>) => void;
649
+ oninvalid?: (e: CustomEvent<Event>) => void;
696
650
  /** Fired when the form is reset */
697
- onreset?: (e: CustomEvent<never>) => void;
651
+ onreset?: (e: CustomEvent<Event>) => void;
698
652
  /** {detail: {expanded: boolean}} Fired when the select dropdown is toggled */
699
- "onskf-select:dropdown"?: (e: CustomEvent<never>) => void;
653
+ "onskf-select-dropdown"?: (e: CustomEvent<CustomEvent>) => void;
700
654
  /** {detail: {value: string | null, option: SkfSelectOption}} Fired when the select dropdown is toggled */
701
- "onskf-select-option:select"?: (e: CustomEvent<never>) => void;
655
+ "onskf-select-option-select"?: (e: CustomEvent<CustomEvent>) => void;
702
656
  };
703
657
 
704
- export type SkfSelectOptionGroupProps = {
658
+ export type SkfSelectOptionProps = {
659
+ /** If true, prevents interaction with the option */
660
+ disabled?: SkfSelectOption["disabled"];
661
+ /** If defined, set an icon */
662
+ icon?: SkfSelectOption["icon"];
663
+ /** If defined, sets provided color on the icon */
664
+ "icon-color"?: SkfSelectOption["iconColor"];
665
+ /** If true, sets the option as selected */
666
+ selected?: SkfSelectOption["selected"];
667
+ /** If defined, sets a short label */
668
+ "short-label"?: SkfSelectOption["shortLabel"];
669
+ /** Returns or sets the tags value. If value is omitted, defaults to the tags text. */
670
+ value?: SkfSelectOption["value"];
671
+ /** The option's label text (equivalent to the tags textContent) */
672
+ text?: SkfSelectOption["text"];
705
673
  /** */
706
- label?: SkfSelectOptionGroup["label"];
674
+ role?: SkfSelectOption["role"];
675
+ /** */
676
+ _parent?: SkfSelectOption["_parent"];
677
+ /** */
678
+ _shortcutUpdate?: SkfSelectOption["_shortcutUpdate"];
679
+ /** {detail: { value: string | null, option: SkfSelectOption }} Fires when the option is selected/deselected. */
680
+ "onskf-select-option-select"?: (e: CustomEvent<never>) => void;
707
681
  };
708
682
 
709
683
  export type SkfStepperItemProps = {
@@ -721,12 +695,12 @@ export type SkfStepperItemProps = {
721
695
 
722
696
  export type SkfStepperProps = {
723
697
  /** Sets the active item */
724
- activeIndex?: SkfStepper["activeIndex"];
698
+ "active-index"?: SkfStepper["activeIndex"];
725
699
  /** If true, sets linear mode (user can't go back to completed steps due to dependencies) */
726
700
  linear?: SkfStepper["linear"];
727
701
 
728
702
  /** Dispatched when the stepper item is selected */
729
- "onskf-stepper-item-select"?: (e: CustomEvent<never>) => void;
703
+ "onskf-stepper-item-select"?: (e: CustomEvent<CustomEvent>) => void;
730
704
  };
731
705
 
732
706
  export type SkfSwitchProps = {
@@ -863,9 +837,13 @@ export type SkfTooltipProps = {
863
837
  /** The id of the element the dropdown will be anchored to */
864
838
  anchor?: SkfTooltip["undefined"];
865
839
  /** */
840
+ role?: SkfTooltip["role"];
841
+ /** */
866
842
  offset?: SkfTooltip["offset"];
867
843
  /** */
868
844
  placement?: SkfTooltip["placement"];
845
+ /** */
846
+ variant?: SkfTooltip["variant"];
869
847
  /** Fired when the dropdown is opened */
870
848
  "onskf-opened"?: (e: CustomEvent<never>) => void;
871
849
  /** Fired when the dropdown is closed */
@@ -874,21 +852,19 @@ export type SkfTooltipProps = {
874
852
 
875
853
  export type CustomElements = {
876
854
  /**
877
- * The `<skf-icon>` component is used to clarify interface elements. When used, should always be paired with (possibly invisible) text
855
+ * The `<skf-icon>` component is used to clarify interface elements. When used, should always be paired with (possibly invisible) text.
878
856
  * ---
879
857
  *
880
858
  */
881
859
  "skf-icon": Partial<SkfIconProps & BaseProps & BaseEvents>;
882
860
 
883
861
  /**
884
- * The `<skf-collapse>` component is a general purpose container for content that can be collapsed / expanded.
885
- *
886
- * See [zeroheight](https://zeroheight.com/853e936c9/p/6590bf-accordion) for design principles.
862
+ * The `<skf-accordion-item>` is used in conjunction with the `<skf-accordion>` component
887
863
  * ---
888
864
  *
889
865
  *
890
866
  * ### **Events:**
891
- * - **skf-collapse-toggle** - Event emitted when toggled
867
+ * - **skf-accordion-item-toggle** - Event emitted when toggled
892
868
  *
893
869
  * ### **Methods:**
894
870
  * - **setClose()** - Class method as alternative to manipulate attribute
@@ -897,12 +873,12 @@ export type CustomElements = {
897
873
  * ### **Slots:**
898
874
  * - _default_ - Main content
899
875
  */
900
- "skf-collapse": Partial<SkfCollapseProps & BaseProps & BaseEvents>;
876
+ "skf-accordion-item": Partial<SkfAccordionItemProps & BaseProps & BaseEvents>;
901
877
 
902
878
  /**
903
- * The `<skf-accordion>` component consists of multiple `<skf-collapse>`, working together.
879
+ * The `<skf-accordion>` component consists of one or more `<skf-accordion-item>` item(s) working together
904
880
  *
905
- * See [zeroheight](https://zeroheight.com/853e936c9/p/6590bf-accordion) for design principles.
881
+ * See [zeroheight](https://zeroheight.com/853e936c9/p/6590bf-accordion) for design principles
906
882
  * ---
907
883
  *
908
884
  *
@@ -913,6 +889,8 @@ export type CustomElements = {
913
889
 
914
890
  /**
915
891
  * The `<skf-alert>` is a type of notification that appears in-line
892
+ *
893
+ * See [zeroheight](https://zeroheight.com/853e936c9/p/990ec5-alert) for design principles
916
894
  * ---
917
895
  *
918
896
  *
@@ -959,6 +937,8 @@ export type CustomElements = {
959
937
 
960
938
  /**
961
939
  * Component to be used in forms or for interactivity
940
+ *
941
+ * See [zeroheight](https://zeroheight.com/853e936c9/p/02493d-buttons) for design principles
962
942
  * ---
963
943
  *
964
944
  *
@@ -975,6 +955,8 @@ export type CustomElements = {
975
955
 
976
956
  /**
977
957
  * The `<skf-card>` can be used to group related subjects in a container
958
+ *
959
+ * See [zeroheight](https://zeroheight.com/853e936c9/p/021eed-card) for design principles
978
960
  * ---
979
961
  *
980
962
  *
@@ -989,7 +971,7 @@ export type CustomElements = {
989
971
  *
990
972
  *
991
973
  * ### **Events:**
992
- * - **change** - {object} - When the value of the input changes
974
+ * - **change** - When the value of the input changes
993
975
  *
994
976
  * ### **Slots:**
995
977
  * - _default_ - The Radios label. Alternatively, you can use the `label` attribute.
@@ -1034,7 +1016,7 @@ export type CustomElements = {
1034
1016
  *
1035
1017
  * ### **Events:**
1036
1018
  * - **skf-dialog-opened** - Fires when the dialog is opened (after transitioned in)
1037
- * - **skf-dialog-closing** - Fires when the dialog is closed (before transitioned out)
1019
+ * - **skf-dialog-closing** - Fires when the dialog is closing (before transitioned out)
1038
1020
  * - **skf-dialog-closed** - Fires when the dialog is closed (after transitioned out)
1039
1021
  *
1040
1022
  * ### **Methods:**
@@ -1063,13 +1045,13 @@ export type CustomElements = {
1063
1045
  "skf-divider": Partial<SkfDividerProps & BaseProps & BaseEvents>;
1064
1046
 
1065
1047
  /**
1066
- * The `<skf-drawer>` is a modal component that displays content and toggle by sliding from left/right viewport edge.
1048
+ * The `<skf-drawer>` is a modal component that displays content and toggle by sliding from left/right viewport edge
1067
1049
  * ---
1068
1050
  *
1069
1051
  *
1070
1052
  * ### **Events:**
1071
1053
  * - **skf-drawer-opened** - Fires when the drawer is opened (after transitioned in)
1072
- * - **skf-drawer-closing** - Fires when the drawer is closed (before transitioned out)
1054
+ * - **skf-drawer-closing** - Fires when the drawer is closing (before transitioned out)
1073
1055
  * - **skf-drawer-closed** - Fires when the drawer is closed (after transitioned out)
1074
1056
  *
1075
1057
  * ### **Slots:**
@@ -1098,7 +1080,7 @@ export type CustomElements = {
1098
1080
  "skf-nav": Partial<SkfNavProps & BaseProps & BaseEvents>;
1099
1081
 
1100
1082
  /**
1101
- * The `<skf-header>` component is to be used as the site-header in the app
1083
+ * The `<skf-header>` component is to be used as the site-header in the app. The navigation will be collapsed to mobile-view if the menu items exceed the available width.
1102
1084
  * ---
1103
1085
  *
1104
1086
  *
@@ -1108,7 +1090,9 @@ export type CustomElements = {
1108
1090
  "skf-header": Partial<SkfHeaderProps & BaseProps & BaseEvents>;
1109
1091
 
1110
1092
  /**
1111
- * The skf-text-field is used to create a text input field. It can be used inside a form element or standalone.
1093
+ * The skf-text-field is used to create a text input field. It can be used inside a form element or standalone
1094
+ *
1095
+ * See [zeroheight](https://zeroheight.com/853e936c9/p/9481fa-input-field) for design principles
1112
1096
  * ---
1113
1097
  *
1114
1098
  *
@@ -1132,38 +1116,30 @@ export type CustomElements = {
1132
1116
  "skf-link": Partial<SkfLinkProps & BaseProps & BaseEvents>;
1133
1117
 
1134
1118
  /**
1135
- * The `<skf-menu>` is a component that displays a list of actions or options.
1119
+ * The `<skf-menu-item>` is used in conjunction with the `<skf-menu>` component
1136
1120
  * ---
1137
1121
  *
1138
1122
  *
1139
- * ### **Events:**
1140
- * - **skf-opened** - Fired when the menu is opened
1141
- * - **skf-closed** - Fired when the menu is closed
1142
- *
1143
1123
  * ### **Slots:**
1144
- * - _default_ - The menu popover content
1124
+ * - _default_ - The component's main content
1145
1125
  */
1146
- "skf-menu": Partial<SkfMenuProps & BaseProps & BaseEvents>;
1126
+ "skf-menu-item": Partial<SkfMenuItemProps & BaseProps & BaseEvents>;
1147
1127
 
1148
1128
  /**
1149
- * The `<skf-menu-item>` is a component that displays a list of actions or options.
1129
+ * The `<skf-menu>` is a component that displays a list of actions or options
1130
+ *
1131
+ * See [zeroheight](https://zeroheight.com/853e936c9/p/983e5d-popover) for design principles
1150
1132
  * ---
1151
1133
  *
1152
1134
  *
1153
1135
  * ### **Events:**
1154
- * - **my-tag-my-event** - Fired when something happens
1155
- * - **click** - Fired when the component is clicked
1156
- * - **mouseover** - Fired when the mouse is over the component
1157
- * - **mouseout** - Fired when the mouse is out of the component
1158
- * - **focus** - Fired when the component is focused
1159
- * - **blur** - Fired when the component is blurred
1160
- * - **change** - Fired when the component's value changes
1136
+ * - **skf-opened** - Fired when the menu is opened
1137
+ * - **skf-closed** - Fired when the menu is closed
1161
1138
  *
1162
1139
  * ### **Slots:**
1163
- * - _default_ - The component's main content
1164
- * - **my-named-slot** - A named slot of the component
1140
+ * - _default_ - The menu popover content
1165
1141
  */
1166
- "skf-menu-item": Partial<SkfMenuItemProps & BaseProps & BaseEvents>;
1142
+ "skf-menu": Partial<SkfMenuProps & BaseProps & BaseEvents>;
1167
1143
 
1168
1144
  /**
1169
1145
  * The `<skf-nav>` is a component that displays a list of <nav-items>.
@@ -1177,6 +1153,8 @@ export type CustomElements = {
1177
1153
 
1178
1154
  /**
1179
1155
  * The `<skf-popover>` is a general purpose component that displays the slot content in a popover.
1156
+ *
1157
+ * See [zeroheight](https://zeroheight.com/853e936c9/p/983e5d-popover) for design principles
1180
1158
  * ---
1181
1159
  *
1182
1160
  *
@@ -1198,11 +1176,13 @@ export type CustomElements = {
1198
1176
 
1199
1177
  /**
1200
1178
  * The `<skf-radio>` component is used to create a radio input
1179
+ *
1180
+ * See [zeroheight](https://zeroheight.com/853e936c9/p/78d5dd-radio-button) for design principles
1201
1181
  * ---
1202
1182
  *
1203
1183
  *
1204
1184
  * ### **Events:**
1205
- * - **change** - {object} - When the value of the input changes
1185
+ * - **change** - When the value of the input changes
1206
1186
  *
1207
1187
  * ### **Slots:**
1208
1188
  * - _default_ - The radios label. Alternatively, you can use the `label` attribute.
@@ -1215,10 +1195,10 @@ export type CustomElements = {
1215
1195
  *
1216
1196
  *
1217
1197
  * ### **Events:**
1218
- * - **my-tag-my-event** - Fired when something happens
1198
+ * - **skf-segmented-button-item-select** - Fired when selected
1219
1199
  *
1220
1200
  * ### **Slots:**
1221
- * - _default_ - The items label
1201
+ * - _default_ - Label for the button
1222
1202
  */
1223
1203
  "skf-segmented-button-item": Partial<SkfSegmentedButtonItemProps & BaseProps & BaseEvents>;
1224
1204
 
@@ -1235,18 +1215,14 @@ export type CustomElements = {
1235
1215
  "skf-segmented-button": Partial<SkfSegmentedButtonProps & BaseProps & BaseEvents>;
1236
1216
 
1237
1217
  /**
1238
- * The `<skf-select-option>` is a component is used nested in a skf-select or skf-select-option-group.
1218
+ * The `<skf-select-option-group>` is a component that groups select-options
1239
1219
  * ---
1240
1220
  *
1241
1221
  *
1242
- * ### **Events:**
1243
- * - **skf-select-option:select** - {detail: { value: string | null, option: SkfSelectOption }} Fires when the option is selected/deselected.
1244
- *
1245
1222
  * ### **Slots:**
1246
- * - _default_ - The option's text content
1247
- * - **icon** - The option's slot for icon or custom meta information (svg).
1223
+ * - _default_ - The component's placeholder content
1248
1224
  */
1249
- "skf-select-option": Partial<SkfSelectOptionProps & BaseProps & BaseEvents>;
1225
+ "skf-select-option-group": Partial<SkfSelectOptionGroupProps & BaseProps & BaseEvents>;
1250
1226
 
1251
1227
  /**
1252
1228
  * The `<skf-tag>` is a component that displays a list of actions or options
@@ -1260,6 +1236,8 @@ export type CustomElements = {
1260
1236
 
1261
1237
  /**
1262
1238
  * The `<skf-select>` is a component that displays a list of actions or options. A click in the options list toggle the selected state of the option. Use it together with the ´skf-select-option` tag.
1239
+ *
1240
+ * See [zeroheight](https://zeroheight.com/853e936c9/p/91c9f0-select-and-combobox) for design principles
1263
1241
  * ---
1264
1242
  *
1265
1243
  *
@@ -1267,8 +1245,8 @@ export type CustomElements = {
1267
1245
  * - **change** - Fired when the selected option(s) changes
1268
1246
  * - **invalid** - Fired when the select is invalid
1269
1247
  * - **reset** - Fired when the form is reset
1270
- * - **skf-select:dropdown** - {detail: {expanded: boolean}} Fired when the select dropdown is toggled
1271
- * - **skf-select-option:select** - {detail: {value: string | null, option: SkfSelectOption}} Fired when the select dropdown is toggled
1248
+ * - **skf-select-dropdown** - {detail: {expanded: boolean}} Fired when the select dropdown is toggled
1249
+ * - **skf-select-option-select** - {detail: {value: string | null, option: SkfSelectOption}} Fired when the select dropdown is toggled
1272
1250
  *
1273
1251
  * ### **Slots:**
1274
1252
  * - _default_ - The select's placeholder content
@@ -1276,14 +1254,18 @@ export type CustomElements = {
1276
1254
  "skf-select": Partial<SkfSelectProps & BaseProps & BaseEvents>;
1277
1255
 
1278
1256
  /**
1279
- * The `<skf-select-option-group>` is a component that groups select-options
1257
+ * The `<skf-select-option>` is a component is used nested in a skf-select or skf-select-option-group.
1280
1258
  * ---
1281
1259
  *
1282
1260
  *
1261
+ * ### **Events:**
1262
+ * - **skf-select-option-select** - {detail: { value: string | null, option: SkfSelectOption }} Fires when the option is selected/deselected.
1263
+ *
1283
1264
  * ### **Slots:**
1284
- * - _default_ - The component's placeholder content
1265
+ * - _default_ - The option's text content
1266
+ * - **icon** - The option's slot for icon or custom meta information (svg).
1285
1267
  */
1286
- "skf-select-option-group": Partial<SkfSelectOptionGroupProps & BaseProps & BaseEvents>;
1268
+ "skf-select-option": Partial<SkfSelectOptionProps & BaseProps & BaseEvents>;
1287
1269
 
1288
1270
  /**
1289
1271
  * The `<skf-stepper-item>` is used in conjunction with the `<skf-stepper>` component