@scania/tegel 0.0.9 → 0.0.11

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 (594) hide show
  1. package/README.md +3 -0
  2. package/dist/cjs/index-ee36ffa1.js +10 -14
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/tds-accordion-item.cjs.entry.js +1 -1
  5. package/dist/cjs/tds-badge.cjs.entry.js +3 -3
  6. package/dist/cjs/tds-banner.cjs.entry.js +13 -13
  7. package/dist/cjs/tds-breadcrumb.cjs.entry.js +2 -4
  8. package/dist/cjs/tds-breadcrumbs.cjs.entry.js +0 -3
  9. package/dist/cjs/tds-button.cjs.entry.js +20 -18
  10. package/dist/cjs/tds-card.cjs.entry.js +19 -23
  11. package/dist/cjs/tds-checkbox.cjs.entry.js +2 -1
  12. package/dist/cjs/tds-chip.cjs.entry.js +14 -3
  13. package/dist/cjs/tds-core-header-item_2.cjs.entry.js +1 -1
  14. package/dist/cjs/{tds-dropdown-option-v2.cjs.entry.js → tds-dropdown-option.cjs.entry.js} +5 -5
  15. package/dist/cjs/{tds-dropdown-v2.cjs.entry.js → tds-dropdown.cjs.entry.js} +31 -26
  16. package/dist/cjs/tds-folder-tab.cjs.entry.js +2 -3
  17. package/dist/cjs/tds-folder-tabs.cjs.entry.js +5 -5
  18. package/dist/cjs/tds-footer-group.cjs.entry.js +3 -3
  19. package/dist/cjs/tds-footer-item.cjs.entry.js +1 -1
  20. package/dist/cjs/tds-footer.cjs.entry.js +6 -6
  21. package/dist/cjs/tds-header-cell.cjs.entry.js +1 -1
  22. package/dist/cjs/tds-header-dropdown-list-item.cjs.entry.js +2 -2
  23. package/dist/cjs/tds-header-dropdown-list-user.cjs.entry.js +4 -4
  24. package/dist/cjs/tds-header-dropdown-list.cjs.entry.js +6 -6
  25. package/dist/cjs/tds-header-dropdown.cjs.entry.js +4 -3
  26. package/dist/cjs/tds-header-hamburger.cjs.entry.js +1 -1
  27. package/dist/cjs/tds-header-launcher-button.cjs.entry.js +1 -1
  28. package/dist/cjs/tds-header-launcher-grid-title.cjs.entry.js +3 -2
  29. package/dist/cjs/tds-header-launcher-grid.cjs.entry.js +1 -1
  30. package/dist/cjs/tds-header-launcher-list-item.cjs.entry.js +1 -1
  31. package/dist/cjs/tds-header-launcher-list-title.cjs.entry.js +3 -2
  32. package/dist/cjs/tds-header-launcher-list.cjs.entry.js +3 -2
  33. package/dist/cjs/tds-header-launcher.cjs.entry.js +2 -2
  34. package/dist/cjs/tds-header.cjs.entry.js +1 -1
  35. package/dist/cjs/tds-inline-tab.cjs.entry.js +1 -1
  36. package/dist/cjs/tds-inline-tabs.cjs.entry.js +5 -5
  37. package/dist/cjs/tds-link.cjs.entry.js +2 -2
  38. package/dist/cjs/tds-message.cjs.entry.js +6 -6
  39. package/dist/cjs/tds-modal.cjs.entry.js +13 -5
  40. package/dist/cjs/tds-navigation-tab.cjs.entry.js +1 -1
  41. package/dist/cjs/tds-navigation-tabs.cjs.entry.js +5 -5
  42. package/dist/cjs/tds-popover-canvas.cjs.entry.js +10 -80
  43. package/dist/{components/popper.js → cjs/tds-popover-core.cjs.entry.js} +166 -13
  44. package/dist/cjs/tds-popover-menu.cjs.entry.js +12 -62
  45. package/dist/cjs/tds-radio-button.cjs.entry.js +3 -2
  46. package/dist/cjs/tds-side-menu-close-button.cjs.entry.js +1 -1
  47. package/dist/cjs/tds-side-menu-dropdown.cjs.entry.js +1 -1
  48. package/dist/cjs/tds-side-menu-item.cjs.entry.js +1 -1
  49. package/dist/cjs/tds-side-menu.cjs.entry.js +2 -2
  50. package/dist/cjs/tds-slider.cjs.entry.js +16 -15
  51. package/dist/cjs/tds-stepper.cjs.entry.js +3 -2
  52. package/dist/cjs/tds-table-body.cjs.entry.js +4 -51
  53. package/dist/cjs/tds-table-footer.cjs.entry.js +47 -39
  54. package/dist/cjs/tds-table-toolbar.cjs.entry.js +2 -2
  55. package/dist/cjs/tds-table.cjs.entry.js +2 -1
  56. package/dist/cjs/tds-text-field.cjs.entry.js +6 -2
  57. package/dist/cjs/tds-toast.cjs.entry.js +13 -28
  58. package/dist/cjs/tds-toggle.cjs.entry.js +2 -1
  59. package/dist/cjs/tds-tooltip.cjs.entry.js +41 -78
  60. package/dist/cjs/tegel.cjs.js +1 -1
  61. package/dist/cjs/{utils-2beb1aa0.js → utils-a908536d.js} +33 -12
  62. package/dist/collection/collection-manifest.json +1 -3
  63. package/dist/collection/components/accordion/accordion-item/accordion-item.js +5 -1
  64. package/dist/collection/components/accordion/accordion.js +3 -0
  65. package/dist/collection/components/accordion/accordion.stories.js +100 -0
  66. package/dist/collection/components/badge/badge.js +4 -4
  67. package/dist/collection/components/badge/badge.stories.js +106 -0
  68. package/dist/collection/components/banner/banner.css +12 -9
  69. package/dist/collection/components/banner/banner.js +40 -24
  70. package/dist/collection/components/banner/banner.stories.js +107 -0
  71. package/dist/collection/components/block/block.js +3 -0
  72. package/dist/collection/components/block/block.stories.js +49 -0
  73. package/dist/collection/components/breadcrumbs/breadcrumb/breadcrumb.css +4 -4
  74. package/dist/collection/components/breadcrumbs/breadcrumb/breadcrumb.js +4 -21
  75. package/dist/collection/components/breadcrumbs/breadcrumbs.js +3 -3
  76. package/dist/collection/components/breadcrumbs/breadcrumbs.stories.js +36 -0
  77. package/dist/collection/components/button/button.css +20 -14
  78. package/dist/collection/components/button/button.js +46 -23
  79. package/dist/collection/components/button/button.stories.js +185 -0
  80. package/dist/collection/components/card/card.css +18 -14
  81. package/dist/collection/components/card/card.js +32 -68
  82. package/dist/collection/components/card/card.stories.js +163 -0
  83. package/dist/collection/components/checkbox/checkbox.js +6 -2
  84. package/dist/collection/components/checkbox/checkbox.stories.js +80 -0
  85. package/dist/collection/components/chip/chip.css +23 -8
  86. package/dist/collection/components/chip/chip.js +19 -3
  87. package/dist/collection/components/chip/chip.stories.js +230 -0
  88. package/dist/collection/components/datetime/datetime.stories.js +195 -0
  89. package/dist/collection/components/divider/divider.stories.js +62 -0
  90. package/dist/collection/components/dropdown/dropdown-option/dropdown-option.js +145 -116
  91. package/dist/collection/components/dropdown/dropdown.css +212 -386
  92. package/dist/collection/components/dropdown/dropdown.js +480 -329
  93. package/dist/collection/components/dropdown/dropdown.stories.js +268 -0
  94. package/dist/collection/components/footer/footer-group/footer-group.css +3 -3
  95. package/dist/collection/components/footer/footer-group/footer-group.js +5 -2
  96. package/dist/collection/components/footer/footer-item/footer-item.css +16 -8
  97. package/dist/collection/components/footer/footer-item/footer-item.js +3 -0
  98. package/dist/collection/components/footer/footer.css +9 -12
  99. package/dist/collection/components/footer/footer.js +10 -10
  100. package/dist/collection/components/footer/footer.stories.js +145 -0
  101. package/dist/collection/components/header/core-header-item/core-header-item.js +3 -0
  102. package/dist/collection/components/header/header-brand-symbol/header-brand-symbol.js +3 -0
  103. package/dist/collection/components/header/header-dropdown/header-dropdown.js +11 -5
  104. package/dist/collection/components/header/header-dropdown-list/header-dropdown-list.css +2 -2
  105. package/dist/collection/components/header/header-dropdown-list/header-dropdown-list.js +10 -7
  106. package/dist/collection/components/header/header-dropdown-list-item/header-dropdown-list-item.css +3 -3
  107. package/dist/collection/components/header/header-dropdown-list-item/header-dropdown-list-item.js +7 -4
  108. package/dist/collection/components/header/header-dropdown-list-user/header-dropdown-list-user.css +1 -1
  109. package/dist/collection/components/header/header-dropdown-list-user/header-dropdown-list-user.js +13 -9
  110. package/dist/collection/components/header/header-hamburger/header-hamburger.css +0 -1
  111. package/dist/collection/components/header/header-item/header-item.js +3 -0
  112. package/dist/collection/components/header/header-launcher/header-launcher.js +5 -2
  113. package/dist/collection/components/header/header-launcher-grid/header-launcher-grid.js +3 -0
  114. package/dist/collection/components/header/header-launcher-grid-item/header-launcher-grid-item.js +3 -0
  115. package/dist/collection/components/header/header-launcher-grid-title/header-launcher-grid-title.js +6 -2
  116. package/dist/collection/components/header/header-launcher-list/header-launcher-list.js +6 -2
  117. package/dist/collection/components/header/header-launcher-list-item/header-launcher-list-item.js +4 -1
  118. package/dist/collection/components/header/header-launcher-list-title/header-launcher-list-title.js +6 -2
  119. package/dist/collection/components/header/header-title/header-title.js +3 -0
  120. package/dist/collection/components/header/header.css +1 -1
  121. package/dist/collection/components/header/header.js +6 -0
  122. package/dist/collection/components/header/header.stories.js +82 -0
  123. package/dist/collection/components/icon/icon.stories.js +48 -0
  124. package/dist/collection/components/link/link.css +16 -13
  125. package/dist/collection/components/link/link.js +5 -1
  126. package/dist/collection/components/link/link.stories.js +59 -0
  127. package/dist/collection/components/message/message.css +16 -16
  128. package/dist/collection/components/message/message.js +11 -8
  129. package/dist/collection/components/message/message.stories.js +110 -0
  130. package/dist/collection/components/modal/modal.css +19 -33
  131. package/dist/collection/components/modal/modal.js +36 -6
  132. package/dist/collection/components/modal/modal.stories.js +109 -0
  133. package/dist/collection/components/popover-canvas/popover-canvas.css +3 -7
  134. package/dist/collection/components/popover-canvas/popover-canvas.js +15 -104
  135. package/dist/collection/components/popover-canvas/popover-canvas.stories.js +92 -0
  136. package/dist/collection/components/popover-core/popover-core.js +390 -0
  137. package/dist/collection/components/popover-menu/popover-menu.css +2 -8
  138. package/dist/collection/components/popover-menu/popover-menu.js +18 -81
  139. package/dist/collection/components/popover-menu/popover-menu.stories.js +140 -0
  140. package/dist/collection/components/radio-button/radio-button.css +1 -1
  141. package/dist/collection/components/radio-button/radio-button.js +6 -2
  142. package/dist/collection/components/radio-button/radio-button.stories.js +91 -0
  143. package/dist/collection/components/side-menu/side-menu-collapse-button/side-menu-collapse-button.js +3 -0
  144. package/dist/collection/components/side-menu/side-menu-dropdown/side-menu-dropdown.css +1 -1
  145. package/dist/collection/components/side-menu/side-menu-dropdown/side-menu-dropdown.js +5 -0
  146. package/dist/collection/components/side-menu/side-menu-dropdown-list/side-menu-dropdown-list.js +3 -0
  147. package/dist/collection/components/side-menu/side-menu-dropdown-list-item/side-menu-dropdown-list-item.js +3 -0
  148. package/dist/collection/components/side-menu/side-menu-item/side-menu-item.css +1 -1
  149. package/dist/collection/components/side-menu/side-menu-item/side-menu-item.js +3 -0
  150. package/dist/collection/components/side-menu/side-menu-user/side-menu-user.js +3 -0
  151. package/dist/collection/components/side-menu/side-menu-user-image/side-menu-user-image.js +5 -0
  152. package/dist/collection/components/side-menu/side-menu.css +6 -5
  153. package/dist/collection/components/side-menu/side-menu.js +11 -3
  154. package/dist/collection/components/side-menu/side-menu.stories.js +215 -0
  155. package/dist/collection/components/slider/slider.js +17 -16
  156. package/dist/collection/components/slider/slider.stories.js +243 -0
  157. package/dist/collection/components/spinner/spinner.stories.js +61 -0
  158. package/dist/collection/components/stepper/step/step.js +3 -0
  159. package/dist/collection/components/stepper/stepper.css +3 -0
  160. package/dist/collection/components/stepper/stepper.js +7 -3
  161. package/dist/collection/components/stepper/stepper.stories.js +95 -0
  162. package/dist/collection/components/table/table/table.js +7 -3
  163. package/dist/collection/components/table/table-body/table-body.js +15 -60
  164. package/dist/collection/components/table/table-body-cell/table-body-cell.js +3 -0
  165. package/dist/collection/components/table/table-body-row/table-body-row.js +3 -0
  166. package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.js +4 -0
  167. package/dist/collection/components/table/table-component-basic.stories.js +184 -0
  168. package/dist/collection/components/table/table-component-batch-actions.stories.js +201 -0
  169. package/dist/collection/components/table/table-component-bodydata.stories.js +101 -0
  170. package/dist/collection/components/table/table-component-custom-width.stories.js +174 -0
  171. package/dist/collection/components/table/table-component-event-listeners.stories.js +193 -0
  172. package/dist/collection/components/table/table-component-expandable-rows.stories.js +160 -0
  173. package/dist/collection/components/table/table-component-filtering.stories.js +210 -0
  174. package/dist/collection/components/table/table-component-multiselect.stories.js +230 -0
  175. package/dist/collection/components/table/table-component-pagination.stories.js +215 -0
  176. package/dist/collection/components/table/table-component-sorting.stories.js +238 -0
  177. package/dist/collection/components/table/table-footer/table-footer.js +65 -54
  178. package/dist/collection/components/table/table-header/table-header.js +3 -0
  179. package/dist/collection/components/table/table-header-cell/table-header-cell.css +1 -0
  180. package/dist/collection/components/table/table-toolbar/table-toolbar.css +2 -1
  181. package/dist/collection/components/table/table-toolbar/table-toolbar.js +4 -1
  182. package/dist/collection/components/table/table.filtering.spec.js +0 -6
  183. package/dist/collection/components/table/table.spec.js +0 -6
  184. package/dist/collection/components/tabs/folder-tabs/folder-tab/folder-tab.css +10 -11
  185. package/dist/collection/components/tabs/folder-tabs/folder-tab/folder-tab.js +4 -2
  186. package/dist/collection/components/tabs/folder-tabs/folder-tabs.js +8 -5
  187. package/dist/collection/components/tabs/folder-tabs/folder-tabs.stories.js +105 -0
  188. package/dist/collection/components/tabs/inline-tabs/inline-tab/inline-tab.css +13 -2
  189. package/dist/collection/components/tabs/inline-tabs/inline-tab/inline-tab.js +3 -0
  190. package/dist/collection/components/tabs/inline-tabs/inline-tabs.js +8 -5
  191. package/dist/collection/components/tabs/inline-tabs/inline-tabs.stories.js +99 -0
  192. package/dist/collection/components/tabs/navigation-tabs/navigation-tab/navigation-tab.css +13 -2
  193. package/dist/collection/components/tabs/navigation-tabs/navigation-tab/navigation-tab.js +3 -0
  194. package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.js +8 -5
  195. package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.stories.js +101 -0
  196. package/dist/collection/components/text-field/text-field.js +10 -2
  197. package/dist/collection/components/text-field/text-field.stories.js +247 -0
  198. package/dist/collection/components/textarea/textarea.stories.js +188 -0
  199. package/dist/collection/components/toast/toast.css +32 -25
  200. package/dist/collection/components/toast/toast.js +21 -37
  201. package/dist/collection/components/toast/toast.stories.js +79 -0
  202. package/dist/collection/components/toggle/toggle.js +6 -2
  203. package/dist/collection/components/toggle/toggle.stories.js +95 -0
  204. package/dist/collection/components/tooltip/tooltip.js +47 -87
  205. package/dist/collection/components/tooltip/tooltip.stories.js +136 -0
  206. package/dist/collection/stories/Installation/installation.stories.js +222 -0
  207. package/dist/collection/stories/announcements/announce-tegel.stories.js +262 -0
  208. package/dist/collection/stories/announcements/prefix-change.stories.js +93 -0
  209. package/dist/collection/stories/foundations/color/color-brand.stories.js +38 -0
  210. package/dist/collection/stories/foundations/color/color-scales.stories.js +71 -0
  211. package/dist/collection/stories/foundations/color/color-semantic.stories.js +40 -0
  212. package/dist/collection/stories/foundations/grid/grid.stories.js +386 -0
  213. package/dist/collection/stories/foundations/spacing/spacing-element.stories.js +100 -0
  214. package/dist/collection/stories/foundations/spacing/spacing-layout.stories.js +94 -0
  215. package/dist/collection/stories/foundations/typography/typography-body.stories.js +16 -0
  216. package/dist/collection/stories/foundations/typography/typography-detail.stories.js +17 -0
  217. package/dist/collection/stories/foundations/typography/typography-headline.stories.js +39 -0
  218. package/dist/collection/stories/foundations/typography/typography-paragraph.stories.js +12 -0
  219. package/dist/collection/stories/patterns/navigation/navigation-basic.stories.js +85 -0
  220. package/dist/collection/stories/patterns/navigation/navigation-fewitems.stories.js +259 -0
  221. package/dist/collection/stories/patterns/navigation/navigation-manyitems.stories.js +246 -0
  222. package/dist/collection/stories/patterns/navigation/navigation-user-menu.stories.js +140 -0
  223. package/dist/collection/stories/tegel.stories.js +293 -0
  224. package/dist/collection/stories/utility/color/background-color.stories.js +96 -0
  225. package/dist/collection/stories/utility/color/text-color.stories.js +94 -0
  226. package/dist/collection/utils/utils.js +30 -11
  227. package/dist/components/checkbox.js +2 -1
  228. package/dist/components/header-dropdown-list-item.js +3 -3
  229. package/dist/components/header-dropdown-list.js +7 -7
  230. package/dist/components/header-item.js +1 -1
  231. package/dist/components/popover-canvas.js +20 -89
  232. package/dist/{esm/popper-bfa25c7f.js → components/popover-core.js} +190 -13
  233. package/dist/components/side-menu-item.js +1 -1
  234. package/dist/components/tds-accordion-item.js +1 -1
  235. package/dist/components/tds-badge.js +4 -4
  236. package/dist/components/tds-banner.js +16 -17
  237. package/dist/components/tds-breadcrumb.js +3 -6
  238. package/dist/components/tds-breadcrumbs.js +0 -3
  239. package/dist/components/tds-button.js +23 -22
  240. package/dist/components/tds-card.js +21 -29
  241. package/dist/components/tds-chip.js +14 -3
  242. package/dist/components/tds-dropdown-option.js +121 -1
  243. package/dist/components/tds-dropdown.js +323 -1
  244. package/dist/components/tds-folder-tab.js +2 -3
  245. package/dist/components/tds-folder-tabs.js +5 -5
  246. package/dist/components/tds-footer-group.js +3 -3
  247. package/dist/components/tds-footer-item.js +1 -1
  248. package/dist/components/tds-footer.js +7 -8
  249. package/dist/components/tds-header-cell.js +1 -1
  250. package/dist/components/tds-header-dropdown-list-user.js +6 -6
  251. package/dist/components/tds-header-dropdown.js +19 -12
  252. package/dist/components/tds-header-launcher-grid-title.js +3 -2
  253. package/dist/components/tds-header-launcher-grid.js +1 -1
  254. package/dist/components/tds-header-launcher-list-item.js +1 -1
  255. package/dist/components/tds-header-launcher-list-title.js +3 -2
  256. package/dist/components/tds-header-launcher-list.js +3 -2
  257. package/dist/components/tds-header-launcher.js +18 -12
  258. package/dist/components/tds-inline-tab.js +1 -1
  259. package/dist/components/tds-inline-tabs.js +5 -5
  260. package/dist/components/tds-link.js +4 -3
  261. package/dist/components/tds-message.js +7 -7
  262. package/dist/components/tds-modal.js +14 -5
  263. package/dist/components/tds-navigation-tab.js +1 -1
  264. package/dist/components/tds-navigation-tabs.js +5 -5
  265. package/dist/components/{tds-dropdown-v2.d.ts → tds-popover-core.d.ts} +4 -4
  266. package/dist/components/tds-popover-core.js +6 -0
  267. package/dist/components/tds-popover-menu.js +22 -70
  268. package/dist/components/tds-radio-button.js +3 -2
  269. package/dist/components/tds-side-menu-dropdown.js +1 -1
  270. package/dist/components/tds-side-menu.js +2 -2
  271. package/dist/components/tds-slider.js +16 -15
  272. package/dist/components/tds-stepper.js +3 -2
  273. package/dist/components/tds-table-body.js +5 -53
  274. package/dist/components/tds-table-footer.js +50 -42
  275. package/dist/components/tds-table-toolbar.js +9 -3
  276. package/dist/components/tds-table.js +2 -1
  277. package/dist/components/tds-text-field.js +6 -2
  278. package/dist/components/tds-toast.js +15 -32
  279. package/dist/components/tds-toggle.js +2 -1
  280. package/dist/components/tds-tooltip.js +51 -85
  281. package/dist/components/utils.js +31 -12
  282. package/dist/esm/index-23ee700b.js +10 -14
  283. package/dist/esm/loader.js +1 -1
  284. package/dist/esm/tds-accordion-item.entry.js +1 -1
  285. package/dist/esm/tds-badge.entry.js +3 -3
  286. package/dist/esm/tds-banner.entry.js +13 -13
  287. package/dist/esm/tds-breadcrumb.entry.js +2 -4
  288. package/dist/esm/tds-breadcrumbs.entry.js +0 -3
  289. package/dist/esm/tds-button.entry.js +20 -18
  290. package/dist/esm/tds-card.entry.js +19 -23
  291. package/dist/esm/tds-checkbox.entry.js +2 -1
  292. package/dist/esm/tds-chip.entry.js +15 -4
  293. package/dist/esm/tds-core-header-item_2.entry.js +1 -1
  294. package/dist/esm/{tds-dropdown-option-v2.entry.js → tds-dropdown-option.entry.js} +5 -5
  295. package/dist/esm/{tds-dropdown-v2.entry.js → tds-dropdown.entry.js} +31 -26
  296. package/dist/esm/tds-folder-tab.entry.js +2 -3
  297. package/dist/esm/tds-folder-tabs.entry.js +5 -5
  298. package/dist/esm/tds-footer-group.entry.js +3 -3
  299. package/dist/esm/tds-footer-item.entry.js +1 -1
  300. package/dist/esm/tds-footer.entry.js +6 -6
  301. package/dist/esm/tds-header-cell.entry.js +1 -1
  302. package/dist/esm/tds-header-dropdown-list-item.entry.js +2 -2
  303. package/dist/esm/tds-header-dropdown-list-user.entry.js +4 -4
  304. package/dist/esm/tds-header-dropdown-list.entry.js +6 -6
  305. package/dist/esm/tds-header-dropdown.entry.js +4 -3
  306. package/dist/esm/tds-header-hamburger.entry.js +1 -1
  307. package/dist/esm/tds-header-launcher-button.entry.js +1 -1
  308. package/dist/esm/tds-header-launcher-grid-title.entry.js +3 -2
  309. package/dist/esm/tds-header-launcher-grid.entry.js +1 -1
  310. package/dist/esm/tds-header-launcher-list-item.entry.js +1 -1
  311. package/dist/esm/tds-header-launcher-list-title.entry.js +3 -2
  312. package/dist/esm/tds-header-launcher-list.entry.js +3 -2
  313. package/dist/esm/tds-header-launcher.entry.js +2 -2
  314. package/dist/esm/tds-header.entry.js +1 -1
  315. package/dist/esm/tds-inline-tab.entry.js +1 -1
  316. package/dist/esm/tds-inline-tabs.entry.js +5 -5
  317. package/dist/esm/tds-link.entry.js +2 -2
  318. package/dist/esm/tds-message.entry.js +6 -6
  319. package/dist/esm/tds-modal.entry.js +13 -5
  320. package/dist/esm/tds-navigation-tab.entry.js +1 -1
  321. package/dist/esm/tds-navigation-tabs.entry.js +5 -5
  322. package/dist/esm/tds-popover-canvas.entry.js +10 -80
  323. package/dist/{cjs/popper-9def2535.js → esm/tds-popover-core.entry.js} +161 -14
  324. package/dist/esm/tds-popover-menu.entry.js +12 -62
  325. package/dist/esm/tds-radio-button.entry.js +3 -2
  326. package/dist/esm/tds-side-menu-close-button.entry.js +1 -1
  327. package/dist/esm/tds-side-menu-dropdown.entry.js +1 -1
  328. package/dist/esm/tds-side-menu-item.entry.js +1 -1
  329. package/dist/esm/tds-side-menu.entry.js +2 -2
  330. package/dist/esm/tds-slider.entry.js +16 -15
  331. package/dist/esm/tds-stepper.entry.js +3 -2
  332. package/dist/esm/tds-table-body.entry.js +4 -51
  333. package/dist/esm/tds-table-footer.entry.js +47 -39
  334. package/dist/esm/tds-table-toolbar.entry.js +2 -2
  335. package/dist/esm/tds-table.entry.js +2 -1
  336. package/dist/esm/tds-text-field.entry.js +7 -3
  337. package/dist/esm/tds-toast.entry.js +13 -28
  338. package/dist/esm/tds-toggle.entry.js +2 -1
  339. package/dist/esm/tds-tooltip.entry.js +42 -79
  340. package/dist/esm/tegel.js +1 -1
  341. package/dist/esm/{utils-9ac24735.js → utils-8544b156.js} +31 -12
  342. package/dist/tegel/p-000d60e5.entry.js +1 -0
  343. package/dist/tegel/p-04bff255.entry.js +1 -0
  344. package/dist/tegel/p-0641ac24.entry.js +1 -0
  345. package/dist/tegel/p-099025f0.entry.js +1 -0
  346. package/dist/tegel/p-0ae649c3.entry.js +1 -0
  347. package/dist/tegel/p-1a907ae9.entry.js +1 -0
  348. package/dist/tegel/p-1c82ccf0.entry.js +1 -0
  349. package/dist/tegel/{p-1acb8407.entry.js → p-1f43d4f0.entry.js} +1 -1
  350. package/dist/tegel/p-2e5f6086.entry.js +1 -0
  351. package/dist/tegel/{p-89283891.entry.js → p-31848a92.entry.js} +1 -1
  352. package/dist/tegel/{p-fb3f4a14.entry.js → p-3d28689e.entry.js} +1 -1
  353. package/dist/tegel/p-400282e5.entry.js +1 -0
  354. package/dist/tegel/p-4163997b.entry.js +1 -0
  355. package/dist/tegel/{p-bcb2fad3.entry.js → p-42990ec0.entry.js} +1 -1
  356. package/dist/tegel/p-43320d81.entry.js +1 -0
  357. package/dist/tegel/p-49a084db.entry.js +1 -0
  358. package/dist/tegel/{p-e8fccebc.entry.js → p-56189659.entry.js} +1 -1
  359. package/dist/tegel/{p-b6a16219.entry.js → p-656add37.entry.js} +1 -1
  360. package/dist/tegel/p-65ab407b.entry.js +1 -0
  361. package/dist/tegel/p-6654e59d.entry.js +1 -0
  362. package/dist/tegel/p-6f0072cc.entry.js +1 -0
  363. package/dist/tegel/{p-39227588.js → p-72fced16.js} +1 -1
  364. package/dist/tegel/p-79b1bb29.entry.js +1 -0
  365. package/dist/tegel/p-7ccff0a5.entry.js +1 -0
  366. package/dist/tegel/p-81915088.entry.js +1 -0
  367. package/dist/tegel/{p-232f5889.entry.js → p-823399ef.entry.js} +1 -1
  368. package/dist/tegel/p-84d231a5.entry.js +1 -0
  369. package/dist/tegel/{p-7b34156b.entry.js → p-88807dac.entry.js} +1 -1
  370. package/dist/tegel/p-88d7c4c1.entry.js +1 -0
  371. package/dist/tegel/p-8bd0a233.entry.js +1 -0
  372. package/dist/tegel/{p-e0ee20ee.entry.js → p-8c194dd8.entry.js} +1 -1
  373. package/dist/tegel/p-8e745d73.entry.js +1 -0
  374. package/dist/tegel/p-9991a816.entry.js +1 -0
  375. package/dist/tegel/{p-135575ae.entry.js → p-a08be1c3.entry.js} +1 -1
  376. package/dist/tegel/{p-3aa634ed.entry.js → p-a1ad46d2.entry.js} +1 -1
  377. package/dist/tegel/p-a8cc3901.entry.js +1 -0
  378. package/dist/tegel/{p-7d3a66ae.entry.js → p-aa7e2f79.entry.js} +1 -1
  379. package/dist/tegel/{p-cd2a74d7.entry.js → p-b0d313cd.entry.js} +1 -1
  380. package/dist/tegel/p-b1067b50.entry.js +1 -0
  381. package/dist/tegel/p-c411f254.entry.js +1 -0
  382. package/dist/tegel/p-cacdd03f.entry.js +1 -0
  383. package/dist/tegel/p-cb5a4d7d.entry.js +1 -0
  384. package/dist/tegel/p-d0f15f73.entry.js +1 -0
  385. package/dist/tegel/p-d2ca7f58.entry.js +1 -0
  386. package/dist/tegel/p-d4c25eb6.entry.js +1 -0
  387. package/dist/tegel/p-d5bd9b2e.entry.js +1 -0
  388. package/dist/tegel/{p-de799b9a.entry.js → p-d60cb9e5.entry.js} +1 -1
  389. package/dist/tegel/p-da6f310c.entry.js +1 -0
  390. package/dist/tegel/p-df318a85.entry.js +1 -0
  391. package/dist/tegel/p-df95f0ae.entry.js +1 -0
  392. package/dist/tegel/p-e36ceefe.entry.js +1 -0
  393. package/dist/tegel/p-e4d6a4c5.entry.js +1 -0
  394. package/dist/tegel/p-f36ec03b.entry.js +1 -0
  395. package/dist/tegel/p-f64ff692.entry.js +1 -0
  396. package/dist/tegel/p-f682dd0b.entry.js +1 -0
  397. package/dist/tegel/p-fa30061f.entry.js +1 -0
  398. package/dist/tegel/tegel.css +2 -2
  399. package/dist/tegel/tegel.esm.js +1 -1
  400. package/dist/types/components/accordion/accordion-item/accordion-item.d.ts +4 -0
  401. package/dist/types/components/accordion/accordion.d.ts +3 -0
  402. package/dist/types/components/accordion/accordion.stories.d.ts +77 -0
  403. package/dist/types/components/badge/badge.stories.d.ts +73 -0
  404. package/dist/types/components/banner/banner.d.ts +10 -5
  405. package/dist/types/components/banner/banner.stories.d.ts +82 -0
  406. package/dist/types/components/block/block.d.ts +3 -0
  407. package/dist/types/components/block/block.stories.d.ts +32 -0
  408. package/dist/types/components/breadcrumbs/breadcrumb/breadcrumb.d.ts +3 -2
  409. package/dist/types/components/breadcrumbs/breadcrumbs.d.ts +3 -1
  410. package/dist/types/components/breadcrumbs/breadcrumbs.stories.d.ts +16 -0
  411. package/dist/types/components/button/button.d.ts +9 -3
  412. package/dist/types/components/button/button.stories.d.ts +147 -0
  413. package/dist/types/components/card/card.d.ts +11 -9
  414. package/dist/types/components/card/card.stories.d.ts +128 -0
  415. package/dist/types/components/checkbox/checkbox.d.ts +3 -0
  416. package/dist/types/components/checkbox/checkbox.stories.d.ts +52 -0
  417. package/dist/types/components/chip/chip.d.ts +6 -0
  418. package/dist/types/components/chip/chip.stories.d.ts +99 -0
  419. package/dist/types/components/datetime/datetime.stories.d.ts +125 -0
  420. package/dist/types/components/divider/divider.stories.d.ts +58 -0
  421. package/dist/types/components/dropdown/dropdown-option/dropdown-option.d.ts +31 -17
  422. package/dist/types/components/dropdown/dropdown.d.ts +82 -54
  423. package/dist/types/components/dropdown/dropdown.stories.d.ts +183 -0
  424. package/dist/types/components/footer/footer-group/footer-group.d.ts +4 -1
  425. package/dist/types/components/footer/footer-item/footer-item.d.ts +3 -0
  426. package/dist/types/components/footer/footer.d.ts +5 -3
  427. package/dist/types/components/footer/footer.stories.d.ts +44 -0
  428. package/dist/types/components/header/core-header-item/core-header-item.d.ts +3 -0
  429. package/dist/types/components/header/header-brand-symbol/header-brand-symbol.d.ts +3 -0
  430. package/dist/types/components/header/header-dropdown/header-dropdown.d.ts +6 -1
  431. package/dist/types/components/header/header-dropdown-list/header-dropdown-list.d.ts +5 -1
  432. package/dist/types/components/header/header-dropdown-list-item/header-dropdown-list-item.d.ts +5 -2
  433. package/dist/types/components/header/header-dropdown-list-user/header-dropdown-list-user.d.ts +8 -4
  434. package/dist/types/components/header/header-item/header-item.d.ts +3 -0
  435. package/dist/types/components/header/header-launcher/header-launcher.d.ts +3 -0
  436. package/dist/types/components/header/header-launcher-grid/header-launcher-grid.d.ts +3 -0
  437. package/dist/types/components/header/header-launcher-grid-item/header-launcher-grid-item.d.ts +3 -0
  438. package/dist/types/components/header/header-launcher-grid-title/header-launcher-grid-title.d.ts +3 -0
  439. package/dist/types/components/header/header-launcher-list/header-launcher-list.d.ts +3 -0
  440. package/dist/types/components/header/header-launcher-list-item/header-launcher-list-item.d.ts +3 -0
  441. package/dist/types/components/header/header-launcher-list-title/header-launcher-list-title.d.ts +3 -0
  442. package/dist/types/components/header/header-title/header-title.d.ts +3 -0
  443. package/dist/types/components/header/header.d.ts +6 -0
  444. package/dist/types/components/header/header.stories.d.ts +32 -0
  445. package/dist/types/components/icon/icon.stories.d.ts +36 -0
  446. package/dist/types/components/link/link.d.ts +3 -0
  447. package/dist/types/components/link/link.stories.d.ts +44 -0
  448. package/dist/types/components/message/message.d.ts +5 -2
  449. package/dist/types/components/message/message.stories.d.ts +88 -0
  450. package/dist/types/components/modal/modal.d.ts +9 -3
  451. package/dist/types/components/modal/modal.stories.d.ts +70 -0
  452. package/dist/types/components/popover-canvas/popover-canvas.d.ts +8 -14
  453. package/dist/types/components/popover-canvas/popover-canvas.stories.d.ts +27 -0
  454. package/dist/types/components/popover-core/popover-core.d.ts +46 -0
  455. package/dist/types/components/popover-menu/popover-menu.d.ts +9 -10
  456. package/dist/types/components/popover-menu/popover-menu.stories.d.ts +40 -0
  457. package/dist/types/components/radio-button/radio-button.d.ts +3 -0
  458. package/dist/types/components/radio-button/radio-button.stories.d.ts +39 -0
  459. package/dist/types/components/side-menu/side-menu-collapse-button/side-menu-collapse-button.d.ts +3 -0
  460. package/dist/types/components/side-menu/side-menu-dropdown/side-menu-dropdown.d.ts +5 -0
  461. package/dist/types/components/side-menu/side-menu-dropdown-list/side-menu-dropdown-list.d.ts +3 -0
  462. package/dist/types/components/side-menu/side-menu-dropdown-list-item/side-menu-dropdown-list-item.d.ts +3 -0
  463. package/dist/types/components/side-menu/side-menu-item/side-menu-item.d.ts +3 -0
  464. package/dist/types/components/side-menu/side-menu-user/side-menu-user.d.ts +3 -0
  465. package/dist/types/components/side-menu/side-menu-user-image/side-menu-user-image.d.ts +4 -0
  466. package/dist/types/components/side-menu/side-menu.d.ts +8 -0
  467. package/dist/types/components/side-menu/side-menu.stories.d.ts +53 -0
  468. package/dist/types/components/slider/slider.d.ts +0 -1
  469. package/dist/types/components/slider/slider.stories.d.ts +235 -0
  470. package/dist/types/components/spinner/spinner.stories.d.ts +46 -0
  471. package/dist/types/components/stepper/step/step.d.ts +3 -0
  472. package/dist/types/components/stepper/stepper.d.ts +3 -0
  473. package/dist/types/components/stepper/stepper.stories.d.ts +80 -0
  474. package/dist/types/components/table/table/table.d.ts +3 -0
  475. package/dist/types/components/table/table-body/table-body.d.ts +6 -3
  476. package/dist/types/components/table/table-body-cell/table-body-cell.d.ts +3 -0
  477. package/dist/types/components/table/table-body-row/table-body-row.d.ts +3 -0
  478. package/dist/types/components/table/table-body-row-expandable/table-body-row-expandable.d.ts +4 -0
  479. package/dist/types/components/table/table-component-basic.stories.d.ts +144 -0
  480. package/dist/types/components/table/table-component-batch-actions.stories.d.ts +139 -0
  481. package/dist/types/components/table/table-component-bodydata.stories.d.ts +35 -0
  482. package/dist/types/components/table/table-component-custom-width.stories.d.ts +131 -0
  483. package/dist/types/components/table/table-component-event-listeners.stories.d.ts +131 -0
  484. package/dist/types/components/table/table-component-expandable-rows.stories.d.ts +131 -0
  485. package/dist/types/components/table/table-component-filtering.stories.d.ts +139 -0
  486. package/dist/types/components/table/table-component-multiselect.stories.d.ts +144 -0
  487. package/dist/types/components/table/table-component-pagination.stories.d.ts +131 -0
  488. package/dist/types/components/table/table-component-sorting.stories.d.ts +183 -0
  489. package/dist/types/components/table/table-footer/table-footer.d.ts +7 -7
  490. package/dist/types/components/table/table-header/table-header.d.ts +3 -0
  491. package/dist/types/components/table/table-toolbar/table-toolbar.d.ts +3 -0
  492. package/dist/types/components/tabs/folder-tabs/folder-tab/folder-tab.d.ts +3 -0
  493. package/dist/types/components/tabs/folder-tabs/folder-tabs.d.ts +3 -0
  494. package/dist/types/components/tabs/folder-tabs/folder-tabs.stories.d.ts +69 -0
  495. package/dist/types/components/tabs/inline-tabs/inline-tab/inline-tab.d.ts +3 -0
  496. package/dist/types/components/tabs/inline-tabs/inline-tabs.d.ts +3 -0
  497. package/dist/types/components/tabs/inline-tabs/inline-tabs.stories.d.ts +61 -0
  498. package/dist/types/components/tabs/navigation-tabs/navigation-tab/navigation-tab.d.ts +3 -0
  499. package/dist/types/components/tabs/navigation-tabs/navigation-tabs.d.ts +3 -0
  500. package/dist/types/components/tabs/navigation-tabs/navigation-tabs.stories.d.ts +61 -0
  501. package/dist/types/components/text-field/text-field.d.ts +5 -0
  502. package/dist/types/components/text-field/text-field.stories.d.ts +201 -0
  503. package/dist/types/components/textarea/textarea.stories.d.ts +139 -0
  504. package/dist/types/components/toast/toast.d.ts +6 -5
  505. package/dist/types/components/toast/toast.stories.d.ts +56 -0
  506. package/dist/types/components/toggle/toggle.d.ts +3 -0
  507. package/dist/types/components/toggle/toggle.stories.d.ts +74 -0
  508. package/dist/types/components/tooltip/tooltip.d.ts +17 -7
  509. package/dist/types/components/tooltip/tooltip.stories.d.ts +66 -0
  510. package/dist/types/components.d.ts +232 -415
  511. package/dist/types/stories/Installation/installation.stories.d.ts +7 -0
  512. package/dist/types/stories/announcements/announce-tegel.stories.d.ts +6 -0
  513. package/dist/types/stories/announcements/prefix-change.stories.d.ts +6 -0
  514. package/dist/types/stories/foundations/color/color-brand.stories.d.ts +13 -0
  515. package/dist/types/stories/foundations/color/color-scales.stories.d.ts +30 -0
  516. package/dist/types/stories/foundations/color/color-semantic.stories.d.ts +13 -0
  517. package/dist/types/stories/foundations/grid/grid.stories.d.ts +35 -0
  518. package/dist/types/stories/foundations/spacing/spacing-element.stories.d.ts +8 -0
  519. package/dist/types/stories/foundations/spacing/spacing-layout.stories.d.ts +8 -0
  520. package/dist/types/stories/foundations/typography/typography-body.stories.d.ts +8 -0
  521. package/dist/types/stories/foundations/typography/typography-detail.stories.d.ts +8 -0
  522. package/dist/types/stories/foundations/typography/typography-headline.stories.d.ts +21 -0
  523. package/dist/types/stories/foundations/typography/typography-paragraph.stories.d.ts +8 -0
  524. package/dist/types/stories/patterns/navigation/navigation-basic.stories.d.ts +23 -0
  525. package/dist/types/stories/patterns/navigation/navigation-fewitems.stories.d.ts +23 -0
  526. package/dist/types/stories/patterns/navigation/navigation-manyitems.stories.d.ts +38 -0
  527. package/dist/types/stories/patterns/navigation/navigation-user-menu.stories.d.ts +33 -0
  528. package/dist/types/stories/tegel.stories.d.ts +6 -0
  529. package/dist/types/stories/utility/color/background-color.stories.d.ts +64 -0
  530. package/dist/types/stories/utility/color/text-color.stories.d.ts +64 -0
  531. package/dist/types/utils/utils.d.ts +20 -6
  532. package/package.json +22 -24
  533. package/dist/cjs/tds-dropdown-filter.cjs.entry.js +0 -96
  534. package/dist/cjs/tds-dropdown_2.cjs.entry.js +0 -339
  535. package/dist/collection/components/dropdown/dropdown-filter/dropdown-filter.js +0 -380
  536. package/dist/collection/components/dropdown-v2/dropdown-option-v2/dropdown-option-v2.js +0 -216
  537. package/dist/collection/components/dropdown-v2/dropdown-v2.css +0 -286
  538. package/dist/collection/components/dropdown-v2/dropdown-v2.js +0 -726
  539. package/dist/components/dropdown-option.js +0 -104
  540. package/dist/components/dropdown.js +0 -304
  541. package/dist/components/tds-dropdown-filter.d.ts +0 -11
  542. package/dist/components/tds-dropdown-filter.js +0 -150
  543. package/dist/components/tds-dropdown-option-v2.d.ts +0 -11
  544. package/dist/components/tds-dropdown-option-v2.js +0 -126
  545. package/dist/components/tds-dropdown-v2.js +0 -323
  546. package/dist/esm/tds-dropdown-filter.entry.js +0 -92
  547. package/dist/esm/tds-dropdown_2.entry.js +0 -334
  548. package/dist/tegel/p-07e5df94.entry.js +0 -1
  549. package/dist/tegel/p-0a3e7512.entry.js +0 -1
  550. package/dist/tegel/p-0e55d72f.entry.js +0 -1
  551. package/dist/tegel/p-107d3da8.entry.js +0 -1
  552. package/dist/tegel/p-13b02a4f.entry.js +0 -1
  553. package/dist/tegel/p-19e9addd.entry.js +0 -1
  554. package/dist/tegel/p-1fb5c5d4.entry.js +0 -1
  555. package/dist/tegel/p-2bee16f6.entry.js +0 -1
  556. package/dist/tegel/p-2e2c91c4.entry.js +0 -1
  557. package/dist/tegel/p-330ed982.entry.js +0 -1
  558. package/dist/tegel/p-3604b5d3.entry.js +0 -1
  559. package/dist/tegel/p-375e361b.entry.js +0 -1
  560. package/dist/tegel/p-55dc4711.entry.js +0 -1
  561. package/dist/tegel/p-59f1cb9b.entry.js +0 -1
  562. package/dist/tegel/p-5a6aba01.entry.js +0 -1
  563. package/dist/tegel/p-60733f89.entry.js +0 -1
  564. package/dist/tegel/p-6a530c2f.entry.js +0 -1
  565. package/dist/tegel/p-732256e0.entry.js +0 -1
  566. package/dist/tegel/p-7331ec7b.entry.js +0 -1
  567. package/dist/tegel/p-76f941e8.entry.js +0 -1
  568. package/dist/tegel/p-7b0853e6.entry.js +0 -1
  569. package/dist/tegel/p-90686bc7.entry.js +0 -1
  570. package/dist/tegel/p-95da9b7f.entry.js +0 -1
  571. package/dist/tegel/p-99f540db.entry.js +0 -1
  572. package/dist/tegel/p-9bcc42cf.entry.js +0 -1
  573. package/dist/tegel/p-9d707f6e.js +0 -1
  574. package/dist/tegel/p-9f57d275.entry.js +0 -1
  575. package/dist/tegel/p-9fe384ad.entry.js +0 -1
  576. package/dist/tegel/p-a5604352.entry.js +0 -1
  577. package/dist/tegel/p-acb62b52.entry.js +0 -1
  578. package/dist/tegel/p-aeffa257.entry.js +0 -1
  579. package/dist/tegel/p-b8d88873.entry.js +0 -1
  580. package/dist/tegel/p-beb8a6bd.entry.js +0 -1
  581. package/dist/tegel/p-c8d4af09.entry.js +0 -1
  582. package/dist/tegel/p-c90a247c.entry.js +0 -1
  583. package/dist/tegel/p-ca4527de.entry.js +0 -1
  584. package/dist/tegel/p-cf4cfc54.entry.js +0 -1
  585. package/dist/tegel/p-d3f5cf74.entry.js +0 -1
  586. package/dist/tegel/p-d67d67be.entry.js +0 -1
  587. package/dist/tegel/p-da4c92b9.entry.js +0 -1
  588. package/dist/tegel/p-e95059e9.entry.js +0 -1
  589. package/dist/tegel/p-f6206d3c.entry.js +0 -1
  590. package/dist/tegel/p-fc47d911.entry.js +0 -1
  591. package/dist/types/components/dropdown/dropdown-filter/dropdown-filter.d.ts +0 -47
  592. package/dist/types/components/dropdown-v2/dropdown-option-v2/dropdown-option-v2.d.ts +0 -35
  593. package/dist/types/components/dropdown-v2/dropdown-v2.d.ts +0 -86
  594. /package/dist/collection/components/{dropdown-v2/dropdown-option-v2/dropdown-option-v2.css → dropdown/dropdown-option/dropdown-option.css} +0 -0
@@ -0,0 +1,95 @@
1
+ import { formatHtmlPreview } from '../../utils/utils';
2
+ import readmeStepper from './readme.md';
3
+ import readmeStep from './step/readme.md';
4
+ import { ComponentsFolder } from '../../utils/constants';
5
+ export default {
6
+ title: `${ComponentsFolder}/Stepper`,
7
+ parameters: {
8
+ layout: 'centered',
9
+ design: [
10
+ {
11
+ name: 'Figma',
12
+ type: 'figma',
13
+ url: 'https://www.figma.com/file/d8bTgEx7h694MSesi2CTLF/Tegel-UI-Library?node-id=10508%3A32221&t=Ne6myqwca5m00de7-1',
14
+ },
15
+ {
16
+ name: 'Link',
17
+ type: 'link',
18
+ url: 'https://www.figma.com/file/d8bTgEx7h694MSesi2CTLF/Tegel-UI-Library?node-id=10508%3A32221&t=Ne6myqwca5m00de7-1',
19
+ },
20
+ ],
21
+ notes: { Stepper: readmeStepper, Step: readmeStep },
22
+ },
23
+ argTypes: {
24
+ size: {
25
+ name: 'Size',
26
+ description: 'Sets the size of the Stepper.',
27
+ control: {
28
+ type: 'radio',
29
+ },
30
+ options: ['Large', 'Small'],
31
+ table: {
32
+ defaultValue: { summary: 'lg' },
33
+ },
34
+ },
35
+ orientation: {
36
+ name: 'Orientation',
37
+ description: 'Sets the orientation which the Stepper is displayed.',
38
+ control: {
39
+ type: 'radio',
40
+ },
41
+ options: ['Horizontal', 'Vertical'],
42
+ table: {
43
+ defaultValue: { summary: 'horizontal' },
44
+ },
45
+ },
46
+ labelPosition: {
47
+ name: 'Text position',
48
+ description: 'Sets the position of the text, only available when the orientation is horizontal.',
49
+ control: {
50
+ type: 'radio',
51
+ },
52
+ options: ['Below', 'Aside'],
53
+ if: { arg: 'orientation', neq: 'Vertical' },
54
+ table: {
55
+ defaultValue: { summary: 'below' },
56
+ },
57
+ },
58
+ hideLabels: {
59
+ name: 'Hide labels',
60
+ description: 'Hides the labels for all Stepper Items.',
61
+ control: {
62
+ type: 'boolean',
63
+ },
64
+ table: {
65
+ defaultValue: { summary: false },
66
+ },
67
+ },
68
+ },
69
+ args: {
70
+ size: 'Large',
71
+ orientation: 'Horizontal',
72
+ labelPosition: 'Below',
73
+ hideLabels: false,
74
+ },
75
+ };
76
+ const sizeLookUp = {
77
+ Large: 'lg',
78
+ Small: 'sm',
79
+ };
80
+ const Template = ({ size, orientation, labelPosition, hideLabels }) => formatHtmlPreview(`<tds-stepper ${hideLabels ? 'hide-labels' : ''} size="${sizeLookUp[size]}" ${orientation === 'Horizontal' ? `label-position="${labelPosition === null || labelPosition === void 0 ? void 0 : labelPosition.toLowerCase()}"` : ''} orientation="${orientation.toLowerCase()}">
81
+ <tds-step state="success" index="1">
82
+ <div slot="label">Success step</div>
83
+ </tds-step>
84
+ <tds-step state="error" index="2">
85
+ <div slot="label">Error step</div>
86
+ </tds-step>
87
+ <tds-step state="current" index="3">
88
+ <div slot="label">Current step</div>
89
+ </tds-step>
90
+ <tds-step index="4">
91
+ <div slot="label">Upcoming step</div>
92
+ </tds-step>
93
+ </tds-stepper>
94
+ `);
95
+ export const Default = Template.bind({});
@@ -1,6 +1,10 @@
1
1
  // https://stackoverflow.com/questions/63051941/how-to-pass-data-as-array-of-object-in-stencil-js
2
2
  // https://medium.com/@scottmgerstl/passing-an-object-or-array-to-stencil-dd62b7d92641
3
3
  import { h, Host } from '@stencil/core';
4
+ import { generateUniqueId } from '../../../utils/utils';
5
+ /**
6
+ * @slot <default> - <b>Unnamed slot.</b> For the table contents.
7
+ */
4
8
  export class TdsTable {
5
9
  constructor() {
6
10
  this.verticalDividers = false;
@@ -10,7 +14,7 @@ export class TdsTable {
10
14
  this.enableExpandableRows = false;
11
15
  this.enableResponsive = false;
12
16
  this.modeVariant = null;
13
- this.tableId = crypto.randomUUID();
17
+ this.tableId = generateUniqueId();
14
18
  }
15
19
  emitInternalTdsPropChange(changedValueName, changedValue) {
16
20
  this.internalTdsTablePropChange.emit({
@@ -201,7 +205,7 @@ export class TdsTable {
201
205
  },
202
206
  "attribute": "table-id",
203
207
  "reflect": false,
204
- "defaultValue": "crypto.randomUUID()"
208
+ "defaultValue": "generateUniqueId()"
205
209
  }
206
210
  };
207
211
  }
@@ -225,7 +229,7 @@ export class TdsTable {
225
229
  "references": {
226
230
  "InternalTdsTablePropChange": {
227
231
  "location": "local",
228
- "path": "/Users/martin.jarsater/Documents/scania/tegel/core/src/components/table/table/table.tsx"
232
+ "path": "/Users/johnny/dev/scania/tegel/core/src/components/table/table/table.tsx"
229
233
  }
230
234
  }
231
235
  }
@@ -1,52 +1,12 @@
1
1
  import { h, Host, } from '@stencil/core';
2
- const jsonData = [
3
- {
4
- truck: 'L-series',
5
- driver: 'Sonya Bruce',
6
- country: 'Brazil',
7
- mileage: 123987,
8
- },
9
- {
10
- truck: 'P-series',
11
- driver: 'Guerra Bowman',
12
- country: 'Sweden',
13
- mileage: 2000852,
14
- },
15
- {
16
- truck: 'G-series',
17
- driver: 'Ferrell Wallace',
18
- country: 'Germany',
19
- mileage: 564,
20
- },
21
- {
22
- truck: 'R-series',
23
- driver: 'Cox Burris',
24
- country: 'Spain',
25
- mileage: 1789357,
26
- },
27
- {
28
- truck: 'S-series',
29
- driver: 'Montgomery Cervantes',
30
- country: 'Croatia',
31
- mileage: 65,
32
- },
33
- {
34
- truck: 'L-series',
35
- driver: 'Sheryl Nielsen',
36
- country: 'Greece',
37
- mileage: 365784,
38
- },
39
- {
40
- truck: 'G-series',
41
- driver: 'Benton Gomez',
42
- country: 'France',
43
- mileage: 80957,
44
- },
45
- ];
46
2
  const relevantTableProps = [
47
3
  'enableMultiselect',
48
4
  'enableExpandableRows',
49
5
  ];
6
+ /**
7
+ * @slot <default> - <b>Unnamed slot.</b> For table rows.
8
+ * @slot no-result - Slot for no result message when using filtering.
9
+ */
50
10
  export class TdsTableBody {
51
11
  constructor() {
52
12
  this.uncheckAll = () => {
@@ -77,8 +37,7 @@ export class TdsTableBody {
77
37
  this.selectedDataExporter();
78
38
  };
79
39
  this.bodyData = undefined;
80
- this.enableDummyData = false;
81
- this.jsonData = JSON.stringify(jsonData);
40
+ this.noResultMessage = undefined;
82
41
  this.rowsPerPage = 1;
83
42
  this.enableMultiselect = false;
84
43
  this.enablePaginationTableBody = false;
@@ -205,6 +164,7 @@ export class TdsTableBody {
205
164
  item.classList.remove('tds-table__row--hidden');
206
165
  });
207
166
  }
167
+ this.showNoResultsMessage = false;
208
168
  this.disableAllSorting = false;
209
169
  this.internalTdsSortingChange.emit([this.tableId, this.disableAllSorting]);
210
170
  }
@@ -223,10 +183,7 @@ export class TdsTableBody {
223
183
  relevantTableProps.forEach((tablePropName) => {
224
184
  this[tablePropName] = this.tableEl[tablePropName];
225
185
  });
226
- if (this.enableDummyData) {
227
- this.bodyData = this.jsonData;
228
- }
229
- else if (this.bodyData) {
186
+ if (this.bodyData) {
230
187
  this.arrayDataWatcher(this.bodyData);
231
188
  }
232
189
  }
@@ -241,7 +198,7 @@ export class TdsTableBody {
241
198
  }
242
199
  }
243
200
  render() {
244
- return (h(Host, { "data-selected-rows": this.multiselectArrayJSON }, this.bodyDataManipulated.map((row) => (h("tds-table-body-row", null, Object.keys(row).map((cellData) => (h("tds-body-cell", { "cell-key": cellData, "cell-value": row[cellData] })))))), this.showNoResultsMessage && (h("tr", null, h("td", { class: "tds-table__info-message", colSpan: this.columnsNumber }, "Unfortunately, no data matches your search term \uD83D\uDE15"))), h("slot", null)));
201
+ return (h(Host, { "data-selected-rows": this.multiselectArrayJSON }, this.bodyDataManipulated.map((row) => (h("tds-table-body-row", null, Object.keys(row).map((cellData) => (h("tds-body-cell", { "cell-key": cellData, "cell-value": row[cellData] })))))), h("tr", { hidden: !this.showNoResultsMessage }, h("td", { class: "tds-table__info-message", colSpan: this.columnsNumber }, h("slot", { name: "no-result" }), this.noResultMessage)), h("slot", null)));
245
202
  }
246
203
  static get is() { return "tds-table-body"; }
247
204
  static get originalStyleUrls() {
@@ -273,29 +230,27 @@ export class TdsTableBody {
273
230
  "attribute": "body-data",
274
231
  "reflect": false
275
232
  },
276
- "enableDummyData": {
277
- "type": "boolean",
233
+ "noResultMessage": {
234
+ "type": "string",
278
235
  "mutable": false,
279
236
  "complexType": {
280
- "original": "boolean",
281
- "resolved": "boolean",
237
+ "original": "string",
238
+ "resolved": "string",
282
239
  "references": {}
283
240
  },
284
241
  "required": false,
285
242
  "optional": false,
286
243
  "docs": {
287
244
  "tags": [],
288
- "text": "Prop for showcase of rendering JSON in body-data, just for presentation purposes"
245
+ "text": "Prop for no result message when using filtering"
289
246
  },
290
- "attribute": "enable-dummy-data",
291
- "reflect": false,
292
- "defaultValue": "false"
247
+ "attribute": "no-result-message",
248
+ "reflect": false
293
249
  }
294
250
  };
295
251
  }
296
252
  static get states() {
297
253
  return {
298
- "jsonData": {},
299
254
  "rowsPerPage": {},
300
255
  "enableMultiselect": {},
301
256
  "enablePaginationTableBody": {},
@@ -4,6 +4,9 @@ const relevantTableProps = [
4
4
  'compactDesign',
5
5
  'noMinWidth',
6
6
  ];
7
+ /**
8
+ * @slot <default> - <b>Unnamed slot.</b> For the cell contents.
9
+ */
7
10
  export class TdsTableBodyCell {
8
11
  constructor() {
9
12
  this.cellValue = undefined;
@@ -5,6 +5,9 @@ const relevantTableProps = [
5
5
  'compactDesign',
6
6
  'modeVariant',
7
7
  ];
8
+ /**
9
+ * @slot <default> - <b>Unnamed slot.</b> For the cells.
10
+ */
8
11
  export class TdsTableBodyRow {
9
12
  constructor() {
10
13
  this.enableMultiselect = false;
@@ -5,6 +5,10 @@ const relevantTableProps = [
5
5
  'noMinWidth',
6
6
  'modeVariant',
7
7
  ];
8
+ /**
9
+ * @slot <default> - <b>Unnamed slot.</b> For the cells.
10
+ * @slot expand-row - Slot for the expanded row.
11
+ */
8
12
  export class TdsTableBodyRowExpandable {
9
13
  constructor() {
10
14
  this.colSpan = null;
@@ -0,0 +1,184 @@
1
+ import { formatHtmlPreview } from '../../utils/utils';
2
+ import tdsTable from './table/readme.md';
3
+ import tdsTableToolbar from './table-toolbar/readme.md';
4
+ import tdsHeader from './table-header/readme.md';
5
+ import tdsHeaderCell from './table-header-cell/readme.md';
6
+ import tdsTableBody from './table-body/readme.md';
7
+ import tdsBodyRow from './table-body-row/readme.md';
8
+ import tdsBodyRowExpandable from './table-body-row-expandable/readme.md';
9
+ import tdsBodyCell from './table-body-cell/readme.md';
10
+ import tdsTableFooter from './table-footer/readme.md';
11
+ import { ComponentsFolder } from '../../utils/constants';
12
+ export default {
13
+ title: `${ComponentsFolder}/Table`,
14
+ parameters: {
15
+ notes: {
16
+ 'tds-table': tdsTable,
17
+ 'tds-table-toolbar': tdsTableToolbar,
18
+ 'tds-header': tdsHeader,
19
+ 'tds-header-cell': tdsHeaderCell,
20
+ 'tds-table-body': tdsTableBody,
21
+ 'tds-body-row': tdsBodyRow,
22
+ 'tds-body-row-expandable': tdsBodyRowExpandable,
23
+ 'tds-body-cell': tdsBodyCell,
24
+ 'tds-table-footer': tdsTableFooter,
25
+ },
26
+ },
27
+ argTypes: {
28
+ modeVariant: {
29
+ name: 'Mode variant',
30
+ description: 'Mode variant adjusts component colors to have better visibility depending on global mode and background.',
31
+ control: {
32
+ type: 'radio',
33
+ },
34
+ options: ['Inherit from parent', 'Primary', 'Secondary'],
35
+ table: {
36
+ defaultValue: { summary: 'Inherit from parent' },
37
+ },
38
+ },
39
+ compactDesign: {
40
+ name: 'Compact design',
41
+ description: 'Enables compact design of the Table, rows with less height.',
42
+ control: {
43
+ type: 'boolean',
44
+ },
45
+ table: {
46
+ defaultValue: { summary: false },
47
+ },
48
+ },
49
+ responsiveDesign: {
50
+ name: 'Responsive Table',
51
+ description: 'Enables Table to take 100% of available width. For column values less than 192px, "No minimum width" has to be enabled too.',
52
+ control: {
53
+ type: 'boolean',
54
+ },
55
+ table: {
56
+ defaultValue: { summary: false },
57
+ },
58
+ },
59
+ disablePadding: {
60
+ name: 'Disable cell padding',
61
+ description: 'By default each cell comes with padding. Disabling padding rule can be useful when a users want to insert another HTML element in cell, eg. input.',
62
+ control: {
63
+ type: 'boolean',
64
+ },
65
+ table: {
66
+ defaultValue: { summary: false },
67
+ },
68
+ },
69
+ verticalDivider: {
70
+ name: 'Vertical dividers',
71
+ description: 'Enables vertical dividers between Table columns.',
72
+ control: {
73
+ type: 'boolean',
74
+ },
75
+ table: {
76
+ defaultValue: { summary: false },
77
+ },
78
+ },
79
+ noMinWidth: {
80
+ name: 'No minimum width',
81
+ description: 'Resets min-width rule and enables setting column width value to less than 192px which is the default. When enabled, controls for column width will show here.',
82
+ control: {
83
+ type: 'boolean',
84
+ },
85
+ },
86
+ column1Width: {
87
+ name: 'Column 1 width',
88
+ description: 'Value of width for column 1. In order to work correctly "No minimum width" has to be enabled too. When editing please provide a unit next to the value, eg. 200px.',
89
+ control: {
90
+ type: 'text',
91
+ },
92
+ if: { arg: 'noMinWidth', eq: true },
93
+ },
94
+ column2Width: {
95
+ name: 'Column 2 width',
96
+ description: 'Value of width for column 2. In order to work correctly "No minimum width" has to be enabled too. When editing please provide a unit next to the value, eg. 200px.',
97
+ control: {
98
+ type: 'text',
99
+ },
100
+ if: { arg: 'noMinWidth', eq: true },
101
+ },
102
+ column3Width: {
103
+ name: 'Column 3 width',
104
+ description: 'Value of width for column 3. In order to work correctly "No minimum width" has to be enabled too. When editing please provide a unit next to the value, eg. 200px.',
105
+ control: {
106
+ type: 'text',
107
+ },
108
+ if: { arg: 'noMinWidth', eq: true },
109
+ },
110
+ column4Width: {
111
+ name: 'Column 4 width',
112
+ description: 'Value of width for column 4. In order to work correctly "No minimum width" has to be enabled too. When editing please provide a unit next to the value, eg. 200px.',
113
+ control: {
114
+ type: 'text',
115
+ },
116
+ if: { arg: 'noMinWidth', eq: true },
117
+ },
118
+ },
119
+ args: {
120
+ modeVariant: 'Inherit from parent',
121
+ compactDesign: false,
122
+ responsiveDesign: false,
123
+ disablePadding: false,
124
+ verticalDivider: false,
125
+ noMinWidth: false,
126
+ column1Width: '',
127
+ column2Width: '',
128
+ column3Width: '',
129
+ column4Width: '',
130
+ },
131
+ };
132
+ const BasicTemplate = ({ modeVariant, compactDesign, responsiveDesign, disablePadding, verticalDivider, noMinWidth, column1Width, column2Width, column3Width, column4Width, }) => formatHtmlPreview(`
133
+ <tds-table
134
+ vertical-dividers="${verticalDivider}"
135
+ compact-design="${compactDesign}"
136
+ enable-responsive="${responsiveDesign}"
137
+ ${noMinWidth ? 'no-min-width' : ''}
138
+ ${modeVariant !== 'Inherit from parent' ? `mode-variant="${modeVariant.toLowerCase()}"` : ''}>
139
+ <tds-table-header>
140
+ <tds-header-cell column-key='truck' column-title='Truck type' ${column1Width ? `custom-width="${column1Width}"` : ''}></tds-header-cell>
141
+ <tds-header-cell column-key='driver' column-title='Driver name' ${column2Width ? `custom-width="${column2Width}"` : ''}></tds-header-cell>
142
+ <tds-header-cell column-key='country' column-title='Country' ${column3Width ? `custom-width="${column3Width}"` : ''}></tds-header-cell>
143
+ <tds-header-cell column-key='mileage' column-title='Mileage' text-align='right' ${column4Width ? `custom-width="${column4Width}"` : ''}></tds-header-cell>
144
+ </tds-table-header>
145
+ <tds-table-body>
146
+ <tds-table-body-row>
147
+ <tds-body-cell cell-value="Test value 1" cell-key="truck" disable-padding="${disablePadding}"></tds-body-cell>
148
+ <tds-body-cell cell-value="Test value 2" cell-key="driver" disable-padding="${disablePadding}"></tds-body-cell>
149
+ <tds-body-cell cell-value="Test value 3" cell-key="country" disable-padding="${disablePadding}"></tds-body-cell>
150
+ <tds-body-cell cell-value="Test value 4" cell-key="mileage" disable-padding="${disablePadding}"></tds-body-cell>
151
+ </tds-table-body-row>
152
+ <tds-table-body-row>
153
+ <tds-body-cell cell-value="Test value 5" cell-key="truck" disable-padding="${disablePadding}"></tds-body-cell>
154
+ <tds-body-cell cell-value="Test value 6" cell-key="driver" disable-padding="${disablePadding}"></tds-body-cell>
155
+ <tds-body-cell cell-value="Test value 7" cell-key="country" disable-padding="${disablePadding}"></tds-body-cell>
156
+ <tds-body-cell cell-value="Test value 8" cell-key="mileage" disable-padding="${disablePadding}"></tds-body-cell>
157
+ </tds-table-body-row>
158
+ <tds-table-body-row>
159
+ <tds-body-cell cell-value="Test value 1" cell-key="truck" disable-padding="${disablePadding}"></tds-body-cell>
160
+ <tds-body-cell cell-value="Test value 2" cell-key="driver" disable-padding="${disablePadding}"></tds-body-cell>
161
+ <tds-body-cell cell-value="Test value 3" cell-key="country" disable-padding="${disablePadding}"></tds-body-cell>
162
+ <tds-body-cell cell-value="Test value 4" cell-key="mileage" disable-padding="${disablePadding}"></tds-body-cell>
163
+ </tds-table-body-row>
164
+ <tds-table-body-row>
165
+ <tds-body-cell cell-value="Test value 5" cell-key="truck" disable-padding="${disablePadding}"></tds-body-cell>
166
+ <tds-body-cell cell-value="Test value 6" cell-key="driver" disable-padding="${disablePadding}"></tds-body-cell>
167
+ <tds-body-cell cell-value="Test value 7" cell-key="country" disable-padding="${disablePadding}"></tds-body-cell>
168
+ <tds-body-cell cell-value="Test value 8" cell-key="mileage" disable-padding="${disablePadding}"></tds-body-cell>
169
+ </tds-table-body-row>
170
+ <tds-table-body-row>
171
+ <tds-body-cell cell-value="Test value 1" cell-key="truck" disable-padding="${disablePadding}"></tds-body-cell>
172
+ <tds-body-cell cell-value="Test value 2" cell-key="driver" disable-padding="${disablePadding}"></tds-body-cell>
173
+ <tds-body-cell cell-value="Test value 3" cell-key="country" disable-padding="${disablePadding}"></tds-body-cell>
174
+ <tds-body-cell cell-value="Test value 4" cell-key="mileage" disable-padding="${disablePadding}"></tds-body-cell>
175
+ </tds-table-body-row>
176
+ <tds-table-body-row>
177
+ <tds-body-cell cell-value="Test value 5" cell-key="truck" disable-padding="${disablePadding}"></tds-body-cell>
178
+ <tds-body-cell cell-value="Test value 6" cell-key="driver" disable-padding="${disablePadding}"></tds-body-cell>
179
+ <tds-body-cell cell-value="Test value 7" cell-key="country" disable-padding="${disablePadding}"></tds-body-cell>
180
+ <tds-body-cell cell-value="Test value 8" cell-key="mileage" disable-padding="${disablePadding}"></tds-body-cell>
181
+ </tds-table-body-row>
182
+ </tds-table-body>
183
+ </tds-table>`);
184
+ export const Basic = BasicTemplate.bind({});