@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,28 +1,30 @@
1
- import { computePosition as v, flip as f, shift as _, offset as g } from "@floating-ui/dom";
2
- import { FormBase as b } from "../../internal/components/formBase.js";
3
- import { PopoverController as y } from "../../internal/controllers/popover.controller.js";
4
- import { findMatchingTags as O } from "../../internal/helpers/findMatchingTags.js";
5
- import { hintSeverity as x } from "../../internal/helpers/hintSeverity.js";
6
- import { raiseError as w } from "../../internal/helpers/raiseError.js";
7
- import { watch as $ } from "../../internal/helpers/watch.js";
1
+ import { SkfSelectOptionGroup as v } from "./select-option-group.component.js";
2
+ import "../tag/tag.js";
3
+ import { computePosition as _, flip as g, shift as b, offset as y } from "@floating-ui/dom";
4
+ import { FormBase as O } from "../../internal/components/formBase.js";
5
+ import "../../internal/components/hint/hint.js";
6
+ import { PopoverController as x } from "../../internal/controllers/popover.controller.js";
7
+ import { findMatchingTags as w } from "../../internal/helpers/findMatchingTags.js";
8
+ import { hintSeverity as S } from "../../internal/helpers/hintSeverity.js";
9
+ import { raiseError as $ } from "../../internal/helpers/raiseError.js";
10
+ import { watch as f } from "../../internal/helpers/watch.js";
8
11
  import { Asterisk as V } from "../../internal/templates/asterisk.js";
9
- import S from "../../styles/component.styles.js";
10
- import { html as n, nothing as C } from "lit";
11
- import { property as o, state as h, query as p } from "lit/decorators.js";
12
- import { classMap as E } from "lit/directives/class-map.js";
12
+ import { componentStyles as C } from "../../styles/component.styles.js";
13
+ import { nothing as E, html as n } from "lit";
14
+ import { property as o, state as h, query as p, queryAssignedElements as L } from "lit/decorators.js";
15
+ import { classMap as k } from "lit/directives/class-map.js";
13
16
  import { ifDefined as m } from "lit/directives/if-defined.js";
14
- import "../../internal/components/hint/hint.js";
15
- import "../tag/tag.js";
16
- import { GlobalClickController as k, KeyboardNavigationController as L, DeveloperFeedbackController as A } from "./select.controllers.js";
17
- import { styles as P } from "./select.styles.js";
18
- var T = Object.defineProperty, D = Object.getOwnPropertyDescriptor, s = (u, t, e, l) => {
19
- for (var a = l > 1 ? void 0 : l ? D(t, e) : t, r = u.length - 1, d; r >= 0; r--)
20
- (d = u[r]) && (a = (l ? d(t, e, a) : d(a)) || a);
21
- return l && a && T(t, e, a), a;
17
+ import { SkfSelectOption as A } from "./select-option.component.js";
18
+ import { GlobalClickController as P, KeyboardNavigationController as T, DeveloperFeedbackController as D } from "./select.controllers.js";
19
+ import { styles as F } from "./select.styles.js";
20
+ var U = Object.defineProperty, M = Object.getOwnPropertyDescriptor, s = (u, t, e, l) => {
21
+ for (var r = l > 1 ? void 0 : l ? M(t, e) : t, a = u.length - 1, d; a >= 0; a--)
22
+ (d = u[a]) && (r = (l ? d(t, e, r) : d(r)) || r);
23
+ return l && r && U(t, e, r), r;
22
24
  };
23
- const c = class c extends b {
25
+ const c = class c extends O {
24
26
  constructor() {
25
- super(), this.selectDelay = 200, this._optionsList = [], this.buttonLabel = "Select an option", this.size = "md", this._expanded = !1, this._invalid = !1, this.globalClickController = new k(this), this.keyboardNavController = new L(this), this.developerFeedbackController = new A(this), this.popoverController = new y(this), this._handleOptionSelected = (t) => {
27
+ super(), this.selectDelay = 200, this._optionsList = [], this.buttonLabel = "Select an option", this.hideLabel = !1, this.hideTags = !1, this.multiple = !1, this.showValid = !1, this.size = "md", this._expanded = !1, this._invalid = !1, this.globalClickController = new P(this), this.keyboardNavController = new T(this), this.developerFeedbackController = new D(this), this.popoverController = new x(this), this._handleOptionSelected = (t) => {
26
28
  this._pristine = !1;
27
29
  const e = this._selectedOptions.length > 0;
28
30
  this.setFormValue(e ? this.selectedValues.join(",") : null), this._updateState(t);
@@ -33,9 +35,9 @@ const c = class c extends b {
33
35
  this.$popover.style.setProperty("--select-width", `${String(this.offsetWidth)}px`);
34
36
  }, 50);
35
37
  }, this.reposition = async () => {
36
- const { x: t, y: e } = await v(this.$anchor, this.$popover, {
38
+ const { x: t, y: e } = await _(this.$anchor, this.$popover, {
37
39
  placement: "bottom",
38
- middleware: [f(), _({ padding: 5 }), g(2)],
40
+ middleware: [g(), b({ padding: 5 }), y(2)],
39
41
  strategy: "fixed"
40
42
  });
41
43
  Object.assign(this.$popover.style, {
@@ -68,7 +70,7 @@ const c = class c extends b {
68
70
  (e || l !== t) && l.removeAttribute("selected");
69
71
  });
70
72
  }, this._handleSlotChange = () => {
71
- this._collectSlotOptionTags(), this._validateInput();
73
+ this._handleSizeUpdate(), this._collectSlotOptionTags(), this._validateInput();
72
74
  }, this._computeVisibleValue = () => {
73
75
  var t, e;
74
76
  return (t = this.$selectedValue) == null || t.classList.add("contains-meta-info"), this._selectedOptions.length > 1 ? `(${String(this._selectedOptions.length)} items selected)` : this.value ? ((e = this.$selectedValue) == null || e.classList.remove("contains-meta-info"), this.value) : this.buttonLabel;
@@ -89,8 +91,12 @@ const c = class c extends b {
89
91
  return this._selectedOptions.map((t) => t.textContent ?? "");
90
92
  }
91
93
  set value(t) {
92
- const e = t.split(",").map((l) => l.trim());
93
- this._selectedOptions = this._optionsList.filter((l) => e.includes(l.value.trim()));
94
+ let e = [];
95
+ this.multiple ? e = t.split(",").map((l) => l.toLowerCase().trim()) : e = [t.toLowerCase().trim()], this._selectedOptions = this._optionsList.filter(
96
+ (l) => e.includes(l.value.toLowerCase().trim())
97
+ ), this._optionsList.forEach((l) => {
98
+ l.selected && (l.setSelectedDiscrete = !1);
99
+ }), this._selectedOptions.forEach((l) => l.setSelectedDiscrete = !0), this._setValue();
94
100
  }
95
101
  get value() {
96
102
  return this._selectedOptions.length ? this._selectedOptions.length === 1 ? this._selectedOptions[0].value.trim() : this._selectedOptions.map((t) => t.value.trim()).join(",") : "";
@@ -121,18 +127,23 @@ const c = class c extends b {
121
127
  }
122
128
  firstUpdated() {
123
129
  var t;
124
- this.addEventListener("skf-select-option:select", this._handleOptionSelected), (t = this._internals.form) == null || t.addEventListener("reset", this._handleReset), this.onUpdateComplete(), this._validateInput();
130
+ this.addEventListener("skf-select-option-select", this._handleOptionSelected), (t = this._internals.form) == null || t.addEventListener("reset", this._handleReset), this.onUpdateComplete(), this._validateInput();
131
+ }
132
+ _handleSizeUpdate() {
133
+ this._slottedItems.forEach((t) => {
134
+ (t instanceof A || t instanceof v) && (t.small = this.size === "sm");
135
+ });
125
136
  }
126
137
  handleExpandedChange() {
127
138
  this._expanded ? (this.$popover.togglePopover(this._expanded), this.popoverController.start()) : (this.$popover.togglePopover(this._expanded), this.popoverController.stop().catch((t) => {
128
139
  console.error(t);
129
- })), this.emit("skf-select:dropdown", { detail: { expanded: this._expanded } });
140
+ })), this.emit("skf-select-dropdown", { detail: { expanded: this._expanded } });
130
141
  }
131
142
  attributeChangedCallback(t, e, l) {
132
143
  if (super.attributeChangedCallback(t, e, l), t === "custom-invalid")
133
144
  if (typeof l == "string") {
134
- const r = this.withFallback(l);
135
- this._pristine = !1, this._invalid = !0, this.setValidity({ customError: !0 }, r), this.checkValidity();
145
+ const a = this.withFallback(l);
146
+ this._pristine = !1, this._invalid = !0, this.setValidity({ customError: !0 }, a), this.checkValidity();
136
147
  } else
137
148
  this.setValidity({}), this._validateInput();
138
149
  }
@@ -159,7 +170,7 @@ const c = class c extends b {
159
170
  /** @internal */
160
171
  /** Filter out elements other than skf-select-option and store in this._optionsList */
161
172
  _collectSlotOptionTags() {
162
- this._optionsList = O(this, "skf-select-option"), this._selectedOptions = this._optionsList.filter((t) => t.selected), w({
173
+ this._optionsList = w(this, "skf-select-option"), this._selectedOptions = this._optionsList.filter((t) => t.selected), $({
163
174
  assert: this._optionsList.length > 0,
164
175
  reason: "no-children",
165
176
  replaceStrings: [this.localName, "skf-select-option"]
@@ -173,14 +184,14 @@ const c = class c extends b {
173
184
  this._invalid = !0;
174
185
  return;
175
186
  } else if (t) {
176
- const r = this.hasAttribute("data-valuemissing") ? this.getAttribute("data-valuemissing") : "Please select an option";
177
- this.setValidity({ valueMissing: !0 }, String(r)), this._pristine || (this._invalid = !0);
187
+ const a = this.hasAttribute("data-valuemissing") ? this.getAttribute("data-valuemissing") : "Please select an option";
188
+ this.setValidity({ valueMissing: !0 }, String(a)), this._pristine || (this._invalid = !0);
178
189
  } else if (e) {
179
- const r = this.hasAttribute("data-rangeunderflow") ? this.getAttribute("data-rangeunderflow") : `Please select minimum ${String(this.min)} options`;
180
- this.setValidity({ rangeUnderflow: !0 }, String(r)), this._pristine || (this._invalid = !0);
190
+ const a = this.hasAttribute("data-rangeunderflow") ? this.getAttribute("data-rangeunderflow") : `Please select minimum ${String(this.min)} options`;
191
+ this.setValidity({ rangeUnderflow: !0 }, String(a)), this._pristine || (this._invalid = !0);
181
192
  } else if (l) {
182
- const r = this.hasAttribute("data-rangeoverflow") ? this.getAttribute("data-rangeoverflow") : `Please select maximum ${String(this.max)} options`;
183
- this.setValidity({ rangeOverflow: !0 }, String(r)), this._pristine || (this._invalid = !0);
193
+ const a = this.hasAttribute("data-rangeoverflow") ? this.getAttribute("data-rangeoverflow") : `Please select maximum ${String(this.max)} options`;
194
+ this.setValidity({ rangeOverflow: !0 }, String(a)), this._pristine || (this._invalid = !0);
184
195
  } else
185
196
  this.setValidity({}), !this._pristine && this.showValid && this.setAttribute("valid", "true");
186
197
  }
@@ -199,16 +210,15 @@ const c = class c extends b {
199
210
  aria-expanded=${this._expanded}
200
211
  aria-invalid=${this._invalid}
201
212
  aria-haspopup="listbox"
202
- class="skf-icon-host"
203
213
  id="select-button"
204
214
  role="combobox"
205
215
  >
206
216
  <span
207
217
  id="selected-value"
208
- class=${E({ "selected-value": !0, "contains-meta-info": !this.value })}>
218
+ class=${k({ "selected-value": !0, "contains-meta-info": !this.value })}>
209
219
  ${this._computeVisibleValue()}
210
220
  </span>
211
- <skf-icon class="arrow" name="chevronDown"></skf-icon>
221
+ <skf-icon class="arrow" data-color="custom" name="chevronDown"></skf-icon>
212
222
  </button>
213
223
  </label>
214
224
  <div aria-multiselectable=${m(this.multiple && !0)} id="select-dropdown" popover role="listbox">
@@ -230,14 +240,15 @@ const c = class c extends b {
230
240
  `
231
241
  )}
232
242
  </div>
233
- ` : C}
243
+ ` : E}
234
244
  ${this.hint && n`
235
245
  <skf-hint
246
+ ?disabled=${this.disabled}
236
247
  aria-live=${this._invalid ? "assertive" : "polite"}
237
248
  id="hint"
238
- severity=${m(x(this.severity, this._invalid))}
249
+ severity=${m(S(this._invalid, this.severity))}
239
250
  >
240
- ${this.customInvalid ? this.customInvalid : this.hint}
251
+ ${this.customInvalid ?? this.hint}
241
252
  </skf-hint>
242
253
  `}
243
254
  </div>
@@ -245,7 +256,7 @@ const c = class c extends b {
245
256
  `;
246
257
  }
247
258
  };
248
- c.styles = [S, P];
259
+ c.styles = [C, F];
249
260
  let i = c;
250
261
  s([
251
262
  o({ type: String, reflect: !0, attribute: "button-label" })
@@ -317,7 +328,13 @@ s([
317
328
  p("#select-dropdown")
318
329
  ], i.prototype, "$popover", 2);
319
330
  s([
320
- $("_expanded", { afterUpdate: !0 })
331
+ L()
332
+ ], i.prototype, "_slottedItems", 2);
333
+ s([
334
+ f("size", { waitUntilFirstUpdate: !0 })
335
+ ], i.prototype, "_handleSizeUpdate", 1);
336
+ s([
337
+ f("_expanded", { afterUpdate: !0 })
321
338
  ], i.prototype, "handleExpandedChange", 1);
322
339
  export {
323
340
  i as SkfSelect
@@ -1,10 +1,21 @@
1
- import type { SkfSelectOption } from '../select-option/select-option.component.js';
2
- import type { ReactiveController } from 'lit';
3
- import type { SkfSelect } from './select.component.js';
4
- type ControllerHost = SkfSelect;
1
+ import type { ReactiveController, ReactiveControllerHost } from 'lit';
2
+ import type { SkfSelectOption } from './select-option.component.js';
3
+ /**
4
+ * Workaround for storybook helper not being able to import types
5
+ * E.g type ControllerHost = SkfSelect;
6
+ */
7
+ interface ControllerHostProps {
8
+ _expanded: boolean;
9
+ _optionsList: SkfSelectOption[];
10
+ localName: keyof HTMLElementTagNameMap;
11
+ min: number;
12
+ max: number;
13
+ multiple: boolean;
14
+ hideTags: boolean;
15
+ }
5
16
  export declare class GlobalClickController implements ReactiveController {
6
- host: ControllerHost;
7
- constructor(host: ControllerHost);
17
+ host?: ReactiveControllerHost & Partial<ControllerHostProps>;
18
+ constructor(host: ReactiveControllerHost);
8
19
  hostDisconnected(): void;
9
20
  hostUpdated(): void;
10
21
  _globalClickHandler: (event: MouseEvent) => void;
@@ -12,9 +23,9 @@ export declare class GlobalClickController implements ReactiveController {
12
23
  disableGlobalClickDetection(): void;
13
24
  }
14
25
  export declare class KeyboardNavigationController implements ReactiveController {
15
- host: ControllerHost;
26
+ host?: ReactiveControllerHost & Partial<ControllerHostProps>;
16
27
  _listenerActivated: boolean;
17
- constructor(host: ControllerHost);
28
+ constructor(host: ReactiveControllerHost);
18
29
  hostDisconnected(): void;
19
30
  hostUpdated(): void;
20
31
  setupKeyboardListener(): void;
@@ -26,8 +37,8 @@ export declare class KeyboardNavigationController implements ReactiveController
26
37
  get _selectableOptions(): SkfSelectOption[];
27
38
  }
28
39
  export declare class DeveloperFeedbackController implements ReactiveController {
29
- host: ControllerHost;
30
- constructor(host: ControllerHost);
40
+ host?: ReactiveControllerHost & Partial<ControllerHostProps>;
41
+ constructor(host: ReactiveControllerHost);
31
42
  hostConnected(): void;
32
43
  _badAttributeCombinationWarning(): void;
33
44
  }
@@ -1,9 +1,10 @@
1
- import { raiseError as l } from "../../internal/helpers/raiseError.js";
1
+ import { raiseError as a } from "../../internal/helpers/raiseError.js";
2
2
  class d {
3
3
  constructor(t) {
4
4
  this._globalClickHandler = (e) => {
5
- e.target.closest(this.host.localName) || (this.host._expanded = !1);
6
- }, this.host = t, t.addController(this);
5
+ var s;
6
+ !((s = this.host) != null && s.localName) || e.target.closest(this.host.localName) || (this.host._expanded = !1);
7
+ }, (this.host = t).addController(this);
7
8
  }
8
9
  // hostConnected() {
9
10
  // this.enableGlobalClickDetection();
@@ -12,7 +13,8 @@ class d {
12
13
  this.disableGlobalClickDetection();
13
14
  }
14
15
  hostUpdated() {
15
- this.host._expanded ? this.enableGlobalClickDetection() : this.disableGlobalClickDetection();
16
+ var t;
17
+ (t = this.host) != null && t._expanded ? this.enableGlobalClickDetection() : this.disableGlobalClickDetection();
16
18
  }
17
19
  enableGlobalClickDetection() {
18
20
  document.addEventListener("click", this._globalClickHandler);
@@ -35,18 +37,19 @@ class p {
35
37
  e.preventDefault(), this._selectFocusedOption(e.target);
36
38
  break;
37
39
  case "Escape":
38
- e.preventDefault(), this.host._expanded = !1, setTimeout(() => {
40
+ e.preventDefault(), this.host && (this.host._expanded = !1), setTimeout(() => {
39
41
  this.host.focus();
40
42
  });
41
43
  break;
42
44
  }
43
- }, this.host = t, t.addController(this), this._listenerActivated = !1;
45
+ }, (this.host = t).addController(this), this._listenerActivated = !1;
44
46
  }
45
47
  hostDisconnected() {
46
48
  this.removeKeyboardListener();
47
49
  }
48
50
  hostUpdated() {
49
- this.host._expanded && !this._listenerActivated && this.setupKeyboardListener(), !this.host._expanded && this._listenerActivated && this.removeKeyboardListener();
51
+ var t, e;
52
+ (t = this.host) != null && t._expanded && !this._listenerActivated && this.setupKeyboardListener(), !((e = this.host) != null && e._expanded) && this._listenerActivated && this.removeKeyboardListener();
50
53
  }
51
54
  setupKeyboardListener() {
52
55
  this._listenerActivated = !0, this.host.addEventListener("keydown", this._handleKeyDown);
@@ -61,47 +64,50 @@ class p {
61
64
  });
62
65
  }
63
66
  _focusSiblingOption(t) {
64
- const e = (n) => n === document.activeElement, s = this._selectableOptions.find((n) => e(n));
65
- if (!s) {
67
+ const e = (l) => l === document.activeElement, i = this._selectableOptions.find((l) => e(l));
68
+ if (!i) {
66
69
  this._focusFirstOption();
67
70
  return;
68
71
  }
69
- const r = this._selectableOptions.indexOf(s);
70
- let i = r - 1, o = r + 1;
71
- i < 0 && (i = this._selectableOptions.length - 1), o >= this._selectableOptions.length && (o = 0);
72
- const h = this._selectableOptions[t === "next" ? o : i];
73
- s.blur(), h.focus();
72
+ const s = this._selectableOptions.indexOf(i);
73
+ let o = s - 1, n = s + 1;
74
+ o < 0 && (o = this._selectableOptions.length - 1), n >= this._selectableOptions.length && (n = 0);
75
+ const h = this._selectableOptions[t === "next" ? n : o];
76
+ i.blur(), h.focus();
74
77
  }
75
78
  _selectFocusedOption(t) {
76
79
  t.selected = !0;
77
80
  }
78
81
  get _selectableOptions() {
79
- return this.host._optionsList.filter((t) => !t.disabled);
82
+ return !this.host || !this.host._optionsList ? [] : this.host._optionsList.filter((t) => !t.disabled);
80
83
  }
81
84
  }
82
85
  class b {
83
86
  constructor(t) {
84
- this.host = t, t.addController(this);
87
+ (this.host = t).addController(this);
85
88
  }
86
89
  hostConnected() {
87
90
  this._badAttributeCombinationWarning();
88
91
  }
89
92
  _badAttributeCombinationWarning() {
90
- l({
93
+ if (!this.host) return;
94
+ const t = this.host.localName ?? "never";
95
+ a({
91
96
  assert: (this.host.min ?? 0) <= (this.host.max ?? 1 / 0),
92
97
  reason: "attribute-mismatch",
93
- replaceStrings: [this.host.localName, "min", "smaller than max"]
94
- }), l({
98
+ replaceStrings: [t, "min", "smaller than max"]
99
+ }), a({
95
100
  assert: (
96
101
  // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
97
102
  (this.host.min || this.host.max) && this.host.multiple || !(this.host.min && this.host.max)
98
103
  ),
99
104
  reason: "attribute-mismatch",
100
- replaceStrings: [this.host.localName, "min or max", "together with multiple"]
101
- }), l({
102
- assert: (this.host.hideTags && this.host.multiple) ?? !this.host.hideTags,
105
+ replaceStrings: [t, "min or max", "together with multiple"]
106
+ }), a({
107
+ // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
108
+ assert: this.host.hideTags && this.host.multiple || !this.host.hideTags,
103
109
  reason: "attribute-mismatch",
104
- replaceStrings: [this.host.localName, "hide-tags", "together with multiple"]
110
+ replaceStrings: [t, "hide-tags", "together with multiple"]
105
111
  });
106
112
  }
107
113
  }
@@ -0,0 +1,7 @@
1
+ export declare const icons: {
2
+ dummy1: import("lit").TemplateResult<1>;
3
+ dummy4: import("lit").TemplateResult<1>;
4
+ dummy5: import("lit").TemplateResult<1>;
5
+ dummy6: import("lit").TemplateResult<1>;
6
+ dummy7: import("lit").TemplateResult<1>;
7
+ };
@@ -2,34 +2,34 @@ var v = (e) => {
2
2
  throw TypeError(e);
3
3
  };
4
4
  var u = (e, i, t) => i.has(e) || v("Cannot " + t);
5
- var d = (e, i, t) => (u(e, i, "read from private field"), t ? t.call(e) : i.get(e)), _ = (e, i, t) => i.has(e) ? v("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(e) : i.set(e, t), r = (e, i, t, s) => (u(e, i, "write to private field"), s ? s.call(e, t) : i.set(e, t), t);
5
+ var d = (e, i, t) => (u(e, i, "read from private field"), t ? t.call(e) : i.get(e)), _ = (e, i, t) => i.has(e) ? v("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(e) : i.set(e, t), r = (e, i, t, a) => (u(e, i, "write to private field"), a ? a.call(e, t) : i.set(e, t), t);
6
6
  import "../icon/icon.js";
7
- import { SkfElement as b } from "../../internal/components/skf-element.js";
8
- import { watch as g } from "../../internal/helpers/watch.js";
9
- import C from "../../styles/component.styles.js";
7
+ import { SkfElement as g } from "../../internal/components/skf-element.js";
8
+ import { watch as C } from "../../internal/helpers/watch.js";
9
+ import { componentStyles as x } from "../../styles/component.styles.js";
10
10
  import "lit";
11
- import { property as y, state as c } from "lit/decorators.js";
11
+ import { property as b, state as c } from "lit/decorators.js";
12
12
  import { classMap as $ } from "lit/directives/class-map.js";
13
- import { ifDefined as x } from "lit/directives/if-defined.js";
14
- import { literal as w, unsafeStatic as U, html as S } from "lit/static-html.js";
15
- import { styles as I } from "./stepper-item.styles.js";
16
- var O = Object.defineProperty, P = Object.getOwnPropertyDescriptor, l = (e, i, t, s) => {
17
- for (var p = s > 1 ? void 0 : s ? P(i, t) : i, h = e.length - 1, m; h >= 0; h--)
18
- (m = e[h]) && (p = (s ? m(i, t, p) : m(p)) || p);
19
- return s && p && O(i, t, p), p;
20
- }, o, n;
21
- const f = class f extends b {
13
+ import { ifDefined as w } from "lit/directives/if-defined.js";
14
+ import { literal as S, html as y } from "lit/static-html.js";
15
+ import { styles as U } from "./stepper-item.styles.js";
16
+ var I = Object.defineProperty, O = Object.getOwnPropertyDescriptor, o = (e, i, t, a) => {
17
+ for (var p = a > 1 ? void 0 : a ? O(i, t) : i, h = e.length - 1, m; h >= 0; h--)
18
+ (m = e[h]) && (p = (a ? m(i, t, p) : m(p)) || p);
19
+ return a && p && I(i, t, p), p;
20
+ }, l, n;
21
+ const f = class f extends g {
22
22
  constructor() {
23
23
  super();
24
- _(this, o);
24
+ _(this, l);
25
25
  _(this, n);
26
- r(this, o, !1), r(this, n, !1), this.completed = !1, this._index = 0, this._linear = !1, this._handleClick = () => {
26
+ r(this, l, !1), r(this, n, !1), this.completed = !1, this._index = 0, this._linear = !1, this._handleClick = () => {
27
27
  this._linear || (this.state = "active");
28
28
  }, this.role = "listitem";
29
29
  }
30
30
  set _setInternalState(t) {
31
- r(this, o, !0), this._uiState = t, t === "active" || t === "activeCompleted" ? this.state = t === "active" ? "active" : "completed" : this.state = void 0, setTimeout(() => {
32
- r(this, o, !1);
31
+ r(this, l, !0), this._uiState = t, t === "active" || t === "activeCompleted" ? this.state = t === "active" ? "active" : "completed" : this.state = void 0, setTimeout(() => {
32
+ r(this, l, !1);
33
33
  });
34
34
  }
35
35
  get _setInternalState() {
@@ -44,8 +44,8 @@ const f = class f extends b {
44
44
  this._setInternalState = "activeCompleted";
45
45
  return;
46
46
  }
47
- if (d(this, o)) {
48
- r(this, o, !1);
47
+ if (d(this, l)) {
48
+ r(this, l, !1);
49
49
  return;
50
50
  }
51
51
  r(this, n, ["active", "completed"].includes(String(this.state)) && !["active", "activeCompleted"].includes(String(this._uiState))), this._emitUpdate();
@@ -60,9 +60,9 @@ const f = class f extends b {
60
60
  }), r(this, n, !1);
61
61
  }
62
62
  render() {
63
- const t = this._linear ? "div" : "button", s = w`${U(t)}`;
64
- return S`
65
- <${s}
63
+ const t = this._linear ? S`div` : S`button`;
64
+ return y`
65
+ <${t}
66
66
  @click=${this._handleClick}
67
67
  ?disabled=${this._disabled}
68
68
  class=${$({
@@ -72,42 +72,42 @@ const f = class f extends b {
72
72
  "stepper-item--completed": this._uiState === "completed",
73
73
  "stepper-item--enabled": this._uiState === "enabled"
74
74
  })}
75
- type=${x(t == "button" ? "button" : void 0)}
75
+ type=${w(this._linear ? void 0 : "button")}
76
76
  >
77
77
  <div class="stepper-item__circle">
78
- ${this._uiState === "activeCompleted" ? S`<skf-icon color="inverse" name="check"></skf-icon>` : this._index}
78
+ ${this._uiState === "activeCompleted" ? y`<skf-icon color="inverse" name="check"></skf-icon>` : this._index}
79
79
  </div>
80
80
  <slot class="stepper-item__label"></slot>
81
- </${s}>
81
+ </${t}>
82
82
  `;
83
83
  }
84
84
  };
85
- o = new WeakMap(), n = new WeakMap(), f.styles = [C, I];
86
- let a = f;
87
- l([
88
- y({ reflect: !0 })
89
- ], a.prototype, "state", 2);
90
- l([
91
- y({ type: Boolean })
92
- ], a.prototype, "completed", 2);
93
- l([
85
+ l = new WeakMap(), n = new WeakMap(), f.styles = [x, U];
86
+ let s = f;
87
+ o([
88
+ b({ reflect: !0 })
89
+ ], s.prototype, "state", 2);
90
+ o([
91
+ b({ type: Boolean })
92
+ ], s.prototype, "completed", 2);
93
+ o([
94
94
  c()
95
- ], a.prototype, "_disabled", 2);
96
- l([
95
+ ], s.prototype, "_disabled", 2);
96
+ o([
97
97
  c()
98
- ], a.prototype, "_index", 2);
99
- l([
98
+ ], s.prototype, "_index", 2);
99
+ o([
100
100
  c()
101
- ], a.prototype, "_linear", 2);
102
- l([
101
+ ], s.prototype, "_linear", 2);
102
+ o([
103
103
  c()
104
- ], a.prototype, "_uiState", 2);
105
- l([
104
+ ], s.prototype, "_uiState", 2);
105
+ o([
106
106
  c()
107
- ], a.prototype, "_setInternalState", 1);
108
- l([
109
- g("state")
110
- ], a.prototype, "_handleState", 1);
107
+ ], s.prototype, "_setInternalState", 1);
108
+ o([
109
+ C("state")
110
+ ], s.prototype, "_handleState", 1);
111
111
  export {
112
- a as SkfStepperItem
112
+ s as SkfStepperItem
113
113
  };
@@ -1,5 +1,5 @@
1
- import { SkfStepperItem } from './stepper-item.component';
2
- export * from './stepper-item.component';
1
+ import { SkfStepperItem } from './stepper-item.component.js';
2
+ export * from './stepper-item.component.js';
3
3
  export default SkfStepperItem;
4
4
  declare global {
5
5
  interface HTMLElementTagNameMap {
@@ -0,0 +1 @@
1
+ export declare const styles: import("lit").CSSResult;
@@ -1,14 +1,14 @@
1
- import type { SkfStepperItem } from '../stepper-item/stepper-item.component.js';
2
1
  import { SkfElement } from '../../internal/components/skf-element';
3
2
  import { type CSSResultGroup } from 'lit';
3
+ import type { SkfStepperItem } from './stepper-item.component.js';
4
4
  /**
5
5
  * The `<skf-stepper>` is a component that displays a list of actions or options.
6
6
  *
7
- * @documentation See [zeroheight](https://zeroheight.com/****) for design principles
7
+ * @documentation See [zeroheight](https://zeroheight.com/853e936c9/p/842a0a-stepper) for design principles
8
8
  *
9
9
  * @slot - One or more `<skf-stepper-item>`
10
10
  *
11
- * @event skf-stepper-item-select - Dispatched when the stepper item is selected
11
+ * @event {CustomEvent} skf-stepper-item-select - Dispatched when the stepper item is selected
12
12
  *
13
13
  * @tagname skf-stepper
14
14
  */
@@ -27,6 +27,7 @@ export declare class SkfStepper extends SkfElement {
27
27
  _handleActiveIndexChanged(): void;
28
28
  /** @internal */
29
29
  _handleLinearMode(): void;
30
+ /** @internal */
30
31
  private _handleSelected;
31
32
  /** @internal */
32
33
  private _resetActive;
@@ -2,30 +2,30 @@ var p = (t) => {
2
2
  throw TypeError(t);
3
3
  };
4
4
  var m = (t, i, e) => i.has(t) || p("Cannot " + e);
5
- var _ = (t, i, e) => (m(t, i, "read from private field"), e ? e.call(t) : i.get(t)), f = (t, i, e) => i.has(t) ? p("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(t) : i.set(t, e), l = (t, i, e, s) => (m(t, i, "write to private field"), s ? s.call(t, e) : i.set(t, e), e);
5
+ var _ = (t, i, e) => (m(t, i, "read from private field"), e ? e.call(t) : i.get(t)), v = (t, i, e) => i.has(t) ? p("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(t) : i.set(t, e), l = (t, i, e, s) => (m(t, i, "write to private field"), s ? s.call(t, e) : i.set(t, e), e);
6
6
  import { SkfElement as I } from "../../internal/components/skf-element.js";
7
- import { watch as v } from "../../internal/helpers/watch.js";
8
- import u from "../../styles/component.styles.js";
7
+ import { watch as f } from "../../internal/helpers/watch.js";
8
+ import { componentStyles as u } from "../../styles/component.styles.js";
9
9
  import { html as g } from "lit";
10
10
  import { property as x, queryAssignedElements as y } from "lit/decorators.js";
11
11
  import { classMap as A } from "lit/directives/class-map.js";
12
12
  import { stepperState as C } from "./stepper.helpers.js";
13
13
  import { styles as b } from "./stepper.styles.js";
14
14
  var E = Object.defineProperty, S = Object.getOwnPropertyDescriptor, h = (t, i, e, s) => {
15
- for (var n = s > 1 ? void 0 : s ? S(i, e) : i, r = t.length - 1, d; r >= 0; r--)
16
- (d = t[r]) && (n = (s ? d(i, e, n) : d(n)) || n);
15
+ for (var n = s > 1 ? void 0 : s ? S(i, e) : i, r = t.length - 1, o; r >= 0; r--)
16
+ (o = t[r]) && (n = (s ? o(i, e, n) : o(n)) || n);
17
17
  return s && n && E(i, e, n), n;
18
- }, o;
18
+ }, d;
19
19
  const c = class c extends I {
20
20
  constructor() {
21
21
  super();
22
- f(this, o);
23
- l(this, o, !1), this.activeIndex = -1, this.linear = !1, this._handleSelected = (e) => {
24
- if (!_(this, o)) return;
25
- const { item: s, triggerActiveIndexUpdate: n } = e.detail, r = [...this._items ?? []].findIndex((d) => d === s);
22
+ v(this, d);
23
+ l(this, d, !1), this.activeIndex = -1, this.linear = !1, this._handleSelected = (e) => {
24
+ if (!_(this, d)) return;
25
+ const { item: s, triggerActiveIndexUpdate: n } = e.detail, r = [...this._items ?? []].findIndex((o) => o === s);
26
26
  r === this.activeIndex ? this._handleActiveIndexChanged() : (n && this._resetActive(r), this.activeIndex = r);
27
27
  }, this._handleSlotChanged = () => {
28
- l(this, o, !0), this.activeIndex = this._getCurrentActiveIndex();
28
+ l(this, d, !0), this.activeIndex = this._getCurrentActiveIndex();
29
29
  }, this.addEventListener("skf-stepper-item-select", this._handleSelected);
30
30
  }
31
31
  firstUpdated() {
@@ -69,10 +69,10 @@ const c = class c extends I {
69
69
  `;
70
70
  }
71
71
  };
72
- o = new WeakMap(), c.styles = [u, b];
72
+ d = new WeakMap(), c.styles = [u, b];
73
73
  let a = c;
74
74
  h([
75
- x({ type: Number })
75
+ x({ type: Number, attribute: "active-index" })
76
76
  ], a.prototype, "activeIndex", 2);
77
77
  h([
78
78
  x({ type: Boolean })
@@ -81,10 +81,10 @@ h([
81
81
  y()
82
82
  ], a.prototype, "_items", 2);
83
83
  h([
84
- v("activeIndex")
84
+ f("activeIndex")
85
85
  ], a.prototype, "_handleActiveIndexChanged", 1);
86
86
  h([
87
- v("linear")
87
+ f("linear")
88
88
  ], a.prototype, "_handleLinearMode", 1);
89
89
  export {
90
90
  a as SkfStepper
@@ -1,5 +1,5 @@
1
- import { SkfStepper } from './stepper.component';
2
- export * from './stepper.component';
1
+ import { SkfStepper } from './stepper.component.js';
2
+ export * from './stepper.component.js';
3
3
  export default SkfStepper;
4
4
  declare global {
5
5
  interface HTMLElementTagNameMap {