@scania/tegel 0.0.1-beta.9 → 0.0.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (689) hide show
  1. package/dist/cjs/index-18eb94f0.js +2182 -0
  2. package/dist/cjs/index-18eb94f0.js.map +1 -0
  3. package/dist/cjs/index.cjs.js +4 -0
  4. package/dist/cjs/index.cjs.js.map +1 -0
  5. package/dist/cjs/loader.cjs.js +24 -0
  6. package/dist/cjs/loader.cjs.js.map +1 -0
  7. package/dist/cjs/popper-11d5f714.js +1803 -0
  8. package/dist/cjs/popper-11d5f714.js.map +1 -0
  9. package/dist/cjs/sdds-accordion-item.cjs.entry.js +36 -0
  10. package/dist/cjs/sdds-accordion-item.cjs.entry.js.map +1 -0
  11. package/dist/cjs/sdds-accordion.cjs.entry.js +23 -0
  12. package/dist/cjs/sdds-accordion.cjs.entry.js.map +1 -0
  13. package/dist/cjs/sdds-badges.cjs.entry.js +56 -0
  14. package/dist/cjs/sdds-badges.cjs.entry.js.map +1 -0
  15. package/dist/cjs/sdds-banner.cjs.entry.js +81 -0
  16. package/dist/cjs/sdds-banner.cjs.entry.js.map +1 -0
  17. package/dist/cjs/sdds-block.cjs.entry.js +34 -0
  18. package/dist/cjs/sdds-block.cjs.entry.js.map +1 -0
  19. package/dist/cjs/sdds-body-cell_2.cjs.entry.js +175 -0
  20. package/dist/cjs/sdds-body-cell_2.cjs.entry.js.map +1 -0
  21. package/dist/cjs/sdds-breadcrumb-item.cjs.entry.js +27 -0
  22. package/dist/cjs/sdds-breadcrumb-item.cjs.entry.js.map +1 -0
  23. package/dist/cjs/sdds-breadcrumb.cjs.entry.js +25 -0
  24. package/dist/cjs/sdds-breadcrumb.cjs.entry.js.map +1 -0
  25. package/dist/cjs/sdds-button.cjs.entry.js +39 -0
  26. package/dist/cjs/sdds-button.cjs.entry.js.map +1 -0
  27. package/dist/cjs/sdds-card.cjs.entry.js +58 -0
  28. package/dist/cjs/sdds-card.cjs.entry.js.map +1 -0
  29. package/dist/cjs/sdds-checkbox.cjs.entry.js +57 -0
  30. package/dist/cjs/sdds-checkbox.cjs.entry.js.map +1 -0
  31. package/dist/cjs/sdds-datetime.cjs.entry.js +97 -0
  32. package/dist/cjs/sdds-datetime.cjs.entry.js.map +1 -0
  33. package/dist/cjs/sdds-dropdown-filter.cjs.entry.js +94 -0
  34. package/dist/cjs/sdds-dropdown-filter.cjs.entry.js.map +1 -0
  35. package/dist/cjs/sdds-dropdown_2.cjs.entry.js +343 -0
  36. package/dist/cjs/sdds-dropdown_2.cjs.entry.js.map +1 -0
  37. package/dist/cjs/sdds-header-cell.cjs.entry.js +141 -0
  38. package/dist/cjs/sdds-header-cell.cjs.entry.js.map +1 -0
  39. package/dist/cjs/sdds-icon.cjs.entry.js +44 -0
  40. package/dist/cjs/sdds-icon.cjs.entry.js.map +1 -0
  41. package/dist/cjs/sdds-inline-tab.cjs.entry.js +24 -0
  42. package/dist/cjs/sdds-inline-tab.cjs.entry.js.map +1 -0
  43. package/dist/cjs/sdds-inline-tabs-fullbleed.cjs.entry.js +100 -0
  44. package/dist/cjs/sdds-inline-tabs-fullbleed.cjs.entry.js.map +1 -0
  45. package/dist/cjs/sdds-inline-tabs.cjs.entry.js +223 -0
  46. package/dist/cjs/sdds-inline-tabs.cjs.entry.js.map +1 -0
  47. package/dist/cjs/sdds-link.cjs.entry.js +30 -0
  48. package/dist/cjs/sdds-link.cjs.entry.js.map +1 -0
  49. package/dist/cjs/sdds-message.cjs.entry.js +43 -0
  50. package/dist/cjs/sdds-message.cjs.entry.js.map +1 -0
  51. package/dist/cjs/sdds-modal.cjs.entry.js +53 -0
  52. package/dist/cjs/sdds-modal.cjs.entry.js.map +1 -0
  53. package/dist/cjs/sdds-navigation-tabs.cjs.entry.js +100 -0
  54. package/dist/cjs/sdds-navigation-tabs.cjs.entry.js.map +1 -0
  55. package/dist/cjs/sdds-popover-canvas.cjs.entry.js +86 -0
  56. package/dist/cjs/sdds-popover-canvas.cjs.entry.js.map +1 -0
  57. package/dist/cjs/sdds-popover-menu.cjs.entry.js +87 -0
  58. package/dist/cjs/sdds-popover-menu.cjs.entry.js.map +1 -0
  59. package/dist/cjs/sdds-radio-button.cjs.entry.js +34 -0
  60. package/dist/cjs/sdds-radio-button.cjs.entry.js.map +1 -0
  61. package/dist/cjs/sdds-slider.cjs.entry.js +359 -0
  62. package/dist/cjs/sdds-slider.cjs.entry.js.map +1 -0
  63. package/dist/cjs/sdds-spinner.cjs.entry.js +23 -0
  64. package/dist/cjs/sdds-spinner.cjs.entry.js.map +1 -0
  65. package/dist/cjs/sdds-table-body-row-expandable.cjs.entry.js +84 -0
  66. package/dist/cjs/sdds-table-body-row-expandable.cjs.entry.js.map +1 -0
  67. package/dist/cjs/sdds-table-body.cjs.entry.js +291 -0
  68. package/dist/cjs/sdds-table-body.cjs.entry.js.map +1 -0
  69. package/dist/cjs/sdds-table-footer.cjs.entry.js +166 -0
  70. package/dist/cjs/sdds-table-footer.cjs.entry.js.map +1 -0
  71. package/dist/cjs/sdds-table-header.cjs.entry.js +101 -0
  72. package/dist/cjs/sdds-table-header.cjs.entry.js.map +1 -0
  73. package/dist/cjs/sdds-table-toolbar.cjs.entry.js +67 -0
  74. package/dist/cjs/sdds-table-toolbar.cjs.entry.js.map +1 -0
  75. package/dist/cjs/sdds-table.cjs.entry.js +70 -0
  76. package/dist/cjs/sdds-table.cjs.entry.js.map +1 -0
  77. package/dist/cjs/sdds-textarea.cjs.entry.js +76 -0
  78. package/dist/cjs/sdds-textarea.cjs.entry.js.map +1 -0
  79. package/dist/cjs/sdds-textfield.cjs.entry.js +93 -0
  80. package/dist/cjs/sdds-textfield.cjs.entry.js.map +1 -0
  81. package/dist/cjs/sdds-toast.cjs.entry.js +88 -0
  82. package/dist/cjs/sdds-toast.cjs.entry.js.map +1 -0
  83. package/dist/cjs/sdds-toggle.cjs.entry.js +46 -0
  84. package/dist/cjs/sdds-toggle.cjs.entry.js.map +1 -0
  85. package/dist/cjs/sdds-tooltip.cjs.entry.js +106 -0
  86. package/dist/cjs/sdds-tooltip.cjs.entry.js.map +1 -0
  87. package/dist/cjs/tegel.cjs.js +28 -0
  88. package/dist/cjs/tegel.cjs.js.map +1 -0
  89. package/dist/collection/collection-manifest.json +52 -0
  90. package/dist/collection/components/accordion/accordion-item/accordion-item.css +153 -0
  91. package/dist/collection/components/accordion/accordion-item/accordion-item.js +147 -0
  92. package/dist/collection/components/accordion/accordion-item/accordion-item.js.map +1 -0
  93. package/dist/collection/components/accordion/accordion.css +63 -0
  94. package/dist/collection/components/accordion/accordion.js +63 -0
  95. package/dist/collection/components/accordion/accordion.js.map +1 -0
  96. package/dist/collection/components/accordion/accordion.stories.js +100 -0
  97. package/dist/collection/components/accordion/accordion.stories.js.map +1 -0
  98. package/dist/collection/components/badge/badge.stories.js +103 -0
  99. package/dist/collection/components/badge/badge.stories.js.map +1 -0
  100. package/dist/collection/components/badge/badges.css +42 -0
  101. package/dist/collection/components/badge/badges.js +148 -0
  102. package/dist/collection/components/badge/badges.js.map +1 -0
  103. package/dist/collection/components/banner/banner.stories.js +93 -0
  104. package/dist/collection/components/banner/banner.stories.js.map +1 -0
  105. package/dist/collection/components/banner/sdds-banner.css +88 -0
  106. package/dist/collection/components/banner/sdds-banner.js +331 -0
  107. package/dist/collection/components/banner/sdds-banner.js.map +1 -0
  108. package/dist/collection/components/banner/sdds-banner.stories.js +130 -0
  109. package/dist/collection/components/banner/sdds-banner.stories.js.map +1 -0
  110. package/dist/collection/components/block/block-native.stories.js +49 -0
  111. package/dist/collection/components/block/block-native.stories.js.map +1 -0
  112. package/dist/collection/components/block/sdds-block.css +22 -0
  113. package/dist/collection/components/block/sdds-block.js +56 -0
  114. package/dist/collection/components/block/sdds-block.js.map +1 -0
  115. package/dist/collection/components/block/sdds-block.stories.js +49 -0
  116. package/dist/collection/components/block/sdds-block.stories.js.map +1 -0
  117. package/dist/collection/components/breadcrumb/breadcrumb-component.css +30 -0
  118. package/dist/collection/components/breadcrumb/breadcrumb-item/breadcrumb-item.css +43 -0
  119. package/dist/collection/components/breadcrumb/breadcrumb-item/breadcrumb-item.js +84 -0
  120. package/dist/collection/components/breadcrumb/breadcrumb-item/breadcrumb-item.js.map +1 -0
  121. package/dist/collection/components/breadcrumb/breadcrumb.js +23 -0
  122. package/dist/collection/components/breadcrumb/breadcrumb.js.map +1 -0
  123. package/dist/collection/components/breadcrumb/breadcrumb.stories.js +27 -0
  124. package/dist/collection/components/breadcrumb/breadcrumb.stories.js.map +1 -0
  125. package/dist/collection/components/button/button-component.js +156 -0
  126. package/dist/collection/components/button/button-component.js.map +1 -0
  127. package/dist/collection/components/button/button-native.stories.js +188 -0
  128. package/dist/collection/components/button/button-native.stories.js.map +1 -0
  129. package/dist/collection/components/button/button-webcomponent.stories.js +190 -0
  130. package/dist/collection/components/button/button-webcomponent.stories.js.map +1 -0
  131. package/dist/collection/components/button/button.css +670 -0
  132. package/dist/collection/components/card/card.stories.js +168 -0
  133. package/dist/collection/components/card/card.stories.js.map +1 -0
  134. package/dist/collection/components/card/sdds-card.css +78 -0
  135. package/dist/collection/components/card/sdds-card.js +277 -0
  136. package/dist/collection/components/card/sdds-card.js.map +1 -0
  137. package/dist/collection/components/card/sdds-card.stories.js +169 -0
  138. package/dist/collection/components/card/sdds-card.stories.js.map +1 -0
  139. package/dist/collection/components/checkbox/checkbox.stories.js +55 -0
  140. package/dist/collection/components/checkbox/checkbox.stories.js.map +1 -0
  141. package/dist/collection/components/checkbox/sdds-checkbox.css +95 -0
  142. package/dist/collection/components/checkbox/sdds-checkbox.js +240 -0
  143. package/dist/collection/components/checkbox/sdds-checkbox.js.map +1 -0
  144. package/dist/collection/components/checkbox/sdds-checkbox.stories.js +72 -0
  145. package/dist/collection/components/checkbox/sdds-checkbox.stories.js.map +1 -0
  146. package/dist/collection/components/chips/chips.stories.js +107 -0
  147. package/dist/collection/components/chips/chips.stories.js.map +1 -0
  148. package/dist/collection/components/data-table/native-table.stories.js +161 -0
  149. package/dist/collection/components/data-table/native-table.stories.js.map +1 -0
  150. package/dist/collection/components/data-table/table/table.css +15 -0
  151. package/dist/collection/components/data-table/table/table.js +254 -0
  152. package/dist/collection/components/data-table/table/table.js.map +1 -0
  153. package/dist/collection/components/data-table/table-body/table-body.css +22 -0
  154. package/dist/collection/components/data-table/table-body/table-body.js +426 -0
  155. package/dist/collection/components/data-table/table-body/table-body.js.map +1 -0
  156. package/dist/collection/components/data-table/table-body-cell/table-body-cell.css +40 -0
  157. package/dist/collection/components/data-table/table-body-cell/table-body-cell.js +169 -0
  158. package/dist/collection/components/data-table/table-body-cell/table-body-cell.js.map +1 -0
  159. package/dist/collection/components/data-table/table-body-row/table-body-row.css +175 -0
  160. package/dist/collection/components/data-table/table-body-row/table-body-row.js +166 -0
  161. package/dist/collection/components/data-table/table-body-row/table-body-row.js.map +1 -0
  162. package/dist/collection/components/data-table/table-body-row-expandable/table-body-row-expandable.css +78 -0
  163. package/dist/collection/components/data-table/table-body-row-expandable/table-body-row-expandable.js +157 -0
  164. package/dist/collection/components/data-table/table-body-row-expandable/table-body-row-expandable.js.map +1 -0
  165. package/dist/collection/components/data-table/table-component-basic.stories.js +162 -0
  166. package/dist/collection/components/data-table/table-component-basic.stories.js.map +1 -0
  167. package/dist/collection/components/data-table/table-component-batch-actions.stories.js +129 -0
  168. package/dist/collection/components/data-table/table-component-batch-actions.stories.js.map +1 -0
  169. package/dist/collection/components/data-table/table-component-bodydata.stories.js +59 -0
  170. package/dist/collection/components/data-table/table-component-bodydata.stories.js.map +1 -0
  171. package/dist/collection/components/data-table/table-component-custom-width.stories.js +198 -0
  172. package/dist/collection/components/data-table/table-component-custom-width.stories.js.map +1 -0
  173. package/dist/collection/components/data-table/table-component-event-listeners.stories.js +152 -0
  174. package/dist/collection/components/data-table/table-component-event-listeners.stories.js.map +1 -0
  175. package/dist/collection/components/data-table/table-component-expandable-rows.stories.js +136 -0
  176. package/dist/collection/components/data-table/table-component-expandable-rows.stories.js.map +1 -0
  177. package/dist/collection/components/data-table/table-component-filtering.stories.js +138 -0
  178. package/dist/collection/components/data-table/table-component-filtering.stories.js.map +1 -0
  179. package/dist/collection/components/data-table/table-component-multiselect.stories.js +159 -0
  180. package/dist/collection/components/data-table/table-component-multiselect.stories.js.map +1 -0
  181. package/dist/collection/components/data-table/table-component-pagination.stories.js +128 -0
  182. package/dist/collection/components/data-table/table-component-pagination.stories.js.map +1 -0
  183. package/dist/collection/components/data-table/table-component-sorting.stories.js +127 -0
  184. package/dist/collection/components/data-table/table-component-sorting.stories.js.map +1 -0
  185. package/dist/collection/components/data-table/table-footer/table-footer.css +97 -0
  186. package/dist/collection/components/data-table/table-footer/table-footer.js +355 -0
  187. package/dist/collection/components/data-table/table-footer/table-footer.js.map +1 -0
  188. package/dist/collection/components/data-table/table-header/table-header.css +190 -0
  189. package/dist/collection/components/data-table/table-header/table-header.js +153 -0
  190. package/dist/collection/components/data-table/table-header/table-header.js.map +1 -0
  191. package/dist/collection/components/data-table/table-header-cell/table-header-cell.css +127 -0
  192. package/dist/collection/components/data-table/table-header-cell/table-header-cell.js +318 -0
  193. package/dist/collection/components/data-table/table-header-cell/table-header-cell.js.map +1 -0
  194. package/dist/collection/components/data-table/table-toolbar/table-toolbar.css +93 -0
  195. package/dist/collection/components/data-table/table-toolbar/table-toolbar.js +142 -0
  196. package/dist/collection/components/data-table/table-toolbar/table-toolbar.js.map +1 -0
  197. package/dist/collection/components/datetime/datetime.css +385 -0
  198. package/dist/collection/components/datetime/datetime.js +353 -0
  199. package/dist/collection/components/datetime/datetime.js.map +1 -0
  200. package/dist/collection/components/datetime/datetime.stories.js +208 -0
  201. package/dist/collection/components/datetime/datetime.stories.js.map +1 -0
  202. package/dist/collection/components/divider/divider.stories.js +134 -0
  203. package/dist/collection/components/divider/divider.stories.js.map +1 -0
  204. package/dist/collection/components/dropdown/dropdown-filter/dropdown-filter.js +340 -0
  205. package/dist/collection/components/dropdown/dropdown-filter/dropdown-filter.js.map +1 -0
  206. package/dist/collection/components/dropdown/dropdown-filter/dropdown-filter.stories.js +131 -0
  207. package/dist/collection/components/dropdown/dropdown-filter/dropdown-filter.stories.js.map +1 -0
  208. package/dist/collection/components/dropdown/dropdown-native.stories.js +91 -0
  209. package/dist/collection/components/dropdown/dropdown-native.stories.js.map +1 -0
  210. package/dist/collection/components/dropdown/dropdown-option/dropdown-option.js +186 -0
  211. package/dist/collection/components/dropdown/dropdown-option/dropdown-option.js.map +1 -0
  212. package/dist/collection/components/dropdown/dropdown-wc-default.stories.js +168 -0
  213. package/dist/collection/components/dropdown/dropdown-wc-default.stories.js.map +1 -0
  214. package/dist/collection/components/dropdown/dropdown-wc-multiselect.stories.js +147 -0
  215. package/dist/collection/components/dropdown/dropdown-wc-multiselect.stories.js.map +1 -0
  216. package/dist/collection/components/dropdown/dropdown.css +951 -0
  217. package/dist/collection/components/dropdown/dropdown.js +578 -0
  218. package/dist/collection/components/dropdown/dropdown.js.map +1 -0
  219. package/dist/collection/components/footer/footer.stories.js +118 -0
  220. package/dist/collection/components/footer/footer.stories.js.map +1 -0
  221. package/dist/collection/components/header/header-all.stories.js +218 -0
  222. package/dist/collection/components/header/header-all.stories.js.map +1 -0
  223. package/dist/collection/components/header/header-default.stories.js +48 -0
  224. package/dist/collection/components/header/header-default.stories.js.map +1 -0
  225. package/dist/collection/components/header/header-inline.stories.js +114 -0
  226. package/dist/collection/components/header/header-inline.stories.js.map +1 -0
  227. package/dist/collection/components/header/header-search.stories.js +264 -0
  228. package/dist/collection/components/header/header-search.stories.js.map +1 -0
  229. package/dist/collection/components/header/header-toolbar.stories.js +205 -0
  230. package/dist/collection/components/header/header-toolbar.stories.js.map +1 -0
  231. package/dist/collection/components/icon/icon-font.stories.js +58 -0
  232. package/dist/collection/components/icon/icon-font.stories.js.map +1 -0
  233. package/dist/collection/components/icon/icon-web-component.stories.js +52 -0
  234. package/dist/collection/components/icon/icon-web-component.stories.js.map +1 -0
  235. package/dist/collection/components/icon/icon.css +16 -0
  236. package/dist/collection/components/icon/icon.js +90 -0
  237. package/dist/collection/components/icon/icon.js.map +1 -0
  238. package/dist/collection/components/icon/iconsArray.js +2 -0
  239. package/dist/collection/components/link/link.stories.js +46 -0
  240. package/dist/collection/components/link/link.stories.js.map +1 -0
  241. package/dist/collection/components/link/sdds-link.css +36 -0
  242. package/dist/collection/components/link/sdds-link.js +122 -0
  243. package/dist/collection/components/link/sdds-link.js.map +1 -0
  244. package/dist/collection/components/link/sdds-link.stories.js +71 -0
  245. package/dist/collection/components/link/sdds-link.stories.js.map +1 -0
  246. package/dist/collection/components/message/message.stories.js +109 -0
  247. package/dist/collection/components/message/message.stories.js.map +1 -0
  248. package/dist/collection/components/message/sdds-message.css +70 -0
  249. package/dist/collection/components/message/sdds-message.js +136 -0
  250. package/dist/collection/components/message/sdds-message.js.map +1 -0
  251. package/dist/collection/components/message/sdds-message.stories.js +107 -0
  252. package/dist/collection/components/message/sdds-message.stories.js.map +1 -0
  253. package/dist/collection/components/modal/modal-native.stories.js +130 -0
  254. package/dist/collection/components/modal/modal-native.stories.js.map +1 -0
  255. package/dist/collection/components/modal/modal-webcomponent.stories.js +87 -0
  256. package/dist/collection/components/modal/modal-webcomponent.stories.js.map +1 -0
  257. package/dist/collection/components/modal/modal.css +350 -0
  258. package/dist/collection/components/modal/modal.js +149 -0
  259. package/dist/collection/components/modal/modal.js.map +1 -0
  260. package/dist/collection/components/popover-canvas/popover-canvas.css +20 -0
  261. package/dist/collection/components/popover-canvas/popover-canvas.js +220 -0
  262. package/dist/collection/components/popover-canvas/popover-canvas.js.map +1 -0
  263. package/dist/collection/components/popover-canvas/popover-canvas.stories.js +90 -0
  264. package/dist/collection/components/popover-canvas/popover-canvas.stories.js.map +1 -0
  265. package/dist/collection/components/popover-menu/popover-menu-icons.stories.js +122 -0
  266. package/dist/collection/components/popover-menu/popover-menu-icons.stories.js.map +1 -0
  267. package/dist/collection/components/popover-menu/popover-menu.css +19 -0
  268. package/dist/collection/components/popover-menu/popover-menu.js +221 -0
  269. package/dist/collection/components/popover-menu/popover-menu.js.map +1 -0
  270. package/dist/collection/components/popover-menu/popover-menu.stories.js +115 -0
  271. package/dist/collection/components/popover-menu/popover-menu.stories.js.map +1 -0
  272. package/dist/collection/components/radio-button/radio-button-component.css +123 -0
  273. package/dist/collection/components/radio-button/radio-button-component.stories.js +92 -0
  274. package/dist/collection/components/radio-button/radio-button-component.stories.js.map +1 -0
  275. package/dist/collection/components/radio-button/radio-button.js +161 -0
  276. package/dist/collection/components/radio-button/radio-button.js.map +1 -0
  277. package/dist/collection/components/radio-button/radio-button.stories.js +69 -0
  278. package/dist/collection/components/radio-button/radio-button.stories.js.map +1 -0
  279. package/dist/collection/components/side-menu/side-menu.stories.js +183 -0
  280. package/dist/collection/components/side-menu/side-menu.stories.js.map +1 -0
  281. package/dist/collection/components/slider/slider.css +297 -0
  282. package/dist/collection/components/slider/slider.js +722 -0
  283. package/dist/collection/components/slider/slider.js.map +1 -0
  284. package/dist/collection/components/slider/slider.stories.js +209 -0
  285. package/dist/collection/components/slider/slider.stories.js.map +1 -0
  286. package/dist/collection/components/spinner/spinner.css +79 -0
  287. package/dist/collection/components/spinner/spinner.js +62 -0
  288. package/dist/collection/components/spinner/spinner.js.map +1 -0
  289. package/dist/collection/components/spinner/spinner.stories.js +60 -0
  290. package/dist/collection/components/spinner/spinner.stories.js.map +1 -0
  291. package/dist/collection/components/stepper/stepper.stories.js +140 -0
  292. package/dist/collection/components/stepper/stepper.stories.js.map +1 -0
  293. package/dist/collection/components/tabs/inline-tabs-default/inline-tab/inline-tab.css +3 -0
  294. package/dist/collection/components/tabs/inline-tabs-default/inline-tab/inline-tab.js +81 -0
  295. package/dist/collection/components/tabs/inline-tabs-default/inline-tab/inline-tab.js.map +1 -0
  296. package/dist/collection/components/tabs/inline-tabs-default/inline-tabs.css +156 -0
  297. package/dist/collection/components/tabs/inline-tabs-default/inline-tabs.js +313 -0
  298. package/dist/collection/components/tabs/inline-tabs-default/inline-tabs.js.map +1 -0
  299. package/dist/collection/components/tabs/inline-tabs-default/inline-tabs.stories.js +72 -0
  300. package/dist/collection/components/tabs/inline-tabs-default/inline-tabs.stories.js.map +1 -0
  301. package/dist/collection/components/tabs/inline-tabs-fullbleed/inline-tabs-fullbleed.css +141 -0
  302. package/dist/collection/components/tabs/inline-tabs-fullbleed/inline-tabs-fullbleed.js +129 -0
  303. package/dist/collection/components/tabs/inline-tabs-fullbleed/inline-tabs-fullbleed.js.map +1 -0
  304. package/dist/collection/components/tabs/inline-tabs-fullbleed/inline-tabs-fullbleed.stories.js +47 -0
  305. package/dist/collection/components/tabs/inline-tabs-fullbleed/inline-tabs-fullbleed.stories.js.map +1 -0
  306. package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.css +157 -0
  307. package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.js +129 -0
  308. package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.js.map +1 -0
  309. package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.stories.js +33 -0
  310. package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.stories.js.map +1 -0
  311. package/dist/collection/components/textarea/textarea.css +298 -0
  312. package/dist/collection/components/textarea/textarea.js +403 -0
  313. package/dist/collection/components/textarea/textarea.js.map +1 -0
  314. package/dist/collection/components/textarea/textarea.stories.js +170 -0
  315. package/dist/collection/components/textarea/textarea.stories.js.map +1 -0
  316. package/dist/collection/components/textfield/textfield.css +502 -0
  317. package/dist/collection/components/textfield/textfield.js +440 -0
  318. package/dist/collection/components/textfield/textfield.js.map +1 -0
  319. package/dist/collection/components/textfield/textfield.stories.js +240 -0
  320. package/dist/collection/components/textfield/textfield.stories.js.map +1 -0
  321. package/dist/collection/components/toast/sdds-toast.css +102 -0
  322. package/dist/collection/components/toast/sdds-toast.js +257 -0
  323. package/dist/collection/components/toast/sdds-toast.js.map +1 -0
  324. package/dist/collection/components/toast/sdds-toast.stories.js +87 -0
  325. package/dist/collection/components/toast/sdds-toast.stories.js.map +1 -0
  326. package/dist/collection/components/toast/toast.stories.js +130 -0
  327. package/dist/collection/components/toast/toast.stories.js.map +1 -0
  328. package/dist/collection/components/toggle/sdds-toggle.css +104 -0
  329. package/dist/collection/components/toggle/sdds-toggle.js +262 -0
  330. package/dist/collection/components/toggle/sdds-toggle.js.map +1 -0
  331. package/dist/collection/components/toggle/sdds-toggle.stories.js +93 -0
  332. package/dist/collection/components/toggle/sdds-toggle.stories.js.map +1 -0
  333. package/dist/collection/components/toggle/toggle.stories.js +73 -0
  334. package/dist/collection/components/toggle/toggle.stories.js.map +1 -0
  335. package/dist/collection/components/tooltip/tooltip.css +46 -0
  336. package/dist/collection/components/tooltip/tooltip.js +230 -0
  337. package/dist/collection/components/tooltip/tooltip.js.map +1 -0
  338. package/dist/collection/components/tooltip/tooltip.stories.js +116 -0
  339. package/dist/collection/components/tooltip/tooltip.stories.js.map +1 -0
  340. package/dist/collection/components/utility/colour/background-color.stories.js +97 -0
  341. package/dist/collection/components/utility/colour/background-color.stories.js.map +1 -0
  342. package/dist/collection/components/utility/colour/text-color.stories.js +95 -0
  343. package/dist/collection/components/utility/colour/text-color.stories.js.map +1 -0
  344. package/dist/collection/foundations-stories/colour/colour-brand.stories.js +39 -0
  345. package/dist/collection/foundations-stories/colour/colour-brand.stories.js.map +1 -0
  346. package/dist/collection/foundations-stories/colour/colour-scales.stories.js +72 -0
  347. package/dist/collection/foundations-stories/colour/colour-scales.stories.js.map +1 -0
  348. package/dist/collection/foundations-stories/colour/colour-semantic.stories.js +41 -0
  349. package/dist/collection/foundations-stories/colour/colour-semantic.stories.js.map +1 -0
  350. package/dist/collection/foundations-stories/grid/grid.stories.js +387 -0
  351. package/dist/collection/foundations-stories/grid/grid.stories.js.map +1 -0
  352. package/dist/collection/foundations-stories/spacing/spacing-element.stories.js +101 -0
  353. package/dist/collection/foundations-stories/spacing/spacing-element.stories.js.map +1 -0
  354. package/dist/collection/foundations-stories/spacing/spacing-layout.stories.js +95 -0
  355. package/dist/collection/foundations-stories/spacing/spacing-layout.stories.js.map +1 -0
  356. package/dist/collection/foundations-stories/typography/typography-body.stories.js +17 -0
  357. package/dist/collection/foundations-stories/typography/typography-body.stories.js.map +1 -0
  358. package/dist/collection/foundations-stories/typography/typography-detail.stories.js +18 -0
  359. package/dist/collection/foundations-stories/typography/typography-detail.stories.js.map +1 -0
  360. package/dist/collection/foundations-stories/typography/typography-headline.stories.js +40 -0
  361. package/dist/collection/foundations-stories/typography/typography-headline.stories.js.map +1 -0
  362. package/dist/collection/foundations-stories/typography/typography-paragraph.stories.js +13 -0
  363. package/dist/collection/foundations-stories/typography/typography-paragraph.stories.js.map +1 -0
  364. package/dist/collection/index.js +2 -0
  365. package/dist/collection/index.js.map +1 -0
  366. package/dist/collection/stories/assets/code-brackets.svg +1 -0
  367. package/dist/collection/stories/assets/colors.svg +1 -0
  368. package/dist/collection/stories/assets/comments.svg +1 -0
  369. package/dist/collection/stories/assets/direction.svg +1 -0
  370. package/dist/collection/stories/assets/flow.svg +1 -0
  371. package/dist/collection/stories/assets/plugin.svg +1 -0
  372. package/dist/collection/stories/assets/repo.svg +1 -0
  373. package/dist/collection/stories/assets/stackalt.svg +1 -0
  374. package/dist/collection/utils/utils.js +13 -0
  375. package/dist/collection/utils/utils.js.map +1 -0
  376. package/dist/esm/index-96563708.js +2153 -0
  377. package/dist/esm/index-96563708.js.map +1 -0
  378. package/dist/esm/index.js +3 -0
  379. package/dist/esm/index.js.map +1 -0
  380. package/dist/esm/loader.js +20 -0
  381. package/dist/esm/loader.js.map +1 -0
  382. package/dist/esm/polyfills/core-js.js +11 -0
  383. package/dist/esm/polyfills/css-shim.js +1 -0
  384. package/dist/esm/polyfills/dom.js +79 -0
  385. package/dist/esm/polyfills/es5-html-element.js +1 -0
  386. package/dist/esm/polyfills/index.js +34 -0
  387. package/dist/esm/polyfills/system.js +6 -0
  388. package/dist/esm/popper-f860750c.js +1801 -0
  389. package/dist/esm/popper-f860750c.js.map +1 -0
  390. package/dist/esm/sdds-accordion-item.entry.js +32 -0
  391. package/dist/esm/sdds-accordion-item.entry.js.map +1 -0
  392. package/dist/esm/sdds-accordion.entry.js +19 -0
  393. package/dist/esm/sdds-accordion.entry.js.map +1 -0
  394. package/dist/esm/sdds-badges.entry.js +52 -0
  395. package/dist/esm/sdds-badges.entry.js.map +1 -0
  396. package/dist/esm/sdds-banner.entry.js +77 -0
  397. package/dist/esm/sdds-banner.entry.js.map +1 -0
  398. package/dist/esm/sdds-block.entry.js +30 -0
  399. package/dist/esm/sdds-block.entry.js.map +1 -0
  400. package/dist/esm/sdds-body-cell_2.entry.js +170 -0
  401. package/dist/esm/sdds-body-cell_2.entry.js.map +1 -0
  402. package/dist/esm/sdds-breadcrumb-item.entry.js +23 -0
  403. package/dist/esm/sdds-breadcrumb-item.entry.js.map +1 -0
  404. package/dist/esm/sdds-breadcrumb.entry.js +21 -0
  405. package/dist/esm/sdds-breadcrumb.entry.js.map +1 -0
  406. package/dist/esm/sdds-button.entry.js +35 -0
  407. package/dist/esm/sdds-button.entry.js.map +1 -0
  408. package/dist/esm/sdds-card.entry.js +54 -0
  409. package/dist/esm/sdds-card.entry.js.map +1 -0
  410. package/dist/esm/sdds-checkbox.entry.js +53 -0
  411. package/dist/esm/sdds-checkbox.entry.js.map +1 -0
  412. package/dist/esm/sdds-datetime.entry.js +93 -0
  413. package/dist/esm/sdds-datetime.entry.js.map +1 -0
  414. package/dist/esm/sdds-dropdown-filter.entry.js +90 -0
  415. package/dist/esm/sdds-dropdown-filter.entry.js.map +1 -0
  416. package/dist/esm/sdds-dropdown_2.entry.js +338 -0
  417. package/dist/esm/sdds-dropdown_2.entry.js.map +1 -0
  418. package/dist/esm/sdds-header-cell.entry.js +137 -0
  419. package/dist/esm/sdds-header-cell.entry.js.map +1 -0
  420. package/dist/esm/sdds-icon.entry.js +40 -0
  421. package/dist/esm/sdds-icon.entry.js.map +1 -0
  422. package/dist/esm/sdds-inline-tab.entry.js +20 -0
  423. package/dist/esm/sdds-inline-tab.entry.js.map +1 -0
  424. package/dist/esm/sdds-inline-tabs-fullbleed.entry.js +96 -0
  425. package/dist/esm/sdds-inline-tabs-fullbleed.entry.js.map +1 -0
  426. package/dist/esm/sdds-inline-tabs.entry.js +219 -0
  427. package/dist/esm/sdds-inline-tabs.entry.js.map +1 -0
  428. package/dist/esm/sdds-link.entry.js +26 -0
  429. package/dist/esm/sdds-link.entry.js.map +1 -0
  430. package/dist/esm/sdds-message.entry.js +39 -0
  431. package/dist/esm/sdds-message.entry.js.map +1 -0
  432. package/dist/esm/sdds-modal.entry.js +49 -0
  433. package/dist/esm/sdds-modal.entry.js.map +1 -0
  434. package/dist/esm/sdds-navigation-tabs.entry.js +96 -0
  435. package/dist/esm/sdds-navigation-tabs.entry.js.map +1 -0
  436. package/dist/esm/sdds-popover-canvas.entry.js +82 -0
  437. package/dist/esm/sdds-popover-canvas.entry.js.map +1 -0
  438. package/dist/esm/sdds-popover-menu.entry.js +83 -0
  439. package/dist/esm/sdds-popover-menu.entry.js.map +1 -0
  440. package/dist/esm/sdds-radio-button.entry.js +30 -0
  441. package/dist/esm/sdds-radio-button.entry.js.map +1 -0
  442. package/dist/esm/sdds-slider.entry.js +355 -0
  443. package/dist/esm/sdds-slider.entry.js.map +1 -0
  444. package/dist/esm/sdds-spinner.entry.js +19 -0
  445. package/dist/esm/sdds-spinner.entry.js.map +1 -0
  446. package/dist/esm/sdds-table-body-row-expandable.entry.js +80 -0
  447. package/dist/esm/sdds-table-body-row-expandable.entry.js.map +1 -0
  448. package/dist/esm/sdds-table-body.entry.js +287 -0
  449. package/dist/esm/sdds-table-body.entry.js.map +1 -0
  450. package/dist/esm/sdds-table-footer.entry.js +162 -0
  451. package/dist/esm/sdds-table-footer.entry.js.map +1 -0
  452. package/dist/esm/sdds-table-header.entry.js +97 -0
  453. package/dist/esm/sdds-table-header.entry.js.map +1 -0
  454. package/dist/esm/sdds-table-toolbar.entry.js +63 -0
  455. package/dist/esm/sdds-table-toolbar.entry.js.map +1 -0
  456. package/dist/esm/sdds-table.entry.js +66 -0
  457. package/dist/esm/sdds-table.entry.js.map +1 -0
  458. package/dist/esm/sdds-textarea.entry.js +72 -0
  459. package/dist/esm/sdds-textarea.entry.js.map +1 -0
  460. package/dist/esm/sdds-textfield.entry.js +89 -0
  461. package/dist/esm/sdds-textfield.entry.js.map +1 -0
  462. package/dist/esm/sdds-toast.entry.js +84 -0
  463. package/dist/esm/sdds-toast.entry.js.map +1 -0
  464. package/dist/esm/sdds-toggle.entry.js +42 -0
  465. package/dist/esm/sdds-toggle.entry.js.map +1 -0
  466. package/dist/esm/sdds-tooltip.entry.js +102 -0
  467. package/dist/esm/sdds-tooltip.entry.js.map +1 -0
  468. package/dist/esm/tegel.js +23 -0
  469. package/dist/esm/tegel.js.map +1 -0
  470. package/dist/index.cjs.js +1 -0
  471. package/dist/index.js +1 -0
  472. package/dist/node_modules/@types/jest/index.d.ts +1512 -0
  473. package/dist/tegel/index.esm.js +2 -0
  474. package/dist/tegel/index.esm.js.map +1 -0
  475. package/dist/tegel/p-07c7c2e7.entry.js +2 -0
  476. package/dist/tegel/p-07c7c2e7.entry.js.map +1 -0
  477. package/dist/tegel/p-0953710b.entry.js +2 -0
  478. package/dist/tegel/p-0953710b.entry.js.map +1 -0
  479. package/dist/tegel/p-0b4eba86.js +3 -0
  480. package/dist/tegel/p-0b4eba86.js.map +1 -0
  481. package/dist/tegel/p-1eb8dd92.entry.js +2 -0
  482. package/dist/tegel/p-1eb8dd92.entry.js.map +1 -0
  483. package/dist/tegel/p-25af32a7.entry.js +2 -0
  484. package/dist/tegel/p-25af32a7.entry.js.map +1 -0
  485. package/dist/tegel/p-262dca00.entry.js +2 -0
  486. package/dist/tegel/p-262dca00.entry.js.map +1 -0
  487. package/dist/tegel/p-2fad34c4.entry.js +2 -0
  488. package/dist/tegel/p-2fad34c4.entry.js.map +1 -0
  489. package/dist/tegel/p-336efb27.entry.js +2 -0
  490. package/dist/tegel/p-336efb27.entry.js.map +1 -0
  491. package/dist/tegel/p-33e7f7e5.entry.js +2 -0
  492. package/dist/tegel/p-33e7f7e5.entry.js.map +1 -0
  493. package/dist/tegel/p-458cda76.entry.js +2 -0
  494. package/dist/tegel/p-458cda76.entry.js.map +1 -0
  495. package/dist/tegel/p-46013562.entry.js +2 -0
  496. package/dist/tegel/p-46013562.entry.js.map +1 -0
  497. package/dist/tegel/p-525ec252.entry.js +2 -0
  498. package/dist/tegel/p-525ec252.entry.js.map +1 -0
  499. package/dist/tegel/p-5c390692.entry.js +2 -0
  500. package/dist/tegel/p-5c390692.entry.js.map +1 -0
  501. package/dist/tegel/p-5e50ce81.entry.js +2 -0
  502. package/dist/tegel/p-5e50ce81.entry.js.map +1 -0
  503. package/dist/tegel/p-62ed6fdc.entry.js +2 -0
  504. package/dist/tegel/p-62ed6fdc.entry.js.map +1 -0
  505. package/dist/tegel/p-68fca08c.entry.js +2 -0
  506. package/dist/tegel/p-68fca08c.entry.js.map +1 -0
  507. package/dist/tegel/p-6bdce8c1.entry.js +2 -0
  508. package/dist/tegel/p-6bdce8c1.entry.js.map +1 -0
  509. package/dist/tegel/p-6e54f5a2.entry.js +2 -0
  510. package/dist/tegel/p-6e54f5a2.entry.js.map +1 -0
  511. package/dist/tegel/p-72099402.entry.js +2 -0
  512. package/dist/tegel/p-72099402.entry.js.map +1 -0
  513. package/dist/tegel/p-77a4950d.entry.js +2 -0
  514. package/dist/tegel/p-77a4950d.entry.js.map +1 -0
  515. package/dist/tegel/p-84e5d141.entry.js +2 -0
  516. package/dist/tegel/p-84e5d141.entry.js.map +1 -0
  517. package/dist/tegel/p-913cb5e9.entry.js +2 -0
  518. package/dist/tegel/p-913cb5e9.entry.js.map +1 -0
  519. package/dist/tegel/p-92869ad1.entry.js +2 -0
  520. package/dist/tegel/p-92869ad1.entry.js.map +1 -0
  521. package/dist/tegel/p-93571e36.entry.js +2 -0
  522. package/dist/tegel/p-93571e36.entry.js.map +1 -0
  523. package/dist/tegel/p-9904d7ec.entry.js +2 -0
  524. package/dist/tegel/p-9904d7ec.entry.js.map +1 -0
  525. package/dist/tegel/p-a3741fdd.entry.js +2 -0
  526. package/dist/tegel/p-a3741fdd.entry.js.map +1 -0
  527. package/dist/tegel/p-aff4d273.entry.js +2 -0
  528. package/dist/tegel/p-aff4d273.entry.js.map +1 -0
  529. package/dist/tegel/p-b2dde7a5.entry.js +2 -0
  530. package/dist/tegel/p-b2dde7a5.entry.js.map +1 -0
  531. package/dist/tegel/p-b9ec54c5.entry.js +2 -0
  532. package/dist/tegel/p-b9ec54c5.entry.js.map +1 -0
  533. package/dist/tegel/p-ba975249.entry.js +2 -0
  534. package/dist/tegel/p-ba975249.entry.js.map +1 -0
  535. package/dist/tegel/p-c79b3861.entry.js +2 -0
  536. package/dist/tegel/p-c79b3861.entry.js.map +1 -0
  537. package/dist/tegel/p-cd08f5f0.entry.js +2 -0
  538. package/dist/tegel/p-cd08f5f0.entry.js.map +1 -0
  539. package/dist/tegel/p-d910763a.entry.js +2 -0
  540. package/dist/tegel/p-d910763a.entry.js.map +1 -0
  541. package/dist/tegel/p-e25424af.entry.js +2 -0
  542. package/dist/tegel/p-e25424af.entry.js.map +1 -0
  543. package/dist/tegel/p-e5e10d8f.entry.js +2 -0
  544. package/dist/tegel/p-e5e10d8f.entry.js.map +1 -0
  545. package/dist/tegel/p-e662e68d.entry.js +2 -0
  546. package/dist/tegel/p-e662e68d.entry.js.map +1 -0
  547. package/dist/tegel/p-ebffa726.entry.js +2 -0
  548. package/dist/tegel/p-ebffa726.entry.js.map +1 -0
  549. package/dist/tegel/p-ec26fc38.js +2 -0
  550. package/dist/tegel/p-ec26fc38.js.map +1 -0
  551. package/dist/tegel/p-fa3dbeec.entry.js +2 -0
  552. package/dist/tegel/p-fa3dbeec.entry.js.map +1 -0
  553. package/dist/tegel/p-fbcdf3d9.entry.js +2 -0
  554. package/dist/tegel/p-fbcdf3d9.entry.js.map +1 -0
  555. package/dist/tegel/p-fc96cf21.entry.js +2 -0
  556. package/dist/tegel/p-fc96cf21.entry.js.map +1 -0
  557. package/dist/tegel/tegel.css +109 -0
  558. package/dist/tegel/tegel.esm.js +2 -0
  559. package/dist/tegel/tegel.esm.js.map +1 -0
  560. package/dist/types/components/accordion/accordion-item/accordion-item.d.ts +17 -0
  561. package/dist/types/components/accordion/accordion.d.ts +7 -0
  562. package/dist/types/components/accordion/accordion.stories.d.ts +77 -0
  563. package/dist/types/components/badge/badge.stories.d.ts +66 -0
  564. package/dist/types/components/badge/badges.d.ts +16 -0
  565. package/dist/types/components/banner/banner.stories.d.ts +68 -0
  566. package/dist/types/components/banner/sdds-banner.d.ts +48 -0
  567. package/dist/types/components/banner/sdds-banner.stories.d.ts +109 -0
  568. package/dist/types/components/block/block-native.stories.d.ts +31 -0
  569. package/dist/types/components/block/sdds-block.d.ts +9 -0
  570. package/dist/types/components/block/sdds-block.stories.d.ts +32 -0
  571. package/dist/types/components/breadcrumb/breadcrumb-item/breadcrumb-item.d.ts +9 -0
  572. package/dist/types/components/breadcrumb/breadcrumb.d.ts +5 -0
  573. package/dist/types/components/breadcrumb/breadcrumb.stories.d.ts +12 -0
  574. package/dist/types/components/button/button-component.d.ts +18 -0
  575. package/dist/types/components/button/button-native.stories.d.ts +148 -0
  576. package/dist/types/components/button/button-webcomponent.stories.d.ts +147 -0
  577. package/dist/types/components/card/card.stories.d.ts +138 -0
  578. package/dist/types/components/card/sdds-card.d.ts +39 -0
  579. package/dist/types/components/card/sdds-card.stories.d.ts +139 -0
  580. package/dist/types/components/checkbox/checkbox.stories.d.ts +39 -0
  581. package/dist/types/components/checkbox/sdds-checkbox.d.ts +38 -0
  582. package/dist/types/components/checkbox/sdds-checkbox.stories.d.ts +40 -0
  583. package/dist/types/components/chips/chips.stories.d.ts +77 -0
  584. package/dist/types/components/data-table/native-table.stories.d.ts +133 -0
  585. package/dist/types/components/data-table/table/table.d.ts +47 -0
  586. package/dist/types/components/data-table/table-body/table-body.d.ts +54 -0
  587. package/dist/types/components/data-table/table-body-cell/table-body-cell.d.ts +24 -0
  588. package/dist/types/components/data-table/table-body-row/table-body-row.d.ts +27 -0
  589. package/dist/types/components/data-table/table-body-row-expandable/table-body-row-expandable.d.ts +27 -0
  590. package/dist/types/components/data-table/table-component-basic.stories.d.ts +101 -0
  591. package/dist/types/components/data-table/table-component-batch-actions.stories.d.ts +99 -0
  592. package/dist/types/components/data-table/table-component-bodydata.stories.d.ts +38 -0
  593. package/dist/types/components/data-table/table-component-custom-width.stories.d.ts +148 -0
  594. package/dist/types/components/data-table/table-component-event-listeners.stories.d.ts +88 -0
  595. package/dist/types/components/data-table/table-component-expandable-rows.stories.d.ts +88 -0
  596. package/dist/types/components/data-table/table-component-filtering.stories.d.ts +101 -0
  597. package/dist/types/components/data-table/table-component-multiselect.stories.d.ts +101 -0
  598. package/dist/types/components/data-table/table-component-pagination.stories.d.ts +101 -0
  599. package/dist/types/components/data-table/table-component-sorting.stories.d.ts +100 -0
  600. package/dist/types/components/data-table/table-footer/table-footer.d.ts +50 -0
  601. package/dist/types/components/data-table/table-header/table-header.d.ts +27 -0
  602. package/dist/types/components/data-table/table-header-cell/table-header-cell.d.ts +44 -0
  603. package/dist/types/components/data-table/table-toolbar/table-toolbar.d.ts +22 -0
  604. package/dist/types/components/datetime/datetime.d.ts +42 -0
  605. package/dist/types/components/datetime/datetime.stories.d.ts +127 -0
  606. package/dist/types/components/divider/divider.stories.d.ts +65 -0
  607. package/dist/types/components/dropdown/dropdown-filter/dropdown-filter.d.ts +42 -0
  608. package/dist/types/components/dropdown/dropdown-filter/dropdown-filter.stories.d.ts +73 -0
  609. package/dist/types/components/dropdown/dropdown-native.stories.d.ts +57 -0
  610. package/dist/types/components/dropdown/dropdown-option/dropdown-option.d.ts +19 -0
  611. package/dist/types/components/dropdown/dropdown-wc-default.stories.d.ts +129 -0
  612. package/dist/types/components/dropdown/dropdown-wc-multiselect.stories.d.ts +115 -0
  613. package/dist/types/components/dropdown/dropdown.d.ts +58 -0
  614. package/dist/types/components/footer/footer.stories.d.ts +45 -0
  615. package/dist/types/components/header/header-all.stories.d.ts +29 -0
  616. package/dist/types/components/header/header-default.stories.d.ts +29 -0
  617. package/dist/types/components/header/header-inline.stories.d.ts +29 -0
  618. package/dist/types/components/header/header-search.stories.d.ts +29 -0
  619. package/dist/types/components/header/header-toolbar.stories.d.ts +29 -0
  620. package/dist/types/components/icon/icon-font.stories.d.ts +38 -0
  621. package/dist/types/components/icon/icon-web-component.stories.d.ts +38 -0
  622. package/dist/types/components/icon/icon.d.ts +12 -0
  623. package/dist/types/components/link/link.stories.d.ts +33 -0
  624. package/dist/types/components/link/sdds-link.d.ts +13 -0
  625. package/dist/types/components/link/sdds-link.stories.d.ts +58 -0
  626. package/dist/types/components/message/message.stories.d.ts +69 -0
  627. package/dist/types/components/message/sdds-message.d.ts +14 -0
  628. package/dist/types/components/message/sdds-message.stories.d.ts +87 -0
  629. package/dist/types/components/modal/modal-native.stories.d.ts +59 -0
  630. package/dist/types/components/modal/modal-webcomponent.stories.d.ts +52 -0
  631. package/dist/types/components/modal/modal.d.ts +17 -0
  632. package/dist/types/components/popover-canvas/popover-canvas.d.ts +24 -0
  633. package/dist/types/components/popover-canvas/popover-canvas.stories.d.ts +25 -0
  634. package/dist/types/components/popover-menu/popover-menu-icons.stories.d.ts +27 -0
  635. package/dist/types/components/popover-menu/popover-menu.d.ts +24 -0
  636. package/dist/types/components/popover-menu/popover-menu.stories.d.ts +27 -0
  637. package/dist/types/components/radio-button/radio-button-component.stories.d.ts +39 -0
  638. package/dist/types/components/radio-button/radio-button.d.ts +26 -0
  639. package/dist/types/components/radio-button/radio-button.stories.d.ts +33 -0
  640. package/dist/types/components/side-menu/side-menu.stories.d.ts +42 -0
  641. package/dist/types/components/slider/slider.d.ts +86 -0
  642. package/dist/types/components/slider/slider.stories.d.ts +169 -0
  643. package/dist/types/components/spinner/spinner.d.ts +7 -0
  644. package/dist/types/components/spinner/spinner.stories.d.ts +37 -0
  645. package/dist/types/components/stepper/stepper.stories.d.ts +56 -0
  646. package/dist/types/components/tabs/inline-tabs-default/inline-tab/inline-tab.d.ts +6 -0
  647. package/dist/types/components/tabs/inline-tabs-default/inline-tabs.d.ts +40 -0
  648. package/dist/types/components/tabs/inline-tabs-default/inline-tabs.stories.d.ts +49 -0
  649. package/dist/types/components/tabs/inline-tabs-fullbleed/inline-tabs-fullbleed.d.ts +20 -0
  650. package/dist/types/components/tabs/inline-tabs-fullbleed/inline-tabs-fullbleed.stories.d.ts +30 -0
  651. package/dist/types/components/tabs/navigation-tabs/navigation-tabs.d.ts +20 -0
  652. package/dist/types/components/tabs/navigation-tabs/navigation-tabs.stories.d.ts +13 -0
  653. package/dist/types/components/textarea/textarea.d.ts +48 -0
  654. package/dist/types/components/textarea/textarea.stories.d.ts +116 -0
  655. package/dist/types/components/textfield/textfield.d.ts +52 -0
  656. package/dist/types/components/textfield/textfield.stories.d.ts +180 -0
  657. package/dist/types/components/toast/sdds-toast.d.ts +36 -0
  658. package/dist/types/components/toast/sdds-toast.stories.d.ts +56 -0
  659. package/dist/types/components/toast/toast.stories.d.ts +69 -0
  660. package/dist/types/components/toggle/sdds-toggle.d.ts +34 -0
  661. package/dist/types/components/toggle/sdds-toggle.stories.d.ts +74 -0
  662. package/dist/types/components/toggle/toggle.stories.d.ts +55 -0
  663. package/dist/types/components/tooltip/tooltip.d.ts +24 -0
  664. package/dist/types/components/tooltip/tooltip.stories.d.ts +54 -0
  665. package/dist/types/components/utility/colour/background-color.stories.d.ts +58 -0
  666. package/dist/types/components/utility/colour/text-color.stories.d.ts +58 -0
  667. package/dist/types/components.d.ts +2645 -0
  668. package/dist/types/foundations-stories/colour/colour-brand.stories.d.ts +13 -0
  669. package/dist/types/foundations-stories/colour/colour-scales.stories.d.ts +13 -0
  670. package/dist/types/foundations-stories/colour/colour-semantic.stories.d.ts +13 -0
  671. package/dist/types/foundations-stories/grid/grid.stories.d.ts +35 -0
  672. package/dist/types/foundations-stories/spacing/spacing-element.stories.d.ts +8 -0
  673. package/dist/types/foundations-stories/spacing/spacing-layout.stories.d.ts +8 -0
  674. package/dist/types/foundations-stories/typography/typography-body.stories.d.ts +8 -0
  675. package/dist/types/foundations-stories/typography/typography-detail.stories.d.ts +8 -0
  676. package/dist/types/foundations-stories/typography/typography-headline.stories.d.ts +21 -0
  677. package/dist/types/foundations-stories/typography/typography-paragraph.stories.d.ts +8 -0
  678. package/dist/types/global.d.ts +2 -0
  679. package/dist/types/index.d.ts +1 -0
  680. package/dist/types/stencil-public-runtime.d.ts +1637 -0
  681. package/dist/types/utils/utils.d.ts +2 -0
  682. package/loader/cdn.js +3 -0
  683. package/loader/index.cjs.js +3 -0
  684. package/loader/index.d.ts +21 -0
  685. package/loader/index.es2017.js +3 -0
  686. package/loader/index.js +4 -0
  687. package/loader/package.json +11 -0
  688. package/package.json +3 -3
  689. package/readme.md +34 -0
@@ -0,0 +1,72 @@
1
+ import { formatHtmlPreview } from '../../../utils/utils';
2
+ import readme from './readme.md';
3
+ import readmeTab from './inline-tab/readme.md';
4
+ export default {
5
+ title: 'Components/Tabs',
6
+ parameters: {
7
+ notes: { 'Inline Tabs': readme, 'Inline Tab': readmeTab },
8
+ backgrounds: { default: 'white' },
9
+ design: [
10
+ {
11
+ name: 'Figma',
12
+ type: 'figma',
13
+ url: 'https://www.figma.com/file/d8bTgEx7h694MSesi2CTLF/Tegel-UI-Library?node-id=10544%3A32834&t=Ne6myqwca5m00de7-1',
14
+ },
15
+ {
16
+ name: 'Link',
17
+ type: 'link',
18
+ url: 'https://www.figma.com/file/d8bTgEx7h694MSesi2CTLF/Tegel-UI-Library?node-id=10544%3A32834&t=Ne6myqwca5m00de7-1',
19
+ },
20
+ ],
21
+ },
22
+ argTypes: {
23
+ autoHeight: {
24
+ name: 'Same height',
25
+ description: 'Make all tab panels as tall as the tallest tab panel',
26
+ control: {
27
+ type: 'boolean',
28
+ },
29
+ },
30
+ modeVariant: {
31
+ name: 'Mode variant',
32
+ control: {
33
+ type: 'radio',
34
+ },
35
+ options: ['Inherit from parent', 'Primary', 'Secondary'],
36
+ table: {
37
+ defaultValue: { summary: 'Inherit from parent' },
38
+ },
39
+ },
40
+ backgrounds: {
41
+ table: {
42
+ disable: true,
43
+ },
44
+ },
45
+ },
46
+ args: {
47
+ autoHeight: false,
48
+ modeVariant: 'Inherit from parent',
49
+ },
50
+ };
51
+ // eslint-disable-next-line arrow-body-style
52
+ const Template = ({ autoHeight = false, modeVariant }) => {
53
+ return formatHtmlPreview(`
54
+ <sdds-inline-tabs ${autoHeight ? 'auto-height' : ''} ${modeVariant !== 'Inherit from parent' ? `mode-variant="${modeVariant.toLowerCase()}"` : ''}>
55
+ <sdds-inline-tab label="Tab with tall content">
56
+ <div data-name="Tab with tall content">
57
+ Tab panel 1
58
+ <div style="width:200px; height:200px; background: linear-gradient(125deg,rgba(255, 0, 0, 1) 0%,rgba(255, 255, 0, 1) 33%,rgba(0, 192, 255, 1) 66%,rgba(192, 0, 255, 1) 100%);"></div>
59
+ </div>
60
+ </sdds-inline-tab>
61
+ <sdds-inline-tab label="Default tab" default>
62
+ Tab panel 2
63
+ </sdds-inline-tab>
64
+ <sdds-inline-tab label="Disabled tab" disabled>
65
+ Tab panel 3
66
+ </sdds-inline-tab>
67
+ </sdds-inline-tabs>
68
+ `);
69
+ };
70
+ export const InlineTabs = Template.bind({});
71
+ InlineTabs.args = {};
72
+ //# sourceMappingURL=inline-tabs.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inline-tabs.stories.js","sourceRoot":"","sources":["../../../../src/components/tabs/inline-tabs-default/inline-tabs.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,SAAS,MAAM,wBAAwB,CAAC;AAE/C,eAAe;EACb,KAAK,EAAE,iBAAiB;EACxB,UAAU,EAAE;IACV,KAAK,EAAE,EAAE,aAAa,EAAE,MAAM,EAAE,YAAY,EAAE,SAAS,EAAE;IACzD,WAAW,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE;IACjC,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,UAAU,EAAE;MACV,IAAI,EAAE,aAAa;MACnB,WAAW,EAAE,sDAAsD;MACnE,OAAO,EAAE;QACP,IAAI,EAAE,SAAS;OAChB;KACF;IACD,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;IACD,WAAW,EAAE;MACX,KAAK,EAAE;QACL,OAAO,EAAE,IAAI;OACd;KACF;GACF;EACD,IAAI,EAAE;IACJ,UAAU,EAAE,KAAK;IACjB,WAAW,EAAE,qBAAqB;GACnC;CACF,CAAC;AACF,4CAA4C;AAC5C,MAAM,QAAQ,GAAG,CAAC,EAAE,UAAU,GAAG,KAAK,EAAE,WAAW,EAAE,EAAE,EAAE;EACvD,OAAO,iBAAiB,CAAC;wBAErB,UAAU,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,EAC/B,KAAK,WAAW,KAAK,qBAAqB,CAAC,CAAC,CAAC,iBAAiB,WAAW,CAAC,WAAW,EAAE,GAAG,CAAA,CAAC,CAAC,EAAE;;;;;;;;;;;;;;CAcjG,CAAC,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC5C,UAAU,CAAC,IAAI,GAAG,EAAE,CAAC","sourcesContent":["import { formatHtmlPreview } from '../../../utils/utils';\nimport readme from './readme.md';\nimport readmeTab from './inline-tab/readme.md';\n\nexport default {\n title: 'Components/Tabs',\n parameters: {\n notes: { 'Inline Tabs': readme, 'Inline Tab': readmeTab },\n backgrounds: { default: 'white' },\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 autoHeight: {\n name: 'Same height',\n description: 'Make all tab panels as tall as the tallest tab panel',\n control: {\n type: 'boolean',\n },\n },\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 backgrounds: {\n table: {\n disable: true,\n },\n },\n },\n args: {\n autoHeight: false,\n modeVariant: 'Inherit from parent',\n },\n};\n// eslint-disable-next-line arrow-body-style\nconst Template = ({ autoHeight = false, modeVariant }) => {\n return formatHtmlPreview(`\n <sdds-inline-tabs ${\n autoHeight ? 'auto-height' : ''\n } ${modeVariant !== 'Inherit from parent' ? `mode-variant=\"${modeVariant.toLowerCase()}\"`: ''}>\n <sdds-inline-tab label=\"Tab with tall content\">\n <div data-name=\"Tab with tall content\">\n Tab panel 1\n <div style=\"width:200px; height:200px; background: linear-gradient(125deg,rgba(255, 0, 0, 1) 0%,rgba(255, 255, 0, 1) 33%,rgba(0, 192, 255, 1) 66%,rgba(192, 0, 255, 1) 100%);\"></div>\n </div>\n </sdds-inline-tab>\n <sdds-inline-tab label=\"Default tab\" default>\n Tab panel 2\n </sdds-inline-tab>\n <sdds-inline-tab label=\"Disabled tab\" disabled>\n Tab panel 3\n </sdds-inline-tab>\n </sdds-inline-tabs>\n`);\n};\n\nexport const InlineTabs = Template.bind({});\nInlineTabs.args = {};\n"]}
@@ -0,0 +1,141 @@
1
+ .sdds-inline-tabs-fullbleed {
2
+ box-sizing: border-box;
3
+ display: flex;
4
+ position: relative;
5
+ /* tab */
6
+ /* tab states */
7
+ }
8
+ .sdds-inline-tabs-fullbleed * {
9
+ box-sizing: border-box;
10
+ }
11
+ .sdds-inline-tabs-fullbleed::after {
12
+ content: " ";
13
+ display: block;
14
+ border-bottom: 1px solid var(--sdds-inline-tabs-fullbleed-horizontal-divider-background);
15
+ opacity: var(--sdds-inline-tabs-fullbleed-horizontal-divider-opacity);
16
+ left: 0;
17
+ right: 0;
18
+ bottom: 0;
19
+ position: absolute;
20
+ }
21
+ .sdds-inline-tabs-fullbleed-wrapper {
22
+ display: flex;
23
+ flex-wrap: nowrap;
24
+ width: 100%;
25
+ overflow-x: scroll;
26
+ scrollbar-width: none;
27
+ }
28
+ .sdds-inline-tabs-fullbleed-wrapper::-webkit-scrollbar {
29
+ display: none;
30
+ }
31
+ .sdds-inline-tabs-fullbleed--forward, .sdds-inline-tabs-fullbleed--back {
32
+ cursor: pointer;
33
+ width: 48px;
34
+ height: 100%;
35
+ border: 0;
36
+ position: absolute;
37
+ right: 0;
38
+ top: 0;
39
+ background-color: var(--sdds-inline-tabs-fullbleed-scroll-btn-background);
40
+ display: flex;
41
+ justify-content: center;
42
+ align-items: center;
43
+ opacity: 0;
44
+ pointer-events: none;
45
+ }
46
+ .sdds-inline-tabs-fullbleed--forward__show, .sdds-inline-tabs-fullbleed--back__show {
47
+ opacity: 1;
48
+ pointer-events: all;
49
+ }
50
+ .sdds-inline-tabs-fullbleed--forward:hover, .sdds-inline-tabs-fullbleed--back:hover {
51
+ background-color: var(--sdds-inline-tabs-fullbleed-scroll-btn-background-hover);
52
+ }
53
+ .sdds-inline-tabs-fullbleed--forward:active, .sdds-inline-tabs-fullbleed--back:active {
54
+ background-color: var(--sdds-inline-tabs-fullbleed-scroll-btn-background-active);
55
+ }
56
+ .sdds-inline-tabs-fullbleed--forward:focus, .sdds-inline-tabs-fullbleed--back:focus {
57
+ outline: 2px solid var(--sdds-blue-400);
58
+ outline-offset: -2px;
59
+ }
60
+ .sdds-inline-tabs-fullbleed--forward svg, .sdds-inline-tabs-fullbleed--back svg {
61
+ fill: var(--sdds-inline-tabs-scroll-btn-color);
62
+ }
63
+ .sdds-inline-tabs-fullbleed-centered {
64
+ justify-content: center;
65
+ }
66
+ ::slotted(.sdds-inline-tabs-fullbleed--tab) {
67
+ font: var(--sdds-headline-07);
68
+ letter-spacing: var(--sdds-headline-07-ls);
69
+ color: var(--sdds-inline-tabs-fullbleed-tab-color);
70
+ opacity: 0.6;
71
+ padding: 16px 0;
72
+ margin-right: 32px;
73
+ text-decoration: none;
74
+ display: block;
75
+ position: relative;
76
+ transition: color 0.15s ease-in-out;
77
+ white-space: nowrap;
78
+ text-align: left;
79
+ }
80
+ ::slotted(.sdds-inline-tabs-fullbleed--tab)::after {
81
+ content: " ";
82
+ position: absolute;
83
+ bottom: 0;
84
+ right: 0;
85
+ left: 0;
86
+ margin-left: auto;
87
+ width: 0;
88
+ margin-right: auto;
89
+ height: 2px;
90
+ background-color: var(--sdds-inline-tabs-fullbleed-tab-indicator-background-hover);
91
+ transition: width 0.15s ease-in-out;
92
+ z-index: 1;
93
+ }
94
+ ::slotted(.sdds-inline-tabs-fullbleed--tab__active) {
95
+ color: var(--sdds-inline-tabs-fullbleed-tab-color-active);
96
+ opacity: 1;
97
+ }
98
+ ::slotted(.sdds-inline-tabs-fullbleed--tab__active)::after {
99
+ width: 100%;
100
+ background-color: var(--sdds-inline-tabs-fullbleed-tab-indicator-background-active);
101
+ }
102
+ ::slotted(.sdds-inline-tabs-fullbleed--tab:first-child) {
103
+ margin-left: 32px;
104
+ }
105
+ ::slotted(.sdds-inline-tabs-fullbleed--tab:last-child) {
106
+ margin-right: 32px;
107
+ }
108
+ ::slotted(.sdds-inline-tabs-fullbleed--tab:hover) {
109
+ color: var(--sdds-inline-tabs-fullbleed-tab-color-hover);
110
+ opacity: 1;
111
+ }
112
+ ::slotted(.sdds-inline-tabs-fullbleed--tab:hover)::after {
113
+ width: 100%;
114
+ }
115
+ ::slotted(.sdds-inline-tabs-fullbleed--tab:focus) {
116
+ outline: 2px solid var(--sdds-blue-400);
117
+ outline-offset: -2px;
118
+ color: var(--sdds-inline-tabs-fullbleed-tab-color-focus);
119
+ opacity: 1;
120
+ }
121
+ ::slotted(.sdds-inline-tabs-fullbleed--tab:focus)::after {
122
+ width: 0;
123
+ }
124
+ ::slotted(.sdds-inline-tabs-fullbleed--tab__active:focus)::after {
125
+ width: 100%;
126
+ }
127
+ ::slotted(.sdds-inline-tabs-fullbleed--tab__disabled) {
128
+ color: var(--sdds-inline-tabs-fullbleed-tab-color-disabled);
129
+ pointer-events: none;
130
+ opacity: var(--sdds-inline-tabs-fullbleed-tab-color-opacity-disabled);
131
+ }
132
+
133
+ .sdds-inline-tabs-fullbleed {
134
+ background-color: var(--sdds-inline-tabs-fullbleed-tab-background);
135
+ }
136
+ .sdds-inline-tabs-fullbleed .sdds-inline-tabs-fullbleed--forward {
137
+ background-color: var(--sdds-inline-tabs-fullbleed-tab-background);
138
+ }
139
+ .sdds-inline-tabs-fullbleed .sdds-inline-tabs-fullbleed--back {
140
+ background-color: var(--sdds-inline-tabs-fullbleed-tab-background);
141
+ }
@@ -0,0 +1,129 @@
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inline-tabs-fullbleed.js","sourceRoot":"","sources":["../../../../src/components/tabs/inline-tabs-fullbleed/inline-tabs-fullbleed.tsx"],"names":[],"mappings":"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","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"]}
@@ -0,0 +1,47 @@
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
@@ -0,0 +1 @@
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"]}
@@ -0,0 +1,157 @@
1
+ .sdds-navigation-tabs {
2
+ box-sizing: border-box;
3
+ background-color: var(--sdds-navigation-tabs-background);
4
+ position: relative;
5
+ display: flex;
6
+ /* tab */
7
+ /* tab states */
8
+ }
9
+ .sdds-navigation-tabs * {
10
+ box-sizing: border-box;
11
+ }
12
+ .sdds-navigation-tabs::after {
13
+ content: " ";
14
+ display: block;
15
+ border-bottom: 1px solid var(--sdds-navigation-tabs-horizontal-divider-background);
16
+ opacity: var(--sdds-navigation-tabs-horizontal-divider-opacity);
17
+ left: 0;
18
+ right: 0;
19
+ bottom: 0;
20
+ position: absolute;
21
+ }
22
+ .sdds-navigation-tabs-wrapper {
23
+ display: flex;
24
+ flex-wrap: nowrap;
25
+ width: 100%;
26
+ overflow-x: scroll;
27
+ scrollbar-width: none;
28
+ }
29
+ .sdds-navigation-tabs-wrapper::-webkit-scrollbar {
30
+ display: none;
31
+ }
32
+ .sdds-navigation-tabs-forward {
33
+ cursor: pointer;
34
+ width: 48px;
35
+ height: 100%;
36
+ border: 0;
37
+ position: absolute;
38
+ right: 0;
39
+ top: 0;
40
+ background-color: var(--sdds-navigation-tabs-scroll-btn-background);
41
+ display: flex;
42
+ justify-content: center;
43
+ align-items: center;
44
+ opacity: 0;
45
+ pointer-events: none;
46
+ }
47
+ .sdds-navigation-tabs-forward__show {
48
+ opacity: 1;
49
+ pointer-events: all;
50
+ }
51
+ .sdds-navigation-tabs-forward:hover {
52
+ background-color: var(--sdds-navigation-tabs-scroll-btn-background-hover);
53
+ text-decoration: none;
54
+ }
55
+ .sdds-navigation-tabs-forward:active {
56
+ background-color: var(--sdds-navigation-tabs-scroll-btn-background-active);
57
+ }
58
+ .sdds-navigation-tabs-forward:focus {
59
+ outline: 2px solid var(--sdds-blue-400);
60
+ outline-offset: -2px;
61
+ }
62
+ .sdds-navigation-tabs-back {
63
+ cursor: pointer;
64
+ width: 48px;
65
+ height: 100%;
66
+ border: 0;
67
+ position: absolute;
68
+ left: 0;
69
+ top: 0;
70
+ background-color: var(--sdds-navigation-tabs-scroll-btn-background);
71
+ display: flex;
72
+ justify-content: center;
73
+ align-items: center;
74
+ opacity: 0;
75
+ pointer-events: none;
76
+ }
77
+ .sdds-navigation-tabs-back__show {
78
+ opacity: 1;
79
+ pointer-events: all;
80
+ }
81
+ .sdds-navigation-tabs-back:hover {
82
+ background-color: var(--sdds-navigation-tabs-scroll-btn-background-hover);
83
+ }
84
+ .sdds-navigation-tabs-back:active {
85
+ background-color: var(--sdds-navigation-tabs-scroll-btn-background-active);
86
+ }
87
+ .sdds-navigation-tabs-back:focus {
88
+ outline: 2px solid var(--sdds-blue-400);
89
+ outline-offset: -2px;
90
+ }
91
+ ::slotted(.sdds-navigation-tabs-tab) {
92
+ font: var(--sdds-headline-07);
93
+ letter-spacing: var(--sdds-headline-07-ls);
94
+ color: var(--sdds-navigation-tabs-tab-color);
95
+ opacity: 0.6;
96
+ padding: 26px 0;
97
+ margin-right: 32px;
98
+ text-decoration: none;
99
+ display: block;
100
+ position: relative;
101
+ transition: color 0.15s ease-in-out;
102
+ white-space: nowrap;
103
+ background-color: transparent;
104
+ border: 0;
105
+ }
106
+ ::slotted(.sdds-navigation-tabs-tab)::after {
107
+ content: " ";
108
+ position: absolute;
109
+ bottom: 0;
110
+ right: 0;
111
+ left: 0;
112
+ margin-left: auto;
113
+ width: 0;
114
+ margin-right: auto;
115
+ height: 2px;
116
+ background-color: var(--sdds-navigation-tabs-tab-indicator-background-hover);
117
+ transition: width 0.15s ease-in-out;
118
+ z-index: 1;
119
+ }
120
+ ::slotted(.sdds-navigation-tabs-tab:first-child) {
121
+ margin-left: 32px;
122
+ }
123
+ ::slotted(.sdds-navigation-tabs-tab:last-child) {
124
+ margin-right: 32px;
125
+ }
126
+ ::slotted(.sdds-navigation-tabs-tab:hover) {
127
+ color: var(--sdds-navigation-tabs-tab-color-hover);
128
+ opacity: 1;
129
+ }
130
+ ::slotted(.sdds-navigation-tabs-tab:hover)::after {
131
+ width: 100%;
132
+ }
133
+ ::slotted(.sdds-navigation-tabs-tab:focus) {
134
+ outline: 2px solid var(--sdds-blue-400);
135
+ outline-offset: -2px;
136
+ color: var(--sdds-navigation-tabs-tab-color-focus);
137
+ opacity: 1;
138
+ }
139
+ ::slotted(.sdds-navigation-tabs-tab:focus)::after {
140
+ width: 0;
141
+ }
142
+ ::slotted(.sdds-navigation-tabs-tab-active) {
143
+ color: var(--sdds-navigation-tabs-tab-color-active);
144
+ opacity: 1;
145
+ }
146
+ ::slotted(.sdds-navigation-tabs-tab-active)::after {
147
+ width: 100%;
148
+ background-color: var(--sdds-navigation-tabs-tab-indicator-background-active);
149
+ }
150
+ ::slotted(.sdds-navigation-tabs-tab-active:focus)::after {
151
+ width: 100%;
152
+ }
153
+ ::slotted(.sdds-navigation-tabs-tab-disabled) {
154
+ color: var(--sdds-navigation-tabs-tab-color-disabled);
155
+ opacity: var(--sdds-navigation-tabs-tab-color-opacity-disabled);
156
+ pointer-events: none;
157
+ }