@tet/tet-components 1.4.19-testing → 1.4.20-staging

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 (471) hide show
  1. package/dist/cjs/{address-656e77f6.js → address-f852270f.js} +1 -1
  2. package/dist/cjs/{assets-f64f0e16.js → assets-b9d36649.js} +1 -1
  3. package/dist/cjs/{async-request-fcf33aba.js → async-request-4517f566.js} +1 -1
  4. package/dist/cjs/{http-codes-40da1e61.js → http-codes-062f76cf.js} +1 -1
  5. package/dist/cjs/{index-4b423f33.js → index-19a7608f.js} +1 -1
  6. package/dist/cjs/{index-3242ff3f.js → index-faec4c52.js} +1 -1
  7. package/dist/cjs/loader.cjs.js +2 -2
  8. package/dist/cjs/{phone-055efd07.js → phone-d6be0dd2.js} +2 -2
  9. package/dist/cjs/{product-comparison-88a89820.js → product-comparison-aa80a77c.js} +1 -1
  10. package/dist/cjs/tet-accordion.cjs.entry.js +1 -1
  11. package/dist/cjs/tet-address-offers-filters-products_2.cjs.entry.js +4 -4
  12. package/dist/cjs/tet-address-offers-view.cjs.entry.js +3 -3
  13. package/dist/cjs/tet-address-offers_4.cjs.entry.js +7 -7
  14. package/dist/cjs/tet-address-search.cjs.entry.js +4 -4
  15. package/dist/cjs/tet-asset-addresses.cjs.entry.js +3 -3
  16. package/dist/cjs/tet-autocomplete-dropdown.cjs.entry.js +1 -1
  17. package/dist/cjs/tet-autocomplete.cjs.entry.js +1 -1
  18. package/dist/cjs/tet-b2b-check-out-form_5.cjs.entry.js +3 -3
  19. package/dist/cjs/tet-b2b-configurator.cjs.entry.js +4 -4
  20. package/dist/cjs/tet-b2b-service-calculator.cjs.entry.js +3 -3
  21. package/dist/cjs/tet-banner-nav.cjs.entry.js +3 -3
  22. package/dist/cjs/tet-bar-graph.cjs.entry.js +1 -1
  23. package/dist/cjs/tet-border-radius.cjs.entry.js +1 -1
  24. package/dist/cjs/tet-business-card.cjs.entry.js +1 -1
  25. package/dist/cjs/tet-business-compare-card.cjs.entry.js +1 -1
  26. package/dist/cjs/tet-business-lines.cjs.entry.js +4 -4
  27. package/dist/cjs/tet-business-round-stepper.cjs.entry.js +1 -1
  28. package/dist/cjs/tet-button.cjs.entry.js +1 -1
  29. package/dist/cjs/tet-card-list.cjs.entry.js +1 -1
  30. package/dist/cjs/tet-carousel.cjs.entry.js +3 -3
  31. package/dist/cjs/tet-checkbox.cjs.entry.js +1 -1
  32. package/dist/cjs/tet-cloud-application-form-dialog.cjs.entry.js +3 -3
  33. package/dist/cjs/tet-cloud-configurator.cjs.entry.js +3 -3
  34. package/dist/cjs/tet-colors.cjs.entry.js +557 -7
  35. package/dist/cjs/tet-compare-card-v2.cjs.entry.js +4 -4
  36. package/dist/cjs/tet-compare-cards-tab.cjs.entry.js +3 -3
  37. package/dist/cjs/tet-compare-cards_2.cjs.entry.js +3 -3
  38. package/dist/cjs/tet-components.cjs.js +2 -2
  39. package/dist/cjs/tet-contact-form.cjs.entry.js +5 -5
  40. package/dist/cjs/tet-contact-info.cjs.entry.js +1 -1
  41. package/dist/cjs/tet-container_2.cjs.entry.js +1 -1
  42. package/dist/cjs/tet-customer-assets.cjs.entry.js +3 -3
  43. package/dist/cjs/tet-datepicker-header_4.cjs.entry.js +1 -1
  44. package/dist/cjs/tet-datepicker.cjs.entry.js +1 -1
  45. package/dist/cjs/tet-dialog.cjs.entry.js +3 -3
  46. package/dist/cjs/tet-dropdown.cjs.entry.js +1 -1
  47. package/dist/cjs/tet-dynamic-card.cjs.entry.js +1 -1
  48. package/dist/cjs/tet-expandable-input.cjs.entry.js +1 -1
  49. package/dist/cjs/tet-expansion-panel.cjs.entry.js +1 -1
  50. package/dist/cjs/tet-feedback-form.cjs.entry.js +3 -3
  51. package/dist/cjs/tet-filter.cjs.entry.js +1 -1
  52. package/dist/cjs/tet-floating-block.cjs.entry.js +1 -1
  53. package/dist/cjs/tet-font-weight.cjs.entry.js +2 -2
  54. package/dist/cjs/tet-fonts.cjs.entry.js +2 -2
  55. package/dist/cjs/tet-grid.cjs.entry.js +2 -2
  56. package/dist/cjs/tet-icon.cjs.entry.js +2 -2
  57. package/dist/cjs/tet-inline-message.cjs.entry.js +1 -1
  58. package/dist/cjs/tet-input.cjs.entry.js +3 -3
  59. package/dist/cjs/tet-label.cjs.entry.js +3 -3
  60. package/dist/cjs/tet-layout.cjs.entry.js +2 -2
  61. package/dist/cjs/tet-link-card-list.cjs.entry.js +1 -1
  62. package/dist/cjs/tet-link.cjs.entry.js +2 -2
  63. package/dist/cjs/tet-loader.cjs.entry.js +1 -1
  64. package/dist/cjs/tet-macd-view.cjs.entry.js +6 -6
  65. package/dist/cjs/tet-menu-mobile.cjs.entry.js +1 -1
  66. package/dist/cjs/tet-menu.cjs.entry.js +1 -1
  67. package/dist/cjs/tet-multi-step-dialog.cjs.entry.js +3 -3
  68. package/dist/cjs/tet-navigation-mobile.cjs.entry.js +1 -1
  69. package/dist/cjs/tet-news-card-list.cjs.entry.js +1 -1
  70. package/dist/cjs/tet-notification.cjs.entry.js +1 -1
  71. package/dist/cjs/tet-number-input.cjs.entry.js +1 -1
  72. package/dist/cjs/tet-placeholder.cjs.entry.js +1 -1
  73. package/dist/cjs/tet-price-view.cjs.entry.js +1 -1
  74. package/dist/cjs/tet-radio.cjs.entry.js +1 -1
  75. package/dist/cjs/tet-range-slider.cjs.entry.js +1 -1
  76. package/dist/cjs/tet-referral.cjs.entry.js +5 -5
  77. package/dist/cjs/tet-round-stepper.cjs.entry.js +1 -1
  78. package/dist/cjs/tet-snicker-card-badge.cjs.entry.js +1 -1
  79. package/dist/cjs/tet-spacing.cjs.entry.js +2 -2
  80. package/dist/cjs/tet-spinner.cjs.entry.js +1 -1
  81. package/dist/cjs/tet-stepper-input.cjs.entry.js +3 -3
  82. package/dist/cjs/tet-stepper-v2.cjs.entry.js +1 -1
  83. package/dist/cjs/tet-stepper-v3.cjs.entry.js +1 -1
  84. package/dist/cjs/tet-stepper.cjs.entry.js +1 -1
  85. package/dist/cjs/tet-switch.cjs.entry.js +1 -1
  86. package/dist/cjs/tet-tab-header.cjs.entry.js +1 -1
  87. package/dist/cjs/tet-table.cjs.entry.js +1 -1
  88. package/dist/cjs/tet-tag_2.cjs.entry.js +3 -3
  89. package/dist/cjs/tet-text-list.cjs.entry.js +2 -2
  90. package/dist/cjs/tet-textarea.cjs.entry.js +1 -1
  91. package/dist/cjs/tet-thank-you-view-v2.cjs.entry.js +3 -3
  92. package/dist/cjs/tet-thank-you-view-v3.cjs.entry.js +3 -3
  93. package/dist/cjs/tet-thank-you-view.cjs.entry.js +1 -1
  94. package/dist/cjs/tet-tooltip.cjs.entry.js +1 -1
  95. package/dist/cjs/tet-tv-gift-block.cjs.entry.js +1 -1
  96. package/dist/cjs/tet-tv-gift-list.cjs.entry.js +1 -1
  97. package/dist/cjs/{theme-wrapper-66880718.js → theme-wrapper-46514846.js} +2 -2
  98. package/dist/cjs/{translations-03c9de64.js → translations-89a0ec3d.js} +1 -1
  99. package/dist/collection/components/advanced/cards/tet-compare-card/tet-compare-card.css +477 -21
  100. package/dist/collection/components/advanced/cards/tet-compare-card-v2/tet-compare-card-v2.css +477 -21
  101. package/dist/collection/components/simple/lists/tet-text-list/tet-text-list.css +477 -21
  102. package/dist/collection/docs/styling/colors/tet-colors.css +446 -0
  103. package/dist/collection/docs/styling/colors/tet-colors.js +584 -5
  104. package/dist/collection/docs/styling/font-weight/tet-font-weight.js +1 -1
  105. package/dist/collection/docs/styling/fonts/tet-fonts.js +1 -1
  106. package/dist/collection/docs/styling/layout/tet-layout.js +1 -1
  107. package/dist/collection/docs/styling/link/tet-link.js +1 -1
  108. package/dist/collection/docs/styling/spacing/tet-spacing.js +1 -1
  109. package/dist/collection/docs/styling/tet-grid/tet-grid.js +1 -1
  110. package/dist/components/index.js +1 -1
  111. package/dist/components/{p-ba846cd8.js → p-0250495a.js} +1 -1
  112. package/dist/components/{p-e4760d81.js → p-0c2be9d2.js} +5 -5
  113. package/dist/components/{p-d18322a6.js → p-0fe9be0e.js} +1 -1
  114. package/dist/components/{p-d7f503a6.js → p-211603c6.js} +1 -1
  115. package/dist/components/{p-ba453a4d.js → p-2727ad52.js} +2 -2
  116. package/dist/components/{p-39963672.js → p-280b5953.js} +1 -1
  117. package/dist/components/{p-f609da49.js → p-2bbcadd9.js} +2 -2
  118. package/dist/components/{p-092b641e.js → p-2cde4db3.js} +2 -2
  119. package/dist/components/{p-fd07bb57.js → p-31382df6.js} +1 -1
  120. package/dist/components/{p-57dbf301.js → p-3554cdb8.js} +2 -2
  121. package/dist/components/{p-097f8fe3.js → p-3c9ece59.js} +7 -7
  122. package/dist/components/{p-81c1e1e3.js → p-3e99bae3.js} +2 -2
  123. package/dist/components/{p-5826a362.js → p-4443818b.js} +3 -3
  124. package/dist/components/{p-d291e672.js → p-466654d8.js} +6 -6
  125. package/dist/components/{p-4490abff.js → p-47c3f519.js} +7 -7
  126. package/dist/components/{p-fc664937.js → p-4ae6eb24.js} +1 -1
  127. package/dist/components/{p-f7605a11.js → p-4d02e57d.js} +1 -1
  128. package/dist/components/{p-bc5e40bb.js → p-55378f62.js} +1 -1
  129. package/dist/components/{p-00a0bd42.js → p-55a93eba.js} +3 -3
  130. package/dist/components/{p-0575693d.js → p-5b8f47af.js} +7 -7
  131. package/dist/components/{p-8ee8fae1.js → p-60b7091f.js} +9 -9
  132. package/dist/components/{p-a6cc2b43.js → p-62cefeae.js} +2 -2
  133. package/dist/components/{p-31e4f425.js → p-6aafe236.js} +1 -1
  134. package/dist/components/{p-6733b8a5.js → p-6c66c9e2.js} +4 -4
  135. package/dist/components/{p-8027648e.js → p-74a59203.js} +1 -1
  136. package/dist/components/{p-51c73e79.js → p-75108d11.js} +1 -1
  137. package/dist/components/{p-5346524f.js → p-786e1ffd.js} +14 -14
  138. package/dist/components/{p-b0518149.js → p-8383640f.js} +4 -4
  139. package/dist/components/{p-4ce8f00f.js → p-884bcf86.js} +1 -1
  140. package/dist/components/{p-c0e5e16a.js → p-8995a00f.js} +1 -1
  141. package/dist/components/{p-f7e266cf.js → p-8da3c339.js} +3 -3
  142. package/dist/components/{p-41a7c21a.js → p-8e745800.js} +1 -1
  143. package/dist/components/{p-cbbf4483.js → p-936a1f1d.js} +4 -4
  144. package/dist/components/{p-71382f04.js → p-969a2a72.js} +2 -2
  145. package/dist/components/{p-3ecb4008.js → p-99d656af.js} +1 -1
  146. package/dist/components/{p-e22d71ac.js → p-9b8a2c85.js} +6 -6
  147. package/dist/components/{p-84e552ba.js → p-a223f040.js} +5 -5
  148. package/dist/components/{p-adebb779.js → p-a377657d.js} +1 -1
  149. package/dist/components/{p-25b93e8f.js → p-aa122c92.js} +1 -1
  150. package/dist/components/{p-7a32e74a.js → p-aa1f3242.js} +1 -1
  151. package/dist/components/{p-08ddb62e.js → p-abbb9f9e.js} +1 -1
  152. package/dist/components/{p-cb226995.js → p-abd5853f.js} +1 -1
  153. package/dist/components/{p-0964568e.js → p-acbd0c8a.js} +2 -2
  154. package/dist/components/{p-c73e7100.js → p-b4c36344.js} +1 -1
  155. package/dist/components/{p-f8e5e4ea.js → p-b621899f.js} +10 -10
  156. package/dist/components/{p-e9dec064.js → p-c7404104.js} +10 -10
  157. package/dist/components/{p-a1a43640.js → p-cafa4391.js} +2 -2
  158. package/dist/components/{p-c0d2c145.js → p-d2372699.js} +3 -3
  159. package/dist/components/{p-ad9355a2.js → p-e0e18a7d.js} +1 -1
  160. package/dist/components/{p-9890268f.js → p-edac8562.js} +7 -7
  161. package/dist/components/{p-9193a8c2.js → p-ef31fb11.js} +3 -3
  162. package/dist/components/{p-220f4d34.js → p-f18724f1.js} +3 -3
  163. package/dist/components/{p-1f6601f8.js → p-f4644284.js} +1 -1
  164. package/dist/components/{p-56f9a49b.js → p-f7b92530.js} +1 -1
  165. package/dist/components/{p-10b2beff.js → p-f93f6043.js} +3 -3
  166. package/dist/components/{p-9a1eb228.js → p-fbd99ef1.js} +3 -3
  167. package/dist/components/{p-496a907c.js → p-fdd14aef.js} +2 -2
  168. package/dist/components/{p-0a1a4ade.js → p-fe113bb0.js} +3 -3
  169. package/dist/components/tet-accordion.js +1 -1
  170. package/dist/components/tet-address-offers-filters-products.js +1 -1
  171. package/dist/components/tet-address-offers-filters.js +1 -1
  172. package/dist/components/tet-address-offers-view.js +24 -24
  173. package/dist/components/tet-address-offers.js +1 -1
  174. package/dist/components/tet-address-search.js +1 -1
  175. package/dist/components/tet-asset-addresses.js +13 -13
  176. package/dist/components/tet-asset-availability-addresses.js +1 -1
  177. package/dist/components/tet-autocomplete-dropdown.js +5 -5
  178. package/dist/components/tet-autocomplete.js +1 -1
  179. package/dist/components/tet-availability-contact-form.js +1 -1
  180. package/dist/components/tet-b2b-check-out-form.js +1 -1
  181. package/dist/components/tet-b2b-compare-card.js +1 -1
  182. package/dist/components/tet-b2b-configurator-cart.js +1 -1
  183. package/dist/components/tet-b2b-configurator.js +20 -20
  184. package/dist/components/tet-b2b-service-calculator.js +8 -8
  185. package/dist/components/tet-banner-nav.js +3 -3
  186. package/dist/components/tet-bar-graph.js +1 -1
  187. package/dist/components/tet-border-radius.js +1 -1
  188. package/dist/components/tet-business-card.js +1 -1
  189. package/dist/components/tet-business-compare-card.js +3 -3
  190. package/dist/components/tet-business-lines.js +5 -5
  191. package/dist/components/tet-business-navigation.js +1 -1
  192. package/dist/components/tet-business-round-stepper.js +2 -2
  193. package/dist/components/tet-business-summary-card.js +1 -1
  194. package/dist/components/tet-button.js +1 -1
  195. package/dist/components/tet-card-list.js +1 -1
  196. package/dist/components/tet-carousel.js +4 -4
  197. package/dist/components/tet-checkbox.js +1 -1
  198. package/dist/components/tet-cloud-application-form-dialog.js +8 -8
  199. package/dist/components/tet-cloud-configurator.js +11 -11
  200. package/dist/components/tet-colors.js +564 -8
  201. package/dist/components/tet-compare-card-v2.js +10 -10
  202. package/dist/components/tet-compare-card.js +1 -1
  203. package/dist/components/tet-compare-cards-tab.js +16 -16
  204. package/dist/components/tet-compare-cards.js +1 -1
  205. package/dist/components/tet-contact-form.js +9 -9
  206. package/dist/components/tet-contact-info.js +1 -1
  207. package/dist/components/tet-container.js +1 -1
  208. package/dist/components/tet-customer-assets.js +9 -9
  209. package/dist/components/tet-datepicker-header.js +1 -1
  210. package/dist/components/tet-datepicker-month-view.js +1 -1
  211. package/dist/components/tet-datepicker-multi-year-view.js +1 -1
  212. package/dist/components/tet-datepicker-year-view.js +1 -1
  213. package/dist/components/tet-datepicker.js +6 -6
  214. package/dist/components/tet-dialog.js +1 -1
  215. package/dist/components/tet-dropdown.js +1 -1
  216. package/dist/components/tet-dynamic-card.js +4 -4
  217. package/dist/components/tet-expandable-input.js +3 -3
  218. package/dist/components/tet-expansion-panel.js +1 -1
  219. package/dist/components/tet-feedback-form.js +7 -7
  220. package/dist/components/tet-filter.js +4 -4
  221. package/dist/components/tet-floating-block.js +3 -3
  222. package/dist/components/tet-font-weight.js +2 -2
  223. package/dist/components/tet-fonts.js +2 -2
  224. package/dist/components/tet-grid.js +2 -2
  225. package/dist/components/tet-icon.js +1 -1
  226. package/dist/components/tet-inline-message.js +2 -2
  227. package/dist/components/tet-input.js +1 -1
  228. package/dist/components/tet-label.js +3 -3
  229. package/dist/components/tet-layout.js +2 -2
  230. package/dist/components/tet-link-card-list.js +3 -3
  231. package/dist/components/tet-link.js +2 -2
  232. package/dist/components/tet-loader.js +1 -1
  233. package/dist/components/tet-macd-view.js +10 -10
  234. package/dist/components/tet-menu-mobile.js +2 -2
  235. package/dist/components/tet-menu.js +2 -2
  236. package/dist/components/tet-multi-step-dialog.js +5 -5
  237. package/dist/components/tet-navigation-mobile.js +2 -2
  238. package/dist/components/tet-news-card-list.js +4 -4
  239. package/dist/components/tet-notification.js +1 -1
  240. package/dist/components/tet-number-input.js +1 -1
  241. package/dist/components/tet-placeholder.js +1 -1
  242. package/dist/components/tet-price-view.js +1 -1
  243. package/dist/components/tet-radio.js +1 -1
  244. package/dist/components/tet-range-slider.js +1 -1
  245. package/dist/components/tet-referral.js +6 -6
  246. package/dist/components/tet-round-stepper.js +2 -2
  247. package/dist/components/tet-selection-list.js +1 -1
  248. package/dist/components/tet-snicker-card-badge.js +1 -1
  249. package/dist/components/tet-spacing.js +2 -2
  250. package/dist/components/tet-spinner.js +1 -1
  251. package/dist/components/tet-stepper-input.js +1 -1
  252. package/dist/components/tet-stepper-v2.js +1 -1
  253. package/dist/components/tet-stepper-v3.js +1 -1
  254. package/dist/components/tet-stepper.js +1 -1
  255. package/dist/components/tet-switch.js +1 -1
  256. package/dist/components/tet-tab-content.js +1 -1
  257. package/dist/components/tet-tab-header.js +1 -1
  258. package/dist/components/tet-table.js +3 -3
  259. package/dist/components/tet-tag-group.js +1 -1
  260. package/dist/components/tet-tag.js +1 -1
  261. package/dist/components/tet-text-list.js +1 -1
  262. package/dist/components/tet-textarea.js +1 -1
  263. package/dist/components/tet-thank-you-view-v2.js +5 -5
  264. package/dist/components/tet-thank-you-view-v3.js +5 -5
  265. package/dist/components/tet-thank-you-view.js +4 -4
  266. package/dist/components/tet-tooltip.js +1 -1
  267. package/dist/components/tet-tv-gift-block.js +1 -1
  268. package/dist/components/tet-tv-gift-list.js +2 -2
  269. package/dist/esm/{address-1e0810e7.js → address-20e2d850.js} +1 -1
  270. package/dist/esm/{assets-e1349520.js → assets-894007df.js} +1 -1
  271. package/dist/esm/{async-request-4c945e13.js → async-request-ae1056de.js} +1 -1
  272. package/dist/esm/{http-codes-1927ea00.js → http-codes-cf0086d4.js} +1 -1
  273. package/dist/esm/{index-412df137.js → index-e3209c56.js} +1 -1
  274. package/dist/esm/{index-aac31bd2.js → index-e933a7d2.js} +1 -1
  275. package/dist/esm/loader.js +3 -3
  276. package/dist/esm/{phone-1a920c5c.js → phone-62660137.js} +2 -2
  277. package/dist/esm/{product-comparison-dd90c721.js → product-comparison-cb8955f6.js} +1 -1
  278. package/dist/esm/tet-accordion.entry.js +1 -1
  279. package/dist/esm/tet-address-offers-filters-products_2.entry.js +4 -4
  280. package/dist/esm/tet-address-offers-view.entry.js +3 -3
  281. package/dist/esm/tet-address-offers_4.entry.js +7 -7
  282. package/dist/esm/tet-address-search.entry.js +4 -4
  283. package/dist/esm/tet-asset-addresses.entry.js +3 -3
  284. package/dist/esm/tet-autocomplete-dropdown.entry.js +1 -1
  285. package/dist/esm/tet-autocomplete.entry.js +1 -1
  286. package/dist/esm/tet-b2b-check-out-form_5.entry.js +3 -3
  287. package/dist/esm/tet-b2b-configurator.entry.js +4 -4
  288. package/dist/esm/tet-b2b-service-calculator.entry.js +3 -3
  289. package/dist/esm/tet-banner-nav.entry.js +3 -3
  290. package/dist/esm/tet-bar-graph.entry.js +1 -1
  291. package/dist/esm/tet-border-radius.entry.js +1 -1
  292. package/dist/esm/tet-business-card.entry.js +1 -1
  293. package/dist/esm/tet-business-compare-card.entry.js +1 -1
  294. package/dist/esm/tet-business-lines.entry.js +4 -4
  295. package/dist/esm/tet-business-round-stepper.entry.js +1 -1
  296. package/dist/esm/tet-button.entry.js +1 -1
  297. package/dist/esm/tet-card-list.entry.js +1 -1
  298. package/dist/esm/tet-carousel.entry.js +3 -3
  299. package/dist/esm/tet-checkbox.entry.js +1 -1
  300. package/dist/esm/tet-cloud-application-form-dialog.entry.js +3 -3
  301. package/dist/esm/tet-cloud-configurator.entry.js +3 -3
  302. package/dist/esm/tet-colors.entry.js +557 -7
  303. package/dist/esm/tet-compare-card-v2.entry.js +4 -4
  304. package/dist/esm/tet-compare-cards-tab.entry.js +3 -3
  305. package/dist/esm/tet-compare-cards_2.entry.js +3 -3
  306. package/dist/esm/tet-components.js +3 -3
  307. package/dist/esm/tet-contact-form.entry.js +5 -5
  308. package/dist/esm/tet-contact-info.entry.js +1 -1
  309. package/dist/esm/tet-container_2.entry.js +1 -1
  310. package/dist/esm/tet-customer-assets.entry.js +3 -3
  311. package/dist/esm/tet-datepicker-header_4.entry.js +1 -1
  312. package/dist/esm/tet-datepicker.entry.js +1 -1
  313. package/dist/esm/tet-dialog.entry.js +3 -3
  314. package/dist/esm/tet-dropdown.entry.js +1 -1
  315. package/dist/esm/tet-dynamic-card.entry.js +1 -1
  316. package/dist/esm/tet-expandable-input.entry.js +1 -1
  317. package/dist/esm/tet-expansion-panel.entry.js +1 -1
  318. package/dist/esm/tet-feedback-form.entry.js +3 -3
  319. package/dist/esm/tet-filter.entry.js +1 -1
  320. package/dist/esm/tet-floating-block.entry.js +1 -1
  321. package/dist/esm/tet-font-weight.entry.js +2 -2
  322. package/dist/esm/tet-fonts.entry.js +2 -2
  323. package/dist/esm/tet-grid.entry.js +2 -2
  324. package/dist/esm/tet-icon.entry.js +2 -2
  325. package/dist/esm/tet-inline-message.entry.js +1 -1
  326. package/dist/esm/tet-input.entry.js +3 -3
  327. package/dist/esm/tet-label.entry.js +3 -3
  328. package/dist/esm/tet-layout.entry.js +2 -2
  329. package/dist/esm/tet-link-card-list.entry.js +1 -1
  330. package/dist/esm/tet-link.entry.js +2 -2
  331. package/dist/esm/tet-loader.entry.js +1 -1
  332. package/dist/esm/tet-macd-view.entry.js +6 -6
  333. package/dist/esm/tet-menu-mobile.entry.js +1 -1
  334. package/dist/esm/tet-menu.entry.js +1 -1
  335. package/dist/esm/tet-multi-step-dialog.entry.js +3 -3
  336. package/dist/esm/tet-navigation-mobile.entry.js +1 -1
  337. package/dist/esm/tet-news-card-list.entry.js +1 -1
  338. package/dist/esm/tet-notification.entry.js +1 -1
  339. package/dist/esm/tet-number-input.entry.js +1 -1
  340. package/dist/esm/tet-placeholder.entry.js +1 -1
  341. package/dist/esm/tet-price-view.entry.js +1 -1
  342. package/dist/esm/tet-radio.entry.js +1 -1
  343. package/dist/esm/tet-range-slider.entry.js +1 -1
  344. package/dist/esm/tet-referral.entry.js +5 -5
  345. package/dist/esm/tet-round-stepper.entry.js +1 -1
  346. package/dist/esm/tet-snicker-card-badge.entry.js +1 -1
  347. package/dist/esm/tet-spacing.entry.js +2 -2
  348. package/dist/esm/tet-spinner.entry.js +1 -1
  349. package/dist/esm/tet-stepper-input.entry.js +3 -3
  350. package/dist/esm/tet-stepper-v2.entry.js +1 -1
  351. package/dist/esm/tet-stepper-v3.entry.js +1 -1
  352. package/dist/esm/tet-stepper.entry.js +1 -1
  353. package/dist/esm/tet-switch.entry.js +1 -1
  354. package/dist/esm/tet-tab-header.entry.js +1 -1
  355. package/dist/esm/tet-table.entry.js +1 -1
  356. package/dist/esm/tet-tag_2.entry.js +3 -3
  357. package/dist/esm/tet-text-list.entry.js +2 -2
  358. package/dist/esm/tet-textarea.entry.js +1 -1
  359. package/dist/esm/tet-thank-you-view-v2.entry.js +3 -3
  360. package/dist/esm/tet-thank-you-view-v3.entry.js +3 -3
  361. package/dist/esm/tet-thank-you-view.entry.js +1 -1
  362. package/dist/esm/tet-tooltip.entry.js +1 -1
  363. package/dist/esm/tet-tv-gift-block.entry.js +1 -1
  364. package/dist/esm/tet-tv-gift-list.entry.js +1 -1
  365. package/dist/esm/{theme-wrapper-72d0b9da.js → theme-wrapper-cf4d7d54.js} +2 -2
  366. package/dist/esm/{translations-4712c45f.js → translations-e60db8fd.js} +1 -1
  367. package/dist/tet-components/{p-818f2db2.entry.js → p-000418c3.entry.js} +1 -1
  368. package/dist/tet-components/{p-119f22cd.entry.js → p-0261eac8.entry.js} +1 -1
  369. package/dist/tet-components/{p-d2d47ad1.entry.js → p-053be511.entry.js} +1 -1
  370. package/dist/tet-components/{p-4fe43878.entry.js → p-05ed7892.entry.js} +1 -1
  371. package/dist/tet-components/{p-7ae82397.entry.js → p-07045f1e.entry.js} +1 -1
  372. package/dist/tet-components/{p-24701de4.entry.js → p-077306a4.entry.js} +1 -1
  373. package/dist/tet-components/{p-6806775a.entry.js → p-1043908b.entry.js} +1 -1
  374. package/dist/tet-components/{p-5ea5fc34.entry.js → p-15c2c299.entry.js} +1 -1
  375. package/dist/tet-components/{p-eeea7625.entry.js → p-1bb99e8e.entry.js} +1 -1
  376. package/dist/tet-components/{p-4095fe93.entry.js → p-1eae5268.entry.js} +1 -1
  377. package/dist/tet-components/{p-4ff241ca.entry.js → p-21d09609.entry.js} +1 -1
  378. package/dist/tet-components/{p-b3c0834f.entry.js → p-2238681e.entry.js} +1 -1
  379. package/dist/tet-components/{p-a8a0d40c.entry.js → p-252b45ed.entry.js} +1 -1
  380. package/dist/tet-components/{p-f6916bfc.entry.js → p-265701de.entry.js} +1 -1
  381. package/dist/tet-components/{p-9817536c.entry.js → p-277df106.entry.js} +1 -1
  382. package/dist/tet-components/{p-c7c312e5.entry.js → p-294769db.entry.js} +1 -1
  383. package/dist/tet-components/{p-de22587c.entry.js → p-2960e868.entry.js} +1 -1
  384. package/dist/tet-components/{p-d8518d4b.js → p-2dbe670c.js} +1 -1
  385. package/dist/tet-components/p-2ee0cb7c.entry.js +1 -0
  386. package/dist/tet-components/{p-ff3cc3cd.entry.js → p-2f545918.entry.js} +1 -1
  387. package/dist/tet-components/{p-7056a120.entry.js → p-31d0b400.entry.js} +1 -1
  388. package/dist/tet-components/{p-778c46a6.js → p-3ac57578.js} +1 -1
  389. package/dist/tet-components/{p-59bab161.entry.js → p-3af28022.entry.js} +1 -1
  390. package/dist/tet-components/{p-30ac2465.entry.js → p-3ba7b48d.entry.js} +1 -1
  391. package/dist/tet-components/{p-d98ac252.entry.js → p-3dc405c0.entry.js} +1 -1
  392. package/dist/tet-components/{p-1d207053.entry.js → p-3df9b70e.entry.js} +1 -1
  393. package/dist/tet-components/{p-4cfed85a.entry.js → p-3feb980a.entry.js} +1 -1
  394. package/dist/tet-components/{p-f81b3bb0.js → p-4213c1d1.js} +1 -1
  395. package/dist/tet-components/{p-f4dbbeda.entry.js → p-448594bb.entry.js} +1 -1
  396. package/dist/tet-components/{p-79dab470.entry.js → p-48645203.entry.js} +1 -1
  397. package/dist/tet-components/{p-e98108ba.entry.js → p-49da8f23.entry.js} +1 -1
  398. package/dist/tet-components/{p-17946d38.entry.js → p-4bc6bffc.entry.js} +1 -1
  399. package/dist/tet-components/{p-38f87ac9.entry.js → p-4ef1106f.entry.js} +1 -1
  400. package/dist/tet-components/{p-fe86b64d.entry.js → p-50bc2990.entry.js} +1 -1
  401. package/dist/tet-components/{p-720e5059.entry.js → p-525b56a5.entry.js} +1 -1
  402. package/dist/tet-components/p-555cd7c6.entry.js +1 -0
  403. package/dist/tet-components/{p-83f43fdd.js → p-5abb3bea.js} +1 -1
  404. package/dist/tet-components/{p-9eb496bb.entry.js → p-5c970a59.entry.js} +1 -1
  405. package/dist/tet-components/{p-c42f5c8b.entry.js → p-620e7091.entry.js} +1 -1
  406. package/dist/tet-components/{p-b96a3677.entry.js → p-625cfe3f.entry.js} +1 -1
  407. package/dist/tet-components/{p-8bfd498e.entry.js → p-63f6def9.entry.js} +1 -1
  408. package/dist/tet-components/{p-cf4dfbef.entry.js → p-65fec738.entry.js} +1 -1
  409. package/dist/tet-components/p-660bdc27.js +1 -0
  410. package/dist/tet-components/{p-8cbee4bf.entry.js → p-6a3b14bc.entry.js} +1 -1
  411. package/dist/tet-components/{p-85bcbb9d.entry.js → p-6c6eb3a7.entry.js} +1 -1
  412. package/dist/tet-components/{p-88059387.entry.js → p-6efabeaf.entry.js} +1 -1
  413. package/dist/tet-components/{p-0ebbf5ef.js → p-726651bc.js} +1 -1
  414. package/dist/tet-components/{p-4a16b8da.entry.js → p-73f56659.entry.js} +1 -1
  415. package/dist/tet-components/{p-24b41dd1.entry.js → p-77888472.entry.js} +1 -1
  416. package/dist/tet-components/{p-b6947a07.entry.js → p-7c350ecf.entry.js} +1 -1
  417. package/dist/tet-components/{p-745865be.entry.js → p-7dc1a0bc.entry.js} +1 -1
  418. package/dist/tet-components/{p-0121146a.entry.js → p-7dda6727.entry.js} +1 -1
  419. package/dist/tet-components/{p-c883eb5b.entry.js → p-7f9609e8.entry.js} +1 -1
  420. package/dist/tet-components/{p-39686fad.entry.js → p-8733c856.entry.js} +1 -1
  421. package/dist/tet-components/{p-b9cc4bbd.entry.js → p-8a8c08b2.entry.js} +1 -1
  422. package/dist/tet-components/{p-51e40f76.entry.js → p-8eb9b345.entry.js} +1 -1
  423. package/dist/tet-components/{p-b876164c.entry.js → p-8fba59b1.entry.js} +1 -1
  424. package/dist/tet-components/{p-2b141e1c.entry.js → p-94bfa650.entry.js} +1 -1
  425. package/dist/tet-components/{p-2736ebcd.entry.js → p-9bb08831.entry.js} +1 -1
  426. package/dist/tet-components/{p-ed93cb65.entry.js → p-9c2a137d.entry.js} +1 -1
  427. package/dist/tet-components/{p-58a8d086.entry.js → p-9ea4e0a9.entry.js} +1 -1
  428. package/dist/tet-components/{p-e5480442.entry.js → p-9ecda49e.entry.js} +1 -1
  429. package/dist/tet-components/{p-64e2e8c0.entry.js → p-9f713326.entry.js} +1 -1
  430. package/dist/tet-components/{p-a8051a99.js → p-a476fd02.js} +1 -1
  431. package/dist/tet-components/{p-9c112876.entry.js → p-a4b34529.entry.js} +1 -1
  432. package/dist/tet-components/{p-32dd57fe.entry.js → p-aa8f83da.entry.js} +1 -1
  433. package/dist/tet-components/{p-7b601f81.entry.js → p-aeb05b8d.entry.js} +1 -1
  434. package/dist/tet-components/{p-483e0253.entry.js → p-af2f3a93.entry.js} +1 -1
  435. package/dist/tet-components/{p-f68450a4.entry.js → p-b22de340.entry.js} +1 -1
  436. package/dist/tet-components/{p-7544dfd7.js → p-b39df477.js} +1 -1
  437. package/dist/tet-components/{p-9c837569.entry.js → p-b4b90473.entry.js} +1 -1
  438. package/dist/tet-components/{p-3c64b510.entry.js → p-b6017d57.entry.js} +1 -1
  439. package/dist/tet-components/{p-6a549a21.entry.js → p-b6ab11ef.entry.js} +1 -1
  440. package/dist/tet-components/{p-1fd2adaf.js → p-b92dff8a.js} +1 -1
  441. package/dist/tet-components/{p-a573e54b.entry.js → p-bbeba5c8.entry.js} +1 -1
  442. package/dist/tet-components/{p-d4aeb213.entry.js → p-bd37861c.entry.js} +1 -1
  443. package/dist/tet-components/{p-9525d48a.entry.js → p-c196e2c5.entry.js} +1 -1
  444. package/dist/tet-components/{p-a70cec80.entry.js → p-c47a464c.entry.js} +1 -1
  445. package/dist/tet-components/{p-5af71510.entry.js → p-c8d2f1fc.entry.js} +1 -1
  446. package/dist/tet-components/{p-0c6b6730.js → p-c9ddf890.js} +1 -1
  447. package/dist/tet-components/{p-c713bba5.entry.js → p-d3d69247.entry.js} +1 -1
  448. package/dist/tet-components/{p-4d01e5ad.entry.js → p-d77d63ea.entry.js} +1 -1
  449. package/dist/tet-components/{p-6d2b0362.entry.js → p-db2df074.entry.js} +1 -1
  450. package/dist/tet-components/{p-c7a795c0.entry.js → p-dd84344c.entry.js} +1 -1
  451. package/dist/tet-components/{p-cdce3674.entry.js → p-df9d96c2.entry.js} +1 -1
  452. package/dist/tet-components/{p-4ae304c2.entry.js → p-e2783f8b.entry.js} +1 -1
  453. package/dist/tet-components/{p-e05e8cad.entry.js → p-e673d076.entry.js} +1 -1
  454. package/dist/tet-components/{p-baaaa580.entry.js → p-e97d79a8.entry.js} +1 -1
  455. package/dist/tet-components/p-ec24b258.entry.js +1 -0
  456. package/dist/tet-components/{p-e2305335.entry.js → p-f019a6df.entry.js} +1 -1
  457. package/dist/tet-components/{p-5c08fbf9.entry.js → p-f139ef21.entry.js} +1 -1
  458. package/dist/tet-components/{p-0436c839.entry.js → p-f8bda78a.entry.js} +1 -1
  459. package/dist/tet-components/{p-1dd69c47.entry.js → p-f8e12612.entry.js} +1 -1
  460. package/dist/tet-components/{p-6a9acd27.entry.js → p-fa5c1f63.entry.js} +1 -1
  461. package/dist/tet-components/{p-b52e35c8.entry.js → p-faac208f.entry.js} +1 -1
  462. package/dist/tet-components/{p-0f2d1a9c.entry.js → p-fdd44094.entry.js} +1 -1
  463. package/dist/tet-components/tet-components.css +2 -2
  464. package/dist/tet-components/tet-components.esm.js +1 -1
  465. package/dist/types/components.d.ts +8 -0
  466. package/dist/types/docs/styling/colors/tet-colors.d.ts +55 -3
  467. package/package.json +1 -1
  468. package/dist/tet-components/p-4f534873.entry.js +0 -1
  469. package/dist/tet-components/p-5d3bb075.entry.js +0 -1
  470. package/dist/tet-components/p-9c13018b.entry.js +0 -1
  471. package/dist/tet-components/p-f81d95ae.js +0 -1
@@ -1,9 +1,18 @@
1
1
  import { h, Host } from "@stencil/core";
2
2
  export class TetColors {
3
3
  constructor() {
4
+ this.tokenSections = [];
5
+ this.copiedToken = null;
4
6
  this.showVariables = false;
5
7
  this.darkTheme = false;
8
+ this.isTokensExample = false;
6
9
  }
10
+ copyFeedbackTimeout;
11
+ static cachedTokens = null;
12
+ static cachedTokenSections = new Map();
13
+ static cachedTokenDeclarationValues = null;
14
+ static resolvedTokenColorCache = new Map();
15
+ withSubsections = new Set(['Colors', 'Menu', 'Gradient']);
7
16
  colorSections = {
8
17
  blue: {
9
18
  title: 'Blue',
@@ -25,14 +34,549 @@ export class TetColors {
25
34
  title: 'Violet',
26
35
  colors: ['violet80', 'violet70', 'violet60', 'violet50', 'violet40', 'violet30', 'violet20', 'violet10', 'violet00'],
27
36
  },
37
+ brown: {
38
+ title: 'Brown',
39
+ colors: ['brown80', 'brown70', 'brown60', 'brown50', 'brown40', 'brown30', 'brown20', 'brown10', 'brown00'],
40
+ },
28
41
  grey: {
29
42
  title: 'Grey',
30
43
  colors: ['grey110', 'grey100', 'grey90', 'grey80', 'grey70', 'grey60', 'grey50', 'grey40', 'grey30', 'grey20', 'grey10', 'grey00'],
31
44
  },
32
45
  foundation: {
33
46
  title: 'Foundation',
34
- colors: ['blue', 'violet', 'green', 'yellow', 'red', 'black', 'white'],
47
+ colors: ['blue', 'green', 'yellow', 'red', 'violet', 'black', 'white'],
48
+ },
49
+ };
50
+ tokenSectionConfig = [
51
+ {
52
+ title: 'Colors',
53
+ prefixes: [
54
+ '--tc-foundation-',
55
+ '--tc-grey-',
56
+ '--tc-blue-',
57
+ '--tc-green-',
58
+ '--tc-yellow-',
59
+ '--tc-red-',
60
+ '--tc-violet-',
61
+ '--tc-brown-',
62
+ ],
63
+ },
64
+ {
65
+ title: 'Text',
66
+ prefixes: ['--tc-text-'],
67
+ },
68
+ {
69
+ title: 'Background',
70
+ prefixes: ['--tc-background-'],
71
+ },
72
+ {
73
+ title: 'Layer',
74
+ prefixes: ['--tc-layer-'],
75
+ },
76
+ {
77
+ title: 'Icon',
78
+ prefixes: ['--tc-icon-'],
79
+ },
80
+ {
81
+ title: 'Border',
82
+ prefixes: ['--tc-border-'],
83
+ },
84
+ {
85
+ title: 'Alert',
86
+ prefixes: ['--tc-alert-'],
87
+ },
88
+ {
89
+ title: 'Modal',
90
+ prefixes: ['--tc-modal-'],
91
+ },
92
+ {
93
+ title: 'Gradient',
94
+ prefixes: [
95
+ '--tc-gradient-',
96
+ '--tc-gradient-layer-',
97
+ '--tc-gradient-green-',
98
+ '--tc-gradient-mint-',
99
+ '--tc-gradient-red-',
100
+ '--tc-gradient-yellow-',
101
+ '--tc-gradient-blue-',
102
+ '--tc-gradient-purple-',
103
+ '--tc-gradient-grey-',
104
+ ],
105
+ },
106
+ {
107
+ title: 'Button',
108
+ prefixes: ['--tc-button-'],
35
109
  },
110
+ {
111
+ title: 'Menu',
112
+ prefixes: [
113
+ '--tc-menu-item-',
114
+ '--tc-menu-item-yellow-',
115
+ '--tc-menu-item-blue-',
116
+ '--tc-menu-item-red-',
117
+ '--tc-menu-item-green-',
118
+ '--tc-menu-item-violet-',
119
+ ],
120
+ },
121
+ {
122
+ title: 'Theme Switcher',
123
+ prefixes: ['--tc-theme-switcher-'],
124
+ },
125
+ {
126
+ title: 'Checkbox',
127
+ prefixes: ['--tc-checkbox-'],
128
+ },
129
+ {
130
+ title: 'Radio Button',
131
+ prefixes: ['--tc-radio-button-'],
132
+ },
133
+ {
134
+ title: 'Toggle',
135
+ prefixes: ['--tc-toggle-button-'],
136
+ },
137
+ {
138
+ title: 'Text Input',
139
+ prefixes: ['--tc-text-input-'],
140
+ },
141
+ {
142
+ title: 'Tooltip',
143
+ prefixes: ['--tc-tooltip-'],
144
+ },
145
+ {
146
+ title: 'Search',
147
+ prefixes: ['--tc-search-'],
148
+ },
149
+ {
150
+ title: 'Spinner',
151
+ prefixes: ['--tc-spinner', '--tc-spinner-'],
152
+ },
153
+ {
154
+ title: 'Elevation / Shadows',
155
+ prefixes: ['--tc-elevation-'],
156
+ },
157
+ ];
158
+ componentDidLoad() {
159
+ if (globalThis.window !== undefined && this.isTokensExample) {
160
+ this.refreshTokenSections();
161
+ requestAnimationFrame(() => {
162
+ if (!this.tokenSections.length) {
163
+ this.invalidateTokenCaches();
164
+ this.refreshTokenSections();
165
+ }
166
+ });
167
+ }
168
+ }
169
+ handleTokenSectionStateChange() {
170
+ if (this.isTokensExample) {
171
+ this.refreshTokenSections();
172
+ }
173
+ }
174
+ refreshTokenSections = () => {
175
+ const tokenSections = this.getTokenSectionsForTheme(this.darkTheme);
176
+ this.cacheResolvedTokenColors(tokenSections);
177
+ this.tokenSections = tokenSections;
178
+ };
179
+ invalidateTokenCaches = () => {
180
+ TetColors.cachedTokens = null;
181
+ TetColors.cachedTokenSections.clear();
182
+ TetColors.cachedTokenDeclarationValues = null;
183
+ TetColors.resolvedTokenColorCache.clear();
184
+ };
185
+ disconnectedCallback() {
186
+ if (this.copyFeedbackTimeout) {
187
+ clearTimeout(this.copyFeedbackTimeout);
188
+ this.copyFeedbackTimeout = undefined;
189
+ }
190
+ }
191
+ isColorToken = (token) => {
192
+ return token.startsWith('--tc-');
193
+ };
194
+ isTokenForTheme = (token, isDarkTheme) => {
195
+ if (!this.isColorToken(token)) {
196
+ return false;
197
+ }
198
+ const isDarkToken = token.endsWith('-dark');
199
+ return isDarkTheme ? isDarkToken : !isDarkToken;
200
+ };
201
+ getTokenSectionTitle = (token) => {
202
+ const section = this.tokenSectionConfig.find(config => config.prefixes.some(prefix => token.startsWith(prefix)));
203
+ if (section) {
204
+ return section.title;
205
+ }
206
+ return 'Other';
207
+ };
208
+ getPrefixTitle = (prefix) => {
209
+ const prefixName = prefix
210
+ .replace(/^--tc-/, '')
211
+ .replace(/-$/, '');
212
+ return prefixName
213
+ .split('-')
214
+ .map(part => part.charAt(0).toUpperCase() + part.slice(1))
215
+ .join(' ');
216
+ };
217
+ hasMoreSpecificMatchingPrefix = (token, prefix, prefixes) => {
218
+ return prefixes.some(candidatePrefix => candidatePrefix !== prefix
219
+ && candidatePrefix.length > prefix.length
220
+ && candidatePrefix.startsWith(prefix)
221
+ && token.startsWith(candidatePrefix));
222
+ };
223
+ getTokensForPrefix = (tokens, prefix, prefixes) => {
224
+ return tokens.filter(token => token.startsWith(prefix)
225
+ && !this.hasMoreSpecificMatchingPrefix(token, prefix, prefixes));
226
+ };
227
+ getColorTokenSubsections = (tokens, title) => {
228
+ const colorSectionConfig = this.tokenSectionConfig.find(section => section.title === title);
229
+ if (!colorSectionConfig) {
230
+ return [];
231
+ }
232
+ return colorSectionConfig.prefixes
233
+ .map(prefix => ({
234
+ title: this.getPrefixTitle(prefix),
235
+ tokens: this.getTokensForPrefix(tokens, prefix, colorSectionConfig.prefixes),
236
+ }))
237
+ .filter(section => section.tokens.length);
238
+ };
239
+ getTokenDeclarationValuesFromStyleSheets = () => {
240
+ if (TetColors.cachedTokenDeclarationValues) {
241
+ return TetColors.cachedTokenDeclarationValues;
242
+ }
243
+ const tokenDeclarationValues = new Map();
244
+ if (typeof document === 'undefined') {
245
+ return tokenDeclarationValues;
246
+ }
247
+ Array.from(document.styleSheets).forEach(styleSheet => {
248
+ let rules;
249
+ try {
250
+ rules = styleSheet.cssRules;
251
+ }
252
+ catch {
253
+ return;
254
+ }
255
+ Array.from(rules).forEach(rule => {
256
+ if (!('selectorText' in rule) || !('style' in rule)) {
257
+ return;
258
+ }
259
+ const styleRule = rule;
260
+ if (!styleRule.selectorText?.includes(':root')) {
261
+ return;
262
+ }
263
+ for (let index = 0; index < styleRule.style.length; index++) {
264
+ const token = styleRule.style.item(index);
265
+ if (this.isColorToken(token)) {
266
+ const tokenValue = styleRule.style.getPropertyValue(token).trim();
267
+ if (tokenValue) {
268
+ tokenDeclarationValues.set(token, tokenValue);
269
+ }
270
+ }
271
+ }
272
+ });
273
+ });
274
+ TetColors.cachedTokenDeclarationValues = tokenDeclarationValues;
275
+ return tokenDeclarationValues;
276
+ };
277
+ collectTokensFromStyleSheets = () => {
278
+ const tokens = new Set();
279
+ const tokenDeclarationValues = this.getTokenDeclarationValuesFromStyleSheets();
280
+ tokenDeclarationValues.forEach((_value, token) => tokens.add(token));
281
+ return tokens;
282
+ };
283
+ getTokenSectionsForTheme = (isDarkTheme) => {
284
+ const themeKey = isDarkTheme ? 'dark' : 'light';
285
+ const cachedTokenSections = TetColors.cachedTokenSections.get(themeKey);
286
+ if (cachedTokenSections) {
287
+ return cachedTokenSections;
288
+ }
289
+ const tokens = this.getAllColorTokens().filter(token => this.isTokenForTheme(token, isDarkTheme));
290
+ const groupedTokens = new Map();
291
+ this.tokenSectionConfig.forEach(section => groupedTokens.set(section.title, []));
292
+ groupedTokens.set('Other', []);
293
+ tokens.forEach(token => {
294
+ const sectionTitle = this.getTokenSectionTitle(token);
295
+ const sectionTokens = groupedTokens.get(sectionTitle);
296
+ if (sectionTokens) {
297
+ sectionTokens.push(token);
298
+ }
299
+ });
300
+ const orderedSections = this.tokenSectionConfig
301
+ .map(section => ({
302
+ title: section.title,
303
+ tokens: groupedTokens.get(section.title) || [],
304
+ }))
305
+ .filter(section => section.tokens.length);
306
+ const otherTokens = groupedTokens.get('Other') || [];
307
+ if (otherTokens.length) {
308
+ orderedSections.push({
309
+ title: 'Other',
310
+ tokens: otherTokens,
311
+ });
312
+ }
313
+ TetColors.cachedTokenSections.set(themeKey, orderedSections);
314
+ return orderedSections;
315
+ };
316
+ getAllColorTokens = () => {
317
+ if (TetColors.cachedTokens) {
318
+ return TetColors.cachedTokens;
319
+ }
320
+ if (globalThis.window === undefined || typeof document === 'undefined') {
321
+ return [];
322
+ }
323
+ const styleSheetTokens = this.collectTokensFromStyleSheets();
324
+ if (styleSheetTokens.size) {
325
+ TetColors.cachedTokens = Array.from(styleSheetTokens);
326
+ return TetColors.cachedTokens;
327
+ }
328
+ const style = getComputedStyle(document.documentElement);
329
+ const tokens = new Set();
330
+ for (let index = 0; index < style.length; index++) {
331
+ const token = style.item(index);
332
+ if (token && this.isColorToken(token)) {
333
+ tokens.add(token);
334
+ }
335
+ }
336
+ if (tokens.size) {
337
+ TetColors.cachedTokens = Array.from(tokens);
338
+ return TetColors.cachedTokens;
339
+ }
340
+ return [];
341
+ };
342
+ getTokenReference = (token) => {
343
+ return `var(${token})`;
344
+ };
345
+ isVarFunction = (value) => {
346
+ return value.startsWith('var(') && value.endsWith(')');
347
+ };
348
+ consumeEscapedCharacter = (state) => {
349
+ if (!state.isEscaped) {
350
+ return false;
351
+ }
352
+ state.isEscaped = false;
353
+ return true;
354
+ };
355
+ startEscapeSequence = (char, state) => {
356
+ if (char !== '\\') {
357
+ return false;
358
+ }
359
+ state.isEscaped = true;
360
+ return true;
361
+ };
362
+ toggleQuoteStateIfNeeded = (char, state) => {
363
+ if (!state.inDoubleQuote && char === '\'') {
364
+ state.inSingleQuote = !state.inSingleQuote;
365
+ return true;
366
+ }
367
+ if (!state.inSingleQuote && char === '"') {
368
+ state.inDoubleQuote = !state.inDoubleQuote;
369
+ return true;
370
+ }
371
+ return false;
372
+ };
373
+ isInsideQuotes = (state) => {
374
+ return state.inSingleQuote || state.inDoubleQuote;
375
+ };
376
+ updateDepthIfNeeded = (char, state) => {
377
+ if (char === '(') {
378
+ state.depth++;
379
+ return true;
380
+ }
381
+ if (char === ')') {
382
+ state.depth = Math.max(0, state.depth - 1);
383
+ return true;
384
+ }
385
+ return false;
386
+ };
387
+ isTopLevelComma = (char, depth) => {
388
+ return char === ',' && depth === 0;
389
+ };
390
+ findTopLevelCommaIndex = (value) => {
391
+ const state = {
392
+ depth: 0,
393
+ inSingleQuote: false,
394
+ inDoubleQuote: false,
395
+ isEscaped: false
396
+ };
397
+ for (let index = 0; index < value.length; index++) {
398
+ const char = value[index];
399
+ if (this.consumeEscapedCharacter(state)) {
400
+ continue;
401
+ }
402
+ if (this.startEscapeSequence(char, state)) {
403
+ continue;
404
+ }
405
+ if (this.toggleQuoteStateIfNeeded(char, state)) {
406
+ continue;
407
+ }
408
+ if (this.isInsideQuotes(state)) {
409
+ continue;
410
+ }
411
+ if (this.updateDepthIfNeeded(char, state)) {
412
+ continue;
413
+ }
414
+ if (this.isTopLevelComma(char, state.depth)) {
415
+ return index;
416
+ }
417
+ }
418
+ return -1;
419
+ };
420
+ splitVarFunctionArguments = (innerValue) => {
421
+ const splitIndex = this.findTopLevelCommaIndex(innerValue);
422
+ if (splitIndex === -1) {
423
+ return {
424
+ tokenPart: innerValue,
425
+ fallbackPart: ''
426
+ };
427
+ }
428
+ return {
429
+ tokenPart: innerValue.slice(0, splitIndex),
430
+ fallbackPart: innerValue.slice(splitIndex + 1).trim()
431
+ };
432
+ };
433
+ isValidCssCustomPropertyToken = (token) => {
434
+ return /^--[\w-]+$/.test(token);
435
+ };
436
+ parseVarFunction = (value) => {
437
+ const trimmedValue = value.trim();
438
+ if (!this.isVarFunction(trimmedValue)) {
439
+ return null;
440
+ }
441
+ const innerValue = trimmedValue.slice(4, -1).trim();
442
+ if (!innerValue) {
443
+ return null;
444
+ }
445
+ const { tokenPart, fallbackPart } = this.splitVarFunctionArguments(innerValue);
446
+ const token = tokenPart.trim();
447
+ if (!this.isValidCssCustomPropertyToken(token)) {
448
+ return null;
449
+ }
450
+ return {
451
+ token,
452
+ fallbackValue: fallbackPart || undefined
453
+ };
454
+ };
455
+ resolveTokenValue = (value, rootStyles, tokenDeclarationValues, visitedTokens = new Set()) => {
456
+ const variableMatch = this.parseVarFunction(value);
457
+ if (!variableMatch) {
458
+ return value;
459
+ }
460
+ const referencedToken = variableMatch.token;
461
+ const fallbackValue = variableMatch.fallbackValue;
462
+ if (visitedTokens.has(referencedToken)) {
463
+ return value;
464
+ }
465
+ visitedTokens.add(referencedToken);
466
+ const referencedValueFromDeclarations = tokenDeclarationValues?.get(referencedToken)?.trim();
467
+ if (referencedValueFromDeclarations) {
468
+ return this.resolveTokenValue(referencedValueFromDeclarations, rootStyles, tokenDeclarationValues, visitedTokens);
469
+ }
470
+ const referencedValue = rootStyles.getPropertyValue(referencedToken).trim();
471
+ if (referencedValue) {
472
+ return this.resolveTokenValue(referencedValue, rootStyles, tokenDeclarationValues, visitedTokens);
473
+ }
474
+ if (fallbackValue) {
475
+ return this.resolveTokenValue(fallbackValue, rootStyles, tokenDeclarationValues, visitedTokens);
476
+ }
477
+ return value;
478
+ };
479
+ getResolvedTokenColorValue = (token, rootStyles) => {
480
+ const cachedValue = TetColors.resolvedTokenColorCache.get(token);
481
+ if (cachedValue) {
482
+ return cachedValue;
483
+ }
484
+ if (typeof document === 'undefined') {
485
+ return '';
486
+ }
487
+ const computedRootStyles = rootStyles ?? getComputedStyle(document.documentElement);
488
+ const tokenDeclarationValues = this.getTokenDeclarationValuesFromStyleSheets();
489
+ const tokenValueFromDeclarations = tokenDeclarationValues.get(token)?.trim();
490
+ const rootTokenValue = tokenValueFromDeclarations || computedRootStyles.getPropertyValue(token).trim();
491
+ if (!rootTokenValue) {
492
+ return '';
493
+ }
494
+ const resolvedTokenValue = this.resolveTokenValue(rootTokenValue, computedRootStyles, tokenDeclarationValues);
495
+ const normalizedValue = resolvedTokenValue.replaceAll(/\s+/g, ' ');
496
+ TetColors.resolvedTokenColorCache.set(token, normalizedValue);
497
+ return normalizedValue;
498
+ };
499
+ formatTokenDisplayValue = (value) => {
500
+ const rgbMatch = /^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(value);
501
+ if (rgbMatch) {
502
+ return `rgba(${rgbMatch[1]}, ${rgbMatch[2]}, ${rgbMatch[3]}, 1)`;
503
+ }
504
+ return value;
505
+ };
506
+ cacheResolvedTokenColors = (tokenSections) => {
507
+ if (typeof document === 'undefined') {
508
+ return;
509
+ }
510
+ const rootStyles = getComputedStyle(document.documentElement);
511
+ const tokensToResolve = new Set();
512
+ tokenSections.forEach(section => {
513
+ section.tokens.forEach(token => {
514
+ if (!TetColors.resolvedTokenColorCache.has(token)) {
515
+ tokensToResolve.add(token);
516
+ }
517
+ });
518
+ });
519
+ tokensToResolve.forEach(token => this.getResolvedTokenColorValue(token, rootStyles));
520
+ };
521
+ isShadowToken = (token) => token.includes('elevation') || token.includes('shadow');
522
+ getTokenSwatchStyle = (token, tokenReference) => {
523
+ if (!this.isShadowToken(token)) {
524
+ return { background: tokenReference };
525
+ }
526
+ const elevationBackground = token.endsWith('-dark')
527
+ ? 'var(--tc-layer-inverse-primary)'
528
+ : 'var(--tc-layer-primary)';
529
+ return {
530
+ background: elevationBackground,
531
+ boxShadow: tokenReference,
532
+ };
533
+ };
534
+ copyToClipboard = async (value) => {
535
+ const clipboard = globalThis.navigator?.clipboard;
536
+ if (!clipboard?.writeText) {
537
+ return false;
538
+ }
539
+ try {
540
+ await clipboard.writeText(value);
541
+ return true;
542
+ }
543
+ catch {
544
+ return false;
545
+ }
546
+ };
547
+ showCopyFeedback = (token) => {
548
+ this.copiedToken = token;
549
+ if (this.copyFeedbackTimeout) {
550
+ clearTimeout(this.copyFeedbackTimeout);
551
+ }
552
+ this.copyFeedbackTimeout = setTimeout(() => {
553
+ this.copiedToken = null;
554
+ this.copyFeedbackTimeout = undefined;
555
+ }, 1200);
556
+ };
557
+ handleTokenCopy = async (token, tokenReference) => {
558
+ const copied = await this.copyToClipboard(tokenReference);
559
+ if (copied) {
560
+ this.showCopyFeedback(token);
561
+ }
562
+ };
563
+ renderTokenColorItem = (token) => {
564
+ const tokenReference = this.getTokenReference(token);
565
+ const swatchStyle = this.getTokenSwatchStyle(token, tokenReference);
566
+ const isCopied = this.copiedToken === token;
567
+ const resolvedTokenColor = this.formatTokenDisplayValue(this.getResolvedTokenColorValue(token));
568
+ return (h("button", { type: "button", class: {
569
+ 'token-color': true,
570
+ 'token-color--button': true,
571
+ 'token-color--copied': isCopied,
572
+ }, title: "Copy variable reference", onClick: () => this.handleTokenCopy(token, tokenReference) }, h("div", { class: "token-color__swatch", style: swatchStyle }), h("div", { class: "token-color__meta" }, h("div", { class: "token-color__name" }, token), this.showVariables && (h("div", { class: "token-color__value" }, tokenReference)), resolvedTokenColor && (h("div", { class: "token-color__theme-value" }, resolvedTokenColor))), h("span", { class: "token-color__copied-overlay", "aria-hidden": "true" }, "coppied")));
573
+ };
574
+ renderTokenSection = (section) => {
575
+ if (this.withSubsections.has(section.title)) {
576
+ const colorSubsections = this.getColorTokenSubsections(section.tokens, section.title);
577
+ return (h("div", { class: "token-section" }, h("div", { class: "token-section__title" }, section.title), h("div", { class: "token-section__subsections" }, colorSubsections.map(subsection => (h("div", { class: "token-subsection" }, h("div", { class: "token-subsection__title" }, subsection.title), h("div", { class: "token-section__grid" }, subsection.tokens.map(token => this.renderTokenColorItem(token)))))))));
578
+ }
579
+ return (h("div", { class: "token-section" }, h("div", { class: "token-section__title" }, section.title), h("div", { class: "token-section__grid" }, section.tokens.map(token => this.renderTokenColorItem(token)))));
36
580
  };
37
581
  // Render a single color item
38
582
  renderColorItem = (colorName) => {
@@ -46,15 +590,17 @@ export class TetColors {
46
590
  return (h("div", { class: `section section-${sectionKey}` }, h("div", { class: "section__title" }, section.title), section.colors.map((color) => this.renderColorItem(color))));
47
591
  };
48
592
  render() {
49
- return (h(Host, { key: '6a4dce8b04da6f875d7df6fb8fdce62f0fb3f779' }, h("div", { key: '8e0a1d536e53b0ef4689be61b4ca1bf0336b2098', class: {
593
+ return (h(Host, { key: 'd539a0215ced319249b1a1cc388947f9f7fe51ef' }, h("div", { key: 'f80d11e8307e4d10b4c14d57fa12fd49d4c8e9a4', class: {
50
594
  'dark': this.darkTheme
51
- } }, h("div", { key: 'fdb4c05aa1b72ebd393f594cf2cbad90f0a3fe3c', class: {
595
+ } }, !this.isTokensExample && (h("div", { key: 'f1ea8318f7158d3ef99ae5856c1abc506d283aeb', class: {
52
596
  'container': true,
53
597
  'variable-container': true,
54
- } }, h("div", { key: '75ca21283ecc74a5230ddebe614141b433423bd3', class: "container-title main" }, "Kr\u0101sas klase"), h("div", { key: '6b8f36b9646c1a51d873573c674b5eb6ceaa0d46', class: "container-section" }, h("div", { key: '4d4b5be1a38a3bfe20fed3874c91bf999d64eaaa', class: "variable-wrapper" }, h("span", { key: 'e357b976373f24470658702ec41e7187ee6e08ef', class: "variable-name" }, h("span", { key: '0ac0df6f04800eb1a3eec7485fbf4f382b4bf516', class: "variable-part" }, "tet"), h("span", { key: 'de0ac8a8e5fb44e579b1084cd4a6c3ec1e664d3d', class: "variable-part variable variable-attribute" }, "-color"), h("span", { key: '6efe25d0250588f547ba863711c1ec6209176646', class: "variable-part variable variable-color" }, "__red30"), h("span", { key: 'e5eaff8c1a65b9f466e69a90670d9439ca8d05cb', class: "variable-part variable variable-type" }, "--background"), h("span", { key: '3a356c3defd94c75869a90f244c57691d38c512b', class: "variable-part variable variable-state" }, "-focus"))))), h("div", { key: 'fd7148051a59885d63a68f184d16276626d5a3bd', class: "container" }, h("div", { key: 'e6ac1ce9ea0cb92c80e9a6f2d5166b2a961d5ecf', class: "container-title" }, "Piem\u0113ri"), h("div", { key: '1c629eadcbbe275dd80e66832095b76e75ddf893', class: "container-section container-example" }, h("span", { key: '2880595c97500b1f62d5b071b2017e122740361f', class: "subsection-title" }, "Teksta kr\u0101sas mai\u0146a"), h("code", { key: '7c772d1bb3948c6adfadfb13141ca70073688fd4', class: "variable-example" }, "<div class=\"tet-color__red30\">Teksts</div>"), h("span", { key: 'cfa72240a3a7f28a4aa5b21fcb138b17a522ec52' }, "Teksta kr\u0101sas mai\u0146a", ' ', h("span", { key: 'cf530855955ca8c6d8d8086486a8fc4a20f8f66b', class: "example-element tet-color__red30" }, "elementam"), "."), h("code", { key: '33c643b901b641273fab72a20fa7bf25718276b5', class: "variable-example" }, "<div class=\"tet-color__red30--hover\">Teksts</div>"), h("span", { key: 'd2683f2402ce077ec42c53b9c1e9c99351acc340' }, "Teksta kr\u0101sas mai\u0146a", ' ', h("span", { key: '80b2a20544c53b3e3181d391fa33a14d25b6c8fb', class: "example-element example-element--hover tet-color__red30--hover" }, "elementam"), ' ', "hover st\u0101vokl\u012B."), h("code", { key: 'bfbbd78a221e13dc8a6bed0e6ba9c977db72d6ac', class: "variable-example" }, "<div class=\"tet-color__red30--focus\">Teksts</div>"), h("span", { key: 'db78b2a47d8c0a744cb3191e2b60ae904d1e4152' }, "Teksta kr\u0101sas mai\u0146a", ' ', h("span", { key: 'd7bd3232a1eedafe967b1894573ff3a4bf36941f', tabindex: "0", class: "example-element tet-color__red30--focus" }, "elementam"), ' ', "focus st\u0101vokl\u012B."), h("span", { key: 'e603c3a4f1fd3b3e3b6e2fb53ba7dd051f27ef7a', class: "subsection-title" }, "Fona kr\u0101sas mai\u0146a"), h("code", { key: '2c5bcb89b364adbf86e6a2c04a857e964d4fbb8c', class: "variable-example" }, "<div class=\"tet-color__red30--background\">Teksts</div>"), h("span", { key: '1d0d919780c26109e013a20c4137942e5b81ee55' }, "Fona kr\u0101sas mai\u0146a", ' ', h("span", { key: '7de3229ebdf411fbc2f2f5afc6dfa612edcc5512', class: "example-element tet-color__red30--background" }, "elementam"), "."), h("code", { key: '0b07aaf0849d9a70705d470cefc977a1db95fa93', class: "variable-example" }, "<div class=\"tet-color__red30--background-hover\">Teksts</div>"), h("span", { key: '2fc977ddbcc068ca3d327ee208e86ff7f16e4974' }, "Fona kr\u0101sas mai\u0146a elementam", ' ', h("span", { key: '12999580a2b7ce3deb5ddbf3cd0209eb20a752f7', class: "example-element example-element--hover tet-color__red30--background-hover" }, "elementam"), ' ', "hover st\u0101vokl\u012B."), h("code", { key: '7af2442f8c7e9f4551afcaa42e9251b022fd14a4', class: "variable-example" }, "<div class=\"tet-color__red30--background-focus\">Teksts</div>"), h("span", { key: '2483e0ebb0734f4ab0f8b5bc100ddf1892f51a6c' }, "Fona kr\u0101sas mai\u0146a elementam", ' ', h("span", { key: 'cad73a74717810c9f628c00149392a33736e9307', tabindex: "0", class: "example-element tet-color__red30--background-focus" }, "elementam"), ' ', "focus st\u0101vokl\u012B."), h("span", { key: '08d09e4802ffed994754614781d6a0001469f688', class: "subsection-title" }, "Apmales kr\u0101sas mai\u0146a"), h("code", { key: '3d61ac8895d40b8beecd465e330cb34152737812', class: "variable-example" }, "<div class=\"tet-color__red30--border\">Teksts</div>"), h("span", { key: 'f03cc1d75c0c234ec2b56745540c868a1f6399a8' }, "Apmales kr\u0101sas mai\u0146a", ' ', h("span", { key: '1adacb68c475d656993f300ca5c76e282ab4dffa', class: "example-element border-example tet-color__red30--border" }, "elementam"), "."), h("code", { key: '41ca1e6966b1dd62b2219e7b1f9d264e81468a6b', class: "variable-example" }, "<div class=\"tet-color__red30--border-hover\">Teksts</div>"), h("span", { key: '4bafa963c2773c136882b6f5bbc7341821bad7c0' }, "Apmales kr\u0101sas mai\u0146a elementam", ' ', h("span", { key: '591962355db313dce607925db0a25e2e2defc220', class: "example-element example-element--hover border-example tet-color__red30--border-hover" }, "elementam"), ' ', "hover st\u0101vokl\u012B."), h("code", { key: 'd163a9434ad588d2c194f832523cee481b338196', class: "variable-example" }, "<div class=\"tet-color__red30--border-focus\">Teksts</div>"), h("span", { key: '526e9375f7248e926a7741abc1948095be129f65' }, "Apmales kr\u0101sas mai\u0146a elementam", ' ', h("span", { key: 'c0f0dad67b87ae13aec69405003180259b6afd31', tabindex: "0", class: "example-element border-example tet-color__red30--border-focus" }, "elementam"), ' ', "focus st\u0101vokl\u012B."), h("span", { key: '350aac3536cea323f7d9d4bbed9a5944bad8259e', class: "subsection-title" }, "Nemain\u012Bga gai\u0161\u0101s t\u0113mas kr\u0101sa"), h("code", { key: '5566a3b1bf0574a48ac77978b28244c1e21b85d3', class: "variable-example" }, "<div class=\"tet-color__red30 tet-color--static\">Teksts</div>"), h("span", { key: '9282e805a35b3f7c04024624f53c516bb2236ea2' }, "Nemain\u012Bga teksta kr\u0101sa", ' ', h("span", { key: 'ab89e4a0d11c60522732f8f92b082cd096fdb633', class: "example-element tet-color__red30 tet-color--static" }, "elementam"), "."))), h("div", { key: '38f15f72bf53cfeda29147142addee4367dacd66', class: {
598
+ } }, h("div", { key: 'bc9b04c7cd38ee8c94d4f55a3987041b56feb961', class: "container-title main" }, "Kr\u0101sas klase"), h("div", { key: '6010441161d151828798581401963eb888be814f', class: "container-section" }, h("div", { key: 'b2f3e3c4a7fb4247b879e6202305b63f12aef557', class: "variable-wrapper" }, h("span", { key: '3d0ef51c0703e059cc26cba947ff766b646ceeed', class: "variable-name" }, h("span", { key: '1f8c4bfc4f8a1b9ae894a6d2efd739e160c77e68', class: "variable-part" }, "tet"), h("span", { key: '14c6b9b61b1a3e07d1253df735278a96fcc4bb84', class: "variable-part variable variable-attribute" }, "-color"), h("span", { key: 'bfca14285663f716ec6b0264df306fcb5e7b4f59', class: "variable-part variable variable-color" }, "__red30"), h("span", { key: '412dd55936ed4e6b5c6c8d906b1acca69219c6c7', class: "variable-part variable variable-type" }, "--background"), h("span", { key: '8455f98e02a5118529eb48d96363a8a9e001bbd0', class: "variable-part variable variable-state" }, "-focus")))))), !this.isTokensExample && (h("div", { key: 'b024b02bbb06fd5a74c9a7dc8d2299ec3412791e', class: "container" }, h("div", { key: 'f6e0832c0bf71e4a5bad8b38879596947f55a565', class: "container-title" }, "Piem\u0113ri"), h("div", { key: '62af0ae3d8c47f57bce94b2f2458a0078f1c1e45', class: "container-section container-example" }, h("span", { key: '33c07a240272634c86852079f00d2c1fd320f8ea', class: "subsection-title" }, "Teksta kr\u0101sas mai\u0146a"), h("code", { key: 'b0252f9a064ee8d5a8ef6590e38f83982197d4f0', class: "variable-example" }, "<div class=\"tet-color__red30\">Teksts</div>"), h("span", { key: '693c5e318c6ce11535ae3dc50e2165cee6a8699f' }, "Teksta kr\u0101sas mai\u0146a", ' ', h("span", { key: 'b62c420fdfd9f7fc06a8600263de3142c73c5138', class: "example-element tet-color__red30" }, "elementam"), "."), h("code", { key: '78e240859edd731486c18b55f0ca32307c1aa186', class: "variable-example" }, "<div class=\"tet-color__red30--hover\">Teksts</div>"), h("span", { key: '55a5733aa4da6c69cdfdc60073dc4a6d3415be9e' }, "Teksta kr\u0101sas mai\u0146a", ' ', h("span", { key: 'd75a191bf14805ddd4a54fec4975a8f4f3113d65', class: "example-element example-element--hover tet-color__red30--hover" }, "elementam"), ' ', "hover st\u0101vokl\u012B."), h("code", { key: '8cd739c11ab23ded9409948e79054b79852c3b4f', class: "variable-example" }, "<div class=\"tet-color__red30--focus\">Teksts</div>"), h("span", { key: '411cd59dcf50dee2f68ebaca193872b8d8585542' }, "Teksta kr\u0101sas mai\u0146a", ' ', h("span", { key: 'fe6b9b41f5557fed28efd61e78485a7611e6be9c', tabindex: "0", class: "example-element tet-color__red30--focus" }, "elementam"), ' ', "focus st\u0101vokl\u012B."), h("span", { key: 'eaeb96efaad2c3690ae6fd6ce0775f075dbdbd64', class: "subsection-title" }, "Fona kr\u0101sas mai\u0146a"), h("code", { key: '35d28cfa6a1be73bb1413a7d78b1c8a61c14b47d', class: "variable-example" }, "<div class=\"tet-color__red30--background\">Teksts</div>"), h("span", { key: 'fee78d51e972dbfe7e8179b495114d0584bc2141' }, "Fona kr\u0101sas mai\u0146a", ' ', h("span", { key: '648b11351a204d4ee522a9b4816f14f8f9c578bb', class: "example-element tet-color__red30--background" }, "elementam"), "."), h("code", { key: 'bb72c4c2c1abb1e3055d9116fd45dc957c30c886', class: "variable-example" }, "<div class=\"tet-color__red30--background-hover\">Teksts</div>"), h("span", { key: '196377c4ad7f76da5af80a1eb3f974746e27b9e1' }, "Fona kr\u0101sas mai\u0146a elementam", ' ', h("span", { key: 'ac43461a9b05305f4d8ded446650690ddc97359a', class: "example-element example-element--hover tet-color__red30--background-hover" }, "elementam"), ' ', "hover st\u0101vokl\u012B."), h("code", { key: 'e8bf930ea7e335ea82ebe2410633c98faf94818c', class: "variable-example" }, "<div class=\"tet-color__red30--background-focus\">Teksts</div>"), h("span", { key: '37efda044398e8f1b9538ec65c9ec1a73572bc5d' }, "Fona kr\u0101sas mai\u0146a elementam", ' ', h("span", { key: 'b884e73adc2377057d968a60b0bec0af116de4aa', tabindex: "0", class: "example-element tet-color__red30--background-focus" }, "elementam"), ' ', "focus st\u0101vokl\u012B."), h("span", { key: 'f8e028684be9c400c3fc528b7872e3dd648325ff', class: "subsection-title" }, "Apmales kr\u0101sas mai\u0146a"), h("code", { key: 'c41cfdcc134913f38cda959b4a0ec371a11f85dc', class: "variable-example" }, "<div class=\"tet-color__red30--border\">Teksts</div>"), h("span", { key: '00a0949525fdbba013fcfcfefd1a6c66828ff393' }, "Apmales kr\u0101sas mai\u0146a", ' ', h("span", { key: '2c97afc63ed19da1d000e776e15763b10fa90074', class: "example-element border-example tet-color__red30--border" }, "elementam"), "."), h("code", { key: '2ad19aae252d045c416081764a1983da433f45d9', class: "variable-example" }, "<div class=\"tet-color__red30--border-hover\">Teksts</div>"), h("span", { key: '09db590357f26b7f08f2d1d52b88b3923714a328' }, "Apmales kr\u0101sas mai\u0146a elementam", ' ', h("span", { key: '1ad2fe41054d71bd3ed0470262d12516d7a6ce89', class: "example-element example-element--hover border-example tet-color__red30--border-hover" }, "elementam"), ' ', "hover st\u0101vokl\u012B."), h("code", { key: '38391294631665d68b37a439e891a6a3073f1b0b', class: "variable-example" }, "<div class=\"tet-color__red30--border-focus\">Teksts</div>"), h("span", { key: '263cf9227264b53a3a44d4c5e2fd6336647f4231' }, "Apmales kr\u0101sas mai\u0146a elementam", ' ', h("span", { key: '3faee8ff2c60b1974142fb1944057076260b1267', tabindex: "0", class: "example-element border-example tet-color__red30--border-focus" }, "elementam"), ' ', "focus st\u0101vokl\u012B."), h("span", { key: '859334866aed08e176d2289886d146bd32a9cf7b', class: "subsection-title" }, "Nemain\u012Bga gai\u0161\u0101s t\u0113mas kr\u0101sa"), h("code", { key: 'fafacb713e2a73207f19372b0adba42b39d76b74', class: "variable-example" }, "<div class=\"tet-color__red30 tet-color--static\">Teksts</div>"), h("span", { key: '130e6e50de614bad85a99f7a39ec9694cc64762d' }, "Nemain\u012Bga teksta kr\u0101sa", ' ', h("span", { key: '3862a84142894d8e5f31ac36437f51b0809748b0', class: "example-element tet-color__red30 tet-color--static" }, "elementam"), ".")))), !this.isTokensExample && (h("div", { key: '6b2564cd5042f8093d34f7cb9fff47cc6a678692', class: {
55
599
  'container': true,
56
600
  'show-variables': this.showVariables
57
- } }, h("div", { key: '403addb80208b58a8e34f332867b9ef55574a89b', class: "container-title" }, "Kr\u0101sas un To\u0146i"), h("div", { key: 'e99ad0bf37b07aa46010cad95f5dcdc99fa01cff', class: "container-section" }, Object.entries(this.colorSections).map(([key, section]) => this.renderColorSection(key, section)))))));
601
+ } }, h("div", { key: 'ccd69f6932bd1abecd0f2d00e3e4b75436a74615', class: "container-title" }, "Kr\u0101sas un To\u0146i"), h("div", { key: 'b86fad52759a9e29f739500d50cd89052fd7554a', class: "container-section" }, Object.entries(this.colorSections).map(([key, section]) => this.renderColorSection(key, section))))), this.isTokensExample && (h("div", { key: '75eed7726622872258499ed97a621541958de5db', class: "container" }, h("div", { key: 'fda6c745faf620e66e2710a5499655ebcf7bb957', class: "container-title main" }, "Tokens"), h("div", { key: '6c8ee0af99c279eb3c9c65562de0b7ec77e0f5c0', class: "container-section token-sections" }, this.tokenSections.length
602
+ ? this.tokenSections.map(section => this.renderTokenSection(section))
603
+ : h("div", { class: "token-empty-state" }, "Tokens not found.")))))));
58
604
  }
59
605
  static get is() { return "tet-colors"; }
60
606
  static get encapsulation() { return "shadow"; }
@@ -105,7 +651,40 @@ export class TetColors {
105
651
  "attribute": "dark-theme",
106
652
  "reflect": false,
107
653
  "defaultValue": "false"
654
+ },
655
+ "isTokensExample": {
656
+ "type": "boolean",
657
+ "mutable": false,
658
+ "complexType": {
659
+ "original": "boolean",
660
+ "resolved": "boolean",
661
+ "references": {}
662
+ },
663
+ "required": false,
664
+ "optional": false,
665
+ "docs": {
666
+ "tags": [],
667
+ "text": "Display tokens example and hide class/palette examples."
668
+ },
669
+ "attribute": "is-tokens-example",
670
+ "reflect": false,
671
+ "defaultValue": "false"
108
672
  }
109
673
  };
110
674
  }
675
+ static get states() {
676
+ return {
677
+ "tokenSections": {},
678
+ "copiedToken": {}
679
+ };
680
+ }
681
+ static get watchers() {
682
+ return [{
683
+ "propName": "isTokensExample",
684
+ "methodName": "handleTokenSectionStateChange"
685
+ }, {
686
+ "propName": "darkTheme",
687
+ "methodName": "handleTokenSectionStateChange"
688
+ }];
689
+ }
111
690
  }