@scania/tegel 1.55.0-var-batch-8-beta → 1.56.0

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 (308) hide show
  1. package/dist/cjs/index-DppbfV9I.js +2548 -0
  2. package/dist/cjs/loader.cjs.js +2 -2
  3. package/dist/cjs/tds-accordion-item.cjs.entry.js +1 -1
  4. package/dist/cjs/tds-accordion.cjs.entry.js +1 -1
  5. package/dist/cjs/tds-badge.cjs.entry.js +1 -1
  6. package/dist/cjs/tds-banner.cjs.entry.js +1 -1
  7. package/dist/cjs/tds-block.cjs.entry.js +1 -1
  8. package/dist/cjs/tds-body-cell.cjs.entry.js +1 -1
  9. package/dist/cjs/tds-breadcrumb.cjs.entry.js +1 -1
  10. package/dist/cjs/tds-breadcrumbs.cjs.entry.js +1 -1
  11. package/dist/cjs/tds-button_2.cjs.entry.js +1 -1
  12. package/dist/cjs/tds-card.cjs.entry.js +1 -1
  13. package/dist/cjs/tds-checkbox.cjs.entry.js +2 -2
  14. package/dist/cjs/tds-chip.cjs.entry.js +1 -1
  15. package/dist/cjs/tds-core-header-item_2.cjs.entry.js +1 -1
  16. package/dist/cjs/tds-datetime.cjs.entry.js +1 -1
  17. package/dist/cjs/tds-dropdown_2.cjs.entry.js +1 -1
  18. package/dist/cjs/tds-folder-tab.cjs.entry.js +1 -1
  19. package/dist/cjs/tds-folder-tabs.cjs.entry.js +1 -1
  20. package/dist/cjs/tds-footer-group.cjs.entry.js +1 -1
  21. package/dist/cjs/tds-footer-item.cjs.entry.js +1 -1
  22. package/dist/cjs/tds-footer.cjs.entry.js +1 -1
  23. package/dist/cjs/tds-header-brand-symbol.cjs.entry.js +1 -1
  24. package/dist/cjs/tds-header-cell.cjs.entry.js +1 -1
  25. package/dist/cjs/tds-header-dropdown-list-item.cjs.entry.js +1 -1
  26. package/dist/cjs/tds-header-dropdown-list-user.cjs.entry.js +1 -1
  27. package/dist/cjs/tds-header-dropdown-list.cjs.entry.js +1 -1
  28. package/dist/cjs/tds-header-dropdown.cjs.entry.js +1 -1
  29. package/dist/cjs/tds-header-hamburger.cjs.entry.js +1 -1
  30. package/dist/cjs/tds-header-launcher-button.cjs.entry.js +1 -1
  31. package/dist/cjs/tds-header-launcher-grid-item.cjs.entry.js +1 -1
  32. package/dist/cjs/tds-header-launcher-grid-title.cjs.entry.js +1 -1
  33. package/dist/cjs/tds-header-launcher-grid.cjs.entry.js +1 -1
  34. package/dist/cjs/tds-header-launcher-list-item.cjs.entry.js +1 -1
  35. package/dist/cjs/tds-header-launcher-list-title.cjs.entry.js +1 -1
  36. package/dist/cjs/tds-header-launcher-list.cjs.entry.js +1 -1
  37. package/dist/cjs/tds-header-launcher.cjs.entry.js +1 -1
  38. package/dist/cjs/tds-header-title.cjs.entry.js +1 -1
  39. package/dist/cjs/tds-header.cjs.entry.js +1 -1
  40. package/dist/cjs/tds-icon.cjs.entry.js +71 -15
  41. package/dist/cjs/tds-inline-tab.cjs.entry.js +1 -1
  42. package/dist/cjs/tds-inline-tabs.cjs.entry.js +1 -1
  43. package/dist/cjs/tds-link.cjs.entry.js +1 -1
  44. package/dist/cjs/tds-message.cjs.entry.js +1 -1
  45. package/dist/cjs/tds-modal.cjs.entry.js +1 -1
  46. package/dist/cjs/tds-navigation-tab.cjs.entry.js +1 -1
  47. package/dist/cjs/tds-navigation-tabs.cjs.entry.js +1 -1
  48. package/dist/cjs/tds-popover-canvas.cjs.entry.js +1 -1
  49. package/dist/cjs/tds-popover-core.cjs.entry.js +1 -1
  50. package/dist/cjs/tds-popover-menu-item.cjs.entry.js +1 -1
  51. package/dist/cjs/tds-popover-menu.cjs.entry.js +1 -1
  52. package/dist/cjs/tds-radio-button.cjs.entry.js +2 -2
  53. package/dist/cjs/tds-side-menu-close-button.cjs.entry.js +1 -1
  54. package/dist/cjs/tds-side-menu-collapse-button.cjs.entry.js +1 -1
  55. package/dist/cjs/tds-side-menu-dropdown-list-item.cjs.entry.js +1 -1
  56. package/dist/cjs/tds-side-menu-dropdown-list.cjs.entry.js +1 -1
  57. package/dist/cjs/tds-side-menu-dropdown.cjs.entry.js +1 -1
  58. package/dist/cjs/tds-side-menu-item.cjs.entry.js +1 -1
  59. package/dist/cjs/tds-side-menu-overlay.cjs.entry.js +1 -1
  60. package/dist/cjs/tds-side-menu-user-image_2.cjs.entry.js +1 -1
  61. package/dist/cjs/tds-side-menu-user.cjs.entry.js +1 -1
  62. package/dist/cjs/tds-side-menu.cjs.entry.js +1 -1
  63. package/dist/cjs/tds-slider.cjs.entry.js +1 -1
  64. package/dist/cjs/tds-spinner.cjs.entry.js +1 -1
  65. package/dist/cjs/tds-step.cjs.entry.js +1 -1
  66. package/dist/cjs/tds-stepper.cjs.entry.js +1 -1
  67. package/dist/cjs/tds-table-body-input-wrapper.cjs.entry.js +1 -1
  68. package/dist/cjs/tds-table-body-row-expandable.cjs.entry.js +1 -1
  69. package/dist/cjs/tds-table-body-row.cjs.entry.js +1 -1
  70. package/dist/cjs/tds-table-body.cjs.entry.js +1 -1
  71. package/dist/cjs/tds-table-footer.cjs.entry.js +1 -1
  72. package/dist/cjs/tds-table-header-input-wrapper.cjs.entry.js +1 -1
  73. package/dist/cjs/tds-table-header.cjs.entry.js +1 -1
  74. package/dist/cjs/tds-table-toolbar.cjs.entry.js +1 -1
  75. package/dist/cjs/tds-table.cjs.entry.js +1 -1
  76. package/dist/cjs/tds-tag.cjs.entry.js +1 -1
  77. package/dist/cjs/tds-text-field.cjs.entry.js +1 -1
  78. package/dist/cjs/tds-textarea.cjs.entry.js +1 -1
  79. package/dist/cjs/tds-toast.cjs.entry.js +1 -1
  80. package/dist/cjs/tds-toggle.cjs.entry.js +2 -2
  81. package/dist/cjs/tds-tooltip.cjs.entry.js +1 -1
  82. package/dist/cjs/tegel.cjs.js +2 -2
  83. package/dist/collection/components/banner/banner.js +1 -1
  84. package/dist/collection/components/checkbox/checkbox.css +63 -74
  85. package/dist/collection/components/icon/icon.js +76 -15
  86. package/dist/collection/components/icon/scaniaIconsArray.js +2 -256
  87. package/dist/collection/components/icon/tratonIconsArray.js +2 -34
  88. package/dist/collection/components/radio-button/radio-button.css +52 -57
  89. package/dist/collection/components/toggle/toggle.css +85 -49
  90. package/dist/components/index.js +1 -1
  91. package/dist/components/p-1OlFnMHE.js +1 -0
  92. package/dist/components/{p-_rIDaSwT.js → p-7N0u4VMq.js} +1 -1
  93. package/dist/components/{p-gYwpHMxN.js → p-Br7e_rNH.js} +1 -1
  94. package/dist/components/{p-VwQKu81G.js → p-DhFWetNE.js} +1 -1
  95. package/dist/components/{p-B-9923_a.js → p-DnMNK2Ez.js} +1 -1
  96. package/dist/components/p-bPqW3C5g.js +1 -0
  97. package/dist/components/tds-accordion-item.js +1 -1
  98. package/dist/components/tds-banner.js +1 -1
  99. package/dist/components/tds-card.js +1 -1
  100. package/dist/components/tds-checkbox.js +1 -1
  101. package/dist/components/tds-datetime.js +1 -1
  102. package/dist/components/tds-dropdown-option.js +1 -1
  103. package/dist/components/tds-dropdown.js +1 -1
  104. package/dist/components/tds-folder-tabs.js +1 -1
  105. package/dist/components/tds-footer-group.js +1 -1
  106. package/dist/components/tds-header-cell.js +1 -1
  107. package/dist/components/tds-header-dropdown.js +1 -1
  108. package/dist/components/tds-header-hamburger.js +1 -1
  109. package/dist/components/tds-header-launcher-button.js +1 -1
  110. package/dist/components/tds-header-launcher.js +1 -1
  111. package/dist/components/tds-icon.js +1 -1
  112. package/dist/components/tds-inline-tabs.js +1 -1
  113. package/dist/components/tds-message.js +1 -1
  114. package/dist/components/tds-modal.js +1 -1
  115. package/dist/components/tds-navigation-tabs.js +1 -1
  116. package/dist/components/tds-radio-button.js +1 -1
  117. package/dist/components/tds-side-menu-close-button.js +1 -1
  118. package/dist/components/tds-side-menu-dropdown.js +1 -1
  119. package/dist/components/tds-slider.js +1 -1
  120. package/dist/components/tds-step.js +1 -1
  121. package/dist/components/tds-table-body-input-wrapper.js +1 -1
  122. package/dist/components/tds-table-body-row-expandable.js +1 -1
  123. package/dist/components/tds-table-body-row.js +1 -1
  124. package/dist/components/tds-table-footer.js +1 -1
  125. package/dist/components/tds-table-header-input-wrapper.js +1 -1
  126. package/dist/components/tds-table-header.js +1 -1
  127. package/dist/components/tds-table-toolbar.js +1 -1
  128. package/dist/components/tds-text-field.js +1 -1
  129. package/dist/components/tds-textarea.js +1 -1
  130. package/dist/components/tds-toast.js +1 -1
  131. package/dist/components/tds-toggle.js +1 -1
  132. package/dist/esm/index-D66gczjV.js +2519 -0
  133. package/dist/esm/loader.js +3 -3
  134. package/dist/esm/tds-accordion-item.entry.js +1 -1
  135. package/dist/esm/tds-accordion.entry.js +1 -1
  136. package/dist/esm/tds-badge.entry.js +1 -1
  137. package/dist/esm/tds-banner.entry.js +1 -1
  138. package/dist/esm/tds-block.entry.js +1 -1
  139. package/dist/esm/tds-body-cell.entry.js +1 -1
  140. package/dist/esm/tds-breadcrumb.entry.js +1 -1
  141. package/dist/esm/tds-breadcrumbs.entry.js +1 -1
  142. package/dist/esm/tds-button_2.entry.js +1 -1
  143. package/dist/esm/tds-card.entry.js +1 -1
  144. package/dist/esm/tds-checkbox.entry.js +2 -2
  145. package/dist/esm/tds-chip.entry.js +1 -1
  146. package/dist/esm/tds-core-header-item_2.entry.js +1 -1
  147. package/dist/esm/tds-datetime.entry.js +1 -1
  148. package/dist/esm/tds-dropdown_2.entry.js +1 -1
  149. package/dist/esm/tds-folder-tab.entry.js +1 -1
  150. package/dist/esm/tds-folder-tabs.entry.js +1 -1
  151. package/dist/esm/tds-footer-group.entry.js +1 -1
  152. package/dist/esm/tds-footer-item.entry.js +1 -1
  153. package/dist/esm/tds-footer.entry.js +1 -1
  154. package/dist/esm/tds-header-brand-symbol.entry.js +1 -1
  155. package/dist/esm/tds-header-cell.entry.js +1 -1
  156. package/dist/esm/tds-header-dropdown-list-item.entry.js +1 -1
  157. package/dist/esm/tds-header-dropdown-list-user.entry.js +1 -1
  158. package/dist/esm/tds-header-dropdown-list.entry.js +1 -1
  159. package/dist/esm/tds-header-dropdown.entry.js +1 -1
  160. package/dist/esm/tds-header-hamburger.entry.js +1 -1
  161. package/dist/esm/tds-header-launcher-button.entry.js +1 -1
  162. package/dist/esm/tds-header-launcher-grid-item.entry.js +1 -1
  163. package/dist/esm/tds-header-launcher-grid-title.entry.js +1 -1
  164. package/dist/esm/tds-header-launcher-grid.entry.js +1 -1
  165. package/dist/esm/tds-header-launcher-list-item.entry.js +1 -1
  166. package/dist/esm/tds-header-launcher-list-title.entry.js +1 -1
  167. package/dist/esm/tds-header-launcher-list.entry.js +1 -1
  168. package/dist/esm/tds-header-launcher.entry.js +1 -1
  169. package/dist/esm/tds-header-title.entry.js +1 -1
  170. package/dist/esm/tds-header.entry.js +1 -1
  171. package/dist/esm/tds-icon.entry.js +71 -15
  172. package/dist/esm/tds-inline-tab.entry.js +1 -1
  173. package/dist/esm/tds-inline-tabs.entry.js +1 -1
  174. package/dist/esm/tds-link.entry.js +1 -1
  175. package/dist/esm/tds-message.entry.js +1 -1
  176. package/dist/esm/tds-modal.entry.js +1 -1
  177. package/dist/esm/tds-navigation-tab.entry.js +1 -1
  178. package/dist/esm/tds-navigation-tabs.entry.js +1 -1
  179. package/dist/esm/tds-popover-canvas.entry.js +1 -1
  180. package/dist/esm/tds-popover-core.entry.js +1 -1
  181. package/dist/esm/tds-popover-menu-item.entry.js +1 -1
  182. package/dist/esm/tds-popover-menu.entry.js +1 -1
  183. package/dist/esm/tds-radio-button.entry.js +2 -2
  184. package/dist/esm/tds-side-menu-close-button.entry.js +1 -1
  185. package/dist/esm/tds-side-menu-collapse-button.entry.js +1 -1
  186. package/dist/esm/tds-side-menu-dropdown-list-item.entry.js +1 -1
  187. package/dist/esm/tds-side-menu-dropdown-list.entry.js +1 -1
  188. package/dist/esm/tds-side-menu-dropdown.entry.js +1 -1
  189. package/dist/esm/tds-side-menu-item.entry.js +1 -1
  190. package/dist/esm/tds-side-menu-overlay.entry.js +1 -1
  191. package/dist/esm/tds-side-menu-user-image_2.entry.js +1 -1
  192. package/dist/esm/tds-side-menu-user.entry.js +1 -1
  193. package/dist/esm/tds-side-menu.entry.js +1 -1
  194. package/dist/esm/tds-slider.entry.js +1 -1
  195. package/dist/esm/tds-spinner.entry.js +1 -1
  196. package/dist/esm/tds-step.entry.js +1 -1
  197. package/dist/esm/tds-stepper.entry.js +1 -1
  198. package/dist/esm/tds-table-body-input-wrapper.entry.js +1 -1
  199. package/dist/esm/tds-table-body-row-expandable.entry.js +1 -1
  200. package/dist/esm/tds-table-body-row.entry.js +1 -1
  201. package/dist/esm/tds-table-body.entry.js +1 -1
  202. package/dist/esm/tds-table-footer.entry.js +1 -1
  203. package/dist/esm/tds-table-header-input-wrapper.entry.js +1 -1
  204. package/dist/esm/tds-table-header.entry.js +1 -1
  205. package/dist/esm/tds-table-toolbar.entry.js +1 -1
  206. package/dist/esm/tds-table.entry.js +1 -1
  207. package/dist/esm/tds-tag.entry.js +1 -1
  208. package/dist/esm/tds-text-field.entry.js +1 -1
  209. package/dist/esm/tds-textarea.entry.js +1 -1
  210. package/dist/esm/tds-toast.entry.js +1 -1
  211. package/dist/esm/tds-toggle.entry.js +2 -2
  212. package/dist/esm/tds-tooltip.entry.js +1 -1
  213. package/dist/esm/tegel.js +3 -3
  214. package/dist/tegel/{p-5f588a98.entry.js → p-000bfdca.entry.js} +1 -1
  215. package/dist/tegel/{p-fc3bebb9.entry.js → p-02212ac6.entry.js} +1 -1
  216. package/dist/tegel/{p-ba5d53d7.entry.js → p-04621919.entry.js} +1 -1
  217. package/dist/tegel/{p-8422bd8c.entry.js → p-05473253.entry.js} +1 -1
  218. package/dist/tegel/{p-2a305350.entry.js → p-13780f5d.entry.js} +1 -1
  219. package/dist/tegel/{p-82ff3ba2.entry.js → p-140a090f.entry.js} +1 -1
  220. package/dist/tegel/{p-fe8c1416.entry.js → p-1b3624dc.entry.js} +1 -1
  221. package/dist/tegel/{p-b66d994f.entry.js → p-1b609314.entry.js} +1 -1
  222. package/dist/tegel/{p-5b58d128.entry.js → p-1e4de197.entry.js} +1 -1
  223. package/dist/tegel/{p-7947d4e0.entry.js → p-1efea13d.entry.js} +1 -1
  224. package/dist/tegel/{p-d439b25a.entry.js → p-214037e3.entry.js} +1 -1
  225. package/dist/tegel/{p-fd3f5a16.entry.js → p-21cb56e6.entry.js} +1 -1
  226. package/dist/tegel/{p-333ed361.entry.js → p-22fbab13.entry.js} +1 -1
  227. package/dist/tegel/{p-d72dff1b.entry.js → p-231a3187.entry.js} +1 -1
  228. package/dist/tegel/{p-a7a9448e.entry.js → p-2a4e34a1.entry.js} +1 -1
  229. package/dist/tegel/{p-a004293f.entry.js → p-2c3b31e4.entry.js} +1 -1
  230. package/dist/tegel/{p-d5a23a52.entry.js → p-2d5325aa.entry.js} +1 -1
  231. package/dist/tegel/{p-f377b8a1.entry.js → p-2e32958f.entry.js} +1 -1
  232. package/dist/tegel/{p-8959c64a.entry.js → p-3a8b1343.entry.js} +1 -1
  233. package/dist/tegel/{p-f07d47a0.entry.js → p-445c3453.entry.js} +1 -1
  234. package/dist/tegel/{p-ec8aaf23.entry.js → p-497db558.entry.js} +1 -1
  235. package/dist/tegel/{p-9a49a394.entry.js → p-49dfb3d3.entry.js} +1 -1
  236. package/dist/tegel/p-4b9a07a3.entry.js +1 -0
  237. package/dist/tegel/{p-1d9dd4a4.entry.js → p-4c6424d2.entry.js} +1 -1
  238. package/dist/tegel/{p-664e3dd1.entry.js → p-55a79070.entry.js} +1 -1
  239. package/dist/tegel/{p-79387c9c.entry.js → p-5a3ca353.entry.js} +1 -1
  240. package/dist/tegel/{p-e265a121.entry.js → p-5c268113.entry.js} +1 -1
  241. package/dist/tegel/{p-3a739d96.entry.js → p-5cbddcff.entry.js} +1 -1
  242. package/dist/tegel/{p-d7888cc7.entry.js → p-60202162.entry.js} +1 -1
  243. package/dist/tegel/{p-2d26dc94.entry.js → p-60f6737b.entry.js} +1 -1
  244. package/dist/tegel/{p-10370617.entry.js → p-64b66669.entry.js} +1 -1
  245. package/dist/tegel/{p-ed677584.entry.js → p-700cb284.entry.js} +1 -1
  246. package/dist/tegel/{p-36337827.entry.js → p-7370f158.entry.js} +1 -1
  247. package/dist/tegel/{p-958ff10a.entry.js → p-7892e328.entry.js} +1 -1
  248. package/dist/tegel/{p-729b549c.entry.js → p-7af4363c.entry.js} +1 -1
  249. package/dist/tegel/{p-62bc14c7.entry.js → p-7d2aefad.entry.js} +1 -1
  250. package/dist/tegel/{p-4f12df3d.entry.js → p-846d70dc.entry.js} +1 -1
  251. package/dist/tegel/{p-717f50e8.entry.js → p-8cf631e7.entry.js} +1 -1
  252. package/dist/tegel/{p-c28c6d1f.entry.js → p-9709bb77.entry.js} +1 -1
  253. package/dist/tegel/{p-8ea7b21d.entry.js → p-988ff487.entry.js} +1 -1
  254. package/dist/tegel/{p-fc1e168b.entry.js → p-98dc12c7.entry.js} +1 -1
  255. package/dist/tegel/{p-b5d57db7.entry.js → p-99c91f58.entry.js} +1 -1
  256. package/dist/tegel/{p-10edbfc9.entry.js → p-9b1e6d61.entry.js} +1 -1
  257. package/dist/tegel/{p-dcc61083.entry.js → p-9b72e3dd.entry.js} +1 -1
  258. package/dist/tegel/{p-b8d2b04e.entry.js → p-9c1b43b8.entry.js} +1 -1
  259. package/dist/tegel/{p-27d62f89.entry.js → p-9f7a950c.entry.js} +1 -1
  260. package/dist/tegel/p-D66gczjV.js +2 -0
  261. package/dist/tegel/p-a054ce7d.entry.js +1 -0
  262. package/dist/tegel/{p-60a8c916.entry.js → p-a7634987.entry.js} +1 -1
  263. package/dist/tegel/{p-63ca76cf.entry.js → p-b23451fc.entry.js} +1 -1
  264. package/dist/tegel/{p-de95b9ae.entry.js → p-b2828551.entry.js} +1 -1
  265. package/dist/tegel/{p-3587a9ce.entry.js → p-b7f22b75.entry.js} +1 -1
  266. package/dist/tegel/{p-fb02b793.entry.js → p-b807d795.entry.js} +1 -1
  267. package/dist/tegel/p-bc1a3ca0.entry.js +1 -0
  268. package/dist/tegel/{p-34f72969.entry.js → p-bc7d471d.entry.js} +1 -1
  269. package/dist/tegel/{p-5bed78b3.entry.js → p-bccbaa31.entry.js} +1 -1
  270. package/dist/tegel/{p-2f256cea.entry.js → p-be9fbe0f.entry.js} +1 -1
  271. package/dist/tegel/{p-9c6f2e79.entry.js → p-bf3c8bc3.entry.js} +1 -1
  272. package/dist/tegel/{p-a4aae973.entry.js → p-c58227d3.entry.js} +1 -1
  273. package/dist/tegel/{p-1baad780.entry.js → p-cf5babd4.entry.js} +1 -1
  274. package/dist/tegel/{p-f76516d3.entry.js → p-d09b3be2.entry.js} +1 -1
  275. package/dist/tegel/{p-c29023bd.entry.js → p-d0e38c6b.entry.js} +1 -1
  276. package/dist/tegel/{p-a8d0dda1.entry.js → p-d4067d17.entry.js} +1 -1
  277. package/dist/tegel/{p-cf467e1d.entry.js → p-d53afae8.entry.js} +1 -1
  278. package/dist/tegel/{p-94d3c4d9.entry.js → p-d5c4a372.entry.js} +1 -1
  279. package/dist/tegel/{p-a626c318.entry.js → p-d5cc5b82.entry.js} +1 -1
  280. package/dist/tegel/{p-bfbcb04b.entry.js → p-d646eac8.entry.js} +1 -1
  281. package/dist/tegel/{p-6d498d53.entry.js → p-e12c54e6.entry.js} +1 -1
  282. package/dist/tegel/{p-df0f6932.entry.js → p-eaea4f9f.entry.js} +1 -1
  283. package/dist/tegel/{p-5e2e7fee.entry.js → p-ec1092cf.entry.js} +1 -1
  284. package/dist/tegel/{p-61abf3aa.entry.js → p-ecc63b20.entry.js} +1 -1
  285. package/dist/tegel/{p-029fc297.entry.js → p-efd0e84b.entry.js} +1 -1
  286. package/dist/tegel/{p-9fce57e3.entry.js → p-f2266731.entry.js} +1 -1
  287. package/dist/tegel/{p-ea98e5dd.entry.js → p-f4b91949.entry.js} +1 -1
  288. package/dist/tegel/{p-762d869c.entry.js → p-f4e4944d.entry.js} +1 -1
  289. package/dist/tegel/p-f4f725a5.entry.js +1 -0
  290. package/dist/tegel/{p-f4e81f53.entry.js → p-f54ea031.entry.js} +1 -1
  291. package/dist/tegel/p-f7280e3c.entry.js +1 -0
  292. package/dist/tegel/{p-c0c94a17.entry.js → p-f904a7c4.entry.js} +1 -1
  293. package/dist/tegel/{p-e1ace2b1.entry.js → p-fbeef715.entry.js} +1 -1
  294. package/dist/tegel/tegel.css +184 -192
  295. package/dist/tegel/tegel.esm.js +1 -1
  296. package/dist/types/components/icon/icon.d.ts +7 -2
  297. package/dist/types/types/TratonIcons.d.ts +1 -1
  298. package/package.json +1 -1
  299. package/dist/cjs/index-Chayda4R.js +0 -2548
  300. package/dist/components/p-B5eSTxGJ.js +0 -1
  301. package/dist/components/p-Cbe2Satj.js +0 -1
  302. package/dist/esm/index-DQ9ya-NU.js +0 -2519
  303. package/dist/tegel/p-5055ae12.entry.js +0 -1
  304. package/dist/tegel/p-663cdecf.entry.js +0 -1
  305. package/dist/tegel/p-7aba8111.entry.js +0 -1
  306. package/dist/tegel/p-94dba855.entry.js +0 -1
  307. package/dist/tegel/p-DQ9ya-NU.js +0 -2
  308. package/dist/tegel/p-d931247a.entry.js +0 -1
@@ -1,4 +1,13 @@
1
1
  import { h, Host } from "@stencil/core";
2
+ // Feature-detect the CSS `d` property once per module load. Where it is
3
+ // supported (Chromium, Firefox, Safari 18+) the path renders reactively from
4
+ // the brand-scoped --tds-icon-<name>-d variable via the CSS `d` property, so
5
+ // none of the imperative getComputedStyle / MutationObserver fallback runs —
6
+ // those engines pay no per-icon runtime cost. Only engines without it (older
7
+ // Safari/WebKit) fall back to resolving the `d` attribute in JS.
8
+ const SUPPORTS_CSS_D = typeof CSS !== 'undefined' &&
9
+ typeof CSS.supports === 'function' &&
10
+ CSS.supports('d', 'path("M0 0Z")');
2
11
  export class Icon {
3
12
  constructor() {
4
13
  /** Pass the name of the icon.
@@ -8,28 +17,75 @@ export class Icon {
8
17
  this.size = '16px';
9
18
  /** Set aria-hidden attribute on svg */
10
19
  this.tdsAriaHidden = false;
20
+ this.pathD = '';
11
21
  }
12
- componentDidLoad() {
13
- this.warnIfMissing();
22
+ componentWillLoad() {
23
+ if (SUPPORTS_CSS_D)
24
+ return;
25
+ this.resolvePath();
26
+ }
27
+ connectedCallback() {
28
+ // The CSS `d` property handles brand-aware rendering reactively where
29
+ // supported, so the JS fallback below only runs on engines without it.
30
+ if (SUPPORTS_CSS_D)
31
+ return;
32
+ // When the icon is nested in another component's shadow tree, its load
33
+ // lifecycle runs while the subtree is still detached, so the synchronous
34
+ // getComputedStyle read in resolvePath yields nothing. Retry on the next
35
+ // frame once the subtree is attached and the CSS variables resolve.
36
+ this.resolvePath();
37
+ if (!this.pathD) {
38
+ requestAnimationFrame(() => this.resolvePath());
39
+ }
40
+ this.observeBrandChanges();
41
+ }
42
+ disconnectedCallback() {
43
+ var _a;
44
+ (_a = this.brandObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
45
+ this.brandObserver = undefined;
14
46
  }
15
47
  nameChanged() {
16
- this.warnIfMissing();
48
+ if (SUPPORTS_CSS_D)
49
+ return;
50
+ this.resolvePath();
17
51
  }
18
- warnIfMissing() {
19
- const styles = getComputedStyle(this.host);
20
- const exists = styles.getPropertyValue(`--tds-icon-${this.name}-exists`).trim();
21
- if (exists)
52
+ observeBrandChanges() {
53
+ // The JS `d` attribute fallback is read imperatively via getComputedStyle,
54
+ // so it must re-resolve when the brand changes at runtime. The brand is
55
+ // selected by a `.scania`/`.traton` class on the document root, so watch
56
+ // the root's class attribute and re-resolve on change.
57
+ if (this.brandObserver)
22
58
  return;
23
- const brand = styles.getPropertyValue('--tds-brand-name').trim().replace(/['"]/g, '');
24
- console.warn(`[tds-icon] "${this.name}" is not available in brand "${brand || 'unknown'}"; rendering placeholder.`);
59
+ this.brandObserver = new MutationObserver(() => this.resolvePath());
60
+ this.brandObserver.observe(document.documentElement, {
61
+ attributes: true,
62
+ attributeFilter: ['class'],
63
+ });
64
+ }
65
+ resolvePath() {
66
+ // Path data lives on the brand-scoped CSS variable --tds-icon-<name>-d
67
+ // (see tokens/scss/component/icon.scss), shaped as `path('M...')`. Resolve
68
+ // it to an SVG `d` attribute here as the fallback for engines without CSS
69
+ // `d` support. An unknown icon name — brands have different icon sets, so a
70
+ // name may not exist in the active brand — simply yields no match and
71
+ // renders an empty path.
72
+ const raw = getComputedStyle(this.host).getPropertyValue(`--tds-icon-${this.name}-d`).trim();
73
+ const match = raw.match(/^path\(\s*(['"])([\s\S]*)\1\s*\)$/);
74
+ this.pathD = match ? match[2] : '';
25
75
  }
26
76
  render() {
27
- // Path data is supplied by the brand-scoped CSS variable
28
- // --tds-icon-<name>-d (see tokens/scss/component/icon.scss).
29
- // The cascade picks scania vs. traton based on the nearest .scania/.traton
30
- // ancestor, so no JS brand detection is needed.
77
+ // Brand-aware path data is supplied two ways so it works everywhere:
78
+ // 1. The CSS `d` property bound to the brand-scoped --tds-icon-<name>-d
79
+ // variable. The CSS cascade resolves and updates this reactively when
80
+ // the .scania/.traton brand class changes — no JS, no timing races.
81
+ // Supported in Chromium, Firefox and Safari 18+.
82
+ // 2. The `d` attribute resolved imperatively (this.pathD), as a fallback
83
+ // for engines that ignore the CSS `d` property (older Safari/WebKit).
84
+ // Where the CSS `d` property is supported it overrides the `d` attribute,
85
+ // so the two coexist: supporting engines use (1) and never populate (2);
86
+ // others fall back to (2). See SUPPORTS_CSS_D above.
31
87
  const pathStyle = { d: `var(--tds-icon-${this.name}-d)` };
32
- return (h(Host, { key: '79cfdc2412a5f910265103d3ed6591f7b61ae418' }, h("svg", { key: '1bc9d05ec2ed94d48d75461606660bd7a803bdd8', "aria-hidden": this.tdsAriaHidden, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", "aria-labelledby": this.svgTitle ? `title-${this.name}` : undefined, "aria-describedby": this.svgDescription ? `desc-${this.name}` : undefined, role: "img", style: { fontSize: this.size }, height: this.size, width: this.size }, this.svgTitle && h("title", { key: 'abaf0a67d4fc79e3504057d12b16fc9fd7214a3b', id: `title-${this.name}` }, this.svgTitle), this.svgDescription && h("desc", { key: '9eec14670760462e079b951ff0c5876f145af580', id: `desc-${this.name}` }, this.svgDescription), h("path", { key: '65a48d4c0ccebb1ed8345814784b776a534113a0', fill: "currentColor", style: pathStyle }))));
88
+ return (h(Host, { key: 'fcceb06dd3f214b311fb7709fae9f46b82e4d9d1' }, h("svg", { key: '17b35536c6aa4b8c3b8c73644be8e0c3cb7f9090', "aria-hidden": this.tdsAriaHidden, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", "aria-labelledby": this.svgTitle ? `title-${this.name}` : undefined, "aria-describedby": this.svgDescription ? `desc-${this.name}` : undefined, role: "img", style: { fontSize: this.size }, height: this.size, width: this.size }, this.svgTitle && h("title", { key: '32ddc0b145521f4ed0169da2d79d32cd8b4d3201', id: `title-${this.name}` }, this.svgTitle), this.svgDescription && h("desc", { key: '4e5ae53d642cb7761c3dd00a161ff489028cef13', id: `desc-${this.name}` }, this.svgDescription), h("path", { key: '4b7595d42111a4dce6e16e1d3c3347094df16add', fill: "currentColor", style: pathStyle, d: this.pathD }))));
33
89
  }
34
90
  static get is() { return "tds-icon"; }
35
91
  static get encapsulation() { return "shadow"; }
@@ -50,7 +106,7 @@ export class Icon {
50
106
  "mutable": false,
51
107
  "complexType": {
52
108
  "original": "IconNames",
53
- "resolved": "\"24v_battery\" | \"24v_battery_inactive\" | \"acceleration\" | \"acceleration_inactive\" | \"adblue\" | \"adblue_inactive\" | \"arrow_diagonal\" | \"arrow_down\" | \"arrow_left\" | \"arrow_right\" | \"arrow_up\" | \"audio\" | \"audio_inactive\" | \"award\" | \"back\" | \"backward\" | \"backward_inactive\" | \"bento\" | \"bug\" | \"bug_inactive\" | \"burger\" | \"bus\" | \"bus_inactive\" | \"cab_door\" | \"calendar\" | \"calendar_inactive\" | \"camera\" | \"camera_inactive\" | \"card\" | \"cart\" | \"charging_complete\" | \"charging_failed\" | \"charging_speed\" | \"charging_speed_inactive\" | \"charging_stopped\" | \"chevron_down\" | \"chevron_left\" | \"chevron_right\" | \"chevron_up\" | \"clock\" | \"clock_inactive\" | \"configurator\" | \"contact\" | \"contact_inactive\" | \"cookie\" | \"cookie_inactive\" | \"coolant_level\" | \"coolant_level_inactive\" | \"copy\" | \"cross\" | \"cup\" | \"cup_inactive\" | \"dashboard\" | \"department\" | \"department_inactive\" | \"departure_scheduling\" | \"departure_scheduling_inactive\" | \"diamond\" | \"diamond_inactive\" | \"document\" | \"document_check\" | \"document_doc\" | \"document_eye\" | \"document_pdf\" | \"document_plus\" | \"document_plus_inactive\" | \"document_ppt\" | \"document_tool\" | \"document_wrong\" | \"document_xls\" | \"dollar\" | \"doner\" | \"double_kebab\" | \"download\" | \"driving_licence\" | \"driving_licence_inactive\" | \"drop\" | \"drop_inactive\" | \"edit\" | \"edit_inactive\" | \"email\" | \"engine\" | \"engine_inactive\" | \"environment\" | \"environment_inactive\" | \"error\" | \"exit\" | \"expand\" | \"expand_inactive\" | \"export\" | \"export_inactive\" | \"eye\" | \"eye_inactive\" | \"face_dissatisfied\" | \"face_neutral\" | \"face_satisfied\" | \"factory\" | \"factory_inactive\" | \"ferry\" | \"ferry_inactive\" | \"filters\" | \"filters_inactive\" | \"flash\" | \"flash_inactive\" | \"folder\" | \"forward\" | \"forward_inactive\" | \"fuel\" | \"fuel_gauge\" | \"fuel_gauge_inactive\" | \"fuel_inactive\" | \"gift\" | \"gift_inactive\" | \"global\" | \"guided_tour\" | \"guided_tour_inactive\" | \"hatch_open\" | \"hatch_open_1\" | \"hatch_open_2\" | \"hatch_open_inactive\" | \"heart\" | \"heart_inactive\" | \"heating_inactive_screen\" | \"history\" | \"history_inactive\" | \"home\" | \"home_inactive\" | \"idea\" | \"idea_inactive\" | \"image\" | \"image_add\" | \"image_inactive\" | \"image_set\" | \"info\" | \"insights\" | \"kebab\" | \"key\" | \"key_inactive\" | \"language\" | \"layer\" | \"layer_inactive\" | \"link\" | \"link_broken\" | \"list\" | \"list_inactive\" | \"lock\" | \"lock_inactive\" | \"map_cursor\" | \"map_cursor_inactive\" | \"maximize_fullscreen\" | \"meatballs\" | \"merge\" | \"merge_inactive\" | \"message\" | \"message_inactive\" | \"microphone\" | \"microphone_inactive\" | \"mileage\" | \"mileage_inactive\" | \"minimize_fullscreen\" | \"minus\" | \"navigate\" | \"navigate_inactive\" | \"notification\" | \"notification_inactive\" | \"notification_snooze\" | \"oil_level\" | \"oil_level_inactive\" | \"paperclip\" | \"pause\" | \"pause_inactive\" | \"phone\" | \"phone_inactive\" | \"pie_chart\" | \"pin\" | \"pin_inactive\" | \"placeholder\" | \"play\" | \"play_inactive\" | \"plus\" | \"powerplug\" | \"powerplug_inactive\" | \"print\" | \"print_inactive\" | \"privacy\" | \"privacy_inactive\" | \"profile\" | \"profile_inactive\" | \"prohibited\" | \"proportions\" | \"proportions_inactive\" | \"range\" | \"range_inactive\" | \"redirect\" | \"refresh\" | \"refresh_inactive\" | \"reload\" | \"reload_inactive\" | \"repeat\" | \"report\" | \"report_inactive\" | \"route\" | \"route_inactive\" | \"save\" | \"save_inactive\" | \"search\" | \"send\" | \"send_inactive\" | \"settings\" | \"share\" | \"shuffle\" | \"skip_backwards\" | \"skip_forward\" | \"smartphone\" | \"smartphone_inactive\" | \"sorting\" | \"speedometer\" | \"speedometer_inactive\" | \"star\" | \"support\" | \"target\" | \"target_inactive\" | \"temperature\" | \"temperature_inactive\" | \"text\" | \"text_inactive\" | \"thumbs_down\" | \"thumbs_up\" | \"tick\" | \"timer\" | \"tool\" | \"tool_inactive\" | \"trailer\" | \"trailer_inactive\" | \"trash\" | \"trash_inactive\" | \"truck\" | \"truck_inactive\" | \"undo\" | \"undo_inactive\" | \"unlock\" | \"upload\" | \"video\" | \"video_inactive\" | \"wallet\" | \"warning\" | \"weight\" | \"weight_inactive\" | \"wifi\" | \"wifi_inactive\" | \"windscreen_heating\" | \"windscreen_heating_inactive\"",
109
+ "resolved": "\"24v_battery\" | \"24v_battery_inactive\" | \"acceleration\" | \"acceleration_inactive\" | \"adblue\" | \"adblue_inactive\" | \"arrow_diagonal\" | \"arrow_down\" | \"arrow_left\" | \"arrow_right\" | \"arrow_up\" | \"audio\" | \"audio_inactive\" | \"award\" | \"back\" | \"backward\" | \"backward_inactive\" | \"bento\" | \"bug\" | \"bug_inactive\" | \"burger\" | \"bus\" | \"bus_inactive\" | \"cab_door\" | \"calendar\" | \"calendar_inactive\" | \"camera\" | \"camera_inactive\" | \"card\" | \"cart\" | \"charging_complete\" | \"charging_failed\" | \"charging_speed\" | \"charging_speed_inactive\" | \"charging_stopped\" | \"chevron_down\" | \"chevron_left\" | \"chevron_right\" | \"chevron_up\" | \"clock\" | \"clock_inactive\" | \"configurator\" | \"contact\" | \"contact_inactive\" | \"cookie\" | \"cookie_inactive\" | \"coolant_level\" | \"coolant_level_inactive\" | \"copy\" | \"cross\" | \"cup\" | \"cup_inactive\" | \"dashboard\" | \"department\" | \"department_inactive\" | \"departure_scheduling\" | \"departure_scheduling_inactive\" | \"diamond\" | \"diamond_inactive\" | \"document\" | \"document_check\" | \"document_doc\" | \"document_eye\" | \"document_pdf\" | \"document_plus\" | \"document_plus_inactive\" | \"document_ppt\" | \"document_tool\" | \"document_word\" | \"document_wrong\" | \"document_xls\" | \"dollar\" | \"doner\" | \"double_kebab\" | \"download\" | \"driving_licence\" | \"driving_licence_inactive\" | \"drop\" | \"drop_inactive\" | \"edit\" | \"edit_inactive\" | \"email\" | \"engine\" | \"engine_inactive\" | \"environment\" | \"environment_inactive\" | \"error\" | \"exit\" | \"expand\" | \"expand_inactive\" | \"export\" | \"export_inactive\" | \"eye\" | \"eye_inactive\" | \"face_dissatisfied\" | \"face_neutral\" | \"face_satisfied\" | \"factory\" | \"factory_inactive\" | \"ferry\" | \"ferry_inactive\" | \"filters\" | \"filters_inactive\" | \"flash\" | \"flash_inactive\" | \"folder\" | \"forward\" | \"forward_inactive\" | \"fuel\" | \"fuel_gauge\" | \"fuel_gauge_inactive\" | \"fuel_inactive\" | \"gift\" | \"gift_inactive\" | \"global\" | \"guided_tour\" | \"guided_tour_inactive\" | \"hatch_open\" | \"hatch_open_1\" | \"hatch_open_2\" | \"hatch_open_inactive\" | \"heart\" | \"heart_inactive\" | \"heating_inactive_screen\" | \"history\" | \"history_inactive\" | \"home\" | \"home_inactive\" | \"idea\" | \"idea_inactive\" | \"image\" | \"image_add\" | \"image_inactive\" | \"image_set\" | \"info\" | \"insights\" | \"kebab\" | \"key\" | \"key_inactive\" | \"language\" | \"layer\" | \"layer_inactive\" | \"link\" | \"link_broken\" | \"list\" | \"list_inactive\" | \"lock\" | \"lock_inactive\" | \"map_cursor\" | \"map_cursor_inactive\" | \"maximize_fullscreen\" | \"meatballs\" | \"merge\" | \"merge_inactive\" | \"message\" | \"message_inactive\" | \"microphone\" | \"microphone_inactive\" | \"mileage\" | \"mileage_inactive\" | \"minimize_fullscreen\" | \"minus\" | \"navigate\" | \"navigate_inactive\" | \"notification\" | \"notification_inactive\" | \"notification_snooze\" | \"oil_level\" | \"oil_level_inactive\" | \"paperclip\" | \"pause\" | \"pause_inactive\" | \"phone\" | \"phone_inactive\" | \"pie_chart\" | \"pin\" | \"pin_inactive\" | \"placeholder\" | \"play\" | \"play_inactive\" | \"plus\" | \"powerplug\" | \"powerplug_inactive\" | \"print\" | \"print_inactive\" | \"privacy\" | \"privacy_inactive\" | \"profile\" | \"profile_inactive\" | \"prohibited\" | \"proportions\" | \"proportions_inactive\" | \"range\" | \"range_inactive\" | \"redirect\" | \"refresh\" | \"refresh_inactive\" | \"reload\" | \"reload_inactive\" | \"repeat\" | \"report\" | \"report_inactive\" | \"route\" | \"route_inactive\" | \"save\" | \"save_inactive\" | \"search\" | \"send\" | \"send_inactive\" | \"settings\" | \"share\" | \"shuffle\" | \"skip_backwards\" | \"skip_forward\" | \"smartphone\" | \"smartphone_inactive\" | \"sorting\" | \"speedometer\" | \"speedometer_inactive\" | \"star\" | \"support\" | \"target\" | \"target_inactive\" | \"temperature\" | \"temperature_inactive\" | \"text\" | \"text_inactive\" | \"thumbs_down\" | \"thumbs_up\" | \"tick\" | \"timer\" | \"tool\" | \"tool_inactive\" | \"trailer\" | \"trailer_inactive\" | \"trash\" | \"trash_inactive\" | \"truck\" | \"truck_inactive\" | \"undo\" | \"undo_inactive\" | \"unlock\" | \"upload\" | \"video\" | \"video_inactive\" | \"wallet\" | \"warning\" | \"weight\" | \"weight_inactive\" | \"wifi\" | \"wifi_inactive\" | \"windscreen_heating\" | \"windscreen_heating_inactive\"",
54
110
  "references": {
55
111
  "IconNames": {
56
112
  "location": "import",
@@ -152,6 +208,11 @@ export class Icon {
152
208
  }
153
209
  };
154
210
  }
211
+ static get states() {
212
+ return {
213
+ "pathD": {}
214
+ };
215
+ }
155
216
  static get elementRef() { return "host"; }
156
217
  static get watchers() {
157
218
  return [{