@scania/tegel 0.0.4 → 0.0.5

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 (745) hide show
  1. package/dist/cjs/{index-18eb94f0.js → index-5ad19933.js} +36 -9
  2. package/dist/cjs/index-5ad19933.js.map +1 -0
  3. package/dist/cjs/loader.cjs.js +2 -2
  4. package/dist/cjs/sdds-accordion-item.cjs.entry.js +1 -1
  5. package/dist/cjs/sdds-accordion.cjs.entry.js +2 -3
  6. package/dist/cjs/sdds-accordion.cjs.entry.js.map +1 -1
  7. package/dist/cjs/sdds-badges.cjs.entry.js +1 -1
  8. package/dist/cjs/sdds-banner.cjs.entry.js +2 -2
  9. package/dist/cjs/sdds-banner.cjs.entry.js.map +1 -1
  10. package/dist/cjs/sdds-block.cjs.entry.js +1 -1
  11. package/dist/cjs/sdds-body-cell_2.cjs.entry.js +12 -12
  12. package/dist/cjs/sdds-body-cell_2.cjs.entry.js.map +1 -1
  13. package/dist/cjs/sdds-breadcrumb-link.cjs.entry.js +27 -0
  14. package/dist/cjs/sdds-breadcrumb-link.cjs.entry.js.map +1 -0
  15. package/dist/cjs/sdds-breadcrumb.cjs.entry.js +4 -4
  16. package/dist/cjs/sdds-breadcrumb.cjs.entry.js.map +1 -1
  17. package/dist/cjs/sdds-button.cjs.entry.js +2 -2
  18. package/dist/cjs/sdds-button.cjs.entry.js.map +1 -1
  19. package/dist/cjs/sdds-card.cjs.entry.js +2 -2
  20. package/dist/cjs/sdds-card.cjs.entry.js.map +1 -1
  21. package/dist/cjs/sdds-checkbox.cjs.entry.js +1 -1
  22. package/dist/cjs/sdds-datetime.cjs.entry.js +15 -6
  23. package/dist/cjs/sdds-datetime.cjs.entry.js.map +1 -1
  24. package/dist/cjs/sdds-divider.cjs.entry.js +22 -0
  25. package/dist/cjs/sdds-divider.cjs.entry.js.map +1 -0
  26. package/dist/cjs/sdds-dropdown-filter.cjs.entry.js +10 -7
  27. package/dist/cjs/sdds-dropdown-filter.cjs.entry.js.map +1 -1
  28. package/dist/cjs/sdds-dropdown_2.cjs.entry.js +20 -20
  29. package/dist/cjs/sdds-dropdown_2.cjs.entry.js.map +1 -1
  30. package/dist/cjs/sdds-folder-tabs-button.cjs.entry.js +29 -0
  31. package/dist/cjs/sdds-folder-tabs-button.cjs.entry.js.map +1 -0
  32. package/dist/cjs/sdds-folder-tabs-link.cjs.entry.js +34 -0
  33. package/dist/cjs/sdds-folder-tabs-link.cjs.entry.js.map +1 -0
  34. package/dist/cjs/sdds-folder-tabs.cjs.entry.js +180 -0
  35. package/dist/cjs/sdds-folder-tabs.cjs.entry.js.map +1 -0
  36. package/dist/cjs/sdds-footer-link-group.cjs.entry.js +1 -1
  37. package/dist/cjs/sdds-footer-link.cjs.entry.js +1 -1
  38. package/dist/cjs/sdds-footer.cjs.entry.js +1 -1
  39. package/dist/cjs/sdds-header-cell.cjs.entry.js +9 -13
  40. package/dist/cjs/sdds-header-cell.cjs.entry.js.map +1 -1
  41. package/dist/cjs/sdds-icon.cjs.entry.js +1 -1
  42. package/dist/cjs/sdds-inline-tabs-button.cjs.entry.js +24 -0
  43. package/dist/cjs/sdds-inline-tabs-button.cjs.entry.js.map +1 -0
  44. package/dist/cjs/sdds-inline-tabs-link.cjs.entry.js +29 -0
  45. package/dist/cjs/sdds-inline-tabs-link.cjs.entry.js.map +1 -0
  46. package/dist/cjs/sdds-inline-tabs.cjs.entry.js +113 -148
  47. package/dist/cjs/sdds-inline-tabs.cjs.entry.js.map +1 -1
  48. package/dist/cjs/sdds-link.cjs.entry.js +1 -1
  49. package/dist/cjs/sdds-message.cjs.entry.js +1 -1
  50. package/dist/cjs/sdds-modal.cjs.entry.js +67 -22
  51. package/dist/cjs/sdds-modal.cjs.entry.js.map +1 -1
  52. package/dist/cjs/sdds-navigation-tabs-button.cjs.entry.js +24 -0
  53. package/dist/cjs/sdds-navigation-tabs-button.cjs.entry.js.map +1 -0
  54. package/dist/cjs/sdds-navigation-tabs-link.cjs.entry.js +29 -0
  55. package/dist/cjs/sdds-navigation-tabs-link.cjs.entry.js.map +1 -0
  56. package/dist/cjs/sdds-navigation-tabs.cjs.entry.js +69 -24
  57. package/dist/cjs/sdds-navigation-tabs.cjs.entry.js.map +1 -1
  58. package/dist/cjs/sdds-popover-canvas.cjs.entry.js +68 -41
  59. package/dist/cjs/sdds-popover-canvas.cjs.entry.js.map +1 -1
  60. package/dist/cjs/sdds-popover-menu.cjs.entry.js +1 -1
  61. package/dist/cjs/sdds-radio-button.cjs.entry.js +6 -2
  62. package/dist/cjs/sdds-radio-button.cjs.entry.js.map +1 -1
  63. package/dist/cjs/sdds-slider.cjs.entry.js +9 -9
  64. package/dist/cjs/sdds-slider.cjs.entry.js.map +1 -1
  65. package/dist/cjs/sdds-spinner.cjs.entry.js +1 -1
  66. package/dist/cjs/sdds-stepper-item.cjs.entry.js +1 -1
  67. package/dist/cjs/sdds-stepper.cjs.entry.js +1 -1
  68. package/dist/cjs/sdds-table-body-row-expandable.cjs.entry.js +6 -6
  69. package/dist/cjs/sdds-table-body-row-expandable.cjs.entry.js.map +1 -1
  70. package/dist/cjs/sdds-table-body.cjs.entry.js +13 -13
  71. package/dist/cjs/sdds-table-body.cjs.entry.js.map +1 -1
  72. package/dist/cjs/sdds-table-footer.cjs.entry.js +7 -7
  73. package/dist/cjs/sdds-table-footer.cjs.entry.js.map +1 -1
  74. package/dist/cjs/sdds-table-header.cjs.entry.js +6 -6
  75. package/dist/cjs/sdds-table-header.cjs.entry.js.map +1 -1
  76. package/dist/cjs/sdds-table-toolbar.cjs.entry.js +4 -4
  77. package/dist/cjs/sdds-table-toolbar.cjs.entry.js.map +1 -1
  78. package/dist/cjs/sdds-table.cjs.entry.js +10 -10
  79. package/dist/cjs/sdds-table.cjs.entry.js.map +1 -1
  80. package/dist/cjs/sdds-textarea.cjs.entry.js +12 -12
  81. package/dist/cjs/sdds-textarea.cjs.entry.js.map +1 -1
  82. package/dist/cjs/sdds-textfield.cjs.entry.js +13 -24
  83. package/dist/cjs/sdds-textfield.cjs.entry.js.map +1 -1
  84. package/dist/cjs/sdds-toast.cjs.entry.js +1 -1
  85. package/dist/cjs/sdds-toggle.cjs.entry.js +2 -2
  86. package/dist/cjs/sdds-toggle.cjs.entry.js.map +1 -1
  87. package/dist/cjs/sdds-tooltip.cjs.entry.js +1 -1
  88. package/dist/cjs/tegel.cjs.js +2 -2
  89. package/dist/collection/collection-manifest.json +10 -4
  90. package/dist/collection/components/accordion/accordion.js +1 -20
  91. package/dist/collection/components/accordion/accordion.js.map +1 -1
  92. package/dist/collection/components/accordion/accordion.stories.js +2 -2
  93. package/dist/collection/components/accordion/accordion.stories.js.map +1 -1
  94. package/dist/collection/components/badge/badge.stories.js +0 -3
  95. package/dist/collection/components/badge/badge.stories.js.map +1 -1
  96. package/dist/collection/components/banner/sdds-banner.css +1 -0
  97. package/dist/collection/components/banner/sdds-banner.stories.js +2 -5
  98. package/dist/collection/components/banner/sdds-banner.stories.js.map +1 -1
  99. package/dist/collection/components/breadcrumb/{sdds-breadcrumb-item/sdds-breadcrumb-item.css → sdds-breadcrumb-link/sdds-breadcrumb-link.css} +10 -10
  100. package/dist/collection/components/breadcrumb/{sdds-breadcrumb-item/sdds-breadcrumb-item.js → sdds-breadcrumb-link/sdds-breadcrumb-link.js} +7 -7
  101. package/dist/collection/components/breadcrumb/sdds-breadcrumb-link/sdds-breadcrumb-link.js.map +1 -0
  102. package/dist/collection/components/breadcrumb/sdds-breadcrumb.css +5 -20
  103. package/dist/collection/components/breadcrumb/sdds-breadcrumb.js +2 -2
  104. package/dist/collection/components/breadcrumb/sdds-breadcrumb.js.map +1 -1
  105. package/dist/collection/components/breadcrumb/sdds-breadcrumb.stories.js +6 -5
  106. package/dist/collection/components/breadcrumb/sdds-breadcrumb.stories.js.map +1 -1
  107. package/dist/collection/components/button/button-native.stories.js +39 -32
  108. package/dist/collection/components/button/button-native.stories.js.map +1 -1
  109. package/dist/collection/components/button/button-webcomponent.stories.js +36 -33
  110. package/dist/collection/components/button/button-webcomponent.stories.js.map +1 -1
  111. package/dist/collection/components/button/button.css +1 -1
  112. package/dist/collection/components/card/card.stories.js +48 -51
  113. package/dist/collection/components/card/card.stories.js.map +1 -1
  114. package/dist/collection/components/card/sdds-card.css +1 -0
  115. package/dist/collection/components/card/sdds-card.stories.js +27 -36
  116. package/dist/collection/components/card/sdds-card.stories.js.map +1 -1
  117. package/dist/collection/components/checkbox/checkbox.stories.js +20 -12
  118. package/dist/collection/components/checkbox/checkbox.stories.js.map +1 -1
  119. package/dist/collection/components/checkbox/sdds-checkbox.stories.js +20 -12
  120. package/dist/collection/components/checkbox/sdds-checkbox.stories.js.map +1 -1
  121. package/dist/collection/components/chips/chips.stories.js +51 -31
  122. package/dist/collection/components/chips/chips.stories.js.map +1 -1
  123. package/dist/collection/components/data-table/native-table.stories.js +44 -67
  124. package/dist/collection/components/data-table/native-table.stories.js.map +1 -1
  125. package/dist/collection/components/data-table/table/table.js +17 -14
  126. package/dist/collection/components/data-table/table/table.js.map +1 -1
  127. package/dist/collection/components/data-table/table-body/table-body.js +37 -28
  128. package/dist/collection/components/data-table/table-body/table-body.js.map +1 -1
  129. package/dist/collection/components/data-table/table-body-cell/table-body-cell.js +10 -10
  130. package/dist/collection/components/data-table/table-body-cell/table-body-cell.js.map +1 -1
  131. package/dist/collection/components/data-table/table-body-row/table-body-row.js +24 -18
  132. package/dist/collection/components/data-table/table-body-row/table-body-row.js.map +1 -1
  133. package/dist/collection/components/data-table/table-body-row-expandable/table-body-row-expandable.js +19 -13
  134. package/dist/collection/components/data-table/table-body-row-expandable/table-body-row-expandable.js.map +1 -1
  135. package/dist/collection/components/data-table/table-component-basic.stories.js +61 -39
  136. package/dist/collection/components/data-table/table-component-basic.stories.js.map +1 -1
  137. package/dist/collection/components/data-table/table-component-batch-actions.stories.js +61 -40
  138. package/dist/collection/components/data-table/table-component-batch-actions.stories.js.map +1 -1
  139. package/dist/collection/components/data-table/table-component-bodydata.stories.js +0 -6
  140. package/dist/collection/components/data-table/table-component-bodydata.stories.js.map +1 -1
  141. package/dist/collection/components/data-table/table-component-custom-width.stories.js +31 -55
  142. package/dist/collection/components/data-table/table-component-custom-width.stories.js.map +1 -1
  143. package/dist/collection/components/data-table/table-component-event-listeners.stories.js +65 -41
  144. package/dist/collection/components/data-table/table-component-event-listeners.stories.js.map +1 -1
  145. package/dist/collection/components/data-table/table-component-expandable-rows.stories.js +59 -35
  146. package/dist/collection/components/data-table/table-component-expandable-rows.stories.js.map +1 -1
  147. package/dist/collection/components/data-table/table-component-filtering.stories.js +63 -44
  148. package/dist/collection/components/data-table/table-component-filtering.stories.js.map +1 -1
  149. package/dist/collection/components/data-table/table-component-multiselect.stories.js +67 -45
  150. package/dist/collection/components/data-table/table-component-multiselect.stories.js.map +1 -1
  151. package/dist/collection/components/data-table/table-component-pagination.stories.js +65 -43
  152. package/dist/collection/components/data-table/table-component-pagination.stories.js.map +1 -1
  153. package/dist/collection/components/data-table/table-component-sorting.stories.js +87 -31
  154. package/dist/collection/components/data-table/table-component-sorting.stories.js.map +1 -1
  155. package/dist/collection/components/data-table/table-footer/table-footer.js +18 -15
  156. package/dist/collection/components/data-table/table-footer/table-footer.js.map +1 -1
  157. package/dist/collection/components/data-table/table-header/table-header.js +17 -14
  158. package/dist/collection/components/data-table/table-header/table-header.js.map +1 -1
  159. package/dist/collection/components/data-table/table-header-cell/table-header-cell.js +27 -31
  160. package/dist/collection/components/data-table/table-header-cell/table-header-cell.js.map +1 -1
  161. package/dist/collection/components/data-table/table-toolbar/table-toolbar.js +7 -7
  162. package/dist/collection/components/data-table/table-toolbar/table-toolbar.js.map +1 -1
  163. package/dist/collection/components/datetime/datetime.js +56 -11
  164. package/dist/collection/components/datetime/datetime.js.map +1 -1
  165. package/dist/collection/components/datetime/datetime.stories.js +62 -62
  166. package/dist/collection/components/datetime/datetime.stories.js.map +1 -1
  167. package/dist/collection/components/divider/divider-component.css +16 -0
  168. package/dist/collection/components/divider/divider-webcomponent.stories.js +62 -0
  169. package/dist/collection/components/divider/divider-webcomponent.stories.js.map +1 -0
  170. package/dist/collection/components/divider/divider.js +44 -0
  171. package/dist/collection/components/divider/divider.js.map +1 -0
  172. package/dist/collection/components/divider/divider.stories.js +13 -16
  173. package/dist/collection/components/divider/divider.stories.js.map +1 -1
  174. package/dist/collection/components/dropdown/dropdown-filter/dropdown-filter.js +35 -13
  175. package/dist/collection/components/dropdown/dropdown-filter/dropdown-filter.js.map +1 -1
  176. package/dist/collection/components/dropdown/dropdown-filter/dropdown-filter.stories.js +78 -26
  177. package/dist/collection/components/dropdown/dropdown-filter/dropdown-filter.stories.js.map +1 -1
  178. package/dist/collection/components/dropdown/dropdown-native.stories.js +35 -22
  179. package/dist/collection/components/dropdown/dropdown-native.stories.js.map +1 -1
  180. package/dist/collection/components/dropdown/dropdown-option/dropdown-option.js +21 -16
  181. package/dist/collection/components/dropdown/dropdown-option/dropdown-option.js.map +1 -1
  182. package/dist/collection/components/dropdown/dropdown-wc-default.stories.js +58 -51
  183. package/dist/collection/components/dropdown/dropdown-wc-default.stories.js.map +1 -1
  184. package/dist/collection/components/dropdown/dropdown-wc-multiselect.stories.js +73 -50
  185. package/dist/collection/components/dropdown/dropdown-wc-multiselect.stories.js.map +1 -1
  186. package/dist/collection/components/dropdown/dropdown.css +6 -161
  187. package/dist/collection/components/dropdown/dropdown.js +22 -17
  188. package/dist/collection/components/dropdown/dropdown.js.map +1 -1
  189. package/dist/collection/components/footer/footer.stories.js +5 -5
  190. package/dist/collection/components/footer/footer.stories.js.map +1 -1
  191. package/dist/collection/components/footer/webcomponent/sdds-footer.stories.js +3 -3
  192. package/dist/collection/components/footer/webcomponent/sdds-footer.stories.js.map +1 -1
  193. package/dist/collection/components/header/header-all.stories.js +4 -2
  194. package/dist/collection/components/header/header-all.stories.js.map +1 -1
  195. package/dist/collection/components/header/header-default.stories.js +4 -2
  196. package/dist/collection/components/header/header-default.stories.js.map +1 -1
  197. package/dist/collection/components/header/header-inline.stories.js +4 -2
  198. package/dist/collection/components/header/header-inline.stories.js.map +1 -1
  199. package/dist/collection/components/header/header-search.stories.js +4 -2
  200. package/dist/collection/components/header/header-search.stories.js.map +1 -1
  201. package/dist/collection/components/header/header-toolbar.stories.js +4 -2
  202. package/dist/collection/components/header/header-toolbar.stories.js.map +1 -1
  203. package/dist/collection/components/link/link.stories.js +15 -9
  204. package/dist/collection/components/link/link.stories.js.map +1 -1
  205. package/dist/collection/components/link/sdds-link.stories.js +15 -15
  206. package/dist/collection/components/link/sdds-link.stories.js.map +1 -1
  207. package/dist/collection/components/message/message.stories.js +50 -32
  208. package/dist/collection/components/message/message.stories.js.map +1 -1
  209. package/dist/collection/components/message/sdds-message.stories.js +23 -22
  210. package/dist/collection/components/message/sdds-message.stories.js.map +1 -1
  211. package/dist/collection/components/modal/modal-native.stories.js +28 -20
  212. package/dist/collection/components/modal/modal-native.stories.js.map +1 -1
  213. package/dist/collection/components/modal/modal-webcomponent.stories.js +33 -22
  214. package/dist/collection/components/modal/modal-webcomponent.stories.js.map +1 -1
  215. package/dist/collection/components/modal/modal.js +147 -29
  216. package/dist/collection/components/modal/modal.js.map +1 -1
  217. package/dist/collection/components/popover-canvas/popover-canvas.css +0 -4
  218. package/dist/collection/components/popover-canvas/popover-canvas.js +99 -46
  219. package/dist/collection/components/popover-canvas/popover-canvas.js.map +1 -1
  220. package/dist/collection/components/popover-canvas/popover-canvas.stories.js +16 -14
  221. package/dist/collection/components/popover-canvas/popover-canvas.stories.js.map +1 -1
  222. package/dist/collection/components/popover-menu/popover-menu-icons.stories.js +7 -3
  223. package/dist/collection/components/popover-menu/popover-menu-icons.stories.js.map +1 -1
  224. package/dist/collection/components/popover-menu/popover-menu.stories.js +7 -3
  225. package/dist/collection/components/popover-menu/popover-menu.stories.js.map +1 -1
  226. package/dist/collection/components/radio-button/radio-button-component.stories.js +1 -6
  227. package/dist/collection/components/radio-button/radio-button-component.stories.js.map +1 -1
  228. package/dist/collection/components/radio-button/radio-button.js +5 -1
  229. package/dist/collection/components/radio-button/radio-button.js.map +1 -1
  230. package/dist/collection/components/radio-button/radio-button.stories.js +9 -6
  231. package/dist/collection/components/radio-button/radio-button.stories.js.map +1 -1
  232. package/dist/collection/components/slider/slider.js +19 -19
  233. package/dist/collection/components/slider/slider.js.map +1 -1
  234. package/dist/collection/components/slider/slider.stories.js +93 -67
  235. package/dist/collection/components/slider/slider.stories.js.map +1 -1
  236. package/dist/collection/components/spinner/spinner.stories.js +8 -2
  237. package/dist/collection/components/spinner/spinner.stories.js.map +1 -1
  238. package/dist/collection/components/stepper/stepper.stories.js +29 -17
  239. package/dist/collection/components/stepper/stepper.stories.js.map +1 -1
  240. package/dist/collection/components/tabs/folder-tabs/folder-tabs-button/sdds-folder-tabs-button.css +79 -0
  241. package/dist/collection/components/tabs/folder-tabs/folder-tabs-button/sdds-folder-tabs-button.js +100 -0
  242. package/dist/collection/components/tabs/folder-tabs/folder-tabs-button/sdds-folder-tabs-button.js.map +1 -0
  243. package/dist/collection/components/tabs/folder-tabs/folder-tabs-link/sdds-folder-tabs-link.css +77 -0
  244. package/dist/collection/components/tabs/folder-tabs/folder-tabs-link/sdds-folder-tabs-link.js +158 -0
  245. package/dist/collection/components/tabs/folder-tabs/folder-tabs-link/sdds-folder-tabs-link.js.map +1 -0
  246. package/dist/collection/components/tabs/folder-tabs/folder-tabs.css +64 -0
  247. package/dist/collection/components/tabs/folder-tabs/folder-tabs.js +256 -0
  248. package/dist/collection/components/tabs/folder-tabs/folder-tabs.js.map +1 -0
  249. package/dist/collection/components/tabs/folder-tabs/folder-tabs.stories.js +114 -0
  250. package/dist/collection/components/tabs/folder-tabs/folder-tabs.stories.js.map +1 -0
  251. package/dist/collection/components/tabs/inline-tabs/inline-tabs-button/sdds-inline-tabs-button.css +73 -0
  252. package/dist/collection/components/tabs/{inline-tabs-default/inline-tab/inline-tab.js → inline-tabs/inline-tabs-button/sdds-inline-tabs-button.js} +12 -29
  253. package/dist/collection/components/tabs/inline-tabs/inline-tabs-button/sdds-inline-tabs-button.js.map +1 -0
  254. package/dist/collection/components/tabs/inline-tabs/inline-tabs-link/sdds-inline-tabs-link.css +75 -0
  255. package/dist/collection/components/tabs/inline-tabs/inline-tabs-link/sdds-inline-tabs-link.js +122 -0
  256. package/dist/collection/components/tabs/inline-tabs/inline-tabs-link/sdds-inline-tabs-link.js.map +1 -0
  257. package/dist/collection/components/tabs/inline-tabs/inline-tabs.css +76 -0
  258. package/dist/collection/components/tabs/inline-tabs/inline-tabs.js +261 -0
  259. package/dist/collection/components/tabs/inline-tabs/inline-tabs.js.map +1 -0
  260. package/dist/collection/components/tabs/inline-tabs/inline-tabs.stories.js +109 -0
  261. package/dist/collection/components/tabs/inline-tabs/inline-tabs.stories.js.map +1 -0
  262. package/dist/collection/components/tabs/navigation-tabs/navigation-tabs-button/sdds-navigation-tabs-button.css +73 -0
  263. package/dist/collection/components/tabs/navigation-tabs/navigation-tabs-button/sdds-navigation-tabs-button.js +64 -0
  264. package/dist/collection/components/tabs/navigation-tabs/navigation-tabs-button/sdds-navigation-tabs-button.js.map +1 -0
  265. package/dist/collection/components/tabs/navigation-tabs/navigation-tabs-link/sdds-navigation-tabs-link.css +73 -0
  266. package/dist/collection/components/tabs/navigation-tabs/navigation-tabs-link/sdds-navigation-tabs-link.js +122 -0
  267. package/dist/collection/components/tabs/navigation-tabs/navigation-tabs-link/sdds-navigation-tabs-link.js.map +1 -0
  268. package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.css +37 -118
  269. package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.js +114 -26
  270. package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.js.map +1 -1
  271. package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.stories.js +79 -9
  272. package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.stories.js.map +1 -1
  273. package/dist/collection/components/textarea/textarea.css +42 -123
  274. package/dist/collection/components/textarea/textarea.js +11 -10
  275. package/dist/collection/components/textarea/textarea.js.map +1 -1
  276. package/dist/collection/components/textarea/textarea.stories.js +59 -53
  277. package/dist/collection/components/textarea/textarea.stories.js.map +1 -1
  278. package/dist/collection/components/textfield/textfield.css +91 -175
  279. package/dist/collection/components/textfield/textfield.js +12 -22
  280. package/dist/collection/components/textfield/textfield.js.map +1 -1
  281. package/dist/collection/components/textfield/textfield.stories.js +87 -74
  282. package/dist/collection/components/textfield/textfield.stories.js.map +1 -1
  283. package/dist/collection/components/toast/sdds-toast.stories.js +6 -6
  284. package/dist/collection/components/toast/sdds-toast.stories.js.map +1 -1
  285. package/dist/collection/components/toast/toast.stories.js +19 -17
  286. package/dist/collection/components/toast/toast.stories.js.map +1 -1
  287. package/dist/collection/components/toggle/sdds-toggle.js +1 -1
  288. package/dist/collection/components/toggle/sdds-toggle.js.map +1 -1
  289. package/dist/collection/components/toggle/sdds-toggle.stories.js +19 -19
  290. package/dist/collection/components/toggle/sdds-toggle.stories.js.map +1 -1
  291. package/dist/collection/components/toggle/toggle.stories.js +19 -14
  292. package/dist/collection/components/toggle/toggle.stories.js.map +1 -1
  293. package/dist/collection/components/tooltip/tooltip.stories.js +30 -18
  294. package/dist/collection/components/tooltip/tooltip.stories.js.map +1 -1
  295. package/dist/components/dropdown-option.js +9 -11
  296. package/dist/components/dropdown-option.js.map +1 -1
  297. package/dist/components/dropdown.js +13 -10
  298. package/dist/components/dropdown.js.map +1 -1
  299. package/dist/components/sdds-accordion.js +1 -3
  300. package/dist/components/sdds-accordion.js.map +1 -1
  301. package/dist/components/sdds-banner.js +1 -1
  302. package/dist/components/sdds-banner.js.map +1 -1
  303. package/dist/components/{sdds-breadcrumb-item.d.ts → sdds-breadcrumb-link.d.ts} +4 -4
  304. package/dist/components/sdds-breadcrumb-link.js +47 -0
  305. package/dist/components/sdds-breadcrumb-link.js.map +1 -0
  306. package/dist/components/sdds-breadcrumb.js +3 -3
  307. package/dist/components/sdds-breadcrumb.js.map +1 -1
  308. package/dist/components/sdds-button.js +1 -1
  309. package/dist/components/sdds-button.js.map +1 -1
  310. package/dist/components/sdds-card.js +1 -1
  311. package/dist/components/sdds-card.js.map +1 -1
  312. package/dist/components/sdds-datetime.js +14 -5
  313. package/dist/components/sdds-datetime.js.map +1 -1
  314. package/dist/components/{sdds-inline-tab.d.ts → sdds-divider.d.ts} +4 -4
  315. package/dist/components/sdds-divider.js +38 -0
  316. package/dist/components/sdds-divider.js.map +1 -0
  317. package/dist/components/sdds-dropdown-filter.js +12 -8
  318. package/dist/components/sdds-dropdown-filter.js.map +1 -1
  319. package/dist/components/sdds-folder-tabs-button.d.ts +11 -0
  320. package/dist/components/sdds-folder-tabs-button.js +48 -0
  321. package/dist/components/sdds-folder-tabs-button.js.map +1 -0
  322. package/dist/components/sdds-folder-tabs-link.d.ts +11 -0
  323. package/dist/components/sdds-folder-tabs-link.js +56 -0
  324. package/dist/components/sdds-folder-tabs-link.js.map +1 -0
  325. package/dist/components/sdds-folder-tabs.d.ts +11 -0
  326. package/dist/components/sdds-folder-tabs.js +208 -0
  327. package/dist/components/sdds-folder-tabs.js.map +1 -0
  328. package/dist/components/sdds-header-cell.js +9 -13
  329. package/dist/components/sdds-header-cell.js.map +1 -1
  330. package/dist/components/sdds-inline-tabs-button.d.ts +11 -0
  331. package/dist/components/sdds-inline-tabs-button.js +41 -0
  332. package/dist/components/sdds-inline-tabs-button.js.map +1 -0
  333. package/dist/components/sdds-inline-tabs-link.d.ts +11 -0
  334. package/dist/components/sdds-inline-tabs-link.js +49 -0
  335. package/dist/components/sdds-inline-tabs-link.js.map +1 -0
  336. package/dist/components/sdds-inline-tabs.js +123 -155
  337. package/dist/components/sdds-inline-tabs.js.map +1 -1
  338. package/dist/components/sdds-modal.js +73 -24
  339. package/dist/components/sdds-modal.js.map +1 -1
  340. package/dist/components/sdds-navigation-tabs-button.d.ts +11 -0
  341. package/dist/components/sdds-navigation-tabs-button.js +41 -0
  342. package/dist/components/sdds-navigation-tabs-button.js.map +1 -0
  343. package/dist/components/sdds-navigation-tabs-link.d.ts +11 -0
  344. package/dist/components/sdds-navigation-tabs-link.js +49 -0
  345. package/dist/components/sdds-navigation-tabs-link.js.map +1 -0
  346. package/dist/components/sdds-navigation-tabs.js +79 -27
  347. package/dist/components/sdds-navigation-tabs.js.map +1 -1
  348. package/dist/components/sdds-popover-canvas.js +71 -42
  349. package/dist/components/sdds-popover-canvas.js.map +1 -1
  350. package/dist/components/sdds-radio-button.js +5 -1
  351. package/dist/components/sdds-radio-button.js.map +1 -1
  352. package/dist/components/sdds-slider.js +9 -9
  353. package/dist/components/sdds-slider.js.map +1 -1
  354. package/dist/components/sdds-table-body-row-expandable.js +6 -6
  355. package/dist/components/sdds-table-body-row-expandable.js.map +1 -1
  356. package/dist/components/sdds-table-body.js +13 -13
  357. package/dist/components/sdds-table-body.js.map +1 -1
  358. package/dist/components/sdds-table-footer.js +7 -7
  359. package/dist/components/sdds-table-footer.js.map +1 -1
  360. package/dist/components/sdds-table-header.js +6 -6
  361. package/dist/components/sdds-table-header.js.map +1 -1
  362. package/dist/components/sdds-table-toolbar.js +4 -4
  363. package/dist/components/sdds-table-toolbar.js.map +1 -1
  364. package/dist/components/sdds-table.js +9 -9
  365. package/dist/components/sdds-table.js.map +1 -1
  366. package/dist/components/sdds-textarea.js +12 -12
  367. package/dist/components/sdds-textarea.js.map +1 -1
  368. package/dist/components/sdds-textfield.js +13 -24
  369. package/dist/components/sdds-textfield.js.map +1 -1
  370. package/dist/components/sdds-toggle.js +1 -1
  371. package/dist/components/sdds-toggle.js.map +1 -1
  372. package/dist/components/table-body-cell.js +5 -5
  373. package/dist/components/table-body-cell.js.map +1 -1
  374. package/dist/components/table-body-row.js +8 -8
  375. package/dist/components/table-body-row.js.map +1 -1
  376. package/dist/esm/{index-96563708.js → index-fdfb114c.js} +36 -9
  377. package/dist/esm/index-fdfb114c.js.map +1 -0
  378. package/dist/esm/loader.js +3 -3
  379. package/dist/esm/sdds-accordion-item.entry.js +1 -1
  380. package/dist/esm/sdds-accordion.entry.js +2 -3
  381. package/dist/esm/sdds-accordion.entry.js.map +1 -1
  382. package/dist/esm/sdds-badges.entry.js +1 -1
  383. package/dist/esm/sdds-banner.entry.js +2 -2
  384. package/dist/esm/sdds-banner.entry.js.map +1 -1
  385. package/dist/esm/sdds-block.entry.js +1 -1
  386. package/dist/esm/sdds-body-cell_2.entry.js +12 -12
  387. package/dist/esm/sdds-body-cell_2.entry.js.map +1 -1
  388. package/dist/esm/sdds-breadcrumb-link.entry.js +23 -0
  389. package/dist/esm/sdds-breadcrumb-link.entry.js.map +1 -0
  390. package/dist/esm/sdds-breadcrumb.entry.js +4 -4
  391. package/dist/esm/sdds-breadcrumb.entry.js.map +1 -1
  392. package/dist/esm/sdds-button.entry.js +2 -2
  393. package/dist/esm/sdds-button.entry.js.map +1 -1
  394. package/dist/esm/sdds-card.entry.js +2 -2
  395. package/dist/esm/sdds-card.entry.js.map +1 -1
  396. package/dist/esm/sdds-checkbox.entry.js +1 -1
  397. package/dist/esm/sdds-datetime.entry.js +15 -6
  398. package/dist/esm/sdds-datetime.entry.js.map +1 -1
  399. package/dist/esm/sdds-divider.entry.js +18 -0
  400. package/dist/esm/sdds-divider.entry.js.map +1 -0
  401. package/dist/esm/sdds-dropdown-filter.entry.js +10 -7
  402. package/dist/esm/sdds-dropdown-filter.entry.js.map +1 -1
  403. package/dist/esm/sdds-dropdown_2.entry.js +20 -20
  404. package/dist/esm/sdds-dropdown_2.entry.js.map +1 -1
  405. package/dist/esm/sdds-folder-tabs-button.entry.js +25 -0
  406. package/dist/esm/sdds-folder-tabs-button.entry.js.map +1 -0
  407. package/dist/esm/sdds-folder-tabs-link.entry.js +30 -0
  408. package/dist/esm/sdds-folder-tabs-link.entry.js.map +1 -0
  409. package/dist/esm/sdds-folder-tabs.entry.js +176 -0
  410. package/dist/esm/sdds-folder-tabs.entry.js.map +1 -0
  411. package/dist/esm/sdds-footer-link-group.entry.js +1 -1
  412. package/dist/esm/sdds-footer-link.entry.js +1 -1
  413. package/dist/esm/sdds-footer.entry.js +1 -1
  414. package/dist/esm/sdds-header-cell.entry.js +9 -13
  415. package/dist/esm/sdds-header-cell.entry.js.map +1 -1
  416. package/dist/esm/sdds-icon.entry.js +1 -1
  417. package/dist/esm/sdds-inline-tabs-button.entry.js +20 -0
  418. package/dist/esm/sdds-inline-tabs-button.entry.js.map +1 -0
  419. package/dist/esm/sdds-inline-tabs-link.entry.js +25 -0
  420. package/dist/esm/sdds-inline-tabs-link.entry.js.map +1 -0
  421. package/dist/esm/sdds-inline-tabs.entry.js +113 -148
  422. package/dist/esm/sdds-inline-tabs.entry.js.map +1 -1
  423. package/dist/esm/sdds-link.entry.js +1 -1
  424. package/dist/esm/sdds-message.entry.js +1 -1
  425. package/dist/esm/sdds-modal.entry.js +67 -22
  426. package/dist/esm/sdds-modal.entry.js.map +1 -1
  427. package/dist/esm/sdds-navigation-tabs-button.entry.js +20 -0
  428. package/dist/esm/sdds-navigation-tabs-button.entry.js.map +1 -0
  429. package/dist/esm/sdds-navigation-tabs-link.entry.js +25 -0
  430. package/dist/esm/sdds-navigation-tabs-link.entry.js.map +1 -0
  431. package/dist/esm/sdds-navigation-tabs.entry.js +69 -24
  432. package/dist/esm/sdds-navigation-tabs.entry.js.map +1 -1
  433. package/dist/esm/sdds-popover-canvas.entry.js +68 -41
  434. package/dist/esm/sdds-popover-canvas.entry.js.map +1 -1
  435. package/dist/esm/sdds-popover-menu.entry.js +1 -1
  436. package/dist/esm/sdds-radio-button.entry.js +6 -2
  437. package/dist/esm/sdds-radio-button.entry.js.map +1 -1
  438. package/dist/esm/sdds-slider.entry.js +9 -9
  439. package/dist/esm/sdds-slider.entry.js.map +1 -1
  440. package/dist/esm/sdds-spinner.entry.js +1 -1
  441. package/dist/esm/sdds-stepper-item.entry.js +1 -1
  442. package/dist/esm/sdds-stepper.entry.js +1 -1
  443. package/dist/esm/sdds-table-body-row-expandable.entry.js +6 -6
  444. package/dist/esm/sdds-table-body-row-expandable.entry.js.map +1 -1
  445. package/dist/esm/sdds-table-body.entry.js +13 -13
  446. package/dist/esm/sdds-table-body.entry.js.map +1 -1
  447. package/dist/esm/sdds-table-footer.entry.js +7 -7
  448. package/dist/esm/sdds-table-footer.entry.js.map +1 -1
  449. package/dist/esm/sdds-table-header.entry.js +6 -6
  450. package/dist/esm/sdds-table-header.entry.js.map +1 -1
  451. package/dist/esm/sdds-table-toolbar.entry.js +4 -4
  452. package/dist/esm/sdds-table-toolbar.entry.js.map +1 -1
  453. package/dist/esm/sdds-table.entry.js +10 -10
  454. package/dist/esm/sdds-table.entry.js.map +1 -1
  455. package/dist/esm/sdds-textarea.entry.js +12 -12
  456. package/dist/esm/sdds-textarea.entry.js.map +1 -1
  457. package/dist/esm/sdds-textfield.entry.js +13 -24
  458. package/dist/esm/sdds-textfield.entry.js.map +1 -1
  459. package/dist/esm/sdds-toast.entry.js +1 -1
  460. package/dist/esm/sdds-toggle.entry.js +2 -2
  461. package/dist/esm/sdds-toggle.entry.js.map +1 -1
  462. package/dist/esm/sdds-tooltip.entry.js +1 -1
  463. package/dist/esm/tegel.js +3 -3
  464. package/dist/node_modules/@types/jest/index.d.ts +1512 -0
  465. package/dist/tegel/{p-68fca08c.entry.js → p-067789d2.entry.js} +2 -2
  466. package/dist/tegel/{p-c5537ff7.entry.js → p-12f566b7.entry.js} +2 -2
  467. package/dist/tegel/p-15c44320.entry.js +2 -0
  468. package/dist/tegel/p-15c44320.entry.js.map +1 -0
  469. package/dist/tegel/{p-525ec252.entry.js → p-1a7f94d3.entry.js} +2 -2
  470. package/dist/tegel/p-1a7f94d3.entry.js.map +1 -0
  471. package/dist/tegel/p-1baafb40.entry.js +2 -0
  472. package/dist/tegel/p-1baafb40.entry.js.map +1 -0
  473. package/dist/tegel/p-2080db62.entry.js +2 -0
  474. package/dist/tegel/p-2080db62.entry.js.map +1 -0
  475. package/dist/tegel/p-21e426f2.entry.js +2 -0
  476. package/dist/tegel/p-21e426f2.entry.js.map +1 -0
  477. package/dist/tegel/p-2c57f4bb.entry.js +2 -0
  478. package/dist/tegel/p-2c57f4bb.entry.js.map +1 -0
  479. package/dist/tegel/p-387e1798.js +3 -0
  480. package/dist/tegel/p-387e1798.js.map +1 -0
  481. package/dist/tegel/p-3a9db8c4.entry.js +2 -0
  482. package/dist/tegel/p-3a9db8c4.entry.js.map +1 -0
  483. package/dist/tegel/{p-6bdce8c1.entry.js → p-400d74c2.entry.js} +2 -2
  484. package/dist/tegel/{p-f51fe381.entry.js → p-4499e5cd.entry.js} +2 -2
  485. package/dist/tegel/p-479b1c4e.entry.js +2 -0
  486. package/dist/tegel/p-479b1c4e.entry.js.map +1 -0
  487. package/dist/tegel/p-52ecce88.entry.js +2 -0
  488. package/dist/tegel/p-52ecce88.entry.js.map +1 -0
  489. package/dist/tegel/p-58bc7a27.entry.js +2 -0
  490. package/dist/tegel/p-58bc7a27.entry.js.map +1 -0
  491. package/dist/tegel/{p-aff4d273.entry.js → p-5dc33f45.entry.js} +2 -2
  492. package/dist/tegel/p-5f6fe516.entry.js +2 -0
  493. package/dist/tegel/p-5f6fe516.entry.js.map +1 -0
  494. package/dist/tegel/{p-2fad34c4.entry.js → p-64dd37d4.entry.js} +2 -2
  495. package/dist/tegel/p-64dd37d4.entry.js.map +1 -0
  496. package/dist/tegel/{p-e5e10d8f.entry.js → p-750b7e5f.entry.js} +2 -2
  497. package/dist/tegel/{p-f9dacc11.entry.js → p-792e8c5d.entry.js} +2 -2
  498. package/dist/tegel/{p-b9ec54c5.entry.js → p-7991d22f.entry.js} +2 -2
  499. package/dist/tegel/p-7d2f2f58.entry.js +2 -0
  500. package/dist/tegel/p-7d2f2f58.entry.js.map +1 -0
  501. package/dist/tegel/{p-b2f1ec40.entry.js → p-7f10356d.entry.js} +2 -2
  502. package/dist/tegel/p-7f22cee6.entry.js +2 -0
  503. package/dist/tegel/p-7f22cee6.entry.js.map +1 -0
  504. package/dist/tegel/p-872bef70.entry.js +2 -0
  505. package/dist/tegel/p-872bef70.entry.js.map +1 -0
  506. package/dist/tegel/{p-5c390692.entry.js → p-8ee9e2f5.entry.js} +2 -2
  507. package/dist/tegel/p-8ee9e2f5.entry.js.map +1 -0
  508. package/dist/tegel/{p-9904d7ec.entry.js → p-90af19c6.entry.js} +2 -2
  509. package/dist/tegel/p-90af19c6.entry.js.map +1 -0
  510. package/dist/tegel/{p-262dca00.entry.js → p-a2cbef2c.entry.js} +2 -2
  511. package/dist/tegel/{p-b2e46497.entry.js → p-a5cd0006.entry.js} +2 -2
  512. package/dist/tegel/{p-72099402.entry.js → p-a61db32b.entry.js} +2 -2
  513. package/dist/tegel/p-a905302b.entry.js +2 -0
  514. package/dist/tegel/p-a905302b.entry.js.map +1 -0
  515. package/dist/tegel/p-aa487e40.entry.js +2 -0
  516. package/dist/tegel/p-aa487e40.entry.js.map +1 -0
  517. package/dist/tegel/p-ae631412.entry.js +2 -0
  518. package/dist/tegel/p-ae631412.entry.js.map +1 -0
  519. package/dist/tegel/p-b2269b6b.entry.js +2 -0
  520. package/dist/tegel/p-b2269b6b.entry.js.map +1 -0
  521. package/dist/tegel/{p-92869ad1.entry.js → p-b6fc0de7.entry.js} +2 -2
  522. package/dist/tegel/{p-92869ad1.entry.js.map → p-b6fc0de7.entry.js.map} +1 -1
  523. package/dist/tegel/{p-cd08f5f0.entry.js → p-b9b329c0.entry.js} +2 -2
  524. package/dist/tegel/{p-fc96cf21.entry.js → p-bd09c184.entry.js} +2 -2
  525. package/dist/tegel/{p-675d10c6.entry.js → p-bdae6bc9.entry.js} +2 -2
  526. package/dist/tegel/{p-675d10c6.entry.js.map → p-bdae6bc9.entry.js.map} +1 -1
  527. package/dist/tegel/p-bdaf0bc2.entry.js +2 -0
  528. package/dist/tegel/p-bdaf0bc2.entry.js.map +1 -0
  529. package/dist/tegel/p-bdceb07c.entry.js +2 -0
  530. package/dist/tegel/p-bdceb07c.entry.js.map +1 -0
  531. package/dist/tegel/{p-ebffa726.entry.js → p-c3351320.entry.js} +2 -2
  532. package/dist/tegel/p-c3351320.entry.js.map +1 -0
  533. package/dist/tegel/{p-e662e68d.entry.js → p-c4d28002.entry.js} +2 -2
  534. package/dist/tegel/p-c6c75439.entry.js +2 -0
  535. package/dist/tegel/p-c6c75439.entry.js.map +1 -0
  536. package/dist/tegel/{p-25af32a7.entry.js → p-ccb82bc3.entry.js} +2 -2
  537. package/dist/tegel/p-ccb82bc3.entry.js.map +1 -0
  538. package/dist/tegel/p-cfacd8e6.entry.js +2 -0
  539. package/dist/tegel/p-cfacd8e6.entry.js.map +1 -0
  540. package/dist/tegel/p-d517eaef.entry.js +2 -0
  541. package/dist/tegel/p-d517eaef.entry.js.map +1 -0
  542. package/dist/tegel/p-d87ce5e9.entry.js +2 -0
  543. package/dist/tegel/p-d87ce5e9.entry.js.map +1 -0
  544. package/dist/tegel/p-dffd418e.entry.js +2 -0
  545. package/dist/tegel/p-dffd418e.entry.js.map +1 -0
  546. package/dist/tegel/{p-a4127075.entry.js → p-e60b9366.entry.js} +2 -2
  547. package/dist/tegel/{p-5e50ce81.entry.js → p-ef5487a3.entry.js} +2 -2
  548. package/dist/tegel/p-ef5487a3.entry.js.map +1 -0
  549. package/dist/tegel/p-fcb9e2c1.entry.js +2 -0
  550. package/dist/tegel/p-fcb9e2c1.entry.js.map +1 -0
  551. package/dist/tegel/tegel.css +10 -22
  552. package/dist/tegel/tegel.esm.js +1 -1
  553. package/dist/tegel/tegel.esm.js.map +1 -1
  554. package/dist/types/components/accordion/accordion.d.ts +0 -2
  555. package/dist/types/components/accordion/accordion.stories.d.ts +2 -2
  556. package/dist/types/components/badge/badge.stories.d.ts +0 -5
  557. package/dist/types/components/banner/sdds-banner.stories.d.ts +1 -6
  558. package/dist/types/components/breadcrumb/{sdds-breadcrumb-item/sdds-breadcrumb-item.d.ts → sdds-breadcrumb-link/sdds-breadcrumb-link.d.ts} +1 -1
  559. package/dist/types/components/breadcrumb/sdds-breadcrumb.stories.d.ts +2 -1
  560. package/dist/types/components/button/button-native.stories.d.ts +36 -25
  561. package/dist/types/components/button/button-webcomponent.stories.d.ts +30 -26
  562. package/dist/types/components/card/card.stories.d.ts +29 -30
  563. package/dist/types/components/card/sdds-card.stories.d.ts +13 -24
  564. package/dist/types/components/checkbox/checkbox.stories.d.ts +17 -5
  565. package/dist/types/components/checkbox/sdds-checkbox.stories.d.ts +17 -5
  566. package/dist/types/components/chips/chips.stories.d.ts +42 -18
  567. package/dist/types/components/data-table/native-table.stories.d.ts +17 -31
  568. package/dist/types/components/data-table/table/table.d.ts +5 -4
  569. package/dist/types/components/data-table/table-body/table-body.d.ts +9 -9
  570. package/dist/types/components/data-table/table-body-cell/table-body-cell.d.ts +4 -4
  571. package/dist/types/components/data-table/table-body-row/table-body-row.d.ts +7 -7
  572. package/dist/types/components/data-table/table-body-row-expandable/table-body-row-expandable.d.ts +6 -6
  573. package/dist/types/components/data-table/table-component-basic.stories.d.ts +54 -11
  574. package/dist/types/components/data-table/table-component-batch-actions.stories.d.ts +54 -14
  575. package/dist/types/components/data-table/table-component-bodydata.stories.d.ts +0 -5
  576. package/dist/types/components/data-table/table-component-custom-width.stories.d.ts +15 -32
  577. package/dist/types/components/data-table/table-component-event-listeners.stories.d.ts +54 -11
  578. package/dist/types/components/data-table/table-component-expandable-rows.stories.d.ts +54 -11
  579. package/dist/types/components/data-table/table-component-filtering.stories.d.ts +54 -16
  580. package/dist/types/components/data-table/table-component-multiselect.stories.d.ts +57 -14
  581. package/dist/types/components/data-table/table-component-pagination.stories.d.ts +58 -15
  582. package/dist/types/components/data-table/table-component-sorting.stories.d.ts +93 -10
  583. package/dist/types/components/data-table/table-footer/table-footer.d.ts +7 -7
  584. package/dist/types/components/data-table/table-header/table-header.d.ts +6 -6
  585. package/dist/types/components/data-table/table-header-cell/table-header-cell.d.ts +9 -10
  586. package/dist/types/components/data-table/table-toolbar/table-toolbar.d.ts +4 -4
  587. package/dist/types/components/datetime/datetime.d.ts +11 -5
  588. package/dist/types/components/datetime/datetime.stories.d.ts +36 -35
  589. package/dist/types/components/divider/divider-webcomponent.stories.d.ts +58 -0
  590. package/dist/types/components/divider/divider.d.ts +5 -0
  591. package/dist/types/components/divider/divider.stories.d.ts +9 -14
  592. package/dist/types/components/dropdown/dropdown-filter/dropdown-filter.d.ts +4 -2
  593. package/dist/types/components/dropdown/dropdown-filter/dropdown-filter.stories.d.ts +76 -12
  594. package/dist/types/components/dropdown/dropdown-native.stories.d.ts +26 -11
  595. package/dist/types/components/dropdown/dropdown-option/dropdown-option.d.ts +7 -2
  596. package/dist/types/components/dropdown/dropdown-wc-default.stories.d.ts +48 -33
  597. package/dist/types/components/dropdown/dropdown-wc-multiselect.stories.d.ts +61 -32
  598. package/dist/types/components/dropdown/dropdown.d.ts +4 -3
  599. package/dist/types/components/footer/footer.stories.d.ts +4 -4
  600. package/dist/types/components/footer/webcomponent/sdds-footer.stories.d.ts +1 -1
  601. package/dist/types/components/header/header-all.stories.d.ts +3 -1
  602. package/dist/types/components/header/header-default.stories.d.ts +3 -1
  603. package/dist/types/components/header/header-inline.stories.d.ts +3 -1
  604. package/dist/types/components/header/header-search.stories.d.ts +3 -1
  605. package/dist/types/components/header/header-toolbar.stories.d.ts +3 -1
  606. package/dist/types/components/link/link.stories.d.ts +13 -3
  607. package/dist/types/components/link/sdds-link.stories.d.ts +9 -9
  608. package/dist/types/components/message/message.stories.d.ts +32 -12
  609. package/dist/types/components/message/sdds-message.stories.d.ts +9 -8
  610. package/dist/types/components/modal/modal-native.stories.d.ts +23 -8
  611. package/dist/types/components/modal/modal-webcomponent.stories.d.ts +22 -4
  612. package/dist/types/components/modal/modal.d.ts +27 -7
  613. package/dist/types/components/popover-canvas/popover-canvas.d.ts +13 -4
  614. package/dist/types/components/popover-canvas/popover-canvas.stories.d.ts +5 -3
  615. package/dist/types/components/popover-menu/popover-menu-icons.stories.d.ts +5 -0
  616. package/dist/types/components/popover-menu/popover-menu.stories.d.ts +5 -0
  617. package/dist/types/components/radio-button/radio-button-component.stories.d.ts +1 -1
  618. package/dist/types/components/radio-button/radio-button.stories.d.ts +6 -1
  619. package/dist/types/components/slider/slider.d.ts +1 -1
  620. package/dist/types/components/slider/slider.stories.d.ts +90 -24
  621. package/dist/types/components/spinner/spinner.stories.d.ts +12 -2
  622. package/dist/types/components/stepper/sdds-stepper.d.ts +17 -0
  623. package/dist/types/components/stepper/stepper-item/sdds-stepper-item.d.ts +17 -0
  624. package/dist/types/components/stepper/stepper.stories.d.ts +24 -4
  625. package/dist/types/components/tabs/folder-tabs/folder-tabs-button/sdds-folder-tabs-button.d.ts +10 -0
  626. package/dist/types/components/tabs/folder-tabs/folder-tabs-link/sdds-folder-tabs-link.d.ts +16 -0
  627. package/dist/types/components/tabs/folder-tabs/folder-tabs.d.ts +38 -0
  628. package/dist/types/components/tabs/{inline-tabs-default/inline-tabs.stories.d.ts → folder-tabs/folder-tabs.stories.d.ts} +14 -11
  629. package/dist/types/components/tabs/inline-tabs/inline-tabs-button/sdds-inline-tabs-button.d.ts +7 -0
  630. package/dist/types/components/tabs/inline-tabs/inline-tabs-link/sdds-inline-tabs-link.d.ts +13 -0
  631. package/dist/types/components/tabs/inline-tabs/inline-tabs.d.ts +40 -0
  632. package/dist/types/components/tabs/{inline-tabs-fullbleed/inline-tabs-fullbleed.stories.d.ts → inline-tabs/inline-tabs.stories.d.ts} +16 -2
  633. package/dist/types/components/tabs/navigation-tabs/navigation-tabs-button/sdds-navigation-tabs-button.d.ts +7 -0
  634. package/dist/types/components/tabs/navigation-tabs/navigation-tabs-link/sdds-navigation-tabs-link.d.ts +13 -0
  635. package/dist/types/components/tabs/navigation-tabs/navigation-tabs.d.ts +25 -10
  636. package/dist/types/components/tabs/navigation-tabs/navigation-tabs.stories.d.ts +32 -1
  637. package/dist/types/components/textarea/textarea.stories.d.ts +39 -29
  638. package/dist/types/components/textfield/textfield.stories.d.ts +68 -47
  639. package/dist/types/components/toast/toast.stories.d.ts +8 -9
  640. package/dist/types/components/toggle/sdds-toggle.stories.d.ts +9 -9
  641. package/dist/types/components/toggle/toggle.stories.d.ts +10 -7
  642. package/dist/types/components/tooltip/tooltip.stories.d.ts +15 -3
  643. package/dist/types/components.d.ts +424 -153
  644. package/package.json +1 -1
  645. package/readme.md +23 -1
  646. package/dist/cjs/index-18eb94f0.js.map +0 -1
  647. package/dist/cjs/sdds-breadcrumb-item.cjs.entry.js +0 -27
  648. package/dist/cjs/sdds-breadcrumb-item.cjs.entry.js.map +0 -1
  649. package/dist/cjs/sdds-inline-tab.cjs.entry.js +0 -24
  650. package/dist/cjs/sdds-inline-tab.cjs.entry.js.map +0 -1
  651. package/dist/cjs/sdds-inline-tabs-fullbleed.cjs.entry.js +0 -100
  652. package/dist/cjs/sdds-inline-tabs-fullbleed.cjs.entry.js.map +0 -1
  653. package/dist/collection/components/breadcrumb/sdds-breadcrumb-item/sdds-breadcrumb-item.js.map +0 -1
  654. package/dist/collection/components/tabs/inline-tabs-default/inline-tab/inline-tab.css +0 -3
  655. package/dist/collection/components/tabs/inline-tabs-default/inline-tab/inline-tab.js.map +0 -1
  656. package/dist/collection/components/tabs/inline-tabs-default/inline-tabs.css +0 -156
  657. package/dist/collection/components/tabs/inline-tabs-default/inline-tabs.js +0 -313
  658. package/dist/collection/components/tabs/inline-tabs-default/inline-tabs.js.map +0 -1
  659. package/dist/collection/components/tabs/inline-tabs-default/inline-tabs.stories.js +0 -72
  660. package/dist/collection/components/tabs/inline-tabs-default/inline-tabs.stories.js.map +0 -1
  661. package/dist/collection/components/tabs/inline-tabs-fullbleed/inline-tabs-fullbleed.css +0 -141
  662. package/dist/collection/components/tabs/inline-tabs-fullbleed/inline-tabs-fullbleed.js +0 -129
  663. package/dist/collection/components/tabs/inline-tabs-fullbleed/inline-tabs-fullbleed.js.map +0 -1
  664. package/dist/collection/components/tabs/inline-tabs-fullbleed/inline-tabs-fullbleed.stories.js +0 -47
  665. package/dist/collection/components/tabs/inline-tabs-fullbleed/inline-tabs-fullbleed.stories.js.map +0 -1
  666. package/dist/components/sdds-breadcrumb-item.js +0 -47
  667. package/dist/components/sdds-breadcrumb-item.js.map +0 -1
  668. package/dist/components/sdds-inline-tab.js +0 -42
  669. package/dist/components/sdds-inline-tab.js.map +0 -1
  670. package/dist/components/sdds-inline-tabs-fullbleed.d.ts +0 -11
  671. package/dist/components/sdds-inline-tabs-fullbleed.js +0 -119
  672. package/dist/components/sdds-inline-tabs-fullbleed.js.map +0 -1
  673. package/dist/esm/index-96563708.js.map +0 -1
  674. package/dist/esm/sdds-breadcrumb-item.entry.js +0 -23
  675. package/dist/esm/sdds-breadcrumb-item.entry.js.map +0 -1
  676. package/dist/esm/sdds-inline-tab.entry.js +0 -20
  677. package/dist/esm/sdds-inline-tab.entry.js.map +0 -1
  678. package/dist/esm/sdds-inline-tabs-fullbleed.entry.js +0 -96
  679. package/dist/esm/sdds-inline-tabs-fullbleed.entry.js.map +0 -1
  680. package/dist/tegel/p-0953710b.entry.js +0 -2
  681. package/dist/tegel/p-0953710b.entry.js.map +0 -1
  682. package/dist/tegel/p-0b4eba86.js +0 -3
  683. package/dist/tegel/p-0b4eba86.js.map +0 -1
  684. package/dist/tegel/p-1eb8dd92.entry.js +0 -2
  685. package/dist/tegel/p-1eb8dd92.entry.js.map +0 -1
  686. package/dist/tegel/p-22c49f25.entry.js +0 -2
  687. package/dist/tegel/p-22c49f25.entry.js.map +0 -1
  688. package/dist/tegel/p-25af32a7.entry.js.map +0 -1
  689. package/dist/tegel/p-2d45bffe.entry.js +0 -2
  690. package/dist/tegel/p-2d45bffe.entry.js.map +0 -1
  691. package/dist/tegel/p-2fad34c4.entry.js.map +0 -1
  692. package/dist/tegel/p-336efb27.entry.js +0 -2
  693. package/dist/tegel/p-336efb27.entry.js.map +0 -1
  694. package/dist/tegel/p-33e7f7e5.entry.js +0 -2
  695. package/dist/tegel/p-33e7f7e5.entry.js.map +0 -1
  696. package/dist/tegel/p-458cda76.entry.js +0 -2
  697. package/dist/tegel/p-458cda76.entry.js.map +0 -1
  698. package/dist/tegel/p-525ec252.entry.js.map +0 -1
  699. package/dist/tegel/p-5c390692.entry.js.map +0 -1
  700. package/dist/tegel/p-5e50ce81.entry.js.map +0 -1
  701. package/dist/tegel/p-62ed6fdc.entry.js +0 -2
  702. package/dist/tegel/p-62ed6fdc.entry.js.map +0 -1
  703. package/dist/tegel/p-6e54f5a2.entry.js +0 -2
  704. package/dist/tegel/p-6e54f5a2.entry.js.map +0 -1
  705. package/dist/tegel/p-77a4950d.entry.js +0 -2
  706. package/dist/tegel/p-77a4950d.entry.js.map +0 -1
  707. package/dist/tegel/p-84e5d141.entry.js +0 -2
  708. package/dist/tegel/p-84e5d141.entry.js.map +0 -1
  709. package/dist/tegel/p-913cb5e9.entry.js +0 -2
  710. package/dist/tegel/p-913cb5e9.entry.js.map +0 -1
  711. package/dist/tegel/p-93571e36.entry.js +0 -2
  712. package/dist/tegel/p-93571e36.entry.js.map +0 -1
  713. package/dist/tegel/p-9904d7ec.entry.js.map +0 -1
  714. package/dist/tegel/p-a3741fdd.entry.js +0 -2
  715. package/dist/tegel/p-a3741fdd.entry.js.map +0 -1
  716. package/dist/tegel/p-ba975249.entry.js +0 -2
  717. package/dist/tegel/p-ba975249.entry.js.map +0 -1
  718. package/dist/tegel/p-c79b3861.entry.js +0 -2
  719. package/dist/tegel/p-c79b3861.entry.js.map +0 -1
  720. package/dist/tegel/p-d910763a.entry.js +0 -2
  721. package/dist/tegel/p-d910763a.entry.js.map +0 -1
  722. package/dist/tegel/p-e25424af.entry.js +0 -2
  723. package/dist/tegel/p-e25424af.entry.js.map +0 -1
  724. package/dist/tegel/p-ebffa726.entry.js.map +0 -1
  725. package/dist/tegel/p-fa3dbeec.entry.js +0 -2
  726. package/dist/tegel/p-fa3dbeec.entry.js.map +0 -1
  727. package/dist/types/components/tabs/inline-tabs-default/inline-tab/inline-tab.d.ts +0 -6
  728. package/dist/types/components/tabs/inline-tabs-default/inline-tabs.d.ts +0 -40
  729. package/dist/types/components/tabs/inline-tabs-fullbleed/inline-tabs-fullbleed.d.ts +0 -20
  730. /package/dist/tegel/{p-68fca08c.entry.js.map → p-067789d2.entry.js.map} +0 -0
  731. /package/dist/tegel/{p-c5537ff7.entry.js.map → p-12f566b7.entry.js.map} +0 -0
  732. /package/dist/tegel/{p-6bdce8c1.entry.js.map → p-400d74c2.entry.js.map} +0 -0
  733. /package/dist/tegel/{p-f51fe381.entry.js.map → p-4499e5cd.entry.js.map} +0 -0
  734. /package/dist/tegel/{p-aff4d273.entry.js.map → p-5dc33f45.entry.js.map} +0 -0
  735. /package/dist/tegel/{p-e5e10d8f.entry.js.map → p-750b7e5f.entry.js.map} +0 -0
  736. /package/dist/tegel/{p-f9dacc11.entry.js.map → p-792e8c5d.entry.js.map} +0 -0
  737. /package/dist/tegel/{p-b9ec54c5.entry.js.map → p-7991d22f.entry.js.map} +0 -0
  738. /package/dist/tegel/{p-b2f1ec40.entry.js.map → p-7f10356d.entry.js.map} +0 -0
  739. /package/dist/tegel/{p-262dca00.entry.js.map → p-a2cbef2c.entry.js.map} +0 -0
  740. /package/dist/tegel/{p-b2e46497.entry.js.map → p-a5cd0006.entry.js.map} +0 -0
  741. /package/dist/tegel/{p-72099402.entry.js.map → p-a61db32b.entry.js.map} +0 -0
  742. /package/dist/tegel/{p-cd08f5f0.entry.js.map → p-b9b329c0.entry.js.map} +0 -0
  743. /package/dist/tegel/{p-fc96cf21.entry.js.map → p-bd09c184.entry.js.map} +0 -0
  744. /package/dist/tegel/{p-e662e68d.entry.js.map → p-c4d28002.entry.js.map} +0 -0
  745. /package/dist/tegel/{p-a4127075.entry.js.map → p-e60b9366.entry.js.map} +0 -0
@@ -1,129 +0,0 @@
1
- import { Host, h } from '@stencil/core';
2
- export class InlineTabsFullbleed {
3
- constructor() {
4
- this.navWrapperElement = null; // reference to container with nav buttons
5
- this.componentWidth = 0; // visible width of this component
6
- this.buttonsWidth = 0; // total width of all nav items combined
7
- this.scrollWidth = 0; // total amount that is possible to scroll in the nav wrapper
8
- this.buttonWidth = 0; // current calculated width of the largest nav button
9
- this.modeVariant = null;
10
- this.tabs = [];
11
- this.showLeftScroll = false;
12
- this.showRightScroll = false;
13
- }
14
- componentDidRender() {
15
- this.calculateButtonWidth();
16
- }
17
- componentDidLoad() {
18
- const resizeObserver = new ResizeObserver((entries) => {
19
- entries.forEach((entry) => {
20
- const componentWidth = entry.contentRect.width;
21
- let buttonsWidth = 0;
22
- const navButtons = Array.from(this.host.children);
23
- navButtons.forEach((navButton) => {
24
- const style = window.getComputedStyle(navButton);
25
- buttonsWidth +=
26
- navButton.clientWidth + parseFloat(style.marginLeft) + parseFloat(style.marginRight);
27
- navButton.classList.add('sdds-inline-tabs-fullbleed--tab');
28
- });
29
- this.componentWidth = componentWidth;
30
- this.buttonsWidth = buttonsWidth;
31
- this.scrollWidth = buttonsWidth - componentWidth;
32
- if (this.buttonsWidth > this.componentWidth) {
33
- this.evaluateScrollButtons();
34
- }
35
- else {
36
- this.showLeftScroll = false;
37
- this.showRightScroll = false;
38
- }
39
- });
40
- });
41
- resizeObserver.observe(this.navWrapperElement);
42
- this.calculateButtonWidth();
43
- }
44
- calculateButtonWidth() {
45
- let best = 0;
46
- const navButtons = Array.from(this.host.children);
47
- navButtons.forEach((navButton) => {
48
- const style = window.getComputedStyle(navButton);
49
- const width = navButton.clientWidth + parseFloat(style.marginLeft) + parseFloat(style.marginRight);
50
- if (width > best) {
51
- best = width;
52
- }
53
- });
54
- this.buttonWidth = best;
55
- }
56
- scrollRight() {
57
- const scroll = this.navWrapperElement.scrollLeft;
58
- this.navWrapperElement.scrollLeft = scroll + this.buttonWidth;
59
- this.evaluateScrollButtons();
60
- }
61
- scrollLeft() {
62
- const scroll = this.navWrapperElement.scrollLeft;
63
- this.navWrapperElement.scrollLeft = scroll - this.buttonWidth;
64
- this.evaluateScrollButtons();
65
- }
66
- evaluateScrollButtons() {
67
- const scroll = this.navWrapperElement.scrollLeft;
68
- if (scroll >= this.scrollWidth) {
69
- this.showRightScroll = false;
70
- }
71
- else {
72
- this.showRightScroll = true;
73
- }
74
- if (scroll <= 0) {
75
- this.showLeftScroll = false;
76
- }
77
- else {
78
- this.showLeftScroll = true;
79
- }
80
- }
81
- render() {
82
- 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) => {
83
- this.navWrapperElement = el;
84
- } }, 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" })))))));
85
- }
86
- static get is() { return "sdds-inline-tabs-fullbleed"; }
87
- static get encapsulation() { return "shadow"; }
88
- static get originalStyleUrls() {
89
- return {
90
- "$": ["inline-tabs-fullbleed.scss"]
91
- };
92
- }
93
- static get styleUrls() {
94
- return {
95
- "$": ["inline-tabs-fullbleed.css"]
96
- };
97
- }
98
- static get properties() {
99
- return {
100
- "modeVariant": {
101
- "type": "string",
102
- "mutable": false,
103
- "complexType": {
104
- "original": "'primary' | 'secondary'",
105
- "resolved": "\"primary\" | \"secondary\"",
106
- "references": {}
107
- },
108
- "required": false,
109
- "optional": false,
110
- "docs": {
111
- "tags": [],
112
- "text": "Variant of the tabs, primary= on white, secondary= on grey50"
113
- },
114
- "attribute": "mode-variant",
115
- "reflect": false,
116
- "defaultValue": "null"
117
- }
118
- };
119
- }
120
- static get states() {
121
- return {
122
- "tabs": {},
123
- "showLeftScroll": {},
124
- "showRightScroll": {}
125
- };
126
- }
127
- static get elementRef() { return "host"; }
128
- }
129
- //# sourceMappingURL=inline-tabs-fullbleed.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"inline-tabs-fullbleed.js","sourceRoot":"","sources":["../../../../src/components/tabs/inline-tabs-fullbleed/inline-tabs-fullbleed.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAOzE,MAAM,OAAO,mBAAmB;;IAY9B,sBAAiB,GAAgB,IAAI,CAAC,CAAC,0CAA0C;IAEjF,mBAAc,GAAW,CAAC,CAAC,CAAC,kCAAkC;IAE9D,iBAAY,GAAW,CAAC,CAAC,CAAC,wCAAwC;IAElE,gBAAW,GAAW,CAAC,CAAC,CAAC,6DAA6D;IAEtF,gBAAW,GAAW,CAAC,CAAC,CAAC,qDAAqD;uBA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,EACnB,IAAI,EAAC,cAAc,EACnB,KAAK,EAAC,4BAA4B;cAElC,yBACY,SAAS,eACT,SAAS,EACnB,CAAC,EAAC,iXAAiX,GAC7W,CACJ,CACC,CACL,CACF,CACD,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, State, Element, h, Prop } from '@stencil/core';\n\n@Component({\n tag: 'sdds-inline-tabs-fullbleed',\n styleUrl: 'inline-tabs-fullbleed.scss',\n shadow: true,\n})\nexport class InlineTabsFullbleed {\n /** Variant of the tabs, primary= on white, secondary= on grey50 */\n @Prop() modeVariant: 'primary' | 'secondary' = null;\n\n @Element() host: HTMLElement;\n\n @State() tabs: Array<any> = []; // array with metadata for slotted children\n\n @State() showLeftScroll: boolean = false;\n\n @State() showRightScroll: boolean = false;\n\n navWrapperElement: HTMLElement = null; // reference to container with nav buttons\n\n componentWidth: number = 0; // visible width of this component\n\n buttonsWidth: number = 0; // total width of all nav items combined\n\n scrollWidth: number = 0; // total amount that is possible to scroll in the nav wrapper\n\n buttonWidth: number = 0; // current calculated width of the largest nav button\n\n componentDidRender() {\n this.calculateButtonWidth();\n }\n\n componentDidLoad() {\n const resizeObserver = new ResizeObserver((entries) => {\n entries.forEach((entry) => {\n const componentWidth = entry.contentRect.width;\n let buttonsWidth = 0;\n\n const navButtons = Array.from(this.host.children);\n navButtons.forEach((navButton: HTMLElement) => {\n const style = window.getComputedStyle(navButton);\n buttonsWidth +=\n navButton.clientWidth + parseFloat(style.marginLeft) + parseFloat(style.marginRight);\n\n navButton.classList.add('sdds-inline-tabs-fullbleed--tab');\n });\n\n this.componentWidth = componentWidth;\n this.buttonsWidth = buttonsWidth;\n this.scrollWidth = buttonsWidth - componentWidth;\n\n if (this.buttonsWidth > this.componentWidth) {\n this.evaluateScrollButtons();\n } else {\n this.showLeftScroll = false;\n this.showRightScroll = false;\n }\n });\n });\n\n resizeObserver.observe(this.navWrapperElement);\n\n this.calculateButtonWidth();\n }\n\n calculateButtonWidth() {\n let best = 0;\n const navButtons = Array.from(this.host.children);\n navButtons.forEach((navButton: HTMLElement) => {\n const style = window.getComputedStyle(navButton);\n const width =\n navButton.clientWidth + parseFloat(style.marginLeft) + parseFloat(style.marginRight);\n\n if (width > best) {\n best = width;\n }\n });\n\n this.buttonWidth = best;\n }\n\n scrollRight() {\n const scroll = this.navWrapperElement.scrollLeft;\n this.navWrapperElement.scrollLeft = scroll + this.buttonWidth;\n\n this.evaluateScrollButtons();\n }\n\n scrollLeft() {\n const scroll = this.navWrapperElement.scrollLeft;\n this.navWrapperElement.scrollLeft = scroll - this.buttonWidth;\n\n this.evaluateScrollButtons();\n }\n\n evaluateScrollButtons() {\n const scroll = this.navWrapperElement.scrollLeft;\n\n if (scroll >= this.scrollWidth) {\n this.showRightScroll = false;\n } else {\n this.showRightScroll = true;\n }\n\n if (scroll <= 0) {\n this.showLeftScroll = false;\n } else {\n this.showLeftScroll = true;\n }\n }\n\n render() {\n return (\n <Host class={`${this.modeVariant !== null ? `sdds-mode-variant-${this.modeVariant}`: ''}`}>\n <div class={`sdds-inline-tabs-fullbleed`}>\n <div\n class=\"sdds-inline-tabs-fullbleed-wrapper\"\n ref={(el) => {\n this.navWrapperElement = el as HTMLElement;\n }}\n >\n <slot />\n </div>\n <div class=\"sdds-inline-tabs-fullbleed-navigation\">\n <button\n class={`sdds-inline-tabs-fullbleed--forward ${\n this.showRightScroll ? 'sdds-inline-tabs-fullbleed--back__show' : ''\n }`}\n onClick={() => this.scrollRight()}\n disabled={!this.showRightScroll}\n >\n <svg\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n fill=\"currentColor\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n 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\"\n ></path>\n </svg>\n </button>\n <button\n class={`sdds-inline-tabs-fullbleed--back ${\n this.showLeftScroll ? 'sdds-inline-tabs-fullbleed--back__show' : ''\n }`}\n onClick={() => this.scrollLeft()}\n disabled={!this.showLeftScroll}\n >\n <svg\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n fill=\"currentColor\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n 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\"\n ></path>\n </svg>\n </button>\n </div>\n </div>\n </Host>\n );\n }\n}\n"]}
@@ -1,47 +0,0 @@
1
- import { formatHtmlPreview } from '../../../utils/utils';
2
- import readme from './readme.md';
3
- export default {
4
- title: 'Components/Tabs',
5
- parameters: {
6
- notes: readme,
7
- design: [
8
- {
9
- name: 'Figma',
10
- type: 'figma',
11
- url: 'https://www.figma.com/file/d8bTgEx7h694MSesi2CTLF/Tegel-UI-Library?node-id=10544%3A32834&t=Ne6myqwca5m00de7-1',
12
- },
13
- {
14
- name: 'Link',
15
- type: 'link',
16
- url: 'https://www.figma.com/file/d8bTgEx7h694MSesi2CTLF/Tegel-UI-Library?node-id=10544%3A32834&t=Ne6myqwca5m00de7-1',
17
- },
18
- ],
19
- },
20
- argTypes: {
21
- modeVariant: {
22
- name: 'Mode variant',
23
- control: {
24
- type: 'radio',
25
- },
26
- options: ['Inherit from parent', 'Primary', 'Secondary'],
27
- table: {
28
- defaultValue: { summary: 'Inherit from parent' },
29
- },
30
- },
31
- },
32
- args: {
33
- modeVariant: 'Inherit from parent',
34
- },
35
- };
36
- const Template = ({ modeVariant }) => formatHtmlPreview(`
37
- <sdds-inline-tabs-fullbleed id="inline-tabs-fullbleed-example" ${modeVariant !== 'Inherit from parent' ? `mode-variant="${modeVariant.toLowerCase()}"` : ''}>
38
- <a href="#">Tab name</a>
39
- <a href="#" class="sdds-inline-tabs-fullbleed--tab__active">Active tab</a>
40
- <a href="#">Tab name</a>
41
- <a href="#">Tab name</a>
42
- <a href="#" class="sdds-inline-tabs-fullbleed--tab__disabled" aria-disabled="true" tabindex="-1">Disabled tab</a>
43
- </sdds-inline-tabs-fullbleed>
44
- `);
45
- export const InlineTabsFullbleed = Template.bind({});
46
- InlineTabsFullbleed.args = {};
47
- //# sourceMappingURL=inline-tabs-fullbleed.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"inline-tabs-fullbleed.stories.js","sourceRoot":"","sources":["../../../../src/components/tabs/inline-tabs-fullbleed/inline-tabs-fullbleed.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,MAAM,MAAM,aAAa,CAAC;AAEjC,eAAe;EACb,KAAK,EAAE,iBAAiB;EACxB,UAAU,EAAE;IACV,KAAK,EAAE,MAAM;IACb,MAAM,EAAE;MACN;QACE,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,OAAO;QACb,GAAG,EAAE,+GAA+G;OACrH;MACD;QACE,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,MAAM;QACZ,GAAG,EAAE,+GAA+G;OACrH;KACF;GACF;EACD,QAAQ,EAAE;IACR,WAAW,EAAE;MACX,IAAI,EAAE,cAAc;MACpB,OAAO,EAAE;QACP,IAAI,EAAE,OAAO;OACd;MACD,OAAO,EAAE,CAAC,qBAAqB,EAAE,SAAS,EAAE,WAAW,CAAC;MACxD,KAAK,EAAE;QACL,YAAY,EAAE,EAAE,OAAO,EAAE,qBAAqB,EAAE;OACjD;KACF;GACF;EACD,IAAI,EAAE;IACJ,WAAW,EAAE,qBAAqB;GACnC;CACF,CAAC;AAEF,MAAM,QAAQ,GAAG,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,CACnC,iBAAiB,CAAC;mEAC+C,WAAW,KAAK,qBAAqB,CAAC,CAAC,CAAC,iBAAiB,WAAW,CAAC,WAAW,EAAE,GAAG,CAAA,CAAC,CAAC,EAAE;;;;;;;CAO3J,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,mBAAmB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACrD,mBAAmB,CAAC,IAAI,GAAG,EAAE,CAAC","sourcesContent":["import { formatHtmlPreview } from '../../../utils/utils';\nimport readme from './readme.md';\n\nexport default {\n title: 'Components/Tabs',\n parameters: {\n notes: readme,\n design: [\n {\n name: 'Figma',\n type: 'figma',\n url: 'https://www.figma.com/file/d8bTgEx7h694MSesi2CTLF/Tegel-UI-Library?node-id=10544%3A32834&t=Ne6myqwca5m00de7-1',\n },\n {\n name: 'Link',\n type: 'link',\n url: 'https://www.figma.com/file/d8bTgEx7h694MSesi2CTLF/Tegel-UI-Library?node-id=10544%3A32834&t=Ne6myqwca5m00de7-1',\n },\n ],\n },\n argTypes: {\n modeVariant: {\n name: 'Mode variant',\n control: {\n type: 'radio',\n },\n options: ['Inherit from parent', 'Primary', 'Secondary'],\n table: {\n defaultValue: { summary: 'Inherit from parent' },\n },\n },\n },\n args: {\n modeVariant: 'Inherit from parent',\n },\n};\n\nconst Template = ({ modeVariant }) =>\n formatHtmlPreview(`\n <sdds-inline-tabs-fullbleed id=\"inline-tabs-fullbleed-example\" ${modeVariant !== 'Inherit from parent' ? `mode-variant=\"${modeVariant.toLowerCase()}\"`: ''}>\n <a href=\"#\">Tab name</a>\n <a href=\"#\" class=\"sdds-inline-tabs-fullbleed--tab__active\">Active tab</a>\n <a href=\"#\">Tab name</a>\n <a href=\"#\">Tab name</a>\n <a href=\"#\" class=\"sdds-inline-tabs-fullbleed--tab__disabled\" aria-disabled=\"true\" tabindex=\"-1\">Disabled tab</a>\n </sdds-inline-tabs-fullbleed>\n`);\n\nexport const InlineTabsFullbleed = Template.bind({});\nInlineTabsFullbleed.args = {};\n"]}
@@ -1,47 +0,0 @@
1
- import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
-
3
- const sddsBreadcrumbItemCss = "@charset \"UTF-8\";li{display:flex;align-items:center;color:var(--sdds-breadcrumb-color)}li a{color:var(--sdds-breadcrumb-color);text-decoration:none}li:hover{cursor:pointer}li:hover a{color:var(--sdds-breadcrumb-color-hover);text-decoration:underline}li.disabled{pointer-events:none}li.disabled a,li.current a,li [aria-current=page] a{cursor:default;color:var(--sdds-breadcrumb-color-disabled)}li.disabled:hover a,li.current:hover a,li [aria-current=page]:hover a{color:var(--sdds-breadcrumb-color-disabled);text-decoration:none}li a::after{content:\"›\";color:var(--sdds-breadcrumb-separator-color);margin-right:4px;margin-left:4px;display:inline-block;width:4px;height:8px}:host(.last) a::after{display:none}";
4
-
5
- const SddsBreadcrumbItem$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
6
- constructor() {
7
- super();
8
- this.__registerHost();
9
- this.__attachShadow();
10
- this.current = false;
11
- this.href = undefined;
12
- this.target = '_self';
13
- this.rel = 'noopener';
14
- this.disabled = false;
15
- }
16
- render() {
17
- return (h("li", { class: `${this.current ? 'current' : ''}
18
- ${this.disabled ? 'disabled' : ''}` }, h("a", { href: !this.disabled ? this.href : null, target: this.target, rel: this.rel }, h("slot", null))));
19
- }
20
- static get style() { return sddsBreadcrumbItemCss; }
21
- }, [1, "sdds-breadcrumb-item", {
22
- "current": [4],
23
- "href": [1],
24
- "target": [1],
25
- "rel": [1],
26
- "disabled": [4]
27
- }]);
28
- function defineCustomElement$1() {
29
- if (typeof customElements === "undefined") {
30
- return;
31
- }
32
- const components = ["sdds-breadcrumb-item"];
33
- components.forEach(tagName => { switch (tagName) {
34
- case "sdds-breadcrumb-item":
35
- if (!customElements.get(tagName)) {
36
- customElements.define(tagName, SddsBreadcrumbItem$1);
37
- }
38
- break;
39
- } });
40
- }
41
-
42
- const SddsBreadcrumbItem = SddsBreadcrumbItem$1;
43
- const defineCustomElement = defineCustomElement$1;
44
-
45
- export { SddsBreadcrumbItem, defineCustomElement };
46
-
47
- //# sourceMappingURL=sdds-breadcrumb-item.js.map
@@ -1 +0,0 @@
1
- {"file":"sdds-breadcrumb-item.js","mappings":";;AAAA,MAAM,qBAAqB,GAAG,ysBAAysB;;MCO1tBA,oBAAkB;;;;;mBAEF,KAAK;;kBAM0B,OAAO;eAG3C,UAAU;oBAGJ,KAAK;;EAEjC,MAAM;IACJ,QACE,UACE,KAAK,EAAE,GAAG,IAAI,CAAC,OAAO,GAAG,SAAS,GAAG,EAAE;UACrC,IAAI,CAAC,QAAQ,GAAG,UAAU,GAAG,EAAE,EAAE,IAEnC,SAAG,IAAI,EAAE,CAAC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,IAAI,GAAG,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,IAC5E,eAAa,CACX,CACD,EACL;GACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["SddsBreadcrumbItem"],"sources":["./src/components/breadcrumb/sdds-breadcrumb-item/sdds-breadcrumb-item.scss?tag=sdds-breadcrumb-item&encapsulation=shadow","./src/components/breadcrumb/sdds-breadcrumb-item/sdds-breadcrumb-item.tsx"],"sourcesContent":["@import '../../../mixins/focus-state';\n\nli {\n display: flex;\n align-items: center;\n color: var(--sdds-breadcrumb-color);\n\n a {\n color: var(--sdds-breadcrumb-color);\n text-decoration: none;\n }\n\n &:hover {\n a {\n color: var(--sdds-breadcrumb-color-hover);\n text-decoration: underline;\n }\n\n cursor: pointer;\n }\n\n &.disabled {\n pointer-events: none;\n }\n\n &.disabled,\n &.current,\n [aria-current='page'] {\n a {\n cursor: default;\n color: var(--sdds-breadcrumb-color-disabled);\n }\n\n &:hover {\n a {\n color: var(--sdds-breadcrumb-color-disabled);\n text-decoration: none;\n }\n }\n }\n\n a::after {\n content: '\\203A';\n color: var(--sdds-breadcrumb-separator-color);\n margin-right: 4px;\n margin-left: 4px;\n display: inline-block;\n width: 4px;\n height: 8px;\n }\n}\n\n:host(.last) {\n a::after {\n display: none;\n }\n}\n","import { Component, h, Prop } from '@stencil/core';\n\n@Component({\n tag: 'sdds-breadcrumb-item',\n styleUrl: 'sdds-breadcrumb-item.scss',\n shadow: true,\n})\nexport class SddsBreadcrumbItem {\n /** Boolean for the current link */\n @Prop() current: boolean = false;\n\n /** Href for the link */\n @Prop() href: string;\n\n /** Where to open the linked URL */\n @Prop() target: '_self' | '_blank' | '_parent' | '_top' = '_self';\n\n /** 'noopener' is a security measure for legacy browsers that preventsthe opened page from getting access to the original page when using target='_blank'. */\n @Prop() rel: string = 'noopener';\n\n /** Toggle the disabled state for the breadcrumb */\n @Prop() disabled: boolean = false;\n\n render() {\n return (\n <li\n class={`${this.current ? 'current' : ''} \n ${this.disabled ? 'disabled' : ''}`}\n >\n <a href={!this.disabled ? this.href : null} target={this.target} rel={this.rel}>\n <slot></slot>\n </a>\n </li>\n );\n }\n}\n"],"version":3}
@@ -1,42 +0,0 @@
1
- import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
-
3
- const inlineTabCss = ":host{display:block}";
4
-
5
- const InlineTabsChild = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
6
- constructor() {
7
- super();
8
- this.__registerHost();
9
- this.__attachShadow();
10
- this.label = undefined;
11
- this.disabled = false;
12
- this.default = false;
13
- }
14
- render() {
15
- return (h(Host, null, h("slot", null)));
16
- }
17
- static get style() { return inlineTabCss; }
18
- }, [1, "sdds-inline-tab", {
19
- "label": [1],
20
- "disabled": [4],
21
- "default": [4]
22
- }]);
23
- function defineCustomElement$1() {
24
- if (typeof customElements === "undefined") {
25
- return;
26
- }
27
- const components = ["sdds-inline-tab"];
28
- components.forEach(tagName => { switch (tagName) {
29
- case "sdds-inline-tab":
30
- if (!customElements.get(tagName)) {
31
- customElements.define(tagName, InlineTabsChild);
32
- }
33
- break;
34
- } });
35
- }
36
-
37
- const SddsInlineTab = InlineTabsChild;
38
- const defineCustomElement = defineCustomElement$1;
39
-
40
- export { SddsInlineTab, defineCustomElement };
41
-
42
- //# sourceMappingURL=sdds-inline-tab.js.map
@@ -1 +0,0 @@
1
- {"file":"sdds-inline-tab.js","mappings":";;AAAA,MAAM,YAAY,GAAG,sBAAsB;;MCO9B,eAAe;;;;;;oBAGE,KAAK;mBAEN,KAAK;;EAEhC,MAAM;IACJ,QACE,EAAC,IAAI,QACH,eAAa,CACR,EACP;GACH;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["./src/components/tabs/inline-tabs-default/inline-tab/inline-tab.scss?tag=sdds-inline-tab&encapsulation=shadow","./src/components/tabs/inline-tabs-default/inline-tab/inline-tab.tsx"],"sourcesContent":[":host {\n display: block;\n}\n","import { Component, Host, h, Prop } from '@stencil/core';\n\n@Component({\n tag: 'sdds-inline-tab',\n styleUrl: 'inline-tab.scss',\n shadow: true,\n})\nexport class InlineTabsChild {\n @Prop() label: string;\n\n @Prop() disabled: boolean = false;\n\n @Prop() default: boolean = false;\n\n render() {\n return (\n <Host>\n <slot></slot>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../types/components";
2
-
3
- interface SddsInlineTabsFullbleed extends Components.SddsInlineTabsFullbleed, HTMLElement {}
4
- export const SddsInlineTabsFullbleed: {
5
- prototype: SddsInlineTabsFullbleed;
6
- new (): SddsInlineTabsFullbleed;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;
@@ -1,119 +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 };
118
-
119
- //# sourceMappingURL=sdds-inline-tabs-fullbleed.js.map
@@ -1 +0,0 @@
1
- {"file":"sdds-inline-tabs-fullbleed.js","mappings":";;AAAA,MAAM,sBAAsB,GAAG,sqHAAsqH;;MCOxrH,mBAAmB;;;;;IAY9B,sBAAiB,GAAgB,IAAI,CAAC;IAEtC,mBAAc,GAAW,CAAC,CAAC;IAE3B,iBAAY,GAAW,CAAC,CAAC;IAEzB,gBAAW,GAAW,CAAC,CAAC;IAExB,gBAAW,GAAW,CAAC,CAAC;uBAlBuB,IAAI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=sdds-inline-tabs-fullbleed&encapsulation=shadow","./src/components/tabs/inline-tabs-fullbleed/inline-tabs-fullbleed.tsx"],"sourcesContent":["@import '../../../mixins/focus-state';\n@import '../../../mixins/box-sizing';\n\n.sdds-inline-tabs-fullbleed {\n @include sdds-box-sizing;\n\n display: flex;\n position: relative;\n\n &::after {\n content: ' ';\n display: block;\n border-bottom: 1px solid var(--sdds-inline-tabs-fullbleed-horizontal-divider-background);\n opacity: var(--sdds-inline-tabs-fullbleed-horizontal-divider-opacity);\n left: 0;\n right: 0;\n bottom: 0;\n position: absolute;\n }\n\n &-wrapper {\n display: flex;\n flex-wrap: nowrap;\n width: 100%;\n overflow-x: scroll;\n scrollbar-width: none;\n\n &::-webkit-scrollbar {\n display: none;\n }\n }\n\n &--forward,\n &--back {\n cursor: pointer;\n width: 48px;\n height: 100%;\n border: 0;\n position: absolute;\n right: 0;\n top: 0;\n background-color: var(--sdds-inline-tabs-fullbleed-scroll-btn-background);\n display: flex;\n justify-content: center;\n align-items: center;\n opacity: 0;\n pointer-events: none;\n\n &__show {\n opacity: 1;\n pointer-events: all;\n }\n\n &:hover {\n background-color: var(--sdds-inline-tabs-fullbleed-scroll-btn-background-hover);\n }\n\n &:active {\n background-color: var(--sdds-inline-tabs-fullbleed-scroll-btn-background-active);\n }\n\n &:focus {\n @include sdds-focus-state;\n }\n svg{\n fill:var(--sdds-inline-tabs-scroll-btn-color);\n }\n }\n\n &-centered {\n justify-content: center;\n }\n\n /* tab */\n ::slotted(&--tab) {\n //fixme: headline-07 has a line-height that is not matching old storybook\n font: var(--sdds-headline-07);\n letter-spacing: var(--sdds-headline-07-ls);\n color: var(--sdds-inline-tabs-fullbleed-tab-color);\n opacity: 0.6;\n padding: 16px 0;\n margin-right: 32px;\n text-decoration: none;\n display: block;\n position: relative;\n transition: color 0.15s ease-in-out;\n white-space: nowrap;\n text-align: left;\n\n &::after {\n content: ' ';\n position: absolute;\n bottom: 0;\n right: 0;\n left: 0;\n margin-left: auto;\n width: 0;\n margin-right: auto;\n height: 2px;\n background-color: var(--sdds-inline-tabs-fullbleed-tab-indicator-background-hover);\n transition: width 0.15s ease-in-out;\n z-index: 1;\n }\n }\n \n ::slotted(&--tab__active) {\n color: var(--sdds-inline-tabs-fullbleed-tab-color-active);\n opacity:1;\n\n &::after {\n width: 100%;\n background-color: var(--sdds-inline-tabs-fullbleed-tab-indicator-background-active);\n }\n }\n\n ::slotted(&--tab:first-child) {\n margin-left: 32px;\n }\n\n ::slotted(&--tab:last-child) {\n margin-right: 32px;\n }\n\n /* tab states */\n ::slotted(&--tab:hover) {\n color: var(--sdds-inline-tabs-fullbleed-tab-color-hover);\n opacity:1;\n\n &::after {\n width: 100%;\n }\n }\n\n ::slotted(&--tab:focus) {\n @include sdds-focus-state;\n\n color: var(--sdds-inline-tabs-fullbleed-tab-color-focus);\n opacity:1;\n \n &::after {\n width: 0;\n }\n }\n\n ::slotted(&--tab__active:focus)::after {\n width: 100%;\n }\n\n ::slotted(&--tab__disabled) {\n color: var(--sdds-inline-tabs-fullbleed-tab-color-disabled);\n pointer-events: none;\n opacity: var(--sdds-inline-tabs-fullbleed-tab-color-opacity-disabled);\n }\n}\n\n.sdds-inline-tabs-fullbleed {\n background-color: var(--sdds-inline-tabs-fullbleed-tab-background);\n\n .sdds-inline-tabs-fullbleed--forward {\n background-color: var(--sdds-inline-tabs-fullbleed-tab-background);\n }\n\n .sdds-inline-tabs-fullbleed--back {\n background-color: var(--sdds-inline-tabs-fullbleed-tab-background);\n }\n}\n","import { Component, Host, State, Element, h, Prop } from '@stencil/core';\n\n@Component({\n tag: 'sdds-inline-tabs-fullbleed',\n styleUrl: 'inline-tabs-fullbleed.scss',\n shadow: true,\n})\nexport class InlineTabsFullbleed {\n /** Variant of the tabs, primary= on white, secondary= on grey50 */\n @Prop() modeVariant: 'primary' | 'secondary' = null;\n\n @Element() host: HTMLElement;\n\n @State() tabs: Array<any> = []; // array with metadata for slotted children\n\n @State() showLeftScroll: boolean = false;\n\n @State() showRightScroll: boolean = false;\n\n navWrapperElement: HTMLElement = null; // reference to container with nav buttons\n\n componentWidth: number = 0; // visible width of this component\n\n buttonsWidth: number = 0; // total width of all nav items combined\n\n scrollWidth: number = 0; // total amount that is possible to scroll in the nav wrapper\n\n buttonWidth: number = 0; // current calculated width of the largest nav button\n\n componentDidRender() {\n this.calculateButtonWidth();\n }\n\n componentDidLoad() {\n const resizeObserver = new ResizeObserver((entries) => {\n entries.forEach((entry) => {\n const componentWidth = entry.contentRect.width;\n let buttonsWidth = 0;\n\n const navButtons = Array.from(this.host.children);\n navButtons.forEach((navButton: HTMLElement) => {\n const style = window.getComputedStyle(navButton);\n buttonsWidth +=\n navButton.clientWidth + parseFloat(style.marginLeft) + parseFloat(style.marginRight);\n\n navButton.classList.add('sdds-inline-tabs-fullbleed--tab');\n });\n\n this.componentWidth = componentWidth;\n this.buttonsWidth = buttonsWidth;\n this.scrollWidth = buttonsWidth - componentWidth;\n\n if (this.buttonsWidth > this.componentWidth) {\n this.evaluateScrollButtons();\n } else {\n this.showLeftScroll = false;\n this.showRightScroll = false;\n }\n });\n });\n\n resizeObserver.observe(this.navWrapperElement);\n\n this.calculateButtonWidth();\n }\n\n calculateButtonWidth() {\n let best = 0;\n const navButtons = Array.from(this.host.children);\n navButtons.forEach((navButton: HTMLElement) => {\n const style = window.getComputedStyle(navButton);\n const width =\n navButton.clientWidth + parseFloat(style.marginLeft) + parseFloat(style.marginRight);\n\n if (width > best) {\n best = width;\n }\n });\n\n this.buttonWidth = best;\n }\n\n scrollRight() {\n const scroll = this.navWrapperElement.scrollLeft;\n this.navWrapperElement.scrollLeft = scroll + this.buttonWidth;\n\n this.evaluateScrollButtons();\n }\n\n scrollLeft() {\n const scroll = this.navWrapperElement.scrollLeft;\n this.navWrapperElement.scrollLeft = scroll - this.buttonWidth;\n\n this.evaluateScrollButtons();\n }\n\n evaluateScrollButtons() {\n const scroll = this.navWrapperElement.scrollLeft;\n\n if (scroll >= this.scrollWidth) {\n this.showRightScroll = false;\n } else {\n this.showRightScroll = true;\n }\n\n if (scroll <= 0) {\n this.showLeftScroll = false;\n } else {\n this.showLeftScroll = true;\n }\n }\n\n render() {\n return (\n <Host class={`${this.modeVariant !== null ? `sdds-mode-variant-${this.modeVariant}`: ''}`}>\n <div class={`sdds-inline-tabs-fullbleed`}>\n <div\n class=\"sdds-inline-tabs-fullbleed-wrapper\"\n ref={(el) => {\n this.navWrapperElement = el as HTMLElement;\n }}\n >\n <slot />\n </div>\n <div class=\"sdds-inline-tabs-fullbleed-navigation\">\n <button\n class={`sdds-inline-tabs-fullbleed--forward ${\n this.showRightScroll ? 'sdds-inline-tabs-fullbleed--back__show' : ''\n }`}\n onClick={() => this.scrollRight()}\n disabled={!this.showRightScroll}\n >\n <svg\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n fill=\"currentColor\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n 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\"\n ></path>\n </svg>\n </button>\n <button\n class={`sdds-inline-tabs-fullbleed--back ${\n this.showLeftScroll ? 'sdds-inline-tabs-fullbleed--back__show' : ''\n }`}\n onClick={() => this.scrollLeft()}\n disabled={!this.showLeftScroll}\n >\n <svg\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n fill=\"currentColor\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n 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\"\n ></path>\n </svg>\n </button>\n </div>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}