@zonos/elements 1.3.11-alpha.0 → 1.3.11-alpha.1
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-d9e9ecfc.js} +29 -25
- package/dist/cjs/{getBorderRadius-d795f526.js → getBorderRadius-9d619bf6.js} +1 -1
- package/dist/cjs/getContrastColor-af2386af.js +20 -0
- package/dist/cjs/{isColorVariable-41cacd82.js → isColorVariable-fff5e469.js} +1 -1
- package/dist/cjs/{isDarkColor-33fb96a7.js → isDarkColor-a68274cf.js} +2 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{submitGtag-586d3206.js → submitGtag-b7ef5d5b.js} +2 -2
- package/dist/cjs/zonos-address_4.cjs.entry.js +11 -11
- 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} +161 -48
- package/dist/cjs/zonos-checkout.cjs.entry.js +20 -22
- 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 +4 -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-21334303.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- 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 +15 -17
- 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 +3 -3
- 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 +102 -0
- package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +193 -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 +3 -28
- package/dist/collection/components/common/zonos-icon/zonos-icon.js +7 -3
- 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 +27 -1
- 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-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -2
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +1 -1
- 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/zonosStore.js +1 -1
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +1 -1
- 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/getContrastColor.js +16 -0
- package/dist/collection/components/utils/isColorVariable.js +1 -1
- package/dist/collection/components/utils/styles.js +12 -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 +27 -22
- package/dist/components/trackConversionEvent.js +1 -1
- package/dist/components/zonos-address2.js +1 -1
- 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 +1 -1
- 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 +44 -40
- 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 +1 -1
- 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 +1 -1
- package/dist/esm/{cart-5a88b4f3.js → cart-6cfd7560.js} +30 -25
- package/dist/esm/{getBorderRadius-5d750ab8.js → getBorderRadius-c5fb7746.js} +1 -1
- package/dist/esm/getContrastColor-a1a6f6aa.js +18 -0
- package/dist/esm/{isColorVariable-91c33804.js → isColorVariable-fbf2d80d.js} +1 -1
- package/dist/esm/{isDarkColor-c34dfed9.js → isDarkColor-810fcaa5.js} +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{submitGtag-289ddd8b.js → submitGtag-acca574d.js} +2 -2
- package/dist/esm/zonos-address_4.entry.js +11 -11
- 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} +161 -49
- package/dist/esm/zonos-checkout.entry.js +20 -22
- 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 +4 -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-e5f3d4da.js} +1 -1
- package/dist/esm-es5/{cart-5a88b4f3.js → cart-6cfd7560.js} +1 -1
- package/dist/esm-es5/{getBorderRadius-5d750ab8.js → getBorderRadius-c5fb7746.js} +1 -1
- package/dist/esm-es5/getContrastColor-a1a6f6aa.js +1 -0
- package/dist/esm-es5/isColorVariable-fbf2d80d.js +1 -0
- package/dist/esm-es5/{isDarkColor-c34dfed9.js → isDarkColor-810fcaa5.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{submitGtag-289ddd8b.js → submitGtag-acca574d.js} +1 -1
- 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-e5f3d4da.js} +1 -1
- 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 +0 -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-checkout-progress-tabs/zonos-checkout-progress-tabs.d.ts +29 -0
- package/dist/types/components/common/zonos-dialog/zonos-dialog.d.ts +0 -5
- package/dist/types/components/common/zonos-icon/zonos-icon.d.ts +3 -1
- 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 +5 -0
- package/dist/types/components/common/zonos-text/zonos-text.d.ts +3 -1
- package/dist/types/components/store/checkout/cart.d.ts +10 -1
- package/dist/types/components/utils/getContrastColor.d.ts +4 -0
- 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 +67 -14
- package/dist/zonos-elements/assets/TabCheckmark.svg +3 -0
- package/dist/zonos-elements/p-0b51de7b.system.entry.js +1 -0
- package/dist/zonos-elements/{p-d7690752.system.entry.js → p-0dfd549e.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c1e54094.system.js → p-0f414d6a.system.js} +1 -1
- package/dist/zonos-elements/{p-723628b7.js → p-0f8acb62.js} +1 -1
- package/dist/zonos-elements/{p-27d57265.system.entry.js → p-20b080d1.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-7e355496.system.entry.js → p-212992ec.system.entry.js} +1 -1
- package/dist/zonos-elements/p-22db99c9.system.entry.js +1 -0
- package/dist/zonos-elements/{p-14bf3658.entry.js → p-26aee7a0.entry.js} +1 -1
- package/dist/zonos-elements/{p-c6de2e40.system.entry.js → p-2d5a6a7f.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-ca6b4c1e.system.entry.js → p-2fdec8bc.system.entry.js} +1 -1
- package/dist/zonos-elements/p-352ba771.system.js +1 -0
- package/dist/zonos-elements/p-4051a42d.js +1 -0
- package/dist/zonos-elements/p-5162f4cc.system.entry.js +1 -0
- package/dist/zonos-elements/{p-d0d12a64.entry.js → p-51c32b3d.entry.js} +1 -1
- package/dist/zonos-elements/{p-4569bc92.js → p-55b8b98b.js} +1 -1
- package/dist/zonos-elements/p-59595553.entry.js +1 -0
- package/dist/zonos-elements/p-5a40684c.entry.js +1 -0
- package/dist/zonos-elements/{p-25fbcefe.system.entry.js → p-60ac5342.system.entry.js} +1 -1
- package/dist/zonos-elements/p-61e08de7.system.entry.js +1 -0
- package/dist/zonos-elements/{p-e969cec9.entry.js → p-65a877e2.entry.js} +1 -1
- package/dist/zonos-elements/{p-d2885590.system.js → p-66cc1554.system.js} +1 -1
- package/dist/zonos-elements/p-6a80f7f5.entry.js +1 -0
- package/dist/zonos-elements/{p-5f2cb4b6.entry.js → p-6daa64bf.entry.js} +1 -1
- package/dist/zonos-elements/{p-77727098.system.js → p-6db032ee.system.js} +1 -1
- package/dist/zonos-elements/{p-188ddbe2.entry.js → p-6dc606c6.entry.js} +1 -1
- package/dist/zonos-elements/p-6e81adba.system.js +1 -1
- package/dist/zonos-elements/{p-4ad5f307.system.entry.js → p-7e00a5dc.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-a725946f.entry.js → p-817e7f8e.entry.js} +1 -1
- package/dist/zonos-elements/{p-dad00ad3.system.entry.js → p-824b8708.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-770384fa.system.entry.js → p-9a2c3874.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-edbea8df.system.js → p-9db2f9d1.system.js} +1 -1
- package/dist/zonos-elements/{p-77c54b83.js → p-a1a477c9.js} +1 -1
- package/dist/zonos-elements/{p-93e51987.system.entry.js → p-a398bc59.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-febddb45.entry.js → p-a641dfcd.entry.js} +1 -1
- package/dist/zonos-elements/p-a7bfe188.entry.js +1 -0
- package/dist/zonos-elements/{p-9db3028d.entry.js → p-ac7155d7.entry.js} +1 -1
- package/dist/zonos-elements/{p-6181f2d5.entry.js → p-ad499520.entry.js} +1 -1
- package/dist/zonos-elements/{p-a578facf.entry.js → p-b0e9226a.entry.js} +1 -1
- package/dist/zonos-elements/{p-d9c65636.system.js → p-b1ee44c6.system.js} +1 -1
- package/dist/zonos-elements/{p-e392e212.system.entry.js → p-b2c48954.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-315c1fc2.entry.js → p-b62aee3d.entry.js} +1 -1
- package/dist/zonos-elements/p-b76909ab.entry.js +1 -0
- package/dist/zonos-elements/{p-333da541.entry.js → p-b9cde0c3.entry.js} +1 -1
- package/dist/zonos-elements/{p-482371fb.system.entry.js → p-c4862aab.system.entry.js} +1 -1
- package/dist/zonos-elements/p-c6e44a9b.entry.js +1 -0
- package/dist/zonos-elements/p-cde25873.js +1 -0
- package/dist/zonos-elements/p-d96f8d89.system.entry.js +1 -0
- package/dist/zonos-elements/p-e2131057.entry.js +1 -0
- package/dist/zonos-elements/p-e28ed57c.js +1 -0
- package/dist/zonos-elements/{p-49a5be72.js → p-e74f27da.js} +1 -1
- package/dist/zonos-elements/{p-afcded5d.system.js → p-ed4d8d71.system.js} +1 -1
- package/dist/zonos-elements/{p-0b4910fe.system.entry.js → p-f62b49aa.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-a87803b7.system.entry.js → p-f8b03017.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-8445a084.system.entry.js → p-fac20c60.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-e4e1ca2f.system.entry.js → p-fd8c50e8.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-d5a9dfc7.entry.js → p-ff17c03b.entry.js} +1 -1
- package/dist/zonos-elements/p-ff962844.entry.js +1 -0
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/isColorVariable-91c33804.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-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-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-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
|
@@ -14,7 +14,7 @@ const ZonosLink$1 = /*@__PURE__*/ proxyCustomElement(class ZonosLink extends HTM
|
|
|
14
14
|
this.linkTitle = undefined;
|
|
15
15
|
}
|
|
16
16
|
render() {
|
|
17
|
-
return (h(Host, { key: '
|
|
17
|
+
return (h(Host, { key: 'b4def20f1c697c437e98c35e7355e84bfea88be2', class: "zonos--elements" }, h("a", { key: '8bb78fc9f3a38256cc3e7cda104c7eec1c93d185', href: this.href, rel: this.rel, target: this.target, title: this.linkTitle }, h("slot", { key: '897301f324059f6917a71f9ed444ddae32535485' }))));
|
|
18
18
|
}
|
|
19
19
|
static get style() { return ZonosLinkStyle0; }
|
|
20
20
|
}, [1, "zonos-link", {
|
|
@@ -17,11 +17,11 @@ const ZonosLogo$1 = /*@__PURE__*/ proxyCustomElement(class ZonosLogo extends HTM
|
|
|
17
17
|
const filterColor = this.theme === 'DARK'
|
|
18
18
|
? 'invert(100%) sepia(100%) saturate(0%) hue-rotate(288deg) brightness(102%) contrast(102%)'
|
|
19
19
|
: 'whiteinvert(0%) sepia(100%) saturate(32%) hue-rotate(92deg) brightness(107%) contrast(107%)';
|
|
20
|
-
return (h(Host, { key: '
|
|
20
|
+
return (h(Host, { key: '483016f5ffe43ea7742e895b5335212da6ec1d18', class: classes(['zonos--elements zonos--logo']), style: {
|
|
21
21
|
'--filter-color': filterColor,
|
|
22
22
|
'--font-family': zonosStoreFontFamily(),
|
|
23
23
|
'--width': this.width,
|
|
24
|
-
} }, h("img", { key: '
|
|
24
|
+
} }, h("img", { key: 'aed23717de194da43d48ee7b068f3e7568c0bbb3', alt: "Zonos Logo", src: getAssetPath('./assets/ZonosLogo.png') })));
|
|
25
25
|
}
|
|
26
26
|
static get assetsDirs() { return ["assets"]; }
|
|
27
27
|
static get style() { return ZonosLogoStyle0; }
|
|
@@ -39,7 +39,7 @@ const ZonosPayment = /*@__PURE__*/ proxyCustomElement(class ZonosPayment extends
|
|
|
39
39
|
}
|
|
40
40
|
render() {
|
|
41
41
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
42
|
-
return (h(Host, { key: '
|
|
42
|
+
return (h(Host, { key: 'db50fedad509b3bc972cfe02d5973a3c93a6eb23', class: "zonos--payment zonos--elements" }, this.titleText && (h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), h("div", { key: 'a773ce78377a70c57577eb1efdac9d2563d1a60d', class: "zonos--payment-component" })));
|
|
43
43
|
}
|
|
44
44
|
get el() { return this; }
|
|
45
45
|
static get watchers() { return {
|
|
@@ -11,7 +11,7 @@ const ChevronDownIcon = `<svg color="var(--amino-gray-400)" fill="none" height="
|
|
|
11
11
|
|
|
12
12
|
const ChevronUpIcon = `<svg color="var(--amino-gray-400)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M17.707 14.707a1 1 0 0 1-1.414 0L12 10.414l-4.293 4.293a1 1 0 0 1-1.414-1.414l4.93-4.93a1.1 1.1 0 0 1 1.555 0l4.93 4.93a1 1 0 0 1 0 1.414Z" fill="currentColor" fill-rule="evenodd"></path></svg>`;
|
|
13
13
|
|
|
14
|
-
const zonosReviewCss = ":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{position:-webkit-sticky;position:sticky;top:0;background-color:var(--amino-gray-0);z-index:1}:host .zonos--total-pay{margin:var(--amino-space-
|
|
14
|
+
const zonosReviewCss = ":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{position:-webkit-sticky;position:sticky;top:0;background-color:var(--amino-gray-0);z-index:1}:host .zonos--total-pay{margin:var(--amino-space-8) 0 var(--amino-space-32)}:host(.mobile){display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;gap:var(--amino-space-24);-ms-flex-pack:justify;justify-content:space-between;padding:var(--amino-space-4) 0;margin-bottom:var(--amino-space-8);background-color:transparent}:host(.mobile) .zonos--title{display:-ms-flexbox;display:flex;-ms-flex-item-align:center;align-self:center;gap:var(--amino-space-8)}:host(.mobile) .zonos--total-pay{margin:0}";
|
|
15
15
|
const ZonosReviewStyle0 = zonosReviewCss;
|
|
16
16
|
|
|
17
17
|
const ZonosReview = /*@__PURE__*/ proxyCustomElement(class ZonosReview extends HTMLElement {
|
|
@@ -20,9 +20,9 @@ const ZonosSelectDialogHeader = /*@__PURE__*/ proxyCustomElement(class ZonosSele
|
|
|
20
20
|
this.label = '';
|
|
21
21
|
}
|
|
22
22
|
render() {
|
|
23
|
-
return (h(Host, { key: '
|
|
23
|
+
return (h(Host, { key: 'e7867deee86e4a155c21db2618eafd6f3c6cea3b', class: "zonos--elements", style: {
|
|
24
24
|
'--font-family': zonosStoreFontFamily(),
|
|
25
|
-
} }, h("zonos-v-stack", { key: '
|
|
25
|
+
} }, h("zonos-v-stack", { key: 'f7aedb0f819b61da26afd53add628bcddcca5d8a', class: "zonos--select-dialog-header-wrapper", spacing: 8 }, h("div", { key: '7ec77c24a440a5d42965f657502506c769d3098c', class: "zonos--select-dialog-header" }, h("zonos-text", { key: 'bab0ffc53edd20840438e82c0067c1eae8f13ec7', type: "boldLabel" }, this.label), h("zonos-button", { key: 'a85fc2b745b25c07bcccfe60eb1f1e722c7999c2', class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close select dialog", content: RemoveIcon, size: 20 }), noBackground: true, onClick: () => this.handleOnClose() })), h("slot", { key: 'fe932e62edd5f679061c76a62650885d4337363c' }))));
|
|
26
26
|
}
|
|
27
27
|
static get style() { return ZonosSelectDialogHeaderStyle0; }
|
|
28
28
|
}, [1, "zonos-select-dialog-header", {
|
|
@@ -33,11 +33,20 @@ const ZonosShippingRichRadio = /*@__PURE__*/ proxyCustomElement(class ZonosShipp
|
|
|
33
33
|
this.borderColor = undefined;
|
|
34
34
|
this.borderStyle = undefined;
|
|
35
35
|
this.theme = undefined;
|
|
36
|
+
this.initialSelectedValue = undefined;
|
|
36
37
|
this.selectedItem = null;
|
|
37
38
|
}
|
|
39
|
+
componentWillLoad() {
|
|
40
|
+
// Set initial selected item
|
|
41
|
+
if (this.initialSelectedValue) {
|
|
42
|
+
this.selectedItem =
|
|
43
|
+
this.items.find(item => item.value === this.initialSelectedValue) ||
|
|
44
|
+
null;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
38
47
|
render() {
|
|
39
48
|
var _a;
|
|
40
|
-
return (h(Host, { key: '
|
|
49
|
+
return (h(Host, { key: '3633e3be9f679c54647d475c9d1831428410302b', class: "zonos--shipping-rich-radio zonos--elements", "data-theme": this.theme, style: Object.assign(Object.assign({}, this.getRadioItemStyleVariables()), { '--font-family': zonosStoreFontFamily() }) }, (_a = this.items) === null || _a === void 0 ? void 0 : _a.map(item => {
|
|
41
50
|
var _a;
|
|
42
51
|
const selected = ((_a = this.selectedItem) === null || _a === void 0 ? void 0 : _a.value) === item.value;
|
|
43
52
|
return (h("div", { "aria-hidden": "true", class: classes([
|
|
@@ -52,6 +61,7 @@ const ZonosShippingRichRadio = /*@__PURE__*/ proxyCustomElement(class ZonosShipp
|
|
|
52
61
|
"borderColor": [1, "border-color"],
|
|
53
62
|
"borderStyle": [1, "border-style"],
|
|
54
63
|
"theme": [1],
|
|
64
|
+
"initialSelectedValue": [8, "initial-selected-value"],
|
|
55
65
|
"selectedItem": [32]
|
|
56
66
|
}]);
|
|
57
67
|
function defineCustomElement() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import { c as cartStore,
|
|
2
|
+
import { c as cartStore, w as cartStoreUpdateSelectedShippingOption, x as cartStoreGetShippingTransitInfo, t as translate } from './stripe.js';
|
|
3
3
|
import { t as trackConversionEvent } from './trackConversionEvent.js';
|
|
4
4
|
import { f as formatCurrency } from './formatCurrency.js';
|
|
5
5
|
import { s as submitGtag } from './submitGtag.js';
|
|
@@ -27,11 +27,13 @@ const ZonosShipping = /*@__PURE__*/ proxyCustomElement(class ZonosShipping exten
|
|
|
27
27
|
if (!selectedShippingOption) {
|
|
28
28
|
return;
|
|
29
29
|
}
|
|
30
|
+
this.isSelecting = true;
|
|
30
31
|
// save selected shipping option to store
|
|
31
32
|
const updateStatus = await cartStoreUpdateSelectedShippingOption(selectedShippingOption);
|
|
32
33
|
if (!updateStatus) {
|
|
33
34
|
return;
|
|
34
35
|
}
|
|
36
|
+
this.isSelecting = false;
|
|
35
37
|
this.disabled = false;
|
|
36
38
|
};
|
|
37
39
|
/**
|
|
@@ -40,11 +42,38 @@ const ZonosShipping = /*@__PURE__*/ proxyCustomElement(class ZonosShipping exten
|
|
|
40
42
|
this.continueClickHandler = () => {
|
|
41
43
|
this.continueClicked.emit();
|
|
42
44
|
};
|
|
45
|
+
this.initServiceLevels = () => {
|
|
46
|
+
var _a;
|
|
47
|
+
this.serviceLevels =
|
|
48
|
+
((_a = cartStore.shippingData) === null || _a === void 0 ? void 0 : _a.flatMap((item) => {
|
|
49
|
+
var _a, _b;
|
|
50
|
+
const { expectedDate, maxTransit, minTransit } = cartStoreGetShippingTransitInfo(item);
|
|
51
|
+
const sublabel = expectedDate
|
|
52
|
+
? `${translate('Expected delivery')} ${expectedDate}`
|
|
53
|
+
: '';
|
|
54
|
+
const caption = minTransit && maxTransit
|
|
55
|
+
? `(${minTransit}-${maxTransit} ${translate('business days')})`
|
|
56
|
+
: '';
|
|
57
|
+
const shippingAmount = ((_b = (_a = cartStore.landedCostData) === null || _a === void 0 ? void 0 : _a.find(landedCostItem => { var _a; return ((_a = landedCostItem.landedCost) === null || _a === void 0 ? void 0 : _a.shipmentRating.id) === item.id; })) === null || _b === void 0 ? void 0 : _b.subtotals.shipping) || 0;
|
|
58
|
+
return {
|
|
59
|
+
caption,
|
|
60
|
+
label: item.displayName,
|
|
61
|
+
price: formatCurrency({
|
|
62
|
+
amount: shippingAmount,
|
|
63
|
+
currency: cartStore.currency,
|
|
64
|
+
}),
|
|
65
|
+
sublabel,
|
|
66
|
+
value: item.id,
|
|
67
|
+
};
|
|
68
|
+
})) || [];
|
|
69
|
+
};
|
|
43
70
|
this.continueLoading = false;
|
|
44
71
|
this.submitBtnColor = undefined;
|
|
45
72
|
this.submitBtnType = undefined;
|
|
46
73
|
this.selectedShippingMethod = null;
|
|
74
|
+
this.isSelecting = false;
|
|
47
75
|
this.disabled = true;
|
|
76
|
+
this.serviceLevels = [];
|
|
48
77
|
}
|
|
49
78
|
watchFormComplete() {
|
|
50
79
|
var _a;
|
|
@@ -56,30 +85,18 @@ const ZonosShipping = /*@__PURE__*/ proxyCustomElement(class ZonosShipping exten
|
|
|
56
85
|
});
|
|
57
86
|
}
|
|
58
87
|
}
|
|
88
|
+
componentWillLoad() {
|
|
89
|
+
this.initServiceLevels();
|
|
90
|
+
const selectedServiceLevel = this.serviceLevels.find(item => { var _a; return item.value === ((_a = cartStore.selectedShippingOption) === null || _a === void 0 ? void 0 : _a.id); }) || null;
|
|
91
|
+
if (selectedServiceLevel) {
|
|
92
|
+
this.selectedShippingMethod = selectedServiceLevel;
|
|
93
|
+
}
|
|
94
|
+
// enable continue button if there is a selected shipping option
|
|
95
|
+
this.disabled = !selectedServiceLevel;
|
|
96
|
+
}
|
|
59
97
|
render() {
|
|
60
|
-
var _a;
|
|
61
|
-
|
|
62
|
-
var _a, _b;
|
|
63
|
-
const { expectedDate, maxTransit, minTransit } = cartStoreGetShippingTransitInfo(item);
|
|
64
|
-
const sublabel = expectedDate
|
|
65
|
-
? `${translate('Expected delivery')} ${expectedDate}`
|
|
66
|
-
: '';
|
|
67
|
-
const caption = minTransit && maxTransit
|
|
68
|
-
? `(${minTransit}-${maxTransit} ${translate('business days')})`
|
|
69
|
-
: '';
|
|
70
|
-
const shippingAmount = ((_b = (_a = cartStore.landedCostData) === null || _a === void 0 ? void 0 : _a.find(landedCostItem => { var _a; return ((_a = landedCostItem.landedCost) === null || _a === void 0 ? void 0 : _a.shipmentRating.id) === item.id; })) === null || _b === void 0 ? void 0 : _b.subtotals.shipping) || 0;
|
|
71
|
-
return {
|
|
72
|
-
caption,
|
|
73
|
-
label: item.displayName,
|
|
74
|
-
price: formatCurrency({
|
|
75
|
-
amount: shippingAmount,
|
|
76
|
-
currency: cartStore.currency,
|
|
77
|
-
}),
|
|
78
|
-
sublabel,
|
|
79
|
-
value: item.id,
|
|
80
|
-
};
|
|
81
|
-
});
|
|
82
|
-
return (h(Host, { class: "zonos--shipping zonos--elements" }, h("div", { class: "zonos--group" }, h("zonos-text", { class: "zonos--title", type: "semiBoldSubheader" }, translate('Shipping information')), h("zonos-text", { class: "zonos--shipping-method-title", type: "semiBoldLabel" }, translate('Shipping method')), !(serviceLevels === null || serviceLevels === void 0 ? void 0 : serviceLevels.length) ? (h("zonos-banner", { bannerTitle: "No shipping methods found - try editing your address or contacting support if the error persists", intent: "error" })) : (h("zonos-shipping-rich-radio", { items: serviceLevels || [], onRadioSelected: e => this.handleRadioSelected(e) })), h("div", { class: "zonos--group-btn" }, h("zonos-button", { backgroundColor: this.submitBtnColor, isDisabled: this.disabled, loading: this.continueLoading, onClick: () => this.continueClickHandler(), size: "lg",
|
|
98
|
+
var _a, _b;
|
|
99
|
+
return (h(Host, { key: 'ab881bdb575ac0177154ffa8a2d84d668151c46d', class: "zonos--shipping zonos--elements" }, h("div", { key: 'b8738e0fb5c32b329ae03ccd2cb2d1a178a05aa8', class: "zonos--group" }, h("zonos-text", { key: 'd942ab3f4e77631145a0a38dae95999454a92b56', class: "zonos--title", type: "semiBoldSubheader" }, translate('Shipping information')), h("zonos-text", { key: '6855f44cf3458891776b3c215417bec329de89dc', class: "zonos--shipping-method-title", type: "semiBoldLabel" }, translate('Shipping method')), !((_a = this.serviceLevels) === null || _a === void 0 ? void 0 : _a.length) ? (h("zonos-banner", { bannerTitle: "No shipping methods found - try editing your address or contacting support if the error persists", intent: "error" })) : (h("zonos-shipping-rich-radio", { initialSelectedValue: (_b = this.selectedShippingMethod) === null || _b === void 0 ? void 0 : _b.value, items: this.serviceLevels, onRadioSelected: e => this.handleRadioSelected(e) })), h("div", { key: '9f2c00c948230679d96ac44940c1dee45e751ded', class: "zonos--group-btn" }, h("zonos-button", { key: '8bab3848d596fef19bc7245fc87a525cf59a15c5', backgroundColor: this.submitBtnColor, isDisabled: this.disabled, loading: this.continueLoading || this.isSelecting, onClick: () => this.continueClickHandler(), size: "lg",
|
|
83
100
|
// use primary type when on mobile mode
|
|
84
101
|
variant: this.submitBtnType }, translate('Go to payment'))))));
|
|
85
102
|
}
|
|
@@ -92,7 +109,9 @@ const ZonosShipping = /*@__PURE__*/ proxyCustomElement(class ZonosShipping exten
|
|
|
92
109
|
"submitBtnColor": [1, "submit-btn-color"],
|
|
93
110
|
"submitBtnType": [1, "submit-btn-type"],
|
|
94
111
|
"selectedShippingMethod": [32],
|
|
95
|
-
"
|
|
112
|
+
"isSelecting": [32],
|
|
113
|
+
"disabled": [32],
|
|
114
|
+
"serviceLevels": [32]
|
|
96
115
|
}, undefined, {
|
|
97
116
|
"disabled": ["watchFormComplete"]
|
|
98
117
|
}]);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { a as zonosStoreFontFamily } from './zonosStore.js';
|
|
3
3
|
import { c as classes } from './classes.js';
|
|
4
|
+
import { i as isColorVariable } from './isColorVariable.js';
|
|
4
5
|
|
|
5
6
|
const textOptions = {
|
|
6
7
|
pageHeader: {
|
|
@@ -128,6 +129,9 @@ const ZonosText = /*@__PURE__*/ proxyCustomElement(class ZonosText extends HTMLE
|
|
|
128
129
|
const textSize = this.size || size || defaultSize;
|
|
129
130
|
const textWeight = this.weight || weight || defaultWeight;
|
|
130
131
|
const textTag = tag || defaultTag;
|
|
132
|
+
const actualTextColor = isColorVariable(this.textColor)
|
|
133
|
+
? `var(--amino-${this.textColor})`
|
|
134
|
+
: this.textColor;
|
|
131
135
|
const renderText = () => {
|
|
132
136
|
switch (textTag) {
|
|
133
137
|
case 'h2':
|
|
@@ -147,7 +151,7 @@ const ZonosText = /*@__PURE__*/ proxyCustomElement(class ZonosText extends HTMLE
|
|
|
147
151
|
`zonos--text-size-${textSize}`,
|
|
148
152
|
`zonos--text-weight-${textWeight}`,
|
|
149
153
|
]), style: {
|
|
150
|
-
'--color':
|
|
154
|
+
'--color': actualTextColor,
|
|
151
155
|
'--font-family': zonosStoreFontFamily(),
|
|
152
156
|
} }, renderText()));
|
|
153
157
|
}
|
|
@@ -15,10 +15,10 @@ const ZonosTooltip = /*@__PURE__*/ proxyCustomElement(class ZonosTooltip extends
|
|
|
15
15
|
this.showTooltip = false;
|
|
16
16
|
}
|
|
17
17
|
render() {
|
|
18
|
-
return (h(Host, { key: '
|
|
18
|
+
return (h(Host, { key: 'a23ad45e8f96b88b0feaf17690c6bdb75aacb12c', class: "zonos--elements" }, h("div", { key: 'b057f5ae304921f5fd50536cb5b7fb493120f1e7', class: "zonos--tooltip", onMouseEnter: () => (this.showTooltip = true), onMouseLeave: () => (this.showTooltip = false) }, h("slot", { key: '396ac2ec3fcc8d49f8a346d1059cb096ef2e2874' }), h("div", { key: '4aa607dcc9c4c675224e9d7effd1e8ad2bdee097', class: classes([
|
|
19
19
|
this.showTooltip && 'zonos--show-tooltip',
|
|
20
20
|
'zonos--tooltip-content',
|
|
21
|
-
]) }, h("zonos-text", { key: '
|
|
21
|
+
]) }, h("zonos-text", { key: 'e69a1883f21f277be88e892a99ae6e66a9829a1c', size: "s", textColor: "gray-0", type: "boldLabel" }, this.label), h("zonos-text", { key: 'cb901c3cd7d0931f157eddef8fe4286fbd66b66b', size: "xs", textColor: "gray-0" }, this.subtitle)))));
|
|
22
22
|
}
|
|
23
23
|
static get style() { return ZonosTooltipStyle0; }
|
|
24
24
|
}, [1, "zonos-tooltip", {
|
|
@@ -13,9 +13,9 @@ const VStack = /*@__PURE__*/ proxyCustomElement(class VStack extends HTMLElement
|
|
|
13
13
|
this.spacing = 24;
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
|
-
return (h(Host, { key: '
|
|
16
|
+
return (h(Host, { key: '3d9977f4c55f7f1047ec94dcc3a3c40105559c00', style: {
|
|
17
17
|
'--font-family': zonosStoreFontFamily(),
|
|
18
|
-
} }, h("div", { key: '
|
|
18
|
+
} }, h("div", { key: 'aa910d4f9a11d3d1a66836aed442726241b73273', class: classes(['vstack']), style: { 'grid-row-gap': `${this.spacing}px` } }, h("slot", { key: 'ec50cc05f71018b4b6fef1288f1371ddde030a3a' }))));
|
|
19
19
|
}
|
|
20
20
|
static get style() { return ZonosVStackStyle0; }
|
|
21
21
|
}, [1, "zonos-v-stack", {
|
|
@@ -2759,7 +2759,7 @@ const mergeConfig = (defaultObj, fetchedObj, ...overrideObj) => {
|
|
|
2759
2759
|
|
|
2760
2760
|
const { reset, state: zonosStore } = createStore(() => ({
|
|
2761
2761
|
appearance: {
|
|
2762
|
-
colorPrimary: '
|
|
2762
|
+
colorPrimary: 'white',
|
|
2763
2763
|
fontFamily: 'Inter',
|
|
2764
2764
|
logoUrl: '',
|
|
2765
2765
|
style: 'ROUNDED',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as createStore, z as zonosStore } from './zonosStore-
|
|
2
|
-
import { i as isDarkColor } from './isDarkColor-
|
|
3
|
-
import { g as getBorderRadius } from './getBorderRadius-
|
|
1
|
+
import { c as createStore, z as zonosStore } from './zonosStore-e5f3d4da.js';
|
|
2
|
+
import { i as isDarkColor } from './isDarkColor-810fcaa5.js';
|
|
3
|
+
import { g as getBorderRadius } from './getBorderRadius-c5fb7746.js';
|
|
4
4
|
|
|
5
5
|
const stringsArabic = {
|
|
6
6
|
'Above de minimis threshold for': {
|
|
@@ -4817,6 +4817,7 @@ const getDaysDifference = (targetDate) => {
|
|
|
4817
4817
|
const { onChange, reset, state: cartStore, } = createStore(() => ({
|
|
4818
4818
|
checkoutSessionId: sessionStorage.getItem('zonos--checkout-session-id') || null,
|
|
4819
4819
|
currency: 'USD',
|
|
4820
|
+
doneSteps: [],
|
|
4820
4821
|
dutiesTaxFees: 0,
|
|
4821
4822
|
error: null,
|
|
4822
4823
|
exchangeRate: null,
|
|
@@ -4832,6 +4833,27 @@ const { onChange, reset, state: cartStore, } = createStore(() => ({
|
|
|
4832
4833
|
shippingData: null,
|
|
4833
4834
|
step: 'customer-info',
|
|
4834
4835
|
subtotal: 0,
|
|
4836
|
+
tabItems: {
|
|
4837
|
+
'customer-info': {
|
|
4838
|
+
index: 1,
|
|
4839
|
+
isDone: false,
|
|
4840
|
+
label: 'Customer',
|
|
4841
|
+
value: 'customer-info',
|
|
4842
|
+
},
|
|
4843
|
+
shipping: {
|
|
4844
|
+
index: 2,
|
|
4845
|
+
isDone: false,
|
|
4846
|
+
label: 'Delivery',
|
|
4847
|
+
value: 'shipping',
|
|
4848
|
+
},
|
|
4849
|
+
// eslint-disable-next-line sort-keys/sort-keys-fix
|
|
4850
|
+
payment: {
|
|
4851
|
+
index: 3,
|
|
4852
|
+
isDone: false,
|
|
4853
|
+
label: 'Payment',
|
|
4854
|
+
value: 'payment',
|
|
4855
|
+
},
|
|
4856
|
+
},
|
|
4835
4857
|
total: 0,
|
|
4836
4858
|
}));
|
|
4837
4859
|
/**
|
|
@@ -4981,37 +5003,20 @@ const cartStoreUpdateItems = async (items) => {
|
|
|
4981
5003
|
});
|
|
4982
5004
|
stripeStore.isFetchingSession = false;
|
|
4983
5005
|
};
|
|
4984
|
-
const cartStoreResetSelectedShippingOption = () => {
|
|
4985
|
-
cartStore.selectedShippingOption = null;
|
|
4986
|
-
cartStore.isSelectedShippingAboveDeminimis = false;
|
|
4987
|
-
cartStore.isSelectedShippingGuarantee = false;
|
|
4988
|
-
cartStore.selectedShippingOptionExpectedDate = '';
|
|
4989
|
-
cartStore.selectedShippingOptionTransitTime = '';
|
|
4990
|
-
cartStore.dutiesTaxFees = 0;
|
|
4991
|
-
cartStore.shipping = 0;
|
|
4992
|
-
// reset total to subtotal
|
|
4993
|
-
cartStore.total = cartStore.subtotal;
|
|
4994
|
-
};
|
|
4995
5006
|
const cartStoreNextStep = () => {
|
|
4996
5007
|
if (cartStore.step === 'customer-info') {
|
|
4997
5008
|
cartStore.step = 'shipping';
|
|
5009
|
+
// set customer-info step to done
|
|
5010
|
+
cartStore.tabItems = Object.assign(Object.assign({}, cartStore.tabItems), { 'customer-info': Object.assign(Object.assign({}, cartStore.tabItems['customer-info']), { isDone: true }) });
|
|
4998
5011
|
}
|
|
4999
5012
|
else if (cartStore.step === 'shipping') {
|
|
5000
5013
|
cartStore.step = 'payment';
|
|
5014
|
+
// set shipping step to done
|
|
5015
|
+
cartStore.tabItems = Object.assign(Object.assign({}, cartStore.tabItems), { shipping: Object.assign(Object.assign({}, cartStore.tabItems.shipping), { isDone: true }) });
|
|
5001
5016
|
}
|
|
5002
5017
|
else if (cartStore.step === 'payment') {
|
|
5003
5018
|
cartStore.step = 'finish';
|
|
5004
5019
|
}
|
|
5005
5020
|
};
|
|
5006
|
-
const cartStorePreviousStep = () => {
|
|
5007
|
-
if (cartStore.step === 'payment') {
|
|
5008
|
-
cartStore.step = 'shipping';
|
|
5009
|
-
}
|
|
5010
|
-
else if (cartStore.step === 'shipping') {
|
|
5011
|
-
cartStore.step = 'customer-info';
|
|
5012
|
-
// reset selected shipping option
|
|
5013
|
-
cartStoreResetSelectedShippingOption();
|
|
5014
|
-
}
|
|
5015
|
-
};
|
|
5016
5021
|
|
|
5017
|
-
export {
|
|
5022
|
+
export { currencyConvert as A, currencyFormat as B, stripeStoreRetrievePayment as C, cartStoreUpdateSelectedShippingOption as D, cartStoreGetShippingTransitInfo as E, localizationStoreUpdateSelectedLocale as F, log as a, localizationStoreUpdateSelectedCountryCode as b, stripeStoreCleanupDomesticShippingSession as c, logError as d, stripeStoreSaveDomesticShippingSession as e, cartStore as f, cartStoreUpdateItems as g, cartStoreReset as h, initStripeElements as i, stripeStore as j, stripeStoreInitCheckoutSession as k, localizationStore as l, cartStoreUpdateToErrorState as m, stripeStorePrefetchLandedCost as n, cartStoreNextStep as o, stripeStoreConfirmPayment as p, stripeStoreReset as q, handleFetch as r, stripeStoreGetDomesticShippingSession as s, translate as t, isValidSelector as u, initLocalizationStore as v, getZCountryUrlParam as w, setZCountryUrlParam as x, currencyDisplay as y, currencyConvertAndFormat as z };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { t as tinycolor, i as isDarkColor } from './isDarkColor-810fcaa5.js';
|
|
2
|
+
|
|
3
|
+
const getContrastColor = ({ backgroundColor, color, }) => {
|
|
4
|
+
// get readibility of the color
|
|
5
|
+
const colorReadibilityValue = tinycolor.readability(color, backgroundColor);
|
|
6
|
+
if (colorReadibilityValue > 2.5) {
|
|
7
|
+
// no need to change the color if it's already contrast enough
|
|
8
|
+
return color;
|
|
9
|
+
}
|
|
10
|
+
if (isDarkColor(color)) {
|
|
11
|
+
return '#ffffff';
|
|
12
|
+
}
|
|
13
|
+
else {
|
|
14
|
+
return tinycolor(color).darken(25).toHexString();
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export { getContrastColor as g };
|
|
@@ -4,7 +4,7 @@ const isColorVariable = (color) => {
|
|
|
4
4
|
(/--amino-/gi.test(color) ||
|
|
5
5
|
// match 'gray-0'
|
|
6
6
|
/(\-*)\w+-\d+/gi.test(color));
|
|
7
|
-
return (isAminoVariable &&
|
|
7
|
+
return (!!isAminoVariable &&
|
|
8
8
|
// match rgb, rgba, hsl, hsla, hex, and css variable
|
|
9
9
|
!color.includes('(') &&
|
|
10
10
|
// match hex
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as commonjsGlobal } from './zonosStore-
|
|
1
|
+
import { a as commonjsGlobal } from './zonosStore-e5f3d4da.js';
|
|
2
2
|
|
|
3
3
|
var tinycolor$1 = {exports: {}};
|
|
4
4
|
|
|
@@ -1196,4 +1196,4 @@ const isDarkColor = (color) => {
|
|
|
1196
1196
|
return tinycolor(color).isDark();
|
|
1197
1197
|
};
|
|
1198
1198
|
|
|
1199
|
-
export { isDarkColor as i };
|
|
1199
|
+
export { isDarkColor as i, tinycolor as t };
|
package/dist/esm/loader.js
CHANGED
|
@@ -5,7 +5,7 @@ import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
6
6
|
if (typeof window === 'undefined') return undefined;
|
|
7
7
|
await globalScripts();
|
|
8
|
-
return bootstrapLazy([["zonos-checkout",[[2,"zonos-checkout",{"appearanceSettingsOverride":[16],"preview":[4],"mobile":[4],"defaultAddress":[16],"forceDialogOpen":[4,"force-dialog-open"],"open":[32],"stripe":[32],"submitLoading":[32],"paymentError":[32],"collapseReviewMobile":[32],"isAttachError":[32],"isMobile":[32],"zonosReviewRef":[32],"storybookPaymentStatusOverride":[32],"domesticRedirectedBtnSelector":[32],"closeDialogHandler":[64],"init":[64],"setToFinishStep":[64]},[[16,"zonos--init-cart-info","initCartInfoHandler"],[9,"resize","handleWindowResize"]],{"appearanceSettingsOverride":["appearanceSettingsOverrideChanged"],"mobile":["handleMobileChange"]}]]],["zonos-hello",[[1,"zonos-hello",{"mobileLocationOverride":[1,"mobile-location-override"],"animateFromLeftOverride":[4,"animate-from-left-override"],"appearanceSettingsOverride":[16],"showPeekMessage":[32],"zonosStoreHelloSettings":[32],"showDialog":[32],"peekMessage":[32],"initialUrl":[32],"allRestrictedItems":[32],"allFoundProducts":[32],"productsOnPage":[32],"displayCurrency":[64],"convertAndFormat":[64],"convert":[64],"format":[64],"openHelloDialog":[64]},[[9,"resize","handleResize"]]]]],["zonos-controller",[[1,"zonos-controller",{"config":[16],"zonosApiKey":[1,"zonos-api-key"],"initCheckoutElement":[64],"setupGoogleFont":[64],"showNotification":[64],"overrideConfig":[64],"overrideCountry":[64],"getAppearanceSetting":[64],"updateOrganizationName":[64]}]]],["zonos-component",[[1,"zonos-component",{"first":[1],"middle":[1],"last":[1]}]]],["zonos-link",[[1,"zonos-link",{"href":[1],"rel":[1],"target":[1],"linkTitle":[1,"link-title"]}]]],["zonos-logo",[[1,"zonos-logo",{"theme":[1],"width":[1]}]]],["zonos-text",[[1,"zonos-text",{"textColor":[1,"text-color"],"size":[1],"type":[1],"weight":[2],"content":[1],"ready":[32]}]]],["zonos-hello-dialog",[[1,"zonos-hello-dialog",{"isOpen":[4,"is-open"],"setIsOpen":[16],"mobileLocationOverride":[1,"mobile-location-override"],"animateFromLeftOverride":[4,"animate-from-left-override"],"appearanceSettings":[16],"restrictedItems":[16],"welcomeMessage":[32],"showCountrySelect":[32],"showLanguageSelect":[32]},[[4,"click","globalClickHandler"]],{"isOpen":["isOpenHandler"]}]]],["zonos-notification",[[1,"zonos-notification",{"notificationArray":[32],"showNotification":[64]}]]],["zonos-payment",[[2,"zonos-payment",{"titleText":[1,"title-text"],"stripe":[32],"stripeElements":[32]},null,{"stripeElements":["watchInitStripe"],"stripe":["watchInitStripe"]}]]],["zonos-shipping-rich-radio",[[1,"zonos-shipping-rich-radio",{"items":[16],"borderColor":[1,"border-color"],"borderStyle":[1,"border-style"],"theme":[1],"selectedItem":[32]}]]],["zonos-badge_2",[[1,"zonos-badge",{"bold":[4],"badgeColor":[1,"badge-color"],"icon":[16],"iconRight":[4,"icon-right"],"size":[1],"rounded":[4]}],[1,"zonos-tooltip",{"label":[1],"subtitle":[1],"showTooltip":[32]}]]],["zonos-country-flag",[[1,"zonos-country-flag",{"countryCode":[1,"country-code"],"size":[2]}]]],["zonos-banner",[[1,"zonos-banner",{"bannerTitle":[1,"banner-title"],"intent":[1],"hasContent":[32]}]]],["zonos-
|
|
8
|
+
return bootstrapLazy([["zonos-checkout",[[2,"zonos-checkout",{"appearanceSettingsOverride":[16],"preview":[4],"mobile":[4],"defaultAddress":[16],"forceDialogOpen":[4,"force-dialog-open"],"open":[32],"stripe":[32],"submitLoading":[32],"paymentError":[32],"collapseReviewMobile":[32],"isAttachError":[32],"isMobile":[32],"zonosReviewRef":[32],"storybookPaymentStatusOverride":[32],"domesticRedirectedBtnSelector":[32],"closeDialogHandler":[64],"init":[64],"setToFinishStep":[64]},[[16,"zonos--init-cart-info","initCartInfoHandler"],[9,"resize","handleWindowResize"]],{"appearanceSettingsOverride":["appearanceSettingsOverrideChanged"],"mobile":["handleMobileChange"]}]]],["zonos-hello",[[1,"zonos-hello",{"mobileLocationOverride":[1,"mobile-location-override"],"animateFromLeftOverride":[4,"animate-from-left-override"],"appearanceSettingsOverride":[16],"showPeekMessage":[32],"zonosStoreHelloSettings":[32],"showDialog":[32],"peekMessage":[32],"initialUrl":[32],"allRestrictedItems":[32],"allFoundProducts":[32],"productsOnPage":[32],"displayCurrency":[64],"convertAndFormat":[64],"convert":[64],"format":[64],"openHelloDialog":[64]},[[9,"resize","handleResize"]]]]],["zonos-controller",[[1,"zonos-controller",{"config":[16],"zonosApiKey":[1,"zonos-api-key"],"initCheckoutElement":[64],"setupGoogleFont":[64],"showNotification":[64],"overrideConfig":[64],"overrideCountry":[64],"getAppearanceSetting":[64],"updateOrganizationName":[64]}]]],["zonos-component",[[1,"zonos-component",{"first":[1],"middle":[1],"last":[1]}]]],["zonos-link",[[1,"zonos-link",{"href":[1],"rel":[1],"target":[1],"linkTitle":[1,"link-title"]}]]],["zonos-logo",[[1,"zonos-logo",{"theme":[1],"width":[1]}]]],["zonos-text",[[1,"zonos-text",{"textColor":[1,"text-color"],"size":[1],"type":[1],"weight":[2],"content":[1],"ready":[32]}]]],["zonos-hello-dialog",[[1,"zonos-hello-dialog",{"isOpen":[4,"is-open"],"setIsOpen":[16],"mobileLocationOverride":[1,"mobile-location-override"],"animateFromLeftOverride":[4,"animate-from-left-override"],"appearanceSettings":[16],"restrictedItems":[16],"welcomeMessage":[32],"showCountrySelect":[32],"showLanguageSelect":[32]},[[4,"click","globalClickHandler"]],{"isOpen":["isOpenHandler"]}]]],["zonos-notification",[[1,"zonos-notification",{"notificationArray":[32],"showNotification":[64]}]]],["zonos-payment",[[2,"zonos-payment",{"titleText":[1,"title-text"],"stripe":[32],"stripeElements":[32]},null,{"stripeElements":["watchInitStripe"],"stripe":["watchInitStripe"]}]]],["zonos-shipping-rich-radio",[[1,"zonos-shipping-rich-radio",{"items":[16],"borderColor":[1,"border-color"],"borderStyle":[1,"border-style"],"theme":[1],"initialSelectedValue":[8,"initial-selected-value"],"selectedItem":[32]}]]],["zonos-badge_2",[[1,"zonos-badge",{"bold":[4],"badgeColor":[1,"badge-color"],"icon":[16],"iconRight":[4,"icon-right"],"size":[1],"rounded":[4]}],[1,"zonos-tooltip",{"label":[1],"subtitle":[1],"showTooltip":[32]}]]],["zonos-country-flag",[[1,"zonos-country-flag",{"countryCode":[1,"country-code"],"size":[2]}]]],["zonos-banner",[[1,"zonos-banner",{"bannerTitle":[1,"banner-title"],"intent":[1],"hasContent":[32]}]]],["zonos-icon",[[1,"zonos-icon",{"autoHeight":[4,"auto-height"],"iconColor":[1,"icon-color"],"content":[1],"size":[2]}]]],["zonos-button_2",[[1,"zonos-button",{"buttonColor":[1,"button-color"],"backgroundColor":[1,"background-color"],"borderStyle":[1,"border-style"],"isDisabled":[4,"is-disabled"],"icon":[16],"iconRight":[4,"icon-right"],"size":[1],"variant":[1],"noBackground":[4,"no-background"],"noPaddingLeft":[4,"no-padding-left"],"noPaddingRight":[4,"no-padding-right"],"loading":[4],"theme":[1],"hasIcon":[32],"hasContent":[32]},[[2,"click","clickHandler"]],{"icon":["iconChangeHandler"]}],[1,"zonos-spinner",{"size":[2],"spinnerColor":[1,"spinner-color"]}]]],["zonos-select-dialog-header_2",[[1,"zonos-select-dialog-header",{"handleOnClose":[16],"label":[1]}],[1,"zonos-v-stack",{"spacing":[2]}]]],["zonos-card_2",[[1,"zonos-language-select",{"handleOnClose":[16]}],[1,"zonos-card",{"actions":[16],"footerActions":[16],"footerContent":[16],"footerHeight":[2,"footer-height"],"label":[16],"spacing":[1]}]]],["zonos-country-select_3",[[1,"zonos-country-select",{"handleOnClose":[16],"inputValue":[32]}],[1,"zonos-hello-dialog-footer",{"appearanceSettings":[16],"setShowCountrySelect":[16],"setShowLanguageSelect":[16]}],[1,"zonos-custom-message",{"icon":[1],"message":[1]}]]],["zonos-address_4",[[2,"zonos-address",{"type":[1],"titleText":[1,"title-text"],"defaultAddress":[16],"stripe":[32],"hasInvalidCharacters":[32],"isDirtyAddress":[32]},null,{"stripe":["watchInitStripe"]}],[1,"zonos-checkbox",{"backgroundColor":[1,"background-color"],"label":[1],"isChecked":[4,"is-checked"],"isDisabled":[4,"is-disabled"],"size":[2],"fontSize":[1,"font-size"],"borderStyle":[1,"border-style"]}],[2,"zonos-link-authentication",{"titleText":[1,"title-text"],"stripe":[32]},null,{"stripe":["watchInitStripe"]}],[1,"zonos-collapse",{"collapsed":[4],"collapseSize":[2,"collapse-size"],"height":[32],"iframe":[32]}]]],["zonos-cart-items_10",[[2,"zonos-customer-info",{"continueLoading":[4,"continue-loading"],"submitBtnType":[1,"submit-btn-type"],"submitBtnColor":[1,"submit-btn-color"],"defaultAddress":[16],"disabled":[32],"hasInvalidShippingCharacters":[32],"hasInvalidBillingCharacters":[32]},null,{"disabled":["watchFormComplete"]}],[1,"zonos-checkout-footer",{"mobile":[4],"dataTheme":[1,"data-theme"],"showLanguageDialog":[32],"isMobile":[32]},[[4,"click","handleGlobalClick"]],{"mobile":["handleMobileChange"]}],[2,"zonos-checkout-payment",{"paymentError":[4,"payment-error"],"submitBtnType":[1,"submit-btn-type"],"continueLoading":[4,"continue-loading"],"submitBtnColor":[1,"submit-btn-color"],"disabled":[32]},null,{"disabled":["watchFormComplete"]}],[2,"zonos-shipping",{"continueLoading":[4,"continue-loading"],"submitBtnColor":[1,"submit-btn-color"],"submitBtnType":[1,"submit-btn-type"],"selectedShippingMethod":[32],"isSelecting":[32],"disabled":[32],"serviceLevels":[32]},null,{"disabled":["watchFormComplete"]}],[1,"zonos-cart-subtotal"],[1,"zonos-checkout-finish",{"borderRadius":[1,"border-radius"],"storybookForceStatus":[1,"storybook-force-status"],"overrideNotification":[16],"isLoading":[32],"notificationType":[32],"notificationTitle":[32],"notificationMessages":[32],"order":[32]}],[1,"zonos-dialog",{"open":[4],"headerText":[1,"header-text"],"width":[1],"height":[1],"noHeader":[4,"no-header"],"noBodyPadding":[4,"no-body-padding"],"noBorder":[4,"no-border"],"borderStyle":[1,"border-style"],"noCloseButton":[4,"no-close-button"],"noClickOutside":[4,"no-click-outside"],"mobile":[4],"isLoading":[4,"is-loading"],"isMobile":[32]},[[9,"resize","handleWindowResize"]]],[1,"zonos-checkout-progress-tabs",{"tabColor":[1,"tab-color"],"backgroundColor":[1,"background-color"],"setTabItems":[64],"setTabSelected":[64]}],[1,"zonos-review",{"mobile":[4],"collapsed":[4],"isMobile":[32]},[[9,"resize","handleWindowResize"]]],[1,"zonos-cart-items",{"errorImages":[32]}]]]], options);
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export { defineCustomElements };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { z as zonosStore } from './zonosStore-
|
|
1
|
+
import { r as handleFetch, l as localizationStore, a as log } from './cart-6cfd7560.js';
|
|
2
|
+
import { z as zonosStore } from './zonosStore-e5f3d4da.js';
|
|
3
3
|
|
|
4
4
|
const trackConversionEvent = async (eventName, metadata) => {
|
|
5
5
|
var _a, _b;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, d as getElement } from './index-dd40cc85.js';
|
|
2
|
-
import { j as stripeStore, d as logError, l as localizationStore, t as translate, n as stripeStorePrefetchLandedCost } from './cart-
|
|
3
|
-
import { z as zonosStore, d as zonosStoreFontFamily } from './zonosStore-
|
|
2
|
+
import { j as stripeStore, d as logError, l as localizationStore, t as translate, n as stripeStorePrefetchLandedCost } from './cart-6cfd7560.js';
|
|
3
|
+
import { z as zonosStore, d as zonosStoreFontFamily } from './zonosStore-e5f3d4da.js';
|
|
4
4
|
import { i as isCheckoutMobile } from './isCheckoutMobile-8846dccb.js';
|
|
5
5
|
import { c as classes } from './classes-0d95c529.js';
|
|
6
|
-
import { g as getBorderRadius } from './getBorderRadius-
|
|
7
|
-
import { i as isDarkColor } from './isDarkColor-
|
|
6
|
+
import { g as getBorderRadius } from './getBorderRadius-c5fb7746.js';
|
|
7
|
+
import { i as isDarkColor } from './isDarkColor-810fcaa5.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Check if the given address object contains non-latin characters
|
|
@@ -189,7 +189,7 @@ const ZonosAddress = class {
|
|
|
189
189
|
}
|
|
190
190
|
render() {
|
|
191
191
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
192
|
-
return (h(Host, { key: '
|
|
192
|
+
return (h(Host, { key: '94a81dc71b5425ac0ab7868bc55072fdd695fa7d', class: "zonos--address zonos--elements" }, h("zonos-text", { key: '5bddb83ba17b50b779820fd9bdf0630ce03274b5', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("div", { key: '0f076c843b1997b8e1290caf2b8fe18b78114f65', class: "zonos--address-component" }), this.hasInvalidCharacters && (h("zonos-banner", { bannerTitle: translate('Please ensure your text uses the Latin alphabet only (A-Z, a-z).'), intent: "error" }))));
|
|
193
193
|
}
|
|
194
194
|
get el() { return getElement(this); }
|
|
195
195
|
static get watchers() { return {
|
|
@@ -237,14 +237,14 @@ const ZonosCheckbox = class {
|
|
|
237
237
|
? 'var(--amino-gray-800)'
|
|
238
238
|
: 'var(--amino-gray-0)';
|
|
239
239
|
const borderStyle = getBorderRadius(this.borderStyle, '4px');
|
|
240
|
-
return (h(Host, { key: '
|
|
240
|
+
return (h(Host, { key: '20c925f03d3659edde22d4e075aab5ac7323efc1', class: classes(['zonos--elements zonos--checkbox']), style: {
|
|
241
241
|
'--background-color': backgroundColor,
|
|
242
242
|
'--border-radius': borderStyle,
|
|
243
243
|
'--font-family': zonosStoreFontFamily(),
|
|
244
244
|
'--size': `${this.size}px`,
|
|
245
|
-
} }, h("label", { key: '
|
|
245
|
+
} }, h("label", { key: 'c2a0fd9fa8f3aebed3bc996647bfb88299822257', class: classes([this.isDisabled && 'disabled']) }, h("input", { key: 'c3293e1ac102b874eccd2ef9494f94c5da3e28e1', checked: this.isChecked, disabled: this.isDisabled, hidden: true, onChange: e => {
|
|
246
246
|
this.checkboxSelected.emit(e.target.checked);
|
|
247
|
-
}, type: "checkbox" }), h("span", { key: '
|
|
247
|
+
}, type: "checkbox" }), h("span", { key: '8d0a39007516ee7f9700f40f3fab20f21161a045', class: "checkmark-container" }, h("svg", { key: 'ee310e0aa1d06f7c81272cac5991dc5c34e19655', class: "checkmark", color: checkmarkColor, fill: "none", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '44611f270e104bc421f50aaccbce1b059e8aa15f', "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", { size: this.fontSize }, this.label)))));
|
|
248
248
|
}
|
|
249
249
|
};
|
|
250
250
|
ZonosCheckbox.style = ZonosCheckboxStyle0;
|
|
@@ -294,10 +294,10 @@ const ZonosCollapse = class {
|
|
|
294
294
|
// set overflow to hidden to prevent content from showing when collapsed
|
|
295
295
|
this.el.style.overflow = 'hidden';
|
|
296
296
|
}
|
|
297
|
-
return (h(Host, { key: '
|
|
297
|
+
return (h(Host, { key: '032f5818dd8394b5111927907c8fa135a55fef5c', class: 'zonos--elements zonos--collapse', style: {
|
|
298
298
|
'--font-family': zonosStoreFontFamily(),
|
|
299
299
|
height: this.getElementHeight(),
|
|
300
|
-
} }, h("div", { key: '
|
|
300
|
+
} }, h("div", { key: '5ddbf406c93f37c9e23375f11dd8439934c0d2a5' }, h("iframe", { key: 'b3efa8bc198918dbb3284e8ce658ffca6249eaa8', class: "height-change-listener", tabindex: "-1", title: "collapse-height-change-listener" }), h("slot", { key: 'ffcd123c3a046e62855a650da9972cde94a7774c' }))));
|
|
301
301
|
}
|
|
302
302
|
get el() { return getElement(this); }
|
|
303
303
|
};
|
|
@@ -338,7 +338,7 @@ const ZonosLinkAuthentication = class {
|
|
|
338
338
|
}
|
|
339
339
|
render() {
|
|
340
340
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
341
|
-
return (h(Host, { key: '
|
|
341
|
+
return (h(Host, { key: 'a434761e3f237cd44971e458512c7649f214eb4d', class: "zonos--link-authentication zonos--elements" }, h("zonos-text", { key: '0c350ff6dabb1c71376e4e6539a68613d7174189', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("div", { key: 'e9cc2bd1e68b64e2fed41851a0d2f2be40583337', class: "zonos--link-authentication-component" })));
|
|
342
342
|
}
|
|
343
343
|
get el() { return getElement(this); }
|
|
344
344
|
static get watchers() { return {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host } from './index-dd40cc85.js';
|
|
2
|
-
import { d as zonosStoreFontFamily } from './zonosStore-
|
|
2
|
+
import { d as zonosStoreFontFamily } from './zonosStore-e5f3d4da.js';
|
|
3
3
|
import { c as classes } from './classes-0d95c529.js';
|
|
4
4
|
|
|
5
5
|
const zonosBadgeCss = ":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 .zonos--badge-content{display:-ms-flexbox;display:flex;gap:var(--amino-space-8);font-size:var(--amino-font-size-s);padding:4px 8px;text-align:center;border-radius:var(--amino-radius-6);background-color:var(--amino-gray-100);color:var(--amino-gray-800);-ms-flex-align:center;align-items:center}:host p{font-weight:600;line-height:16px}:host .icon-right svg{-ms-flex-order:2;order:2}:host .small{padding:2px 8px}:host .rounded{border-radius:20px}:host .bold{background-color:var(--amino-gray-600);color:var(--amino-gray-100)}:host .blue{background-color:var(--amino-blue-100);color:var(--amino-blue-800)}:host .blue.bold{background-color:var(--amino-blue-600);color:var(--amino-blue-100)}:host .green{background-color:var(--amino-green-100);color:var(--amino-green-800)}:host .green.bold{background-color:var(--amino-green-600);color:var(--amino-green-100)}:host .red{background-color:var(--amino-red-100);color:var(--amino-red-800)}:host .red.bold{background-color:var(--amino-red-600);color:var(--amino-red-100)}:host .orange{background-color:var(--amino-orange-100);color:var(--amino-orange-800)}:host .orange.bold{background-color:var(--amino-orange-600);color:var(--amino-orange-100)}:host .purple{background-color:var(--amino-purple-100);color:var(--amino-purple-800)}:host .purple.bold{background-color:var(--amino-purple-600);color:var(--amino-purple-100)}:host .cyan{background-color:var(--amino-cyan-100);color:var(--amino-cyan-800)}:host .cyan.bold{background-color:var(--amino-cyan-600);color:var(--amino-cyan-100)}";
|
|
@@ -16,16 +16,16 @@ const ZonosBadge = class {
|
|
|
16
16
|
this.rounded = false;
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
|
-
return (h(Host, { key: '
|
|
19
|
+
return (h(Host, { key: '9e6c4ec2341f5ca076a3c54bcce347db9e83bb38', class: classes(['zonos--elements zonos--badge']), style: {
|
|
20
20
|
'--font-family': zonosStoreFontFamily(),
|
|
21
|
-
} }, h("div", { key: '
|
|
21
|
+
} }, h("div", { key: 'ad4d88e7ac5b8e8a617bb904faeaad73d426c271', class: classes([
|
|
22
22
|
'zonos--badge-content',
|
|
23
23
|
this.badgeColor,
|
|
24
24
|
this.rounded && 'rounded',
|
|
25
25
|
this.iconRight && 'icon-right',
|
|
26
26
|
this.size,
|
|
27
27
|
this.bold && 'bold',
|
|
28
|
-
]) }, this.icon, h("zonos-text", { key: '
|
|
28
|
+
]) }, this.icon, h("zonos-text", { key: 'd0709a3ffbcc65703933273f614bbb71792b8f61' }, h("slot", { key: '997537e7fd4102a35a1e16789fa7b5444ee85a5a' })))));
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
31
|
ZonosBadge.style = ZonosBadgeStyle0;
|
|
@@ -41,10 +41,10 @@ const ZonosTooltip = class {
|
|
|
41
41
|
this.showTooltip = false;
|
|
42
42
|
}
|
|
43
43
|
render() {
|
|
44
|
-
return (h(Host, { key: '
|
|
44
|
+
return (h(Host, { key: 'a23ad45e8f96b88b0feaf17690c6bdb75aacb12c', class: "zonos--elements" }, h("div", { key: 'b057f5ae304921f5fd50536cb5b7fb493120f1e7', class: "zonos--tooltip", onMouseEnter: () => (this.showTooltip = true), onMouseLeave: () => (this.showTooltip = false) }, h("slot", { key: '396ac2ec3fcc8d49f8a346d1059cb096ef2e2874' }), h("div", { key: '4aa607dcc9c4c675224e9d7effd1e8ad2bdee097', class: classes([
|
|
45
45
|
this.showTooltip && 'zonos--show-tooltip',
|
|
46
46
|
'zonos--tooltip-content',
|
|
47
|
-
]) }, h("zonos-text", { key: '
|
|
47
|
+
]) }, h("zonos-text", { key: 'e69a1883f21f277be88e892a99ae6e66a9829a1c', size: "s", textColor: "gray-0", type: "boldLabel" }, this.label), h("zonos-text", { key: 'cb901c3cd7d0931f157eddef8fe4286fbd66b66b', size: "xs", textColor: "gray-0" }, this.subtitle)))));
|
|
48
48
|
}
|
|
49
49
|
};
|
|
50
50
|
ZonosTooltip.style = ZonosTooltipStyle0;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host } from './index-dd40cc85.js';
|
|
2
|
-
import { d as zonosStoreFontFamily } from './zonosStore-
|
|
2
|
+
import { d as zonosStoreFontFamily } from './zonosStore-e5f3d4da.js';
|
|
3
3
|
import { c as classes } from './classes-0d95c529.js';
|
|
4
4
|
|
|
5
5
|
const zonosBannerCss = ":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{border-radius:var(--amino-radius-10);padding:var(--amino-space-16);background:var(--amino-gray-100)}:host .zonos--container{display:grid;-ms-flex-align:center;align-items:center;grid-template-areas:\"icon header\" \". content\";grid-template-columns:32px auto 0}:host .zonos--icon-wrapper{grid-area:icon;display:-ms-flexbox;display:flex;justify-self:start}:host .zonos--header-wrapper{margin-top:var(--amino-space-0);grid-area:header}:host .zonos--content-wrapper{grid-area:content;margin-top:var(--amino-space-4)}:host(.info){background-color:var(--amino-blue-100);border:1px solid var(--amino-blue-200)}:host(.success){background-color:var(--amino-green-100);border:1px solid var(--amino-green-200)}:host(.error){background-color:var(--amino-red-100);border:1px solid var(--amino-red-200)}:host(.warning){background-color:var(--amino-orange-100);border:1px solid var(--amino-orange-200)}";
|