@zonos/elements 1.3.184 → 1.3.186
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 +7919 -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 +980 -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 +7905 -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-0bf6e163.system.entry.js +1 -0
- package/dist/zonos-elements/p-0c676de4.entry.js +1 -0
- package/dist/zonos-elements/{p-739014f8.system.entry.js → p-0fdd7034.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-a1cfbd0a.js → p-17299200.js} +1 -1
- package/dist/zonos-elements/p-175e242e.entry.js +1 -0
- 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-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-6fd6af48.system.entry.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-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-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-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-c04b3f14.system.js +1 -0
- 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
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-0993f42d.js');
|
|
6
6
|
const classes = require('./classes-b7918f56.js');
|
|
7
7
|
|
|
8
8
|
const zonosTooltipCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .zonos--tooltip{position:relative}:host .zonos--tooltip .zonos--tooltip-content{position:absolute;bottom:100%;left:0;width:-webkit-max-content;width:-moz-max-content;width:max-content;padding:12px;background-color:var(--zonos-elements-gray-1000);opacity:0;-webkit-transform:scale(0);transform:scale(0);-webkit-transition:all 0.2s ease-in-out;transition:all 0.2s ease-in-out;-webkit-transform-origin:bottom left;transform-origin:bottom left;border-radius:var(--zonos-elements-radius-4);z-index:100;-webkit-box-shadow:var(--zonos-elements-v3-shadow-large);box-shadow:var(--zonos-elements-v3-shadow-large)}:host .zonos--tooltip .zonos--tooltip-content.zonos--show-tooltip{opacity:1;-webkit-transform:scale(1);transform:scale(1)}";
|
|
@@ -16,10 +16,10 @@ const ZonosTooltip = class {
|
|
|
16
16
|
this.showTooltip = false;
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
|
-
return (index.h(index.Host, { key: '
|
|
19
|
+
return (index.h(index.Host, { key: 'fbd7f669ae886586c2512b00975fc5acf1e40eca', class: "zonos--elements" }, index.h("div", { key: '618d6ff79308540f5eeb3d8a23e7c520fb35a91a', class: "zonos--tooltip", onMouseEnter: () => (this.showTooltip = true), onMouseLeave: () => (this.showTooltip = false) }, index.h("slot", { key: '303eaf31b4b3dc9fd35ed0db252be84274b7d46c' }), index.h("div", { key: '7429949912c8e3fb683ab4cbc4958d8fb6b2fd81', class: classes.classes([
|
|
20
20
|
this.showTooltip && 'zonos--show-tooltip',
|
|
21
21
|
'zonos--tooltip-content',
|
|
22
|
-
]) }, index.h("zonos-text", { key: '
|
|
22
|
+
]) }, index.h("zonos-text", { key: '31704a564bb877fac16c1ab11a686e9ba72940ea', size: "s", textColor: "gray-0", type: "boldLabel" }, this.label), index.h("zonos-text", { key: '1e2cafbfaf769b30256c8d4609953961bcd10a06', size: "xs", textColor: "gray-0" }, this.subtitle)))));
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
25
|
ZonosTooltip.style = ZonosTooltipStyle0;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
5
|
+
const index = require('./index-0993f42d.js');
|
|
6
|
+
const zonosStore = require('./zonosStore-adc42868.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
8
|
|
|
9
9
|
const zonosVStackCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .vstack{display:grid;grid-auto-columns:minmax(0, 1fr);grid-row-gap:var(--spacing, 24px);grid-auto-flow:row}";
|
|
@@ -15,9 +15,9 @@ const VStack = class {
|
|
|
15
15
|
this.spacing = 24;
|
|
16
16
|
}
|
|
17
17
|
render() {
|
|
18
|
-
return (index.h(index.Host, { key: '
|
|
18
|
+
return (index.h(index.Host, { key: 'b591378d641a09bac2c4fab00c8c1977ae21a14c', style: {
|
|
19
19
|
'--zonos--font-family': zonosStore.zonosStoreFontFamily(),
|
|
20
|
-
} }, index.h("div", { key: '
|
|
20
|
+
} }, index.h("div", { key: 'c9f3b482ace4b36813fa5412dd497c0deea7e3c0', class: classes.classes(['vstack']), style: { 'grid-row-gap': `${this.spacing}px` } }, index.h("slot", { key: '75cf9b483367945bc57279b76519205c8f0901eb' }))));
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
23
|
VStack.style = ZonosVStackStyle0;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
3
|
+
const index = require('./index-0993f42d.js');
|
|
4
4
|
|
|
5
5
|
const appendToMap = (map, propName, value) => {
|
|
6
6
|
const items = map.get(propName);
|
|
@@ -2768,6 +2768,7 @@ const { dispose: zonosStoreDispose, reset, state: zonosStore, } = createStore(()
|
|
|
2768
2768
|
theme: 'LIGHT',
|
|
2769
2769
|
zonosAttribution: 'DISABLED',
|
|
2770
2770
|
},
|
|
2771
|
+
checkoutAddressService: null,
|
|
2771
2772
|
checkoutSettings: {
|
|
2772
2773
|
allowedCharacterSets: 'ALL',
|
|
2773
2774
|
allowedSettlementCurrencies: 'LOCAL',
|
|
@@ -38,6 +38,8 @@
|
|
|
38
38
|
"components/common/zonos-rest-state/zonos-rest-state.js",
|
|
39
39
|
"components/common/zonos-select-dialog-header/zonos-select-dialog-header.js",
|
|
40
40
|
"components/common/zonos-stripe-input/zonos-stripe-input.js",
|
|
41
|
+
"components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.js",
|
|
42
|
+
"components/common/zonos-stripe-select/zonos-stripe-select.js",
|
|
41
43
|
"components/common/zonos-text/zonos-text.js",
|
|
42
44
|
"components/common/zonos-toggle/zonos-toggle.js",
|
|
43
45
|
"components/common/zonos-tooltip/zonos-tooltip.js",
|
|
@@ -50,6 +52,8 @@
|
|
|
50
52
|
"components/main/zonos-controller.js",
|
|
51
53
|
"components/paypal/zonos-paypal-payment.js",
|
|
52
54
|
"components/stripe/zonos-address/zonos-address.js",
|
|
55
|
+
"components/stripe/zonos-custom-address/zonos-custom-address.js",
|
|
56
|
+
"components/stripe/zonos-custom-address/zonos-address-suggestions/zonos-address-suggestions.js",
|
|
53
57
|
"components/stripe/zonos-link-authentication/zonos-link-authentication.js",
|
|
54
58
|
"components/stripe/zonos-payment/zonos-payment.js"
|
|
55
59
|
],
|
|
@@ -144,21 +144,21 @@ export class ZonosAddressUpdateDialog {
|
|
|
144
144
|
return (h(Host, { key: '655845cef04f4af526b1a1c4e49243c4f2b4c7f6', class: classes([
|
|
145
145
|
'zonos--address-update-dialog zonos--elements',
|
|
146
146
|
this.isMobile && 'mobile',
|
|
147
|
-
]) }, h("zonos-dialog", { key: 'eab429bb78ce6f05ba463d8748d7edd5499402fa', isLoading: this.dialogLoading, mobile: this.isMobile, noBodyPadding: true, noBorder: true, noClickOutside: true, noCloseButton: true, onCloseDialog: () => this.closeUpdateDialog.emit(), open: this.dialogOpen, width: "568px" }, h("div", { key: '08f0400e62addfcaffd91bf5200999d29bbd2da9', class: "zonos--body" }, h("div", { key: '8699df5e2f823e19066fbb552ba2a66c127c05e9', class: "zonos--dialog-header" }, h("div", { key: '92e0ff932dcdb0e5b59ea34b688d1ef8e31bfeb3', class: "zonos--dialog-title" }, h("zonos-text", { key: 'aaac3375526bddb319ce7c8f49bde30da7210264', type: "title" }, translate('Update your address')), h("zonos-button", { key: '
|
|
147
|
+
]) }, h("zonos-dialog", { key: 'eab429bb78ce6f05ba463d8748d7edd5499402fa', isLoading: this.dialogLoading, mobile: this.isMobile, noBodyPadding: true, noBorder: true, noClickOutside: true, noCloseButton: true, onCloseDialog: () => this.closeUpdateDialog.emit(), open: this.dialogOpen, width: "568px" }, h("div", { key: '08f0400e62addfcaffd91bf5200999d29bbd2da9', class: "zonos--body" }, h("div", { key: '8699df5e2f823e19066fbb552ba2a66c127c05e9', class: "zonos--dialog-header" }, h("div", { key: '92e0ff932dcdb0e5b59ea34b688d1ef8e31bfeb3', class: "zonos--dialog-title" }, h("zonos-text", { key: 'aaac3375526bddb319ce7c8f49bde30da7210264', type: "title" }, translate('Update your address')), h("zonos-button", { key: '474cc2421cd3150daa46bfe215da6ae7df9c6087', class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close checkout dialog", content: RemoveIcon }), noBackground: true, onClick: () => this.closeUpdateDialogHandler(), title: "Close checkout dialog" })), h("zonos-text", { key: '6d019250cce57e8b30dd790a184df7273bdb234f' }, translate('To ensure delivery all address details must be in Latin characters.'))), h("div", { key: '80ee681844f4f4f43fce69d977b634b1fbc3d5f5', class: "zonos--group" }, h("zonos-text", { key: '940e510eceec156a74f32de84cf58ffebd796435', class: "zonos--what-you-entered", type: "semiBoldLabel" }, translate('What you entered')), h("div", { key: 'f626127f5c399c29ab1022deb66aaee8f8a49601', class: "zonos--address-display-group" }, h("zonos-address-display", { key: '9dfcba1037325c3a1f9e82b8e4797e7872dd7e3f', addressType: "shipping", currentAddress: shipping }), billing && (h("zonos-address-display", { key: 'fee8ae2c6786d735133c2a0a42f3e3d40d7f9ea9', addressType: "billing", currentAddress: billing }))), h("div", { key: '5a82195018ff8cdfd1126f4424062a26c25ee757', class: "zonos--address-form-section" }, h("zonos-text", { key: 'f694dfad166697e4c034cea51057133b69b1c144', type: "semiBoldLabel" }, translate('Translated address')), h("zonos-address-form", { key: '4a99c841cf4800de43c612cce3d56d956d02c22f', addressType: "shipping", class: "zonos--shipping-address-form", currentAddress: shipping, onAddressChange: e => {
|
|
148
148
|
const address = e.detail;
|
|
149
149
|
this.translatedShippingAddressState =
|
|
150
150
|
this.buildTranslateAddressState({
|
|
151
151
|
currentAddress: shipping,
|
|
152
152
|
translatedAddress: address,
|
|
153
153
|
});
|
|
154
|
-
}, translatedAddress: this.translatedShippingAddressState }), billing && (h("zonos-address-form", { key: '
|
|
154
|
+
}, translatedAddress: this.translatedShippingAddressState }), billing && (h("zonos-address-form", { key: '311fd702d29a9517203597890bd46bd268dfc6d3', addressType: "billing", class: "zonos--billing-address-form", currentAddress: billing, onAddressChange: e => {
|
|
155
155
|
const address = e.detail;
|
|
156
156
|
this.translatedBillingAddressState =
|
|
157
157
|
this.buildTranslateAddressState({
|
|
158
158
|
currentAddress: billing,
|
|
159
159
|
translatedAddress: address,
|
|
160
160
|
});
|
|
161
|
-
}, translatedAddress: this.translatedBillingAddressState })))), h("div", { key: '
|
|
161
|
+
}, translatedAddress: this.translatedBillingAddressState })))), h("div", { key: '918c3271579c3fc7a7efff0473b0ccf48fb575a2', class: "zonos--group-btn" }, h("div", { key: 'f73be0c1124d3a4d340bc6e8512f6be8356c655d', class: "zonos--button-wrapper" }, h("zonos-button", { key: '172a6cc0a7b75afb400802ef6b87faae6e7e2483', class: "zonos--cancel-btn", onClick: () => this.closeUpdateDialogHandler(), variant: "subtle" }, translate('Cancel')), h("zonos-button", { key: '8fd08bc79b60eb9a0064c06ff9d840b1ecb09123', backgroundColor: this.submitBtnColor, class: "zonos--update-btn", loading: this.continueLoading, onClick: () => this.continueClickHandler(), size: "sm", variant: submitBtnType }, translate('Update address'))))))));
|
|
162
162
|
}
|
|
163
163
|
static get is() { return "zonos-address-update-dialog"; }
|
|
164
164
|
static get encapsulation() { return "shadow"; }
|
|
@@ -150,6 +150,7 @@
|
|
|
150
150
|
:host(.preview) {
|
|
151
151
|
min-width: 500px;
|
|
152
152
|
margin: auto;
|
|
153
|
+
position: relative;
|
|
153
154
|
}
|
|
154
155
|
:host(.preview) .zonos--content {
|
|
155
156
|
border: var(--zonos-elements-border);
|
|
@@ -158,6 +159,16 @@
|
|
|
158
159
|
padding: 32px;
|
|
159
160
|
}
|
|
160
161
|
|
|
162
|
+
:host(.hidden-mode) {
|
|
163
|
+
height: 0;
|
|
164
|
+
opacity: 0;
|
|
165
|
+
pointer-events: none;
|
|
166
|
+
position: absolute;
|
|
167
|
+
visibility: hidden;
|
|
168
|
+
width: 0;
|
|
169
|
+
z-index: -1;
|
|
170
|
+
}
|
|
171
|
+
|
|
161
172
|
:host(.mobile) {
|
|
162
173
|
min-width: auto;
|
|
163
174
|
}
|
|
@@ -198,6 +198,7 @@ export class ZonosCheckout {
|
|
|
198
198
|
};
|
|
199
199
|
this.appearanceSettingsOverride = undefined;
|
|
200
200
|
this.preview = false;
|
|
201
|
+
this.hiddenMode = false;
|
|
201
202
|
this.mobile = false;
|
|
202
203
|
this.overrideStagingMode = undefined;
|
|
203
204
|
this.defaultAddress = [];
|
|
@@ -1172,6 +1173,7 @@ export class ZonosCheckout {
|
|
|
1172
1173
|
this.preview && 'preview',
|
|
1173
1174
|
this.isMobile && 'mobile',
|
|
1174
1175
|
this.isIframed && 'iframed',
|
|
1176
|
+
this.hiddenMode && 'hidden-mode',
|
|
1175
1177
|
]) }, this.preview ? (renderContent()) : (h("zonos-dialog", { borderStyle: style, "data-theme": rightSideTheme, height: "980px", isLoading: dialogLoading, mobile: this.isMobile, noBodyPadding: true, noBorder: true, noClickOutside: true, noCloseButton: true, onCloseDialog: () => this.closeDialogHandler(), open: this.open, width: "1200px" }, renderContent())), h("zonos-confirm-dialog", { class: "zonos--close-confirm-dialog", dialogCancelBtnText: translate("Don't close"), dialogConfirmBtnText: translate('Close'), dialogIntent: "warn", dialogOpen: this.confirmDialogOpen, dialogSubtitle: translate('Would you like to close checkout and return to the site?'), dialogTitle: translate('Are you sure?'), onCancelClicked: () => {
|
|
1176
1178
|
this.confirmDialogOpen = false;
|
|
1177
1179
|
},
|
|
@@ -1281,6 +1283,26 @@ export class ZonosCheckout {
|
|
|
1281
1283
|
"reflect": false,
|
|
1282
1284
|
"defaultValue": "false"
|
|
1283
1285
|
},
|
|
1286
|
+
"hiddenMode": {
|
|
1287
|
+
"type": "boolean",
|
|
1288
|
+
"mutable": false,
|
|
1289
|
+
"complexType": {
|
|
1290
|
+
"original": "boolean",
|
|
1291
|
+
"resolved": "boolean",
|
|
1292
|
+
"references": {}
|
|
1293
|
+
},
|
|
1294
|
+
"required": false,
|
|
1295
|
+
"optional": false,
|
|
1296
|
+
"docs": {
|
|
1297
|
+
"tags": [],
|
|
1298
|
+
"text": "Hidden mode to hide the checkout modal in preview mode"
|
|
1299
|
+
},
|
|
1300
|
+
"getter": false,
|
|
1301
|
+
"setter": false,
|
|
1302
|
+
"attribute": "hidden-mode",
|
|
1303
|
+
"reflect": false,
|
|
1304
|
+
"defaultValue": "false"
|
|
1305
|
+
},
|
|
1284
1306
|
"mobile": {
|
|
1285
1307
|
"type": "boolean",
|
|
1286
1308
|
"mutable": false,
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { h, Host, } from "@stencil/core";
|
|
2
2
|
import { stripeStore, stripeStoreTranslateAddressToLatin, } from "../../../store/checkout/stripe";
|
|
3
|
+
import { localizationStore } from "../../../store/hello/localization";
|
|
3
4
|
import { translate } from "../../../store/translationStore";
|
|
4
5
|
import { getZonosStoreTheme, zonosStore, } from "../../../store/zonosStore";
|
|
5
6
|
import { containsNonLatinChars } from "../../../utils/containsNonLatinChars";
|
|
7
|
+
import { log } from "../../../utils/logging/log";
|
|
8
|
+
import { sendErrorLog } from "../../../utils/logging/sendErrorLog";
|
|
6
9
|
import { taxIdValidationResult } from "../../../utils/taxIdValidationResult";
|
|
7
10
|
import { countryRequireTaxId, shipToTaxIdLabels, } from "../../../../types/checkout/Tax";
|
|
8
11
|
export class ZonosCustomerInfo {
|
|
@@ -63,6 +66,12 @@ export class ZonosCustomerInfo {
|
|
|
63
66
|
* handler for continue button click
|
|
64
67
|
*/
|
|
65
68
|
this.continueClickHandler = async () => {
|
|
69
|
+
var _a;
|
|
70
|
+
(_a = this.testContinueClicked) === null || _a === void 0 ? void 0 : _a.emit({
|
|
71
|
+
billingAddress: stripeStore.stripeBillingAddressEventData,
|
|
72
|
+
sameAsBilling: stripeStore.stripeShippingSameAsBilling,
|
|
73
|
+
shippingAddress: stripeStore.stripeAddressEventData,
|
|
74
|
+
});
|
|
66
75
|
if (!this.handleValidate()) {
|
|
67
76
|
// scroll to the top zonos-banner
|
|
68
77
|
setTimeout(() => {
|
|
@@ -82,25 +91,77 @@ export class ZonosCustomerInfo {
|
|
|
82
91
|
if (hasInvalidCharacters) {
|
|
83
92
|
return;
|
|
84
93
|
}
|
|
85
|
-
this.continueClicked.emit(
|
|
94
|
+
this.continueClicked.emit({
|
|
95
|
+
billingAddress: stripeStore.stripeBillingAddressEventData,
|
|
96
|
+
sameAsBilling: stripeStore.stripeShippingSameAsBilling,
|
|
97
|
+
shippingAddress: stripeStore.stripeAddressEventData,
|
|
98
|
+
});
|
|
99
|
+
};
|
|
100
|
+
/**
|
|
101
|
+
* Validate the custom address form, turn the flag showError to false if the form is valid, or vice versa
|
|
102
|
+
*/
|
|
103
|
+
this.validateCustomAddressForm = (type) => {
|
|
104
|
+
const useShippingAddressErrors = stripeStore.stripeShippingSameAsBilling || type === 'shipping';
|
|
105
|
+
const customAddressErrors = useShippingAddressErrors
|
|
106
|
+
? stripeStore.customAddressErrors
|
|
107
|
+
: stripeStore.customBillingAddressErrors;
|
|
108
|
+
const { city, firstName, lastName, line1, phone, postalCode, state } = customAddressErrors;
|
|
109
|
+
// check to see if there is any form error or not.
|
|
110
|
+
let hasError = false;
|
|
111
|
+
if (city ||
|
|
112
|
+
firstName ||
|
|
113
|
+
lastName ||
|
|
114
|
+
line1 ||
|
|
115
|
+
phone ||
|
|
116
|
+
postalCode ||
|
|
117
|
+
state) {
|
|
118
|
+
hasError = true;
|
|
119
|
+
}
|
|
120
|
+
// show error if there is any form error
|
|
121
|
+
if (useShippingAddressErrors) {
|
|
122
|
+
stripeStore.customAddressErrors = Object.assign(Object.assign({}, customAddressErrors), { showError: hasError });
|
|
123
|
+
}
|
|
124
|
+
else {
|
|
125
|
+
stripeStore.customBillingAddressErrors = Object.assign(Object.assign({}, customAddressErrors), { showError: hasError });
|
|
126
|
+
}
|
|
127
|
+
return {
|
|
128
|
+
isValid: !hasError,
|
|
129
|
+
};
|
|
86
130
|
};
|
|
87
131
|
this.handleValidate = () => {
|
|
88
|
-
var _a, _b;
|
|
132
|
+
var _a, _b, _c, _d;
|
|
89
133
|
const stripeShippingAddressEventData = stripeStore.stripeAddressEventData;
|
|
90
134
|
const stripeBillingAddressEventData = stripeStore.stripeBillingAddressEventData;
|
|
91
135
|
const stripeLinkEventData = stripeStore.stripeLinkEventData;
|
|
92
136
|
// if the shipping is different from billing, we need to make sure the billing address is valid and disable the button if it's not
|
|
93
|
-
const
|
|
137
|
+
const isValidStripeBilling = stripeStore.stripeShippingSameAsBilling
|
|
94
138
|
? !!(stripeShippingAddressEventData === null || stripeShippingAddressEventData === void 0 ? void 0 : stripeShippingAddressEventData.complete)
|
|
95
139
|
: !!(stripeBillingAddressEventData === null || stripeBillingAddressEventData === void 0 ? void 0 : stripeBillingAddressEventData.complete);
|
|
96
|
-
const
|
|
140
|
+
const isValidStripeShipping = !!(stripeShippingAddressEventData === null || stripeShippingAddressEventData === void 0 ? void 0 : stripeShippingAddressEventData.complete);
|
|
97
141
|
const isValidLink = !!(stripeLinkEventData === null || stripeLinkEventData === void 0 ? void 0 : stripeLinkEventData.complete);
|
|
98
142
|
// display errors on fields that are invalid
|
|
99
143
|
void ((_a = stripeStore.stripeAddressElement) === null || _a === void 0 ? void 0 : _a.getValue());
|
|
100
144
|
void ((_b = stripeStore.stripeBillingAddressElement) === null || _b === void 0 ? void 0 : _b.getValue());
|
|
145
|
+
// if the custom address form is enabled, use the custom address form validation result, otherwise use the stripe validation result
|
|
146
|
+
const isValidBilling = ((_c = zonosStore.genericSettings) === null || _c === void 0 ? void 0 : _c.shouldEnabledCustomAddress)
|
|
147
|
+
? this.validateCustomAddressForm('billing').isValid
|
|
148
|
+
: isValidStripeBilling;
|
|
149
|
+
// if the custom address form is enabled, use the custom address form validation result, otherwise use the stripe validation result
|
|
150
|
+
const isValidShipping = ((_d = zonosStore.genericSettings) === null || _d === void 0 ? void 0 : _d.shouldEnabledCustomAddress)
|
|
151
|
+
? this.validateCustomAddressForm('shipping').isValid
|
|
152
|
+
: isValidStripeShipping;
|
|
101
153
|
if (!isValidLink && (stripeLinkEventData === null || stripeLinkEventData === void 0 ? void 0 : stripeLinkEventData.empty)) {
|
|
102
154
|
this.isEmailError = true;
|
|
103
155
|
}
|
|
156
|
+
log('==> isValidBilling', 'info', isValidBilling, {
|
|
157
|
+
address: stripeStore.stripeBillingAddressEventData,
|
|
158
|
+
errors: stripeStore.customBillingAddressErrors,
|
|
159
|
+
});
|
|
160
|
+
log('==> isValidShipping', 'info', isValidShipping, {
|
|
161
|
+
address: stripeStore.stripeAddressEventData,
|
|
162
|
+
errors: stripeStore.customAddressErrors,
|
|
163
|
+
});
|
|
164
|
+
log('==> isValidLink', 'info', isValidLink);
|
|
104
165
|
// validate tax id input if it's required for specific countries, optional otherwise
|
|
105
166
|
const { error, valid } = taxIdValidationResult({
|
|
106
167
|
shippingCountry: this.shippingCountry,
|
|
@@ -136,11 +197,35 @@ export class ZonosCustomerInfo {
|
|
|
136
197
|
state: addressValue.address.state || '',
|
|
137
198
|
};
|
|
138
199
|
};
|
|
200
|
+
this.renderAddressComponent = (type) => {
|
|
201
|
+
var _a, _b;
|
|
202
|
+
if (!localizationStore.selectedCountryCode) {
|
|
203
|
+
void sendErrorLog({
|
|
204
|
+
endpoint: 'NO_COUNTRY_SELECTED_WHEN_RENDERING_ADDRESS_COMPONENT',
|
|
205
|
+
errors: ['No country selected when rendering address component'],
|
|
206
|
+
metadata: {
|
|
207
|
+
type,
|
|
208
|
+
},
|
|
209
|
+
shouldPostReleaseErrorReporting: true,
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
// Only use the default address for shipping address
|
|
213
|
+
const defaultAddress = type === 'shipping' ? this.defaultAddress : [];
|
|
214
|
+
// Render custom address component if the custom address form is enabled
|
|
215
|
+
if (localizationStore.selectedCountryCode &&
|
|
216
|
+
this.shouldEnabledCustomAddress &&
|
|
217
|
+
((_b = (_a = zonosStore.genericSettings) === null || _a === void 0 ? void 0 : _a.countryCustomAddressEnabled) === null || _b === void 0 ? void 0 : _b.includes(localizationStore.selectedCountryCode))) {
|
|
218
|
+
return (h("zonos-custom-address", { defaultAddress: defaultAddress, titleText: translate('Address'), type: type }));
|
|
219
|
+
}
|
|
220
|
+
// Render Stripe address component by default
|
|
221
|
+
return (h("zonos-address", { defaultAddress: defaultAddress, titleText: translate('Address'), type: type }));
|
|
222
|
+
};
|
|
139
223
|
this.continueLoading = false;
|
|
140
224
|
this.submitBtnType = undefined;
|
|
141
225
|
this.submitBtnColor = undefined;
|
|
142
226
|
this.isMobile = false;
|
|
143
227
|
this.defaultAddress = [];
|
|
228
|
+
this.shouldUseCustomAddressFormOverride = false;
|
|
144
229
|
this.showErrorBanner = false;
|
|
145
230
|
this.shippingCountry = '';
|
|
146
231
|
this.isCheckingForRestrictedItems = false;
|
|
@@ -149,8 +234,15 @@ export class ZonosCustomerInfo {
|
|
|
149
234
|
this.invalidShippingCharacterList = null;
|
|
150
235
|
this.invalidBillingCharacterList = null;
|
|
151
236
|
this.openAddressValidationDialog = false;
|
|
237
|
+
this.shouldEnabledCustomAddress = false;
|
|
152
238
|
this.isEmailError = false;
|
|
153
239
|
}
|
|
240
|
+
watchShowErrorBanner() {
|
|
241
|
+
// start validate on typing after error banner is shown, and hide it if the form is complete
|
|
242
|
+
if (this.showErrorBanner) {
|
|
243
|
+
this.showErrorBanner = !this.handleValidate();
|
|
244
|
+
}
|
|
245
|
+
}
|
|
154
246
|
checkInvalidCharacters(address) {
|
|
155
247
|
if (!address) {
|
|
156
248
|
return null;
|
|
@@ -197,7 +289,7 @@ export class ZonosCustomerInfo {
|
|
|
197
289
|
} }), this.taxIdErrorMessage && (h("zonos-text", { textColor: 'red-600', type: "caption" }, this.taxIdErrorMessage))));
|
|
198
290
|
}
|
|
199
291
|
render() {
|
|
200
|
-
var _a, _b, _c, _d, _e, _f;
|
|
292
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
201
293
|
if (!stripeStore.stripeElements) {
|
|
202
294
|
return null;
|
|
203
295
|
}
|
|
@@ -213,20 +305,19 @@ export class ZonosCustomerInfo {
|
|
|
213
305
|
this.shippingCountry =
|
|
214
306
|
stripeStore.stripeAddressEventData.value.address.country;
|
|
215
307
|
}
|
|
308
|
+
this.shouldEnabledCustomAddress =
|
|
309
|
+
this.shouldUseCustomAddressFormOverride ||
|
|
310
|
+
!!((_b = zonosStore.genericSettings) === null || _b === void 0 ? void 0 : _b.shouldEnabledCustomAddress);
|
|
216
311
|
const showBilling = !stripeStore.stripeShippingSameAsBilling;
|
|
217
312
|
// Get theme for the update dialog, inherit from the theme, no from this component theme
|
|
218
313
|
const theme = getZonosStoreTheme(zonosStore.appearance.theme);
|
|
219
314
|
// Attempt to get the email from email from customer profile's locations, if not provided, just use the email from root customer profile
|
|
220
|
-
const defaultEmail = ((
|
|
221
|
-
((
|
|
222
|
-
((
|
|
223
|
-
|
|
224
|
-
if (this.showErrorBanner) {
|
|
225
|
-
this.showErrorBanner = !this.handleValidate();
|
|
226
|
-
}
|
|
227
|
-
return (h(Host, { class: "zonos--customer-info zonos--elements" }, h("div", { class: "zonos--group" }, h("zonos-text", { class: "zonos--title", type: "semiBoldSubheader" }, translate('Customer information')), this.showErrorBanner && (h("zonos-banner", { class: "zonos--error-banner", intent: "error" }, translate('Missing required fields. Make sure all fields are completed.'))), h("zonos-link-authentication", { defaultEmail: defaultEmail, isEmailError: this.isEmailError, onLinkAuthenticationChange: this.handleEmailValidation, titleText: translate('Contact') }), h("zonos-address", { defaultAddress: this.defaultAddress, titleText: translate('Address'), type: "shipping" }), this.renderTaxIdInput(this.shippingCountry), h("zonos-checkbox", { class: "zonos--shipping-same-as-billing-cbx", isChecked: stripeStore.stripeShippingSameAsBilling, label: translate('Shipping address same as billing'), onCheckboxSelected: e => {
|
|
315
|
+
const defaultEmail = ((_c = this.defaultAddress.find(Boolean)) === null || _c === void 0 ? void 0 : _c.email) ||
|
|
316
|
+
((_f = (_e = (_d = stripeStore.customerProfile) === null || _d === void 0 ? void 0 : _d.locations) === null || _e === void 0 ? void 0 : _e.find(Boolean)) === null || _f === void 0 ? void 0 : _f.email) ||
|
|
317
|
+
((_g = stripeStore.customerProfile) === null || _g === void 0 ? void 0 : _g.email);
|
|
318
|
+
return (h(Host, { class: "zonos--customer-info zonos--elements" }, h("div", { class: "zonos--group" }, h("zonos-text", { class: "zonos--title", type: "semiBoldSubheader" }, translate('Customer information')), this.showErrorBanner && (h("zonos-banner", { class: "zonos--error-banner", intent: "error" }, translate('Missing required fields. Make sure all fields are completed.'))), h("zonos-link-authentication", { defaultEmail: defaultEmail, isEmailError: this.isEmailError, onLinkAuthenticationChange: this.handleEmailValidation, titleText: translate('Contact') }), this.renderAddressComponent('shipping'), this.renderTaxIdInput(this.shippingCountry), h("zonos-checkbox", { class: "zonos--shipping-same-as-billing-cbx", isChecked: stripeStore.stripeShippingSameAsBilling, label: translate('Shipping address same as billing'), onCheckboxSelected: e => {
|
|
228
319
|
stripeStore.stripeShippingSameAsBilling = e.detail;
|
|
229
|
-
} }), h("zonos-collapse", { collapsed: !showBilling },
|
|
320
|
+
} }), h("zonos-collapse", { collapsed: !showBilling }, this.renderAddressComponent('billing')), h("div", { class: "zonos--group-btn" }, h("zonos-button", { backgroundColor: this.submitBtnColor, bold: true, loading: this.continueLoading, onClick: () => this.continueClickHandler(), size: "lg",
|
|
230
321
|
// use primary type when on mobile mode
|
|
231
322
|
variant: this.submitBtnType }, translate('Continue to shipping')))), stripeStore.stripeAddressEventData && (h("zonos-address-update-dialog", { billingAddress: !stripeStore.stripeShippingSameAsBilling &&
|
|
232
323
|
stripeStore.stripeBillingAddressEventData
|
|
@@ -363,6 +454,26 @@ export class ZonosCustomerInfo {
|
|
|
363
454
|
"getter": false,
|
|
364
455
|
"setter": false,
|
|
365
456
|
"defaultValue": "[]"
|
|
457
|
+
},
|
|
458
|
+
"shouldUseCustomAddressFormOverride": {
|
|
459
|
+
"type": "boolean",
|
|
460
|
+
"mutable": false,
|
|
461
|
+
"complexType": {
|
|
462
|
+
"original": "boolean",
|
|
463
|
+
"resolved": "boolean",
|
|
464
|
+
"references": {}
|
|
465
|
+
},
|
|
466
|
+
"required": false,
|
|
467
|
+
"optional": false,
|
|
468
|
+
"docs": {
|
|
469
|
+
"tags": [],
|
|
470
|
+
"text": "Whether to override custom address form to be always visible"
|
|
471
|
+
},
|
|
472
|
+
"getter": false,
|
|
473
|
+
"setter": false,
|
|
474
|
+
"attribute": "should-use-custom-address-form-override",
|
|
475
|
+
"reflect": false,
|
|
476
|
+
"defaultValue": "false"
|
|
366
477
|
}
|
|
367
478
|
};
|
|
368
479
|
}
|
|
@@ -376,6 +487,7 @@ export class ZonosCustomerInfo {
|
|
|
376
487
|
"invalidShippingCharacterList": {},
|
|
377
488
|
"invalidBillingCharacterList": {},
|
|
378
489
|
"openAddressValidationDialog": {},
|
|
490
|
+
"shouldEnabledCustomAddress": {},
|
|
379
491
|
"isEmailError": {}
|
|
380
492
|
};
|
|
381
493
|
}
|
|
@@ -391,11 +503,44 @@ export class ZonosCustomerInfo {
|
|
|
391
503
|
"text": "Event to emit when the continue button is clicked"
|
|
392
504
|
},
|
|
393
505
|
"complexType": {
|
|
394
|
-
"original": "
|
|
395
|
-
"resolved": "
|
|
396
|
-
"references": {
|
|
506
|
+
"original": "{\n billingAddress: StripeAddressElementChangeEvent | null;\n sameAsBilling: boolean;\n shippingAddress: StripeAddressElementChangeEvent | null;\n }",
|
|
507
|
+
"resolved": "{ billingAddress: StripeAddressElementChangeEvent | null; sameAsBilling: boolean; shippingAddress: StripeAddressElementChangeEvent | null; }",
|
|
508
|
+
"references": {
|
|
509
|
+
"StripeAddressElementChangeEvent": {
|
|
510
|
+
"location": "import",
|
|
511
|
+
"path": "@stripe/stripe-js",
|
|
512
|
+
"id": "node_modules::StripeAddressElementChangeEvent"
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
}, {
|
|
517
|
+
"method": "testContinueClicked",
|
|
518
|
+
"name": "testContinueClicked",
|
|
519
|
+
"bubbles": true,
|
|
520
|
+
"cancelable": true,
|
|
521
|
+
"composed": true,
|
|
522
|
+
"docs": {
|
|
523
|
+
"tags": [],
|
|
524
|
+
"text": "Trigger continue button click even though fields're not validated for testing purposes"
|
|
525
|
+
},
|
|
526
|
+
"complexType": {
|
|
527
|
+
"original": "{\n billingAddress: StripeAddressElementChangeEvent | null;\n sameAsBilling: boolean;\n shippingAddress: StripeAddressElementChangeEvent | null;\n }",
|
|
528
|
+
"resolved": "{ billingAddress: StripeAddressElementChangeEvent | null; sameAsBilling: boolean; shippingAddress: StripeAddressElementChangeEvent | null; }",
|
|
529
|
+
"references": {
|
|
530
|
+
"StripeAddressElementChangeEvent": {
|
|
531
|
+
"location": "import",
|
|
532
|
+
"path": "@stripe/stripe-js",
|
|
533
|
+
"id": "node_modules::StripeAddressElementChangeEvent"
|
|
534
|
+
}
|
|
535
|
+
}
|
|
397
536
|
}
|
|
398
537
|
}];
|
|
399
538
|
}
|
|
400
539
|
static get elementRef() { return "el"; }
|
|
540
|
+
static get watchers() {
|
|
541
|
+
return [{
|
|
542
|
+
"propName": "showErrorBanner",
|
|
543
|
+
"methodName": "watchShowErrorBanner"
|
|
544
|
+
}];
|
|
545
|
+
}
|
|
401
546
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
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 { getButtonTheme } from "../../utils/getButtonTheme";
|
|
@@ -9,6 +10,10 @@ import { isElementUsingDarkTheme } from "../../utils/isElementUsingDarkTheme";
|
|
|
9
10
|
import { styles } from "../../utils/styles";
|
|
10
11
|
export class ZonosButton {
|
|
11
12
|
constructor() {
|
|
13
|
+
/**
|
|
14
|
+
* Inherited attributes from the host element
|
|
15
|
+
*/
|
|
16
|
+
this.inheritedAttributes = {};
|
|
12
17
|
/**
|
|
13
18
|
* Detect if the button has an content
|
|
14
19
|
*/
|
|
@@ -112,6 +117,12 @@ export class ZonosButton {
|
|
|
112
117
|
}
|
|
113
118
|
componentWillLoad() {
|
|
114
119
|
this.iconChangeHandler();
|
|
120
|
+
this.inheritedAttributes = Object.assign(Object.assign({}, inheritAriaAttributes(this.ele)), inheritAttributes(this.ele, [
|
|
121
|
+
'tabindex',
|
|
122
|
+
'title',
|
|
123
|
+
'data-form-type',
|
|
124
|
+
'dir',
|
|
125
|
+
]));
|
|
115
126
|
}
|
|
116
127
|
render() {
|
|
117
128
|
const { backgroundColor, color, spinnerColor, useDarkHoverSubtle } = this.getButtonStyle();
|
|
@@ -122,13 +133,13 @@ export class ZonosButton {
|
|
|
122
133
|
const borderStyle = getBorderRadius({
|
|
123
134
|
overrideBorderStyle: this.borderStyle,
|
|
124
135
|
});
|
|
125
|
-
return (h(Host, { key: '
|
|
136
|
+
return (h(Host, { key: '88cc4ce2ac8a82e62ac4a5a3828724b92da1db60', class: classes(['zonos--elements']), "data-theme": this.theme || buttonTheme, disabled: disabled, style: styles({
|
|
126
137
|
'--zonos--background-color': backgroundColor,
|
|
127
138
|
'--zonos--border-radius': borderStyle,
|
|
128
139
|
'--zonos--color': color,
|
|
129
140
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
130
141
|
'--zonos--font-weight': this.bold ? 'bold' : 'normal',
|
|
131
|
-
}) }, h("button", { key: '
|
|
142
|
+
}) }, h("button", Object.assign({ key: '4037731e2337e441a2eeb5e28433ba8426cb75b2' }, this.inheritedAttributes, { class: classes([
|
|
132
143
|
this.hasIcon && 'has-icon',
|
|
133
144
|
this.hasContent && 'has-content',
|
|
134
145
|
this.noBackground && 'no-background',
|
|
@@ -143,7 +154,7 @@ export class ZonosButton {
|
|
|
143
154
|
backgroundColor && variant === 'standard' && 'override-background',
|
|
144
155
|
]), disabled: disabled, style: {
|
|
145
156
|
justifyContent: this.justifyContent,
|
|
146
|
-
} }, this.loading && (h("div", { key: '
|
|
157
|
+
} }), this.loading && (h("div", { key: '09f824b2106313200deaa1bdcb7afc3e3b161911', class: "zonos--spinner-wrapper" }, h("zonos-spinner", { key: 'b094e740a91c49a14a31fc56142dccf1062a584b', size: 16, spinnerColor: spinnerColor }))), !this.loading && !this.iconRight && this.icon, h("slot", { key: '8bfc81ae6f5f114a0255854aa79db32a5ee39259', onSlotchange: this.handleSlotChange }), !this.loading && this.iconRight && this.icon)));
|
|
147
158
|
}
|
|
148
159
|
static get is() { return "zonos-button"; }
|
|
149
160
|
static get encapsulation() { return "shadow"; }
|
|
@@ -4,8 +4,10 @@ import { classes } from "../../utils/classes";
|
|
|
4
4
|
import { getBorderRadius } from "../../utils/getBorderRadius";
|
|
5
5
|
import { isDarkColor } from "../../utils/isDarkColor";
|
|
6
6
|
import { colorPrefixes } from "../../../types/styles/Color";
|
|
7
|
+
let inputId = 0;
|
|
7
8
|
export class ZonosCheckbox {
|
|
8
9
|
constructor() {
|
|
10
|
+
this.inputId = `zonos--checkbox-${++inputId}`;
|
|
9
11
|
this.backgroundColor = 'blue';
|
|
10
12
|
this.label = undefined;
|
|
11
13
|
this.isChecked = false;
|
|
@@ -36,14 +38,14 @@ export class ZonosCheckbox {
|
|
|
36
38
|
customRoundRadius: '4px',
|
|
37
39
|
overrideBorderStyle: this.borderStyle,
|
|
38
40
|
});
|
|
39
|
-
return (h(Host, { key: '
|
|
41
|
+
return (h(Host, { key: '177059d9f1ad06324719d97e02a48bb582fcc3d4', class: classes(['zonos--elements zonos--checkbox']), style: {
|
|
40
42
|
'--zonos--background-color': backgroundColor,
|
|
41
43
|
'--zonos--border-radius': borderStyle,
|
|
42
44
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
43
45
|
'--zonos--size': `${this.size}px`,
|
|
44
|
-
} }, h("label", { key: '
|
|
46
|
+
} }, h("label", { key: '15c39a6c58b9d70e5174bb4d51ab6b8b8a48cabc', class: classes([this.isDisabled && 'disabled']), htmlFor: this.inputId }, h("input", { key: '1a6c85de7ca83822cc8e648a84f49580f520429a', checked: this.isChecked, disabled: this.isDisabled, hidden: true, id: this.inputId, onChange: e => {
|
|
45
47
|
this.checkboxSelected.emit(e.target.checked);
|
|
46
|
-
}, type: "checkbox" }), h("span", { key: '
|
|
48
|
+
}, type: "checkbox" }), h("span", { key: '8b498b0a271f07de4e2481a173aecb732a935c5b', class: "checkmark-container" }, h("svg", { key: '5d98f7b34f424942dfbd1071f82a5c4f481ac5a9', class: "checkmark", color: checkmarkColor, fill: "none", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: 'ed79a224a05fa5bfa5f08f71e374d595e7e4c480', "clip-rule": "evenodd", d: "M17.456 7.404a.75.75 0 0 1 .14 1.052l-6.5 8.5a.75.75 0 0 1-1.126.074l-4-4a.75.75 0 0 1 1.06-1.06l3.395 3.394 5.98-7.82a.75.75 0 0 1 1.05-.14Z", fill: "currentColor", "fill-rule": "evenodd" }))), this.label && (h("zonos-text", { key: '6af368e40ed1a260f76aa014591e472004978d0c', size: this.fontSize }, this.label)))));
|
|
47
49
|
}
|
|
48
50
|
static get is() { return "zonos-checkbox"; }
|
|
49
51
|
static get encapsulation() { return "shadow"; }
|
|
@@ -153,7 +153,7 @@ export class ZonosCheckoutProgressTabs {
|
|
|
153
153
|
"signature": "(tabItems: TabItems) => Promise<void>",
|
|
154
154
|
"parameters": [{
|
|
155
155
|
"name": "tabItems",
|
|
156
|
-
"type": "{ \"customer-info\": TabItem;
|
|
156
|
+
"type": "{ shipping: TabItem; \"customer-info\": TabItem; payment: TabItem; }",
|
|
157
157
|
"docs": ""
|
|
158
158
|
}],
|
|
159
159
|
"references": {
|
|
@@ -179,7 +179,7 @@ export class ZonosCheckoutProgressTabs {
|
|
|
179
179
|
"signature": "(tabValue: TabItem[\"value\"]) => Promise<void>",
|
|
180
180
|
"parameters": [{
|
|
181
181
|
"name": "tabValue",
|
|
182
|
-
"type": "\"
|
|
182
|
+
"type": "\"shipping\" | \"customer-info\" | \"payment\"",
|
|
183
183
|
"docs": ""
|
|
184
184
|
}],
|
|
185
185
|
"references": {
|
|
@@ -82,10 +82,4 @@
|
|
|
82
82
|
box-shadow: var(--zonos-elements-v3-shadow-medium);
|
|
83
83
|
z-index: 10;
|
|
84
84
|
justify-self: center;
|
|
85
|
-
}
|
|
86
|
-
@media (max-width: 768px) {
|
|
87
|
-
:host .zonos--country-select .zonos--country-select-country .zonos--country-flag {
|
|
88
|
-
border-radius: var(--zonos-elements-radius-4);
|
|
89
|
-
width: 24px;
|
|
90
|
-
}
|
|
91
85
|
}
|
|
@@ -64,10 +64,10 @@ export class ZonosDialog {
|
|
|
64
64
|
'--zonos--height': this.height || 'initial',
|
|
65
65
|
'--zonos--min-height': this.minHeight || '500px',
|
|
66
66
|
'--zonos--width': this.width,
|
|
67
|
-
} }, h("div", { key: '0298cf365a50e3544656a6d27ae59e922b9e3aed', class: "zonos--backdrop" }), h("div", { key: '9fce580a07147d51f17c898a22204c3d9ce6ac7b', class: "zonos--dialog-layout", inert: !this.open, onClick: this.clickOutsideDialogHandler }, h("div", { key: 'b168439cd985cc5c0166a653db206688504cf7dd', class: "zonos--dialog" }, this.isLoading && (h("div", { key: 'e0b6215f3c7bc939721669069bc294e08558d8b5', class: "zonos--loading" }, h("zonos-spinner", { key: '687bcd6d2695933de828484c34aff1230bf71d49', size: 30 }))), (this.headerText || !this.noCloseButton) && (h("div", { key: '04a57a4add896e3d96faca8b77321bba5f00b889', class: "zonos--header" }, this.headerText && (h("h3", { key: 'd084cb3aedcb7e5bb8fd82012b57f441d7dce4a2', class: "zonos--header-text" }, this.headerText)), !this.noCloseButton && (h("zonos-button", { key: '
|
|
67
|
+
} }, h("div", { key: '0298cf365a50e3544656a6d27ae59e922b9e3aed', class: "zonos--backdrop" }), h("div", { key: '9fce580a07147d51f17c898a22204c3d9ce6ac7b', class: "zonos--dialog-layout", inert: !this.open, onClick: this.clickOutsideDialogHandler }, h("div", { key: 'b168439cd985cc5c0166a653db206688504cf7dd', class: "zonos--dialog" }, this.isLoading && (h("div", { key: 'e0b6215f3c7bc939721669069bc294e08558d8b5', class: "zonos--loading" }, h("zonos-spinner", { key: '687bcd6d2695933de828484c34aff1230bf71d49', size: 30 }))), (this.headerText || !this.noCloseButton) && (h("div", { key: '04a57a4add896e3d96faca8b77321bba5f00b889', class: "zonos--header" }, this.headerText && (h("h3", { key: 'd084cb3aedcb7e5bb8fd82012b57f441d7dce4a2', class: "zonos--header-text" }, this.headerText)), !this.noCloseButton && (h("zonos-button", { key: 'c62701d002586d92f80d1d30644ae3948afc18f6', class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close dialog", content: RemoveIcon }), noBackground: true, onClick: this.closeButtonHandler, title: "Close dialog", variant: "subtle" })))), h("div", { key: 'a8aa531565e52672573785a613ab87a970189616', class: classes([
|
|
68
68
|
'zonos--body',
|
|
69
69
|
this.noBodyPadding && 'zonos--no-body-padding',
|
|
70
|
-
]) }, h("slot", { key: '
|
|
70
|
+
]) }, h("slot", { key: 'ede82b27d9e73f27ad0212203e0483a8294f72e5' })), h("slot", { key: '084c3a055462fbf8f25e336891e0dbb5faed7ed7', name: "dialog-footer" })))));
|
|
71
71
|
}
|
|
72
72
|
static get is() { return "zonos-dialog"; }
|
|
73
73
|
static get encapsulation() { return "shadow"; }
|