@skf-design-system/ui-components 1.0.0-alpha.34 → 1.0.0-alpha.36

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 (355) hide show
  1. package/README.md +20 -27
  2. package/custom-elements.json +25490 -0
  3. package/dist/components/accordion/accordion-item.component.d.ts +36 -0
  4. package/dist/components/accordion/accordion-item.component.js +98 -0
  5. package/dist/components/accordion/accordion-item.d.ts +3 -3
  6. package/dist/components/accordion/accordion-item.js +4 -5
  7. package/dist/components/accordion/accordion-item.styles.js +77 -0
  8. package/dist/components/accordion/accordion.component.d.ts +10 -14
  9. package/dist/components/accordion/accordion.component.js +10 -11
  10. package/dist/components/accordion/accordion.d.ts +0 -1
  11. package/dist/components/accordion/accordion.js +0 -2
  12. package/dist/components/alert/alert.component.d.ts +12 -12
  13. package/dist/components/alert/alert.component.js +57 -55
  14. package/dist/components/alert/alert.styles.js +50 -51
  15. package/dist/components/breadcrumb/breadcrumb-item.component.js +60 -0
  16. package/dist/components/{breadcrumb-item → breadcrumb}/breadcrumb-item.d.ts +2 -2
  17. package/dist/components/breadcrumb/breadcrumb-item.js +6 -0
  18. package/dist/components/breadcrumb/breadcrumb-item.styles.js +63 -0
  19. package/dist/components/breadcrumb/breadcrumb.component.d.ts +7 -4
  20. package/dist/components/breadcrumb/breadcrumb.component.js +65 -0
  21. package/dist/components/breadcrumb/breadcrumb.d.ts +2 -2
  22. package/dist/components/breadcrumb/breadcrumb.js +6 -0
  23. package/dist/components/breadcrumb/breadcrumb.styles.js +25 -0
  24. package/dist/components/button/button.component.d.ts +17 -14
  25. package/dist/components/button/button.component.js +73 -61
  26. package/dist/components/button/button.styles.d.ts +1 -2
  27. package/dist/components/button/button.styles.js +13 -3
  28. package/dist/components/card/card.component.d.ts +6 -1
  29. package/dist/components/card/card.component.js +46 -36
  30. package/dist/components/card/card.styles.js +37 -23
  31. package/dist/components/checkbox/checkbox.component.d.ts +17 -13
  32. package/dist/components/checkbox/checkbox.component.js +74 -61
  33. package/dist/components/checkbox/checkbox.styles.d.ts +1 -2
  34. package/dist/components/checkbox/checkbox.styles.js +1 -5
  35. package/dist/components/datepicker/datepicker-calendar.component.d.ts +80 -0
  36. package/dist/components/datepicker/datepicker-calendar.component.js +415 -0
  37. package/dist/components/datepicker/datepicker-calendar.d.ts +8 -0
  38. package/dist/components/datepicker/datepicker-calendar.js +6 -0
  39. package/dist/components/datepicker/datepicker-calendar.styles.js +202 -0
  40. package/dist/components/datepicker/datepicker-popup.component.d.ts +64 -0
  41. package/dist/components/datepicker/datepicker-popup.component.js +261 -0
  42. package/dist/components/datepicker/datepicker-popup.d.ts +8 -0
  43. package/dist/components/datepicker/datepicker-popup.helpers.d.ts +41 -0
  44. package/dist/components/datepicker/datepicker-popup.helpers.js +83 -0
  45. package/dist/components/datepicker/datepicker-popup.js +6 -0
  46. package/dist/components/datepicker/datepicker-popup.styles.js +87 -0
  47. package/dist/components/datepicker/datepicker.component.d.ts +121 -0
  48. package/dist/components/datepicker/datepicker.component.js +456 -0
  49. package/dist/components/datepicker/datepicker.d.ts +8 -0
  50. package/dist/components/datepicker/datepicker.helpers.d.ts +38 -0
  51. package/dist/components/datepicker/datepicker.helpers.js +31 -0
  52. package/dist/components/datepicker/datepicker.js +6 -0
  53. package/dist/components/datepicker/datepicker.styles.d.ts +1 -0
  54. package/dist/components/datepicker/datepicker.styles.js +18 -0
  55. package/dist/components/dialog/dialog.component.d.ts +20 -29
  56. package/dist/components/dialog/dialog.component.js +85 -75
  57. package/dist/components/dialog/dialog.d.ts +2 -2
  58. package/dist/components/dialog/dialog.styles.js +4 -4
  59. package/dist/components/divider/divider.component.d.ts +4 -8
  60. package/dist/components/divider/divider.component.js +24 -46
  61. package/dist/components/divider/divider.styles.js +34 -30
  62. package/dist/components/drawer/drawer.component.d.ts +61 -0
  63. package/dist/components/drawer/drawer.component.js +125 -0
  64. package/dist/components/drawer/drawer.d.ts +8 -0
  65. package/dist/components/drawer/drawer.js +6 -0
  66. package/dist/components/drawer/drawer.styles.js +71 -0
  67. package/dist/components/header/header.component.d.ts +46 -0
  68. package/dist/components/header/header.component.js +116 -0
  69. package/dist/components/header/header.d.ts +8 -0
  70. package/dist/components/header/header.js +6 -0
  71. package/dist/components/header/header.styles.js +68 -0
  72. package/dist/components/heading/heading.component.d.ts +8 -12
  73. package/dist/components/heading/heading.component.js +52 -24
  74. package/dist/components/heading/heading.styles.d.ts +1 -2
  75. package/dist/components/heading/heading.styles.js +35 -37
  76. package/dist/components/icon/icon.component.d.ts +15 -17
  77. package/dist/components/icon/icon.component.js +52 -43
  78. package/dist/components/icon/icon.styles.d.ts +1 -2
  79. package/dist/components/icon/icon.styles.js +60 -60
  80. package/dist/components/input/input.component.d.ts +31 -31
  81. package/dist/components/input/input.component.js +167 -146
  82. package/dist/components/input/input.controllers.d.ts +20 -6
  83. package/dist/components/input/input.controllers.js +14 -10
  84. package/dist/components/link/link.component.d.ts +20 -25
  85. package/dist/components/link/link.component.js +99 -107
  86. package/dist/components/link/link.styles.d.ts +1 -2
  87. package/dist/components/link/link.styles.js +47 -43
  88. package/dist/components/loader/loader.component.d.ts +1 -1
  89. package/dist/components/loader/loader.component.js +36 -40
  90. package/dist/components/loader/loader.styles.d.ts +1 -2
  91. package/dist/components/loader/loader.styles.js +40 -32
  92. package/dist/components/logo/logo.component.d.ts +8 -6
  93. package/dist/components/logo/logo.component.js +55 -51
  94. package/dist/components/logo/logo.styles.js +26 -16
  95. package/dist/components/menu/menu-item.component.d.ts +13 -0
  96. package/dist/components/menu/menu-item.component.js +13 -0
  97. package/dist/components/{menu-item → menu}/menu-item.d.ts +2 -2
  98. package/dist/components/{menu-item → menu}/menu-item.styles.js +8 -5
  99. package/dist/components/menu/menu.component.d.ts +10 -8
  100. package/dist/components/menu/menu.component.js +8 -10
  101. package/dist/components/menu/menu.d.ts +2 -2
  102. package/dist/components/nav/nav-item.component.d.ts +22 -0
  103. package/dist/components/nav/nav-item.component.js +57 -0
  104. package/dist/components/nav/nav-item.d.ts +8 -0
  105. package/dist/components/nav/nav-item.js +6 -0
  106. package/dist/components/nav/nav-item.styles.js +43 -0
  107. package/dist/components/nav/nav.component.d.ts +23 -0
  108. package/dist/components/nav/nav.component.js +55 -0
  109. package/dist/components/nav/nav.d.ts +8 -0
  110. package/dist/components/nav/nav.js +6 -0
  111. package/dist/components/nav/nav.styles.js +23 -0
  112. package/dist/components/popover/popover.component.d.ts +15 -8
  113. package/dist/components/popover/popover.component.js +29 -23
  114. package/dist/components/popover/popover.d.ts +2 -2
  115. package/dist/components/progress/progress.component.d.ts +4 -2
  116. package/dist/components/progress/progress.component.js +38 -35
  117. package/dist/components/progress/progress.d.ts +2 -2
  118. package/dist/components/progress/progress.styles.js +40 -33
  119. package/dist/components/radio/radio.component.d.ts +19 -13
  120. package/dist/components/radio/radio.component.js +12 -12
  121. package/dist/components/radio/radio.styles.d.ts +1 -2
  122. package/dist/components/radio/radio.styles.js +1 -1
  123. package/dist/components/segmented-button/segmented-button-item.component.d.ts +36 -0
  124. package/dist/components/segmented-button/segmented-button-item.component.js +56 -0
  125. package/dist/components/segmented-button/segmented-button-item.d.ts +8 -0
  126. package/dist/components/segmented-button/segmented-button-item.js +6 -0
  127. package/dist/components/segmented-button/segmented-button-item.styles.d.ts +1 -0
  128. package/dist/components/segmented-button/segmented-button-item.styles.js +62 -0
  129. package/dist/components/segmented-button/segmented-button.component.d.ts +30 -0
  130. package/dist/components/segmented-button/segmented-button.component.js +73 -0
  131. package/dist/components/segmented-button/segmented-button.d.ts +8 -0
  132. package/dist/components/segmented-button/segmented-button.js +6 -0
  133. package/dist/components/segmented-button/segmented-button.styles.d.ts +1 -0
  134. package/dist/components/segmented-button/segmented-button.styles.js +16 -0
  135. package/dist/components/{select-option-group → select}/select-option-group.component.d.ts +4 -0
  136. package/dist/components/select/select-option-group.component.js +50 -0
  137. package/dist/components/{select-option-group → select}/select-option-group.d.ts +2 -2
  138. package/dist/components/select/select-option-group.style.d.ts +1 -0
  139. package/dist/components/select/select-option-group.style.js +24 -0
  140. package/dist/components/{select-option → select}/select-option.component.d.ts +14 -11
  141. package/dist/components/select/select-option.component.js +140 -0
  142. package/dist/components/select/select-option.controllers.d.ts +15 -0
  143. package/dist/components/select/select-option.styles.d.ts +1 -0
  144. package/dist/components/select/select-option.styles.js +65 -0
  145. package/dist/components/select/select.component.d.ts +22 -17
  146. package/dist/components/select/select.component.js +62 -45
  147. package/dist/components/select/select.controllers.d.ts +21 -10
  148. package/dist/components/select/select.controllers.js +29 -23
  149. package/dist/components/select/stories/select.stories.icons.d.ts +7 -0
  150. package/dist/components/{stepper-item → stepper}/stepper-item.component.js +48 -48
  151. package/dist/components/{stepper-item → stepper}/stepper-item.d.ts +2 -2
  152. package/dist/components/stepper/stepper-item.styles.d.ts +1 -0
  153. package/dist/components/stepper/stepper.component.d.ts +4 -3
  154. package/dist/components/stepper/stepper.component.js +15 -15
  155. package/dist/components/stepper/stepper.d.ts +2 -2
  156. package/dist/components/stepper/stepper.helpers.d.ts +1 -1
  157. package/dist/components/switch/switch.component.d.ts +7 -6
  158. package/dist/components/switch/switch.component.js +21 -21
  159. package/dist/components/switch/switch.d.ts +2 -2
  160. package/dist/components/{tab-panel → tabs}/tab-panel.component.js +1 -1
  161. package/dist/components/{tab-panel → tabs}/tab-panel.d.ts +2 -2
  162. package/dist/components/tabs/tab-panel.styles.d.ts +1 -0
  163. package/dist/components/{tab → tabs}/tab.component.d.ts +2 -2
  164. package/dist/components/{tab → tabs}/tab.component.js +1 -1
  165. package/dist/components/{tab → tabs}/tab.d.ts +2 -2
  166. package/dist/components/tabs/tab.styles.d.ts +1 -0
  167. package/dist/components/{tab-group/tab-group.component.d.ts → tabs/tabs.component.d.ts} +3 -4
  168. package/dist/components/{tab-group/tab-group.component.js → tabs/tabs.component.js} +36 -37
  169. package/dist/components/tabs/tabs.d.ts +8 -0
  170. package/dist/components/tabs/tabs.js +6 -0
  171. package/dist/components/tabs/tabs.styles.d.ts +1 -0
  172. package/dist/components/{tab-group/tab-group.styles.js → tabs/tabs.styles.js} +16 -16
  173. package/dist/components/tag/tag.component.d.ts +20 -17
  174. package/dist/components/tag/tag.component.js +68 -67
  175. package/dist/components/tag/tag.d.ts +2 -2
  176. package/dist/components/tag/tag.styles.js +63 -50
  177. package/dist/components/textarea/textarea.component.d.ts +10 -11
  178. package/dist/components/textarea/textarea.component.js +67 -68
  179. package/dist/components/{toast-item → toast}/toast-item.component.js +15 -15
  180. package/dist/components/{toast-item → toast}/toast-item.d.ts +2 -0
  181. package/dist/components/{toast-item → toast}/toast-item.js +4 -0
  182. package/dist/components/toast/toast-item.styles.js +18 -0
  183. package/dist/components/{toast-wrapper → toast}/toast-wrapper.component.js +1 -1
  184. package/dist/components/toast/toast-wrapper.styles.d.ts +1 -0
  185. package/dist/components/toast/toast.component.d.ts +9 -5
  186. package/dist/components/toast/toast.component.js +31 -27
  187. package/dist/components/toast/toast.singleton.d.ts +7 -12
  188. package/dist/components/toast/toast.singleton.js +26 -26
  189. package/dist/components/tooltip/tooltip.component.d.ts +7 -7
  190. package/dist/components/tooltip/tooltip.component.js +16 -11
  191. package/dist/components/tooltip/tooltip.d.ts +2 -2
  192. package/dist/custom-elements.json +3980 -2348
  193. package/dist/index.d.ts +22 -9
  194. package/dist/index.js +111 -74
  195. package/dist/internal/base-classes/popover/popover.base.d.ts +24 -9
  196. package/dist/internal/base-classes/popover/popover.base.js +140 -79
  197. package/dist/internal/base-classes/popover/popover.styles.js +17 -5
  198. package/dist/internal/components/hint/hint.component.d.ts +6 -2
  199. package/dist/internal/components/hint/hint.component.js +47 -20
  200. package/dist/internal/components/hint/hint.styles.d.ts +1 -2
  201. package/dist/internal/components/hint/hint.styles.js +30 -26
  202. package/dist/internal/components/skf-element.d.ts +1 -3
  203. package/dist/internal/components/skf-element.js +4 -9
  204. package/dist/internal/constants/iconSeverity.d.ts +3 -2
  205. package/dist/internal/constants/iconSeverity.js +2 -3
  206. package/dist/internal/controllers/elementOverflowController.d.ts +13 -0
  207. package/dist/internal/controllers/popover.controller.d.ts +12 -6
  208. package/dist/internal/controllers/popover.controller.js +9 -14
  209. package/dist/internal/helpers/dateFormatter.d.ts +2 -0
  210. package/dist/internal/helpers/hintSeverity.d.ts +2 -2
  211. package/dist/internal/helpers/hintSeverity.js +1 -1
  212. package/dist/internal/helpers/stateMap.d.ts +14 -0
  213. package/dist/internal/helpers/stateMap.js +68 -0
  214. package/dist/internal/helpers/utilityTypes.d.ts +22 -0
  215. package/dist/internal/helpers/uuid.d.ts +15 -0
  216. package/dist/internal/helpers/uuid.js +14 -0
  217. package/dist/internal/helpers/watch.d.ts +1 -1
  218. package/dist/internal/helpers/watch.js +12 -12
  219. package/dist/internal/storybook/styles.d.ts +1 -0
  220. package/dist/internal/types/formField.d.ts +1 -1
  221. package/dist/internal/types.d.ts +18 -0
  222. package/dist/styles/component.styles.d.ts +1 -2
  223. package/dist/styles/component.styles.js +38 -37
  224. package/dist/styles/form-field.styles.js +11 -6
  225. package/dist/styles/global-alt.css +1 -0
  226. package/dist/styles/global.css +1 -1
  227. package/dist/types/jsx/custom-element-jsx.d.ts +871 -1307
  228. package/dist/types/vue/index.d.ts +593 -360
  229. package/dist/vscode.html-custom-data.json +630 -1184
  230. package/dist/web-types.json +1422 -945
  231. package/package.json +47 -63
  232. package/dist/components/accordion/accordion.test.d.ts +0 -1
  233. package/dist/components/checkbox/checkbox.test.d.ts +0 -1
  234. package/dist/components/collapse/collapse.component.d.ts +0 -40
  235. package/dist/components/collapse/collapse.component.js +0 -86
  236. package/dist/components/collapse/collapse.d.ts +0 -8
  237. package/dist/components/collapse/collapse.js +0 -6
  238. package/dist/components/collapse/collapse.styles.d.ts +0 -2
  239. package/dist/components/collapse/collapse.styles.js +0 -77
  240. package/dist/components/collapse/collapse.test.d.ts +0 -1
  241. package/dist/components/input/input.test.d.ts +0 -1
  242. package/dist/components/menu-item/menu-item.component.d.ts +0 -25
  243. package/dist/components/menu-item/menu-item.component.js +0 -13
  244. package/dist/components/radio/radio.test.d.ts +0 -1
  245. package/dist/components/select-option/select-option.component.js +0 -123
  246. package/dist/components/select-option/select-option.controllers.d.ts +0 -9
  247. package/dist/components/select-option/select-option.styles.js +0 -53
  248. package/dist/components/select-option-group/select-option-group.component.js +0 -31
  249. package/dist/components/select-option-group/select-option-group.style.js +0 -18
  250. package/dist/components/switch/switch.test.d.ts +0 -1
  251. package/dist/components/tab-group/tab-group.d.ts +0 -8
  252. package/dist/components/tab-group/tab-group.js +0 -6
  253. package/dist/components/toast-item/toast-item.styles.js +0 -16
  254. package/dist/internal/constants/heading.d.ts +0 -2
  255. package/dist/internal/playwright/index.d.ts +0 -1
  256. package/dist/react/index.d.ts +0 -35
  257. package/dist/react/index.js +0 -35
  258. package/dist/react/skf-accordion/index.d.ts +0 -3
  259. package/dist/react/skf-accordion/index.js +0 -13
  260. package/dist/react/skf-alert/index.d.ts +0 -9
  261. package/dist/react/skf-alert/index.js +0 -17
  262. package/dist/react/skf-breadcrumb/index.d.ts +0 -9
  263. package/dist/react/skf-breadcrumb/index.js +0 -17
  264. package/dist/react/skf-breadcrumb-item/index.d.ts +0 -3
  265. package/dist/react/skf-breadcrumb-item/index.js +0 -13
  266. package/dist/react/skf-button/index.d.ts +0 -9
  267. package/dist/react/skf-button/index.js +0 -17
  268. package/dist/react/skf-card/index.d.ts +0 -3
  269. package/dist/react/skf-card/index.js +0 -13
  270. package/dist/react/skf-checkbox/index.d.ts +0 -9
  271. package/dist/react/skf-checkbox/index.js +0 -17
  272. package/dist/react/skf-collapse/index.d.ts +0 -9
  273. package/dist/react/skf-collapse/index.js +0 -17
  274. package/dist/react/skf-dialog/index.d.ts +0 -15
  275. package/dist/react/skf-dialog/index.js +0 -19
  276. package/dist/react/skf-divider/index.d.ts +0 -3
  277. package/dist/react/skf-divider/index.js +0 -13
  278. package/dist/react/skf-heading/index.d.ts +0 -3
  279. package/dist/react/skf-heading/index.js +0 -13
  280. package/dist/react/skf-icon/index.d.ts +0 -3
  281. package/dist/react/skf-icon/index.js +0 -13
  282. package/dist/react/skf-input/index.d.ts +0 -12
  283. package/dist/react/skf-input/index.js +0 -18
  284. package/dist/react/skf-link/index.d.ts +0 -3
  285. package/dist/react/skf-link/index.js +0 -13
  286. package/dist/react/skf-loader/index.d.ts +0 -3
  287. package/dist/react/skf-loader/index.js +0 -13
  288. package/dist/react/skf-logo/index.d.ts +0 -3
  289. package/dist/react/skf-logo/index.js +0 -13
  290. package/dist/react/skf-menu/index.d.ts +0 -12
  291. package/dist/react/skf-menu/index.js +0 -18
  292. package/dist/react/skf-menu-item/index.d.ts +0 -27
  293. package/dist/react/skf-menu-item/index.js +0 -23
  294. package/dist/react/skf-popover/index.d.ts +0 -12
  295. package/dist/react/skf-popover/index.js +0 -18
  296. package/dist/react/skf-progress/index.d.ts +0 -3
  297. package/dist/react/skf-progress/index.js +0 -13
  298. package/dist/react/skf-radio/index.d.ts +0 -9
  299. package/dist/react/skf-radio/index.js +0 -17
  300. package/dist/react/skf-select/index.d.ts +0 -21
  301. package/dist/react/skf-select/index.js +0 -21
  302. package/dist/react/skf-select-option/index.d.ts +0 -9
  303. package/dist/react/skf-select-option/index.js +0 -17
  304. package/dist/react/skf-select-option-group/index.d.ts +0 -3
  305. package/dist/react/skf-select-option-group/index.js +0 -13
  306. package/dist/react/skf-stepper/index.d.ts +0 -9
  307. package/dist/react/skf-stepper/index.js +0 -17
  308. package/dist/react/skf-stepper-item/index.d.ts +0 -9
  309. package/dist/react/skf-stepper-item/index.js +0 -17
  310. package/dist/react/skf-switch/index.d.ts +0 -3
  311. package/dist/react/skf-switch/index.js +0 -13
  312. package/dist/react/skf-tab/index.d.ts +0 -12
  313. package/dist/react/skf-tab/index.js +0 -18
  314. package/dist/react/skf-tab-group/index.d.ts +0 -3
  315. package/dist/react/skf-tab-group/index.js +0 -13
  316. package/dist/react/skf-tab-panel/index.d.ts +0 -3
  317. package/dist/react/skf-tab-panel/index.js +0 -13
  318. package/dist/react/skf-tag/index.d.ts +0 -3
  319. package/dist/react/skf-tag/index.js +0 -13
  320. package/dist/react/skf-textarea/index.d.ts +0 -12
  321. package/dist/react/skf-textarea/index.js +0 -18
  322. package/dist/react/skf-toast/index.d.ts +0 -3
  323. package/dist/react/skf-toast/index.js +0 -13
  324. package/dist/react/skf-toast-wrapper/index.d.ts +0 -3
  325. package/dist/react/skf-toast-wrapper/index.js +0 -13
  326. package/dist/react/skf-tooltip/index.d.ts +0 -12
  327. package/dist/react/skf-tooltip/index.js +0 -18
  328. /package/dist/components/{breadcrumb-item/breadcrumb-item.styles.d.ts → accordion/accordion-item.styles.d.ts} +0 -0
  329. /package/dist/components/{breadcrumb-item → breadcrumb}/breadcrumb-item.component.d.ts +0 -0
  330. /package/dist/components/{menu-item/menu-item.styles.d.ts → breadcrumb/breadcrumb-item.styles.d.ts} +0 -0
  331. /package/dist/components/{select-option-group/select-option-group.style.d.ts → datepicker/datepicker-calendar.styles.d.ts} +0 -0
  332. /package/dist/components/{select-option/select-option.styles.d.ts → datepicker/datepicker-popup.styles.d.ts} +0 -0
  333. /package/dist/components/{stepper-item/stepper-item.styles.d.ts → drawer/drawer.styles.d.ts} +0 -0
  334. /package/dist/components/{tab-group/tab-group.styles.d.ts → header/header.styles.d.ts} +0 -0
  335. /package/dist/components/{menu-item → menu}/menu-item.js +0 -0
  336. /package/dist/components/{tab-panel/tab-panel.styles.d.ts → menu/menu-item.styles.d.ts} +0 -0
  337. /package/dist/components/{tab/tab.styles.d.ts → nav/nav-item.styles.d.ts} +0 -0
  338. /package/dist/components/{toast-wrapper/toast-wrapper.styles.d.ts → nav/nav.styles.d.ts} +0 -0
  339. /package/dist/components/{select-option-group → select}/select-option-group.js +0 -0
  340. /package/dist/components/{select-option → select}/select-option.d.ts +0 -0
  341. /package/dist/components/{select-option → select}/select-option.js +0 -0
  342. /package/dist/components/{stepper-item → stepper}/stepper-item.component.d.ts +0 -0
  343. /package/dist/components/{stepper-item → stepper}/stepper-item.js +0 -0
  344. /package/dist/components/{stepper-item → stepper}/stepper-item.styles.js +0 -0
  345. /package/dist/components/{tab-panel → tabs}/tab-panel.component.d.ts +0 -0
  346. /package/dist/components/{tab-panel → tabs}/tab-panel.js +0 -0
  347. /package/dist/components/{tab-panel → tabs}/tab-panel.styles.js +0 -0
  348. /package/dist/components/{tab → tabs}/tab.js +0 -0
  349. /package/dist/components/{tab → tabs}/tab.styles.js +0 -0
  350. /package/dist/components/{toast-item → toast}/toast-item.component.d.ts +0 -0
  351. /package/dist/components/{toast-item → toast}/toast-item.styles.d.ts +0 -0
  352. /package/dist/components/{toast-wrapper → toast}/toast-wrapper.component.d.ts +0 -0
  353. /package/dist/components/{toast-wrapper → toast}/toast-wrapper.d.ts +0 -0
  354. /package/dist/components/{toast-wrapper → toast}/toast-wrapper.js +0 -0
  355. /package/dist/components/{toast-wrapper → toast}/toast-wrapper.styles.js +0 -0
@@ -1,3 +1,50 @@
1
+ import type { SkfIcon } from "../../components/icon/icon.component.js";
2
+ import type { SkfAccordionItem, CustomEvent } from "../../components/accordion-item/accordion-item.component.js";
3
+ import type { SkfAccordion } from "../../components/accordion/accordion.component.js";
4
+ import type { SkfAlert, CustomEvent } from "../../components/alert/alert.component.js";
5
+ import type { SkfBreadcrumbItem } from "../../components/breadcrumb-item/breadcrumb-item.component.js";
6
+ import type { SkfBreadcrumb } from "../../components/breadcrumb/breadcrumb.component.js";
7
+ import type { SkfLoader } from "../../components/loader/loader.component.js";
8
+ import type { SkfButton, CustomEvent } from "../../components/button/button.component.js";
9
+ import type { SkfCard } from "../../components/card/card.component.js";
10
+ import type { SkfCheckbox, Event } from "../../components/checkbox/checkbox.component.js";
11
+ import type { SkfDatepickerCalendar } from "../../components/datepicker-calendar/datepicker-calendar.component.js";
12
+ import type { SkfDatepicker } from "../../components/datepicker/datepicker.component.js";
13
+ import type { SkfHeading } from "../../components/heading/heading.component.js";
14
+ import type { SkfDialog, CustomEvent } from "../../components/dialog/dialog.component.js";
15
+ import type { SkfDivider } from "../../components/divider/divider.component.js";
16
+ import type { SkfDrawer, CustomEvent } from "../../components/drawer/drawer.component.js";
17
+ import type { SkfLogo } from "../../components/logo/logo.component.js";
18
+ import type { SkfLink, CustomEvent } from "../../components/link/link.component.js";
19
+ import type { SkfNavItem } from "../../components/nav-item/nav-item.component.js";
20
+ import type { SkfNav } from "../../components/nav/nav.component.js";
21
+ import type { SkfHeader } from "../../components/header/header.component.js";
22
+ import type { SkfInput, CustomEvent } from "../../components/input/input.component.js";
23
+ import type { SkfMenuItem, CustomEvent } from "../../components/menu-item/menu-item.component.js";
24
+ import type { SkfMenu, CustomEvent } from "../../components/menu/menu.component.js";
25
+ import type { SkfPopover, CustomEvent } from "../../components/popover/popover.component.js";
26
+ import type { SkfProgress } from "../../components/progress/progress.component.js";
27
+ import type { SkfRadio, Event } from "../../components/radio/radio.component.js";
28
+ import type {
29
+ SkfSegmentedButtonItem,
30
+ CustomEvent,
31
+ } from "../../components/segmented-button-item/segmented-button-item.component.js";
32
+ import type { SkfSegmentedButton } from "../../components/segmented-button/segmented-button.component.js";
33
+ import type { SkfSelectOptionGroup } from "../../components/select-option-group/select-option-group.component.js";
34
+ import type { SkfTag } from "../../components/tag/tag.component.js";
35
+ import type { SkfSelect, Event, CustomEvent } from "../../components/select/select.component.js";
36
+ import type { SkfSelectOption } from "../../components/select-option/select-option.component.js";
37
+ import type { SkfStepperItem } from "../../components/stepper-item/stepper-item.component.js";
38
+ import type { SkfStepper, CustomEvent } from "../../components/stepper/stepper.component.js";
39
+ import type { SkfSwitch } from "../../components/switch/switch.component.js";
40
+ import type { SkfTabPanel } from "../../components/tab-panel/tab-panel.component.js";
41
+ import type { SkfTabs } from "../../components/tabs/tabs.component.js";
42
+ import type { SkfTab, CustomEvent } from "../../components/tab/tab.component.js";
43
+ import type { SkfTextArea } from "../../components/textarea/textarea.component.js";
44
+ import type { SkfToastWrapper } from "../../components/toast-wrapper/toast-wrapper.component.js";
45
+ import type { SkfToast } from "../../components/toast/toast.component.js";
46
+ import type { SkfTooltip } from "../../components/tooltip/tooltip.component.js";
47
+
1
48
  /**
2
49
  * This type can be used to create scoped tags for your components.
3
50
  *
@@ -58,1441 +105,855 @@ type BaseProps = {
58
105
  translate?: "yes" | "no";
59
106
  };
60
107
 
61
- type BaseEvents = {};
108
+ type BaseEvents = {
109
+ // Mouse Events
110
+
111
+ /** Triggered when the element is clicked by the user by mouse or keyboard. */
112
+ onClick?: (event: MouseEvent) => void;
113
+ /** Fired when the context menu is triggered, often by right-clicking. */
114
+ onContextMenu?: (event: MouseEvent) => void;
115
+ /** Fired when the element is double-clicked. */
116
+ onDoubleClick?: (event: MouseEvent) => void;
117
+ /** Fired repeatedly as the draggable element is being dragged. */
118
+ onDrag?: (event: DragEvent) => void;
119
+ /** Fired when the dragging of a draggable element is finished. */
120
+ onDragEnd?: (event: DragEvent) => void;
121
+ /** Fired when a dragged element or text selection enters a valid drop target. */
122
+ onDragEnter?: (event: DragEvent) => void;
123
+ /** Fired when a dragged element or text selection leaves a valid drop target. */
124
+ onDragExit?: (event: DragEvent) => void;
125
+ /** Fired when a dragged element or text selection leaves a valid drop target. */
126
+ onDragLeave?: (event: DragEvent) => void;
127
+ /** Fired when an element or text selection is being dragged over a valid drop target (every few hundred milliseconds). */
128
+ onDragOver?: (event: DragEvent) => void;
129
+ /** Fired when a draggable element starts being dragged. */
130
+ onDragStart?: (event: DragEvent) => void;
131
+ /** Fired when a dragged element is dropped onto a drop target. */
132
+ onDrop?: (event: DragEvent) => void;
133
+ /** Fired when a mouse button is pressed down on the element. */
134
+ onMouseDown?: (event: MouseEvent) => void;
135
+ /** Fired when the mouse cursor enters the element. */
136
+ onMouseEnter?: (event: MouseEvent) => void;
137
+ /** Triggered when the mouse cursor leaves the element. */
138
+ onMouseLeave?: (event: MouseEvent) => void;
139
+ /** Fired at an element when a pointing device (usually a mouse) is moved while the cursor's hotspot is inside it. */
140
+ onMouseMove?: (event: MouseEvent) => void;
141
+ /** Fired at an Element when a pointing device (usually a mouse) is used to move the cursor so that it is no longer contained within the element or one of its children. */
142
+ onMouseOut?: (event: MouseEvent) => void;
143
+ /** Fired at an Element when a pointing device (such as a mouse or trackpad) is used to move the cursor onto the element or one of its child elements. */
144
+ onMouseOver?: (event: MouseEvent) => void;
145
+ /** Fired when a mouse button is released on the element. */
146
+ onMouseUp?: (event: MouseEvent) => void;
147
+
148
+ // Keyboard Events
149
+
150
+ /** Fired when a key is pressed down. */
151
+ onKeyDown?: (event: KeyboardEvent) => void;
152
+ /** Fired when a key is released.. */
153
+ onKeyUp?: (event: KeyboardEvent) => void;
154
+ /** Fired when a key is pressed down. */
155
+ onKeyPressed?: (event: KeyboardEvent) => void;
156
+
157
+ // Focus Events
158
+
159
+ /** Fired when the element receives focus, often triggered by tab navigation. */
160
+ onFocus?: (event: FocusEvent) => void;
161
+ /** Fired when the element loses focus. */
162
+ onBlur?: (event: FocusEvent) => void;
163
+
164
+ // Form Events
165
+
166
+ /** Fired when the value of an input element changes, such as with text inputs or select elements. */
167
+ onChange?: (event: Event) => void;
168
+ /** Fires when the value of an <input>, <select>, or <textarea> element has been changed. */
169
+ onInput?: (event: Event) => void;
170
+ /** Fired when a form is submitted, usually on pressing Enter in a text input. */
171
+ onSubmit?: (event: Event) => void;
172
+ /** Fired when a form is reset. */
173
+ onReset?: (event: Event) => void;
174
+
175
+ // UI Events
176
+
177
+ /** Fired when the content of an element is scrolled. */
178
+ onScroll?: (event: UIEvent) => void;
179
+
180
+ // Wheel Events
181
+
182
+ /** Fired when the mouse wheel is scrolled while the element is focused. */
183
+ onWheel?: (event: WheelEvent) => void;
184
+
185
+ // Animation Events
186
+
187
+ /** Fired when a CSS animation starts. */
188
+ onAnimationStart?: (event: AnimationEvent) => void;
189
+ /** Fired when a CSS animation completes. */
190
+ onAnimationEnd?: (event: AnimationEvent) => void;
191
+ /** Fired when a CSS animation completes one iteration. */
192
+ onAnimationIteration?: (event: AnimationEvent) => void;
193
+
194
+ // Transition Events
195
+
196
+ /** Fired when a CSS transition has completed. */
197
+ onTransitionEnd?: (event: TransitionEvent) => void;
198
+
199
+ // Media Events
200
+
201
+ /** Fired when an element (usually an image) finishes loading */
202
+ onLoad?: (event: Event) => void;
203
+ /** Fired when an error occurs during the loading of an element, like an image not being found. */
204
+ onError?: (event: Event) => void;
205
+
206
+ // Clipboard Events
207
+
208
+ /** Fires when the user initiates a copy action through the browser's user interface. */
209
+ onCopy?: (event: ClipboardEvent) => void;
210
+ /** Fired when the user has initiated a "cut" action through the browser's user interface. */
211
+ onCut?: (event: ClipboardEvent) => void;
212
+ /** Fired when the user has initiated a "paste" action through the browser's user interface. */
213
+ onPaste?: (event: ClipboardEvent) => void;
214
+ };
215
+
216
+ export type SkfIconProps = {
217
+ /** Sets the color of the icon */
218
+ color?: SkfIcon["color"];
219
+ /** If defined, adds an alternate description to use for assistive devices */
220
+ label?: SkfIcon["label"];
221
+ /** Name of the icon to display */
222
+ name?: SkfIcon["name"];
223
+ /** Size of the icon */
224
+ size?: SkfIcon["size"];
225
+ };
226
+
227
+ export type SkfAccordionItemProps = {
228
+ /** If true, will animate the expand/accordion-item state */
229
+ animated?: SkfAccordionItem["animated"];
230
+ /** If true, will set the accordion-item to be expanded by default */
231
+ expanded?: SkfAccordionItem["expanded"];
232
+ /** Heading for the accordion-item */
233
+ heading?: SkfAccordionItem["heading"];
234
+ /** Defines which heading element will be rendered */
235
+ "heading-as"?: SkfAccordionItem["headingAs"];
236
+ /** If true, renders the small version */
237
+ small?: SkfAccordionItem["small"];
238
+ /** If true, will truncate the heading in accordion-item state */
239
+ truncate?: SkfAccordionItem["truncate"];
240
+
241
+ /** Event emitted when toggled */
242
+ "onskf-accordion-item-toggle"?: (e: CustomEvent<CustomEvent>) => void;
243
+ };
62
244
 
63
245
  export type SkfAccordionProps = {
64
246
  /** If true, will animate the expand/collapse state */
65
- animated?: boolean | undefined;
247
+ animated?: SkfAccordion["animated"];
66
248
  /** Defines which heading element will be rendered */
67
- "heading-as"?: "h1" | "h2" | "h3" | "h4";
249
+ "heading-as"?: SkfAccordion["headingAs"];
68
250
  /** If true, adds a gap between each item */
69
- gap?: boolean;
251
+ gap?: SkfAccordion["gap"];
70
252
  /** If true, allowes multiple accordion items to open */
71
- multiple?: boolean | undefined;
253
+ multiple?: SkfAccordion["multiple"];
72
254
  /** If true, renders the small version */
73
- small?: boolean | undefined;
255
+ small?: SkfAccordion["small"];
74
256
  /** If true, will truncate all headings in collapsed state */
75
- truncate?: boolean | undefined;
257
+ truncate?: SkfAccordion["truncate"];
76
258
  };
77
259
 
78
260
  export type SkfAlertProps = {
79
- /** If true, alert is being used as a toast (alertdialog) with an close button */
80
- closeable?: boolean | undefined;
81
261
  /** Close button aria-label */
82
- "button-label"?: string;
262
+ "button-label"?: SkfAlert["buttonLabel"];
83
263
  /** If defined, displays leading icon */
84
- icon?: SkfIcon["name"] | undefined;
264
+ icon?: SkfAlert["icon"];
265
+ /** If true, renders with an close button and sets aria-role to `status` */
266
+ persistent?: SkfAlert["persistent"];
85
267
  /** If defined, gives the supplied appearance */
86
- severity?: "error" | "info" | "warning" | "success" | "alert";
268
+ severity?: SkfAlert["severity"];
87
269
 
88
270
  /** Fires when the close button is clicked */
89
- "onskf-alert-close"?: (e: CustomEvent<never>) => void;
271
+ "onskf-alert-close"?: (e: CustomEvent<CustomEvent>) => void;
272
+ };
273
+
274
+ export type SkfBreadcrumbItemProps = {
275
+ /** If defined, loads url on click */
276
+ href?: SkfBreadcrumbItem["href"];
277
+ /** If defined, custom onClick where the second return parameter enables custom routing. **Notice!** Only applicable if `href` is defined. */
278
+ onClick?: SkfBreadcrumbItem["onClick"];
90
279
  };
91
280
 
92
281
  export type SkfBreadcrumbProps = {
93
282
  /** aria-label for the breadcrumb control */
94
- label?: string;
95
- /** Displays an alternative size */
96
- size?: "md" | "sm";
283
+ label?: SkfBreadcrumb["label"];
284
+ /** If true, renders a smaller version */
285
+ small?: SkfBreadcrumb["small"];
97
286
 
98
287
  /** Fired when the item is clicked */
99
288
  onclick?: (e: CustomEvent<never>) => void;
100
289
  };
101
290
 
102
- export type SkfBreadcrumbItemProps = {
103
- /** If defined, loads url on click */
104
- href?: string | undefined;
105
- /** If defined, custom onClick where the second return parameter enables custom routing. **Notice!** Only applicable if `href` is defined. */
106
- onClick?: string;
291
+ export type SkfLoaderProps = {
292
+ /** Defines the aria-label */
293
+ "aria-label"?: SkfLoader["ariaLabel"];
294
+ /** If true, inverts the color (to be used on colored backgrounds) */
295
+ invert?: SkfLoader["invert"];
296
+ /** Defines the size of the loader */
297
+ size?: SkfLoader["size"];
107
298
  };
108
299
 
109
300
  export type SkfButtonProps = {
110
301
  /** If true, gives destructive appearance. **Notice!** Only applicable if `variant` is `primary`. */
111
- destructive?: boolean;
302
+ destructive?: SkfButton["destructive"];
112
303
  /** If true, removes border */
113
- disabled?: boolean;
304
+ disabled?: SkfButton["disabled"];
114
305
  /** If provided, renders an icon before or after the text */
115
- icon?:
116
- | "arrowDown"
117
- | "arrowDownUp"
118
- | "arrowLeft"
119
- | "arrowRight"
120
- | "arrowUp"
121
- | "article"
122
- | "artificialIntelligence"
123
- | "asset"
124
- | "attachment"
125
- | "bandCursor"
126
- | "bands"
127
- | "batteryEmpty"
128
- | "batteryFull"
129
- | "batteryLow"
130
- | "bearingFault"
131
- | "book"
132
- | "bulb"
133
- | "burger"
134
- | "cPM"
135
- | "calendar"
136
- | "calendarBooked"
137
- | "calendarEmpty"
138
- | "calendarNotBooked"
139
- | "calendarRecurring"
140
- | "caretDown"
141
- | "caretUp"
142
- | "caretUpDown"
143
- | "chat"
144
- | "check"
145
- | "checkCircle"
146
- | "checkSmall"
147
- | "chevronDown"
148
- | "chevronLeft"
149
- | "chevronRight"
150
- | "chevronUp"
151
- | "chevronUpDown"
152
- | "close"
153
- | "closeAllFaults"
154
- | "closeFault"
155
- | "closeSmall"
156
- | "columnGraph"
157
- | "comment"
158
- | "connection1"
159
- | "connection2"
160
- | "connection3"
161
- | "connection4"
162
- | "danger"
163
- | "defectFrequencies"
164
- | "defectFrequenciesAlternative"
165
- | "doubleChevronLeft"
166
- | "doubleChevronRight"
167
- | "download"
168
- | "draft"
169
- | "draftFilled"
170
- | "draftOutlined"
171
- | "dragNDrop"
172
- | "drop"
173
- | "duplicate"
174
- | "edit"
175
- | "emailFilled"
176
- | "emailOutlined"
177
- | "exclamation"
178
- | "eye"
179
- | "eyeHidden"
180
- | "eyeVisible"
181
- | "filter"
182
- | "forbidden"
183
- | "fullScreen"
184
- | "fullScreenExit"
185
- | "functionalLocation"
186
- | "harmonicCursor"
187
- | "heatmap"
188
- | "hierarchy"
189
- | "history"
190
- | "historyAlt"
191
- | "hourglassFramedFilled"
192
- | "hourglassFramedOutlined"
193
- | "hourglassOutlined"
194
- | "hz"
195
- | "iMX"
196
- | "image"
197
- | "infoCircleFilled"
198
- | "infoCircleOutlined"
199
- | "integration"
200
- | "kebab"
201
- | "link"
202
- | "listGroup"
203
- | "listItem"
204
- | "locationPin"
205
- | "lock"
206
- | "logOut"
207
- | "meatballs"
208
- | "microphone"
209
- | "minus"
210
- | "minusSmall"
211
- | "noData"
212
- | "o"
213
- | "openInNew"
214
- | "overlayBaseline"
215
- | "pDF"
216
- | "paper"
217
- | "pause"
218
- | "pieChart"
219
- | "pin"
220
- | "play"
221
- | "plus"
222
- | "powerOff"
223
- | "printer"
224
- | "proCollect"
225
- | "recAction"
226
- | "received"
227
- | "refresh"
228
- | "reorder"
229
- | "replace"
230
- | "reply"
231
- | "rewalkableRoute"
232
- | "routes"
233
- | "search"
234
- | "send"
235
- | "sensorA"
236
- | "sensorB"
237
- | "settings"
238
- | "sidebandCursor"
239
- | "singleCursor"
240
- | "spectrum"
241
- | "starFilled"
242
- | "starOutlined"
243
- | "statusCircle"
244
- | "stop"
245
- | "structuralVibration"
246
- | "sync"
247
- | "timewave"
248
- | "trash"
249
- | "trend"
250
- | "trendingUp"
251
- | "undo"
252
- | "unknownCircle"
253
- | "unknownDiamond"
254
- | "unlink"
255
- | "unlock"
256
- | "unscheduledAction"
257
- | "upload"
258
- | "user"
259
- | "viewFull"
260
- | "viewHorizontal"
261
- | "viewVertical"
262
- | "warning"
263
- | "warningCircle"
264
- | "warningDiamond"
265
- | "zoomIn"
266
- | "zoomOut";
267
- /** If true, removes border */
268
- iconOnly?: boolean;
269
- /** If provided, determines the positioning of the icon in relation to the text */
270
- "icon-position"?: "left" | "right" | undefined;
306
+ icon?: SkfButton["icon"];
307
+ /** If true, button will take a square shape */
308
+ "icon-only"?: SkfButton["iconOnly"];
309
+ /** Determines the positioning of the icon in relation to the text */
310
+ "icon-position"?: SkfButton["iconPosition"];
271
311
  /** If true, hides text & icon and shows loading indicator. **Notice!** Only applicable if `variant` is `primary`. */
272
- loading?: boolean;
312
+ loading?: SkfButton["loading"];
273
313
  /** */
274
- "no-validate"?: boolean;
314
+ "no-validate"?: SkfButton["noValidate"];
275
315
  /** If provided, displays an alternative size */
276
- size?: "sm" | "md" | "lg";
316
+ size?: SkfButton["size"];
277
317
  /** If provided, changes the button type */
278
- type?: "button" | "submit" | "reset";
318
+ type?: SkfButton["type"];
279
319
  /** If provided, alters the appearance */
280
- variant?: "primary" | "secondary";
320
+ variant?: SkfButton["variant"];
281
321
 
282
322
  /** Fires when the button is clicked */
283
- onclick?: (e: CustomEvent<never>) => void;
323
+ onclick?: (e: CustomEvent<CustomEvent>) => void;
284
324
  };
285
325
 
286
326
  export type SkfCardProps = {
287
327
  /** If true, removes border */
288
- "no-border"?: boolean;
328
+ "no-border"?: SkfCard["noBorder"];
289
329
  /** If true, removes padding */
290
- "no-padding"?: boolean;
330
+ "no-padding"?: SkfCard["noPadding"];
291
331
  /** If true, the Card fills the parent element height */
292
- stretch?: boolean;
332
+ stretch?: SkfCard["stretch"];
293
333
  };
294
334
 
295
335
  export type SkfCheckboxProps = {
296
336
  /** If true, sets disabled state */
297
- disabled?: boolean;
337
+ disabled?: SkfCheckbox["undefined"];
298
338
  /** If true, value is required or must be checked for the form to be submittable */
299
- required?: boolean;
339
+ required?: SkfCheckbox["undefined"];
300
340
  /** If defined, outputs helping hints in console */
301
- debug?: boolean | undefined;
341
+ debug?: SkfCheckbox["debug"];
302
342
  /** If true, outputs helping hints in console */
303
- checked?: boolean | undefined;
343
+ checked?: SkfCheckbox["checked"];
304
344
  /** If true, forces component to invalid state until removed */
305
- "custom-invalid"?: boolean | undefined;
345
+ "custom-invalid"?: SkfCheckbox["customInvalid"];
306
346
  /** If true and the checkbox is unchecked, the checkbox will appear indeterminate */
307
- indeterminate?: boolean | undefined;
347
+ indeterminate?: SkfCheckbox["indeterminate"];
308
348
  /** If defined, sets the input's label. Alternatively, you can use the `label` attribute. */
309
- label?: string | undefined;
349
+ label?: SkfCheckbox["label"];
310
350
  /** If defined, adds name to the input-element */
311
- name?: string | undefined;
351
+ name?: SkfCheckbox["name"];
312
352
  /** If defined, renders an alternative A11y text for the asterisk */
313
- "required-label"?: string | undefined;
353
+ "required-label"?: SkfCheckbox["requiredLabel"];
314
354
  /** If defined, styles checkbox using provided severity */
315
- severity?: "alert" | "success" | "info" | "warning";
355
+ severity?: SkfCheckbox["severity"];
316
356
  /** If true, displays valid state after interaction */
317
- "show-valid"?: boolean | undefined;
357
+ "show-valid"?: SkfCheckbox["showValid"];
318
358
  /** Size of the checkbox */
319
- size?: "sm" | "md";
359
+ size?: SkfCheckbox["size"];
320
360
  /** The current value of the input field */
321
- value?: string;
361
+ value?: SkfCheckbox["value"];
322
362
 
323
- /** {object} - When the value of the input changes */
324
- onchange?: (e: CustomEvent<never>) => void;
363
+ /** When the value of the input changes */
364
+ onchange?: (e: CustomEvent<Event>) => void;
325
365
  };
326
366
 
327
- export type SkfCollapseProps = {
328
- /** If true, will animate the expand/collapse state */
329
- animated?: boolean;
330
- /** If true, will set the collapse to be expanded by default */
331
- expanded?: boolean;
332
- /** Heading for the collapse */
333
- heading?: string | undefined;
334
- /** Defines which heading element will be rendered */
335
- "heading-as"?: "h2" | "h3" | "h4";
336
- /** If true, renders the small version */
337
- small?: boolean;
338
- /** If true, will truncate the heading in collapsed state */
339
- truncate?: boolean;
367
+ export type SkfDatepickerCalendarProps = {
368
+ /** */
369
+ eventid?: SkfDatepickerCalendar["eventid"];
370
+ /** */
371
+ firstDayOfWeek?: SkfDatepickerCalendar["firstDayOfWeek"];
372
+ /** A comma-separated list of dates (yyyy-mm-dd format) that are not selectable. */
373
+ "invalid-dates"?: SkfDatepickerCalendar["invalidDates"];
374
+ /** */
375
+ locale?: SkfDatepickerCalendar["locale"];
376
+ /** */
377
+ range?: SkfDatepickerCalendar["range"];
378
+ /** Earliest selectable date. (yyyy-mm-dd format) */
379
+ "selectable-from"?: SkfDatepickerCalendar["selectableFrom"];
380
+ /** Latest selectable date. (yyyy-mm-dd format) */
381
+ "selectable-to"?: SkfDatepickerCalendar["selectableTo"];
382
+ /** */
383
+ "selected-date"?: SkfDatepickerCalendar["selectedDate"];
384
+ /** */
385
+ selectedDateRange?: SkfDatepickerCalendar["selectedDateRange"];
386
+ /** */
387
+ _listenToKeyboard?: SkfDatepickerCalendar["_listenToKeyboard"];
388
+ /** */
389
+ _handleKeyDown?: SkfDatepickerCalendar["_handleKeyDown"];
390
+ /** */
391
+ dateSelectable?: SkfDatepickerCalendar["dateSelectable"];
392
+ };
340
393
 
341
- /** Event emitted when toggled */
342
- "onskf-collapse-toggle"?: (e: CustomEvent<CustomEvent>) => void;
394
+ export type SkfDatepickerProps = {
395
+ /** If defined, forces component to invalid state until removed. Its value is used as hint text. */
396
+ "custom-invalid"?: SkfDatepicker["customInvalid"];
397
+ /** */
398
+ id?: SkfDatepicker["id"];
399
+ /** If defined, sets the input's label. Alternatively, you can use the `label` attribute. */
400
+ label?: SkfDatepicker["label"];
401
+ /** If true, hides the label visually */
402
+ "hide-label"?: SkfDatepicker["hideLabel"];
403
+ /** If defined, displays informational text below the field */
404
+ hint?: SkfDatepicker["hint"];
405
+ /** A comma-separated list of dates (yyyy-mm-dd format) that are not selectable. */
406
+ "invalid-dates"?: SkfDatepicker["invalidDates"];
407
+ /** If defined, adds name to the input-element */
408
+ name?: SkfDatepicker["name"];
409
+ /** */
410
+ placeholder?: SkfDatepicker["placeholder"];
411
+ /** */
412
+ range?: SkfDatepicker["range"];
413
+ /** If true, makes the element not mutable, meaning the user can not edit the control */
414
+ readonly?: SkfDatepicker["readonly"];
415
+ /** If defined, renders an alternative A11y text for the asterisk */
416
+ "required-label"?: SkfDatepicker["requiredLabel"];
417
+ /** Earliest selectable date. (yyyy-mm-dd format) */
418
+ "selectable-from"?: SkfDatepicker["selectableFrom"];
419
+ /** Latest selectable date. (yyyy-mm-dd format) */
420
+ "selectable-to"?: SkfDatepicker["selectableTo"];
421
+ /** If defined, displays provided severity state */
422
+ severity?: SkfDatepicker["severity"];
423
+ /** Size of the input */
424
+ size?: SkfDatepicker["size"];
425
+ /** Sets validation start */
426
+ "validate-on"?: SkfDatepicker["validateOn"];
427
+ /** The current value of the input field */
428
+ value?: SkfDatepicker["value"];
429
+ /** */
430
+ focusTimeoutId?: SkfDatepicker["focusTimeoutId"];
431
+ };
432
+
433
+ export type SkfHeadingProps = {
434
+ /** Controls which heading element will be rendered. Should not be used to affect appearance */
435
+ as?: SkfHeading["as"];
436
+ /** If defined, changes the appearance of the heading */
437
+ "styled-as"?: SkfHeading["styledAs"];
343
438
  };
344
439
 
345
440
  export type SkfDialogProps = {
346
441
  /** If defined, sets the aria-label for the close button */
347
- "close-button-aria-label"?: string | undefined;
442
+ "close-button-aria-label"?: SkfDialog["closeButtonAriaLabel"];
348
443
  /** Title for the modal/dialog */
349
- heading?: string | undefined;
444
+ heading?: SkfDialog["heading"];
350
445
  /** If true, makes the dialog stretch edge to edge on screen */
351
- fullscreen?: boolean;
446
+ fullscreen?: SkfDialog["fullscreen"];
352
447
  /** If true, removes the close button */
353
- "no-close-button"?: boolean;
448
+ "no-close-button"?: SkfDialog["noCloseButton"];
354
449
  /** If defined, removes the inner padding */
355
- "no-padding"?: boolean;
356
- /** */
357
- open?: boolean | null | undefined;
358
- /** If provided, will run function on dialog close */
359
- onClose?: ((event: Event) => void) | null | undefined;
360
- /** Method that opens the dialog in modal state */
361
- showModal?: string;
362
- /** Method that closes the dialog */
363
- close?: string;
450
+ "no-padding"?: SkfDialog["noPadding"];
451
+ /** If true, indicates that the dialog is active and is available for interaction */
452
+ open?: SkfDialog["open"];
453
+
364
454
  /** Fires when the dialog is opened (after transitioned in) */
365
- "onskf-dialog-open"?: (e: CustomEvent<never>) => void;
366
- /** Fires when the dialog is closed (before transitioned out) */
367
- "onskf-dialog-close"?: (e: CustomEvent<never>) => void;
455
+ "onskf-dialog-opened"?: (e: CustomEvent<CustomEvent>) => void;
456
+ /** Fires when the dialog is closing (before transitioned out) */
457
+ "onskf-dialog-closing"?: (e: CustomEvent<CustomEvent>) => void;
368
458
  /** Fires when the dialog is closed (after transitioned out) */
369
- onclose?: (e: CustomEvent<never>) => void;
459
+ "onskf-dialog-closed"?: (e: CustomEvent<CustomEvent>) => void;
370
460
  };
371
461
 
372
462
  export type SkfDividerProps = {
373
463
  /** Defines the Divider color */
374
- color?: "emphasised" | "primary" | "secondary" | "tertiary" | "inverse";
464
+ color?: SkfDivider["color"];
375
465
  /** If true, renders a div for presentational purpose instead of the semantic hr-element */
376
- decorative?: boolean;
466
+ decorative?: SkfDivider["decorative"];
377
467
  /** If true, renders the divider vertically */
378
- vertical?: boolean;
468
+ vertical?: SkfDivider["vertical"];
379
469
  };
380
470
 
381
- export type SkfHeadingProps = {
382
- /** Controls which heading element will be rendered. Should not be used to affect appearance */
383
- as?: "h1" | "h2" | "h3" | "h4";
384
- /** If provided, changes the appearance of the heading */
385
- "styled-as"?: "h1" | "h2" | "h3" | "h4";
471
+ export type SkfDrawerProps = {
472
+ /** If defined, sets the aria-label for the close button */
473
+ "close-button-aria-label"?: SkfDrawer["closeButtonAriaLabel"];
474
+ /** Heading for the Drawer */
475
+ heading?: SkfDrawer["heading"];
476
+ /** Sets the max-width */
477
+ size?: SkfDrawer["size"];
478
+ /** If true, Drawer is open */
479
+ open?: SkfDrawer["open"];
480
+ /** Placement of the Drawer */
481
+ placement?: SkfDrawer["placement"];
482
+
483
+ /** Fires when the drawer is opened (after transitioned in) */
484
+ "onskf-drawer-opened"?: (e: CustomEvent<CustomEvent>) => void;
485
+ /** Fires when the drawer is closing (before transitioned out) */
486
+ "onskf-drawer-closing"?: (e: CustomEvent<CustomEvent>) => void;
487
+ /** Fires when the drawer is closed (after transitioned out) */
488
+ "onskf-drawer-closed"?: (e: CustomEvent<CustomEvent>) => void;
386
489
  };
387
490
 
388
- export type SkfIconProps = {
389
- /** Sets the color of the icon */
390
- color?: "primary" | "inverse" | "emphasised" | "secondary" | "success" | "info" | "warning" | "error" | "alert";
391
- /** If defined, adds an alternate description to use for assistive devices */
392
- label?: string | undefined;
393
- /** Name of the icon to display */
394
- name?:
395
- | "arrowDown"
396
- | "arrowDownUp"
397
- | "arrowLeft"
398
- | "arrowRight"
399
- | "arrowUp"
400
- | "article"
401
- | "artificialIntelligence"
402
- | "asset"
403
- | "attachment"
404
- | "bandCursor"
405
- | "bands"
406
- | "batteryEmpty"
407
- | "batteryFull"
408
- | "batteryLow"
409
- | "bearingFault"
410
- | "book"
411
- | "bulb"
412
- | "burger"
413
- | "cPM"
414
- | "calendar"
415
- | "calendarBooked"
416
- | "calendarEmpty"
417
- | "calendarNotBooked"
418
- | "calendarRecurring"
419
- | "caretDown"
420
- | "caretUp"
421
- | "caretUpDown"
422
- | "chat"
423
- | "check"
424
- | "checkCircle"
425
- | "checkSmall"
426
- | "chevronDown"
427
- | "chevronLeft"
428
- | "chevronRight"
429
- | "chevronUp"
430
- | "chevronUpDown"
431
- | "close"
432
- | "closeAllFaults"
433
- | "closeFault"
434
- | "closeSmall"
435
- | "columnGraph"
436
- | "comment"
437
- | "connection1"
438
- | "connection2"
439
- | "connection3"
440
- | "connection4"
441
- | "danger"
442
- | "defectFrequencies"
443
- | "defectFrequenciesAlternative"
444
- | "doubleChevronLeft"
445
- | "doubleChevronRight"
446
- | "download"
447
- | "draft"
448
- | "draftFilled"
449
- | "draftOutlined"
450
- | "dragNDrop"
451
- | "drop"
452
- | "duplicate"
453
- | "edit"
454
- | "emailFilled"
455
- | "emailOutlined"
456
- | "exclamation"
457
- | "eye"
458
- | "eyeHidden"
459
- | "eyeVisible"
460
- | "filter"
461
- | "forbidden"
462
- | "fullScreen"
463
- | "fullScreenExit"
464
- | "functionalLocation"
465
- | "harmonicCursor"
466
- | "heatmap"
467
- | "hierarchy"
468
- | "history"
469
- | "historyAlt"
470
- | "hourglassFramedFilled"
471
- | "hourglassFramedOutlined"
472
- | "hourglassOutlined"
473
- | "hz"
474
- | "iMX"
475
- | "image"
476
- | "infoCircleFilled"
477
- | "infoCircleOutlined"
478
- | "integration"
479
- | "kebab"
480
- | "link"
481
- | "listGroup"
482
- | "listItem"
483
- | "locationPin"
484
- | "lock"
485
- | "logOut"
486
- | "meatballs"
487
- | "microphone"
488
- | "minus"
489
- | "minusSmall"
490
- | "noData"
491
- | "o"
492
- | "openInNew"
493
- | "overlayBaseline"
494
- | "pDF"
495
- | "paper"
496
- | "pause"
497
- | "pieChart"
498
- | "pin"
499
- | "play"
500
- | "plus"
501
- | "powerOff"
502
- | "printer"
503
- | "proCollect"
504
- | "recAction"
505
- | "received"
506
- | "refresh"
507
- | "reorder"
508
- | "replace"
509
- | "reply"
510
- | "rewalkableRoute"
511
- | "routes"
512
- | "search"
513
- | "send"
514
- | "sensorA"
515
- | "sensorB"
516
- | "settings"
517
- | "sidebandCursor"
518
- | "singleCursor"
519
- | "spectrum"
520
- | "starFilled"
521
- | "starOutlined"
522
- | "statusCircle"
523
- | "stop"
524
- | "structuralVibration"
525
- | "sync"
526
- | "timewave"
527
- | "trash"
528
- | "trend"
529
- | "trendingUp"
530
- | "undo"
531
- | "unknownCircle"
532
- | "unknownDiamond"
533
- | "unlink"
534
- | "unlock"
535
- | "unscheduledAction"
536
- | "upload"
537
- | "user"
538
- | "viewFull"
539
- | "viewHorizontal"
540
- | "viewVertical"
541
- | "warning"
542
- | "warningCircle"
543
- | "warningDiamond"
544
- | "zoomIn"
545
- | "zoomOut";
546
- /** Size of the icon */
547
- size?: "xs" | "sm" | "md" | "lg";
491
+ export type SkfLogoProps = {
492
+ /** Defines the title of the logo */
493
+ title?: SkfLogo["title"];
494
+ /** Defines the color of the logo */
495
+ color?: SkfLogo["color"];
496
+ };
497
+
498
+ export type SkfLinkProps = {
499
+ /** Defines the semantic element to render */
500
+ as?: SkfLink["as"];
501
+ /** Defines the text-color */
502
+ color?: SkfLink["color"];
503
+ /** If true, disables the link */
504
+ disabled?: SkfLink["disabled"];
505
+ /** If defined, downloads the url */
506
+ download?: SkfLink["download"];
507
+ /** If defined, loads url on click */
508
+ href?: SkfLink["href"];
509
+ /** If defined, renders an icon before or after the text */
510
+ icon?: SkfLink["icon"];
511
+ /** If true, the icon is placed to the right in relation to the text */
512
+ "icon-right"?: SkfLink["iconRight"];
513
+ /** If defined, describes the relationship between a linked resource and the current document */
514
+ rel?: SkfLink["rel"];
515
+ /** If defined, used on conjunction with onClick property. **Notice!** Only applicable to as=button. */
516
+ route?: SkfLink["route"];
517
+ /** If true, fills the parents horizontal axis */
518
+ stretch?: SkfLink["stretch"];
519
+ /** If defined, specifies where to open the linked document */
520
+ target?: SkfLink["target"];
521
+
522
+ /** Fired when the link is clicked */
523
+ "onskf-link-click"?: (e: CustomEvent<CustomEvent>) => void;
524
+ };
525
+
526
+ export type SkfNavItemProps = {
527
+ /** */
528
+ href?: SkfNavItem["href"];
529
+ /** */
530
+ icon?: SkfNavItem["icon"];
531
+ /** */
532
+ vertical?: SkfNavItem["vertical"];
533
+ };
534
+
535
+ export type SkfNavProps = {
536
+ /** If true, the navigation will be displayed vertically */
537
+ vertical?: SkfNav["vertical"];
538
+ };
539
+
540
+ export type SkfHeaderProps = {
541
+ /** If true, sets header to display in compact mode only (hanburger menu and drawer) */
542
+ compact?: SkfHeader["compact"];
543
+ /** If defined, sets the aria-label for the hamburger button */
544
+ "hamburger-aria-label"?: SkfHeader["hamburgerAriaLabel"];
545
+ /** If defined, sets the app or site's name */
546
+ "site-name"?: SkfHeader["siteName"];
547
+ /** If defined, sets the site's base-url for the "logo-link" */
548
+ "site-url"?: SkfHeader["siteUrl"];
548
549
  };
549
550
 
550
551
  export type SkfInputProps = {
551
552
  /** If true, sets disabled state */
552
- disabled?: boolean;
553
+ disabled?: SkfInput["undefined"];
553
554
  /** If true, value is required or must be checked for the form to be submittable */
554
- required?: boolean;
555
- /** -m } */
556
- autocomplete?: string;
555
+ required?: SkfInput["undefined"];
556
+ /** Indicates whether the value of the control can be automatically completed by the browser. See
557
+ [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/autocomplete) for details. */
558
+ autocomplete?: SkfInput["autocomplete"];
557
559
  /** Custom aria-label for the clear button. **Notice!** Only applicable to type=search. */
558
- "button-aria-label-clear"?: string;
560
+ "button-aria-label-clear"?: SkfInput["buttonAriaLabelClear"];
559
561
  /** Custom aria-label for the visibility button. **Notice!** Only applicable to type=password. */
560
- "button-aria-label-hide"?: string;
562
+ "button-aria-label-hide"?: SkfInput["buttonAriaLabelHide"];
561
563
  /** Custom aria-label for the visibility button **Notice!** Only applicable to type=password. */
562
- "button-aria-label-show"?: string;
564
+ "button-aria-label-show"?: SkfInput["buttonAriaLabelShow"];
563
565
  /** If defined, forces component to invalid state until removed. Its value is used as hint text. */
564
- "custom-invalid"?: string;
566
+ "custom-invalid"?: SkfInput["customInvalid"];
565
567
  /** If true, outputs helping hints in console */
566
- debug?: boolean | undefined;
568
+ debug?: SkfInput["debug"];
567
569
  /** If true, hides the label visually */
568
- "hide-label"?: boolean | undefined;
570
+ "hide-label"?: SkfInput["hideLabel"];
569
571
  /** If defined, displays informational text below the field */
570
- hint?: string | undefined;
571
- /** Tells what keyboard to use if applicable */
572
- inputmode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search";
572
+ hint?: SkfInput["hint"];
573
+ /** Provides a hint about the type of data that might be entered by the user while editing the element or its contents. See
574
+ [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/inputMode) for details. */
575
+ inputmode?: SkfInput["inputmode"];
573
576
  /** If defined, sets the input's label. Alternatively, you can use the `label` attribute. */
574
- label?: string | undefined;
577
+ label?: SkfInput["label"];
575
578
  /** If defined, displays a prefix/adornment before the input-element */
576
- leading?: string | undefined;
579
+ leading?: SkfInput["leading"];
577
580
  /** If defined, sets the maximum value to accept for this input */
578
- max?: number | string | undefined;
581
+ max?: SkfInput["max"];
579
582
  /** If defined, sets the maximum character length to accept for this input */
580
- maxlength?: number | undefined;
583
+ maxlength?: SkfInput["maxLength"];
581
584
  /** If defined, sets the minimum value to accept for this input */
582
- min?: number | string | undefined;
585
+ min?: SkfInput["min"];
583
586
  /** If defined, sets the minimum character length to accept for this input */
584
- minlength?: number | undefined;
587
+ minlength?: SkfInput["minLength"];
585
588
  /** If defined, adds name to the input-element */
586
- name?: string | undefined;
589
+ name?: SkfInput["name"];
587
590
  /** If defined, adds name to the input-element */
588
- pattern?: string | undefined;
591
+ pattern?: SkfInput["pattern"];
589
592
  /** If defined, displays placeholder text */
590
- placeholder?: string | undefined;
593
+ placeholder?: SkfInput["placeholder"];
591
594
  /** If true, makes the element not mutable, meaning the user can not edit the control */
592
- readonly?: boolean | undefined;
595
+ readonly?: SkfInput["readonly"];
593
596
  /** If defined, renders an alternative A11y text for the asterisk */
594
- "required-label"?: string | undefined;
597
+ "required-label"?: SkfInput["requiredLabel"];
595
598
  /** If defined, displays provided severity state */
596
- severity?: "alert" | "success" | "info" | "warning";
599
+ severity?: SkfInput["severity"];
597
600
  /** If true, displays valid state after interaction */
598
- "show-valid"?: boolean | undefined;
601
+ "show-valid"?: SkfInput["showValid"];
599
602
  /** Size of the input */
600
- size?: "sm" | "md";
603
+ size?: SkfInput["size"];
601
604
  /** If defined, displays a suffix/adornment after the input-element */
602
- trailing?: string | undefined;
603
- /** Type of input control */
604
- type?:
605
- | "button"
606
- | "color"
607
- | "date"
608
- | "datetime-local"
609
- | "email"
610
- | "file"
611
- | "hidden"
612
- | "image"
613
- | "month"
614
- | "number"
615
- | "password"
616
- | "range"
617
- | "reset"
618
- | "search"
619
- | "submit"
620
- | "tel"
621
- | "text"
622
- | "time"
623
- | "url"
624
- | "week";
605
+ trailing?: SkfInput["trailing"];
606
+ /** Type of input */
607
+ type?: SkfInput["type"];
625
608
  /** Sets validation start */
626
- "validate-on"?: "input" | "change" | "submit";
609
+ "validate-on"?: SkfInput["validateOn"];
627
610
  /** The current value of the input field */
628
- value?: string;
611
+ value?: SkfInput["value"];
629
612
 
630
613
  /** Fires when the value of the input changes */
631
- onchange?: (e: CustomEvent<never>) => void;
614
+ onchange?: (e: CustomEvent<CustomEvent>) => void;
632
615
  /** Fires when the input is invalid */
633
- oninvalid?: (e: CustomEvent<never>) => void;
616
+ oninvalid?: (e: CustomEvent<CustomEvent>) => void;
634
617
  };
635
618
 
636
- export type SkfLinkProps = {
619
+ export type SkfMenuItemProps = {
637
620
  /** Defines the semantic element to render */
638
- as?: "button" | "a";
621
+ as?: SkfMenuItem["as"];
639
622
  /** Defines the text-color */
640
- color?: "primary" | "inverse";
623
+ color?: SkfMenuItem["color"];
641
624
  /** If true, disables the link */
642
- disabled?: boolean | undefined;
625
+ disabled?: SkfMenuItem["disabled"];
643
626
  /** If defined, downloads the url */
644
- download?: string | undefined;
627
+ download?: SkfMenuItem["download"];
645
628
  /** If defined, loads url on click */
646
- href?: string | undefined;
629
+ href?: SkfMenuItem["href"];
647
630
  /** If defined, renders an icon before or after the text */
648
- icon?:
649
- | "arrowDown"
650
- | "arrowDownUp"
651
- | "arrowLeft"
652
- | "arrowRight"
653
- | "arrowUp"
654
- | "article"
655
- | "artificialIntelligence"
656
- | "asset"
657
- | "attachment"
658
- | "bandCursor"
659
- | "bands"
660
- | "batteryEmpty"
661
- | "batteryFull"
662
- | "batteryLow"
663
- | "bearingFault"
664
- | "book"
665
- | "bulb"
666
- | "burger"
667
- | "cPM"
668
- | "calendar"
669
- | "calendarBooked"
670
- | "calendarEmpty"
671
- | "calendarNotBooked"
672
- | "calendarRecurring"
673
- | "caretDown"
674
- | "caretUp"
675
- | "caretUpDown"
676
- | "chat"
677
- | "check"
678
- | "checkCircle"
679
- | "checkSmall"
680
- | "chevronDown"
681
- | "chevronLeft"
682
- | "chevronRight"
683
- | "chevronUp"
684
- | "chevronUpDown"
685
- | "close"
686
- | "closeAllFaults"
687
- | "closeFault"
688
- | "closeSmall"
689
- | "columnGraph"
690
- | "comment"
691
- | "connection1"
692
- | "connection2"
693
- | "connection3"
694
- | "connection4"
695
- | "danger"
696
- | "defectFrequencies"
697
- | "defectFrequenciesAlternative"
698
- | "doubleChevronLeft"
699
- | "doubleChevronRight"
700
- | "download"
701
- | "draft"
702
- | "draftFilled"
703
- | "draftOutlined"
704
- | "dragNDrop"
705
- | "drop"
706
- | "duplicate"
707
- | "edit"
708
- | "emailFilled"
709
- | "emailOutlined"
710
- | "exclamation"
711
- | "eye"
712
- | "eyeHidden"
713
- | "eyeVisible"
714
- | "filter"
715
- | "forbidden"
716
- | "fullScreen"
717
- | "fullScreenExit"
718
- | "functionalLocation"
719
- | "harmonicCursor"
720
- | "heatmap"
721
- | "hierarchy"
722
- | "history"
723
- | "historyAlt"
724
- | "hourglassFramedFilled"
725
- | "hourglassFramedOutlined"
726
- | "hourglassOutlined"
727
- | "hz"
728
- | "iMX"
729
- | "image"
730
- | "infoCircleFilled"
731
- | "infoCircleOutlined"
732
- | "integration"
733
- | "kebab"
734
- | "link"
735
- | "listGroup"
736
- | "listItem"
737
- | "locationPin"
738
- | "lock"
739
- | "logOut"
740
- | "meatballs"
741
- | "microphone"
742
- | "minus"
743
- | "minusSmall"
744
- | "noData"
745
- | "o"
746
- | "openInNew"
747
- | "overlayBaseline"
748
- | "pDF"
749
- | "paper"
750
- | "pause"
751
- | "pieChart"
752
- | "pin"
753
- | "play"
754
- | "plus"
755
- | "powerOff"
756
- | "printer"
757
- | "proCollect"
758
- | "recAction"
759
- | "received"
760
- | "refresh"
761
- | "reorder"
762
- | "replace"
763
- | "reply"
764
- | "rewalkableRoute"
765
- | "routes"
766
- | "search"
767
- | "send"
768
- | "sensorA"
769
- | "sensorB"
770
- | "settings"
771
- | "sidebandCursor"
772
- | "singleCursor"
773
- | "spectrum"
774
- | "starFilled"
775
- | "starOutlined"
776
- | "statusCircle"
777
- | "stop"
778
- | "structuralVibration"
779
- | "sync"
780
- | "timewave"
781
- | "trash"
782
- | "trend"
783
- | "trendingUp"
784
- | "undo"
785
- | "unknownCircle"
786
- | "unknownDiamond"
787
- | "unlink"
788
- | "unlock"
789
- | "unscheduledAction"
790
- | "upload"
791
- | "user"
792
- | "viewFull"
793
- | "viewHorizontal"
794
- | "viewVertical"
795
- | "warning"
796
- | "warningCircle"
797
- | "warningDiamond"
798
- | "zoomIn"
799
- | "zoomOut";
800
- /** Defines the position of the icon in relation to the text */
801
- "icon-placement"?: "left" | "right";
631
+ icon?: SkfMenuItem["icon"];
632
+ /** If true, the icon is placed to the right in relation to the text */
633
+ "icon-right"?: SkfMenuItem["iconRight"];
802
634
  /** If defined, describes the relationship between a linked resource and the current document */
803
- rel?: string | undefined;
804
- /** If defined, used on conjunction with onClick property, second argument */
805
- route?: string | undefined;
635
+ rel?: SkfMenuItem["rel"];
636
+ /** If defined, used on conjunction with onClick property. **Notice!** Only applicable to as=button. */
637
+ route?: SkfMenuItem["route"];
806
638
  /** If true, fills the parents horizontal axis */
807
- stretch?: boolean;
639
+ stretch?: SkfMenuItem["stretch"];
808
640
  /** If defined, specifies where to open the linked document */
809
- target?: "_blank" | "_parent" | "_self" | "_top" | undefined;
810
- /** Defines the type of button */
811
- type?: "button" | "submit" | "reset";
812
- /** If provided, custom function triggered by click where the second return parameter enables custom routing. */
813
- onClick?: function;
814
- };
815
-
816
- export type SkfLoaderProps = {
817
- /** Defines the aria-label */
818
- "aria-label"?: string;
819
- /** If true, inverts the color (to be used on colored backgrounds) */
820
- invert?: boolean;
821
- /** Defines the size of the loader */
822
- size?: "md" | "sm" | undefined;
823
- /** */
824
- role?: string;
825
- /** */
826
- ariaLive?: string;
827
- };
641
+ target?: SkfMenuItem["target"];
828
642
 
829
- export type SkfLogoProps = {
830
- /** Defines the title of the logo */
831
- title?: string;
832
- /** Defines the color of the logo */
833
- color?: "primary" | "secondary" | "inverse";
643
+ /** Fired when the link is clicked */
644
+ "onskf-link-click"?: (e: CustomEvent<CustomEvent>) => void;
834
645
  };
835
646
 
836
647
  export type SkfMenuProps = {
837
648
  /** The placement of the menu */
838
- placement?:
839
- | "top"
840
- | "right"
841
- | "bottom"
842
- | "left"
843
- | "top-start"
844
- | "top-end"
845
- | "right-start"
846
- | "right-end"
847
- | "bottom-start"
848
- | "bottom-end"
849
- | "left-start"
850
- | "left-end";
851
- /** Whether the menu is open */
852
- isOpen?: boolean;
649
+ placement?: SkfMenu["undefined"];
853
650
  /** The id of the element the menu will be anchored to */
854
- anchor?: string;
651
+ anchor?: SkfMenu["undefined"];
652
+
855
653
  /** Fired when the menu is opened */
856
- onopen?: (e: CustomEvent<never>) => void;
654
+ "onskf-opened"?: (e: CustomEvent<CustomEvent>) => void;
857
655
  /** Fired when the menu is closed */
858
- onclose?: (e: CustomEvent<never>) => void;
859
- };
860
-
861
- export type SkfMenuItemProps = {
862
- /** Defines the semantic element to render */
863
- as?: "button" | "a";
864
- /** Defines the text-color */
865
- color?: "primary" | "inverse";
866
- /** If true, disables the link */
867
- disabled?: boolean | undefined;
868
- /** If defined, downloads the url */
869
- download?: string | undefined;
870
- /** If defined, loads url on click */
871
- href?: string | undefined;
872
- /** If defined, renders an icon before or after the text */
873
- icon?:
874
- | "arrowDown"
875
- | "arrowDownUp"
876
- | "arrowLeft"
877
- | "arrowRight"
878
- | "arrowUp"
879
- | "article"
880
- | "artificialIntelligence"
881
- | "asset"
882
- | "attachment"
883
- | "bandCursor"
884
- | "bands"
885
- | "batteryEmpty"
886
- | "batteryFull"
887
- | "batteryLow"
888
- | "bearingFault"
889
- | "book"
890
- | "bulb"
891
- | "burger"
892
- | "cPM"
893
- | "calendar"
894
- | "calendarBooked"
895
- | "calendarEmpty"
896
- | "calendarNotBooked"
897
- | "calendarRecurring"
898
- | "caretDown"
899
- | "caretUp"
900
- | "caretUpDown"
901
- | "chat"
902
- | "check"
903
- | "checkCircle"
904
- | "checkSmall"
905
- | "chevronDown"
906
- | "chevronLeft"
907
- | "chevronRight"
908
- | "chevronUp"
909
- | "chevronUpDown"
910
- | "close"
911
- | "closeAllFaults"
912
- | "closeFault"
913
- | "closeSmall"
914
- | "columnGraph"
915
- | "comment"
916
- | "connection1"
917
- | "connection2"
918
- | "connection3"
919
- | "connection4"
920
- | "danger"
921
- | "defectFrequencies"
922
- | "defectFrequenciesAlternative"
923
- | "doubleChevronLeft"
924
- | "doubleChevronRight"
925
- | "download"
926
- | "draft"
927
- | "draftFilled"
928
- | "draftOutlined"
929
- | "dragNDrop"
930
- | "drop"
931
- | "duplicate"
932
- | "edit"
933
- | "emailFilled"
934
- | "emailOutlined"
935
- | "exclamation"
936
- | "eye"
937
- | "eyeHidden"
938
- | "eyeVisible"
939
- | "filter"
940
- | "forbidden"
941
- | "fullScreen"
942
- | "fullScreenExit"
943
- | "functionalLocation"
944
- | "harmonicCursor"
945
- | "heatmap"
946
- | "hierarchy"
947
- | "history"
948
- | "historyAlt"
949
- | "hourglassFramedFilled"
950
- | "hourglassFramedOutlined"
951
- | "hourglassOutlined"
952
- | "hz"
953
- | "iMX"
954
- | "image"
955
- | "infoCircleFilled"
956
- | "infoCircleOutlined"
957
- | "integration"
958
- | "kebab"
959
- | "link"
960
- | "listGroup"
961
- | "listItem"
962
- | "locationPin"
963
- | "lock"
964
- | "logOut"
965
- | "meatballs"
966
- | "microphone"
967
- | "minus"
968
- | "minusSmall"
969
- | "noData"
970
- | "o"
971
- | "openInNew"
972
- | "overlayBaseline"
973
- | "pDF"
974
- | "paper"
975
- | "pause"
976
- | "pieChart"
977
- | "pin"
978
- | "play"
979
- | "plus"
980
- | "powerOff"
981
- | "printer"
982
- | "proCollect"
983
- | "recAction"
984
- | "received"
985
- | "refresh"
986
- | "reorder"
987
- | "replace"
988
- | "reply"
989
- | "rewalkableRoute"
990
- | "routes"
991
- | "search"
992
- | "send"
993
- | "sensorA"
994
- | "sensorB"
995
- | "settings"
996
- | "sidebandCursor"
997
- | "singleCursor"
998
- | "spectrum"
999
- | "starFilled"
1000
- | "starOutlined"
1001
- | "statusCircle"
1002
- | "stop"
1003
- | "structuralVibration"
1004
- | "sync"
1005
- | "timewave"
1006
- | "trash"
1007
- | "trend"
1008
- | "trendingUp"
1009
- | "undo"
1010
- | "unknownCircle"
1011
- | "unknownDiamond"
1012
- | "unlink"
1013
- | "unlock"
1014
- | "unscheduledAction"
1015
- | "upload"
1016
- | "user"
1017
- | "viewFull"
1018
- | "viewHorizontal"
1019
- | "viewVertical"
1020
- | "warning"
1021
- | "warningCircle"
1022
- | "warningDiamond"
1023
- | "zoomIn"
1024
- | "zoomOut";
1025
- /** Defines the position of the icon in relation to the text */
1026
- "icon-placement"?: "left" | "right";
1027
- /** If defined, describes the relationship between a linked resource and the current document */
1028
- rel?: string | undefined;
1029
- /** If defined, used on conjunction with onClick property, second argument */
1030
- route?: string | undefined;
1031
- /** If true, fills the parents horizontal axis */
1032
- stretch?: boolean;
1033
- /** If defined, specifies where to open the linked document */
1034
- target?: "_blank" | "_parent" | "_self" | "_top" | undefined;
1035
- /** Defines the type of button */
1036
- type?: "button" | "submit" | "reset";
1037
- /** If provided, custom function triggered by click where the second return parameter enables custom routing. */
1038
- onClick?: function;
1039
- /** Fired when something happens */
1040
- "onmy-tag-my-event"?: (e: CustomEvent<CustomEvent>) => void;
1041
- /** Fired when the component is clicked */
1042
- onclick?: (e: CustomEvent<never>) => void;
1043
- /** Fired when the mouse is over the component */
1044
- onmouseover?: (e: CustomEvent<never>) => void;
1045
- /** Fired when the mouse is out of the component */
1046
- onmouseout?: (e: CustomEvent<never>) => void;
1047
- /** Fired when the component is focused */
1048
- onfocus?: (e: CustomEvent<never>) => void;
1049
- /** Fired when the component is blurred */
1050
- onblur?: (e: CustomEvent<never>) => void;
1051
- /** Fired when the component's value changes */
1052
- onchange?: (e: CustomEvent<never>) => void;
656
+ "onskf-closed"?: (e: CustomEvent<CustomEvent>) => void;
1053
657
  };
1054
658
 
1055
659
  export type SkfPopoverProps = {
660
+ /** The placement of the popover */
661
+ placement?: SkfPopover["undefined"];
662
+ /** The id of the element the menu will be anchored to */
663
+ anchor?: SkfPopover["undefined"];
1056
664
  /** If defined, sets a custom offset for the popover */
1057
- offset?: number;
665
+ offset?: SkfPopover["offset"];
1058
666
  /** If true, hides the arrow */
1059
- hideArrow?: boolean;
1060
- /** */
1061
- arrow?: boolean;
1062
- /** The placement of the menu */
1063
- placement?:
1064
- | "top"
1065
- | "right"
1066
- | "bottom"
1067
- | "left"
1068
- | "top-start"
1069
- | "top-end"
1070
- | "right-start"
1071
- | "right-end"
1072
- | "bottom-start"
1073
- | "bottom-end"
1074
- | "left-start"
1075
- | "left-end";
1076
- /** Whether the menu is open */
1077
- isOpen?: boolean;
1078
- /** The id of the element the menu will be anchored to */
1079
- anchor?: string;
667
+ hideArrow?: SkfPopover["hideArrow"];
668
+
1080
669
  /** Fired when the menu is opened */
1081
- onopen?: (e: CustomEvent<never>) => void;
670
+ "onskf-opened"?: (e: CustomEvent<CustomEvent>) => void;
1082
671
  /** Fired when the menu is closed */
1083
- onclose?: (e: CustomEvent<never>) => void;
672
+ "onskf-closed"?: (e: CustomEvent<CustomEvent>) => void;
1084
673
  };
1085
674
 
1086
675
  export type SkfProgressProps = {
1087
676
  /** If true, the progress-bar's fill value is animated */
1088
- animated?: boolean;
677
+ animated?: SkfProgress["animated"];
1089
678
  /** Describes how much work the task indicated by the progress element requires */
1090
- max?: number;
679
+ max?: SkfProgress["max"];
1091
680
  /** Specifies how much of the task that has been completed */
1092
- value?: number;
681
+ value?: SkfProgress["value"];
1093
682
  };
1094
683
 
1095
684
  export type SkfRadioProps = {
1096
685
  /** If true, sets disabled state */
1097
- disabled?: boolean;
686
+ disabled?: SkfRadio["undefined"];
1098
687
  /** If true, value is required or must be checked for the form to be submittable */
1099
- required?: boolean;
688
+ required?: SkfRadio["undefined"];
1100
689
  /** If true, outputs helping hints in console */
1101
- debug?: boolean | undefined;
690
+ debug?: SkfRadio["debug"];
1102
691
  /** If true, outputs helping hints in console */
1103
- checked?: boolean | undefined;
692
+ checked?: SkfRadio["checked"];
1104
693
  /** If true, forces component to invalid state until removed */
1105
- "custom-invalid"?: boolean | undefined;
694
+ "custom-invalid"?: SkfRadio["customInvalid"];
1106
695
  /** If defined, sets the input's label unless the default slot is used. Alternatively, you can use the `label` attribute. */
1107
- label?: string | undefined;
696
+ label?: SkfRadio["label"];
1108
697
  /** If defined, adds name to the input-element */
1109
- name?: string | undefined;
698
+ name?: SkfRadio["name"];
1110
699
  /** If defined, renders an alternative A11y text for the asterisk */
1111
- "required-label"?: string | undefined;
700
+ "required-label"?: SkfRadio["requiredLabel"];
1112
701
  /** Size of the Radio */
1113
- size?: "sm" | "md";
702
+ size?: SkfRadio["size"];
1114
703
  /** If defined, displays provided severity state */
1115
- severity?: "success" | "info" | "warning" | "alert";
704
+ severity?: SkfRadio["severity"];
1116
705
  /** If true, displays valid state after interaction */
1117
- "show-valid"?: boolean | undefined;
706
+ "show-valid"?: SkfRadio["showValid"];
1118
707
  /** The current value of the input field */
1119
- value?: string;
708
+ value?: SkfRadio["value"];
1120
709
 
1121
- /** {object} - When the value of the input changes */
1122
- onchange?: (e: CustomEvent<never>) => void;
710
+ /** When the value of the input changes */
711
+ onchange?: (e: CustomEvent<Event>) => void;
712
+ };
713
+
714
+ export type SkfSegmentedButtonItemProps = {
715
+ /** If true, items is marked as disabled */
716
+ disabled?: SkfSegmentedButtonItem["disabled"];
717
+ /** If true, items is marked as selected */
718
+ selected?: SkfSegmentedButtonItem["selected"];
719
+ /** Sets the item value */
720
+ value?: SkfSegmentedButtonItem["value"];
721
+
722
+ /** Fired when selected */
723
+ "onskf-segmented-button-item-select"?: (e: CustomEvent<CustomEvent>) => void;
724
+ };
725
+
726
+ export type SkfSegmentedButtonProps = {
727
+ /** If true, allowes multiple items to be selected */
728
+ multiple?: SkfSegmentedButton["multiple"];
729
+ };
730
+
731
+ export type SkfSelectOptionGroupProps = {
732
+ /** */
733
+ label?: SkfSelectOptionGroup["label"];
734
+ /** */
735
+ small?: SkfSelectOptionGroup["small"];
736
+ };
737
+
738
+ export type SkfTagProps = {
739
+ /** Specifies Tag size */
740
+ size?: SkfTag["size"];
741
+ /** If defined, displays leading/provided icon */
742
+ icon?: SkfTag["icon"];
743
+ /** If defined, gives the supplied appearance */
744
+ color?: SkfTag["color"];
745
+ /** If true, adds trailing button to remove tag */
746
+ removable?: SkfTag["removable"];
747
+ /** If defined, accepts a function that runs on click */
748
+ onClick?: SkfTag["onClick"];
749
+ /** If defined, accepts a function that runs on click. Self removal can be overridden by using `event.stopPropagation()`. */
750
+ onRemove?: SkfTag["onRemove"];
1123
751
  };
1124
752
 
1125
753
  export type SkfSelectProps = {
1126
- /** If true, the select is disabled `default: false` */
1127
- disabled?: boolean;
754
+ /** If true, the select is disabled */
755
+ disabled?: SkfSelect["undefined"];
756
+ /** If true, the select is required */
757
+ required?: SkfSelect["undefined"];
1128
758
  /** Sets the first visible text on the component */
1129
- "button-label"?: string;
759
+ "button-label"?: SkfSelect["buttonLabel"];
1130
760
  /** If defined, forces component to invalid state until removed */
1131
- "custom-invalid"?: string | undefined;
761
+ "custom-invalid"?: SkfSelect["customInvalid"];
1132
762
  /** If true, hides the label visually */
1133
- "hide-label"?: boolean | undefined;
763
+ "hide-label"?: SkfSelect["hideLabel"];
1134
764
  /** If true and mulltiple is true, no tags are displayed under the select */
1135
- "hide-tags"?: boolean | undefined;
765
+ "hide-tags"?: SkfSelect["hideTags"];
1136
766
  /** If defined, sets the hint text under the select component in the form */
1137
- hint?: string | undefined;
767
+ hint?: SkfSelect["hint"];
1138
768
  /** If defined, displays provided label */
1139
- label?: string | undefined;
769
+ label?: SkfSelect["label"];
1140
770
  /** If defined, limits the number of selectable options */
1141
- max?: number | undefined;
771
+ max?: SkfSelect["max"];
1142
772
  /** If defined, sets the minimum number of required options */
1143
- min?: number | undefined;
773
+ min?: SkfSelect["min"];
1144
774
  /** If true, allows for multiple options to be selected */
1145
- multiple?: boolean | undefined;
775
+ multiple?: SkfSelect["multiple"];
1146
776
  /** If defined, set name of the component */
1147
- name?: string | undefined;
777
+ name?: SkfSelect["name"];
1148
778
  /** If defined, renders an alternative A11y text for the asterisk */
1149
- "required-label"?: string | undefined;
779
+ "required-label"?: SkfSelect["requiredLabel"];
1150
780
  /** If defined, displays provided severity state */
1151
- severity?: FormFieldBaseProps["severity"] | undefined;
781
+ severity?: SkfSelect["severity"];
1152
782
  /** If true, displays valid state after interaction */
1153
- "show-valid"?: boolean | undefined;
783
+ "show-valid"?: SkfSelect["showValid"];
1154
784
  /** Size of the Select */
1155
- size?: "sm" | "md";
785
+ size?: SkfSelect["size"];
1156
786
  /** A readonly property that returns the selected value(s) in a array */
1157
- selectedValues?: string;
787
+ selectedValues?: SkfSelect["selectedValues"];
1158
788
  /** A readonly property that returns the selected slot(s) text content in a array */
1159
- selectedOptionsText?: string;
789
+ selectedOptionsText?: SkfSelect["selectedOptionsText"];
1160
790
  /** Read only, returns the selected value. (if multiple: in a comma separated string) */
1161
- value?: string;
791
+ value?: SkfSelect["value"];
1162
792
  /** */
1163
- _selectedOptions?: array;
793
+ _selectedOptions?: SkfSelect["_selectedOptions"];
1164
794
  /** Fired when the selected option(s) changes */
1165
- onchange?: (e: CustomEvent<never>) => void;
795
+ onchange?: (e: CustomEvent<Event>) => void;
1166
796
  /** Fired when the select is invalid */
1167
- oninvalid?: (e: CustomEvent<never>) => void;
797
+ oninvalid?: (e: CustomEvent<Event>) => void;
1168
798
  /** Fired when the form is reset */
1169
- onreset?: (e: CustomEvent<never>) => void;
799
+ onreset?: (e: CustomEvent<Event>) => void;
1170
800
  /** {detail: {expanded: boolean}} Fired when the select dropdown is toggled */
1171
- "onskf-select:dropdown"?: (e: CustomEvent<never>) => void;
801
+ "onskf-select-dropdown"?: (e: CustomEvent<CustomEvent>) => void;
1172
802
  /** {detail: {value: string | null, option: SkfSelectOption}} Fired when the select dropdown is toggled */
1173
- "onskf-select-option:select"?: (e: CustomEvent<never>) => void;
803
+ "onskf-select-option-select"?: (e: CustomEvent<CustomEvent>) => void;
1174
804
  };
1175
805
 
1176
806
  export type SkfSelectOptionProps = {
1177
807
  /** If true, prevents interaction with the option */
1178
- disabled?: boolean | undefined;
808
+ disabled?: SkfSelectOption["disabled"];
1179
809
  /** If defined, set an icon */
1180
- icon?: SkfIcon["name"] | undefined;
810
+ icon?: SkfSelectOption["icon"];
1181
811
  /** If defined, sets provided color on the icon */
1182
- "icon-color"?: SeverityFgColor | undefined;
812
+ "icon-color"?: SkfSelectOption["iconColor"];
1183
813
  /** If true, sets the option as selected */
1184
- selected?: boolean | undefined;
814
+ selected?: SkfSelectOption["selected"];
1185
815
  /** If defined, sets a short label */
1186
- "short-label"?: string | undefined;
816
+ "short-label"?: SkfSelectOption["shortLabel"];
1187
817
  /** Returns or sets the tags value. If value is omitted, defaults to the tags text. */
1188
- value?: string;
818
+ value?: SkfSelectOption["value"];
1189
819
  /** The option's label text (equivalent to the tags textContent) */
1190
- text?: string;
820
+ text?: SkfSelectOption["text"];
1191
821
  /** */
1192
- role?: string;
822
+ small?: SkfSelectOption["small"];
1193
823
  /** */
1194
- _parent?: string;
824
+ role?: SkfSelectOption["role"];
1195
825
  /** */
1196
- _shortcutUpdate?: boolean;
826
+ _parent?: SkfSelectOption["_parent"];
827
+ /** */
828
+ _shortcutUpdate?: SkfSelectOption["_shortcutUpdate"];
1197
829
  /** {detail: { value: string | null, option: SkfSelectOption }} Fires when the option is selected/deselected. */
1198
- "onskf-select-option:select"?: (e: CustomEvent<never>) => void;
830
+ "onskf-select-option-select"?: (e: CustomEvent<never>) => void;
1199
831
  };
1200
832
 
1201
- export type SkfSelectOptionGroupProps = {
833
+ export type SkfStepperItemProps = {
834
+ /** If defined, gives the supplied appearance */
835
+ state?: SkfStepperItem["state"];
836
+ /** If true, item marked as completed */
837
+ completed?: SkfStepperItem["completed"];
1202
838
  /** */
1203
- label?: string;
839
+ _setInternalState?: SkfStepperItem["_setInternalState"];
840
+ /** */
841
+ role?: SkfStepperItem["role"];
842
+ /** Dispatched when the stepper item is selected */
843
+ "onskf-stepper-item-select"?: (e: CustomEvent<never>) => void;
1204
844
  };
1205
845
 
1206
846
  export type SkfStepperProps = {
1207
847
  /** Sets the active item */
1208
- activeIndex?: number;
848
+ "active-index"?: SkfStepper["activeIndex"];
1209
849
  /** If true, sets linear mode (user can't go back to completed steps due to dependencies) */
1210
- linear?: boolean;
850
+ linear?: SkfStepper["linear"];
1211
851
 
1212
852
  /** Dispatched when the stepper item is selected */
1213
- "onskf-stepper-item-select"?: (e: CustomEvent<never>) => void;
1214
- };
1215
-
1216
- export type SkfStepperItemProps = {
1217
- /** If defined, gives the supplied appearance */
1218
- state?: Extract<SkfStepperItemState, "active" | "completed"> | undefined;
1219
- /** If true, item marked as completed */
1220
- completed?: boolean;
1221
- /** */
1222
- _setInternalState?: string;
1223
- /** */
1224
- role?: string;
1225
- /** Dispatched when the stepper item is selected */
1226
- "onskf-stepper-item-select"?: (e: CustomEvent<never>) => void;
853
+ "onskf-stepper-item-select"?: (e: CustomEvent<CustomEvent>) => void;
1227
854
  };
1228
855
 
1229
856
  export type SkfSwitchProps = {
1230
857
  /** If true, sets disabled state */
1231
- disabled?: boolean;
858
+ disabled?: SkfSwitch["undefined"];
1232
859
  /** If true, value is required or must be checked for the form to be submittable */
1233
- required?: boolean;
860
+ required?: SkfSwitch["undefined"];
1234
861
  /** If true, outputs helping hints in console */
1235
- debug?: boolean | undefined;
862
+ debug?: SkfSwitch["debug"];
1236
863
  /** If true, outputs helping hints in console */
1237
- checked?: boolean | undefined;
864
+ checked?: SkfSwitch["checked"];
1238
865
  /** If true, hides the label visually */
1239
- "hide-label"?: boolean | undefined;
866
+ "hide-label"?: SkfSwitch["hideLabel"];
1240
867
  /** If defined, sets the input's label unless the default slot is used. Alternatively, you can use the `label` attribute. */
1241
- label?: string | undefined;
868
+ label?: SkfSwitch["label"];
1242
869
  /** If defined, adds name to the input-element */
1243
- name?: string | undefined;
870
+ name?: SkfSwitch["name"];
1244
871
  /** If defined, renders an alternative A11y text for the asterisk */
1245
- "required-label"?: string | undefined;
872
+ "required-label"?: SkfSwitch["requiredLabel"];
1246
873
  /** Size of the Switch */
1247
- size?: "sm" | "md";
874
+ size?: SkfSwitch["size"];
1248
875
  /** The current value of the input field */
1249
- value?: string;
876
+ value?: SkfSwitch["value"];
1250
877
  };
1251
878
 
1252
- export type SkfTabProps = {
1253
- /** The name of the tab-panel this tab is associated with. The panel must be located in the same tab group. */
1254
- panel?: string;
1255
- /** */
1256
- selected?: boolean;
879
+ export type SkfTabPanelProps = {
880
+ /** The tab panel's name. */
881
+ name?: SkfTabPanel["name"];
1257
882
  /** */
1258
- variant?: SkfTabGroup["variant"];
883
+ active?: SkfTabPanel["active"];
1259
884
  /** */
1260
- role?: string;
1261
- /** {detail: { selected: true, tab: SkfTab }} Fires when the tab is selected */
1262
- "onskf-tab-select"?: (e: CustomEvent<CustomEvent>) => void;
1263
- /** Fired when the component is clicked */
1264
- onclick?: (e: CustomEvent<never>) => void;
885
+ role?: SkfTabPanel["role"];
1265
886
  };
1266
887
 
1267
- export type SkfTabGroupProps = {
888
+ export type SkfTabsProps = {
1268
889
  /** Sets the default selected tab */
1269
- "default-selected"?: number;
890
+ "default-selected"?: SkfTabs["defaultSelected"];
1270
891
  /** If true, removes border */
1271
- "no-border"?: boolean;
892
+ "no-border"?: SkfTabs["noBorder"];
1272
893
  /** If true, removes padding */
1273
- "no-padding"?: boolean;
894
+ "no-padding"?: SkfTabs["noPadding"];
1274
895
  /** If true, component fills the parent element height */
1275
- stretch?: boolean;
896
+ stretch?: SkfTabs["stretch"];
1276
897
  /** Sets the appearance of the tabs */
1277
- variant?: "compressed" | "expanded";
898
+ variant?: SkfTabs["variant"];
1278
899
  };
1279
900
 
1280
- export type SkfTabPanelProps = {
1281
- /** The tab panel's name. */
1282
- name?: string;
901
+ export type SkfTabProps = {
902
+ /** The name of the tab-panel this tab is associated with. The panel must be located in the same tab group. */
903
+ panel?: SkfTab["panel"];
1283
904
  /** */
1284
- active?: boolean;
905
+ selected?: SkfTab["selected"];
1285
906
  /** */
1286
- role?: string;
1287
- };
1288
-
1289
- export type SkfTagProps = {
1290
- /** Specifies Tag size */
1291
- size?: "sm" | "md" | "lg";
1292
- /** If defined, displays leading/provided icon */
1293
- icon?:
1294
- | "arrowDown"
1295
- | "arrowDownUp"
1296
- | "arrowLeft"
1297
- | "arrowRight"
1298
- | "arrowUp"
1299
- | "article"
1300
- | "artificialIntelligence"
1301
- | "asset"
1302
- | "attachment"
1303
- | "bandCursor"
1304
- | "bands"
1305
- | "batteryEmpty"
1306
- | "batteryFull"
1307
- | "batteryLow"
1308
- | "bearingFault"
1309
- | "book"
1310
- | "bulb"
1311
- | "burger"
1312
- | "cPM"
1313
- | "calendar"
1314
- | "calendarBooked"
1315
- | "calendarEmpty"
1316
- | "calendarNotBooked"
1317
- | "calendarRecurring"
1318
- | "caretDown"
1319
- | "caretUp"
1320
- | "caretUpDown"
1321
- | "chat"
1322
- | "check"
1323
- | "checkCircle"
1324
- | "checkSmall"
1325
- | "chevronDown"
1326
- | "chevronLeft"
1327
- | "chevronRight"
1328
- | "chevronUp"
1329
- | "chevronUpDown"
1330
- | "close"
1331
- | "closeAllFaults"
1332
- | "closeFault"
1333
- | "closeSmall"
1334
- | "columnGraph"
1335
- | "comment"
1336
- | "connection1"
1337
- | "connection2"
1338
- | "connection3"
1339
- | "connection4"
1340
- | "danger"
1341
- | "defectFrequencies"
1342
- | "defectFrequenciesAlternative"
1343
- | "doubleChevronLeft"
1344
- | "doubleChevronRight"
1345
- | "download"
1346
- | "draft"
1347
- | "draftFilled"
1348
- | "draftOutlined"
1349
- | "dragNDrop"
1350
- | "drop"
1351
- | "duplicate"
1352
- | "edit"
1353
- | "emailFilled"
1354
- | "emailOutlined"
1355
- | "exclamation"
1356
- | "eye"
1357
- | "eyeHidden"
1358
- | "eyeVisible"
1359
- | "filter"
1360
- | "forbidden"
1361
- | "fullScreen"
1362
- | "fullScreenExit"
1363
- | "functionalLocation"
1364
- | "harmonicCursor"
1365
- | "heatmap"
1366
- | "hierarchy"
1367
- | "history"
1368
- | "historyAlt"
1369
- | "hourglassFramedFilled"
1370
- | "hourglassFramedOutlined"
1371
- | "hourglassOutlined"
1372
- | "hz"
1373
- | "iMX"
1374
- | "image"
1375
- | "infoCircleFilled"
1376
- | "infoCircleOutlined"
1377
- | "integration"
1378
- | "kebab"
1379
- | "link"
1380
- | "listGroup"
1381
- | "listItem"
1382
- | "locationPin"
1383
- | "lock"
1384
- | "logOut"
1385
- | "meatballs"
1386
- | "microphone"
1387
- | "minus"
1388
- | "minusSmall"
1389
- | "noData"
1390
- | "o"
1391
- | "openInNew"
1392
- | "overlayBaseline"
1393
- | "pDF"
1394
- | "paper"
1395
- | "pause"
1396
- | "pieChart"
1397
- | "pin"
1398
- | "play"
1399
- | "plus"
1400
- | "powerOff"
1401
- | "printer"
1402
- | "proCollect"
1403
- | "recAction"
1404
- | "received"
1405
- | "refresh"
1406
- | "reorder"
1407
- | "replace"
1408
- | "reply"
1409
- | "rewalkableRoute"
1410
- | "routes"
1411
- | "search"
1412
- | "send"
1413
- | "sensorA"
1414
- | "sensorB"
1415
- | "settings"
1416
- | "sidebandCursor"
1417
- | "singleCursor"
1418
- | "spectrum"
1419
- | "starFilled"
1420
- | "starOutlined"
1421
- | "statusCircle"
1422
- | "stop"
1423
- | "structuralVibration"
1424
- | "sync"
1425
- | "timewave"
1426
- | "trash"
1427
- | "trend"
1428
- | "trendingUp"
1429
- | "undo"
1430
- | "unknownCircle"
1431
- | "unknownDiamond"
1432
- | "unlink"
1433
- | "unlock"
1434
- | "unscheduledAction"
1435
- | "upload"
1436
- | "user"
1437
- | "viewFull"
1438
- | "viewHorizontal"
1439
- | "viewVertical"
1440
- | "warning"
1441
- | "warningCircle"
1442
- | "warningDiamond"
1443
- | "zoomIn"
1444
- | "zoomOut";
1445
- /** If defined, gives the supplied appearance */
1446
- color?: "warning" | "success" | "info" | "error" | "alert";
1447
- /** If true, adds trailing button to remove tag */
1448
- removable?: boolean | undefined;
1449
- /** If defined, accepts a function that runs on click */
1450
- onClick?: string;
1451
- /** If defined, accepts a function that runs on click. Self removal can be overridden by using `event.stopPropagation()`. */
1452
- onRemove?: string;
907
+ variant?: SkfTab["variant"];
908
+ /** */
909
+ role?: SkfTab["role"];
910
+ /** {detail: { selected: true, tab: SkfTab }} Fires when the tab is selected */
911
+ "onskf-tab-select"?: (e: CustomEvent<CustomEvent>) => void;
912
+ /** Fired when the component is clicked */
913
+ onclick?: (e: CustomEvent<never>) => void;
1453
914
  };
1454
915
 
1455
916
  export type SkfTextAreaProps = {
1456
917
  /** If true, sets disabled state */
1457
- disabled?: boolean;
918
+ disabled?: SkfTextArea["undefined"];
1458
919
  /** If true, value is required or must be checked for the form to be submittable */
1459
- required?: boolean;
920
+ required?: SkfTextArea["undefined"];
1460
921
  /** If defined, sets the cols of the textarea */
1461
- cols?: number | undefined;
922
+ cols?: SkfTextArea["cols"];
1462
923
  /** If defined, forces component to invalid state until removed. Its value is used as hint text. */
1463
- "custom-invalid"?: string;
924
+ "custom-invalid"?: SkfTextArea["customInvalid"];
1464
925
  /** If true, outputs helping hints in console */
1465
- debug?: boolean | undefined;
926
+ debug?: SkfTextArea["debug"];
1466
927
  /** If true, hides the label visually */
1467
- "hide-label"?: boolean | undefined;
928
+ "hide-label"?: SkfTextArea["hideLabel"];
1468
929
  /** If defined, displays informational text below the field */
1469
- hint?: string | undefined;
930
+ hint?: SkfTextArea["hint"];
1470
931
  /** If defined, sets the input's label unless the default slot is used. Alternatively, you can use the `label` attribute. */
1471
- label?: string | undefined;
932
+ label?: SkfTextArea["label"];
1472
933
  /** If defined, adds name to the input-element */
1473
- name?: string | undefined;
934
+ name?: SkfTextArea["name"];
1474
935
  /** If defined, sets the maximum character length to accept for this input */
1475
- maxlength?: number | undefined;
936
+ maxlength?: SkfTextArea["maxLength"];
1476
937
  /** If defined, sets the minimum character length to accept for this input */
1477
- minlength?: number | undefined;
938
+ minlength?: SkfTextArea["minLength"];
1478
939
  /** If defined, displays placeholder text */
1479
- placeholder?: string | undefined;
940
+ placeholder?: SkfTextArea["placeholder"];
1480
941
  /** If true, makes the element not mutable, meaning the user can not edit the control */
1481
- readonly?: boolean | undefined;
942
+ readonly?: SkfTextArea["readonly"];
1482
943
  /** If defined, renders an alternative A11y text for the asterisk */
1483
- "required-label"?: string | undefined;
944
+ "required-label"?: SkfTextArea["requiredLabel"];
1484
945
  /** If defined, sets the rows of the textarea */
1485
- rows?: number | undefined;
946
+ rows?: SkfTextArea["rows"];
1486
947
  /** If defined, displays provided severity state */
1487
- severity?: "success" | "info" | "warning" | "alert";
948
+ severity?: SkfTextArea["severity"];
1488
949
  /** If true, displays valid state after interaction */
1489
- "show-valid"?: boolean | undefined;
950
+ "show-valid"?: SkfTextArea["showValid"];
1490
951
  /** Size of the Textarea */
1491
- size?: "sm" | "md" | undefined;
952
+ size?: SkfTextArea["size"];
1492
953
  /** Sets validation start */
1493
- "validate-on"?: "input" | "change" | "submit";
954
+ "validate-on"?: SkfTextArea["validateOn"];
1494
955
  /** The current value of the text area */
1495
- value?: string;
956
+ value?: SkfTextArea["value"];
1496
957
 
1497
958
  /** Fires when the value of the input changes */
1498
959
  onchange?: (e: CustomEvent<never>) => void;
@@ -1500,56 +961,74 @@ export type SkfTextAreaProps = {
1500
961
  oninvalid?: (e: CustomEvent<never>) => void;
1501
962
  };
1502
963
 
1503
- export type SkfToastProps = {
1504
- /** If provided, adds a close button to the toast and will not disapear until user actively dismisses it. */
1505
- closeable?: boolean;
964
+ export type SkfToastWrapperProps = {
1506
965
  /** */
1507
- debug?: boolean;
1508
- /** Severity of the toast. */
1509
- severity?: "info" | "success" | "warning" | "error";
1510
- /** Time in seconds before the toast disappears. */
1511
- timer?: number;
1512
- /** offsets where toasts emerge vertically */
1513
- topOffset?: number | undefined;
966
+ debug?: SkfToastWrapper["debug"];
1514
967
  };
1515
968
 
1516
- export type SkfToastWrapperProps = {
969
+ export type SkfToastProps = {
1517
970
  /** */
1518
- debug?: boolean;
971
+ debug?: SkfToast["debug"];
972
+ /** If defined, displays leading icon */
973
+ icon?: SkfToast["icon"];
974
+ /** If true, renders with an close button and sets aria-role to `status` */
975
+ persistent?: SkfToast["persistent"];
976
+ /** If defined, gives the supplied appearance */
977
+ severity?: SkfToast["severity"];
978
+ /** Time in seconds before the toast disappears. */
979
+ timer?: SkfToast["timer"];
980
+ /** offsets where toasts emerge vertically */
981
+ topOffset?: SkfToast["topOffset"];
1519
982
  };
1520
983
 
1521
984
  export type SkfTooltipProps = {
1522
- /** */
1523
- offset?: number;
1524
985
  /** The placement of the dropdown */
1525
- placement?:
1526
- | "top"
1527
- | "right"
1528
- | "bottom"
1529
- | "left"
1530
- | "top-start"
1531
- | "top-end"
1532
- | "right-start"
1533
- | "right-end"
1534
- | "bottom-start"
1535
- | "bottom-end"
1536
- | "left-start"
1537
- | "left-end";
1538
- /** Whether the dropdown is open */
1539
- isOpen?: boolean;
986
+ placement?: SkfTooltip["undefined"];
1540
987
  /** The id of the element the dropdown will be anchored to */
1541
- anchor?: string;
988
+ anchor?: SkfTooltip["undefined"];
989
+ /** */
990
+ role?: SkfTooltip["role"];
991
+ /** */
992
+ offset?: SkfTooltip["offset"];
993
+ /** */
994
+ placement?: SkfTooltip["placement"];
995
+ /** */
996
+ variant?: SkfTooltip["variant"];
1542
997
  /** Fired when the dropdown is opened */
1543
- onopen?: (e: CustomEvent<never>) => void;
998
+ "onskf-opened"?: (e: CustomEvent<never>) => void;
1544
999
  /** Fired when the dropdown is closed */
1545
- onclose?: (e: CustomEvent<never>) => void;
1000
+ "onskf-closed"?: (e: CustomEvent<never>) => void;
1546
1001
  };
1547
1002
 
1548
1003
  export type CustomElements = {
1549
1004
  /**
1550
- * The `<skf-accordion>` component consists of multiple `<skf-collapse>`, working together.
1005
+ * The `<skf-icon>` component is used to clarify interface elements. When used, should always be paired with (possibly invisible) text.
1006
+ * ---
1551
1007
  *
1552
- * See [zeroheight](https://zeroheight.com/853e936c9/p/6590bf-accordion) for design principles.
1008
+ */
1009
+ "skf-icon": Partial<SkfIconProps & BaseProps & BaseEvents>;
1010
+
1011
+ /**
1012
+ * The `<skf-accordion-item>` is used in conjunction with the `<skf-accordion>` component
1013
+ * ---
1014
+ *
1015
+ *
1016
+ * ### **Events:**
1017
+ * - **skf-accordion-item-toggle** - Event emitted when toggled
1018
+ *
1019
+ * ### **Methods:**
1020
+ * - **setClose()** - Class method as alternative to manipulate attribute
1021
+ * - **setOpen()** - Class method as alternative to manipulate attribute
1022
+ *
1023
+ * ### **Slots:**
1024
+ * - _default_ - Main content
1025
+ */
1026
+ "skf-accordion-item": Partial<SkfAccordionItemProps & BaseProps & BaseEvents>;
1027
+
1028
+ /**
1029
+ * The `<skf-accordion>` component consists of one or more `<skf-accordion-item>` item(s) working together
1030
+ *
1031
+ * See [zeroheight](https://zeroheight.com/853e936c9/p/6590bf-accordion) for design principles
1553
1032
  * ---
1554
1033
  *
1555
1034
  *
@@ -1560,6 +1039,8 @@ export type CustomElements = {
1560
1039
 
1561
1040
  /**
1562
1041
  * The `<skf-alert>` is a type of notification that appears in-line
1042
+ *
1043
+ * See [zeroheight](https://zeroheight.com/853e936c9/p/990ec5-alert) for design principles
1563
1044
  * ---
1564
1045
  *
1565
1046
  *
@@ -1572,8 +1053,20 @@ export type CustomElements = {
1572
1053
  */
1573
1054
  "skf-alert": Partial<SkfAlertProps & BaseProps & BaseEvents>;
1574
1055
 
1056
+ /**
1057
+ * The `<skf-breadcrumb-item>` is used in conjunction with the `<skf-breadcrumb>` component
1058
+ * ---
1059
+ *
1060
+ *
1061
+ * ### **Slots:**
1062
+ * - _default_ - Label of the breadcrumb item
1063
+ */
1064
+ "skf-breadcrumb-item": Partial<SkfBreadcrumbItemProps & BaseProps & BaseEvents>;
1065
+
1575
1066
  /**
1576
1067
  * The `<skf-breadcrumb>` component consists of multiple `<skf-breadcrumb-item>`, working together.
1068
+ *
1069
+ * See [zeroheight](https://zeroheight.com/853e936c9/p/3338ef-breadcrumbs) for design principles.
1577
1070
  * ---
1578
1071
  *
1579
1072
  *
@@ -1586,17 +1079,16 @@ export type CustomElements = {
1586
1079
  "skf-breadcrumb": Partial<SkfBreadcrumbProps & BaseProps & BaseEvents>;
1587
1080
 
1588
1081
  /**
1589
- * The `<skf-breadcrumb-item>` is used in conjunction with the `<skf-breadcrumb>` component
1082
+ * The `<skf-loader>` component is a progress indicator that uses circular indicators for short, indeterminate activities
1590
1083
  * ---
1591
1084
  *
1592
- *
1593
- * ### **Slots:**
1594
- * - _default_ - Label of the breadcrumb item
1595
1085
  */
1596
- "skf-breadcrumb-item": Partial<SkfBreadcrumbItemProps & BaseProps & BaseEvents>;
1086
+ "skf-loader": Partial<SkfLoaderProps & BaseProps & BaseEvents>;
1597
1087
 
1598
1088
  /**
1599
1089
  * Component to be used in forms or for interactivity
1090
+ *
1091
+ * See [zeroheight](https://zeroheight.com/853e936c9/p/02493d-buttons) for design principles
1600
1092
  * ---
1601
1093
  *
1602
1094
  *
@@ -1613,11 +1105,16 @@ export type CustomElements = {
1613
1105
 
1614
1106
  /**
1615
1107
  * The `<skf-card>` can be used to group related subjects in a container
1108
+ *
1109
+ * See [zeroheight](https://zeroheight.com/853e936c9/p/021eed-card) for design principles
1616
1110
  * ---
1617
1111
  *
1618
1112
  *
1619
1113
  * ### **Slots:**
1620
1114
  * - _default_ - The card's main content
1115
+ *
1116
+ * ### **CSS Properties:**
1117
+ * - **--mod-card-bg-color** - Ability to set a custom background color _(default: undefined)_
1621
1118
  */
1622
1119
  "skf-card": Partial<SkfCardProps & BaseProps & BaseEvents>;
1623
1120
 
@@ -1627,7 +1124,7 @@ export type CustomElements = {
1627
1124
  *
1628
1125
  *
1629
1126
  * ### **Events:**
1630
- * - **change** - {object} - When the value of the input changes
1127
+ * - **change** - When the value of the input changes
1631
1128
  *
1632
1129
  * ### **Slots:**
1633
1130
  * - _default_ - The Radios label. Alternatively, you can use the `label` attribute.
@@ -1635,33 +1132,46 @@ export type CustomElements = {
1635
1132
  "skf-checkbox": Partial<SkfCheckboxProps & BaseProps & BaseEvents>;
1636
1133
 
1637
1134
  /**
1638
- * The `<skf-collapse>` component is a general purpose container for content that can be collapsed / expanded.
1639
1135
  *
1640
- * See [zeroheight](https://zeroheight.com/853e936c9/p/6590bf-accordion) for design principles.
1641
1136
  * ---
1642
1137
  *
1138
+ */
1139
+ "skf-datepicker-calendar": Partial<SkfDatepickerCalendarProps & BaseProps & BaseEvents>;
1140
+
1141
+ /**
1142
+ *
1143
+ * ---
1643
1144
  *
1644
- * ### **Events:**
1645
- * - **skf-collapse-toggle** - Event emitted when toggled
1646
1145
  *
1647
1146
  * ### **Methods:**
1648
- * - **setClose()** - Class method as alternative to manipulate attribute
1649
- * - **setOpen()** - Class method as alternative to manipulate attribute
1147
+ * - **clear()** - Clears the input field
1148
+ */
1149
+ "skf-datepicker": Partial<SkfDatepickerProps & BaseProps & BaseEvents>;
1150
+
1151
+ /**
1152
+ * The `<Heading>` component is to deliniate content on a page. When using, take note not to skip heading levels.<br>
1153
+ * It extends the interface of native html `<h1>` to `<h4>` elements.
1154
+ * ---
1155
+ *
1650
1156
  *
1651
1157
  * ### **Slots:**
1652
- * - _default_ - Main content
1158
+ * - _default_ - The headings content
1653
1159
  */
1654
- "skf-collapse": Partial<SkfCollapseProps & BaseProps & BaseEvents>;
1160
+ "skf-heading": Partial<SkfHeadingProps & BaseProps & BaseEvents>;
1655
1161
 
1656
1162
  /**
1657
- * The `<skf-dialog>` is a component that open up a dialog with the content provided
1163
+ * 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)
1658
1164
  * ---
1659
1165
  *
1660
1166
  *
1661
1167
  * ### **Events:**
1662
- * - **skf-dialog-open** - Fires when the dialog is opened (after transitioned in)
1663
- * - **skf-dialog-close** - Fires when the dialog is closed (before transitioned out)
1664
- * - **close** - Fires when the dialog is closed (after transitioned out)
1168
+ * - **skf-dialog-opened** - Fires when the dialog is opened (after transitioned in)
1169
+ * - **skf-dialog-closing** - Fires when the dialog is closing (before transitioned out)
1170
+ * - **skf-dialog-closed** - Fires when the dialog is closed (after transitioned out)
1171
+ *
1172
+ * ### **Methods:**
1173
+ * - **showModal()** - Method that opens the dialog in modal state
1174
+ * - **close()** - Method that closes the dialog
1665
1175
  *
1666
1176
  * ### **Slots:**
1667
1177
  * - _default_ - The dialog component's content
@@ -1685,106 +1195,129 @@ export type CustomElements = {
1685
1195
  "skf-divider": Partial<SkfDividerProps & BaseProps & BaseEvents>;
1686
1196
 
1687
1197
  /**
1688
- * The `<Heading>` component is to deliniate content on a page. When using, take note not to skip heading levels.<br>
1689
- * It extends the interface of native html `<h1>` to `<h4>` elements.
1198
+ * The `<skf-drawer>` is a modal component that displays content and toggle by sliding from left/right viewport edge
1690
1199
  * ---
1691
1200
  *
1692
1201
  *
1202
+ * ### **Events:**
1203
+ * - **skf-drawer-opened** - Fires when the drawer is opened (after transitioned in)
1204
+ * - **skf-drawer-closing** - Fires when the drawer is closing (before transitioned out)
1205
+ * - **skf-drawer-closed** - Fires when the drawer is closed (after transitioned out)
1206
+ *
1693
1207
  * ### **Slots:**
1694
- * - _default_ - The headings content
1208
+ * - _default_ - The Drawer's main content
1695
1209
  */
1696
- "skf-heading": Partial<SkfHeadingProps & BaseProps & BaseEvents>;
1210
+ "skf-drawer": Partial<SkfDrawerProps & BaseProps & BaseEvents>;
1697
1211
 
1698
1212
  /**
1699
- * The `<skf-icon>` component is used to clarify interface elements. When used, should always be paired with (possibly invisible) text
1213
+ * The `<skf-logo>` component is used to display the SKF logo.
1700
1214
  * ---
1701
1215
  *
1216
+ *
1217
+ * ### **CSS Properties:**
1218
+ * - **--mod-logo-height** - The height of the logo _(default: undefined)_
1702
1219
  */
1703
- "skf-icon": Partial<SkfIconProps & BaseProps & BaseEvents>;
1220
+ "skf-logo": Partial<SkfLogoProps & BaseProps & BaseEvents>;
1704
1221
 
1705
1222
  /**
1706
- * The skf-text-field is used to create a text input field. It can be used inside a form element or standalone.
1223
+ * The `<skf-link>` can be used as either a regular link or a semantic button. The button variant is
1224
+ * intended to be used for triggering javascript functions, not handling forms.
1707
1225
  * ---
1708
1226
  *
1709
1227
  *
1710
1228
  * ### **Events:**
1711
- * - **change** - Fires when the value of the input changes
1712
- * - **invalid** - Fires when the input is invalid
1229
+ * - **skf-link-click** - Fired when the link is clicked
1713
1230
  *
1714
1231
  * ### **Slots:**
1715
- * - _default_ - The Inputs label. Alternatively, you can use the `label` attribute.
1232
+ * - _default_ - The links' main content
1716
1233
  */
1717
- "skf-input": Partial<SkfInputProps & BaseProps & BaseEvents>;
1234
+ "skf-link": Partial<SkfLinkProps & BaseProps & BaseEvents>;
1718
1235
 
1719
1236
  /**
1720
- * The `<skf-link>` can be used as either a regular link or a link styled semantic button
1237
+ * The `<skf-nav>` is a component that displays a list of <nav-items>.
1721
1238
  * ---
1722
1239
  *
1723
1240
  *
1724
1241
  * ### **Slots:**
1725
- * - _default_ - The links' main content
1242
+ * - _default_ - The component's main content
1726
1243
  */
1727
- "skf-link": Partial<SkfLinkProps & BaseProps & BaseEvents>;
1244
+ "skf-nav-item": Partial<SkfNavItemProps & BaseProps & BaseEvents>;
1728
1245
 
1729
1246
  /**
1730
- * The `<skf-loader>` component is a progress indicator that uses circular indicators for short, indeterminate activities
1247
+ * The `<skf-nav>` is a component that displays a list of <nav-items>.
1731
1248
  * ---
1732
1249
  *
1250
+ *
1251
+ * ### **Slots:**
1252
+ * - _default_ - The component's main content
1733
1253
  */
1734
- "skf-loader": Partial<SkfLoaderProps & BaseProps & BaseEvents>;
1254
+ "skf-nav": Partial<SkfNavProps & BaseProps & BaseEvents>;
1735
1255
 
1736
1256
  /**
1737
- * The `<skf-logo>` component is used to display the SKF logo.
1257
+ * 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.
1738
1258
  * ---
1739
1259
  *
1740
1260
  *
1741
- * ### **CSS Properties:**
1742
- * - **--skf-logo-height** - The height of the logo _(default: undefined)_
1261
+ * ### **Slots:**
1262
+ * - _default_ - Navigation items
1743
1263
  */
1744
- "skf-logo": Partial<SkfLogoProps & BaseProps & BaseEvents>;
1264
+ "skf-header": Partial<SkfHeaderProps & BaseProps & BaseEvents>;
1745
1265
 
1746
1266
  /**
1747
- * The `<skf-menu>` is a component that displays a list of actions or options.
1267
+ * The skf-text-field is used to create a text input field. It can be used inside a form element or standalone
1268
+ *
1269
+ * See [zeroheight](https://zeroheight.com/853e936c9/p/9481fa-input-field) for design principles
1748
1270
  * ---
1749
1271
  *
1750
1272
  *
1751
1273
  * ### **Events:**
1752
- * - **open** - Fired when the menu is opened
1753
- * - **close** - Fired when the menu is closed
1274
+ * - **change** - Fires when the value of the input changes
1275
+ * - **invalid** - Fires when the input is invalid
1754
1276
  *
1755
1277
  * ### **Slots:**
1756
- * - _default_ - The menu popover content
1278
+ * - _default_ - The Inputs label. Alternatively, you can use the `label` attribute.
1757
1279
  */
1758
- "skf-menu": Partial<SkfMenuProps & BaseProps & BaseEvents>;
1280
+ "skf-input": Partial<SkfInputProps & BaseProps & BaseEvents>;
1759
1281
 
1760
1282
  /**
1761
- * The `<skf-menu-item>` is a component that displays a list of actions or options.
1283
+ * The `<skf-menu-item>` is used in conjunction with the `<skf-menu>` component
1762
1284
  * ---
1763
1285
  *
1764
1286
  *
1765
1287
  * ### **Events:**
1766
- * - **my-tag-my-event** - Fired when something happens
1767
- * - **click** - Fired when the component is clicked
1768
- * - **mouseover** - Fired when the mouse is over the component
1769
- * - **mouseout** - Fired when the mouse is out of the component
1770
- * - **focus** - Fired when the component is focused
1771
- * - **blur** - Fired when the component is blurred
1772
- * - **change** - Fired when the component's value changes
1288
+ * - **skf-link-click** - Fired when the link is clicked
1773
1289
  *
1774
1290
  * ### **Slots:**
1775
1291
  * - _default_ - The component's main content
1776
- * - **my-named-slot** - A named slot of the component
1777
1292
  */
1778
1293
  "skf-menu-item": Partial<SkfMenuItemProps & BaseProps & BaseEvents>;
1779
1294
 
1780
1295
  /**
1781
- * The `<skf-popover>` is a general purpose component that displays the slot content.
1296
+ * The `<skf-menu>` is a component that displays a list of actions or options
1297
+ *
1298
+ * See [zeroheight](https://zeroheight.com/853e936c9/p/983e5d-popover) for design principles
1782
1299
  * ---
1783
1300
  *
1784
1301
  *
1785
1302
  * ### **Events:**
1786
- * - **open** - Fired when the menu is opened
1787
- * - **close** - Fired when the menu is closed
1303
+ * - **skf-opened** - Fired when the menu is opened
1304
+ * - **skf-closed** - Fired when the menu is closed
1305
+ *
1306
+ * ### **Slots:**
1307
+ * - _default_ - The menu popover content
1308
+ */
1309
+ "skf-menu": Partial<SkfMenuProps & BaseProps & BaseEvents>;
1310
+
1311
+ /**
1312
+ * The `<skf-popover>` is a general purpose component that displays the slot content in a popover.
1313
+ *
1314
+ * See [zeroheight](https://zeroheight.com/853e936c9/p/983e5d-popover) for design principles
1315
+ * ---
1316
+ *
1317
+ *
1318
+ * ### **Events:**
1319
+ * - **skf-opened** - Fired when the menu is opened
1320
+ * - **skf-closed** - Fired when the menu is closed
1788
1321
  *
1789
1322
  * ### **Slots:**
1790
1323
  * - _default_ - The popover content
@@ -1800,11 +1333,13 @@ export type CustomElements = {
1800
1333
 
1801
1334
  /**
1802
1335
  * The `<skf-radio>` component is used to create a radio input
1336
+ *
1337
+ * See [zeroheight](https://zeroheight.com/853e936c9/p/78d5dd-radio-button) for design principles
1803
1338
  * ---
1804
1339
  *
1805
1340
  *
1806
1341
  * ### **Events:**
1807
- * - **change** - {object} - When the value of the input changes
1342
+ * - **change** - When the value of the input changes
1808
1343
  *
1809
1344
  * ### **Slots:**
1810
1345
  * - _default_ - The radios label. Alternatively, you can use the `label` attribute.
@@ -1812,35 +1347,29 @@ export type CustomElements = {
1812
1347
  "skf-radio": Partial<SkfRadioProps & BaseProps & BaseEvents>;
1813
1348
 
1814
1349
  /**
1815
- * 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.
1350
+ * The `<skf-segmented-button-item>` is used in conjunction with the `<skf-segmented-button>` component
1816
1351
  * ---
1817
1352
  *
1818
1353
  *
1819
1354
  * ### **Events:**
1820
- * - **change** - Fired when the selected option(s) changes
1821
- * - **invalid** - Fired when the select is invalid
1822
- * - **reset** - Fired when the form is reset
1823
- * - **skf-select:dropdown** - {detail: {expanded: boolean}} Fired when the select dropdown is toggled
1824
- * - **skf-select-option:select** - {detail: {value: string | null, option: SkfSelectOption}} Fired when the select dropdown is toggled
1355
+ * - **skf-segmented-button-item-select** - Fired when selected
1825
1356
  *
1826
1357
  * ### **Slots:**
1827
- * - _default_ - The select's placeholder content
1358
+ * - _default_ - Label for the button
1828
1359
  */
1829
- "skf-select": Partial<SkfSelectProps & BaseProps & BaseEvents>;
1360
+ "skf-segmented-button-item": Partial<SkfSegmentedButtonItemProps & BaseProps & BaseEvents>;
1830
1361
 
1831
1362
  /**
1832
- * The `<skf-select-option>` is a component is used nested in a skf-select or skf-select-option-group.
1833
- * ---
1363
+ * The `<skf-segmented-button>` component consists of multiple `<skf-segmented-button-item>`, working together.
1834
1364
  *
1365
+ * See [zeroheight](https://zeroheight.com/853e936c9/p/68ff54-segmented-buttons) for design principles
1366
+ * ---
1835
1367
  *
1836
- * ### **Events:**
1837
- * - **skf-select-option:select** - {detail: { value: string | null, option: SkfSelectOption }} Fires when the option is selected/deselected.
1838
1368
  *
1839
1369
  * ### **Slots:**
1840
- * - _default_ - The option's text content
1841
- * - **icon** - The option's slot for icon or custom meta information (svg).
1370
+ * - _default_ - One or more `<skf-segmented-button-item>`
1842
1371
  */
1843
- "skf-select-option": Partial<SkfSelectOptionProps & BaseProps & BaseEvents>;
1372
+ "skf-segmented-button": Partial<SkfSegmentedButtonProps & BaseProps & BaseEvents>;
1844
1373
 
1845
1374
  /**
1846
1375
  * The `<skf-select-option-group>` is a component that groups select-options
@@ -1853,65 +1382,85 @@ export type CustomElements = {
1853
1382
  "skf-select-option-group": Partial<SkfSelectOptionGroupProps & BaseProps & BaseEvents>;
1854
1383
 
1855
1384
  /**
1856
- * The `<skf-stepper>` is a component that displays a list of actions or options.
1385
+ * The `<skf-tag>` is a component that displays a list of actions or options
1386
+ * ---
1387
+ *
1388
+ *
1389
+ * ### **Slots:**
1390
+ * - _default_ - The component's placeholder content
1391
+ */
1392
+ "skf-tag": Partial<SkfTagProps & BaseProps & BaseEvents>;
1393
+
1394
+ /**
1395
+ * 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.
1396
+ *
1397
+ * See [zeroheight](https://zeroheight.com/853e936c9/p/91c9f0-select-and-combobox) for design principles
1857
1398
  * ---
1858
1399
  *
1859
1400
  *
1860
1401
  * ### **Events:**
1861
- * - **skf-stepper-item-select** - Dispatched when the stepper item is selected
1402
+ * - **change** - Fired when the selected option(s) changes
1403
+ * - **invalid** - Fired when the select is invalid
1404
+ * - **reset** - Fired when the form is reset
1405
+ * - **skf-select-dropdown** - {detail: {expanded: boolean}} Fired when the select dropdown is toggled
1406
+ * - **skf-select-option-select** - {detail: {value: string | null, option: SkfSelectOption}} Fired when the select dropdown is toggled
1862
1407
  *
1863
1408
  * ### **Slots:**
1864
- * - _default_ - One or more `<skf-stepper-item>`
1409
+ * - _default_ - The select's placeholder content
1865
1410
  */
1866
- "skf-stepper": Partial<SkfStepperProps & BaseProps & BaseEvents>;
1411
+ "skf-select": Partial<SkfSelectProps & BaseProps & BaseEvents>;
1867
1412
 
1868
1413
  /**
1869
- * The `<skf-stepper-item>` is used in conjunction with the `<skf-stepper>` component
1414
+ * The `<skf-select-option>` is a component is used nested in a skf-select or skf-select-option-group.
1870
1415
  * ---
1871
1416
  *
1872
1417
  *
1873
1418
  * ### **Events:**
1874
- * - **skf-stepper-item-select** - Dispatched when the stepper item is selected
1419
+ * - **skf-select-option-select** - {detail: { value: string | null, option: SkfSelectOption }} Fires when the option is selected/deselected.
1875
1420
  *
1876
1421
  * ### **Slots:**
1877
- * - _default_ - Label of the stepper item
1422
+ * - _default_ - The option's text content
1423
+ * - **icon** - The option's slot for icon or custom meta information (svg).
1878
1424
  */
1879
- "skf-stepper-item": Partial<SkfStepperItemProps & BaseProps & BaseEvents>;
1425
+ "skf-select-option": Partial<SkfSelectOptionProps & BaseProps & BaseEvents>;
1880
1426
 
1881
1427
  /**
1882
- * The `<skf-switch>` is a component that displays a list of actions or options
1428
+ * The `<skf-stepper-item>` is used in conjunction with the `<skf-stepper>` component
1883
1429
  * ---
1884
1430
  *
1885
1431
  *
1432
+ * ### **Events:**
1433
+ * - **skf-stepper-item-select** - Dispatched when the stepper item is selected
1434
+ *
1886
1435
  * ### **Slots:**
1887
- * - _default_ - The Switchs label. Alternatively, you can use the `label` attribute.
1436
+ * - _default_ - Label of the stepper item
1888
1437
  */
1889
- "skf-switch": Partial<SkfSwitchProps & BaseProps & BaseEvents>;
1438
+ "skf-stepper-item": Partial<SkfStepperItemProps & BaseProps & BaseEvents>;
1890
1439
 
1891
1440
  /**
1892
- * The `<skf-tab>` is a component that displays a list of actions or options
1441
+ * The `<skf-stepper>` is a component that displays a list of actions or options.
1893
1442
  * ---
1894
1443
  *
1895
1444
  *
1896
1445
  * ### **Events:**
1897
- * - **skf-tab-select** - {detail: { selected: true, tab: SkfTab }} Fires when the tab is selected
1898
- * - **click** - Fired when the component is clicked
1446
+ * - **skf-stepper-item-select** - Dispatched when the stepper item is selected
1899
1447
  *
1900
1448
  * ### **Slots:**
1901
- * - _default_ - The tab's label
1449
+ * - _default_ - One or more `<skf-stepper-item>`
1902
1450
  */
1903
- "skf-tab": Partial<SkfTabProps & BaseProps & BaseEvents>;
1451
+ "skf-stepper": Partial<SkfStepperProps & BaseProps & BaseEvents>;
1904
1452
 
1905
1453
  /**
1906
- * The `<skf-tab-group>` is a component that displays a list of actions or options.
1454
+ * The `<skf-switch>` is a component that displays a list of actions or options
1455
+ *
1456
+ * See [zeroheight](https://zeroheight.com/853e936c9/p/7282a2-switch) for design principle
1907
1457
  * ---
1908
1458
  *
1909
1459
  *
1910
1460
  * ### **Slots:**
1911
- * - _default_ - Used for grouping tab panels in the tab group. Must be <skf-tab-panel> elements
1912
- * - **tabs** - Used for grouping tabs in the tab group. Must be <skf-tab> elements
1461
+ * - _default_ - The Switchs label. Alternatively, you can use the `label` attribute.
1913
1462
  */
1914
- "skf-tab-group": Partial<SkfTabGroupProps & BaseProps & BaseEvents>;
1463
+ "skf-switch": Partial<SkfSwitchProps & BaseProps & BaseEvents>;
1915
1464
 
1916
1465
  /**
1917
1466
  * The `<skf-tab-panel>` is a component that displays a list of actions or options.
@@ -1924,14 +1473,29 @@ export type CustomElements = {
1924
1473
  "skf-tab-panel": Partial<SkfTabPanelProps & BaseProps & BaseEvents>;
1925
1474
 
1926
1475
  /**
1927
- * The `<skf-tag>` is a component that displays a list of actions or options
1476
+ * The `<skf-tabs>` is a component that displays a list of actions or options
1928
1477
  * ---
1929
1478
  *
1930
1479
  *
1931
1480
  * ### **Slots:**
1932
- * - _default_ - The component's placeholder content
1481
+ * - _default_ - Used for grouping tab panels in the tab group. Must be <skf-tab-panel> elements
1482
+ * - **tabs** - Used for grouping tabs in the tab group. Must be <skf-tab> elements
1933
1483
  */
1934
- "skf-tag": Partial<SkfTagProps & BaseProps & BaseEvents>;
1484
+ "skf-tabs": Partial<SkfTabsProps & BaseProps & BaseEvents>;
1485
+
1486
+ /**
1487
+ * The `<skf-tab>` is a component that displays a list of actions or options
1488
+ * ---
1489
+ *
1490
+ *
1491
+ * ### **Events:**
1492
+ * - **skf-tab-select** - {detail: { selected: true, tab: SkfTab }} Fires when the tab is selected
1493
+ * - **click** - Fired when the component is clicked
1494
+ *
1495
+ * ### **Slots:**
1496
+ * - _default_ - The tab's label
1497
+ */
1498
+ "skf-tab": Partial<SkfTabProps & BaseProps & BaseEvents>;
1935
1499
 
1936
1500
  /**
1937
1501
  * The skf-textarea is used to create a textarea. Use it inside a form element or wherever you like.
@@ -1948,33 +1512,33 @@ export type CustomElements = {
1948
1512
  "skf-textarea": Partial<SkfTextAreaProps & BaseProps & BaseEvents>;
1949
1513
 
1950
1514
  /**
1951
- * 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.
1515
+ * 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.
1952
1516
  * ---
1953
1517
  *
1954
1518
  *
1955
1519
  * ### **Slots:**
1956
- * - _default_ - The component's placeholder content
1520
+ * - _default_ - The alert components that the toast creates will render here.
1957
1521
  */
1958
- "skf-toast": Partial<SkfToastProps & BaseProps & BaseEvents>;
1522
+ "skf-toast-wrapper": Partial<SkfToastWrapperProps & BaseProps & BaseEvents>;
1959
1523
 
1960
1524
  /**
1961
- * 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.
1525
+ * 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.
1962
1526
  * ---
1963
1527
  *
1964
1528
  *
1965
1529
  * ### **Slots:**
1966
- * - _default_ - The alert components that the toast creates will render here.
1530
+ * - _default_ - The component's placeholder content
1967
1531
  */
1968
- "skf-toast-wrapper": Partial<SkfToastWrapperProps & BaseProps & BaseEvents>;
1532
+ "skf-toast": Partial<SkfToastProps & BaseProps & BaseEvents>;
1969
1533
 
1970
1534
  /**
1971
- * The `<skf-tooltip>` is a component that displays a list of actions or options.
1535
+ * The `<skf-tooltip>` is a component that displays a tooltip.
1972
1536
  * ---
1973
1537
  *
1974
1538
  *
1975
1539
  * ### **Events:**
1976
- * - **open** - Fired when the dropdown is opened
1977
- * - **close** - Fired when the dropdown is closed
1540
+ * - **skf-opened** - Fired when the dropdown is opened
1541
+ * - **skf-closed** - Fired when the dropdown is closed
1978
1542
  *
1979
1543
  * ### **Slots:**
1980
1544
  * - _default_ - The tooltip popover content