@scania/tegel 0.0.10 → 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 (296) 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 +5 -5
  4. package/dist/cjs/tds-button.cjs.entry.js +20 -11
  5. package/dist/cjs/tds-card.cjs.entry.js +3 -3
  6. package/dist/cjs/tds-checkbox.cjs.entry.js +1 -1
  7. package/dist/cjs/tds-chip.cjs.entry.js +1 -1
  8. package/dist/cjs/tds-core-header-item_2.cjs.entry.js +1 -1
  9. package/dist/cjs/tds-dropdown.cjs.entry.js +13 -8
  10. package/dist/cjs/tds-footer.cjs.entry.js +2 -2
  11. package/dist/cjs/tds-header-dropdown-list-item.cjs.entry.js +2 -2
  12. package/dist/cjs/tds-header-dropdown-list.cjs.entry.js +6 -6
  13. package/dist/cjs/tds-header-dropdown.cjs.entry.js +1 -1
  14. package/dist/cjs/tds-header-hamburger.cjs.entry.js +1 -1
  15. package/dist/cjs/tds-header-launcher-button.cjs.entry.js +1 -1
  16. package/dist/cjs/tds-header-launcher-grid-title.cjs.entry.js +1 -1
  17. package/dist/cjs/tds-header-launcher-grid.cjs.entry.js +1 -1
  18. package/dist/cjs/tds-header-launcher-list-item.cjs.entry.js +1 -1
  19. package/dist/cjs/tds-header-launcher-list-title.cjs.entry.js +1 -1
  20. package/dist/cjs/tds-header-launcher-list.cjs.entry.js +2 -2
  21. package/dist/cjs/tds-header-launcher.cjs.entry.js +1 -1
  22. package/dist/cjs/tds-header.cjs.entry.js +1 -1
  23. package/dist/cjs/tds-link.cjs.entry.js +1 -1
  24. package/dist/cjs/tds-message.cjs.entry.js +3 -3
  25. package/dist/cjs/tds-modal.cjs.entry.js +1 -1
  26. package/dist/cjs/tds-popover-canvas.cjs.entry.js +10 -80
  27. package/dist/{components/popper.js → cjs/tds-popover-core.cjs.entry.js} +160 -1
  28. package/dist/cjs/tds-popover-menu.cjs.entry.js +12 -62
  29. package/dist/cjs/tds-radio-button.cjs.entry.js +1 -1
  30. package/dist/cjs/tds-side-menu-close-button.cjs.entry.js +1 -1
  31. package/dist/cjs/tds-side-menu-item.cjs.entry.js +1 -1
  32. package/dist/cjs/tds-side-menu.cjs.entry.js +1 -1
  33. package/dist/cjs/tds-slider.cjs.entry.js +6 -2
  34. package/dist/cjs/tds-stepper.cjs.entry.js +1 -1
  35. package/dist/cjs/tds-table.cjs.entry.js +1 -1
  36. package/dist/cjs/tds-text-field.cjs.entry.js +1 -1
  37. package/dist/cjs/tds-toast.cjs.entry.js +4 -4
  38. package/dist/cjs/tds-toggle.cjs.entry.js +1 -1
  39. package/dist/cjs/tds-tooltip.cjs.entry.js +41 -82
  40. package/dist/cjs/tegel.cjs.js +1 -1
  41. package/dist/cjs/{utils-41de5fb2.js → utils-a908536d.js} +1 -0
  42. package/dist/collection/collection-manifest.json +1 -0
  43. package/dist/collection/components/accordion/accordion-item/accordion-item.js +1 -0
  44. package/dist/collection/components/accordion/accordion.js +3 -0
  45. package/dist/collection/components/banner/banner.js +8 -8
  46. package/dist/collection/components/banner/banner.stories.js +7 -7
  47. package/dist/collection/components/block/block.js +3 -0
  48. package/dist/collection/components/breadcrumbs/breadcrumb/breadcrumb.js +3 -0
  49. package/dist/collection/components/breadcrumbs/breadcrumbs.js +3 -0
  50. package/dist/collection/components/button/button.css +6 -16
  51. package/dist/collection/components/button/button.js +41 -13
  52. package/dist/collection/components/button/button.stories.js +26 -8
  53. package/dist/collection/components/card/card.css +3 -0
  54. package/dist/collection/components/card/card.js +1 -1
  55. package/dist/collection/components/card/card.stories.js +2 -1
  56. package/dist/collection/components/chip/chip.js +1 -1
  57. package/dist/collection/components/dropdown/dropdown-option/dropdown-option.js +3 -0
  58. package/dist/collection/components/dropdown/dropdown.js +15 -7
  59. package/dist/collection/components/footer/footer-group/footer-group.js +3 -0
  60. package/dist/collection/components/footer/footer-item/footer-item.js +3 -0
  61. package/dist/collection/components/footer/footer.css +1 -0
  62. package/dist/collection/components/header/core-header-item/core-header-item.js +3 -0
  63. package/dist/collection/components/header/header-brand-symbol/header-brand-symbol.js +3 -0
  64. package/dist/collection/components/header/header-dropdown/header-dropdown.js +1 -0
  65. package/dist/collection/components/header/header-dropdown-list/header-dropdown-list.css +2 -2
  66. package/dist/collection/components/header/header-dropdown-list/header-dropdown-list.js +10 -7
  67. package/dist/collection/components/header/header-dropdown-list-item/header-dropdown-list-item.css +3 -3
  68. package/dist/collection/components/header/header-dropdown-list-item/header-dropdown-list-item.js +7 -4
  69. package/dist/collection/components/header/header-item/header-item.js +3 -0
  70. package/dist/collection/components/header/header-launcher/header-launcher.js +3 -0
  71. package/dist/collection/components/header/header-launcher-grid/header-launcher-grid.js +3 -0
  72. package/dist/collection/components/header/header-launcher-grid-item/header-launcher-grid-item.js +3 -0
  73. package/dist/collection/components/header/header-launcher-grid-title/header-launcher-grid-title.js +3 -0
  74. package/dist/collection/components/header/header-launcher-list/header-launcher-list.js +4 -1
  75. package/dist/collection/components/header/header-launcher-list-item/header-launcher-list-item.js +4 -1
  76. package/dist/collection/components/header/header-launcher-list-title/header-launcher-list-title.js +3 -0
  77. package/dist/collection/components/header/header-title/header-title.js +3 -0
  78. package/dist/collection/components/header/header.js +1 -0
  79. package/dist/collection/components/header/header.stories.js +2 -0
  80. package/dist/collection/components/link/link.js +4 -1
  81. package/dist/collection/components/link/link.stories.js +5 -3
  82. package/dist/collection/components/message/message.js +7 -7
  83. package/dist/collection/components/message/message.stories.js +6 -6
  84. package/dist/collection/components/popover-canvas/popover-canvas.css +3 -7
  85. package/dist/collection/components/popover-canvas/popover-canvas.js +13 -102
  86. package/dist/collection/components/popover-canvas/popover-canvas.stories.js +8 -8
  87. package/dist/collection/components/popover-core/popover-core.js +390 -0
  88. package/dist/collection/components/popover-menu/popover-menu.css +2 -8
  89. package/dist/collection/components/popover-menu/popover-menu.js +16 -79
  90. package/dist/collection/components/popover-menu/popover-menu.stories.js +3 -3
  91. package/dist/collection/components/side-menu/side-menu-collapse-button/side-menu-collapse-button.js +1 -1
  92. package/dist/collection/components/side-menu/side-menu-dropdown/side-menu-dropdown.js +1 -1
  93. package/dist/collection/components/side-menu/side-menu-dropdown-list/side-menu-dropdown-list.js +1 -1
  94. package/dist/collection/components/side-menu/side-menu-dropdown-list-item/side-menu-dropdown-list-item.js +1 -1
  95. package/dist/collection/components/side-menu/side-menu-item/side-menu-item.js +1 -1
  96. package/dist/collection/components/side-menu/side-menu.js +1 -1
  97. package/dist/collection/components/slider/slider.js +5 -1
  98. package/dist/collection/components/stepper/stepper.js +3 -0
  99. package/dist/collection/components/table/table/table.js +3 -0
  100. package/dist/collection/components/table/table-body/table-body.js +2 -2
  101. package/dist/collection/components/table/table-body-cell/table-body-cell.js +3 -0
  102. package/dist/collection/components/table/table-body-row/table-body-row.js +3 -0
  103. package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.js +1 -0
  104. package/dist/collection/components/table/table-header/table-header.js +3 -0
  105. package/dist/collection/components/tabs/folder-tabs/folder-tab/folder-tab.js +3 -0
  106. package/dist/collection/components/tabs/folder-tabs/folder-tabs.js +3 -0
  107. package/dist/collection/components/tabs/inline-tabs/inline-tab/inline-tab.js +3 -0
  108. package/dist/collection/components/tabs/inline-tabs/inline-tabs.js +3 -0
  109. package/dist/collection/components/tabs/navigation-tabs/navigation-tab/navigation-tab.js +3 -0
  110. package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.js +3 -0
  111. package/dist/collection/components/toast/toast.js +5 -5
  112. package/dist/collection/components/toast/toast.stories.js +6 -6
  113. package/dist/collection/components/tooltip/tooltip.js +45 -109
  114. package/dist/collection/components/tooltip/tooltip.stories.js +9 -1
  115. package/dist/collection/stories/patterns/navigation/navigation-fewitems.stories.js +1 -1
  116. package/dist/collection/stories/patterns/navigation/navigation-manyitems.stories.js +2 -2
  117. package/dist/collection/stories/patterns/navigation/navigation-user-menu.stories.js +1 -1
  118. package/dist/collection/stories/tegel.stories.js +1 -1
  119. package/dist/components/header-dropdown-list-item.js +3 -3
  120. package/dist/components/header-dropdown-list.js +7 -7
  121. package/dist/components/popover-canvas.js +20 -89
  122. package/dist/{esm/popper-15e448b4.js → components/popover-core.js} +184 -1
  123. package/dist/components/tds-banner.js +5 -5
  124. package/dist/components/tds-button.js +21 -12
  125. package/dist/components/tds-card.js +2 -2
  126. package/dist/components/tds-dropdown.js +12 -7
  127. package/dist/components/tds-footer.js +1 -1
  128. package/dist/components/tds-header-dropdown.js +14 -8
  129. package/dist/components/tds-header-launcher-grid.js +1 -1
  130. package/dist/components/tds-header-launcher-list-item.js +1 -1
  131. package/dist/components/tds-header-launcher-list.js +1 -1
  132. package/dist/components/tds-header-launcher.js +16 -10
  133. package/dist/components/tds-link.js +1 -1
  134. package/dist/components/tds-message.js +4 -4
  135. package/dist/components/tds-popover-core.d.ts +11 -0
  136. package/dist/components/tds-popover-core.js +6 -0
  137. package/dist/components/tds-popover-menu.js +22 -70
  138. package/dist/components/tds-side-menu.js +1 -1
  139. package/dist/components/tds-slider.js +5 -1
  140. package/dist/components/tds-toast.js +4 -4
  141. package/dist/components/tds-tooltip.js +51 -90
  142. package/dist/components/utils.js +1 -1
  143. package/dist/esm/index-23ee700b.js +4 -0
  144. package/dist/esm/loader.js +1 -1
  145. package/dist/esm/tds-banner.entry.js +5 -5
  146. package/dist/esm/tds-button.entry.js +20 -11
  147. package/dist/esm/tds-card.entry.js +3 -3
  148. package/dist/esm/tds-checkbox.entry.js +1 -1
  149. package/dist/esm/tds-chip.entry.js +1 -1
  150. package/dist/esm/tds-core-header-item_2.entry.js +1 -1
  151. package/dist/esm/tds-dropdown.entry.js +13 -8
  152. package/dist/esm/tds-footer.entry.js +2 -2
  153. package/dist/esm/tds-header-dropdown-list-item.entry.js +2 -2
  154. package/dist/esm/tds-header-dropdown-list.entry.js +6 -6
  155. package/dist/esm/tds-header-dropdown.entry.js +1 -1
  156. package/dist/esm/tds-header-hamburger.entry.js +1 -1
  157. package/dist/esm/tds-header-launcher-button.entry.js +1 -1
  158. package/dist/esm/tds-header-launcher-grid-title.entry.js +1 -1
  159. package/dist/esm/tds-header-launcher-grid.entry.js +1 -1
  160. package/dist/esm/tds-header-launcher-list-item.entry.js +1 -1
  161. package/dist/esm/tds-header-launcher-list-title.entry.js +1 -1
  162. package/dist/esm/tds-header-launcher-list.entry.js +2 -2
  163. package/dist/esm/tds-header-launcher.entry.js +1 -1
  164. package/dist/esm/tds-header.entry.js +1 -1
  165. package/dist/esm/tds-link.entry.js +1 -1
  166. package/dist/esm/tds-message.entry.js +3 -3
  167. package/dist/esm/tds-modal.entry.js +1 -1
  168. package/dist/esm/tds-popover-canvas.entry.js +10 -80
  169. package/dist/{cjs/popper-d7adcfc6.js → esm/tds-popover-core.entry.js} +155 -2
  170. package/dist/esm/tds-popover-menu.entry.js +12 -62
  171. package/dist/esm/tds-radio-button.entry.js +1 -1
  172. package/dist/esm/tds-side-menu-close-button.entry.js +1 -1
  173. package/dist/esm/tds-side-menu-item.entry.js +1 -1
  174. package/dist/esm/tds-side-menu.entry.js +1 -1
  175. package/dist/esm/tds-slider.entry.js +6 -2
  176. package/dist/esm/tds-stepper.entry.js +1 -1
  177. package/dist/esm/tds-table.entry.js +1 -1
  178. package/dist/esm/tds-text-field.entry.js +1 -1
  179. package/dist/esm/tds-toast.entry.js +4 -4
  180. package/dist/esm/tds-toggle.entry.js +1 -1
  181. package/dist/esm/tds-tooltip.entry.js +42 -83
  182. package/dist/esm/tegel.js +1 -1
  183. package/dist/esm/{utils-74fb1bed.js → utils-8544b156.js} +1 -1
  184. package/dist/tegel/p-0641ac24.entry.js +1 -0
  185. package/dist/tegel/{p-347414ad.entry.js → p-0ae649c3.entry.js} +1 -1
  186. package/dist/tegel/{p-9f1e1cc0.entry.js → p-1a907ae9.entry.js} +1 -1
  187. package/dist/tegel/{p-1acb8407.entry.js → p-1f43d4f0.entry.js} +1 -1
  188. package/dist/tegel/{p-a4e3eb95.entry.js → p-2e5f6086.entry.js} +1 -1
  189. package/dist/tegel/{p-e4dc07bb.entry.js → p-31848a92.entry.js} +1 -1
  190. package/dist/tegel/{p-aa443b06.entry.js → p-3d28689e.entry.js} +1 -1
  191. package/dist/tegel/{p-99837611.entry.js → p-400282e5.entry.js} +1 -1
  192. package/dist/tegel/{p-c5588508.entry.js → p-4163997b.entry.js} +1 -1
  193. package/dist/tegel/{p-9b29bf68.entry.js → p-42990ec0.entry.js} +1 -1
  194. package/dist/tegel/p-43320d81.entry.js +1 -0
  195. package/dist/tegel/{p-c5ab3a3b.entry.js → p-656add37.entry.js} +1 -1
  196. package/dist/tegel/p-65ab407b.entry.js +1 -0
  197. package/dist/tegel/{p-54e56257.entry.js → p-6654e59d.entry.js} +1 -1
  198. package/dist/tegel/{p-9dc14c21.js → p-72fced16.js} +1 -1
  199. package/dist/tegel/p-79b1bb29.entry.js +1 -0
  200. package/dist/tegel/p-7ccff0a5.entry.js +1 -0
  201. package/dist/tegel/p-81915088.entry.js +1 -0
  202. package/dist/tegel/{p-9fe0d654.entry.js → p-823399ef.entry.js} +1 -1
  203. package/dist/tegel/{p-8ba77ea3.entry.js → p-84d231a5.entry.js} +1 -1
  204. package/dist/tegel/{p-b5424456.entry.js → p-88807dac.entry.js} +1 -1
  205. package/dist/tegel/p-88d7c4c1.entry.js +1 -0
  206. package/dist/tegel/p-8e745d73.entry.js +1 -0
  207. package/dist/tegel/p-a8cc3901.entry.js +1 -0
  208. package/dist/tegel/{p-f9d04ff2.entry.js → p-aa7e2f79.entry.js} +1 -1
  209. package/dist/tegel/{p-1bac7d2e.entry.js → p-cacdd03f.entry.js} +1 -1
  210. package/dist/tegel/p-cb5a4d7d.entry.js +1 -0
  211. package/dist/tegel/p-d0f15f73.entry.js +1 -0
  212. package/dist/tegel/{p-10337d3f.entry.js → p-d2ca7f58.entry.js} +1 -1
  213. package/dist/tegel/p-d4c25eb6.entry.js +1 -0
  214. package/dist/tegel/{p-e24835ba.entry.js → p-d60cb9e5.entry.js} +1 -1
  215. package/dist/tegel/{p-48136431.entry.js → p-da6f310c.entry.js} +1 -1
  216. package/dist/tegel/{p-e3f8fc68.entry.js → p-df318a85.entry.js} +1 -1
  217. package/dist/tegel/p-e36ceefe.entry.js +1 -0
  218. package/dist/tegel/p-e4d6a4c5.entry.js +1 -0
  219. package/dist/tegel/{p-fc6da19c.entry.js → p-f64ff692.entry.js} +1 -1
  220. package/dist/tegel/{p-c15bbe0b.entry.js → p-f682dd0b.entry.js} +1 -1
  221. package/dist/tegel/{p-afe13096.entry.js → p-fa30061f.entry.js} +1 -1
  222. package/dist/tegel/tegel.esm.js +1 -1
  223. package/dist/types/components/accordion/accordion-item/accordion-item.d.ts +1 -0
  224. package/dist/types/components/accordion/accordion.d.ts +3 -0
  225. package/dist/types/components/banner/banner.d.ts +3 -3
  226. package/dist/types/components/banner/banner.stories.d.ts +2 -2
  227. package/dist/types/components/block/block.d.ts +3 -0
  228. package/dist/types/components/breadcrumbs/breadcrumb/breadcrumb.d.ts +3 -0
  229. package/dist/types/components/breadcrumbs/breadcrumbs.d.ts +3 -0
  230. package/dist/types/components/button/button.d.ts +6 -2
  231. package/dist/types/components/button/button.stories.d.ts +16 -2
  232. package/dist/types/components/chip/chip.d.ts +1 -1
  233. package/dist/types/components/dropdown/dropdown-option/dropdown-option.d.ts +3 -0
  234. package/dist/types/components/dropdown/dropdown.d.ts +3 -0
  235. package/dist/types/components/footer/footer-group/footer-group.d.ts +3 -0
  236. package/dist/types/components/footer/footer-item/footer-item.d.ts +3 -0
  237. package/dist/types/components/header/core-header-item/core-header-item.d.ts +3 -0
  238. package/dist/types/components/header/header-brand-symbol/header-brand-symbol.d.ts +3 -0
  239. package/dist/types/components/header/header-dropdown/header-dropdown.d.ts +1 -0
  240. package/dist/types/components/header/header-dropdown-list/header-dropdown-list.d.ts +5 -1
  241. package/dist/types/components/header/header-dropdown-list-item/header-dropdown-list-item.d.ts +5 -2
  242. package/dist/types/components/header/header-item/header-item.d.ts +3 -0
  243. package/dist/types/components/header/header-launcher/header-launcher.d.ts +3 -0
  244. package/dist/types/components/header/header-launcher-grid/header-launcher-grid.d.ts +3 -0
  245. package/dist/types/components/header/header-launcher-grid-item/header-launcher-grid-item.d.ts +3 -0
  246. package/dist/types/components/header/header-launcher-grid-title/header-launcher-grid-title.d.ts +3 -0
  247. package/dist/types/components/header/header-launcher-list/header-launcher-list.d.ts +3 -0
  248. package/dist/types/components/header/header-launcher-list-item/header-launcher-list-item.d.ts +3 -0
  249. package/dist/types/components/header/header-launcher-list-title/header-launcher-list-title.d.ts +3 -0
  250. package/dist/types/components/header/header-title/header-title.d.ts +3 -0
  251. package/dist/types/components/header/header.d.ts +1 -0
  252. package/dist/types/components/header/header.stories.d.ts +1 -0
  253. package/dist/types/components/link/link.d.ts +3 -0
  254. package/dist/types/components/message/message.d.ts +3 -3
  255. package/dist/types/components/message/message.stories.d.ts +2 -2
  256. package/dist/types/components/popover-canvas/popover-canvas.d.ts +7 -13
  257. package/dist/types/components/popover-core/popover-core.d.ts +46 -0
  258. package/dist/types/components/popover-menu/popover-menu.d.ts +8 -9
  259. package/dist/types/components/side-menu/side-menu-collapse-button/side-menu-collapse-button.d.ts +1 -1
  260. package/dist/types/components/side-menu/side-menu-dropdown/side-menu-dropdown.d.ts +1 -1
  261. package/dist/types/components/side-menu/side-menu-dropdown-list/side-menu-dropdown-list.d.ts +1 -1
  262. package/dist/types/components/side-menu/side-menu-dropdown-list-item/side-menu-dropdown-list-item.d.ts +1 -1
  263. package/dist/types/components/side-menu/side-menu-item/side-menu-item.d.ts +1 -1
  264. package/dist/types/components/side-menu/side-menu.d.ts +1 -1
  265. package/dist/types/components/stepper/stepper.d.ts +3 -0
  266. package/dist/types/components/table/table/table.d.ts +3 -0
  267. package/dist/types/components/table/table-body/table-body.d.ts +2 -2
  268. package/dist/types/components/table/table-body-cell/table-body-cell.d.ts +3 -0
  269. package/dist/types/components/table/table-body-row/table-body-row.d.ts +3 -0
  270. package/dist/types/components/table/table-body-row-expandable/table-body-row-expandable.d.ts +1 -0
  271. package/dist/types/components/table/table-header/table-header.d.ts +3 -0
  272. package/dist/types/components/tabs/folder-tabs/folder-tab/folder-tab.d.ts +3 -0
  273. package/dist/types/components/tabs/folder-tabs/folder-tabs.d.ts +3 -0
  274. package/dist/types/components/tabs/inline-tabs/inline-tab/inline-tab.d.ts +3 -0
  275. package/dist/types/components/tabs/inline-tabs/inline-tabs.d.ts +3 -0
  276. package/dist/types/components/tabs/navigation-tabs/navigation-tab/navigation-tab.d.ts +3 -0
  277. package/dist/types/components/tabs/navigation-tabs/navigation-tabs.d.ts +3 -0
  278. package/dist/types/components/toast/toast.d.ts +1 -1
  279. package/dist/types/components/toast/toast.stories.d.ts +2 -2
  280. package/dist/types/components/tooltip/tooltip.d.ts +16 -8
  281. package/dist/types/components.d.ts +131 -26
  282. package/package.json +4 -3
  283. package/dist/tegel/p-06093e3e.entry.js +0 -1
  284. package/dist/tegel/p-0995ca77.entry.js +0 -1
  285. package/dist/tegel/p-19fb9ad5.entry.js +0 -1
  286. package/dist/tegel/p-34a06d2f.entry.js +0 -1
  287. package/dist/tegel/p-3c9865c3.entry.js +0 -1
  288. package/dist/tegel/p-40142a58.entry.js +0 -1
  289. package/dist/tegel/p-4c809685.entry.js +0 -1
  290. package/dist/tegel/p-6bee84a2.entry.js +0 -1
  291. package/dist/tegel/p-73a8f43e.entry.js +0 -1
  292. package/dist/tegel/p-7c0dcd00.js +0 -1
  293. package/dist/tegel/p-95e170f3.entry.js +0 -1
  294. package/dist/tegel/p-a34bb501.entry.js +0 -1
  295. package/dist/tegel/p-e95059e9.entry.js +0 -1
  296. package/dist/tegel/p-f795bc11.entry.js +0 -1
@@ -1,12 +1,14 @@
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;
@@ -20,17 +22,25 @@ export class TdsButton {
20
22
  }
21
23
  }
22
24
  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" }))));
25
+ const hasLabelSlot = hasSlot('label', this.host);
26
+ const hasIconSlot = hasSlot('icon', this.host);
27
+ return (h(Host, { class: `${this.modeVariant !== null ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("button", { type: this.type, disabled: this.disabled, class: {
28
+ 'primary': this.variant === 'primary',
29
+ 'secondary': this.variant === 'secondary',
30
+ 'ghost': this.variant === 'ghost',
31
+ 'danger': this.variant === 'danger',
32
+ 'lg': this.size === 'lg',
33
+ 'md': this.size === 'md',
34
+ 'sm': this.size === 'sm',
35
+ 'xs': this.size === 'xs',
36
+ 'disabled': this.disabled,
37
+ 'fullbleed': this.fullbleed,
38
+ 'icon': hasIconSlot,
39
+ 'only-icon': this.onlyIcon,
40
+ } }, this.text, hasLabelSlot && !this.onlyIcon && h("slot", { name: "label" }), hasIconSlot && h("slot", { name: "icon" }))));
31
41
  }
32
42
  static get is() { return "tds-button"; }
33
- static get encapsulation() { return "shadow"; }
43
+ static get encapsulation() { return "scoped"; }
34
44
  static get originalStyleUrls() {
35
45
  return {
36
46
  "$": ["button.scss"]
@@ -61,6 +71,24 @@ export class TdsButton {
61
71
  "reflect": false
62
72
  },
63
73
  "type": {
74
+ "type": "string",
75
+ "mutable": false,
76
+ "complexType": {
77
+ "original": "'button' | 'submit' | 'reset'",
78
+ "resolved": "\"button\" | \"reset\" | \"submit\"",
79
+ "references": {}
80
+ },
81
+ "required": false,
82
+ "optional": false,
83
+ "docs": {
84
+ "tags": [],
85
+ "text": "Button's type"
86
+ },
87
+ "attribute": "type",
88
+ "reflect": false,
89
+ "defaultValue": "'button'"
90
+ },
91
+ "variant": {
64
92
  "type": "string",
65
93
  "mutable": false,
66
94
  "complexType": {
@@ -72,9 +100,9 @@ export class TdsButton {
72
100
  "optional": false,
73
101
  "docs": {
74
102
  "tags": [],
75
- "text": "Type of Button"
103
+ "text": "Variation of Button's design"
76
104
  },
77
- "attribute": "type",
105
+ "attribute": "variant",
78
106
  "reflect": false,
79
107
  "defaultValue": "'primary'"
80
108
  },
@@ -90,7 +118,7 @@ export class TdsButton {
90
118
  "optional": false,
91
119
  "docs": {
92
120
  "tags": [],
93
- "text": ""
121
+ "text": "Size of a Button"
94
122
  },
95
123
  "attribute": "size",
96
124
  "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() {
@@ -1,4 +1,7 @@
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
7
  this.connectedCallback = () => {
@@ -1,5 +1,8 @@
1
1
  import { Host, h } from '@stencil/core';
2
2
  import { appendChildElement, appendHiddenInput, findNextFocusableItem, findPreviousFocusableItem, } from '../../utils/utils';
3
+ /**
4
+ * @slot <default> - <b>Unnamed slot.</b> For dropdown option elements.
5
+ */
3
6
  export class TdsDropdown {
4
7
  constructor() {
5
8
  this.connectedCallback = () => {
@@ -17,18 +20,22 @@ export class TdsDropdown {
17
20
  ? [...this.selection, { value: element.value, label: element.textContent }]
18
21
  : [{ value: element.value, label: element.textContent }];
19
22
  }
23
+ else {
24
+ element.setSelected(false);
25
+ }
20
26
  });
21
27
  }
22
28
  else {
23
29
  if (this.defaultValue === element.value) {
24
- this.reset();
25
30
  element.setSelected(true);
26
31
  this.selection = [{ value: element.value, label: element.textContent }];
27
32
  }
33
+ else {
34
+ element.setSelected(false);
35
+ }
28
36
  }
29
37
  return element;
30
38
  });
31
- this.handleChange();
32
39
  };
33
40
  this.getOpenDirection = () => {
34
41
  var _a, _b, _c, _d, _e;
@@ -53,14 +60,14 @@ export class TdsDropdown {
53
60
  this.handleFilter = (event) => {
54
61
  this.tdsInput.emit(event);
55
62
  const query = event.target.value.toLowerCase();
56
- /* Check if the query is empty, and if so show all options */
63
+ /* Check if the query is empty, and if so, show all options */
57
64
  if (query === '') {
58
65
  this.children = this.children.map((element) => {
59
66
  element.removeAttribute('hidden');
60
67
  return element;
61
68
  });
62
69
  this.filterResult = null;
63
- /* Hide the options that does not match the query */
70
+ /* Hide the options that do not match the query */
64
71
  }
65
72
  else {
66
73
  this.filterResult = this.children.filter((element) => {
@@ -168,7 +175,7 @@ export class TdsDropdown {
168
175
  return;
169
176
  }
170
177
  if (event.key === 'ArrowDown') {
171
- /* Get the index of the currently focus index, if there is no
178
+ /* Get the index of the current focus index, if there is no
172
179
  nextElementSibling return the index for the first child in our Dropdown. */
173
180
  const startingIndex = activeElement.nextElementSibling
174
181
  ? this.children.findIndex((element) => element === activeElement.nextElementSibling)
@@ -177,7 +184,7 @@ export class TdsDropdown {
177
184
  this.children[elementIndex].focus();
178
185
  }
179
186
  else if (event.key === 'ArrowUp') {
180
- /* Get the index of the currently focus index, if there is no
187
+ /* Get the index of the current focus index, if there is no
181
188
  previousElementSibling return the index for the first last in our Dropdown. */
182
189
  const startingIndex = activeElement.nextElementSibling
183
190
  ? this.children.findIndex((element) => element === activeElement.previousElementSibling)
@@ -189,7 +196,8 @@ export class TdsDropdown {
189
196
  this.open = false;
190
197
  }
191
198
  }
192
- // If the Dropdown gets closed this sets the value of the drodpown to the current selection labels or null if no selection is made.
199
+ // If the Dropdown gets closed,
200
+ // this sets the value of the dropdown to the current selection labels or null if no selection is made.
193
201
  handleOpenState() {
194
202
  var _a, _b;
195
203
  if (this.filter && this.multiselect) {
@@ -1,4 +1,7 @@
1
1
  import { Host, h } from '@stencil/core';
2
+ /**
3
+ * @slot <default> - <b>Unnamed slot.</b> For footer items.
4
+ */
2
5
  export class TdsFooterGroup {
3
6
  constructor() {
4
7
  /** If the group is placed in the main part of the Footer,
@@ -1,4 +1,7 @@
1
1
  import { h } from '@stencil/core';
2
+ /**
3
+ * @slot <default> - <b>Unnamed slot.</b> For slotting a link, button, or similar.
4
+ */
2
5
  export class TdsFooterItem {
3
6
  constructor() {
4
7
  this.parentIsTopPart = false;
@@ -2,6 +2,7 @@
2
2
  display: block;
3
3
  }
4
4
  :host slot[name=top]::slotted(*) {
5
+ box-sizing: border-box;
5
6
  background-color: var(--tds-footer-top-background);
6
7
  padding: 40px;
7
8
  display: grid;
@@ -1,4 +1,7 @@
1
1
  import { h, Host } from '@stencil/core';
2
+ /**
3
+ * @slot <default> - <b>Unnamed slot.</b> For content.
4
+ */
2
5
  export class TdsCoreHeaderItem {
3
6
  render() {
4
7
  return (h(Host, null, h("div", { class: "item" }, h("slot", null))));
@@ -1,4 +1,7 @@
1
1
  import { h, Host } from '@stencil/core';
2
+ /**
3
+ * @slot <default> - <b>Unnamed slot.</b> For a link.
4
+ */
2
5
  export class TdsHeaderBrandSymbol {
3
6
  render() {
4
7
  return (h(Host, null, h("tds-header-item", null, h("slot", null))));
@@ -1,6 +1,7 @@
1
1
  import { h, Host } from '@stencil/core';
2
2
  import { generateUniqueId } from '../../../utils/utils';
3
3
  /**
4
+ * @slot <default> - <b>Unnamed slot.</b> For injecting a dropdown list.
4
5
  * @slot icon - Slot for an Icon in the dropdown button.
5
6
  * @slot label - Slot for a label text in the dropdown button.
6
7
  */
@@ -5,7 +5,7 @@
5
5
  padding: 0;
6
6
  margin: 0;
7
7
  list-style: none;
8
- border-radius: none;
8
+ border-radius: unset;
9
9
  background-color: var(--tds-header-app-launcher-menu-bg);
10
10
  }
11
11
  @media all and (max-width: 384px) {
@@ -14,6 +14,6 @@
14
14
  }
15
15
  }
16
16
 
17
- :host([type=lg]) {
17
+ :host([size=lg]) {
18
18
  width: 320px;
19
19
  }
@@ -1,19 +1,22 @@
1
1
  import { Host, h } from '@stencil/core';
2
2
  import { getPreviousNestedChildOfSiblingsMatching, isHeadingElement } from '../../../utils/utils';
3
+ /**
4
+ * @slot <default> - <b>Unnamed slot.</b> For a dropdown list item.
5
+ */
3
6
  export class TdsHeaderDropdownList {
4
7
  constructor() {
5
8
  // A Map to store the slots and their associated slotchange listeners.
6
9
  this.slotListeners = new Map();
7
- this.type = 'md';
10
+ this.size = 'md';
8
11
  this.headingElement = undefined;
9
12
  }
10
13
  componentWillLoad() {
11
14
  const { children } = this.host;
12
- // Set the type prop for each child, if they have such a property
15
+ // Set the size prop for each child, if they have such a property
13
16
  for (let i = 0; i < children.length; i++) {
14
17
  const child = children[i];
15
- if ('type' in child) {
16
- child.type = this.type;
18
+ if ('size' in child) {
19
+ child.size = this.size;
17
20
  }
18
21
  }
19
22
  let listRoot = this.host;
@@ -84,7 +87,7 @@ export class TdsHeaderDropdownList {
84
87
  }
85
88
  static get properties() {
86
89
  return {
87
- "type": {
90
+ "size": {
88
91
  "type": "string",
89
92
  "mutable": false,
90
93
  "complexType": {
@@ -96,9 +99,9 @@ export class TdsHeaderDropdownList {
96
99
  "optional": false,
97
100
  "docs": {
98
101
  "tags": [],
99
- "text": ""
102
+ "text": "The size of the component."
100
103
  },
101
- "attribute": "type",
104
+ "attribute": "size",
102
105
  "reflect": true,
103
106
  "defaultValue": "'md'"
104
107
  }
@@ -46,11 +46,11 @@
46
46
  border-bottom: 1px solid var(--tds-nav-dropdown-item-border-color);
47
47
  }
48
48
 
49
- :host([type=lg]) {
49
+ :host([size=lg]) {
50
50
  height: var(--tds-header-height);
51
51
  }
52
- :host([type=lg]) ::slotted(a),
53
- :host([type=lg]) ::slotted(button) {
52
+ :host([size=lg]) ::slotted(a),
53
+ :host([size=lg]) ::slotted(button) {
54
54
  padding: 0 16px;
55
55
  color: var(--tds-header-app-launcher-item-color);
56
56
  }
@@ -1,8 +1,11 @@
1
1
  import { h, Host } from '@stencil/core';
2
+ /**
3
+ * @slot <default> - <b>Unnamed slot.</b> For a link or button element.
4
+ */
2
5
  export class TdsHeaderDropdownListItem {
3
6
  constructor() {
4
7
  this.selected = false;
5
- this.type = 'md';
8
+ this.size = 'md';
6
9
  }
7
10
  render() {
8
11
  return (h(Host, null, h("div", { class: {
@@ -42,7 +45,7 @@ export class TdsHeaderDropdownListItem {
42
45
  "reflect": false,
43
46
  "defaultValue": "false"
44
47
  },
45
- "type": {
48
+ "size": {
46
49
  "type": "string",
47
50
  "mutable": false,
48
51
  "complexType": {
@@ -54,9 +57,9 @@ export class TdsHeaderDropdownListItem {
54
57
  "optional": false,
55
58
  "docs": {
56
59
  "tags": [],
57
- "text": "The type of the list."
60
+ "text": "The size of the component."
58
61
  },
59
- "attribute": "type",
62
+ "attribute": "size",
60
63
  "reflect": true,
61
64
  "defaultValue": "'md'"
62
65
  }
@@ -1,5 +1,8 @@
1
1
  import { h, Host } from '@stencil/core';
2
2
  import { dfs } from '../../../utils/utils';
3
+ /**
4
+ * @slot <default> - <b>Unnamed slot.</b> For a link or button element.
5
+ */
3
6
  export class TdsHeaderItem {
4
7
  constructor() {
5
8
  this.active = false;
@@ -1,5 +1,8 @@
1
1
  import { Host, h } from '@stencil/core';
2
2
  import { generateUniqueId, inheritAriaAttributes } from '../../../utils/utils';
3
+ /**
4
+ * @slot <default> - <b>Unnamed slot.</b> For a launcher list (or grid) element.
5
+ */
3
6
  export class TdsHeaderLauncher {
4
7
  constructor() {
5
8
  this.uuid = generateUniqueId();
@@ -1,5 +1,8 @@
1
1
  import { h, Host } from '@stencil/core';
2
2
  import { getPreviousNestedChildOfSiblingsMatching, isHeadingElement } from '../../../utils/utils';
3
+ /**
4
+ * @slot <default> - <b>Unnamed slot.</b> For a grid item element.
5
+ */
3
6
  export class TdsHeaderLauncherGrid {
4
7
  constructor() {
5
8
  this.headingElement = undefined;
@@ -1,4 +1,7 @@
1
1
  import { h, Host } from '@stencil/core';
2
+ /**
3
+ * @slot <default> - <b>Unnamed slot.</b> For a link or button element.
4
+ */
2
5
  export class TdsHeaderLauncherGridItem {
3
6
  render() {
4
7
  return (h(Host, { role: "listitem" }, h("slot", null)));
@@ -1,5 +1,8 @@
1
1
  import { h, Host } from '@stencil/core';
2
2
  import { generateUniqueId } from '../../../utils/utils';
3
+ /**
4
+ * @slot <default> - <b>Unnamed slot.</b> For the title text.
5
+ */
3
6
  export class TdsHeaderLauncherGridTitle {
4
7
  constructor() {
5
8
  this.uuid = generateUniqueId();
@@ -1,11 +1,14 @@
1
1
  import { Host, h } from '@stencil/core';
2
2
  import { generateUniqueId } from '../../../utils/utils';
3
+ /**
4
+ * @slot <default> - <b>Unnamed slot.</b> For list items.
5
+ */
3
6
  export class TdsHeaderLauncherList {
4
7
  constructor() {
5
8
  this.uuid = generateUniqueId();
6
9
  }
7
10
  render() {
8
- return (h(Host, null, h("tds-header-dropdown-list", { type: "lg" }, h("slot", null))));
11
+ return (h(Host, null, h("tds-header-dropdown-list", { size: "lg" }, h("slot", null))));
9
12
  }
10
13
  static get is() { return "tds-header-launcher-list"; }
11
14
  }
@@ -1,7 +1,10 @@
1
1
  import { h, Host } from '@stencil/core';
2
+ /**
3
+ * @slot <default> - <b>Unnamed slot.</b> For a link or button element.
4
+ */
2
5
  export class TdsHeaderLauncherListItem {
3
6
  render() {
4
- return (h(Host, null, h("tds-header-dropdown-list-item", { type: "lg" }, h("slot", null))));
7
+ return (h(Host, null, h("tds-header-dropdown-list-item", { size: "lg" }, h("slot", null))));
5
8
  }
6
9
  static get is() { return "tds-header-launcher-list-item"; }
7
10
  static get encapsulation() { return "shadow"; }
@@ -1,5 +1,8 @@
1
1
  import { h, Host } from '@stencil/core';
2
2
  import { generateUniqueId } from '../../../utils/utils';
3
+ /**
4
+ * @slot <default> - <b>Unnamed slot.</b> For the title text.
5
+ */
3
6
  export class TdsHeaderLauncherListTitle {
4
7
  constructor() {
5
8
  this.uuid = generateUniqueId();
@@ -1,4 +1,7 @@
1
1
  import { h, Host } from '@stencil/core';
2
+ /**
3
+ * @slot <default> - <b>Unnamed slot.</b> For the header title text.
4
+ */
2
5
  export class TdsHeaderTitle {
3
6
  render() {
4
7
  return (h(Host, null, h("div", { class: "component" }, h("slot", null))));
@@ -1,6 +1,7 @@
1
1
  import { h, Host } from '@stencil/core';
2
2
  import { inheritAriaAttributes, updateListChildrenRoles } from '../../utils/utils';
3
3
  /**
4
+ * @slot <default> - <b>Unnamed slot.</b> Slot for the left-aligned content consisting of buttons, dropdowns, links, etc.
4
5
  * @slot hamburger - Slot for the hamburger button for opening the mobile menu.
5
6
  * @slot title - Slot for the title.
6
7
  * @slot end - Slot for the end (right side) of the header.
@@ -7,6 +7,7 @@ import readmeDropdown from './header-dropdown/readme.md';
7
7
  import readmeDropdownList from './header-dropdown-list/readme.md';
8
8
  import readmeDropdownListItem from './header-dropdown-list-item/readme.md';
9
9
  import readmeDropdownListUser from './header-dropdown-list-user/readme.md';
10
+ import readmeBrandSymbol from './header-brand-symbol/readme.md';
10
11
  import readmeLauncher from './header-launcher/readme.md';
11
12
  import { ComponentsFolder } from '../../utils/constants';
12
13
  export default {
@@ -22,6 +23,7 @@ export default {
22
23
  'Header dropdown list item': readmeDropdownListItem,
23
24
  'Header dropdown list user': readmeDropdownListUser,
24
25
  'Header launcher': readmeLauncher,
26
+ 'Header brand symbol': readmeBrandSymbol,
25
27
  },
26
28
  layout: 'fullscreen',
27
29
  docs: {
@@ -1,4 +1,7 @@
1
1
  import { h } from '@stencil/core';
2
+ /**
3
+ * @slot <default> - <b>Unnamed slot.</b> For a link element. Eg. <code>&lt;a><a></code>.
4
+ */
2
5
  export class TdsLink {
3
6
  constructor() {
4
7
  this.disabled = false;
@@ -8,7 +11,7 @@ export class TdsLink {
8
11
  this.host.children[0].classList.add('tds-link-component');
9
12
  }
10
13
  render() {
11
- return (h("div", { class: `
14
+ return (h("span", { class: `
12
15
  ${this.disabled ? 'disabled' : ''}
13
16
  ${!this.underline ? 'no-underline' : ''}
14
17
  ` }, h("slot", null)));
@@ -47,11 +47,13 @@ export default {
47
47
  },
48
48
  };
49
49
  const Template = ({ underline, disabled }) => formatHtmlPreview(`
50
- <tds-link
50
+ <p class='tds-body-02'>The <tds-link
51
51
  ${disabled ? 'disabled' : ''}
52
52
  ${underline ? '' : 'underline="false"'}
53
53
  >
54
- <a href="#">This is a link.</a>
55
- </tds-link>
54
+ <a href="https://tegel.scania.com/home" target='_blank'>Tegel</a>
55
+ </tds-link> Design System is for digital products and services at Scania.
56
+ It enables an efficient development process and ensures a premium experience across all of Scania's digital touchpoints.
57
+ </p>
56
58
  `);
57
59
  export const Default = Template.bind({});