@scania/tegel 0.0.10 → 0.0.12

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 (381) hide show
  1. package/dist/cjs/index-ee36ffa1.js +4 -0
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/tds-banner.cjs.entry.js +6 -6
  4. package/dist/cjs/tds-body-cell_2.cjs.entry.js +4 -8
  5. package/dist/cjs/tds-button.cjs.entry.js +22 -16
  6. package/dist/cjs/tds-card.cjs.entry.js +3 -3
  7. package/dist/cjs/tds-checkbox.cjs.entry.js +1 -1
  8. package/dist/cjs/tds-chip.cjs.entry.js +2 -2
  9. package/dist/cjs/tds-core-header-item_2.cjs.entry.js +1 -1
  10. package/dist/cjs/tds-datetime.cjs.entry.js +3 -1
  11. package/dist/cjs/tds-dropdown-option.cjs.entry.js +1 -1
  12. package/dist/cjs/tds-dropdown.cjs.entry.js +36 -14
  13. package/dist/cjs/tds-footer.cjs.entry.js +2 -2
  14. package/dist/cjs/tds-header-cell.cjs.entry.js +5 -5
  15. package/dist/cjs/tds-header-dropdown-list-item.cjs.entry.js +2 -2
  16. package/dist/cjs/tds-header-dropdown-list.cjs.entry.js +6 -6
  17. package/dist/cjs/tds-header-dropdown.cjs.entry.js +2 -2
  18. package/dist/cjs/tds-header-hamburger.cjs.entry.js +1 -1
  19. package/dist/cjs/tds-header-launcher-button.cjs.entry.js +1 -1
  20. package/dist/cjs/tds-header-launcher-grid-title.cjs.entry.js +1 -1
  21. package/dist/cjs/tds-header-launcher-grid.cjs.entry.js +1 -1
  22. package/dist/cjs/tds-header-launcher-list-item.cjs.entry.js +1 -1
  23. package/dist/cjs/tds-header-launcher-list-title.cjs.entry.js +1 -1
  24. package/dist/cjs/tds-header-launcher-list.cjs.entry.js +2 -2
  25. package/dist/cjs/tds-header-launcher.cjs.entry.js +2 -2
  26. package/dist/cjs/tds-header.cjs.entry.js +1 -1
  27. package/dist/cjs/tds-link.cjs.entry.js +1 -1
  28. package/dist/cjs/tds-message.cjs.entry.js +3 -3
  29. package/dist/cjs/tds-modal.cjs.entry.js +2 -2
  30. package/dist/cjs/tds-popover-canvas.cjs.entry.js +10 -80
  31. package/dist/{components/popper.js → cjs/tds-popover-core.cjs.entry.js} +160 -1
  32. package/dist/cjs/tds-popover-menu.cjs.entry.js +12 -62
  33. package/dist/cjs/tds-radio-button.cjs.entry.js +1 -1
  34. package/dist/cjs/tds-side-menu-close-button.cjs.entry.js +1 -1
  35. package/dist/cjs/tds-side-menu-item.cjs.entry.js +1 -1
  36. package/dist/cjs/tds-side-menu-overlay.cjs.entry.js +1 -1
  37. package/dist/cjs/tds-side-menu.cjs.entry.js +7 -3
  38. package/dist/cjs/tds-slider.cjs.entry.js +6 -2
  39. package/dist/cjs/tds-stepper.cjs.entry.js +1 -1
  40. package/dist/cjs/tds-table-body-row-expandable.cjs.entry.js +1 -3
  41. package/dist/cjs/tds-table-body.cjs.entry.js +6 -9
  42. package/dist/cjs/tds-table-header.cjs.entry.js +5 -5
  43. package/dist/cjs/tds-table-toolbar.cjs.entry.js +2 -2
  44. package/dist/cjs/tds-table.cjs.entry.js +14 -10
  45. package/dist/cjs/tds-text-field.cjs.entry.js +2 -2
  46. package/dist/cjs/tds-toast.cjs.entry.js +5 -5
  47. package/dist/cjs/tds-toggle.cjs.entry.js +1 -1
  48. package/dist/cjs/tds-tooltip.cjs.entry.js +41 -82
  49. package/dist/cjs/tegel.cjs.js +1 -1
  50. package/dist/cjs/{utils-41de5fb2.js → utils-a908536d.js} +1 -0
  51. package/dist/collection/collection-manifest.json +1 -0
  52. package/dist/collection/components/accordion/accordion-item/accordion-item.js +1 -0
  53. package/dist/collection/components/accordion/accordion.js +3 -0
  54. package/dist/collection/components/banner/banner.css +1 -1
  55. package/dist/collection/components/banner/banner.js +11 -11
  56. package/dist/collection/components/banner/banner.stories.js +8 -8
  57. package/dist/collection/components/block/block.js +3 -0
  58. package/dist/collection/components/breadcrumbs/breadcrumb/breadcrumb.js +3 -0
  59. package/dist/collection/components/breadcrumbs/breadcrumbs.js +3 -0
  60. package/dist/collection/components/button/button.css +35 -16
  61. package/dist/collection/components/button/button.js +43 -18
  62. package/dist/collection/components/button/button.stories.js +26 -8
  63. package/dist/collection/components/card/card.css +3 -0
  64. package/dist/collection/components/card/card.js +1 -1
  65. package/dist/collection/components/card/card.stories.js +2 -1
  66. package/dist/collection/components/chip/chip.js +2 -2
  67. package/dist/collection/components/datetime/datetime.js +38 -2
  68. package/dist/collection/components/datetime/datetime.stories.js +27 -3
  69. package/dist/collection/components/dropdown/dropdown-option/dropdown-option.js +4 -1
  70. package/dist/collection/components/dropdown/dropdown.js +45 -14
  71. package/dist/collection/components/footer/footer-group/footer-group.js +3 -0
  72. package/dist/collection/components/footer/footer-item/footer-item.js +3 -0
  73. package/dist/collection/components/footer/footer.css +1 -0
  74. package/dist/collection/components/header/core-header-item/core-header-item.js +3 -0
  75. package/dist/collection/components/header/header-brand-symbol/header-brand-symbol.js +3 -0
  76. package/dist/collection/components/header/header-dropdown/header-dropdown.css +1 -1
  77. package/dist/collection/components/header/header-dropdown/header-dropdown.js +1 -0
  78. package/dist/collection/components/header/header-dropdown-list/header-dropdown-list.css +2 -2
  79. package/dist/collection/components/header/header-dropdown-list/header-dropdown-list.js +10 -7
  80. package/dist/collection/components/header/header-dropdown-list-item/header-dropdown-list-item.css +3 -3
  81. package/dist/collection/components/header/header-dropdown-list-item/header-dropdown-list-item.js +7 -4
  82. package/dist/collection/components/header/header-item/header-item.js +3 -0
  83. package/dist/collection/components/header/header-launcher/header-launcher.css +1 -1
  84. package/dist/collection/components/header/header-launcher/header-launcher.js +3 -0
  85. package/dist/collection/components/header/header-launcher-grid/header-launcher-grid.js +3 -0
  86. package/dist/collection/components/header/header-launcher-grid-item/header-launcher-grid-item.js +3 -0
  87. package/dist/collection/components/header/header-launcher-grid-title/header-launcher-grid-title.js +3 -0
  88. package/dist/collection/components/header/header-launcher-list/header-launcher-list.js +4 -1
  89. package/dist/collection/components/header/header-launcher-list-item/header-launcher-list-item.js +4 -1
  90. package/dist/collection/components/header/header-launcher-list-title/header-launcher-list-title.js +3 -0
  91. package/dist/collection/components/header/header-title/header-title.js +3 -0
  92. package/dist/collection/components/header/header.js +1 -0
  93. package/dist/collection/components/header/header.stories.js +2 -0
  94. package/dist/collection/components/link/link.js +4 -1
  95. package/dist/collection/components/link/link.stories.js +5 -3
  96. package/dist/collection/components/message/message.js +7 -7
  97. package/dist/collection/components/message/message.stories.js +6 -6
  98. package/dist/collection/components/modal/modal.css +2 -2
  99. package/dist/collection/components/popover-canvas/popover-canvas.css +4 -8
  100. package/dist/collection/components/popover-canvas/popover-canvas.js +13 -102
  101. package/dist/collection/components/popover-canvas/popover-canvas.stories.js +8 -8
  102. package/dist/collection/components/popover-core/popover-core.js +390 -0
  103. package/dist/collection/components/popover-menu/popover-menu.css +3 -9
  104. package/dist/collection/components/popover-menu/popover-menu.js +17 -80
  105. package/dist/collection/components/popover-menu/popover-menu.stories.js +3 -3
  106. package/dist/collection/components/side-menu/side-menu-collapse-button/side-menu-collapse-button.js +1 -1
  107. package/dist/collection/components/side-menu/side-menu-dropdown/side-menu-dropdown.js +1 -1
  108. package/dist/collection/components/side-menu/side-menu-dropdown-list/side-menu-dropdown-list.js +1 -1
  109. package/dist/collection/components/side-menu/side-menu-dropdown-list-item/side-menu-dropdown-list-item.js +1 -1
  110. package/dist/collection/components/side-menu/side-menu-item/side-menu-item.js +1 -1
  111. package/dist/collection/components/side-menu/side-menu-overlay/side-menu-overlay.css +8 -1
  112. package/dist/collection/components/side-menu/side-menu.css +12 -11
  113. package/dist/collection/components/side-menu/side-menu.js +9 -5
  114. package/dist/collection/components/slider/slider.js +5 -1
  115. package/dist/collection/components/stepper/stepper.js +3 -0
  116. package/dist/collection/components/table/table/table.js +22 -15
  117. package/dist/collection/components/table/table-body/table-body.js +10 -13
  118. package/dist/collection/components/table/table-body-cell/table-body-cell.js +3 -0
  119. package/dist/collection/components/table/table-body-row/table-body-row.css +2 -2
  120. package/dist/collection/components/table/table-body-row/table-body-row.js +7 -9
  121. package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.css +4 -0
  122. package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.js +1 -2
  123. package/dist/collection/components/table/table-component-basic.stories.js +1 -1
  124. package/dist/collection/components/table/table-component-batch-actions.stories.js +2 -2
  125. package/dist/collection/components/table/table-component-bodydata.stories.js +1 -1
  126. package/dist/collection/components/table/table-component-custom-width.stories.js +1 -1
  127. package/dist/collection/components/table/table-component-event-listeners.stories.js +1 -1
  128. package/dist/collection/components/table/table-component-expandable-rows.stories.js +2 -2
  129. package/dist/collection/components/table/table-component-filtering.stories.js +6 -4
  130. package/dist/collection/components/table/table-component-multiselect.stories.js +5 -5
  131. package/dist/collection/components/table/table-component-pagination.stories.js +1 -1
  132. package/dist/collection/components/table/table-component-sorting.stories.js +1 -1
  133. package/dist/collection/components/table/table-header/table-header.js +10 -7
  134. package/dist/collection/components/table/table-header-cell/table-header-cell.js +7 -7
  135. package/dist/collection/components/table/table-toolbar/table-toolbar.js +4 -4
  136. package/dist/collection/components/table/table.filtering.spec.js +1 -1
  137. package/dist/collection/components/tabs/folder-tabs/folder-tab/folder-tab.js +3 -0
  138. package/dist/collection/components/tabs/folder-tabs/folder-tabs.js +3 -0
  139. package/dist/collection/components/tabs/inline-tabs/inline-tab/inline-tab.js +3 -0
  140. package/dist/collection/components/tabs/inline-tabs/inline-tabs.js +3 -0
  141. package/dist/collection/components/tabs/navigation-tabs/navigation-tab/navigation-tab.js +3 -0
  142. package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.js +3 -0
  143. package/dist/collection/components/text-field/text-field.css +8 -6
  144. package/dist/collection/components/toast/toast.css +1 -1
  145. package/dist/collection/components/toast/toast.js +5 -5
  146. package/dist/collection/components/toast/toast.stories.js +6 -6
  147. package/dist/collection/components/tooltip/tooltip.css +1 -1
  148. package/dist/collection/components/tooltip/tooltip.js +45 -109
  149. package/dist/collection/components/tooltip/tooltip.stories.js +9 -1
  150. package/dist/collection/stories/patterns/navigation/navigation-fewitems.stories.js +1 -1
  151. package/dist/collection/stories/patterns/navigation/navigation-manyitems.stories.js +4 -3
  152. package/dist/collection/stories/patterns/navigation/navigation-user-menu.stories.js +1 -1
  153. package/dist/collection/stories/tegel.stories.js +1 -1
  154. package/dist/components/header-dropdown-list-item.js +3 -3
  155. package/dist/components/header-dropdown-list.js +7 -7
  156. package/dist/components/popover-canvas.js +20 -89
  157. package/dist/{esm/popper-15e448b4.js → components/popover-core.js} +184 -1
  158. package/dist/components/table-body-row.js +5 -10
  159. package/dist/components/tds-banner.js +6 -6
  160. package/dist/components/tds-button.js +23 -17
  161. package/dist/components/tds-card.js +2 -2
  162. package/dist/components/tds-chip.js +1 -1
  163. package/dist/components/tds-datetime.js +5 -1
  164. package/dist/components/tds-dropdown-option.js +1 -1
  165. package/dist/components/tds-dropdown.js +35 -13
  166. package/dist/components/tds-footer.js +1 -1
  167. package/dist/components/tds-header-cell.js +7 -7
  168. package/dist/components/tds-header-dropdown.js +15 -9
  169. package/dist/components/tds-header-launcher-grid.js +1 -1
  170. package/dist/components/tds-header-launcher-list-item.js +1 -1
  171. package/dist/components/tds-header-launcher-list.js +1 -1
  172. package/dist/components/tds-header-launcher.js +17 -11
  173. package/dist/components/tds-link.js +1 -1
  174. package/dist/components/tds-message.js +4 -4
  175. package/dist/components/tds-modal.js +1 -1
  176. package/dist/components/tds-popover-core.d.ts +11 -0
  177. package/dist/components/tds-popover-core.js +6 -0
  178. package/dist/components/tds-popover-menu.js +22 -70
  179. package/dist/components/tds-side-menu-overlay.js +1 -1
  180. package/dist/components/tds-side-menu.js +10 -6
  181. package/dist/components/tds-slider.js +5 -1
  182. package/dist/components/tds-table-body-row-expandable.js +1 -3
  183. package/dist/components/tds-table-body.js +8 -11
  184. package/dist/components/tds-table-header.js +7 -7
  185. package/dist/components/tds-table-toolbar.js +3 -3
  186. package/dist/components/tds-table.js +16 -12
  187. package/dist/components/tds-text-field.js +1 -1
  188. package/dist/components/tds-toast.js +5 -5
  189. package/dist/components/tds-tooltip.js +51 -90
  190. package/dist/components/utils.js +1 -1
  191. package/dist/esm/index-23ee700b.js +4 -0
  192. package/dist/esm/loader.js +1 -1
  193. package/dist/esm/tds-banner.entry.js +6 -6
  194. package/dist/esm/tds-body-cell_2.entry.js +4 -8
  195. package/dist/esm/tds-button.entry.js +22 -16
  196. package/dist/esm/tds-card.entry.js +3 -3
  197. package/dist/esm/tds-checkbox.entry.js +1 -1
  198. package/dist/esm/tds-chip.entry.js +2 -2
  199. package/dist/esm/tds-core-header-item_2.entry.js +1 -1
  200. package/dist/esm/tds-datetime.entry.js +3 -1
  201. package/dist/esm/tds-dropdown-option.entry.js +1 -1
  202. package/dist/esm/tds-dropdown.entry.js +36 -14
  203. package/dist/esm/tds-footer.entry.js +2 -2
  204. package/dist/esm/tds-header-cell.entry.js +5 -5
  205. package/dist/esm/tds-header-dropdown-list-item.entry.js +2 -2
  206. package/dist/esm/tds-header-dropdown-list.entry.js +6 -6
  207. package/dist/esm/tds-header-dropdown.entry.js +2 -2
  208. package/dist/esm/tds-header-hamburger.entry.js +1 -1
  209. package/dist/esm/tds-header-launcher-button.entry.js +1 -1
  210. package/dist/esm/tds-header-launcher-grid-title.entry.js +1 -1
  211. package/dist/esm/tds-header-launcher-grid.entry.js +1 -1
  212. package/dist/esm/tds-header-launcher-list-item.entry.js +1 -1
  213. package/dist/esm/tds-header-launcher-list-title.entry.js +1 -1
  214. package/dist/esm/tds-header-launcher-list.entry.js +2 -2
  215. package/dist/esm/tds-header-launcher.entry.js +2 -2
  216. package/dist/esm/tds-header.entry.js +1 -1
  217. package/dist/esm/tds-link.entry.js +1 -1
  218. package/dist/esm/tds-message.entry.js +3 -3
  219. package/dist/esm/tds-modal.entry.js +2 -2
  220. package/dist/esm/tds-popover-canvas.entry.js +10 -80
  221. package/dist/{cjs/popper-d7adcfc6.js → esm/tds-popover-core.entry.js} +155 -2
  222. package/dist/esm/tds-popover-menu.entry.js +12 -62
  223. package/dist/esm/tds-radio-button.entry.js +1 -1
  224. package/dist/esm/tds-side-menu-close-button.entry.js +1 -1
  225. package/dist/esm/tds-side-menu-item.entry.js +1 -1
  226. package/dist/esm/tds-side-menu-overlay.entry.js +1 -1
  227. package/dist/esm/tds-side-menu.entry.js +7 -3
  228. package/dist/esm/tds-slider.entry.js +6 -2
  229. package/dist/esm/tds-stepper.entry.js +1 -1
  230. package/dist/esm/tds-table-body-row-expandable.entry.js +1 -3
  231. package/dist/esm/tds-table-body.entry.js +6 -9
  232. package/dist/esm/tds-table-header.entry.js +5 -5
  233. package/dist/esm/tds-table-toolbar.entry.js +2 -2
  234. package/dist/esm/tds-table.entry.js +14 -10
  235. package/dist/esm/tds-text-field.entry.js +2 -2
  236. package/dist/esm/tds-toast.entry.js +5 -5
  237. package/dist/esm/tds-toggle.entry.js +1 -1
  238. package/dist/esm/tds-tooltip.entry.js +42 -83
  239. package/dist/esm/tegel.js +1 -1
  240. package/dist/esm/{utils-74fb1bed.js → utils-8544b156.js} +1 -1
  241. package/dist/tegel/{p-347414ad.entry.js → p-0ae649c3.entry.js} +1 -1
  242. package/dist/tegel/p-129ad2a4.entry.js +1 -0
  243. package/dist/tegel/{p-a4e3eb95.entry.js → p-13db5228.entry.js} +1 -1
  244. package/dist/tegel/{p-1acb8407.entry.js → p-1f43d4f0.entry.js} +1 -1
  245. package/dist/tegel/p-24488e72.entry.js +1 -0
  246. package/dist/tegel/{p-9f1e1cc0.entry.js → p-284d950d.entry.js} +1 -1
  247. package/dist/tegel/p-28a07d46.entry.js +1 -0
  248. package/dist/tegel/{p-e4dc07bb.entry.js → p-31848a92.entry.js} +1 -1
  249. package/dist/tegel/p-39e17b32.entry.js +1 -0
  250. package/dist/tegel/{p-aa443b06.entry.js → p-3d28689e.entry.js} +1 -1
  251. package/dist/tegel/{p-99837611.entry.js → p-400282e5.entry.js} +1 -1
  252. package/dist/tegel/{p-9b29bf68.entry.js → p-42990ec0.entry.js} +1 -1
  253. package/dist/tegel/p-5e0a3931.entry.js +1 -0
  254. package/dist/tegel/p-5e4b20ea.entry.js +1 -0
  255. package/dist/tegel/p-5ed7d376.entry.js +1 -0
  256. package/dist/tegel/{p-c5ab3a3b.entry.js → p-656add37.entry.js} +1 -1
  257. package/dist/tegel/{p-54e56257.entry.js → p-6654e59d.entry.js} +1 -1
  258. package/dist/tegel/p-6caac101.entry.js +1 -0
  259. package/dist/tegel/{p-9dc14c21.js → p-72fced16.js} +1 -1
  260. package/dist/tegel/p-76c000e3.entry.js +1 -0
  261. package/dist/tegel/p-7a03d28c.entry.js +1 -0
  262. package/dist/tegel/p-7c35af1b.entry.js +1 -0
  263. package/dist/tegel/p-7ccff0a5.entry.js +1 -0
  264. package/dist/tegel/p-81915088.entry.js +1 -0
  265. package/dist/tegel/{p-9fe0d654.entry.js → p-823399ef.entry.js} +1 -1
  266. package/dist/tegel/{p-8ba77ea3.entry.js → p-84d231a5.entry.js} +1 -1
  267. package/dist/tegel/{p-fc6da19c.entry.js → p-86028bac.entry.js} +1 -1
  268. package/dist/tegel/{p-b5424456.entry.js → p-88807dac.entry.js} +1 -1
  269. package/dist/tegel/p-88d7c4c1.entry.js +1 -0
  270. package/dist/tegel/p-8e82be94.entry.js +1 -0
  271. package/dist/tegel/p-9f8aac62.entry.js +1 -0
  272. package/dist/tegel/p-a8cc3901.entry.js +1 -0
  273. package/dist/tegel/{p-f9d04ff2.entry.js → p-aa7e2f79.entry.js} +1 -1
  274. package/dist/tegel/p-afde572b.entry.js +1 -0
  275. package/dist/tegel/p-b63b9baa.entry.js +1 -0
  276. package/dist/tegel/p-c0ac4d0a.entry.js +1 -0
  277. package/dist/tegel/p-c2566d65.entry.js +1 -0
  278. package/dist/tegel/p-d0f15f73.entry.js +1 -0
  279. package/dist/tegel/{p-10337d3f.entry.js → p-d2ca7f58.entry.js} +1 -1
  280. package/dist/tegel/p-d3c3633b.entry.js +1 -0
  281. package/dist/tegel/p-d4c25eb6.entry.js +1 -0
  282. package/dist/tegel/{p-e24835ba.entry.js → p-d60cb9e5.entry.js} +1 -1
  283. package/dist/tegel/p-d735c39f.entry.js +1 -0
  284. package/dist/tegel/{p-e3f8fc68.entry.js → p-df318a85.entry.js} +1 -1
  285. package/dist/tegel/p-e36ceefe.entry.js +1 -0
  286. package/dist/tegel/{p-c15bbe0b.entry.js → p-f682dd0b.entry.js} +1 -1
  287. package/dist/tegel/p-fe4ac74c.entry.js +1 -0
  288. package/dist/tegel/tegel.css +2 -2
  289. package/dist/tegel/tegel.esm.js +1 -1
  290. package/dist/types/components/accordion/accordion-item/accordion-item.d.ts +1 -0
  291. package/dist/types/components/accordion/accordion.d.ts +3 -0
  292. package/dist/types/components/banner/banner.d.ts +3 -3
  293. package/dist/types/components/banner/banner.stories.d.ts +2 -2
  294. package/dist/types/components/block/block.d.ts +3 -0
  295. package/dist/types/components/breadcrumbs/breadcrumb/breadcrumb.d.ts +3 -0
  296. package/dist/types/components/breadcrumbs/breadcrumbs.d.ts +3 -0
  297. package/dist/types/components/button/button.d.ts +6 -3
  298. package/dist/types/components/button/button.stories.d.ts +16 -2
  299. package/dist/types/components/chip/chip.d.ts +1 -1
  300. package/dist/types/components/datetime/datetime.d.ts +5 -1
  301. package/dist/types/components/datetime/datetime.stories.d.ts +26 -0
  302. package/dist/types/components/dropdown/dropdown-option/dropdown-option.d.ts +4 -1
  303. package/dist/types/components/dropdown/dropdown.d.ts +5 -1
  304. package/dist/types/components/footer/footer-group/footer-group.d.ts +3 -0
  305. package/dist/types/components/footer/footer-item/footer-item.d.ts +3 -0
  306. package/dist/types/components/header/core-header-item/core-header-item.d.ts +3 -0
  307. package/dist/types/components/header/header-brand-symbol/header-brand-symbol.d.ts +3 -0
  308. package/dist/types/components/header/header-dropdown/header-dropdown.d.ts +1 -0
  309. package/dist/types/components/header/header-dropdown-list/header-dropdown-list.d.ts +5 -1
  310. package/dist/types/components/header/header-dropdown-list-item/header-dropdown-list-item.d.ts +5 -2
  311. package/dist/types/components/header/header-item/header-item.d.ts +3 -0
  312. package/dist/types/components/header/header-launcher/header-launcher.d.ts +3 -0
  313. package/dist/types/components/header/header-launcher-grid/header-launcher-grid.d.ts +3 -0
  314. package/dist/types/components/header/header-launcher-grid-item/header-launcher-grid-item.d.ts +3 -0
  315. package/dist/types/components/header/header-launcher-grid-title/header-launcher-grid-title.d.ts +3 -0
  316. package/dist/types/components/header/header-launcher-list/header-launcher-list.d.ts +3 -0
  317. package/dist/types/components/header/header-launcher-list-item/header-launcher-list-item.d.ts +3 -0
  318. package/dist/types/components/header/header-launcher-list-title/header-launcher-list-title.d.ts +3 -0
  319. package/dist/types/components/header/header-title/header-title.d.ts +3 -0
  320. package/dist/types/components/header/header.d.ts +1 -0
  321. package/dist/types/components/header/header.stories.d.ts +1 -0
  322. package/dist/types/components/link/link.d.ts +3 -0
  323. package/dist/types/components/message/message.d.ts +3 -3
  324. package/dist/types/components/message/message.stories.d.ts +2 -2
  325. package/dist/types/components/popover-canvas/popover-canvas.d.ts +7 -13
  326. package/dist/types/components/popover-core/popover-core.d.ts +46 -0
  327. package/dist/types/components/popover-menu/popover-menu.d.ts +12 -10
  328. package/dist/types/components/side-menu/side-menu-collapse-button/side-menu-collapse-button.d.ts +1 -1
  329. package/dist/types/components/side-menu/side-menu-dropdown/side-menu-dropdown.d.ts +1 -1
  330. package/dist/types/components/side-menu/side-menu-dropdown-list/side-menu-dropdown-list.d.ts +1 -1
  331. package/dist/types/components/side-menu/side-menu-dropdown-list-item/side-menu-dropdown-list-item.d.ts +1 -1
  332. package/dist/types/components/side-menu/side-menu-item/side-menu-item.d.ts +1 -1
  333. package/dist/types/components/side-menu/side-menu.d.ts +1 -1
  334. package/dist/types/components/stepper/stepper.d.ts +3 -0
  335. package/dist/types/components/table/table/table.d.ts +9 -6
  336. package/dist/types/components/table/table-body/table-body.d.ts +4 -4
  337. package/dist/types/components/table/table-body-cell/table-body-cell.d.ts +3 -0
  338. package/dist/types/components/table/table-body-row/table-body-row.d.ts +4 -2
  339. package/dist/types/components/table/table-body-row-expandable/table-body-row-expandable.d.ts +1 -0
  340. package/dist/types/components/table/table-component-multiselect.stories.d.ts +2 -2
  341. package/dist/types/components/table/table-header/table-header.d.ts +5 -2
  342. package/dist/types/components/table/table-header-cell/table-header-cell.d.ts +2 -2
  343. package/dist/types/components/table/table-toolbar/table-toolbar.d.ts +1 -1
  344. package/dist/types/components/tabs/folder-tabs/folder-tab/folder-tab.d.ts +3 -0
  345. package/dist/types/components/tabs/folder-tabs/folder-tabs.d.ts +3 -0
  346. package/dist/types/components/tabs/inline-tabs/inline-tab/inline-tab.d.ts +3 -0
  347. package/dist/types/components/tabs/inline-tabs/inline-tabs.d.ts +3 -0
  348. package/dist/types/components/tabs/navigation-tabs/navigation-tab/navigation-tab.d.ts +3 -0
  349. package/dist/types/components/tabs/navigation-tabs/navigation-tabs.d.ts +3 -0
  350. package/dist/types/components/toast/toast.d.ts +1 -1
  351. package/dist/types/components/toast/toast.stories.d.ts +2 -2
  352. package/dist/types/components/tooltip/tooltip.d.ts +16 -8
  353. package/dist/types/components.d.ts +172 -51
  354. package/package.json +4 -3
  355. package/dist/tegel/p-06093e3e.entry.js +0 -1
  356. package/dist/tegel/p-0995ca77.entry.js +0 -1
  357. package/dist/tegel/p-19fb9ad5.entry.js +0 -1
  358. package/dist/tegel/p-1bac7d2e.entry.js +0 -1
  359. package/dist/tegel/p-22b2c81a.entry.js +0 -1
  360. package/dist/tegel/p-2707da38.entry.js +0 -1
  361. package/dist/tegel/p-34a06d2f.entry.js +0 -1
  362. package/dist/tegel/p-3c9865c3.entry.js +0 -1
  363. package/dist/tegel/p-40142a58.entry.js +0 -1
  364. package/dist/tegel/p-44a2664d.entry.js +0 -1
  365. package/dist/tegel/p-48136431.entry.js +0 -1
  366. package/dist/tegel/p-49a084db.entry.js +0 -1
  367. package/dist/tegel/p-4c809685.entry.js +0 -1
  368. package/dist/tegel/p-6200fc54.entry.js +0 -1
  369. package/dist/tegel/p-674009bd.entry.js +0 -1
  370. package/dist/tegel/p-6bee84a2.entry.js +0 -1
  371. package/dist/tegel/p-73a8f43e.entry.js +0 -1
  372. package/dist/tegel/p-7c0dcd00.js +0 -1
  373. package/dist/tegel/p-8c194dd8.entry.js +0 -1
  374. package/dist/tegel/p-95e170f3.entry.js +0 -1
  375. package/dist/tegel/p-a34bb501.entry.js +0 -1
  376. package/dist/tegel/p-afe13096.entry.js +0 -1
  377. package/dist/tegel/p-c5588508.entry.js +0 -1
  378. package/dist/tegel/p-d5bd9b2e.entry.js +0 -1
  379. package/dist/tegel/p-e95059e9.entry.js +0 -1
  380. package/dist/tegel/p-f36ec03b.entry.js +0 -1
  381. package/dist/tegel/p-f795bc11.entry.js +0 -1
@@ -40,12 +40,17 @@
40
40
  --tds-btn-secondary-border-color-disabled: rgb(0 0 0 / 38%);
41
41
  --tds-btn-icon-secondary-color-focus: var(--tds-black);
42
42
  --tds-btn-icon-secondary-fill-focus: var(--tds-black);
43
+ --tds-btn-icon-secondary-fill-active: var(--tds-black);
44
+ --tds-btn-icon-secondary-fill-active: var(--tds-black);
43
45
  /* ICON */
44
46
  --tds-btn-icon-secondary-fill: var(--tds-black);
45
47
  --tds-btn-icon-secondary-color: var(--tds-black);
46
48
  /* ICON HOVER */
47
49
  --tds-btn-icon-secondary-fill-hover: var(--tds-grey-50);
48
50
  --tds-btn-icon-secondary-color-hover: var(--tds-grey-50);
51
+ /* ICON HOVER */
52
+ --tds-btn-icon-secondary-fill-active: var(--tds-black);
53
+ --tds-btn-icon-secondary-color-active: var(--tds-black);
49
54
  --tds-btn-ghost-background: transparent;
50
55
  --tds-btn-ghost-color: var(--tds-black);
51
56
  --tds-btn-ghost-border-color: transparent;
@@ -315,6 +320,12 @@ button.primary:active, button.primary.active {
315
320
  color: var(--tds-btn-primary-color-active);
316
321
  outline-color: var(--tds-btn-primary-outline-color-active);
317
322
  }
323
+ button.primary:active:not(.disabled) ::slotted([slot=icon]), button.primary.active:not(.disabled) ::slotted([slot=icon]) {
324
+ fill: var(--tds-btn-icon-primary-fill-active);
325
+ color: var(--tds-btn-icon-primary-fill-active);
326
+ fill: var(--tds-btn-icon-primary-color-active);
327
+ color: var(--tds-btn-icon-primary-color-active);
328
+ }
318
329
  button.primary.disabled, button.primary:disabled {
319
330
  cursor: not-allowed;
320
331
  background: var(--tds-btn-primary-background-disabled);
@@ -368,6 +379,12 @@ button.secondary:active, button.secondary.active {
368
379
  color: var(--tds-btn-secondary-color-active);
369
380
  outline-color: var(--tds-btn-secondary-outline-color-active);
370
381
  }
382
+ button.secondary:active:not(.disabled) ::slotted([slot=icon]), button.secondary.active:not(.disabled) ::slotted([slot=icon]) {
383
+ fill: var(--tds-btn-icon-secondary-fill-active);
384
+ color: var(--tds-btn-icon-secondary-fill-active);
385
+ fill: var(--tds-btn-icon-secondary-color-active);
386
+ color: var(--tds-btn-icon-secondary-color-active);
387
+ }
371
388
  button.secondary.disabled, button.secondary:disabled {
372
389
  cursor: not-allowed;
373
390
  background: var(--tds-btn-secondary-background-disabled);
@@ -421,6 +438,12 @@ button.ghost:active, button.ghost.active {
421
438
  color: var(--tds-btn-ghost-color-active);
422
439
  outline-color: var(--tds-btn-ghost-outline-color-active);
423
440
  }
441
+ button.ghost:active:not(.disabled) ::slotted([slot=icon]), button.ghost.active:not(.disabled) ::slotted([slot=icon]) {
442
+ fill: var(--tds-btn-icon-ghost-fill-active);
443
+ color: var(--tds-btn-icon-ghost-fill-active);
444
+ fill: var(--tds-btn-icon-ghost-color-active);
445
+ color: var(--tds-btn-icon-ghost-color-active);
446
+ }
424
447
  button.ghost.disabled, button.ghost:disabled {
425
448
  cursor: not-allowed;
426
449
  background: var(--tds-btn-ghost-background-disabled);
@@ -474,6 +497,12 @@ button.danger:active, button.danger.active {
474
497
  color: var(--tds-btn-danger-color-active);
475
498
  outline-color: var(--tds-btn-danger-outline-color-active);
476
499
  }
500
+ button.danger:active:not(.disabled) ::slotted([slot=icon]), button.danger.active:not(.disabled) ::slotted([slot=icon]) {
501
+ fill: var(--tds-btn-icon-danger-fill-active);
502
+ color: var(--tds-btn-icon-danger-fill-active);
503
+ fill: var(--tds-btn-icon-danger-color-active);
504
+ color: var(--tds-btn-icon-danger-color-active);
505
+ }
477
506
  button.danger.disabled, button.danger:disabled {
478
507
  cursor: not-allowed;
479
508
  background: var(--tds-btn-danger-background-disabled);
@@ -498,10 +527,10 @@ button.danger.disabled, button.danger:disabled {
498
527
  height: var(--tds-spacing-element-16);
499
528
  }
500
529
 
501
- :host(tds-button[disabled]) {
530
+ :host(tds-button[disabled=true]) {
502
531
  pointer-events: none;
503
532
  }
504
- :host(tds-button[disabled]) ::slotted([slot=icon]) {
533
+ :host(tds-button[disabled=true]) ::slotted([slot=icon]) {
505
534
  pointer-events: none;
506
535
  }
507
536
 
@@ -510,31 +539,21 @@ button.danger.disabled, button.danger:disabled {
510
539
  justify-content: center;
511
540
  }
512
541
 
513
- :host(tds-button[only-icon]) .sm {
514
- padding: 11px;
515
- }
516
- :host(tds-button[only-icon]) .md {
517
- padding: 13px;
518
- }
519
- :host(tds-button[only-icon]) .lg {
520
- padding: 17px;
521
- }
522
-
523
- :host(tds-button:not([only-icon])) {
542
+ tds-button :not(.only-icon) {
524
543
  display: inline-flex;
525
544
  align-items: center;
526
545
  }
527
- :host(tds-button:not([only-icon])) .sm ::slotted([slot=icon]) {
546
+ tds-button :not(.only-icon).sm ::slotted([slot=icon]) {
528
547
  margin-left: var(--tds-spacing-element-12);
529
548
  width: var(--tds-spacing-element-16);
530
549
  height: var(--tds-spacing-element-16);
531
550
  }
532
- :host(tds-button:not([only-icon])) .md ::slotted([slot=icon]) {
551
+ tds-button :not(.only-icon).md ::slotted([slot=icon]) {
533
552
  margin-left: var(--tds-spacing-element-16);
534
553
  width: var(--tds-spacing-element-20);
535
554
  height: var(--tds-spacing-element-20);
536
555
  }
537
- :host(tds-button:not([only-icon])) .lg ::slotted([slot=icon]) {
556
+ tds-button :not(.only-icon).lg ::slotted([slot=icon]) {
538
557
  margin-left: var(--tds-spacing-element-20);
539
558
  width: var(--tds-spacing-element-20);
540
559
  height: var(--tds-spacing-element-20);
@@ -1,36 +1,43 @@
1
1
  import { h, Host } from '@stencil/core';
2
2
  import { hasSlot } from '../../utils/utils';
3
3
  /**
4
+ * @slot label - Slot for the text injection. Serves as alternative to text prop.
4
5
  * @slot icon - Slot used to display an Icon in the Button.
5
6
  */
6
7
  export class TdsButton {
7
8
  constructor() {
8
9
  this.text = undefined;
9
- this.type = 'primary';
10
+ this.type = 'button';
11
+ this.variant = 'primary';
10
12
  this.size = 'lg';
11
13
  this.disabled = false;
12
14
  this.fullbleed = false;
13
15
  this.modeVariant = null;
14
16
  this.onlyIcon = false;
15
17
  }
16
- connectedCallback() {
17
- if (!this.text) {
18
+ render() {
19
+ const hasLabelSlot = hasSlot('label', this.host);
20
+ const hasIconSlot = hasSlot('icon', this.host);
21
+ if (!this.text && !hasLabelSlot) {
18
22
  this.onlyIcon = true;
19
- this.host.setAttribute('only-icon', '');
20
23
  }
21
- }
22
- render() {
23
- const usesIconSlot = hasSlot('icon', this.host);
24
- return (h(Host, { class: `${this.modeVariant !== null ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("button", { disabled: this.disabled, class: `${this.type}
25
- ${this.size}
26
- ${this.disabled ? 'disabled' : ''}
27
- ${this.fullbleed ? 'fullbleed' : ''}
28
- ${usesIconSlot ? 'icon' : ''}
29
- ${this.onlyIcon ? 'only-icon' : ''}
30
- ` }, this.text, h("slot", { name: "icon" }))));
24
+ return (h(Host, { class: `${this.modeVariant !== null ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("button", { type: this.type, disabled: this.disabled, class: {
25
+ 'primary': this.variant === 'primary',
26
+ 'secondary': this.variant === 'secondary',
27
+ 'ghost': this.variant === 'ghost',
28
+ 'danger': this.variant === 'danger',
29
+ 'lg': this.size === 'lg',
30
+ 'md': this.size === 'md',
31
+ 'sm': this.size === 'sm',
32
+ 'xs': this.size === 'xs',
33
+ 'disabled': this.disabled,
34
+ 'fullbleed': this.fullbleed,
35
+ 'icon': hasIconSlot,
36
+ 'only-icon': this.onlyIcon,
37
+ } }, this.text, hasLabelSlot && !this.onlyIcon && h("slot", { name: "label" }), hasIconSlot && h("slot", { name: "icon" }))));
31
38
  }
32
39
  static get is() { return "tds-button"; }
33
- static get encapsulation() { return "shadow"; }
40
+ static get encapsulation() { return "scoped"; }
34
41
  static get originalStyleUrls() {
35
42
  return {
36
43
  "$": ["button.scss"]
@@ -61,6 +68,24 @@ export class TdsButton {
61
68
  "reflect": false
62
69
  },
63
70
  "type": {
71
+ "type": "string",
72
+ "mutable": false,
73
+ "complexType": {
74
+ "original": "'button' | 'submit' | 'reset'",
75
+ "resolved": "\"button\" | \"reset\" | \"submit\"",
76
+ "references": {}
77
+ },
78
+ "required": false,
79
+ "optional": false,
80
+ "docs": {
81
+ "tags": [],
82
+ "text": "Button's type"
83
+ },
84
+ "attribute": "type",
85
+ "reflect": false,
86
+ "defaultValue": "'button'"
87
+ },
88
+ "variant": {
64
89
  "type": "string",
65
90
  "mutable": false,
66
91
  "complexType": {
@@ -72,9 +97,9 @@ export class TdsButton {
72
97
  "optional": false,
73
98
  "docs": {
74
99
  "tags": [],
75
- "text": "Type of Button"
100
+ "text": "Variation of Button's design"
76
101
  },
77
- "attribute": "type",
102
+ "attribute": "variant",
78
103
  "reflect": false,
79
104
  "defaultValue": "'primary'"
80
105
  },
@@ -90,7 +115,7 @@ export class TdsButton {
90
115
  "optional": false,
91
116
  "docs": {
92
117
  "tags": [],
93
- "text": ""
118
+ "text": "Size of a Button"
94
119
  },
95
120
  "attribute": "size",
96
121
  "reflect": false,
@@ -32,9 +32,9 @@ export default {
32
32
  defaultValue: { summary: 'Inherit from parent' },
33
33
  },
34
34
  },
35
- btnType: {
36
- name: 'Type',
37
- description: 'Four different Button types to help the user to distinguish the level of importance of the task they represent.',
35
+ variant: {
36
+ name: 'Variant',
37
+ description: 'Four different Button variants to help the user to distinguish the level of importance of the task they represent.',
38
38
  control: {
39
39
  type: 'radio',
40
40
  },
@@ -43,6 +43,17 @@ export default {
43
43
  defaultValue: { summary: 'primary' },
44
44
  },
45
45
  },
46
+ type: {
47
+ name: 'Type',
48
+ description: 'Native types of button',
49
+ control: {
50
+ type: 'radio',
51
+ },
52
+ options: ['Button', 'Submit', 'Reset'],
53
+ table: {
54
+ defaultValue: { summary: 'button' },
55
+ },
56
+ },
46
57
  size: {
47
58
  name: 'Size',
48
59
  description: 'Sets the size of the Button.',
@@ -106,7 +117,8 @@ export default {
106
117
  },
107
118
  args: {
108
119
  modeVariant: 'Inherit from parent',
109
- btnType: 'Primary',
120
+ type: 'Button',
121
+ variant: 'Primary',
110
122
  size: 'Large',
111
123
  text: 'Button',
112
124
  fullbleed: false,
@@ -115,8 +127,8 @@ export default {
115
127
  disabled: false,
116
128
  },
117
129
  };
118
- const WebComponentTemplate = ({ modeVariant, btnType, size, text = 'Button', fullbleed, onlyIcon, icon, disabled, }) => {
119
- const btnTypeLookUp = {
130
+ const WebComponentTemplate = ({ modeVariant, type, variant, size, text = 'Button', fullbleed, onlyIcon, icon, disabled, }) => {
131
+ const variantLookUp = {
120
132
  Primary: 'primary',
121
133
  Secondary: 'secondary',
122
134
  Ghost: 'ghost',
@@ -132,6 +144,11 @@ const WebComponentTemplate = ({ modeVariant, btnType, size, text = 'Button', ful
132
144
  Primary: 'primary',
133
145
  Secondary: 'secondary',
134
146
  };
147
+ const typeLookup = {
148
+ Button: 'button',
149
+ Submit: 'submit',
150
+ Reset: 'reset',
151
+ };
135
152
  return formatHtmlPreview(`
136
153
  <style>
137
154
  /* demo-wrapper is for demonstration purposes only*/
@@ -142,7 +159,8 @@ const WebComponentTemplate = ({ modeVariant, btnType, size, text = 'Button', ful
142
159
 
143
160
  <div class="demo-wrapper">
144
161
  <tds-button
145
- type="${btnTypeLookUp[btnType]}"
162
+ type='${typeLookup[type]}'
163
+ variant="${variantLookUp[variant]}"
146
164
  size="${sizeLookUp[size]}" ${disabled ? 'disabled' : ''} ${fullbleed ? 'fullbleed' : ''}
147
165
  ${!onlyIcon ? `text="${text}"` : ''}
148
166
  ${modeVariant !== 'Inherit from parent'
@@ -153,7 +171,7 @@ const WebComponentTemplate = ({ modeVariant, btnType, size, text = 'Button', ful
153
171
  ? `
154
172
  <tds-icon slot="icon" class='tds-btn-icon ' size='${sizeLookUp[size] === 'sm' ? '16px' : '20px'}' name='${icon}'></tds-icon>
155
173
  `
156
- : ''}
174
+ : ''}
157
175
  </tds-button>
158
176
  </div>
159
177
  <script>
@@ -50,6 +50,9 @@
50
50
  .card .header-subheader slot[name=subheader] {
51
51
  color: var(--tds-card-sub-headline);
52
52
  }
53
+ .card .card-body-img {
54
+ width: 100%;
55
+ }
53
56
  .card .tds-divider {
54
57
  margin: 16px 16px 0;
55
58
  background-color: var(--tds-card-divider);
@@ -25,7 +25,7 @@ export class TdsCard {
25
25
  const usesBodySlot = hasSlot('body', this.host);
26
26
  const usesBodyImageSlot = hasSlot('body-image', this.host);
27
27
  const usesBottomSlot = hasSlot('bottom', this.host);
28
- return (h("div", null, this.imagePlacement === 'below-header' && this.getCardHeader(), h("div", { class: `card-body` }, usesBodyImageSlot && h("slot", { name: "body-image" }), this.bodyImg && h("img", { class: `card-body-img`, src: this.bodyImg, alt: this.bodyImgAlt }), this.imagePlacement === 'above-header' && this.getCardHeader(), this.bodyDivider && h("tds-divider", null), usesBodySlot && h("slot", { name: "body" })), usesBottomSlot && h("slot", { name: `bottom` })));
28
+ return (h("div", null, this.imagePlacement === 'below-header' && this.getCardHeader(), h("div", { class: `card-body` }, usesBodyImageSlot && h("slot", { name: "body-image" }), this.bodyImg && h("img", { class: "card-body-img", src: this.bodyImg, alt: this.bodyImgAlt }), this.imagePlacement === 'above-header' && this.getCardHeader(), this.bodyDivider && h("tds-divider", null), usesBodySlot && h("slot", { name: "body" })), usesBottomSlot && h("slot", { name: `bottom` })));
29
29
  };
30
30
  this.modeVariant = null;
31
31
  this.imagePlacement = 'below-header';
@@ -1,5 +1,6 @@
1
1
  import readme from './readme.md';
2
2
  import CardPlaceholder from '../../stories/assets/image/card-placeholder.png';
3
+ import CardBodyImage from '../../stories/assets/image/card-img.png';
3
4
  import { formatHtmlPreview } from '../../utils/utils';
4
5
  import { ComponentsFolder } from '../../utils/constants';
5
6
  export default {
@@ -133,7 +134,7 @@ const Template = ({ modeVariant, header, subheader, thumbnail, imagePlacement, b
133
134
  ${header ? `header="${header}"` : ''}
134
135
  image-placement="${imagePlacement.toLowerCase()}-header"
135
136
  ${subheader ? `subheader="${subheader}"` : ''}
136
- ${bodyImg ? `body-img="${CardPlaceholder}"` : ''}
137
+ ${bodyImg ? `body-img="${CardBodyImage}"` : ''}
137
138
  ${clickable ? 'clickable' : ''}
138
139
  ${bodyDivider ? 'body-divider' : ''}
139
140
  >
@@ -3,7 +3,7 @@ import { generateUniqueId, hasSlot } from '../../utils/utils';
3
3
  /**
4
4
  * @slot prefix - Slot for the prefix icon.
5
5
  * @slot label - Slot for the label text.
6
- * @slot suffix- Slot for the suffix icon.
6
+ * @slot suffix - Slot for the suffix icon.
7
7
  */
8
8
  export class TdsChip {
9
9
  constructor() {
@@ -49,7 +49,7 @@ export class TdsChip {
49
49
  'lg': this.size === 'lg',
50
50
  'prefix': hasPrefixSlot,
51
51
  'suffix': hasSuffixSlot,
52
- } }, h("input", Object.assign({ type: this.type, id: this.chipId }, inputAttributes)), h("label", { htmlFor: this.chipId }, hasPrefixSlot && h("slot", { name: "prefix" }), hasLabelSlot && h("slot", { name: "label" }), hasSuffixSlot && h("slot", { name: "suffix" }))))));
52
+ } }, h("input", Object.assign({ type: this.type, id: this.chipId }, inputAttributes)), h("label", { onClick: (event) => event.stopPropagation(), htmlFor: this.chipId }, hasPrefixSlot && h("slot", { name: "prefix" }), hasLabelSlot && h("slot", { name: "label" }), hasSuffixSlot && h("slot", { name: "suffix" }))))));
53
53
  }
54
54
  static get is() { return "tds-chip"; }
55
55
  static get encapsulation() { return "scoped"; }
@@ -22,6 +22,8 @@ export class TdsDatetime {
22
22
  };
23
23
  this.type = 'datetime-local';
24
24
  this.value = '';
25
+ this.min = undefined;
26
+ this.max = undefined;
25
27
  this.defaultValue = 'none';
26
28
  this.disabled = false;
27
29
  this.size = 'lg';
@@ -85,7 +87,7 @@ export class TdsDatetime {
85
87
  ? `tds-form-datetime-${this.state}`
86
88
  : ''}
87
89
  ${this.modeVariant !== null ? `tds-mode-variant-${this.modeVariant}` : ''}
88
- ` }, this.label && (h("label", { htmlFor: this.name, class: "tds-datetime-label" }, this.label)), h("div", { onClick: (e) => this.handleFocusClick(e), class: "tds-datetime-container" }, h("div", { class: "tds-datetime-input-container" }, h("input", { ref: (inputEl) => (this.textInput = inputEl), class: className, type: this.type, disabled: this.disabled, value: this.value, autofocus: this.autofocus, name: this.name, onInput: (e) => this.handleInput(e), onBlur: (e) => this.handleBlur(e), onChange: (e) => this.handleChange(e) }), h("div", { class: "datetime-icon icon-datetime-local" }, h("tds-icon", { size: "20px", name: "calendar" })), h("div", { class: "datetime-icon icon-time" }, h("tds-icon", { size: "20px", name: "clock" }))), h("div", { class: "tds-datetime-bar" })), h("div", { class: "tds-datetime-helper" }, this.helper && (h("div", { class: "tds-helper" }, this.state === 'error' && h("tds-icon", { name: "error", size: "16px" }), this.helper)))));
90
+ ` }, this.label && (h("label", { htmlFor: this.name, class: "tds-datetime-label" }, this.label)), h("div", { onClick: (e) => this.handleFocusClick(e), class: "tds-datetime-container" }, h("div", { class: "tds-datetime-input-container" }, h("input", { ref: (inputEl) => (this.textInput = inputEl), class: className, type: this.type, disabled: this.disabled, value: this.value, min: this.min, max: this.max, autofocus: this.autofocus, name: this.name, onInput: (e) => this.handleInput(e), onBlur: (e) => this.handleBlur(e), onChange: (e) => this.handleChange(e) }), h("div", { class: "datetime-icon icon-datetime-local" }, h("tds-icon", { size: "20px", name: "calendar" })), h("div", { class: "datetime-icon icon-time" }, h("tds-icon", { size: "20px", name: "clock" }))), h("div", { class: "tds-datetime-bar" })), h("div", { class: "tds-datetime-helper" }, this.helper && (h("div", { class: "tds-helper" }, this.state === 'error' && h("tds-icon", { name: "error", size: "16px" }), this.helper)))));
89
91
  }
90
92
  static get is() { return "tds-datetime"; }
91
93
  static get encapsulation() { return "scoped"; }
@@ -113,7 +115,7 @@ export class TdsDatetime {
113
115
  "optional": false,
114
116
  "docs": {
115
117
  "tags": [],
116
- "text": "Which input type, text, password or similar"
118
+ "text": "Sets input type"
117
119
  },
118
120
  "attribute": "type",
119
121
  "reflect": true,
@@ -137,6 +139,40 @@ export class TdsDatetime {
137
139
  "reflect": true,
138
140
  "defaultValue": "''"
139
141
  },
142
+ "min": {
143
+ "type": "string",
144
+ "mutable": false,
145
+ "complexType": {
146
+ "original": "string",
147
+ "resolved": "string",
148
+ "references": {}
149
+ },
150
+ "required": false,
151
+ "optional": false,
152
+ "docs": {
153
+ "tags": [],
154
+ "text": "Sets min value. Example for different types: datetime=\"2023-01-31T00:00\" date=\"2023-01-01\" time=\"15:00\""
155
+ },
156
+ "attribute": "min",
157
+ "reflect": false
158
+ },
159
+ "max": {
160
+ "type": "string",
161
+ "mutable": false,
162
+ "complexType": {
163
+ "original": "string",
164
+ "resolved": "string",
165
+ "references": {}
166
+ },
167
+ "required": false,
168
+ "optional": false,
169
+ "docs": {
170
+ "tags": [],
171
+ "text": "Sets max value. Example for different types: datetime=\"2023-01-31T00:00\" date=\"2023-01-01\" time=\"15:00\""
172
+ },
173
+ "attribute": "max",
174
+ "reflect": false
175
+ },
140
176
  "defaultValue": {
141
177
  "type": "string",
142
178
  "mutable": false,
@@ -64,7 +64,7 @@ export default {
64
64
  },
65
65
  defaultValue: {
66
66
  name: 'Default value',
67
- description: 'Default value of the component. Format for time: HH-MM. Format for date: YY-MM-DD. Format for date-time: YY-MM-DDTHH-MM.',
67
+ description: 'Sets max value. Default value of the component. Format for time: HH-MM. Format for date: YY-MM-DD. Format for date-time: YY-MM-DDTHH-MM.',
68
68
  control: {
69
69
  type: 'radio',
70
70
  },
@@ -73,6 +73,26 @@ export default {
73
73
  defaultValue: { summary: 'none' },
74
74
  },
75
75
  },
76
+ minValue: {
77
+ description: 'Sets min value. Example for different types: datetime="2023-01-31T00:00" date="2023-01-01" time="15:00"',
78
+ name: 'Min value',
79
+ control: {
80
+ type: 'text',
81
+ },
82
+ table: {
83
+ defaultValue: { summary: undefined },
84
+ },
85
+ },
86
+ maxValue: {
87
+ description: 'Example for different types: datetime="2023-01-31T00:00" date="2023-01-01" time="15:00"',
88
+ name: 'Max value',
89
+ control: {
90
+ type: 'text',
91
+ },
92
+ table: {
93
+ defaultValue: { summary: undefined },
94
+ },
95
+ },
76
96
  noMinWidth: {
77
97
  name: 'No minimum width',
78
98
  description: 'Enables component to shrink below 208px which is the default width.',
@@ -114,13 +134,15 @@ export default {
114
134
  type: 'Datetime',
115
135
  size: 'Large',
116
136
  defaultValue: 'None',
137
+ minValue: '',
138
+ maxValue: '',
117
139
  noMinWidth: false,
118
140
  label: 'Label text',
119
141
  helper: 'Helper text',
120
142
  disabled: false,
121
143
  },
122
144
  };
123
- const datetimeTemplate = ({ modeVariant, state, type, size, defaultValue, noMinWidth, label, helper, disabled, }) => {
145
+ const datetimeTemplate = ({ modeVariant, state, type, size, defaultValue, minValue, maxValue, noMinWidth, label, helper, disabled, }) => {
124
146
  const typeLookup = {
125
147
  Datetime: 'datetime-local',
126
148
  Date: 'date',
@@ -166,7 +188,9 @@ const datetimeTemplate = ({ modeVariant, state, type, size, defaultValue, noMinW
166
188
  id="datetime"
167
189
  ${defaultValue !== 'None' ? `default-value="${getDefaultValue(defaultValue, type)}"` : ''}
168
190
  ${modeVariant !== 'Inherit from parent' ? `mode-variant="${modeVariant.toLowerCase()}"` : ''}
169
- type="${typeLookup[type]}"
191
+ type="${typeLookup[type]}"
192
+ ${minValue ? `min=${minValue}` : ''}
193
+ ${maxValue ? `min=${maxValue}` : ''}
170
194
  size="${sizeLookup[size]}"
171
195
  state="${stateLookup[state]}"
172
196
  ${disabled ? 'disabled' : ''}
@@ -1,7 +1,10 @@
1
1
  import { Host, h } from '@stencil/core';
2
+ /**
3
+ * @slot <default> - <b>Unnamed slot.</b> For the option label text.
4
+ */
2
5
  export class TdsDropdownOption {
3
6
  constructor() {
4
- this.connectedCallback = () => {
7
+ this.componentWillRender = () => {
5
8
  this.parentElement =
6
9
  this.host.parentElement.tagName === 'TDS-DROPDOWN'
7
10
  ? this.host.parentElement