@tet/tet-components 1.4.22-testing → 1.4.23-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.
- package/dist/cjs/{address-656e77f6.js → address-f852270f.js} +1 -1
- package/dist/cjs/{assets-f64f0e16.js → assets-b9d36649.js} +1 -1
- package/dist/cjs/{async-request-fcf33aba.js → async-request-4517f566.js} +1 -1
- package/dist/cjs/{http-codes-40da1e61.js → http-codes-062f76cf.js} +1 -1
- package/dist/cjs/{index-4b423f33.js → index-19a7608f.js} +1 -1
- package/dist/cjs/{index-3242ff3f.js → index-faec4c52.js} +5 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{phone-055efd07.js → phone-d6be0dd2.js} +2 -2
- package/dist/cjs/{product-comparison-88a89820.js → product-comparison-aa80a77c.js} +1 -1
- package/dist/cjs/tet-accordion.cjs.entry.js +7 -7
- package/dist/cjs/tet-address-offers-filters-products_2.cjs.entry.js +4 -4
- package/dist/cjs/tet-address-offers-view.cjs.entry.js +4 -4
- package/dist/cjs/tet-address-offers_4.cjs.entry.js +9 -9
- package/dist/cjs/tet-address-search.cjs.entry.js +7 -7
- package/dist/cjs/tet-asset-addresses.cjs.entry.js +3 -3
- package/dist/cjs/tet-autocomplete-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/tet-autocomplete.cjs.entry.js +1 -1
- package/dist/cjs/tet-b2b-check-out-form_5.cjs.entry.js +6 -6
- package/dist/cjs/tet-b2b-configurator.cjs.entry.js +4 -4
- package/dist/cjs/tet-b2b-service-calculator.cjs.entry.js +4 -4
- package/dist/cjs/tet-banner-nav.cjs.entry.js +3 -3
- package/dist/cjs/tet-bar-graph.cjs.entry.js +1 -1
- package/dist/cjs/tet-border-radius.cjs.entry.js +2 -2
- package/dist/cjs/tet-business-card.cjs.entry.js +1 -1
- package/dist/cjs/tet-business-compare-card.cjs.entry.js +3 -3
- package/dist/cjs/tet-business-lines.cjs.entry.js +5 -5
- package/dist/cjs/tet-business-round-stepper.cjs.entry.js +1 -1
- package/dist/cjs/tet-button.cjs.entry.js +70 -9
- package/dist/cjs/tet-card-list.cjs.entry.js +5 -5
- package/dist/cjs/tet-carousel.cjs.entry.js +10 -10
- package/dist/cjs/tet-checkbox.cjs.entry.js +23 -8
- package/dist/cjs/tet-cloud-application-form-dialog.cjs.entry.js +3 -3
- package/dist/cjs/tet-cloud-configurator.cjs.entry.js +3 -3
- package/dist/cjs/tet-colors.cjs.entry.js +5 -5
- package/dist/cjs/tet-compare-card-v2.cjs.entry.js +5 -5
- package/dist/cjs/tet-compare-cards-tab.cjs.entry.js +3 -3
- package/dist/cjs/tet-compare-cards_2.cjs.entry.js +5 -5
- package/dist/cjs/tet-components.cjs.js +2 -2
- package/dist/cjs/tet-contact-form.cjs.entry.js +6 -6
- package/dist/cjs/tet-contact-info.cjs.entry.js +1 -1
- package/dist/cjs/tet-container_2.cjs.entry.js +1 -1
- package/dist/cjs/tet-counter.cjs.entry.js +271 -0
- package/dist/cjs/tet-customer-assets.cjs.entry.js +4 -4
- package/dist/cjs/tet-datepicker-header_4.cjs.entry.js +6 -6
- package/dist/cjs/tet-datepicker.cjs.entry.js +5 -5
- package/dist/cjs/tet-dialog.cjs.entry.js +5 -5
- package/dist/cjs/tet-display.cjs.entry.js +1 -1
- package/dist/cjs/tet-divider.cjs.entry.js +1 -1
- package/dist/cjs/tet-dropdown_2.cjs.entry.js +3 -3
- package/dist/cjs/tet-dynamic-card.cjs.entry.js +4 -4
- package/dist/cjs/tet-expandable-input.cjs.entry.js +3 -3
- package/dist/cjs/tet-expansion-panel.cjs.entry.js +2 -2
- package/dist/cjs/tet-feedback-form.cjs.entry.js +4 -4
- package/dist/cjs/tet-filter.cjs.entry.js +3 -3
- package/dist/cjs/tet-floating-block.cjs.entry.js +2 -2
- package/dist/cjs/tet-font-weight.cjs.entry.js +2 -2
- package/dist/cjs/tet-fonts.cjs.entry.js +2 -2
- package/dist/cjs/tet-grid.cjs.entry.js +2 -2
- package/dist/cjs/tet-icon.cjs.entry.js +3 -3
- package/dist/cjs/tet-inline-message.cjs.entry.js +3 -3
- package/dist/cjs/tet-input.cjs.entry.js +3 -3
- package/dist/cjs/tet-label.cjs.entry.js +5 -5
- package/dist/cjs/tet-layout.cjs.entry.js +2 -2
- package/dist/cjs/tet-link-card-list.cjs.entry.js +2 -2
- package/dist/cjs/tet-link.cjs.entry.js +2 -2
- package/dist/cjs/tet-loader.cjs.entry.js +2 -2
- package/dist/cjs/tet-macd-view.cjs.entry.js +7 -7
- package/dist/cjs/tet-menu-mobile.cjs.entry.js +2 -2
- package/dist/cjs/tet-menu.cjs.entry.js +2 -2
- package/dist/cjs/tet-multi-step-dialog.cjs.entry.js +4 -4
- package/dist/cjs/tet-navigation-mobile.cjs.entry.js +4 -4
- package/dist/cjs/tet-news-card-list.cjs.entry.js +2 -2
- package/dist/cjs/tet-notification.cjs.entry.js +2 -2
- package/dist/cjs/tet-number-input.cjs.entry.js +3 -3
- package/dist/cjs/tet-placeholder.cjs.entry.js +2 -2
- package/dist/cjs/tet-position.cjs.entry.js +1 -1
- package/dist/cjs/tet-price-view.cjs.entry.js +2 -2
- package/dist/cjs/tet-radio.cjs.entry.js +24 -9
- package/dist/cjs/tet-range-slider.cjs.entry.js +8 -8
- package/dist/cjs/tet-referral.cjs.entry.js +7 -7
- package/dist/cjs/tet-round-stepper.cjs.entry.js +2 -2
- package/dist/cjs/tet-snicker-card-badge.cjs.entry.js +2 -2
- package/dist/cjs/tet-spacing.cjs.entry.js +2 -2
- package/dist/cjs/tet-spinner.cjs.entry.js +4 -4
- package/dist/cjs/tet-stepper-input.cjs.entry.js +4 -4
- package/dist/cjs/tet-stepper-v2.cjs.entry.js +2 -2
- package/dist/cjs/tet-stepper-v3.cjs.entry.js +2 -2
- package/dist/cjs/tet-stepper.cjs.entry.js +2 -2
- package/dist/cjs/tet-switch.cjs.entry.js +4 -4
- package/dist/cjs/tet-tab-header.cjs.entry.js +3 -3
- package/dist/cjs/tet-table.cjs.entry.js +2 -2
- package/dist/cjs/tet-tag_2.cjs.entry.js +5 -5
- package/dist/cjs/tet-text-list.cjs.entry.js +2 -2
- package/dist/cjs/tet-text.cjs.entry.js +1 -1
- package/dist/cjs/tet-textarea.cjs.entry.js +3 -3
- package/dist/cjs/tet-thank-you-view-v2.cjs.entry.js +4 -4
- package/dist/cjs/tet-thank-you-view-v3.cjs.entry.js +4 -4
- package/dist/cjs/tet-thank-you-view.cjs.entry.js +2 -2
- package/dist/cjs/tet-tv-gift-block.cjs.entry.js +2 -2
- package/dist/cjs/tet-tv-gift-list.cjs.entry.js +3 -3
- package/dist/cjs/{theme-wrapper-66880718.js → theme-wrapper-46514846.js} +2 -2
- package/dist/cjs/{translations-03c9de64.js → translations-89a0ec3d.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/advanced/address/tet-address-offers-filters/tet-address-offers-filters.js +1 -1
- package/dist/collection/components/advanced/address/tet-address-search/tet-address-search.js +3 -3
- package/dist/collection/components/advanced/address/tet-autocomplete-dropdown/tet-autocomplete-dropdown.js +1 -1
- package/dist/collection/components/advanced/cards/tet-business-compare-card/tet-business-compare-card.js +2 -2
- package/dist/collection/components/advanced/cards/tet-card-list/tet-card-list.js +4 -4
- package/dist/collection/components/advanced/cards/tet-compare-card/tet-compare-card.css +24 -2
- package/dist/collection/components/advanced/cards/tet-compare-card-v2/tet-compare-card-v2.css +24 -2
- package/dist/collection/components/advanced/cards/tet-compare-card-v2/tet-compare-card-v2.js +1 -1
- package/dist/collection/components/advanced/cards/tet-dynamic-card/tet-dynamic-card.js +3 -3
- package/dist/collection/components/advanced/cards/tet-snicker-card/partials/tet-snicker-card-badge/tet-snicker-card-badge.js +1 -1
- package/dist/collection/components/advanced/customer/tet-customer-assets/tet-customer-assets.js +1 -1
- package/dist/collection/components/advanced/customer/tet-referral/tet-referral.js +2 -2
- package/dist/collection/components/advanced/dialog/tet-multi-step-dialog/tet-multi-step-dialog.js +1 -1
- package/dist/collection/components/advanced/forms/tet-availability-contact-form/tet-availability-contact-form.js +1 -1
- package/dist/collection/components/advanced/forms/tet-b2b-check-out-form/tet-b2b-check-out-form.js +3 -3
- package/dist/collection/components/advanced/forms/tet-contact-form/tet-contact-form.js +1 -1
- package/dist/collection/components/advanced/forms/tet-feedback-form/tet-feedback-form.js +1 -1
- package/dist/collection/components/advanced/promotions/tv-gift/tet-tv-gift-block/tet-tv-gift-block.js +1 -1
- package/dist/collection/components/advanced/promotions/tv-gift/tet-tv-gift-list/tet-tv-gift-list.js +2 -2
- package/dist/collection/components/basic/buttons/tet-button/tet-button.css +318 -495
- package/dist/collection/components/basic/buttons/tet-button/tet-button.js +127 -8
- package/dist/collection/components/basic/buttons/tet-checkbox/tet-checkbox.css +5 -0
- package/dist/collection/components/basic/buttons/tet-checkbox/tet-checkbox.js +39 -6
- package/dist/collection/components/basic/buttons/tet-radio/tet-radio.css +5 -0
- package/dist/collection/components/basic/buttons/tet-radio/tet-radio.js +40 -7
- package/dist/collection/components/basic/buttons/tet-switch/tet-switch.js +3 -3
- package/dist/collection/components/basic/buttons/tet-tabs/tet-tab-content/tet-tab-content.js +2 -2
- package/dist/collection/components/basic/buttons/tet-tabs/tet-tab-header/tet-tab-header.js +2 -2
- package/dist/collection/components/basic/buttons/tet-tag/tet-tag.js +2 -2
- package/dist/collection/components/basic/carousel/tet-carousel/tet-carousel.js +7 -7
- package/dist/collection/components/basic/icon/tet-icon.js +1 -1
- package/dist/collection/components/basic/loaders/tet-loader/tet-loader.js +1 -1
- package/dist/collection/components/basic/loaders/tet-placeholder/tet-placeholder.js +1 -1
- package/dist/collection/components/basic/loaders/tet-spinner/tet-spinner.js +3 -3
- package/dist/collection/components/basic/misc/tet-counter/tet-counter.css +16 -0
- package/dist/collection/components/basic/misc/tet-counter/tet-counter.js +583 -0
- package/dist/collection/components/basic/misc/tet-label/tet-label.js +2 -2
- package/dist/collection/components/basic/steppers/tet-round-stepper/tet-round-stepper.js +1 -1
- package/dist/collection/components/basic/steppers/tet-stepper/tet-stepper.js +1 -1
- package/dist/collection/components/basic/steppers/tet-stepper-v2/tet-stepper-v2.js +1 -1
- package/dist/collection/components/basic/steppers/tet-stepper-v3/tet-stepper-v3.js +1 -1
- package/dist/collection/components/simple/filter/tet-filter/tet-filter.js +2 -2
- package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-header/tet-datepicker-header.js +2 -2
- package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-month-view/tet-datepicker-month-view.js +1 -1
- package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-multi-year-view/tet-datepicker-multi-year-view.js +1 -1
- package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-year-view/tet-datepicker-year-view.js +1 -1
- package/dist/collection/components/simple/inputs/tet-datepicker/tet-datepicker.js +4 -4
- package/dist/collection/components/simple/inputs/tet-dropdown/tet-dropdown.js +1 -1
- package/dist/collection/components/simple/inputs/tet-expandable-input/tet-expandable-input.js +2 -2
- package/dist/collection/components/simple/inputs/tet-number-input/tet-number-input.js +2 -2
- package/dist/collection/components/simple/inputs/tet-range-slider/tet-range-slider.js +7 -7
- package/dist/collection/components/simple/inputs/tet-stepper-input/tet-stepper-input.js +1 -1
- package/dist/collection/components/simple/inputs/tet-textarea/tet-textarea.js +2 -2
- package/dist/collection/components/simple/lists/tet-link-card-list/tet-link-card-list.js +1 -1
- package/dist/collection/components/simple/lists/tet-news-card-list/tet-news-card-list.js +1 -1
- package/dist/collection/components/simple/lists/tet-text-list/tet-text-list.css +24 -2
- package/dist/collection/components/simple/menu/tet-menu/tet-menu.js +1 -1
- package/dist/collection/components/simple/menu/tet-menu-mobile/tet-menu-mobile.js +1 -1
- package/dist/collection/components/simple/menu/tet-navigation-mobile/tet-navigation-mobile.js +3 -3
- package/dist/collection/components/simple/structural/tet-accordion/tet-accordion.js +6 -6
- package/dist/collection/components/simple/structural/tet-expansion-panel/tet-expansion-panel.js +1 -1
- package/dist/collection/components/simple/structural/tet-floating-block/tet-floating-block.js +1 -1
- package/dist/collection/components/simple/tables-and-graphs/tet-table/tet-table.js +1 -1
- package/dist/collection/components/simple/text-blocks/tet-dialog/tet-dialog.js +2 -2
- package/dist/collection/components/simple/text-blocks/tet-inline-message/tet-inline-message.js +2 -2
- package/dist/collection/components/simple/text-blocks/tet-notification/tet-notification.js +1 -1
- package/dist/collection/components/simple/text-blocks/tet-tooltip/tet-tooltip.js +1 -1
- package/dist/collection/components/views/tet-address-offers-view/tet-address-offers-view.js +1 -1
- package/dist/collection/components/views/tet-b2b-service-calculator/tet-b2b-service-calculator.js +1 -1
- package/dist/collection/components/views/tet-business-lines/tet-business-lines.js +1 -1
- package/dist/collection/components/views/tet-macd-view/tet-macd-view.js +1 -1
- package/dist/collection/components/views/tet-price-view/tet-price-view.js +1 -1
- package/dist/collection/components/views/tet-thank-you-view/tet-thank-you-view.js +1 -1
- package/dist/collection/components/views/tet-thank-you-view-v2/tet-thank-you-view-v2.js +2 -2
- package/dist/collection/components/views/tet-thank-you-view-v3/tet-thank-you-view-v3.js +2 -2
- package/dist/collection/docs/styling/border-radius/tet-border-radius.js +1 -1
- package/dist/collection/docs/styling/colors/tet-colors.js +4 -4
- package/dist/collection/docs/styling/font-weight/tet-font-weight.js +1 -1
- package/dist/collection/docs/styling/fonts/tet-fonts.js +1 -1
- package/dist/collection/docs/styling/layout/tet-layout.js +1 -1
- package/dist/collection/docs/styling/link/tet-link.js +1 -1
- package/dist/collection/docs/styling/spacing/tet-spacing.js +1 -1
- package/dist/collection/docs/styling/tet-grid/tet-grid.js +1 -1
- package/dist/components/index.js +3 -1
- package/dist/components/{p-375a5cfa.js → p-067e24b2.js} +2 -2
- package/dist/components/{p-4029ad75.js → p-081e662f.js} +6 -6
- package/dist/components/{p-c9ec821b.js → p-0cd01523.js} +2 -2
- package/dist/components/{p-ac209bc1.js → p-0e5c120b.js} +3 -3
- package/dist/components/{p-77d77578.js → p-0ff0536d.js} +8 -8
- package/dist/components/{p-438d429c.js → p-1073635c.js} +5 -5
- package/dist/components/{p-83e9f500.js → p-1823d576.js} +2 -2
- package/dist/components/{p-f76fad86.js → p-26ffcb52.js} +1 -1
- package/dist/components/{p-c0e5e16a.js → p-29aa33c8.js} +3 -3
- package/dist/components/{p-ffe0b1f2.js → p-2a611bd4.js} +8 -8
- package/dist/components/{p-d3e6fe4e.js → p-338b45d9.js} +14 -14
- package/dist/components/{p-4468c9e9.js → p-3493f65f.js} +1 -1
- package/dist/components/{p-0a5f7ab0.js → p-3a320356.js} +5 -5
- package/dist/components/{p-20ca9fa1.js → p-3c78e73c.js} +1 -1
- package/dist/components/{p-b6e2a8cc.js → p-412014d8.js} +1 -1
- package/dist/components/{p-c722c61d.js → p-434a227a.js} +13 -13
- package/dist/components/{p-e76a41b8.js → p-4426ffeb.js} +4 -4
- package/dist/components/{p-7f859d29.js → p-44ddd769.js} +3 -3
- package/dist/components/{p-0f1423b7.js → p-4828e5f5.js} +10 -10
- package/dist/components/{p-ec253cea.js → p-56b80f8d.js} +3 -3
- package/dist/components/{p-b32cb3ad.js → p-56c2eff7.js} +10 -10
- package/dist/components/{p-5c47c2d5.js → p-5e4f8207.js} +2 -2
- package/dist/components/{p-82d03692.js → p-5fd85b9a.js} +7 -7
- package/dist/components/{p-69555360.js → p-6114f69a.js} +5 -5
- package/dist/components/p-6792548e.js +174 -0
- package/dist/components/{p-1675cb05.js → p-69131a6d.js} +5 -5
- package/dist/components/{p-c3dd8021.js → p-6d224324.js} +4 -4
- package/dist/components/{p-e3fecd23.js → p-7095bb34.js} +7 -7
- package/dist/components/{p-2e59089a.js → p-724e52a7.js} +1 -1
- package/dist/components/{p-635c5db4.js → p-74ba95e0.js} +1 -1
- package/dist/components/{p-c3d2ccd5.js → p-75b954b5.js} +1 -1
- package/dist/components/{p-8758fb64.js → p-768a2c8d.js} +1 -1
- package/dist/components/{p-a17553f4.js → p-77c9384e.js} +1 -1
- package/dist/components/{p-cd009231.js → p-922bbaa7.js} +5 -5
- package/dist/components/{p-69774b35.js → p-928d194b.js} +4 -4
- package/dist/components/{p-47760f25.js → p-9667687e.js} +2 -2
- package/dist/components/{p-039c578b.js → p-969a45a7.js} +3 -3
- package/dist/components/{p-b4b94c16.js → p-99746f8e.js} +4 -4
- package/dist/components/{p-56f9a49b.js → p-9ad56c01.js} +4 -4
- package/dist/components/{p-0e70d061.js → p-a2c27d73.js} +3 -3
- package/dist/components/{p-25b93e8f.js → p-aa122c92.js} +1 -1
- package/dist/components/{p-a7e888ab.js → p-acd8e0a7.js} +3 -3
- package/dist/components/{p-26ce88e8.js → p-b1cc938c.js} +5 -5
- package/dist/components/{p-41a7c21a.js → p-b6841a9b.js} +2 -2
- package/dist/components/{p-b52c715b.js → p-b8ff2ee7.js} +6 -6
- package/dist/components/{p-68513e60.js → p-bd8f948a.js} +10 -10
- package/dist/components/p-c4b485ea.js +153 -0
- package/dist/components/{p-ee17a01a.js → p-c6240e0c.js} +2 -2
- package/dist/components/{p-ab294e76.js → p-c69e3d71.js} +3 -3
- package/dist/components/{p-2f2fb278.js → p-cee6db3f.js} +3 -3
- package/dist/components/{p-afaf0812.js → p-d1aa707b.js} +2 -2
- package/dist/components/{p-b73ba300.js → p-d864ac46.js} +2 -2
- package/dist/components/{p-cd88ddf8.js → p-df729c73.js} +3 -3
- package/dist/components/{p-f52de522.js → p-ea7a0078.js} +7 -7
- package/dist/components/{p-9664416d.js → p-ed6c97fc.js} +3 -3
- package/dist/components/{p-b03d721d.js → p-ef5edf2b.js} +11 -11
- package/dist/components/{p-61cedfb0.js → p-f88fcd38.js} +2 -2
- package/dist/components/{p-b1c19d70.js → p-f8e5ca59.js} +25 -9
- package/dist/components/tet-accordion.js +1 -1
- package/dist/components/tet-address-offers-filters-products.js +1 -1
- package/dist/components/tet-address-offers-filters.js +1 -1
- package/dist/components/tet-address-offers-view.js +25 -25
- package/dist/components/tet-address-offers.js +1 -1
- package/dist/components/tet-address-search.js +1 -1
- package/dist/components/tet-asset-addresses.js +13 -13
- package/dist/components/tet-asset-availability-addresses.js +1 -1
- package/dist/components/tet-autocomplete-dropdown.js +6 -6
- package/dist/components/tet-autocomplete.js +1 -1
- package/dist/components/tet-availability-contact-form.js +1 -1
- package/dist/components/tet-b2b-check-out-form.js +1 -1
- package/dist/components/tet-b2b-compare-card.js +1 -1
- package/dist/components/tet-b2b-configurator-cart.js +1 -1
- package/dist/components/tet-b2b-configurator.js +20 -20
- package/dist/components/tet-b2b-service-calculator.js +9 -9
- package/dist/components/tet-banner-nav.js +3 -3
- package/dist/components/tet-bar-graph.js +1 -1
- package/dist/components/tet-border-radius.js +2 -2
- package/dist/components/tet-business-card.js +1 -1
- package/dist/components/tet-business-compare-card.js +5 -5
- package/dist/components/tet-business-lines.js +6 -6
- package/dist/components/tet-business-navigation.js +1 -1
- package/dist/components/tet-business-round-stepper.js +2 -2
- package/dist/components/tet-business-summary-card.js +1 -1
- package/dist/components/tet-button.js +1 -1
- package/dist/components/tet-card-list.js +1 -1
- package/dist/components/tet-carousel.js +11 -11
- package/dist/components/tet-checkbox.js +1 -1
- package/dist/components/tet-cloud-application-form-dialog.js +8 -8
- package/dist/components/tet-cloud-configurator.js +11 -11
- package/dist/components/tet-colors.js +5 -5
- package/dist/components/tet-compare-card-v2.js +11 -11
- package/dist/components/tet-compare-card.js +1 -1
- package/dist/components/tet-compare-cards-tab.js +16 -16
- package/dist/components/tet-compare-cards.js +1 -1
- package/dist/components/tet-contact-form.js +10 -10
- package/dist/components/tet-contact-info.js +1 -1
- package/dist/components/tet-container.js +1 -1
- package/dist/components/tet-counter.d.ts +11 -0
- package/dist/components/tet-counter.js +312 -0
- package/dist/components/tet-customer-assets.js +10 -10
- package/dist/components/tet-datepicker-header.js +1 -1
- package/dist/components/tet-datepicker-month-view.js +1 -1
- package/dist/components/tet-datepicker-multi-year-view.js +1 -1
- package/dist/components/tet-datepicker-year-view.js +1 -1
- package/dist/components/tet-datepicker.js +10 -10
- package/dist/components/tet-dialog.js +1 -1
- package/dist/components/tet-display.js +8 -8
- package/dist/components/tet-divider.js +7 -7
- package/dist/components/tet-dropdown.js +1 -1
- package/dist/components/tet-dynamic-card.js +7 -7
- package/dist/components/tet-expandable-input.js +5 -5
- package/dist/components/tet-expansion-panel.js +2 -2
- package/dist/components/tet-feedback-form.js +8 -8
- package/dist/components/tet-filter.js +6 -6
- package/dist/components/tet-floating-block.js +4 -4
- package/dist/components/tet-font-weight.js +2 -2
- package/dist/components/tet-fonts.js +2 -2
- package/dist/components/tet-grid.js +2 -2
- package/dist/components/tet-icon.js +1 -1
- package/dist/components/tet-inline-message.js +4 -4
- package/dist/components/tet-input.js +1 -1
- package/dist/components/tet-label.js +5 -5
- package/dist/components/tet-layout.js +2 -2
- package/dist/components/tet-link-card-list.js +4 -4
- package/dist/components/tet-link.js +2 -2
- package/dist/components/tet-loader.js +1 -1
- package/dist/components/tet-macd-view.js +11 -11
- package/dist/components/tet-menu-mobile.js +3 -3
- package/dist/components/tet-menu.js +3 -3
- package/dist/components/tet-multi-step-dialog.js +6 -6
- package/dist/components/tet-navigation-mobile.js +5 -5
- package/dist/components/tet-news-card-list.js +5 -5
- package/dist/components/tet-notification.js +1 -1
- package/dist/components/tet-number-input.js +1 -1
- package/dist/components/tet-placeholder.js +1 -1
- package/dist/components/tet-position.js +7 -7
- package/dist/components/tet-price-view.js +1 -1
- package/dist/components/tet-radio.js +1 -1
- package/dist/components/tet-range-slider.js +1 -1
- package/dist/components/tet-referral.js +8 -8
- package/dist/components/tet-round-stepper.js +3 -3
- package/dist/components/tet-selection-list.js +1 -1
- package/dist/components/tet-snicker-card-badge.js +2 -2
- package/dist/components/tet-spacing.js +2 -2
- package/dist/components/tet-spinner.js +1 -1
- package/dist/components/tet-stepper-input.js +1 -1
- package/dist/components/tet-stepper-v2.js +1 -1
- package/dist/components/tet-stepper-v3.js +1 -1
- package/dist/components/tet-stepper.js +1 -1
- package/dist/components/tet-switch.js +1 -1
- package/dist/components/tet-tab-content.js +1 -1
- package/dist/components/tet-tab-header.js +1 -1
- package/dist/components/tet-table.js +4 -4
- package/dist/components/tet-tag-group.js +1 -1
- package/dist/components/tet-tag.js +1 -1
- package/dist/components/tet-text-list.js +1 -1
- package/dist/components/tet-text.js +7 -7
- package/dist/components/tet-textarea.js +1 -1
- package/dist/components/tet-thank-you-view-v2.js +6 -6
- package/dist/components/tet-thank-you-view-v3.js +6 -6
- package/dist/components/tet-thank-you-view.js +5 -5
- package/dist/components/tet-tooltip.js +1 -1
- package/dist/components/tet-tv-gift-block.js +2 -2
- package/dist/components/tet-tv-gift-list.js +4 -4
- package/dist/esm/{address-1e0810e7.js → address-20e2d850.js} +1 -1
- package/dist/esm/{assets-e1349520.js → assets-894007df.js} +1 -1
- package/dist/esm/{async-request-4c945e13.js → async-request-ae1056de.js} +1 -1
- package/dist/esm/{http-codes-1927ea00.js → http-codes-cf0086d4.js} +1 -1
- package/dist/esm/{index-412df137.js → index-e3209c56.js} +1 -1
- package/dist/esm/{index-aac31bd2.js → index-e933a7d2.js} +5 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{phone-1a920c5c.js → phone-62660137.js} +2 -2
- package/dist/esm/{product-comparison-dd90c721.js → product-comparison-cb8955f6.js} +1 -1
- package/dist/esm/tet-accordion.entry.js +7 -7
- package/dist/esm/tet-address-offers-filters-products_2.entry.js +4 -4
- package/dist/esm/tet-address-offers-view.entry.js +4 -4
- package/dist/esm/tet-address-offers_4.entry.js +9 -9
- package/dist/esm/tet-address-search.entry.js +7 -7
- package/dist/esm/tet-asset-addresses.entry.js +3 -3
- package/dist/esm/tet-autocomplete-dropdown.entry.js +2 -2
- package/dist/esm/tet-autocomplete.entry.js +1 -1
- package/dist/esm/tet-b2b-check-out-form_5.entry.js +6 -6
- package/dist/esm/tet-b2b-configurator.entry.js +4 -4
- package/dist/esm/tet-b2b-service-calculator.entry.js +4 -4
- package/dist/esm/tet-banner-nav.entry.js +3 -3
- package/dist/esm/tet-bar-graph.entry.js +1 -1
- package/dist/esm/tet-border-radius.entry.js +2 -2
- package/dist/esm/tet-business-card.entry.js +1 -1
- package/dist/esm/tet-business-compare-card.entry.js +3 -3
- package/dist/esm/tet-business-lines.entry.js +5 -5
- package/dist/esm/tet-business-round-stepper.entry.js +1 -1
- package/dist/esm/tet-button.entry.js +70 -9
- package/dist/esm/tet-card-list.entry.js +5 -5
- package/dist/esm/tet-carousel.entry.js +10 -10
- package/dist/esm/tet-checkbox.entry.js +23 -8
- package/dist/esm/tet-cloud-application-form-dialog.entry.js +3 -3
- package/dist/esm/tet-cloud-configurator.entry.js +3 -3
- package/dist/esm/tet-colors.entry.js +5 -5
- package/dist/esm/tet-compare-card-v2.entry.js +5 -5
- package/dist/esm/tet-compare-cards-tab.entry.js +3 -3
- package/dist/esm/tet-compare-cards_2.entry.js +5 -5
- package/dist/esm/tet-components.js +3 -3
- package/dist/esm/tet-contact-form.entry.js +6 -6
- package/dist/esm/tet-contact-info.entry.js +1 -1
- package/dist/esm/tet-container_2.entry.js +1 -1
- package/dist/esm/tet-counter.entry.js +267 -0
- package/dist/esm/tet-customer-assets.entry.js +4 -4
- package/dist/esm/tet-datepicker-header_4.entry.js +6 -6
- package/dist/esm/tet-datepicker.entry.js +5 -5
- package/dist/esm/tet-dialog.entry.js +5 -5
- package/dist/esm/tet-display.entry.js +1 -1
- package/dist/esm/tet-divider.entry.js +1 -1
- package/dist/esm/tet-dropdown_2.entry.js +3 -3
- package/dist/esm/tet-dynamic-card.entry.js +4 -4
- package/dist/esm/tet-expandable-input.entry.js +3 -3
- package/dist/esm/tet-expansion-panel.entry.js +2 -2
- package/dist/esm/tet-feedback-form.entry.js +4 -4
- package/dist/esm/tet-filter.entry.js +3 -3
- package/dist/esm/tet-floating-block.entry.js +2 -2
- package/dist/esm/tet-font-weight.entry.js +2 -2
- package/dist/esm/tet-fonts.entry.js +2 -2
- package/dist/esm/tet-grid.entry.js +2 -2
- package/dist/esm/tet-icon.entry.js +3 -3
- package/dist/esm/tet-inline-message.entry.js +3 -3
- package/dist/esm/tet-input.entry.js +3 -3
- package/dist/esm/tet-label.entry.js +5 -5
- package/dist/esm/tet-layout.entry.js +2 -2
- package/dist/esm/tet-link-card-list.entry.js +2 -2
- package/dist/esm/tet-link.entry.js +2 -2
- package/dist/esm/tet-loader.entry.js +2 -2
- package/dist/esm/tet-macd-view.entry.js +7 -7
- package/dist/esm/tet-menu-mobile.entry.js +2 -2
- package/dist/esm/tet-menu.entry.js +2 -2
- package/dist/esm/tet-multi-step-dialog.entry.js +4 -4
- package/dist/esm/tet-navigation-mobile.entry.js +4 -4
- package/dist/esm/tet-news-card-list.entry.js +2 -2
- package/dist/esm/tet-notification.entry.js +2 -2
- package/dist/esm/tet-number-input.entry.js +3 -3
- package/dist/esm/tet-placeholder.entry.js +2 -2
- package/dist/esm/tet-position.entry.js +1 -1
- package/dist/esm/tet-price-view.entry.js +2 -2
- package/dist/esm/tet-radio.entry.js +24 -9
- package/dist/esm/tet-range-slider.entry.js +8 -8
- package/dist/esm/tet-referral.entry.js +7 -7
- package/dist/esm/tet-round-stepper.entry.js +2 -2
- package/dist/esm/tet-snicker-card-badge.entry.js +2 -2
- package/dist/esm/tet-spacing.entry.js +2 -2
- package/dist/esm/tet-spinner.entry.js +4 -4
- package/dist/esm/tet-stepper-input.entry.js +4 -4
- package/dist/esm/tet-stepper-v2.entry.js +2 -2
- package/dist/esm/tet-stepper-v3.entry.js +2 -2
- package/dist/esm/tet-stepper.entry.js +2 -2
- package/dist/esm/tet-switch.entry.js +4 -4
- package/dist/esm/tet-tab-header.entry.js +3 -3
- package/dist/esm/tet-table.entry.js +2 -2
- package/dist/esm/tet-tag_2.entry.js +5 -5
- package/dist/esm/tet-text-list.entry.js +2 -2
- package/dist/esm/tet-text.entry.js +1 -1
- package/dist/esm/tet-textarea.entry.js +3 -3
- package/dist/esm/tet-thank-you-view-v2.entry.js +4 -4
- package/dist/esm/tet-thank-you-view-v3.entry.js +4 -4
- package/dist/esm/tet-thank-you-view.entry.js +2 -2
- package/dist/esm/tet-tv-gift-block.entry.js +2 -2
- package/dist/esm/tet-tv-gift-list.entry.js +3 -3
- package/dist/esm/{theme-wrapper-72d0b9da.js → theme-wrapper-cf4d7d54.js} +2 -2
- package/dist/esm/{translations-4712c45f.js → translations-e60db8fd.js} +1 -1
- package/dist/tet-components/{p-38fb0eea.entry.js → p-0064eb71.entry.js} +1 -1
- package/dist/tet-components/{p-e0f7a4a5.entry.js → p-01cbb74c.entry.js} +1 -1
- package/dist/tet-components/{p-a7d9e280.entry.js → p-08569f07.entry.js} +1 -1
- package/dist/tet-components/{p-0f2d1a9c.entry.js → p-0a326f53.entry.js} +1 -1
- package/dist/tet-components/{p-a6c89f10.entry.js → p-0bda3eeb.entry.js} +1 -1
- package/dist/tet-components/p-0bf60061.entry.js +1 -0
- package/dist/tet-components/{p-77a1f676.entry.js → p-103dab6f.entry.js} +1 -1
- package/dist/tet-components/{p-f25a0e3a.entry.js → p-127b2895.entry.js} +1 -1
- package/dist/tet-components/{p-33d12bd1.entry.js → p-12f975ff.entry.js} +1 -1
- package/dist/tet-components/{p-3a6b0d35.entry.js → p-14c15a69.entry.js} +1 -1
- package/dist/tet-components/{p-39686fad.entry.js → p-1765c8c5.entry.js} +1 -1
- package/dist/tet-components/{p-d55121ce.entry.js → p-1a05c222.entry.js} +1 -1
- package/dist/tet-components/{p-4a16b8da.entry.js → p-1b976fcb.entry.js} +1 -1
- package/dist/tet-components/{p-bcca51cc.entry.js → p-1f5ed76c.entry.js} +1 -1
- package/dist/tet-components/{p-6297692b.entry.js → p-239fa72a.entry.js} +1 -1
- package/dist/tet-components/{p-0690732e.entry.js → p-23f3b153.entry.js} +1 -1
- package/dist/tet-components/{p-a87ce46a.entry.js → p-24df18b9.entry.js} +1 -1
- package/dist/tet-components/{p-f6916bfc.entry.js → p-265701de.entry.js} +1 -1
- package/dist/tet-components/{p-94dd5d95.entry.js → p-2a558830.entry.js} +1 -1
- package/dist/tet-components/{p-d8518d4b.js → p-2dbe670c.js} +1 -1
- package/dist/tet-components/{p-7056a120.entry.js → p-31d0b400.entry.js} +1 -1
- package/dist/tet-components/{p-e51579ab.entry.js → p-32488c4e.entry.js} +1 -1
- package/dist/tet-components/{p-6dde4d69.entry.js → p-330840ff.entry.js} +1 -1
- package/dist/tet-components/{p-43c3b078.entry.js → p-365ebf00.entry.js} +1 -1
- package/dist/tet-components/{p-79dab470.entry.js → p-39320aa4.entry.js} +1 -1
- package/dist/tet-components/{p-778c46a6.js → p-3ac57578.js} +1 -1
- package/dist/tet-components/{p-3fc6a020.entry.js → p-3b5e9fed.entry.js} +1 -1
- package/dist/tet-components/{p-c2dbf3db.entry.js → p-4176aaca.entry.js} +1 -1
- package/dist/tet-components/{p-f81b3bb0.js → p-4213c1d1.js} +1 -1
- package/dist/tet-components/{p-720e5059.entry.js → p-43eff59d.entry.js} +1 -1
- package/dist/tet-components/{p-e98a1ad1.entry.js → p-4d7f1c6e.entry.js} +1 -1
- package/dist/tet-components/p-4d935fc8.entry.js +1 -0
- package/dist/tet-components/{p-70c608a6.entry.js → p-4fc641da.entry.js} +1 -1
- package/dist/tet-components/{p-c51da57b.entry.js → p-52d7b6c3.entry.js} +1 -1
- package/dist/tet-components/{p-122f3d3c.entry.js → p-548d7cc1.entry.js} +1 -1
- package/dist/tet-components/p-581b1f01.entry.js +1 -0
- package/dist/tet-components/{p-85bcbb9d.entry.js → p-589e8e4b.entry.js} +1 -1
- package/dist/tet-components/{p-5af71510.entry.js → p-59007fe7.entry.js} +1 -1
- package/dist/tet-components/{p-83f43fdd.js → p-5abb3bea.js} +1 -1
- package/dist/tet-components/{p-298292ce.entry.js → p-5d56e074.entry.js} +1 -1
- package/dist/tet-components/{p-cde8057a.entry.js → p-60abca86.entry.js} +1 -1
- package/dist/tet-components/{p-33f2ed2e.entry.js → p-635ed958.entry.js} +1 -1
- package/dist/tet-components/{p-8bfd498e.entry.js → p-63f6def9.entry.js} +1 -1
- package/dist/tet-components/p-660bdc27.js +1 -0
- package/dist/tet-components/{p-85f61fc0.entry.js → p-6c6cd148.entry.js} +1 -1
- package/dist/tet-components/{p-33404a9a.entry.js → p-6c6fe82b.entry.js} +1 -1
- package/dist/tet-components/{p-79f778d6.entry.js → p-6cf6894d.entry.js} +1 -1
- package/dist/tet-components/{p-7194c3e1.entry.js → p-6fb8c506.entry.js} +1 -1
- package/dist/tet-components/{p-490f1cd2.entry.js → p-6ffacde3.entry.js} +1 -1
- package/dist/tet-components/{p-a70cec80.entry.js → p-70cec2eb.entry.js} +1 -1
- package/dist/tet-components/{p-1d207053.entry.js → p-725ed08d.entry.js} +1 -1
- package/dist/tet-components/{p-0ebbf5ef.js → p-726651bc.js} +1 -1
- package/dist/tet-components/{p-667d758e.entry.js → p-73c190a2.entry.js} +1 -1
- package/dist/tet-components/{p-adf006f9.entry.js → p-79ee95e0.entry.js} +1 -1
- package/dist/tet-components/{p-f5040842.entry.js → p-7bd6f009.entry.js} +1 -1
- package/dist/tet-components/{p-811eaad9.entry.js → p-81fdc2f2.entry.js} +1 -1
- package/dist/tet-components/{p-483e0253.entry.js → p-839ae15f.entry.js} +1 -1
- package/dist/tet-components/{p-10e72480.entry.js → p-8b93b91f.entry.js} +1 -1
- package/dist/tet-components/{p-bfd8348b.entry.js → p-8fae4e03.entry.js} +1 -1
- package/dist/tet-components/{p-17946d38.entry.js → p-92eb59b7.entry.js} +1 -1
- package/dist/tet-components/{p-cce44523.entry.js → p-965e10f6.entry.js} +1 -1
- package/dist/tet-components/{p-35cbd34e.entry.js → p-9bd457d2.entry.js} +1 -1
- package/dist/tet-components/{p-028e8ace.entry.js → p-9c714aa1.entry.js} +1 -1
- package/dist/tet-components/{p-d4dc17f5.entry.js → p-a15fda05.entry.js} +1 -1
- package/dist/tet-components/{p-a8051a99.js → p-a476fd02.js} +1 -1
- package/dist/tet-components/{p-e98108ba.entry.js → p-a81b19d6.entry.js} +1 -1
- package/dist/tet-components/p-abd6e438.entry.js +1 -0
- package/dist/tet-components/{p-d2f9b52a.entry.js → p-acd1b5e8.entry.js} +1 -1
- package/dist/tet-components/{p-6c7b5f8d.entry.js → p-af86e2dc.entry.js} +1 -1
- package/dist/tet-components/{p-09e92f79.entry.js → p-b179e1e3.entry.js} +1 -1
- package/dist/tet-components/{p-f68450a4.entry.js → p-b22de340.entry.js} +1 -1
- package/dist/tet-components/{p-ecad90f7.entry.js → p-b2c138f0.entry.js} +1 -1
- package/dist/tet-components/{p-7544dfd7.js → p-b39df477.js} +1 -1
- package/dist/tet-components/{p-872bbccf.entry.js → p-b468a922.entry.js} +1 -1
- package/dist/tet-components/{p-9c837569.entry.js → p-b4b90473.entry.js} +1 -1
- package/dist/tet-components/{p-5533f71b.entry.js → p-b4c23878.entry.js} +1 -1
- package/dist/tet-components/{p-162809ee.entry.js → p-b61304cf.entry.js} +1 -1
- package/dist/tet-components/{p-cf479331.entry.js → p-b64bd05a.entry.js} +1 -1
- package/dist/tet-components/{p-1fd2adaf.js → p-b92dff8a.js} +1 -1
- package/dist/tet-components/{p-798aa31d.entry.js → p-c2b120fa.entry.js} +1 -1
- package/dist/tet-components/{p-90763483.entry.js → p-c3a54cfd.entry.js} +1 -1
- package/dist/tet-components/{p-f9a0b36a.entry.js → p-c64bc4bf.entry.js} +1 -1
- package/dist/tet-components/{p-37a8e22b.entry.js → p-c76a4457.entry.js} +1 -1
- package/dist/tet-components/{p-b34e86ef.entry.js → p-c9583427.entry.js} +1 -1
- package/dist/tet-components/{p-0c6b6730.js → p-c9ddf890.js} +1 -1
- package/dist/tet-components/{p-8b421887.entry.js → p-d028d7c4.entry.js} +1 -1
- package/dist/tet-components/{p-43fd6ff8.entry.js → p-d267844d.entry.js} +1 -1
- package/dist/tet-components/{p-8cf12736.entry.js → p-d3db997e.entry.js} +1 -1
- package/dist/tet-components/{p-83ada223.entry.js → p-d4826b0a.entry.js} +1 -1
- package/dist/tet-components/p-d9b46efd.entry.js +1 -0
- package/dist/tet-components/p-da386a33.entry.js +1 -0
- package/dist/tet-components/{p-742d2b37.entry.js → p-df99dc91.entry.js} +1 -1
- package/dist/tet-components/{p-0e2dbd84.entry.js → p-e0a2de25.entry.js} +1 -1
- package/dist/tet-components/{p-a64e3e96.entry.js → p-e74416dc.entry.js} +1 -1
- package/dist/tet-components/{p-c9f21fde.entry.js → p-ec5b1040.entry.js} +1 -1
- package/dist/tet-components/{p-5e8466e6.entry.js → p-ecea1d66.entry.js} +1 -1
- package/dist/tet-components/{p-9eb496bb.entry.js → p-ef84df23.entry.js} +1 -1
- package/dist/tet-components/p-efc8d952.entry.js +1 -0
- package/dist/tet-components/{p-2328b1d4.entry.js → p-f9c98275.entry.js} +1 -1
- package/dist/tet-components/{p-e05e8cad.entry.js → p-fa3eb190.entry.js} +1 -1
- package/dist/tet-components/tet-components.css +2 -2
- package/dist/tet-components/tet-components.esm.js +1 -1
- package/dist/types/components/basic/buttons/tet-button/tet-button.d.ts +15 -1
- package/dist/types/components/basic/buttons/tet-checkbox/tet-checkbox.d.ts +3 -0
- package/dist/types/components/basic/buttons/tet-radio/tet-radio.d.ts +3 -0
- package/dist/types/components/basic/misc/tet-counter/tet-counter.d.ts +67 -0
- package/dist/types/components.d.ts +181 -2
- package/package.json +1 -1
- package/dist/components/p-7965bdfb.js +0 -89
- package/dist/components/p-f0a90a3d.js +0 -158
- package/dist/tet-components/p-1e7163c8.entry.js +0 -1
- package/dist/tet-components/p-31668864.entry.js +0 -1
- package/dist/tet-components/p-75927057.entry.js +0 -1
- package/dist/tet-components/p-8d8de315.entry.js +0 -1
- package/dist/tet-components/p-9ebb9fdf.entry.js +0 -1
- package/dist/tet-components/p-a903f58f.entry.js +0 -1
- package/dist/tet-components/p-f81d95ae.js +0 -1
|
@@ -10,6 +10,9 @@ export class TetButton {
|
|
|
10
10
|
this.size = 'large';
|
|
11
11
|
this.type = 'primary';
|
|
12
12
|
this.theme = 'classic';
|
|
13
|
+
this.colorTheme = undefined;
|
|
14
|
+
this.customColorCode = undefined;
|
|
15
|
+
this.customColorContentTone = 'light';
|
|
13
16
|
this.disabled = false;
|
|
14
17
|
this.iconMode = false;
|
|
15
18
|
this.iconPosition = 'right';
|
|
@@ -34,15 +37,73 @@ export class TetButton {
|
|
|
34
37
|
return;
|
|
35
38
|
window.open(this.url, this.urlTarget, this.urlTarget === '_blank' ? 'noopener,noreferrer' : undefined);
|
|
36
39
|
};
|
|
40
|
+
/** Resolves the supported type based on selected type, colorTheme, and customColorCode. */
|
|
41
|
+
getFallbackType() {
|
|
42
|
+
const { colorTheme, type, customColorCode } = this;
|
|
43
|
+
const isSecondaryType = type === 'secondary';
|
|
44
|
+
if (customColorCode) {
|
|
45
|
+
return isSecondaryType ? 'secondary' : 'primary';
|
|
46
|
+
}
|
|
47
|
+
if (colorTheme === 'yellow')
|
|
48
|
+
return 'primary';
|
|
49
|
+
if (colorTheme === 'adaptive-yellow')
|
|
50
|
+
return isSecondaryType ? 'secondary' : 'primary';
|
|
51
|
+
return type;
|
|
52
|
+
}
|
|
53
|
+
/** Resolves the effective theme based on selected theme, colorTheme, type, and customColorCode. */
|
|
54
|
+
getFallbackTheme() {
|
|
55
|
+
const { colorTheme, theme, customColorCode, type } = this;
|
|
56
|
+
const isGhostOrLinkType = type === 'ghost' || type === 'link';
|
|
57
|
+
if (customColorCode || colorTheme === 'yellow') {
|
|
58
|
+
return theme === 'dark' || theme === 'light-inverse' ? 'dark' : 'light';
|
|
59
|
+
}
|
|
60
|
+
if (colorTheme === 'adaptive-yellow') {
|
|
61
|
+
switch (theme) {
|
|
62
|
+
case 'light':
|
|
63
|
+
case 'light-inverse':
|
|
64
|
+
case 'dark':
|
|
65
|
+
return theme;
|
|
66
|
+
case 'dark-inverse':
|
|
67
|
+
return type === 'primary' ? 'dark-inverse' : 'dark';
|
|
68
|
+
default:
|
|
69
|
+
return 'light';
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
if (isGhostOrLinkType && theme === 'light-inverse')
|
|
73
|
+
return 'dark';
|
|
74
|
+
if (isGhostOrLinkType && theme === 'dark-inverse')
|
|
75
|
+
return 'light';
|
|
76
|
+
return theme;
|
|
77
|
+
}
|
|
78
|
+
/** Ensures iconMode has an accessible name by deriving one from iconName when no explicit accessibilityLabel is provided. */
|
|
79
|
+
getAccessibilityLabel() {
|
|
80
|
+
const { accessibilityLabel, iconMode, iconName } = this;
|
|
81
|
+
if (accessibilityLabel) {
|
|
82
|
+
return accessibilityLabel;
|
|
83
|
+
}
|
|
84
|
+
if (iconMode && iconName) {
|
|
85
|
+
const label = iconName.startsWith('tc-') ? iconName.substring(3) : iconName;
|
|
86
|
+
return label.replaceAll('-', ' ').trim();
|
|
87
|
+
}
|
|
88
|
+
return '';
|
|
89
|
+
}
|
|
90
|
+
shouldApplyDarkCustomColorContentClass() {
|
|
91
|
+
const { customColorCode, type, customColorContentTone } = this;
|
|
92
|
+
return !!customColorCode && type === 'primary' && customColorContentTone === 'dark';
|
|
93
|
+
}
|
|
37
94
|
render() {
|
|
38
|
-
|
|
95
|
+
const accessibilityLabel = this.getAccessibilityLabel();
|
|
96
|
+
return (h(Host, { key: 'de69fa5a41ed8b0d0e1de462509a1bab59fabab4' }, h("button", { key: '6310d69f52cfd2992f21d5e3203e40b8339d09d6', part: "button", onClick: this.handleClick, id: this.elementId, style: this.customColorCode ? { '--button-custom-color': this.customColorCode } : undefined, class: {
|
|
39
97
|
button: true,
|
|
40
|
-
[`button
|
|
41
|
-
[`button--type-${this.
|
|
42
|
-
[`button
|
|
43
|
-
|
|
44
|
-
'
|
|
45
|
-
|
|
98
|
+
[`button--${this.size}`]: true,
|
|
99
|
+
[`button--type-${this.getFallbackType()}`]: true,
|
|
100
|
+
[`button--${this.getFallbackTheme()}-theme`]: true,
|
|
101
|
+
[`button--color-theme-${this.colorTheme}`]: !!this.colorTheme && !this.customColorCode,
|
|
102
|
+
'button--custom-color': !!this.customColorCode,
|
|
103
|
+
'button--custom-color-content-dark': this.shouldApplyDarkCustomColorContentClass(),
|
|
104
|
+
'button--icon-mode': this.iconMode,
|
|
105
|
+
'button--with-icon': !!this.iconName,
|
|
106
|
+
}, disabled: this.disabled, ...(accessibilityLabel ? { 'aria-label': accessibilityLabel } : {}), tabindex: 0 }, (!!this.iconName && this.iconMode)
|
|
46
107
|
? h("tet-icon", { name: this.iconName })
|
|
47
108
|
: !!this.iconName
|
|
48
109
|
? this.renderButtonWithIcon(this.iconPosition)
|
|
@@ -126,7 +187,7 @@ export class TetButton {
|
|
|
126
187
|
"mutable": false,
|
|
127
188
|
"complexType": {
|
|
128
189
|
"original": "ButtonTheme",
|
|
129
|
-
"resolved": "\"classic\" | \"dark\" | \"dark-inverse\" | \"light\" | \"light-inverse\" | \"mint\"
|
|
190
|
+
"resolved": "\"classic\" | \"dark\" | \"dark-inverse\" | \"light\" | \"light-inverse\" | \"mint\"",
|
|
130
191
|
"references": {
|
|
131
192
|
"ButtonTheme": {
|
|
132
193
|
"location": "local",
|
|
@@ -145,6 +206,64 @@ export class TetButton {
|
|
|
145
206
|
"reflect": false,
|
|
146
207
|
"defaultValue": "'classic'"
|
|
147
208
|
},
|
|
209
|
+
"colorTheme": {
|
|
210
|
+
"type": "string",
|
|
211
|
+
"mutable": false,
|
|
212
|
+
"complexType": {
|
|
213
|
+
"original": "ColorTheme",
|
|
214
|
+
"resolved": "\"adaptive-yellow\" | \"yellow\"",
|
|
215
|
+
"references": {
|
|
216
|
+
"ColorTheme": {
|
|
217
|
+
"location": "local",
|
|
218
|
+
"path": "/__w/internal-tet-web-components-tet-components/internal-tet-web-components-tet-components/src/src/components/basic/buttons/tet-button/tet-button.tsx",
|
|
219
|
+
"id": "src/components/basic/buttons/tet-button/tet-button.tsx::ColorTheme"
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
"required": false,
|
|
224
|
+
"optional": true,
|
|
225
|
+
"docs": {
|
|
226
|
+
"tags": [],
|
|
227
|
+
"text": "The color theme of the button."
|
|
228
|
+
},
|
|
229
|
+
"attribute": "color-theme",
|
|
230
|
+
"reflect": false
|
|
231
|
+
},
|
|
232
|
+
"customColorCode": {
|
|
233
|
+
"type": "string",
|
|
234
|
+
"mutable": false,
|
|
235
|
+
"complexType": {
|
|
236
|
+
"original": "string",
|
|
237
|
+
"resolved": "string",
|
|
238
|
+
"references": {}
|
|
239
|
+
},
|
|
240
|
+
"required": false,
|
|
241
|
+
"optional": true,
|
|
242
|
+
"docs": {
|
|
243
|
+
"tags": [],
|
|
244
|
+
"text": "CSS color value for the custom button color theme."
|
|
245
|
+
},
|
|
246
|
+
"attribute": "custom-color-code",
|
|
247
|
+
"reflect": false
|
|
248
|
+
},
|
|
249
|
+
"customColorContentTone": {
|
|
250
|
+
"type": "string",
|
|
251
|
+
"mutable": false,
|
|
252
|
+
"complexType": {
|
|
253
|
+
"original": "'light' | 'dark'",
|
|
254
|
+
"resolved": "\"dark\" | \"light\"",
|
|
255
|
+
"references": {}
|
|
256
|
+
},
|
|
257
|
+
"required": false,
|
|
258
|
+
"optional": false,
|
|
259
|
+
"docs": {
|
|
260
|
+
"tags": [],
|
|
261
|
+
"text": "Content tone for primary buttons when customColorCode is set."
|
|
262
|
+
},
|
|
263
|
+
"attribute": "custom-color-content-tone",
|
|
264
|
+
"reflect": false,
|
|
265
|
+
"defaultValue": "'light'"
|
|
266
|
+
},
|
|
148
267
|
"disabled": {
|
|
149
268
|
"type": "boolean",
|
|
150
269
|
"mutable": false,
|
|
@@ -480,6 +480,7 @@
|
|
|
480
480
|
--checkbox-disabled-checked-background-color: var(--tc-checkbox-active-disabled);
|
|
481
481
|
--checkbox-disabled-text-color: var(--tc-grey-40);
|
|
482
482
|
--checkbox-error-border-color: var(--tc-alert-accent-error);
|
|
483
|
+
--checkbox-unavailable-text-color: var(--tc-text-tertiary);
|
|
483
484
|
display: block;
|
|
484
485
|
position: relative;
|
|
485
486
|
}
|
|
@@ -502,6 +503,7 @@
|
|
|
502
503
|
--checkbox-disabled-checked-background-color: var(--tc-checkbox-active-disabled-dark);
|
|
503
504
|
--checkbox-disabled-text-color: var(--tc-grey-40-dark);
|
|
504
505
|
--checkbox-error-border-color: var(--tc-alert-accent-error-dark);
|
|
506
|
+
--checkbox-unavailable-text-color: var(--tc-text-tertiary-dark);
|
|
505
507
|
}
|
|
506
508
|
.checkbox.dark .checkbox__html-input:focus-visible ~ .checkbox__input, .checkbox.mint .checkbox__html-input:focus-visible ~ .checkbox__input {
|
|
507
509
|
outline: 0.125rem solid var(--tc-blue-40);
|
|
@@ -631,6 +633,9 @@
|
|
|
631
633
|
border: none;
|
|
632
634
|
background-color: var(--checkbox-disabled-checked-background-color);
|
|
633
635
|
}
|
|
636
|
+
.checkbox__html-input[disabled].checkbox__html-input--unavailable ~ .checkbox__label-container .checkbox__label {
|
|
637
|
+
color: var(--checkbox-unavailable-text-color);
|
|
638
|
+
}
|
|
634
639
|
.checkbox__input {
|
|
635
640
|
display: inline-flex;
|
|
636
641
|
align-items: center;
|
|
@@ -12,6 +12,7 @@ export class TetCheckbox {
|
|
|
12
12
|
this.name = undefined;
|
|
13
13
|
this.value = 0;
|
|
14
14
|
this.disabled = false;
|
|
15
|
+
this.unavailable = false;
|
|
15
16
|
this.checked = false;
|
|
16
17
|
this.error = false;
|
|
17
18
|
this.indeterminate = false;
|
|
@@ -69,18 +70,32 @@ export class TetCheckbox {
|
|
|
69
70
|
const slot = event.target;
|
|
70
71
|
this.hasSlotIcon = slot.assignedElements().length > 0;
|
|
71
72
|
};
|
|
73
|
+
get iconType() {
|
|
74
|
+
const { unavailable, disabled } = this;
|
|
75
|
+
switch (true) {
|
|
76
|
+
case unavailable:
|
|
77
|
+
return 'secondary';
|
|
78
|
+
case disabled:
|
|
79
|
+
return 'tertiary';
|
|
80
|
+
default:
|
|
81
|
+
return 'primary';
|
|
82
|
+
}
|
|
83
|
+
}
|
|
72
84
|
render() {
|
|
73
|
-
const { label, name, checked, value, disabled, error, iconName, labelFont, alignCenter, hasSlotIcon, accessibilityLabel } = this;
|
|
74
|
-
return (h(Host, { key: '
|
|
85
|
+
const { label, name, checked, value, disabled, error, iconName, labelFont, alignCenter, hasSlotIcon, accessibilityLabel, unavailable, iconType } = this;
|
|
86
|
+
return (h(Host, { key: '2b137f96b9a158928e7bf13edd24064fc9a67fcf' }, h("div", { key: 'd9ad8a40fb6c0a0a1fe2705b99cb14f092a821e3', class: { checkbox: true, [`${this.theme}`]: true } }, h("label", { key: '73de7eae4cad137187ea5fbd9b355dab804074f6', class: {
|
|
75
87
|
'checkbox__container': true,
|
|
76
88
|
'checkbox__container--focus-style': this.focusStyleOnContainer,
|
|
77
89
|
'checkbox__container--align-start': !alignCenter,
|
|
78
|
-
}, part: "checkbox-container", htmlFor: "tet-checkbox" }, h("input", { key: '
|
|
90
|
+
}, part: "checkbox-container", htmlFor: "tet-checkbox" }, h("input", { key: '12fbd0566b9b43771e84fe1bc6bd41ebee30178b', ref: (el) => (this.inputEl = el), class: {
|
|
91
|
+
"checkbox__html-input": true,
|
|
92
|
+
'checkbox__html-input--unavailable': unavailable,
|
|
93
|
+
}, id: "tet-checkbox", type: "checkbox", name: name, value: value, ...(accessibilityLabel ? { 'aria-label': accessibilityLabel } : {}), disabled: disabled || unavailable, checked: checked, onChange: this.handleChange }), h("span", { key: 'd57b60f2c25914cd0469ca9500a3b8e6548ad096', class: {
|
|
79
94
|
'checkbox__input': true,
|
|
80
95
|
'checkbox__input--error': error,
|
|
81
96
|
'checkbox__input--hide-focus-style': this.focusStyleOnContainer,
|
|
82
97
|
...(labelFont ? { [`checkbox__input--${labelFont}`]: true } : {}),
|
|
83
|
-
} }, h("tet-icon", { key: '
|
|
98
|
+
} }, h("tet-icon", { key: '19057fad568cc1e4a917b6566d4764f1a9b9bf93', name: "remove", class: "checkbox__icon checkbox__icon--indeterminate indicator" }), h("tet-icon", { key: '39d38a6dd295e60d4cbb0c0aafe2ec9d7f7bfddd', name: "check", class: "checkbox__icon" })), h("div", { key: '2ac221e6a4818bec7c32980a0fe5a7aa7cc0ddd6', class: "checkbox__label-container" }, iconName ? (h("tet-icon", { theme: this.theme === 'light' ? 'light' : 'dark', name: iconName, type: iconType, class: {
|
|
84
99
|
'checkbox__label-icon': true,
|
|
85
100
|
[`checkbox__label-icon--${iconName}`]: true,
|
|
86
101
|
...(labelFont ? { [`checkbox__label-icon--${labelFont}`]: true } : {}),
|
|
@@ -88,10 +103,10 @@ export class TetCheckbox {
|
|
|
88
103
|
'checkbox__label-slot-icon': true,
|
|
89
104
|
'checkbox__label-slot-icon--hidden': !hasSlotIcon,
|
|
90
105
|
...(labelFont ? { [`checkbox__label-slot-icon--${labelFont}`]: true } : {}),
|
|
91
|
-
} }, h("slot", { name: "label-icon", onSlotchange: this.onIconSlotChange }))), h("span", { key: '
|
|
106
|
+
} }, h("slot", { name: "label-icon", onSlotchange: this.onIconSlotChange }))), h("span", { key: '2f1efb33e50c2e00d464399c950e77528e98ed67', class: {
|
|
92
107
|
'checkbox__label': true,
|
|
93
108
|
...(labelFont ? { [`checkbox__label--${labelFont}`]: true } : {}),
|
|
94
|
-
}, innerHTML: label }, h("slot", { key: '
|
|
109
|
+
}, innerHTML: label }, h("slot", { key: 'c72b3d2b6323c243cf7a58ce25a7b67cc3b6fca2' })))))));
|
|
95
110
|
}
|
|
96
111
|
static get is() { return "tet-checkbox"; }
|
|
97
112
|
static get encapsulation() { return "shadow"; }
|
|
@@ -213,6 +228,24 @@ export class TetCheckbox {
|
|
|
213
228
|
"reflect": false,
|
|
214
229
|
"defaultValue": "false"
|
|
215
230
|
},
|
|
231
|
+
"unavailable": {
|
|
232
|
+
"type": "boolean",
|
|
233
|
+
"mutable": false,
|
|
234
|
+
"complexType": {
|
|
235
|
+
"original": "boolean",
|
|
236
|
+
"resolved": "boolean",
|
|
237
|
+
"references": {}
|
|
238
|
+
},
|
|
239
|
+
"required": false,
|
|
240
|
+
"optional": false,
|
|
241
|
+
"docs": {
|
|
242
|
+
"tags": [],
|
|
243
|
+
"text": "The property to determine whether the checkbox should be unavailable."
|
|
244
|
+
},
|
|
245
|
+
"attribute": "unavailable",
|
|
246
|
+
"reflect": false,
|
|
247
|
+
"defaultValue": "false"
|
|
248
|
+
},
|
|
216
249
|
"checked": {
|
|
217
250
|
"type": "boolean",
|
|
218
251
|
"mutable": true,
|
|
@@ -371,6 +371,7 @@
|
|
|
371
371
|
--radio-disabled-text-color: rgb(153, 160, 174);
|
|
372
372
|
--radio-error-border-color: rgb(233, 69, 54);
|
|
373
373
|
--radio-outline-focus-color: var(--tc-blue-40);
|
|
374
|
+
--radio-unavailable-text-color: var(--tc-text-tertiary);
|
|
374
375
|
--radio-vertical-alignment: flex-start;
|
|
375
376
|
--radio-gap: 0.5rem;
|
|
376
377
|
--radio-container-outline-offset: 0.1875rem;
|
|
@@ -396,6 +397,7 @@
|
|
|
396
397
|
--radio-disabled-text-color: var(--tc-grey-40-dark);
|
|
397
398
|
--radio-error-border-color: var(--tc-alert-accent-error-dark);
|
|
398
399
|
--radio-outline-focus-color: var(--tc-blue-40-dark);
|
|
400
|
+
--radio-unavailable-text-color: var(--tc-text-tertiary-dark);
|
|
399
401
|
}
|
|
400
402
|
.radio-dark-theme .radio__html-input:focus-visible ~ .radio__input, .radio-mint-theme .radio__html-input:focus-visible ~ .radio__input {
|
|
401
403
|
outline: 0.125rem solid var(--tc-blue-40);
|
|
@@ -520,6 +522,9 @@
|
|
|
520
522
|
.radio__html-input[disabled]:checked ~ .radio__input {
|
|
521
523
|
background-color: var(--radio-disabled-checked-background-color);
|
|
522
524
|
}
|
|
525
|
+
.radio__html-input[disabled].radio__html-input--unavailable ~ .radio__label-container .radio__label {
|
|
526
|
+
color: var(--radio-unavailable-text-color);
|
|
527
|
+
}
|
|
523
528
|
.radio__input {
|
|
524
529
|
display: inline-flex;
|
|
525
530
|
position: relative;
|
|
@@ -11,6 +11,7 @@ export class TetRadio {
|
|
|
11
11
|
this.name = undefined;
|
|
12
12
|
this.value = 0;
|
|
13
13
|
this.disabled = false;
|
|
14
|
+
this.unavailable = false;
|
|
14
15
|
this.checked = false;
|
|
15
16
|
this.error = false;
|
|
16
17
|
this.inputAutofocus = false;
|
|
@@ -83,22 +84,36 @@ export class TetRadio {
|
|
|
83
84
|
const icon = this.radioElement.querySelector('[slot="label-icon"]');
|
|
84
85
|
this.hasSlotIcon = !!icon;
|
|
85
86
|
};
|
|
87
|
+
get iconType() {
|
|
88
|
+
const { unavailable, disabled } = this;
|
|
89
|
+
switch (true) {
|
|
90
|
+
case unavailable:
|
|
91
|
+
return 'secondary';
|
|
92
|
+
case disabled:
|
|
93
|
+
return 'tertiary';
|
|
94
|
+
default:
|
|
95
|
+
return 'primary';
|
|
96
|
+
}
|
|
97
|
+
}
|
|
86
98
|
render() {
|
|
87
|
-
const { id, disabled, value, checked, name, label, accessibilityLabel, error, inputAutofocus, iconName, labelFont, alignCenter, hasSlotIcon } = this;
|
|
88
|
-
return (h(Host, { key: '
|
|
99
|
+
const { id, disabled, value, checked, name, label, accessibilityLabel, error, inputAutofocus, iconName, labelFont, alignCenter, hasSlotIcon, unavailable, iconType } = this;
|
|
100
|
+
return (h(Host, { key: 'ef9c0d26dc82008c844694bfdda7965790562dc2' }, h("div", { key: '1e7dd47026ee5b705d1082d2492e703fd20af0c9', class: { radio: true, [`radio-${this.theme}-theme`]: true } }, h("label", { key: '7462fe2a8b7369ad00a3959c49dc2c63dd70514a', class: {
|
|
89
101
|
'radio__container': true,
|
|
90
102
|
'radio__container--focus-style': this.focusStyleOnContainer,
|
|
91
103
|
'radio__container--align-center': alignCenter,
|
|
92
|
-
}, htmlFor: id }, h("input", { key: '
|
|
104
|
+
}, htmlFor: id }, h("input", { key: 'd3f03196161ed9030388dbe807d1aa5f5cb15ac0', class: {
|
|
105
|
+
"radio__html-input": true,
|
|
106
|
+
'radio__html-input--unavailable': unavailable,
|
|
107
|
+
}, id: id, name: name, type: "radio", value: value, disabled: disabled || unavailable, checked: checked, onChange: this.handleInputChange, autofocus: inputAutofocus, ...(accessibilityLabel ? { 'aria-label': accessibilityLabel } : {}) }), h("span", { key: '2b8f4f62e5bc2eccdaebc3154cccc5a6cef0b6db', class: {
|
|
93
108
|
'radio__input': true,
|
|
94
109
|
'radio__input--error': error,
|
|
95
110
|
'radio__input--hide-focus-style': this.focusStyleOnContainer,
|
|
96
111
|
'radio__input--has-label-prop': !!label,
|
|
97
112
|
...(labelFont ? { [`radio__input--${labelFont}`]: true } : {}),
|
|
98
|
-
} }), h("div", { key: '
|
|
113
|
+
} }), h("div", { key: '5c53d71f5fe2c5545b469de3a5e5948639c0c6eb', class: {
|
|
99
114
|
'radio__label-container': true,
|
|
100
115
|
'radio__label-container--line-height': hasSlotIcon || !!iconName,
|
|
101
|
-
} }, iconName ? (h("tet-icon", { theme: ['classic', 'light'].includes(this.theme) ? 'light' : 'dark', name: iconName, type:
|
|
116
|
+
} }, iconName ? (h("tet-icon", { theme: ['classic', 'light'].includes(this.theme) ? 'light' : 'dark', name: iconName, type: iconType, class: {
|
|
102
117
|
'radio__label-icon': true,
|
|
103
118
|
[`radio__label-icon--${iconName}`]: true,
|
|
104
119
|
...(labelFont ? { [`radio__label-icon--${labelFont}`]: true } : {}),
|
|
@@ -106,11 +121,11 @@ export class TetRadio {
|
|
|
106
121
|
'radio__label-slot-icon': true,
|
|
107
122
|
'radio__label-slot-icon--hidden': !hasSlotIcon,
|
|
108
123
|
...(labelFont ? { [`radio__label-slot-icon--${labelFont}`]: true } : {}),
|
|
109
|
-
} }, h("slot", { name: "label-icon" }))), h("span", { key: '
|
|
124
|
+
} }, h("slot", { name: "label-icon" }))), h("span", { key: '3278de5e78f554fe9ba12cfdb99b9d6527d8e6c1', class: {
|
|
110
125
|
'radio__label': true,
|
|
111
126
|
'radio__label--has-slot-icon': hasSlotIcon,
|
|
112
127
|
...(labelFont ? { [`radio__label--${labelFont}`]: true } : {}),
|
|
113
|
-
}, innerHTML: label }, h("slot", { key: '
|
|
128
|
+
}, innerHTML: label }, h("slot", { key: 'bed2fd33652b1a54dd498846d723f4c4ee4f5bd2' })))))));
|
|
114
129
|
}
|
|
115
130
|
static get is() { return "tet-radio"; }
|
|
116
131
|
static get encapsulation() { return "scoped"; }
|
|
@@ -232,6 +247,24 @@ export class TetRadio {
|
|
|
232
247
|
"reflect": false,
|
|
233
248
|
"defaultValue": "false"
|
|
234
249
|
},
|
|
250
|
+
"unavailable": {
|
|
251
|
+
"type": "boolean",
|
|
252
|
+
"mutable": false,
|
|
253
|
+
"complexType": {
|
|
254
|
+
"original": "boolean",
|
|
255
|
+
"resolved": "boolean",
|
|
256
|
+
"references": {}
|
|
257
|
+
},
|
|
258
|
+
"required": false,
|
|
259
|
+
"optional": false,
|
|
260
|
+
"docs": {
|
|
261
|
+
"tags": [],
|
|
262
|
+
"text": "The property to determine whether the radio button should be unavailable."
|
|
263
|
+
},
|
|
264
|
+
"attribute": "unavailable",
|
|
265
|
+
"reflect": false,
|
|
266
|
+
"defaultValue": "false"
|
|
267
|
+
},
|
|
235
268
|
"checked": {
|
|
236
269
|
"type": "boolean",
|
|
237
270
|
"mutable": true,
|
|
@@ -46,16 +46,16 @@ export class TetSwitch {
|
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
48
|
const { label, name, theme, disabled, checked, accessibilityLabel, labelFont, alignCenter, labelPosition } = this;
|
|
49
|
-
return (h(Host, { key: '
|
|
49
|
+
return (h(Host, { key: 'b9ab784392f96bcd9c675a17309a074f257c1b6a' }, h("div", { key: 'c747d4f40d343d3fb437a6371e60c4409242e0a7', class: { 'switch': true, [`${theme}`]: true } }, h("label", { key: '51521ad5b256229e559c1264edfcbddff077f01e', class: {
|
|
50
50
|
'switch__container': true,
|
|
51
51
|
'switch__container--align-start': !alignCenter,
|
|
52
52
|
[`switch__container--${labelFont}`]: true,
|
|
53
53
|
'switch__container--focus-style': this.focusStyleOnContainer,
|
|
54
|
-
}, part: "switch-container", htmlFor: "tet-switch" }, h("input", { key: '
|
|
54
|
+
}, part: "switch-container", htmlFor: "tet-switch" }, h("input", { key: '24429f5b7d57b9ab1d94bfbf5ae8fcb1af156c82', class: "switch__html-input", name: name, id: "tet-switch", type: "checkbox", disabled: disabled, checked: checked, onChange: this.handleChange.bind(this), ...(accessibilityLabel ? { "aria-label": accessibilityLabel } : {}) }), labelPosition === 'right' && this.renderSwitch(), h("span", { key: '259bfd14a0082b379a733f5605eb760f5cb5dfaf', class: {
|
|
55
55
|
'switch__label': true,
|
|
56
56
|
...(labelPosition === 'left' ? { 'switch__label--left': true } : {}),
|
|
57
57
|
...(labelFont ? { [`switch__label--${labelFont}`]: true } : {}),
|
|
58
|
-
}, innerHTML: label }, h("slot", { key: '
|
|
58
|
+
}, innerHTML: label }, h("slot", { key: '17bd908993e20dba389ebea6165bba4546bd4853' })), labelPosition === 'left' && this.renderSwitch()))));
|
|
59
59
|
}
|
|
60
60
|
static get is() { return "tet-switch"; }
|
|
61
61
|
static get encapsulation() { return "shadow"; }
|
package/dist/collection/components/basic/buttons/tet-tabs/tet-tab-content/tet-tab-content.js
CHANGED
|
@@ -161,11 +161,11 @@ export class TetTabContent {
|
|
|
161
161
|
this.selectedId = id;
|
|
162
162
|
}
|
|
163
163
|
render() {
|
|
164
|
-
return (h(Host, { key: '
|
|
164
|
+
return (h(Host, { key: 'b6c8711fc9850aeaf025e215f04fb2932d4208c4' }, h("div", { key: 'ab5f83843944f003cb6f75378f3768b95d295339', class: {
|
|
165
165
|
'tet-tab-content': true,
|
|
166
166
|
'use-visibility': this.useVisibility,
|
|
167
167
|
[this.theme]: true
|
|
168
|
-
} }, h("slot", { key: '
|
|
168
|
+
} }, h("slot", { key: '38e182f182fe04c9dcd250323c0f9a5048362c6f' }))));
|
|
169
169
|
}
|
|
170
170
|
static get is() { return "tet-tab-content"; }
|
|
171
171
|
static get encapsulation() { return "shadow"; }
|
|
@@ -471,14 +471,14 @@ export class TetTabHeader {
|
|
|
471
471
|
return {};
|
|
472
472
|
}
|
|
473
473
|
render() {
|
|
474
|
-
return (h(Host, { key: '
|
|
474
|
+
return (h(Host, { key: '8e1924cd0f19ed6987c8cda6df5d7c9cb044c569', "data-id-suffix": this.idSuffix }, h("div", { key: 'd5582e17dd959d569ff981180540b8acaf07803d', class: {
|
|
475
475
|
'tabs': true,
|
|
476
476
|
'tabs--segmented': this.segmented,
|
|
477
477
|
[this.position]: true,
|
|
478
478
|
[this.theme]: true,
|
|
479
479
|
[this.sizing]: true,
|
|
480
480
|
[this.type]: !!this.type
|
|
481
|
-
}, onMouseDown: this.onContainerMouseDown, style: this.getStyle(), ref: (ref) => (this.tabElement = ref), role: "tablist" }, h("slot", { key: '
|
|
481
|
+
}, onMouseDown: this.onContainerMouseDown, style: this.getStyle(), ref: (ref) => (this.tabElement = ref), role: "tablist" }, h("slot", { key: 'b7a3ed5fdfb64cb8ff2ab9614bea51d5b4c7f0a4', ref: (slot) => (this.tabContainer = slot) })), h("div", { key: '7a1d6571c66f66a854be259817bb1d0e39e442ed', class: {
|
|
482
482
|
'tabs-line': !this.segmented,
|
|
483
483
|
'no-underline': this.hideHeaderUnderline,
|
|
484
484
|
[this.theme]: true,
|
|
@@ -20,12 +20,12 @@ export class TetTag {
|
|
|
20
20
|
processTranslations('tet-components', this.language).then(() => forceUpdate(this));
|
|
21
21
|
}
|
|
22
22
|
render() {
|
|
23
|
-
return (h(Host, { key: '
|
|
23
|
+
return (h(Host, { key: '400777c5cd77465279f0f3dd106ac26e6a15807c' }, h("button", { key: '98998a4119d014a1c7692bf8c409d81851c0a5fc', class: {
|
|
24
24
|
tag: true,
|
|
25
25
|
'tag-active': this.active,
|
|
26
26
|
'tag--icon': this.showIcon,
|
|
27
27
|
[`theme-${this.theme}`]: true,
|
|
28
|
-
}, "aria-pressed": this.active.toString(), disabled: this.disabled }, this.tagTitle && h("p", { key: '
|
|
28
|
+
}, "aria-pressed": this.active.toString(), disabled: this.disabled }, this.tagTitle && h("p", { key: '08322bdc4685a7bd7896cc9d8fa39cb0845bf720', class: "tag-title" }, t(this.tagTitle)), this.count !== null && this.count !== undefined && h("span", { key: 'd0186bd43116b76036813a6b043d18d627d5dd80', class: "tag-count" }, this.count), this.showIcon && h("tet-icon", { key: '479c9d4b1c60d72e9733ec17c8eabe49b7d8492e', class: "tag-icon", name: "close-circle", part: "icon-selected" }))));
|
|
29
29
|
}
|
|
30
30
|
static get is() { return "tet-tag"; }
|
|
31
31
|
static get encapsulation() { return "shadow"; }
|
|
@@ -427,23 +427,23 @@ export class TetCarousel {
|
|
|
427
427
|
document.removeEventListener('pointerup', this.onPointerUp);
|
|
428
428
|
}
|
|
429
429
|
render() {
|
|
430
|
-
return (h(Host, { key: '
|
|
430
|
+
return (h(Host, { key: '55e4a6d72e8d743d4292bf7b13099ba8ec78568f' }, h("div", { key: '690baf14fa0111a48e986f9bb6b46f5e1316532f', class: { 'tet-carousel': true, [`${this.theme}`]: true }, ref: (el) => (this.container = el), part: "carousel" }, h("div", { key: '11c23723dddb8c2b5056d350f4cb38bbae992db5', class: "tet-carousel__container" }, h("div", { key: '16efc588fc8e3ae7e8f574ca9c181a88006a9604', class: "tet-carousel__gradient-left", ref: (el) => {
|
|
431
431
|
this.leftGradientRef = el;
|
|
432
|
-
} }), h("div", { key: '
|
|
432
|
+
} }), h("div", { key: '21e25113788756b2a50ea2753112946d53e38acf', class: "tet-carousel__gradient-right", ref: (el) => {
|
|
433
433
|
this.rightGradientRef = el;
|
|
434
|
-
} }), h("div", { key: '
|
|
434
|
+
} }), h("div", { key: 'd73ce24292dd07dc8f1be3c332d806e2f786ecc4', class: `tet-carousel__track ${!this._showButtons() && !this._showDots() ? 'tet-carousel__track--center' : ''}`, ref: (el) => (this.trackElement = el), style: {
|
|
435
435
|
transform: `translateX(${this.dragOffset}px)`,
|
|
436
436
|
transition: this.isDragging ? 'none' : `transform ${this.transitionDuration}ms ${this.transitionTiming}`
|
|
437
|
-
}, onPointerDown: this.onPointerDown, onMouseMove: this.onPointerMove, onPointerUp: this.onPointerUp, onMouseLeave: this.onPointerUp }, h("slot", { key: '
|
|
437
|
+
}, onPointerDown: this.onPointerDown, onMouseMove: this.onPointerMove, onPointerUp: this.onPointerUp, onMouseLeave: this.onPointerUp }, h("slot", { key: '732eaa7e833adb12c9c6519f29f7070bbd991262' }))), !!this.label && h("div", { key: 'e214ba6831574ac4bc97305e4c6167ff339c6956', class: "tet-carousel__label" }, this.label), (this._showButtons() || this._showDots()) && (h("div", { key: '88282e7940bdb9208cbf681e9b9db4eafdc1231e', class: "tet-carousel__controls" }, this._showButtons() && (h("div", { key: '7824de4ac68ccfd30aff1386265ad3ebfa473517', class: "tet-carousel__buttons tet-carousel__buttons--mobile" }, h("tet-button", { key: 'b871785466eda2bfd76226748789cb9a82ecc3cd', class: "tet-carousel__btn", theme: this.theme === 'light' ? 'dark' : 'light', "icon-name": this.buttonIconLeft, "icon-mode": true, tabIndex: -1, onPointerDown: (e) => e.stopPropagation(), onPointerUp: () => {
|
|
438
438
|
if (!this.isDragging)
|
|
439
439
|
this.handlePrev();
|
|
440
|
-
}, "aria-label": t('components-carousel-previous'), disabled: this.dotCount <= 1 || this.activeItem === 0 }))), this._showDots() && (h("div", { key: '
|
|
440
|
+
}, "aria-label": t('components-carousel-previous'), disabled: this.dotCount <= 1 || this.activeItem === 0 }))), this._showDots() && (h("div", { key: '1956610f0ae3ef7caa86345eea1ea8d9c8cdb624', class: "tet-carousel__dots" }, Array.from({ length: this.dotCount }).map((_, idx) => (h("button", { type: "button", tabIndex: -1, class: `tet-carousel__dot${idx === this.activeDotIndex ? ' active' : ''}`, key: idx, onPointerDown: (e) => e.stopPropagation(), onPointerUp: () => {
|
|
441
441
|
if (!this.isDragging)
|
|
442
442
|
this.handleDotClick(idx);
|
|
443
|
-
}, onClick: () => this.handleDotClick(idx) }))))), this._showButtons() && (h("div", { key: '
|
|
443
|
+
}, onClick: () => this.handleDotClick(idx) }))))), this._showButtons() && (h("div", { key: '7e827860320c5a25ddbee8ff43a416b212a5405f', class: "tet-carousel__buttons " }, h("tet-button", { key: 'd02e07f42cba8277c166404837518c5af32fc0c7', class: "tet-carousel__buttons--desktop tet-carousel__btn ", theme: this.theme === 'light' ? 'dark' : 'light', "icon-name": this.buttonIconLeft, "icon-mode": true, tabIndex: -1, onPointerDown: (e) => e.stopPropagation(), onPointerUp: () => {
|
|
444
444
|
if (!this.isDragging)
|
|
445
445
|
this.handlePrev();
|
|
446
|
-
}, "aria-label": t('components-carousel-previous'), disabled: this.dotCount <= 1 || this.activeItem === 0 }), h("tet-button", { key: '
|
|
446
|
+
}, "aria-label": t('components-carousel-previous'), disabled: this.dotCount <= 1 || this.activeItem === 0 }), h("tet-button", { key: '17d47bbfcbf6bd2a9240c74804a33f0e07e15252', class: "tet-carousel__btn", theme: this.theme === 'light' ? 'dark' : 'light', "icon-name": this.buttonIconRight, "icon-mode": true, tabIndex: -1, onPointerDown: (e) => e.stopPropagation(), onPointerUp: () => {
|
|
447
447
|
if (!this.isDragging)
|
|
448
448
|
this.handleNext();
|
|
449
449
|
}, "aria-label": t('components-carousel-next'), disabled: this.dotCount <= 1 ||
|
|
@@ -50,7 +50,7 @@ export class TetIcon {
|
|
|
50
50
|
};
|
|
51
51
|
shouldUseDefaultColor = () => (this.useDefaultColor || defaultColorIcons.includes(this.name));
|
|
52
52
|
render() {
|
|
53
|
-
return (h("span", { key: '
|
|
53
|
+
return (h("span", { key: 'c5ddca646b87554822b4c175bd7139af80cb3995', class: "icon-wrapper", tabindex: (this.focusable || this.accessibilityLabel) ? 0 : -1 }, h("span", { key: '4d992df15ab7e5342a224e489ac3267664f3f239', class: {
|
|
54
54
|
'icon-container': true,
|
|
55
55
|
'default-color': this.shouldUseDefaultColor(),
|
|
56
56
|
[this.theme]: true,
|
|
@@ -4,7 +4,7 @@ import { h } from "@stencil/core";
|
|
|
4
4
|
*/
|
|
5
5
|
export class TetLoader {
|
|
6
6
|
render() {
|
|
7
|
-
return (h("div", { key: '
|
|
7
|
+
return (h("div", { key: '797bebccd24b1d5ec737d614e0446ed93fb529d1', class: "loader" }, h("div", { key: '7950251f3a7f7677cd9303f69eeac54f00e7dcac', class: "loader-inner" })));
|
|
8
8
|
}
|
|
9
9
|
static get is() { return "tet-loader"; }
|
|
10
10
|
static get encapsulation() { return "shadow"; }
|
|
@@ -9,7 +9,7 @@ export class TetPlaceholder {
|
|
|
9
9
|
this.darkTheme = false;
|
|
10
10
|
}
|
|
11
11
|
render() {
|
|
12
|
-
return (h(Host, { key: '
|
|
12
|
+
return (h(Host, { key: 'd235e9e033631259c071d46e1e84ca969baa01ca', style: { width: this.width, height: this.height } }, h("div", { key: '178d0f8bcd2b2478f15519c2174eac61669f566d', class: { 'dark-theme': this.darkTheme } }, h("div", { key: '44ccf3ad5e6cd034affc7a1cce60ac76d62b6508', class: "placeholder", style: { height: this.height } }))));
|
|
13
13
|
}
|
|
14
14
|
static get is() { return "tet-placeholder"; }
|
|
15
15
|
static get encapsulation() { return "shadow"; }
|
|
@@ -48,13 +48,13 @@ export class TetSpinner {
|
|
|
48
48
|
foreignObject.setAttribute('clip-path', 'url(#clip)');
|
|
49
49
|
};
|
|
50
50
|
render() {
|
|
51
|
-
return (h("div", { key: '
|
|
51
|
+
return (h("div", { key: '34ae4e1b54605bcc6a35cf6c34c3d81912278e1d', ref: element => (this.spinner = element), class: {
|
|
52
52
|
spinner: true,
|
|
53
53
|
[`${this.theme}-theme`]: true,
|
|
54
54
|
[`size--${this.size}`]: true,
|
|
55
55
|
[`spinner--${this.type}`]: true,
|
|
56
|
-
} }, h("svg", { key: '
|
|
57
|
-
0 40 8.9543 40 20ZM6 20C6 27.732 12.268 34 20 34C27.732 34 34 27.732 34 20C34 12.268 27.732 6 20 6C12.268 6 6 12.268 6 20Z` })), h("foreignObject", { key: '
|
|
56
|
+
} }, h("svg", { key: '6c5b50e4478f8317e694c9588eb13751e4567eb8', viewBox: "0 0 40 40" }, h("clipPath", { key: 'd261977216b2654cd4349be63d18ba71020500a4', id: "clip" }, h("path", { key: '374f5619c2f98434f72fbc6929d7fd6629273a36', d: `M40 20C40 31.0457 31.0457 40 20 40C8.9543 40 0 31.0457 0 20C0 8.9543 8.9543 0 20 0C31.0457
|
|
57
|
+
0 40 8.9543 40 20ZM6 20C6 27.732 12.268 34 20 34C27.732 34 34 27.732 34 20C34 12.268 27.732 6 20 6C12.268 6 6 12.268 6 20Z` })), h("foreignObject", { key: 'c987af39f6844eb7950ca327808e6b4dd0ad21c4' }, h("div", { key: 'a5900c0eca56f75f6dfdbb1f3c004510109b3bb4', class: "spinner__gradient" })))));
|
|
58
58
|
}
|
|
59
59
|
static get is() { return "tet-spinner"; }
|
|
60
60
|
static get encapsulation() { return "shadow"; }
|