@skf-design-system/ui-components 1.0.0-alpha.33 → 1.0.0-alpha.35

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 (345) hide show
  1. package/README.md +20 -27
  2. package/dist/components/accordion/accordion-item.component.d.ts +36 -0
  3. package/dist/components/accordion/accordion-item.component.js +98 -0
  4. package/dist/components/accordion/accordion-item.d.ts +3 -3
  5. package/dist/components/accordion/accordion-item.js +4 -5
  6. package/dist/components/accordion/accordion-item.styles.js +77 -0
  7. package/dist/components/accordion/accordion.component.d.ts +9 -13
  8. package/dist/components/accordion/accordion.component.js +7 -7
  9. package/dist/components/accordion/accordion.d.ts +0 -1
  10. package/dist/components/alert/alert.component.d.ts +12 -12
  11. package/dist/components/alert/alert.component.js +57 -54
  12. package/dist/components/alert/alert.styles.js +50 -51
  13. package/dist/components/breadcrumb/breadcrumb-item.component.d.ts +25 -0
  14. package/dist/components/breadcrumb/breadcrumb-item.component.js +60 -0
  15. package/dist/components/breadcrumb/breadcrumb-item.d.ts +8 -0
  16. package/dist/components/breadcrumb/breadcrumb-item.js +6 -0
  17. package/dist/components/breadcrumb/breadcrumb-item.styles.js +63 -0
  18. package/dist/components/breadcrumb/breadcrumb.component.d.ts +32 -0
  19. package/dist/components/breadcrumb/breadcrumb.component.js +65 -0
  20. package/dist/components/breadcrumb/breadcrumb.d.ts +8 -0
  21. package/dist/components/breadcrumb/breadcrumb.js +6 -0
  22. package/dist/components/breadcrumb/breadcrumb.styles.js +25 -0
  23. package/dist/components/button/button.component.d.ts +17 -14
  24. package/dist/components/button/button.component.js +74 -60
  25. package/dist/components/button/button.styles.d.ts +1 -2
  26. package/dist/components/button/button.styles.js +13 -3
  27. package/dist/components/card/card.component.d.ts +4 -1
  28. package/dist/components/card/card.component.js +46 -36
  29. package/dist/components/card/card.styles.js +36 -23
  30. package/dist/components/checkbox/checkbox.component.d.ts +17 -13
  31. package/dist/components/checkbox/checkbox.component.js +75 -61
  32. package/dist/components/checkbox/checkbox.styles.d.ts +1 -2
  33. package/dist/components/checkbox/checkbox.styles.js +1 -5
  34. package/dist/components/datepicker/datepicker-calendar.component.d.ts +80 -0
  35. package/dist/components/datepicker/datepicker-calendar.component.js +415 -0
  36. package/dist/components/datepicker/datepicker-calendar.d.ts +8 -0
  37. package/dist/components/datepicker/datepicker-calendar.js +6 -0
  38. package/dist/components/datepicker/datepicker-calendar.styles.js +202 -0
  39. package/dist/components/datepicker/datepicker-popup.component.d.ts +64 -0
  40. package/dist/components/datepicker/datepicker-popup.component.js +261 -0
  41. package/dist/components/datepicker/datepicker-popup.d.ts +8 -0
  42. package/dist/components/datepicker/datepicker-popup.helpers.d.ts +41 -0
  43. package/dist/components/datepicker/datepicker-popup.helpers.js +83 -0
  44. package/dist/components/datepicker/datepicker-popup.js +6 -0
  45. package/dist/components/datepicker/datepicker-popup.styles.js +87 -0
  46. package/dist/components/datepicker/datepicker.component.d.ts +121 -0
  47. package/dist/components/datepicker/datepicker.component.js +455 -0
  48. package/dist/components/datepicker/datepicker.d.ts +8 -0
  49. package/dist/components/datepicker/datepicker.helpers.d.ts +38 -0
  50. package/dist/components/datepicker/datepicker.helpers.js +31 -0
  51. package/dist/components/datepicker/datepicker.js +6 -0
  52. package/dist/components/datepicker/datepicker.styles.d.ts +1 -0
  53. package/dist/components/datepicker/datepicker.styles.js +18 -0
  54. package/dist/components/dialog/dialog.component.d.ts +20 -30
  55. package/dist/components/dialog/dialog.component.js +89 -78
  56. package/dist/components/dialog/dialog.d.ts +2 -2
  57. package/dist/components/dialog/dialog.styles.js +4 -4
  58. package/dist/components/divider/divider.component.d.ts +4 -8
  59. package/dist/components/divider/divider.component.js +24 -46
  60. package/dist/components/divider/divider.styles.js +34 -30
  61. package/dist/components/drawer/drawer.component.d.ts +61 -0
  62. package/dist/components/drawer/drawer.component.js +125 -0
  63. package/dist/components/drawer/drawer.d.ts +8 -0
  64. package/dist/components/drawer/drawer.js +6 -0
  65. package/dist/components/drawer/drawer.styles.js +71 -0
  66. package/dist/components/header/header.component.d.ts +46 -0
  67. package/dist/components/header/header.component.js +116 -0
  68. package/dist/components/header/header.d.ts +8 -0
  69. package/dist/components/header/header.js +6 -0
  70. package/dist/components/header/header.styles.js +68 -0
  71. package/dist/components/heading/heading.component.d.ts +8 -12
  72. package/dist/components/heading/heading.component.js +52 -24
  73. package/dist/components/heading/heading.styles.d.ts +1 -2
  74. package/dist/components/heading/heading.styles.js +35 -37
  75. package/dist/components/icon/icon.component.d.ts +19 -18
  76. package/dist/components/icon/icon.component.js +60 -40
  77. package/dist/components/icon/icon.styles.d.ts +1 -2
  78. package/dist/components/icon/icon.styles.js +61 -60
  79. package/dist/components/input/input.component.d.ts +31 -31
  80. package/dist/components/input/input.component.js +167 -146
  81. package/dist/components/input/input.controllers.d.ts +20 -6
  82. package/dist/components/input/input.controllers.js +14 -10
  83. package/dist/components/link/link.component.d.ts +12 -14
  84. package/dist/components/link/link.component.js +36 -34
  85. package/dist/components/link/link.styles.d.ts +1 -2
  86. package/dist/components/link/link.styles.js +24 -20
  87. package/dist/components/loader/loader.component.d.ts +1 -1
  88. package/dist/components/loader/loader.component.js +36 -40
  89. package/dist/components/loader/loader.styles.d.ts +1 -2
  90. package/dist/components/loader/loader.styles.js +40 -32
  91. package/dist/components/logo/logo.component.d.ts +8 -6
  92. package/dist/components/logo/logo.component.js +55 -51
  93. package/dist/components/logo/logo.styles.js +26 -16
  94. package/dist/components/menu/menu-item.component.d.ts +13 -0
  95. package/dist/components/{menu-item → menu}/menu-item.component.js +3 -3
  96. package/dist/components/{menu-item → menu}/menu-item.d.ts +2 -2
  97. package/dist/components/menu/menu.component.d.ts +10 -8
  98. package/dist/components/menu/menu.component.js +8 -10
  99. package/dist/components/menu/menu.d.ts +2 -2
  100. package/dist/components/nav/nav-item.component.d.ts +18 -0
  101. package/dist/components/nav/nav-item.component.js +38 -0
  102. package/dist/components/nav/nav-item.d.ts +8 -0
  103. package/dist/components/nav/nav-item.js +6 -0
  104. package/dist/components/nav/nav-item.styles.d.ts +1 -0
  105. package/dist/components/nav/nav-item.styles.js +39 -0
  106. package/dist/components/nav/nav.component.d.ts +17 -0
  107. package/dist/components/nav/nav.component.js +34 -0
  108. package/dist/components/nav/nav.d.ts +8 -0
  109. package/dist/components/nav/nav.js +6 -0
  110. package/dist/components/nav/nav.styles.d.ts +1 -0
  111. package/dist/components/nav/nav.styles.js +17 -0
  112. package/dist/components/popover/popover.component.d.ts +11 -8
  113. package/dist/components/popover/popover.component.js +24 -26
  114. package/dist/components/popover/popover.d.ts +2 -2
  115. package/dist/components/progress/progress.component.d.ts +2 -2
  116. package/dist/components/progress/progress.component.js +31 -37
  117. package/dist/components/progress/progress.d.ts +2 -2
  118. package/dist/components/progress/progress.styles.js +42 -35
  119. package/dist/components/radio/radio.component.d.ts +19 -13
  120. package/dist/components/radio/radio.component.js +13 -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.js +1 -1
  136. package/dist/components/{select-option-group → select}/select-option-group.d.ts +2 -2
  137. package/dist/components/select/select-option-group.style.d.ts +1 -0
  138. package/dist/components/{select-option → select}/select-option.component.d.ts +9 -10
  139. package/dist/components/{select-option → select}/select-option.component.js +23 -22
  140. package/dist/components/select/select-option.controllers.d.ts +15 -0
  141. package/dist/components/select/select-option.styles.d.ts +1 -0
  142. package/dist/components/select/select.component.d.ts +18 -17
  143. package/dist/components/select/select.component.js +22 -22
  144. package/dist/components/select/select.controllers.d.ts +21 -10
  145. package/dist/components/select/select.controllers.js +27 -22
  146. package/dist/components/select/stories/select.stories.icons.d.ts +7 -0
  147. package/dist/components/{stepper-item → stepper}/stepper-item.component.js +50 -49
  148. package/dist/components/{stepper-item → stepper}/stepper-item.d.ts +2 -2
  149. package/dist/components/stepper/stepper-item.styles.d.ts +1 -0
  150. package/dist/components/stepper/stepper.component.d.ts +4 -3
  151. package/dist/components/stepper/stepper.component.js +15 -15
  152. package/dist/components/stepper/stepper.d.ts +2 -2
  153. package/dist/components/stepper/stepper.helpers.d.ts +1 -1
  154. package/dist/components/switch/switch.component.d.ts +7 -6
  155. package/dist/components/switch/switch.component.js +21 -21
  156. package/dist/components/switch/switch.d.ts +2 -2
  157. package/dist/components/{tab-panel → tabs}/tab-panel.component.js +1 -1
  158. package/dist/components/{tab-panel → tabs}/tab-panel.d.ts +2 -2
  159. package/dist/components/tabs/tab-panel.styles.d.ts +1 -0
  160. package/dist/components/{tab → tabs}/tab.component.d.ts +2 -2
  161. package/dist/components/{tab → tabs}/tab.component.js +1 -1
  162. package/dist/components/{tab → tabs}/tab.d.ts +2 -2
  163. package/dist/components/tabs/tab.styles.d.ts +1 -0
  164. package/dist/components/{tab-group/tab-group.component.d.ts → tabs/tabs.component.d.ts} +3 -4
  165. package/dist/components/{tab-group/tab-group.component.js → tabs/tabs.component.js} +31 -31
  166. package/dist/components/tabs/tabs.d.ts +8 -0
  167. package/dist/components/tabs/tabs.js +6 -0
  168. package/dist/components/tabs/tabs.styles.d.ts +1 -0
  169. package/dist/components/{tab-group/tab-group.styles.js → tabs/tabs.styles.js} +16 -16
  170. package/dist/components/tag/tag.component.d.ts +20 -17
  171. package/dist/components/tag/tag.component.js +69 -67
  172. package/dist/components/tag/tag.d.ts +2 -2
  173. package/dist/components/tag/tag.styles.js +63 -50
  174. package/dist/components/textarea/textarea.component.d.ts +10 -11
  175. package/dist/components/textarea/textarea.component.js +66 -67
  176. package/dist/components/{toast-item → toast}/toast-item.component.js +15 -15
  177. package/dist/components/{toast-item → toast}/toast-item.d.ts +2 -0
  178. package/dist/components/{toast-item → toast}/toast-item.js +4 -0
  179. package/dist/components/toast/toast-item.styles.js +18 -0
  180. package/dist/components/{toast-wrapper → toast}/toast-wrapper.component.js +1 -1
  181. package/dist/components/toast/toast-wrapper.styles.d.ts +1 -0
  182. package/dist/components/toast/toast.component.d.ts +9 -5
  183. package/dist/components/toast/toast.component.js +32 -28
  184. package/dist/components/toast/toast.singleton.d.ts +6 -11
  185. package/dist/components/toast/toast.singleton.js +23 -23
  186. package/dist/components/tooltip/tooltip.component.d.ts +7 -7
  187. package/dist/components/tooltip/tooltip.component.js +16 -11
  188. package/dist/components/tooltip/tooltip.d.ts +2 -2
  189. package/dist/custom-elements.json +4450 -2753
  190. package/dist/index.d.ts +22 -9
  191. package/dist/index.js +111 -74
  192. package/dist/internal/base-classes/popover/popover.base.d.ts +24 -9
  193. package/dist/internal/base-classes/popover/popover.base.js +138 -77
  194. package/dist/internal/base-classes/popover/popover.styles.js +14 -1
  195. package/dist/internal/components/hint/hint.component.d.ts +2 -2
  196. package/dist/internal/components/hint/hint.component.js +3 -2
  197. package/dist/internal/components/hint/hint.styles.d.ts +1 -2
  198. package/dist/internal/components/hint/hint.styles.js +1 -1
  199. package/dist/internal/components/skf-element.d.ts +1 -3
  200. package/dist/internal/components/skf-element.js +4 -9
  201. package/dist/internal/constants/iconSeverity.d.ts +3 -2
  202. package/dist/internal/constants/iconSeverity.js +2 -3
  203. package/dist/internal/controllers/elementOverflowController.d.ts +13 -0
  204. package/dist/internal/controllers/popover.controller.d.ts +12 -6
  205. package/dist/internal/controllers/popover.controller.js +7 -11
  206. package/dist/internal/helpers/dateFormatter.d.ts +2 -0
  207. package/dist/internal/helpers/hintSeverity.d.ts +2 -2
  208. package/dist/internal/helpers/hintSeverity.js +1 -1
  209. package/dist/internal/helpers/stateMap.d.ts +14 -0
  210. package/dist/internal/helpers/stateMap.js +68 -0
  211. package/dist/internal/helpers/utilityTypes.d.ts +22 -0
  212. package/dist/internal/helpers/uuid.d.ts +15 -0
  213. package/dist/internal/helpers/uuid.js +14 -0
  214. package/dist/internal/helpers/watch.d.ts +1 -1
  215. package/dist/internal/helpers/watch.js +12 -12
  216. package/dist/internal/storybook/styles.d.ts +1 -0
  217. package/dist/internal/types/formField.d.ts +1 -1
  218. package/dist/internal/types.d.ts +18 -0
  219. package/dist/styles/component.styles.d.ts +1 -2
  220. package/dist/styles/component.styles.js +38 -37
  221. package/dist/styles/form-field.styles.js +11 -6
  222. package/dist/styles/global-alt.css +1 -0
  223. package/dist/styles/global.css +1 -1
  224. package/dist/types/jsx/custom-element-jsx.d.ts +767 -1282
  225. package/dist/types/vue/index.d.ts +572 -310
  226. package/dist/vscode.html-custom-data.json +547 -1068
  227. package/dist/web-types.json +1314 -769
  228. package/package.json +48 -64
  229. package/dist/components/accordion/accordion.test.d.ts +0 -1
  230. package/dist/components/checkbox/checkbox.test.d.ts +0 -1
  231. package/dist/components/collapse/collapse.component.d.ts +0 -40
  232. package/dist/components/collapse/collapse.component.js +0 -85
  233. package/dist/components/collapse/collapse.d.ts +0 -8
  234. package/dist/components/collapse/collapse.js +0 -6
  235. package/dist/components/collapse/collapse.styles.d.ts +0 -2
  236. package/dist/components/collapse/collapse.styles.js +0 -77
  237. package/dist/components/collapse/collapse.test.d.ts +0 -1
  238. package/dist/components/input/input.test.d.ts +0 -1
  239. package/dist/components/menu-item/menu-item.component.d.ts +0 -25
  240. package/dist/components/radio/radio.test.d.ts +0 -1
  241. package/dist/components/select-option/select-option.controllers.d.ts +0 -9
  242. package/dist/components/switch/switch.test.d.ts +0 -1
  243. package/dist/components/tab-group/tab-group.d.ts +0 -8
  244. package/dist/components/tab-group/tab-group.js +0 -6
  245. package/dist/components/toast-item/toast-item.styles.js +0 -16
  246. package/dist/internal/constants/heading.d.ts +0 -2
  247. package/dist/internal/playwright/index.d.ts +0 -1
  248. package/dist/react/index.d.ts +0 -33
  249. package/dist/react/index.js +0 -33
  250. package/dist/react/skf-accordion/index.d.ts +0 -3
  251. package/dist/react/skf-accordion/index.js +0 -13
  252. package/dist/react/skf-alert/index.d.ts +0 -9
  253. package/dist/react/skf-alert/index.js +0 -17
  254. package/dist/react/skf-button/index.d.ts +0 -9
  255. package/dist/react/skf-button/index.js +0 -17
  256. package/dist/react/skf-card/index.d.ts +0 -3
  257. package/dist/react/skf-card/index.js +0 -13
  258. package/dist/react/skf-checkbox/index.d.ts +0 -9
  259. package/dist/react/skf-checkbox/index.js +0 -17
  260. package/dist/react/skf-collapse/index.d.ts +0 -9
  261. package/dist/react/skf-collapse/index.js +0 -17
  262. package/dist/react/skf-dialog/index.d.ts +0 -15
  263. package/dist/react/skf-dialog/index.js +0 -19
  264. package/dist/react/skf-divider/index.d.ts +0 -3
  265. package/dist/react/skf-divider/index.js +0 -13
  266. package/dist/react/skf-heading/index.d.ts +0 -3
  267. package/dist/react/skf-heading/index.js +0 -13
  268. package/dist/react/skf-icon/index.d.ts +0 -3
  269. package/dist/react/skf-icon/index.js +0 -13
  270. package/dist/react/skf-input/index.d.ts +0 -12
  271. package/dist/react/skf-input/index.js +0 -18
  272. package/dist/react/skf-link/index.d.ts +0 -3
  273. package/dist/react/skf-link/index.js +0 -13
  274. package/dist/react/skf-loader/index.d.ts +0 -3
  275. package/dist/react/skf-loader/index.js +0 -13
  276. package/dist/react/skf-logo/index.d.ts +0 -3
  277. package/dist/react/skf-logo/index.js +0 -13
  278. package/dist/react/skf-menu/index.d.ts +0 -12
  279. package/dist/react/skf-menu/index.js +0 -18
  280. package/dist/react/skf-menu-item/index.d.ts +0 -27
  281. package/dist/react/skf-menu-item/index.js +0 -23
  282. package/dist/react/skf-popover/index.d.ts +0 -12
  283. package/dist/react/skf-popover/index.js +0 -18
  284. package/dist/react/skf-progress/index.d.ts +0 -3
  285. package/dist/react/skf-progress/index.js +0 -13
  286. package/dist/react/skf-radio/index.d.ts +0 -9
  287. package/dist/react/skf-radio/index.js +0 -17
  288. package/dist/react/skf-select/index.d.ts +0 -21
  289. package/dist/react/skf-select/index.js +0 -21
  290. package/dist/react/skf-select-option/index.d.ts +0 -9
  291. package/dist/react/skf-select-option/index.js +0 -17
  292. package/dist/react/skf-select-option-group/index.d.ts +0 -3
  293. package/dist/react/skf-select-option-group/index.js +0 -13
  294. package/dist/react/skf-stepper/index.d.ts +0 -9
  295. package/dist/react/skf-stepper/index.js +0 -17
  296. package/dist/react/skf-stepper-item/index.d.ts +0 -9
  297. package/dist/react/skf-stepper-item/index.js +0 -17
  298. package/dist/react/skf-switch/index.d.ts +0 -3
  299. package/dist/react/skf-switch/index.js +0 -13
  300. package/dist/react/skf-tab/index.d.ts +0 -12
  301. package/dist/react/skf-tab/index.js +0 -18
  302. package/dist/react/skf-tab-group/index.d.ts +0 -3
  303. package/dist/react/skf-tab-group/index.js +0 -13
  304. package/dist/react/skf-tab-panel/index.d.ts +0 -3
  305. package/dist/react/skf-tab-panel/index.js +0 -13
  306. package/dist/react/skf-tag/index.d.ts +0 -3
  307. package/dist/react/skf-tag/index.js +0 -13
  308. package/dist/react/skf-textarea/index.d.ts +0 -12
  309. package/dist/react/skf-textarea/index.js +0 -18
  310. package/dist/react/skf-toast/index.d.ts +0 -3
  311. package/dist/react/skf-toast/index.js +0 -13
  312. package/dist/react/skf-toast-wrapper/index.d.ts +0 -3
  313. package/dist/react/skf-toast-wrapper/index.js +0 -13
  314. package/dist/react/skf-tooltip/index.d.ts +0 -12
  315. package/dist/react/skf-tooltip/index.js +0 -18
  316. /package/dist/components/{menu-item/menu-item.styles.d.ts → accordion/accordion-item.styles.d.ts} +0 -0
  317. /package/dist/components/{select-option-group/select-option-group.style.d.ts → breadcrumb/breadcrumb-item.styles.d.ts} +0 -0
  318. /package/dist/components/{select-option/select-option.styles.d.ts → breadcrumb/breadcrumb.styles.d.ts} +0 -0
  319. /package/dist/components/{stepper-item/stepper-item.styles.d.ts → datepicker/datepicker-calendar.styles.d.ts} +0 -0
  320. /package/dist/components/{tab-group/tab-group.styles.d.ts → datepicker/datepicker-popup.styles.d.ts} +0 -0
  321. /package/dist/components/{tab-panel/tab-panel.styles.d.ts → drawer/drawer.styles.d.ts} +0 -0
  322. /package/dist/components/{tab/tab.styles.d.ts → header/header.styles.d.ts} +0 -0
  323. /package/dist/components/{menu-item → menu}/menu-item.js +0 -0
  324. /package/dist/components/{toast-wrapper/toast-wrapper.styles.d.ts → menu/menu-item.styles.d.ts} +0 -0
  325. /package/dist/components/{menu-item → menu}/menu-item.styles.js +0 -0
  326. /package/dist/components/{select-option-group → select}/select-option-group.component.d.ts +0 -0
  327. /package/dist/components/{select-option-group → select}/select-option-group.js +0 -0
  328. /package/dist/components/{select-option-group → select}/select-option-group.style.js +0 -0
  329. /package/dist/components/{select-option → select}/select-option.d.ts +0 -0
  330. /package/dist/components/{select-option → select}/select-option.js +0 -0
  331. /package/dist/components/{select-option → select}/select-option.styles.js +0 -0
  332. /package/dist/components/{stepper-item → stepper}/stepper-item.component.d.ts +0 -0
  333. /package/dist/components/{stepper-item → stepper}/stepper-item.js +0 -0
  334. /package/dist/components/{stepper-item → stepper}/stepper-item.styles.js +0 -0
  335. /package/dist/components/{tab-panel → tabs}/tab-panel.component.d.ts +0 -0
  336. /package/dist/components/{tab-panel → tabs}/tab-panel.js +0 -0
  337. /package/dist/components/{tab-panel → tabs}/tab-panel.styles.js +0 -0
  338. /package/dist/components/{tab → tabs}/tab.js +0 -0
  339. /package/dist/components/{tab → tabs}/tab.styles.js +0 -0
  340. /package/dist/components/{toast-item → toast}/toast-item.component.d.ts +0 -0
  341. /package/dist/components/{toast-item → toast}/toast-item.styles.d.ts +0 -0
  342. /package/dist/components/{toast-wrapper → toast}/toast-wrapper.component.d.ts +0 -0
  343. /package/dist/components/{toast-wrapper → toast}/toast-wrapper.d.ts +0 -0
  344. /package/dist/components/{toast-wrapper → toast}/toast-wrapper.js +0 -0
  345. /package/dist/components/{toast-wrapper → toast}/toast-wrapper.styles.js +0 -0
@@ -1,5 +1,5 @@
1
- import { SkfTag } from './tag.component';
2
- export * from './tag.component';
1
+ import { SkfTag } from './tag.component.js';
2
+ export * from './tag.component.js';
3
3
  export default SkfTag;
4
4
  declare global {
5
5
  interface HTMLElementTagNameMap {
@@ -1,66 +1,79 @@
1
1
  import { css as r } from "lit";
2
2
  const s = r`
3
- /* stylelint-disable selector-class-pattern */
4
3
  @layer components {
5
- .tag {
6
- align-items: center;
7
- background-color: var(--_skf-tag-bg-color, var(--skf-bg-color-neutral-1));
8
- block-size: var(--_skf-tag-height, var(--skf-size-32));
9
- border: var(--skf-border-width-sm) solid
10
- var(--_skf-tag-border-color, var(--skf-border-color-primary));
11
- border-radius: var(--_skf-tag-border-radius, var(--skf-border-radius-md));
12
- color: var(--_skf-tag-text-color, var(--skf-text-color-primary));
13
- display: inline-flex;
14
- font-size: var(--_skf-tag-font-size, var(--skf-font-size-50));
15
- gap: var(--skf-spacing-25);
16
- max-inline-size: 48ch;
17
- padding-inline: var(--skf-spacing-50);
18
- }
4
+ @layer base {
5
+ :host {
6
+ display: inline-flex;
7
+ }
19
8
 
20
- .tag--color-alert {
21
- --_skf-tag-bg-color: var(--skf-severity-bg-color-alert);
22
- --_skf-tag-border-color: var(--skf-severity-fg-color-alert);
23
- }
9
+ #root {
10
+ --_skf-tag-bg-color: var(--skf-bg-color-neutral-1);
11
+ --_skf-tag-border-color: var(--skf-border-color-primary);
12
+ --_skf-tag-border-radius: var(--skf-border-radius-md);
13
+ --_skf-tag-font-size: var(--skf-font-size-50);
14
+ --_skf-tag-height: var(--skf-size-32);
15
+ --_skf-tag-text-color: var(--skf-text-color-primary);
24
16
 
25
- .tag--color-error {
26
- --_skf-tag-bg-color: var(--skf-severity-bg-color-error);
27
- --_skf-tag-border-color: var(--skf-severity-fg-color-error);
28
- }
17
+ align-items: center;
18
+ background-color: var(--_skf-tag-bg-color);
19
+ block-size: var(--_skf-tag-height);
20
+ border: var(--skf-border-width-sm) solid var(--_skf-tag-border-color);
21
+ border-radius: var(--_skf-tag-border-radius);
22
+ color: var(--_skf-tag-text-color);
23
+ display: flex;
24
+ font-size: var(--_skf-tag-font-size);
25
+ gap: var(--skf-spacing-25);
26
+ max-inline-size: 48ch;
27
+ padding-inline: var(--skf-spacing-50);
28
+ }
29
29
 
30
- .tag--color-info {
31
- --_skf-tag-bg-color: var(--skf-severity-bg-color-info);
32
- --_skf-tag-border-color: var(--skf-severity-fg-color-info);
33
- }
30
+ slot {
31
+ display: block;
32
+ overflow: hidden;
33
+ text-overflow: ellipsis;
34
+ white-space: nowrap;
35
+ }
34
36
 
35
- .tag--color-success {
36
- --_skf-tag-bg-color: var(--skf-severity-bg-color-success);
37
- --_skf-tag-border-color: var(--skf-severity-fg-color-success);
38
- }
37
+ button {
38
+ display: flex;
39
39
 
40
- .tag--color-warning {
41
- --_skf-tag-bg-color: var(--skf-severity-bg-color-warning);
42
- --_skf-tag-border-color: var(--skf-severity-fg-color-warning);
40
+ &:focus-visible {
41
+ border-radius: var(--skf-border-radius-sm);
42
+ outline: var(--skf-border-width-md) solid var(--skf-interactive-border-color-focus);
43
+ }
44
+ }
43
45
  }
44
46
 
45
- .tag--small {
46
- --_skf-tag-border-radius: 0.25rem; /* token needed */
47
- --_skf-tag-font-size: var(--skf-font-size-25);
48
- --_skf-tag-height: var(--skf-size-24);
49
- }
47
+ @layer mods {
48
+ :host(:state(alert)) #root {
49
+ --_skf-tag-bg-color: var(--skf-severity-bg-color-alert);
50
+ --_skf-tag-border-color: var(--skf-severity-fg-color-alert);
51
+ }
50
52
 
51
- .tag__slot {
52
- display: block;
53
- overflow: hidden;
54
- text-overflow: ellipsis;
55
- white-space: nowrap;
56
- }
53
+ :host(:state(error)) #root {
54
+ --_skf-tag-bg-color: var(--skf-severity-bg-color-error);
55
+ --_skf-tag-border-color: var(--skf-severity-fg-color-error);
56
+ }
57
57
 
58
- .tag__btn {
59
- display: flex;
58
+ :host(:state(info)) #root {
59
+ --_skf-tag-bg-color: var(--skf-severity-bg-color-info);
60
+ --_skf-tag-border-color: var(--skf-severity-fg-color-info);
61
+ }
62
+
63
+ :host(:state(success)) #root {
64
+ --_skf-tag-bg-color: var(--skf-severity-bg-color-success);
65
+ --_skf-tag-border-color: var(--skf-severity-fg-color-success);
66
+ }
67
+
68
+ :host(:state(warning)) #root {
69
+ --_skf-tag-bg-color: var(--skf-severity-bg-color-warning);
70
+ --_skf-tag-border-color: var(--skf-severity-fg-color-warning);
71
+ }
60
72
 
61
- &:focus-visible {
62
- border-radius: var(--skf-border-radius-sm);
63
- outline: var(--skf-border-width-md) solid var(--skf-interactive-border-color-focus);
73
+ :host(:state(sm)) #root {
74
+ --_skf-tag-border-radius: 0.25rem; /* token needed */
75
+ --_skf-tag-font-size: var(--skf-font-size-25);
76
+ --_skf-tag-height: var(--skf-size-24);
64
77
  }
65
78
  }
66
79
  }
@@ -1,6 +1,7 @@
1
1
  import '../icon/icon.js';
2
2
  import { FormBase } from '../../internal/components/formBase.js';
3
3
  import '../../internal/components/hint/hint.js';
4
+ import type { FormFieldSeverity } from '../../internal/types.js';
4
5
  import type { FormFieldBaseProps } from '../../internal/types/formField.js';
5
6
  import { type CSSResultGroup } from 'lit';
6
7
  interface SkfTextAreaProps extends Omit<FormFieldBaseProps, 'type'> {
@@ -14,8 +15,8 @@ interface SkfTextAreaProps extends Omit<FormFieldBaseProps, 'type'> {
14
15
  *
15
16
  * @documentation See [zeroheight](https://zeroheight.com/853e936c9/p/143f9d-text-area) for design principles.
16
17
  *
17
- * @attribute {boolean} disabled - If true, sets disabled state
18
- * @attribute {boolean} required - If true, value is required or must be checked for the form to be submittable
18
+ * @attribute {boolean} [disabled=false] - If true, sets disabled state
19
+ * @attribute {boolean} [required=false] - If true, value is required or must be checked for the form to be submittable
19
20
  *
20
21
  * @event change - Fires when the value of the input changes
21
22
  * @event invalid - Fires when the input is invalid
@@ -26,6 +27,7 @@ interface SkfTextAreaProps extends Omit<FormFieldBaseProps, 'type'> {
26
27
  */
27
28
  export declare class SkfTextArea extends FormBase implements SkfTextAreaProps {
28
29
  static styles: CSSResultGroup;
30
+ /** @internal */
29
31
  private customError;
30
32
  /** If defined, sets the cols of the textarea */
31
33
  cols?: number;
@@ -33,9 +35,9 @@ export declare class SkfTextArea extends FormBase implements SkfTextAreaProps {
33
35
  set customInvalid(value: string | undefined);
34
36
  get customInvalid(): string | undefined;
35
37
  /** If true, outputs helping hints in console */
36
- debug?: boolean;
38
+ debug: boolean;
37
39
  /** If true, hides the label visually */
38
- hideLabel?: boolean;
40
+ hideLabel: boolean;
39
41
  /** If defined, displays informational text below the field */
40
42
  hint?: string;
41
43
  /** If defined, sets the input's label unless the default slot is used. Alternatively, you can use the `label` attribute. */
@@ -49,18 +51,15 @@ export declare class SkfTextArea extends FormBase implements SkfTextAreaProps {
49
51
  /** If defined, displays placeholder text */
50
52
  placeholder?: string;
51
53
  /** If true, makes the element not mutable, meaning the user can not edit the control */
52
- readonly?: boolean;
54
+ readonly: boolean;
53
55
  /** If defined, renders an alternative A11y text for the asterisk */
54
56
  requiredLabel?: string;
55
57
  /** If defined, sets the rows of the textarea */
56
58
  rows?: number;
57
- /**
58
- * If defined, displays provided severity state
59
- * @type {"success" | "info" | "warning" | "alert"}
60
- */
61
- severity?: SkfTextAreaProps['severity'];
59
+ /** If defined, displays provided severity state */
60
+ severity?: FormFieldSeverity;
62
61
  /** If true, displays valid state after interaction */
63
- showValid?: boolean;
62
+ showValid: boolean;
64
63
  /** Size of the Textarea */
65
64
  size?: 'sm' | 'md';
66
65
  /** Sets validation start */
@@ -1,27 +1,29 @@
1
+ import "../icon/icon.js";
1
2
  import { FormBase as m } from "../../internal/components/formBase.js";
2
3
  import "../../internal/components/hint/hint.js";
3
- import { Asterisk as c } from "../../internal/templates/asterisk.js";
4
- import y from "../../styles/component.styles.js";
5
- import { html as p, nothing as v } from "lit";
6
- import { property as r, state as b, query as f } from "lit/decorators.js";
7
- import { ifDefined as n } from "lit/directives/if-defined.js";
8
- import g from "./textarea.styles.js";
9
- var $ = Object.defineProperty, E = Object.getOwnPropertyDescriptor, e = (h, t, s, a) => {
10
- for (var l = a > 1 ? void 0 : a ? E(t, s) : t, o = h.length - 1, d; o >= 0; o--)
11
- (d = h[o]) && (l = (a ? d(t, s, l) : d(l)) || l);
12
- return a && l && $(t, s, l), l;
4
+ import { hintSeverity as c } from "../../internal/helpers/hintSeverity.js";
5
+ import { Asterisk as y } from "../../internal/templates/asterisk.js";
6
+ import { componentStyles as f } from "../../styles/component.styles.js";
7
+ import { nothing as u, html as v } from "lit";
8
+ import { property as r, state as b, query as g } from "lit/decorators.js";
9
+ import { ifDefined as o } from "lit/directives/if-defined.js";
10
+ import $ from "./textarea.styles.js";
11
+ var E = Object.defineProperty, _ = Object.getOwnPropertyDescriptor, e = (p, i, s, a) => {
12
+ for (var l = a > 1 ? void 0 : a ? _(i, s) : i, n = p.length - 1, h; n >= 0; n--)
13
+ (h = p[n]) && (l = (a ? h(i, s, l) : h(l)) || l);
14
+ return a && l && E(i, s, l), l;
13
15
  };
14
- const u = class u extends m {
16
+ const d = class d extends m {
15
17
  constructor() {
16
- super(...arguments), this.size = "md", this.validateOn = "change", this.value = "", this.invalid = !1, this._resetValue = (t) => {
18
+ super(...arguments), this.debug = !1, this.hideLabel = !1, this.readonly = !1, this.showValid = !1, this.size = "md", this.validateOn = "change", this.value = "", this.invalid = !1, this._resetValue = (i) => {
17
19
  var s;
18
- t.stopPropagation(), this.value = ((s = this.getAttribute("value")) == null ? void 0 : s.trim()) ?? "", this._internals.setFormValue(this.value), this.$input.focus();
20
+ i.stopPropagation(), this.value = ((s = this.getAttribute("value")) == null ? void 0 : s.trim()) ?? "", this._internals.setFormValue(this.value), this.$input.focus();
19
21
  }, this._handleInput = () => {
20
22
  this.value = this.$input.value || "", this.validateOn === "input" && (this.pristine = !1, this.validateInput());
21
23
  };
22
24
  }
23
- set customInvalid(t) {
24
- this.customError = t || "";
25
+ set customInvalid(i) {
26
+ this.customError = i ?? "";
25
27
  }
26
28
  get customInvalid() {
27
29
  return this.customError;
@@ -29,12 +31,12 @@ const u = class u extends m {
29
31
  firstUpdated() {
30
32
  this.$input.addEventListener("change", () => {
31
33
  this.validateOn === "change" && (this.validateOn = "input", this.pristine = !1), this._internals.setFormValue(this.$input.value || ""), this.emitEvent("change"), this.validateInput();
32
- }), this.addEventListener("invalid", (t) => {
33
- this.pristine = !1, this.invalid = !0, this.customErrorDisplay && t.preventDefault();
34
+ }), this.addEventListener("invalid", (i) => {
35
+ this.pristine = !1, this.invalid = !0, this.customErrorDisplay && i.preventDefault();
34
36
  }), this.addEventListener("reset", this._resetValue), this.validateInput();
35
37
  }
36
- willUpdate(t) {
37
- if (t.has("invalid"))
38
+ willUpdate(i) {
39
+ if (i.has("invalid"))
38
40
  if (this.invalid) {
39
41
  this.setAttribute("invalid", ""), this.showValid || this.removeAttribute("valid");
40
42
  const s = this._internals.validationMessage;
@@ -42,11 +44,11 @@ const u = class u extends m {
42
44
  } else
43
45
  this.removeAttribute("invalid"), !this.pristine && this.showValid && this.setAttribute("valid", "true"), this.hint = this.getAttribute("hint") ?? "";
44
46
  }
45
- attributeChangedCallback(t, s, a) {
46
- if (super.attributeChangedCallback(t, s, a), t === "value" && this._internals.setFormValue(a), t === "custom-invalid")
47
+ attributeChangedCallback(i, s, a) {
48
+ if (super.attributeChangedCallback(i, s, a), i === "value" && this._internals.setFormValue(a), i === "custom-invalid")
47
49
  if (typeof a == "string") {
48
- const o = this.withFallback(a);
49
- this.pristine = !1, this._internals.setValidity({ customError: !0 }, o), this.invalid = !0, this.hint = o, this.checkValidity();
50
+ const n = this.withFallback(a);
51
+ this.pristine = !1, this._internals.setValidity({ customError: !0 }, n), this.invalid = !0, this.hint = n, this.checkValidity();
50
52
  } else
51
53
  this._internals.setValidity({}), this.validateInput();
52
54
  }
@@ -65,22 +67,22 @@ const u = class u extends m {
65
67
  `Add custom message on ${this.localName} using attribute: ${l.toUpperCase()}="Your custom message"`
66
68
  ), s[a]) {
67
69
  this.validationError = a.toString();
68
- const o = this.hasAttribute(l) ? this.getAttribute(l) : this.$input.validationMessage;
70
+ const n = this.hasAttribute(l) ? this.getAttribute(l) : this.$input.validationMessage;
69
71
  this._internals.setValidity(
70
72
  { [this.validationError]: !0, customError: this._internals.validity.customError },
71
- this.withFallback(o)
73
+ this.withFallback(n)
72
74
  ), this.invalid && this.customErrorDisplay && this.checkValidity();
73
75
  }
74
76
  }
75
77
  }
76
78
  }
77
79
  render() {
78
- var t, s;
79
- return p`
80
+ var i, s;
81
+ return v`
80
82
  <div id="root">
81
83
  <label>
82
84
  <div class=${this.hideLabel ? "visually-hidden" : ""} id="label">
83
- <slot>${this.label}</slot> ${this.required ? c(this.requiredLabel) : null}
85
+ <slot>${this.label}</slot> ${this.required ? y(this.requiredLabel) : null}
84
86
  </div>
85
87
  <div id="input">
86
88
  <textarea
@@ -89,97 +91,94 @@ const u = class u extends m {
89
91
  ?required=${this.required}
90
92
  .value=${this.value}
91
93
  @input=${this._handleInput}
92
- aria-describedby=${n((t = this.hint) != null && t.trim() ? "hint" : v)}
93
- aria-errormessage=${n((s = this.hint) != null && s.trim() ? "hint" : v)}
94
+ aria-describedby=${o((i = this.hint) != null && i.trim() ? "hint" : u)}
95
+ aria-errormessage=${o((s = this.hint) != null && s.trim() ? "hint" : u)}
94
96
  aria-invalid=${!!this.invalid}
95
- cols=${n(this.cols)}
96
- maxlength=${n(this.maxLength)}
97
- minlength=${n(this.minLength)}
98
- name=${n(this.name)}
99
- placeholder=${n(this.placeholder)}
100
- rows=${n(this.rows)}
97
+ cols=${o(this.cols)}
98
+ maxlength=${o(this.maxLength)}
99
+ minlength=${o(this.minLength)}
100
+ name=${o(this.name)}
101
+ placeholder=${o(this.placeholder)}
102
+ rows=${o(this.rows)}
101
103
  >
102
104
  </textarea>
103
105
  </div>
104
106
  </label>
105
- ${this.hint && p`
107
+ ${this.hint && v`
106
108
  <skf-hint
107
109
  aria-live=${this.invalid ? "assertive" : "polite"}
108
110
  id="hint"
109
- severity=${n(_(this.severity, this.invalid))}
111
+ severity=${o(c(this.invalid, this.severity))}
110
112
  >
111
- ${this.customInvalid ? this.customInvalid : this.hint}
113
+ ${this.customInvalid ?? this.hint}
112
114
  </skf-hint>
113
115
  `}
114
116
  </div>
115
117
  `;
116
118
  }
117
119
  };
118
- u.styles = [y, g];
119
- let i = u;
120
+ d.styles = [f, $];
121
+ let t = d;
120
122
  e([
121
123
  r({ type: Number })
122
- ], i.prototype, "cols", 2);
124
+ ], t.prototype, "cols", 2);
123
125
  e([
124
126
  r({ attribute: "custom-invalid", reflect: !0 })
125
- ], i.prototype, "customInvalid", 1);
127
+ ], t.prototype, "customInvalid", 1);
126
128
  e([
127
129
  r({ type: Boolean })
128
- ], i.prototype, "debug", 2);
130
+ ], t.prototype, "debug", 2);
129
131
  e([
130
132
  r({ type: Boolean, attribute: "hide-label" })
131
- ], i.prototype, "hideLabel", 2);
133
+ ], t.prototype, "hideLabel", 2);
132
134
  e([
133
135
  r()
134
- ], i.prototype, "hint", 2);
136
+ ], t.prototype, "hint", 2);
135
137
  e([
136
138
  r()
137
- ], i.prototype, "label", 2);
139
+ ], t.prototype, "label", 2);
138
140
  e([
139
141
  r()
140
- ], i.prototype, "name", 2);
142
+ ], t.prototype, "name", 2);
141
143
  e([
142
144
  r({ type: Number, attribute: "maxlength" })
143
- ], i.prototype, "maxLength", 2);
145
+ ], t.prototype, "maxLength", 2);
144
146
  e([
145
147
  r({ type: Number, attribute: "minlength" })
146
- ], i.prototype, "minLength", 2);
148
+ ], t.prototype, "minLength", 2);
147
149
  e([
148
150
  r()
149
- ], i.prototype, "placeholder", 2);
151
+ ], t.prototype, "placeholder", 2);
150
152
  e([
151
153
  r({ type: Boolean })
152
- ], i.prototype, "readonly", 2);
154
+ ], t.prototype, "readonly", 2);
153
155
  e([
154
156
  r({ attribute: "required-label" })
155
- ], i.prototype, "requiredLabel", 2);
157
+ ], t.prototype, "requiredLabel", 2);
156
158
  e([
157
159
  r({ type: Number })
158
- ], i.prototype, "rows", 2);
160
+ ], t.prototype, "rows", 2);
159
161
  e([
160
162
  r()
161
- ], i.prototype, "severity", 2);
163
+ ], t.prototype, "severity", 2);
162
164
  e([
163
165
  r({ type: Boolean, attribute: "show-valid" })
164
- ], i.prototype, "showValid", 2);
166
+ ], t.prototype, "showValid", 2);
165
167
  e([
166
168
  r({ reflect: !0 })
167
- ], i.prototype, "size", 2);
169
+ ], t.prototype, "size", 2);
168
170
  e([
169
- r({ type: String, attribute: "validate-on" })
170
- ], i.prototype, "validateOn", 2);
171
+ r({ attribute: "validate-on" })
172
+ ], t.prototype, "validateOn", 2);
171
173
  e([
172
174
  r()
173
- ], i.prototype, "value", 2);
175
+ ], t.prototype, "value", 2);
174
176
  e([
175
177
  b()
176
- ], i.prototype, "invalid", 2);
178
+ ], t.prototype, "invalid", 2);
177
179
  e([
178
- f("textarea")
179
- ], i.prototype, "$input", 2);
180
- function _(h, t) {
181
- return t ? "error" : h;
182
- }
180
+ g("textarea")
181
+ ], t.prototype, "$input", 2);
183
182
  export {
184
- i as SkfTextArea
183
+ t as SkfTextArea
185
184
  };
@@ -1,18 +1,18 @@
1
- import { SkfAlert as l } from "../alert/alert.component.js";
2
- import { MOTION_DURATIONS as h } from "@skf-design-system/ui-assets";
3
- import { property as u } from "lit/decorators.js";
4
- import p from "./toast-item.styles.js";
5
- var d = Object.defineProperty, f = (a, t, e, m) => {
1
+ import { SkfAlert as h } from "../alert/alert.component.js";
2
+ import { MOTION_DURATIONS as m } from "@skf-design-system/ui-assets";
3
+ import { property as p } from "lit/decorators.js";
4
+ import u from "./toast-item.styles.js";
5
+ var d = Object.defineProperty, f = (a, t, e, l) => {
6
6
  for (var i = void 0, r = a.length - 1, o; r >= 0; r--)
7
7
  (o = a[r]) && (i = o(t, e, i) || i);
8
8
  return i && d(t, e, i), i;
9
9
  };
10
- const n = class n extends l {
10
+ const n = class n extends h {
11
11
  constructor() {
12
12
  super(), this.timer = 0, this._handleMouseEnter = () => {
13
- this._closeableInitialState || (this.closeable = !0, this._timeleft = this.timer * 1e3 - (Date.now() - this._timeoutStarted), this._currentTimeoutId && clearTimeout(this._currentTimeoutId));
13
+ this._closeableInitialState || (this.persistent = !0, this._timeleft = this.timer * 1e3 - (Date.now() - this._timeoutStarted), this._currentTimeoutId && clearTimeout(this._currentTimeoutId));
14
14
  }, this._handleMouseLeave = () => {
15
- this._closeableInitialState || (this.closeable = this._closeableInitialState, this._currentTimeoutId = setTimeout(this._removeToast, this._timeleft));
15
+ this._closeableInitialState || (this.persistent = this._closeableInitialState, this._currentTimeoutId = setTimeout(this._removeToast, this._timeleft));
16
16
  }, this._removeToast = () => {
17
17
  const e = this.parentAnimationDiv.animate(
18
18
  [
@@ -20,17 +20,17 @@ const n = class n extends l {
20
20
  { gridTemplateRows: "0fr", opacity: 0 }
21
21
  ],
22
22
  {
23
- duration: h.normal,
23
+ duration: m.normal,
24
24
  fill: "forwards"
25
25
  }
26
26
  );
27
27
  e.onfinish = () => {
28
28
  this.originEl && this.originEl.remove(), this.parentAnimationDiv.remove();
29
29
  };
30
- }, this.originEl = null, this._parentAnimationDiv = this.parentElement, this._currentTimeoutId = null, this._timeleft = 0, this._timeoutStarted = 0, this._closeableInitialState = !!this.closeable;
30
+ }, this.originEl = null, this._parentAnimationDiv = this.parentElement, this._currentTimeoutId = null, this._timeleft = 0, this._timeoutStarted = 0, this._closeableInitialState = !!this.persistent;
31
31
  }
32
32
  firstUpdated() {
33
- this.addEventListener("skf-alert-close", this._removeToast), this.closeable || (this.addEventListener("mouseenter", this._handleMouseEnter), this.addEventListener("mouseout", this._handleMouseLeave)), this._animateIn();
33
+ this.addEventListener("skf-alert-close", this._removeToast), this.persistent || (this.addEventListener("mouseenter", this._handleMouseEnter), this.addEventListener("mouseout", this._handleMouseLeave)), this._animateIn();
34
34
  }
35
35
  _animateIn() {
36
36
  const t = this.parentAnimationDiv;
@@ -41,12 +41,12 @@ const n = class n extends l {
41
41
  { gridTemplateRows: "1fr", opacity: 1 }
42
42
  ],
43
43
  {
44
- duration: h.slow,
44
+ duration: m.slow,
45
45
  fill: "forwards"
46
46
  }
47
47
  );
48
48
  e.onfinish = () => {
49
- this.timer > 0 && !this.closeable && (this._timeoutStarted = Date.now(), this._currentTimeoutId = setTimeout(this._removeToast, this.timer * 1e3));
49
+ this.timer > 0 && !this.persistent && (this._timeoutStarted = Date.now(), this._currentTimeoutId = setTimeout(this._removeToast, this.timer * 1e3));
50
50
  };
51
51
  }
52
52
  get parentAnimationDiv() {
@@ -55,10 +55,10 @@ const n = class n extends l {
55
55
  return t;
56
56
  }
57
57
  };
58
- n.styles = [l.styles, p];
58
+ n.styles = [h.styles, u];
59
59
  let s = n;
60
60
  f([
61
- u({ type: Number, reflect: !0 })
61
+ p({ type: Number, reflect: !0 })
62
62
  ], s.prototype, "timer");
63
63
  export {
64
64
  s as SkfToastItem
@@ -1,4 +1,6 @@
1
1
  import { SkfToastItem } from './toast-item.component.js';
2
+ export * from './toast-item.component';
3
+ export default SkfToastItem;
2
4
  declare global {
3
5
  interface HTMLElementTagNameMap {
4
6
  'skf-toast-item': SkfToastItem;
@@ -1,2 +1,6 @@
1
1
  import { SkfToastItem as t } from "./toast-item.component.js";
2
2
  t.define("skf-toast-item");
3
+ export {
4
+ t as SkfToastItem,
5
+ t as default
6
+ };
@@ -0,0 +1,18 @@
1
+ import { css as o } from "lit";
2
+ const a = o`
3
+ @layer components {
4
+ :host {
5
+ overflow: hidden; /* Enable mask transition */
6
+ padding-block-end: 3px; /* Make room for box-shadow */
7
+ }
8
+
9
+ .toast-item {
10
+ background-color: var(--skf-bg-color-neutral-1);
11
+ border-inline-start: var(--skf-size-8) solid
12
+ var(--_skf-alert-border-color, var(--skf-border-color-primary));
13
+ }
14
+ }
15
+ `;
16
+ export {
17
+ a as default
18
+ };
@@ -1,5 +1,5 @@
1
1
  import { SkfElement as h } from "../../internal/components/skf-element.js";
2
- import d from "../../styles/component.styles.js";
2
+ import { componentStyles as d } from "../../styles/component.styles.js";
3
3
  import { html as m } from "lit";
4
4
  import { property as p, queryAssignedElements as a } from "lit/decorators.js";
5
5
  import { styles as u } from "./toast-wrapper.styles.js";
@@ -0,0 +1 @@
1
+ export declare const styles: import("lit").CSSResult;
@@ -1,4 +1,5 @@
1
1
  import { SkfElement } from '../../internal/components/skf-element';
2
+ import type { Icon, Severity } from '../../internal/types.js';
2
3
  import { type CSSResultGroup } from 'lit';
3
4
  /**
4
5
  * SkfToast is the only component a user (developer) interacts with to create a toast notification. Once rendered it will invoke a singleton instance to manage the toast notifications.
@@ -7,7 +8,7 @@ import { type CSSResultGroup } from 'lit';
7
8
  * Once the queue in the singleton is empty, the SkfToastWrapper will be removed from the DOM.
8
9
  */
9
10
  /**
10
- * 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.
11
+ * 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.
11
12
  *
12
13
  * @documentation See [zeroheight](https://zeroheight.com/853e936c9/p/98e432-toast) for design principles
13
14
  *
@@ -17,12 +18,15 @@ import { type CSSResultGroup } from 'lit';
17
18
  */
18
19
  export declare class SkfToast extends SkfElement {
19
20
  static styles: CSSResultGroup;
21
+ /** @internal */
20
22
  private _singleton?;
21
- /** If provided, adds a close button to the toast and will not disapear until user actively dismisses it. */
22
- closeable: boolean;
23
23
  debug: boolean;
24
- /** Severity of the toast. */
25
- severity: 'info' | 'success' | 'warning' | 'error';
24
+ /** If defined, displays leading icon */
25
+ icon?: Icon;
26
+ /** If true, renders with an close button and sets aria-role to `status` */
27
+ persistent: boolean;
28
+ /** If defined, gives the supplied appearance */
29
+ severity: Severity;
26
30
  /** Time in seconds before the toast disappears. */
27
31
  timer: number;
28
32
  /** offsets where toasts emerge vertically */