@scania/tegel 0.0.2 → 0.0.31

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 (761) hide show
  1. package/dist/cjs/{index-b98965c7.js → index-18eb94f0.js} +267 -4
  2. package/dist/cjs/index-18eb94f0.js.map +1 -0
  3. package/dist/cjs/index.cjs.js +2 -0
  4. package/dist/cjs/index.cjs.js.map +1 -0
  5. package/dist/cjs/loader.cjs.js +6 -3
  6. package/dist/cjs/loader.cjs.js.map +1 -0
  7. package/dist/cjs/popper-11d5f714.js +2 -0
  8. package/dist/cjs/popper-11d5f714.js.map +1 -0
  9. package/dist/cjs/sdds-accordion-item.cjs.entry.js +25 -23
  10. package/dist/cjs/sdds-accordion-item.cjs.entry.js.map +1 -0
  11. package/dist/cjs/sdds-accordion.cjs.entry.js +13 -11
  12. package/dist/cjs/sdds-accordion.cjs.entry.js.map +1 -0
  13. package/dist/cjs/sdds-badges.cjs.entry.js +46 -44
  14. package/dist/cjs/sdds-badges.cjs.entry.js.map +1 -0
  15. package/dist/cjs/sdds-banner.cjs.entry.js +71 -69
  16. package/dist/cjs/sdds-banner.cjs.entry.js.map +1 -0
  17. package/dist/cjs/sdds-block.cjs.entry.js +24 -22
  18. package/dist/cjs/sdds-block.cjs.entry.js.map +1 -0
  19. package/dist/cjs/sdds-body-cell_2.cjs.entry.js +160 -158
  20. package/dist/cjs/sdds-body-cell_2.cjs.entry.js.map +1 -0
  21. package/dist/cjs/sdds-breadcrumb-item.cjs.entry.js +16 -14
  22. package/dist/cjs/sdds-breadcrumb-item.cjs.entry.js.map +1 -0
  23. package/dist/cjs/sdds-breadcrumb.cjs.entry.js +15 -13
  24. package/dist/cjs/sdds-breadcrumb.cjs.entry.js.map +1 -0
  25. package/dist/cjs/sdds-button.cjs.entry.js +25 -23
  26. package/dist/cjs/sdds-button.cjs.entry.js.map +1 -0
  27. package/dist/cjs/sdds-card.cjs.entry.js +40 -38
  28. package/dist/cjs/sdds-card.cjs.entry.js.map +1 -0
  29. package/dist/cjs/sdds-checkbox.cjs.entry.js +47 -45
  30. package/dist/cjs/sdds-checkbox.cjs.entry.js.map +1 -0
  31. package/dist/cjs/sdds-datetime.cjs.entry.js +78 -76
  32. package/dist/cjs/sdds-datetime.cjs.entry.js.map +1 -0
  33. package/dist/cjs/sdds-dropdown-filter.cjs.entry.js +84 -82
  34. package/dist/cjs/sdds-dropdown-filter.cjs.entry.js.map +1 -0
  35. package/dist/cjs/sdds-dropdown_2.cjs.entry.js +318 -316
  36. package/dist/cjs/sdds-dropdown_2.cjs.entry.js.map +1 -0
  37. package/dist/cjs/sdds-header-cell.cjs.entry.js +131 -129
  38. package/dist/cjs/sdds-header-cell.cjs.entry.js.map +1 -0
  39. package/dist/cjs/sdds-icon.cjs.entry.js +32 -30
  40. package/dist/cjs/sdds-icon.cjs.entry.js.map +1 -0
  41. package/dist/cjs/sdds-inline-tab.cjs.entry.js +14 -12
  42. package/dist/cjs/sdds-inline-tab.cjs.entry.js.map +1 -0
  43. package/dist/cjs/sdds-inline-tabs-fullbleed.cjs.entry.js +90 -88
  44. package/dist/cjs/sdds-inline-tabs-fullbleed.cjs.entry.js.map +1 -0
  45. package/dist/cjs/sdds-inline-tabs.cjs.entry.js +213 -211
  46. package/dist/cjs/sdds-inline-tabs.cjs.entry.js.map +1 -0
  47. package/dist/cjs/sdds-link.cjs.entry.js +16 -14
  48. package/dist/cjs/sdds-link.cjs.entry.js.map +1 -0
  49. package/dist/cjs/sdds-message.cjs.entry.js +30 -28
  50. package/dist/cjs/sdds-message.cjs.entry.js.map +1 -0
  51. package/dist/cjs/sdds-modal.cjs.entry.js +43 -41
  52. package/dist/cjs/sdds-modal.cjs.entry.js.map +1 -0
  53. package/dist/cjs/sdds-navigation-tabs.cjs.entry.js +90 -88
  54. package/dist/cjs/sdds-navigation-tabs.cjs.entry.js.map +1 -0
  55. package/dist/cjs/sdds-popover-canvas.cjs.entry.js +75 -73
  56. package/dist/cjs/sdds-popover-canvas.cjs.entry.js.map +1 -0
  57. package/dist/cjs/sdds-popover-menu.cjs.entry.js +76 -74
  58. package/dist/cjs/sdds-popover-menu.cjs.entry.js.map +1 -0
  59. package/dist/cjs/sdds-radio-button.cjs.entry.js +24 -22
  60. package/dist/cjs/sdds-radio-button.cjs.entry.js.map +1 -0
  61. package/dist/cjs/sdds-slider.cjs.entry.js +349 -347
  62. package/dist/cjs/sdds-slider.cjs.entry.js.map +1 -0
  63. package/dist/cjs/sdds-spinner.cjs.entry.js +13 -11
  64. package/dist/cjs/sdds-spinner.cjs.entry.js.map +1 -0
  65. package/dist/cjs/sdds-table-body-row-expandable.cjs.entry.js +74 -72
  66. package/dist/cjs/sdds-table-body-row-expandable.cjs.entry.js.map +1 -0
  67. package/dist/cjs/sdds-table-body.cjs.entry.js +236 -234
  68. package/dist/cjs/sdds-table-body.cjs.entry.js.map +1 -0
  69. package/dist/cjs/sdds-table-footer.cjs.entry.js +156 -154
  70. package/dist/cjs/sdds-table-footer.cjs.entry.js.map +1 -0
  71. package/dist/cjs/sdds-table-header.cjs.entry.js +91 -89
  72. package/dist/cjs/sdds-table-header.cjs.entry.js.map +1 -0
  73. package/dist/cjs/sdds-table-toolbar.cjs.entry.js +57 -55
  74. package/dist/cjs/sdds-table-toolbar.cjs.entry.js.map +1 -0
  75. package/dist/cjs/sdds-table.cjs.entry.js +60 -58
  76. package/dist/cjs/sdds-table.cjs.entry.js.map +1 -0
  77. package/dist/cjs/sdds-textarea.cjs.entry.js +57 -55
  78. package/dist/cjs/sdds-textarea.cjs.entry.js.map +1 -0
  79. package/dist/cjs/sdds-textfield.cjs.entry.js +72 -70
  80. package/dist/cjs/sdds-textfield.cjs.entry.js.map +1 -0
  81. package/dist/cjs/sdds-toast.cjs.entry.js +74 -72
  82. package/dist/cjs/sdds-toast.cjs.entry.js.map +1 -0
  83. package/dist/cjs/sdds-toggle.cjs.entry.js +36 -34
  84. package/dist/cjs/sdds-toggle.cjs.entry.js.map +1 -0
  85. package/dist/cjs/sdds-tooltip.cjs.entry.js +95 -93
  86. package/dist/cjs/sdds-tooltip.cjs.entry.js.map +1 -0
  87. package/dist/cjs/tegel.cjs.js +12 -3
  88. package/dist/cjs/tegel.cjs.js.map +1 -0
  89. package/dist/collection/collection-manifest.json +2 -2
  90. package/dist/collection/components/accordion/accordion-item/accordion-item.js +146 -145
  91. package/dist/collection/components/accordion/accordion-item/accordion-item.js.map +1 -0
  92. package/dist/collection/components/accordion/accordion.js +63 -62
  93. package/dist/collection/components/accordion/accordion.js.map +1 -0
  94. package/dist/collection/components/accordion/accordion.stories.js +89 -79
  95. package/dist/collection/components/accordion/accordion.stories.js.map +1 -0
  96. package/dist/collection/components/badge/badge.stories.js +68 -67
  97. package/dist/collection/components/badge/badge.stories.js.map +1 -0
  98. package/dist/collection/components/badge/badges.js +148 -147
  99. package/dist/collection/components/badge/badges.js.map +1 -0
  100. package/dist/collection/components/banner/banner.stories.js +79 -78
  101. package/dist/collection/components/banner/banner.stories.js.map +1 -0
  102. package/dist/collection/components/banner/sdds-banner.js +331 -330
  103. package/dist/collection/components/banner/sdds-banner.js.map +1 -0
  104. package/dist/collection/components/banner/sdds-banner.stories.js +110 -109
  105. package/dist/collection/components/banner/sdds-banner.stories.js.map +1 -0
  106. package/dist/collection/components/block/block-native.stories.js +40 -39
  107. package/dist/collection/components/block/block-native.stories.js.map +1 -0
  108. package/dist/collection/components/block/sdds-block.js +56 -55
  109. package/dist/collection/components/block/sdds-block.js.map +1 -0
  110. package/dist/collection/components/block/sdds-block.stories.js +40 -39
  111. package/dist/collection/components/block/sdds-block.stories.js.map +1 -0
  112. package/dist/collection/components/breadcrumb/breadcrumb-item/breadcrumb-item.js +83 -82
  113. package/dist/collection/components/breadcrumb/breadcrumb-item/breadcrumb-item.js.map +1 -0
  114. package/dist/collection/components/breadcrumb/breadcrumb.js +23 -22
  115. package/dist/collection/components/breadcrumb/breadcrumb.js.map +1 -0
  116. package/dist/collection/components/breadcrumb/breadcrumb.stories.js +21 -20
  117. package/dist/collection/components/breadcrumb/breadcrumb.stories.js.map +1 -0
  118. package/dist/collection/components/button/button-component.js +152 -151
  119. package/dist/collection/components/button/button-component.js.map +1 -0
  120. package/dist/collection/components/button/button-native.stories.js +168 -167
  121. package/dist/collection/components/button/button-native.stories.js.map +1 -0
  122. package/dist/collection/components/button/button-webcomponent.stories.js +168 -167
  123. package/dist/collection/components/button/button-webcomponent.stories.js.map +1 -0
  124. package/dist/collection/components/card/card.stories.js +140 -139
  125. package/dist/collection/components/card/card.stories.js.map +1 -0
  126. package/dist/collection/components/card/sdds-card.js +269 -268
  127. package/dist/collection/components/card/sdds-card.js.map +1 -0
  128. package/dist/collection/components/card/sdds-card.stories.js +138 -137
  129. package/dist/collection/components/card/sdds-card.stories.js.map +1 -0
  130. package/dist/collection/components/checkbox/checkbox.stories.js +50 -49
  131. package/dist/collection/components/checkbox/checkbox.stories.js.map +1 -0
  132. package/dist/collection/components/checkbox/sdds-checkbox.js +240 -239
  133. package/dist/collection/components/checkbox/sdds-checkbox.js.map +1 -0
  134. package/dist/collection/components/checkbox/sdds-checkbox.stories.js +50 -49
  135. package/dist/collection/components/checkbox/sdds-checkbox.stories.js.map +1 -0
  136. package/dist/collection/components/chips/chips.stories.js +94 -93
  137. package/dist/collection/components/chips/chips.stories.js.map +1 -0
  138. package/dist/collection/components/data-table/native-table.stories.js +125 -124
  139. package/dist/collection/components/data-table/native-table.stories.js.map +1 -0
  140. package/dist/collection/components/data-table/table/table.js +254 -252
  141. package/dist/collection/components/data-table/table/table.js.map +1 -0
  142. package/dist/collection/components/data-table/table-body/table-body.js +426 -425
  143. package/dist/collection/components/data-table/table-body/table-body.js.map +1 -0
  144. package/dist/collection/components/data-table/table-body-cell/table-body-cell.js +169 -168
  145. package/dist/collection/components/data-table/table-body-cell/table-body-cell.js.map +1 -0
  146. package/dist/collection/components/data-table/table-body-row/table-body-row.js +166 -165
  147. package/dist/collection/components/data-table/table-body-row/table-body-row.js.map +1 -0
  148. package/dist/collection/components/data-table/table-body-row-expandable/table-body-row-expandable.js +157 -156
  149. package/dist/collection/components/data-table/table-body-row-expandable/table-body-row-expandable.js.map +1 -0
  150. package/dist/collection/components/data-table/table-component-basic.stories.js +111 -110
  151. package/dist/collection/components/data-table/table-component-basic.stories.js.map +1 -0
  152. package/dist/collection/components/data-table/table-component-batch-actions.stories.js +109 -108
  153. package/dist/collection/components/data-table/table-component-batch-actions.stories.js.map +1 -0
  154. package/dist/collection/components/data-table/table-component-bodydata.stories.js +50 -49
  155. package/dist/collection/components/data-table/table-component-bodydata.stories.js.map +1 -0
  156. package/dist/collection/components/data-table/table-component-custom-width.stories.js +146 -145
  157. package/dist/collection/components/data-table/table-component-custom-width.stories.js.map +1 -0
  158. package/dist/collection/components/data-table/table-component-event-listeners.stories.js +98 -97
  159. package/dist/collection/components/data-table/table-component-event-listeners.stories.js.map +1 -0
  160. package/dist/collection/components/data-table/table-component-expandable-rows.stories.js +98 -97
  161. package/dist/collection/components/data-table/table-component-expandable-rows.stories.js.map +1 -0
  162. package/dist/collection/components/data-table/table-component-filtering.stories.js +118 -117
  163. package/dist/collection/components/data-table/table-component-filtering.stories.js.map +1 -0
  164. package/dist/collection/components/data-table/table-component-multiselect.stories.js +111 -110
  165. package/dist/collection/components/data-table/table-component-multiselect.stories.js.map +1 -0
  166. package/dist/collection/components/data-table/table-component-pagination.stories.js +111 -110
  167. package/dist/collection/components/data-table/table-component-pagination.stories.js.map +1 -0
  168. package/dist/collection/components/data-table/table-component-sorting.stories.js +110 -109
  169. package/dist/collection/components/data-table/table-component-sorting.stories.js.map +1 -0
  170. package/dist/collection/components/data-table/table-footer/table-footer.js +355 -354
  171. package/dist/collection/components/data-table/table-footer/table-footer.js.map +1 -0
  172. package/dist/collection/components/data-table/table-header/table-header.js +153 -152
  173. package/dist/collection/components/data-table/table-header/table-header.js.map +1 -0
  174. package/dist/collection/components/data-table/table-header-cell/table-header-cell.js +318 -317
  175. package/dist/collection/components/data-table/table-header-cell/table-header-cell.js.map +1 -0
  176. package/dist/collection/components/data-table/table-toolbar/table-toolbar.js +142 -141
  177. package/dist/collection/components/data-table/table-toolbar/table-toolbar.js.map +1 -0
  178. package/dist/collection/components/datetime/datetime.js +344 -343
  179. package/dist/collection/components/datetime/datetime.js.map +1 -0
  180. package/dist/collection/components/datetime/datetime.stories.js +171 -170
  181. package/dist/collection/components/datetime/datetime.stories.js.map +1 -0
  182. package/dist/collection/components/divider/divider.stories.js +94 -93
  183. package/dist/collection/components/divider/divider.stories.js.map +1 -0
  184. package/dist/collection/components/dropdown/dropdown-filter/dropdown-filter.js +340 -339
  185. package/dist/collection/components/dropdown/dropdown-filter/dropdown-filter.js.map +1 -0
  186. package/dist/collection/components/dropdown/dropdown-filter/dropdown-filter.stories.js +94 -93
  187. package/dist/collection/components/dropdown/dropdown-filter/dropdown-filter.stories.js.map +1 -0
  188. package/dist/collection/components/dropdown/dropdown-native.stories.js +69 -68
  189. package/dist/collection/components/dropdown/dropdown-native.stories.js.map +1 -0
  190. package/dist/collection/components/dropdown/dropdown-option/dropdown-option.js +186 -185
  191. package/dist/collection/components/dropdown/dropdown-option/dropdown-option.js.map +1 -0
  192. package/dist/collection/components/dropdown/dropdown-wc-default.stories.js +139 -138
  193. package/dist/collection/components/dropdown/dropdown-wc-default.stories.js.map +1 -0
  194. package/dist/collection/components/dropdown/dropdown-wc-multiselect.stories.js +120 -119
  195. package/dist/collection/components/dropdown/dropdown-wc-multiselect.stories.js.map +1 -0
  196. package/dist/collection/components/dropdown/dropdown.js +568 -567
  197. package/dist/collection/components/dropdown/dropdown.js.map +1 -0
  198. package/dist/collection/components/footer/footer.stories.js +53 -52
  199. package/dist/collection/components/footer/footer.stories.js.map +1 -0
  200. package/dist/collection/components/header/header-all.stories.js +39 -38
  201. package/dist/collection/components/header/header-all.stories.js.map +1 -0
  202. package/dist/collection/components/header/header-default.stories.js +39 -38
  203. package/dist/collection/components/header/header-default.stories.js.map +1 -0
  204. package/dist/collection/components/header/header-inline.stories.js +39 -38
  205. package/dist/collection/components/header/header-inline.stories.js.map +1 -0
  206. package/dist/collection/components/header/header-search.stories.js +39 -38
  207. package/dist/collection/components/header/header-search.stories.js.map +1 -0
  208. package/dist/collection/components/header/header-toolbar.stories.js +39 -38
  209. package/dist/collection/components/header/header-toolbar.stories.js.map +1 -0
  210. package/dist/collection/components/icon/icon-font.stories.js +50 -49
  211. package/dist/collection/components/icon/icon-font.stories.js.map +1 -0
  212. package/dist/collection/components/icon/icon-web-component.stories.js +50 -49
  213. package/dist/collection/components/icon/icon-web-component.stories.js.map +1 -0
  214. package/dist/collection/components/icon/icon.js +90 -89
  215. package/dist/collection/components/icon/icon.js.map +1 -0
  216. package/dist/collection/components/link/link.stories.js +42 -41
  217. package/dist/collection/components/link/link.stories.js.map +1 -0
  218. package/dist/collection/components/link/sdds-link.js +118 -117
  219. package/dist/collection/components/link/sdds-link.js.map +1 -0
  220. package/dist/collection/components/link/sdds-link.stories.js +62 -61
  221. package/dist/collection/components/link/sdds-link.stories.js.map +1 -0
  222. package/dist/collection/components/message/message.stories.js +94 -93
  223. package/dist/collection/components/message/message.stories.js.map +1 -0
  224. package/dist/collection/components/message/sdds-message.js +133 -132
  225. package/dist/collection/components/message/sdds-message.js.map +1 -0
  226. package/dist/collection/components/message/sdds-message.stories.js +89 -88
  227. package/dist/collection/components/message/sdds-message.stories.js.map +1 -0
  228. package/dist/collection/components/modal/modal-native.stories.js +75 -74
  229. package/dist/collection/components/modal/modal-native.stories.js.map +1 -0
  230. package/dist/collection/components/modal/modal-webcomponent.stories.js +69 -68
  231. package/dist/collection/components/modal/modal-webcomponent.stories.js.map +1 -0
  232. package/dist/collection/components/modal/modal.js +149 -148
  233. package/dist/collection/components/modal/modal.js.map +1 -0
  234. package/dist/collection/components/popover-canvas/popover-canvas.js +220 -219
  235. package/dist/collection/components/popover-canvas/popover-canvas.js.map +1 -0
  236. package/dist/collection/components/popover-canvas/popover-canvas.stories.js +56 -55
  237. package/dist/collection/components/popover-canvas/popover-canvas.stories.js.map +1 -0
  238. package/dist/collection/components/popover-menu/popover-menu-icons.stories.js +67 -66
  239. package/dist/collection/components/popover-menu/popover-menu-icons.stories.js.map +1 -0
  240. package/dist/collection/components/popover-menu/popover-menu.js +221 -220
  241. package/dist/collection/components/popover-menu/popover-menu.js.map +1 -0
  242. package/dist/collection/components/popover-menu/popover-menu.stories.js +67 -66
  243. package/dist/collection/components/popover-menu/popover-menu.stories.js.map +1 -0
  244. package/dist/collection/components/radio-button/radio-button-component.stories.js +47 -46
  245. package/dist/collection/components/radio-button/radio-button-component.stories.js.map +1 -0
  246. package/dist/collection/components/radio-button/radio-button.js +161 -160
  247. package/dist/collection/components/radio-button/radio-button.js.map +1 -0
  248. package/dist/collection/components/radio-button/radio-button.stories.js +42 -41
  249. package/dist/collection/components/radio-button/radio-button.stories.js.map +1 -0
  250. package/dist/collection/components/side-menu/side-menu.stories.js +51 -50
  251. package/dist/collection/components/side-menu/side-menu.stories.js.map +1 -0
  252. package/dist/collection/components/slider/slider.js +722 -721
  253. package/dist/collection/components/slider/slider.js.map +1 -0
  254. package/dist/collection/components/slider/slider.stories.js +179 -178
  255. package/dist/collection/components/slider/slider.stories.js.map +1 -0
  256. package/dist/collection/components/spinner/spinner.js +62 -61
  257. package/dist/collection/components/spinner/spinner.js.map +1 -0
  258. package/dist/collection/components/spinner/spinner.stories.js +55 -54
  259. package/dist/collection/components/spinner/spinner.stories.js.map +1 -0
  260. package/dist/collection/components/stepper/stepper.stories.js +96 -95
  261. package/dist/collection/components/stepper/stepper.stories.js.map +1 -0
  262. package/dist/collection/components/tabs/inline-tabs-default/inline-tab/inline-tab.js +81 -80
  263. package/dist/collection/components/tabs/inline-tabs-default/inline-tab/inline-tab.js.map +1 -0
  264. package/dist/collection/components/tabs/inline-tabs-default/inline-tabs.js +313 -312
  265. package/dist/collection/components/tabs/inline-tabs-default/inline-tabs.js.map +1 -0
  266. package/dist/collection/components/tabs/inline-tabs-default/inline-tabs.stories.js +57 -56
  267. package/dist/collection/components/tabs/inline-tabs-default/inline-tabs.stories.js.map +1 -0
  268. package/dist/collection/components/tabs/inline-tabs-fullbleed/inline-tabs-fullbleed.js +129 -128
  269. package/dist/collection/components/tabs/inline-tabs-fullbleed/inline-tabs-fullbleed.js.map +1 -0
  270. package/dist/collection/components/tabs/inline-tabs-fullbleed/inline-tabs-fullbleed.stories.js +39 -38
  271. package/dist/collection/components/tabs/inline-tabs-fullbleed/inline-tabs-fullbleed.stories.js.map +1 -0
  272. package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.js +129 -128
  273. package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.js.map +1 -0
  274. package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.stories.js +25 -24
  275. package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.stories.js.map +1 -0
  276. package/dist/collection/components/textarea/textarea.js +394 -393
  277. package/dist/collection/components/textarea/textarea.js.map +1 -0
  278. package/dist/collection/components/textarea/textarea.stories.js +131 -130
  279. package/dist/collection/components/textarea/textarea.stories.js.map +1 -0
  280. package/dist/collection/components/textfield/textfield.js +429 -428
  281. package/dist/collection/components/textfield/textfield.js.map +1 -0
  282. package/dist/collection/components/textfield/textfield.stories.js +191 -190
  283. package/dist/collection/components/textfield/textfield.stories.js.map +1 -0
  284. package/dist/collection/components/toast/sdds-toast.js +253 -252
  285. package/dist/collection/components/toast/sdds-toast.js.map +1 -0
  286. package/dist/collection/components/toast/sdds-toast.stories.js +70 -69
  287. package/dist/collection/components/toast/sdds-toast.stories.js.map +1 -0
  288. package/dist/collection/components/toast/toast.stories.js +101 -100
  289. package/dist/collection/components/toast/toast.stories.js.map +1 -0
  290. package/dist/collection/components/toggle/sdds-toggle.js +262 -261
  291. package/dist/collection/components/toggle/sdds-toggle.js.map +1 -0
  292. package/dist/collection/components/toggle/sdds-toggle.stories.js +78 -77
  293. package/dist/collection/components/toggle/sdds-toggle.stories.js.map +1 -0
  294. package/dist/collection/components/toggle/toggle.stories.js +66 -65
  295. package/dist/collection/components/toggle/toggle.stories.js.map +1 -0
  296. package/dist/collection/components/tooltip/tooltip.js +230 -229
  297. package/dist/collection/components/tooltip/tooltip.js.map +1 -0
  298. package/dist/collection/components/tooltip/tooltip.stories.js +91 -90
  299. package/dist/collection/components/tooltip/tooltip.stories.js.map +1 -0
  300. package/dist/collection/components/utility/colour/background-color.stories.js +84 -83
  301. package/dist/collection/components/utility/colour/background-color.stories.js.map +1 -0
  302. package/dist/collection/components/utility/colour/text-color.stories.js +84 -83
  303. package/dist/collection/components/utility/colour/text-color.stories.js.map +1 -0
  304. package/dist/collection/foundations-stories/colour/colour-brand.stories.js +15 -14
  305. package/dist/collection/foundations-stories/colour/colour-brand.stories.js.map +1 -0
  306. package/dist/collection/foundations-stories/colour/colour-scales.stories.js +54 -53
  307. package/dist/collection/foundations-stories/colour/colour-scales.stories.js.map +1 -0
  308. package/dist/collection/foundations-stories/colour/colour-semantic.stories.js +15 -14
  309. package/dist/collection/foundations-stories/colour/colour-semantic.stories.js.map +1 -0
  310. package/dist/collection/foundations-stories/grid/grid.stories.js +53 -52
  311. package/dist/collection/foundations-stories/grid/grid.stories.js.map +1 -0
  312. package/dist/collection/foundations-stories/spacing/spacing-element.stories.js +11 -10
  313. package/dist/collection/foundations-stories/spacing/spacing-element.stories.js.map +1 -0
  314. package/dist/collection/foundations-stories/spacing/spacing-layout.stories.js +11 -10
  315. package/dist/collection/foundations-stories/spacing/spacing-layout.stories.js.map +1 -0
  316. package/dist/collection/foundations-stories/typography/typography-body.stories.js +10 -9
  317. package/dist/collection/foundations-stories/typography/typography-body.stories.js.map +1 -0
  318. package/dist/collection/foundations-stories/typography/typography-detail.stories.js +10 -9
  319. package/dist/collection/foundations-stories/typography/typography-detail.stories.js.map +1 -0
  320. package/dist/collection/foundations-stories/typography/typography-headline.stories.js +23 -22
  321. package/dist/collection/foundations-stories/typography/typography-headline.stories.js.map +1 -0
  322. package/dist/collection/foundations-stories/typography/typography-paragraph.stories.js +10 -9
  323. package/dist/collection/foundations-stories/typography/typography-paragraph.stories.js.map +1 -0
  324. package/dist/collection/index.js +2 -1
  325. package/dist/collection/index.js.map +1 -0
  326. package/dist/collection/utils/utils.js +13 -12
  327. package/dist/collection/utils/utils.js.map +1 -0
  328. package/dist/esm/{index-32571711.js → index-96563708.js} +267 -5
  329. package/dist/esm/index-96563708.js.map +1 -0
  330. package/dist/esm/index.js +2 -0
  331. package/dist/esm/index.js.map +1 -0
  332. package/dist/esm/loader.js +6 -3
  333. package/dist/esm/loader.js.map +1 -0
  334. package/dist/esm/polyfills/core-js.js +0 -0
  335. package/dist/esm/polyfills/css-shim.js +1 -1
  336. package/dist/esm/polyfills/dom.js +0 -0
  337. package/dist/esm/polyfills/es5-html-element.js +0 -0
  338. package/dist/esm/polyfills/index.js +0 -0
  339. package/dist/esm/polyfills/system.js +0 -0
  340. package/dist/esm/popper-f860750c.js +2 -0
  341. package/dist/esm/popper-f860750c.js.map +1 -0
  342. package/dist/esm/sdds-accordion-item.entry.js +25 -23
  343. package/dist/esm/sdds-accordion-item.entry.js.map +1 -0
  344. package/dist/esm/sdds-accordion.entry.js +13 -11
  345. package/dist/esm/sdds-accordion.entry.js.map +1 -0
  346. package/dist/esm/sdds-badges.entry.js +46 -44
  347. package/dist/esm/sdds-badges.entry.js.map +1 -0
  348. package/dist/esm/sdds-banner.entry.js +71 -69
  349. package/dist/esm/sdds-banner.entry.js.map +1 -0
  350. package/dist/esm/sdds-block.entry.js +24 -22
  351. package/dist/esm/sdds-block.entry.js.map +1 -0
  352. package/dist/esm/sdds-body-cell_2.entry.js +160 -158
  353. package/dist/esm/sdds-body-cell_2.entry.js.map +1 -0
  354. package/dist/esm/sdds-breadcrumb-item.entry.js +16 -14
  355. package/dist/esm/sdds-breadcrumb-item.entry.js.map +1 -0
  356. package/dist/esm/sdds-breadcrumb.entry.js +15 -13
  357. package/dist/esm/sdds-breadcrumb.entry.js.map +1 -0
  358. package/dist/esm/sdds-button.entry.js +25 -23
  359. package/dist/esm/sdds-button.entry.js.map +1 -0
  360. package/dist/esm/sdds-card.entry.js +40 -38
  361. package/dist/esm/sdds-card.entry.js.map +1 -0
  362. package/dist/esm/sdds-checkbox.entry.js +47 -45
  363. package/dist/esm/sdds-checkbox.entry.js.map +1 -0
  364. package/dist/esm/sdds-datetime.entry.js +78 -76
  365. package/dist/esm/sdds-datetime.entry.js.map +1 -0
  366. package/dist/esm/sdds-dropdown-filter.entry.js +84 -82
  367. package/dist/esm/sdds-dropdown-filter.entry.js.map +1 -0
  368. package/dist/esm/sdds-dropdown_2.entry.js +318 -316
  369. package/dist/esm/sdds-dropdown_2.entry.js.map +1 -0
  370. package/dist/esm/sdds-header-cell.entry.js +131 -129
  371. package/dist/esm/sdds-header-cell.entry.js.map +1 -0
  372. package/dist/esm/sdds-icon.entry.js +32 -30
  373. package/dist/esm/sdds-icon.entry.js.map +1 -0
  374. package/dist/esm/sdds-inline-tab.entry.js +14 -12
  375. package/dist/esm/sdds-inline-tab.entry.js.map +1 -0
  376. package/dist/esm/sdds-inline-tabs-fullbleed.entry.js +90 -88
  377. package/dist/esm/sdds-inline-tabs-fullbleed.entry.js.map +1 -0
  378. package/dist/esm/sdds-inline-tabs.entry.js +213 -211
  379. package/dist/esm/sdds-inline-tabs.entry.js.map +1 -0
  380. package/dist/esm/sdds-link.entry.js +16 -14
  381. package/dist/esm/sdds-link.entry.js.map +1 -0
  382. package/dist/esm/sdds-message.entry.js +30 -28
  383. package/dist/esm/sdds-message.entry.js.map +1 -0
  384. package/dist/esm/sdds-modal.entry.js +43 -41
  385. package/dist/esm/sdds-modal.entry.js.map +1 -0
  386. package/dist/esm/sdds-navigation-tabs.entry.js +90 -88
  387. package/dist/esm/sdds-navigation-tabs.entry.js.map +1 -0
  388. package/dist/esm/sdds-popover-canvas.entry.js +75 -73
  389. package/dist/esm/sdds-popover-canvas.entry.js.map +1 -0
  390. package/dist/esm/sdds-popover-menu.entry.js +76 -74
  391. package/dist/esm/sdds-popover-menu.entry.js.map +1 -0
  392. package/dist/esm/sdds-radio-button.entry.js +24 -22
  393. package/dist/esm/sdds-radio-button.entry.js.map +1 -0
  394. package/dist/esm/sdds-slider.entry.js +349 -347
  395. package/dist/esm/sdds-slider.entry.js.map +1 -0
  396. package/dist/esm/sdds-spinner.entry.js +13 -11
  397. package/dist/esm/sdds-spinner.entry.js.map +1 -0
  398. package/dist/esm/sdds-table-body-row-expandable.entry.js +74 -72
  399. package/dist/esm/sdds-table-body-row-expandable.entry.js.map +1 -0
  400. package/dist/esm/sdds-table-body.entry.js +236 -234
  401. package/dist/esm/sdds-table-body.entry.js.map +1 -0
  402. package/dist/esm/sdds-table-footer.entry.js +156 -154
  403. package/dist/esm/sdds-table-footer.entry.js.map +1 -0
  404. package/dist/esm/sdds-table-header.entry.js +91 -89
  405. package/dist/esm/sdds-table-header.entry.js.map +1 -0
  406. package/dist/esm/sdds-table-toolbar.entry.js +57 -55
  407. package/dist/esm/sdds-table-toolbar.entry.js.map +1 -0
  408. package/dist/esm/sdds-table.entry.js +60 -58
  409. package/dist/esm/sdds-table.entry.js.map +1 -0
  410. package/dist/esm/sdds-textarea.entry.js +57 -55
  411. package/dist/esm/sdds-textarea.entry.js.map +1 -0
  412. package/dist/esm/sdds-textfield.entry.js +72 -70
  413. package/dist/esm/sdds-textfield.entry.js.map +1 -0
  414. package/dist/esm/sdds-toast.entry.js +74 -72
  415. package/dist/esm/sdds-toast.entry.js.map +1 -0
  416. package/dist/esm/sdds-toggle.entry.js +36 -34
  417. package/dist/esm/sdds-toggle.entry.js.map +1 -0
  418. package/dist/esm/sdds-tooltip.entry.js +95 -93
  419. package/dist/esm/sdds-tooltip.entry.js.map +1 -0
  420. package/dist/esm/tegel.js +9 -3
  421. package/dist/esm/tegel.js.map +1 -0
  422. package/dist/tegel/index.esm.js +2 -0
  423. package/dist/tegel/index.esm.js.map +1 -0
  424. package/dist/tegel/p-07c7c2e7.entry.js +2 -0
  425. package/dist/tegel/p-07c7c2e7.entry.js.map +1 -0
  426. package/dist/tegel/p-0953710b.entry.js +2 -0
  427. package/dist/tegel/p-0953710b.entry.js.map +1 -0
  428. package/dist/tegel/p-0b4eba86.js +3 -0
  429. package/dist/tegel/p-0b4eba86.js.map +1 -0
  430. package/dist/tegel/p-1eb8dd92.entry.js +2 -0
  431. package/dist/tegel/p-1eb8dd92.entry.js.map +1 -0
  432. package/dist/tegel/p-25af32a7.entry.js +2 -0
  433. package/dist/tegel/p-25af32a7.entry.js.map +1 -0
  434. package/dist/tegel/p-262dca00.entry.js +2 -0
  435. package/dist/tegel/p-262dca00.entry.js.map +1 -0
  436. package/dist/tegel/p-2fad34c4.entry.js +2 -0
  437. package/dist/tegel/p-2fad34c4.entry.js.map +1 -0
  438. package/dist/tegel/p-336efb27.entry.js +2 -0
  439. package/dist/tegel/p-336efb27.entry.js.map +1 -0
  440. package/dist/tegel/p-33e7f7e5.entry.js +2 -0
  441. package/dist/tegel/p-33e7f7e5.entry.js.map +1 -0
  442. package/dist/tegel/p-458cda76.entry.js +2 -0
  443. package/dist/tegel/p-458cda76.entry.js.map +1 -0
  444. package/dist/tegel/p-46013562.entry.js +2 -0
  445. package/dist/tegel/p-46013562.entry.js.map +1 -0
  446. package/dist/tegel/p-525ec252.entry.js +2 -0
  447. package/dist/tegel/p-525ec252.entry.js.map +1 -0
  448. package/dist/tegel/p-5c390692.entry.js +2 -0
  449. package/dist/tegel/p-5c390692.entry.js.map +1 -0
  450. package/dist/tegel/p-5e50ce81.entry.js +2 -0
  451. package/dist/tegel/p-5e50ce81.entry.js.map +1 -0
  452. package/dist/tegel/p-62ed6fdc.entry.js +2 -0
  453. package/dist/tegel/p-62ed6fdc.entry.js.map +1 -0
  454. package/dist/tegel/p-68fca08c.entry.js +2 -0
  455. package/dist/tegel/p-68fca08c.entry.js.map +1 -0
  456. package/dist/tegel/p-6bdce8c1.entry.js +2 -0
  457. package/dist/tegel/p-6bdce8c1.entry.js.map +1 -0
  458. package/dist/tegel/p-6e54f5a2.entry.js +2 -0
  459. package/dist/tegel/p-6e54f5a2.entry.js.map +1 -0
  460. package/dist/tegel/p-72099402.entry.js +2 -0
  461. package/dist/tegel/p-72099402.entry.js.map +1 -0
  462. package/dist/tegel/p-77a4950d.entry.js +2 -0
  463. package/dist/tegel/p-77a4950d.entry.js.map +1 -0
  464. package/dist/tegel/p-84e5d141.entry.js +2 -0
  465. package/dist/tegel/p-84e5d141.entry.js.map +1 -0
  466. package/dist/tegel/p-913cb5e9.entry.js +2 -0
  467. package/dist/tegel/p-913cb5e9.entry.js.map +1 -0
  468. package/dist/tegel/p-92869ad1.entry.js +2 -0
  469. package/dist/tegel/p-92869ad1.entry.js.map +1 -0
  470. package/dist/tegel/p-93571e36.entry.js +2 -0
  471. package/dist/tegel/p-93571e36.entry.js.map +1 -0
  472. package/dist/tegel/p-9904d7ec.entry.js +2 -0
  473. package/dist/tegel/p-9904d7ec.entry.js.map +1 -0
  474. package/dist/tegel/p-a3741fdd.entry.js +2 -0
  475. package/dist/tegel/p-a3741fdd.entry.js.map +1 -0
  476. package/dist/tegel/p-aff4d273.entry.js +2 -0
  477. package/dist/tegel/p-aff4d273.entry.js.map +1 -0
  478. package/dist/tegel/p-b2dde7a5.entry.js +2 -0
  479. package/dist/tegel/p-b2dde7a5.entry.js.map +1 -0
  480. package/dist/tegel/p-b9ec54c5.entry.js +2 -0
  481. package/dist/tegel/p-b9ec54c5.entry.js.map +1 -0
  482. package/dist/tegel/p-ba975249.entry.js +2 -0
  483. package/dist/tegel/p-ba975249.entry.js.map +1 -0
  484. package/dist/tegel/p-c79b3861.entry.js +2 -0
  485. package/dist/tegel/p-c79b3861.entry.js.map +1 -0
  486. package/dist/tegel/p-cd08f5f0.entry.js +2 -0
  487. package/dist/tegel/p-cd08f5f0.entry.js.map +1 -0
  488. package/dist/tegel/p-d910763a.entry.js +2 -0
  489. package/dist/tegel/p-d910763a.entry.js.map +1 -0
  490. package/dist/tegel/p-e25424af.entry.js +2 -0
  491. package/dist/tegel/p-e25424af.entry.js.map +1 -0
  492. package/dist/tegel/p-e5e10d8f.entry.js +2 -0
  493. package/dist/tegel/p-e5e10d8f.entry.js.map +1 -0
  494. package/dist/tegel/p-e662e68d.entry.js +2 -0
  495. package/dist/tegel/p-e662e68d.entry.js.map +1 -0
  496. package/dist/tegel/p-ebffa726.entry.js +2 -0
  497. package/dist/tegel/p-ebffa726.entry.js.map +1 -0
  498. package/dist/tegel/p-ec26fc38.js +2 -1
  499. package/dist/tegel/p-ec26fc38.js.map +1 -0
  500. package/dist/tegel/p-fa3dbeec.entry.js +2 -0
  501. package/dist/tegel/p-fa3dbeec.entry.js.map +1 -0
  502. package/dist/tegel/p-fbcdf3d9.entry.js +2 -0
  503. package/dist/tegel/p-fbcdf3d9.entry.js.map +1 -0
  504. package/dist/tegel/p-fc96cf21.entry.js +2 -0
  505. package/dist/tegel/p-fc96cf21.entry.js.map +1 -0
  506. package/dist/tegel/tegel.esm.js +2 -1
  507. package/dist/tegel/tegel.esm.js.map +1 -0
  508. package/dist/types/components/accordion/accordion-item/accordion-item.d.ts +17 -17
  509. package/dist/types/components/accordion/accordion.d.ts +7 -7
  510. package/dist/types/components/accordion/accordion.stories.d.ts +77 -77
  511. package/dist/types/components/badge/badge.stories.d.ts +66 -66
  512. package/dist/types/components/badge/badges.d.ts +16 -16
  513. package/dist/types/components/banner/banner.stories.d.ts +68 -68
  514. package/dist/types/components/banner/sdds-banner.d.ts +48 -48
  515. package/dist/types/components/banner/sdds-banner.stories.d.ts +109 -109
  516. package/dist/types/components/block/block-native.stories.d.ts +31 -31
  517. package/dist/types/components/block/sdds-block.d.ts +9 -9
  518. package/dist/types/components/block/sdds-block.stories.d.ts +32 -32
  519. package/dist/types/components/breadcrumb/breadcrumb-item/breadcrumb-item.d.ts +9 -9
  520. package/dist/types/components/breadcrumb/breadcrumb.d.ts +5 -5
  521. package/dist/types/components/breadcrumb/breadcrumb.stories.d.ts +12 -12
  522. package/dist/types/components/button/button-component.d.ts +18 -18
  523. package/dist/types/components/button/button-native.stories.d.ts +148 -148
  524. package/dist/types/components/button/button-webcomponent.stories.d.ts +147 -147
  525. package/dist/types/components/card/card.stories.d.ts +138 -138
  526. package/dist/types/components/card/sdds-card.d.ts +39 -39
  527. package/dist/types/components/card/sdds-card.stories.d.ts +139 -139
  528. package/dist/types/components/checkbox/checkbox.stories.d.ts +39 -39
  529. package/dist/types/components/checkbox/sdds-checkbox.d.ts +38 -38
  530. package/dist/types/components/checkbox/sdds-checkbox.stories.d.ts +40 -40
  531. package/dist/types/components/chips/chips.stories.d.ts +77 -77
  532. package/dist/types/components/data-table/native-table.stories.d.ts +133 -133
  533. package/dist/types/components/data-table/table/table.d.ts +47 -47
  534. package/dist/types/components/data-table/table-body/table-body.d.ts +54 -54
  535. package/dist/types/components/data-table/table-body-cell/table-body-cell.d.ts +24 -24
  536. package/dist/types/components/data-table/table-body-row/table-body-row.d.ts +27 -27
  537. package/dist/types/components/data-table/table-body-row-expandable/table-body-row-expandable.d.ts +27 -27
  538. package/dist/types/components/data-table/table-component-basic.stories.d.ts +101 -101
  539. package/dist/types/components/data-table/table-component-batch-actions.stories.d.ts +99 -99
  540. package/dist/types/components/data-table/table-component-bodydata.stories.d.ts +38 -38
  541. package/dist/types/components/data-table/table-component-custom-width.stories.d.ts +148 -148
  542. package/dist/types/components/data-table/table-component-event-listeners.stories.d.ts +88 -88
  543. package/dist/types/components/data-table/table-component-expandable-rows.stories.d.ts +88 -88
  544. package/dist/types/components/data-table/table-component-filtering.stories.d.ts +101 -101
  545. package/dist/types/components/data-table/table-component-multiselect.stories.d.ts +101 -101
  546. package/dist/types/components/data-table/table-component-pagination.stories.d.ts +101 -101
  547. package/dist/types/components/data-table/table-component-sorting.stories.d.ts +100 -100
  548. package/dist/types/components/data-table/table-footer/table-footer.d.ts +50 -50
  549. package/dist/types/components/data-table/table-header/table-header.d.ts +27 -27
  550. package/dist/types/components/data-table/table-header-cell/table-header-cell.d.ts +44 -44
  551. package/dist/types/components/data-table/table-toolbar/table-toolbar.d.ts +22 -22
  552. package/dist/types/components/datetime/datetime.d.ts +42 -42
  553. package/dist/types/components/datetime/datetime.stories.d.ts +127 -127
  554. package/dist/types/components/divider/divider.stories.d.ts +65 -65
  555. package/dist/types/components/dropdown/dropdown-filter/dropdown-filter.d.ts +42 -42
  556. package/dist/types/components/dropdown/dropdown-filter/dropdown-filter.stories.d.ts +73 -73
  557. package/dist/types/components/dropdown/dropdown-native.stories.d.ts +57 -57
  558. package/dist/types/components/dropdown/dropdown-option/dropdown-option.d.ts +19 -19
  559. package/dist/types/components/dropdown/dropdown-wc-default.stories.d.ts +129 -129
  560. package/dist/types/components/dropdown/dropdown-wc-multiselect.stories.d.ts +115 -115
  561. package/dist/types/components/dropdown/dropdown.d.ts +58 -58
  562. package/dist/types/components/footer/footer.stories.d.ts +45 -45
  563. package/dist/types/components/header/header-all.stories.d.ts +29 -29
  564. package/dist/types/components/header/header-default.stories.d.ts +29 -29
  565. package/dist/types/components/header/header-inline.stories.d.ts +29 -29
  566. package/dist/types/components/header/header-search.stories.d.ts +29 -29
  567. package/dist/types/components/header/header-toolbar.stories.d.ts +29 -29
  568. package/dist/types/components/icon/icon-font.stories.d.ts +38 -38
  569. package/dist/types/components/icon/icon-web-component.stories.d.ts +38 -38
  570. package/dist/types/components/icon/icon.d.ts +12 -12
  571. package/dist/types/components/link/link.stories.d.ts +33 -33
  572. package/dist/types/components/link/sdds-link.d.ts +13 -13
  573. package/dist/types/components/link/sdds-link.stories.d.ts +58 -58
  574. package/dist/types/components/message/message.stories.d.ts +69 -69
  575. package/dist/types/components/message/sdds-message.d.ts +14 -14
  576. package/dist/types/components/message/sdds-message.stories.d.ts +87 -87
  577. package/dist/types/components/modal/modal-native.stories.d.ts +59 -59
  578. package/dist/types/components/modal/modal-webcomponent.stories.d.ts +52 -52
  579. package/dist/types/components/modal/modal.d.ts +17 -17
  580. package/dist/types/components/popover-canvas/popover-canvas.d.ts +24 -24
  581. package/dist/types/components/popover-canvas/popover-canvas.stories.d.ts +25 -25
  582. package/dist/types/components/popover-menu/popover-menu-icons.stories.d.ts +27 -27
  583. package/dist/types/components/popover-menu/popover-menu.d.ts +24 -24
  584. package/dist/types/components/popover-menu/popover-menu.stories.d.ts +27 -27
  585. package/dist/types/components/radio-button/radio-button-component.stories.d.ts +39 -39
  586. package/dist/types/components/radio-button/radio-button.d.ts +26 -26
  587. package/dist/types/components/radio-button/radio-button.stories.d.ts +33 -33
  588. package/dist/types/components/side-menu/side-menu.stories.d.ts +42 -42
  589. package/dist/types/components/slider/slider.d.ts +86 -86
  590. package/dist/types/components/slider/slider.stories.d.ts +169 -169
  591. package/dist/types/components/spinner/spinner.d.ts +7 -7
  592. package/dist/types/components/spinner/spinner.stories.d.ts +37 -37
  593. package/dist/types/components/stepper/stepper.stories.d.ts +56 -56
  594. package/dist/types/components/tabs/inline-tabs-default/inline-tab/inline-tab.d.ts +6 -6
  595. package/dist/types/components/tabs/inline-tabs-default/inline-tabs.d.ts +40 -40
  596. package/dist/types/components/tabs/inline-tabs-default/inline-tabs.stories.d.ts +49 -49
  597. package/dist/types/components/tabs/inline-tabs-fullbleed/inline-tabs-fullbleed.d.ts +20 -20
  598. package/dist/types/components/tabs/inline-tabs-fullbleed/inline-tabs-fullbleed.stories.d.ts +30 -30
  599. package/dist/types/components/tabs/navigation-tabs/navigation-tabs.d.ts +20 -20
  600. package/dist/types/components/tabs/navigation-tabs/navigation-tabs.stories.d.ts +13 -13
  601. package/dist/types/components/textarea/textarea.d.ts +48 -48
  602. package/dist/types/components/textarea/textarea.stories.d.ts +116 -116
  603. package/dist/types/components/textfield/textfield.d.ts +52 -52
  604. package/dist/types/components/textfield/textfield.stories.d.ts +180 -180
  605. package/dist/types/components/toast/sdds-toast.d.ts +36 -36
  606. package/dist/types/components/toast/sdds-toast.stories.d.ts +56 -56
  607. package/dist/types/components/toast/toast.stories.d.ts +69 -69
  608. package/dist/types/components/toggle/sdds-toggle.d.ts +34 -34
  609. package/dist/types/components/toggle/sdds-toggle.stories.d.ts +74 -74
  610. package/dist/types/components/toggle/toggle.stories.d.ts +55 -55
  611. package/dist/types/components/tooltip/tooltip.d.ts +24 -24
  612. package/dist/types/components/tooltip/tooltip.stories.d.ts +54 -54
  613. package/dist/types/components/utility/colour/background-color.stories.d.ts +58 -58
  614. package/dist/types/components/utility/colour/text-color.stories.d.ts +58 -58
  615. package/dist/types/components.d.ts +11 -9
  616. package/dist/types/foundations-stories/colour/colour-brand.stories.d.ts +13 -13
  617. package/dist/types/foundations-stories/colour/colour-scales.stories.d.ts +13 -13
  618. package/dist/types/foundations-stories/colour/colour-semantic.stories.d.ts +13 -13
  619. package/dist/types/foundations-stories/grid/grid.stories.d.ts +35 -35
  620. package/dist/types/foundations-stories/spacing/spacing-element.stories.d.ts +8 -8
  621. package/dist/types/foundations-stories/spacing/spacing-layout.stories.d.ts +8 -8
  622. package/dist/types/foundations-stories/typography/typography-body.stories.d.ts +8 -8
  623. package/dist/types/foundations-stories/typography/typography-detail.stories.d.ts +8 -8
  624. package/dist/types/foundations-stories/typography/typography-headline.stories.d.ts +21 -21
  625. package/dist/types/foundations-stories/typography/typography-paragraph.stories.d.ts +8 -8
  626. package/dist/types/index.d.ts +1 -1
  627. package/dist/types/stencil-public-runtime.d.ts +71 -15
  628. package/dist/types/utils/utils.d.ts +2 -2
  629. package/loader/index.d.ts +9 -0
  630. package/package.json +3 -3
  631. package/dist/components/dropdown-option.js +0 -100
  632. package/dist/components/dropdown.js +0 -303
  633. package/dist/components/icon.js +0 -58
  634. package/dist/components/index.d.ts +0 -62
  635. package/dist/components/index.js +0 -42
  636. package/dist/components/popper.js +0 -1799
  637. package/dist/components/sdds-accordion-item.d.ts +0 -11
  638. package/dist/components/sdds-accordion-item.js +0 -60
  639. package/dist/components/sdds-accordion.d.ts +0 -11
  640. package/dist/components/sdds-accordion.js +0 -38
  641. package/dist/components/sdds-badges.d.ts +0 -11
  642. package/dist/components/sdds-badges.js +0 -75
  643. package/dist/components/sdds-banner.d.ts +0 -11
  644. package/dist/components/sdds-banner.js +0 -119
  645. package/dist/components/sdds-block.d.ts +0 -11
  646. package/dist/components/sdds-block.js +0 -48
  647. package/dist/components/sdds-body-cell.d.ts +0 -11
  648. package/dist/components/sdds-body-cell.js +0 -6
  649. package/dist/components/sdds-breadcrumb-item.d.ts +0 -11
  650. package/dist/components/sdds-breadcrumb-item.js +0 -43
  651. package/dist/components/sdds-breadcrumb.d.ts +0 -11
  652. package/dist/components/sdds-breadcrumb.js +0 -37
  653. package/dist/components/sdds-button.d.ts +0 -11
  654. package/dist/components/sdds-button.js +0 -59
  655. package/dist/components/sdds-card.d.ts +0 -11
  656. package/dist/components/sdds-card.js +0 -84
  657. package/dist/components/sdds-checkbox.d.ts +0 -11
  658. package/dist/components/sdds-checkbox.js +0 -76
  659. package/dist/components/sdds-datetime.d.ts +0 -11
  660. package/dist/components/sdds-datetime.js +0 -129
  661. package/dist/components/sdds-dropdown-filter.d.ts +0 -11
  662. package/dist/components/sdds-dropdown-filter.js +0 -138
  663. package/dist/components/sdds-dropdown-option.d.ts +0 -11
  664. package/dist/components/sdds-dropdown-option.js +0 -6
  665. package/dist/components/sdds-dropdown.d.ts +0 -11
  666. package/dist/components/sdds-dropdown.js +0 -6
  667. package/dist/components/sdds-header-cell.d.ts +0 -11
  668. package/dist/components/sdds-header-cell.js +0 -170
  669. package/dist/components/sdds-icon.d.ts +0 -11
  670. package/dist/components/sdds-icon.js +0 -6
  671. package/dist/components/sdds-inline-tab.d.ts +0 -11
  672. package/dist/components/sdds-inline-tab.js +0 -40
  673. package/dist/components/sdds-inline-tabs-fullbleed.d.ts +0 -11
  674. package/dist/components/sdds-inline-tabs-fullbleed.js +0 -117
  675. package/dist/components/sdds-inline-tabs.d.ts +0 -11
  676. package/dist/components/sdds-inline-tabs.js +0 -245
  677. package/dist/components/sdds-link.d.ts +0 -11
  678. package/dist/components/sdds-link.js +0 -6
  679. package/dist/components/sdds-link2.js +0 -44
  680. package/dist/components/sdds-message.d.ts +0 -11
  681. package/dist/components/sdds-message.js +0 -67
  682. package/dist/components/sdds-modal.d.ts +0 -11
  683. package/dist/components/sdds-modal.js +0 -77
  684. package/dist/components/sdds-navigation-tabs.d.ts +0 -11
  685. package/dist/components/sdds-navigation-tabs.js +0 -117
  686. package/dist/components/sdds-popover-canvas.d.ts +0 -11
  687. package/dist/components/sdds-popover-canvas.js +0 -108
  688. package/dist/components/sdds-popover-menu.d.ts +0 -11
  689. package/dist/components/sdds-popover-menu.js +0 -109
  690. package/dist/components/sdds-radio-button.d.ts +0 -11
  691. package/dist/components/sdds-radio-button.js +0 -52
  692. package/dist/components/sdds-slider.d.ts +0 -11
  693. package/dist/components/sdds-slider.js +0 -394
  694. package/dist/components/sdds-spinner.d.ts +0 -11
  695. package/dist/components/sdds-spinner.js +0 -37
  696. package/dist/components/sdds-table-body-row-expandable.d.ts +0 -11
  697. package/dist/components/sdds-table-body-row-expandable.js +0 -105
  698. package/dist/components/sdds-table-body-row.d.ts +0 -11
  699. package/dist/components/sdds-table-body-row.js +0 -6
  700. package/dist/components/sdds-table-body.d.ts +0 -11
  701. package/dist/components/sdds-table-body.js +0 -337
  702. package/dist/components/sdds-table-footer.d.ts +0 -11
  703. package/dist/components/sdds-table-footer.js +0 -195
  704. package/dist/components/sdds-table-header.d.ts +0 -11
  705. package/dist/components/sdds-table-header.js +0 -124
  706. package/dist/components/sdds-table-toolbar.d.ts +0 -11
  707. package/dist/components/sdds-table-toolbar.js +0 -87
  708. package/dist/components/sdds-table.d.ts +0 -11
  709. package/dist/components/sdds-table.js +0 -91
  710. package/dist/components/sdds-textarea.d.ts +0 -11
  711. package/dist/components/sdds-textarea.js +0 -109
  712. package/dist/components/sdds-textfield.d.ts +0 -11
  713. package/dist/components/sdds-textfield.js +0 -127
  714. package/dist/components/sdds-toast.d.ts +0 -11
  715. package/dist/components/sdds-toast.js +0 -117
  716. package/dist/components/sdds-toggle.d.ts +0 -11
  717. package/dist/components/sdds-toggle.js +0 -69
  718. package/dist/components/sdds-tooltip.d.ts +0 -11
  719. package/dist/components/sdds-tooltip.js +0 -127
  720. package/dist/components/table-body-cell.js +0 -101
  721. package/dist/components/table-body-row.js +0 -120
  722. package/dist/tegel/p-05d3cfc8.entry.js +0 -1
  723. package/dist/tegel/p-13a25c7f.entry.js +0 -1
  724. package/dist/tegel/p-13b783f1.js +0 -2
  725. package/dist/tegel/p-1dda8de9.entry.js +0 -1
  726. package/dist/tegel/p-2248b59e.entry.js +0 -1
  727. package/dist/tegel/p-232e5c9a.entry.js +0 -1
  728. package/dist/tegel/p-2375f0eb.entry.js +0 -1
  729. package/dist/tegel/p-29deedc6.entry.js +0 -1
  730. package/dist/tegel/p-2f52021b.entry.js +0 -1
  731. package/dist/tegel/p-3344582d.entry.js +0 -1
  732. package/dist/tegel/p-4b14324d.entry.js +0 -1
  733. package/dist/tegel/p-561fbe77.entry.js +0 -1
  734. package/dist/tegel/p-5a215722.entry.js +0 -1
  735. package/dist/tegel/p-5f7b1539.entry.js +0 -1
  736. package/dist/tegel/p-6f382b38.entry.js +0 -1
  737. package/dist/tegel/p-765e2719.entry.js +0 -1
  738. package/dist/tegel/p-76f60546.entry.js +0 -1
  739. package/dist/tegel/p-7a5244b6.entry.js +0 -1
  740. package/dist/tegel/p-816ff5f7.entry.js +0 -1
  741. package/dist/tegel/p-81d2d57b.entry.js +0 -1
  742. package/dist/tegel/p-87650f36.entry.js +0 -1
  743. package/dist/tegel/p-8e6f885c.entry.js +0 -1
  744. package/dist/tegel/p-8e9dcc20.entry.js +0 -1
  745. package/dist/tegel/p-997fc919.entry.js +0 -1
  746. package/dist/tegel/p-9a057c9a.entry.js +0 -1
  747. package/dist/tegel/p-9a95e92c.entry.js +0 -1
  748. package/dist/tegel/p-a75ff060.entry.js +0 -1
  749. package/dist/tegel/p-bf1216f9.entry.js +0 -1
  750. package/dist/tegel/p-bf597564.entry.js +0 -1
  751. package/dist/tegel/p-d2217bf0.entry.js +0 -1
  752. package/dist/tegel/p-e335137d.entry.js +0 -1
  753. package/dist/tegel/p-e34cce75.entry.js +0 -1
  754. package/dist/tegel/p-e55d09f2.entry.js +0 -1
  755. package/dist/tegel/p-ebbffa8a.entry.js +0 -1
  756. package/dist/tegel/p-ed076d47.entry.js +0 -1
  757. package/dist/tegel/p-ef887910.entry.js +0 -1
  758. package/dist/tegel/p-f4b70868.entry.js +0 -1
  759. package/dist/tegel/p-f52a0b63.entry.js +0 -1
  760. package/dist/tegel/p-f5bf214b.entry.js +0 -1
  761. package/dist/tegel/p-fd1b5923.entry.js +0 -1
@@ -1,117 +0,0 @@
1
- import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
-
3
- const inlineTabsFullbleedCss = ".sdds-inline-tabs-fullbleed{box-sizing:border-box;display:flex;position:relative;}.sdds-inline-tabs-fullbleed *{box-sizing:border-box}.sdds-inline-tabs-fullbleed::after{content:\" \";display:block;border-bottom:1px solid var(--sdds-inline-tabs-fullbleed-horizontal-divider-background);opacity:var(--sdds-inline-tabs-fullbleed-horizontal-divider-opacity);left:0;right:0;bottom:0;position:absolute}.sdds-inline-tabs-fullbleed-wrapper{display:flex;flex-wrap:nowrap;width:100%;overflow-x:scroll;scrollbar-width:none}.sdds-inline-tabs-fullbleed-wrapper::-webkit-scrollbar{display:none}.sdds-inline-tabs-fullbleed--forward,.sdds-inline-tabs-fullbleed--back{cursor:pointer;width:48px;height:100%;border:0;position:absolute;right:0;top:0;background-color:var(--sdds-inline-tabs-fullbleed-scroll-btn-background);display:flex;justify-content:center;align-items:center;opacity:0;pointer-events:none}.sdds-inline-tabs-fullbleed--forward__show,.sdds-inline-tabs-fullbleed--back__show{opacity:1;pointer-events:all}.sdds-inline-tabs-fullbleed--forward:hover,.sdds-inline-tabs-fullbleed--back:hover{background-color:var(--sdds-inline-tabs-fullbleed-scroll-btn-background-hover)}.sdds-inline-tabs-fullbleed--forward:active,.sdds-inline-tabs-fullbleed--back:active{background-color:var(--sdds-inline-tabs-fullbleed-scroll-btn-background-active)}.sdds-inline-tabs-fullbleed--forward:focus,.sdds-inline-tabs-fullbleed--back:focus{outline:2px solid var(--sdds-blue-400);outline-offset:-2px}.sdds-inline-tabs-fullbleed--forward svg,.sdds-inline-tabs-fullbleed--back svg{fill:var(--sdds-inline-tabs-scroll-btn-color)}.sdds-inline-tabs-fullbleed-centered{justify-content:center}::slotted(.sdds-inline-tabs-fullbleed--tab){font:var(--sdds-headline-07);letter-spacing:var(--sdds-headline-07-ls);color:var(--sdds-inline-tabs-fullbleed-tab-color);opacity:0.6;padding:16px 0;margin-right:32px;text-decoration:none;display:block;position:relative;transition:color 0.15s ease-in-out;white-space:nowrap;text-align:left}::slotted(.sdds-inline-tabs-fullbleed--tab)::after{content:\" \";position:absolute;bottom:0;right:0;left:0;margin-left:auto;width:0;margin-right:auto;height:2px;background-color:var(--sdds-inline-tabs-fullbleed-tab-indicator-background-hover);transition:width 0.15s ease-in-out;z-index:1}::slotted(.sdds-inline-tabs-fullbleed--tab__active){color:var(--sdds-inline-tabs-fullbleed-tab-color-active);opacity:1}::slotted(.sdds-inline-tabs-fullbleed--tab__active)::after{width:100%;background-color:var(--sdds-inline-tabs-fullbleed-tab-indicator-background-active)}::slotted(.sdds-inline-tabs-fullbleed--tab:first-child){margin-left:32px}::slotted(.sdds-inline-tabs-fullbleed--tab:last-child){margin-right:32px}::slotted(.sdds-inline-tabs-fullbleed--tab:hover){color:var(--sdds-inline-tabs-fullbleed-tab-color-hover);opacity:1}::slotted(.sdds-inline-tabs-fullbleed--tab:hover)::after{width:100%}::slotted(.sdds-inline-tabs-fullbleed--tab:focus){outline:2px solid var(--sdds-blue-400);outline-offset:-2px;color:var(--sdds-inline-tabs-fullbleed-tab-color-focus);opacity:1}::slotted(.sdds-inline-tabs-fullbleed--tab:focus)::after{width:0}::slotted(.sdds-inline-tabs-fullbleed--tab__active:focus)::after{width:100%}::slotted(.sdds-inline-tabs-fullbleed--tab__disabled){color:var(--sdds-inline-tabs-fullbleed-tab-color-disabled);pointer-events:none;opacity:var(--sdds-inline-tabs-fullbleed-tab-color-opacity-disabled)}.sdds-inline-tabs-fullbleed{background-color:var(--sdds-inline-tabs-fullbleed-tab-background)}.sdds-inline-tabs-fullbleed .sdds-inline-tabs-fullbleed--forward{background-color:var(--sdds-inline-tabs-fullbleed-tab-background)}.sdds-inline-tabs-fullbleed .sdds-inline-tabs-fullbleed--back{background-color:var(--sdds-inline-tabs-fullbleed-tab-background)}";
4
-
5
- const InlineTabsFullbleed = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
6
- constructor() {
7
- super();
8
- this.__registerHost();
9
- this.__attachShadow();
10
- this.navWrapperElement = null; // reference to container with nav buttons
11
- this.componentWidth = 0; // visible width of this component
12
- this.buttonsWidth = 0; // total width of all nav items combined
13
- this.scrollWidth = 0; // total amount that is possible to scroll in the nav wrapper
14
- this.buttonWidth = 0; // current calculated width of the largest nav button
15
- this.modeVariant = null;
16
- this.tabs = [];
17
- this.showLeftScroll = false;
18
- this.showRightScroll = false;
19
- }
20
- componentDidRender() {
21
- this.calculateButtonWidth();
22
- }
23
- componentDidLoad() {
24
- const resizeObserver = new ResizeObserver((entries) => {
25
- entries.forEach((entry) => {
26
- const componentWidth = entry.contentRect.width;
27
- let buttonsWidth = 0;
28
- const navButtons = Array.from(this.host.children);
29
- navButtons.forEach((navButton) => {
30
- const style = window.getComputedStyle(navButton);
31
- buttonsWidth +=
32
- navButton.clientWidth + parseFloat(style.marginLeft) + parseFloat(style.marginRight);
33
- navButton.classList.add('sdds-inline-tabs-fullbleed--tab');
34
- });
35
- this.componentWidth = componentWidth;
36
- this.buttonsWidth = buttonsWidth;
37
- this.scrollWidth = buttonsWidth - componentWidth;
38
- if (this.buttonsWidth > this.componentWidth) {
39
- this.evaluateScrollButtons();
40
- }
41
- else {
42
- this.showLeftScroll = false;
43
- this.showRightScroll = false;
44
- }
45
- });
46
- });
47
- resizeObserver.observe(this.navWrapperElement);
48
- this.calculateButtonWidth();
49
- }
50
- calculateButtonWidth() {
51
- let best = 0;
52
- const navButtons = Array.from(this.host.children);
53
- navButtons.forEach((navButton) => {
54
- const style = window.getComputedStyle(navButton);
55
- const width = navButton.clientWidth + parseFloat(style.marginLeft) + parseFloat(style.marginRight);
56
- if (width > best) {
57
- best = width;
58
- }
59
- });
60
- this.buttonWidth = best;
61
- }
62
- scrollRight() {
63
- const scroll = this.navWrapperElement.scrollLeft;
64
- this.navWrapperElement.scrollLeft = scroll + this.buttonWidth;
65
- this.evaluateScrollButtons();
66
- }
67
- scrollLeft() {
68
- const scroll = this.navWrapperElement.scrollLeft;
69
- this.navWrapperElement.scrollLeft = scroll - this.buttonWidth;
70
- this.evaluateScrollButtons();
71
- }
72
- evaluateScrollButtons() {
73
- const scroll = this.navWrapperElement.scrollLeft;
74
- if (scroll >= this.scrollWidth) {
75
- this.showRightScroll = false;
76
- }
77
- else {
78
- this.showRightScroll = true;
79
- }
80
- if (scroll <= 0) {
81
- this.showLeftScroll = false;
82
- }
83
- else {
84
- this.showLeftScroll = true;
85
- }
86
- }
87
- render() {
88
- return (h(Host, { class: `${this.modeVariant !== null ? `sdds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { class: `sdds-inline-tabs-fullbleed` }, h("div", { class: "sdds-inline-tabs-fullbleed-wrapper", ref: (el) => {
89
- this.navWrapperElement = el;
90
- } }, h("slot", null)), h("div", { class: "sdds-inline-tabs-fullbleed-navigation" }, h("button", { class: `sdds-inline-tabs-fullbleed--forward ${this.showRightScroll ? 'sdds-inline-tabs-fullbleed--back__show' : ''}`, onClick: () => this.scrollRight(), disabled: !this.showRightScroll }, h("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg" }, h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M6.1147 17.3291C5.87062 17.0851 5.87062 16.6893 6.1147 16.4453L12.2948 10.2652C12.4412 10.1187 12.4412 9.8813 12.2948 9.73485L6.1147 3.55476C5.87062 3.31068 5.87062 2.91496 6.1147 2.67088C6.35878 2.4268 6.75451 2.4268 6.99858 2.67088L13.1787 8.85097C13.8133 9.48557 13.8133 10.5145 13.1787 11.1491L6.99858 17.3291C6.75451 17.5732 6.35878 17.5732 6.1147 17.3291Z" }))), h("button", { class: `sdds-inline-tabs-fullbleed--back ${this.showLeftScroll ? 'sdds-inline-tabs-fullbleed--back__show' : ''}`, onClick: () => this.scrollLeft(), disabled: !this.showLeftScroll }, h("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg" }, h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M13.8853 2.67085C14.1294 2.91493 14.1294 3.31066 13.8853 3.55473L7.70522 9.73482C7.55878 9.88127 7.55878 10.1187 7.70522 10.2652L13.8853 16.4452C14.1294 16.6893 14.1294 17.085 13.8853 17.3291C13.6412 17.5732 13.2455 17.5732 13.0014 17.3291L6.82134 11.149C6.18674 10.5144 6.18674 9.48554 6.82134 8.85094L13.0014 2.67085C13.2455 2.42677 13.6412 2.42677 13.8853 2.67085Z" })))))));
91
- }
92
- get host() { return this; }
93
- static get style() { return inlineTabsFullbleedCss; }
94
- }, [1, "sdds-inline-tabs-fullbleed", {
95
- "modeVariant": [1, "mode-variant"],
96
- "tabs": [32],
97
- "showLeftScroll": [32],
98
- "showRightScroll": [32]
99
- }]);
100
- function defineCustomElement$1() {
101
- if (typeof customElements === "undefined") {
102
- return;
103
- }
104
- const components = ["sdds-inline-tabs-fullbleed"];
105
- components.forEach(tagName => { switch (tagName) {
106
- case "sdds-inline-tabs-fullbleed":
107
- if (!customElements.get(tagName)) {
108
- customElements.define(tagName, InlineTabsFullbleed);
109
- }
110
- break;
111
- } });
112
- }
113
-
114
- const SddsInlineTabsFullbleed = InlineTabsFullbleed;
115
- const defineCustomElement = defineCustomElement$1;
116
-
117
- export { SddsInlineTabsFullbleed, defineCustomElement };
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../types/components";
2
-
3
- interface SddsInlineTabs extends Components.SddsInlineTabs, HTMLElement {}
4
- export const SddsInlineTabs: {
5
- prototype: SddsInlineTabs;
6
- new (): SddsInlineTabs;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;
@@ -1,245 +0,0 @@
1
- import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
-
3
- const inlineTabsCss = ":host{outline:0 !important;box-sizing:border-box}:host *{box-sizing:border-box}.sdds-inline-tabs{overflow:hidden;outline:0}.sdds-inline-tabs-header{position:relative}.sdds-inline-tabs-main{background-color:var(--sdds-inline-tabs-main-background);padding:24px 24px 48px}.sdds-inline-tabs-wrapper{display:flex;overflow-x:scroll;scrollbar-width:none}.sdds-inline-tabs-wrapper::-webkit-scrollbar{display:none}.sdds-inline-tabs--forward,.sdds-inline-tabs--back{cursor:pointer;width:48px;height:100%;border:0;position:absolute;top:0;background-color:var(--sdds-inline-tabs-scroll-btn-background);display:flex;justify-content:center;align-items:center;opacity:0;pointer-events:none}.sdds-inline-tabs--forward__show,.sdds-inline-tabs--back__show{opacity:1;pointer-events:all}.sdds-inline-tabs--forward:hover,.sdds-inline-tabs--back:hover{background-color:var(--sdds-inline-tabs-scroll-btn-background-hover)}.sdds-inline-tabs--forward:active,.sdds-inline-tabs--back:active{background-color:var(--sdds-inline-tabs-scroll-btn-background-active)}.sdds-inline-tabs--forward:focus,.sdds-inline-tabs--back:focus{outline:2px solid var(--sdds-blue-400);outline-offset:-2px}.sdds-inline-tabs--forward svg,.sdds-inline-tabs--back svg{fill:var(--sdds-inline-tabs-scroll-btn-color)}.sdds-inline-tabs--back{left:0}.sdds-inline-tabs--forward{right:0}.sdds-inline-tabs--tab{font:var(--sdds-headline-07);letter-spacing:var(--sdds-headline-07-ls);cursor:pointer;border:0;color:var(--sdds-inline-tabs-tab-color);background-color:var(--sdds-inline-tabs-tab-background);padding:16px;min-width:142px;text-decoration:none;display:block;position:relative;transition:color 0.15s ease-in-out, background-color 0.15s ease-in-out;white-space:nowrap;flex-shrink:0;text-align:left;outline:none}.sdds-inline-tabs--tab>*{opacity:0.6}.sdds-inline-tabs--tab:not(:last-child){border-right:1px solid var(--sdds-inline-tabs-tab-border-color)}.sdds-inline-tabs--tab::after{content:\" \";position:absolute;top:0;right:0;left:0;margin-left:auto;width:0;margin-right:auto;height:2px;background-color:var(--sdds-inline-tabs-tab-indicator-background);transition:width 0.15s ease-in-out}.sdds-inline-tabs--tab:hover{background-color:var(--sdds-inline-tabs-tab-background-hover);color:var(--sdds-inline-tabs-tab-color-hover);text-decoration:none}.sdds-inline-tabs--tab:focus{outline:2px solid var(--sdds-blue-400);outline-offset:-2px}.sdds-inline-tabs--tab__active{background-color:var(--sdds-inline-tabs-tab-background-active);color:var(--sdds-inline-tabs-tab-color-active);cursor:initial;border-right:1px solid transparent !important}.sdds-inline-tabs--tab__active>*{opacity:1}.sdds-inline-tabs--tab__active:hover{background-color:var(--sdds-inline-tabs-tab-background-active)}.sdds-inline-tabs--tab__active::after{width:calc(100% + 2px);left:-1px;background-color:var(--sdds-inline-tabs-tab-indicator-background-active)}.sdds-inline-tabs--tab__active::before{content:\" \";background-color:var(--sdds-inline-tabs-tab-background-active);width:1px;top:0;bottom:0;left:-1px;display:block;position:absolute}.sdds-inline-tabs--tab__active:first-child:focus::before{left:0}.sdds-inline-tabs--tab:disabled,.sdds-inline-tabs--tab__disabled{cursor:initial;color:var(--sdds-navigation-tabs-tab-color-disabled);pointer-events:none}.sdds-inline-tabs--tab:disabled>*,.sdds-inline-tabs--tab__disabled>*{opacity:0.16}.sdds-inline-tabs--tab__active{background-color:var(--sdds-inline-tabs-tab-background-active)}.sdds-inline-tabs-main{background-color:var(--sdds-inline-tabs-main-background)}";
4
-
5
- function generateKeyFromName(name) {
6
- return name
7
- .replace(/\s/g, '-')
8
- .replace(/[^a-z0-9-]/gi, '')
9
- .toLowerCase();
10
- }
11
- const InlineTabs = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
12
- constructor() {
13
- super();
14
- this.__registerHost();
15
- this.__attachShadow();
16
- this.startingTab = null; // name of the tab to show by default (infered from either "default-tab"-prop (on component) or "default"-prop (on a slotted child)
17
- this.navWrapperElement = null; // reference to container with nav buttons
18
- this.tabWrapperElement = null; // reference to container with slotted children
19
- this.componentWidth = 0; // visible width of this component
20
- this.buttonsWidth = 0; // total width of all nav items combined
21
- this.scrollWidth = 0; // total amount that is possible to scroll in the nav wrapper
22
- this.useAutoHeight = false; // set height for slotted children or not
23
- this.defaultTab = '';
24
- this.autoHeight = false;
25
- this.modeVariant = null;
26
- this.tabs = [];
27
- this.buttonWidth = 0;
28
- this.tabHeight = 0;
29
- this.showLeftScroll = false;
30
- this.showRightScroll = false;
31
- }
32
- /** used for switching to a tab programmatically */
33
- async showTab(key) {
34
- this.switchToTab(key);
35
- }
36
- componentWillLoad() {
37
- this.initComponent();
38
- }
39
- initComponent(createInitialState = true) {
40
- if (this.autoHeight) {
41
- this.useAutoHeight = true;
42
- }
43
- this.tabs = Array.from(this.host.children).map((item, index) => {
44
- const name = item.label ? item.label : item.getAttribute('name') || `Tab ${index + 1}`;
45
- const key = generateKeyFromName(name);
46
- if (item.default) {
47
- this.startingTab = key;
48
- }
49
- let disabled = false;
50
- if (item.disabled) {
51
- disabled = true;
52
- }
53
- return {
54
- name,
55
- key,
56
- element: item,
57
- disabled,
58
- visible: true,
59
- initialDisplay: window.getComputedStyle(item).display,
60
- };
61
- });
62
- if (createInitialState) {
63
- this.setInitialState();
64
- }
65
- this.tabs = Array.from(this.tabs);
66
- }
67
- calculateButtonWidth() {
68
- const navButtons = this.navWrapperElement.querySelectorAll('button.sdds-inline-tabs--tab');
69
- let best = 0;
70
- Array.from(navButtons).forEach((navButton) => {
71
- const oldStyle = navButton.style.width;
72
- // eslint-disable-next-line no-param-reassign
73
- navButton.style.width = '';
74
- const width = navButton.clientWidth;
75
- // eslint-disable-next-line no-param-reassign
76
- navButton.style.width = oldStyle;
77
- if (navButton.clientWidth > best) {
78
- best = width;
79
- }
80
- });
81
- this.buttonWidth = best;
82
- }
83
- calculateTabHeight() {
84
- let best = 0;
85
- this.tabs.forEach((_, tabIndex) => {
86
- const tab = this.tabs[tabIndex];
87
- // TODO: add comment on what this does
88
- const oldStyle = tab.element.style.display;
89
- tab.element.style.display = '';
90
- const height = tab.element.clientHeight;
91
- tab.element.style.display = oldStyle;
92
- if (height > best) {
93
- best = height;
94
- }
95
- });
96
- this.tabHeight = best;
97
- }
98
- componentDidRender() {
99
- this.calculateTabHeight();
100
- this.calculateButtonWidth();
101
- }
102
- componentDidLoad() {
103
- const mutationObserver = new MutationObserver(( /* mutations, observer */) => {
104
- const visibleTab = this.tabs.find((tab) => tab.visible);
105
- this.initComponent(false);
106
- this.calculateTabHeight();
107
- this.calculateButtonWidth();
108
- if (visibleTab) {
109
- this.switchToTab(visibleTab.key);
110
- }
111
- });
112
- const resizeObserver = new ResizeObserver((entries) => {
113
- entries.forEach((entry) => {
114
- const componentWidth = entry.contentRect.width;
115
- let buttonsWidth = 0;
116
- const navButtons = entry.target.querySelectorAll('button.sdds-inline-tabs--tab');
117
- Array.from(navButtons).forEach((navButton) => {
118
- buttonsWidth += navButton.clientWidth;
119
- });
120
- this.componentWidth = componentWidth;
121
- this.buttonsWidth = buttonsWidth;
122
- this.scrollWidth = buttonsWidth - componentWidth;
123
- if (this.buttonsWidth > this.componentWidth) {
124
- this.evaluateScrollButtons();
125
- }
126
- else {
127
- this.showLeftScroll = false;
128
- this.showRightScroll = false;
129
- }
130
- this.calculateTabHeight();
131
- });
132
- });
133
- mutationObserver.observe(this.host, {
134
- childList: true,
135
- attributes: true,
136
- });
137
- resizeObserver.observe(this.navWrapperElement);
138
- this.calculateButtonWidth();
139
- this.calculateTabHeight();
140
- }
141
- setInitialState() {
142
- if (this.defaultTab) {
143
- this.startingTab = this.defaultTab;
144
- }
145
- this.tabs.forEach((tab, index) => {
146
- if (this.startingTab) {
147
- if (tab.key !== this.startingTab) {
148
- this.hideTab(index);
149
- }
150
- }
151
- else {
152
- if (index > 0) {
153
- this.hideTab(index);
154
- }
155
- }
156
- });
157
- }
158
- unhideTab(tabIndex) {
159
- const tab = this.tabs[tabIndex];
160
- tab.element.style.display = '';
161
- tab.visible = true;
162
- }
163
- hideTab(tabIndex) {
164
- const tab = this.tabs[tabIndex];
165
- tab.element.style.display = 'none';
166
- tab.visible = false;
167
- }
168
- switchToTab(key) {
169
- this.tabs.forEach((tab, index) => {
170
- if (tab.key === key) {
171
- this.unhideTab(index);
172
- }
173
- else {
174
- this.hideTab(index);
175
- }
176
- });
177
- this.tabs = Array.from(this.tabs);
178
- }
179
- scrollRight() {
180
- const scroll = this.navWrapperElement.scrollLeft;
181
- this.navWrapperElement.scrollLeft = scroll + this.buttonWidth;
182
- this.evaluateScrollButtons();
183
- }
184
- scrollLeft() {
185
- const scroll = this.navWrapperElement.scrollLeft;
186
- this.navWrapperElement.scrollLeft = scroll - this.buttonWidth;
187
- this.evaluateScrollButtons();
188
- }
189
- evaluateScrollButtons() {
190
- const scroll = this.navWrapperElement.scrollLeft;
191
- if (scroll >= this.scrollWidth) {
192
- this.showRightScroll = false;
193
- }
194
- else {
195
- this.showRightScroll = true;
196
- }
197
- if (scroll <= 0) {
198
- this.showLeftScroll = false;
199
- }
200
- else {
201
- this.showLeftScroll = true;
202
- }
203
- }
204
- render() {
205
- const style = {};
206
- if (this.useAutoHeight) {
207
- style.height = `${this.tabHeight}px`;
208
- }
209
- return (h(Host, { class: `${this.modeVariant !== null ? `sdds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { class: `sdds-inline-tabs sdds-inline-tabs` }, h("nav", { class: "sdds-inline-tabs-header" }, h("div", { ref: (el) => {
210
- this.navWrapperElement = el;
211
- }, class: "sdds-inline-tabs-wrapper" }, this.tabs.map((tab) => (h("button", { style: { width: `${this.buttonWidth}px` }, disabled: tab.disabled, class: `sdds-inline-tabs--tab ${tab.visible ? 'sdds-inline-tabs--tab__active' : ''}`, onClick: () => this.switchToTab(tab.key) }, h("span", null, tab.name))))), h("div", { class: "sdds-inline-tabs-header-navigation" }, h("button", { class: `sdds-inline-tabs--forward ${this.showRightScroll ? 'sdds-inline-tabs--back__show' : ''}`, disabled: !this.showRightScroll, onClick: () => this.scrollRight() }, h("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M6.1147 17.3291C5.87062 17.0851 5.87062 16.6893 6.1147 16.4453L12.2948 10.2652C12.4412 10.1187 12.4412 9.8813 12.2948 9.73485L6.1147 3.55476C5.87062 3.31068 5.87062 2.91496 6.1147 2.67088C6.35878 2.4268 6.75451 2.4268 6.99858 2.67088L13.1787 8.85097C13.8133 9.48557 13.8133 10.5145 13.1787 11.1491L6.99858 17.3291C6.75451 17.5732 6.35878 17.5732 6.1147 17.3291Z" }))), h("button", { class: `sdds-inline-tabs--back ${this.showLeftScroll ? 'sdds-inline-tabs--back__show' : ''}`, disabled: !this.showLeftScroll, onClick: () => this.scrollLeft() }, h("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M13.8853 2.67085C14.1294 2.91493 14.1294 3.31066 13.8853 3.55473L7.70522 9.73482C7.55878 9.88127 7.55878 10.1187 7.70522 10.2652L13.8853 16.4452C14.1294 16.6893 14.1294 17.085 13.8853 17.3291C13.6412 17.5732 13.2455 17.5732 13.0014 17.3291L6.82134 11.149C6.18674 10.5144 6.18674 9.48554 6.82134 8.85094L13.0014 2.67085C13.2455 2.42677 13.6412 2.42677 13.8853 2.67085Z" }))))), h("div", { ref: (el) => {
212
- this.tabWrapperElement = el;
213
- }, class: "sdds-inline-tabs-main", style: style }, h("slot", null)))));
214
- }
215
- get host() { return this; }
216
- static get style() { return inlineTabsCss; }
217
- }, [1, "sdds-inline-tabs", {
218
- "defaultTab": [1, "default-tab"],
219
- "autoHeight": [4, "auto-height"],
220
- "modeVariant": [1, "mode-variant"],
221
- "tabs": [32],
222
- "buttonWidth": [32],
223
- "tabHeight": [32],
224
- "showLeftScroll": [32],
225
- "showRightScroll": [32],
226
- "showTab": [64]
227
- }]);
228
- function defineCustomElement$1() {
229
- if (typeof customElements === "undefined") {
230
- return;
231
- }
232
- const components = ["sdds-inline-tabs"];
233
- components.forEach(tagName => { switch (tagName) {
234
- case "sdds-inline-tabs":
235
- if (!customElements.get(tagName)) {
236
- customElements.define(tagName, InlineTabs);
237
- }
238
- break;
239
- } });
240
- }
241
-
242
- const SddsInlineTabs = InlineTabs;
243
- const defineCustomElement = defineCustomElement$1;
244
-
245
- export { SddsInlineTabs, defineCustomElement };
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../types/components";
2
-
3
- interface SddsLink extends Components.SddsLink, HTMLElement {}
4
- export const SddsLink: {
5
- prototype: SddsLink;
6
- new (): SddsLink;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;
@@ -1,6 +0,0 @@
1
- import { S as SddsLink$1, d as defineCustomElement$1 } from './sdds-link2.js';
2
-
3
- const SddsLink = SddsLink$1;
4
- const defineCustomElement = defineCustomElement$1;
5
-
6
- export { SddsLink, defineCustomElement };
@@ -1,44 +0,0 @@
1
- import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
-
3
- const sddsLinkCss = "a{cursor:pointer;outline:none;color:var(--sdds-link)}a:active{color:var(--sdds-link);text-decoration:underline;text-decoration-color:var(--sdds-link)}a:hover{color:var(--sdds-link-hover);text-decoration:underline;text-decoration-color:var(--sdds-link-hover)}a:visited{color:var(--sdds-link-visited);text-decoration-color:var(--sdds-link-visited)}a:focus{color:var(--sdds-link-focus);text-decoration:none;outline:2px solid var(--sdds-link-focus);outline-offset:-2px}a.disabled{color:var(--sdds-link-disabled);text-decoration-color:var(--sdds-link-disabled);pointer-events:none}a.no-underline{text-decoration:none}a.no-underline:hover{text-decoration:none}";
4
-
5
- const SddsLink = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
6
- constructor() {
7
- super();
8
- this.__registerHost();
9
- this.href = undefined;
10
- this.target = '_self';
11
- this.disabled = false;
12
- this.underline = true;
13
- this.rel = 'noopener';
14
- }
15
- render() {
16
- return (h("a", { class: `
17
- ${this.disabled ? 'disabled' : ''}
18
- ${this.underline ? '' : 'no-underline'}
19
-
20
- `, href: this.href, target: this.target, rel: this.rel }, h("slot", null)));
21
- }
22
- static get style() { return sddsLinkCss; }
23
- }, [4, "sdds-link", {
24
- "href": [1],
25
- "target": [1],
26
- "disabled": [4],
27
- "underline": [4],
28
- "rel": [1]
29
- }]);
30
- function defineCustomElement() {
31
- if (typeof customElements === "undefined") {
32
- return;
33
- }
34
- const components = ["sdds-link"];
35
- components.forEach(tagName => { switch (tagName) {
36
- case "sdds-link":
37
- if (!customElements.get(tagName)) {
38
- customElements.define(tagName, SddsLink);
39
- }
40
- break;
41
- } });
42
- }
43
-
44
- export { SddsLink as S, defineCustomElement as d };
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../types/components";
2
-
3
- interface SddsMessage extends Components.SddsMessage, HTMLElement {}
4
- export const SddsMessage: {
5
- prototype: SddsMessage;
6
- new (): SddsMessage;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;
@@ -1,67 +0,0 @@
1
- import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
- import { d as defineCustomElement$2 } from './icon.js';
3
-
4
- const sddsMessageCss = ":host .message-wrapper{display:flex;padding:16px;background-color:var(--sdds-message-background);border-radius:4px}:host .message-wrapper.information{border-left:4px solid var(--sdds-information)}:host .message-wrapper.information sdds-icon{color:var(--sdds-information)}:host .message-wrapper.success{border-left:4px solid var(--sdds-positive)}:host .message-wrapper.success sdds-icon{color:var(--sdds-positive)}:host .message-wrapper.error{background-color:var(--sdds-message-type-error-background);border-left:4px solid var(--sdds-negative)}:host .message-wrapper.error sdds-icon{color:var(--sdds-negative)}:host .message-wrapper.warning{border-left:4px solid var(--sdds-warning)}:host .message-wrapper.warning sdds-icon{color:var(--sdds-warning)}:host .message-wrapper.message-minimal{border:none;display:flex;align-items:center;padding:0;background-color:transparent}:host .message-wrapper.message-minimal .message-header{font:var(--sdds-detail-02);letter-spacing:var(--sdds-detail-02-ls)}:host .message-wrapper.message-minimal sdds-icon{padding-right:8px}:host sdds-icon{padding-right:16px}:host .message-content{display:flex;flex-direction:column;gap:4px;color:var(--sdds-message-color);padding:2px 0}:host .message-content .message-header{font:var(--sdds-headline-07);letter-spacing:var(--sdds-headline-07-ls)}:host .message-content .message-extended-message{color:var(--sdds-message-color);font:var(--sdds-detail-02);letter-spacing:var(--sdds-detail-02-ls)}:host .sdds-mode-variant-primary{--sdds-message-background:var(--sdds-message-background-primary)}:host .sdds-mode-variant-secondary{--sdds-message-background:var(--sdds-message-background-secondary)}";
5
-
6
- const SddsMessage$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
7
- constructor() {
8
- super();
9
- this.__registerHost();
10
- this.__attachShadow();
11
- this.getIconName = () => {
12
- switch (this.type) {
13
- case 'information':
14
- return 'info';
15
- case 'error':
16
- return 'error';
17
- case 'warning':
18
- return 'warning';
19
- case 'success':
20
- return 'tick';
21
- default:
22
- return 'info';
23
- }
24
- };
25
- this.header = undefined;
26
- this.modeVariant = null;
27
- this.type = 'information';
28
- this.noIcon = false;
29
- this.minimal = false;
30
- }
31
- render() {
32
- return (h(Host, null, h("div", { class: `
33
- message-wrapper ${this.type}
34
- ${this.minimal ? 'message-minimal' : ''}
35
- ${this.modeVariant !== null ? `sdds-mode-variant-${this.modeVariant}` : ''}` }, !this.noIcon && h("sdds-icon", { name: this.getIconName(), size: "20px" }), h("div", { class: `message-content` }, this.header && h("div", { class: "message-header" }, this.header), !this.minimal && (h("div", { class: "message-extended-message" }, h("slot", null)))))));
36
- }
37
- static get style() { return sddsMessageCss; }
38
- }, [1, "sdds-message", {
39
- "header": [1],
40
- "modeVariant": [1, "mode-variant"],
41
- "type": [1],
42
- "noIcon": [4, "no-icon"],
43
- "minimal": [4]
44
- }]);
45
- function defineCustomElement$1() {
46
- if (typeof customElements === "undefined") {
47
- return;
48
- }
49
- const components = ["sdds-message", "sdds-icon"];
50
- components.forEach(tagName => { switch (tagName) {
51
- case "sdds-message":
52
- if (!customElements.get(tagName)) {
53
- customElements.define(tagName, SddsMessage$1);
54
- }
55
- break;
56
- case "sdds-icon":
57
- if (!customElements.get(tagName)) {
58
- defineCustomElement$2();
59
- }
60
- break;
61
- } });
62
- }
63
-
64
- const SddsMessage = SddsMessage$1;
65
- const defineCustomElement = defineCustomElement$1;
66
-
67
- export { SddsMessage, defineCustomElement };
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../types/components";
2
-
3
- interface SddsModal extends Components.SddsModal, HTMLElement {}
4
- export const SddsModal: {
5
- prototype: SddsModal;
6
- new (): SddsModal;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;
@@ -1,77 +0,0 @@
1
- import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
- import { d as defineCustomElement$2 } from './icon.js';
3
-
4
- const modalCss = ":root,.sdds-mode-light{--sdds-modal-backdrop:rgba(0 0 0 / 40%);--sdds-modal-background:var(--sdds-white);--sdds-modal-text:var(--sdds-grey-958);--sdds-modal-icon:var(--sdds-black);--sdds-modal-icon-native:url(\"data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M3.40338 2.34308C3.11048 2.05019 2.63561 2.05019 2.34272 2.34308C2.04982 2.63598 2.04982 3.11085 2.34272 3.40374L6.93897 8L2.34283 12.5961C2.04994 12.889 2.04994 13.3639 2.34283 13.6568C2.63572 13.9497 3.1106 13.9497 3.40349 13.6568L7.99963 9.06066L12.5958 13.6568C12.8887 13.9497 13.3635 13.9497 13.6564 13.6568C13.9493 13.3639 13.9493 12.889 13.6564 12.5961L9.06029 8L13.6565 3.40376C13.9494 3.11086 13.9494 2.63599 13.6565 2.3431C13.3636 2.0502 12.8888 2.0502 12.5959 2.3431L7.99963 6.93934L3.40338 2.34308Z' fill='black'/%3E%3C/svg%3E%0A\");--sdds-modal-scrollbar:var(--sdds-grey-300);--sdds-modal-scrollbar-track:var(--sdds-grey-300);--sdds-modal-scrollbar-thumb:var(--sdds-grey-500)}.sdds-mode-dark{--sdds-modal-backdrop:rgba(0 0 0 / 40%);--sdds-modal-background:var(--sdds-grey-900);--sdds-modal-text:var(--sdds-grey-50);--sdds-modal-icon:var(--sdds-white);--sdds-modal-icon-native:url(\"data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M3.40338 2.34308C3.11048 2.05019 2.63561 2.05019 2.34272 2.34308C2.04982 2.63598 2.04982 3.11085 2.34272 3.40374L6.93897 8L2.34283 12.5961C2.04994 12.889 2.04994 13.3639 2.34283 13.6568C2.63572 13.9497 3.1106 13.9497 3.40349 13.6568L7.99963 9.06066L12.5958 13.6568C12.8887 13.9497 13.3635 13.9497 13.6564 13.6568C13.9493 13.3639 13.9493 12.889 13.6564 12.5961L9.06029 8L13.6565 3.40376C13.9494 3.11086 13.9494 2.63599 13.6565 2.3431C13.3636 2.0502 12.8888 2.0502 12.5959 2.3431L7.99963 6.93934L3.40338 2.34308Z' fill='white'/%3E%3C/svg%3E%0A\");--sdds-modal-scrollbar:var(--sdds-grey-300);--sdds-modal-scrollbar-track:var(--sdds-grey-300);--sdds-modal-scrollbar-thumb:var(--sdds-grey-500)}.sdds-modal{box-sizing:border-box;background-color:var(--sdds-modal-background);margin:auto;position:relative;border-radius:4px;padding:16px;max-height:85vh;overflow-y:auto;}.sdds-modal *{box-sizing:border-box}.sdds-modal::-webkit-scrollbar{width:5px;background-color:var(--sdds-grey-300);border-radius:0 1em 1em 0}.sdds-modal::-webkit-scrollbar-track{background-color:var(--sdds-grey-300);border-radius:0 1em 1em 0}.sdds-modal::-webkit-scrollbar-thumb{background-color:var(--sdds-grey-500);border-radius:0 1em 1em 0}.sdds-modal__actions-sticky{overflow:hidden}.sdds-modal__actions-sticky .sdds-modal-body{font:var(--sdds-body-01);letter-spacing:var(--sdds-body-01-ls);padding-bottom:96px;margin:0 -16px 0 0;max-height:calc(85vh - 36px);overflow-y:auto}.sdds-modal__actions-sticky .sdds-modal-actions{position:absolute;bottom:-1px;left:0;right:0;background-color:var(--sdds-modal-background);padding:var(--sdds-spacing-element-16);display:flex;gap:16px}.sdds-modal__actions-static .sdds-modal-actions{background-color:var(--sdds-modal-background);display:flex;gap:16px}@media (min-width: 320px){.sdds-modal-xs{width:100%}.sdds-modal-sm{width:100%}.sdds-modal-md{width:100%}.sdds-modal-lg{width:100%}}@media (min-width: 672px){.sdds-modal-xs{width:75%}.sdds-modal-sm{width:62.5%}.sdds-modal-md{width:75%}.sdds-modal-lg{width:100%}}@media (min-width: 1056px){.sdds-modal-xs{width:31.25%}.sdds-modal-sm{width:43.75%}.sdds-modal-md{width:62.5%}.sdds-modal-lg{width:75%}}@media (min-width: 1312px){.sdds-modal-xs{width:31.25%}.sdds-modal-sm{width:37.5%}.sdds-modal-md{width:62.5%}.sdds-modal-lg{width:75%}}@media (min-width: 1584px){.sdds-modal-xs{width:25%}.sdds-modal-sm{width:37.5%}.sdds-modal-md{width:50%}.sdds-modal-lg{width:75%}}@media (max-width: 320px){.sdds-modal-md,.sdds-modal-lg,.sdds-modal-sm{height:100%}.sdds-modal-md slot[name=sdds-modal-actions]::slotted(*),.sdds-modal-lg slot[name=sdds-modal-actions]::slotted(*),.sdds-modal-sm slot[name=sdds-modal-actions]::slotted(*){display:flex}}.sdds-modal-header{display:flex;padding-bottom:var(--sdds-spacing-element-8);position:sticky;top:0;background-color:var(--sdds-modal-background);z-index:1}.sdds-modal-header::before{content:\" \";position:absolute;height:16px;top:-16px;width:100%;background-color:var(--sdds-modal-background)}.sdds-modal-headline{color:var(--sdds-modal-text);font:var(--sdds-headline-05);letter-spacing:var(--sdds-headline-05-ls);margin:0;flex:1;color:var(--sdds-modal-text)}.sdds-modal-body{color:var(--sdds-modal-text);font:var(--sdds-body-01);letter-spacing:var(--sdds-body-01-ls);padding-bottom:40px;overflow-y:visible;padding-right:16px;}.sdds-modal-body::-webkit-scrollbar{width:5px;background-color:var(--sdds-grey-300)}.sdds-modal-body::-webkit-scrollbar-track{background-color:var(--sdds-grey-300)}.sdds-modal-body::-webkit-scrollbar-thumb{background-color:var(--sdds-grey-500)}@media (min-width: 1056px){.sdds-modal-body{padding-right:64px}}.sdds-modal-backdrop{box-sizing:border-box;left:0;top:0;position:fixed;height:100%;width:100%;z-index:600;background-color:var(--sdds-modal-backdrop);padding:0 16px}.sdds-modal-backdrop *{box-sizing:border-box}@media (max-width: 320px){.sdds-modal-backdrop{padding:0}}.sdds-modal-backdrop.show{display:flex}.sdds-modal-backdrop.hide{display:none}button.sdds-modal-close{background-color:transparent;border:0;padding:0;appearance:unset}.sdds-modal-close{display:inline-block;height:auto;color:var(--sdds-modal-icon);cursor:pointer}.sdds-modal-close:focus{outline:2px solid var(--sdds-blue-400);outline-offset:-2px}@media (min-width: 320px){.sdds-modal-close{margin-left:var(--sdds-spacing-element-16)}}@media (min-width: 1056px){.sdds-modal-close{margin-left:var(--sdds-spacing-element-48)}}.sdds-modal-close-btn{display:inline-block;height:auto;background-repeat:no-repeat;cursor:pointer}@media (min-width: 320px){.sdds-modal-close-btn{margin-left:var(--sdds-spacing-element-16)}}@media (min-width: 1056px){.sdds-modal-close-btn{margin-left:var(--sdds-spacing-element-48)}}.sdds-modal-close-btn svg{fill:var(--sdds-modal-icon)}.sdds-modal-overflow{overflow:hidden}:host{left:0;top:0;position:fixed;height:100%;width:100%;z-index:600;background-color:var(--sdds-modal-backdrop);padding:0 16px}@media (max-width: 320px){:host{padding:0}}:host.show{display:flex}:host.hide{display:none}:host .sdds-modal-close{border:none;background-color:transparent}:host .sdds-modal-close-btn{border:none;background-color:transparent}:host(.show){display:flex}:host(.hide){display:none}";
5
-
6
- const Modal = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
7
- constructor() {
8
- super();
9
- this.__registerHost();
10
- this.__attachShadow();
11
- this.prevent = false;
12
- this.size = 'md';
13
- this.actions = 'static';
14
- this.open = false;
15
- }
16
- /** Shows the modal */
17
- async openModal() {
18
- this.open = true;
19
- }
20
- setDissmissButtons() {
21
- const nodes = this.el.querySelectorAll('[data-dismiss-modal]');
22
- [...Array.from(nodes), this.closeButtonEl].forEach((el) => {
23
- el.addEventListener('click', () => {
24
- this.open = false;
25
- });
26
- });
27
- }
28
- handleClick(e) {
29
- const targetList = e.composedPath();
30
- const target = targetList[0];
31
- if (target.classList[0] === 'sdds-modal-close' ||
32
- (target.classList[0] === 'sdds-modal-backdrop' && this.prevent === false)) {
33
- this.open = false;
34
- }
35
- }
36
- componentDidRender() {
37
- this.setDissmissButtons();
38
- }
39
- render() {
40
- return (h(Host, { onClick: (event) => {
41
- this.handleClick(event);
42
- }, class: `sdds-modal-backdrop ${this.open ? 'show' : 'hide'}` }, h("div", { class: `sdds-modal ${this.actions ? `sdds-modal__actions-${this.actions}` : ''} ${this.size ? `sdds-modal-${this.size}` : ''} ` }, h("div", { class: "sdds-modal-header" }, h("slot", { name: "sdds-modal-headline" }), h("button", { class: "sdds-modal-close", "aria-label": "close", ref: (el) => {
43
- this.closeButtonEl = el;
44
- } }, h("sdds-icon", { name: "cross", size: "20px" }))), h("div", { class: "sdds-modal-body" }, h("slot", { name: "sdds-modal-body" })), h("div", { class: "sdds-modal-actions" }, h("slot", { name: "sdds-modal-actions" })))));
45
- }
46
- get el() { return this; }
47
- static get style() { return modalCss; }
48
- }, [1, "sdds-modal", {
49
- "prevent": [4],
50
- "size": [1],
51
- "actions": [1],
52
- "open": [4],
53
- "openModal": [64]
54
- }]);
55
- function defineCustomElement$1() {
56
- if (typeof customElements === "undefined") {
57
- return;
58
- }
59
- const components = ["sdds-modal", "sdds-icon"];
60
- components.forEach(tagName => { switch (tagName) {
61
- case "sdds-modal":
62
- if (!customElements.get(tagName)) {
63
- customElements.define(tagName, Modal);
64
- }
65
- break;
66
- case "sdds-icon":
67
- if (!customElements.get(tagName)) {
68
- defineCustomElement$2();
69
- }
70
- break;
71
- } });
72
- }
73
-
74
- const SddsModal = Modal;
75
- const defineCustomElement = defineCustomElement$1;
76
-
77
- export { SddsModal, defineCustomElement };
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../types/components";
2
-
3
- interface SddsNavigationTabs extends Components.SddsNavigationTabs, HTMLElement {}
4
- export const SddsNavigationTabs: {
5
- prototype: SddsNavigationTabs;
6
- new (): SddsNavigationTabs;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;