@scania/tegel 0.0.1-beta.6 → 0.0.1-beta.9

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 (415) hide show
  1. package/package.json +4 -4
  2. package/readme.md +7 -8
  3. package/dist/cjs/index-e1c79686.js +0 -1912
  4. package/dist/cjs/index.cjs.js +0 -2
  5. package/dist/cjs/loader.cjs.js +0 -21
  6. package/dist/cjs/popper-11d5f714.js +0 -1801
  7. package/dist/cjs/sdds-accordion-item.cjs.entry.js +0 -34
  8. package/dist/cjs/sdds-accordion.cjs.entry.js +0 -21
  9. package/dist/cjs/sdds-badges.cjs.entry.js +0 -55
  10. package/dist/cjs/sdds-body-cell_2.cjs.entry.js +0 -173
  11. package/dist/cjs/sdds-button.cjs.entry.js +0 -36
  12. package/dist/cjs/sdds-datetime.cjs.entry.js +0 -66
  13. package/dist/cjs/sdds-dropdown-filter.cjs.entry.js +0 -92
  14. package/dist/cjs/sdds-dropdown_2.cjs.entry.js +0 -335
  15. package/dist/cjs/sdds-header-cell.cjs.entry.js +0 -141
  16. package/dist/cjs/sdds-icon.cjs.entry.js +0 -42
  17. package/dist/cjs/sdds-inline-tabs-fullbleed.cjs.entry.js +0 -96
  18. package/dist/cjs/sdds-inline-tabs.cjs.entry.js +0 -211
  19. package/dist/cjs/sdds-modal.cjs.entry.js +0 -49
  20. package/dist/cjs/sdds-navigation-tabs.cjs.entry.js +0 -95
  21. package/dist/cjs/sdds-popover-canvas.cjs.entry.js +0 -76
  22. package/dist/cjs/sdds-popover-menu.cjs.entry.js +0 -75
  23. package/dist/cjs/sdds-slider.cjs.entry.js +0 -336
  24. package/dist/cjs/sdds-spinner.cjs.entry.js +0 -21
  25. package/dist/cjs/sdds-table-body-row-expandable.cjs.entry.js +0 -81
  26. package/dist/cjs/sdds-table-body.cjs.entry.js +0 -289
  27. package/dist/cjs/sdds-table-footer.cjs.entry.js +0 -165
  28. package/dist/cjs/sdds-table-header.cjs.entry.js +0 -100
  29. package/dist/cjs/sdds-table-toolbar.cjs.entry.js +0 -66
  30. package/dist/cjs/sdds-table.cjs.entry.js +0 -69
  31. package/dist/cjs/sdds-textarea.cjs.entry.js +0 -61
  32. package/dist/cjs/sdds-textfield.cjs.entry.js +0 -82
  33. package/dist/cjs/sdds-tooltip.cjs.entry.js +0 -95
  34. package/dist/cjs/tegel.cjs.js +0 -19
  35. package/dist/collection/collection-manifest.json +0 -40
  36. package/dist/collection/components/accordion/accordion-item/accordion-item.css +0 -134
  37. package/dist/collection/components/accordion/accordion-item/accordion-item.js +0 -146
  38. package/dist/collection/components/accordion/accordion.css +0 -77
  39. package/dist/collection/components/accordion/accordion.js +0 -62
  40. package/dist/collection/components/accordion/accordion.stories.js +0 -91
  41. package/dist/collection/components/badge/badge.stories.js +0 -101
  42. package/dist/collection/components/badge/badges.css +0 -42
  43. package/dist/collection/components/badge/badges.js +0 -150
  44. package/dist/collection/components/banner/banner.stories.js +0 -93
  45. package/dist/collection/components/block/block.stories.js +0 -46
  46. package/dist/collection/components/breadcrumb/breadcrumb.stories.js +0 -26
  47. package/dist/collection/components/button/button-component.js +0 -154
  48. package/dist/collection/components/button/button-native.stories.js +0 -183
  49. package/dist/collection/components/button/button-webcomponent.stories.js +0 -182
  50. package/dist/collection/components/button/button.css +0 -658
  51. package/dist/collection/components/card/card.stories.js +0 -181
  52. package/dist/collection/components/checkbox/checkbox.stories.js +0 -54
  53. package/dist/collection/components/chips/chips.stories.js +0 -124
  54. package/dist/collection/components/data-table/native-table.stories.js +0 -182
  55. package/dist/collection/components/data-table/table/table.css +0 -15
  56. package/dist/collection/components/data-table/table/table.js +0 -253
  57. package/dist/collection/components/data-table/table-body/table-body.css +0 -22
  58. package/dist/collection/components/data-table/table-body/table-body.js +0 -425
  59. package/dist/collection/components/data-table/table-body-cell/table-body-cell.css +0 -40
  60. package/dist/collection/components/data-table/table-body-cell/table-body-cell.js +0 -169
  61. package/dist/collection/components/data-table/table-body-row/table-body-row.css +0 -196
  62. package/dist/collection/components/data-table/table-body-row/table-body-row.js +0 -164
  63. package/dist/collection/components/data-table/table-body-row-expandable/table-body-row-expandable.css +0 -79
  64. package/dist/collection/components/data-table/table-body-row-expandable/table-body-row-expandable.js +0 -155
  65. package/dist/collection/components/data-table/table-component-basic.stories.js +0 -163
  66. package/dist/collection/components/data-table/table-component-batch-actions.stories.js +0 -129
  67. package/dist/collection/components/data-table/table-component-bodydata.stories.js +0 -58
  68. package/dist/collection/components/data-table/table-component-custom-width.stories.js +0 -198
  69. package/dist/collection/components/data-table/table-component-event-listeners.stories.js +0 -153
  70. package/dist/collection/components/data-table/table-component-expandable-rows.stories.js +0 -137
  71. package/dist/collection/components/data-table/table-component-filtering.stories.js +0 -139
  72. package/dist/collection/components/data-table/table-component-multiselect.stories.js +0 -160
  73. package/dist/collection/components/data-table/table-component-pagination.stories.js +0 -129
  74. package/dist/collection/components/data-table/table-component-sorting.stories.js +0 -107
  75. package/dist/collection/components/data-table/table-footer/table-footer.css +0 -93
  76. package/dist/collection/components/data-table/table-footer/table-footer.js +0 -355
  77. package/dist/collection/components/data-table/table-header/table-header.css +0 -204
  78. package/dist/collection/components/data-table/table-header/table-header.js +0 -153
  79. package/dist/collection/components/data-table/table-header-cell/table-header-cell.css +0 -126
  80. package/dist/collection/components/data-table/table-header-cell/table-header-cell.js +0 -320
  81. package/dist/collection/components/data-table/table-toolbar/table-toolbar.css +0 -92
  82. package/dist/collection/components/data-table/table-toolbar/table-toolbar.js +0 -142
  83. package/dist/collection/components/datetime/datetime.css +0 -375
  84. package/dist/collection/components/datetime/datetime.js +0 -251
  85. package/dist/collection/components/datetime/datetime.stories.js +0 -149
  86. package/dist/collection/components/divider/divider.stories.js +0 -116
  87. package/dist/collection/components/dropdown/dropdown-filter/dropdown-filter.js +0 -339
  88. package/dist/collection/components/dropdown/dropdown-filter/dropdown-filter.stories.js +0 -130
  89. package/dist/collection/components/dropdown/dropdown-native.stories.js +0 -90
  90. package/dist/collection/components/dropdown/dropdown-option/dropdown-option.js +0 -185
  91. package/dist/collection/components/dropdown/dropdown-wc-default.stories.js +0 -151
  92. package/dist/collection/components/dropdown/dropdown-wc-multiselect.stories.js +0 -146
  93. package/dist/collection/components/dropdown/dropdown.css +0 -891
  94. package/dist/collection/components/dropdown/dropdown.js +0 -554
  95. package/dist/collection/components/footer/footer.stories.js +0 -100
  96. package/dist/collection/components/header/header-all.stories.js +0 -217
  97. package/dist/collection/components/header/header-default.stories.js +0 -47
  98. package/dist/collection/components/header/header-inline.stories.js +0 -113
  99. package/dist/collection/components/header/header-search.stories.js +0 -263
  100. package/dist/collection/components/header/header-toolbar.stories.js +0 -204
  101. package/dist/collection/components/icon/icon-font.stories.js +0 -57
  102. package/dist/collection/components/icon/icon-web-component.stories.js +0 -51
  103. package/dist/collection/components/icon/icon.css +0 -16
  104. package/dist/collection/components/icon/icon.js +0 -89
  105. package/dist/collection/components/icon/iconsArray.js +0 -2
  106. package/dist/collection/components/link/link.stories.js +0 -45
  107. package/dist/collection/components/message/message.stories.js +0 -117
  108. package/dist/collection/components/modal/modal-native.stories.js +0 -121
  109. package/dist/collection/components/modal/modal-webcomponent.stories.js +0 -78
  110. package/dist/collection/components/modal/modal.css +0 -324
  111. package/dist/collection/components/modal/modal.js +0 -146
  112. package/dist/collection/components/popover-canvas/popover-canvas.css +0 -20
  113. package/dist/collection/components/popover-canvas/popover-canvas.js +0 -190
  114. package/dist/collection/components/popover-canvas/popover-canvas.stories.js +0 -87
  115. package/dist/collection/components/popover-menu/popover-menu-icons.stories.js +0 -132
  116. package/dist/collection/components/popover-menu/popover-menu.css +0 -19
  117. package/dist/collection/components/popover-menu/popover-menu.js +0 -189
  118. package/dist/collection/components/popover-menu/popover-menu.stories.js +0 -109
  119. package/dist/collection/components/radio-button/radio-button.stories.js +0 -68
  120. package/dist/collection/components/side-menu/side-menu.stories.js +0 -182
  121. package/dist/collection/components/slider/slider.css +0 -260
  122. package/dist/collection/components/slider/slider.js +0 -682
  123. package/dist/collection/components/slider/slider.stories.js +0 -251
  124. package/dist/collection/components/spinner/spinner.css +0 -79
  125. package/dist/collection/components/spinner/spinner.js +0 -61
  126. package/dist/collection/components/spinner/spinner.stories.js +0 -59
  127. package/dist/collection/components/stepper/stepper.stories.js +0 -139
  128. package/dist/collection/components/tabs/inline-tabs-default/inline-tabs.css +0 -159
  129. package/dist/collection/components/tabs/inline-tabs-default/inline-tabs.js +0 -302
  130. package/dist/collection/components/tabs/inline-tabs-default/inline-tabs.stories.js +0 -65
  131. package/dist/collection/components/tabs/inline-tabs-fullbleed/inline-tabs-fullbleed.css +0 -172
  132. package/dist/collection/components/tabs/inline-tabs-fullbleed/inline-tabs-fullbleed.js +0 -126
  133. package/dist/collection/components/tabs/inline-tabs-fullbleed/inline-tabs-fullbleed.stories.js +0 -43
  134. package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.css +0 -153
  135. package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.js +0 -103
  136. package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.stories.js +0 -32
  137. package/dist/collection/components/textarea/textarea.css +0 -283
  138. package/dist/collection/components/textarea/textarea.js +0 -336
  139. package/dist/collection/components/textarea/textarea.stories.js +0 -149
  140. package/dist/collection/components/textfield/textfield.css +0 -494
  141. package/dist/collection/components/textfield/textfield.js +0 -359
  142. package/dist/collection/components/textfield/textfield.stories.js +0 -222
  143. package/dist/collection/components/toast/toast.stories.js +0 -119
  144. package/dist/collection/components/toggle/toggle.stories.js +0 -62
  145. package/dist/collection/components/tooltip/tooltip.css +0 -46
  146. package/dist/collection/components/tooltip/tooltip.js +0 -200
  147. package/dist/collection/components/tooltip/tooltip.stories.js +0 -113
  148. package/dist/collection/components/utility/colour/background-color.stories.js +0 -96
  149. package/dist/collection/components/utility/colour/text-color.stories.js +0 -94
  150. package/dist/collection/foundations-stories/colour/colour-brand.stories.js +0 -38
  151. package/dist/collection/foundations-stories/colour/colour-scales.stories.js +0 -71
  152. package/dist/collection/foundations-stories/colour/colour-semantic.stories.js +0 -40
  153. package/dist/collection/foundations-stories/grid/grid.stories.js +0 -386
  154. package/dist/collection/foundations-stories/spacing/spacing-element.stories.js +0 -100
  155. package/dist/collection/foundations-stories/spacing/spacing-layout.stories.js +0 -94
  156. package/dist/collection/foundations-stories/typography/typography-body.stories.js +0 -16
  157. package/dist/collection/foundations-stories/typography/typography-detail.stories.js +0 -17
  158. package/dist/collection/foundations-stories/typography/typography-headline.stories.js +0 -39
  159. package/dist/collection/foundations-stories/typography/typography-paragraph.stories.js +0 -12
  160. package/dist/collection/index.js +0 -1
  161. package/dist/collection/stories/assets/code-brackets.svg +0 -1
  162. package/dist/collection/stories/assets/colors.svg +0 -1
  163. package/dist/collection/stories/assets/comments.svg +0 -1
  164. package/dist/collection/stories/assets/direction.svg +0 -1
  165. package/dist/collection/stories/assets/flow.svg +0 -1
  166. package/dist/collection/stories/assets/plugin.svg +0 -1
  167. package/dist/collection/stories/assets/repo.svg +0 -1
  168. package/dist/collection/stories/assets/stackalt.svg +0 -1
  169. package/dist/collection/utils/utils.js +0 -12
  170. package/dist/components/dropdown-option.js +0 -100
  171. package/dist/components/dropdown.js +0 -296
  172. package/dist/components/icon.js +0 -58
  173. package/dist/components/index.d.ts +0 -50
  174. package/dist/components/index.js +0 -30
  175. package/dist/components/popper.js +0 -1799
  176. package/dist/components/sdds-accordion-item.d.ts +0 -11
  177. package/dist/components/sdds-accordion-item.js +0 -60
  178. package/dist/components/sdds-accordion.d.ts +0 -11
  179. package/dist/components/sdds-accordion.js +0 -38
  180. package/dist/components/sdds-badges.d.ts +0 -11
  181. package/dist/components/sdds-badges.js +0 -76
  182. package/dist/components/sdds-body-cell.d.ts +0 -11
  183. package/dist/components/sdds-body-cell.js +0 -6
  184. package/dist/components/sdds-button.d.ts +0 -11
  185. package/dist/components/sdds-button.js +0 -58
  186. package/dist/components/sdds-datetime.d.ts +0 -11
  187. package/dist/components/sdds-datetime.js +0 -90
  188. package/dist/components/sdds-dropdown-filter.d.ts +0 -11
  189. package/dist/components/sdds-dropdown-filter.js +0 -138
  190. package/dist/components/sdds-dropdown-option.d.ts +0 -11
  191. package/dist/components/sdds-dropdown-option.js +0 -6
  192. package/dist/components/sdds-dropdown.d.ts +0 -11
  193. package/dist/components/sdds-dropdown.js +0 -6
  194. package/dist/components/sdds-header-cell.d.ts +0 -11
  195. package/dist/components/sdds-header-cell.js +0 -173
  196. package/dist/components/sdds-icon.d.ts +0 -11
  197. package/dist/components/sdds-icon.js +0 -6
  198. package/dist/components/sdds-inline-tabs-fullbleed.d.ts +0 -11
  199. package/dist/components/sdds-inline-tabs-fullbleed.js +0 -115
  200. package/dist/components/sdds-inline-tabs.d.ts +0 -11
  201. package/dist/components/sdds-inline-tabs.js +0 -235
  202. package/dist/components/sdds-modal.d.ts +0 -11
  203. package/dist/components/sdds-modal.js +0 -69
  204. package/dist/components/sdds-navigation-tabs.d.ts +0 -11
  205. package/dist/components/sdds-navigation-tabs.js +0 -113
  206. package/dist/components/sdds-popover-canvas.d.ts +0 -11
  207. package/dist/components/sdds-popover-canvas.js +0 -97
  208. package/dist/components/sdds-popover-menu.d.ts +0 -11
  209. package/dist/components/sdds-popover-menu.js +0 -96
  210. package/dist/components/sdds-slider.d.ts +0 -11
  211. package/dist/components/sdds-slider.js +0 -366
  212. package/dist/components/sdds-spinner.d.ts +0 -11
  213. package/dist/components/sdds-spinner.js +0 -37
  214. package/dist/components/sdds-table-body-row-expandable.d.ts +0 -11
  215. package/dist/components/sdds-table-body-row-expandable.js +0 -104
  216. package/dist/components/sdds-table-body-row.d.ts +0 -11
  217. package/dist/components/sdds-table-body-row.js +0 -6
  218. package/dist/components/sdds-table-body.d.ts +0 -11
  219. package/dist/components/sdds-table-body.js +0 -337
  220. package/dist/components/sdds-table-footer.d.ts +0 -11
  221. package/dist/components/sdds-table-footer.js +0 -196
  222. package/dist/components/sdds-table-header.d.ts +0 -11
  223. package/dist/components/sdds-table-header.js +0 -125
  224. package/dist/components/sdds-table-toolbar.d.ts +0 -11
  225. package/dist/components/sdds-table-toolbar.js +0 -88
  226. package/dist/components/sdds-table.d.ts +0 -11
  227. package/dist/components/sdds-table.js +0 -92
  228. package/dist/components/sdds-textarea.d.ts +0 -11
  229. package/dist/components/sdds-textarea.js +0 -90
  230. package/dist/components/sdds-textfield.d.ts +0 -11
  231. package/dist/components/sdds-textfield.js +0 -111
  232. package/dist/components/sdds-tooltip.d.ts +0 -11
  233. package/dist/components/sdds-tooltip.js +0 -116
  234. package/dist/components/table-body-cell.js +0 -102
  235. package/dist/components/table-body-row.js +0 -119
  236. package/dist/esm/index-b67b15a6.js +0 -1884
  237. package/dist/esm/index.js +0 -1
  238. package/dist/esm/loader.js +0 -17
  239. package/dist/esm/polyfills/core-js.js +0 -11
  240. package/dist/esm/polyfills/css-shim.js +0 -1
  241. package/dist/esm/polyfills/dom.js +0 -79
  242. package/dist/esm/polyfills/es5-html-element.js +0 -1
  243. package/dist/esm/polyfills/index.js +0 -34
  244. package/dist/esm/polyfills/system.js +0 -6
  245. package/dist/esm/popper-f860750c.js +0 -1799
  246. package/dist/esm/sdds-accordion-item.entry.js +0 -30
  247. package/dist/esm/sdds-accordion.entry.js +0 -17
  248. package/dist/esm/sdds-badges.entry.js +0 -51
  249. package/dist/esm/sdds-body-cell_2.entry.js +0 -168
  250. package/dist/esm/sdds-button.entry.js +0 -32
  251. package/dist/esm/sdds-datetime.entry.js +0 -62
  252. package/dist/esm/sdds-dropdown-filter.entry.js +0 -88
  253. package/dist/esm/sdds-dropdown_2.entry.js +0 -330
  254. package/dist/esm/sdds-header-cell.entry.js +0 -137
  255. package/dist/esm/sdds-icon.entry.js +0 -38
  256. package/dist/esm/sdds-inline-tabs-fullbleed.entry.js +0 -92
  257. package/dist/esm/sdds-inline-tabs.entry.js +0 -207
  258. package/dist/esm/sdds-modal.entry.js +0 -45
  259. package/dist/esm/sdds-navigation-tabs.entry.js +0 -91
  260. package/dist/esm/sdds-popover-canvas.entry.js +0 -72
  261. package/dist/esm/sdds-popover-menu.entry.js +0 -71
  262. package/dist/esm/sdds-slider.entry.js +0 -332
  263. package/dist/esm/sdds-spinner.entry.js +0 -17
  264. package/dist/esm/sdds-table-body-row-expandable.entry.js +0 -77
  265. package/dist/esm/sdds-table-body.entry.js +0 -285
  266. package/dist/esm/sdds-table-footer.entry.js +0 -161
  267. package/dist/esm/sdds-table-header.entry.js +0 -96
  268. package/dist/esm/sdds-table-toolbar.entry.js +0 -62
  269. package/dist/esm/sdds-table.entry.js +0 -65
  270. package/dist/esm/sdds-textarea.entry.js +0 -57
  271. package/dist/esm/sdds-textfield.entry.js +0 -78
  272. package/dist/esm/sdds-tooltip.entry.js +0 -91
  273. package/dist/esm/tegel.js +0 -17
  274. package/dist/index.cjs.js +0 -1
  275. package/dist/index.js +0 -1
  276. package/dist/node_modules/@types/jest/index.d.ts +0 -1512
  277. package/dist/tegel/index.esm.js +0 -0
  278. package/dist/tegel/p-040efb32.entry.js +0 -1
  279. package/dist/tegel/p-12ca5cfa.entry.js +0 -1
  280. package/dist/tegel/p-157e1618.js +0 -2
  281. package/dist/tegel/p-1fe61cf6.entry.js +0 -1
  282. package/dist/tegel/p-2f376504.entry.js +0 -1
  283. package/dist/tegel/p-44ced895.entry.js +0 -1
  284. package/dist/tegel/p-4880f03d.entry.js +0 -1
  285. package/dist/tegel/p-4aba73a3.entry.js +0 -1
  286. package/dist/tegel/p-4b58a02c.entry.js +0 -1
  287. package/dist/tegel/p-4cb85347.entry.js +0 -1
  288. package/dist/tegel/p-52031b5a.entry.js +0 -1
  289. package/dist/tegel/p-677baf7f.entry.js +0 -1
  290. package/dist/tegel/p-71797eaf.entry.js +0 -1
  291. package/dist/tegel/p-7373284c.entry.js +0 -1
  292. package/dist/tegel/p-7451779b.entry.js +0 -1
  293. package/dist/tegel/p-77aeea3b.entry.js +0 -1
  294. package/dist/tegel/p-8582d6a7.entry.js +0 -1
  295. package/dist/tegel/p-96021bd0.entry.js +0 -1
  296. package/dist/tegel/p-9d8caf51.entry.js +0 -1
  297. package/dist/tegel/p-a5919930.entry.js +0 -1
  298. package/dist/tegel/p-b01cface.entry.js +0 -1
  299. package/dist/tegel/p-bf896643.entry.js +0 -1
  300. package/dist/tegel/p-c311725c.entry.js +0 -1
  301. package/dist/tegel/p-cf72dfd9.entry.js +0 -1
  302. package/dist/tegel/p-d91caec6.entry.js +0 -1
  303. package/dist/tegel/p-e10eec33.entry.js +0 -1
  304. package/dist/tegel/p-ec26fc38.js +0 -1
  305. package/dist/tegel/p-f2262a69.entry.js +0 -1
  306. package/dist/tegel/p-f2f7aa45.entry.js +0 -1
  307. package/dist/tegel/tegel.css +0 -101
  308. package/dist/tegel/tegel.esm.js +0 -1
  309. package/dist/types/components/accordion/accordion-item/accordion-item.d.ts +0 -17
  310. package/dist/types/components/accordion/accordion.d.ts +0 -7
  311. package/dist/types/components/accordion/accordion.stories.d.ts +0 -77
  312. package/dist/types/components/badge/badge.stories.d.ts +0 -66
  313. package/dist/types/components/badge/badges.d.ts +0 -16
  314. package/dist/types/components/banner/banner.stories.d.ts +0 -68
  315. package/dist/types/components/block/block.stories.d.ts +0 -31
  316. package/dist/types/components/breadcrumb/breadcrumb.stories.d.ts +0 -12
  317. package/dist/types/components/button/button-component.d.ts +0 -15
  318. package/dist/types/components/button/button-native.stories.d.ts +0 -144
  319. package/dist/types/components/button/button-webcomponent.stories.d.ts +0 -143
  320. package/dist/types/components/card/card.stories.d.ts +0 -114
  321. package/dist/types/components/checkbox/checkbox.stories.d.ts +0 -39
  322. package/dist/types/components/chips/chips.stories.d.ts +0 -81
  323. package/dist/types/components/data-table/native-table.stories.d.ts +0 -147
  324. package/dist/types/components/data-table/table/table.d.ts +0 -47
  325. package/dist/types/components/data-table/table-body/table-body.d.ts +0 -54
  326. package/dist/types/components/data-table/table-body-cell/table-body-cell.d.ts +0 -24
  327. package/dist/types/components/data-table/table-body-row/table-body-row.d.ts +0 -27
  328. package/dist/types/components/data-table/table-body-row-expandable/table-body-row-expandable.d.ts +0 -27
  329. package/dist/types/components/data-table/table-component-basic.stories.d.ts +0 -100
  330. package/dist/types/components/data-table/table-component-batch-actions.stories.d.ts +0 -98
  331. package/dist/types/components/data-table/table-component-bodydata.stories.d.ts +0 -38
  332. package/dist/types/components/data-table/table-component-custom-width.stories.d.ts +0 -147
  333. package/dist/types/components/data-table/table-component-event-listeners.stories.d.ts +0 -87
  334. package/dist/types/components/data-table/table-component-expandable-rows.stories.d.ts +0 -87
  335. package/dist/types/components/data-table/table-component-filtering.stories.d.ts +0 -100
  336. package/dist/types/components/data-table/table-component-multiselect.stories.d.ts +0 -100
  337. package/dist/types/components/data-table/table-component-pagination.stories.d.ts +0 -100
  338. package/dist/types/components/data-table/table-component-sorting.stories.d.ts +0 -79
  339. package/dist/types/components/data-table/table-footer/table-footer.d.ts +0 -50
  340. package/dist/types/components/data-table/table-header/table-header.d.ts +0 -27
  341. package/dist/types/components/data-table/table-header-cell/table-header-cell.d.ts +0 -45
  342. package/dist/types/components/data-table/table-toolbar/table-toolbar.d.ts +0 -22
  343. package/dist/types/components/datetime/datetime.d.ts +0 -32
  344. package/dist/types/components/datetime/datetime.stories.d.ts +0 -80
  345. package/dist/types/components/divider/divider.stories.d.ts +0 -72
  346. package/dist/types/components/dropdown/dropdown-filter/dropdown-filter.d.ts +0 -42
  347. package/dist/types/components/dropdown/dropdown-filter/dropdown-filter.stories.d.ts +0 -73
  348. package/dist/types/components/dropdown/dropdown-native.stories.d.ts +0 -57
  349. package/dist/types/components/dropdown/dropdown-option/dropdown-option.d.ts +0 -19
  350. package/dist/types/components/dropdown/dropdown-wc-default.stories.d.ts +0 -115
  351. package/dist/types/components/dropdown/dropdown-wc-multiselect.stories.d.ts +0 -115
  352. package/dist/types/components/dropdown/dropdown.d.ts +0 -56
  353. package/dist/types/components/footer/footer.stories.d.ts +0 -23
  354. package/dist/types/components/header/header-all.stories.d.ts +0 -29
  355. package/dist/types/components/header/header-default.stories.d.ts +0 -29
  356. package/dist/types/components/header/header-inline.stories.d.ts +0 -29
  357. package/dist/types/components/header/header-search.stories.d.ts +0 -29
  358. package/dist/types/components/header/header-toolbar.stories.d.ts +0 -29
  359. package/dist/types/components/icon/icon-font.stories.d.ts +0 -38
  360. package/dist/types/components/icon/icon-web-component.stories.d.ts +0 -38
  361. package/dist/types/components/icon/icon.d.ts +0 -12
  362. package/dist/types/components/link/link.stories.d.ts +0 -33
  363. package/dist/types/components/message/message.stories.d.ts +0 -67
  364. package/dist/types/components/modal/modal-native.stories.d.ts +0 -51
  365. package/dist/types/components/modal/modal-webcomponent.stories.d.ts +0 -44
  366. package/dist/types/components/modal/modal.d.ts +0 -16
  367. package/dist/types/components/popover-canvas/popover-canvas.d.ts +0 -18
  368. package/dist/types/components/popover-canvas/popover-canvas.stories.d.ts +0 -25
  369. package/dist/types/components/popover-menu/popover-menu-icons.stories.d.ts +0 -27
  370. package/dist/types/components/popover-menu/popover-menu.d.ts +0 -18
  371. package/dist/types/components/popover-menu/popover-menu.stories.d.ts +0 -27
  372. package/dist/types/components/radio-button/radio-button.stories.d.ts +0 -41
  373. package/dist/types/components/side-menu/side-menu.stories.d.ts +0 -42
  374. package/dist/types/components/slider/slider.d.ts +0 -82
  375. package/dist/types/components/slider/slider.stories.d.ts +0 -156
  376. package/dist/types/components/spinner/spinner.d.ts +0 -7
  377. package/dist/types/components/spinner/spinner.stories.d.ts +0 -37
  378. package/dist/types/components/stepper/stepper.stories.d.ts +0 -56
  379. package/dist/types/components/tabs/inline-tabs-default/inline-tabs.d.ts +0 -41
  380. package/dist/types/components/tabs/inline-tabs-default/inline-tabs.stories.d.ts +0 -41
  381. package/dist/types/components/tabs/inline-tabs-fullbleed/inline-tabs-fullbleed.d.ts +0 -20
  382. package/dist/types/components/tabs/inline-tabs-fullbleed/inline-tabs-fullbleed.stories.d.ts +0 -25
  383. package/dist/types/components/tabs/navigation-tabs/navigation-tabs.d.ts +0 -18
  384. package/dist/types/components/tabs/navigation-tabs/navigation-tabs.stories.d.ts +0 -13
  385. package/dist/types/components/textarea/textarea.d.ts +0 -41
  386. package/dist/types/components/textarea/textarea.stories.d.ts +0 -111
  387. package/dist/types/components/textfield/textfield.d.ts +0 -42
  388. package/dist/types/components/textfield/textfield.stories.d.ts +0 -176
  389. package/dist/types/components/toast/toast.stories.d.ts +0 -58
  390. package/dist/types/components/toggle/toggle.stories.d.ts +0 -42
  391. package/dist/types/components/tooltip/tooltip.d.ts +0 -20
  392. package/dist/types/components/tooltip/tooltip.stories.d.ts +0 -54
  393. package/dist/types/components/utility/colour/background-color.stories.d.ts +0 -58
  394. package/dist/types/components/utility/colour/text-color.stories.d.ts +0 -58
  395. package/dist/types/components.d.ts +0 -1752
  396. package/dist/types/foundations-stories/colour/colour-brand.stories.d.ts +0 -13
  397. package/dist/types/foundations-stories/colour/colour-scales.stories.d.ts +0 -13
  398. package/dist/types/foundations-stories/colour/colour-semantic.stories.d.ts +0 -13
  399. package/dist/types/foundations-stories/grid/grid.stories.d.ts +0 -35
  400. package/dist/types/foundations-stories/spacing/spacing-element.stories.d.ts +0 -8
  401. package/dist/types/foundations-stories/spacing/spacing-layout.stories.d.ts +0 -8
  402. package/dist/types/foundations-stories/typography/typography-body.stories.d.ts +0 -8
  403. package/dist/types/foundations-stories/typography/typography-detail.stories.d.ts +0 -8
  404. package/dist/types/foundations-stories/typography/typography-headline.stories.d.ts +0 -21
  405. package/dist/types/foundations-stories/typography/typography-paragraph.stories.d.ts +0 -8
  406. package/dist/types/global.d.ts +0 -2
  407. package/dist/types/index.d.ts +0 -1
  408. package/dist/types/stencil-public-runtime.d.ts +0 -1581
  409. package/dist/types/utils/utils.d.ts +0 -2
  410. package/loader/cdn.js +0 -3
  411. package/loader/index.cjs.js +0 -3
  412. package/loader/index.d.ts +0 -12
  413. package/loader/index.es2017.js +0 -3
  414. package/loader/index.js +0 -4
  415. package/loader/package.json +0 -11
@@ -1,235 +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-bg);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-inlline-tabs-scroll-btn-bg);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-hover-bg)}.sdds-inline-tabs--forward:active,.sdds-inline-tabs--back:active{background-color:var(--sdds-inline-tabs-scroll-btn-active-bg)}.sdds-inline-tabs--forward:focus,.sdds-inline-tabs--back:focus{outline:2px solid var(--sdds-blue-400);outline-offset:-2px}.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-bg);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-bg);transition:width 0.15s ease-in-out}.sdds-inline-tabs--tab:hover{background-color:var(--sdds-inline-tabs-tab-hover-bg);color:var(--sdds-inline-tabs-tab-hover-color);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-active-bg);color:var(--sdds-inline-tabs-tab-active-color);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-active-bg)}.sdds-inline-tabs--tab__active::after{width:calc(100% + 2px);left:-1px;background-color:var(--sdds-inline-tabs-tab-active-indicator-bg)}.sdds-inline-tabs--tab__active::before{content:\" \";background-color:var(--sdds-inline-tabs-tab-active-bg);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-inline-tabs-tab-color);pointer-events:none}.sdds-inline-tabs--tab:disabled>*,.sdds-inline-tabs--tab__disabled>*{opacity:0.16}.sdds-inline-tabs-primary .sdds-inline-tabs--tab__active{background-color:var(--sdds-inline-tabs-tab-active-bg)}.sdds-inline-tabs-primary .sdds-inline-tabs-main{background-color:var(--sdds-inline-tabs-main-bg)}.sdds-inline-tabs-secondary .sdds-inline-tabs--tab__active{background-color:var(--sdds-inline-tabs-tab-active-ongrey-bg)}.sdds-inline-tabs-secondary .sdds-inline-tabs-main{background-color:var(--sdds-inline-tabs-main-ongrey-bg)}";
4
-
5
- const InlineTabs = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
6
- constructor() {
7
- super();
8
- this.__registerHost();
9
- this.__attachShadow();
10
- 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)
11
- this.navWrapperElement = null; // reference to container with nav buttons
12
- this.tabWrapperElement = null; // reference to container with slotted children
13
- this.componentWidth = 0; // visible width of this component
14
- this.buttonsWidth = 0; // total width of all nav items combined
15
- this.scrollWidth = 0; // total amount that is possible to scroll in the nav wrapper
16
- this.useAutoHeight = false; // set height for slotted children or not
17
- this.defaultTab = '';
18
- this.autoHeight = false;
19
- this.modeVariant = 'primary';
20
- this.tabs = [];
21
- this.buttonWidth = 0;
22
- this.tabHeight = 0;
23
- this.showLeftScroll = false;
24
- this.showRightScroll = false;
25
- }
26
- /** used for switching to a tab programmatically */
27
- async showTab(key) {
28
- this.switchToTab(key);
29
- }
30
- _generateKeyFromName(name) {
31
- return name
32
- .replace(/\s/g, '-')
33
- .replace(/[^a-z0-9-]/gi, '')
34
- .toLowerCase();
35
- }
36
- componentWillLoad() {
37
- this._initComponent();
38
- }
39
- _initComponent(createInitialState = true) {
40
- this.tabs = [];
41
- if (this.autoHeight) {
42
- this.useAutoHeight = true;
43
- }
44
- Array.from(this.host.children).map((item, index) => {
45
- const name = item.dataset.name ? item.dataset.name : item.getAttribute('name') || `Tab ${index + 1}`;
46
- let key = item.dataset.tabKey ? item.dataset.tabKey : item.getAttribute('tab-key');
47
- if (!key) {
48
- key = this._generateKeyFromName(name);
49
- }
50
- if ((item.getAttribute('data-default') ? item.getAttribute('data-default') : item.getAttribute('default')) !== null) {
51
- this.startingTab = key;
52
- }
53
- let disabled = false;
54
- if ((item.getAttribute('aria-disabled') ? item.getAttribute('aria-disabled') : item.getAttribute('disabled')) !== null) {
55
- disabled = true;
56
- }
57
- this.tabs.push({
58
- name,
59
- key,
60
- element: item,
61
- disabled,
62
- visible: true,
63
- initialDisplay: window.getComputedStyle(item).display,
64
- });
65
- });
66
- createInitialState && this._setInitialState();
67
- this.tabs = Array.from(this.tabs);
68
- }
69
- _calculateButtonWidth() {
70
- const navButtons = this.navWrapperElement.querySelectorAll('button.sdds-inline-tabs--tab');
71
- let best = 0;
72
- Array.from(navButtons).forEach((navButton) => {
73
- const oldStyle = navButton.style.width;
74
- navButton.style.width = '';
75
- const width = navButton.clientWidth;
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(tab => {
86
- const oldStyle = tab.element.style.display;
87
- tab.element.style.display = '';
88
- const height = tab.element.clientHeight;
89
- tab.element.style.display = oldStyle;
90
- if (height > best) {
91
- best = height;
92
- }
93
- });
94
- this.tabHeight = best;
95
- }
96
- componentDidRender() {
97
- this._calculateTabHeight();
98
- this._calculateButtonWidth();
99
- }
100
- componentDidLoad() {
101
- const mutationObserver = new MutationObserver(( /* mutations, observer */) => {
102
- const visibleTab = this.tabs.find(tab => tab.visible);
103
- this._initComponent(false);
104
- this._calculateTabHeight();
105
- this._calculateButtonWidth();
106
- visibleTab && this.switchToTab(visibleTab.key);
107
- });
108
- const resizeObserver = new ResizeObserver(entries => {
109
- for (const entry of entries) {
110
- const componentWidth = entry.contentRect.width;
111
- let buttonsWidth = 0;
112
- const navButtons = entry.target.querySelectorAll('button.sdds-inline-tabs--tab');
113
- Array.from(navButtons).forEach((navButton) => {
114
- buttonsWidth += navButton.clientWidth;
115
- });
116
- this.componentWidth = componentWidth;
117
- this.buttonsWidth = buttonsWidth;
118
- this.scrollWidth = buttonsWidth - componentWidth;
119
- if (this.buttonsWidth > this.componentWidth) {
120
- this._evaluateScrollButtons();
121
- }
122
- else {
123
- this.showLeftScroll = false;
124
- this.showRightScroll = false;
125
- }
126
- this._calculateTabHeight();
127
- }
128
- });
129
- mutationObserver.observe(this.host, {
130
- childList: true,
131
- attributes: true,
132
- });
133
- resizeObserver.observe(this.navWrapperElement);
134
- this._calculateButtonWidth();
135
- this._calculateTabHeight();
136
- }
137
- _setInitialState() {
138
- if (this.defaultTab) {
139
- this.startingTab = this.defaultTab;
140
- }
141
- this.tabs.map((tab, index) => {
142
- if (this.startingTab) {
143
- if (tab.key != this.startingTab) {
144
- this._hideTab(tab);
145
- }
146
- }
147
- else {
148
- if (index > 0) {
149
- this._hideTab(tab);
150
- }
151
- }
152
- });
153
- }
154
- _showTab(tab) {
155
- tab.element.style.display = '';
156
- tab.visible = true;
157
- }
158
- _hideTab(tab) {
159
- tab.element.style.display = 'none';
160
- tab.visible = false;
161
- }
162
- switchToTab(key) {
163
- this.tabs.map(tab => {
164
- if (tab.key == key) {
165
- this._showTab(tab);
166
- }
167
- else {
168
- this._hideTab(tab);
169
- }
170
- });
171
- this.tabs = Array.from(this.tabs);
172
- }
173
- _scrollRight() {
174
- const scroll = this.navWrapperElement.scrollLeft;
175
- this.navWrapperElement.scrollLeft = scroll + this.buttonWidth;
176
- this._evaluateScrollButtons();
177
- }
178
- _scrollLeft() {
179
- const scroll = this.navWrapperElement.scrollLeft;
180
- this.navWrapperElement.scrollLeft = scroll - this.buttonWidth;
181
- this._evaluateScrollButtons();
182
- }
183
- _evaluateScrollButtons() {
184
- const scroll = this.navWrapperElement.scrollLeft;
185
- if (scroll >= this.scrollWidth) {
186
- this.showRightScroll = false;
187
- }
188
- else {
189
- this.showRightScroll = true;
190
- }
191
- if (scroll <= 0) {
192
- this.showLeftScroll = false;
193
- }
194
- else {
195
- this.showLeftScroll = true;
196
- }
197
- }
198
- render() {
199
- const heightStyle = {};
200
- if (this.useAutoHeight) {
201
- heightStyle['height'] = `${this.tabHeight}px`;
202
- }
203
- return (h(Host, null, h("div", { class: `sdds-inline-tabs sdds-inline-tabs sdds-inline-tabs-${this.modeVariant}` }, h("nav", { class: "sdds-inline-tabs-header" }, h("div", { ref: el => (this.navWrapperElement = el), 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' : ''}`, 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", fill: "#0D0F13" }))), h("button", { class: `sdds-inline-tabs--back ${this.showLeftScroll ? 'sdds-inline-tabs--back__show' : ''}`, 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", fill: "#0D0F13" }))))), h("div", { ref: el => (this.tabWrapperElement = el), class: "sdds-inline-tabs-main", style: heightStyle }, h("slot", null)))));
204
- }
205
- get host() { return this; }
206
- static get style() { return inlineTabsCss; }
207
- }, [1, "sdds-inline-tabs", {
208
- "defaultTab": [1, "default-tab"],
209
- "autoHeight": [4, "auto-height"],
210
- "modeVariant": [1, "mode-variant"],
211
- "tabs": [32],
212
- "buttonWidth": [32],
213
- "tabHeight": [32],
214
- "showLeftScroll": [32],
215
- "showRightScroll": [32],
216
- "showTab": [64]
217
- }]);
218
- function defineCustomElement$1() {
219
- if (typeof customElements === "undefined") {
220
- return;
221
- }
222
- const components = ["sdds-inline-tabs"];
223
- components.forEach(tagName => { switch (tagName) {
224
- case "sdds-inline-tabs":
225
- if (!customElements.get(tagName)) {
226
- customElements.define(tagName, InlineTabs);
227
- }
228
- break;
229
- } });
230
- }
231
-
232
- const SddsInlineTabs = InlineTabs;
233
- const defineCustomElement = defineCustomElement$1;
234
-
235
- export { SddsInlineTabs, 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,69 +0,0 @@
1
- import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
-
3
- const modalCss = ":root,html{--sdds-modal-backdrop:rgba(0 0 0 / 40%);--sdds-modal-bg:var(--sdds-white);--sdds-modal-text:var(--sdds-grey-958);--sdds-modal-icon:var(--sdds-black);--sdds-modal-scrollbar:var(--sdds-grey-300);--sdds-modal-scrollbar-track:var(--sdds-grey-300);--sdds-modal-scrollbar-thumb:var(--sdds-grey-500)}:root .sdds-theme-light,html .sdds-theme-light{--sdds-modal-backdrop:rgba(0 0 0 / 40%);--sdds-modal-bg:var(--sdds-white);--sdds-modal-text:var(--sdds-grey-958);--sdds-modal-icon:var(--sdds-black);--sdds-modal-scrollbar:var(--sdds-grey-300);--sdds-modal-scrollbar-track:var(--sdds-grey-300);--sdds-modal-scrollbar-thumb:var(--sdds-grey-500)}:root .sdds-theme-dark,html .sdds-theme-dark{--sdds-modal-backdrop:rgba(0 0 0 / 40%);--sdds-modal-bg:var(--sdds-grey-900);--sdds-modal-text:var(--sdds-white);--sdds-modal-icon:var(--sdds-white);--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-bg);z-index:4;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:40px;margin:0 -16px 0 0;max-height:calc(85vh - 36px);overflow-y:auto}.sdds-modal__actions-sticky .sdds-modal-actions{position:absolute;bottom:0;left:0;right:0;background-color:var(--sdds-modal-bg);padding:var(--sdds-spacing-element-16);display:flex;gap:16px}.sdds-modal__actions-static .sdds-modal-actions{background-color:var(--sdds-modal-bg);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-bg);z-index:1}.sdds-modal-header::before{content:\" \";position:absolute;height:16px;top:-16px;width:100%;background-color:var(--sdds-modal-bg)}.sdds-modal-headline{font:var(--sdds-headline-05);letter-spacing:var(--sdds-headline-05-ls);margin:0;flex:1}.sdds-modal-body{font:var(--sdds-body-01);letter-spacing:var(--sdds-body-01-ls);padding-bottom:40px;margin:0 -16px 0 0;overflow-y:visible;}.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{left:0;top:0;position:fixed;height:100%;width:100%;z-index:40000;background-color:var(--sdds-modal-backdrop);padding:0 16px}@media (max-width: 320px){.sdds-modal-backdrop{padding:0}}.sdds-modal-backdrop.show{display:flex}.sdds-modal-backdrop.hide{display:none}.sdds-modal-btn{display:inline-block;width:16px;height:auto;background-image: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='%23171719'/%3E%3C/svg%3E%0A\");background-repeat:no-repeat;cursor:pointer}@media (min-width: 320px){.sdds-modal-btn{margin-left:var(--sdds-spacing-element-16)}}@media (min-width: 1056px){.sdds-modal-btn{margin-left:var(--sdds-spacing-element-48)}}.sdds-modal-overflow{overflow:hidden}:host{left:0;top:0;position:fixed;height:100%;width:100%;z-index:40000;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-btn{border:none;background-color:transparent;}:host(.show){display:flex}:host(.hide){display:none}";
4
-
5
- const Modal = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
6
- constructor() {
7
- super();
8
- this.__registerHost();
9
- this.__attachShadow();
10
- this.prevent = false;
11
- this.size = 'md';
12
- this.actions = 'static';
13
- this.open = false;
14
- }
15
- /** Shows the modal */
16
- async openModal() {
17
- this.open = true;
18
- }
19
- setDissmissButtons() {
20
- const nodes = this.el.querySelectorAll('[data-dismiss-modal]');
21
- nodes.forEach((el) => {
22
- el.addEventListener('click', () => {
23
- this.open = false;
24
- });
25
- });
26
- }
27
- handleClick(e) {
28
- const targetList = e.composedPath();
29
- const target = targetList[0];
30
- if (target.classList[0] === 'sdds-modal-btn' ||
31
- (target.classList[0] === 'sdds-modal-backdrop' && this.prevent === false)) {
32
- this.open = false;
33
- }
34
- }
35
- componentDidRender() {
36
- this.setDissmissButtons();
37
- }
38
- render() {
39
- return (h(Host, { onClick: (event) => {
40
- this.handleClick(event);
41
- }, 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-btn" })), h("div", { class: "sdds-modal-body" }, h("slot", { name: "sdds-modal-body" })), h("div", { class: "sdds-modal-actions" }, h("slot", { name: "sdds-modal-actions" })))));
42
- }
43
- get el() { return this; }
44
- static get style() { return modalCss; }
45
- }, [1, "sdds-modal", {
46
- "prevent": [4],
47
- "size": [1],
48
- "actions": [1],
49
- "open": [4],
50
- "openModal": [64]
51
- }]);
52
- function defineCustomElement$1() {
53
- if (typeof customElements === "undefined") {
54
- return;
55
- }
56
- const components = ["sdds-modal"];
57
- components.forEach(tagName => { switch (tagName) {
58
- case "sdds-modal":
59
- if (!customElements.get(tagName)) {
60
- customElements.define(tagName, Modal);
61
- }
62
- break;
63
- } });
64
- }
65
-
66
- const SddsModal = Modal;
67
- const defineCustomElement = defineCustomElement$1;
68
-
69
- 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;
@@ -1,113 +0,0 @@
1
- import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
-
3
- const navigationTabsCss = ".sdds-navigation-tabs{box-sizing:border-box;background-color:var(--sdds-navigation-tabs-bg);position:relative;display:flex;}.sdds-navigation-tabs *{box-sizing:border-box}.sdds-navigation-tabs::after{content:\" \";display:block;border-bottom:1px solid var(--sdds-navigation-tabs-horizontal-divider-bg);left:0;right:0;bottom:0;position:absolute}.sdds-navigation-tabs-wrapper{display:flex;flex-wrap:nowrap;width:100%;overflow-x:scroll;scrollbar-width:none}.sdds-navigation-tabs-wrapper::-webkit-scrollbar{display:none}.sdds-navigation-tabs-forward{cursor:pointer;width:48px;height:100%;border:0;position:absolute;right:0;top:0;background-color:var(--sdds-navigation-tabs-scroll-btn-bg);display:flex;justify-content:center;align-items:center;opacity:0;pointer-events:none}.sdds-navigation-tabs-forward__show{opacity:1;pointer-events:all}.sdds-navigation-tabs-forward:hover{background-color:var(--sdds-navigation-tabs-scroll-btn-hover-bg);text-decoration:none}.sdds-navigation-tabs-forward:active{background-color:var(--sdds-navigation-tabs-scroll-btn-active-bg)}.sdds-navigation-tabs-forward:focus{outline:2px solid var(--sdds-blue-400);outline-offset:-2px}.sdds-navigation-tabs-back{cursor:pointer;width:48px;height:100%;border:0;position:absolute;left:0;top:0;background-color:var(--sdds-navigation-tabs-scroll-btn-bg);display:flex;justify-content:center;align-items:center;opacity:0;pointer-events:none}.sdds-navigation-tabs-back__show{opacity:1;pointer-events:all}.sdds-navigation-tabs-back:hover{background-color:var(--sdds-navigation-tabs-scroll-btn-hover-bg)}.sdds-navigation-tabs-back:active{background-color:var(--sdds-navigation-tabs-scroll-btn-active-bg)}.sdds-navigation-tabs-back:focus{outline:2px solid var(--sdds-blue-400);outline-offset:-2px}::slotted(.sdds-navigation-tabs-tab){font:var(--sdds-headline-07);letter-spacing:var(--sdds-headline-07-ls);color:rgba(0, 21, 51, 0.6);padding:26px 0;margin-right:32px;text-decoration:none;display:block;position:relative;transition:color 0.15s ease-in-out;white-space:nowrap;background-color:transparent;border:0}::slotted(.sdds-navigation-tabs-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-navigation-tabs-tab-hover-indicator-bg);transition:width 0.15s ease-in-out;z-index:10}::slotted(.sdds-navigation-tabs-tab:first-child){margin-left:32px}::slotted(.sdds-navigation-tabs-tab:last-child){margin-right:32px}::slotted(.sdds-navigation-tabs-tab:hover){color:var(--sdds-navigation-tabs-tab-hover-color)}::slotted(.sdds-navigation-tabs-tab:hover)::after{width:100%}::slotted(.sdds-navigation-tabs-tab:focus){outline:2px solid var(--sdds-blue-400);outline-offset:-2px;color:var(--sdds-navigation-tabs-tab-focus-color)}::slotted(.sdds-navigation-tabs-tab:focus)::after{width:0}::slotted(.sdds-navigation-tabs-tab-active){color:var(--sdds-navigation-tabs-tab-active-color)}::slotted(.sdds-navigation-tabs-tab-active)::after{width:100%;--sdds-navigation-tabs-tab-active-indicator-bg:var(--sdds-blue-400);background-color:var(--sdds-navigation-tabs-tab-active-indicator-bg)}::slotted(.sdds-navigation-tabs-tab-active:focus)::after{width:100%}::slotted(.sdds-navigation-tabs-tab-disabled){color:var(--sdds-navigation-tabs-tab-active-color);opacity:0.16;pointer-events:none}";
4
-
5
- const NavigationTabs = /*@__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.tabs = [];
16
- this.showLeftScroll = false;
17
- this.showRightScroll = false;
18
- }
19
- componentDidRender() {
20
- this._calculateButtonWidth();
21
- }
22
- componentDidLoad() {
23
- const resizeObserver = new ResizeObserver((entries) => {
24
- for (const entry of entries) {
25
- const componentWidth = entry.contentRect.width;
26
- let buttonsWidth = 0;
27
- const navButtons = Array.from(this.host.children);
28
- navButtons.forEach((navButton) => {
29
- const style = window.getComputedStyle(navButton);
30
- buttonsWidth +=
31
- navButton.clientWidth + parseFloat(style.marginLeft) + parseFloat(style.marginRight);
32
- navButton.classList.add('sdds-navigation-tabs-tab');
33
- });
34
- this.componentWidth = componentWidth;
35
- this.buttonsWidth = buttonsWidth;
36
- this.scrollWidth = buttonsWidth - componentWidth;
37
- if (this.buttonsWidth > this.componentWidth) {
38
- this._evaluateScrollButtons();
39
- }
40
- else {
41
- this.showLeftScroll = false;
42
- this.showRightScroll = false;
43
- }
44
- }
45
- });
46
- resizeObserver.observe(this.navWrapperElement);
47
- this._calculateButtonWidth();
48
- }
49
- _calculateButtonWidth() {
50
- let best = 0;
51
- const navButtons = Array.from(this.host.children);
52
- navButtons.forEach((navButton) => {
53
- const style = window.getComputedStyle(navButton);
54
- const width = navButton.clientWidth + parseFloat(style.marginLeft) + parseFloat(style.marginRight);
55
- if (width > best) {
56
- best = width;
57
- }
58
- });
59
- this.buttonWidth = best;
60
- }
61
- _scrollRight() {
62
- const scroll = this.navWrapperElement.scrollLeft;
63
- this.navWrapperElement.scrollLeft = scroll + this.buttonWidth;
64
- this._evaluateScrollButtons();
65
- }
66
- _scrollLeft() {
67
- const scroll = this.navWrapperElement.scrollLeft;
68
- this.navWrapperElement.scrollLeft = scroll - this.buttonWidth;
69
- this._evaluateScrollButtons();
70
- }
71
- _evaluateScrollButtons() {
72
- const scroll = this.navWrapperElement.scrollLeft;
73
- if (scroll >= this.scrollWidth) {
74
- this.showRightScroll = false;
75
- }
76
- else {
77
- this.showRightScroll = true;
78
- }
79
- if (scroll <= 0) {
80
- this.showLeftScroll = false;
81
- }
82
- else {
83
- this.showLeftScroll = true;
84
- }
85
- }
86
- render() {
87
- return (h(Host, null, h("div", { class: "sdds-navigation-tabs" }, h("div", { class: "sdds-navigation-tabs-wrapper", ref: (el) => (this.navWrapperElement = el) }, h("slot", null)), h("div", { class: "sdds-navigation-tabs-navigation" }, h("button", { class: `sdds-navigation-tabs-forward ${this.showRightScroll ? 'sdds-navigation-tabs-forward-show' : ''}`, 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", fill: "#0D0F13" }))), h("button", { class: `sdds-navigation-tabs-back ${this.showLeftScroll ? 'sdds-navigation-tabs-back-show' : ''}`, 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", fill: "#0D0F13" })))))));
88
- }
89
- get host() { return this; }
90
- static get style() { return navigationTabsCss; }
91
- }, [1, "sdds-navigation-tabs", {
92
- "tabs": [32],
93
- "showLeftScroll": [32],
94
- "showRightScroll": [32]
95
- }]);
96
- function defineCustomElement$1() {
97
- if (typeof customElements === "undefined") {
98
- return;
99
- }
100
- const components = ["sdds-navigation-tabs"];
101
- components.forEach(tagName => { switch (tagName) {
102
- case "sdds-navigation-tabs":
103
- if (!customElements.get(tagName)) {
104
- customElements.define(tagName, NavigationTabs);
105
- }
106
- break;
107
- } });
108
- }
109
-
110
- const SddsNavigationTabs = NavigationTabs;
111
- const defineCustomElement = defineCustomElement$1;
112
-
113
- export { SddsNavigationTabs, defineCustomElement };
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../types/components";
2
-
3
- interface SddsPopoverCanvas extends Components.SddsPopoverCanvas, HTMLElement {}
4
- export const SddsPopoverCanvas: {
5
- prototype: SddsPopoverCanvas;
6
- new (): SddsPopoverCanvas;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;
@@ -1,97 +0,0 @@
1
- import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
- import { c as createPopper } from './popper.js';
3
-
4
- const popoverCanvasCss = ":host{box-sizing:border-box;min-width:160px;min-height:160px;background-color:var(--sdds-popover-bg-default);padding:16px;box-shadow:0 3px 3px rgba(0, 0, 0, 0.15), 0 -1px 1px rgba(0, 0, 0, 0.1);border-radius:4px;z-index:20000;display:none}:host *{box-sizing:border-box}:host(.sdds-popover-canvas-show){opacity:1;display:block}";
5
-
6
- const PopoverCanvas = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
7
- constructor() {
8
- super();
9
- this.__registerHost();
10
- this.__attachShadow();
11
- this.selector = '';
12
- this.show = false;
13
- this.placement = 'auto';
14
- this.offsetSkidding = 0;
15
- this.offsetDistance = 8;
16
- this.target = undefined;
17
- }
18
- handleOutsideClick() {
19
- if (this.show) {
20
- this.show = false;
21
- }
22
- }
23
- componentDidLoad() {
24
- this.target = document.querySelector(this.selector);
25
- const _this = this;
26
- createPopper(this.target, this.popoverCanvasElement, {
27
- placement: _this.placement,
28
- modifiers: [
29
- {
30
- name: 'positionCalc',
31
- enabled: true,
32
- phase: 'main',
33
- fn({ state }) {
34
- console.log('popover fn', state);
35
- },
36
- },
37
- {
38
- name: 'offset',
39
- options: {
40
- offset: [this.offsetSkidding, this.offsetDistance],
41
- },
42
- },
43
- ],
44
- });
45
- const showCanvas = () => {
46
- this.show = true;
47
- };
48
- const hideCanvas = () => {
49
- this.show = false;
50
- };
51
- this.target.addEventListener('mousedown', event => {
52
- event.stopPropagation();
53
- if (this.show) {
54
- hideCanvas();
55
- }
56
- else {
57
- showCanvas();
58
- }
59
- });
60
- this.popoverCanvasElement.addEventListener('mousemove', event => {
61
- event.stopPropagation();
62
- });
63
- this.popoverCanvasElement.addEventListener('mousedown', event => {
64
- event.stopPropagation();
65
- });
66
- }
67
- render() {
68
- return (h(Host, { class: `sdds-popover-canvas ${this.show ? 'sdds-popover-canvas-show' : ''}` }, h("slot", null)));
69
- }
70
- get popoverCanvasElement() { return this; }
71
- static get style() { return popoverCanvasCss; }
72
- }, [1, "sdds-popover-canvas", {
73
- "selector": [1],
74
- "show": [4],
75
- "placement": [1],
76
- "offsetSkidding": [2, "offset-skidding"],
77
- "offsetDistance": [2, "offset-distance"],
78
- "target": [32]
79
- }, [[9, "mousedown", "handleOutsideClick"]]]);
80
- function defineCustomElement$1() {
81
- if (typeof customElements === "undefined") {
82
- return;
83
- }
84
- const components = ["sdds-popover-canvas"];
85
- components.forEach(tagName => { switch (tagName) {
86
- case "sdds-popover-canvas":
87
- if (!customElements.get(tagName)) {
88
- customElements.define(tagName, PopoverCanvas);
89
- }
90
- break;
91
- } });
92
- }
93
-
94
- const SddsPopoverCanvas = PopoverCanvas;
95
- const defineCustomElement = defineCustomElement$1;
96
-
97
- export { SddsPopoverCanvas, defineCustomElement };
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../types/components";
2
-
3
- interface SddsPopoverMenu extends Components.SddsPopoverMenu, HTMLElement {}
4
- export const SddsPopoverMenu: {
5
- prototype: SddsPopoverMenu;
6
- new (): SddsPopoverMenu;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;