@zonos/elements 1.3.217 → 1.3.219
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/buildCartItemsByTempCart-309fcebf.js +28 -0
- package/dist/cjs/{cart-54ff39d6.js → cart-9a2b32e4.js} +91 -48
- package/dist/cjs/cleanHtmlMarkdown-577d0a77.js +999 -0
- package/dist/cjs/{handleFetch-0313ebba.js → handleFetch-45f35cac.js} +2 -1
- package/dist/cjs/index.cjs.js +20 -10
- package/dist/cjs/isCollectMobileTablet-7e57fd90.js +172 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/localization-b12edb2a.js +738 -0
- package/dist/cjs/{paypal-e7504122.js → paypal-e80871d0.js} +13 -9
- package/dist/cjs/placeTestOrder-8222fe95.js +93 -0
- package/dist/cjs/{localization-721a5ec3.js → translationStore-20a6d8bf.js} +963 -734
- package/dist/cjs/{updateCheckoutSessionAttributes-8db49644.js → updateCheckoutSessionAttributes-c0853fdd.js} +1 -1
- package/dist/cjs/zonos-address_11.cjs.entry.js +103 -73
- package/dist/cjs/zonos-badge.cjs.entry.js +3 -3
- package/dist/cjs/{zonos-banner.cjs.entry.js → zonos-banner_2.cjs.entry.js} +40 -0
- package/dist/cjs/zonos-button_3.cjs.entry.js +3 -3
- package/dist/cjs/{zonos-cart-items_14.cjs.entry.js → zonos-cart-items_12.cjs.entry.js} +75 -1294
- package/dist/cjs/zonos-checkout.cjs.entry.js +27 -50
- package/dist/cjs/zonos-collapse.cjs.entry.js +2 -2
- package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +92 -0
- package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +810 -0
- package/dist/cjs/zonos-collect.cjs.entry.js +468 -0
- package/dist/cjs/zonos-component.cjs.entry.js +1 -1
- package/dist/cjs/zonos-confirm-dialog_2.cjs.entry.js +168 -0
- package/dist/cjs/zonos-controller.cjs.entry.js +85 -29
- package/dist/cjs/zonos-country-flag.cjs.entry.js +3 -2
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +12 -11
- package/dist/cjs/zonos-elements.cjs.js +1 -1
- package/dist/cjs/zonos-empty-state-payment_4.cjs.entry.js +16 -6
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +35 -34
- package/dist/cjs/zonos-hello.cjs.entry.js +9 -8
- package/dist/cjs/zonos-input.cjs.entry.js +4 -4
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +7 -6
- package/dist/cjs/zonos-link.cjs.entry.js +1 -1
- package/dist/cjs/zonos-logo.cjs.entry.js +2 -2
- package/dist/cjs/zonos-stripe-input.cjs.entry.js +8 -5
- package/dist/cjs/zonos-text.cjs.entry.js +1 -1
- package/dist/cjs/zonos-toggle.cjs.entry.js +2 -2
- package/dist/cjs/zonos-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/zonos-v-stack.cjs.entry.js +2 -2
- package/dist/collection/collection-manifest.json +10 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +3 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +2 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +5 -1
- package/dist/collection/components/checkout/zonos-collect/assets/ChevronDownIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-cart-items/assets/empty-item.jpeg +0 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-cart-items/zonos-collect-cart-items.css +60 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-cart-items/zonos-collect-cart-items.js +39 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/assets/RemoveIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/assets/SuccessIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.css +84 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.js +403 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/assets/chevronDownIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/assets/globe.svg +3 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/assets/zonosIconDark.svg +10 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/assets/zonosIconLight.svg +10 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/assets/zonosWordmark.svg +7 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/zonos-collect-footer.css +152 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/zonos-collect-footer.js +164 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-order-details/assets/ChevronDownIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-order-details/assets/ChevronUpIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-order-details/zonos-collect-order-details.css +109 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-order-details/zonos-collect-order-details.js +194 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-payment/assets/CheckmarkLineIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-payment/assets/RemoveLineIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-payment/zonos-collect-payment.css +98 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-payment/zonos-collect-payment.js +369 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-review/zonos-collect-review.css +68 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-review/zonos-collect-review.js +151 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-subtotal/zonos-collect-subtotal.css +78 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-subtotal/zonos-collect-subtotal.js +115 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect.css +349 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect.js +547 -0
- 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.css +38 -0
- package/dist/collection/components/common/zonos-h-stack/zonos-h-stack.js +63 -0
- package/dist/collection/components/common/zonos-input/zonos-input.js +4 -4
- package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -2
- 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/assets/RemoveLineIcon.svg +3 -0
- package/dist/collection/components/common/zonos-skeleton/zonos-skeleton.css +40 -0
- package/dist/collection/components/common/zonos-skeleton/zonos-skeleton.js +102 -0
- package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.js +8 -5
- package/dist/collection/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.js +5 -5
- package/dist/collection/components/common/zonos-stripe-select/zonos-stripe-select.js +5 -5
- package/dist/collection/components/common/zonos-text/zonos-text.css +1 -0
- 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-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -2
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +4 -4
- package/dist/collection/components/main/zonos-controller.js +91 -25
- package/dist/collection/components/paypal/zonos-paypal-payment.js +13 -2
- package/dist/collection/components/store/checkout/cart.js +36 -15
- package/dist/collection/components/store/checkout/collect.js +157 -0
- package/dist/collection/components/store/checkout/paypal.js +4 -2
- package/dist/collection/components/store/checkout/stripe.js +31 -12
- package/dist/collection/components/store/translationStore/strings.arabic.js +48 -0
- package/dist/collection/components/store/translationStore/strings.base.js +48 -0
- package/dist/collection/components/store/translationStore/strings.chinese.js +48 -0
- package/dist/collection/components/store/translationStore/strings.danish.js +48 -0
- package/dist/collection/components/store/translationStore/strings.dutch.js +48 -0
- package/dist/collection/components/store/translationStore/strings.french.js +48 -0
- package/dist/collection/components/store/translationStore/strings.german.js +48 -0
- package/dist/collection/components/store/translationStore/strings.hebrew.js +48 -0
- package/dist/collection/components/store/translationStore/strings.indonesian.js +48 -0
- package/dist/collection/components/store/translationStore/strings.italian.js +48 -0
- package/dist/collection/components/store/translationStore/strings.japanese.js +48 -0
- package/dist/collection/components/store/translationStore/strings.korean.js +48 -0
- package/dist/collection/components/store/translationStore/strings.norwegian.js +48 -0
- package/dist/collection/components/store/translationStore/strings.polish.js +48 -0
- package/dist/collection/components/store/translationStore/strings.portuguese.js +48 -0
- package/dist/collection/components/store/translationStore/strings.russian.js +48 -0
- package/dist/collection/components/store/translationStore/strings.spanish.js +48 -0
- package/dist/collection/components/store/translationStore/strings.swedish.js +48 -0
- package/dist/collection/components/store/translationStore/strings.turkish.js +48 -0
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +48 -0
- package/dist/collection/components/store/translationStore.js +2 -1
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +35 -18
- 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-link-authentication/zonos-link-authentication.js +15 -2
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
- package/dist/collection/components/utils/checkout/initCollect.js +15 -0
- package/dist/collection/components/utils/checkout/isCollectMobileTablet.js +10 -0
- package/dist/collection/components/utils/checkout/renderCheckoutCurrency.js +10 -1
- package/dist/collection/components/utils/getNextFallbackApi.js +1 -1
- package/dist/collection/components/utils/handleFetch.js +1 -0
- package/dist/collection/components/utils/renderFallback.js +7 -0
- package/dist/collection/scripts/_getZonosQaUrl.js +5 -1
- package/dist/collection/scripts/_zonosBase.js +7 -1
- package/dist/collection/types/checkout/api/PartyInfo.js +1 -0
- package/dist/collection/types/generated/graphql.internal.types.js +103 -0
- package/dist/collection/types/index.js +1 -0
- package/dist/esm/buildCartItemsByTempCart-c4488f73.js +26 -0
- package/dist/esm/{cart-010402f9.js → cart-acf4ebf5.js} +69 -28
- package/dist/esm/cleanHtmlMarkdown-b5b18743.js +997 -0
- package/dist/esm/{handleFetch-fa90f7f6.js → handleFetch-99218189.js} +2 -1
- package/dist/esm/index.js +20 -10
- package/dist/esm/isCollectMobileTablet-b72b81c5.js +165 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/localization-8646f526.js +719 -0
- package/dist/esm/{paypal-70b140d9.js → paypal-2fa930eb.js} +8 -5
- package/dist/esm/placeTestOrder-d1ad9cf6.js +90 -0
- package/dist/esm/{localization-9db8b6e9.js → translationStore-c9743292.js} +963 -718
- package/dist/esm/{updateCheckoutSessionAttributes-691cdc6d.js → updateCheckoutSessionAttributes-92f42882.js} +1 -1
- package/dist/esm/zonos-address_11.entry.js +72 -42
- package/dist/esm/zonos-badge.entry.js +3 -3
- package/dist/esm/{zonos-banner.entry.js → zonos-banner_2.entry.js} +40 -1
- package/dist/esm/zonos-button_3.entry.js +3 -3
- package/dist/esm/{zonos-cart-items_14.entry.js → zonos-cart-items_12.entry.js} +24 -1241
- package/dist/esm/zonos-checkout.entry.js +8 -31
- package/dist/esm/zonos-collapse.entry.js +2 -2
- package/dist/esm/zonos-collect-cart-items_3.entry.js +86 -0
- package/dist/esm/zonos-collect-finish_6.entry.js +801 -0
- package/dist/esm/zonos-collect.entry.js +464 -0
- package/dist/esm/zonos-component.entry.js +1 -1
- package/dist/esm/zonos-confirm-dialog_2.entry.js +163 -0
- package/dist/esm/zonos-controller.entry.js +85 -29
- package/dist/esm/zonos-country-flag.entry.js +3 -2
- package/dist/esm/zonos-country-select_4.entry.js +12 -11
- package/dist/esm/zonos-elements.js +1 -1
- package/dist/esm/zonos-empty-state-payment_4.entry.js +16 -6
- package/dist/esm/zonos-hello-dialog.entry.js +7 -6
- package/dist/esm/zonos-hello.entry.js +3 -2
- package/dist/esm/zonos-input.entry.js +4 -4
- package/dist/esm/zonos-language-select_2.entry.js +7 -6
- package/dist/esm/zonos-link.entry.js +1 -1
- package/dist/esm/zonos-logo.entry.js +2 -2
- package/dist/esm/zonos-stripe-input.entry.js +9 -6
- package/dist/esm/zonos-text.entry.js +1 -1
- package/dist/esm/zonos-toggle.entry.js +2 -2
- package/dist/esm/zonos-tooltip.entry.js +2 -2
- package/dist/esm/zonos-v-stack.entry.js +2 -2
- package/dist/esm-es5/buildCartItemsByTempCart-c4488f73.js +1 -0
- package/dist/esm-es5/cart-acf4ebf5.js +1 -0
- package/dist/esm-es5/cleanHtmlMarkdown-b5b18743.js +1 -0
- package/dist/esm-es5/{handleFetch-fa90f7f6.js → handleFetch-99218189.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/isCollectMobileTablet-b72b81c5.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/localization-8646f526.js +1 -0
- package/dist/esm-es5/paypal-2fa930eb.js +17 -0
- package/dist/esm-es5/placeTestOrder-d1ad9cf6.js +1 -0
- package/dist/esm-es5/translationStore-c9743292.js +1 -0
- package/dist/esm-es5/{updateCheckoutSessionAttributes-691cdc6d.js → updateCheckoutSessionAttributes-92f42882.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_2.entry.js +1 -0
- package/dist/esm-es5/zonos-button_3.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -0
- 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 -0
- package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -0
- package/dist/esm-es5/zonos-collect.entry.js +1 -0
- package/dist/esm-es5/zonos-component.entry.js +1 -1
- package/dist/esm-es5/zonos-confirm-dialog_2.entry.js +1 -0
- 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-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/scripts/index.d.ts +471 -4
- 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/checkout/zonos-collect/zonos-collect-cart-items/zonos-collect-cart-items.d.ts +4 -0
- package/dist/types/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.d.ts +49 -0
- package/dist/types/components/checkout/zonos-collect/zonos-collect-footer/zonos-collect-footer.d.ts +25 -0
- package/dist/types/components/checkout/zonos-collect/zonos-collect-order-details/zonos-collect-order-details.d.ts +29 -0
- package/dist/types/components/checkout/zonos-collect/zonos-collect-payment/zonos-collect-payment.d.ts +62 -0
- package/dist/types/components/checkout/zonos-collect/zonos-collect-review/zonos-collect-review.d.ts +22 -0
- package/dist/types/components/checkout/zonos-collect/zonos-collect-subtotal/zonos-collect-subtotal.d.ts +10 -0
- package/dist/types/components/checkout/zonos-collect/zonos-collect.d.ts +86 -0
- package/dist/types/components/common/zonos-h-stack/zonos-h-stack.d.ts +9 -0
- package/dist/types/components/common/zonos-skeleton/zonos-skeleton.d.ts +17 -0
- package/dist/types/components/main/zonos-controller.d.ts +5 -0
- package/dist/types/components/paypal/zonos-paypal-payment.d.ts +3 -0
- package/dist/types/components/store/checkout/cart.d.ts +23 -3
- package/dist/types/components/store/checkout/collect.d.ts +21 -0
- package/dist/types/components/store/checkout/paypal.d.ts +4 -3
- package/dist/types/components/store/checkout/stripe.d.ts +6 -2
- package/dist/types/components/store/translationStore/strings.arabic.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.base.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.danish.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.french.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.german.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.italian.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.korean.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.polish.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.russian.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +48 -0
- package/dist/types/components/store/translationStore.d.ts +2 -1
- package/dist/types/components/stripe/zonos-address/zonos-address.d.ts +1 -2
- package/dist/types/components/stripe/zonos-link-authentication/zonos-link-authentication.d.ts +2 -0
- package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
- package/dist/types/components/utils/checkout/initCollect.d.ts +1 -0
- package/dist/types/components/utils/checkout/isCollectMobileTablet.d.ts +4 -0
- package/dist/types/components/utils/getNextFallbackApi.d.ts +2 -2
- package/dist/types/components/utils/renderFallback.d.ts +6 -0
- package/dist/types/components.d.ts +401 -2
- package/dist/types/scripts/_zonosBase.d.ts +5 -0
- package/dist/types/scripts/cart/_setupCartDataWithSettings.d.ts +5 -0
- package/dist/types/types/checkout/api/CheckoutSession.d.ts +9 -1
- package/dist/types/types/checkout/api/CreateParty.d.ts +24 -0
- package/dist/types/types/checkout/api/NormalizedTempCart.d.ts +6 -1
- package/dist/types/types/checkout/api/PartyInfo.d.ts +24 -0
- package/dist/types/types/generated/graphql.frontend.types.d.ts +1 -1
- package/dist/types/types/generated/graphql.frontend.types.ts +1 -1
- package/dist/types/types/generated/graphql.internal.types.d.ts +431 -9
- package/dist/types/types/generated/graphql.internal.types.ts +428 -10
- package/dist/types/types/index.d.ts +1 -0
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-288761b1.system.entry.js → p-009c3ac5.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c7d5d45d.entry.js → p-03980f76.entry.js} +1 -1
- package/dist/zonos-elements/{p-c1d86f32.system.js → p-062430f9.system.js} +1 -1
- package/dist/zonos-elements/p-07bea979.system.js +1 -0
- package/dist/zonos-elements/p-0cec2dd2.system.entry.js +1 -0
- package/dist/zonos-elements/p-0d6c6a38.entry.js +1 -0
- package/dist/zonos-elements/p-0e28207a.js +1 -0
- package/dist/zonos-elements/{p-1efc348b.system.js → p-0ed63ce0.system.js} +1 -1
- package/dist/zonos-elements/p-0ef2a242.js +1 -0
- package/dist/zonos-elements/p-106ae0f1.entry.js +1 -0
- package/dist/zonos-elements/p-10797d2b.system.entry.js +1 -0
- package/dist/zonos-elements/p-195b33b6.system.entry.js +1 -0
- package/dist/zonos-elements/p-1fe5d4da.system.entry.js +1 -0
- package/dist/zonos-elements/{p-da4c01da.system.entry.js → p-2323ff0f.system.entry.js} +1 -1
- package/dist/zonos-elements/p-23293a0b.entry.js +1 -0
- package/dist/zonos-elements/{p-62813488.entry.js → p-23735db6.entry.js} +1 -1
- package/dist/zonos-elements/{p-ebaaaee9.entry.js → p-26573347.entry.js} +1 -1
- package/dist/zonos-elements/{p-e640e8b8.entry.js → p-29499a5f.entry.js} +1 -1
- package/dist/zonos-elements/p-29c80a34.js +1 -0
- package/dist/zonos-elements/{p-edc77ea1.entry.js → p-2a9681b4.entry.js} +1 -1
- package/dist/zonos-elements/{p-3f31901f.entry.js → p-2c9381be.entry.js} +1 -1
- package/dist/zonos-elements/p-2cc031b3.js +17 -0
- package/dist/zonos-elements/{p-7ab62a26.system.entry.js → p-34a37ce7.system.entry.js} +1 -1
- package/dist/zonos-elements/p-3c9714a8.system.entry.js +1 -0
- package/dist/zonos-elements/p-485416ec.js +1 -0
- package/dist/zonos-elements/p-56ee6d4b.system.entry.js +1 -0
- package/dist/zonos-elements/p-58afbe2b.entry.js +1 -0
- package/dist/zonos-elements/p-5e372fb9.entry.js +1 -0
- package/dist/zonos-elements/p-5ff4f9df.system.js +1 -0
- package/dist/zonos-elements/{p-92cc26b7.system.entry.js → p-60c61982.system.entry.js} +1 -1
- package/dist/zonos-elements/p-61c2c336.entry.js +1 -0
- package/dist/zonos-elements/p-6696617a.system.entry.js +1 -0
- package/dist/zonos-elements/p-6761091e.entry.js +1 -0
- package/dist/zonos-elements/p-6761286d.js +1 -0
- package/dist/zonos-elements/p-69451a50.system.js +1 -0
- package/dist/zonos-elements/p-69fd1b88.js +1 -0
- package/dist/zonos-elements/p-6dd63754.system.js +1 -0
- package/dist/zonos-elements/p-6e8aae27.system.entry.js +1 -0
- package/dist/zonos-elements/{p-1c45cd15.entry.js → p-70b81bbc.entry.js} +1 -1
- package/dist/zonos-elements/{p-eeb01de6.system.entry.js → p-750b7f32.system.entry.js} +1 -1
- package/dist/zonos-elements/p-772ac0b7.js +1 -0
- package/dist/zonos-elements/p-81b357f7.system.js +1 -1
- package/dist/zonos-elements/p-81e23f30.system.js +1 -0
- package/dist/zonos-elements/p-873b698a.entry.js +1 -0
- package/dist/zonos-elements/p-87e2a777.entry.js +1 -0
- package/dist/zonos-elements/p-8ca25e6c.entry.js +1 -0
- package/dist/zonos-elements/p-909d36bf.entry.js +1 -0
- package/dist/zonos-elements/p-95461a1b.system.entry.js +1 -0
- package/dist/zonos-elements/p-986ebccc.js +1 -0
- package/dist/zonos-elements/p-9c0b78bf.system.entry.js +1 -0
- package/dist/zonos-elements/p-a61a9b65.system.entry.js +1 -0
- package/dist/zonos-elements/p-a7204d41.entry.js +1 -0
- package/dist/zonos-elements/{p-d93ecc57.js → p-a8a312b2.js} +1 -1
- package/dist/zonos-elements/p-aca272ea.entry.js +1 -0
- package/dist/zonos-elements/p-b12ec9f2.system.entry.js +1 -0
- package/dist/zonos-elements/p-b1bd9fe7.system.entry.js +1 -0
- package/dist/zonos-elements/p-b2ae8eb7.system.js +1 -0
- package/dist/zonos-elements/{p-77666360.entry.js → p-b5406d26.entry.js} +1 -1
- package/dist/zonos-elements/p-bfbc081f.entry.js +1 -0
- package/dist/zonos-elements/p-c0a54cf6.system.js +1 -0
- package/dist/zonos-elements/p-c3c9b089.entry.js +1 -0
- package/dist/zonos-elements/p-c8784a01.system.entry.js +1 -0
- package/dist/zonos-elements/{p-7b5de646.entry.js → p-d045e2e5.entry.js} +1 -1
- package/dist/zonos-elements/p-d26cffba.entry.js +1 -0
- package/dist/zonos-elements/{p-544c173a.system.entry.js → p-d351ece6.system.entry.js} +1 -1
- package/dist/zonos-elements/p-d63696ac.system.js +17 -0
- package/dist/zonos-elements/p-ddb29c2a.system.entry.js +1 -0
- package/dist/zonos-elements/{p-d6fa2dc2.entry.js → p-dfb92907.entry.js} +1 -1
- package/dist/zonos-elements/{p-714c28b1.system.entry.js → p-e2a45188.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-1ac8bfbb.system.entry.js → p-e455f060.system.entry.js} +1 -1
- package/dist/zonos-elements/p-eb54ece4.system.entry.js +1 -0
- package/dist/zonos-elements/{p-a98b1e8d.entry.js → p-efa6203f.entry.js} +1 -1
- package/dist/zonos-elements/{p-59eaebe3.system.entry.js → p-f0be0ca9.system.entry.js} +1 -1
- package/dist/zonos-elements/p-f129a83b.system.entry.js +1 -0
- package/dist/zonos-elements/p-f17fde5f.system.js +1 -0
- package/dist/zonos-elements/{p-47ffacd8.system.entry.js → p-f74a6b78.system.entry.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/zonos-card.cjs.entry.js +0 -49
- package/dist/esm/zonos-card.entry.js +0 -45
- package/dist/esm-es5/cart-010402f9.js +0 -1
- package/dist/esm-es5/localization-9db8b6e9.js +0 -1
- package/dist/esm-es5/paypal-70b140d9.js +0 -17
- package/dist/esm-es5/zonos-banner.entry.js +0 -1
- package/dist/esm-es5/zonos-card.entry.js +0 -1
- package/dist/esm-es5/zonos-cart-items_14.entry.js +0 -1
- package/dist/zonos-elements/p-043f57e8.system.entry.js +0 -1
- package/dist/zonos-elements/p-0a7ef032.entry.js +0 -1
- package/dist/zonos-elements/p-0e8bdf5c.js +0 -1
- package/dist/zonos-elements/p-164ba7ae.system.entry.js +0 -1
- package/dist/zonos-elements/p-242dd7ca.system.entry.js +0 -1
- package/dist/zonos-elements/p-300e0d47.system.entry.js +0 -1
- package/dist/zonos-elements/p-37aa481c.system.entry.js +0 -1
- package/dist/zonos-elements/p-3a1513ae.system.entry.js +0 -1
- package/dist/zonos-elements/p-425096c9.js +0 -1
- package/dist/zonos-elements/p-4cd33d08.entry.js +0 -1
- package/dist/zonos-elements/p-57f391e6.system.entry.js +0 -1
- package/dist/zonos-elements/p-58b3a0fc.entry.js +0 -1
- package/dist/zonos-elements/p-605a21ac.entry.js +0 -1
- package/dist/zonos-elements/p-608f965f.system.js +0 -1
- package/dist/zonos-elements/p-65c68531.js +0 -1
- package/dist/zonos-elements/p-680149ed.entry.js +0 -1
- package/dist/zonos-elements/p-6d44f441.system.js +0 -1
- package/dist/zonos-elements/p-7c88d2ac.entry.js +0 -1
- package/dist/zonos-elements/p-9ddb4533.system.entry.js +0 -1
- package/dist/zonos-elements/p-a91024b6.system.entry.js +0 -1
- package/dist/zonos-elements/p-a9d41e7c.system.entry.js +0 -1
- package/dist/zonos-elements/p-ad556be6.entry.js +0 -1
- package/dist/zonos-elements/p-ad8b1fe8.entry.js +0 -1
- package/dist/zonos-elements/p-afa4b4f0.js +0 -17
- package/dist/zonos-elements/p-b83b382e.system.js +0 -1
- package/dist/zonos-elements/p-b9ff6458.entry.js +0 -1
- package/dist/zonos-elements/p-d55aec11.system.entry.js +0 -1
- package/dist/zonos-elements/p-dcedcdda.entry.js +0 -1
- package/dist/zonos-elements/p-e11c61a5.entry.js +0 -1
- package/dist/zonos-elements/p-e17ac0d1.system.js +0 -17
- package/dist/zonos-elements/p-e1a7a85f.system.entry.js +0 -1
- package/dist/zonos-elements/p-ef1ce617.system.entry.js +0 -1
- package/dist/zonos-elements/p-ef34e1ce.entry.js +0 -1
- package/dist/zonos-elements/p-f54123b5.entry.js +0 -1
- package/dist/zonos-elements/p-f7300f5b.system.entry.js +0 -1
|
@@ -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: 'bf2f6ea302aafa40c5b1a763b89bffc47389b7ac', class: "zonos--elements", style: {
|
|
81
81
|
'--zonos--color': contrastLabelColor,
|
|
82
82
|
'--zonos--progress-percent': this.getTotalSuccessStep(),
|
|
83
|
-
} }, h("div", { key: '
|
|
83
|
+
} }, h("div", { key: '043adfc8805b027604880284a99148c9ea06e67b', 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: '991d64c7d79e4e4207e395ec8a3b9b2096e51c6a', class: "zonos--tab-progress" }, h("div", { key: '22471019b9e920af6d35976dd71b0954cc785b62', 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: '617e4c1a39bae3c5765ba05c6c7d3585c1822aea', 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: 'a4ef3763a3b2d802faacd4cc12dc84cfe9ad55a5' }, h("iframe", { key: 'f44ea760cb5c088241a737bd9b82ae0eac22f426', class: "height-change-listener", tabindex: "-1", title: "collapse-height-change-listener" }), h("slot", { key: 'c01b886c941c6c50753d50cec244701c9854e589' }))));
|
|
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: 'db5aa58306b17fe38ca876d5602779fe5611d7e2', 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: '58b0efe6933c8e333ccfd885adc275dbc5a094de', class: "zonos--backdrop", tabIndex: -1 }), h("div", { key: 'ced1b81db49b1a50d772a037b7cd071be61e27eb', class: classes(['zonos--confirm-layout', this.dialogIntent]), onClick: e => this.clickOutsideDialogHandler(e) }, h("div", { key: '9fc184e5f575e8a7480ab4905f343330ad9b8822', class: "zonos--confirm-dialog", onBlur: () => {
|
|
116
116
|
this.focusDialog();
|
|
117
|
-
} }, h("div", { key: '
|
|
117
|
+
} }, h("div", { key: '965bd556625eedbb0dafc10db8f444cfe4c3ba01', class: "wrapper" }, h("div", { key: '1709fff88c6d3cd08b5144c33db1a5399104291b', class: "icon-wrapper" }, this.renderIcon()), h("div", { key: '6daa8cb3f9fcd60d97484c6b4a49a520c8803ded', class: "content" }, h("div", { key: '6dbe0c7487614aaacd471c883258a75a07b3cfde', class: "title" }, h("zonos-text", { key: 'ca32852be94af7c099f15c629663ad560fcc88ea', type: "subheader" }, this.dialogTitle)), this.dialogSubtitle && (h("div", { key: '41956c52c59eefe0ca4fb31d37a7aa4de0f032cc', class: "subtitle" }, h("zonos-text", { key: 'ddae90c765fb5b5999b1d5c8e0642ba12a54d369', textColor: "gray-800" }, this.dialogSubtitle)))), h("div", { key: 'e390a8bb1b3e5ec38ae86a71ab8ad1394c89af72', class: "footer" }, this.dialogType === 'confirm' && (h("zonos-button", { key: '85b0a4a9d5906f7efabde7b0642f575ad35b37cf', backgroundColor: "gray-0", class: "cancel-button", onClick: () => this.closeDialogHandler(), size: "lg", withBoxShadow: true }, this.dialogCancelBtnText || translate('Cancel'))), h("zonos-button", { key: '5b832e2490acb87a99ec31ae4c1a534f765a3b92', 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"; }
|
|
@@ -48,13 +48,13 @@ export class ZonosCountrySelect {
|
|
|
48
48
|
? fuseObject.map(country => country.item)
|
|
49
49
|
: countries.sort((a, b) => a.displayName.localeCompare(b.displayName));
|
|
50
50
|
const isEmpty = !filteredCountries.length;
|
|
51
|
-
return (h(Host, { key: '
|
|
51
|
+
return (h(Host, { key: '26efaff6ae3360dc9a362aede455688a2000d411', class: "zonos--elements", style: {
|
|
52
52
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
53
|
-
} }, h("div", { key: '
|
|
53
|
+
} }, h("div", { key: '5935d836049a5bbd539b8a547ac18bd99719b40d', class: "zonos--country-select" }, h("zonos-v-stack", { key: '8fb631ab82e83f1e52c7b1724a3125832e63858d', class: "zonos--country-select-header", spacing: 8 }, h("zonos-select-dialog-header", { key: 'c7a492780bcdba265a57e2b71d7a4e58b6e4075b', handleOnClose: () => this.handleOnClose(), label: translate('Select a country') }, h("input", { key: '31048a054eedaae432a1960b9a8563314c4c2a04', autoComplete: "off", class: "zonos--country-select-input", onInput: this.handleInputChange, placeholder: translate('Search countries'), ref: el => {
|
|
54
54
|
if (el) {
|
|
55
55
|
this.inputRef = el;
|
|
56
56
|
}
|
|
57
|
-
}, type: "text", value: this.inputValue }))), h("div", { key: '
|
|
57
|
+
}, type: "text", value: this.inputValue }))), h("div", { key: 'fef8c16dddf9b9d89e5a6367bf17aeb80286d371', class: "zonos--country-select-content" }, isEmpty && (h("zonos-text", { key: '53fe2d70dee8724d5c653a852fa124d8687b481c', class: "no-country", textColor: "gray-800" }, translate('No countries found'))), h("zonos-virtual-scroll", { key: '826ee8d9a6efba02e02de28e9bce79ad5ef00df5', class: "zonos--country-filter-content", fallbackItemHeight: 34, itemHeights: filteredCountries.map(() => 34), renderItem: index => {
|
|
58
58
|
const country = filteredCountries[index];
|
|
59
59
|
if (!country) {
|
|
60
60
|
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: '952cc3c91fdc1be6653b1e7f9263e3a47903eb27', class: "zonos--elements", style: {
|
|
18
18
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
19
|
-
} }, this.message && (h("zonos-card", { key: '
|
|
19
|
+
} }, this.message && (h("zonos-card", { key: '16e893a807ff3443006a91ce9c20816a944e2372', class: "zonos--custom-message", spacing: "12px" }, h("div", { key: '58a4fc0eb021c4858b3abd319a73490d38849d99', class: "zonos--flex-message" }, h("zonos-icon", { key: 'c3658bf90139835d37091e4004a0e99c85018401', "aria-label": "Custom message icon", content: this.icon }), h("zonos-text", { key: '2a746fd3975699615d82ffcda4b4c446f7d0f32a', 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: 'ba80fedf4f3e98c4de3d81a36104de00366cbb1a', 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: '7e61114b6ceb1b39a4f0bb1a0719851d4035bfd3', class: "zonos--backdrop" }), h("div", { key: '459a309060ff4ef98cc0eb2a80363394218f07b7', class: "zonos--dialog-layout", inert: !this.open, onClick: this.clickOutsideDialogHandler }, h("div", { key: '3c4299b298ed8eb163ac5a70153347741032726f', class: "zonos--dialog" }, this.isLoading && (h("div", { key: '0cfd40a79ed8916a47eaaa914ef1ccdd623e8efc', class: "zonos--loading" }, h("zonos-spinner", { key: 'ca3aeb6aa6586a01763b6170814e30a325428508', size: 30 }))), (this.headerText || !this.noCloseButton) && (h("div", { key: '61824114fbb326d323ea2dda14ed28209567d4d6', class: "zonos--header" }, this.headerText && (h("h3", { key: '9c4916f1787d0157f130aeb0ca29e2e871d1dfc6', class: "zonos--header-text" }, this.headerText)), !this.noCloseButton && (h("zonos-button", { key: 'e80895fa1d8ea6d945cebb97392c5fb4b6df7c7b', 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: '5cfd70cd4c22b44494c4e62ed6c7af0f3a81f955', class: classes([
|
|
102
102
|
'zonos--body',
|
|
103
103
|
this.noBodyPadding && 'zonos--no-body-padding',
|
|
104
|
-
]) }, h("slot", { key: '
|
|
104
|
+
]) }, h("slot", { key: 'c5e818b28959cd89c466cc355cba40e56b49be7f' })), h("slot", { key: '4ded95d727eea855fa7af8a1c34fb0de9dfb7fca', name: "dialog-footer" })))));
|
|
105
105
|
}
|
|
106
106
|
static get is() { return "zonos-dialog"; }
|
|
107
107
|
static get encapsulation() { return "shadow"; }
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
font-family: var(--zonos--font-family, Inter), Inter;
|
|
3
|
+
display: block;
|
|
4
|
+
white-space: normal;
|
|
5
|
+
}
|
|
6
|
+
:host * {
|
|
7
|
+
font-family: var(--zonos--font-family, Inter), Inter;
|
|
8
|
+
}
|
|
9
|
+
:host img {
|
|
10
|
+
max-width: 100%;
|
|
11
|
+
}
|
|
12
|
+
:host dl,
|
|
13
|
+
:host dd,
|
|
14
|
+
:host h1,
|
|
15
|
+
:host h2,
|
|
16
|
+
:host h3,
|
|
17
|
+
:host h4,
|
|
18
|
+
:host h5,
|
|
19
|
+
:host h6,
|
|
20
|
+
:host hr,
|
|
21
|
+
:host figure,
|
|
22
|
+
:host p,
|
|
23
|
+
:host pre {
|
|
24
|
+
margin: 0;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* All sets of variable are here */
|
|
28
|
+
/* smooth font rendering */
|
|
29
|
+
:host {
|
|
30
|
+
-moz-osx-font-smoothing: grayscale;
|
|
31
|
+
-webkit-font-smoothing: antialiased;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
:host {
|
|
35
|
+
display: flex;
|
|
36
|
+
flex-direction: row;
|
|
37
|
+
gap: var(--spacing, 24px);
|
|
38
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { Host } from "@stencil/core/internal";
|
|
3
|
+
import { zonosStoreFontFamily } from "../../store/zonosStore";
|
|
4
|
+
export class HStack {
|
|
5
|
+
constructor() {
|
|
6
|
+
/**
|
|
7
|
+
* The spacing between elements in the stack
|
|
8
|
+
* @default 24
|
|
9
|
+
*/
|
|
10
|
+
this.spacing = 24;
|
|
11
|
+
}
|
|
12
|
+
render() {
|
|
13
|
+
return (h(Host, { key: 'e78dcb23a7c91df7f7a2533dc65412f27dd6e969', style: {
|
|
14
|
+
'--spacing': `${this.spacing}px`,
|
|
15
|
+
'--zonos--font-family': zonosStoreFontFamily(),
|
|
16
|
+
} }, h("slot", { key: 'cd668b443c01aea20c589fd4ef30636fb4178d3b' })));
|
|
17
|
+
}
|
|
18
|
+
static get is() { return "zonos-h-stack"; }
|
|
19
|
+
static get encapsulation() { return "shadow"; }
|
|
20
|
+
static get originalStyleUrls() {
|
|
21
|
+
return {
|
|
22
|
+
"$": ["zonos-h-stack.scss"]
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
static get styleUrls() {
|
|
26
|
+
return {
|
|
27
|
+
"$": ["zonos-h-stack.css"]
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
static get properties() {
|
|
31
|
+
return {
|
|
32
|
+
"spacing": {
|
|
33
|
+
"type": "number",
|
|
34
|
+
"mutable": false,
|
|
35
|
+
"complexType": {
|
|
36
|
+
"original": "GridSpacing",
|
|
37
|
+
"resolved": "0 | 12 | 16 | 20 | 24 | 32 | 4 | 40 | 8",
|
|
38
|
+
"references": {
|
|
39
|
+
"GridSpacing": {
|
|
40
|
+
"location": "import",
|
|
41
|
+
"path": "src/types/styles/GridSpacing",
|
|
42
|
+
"id": "src/types/styles/GridSpacing.ts::GridSpacing"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"required": false,
|
|
47
|
+
"optional": false,
|
|
48
|
+
"docs": {
|
|
49
|
+
"tags": [{
|
|
50
|
+
"name": "default",
|
|
51
|
+
"text": "24"
|
|
52
|
+
}],
|
|
53
|
+
"text": "The spacing between elements in the stack"
|
|
54
|
+
},
|
|
55
|
+
"getter": false,
|
|
56
|
+
"setter": false,
|
|
57
|
+
"attribute": "spacing",
|
|
58
|
+
"reflect": false,
|
|
59
|
+
"defaultValue": "24"
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -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: 'a239adc57fc0cd31bff05447fe10d0ad1e825007', 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: 'd2f1086b2139b9c7af5ae2882e0dfb0db65028dc', class: classes([
|
|
42
42
|
'zonos--label-wrapper',
|
|
43
43
|
this.isDisabled && 'disabled',
|
|
44
|
-
]) }, h("input", { key: '
|
|
44
|
+
]) }, h("input", { key: '8e48977b401aed6b36079f732adbc6493bb05804', 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: '23ece9b49c1d718340a6f0bb59b93ad2dfe34828', 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"; }
|
|
@@ -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: '74b0315ab257fff13cf23057f485c0dcfb7edd1b', class: "zonos--elements", style: {
|
|
24
24
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
25
|
-
} }, h("div", { key: '
|
|
25
|
+
} }, h("div", { key: 'cc220539afcb6b883eec939edfb6933bf9fb08a0', class: "zonos--language-select" }, h("zonos-select-dialog-header", { key: '297b34a17100fb10b2fd95b44bc5c9cadad960ab', handleOnClose: () => this.handleOnClose(), label: translate('Select a language') }), h("div", { key: '2b85c2aeba8ddcb5a7725089daaf9b0cea025d76', class: "zonos--language-select-content" }, languages.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: 'd39155a476f2043e12e6869abdec2bde6872951a', class: "zonos--elements" }, h("a", { key: '8fe2d59047850181984a00747ddc341ef88cb302', href: this.href, rel: this.rel, target: this.target, title: this.linkTitle }, h("slot", { key: '4eef2f735b77fce6f254e44ca0d4aded68863468' }))));
|
|
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: 'da6d878d0f96774f287dafd3538c09fdf45eb314', class: classes(['zonos--elements', this.open && 'zonos--open']) }, h("div", { key: '607ee229bf8494fab6ec453d5f664e7a1084bb5c', class: "zonos--loading-overlay" }, h("zonos-spinner", { key: 'f3021c39258f61d5767889ea9f83f1097d7f5688', 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: '0b8e78167613096d36d1f500e21284194246974e', 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: 'd657a31c178c580a90e268ebc4b06fb4d0e15eae', 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: '1259c56e28646e85893b129c22402e9d7cfe18f8', class: classes(['zonos--elements zonos--restState']), style: {
|
|
18
18
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
19
|
-
} }, h("div", { key: '
|
|
19
|
+
} }, h("div", { key: '3cba2e86f4952f5d2a171017ad1f6eaa62aacc6a', class: "zonos--restState-image" }, h("img", { key: '8f656c89ef030c1eddec8cd95d6a15df889c6ed2', alt: this.restStateType, onError: () => {
|
|
20
20
|
this.isErrorImageLoad = true;
|
|
21
|
-
}, src: imageUrl })), h("div", { key: '
|
|
21
|
+
}, src: imageUrl })), h("div", { key: '963cf06ac769d8b3bfeb7b36824cb1b6821b5498', class: "content" }, h("zonos-text", { key: 'dacc2d0c125d41e5a72c57a5b611789bb005fc46', class: "title", type: "boldSubheader" }, this.restStateTitle), h("zonos-text", { key: '32db4bc138b4cc6c5fab3fd6aa14b51c31ffaf80', class: "subtitle" }, this.restStateSubtitle)), h("div", { key: '28f933f06737ac076d2da9dcc1530f01ddb93575', class: "action" }, h("slot", { key: 'd974a157a01c4e2305255fc4032868e86af162b5' }))));
|
|
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: '999f6edfe39142a7539164d2c046aa44945ff23f', class: "zonos--elements", style: {
|
|
19
19
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
20
|
-
} }, h("zonos-v-stack", { key: '
|
|
20
|
+
} }, h("zonos-v-stack", { key: '1213364336cd7f809f4f2539835f86b2b6b30273', class: "zonos--select-dialog-header-wrapper", spacing: 8 }, h("div", { key: 'af342994ec6e54a08ccee92443977c06e5e6bd65', class: "zonos--select-dialog-header" }, h("zonos-text", { key: '81c1a17bb93b0e4ba7a9874d34f6ce2fdcf3321e', type: "boldLabel" }, this.label), h("zonos-button", { key: 'e321c6d3a6020d4c3ccdac84bbf1025e5ef490c1', 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: 'f3583feb7eba033767769e1b06c24961d2e4f56a' }))));
|
|
21
21
|
}
|
|
22
22
|
static get is() { return "zonos-select-dialog-header"; }
|
|
23
23
|
static get encapsulation() { return "shadow"; }
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M10.8282 5.17184C11.0235 5.3671 11.0235 5.68368 10.8282 5.87894L8.70688 8.00026L10.8282 10.1216C11.0235 10.3168 11.0235 10.6334 10.8282 10.8287C10.6329 11.024 10.3164 11.024 10.1211 10.8287L7.99978 8.70737L5.87846 10.8287C5.68319 11.024 5.36661 11.024 5.17135 10.8287C4.97609 10.6334 4.97609 10.3168 5.17135 10.1216L7.29267 8.00026L5.17135 5.87894C4.97609 5.68368 4.97609 5.3671 5.17135 5.17184C5.36661 4.97658 5.68319 4.97658 5.87846 5.17184L7.99978 7.29316L10.1211 5.17184C10.3164 4.97658 10.6329 4.97658 10.8282 5.17184Z" fill="var(--zonos-elements-gray-800)"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
font-family: var(--zonos--font-family, Inter), Inter;
|
|
3
|
+
display: block;
|
|
4
|
+
white-space: normal;
|
|
5
|
+
}
|
|
6
|
+
:host * {
|
|
7
|
+
font-family: var(--zonos--font-family, Inter), Inter;
|
|
8
|
+
}
|
|
9
|
+
:host img {
|
|
10
|
+
max-width: 100%;
|
|
11
|
+
}
|
|
12
|
+
:host dl,
|
|
13
|
+
:host dd,
|
|
14
|
+
:host h1,
|
|
15
|
+
:host h2,
|
|
16
|
+
:host h3,
|
|
17
|
+
:host h4,
|
|
18
|
+
:host h5,
|
|
19
|
+
:host h6,
|
|
20
|
+
:host hr,
|
|
21
|
+
:host figure,
|
|
22
|
+
:host p,
|
|
23
|
+
:host pre {
|
|
24
|
+
margin: 0;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* All sets of variable are here */
|
|
28
|
+
/* smooth font rendering */
|
|
29
|
+
:host {
|
|
30
|
+
-moz-osx-font-smoothing: grayscale;
|
|
31
|
+
-webkit-font-smoothing: antialiased;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
:host {
|
|
35
|
+
display: inline-block;
|
|
36
|
+
background: var(--zonos-elements-gray-200);
|
|
37
|
+
border-radius: var(--zonos-elements-radius-12);
|
|
38
|
+
width: var(--zonos--skeleton-width);
|
|
39
|
+
height: var(--zonos--skeleton-height);
|
|
40
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { classes } from "../../utils/classes";
|
|
3
|
+
import { styles } from "../../utils/styles";
|
|
4
|
+
export class ZonosSkeleton {
|
|
5
|
+
constructor() {
|
|
6
|
+
/**
|
|
7
|
+
* The width of the skeleton
|
|
8
|
+
* @default '100%'
|
|
9
|
+
*/
|
|
10
|
+
this.skeletonWidth = '100%';
|
|
11
|
+
/**
|
|
12
|
+
* The height of the skeleton
|
|
13
|
+
* @default '14px'
|
|
14
|
+
*/
|
|
15
|
+
this.skeletonHeight = '14px';
|
|
16
|
+
}
|
|
17
|
+
render() {
|
|
18
|
+
return (h(Host, { key: 'e6a000d9ef38aa8ee1c08743830d0b2b0230b4f1', class: classes(['zonos--elements zonos--skeleton']), style: styles({
|
|
19
|
+
'--zonos--skeleton-height': this.skeletonHeight,
|
|
20
|
+
'--zonos--skeleton-width': this.skeletonWidth,
|
|
21
|
+
}) }));
|
|
22
|
+
}
|
|
23
|
+
static get is() { return "zonos-skeleton"; }
|
|
24
|
+
static get encapsulation() { return "shadow"; }
|
|
25
|
+
static get originalStyleUrls() {
|
|
26
|
+
return {
|
|
27
|
+
"$": ["zonos-skeleton.scss"]
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
static get styleUrls() {
|
|
31
|
+
return {
|
|
32
|
+
"$": ["zonos-skeleton.css"]
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
static get properties() {
|
|
36
|
+
return {
|
|
37
|
+
"skeletonWidth": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"mutable": false,
|
|
40
|
+
"complexType": {
|
|
41
|
+
"original": "string",
|
|
42
|
+
"resolved": "string",
|
|
43
|
+
"references": {}
|
|
44
|
+
},
|
|
45
|
+
"required": false,
|
|
46
|
+
"optional": false,
|
|
47
|
+
"docs": {
|
|
48
|
+
"tags": [{
|
|
49
|
+
"name": "default",
|
|
50
|
+
"text": "'100%'"
|
|
51
|
+
}],
|
|
52
|
+
"text": "The width of the skeleton"
|
|
53
|
+
},
|
|
54
|
+
"getter": false,
|
|
55
|
+
"setter": false,
|
|
56
|
+
"attribute": "skeleton-width",
|
|
57
|
+
"reflect": false,
|
|
58
|
+
"defaultValue": "'100%'"
|
|
59
|
+
},
|
|
60
|
+
"skeletonHeight": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"mutable": false,
|
|
63
|
+
"complexType": {
|
|
64
|
+
"original": "string",
|
|
65
|
+
"resolved": "string | undefined",
|
|
66
|
+
"references": {}
|
|
67
|
+
},
|
|
68
|
+
"required": false,
|
|
69
|
+
"optional": true,
|
|
70
|
+
"docs": {
|
|
71
|
+
"tags": [{
|
|
72
|
+
"name": "default",
|
|
73
|
+
"text": "'14px'"
|
|
74
|
+
}],
|
|
75
|
+
"text": "The height of the skeleton"
|
|
76
|
+
},
|
|
77
|
+
"getter": false,
|
|
78
|
+
"setter": false,
|
|
79
|
+
"attribute": "skeleton-height",
|
|
80
|
+
"reflect": false,
|
|
81
|
+
"defaultValue": "'14px'"
|
|
82
|
+
},
|
|
83
|
+
"dismissHandler": {
|
|
84
|
+
"type": "unknown",
|
|
85
|
+
"mutable": false,
|
|
86
|
+
"complexType": {
|
|
87
|
+
"original": "() => void",
|
|
88
|
+
"resolved": "(() => void) | undefined",
|
|
89
|
+
"references": {}
|
|
90
|
+
},
|
|
91
|
+
"required": false,
|
|
92
|
+
"optional": true,
|
|
93
|
+
"docs": {
|
|
94
|
+
"tags": [],
|
|
95
|
+
"text": "Callback for when the skeleton is dismissed. Also determines if dismiss icon shown."
|
|
96
|
+
},
|
|
97
|
+
"getter": false,
|
|
98
|
+
"setter": false
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
}
|
|
@@ -64,9 +64,12 @@ export class ZonosStripeInput {
|
|
|
64
64
|
render() {
|
|
65
65
|
const primaryColor = this.overridePrimaryColor || zonosStore.appearance.colorPrimary;
|
|
66
66
|
const secondaryColor = this.overrideSecondaryColor || zonosStore.appearance.colorSecondary;
|
|
67
|
-
|
|
67
|
+
// Always use theme from appearance settings if it's collect
|
|
68
|
+
const isDark = window.Zonos.isCollect
|
|
69
|
+
? zonosStore.appearance.theme === 'DARK'
|
|
70
|
+
: primaryColor && isDarkColor(primaryColor);
|
|
68
71
|
const fontSize = zonosStore.appearance.fontSizeInputValue || 16;
|
|
69
|
-
return (h(Host, { key: '
|
|
72
|
+
return (h(Host, { key: '351f86f2aa5ab9ee9fcb2b1919443a8b3d57a4c2', class: classes([
|
|
70
73
|
'zonos--input zonos--elements',
|
|
71
74
|
isDark && 'dark',
|
|
72
75
|
(this.isError || !!this.error) && 'has-error',
|
|
@@ -75,10 +78,10 @@ export class ZonosStripeInput {
|
|
|
75
78
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
76
79
|
'--zonos--font-size': `${fontSize}px`,
|
|
77
80
|
'--zonos--primary-color': secondaryColor,
|
|
78
|
-
} }, h("div", { key: '
|
|
81
|
+
} }, h("div", { key: 'fb0b3e3d5feb11a458a6d4f3509ff812600b5935', class: classes([
|
|
79
82
|
'zonos--label-wrapper',
|
|
80
83
|
this.isDisabled && 'disabled',
|
|
81
|
-
]) }, h("input", Object.assign({ key: '
|
|
84
|
+
]) }, h("input", Object.assign({ key: '499164e3c30a1a72032dd815899c380f328cc431' }, this.inheritedAttributes, { autoComplete: this.autoComplete, class: classes([
|
|
82
85
|
'zonos--floated-input',
|
|
83
86
|
!!this.inputLabel && 'has-label',
|
|
84
87
|
this.internalValue && 'has-content',
|
|
@@ -88,7 +91,7 @@ export class ZonosStripeInput {
|
|
|
88
91
|
this.inputChange.emit(input.value);
|
|
89
92
|
this.el.inputValue = input.value;
|
|
90
93
|
this.el.dispatchEvent(new Event('change'));
|
|
91
|
-
}, placeholder: this.inputPlaceholder || '', required: this.required, type: "text", value: this.internalValue })), h("div", { key: '
|
|
94
|
+
}, placeholder: this.inputPlaceholder || '', required: this.required, type: "text", value: this.internalValue })), h("div", { key: '27b56860180c0758d51b6f73e0336bdecf4d85e6', class: "zonos--floated-label" }, h("label", { key: '8119e9b68b052f9eaea762da61007a6eb4c29bd4', htmlFor: this.inputId }, this.inputLabel))), this.error && (h("zonos-text", { key: 'c141d6887bdfc3ac6fa580fcc47de25a9b99853b', textColor: "red-600", type: "caption" }, this.error))));
|
|
92
95
|
}
|
|
93
96
|
static get is() { return "zonos-stripe-input"; }
|
|
94
97
|
static get encapsulation() { return "scoped"; }
|
package/dist/collection/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.js
CHANGED
|
@@ -201,24 +201,24 @@ export class ZonosStripePhoneInput {
|
|
|
201
201
|
.filter(Boolean)
|
|
202
202
|
.sort((a, b) => a.displayName.localeCompare(b.displayName))
|
|
203
203
|
: [];
|
|
204
|
-
return (h(Host, { key: '
|
|
204
|
+
return (h(Host, { key: 'f357f000b98bfd0e23731df7d253ffc47f404c30', class: classes([
|
|
205
205
|
'zonos--phone-input zonos--elements',
|
|
206
206
|
isDark && 'dark',
|
|
207
|
-
]), "data-theme": isDark ? 'DARK' : 'LIGHT', style: Object.assign({ '--zonos--border-radius': getBorderRadius(), '--zonos--font-family': zonosStoreFontFamily(), '--zonos--font-size': `${fontSize}px`, '--zonos--primary-color': secondaryColor }, (this.minWidth ? { '--zonos--min-width': this.minWidth } : {})) }, h("div", { key: '
|
|
207
|
+
]), "data-theme": isDark ? 'DARK' : 'LIGHT', style: Object.assign({ '--zonos--border-radius': getBorderRadius(), '--zonos--font-family': zonosStoreFontFamily(), '--zonos--font-size': `${fontSize}px`, '--zonos--primary-color': secondaryColor }, (this.minWidth ? { '--zonos--min-width': this.minWidth } : {})) }, h("div", { key: 'cd201f36c0dddac8669ec8272f0fe7ee49b5b0a2', class: classes([
|
|
208
208
|
'zonos--label-wrapper',
|
|
209
209
|
this.disabled && 'disabled',
|
|
210
210
|
this.isFocused && 'focused',
|
|
211
211
|
hasContent && 'has-content',
|
|
212
212
|
this.error && 'has-error',
|
|
213
213
|
this.inputLabel && 'has-label',
|
|
214
|
-
]) }, h("select", { key: '
|
|
214
|
+
]) }, h("select", { key: '4ce5b03c7d4ac4736af7b11f1823d48c53556558', class: "zonos--select", disabled: this.disabled, onBlur: this.handleBlur, onChange: this.handleCountryChange, onFocus: this.handleFocus }, countryOptionsList.map(option => {
|
|
215
215
|
var _a;
|
|
216
216
|
return (h("option", { key: option.countryCode, selected: option.countryCode === ((_a = this.selectedCountry) === null || _a === void 0 ? void 0 : _a.countryCode), value: option.countryCode }, option.displayName, " (+", option.phoneCode, ")"));
|
|
217
|
-
})), h("div", { key: '
|
|
217
|
+
})), h("div", { key: 'efca78810bebc70a51f49c6f1720168717253b74', class: "zonos--input-group" }, h("div", { key: 'c785838e12d00237cb9a0fff97e1c2b0e2faf692', class: "zonos--select-wrapper" }, h("div", { key: '30d97ae277344d381a2fdf3fedf1f006ce66f801', class: "zonos--country-select" }, h("div", { key: '44d4488d45067e11acb2d8279cdb12eeffddd5c0', class: "zonos--country-select-content" }, this.selectedCountry && (h("div", { key: 'bbeadca415fb4aab84b8fddf92e143df70700444', class: "zonos--country-select-selected" }, h("div", { key: '2aed839d75ebde1c9423e9075ed84e005e8697c3', class: "zonos--country-flag-wrapper" }, h("zonos-country-flag", { key: 'c1117e4b9d58cb1010b95c0aeb8b7fe102b13a2c', class: "zonos--country-flag", countryCode: this.selectedCountry.countryCode })), h("div", { key: '63609f20f44a7d8171ece2afc9995c21b1eda697', class: "zonos--country-code" }, "+", this.selectedCountry.phoneCode))), h("div", { key: 'e0c46b926f5cda986793d8e60f49625219a21354', class: "zonos--select-chevron-wrapper" }, h("zonos-icon", { key: '3e2ceaf3df3e6767ad25551ae090dcc9288000c2', "aria-label": "Expand collapsed section", class: "zonos--select-chevron", content: ChevronDownIcon, iconColor: "gray-800" }))))), h("div", { key: '10751ee273ad5d6531afc7fb700718605e32cbcd', class: classes([
|
|
218
218
|
'zonos--input-container',
|
|
219
219
|
this.inputLabel && 'has-label',
|
|
220
220
|
hasContent && 'has-content',
|
|
221
|
-
]) }, h("input", Object.assign({ key: '
|
|
221
|
+
]) }, h("input", Object.assign({ key: '506609e5191068451bc47968a232846df4c17724' }, this.inheritedAttributes, { autoComplete: this.autoComplete, class: "zonos--floated-input", disabled: this.disabled, id: this.inputId, onBlur: this.handleBlur, onFocus: this.handleFocus, onInput: this.handlePhoneChange, placeholder: ((_a = this.selectedCountry) === null || _a === void 0 ? void 0 : _a.phonePlaceholder) || '', ref: el => (this.inputRef = el), type: "tel" })), this.inputLabel && (h("div", { key: '35f9894f905c8617564d3fc11f78cd3fbfef7a3c', class: "zonos--floated-label" }, h("label", { key: '9c768de7833455c630803f1ef1b4d7babc4f3cae', htmlFor: this.inputId }, this.inputLabel || translate('Phone number'))))))), this.error && (h("zonos-text", { key: 'dd78d93a0ca2ae1384059cb08b839a1573a03e29', textColor: "red-600" }, this.error))));
|
|
222
222
|
}
|
|
223
223
|
static get is() { return "zonos-stripe-phone-input"; }
|
|
224
224
|
static get encapsulation() { return "scoped"; }
|