@zonos/elements 1.3.11-alpha.0 → 1.3.11-alpha.2
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-7e28f026.js → cart-b34c001b.js} +92 -28
- package/dist/cjs/{getBorderRadius-d795f526.js → getBorderRadius-4fa738c3.js} +1 -1
- package/dist/cjs/getContrastColor-c72796c6.js +20 -0
- package/dist/cjs/{isColorVariable-41cacd82.js → isColorVariable-fff5e469.js} +1 -1
- package/dist/cjs/{isDarkColor-33fb96a7.js → isDarkColor-7faf0a82.js} +2 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{submitGtag-586d3206.js → submitGtag-1f1fbe1c.js} +15 -2
- package/dist/cjs/zonos-address_4.cjs.entry.js +15 -12
- package/dist/cjs/zonos-badge_2.cjs.entry.js +6 -6
- package/dist/cjs/zonos-banner.cjs.entry.js +1 -1
- package/dist/cjs/{zonos-button_3.cjs.entry.js → zonos-button_2.cjs.entry.js} +34 -36
- package/dist/cjs/zonos-card_2.cjs.entry.js +8 -8
- package/dist/cjs/{zonos-cart-items_9.cjs.entry.js → zonos-cart-items_10.cjs.entry.js} +164 -53
- package/dist/cjs/zonos-checkout.cjs.entry.js +249 -26
- package/dist/cjs/zonos-component.cjs.entry.js +1 -1
- package/dist/cjs/zonos-controller.cjs.entry.js +5 -5
- package/dist/cjs/zonos-country-flag.cjs.entry.js +4 -4
- package/dist/cjs/zonos-country-select_3.cjs.entry.js +9 -9
- package/dist/cjs/zonos-elements.cjs.js +1 -1
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +5 -5
- package/dist/cjs/zonos-hello.cjs.entry.js +16 -4
- package/dist/cjs/zonos-icon.cjs.entry.js +39 -0
- package/dist/cjs/zonos-link.cjs.entry.js +1 -1
- package/dist/cjs/zonos-logo.cjs.entry.js +3 -3
- package/dist/cjs/zonos-notification.cjs.entry.js +1 -1
- package/dist/cjs/zonos-payment.cjs.entry.js +5 -5
- package/dist/cjs/zonos-select-dialog-header_2.cjs.entry.js +5 -5
- package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +13 -4
- package/dist/cjs/zonos-text.cjs.entry.js +6 -2
- package/dist/cjs/{zonosStore-d3f0173b.js → zonosStore-bd2a0c59.js} +20 -2
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +4 -5
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.css +32 -22
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.js +76 -16
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.css +2 -4
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +102 -22
- package/dist/collection/components/checkout/zonos-checkout/zonos-review/zonos-review.css +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +43 -24
- package/dist/collection/components/common/component-template/zonos-link/zonos-link.js +1 -1
- package/dist/collection/components/common/zonos-badge/zonos-badge.js +3 -3
- package/dist/collection/components/common/zonos-button/zonos-button.css +1 -1
- package/dist/collection/components/common/zonos-button/zonos-button.js +18 -4
- package/dist/collection/components/common/zonos-card/zonos-card.js +2 -2
- package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +5 -5
- package/dist/collection/components/common/zonos-checkout-progress-tabs/assets/TabCheckmark.svg +3 -0
- package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.css +103 -0
- package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +194 -0
- package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +2 -2
- package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +2 -2
- package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +1 -1
- package/dist/collection/components/common/zonos-dialog/zonos-dialog.css +1 -1
- package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +5 -30
- package/dist/collection/components/common/zonos-icon/zonos-icon.js +9 -5
- package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -2
- package/dist/collection/components/common/zonos-logo/zonos-logo.js +4 -4
- package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
- package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.js +33 -7
- package/dist/collection/components/common/zonos-text/zonos-text.js +7 -3
- 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/component-template/zonos-component/zonos-component.js +1 -1
- package/dist/collection/components/hello/zonos-hello/zonos-hello.js +17 -2
- 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 +5 -5
- package/dist/collection/components/main/zonos-controller.js +1 -1
- package/dist/collection/components/store/checkout/cart.js +26 -0
- package/dist/collection/components/store/checkout/stripe.js +3 -0
- package/dist/collection/components/store/translationStore/strings.arabic.js +3 -0
- package/dist/collection/components/store/translationStore/strings.base.js +3 -0
- package/dist/collection/components/store/translationStore/strings.chinese.js +3 -0
- package/dist/collection/components/store/translationStore/strings.danish.js +3 -0
- package/dist/collection/components/store/translationStore/strings.dutch.js +3 -0
- package/dist/collection/components/store/translationStore/strings.french.js +3 -0
- package/dist/collection/components/store/translationStore/strings.german.js +3 -0
- package/dist/collection/components/store/translationStore/strings.hebrew.js +3 -0
- package/dist/collection/components/store/translationStore/strings.indonesian.js +3 -0
- package/dist/collection/components/store/translationStore/strings.italian.js +3 -0
- package/dist/collection/components/store/translationStore/strings.japanese.js +3 -0
- package/dist/collection/components/store/translationStore/strings.korean.js +3 -0
- package/dist/collection/components/store/translationStore/strings.norwegian.js +3 -0
- package/dist/collection/components/store/translationStore/strings.polish.js +3 -0
- package/dist/collection/components/store/translationStore/strings.portuguese.js +3 -0
- package/dist/collection/components/store/translationStore/strings.russian.js +3 -0
- package/dist/collection/components/store/translationStore/strings.spanish.js +3 -0
- package/dist/collection/components/store/translationStore/strings.swedish.js +3 -0
- package/dist/collection/components/store/translationStore/strings.turkish.js +3 -0
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +3 -0
- package/dist/collection/components/store/zonosStore.js +20 -3
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +5 -2
- package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +1 -1
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
- package/dist/collection/components/utils/api/buildCartItemsByTempCart.js +24 -0
- package/dist/collection/components/utils/api/tempCartItem/getAttributes.js +66 -0
- package/dist/collection/components/utils/api/tempCartItem/getMeasurements.js +58 -0
- package/dist/collection/components/utils/api/trackConversionEvent.js +2 -0
- package/dist/collection/components/utils/checkout/isShippableCountry.js +2 -0
- package/dist/collection/components/utils/createCustomEvent.js +9 -0
- package/dist/collection/components/utils/getContrastColor.js +16 -0
- package/dist/collection/components/utils/isColorVariable.js +1 -1
- package/dist/collection/components/utils/styles.js +12 -0
- package/dist/collection/scripts/zonosBase.js +1 -0
- package/dist/collection/styles/stripe/addressRuleStyle.js +0 -3
- package/dist/collection/types/checkout/api/TempCart.js +1 -0
- package/dist/collection/types/generated/graphql.customer.types.js +73 -0
- package/dist/components/getContrastColor.js +18 -0
- package/dist/components/isColorVariable.js +1 -1
- package/dist/components/isDarkColor.js +1 -1
- package/dist/components/stripe.js +90 -25
- package/dist/components/trackConversionEvent.js +3 -1
- package/dist/components/zonos-address2.js +5 -2
- package/dist/components/zonos-badge2.js +3 -3
- package/dist/components/zonos-button2.js +30 -4
- package/dist/components/zonos-card2.js +2 -2
- package/dist/components/zonos-checkbox2.js +3 -3
- package/dist/components/zonos-checkout-finish2.js +15 -7
- package/dist/components/zonos-checkout-footer2.js +33 -17
- package/dist/components/zonos-checkout-progress-tabs.d.ts +11 -0
- package/dist/components/zonos-checkout-progress-tabs.js +6 -0
- package/dist/components/zonos-checkout-progress-tabs2.js +122 -0
- package/dist/components/zonos-checkout.js +277 -46
- package/dist/components/zonos-collapse2.js +2 -2
- package/dist/components/zonos-component.js +1 -1
- package/dist/components/zonos-controller.js +2 -2
- package/dist/components/zonos-country-select2.js +2 -2
- package/dist/components/zonos-custom-message2.js +1 -1
- package/dist/components/zonos-dialog2.js +4 -6
- package/dist/components/zonos-hello-dialog-footer2.js +2 -2
- package/dist/components/zonos-hello-dialog2.js +2 -2
- package/dist/components/zonos-hello.js +17 -3
- package/dist/components/zonos-icon2.js +5 -1
- package/dist/components/zonos-language-select2.js +3 -3
- package/dist/components/zonos-link-authentication2.js +1 -1
- package/dist/components/zonos-link.js +1 -1
- package/dist/components/zonos-logo.js +2 -2
- package/dist/components/zonos-payment2.js +1 -1
- package/dist/components/zonos-review2.js +1 -1
- package/dist/components/zonos-select-dialog-header2.js +2 -2
- package/dist/components/zonos-shipping-rich-radio2.js +11 -1
- package/dist/components/zonos-shipping2.js +44 -25
- package/dist/components/zonos-text2.js +5 -1
- package/dist/components/zonos-tooltip2.js +2 -2
- package/dist/components/zonos-v-stack2.js +2 -2
- package/dist/components/zonosStore.js +20 -3
- package/dist/esm/{cart-5a88b4f3.js → cart-cc09eaef.js} +93 -28
- package/dist/esm/{getBorderRadius-5d750ab8.js → getBorderRadius-a89e45fb.js} +1 -1
- package/dist/esm/getContrastColor-5fbc4746.js +18 -0
- package/dist/esm/{isColorVariable-91c33804.js → isColorVariable-fbf2d80d.js} +1 -1
- package/dist/esm/{isDarkColor-c34dfed9.js → isDarkColor-6bf71e51.js} +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{submitGtag-289ddd8b.js → submitGtag-2eedb117.js} +15 -3
- package/dist/esm/zonos-address_4.entry.js +15 -12
- package/dist/esm/zonos-badge_2.entry.js +6 -6
- package/dist/esm/zonos-banner.entry.js +1 -1
- package/dist/esm/{zonos-button_3.entry.js → zonos-button_2.entry.js} +35 -36
- package/dist/esm/zonos-card_2.entry.js +8 -8
- package/dist/esm/{zonos-cart-items_9.entry.js → zonos-cart-items_10.entry.js} +164 -54
- package/dist/esm/zonos-checkout.entry.js +249 -26
- package/dist/esm/zonos-component.entry.js +1 -1
- package/dist/esm/zonos-controller.entry.js +5 -5
- package/dist/esm/zonos-country-flag.entry.js +4 -4
- package/dist/esm/zonos-country-select_3.entry.js +9 -9
- package/dist/esm/zonos-elements.js +1 -1
- package/dist/esm/zonos-hello-dialog.entry.js +5 -5
- package/dist/esm/zonos-hello.entry.js +16 -4
- package/dist/esm/zonos-icon.entry.js +35 -0
- package/dist/esm/zonos-link.entry.js +1 -1
- package/dist/esm/zonos-logo.entry.js +3 -3
- package/dist/esm/zonos-notification.entry.js +1 -1
- package/dist/esm/zonos-payment.entry.js +5 -5
- package/dist/esm/zonos-select-dialog-header_2.entry.js +5 -5
- package/dist/esm/zonos-shipping-rich-radio.entry.js +13 -4
- package/dist/esm/zonos-text.entry.js +6 -2
- package/dist/esm/{zonosStore-aac7c6ac.js → zonosStore-c4c45591.js} +20 -3
- package/dist/esm-es5/cart-cc09eaef.js +1 -0
- package/dist/esm-es5/{getBorderRadius-5d750ab8.js → getBorderRadius-a89e45fb.js} +1 -1
- package/dist/esm-es5/getContrastColor-5fbc4746.js +1 -0
- package/dist/esm-es5/isColorVariable-fbf2d80d.js +1 -0
- package/dist/esm-es5/{isDarkColor-c34dfed9.js → isDarkColor-6bf71e51.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/submitGtag-2eedb117.js +1 -0
- package/dist/esm-es5/zonos-address_4.entry.js +1 -1
- package/dist/esm-es5/zonos-badge_2.entry.js +1 -1
- package/dist/esm-es5/zonos-banner.entry.js +1 -1
- package/dist/esm-es5/zonos-button_2.entry.js +1 -0
- package/dist/esm-es5/zonos-card_2.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_10.entry.js +1 -0
- package/dist/esm-es5/zonos-checkout.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_3.entry.js +1 -1
- package/dist/esm-es5/zonos-elements.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-icon.entry.js +1 -0
- 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-notification.entry.js +1 -1
- package/dist/esm-es5/zonos-payment.entry.js +1 -1
- package/dist/esm-es5/zonos-select-dialog-header_2.entry.js +1 -1
- package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
- package/dist/esm-es5/zonos-text.entry.js +1 -1
- package/dist/esm-es5/{zonosStore-aac7c6ac.js → zonosStore-c4c45591.js} +1 -1
- package/dist/scripts/getTempCartById.js +1 -0
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/scripts/zonosBase.js +1 -1
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.d.ts +14 -2
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +7 -1
- package/dist/types/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.d.ts +7 -0
- package/dist/types/components/common/zonos-button/zonos-button.d.ts +1 -0
- package/dist/types/components/common/zonos-checkbox/zonos-checkbox.d.ts +1 -1
- package/dist/types/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.d.ts +29 -0
- package/dist/types/components/common/zonos-dialog/zonos-dialog.d.ts +1 -6
- package/dist/types/components/common/zonos-icon/zonos-icon.d.ts +4 -2
- package/dist/types/components/common/zonos-logo/zonos-logo.d.ts +1 -1
- package/dist/types/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.d.ts +7 -1
- package/dist/types/components/common/zonos-text/zonos-text.d.ts +3 -1
- package/dist/types/components/hello/zonos-hello/zonos-hello.d.ts +1 -0
- package/dist/types/components/hello/zonos-hello-dialog/zonos-hello-dialog.d.ts +2 -1
- package/dist/types/components/store/checkout/cart.d.ts +19 -4
- package/dist/types/components/store/translationStore/strings.arabic.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.base.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.danish.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.french.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.german.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.italian.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.korean.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.polish.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.russian.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +3 -0
- package/dist/types/components/store/zonosStore.d.ts +11 -2
- package/dist/types/components/utils/api/buildCartItemsByTempCart.d.ts +7 -0
- package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
- package/dist/types/components/utils/api/tempCartItem/getAttributes.d.ts +11 -0
- package/dist/types/components/utils/api/tempCartItem/getMeasurements.d.ts +7 -0
- package/dist/types/components/utils/changeDeepProperty.d.ts +1 -1
- package/dist/types/components/utils/changeDeepPropertyAtIndex.d.ts +1 -1
- package/dist/types/components/utils/createCustomEvent.d.ts +12 -0
- package/dist/types/components/utils/getBorderRadius.d.ts +1 -1
- package/dist/types/components/utils/getContrastColor.d.ts +4 -0
- package/dist/types/components/utils/handleFetch.d.ts +2 -1
- package/dist/types/components/utils/isColorVariable.d.ts +1 -1
- package/dist/types/components/utils/styles.d.ts +7 -0
- package/dist/types/components.d.ts +69 -18
- package/dist/types/scripts/zonosBase.d.ts +10 -1
- package/dist/types/styles/stripe/addressRuleStyle.d.ts +2 -1
- package/dist/types/types/checkout/CheckoutConfig.d.ts +6 -1
- package/dist/types/types/checkout/api/TempCart.d.ts +80 -0
- package/dist/types/types/generated/graphql.customer.types.d.ts +97 -0
- package/dist/types/types/generated/graphql.customer.types.ts +135 -1
- package/dist/types/types/generated/graphql.frontend.types.d.ts +1 -1
- package/dist/types/types/generated/graphql.frontend.types.ts +1 -1
- package/dist/types/types/global.d.ts +10 -0
- package/dist/types/types/utils/deep/IDeepKeyofAtIndex.d.ts +1 -1
- package/dist/zonos-elements/assets/TabCheckmark.svg +3 -0
- package/dist/zonos-elements/{p-4ad5f307.system.entry.js → p-001518eb.system.entry.js} +1 -1
- package/dist/zonos-elements/p-07022f11.js +1 -0
- package/dist/zonos-elements/p-0fe52bae.system.entry.js +1 -0
- package/dist/zonos-elements/{p-14bf3658.entry.js → p-105a2e51.entry.js} +1 -1
- package/dist/zonos-elements/{p-a87803b7.system.entry.js → p-15cd4a76.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-482371fb.system.entry.js → p-160cdf4e.system.entry.js} +1 -1
- package/dist/zonos-elements/p-167b3369.system.js +1 -0
- package/dist/zonos-elements/p-171eb334.entry.js +1 -0
- package/dist/zonos-elements/p-1bbdfae5.js +1 -0
- package/dist/zonos-elements/p-1d833f22.system.entry.js +1 -0
- package/dist/zonos-elements/{p-dad00ad3.system.entry.js → p-1df9ab6a.system.entry.js} +1 -1
- package/dist/zonos-elements/p-1f54c83e.entry.js +1 -0
- package/dist/zonos-elements/{p-27d57265.system.entry.js → p-20b080d1.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-333da541.entry.js → p-215cd7ec.entry.js} +1 -1
- package/dist/zonos-elements/p-26e8f37a.entry.js +1 -0
- package/dist/zonos-elements/{p-77727098.system.js → p-41c2b1c5.system.js} +1 -1
- package/dist/zonos-elements/p-425865fd.system.entry.js +1 -0
- package/dist/zonos-elements/{p-5f2cb4b6.entry.js → p-43022147.entry.js} +1 -1
- package/dist/zonos-elements/{p-188ddbe2.entry.js → p-4515ec7b.entry.js} +1 -1
- package/dist/zonos-elements/{p-9db3028d.entry.js → p-470284a3.entry.js} +1 -1
- package/dist/zonos-elements/p-4c9367f1.entry.js +1 -0
- package/dist/zonos-elements/{p-770384fa.system.entry.js → p-4d7b27af.system.entry.js} +1 -1
- package/dist/zonos-elements/p-55519ef5.system.js +1 -0
- package/dist/zonos-elements/{p-8445a084.system.entry.js → p-5ba91f13.system.entry.js} +1 -1
- package/dist/zonos-elements/p-6484bf31.system.js +1 -0
- package/dist/zonos-elements/p-6a1b934d.system.entry.js +1 -0
- package/dist/zonos-elements/{p-a725946f.entry.js → p-6bd4b5e6.entry.js} +1 -1
- package/dist/zonos-elements/{p-7e355496.system.entry.js → p-6c5c5377.system.entry.js} +1 -1
- package/dist/zonos-elements/p-6e81adba.system.js +1 -1
- package/dist/zonos-elements/p-72c6bf0f.entry.js +1 -0
- package/dist/zonos-elements/p-7575a42a.js +1 -0
- package/dist/zonos-elements/p-7f9889bd.system.entry.js +1 -0
- package/dist/zonos-elements/{p-c1e54094.system.js → p-86034f1e.system.js} +1 -1
- package/dist/zonos-elements/p-9a1db995.entry.js +1 -0
- package/dist/zonos-elements/{p-77c54b83.js → p-9a90fb56.js} +1 -1
- package/dist/zonos-elements/{p-d5a9dfc7.entry.js → p-9bdcd7b6.entry.js} +1 -1
- package/dist/zonos-elements/{p-edbea8df.system.js → p-9db2f9d1.system.js} +1 -1
- package/dist/zonos-elements/p-a144d26a.system.entry.js +1 -0
- package/dist/zonos-elements/{p-93e51987.system.entry.js → p-a2f71e4f.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-6181f2d5.entry.js → p-ad499520.entry.js} +1 -1
- package/dist/zonos-elements/{p-e4e1ca2f.system.entry.js → p-b4c23bb5.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-315c1fc2.entry.js → p-b62aee3d.entry.js} +1 -1
- package/dist/zonos-elements/{p-e969cec9.entry.js → p-b8718429.entry.js} +1 -1
- package/dist/zonos-elements/{p-25fbcefe.system.entry.js → p-ba5596ae.system.entry.js} +1 -1
- package/dist/zonos-elements/p-beba218e.js +1 -0
- package/dist/zonos-elements/p-c7f11c60.entry.js +1 -0
- package/dist/zonos-elements/{p-febddb45.entry.js → p-d4222f1f.entry.js} +1 -1
- package/dist/zonos-elements/p-dde4c859.system.entry.js +1 -0
- package/dist/zonos-elements/p-e28ed57c.js +1 -0
- package/dist/zonos-elements/p-e3a3e376.entry.js +1 -0
- package/dist/zonos-elements/{p-a578facf.entry.js → p-e3de496a.entry.js} +1 -1
- package/dist/zonos-elements/{p-afcded5d.system.js → p-ed23a5df.system.js} +1 -1
- package/dist/zonos-elements/{p-e392e212.system.entry.js → p-ed597cc9.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-d0d12a64.entry.js → p-f1037168.entry.js} +1 -1
- package/dist/zonos-elements/{p-c6de2e40.system.entry.js → p-f42bffad.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-0b4910fe.system.entry.js → p-f62b49aa.system.entry.js} +1 -1
- package/dist/zonos-elements/p-fa3d0aea.js +1 -0
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/cart-5a88b4f3.js +0 -1
- package/dist/esm-es5/isColorVariable-91c33804.js +0 -1
- package/dist/esm-es5/submitGtag-289ddd8b.js +0 -1
- package/dist/esm-es5/zonos-button_3.entry.js +0 -1
- package/dist/esm-es5/zonos-cart-items_9.entry.js +0 -1
- package/dist/zonos-elements/p-144f4d31.entry.js +0 -1
- package/dist/zonos-elements/p-4569bc92.js +0 -1
- package/dist/zonos-elements/p-49a5be72.js +0 -1
- package/dist/zonos-elements/p-4c414a92.js +0 -1
- package/dist/zonos-elements/p-5c991faa.system.entry.js +0 -1
- package/dist/zonos-elements/p-691d8075.entry.js +0 -1
- package/dist/zonos-elements/p-723628b7.js +0 -1
- package/dist/zonos-elements/p-87c4ac09.system.entry.js +0 -1
- package/dist/zonos-elements/p-9f532a3f.entry.js +0 -1
- package/dist/zonos-elements/p-afc0460d.entry.js +0 -1
- package/dist/zonos-elements/p-ca6b4c1e.system.entry.js +0 -1
- package/dist/zonos-elements/p-d2885590.system.js +0 -1
- package/dist/zonos-elements/p-d7690752.system.entry.js +0 -1
- package/dist/zonos-elements/p-d9c65636.system.js +0 -1
- package/dist/zonos-elements/p-dd153a4e.entry.js +0 -1
- package/dist/zonos-elements/p-def8823e.entry.js +0 -1
- package/dist/zonos-elements/p-e4749f19.js +0 -1
- package/dist/zonos-elements/p-e87e8c9c.system.entry.js +0 -1
- package/dist/zonos-elements/p-f1170e7b.entry.js +0 -1
- package/dist/zonos-elements/p-fe0930e4.system.entry.js +0 -1
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-564fe383.js');
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
7
|
-
const cart = require('./cart-
|
|
6
|
+
const zonosStore = require('./zonosStore-bd2a0c59.js');
|
|
7
|
+
const cart = require('./cart-b34c001b.js');
|
|
8
8
|
const classes = require('./classes-b7918f56.js');
|
|
9
9
|
const getHasMoreSpaceOnRight = require('./getHasMoreSpaceOnRight-4c94667f.js');
|
|
10
|
-
require('./isDarkColor-
|
|
11
|
-
require('./getBorderRadius-
|
|
10
|
+
require('./isDarkColor-7faf0a82.js');
|
|
11
|
+
require('./getBorderRadius-4fa738c3.js');
|
|
12
12
|
|
|
13
13
|
var root = zonosStore._root;
|
|
14
14
|
|
|
@@ -661,6 +661,8 @@ const ZonosHello = class {
|
|
|
661
661
|
this.helloRef.setAttribute('data-zonos-hello-loaded', '');
|
|
662
662
|
this.updateHelloOnPageChange();
|
|
663
663
|
this.watchPriceChange();
|
|
664
|
+
// update theme to browser preference theme if appearance theme is system
|
|
665
|
+
this.handleAppearanceSettingsOverrideChange();
|
|
664
666
|
clearInterval(initInterval);
|
|
665
667
|
}
|
|
666
668
|
}, 100);
|
|
@@ -707,6 +709,13 @@ const ZonosHello = class {
|
|
|
707
709
|
handleResize() {
|
|
708
710
|
debounce_1(this.render.bind(this), RESIZE_DEBOUNCE_DELAY_MS);
|
|
709
711
|
}
|
|
712
|
+
handleAppearanceSettingsOverrideChange() {
|
|
713
|
+
var _a;
|
|
714
|
+
if ((_a = this.appearanceSettingsOverride) === null || _a === void 0 ? void 0 : _a.theme) {
|
|
715
|
+
// update theme to browser preference theme if appearance theme is system
|
|
716
|
+
this.appearanceSettingsOverride.theme = zonosStore.getZonosStoreTheme(this.appearanceSettingsOverride.theme);
|
|
717
|
+
}
|
|
718
|
+
}
|
|
710
719
|
render() {
|
|
711
720
|
var _a, _b;
|
|
712
721
|
const isExcludedUrl = (_a = zonosStore.zonosStore.helloSettings.excludedUrlPatterns) === null || _a === void 0 ? void 0 : _a.some(pattern => new RegExp(pattern).test(window.location.href));
|
|
@@ -746,6 +755,9 @@ const ZonosHello = class {
|
|
|
746
755
|
'zonos--hello-dialog-wrapper-mobile-override',
|
|
747
756
|
]), style: { height: this.showDialog ? 'fit-content' : '0px' } }, index.h("zonos-hello-dialog", { animateFromLeftOverride: this.animateFromLeftOverride, appearanceSettings: appearanceSettings, isOpen: this.showDialog, mobileLocationOverride: this.mobileLocationOverride, restrictedItems: restrictedItemsOnPage, setIsOpen: this.changeShowDialog }))))));
|
|
748
757
|
}
|
|
758
|
+
static get watchers() { return {
|
|
759
|
+
"appearanceSettingsOverride": ["handleAppearanceSettingsOverrideChange"]
|
|
760
|
+
}; }
|
|
749
761
|
};
|
|
750
762
|
ZonosHello.style = ZonosHelloStyle0;
|
|
751
763
|
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-564fe383.js');
|
|
6
|
+
const zonosStore = require('./zonosStore-bd2a0c59.js');
|
|
7
|
+
const isColorVariable = require('./isColorVariable-fff5e469.js');
|
|
8
|
+
|
|
9
|
+
const zonosIconCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--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{display:-ms-inline-flexbox;display:inline-flex}:host svg{width:var(--width);height:var(--height);fill:var(--color);color:var(--color)}";
|
|
10
|
+
const ZonosIconStyle0 = zonosIconCss;
|
|
11
|
+
|
|
12
|
+
const ZonosIcon = class {
|
|
13
|
+
constructor(hostRef) {
|
|
14
|
+
index.registerInstance(this, hostRef);
|
|
15
|
+
this.autoHeight = false;
|
|
16
|
+
this.iconColor = 'gray-1200';
|
|
17
|
+
this.content = undefined;
|
|
18
|
+
this.size = 24;
|
|
19
|
+
}
|
|
20
|
+
render() {
|
|
21
|
+
if (!this.content || !this.el.shadowRoot) {
|
|
22
|
+
return null;
|
|
23
|
+
}
|
|
24
|
+
const iconColor = isColorVariable.isColorVariable(this.iconColor)
|
|
25
|
+
? `var(--amino-${this.iconColor})`
|
|
26
|
+
: this.iconColor;
|
|
27
|
+
this.el.shadowRoot.innerHTML = this.content;
|
|
28
|
+
return (index.h(index.Host, { class: "zonos--elements", style: {
|
|
29
|
+
'--color': iconColor,
|
|
30
|
+
'--font-family': zonosStore.zonosStoreFontFamily(),
|
|
31
|
+
'--height': `${this.autoHeight ? 'auto' : `${this.size}px`}`,
|
|
32
|
+
'--width': `${this.size}px`,
|
|
33
|
+
} }));
|
|
34
|
+
}
|
|
35
|
+
get el() { return index.getElement(this); }
|
|
36
|
+
};
|
|
37
|
+
ZonosIcon.style = ZonosIconStyle0;
|
|
38
|
+
|
|
39
|
+
exports.zonos_icon = ZonosIcon;
|
|
@@ -16,7 +16,7 @@ const ZonosLink = class {
|
|
|
16
16
|
this.linkTitle = undefined;
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
|
-
return (index.h(index.Host, { key: '
|
|
19
|
+
return (index.h(index.Host, { key: 'b4def20f1c697c437e98c35e7355e84bfea88be2', class: "zonos--elements" }, index.h("a", { key: '8bb78fc9f3a38256cc3e7cda104c7eec1c93d185', href: this.href, rel: this.rel, target: this.target, title: this.linkTitle }, index.h("slot", { key: '897301f324059f6917a71f9ed444ddae32535485' }))));
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
22
|
ZonosLink.style = ZonosLinkStyle0;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-564fe383.js');
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
6
|
+
const zonosStore = require('./zonosStore-bd2a0c59.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
8
|
|
|
9
9
|
const zonosLogoCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--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{display:-ms-inline-flexbox;display:inline-flex}:host img{-webkit-filter:var(--filter-color);filter:var(--filter-color);width:var(--width)}";
|
|
@@ -19,11 +19,11 @@ const ZonosLogo = class {
|
|
|
19
19
|
const filterColor = this.theme === 'DARK'
|
|
20
20
|
? 'invert(100%) sepia(100%) saturate(0%) hue-rotate(288deg) brightness(102%) contrast(102%)'
|
|
21
21
|
: 'whiteinvert(0%) sepia(100%) saturate(32%) hue-rotate(92deg) brightness(107%) contrast(107%)';
|
|
22
|
-
return (index.h(index.Host, { key: '
|
|
22
|
+
return (index.h(index.Host, { key: '483016f5ffe43ea7742e895b5335212da6ec1d18', class: classes.classes(['zonos--elements zonos--logo']), style: {
|
|
23
23
|
'--filter-color': filterColor,
|
|
24
24
|
'--font-family': zonosStore.zonosStoreFontFamily(),
|
|
25
25
|
'--width': this.width,
|
|
26
|
-
} }, index.h("img", { key: '
|
|
26
|
+
} }, index.h("img", { key: 'aed23717de194da43d48ee7b068f3e7568c0bbb3', alt: "Zonos Logo", src: index.getAssetPath('./assets/ZonosLogo.png') })));
|
|
27
27
|
}
|
|
28
28
|
static get assetsDirs() { return ["assets"]; }
|
|
29
29
|
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-564fe383.js');
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
6
|
+
const zonosStore = require('./zonosStore-bd2a0c59.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
8
|
|
|
9
9
|
const zonosNotificationCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--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{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}:host .zonos--notification-items{position:fixed;z-index:9999999;bottom:var(--amino-space-24);gap:var(--amino-space-8);display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column}:host .zonos--notification-item{cursor:pointer;-webkit-transition:all 0.3s ease;transition:all 0.3s ease;padding:var(--amino-space-8);border-radius:var(--border-radius, var(--amino-radius-6));opacity:0;-ms-flex-negative:0.0001;flex-shrink:0.0001;-webkit-transform:translateY(100%);transform:translateY(100%)}:host .zonos--notification-item+:host .zonos--notification-item{margin-top:8px}:host .zonos--notification-item.show{opacity:1;-webkit-transform:translateY(0);transform:translateY(0);-ms-flex-positive:1000;flex-grow:1000}:host .zonos--notification-item.success{background-color:var(--amino-green-700)}:host .zonos--notification-item.error{background-color:var(--amino-red-700)}:host .zonos--notification-item.warning{background-color:var(--amino-orange-700)}";
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-564fe383.js');
|
|
6
|
-
const cart = require('./cart-
|
|
7
|
-
require('./zonosStore-
|
|
8
|
-
require('./isDarkColor-
|
|
9
|
-
require('./getBorderRadius-
|
|
6
|
+
const cart = require('./cart-b34c001b.js');
|
|
7
|
+
require('./zonosStore-bd2a0c59.js');
|
|
8
|
+
require('./isDarkColor-7faf0a82.js');
|
|
9
|
+
require('./getBorderRadius-4fa738c3.js');
|
|
10
10
|
|
|
11
11
|
const zonosPaymentCss = ".sc-zonos-payment-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-payment-h *.sc-zonos-payment{font-family:var(--font-family, Inter), Inter}.sc-zonos-payment-h img.sc-zonos-payment{max-width:100%}.sc-zonos-payment-h dl.sc-zonos-payment,.sc-zonos-payment-h dd.sc-zonos-payment,.sc-zonos-payment-h h1.sc-zonos-payment,.sc-zonos-payment-h h2.sc-zonos-payment,.sc-zonos-payment-h h3.sc-zonos-payment,.sc-zonos-payment-h h4.sc-zonos-payment,.sc-zonos-payment-h h5.sc-zonos-payment,.sc-zonos-payment-h h6.sc-zonos-payment,.sc-zonos-payment-h hr.sc-zonos-payment,.sc-zonos-payment-h figure.sc-zonos-payment,.sc-zonos-payment-h p.sc-zonos-payment,.sc-zonos-payment-h pre.sc-zonos-payment{margin:0}.sc-zonos-payment-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-payment-h .zonos--title.sc-zonos-payment{margin-bottom:var(--amino-space-16)}";
|
|
12
12
|
const ZonosPaymentStyle0 = zonosPaymentCss;
|
|
@@ -44,7 +44,7 @@ const ZonosPayment = class {
|
|
|
44
44
|
}
|
|
45
45
|
render() {
|
|
46
46
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
47
|
-
return (index.h(index.Host, { key: '
|
|
47
|
+
return (index.h(index.Host, { key: 'db50fedad509b3bc972cfe02d5973a3c93a6eb23', class: "zonos--payment zonos--elements" }, this.titleText && (index.h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), index.h("div", { key: 'a773ce78377a70c57577eb1efdac9d2563d1a60d', class: "zonos--payment-component" })));
|
|
48
48
|
}
|
|
49
49
|
get el() { return index.getElement(this); }
|
|
50
50
|
static get watchers() { return {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-564fe383.js');
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
6
|
+
const zonosStore = require('./zonosStore-bd2a0c59.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
8
|
|
|
9
9
|
const RemoveIcon = `<svg xmlns="https://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path fill="#C5C6CA" fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z" clip-rule="evenodd"/><path fill="#4D505A" fill-rule="evenodd" d="M8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414Z" clip-rule="evenodd"/></svg>`;
|
|
@@ -18,9 +18,9 @@ const ZonosSelectDialogHeader = class {
|
|
|
18
18
|
this.label = '';
|
|
19
19
|
}
|
|
20
20
|
render() {
|
|
21
|
-
return (index.h(index.Host, { key: '
|
|
21
|
+
return (index.h(index.Host, { key: 'e7867deee86e4a155c21db2618eafd6f3c6cea3b', class: "zonos--elements", style: {
|
|
22
22
|
'--font-family': zonosStore.zonosStoreFontFamily(),
|
|
23
|
-
} }, index.h("zonos-v-stack", { key: '
|
|
23
|
+
} }, index.h("zonos-v-stack", { key: 'f7aedb0f819b61da26afd53add628bcddcca5d8a', class: "zonos--select-dialog-header-wrapper", spacing: 8 }, index.h("div", { key: '7ec77c24a440a5d42965f657502506c769d3098c', class: "zonos--select-dialog-header" }, index.h("zonos-text", { key: 'bab0ffc53edd20840438e82c0067c1eae8f13ec7', type: "boldLabel" }, this.label), index.h("zonos-button", { key: 'a85fc2b745b25c07bcccfe60eb1f1e722c7999c2', class: "zonos--close-button", icon: index.h("zonos-icon", { "aria-label": "Close select dialog", content: RemoveIcon, size: 20 }), noBackground: true, onClick: () => this.handleOnClose() })), index.h("slot", { key: 'fe932e62edd5f679061c76a62650885d4337363c' }))));
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
26
|
ZonosSelectDialogHeader.style = ZonosSelectDialogHeaderStyle0;
|
|
@@ -34,9 +34,9 @@ const VStack = class {
|
|
|
34
34
|
this.spacing = 24;
|
|
35
35
|
}
|
|
36
36
|
render() {
|
|
37
|
-
return (index.h(index.Host, { key: '
|
|
37
|
+
return (index.h(index.Host, { key: '3d9977f4c55f7f1047ec94dcc3a3c40105559c00', style: {
|
|
38
38
|
'--font-family': zonosStore.zonosStoreFontFamily(),
|
|
39
|
-
} }, index.h("div", { key: '
|
|
39
|
+
} }, index.h("div", { key: 'aa910d4f9a11d3d1a66836aed442726241b73273', class: classes.classes(['vstack']), style: { 'grid-row-gap': `${this.spacing}px` } }, index.h("slot", { key: 'ec50cc05f71018b4b6fef1288f1371ddde030a3a' }))));
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
42
|
VStack.style = ZonosVStackStyle0;
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-564fe383.js');
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
6
|
+
const zonosStore = require('./zonosStore-bd2a0c59.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
|
-
const getBorderRadius = require('./getBorderRadius-
|
|
9
|
-
const isColorVariable = require('./isColorVariable-
|
|
8
|
+
const getBorderRadius = require('./getBorderRadius-4fa738c3.js');
|
|
9
|
+
const isColorVariable = require('./isColorVariable-fff5e469.js');
|
|
10
10
|
|
|
11
11
|
const zonosShippingRichRadioCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--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{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host input{margin:0;accent-color:var(--selected-border-color, var(--amino-blue-600))}:host .zonos--shipping-rich-radio-item{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;padding:var(--amino-space-16);-ms-flex-align:center;align-items:center;gap:var(--amino-space-16);cursor:pointer;border:1px solid var(--amino-gray-200)}:host .zonos--shipping-rich-radio-item:first-child{border-top-left-radius:var(--border-radius, var(--amino-radius-10));border-top-right-radius:var(--border-radius, var(--amino-radius-10))}:host .zonos--shipping-rich-radio-item:last-child{border-bottom-right-radius:var(--border-radius, var(--amino-radius-10));border-bottom-left-radius:var(--border-radius, var(--amino-radius-10))}:host .zonos--shipping-rich-radio-item:not(:last-child){border-bottom:none}:host .zonos--shipping-rich-radio-item.selected{outline:1px solid var(--selected-border-color, var(--amino-blue-600));outline-offset:-1px}:host .zonos--shipping-info{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex:1;flex:1}:host .zonos--shipping-detail{-ms-flex:1;flex:1}:host .zonos--sub-detail{display:-ms-inline-flexbox;display:inline-flex;gap:8px;-ms-flex-wrap:wrap;flex-wrap:wrap}";
|
|
12
12
|
const ZonosShippingRichRadioStyle0 = zonosShippingRichRadioCss;
|
|
@@ -34,11 +34,20 @@ const ZonosShippingRichRadio = class {
|
|
|
34
34
|
this.borderColor = undefined;
|
|
35
35
|
this.borderStyle = undefined;
|
|
36
36
|
this.theme = undefined;
|
|
37
|
+
this.initialSelectedValue = undefined;
|
|
37
38
|
this.selectedItem = null;
|
|
38
39
|
}
|
|
40
|
+
componentWillLoad() {
|
|
41
|
+
// Set initial selected item
|
|
42
|
+
if (this.initialSelectedValue) {
|
|
43
|
+
this.selectedItem =
|
|
44
|
+
this.items.find(item => item.value === this.initialSelectedValue) ||
|
|
45
|
+
null;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
39
48
|
render() {
|
|
40
49
|
var _a;
|
|
41
|
-
return (index.h(index.Host, { key: '
|
|
50
|
+
return (index.h(index.Host, { key: 'a1c2ace211e4d0b9d63a784028cc725bab7229e7', class: "zonos--shipping-rich-radio zonos--elements", "data-theme": this.theme, style: Object.assign(Object.assign({}, this.getRadioItemStyleVariables()), { '--font-family': zonosStore.zonosStoreFontFamily() }) }, (_a = this.items) === null || _a === void 0 ? void 0 : _a.map(item => {
|
|
42
51
|
var _a;
|
|
43
52
|
const selected = ((_a = this.selectedItem) === null || _a === void 0 ? void 0 : _a.value) === item.value;
|
|
44
53
|
return (index.h("div", { "aria-hidden": "true", class: classes.classes([
|
|
@@ -3,8 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-564fe383.js');
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
6
|
+
const zonosStore = require('./zonosStore-bd2a0c59.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
|
+
const isColorVariable = require('./isColorVariable-fff5e469.js');
|
|
8
9
|
|
|
9
10
|
const textOptions = {
|
|
10
11
|
pageHeader: {
|
|
@@ -130,6 +131,9 @@ const ZonosText = class {
|
|
|
130
131
|
const textSize = this.size || size || defaultSize;
|
|
131
132
|
const textWeight = this.weight || weight || defaultWeight;
|
|
132
133
|
const textTag = tag || defaultTag;
|
|
134
|
+
const actualTextColor = isColorVariable.isColorVariable(this.textColor)
|
|
135
|
+
? `var(--amino-${this.textColor})`
|
|
136
|
+
: this.textColor;
|
|
133
137
|
const renderText = () => {
|
|
134
138
|
switch (textTag) {
|
|
135
139
|
case 'h2':
|
|
@@ -149,7 +153,7 @@ const ZonosText = class {
|
|
|
149
153
|
`zonos--text-size-${textSize}`,
|
|
150
154
|
`zonos--text-weight-${textWeight}`,
|
|
151
155
|
]), style: {
|
|
152
|
-
'--color':
|
|
156
|
+
'--color': actualTextColor,
|
|
153
157
|
'--font-family': zonosStore.zonosStoreFontFamily(),
|
|
154
158
|
} }, renderText()));
|
|
155
159
|
}
|
|
@@ -2761,7 +2761,7 @@ const mergeConfig = (defaultObj, fetchedObj, ...overrideObj) => {
|
|
|
2761
2761
|
|
|
2762
2762
|
const { reset, state: zonosStore } = createStore(() => ({
|
|
2763
2763
|
appearance: {
|
|
2764
|
-
colorPrimary: '
|
|
2764
|
+
colorPrimary: 'white',
|
|
2765
2765
|
fontFamily: 'Inter',
|
|
2766
2766
|
logoUrl: '',
|
|
2767
2767
|
style: 'ROUNDED',
|
|
@@ -2833,6 +2833,17 @@ const { reset, state: zonosStore } = createStore(() => ({
|
|
|
2833
2833
|
zonosApiKey: '',
|
|
2834
2834
|
}));
|
|
2835
2835
|
let savedZonosSettings = null;
|
|
2836
|
+
/**
|
|
2837
|
+
* Get theme from media query if theme is SYSTEM, otherwise return the theme
|
|
2838
|
+
*/
|
|
2839
|
+
const getZonosStoreTheme = (theme) => {
|
|
2840
|
+
if (theme === 'SYSTEM') {
|
|
2841
|
+
return window.matchMedia('(prefers-color-scheme: dark)').matches
|
|
2842
|
+
? 'DARK'
|
|
2843
|
+
: 'LIGHT';
|
|
2844
|
+
}
|
|
2845
|
+
return theme;
|
|
2846
|
+
};
|
|
2836
2847
|
/**
|
|
2837
2848
|
* Init setting from zonos setting
|
|
2838
2849
|
*/
|
|
@@ -2843,9 +2854,15 @@ const zonosStoreInitSetting = ({ overrideSettings, zonosSettings, }) => {
|
|
|
2843
2854
|
// save zonos settings to be used later
|
|
2844
2855
|
savedZonosSettings = zonosSettings;
|
|
2845
2856
|
}
|
|
2846
|
-
|
|
2857
|
+
const mergedAppearanceConfig = mergeConfig(zonosStore.appearance, (savedZonosSettings === null || savedZonosSettings === void 0 ? void 0 : savedZonosSettings.appearanceSettings) ||
|
|
2847
2858
|
(zonosSettings === null || zonosSettings === void 0 ? void 0 : zonosSettings.appearanceSettings) ||
|
|
2848
2859
|
null, overrideSettings === null || overrideSettings === void 0 ? void 0 : overrideSettings.appearance);
|
|
2860
|
+
// override the theme to user browser preferences if it is set to SYSTEM
|
|
2861
|
+
if (mergedAppearanceConfig.theme === 'SYSTEM') {
|
|
2862
|
+
// update theme to user browser preferences
|
|
2863
|
+
mergedAppearanceConfig.theme = getZonosStoreTheme(mergedAppearanceConfig.theme);
|
|
2864
|
+
}
|
|
2865
|
+
zonosStore.appearance = mergedAppearanceConfig;
|
|
2849
2866
|
zonosStore.checkoutSettings = mergeConfig(zonosStore.checkoutSettings, (savedZonosSettings === null || savedZonosSettings === void 0 ? void 0 : savedZonosSettings.checkoutSettings) ||
|
|
2850
2867
|
(zonosSettings === null || zonosSettings === void 0 ? void 0 : zonosSettings.checkoutSettings) ||
|
|
2851
2868
|
null, overrideSettings === null || overrideSettings === void 0 ? void 0 : overrideSettings.checkoutSettings);
|
|
@@ -2866,6 +2883,7 @@ exports._baseGetTag = _baseGetTag;
|
|
|
2866
2883
|
exports._root = _root;
|
|
2867
2884
|
exports.commonjsGlobal = commonjsGlobal;
|
|
2868
2885
|
exports.createStore = createStore;
|
|
2886
|
+
exports.getZonosStoreTheme = getZonosStoreTheme;
|
|
2869
2887
|
exports.isObjectLike_1 = isObjectLike_1;
|
|
2870
2888
|
exports.isObject_1 = isObject_1;
|
|
2871
2889
|
exports.mergeConfig = mergeConfig;
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"components/common/zonos-button/zonos-button.js",
|
|
19
19
|
"components/common/zonos-card/zonos-card.js",
|
|
20
20
|
"components/common/zonos-checkbox/zonos-checkbox.js",
|
|
21
|
+
"components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js",
|
|
21
22
|
"components/common/zonos-collapse/zonos-collapse.js",
|
|
22
23
|
"components/common/zonos-country-flag/zonos-country-flag.js",
|
|
23
24
|
"components/common/zonos-country-select/zonos-country-select.js",
|
|
@@ -4,6 +4,7 @@ import { stripeStore, stripeStoreReset, stripeStoreRetrievePayment, } from "../.
|
|
|
4
4
|
import { translate } from "../../../store/translationStore";
|
|
5
5
|
import { zonosStore } from "../../../store/zonosStore";
|
|
6
6
|
import { trackConversionEvent } from "../../../utils/api/trackConversionEvent";
|
|
7
|
+
import { createCustomEvent } from "../../../utils/createCustomEvent";
|
|
7
8
|
import { getBorderRadius } from "../../../utils/getBorderRadius";
|
|
8
9
|
import { handleFetch } from "../../../utils/handleFetch";
|
|
9
10
|
import { sendErrorLog } from "../../../utils/logging/sendErrorLog";
|
|
@@ -101,10 +102,8 @@ export class ZonosCheckoutFinish {
|
|
|
101
102
|
void trackConversionEvent('checkout_paymentInfoCompleted', {
|
|
102
103
|
paymentMethod,
|
|
103
104
|
});
|
|
104
|
-
const successEvent =
|
|
105
|
-
|
|
106
|
-
message: 'Zonos Checkout successfully processed order',
|
|
107
|
-
},
|
|
105
|
+
const successEvent = createCustomEvent('zonos-checkout-success', {
|
|
106
|
+
message: 'Zonos Checkout successfully processed order',
|
|
108
107
|
});
|
|
109
108
|
document.dispatchEvent(successEvent);
|
|
110
109
|
}
|
|
@@ -154,7 +153,7 @@ export class ZonosCheckoutFinish {
|
|
|
154
153
|
// const totalItems = this.order?.items?.reduce((acc, item) => {
|
|
155
154
|
// return acc + item.quantity;
|
|
156
155
|
// }, 0);
|
|
157
|
-
return (h(Host, { key: '
|
|
156
|
+
return (h(Host, { key: '8c2087b3a0578cbbd7979fff5e6b696a4325e548', class: "zonos--checkout-finish zonos--elements", style: {
|
|
158
157
|
'--border-radius': getBorderRadius(this.borderRadius),
|
|
159
158
|
} }, this.isLoading && (h("div", { class: "loading-wrapper" }, h("zonos-spinner", null))), !this.isLoading && (h(Fragment, null, h("div", { class: "zonos--group" }, this.notificationType === 'success' ? (h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon, iconColor: 'red-800', size: 50 })), h("zonos-text", { class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), h("zonos-text", null, this.notificationMessages.map(message => (h(Fragment, null, message, h("br", null))))), h("zonos-button", { onClick: () => this.closeClickHandler(), size: "md", variant: "primary" }, translate('Keep shopping')))))));
|
|
160
159
|
}
|
|
@@ -31,18 +31,23 @@
|
|
|
31
31
|
-webkit-font-smoothing: antialiased;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
:host
|
|
34
|
+
:host {
|
|
35
35
|
position: absolute;
|
|
36
|
-
bottom:
|
|
36
|
+
bottom: -50px;
|
|
37
37
|
left: 0;
|
|
38
38
|
right: 0;
|
|
39
|
+
display: flex;
|
|
40
|
+
justify-content: center;
|
|
41
|
+
align-items: center;
|
|
42
|
+
z-index: 2;
|
|
43
|
+
}
|
|
44
|
+
:host .zonos--checkout-footer {
|
|
45
|
+
width: calc(90vw - 22px);
|
|
39
46
|
gap: var(--amino-space-16);
|
|
40
47
|
display: flex;
|
|
41
48
|
justify-content: space-between;
|
|
42
|
-
border-top: var(--amino-border);
|
|
43
49
|
padding: var(--amino-space-12);
|
|
44
50
|
align-items: center;
|
|
45
|
-
background: var(--amino-surface-color-secondary);
|
|
46
51
|
}
|
|
47
52
|
:host .zonos--checkout-footer .zonos--checkout-footer-icon-wrapper {
|
|
48
53
|
display: flex;
|
|
@@ -50,7 +55,7 @@
|
|
|
50
55
|
gap: var(--amino-space-8);
|
|
51
56
|
}
|
|
52
57
|
:host .zonos--checkout-footer .zonos--checkout-footer-icon-wrapper a {
|
|
53
|
-
line-height:
|
|
58
|
+
line-height: 0;
|
|
54
59
|
}
|
|
55
60
|
:host .zonos--checkout-footer zonos-button button.outline {
|
|
56
61
|
outline: 1px solid var(--amino-gray-800);
|
|
@@ -106,21 +111,26 @@
|
|
|
106
111
|
opacity: 1;
|
|
107
112
|
transform: scale(1);
|
|
108
113
|
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
114
|
+
|
|
115
|
+
:host(.mobile) {
|
|
116
|
+
flex-direction: column;
|
|
117
|
+
gap: var(--amino-space-32);
|
|
118
|
+
background: var(--amino-gray-0);
|
|
119
|
+
position: relative;
|
|
120
|
+
padding-top: var(--amino-space-24);
|
|
121
|
+
bottom: 0;
|
|
122
|
+
}
|
|
123
|
+
:host(.mobile) .zonos--checkout-footer {
|
|
124
|
+
flex-direction: column;
|
|
125
|
+
}
|
|
126
|
+
:host(.mobile) .zonos--checkout-locale-wrapper {
|
|
127
|
+
flex-direction: column;
|
|
128
|
+
}
|
|
129
|
+
:host(.mobile) .zonos--checkout-footer-dialog {
|
|
130
|
+
position: fixed;
|
|
131
|
+
left: 0;
|
|
132
|
+
right: 0;
|
|
133
|
+
bottom: 0;
|
|
134
|
+
transform-origin: bottom center;
|
|
135
|
+
width: 100vw;
|
|
126
136
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { h, Host } from "@stencil/core";
|
|
1
|
+
import { h, Host, } from "@stencil/core";
|
|
2
2
|
import { localizationStore } from "../../../store/hello/localization";
|
|
3
|
-
import {
|
|
3
|
+
import { isCheckoutMobile } from "../../../utils/checkout/isCheckoutMobile";
|
|
4
4
|
import { classes } from "../../../utils/classes";
|
|
5
|
-
import { isDarkColor } from "../../../utils/isDarkColor";
|
|
6
5
|
import { languages } from "../../../../types/ILanguage";
|
|
7
6
|
// eslint-disable-next-line no-relative-import-paths/no-relative-import-paths
|
|
8
7
|
import Globe from "./assets/globe.svg";
|
|
@@ -10,25 +9,34 @@ import Globe from "./assets/globe.svg";
|
|
|
10
9
|
import ZonosIcon from "./assets/zonosIcon.svg";
|
|
11
10
|
export class ZonosCheckoutFooter {
|
|
12
11
|
constructor() {
|
|
13
|
-
this.
|
|
12
|
+
this.mobile = false;
|
|
13
|
+
this.dataTheme = undefined;
|
|
14
|
+
this.showLanguageDialog = false;
|
|
15
|
+
this.isMobile = false;
|
|
14
16
|
}
|
|
15
17
|
handleGlobalClick(e) {
|
|
16
|
-
if (!this.el.contains(e.target) && this.
|
|
17
|
-
this.
|
|
18
|
+
if (!this.el.contains(e.target) && this.showLanguageDialog) {
|
|
19
|
+
this.showLanguageDialog = false;
|
|
18
20
|
}
|
|
19
21
|
}
|
|
20
|
-
|
|
21
|
-
this.
|
|
22
|
+
toggleLanguageDialog() {
|
|
23
|
+
this.showLanguageDialog = !this.showLanguageDialog;
|
|
24
|
+
}
|
|
25
|
+
handleMobileChange() {
|
|
26
|
+
this.isMobile = isCheckoutMobile(this.mobile);
|
|
27
|
+
}
|
|
28
|
+
componentWillLoad() {
|
|
29
|
+
this.isMobile = isCheckoutMobile(this.mobile);
|
|
22
30
|
}
|
|
23
31
|
render() {
|
|
24
|
-
var _a
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
const
|
|
28
|
-
return (h(Host, { key: '
|
|
32
|
+
var _a;
|
|
33
|
+
const languageLabel = (_a = languages.find(x => x.code === localizationStore.selectedLocale)) === null || _a === void 0 ? void 0 : _a.label;
|
|
34
|
+
// reverse color when on desktop. With the coversheet backdrop, the color should be white
|
|
35
|
+
const colorDesktop = this.dataTheme === 'LIGHT' && !this.mobile ? 'gray-0' : 'gray-1200';
|
|
36
|
+
return (h(Host, { key: '2ce26e27b7c90b4d37f26197821ed1a39ddb9fae', class: classes(['zonos--elements', this.isMobile && 'mobile']) }, h("div", { key: '5f52ec7b5ad1659ceb9d2edb4661e5995b72afaf', class: "zonos--checkout-footer" }, h("div", { key: '5d127f033702bff94cc2db76b4695a03055ec783', class: "zonos--checkout-locale-wrapper" }, h("zonos-button", { key: '701b5014848ea716f7dcc22221b453146af92962', buttonColor: colorDesktop, class: "zonos--checkout-footer-language-button", icon: h("zonos-icon", { "aria-label": "Language select", content: Globe, iconColor: colorDesktop }), onClick: () => this.toggleLanguageDialog(), variant: "subtle" }, languageLabel), h("div", { key: 'e2a319113905bd76473aef822780521f2be58405', class: classes([
|
|
29
37
|
'zonos--checkout-footer-dialog',
|
|
30
|
-
this.
|
|
31
|
-
]) }, h("zonos-language-select", { key: '
|
|
38
|
+
this.showLanguageDialog && 'zonos--checkout-footer-dialog-open',
|
|
39
|
+
]) }, h("zonos-language-select", { key: '4fb9860a4547541f3947d349ab6056e899335952', handleOnClose: () => this.toggleLanguageDialog() }))), h("div", { key: '0a348521a7ccecc23a7a69019940c2421bb8420c', class: "zonos--checkout-footer-icon-wrapper" }, h("zonos-text", { key: '9adf4c24fcf1b5d0827556e9e68006860b0bb9c4', textColor: colorDesktop, type: "caption" }, "Powered by"), h("a", { key: 'a3f957e10d14d68d3973169470a21fdabb2f7a06', href: "https://zonos.com", target: "_blank", title: "Zonos website" }, h("zonos-icon", { key: '49592d8302447d007dc840de18fa78af7898f382', autoHeight: true, content: ZonosIcon, iconColor: colorDesktop, size: 108 }))))));
|
|
32
40
|
}
|
|
33
41
|
static get is() { return "zonos-checkout-footer"; }
|
|
34
42
|
static get encapsulation() { return "shadow"; }
|
|
@@ -42,12 +50,64 @@ export class ZonosCheckoutFooter {
|
|
|
42
50
|
"$": ["zonos-checkout-footer.css"]
|
|
43
51
|
};
|
|
44
52
|
}
|
|
53
|
+
static get properties() {
|
|
54
|
+
return {
|
|
55
|
+
"mobile": {
|
|
56
|
+
"type": "boolean",
|
|
57
|
+
"mutable": false,
|
|
58
|
+
"complexType": {
|
|
59
|
+
"original": "boolean",
|
|
60
|
+
"resolved": "boolean",
|
|
61
|
+
"references": {}
|
|
62
|
+
},
|
|
63
|
+
"required": false,
|
|
64
|
+
"optional": false,
|
|
65
|
+
"docs": {
|
|
66
|
+
"tags": [],
|
|
67
|
+
"text": "Override mobile mode"
|
|
68
|
+
},
|
|
69
|
+
"attribute": "mobile",
|
|
70
|
+
"reflect": false,
|
|
71
|
+
"defaultValue": "false"
|
|
72
|
+
},
|
|
73
|
+
"dataTheme": {
|
|
74
|
+
"type": "string",
|
|
75
|
+
"mutable": false,
|
|
76
|
+
"complexType": {
|
|
77
|
+
"original": "ElementsUiTheme",
|
|
78
|
+
"resolved": "\"DARK\" | \"LIGHT\" | \"SYSTEM\" | undefined",
|
|
79
|
+
"references": {
|
|
80
|
+
"ElementsUiTheme": {
|
|
81
|
+
"location": "import",
|
|
82
|
+
"path": "src/types/generated/graphql.customer.types",
|
|
83
|
+
"id": "src/types/generated/graphql.customer.types.ts::ElementsUiTheme"
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"required": false,
|
|
88
|
+
"optional": true,
|
|
89
|
+
"docs": {
|
|
90
|
+
"tags": [],
|
|
91
|
+
"text": "Theme to change the color of the logo"
|
|
92
|
+
},
|
|
93
|
+
"attribute": "data-theme",
|
|
94
|
+
"reflect": false
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
}
|
|
45
98
|
static get states() {
|
|
46
99
|
return {
|
|
47
|
-
"
|
|
100
|
+
"showLanguageDialog": {},
|
|
101
|
+
"isMobile": {}
|
|
48
102
|
};
|
|
49
103
|
}
|
|
50
104
|
static get elementRef() { return "el"; }
|
|
105
|
+
static get watchers() {
|
|
106
|
+
return [{
|
|
107
|
+
"propName": "mobile",
|
|
108
|
+
"methodName": "handleMobileChange"
|
|
109
|
+
}];
|
|
110
|
+
}
|
|
51
111
|
static get listeners() {
|
|
52
112
|
return [{
|
|
53
113
|
"name": "click",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
:host .zonos--content .zonos--left,
|
|
56
56
|
:host .zonos--content .zonos--right {
|
|
57
57
|
flex: 1;
|
|
58
|
-
padding: var(--amino-space-
|
|
58
|
+
padding: var(--amino-space-32);
|
|
59
59
|
}
|
|
60
60
|
:host .zonos--content .zonos--left {
|
|
61
61
|
background-color: var(--primary-color, var(--amino-gray-0));
|
|
@@ -96,9 +96,6 @@
|
|
|
96
96
|
display: flex;
|
|
97
97
|
flex-direction: column;
|
|
98
98
|
}
|
|
99
|
-
:host .zonos--left .zonos--back-button {
|
|
100
|
-
margin-bottom: var(--amino-space-24);
|
|
101
|
-
}
|
|
102
99
|
:host .zonos--left .zonos--wrapper {
|
|
103
100
|
padding: 0 var(--amino-space-8) var(--amino-space-8);
|
|
104
101
|
}
|
|
@@ -112,6 +109,7 @@
|
|
|
112
109
|
position: absolute;
|
|
113
110
|
right: var(--amino-space-24);
|
|
114
111
|
top: var(--amino-space-24);
|
|
112
|
+
z-index: 2;
|
|
115
113
|
}
|
|
116
114
|
:host .zonos--wrapper {
|
|
117
115
|
overflow: auto;
|