@zonos/elements 1.3.283 → 1.3.284
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-a1c00090.js → cart-94908542.js} +4 -4
- package/dist/cjs/{collect-e61eafca.js → collect-0c05e2b4.js} +3 -3
- package/dist/cjs/{debounce-9a712c79.js → debounce-7ca3c878.js} +1 -1
- package/dist/cjs/{getBorderRadius-4da24d7c.js → getBorderRadius-97fd5e02.js} +1 -1
- package/dist/cjs/{getContrastColor-2fb235b8.js → getContrastColor-956dfaf7.js} +2 -2
- package/dist/cjs/{getMissingRequiredShippingFields-a6c4f625.js → getMissingRequiredShippingFields-124b3f20.js} +1 -1
- package/dist/cjs/{hasInclusivePrice-e7b57e02.js → hasInclusivePrice-d0cd2007.js} +1 -1
- package/dist/cjs/index.cjs.js +7 -7
- package/dist/cjs/{invoice-ead45797.js → invoice-205fb5bc.js} +3 -3
- package/dist/cjs/{isContrastColor-ef24b7aa.js → isContrastColor-30f84a91.js} +1 -1
- package/dist/cjs/{isDarkColor-ebc74b4d.js → isDarkColor-a6e6fd5e.js} +1 -1
- package/dist/cjs/{localization-783849c8.js → localization-fb2ece37.js} +61 -2
- package/dist/cjs/{paypal-e1548f40.js → paypal-45ca5301.js} +5 -5
- package/dist/cjs/{placeTestOrder-d99b1fe2.js → placeTestOrder-302b6862.js} +2 -2
- package/dist/cjs/{renderCheckoutCurrency-c942fcba.js → renderCheckoutCurrency-1b0cd5f2.js} +2 -2
- package/dist/cjs/shouldShowLanguageSelect-82985128.js +13 -0
- package/dist/cjs/{submitGtag-74762255.js → submitGtag-8a25f001.js} +1 -1
- package/dist/cjs/{throttle-34f7abf1.js → throttle-366c204b.js} +2 -2
- package/dist/cjs/{updateCheckoutSessionAttributes-f595319d.js → updateCheckoutSessionAttributes-de7b1466.js} +1 -1
- package/dist/cjs/zonos-address-completion-dialog_7.cjs.entry.js +17 -17
- package/dist/cjs/zonos-address-display_2.cjs.entry.js +6 -6
- package/dist/cjs/zonos-address_4.cjs.entry.js +13 -13
- package/dist/cjs/zonos-airwallex-payment.cjs.entry.js +6 -6
- package/dist/cjs/zonos-badge.cjs.entry.js +4 -4
- package/dist/cjs/zonos-banner.cjs.entry.js +1 -1
- package/dist/cjs/zonos-button_3.cjs.entry.js +6 -6
- package/dist/cjs/zonos-card_5.cjs.entry.js +14 -14
- package/dist/cjs/zonos-cart-items_12.cjs.entry.js +29 -26
- package/dist/cjs/zonos-checkbox_2.cjs.entry.js +8 -8
- package/dist/cjs/zonos-checkout.cjs.entry.js +10 -10
- package/dist/cjs/zonos-collapse.cjs.entry.js +3 -3
- package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +9 -9
- package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +28 -26
- package/dist/cjs/zonos-collect.cjs.entry.js +10 -11
- package/dist/cjs/zonos-component.cjs.entry.js +1 -1
- package/dist/cjs/zonos-controller.cjs.entry.js +7 -7
- package/dist/cjs/zonos-country-flag.cjs.entry.js +2 -2
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +16 -14
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +7 -7
- package/dist/cjs/zonos-hello.cjs.entry.js +3 -3
- package/dist/cjs/zonos-input.cjs.entry.js +6 -6
- package/dist/cjs/zonos-invoice-cart-items_2.cjs.entry.js +11 -11
- package/dist/cjs/zonos-invoice-finish_5.cjs.entry.js +23 -21
- package/dist/cjs/zonos-invoice.cjs.entry.js +10 -11
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +6 -7
- package/dist/cjs/zonos-link.cjs.entry.js +1 -1
- package/dist/cjs/zonos-logo.cjs.entry.js +3 -3
- package/dist/cjs/zonos-policy-consent_2.cjs.entry.js +6 -6
- package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +5 -5
- package/dist/cjs/zonos-stripe-input.cjs.entry.js +7 -7
- package/dist/cjs/zonos-text.cjs.entry.js +1 -1
- package/dist/cjs/zonos-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/zonos-v-stack.cjs.entry.js +3 -3
- package/dist/cjs/{zonosStore-fee716c9.js → zonosStore-0af0b937.js} +3 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.js +8 -4
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +2 -2
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-cart-items/zonos-collect-cart-items.js +1 -1
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.js +2 -2
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/zonos-collect-footer.js +7 -4
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-review/zonos-collect-review.js +3 -3
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-subtotal/zonos-collect-subtotal.js +5 -5
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-cart-items/zonos-invoice-cart-items.js +2 -2
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-finish/zonos-invoice-finish.js +2 -2
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-footer/zonos-invoice-footer.js +7 -4
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-review/zonos-invoice-review.js +3 -3
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-subtotal/zonos-invoice-subtotal.js +2 -2
- package/dist/collection/components/common/zonos-badge/zonos-badge.js +3 -3
- package/dist/collection/components/common/zonos-button/zonos-button.js +3 -3
- package/dist/collection/components/common/zonos-card/zonos-card.js +4 -4
- package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +3 -3
- package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +3 -3
- package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +2 -2
- package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +3 -3
- 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.js +2 -2
- package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +3 -3
- package/dist/collection/components/common/zonos-h-stack/zonos-h-stack.js +2 -2
- package/dist/collection/components/common/zonos-input/zonos-input.js +4 -4
- package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +3 -3
- package/dist/collection/components/common/zonos-link/zonos-link.js +1 -1
- package/dist/collection/components/common/zonos-loading-overlay/zonos-loading-overlay.js +1 -1
- package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -2
- package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.js +3 -3
- package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
- package/dist/collection/components/common/zonos-skeleton/zonos-skeleton.js +1 -1
- package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.js +4 -4
- package/dist/collection/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.js +5 -5
- package/dist/collection/components/common/zonos-toggle/zonos-toggle.js +2 -2
- package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
- package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
- package/dist/collection/components/common/zonos-virtual-scroll/zonos-virtual-scroll.js +2 -2
- package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
- package/dist/collection/components/hello/zonos-hello/zonos-hello.js +1 -1
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +6 -3
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +5 -5
- package/dist/collection/components/main/zonos-controller.js +1 -1
- package/dist/collection/components/paypal/zonos-paypal-payment.js +1 -1
- package/dist/collection/components/store/hello/localization.js +20 -1
- package/dist/collection/components/store/zonosStore.js +3 -0
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +2 -2
- package/dist/collection/components/stripe/zonos-custom-address/zonos-address-suggestions/zonos-address-suggestions.js +2 -2
- package/dist/collection/components/stripe/zonos-custom-address/zonos-custom-address.js +2 -2
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
- package/dist/collection/components/utils/getSupportedLanguages.js +17 -0
- package/dist/collection/components/utils/shouldShowLanguageSelect.js +8 -0
- package/dist/collection/types/generated/graphql.frontend.types.js +4 -0
- package/dist/collection/types/generated/graphql.internal.types.js +302 -15
- package/dist/esm/{cart-93c36159.js → cart-2e407f7b.js} +4 -4
- package/dist/esm/{collect-42d4757a.js → collect-19428e18.js} +3 -3
- package/dist/esm/{debounce-c8d67b17.js → debounce-84ade9c2.js} +1 -1
- package/dist/esm/{getBorderRadius-dc982fe6.js → getBorderRadius-1f7be586.js} +1 -1
- package/dist/esm/{getContrastColor-af895b60.js → getContrastColor-4c0ae8c1.js} +2 -2
- package/dist/esm/{getMissingRequiredShippingFields-ebdccdcf.js → getMissingRequiredShippingFields-719b206f.js} +1 -1
- package/dist/esm/{hasInclusivePrice-4c12548f.js → hasInclusivePrice-d801be22.js} +1 -1
- package/dist/esm/index.js +7 -7
- package/dist/esm/{invoice-71471339.js → invoice-67a47785.js} +3 -3
- package/dist/esm/{isContrastColor-089de6ac.js → isContrastColor-9fa0d013.js} +1 -1
- package/dist/esm/{isDarkColor-039ef212.js → isDarkColor-939d8e9c.js} +1 -1
- package/dist/esm/{localization-754e7e8b.js → localization-36a4dc22.js} +60 -3
- package/dist/esm/{paypal-b1410e02.js → paypal-6dca6567.js} +5 -5
- package/dist/esm/{placeTestOrder-4267cafd.js → placeTestOrder-9563c89a.js} +2 -2
- package/dist/esm/{renderCheckoutCurrency-9a81e41c.js → renderCheckoutCurrency-282384f0.js} +2 -2
- package/dist/esm/shouldShowLanguageSelect-328f50e2.js +11 -0
- package/dist/esm/{submitGtag-dc54f5b9.js → submitGtag-71c450b6.js} +1 -1
- package/dist/esm/{throttle-44bfb6b5.js → throttle-c4c24e86.js} +2 -2
- package/dist/esm/{updateCheckoutSessionAttributes-e0a282d9.js → updateCheckoutSessionAttributes-23b222de.js} +1 -1
- package/dist/esm/zonos-address-completion-dialog_7.entry.js +17 -17
- package/dist/esm/zonos-address-display_2.entry.js +6 -6
- package/dist/esm/zonos-address_4.entry.js +13 -13
- package/dist/esm/zonos-airwallex-payment.entry.js +6 -6
- package/dist/esm/zonos-badge.entry.js +4 -4
- package/dist/esm/zonos-banner.entry.js +1 -1
- package/dist/esm/zonos-button_3.entry.js +6 -6
- package/dist/esm/zonos-card_5.entry.js +14 -14
- package/dist/esm/zonos-cart-items_12.entry.js +28 -25
- package/dist/esm/zonos-checkbox_2.entry.js +8 -8
- package/dist/esm/zonos-checkout.entry.js +10 -10
- package/dist/esm/zonos-collapse.entry.js +3 -3
- package/dist/esm/zonos-collect-cart-items_3.entry.js +9 -9
- package/dist/esm/zonos-collect-finish_6.entry.js +27 -25
- package/dist/esm/zonos-collect.entry.js +9 -10
- package/dist/esm/zonos-component.entry.js +1 -1
- package/dist/esm/zonos-controller.entry.js +7 -7
- package/dist/esm/zonos-country-flag.entry.js +2 -2
- package/dist/esm/zonos-country-select_4.entry.js +15 -13
- package/dist/esm/zonos-hello-dialog.entry.js +7 -7
- package/dist/esm/zonos-hello.entry.js +3 -3
- package/dist/esm/zonos-input.entry.js +6 -6
- package/dist/esm/zonos-invoice-cart-items_2.entry.js +11 -11
- package/dist/esm/zonos-invoice-finish_5.entry.js +22 -20
- package/dist/esm/zonos-invoice.entry.js +9 -10
- package/dist/esm/zonos-language-select_2.entry.js +6 -7
- package/dist/esm/zonos-link.entry.js +1 -1
- package/dist/esm/zonos-logo.entry.js +3 -3
- package/dist/esm/zonos-policy-consent_2.entry.js +6 -6
- package/dist/esm/zonos-shipping-rich-radio.entry.js +5 -5
- package/dist/esm/zonos-stripe-input.entry.js +7 -7
- package/dist/esm/zonos-text.entry.js +1 -1
- package/dist/esm/zonos-tooltip.entry.js +2 -2
- package/dist/esm/zonos-v-stack.entry.js +3 -3
- package/dist/esm/{zonosStore-b7d3f9b0.js → zonosStore-eca1e364.js} +3 -0
- package/dist/esm-es5/{cart-93c36159.js → cart-2e407f7b.js} +1 -1
- package/dist/esm-es5/{collect-42d4757a.js → collect-19428e18.js} +1 -1
- package/dist/esm-es5/{debounce-c8d67b17.js → debounce-84ade9c2.js} +1 -1
- package/dist/esm-es5/{getBorderRadius-dc982fe6.js → getBorderRadius-1f7be586.js} +1 -1
- package/dist/esm-es5/{getContrastColor-af895b60.js → getContrastColor-4c0ae8c1.js} +1 -1
- package/dist/esm-es5/{getMissingRequiredShippingFields-ebdccdcf.js → getMissingRequiredShippingFields-719b206f.js} +1 -1
- package/dist/esm-es5/{hasInclusivePrice-4c12548f.js → hasInclusivePrice-d801be22.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{invoice-71471339.js → invoice-67a47785.js} +1 -1
- package/dist/esm-es5/{isContrastColor-089de6ac.js → isContrastColor-9fa0d013.js} +1 -1
- package/dist/esm-es5/{isDarkColor-039ef212.js → isDarkColor-939d8e9c.js} +1 -1
- package/dist/esm-es5/{localization-754e7e8b.js → localization-36a4dc22.js} +1 -1
- package/dist/esm-es5/{paypal-b1410e02.js → paypal-6dca6567.js} +1 -1
- package/dist/esm-es5/{placeTestOrder-4267cafd.js → placeTestOrder-9563c89a.js} +1 -1
- package/dist/esm-es5/{renderCheckoutCurrency-9a81e41c.js → renderCheckoutCurrency-282384f0.js} +1 -1
- package/dist/esm-es5/shouldShowLanguageSelect-328f50e2.js +1 -0
- package/dist/esm-es5/{submitGtag-dc54f5b9.js → submitGtag-71c450b6.js} +1 -1
- package/dist/esm-es5/throttle-c4c24e86.js +1 -0
- package/dist/esm-es5/{updateCheckoutSessionAttributes-e0a282d9.js → updateCheckoutSessionAttributes-23b222de.js} +1 -1
- package/dist/esm-es5/zonos-address-completion-dialog_7.entry.js +1 -1
- package/dist/esm-es5/zonos-address-display_2.entry.js +1 -1
- package/dist/esm-es5/zonos-address_4.entry.js +1 -1
- package/dist/esm-es5/zonos-airwallex-payment.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_5.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
- package/dist/esm-es5/zonos-checkbox_2.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-collect-cart-items_3.entry.js +1 -1
- package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -1
- package/dist/esm-es5/zonos-collect.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-invoice-cart-items_2.entry.js +1 -1
- package/dist/esm-es5/zonos-invoice-finish_5.entry.js +1 -1
- package/dist/esm-es5/zonos-invoice.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-policy-consent_2.entry.js +1 -1
- package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
- package/dist/esm-es5/zonos-stripe-input.entry.js +1 -1
- package/dist/esm-es5/zonos-text.entry.js +1 -1
- package/dist/esm-es5/zonos-tooltip.entry.js +1 -1
- package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
- package/dist/esm-es5/{zonosStore-b7d3f9b0.js → zonosStore-eca1e364.js} +1 -1
- package/dist/scripts/index.d.ts +54 -34
- package/dist/scripts/index.js +1 -1
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/types/components/store/hello/localization.d.ts +1 -1
- package/dist/types/components/store/zonosStore.d.ts +7 -0
- package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
- package/dist/types/components/utils/getSupportedLanguages.d.ts +167 -0
- package/dist/types/components/utils/shouldShowLanguageSelect.d.ts +7 -0
- package/dist/types/scripts/cart/_setupCartDataWithSettings.d.ts +25 -24
- package/dist/types/types/generated/graphql.frontend.types.d.ts +9 -1
- package/dist/types/types/generated/graphql.frontend.types.ts +6 -1
- package/dist/types/types/generated/graphql.internal.types.d.ts +463 -107
- package/dist/types/types/generated/graphql.internal.types.ts +601 -102
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-b93013f7.system.entry.js → p-083a11cd.system.entry.js} +1 -1
- package/dist/zonos-elements/p-0b29169b.js +1 -0
- package/dist/zonos-elements/{p-62609f19.entry.js → p-0c972ddf.entry.js} +1 -1
- package/dist/zonos-elements/{p-f9f3155b.js → p-0c9fec73.js} +1 -1
- package/dist/zonos-elements/{p-f1dbeb85.system.entry.js → p-0e199a6c.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-76cdf517.js → p-0ff845ec.js} +1 -1
- package/dist/zonos-elements/p-1277abac.system.entry.js +1 -0
- package/dist/zonos-elements/p-14afffa8.system.js +1 -0
- package/dist/zonos-elements/{p-944282af.entry.js → p-171a7e1e.entry.js} +1 -1
- package/dist/zonos-elements/{p-f1aea919.js → p-1834f486.js} +1 -1
- package/dist/zonos-elements/p-1ac0c631.system.js +1 -0
- package/dist/zonos-elements/{p-fa80a973.entry.js → p-1be53c82.entry.js} +1 -1
- package/dist/zonos-elements/p-1cdd27ec.js +1 -0
- package/dist/zonos-elements/{p-c634546a.system.entry.js → p-1f8648c8.system.entry.js} +1 -1
- package/dist/zonos-elements/p-22e10b7d.entry.js +1 -0
- package/dist/zonos-elements/p-260ad739.system.entry.js +1 -0
- package/dist/zonos-elements/{p-9a417eeb.js → p-27660512.js} +1 -1
- package/dist/zonos-elements/{p-b567448d.system.js → p-2989da12.system.js} +1 -1
- package/dist/zonos-elements/p-29b60bf3.system.js +1 -1
- package/dist/zonos-elements/{p-5fceef56.system.js → p-2b8c96e3.system.js} +1 -1
- package/dist/zonos-elements/{p-7bdce9d4.js → p-2bbe9d91.js} +1 -1
- package/dist/zonos-elements/{p-07c21940.entry.js → p-2c2afed4.entry.js} +1 -1
- package/dist/zonos-elements/{p-32b53999.entry.js → p-2c44e013.entry.js} +1 -1
- package/dist/zonos-elements/{p-e0cbc7c7.entry.js → p-2c7a425d.entry.js} +1 -1
- package/dist/zonos-elements/{p-0e1f13ff.system.entry.js → p-2cab1746.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-1180a97c.system.entry.js → p-2cdd1b49.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-d1e84608.entry.js → p-2ce039e5.entry.js} +1 -1
- package/dist/zonos-elements/{p-26bf0c31.entry.js → p-3490b6d0.entry.js} +1 -1
- package/dist/zonos-elements/{p-72280783.system.js → p-3a13e58c.system.js} +1 -1
- package/dist/zonos-elements/{p-ef2c264c.entry.js → p-4671fde7.entry.js} +1 -1
- package/dist/zonos-elements/{p-e2b8936a.js → p-46cd14e5.js} +1 -1
- package/dist/zonos-elements/{p-0d183f19.system.js → p-4a20893e.system.js} +1 -1
- package/dist/zonos-elements/{p-6325ee77.system.js → p-4b159ff3.system.js} +1 -1
- package/dist/zonos-elements/{p-34d6eb83.js → p-502d6eeb.js} +1 -1
- package/dist/zonos-elements/{p-8fa3a8f8.system.entry.js → p-51e4e61a.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-496accce.system.js → p-551fa762.system.js} +1 -1
- package/dist/zonos-elements/p-5a491f28.js +1 -0
- package/dist/zonos-elements/{p-d74eda59.entry.js → p-5b990c91.entry.js} +1 -1
- package/dist/zonos-elements/{p-b7a03b08.entry.js → p-5ebb7ae6.entry.js} +1 -1
- package/dist/zonos-elements/p-60832726.system.js +1 -0
- package/dist/zonos-elements/{p-c515bc23.system.js → p-60a6b71d.system.js} +1 -1
- package/dist/zonos-elements/p-62f6a757.entry.js +1 -0
- package/dist/zonos-elements/p-65c1f51e.entry.js +1 -0
- package/dist/zonos-elements/{p-dab78981.system.js → p-6890e060.system.js} +1 -1
- package/dist/zonos-elements/{p-21f7d57b.entry.js → p-6afd5fab.entry.js} +1 -1
- package/dist/zonos-elements/{p-2837bfd2.js → p-6bdc5c96.js} +1 -1
- package/dist/zonos-elements/{p-e99654c1.system.entry.js → p-6dde1e85.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-e3d0d8ff.entry.js → p-6ee4e027.entry.js} +1 -1
- package/dist/zonos-elements/p-7176f582.entry.js +1 -0
- package/dist/zonos-elements/{p-333f6018.system.entry.js → p-76834a0a.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-f2431e47.entry.js → p-7ada039e.entry.js} +1 -1
- package/dist/zonos-elements/{p-d706852e.system.js → p-7fbbdb0f.system.js} +1 -1
- package/dist/zonos-elements/{p-9ceb3d1c.entry.js → p-8311edc7.entry.js} +1 -1
- package/dist/zonos-elements/p-8a0b8175.system.entry.js +1 -0
- package/dist/zonos-elements/p-8a6c4017.js +1 -0
- package/dist/zonos-elements/p-8b298971.system.entry.js +1 -0
- package/dist/zonos-elements/p-8be02f3a.system.js +1 -0
- package/dist/zonos-elements/{p-6be4c473.entry.js → p-8bfe5b2b.entry.js} +1 -1
- package/dist/zonos-elements/{p-fc45b3a5.entry.js → p-8e6338b9.entry.js} +1 -1
- package/dist/zonos-elements/{p-22f7120a.system.js → p-916228fb.system.js} +1 -1
- package/dist/zonos-elements/{p-4dba0e9b.system.entry.js → p-94722bf6.system.entry.js} +1 -1
- package/dist/zonos-elements/p-947e4402.system.entry.js +1 -0
- package/dist/zonos-elements/p-9639a8ed.entry.js +1 -0
- package/dist/zonos-elements/{p-f2511b86.system.entry.js → p-9ad640b2.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-781b3345.system.entry.js → p-9ecb9afc.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-5a37683b.system.entry.js → p-a04e2750.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-d93f4837.entry.js → p-a07e5011.entry.js} +1 -1
- package/dist/zonos-elements/{p-4a73906a.system.entry.js → p-a9ad74e5.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-db65c60b.system.entry.js → p-acb7dee1.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-3d28353a.js → p-adfbf57b.js} +1 -1
- package/dist/zonos-elements/{p-39399f67.entry.js → p-ae0de3e4.entry.js} +1 -1
- package/dist/zonos-elements/{p-59824ac6.entry.js → p-aecb5d61.entry.js} +1 -1
- package/dist/zonos-elements/{p-33dd7dab.entry.js → p-aed4ffb2.entry.js} +1 -1
- package/dist/zonos-elements/{p-e977562b.system.js → p-af19722c.system.js} +1 -1
- package/dist/zonos-elements/{p-e8bb4f3b.entry.js → p-b1e95f95.entry.js} +1 -1
- package/dist/zonos-elements/{p-59e4e0b6.system.entry.js → p-b4ae66cb.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-55c5977b.entry.js → p-bb09ee50.entry.js} +1 -1
- package/dist/zonos-elements/{p-21489ff1.system.entry.js → p-bcaffb85.system.entry.js} +1 -1
- package/dist/zonos-elements/p-bced320e.entry.js +1 -0
- package/dist/zonos-elements/p-be6cd28c.system.entry.js +1 -0
- package/dist/zonos-elements/p-c1631c9c.js +1 -0
- package/dist/zonos-elements/{p-cb376f03.entry.js → p-c77b049c.entry.js} +1 -1
- package/dist/zonos-elements/{p-6146bfaa.system.entry.js → p-ca87ada5.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-69871ab6.entry.js → p-cb49dcfe.entry.js} +1 -1
- package/dist/zonos-elements/p-cb4cb5a3.system.js +1 -0
- package/dist/zonos-elements/{p-aa7589de.system.entry.js → p-d20fe2c2.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-76a75da9.system.entry.js → p-d42bd250.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-97f15546.system.entry.js → p-d6a73125.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-19bbf4b3.js → p-dc80cb87.js} +1 -1
- package/dist/zonos-elements/{p-4a5fa892.system.entry.js → p-dd3c00d6.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-47a1d469.system.js → p-de58684b.system.js} +1 -1
- package/dist/zonos-elements/{p-1735a69b.js → p-e160b75f.js} +1 -1
- package/dist/zonos-elements/{p-2aebcfa8.system.entry.js → p-e1ef3984.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-4b9c7803.entry.js → p-e27b8e18.entry.js} +1 -1
- package/dist/zonos-elements/{p-1cff471a.system.entry.js → p-e2b4c082.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-29ca1415.system.entry.js → p-e32ee011.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-5b11bbca.system.entry.js → p-e4b07f7d.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-a2fe995b.js → p-e5c76a9b.js} +2 -2
- package/dist/zonos-elements/p-e8587f9f.system.entry.js +1 -0
- package/dist/zonos-elements/{p-cd5638b2.system.js → p-eb5f3451.system.js} +1 -1
- package/dist/zonos-elements/p-ebbda085.system.js +1 -0
- package/dist/zonos-elements/{p-daab3824.entry.js → p-f37150e8.entry.js} +1 -1
- package/dist/zonos-elements/p-f4720b0a.js +1 -0
- package/dist/zonos-elements/{p-38881097.js → p-f4acce01.js} +1 -1
- package/dist/zonos-elements/p-f59a0129.system.entry.js +1 -0
- package/dist/zonos-elements/{p-58da55e6.system.entry.js → p-f8356934.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-602de72d.system.js → p-fe5f05fc.system.js} +1 -1
- package/dist/zonos-elements/p-ff4e6811.entry.js +1 -0
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +3 -1
- package/dist/cjs/ILanguage-98b04442.js +0 -26
- package/dist/esm/ILanguage-cd6acb72.js +0 -24
- package/dist/esm-es5/ILanguage-cd6acb72.js +0 -1
- package/dist/esm-es5/throttle-44bfb6b5.js +0 -1
- package/dist/zonos-elements/p-007ff76a.entry.js +0 -1
- package/dist/zonos-elements/p-05cb0a0d.system.entry.js +0 -1
- package/dist/zonos-elements/p-065f3f66.system.entry.js +0 -1
- package/dist/zonos-elements/p-1af510ea.system.entry.js +0 -1
- package/dist/zonos-elements/p-30e9a6d7.system.js +0 -1
- package/dist/zonos-elements/p-342b062d.system.entry.js +0 -1
- package/dist/zonos-elements/p-35fd0fdb.js +0 -1
- package/dist/zonos-elements/p-3b479012.js +0 -1
- package/dist/zonos-elements/p-3d902845.entry.js +0 -1
- package/dist/zonos-elements/p-3dcb3794.entry.js +0 -1
- package/dist/zonos-elements/p-5c30d04b.js +0 -1
- package/dist/zonos-elements/p-67251274.system.js +0 -1
- package/dist/zonos-elements/p-73d1a554.entry.js +0 -1
- package/dist/zonos-elements/p-8eaf1316.js +0 -1
- package/dist/zonos-elements/p-97aceb11.js +0 -1
- package/dist/zonos-elements/p-a3c116d6.system.js +0 -1
- package/dist/zonos-elements/p-b0482924.entry.js +0 -1
- package/dist/zonos-elements/p-c43130a7.system.entry.js +0 -1
- package/dist/zonos-elements/p-c8a48cce.entry.js +0 -1
- package/dist/zonos-elements/p-c9e433c0.system.js +0 -1
- package/dist/zonos-elements/p-cc35d5f8.system.entry.js +0 -1
- package/dist/zonos-elements/p-d68425ad.js +0 -1
- package/dist/zonos-elements/p-dcf8ab79.entry.js +0 -1
- package/dist/zonos-elements/p-e2057ab0.system.entry.js +0 -1
- package/dist/zonos-elements/p-e8159288.system.entry.js +0 -1
- package/dist/zonos-elements/p-f29bcf8b.system.js +0 -1
- package/dist/zonos-elements/p-f61c0eef.system.js +0 -1
|
@@ -52,7 +52,7 @@ export class ZonosCollectSubtotal {
|
|
|
52
52
|
}
|
|
53
53
|
render() {
|
|
54
54
|
this.initSubtotalData();
|
|
55
|
-
return (h(Host, { key: '
|
|
55
|
+
return (h(Host, { key: 'f014c2ae733fe652d7d74349c0e12f93f46d71f5', class: "zonos--collect-subtotal zonos--elements" }, h("table", { key: '0bab186aa957c29f026151f5a112ff66bb42cb04', class: "zonos--collect-table" }, !!this.subtotals[translate('Duties')] && (h("tr", { key: '97c24d5f179f5b59bcb91bc156b1d3e15b811262', class: "zonos--row zonos--collect-duty" }, h("td", { key: 'cba67296a6d17c0cd665981eb19ba95706f68843', class: "zonos--column zonos--collect-subtotal-title" }, h("zonos-text", { key: '6665f531a8656c4a1e0f9761d919c150587a36fb', type: "semiBoldLabel" }, translate('Duties'))), h("td", { key: '20aeeee1fde0e63aaa168f32a5400ea82758a14c', class: "zonos--column" }), h("td", { key: '14994ca56e814f68fa3511098f5299a0942a295a', class: "zonos--column zonos--collect-subtotal-price" }, renderFallback({
|
|
56
56
|
content: (h("zonos-text", { type: "label" }, renderCheckoutCurrency({
|
|
57
57
|
amount: this.subtotals[translate('Duties')] || 0,
|
|
58
58
|
isForeign: true,
|
|
@@ -60,7 +60,7 @@ export class ZonosCollectSubtotal {
|
|
|
60
60
|
isLoading: collectStore.isFetchingShippingInfo,
|
|
61
61
|
skeletonHeight: '14px',
|
|
62
62
|
skeletonWidth: '150px',
|
|
63
|
-
})))), !!this.subtotals[translate('Taxes')] && (h("tr", { key: '
|
|
63
|
+
})))), !!this.subtotals[translate('Taxes')] && (h("tr", { key: 'cbbe4ddf13aabca9ff86b21317b067191f4155b8', class: "zonos--row zonos--collect-tax" }, h("td", { key: '675a36a92e136f3afd1960616e842e152cba6256', class: "zonos--column zonos--collect-subtotal-title" }, h("zonos-text", { key: '8896868f1e7f545d5b92c148a0f9812936ac2a9a', type: "semiBoldLabel" }, translate('Taxes'))), h("td", { key: '8a4c29f6d2d513fd7da8be7b1ab695794f3a99ab', class: "zonos--column" }), h("td", { key: 'c15f7a872e59cce222a674acb55388dd18bfb74a', class: "zonos--column zonos--collect-subtotal-price" }, renderFallback({
|
|
64
64
|
content: (h("zonos-text", { type: "label" }, renderCheckoutCurrency({
|
|
65
65
|
amount: this.subtotals[translate('Taxes')] || 0,
|
|
66
66
|
isForeign: true,
|
|
@@ -68,7 +68,7 @@ export class ZonosCollectSubtotal {
|
|
|
68
68
|
isLoading: collectStore.isFetchingShippingInfo,
|
|
69
69
|
skeletonHeight: '14px',
|
|
70
70
|
skeletonWidth: '150px',
|
|
71
|
-
})))), !!this.subtotals[translate('Fees')] && (h("tr", { key: '
|
|
71
|
+
})))), !!this.subtotals[translate('Fees')] && (h("tr", { key: '4cf155874e4446b9ecab121cbaceba2328323359', class: "zonos--row zonos--collect-fee" }, h("td", { key: '3efcb4779f34f35a2398eb661f4b799b6b4480c7', class: "zonos--column zonos--collect-subtotal-title" }, h("zonos-text", { key: '41d30bb15d216663cd507f2c92d6639b5559708c', type: "semiBoldLabel" }, translate('Fees'))), h("td", { key: 'ef8259d337fb047d8979f5008d2d46f3fc76b007', class: "zonos--column" }), h("td", { key: 'e0430efffbe23880a776953ba6a05b0cea268df4', class: "zonos--column zonos--collect-subtotal-price" }, renderFallback({
|
|
72
72
|
content: (h("zonos-text", { type: "label" }, renderCheckoutCurrency({
|
|
73
73
|
amount: this.subtotals[translate('Fees')] || 0,
|
|
74
74
|
isForeign: true,
|
|
@@ -76,7 +76,7 @@ export class ZonosCollectSubtotal {
|
|
|
76
76
|
isLoading: collectStore.isFetchingShippingInfo,
|
|
77
77
|
skeletonHeight: '14px',
|
|
78
78
|
skeletonWidth: '150px',
|
|
79
|
-
})))), h("tr", { key: '
|
|
79
|
+
})))), h("tr", { key: '279ddddfc6e9fe88bc1f16aeaeb6464737ec212f', class: "zonos--row zonos--collect-spacing" }, h("td", { key: 'de88842e26eb39938b573fc2ac89915d9f6708ba', class: "zonos--column", colSpan: 3 })), h("tr", { key: '48ecfc5852f1cb25b7816503f3279a3cffc1a581', class: "zonos--row zonos--collect-total zonos--collect-total-subtotal" }, h("td", { key: '06e65acfd5dd213481f415dc2475d9353e18ee53', class: "zonos--column" }), h("td", { key: 'b5ae37799d471defdb983a9167b96aa5e176f78e', class: "zonos--column zonos--collect-subtotal-title" }, h("zonos-text", { key: '52afa80c7b0eeda13093c26ce031dab4e4a62ee8', type: "label" }, translate('Subtotal'))), h("td", { key: '840e0413b9c0d651ba7de6529d7c6581f165c047', class: "zonos--column zonos--collect-subtotal-price" }, renderFallback({
|
|
80
80
|
content: (h("zonos-text", { type: "label" }, renderCheckoutCurrency({
|
|
81
81
|
amount: collectStore.amountDutyTaxFeeTotal || 0,
|
|
82
82
|
isForeign: true,
|
|
@@ -84,7 +84,7 @@ export class ZonosCollectSubtotal {
|
|
|
84
84
|
isLoading: collectStore.isFetchingShippingInfo,
|
|
85
85
|
skeletonHeight: '14px',
|
|
86
86
|
skeletonWidth: '150px',
|
|
87
|
-
}))), h("tr", { key: '
|
|
87
|
+
}))), h("tr", { key: '62ffc4102084c920e8bde4527415ea93d8ae8292', class: "zonos--row zonos--collect-total" }, h("td", { key: 'ef199898aa67686f1c36d2d0c73d1695443e81a9', class: "zonos--column" }), h("td", { key: '1bd5949e640823841ac7425a46b519482b975c37', class: "zonos--column zonos--collect-subtotal-title" }, h("zonos-text", { key: '96d53a1ffd935ac98cd5560419cc7d5395945da4', type: "semiBoldLabel" }, translate('Customs fees total'))), h("td", { key: '008f69a34b557f2660426acccafe925f6b554293', class: "zonos--column zonos--collect-subtotal-price" }, renderFallback({
|
|
88
88
|
content: (h("zonos-text", { type: "semiBoldLabel" }, renderCheckoutCurrency({
|
|
89
89
|
amount: collectStore.amountDutyTaxFeeTotal || 0,
|
|
90
90
|
isForeign: true,
|
|
@@ -18,10 +18,10 @@ export class ZonosInvoiceCartItems {
|
|
|
18
18
|
}
|
|
19
19
|
render() {
|
|
20
20
|
const nonRestrictedItems = cartStore.items.filter(item => !item.isRestricted);
|
|
21
|
-
return (h(Host, { key: '
|
|
21
|
+
return (h(Host, { key: '48cbe765b1096303cf0f2b051b0bac3911fba19b', class: classes([
|
|
22
22
|
'zonos--invoice-cart-items zonos--elements',
|
|
23
23
|
this.isMobile && 'mobile',
|
|
24
|
-
]) }, h("table", { key: '
|
|
24
|
+
]) }, h("table", { key: '83a2f9d2de381d1f941f5d09681b3a8e58a38a08', class: "zonos--cart-table" }, h("tbody", { key: '5fbce46a1069457eb578ea737b42f05982aa5867' }, nonRestrictedItems.map(item => {
|
|
25
25
|
var _a, _b, _c, _d;
|
|
26
26
|
const invoiceId = (_b = (_a = item.attributes) === null || _a === void 0 ? void 0 : _a.find(metadata => metadata.key === 'invoiceId' || metadata.key === 'INVOICE_ID')) === null || _b === void 0 ? void 0 : _b.value;
|
|
27
27
|
const invoiceCreatedAt = (_d = (_c = item.attributes) === null || _c === void 0 ? void 0 : _c.find(metadata => metadata.key === 'invoiceCreatedAt')) === null || _d === void 0 ? void 0 : _d.value;
|
|
@@ -260,11 +260,11 @@ export class ZonosInvoiceFinish {
|
|
|
260
260
|
}
|
|
261
261
|
render() {
|
|
262
262
|
const cartId = window.Zonos.cartId;
|
|
263
|
-
return (h(Host, { key: '
|
|
263
|
+
return (h(Host, { key: '755581819b6a2e9d97e0faf671320e9390a3000a', class: "zonos--checkout-finish zonos--elements", style: {
|
|
264
264
|
'--zonos--border-radius': getBorderRadius({
|
|
265
265
|
overrideBorderStyle: this.borderRadius,
|
|
266
266
|
}),
|
|
267
|
-
} }, !this.isLoading && (h("div", { key: '
|
|
267
|
+
} }, !this.isLoading && (h("div", { key: 'a5112a4c35f95d80d567d1d9ca690c297f75bba8', class: "zonos--finish-details" }, h("div", { key: 'f17f25e741a7a846e4d0d653f2e67c6b36ebd77a', class: "zonos--group" }, this.notificationType === 'success' ? (h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon, iconColor: 'red-800', size: 50 })), h("zonos-text", { key: '1169bd299d16f1b063de9638c6c6fce00cf9d0a6', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), this.confirmationId && (h("zonos-badge", { key: 'db6aebf906ad52207c8bc898c856b7a2a7f061e1', badgeColor: "gray" }, this.confirmationId)), h("zonos-text", { key: 'fd5516196ec5f645718b7fbf0c9de66ab322505b', class: "zonos--subtitle", textColor: "gray-600" }, this.notificationMessages.map(message => (h(Fragment, null, message, h("br", null))))), this.order && cartId && (h("div", { key: 'f50f1e9ed26e609346cdf3bdc1f93689d3c99d06', class: "zonos--button-container" }, h("zonos-button", { key: '3dadbbfe5113e02412bb6b890b4d2923101e3c31', onClick: () => {
|
|
268
268
|
window.open(this.getReceiptUrl({ cartId }), '_blank');
|
|
269
269
|
}, size: "lg", variant: "primary" }, translate('View receipt')))))))));
|
|
270
270
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { h, Host, } from "@stencil/core";
|
|
1
|
+
import { Fragment, h, Host, } from "@stencil/core";
|
|
2
2
|
import { localizationStore } from "../../../store/hello/localization";
|
|
3
3
|
import { translate } from "../../../store/translationStore";
|
|
4
4
|
import { isInvoiceMobile, isInvoiceTablet, } from "../../../utils/checkout/isInvoiceMobileTablet";
|
|
5
5
|
import { classes } from "../../../utils/classes";
|
|
6
|
+
import { shouldShowLanguageSelect } from "../../../utils/shouldShowLanguageSelect";
|
|
6
7
|
import { languages } from "../../../../types/ILanguage";
|
|
7
8
|
// eslint-disable-next-line no-relative-import-paths/no-relative-import-paths
|
|
8
9
|
import ChevronDownIcon from "./assets/chevronDownIcon.svg";
|
|
@@ -44,18 +45,20 @@ export class ZonosInvoiceFooter {
|
|
|
44
45
|
}
|
|
45
46
|
render() {
|
|
46
47
|
var _a;
|
|
48
|
+
// label resolves against every language, not just the offered ones, so the current
|
|
49
|
+
// locale always renders even if the merchant later drops it from the selector
|
|
47
50
|
const languageLabel = (_a = languages.find(x => x.code === localizationStore.selectedLocale)) === null || _a === void 0 ? void 0 : _a.label;
|
|
48
51
|
// reverse color when on desktop. With the coversheet backdrop, the color should be white
|
|
49
52
|
const colorDesktop = 'gray-1000';
|
|
50
|
-
return (h(Host, { key: '
|
|
53
|
+
return (h(Host, { key: '1cd5499e17c070498d65ebbca71d0cbe3c825456', class: classes([
|
|
51
54
|
'zonos--elements',
|
|
52
55
|
this.isMobile && 'mobile',
|
|
53
56
|
this.isTablet && 'tablet',
|
|
54
|
-
]) }, h("div", { key: '
|
|
57
|
+
]) }, h("div", { key: '2f31caade367c351d84571034eda59179c227084', class: "zonos--invoice-footer" }, h("div", { key: '25f127514ad98939aee122c6b4772198e095b26d', class: "zonos--invoice-locale-wrapper" }, shouldShowLanguageSelect() && (h(Fragment, { key: '03d37a0e0e94cf42d74a5c59905f7e7219533274' }, h("zonos-button", { key: '76aab1e78afa3a51f579f865a24591acea0baadc', buttonColor: colorDesktop, class: "zonos--invoice-footer-language-button", icon: h("zonos-icon", { "aria-label": "Language select", content: Globe, iconColor: colorDesktop }), onClick: () => this.toggleLanguageDialog(), variant: "subtle" }, h("span", { key: '28642dac198b7c61bef48d211c8a820e0c8d1fcc', class: "zonos--invoice-locale-label" }, languageLabel, h("zonos-icon", { key: '364b048befa8c5f45b6869f18b90b27da4b37056', "aria-hidden": "true", class: "zonos--invoice-locale-chevron", content: ChevronDownIcon, iconColor: colorDesktop, size: 18 }))), h("div", { key: 'ed4b425741e6aecc49882993be57da58de7d437b', class: classes([
|
|
55
58
|
'zonos--invoice-language-dialog',
|
|
56
59
|
this.showLanguageDialog &&
|
|
57
60
|
'zonos--invoice-language-dialog-open',
|
|
58
|
-
]) }, h("zonos-language-select", { key: '
|
|
61
|
+
]) }, h("zonos-language-select", { key: 'e4c5e31e8cfdf0ca52a5b935743bda347f9fa7c1', handleOnClose: () => this.toggleLanguageDialog() }))))), h("div", { key: '1d0a2613e3a0d487b059fc66fb48f53858a4e6c7', class: "zonos--invoice-footer-icon-wrapper" }, h("div", { key: 'a27c7eebe0dca7fedbc1e6e22438393391ec9024', class: "zonos--invoice-footer-logo" }, h("zonos-text", { key: '1013250d247fdb33ec365f8b3ffe9ca65d431d9d', textColor: colorDesktop }, translate('Powered by')), h("a", { key: 'ef93dda1f051f353da9e5f286942cc0a0e8015f7', href: "https://zonos.com", target: "_blank", title: "Zonos website" }, h("zonos-icon", { key: 'de7cc9e5027eb85e7c578afda15a3b3f4e260e91', autoHeight: true, content: ZonosWordmark, size: 42 }))), h("div", { key: '180e60cdd756303a14a4a80b72b81b4a4e1c124a', class: "dot" }), h("a", { key: '7f46908aa8cd49974d7525d7110dbb25402586ab', href: "https://zonos.com/docs/legal/zonos-privacy-policy", target: "_blank" }, h("zonos-text", { key: 'bba7017be84a8e320ca4d8fb2074822cd7e9f917', textColor: colorDesktop }, translate('Privacy policy')))))));
|
|
59
62
|
}
|
|
60
63
|
static get is() { return "zonos-invoice-footer"; }
|
|
61
64
|
static get encapsulation() { return "shadow"; }
|
|
@@ -39,13 +39,13 @@ export class ZonosInvoiceReview {
|
|
|
39
39
|
}
|
|
40
40
|
render() {
|
|
41
41
|
const titleTextColor = this.isMobile ? 'gray-1000' : 'gray-800';
|
|
42
|
-
return (h(Host, { key: '
|
|
42
|
+
return (h(Host, { key: '46c130c8e6aeacdd5f74feb613ec5829c0be396d', class: classes([
|
|
43
43
|
'zonos--invoice-review zonos--elements',
|
|
44
44
|
this.isMobile && 'mobile',
|
|
45
45
|
this.isTablet && 'tablet',
|
|
46
|
-
]) }, h("div", { key: '
|
|
46
|
+
]) }, h("div", { key: '9649e31a3053c9772363620cf2acfe557ace8715', class: "zonos--title" }, h("zonos-text", { key: '1b365c27c2280e61c4849c7382a945716ec2abf8', textColor: titleTextColor, type: 'semiBoldLabel' }, translate('Pay [organizationName]', {
|
|
47
47
|
organizationName: zonosStore.organizationName,
|
|
48
|
-
}))), h("div", { key: '
|
|
48
|
+
}))), h("div", { key: 'a1f24eb0f3080ec0ddad9ca323f49dd391117326', class: "zonos--total-pay" }, renderFallback({
|
|
49
49
|
content: (h("zonos-text", { type: 'secondaryPageHeader' }, renderCheckoutCurrency({
|
|
50
50
|
amount: invoiceStore.amountTotalDue || 0,
|
|
51
51
|
isForeign: true,
|
|
@@ -12,10 +12,10 @@ export class ZonosInvoiceSubtotal {
|
|
|
12
12
|
this.isMobile = false;
|
|
13
13
|
}
|
|
14
14
|
render() {
|
|
15
|
-
return (h(Host, { key: '
|
|
15
|
+
return (h(Host, { key: 'b98712b01891581bb2b64f5afd82711f7d41b585', class: classes([
|
|
16
16
|
'zonos--invoice-subtotal zonos--elements',
|
|
17
17
|
this.isMobile && 'mobile',
|
|
18
|
-
]) }, h("table", { key: '
|
|
18
|
+
]) }, h("table", { key: 'ea7242545b5aa891a5214d426a96fa51ed8d5b5c', class: "zonos--invoice-table" }, h("tr", { key: '7aef27c5154017fd322869c514dc20c42009a855', class: "zonos--row zonos--invoice-total" }, h("td", { key: '60c5689c39d962b6c5a415bb93243259c815bfad', class: "zonos--column" }), h("td", { key: 'b5886f54449738b01fa7a2884f7101a2f910dd21', class: "zonos--column zonos--invoice-subtotal-title" }, h("zonos-text", { key: '1689b03f73918e7c2b6d3e1ef458473e817ac54c', type: "semiBoldLabel" }, translate('Payment total'))), h("td", { key: 'f456cd24f03fe451814a7f0de609eed2ad761530', class: "zonos--column zonos--invoice-subtotal-price" }, renderFallback({
|
|
19
19
|
content: (h("zonos-text", { type: "semiBoldLabel" }, renderCheckoutCurrency({
|
|
20
20
|
amount: invoiceStore.amountTotalDue || 0,
|
|
21
21
|
isForeign: true,
|
|
@@ -37,16 +37,16 @@ export class ZonosBadge {
|
|
|
37
37
|
this.loading = false;
|
|
38
38
|
}
|
|
39
39
|
render() {
|
|
40
|
-
return (h(Host, { key: '
|
|
40
|
+
return (h(Host, { key: '95c8a620e803b4ea84d7789ff746d1edc1252389', class: classes(['zonos--elements zonos--badge']), style: {
|
|
41
41
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
42
|
-
} }, h("div", { key: '
|
|
42
|
+
} }, h("div", { key: '000fb2efaa9cffa4635e89e700013bcc1f9fd63c', class: classes([
|
|
43
43
|
'zonos--badge-content',
|
|
44
44
|
this.badgeColor,
|
|
45
45
|
this.rounded && 'rounded',
|
|
46
46
|
this.iconRight && 'icon-right',
|
|
47
47
|
this.size,
|
|
48
48
|
this.bold && 'bold',
|
|
49
|
-
]) }, this.icon, h("zonos-text", { key: '
|
|
49
|
+
]) }, this.icon, h("zonos-text", { key: '8c84abeb697dd20f6c1acbd2f512a5bac2c45883', textColor: `${this.badgeColor}-800` }, h("slot", { key: 'b5bc9ed235747f2986fd7a1c94cbede4b8ffc715' })), this.dismissHandler && (h("zonos-icon", { key: '629b306370ba2fab2e43b625fce19e44be2a91a7', "aria-label": "Remove action", class: "zonos--badge-dismiss", content: RemoveLineIcon, onClick: () => { var _a; return (_a = this.dismissHandler) === null || _a === void 0 ? void 0 : _a.call(this); } })))));
|
|
50
50
|
}
|
|
51
51
|
static get is() { return "zonos-badge"; }
|
|
52
52
|
static get encapsulation() { return "shadow"; }
|
|
@@ -184,13 +184,13 @@ export class ZonosButton {
|
|
|
184
184
|
const borderStyle = getBorderRadius({
|
|
185
185
|
overrideBorderStyle: this.borderStyle,
|
|
186
186
|
});
|
|
187
|
-
return (h(Host, { key: '
|
|
187
|
+
return (h(Host, { key: 'df2bfe5807583d29166ccb7f5da28dcf5b41dcd3', class: classes(['zonos--elements']), "data-theme": this.theme || buttonTheme, disabled: disabled, style: styles({
|
|
188
188
|
'--zonos--background-color': backgroundColor,
|
|
189
189
|
'--zonos--border-radius': borderStyle,
|
|
190
190
|
'--zonos--color': color,
|
|
191
191
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
192
192
|
'--zonos--font-weight': this.bold ? 'bold' : 'normal',
|
|
193
|
-
}) }, h("button", Object.assign({ key: '
|
|
193
|
+
}) }, h("button", Object.assign({ key: '18c6ba3797948296d847a8deed8784ee34b93113' }, this.inheritedAttributes, { class: classes([
|
|
194
194
|
this.hasIcon && 'has-icon',
|
|
195
195
|
this.hasContent && 'has-content',
|
|
196
196
|
this.noBackground && 'no-background',
|
|
@@ -205,7 +205,7 @@ export class ZonosButton {
|
|
|
205
205
|
backgroundColor && variant === 'standard' && 'override-background',
|
|
206
206
|
]), disabled: disabled, style: {
|
|
207
207
|
justifyContent: this.justifyContent,
|
|
208
|
-
} }), this.loading && (h("div", { key: '
|
|
208
|
+
} }), this.loading && (h("div", { key: 'b468795b69f4e20f7d0ca2c915b95080a53092e4', class: "zonos--spinner-wrapper" }, h("zonos-spinner", { key: '368ea5d9cdb641140d78e55ac1874cbfd6b48db0', size: 16, spinnerColor: spinnerColor }))), !this.loading && !this.iconRight && this.icon, h("slot", { key: '41ecf6db38ca534ed99fd8c2f6020bbfe99cddc9', onSlotchange: this.handleSlotChange }), !this.loading && this.iconRight && this.icon)));
|
|
209
209
|
}
|
|
210
210
|
static get is() { return "zonos-button"; }
|
|
211
211
|
static get encapsulation() { return "shadow"; }
|
|
@@ -23,16 +23,16 @@ export class ZonosCard {
|
|
|
23
23
|
customRoundRadius: `${this.borderRadius}px`,
|
|
24
24
|
overrideBorderStyle: 'ROUNDED',
|
|
25
25
|
});
|
|
26
|
-
return (h(Host, { key: '
|
|
26
|
+
return (h(Host, { key: 'afc0d2d9b79510aa9d85c89af3c01d5a5c767787', style: {
|
|
27
27
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
28
|
-
} }, h("div", { key: '
|
|
28
|
+
} }, h("div", { key: 'b68bbbb581f56db81f9b7819f6047c1ec48a956f', class: classes(['styled-card']), style: {
|
|
29
29
|
'--zonos--background-color': backgroundColor,
|
|
30
30
|
'--zonos--border-radius': borderRadius,
|
|
31
31
|
padding: this.spacing,
|
|
32
|
-
} }, this.label && (h("header", { key: '
|
|
32
|
+
} }, this.label && (h("header", { key: '27db75fa9c5ac5dbdfefd92656aa6d8e5b654349', class: "card-header", style: { padding: this.spacing } }, h("zonos-text", { key: 'f54d58eb5f010346d2fcf919baf69d5c799bdbc4', type: "subheader" }, this.label), h("h-stack", { key: 'a3cbee0ae5fc73bb9507d5e30ab6779f2ce46f55', spacing: 8 }, this.actions))), h("slot", { key: '6ce557ff8df6046d428b22b290c3d79ce6bf36ad' }), (this.footerActions || this.footerContent) && (h("footer", { key: '7cc44dfa05e46026444ac1db6755b30151937be0', class: "card-footer", style: {
|
|
33
33
|
height: this.footerHeight ? `${this.footerHeight}px` : 'auto',
|
|
34
34
|
padding: this.spacing,
|
|
35
|
-
} }, h("div", { key: '
|
|
35
|
+
} }, h("div", { key: '6c401d4fbc34346f160b239a7190eb170763c382' }, this.footerContent), h("h-stack", { key: 'e6cc5de886d04757374b380149fe5b78b0874cf2', spacing: 8 }, this.footerActions))))));
|
|
36
36
|
}
|
|
37
37
|
static get is() { return "zonos-card"; }
|
|
38
38
|
static get encapsulation() { return "shadow"; }
|
|
@@ -51,14 +51,14 @@ export class ZonosCheckbox {
|
|
|
51
51
|
customRoundRadius: '4px',
|
|
52
52
|
overrideBorderStyle: this.borderStyle,
|
|
53
53
|
});
|
|
54
|
-
return (h(Host, { key: '
|
|
54
|
+
return (h(Host, { key: 'fc12195af264aaca9a9738f594316d5357f8ebb1', class: classes(['zonos--elements zonos--checkbox']), style: {
|
|
55
55
|
'--zonos--background-color': backgroundColor,
|
|
56
56
|
'--zonos--border-radius': borderStyle,
|
|
57
57
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
58
58
|
'--zonos--size': `${this.size}px`,
|
|
59
|
-
} }, h("label", { key: '
|
|
59
|
+
} }, h("label", { key: '0db316fec272f3409d2525b4102e8bc6b51b5447', class: classes([this.isDisabled && 'disabled']), htmlFor: this.inputId }, h("input", { key: '6e72a3e543dc6a0faa300d94adb226167a6f1114', checked: this.isChecked, disabled: this.isDisabled, hidden: true, id: this.inputId, onChange: e => {
|
|
60
60
|
this.checkboxSelected.emit(e.target.checked);
|
|
61
|
-
}, type: "checkbox" }), h("span", { key: '
|
|
61
|
+
}, type: "checkbox" }), h("span", { key: '7703e044bb17535afaf7d1f559e6808e0f7a0777', class: "checkmark-container" }, h("svg", { key: 'd6a0c3349d79e0d209c69e098f0b410a7ac67f98', class: "checkmark", color: checkmarkColor, fill: "none", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: 'e12f7a8f0ee87eb72ba9fd9d6f6dbca4e2757e14', "clip-rule": "evenodd", d: "M17.456 7.404a.75.75 0 0 1 .14 1.052l-6.5 8.5a.75.75 0 0 1-1.126.074l-4-4a.75.75 0 0 1 1.06-1.06l3.395 3.394 5.98-7.82a.75.75 0 0 1 1.05-.14Z", fill: "currentColor", "fill-rule": "evenodd" }))), this.label && (h("zonos-text", { key: 'dd53f7c4c37e21c745450476b69051ea65b03833', size: this.fontSize }, this.label)))));
|
|
62
62
|
}
|
|
63
63
|
static get is() { return "zonos-checkbox"; }
|
|
64
64
|
static get encapsulation() { return "shadow"; }
|
|
@@ -77,17 +77,17 @@ export class ZonosCheckoutProgressTabs {
|
|
|
77
77
|
color: labelSelectedColor,
|
|
78
78
|
})
|
|
79
79
|
: labelSelectedColor;
|
|
80
|
-
return (h(Host, { key: '
|
|
80
|
+
return (h(Host, { key: '90dd30f544a4af6c2ed60b28c55c887dfd91151c', class: "zonos--elements", style: {
|
|
81
81
|
'--zonos--color': contrastLabelColor,
|
|
82
82
|
'--zonos--progress-percent': this.getTotalSuccessStep(),
|
|
83
|
-
} }, h("div", { key: '
|
|
83
|
+
} }, h("div", { key: '6fbdfc5306c7f266e7ad80f0daefdfe2c747df54', class: "zonos--tab-wrapper" }, Object.values(cartStore.tabItems).map((tab, index) => {
|
|
84
84
|
const isSelected = tab.value === selectedStep;
|
|
85
85
|
return (h("button", { "aria-label": `Tab ${tab.label}`, class: classes([
|
|
86
86
|
'zonos--tab-item',
|
|
87
87
|
tab.value === selectedStep && 'selected',
|
|
88
88
|
tab.isDone && 'done',
|
|
89
89
|
]), disabled: !this.isTabClickable(tab.value), key: tab.value, onClick: () => this.setTabSelected(tab.value) }, h("div", { class: "zonos--tab-index" }, h("zonos-text", { class: "zonos--tab-index-label", textColor: isSelected ? contrastLabelColor : 'gray-1000', type: "label" }, index + 1), h("zonos-icon", { class: "zonos--tab-index-done-icon", content: TabCheckmark, iconColor: isSelected ? contrastLabelColor : 'gray-1000' })), h("zonos-text", { textColor: isSelected ? contrastLabelColor : 'gray-1000', type: "label" }, translate(tab.label))));
|
|
90
|
-
})), h("div", { key: '
|
|
90
|
+
})), h("div", { key: 'd797a4c506f42893919ecb30d2ee6a6f64b85ad4', class: "zonos--tab-progress" }, h("div", { key: '4c2a229a89f8e3bad1b8385a4311d5796981c834', class: "zonos--progress-bar-fill" }))));
|
|
91
91
|
}
|
|
92
92
|
static get is() { return "zonos-checkout-progress-tabs"; }
|
|
93
93
|
static get encapsulation() { return "shadow"; }
|
|
@@ -48,10 +48,10 @@ export class ZonosCollapse {
|
|
|
48
48
|
// set overflow to hidden to prevent content from showing when collapsed
|
|
49
49
|
this.el.style.overflow = 'hidden';
|
|
50
50
|
}
|
|
51
|
-
return (h(Host, { key: '
|
|
51
|
+
return (h(Host, { key: 'ccd63ae063383c197ef9e3de5fdea5bdfcc1951b', class: 'zonos--elements zonos--collapse', style: {
|
|
52
52
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
53
53
|
height: this.getElementHeight(),
|
|
54
|
-
} }, h("div", { key: '
|
|
54
|
+
} }, h("div", { key: '49d68d13f7d3fab4104908ec06706ded803b32fa' }, h("iframe", { key: '55c8aa296b517b1c69849c0fa56f407b217ad713', class: "height-change-listener", tabindex: "-1", title: "collapse-height-change-listener" }), h("slot", { key: '81207ecc6e59c358edbe4a653064d29c27ac5500' }))));
|
|
55
55
|
}
|
|
56
56
|
static get is() { return "zonos-collapse"; }
|
|
57
57
|
static get encapsulation() { return "shadow"; }
|
|
@@ -108,13 +108,13 @@ export class ZonosConfirmDialog {
|
|
|
108
108
|
const borderStyle = getBorderRadius();
|
|
109
109
|
// Get theme for the update dialog, inherit from the theme, no from this component theme
|
|
110
110
|
const theme = getZonosStoreTheme(zonosStore.appearance.theme);
|
|
111
|
-
return (h(Host, { key: '
|
|
111
|
+
return (h(Host, { key: '9ad8aff8631692fa53ef172869d98e9fbfbdc059', class: classes([this.dialogOpen && 'open', 'zonos--elements']), "data-dialog-type": this.dialogType, "data-theme": theme, style: {
|
|
112
112
|
'--zonos--border-radius': borderStyle,
|
|
113
113
|
'--zonos--dialog-width': `${this.dialogWidth}px`,
|
|
114
114
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
115
|
-
} }, h("div", { key: '
|
|
115
|
+
} }, h("div", { key: '6d7c55b90bfb05890d876a0243558eb9a2e7a772', class: "zonos--backdrop", tabIndex: -1 }), h("div", { key: 'abf306ddd70cefd64aa6804aeccf700506c175d7', class: classes(['zonos--confirm-layout', this.dialogIntent]), onClick: e => this.clickOutsideDialogHandler(e) }, h("div", { key: 'dc7e9e6d501872597928603ded57d82c15c26710', class: "zonos--confirm-dialog", onBlur: () => {
|
|
116
116
|
this.focusDialog();
|
|
117
|
-
} }, h("div", { key: '
|
|
117
|
+
} }, h("div", { key: '5c1fa9ec8b59cba68ccbc5dc36e66e2fdefdeae5', class: "wrapper" }, h("div", { key: '0ce48c41c78e393a181fd5e9beeac90622b5c620', class: "icon-wrapper" }, this.renderIcon()), h("div", { key: 'b42157f8e76de8a60190e384d7d53a36d8051c67', class: "content" }, h("div", { key: 'bd8eb897f15a6d095df8fbd1803f62a11b9d5d7b', class: "title" }, h("zonos-text", { key: 'd1c06b89d4917b2366f881dda7da9e1369722126', type: "subheader" }, this.dialogTitle)), this.dialogSubtitle && (h("div", { key: '4f1269aaab5ad3965d6ddfc0949341d4f202f296', class: "subtitle" }, h("zonos-text", { key: 'f784b5dd86ff684e790f27a586e3eeb4ac683884', textColor: "gray-800" }, this.dialogSubtitle)))), h("div", { key: 'e0403a968aee6ff878c9e916e9ff216e2052ab0c', class: "footer" }, this.dialogType === 'confirm' && (h("zonos-button", { key: '66e34a9d61f677786bfe286f377854c9ebc780ed', backgroundColor: "gray-0", class: "cancel-button", onClick: () => this.closeDialogHandler(), size: "lg", withBoxShadow: true }, this.dialogCancelBtnText || translate('Cancel'))), h("zonos-button", { key: '3652507591e3055856a044e191525ea36b6042ca', class: "confirm-button", onClick: () => this.confirmDialogHandler(), size: "lg", variant: this.getButtonConfirmVariant() }, this.dialogConfirmBtnText)))))));
|
|
118
118
|
}
|
|
119
119
|
static get is() { return "zonos-confirm-dialog"; }
|
|
120
120
|
static get encapsulation() { return "shadow"; }
|
|
@@ -51,13 +51,13 @@ export class ZonosCountrySelect {
|
|
|
51
51
|
? fuseObject.map(country => country.item)
|
|
52
52
|
: countries.sort((a, b) => a.displayName.localeCompare(b.displayName));
|
|
53
53
|
const isEmpty = !filteredCountries.length;
|
|
54
|
-
return (h(Host, { key: '
|
|
54
|
+
return (h(Host, { key: '315a4cef4eaeecdc0bc1d2f05ae656f370c247ca', class: "zonos--elements", style: {
|
|
55
55
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
56
|
-
} }, h("div", { key: '
|
|
56
|
+
} }, h("div", { key: 'fb45324e739bed4c056d2d3a7342a2f9860cb5d1', class: "zonos--country-select" }, h("zonos-v-stack", { key: 'f229faa99429adcb0305a1d2a838f90b651fe966', class: "zonos--country-select-header", spacing: 8 }, h("zonos-select-dialog-header", { key: '680a6089bc12308bc41ee0620c8c90bc9db4ba7f', handleOnClose: () => this.handleOnClose(), label: translate('Select a country') }, h("input", { key: '1819f9226fde595a5904ac1204ffa9180c225053', autoComplete: "off", class: "zonos--country-select-input", onInput: this.handleInputChange, placeholder: translate('Search countries'), ref: el => {
|
|
57
57
|
if (el) {
|
|
58
58
|
this.inputRef = el;
|
|
59
59
|
}
|
|
60
|
-
}, type: "text", value: this.inputValue }))), h("div", { key: '
|
|
60
|
+
}, type: "text", value: this.inputValue }))), h("div", { key: 'c7fda9cb96abca4e55958d58b4268633aae8ad43', class: "zonos--country-select-content" }, isEmpty && (h("zonos-text", { key: 'd4f62720173f886908d56eefa09f3a55c7774326', class: "no-country", textColor: "gray-800" }, translate('No countries found'))), h("zonos-virtual-scroll", { key: 'd867490feeb0d626b4004f1aaab74230bb46b9d4', class: "zonos--country-filter-content", fallbackItemHeight: 34, itemHeights: filteredCountries.map(() => 34), renderItem: index => {
|
|
61
61
|
const country = filteredCountries[index];
|
|
62
62
|
if (!country) {
|
|
63
63
|
return null;
|
|
@@ -14,9 +14,9 @@ export class ZonosCustomMessage {
|
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
16
|
const messageWithLinks = formatStringWithLinks(this.message);
|
|
17
|
-
return (h(Host, { key: '
|
|
17
|
+
return (h(Host, { key: '3b47c062d2c2b22976206b3a71012c9de87d5b72', class: "zonos--elements", style: {
|
|
18
18
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
19
|
-
} }, this.message && (h("zonos-card", { key: '
|
|
19
|
+
} }, this.message && (h("zonos-card", { key: 'ab6385a3369d4e7ce017409dd92379f48f6867cc', class: "zonos--custom-message", spacing: "12px" }, h("div", { key: 'ef7c63319e469fd1f283a9eaa2e97bcb2253b840', class: "zonos--flex-message" }, h("zonos-icon", { key: 'e2c12c9419e3702cbdd155cf4099d6528db59312', "aria-label": "Custom message icon", content: this.icon }), h("zonos-text", { key: 'f21324ea031b937d0b65540b51dbe5b5c8bd4fad', innerHTML: messageWithLinks }))))));
|
|
20
20
|
}
|
|
21
21
|
static get is() { return "zonos-custom-message"; }
|
|
22
22
|
static get encapsulation() { return "shadow"; }
|
|
@@ -86,7 +86,7 @@ export class ZonosDialog {
|
|
|
86
86
|
const borderStyle = getBorderRadius({
|
|
87
87
|
overrideBorderStyle: this.borderStyle,
|
|
88
88
|
});
|
|
89
|
-
return (h(Host, { key: '
|
|
89
|
+
return (h(Host, { key: '73740b7d8c127367bbc2c621d036288920b3801d', class: classes([
|
|
90
90
|
'zonos--elements',
|
|
91
91
|
this.open && 'open',
|
|
92
92
|
this.isLoading && 'is-loading',
|
|
@@ -98,10 +98,10 @@ export class ZonosDialog {
|
|
|
98
98
|
'--zonos--height': this.height || 'initial',
|
|
99
99
|
'--zonos--min-height': this.minHeight || '500px',
|
|
100
100
|
'--zonos--width': this.width,
|
|
101
|
-
} }, h("div", { key: '
|
|
101
|
+
} }, h("div", { key: '441c6b5c503a431909f52699ee60992609dea232', class: "zonos--backdrop" }), h("div", { key: '94fb4689581ae2d781cae264740bbf9dbd42deac', class: "zonos--dialog-layout", inert: !this.open, onClick: this.clickOutsideDialogHandler }, h("div", { key: 'ba788097f52ca80229d16ce910071b56647061f9', class: "zonos--dialog" }, this.isLoading && (h("div", { key: '47bfe052272192a74aeed3a5ddbed802ae27bc16', class: "zonos--loading" }, h("zonos-spinner", { key: '49168e9057d08233654abfa0ca36138d205ca283', size: 30 }), this.loadingTitle && (h("zonos-text", { key: 'ed89b9b21e30b0e670b296306ed9b797f2baa75e', class: "zonos--loading-title", size: "l", weight: 700 }, this.loadingTitle)), this.loadingText && (h("zonos-text", { key: '7770dbdcf4e1fb630e0ed6c08dc4830edf00d1f0', class: "zonos--loading-text" }, this.loadingText)))), (this.headerText || !this.noCloseButton) && (h("div", { key: 'c171e207af502ef02de35803c480d927edea3ce4', class: "zonos--header" }, this.headerText && (h("h3", { key: '03999b1441d3a0dc983fed2e64680211f4a59793', class: "zonos--header-text" }, this.headerText)), !this.noCloseButton && (h("zonos-button", { key: 'e2954d9326195df3029c0771481881e6485fae05', class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close dialog", content: RemoveIcon }), noBackground: true, onClick: this.closeButtonHandler, title: "Close dialog", variant: "subtle" })))), h("div", { key: 'ba456d3747bd51ada021ed909a41e5768ceed4ab', class: classes([
|
|
102
102
|
'zonos--body',
|
|
103
103
|
this.noBodyPadding && 'zonos--no-body-padding',
|
|
104
|
-
]) }, h("slot", { key: '
|
|
104
|
+
]) }, h("slot", { key: '81e4de1e59970996607f7d0f2f2aef7937f82c43' })), h("slot", { key: '3fcd369711a347b9e2d2840fc708e928e17d5da1', name: "dialog-footer" })))));
|
|
105
105
|
}
|
|
106
106
|
static get is() { return "zonos-dialog"; }
|
|
107
107
|
static get encapsulation() { return "shadow"; }
|
|
@@ -10,10 +10,10 @@ export class HStack {
|
|
|
10
10
|
this.spacing = 24;
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
|
-
return (h(Host, { key: '
|
|
13
|
+
return (h(Host, { key: '1b810737fd49ee23a1d9ce845049efa6782f5a16', style: {
|
|
14
14
|
'--spacing': `${this.spacing}px`,
|
|
15
15
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
16
|
-
} }, h("slot", { key: '
|
|
16
|
+
} }, h("slot", { key: '64b114c99ecd5d6b953e5ce77f7d2a820f32cd36' })));
|
|
17
17
|
}
|
|
18
18
|
static get is() { return "zonos-h-stack"; }
|
|
19
19
|
static get encapsulation() { return "shadow"; }
|
|
@@ -31,17 +31,17 @@ export class ZonosInput {
|
|
|
31
31
|
this.inputChange.emit(newValue);
|
|
32
32
|
}
|
|
33
33
|
render() {
|
|
34
|
-
return (h(Host, { key: '
|
|
34
|
+
return (h(Host, { key: 'bda69850cbd7478614011282716320c87ae9f9aa', class: classes([
|
|
35
35
|
'zonos--input zonos--elements',
|
|
36
36
|
this.inputSize,
|
|
37
37
|
this.isError && 'has-error',
|
|
38
38
|
]), style: {
|
|
39
39
|
'--zonos--border-radius': getBorderRadius(),
|
|
40
40
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
41
|
-
} }, h("div", { key: '
|
|
41
|
+
} }, h("div", { key: '4159ba855ec2b63cdeba2f1c22179ca52e0c677d', class: classes([
|
|
42
42
|
'zonos--label-wrapper',
|
|
43
43
|
this.isDisabled && 'disabled',
|
|
44
|
-
]) }, h("input", { key: '
|
|
44
|
+
]) }, h("input", { key: '97609767c20661f2dc485b56cb90a6007102660b', class: classes([
|
|
45
45
|
'zonos--floated-input',
|
|
46
46
|
!!this.inputLabel && 'has-label',
|
|
47
47
|
this.inputValue && 'has-content',
|
|
@@ -49,7 +49,7 @@ export class ZonosInput {
|
|
|
49
49
|
]), disabled: this.isDisabled, onInput: e => {
|
|
50
50
|
const input = e.target;
|
|
51
51
|
this.inputChange.emit(input.value);
|
|
52
|
-
}, placeholder: this.inputPlaceholder, type: "text", value: this.value }), h("label", { key: '
|
|
52
|
+
}, placeholder: this.inputPlaceholder, type: "text", value: this.value }), h("label", { key: '9bb796fcb97082a8d2c3945ed6f0a4181d6ca7d9', class: "zonos--floated-label", "data-label": this.inputLabel }))));
|
|
53
53
|
}
|
|
54
54
|
static get is() { return "zonos-input"; }
|
|
55
55
|
static get encapsulation() { return "shadow"; }
|
|
@@ -2,7 +2,7 @@ import { h, Host } from "@stencil/core";
|
|
|
2
2
|
import { localizationStore, localizationStoreUpdateSelectedLocale, } from "../../store/hello/localization";
|
|
3
3
|
import { translate } from "../../store/translationStore";
|
|
4
4
|
import { zonosStoreFontFamily } from "../../store/zonosStore";
|
|
5
|
-
import {
|
|
5
|
+
import { getSupportedLanguages } from "../../utils/getSupportedLanguages";
|
|
6
6
|
// eslint-disable-next-line no-relative-import-paths/no-relative-import-paths
|
|
7
7
|
import GreenCheckDuotoneIcon from "./assets/greenCheckDuotone.svg";
|
|
8
8
|
export class ZonosLanguageSelect {
|
|
@@ -20,9 +20,9 @@ export class ZonosLanguageSelect {
|
|
|
20
20
|
}
|
|
21
21
|
render() {
|
|
22
22
|
const { selectedLocale } = localizationStore;
|
|
23
|
-
return (h(Host, { key: '
|
|
23
|
+
return (h(Host, { key: 'b557082e699209af33ab25715d5cb23fb8a20f56', class: "zonos--elements", style: {
|
|
24
24
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
25
|
-
} }, h("div", { key: '
|
|
25
|
+
} }, h("div", { key: 'f5fa8a8163aa46589d67df8d7b69a9b60c7c3994', class: "zonos--language-select" }, h("zonos-select-dialog-header", { key: '7ffc14b7fab4014352361424de6ea6e2fc8d7f6c', handleOnClose: () => this.handleOnClose(), label: translate('Select a language') }), h("div", { key: 'ab06dd27d199ef7223ce4421ab4d4e7a5816e402', class: "zonos--language-select-content" }, getSupportedLanguages().map(language => (h("button", { class: "zonos--language-select-button", onClick: () => this.languageSelected(language.code) }, h("zonos-text", { textColor: "gray-800" }, language.translatedLabel), language.code === selectedLocale && (h("zonos-icon", { content: GreenCheckDuotoneIcon, size: 16 })))))))));
|
|
26
26
|
}
|
|
27
27
|
static get is() { return "zonos-language-select"; }
|
|
28
28
|
static get encapsulation() { return "shadow"; }
|
|
@@ -7,7 +7,7 @@ export class ZonosLink {
|
|
|
7
7
|
this.href = '';
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
|
-
return (h(Host, { key: '
|
|
10
|
+
return (h(Host, { key: 'a8f6a7e96c5da6d98554ca6e40999596f7d4ead8', class: "zonos--elements" }, h("a", { key: '1df6e963d3e2e2dd5fadd97e39d3a05981458170', href: this.href, rel: this.rel, target: this.target, title: this.linkTitle }, h("slot", { key: '515048e9395bf523b29efaad40d60509ef0d767f' }))));
|
|
11
11
|
}
|
|
12
12
|
static get is() { return "zonos-link"; }
|
|
13
13
|
static get encapsulation() { return "shadow"; }
|
|
@@ -13,7 +13,7 @@ export class ZonosLoadingOverlay {
|
|
|
13
13
|
this.size = 40;
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
|
-
return (h(Host, { key: '
|
|
16
|
+
return (h(Host, { key: '8cafd99b309b04da5cf1b26b0f0804f4699c06b2', class: classes(['zonos--elements', this.open && 'zonos--open']) }, h("div", { key: '9ce7ac9b7e6956a5f76fc2105fa7f5d05299fd36', class: "zonos--loading-overlay" }, h("zonos-spinner", { key: '4be3a8d471e3aead2e4194c4ecbf66878a7a3f17', size: this.size, spinnerColor: this.spinnerColor }))));
|
|
17
17
|
}
|
|
18
18
|
static get is() { return "zonos-loading-overlay"; }
|
|
19
19
|
static get encapsulation() { return "shadow"; }
|
|
@@ -16,11 +16,11 @@ export class ZonosLogo {
|
|
|
16
16
|
const filterColor = this.theme === 'DARK'
|
|
17
17
|
? 'invert(100%) sepia(100%) saturate(0%) hue-rotate(288deg) brightness(102%) contrast(102%)'
|
|
18
18
|
: 'whiteinvert(0%) sepia(100%) saturate(32%) hue-rotate(92deg) brightness(107%) contrast(107%)';
|
|
19
|
-
return (h(Host, { key: '
|
|
19
|
+
return (h(Host, { key: '89d856c28d227afbe76656ce217544faad91715e', class: classes(['zonos--elements zonos--logo']), style: {
|
|
20
20
|
'--zonos--filter-color': filterColor,
|
|
21
21
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
22
22
|
'--zonos--width': this.width,
|
|
23
|
-
} }, h("img", { key: '
|
|
23
|
+
} }, h("img", { key: '025c97e65f2666028391f6ca2d548bf905528133', alt: "Zonos Logo", src: getAssetPath('./assets/ZonosLogo.png') })));
|
|
24
24
|
}
|
|
25
25
|
static get is() { return "zonos-logo"; }
|
|
26
26
|
static get encapsulation() { return "shadow"; }
|
|
@@ -14,11 +14,11 @@ export class ZonosRestState {
|
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
16
|
const imageUrl = this.getImageRestState();
|
|
17
|
-
return (h(Host, { key: '
|
|
17
|
+
return (h(Host, { key: 'c59d087ef1e9d319835387dafd6044df02fbada4', class: classes(['zonos--elements zonos--restState']), style: {
|
|
18
18
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
19
|
-
} }, h("div", { key: '
|
|
19
|
+
} }, h("div", { key: '66c517e9e27d02039bb8d94084d27d7bdb63acbc', class: "zonos--restState-image" }, h("img", { key: 'c2591b221940f1526f57eefea0a1624826188465', alt: this.restStateType, onError: () => {
|
|
20
20
|
this.isErrorImageLoad = true;
|
|
21
|
-
}, src: imageUrl })), h("div", { key: '
|
|
21
|
+
}, src: imageUrl })), h("div", { key: '12831552ca7bc7c5caed1b8337e302bd757ce066', class: "content" }, h("zonos-text", { key: '8d59853bd8670442b50dff2209bcadc66ceee908', class: "title", type: "boldSubheader" }, this.restStateTitle), h("zonos-text", { key: '9c0c37ca8b9b4b7db7567b962cfe2547e16c515b', class: "subtitle" }, this.restStateSubtitle)), h("div", { key: '29487c0cf698f4f593f7b93a923810edcec1c800', class: "action" }, h("slot", { key: 'fc0a95a5691a15ffa2d83a7b51713209fb6ec095' }))));
|
|
22
22
|
}
|
|
23
23
|
static get is() { return "zonos-rest-state"; }
|
|
24
24
|
static get encapsulation() { return "shadow"; }
|
package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js
CHANGED
|
@@ -15,9 +15,9 @@ export class ZonosSelectDialogHeader {
|
|
|
15
15
|
this.label = '';
|
|
16
16
|
}
|
|
17
17
|
render() {
|
|
18
|
-
return (h(Host, { key: '
|
|
18
|
+
return (h(Host, { key: '2c3fe65b8226875d1e543d87d622a2356c975bae', class: "zonos--elements", style: {
|
|
19
19
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
20
|
-
} }, h("zonos-v-stack", { key: '
|
|
20
|
+
} }, h("zonos-v-stack", { key: '7e065cce508376405350d8cf0b90437c5bbbd6e9', class: "zonos--select-dialog-header-wrapper", spacing: 8 }, h("div", { key: '363ff8e4b18b50497b904af45bcf62ae374f90de', class: "zonos--select-dialog-header" }, h("zonos-text", { key: '5b3833d7186579859d067c205ab3cb70bf01ed99', type: "boldLabel" }, this.label), h("zonos-button", { key: '7dd27337e33c3d97544696a8d850204296474f5e', 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: 'a5f6b16ecc6a1fb8c24bd783f0384d3506656f01' }))));
|
|
21
21
|
}
|
|
22
22
|
static get is() { return "zonos-select-dialog-header"; }
|
|
23
23
|
static get encapsulation() { return "shadow"; }
|
|
@@ -15,7 +15,7 @@ export class ZonosSkeleton {
|
|
|
15
15
|
this.skeletonHeight = '14px';
|
|
16
16
|
}
|
|
17
17
|
render() {
|
|
18
|
-
return (h(Host, { key: '
|
|
18
|
+
return (h(Host, { key: 'ba8efa50f345f97a2cf905068ff2d8d05557209e', class: classes(['zonos--elements zonos--skeleton']), style: styles({
|
|
19
19
|
'--zonos--skeleton-height': this.skeletonHeight,
|
|
20
20
|
'--zonos--skeleton-width': this.skeletonWidth,
|
|
21
21
|
}) }));
|