@skf-design-system/ui-components 1.0.1-beta.1 → 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 (299) hide show
  1. package/README.md +13 -26
  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 +9 -13
  8. package/dist/components/accordion/accordion.component.js +12 -13
  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 +6 -10
  12. package/dist/components/alert/alert.component.js +15 -16
  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 +2 -2
  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 +18 -30
  27. package/dist/components/card/card.styles.js +25 -28
  28. package/dist/components/checkbox/checkbox.component.d.ts +16 -14
  29. package/dist/components/checkbox/checkbox.component.js +5 -5
  30. package/dist/components/checkbox/checkbox.styles.d.ts +1 -2
  31. package/dist/components/checkbox/checkbox.styles.js +1 -5
  32. package/dist/components/date-picker/datepicker.calendar.component.d.ts +5 -0
  33. package/dist/components/date-picker/datepicker.calendar.component.js +128 -95
  34. package/dist/components/date-picker/datepicker.calendar.styles.js +35 -25
  35. package/dist/components/date-picker/datepicker.component.d.ts +5 -0
  36. package/dist/components/date-picker/datepicker.component.js +117 -97
  37. package/dist/components/date-picker/datepicker.helpers.d.ts +3 -2
  38. package/dist/components/date-picker/datepicker.helpers.js +46 -39
  39. package/dist/components/date-picker/datepicker.styles.js +14 -26
  40. package/dist/components/date-picker-input/datepicker-input.component.d.ts +14 -5
  41. package/dist/components/date-picker-input/datepicker-input.component.js +264 -219
  42. package/dist/components/date-picker-input/datepicker-input.helpers.d.ts +36 -2
  43. package/dist/components/date-picker-input/datepicker-input.helpers.js +25 -23
  44. package/dist/components/date-picker-input/datepicker-input.styles.js +6 -10
  45. package/dist/components/dialog/dialog.component.d.ts +20 -29
  46. package/dist/components/dialog/dialog.component.js +85 -75
  47. package/dist/components/dialog/dialog.styles.js +4 -4
  48. package/dist/components/divider/divider.component.d.ts +4 -8
  49. package/dist/components/divider/divider.component.js +24 -46
  50. package/dist/components/divider/divider.styles.js +34 -30
  51. package/dist/components/drawer/drawer.component.d.ts +61 -0
  52. package/dist/components/drawer/drawer.component.js +125 -0
  53. package/dist/components/drawer/drawer.d.ts +8 -0
  54. package/dist/components/drawer/drawer.js +6 -0
  55. package/dist/components/drawer/drawer.styles.js +71 -0
  56. package/dist/components/header/header.component.d.ts +46 -0
  57. package/dist/components/header/header.component.js +116 -0
  58. package/dist/components/header/header.d.ts +8 -0
  59. package/dist/components/header/header.js +6 -0
  60. package/dist/components/header/header.styles.js +68 -0
  61. package/dist/components/heading/heading.component.d.ts +3 -11
  62. package/dist/components/heading/heading.component.js +24 -23
  63. package/dist/components/heading/heading.styles.d.ts +1 -2
  64. package/dist/components/heading/heading.styles.js +1 -1
  65. package/dist/components/icon/icon.component.d.ts +11 -17
  66. package/dist/components/icon/icon.component.js +2 -2
  67. package/dist/components/icon/icon.styles.d.ts +1 -2
  68. package/dist/components/icon/icon.styles.js +1 -1
  69. package/dist/components/input/input.component.d.ts +30 -31
  70. package/dist/components/input/input.component.js +138 -125
  71. package/dist/components/input/input.controllers.d.ts +20 -6
  72. package/dist/components/input/input.controllers.js +14 -10
  73. package/dist/components/link/link.component.d.ts +12 -14
  74. package/dist/components/link/link.component.js +35 -34
  75. package/dist/components/link/link.styles.d.ts +1 -2
  76. package/dist/components/link/link.styles.js +24 -20
  77. package/dist/components/loader/loader.component.d.ts +1 -1
  78. package/dist/components/loader/loader.component.js +36 -40
  79. package/dist/components/loader/loader.styles.d.ts +1 -2
  80. package/dist/components/loader/loader.styles.js +40 -32
  81. package/dist/components/logo/logo.component.d.ts +4 -5
  82. package/dist/components/logo/logo.component.js +1 -1
  83. package/dist/components/menu/menu-item.component.d.ts +13 -0
  84. package/dist/components/{menu-item → menu}/menu-item.component.js +3 -3
  85. package/dist/components/menu/menu.component.d.ts +10 -8
  86. package/dist/components/menu/menu.component.js +8 -10
  87. package/dist/components/nav/nav-item.component.d.ts +18 -0
  88. package/dist/components/nav/nav-item.component.js +38 -0
  89. package/dist/components/nav/nav-item.d.ts +8 -0
  90. package/dist/components/nav/nav-item.js +6 -0
  91. package/dist/components/nav/nav-item.styles.js +39 -0
  92. package/dist/components/nav/nav.component.d.ts +17 -0
  93. package/dist/components/nav/nav.component.js +34 -0
  94. package/dist/components/nav/nav.d.ts +8 -0
  95. package/dist/components/nav/nav.js +6 -0
  96. package/dist/components/nav/nav.styles.d.ts +1 -0
  97. package/dist/components/nav/nav.styles.js +17 -0
  98. package/dist/components/popover/popover.component.d.ts +11 -8
  99. package/dist/components/popover/popover.component.js +24 -26
  100. package/dist/components/progress/progress.component.d.ts +2 -2
  101. package/dist/components/progress/progress.component.js +31 -37
  102. package/dist/components/progress/progress.styles.js +40 -35
  103. package/dist/components/radio/radio.component.d.ts +19 -13
  104. package/dist/components/radio/radio.component.js +12 -12
  105. package/dist/components/radio/radio.styles.d.ts +1 -2
  106. package/dist/components/radio/radio.styles.js +1 -1
  107. package/dist/components/segmented-button/segmented-button-item.component.d.ts +36 -0
  108. package/dist/components/segmented-button/segmented-button-item.component.js +56 -0
  109. package/dist/components/segmented-button/segmented-button-item.d.ts +8 -0
  110. package/dist/components/segmented-button/segmented-button-item.js +6 -0
  111. package/dist/components/segmented-button/segmented-button-item.styles.d.ts +1 -0
  112. package/dist/components/segmented-button/segmented-button-item.styles.js +62 -0
  113. package/dist/components/segmented-button/segmented-button.component.d.ts +30 -0
  114. package/dist/components/segmented-button/segmented-button.component.js +73 -0
  115. package/dist/components/segmented-button/segmented-button.d.ts +8 -0
  116. package/dist/components/segmented-button/segmented-button.js +6 -0
  117. package/dist/components/segmented-button/segmented-button.styles.d.ts +1 -0
  118. package/dist/components/segmented-button/segmented-button.styles.js +16 -0
  119. package/dist/components/{select-option-group → select}/select-option-group.component.js +1 -1
  120. package/dist/components/select/select-option-group.style.d.ts +1 -0
  121. package/dist/components/{select-option → select}/select-option.component.d.ts +7 -8
  122. package/dist/components/{select-option → select}/select-option.component.js +15 -15
  123. package/dist/components/select/select-option.controllers.d.ts +15 -0
  124. package/dist/components/select/select-option.styles.d.ts +1 -0
  125. package/dist/components/select/select.component.d.ts +16 -15
  126. package/dist/components/select/select.component.js +19 -19
  127. package/dist/components/select/select.controllers.d.ts +21 -10
  128. package/dist/components/select/select.controllers.js +31 -23
  129. package/dist/components/select/select.stories.icons.d.ts +7 -0
  130. package/dist/components/{stepper-item → stepper}/stepper-item.component.js +8 -8
  131. package/dist/components/stepper/stepper-item.styles.d.ts +1 -0
  132. package/dist/components/stepper/stepper.component.d.ts +4 -3
  133. package/dist/components/stepper/stepper.component.js +15 -15
  134. package/dist/components/stepper/stepper.helpers.d.ts +1 -1
  135. package/dist/components/switch/switch.component.d.ts +7 -6
  136. package/dist/components/switch/switch.component.js +21 -21
  137. package/dist/components/tab/tab.component.js +1 -1
  138. package/dist/components/tab-group/tab-group.component.js +1 -1
  139. package/dist/components/tab-panel/tab-panel.component.js +1 -1
  140. package/dist/components/tag/tag.component.d.ts +14 -16
  141. package/dist/components/tag/tag.component.js +36 -39
  142. package/dist/components/textarea/textarea.component.d.ts +10 -11
  143. package/dist/components/textarea/textarea.component.js +65 -67
  144. package/dist/components/{toast-item → toast}/toast-item.d.ts +2 -0
  145. package/dist/components/{toast-item → toast}/toast-item.js +4 -0
  146. package/dist/components/{toast-wrapper → toast}/toast-wrapper.component.js +1 -1
  147. package/dist/components/toast/toast-wrapper.styles.d.ts +1 -0
  148. package/dist/components/toast/toast.component.d.ts +6 -5
  149. package/dist/components/toast/toast.component.js +15 -15
  150. package/dist/components/toast/toast.singleton.d.ts +4 -4
  151. package/dist/components/toast/toast.singleton.js +12 -12
  152. package/dist/components/tooltip/tooltip.component.d.ts +7 -7
  153. package/dist/components/tooltip/tooltip.component.js +16 -11
  154. package/dist/custom-elements.json +2718 -2073
  155. package/dist/index.d.ts +16 -6
  156. package/dist/index.js +103 -75
  157. package/dist/internal/base-classes/popover/popover.base.d.ts +24 -9
  158. package/dist/internal/base-classes/popover/popover.base.js +138 -77
  159. package/dist/internal/base-classes/popover/popover.styles.js +14 -1
  160. package/dist/internal/components/hint/hint.component.d.ts +2 -2
  161. package/dist/internal/components/hint/hint.component.js +2 -2
  162. package/dist/internal/components/hint/hint.styles.d.ts +1 -2
  163. package/dist/internal/components/hint/hint.styles.js +1 -1
  164. package/dist/internal/constants/iconSeverity.d.ts +3 -2
  165. package/dist/internal/constants/iconSeverity.js +2 -3
  166. package/dist/internal/controllers/elementOverflowController.d.ts +13 -0
  167. package/dist/internal/controllers/popover.controller.d.ts +12 -7
  168. package/dist/internal/controllers/popover.controller.js +9 -14
  169. package/dist/internal/helpers/hintSeverity.d.ts +2 -2
  170. package/dist/internal/helpers/hintSeverity.js +1 -1
  171. package/dist/internal/helpers/utilityTypes.d.ts +1 -1
  172. package/dist/internal/helpers/uuid.d.ts +15 -0
  173. package/dist/internal/helpers/uuid.js +14 -0
  174. package/dist/internal/storybook/styles.d.ts +1 -0
  175. package/dist/internal/types/formField.d.ts +1 -1
  176. package/dist/internal/types.d.ts +18 -0
  177. package/dist/styles/component.styles.d.ts +1 -2
  178. package/dist/styles/component.styles.js +1 -1
  179. package/dist/styles/form-field.styles.js +11 -6
  180. package/dist/styles/global.css +1 -1
  181. package/dist/types/jsx/custom-element-jsx.d.ts +673 -1310
  182. package/dist/types/vue/index.d.ts +456 -319
  183. package/dist/vscode.html-custom-data.json +402 -1080
  184. package/dist/web-types.json +986 -767
  185. package/package.json +44 -55
  186. package/dist/components/collapse/collapse.component.d.ts +0 -40
  187. package/dist/components/collapse/collapse.component.js +0 -86
  188. package/dist/components/collapse/collapse.d.ts +0 -8
  189. package/dist/components/collapse/collapse.js +0 -6
  190. package/dist/components/collapse/collapse.styles.d.ts +0 -2
  191. package/dist/components/collapse/collapse.styles.js +0 -77
  192. package/dist/components/menu-item/menu-item.component.d.ts +0 -25
  193. package/dist/components/select-option/select-option.controllers.d.ts +0 -9
  194. package/dist/internal/constants/heading.d.ts +0 -2
  195. package/dist/react/index.d.ts +0 -36
  196. package/dist/react/index.js +0 -36
  197. package/dist/react/skf-accordion/index.d.ts +0 -3
  198. package/dist/react/skf-accordion/index.js +0 -13
  199. package/dist/react/skf-alert/index.d.ts +0 -9
  200. package/dist/react/skf-alert/index.js +0 -17
  201. package/dist/react/skf-breadcrumb/index.d.ts +0 -9
  202. package/dist/react/skf-breadcrumb/index.js +0 -17
  203. package/dist/react/skf-breadcrumb-item/index.d.ts +0 -3
  204. package/dist/react/skf-breadcrumb-item/index.js +0 -13
  205. package/dist/react/skf-button/index.d.ts +0 -9
  206. package/dist/react/skf-button/index.js +0 -17
  207. package/dist/react/skf-card/index.d.ts +0 -3
  208. package/dist/react/skf-card/index.js +0 -13
  209. package/dist/react/skf-checkbox/index.d.ts +0 -9
  210. package/dist/react/skf-checkbox/index.js +0 -17
  211. package/dist/react/skf-collapse/index.d.ts +0 -9
  212. package/dist/react/skf-collapse/index.js +0 -17
  213. package/dist/react/skf-datepicker/index.d.ts +0 -12
  214. package/dist/react/skf-datepicker/index.js +0 -18
  215. package/dist/react/skf-dialog/index.d.ts +0 -15
  216. package/dist/react/skf-dialog/index.js +0 -19
  217. package/dist/react/skf-divider/index.d.ts +0 -3
  218. package/dist/react/skf-divider/index.js +0 -13
  219. package/dist/react/skf-heading/index.d.ts +0 -3
  220. package/dist/react/skf-heading/index.js +0 -13
  221. package/dist/react/skf-icon/index.d.ts +0 -3
  222. package/dist/react/skf-icon/index.js +0 -13
  223. package/dist/react/skf-input/index.d.ts +0 -12
  224. package/dist/react/skf-input/index.js +0 -18
  225. package/dist/react/skf-link/index.d.ts +0 -3
  226. package/dist/react/skf-link/index.js +0 -13
  227. package/dist/react/skf-loader/index.d.ts +0 -3
  228. package/dist/react/skf-loader/index.js +0 -13
  229. package/dist/react/skf-logo/index.d.ts +0 -3
  230. package/dist/react/skf-logo/index.js +0 -13
  231. package/dist/react/skf-menu/index.d.ts +0 -12
  232. package/dist/react/skf-menu/index.js +0 -18
  233. package/dist/react/skf-menu-item/index.d.ts +0 -27
  234. package/dist/react/skf-menu-item/index.js +0 -23
  235. package/dist/react/skf-popover/index.d.ts +0 -12
  236. package/dist/react/skf-popover/index.js +0 -18
  237. package/dist/react/skf-progress/index.d.ts +0 -3
  238. package/dist/react/skf-progress/index.js +0 -13
  239. package/dist/react/skf-radio/index.d.ts +0 -9
  240. package/dist/react/skf-radio/index.js +0 -17
  241. package/dist/react/skf-select/index.d.ts +0 -21
  242. package/dist/react/skf-select/index.js +0 -21
  243. package/dist/react/skf-select-option/index.d.ts +0 -9
  244. package/dist/react/skf-select-option/index.js +0 -17
  245. package/dist/react/skf-select-option-group/index.d.ts +0 -3
  246. package/dist/react/skf-select-option-group/index.js +0 -13
  247. package/dist/react/skf-stepper/index.d.ts +0 -9
  248. package/dist/react/skf-stepper/index.js +0 -17
  249. package/dist/react/skf-stepper-item/index.d.ts +0 -9
  250. package/dist/react/skf-stepper-item/index.js +0 -17
  251. package/dist/react/skf-switch/index.d.ts +0 -3
  252. package/dist/react/skf-switch/index.js +0 -13
  253. package/dist/react/skf-tab/index.d.ts +0 -12
  254. package/dist/react/skf-tab/index.js +0 -18
  255. package/dist/react/skf-tab-group/index.d.ts +0 -3
  256. package/dist/react/skf-tab-group/index.js +0 -13
  257. package/dist/react/skf-tab-panel/index.d.ts +0 -3
  258. package/dist/react/skf-tab-panel/index.js +0 -13
  259. package/dist/react/skf-tag/index.d.ts +0 -3
  260. package/dist/react/skf-tag/index.js +0 -13
  261. package/dist/react/skf-textarea/index.d.ts +0 -12
  262. package/dist/react/skf-textarea/index.js +0 -18
  263. package/dist/react/skf-toast/index.d.ts +0 -3
  264. package/dist/react/skf-toast/index.js +0 -13
  265. package/dist/react/skf-toast-wrapper/index.d.ts +0 -3
  266. package/dist/react/skf-toast-wrapper/index.js +0 -13
  267. package/dist/react/skf-tooltip/index.d.ts +0 -12
  268. package/dist/react/skf-tooltip/index.js +0 -18
  269. /package/dist/components/{breadcrumb-item/breadcrumb-item.styles.d.ts → accordion/accordion-item.styles.d.ts} +0 -0
  270. /package/dist/components/{collapse/collapse.test.d.ts → accordion/accordion-item.test.d.ts} +0 -0
  271. /package/dist/components/{breadcrumb-item → breadcrumb}/breadcrumb-item.component.d.ts +0 -0
  272. /package/dist/components/{breadcrumb-item → breadcrumb}/breadcrumb-item.d.ts +0 -0
  273. /package/dist/components/{menu-item/menu-item.styles.d.ts → breadcrumb/breadcrumb-item.styles.d.ts} +0 -0
  274. /package/dist/components/{select-option-group/select-option-group.style.d.ts → drawer/drawer.styles.d.ts} +0 -0
  275. /package/dist/components/{select-option/select-option.styles.d.ts → header/header.styles.d.ts} +0 -0
  276. /package/dist/components/{menu-item → menu}/menu-item.d.ts +0 -0
  277. /package/dist/components/{menu-item → menu}/menu-item.js +0 -0
  278. /package/dist/components/{stepper-item/stepper-item.styles.d.ts → menu/menu-item.styles.d.ts} +0 -0
  279. /package/dist/components/{menu-item → menu}/menu-item.styles.js +0 -0
  280. /package/dist/components/{toast-wrapper/toast-wrapper.styles.d.ts → nav/nav-item.styles.d.ts} +0 -0
  281. /package/dist/components/{select-option-group → select}/select-option-group.component.d.ts +0 -0
  282. /package/dist/components/{select-option-group → select}/select-option-group.d.ts +0 -0
  283. /package/dist/components/{select-option-group → select}/select-option-group.js +0 -0
  284. /package/dist/components/{select-option-group → select}/select-option-group.style.js +0 -0
  285. /package/dist/components/{select-option → select}/select-option.d.ts +0 -0
  286. /package/dist/components/{select-option → select}/select-option.js +0 -0
  287. /package/dist/components/{select-option → select}/select-option.styles.js +0 -0
  288. /package/dist/components/{stepper-item → stepper}/stepper-item.component.d.ts +0 -0
  289. /package/dist/components/{stepper-item → stepper}/stepper-item.d.ts +0 -0
  290. /package/dist/components/{stepper-item → stepper}/stepper-item.js +0 -0
  291. /package/dist/components/{stepper-item → stepper}/stepper-item.styles.js +0 -0
  292. /package/dist/components/{toast-item → toast}/toast-item.component.d.ts +0 -0
  293. /package/dist/components/{toast-item → toast}/toast-item.component.js +0 -0
  294. /package/dist/components/{toast-item → toast}/toast-item.styles.d.ts +0 -0
  295. /package/dist/components/{toast-item → toast}/toast-item.styles.js +0 -0
  296. /package/dist/components/{toast-wrapper → toast}/toast-wrapper.component.d.ts +0 -0
  297. /package/dist/components/{toast-wrapper → toast}/toast-wrapper.d.ts +0 -0
  298. /package/dist/components/{toast-wrapper → toast}/toast-wrapper.js +0 -0
  299. /package/dist/components/{toast-wrapper → toast}/toast-wrapper.styles.js +0 -0
@@ -1,42 +1,80 @@
1
1
  import type { DefineComponent } from "vue";
2
2
 
3
+ import type { SkfIcon } from "../../components/icon/icon.component.js";
4
+ import type { SkfAccordionItem, CustomEvent } from "../../components/accordion-item/accordion-item.component.js";
3
5
  import type { SkfAccordion } from "../../components/accordion/accordion.component.js";
4
6
  import type { SkfAlert } from "../../components/alert/alert.component.js";
5
- import type { SkfBreadcrumb } from "../../components/breadcrumb/breadcrumb.component.js";
6
7
  import type { SkfBreadcrumbItem } from "../../components/breadcrumb-item/breadcrumb-item.component.js";
7
- import type { SkfButton } from "../../components/button/button.component.js";
8
+ import type { SkfBreadcrumb } from "../../components/breadcrumb/breadcrumb.component.js";
9
+ import type { SkfLoader } from "../../components/loader/loader.component.js";
10
+ import type { SkfButton, CustomEvent } from "../../components/button/button.component.js";
8
11
  import type { SkfCard } from "../../components/card/card.component.js";
9
- import type { SkfCheckbox } from "../../components/checkbox/checkbox.component.js";
10
- import type { SkfCollapse, CustomEvent } from "../../components/collapse/collapse.component.js";
12
+ import type { SkfCheckbox, Event } from "../../components/checkbox/checkbox.component.js";
11
13
  import type { SkfDatePicker } from "../../components/datepicker/datepicker.component.js";
12
- import type { SkfDialog } from "../../components/dialog/dialog.component.js";
13
- import type { SkfDivider } from "../../components/divider/divider.component.js";
14
14
  import type { SkfHeading } from "../../components/heading/heading.component.js";
15
- import type { SkfIcon } from "../../components/icon/icon.component.js";
16
- import type { SkfInput } from "../../components/input/input.component.js";
17
- import type { SkfLink } from "../../components/link/link.component.js";
18
- import type { SkfLoader } from "../../components/loader/loader.component.js";
15
+ import type { SkfDialog, CustomEvent } from "../../components/dialog/dialog.component.js";
16
+ import type { SkfDivider } from "../../components/divider/divider.component.js";
17
+ import type { SkfDrawer, CustomEvent } from "../../components/drawer/drawer.component.js";
19
18
  import type { SkfLogo } from "../../components/logo/logo.component.js";
20
- import type { SkfMenu } from "../../components/menu/menu.component.js";
21
- import type { SkfMenuItem, CustomEvent } from "../../components/menu-item/menu-item.component.js";
22
- import type { SkfPopover } from "../../components/popover/popover.component.js";
19
+ import type { SkfNav } from "../../components/nav/nav.component.js";
20
+ import type { SkfHeader } from "../../components/header/header.component.js";
21
+ import type { SkfInput, CustomEvent } from "../../components/input/input.component.js";
22
+ import type { SkfLink } from "../../components/link/link.component.js";
23
+ import type { SkfMenuItem } from "../../components/menu-item/menu-item.component.js";
24
+ import type { SkfMenu, CustomEvent } from "../../components/menu/menu.component.js";
25
+ import type { SkfNavItem } from "../../components/nav-item/nav-item.component.js";
26
+ import type { SkfPopover, CustomEvent } from "../../components/popover/popover.component.js";
23
27
  import type { SkfProgress } from "../../components/progress/progress.component.js";
24
- import type { SkfRadio } from "../../components/radio/radio.component.js";
25
- import type { SkfSelect } from "../../components/select/select.component.js";
26
- import type { SkfSelectOption } from "../../components/select-option/select-option.component.js";
28
+ import type { SkfRadio, Event } from "../../components/radio/radio.component.js";
29
+ import type {
30
+ SkfSegmentedButtonItem,
31
+ CustomEvent,
32
+ } from "../../components/segmented-button-item/segmented-button-item.component.js";
33
+ import type { SkfSegmentedButton } from "../../components/segmented-button/segmented-button.component.js";
27
34
  import type { SkfSelectOptionGroup } from "../../components/select-option-group/select-option-group.component.js";
28
- import type { SkfStepper } from "../../components/stepper/stepper.component.js";
35
+ import type { SkfTag } from "../../components/tag/tag.component.js";
36
+ import type { SkfSelect, Event, CustomEvent } from "../../components/select/select.component.js";
37
+ import type { SkfSelectOption } from "../../components/select-option/select-option.component.js";
29
38
  import type { SkfStepperItem } from "../../components/stepper-item/stepper-item.component.js";
39
+ import type { SkfStepper, CustomEvent } from "../../components/stepper/stepper.component.js";
30
40
  import type { SkfSwitch } from "../../components/switch/switch.component.js";
31
- import type { SkfTab, CustomEvent } from "../../components/tab/tab.component.js";
32
- import type { SkfTabGroup } from "../../components/tab-group/tab-group.component.js";
33
41
  import type { SkfTabPanel } from "../../components/tab-panel/tab-panel.component.js";
34
- import type { SkfTag } from "../../components/tag/tag.component.js";
42
+ import type { SkfTabGroup } from "../../components/tab-group/tab-group.component.js";
43
+ import type { SkfTab, CustomEvent } from "../../components/tab/tab.component.js";
35
44
  import type { SkfTextArea } from "../../components/textarea/textarea.component.js";
36
- import type { SkfToast } from "../../components/toast/toast.component.js";
37
45
  import type { SkfToastWrapper } from "../../components/toast-wrapper/toast-wrapper.component.js";
46
+ import type { SkfToast } from "../../components/toast/toast.component.js";
38
47
  import type { SkfTooltip } from "../../components/tooltip/tooltip.component.js";
39
48
 
49
+ type SkfIconProps = {
50
+ /** Sets the color of the icon */
51
+ color?: SkfIcon["color"];
52
+ /** If defined, adds an alternate description to use for assistive devices */
53
+ label?: SkfIcon["label"];
54
+ /** Name of the icon to display */
55
+ name?: SkfIcon["name"];
56
+ /** Size of the icon */
57
+ size?: SkfIcon["size"];
58
+ };
59
+
60
+ type SkfAccordionItemProps = {
61
+ /** If true, will animate the expand/accordion-item state */
62
+ animated?: SkfAccordionItem["animated"];
63
+ /** If true, will set the accordion-item to be expanded by default */
64
+ expanded?: SkfAccordionItem["expanded"];
65
+ /** Heading for the accordion-item */
66
+ heading?: SkfAccordionItem["heading"];
67
+ /** Defines which heading element will be rendered */
68
+ "heading-as"?: SkfAccordionItem["headingAs"];
69
+ /** If true, renders the small version */
70
+ small?: SkfAccordionItem["small"];
71
+ /** If true, will truncate the heading in accordion-item state */
72
+ truncate?: SkfAccordionItem["truncate"];
73
+
74
+ /** Event emitted when toggled */
75
+ "onskf-accordion-item-toggle"?: (e: CustomEvent<CustomEvent>) => void;
76
+ };
77
+
40
78
  type SkfAccordionProps = {
41
79
  /** If true, will animate the expand/collapse state */
42
80
  animated?: SkfAccordion["animated"];
@@ -66,6 +104,13 @@ type SkfAlertProps = {
66
104
  "onskf-alert-close"?: (e: CustomEvent<never>) => void;
67
105
  };
68
106
 
107
+ type SkfBreadcrumbItemProps = {
108
+ /** If defined, loads url on click */
109
+ href?: SkfBreadcrumbItem["href"];
110
+ /** If defined, custom onClick where the second return parameter enables custom routing. **Notice!** Only applicable if `href` is defined. */
111
+ onClick?: SkfBreadcrumbItem["onClick"];
112
+ };
113
+
69
114
  type SkfBreadcrumbProps = {
70
115
  /** aria-label for the breadcrumb control */
71
116
  label?: SkfBreadcrumb["label"];
@@ -76,11 +121,13 @@ type SkfBreadcrumbProps = {
76
121
  onclick?: (e: CustomEvent<never>) => void;
77
122
  };
78
123
 
79
- type SkfBreadcrumbItemProps = {
80
- /** If defined, loads url on click */
81
- href?: SkfBreadcrumbItem["href"];
82
- /** If defined, custom onClick where the second return parameter enables custom routing. **Notice!** Only applicable if `href` is defined. */
83
- onClick?: SkfBreadcrumbItem["onClick"];
124
+ type SkfLoaderProps = {
125
+ /** Defines the aria-label */
126
+ "aria-label"?: SkfLoader["ariaLabel"];
127
+ /** If true, inverts the color (to be used on colored backgrounds) */
128
+ invert?: SkfLoader["invert"];
129
+ /** Defines the size of the loader */
130
+ size?: SkfLoader["size"];
84
131
  };
85
132
 
86
133
  type SkfButtonProps = {
@@ -90,8 +137,8 @@ type SkfButtonProps = {
90
137
  disabled?: SkfButton["disabled"];
91
138
  /** If provided, renders an icon before or after the text */
92
139
  icon?: SkfButton["icon"];
93
- /** If true, removes border */
94
- iconOnly?: SkfButton["iconOnly"];
140
+ /** If true, button will take a square shape */
141
+ "icon-only"?: SkfButton["iconOnly"];
95
142
  /** Determines the positioning of the icon in relation to the text */
96
143
  "icon-position"?: SkfButton["iconPosition"];
97
144
  /** If true, hides text & icon and shows loading indicator. **Notice!** Only applicable if `variant` is `primary`. */
@@ -106,7 +153,7 @@ type SkfButtonProps = {
106
153
  variant?: SkfButton["variant"];
107
154
 
108
155
  /** Fires when the button is clicked */
109
- onclick?: (e: CustomEvent<never>) => void;
156
+ onclick?: (e: CustomEvent<CustomEvent>) => void;
110
157
  };
111
158
 
112
159
  type SkfCardProps = {
@@ -146,26 +193,8 @@ type SkfCheckboxProps = {
146
193
  /** The current value of the input field */
147
194
  value?: SkfCheckbox["value"];
148
195
 
149
- /** {object} - When the value of the input changes */
150
- onchange?: (e: CustomEvent<never>) => void;
151
- };
152
-
153
- type SkfCollapseProps = {
154
- /** If true, will animate the expand/collapse state */
155
- animated?: SkfCollapse["animated"];
156
- /** If true, will set the collapse to be expanded by default */
157
- expanded?: SkfCollapse["expanded"];
158
- /** Heading for the collapse */
159
- heading?: SkfCollapse["heading"];
160
- /** Defines which heading element will be rendered */
161
- "heading-as"?: SkfCollapse["headingAs"];
162
- /** If true, renders the small version */
163
- small?: SkfCollapse["small"];
164
- /** If true, will truncate the heading in collapsed state */
165
- truncate?: SkfCollapse["truncate"];
166
-
167
- /** Event emitted when toggled */
168
- "onskf-collapse-toggle"?: (e: CustomEvent<CustomEvent>) => void;
196
+ /** When the value of the input changes */
197
+ onchange?: (e: CustomEvent<Event>) => void;
169
198
  };
170
199
 
171
200
  type SkfDatePickerProps = {
@@ -193,6 +222,13 @@ type SkfDatePickerProps = {
193
222
  "onselected-date-range-changed"?: (e: CustomEvent<never>) => void;
194
223
  };
195
224
 
225
+ type SkfHeadingProps = {
226
+ /** Controls which heading element will be rendered. Should not be used to affect appearance */
227
+ as?: SkfHeading["as"];
228
+ /** If defined, changes the appearance of the heading */
229
+ "styled-as"?: SkfHeading["styledAs"];
230
+ };
231
+
196
232
  type SkfDialogProps = {
197
233
  /** If defined, sets the aria-label for the close button */
198
234
  "close-button-aria-label"?: SkfDialog["closeButtonAriaLabel"];
@@ -204,20 +240,15 @@ type SkfDialogProps = {
204
240
  "no-close-button"?: SkfDialog["noCloseButton"];
205
241
  /** If defined, removes the inner padding */
206
242
  "no-padding"?: SkfDialog["noPadding"];
207
- /** */
243
+ /** If true, indicates that the dialog is active and is available for interaction */
208
244
  open?: SkfDialog["open"];
209
- /** If provided, will run function on dialog close */
210
- onClose?: SkfDialog["onClose"];
211
- /** Method that opens the dialog in modal state */
212
- showModal?: SkfDialog["showModal"];
213
- /** Method that closes the dialog */
214
- close?: SkfDialog["close"];
245
+
215
246
  /** Fires when the dialog is opened (after transitioned in) */
216
- "onskf-dialog-open"?: (e: CustomEvent<never>) => void;
217
- /** Fires when the dialog is closed (before transitioned out) */
218
- "onskf-dialog-close"?: (e: CustomEvent<never>) => void;
247
+ "onskf-dialog-opened"?: (e: CustomEvent<CustomEvent>) => void;
248
+ /** Fires when the dialog is closing (before transitioned out) */
249
+ "onskf-dialog-closing"?: (e: CustomEvent<CustomEvent>) => void;
219
250
  /** Fires when the dialog is closed (after transitioned out) */
220
- onclose?: (e: CustomEvent<never>) => void;
251
+ "onskf-dialog-closed"?: (e: CustomEvent<CustomEvent>) => void;
221
252
  };
222
253
 
223
254
  type SkfDividerProps = {
@@ -229,22 +260,47 @@ type SkfDividerProps = {
229
260
  vertical?: SkfDivider["vertical"];
230
261
  };
231
262
 
232
- type SkfHeadingProps = {
233
- /** Controls which heading element will be rendered. Should not be used to affect appearance */
234
- as?: SkfHeading["as"];
235
- /** If provided, changes the appearance of the heading */
236
- "styled-as"?: SkfHeading["styledAs"];
263
+ type SkfDrawerProps = {
264
+ /** If defined, sets the aria-label for the close button */
265
+ "close-button-aria-label"?: SkfDrawer["closeButtonAriaLabel"];
266
+ /** Heading for the Drawer */
267
+ heading?: SkfDrawer["heading"];
268
+ /** Sets the max-width */
269
+ size?: SkfDrawer["size"];
270
+ /** If true, Drawer is open */
271
+ open?: SkfDrawer["open"];
272
+ /** Placement of the Drawer */
273
+ placement?: SkfDrawer["placement"];
274
+
275
+ /** Fires when the drawer is opened (after transitioned in) */
276
+ "onskf-drawer-opened"?: (e: CustomEvent<CustomEvent>) => void;
277
+ /** Fires when the drawer is closing (before transitioned out) */
278
+ "onskf-drawer-closing"?: (e: CustomEvent<CustomEvent>) => void;
279
+ /** Fires when the drawer is closed (after transitioned out) */
280
+ "onskf-drawer-closed"?: (e: CustomEvent<CustomEvent>) => void;
237
281
  };
238
282
 
239
- type SkfIconProps = {
240
- /** Sets the color of the icon */
241
- color?: SkfIcon["color"];
242
- /** If defined, adds an alternate description to use for assistive devices */
243
- label?: SkfIcon["label"];
244
- /** Name of the icon to display */
245
- name?: SkfIcon["name"];
246
- /** Size of the icon */
247
- size?: SkfIcon["size"];
283
+ type SkfLogoProps = {
284
+ /** Defines the title of the logo */
285
+ title?: SkfLogo["title"];
286
+ /** Defines the color of the logo */
287
+ color?: SkfLogo["color"];
288
+ };
289
+
290
+ type SkfNavProps = {
291
+ /** */
292
+ vertical?: SkfNav["vertical"];
293
+ };
294
+
295
+ type SkfHeaderProps = {
296
+ /** If true, sets header to display in compact mode only (hanburger menu and drawer) */
297
+ compact?: SkfHeader["compact"];
298
+ /** If defined, sets the aria-label for the hamburger button */
299
+ "hamburger-aria-label"?: SkfHeader["hamburgerAriaLabel"];
300
+ /** If defined, sets the app or site's name */
301
+ "site-name"?: SkfHeader["siteName"];
302
+ /** If defined, sets the site's base-url for the "logo-link" */
303
+ "site-url"?: SkfHeader["siteUrl"];
248
304
  };
249
305
 
250
306
  type SkfInputProps = {
@@ -252,7 +308,8 @@ type SkfInputProps = {
252
308
  disabled?: SkfInput["undefined"];
253
309
  /** If true, value is required or must be checked for the form to be submittable */
254
310
  required?: SkfInput["undefined"];
255
- /** -m } */
311
+ /** Indicates whether the value of the control can be automatically completed by the browser. See
312
+ [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/autocomplete) for details. */
256
313
  autocomplete?: SkfInput["autocomplete"];
257
314
  /** Custom aria-label for the clear button. **Notice!** Only applicable to type=search. */
258
315
  "button-aria-label-clear"?: SkfInput["buttonAriaLabelClear"];
@@ -268,7 +325,8 @@ type SkfInputProps = {
268
325
  "hide-label"?: SkfInput["hideLabel"];
269
326
  /** If defined, displays informational text below the field */
270
327
  hint?: SkfInput["hint"];
271
- /** Tells what keyboard to use if applicable */
328
+ /** Provides a hint about the type of data that might be entered by the user while editing the element or its contents. See
329
+ [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/inputMode) for details. */
272
330
  inputmode?: SkfInput["inputmode"];
273
331
  /** If defined, sets the input's label. Alternatively, you can use the `label` attribute. */
274
332
  label?: SkfInput["label"];
@@ -300,7 +358,7 @@ type SkfInputProps = {
300
358
  size?: SkfInput["size"];
301
359
  /** If defined, displays a suffix/adornment after the input-element */
302
360
  trailing?: SkfInput["trailing"];
303
- /** Type of input control */
361
+ /** Type of input */
304
362
  type?: SkfInput["type"];
305
363
  /** Sets validation start */
306
364
  "validate-on"?: SkfInput["validateOn"];
@@ -308,9 +366,9 @@ type SkfInputProps = {
308
366
  value?: SkfInput["value"];
309
367
 
310
368
  /** Fires when the value of the input changes */
311
- onchange?: (e: CustomEvent<never>) => void;
369
+ onchange?: (e: CustomEvent<CustomEvent>) => void;
312
370
  /** Fires when the input is invalid */
313
- oninvalid?: (e: CustomEvent<never>) => void;
371
+ oninvalid?: (e: CustomEvent<CustomEvent>) => void;
314
372
  };
315
373
 
316
374
  type SkfLinkProps = {
@@ -338,43 +396,10 @@ type SkfLinkProps = {
338
396
  target?: SkfLink["target"];
339
397
  /** Defines the type of button */
340
398
  type?: SkfLink["type"];
341
- /** If provided, custom function triggered by click where the second return parameter enables custom routing. */
399
+ /** If defined, accepts a function that runs on click. Forwards optional route as second argument. */
342
400
  onClick?: SkfLink["onClick"];
343
401
  };
344
402
 
345
- type SkfLoaderProps = {
346
- /** Defines the aria-label */
347
- "aria-label"?: SkfLoader["ariaLabel"];
348
- /** If true, inverts the color (to be used on colored backgrounds) */
349
- invert?: SkfLoader["invert"];
350
- /** Defines the size of the loader */
351
- size?: SkfLoader["size"];
352
- /** */
353
- role?: SkfLoader["role"];
354
- /** */
355
- ariaLive?: SkfLoader["ariaLive"];
356
- };
357
-
358
- type SkfLogoProps = {
359
- /** Defines the title of the logo */
360
- title?: SkfLogo["title"];
361
- /** Defines the color of the logo */
362
- color?: SkfLogo["color"];
363
- };
364
-
365
- type SkfMenuProps = {
366
- /** The placement of the menu */
367
- placement?: SkfMenu["placement"];
368
- /** Whether the menu is open */
369
- isOpen?: SkfMenu["isOpen"];
370
- /** The id of the element the menu will be anchored to */
371
- anchor?: SkfMenu["anchor"];
372
- /** Fired when the menu is opened */
373
- onopen?: (e: CustomEvent<never>) => void;
374
- /** Fired when the menu is closed */
375
- onclose?: (e: CustomEvent<never>) => void;
376
- };
377
-
378
403
  type SkfMenuItemProps = {
379
404
  /** Defines the semantic element to render */
380
405
  as?: SkfMenuItem["as"];
@@ -400,41 +425,45 @@ type SkfMenuItemProps = {
400
425
  target?: SkfMenuItem["target"];
401
426
  /** Defines the type of button */
402
427
  type?: SkfMenuItem["type"];
403
- /** If provided, custom function triggered by click where the second return parameter enables custom routing. */
428
+ /** */
429
+ role?: SkfMenuItem["role"];
430
+ /** If defined, accepts a function that runs on click. Forwards optional route as second argument. */
404
431
  onClick?: SkfMenuItem["onClick"];
405
- /** Fired when something happens */
406
- "onmy-tag-my-event"?: (e: CustomEvent<CustomEvent>) => void;
407
- /** Fired when the component is clicked */
408
- onclick?: (e: CustomEvent<never>) => void;
409
- /** Fired when the mouse is over the component */
410
- onmouseover?: (e: CustomEvent<never>) => void;
411
- /** Fired when the mouse is out of the component */
412
- onmouseout?: (e: CustomEvent<never>) => void;
413
- /** Fired when the component is focused */
414
- onfocus?: (e: CustomEvent<never>) => void;
415
- /** Fired when the component is blurred */
416
- onblur?: (e: CustomEvent<never>) => void;
417
- /** Fired when the component's value changes */
418
- onchange?: (e: CustomEvent<never>) => void;
432
+ };
433
+
434
+ type SkfMenuProps = {
435
+ /** The placement of the menu */
436
+ placement?: SkfMenu["undefined"];
437
+ /** The id of the element the menu will be anchored to */
438
+ anchor?: SkfMenu["undefined"];
439
+
440
+ /** Fired when the menu is opened */
441
+ "onskf-opened"?: (e: CustomEvent<CustomEvent>) => void;
442
+ /** Fired when the menu is closed */
443
+ "onskf-closed"?: (e: CustomEvent<CustomEvent>) => void;
444
+ };
445
+
446
+ type SkfNavItemProps = {
447
+ /** */
448
+ href?: SkfNavItem["href"];
449
+ /** */
450
+ icon?: SkfNavItem["icon"];
419
451
  };
420
452
 
421
453
  type SkfPopoverProps = {
454
+ /** The placement of the popover */
455
+ placement?: SkfPopover["undefined"];
456
+ /** The id of the element the menu will be anchored to */
457
+ anchor?: SkfPopover["undefined"];
422
458
  /** If defined, sets a custom offset for the popover */
423
459
  offset?: SkfPopover["offset"];
424
460
  /** If true, hides the arrow */
425
461
  hideArrow?: SkfPopover["hideArrow"];
426
- /** */
427
- arrow?: SkfPopover["arrow"];
428
- /** The placement of the menu */
429
- placement?: SkfPopover["placement"];
430
- /** Whether the menu is open */
431
- isOpen?: SkfPopover["isOpen"];
432
- /** The id of the element the menu will be anchored to */
433
- anchor?: SkfPopover["anchor"];
462
+
434
463
  /** Fired when the menu is opened */
435
- onopen?: (e: CustomEvent<never>) => void;
464
+ "onskf-opened"?: (e: CustomEvent<CustomEvent>) => void;
436
465
  /** Fired when the menu is closed */
437
- onclose?: (e: CustomEvent<never>) => void;
466
+ "onskf-closed"?: (e: CustomEvent<CustomEvent>) => void;
438
467
  };
439
468
 
440
469
  type SkfProgressProps = {
@@ -472,13 +501,52 @@ type SkfRadioProps = {
472
501
  /** The current value of the input field */
473
502
  value?: SkfRadio["value"];
474
503
 
475
- /** {object} - When the value of the input changes */
476
- onchange?: (e: CustomEvent<never>) => void;
504
+ /** When the value of the input changes */
505
+ onchange?: (e: CustomEvent<Event>) => void;
506
+ };
507
+
508
+ type SkfSegmentedButtonItemProps = {
509
+ /** If true, items is marked as disabled */
510
+ disabled?: SkfSegmentedButtonItem["disabled"];
511
+ /** If true, items is marked as selected */
512
+ selected?: SkfSegmentedButtonItem["selected"];
513
+ /** Sets the item value */
514
+ value?: SkfSegmentedButtonItem["value"];
515
+
516
+ /** Fired when selected */
517
+ "onskf-segmented-button-item-select"?: (e: CustomEvent<CustomEvent>) => void;
518
+ };
519
+
520
+ type SkfSegmentedButtonProps = {
521
+ /** If true, allowes multiple items to be selected */
522
+ multiple?: SkfSegmentedButton["multiple"];
523
+ };
524
+
525
+ type SkfSelectOptionGroupProps = {
526
+ /** */
527
+ label?: SkfSelectOptionGroup["label"];
528
+ };
529
+
530
+ type SkfTagProps = {
531
+ /** Specifies Tag size */
532
+ size?: SkfTag["size"];
533
+ /** If defined, displays leading/provided icon */
534
+ icon?: SkfTag["icon"];
535
+ /** If defined, gives the supplied appearance */
536
+ color?: SkfTag["color"];
537
+ /** If true, adds trailing button to remove tag */
538
+ removable?: SkfTag["removable"];
539
+ /** If defined, accepts a function that runs on click */
540
+ onClick?: SkfTag["onClick"];
541
+ /** If defined, accepts a function that runs on click. Self removal can be overridden by using `event.stopPropagation()`. */
542
+ onRemove?: SkfTag["onRemove"];
477
543
  };
478
544
 
479
545
  type SkfSelectProps = {
480
- /** If true, the select is disabled `default: false` */
546
+ /** If true, the select is disabled */
481
547
  disabled?: SkfSelect["undefined"];
548
+ /** If true, the select is required */
549
+ required?: SkfSelect["undefined"];
482
550
  /** Sets the first visible text on the component */
483
551
  "button-label"?: SkfSelect["buttonLabel"];
484
552
  /** If defined, forces component to invalid state until removed */
@@ -516,15 +584,15 @@ type SkfSelectProps = {
516
584
  /** */
517
585
  _selectedOptions?: SkfSelect["_selectedOptions"];
518
586
  /** Fired when the selected option(s) changes */
519
- onchange?: (e: CustomEvent<never>) => void;
587
+ onchange?: (e: CustomEvent<Event>) => void;
520
588
  /** Fired when the select is invalid */
521
- oninvalid?: (e: CustomEvent<never>) => void;
589
+ oninvalid?: (e: CustomEvent<Event>) => void;
522
590
  /** Fired when the form is reset */
523
- onreset?: (e: CustomEvent<never>) => void;
591
+ onreset?: (e: CustomEvent<Event>) => void;
524
592
  /** {detail: {expanded: boolean}} Fired when the select dropdown is toggled */
525
- "onskf-select:dropdown"?: (e: CustomEvent<never>) => void;
593
+ "onskf-select-dropdown"?: (e: CustomEvent<CustomEvent>) => void;
526
594
  /** {detail: {value: string | null, option: SkfSelectOption}} Fired when the select dropdown is toggled */
527
- "onskf-select-option:select"?: (e: CustomEvent<never>) => void;
595
+ "onskf-select-option-select"?: (e: CustomEvent<CustomEvent>) => void;
528
596
  };
529
597
 
530
598
  type SkfSelectOptionProps = {
@@ -549,22 +617,7 @@ type SkfSelectOptionProps = {
549
617
  /** */
550
618
  _shortcutUpdate?: SkfSelectOption["_shortcutUpdate"];
551
619
  /** {detail: { value: string | null, option: SkfSelectOption }} Fires when the option is selected/deselected. */
552
- "onskf-select-option:select"?: (e: CustomEvent<never>) => void;
553
- };
554
-
555
- type SkfSelectOptionGroupProps = {
556
- /** */
557
- label?: SkfSelectOptionGroup["label"];
558
- };
559
-
560
- type SkfStepperProps = {
561
- /** Sets the active item */
562
- activeIndex?: SkfStepper["activeIndex"];
563
- /** If true, sets linear mode (user can't go back to completed steps due to dependencies) */
564
- linear?: SkfStepper["linear"];
565
-
566
- /** Dispatched when the stepper item is selected */
567
- "onskf-stepper-item-select"?: (e: CustomEvent<never>) => void;
620
+ "onskf-select-option-select"?: (e: CustomEvent<never>) => void;
568
621
  };
569
622
 
570
623
  type SkfStepperItemProps = {
@@ -580,6 +633,16 @@ type SkfStepperItemProps = {
580
633
  "onskf-stepper-item-select"?: (e: CustomEvent<never>) => void;
581
634
  };
582
635
 
636
+ type SkfStepperProps = {
637
+ /** Sets the active item */
638
+ "active-index"?: SkfStepper["activeIndex"];
639
+ /** If true, sets linear mode (user can't go back to completed steps due to dependencies) */
640
+ linear?: SkfStepper["linear"];
641
+
642
+ /** Dispatched when the stepper item is selected */
643
+ "onskf-stepper-item-select"?: (e: CustomEvent<CustomEvent>) => void;
644
+ };
645
+
583
646
  type SkfSwitchProps = {
584
647
  /** If true, sets disabled state */
585
648
  disabled?: SkfSwitch["undefined"];
@@ -603,19 +666,13 @@ type SkfSwitchProps = {
603
666
  value?: SkfSwitch["value"];
604
667
  };
605
668
 
606
- type SkfTabProps = {
607
- /** The name of the tab-panel this tab is associated with. The panel must be located in the same tab group. */
608
- panel?: SkfTab["panel"];
609
- /** */
610
- selected?: SkfTab["selected"];
669
+ type SkfTabPanelProps = {
670
+ /** The tab panel's name. */
671
+ name?: SkfTabPanel["name"];
611
672
  /** */
612
- variant?: SkfTab["variant"];
673
+ active?: SkfTabPanel["active"];
613
674
  /** */
614
- role?: SkfTab["role"];
615
- /** {detail: { selected: true, tab: SkfTab }} Fires when the tab is selected */
616
- "onskf-tab-select"?: (e: CustomEvent<CustomEvent>) => void;
617
- /** Fired when the component is clicked */
618
- onclick?: (e: CustomEvent<never>) => void;
675
+ role?: SkfTabPanel["role"];
619
676
  };
620
677
 
621
678
  type SkfTabGroupProps = {
@@ -631,28 +688,19 @@ type SkfTabGroupProps = {
631
688
  variant?: SkfTabGroup["variant"];
632
689
  };
633
690
 
634
- type SkfTabPanelProps = {
635
- /** The tab panel's name. */
636
- name?: SkfTabPanel["name"];
691
+ type SkfTabProps = {
692
+ /** The name of the tab-panel this tab is associated with. The panel must be located in the same tab group. */
693
+ panel?: SkfTab["panel"];
637
694
  /** */
638
- active?: SkfTabPanel["active"];
695
+ selected?: SkfTab["selected"];
639
696
  /** */
640
- role?: SkfTabPanel["role"];
641
- };
642
-
643
- type SkfTagProps = {
644
- /** Specifies Tag size */
645
- size?: SkfTag["size"];
646
- /** If defined, displays leading/provided icon */
647
- icon?: SkfTag["icon"];
648
- /** If defined, gives the supplied appearance */
649
- color?: SkfTag["color"];
650
- /** If true, adds trailing button to remove tag */
651
- removable?: SkfTag["removable"];
652
- /** If defined, accepts a function that runs on click */
653
- onClick?: SkfTag["onClick"];
654
- /** If defined, accepts a function that runs on click. Self removal can be overridden by using `event.stopPropagation()`. */
655
- onRemove?: SkfTag["onRemove"];
697
+ variant?: SkfTab["variant"];
698
+ /** */
699
+ role?: SkfTab["role"];
700
+ /** {detail: { selected: true, tab: SkfTab }} Fires when the tab is selected */
701
+ "onskf-tab-select"?: (e: CustomEvent<CustomEvent>) => void;
702
+ /** Fired when the component is clicked */
703
+ onclick?: (e: CustomEvent<never>) => void;
656
704
  };
657
705
 
658
706
  type SkfTextAreaProps = {
@@ -703,6 +751,11 @@ type SkfTextAreaProps = {
703
751
  oninvalid?: (e: CustomEvent<never>) => void;
704
752
  };
705
753
 
754
+ type SkfToastWrapperProps = {
755
+ /** */
756
+ debug?: SkfToastWrapper["debug"];
757
+ };
758
+
706
759
  type SkfToastProps = {
707
760
  /** */
708
761
  debug?: SkfToast["debug"];
@@ -718,31 +771,54 @@ type SkfToastProps = {
718
771
  topOffset?: SkfToast["topOffset"];
719
772
  };
720
773
 
721
- type SkfToastWrapperProps = {
722
- /** */
723
- debug?: SkfToastWrapper["debug"];
724
- };
725
-
726
774
  type SkfTooltipProps = {
775
+ /** The placement of the dropdown */
776
+ placement?: SkfTooltip["undefined"];
777
+ /** The id of the element the dropdown will be anchored to */
778
+ anchor?: SkfTooltip["undefined"];
779
+ /** */
780
+ role?: SkfTooltip["role"];
727
781
  /** */
728
782
  offset?: SkfTooltip["offset"];
729
- /** The placement of the dropdown */
783
+ /** */
730
784
  placement?: SkfTooltip["placement"];
731
- /** Whether the dropdown is open */
732
- isOpen?: SkfTooltip["isOpen"];
733
- /** The id of the element the dropdown will be anchored to */
734
- anchor?: SkfTooltip["anchor"];
785
+ /** */
786
+ variant?: SkfTooltip["variant"];
735
787
  /** Fired when the dropdown is opened */
736
- onopen?: (e: CustomEvent<never>) => void;
788
+ "onskf-opened"?: (e: CustomEvent<never>) => void;
737
789
  /** Fired when the dropdown is closed */
738
- onclose?: (e: CustomEvent<never>) => void;
790
+ "onskf-closed"?: (e: CustomEvent<never>) => void;
739
791
  };
740
792
 
741
793
  export type CustomElements = {
742
794
  /**
743
- * The `<skf-accordion>` component consists of multiple `<skf-collapse>`, working together.
795
+ * The `<skf-icon>` component is used to clarify interface elements. When used, should always be paired with (possibly invisible) text.
796
+ * ---
797
+ *
798
+ */
799
+ "skf-icon": DefineComponent<SkfIconProps>;
800
+
801
+ /**
802
+ * The `<skf-accordion-item>` is used in conjunction with the `<skf-accordion>` component
803
+ * ---
804
+ *
805
+ *
806
+ * ### **Events:**
807
+ * - **skf-accordion-item-toggle** - Event emitted when toggled
808
+ *
809
+ * ### **Methods:**
810
+ * - **setClose()** - Class method as alternative to manipulate attribute
811
+ * - **setOpen()** - Class method as alternative to manipulate attribute
812
+ *
813
+ * ### **Slots:**
814
+ * - _default_ - Main content
815
+ */
816
+ "skf-accordion-item": DefineComponent<SkfAccordionItemProps>;
817
+
818
+ /**
819
+ * The `<skf-accordion>` component consists of one or more `<skf-accordion-item>` item(s) working together
744
820
  *
745
- * See [zeroheight](https://zeroheight.com/853e936c9/p/6590bf-accordion) for design principles.
821
+ * See [zeroheight](https://zeroheight.com/853e936c9/p/6590bf-accordion) for design principles
746
822
  * ---
747
823
  *
748
824
  *
@@ -753,6 +829,8 @@ export type CustomElements = {
753
829
 
754
830
  /**
755
831
  * The `<skf-alert>` is a type of notification that appears in-line
832
+ *
833
+ * See [zeroheight](https://zeroheight.com/853e936c9/p/990ec5-alert) for design principles
756
834
  * ---
757
835
  *
758
836
  *
@@ -765,8 +843,20 @@ export type CustomElements = {
765
843
  */
766
844
  "skf-alert": DefineComponent<SkfAlertProps>;
767
845
 
846
+ /**
847
+ * The `<skf-breadcrumb-item>` is used in conjunction with the `<skf-breadcrumb>` component
848
+ * ---
849
+ *
850
+ *
851
+ * ### **Slots:**
852
+ * - _default_ - Label of the breadcrumb item
853
+ */
854
+ "skf-breadcrumb-item": DefineComponent<SkfBreadcrumbItemProps>;
855
+
768
856
  /**
769
857
  * The `<skf-breadcrumb>` component consists of multiple `<skf-breadcrumb-item>`, working together.
858
+ *
859
+ * See [zeroheight](https://zeroheight.com/853e936c9/p/3338ef-breadcrumbs) for design principles.
770
860
  * ---
771
861
  *
772
862
  *
@@ -779,17 +869,16 @@ export type CustomElements = {
779
869
  "skf-breadcrumb": DefineComponent<SkfBreadcrumbProps>;
780
870
 
781
871
  /**
782
- * The `<skf-breadcrumb-item>` is used in conjunction with the `<skf-breadcrumb>` component
872
+ * The `<skf-loader>` component is a progress indicator that uses circular indicators for short, indeterminate activities
783
873
  * ---
784
874
  *
785
- *
786
- * ### **Slots:**
787
- * - _default_ - Label of the breadcrumb item
788
875
  */
789
- "skf-breadcrumb-item": DefineComponent<SkfBreadcrumbItemProps>;
876
+ "skf-loader": DefineComponent<SkfLoaderProps>;
790
877
 
791
878
  /**
792
879
  * Component to be used in forms or for interactivity
880
+ *
881
+ * See [zeroheight](https://zeroheight.com/853e936c9/p/02493d-buttons) for design principles
793
882
  * ---
794
883
  *
795
884
  *
@@ -806,6 +895,8 @@ export type CustomElements = {
806
895
 
807
896
  /**
808
897
  * The `<skf-card>` can be used to group related subjects in a container
898
+ *
899
+ * See [zeroheight](https://zeroheight.com/853e936c9/p/021eed-card) for design principles
809
900
  * ---
810
901
  *
811
902
  *
@@ -820,7 +911,7 @@ export type CustomElements = {
820
911
  *
821
912
  *
822
913
  * ### **Events:**
823
- * - **change** - {object} - When the value of the input changes
914
+ * - **change** - When the value of the input changes
824
915
  *
825
916
  * ### **Slots:**
826
917
  * - _default_ - The Radios label. Alternatively, you can use the `label` attribute.
@@ -828,50 +919,49 @@ export type CustomElements = {
828
919
  "skf-checkbox": DefineComponent<SkfCheckboxProps>;
829
920
 
830
921
  /**
831
- * The `<skf-collapse>` component is a general purpose container for content that can be collapsed / expanded.
832
- *
833
- * See [zeroheight](https://zeroheight.com/853e936c9/p/6590bf-accordion) for design principles.
922
+ * A date picker component that allows users to select a date or a range of dates.
834
923
  * ---
835
924
  *
836
925
  *
837
926
  * ### **Events:**
838
- * - **skf-collapse-toggle** - Event emitted when toggled
927
+ * - **selected-date-changed** - When a date is selected
928
+ * - **selected-date-range-changed** - When a range of dates is selected
839
929
  *
840
930
  * ### **Methods:**
841
- * - **setClose()** - Class method as alternative to manipulate attribute
842
- * - **setOpen()** - Class method as alternative to manipulate attribute
931
+ * - **gotoDate(date: _Date | string_)** - Navigates to the given date.
843
932
  *
844
933
  * ### **Slots:**
845
- * - _default_ - Main content
934
+ * - _default_ - Default hint content placed inside the date picker
935
+ *
936
+ * ### **CSS Properties:**
937
+ * - **--max-width** - The maximum width of the date picker _(default: undefined)_
846
938
  */
847
- "skf-collapse": DefineComponent<SkfCollapseProps>;
939
+ "skf-datepicker": DefineComponent<SkfDatePickerProps>;
848
940
 
849
941
  /**
850
- * A date picker component that allows users to select a date or a range of dates.
942
+ * The `<Heading>` component is to deliniate content on a page. When using, take note not to skip heading levels.<br>
943
+ * It extends the interface of native html `<h1>` to `<h4>` elements.
851
944
  * ---
852
945
  *
853
946
  *
854
- * ### **Events:**
855
- * - **selected-date-changed** - When a date is selected
856
- * - **selected-date-range-changed** - When a range of dates is selected
857
- *
858
947
  * ### **Slots:**
859
- * - _default_ - Default hint content placed inside the date picker
860
- *
861
- * ### **CSS Properties:**
862
- * - **--max-width** - The maximum width of the date picker _(default: undefined)_
948
+ * - _default_ - The headings content
863
949
  */
864
- "skf-datepicker": DefineComponent<SkfDatePickerProps>;
950
+ "skf-heading": DefineComponent<SkfHeadingProps>;
865
951
 
866
952
  /**
867
- * The `<skf-dialog>` is a component that open up a dialog with the content provided
953
+ * The `<skf-dialog>` is a component that open up a dialog of type modal with the content provided. (MDN refrains from opening the dialog using the `open` attribute, however skf-dialog does not have that limitation)
868
954
  * ---
869
955
  *
870
956
  *
871
957
  * ### **Events:**
872
- * - **skf-dialog-open** - Fires when the dialog is opened (after transitioned in)
873
- * - **skf-dialog-close** - Fires when the dialog is closed (before transitioned out)
874
- * - **close** - Fires when the dialog is closed (after transitioned out)
958
+ * - **skf-dialog-opened** - Fires when the dialog is opened (after transitioned in)
959
+ * - **skf-dialog-closing** - Fires when the dialog is closing (before transitioned out)
960
+ * - **skf-dialog-closed** - Fires when the dialog is closed (after transitioned out)
961
+ *
962
+ * ### **Methods:**
963
+ * - **showModal()** - Method that opens the dialog in modal state
964
+ * - **close()** - Method that closes the dialog
875
965
  *
876
966
  * ### **Slots:**
877
967
  * - _default_ - The dialog component's content
@@ -895,25 +985,54 @@ export type CustomElements = {
895
985
  "skf-divider": DefineComponent<SkfDividerProps>;
896
986
 
897
987
  /**
898
- * The `<Heading>` component is to deliniate content on a page. When using, take note not to skip heading levels.<br>
899
- * It extends the interface of native html `<h1>` to `<h4>` elements.
988
+ * The `<skf-drawer>` is a modal component that displays content and toggle by sliding from left/right viewport edge
900
989
  * ---
901
990
  *
902
991
  *
992
+ * ### **Events:**
993
+ * - **skf-drawer-opened** - Fires when the drawer is opened (after transitioned in)
994
+ * - **skf-drawer-closing** - Fires when the drawer is closing (before transitioned out)
995
+ * - **skf-drawer-closed** - Fires when the drawer is closed (after transitioned out)
996
+ *
903
997
  * ### **Slots:**
904
- * - _default_ - The headings content
998
+ * - _default_ - The Drawer's main content
905
999
  */
906
- "skf-heading": DefineComponent<SkfHeadingProps>;
1000
+ "skf-drawer": DefineComponent<SkfDrawerProps>;
907
1001
 
908
1002
  /**
909
- * The `<skf-icon>` component is used to clarify interface elements. When used, should always be paired with (possibly invisible) text
1003
+ * The `<skf-logo>` component is used to display the SKF logo.
910
1004
  * ---
911
1005
  *
1006
+ *
1007
+ * ### **CSS Properties:**
1008
+ * - **--skf-logo-height** - The height of the logo _(default: undefined)_
912
1009
  */
913
- "skf-icon": DefineComponent<SkfIconProps>;
1010
+ "skf-logo": DefineComponent<SkfLogoProps>;
914
1011
 
915
1012
  /**
916
- * The skf-text-field is used to create a text input field. It can be used inside a form element or standalone.
1013
+ * The `<skf-nav>` is a component that displays a list of <nav-items>.
1014
+ * ---
1015
+ *
1016
+ *
1017
+ * ### **Slots:**
1018
+ * - _default_ - The component's main content
1019
+ */
1020
+ "skf-nav": DefineComponent<SkfNavProps>;
1021
+
1022
+ /**
1023
+ * 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.
1024
+ * ---
1025
+ *
1026
+ *
1027
+ * ### **Slots:**
1028
+ * - _default_ - Navigation items
1029
+ */
1030
+ "skf-header": DefineComponent<SkfHeaderProps>;
1031
+
1032
+ /**
1033
+ * The skf-text-field is used to create a text input field. It can be used inside a form element or standalone
1034
+ *
1035
+ * See [zeroheight](https://zeroheight.com/853e936c9/p/9481fa-input-field) for design principles
917
1036
  * ---
918
1037
  *
919
1038
  *
@@ -937,30 +1056,25 @@ export type CustomElements = {
937
1056
  "skf-link": DefineComponent<SkfLinkProps>;
938
1057
 
939
1058
  /**
940
- * The `<skf-loader>` component is a progress indicator that uses circular indicators for short, indeterminate activities
941
- * ---
942
- *
943
- */
944
- "skf-loader": DefineComponent<SkfLoaderProps>;
945
-
946
- /**
947
- * The `<skf-logo>` component is used to display the SKF logo.
1059
+ * The `<skf-menu-item>` is used in conjunction with the `<skf-menu>` component
948
1060
  * ---
949
1061
  *
950
1062
  *
951
- * ### **CSS Properties:**
952
- * - **--skf-logo-height** - The height of the logo _(default: undefined)_
1063
+ * ### **Slots:**
1064
+ * - _default_ - The component's main content
953
1065
  */
954
- "skf-logo": DefineComponent<SkfLogoProps>;
1066
+ "skf-menu-item": DefineComponent<SkfMenuItemProps>;
955
1067
 
956
1068
  /**
957
- * The `<skf-menu>` is a component that displays a list of actions or options.
1069
+ * The `<skf-menu>` is a component that displays a list of actions or options
1070
+ *
1071
+ * See [zeroheight](https://zeroheight.com/853e936c9/p/983e5d-popover) for design principles
958
1072
  * ---
959
1073
  *
960
1074
  *
961
1075
  * ### **Events:**
962
- * - **open** - Fired when the menu is opened
963
- * - **close** - Fired when the menu is closed
1076
+ * - **skf-opened** - Fired when the menu is opened
1077
+ * - **skf-closed** - Fired when the menu is closed
964
1078
  *
965
1079
  * ### **Slots:**
966
1080
  * - _default_ - The menu popover content
@@ -968,33 +1082,25 @@ export type CustomElements = {
968
1082
  "skf-menu": DefineComponent<SkfMenuProps>;
969
1083
 
970
1084
  /**
971
- * The `<skf-menu-item>` is a component that displays a list of actions or options.
1085
+ * The `<skf-nav>` is a component that displays a list of <nav-items>.
972
1086
  * ---
973
1087
  *
974
1088
  *
975
- * ### **Events:**
976
- * - **my-tag-my-event** - Fired when something happens
977
- * - **click** - Fired when the component is clicked
978
- * - **mouseover** - Fired when the mouse is over the component
979
- * - **mouseout** - Fired when the mouse is out of the component
980
- * - **focus** - Fired when the component is focused
981
- * - **blur** - Fired when the component is blurred
982
- * - **change** - Fired when the component's value changes
983
- *
984
1089
  * ### **Slots:**
985
1090
  * - _default_ - The component's main content
986
- * - **my-named-slot** - A named slot of the component
987
1091
  */
988
- "skf-menu-item": DefineComponent<SkfMenuItemProps>;
1092
+ "skf-nav-item": DefineComponent<SkfNavItemProps>;
989
1093
 
990
1094
  /**
991
- * The `<skf-popover>` is a general purpose component that displays the slot content.
1095
+ * The `<skf-popover>` is a general purpose component that displays the slot content in a popover.
1096
+ *
1097
+ * See [zeroheight](https://zeroheight.com/853e936c9/p/983e5d-popover) for design principles
992
1098
  * ---
993
1099
  *
994
1100
  *
995
1101
  * ### **Events:**
996
- * - **open** - Fired when the menu is opened
997
- * - **close** - Fired when the menu is closed
1102
+ * - **skf-opened** - Fired when the menu is opened
1103
+ * - **skf-closed** - Fired when the menu is closed
998
1104
  *
999
1105
  * ### **Slots:**
1000
1106
  * - _default_ - The popover content
@@ -1010,11 +1116,13 @@ export type CustomElements = {
1010
1116
 
1011
1117
  /**
1012
1118
  * The `<skf-radio>` component is used to create a radio input
1119
+ *
1120
+ * See [zeroheight](https://zeroheight.com/853e936c9/p/78d5dd-radio-button) for design principles
1013
1121
  * ---
1014
1122
  *
1015
1123
  *
1016
1124
  * ### **Events:**
1017
- * - **change** - {object} - When the value of the input changes
1125
+ * - **change** - When the value of the input changes
1018
1126
  *
1019
1127
  * ### **Slots:**
1020
1128
  * - _default_ - The radios label. Alternatively, you can use the `label` attribute.
@@ -1022,35 +1130,29 @@ export type CustomElements = {
1022
1130
  "skf-radio": DefineComponent<SkfRadioProps>;
1023
1131
 
1024
1132
  /**
1025
- * 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.
1133
+ * The `<skf-segmented-button-item>` is used in conjunction with the `<skf-segmented-button>` component
1026
1134
  * ---
1027
1135
  *
1028
1136
  *
1029
1137
  * ### **Events:**
1030
- * - **change** - Fired when the selected option(s) changes
1031
- * - **invalid** - Fired when the select is invalid
1032
- * - **reset** - Fired when the form is reset
1033
- * - **skf-select:dropdown** - {detail: {expanded: boolean}} Fired when the select dropdown is toggled
1034
- * - **skf-select-option:select** - {detail: {value: string | null, option: SkfSelectOption}} Fired when the select dropdown is toggled
1138
+ * - **skf-segmented-button-item-select** - Fired when selected
1035
1139
  *
1036
1140
  * ### **Slots:**
1037
- * - _default_ - The select's placeholder content
1141
+ * - _default_ - Label for the button
1038
1142
  */
1039
- "skf-select": DefineComponent<SkfSelectProps>;
1143
+ "skf-segmented-button-item": DefineComponent<SkfSegmentedButtonItemProps>;
1040
1144
 
1041
1145
  /**
1042
- * The `<skf-select-option>` is a component is used nested in a skf-select or skf-select-option-group.
1043
- * ---
1146
+ * The `<skf-segmented-button>` component consists of multiple `<skf-segmented-button-item>`, working together.
1044
1147
  *
1148
+ * See [zeroheight](https://zeroheight.com/853e936c9/p/68ff54-segmented-buttons) for design principles
1149
+ * ---
1045
1150
  *
1046
- * ### **Events:**
1047
- * - **skf-select-option:select** - {detail: { value: string | null, option: SkfSelectOption }} Fires when the option is selected/deselected.
1048
1151
  *
1049
1152
  * ### **Slots:**
1050
- * - _default_ - The option's text content
1051
- * - **icon** - The option's slot for icon or custom meta information (svg).
1153
+ * - _default_ - One or more `<skf-segmented-button-item>`
1052
1154
  */
1053
- "skf-select-option": DefineComponent<SkfSelectOptionProps>;
1155
+ "skf-segmented-button": DefineComponent<SkfSegmentedButtonProps>;
1054
1156
 
1055
1157
  /**
1056
1158
  * The `<skf-select-option-group>` is a component that groups select-options
@@ -1063,65 +1165,85 @@ export type CustomElements = {
1063
1165
  "skf-select-option-group": DefineComponent<SkfSelectOptionGroupProps>;
1064
1166
 
1065
1167
  /**
1066
- * The `<skf-stepper>` is a component that displays a list of actions or options.
1168
+ * The `<skf-tag>` is a component that displays a list of actions or options
1169
+ * ---
1170
+ *
1171
+ *
1172
+ * ### **Slots:**
1173
+ * - _default_ - The component's placeholder content
1174
+ */
1175
+ "skf-tag": DefineComponent<SkfTagProps>;
1176
+
1177
+ /**
1178
+ * 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.
1179
+ *
1180
+ * See [zeroheight](https://zeroheight.com/853e936c9/p/91c9f0-select-and-combobox) for design principles
1067
1181
  * ---
1068
1182
  *
1069
1183
  *
1070
1184
  * ### **Events:**
1071
- * - **skf-stepper-item-select** - Dispatched when the stepper item is selected
1185
+ * - **change** - Fired when the selected option(s) changes
1186
+ * - **invalid** - Fired when the select is invalid
1187
+ * - **reset** - Fired when the form is reset
1188
+ * - **skf-select-dropdown** - {detail: {expanded: boolean}} Fired when the select dropdown is toggled
1189
+ * - **skf-select-option-select** - {detail: {value: string | null, option: SkfSelectOption}} Fired when the select dropdown is toggled
1072
1190
  *
1073
1191
  * ### **Slots:**
1074
- * - _default_ - One or more `<skf-stepper-item>`
1192
+ * - _default_ - The select's placeholder content
1075
1193
  */
1076
- "skf-stepper": DefineComponent<SkfStepperProps>;
1194
+ "skf-select": DefineComponent<SkfSelectProps>;
1077
1195
 
1078
1196
  /**
1079
- * The `<skf-stepper-item>` is used in conjunction with the `<skf-stepper>` component
1197
+ * The `<skf-select-option>` is a component is used nested in a skf-select or skf-select-option-group.
1080
1198
  * ---
1081
1199
  *
1082
1200
  *
1083
1201
  * ### **Events:**
1084
- * - **skf-stepper-item-select** - Dispatched when the stepper item is selected
1202
+ * - **skf-select-option-select** - {detail: { value: string | null, option: SkfSelectOption }} Fires when the option is selected/deselected.
1085
1203
  *
1086
1204
  * ### **Slots:**
1087
- * - _default_ - Label of the stepper item
1205
+ * - _default_ - The option's text content
1206
+ * - **icon** - The option's slot for icon or custom meta information (svg).
1088
1207
  */
1089
- "skf-stepper-item": DefineComponent<SkfStepperItemProps>;
1208
+ "skf-select-option": DefineComponent<SkfSelectOptionProps>;
1090
1209
 
1091
1210
  /**
1092
- * The `<skf-switch>` is a component that displays a list of actions or options
1211
+ * The `<skf-stepper-item>` is used in conjunction with the `<skf-stepper>` component
1093
1212
  * ---
1094
1213
  *
1095
1214
  *
1215
+ * ### **Events:**
1216
+ * - **skf-stepper-item-select** - Dispatched when the stepper item is selected
1217
+ *
1096
1218
  * ### **Slots:**
1097
- * - _default_ - The Switchs label. Alternatively, you can use the `label` attribute.
1219
+ * - _default_ - Label of the stepper item
1098
1220
  */
1099
- "skf-switch": DefineComponent<SkfSwitchProps>;
1221
+ "skf-stepper-item": DefineComponent<SkfStepperItemProps>;
1100
1222
 
1101
1223
  /**
1102
- * The `<skf-tab>` is a component that displays a list of actions or options
1224
+ * The `<skf-stepper>` is a component that displays a list of actions or options.
1103
1225
  * ---
1104
1226
  *
1105
1227
  *
1106
1228
  * ### **Events:**
1107
- * - **skf-tab-select** - {detail: { selected: true, tab: SkfTab }} Fires when the tab is selected
1108
- * - **click** - Fired when the component is clicked
1229
+ * - **skf-stepper-item-select** - Dispatched when the stepper item is selected
1109
1230
  *
1110
1231
  * ### **Slots:**
1111
- * - _default_ - The tab's label
1232
+ * - _default_ - One or more `<skf-stepper-item>`
1112
1233
  */
1113
- "skf-tab": DefineComponent<SkfTabProps>;
1234
+ "skf-stepper": DefineComponent<SkfStepperProps>;
1114
1235
 
1115
1236
  /**
1116
- * The `<skf-tab-group>` is a component that displays a list of actions or options.
1237
+ * The `<skf-switch>` is a component that displays a list of actions or options
1238
+ *
1239
+ * See [zeroheight](https://zeroheight.com/853e936c9/p/7282a2-switch) for design principle
1117
1240
  * ---
1118
1241
  *
1119
1242
  *
1120
1243
  * ### **Slots:**
1121
- * - _default_ - Used for grouping tab panels in the tab group. Must be <skf-tab-panel> elements
1122
- * - **tabs** - Used for grouping tabs in the tab group. Must be <skf-tab> elements
1244
+ * - _default_ - The Switchs label. Alternatively, you can use the `label` attribute.
1123
1245
  */
1124
- "skf-tab-group": DefineComponent<SkfTabGroupProps>;
1246
+ "skf-switch": DefineComponent<SkfSwitchProps>;
1125
1247
 
1126
1248
  /**
1127
1249
  * The `<skf-tab-panel>` is a component that displays a list of actions or options.
@@ -1134,14 +1256,29 @@ export type CustomElements = {
1134
1256
  "skf-tab-panel": DefineComponent<SkfTabPanelProps>;
1135
1257
 
1136
1258
  /**
1137
- * The `<skf-tag>` is a component that displays a list of actions or options
1259
+ * The `<skf-tab-group>` is a component that displays a list of actions or options.
1138
1260
  * ---
1139
1261
  *
1140
1262
  *
1141
1263
  * ### **Slots:**
1142
- * - _default_ - The component's placeholder content
1264
+ * - _default_ - Used for grouping tab panels in the tab group. Must be <skf-tab-panel> elements
1265
+ * - **tabs** - Used for grouping tabs in the tab group. Must be <skf-tab> elements
1143
1266
  */
1144
- "skf-tag": DefineComponent<SkfTagProps>;
1267
+ "skf-tab-group": DefineComponent<SkfTabGroupProps>;
1268
+
1269
+ /**
1270
+ * The `<skf-tab>` is a component that displays a list of actions or options
1271
+ * ---
1272
+ *
1273
+ *
1274
+ * ### **Events:**
1275
+ * - **skf-tab-select** - {detail: { selected: true, tab: SkfTab }} Fires when the tab is selected
1276
+ * - **click** - Fired when the component is clicked
1277
+ *
1278
+ * ### **Slots:**
1279
+ * - _default_ - The tab's label
1280
+ */
1281
+ "skf-tab": DefineComponent<SkfTabProps>;
1145
1282
 
1146
1283
  /**
1147
1284
  * The skf-textarea is used to create a textarea. Use it inside a form element or wherever you like.
@@ -1158,33 +1295,33 @@ export type CustomElements = {
1158
1295
  "skf-textarea": DefineComponent<SkfTextAreaProps>;
1159
1296
 
1160
1297
  /**
1161
- * A simple toast component that displays a message to the user. Use by appending a &lt;skf-toast&gt; tag to the DOM. Position in DOM is irrelevant.
1298
+ * The `<skf-toast-wrapper>` is a component without UI that positions where the toast shows up on the screen. The toast-wrapper is used internally by the toast component.
1162
1299
  * ---
1163
1300
  *
1164
1301
  *
1165
1302
  * ### **Slots:**
1166
- * - _default_ - The component's placeholder content
1303
+ * - _default_ - The alert components that the toast creates will render here.
1167
1304
  */
1168
- "skf-toast": DefineComponent<SkfToastProps>;
1305
+ "skf-toast-wrapper": DefineComponent<SkfToastWrapperProps>;
1169
1306
 
1170
1307
  /**
1171
- * The `<skf-toast-wrapper>` is a component without UI that positions where the toast shows up on the screen. The toast-wrapper is used internally by the toast component.
1308
+ * A simple toast component that displays a message to the user. Invoke a toast message by appending a &lt;skf-toast&gt; tag to the DOM. Position in DOM is irrelevant. A transient toast will disappear after a set amount of time. Once toast is dismissed it will be removed from the DOM.
1172
1309
  * ---
1173
1310
  *
1174
1311
  *
1175
1312
  * ### **Slots:**
1176
- * - _default_ - The alert components that the toast creates will render here.
1313
+ * - _default_ - The component's placeholder content
1177
1314
  */
1178
- "skf-toast-wrapper": DefineComponent<SkfToastWrapperProps>;
1315
+ "skf-toast": DefineComponent<SkfToastProps>;
1179
1316
 
1180
1317
  /**
1181
- * The `<skf-tooltip>` is a component that displays a list of actions or options.
1318
+ * The `<skf-tooltip>` is a component that displays a tooltip.
1182
1319
  * ---
1183
1320
  *
1184
1321
  *
1185
1322
  * ### **Events:**
1186
- * - **open** - Fired when the dropdown is opened
1187
- * - **close** - Fired when the dropdown is closed
1323
+ * - **skf-opened** - Fired when the dropdown is opened
1324
+ * - **skf-closed** - Fired when the dropdown is closed
1188
1325
  *
1189
1326
  * ### **Slots:**
1190
1327
  * - _default_ - The tooltip popover content