@zonos/elements 1.3.204 → 1.3.206
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-0d91ad0b.js → cart-3d961c6e.js} +6 -5
- package/dist/cjs/{debounce-94e1b7ff.js → debounce-0b9c0f8a.js} +1 -1
- package/dist/cjs/{getBorderRadius-8d3b1049.js → getBorderRadius-c424eb05.js} +1 -1
- package/dist/cjs/{index-0993f42d.js → index-1c710d00.js} +455 -377
- package/dist/cjs/index.cjs.js +7 -7
- package/dist/cjs/{isDarkColor-bcf49625.js → isDarkColor-35e8daec.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{localization-2f17c95f.js → localization-ff33875b.js} +421 -182
- package/dist/cjs/{paypal-9953115b.js → paypal-dee5c109.js} +4 -4
- package/dist/cjs/zonos-address_11.cjs.entry.js +273 -121
- package/dist/cjs/zonos-badge.cjs.entry.js +26 -4
- package/dist/cjs/zonos-banner.cjs.entry.js +6 -5
- package/dist/cjs/zonos-button_3.cjs.entry.js +89 -24
- package/dist/cjs/zonos-card.cjs.entry.js +10 -9
- package/dist/cjs/zonos-cart-items_14.cjs.entry.js +193 -74
- package/dist/cjs/zonos-checkout.cjs.entry.js +90 -35
- package/dist/cjs/zonos-collapse.cjs.entry.js +8 -2
- package/dist/cjs/zonos-component.cjs.entry.js +10 -1
- package/dist/cjs/zonos-controller.cjs.entry.js +6 -8
- package/dist/cjs/zonos-country-flag.cjs.entry.js +8 -4
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +52 -24
- package/dist/cjs/zonos-elements.cjs.js +2 -2
- package/dist/cjs/zonos-empty-state-payment_4.cjs.entry.js +11 -10
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +102 -36
- package/dist/cjs/zonos-hello.cjs.entry.js +29 -17
- package/dist/cjs/zonos-input.cjs.entry.js +18 -4
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +15 -4
- package/dist/cjs/zonos-link.cjs.entry.js +4 -4
- package/dist/cjs/zonos-logo.cjs.entry.js +8 -2
- package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +8 -8
- package/dist/cjs/zonos-stripe-input.cjs.entry.js +25 -9
- package/dist/cjs/zonos-text.cjs.entry.js +11 -4
- package/dist/cjs/zonos-toggle.cjs.entry.js +5 -3
- package/dist/cjs/zonos-tooltip.cjs.entry.js +7 -1
- package/dist/cjs/zonos-v-stack.cjs.entry.js +6 -2
- package/dist/cjs/{zonosStore-9264749e.js → zonosStore-7c1e1bc1.js} +4 -5
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-display/zonos-address-display.js +0 -4
- package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-form/zonos-address-form.js +4 -4
- package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-update-dialog.js +24 -13
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-restricted-items/zonos-cart-restricted-items.js +6 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js +3 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +14 -10
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.js +3 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +25 -9
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-empty-state-payment/zonos-empty-state-payment.js +3 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +83 -28
- package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +54 -17
- package/dist/collection/components/checkout/zonos-checkout/zonos-review/zonos-review.js +8 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +20 -12
- package/dist/collection/components/common/zonos-badge/zonos-badge.js +24 -2
- package/dist/collection/components/common/zonos-banner/zonos-banner.js +4 -3
- package/dist/collection/components/common/zonos-button/zonos-button.js +69 -18
- package/dist/collection/components/common/zonos-card/zonos-card.js +7 -6
- package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +15 -2
- package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +8 -2
- package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +6 -0
- package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +34 -9
- package/dist/collection/components/common/zonos-country-flag/zonos-country-flag.js +5 -1
- package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +6 -2
- package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +6 -0
- package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +48 -14
- package/dist/collection/components/common/zonos-icon/zonos-icon.js +12 -1
- package/dist/collection/components/common/zonos-input/zonos-input.js +15 -1
- package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +5 -1
- package/dist/collection/components/common/zonos-link/zonos-link.js +3 -3
- package/dist/collection/components/common/zonos-loading-overlay/zonos-loading-overlay.js +7 -1
- package/dist/collection/components/common/zonos-logo/zonos-logo.js +6 -0
- 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.js +7 -0
- package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.js +5 -5
- package/dist/collection/components/common/zonos-spinner/zonos-spinner.js +4 -1
- package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.js +21 -5
- package/dist/collection/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.js +19 -14
- package/dist/collection/components/common/zonos-stripe-select/zonos-stripe-select.js +37 -12
- package/dist/collection/components/common/zonos-text/zonos-text.js +9 -2
- package/dist/collection/components/common/zonos-toggle/zonos-toggle.js +3 -1
- package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +6 -0
- package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +4 -0
- package/dist/collection/components/common/zonos-virtual-scroll/zonos-virtual-scroll.js +2 -7
- package/dist/collection/components/component-template/zonos-component/zonos-component.js +9 -0
- package/dist/collection/components/hello/zonos-hello/zonos-hello.js +25 -13
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +8 -1
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.css +0 -2
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +98 -32
- package/dist/collection/components/main/zonos-controller.js +0 -4
- package/dist/collection/components/store/checkout/stripe.js +2 -1
- package/dist/collection/components/store/translationStore/strings.arabic.js +21 -9
- package/dist/collection/components/store/translationStore/strings.base.js +21 -10
- package/dist/collection/components/store/translationStore/strings.chinese.js +21 -9
- package/dist/collection/components/store/translationStore/strings.danish.js +21 -9
- package/dist/collection/components/store/translationStore/strings.dutch.js +21 -9
- package/dist/collection/components/store/translationStore/strings.french.js +21 -9
- package/dist/collection/components/store/translationStore/strings.german.js +21 -9
- package/dist/collection/components/store/translationStore/strings.hebrew.js +21 -9
- package/dist/collection/components/store/translationStore/strings.indonesian.js +21 -9
- package/dist/collection/components/store/translationStore/strings.italian.js +21 -9
- package/dist/collection/components/store/translationStore/strings.japanese.js +21 -9
- package/dist/collection/components/store/translationStore/strings.korean.js +21 -9
- package/dist/collection/components/store/translationStore/strings.norwegian.js +21 -9
- package/dist/collection/components/store/translationStore/strings.polish.js +21 -9
- package/dist/collection/components/store/translationStore/strings.portuguese.js +21 -9
- package/dist/collection/components/store/translationStore/strings.russian.js +21 -9
- package/dist/collection/components/store/translationStore/strings.spanish.js +21 -9
- package/dist/collection/components/store/translationStore/strings.swedish.js +21 -9
- package/dist/collection/components/store/translationStore/strings.turkish.js +21 -9
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +21 -9
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +21 -8
- package/dist/collection/components/stripe/zonos-custom-address/zonos-address-suggestions/zonos-address-suggestions.js +13 -5
- package/dist/collection/components/stripe/zonos-custom-address/zonos-custom-address.js +73 -33
- package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +11 -6
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -2
- package/dist/esm/{cart-db61eb95.js → cart-5835676d.js} +7 -6
- package/dist/esm/{debounce-3a9f27a0.js → debounce-eaee3a94.js} +1 -1
- package/dist/esm/{getBorderRadius-78b28b4d.js → getBorderRadius-b18c924f.js} +1 -1
- package/dist/esm/{index-a457c60c.js → index-5ea9f81d.js} +455 -377
- package/dist/esm/index.js +7 -7
- package/dist/esm/{isDarkColor-31dd7dff.js → isDarkColor-d8bb8659.js} +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{localization-bf7224aa.js → localization-4c7f64e8.js} +421 -182
- package/dist/esm/{paypal-2e0ffb07.js → paypal-b4f106be.js} +4 -4
- package/dist/esm/zonos-address_11.entry.js +273 -121
- package/dist/esm/zonos-badge.entry.js +26 -4
- package/dist/esm/zonos-banner.entry.js +6 -5
- package/dist/esm/zonos-button_3.entry.js +89 -24
- package/dist/esm/zonos-card.entry.js +10 -9
- package/dist/esm/zonos-cart-items_14.entry.js +193 -74
- package/dist/esm/zonos-checkout.entry.js +90 -35
- package/dist/esm/zonos-collapse.entry.js +8 -2
- package/dist/esm/zonos-component.entry.js +10 -1
- package/dist/esm/zonos-controller.entry.js +6 -8
- package/dist/esm/zonos-country-flag.entry.js +8 -4
- package/dist/esm/zonos-country-select_4.entry.js +52 -24
- package/dist/esm/zonos-elements.js +3 -3
- package/dist/esm/zonos-empty-state-payment_4.entry.js +11 -10
- package/dist/esm/zonos-hello-dialog.entry.js +102 -36
- package/dist/esm/zonos-hello.entry.js +29 -17
- package/dist/esm/zonos-input.entry.js +18 -4
- package/dist/esm/zonos-language-select_2.entry.js +15 -4
- package/dist/esm/zonos-link.entry.js +4 -4
- package/dist/esm/zonos-logo.entry.js +8 -2
- package/dist/esm/zonos-shipping-rich-radio.entry.js +8 -8
- package/dist/esm/zonos-stripe-input.entry.js +25 -9
- package/dist/esm/zonos-text.entry.js +11 -4
- package/dist/esm/zonos-toggle.entry.js +5 -3
- package/dist/esm/zonos-tooltip.entry.js +7 -1
- package/dist/esm/zonos-v-stack.entry.js +6 -2
- package/dist/esm/{zonosStore-d10a829f.js → zonosStore-1e015fa5.js} +4 -5
- package/dist/esm-es5/{cart-db61eb95.js → cart-5835676d.js} +1 -1
- package/dist/esm-es5/{debounce-3a9f27a0.js → debounce-eaee3a94.js} +1 -1
- package/dist/esm-es5/{getBorderRadius-78b28b4d.js → getBorderRadius-b18c924f.js} +1 -1
- package/dist/esm-es5/index-5ea9f81d.js +2 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{isDarkColor-31dd7dff.js → isDarkColor-d8bb8659.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/localization-4c7f64e8.js +1 -0
- package/dist/esm-es5/{paypal-2e0ffb07.js → paypal-b4f106be.js} +1 -1
- package/dist/esm-es5/zonos-address_11.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_14.entry.js +1 -1
- package/dist/esm-es5/zonos-checkout.entry.js +1 -1
- package/dist/esm-es5/zonos-collapse.entry.js +1 -1
- package/dist/esm-es5/zonos-component.entry.js +1 -1
- package/dist/esm-es5/zonos-controller.entry.js +1 -1
- package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
- package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
- package/dist/esm-es5/zonos-elements.js +1 -1
- package/dist/esm-es5/zonos-empty-state-payment_4.entry.js +1 -1
- package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm-es5/zonos-hello.entry.js +1 -1
- package/dist/esm-es5/zonos-input.entry.js +1 -1
- package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
- package/dist/esm-es5/zonos-link.entry.js +1 -1
- package/dist/esm-es5/zonos-logo.entry.js +1 -1
- package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
- package/dist/esm-es5/zonos-stripe-input.entry.js +1 -1
- package/dist/esm-es5/zonos-text.entry.js +1 -1
- package/dist/esm-es5/zonos-toggle.entry.js +1 -1
- package/dist/esm-es5/zonos-tooltip.entry.js +1 -1
- package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
- package/dist/esm-es5/{zonosStore-d10a829f.js → zonosStore-1e015fa5.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/types/components/hello/zonos-hello-dialog/zonos-hello-dialog.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.arabic.d.ts +18 -6
- package/dist/types/components/store/translationStore/strings.base.d.ts +18 -6
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +18 -6
- package/dist/types/components/store/translationStore/strings.danish.d.ts +18 -6
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +18 -6
- package/dist/types/components/store/translationStore/strings.french.d.ts +18 -6
- package/dist/types/components/store/translationStore/strings.german.d.ts +18 -6
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +18 -6
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +18 -6
- package/dist/types/components/store/translationStore/strings.italian.d.ts +18 -6
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +18 -6
- package/dist/types/components/store/translationStore/strings.korean.d.ts +18 -6
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +18 -6
- package/dist/types/components/store/translationStore/strings.polish.d.ts +18 -6
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +18 -6
- package/dist/types/components/store/translationStore/strings.russian.d.ts +18 -6
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +18 -6
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +18 -6
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +18 -6
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +18 -6
- package/dist/types/types/index.d.ts +1 -0
- package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/p-019f8637.entry.js +1 -0
- package/dist/zonos-elements/p-02da743b.system.js +2 -0
- package/dist/zonos-elements/p-051e0e48.entry.js +1 -0
- package/dist/zonos-elements/p-0c4c8d63.entry.js +1 -0
- package/dist/zonos-elements/p-12cd9d3a.entry.js +1 -0
- package/dist/zonos-elements/{p-d42dfd32.system.js → p-1327b935.system.js} +1 -1
- package/dist/zonos-elements/p-1640d77f.js +2 -0
- package/dist/zonos-elements/{p-3d82a352.js → p-16678764.js} +1 -1
- package/dist/zonos-elements/{p-c291bac1.entry.js → p-18149db1.entry.js} +1 -1
- package/dist/zonos-elements/{p-db025dfc.system.entry.js → p-1ad099ec.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c5fcbc92.system.entry.js → p-1bc09abe.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-d46349d3.system.entry.js → p-22cb6880.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-cdd3087f.system.entry.js → p-265af369.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c9aa902e.system.entry.js → p-2866fd29.system.entry.js} +1 -1
- package/dist/zonos-elements/p-30778fde.system.entry.js +1 -0
- package/dist/zonos-elements/p-3196bf98.entry.js +1 -0
- package/dist/zonos-elements/p-3505e4c4.entry.js +1 -0
- package/dist/zonos-elements/p-3a50124e.entry.js +1 -0
- package/dist/zonos-elements/p-3afc27ef.entry.js +1 -0
- package/dist/zonos-elements/{p-ea6d87a1.system.js → p-3ee44728.system.js} +1 -1
- package/dist/zonos-elements/p-41c1d7c4.entry.js +1 -0
- package/dist/zonos-elements/p-42a9557f.entry.js +1 -0
- package/dist/zonos-elements/{p-f8d0d488.system.entry.js → p-469ccc66.system.entry.js} +1 -1
- package/dist/zonos-elements/p-47e2cd31.entry.js +1 -0
- package/dist/zonos-elements/p-4a3bb31d.entry.js +1 -0
- package/dist/zonos-elements/{p-26a634a5.system.entry.js → p-4cb8b87f.system.entry.js} +1 -1
- package/dist/zonos-elements/p-4e9c8f9e.system.js +1 -0
- package/dist/zonos-elements/{p-80bbd9c0.system.entry.js → p-4fb88ebc.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-df4c46a6.entry.js → p-5616b304.entry.js} +1 -1
- package/dist/zonos-elements/{p-a9307caa.js → p-658936c9.js} +2 -2
- package/dist/zonos-elements/{p-6b6a9dd6.system.js → p-666164d9.system.js} +1 -1
- package/dist/zonos-elements/{p-3284f459.system.entry.js → p-719e14a8.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-fbe36bc8.system.entry.js → p-7234f876.system.entry.js} +1 -1
- package/dist/zonos-elements/p-74bcb5cc.entry.js +1 -0
- package/dist/zonos-elements/{p-27987298.system.entry.js → p-7777d85f.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-aa1193bc.entry.js → p-848e08e8.entry.js} +1 -1
- package/dist/zonos-elements/{p-ab176281.system.entry.js → p-858b7908.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-0693422b.system.js → p-91c996d3.system.js} +1 -1
- package/dist/zonos-elements/{p-851c642e.system.entry.js → p-93aeba62.system.entry.js} +1 -1
- package/dist/zonos-elements/p-9b8a5372.entry.js +1 -0
- package/dist/zonos-elements/{p-cb823c4d.system.js → p-9e9ac7a2.system.js} +1 -1
- package/dist/zonos-elements/p-9fa17353.js +1 -0
- package/dist/zonos-elements/{p-01987cb2.system.entry.js → p-a0f570ea.system.entry.js} +1 -1
- package/dist/zonos-elements/p-a2b55d11.entry.js +1 -0
- package/dist/zonos-elements/p-aafcd40f.system.entry.js +1 -0
- package/dist/zonos-elements/p-abc83d01.entry.js +1 -0
- package/dist/zonos-elements/p-abe218ab.system.entry.js +1 -0
- package/dist/zonos-elements/{p-45ebc788.entry.js → p-b21b0330.entry.js} +1 -1
- package/dist/zonos-elements/{p-488ad646.system.entry.js → p-b50eaeac.system.entry.js} +1 -1
- package/dist/zonos-elements/p-b922c441.system.js +1 -0
- package/dist/zonos-elements/p-ba027b70.system.entry.js +1 -0
- package/dist/zonos-elements/p-bab19e2a.entry.js +1 -0
- package/dist/zonos-elements/p-c4e0f49a.system.entry.js +1 -0
- package/dist/zonos-elements/{p-c50b3100.system.js → p-c666d557.system.js} +1 -1
- package/dist/zonos-elements/{p-f891d470.entry.js → p-c988cf84.entry.js} +1 -1
- package/dist/zonos-elements/{p-6a71f76b.system.js → p-d5f7f7e6.system.js} +1 -1
- package/dist/zonos-elements/p-dbd23bea.entry.js +1 -0
- package/dist/zonos-elements/p-e0587eeb.entry.js +1 -0
- package/dist/zonos-elements/{p-72f37935.js → p-e337fa88.js} +1 -1
- package/dist/zonos-elements/{p-d6a10007.entry.js → p-e5152c04.entry.js} +1 -1
- package/dist/zonos-elements/p-ea88baa9.system.entry.js +1 -0
- package/dist/zonos-elements/p-eb2560b6.system.entry.js +1 -0
- package/dist/zonos-elements/{p-452070af.system.entry.js → p-eca09508.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-e26c9e83.js → p-ed20f2f7.js} +1 -1
- package/dist/zonos-elements/p-edcfb3a3.js +1 -0
- package/dist/zonos-elements/{p-be5afc91.system.entry.js → p-f4d741de.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-5c74e5c9.system.entry.js → p-f8bfc320.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-d99d9e00.js → p-f9664811.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/dist/zonos-elements/zonos-elements.js +1 -1
- package/package.json +50 -40
- package/dist/esm-es5/index-a457c60c.js +0 -2
- package/dist/esm-es5/localization-bf7224aa.js +0 -1
- package/dist/zonos-elements/p-04b43dd5.entry.js +0 -1
- package/dist/zonos-elements/p-06f25f75.entry.js +0 -1
- package/dist/zonos-elements/p-0944fe64.entry.js +0 -1
- package/dist/zonos-elements/p-0c62cfb3.entry.js +0 -1
- package/dist/zonos-elements/p-1dcdb65f.system.entry.js +0 -1
- package/dist/zonos-elements/p-25970cb8.system.entry.js +0 -1
- package/dist/zonos-elements/p-43633269.system.js +0 -2
- package/dist/zonos-elements/p-4b5197e7.system.entry.js +0 -1
- package/dist/zonos-elements/p-4c81112f.entry.js +0 -1
- package/dist/zonos-elements/p-4efa8187.js +0 -1
- package/dist/zonos-elements/p-5170bc41.entry.js +0 -1
- package/dist/zonos-elements/p-5d0f7364.system.js +0 -1
- package/dist/zonos-elements/p-715d0f59.system.entry.js +0 -1
- package/dist/zonos-elements/p-7ae5cd60.entry.js +0 -1
- package/dist/zonos-elements/p-8d870d4c.entry.js +0 -1
- package/dist/zonos-elements/p-9af5e93a.entry.js +0 -1
- package/dist/zonos-elements/p-bc8bda92.entry.js +0 -1
- package/dist/zonos-elements/p-c137dc82.js +0 -2
- package/dist/zonos-elements/p-c3d2422e.entry.js +0 -1
- package/dist/zonos-elements/p-c66fc4e5.system.entry.js +0 -1
- package/dist/zonos-elements/p-c767242b.entry.js +0 -1
- package/dist/zonos-elements/p-cf6ae7dc.entry.js +0 -1
- package/dist/zonos-elements/p-d2165441.system.entry.js +0 -1
- package/dist/zonos-elements/p-dcd6acd4.system.entry.js +0 -1
- package/dist/zonos-elements/p-dd1cfa74.entry.js +0 -1
- package/dist/zonos-elements/p-dfd1ba1d.entry.js +0 -1
- package/dist/zonos-elements/p-e68d5219.entry.js +0 -1
- package/dist/zonos-elements/p-ef3e05e5.system.js +0 -1
- package/dist/zonos-elements/p-f255e822.js +0 -1
- package/dist/zonos-elements/p-f29edb65.entry.js +0 -1
- package/dist/zonos-elements/p-f655ec36.entry.js +0 -1
- package/dist/zonos-elements/p-fcc2e712.entry.js +0 -1
|
@@ -14,6 +14,75 @@ export class ZonosButton {
|
|
|
14
14
|
* Inherited attributes from the host element
|
|
15
15
|
*/
|
|
16
16
|
this.inheritedAttributes = {};
|
|
17
|
+
/**
|
|
18
|
+
* Whether or not the button is disabled
|
|
19
|
+
* @note Prop should not conflict name with native html attribute if the prop is also affected by another prop.
|
|
20
|
+
* The issue is the component has internal disabled @prop(). @prop decorator is to watch the update of the attribute of the component in the dom.
|
|
21
|
+
* And `disabled` prop is not an only factor to determine the component is disabled. isLoading @prop() also affect that.
|
|
22
|
+
* <Host> is also referred to a component itself, if disabled prop is true, the `zonos-button` will have disabled attribute.
|
|
23
|
+
* So let's say when the loading state is true, and the component consume the zonos-button doesn't pass the disabled prop down.
|
|
24
|
+
* It accidentally turns the disabled prop on even thought the disabled state is not changed from the outside.
|
|
25
|
+
*/
|
|
26
|
+
this.isDisabled = false;
|
|
27
|
+
/**
|
|
28
|
+
* The icon element to display
|
|
29
|
+
* @default null
|
|
30
|
+
*/
|
|
31
|
+
this.icon = null;
|
|
32
|
+
/**
|
|
33
|
+
* Whether or not the icon is on the right
|
|
34
|
+
* @default false
|
|
35
|
+
*/
|
|
36
|
+
this.iconRight = false;
|
|
37
|
+
/**
|
|
38
|
+
* The size of the button
|
|
39
|
+
* @default 'sm'
|
|
40
|
+
*/
|
|
41
|
+
this.size = 'sm';
|
|
42
|
+
/**
|
|
43
|
+
* The variance of the button
|
|
44
|
+
* @note If the button `variant` is set to 'standard', backgroundColor will be disregarded
|
|
45
|
+
* @default standard
|
|
46
|
+
*/
|
|
47
|
+
this.variant = 'standard';
|
|
48
|
+
/**
|
|
49
|
+
* Whether or not the button has a background
|
|
50
|
+
* @default false
|
|
51
|
+
*/
|
|
52
|
+
this.noBackground = false;
|
|
53
|
+
/**
|
|
54
|
+
* Whether or not the button has a box shadow
|
|
55
|
+
*/
|
|
56
|
+
this.withBoxShadow = false;
|
|
57
|
+
/**
|
|
58
|
+
* Whether or not the button has a left padding
|
|
59
|
+
*/
|
|
60
|
+
this.noPaddingLeft = false;
|
|
61
|
+
/**
|
|
62
|
+
* Whether or not the button has a right padding
|
|
63
|
+
*/
|
|
64
|
+
this.noPaddingRight = false;
|
|
65
|
+
/**
|
|
66
|
+
* Whether or not the button is loading
|
|
67
|
+
*/
|
|
68
|
+
this.loading = false;
|
|
69
|
+
/**
|
|
70
|
+
* The content alignment within the button
|
|
71
|
+
* @default 'center'
|
|
72
|
+
*/
|
|
73
|
+
this.justifyContent = 'center';
|
|
74
|
+
/**
|
|
75
|
+
* Whether or not the button text color is bold
|
|
76
|
+
*/
|
|
77
|
+
this.bold = false;
|
|
78
|
+
/**
|
|
79
|
+
* Whether or not the button has an icon
|
|
80
|
+
*/
|
|
81
|
+
this.hasIcon = !!this.icon;
|
|
82
|
+
/**
|
|
83
|
+
* Whether or not the button has content
|
|
84
|
+
*/
|
|
85
|
+
this.hasContent = false;
|
|
17
86
|
/**
|
|
18
87
|
* Detect if the button has an content
|
|
19
88
|
*/
|
|
@@ -84,24 +153,6 @@ export class ZonosButton {
|
|
|
84
153
|
}
|
|
85
154
|
}
|
|
86
155
|
};
|
|
87
|
-
this.buttonColor = undefined;
|
|
88
|
-
this.backgroundColor = undefined;
|
|
89
|
-
this.borderStyle = undefined;
|
|
90
|
-
this.isDisabled = false;
|
|
91
|
-
this.icon = null;
|
|
92
|
-
this.iconRight = false;
|
|
93
|
-
this.size = 'sm';
|
|
94
|
-
this.variant = 'standard';
|
|
95
|
-
this.noBackground = false;
|
|
96
|
-
this.withBoxShadow = false;
|
|
97
|
-
this.noPaddingLeft = false;
|
|
98
|
-
this.noPaddingRight = false;
|
|
99
|
-
this.loading = false;
|
|
100
|
-
this.justifyContent = 'center';
|
|
101
|
-
this.bold = false;
|
|
102
|
-
this.theme = undefined;
|
|
103
|
-
this.hasIcon = !!this.icon;
|
|
104
|
-
this.hasContent = false;
|
|
105
156
|
}
|
|
106
157
|
/**
|
|
107
158
|
* Detect if the icon changes and update the state accordingly
|
|
@@ -5,13 +5,14 @@ import { classes } from "../../utils/classes";
|
|
|
5
5
|
import { getBorderRadius } from "../../utils/getBorderRadius";
|
|
6
6
|
export class ZonosCard {
|
|
7
7
|
constructor() {
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
/**
|
|
9
|
+
* The border radius of the card
|
|
10
|
+
* @default 6
|
|
11
|
+
*/
|
|
10
12
|
this.borderRadius = 6;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
this.label = undefined;
|
|
13
|
+
/**
|
|
14
|
+
* The spacing to apply between elements in the card
|
|
15
|
+
*/
|
|
15
16
|
this.spacing = '24px';
|
|
16
17
|
}
|
|
17
18
|
render() {
|
|
@@ -8,13 +8,26 @@ let inputId = 0;
|
|
|
8
8
|
export class ZonosCheckbox {
|
|
9
9
|
constructor() {
|
|
10
10
|
this.inputId = `zonos--checkbox-${++inputId}`;
|
|
11
|
+
/**
|
|
12
|
+
* background color of the checkbox
|
|
13
|
+
*/
|
|
11
14
|
this.backgroundColor = 'blue';
|
|
12
|
-
|
|
15
|
+
/**
|
|
16
|
+
* Whether or not the checkbox is checked
|
|
17
|
+
*/
|
|
13
18
|
this.isChecked = false;
|
|
19
|
+
/**
|
|
20
|
+
* Whether or not the checkbox is disabled
|
|
21
|
+
*/
|
|
14
22
|
this.isDisabled = false;
|
|
23
|
+
/**
|
|
24
|
+
* Size of the checkbox
|
|
25
|
+
*/
|
|
15
26
|
this.size = 12;
|
|
27
|
+
/**
|
|
28
|
+
* Font size of the checkbox text
|
|
29
|
+
*/
|
|
16
30
|
this.fontSize = 'base';
|
|
17
|
-
this.borderStyle = undefined;
|
|
18
31
|
}
|
|
19
32
|
onClick() {
|
|
20
33
|
if (this.isDisabled) {
|
|
@@ -10,6 +10,14 @@ import { resetToSelectedTab } from "../../utils/resetToSelectedTab";
|
|
|
10
10
|
import TabCheckmark from "./assets/TabCheckmark.svg";
|
|
11
11
|
export class ZonosCheckoutProgressTabs {
|
|
12
12
|
constructor() {
|
|
13
|
+
/**
|
|
14
|
+
* Color of the tab progress bar and label, override the secondary color of the appearance settings
|
|
15
|
+
*/
|
|
16
|
+
this.tabColor = null;
|
|
17
|
+
/**
|
|
18
|
+
* Background color of the parent that's wrapped around the tab progress bar
|
|
19
|
+
*/
|
|
20
|
+
this.backgroundColor = null;
|
|
13
21
|
/**
|
|
14
22
|
* The total number of steps that's done
|
|
15
23
|
*/
|
|
@@ -33,8 +41,6 @@ export class ZonosCheckoutProgressTabs {
|
|
|
33
41
|
.slice(0, currentTab.index - 1)
|
|
34
42
|
.every(tab => tab.isDone);
|
|
35
43
|
};
|
|
36
|
-
this.tabColor = null;
|
|
37
|
-
this.backgroundColor = null;
|
|
38
44
|
}
|
|
39
45
|
/**
|
|
40
46
|
* Set the tab items data. This is to be used in storybook
|
|
@@ -3,7 +3,13 @@ import { Host } from "@stencil/core/internal";
|
|
|
3
3
|
import { zonosStoreFontFamily } from "../../store/zonosStore";
|
|
4
4
|
export class ZonosCollapse {
|
|
5
5
|
constructor() {
|
|
6
|
+
/**
|
|
7
|
+
* Collapsed state of the element
|
|
8
|
+
*/
|
|
6
9
|
this.collapsed = false;
|
|
10
|
+
/**
|
|
11
|
+
* Collapsed size when collapsed
|
|
12
|
+
*/
|
|
7
13
|
this.collapseSize = 0;
|
|
8
14
|
this.height = this.el.scrollHeight;
|
|
9
15
|
this.iframe = null;
|
|
@@ -11,22 +11,47 @@ import HelpDuotoneIcon from "./assets/HelpDuotoneIcon.svg";
|
|
|
11
11
|
import WarningDuotoneIcon from "./assets/WarningDuotoneIcon.svg";
|
|
12
12
|
export class ZonosConfirmDialog {
|
|
13
13
|
constructor() {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
};
|
|
14
|
+
/**
|
|
15
|
+
* Dialog title text
|
|
16
|
+
* @default "Are you sure?"
|
|
17
|
+
*/
|
|
19
18
|
this.dialogTitle = translate('Are you sure?');
|
|
19
|
+
/**
|
|
20
|
+
* Dialog intent (for icon and button color)
|
|
21
|
+
* @default "info"
|
|
22
|
+
*/
|
|
20
23
|
this.dialogIntent = 'info';
|
|
24
|
+
/**
|
|
25
|
+
* Dialog subtitle text
|
|
26
|
+
* @default null No subtitle
|
|
27
|
+
*/
|
|
21
28
|
this.dialogSubtitle = null;
|
|
22
|
-
|
|
23
|
-
|
|
29
|
+
/**
|
|
30
|
+
* Dialog width
|
|
31
|
+
* @default 350 px
|
|
32
|
+
*/
|
|
24
33
|
this.dialogWidth = 350;
|
|
25
|
-
|
|
34
|
+
/**
|
|
35
|
+
* Type of dialog
|
|
36
|
+
* - "alert" - Only confirm button
|
|
37
|
+
* - "confirm" - Both Confirm and cancel buttons
|
|
38
|
+
* @default "confirm"
|
|
39
|
+
*/
|
|
26
40
|
this.dialogType = 'confirm';
|
|
41
|
+
/**
|
|
42
|
+
* Whether or not the dialog is open
|
|
43
|
+
*/
|
|
27
44
|
this.isMobile = false;
|
|
28
|
-
|
|
45
|
+
/**
|
|
46
|
+
* Whether or not to close the dialog when clicking outside of it
|
|
47
|
+
* @default false
|
|
48
|
+
*/
|
|
29
49
|
this.noClickOutside = false;
|
|
50
|
+
this.clickOutsideDialogHandler = (event) => {
|
|
51
|
+
if (event.target === event.currentTarget && !this.noClickOutside) {
|
|
52
|
+
this.closeDialogHandler();
|
|
53
|
+
}
|
|
54
|
+
};
|
|
30
55
|
}
|
|
31
56
|
handleKeyDown(ev) {
|
|
32
57
|
if (ev.key === 'Escape') {
|
|
@@ -5,8 +5,12 @@ import { classes } from "../../utils/classes";
|
|
|
5
5
|
const FLAG_URL = process.env.NEXT_PUBLIC_FLAG_URL;
|
|
6
6
|
export class ZonosCountryFlag {
|
|
7
7
|
constructor() {
|
|
8
|
+
/**
|
|
9
|
+
* The country code for the flag
|
|
10
|
+
* @default localizationStore.selectedCountryCode
|
|
11
|
+
* @example 'US'
|
|
12
|
+
*/
|
|
8
13
|
this.countryCode = localizationStore.selectedCountryCode;
|
|
9
|
-
this.size = undefined;
|
|
10
14
|
}
|
|
11
15
|
render() {
|
|
12
16
|
if (!this.el.shadowRoot || !this.countryCode) {
|
|
@@ -7,6 +7,12 @@ import { zonosStoreFontFamily } from "../../store/zonosStore";
|
|
|
7
7
|
import GreenCheckDuotoneIcon from "./assets/greenCheckDuotone.svg";
|
|
8
8
|
export class ZonosCountrySelect {
|
|
9
9
|
constructor() {
|
|
10
|
+
/**
|
|
11
|
+
* Function to close the country select
|
|
12
|
+
* @default () => {}
|
|
13
|
+
*/
|
|
14
|
+
this.handleOnClose = () => { };
|
|
15
|
+
this.inputValue = '';
|
|
10
16
|
this.countrySelected = (countryCode) => {
|
|
11
17
|
// mutate the selected country code in store
|
|
12
18
|
void localizationStoreUpdateSelectedCountryCode(countryCode);
|
|
@@ -23,8 +29,6 @@ export class ZonosCountrySelect {
|
|
|
23
29
|
countryListSelector.scrollTop = 0;
|
|
24
30
|
}
|
|
25
31
|
};
|
|
26
|
-
this.handleOnClose = () => { };
|
|
27
|
-
this.inputValue = '';
|
|
28
32
|
}
|
|
29
33
|
componentDidRender() {
|
|
30
34
|
var _a, _b;
|
|
@@ -3,7 +3,13 @@ import { zonosStoreFontFamily } from "../../store/zonosStore";
|
|
|
3
3
|
import { formatStringWithLinks } from "../../utils/formatStringWithLinks";
|
|
4
4
|
export class ZonosCustomMessage {
|
|
5
5
|
constructor() {
|
|
6
|
+
/**
|
|
7
|
+
* The custom message icon
|
|
8
|
+
*/
|
|
6
9
|
this.icon = '';
|
|
10
|
+
/**
|
|
11
|
+
* The custom message text
|
|
12
|
+
*/
|
|
7
13
|
this.message = '';
|
|
8
14
|
}
|
|
9
15
|
render() {
|
|
@@ -7,6 +7,54 @@ import { getBorderRadius } from "../../utils/getBorderRadius";
|
|
|
7
7
|
import RemoveIcon from "./assets/removeIcon.svg";
|
|
8
8
|
export class ZonosDialog {
|
|
9
9
|
constructor() {
|
|
10
|
+
/**
|
|
11
|
+
* Whether or not the dialog is open
|
|
12
|
+
* @default false
|
|
13
|
+
*/
|
|
14
|
+
this.open = false;
|
|
15
|
+
/**
|
|
16
|
+
* The header text for the dialog
|
|
17
|
+
*/
|
|
18
|
+
this.headerText = '';
|
|
19
|
+
/**
|
|
20
|
+
* The width of the dialog
|
|
21
|
+
* @default 460px
|
|
22
|
+
*/
|
|
23
|
+
this.width = '460px';
|
|
24
|
+
/**
|
|
25
|
+
* Whether or not to show the header
|
|
26
|
+
* @default false
|
|
27
|
+
*/
|
|
28
|
+
this.noHeader = false;
|
|
29
|
+
/**
|
|
30
|
+
* Whether or not to have body padding
|
|
31
|
+
* @default false
|
|
32
|
+
*/
|
|
33
|
+
this.noBodyPadding = false;
|
|
34
|
+
/**
|
|
35
|
+
* Whether or not to have body padding
|
|
36
|
+
* @default false
|
|
37
|
+
*/
|
|
38
|
+
this.noBorder = false;
|
|
39
|
+
/**
|
|
40
|
+
* Whether or not to show the close button
|
|
41
|
+
* @default false
|
|
42
|
+
*/
|
|
43
|
+
this.noCloseButton = false;
|
|
44
|
+
/**
|
|
45
|
+
* Whether or not to close the dialog when clicking outside of it
|
|
46
|
+
* @default false
|
|
47
|
+
*/
|
|
48
|
+
this.noClickOutside = false;
|
|
49
|
+
/**
|
|
50
|
+
* Flag to determine if the checkout is on mobile
|
|
51
|
+
*/
|
|
52
|
+
this.mobile = false;
|
|
53
|
+
/**
|
|
54
|
+
* Load loading spinner for the dialog or not
|
|
55
|
+
*/
|
|
56
|
+
this.isLoading = true;
|
|
57
|
+
this.isMobile = false;
|
|
10
58
|
this.isMobileMode = () => {
|
|
11
59
|
return this.mobile || window.innerWidth <= 768;
|
|
12
60
|
};
|
|
@@ -22,20 +70,6 @@ export class ZonosDialog {
|
|
|
22
70
|
this.closeDialog.emit();
|
|
23
71
|
}
|
|
24
72
|
};
|
|
25
|
-
this.open = false;
|
|
26
|
-
this.headerText = '';
|
|
27
|
-
this.width = '460px';
|
|
28
|
-
this.height = undefined;
|
|
29
|
-
this.minHeight = undefined;
|
|
30
|
-
this.noHeader = false;
|
|
31
|
-
this.noBodyPadding = false;
|
|
32
|
-
this.noBorder = false;
|
|
33
|
-
this.borderStyle = undefined;
|
|
34
|
-
this.noCloseButton = false;
|
|
35
|
-
this.noClickOutside = false;
|
|
36
|
-
this.mobile = false;
|
|
37
|
-
this.isLoading = true;
|
|
38
|
-
this.isMobile = false;
|
|
39
73
|
}
|
|
40
74
|
handleWindowResize() {
|
|
41
75
|
this.isMobile = this.isMobileMode();
|
|
@@ -3,9 +3,20 @@ import { zonosStoreFontFamily } from "../../store/zonosStore";
|
|
|
3
3
|
import { isColorVariable } from "../../utils/isColorVariable";
|
|
4
4
|
export class ZonosIcon {
|
|
5
5
|
constructor() {
|
|
6
|
+
/**
|
|
7
|
+
* Determines if the icon should be auto height instead of square
|
|
8
|
+
* @default false
|
|
9
|
+
*/
|
|
6
10
|
this.autoHeight = false;
|
|
11
|
+
/**
|
|
12
|
+
* Color of the SVG
|
|
13
|
+
* @default 'gray-1000'
|
|
14
|
+
*/
|
|
7
15
|
this.iconColor = 'gray-1000';
|
|
8
|
-
|
|
16
|
+
/**
|
|
17
|
+
* The size of the icon
|
|
18
|
+
* @default 24
|
|
19
|
+
*/
|
|
9
20
|
this.size = 24;
|
|
10
21
|
}
|
|
11
22
|
render() {
|
|
@@ -4,11 +4,25 @@ import { classes } from "../../utils/classes";
|
|
|
4
4
|
import { getBorderRadius } from "../../utils/getBorderRadius";
|
|
5
5
|
export class ZonosInput {
|
|
6
6
|
constructor() {
|
|
7
|
+
/**
|
|
8
|
+
* Value of the input
|
|
9
|
+
*/
|
|
7
10
|
this.inputValue = '';
|
|
8
|
-
|
|
11
|
+
/**
|
|
12
|
+
* Input size
|
|
13
|
+
*/
|
|
9
14
|
this.inputSize = 'md';
|
|
15
|
+
/**
|
|
16
|
+
* Disables the input
|
|
17
|
+
*/
|
|
10
18
|
this.isDisabled = false;
|
|
19
|
+
/**
|
|
20
|
+
* Error state of the input
|
|
21
|
+
*/
|
|
11
22
|
this.isError = false;
|
|
23
|
+
/**
|
|
24
|
+
* Placeholder for the input
|
|
25
|
+
*/
|
|
12
26
|
this.inputPlaceholder = '';
|
|
13
27
|
this.value = this.inputValue;
|
|
14
28
|
}
|
|
@@ -7,12 +7,16 @@ import { languages } from "../../../types/ILanguage";
|
|
|
7
7
|
import GreenCheckDuotoneIcon from "./assets/greenCheckDuotone.svg";
|
|
8
8
|
export class ZonosLanguageSelect {
|
|
9
9
|
constructor() {
|
|
10
|
+
/**
|
|
11
|
+
* Function to close the language select
|
|
12
|
+
* @default () => {}
|
|
13
|
+
*/
|
|
14
|
+
this.handleOnClose = () => { };
|
|
10
15
|
this.languageSelected = (languageCode) => {
|
|
11
16
|
// mutate the selected language code in store
|
|
12
17
|
void localizationStoreUpdateSelectedLocale(languageCode);
|
|
13
18
|
this.handleOnClose();
|
|
14
19
|
};
|
|
15
|
-
this.handleOnClose = () => { };
|
|
16
20
|
}
|
|
17
21
|
render() {
|
|
18
22
|
const { selectedLocale } = localizationStore;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
export class ZonosLink {
|
|
3
3
|
constructor() {
|
|
4
|
+
/**
|
|
5
|
+
* The href for the link
|
|
6
|
+
*/
|
|
4
7
|
this.href = '';
|
|
5
|
-
this.rel = undefined;
|
|
6
|
-
this.target = undefined;
|
|
7
|
-
this.linkTitle = undefined;
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
10
|
return (h(Host, { key: '41f0a757a334338631250764599ac99e28c41ed2', class: "zonos--elements" }, h("a", { key: 'b6e84f40141e8de85d005c05426f885f242ffc53', href: this.href, rel: this.rel, target: this.target, title: this.linkTitle }, h("slot", { key: 'dd5ed33f163d7958fb7806992e003d2279ee1f5b' }))));
|
|
@@ -2,8 +2,14 @@ import { h, Host } from "@stencil/core";
|
|
|
2
2
|
import { classes } from "../../utils/classes";
|
|
3
3
|
export class ZonosLoadingOverlay {
|
|
4
4
|
constructor() {
|
|
5
|
+
/**
|
|
6
|
+
* Whether or not the overlay is open
|
|
7
|
+
* @default false
|
|
8
|
+
*/
|
|
5
9
|
this.open = false;
|
|
6
|
-
|
|
10
|
+
/**
|
|
11
|
+
* Spinner size (optional, default 40)
|
|
12
|
+
*/
|
|
7
13
|
this.size = 40;
|
|
8
14
|
}
|
|
9
15
|
render() {
|
|
@@ -3,7 +3,13 @@ import { zonosStoreFontFamily } from "../../store/zonosStore";
|
|
|
3
3
|
import { classes } from "../../utils/classes";
|
|
4
4
|
export class ZonosLogo {
|
|
5
5
|
constructor() {
|
|
6
|
+
/**
|
|
7
|
+
* Theme to change the color of the logo
|
|
8
|
+
*/
|
|
6
9
|
this.theme = 'LIGHT';
|
|
10
|
+
/**
|
|
11
|
+
* The width of the logo
|
|
12
|
+
*/
|
|
7
13
|
this.width = 'auto';
|
|
8
14
|
}
|
|
9
15
|
render() {
|
|
@@ -3,14 +3,14 @@ import { zonosStoreFontFamily } from "../../store/zonosStore";
|
|
|
3
3
|
import { classes } from "../../utils/classes";
|
|
4
4
|
export class ZonosRestState {
|
|
5
5
|
constructor() {
|
|
6
|
+
/**
|
|
7
|
+
* Whether or not the image failed to load
|
|
8
|
+
*/
|
|
9
|
+
this.isErrorImageLoad = false;
|
|
6
10
|
this.getImageRestState = () => {
|
|
7
11
|
const imageSrc = getAssetPath(`./assets/${this.restStateType}.png`);
|
|
8
12
|
return imageSrc;
|
|
9
13
|
};
|
|
10
|
-
this.restStateSubtitle = undefined;
|
|
11
|
-
this.restStateTitle = undefined;
|
|
12
|
-
this.restStateType = undefined;
|
|
13
|
-
this.isErrorImageLoad = false;
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
16
|
const imageUrl = this.getImageRestState();
|
package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js
CHANGED
|
@@ -4,7 +4,14 @@ import { zonosStoreFontFamily } from "../../store/zonosStore";
|
|
|
4
4
|
import RemoveIcon from "./assets/removeIcon.svg";
|
|
5
5
|
export class ZonosSelectDialogHeader {
|
|
6
6
|
constructor() {
|
|
7
|
+
/**
|
|
8
|
+
* Callback to do something on close
|
|
9
|
+
* @default () => {}
|
|
10
|
+
*/
|
|
7
11
|
this.handleOnClose = () => { };
|
|
12
|
+
/**
|
|
13
|
+
* The label for the select dialog
|
|
14
|
+
*/
|
|
8
15
|
this.label = '';
|
|
9
16
|
}
|
|
10
17
|
render() {
|
package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.js
CHANGED
|
@@ -5,6 +5,11 @@ import { getBorderRadius } from "../../utils/getBorderRadius";
|
|
|
5
5
|
import { isColorVariable } from "../../utils/isColorVariable";
|
|
6
6
|
export class ZonosShippingRichRadio {
|
|
7
7
|
constructor() {
|
|
8
|
+
/**
|
|
9
|
+
* Selected item
|
|
10
|
+
* @default {null|firstItem}
|
|
11
|
+
*/
|
|
12
|
+
this.selectedItem = null;
|
|
8
13
|
this.handleRichRadioSelect = (item) => {
|
|
9
14
|
var _a;
|
|
10
15
|
(_a = this.radioSelected) === null || _a === void 0 ? void 0 : _a.emit(item);
|
|
@@ -21,11 +26,6 @@ export class ZonosShippingRichRadio {
|
|
|
21
26
|
'--zonos--selected-border-color': secondaryColor || 'unset',
|
|
22
27
|
};
|
|
23
28
|
};
|
|
24
|
-
this.items = undefined;
|
|
25
|
-
this.borderColor = undefined;
|
|
26
|
-
this.borderStyle = undefined;
|
|
27
|
-
this.theme = undefined;
|
|
28
|
-
this.selectedItem = null;
|
|
29
29
|
}
|
|
30
30
|
render() {
|
|
31
31
|
var _a;
|
|
@@ -2,8 +2,11 @@ import { h, Host } from "@stencil/core";
|
|
|
2
2
|
import { classes } from "../../utils/classes";
|
|
3
3
|
export class ZonosSpinner {
|
|
4
4
|
constructor() {
|
|
5
|
+
/**
|
|
6
|
+
* The size of the spinner
|
|
7
|
+
* @default 32
|
|
8
|
+
*/
|
|
5
9
|
this.size = 32;
|
|
6
|
-
this.spinnerColor = undefined;
|
|
7
10
|
}
|
|
8
11
|
render() {
|
|
9
12
|
if (!this.el.shadowRoot) {
|
|
@@ -15,17 +15,33 @@ export class ZonosStripeInput {
|
|
|
15
15
|
*/
|
|
16
16
|
this.inheritedAttributes = {};
|
|
17
17
|
this.inputId = `zonos--input-${++inputId}`;
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
/**
|
|
19
|
+
* Value of the stripeInput
|
|
20
|
+
*/
|
|
20
21
|
this.inputValue = '';
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
/**
|
|
23
|
+
* Disables the input
|
|
24
|
+
*/
|
|
24
25
|
this.isDisabled = false;
|
|
26
|
+
/**
|
|
27
|
+
* Error state of the input
|
|
28
|
+
*/
|
|
25
29
|
this.isError = false;
|
|
30
|
+
/**
|
|
31
|
+
* Error message of the input
|
|
32
|
+
*/
|
|
26
33
|
this.error = '';
|
|
34
|
+
/**
|
|
35
|
+
* Placeholder for the input
|
|
36
|
+
*/
|
|
27
37
|
this.inputPlaceholder = '';
|
|
38
|
+
/**
|
|
39
|
+
* The value of the input.
|
|
40
|
+
*/
|
|
28
41
|
this.value = '';
|
|
42
|
+
/**
|
|
43
|
+
* Whether the input is required
|
|
44
|
+
*/
|
|
29
45
|
this.required = false;
|
|
30
46
|
this.internalValue = this.inputValue;
|
|
31
47
|
}
|
package/dist/collection/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.js
CHANGED
|
@@ -16,6 +16,25 @@ export class ZonosStripePhoneInput {
|
|
|
16
16
|
* Inherited attributes from the host element
|
|
17
17
|
*/
|
|
18
18
|
this.inheritedAttributes = {};
|
|
19
|
+
/**
|
|
20
|
+
* The autoComplete attribute for the phone input
|
|
21
|
+
*/
|
|
22
|
+
this.autoComplete = '';
|
|
23
|
+
/**
|
|
24
|
+
* Available country options for the select dropdown
|
|
25
|
+
*/
|
|
26
|
+
this.countryOptions = null;
|
|
27
|
+
/**
|
|
28
|
+
* Whether the input is disabled
|
|
29
|
+
*/
|
|
30
|
+
this.disabled = false;
|
|
31
|
+
/**
|
|
32
|
+
* The country code of the phone input
|
|
33
|
+
*/
|
|
34
|
+
this.countryCode = null;
|
|
35
|
+
this.phoneNumber = '';
|
|
36
|
+
this.isFocused = false;
|
|
37
|
+
this.isSelectOpen = false;
|
|
19
38
|
this.handleCountryChange = (event) => {
|
|
20
39
|
var _a;
|
|
21
40
|
const select = event.target;
|
|
@@ -102,20 +121,6 @@ export class ZonosStripePhoneInput {
|
|
|
102
121
|
// Update the phone formatter to use the new country code
|
|
103
122
|
this.updatePhoneFormatter();
|
|
104
123
|
};
|
|
105
|
-
this.autoComplete = '';
|
|
106
|
-
this.countryOptions = null;
|
|
107
|
-
this.disabled = false;
|
|
108
|
-
this.error = undefined;
|
|
109
|
-
this.inputLabel = undefined;
|
|
110
|
-
this.overridePrimaryColor = undefined;
|
|
111
|
-
this.overrideSecondaryColor = undefined;
|
|
112
|
-
this.inputValue = undefined;
|
|
113
|
-
this.countryCode = null;
|
|
114
|
-
this.minWidth = undefined;
|
|
115
|
-
this.selectedCountry = undefined;
|
|
116
|
-
this.phoneNumber = '';
|
|
117
|
-
this.isFocused = false;
|
|
118
|
-
this.isSelectOpen = false;
|
|
119
124
|
}
|
|
120
125
|
onCountryOptionsChange() {
|
|
121
126
|
// Re-initialize the phone number value when the country options change
|