@zonos/elements 1.3.184 → 1.3.185
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/{cart-3d0c0f0b.js → cart-f9df3ac8.js} +3209 -10
- package/dist/cjs/debounce-3eaa4f7e.js +357 -0
- package/dist/cjs/{getBorderRadius-94ef609c.js → getBorderRadius-87f3b69c.js} +1 -1
- package/dist/cjs/getGenericSettingsOverride-c0ca32b9.js +104 -0
- package/dist/cjs/helpers-5bdbb68c.js +100 -0
- package/dist/cjs/{index-2f90486e.js → index-0993f42d.js} +15 -3
- package/dist/cjs/index.cjs.js +19 -8
- package/dist/cjs/{isDarkColor-ec4a4e7d.js → isDarkColor-d0c67c3d.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{paypal-9eaa9196.js → paypal-5e73c8f5.js} +3 -3
- package/dist/cjs/zonos-address_11.cjs.entry.js +7917 -0
- package/dist/cjs/zonos-badge.cjs.entry.js +2 -2
- package/dist/cjs/zonos-banner.cjs.entry.js +2 -2
- package/dist/cjs/zonos-button_3.cjs.entry.js +18 -7
- package/dist/cjs/zonos-card.cjs.entry.js +3 -3
- package/dist/cjs/zonos-cart-items_13.cjs.entry.js +113 -21
- package/dist/cjs/zonos-checkout.cjs.entry.js +9 -7
- package/dist/cjs/zonos-collapse.cjs.entry.js +2 -2
- package/dist/cjs/zonos-component.cjs.entry.js +2 -2
- package/dist/cjs/zonos-controller.cjs.entry.js +225 -7
- package/dist/cjs/zonos-country-flag.cjs.entry.js +5 -5
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +10 -10
- package/dist/cjs/zonos-elements.cjs.js +2 -2
- package/dist/cjs/zonos-empty-state-payment_4.cjs.entry.js +8 -8
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +9 -9
- package/dist/cjs/zonos-hello.cjs.entry.js +7 -358
- package/dist/cjs/zonos-input.cjs.entry.js +3 -3
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +5 -5
- package/dist/cjs/zonos-link.cjs.entry.js +1 -1
- package/dist/cjs/zonos-logo.cjs.entry.js +2 -2
- package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +3 -3
- package/dist/cjs/zonos-stripe-input.cjs.entry.js +31 -12
- package/dist/cjs/zonos-text.cjs.entry.js +2 -2
- package/dist/cjs/zonos-toggle.cjs.entry.js +4 -4
- package/dist/cjs/zonos-tooltip.cjs.entry.js +3 -3
- package/dist/cjs/zonos-v-stack.cjs.entry.js +4 -4
- package/dist/cjs/{zonosStore-3812b318.js → zonosStore-adc42868.js} +2 -1
- package/dist/collection/collection-manifest.json +4 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-update-dialog.js +3 -3
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.css +11 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +22 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.css +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +162 -17
- package/dist/collection/components/common/zonos-button/zonos-button.js +14 -3
- package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +5 -3
- package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +2 -2
- package/dist/collection/components/common/zonos-country-select/zonos-country-select.css +0 -6
- package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +2 -2
- package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.css +2 -3
- package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.js +105 -8
- package/dist/collection/components/common/zonos-stripe-phone-input/assets/ChevronDownIcon.svg +1 -0
- package/dist/collection/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.css +222 -0
- package/dist/collection/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.js +481 -0
- package/dist/collection/components/common/zonos-stripe-select/assets/ChevronDownIcon.svg +1 -0
- package/dist/collection/components/common/zonos-stripe-select/assets/RemoveLineIcon.svg +1 -0
- package/dist/collection/components/common/zonos-stripe-select/zonos-stripe-select.css +178 -0
- package/dist/collection/components/common/zonos-stripe-select/zonos-stripe-select.js +455 -0
- package/dist/collection/components/common/zonos-toggle/zonos-toggle.js +2 -2
- package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
- package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
- package/dist/collection/components/common/zonos-virtual-scroll/zonos-virtual-scroll.js +2 -2
- package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -2
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +4 -4
- package/dist/collection/components/main/zonos-controller.js +24 -1
- package/dist/collection/components/paypal/zonos-paypal-payment.js +1 -1
- package/dist/collection/components/store/checkout/stripe.js +24 -7
- package/dist/collection/components/store/translationStore/strings.arabic.js +159 -0
- package/dist/collection/components/store/translationStore/strings.base.js +161 -0
- package/dist/collection/components/store/translationStore/strings.chinese.js +159 -0
- package/dist/collection/components/store/translationStore/strings.danish.js +159 -0
- package/dist/collection/components/store/translationStore/strings.dutch.js +159 -0
- package/dist/collection/components/store/translationStore/strings.french.js +159 -0
- package/dist/collection/components/store/translationStore/strings.german.js +159 -0
- package/dist/collection/components/store/translationStore/strings.hebrew.js +159 -0
- package/dist/collection/components/store/translationStore/strings.indonesian.js +159 -0
- package/dist/collection/components/store/translationStore/strings.italian.js +159 -0
- package/dist/collection/components/store/translationStore/strings.japanese.js +159 -0
- package/dist/collection/components/store/translationStore/strings.korean.js +159 -0
- package/dist/collection/components/store/translationStore/strings.norwegian.js +159 -0
- package/dist/collection/components/store/translationStore/strings.polish.js +159 -0
- package/dist/collection/components/store/translationStore/strings.portuguese.js +159 -0
- package/dist/collection/components/store/translationStore/strings.russian.js +159 -0
- package/dist/collection/components/store/translationStore/strings.spanish.js +159 -0
- package/dist/collection/components/store/translationStore/strings.swedish.js +159 -0
- package/dist/collection/components/store/translationStore/strings.turkish.js +159 -0
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +159 -0
- package/dist/collection/components/store/zonosStore.js +1 -0
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +1 -1
- package/dist/collection/components/stripe/zonos-custom-address/zonos-address-suggestions/assets/RemoveIcon.svg +1 -0
- package/dist/collection/components/stripe/zonos-custom-address/zonos-address-suggestions/zonos-address-suggestions.css +86 -0
- package/dist/collection/components/stripe/zonos-custom-address/zonos-address-suggestions/zonos-address-suggestions.js +192 -0
- package/dist/collection/components/stripe/zonos-custom-address/zonos-custom-address.css +67 -0
- package/dist/collection/components/stripe/zonos-custom-address/zonos-custom-address.js +978 -0
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
- package/dist/collection/components/utils/api/getGenericSettingsOverride.js +10 -0
- package/dist/collection/components/utils/api/getZonosSettings.js +7 -1
- package/dist/collection/components/utils/checkout/form/helpers.js +95 -0
- package/dist/collection/components/utils/checkout/form/isValidZip.js +18 -0
- package/dist/collection/components/utils/iframe/CheckoutAddressService.js +193 -0
- package/dist/collection/components/utils/iframe/IframeHelpers.js +86 -0
- package/dist/collection/components/utils/mergeAddress.js +5 -0
- package/dist/collection/constants/phone-formats.js +658 -0
- package/dist/collection/scripts/_getCartInfoById.js +7 -1
- package/dist/collection/scripts/_zonosBase.js +7 -0
- package/dist/collection/types/CountryFields.js +1 -0
- package/dist/collection/types/checkout/form/CustomAddressErrors.js +1 -0
- package/dist/collection/types/generated/graphql.frontend.types.js +9 -0
- package/dist/collection/types/generated/graphql.internal.types.js +96 -0
- package/dist/collection/types/index.js +0 -1
- package/dist/esm/{cart-3fb04f1f.js → cart-4725a63b.js} +3209 -10
- package/dist/esm/debounce-3cf0793c.js +355 -0
- package/dist/esm/{getBorderRadius-ada3ccad.js → getBorderRadius-a9a48f79.js} +1 -1
- package/dist/esm/getGenericSettingsOverride-0bc3e118.js +99 -0
- package/dist/esm/helpers-2f6955b1.js +97 -0
- package/dist/esm/{index-d82f06f2.js → index-a457c60c.js} +15 -3
- package/dist/esm/index.js +19 -8
- package/dist/esm/{isDarkColor-446fccb7.js → isDarkColor-62cbddb5.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{paypal-1f2e863c.js → paypal-a09943f4.js} +3 -3
- package/dist/esm/zonos-address_11.entry.js +7903 -0
- package/dist/esm/zonos-badge.entry.js +2 -2
- package/dist/esm/zonos-banner.entry.js +2 -2
- package/dist/esm/zonos-button_3.entry.js +18 -7
- package/dist/esm/zonos-card.entry.js +3 -3
- package/dist/esm/zonos-cart-items_13.entry.js +113 -21
- package/dist/esm/zonos-checkout.entry.js +9 -7
- package/dist/esm/zonos-collapse.entry.js +2 -2
- package/dist/esm/zonos-component.entry.js +2 -2
- package/dist/esm/zonos-controller.entry.js +225 -7
- package/dist/esm/zonos-country-flag.entry.js +5 -5
- package/dist/esm/zonos-country-select_4.entry.js +10 -10
- package/dist/esm/zonos-elements.js +3 -3
- package/dist/esm/zonos-empty-state-payment_4.entry.js +8 -8
- package/dist/esm/zonos-hello-dialog.entry.js +9 -9
- package/dist/esm/zonos-hello.entry.js +6 -357
- package/dist/esm/zonos-input.entry.js +3 -3
- package/dist/esm/zonos-language-select_2.entry.js +5 -5
- package/dist/esm/zonos-link.entry.js +1 -1
- package/dist/esm/zonos-logo.entry.js +2 -2
- package/dist/esm/zonos-shipping-rich-radio.entry.js +3 -3
- package/dist/esm/zonos-stripe-input.entry.js +31 -12
- package/dist/esm/zonos-text.entry.js +2 -2
- package/dist/esm/zonos-toggle.entry.js +4 -4
- package/dist/esm/zonos-tooltip.entry.js +3 -3
- package/dist/esm/zonos-v-stack.entry.js +4 -4
- package/dist/esm/{zonosStore-d3c5a0a5.js → zonosStore-1ce34e04.js} +2 -1
- package/dist/esm-es5/cart-4725a63b.js +1 -0
- package/dist/esm-es5/debounce-3cf0793c.js +1 -0
- package/dist/esm-es5/{getBorderRadius-ada3ccad.js → getBorderRadius-a9a48f79.js} +1 -1
- package/dist/esm-es5/getGenericSettingsOverride-0bc3e118.js +1 -0
- package/dist/esm-es5/helpers-2f6955b1.js +1 -0
- package/dist/esm-es5/index-a457c60c.js +2 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{isDarkColor-446fccb7.js → isDarkColor-62cbddb5.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{paypal-1f2e863c.js → paypal-a09943f4.js} +1 -1
- package/dist/esm-es5/zonos-address_11.entry.js +1 -0
- package/dist/esm-es5/zonos-badge.entry.js +1 -1
- package/dist/esm-es5/zonos-banner.entry.js +1 -1
- package/dist/esm-es5/zonos-button_3.entry.js +1 -1
- package/dist/esm-es5/zonos-card.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_13.entry.js +1 -1
- package/dist/esm-es5/zonos-checkout.entry.js +1 -1
- package/dist/esm-es5/zonos-collapse.entry.js +1 -1
- package/dist/esm-es5/zonos-component.entry.js +1 -1
- package/dist/esm-es5/zonos-controller.entry.js +1 -1
- package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
- package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
- package/dist/esm-es5/zonos-elements.js +1 -1
- package/dist/esm-es5/zonos-empty-state-payment_4.entry.js +1 -1
- package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm-es5/zonos-hello.entry.js +1 -1
- package/dist/esm-es5/zonos-input.entry.js +1 -1
- package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
- package/dist/esm-es5/zonos-link.entry.js +1 -1
- package/dist/esm-es5/zonos-logo.entry.js +1 -1
- package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
- package/dist/esm-es5/zonos-stripe-input.entry.js +1 -1
- package/dist/esm-es5/zonos-text.entry.js +1 -1
- package/dist/esm-es5/zonos-toggle.entry.js +1 -1
- package/dist/esm-es5/zonos-tooltip.entry.js +1 -1
- package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
- package/dist/esm-es5/{zonosStore-d3c5a0a5.js → zonosStore-1ce34e04.js} +1 -1
- package/dist/scripts/index.d.ts +3985 -3371
- package/dist/scripts/index.js +1 -1
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +4 -0
- package/dist/types/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.d.ts +28 -1
- package/dist/types/components/common/zonos-button/zonos-button.d.ts +4 -0
- package/dist/types/components/common/zonos-checkbox/zonos-checkbox.d.ts +1 -0
- package/dist/types/components/common/zonos-stripe-input/zonos-stripe-input.d.ts +22 -0
- package/dist/types/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.d.ts +88 -0
- package/dist/types/components/common/zonos-stripe-select/zonos-stripe-select.d.ts +86 -0
- package/dist/types/components/main/zonos-controller.d.ts +1 -0
- package/dist/types/components/store/checkout/stripe.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.arabic.d.ts +159 -0
- package/dist/types/components/store/translationStore/strings.base.d.ts +159 -0
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +159 -0
- package/dist/types/components/store/translationStore/strings.danish.d.ts +159 -0
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +159 -0
- package/dist/types/components/store/translationStore/strings.french.d.ts +159 -0
- package/dist/types/components/store/translationStore/strings.german.d.ts +159 -0
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +159 -0
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +159 -0
- package/dist/types/components/store/translationStore/strings.italian.d.ts +159 -0
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +159 -0
- package/dist/types/components/store/translationStore/strings.korean.d.ts +159 -0
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +159 -0
- package/dist/types/components/store/translationStore/strings.polish.d.ts +159 -0
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +159 -0
- package/dist/types/components/store/translationStore/strings.russian.d.ts +159 -0
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +159 -0
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +159 -0
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +159 -0
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +159 -0
- package/dist/types/components/store/zonosStore.d.ts +6 -1
- package/dist/types/components/stripe/zonos-custom-address/zonos-address-suggestions/zonos-address-suggestions.d.ts +38 -0
- package/dist/types/components/stripe/zonos-custom-address/zonos-custom-address.d.ts +150 -0
- package/dist/types/components/utils/api/getGenericSettingsOverride.d.ts +5 -0
- package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
- package/dist/types/components/utils/api/getZonosSettings.d.ts +2 -2
- package/dist/types/components/utils/checkout/form/helpers.d.ts +19 -0
- package/dist/types/components/utils/checkout/form/isValidZip.d.ts +5 -0
- package/dist/types/components/utils/iframe/CheckoutAddressService.d.ts +38 -0
- package/dist/types/components/utils/iframe/IframeHelpers.d.ts +81 -0
- package/dist/types/components/utils/mergeAddress.d.ts +4 -0
- package/dist/types/components/utils/resetToSelectedTab.d.ts +1 -1
- package/dist/types/components.d.ts +472 -4
- package/dist/types/constants/phone-formats.d.ts +5 -0
- package/dist/types/environment.d.ts +1 -1
- package/dist/types/scripts/_zonosBase.d.ts +13 -1
- package/dist/types/scripts/cart/_setupCartDataWithSettings.d.ts +1 -0
- package/dist/types/types/CountryFields.d.ts +40 -0
- package/dist/types/types/checkout/form/CustomAddressErrors.d.ts +13 -0
- package/dist/types/types/generated/graphql.frontend.types.d.ts +164 -1
- package/dist/types/types/generated/graphql.frontend.types.ts +145 -1
- package/dist/types/types/generated/graphql.internal.types.d.ts +127 -0
- package/dist/types/types/generated/graphql.internal.types.ts +155 -0
- package/dist/types/types/global.d.ts +1 -0
- package/dist/types/types/index.d.ts +1 -1
- package/dist/types/types/utils/ZonosSettings.d.ts +17 -0
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-4622cca6.entry.js → p-0104d3ba.entry.js} +1 -1
- package/dist/zonos-elements/{p-7cb87ea7.system.entry.js → p-04303b56.system.entry.js} +1 -1
- package/dist/zonos-elements/p-06f798ee.system.js +1 -0
- package/dist/zonos-elements/{p-739014f8.system.entry.js → p-0fdd7034.system.entry.js} +1 -1
- package/dist/zonos-elements/p-15dd7ea4.system.entry.js +1 -0
- package/dist/zonos-elements/{p-a1cfbd0a.js → p-17299200.js} +1 -1
- package/dist/zonos-elements/{p-58f660d4.system.entry.js → p-1b29bc5f.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-fe2c27c4.entry.js → p-1e612c29.entry.js} +1 -1
- package/dist/zonos-elements/{p-98aa88b1.js → p-2097fae5.js} +1 -1
- package/dist/zonos-elements/{p-81084be5.system.entry.js → p-240ee490.system.entry.js} +1 -1
- package/dist/zonos-elements/p-2416aaa1.system.entry.js +1 -0
- package/dist/zonos-elements/{p-cedf08f0.entry.js → p-313ef896.entry.js} +1 -1
- package/dist/zonos-elements/{p-fa65b53d.entry.js → p-314fbfe1.entry.js} +1 -1
- package/dist/zonos-elements/{p-5187ba8f.system.js → p-31e90130.system.js} +1 -1
- package/dist/zonos-elements/{p-4ca666ea.system.entry.js → p-341f40c2.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-d49c6a3e.system.entry.js → p-35f33601.system.entry.js} +1 -1
- package/dist/zonos-elements/p-4160bbc2.system.js +1 -0
- package/dist/zonos-elements/p-43633269.system.js +2 -0
- package/dist/zonos-elements/p-443b5db2.entry.js +1 -0
- package/dist/zonos-elements/p-46d3e378.system.entry.js +1 -0
- package/dist/zonos-elements/{p-3d221556.system.entry.js → p-488ad646.system.entry.js} +1 -1
- package/dist/zonos-elements/p-53ffdb91.js +1 -0
- package/dist/zonos-elements/p-56b56caa.system.entry.js +1 -0
- package/dist/zonos-elements/p-5e15616f.entry.js +1 -0
- package/dist/zonos-elements/{p-3eac4b10.entry.js → p-5f896e9a.entry.js} +1 -1
- package/dist/zonos-elements/{p-e8c70c7d.system.entry.js → p-609c32a3.system.entry.js} +1 -1
- package/dist/zonos-elements/p-64ea232c.system.entry.js +1 -0
- package/dist/zonos-elements/{p-f378b4d3.system.entry.js → p-678ccc3f.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-8048932d.entry.js → p-67b904c2.entry.js} +1 -1
- package/dist/zonos-elements/p-6b40da70.system.js +1 -0
- package/dist/zonos-elements/p-70d4d436.entry.js +1 -0
- package/dist/zonos-elements/{p-64dbc282.entry.js → p-818d6f17.entry.js} +1 -1
- package/dist/zonos-elements/{p-b5b9aa6c.entry.js → p-81ee1683.entry.js} +1 -1
- package/dist/zonos-elements/{p-236f32c8.system.entry.js → p-89fcd305.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c4fa8524.system.entry.js → p-94a80d93.system.entry.js} +1 -1
- package/dist/zonos-elements/p-961620ae.entry.js +1 -0
- package/dist/zonos-elements/{p-4eff2f8a.system.entry.js → p-98e4a965.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-5bebcfc2.system.js → p-9913c186.system.js} +1 -1
- package/dist/zonos-elements/{p-29e8c9e8.system.entry.js → p-991c85f1.system.entry.js} +1 -1
- package/dist/zonos-elements/p-995761ea.system.entry.js +1 -0
- package/dist/zonos-elements/p-9a6eb099.entry.js +1 -0
- package/dist/zonos-elements/p-9a7a9b1c.entry.js +1 -0
- package/dist/zonos-elements/{p-d367c9ae.system.entry.js → p-9f7b9d66.system.entry.js} +1 -1
- package/dist/zonos-elements/p-a2dab25e.system.entry.js +1 -0
- package/dist/zonos-elements/{p-587568b5.entry.js → p-aaff5dcc.entry.js} +1 -1
- package/dist/zonos-elements/{p-3731e7f5.entry.js → p-abc66a0b.entry.js} +1 -1
- package/dist/zonos-elements/{p-eb294265.entry.js → p-aca3a2bb.entry.js} +1 -1
- package/dist/zonos-elements/p-afa34aff.system.js +1 -0
- package/dist/zonos-elements/{p-69f84611.entry.js → p-b2241919.entry.js} +1 -1
- package/dist/zonos-elements/p-b5edee66.system.js +1 -0
- package/dist/zonos-elements/p-b610f70c.system.js +1 -0
- package/dist/zonos-elements/{p-69255ed2.system.js → p-bbbaea3a.system.js} +1 -1
- package/dist/zonos-elements/p-c137dc82.js +2 -0
- package/dist/zonos-elements/{p-be9e1818.system.entry.js → p-c140a0bd.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-de221545.entry.js → p-cf6ae7dc.entry.js} +1 -1
- package/dist/zonos-elements/{p-90633d63.entry.js → p-d0f4b6c3.entry.js} +1 -1
- package/dist/zonos-elements/{p-112aecac.js → p-de462b9b.js} +2 -2
- package/dist/zonos-elements/{p-107b08c1.entry.js → p-e5d081d8.entry.js} +1 -1
- package/dist/zonos-elements/p-e7b0c156.js +1 -0
- package/dist/zonos-elements/{p-30fdcbee.js → p-e892fb29.js} +1 -1
- package/dist/zonos-elements/p-e90cb997.entry.js +1 -0
- package/dist/zonos-elements/{p-db3f381d.entry.js → p-e91b244c.entry.js} +1 -1
- package/dist/zonos-elements/{p-41dfc828.entry.js → p-e99354d5.entry.js} +1 -1
- package/dist/zonos-elements/p-ea6d87a1.system.js +1 -0
- package/dist/zonos-elements/p-eef5b0cc.js +1 -0
- package/dist/zonos-elements/{p-d0944cc8.system.entry.js → p-f3f27bf2.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-0e63259c.system.entry.js → p-f4cc688e.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-cc6d9f7d.entry.js → p-f7d3e48b.entry.js} +1 -1
- package/dist/zonos-elements/p-fa6de0f3.js +1 -0
- package/dist/zonos-elements/{p-c5c8f803.system.entry.js → p-fd348fd4.system.entry.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/dist/zonos-elements/zonos-elements.js +1 -1
- package/package.json +3 -1
- package/dist/cjs/zonos-address_7.cjs.entry.js +0 -772
- package/dist/esm/zonos-address_7.entry.js +0 -762
- package/dist/esm-es5/cart-3fb04f1f.js +0 -1
- package/dist/esm-es5/index-d82f06f2.js +0 -2
- package/dist/esm-es5/zonos-address_7.entry.js +0 -1
- package/dist/zonos-elements/p-09041efe.entry.js +0 -1
- package/dist/zonos-elements/p-16e4cdb1.entry.js +0 -1
- package/dist/zonos-elements/p-43feb95e.entry.js +0 -1
- package/dist/zonos-elements/p-46f6e5e9.system.js +0 -1
- package/dist/zonos-elements/p-4caffd96.system.js +0 -2
- package/dist/zonos-elements/p-642bf613.system.entry.js +0 -1
- package/dist/zonos-elements/p-6c0c8722.system.entry.js +0 -1
- package/dist/zonos-elements/p-7decb19b.entry.js +0 -1
- package/dist/zonos-elements/p-829f6a40.entry.js +0 -1
- package/dist/zonos-elements/p-8f640b28.entry.js +0 -1
- package/dist/zonos-elements/p-a69dbe14.js +0 -1
- package/dist/zonos-elements/p-ab68ad11.js +0 -2
- package/dist/zonos-elements/p-b1020237.system.js +0 -1
- package/dist/zonos-elements/p-bc0f885e.system.entry.js +0 -1
- package/dist/zonos-elements/p-c6d96a42.system.js +0 -1
- package/dist/zonos-elements/p-ce853f8f.system.entry.js +0 -1
- package/dist/zonos-elements/p-d5d39db4.system.entry.js +0 -1
- package/dist/zonos-elements/p-e4f8114a.system.js +0 -1
- package/dist/zonos-elements/p-e99e75dd.system.entry.js +0 -1
- package/dist/zonos-elements/p-f66a5c7c.system.entry.js +0 -1
- package/dist/zonos-elements/p-febb90e0.entry.js +0 -1
|
@@ -49,20 +49,19 @@
|
|
|
49
49
|
|
|
50
50
|
:host {
|
|
51
51
|
margin: 1px;
|
|
52
|
-
height: calc(var(--zonos-elements-size-xl) - 2px);
|
|
53
52
|
/**disabled state */
|
|
54
53
|
}
|
|
55
54
|
:host .zonos--label-wrapper {
|
|
56
55
|
position: relative;
|
|
57
56
|
display: flex;
|
|
58
57
|
flex-direction: row;
|
|
59
|
-
height: 100%;
|
|
60
58
|
width: 100%;
|
|
61
59
|
background: var(--zonos--background-color);
|
|
62
60
|
border-radius: var(--zonos--border-radius);
|
|
63
61
|
border: var(--zonos--border);
|
|
64
62
|
outline-offset: 0;
|
|
65
63
|
outline-width: 2px;
|
|
64
|
+
height: calc(var(--zonos-elements-size-xl) - 2px);
|
|
66
65
|
}
|
|
67
66
|
:host .zonos--floated-input {
|
|
68
67
|
box-sizing: border-box;
|
|
@@ -107,7 +106,7 @@
|
|
|
107
106
|
:host .zonos--floated-input:focus ~ .zonos--floated-label::after {
|
|
108
107
|
box-shadow: var(--zonos--glowing-color, var(--zonos--local-glowing-color));
|
|
109
108
|
}
|
|
110
|
-
:host .zonos--floated-input.has-error
|
|
109
|
+
:host .zonos--floated-input.has-error ~ .zonos--floated-label::after {
|
|
111
110
|
box-shadow: 0 0 0 2px #df1b41;
|
|
112
111
|
}
|
|
113
112
|
:host .zonos--floated-input.has-content::placeholder, :host .zonos--floated-input:focus::placeholder {
|
|
@@ -1,21 +1,32 @@
|
|
|
1
1
|
import { h, Host, } from "@stencil/core";
|
|
2
2
|
import { zonosStore, zonosStoreFontFamily, } from "../../store/zonosStore";
|
|
3
|
+
import { inheritAriaAttributes, inheritAttributes, } from "../../utils/checkout/form/helpers";
|
|
3
4
|
import { classes } from "../../utils/classes";
|
|
4
5
|
import { getBorderRadius } from "../../utils/getBorderRadius";
|
|
5
6
|
import { isDarkColor } from "../../utils/isDarkColor";
|
|
7
|
+
let inputId = 0;
|
|
6
8
|
/**
|
|
7
9
|
* This component is input that has similar style to Stripe since we will use it with other Stripe elements when we don't want to use Link authentication element
|
|
8
10
|
*/
|
|
9
11
|
export class ZonosStripeInput {
|
|
10
12
|
constructor() {
|
|
13
|
+
/**
|
|
14
|
+
* Inherited attributes from the host element
|
|
15
|
+
*/
|
|
16
|
+
this.inheritedAttributes = {};
|
|
17
|
+
this.inputId = `zonos--input-${++inputId}`;
|
|
18
|
+
this.name = undefined;
|
|
19
|
+
this.autoComplete = undefined;
|
|
11
20
|
this.inputValue = '';
|
|
12
21
|
this.inputLabel = undefined;
|
|
13
22
|
this.overridePrimaryColor = undefined;
|
|
14
23
|
this.overrideSecondaryColor = undefined;
|
|
15
24
|
this.isDisabled = false;
|
|
16
25
|
this.isError = false;
|
|
26
|
+
this.error = '';
|
|
17
27
|
this.inputPlaceholder = '';
|
|
18
28
|
this.value = '';
|
|
29
|
+
this.required = false;
|
|
19
30
|
this.internalValue = this.inputValue;
|
|
20
31
|
}
|
|
21
32
|
onInputValueChange(newValue) {
|
|
@@ -26,37 +37,45 @@ export class ZonosStripeInput {
|
|
|
26
37
|
onValueChange(newValue) {
|
|
27
38
|
this.internalValue = newValue;
|
|
28
39
|
}
|
|
40
|
+
componentWillLoad() {
|
|
41
|
+
this.inheritedAttributes = Object.assign(Object.assign({}, inheritAriaAttributes(this.el)), inheritAttributes(this.el, [
|
|
42
|
+
'tabindex',
|
|
43
|
+
'title',
|
|
44
|
+
'data-form-type',
|
|
45
|
+
'dir',
|
|
46
|
+
]));
|
|
47
|
+
}
|
|
29
48
|
render() {
|
|
30
49
|
const primaryColor = this.overridePrimaryColor || zonosStore.appearance.colorPrimary;
|
|
31
50
|
const secondaryColor = this.overrideSecondaryColor || zonosStore.appearance.colorSecondary;
|
|
32
51
|
const isDark = primaryColor && isDarkColor(primaryColor);
|
|
33
52
|
const fontSize = zonosStore.appearance.fontSizeInputValue || 16;
|
|
34
|
-
return (h(Host, { key: '
|
|
53
|
+
return (h(Host, { key: 'e6fbf3c60f08e70e9523f4d9fd38c757512af919', class: classes([
|
|
35
54
|
'zonos--input zonos--elements',
|
|
36
55
|
isDark && 'dark',
|
|
37
|
-
this.isError && 'has-error',
|
|
56
|
+
(this.isError || !!this.error) && 'has-error',
|
|
38
57
|
]), "data-theme": isDark ? 'DARK' : 'LIGHT', style: {
|
|
39
58
|
'--zonos--border-radius': getBorderRadius(),
|
|
40
59
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
41
60
|
'--zonos--font-size': `${fontSize}px`,
|
|
42
61
|
'--zonos--primary-color': secondaryColor,
|
|
43
|
-
} }, h("div", { key: '
|
|
62
|
+
} }, h("div", { key: '0c10d623ec27ac18a321e2675e18cbb98224fe54', class: classes([
|
|
44
63
|
'zonos--label-wrapper',
|
|
45
64
|
this.isDisabled && 'disabled',
|
|
46
|
-
]) }, h("input", { key: '
|
|
65
|
+
]) }, h("input", Object.assign({ key: '8eb4653690896a81ee5436303b8555c07038a579' }, this.inheritedAttributes, { autoComplete: this.autoComplete, class: classes([
|
|
47
66
|
'zonos--floated-input',
|
|
48
67
|
!!this.inputLabel && 'has-label',
|
|
49
68
|
this.internalValue && 'has-content',
|
|
50
|
-
this.isError && 'has-error',
|
|
51
|
-
]), disabled: this.isDisabled, id:
|
|
69
|
+
(this.isError || !!this.error) && 'has-error',
|
|
70
|
+
]), disabled: this.isDisabled, id: this.inputId, name: this.name, onInput: e => {
|
|
52
71
|
const input = e.target;
|
|
53
72
|
this.inputChange.emit(input.value);
|
|
54
73
|
this.el.inputValue = input.value;
|
|
55
74
|
this.el.dispatchEvent(new Event('change'));
|
|
56
|
-
}, placeholder: this.inputPlaceholder, type: "text", value: this.internalValue }), h("div", { key: '
|
|
75
|
+
}, placeholder: this.inputPlaceholder || '', required: this.required, type: "text", value: this.internalValue })), h("div", { key: '7388dd7c3ca24bd1a40246215fa9b51c76ab519f', class: "zonos--floated-label" }, h("label", { key: 'c975933f597d145c8b9edbeb9ac417603922de9a', htmlFor: this.inputId }, this.inputLabel))), this.error && (h("zonos-text", { key: 'ca6d5471d2133fe574a916cd10d32bfef7faa0b8', textColor: "red-600" }, this.error))));
|
|
57
76
|
}
|
|
58
77
|
static get is() { return "zonos-stripe-input"; }
|
|
59
|
-
static get encapsulation() { return "
|
|
78
|
+
static get encapsulation() { return "scoped"; }
|
|
60
79
|
static get originalStyleUrls() {
|
|
61
80
|
return {
|
|
62
81
|
"$": ["zonos-stripe-input.scss"]
|
|
@@ -69,6 +88,44 @@ export class ZonosStripeInput {
|
|
|
69
88
|
}
|
|
70
89
|
static get properties() {
|
|
71
90
|
return {
|
|
91
|
+
"name": {
|
|
92
|
+
"type": "string",
|
|
93
|
+
"mutable": false,
|
|
94
|
+
"complexType": {
|
|
95
|
+
"original": "string",
|
|
96
|
+
"resolved": "string | undefined",
|
|
97
|
+
"references": {}
|
|
98
|
+
},
|
|
99
|
+
"required": false,
|
|
100
|
+
"optional": true,
|
|
101
|
+
"docs": {
|
|
102
|
+
"tags": [],
|
|
103
|
+
"text": "Name of the input"
|
|
104
|
+
},
|
|
105
|
+
"getter": false,
|
|
106
|
+
"setter": false,
|
|
107
|
+
"attribute": "name",
|
|
108
|
+
"reflect": false
|
|
109
|
+
},
|
|
110
|
+
"autoComplete": {
|
|
111
|
+
"type": "string",
|
|
112
|
+
"mutable": false,
|
|
113
|
+
"complexType": {
|
|
114
|
+
"original": "string",
|
|
115
|
+
"resolved": "string | undefined",
|
|
116
|
+
"references": {}
|
|
117
|
+
},
|
|
118
|
+
"required": false,
|
|
119
|
+
"optional": true,
|
|
120
|
+
"docs": {
|
|
121
|
+
"tags": [],
|
|
122
|
+
"text": "Autocomplete attribute for the input"
|
|
123
|
+
},
|
|
124
|
+
"getter": false,
|
|
125
|
+
"setter": false,
|
|
126
|
+
"attribute": "auto-complete",
|
|
127
|
+
"reflect": false
|
|
128
|
+
},
|
|
72
129
|
"inputValue": {
|
|
73
130
|
"type": "string",
|
|
74
131
|
"mutable": false,
|
|
@@ -186,6 +243,26 @@ export class ZonosStripeInput {
|
|
|
186
243
|
"reflect": false,
|
|
187
244
|
"defaultValue": "false"
|
|
188
245
|
},
|
|
246
|
+
"error": {
|
|
247
|
+
"type": "string",
|
|
248
|
+
"mutable": false,
|
|
249
|
+
"complexType": {
|
|
250
|
+
"original": "string",
|
|
251
|
+
"resolved": "string | undefined",
|
|
252
|
+
"references": {}
|
|
253
|
+
},
|
|
254
|
+
"required": false,
|
|
255
|
+
"optional": true,
|
|
256
|
+
"docs": {
|
|
257
|
+
"tags": [],
|
|
258
|
+
"text": "Error message of the input"
|
|
259
|
+
},
|
|
260
|
+
"getter": false,
|
|
261
|
+
"setter": false,
|
|
262
|
+
"attribute": "error",
|
|
263
|
+
"reflect": false,
|
|
264
|
+
"defaultValue": "''"
|
|
265
|
+
},
|
|
189
266
|
"inputPlaceholder": {
|
|
190
267
|
"type": "string",
|
|
191
268
|
"mutable": false,
|
|
@@ -225,6 +302,26 @@ export class ZonosStripeInput {
|
|
|
225
302
|
"attribute": "value",
|
|
226
303
|
"reflect": false,
|
|
227
304
|
"defaultValue": "''"
|
|
305
|
+
},
|
|
306
|
+
"required": {
|
|
307
|
+
"type": "boolean",
|
|
308
|
+
"mutable": false,
|
|
309
|
+
"complexType": {
|
|
310
|
+
"original": "boolean",
|
|
311
|
+
"resolved": "boolean | undefined",
|
|
312
|
+
"references": {}
|
|
313
|
+
},
|
|
314
|
+
"required": false,
|
|
315
|
+
"optional": true,
|
|
316
|
+
"docs": {
|
|
317
|
+
"tags": [],
|
|
318
|
+
"text": "Whether the input is required"
|
|
319
|
+
},
|
|
320
|
+
"getter": false,
|
|
321
|
+
"setter": false,
|
|
322
|
+
"attribute": "required",
|
|
323
|
+
"reflect": false,
|
|
324
|
+
"defaultValue": "false"
|
|
228
325
|
}
|
|
229
326
|
};
|
|
230
327
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg color="var(--zonos-elements-gray-400)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M6.293 9.293a1 1 0 0 1 1.414 0L12 13.586l4.293-4.293a1 1 0 0 1 1.414 1.414l-4.93 4.93a1.1 1.1 0 0 1-1.555 0l-4.93-4.93a1 1 0 0 1 0-1.414Z" fill="currentColor" fill-rule="evenodd"></path></svg>
|
package/dist/collection/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.css
ADDED
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
font-family: var(--zonos--font-family, Inter), Inter;
|
|
3
|
+
display: block;
|
|
4
|
+
white-space: normal;
|
|
5
|
+
}
|
|
6
|
+
:host * {
|
|
7
|
+
font-family: var(--zonos--font-family, Inter), Inter;
|
|
8
|
+
}
|
|
9
|
+
:host img {
|
|
10
|
+
max-width: 100%;
|
|
11
|
+
}
|
|
12
|
+
:host dl,
|
|
13
|
+
:host dd,
|
|
14
|
+
:host h1,
|
|
15
|
+
:host h2,
|
|
16
|
+
:host h3,
|
|
17
|
+
:host h4,
|
|
18
|
+
:host h5,
|
|
19
|
+
:host h6,
|
|
20
|
+
:host hr,
|
|
21
|
+
:host figure,
|
|
22
|
+
:host p,
|
|
23
|
+
:host pre {
|
|
24
|
+
margin: 0;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* All sets of variable are here */
|
|
28
|
+
/* smooth font rendering */
|
|
29
|
+
:host {
|
|
30
|
+
-moz-osx-font-smoothing: grayscale;
|
|
31
|
+
-webkit-font-smoothing: antialiased;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
:host {
|
|
35
|
+
--zonos--background-color: #f1f1f1;
|
|
36
|
+
--zonos--local-glowing-color: 0 0 0 3px hsla(0, 0%, 100%, 25%),
|
|
37
|
+
0 0 0 1px var(--zonos--primary-color);
|
|
38
|
+
--zonos--border: 1px solid #e8e8e8;
|
|
39
|
+
margin: 1px;
|
|
40
|
+
position: relative;
|
|
41
|
+
display: block;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
:host(.dark),
|
|
45
|
+
:host([data-theme=DARK]) {
|
|
46
|
+
color-scheme: dark;
|
|
47
|
+
--zonos--background-color: #30313d;
|
|
48
|
+
--zonos--local-glowing-color: 0px 2px 4px rgba(0, 0, 0, 0.5),
|
|
49
|
+
0px 1px 6px rgba(0, 0, 0, 0.25), 0 0 0 3px hsla(0, 0%, 100%, 25%),
|
|
50
|
+
0 1px 1px 0 rgba(255, 255, 255, 0.12);
|
|
51
|
+
--zonos--border: 1px solid var(--zonos--primary-color);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
:host {
|
|
55
|
+
display: flex;
|
|
56
|
+
flex-direction: column;
|
|
57
|
+
gap: 4px;
|
|
58
|
+
position: relative;
|
|
59
|
+
width: 100%;
|
|
60
|
+
}
|
|
61
|
+
:host .zonos--label-wrapper {
|
|
62
|
+
position: relative;
|
|
63
|
+
width: 100%;
|
|
64
|
+
display: flex;
|
|
65
|
+
align-items: stretch;
|
|
66
|
+
height: calc(var(--zonos-elements-size-xl) - 2px);
|
|
67
|
+
background: var(--zonos--background-color);
|
|
68
|
+
border-radius: var(--zonos--border-radius);
|
|
69
|
+
border: var(--zonos--border);
|
|
70
|
+
outline-offset: 0;
|
|
71
|
+
outline-width: 2px;
|
|
72
|
+
overflow: visible;
|
|
73
|
+
}
|
|
74
|
+
:host .zonos--label-wrapper .zonos--select {
|
|
75
|
+
position: absolute;
|
|
76
|
+
opacity: 0;
|
|
77
|
+
inset: 0;
|
|
78
|
+
width: 100%;
|
|
79
|
+
cursor: pointer;
|
|
80
|
+
}
|
|
81
|
+
:host .zonos--label-wrapper .zonos--input-group {
|
|
82
|
+
display: flex;
|
|
83
|
+
align-items: stretch;
|
|
84
|
+
width: 100%;
|
|
85
|
+
height: 100%;
|
|
86
|
+
pointer-events: none;
|
|
87
|
+
}
|
|
88
|
+
:host .zonos--label-wrapper.focused::after {
|
|
89
|
+
content: "";
|
|
90
|
+
position: absolute;
|
|
91
|
+
left: 0;
|
|
92
|
+
right: 0;
|
|
93
|
+
top: 0;
|
|
94
|
+
bottom: 0;
|
|
95
|
+
border-radius: var(--zonos--border-radius);
|
|
96
|
+
box-shadow: var(--zonos--glowing-color, var(--zonos--local-glowing-color));
|
|
97
|
+
pointer-events: none;
|
|
98
|
+
}
|
|
99
|
+
:host .zonos--label-wrapper.has-error::after {
|
|
100
|
+
content: "";
|
|
101
|
+
position: absolute;
|
|
102
|
+
left: 0;
|
|
103
|
+
right: 0;
|
|
104
|
+
top: 0;
|
|
105
|
+
bottom: 0;
|
|
106
|
+
border-radius: var(--zonos--border-radius);
|
|
107
|
+
box-shadow: 0 0 0 2px #df1b41;
|
|
108
|
+
pointer-events: none;
|
|
109
|
+
}
|
|
110
|
+
:host .zonos--label-wrapper.disabled {
|
|
111
|
+
opacity: var(--zonos-elements-opacity-disabled);
|
|
112
|
+
cursor: not-allowed;
|
|
113
|
+
pointer-events: none;
|
|
114
|
+
}
|
|
115
|
+
:host .zonos--select-wrapper {
|
|
116
|
+
flex: 0 0 auto;
|
|
117
|
+
width: auto;
|
|
118
|
+
position: relative;
|
|
119
|
+
display: flex;
|
|
120
|
+
align-items: center;
|
|
121
|
+
cursor: pointer;
|
|
122
|
+
}
|
|
123
|
+
:host .zonos--select-wrapper:hover {
|
|
124
|
+
background-color: rgba(0, 0, 0, 0.02);
|
|
125
|
+
}
|
|
126
|
+
:host .zonos--input-container {
|
|
127
|
+
flex: 1;
|
|
128
|
+
position: relative;
|
|
129
|
+
z-index: 2;
|
|
130
|
+
pointer-events: all;
|
|
131
|
+
}
|
|
132
|
+
:host .zonos--input-container.has-label .zonos--floated-input {
|
|
133
|
+
padding: 24px 12px 2px;
|
|
134
|
+
}
|
|
135
|
+
:host .zonos--floated-input {
|
|
136
|
+
background: transparent;
|
|
137
|
+
border: none;
|
|
138
|
+
width: 100%;
|
|
139
|
+
height: 100%;
|
|
140
|
+
padding: 0 12px;
|
|
141
|
+
font-size: var(--zonos--font-size);
|
|
142
|
+
color: var(--zonos-elements-text-color);
|
|
143
|
+
outline: none;
|
|
144
|
+
box-sizing: border-box;
|
|
145
|
+
}
|
|
146
|
+
:host .zonos--floated-input:disabled {
|
|
147
|
+
cursor: not-allowed;
|
|
148
|
+
}
|
|
149
|
+
:host .zonos--floated-input::placeholder {
|
|
150
|
+
opacity: 0;
|
|
151
|
+
transition: var(--zonos-elements-transition);
|
|
152
|
+
}
|
|
153
|
+
:host .zonos--floated-input:focus::placeholder {
|
|
154
|
+
opacity: var(--zonos-elements-opacity-disabled);
|
|
155
|
+
}
|
|
156
|
+
:host .zonos--floated-label {
|
|
157
|
+
display: block;
|
|
158
|
+
max-height: 0;
|
|
159
|
+
pointer-events: none;
|
|
160
|
+
}
|
|
161
|
+
:host .zonos--floated-label label {
|
|
162
|
+
color: var(--zonos-elements-gray-800);
|
|
163
|
+
position: absolute;
|
|
164
|
+
font-size: 16px;
|
|
165
|
+
line-height: 16px;
|
|
166
|
+
display: inline-block;
|
|
167
|
+
filter: blur(0);
|
|
168
|
+
transform-origin: left top;
|
|
169
|
+
transition: var(--zonos-elements-transition);
|
|
170
|
+
left: 12px;
|
|
171
|
+
top: calc(50% - 8px);
|
|
172
|
+
z-index: 1;
|
|
173
|
+
}
|
|
174
|
+
:host .has-content .zonos--input-container .zonos--floated-label label,
|
|
175
|
+
:host .focused .zonos--input-container .zonos--floated-label label {
|
|
176
|
+
top: 11px;
|
|
177
|
+
transform: scale(0.8);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.zonos--country-select {
|
|
181
|
+
position: relative;
|
|
182
|
+
height: 100%;
|
|
183
|
+
}
|
|
184
|
+
.zonos--country-select .zonos--country-select-content {
|
|
185
|
+
position: relative;
|
|
186
|
+
display: flex;
|
|
187
|
+
align-items: center;
|
|
188
|
+
padding-left: 12px;
|
|
189
|
+
height: 100%;
|
|
190
|
+
z-index: 1;
|
|
191
|
+
}
|
|
192
|
+
.zonos--country-select .zonos--country-select-selected {
|
|
193
|
+
display: flex;
|
|
194
|
+
align-items: center;
|
|
195
|
+
gap: 8px;
|
|
196
|
+
}
|
|
197
|
+
.zonos--country-select .zonos--select-chevron-wrapper {
|
|
198
|
+
display: flex;
|
|
199
|
+
align-items: center;
|
|
200
|
+
padding-left: 4px;
|
|
201
|
+
}
|
|
202
|
+
.zonos--country-select .zonos--select-chevron-wrapper .zonos--select-chevron {
|
|
203
|
+
pointer-events: none;
|
|
204
|
+
color: var(--zonos-elements-gray-800);
|
|
205
|
+
padding-left: 4px;
|
|
206
|
+
}
|
|
207
|
+
.zonos--country-select .zonos--country-flag-wrapper {
|
|
208
|
+
display: flex;
|
|
209
|
+
align-items: center;
|
|
210
|
+
}
|
|
211
|
+
.zonos--country-select .zonos--country-flag {
|
|
212
|
+
border-radius: var(--zonos-elements-radius-4);
|
|
213
|
+
width: 20px;
|
|
214
|
+
height: 16px;
|
|
215
|
+
position: relative;
|
|
216
|
+
overflow: hidden;
|
|
217
|
+
box-shadow: var(--zonos-elements-v3-shadow-medium);
|
|
218
|
+
}
|
|
219
|
+
.zonos--country-select .zonos--country-code {
|
|
220
|
+
font-size: var(--zonos--font-size);
|
|
221
|
+
color: var(--zonos-elements-text-color);
|
|
222
|
+
}
|