@tet/tet-components 1.3.10-testing → 1.3.11-production

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 (473) hide show
  1. package/dist/cjs/{address-41ac19c2.js → address-1674aa2d.js} +1 -1
  2. package/dist/cjs/{assets-0bdcfba7.js → assets-a459d319.js} +1 -1
  3. package/dist/cjs/{async-request-42567909.js → async-request-e8810b2c.js} +1 -1
  4. package/dist/cjs/enums-9ea00751.js +7 -0
  5. package/dist/cjs/{http-codes-bec9330b.js → http-codes-12b2b47b.js} +1 -1
  6. package/dist/cjs/{index-84ede372.js → index-457201e1.js} +1 -1
  7. package/dist/cjs/{index-f559cb2e.js → index-66913c99.js} +1 -1
  8. package/dist/cjs/loader.cjs.js +2 -2
  9. package/dist/cjs/{old-utils-31714a40.js → old-utils-ddf2ad10.js} +1 -1
  10. package/dist/cjs/{phone-96a87ac9.js → phone-c79e43f4.js} +2 -2
  11. package/dist/cjs/tet-accordion.cjs.entry.js +8 -8
  12. package/dist/cjs/tet-address-offers-view.cjs.entry.js +3 -3
  13. package/dist/cjs/tet-address-offers_4.cjs.entry.js +11 -11
  14. package/dist/cjs/tet-address-search.cjs.entry.js +5 -5
  15. package/dist/cjs/tet-asset-addresses.cjs.entry.js +4 -4
  16. package/dist/cjs/tet-autocomplete-dropdown.cjs.entry.js +5 -4
  17. package/dist/cjs/tet-autocomplete_2.cjs.entry.js +11 -7
  18. package/dist/cjs/tet-b2b-service-calculator.cjs.entry.js +3 -3
  19. package/dist/cjs/tet-bar-graph.cjs.entry.js +4 -4
  20. package/dist/cjs/tet-border-radius.cjs.entry.js +1 -1
  21. package/dist/cjs/tet-business-card.cjs.entry.js +3 -3
  22. package/dist/cjs/tet-business-compare-card.cjs.entry.js +3 -3
  23. package/dist/cjs/tet-business-lines.cjs.entry.js +4 -4
  24. package/dist/cjs/tet-business-round-stepper.cjs.entry.js +2 -2
  25. package/dist/cjs/tet-button.cjs.entry.js +4 -4
  26. package/dist/cjs/tet-card-list.cjs.entry.js +9 -15
  27. package/dist/cjs/tet-checkbox.cjs.entry.js +3 -3
  28. package/dist/cjs/tet-cloud-application-form-dialog.cjs.entry.js +5 -5
  29. package/dist/cjs/tet-cloud-configurator.cjs.entry.js +3 -3
  30. package/dist/cjs/tet-colors.cjs.entry.js +1 -1
  31. package/dist/cjs/tet-compare-card_4.cjs.entry.js +33 -13
  32. package/dist/cjs/tet-compare-cards-tab.cjs.entry.js +4 -4
  33. package/dist/cjs/tet-compare-cards.cjs.entry.js +5 -5
  34. package/dist/cjs/tet-components.cjs.js +2 -2
  35. package/dist/cjs/tet-contact-form.cjs.entry.js +6 -6
  36. package/dist/cjs/tet-contact-info.cjs.entry.js +2 -2
  37. package/dist/cjs/tet-container_2.cjs.entry.js +4 -4
  38. package/dist/cjs/tet-customer-assets.cjs.entry.js +4 -4
  39. package/dist/cjs/tet-datepicker-header_4.cjs.entry.js +6 -6
  40. package/dist/cjs/tet-datepicker.cjs.entry.js +5 -5
  41. package/dist/cjs/tet-dialog.cjs.entry.js +5 -5
  42. package/dist/cjs/tet-expandable-input.cjs.entry.js +3 -3
  43. package/dist/cjs/tet-expansion-panel.cjs.entry.js +2 -2
  44. package/dist/cjs/tet-font-weight.cjs.entry.js +1 -1
  45. package/dist/cjs/tet-fonts.cjs.entry.js +1 -1
  46. package/dist/cjs/tet-grid.cjs.entry.js +1 -1
  47. package/dist/cjs/tet-icon.cjs.entry.js +3 -3
  48. package/dist/cjs/tet-inline-message.cjs.entry.js +2 -2
  49. package/dist/cjs/tet-input.cjs.entry.js +41 -7
  50. package/dist/cjs/tet-label.cjs.entry.js +5 -5
  51. package/dist/cjs/tet-layout.cjs.entry.js +1 -1
  52. package/dist/cjs/tet-link.cjs.entry.js +2 -2
  53. package/dist/cjs/tet-loader.cjs.entry.js +2 -2
  54. package/dist/cjs/tet-macd-view.cjs.entry.js +6 -6
  55. package/dist/cjs/tet-menu-mobile.cjs.entry.js +2 -2
  56. package/dist/cjs/tet-menu.cjs.entry.js +2 -2
  57. package/dist/cjs/tet-multi-step-dialog.cjs.entry.js +4 -4
  58. package/dist/cjs/tet-navigation-mobile.cjs.entry.js +4 -4
  59. package/dist/cjs/tet-news-card-list.cjs.entry.js +8 -4
  60. package/dist/cjs/tet-notification.cjs.entry.js +10 -5
  61. package/dist/cjs/tet-number-input_2.cjs.entry.js +5 -5
  62. package/dist/cjs/tet-placeholder.cjs.entry.js +2 -2
  63. package/dist/cjs/tet-radio.cjs.entry.js +3 -3
  64. package/dist/cjs/tet-range-slider_2.cjs.entry.js +11 -11
  65. package/dist/cjs/tet-referral.cjs.entry.js +4 -4
  66. package/dist/cjs/tet-round-stepper.cjs.entry.js +2 -2
  67. package/dist/cjs/tet-spacing.cjs.entry.js +1 -1
  68. package/dist/cjs/tet-stepper-v2.cjs.entry.js +2 -2
  69. package/dist/cjs/tet-stepper.cjs.entry.js +2 -2
  70. package/dist/cjs/tet-table.cjs.entry.js +2 -2
  71. package/dist/cjs/tet-tag_2.cjs.entry.js +6 -6
  72. package/dist/cjs/tet-text-list.cjs.entry.js +2 -2
  73. package/dist/cjs/tet-textarea.cjs.entry.js +2 -2
  74. package/dist/cjs/tet-thank-you-view-v2.cjs.entry.js +4 -4
  75. package/dist/cjs/tet-thank-you-view.cjs.entry.js +2 -2
  76. package/dist/cjs/tet-tooltip.cjs.entry.js +1 -1
  77. package/dist/cjs/tet-tv-gift-block.cjs.entry.js +2 -2
  78. package/dist/cjs/tet-tv-gift-list.cjs.entry.js +3 -3
  79. package/dist/cjs/{translations-9c00ed63.js → translations-51ad8d5d.js} +1 -1
  80. package/dist/collection/collection-manifest.json +23 -23
  81. package/dist/collection/components/advanced/address/tet-address-offers/tet-address-offers.js +1 -1
  82. package/dist/collection/components/advanced/address/tet-address-offers-filters/tet-address-offers-filters.js +1 -1
  83. package/dist/collection/components/advanced/address/tet-address-search/tet-address-search.js +1 -1
  84. package/dist/collection/components/advanced/address/tet-autocomplete/tet-autocomplete.css +18 -1
  85. package/dist/collection/components/advanced/address/tet-autocomplete/tet-autocomplete.js +8 -3
  86. package/dist/collection/components/advanced/address/tet-autocomplete-dropdown/tet-autocomplete-dropdown.js +4 -3
  87. package/dist/collection/components/advanced/cards/tet-business-card/tet-business-card.js +2 -2
  88. package/dist/collection/components/advanced/cards/tet-business-compare-card/tet-business-compare-card.js +2 -2
  89. package/dist/collection/components/advanced/cards/tet-card-list/test/tet-card-list.spec.js +18 -18
  90. package/dist/collection/components/advanced/cards/tet-card-list/tet-card-list.css +20 -14
  91. package/dist/collection/components/advanced/cards/tet-card-list/tet-card-list.js +25 -13
  92. package/dist/collection/components/advanced/cards/tet-compare-card/tet-compare-card.css +20 -3
  93. package/dist/collection/components/advanced/cards/tet-compare-cards/tet-compare-cards.css +4 -2
  94. package/dist/collection/components/advanced/cards/tet-compare-cards/tet-compare-cards.js +1 -1
  95. package/dist/collection/components/advanced/cards/tet-compare-cards-tab/tet-compare-cards-tab.js +1 -1
  96. package/dist/collection/components/advanced/customer/tet-asset-addresses/tet-asset-addresses.js +1 -1
  97. package/dist/collection/components/advanced/customer/tet-asset-availability-addresses/tet-asset-availability-addresses.js +1 -1
  98. package/dist/collection/components/advanced/customer/tet-customer-assets/tet-customer-assets.js +1 -1
  99. package/dist/collection/components/advanced/customer/tet-referral/tet-referral.js +1 -1
  100. package/dist/collection/components/advanced/dialog/tet-multi-step-dialog/tet-multi-step-dialog.js +1 -1
  101. package/dist/collection/components/advanced/forms/tet-availability-contact-form/tet-availability-contact-form.js +1 -1
  102. package/dist/collection/components/advanced/forms/tet-contact-form/tet-contact-form.js +1 -1
  103. package/dist/collection/components/advanced/promotions/tv-gift/tet-tv-gift-block/tet-tv-gift-block.js +1 -1
  104. package/dist/collection/components/advanced/promotions/tv-gift/tet-tv-gift-list/tet-tv-gift-list.js +2 -2
  105. package/dist/collection/components/basic/buttons/tet-button/tet-button.css +69 -1
  106. package/dist/collection/components/basic/buttons/tet-button/tet-button.js +2 -2
  107. package/dist/collection/components/basic/buttons/tet-checkbox/tet-checkbox.css +16 -3
  108. package/dist/collection/components/basic/buttons/tet-checkbox/tet-checkbox.js +1 -1
  109. package/dist/collection/components/basic/buttons/tet-radio/tet-radio.css +5 -0
  110. package/dist/collection/components/basic/buttons/tet-radio/tet-radio.js +1 -1
  111. package/dist/collection/components/basic/buttons/tet-switch/tet-switch.css +10 -0
  112. package/dist/collection/components/basic/buttons/tet-switch/tet-switch.js +1 -1
  113. package/dist/collection/components/basic/buttons/tet-tabs/tet-tab-content/tet-tab-content.js +2 -2
  114. package/dist/collection/components/basic/buttons/tet-tabs/tet-tab-header/tet-tab-header.js +2 -2
  115. package/dist/collection/components/basic/buttons/tet-tag/tet-tag.js +2 -2
  116. package/dist/collection/components/basic/buttons/tet-tag-group/tet-tag-group.js +1 -1
  117. package/dist/collection/components/basic/container/tet-container/tet-container.js +2 -2
  118. package/dist/collection/components/basic/icon/tet-icon.js +1 -1
  119. package/dist/collection/components/basic/loaders/tet-loader/tet-loader.js +1 -1
  120. package/dist/collection/components/basic/loaders/tet-placeholder/tet-placeholder.js +1 -1
  121. package/dist/collection/components/basic/loaders/tet-spinner/tet-spinner.js +3 -3
  122. package/dist/collection/components/basic/misc/tet-label/tet-label.js +2 -2
  123. package/dist/collection/components/basic/steppers/tet-business-round-stepper/tet-business-round-stepper.js +1 -1
  124. package/dist/collection/components/basic/steppers/tet-round-stepper/tet-round-stepper.js +1 -1
  125. package/dist/collection/components/basic/steppers/tet-stepper/tet-stepper.js +1 -1
  126. package/dist/collection/components/basic/steppers/tet-stepper-v2/tet-stepper-v2.js +1 -1
  127. package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-header/tet-datepicker-header.js +2 -2
  128. package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-month-view/tet-datepicker-month-view.js +1 -1
  129. package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-multi-year-view/tet-datepicker-multi-year-view.js +1 -1
  130. package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-year-view/tet-datepicker-year-view.js +1 -1
  131. package/dist/collection/components/simple/inputs/tet-datepicker/tet-datepicker.js +4 -4
  132. package/dist/collection/components/simple/inputs/tet-dropdown/test/tet-dropdown.spec.js +35 -31
  133. package/dist/collection/components/simple/inputs/tet-dropdown/tet-dropdown.css +47 -8
  134. package/dist/collection/components/simple/inputs/tet-dropdown/tet-dropdown.js +28 -7
  135. package/dist/collection/components/simple/inputs/tet-expandable-input/tet-expandable-input.js +2 -2
  136. package/dist/collection/components/simple/inputs/tet-input/tet-input.css +23 -1
  137. package/dist/collection/components/simple/inputs/tet-input/tet-input.js +55 -4
  138. package/dist/collection/components/simple/inputs/tet-number-input/tet-number-input.js +1 -1
  139. package/dist/collection/components/simple/inputs/tet-range-slider/tet-range-slider.css +10 -0
  140. package/dist/collection/components/simple/inputs/tet-range-slider/tet-range-slider.js +7 -7
  141. package/dist/collection/components/simple/inputs/tet-stepper-input/tet-stepper-input.js +1 -1
  142. package/dist/collection/components/simple/inputs/tet-textarea/tet-textarea.js +1 -1
  143. package/dist/collection/components/simple/lists/tet-news-card-list/test/tet-news-card-list.spec.js +15 -10
  144. package/dist/collection/components/simple/lists/tet-news-card-list/tet-news-card-list.css +19 -6
  145. package/dist/collection/components/simple/lists/tet-news-card-list/tet-news-card-list.js +24 -2
  146. package/dist/collection/components/simple/lists/tet-selection-list/tet-selection-list.js +1 -1
  147. package/dist/collection/components/simple/lists/tet-text-list/tet-text-list.css +20 -3
  148. package/dist/collection/components/simple/menu/tet-menu/tet-menu.js +1 -1
  149. package/dist/collection/components/simple/menu/tet-menu-mobile/tet-menu-mobile.js +1 -1
  150. package/dist/collection/components/simple/menu/tet-navigation-mobile/tet-navigation-mobile.js +3 -3
  151. package/dist/collection/components/simple/structural/tet-accordion/tet-accordion.css +7 -4
  152. package/dist/collection/components/simple/structural/tet-accordion/tet-accordion.js +6 -6
  153. package/dist/collection/components/simple/structural/tet-expansion-panel/tet-expansion-panel.js +1 -1
  154. package/dist/collection/components/simple/tables-and-graphs/tet-bar-graph/tet-bar-graph.js +3 -3
  155. package/dist/collection/components/simple/tables-and-graphs/tet-table/tet-table.js +1 -1
  156. package/dist/collection/components/simple/text-blocks/tet-cloud-application-form-dialog/tet-cloud-application-form-dialog.js +2 -2
  157. package/dist/collection/components/simple/text-blocks/tet-dialog/tet-dialog.css +9 -0
  158. package/dist/collection/components/simple/text-blocks/tet-dialog/tet-dialog.js +1 -1
  159. package/dist/collection/components/simple/text-blocks/tet-inline-message/tet-inline-message.js +1 -1
  160. package/dist/collection/components/simple/text-blocks/tet-notification/test/tet-notification.spec.js +2 -2
  161. package/dist/collection/components/simple/text-blocks/tet-notification/tet-notification.css +10 -2
  162. package/dist/collection/components/simple/text-blocks/tet-notification/tet-notification.js +8 -3
  163. package/dist/collection/components/views/tet-contact-info/tet-contact-info.js +1 -1
  164. package/dist/collection/components/views/tet-macd-view/tet-macd-view.js +1 -1
  165. package/dist/collection/components/views/tet-thank-you-view/tet-thank-you-view.js +1 -1
  166. package/dist/collection/components/views/tet-thank-you-view-v2/tet-thank-you-view-v2.js +1 -1
  167. package/dist/collection/docs/styling/link/tet-link.css +4 -2
  168. package/dist/collection/types/enums.js +5 -0
  169. package/dist/components/index.js +1 -1
  170. package/dist/components/{p-a4bf9088.js → p-014f1e72.js} +50 -9
  171. package/dist/components/{p-82bac3af.js → p-0319daf7.js} +5 -5
  172. package/dist/components/{p-5de04562.js → p-038ed6bd.js} +2 -2
  173. package/dist/components/{p-33b10a5d.js → p-2d012b95.js} +4 -4
  174. package/dist/components/{p-401d90fd.js → p-30152bfc.js} +8 -8
  175. package/dist/components/{p-dd33387b.js → p-33bb63ff.js} +3 -3
  176. package/dist/components/{p-044f4f1b.js → p-356a412a.js} +10 -10
  177. package/dist/components/{p-9cf31ebf.js → p-3aa9084b.js} +4 -4
  178. package/dist/components/{p-a0d406ca.js → p-4d00761a.js} +1 -1
  179. package/dist/components/{p-40dff839.js → p-4eb6b43f.js} +4 -4
  180. package/dist/components/{p-470276e6.js → p-52a4005a.js} +1 -1
  181. package/dist/components/{p-39e60f54.js → p-52e27ed1.js} +2 -2
  182. package/dist/components/{p-37ed3ebb.js → p-599035b8.js} +1 -1
  183. package/dist/components/{p-ca4592d2.js → p-5d2923be.js} +2 -2
  184. package/dist/components/{p-f0e7aa54.js → p-63fff203.js} +4 -4
  185. package/dist/components/{p-161a7704.js → p-69b50bdc.js} +2 -2
  186. package/dist/components/{p-a63d3582.js → p-6cc02895.js} +2 -2
  187. package/dist/components/{p-df435ffa.js → p-71896b3e.js} +9 -9
  188. package/dist/components/{p-57a9e15d.js → p-7f79beb7.js} +18 -17
  189. package/dist/components/{p-20533789.js → p-803da268.js} +12 -12
  190. package/dist/components/{p-a694a158.js → p-81176268.js} +12 -12
  191. package/dist/components/{p-90cbcf3c.js → p-884bf905.js} +5 -5
  192. package/dist/components/{p-aa2b32cc.js → p-8f522aea.js} +3 -3
  193. package/dist/components/{p-758ad350.js → p-9104389c.js} +1 -1
  194. package/dist/components/{p-74ff4f72.js → p-92365b7e.js} +1 -1
  195. package/dist/components/{p-dc2b8865.js → p-93b0dbfc.js} +3 -3
  196. package/dist/components/{p-dd1688ed.js → p-9618b2b4.js} +4 -4
  197. package/dist/components/{p-83711da3.js → p-9bc13031.js} +2 -2
  198. package/dist/components/{p-e3fd7e0f.js → p-a27c493c.js} +3 -3
  199. package/dist/components/{p-bba0ee80.js → p-a51ac465.js} +10 -10
  200. package/dist/components/{p-d51e3de1.js → p-a5e9d6ea.js} +1 -1
  201. package/dist/components/{p-72b8586b.js → p-ad2c1218.js} +1 -1
  202. package/dist/components/{p-f88f7112.js → p-b0e5ca7b.js} +4 -4
  203. package/dist/components/{p-6db9b25a.js → p-b21847c4.js} +3 -3
  204. package/dist/components/{p-20ad87ea.js → p-b5804e1e.js} +5 -5
  205. package/dist/components/{p-e72afa08.js → p-b7fc9fd0.js} +11 -6
  206. package/dist/components/{p-ae1f41ee.js → p-bdb032c1.js} +1 -1
  207. package/dist/components/{p-395295dd.js → p-c6ff1b54.js} +31 -10
  208. package/dist/components/{p-e66d11d0.js → p-c753ab82.js} +2 -2
  209. package/dist/components/{p-bb3e6f2a.js → p-cbb224eb.js} +3 -3
  210. package/dist/components/{p-43a1c142.js → p-dcfc055b.js} +4 -4
  211. package/dist/components/{p-fac55389.js → p-ed5edfa6.js} +11 -6
  212. package/dist/components/{p-28969bcf.js → p-efd52cca.js} +3 -3
  213. package/dist/components/{p-7ba5a01c.js → p-fb898de5.js} +2 -2
  214. package/dist/components/{p-4f9f57a8.js → p-fbed7f2b.js} +3 -3
  215. package/dist/components/{p-a6ddf134.js → p-fdc12c5f.js} +2 -2
  216. package/dist/components/{p-810b312b.js → p-ff861841.js} +8 -8
  217. package/dist/components/tet-accordion.js +9 -9
  218. package/dist/components/tet-address-offers-filters.js +1 -1
  219. package/dist/components/tet-address-offers-view.js +25 -25
  220. package/dist/components/tet-address-offers.js +1 -1
  221. package/dist/components/tet-address-search.js +1 -1
  222. package/dist/components/tet-asset-addresses.js +13 -13
  223. package/dist/components/tet-asset-availability-addresses.js +1 -1
  224. package/dist/components/tet-autocomplete-dropdown.js +8 -8
  225. package/dist/components/tet-autocomplete.js +1 -1
  226. package/dist/components/tet-availability-contact-form.js +1 -1
  227. package/dist/components/tet-b2b-service-calculator.js +8 -8
  228. package/dist/components/tet-bar-graph.js +4 -4
  229. package/dist/components/tet-border-radius.js +1 -1
  230. package/dist/components/tet-business-card.js +3 -3
  231. package/dist/components/tet-business-compare-card.js +5 -5
  232. package/dist/components/tet-business-lines.js +5 -5
  233. package/dist/components/tet-business-round-stepper.js +3 -3
  234. package/dist/components/tet-button.js +1 -1
  235. package/dist/components/tet-card-list.js +1 -1
  236. package/dist/components/tet-checkbox.js +1 -1
  237. package/dist/components/tet-cloud-application-form-dialog.js +10 -10
  238. package/dist/components/tet-cloud-configurator.js +11 -11
  239. package/dist/components/tet-colors.js +1 -1
  240. package/dist/components/tet-compare-card.js +1 -1
  241. package/dist/components/tet-compare-cards-tab.js +11 -11
  242. package/dist/components/tet-compare-cards.js +1 -1
  243. package/dist/components/tet-contact-form.js +10 -10
  244. package/dist/components/tet-contact-info.js +2 -2
  245. package/dist/components/tet-container.js +1 -1
  246. package/dist/components/tet-customer-assets.js +9 -9
  247. package/dist/components/tet-datepicker-header.js +1 -1
  248. package/dist/components/tet-datepicker-month-view.js +1 -1
  249. package/dist/components/tet-datepicker-multi-year-view.js +1 -1
  250. package/dist/components/tet-datepicker-year-view.js +1 -1
  251. package/dist/components/tet-datepicker.js +10 -10
  252. package/dist/components/tet-dialog.js +1 -1
  253. package/dist/components/tet-dropdown.js +1 -1
  254. package/dist/components/tet-expandable-input.js +5 -5
  255. package/dist/components/tet-expansion-panel.js +2 -2
  256. package/dist/components/tet-font-weight.js +1 -1
  257. package/dist/components/tet-fonts.js +1 -1
  258. package/dist/components/tet-grid.js +1 -1
  259. package/dist/components/tet-icon.js +1 -1
  260. package/dist/components/tet-inline-message.js +3 -3
  261. package/dist/components/tet-input.js +1 -1
  262. package/dist/components/tet-label.js +5 -5
  263. package/dist/components/tet-layout.js +1 -1
  264. package/dist/components/tet-link.js +2 -2
  265. package/dist/components/tet-loader.js +1 -1
  266. package/dist/components/tet-macd-view.js +11 -11
  267. package/dist/components/tet-menu-mobile.js +3 -3
  268. package/dist/components/tet-menu.js +3 -3
  269. package/dist/components/tet-multi-step-dialog.js +6 -6
  270. package/dist/components/tet-navigation-mobile.js +5 -5
  271. package/dist/components/tet-news-card-list.js +19 -8
  272. package/dist/components/tet-notification.js +1 -1
  273. package/dist/components/tet-number-input.js +1 -1
  274. package/dist/components/tet-placeholder.js +1 -1
  275. package/dist/components/tet-radio.js +1 -1
  276. package/dist/components/tet-range-slider.js +1 -1
  277. package/dist/components/tet-referral.js +6 -6
  278. package/dist/components/tet-round-stepper.js +3 -3
  279. package/dist/components/tet-selection-list.js +1 -1
  280. package/dist/components/tet-spacing.js +1 -1
  281. package/dist/components/tet-spinner.js +1 -1
  282. package/dist/components/tet-stepper-input.js +1 -1
  283. package/dist/components/tet-stepper-v2.js +1 -1
  284. package/dist/components/tet-stepper.js +1 -1
  285. package/dist/components/tet-switch.js +1 -1
  286. package/dist/components/tet-tab-content.js +1 -1
  287. package/dist/components/tet-tab-header.js +1 -1
  288. package/dist/components/tet-table.js +4 -4
  289. package/dist/components/tet-tag-group.js +1 -1
  290. package/dist/components/tet-tag.js +1 -1
  291. package/dist/components/tet-text-list.js +1 -1
  292. package/dist/components/tet-textarea.js +2 -2
  293. package/dist/components/tet-thank-you-view-v2.js +6 -6
  294. package/dist/components/tet-thank-you-view.js +4 -4
  295. package/dist/components/tet-tooltip.js +1 -1
  296. package/dist/components/tet-tv-gift-block.js +2 -2
  297. package/dist/components/tet-tv-gift-list.js +4 -4
  298. package/dist/esm/{address-9dfd3c9e.js → address-18c4b9dc.js} +1 -1
  299. package/dist/esm/{assets-c074d2b9.js → assets-b258bac4.js} +1 -1
  300. package/dist/esm/{async-request-754d6810.js → async-request-f3a79721.js} +1 -1
  301. package/dist/esm/enums-42030c3a.js +7 -0
  302. package/dist/esm/{http-codes-42779195.js → http-codes-3253f363.js} +1 -1
  303. package/dist/esm/{index-7f1e2a22.js → index-ce62f11b.js} +1 -1
  304. package/dist/esm/{index-1bf36cb9.js → index-d502e34e.js} +1 -1
  305. package/dist/esm/loader.js +3 -3
  306. package/dist/esm/{old-utils-7140ef76.js → old-utils-4acec2e9.js} +1 -1
  307. package/dist/esm/{phone-66ff151d.js → phone-56c1d5c3.js} +2 -2
  308. package/dist/esm/tet-accordion.entry.js +8 -8
  309. package/dist/esm/tet-address-offers-view.entry.js +3 -3
  310. package/dist/esm/tet-address-offers_4.entry.js +11 -11
  311. package/dist/esm/tet-address-search.entry.js +5 -5
  312. package/dist/esm/tet-asset-addresses.entry.js +4 -4
  313. package/dist/esm/tet-autocomplete-dropdown.entry.js +5 -4
  314. package/dist/esm/tet-autocomplete_2.entry.js +11 -7
  315. package/dist/esm/tet-b2b-service-calculator.entry.js +3 -3
  316. package/dist/esm/tet-bar-graph.entry.js +4 -4
  317. package/dist/esm/tet-border-radius.entry.js +1 -1
  318. package/dist/esm/tet-business-card.entry.js +3 -3
  319. package/dist/esm/tet-business-compare-card.entry.js +3 -3
  320. package/dist/esm/tet-business-lines.entry.js +4 -4
  321. package/dist/esm/tet-business-round-stepper.entry.js +2 -2
  322. package/dist/esm/tet-button.entry.js +4 -4
  323. package/dist/esm/tet-card-list.entry.js +9 -15
  324. package/dist/esm/tet-checkbox.entry.js +3 -3
  325. package/dist/esm/tet-cloud-application-form-dialog.entry.js +5 -5
  326. package/dist/esm/tet-cloud-configurator.entry.js +3 -3
  327. package/dist/esm/tet-colors.entry.js +1 -1
  328. package/dist/esm/tet-compare-card_4.entry.js +33 -13
  329. package/dist/esm/tet-compare-cards-tab.entry.js +4 -4
  330. package/dist/esm/tet-compare-cards.entry.js +5 -5
  331. package/dist/esm/tet-components.js +3 -3
  332. package/dist/esm/tet-contact-form.entry.js +6 -6
  333. package/dist/esm/tet-contact-info.entry.js +2 -2
  334. package/dist/esm/tet-container_2.entry.js +4 -4
  335. package/dist/esm/tet-customer-assets.entry.js +4 -4
  336. package/dist/esm/tet-datepicker-header_4.entry.js +6 -6
  337. package/dist/esm/tet-datepicker.entry.js +5 -5
  338. package/dist/esm/tet-dialog.entry.js +5 -5
  339. package/dist/esm/tet-expandable-input.entry.js +3 -3
  340. package/dist/esm/tet-expansion-panel.entry.js +2 -2
  341. package/dist/esm/tet-font-weight.entry.js +1 -1
  342. package/dist/esm/tet-fonts.entry.js +1 -1
  343. package/dist/esm/tet-grid.entry.js +1 -1
  344. package/dist/esm/tet-icon.entry.js +3 -3
  345. package/dist/esm/tet-inline-message.entry.js +2 -2
  346. package/dist/esm/tet-input.entry.js +41 -7
  347. package/dist/esm/tet-label.entry.js +5 -5
  348. package/dist/esm/tet-layout.entry.js +1 -1
  349. package/dist/esm/tet-link.entry.js +2 -2
  350. package/dist/esm/tet-loader.entry.js +2 -2
  351. package/dist/esm/tet-macd-view.entry.js +6 -6
  352. package/dist/esm/tet-menu-mobile.entry.js +2 -2
  353. package/dist/esm/tet-menu.entry.js +2 -2
  354. package/dist/esm/tet-multi-step-dialog.entry.js +4 -4
  355. package/dist/esm/tet-navigation-mobile.entry.js +4 -4
  356. package/dist/esm/tet-news-card-list.entry.js +8 -4
  357. package/dist/esm/tet-notification.entry.js +10 -5
  358. package/dist/esm/tet-number-input_2.entry.js +5 -5
  359. package/dist/esm/tet-placeholder.entry.js +2 -2
  360. package/dist/esm/tet-radio.entry.js +3 -3
  361. package/dist/esm/tet-range-slider_2.entry.js +11 -11
  362. package/dist/esm/tet-referral.entry.js +4 -4
  363. package/dist/esm/tet-round-stepper.entry.js +2 -2
  364. package/dist/esm/tet-spacing.entry.js +1 -1
  365. package/dist/esm/tet-stepper-v2.entry.js +2 -2
  366. package/dist/esm/tet-stepper.entry.js +2 -2
  367. package/dist/esm/tet-table.entry.js +2 -2
  368. package/dist/esm/tet-tag_2.entry.js +6 -6
  369. package/dist/esm/tet-text-list.entry.js +2 -2
  370. package/dist/esm/tet-textarea.entry.js +2 -2
  371. package/dist/esm/tet-thank-you-view-v2.entry.js +4 -4
  372. package/dist/esm/tet-thank-you-view.entry.js +2 -2
  373. package/dist/esm/tet-tooltip.entry.js +1 -1
  374. package/dist/esm/tet-tv-gift-block.entry.js +2 -2
  375. package/dist/esm/tet-tv-gift-list.entry.js +3 -3
  376. package/dist/esm/{translations-5c723a5f.js → translations-9e12c95e.js} +1 -1
  377. package/dist/tet-components/{p-f61a75f7.entry.js → p-0155c657.entry.js} +1 -1
  378. package/dist/tet-components/{p-6a7cf6fe.entry.js → p-03598b56.entry.js} +1 -1
  379. package/dist/tet-components/{p-21ed105d.entry.js → p-0c3c087d.entry.js} +1 -1
  380. package/dist/tet-components/p-13c7256d.entry.js +1 -0
  381. package/dist/tet-components/p-1d14c865.js +2 -0
  382. package/dist/tet-components/{p-4976f85e.entry.js → p-1e63966c.entry.js} +1 -1
  383. package/dist/tet-components/{p-2606db0f.entry.js → p-28262d11.entry.js} +1 -1
  384. package/dist/tet-components/{p-00406e92.entry.js → p-2b1ad321.entry.js} +1 -1
  385. package/dist/tet-components/{p-bbb57229.entry.js → p-2b83026e.entry.js} +1 -1
  386. package/dist/tet-components/{p-b27e0094.entry.js → p-30c078c5.entry.js} +1 -1
  387. package/dist/tet-components/{p-6c9a2802.entry.js → p-31cc382d.entry.js} +1 -1
  388. package/dist/tet-components/{p-c29d065a.entry.js → p-339f464d.entry.js} +1 -1
  389. package/dist/tet-components/{p-a82c303b.entry.js → p-36446205.entry.js} +1 -1
  390. package/dist/tet-components/{p-81483d35.entry.js → p-3a2e7f78.entry.js} +1 -1
  391. package/dist/tet-components/{p-5f1d8522.entry.js → p-419ba4e5.entry.js} +1 -1
  392. package/dist/tet-components/{p-40f2345c.entry.js → p-41e0c484.entry.js} +1 -1
  393. package/dist/tet-components/{p-bdb06b94.entry.js → p-469a4441.entry.js} +1 -1
  394. package/dist/tet-components/{p-b89b20c1.entry.js → p-49d25e76.entry.js} +1 -1
  395. package/dist/tet-components/{p-4ef1eb2f.entry.js → p-4b1092e0.entry.js} +1 -1
  396. package/dist/tet-components/{p-f8b1e881.entry.js → p-4b39a2c7.entry.js} +1 -1
  397. package/dist/tet-components/p-4d27565e.entry.js +1 -0
  398. package/dist/tet-components/{p-ca6856a3.js → p-50f3eebf.js} +1 -1
  399. package/dist/tet-components/{p-4465b469.entry.js → p-528fcfb3.entry.js} +1 -1
  400. package/dist/tet-components/{p-6c93428c.entry.js → p-5478765f.entry.js} +1 -1
  401. package/dist/tet-components/{p-7d20cdcb.entry.js → p-57a44d64.entry.js} +1 -1
  402. package/dist/tet-components/{p-25d1ad10.entry.js → p-5c162308.entry.js} +1 -1
  403. package/dist/tet-components/{p-11c4c681.entry.js → p-60d0449a.entry.js} +1 -1
  404. package/dist/tet-components/{p-ddd72b3a.entry.js → p-672a3684.entry.js} +1 -1
  405. package/dist/tet-components/{p-010608e8.js → p-676cb76a.js} +1 -1
  406. package/dist/tet-components/{p-2cccf0e6.entry.js → p-6a8ebb69.entry.js} +1 -1
  407. package/dist/tet-components/{p-74ffe679.entry.js → p-6f9662f4.entry.js} +1 -1
  408. package/dist/tet-components/{p-4f1befed.entry.js → p-723b4982.entry.js} +1 -1
  409. package/dist/tet-components/{p-98f4c4a7.entry.js → p-73f67c43.entry.js} +1 -1
  410. package/dist/tet-components/p-7777883e.entry.js +1 -0
  411. package/dist/tet-components/{p-4b3c11dd.entry.js → p-77d2f95c.entry.js} +1 -1
  412. package/dist/tet-components/{p-dbad2c8f.entry.js → p-7926c510.entry.js} +1 -1
  413. package/dist/tet-components/{p-7123c8cb.js → p-7c3a56ca.js} +1 -1
  414. package/dist/tet-components/{p-a2f6aad3.entry.js → p-7cc4421f.entry.js} +1 -1
  415. package/dist/tet-components/{p-7c9a8ce7.entry.js → p-7d2dc52d.entry.js} +1 -1
  416. package/dist/tet-components/p-885bbb54.entry.js +1 -0
  417. package/dist/tet-components/p-8ffae08d.entry.js +1 -0
  418. package/dist/tet-components/{p-88880c7c.entry.js → p-958bc791.entry.js} +1 -1
  419. package/dist/tet-components/{p-7c747e38.entry.js → p-9c34d288.entry.js} +1 -1
  420. package/dist/tet-components/{p-2043b691.entry.js → p-9c6ee0d1.entry.js} +1 -1
  421. package/dist/tet-components/{p-3e4f7e1d.entry.js → p-9d23f593.entry.js} +1 -1
  422. package/dist/tet-components/{p-e3e722f3.entry.js → p-a02fd184.entry.js} +1 -1
  423. package/dist/tet-components/{p-4b9d2f1e.js → p-a15f30a7.js} +1 -1
  424. package/dist/tet-components/p-a29409b9.entry.js +1 -0
  425. package/dist/tet-components/{p-ce8f7d0b.entry.js → p-a298a4c6.entry.js} +1 -1
  426. package/dist/tet-components/{p-e7b35dc9.entry.js → p-a5546585.entry.js} +1 -1
  427. package/dist/tet-components/{p-77372984.js → p-aba811f3.js} +1 -1
  428. package/dist/tet-components/{p-1b745abf.entry.js → p-ae3b0c9d.entry.js} +1 -1
  429. package/dist/tet-components/{p-1726216b.entry.js → p-b4ae1fcb.entry.js} +1 -1
  430. package/dist/tet-components/{p-0556c8b5.entry.js → p-c32717e1.entry.js} +1 -1
  431. package/dist/tet-components/{p-4a491a3c.entry.js → p-c56eb609.entry.js} +1 -1
  432. package/dist/tet-components/{p-4b0322a7.entry.js → p-c73786d9.entry.js} +1 -1
  433. package/dist/tet-components/{p-320d6755.entry.js → p-c985ffbb.entry.js} +1 -1
  434. package/dist/tet-components/{p-fe3e33b7.entry.js → p-ca07206c.entry.js} +1 -1
  435. package/dist/tet-components/{p-10629eb6.entry.js → p-d0e5c3b3.entry.js} +1 -1
  436. package/dist/tet-components/{p-ba896842.entry.js → p-d55a7d8e.entry.js} +1 -1
  437. package/dist/tet-components/{p-df478227.entry.js → p-d779f631.entry.js} +1 -1
  438. package/dist/tet-components/p-dace6aeb.js +1 -0
  439. package/dist/tet-components/{p-7735544a.entry.js → p-dcf7b54b.entry.js} +1 -1
  440. package/dist/tet-components/p-dcfe6759.entry.js +1 -0
  441. package/dist/tet-components/{p-318f671b.entry.js → p-deb071e8.entry.js} +1 -1
  442. package/dist/tet-components/{p-ff411417.entry.js → p-dfdac4b8.entry.js} +1 -1
  443. package/dist/tet-components/{p-17219f8f.js → p-e06817f1.js} +1 -1
  444. package/dist/tet-components/{p-13eee7f0.entry.js → p-e2f540a3.entry.js} +1 -1
  445. package/dist/tet-components/{p-39de75af.js → p-e340aec2.js} +1 -1
  446. package/dist/tet-components/p-e650994f.js +1 -0
  447. package/dist/tet-components/{p-f4efefbd.entry.js → p-e6cf88d0.entry.js} +1 -1
  448. package/dist/tet-components/{p-4ee31a1e.entry.js → p-eab907b1.entry.js} +1 -1
  449. package/dist/tet-components/p-eb06535a.entry.js +1 -0
  450. package/dist/tet-components/{p-e8bfa8c6.entry.js → p-f53247e0.entry.js} +1 -1
  451. package/dist/tet-components/{p-21f9d868.entry.js → p-f7779062.entry.js} +1 -1
  452. package/dist/tet-components/{p-aa7fdcd9.entry.js → p-fd9a47ca.entry.js} +1 -1
  453. package/dist/tet-components/{p-2d027882.entry.js → p-ff3e2982.entry.js} +1 -1
  454. package/dist/tet-components/tet-components.css +1 -1
  455. package/dist/tet-components/tet-components.esm.js +1 -1
  456. package/dist/types/components/advanced/address/tet-autocomplete/tet-autocomplete.d.ts +2 -0
  457. package/dist/types/components/advanced/cards/tet-card-list/tet-card-list.d.ts +4 -4
  458. package/dist/types/components/simple/inputs/tet-dropdown/tet-dropdown.d.ts +2 -0
  459. package/dist/types/components/simple/inputs/tet-input/tet-input.d.ts +21 -0
  460. package/dist/types/components/simple/lists/tet-news-card-list/tet-news-card-list.d.ts +4 -0
  461. package/dist/types/components.d.ts +16 -0
  462. package/dist/types/types/enums.d.ts +4 -0
  463. package/package.json +1 -1
  464. package/dist/tet-components/p-1ae8df7d.js +0 -1
  465. package/dist/tet-components/p-1ec7f341.js +0 -2
  466. package/dist/tet-components/p-26d8b85b.entry.js +0 -1
  467. package/dist/tet-components/p-2b127937.entry.js +0 -1
  468. package/dist/tet-components/p-3490c999.entry.js +0 -1
  469. package/dist/tet-components/p-8e056907.entry.js +0 -1
  470. package/dist/tet-components/p-c0a6c379.entry.js +0 -1
  471. package/dist/tet-components/p-c25a19e7.entry.js +0 -1
  472. package/dist/tet-components/p-e29ea423.entry.js +0 -1
  473. package/dist/tet-components/p-fc492042.entry.js +0 -1
@@ -58,6 +58,7 @@ export class TetDropdown {
58
58
  this.disabled = false;
59
59
  this.selectedOptionIndexes = [];
60
60
  this.isOpen = false;
61
+ this.isKeyboardFocus = false;
61
62
  }
62
63
  componentWillLoad() {
63
64
  this.preselectOption();
@@ -111,6 +112,7 @@ export class TetDropdown {
111
112
  return;
112
113
  }
113
114
  this.isOpen = false;
115
+ this.isKeyboardFocus = false;
114
116
  }
115
117
  /**
116
118
  * Handles the focusout event to close the dropdown menu if focus moves outside the component.
@@ -127,13 +129,14 @@ export class TetDropdown {
127
129
  return;
128
130
  }
129
131
  this.isOpen = false;
132
+ this.isKeyboardFocus = false;
130
133
  }
131
134
  /**
132
135
  * Renders the dropdown toggle button and label.
133
136
  */
134
137
  renderButton() {
135
138
  const { label, labelLogo, labelLogoGrayscale, labelRight, currentButtonLabel, currentButtonLabelRight, currentButtonLabelRightColor, isOpen, disabled } = this;
136
- return (h("div", { ref: el => (this.dropdownWrapperElement = el), class: { 'dropdown__wrapper': true, 'disabled': disabled } }, label && h("label", { htmlFor: 'dropdown-button', class: "dropdown__label" }, label), h("button", { id: 'dropdown-button', class: "dropdown__button", "aria-haspopup": "listbox", "aria-controls": 'dropdown-options', "aria-expanded": isOpen, ref: el => (this.dropdownButtonElement = el), onClick: this.handleDropdownToggle(), onKeyDown: this.handleButtonKeydown(), disabled: disabled }, !disabled && labelLogo && h("img", { src: labelLogo, alt: label }), disabled && labelLogoGrayscale && h("img", { src: labelLogoGrayscale, alt: label }), h("span", { class: { 'dropdown__button__selected': true, 'dropdown__button__selected--flex': this.flexLayout } }, currentButtonLabel), labelRight && h("span", { class: "dropdown__button__labelright", style: { 'color': currentButtonLabelRightColor } }, currentButtonLabelRight), h("tet-icon", { class: "dropdown__icon dropdown__chevron-icon", name: isOpen ? 'chevron-up' : 'chevron-down' }))));
139
+ return (h("div", { ref: el => (this.dropdownWrapperElement = el), class: { 'dropdown__wrapper': true, 'disabled': disabled } }, label && h("label", { htmlFor: 'dropdown-button', class: "dropdown__label" }, label), h("div", { class: "dropdown__button-wrapper" }, h("button", { id: 'dropdown-button', class: "dropdown__button", "aria-haspopup": "listbox", "aria-controls": 'dropdown-options', "aria-expanded": isOpen, ref: el => (this.dropdownButtonElement = el), onClick: this.handleDropdownToggle(), onKeyDown: this.handleButtonKeydown(), disabled: disabled }, !disabled && labelLogo && h("img", { src: labelLogo, alt: label }), disabled && labelLogoGrayscale && h("img", { src: labelLogoGrayscale, alt: label }), h("span", { class: { 'dropdown__button__selected': true, 'dropdown__button__selected--flex': this.flexLayout } }, currentButtonLabel), labelRight && h("span", { class: "dropdown__button__labelright", style: { 'color': currentButtonLabelRightColor } }, currentButtonLabelRight), h("tet-icon", { class: "dropdown__icon dropdown__chevron-icon", name: isOpen ? 'chevron-up' : 'chevron-down' })))));
137
140
  }
138
141
  /**
139
142
  * Renders the dropdown options menu.
@@ -144,7 +147,7 @@ export class TetDropdown {
144
147
  if (this.flexLayout) {
145
148
  mappedOptions = options.map(this.renderFlexOptionItem.bind(this));
146
149
  }
147
- return (h("ul", { id: `dropdown-options`, ref: el => (this.dropdownOptionsElement = el), class: "dropdown__options", role: "listbox", tabindex: "-1", "aria-labelledby": `dropdown-button`, "aria-expanded": isOpen, "aria-multiselectable": allowMultiple }, mappedOptions));
150
+ return (h("ul", { id: `dropdown-options`, ref: el => (this.dropdownOptionsElement = el), class: "dropdown__options", role: "listbox", tabindex: "-1", "aria-labelledby": `dropdown-button`, "aria-expanded": isOpen, "aria-multiselectable": allowMultiple }, h("div", { class: "dropdown__options-wrapper" }, mappedOptions)));
148
151
  }
149
152
  /**
150
153
  * Renders a dropdown option item.
@@ -191,7 +194,7 @@ export class TetDropdown {
191
194
  'dropdown__option': true,
192
195
  'dropdown__option--multiple': true,
193
196
  'dropdown__option--selected': selected
194
- }, role: "option", tabindex: "0", "aria-checked": selected, "data-value": value, onClick: handleClick, onKeyDown: handleKeyDown }, h("tet-checkbox", { checked: selected, theme: this.theme }), label));
197
+ }, role: "option", tabindex: "0", "aria-checked": selected, "data-value": value, onClick: handleClick, onKeyDown: handleKeyDown }, h("tet-checkbox", { checked: selected, theme: this.theme, tabindex: -1 }), label));
195
198
  }
196
199
  /**
197
200
  * Handles keyboard input for an option item.
@@ -220,6 +223,12 @@ export class TetDropdown {
220
223
  this.isOpen = false;
221
224
  this.dropdownButtonElement.focus();
222
225
  break;
226
+ case 'Tab':
227
+ const targetElement = target;
228
+ if (!targetElement.previousElementSibling && event.shiftKey) {
229
+ this.isKeyboardFocus = true;
230
+ }
231
+ break;
223
232
  default:
224
233
  break;
225
234
  }
@@ -236,15 +245,26 @@ export class TetDropdown {
236
245
  event.preventDefault();
237
246
  if (!this.isOpen) {
238
247
  this.isOpen = true;
248
+ this.isKeyboardFocus = true;
239
249
  }
240
- const { children } = this.dropdownOptionsElement;
250
+ const { children } = this.dropdownOptionsElement.children[0];
241
251
  if (children.length == 0) {
242
252
  return;
243
253
  }
244
254
  requestAnimationFrame(() => children[0].focus());
255
+ this.isKeyboardFocus = false;
245
256
  break;
246
257
  case 'Escape':
247
258
  this.isOpen = false;
259
+ this.isKeyboardFocus = false;
260
+ break;
261
+ case 'Tab':
262
+ this.isKeyboardFocus = false;
263
+ break;
264
+ case 'Enter':
265
+ case ' ':
266
+ case 'SpaceBar':
267
+ this.isKeyboardFocus = !this.isKeyboardFocus;
248
268
  break;
249
269
  default:
250
270
  break;
@@ -338,8 +358,8 @@ export class TetDropdown {
338
358
  });
339
359
  }
340
360
  render() {
341
- const { theme, isOpen } = this;
342
- return (h(Host, { key: 'e703a30d4a6c34303c63082553011468c08a9dc6' }, h("div", { key: '8280fc569da083682f972540c84f118c029ae81d', class: { 'dropdown': true, 'dropdown--open': isOpen, [`${theme}`]: true } }, this.renderButton(), this.renderOptions())));
361
+ const { theme, isOpen, isKeyboardFocus } = this;
362
+ return (h(Host, { key: '305032965ef0e379b79a0c2990a8975fd18cd35f' }, h("div", { key: '02eea1e67fc3412ea5a8366fb16d59ef2a841be5', class: { 'dropdown': true, 'dropdown--open': isOpen, 'focus-visible': isKeyboardFocus && isOpen, [`${theme}`]: true } }, this.renderButton(), this.renderOptions())));
343
363
  }
344
364
  static get is() { return "tet-dropdown"; }
345
365
  static get encapsulation() { return "shadow"; }
@@ -598,7 +618,8 @@ export class TetDropdown {
598
618
  static get states() {
599
619
  return {
600
620
  "selectedOptionIndexes": {},
601
- "isOpen": {}
621
+ "isOpen": {},
622
+ "isKeyboardFocus": {}
602
623
  };
603
624
  }
604
625
  static get events() {
@@ -222,12 +222,12 @@ export class TetExpandableInput {
222
222
  return '';
223
223
  }
224
224
  render() {
225
- return (h(Host, { key: '17d961b4da48837145748706d3ca226e6419c920' }, h("div", { key: '70f87d0139c7ce2dca5cb21583fbf765e1c20971', class: {
225
+ return (h(Host, { key: '37562d6a8f52f2863511c189d212a64ab3493969' }, h("div", { key: '17884b2b8c0658b09bb7af74cc8df4f723fdefea', class: {
226
226
  container: true,
227
227
  expanded: this.expanded,
228
228
  [this.mode]: true,
229
229
  dark: this.darkMode
230
- } }, h("div", { key: '08b8567445b1cae859abb0f44c0a1adbb7a4f50e', class: "input-wrapper", ref: (element) => (this.inputWrapper = element) }, h("tet-input", { key: 'd720bb7322ecb7cd234b374c4dcf96ccc3c45151', class: "tet-input", label: this.label, "input-class": this.class, "input-placeholder": this.renderInputContent ? this.placeholder : '', "accessibility-label": this.accessibilityLabel, "input-type": this.type, "input-value": this.value, "input-disabled": this.disabled, error: this.error, "icon-left": this.iconLeft, "icon-right": this.renderInputContent ? this.iconRight : '', iconRightClickCallback: this.iconRightClickCallback, theme: this.theme, ref: (inputElement) => (this.inputHtmlElement = inputElement) }), this.closeButton))));
230
+ } }, h("div", { key: '76e7f5bc4e7d3b8fe18cc744644b6ee5821462e9', class: "input-wrapper", ref: (element) => (this.inputWrapper = element) }, h("tet-input", { key: '19133005cfbfdaabd0a4b23c3d2466c678fac576', class: "tet-input", label: this.label, "input-class": this.class, "input-placeholder": this.renderInputContent ? this.placeholder : '', "accessibility-label": this.accessibilityLabel, "input-type": this.type, "input-value": this.value, "input-disabled": this.disabled, error: this.error, "icon-left": this.iconLeft, "icon-right": this.renderInputContent ? this.iconRight : '', iconRightClickCallback: this.iconRightClickCallback, theme: this.theme, ref: (inputElement) => (this.inputHtmlElement = inputElement) }), this.closeButton))));
231
231
  }
232
232
  static get is() { return "tet-expandable-input"; }
233
233
  static get encapsulation() { return "shadow"; }
@@ -808,7 +808,7 @@
808
808
  border: 0.0625rem solid var(--input-border-color);
809
809
  color: var(--input-text-color);
810
810
  background: var(--input-background-color);
811
- outline: none;
811
+ outline: 0.125rem solid transparent;
812
812
  font-size: inherit;
813
813
  font-family: var(--input-font-family);
814
814
  font-weight: 500;
@@ -846,6 +846,12 @@
846
846
  .tet-input__base.tet-input__mint-original:not(:disabled):focus, .tet-input__base.tet-input__mint-original:not(:disabled):active {
847
847
  outline: none;
848
848
  }
849
+ .tet-input__base.tet-input__mint-original.keyboard-focus:focus {
850
+ outline: 0.125rem solid var(--tc-blue-40);
851
+ outline-offset: 0.125rem;
852
+ transition: outline 0s;
853
+ box-shadow: none;
854
+ }
849
855
  .tet-input__base[disabled] {
850
856
  cursor: not-allowed;
851
857
  outline: none;
@@ -864,6 +870,15 @@
864
870
  border: 0.0625rem solid var(--input-focus-border-color);
865
871
  box-shadow: 0 0 0 0.25rem var(--input-focus-outline-color);
866
872
  }
873
+ .tet-input__base.keyboard-focus:focus {
874
+ outline: 0.125rem solid var(--tc-blue-40);
875
+ outline-offset: 0.125rem;
876
+ transition: outline 0s;
877
+ box-shadow: none;
878
+ }
879
+ .tet-input__base.error {
880
+ border-color: var(--input-color-error);
881
+ }
867
882
 
868
883
  .tet-input__label {
869
884
  display: block;
@@ -945,6 +960,13 @@
945
960
  .icon.clickable {
946
961
  cursor: pointer;
947
962
  }
963
+ .icon.clickable:focus-visible {
964
+ outline: 0.125rem solid var(--tc-blue-40);
965
+ outline-offset: 0.125rem;
966
+ transition: outline 0s;
967
+ border-radius: 0.125rem;
968
+ outline-offset: 0;
969
+ }
948
970
  .icon.icon-left {
949
971
  left: var(--input-icon-left-position, 0.75rem);
950
972
  }
@@ -2,6 +2,7 @@ import { Host, h } from "@stencil/core";
2
2
  import { validate } from "../../../../services/validators/index";
3
3
  import { t } from "../../../../services/translations/index";
4
4
  import { a11yBtnClick } from "../../../../services/utils/a11y";
5
+ import { IconName } from "../../../../types/enums";
5
6
  /**
6
7
  * The input enables the user to interact with and input content and data.
7
8
  * It supports left and right icons with click actions and error state.
@@ -19,7 +20,7 @@ export class TetInput {
19
20
  'icon-right': alignment === 'right',
20
21
  'clickable': clickable
21
22
  };
22
- return h("tet-icon", { name: iconName, class: classes, onClick: callback, tabIndex: clickable ? 0 : -1, onKeyDown: a11yBtnClick });
23
+ return h("tet-icon", { name: iconName, class: classes, onClick: callback, tabIndex: iconName === IconName.Close ? 0 : -1, onKeyDown: a11yBtnClick });
23
24
  };
24
25
  this.renderErrorMessages = () => {
25
26
  return (h("div", { class: "errors" }, this.errorMessages.map((message) => h("p", { class: "tet-input__error-message" }, t(message)))));
@@ -44,6 +45,8 @@ export class TetInput {
44
45
  this.autocomplete = 'off';
45
46
  this.maxlength = undefined;
46
47
  this.inputTabindex = undefined;
48
+ this.isKeyboardFocus = true;
49
+ this.focusVisible = false;
47
50
  }
48
51
  componentDidLoad() {
49
52
  if (!this.manualValidation) {
@@ -59,6 +62,37 @@ export class TetInput {
59
62
  async getInputHtmlElement() {
60
63
  return this.inputHtmlElement;
61
64
  }
65
+ /**
66
+ * Listen for Tab key event.
67
+ * @param {KeyboardEvent} event
68
+ */
69
+ onKeyDown(event) {
70
+ if (event.key === 'Tab') {
71
+ this.isKeyboardFocus = true;
72
+ }
73
+ }
74
+ /**
75
+ * Listen for click event and reset Keyboard focus on Input.
76
+ */
77
+ onMouseDown() {
78
+ this.isKeyboardFocus = false;
79
+ }
80
+ /**
81
+ * Set Keyboard Focus State on Input if Tab key is pressed.
82
+ */
83
+ addKeyboardFocus() {
84
+ return () => {
85
+ this.focusVisible = this.isKeyboardFocus;
86
+ };
87
+ }
88
+ /**
89
+ * Removes Keyboard Focus State.
90
+ */
91
+ removeKeyboardFocus() {
92
+ return () => {
93
+ this.focusVisible = false;
94
+ };
95
+ }
62
96
  /**
63
97
  * Returns the list of validation errors.
64
98
  */
@@ -82,11 +116,11 @@ export class TetInput {
82
116
  var _a, _b;
83
117
  const propClasses = (_b = (_a = this.class) === null || _a === void 0 ? void 0 : _a.split('w')) !== null && _b !== void 0 ? _b : [];
84
118
  // Merges the values defined in the class attribute with the inner classes.
85
- const inputClasses = Object.assign({ 'tet-input__base': true, [`tet-input__${this.theme}`]: true, 'with-icon--left': !!this.iconLeft, 'with-icon--right': !!this.iconRight, 'error': this.error || this.errorMessages.length > 0 }, propClasses.reduce((accumulator, value) => {
119
+ const inputClasses = Object.assign({ 'tet-input__base': true, [`tet-input__${this.theme}`]: true, 'with-icon--left': !!this.iconLeft, 'with-icon--right': !!this.iconRight, 'error': this.error || this.errorMessages.length > 0, 'keyboard-focus': this.focusVisible }, propClasses.reduce((accumulator, value) => {
86
120
  return Object.assign(Object.assign({}, accumulator), { [value]: true });
87
121
  }, {}));
88
122
  return (h(Host, null, h("label", { class: { [`${this.theme}`]: true } }, this.label &&
89
- h("span", { class: { 'tet-input__label': true, [`tet-input__${this.theme}`]: true } }, this.label), h("div", { class: { 'input-container': true, [`tet-input__${this.theme}`]: true } }, h("input", Object.assign({ class: inputClasses, placeholder: this.placeholder, type: this.type, value: this.value, ref: (el) => (this.inputHtmlElement = el), disabled: this.disabled, autoComplete: this.autocomplete ? this.autocomplete : 'off', maxlength: this.maxlength, readOnly: this.readonly }, (this.accessibilityLabel ? { "aria-label": this.accessibilityLabel } : {}), (this.inputTabindex ? { "tabindex": this.inputTabindex } : {}))), !!this.iconLeft && this.renderIcon(this.iconLeft, 'left', this.iconLeftClickCallback), !!this.iconRight && this.renderIcon(this.iconRight, 'right', this.iconRightClickCallback), h("slot", null))), this.errorMessages.length > 0 && this.renderErrorMessages()));
123
+ h("span", { class: { 'tet-input__label': true, [`tet-input__${this.theme}`]: true } }, this.label), h("div", { class: { 'input-container': true, [`tet-input__${this.theme}`]: true } }, h("input", Object.assign({ onFocus: this.addKeyboardFocus(), onFocusout: this.removeKeyboardFocus(), class: inputClasses, placeholder: this.placeholder, type: this.type, value: this.value, ref: (el) => (this.inputHtmlElement = el), disabled: this.disabled, autoComplete: this.autocomplete ? this.autocomplete : 'off', maxlength: this.maxlength, readOnly: this.readonly }, (this.accessibilityLabel ? { "aria-label": this.accessibilityLabel } : {}), (this.inputTabindex ? { "tabindex": this.inputTabindex } : {}))), !!this.iconLeft && this.renderIcon(this.iconLeft, 'left', this.iconLeftClickCallback), !!this.iconRight && this.renderIcon(this.iconRight, 'right', this.iconRightClickCallback), h("slot", null))), this.errorMessages.length > 0 && this.renderErrorMessages()));
90
124
  }
91
125
  static get is() { return "tet-input"; }
92
126
  static get encapsulation() { return "scoped"; }
@@ -444,7 +478,9 @@ export class TetInput {
444
478
  }
445
479
  static get states() {
446
480
  return {
447
- "errorMessages": {}
481
+ "errorMessages": {},
482
+ "isKeyboardFocus": {},
483
+ "focusVisible": {}
448
484
  };
449
485
  }
450
486
  static get methods() {
@@ -523,4 +559,19 @@ export class TetInput {
523
559
  }
524
560
  };
525
561
  }
562
+ static get listeners() {
563
+ return [{
564
+ "name": "keydown",
565
+ "method": "onKeyDown",
566
+ "target": "window",
567
+ "capture": false,
568
+ "passive": false
569
+ }, {
570
+ "name": "click",
571
+ "method": "onMouseDown",
572
+ "target": "window",
573
+ "capture": false,
574
+ "passive": false
575
+ }];
576
+ }
526
577
  }
@@ -220,7 +220,7 @@ export class TetInput {
220
220
  */
221
221
  render() {
222
222
  const { label, helperText, value, disabled, error, completed, isOpen, suffix } = this;
223
- return (h("div", { key: '386248b16bd2f32af1f1533c435e007b5b7f0b4a', class: { 'number-input': true, 'disabled': disabled, 'error': error, 'completed': completed } }, !!label && (h("label", { key: 'e3bbdef510f04cbab99482e4cef241bd64420550', class: "number-input__label", htmlFor: "number-input" }, label)), h("div", { key: '8e91fe00d0e3a409a0cc71fa558377809ce2c7a8', class: "number-input__input-container", onClick: this.shiftFocus }, h("input", Object.assign({ key: '8f9cc68c92f13a2376d016906823751c55a64ce6', ref: (htmlInputElement) => (this.inputElement = htmlInputElement), class: { 'number-input__input': true, 'number-input__input--hidden': this.isValueHidden }, disabled: disabled, value: value, type: "number", id: "number-input" }, (this.accessibilityLabel ? { "aria-label": this.accessibilityLabel } : {}))), h("div", { key: 'e083b50d065a1607af40efb416afee1782696bac', ref: (htmlInputElement) => (this.inputElementHidden = htmlInputElement), class: "number-input__input-invisible" }, value), !!suffix && h("div", { key: 'b7d51f9e2f3ea7aa6b182093b62c23c941640413', class: "number-input__input-suffix" }, suffix.name), !!this.suffixes && this.suffixes.length > 1 && (h("tet-button", { key: '3e340cedbc03c00adce4b185edd277754aac4441', type: "ghost", size: "small", ref: (element) => (this.chevronElement = element), class: { 'number-input__cheveron': true }, onClick: this.onChevronClick, "accessibility-label": this.buttonAccessibilityLabel }, !isOpen && h("tet-icon", { key: '1bc7bfc1b741866f0b55e08ed6593c0cc853fb40', name: "chevron-down" }), isOpen && h("tet-icon", { key: '8bdce1961ad4c3e583c1537992e94117fed8c393', name: "chevron-up" }))), isOpen && (h("div", { key: 'b3368dedae72d1e7c94948e0db0ea369c37d3b3b', class: "number-input__dropdown", ref: (htmlDivElement) => (this.dropdownElement = htmlDivElement) }, this.renderDropdownContent()))), !!helperText && h("div", { key: '6f6f75f1bbc511e7ab6c00b8058e0c662504bab4', class: "number-input__helper-text" }, helperText)));
223
+ return (h("div", { key: 'f326524a925c120ecddba15833dc8e4cb8897179', class: { 'number-input': true, 'disabled': disabled, 'error': error, 'completed': completed } }, !!label && (h("label", { key: '7e1c0f9930b5fe8c4d3eecb8fdd705e0d8bc3133', class: "number-input__label", htmlFor: "number-input" }, label)), h("div", { key: 'a2e9136935db0c1277234d0bb2e7143801843189', class: "number-input__input-container", onClick: this.shiftFocus }, h("input", Object.assign({ key: 'fccaeab297ae6cc313dd0bc4759ab53316ab53b4', ref: (htmlInputElement) => (this.inputElement = htmlInputElement), class: { 'number-input__input': true, 'number-input__input--hidden': this.isValueHidden }, disabled: disabled, value: value, type: "number", id: "number-input" }, (this.accessibilityLabel ? { "aria-label": this.accessibilityLabel } : {}))), h("div", { key: 'f3fb264c0e839c20a9e26981d3bd7f552ba3bd3e', ref: (htmlInputElement) => (this.inputElementHidden = htmlInputElement), class: "number-input__input-invisible" }, value), !!suffix && h("div", { key: '55139698a73b5c4ddc56ec20c0bb08bc1f894956', class: "number-input__input-suffix" }, suffix.name), !!this.suffixes && this.suffixes.length > 1 && (h("tet-button", { key: 'd4711796220d3ef02ae655583ad3403f14dd6ac2', type: "ghost", size: "small", ref: (element) => (this.chevronElement = element), class: { 'number-input__cheveron': true }, onClick: this.onChevronClick, "accessibility-label": this.buttonAccessibilityLabel }, !isOpen && h("tet-icon", { key: 'a3cb79dac9ed077f4884e2f46ddec3ce9691372c', name: "chevron-down" }), isOpen && h("tet-icon", { key: '8a319a2b03507f82b89c59829686a92ad0bdb6db', name: "chevron-up" }))), isOpen && (h("div", { key: '857d7c821006472c787e3bdc68c61fe305a1ae65', class: "number-input__dropdown", ref: (htmlDivElement) => (this.dropdownElement = htmlDivElement) }, this.renderDropdownContent()))), !!helperText && h("div", { key: '2ff12b36a98c717107cd80cfab1a91cbf71e0216', class: "number-input__helper-text" }, helperText)));
224
224
  }
225
225
  static get is() { return "tet-number-input"; }
226
226
  static get encapsulation() { return "shadow"; }
@@ -208,6 +208,11 @@
208
208
  .range-slider__slider-container::-webkit-scrollbar {
209
209
  display: none;
210
210
  }
211
+ .range-slider__slider-container:has(.range-slider__slider-wrapper input:focus-visible) ~ .range-slider__tooltip-handle {
212
+ outline: 0.125rem solid var(--tc-blue-40);
213
+ outline-offset: 0.125rem;
214
+ transition: outline 0s;
215
+ }
211
216
  .range-slider__slider-wrapper {
212
217
  display: flex;
213
218
  width: 100%;
@@ -411,6 +416,11 @@
411
416
  position: absolute;
412
417
  top: calc(var(--slider-track-height) + 3.5rem);
413
418
  }
419
+ .range-slider__control:focus-visible {
420
+ outline: 0.125rem solid var(--tc-blue-40);
421
+ outline-offset: 0.125rem;
422
+ transition: outline 0s;
423
+ }
414
424
  .range-slider--large .range-slider__control {
415
425
  position: static;
416
426
  }
@@ -689,31 +689,31 @@ export class TetRangeSlider {
689
689
  this.updateProgress();
690
690
  }
691
691
  render() {
692
- return (h(Host, { key: 'd69725adaabd133db13bfe41371de4578fe38236' }, h("div", { key: 'ae804d77d4066d64bb07af4b257bf16f47ccf893', class: {
692
+ return (h(Host, { key: '52af8dbdb55c7e921fa0e2306178a947b5e6304c' }, h("div", { key: '5074471aa06625ae6bf32994539fe4ba141039e4', class: {
693
693
  'range-slider': true,
694
694
  [`range-slider--${this.containerSize}`]: true,
695
695
  [`range-slider--${this.type}`]: true,
696
696
  'range-slider--no-controls': !this.withControls,
697
697
  'range-slider--no-input': !this.withInput,
698
698
  [this.theme]: true,
699
- } }, h("div", { key: '4297c6ee75a850cc6684e51f00d06bb962b8b26a', class: {
699
+ } }, h("div", { key: '3a4dbf9e2658be4ccd1992c42ffacb90ee651342', class: {
700
700
  'range-slider__input-container': true,
701
701
  'hidden': !this.withInput,
702
- } }, h("tet-input", Object.assign({ key: 'dceca05da6d539585fa072baef543c7f49c34482', "input-class": "range-slider__input", "input-type": "number", "input-value": this.currentValue, ref: inputEl => (this.inputRef = inputEl), theme: this.theme, onInput: this.onInputChange, onKeyDown: this.onInputKeyDown, accessibilityLabel: this.numberInputAccessibilityLabel }, (this.containerSize !== 'large' ? { inputTabindex: 3 } : {})))), h("div", { key: 'e554df731cd1b11a5d5245a8d05b4b315e41bf2b', class: "range-slider__container" }, h("tet-button", Object.assign({ key: 'b1166b0930dfbb5dd5e464ee2f5eca0873664056', theme: this.theme, iconMode: true, class: {
702
+ } }, h("tet-input", Object.assign({ key: '29704c985a33b309bee79608fd4f0c8f37ec262e', "input-class": "range-slider__input", "input-type": "number", "input-value": this.currentValue, ref: inputEl => (this.inputRef = inputEl), theme: this.theme, onInput: this.onInputChange, onKeyDown: this.onInputKeyDown, accessibilityLabel: this.numberInputAccessibilityLabel }, (this.containerSize !== 'large' ? { inputTabindex: 3 } : {})))), h("div", { key: 'ee85a4424e5447ecabb29fdcd81491070e3d1ef2', class: "range-slider__container" }, h("tet-button", Object.assign({ key: '5a11f5af863989ea5eeb49bb76e02572655035fd', theme: this.theme, iconMode: true, class: {
703
703
  'range-slider__control': true,
704
704
  'range-slider__control--left': true,
705
705
  'hidden': !this.withControls,
706
- }, clickCallback: this.onControlPreviousClick }, (this.reduceButtonAccessibilityLabel ? { accessibilityLabel: this.reduceButtonAccessibilityLabel } : {}), (this.containerSize !== 'large' ? { tabindex: 2 } : {})), h("tet-icon", { key: '3e27a25df0cd8276483773b2bc3acf749a5f8405', name: "remove", class: "range-slider__control--icon" })), h("div", { key: '023af8cd8b2cc9d8b66ee4b2be2c8a62985743f4', onTouchStart: this.onContainerTouchStart, onTouchEnd: this.onContainerTouchEnd, onMouseDown: this.onContainerMouseDown, onScroll: this.onContainerScroll, ref: sliderContainerEl => (this.sliderContainerRef = sliderContainerEl), class: "range-slider__slider-container", draggable: false }, h("div", { key: '6449f17be8f4601d54f46d5f8c6a8f3cfaa05576', class: "range-slider__slider-wrapper" }, h("input", Object.assign({ key: 'eec4d3ccea3fa5a05986b01da84efa6dfb37d8e6', ref: sliderEl => (this.sliderRef = sliderEl), type: "range", min: this.minValue, max: this.maxValue, step: this.step, value: this.defaultValue, list: "steplist", id: "rangeInput", onInput: this.onSliderInput, onChange: this.onSliderChange, onPointerDown: this.onSliderPointerDown, onPointerUp: this.onSliderPointerUp, class: "range-slider__slider" }, (this.sliderInputAccessibilityLabel ? { "aria-label": this.sliderInputAccessibilityLabel } : {}), (this.containerSize !== 'large' ? { tabindex: 1 } : {})))), h("div", { key: '3211a80ffc8ad054e2dad57afc33df92c87e8b88', class: "range-slider__track range-slider__track--background" }), h("div", { key: '2cc7290a5690756ce64b32ad4bc15ba3067b2570', ref: progressTrackEl => (this.progressTrackRef = progressTrackEl), class: "range-slider__track range-slider__track--progress" }), h("div", { key: 'd834ab41423a90cb2eca66062bfffec652ee9f3d', ref: tickContainerEl => (this.tickContainerRef = tickContainerEl), class: "range-slider__tick-container" }), h("div", { key: '2e6593d3ac4a7cbbfb2c071886d4d94b767fc886', ref: dataLabelEl => (this.dataLabelRef = dataLabelEl), class: {
706
+ }, clickCallback: this.onControlPreviousClick }, (this.reduceButtonAccessibilityLabel ? { accessibilityLabel: this.reduceButtonAccessibilityLabel } : {}), (this.containerSize !== 'large' ? { tabindex: 2 } : {})), h("tet-icon", { key: 'c7be06bc2e9d468fbe9eb07995e6ab346cdd76b4', name: "remove", class: "range-slider__control--icon" })), h("div", { key: 'c827ababceaef92a842b27d26f0a5b8b5bcb4cab', onTouchStart: this.onContainerTouchStart, onTouchEnd: this.onContainerTouchEnd, onMouseDown: this.onContainerMouseDown, onScroll: this.onContainerScroll, ref: sliderContainerEl => (this.sliderContainerRef = sliderContainerEl), class: "range-slider__slider-container", draggable: false }, h("div", { key: '8ce6676b8110a901b356a11487b84cc4ee59d632', class: "range-slider__slider-wrapper" }, h("input", Object.assign({ key: 'ac5053a9ed6b6b2e50e2572a1880c533d43c7f4f', ref: sliderEl => (this.sliderRef = sliderEl), type: "range", min: this.minValue, max: this.maxValue, step: this.step, value: this.defaultValue, list: "steplist", id: "rangeInput", onInput: this.onSliderInput, onChange: this.onSliderChange, onPointerDown: this.onSliderPointerDown, onPointerUp: this.onSliderPointerUp, class: "range-slider__slider" }, (this.sliderInputAccessibilityLabel ? { "aria-label": this.sliderInputAccessibilityLabel } : {}), (this.containerSize !== 'large' ? { tabindex: 1 } : {})))), h("div", { key: 'd7e5ca3d9d1cea51f204a56414e387dba46f5e7b', class: "range-slider__track range-slider__track--background" }), h("div", { key: '2a308ea9fd72080d7b47e003d341c6fc521b1404', ref: progressTrackEl => (this.progressTrackRef = progressTrackEl), class: "range-slider__track range-slider__track--progress" }), h("div", { key: 'ddf626b67e641ef8b30cc7b3e6cf975e2c052694', ref: tickContainerEl => (this.tickContainerRef = tickContainerEl), class: "range-slider__tick-container" }), h("div", { key: 'fe7692bf08ee1d95e473e7d913bea28e0a8cf3fc', ref: dataLabelEl => (this.dataLabelRef = dataLabelEl), class: {
707
707
  'range-slider__data-label-container': true,
708
708
  'hidden': this.type === 'secondary' && this.containerSize === 'small',
709
- } })), h("div", { key: '3b71468e553c07627870a8d454f5eaac38f76610', class: {
709
+ } })), h("div", { key: 'b9db111157d714ee9791db18c6882a12c3fbc5f3', class: {
710
710
  'range-slider__current-step-container': true,
711
711
  'hidden': !this.withCurrentStepCounter,
712
- } }, h("div", { key: '249d53ac4883be02bb8e48a27b05f386fc678a67', class: "range-slider__current-step", "aria-live": "polite" }, this.dataSet.indexOf(this.getClosestOverrideDataPoint()) + 1, "/", this.dataPoints.length)), h("div", { key: 'e45953c8badfb41992c65df47b0e5ef7a1d3f6de', ref: toolbarHandleEl => (this.tooltipHandleRef = toolbarHandleEl), class: "range-slider__tooltip-handle" }, h("div", { key: '905ac500f576696e668c2d6d7eb495d29e150cf9', class: "range-slider__tooltip translation-none", style: { [`--tooltip-offset`]: `${this.tooltipOffset}rem` }, "aria-live": "polite" }, this.getTooltipValue())), h("tet-button", Object.assign({ key: '278b15c2239b28b350c6c2b9e3b1cbedfe8c5871', theme: this.theme, iconMode: true, class: {
712
+ } }, h("div", { key: '4c5b48d5ddffa6b8f544493417a165a3838b4dc8', class: "range-slider__current-step", "aria-live": "polite" }, this.dataSet.indexOf(this.getClosestOverrideDataPoint()) + 1, "/", this.dataPoints.length)), h("div", { key: '53a35748de8014e98c7852bed551ac278784f4f5', ref: toolbarHandleEl => (this.tooltipHandleRef = toolbarHandleEl), class: "range-slider__tooltip-handle" }, h("div", { key: '1277c19ac4e7dcc4a24c592e21fec25026f169b0', class: "range-slider__tooltip translation-none", style: { [`--tooltip-offset`]: `${this.tooltipOffset}rem` }, "aria-live": "polite" }, this.getTooltipValue())), h("tet-button", Object.assign({ key: '8a798655cfc0d467a9034654d2ca3e5a4bb971b8', theme: this.theme, iconMode: true, class: {
713
713
  'range-slider__control': true,
714
714
  'range-slider__control--right': true,
715
715
  'hidden': !this.withControls,
716
- }, clickCallback: this.onControlNextClick }, (this.addButtonAccessibilityLabel ? { accessibilityLabel: this.addButtonAccessibilityLabel } : {}), (this.containerSize !== 'large' ? { tabindex: 4 } : {})), h("tet-icon", { key: '60dd7a4fa527db277de744deb36aa72f088f51e2', name: "add", class: "range-slider__control--icon" }))))));
716
+ }, clickCallback: this.onControlNextClick }, (this.addButtonAccessibilityLabel ? { accessibilityLabel: this.addButtonAccessibilityLabel } : {}), (this.containerSize !== 'large' ? { tabindex: 4 } : {})), h("tet-icon", { key: '5d80fe8d67dca6ba354fbcf49e1e27441a6406d1', name: "add", class: "range-slider__control--icon" }))))));
717
717
  }
718
718
  static get is() { return "tet-range-slider"; }
719
719
  static get encapsulation() { return "shadow"; }
@@ -122,7 +122,7 @@ export class TetStepperInput {
122
122
  */
123
123
  render() {
124
124
  const { onMinusClick, value, onPlusClick } = this;
125
- return (h("div", { key: '4987c0b4bd15d6ed778eb5ff50978d3a1c5466fc', class: "stepper-input" }, h("button", { key: '5b48a293a65327e4e53fed860031c5b9fc1fdb2d', class: "stepper-input__control", "aria-label": t('components-number-input-decrease'), onKeyDown: this.handleOptionKeydown(onMinusClick) }, h("tet-icon", { key: '85fbb37b912f8e2d5cc57d8b9835550c0eb2ee16', name: "remove", onClick: onMinusClick })), h("input", Object.assign({ key: '3d0dd81165ce5580833a8bd3981fe99297e559d4', ref: (htmlInputElement) => (this.inputElement = htmlInputElement), class: "stepper-input__value", value: value, type: "number" }, (this.accessibilityLabel ? { "aria-label": this.accessibilityLabel } : {}))), h("button", { key: '66692dbce9afbc00322b8eb52c4e1e944f0a6ba8', class: "stepper-input__control", "aria-label": t('components-number-input-increase'), onKeyDown: this.handleOptionKeydown(onPlusClick) }, h("tet-icon", { key: 'a8904874d5170f5a4f1b2384bd2c0072800bf388', name: "add", onClick: onPlusClick }))));
125
+ return (h("div", { key: 'b8baa0962d9e8287741483b9f8aaa7065ea84de8', class: "stepper-input" }, h("button", { key: 'b6e36b43624b60eecddffc4a4c8dcbf48d504195', class: "stepper-input__control", "aria-label": t('components-number-input-decrease'), onKeyDown: this.handleOptionKeydown(onMinusClick) }, h("tet-icon", { key: '6369c3dcf26349ea47613f7fa9c3868aa85cb54f', name: "remove", onClick: onMinusClick })), h("input", Object.assign({ key: 'cb57e8e5a6608a9176e1d20a75e9e38fe74f801d', ref: (htmlInputElement) => (this.inputElement = htmlInputElement), class: "stepper-input__value", value: value, type: "number" }, (this.accessibilityLabel ? { "aria-label": this.accessibilityLabel } : {}))), h("button", { key: '2c05d122dc811fae2d8832a3f7a659b47ce4344d', class: "stepper-input__control", "aria-label": t('components-number-input-increase'), onKeyDown: this.handleOptionKeydown(onPlusClick) }, h("tet-icon", { key: '3a8c08cc7a927d7c86d27d28bccf05be02071e70', name: "add", onClick: onPlusClick }))));
126
126
  }
127
127
  static get is() { return "tet-stepper-input"; }
128
128
  static get encapsulation() { return "shadow"; }
@@ -15,7 +15,7 @@ export class TetTextarea {
15
15
  }
16
16
  render() {
17
17
  const { value, label, placeholder, disabled, errorMessages, renderErrorMessage } = this;
18
- return (h(Host, { key: 'ed0e53afea972375abde03a9389f339760660bb4' }, label && (h("label", { key: '58cdf75fcab5d0fe43836f7a9a850c9eafbb1961', class: "tet-textarea__label", htmlFor: "textarea" }, label)), h("textarea", { key: '2c5892e699357890c1251244f7c0d0cb4d1b66d9', id: "textarea", class: { 'tet-textarea__base': true, 'error': !!errorMessages.length }, placeholder: placeholder, disabled: disabled, autocomplete: "off" }, value !== null && value !== void 0 ? value : ''), !!errorMessages.length && h("div", { key: '513840d4b5f4b90131ea15341ab3669a47050531', class: "error-messages" }, errorMessages.map(renderErrorMessage))));
18
+ return (h(Host, { key: 'f2fd8ebf50607715fa39ed1ca3082402a0fdf8a7' }, label && (h("label", { key: '36b8206cbd9d0badadb1e9ef95d5c7ba8d0ba537', class: "tet-textarea__label", htmlFor: "textarea" }, label)), h("textarea", { key: 'cdb3ed82a5b2f60c773e610a39869e40a4584ac2', id: "textarea", class: { 'tet-textarea__base': true, 'error': !!errorMessages.length }, placeholder: placeholder, disabled: disabled, autocomplete: "off" }, value !== null && value !== void 0 ? value : ''), !!errorMessages.length && h("div", { key: '30f0890b17c4431ea4322c34aca6f7e33b01f520', class: "error-messages" }, errorMessages.map(renderErrorMessage))));
19
19
  }
20
20
  static get is() { return "tet-textarea"; }
21
21
  static get encapsulation() { return "shadow"; }
@@ -36,15 +36,15 @@ describe('tet-news-card-list', () => {
36
36
  <tet-news-card-list>
37
37
  <mock:shadow-root>
38
38
  <tet-card-list controlscrollamount="350" initialscrollamount="0" withcontrols="" withoverflowopacity=""
39
- exportparts="card-list, card-list-container" part="card-list-component"></tet-card-list>
39
+ exportparts="card-list, card-list-container" part="card-list-component" theme="light"></tet-card-list>
40
40
  </mock:shadow-root>
41
41
  </tet-news-card-list>
42
42
  `);
43
43
  });
44
- it('renders items', async () => {
44
+ it('renders a list with items in dark theme', async () => {
45
45
  const page = await newSpecPage({
46
46
  components: [TetNewsCardList],
47
- template: () => (h("tet-news-card-list", { items: ITEMS, withScrollbar: false, withMouseDrag: false })),
47
+ template: () => (h("tet-news-card-list", { items: ITEMS, withScrollbar: false, withMouseDrag: false, theme: "dark" })),
48
48
  });
49
49
  expect(page.root).toEqualHtml(`
50
50
  <tet-news-card-list>
@@ -52,9 +52,14 @@ describe('tet-news-card-list', () => {
52
52
  <tet-card-list
53
53
  controlscrollamount="350"
54
54
  initialscrollamount="0"
55
- withcontrols="" withoverflowopacity="" exportparts="card-list, card-list-container" part="card-list-component">
56
- <div class="tet-news-card" part="card-list-item">
57
- <a data-index="0" class="tet-news-card__link-container" href="#" target="_blank" tabindex="0">
55
+ withcontrols=""
56
+ withoverflowopacity=""
57
+ exportparts="card-list, card-list-container"
58
+ part="card-list-component"
59
+ theme="dark"
60
+ >
61
+ <div class="tet-news-card dark" part="card-list-item">
62
+ <a data-index="0" class="tet-news-card__link-container" href="#" target="_blank">
58
63
  <div class="tet-news-card__image__container">
59
64
  <div class="tet-news-card__image">
60
65
  <img alt="Alt text" src="https://picsum.photos/seed/1/700/560">
@@ -68,8 +73,8 @@ describe('tet-news-card-list', () => {
68
73
  </div>
69
74
  </a>
70
75
  </div>
71
- <div class="tet-news-card" part="card-list-item">
72
- <a data-index="1" class="tet-news-card__link-container" href="#" target="" tabindex="0">
76
+ <div class="tet-news-card dark" part="card-list-item">
77
+ <a data-index="1" class="tet-news-card__link-container" href="#" target="">
73
78
  <div class="tet-news-card__image__container">
74
79
  <div class="tet-news-card__image" >
75
80
  <img alt="" src="https://picsum.photos/seed/2/350/280">
@@ -83,8 +88,8 @@ describe('tet-news-card-list', () => {
83
88
  </div>
84
89
  </a>
85
90
  </div>
86
- <div class="tet-news-card" part="card-list-item">
87
- <a data-index="2" class="tet-news-card__link-container" href="#" target="" tabindex="0">
91
+ <div class="tet-news-card dark" part="card-list-item">
92
+ <a data-index="2" class="tet-news-card__link-container" href="#" target="">
88
93
  <div class="tet-news-card__image__container">
89
94
  <div class="tet-news-card__image" >
90
95
  <img alt="" src="https://picsum.photos/seed/3/350/280">
@@ -371,6 +371,11 @@
371
371
  --news-card-image-width: var(--news-card-width);
372
372
  --news-card-image-tablet-width: var(--news-card-tablet-width);
373
373
  --news-card-image-mobile-width: var(--news-card-mobile-width);
374
+ --news-card-primary-text-color: var(--tc-text-primary);
375
+ --news-card-date-text-color: var(--tc-text-secondary);
376
+ --news-card-link-text-color: var(--tc-text-secondary);
377
+ --news-card-link-hover-text-color: var(--tc-text-primary);
378
+ --news-card-link-icon-color: var(--tc-icon-secondary);
374
379
  }
375
380
 
376
381
  tet-card-list {
@@ -387,6 +392,13 @@ tet-card-list {
387
392
  padding: 0;
388
393
  width: var(--news-card-width);
389
394
  }
395
+ .tet-news-card.dark {
396
+ --news-card-primary-text-color: var(--tc-text-primary-dark);
397
+ --news-card-date-text-color: var(--tc-text-secondary-dark);
398
+ --news-card-link-text-color: var(--tc-text-secondary-dark);
399
+ --news-card-link-hover-text-color: var(--tc-text-primary-dark);
400
+ --news-card-link-icon-color: var(--tc-icon-secondary-dark);
401
+ }
390
402
  .tet-news-card__image__container {
391
403
  box-sizing: border-box;
392
404
  overflow: hidden;
@@ -419,20 +431,21 @@ tet-card-list {
419
431
  }
420
432
  .tet-news-card__date {
421
433
  font: 400 0.875rem/1.25rem "Inter", "Gilroy, Arial, sans-serif";
422
- color: rgb(67, 75, 86);
434
+ color: var(--news-card-date-text-color);
423
435
  letter-spacing: -0.005625rem;
424
436
  margin-bottom: 0.25rem;
425
437
  }
426
438
  .tet-news-card__title {
427
439
  font: 600 1.25rem/1.5rem "Gilroy", "Gilroy, Arial, sans-serif";
428
440
  text-align: left;
441
+ color: var(--news-card-primary-text-color);
429
442
  }
430
443
  .tet-news-card__divider {
431
444
  flex: 1;
432
445
  }
433
446
  .tet-news-card__link {
434
447
  font: 400 1rem/1.5rem "Inter", "Gilroy, Arial, sans-serif";
435
- color: rgb(67, 75, 86);
448
+ color: var(--news-card-link-text-color);
436
449
  letter-spacing: -0.01125rem;
437
450
  margin-top: 0.75rem;
438
451
  display: inline-flex;
@@ -440,19 +453,19 @@ tet-card-list {
440
453
  text-decoration-line: none;
441
454
  }
442
455
  .hover .tet-news-card__link {
443
- color: rgb(10, 11, 13);
456
+ color: var(--news-card-link-hover-text-color);
444
457
  }
445
458
  .tet-news-card__link-container {
459
+ font: 400 1rem/1.5rem "Inter", "Gilroy, Arial, sans-serif";
446
460
  display: flex;
447
461
  flex-direction: column;
448
462
  text-decoration: none;
449
- font: 400 1rem/1.5rem "Inter", "Gilroy, Arial, sans-serif";
450
- color: rgb(10, 11, 13);
463
+ color: var(--news-card-primary-text-color);
451
464
  height: 100%;
452
465
  }
453
466
  .tet-news-card__link-icon {
454
467
  --icon-size: 1rem;
455
- --icon-color: rgb(153, 160, 174);
468
+ --icon-color: var(--news-card-link-icon-color);
456
469
  margin-left: 0.25rem;
457
470
  display: inline-flex;
458
471
  align-items: center;
@@ -37,7 +37,10 @@ export class TetNewsCardList {
37
37
  */
38
38
  this.renderListCard = (item, index) => {
39
39
  var _a;
40
- return (h("div", { class: "tet-news-card", part: "card-list-item" }, h("a", { class: "tet-news-card__link-container", "data-index": index, href: item.redirectHref, target: item.redirectNewTab ? '_blank' : '', onMouseOver: this.handleCardMouseOver, onMouseLeave: this.handleCardMouseLeave, onClick: item.clickCallback, tabIndex: 0 }, h("div", { class: "tet-news-card__image__container" }, h("div", { class: "tet-news-card__image", onMouseDown: this.disableImageEvents }, h("img", { src: item.imageSrc, alt: (_a = item.imageAlt) !== null && _a !== void 0 ? _a : '' }))), item.date && h("span", { class: "tet-news-card__date" }, item.date), h("span", { class: "tet-news-card__title" }, item.title), h("span", { class: "tet-news-card__divider" }), h("div", { class: "tet-news-card__link" }, h("span", { class: "tet-news-card__underline" }, item.redirectText), ' ', h("tet-icon", { class: "tet-news-card__link-icon", name: "chevron-right" })))));
40
+ return (h("div", { class: {
41
+ "tet-news-card": true,
42
+ [this.theme]: true,
43
+ }, part: "card-list-item" }, h("a", { class: "tet-news-card__link-container", "data-index": index, href: item.redirectHref, target: item.redirectNewTab ? '_blank' : '', onMouseOver: this.handleCardMouseOver, onMouseLeave: this.handleCardMouseLeave, onFocus: this.handleCardMouseOver, onBlur: this.handleCardMouseLeave, onClick: item.clickCallback }, h("div", { class: "tet-news-card__image__container" }, h("div", { class: "tet-news-card__image", onMouseDown: this.disableImageEvents }, h("img", { src: item.imageSrc, alt: (_a = item.imageAlt) !== null && _a !== void 0 ? _a : '' }))), item.date && h("span", { class: "tet-news-card__date" }, item.date), h("span", { class: "tet-news-card__title" }, item.title), h("span", { class: "tet-news-card__divider" }), h("div", { class: "tet-news-card__link" }, h("span", { class: "tet-news-card__underline" }, item.redirectText), ' ', h("tet-icon", { class: "tet-news-card__link-icon", name: "chevron-right" })))));
41
44
  };
42
45
  this.items = [];
43
46
  this.withControls = true;
@@ -48,6 +51,7 @@ export class TetNewsCardList {
48
51
  this.withScrollbar = true;
49
52
  this.withMouseDrag = false;
50
53
  this.withVirtualScroll = false;
54
+ this.theme = 'light';
51
55
  }
52
56
  render() {
53
57
  const { withControls, withMouseDrag, withScrollbar, withVirtualScroll, initialScrollAmount, disableScroll, scrollFullWidth, controlScrollAmount, } = this;
@@ -61,7 +65,7 @@ export class TetNewsCardList {
61
65
  scrollFullWidth,
62
66
  controlScrollAmount,
63
67
  };
64
- return (h(Host, { key: 'e5c27006fc39eb5032940928d8962bc9663ec0bf' }, h("tet-card-list", Object.assign({ key: '57ae72acde66ef611444da732ff1e10e1b924845', part: "card-list-component", exportparts: "card-list, card-list-container", withOverflowOpacity: true }, props), this.items.map((item, index) => this.renderListCard(item, index)))));
68
+ return (h(Host, { key: '6e98afa7859660a19f542bcc5d1be281b2bc1e41' }, h("tet-card-list", Object.assign({ key: 'b5ce16e93f1d14c011286f956138654b953e84b9', theme: this.theme, part: "card-list-component", exportparts: "card-list, card-list-container", withOverflowOpacity: true }, props), this.items.map((item, index) => this.renderListCard(item, index)))));
65
69
  }
66
70
  static get is() { return "tet-news-card-list"; }
67
71
  static get encapsulation() { return "shadow"; }
@@ -242,6 +246,24 @@ export class TetNewsCardList {
242
246
  "attribute": "with-virtual-scroll",
243
247
  "reflect": false,
244
248
  "defaultValue": "false"
249
+ },
250
+ "theme": {
251
+ "type": "string",
252
+ "mutable": false,
253
+ "complexType": {
254
+ "original": "'light' | 'dark'",
255
+ "resolved": "\"dark\" | \"light\"",
256
+ "references": {}
257
+ },
258
+ "required": false,
259
+ "optional": false,
260
+ "docs": {
261
+ "tags": [],
262
+ "text": "The theme of the news card list."
263
+ },
264
+ "attribute": "theme",
265
+ "reflect": false,
266
+ "defaultValue": "'light'"
245
267
  }
246
268
  };
247
269
  }
@@ -95,7 +95,7 @@ export class TetSelectionList {
95
95
  return this.selectedItems;
96
96
  }
97
97
  render() {
98
- return (h("ul", { key: '9672bb24025846ba66e37e07a06175c9cf4ad5a1', class: "list", part: "selection-list" }, this.items.map(this.renderListItem)));
98
+ return (h("ul", { key: '41e58b8fd13f0ac75ac0a61d4d119ad62985b0fe', class: "list", part: "selection-list" }, this.items.map(this.renderListItem)));
99
99
  }
100
100
  static get is() { return "tet-selection-list"; }
101
101
  static get encapsulation() { return "shadow"; }