@zonos/elements 1.3.125 → 1.3.127
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-7e5608b4.js → cart-3bdaf092.js} +6 -4
- package/dist/cjs/index.cjs.js +7 -7
- package/dist/cjs/{isColorVariable-6f5a9608.js → isColorVariable-525dbfa7.js} +2 -0
- package/dist/cjs/{paypal-4c479f19.js → paypal-2f48ab8d.js} +1 -1
- package/dist/cjs/zonos-address_7.cjs.entry.js +23 -23
- package/dist/cjs/zonos-badge.cjs.entry.js +5 -5
- package/dist/cjs/zonos-banner.cjs.entry.js +6 -6
- package/dist/cjs/zonos-button_3.cjs.entry.js +16 -16
- package/dist/cjs/zonos-card.cjs.entry.js +8 -8
- package/dist/cjs/zonos-cart-items_13.cjs.entry.js +34 -34
- package/dist/cjs/zonos-checkout.cjs.entry.js +12 -7
- package/dist/cjs/zonos-collapse.cjs.entry.js +4 -4
- package/dist/cjs/zonos-component.cjs.entry.js +1 -1
- package/dist/cjs/zonos-controller.cjs.entry.js +2 -2
- package/dist/cjs/zonos-country-flag.cjs.entry.js +4 -4
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +14 -14
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +2 -2
- package/dist/cjs/zonos-hello.cjs.entry.js +2 -2
- package/dist/cjs/zonos-input.cjs.entry.js +7 -7
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +9 -9
- package/dist/cjs/zonos-link.cjs.entry.js +1 -1
- package/dist/cjs/zonos-logo.cjs.entry.js +6 -6
- package/dist/cjs/zonos-notification_3.cjs.entry.js +10 -9
- package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +5 -5
- package/dist/cjs/zonos-text.cjs.entry.js +5 -5
- package/dist/cjs/zonos-toggle.cjs.entry.js +4 -4
- package/dist/cjs/zonos-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/zonos-v-stack.cjs.entry.js +4 -4
- package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-display/zonos-address-display.css +2 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-form/zonos-address-form.css +2 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-update-dialog.css +2 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-items/zonos-cart-items.css +2 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-restricted-items/zonos-cart-restricted-items.css +2 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.css +2 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.css +3 -3
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +4 -4
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.css +2 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.css +3 -3
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.css +5 -5
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +9 -4
- package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.css +3 -3
- package/dist/collection/components/checkout/zonos-checkout/zonos-review/zonos-review.css +2 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.css +3 -3
- package/dist/collection/components/common/zonos-badge/zonos-badge.css +2 -2
- package/dist/collection/components/common/zonos-badge/zonos-badge.js +4 -4
- package/dist/collection/components/common/zonos-banner/zonos-banner.css +2 -2
- package/dist/collection/components/common/zonos-banner/zonos-banner.js +5 -5
- package/dist/collection/components/common/zonos-button/zonos-button.css +12 -12
- package/dist/collection/components/common/zonos-button/zonos-button.js +7 -7
- package/dist/collection/components/common/zonos-card/zonos-card.css +4 -4
- package/dist/collection/components/common/zonos-card/zonos-card.js +7 -7
- package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.css +7 -7
- package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +7 -7
- package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.css +5 -5
- package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +5 -5
- package/dist/collection/components/common/zonos-collapse/zonos-collapse.css +2 -2
- package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +3 -3
- package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.css +4 -4
- package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +6 -6
- package/dist/collection/components/common/zonos-country-flag/zonos-country-flag.css +2 -2
- package/dist/collection/components/common/zonos-country-flag/zonos-country-flag.js +2 -2
- package/dist/collection/components/common/zonos-country-select/zonos-country-select.css +2 -2
- package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +3 -3
- package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.css +2 -2
- package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +3 -3
- package/dist/collection/components/common/zonos-dialog/zonos-dialog.css +7 -7
- package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +8 -8
- package/dist/collection/components/common/zonos-icon/zonos-icon.css +6 -6
- package/dist/collection/components/common/zonos-icon/zonos-icon.js +4 -4
- package/dist/collection/components/common/zonos-input/zonos-input.css +5 -5
- package/dist/collection/components/common/zonos-input/zonos-input.js +6 -6
- package/dist/collection/components/common/zonos-language-select/zonos-language-select.css +2 -2
- package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +3 -3
- package/dist/collection/components/common/zonos-link/zonos-link.css +2 -2
- package/dist/collection/components/common/zonos-logo/zonos-logo.css +4 -4
- package/dist/collection/components/common/zonos-logo/zonos-logo.js +5 -5
- package/dist/collection/components/common/zonos-notification/zonos-notification.css +3 -3
- package/dist/collection/components/common/zonos-notification/zonos-notification.js +5 -3
- package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.css +2 -2
- package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.js +4 -4
- package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.css +2 -2
- package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +3 -3
- package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.css +8 -8
- package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.js +3 -3
- package/dist/collection/components/common/zonos-spinner/zonos-spinner.css +6 -6
- package/dist/collection/components/common/zonos-spinner/zonos-spinner.js +1 -1
- package/dist/collection/components/common/zonos-text/zonos-text.css +4 -4
- package/dist/collection/components/common/zonos-text/zonos-text.js +3 -3
- package/dist/collection/components/common/zonos-toggle/zonos-toggle.css +2 -2
- package/dist/collection/components/common/zonos-toggle/zonos-toggle.js +3 -3
- package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.css +2 -2
- package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.css +2 -2
- package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +3 -3
- package/dist/collection/components/common/zonos-virtual-scroll/zonos-virtual-scroll.css +2 -2
- package/dist/collection/components/component-template/zonos-component/zonos-component.css +2 -2
- package/dist/collection/components/hello/zonos-hello/zonos-hello.css +2 -2
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.css +3 -3
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +3 -3
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.css +2 -2
- package/dist/collection/components/main/zonos-controller.css +2 -2
- package/dist/collection/components/paypal/zonos-paypal-payment.css +2 -2
- package/dist/collection/components/stripe/zonos-address/zonos-address.css +2 -2
- package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.css +2 -2
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.css +2 -2
- package/dist/collection/components/utils/api/triggerBuildLandedCost.js +6 -4
- package/dist/collection/components/utils/isColorVariable.js +2 -0
- package/dist/esm/{cart-65c7d5f1.js → cart-519f08e3.js} +6 -4
- package/dist/esm/index.js +7 -7
- package/dist/esm/{isColorVariable-82457bef.js → isColorVariable-0a94004f.js} +2 -0
- package/dist/esm/{paypal-cd96efa7.js → paypal-d0a05eda.js} +1 -1
- package/dist/esm/zonos-address_7.entry.js +23 -23
- package/dist/esm/zonos-badge.entry.js +5 -5
- package/dist/esm/zonos-banner.entry.js +6 -6
- package/dist/esm/zonos-button_3.entry.js +16 -16
- package/dist/esm/zonos-card.entry.js +8 -8
- package/dist/esm/zonos-cart-items_13.entry.js +34 -34
- package/dist/esm/zonos-checkout.entry.js +12 -7
- package/dist/esm/zonos-collapse.entry.js +4 -4
- package/dist/esm/zonos-component.entry.js +1 -1
- package/dist/esm/zonos-controller.entry.js +2 -2
- package/dist/esm/zonos-country-flag.entry.js +4 -4
- package/dist/esm/zonos-country-select_4.entry.js +14 -14
- package/dist/esm/zonos-hello-dialog.entry.js +2 -2
- package/dist/esm/zonos-hello.entry.js +2 -2
- package/dist/esm/zonos-input.entry.js +7 -7
- package/dist/esm/zonos-language-select_2.entry.js +9 -9
- package/dist/esm/zonos-link.entry.js +1 -1
- package/dist/esm/zonos-logo.entry.js +6 -6
- package/dist/esm/zonos-notification_3.entry.js +10 -9
- package/dist/esm/zonos-shipping-rich-radio.entry.js +5 -5
- package/dist/esm/zonos-text.entry.js +5 -5
- package/dist/esm/zonos-toggle.entry.js +4 -4
- package/dist/esm/zonos-tooltip.entry.js +1 -1
- package/dist/esm/zonos-v-stack.entry.js +4 -4
- package/dist/esm-es5/{cart-65c7d5f1.js → cart-519f08e3.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/isColorVariable-0a94004f.js +1 -0
- package/dist/esm-es5/{paypal-cd96efa7.js → paypal-d0a05eda.js} +1 -1
- package/dist/esm-es5/zonos-address_7.entry.js +1 -1
- package/dist/esm-es5/zonos-badge.entry.js +1 -1
- package/dist/esm-es5/zonos-banner.entry.js +1 -1
- package/dist/esm-es5/zonos-button_3.entry.js +1 -1
- package/dist/esm-es5/zonos-card.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_13.entry.js +1 -1
- package/dist/esm-es5/zonos-checkout.entry.js +1 -1
- package/dist/esm-es5/zonos-collapse.entry.js +1 -1
- package/dist/esm-es5/zonos-component.entry.js +1 -1
- package/dist/esm-es5/zonos-controller.entry.js +1 -1
- package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
- package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
- package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm-es5/zonos-hello.entry.js +1 -1
- package/dist/esm-es5/zonos-input.entry.js +1 -1
- package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
- package/dist/esm-es5/zonos-link.entry.js +1 -1
- package/dist/esm-es5/zonos-logo.entry.js +1 -1
- package/dist/esm-es5/zonos-notification_3.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/zonos-toggle.entry.js +1 -1
- package/dist/esm-es5/zonos-tooltip.entry.js +1 -1
- package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
- package/dist/scripts/index.js +1 -1
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/p-0082eefd.system.entry.js +1 -0
- package/dist/zonos-elements/{p-f8827566.js → p-00ff4f4a.js} +1 -1
- package/dist/zonos-elements/p-0bc813a9.system.entry.js +1 -0
- package/dist/zonos-elements/p-0c6a933c.entry.js +1 -0
- package/dist/zonos-elements/p-0cb426b8.entry.js +1 -0
- package/dist/zonos-elements/p-167b7fa8.system.entry.js +1 -0
- package/dist/zonos-elements/p-1e4d8228.entry.js +1 -0
- package/dist/zonos-elements/{p-988b6d65.system.js → p-1ed1ce99.system.js} +1 -1
- package/dist/zonos-elements/{p-c6f74e2c.js → p-2402e12c.js} +1 -1
- package/dist/zonos-elements/p-2906956b.entry.js +1 -0
- package/dist/zonos-elements/p-2db962f9.system.entry.js +1 -0
- package/dist/zonos-elements/p-311f6702.entry.js +1 -0
- package/dist/zonos-elements/p-3b5f49f6.system.entry.js +1 -0
- package/dist/zonos-elements/{p-b2262a9c.entry.js → p-3dbfe639.entry.js} +1 -1
- package/dist/zonos-elements/p-4170b042.entry.js +1 -0
- package/dist/zonos-elements/p-4cd1e79c.system.entry.js +1 -0
- package/dist/zonos-elements/p-4fee6e7f.system.entry.js +1 -0
- package/dist/zonos-elements/p-5610934b.entry.js +1 -0
- package/dist/zonos-elements/p-57d93236.entry.js +1 -0
- package/dist/zonos-elements/p-5ac777a7.system.entry.js +1 -0
- package/dist/zonos-elements/p-61380d53.system.entry.js +1 -0
- package/dist/zonos-elements/p-685e395e.entry.js +1 -0
- package/dist/zonos-elements/p-6a2bed3e.system.entry.js +1 -0
- package/dist/zonos-elements/p-6b0a8709.system.entry.js +1 -0
- package/dist/zonos-elements/p-6c047faf.system.entry.js +1 -0
- package/dist/zonos-elements/p-6de5611e.entry.js +1 -0
- package/dist/zonos-elements/{p-148e7eb7.entry.js → p-723c9d4d.entry.js} +1 -1
- package/dist/zonos-elements/p-76d03238.entry.js +1 -0
- package/dist/zonos-elements/{p-66303c89.system.entry.js → p-798d715c.entry.js} +1 -1
- package/dist/zonos-elements/p-8b3d9796.system.entry.js +1 -0
- package/dist/zonos-elements/p-8ca3b73a.entry.js +1 -0
- package/dist/zonos-elements/p-8df3d5d0.system.entry.js +1 -0
- package/dist/zonos-elements/p-970527fe.entry.js +1 -0
- package/dist/zonos-elements/p-9833f37d.system.entry.js +1 -0
- package/dist/zonos-elements/p-a372a9a0.entry.js +1 -0
- package/dist/zonos-elements/p-a7eaa9ad.entry.js +1 -0
- package/dist/zonos-elements/{p-0ceb45a9.system.js → p-abbfde44.system.js} +1 -1
- package/dist/zonos-elements/p-ae393255.js +1 -0
- package/dist/zonos-elements/p-bc9987f2.system.entry.js +1 -0
- package/dist/zonos-elements/{p-f8c7bc1d.entry.js → p-bf2f9095.entry.js} +1 -1
- package/dist/zonos-elements/p-c5d1217f.system.js +1 -0
- package/dist/zonos-elements/p-c78dd680.system.js +1 -1
- package/dist/zonos-elements/p-cf7a5119.entry.js +1 -0
- package/dist/zonos-elements/p-d6f1b6fa.system.entry.js +1 -0
- package/dist/zonos-elements/p-e2cda105.system.entry.js +1 -0
- package/dist/zonos-elements/p-e6fad32a.system.entry.js +1 -0
- package/dist/zonos-elements/p-e933cbf0.system.entry.js +1 -0
- package/dist/zonos-elements/p-ea8663b7.entry.js +1 -0
- package/dist/zonos-elements/p-eb6d1e26.system.entry.js +1 -0
- package/dist/zonos-elements/p-eca920dc.system.entry.js +1 -0
- package/dist/zonos-elements/p-efffbaec.entry.js +1 -0
- package/dist/zonos-elements/p-f50f48da.entry.js +1 -0
- package/dist/zonos-elements/{p-80a4d1e0.system.js → p-f7d56ce5.system.js} +1 -1
- package/dist/zonos-elements/p-f962fc6a.system.entry.js +1 -0
- package/dist/zonos-elements/p-fe899c47.entry.js +1 -0
- package/dist/zonos-elements/p-ff0a79e6.system.entry.js +1 -0
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/isColorVariable-82457bef.js +0 -1
- package/dist/zonos-elements/p-0cedb17a.system.entry.js +0 -1
- package/dist/zonos-elements/p-139fd9b9.entry.js +0 -1
- package/dist/zonos-elements/p-149612d6.entry.js +0 -1
- package/dist/zonos-elements/p-14c67ae2.system.entry.js +0 -1
- package/dist/zonos-elements/p-1aed6403.system.entry.js +0 -1
- package/dist/zonos-elements/p-1d1c3377.entry.js +0 -1
- package/dist/zonos-elements/p-1e4f7997.system.entry.js +0 -1
- package/dist/zonos-elements/p-21970d09.system.entry.js +0 -1
- package/dist/zonos-elements/p-26be7ea7.entry.js +0 -1
- package/dist/zonos-elements/p-28b79606.system.entry.js +0 -1
- package/dist/zonos-elements/p-30476a6b.entry.js +0 -1
- package/dist/zonos-elements/p-3e2aa5e2.entry.js +0 -1
- package/dist/zonos-elements/p-3f5b6e7a.system.entry.js +0 -1
- package/dist/zonos-elements/p-4161a0f2.system.entry.js +0 -1
- package/dist/zonos-elements/p-44991bcf.entry.js +0 -1
- package/dist/zonos-elements/p-46d96a0d.entry.js +0 -1
- package/dist/zonos-elements/p-4a107b6f.system.js +0 -1
- package/dist/zonos-elements/p-4a3c1449.system.entry.js +0 -1
- package/dist/zonos-elements/p-4c6033ed.system.entry.js +0 -1
- package/dist/zonos-elements/p-4c64f0ea.system.entry.js +0 -1
- package/dist/zonos-elements/p-55d26aaa.system.entry.js +0 -1
- package/dist/zonos-elements/p-56370c8b.system.entry.js +0 -1
- package/dist/zonos-elements/p-66eb66d1.js +0 -1
- package/dist/zonos-elements/p-6de38759.entry.js +0 -1
- package/dist/zonos-elements/p-7a4170ba.entry.js +0 -1
- package/dist/zonos-elements/p-80733970.system.entry.js +0 -1
- package/dist/zonos-elements/p-99ab4440.entry.js +0 -1
- package/dist/zonos-elements/p-9a89de05.system.entry.js +0 -1
- package/dist/zonos-elements/p-a435037c.entry.js +0 -1
- package/dist/zonos-elements/p-a7c24425.system.entry.js +0 -1
- package/dist/zonos-elements/p-ada1c7b6.entry.js +0 -1
- package/dist/zonos-elements/p-b2247065.entry.js +0 -1
- package/dist/zonos-elements/p-b31095d5.system.entry.js +0 -1
- package/dist/zonos-elements/p-bb53bce8.entry.js +0 -1
- package/dist/zonos-elements/p-d13f3ea0.system.entry.js +0 -1
- package/dist/zonos-elements/p-d3472a00.system.entry.js +0 -1
- package/dist/zonos-elements/p-d91da318.entry.js +0 -1
- package/dist/zonos-elements/p-daba3f99.system.entry.js +0 -1
- package/dist/zonos-elements/p-de2fe7f5.entry.js +0 -1
- package/dist/zonos-elements/p-e19034a3.entry.js +0 -1
- package/dist/zonos-elements/p-e46bd90a.entry.js +0 -1
- package/dist/zonos-elements/p-eeb2c2f4.system.entry.js +0 -1
- package/dist/zonos-elements/p-f0b32dd6.entry.js +0 -1
- package/dist/zonos-elements/p-fe855df9.system.entry.js +0 -1
- package/dist/zonos-elements/p-ff6e4ea6.entry.js +0 -1
- package/dist/zonos-elements/p-fff6e3d9.system.entry.js +0 -1
package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.css
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
:host {
|
|
2
|
-
font-family: var(--font-family, Inter), Inter;
|
|
2
|
+
font-family: var(--zonos--font-family, Inter), Inter;
|
|
3
3
|
display: block;
|
|
4
4
|
white-space: normal;
|
|
5
5
|
}
|
|
6
6
|
:host * {
|
|
7
|
-
font-family: var(--font-family, Inter), Inter;
|
|
7
|
+
font-family: var(--zonos--font-family, Inter), Inter;
|
|
8
8
|
}
|
|
9
9
|
:host img {
|
|
10
10
|
max-width: 100%;
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
}
|
|
38
38
|
:host input {
|
|
39
39
|
margin: 0;
|
|
40
|
-
accent-color: var(--selected-border-color, var(--zonos-elements-blue-600));
|
|
40
|
+
accent-color: var(--zonos--selected-border-color, var(--zonos-elements-blue-600));
|
|
41
41
|
}
|
|
42
42
|
:host .zonos--shipping-rich-radio-item {
|
|
43
43
|
display: flex;
|
|
@@ -49,18 +49,18 @@
|
|
|
49
49
|
border: 1px solid var(--zonos-elements-gray-200);
|
|
50
50
|
}
|
|
51
51
|
:host .zonos--shipping-rich-radio-item:first-child {
|
|
52
|
-
border-top-left-radius: var(--border-radius, var(--zonos-elements-radius-10));
|
|
53
|
-
border-top-right-radius: var(--border-radius, var(--zonos-elements-radius-10));
|
|
52
|
+
border-top-left-radius: var(--zonos--border-radius, var(--zonos-elements-radius-10));
|
|
53
|
+
border-top-right-radius: var(--zonos--border-radius, var(--zonos-elements-radius-10));
|
|
54
54
|
}
|
|
55
55
|
:host .zonos--shipping-rich-radio-item:last-child {
|
|
56
|
-
border-bottom-right-radius: var(--border-radius, var(--zonos-elements-radius-10));
|
|
57
|
-
border-bottom-left-radius: var(--border-radius, var(--zonos-elements-radius-10));
|
|
56
|
+
border-bottom-right-radius: var(--zonos--border-radius, var(--zonos-elements-radius-10));
|
|
57
|
+
border-bottom-left-radius: var(--zonos--border-radius, var(--zonos-elements-radius-10));
|
|
58
58
|
}
|
|
59
59
|
:host .zonos--shipping-rich-radio-item:not(:last-child) {
|
|
60
60
|
border-bottom: none;
|
|
61
61
|
}
|
|
62
62
|
:host .zonos--shipping-rich-radio-item.selected {
|
|
63
|
-
outline: 1px solid var(--selected-border-color, var(--zonos-elements-blue-600));
|
|
63
|
+
outline: 1px solid var(--zonos--selected-border-color, var(--zonos-elements-blue-600));
|
|
64
64
|
outline-offset: -1px;
|
|
65
65
|
}
|
|
66
66
|
:host .zonos--shipping-info {
|
package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.js
CHANGED
|
@@ -15,10 +15,10 @@ export class ZonosShippingRichRadio {
|
|
|
15
15
|
? `var(--zonos-elements-${usedColor})`
|
|
16
16
|
: usedColor;
|
|
17
17
|
return {
|
|
18
|
-
'--border-radius': getBorderRadius({
|
|
18
|
+
'--zonos--border-radius': getBorderRadius({
|
|
19
19
|
overrideBorderStyle: this.borderStyle,
|
|
20
20
|
}),
|
|
21
|
-
'--selected-border-color': secondaryColor || 'unset',
|
|
21
|
+
'--zonos--selected-border-color': secondaryColor || 'unset',
|
|
22
22
|
};
|
|
23
23
|
};
|
|
24
24
|
this.items = undefined;
|
|
@@ -29,7 +29,7 @@ export class ZonosShippingRichRadio {
|
|
|
29
29
|
}
|
|
30
30
|
render() {
|
|
31
31
|
var _a;
|
|
32
|
-
return (h(Host, { key: '
|
|
32
|
+
return (h(Host, { key: '34abb7026ed7d382870f912b5e5c5631e4f06f76', class: "zonos--shipping-rich-radio zonos--elements", "data-theme": this.theme, style: Object.assign(Object.assign({}, this.getRadioItemStyleVariables()), { '--zonos--font-family': zonosStoreFontFamily() }) }, (_a = this.items) === null || _a === void 0 ? void 0 : _a.map(item => {
|
|
33
33
|
var _a;
|
|
34
34
|
const selected = ((_a = this.selectedItem) === null || _a === void 0 ? void 0 : _a.value) === item.value;
|
|
35
35
|
return (h("div", { "aria-hidden": "true", class: classes([
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
:host {
|
|
2
|
-
font-family: var(--font-family, Inter), Inter;
|
|
2
|
+
font-family: var(--zonos--font-family, Inter), Inter;
|
|
3
3
|
display: block;
|
|
4
4
|
white-space: normal;
|
|
5
5
|
}
|
|
6
6
|
:host * {
|
|
7
|
-
font-family: var(--font-family, Inter), Inter;
|
|
7
|
+
font-family: var(--zonos--font-family, Inter), Inter;
|
|
8
8
|
}
|
|
9
9
|
:host img {
|
|
10
10
|
max-width: 100%;
|
|
@@ -34,13 +34,13 @@
|
|
|
34
34
|
:host {
|
|
35
35
|
position: relative;
|
|
36
36
|
overflow: hidden;
|
|
37
|
-
width: var(--size);
|
|
38
|
-
height: var(--size);
|
|
37
|
+
width: var(--zonos--size);
|
|
38
|
+
height: var(--zonos--size);
|
|
39
39
|
display: inline-flex;
|
|
40
40
|
}
|
|
41
41
|
:host svg {
|
|
42
|
-
width: var(--size);
|
|
43
|
-
height: var(--size);
|
|
42
|
+
width: var(--zonos--size);
|
|
43
|
+
height: var(--zonos--size);
|
|
44
44
|
stroke: var(--zonos-elements-blue-600);
|
|
45
45
|
animation: rotate 2s linear infinite;
|
|
46
46
|
}
|
|
@@ -10,7 +10,7 @@ export class ZonosSpinner {
|
|
|
10
10
|
return null;
|
|
11
11
|
}
|
|
12
12
|
return (h(Host, { class: classes(['zonos--elements', this.spinnerColor]), style: {
|
|
13
|
-
'--size': `${this.size}px`,
|
|
13
|
+
'--zonos--size': `${this.size}px`,
|
|
14
14
|
} }, h("svg", { viewBox: "0 0 50 50" }, h("circle", { class: "track", cx: "25", cy: "25", fill: "none", id: "loading-spinner-circle", r: "20", "stroke-width": "5" }), h("circle", { cx: "25", cy: "25", fill: "none", id: "loading-spinner-circle", r: "20", "stroke-width": "5" }))));
|
|
15
15
|
}
|
|
16
16
|
static get is() { return "zonos-spinner"; }
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
:host {
|
|
2
|
-
font-family: var(--font-family, Inter), Inter;
|
|
2
|
+
font-family: var(--zonos--font-family, Inter), Inter;
|
|
3
3
|
display: block;
|
|
4
4
|
white-space: normal;
|
|
5
5
|
}
|
|
6
6
|
:host * {
|
|
7
|
-
font-family: var(--font-family, Inter), Inter;
|
|
7
|
+
font-family: var(--zonos--font-family, Inter), Inter;
|
|
8
8
|
}
|
|
9
9
|
:host img {
|
|
10
10
|
max-width: 100%;
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
:host {
|
|
35
|
-
color: var(--color);
|
|
35
|
+
color: var(--zonos--color);
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
:host(.zonos--text-size-3xl) > *, :host(.zonos--text-size-3xl) {
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
:host(.zonos--text-size-base) > *, :host(.zonos--text-size-base) {
|
|
55
|
-
font-size: var(--font-size-base, var(--zonos-elements-font-size-base));
|
|
55
|
+
font-size: var(--zonos--font-size-base, var(--zonos-elements-font-size-base));
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
:host(.zonos--text-size-s) > *, :host(.zonos--text-size-s) {
|
|
@@ -46,9 +46,9 @@ export class ZonosText {
|
|
|
46
46
|
`zonos--text-size-${textSize}`,
|
|
47
47
|
`zonos--text-weight-${textWeight}`,
|
|
48
48
|
]), style: styles({
|
|
49
|
-
'--color': actualTextColor,
|
|
50
|
-
'--font-family': zonosStoreFontFamily(),
|
|
51
|
-
'--font-size-base': zonosStore.appearance.fontSize
|
|
49
|
+
'--zonos--color': actualTextColor,
|
|
50
|
+
'--zonos--font-family': zonosStoreFontFamily(),
|
|
51
|
+
'--zonos--font-size-base': zonosStore.appearance.fontSize
|
|
52
52
|
? `${zonosStore.appearance.fontSize}px`
|
|
53
53
|
: undefined,
|
|
54
54
|
}) }, renderText()));
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
:host {
|
|
2
|
-
font-family: var(--font-family, Inter), Inter;
|
|
2
|
+
font-family: var(--zonos--font-family, Inter), Inter;
|
|
3
3
|
display: block;
|
|
4
4
|
white-space: normal;
|
|
5
5
|
}
|
|
6
6
|
:host * {
|
|
7
|
-
font-family: var(--font-family, Inter), Inter;
|
|
7
|
+
font-family: var(--zonos--font-family, Inter), Inter;
|
|
8
8
|
}
|
|
9
9
|
:host img {
|
|
10
10
|
max-width: 100%;
|
|
@@ -7,9 +7,9 @@ export class ZonosToggle {
|
|
|
7
7
|
this.value = undefined;
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
|
-
return (h(Host, { key: '
|
|
11
|
-
'--font-family': zonosStoreFontFamily(),
|
|
12
|
-
} }, h("div", { key: '
|
|
10
|
+
return (h(Host, { key: 'c49d16b02ca854ead2b2652cc1e39a423fd67251', class: classes(['zonos--elements zonos--toggle']), style: {
|
|
11
|
+
'--zonos--font-family': zonosStoreFontFamily(),
|
|
12
|
+
} }, h("div", { key: 'cda75445836db4a4d8466e840eac952a18b3ad48', class: "wrapper" }, this.options.map(option => {
|
|
13
13
|
const selected = option.value === this.value;
|
|
14
14
|
return (h("button", { class: classes(['zonos--option', selected && 'selected']), key: option.value, onClick: () => {
|
|
15
15
|
this.toggleChanged.emit(option.value);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
:host {
|
|
2
|
-
font-family: var(--font-family, Inter), Inter;
|
|
2
|
+
font-family: var(--zonos--font-family, Inter), Inter;
|
|
3
3
|
display: block;
|
|
4
4
|
white-space: normal;
|
|
5
5
|
}
|
|
6
6
|
:host * {
|
|
7
|
-
font-family: var(--font-family, Inter), Inter;
|
|
7
|
+
font-family: var(--zonos--font-family, Inter), Inter;
|
|
8
8
|
}
|
|
9
9
|
:host img {
|
|
10
10
|
max-width: 100%;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
:host {
|
|
2
|
-
font-family: var(--font-family, Inter), Inter;
|
|
2
|
+
font-family: var(--zonos--font-family, Inter), Inter;
|
|
3
3
|
display: block;
|
|
4
4
|
white-space: normal;
|
|
5
5
|
}
|
|
6
6
|
:host * {
|
|
7
|
-
font-family: var(--font-family, Inter), Inter;
|
|
7
|
+
font-family: var(--zonos--font-family, Inter), Inter;
|
|
8
8
|
}
|
|
9
9
|
:host img {
|
|
10
10
|
max-width: 100%;
|
|
@@ -7,9 +7,9 @@ export class VStack {
|
|
|
7
7
|
this.spacing = 24;
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
|
-
return (h(Host, { key: '
|
|
11
|
-
'--font-family': zonosStoreFontFamily(),
|
|
12
|
-
} }, h("div", { key: '
|
|
10
|
+
return (h(Host, { key: '1c12857cdab3dcbfae5135d40cbf276451bbcf81', style: {
|
|
11
|
+
'--zonos--font-family': zonosStoreFontFamily(),
|
|
12
|
+
} }, h("div", { key: '8c88f2390c758ed9961daf1d9f5cadb3bd67b928', class: classes(['vstack']), style: { 'grid-row-gap': `${this.spacing}px` } }, h("slot", { key: 'fa31c9a430b53b837d840827097a56acbd033b8e' }))));
|
|
13
13
|
}
|
|
14
14
|
static get is() { return "zonos-v-stack"; }
|
|
15
15
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
:host {
|
|
2
|
-
font-family: var(--font-family, Inter), Inter;
|
|
2
|
+
font-family: var(--zonos--font-family, Inter), Inter;
|
|
3
3
|
display: block;
|
|
4
4
|
white-space: normal;
|
|
5
5
|
}
|
|
6
6
|
:host * {
|
|
7
|
-
font-family: var(--font-family, Inter), Inter;
|
|
7
|
+
font-family: var(--zonos--font-family, Inter), Inter;
|
|
8
8
|
}
|
|
9
9
|
:host img {
|
|
10
10
|
max-width: 100%;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
:host {
|
|
2
|
-
font-family: var(--font-family, Inter), Inter;
|
|
2
|
+
font-family: var(--zonos--font-family, Inter), Inter;
|
|
3
3
|
display: block;
|
|
4
4
|
white-space: normal;
|
|
5
5
|
}
|
|
6
6
|
:host * {
|
|
7
|
-
font-family: var(--font-family, Inter), Inter;
|
|
7
|
+
font-family: var(--zonos--font-family, Inter), Inter;
|
|
8
8
|
}
|
|
9
9
|
:host img {
|
|
10
10
|
max-width: 100%;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
:host {
|
|
2
|
-
font-family: var(--font-family, Inter), Inter;
|
|
2
|
+
font-family: var(--zonos--font-family, Inter), Inter;
|
|
3
3
|
display: block;
|
|
4
4
|
white-space: normal;
|
|
5
5
|
}
|
|
6
6
|
:host * {
|
|
7
|
-
font-family: var(--font-family, Inter), Inter;
|
|
7
|
+
font-family: var(--zonos--font-family, Inter), Inter;
|
|
8
8
|
}
|
|
9
9
|
:host img {
|
|
10
10
|
max-width: 100%;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
:host {
|
|
2
|
-
font-family: var(--font-family, Inter), Inter;
|
|
2
|
+
font-family: var(--zonos--font-family, Inter), Inter;
|
|
3
3
|
display: block;
|
|
4
4
|
white-space: normal;
|
|
5
5
|
}
|
|
6
6
|
:host * {
|
|
7
|
-
font-family: var(--font-family, Inter), Inter;
|
|
7
|
+
font-family: var(--zonos--font-family, Inter), Inter;
|
|
8
8
|
}
|
|
9
9
|
:host img {
|
|
10
10
|
max-width: 100%;
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
text-align: left;
|
|
36
36
|
display: flex;
|
|
37
37
|
justify-content: space-between;
|
|
38
|
-
background: var(--primary-color, var(--zonos-elements-surface-color-secondary));
|
|
38
|
+
background: var(--zonos--primary-color, var(--zonos-elements-surface-color-secondary));
|
|
39
39
|
border-top: var(--zonos-elements-border);
|
|
40
40
|
padding: 12px;
|
|
41
41
|
align-items: center;
|
|
@@ -18,9 +18,9 @@ export class ZonosHelloDialogFooter {
|
|
|
18
18
|
const language = (_b = languages.find(x => x.code === localizationStore.selectedLocale)) === null || _b === void 0 ? void 0 : _b.translatedLabel;
|
|
19
19
|
// Only use gray-0 (white) when the background color is dark (apply inverted color if the element is using dark theme variable)
|
|
20
20
|
const mainColor = primaryColor && isDarkColor(primaryColor) ? 'white' : 'black';
|
|
21
|
-
return (h(Host, { key: 'a9b52a67a2db1967fe6fde4f19dc8d2785469f8a', class: "zonos--elements" }, h("div", { key: '
|
|
22
|
-
'--primary-color': primaryColor,
|
|
23
|
-
} }, h("a", { key: '
|
|
21
|
+
return (h(Host, { key: 'a9b52a67a2db1967fe6fde4f19dc8d2785469f8a', class: "zonos--elements" }, h("div", { key: '83ab5c0ef0cd0d3e59d5197d8d16e5cf8b6f9c54', class: "zonos--hello-dialog-footer", style: {
|
|
22
|
+
'--zonos--primary-color': primaryColor,
|
|
23
|
+
} }, h("a", { key: 'a87d05b7a59adc9362012ea8b19df45afc5f6b33', href: "https://zonos.com", target: "_blank", title: "Zonos website" }, h("zonos-icon", { key: 'b3ff790f651daa228b67354c972577093b731f2c', "aria-label": "Zonos Logo", autoHeight: true, content: ZonosIcon, iconColor: mainColor, size: 108 })), h("div", { key: '45c168a25c0d7d03d4fe70b05b7306cf7b784cd6', class: "zonos--hello-locale-wrapper" }, h("zonos-button", { key: '7263a0906b4e226c31ba6fdfa0c66c41c557d318', buttonColor: mainColor, icon: h("zonos-icon", { "aria-label": "Open language select", content: Globe, iconColor: mainColor }), onClick: () => this.setShowLanguageSelect(true), variant: "subtle" }, language), h("zonos-button", { key: '2f1789e1f8ac23b81b4c07c47a50a44b18baccfe', buttonColor: mainColor, icon: h("zonos-country-flag", { "aria-label": "Open country select", class: "zonos--footer-country-flag", countryCode: localizationStore.selectedCountryCode }), onClick: () => this.setShowCountrySelect(true), variant: "subtle" }, localizationStore.selectedCountryCode)))));
|
|
24
24
|
}
|
|
25
25
|
static get is() { return "zonos-hello-dialog-footer"; }
|
|
26
26
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
:host {
|
|
2
|
-
font-family: var(--font-family, Inter), Inter;
|
|
2
|
+
font-family: var(--zonos--font-family, Inter), Inter;
|
|
3
3
|
display: block;
|
|
4
4
|
white-space: normal;
|
|
5
5
|
}
|
|
6
6
|
:host * {
|
|
7
|
-
font-family: var(--font-family, Inter), Inter;
|
|
7
|
+
font-family: var(--zonos--font-family, Inter), Inter;
|
|
8
8
|
}
|
|
9
9
|
:host img {
|
|
10
10
|
max-width: 100%;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
:host {
|
|
2
|
-
font-family: var(--font-family, Inter), Inter;
|
|
2
|
+
font-family: var(--zonos--font-family, Inter), Inter;
|
|
3
3
|
display: block;
|
|
4
4
|
white-space: normal;
|
|
5
5
|
}
|
|
6
6
|
:host * {
|
|
7
|
-
font-family: var(--font-family, Inter), Inter;
|
|
7
|
+
font-family: var(--zonos--font-family, Inter), Inter;
|
|
8
8
|
}
|
|
9
9
|
:host img {
|
|
10
10
|
max-width: 100%;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
:host {
|
|
2
|
-
font-family: var(--font-family, Inter), Inter;
|
|
2
|
+
font-family: var(--zonos--font-family, Inter), Inter;
|
|
3
3
|
display: block;
|
|
4
4
|
white-space: normal;
|
|
5
5
|
}
|
|
6
6
|
:host * {
|
|
7
|
-
font-family: var(--font-family, Inter), Inter;
|
|
7
|
+
font-family: var(--zonos--font-family, Inter), Inter;
|
|
8
8
|
}
|
|
9
9
|
:host img {
|
|
10
10
|
max-width: 100%;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
:host {
|
|
2
|
-
font-family: var(--font-family, Inter), Inter;
|
|
2
|
+
font-family: var(--zonos--font-family, Inter), Inter;
|
|
3
3
|
display: block;
|
|
4
4
|
white-space: normal;
|
|
5
5
|
}
|
|
6
6
|
:host * {
|
|
7
|
-
font-family: var(--font-family, Inter), Inter;
|
|
7
|
+
font-family: var(--zonos--font-family, Inter), Inter;
|
|
8
8
|
}
|
|
9
9
|
:host img {
|
|
10
10
|
max-width: 100%;
|
package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.css
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
:host {
|
|
2
|
-
font-family: var(--font-family, Inter), Inter;
|
|
2
|
+
font-family: var(--zonos--font-family, Inter), Inter;
|
|
3
3
|
display: block;
|
|
4
4
|
white-space: normal;
|
|
5
5
|
}
|
|
6
6
|
:host * {
|
|
7
|
-
font-family: var(--font-family, Inter), Inter;
|
|
7
|
+
font-family: var(--zonos--font-family, Inter), Inter;
|
|
8
8
|
}
|
|
9
9
|
:host img {
|
|
10
10
|
max-width: 100%;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
:host {
|
|
2
|
-
font-family: var(--font-family, Inter), Inter;
|
|
2
|
+
font-family: var(--zonos--font-family, Inter), Inter;
|
|
3
3
|
display: block;
|
|
4
4
|
white-space: normal;
|
|
5
5
|
}
|
|
6
6
|
:host * {
|
|
7
|
-
font-family: var(--font-family, Inter), Inter;
|
|
7
|
+
font-family: var(--zonos--font-family, Inter), Inter;
|
|
8
8
|
}
|
|
9
9
|
:host img {
|
|
10
10
|
max-width: 100%;
|
|
@@ -2,7 +2,7 @@ import { prepCalculateLandedCost } from "./prepCalculateLandedCost";
|
|
|
2
2
|
import { fallbackApiList } from "../getNextFallbackApi";
|
|
3
3
|
import { handleFetch } from "../handleFetch";
|
|
4
4
|
export const triggerBuildLandedCost = async (buildLandedCost) => {
|
|
5
|
-
var _a, _b, _c, _d;
|
|
5
|
+
var _a, _b, _c, _d, _e;
|
|
6
6
|
const data = prepCalculateLandedCost();
|
|
7
7
|
const landedCost = await buildLandedCost({
|
|
8
8
|
billingAddress: data.billingAddress,
|
|
@@ -13,8 +13,10 @@ export const triggerBuildLandedCost = async (buildLandedCost) => {
|
|
|
13
13
|
shippingAddress: data.shippingAddress,
|
|
14
14
|
zonosApiRoute: fallbackApiList['vercel'],
|
|
15
15
|
});
|
|
16
|
-
if (!landedCost ||
|
|
17
|
-
|
|
16
|
+
if (!landedCost ||
|
|
17
|
+
// Only show errors if there are no rate back (checkoutSessionWorkflow) and there are errors
|
|
18
|
+
(!((_a = landedCost.checkoutSessionWorkflow) === null || _a === void 0 ? void 0 : _a.length) && ((_b = landedCost.errors) === null || _b === void 0 ? void 0 : _b.length))) {
|
|
19
|
+
throw new Error(`Failed to build landed cost: ${((_d = (_c = landedCost === null || landedCost === void 0 ? void 0 : landedCost.errors) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.message) || 'Unknown error'}`);
|
|
18
20
|
}
|
|
19
21
|
// Validate the landed cost object to make sure the returned value from buildLandedCost has a valid schema
|
|
20
22
|
const { errors, json } = await handleFetch('/api/zonos-elements/validate-landed-cost', {
|
|
@@ -25,7 +27,7 @@ export const triggerBuildLandedCost = async (buildLandedCost) => {
|
|
|
25
27
|
method: 'POST',
|
|
26
28
|
});
|
|
27
29
|
if (!json || errors.length) {
|
|
28
|
-
throw new Error(`Invalid landed cost object: ${((
|
|
30
|
+
throw new Error(`Invalid landed cost object: ${((_e = errors.find(Boolean)) === null || _e === void 0 ? void 0 : _e.message) || 'Unknown error'}`);
|
|
29
31
|
}
|
|
30
32
|
return landedCost;
|
|
31
33
|
};
|
|
@@ -2,6 +2,8 @@ export const isColorVariable = (color) => {
|
|
|
2
2
|
const isAminoVariable = color &&
|
|
3
3
|
// match --zonos-elements-<color>
|
|
4
4
|
(/--zonos-elements-/gi.test(color) ||
|
|
5
|
+
// match --zonos--<color>
|
|
6
|
+
/--zonos--/gi.test(color) ||
|
|
5
7
|
// match 'gray-0'
|
|
6
8
|
/(\-*)\w+-\d+/gi.test(color));
|
|
7
9
|
return (!!isAminoVariable &&
|
|
@@ -9354,7 +9354,7 @@ const prepCalculateLandedCost = () => {
|
|
|
9354
9354
|
};
|
|
9355
9355
|
|
|
9356
9356
|
const triggerBuildLandedCost = async (buildLandedCost) => {
|
|
9357
|
-
var _a, _b, _c, _d;
|
|
9357
|
+
var _a, _b, _c, _d, _e;
|
|
9358
9358
|
const data = prepCalculateLandedCost();
|
|
9359
9359
|
const landedCost = await buildLandedCost({
|
|
9360
9360
|
billingAddress: data.billingAddress,
|
|
@@ -9365,8 +9365,10 @@ const triggerBuildLandedCost = async (buildLandedCost) => {
|
|
|
9365
9365
|
shippingAddress: data.shippingAddress,
|
|
9366
9366
|
zonosApiRoute: fallbackApiList['vercel'],
|
|
9367
9367
|
});
|
|
9368
|
-
if (!landedCost ||
|
|
9369
|
-
|
|
9368
|
+
if (!landedCost ||
|
|
9369
|
+
// Only show errors if there are no rate back (checkoutSessionWorkflow) and there are errors
|
|
9370
|
+
(!((_a = landedCost.checkoutSessionWorkflow) === null || _a === void 0 ? void 0 : _a.length) && ((_b = landedCost.errors) === null || _b === void 0 ? void 0 : _b.length))) {
|
|
9371
|
+
throw new Error(`Failed to build landed cost: ${((_d = (_c = landedCost === null || landedCost === void 0 ? void 0 : landedCost.errors) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.message) || 'Unknown error'}`);
|
|
9370
9372
|
}
|
|
9371
9373
|
// Validate the landed cost object to make sure the returned value from buildLandedCost has a valid schema
|
|
9372
9374
|
const { errors, json } = await handleFetch('/api/zonos-elements/validate-landed-cost', {
|
|
@@ -9377,7 +9379,7 @@ const triggerBuildLandedCost = async (buildLandedCost) => {
|
|
|
9377
9379
|
method: 'POST',
|
|
9378
9380
|
});
|
|
9379
9381
|
if (!json || errors.length) {
|
|
9380
|
-
throw new Error(`Invalid landed cost object: ${((
|
|
9382
|
+
throw new Error(`Invalid landed cost object: ${((_e = errors.find(Boolean)) === null || _e === void 0 ? void 0 : _e.message) || 'Unknown error'}`);
|
|
9381
9383
|
}
|
|
9382
9384
|
return landedCost;
|
|
9383
9385
|
};
|
package/dist/esm/index.js
CHANGED
|
@@ -94,7 +94,7 @@ const getZonosQaUrl = () => {
|
|
|
94
94
|
return null;
|
|
95
95
|
}
|
|
96
96
|
const qaUrl = extractZonosQaUrl(window.location.href);
|
|
97
|
-
const cdnUrl = "https://v1.3.
|
|
97
|
+
const cdnUrl = "https://v1.3.127.js.zonos.com";
|
|
98
98
|
// when the qaUrl is not set and the built URL is from the test domain, use the test domain for testing
|
|
99
99
|
if (!qaUrl &&
|
|
100
100
|
(cdnUrl.includes('test.') ||
|
|
@@ -278,10 +278,10 @@ const zonosLoadUrl = (() => {
|
|
|
278
278
|
}
|
|
279
279
|
return null;
|
|
280
280
|
})();
|
|
281
|
-
const ZONOS_URL = "https://v1.3.
|
|
282
|
-
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.
|
|
283
|
-
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.
|
|
284
|
-
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.
|
|
281
|
+
const ZONOS_URL = "https://v1.3.127.js.zonos.com";
|
|
282
|
+
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.127";
|
|
283
|
+
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.127";
|
|
284
|
+
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.127";
|
|
285
285
|
const INTER_FONT_URL = 'https://rsms.me';
|
|
286
286
|
const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
|
|
287
287
|
const INTER_FONT_REGEX = /^https:\/\/rsms\.me\/inter\/inter\.css(.*)$/;
|
|
@@ -296,7 +296,7 @@ Zonos.zonosConversionTest = typeof window !== 'undefined' &&
|
|
|
296
296
|
!!window.location.search.match(/\?.*(&*)zonosConversionTest/);
|
|
297
297
|
Zonos._paypalMockResponse = null;
|
|
298
298
|
Zonos.isBigCommerce = false;
|
|
299
|
-
Zonos.releaseDate = "
|
|
299
|
+
Zonos.releaseDate = "1731357811312";
|
|
300
300
|
Zonos.isLegacyCheckout = false;
|
|
301
301
|
Zonos.showBaseForeign = typeof window !== 'undefined' &&
|
|
302
302
|
window.location.search.includes('zonosShowBaseForeign');
|
|
@@ -306,7 +306,7 @@ Zonos.showBaseForeign = typeof window !== 'undefined' &&
|
|
|
306
306
|
Zonos.isNpm = true;
|
|
307
307
|
Zonos.zonosQaUrl = null;
|
|
308
308
|
Zonos.zonosQaUrlApi = null;
|
|
309
|
-
Zonos.version = `v${"1.3.
|
|
309
|
+
Zonos.version = `v${"1.3.127"}`;
|
|
310
310
|
Zonos.modeAlerted = false;
|
|
311
311
|
Zonos.cartData = null;
|
|
312
312
|
Zonos.paypal = null;
|
|
@@ -2,6 +2,8 @@ const isColorVariable = (color) => {
|
|
|
2
2
|
const isAminoVariable = color &&
|
|
3
3
|
// match --zonos-elements-<color>
|
|
4
4
|
(/--zonos-elements-/gi.test(color) ||
|
|
5
|
+
// match --zonos--<color>
|
|
6
|
+
/--zonos--/gi.test(color) ||
|
|
5
7
|
// match 'gray-0'
|
|
6
8
|
/(\-*)\w+-\d+/gi.test(color));
|
|
7
9
|
return (!!isAminoVariable &&
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z as zonosStore, c as createStore } from './zonosStore-6b5bd87c.js';
|
|
2
|
-
import { d as cartStore, w as stripeStoreHandleInventoryCheck, p as translate, v as cartStoreNextStep, h as cartStoreClearCheckoutInterval } from './cart-
|
|
2
|
+
import { d as cartStore, w as stripeStoreHandleInventoryCheck, p as translate, v as cartStoreNextStep, h as cartStoreClearCheckoutInterval } from './cart-519f08e3.js';
|
|
3
3
|
import { h as handleFetch, l as log, a as logError, j as jsonParse } from './handleFetch-da1a9c5d.js';
|
|
4
4
|
import { t as tinycolor } from './isDarkColor-dc08fa26.js';
|
|
5
5
|
|