@tet/tet-components 1.4.15-testing → 1.4.16-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-252a4d62.js → address-f852270f.js} +1 -1
- package/dist/cjs/{assets-b16e97be.js → assets-b9d36649.js} +1 -1
- package/dist/cjs/{async-request-d67fb591.js → async-request-4517f566.js} +1 -1
- package/dist/cjs/{http-codes-633d9222.js → http-codes-062f76cf.js} +1 -1
- package/dist/cjs/{index-1127ff0d.js → index-19a7608f.js} +1 -1
- package/dist/cjs/{index-d4d9f14a.js → index-faec4c52.js} +13 -6
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{phone-47292459.js → phone-d6be0dd2.js} +2 -2
- package/dist/cjs/{product-comparison-2e8e7d4c.js → product-comparison-aa80a77c.js} +1 -1
- package/dist/cjs/tet-accordion.cjs.entry.js +8 -8
- package/dist/cjs/tet-address-offers-filters-products_2.cjs.entry.js +3 -3
- 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 +12 -5
- 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 +1 -1
- 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 +28 -6
- package/dist/cjs/tet-cloud-application-form-dialog.cjs.entry.js +5 -5
- 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 +3 -3
- package/dist/cjs/tet-compare-cards-tab.cjs.entry.js +4 -4
- package/dist/cjs/tet-compare-cards_2.cjs.entry.js +6 -6
- 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 +2 -2
- package/dist/cjs/tet-container_2.cjs.entry.js +3 -3
- 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-dropdown.cjs.entry.js +2 -2
- 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 +27 -0
- 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 +3 -3
- 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-price-view.cjs.entry.js +2 -2
- package/dist/cjs/tet-radio.cjs.entry.js +69 -8
- 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-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 +26 -6
- 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 +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-tooltip.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-ba04df0a.js → theme-wrapper-46514846.js} +2 -2
- package/dist/cjs/{translations-a3267ac8.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-cards/tet-compare-cards.js +1 -1
- package/dist/collection/components/advanced/cards/tet-compare-cards-tab/tet-compare-cards-tab.js +1 -1
- package/dist/collection/components/advanced/cards/tet-dynamic-card/tet-dynamic-card.js +3 -3
- 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-checkbox/tet-checkbox.css +208 -33
- package/dist/collection/components/basic/buttons/tet-checkbox/tet-checkbox.js +107 -4
- package/dist/collection/components/basic/buttons/tet-radio/tet-radio.css +241 -54
- package/dist/collection/components/basic/buttons/tet-radio/tet-radio.js +195 -9
- package/dist/collection/components/basic/buttons/tet-switch/tet-switch.css +48 -32
- package/dist/collection/components/basic/buttons/tet-switch/tet-switch.js +102 -4
- 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/buttons/types/common.js +1 -0
- package/dist/collection/components/basic/carousel/tet-carousel/tet-carousel.js +7 -7
- package/dist/collection/components/basic/container/tet-container/tet-container.js +2 -2
- 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-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.css +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/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.css +4 -1
- 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.css +463 -0
- package/dist/collection/components/simple/structural/tet-floating-block/tet-floating-block.js +108 -0
- package/dist/collection/components/simple/tables-and-graphs/tet-table/tet-table.js +1 -1
- package/dist/collection/components/simple/text-blocks/tet-cloud-application-form-dialog/tet-cloud-application-form-dialog.js +2 -2
- 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-configurator/b2b-configurator.store.js +8 -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-contact-info/tet-contact-info.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 +1 -1
- package/dist/collection/components/views/tet-thank-you-view-v3/tet-thank-you-view-v3.js +1 -1
- 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-2a0fc928.js → p-021a316a.js} +4 -4
- package/dist/components/{p-0a24c592.js → p-0277bb01.js} +2 -2
- package/dist/components/{p-aee2affb.js → p-0291dc91.js} +7 -7
- package/dist/components/{p-f0471680.js → p-05839631.js} +10 -10
- package/dist/components/{p-c35372d8.js → p-0a193c9c.js} +2 -2
- package/dist/components/{p-9b1f8067.js → p-0e9a1448.js} +3 -3
- package/dist/components/{p-8276d9dd.js → p-0fa30fb2.js} +7 -7
- package/dist/components/{p-65bb5f44.js → p-14f98329.js} +5 -5
- package/dist/components/{p-5929c617.js → p-1c3d9855.js} +10 -10
- package/dist/components/{p-27b6d175.js → p-211603c6.js} +3 -3
- package/dist/components/{p-a9379795.js → p-2d045245.js} +2 -2
- package/dist/components/{p-63404e57.js → p-2f004969.js} +1 -1
- package/dist/components/{p-fb1ab8fc.js → p-3110060d.js} +5 -5
- package/dist/components/{p-bf360bed.js → p-3b0b1986.js} +5 -5
- package/dist/components/{p-19c1edc0.js → p-40fa379e.js} +3 -3
- package/dist/components/{p-15d95adb.js → p-44930935.js} +34 -7
- package/dist/components/{p-96008a98.js → p-4511fddc.js} +14 -14
- package/dist/components/{p-bf2658bc.js → p-4d69cb5d.js} +11 -11
- package/dist/components/{p-23390f1a.js → p-570ce3df.js} +6 -6
- package/dist/components/{p-c9bd5b7c.js → p-59381c40.js} +3 -3
- package/dist/components/{p-0fa6d576.js → p-59705fe2.js} +2 -2
- package/dist/components/{p-cc6c2e3f.js → p-61780dd7.js} +3 -3
- package/dist/components/{p-d04f645b.js → p-62f83911.js} +3 -3
- package/dist/components/{p-18ea47ca.js → p-6b30221f.js} +1 -1
- package/dist/components/{p-b84f3bcc.js → p-6f62f75a.js} +6 -6
- package/dist/components/{p-4997eb6a.js → p-76804409.js} +2 -2
- package/dist/components/{p-ee3f205f.js → p-7bca2904.js} +1 -1
- package/dist/components/{p-ccd4e8a3.js → p-8030824a.js} +1 -1
- package/dist/components/{p-6211f6bc.js → p-80f574a6.js} +2 -2
- package/dist/components/{p-a79147be.js → p-8116241a.js} +3 -3
- package/dist/components/{p-aaefac33.js → p-853bebed.js} +1 -1
- package/dist/components/{p-92ed933f.js → p-8e09c653.js} +2 -2
- package/dist/components/{p-034268ac.js → p-8e745800.js} +2 -2
- package/dist/components/{p-8476ba85.js → p-8fb84406.js} +5 -5
- package/dist/components/{p-760b9cbc.js → p-91855a08.js} +9 -9
- package/dist/components/{p-845ded9d.js → p-941017cb.js} +2 -2
- package/dist/components/{p-ca74db2c.js → p-95634d67.js} +2 -2
- package/dist/components/{p-21e917bf.js → p-a1cdaf43.js} +2 -2
- package/dist/components/{p-a8f6912f.js → p-a37d6478.js} +3 -3
- package/dist/components/{p-e1639033.js → p-aa122c92.js} +5 -2
- package/dist/components/{p-6fbda692.js → p-ad596ef7.js} +13 -13
- package/dist/components/{p-e8649be7.js → p-ae5cc946.js} +1 -2
- package/dist/components/{p-6cf7bbb6.js → p-b5c54b82.js} +4 -4
- package/dist/components/{p-2468a358.js → p-b7ac82f3.js} +30 -6
- package/dist/components/{p-2506cccc.js → p-be5ebf54.js} +5 -5
- package/dist/components/{p-d0c701e2.js → p-cf1950bd.js} +3 -3
- package/dist/components/{p-5e06a021.js → p-d1378512.js} +6 -6
- package/dist/components/{p-9dcc547a.js → p-d39477e0.js} +306 -4
- package/dist/components/{p-9e1397cf.js → p-d4072214.js} +8 -8
- package/dist/components/{p-24c54cbf.js → p-d9c55c87.js} +4 -4
- package/dist/components/{p-d8921683.js → p-db67aeea.js} +2 -2
- package/dist/components/{p-341663ab.js → p-de629a92.js} +1 -1
- package/dist/components/{p-7182b273.js → p-df8530c5.js} +5 -5
- package/dist/components/{p-cd02900a.js → p-edd13bc6.js} +4 -4
- package/dist/components/{p-3bceb3c7.js → p-f4529f24.js} +3 -3
- package/dist/components/{p-4ab0f603.js → p-f4644284.js} +1 -1
- package/dist/components/{p-3b8d47c1.js → p-f69e9b66.js} +11 -11
- package/dist/components/{p-76f77f88.js → p-fd36484a.js} +84 -10
- 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 -26
- 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 +28 -21
- 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 +10 -10
- 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 +9 -9
- package/dist/components/tet-compare-card.js +1 -1
- package/dist/components/tet-compare-cards-tab.js +17 -17
- 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 +2 -2
- package/dist/components/tet-container.js +1 -1
- package/dist/components/tet-customer-assets.js +16 -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-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.d.ts +11 -0
- package/dist/components/tet-floating-block.js +57 -0
- 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 +5 -5
- package/dist/components/tet-link.js +2 -2
- package/dist/components/tet-loader.js +1 -1
- package/dist/components/tet-macd-view.js +11 -12
- 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-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 -9
- package/dist/components/tet-round-stepper.js +3 -3
- package/dist/components/tet-selection-list.js +1 -1
- 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-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-1450f031.js → address-20e2d850.js} +1 -1
- package/dist/esm/{assets-2c6a61a5.js → assets-894007df.js} +1 -1
- package/dist/esm/{async-request-99d44c50.js → async-request-ae1056de.js} +1 -1
- package/dist/esm/{http-codes-53c8d512.js → http-codes-cf0086d4.js} +1 -1
- package/dist/esm/{index-3e01408d.js → index-e3209c56.js} +1 -1
- package/dist/esm/{index-a59c9de7.js → index-e933a7d2.js} +13 -6
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{phone-1c67bd7f.js → phone-62660137.js} +2 -2
- package/dist/esm/{product-comparison-1937b6e6.js → product-comparison-cb8955f6.js} +1 -1
- package/dist/esm/tet-accordion.entry.js +8 -8
- package/dist/esm/tet-address-offers-filters-products_2.entry.js +3 -3
- 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 +12 -5
- 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 +1 -1
- 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 +28 -6
- package/dist/esm/tet-cloud-application-form-dialog.entry.js +5 -5
- 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 +3 -3
- package/dist/esm/tet-compare-cards-tab.entry.js +4 -4
- package/dist/esm/tet-compare-cards_2.entry.js +6 -6
- 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 +2 -2
- package/dist/esm/tet-container_2.entry.js +3 -3
- 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-dropdown.entry.js +2 -2
- 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 +23 -0
- 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 +3 -3
- 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-price-view.entry.js +2 -2
- package/dist/esm/tet-radio.entry.js +69 -8
- 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-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 +26 -6
- 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 +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-tooltip.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-4e6b2b05.js → theme-wrapper-cf4d7d54.js} +2 -2
- package/dist/esm/{translations-a33e8a2e.js → translations-e60db8fd.js} +1 -1
- package/dist/tet-components/{p-deb9b7bc.entry.js → p-033414f5.entry.js} +1 -1
- package/dist/tet-components/{p-1850dab3.entry.js → p-05ed7892.entry.js} +1 -1
- package/dist/tet-components/{p-d4a7d642.entry.js → p-07bbd524.entry.js} +1 -1
- package/dist/tet-components/{p-e85f5e2f.entry.js → p-08b1754d.entry.js} +1 -1
- package/dist/tet-components/{p-bc95d21f.entry.js → p-09fbe323.entry.js} +1 -1
- package/dist/tet-components/{p-b38c1945.entry.js → p-12c82d90.entry.js} +1 -1
- package/dist/tet-components/{p-f31c15eb.entry.js → p-14f01806.entry.js} +1 -1
- package/dist/tet-components/{p-dea4fa54.entry.js → p-18e9b5ea.entry.js} +1 -1
- package/dist/tet-components/{p-67e1a210.entry.js → p-1a6e9004.entry.js} +1 -1
- package/dist/tet-components/p-1eae5268.entry.js +1 -0
- package/dist/tet-components/{p-0bb46090.entry.js → p-21d09609.entry.js} +1 -1
- package/dist/tet-components/{p-ad869bdc.entry.js → p-265701de.entry.js} +1 -1
- package/dist/tet-components/{p-d7b41404.entry.js → p-2ce6fa05.entry.js} +1 -1
- package/dist/tet-components/{p-d865906c.js → p-2dbe670c.js} +1 -1
- package/dist/tet-components/{p-973779bd.entry.js → p-2ebf3ff7.entry.js} +1 -1
- package/dist/tet-components/{p-13e8a445.entry.js → p-2f545918.entry.js} +1 -1
- package/dist/tet-components/{p-08147454.entry.js → p-31d0b400.entry.js} +1 -1
- package/dist/tet-components/{p-3e9322a0.entry.js → p-32f9fba3.entry.js} +1 -1
- package/dist/tet-components/{p-1e992b39.entry.js → p-38c4c7b2.entry.js} +1 -1
- package/dist/tet-components/{p-ab1e8cc4.entry.js → p-39398276.entry.js} +1 -1
- package/dist/tet-components/{p-1182034b.js → p-3ac57578.js} +1 -1
- package/dist/tet-components/{p-317ba450.entry.js → p-3ca8249a.entry.js} +1 -1
- package/dist/tet-components/{p-e6b214f5.entry.js → p-3f28bd1e.entry.js} +1 -1
- package/dist/tet-components/{p-398e81de.entry.js → p-3f9ef94a.entry.js} +1 -1
- package/dist/tet-components/{p-2b65a26b.entry.js → p-40cd6c7e.entry.js} +1 -1
- package/dist/tet-components/{p-32901a27.js → p-4213c1d1.js} +1 -1
- package/dist/tet-components/{p-6bfee6d7.entry.js → p-42add11b.entry.js} +1 -1
- package/dist/tet-components/{p-9d103855.entry.js → p-448594bb.entry.js} +1 -1
- package/dist/tet-components/{p-a0bb7090.entry.js → p-46755900.entry.js} +1 -1
- package/dist/tet-components/{p-7b412a8f.entry.js → p-48fa578b.entry.js} +1 -1
- package/dist/tet-components/{p-4d53681e.entry.js → p-4b44c810.entry.js} +1 -1
- package/dist/tet-components/{p-5d8313d2.entry.js → p-50bc2990.entry.js} +1 -1
- package/dist/tet-components/{p-4c69f060.entry.js → p-5318c8d2.entry.js} +1 -1
- package/dist/tet-components/{p-b84607f3.entry.js → p-53fb0c89.entry.js} +1 -1
- package/dist/tet-components/{p-ed462633.entry.js → p-55e6f197.entry.js} +1 -1
- package/dist/tet-components/{p-ebeda1cc.entry.js → p-57aff1ef.entry.js} +1 -1
- package/dist/tet-components/{p-c2d4b54d.js → p-5abb3bea.js} +2 -2
- package/dist/tet-components/{p-fc8f4da5.entry.js → p-5ccd3a3b.entry.js} +1 -1
- package/dist/tet-components/{p-31e722e9.entry.js → p-63f6def9.entry.js} +1 -1
- package/dist/tet-components/{p-9cdef788.entry.js → p-65fec738.entry.js} +1 -1
- package/dist/tet-components/p-660bdc27.js +1 -0
- package/dist/tet-components/{p-980d48ac.entry.js → p-699426ff.entry.js} +1 -1
- package/dist/tet-components/{p-11dd1b4a.entry.js → p-6c6eb3a7.entry.js} +1 -1
- package/dist/tet-components/{p-f8b49339.entry.js → p-6efabeaf.entry.js} +1 -1
- package/dist/tet-components/{p-1826442b.entry.js → p-71c480ab.entry.js} +1 -1
- package/dist/tet-components/{p-ea211ac8.js → p-726651bc.js} +1 -1
- package/dist/tet-components/{p-551d7db4.entry.js → p-75b5e1ef.entry.js} +1 -1
- package/dist/tet-components/{p-7a73acdc.entry.js → p-7c76a1f2.entry.js} +1 -1
- package/dist/tet-components/p-7dda6727.entry.js +1 -0
- package/dist/tet-components/{p-d1326287.entry.js → p-87c9ceef.entry.js} +1 -1
- package/dist/tet-components/{p-840db8ad.entry.js → p-87deab67.entry.js} +1 -1
- package/dist/tet-components/{p-f40407a6.entry.js → p-8a17ddb8.entry.js} +1 -1
- package/dist/tet-components/{p-4dbfc05f.entry.js → p-8e5c8ce3.entry.js} +1 -1
- package/dist/tet-components/{p-ef4c8792.entry.js → p-8eb9b345.entry.js} +1 -1
- package/dist/tet-components/{p-bf159a0e.entry.js → p-960107d1.entry.js} +1 -1
- package/dist/tet-components/{p-ca98aa2e.entry.js → p-9870094e.entry.js} +1 -1
- package/dist/tet-components/{p-7de912c1.entry.js → p-9c2a137d.entry.js} +1 -1
- package/dist/tet-components/{p-47a2d723.entry.js → p-9da66dac.entry.js} +1 -1
- package/dist/tet-components/{p-40c084e4.entry.js → p-a182679b.entry.js} +1 -1
- package/dist/tet-components/{p-03f9e262.js → p-a476fd02.js} +1 -1
- package/dist/tet-components/{p-854874fc.entry.js → p-a4b723a3.entry.js} +1 -1
- package/dist/tet-components/{p-4d614cc4.entry.js → p-a4c70369.entry.js} +1 -1
- package/dist/tet-components/{p-8f3cde74.entry.js → p-ab6798da.entry.js} +1 -1
- package/dist/tet-components/p-abbad718.entry.js +1 -0
- package/dist/tet-components/{p-d92b24f0.entry.js → p-af6dcfb7.entry.js} +1 -1
- package/dist/tet-components/p-b0296e03.entry.js +1 -0
- package/dist/tet-components/{p-9ae6dde6.entry.js → p-b03ac327.entry.js} +1 -1
- package/dist/tet-components/{p-39609fb1.entry.js → p-b05e5737.entry.js} +1 -1
- package/dist/tet-components/{p-ab705953.entry.js → p-b1554348.entry.js} +1 -1
- package/dist/tet-components/p-b22de340.entry.js +1 -0
- package/dist/tet-components/{p-9ae88a93.entry.js → p-b2dda621.entry.js} +1 -1
- package/dist/tet-components/{p-af1d9a81.js → p-b39df477.js} +1 -1
- package/dist/tet-components/{p-cb38ba75.entry.js → p-b4104efc.entry.js} +1 -1
- package/dist/tet-components/{p-10c7d0dd.entry.js → p-b4b90473.entry.js} +1 -1
- package/dist/tet-components/{p-e317ef23.entry.js → p-b6017d57.entry.js} +1 -1
- package/dist/tet-components/{p-3174827c.entry.js → p-b7d777f9.entry.js} +1 -1
- package/dist/tet-components/{p-fca94c5c.js → p-b92dff8a.js} +1 -1
- package/dist/tet-components/{p-1daff348.entry.js → p-c09f384f.entry.js} +1 -1
- package/dist/tet-components/{p-66e858ee.entry.js → p-c19d1ac9.entry.js} +1 -1
- package/dist/tet-components/{p-4b90dabc.js → p-c9ddf890.js} +1 -1
- package/dist/tet-components/{p-96d79e87.entry.js → p-cb7d580d.entry.js} +1 -1
- package/dist/tet-components/{p-5eefb349.entry.js → p-cf50eddc.entry.js} +1 -1
- package/dist/tet-components/{p-4be13d3e.entry.js → p-cf905d3f.entry.js} +1 -1
- package/dist/tet-components/{p-89c2d51e.entry.js → p-d5be0c83.entry.js} +1 -1
- package/dist/tet-components/{p-d42a2844.entry.js → p-d7acbba4.entry.js} +1 -1
- package/dist/tet-components/{p-cfce3266.entry.js → p-da0303ab.entry.js} +1 -1
- package/dist/tet-components/{p-64698abe.entry.js → p-daec1575.entry.js} +1 -1
- package/dist/tet-components/{p-3002d8f2.entry.js → p-dbe05a76.entry.js} +1 -1
- package/dist/tet-components/{p-f084bab0.entry.js → p-e2783f8b.entry.js} +1 -1
- package/dist/tet-components/{p-67fc6ef4.entry.js → p-e53a2feb.entry.js} +1 -1
- package/dist/tet-components/{p-bbe2253b.entry.js → p-e97d79a8.entry.js} +1 -1
- package/dist/tet-components/{p-ad6011e1.entry.js → p-eb464bdc.entry.js} +1 -1
- package/dist/tet-components/{p-7d2ec154.entry.js → p-f0268283.entry.js} +1 -1
- package/dist/tet-components/{p-32bd0e18.entry.js → p-f0e42ca5.entry.js} +1 -1
- package/dist/tet-components/{p-9f9f9145.entry.js → p-f8bda78a.entry.js} +1 -1
- package/dist/tet-components/tet-components.esm.js +1 -1
- package/dist/types/components/basic/buttons/tet-checkbox/tet-checkbox.d.ts +12 -0
- package/dist/types/components/basic/buttons/tet-radio/tet-radio.d.ts +27 -2
- package/dist/types/components/basic/buttons/tet-switch/tet-switch.d.ts +10 -0
- package/dist/types/components/basic/buttons/types/common.d.ts +2 -0
- package/dist/types/components/simple/structural/tet-floating-block/tet-floating-block.d.ts +19 -0
- package/dist/types/components.d.ts +189 -4
- package/package.json +1 -1
- package/dist/components/p-e54ff1e9.js +0 -303
- package/dist/tet-components/p-2600468d.js +0 -1
- package/dist/tet-components/p-566b16ff.entry.js +0 -1
- package/dist/tet-components/p-853be9a1.entry.js +0 -1
- package/dist/tet-components/p-8ee830b8.entry.js +0 -1
- package/dist/tet-components/p-a518f521.entry.js +0 -1
|
@@ -5,17 +5,24 @@ import { randomString } from "../../../../services/utils/index";
|
|
|
5
5
|
*/
|
|
6
6
|
export class TetRadio {
|
|
7
7
|
constructor() {
|
|
8
|
-
this.theme = '
|
|
8
|
+
this.theme = 'light';
|
|
9
9
|
this.label = undefined;
|
|
10
10
|
this.accessibilityLabel = '';
|
|
11
11
|
this.name = undefined;
|
|
12
12
|
this.value = 0;
|
|
13
13
|
this.disabled = false;
|
|
14
14
|
this.checked = false;
|
|
15
|
+
this.error = false;
|
|
15
16
|
this.inputAutofocus = false;
|
|
17
|
+
this.focusStyleOnContainer = false;
|
|
18
|
+
this.iconName = undefined;
|
|
19
|
+
this.labelFont = 'sm';
|
|
20
|
+
this.alignCenter = false;
|
|
21
|
+
this.hasSlotIcon = false;
|
|
16
22
|
}
|
|
17
23
|
/** Randomly generated id for the HTML input element, necessary because it is scoped. */
|
|
18
24
|
id;
|
|
25
|
+
radioElement;
|
|
19
26
|
/** The event that is emitted whenever the control element is checked. */
|
|
20
27
|
check;
|
|
21
28
|
/**
|
|
@@ -26,6 +33,14 @@ export class TetRadio {
|
|
|
26
33
|
async setChecked(value) {
|
|
27
34
|
this.checked = value;
|
|
28
35
|
}
|
|
36
|
+
/**
|
|
37
|
+
* Changes the error prop of the component.
|
|
38
|
+
*
|
|
39
|
+
* @param value
|
|
40
|
+
*/
|
|
41
|
+
async setError(value) {
|
|
42
|
+
this.error = value;
|
|
43
|
+
}
|
|
29
44
|
/**
|
|
30
45
|
* Listens for keydown event to stop some keys
|
|
31
46
|
* @param event Keyboard event
|
|
@@ -36,9 +51,19 @@ export class TetRadio {
|
|
|
36
51
|
}
|
|
37
52
|
}
|
|
38
53
|
handleInputChange = ({ target }) => {
|
|
39
|
-
const { value,
|
|
40
|
-
|
|
41
|
-
|
|
54
|
+
const { value, error } = this;
|
|
55
|
+
const isChecked = target.checked;
|
|
56
|
+
if (isChecked) {
|
|
57
|
+
// Uncheck all other radios with the same name
|
|
58
|
+
const group = document.querySelectorAll('tet-radio[name="' + this.name + '"]');
|
|
59
|
+
group.forEach((el) => {
|
|
60
|
+
if (el !== this.radioElement && el.checked) {
|
|
61
|
+
el.setChecked(false);
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
this.checked = isChecked;
|
|
66
|
+
this.check.emit({ value, checked: isChecked, error });
|
|
42
67
|
};
|
|
43
68
|
/**
|
|
44
69
|
* Lifecycle method.
|
|
@@ -47,9 +72,45 @@ export class TetRadio {
|
|
|
47
72
|
connectedCallback() {
|
|
48
73
|
this.id = randomString(10);
|
|
49
74
|
}
|
|
75
|
+
componentDidLoad() {
|
|
76
|
+
this.checkIconSlot();
|
|
77
|
+
}
|
|
78
|
+
componentDidUpdate() {
|
|
79
|
+
this.checkIconSlot();
|
|
80
|
+
}
|
|
81
|
+
/** Checks if the radio button has a slot icon. */
|
|
82
|
+
checkIconSlot = () => {
|
|
83
|
+
const icon = this.radioElement.querySelector('[slot="label-icon"]');
|
|
84
|
+
this.hasSlotIcon = !!icon;
|
|
85
|
+
};
|
|
50
86
|
render() {
|
|
51
|
-
const { id, disabled, value, checked, name, label,
|
|
52
|
-
return (h(Host, { key: '
|
|
87
|
+
const { id, disabled, value, checked, name, label, accessibilityLabel, error, inputAutofocus, iconName, labelFont, alignCenter, hasSlotIcon } = this;
|
|
88
|
+
return (h(Host, { key: '3f335718a2060f9f9b27fecd5d174728d1fdb97c' }, h("div", { key: 'f77789f440e4103ddf8105e3a9d3aa793862ea79', class: { radio: true, [`radio-${this.theme}-theme`]: true } }, h("label", { key: 'e99b3e956d3787bcc7a2e7d07a81c7e458bc8014', class: {
|
|
89
|
+
'radio__container': true,
|
|
90
|
+
'radio__container--focus-style': this.focusStyleOnContainer,
|
|
91
|
+
'radio__container--align-center': alignCenter,
|
|
92
|
+
}, htmlFor: id }, h("input", { key: '24f7a7f35349b5fc2065a528e344cd460c2af1f4', class: "radio__html-input", id: id, name: name, type: "radio", value: value, disabled: disabled, checked: checked, onChange: this.handleInputChange, autofocus: inputAutofocus, ...(accessibilityLabel ? { 'aria-label': accessibilityLabel } : {}) }), h("span", { key: '538f98c8c65fdd184fd6a2c01784221d3c7a2959', class: {
|
|
93
|
+
'radio__input': true,
|
|
94
|
+
'radio__input--error': error,
|
|
95
|
+
'radio__input--hide-focus-style': this.focusStyleOnContainer,
|
|
96
|
+
'radio__input--has-label-prop': !!label,
|
|
97
|
+
...(labelFont ? { [`radio__input--${labelFont}`]: true } : {}),
|
|
98
|
+
} }), h("div", { key: 'c06cbc337afcb948146c2fd8351f35ad16dece92', class: {
|
|
99
|
+
'radio__label-container': true,
|
|
100
|
+
'radio__label-container--line-height': hasSlotIcon || !!iconName,
|
|
101
|
+
} }, iconName ? (h("tet-icon", { theme: ['classic', 'light'].includes(this.theme) ? 'light' : 'dark', name: iconName, type: disabled ? 'tertiary' : 'primary', class: {
|
|
102
|
+
'radio__label-icon': true,
|
|
103
|
+
[`radio__label-icon--${iconName}`]: true,
|
|
104
|
+
...(labelFont ? { [`radio__label-icon--${labelFont}`]: true } : {}),
|
|
105
|
+
} })) : (h("div", { class: {
|
|
106
|
+
'radio__label-slot-icon': true,
|
|
107
|
+
'radio__label-slot-icon--hidden': !hasSlotIcon,
|
|
108
|
+
...(labelFont ? { [`radio__label-slot-icon--${labelFont}`]: true } : {}),
|
|
109
|
+
} }, h("slot", { name: "label-icon" }))), h("span", { key: 'ed4ce50985b15417bd21c0a39aa2c79dceacdc52', class: {
|
|
110
|
+
'radio__label': true,
|
|
111
|
+
'radio__label--has-slot-icon': hasSlotIcon,
|
|
112
|
+
...(labelFont ? { [`radio__label--${labelFont}`]: true } : {}),
|
|
113
|
+
}, innerHTML: label }, h("slot", { key: '60f796c47088f575b1cc24c42e1672be8f6b6569' })))))));
|
|
53
114
|
}
|
|
54
115
|
static get is() { return "tet-radio"; }
|
|
55
116
|
static get encapsulation() { return "scoped"; }
|
|
@@ -81,7 +142,7 @@ export class TetRadio {
|
|
|
81
142
|
},
|
|
82
143
|
"attribute": "theme",
|
|
83
144
|
"reflect": false,
|
|
84
|
-
"defaultValue": "'
|
|
145
|
+
"defaultValue": "'light'"
|
|
85
146
|
},
|
|
86
147
|
"label": {
|
|
87
148
|
"type": "string",
|
|
@@ -165,7 +226,7 @@ export class TetRadio {
|
|
|
165
226
|
"optional": false,
|
|
166
227
|
"docs": {
|
|
167
228
|
"tags": [],
|
|
168
|
-
"text": "The property to determine whether the
|
|
229
|
+
"text": "The property to determine whether the radio button should be disabled."
|
|
169
230
|
},
|
|
170
231
|
"attribute": "disabled",
|
|
171
232
|
"reflect": false,
|
|
@@ -183,12 +244,30 @@ export class TetRadio {
|
|
|
183
244
|
"optional": false,
|
|
184
245
|
"docs": {
|
|
185
246
|
"tags": [],
|
|
186
|
-
"text": "The property to determine whether the
|
|
247
|
+
"text": "The property to determine whether the radio button should be checked."
|
|
187
248
|
},
|
|
188
249
|
"attribute": "checked",
|
|
189
250
|
"reflect": true,
|
|
190
251
|
"defaultValue": "false"
|
|
191
252
|
},
|
|
253
|
+
"error": {
|
|
254
|
+
"type": "boolean",
|
|
255
|
+
"mutable": true,
|
|
256
|
+
"complexType": {
|
|
257
|
+
"original": "boolean",
|
|
258
|
+
"resolved": "boolean",
|
|
259
|
+
"references": {}
|
|
260
|
+
},
|
|
261
|
+
"required": false,
|
|
262
|
+
"optional": false,
|
|
263
|
+
"docs": {
|
|
264
|
+
"tags": [],
|
|
265
|
+
"text": "The property to determine whether the radio button should show the error state."
|
|
266
|
+
},
|
|
267
|
+
"attribute": "error",
|
|
268
|
+
"reflect": true,
|
|
269
|
+
"defaultValue": "false"
|
|
270
|
+
},
|
|
192
271
|
"inputAutofocus": {
|
|
193
272
|
"type": "boolean",
|
|
194
273
|
"mutable": false,
|
|
@@ -206,9 +285,91 @@ export class TetRadio {
|
|
|
206
285
|
"attribute": "input-autofocus",
|
|
207
286
|
"reflect": false,
|
|
208
287
|
"defaultValue": "false"
|
|
288
|
+
},
|
|
289
|
+
"focusStyleOnContainer": {
|
|
290
|
+
"type": "boolean",
|
|
291
|
+
"mutable": false,
|
|
292
|
+
"complexType": {
|
|
293
|
+
"original": "boolean",
|
|
294
|
+
"resolved": "boolean",
|
|
295
|
+
"references": {}
|
|
296
|
+
},
|
|
297
|
+
"required": false,
|
|
298
|
+
"optional": false,
|
|
299
|
+
"docs": {
|
|
300
|
+
"tags": [],
|
|
301
|
+
"text": "Determines whether the focus style is applied to the radio button or the container."
|
|
302
|
+
},
|
|
303
|
+
"attribute": "focus-style-on-container",
|
|
304
|
+
"reflect": false,
|
|
305
|
+
"defaultValue": "false"
|
|
306
|
+
},
|
|
307
|
+
"iconName": {
|
|
308
|
+
"type": "string",
|
|
309
|
+
"mutable": false,
|
|
310
|
+
"complexType": {
|
|
311
|
+
"original": "string",
|
|
312
|
+
"resolved": "string",
|
|
313
|
+
"references": {}
|
|
314
|
+
},
|
|
315
|
+
"required": false,
|
|
316
|
+
"optional": true,
|
|
317
|
+
"docs": {
|
|
318
|
+
"tags": [],
|
|
319
|
+
"text": "The name of the label icon to be displayed."
|
|
320
|
+
},
|
|
321
|
+
"attribute": "icon-name",
|
|
322
|
+
"reflect": false
|
|
323
|
+
},
|
|
324
|
+
"labelFont": {
|
|
325
|
+
"type": "string",
|
|
326
|
+
"mutable": false,
|
|
327
|
+
"complexType": {
|
|
328
|
+
"original": "LabelFont",
|
|
329
|
+
"resolved": "\"lg-gilroy\" | \"lg-inter\" | \"md\" | \"sm\"",
|
|
330
|
+
"references": {
|
|
331
|
+
"LabelFont": {
|
|
332
|
+
"location": "import",
|
|
333
|
+
"path": "../types/common",
|
|
334
|
+
"id": "src/components/basic/buttons/types/common.ts::LabelFont"
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
},
|
|
338
|
+
"required": false,
|
|
339
|
+
"optional": false,
|
|
340
|
+
"docs": {
|
|
341
|
+
"tags": [],
|
|
342
|
+
"text": "Determines the font of the label."
|
|
343
|
+
},
|
|
344
|
+
"attribute": "label-font",
|
|
345
|
+
"reflect": false,
|
|
346
|
+
"defaultValue": "'sm'"
|
|
347
|
+
},
|
|
348
|
+
"alignCenter": {
|
|
349
|
+
"type": "boolean",
|
|
350
|
+
"mutable": false,
|
|
351
|
+
"complexType": {
|
|
352
|
+
"original": "boolean",
|
|
353
|
+
"resolved": "boolean",
|
|
354
|
+
"references": {}
|
|
355
|
+
},
|
|
356
|
+
"required": false,
|
|
357
|
+
"optional": false,
|
|
358
|
+
"docs": {
|
|
359
|
+
"tags": [],
|
|
360
|
+
"text": "Determines whether the radio button should be center-aligned."
|
|
361
|
+
},
|
|
362
|
+
"attribute": "align-center",
|
|
363
|
+
"reflect": false,
|
|
364
|
+
"defaultValue": "false"
|
|
209
365
|
}
|
|
210
366
|
};
|
|
211
367
|
}
|
|
368
|
+
static get states() {
|
|
369
|
+
return {
|
|
370
|
+
"hasSlotIcon": {}
|
|
371
|
+
};
|
|
372
|
+
}
|
|
212
373
|
static get events() {
|
|
213
374
|
return [{
|
|
214
375
|
"method": "check",
|
|
@@ -258,9 +419,34 @@ export class TetRadio {
|
|
|
258
419
|
"text": "value"
|
|
259
420
|
}]
|
|
260
421
|
}
|
|
422
|
+
},
|
|
423
|
+
"setError": {
|
|
424
|
+
"complexType": {
|
|
425
|
+
"signature": "(value: boolean) => Promise<void>",
|
|
426
|
+
"parameters": [{
|
|
427
|
+
"name": "value",
|
|
428
|
+
"type": "boolean",
|
|
429
|
+
"docs": ""
|
|
430
|
+
}],
|
|
431
|
+
"references": {
|
|
432
|
+
"Promise": {
|
|
433
|
+
"location": "global",
|
|
434
|
+
"id": "global::Promise"
|
|
435
|
+
}
|
|
436
|
+
},
|
|
437
|
+
"return": "Promise<void>"
|
|
438
|
+
},
|
|
439
|
+
"docs": {
|
|
440
|
+
"text": "Changes the error prop of the component.",
|
|
441
|
+
"tags": [{
|
|
442
|
+
"name": "param",
|
|
443
|
+
"text": "value"
|
|
444
|
+
}]
|
|
445
|
+
}
|
|
261
446
|
}
|
|
262
447
|
};
|
|
263
448
|
}
|
|
449
|
+
static get elementRef() { return "radioElement"; }
|
|
264
450
|
static get listeners() {
|
|
265
451
|
return [{
|
|
266
452
|
"name": "keydown",
|
|
@@ -352,33 +352,16 @@
|
|
|
352
352
|
|
|
353
353
|
:host {
|
|
354
354
|
/**
|
|
355
|
-
* @prop --switch-text-color: The text color of the switch.
|
|
356
355
|
* @prop --switch-justify-content: The justify-content style for the switch container.
|
|
357
356
|
* @prop --switch-flex-direction: The flex-direction style for the switch container.
|
|
358
357
|
* @prop --switch-gap: The gap property for the switch.
|
|
359
|
-
* @prop --switch-
|
|
360
|
-
* @prop --switch-checked-background-color: The background color of the switch when checked.
|
|
361
|
-
* @prop --switch-knob-color: The knob color of the switch.
|
|
362
|
-
* @prop --switch-checked-knob-color: The knob color of the switch when checked.
|
|
363
|
-
|
|
364
|
-
* @prop --switch-focus-background-color: The background color of the switch on focus.
|
|
365
|
-
* @prop --switch-focus-shadow: The shadow of the switch on focus.
|
|
366
|
-
* @prop --switch-focus-checked-shadow: The shadow color of the switch on focus when checked.
|
|
367
|
-
* @prop --switch-hover-background-color: The background color of the switch on hover.
|
|
368
|
-
* @prop --switch-hover-checked-background-color: The text color of the switch on hover.
|
|
369
|
-
* @prop --switch-pressed-background-color: The background color of the switch when clicked.
|
|
370
|
-
* @prop --switch-pressed-checked-background-color: The text color of the switch when clicked.
|
|
371
|
-
|
|
372
|
-
* @prop --switch-disabled-background-color: The background color of the switch when disabled.
|
|
373
|
-
* @prop --switch-disabled-checked-background-color: The background color of the switch when disabled and checked.
|
|
374
|
-
* @prop --switch-disabled-knob-color: The knob color of the switch when disabled.
|
|
375
|
-
* @prop --switch-disabled-checked-knob-color: The knob color of the switch when disabled and checked.
|
|
376
|
-
* @prop --switch-disabled-text-color: The text color of the switch when disabled.
|
|
358
|
+
* @prop --switch-container-outline-offset: The outline offset for the switch container when focused.
|
|
377
359
|
*/
|
|
378
|
-
--switch-text-color: var(--tc-text-primary);
|
|
379
360
|
--switch-justify-content: normal;
|
|
380
361
|
--switch-flex-direction: row;
|
|
381
|
-
--switch-gap: 0.
|
|
362
|
+
--switch-gap: 0.75rem;
|
|
363
|
+
--switch-container-outline-offset: 0.125rem;
|
|
364
|
+
--switch-text-color: var(--tc-text-primary);
|
|
382
365
|
--switch-background-color: var(--tc-toggle-button-default);
|
|
383
366
|
--switch-checked-background-color: var(--tc-toggle-button-active-default);
|
|
384
367
|
--switch-knob-color: var(--tc-toggle-button-ellipse-default);
|
|
@@ -394,7 +377,8 @@
|
|
|
394
377
|
--switch-disabled-checked-background-color: var(--tc-toggle-button-active-disabled);
|
|
395
378
|
--switch-disabled-knob-color: var(--tc-toggle-button-ellipse-disabled);
|
|
396
379
|
--switch-disabled-checked-knob-color: var(--tc-toggle-button-ellipse-disabled);
|
|
397
|
-
--switch-disabled-text-color: var(--tc-
|
|
380
|
+
--switch-disabled-text-color: var(--tc-grey-40);
|
|
381
|
+
--switch-outline-focus-color: var(--tc-blue-40);
|
|
398
382
|
display: block;
|
|
399
383
|
position: relative;
|
|
400
384
|
}
|
|
@@ -416,7 +400,8 @@
|
|
|
416
400
|
--switch-disabled-checked-background-color: var(--tc-toggle-button-active-disabled-dark);
|
|
417
401
|
--switch-disabled-knob-color: var(--tc-toggle-button-ellipse-disabled-dark);
|
|
418
402
|
--switch-disabled-checked-knob-color: var(--tc-toggle-button-ellipse-disabled-dark);
|
|
419
|
-
--switch-disabled-text-color: var(--tc-
|
|
403
|
+
--switch-disabled-text-color: var(--tc-grey-40-dark);
|
|
404
|
+
--switch-outline-focus-color: var(--tc-blue-40-dark);
|
|
420
405
|
}
|
|
421
406
|
.switch.mint {
|
|
422
407
|
--switch-background-color: rgb(67, 75, 86);
|
|
@@ -427,25 +412,43 @@
|
|
|
427
412
|
--switch-hover-background-color: rgba(255, 255, 255, 0.3);
|
|
428
413
|
--switch-hover-checked-background-color: rgb(24, 165, 170);
|
|
429
414
|
--switch-focus-background-color: var(--switch-background-color);
|
|
430
|
-
--switch-focus-shadow:
|
|
431
|
-
|
|
415
|
+
--switch-focus-shadow:
|
|
416
|
+
0 0 0 0.5rem rgba(153, 160, 174, 0.2),
|
|
417
|
+
0 0 0 0.5rem rgba(255, 255, 255, 0.24),
|
|
418
|
+
0 0.0625rem 0.0625rem rgba(10, 11, 13, 0.16),
|
|
419
|
+
0 0.1875rem 0.5rem rgba(10, 11, 13, 0.15);
|
|
432
420
|
--switch-focus-checked-shadow: var(--switch-focus-shadow);
|
|
433
421
|
--switch-disabled-background-color: rgb(35, 40, 46);
|
|
434
422
|
--switch-disabled-checked-background-color: rgba(31, 208, 214, 0.32);
|
|
435
423
|
--switch-disabled-knob-color: rgb(67, 75, 86);
|
|
436
424
|
--switch-disabled-checked-knob-color: rgb(10, 11, 13);
|
|
437
425
|
--switch-disabled-text-color: rgb(67, 75, 86);
|
|
426
|
+
--switch-outline-focus-color: var(--tc-blue-40-dark);
|
|
438
427
|
}
|
|
439
428
|
.switch__container {
|
|
440
|
-
font: 500 0.875rem/1.25rem "Inter", "Gilroy, Arial, sans-serif";
|
|
441
429
|
display: flex;
|
|
442
430
|
gap: var(--switch-gap);
|
|
443
431
|
flex-direction: var(--switch-flex-direction);
|
|
444
432
|
justify-content: var(--switch-justify-content);
|
|
445
433
|
align-items: center;
|
|
434
|
+
cursor: pointer;
|
|
446
435
|
user-select: none;
|
|
447
436
|
color: var(--switch-text-color);
|
|
448
437
|
}
|
|
438
|
+
.switch__container:has(.switch__html-input:disabled) {
|
|
439
|
+
cursor: auto;
|
|
440
|
+
}
|
|
441
|
+
.switch__container--focus-style:has(.switch__html-input:focus-visible) {
|
|
442
|
+
outline: 0.125rem solid var(--switch-outline-focus-color);
|
|
443
|
+
outline-offset: var(--switch-container-outline-offset);
|
|
444
|
+
border-radius: 0.125rem;
|
|
445
|
+
}
|
|
446
|
+
.switch__container--align-start {
|
|
447
|
+
align-items: flex-start;
|
|
448
|
+
}
|
|
449
|
+
.switch__container--lg-inter, .switch__container--lg-gilroy {
|
|
450
|
+
--switch-gap: 1rem;
|
|
451
|
+
}
|
|
449
452
|
.switch__state {
|
|
450
453
|
position: absolute;
|
|
451
454
|
content: "";
|
|
@@ -458,6 +461,7 @@
|
|
|
458
461
|
background-color: var(--switch-background-color);
|
|
459
462
|
}
|
|
460
463
|
.switch__html-input {
|
|
464
|
+
position: absolute;
|
|
461
465
|
opacity: 0;
|
|
462
466
|
width: 0;
|
|
463
467
|
height: 0;
|
|
@@ -482,6 +486,9 @@
|
|
|
482
486
|
outline-offset: 0.0625rem;
|
|
483
487
|
transition: outline 0s;
|
|
484
488
|
}
|
|
489
|
+
.switch__html-input:focus-visible ~ .switch__input.switch__input--hide-focus-style {
|
|
490
|
+
outline: none;
|
|
491
|
+
}
|
|
485
492
|
.switch__html-input:focus-visible ~ .switch__input::after {
|
|
486
493
|
--switch-focus-shadow: none;
|
|
487
494
|
}
|
|
@@ -504,10 +511,6 @@
|
|
|
504
511
|
.switch__html-input:checked:focus-visible ~ .switch__input::after {
|
|
505
512
|
--switch-focus-checked-shadow: none;
|
|
506
513
|
}
|
|
507
|
-
.switch__html-input[disabled] ~ .switch__label,
|
|
508
|
-
.switch__html-input[disabled] ~ .switch__input {
|
|
509
|
-
cursor: auto;
|
|
510
|
-
}
|
|
511
514
|
.switch__html-input[disabled] ~ .switch__input .switch__state {
|
|
512
515
|
background-color: var(--switch-disabled-background-color);
|
|
513
516
|
}
|
|
@@ -545,6 +548,19 @@
|
|
|
545
548
|
box-shadow: 0 0.0625rem 0.0625rem rgba(0, 0, 0, 0.16), 0 0.1875rem 0.5rem rgba(0, 0, 0, 0.15);
|
|
546
549
|
background-color: var(--switch-knob-color);
|
|
547
550
|
}
|
|
548
|
-
.switch__label
|
|
549
|
-
|
|
551
|
+
.switch__label--sm {
|
|
552
|
+
font: 500 0.875rem/1.25rem "Inter", "Gilroy, Arial, sans-serif";
|
|
553
|
+
line-height: 1.5rem;
|
|
554
|
+
}
|
|
555
|
+
.switch__label--md {
|
|
556
|
+
font: 500 1rem/1.5rem "Inter", "Gilroy, Arial, sans-serif";
|
|
557
|
+
}
|
|
558
|
+
.switch__label--lg-inter {
|
|
559
|
+
font: 500 1.25rem/1.5rem "Inter", "Gilroy, Arial, sans-serif";
|
|
560
|
+
}
|
|
561
|
+
.switch__label--lg-gilroy {
|
|
562
|
+
font: 600 1.25rem/1.5rem "Gilroy", "Gilroy, Arial, sans-serif";
|
|
563
|
+
}
|
|
564
|
+
.switch__label--left {
|
|
565
|
+
text-align: right;
|
|
550
566
|
}
|
|
@@ -13,6 +13,10 @@ export class TetSwitch {
|
|
|
13
13
|
this.value = 0;
|
|
14
14
|
this.disabled = false;
|
|
15
15
|
this.checked = false;
|
|
16
|
+
this.labelFont = 'sm';
|
|
17
|
+
this.alignCenter = true;
|
|
18
|
+
this.labelPosition = 'right';
|
|
19
|
+
this.focusStyleOnContainer = false;
|
|
16
20
|
}
|
|
17
21
|
/** The event that is emitted whenever the control element is checked. */
|
|
18
22
|
check;
|
|
@@ -31,11 +35,27 @@ export class TetSwitch {
|
|
|
31
35
|
const input = event.target;
|
|
32
36
|
this.check.emit({ value: this.value, checked: input.checked });
|
|
33
37
|
}
|
|
38
|
+
renderSwitch() {
|
|
39
|
+
const { theme, labelFont } = this;
|
|
40
|
+
return (h("span", { class: {
|
|
41
|
+
'switch__input': true,
|
|
42
|
+
[theme]: true,
|
|
43
|
+
'switch__input--hide-focus-style': this.focusStyleOnContainer,
|
|
44
|
+
...(labelFont ? { [`switch__input--${labelFont}`]: true } : {}),
|
|
45
|
+
} }, h("span", { class: "switch__state" })));
|
|
46
|
+
}
|
|
34
47
|
render() {
|
|
35
|
-
const { label, name, theme, disabled, checked, accessibilityLabel } = this;
|
|
36
|
-
return (h(Host, { key: '
|
|
37
|
-
|
|
38
|
-
|
|
48
|
+
const { label, name, theme, disabled, checked, accessibilityLabel, labelFont, alignCenter, labelPosition } = this;
|
|
49
|
+
return (h(Host, { key: '3a512ae8f83c1df5ea283c1b188bb78d16fda888' }, h("div", { key: 'ffab5952335efcdaf91447d0ed6ab1e4f9b816ed', class: { 'switch': true, [`${theme}`]: true } }, h("label", { key: '48f0cc64482e9e0330e0746d96aacbc1658781c5', class: {
|
|
50
|
+
'switch__container': true,
|
|
51
|
+
'switch__container--align-start': !alignCenter,
|
|
52
|
+
[`switch__container--${labelFont}`]: true,
|
|
53
|
+
'switch__container--focus-style': this.focusStyleOnContainer,
|
|
54
|
+
}, part: "switch-container", htmlFor: "tet-switch" }, h("input", { key: '961321e60b0550a7eeb6e7d43b024ce1d1107168', 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: 'f0305170bee1f471194a1c1b0296780e8d274bfb', class: {
|
|
55
|
+
'switch__label': true,
|
|
56
|
+
...(labelPosition === 'left' ? { 'switch__label--left': true } : {}),
|
|
57
|
+
...(labelFont ? { [`switch__label--${labelFont}`]: true } : {}),
|
|
58
|
+
}, innerHTML: label }, h("slot", { key: 'fde4204dc0d73adc2dd26a8e2197512a064e2303' })), labelPosition === 'left' && this.renderSwitch()))));
|
|
39
59
|
}
|
|
40
60
|
static get is() { return "tet-switch"; }
|
|
41
61
|
static get encapsulation() { return "shadow"; }
|
|
@@ -174,6 +194,84 @@ export class TetSwitch {
|
|
|
174
194
|
"attribute": "checked",
|
|
175
195
|
"reflect": true,
|
|
176
196
|
"defaultValue": "false"
|
|
197
|
+
},
|
|
198
|
+
"labelFont": {
|
|
199
|
+
"type": "string",
|
|
200
|
+
"mutable": false,
|
|
201
|
+
"complexType": {
|
|
202
|
+
"original": "LabelFont",
|
|
203
|
+
"resolved": "\"lg-gilroy\" | \"lg-inter\" | \"md\" | \"sm\"",
|
|
204
|
+
"references": {
|
|
205
|
+
"LabelFont": {
|
|
206
|
+
"location": "import",
|
|
207
|
+
"path": "../types/common",
|
|
208
|
+
"id": "src/components/basic/buttons/types/common.ts::LabelFont"
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
"required": false,
|
|
213
|
+
"optional": false,
|
|
214
|
+
"docs": {
|
|
215
|
+
"tags": [],
|
|
216
|
+
"text": "Determines the font of the label."
|
|
217
|
+
},
|
|
218
|
+
"attribute": "label-font",
|
|
219
|
+
"reflect": false,
|
|
220
|
+
"defaultValue": "'sm'"
|
|
221
|
+
},
|
|
222
|
+
"alignCenter": {
|
|
223
|
+
"type": "boolean",
|
|
224
|
+
"mutable": false,
|
|
225
|
+
"complexType": {
|
|
226
|
+
"original": "boolean",
|
|
227
|
+
"resolved": "boolean",
|
|
228
|
+
"references": {}
|
|
229
|
+
},
|
|
230
|
+
"required": false,
|
|
231
|
+
"optional": false,
|
|
232
|
+
"docs": {
|
|
233
|
+
"tags": [],
|
|
234
|
+
"text": "Determines whether the switch should be center-aligned."
|
|
235
|
+
},
|
|
236
|
+
"attribute": "align-center",
|
|
237
|
+
"reflect": false,
|
|
238
|
+
"defaultValue": "true"
|
|
239
|
+
},
|
|
240
|
+
"labelPosition": {
|
|
241
|
+
"type": "string",
|
|
242
|
+
"mutable": false,
|
|
243
|
+
"complexType": {
|
|
244
|
+
"original": "'left' | 'right'",
|
|
245
|
+
"resolved": "\"left\" | \"right\"",
|
|
246
|
+
"references": {}
|
|
247
|
+
},
|
|
248
|
+
"required": false,
|
|
249
|
+
"optional": false,
|
|
250
|
+
"docs": {
|
|
251
|
+
"tags": [],
|
|
252
|
+
"text": "Determines the position of the label relative to the switch."
|
|
253
|
+
},
|
|
254
|
+
"attribute": "label-position",
|
|
255
|
+
"reflect": false,
|
|
256
|
+
"defaultValue": "'right'"
|
|
257
|
+
},
|
|
258
|
+
"focusStyleOnContainer": {
|
|
259
|
+
"type": "boolean",
|
|
260
|
+
"mutable": false,
|
|
261
|
+
"complexType": {
|
|
262
|
+
"original": "boolean",
|
|
263
|
+
"resolved": "boolean",
|
|
264
|
+
"references": {}
|
|
265
|
+
},
|
|
266
|
+
"required": false,
|
|
267
|
+
"optional": false,
|
|
268
|
+
"docs": {
|
|
269
|
+
"tags": [],
|
|
270
|
+
"text": "Determines whether the focus style is applied to the checkbox or the container."
|
|
271
|
+
},
|
|
272
|
+
"attribute": "focus-style-on-container",
|
|
273
|
+
"reflect": false,
|
|
274
|
+
"defaultValue": "false"
|
|
177
275
|
}
|
|
178
276
|
};
|
|
179
277
|
}
|
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: '22fd6884be5e41cfd6cb69a0d11d66fe901de8c6' }, h("div", { key: '2ca5b148038b08f5df8c468a289b478fbd8b7a8e', 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: '2c15e768690218a31f97ce720b6d045e15a3aef4' }))));
|
|
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: 'f093147df2f2aa9bc5af900a588dbcc381256d63', "data-id-suffix": this.idSuffix }, h("div", { key: 'd7a8117f94fb245244bb575ef8ededa161bea1d9', 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: 'd841b64e5dbb5131d1560a64e7834876eb3cc261', ref: (slot) => (this.tabContainer = slot) })), h("div", { key: '65744b2843a557f6f4bc20b6027bb556d14cbe0d', 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: '031cdd212300065594cd224fa9e4576645cfc15a' }, h("button", { key: '844f69864fcfa54a9b5936746282bf43501c71b6', 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: 'b82709521ca57dbe1ecf42d0d9af2e9977f2f6b6', class: "tag-title" }, t(this.tagTitle)), this.count !== null && this.count !== undefined && h("span", { key: 'db8323fbe5f53b8c61c87d5113bf5c14927b21f5', class: "tag-count" }, this.count), this.showIcon && h("tet-icon", { key: '72fc973b22ac64bce60ccde3780cc49cbbe52f3e', 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"; }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|