@zonos/elements 1.3.141 → 1.3.143
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/{CheckoutConfig-165db6b6.js → CheckoutConfig-eaaf62a1.js} +1 -1
- package/dist/cjs/TaxId-4632639d.js +29 -0
- package/dist/cjs/{cart-e1b59d03.js → cart-6ac8dc06.js} +258 -8
- package/dist/cjs/{getBorderRadius-f72d8edf.js → getBorderRadius-f97c99ad.js} +1 -1
- package/dist/cjs/{handleFetch-4a90f091.js → handleFetch-864d3c53.js} +5 -5
- package/dist/cjs/{index-d56e0a8b.js → index-b678ce0c.js} +42 -8
- package/dist/cjs/index.cjs.js +12 -9
- package/dist/cjs/{isDarkColor-dd6d723b.js → isDarkColor-434d71dd.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{paypal-86cc51e4.js → paypal-ea8b4ca0.js} +5 -5
- package/dist/cjs/{zonos-address_7.cjs.entry.js → zonos-address_8.cjs.entry.js} +64 -9
- package/dist/cjs/zonos-badge.cjs.entry.js +2 -2
- package/dist/cjs/zonos-banner.cjs.entry.js +2 -2
- package/dist/cjs/zonos-button_3.cjs.entry.js +4 -4
- package/dist/cjs/zonos-card.cjs.entry.js +3 -3
- package/dist/cjs/zonos-cart-items_13.cjs.entry.js +33 -12
- package/dist/cjs/zonos-checkout.cjs.entry.js +9 -9
- package/dist/cjs/zonos-collapse.cjs.entry.js +2 -2
- package/dist/cjs/zonos-component.cjs.entry.js +2 -2
- package/dist/cjs/zonos-controller.cjs.entry.js +7 -7
- package/dist/cjs/zonos-country-flag.cjs.entry.js +6 -6
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +10 -10
- package/dist/cjs/zonos-elements.cjs.js +3 -3
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +10 -10
- package/dist/cjs/zonos-hello.cjs.entry.js +6 -6
- package/dist/cjs/zonos-input.cjs.entry.js +3 -3
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +6 -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-notification_3.cjs.entry.js +9 -9
- package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +3 -3
- package/dist/cjs/zonos-text.cjs.entry.js +2 -2
- package/dist/cjs/zonos-toggle.cjs.entry.js +4 -4
- package/dist/cjs/zonos-tooltip.cjs.entry.js +3 -3
- package/dist/cjs/zonos-v-stack.cjs.entry.js +4 -4
- package/dist/cjs/{zonosStore-293bb3ba.js → zonosStore-8971eb65.js} +1 -1
- package/dist/collection/collection-manifest.json +3 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +2 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-currency-toggle/zonos-currency-toggle.js +2 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.css +3 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +22 -1
- package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +1 -1
- package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.css +162 -0
- package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.js +220 -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 +1 -1
- package/dist/collection/components/paypal/zonos-paypal-payment.js +1 -1
- package/dist/collection/components/store/checkout/paypal.js +1 -1
- package/dist/collection/components/store/checkout/stripe.js +9 -1
- package/dist/collection/components/store/translationStore/strings.arabic.js +12 -0
- package/dist/collection/components/store/translationStore/strings.base.js +12 -0
- package/dist/collection/components/store/translationStore/strings.chinese.js +12 -0
- package/dist/collection/components/store/translationStore/strings.danish.js +12 -0
- package/dist/collection/components/store/translationStore/strings.dutch.js +12 -0
- package/dist/collection/components/store/translationStore/strings.french.js +12 -0
- package/dist/collection/components/store/translationStore/strings.german.js +12 -0
- package/dist/collection/components/store/translationStore/strings.hebrew.js +12 -0
- package/dist/collection/components/store/translationStore/strings.indonesian.js +12 -0
- package/dist/collection/components/store/translationStore/strings.italian.js +12 -0
- package/dist/collection/components/store/translationStore/strings.japanese.js +12 -0
- package/dist/collection/components/store/translationStore/strings.korean.js +12 -0
- package/dist/collection/components/store/translationStore/strings.norwegian.js +12 -0
- package/dist/collection/components/store/translationStore/strings.polish.js +12 -0
- package/dist/collection/components/store/translationStore/strings.portuguese.js +12 -0
- package/dist/collection/components/store/translationStore/strings.russian.js +12 -0
- package/dist/collection/components/store/translationStore/strings.spanish.js +12 -0
- package/dist/collection/components/store/translationStore/strings.swedish.js +12 -0
- package/dist/collection/components/store/translationStore/strings.turkish.js +12 -0
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +12 -0
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +1 -1
- package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +2 -2
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
- package/dist/collection/components/utils/api/getCountries.js +1 -1
- package/dist/collection/components/utils/api/getLocalization.js +1 -1
- package/dist/collection/components/utils/api/prepCalculateLandedCost.js +2 -0
- package/dist/collection/components/utils/handleFetch.js +2 -2
- package/dist/collection/components/utils/isValidSelector.js +1 -1
- package/dist/collection/components/utils/jsonParse.js +1 -1
- package/dist/collection/components/utils/logging/log.js +1 -1
- package/dist/collection/components/utils/logging/sendErrorLog.js +1 -1
- package/dist/collection/environment.js +1 -1
- package/dist/collection/types/checkout/TaxId.js +24 -0
- package/dist/collection/types/generated/graphql.internal.types.js +52 -0
- package/dist/collection/types/index.js +1 -0
- package/dist/collection/types/stripe/Apperance.js +0 -58
- package/dist/esm/{CheckoutConfig-930107d4.js → CheckoutConfig-262008fe.js} +1 -1
- package/dist/esm/TaxId-915ef042.js +26 -0
- package/dist/esm/{cart-709f053f.js → cart-acba54d0.js} +258 -8
- package/dist/esm/{getBorderRadius-bdd709e7.js → getBorderRadius-4aca63d4.js} +1 -1
- package/dist/esm/{handleFetch-22cb914b.js → handleFetch-badf4543.js} +5 -5
- package/dist/esm/{index-86b8247e.js → index-986b5ff2.js} +42 -8
- package/dist/esm/index.js +11 -10
- package/dist/esm/{isDarkColor-c6924924.js → isDarkColor-4915739f.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{paypal-77a60c44.js → paypal-3401f757.js} +5 -5
- package/dist/esm/{zonos-address_7.entry.js → zonos-address_8.entry.js} +64 -10
- package/dist/esm/zonos-badge.entry.js +2 -2
- package/dist/esm/zonos-banner.entry.js +2 -2
- package/dist/esm/zonos-button_3.entry.js +4 -4
- package/dist/esm/zonos-card.entry.js +3 -3
- package/dist/esm/zonos-cart-items_13.entry.js +33 -12
- package/dist/esm/zonos-checkout.entry.js +9 -9
- package/dist/esm/zonos-collapse.entry.js +2 -2
- package/dist/esm/zonos-component.entry.js +2 -2
- package/dist/esm/zonos-controller.entry.js +7 -7
- package/dist/esm/zonos-country-flag.entry.js +6 -6
- package/dist/esm/zonos-country-select_4.entry.js +10 -10
- package/dist/esm/zonos-elements.js +4 -4
- package/dist/esm/zonos-hello-dialog.entry.js +10 -10
- package/dist/esm/zonos-hello.entry.js +6 -6
- package/dist/esm/zonos-input.entry.js +3 -3
- package/dist/esm/zonos-language-select_2.entry.js +6 -6
- package/dist/esm/zonos-link.entry.js +1 -1
- package/dist/esm/zonos-logo.entry.js +2 -2
- package/dist/esm/zonos-notification_3.entry.js +9 -9
- package/dist/esm/zonos-shipping-rich-radio.entry.js +3 -3
- package/dist/esm/zonos-text.entry.js +2 -2
- package/dist/esm/zonos-toggle.entry.js +4 -4
- package/dist/esm/zonos-tooltip.entry.js +3 -3
- package/dist/esm/zonos-v-stack.entry.js +4 -4
- package/dist/esm/{zonosStore-c493c4fe.js → zonosStore-708637e7.js} +1 -1
- package/dist/esm-es5/{CheckoutConfig-930107d4.js → CheckoutConfig-262008fe.js} +1 -1
- package/dist/esm-es5/TaxId-915ef042.js +1 -0
- package/dist/esm-es5/cart-acba54d0.js +1 -0
- package/dist/esm-es5/{getBorderRadius-bdd709e7.js → getBorderRadius-4aca63d4.js} +1 -1
- package/dist/esm-es5/index-986b5ff2.js +2 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{isDarkColor-c6924924.js → isDarkColor-4915739f.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{paypal-77a60c44.js → paypal-3401f757.js} +1 -1
- package/dist/esm-es5/{zonos-address_7.entry.js → zonos-address_8.entry.js} +1 -1
- package/dist/esm-es5/zonos-badge.entry.js +1 -1
- package/dist/esm-es5/zonos-banner.entry.js +1 -1
- package/dist/esm-es5/zonos-button_3.entry.js +1 -1
- package/dist/esm-es5/zonos-card.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_13.entry.js +1 -1
- package/dist/esm-es5/zonos-checkout.entry.js +1 -1
- package/dist/esm-es5/zonos-collapse.entry.js +1 -1
- package/dist/esm-es5/zonos-component.entry.js +1 -1
- package/dist/esm-es5/zonos-controller.entry.js +1 -1
- package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
- package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
- package/dist/esm-es5/zonos-elements.js +1 -1
- package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm-es5/zonos-hello.entry.js +1 -1
- package/dist/esm-es5/zonos-input.entry.js +1 -1
- package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
- package/dist/esm-es5/zonos-link.entry.js +1 -1
- package/dist/esm-es5/zonos-logo.entry.js +1 -1
- package/dist/esm-es5/zonos-notification_3.entry.js +1 -1
- package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
- package/dist/esm-es5/zonos-text.entry.js +1 -1
- package/dist/esm-es5/zonos-toggle.entry.js +1 -1
- package/dist/esm-es5/zonos-tooltip.entry.js +1 -1
- package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
- package/dist/esm-es5/{zonosStore-c493c4fe.js → zonosStore-708637e7.js} +1 -1
- package/dist/scripts/index.d.ts +113 -9
- 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-checkout/zonos-customer-info/zonos-customer-info.d.ts +5 -0
- package/dist/types/components/common/zonos-stripe-input/zonos-stripe-input.d.ts +42 -0
- package/dist/types/components/store/checkout/cart.d.ts +2 -3
- package/dist/types/components/store/checkout/stripe.d.ts +10 -2
- package/dist/types/components/store/hello/localization.d.ts +0 -1
- package/dist/types/components/store/translationStore/strings.arabic.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.base.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.danish.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.french.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.german.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.italian.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.korean.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.polish.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.russian.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +12 -0
- package/dist/types/components/store/translationStore.d.ts +1 -1
- package/dist/types/components/store/zonosStore.d.ts +1 -1
- package/dist/types/components/utils/api/checkItemRestrictions.d.ts +3 -3
- package/dist/types/components/utils/api/getLocaleMessages.d.ts +3 -3
- package/dist/types/components/utils/changeDeepProperty.d.ts +2 -2
- package/dist/types/components/utils/changeDeepPropertyAtIndex.d.ts +2 -1
- package/dist/types/components/utils/createCustomEvent.d.ts +3 -3
- package/dist/types/components/utils/hello/detectItemRestrictions.d.ts +3 -3
- package/dist/types/components/utils/hello/getCurrentHelloLocalePage.d.ts +1 -1
- package/dist/types/components/utils/hello/initHello.d.ts +2 -2
- package/dist/types/components/utils/resetToSelectedTab.d.ts +1 -1
- package/dist/types/components.d.ts +102 -2
- package/dist/types/environment.d.ts +2 -2
- package/dist/types/scripts/_stripe.d.ts +1 -1
- package/dist/types/stencil-public-runtime.d.ts +6 -0
- package/dist/types/styles/stripe/defaultVariable.d.ts +1 -1
- package/dist/types/types/checkout/TaxId.d.ts +20 -0
- package/dist/types/types/checkout/api/CalculateLandedCost.d.ts +8 -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 +71 -109
- package/dist/types/types/generated/graphql.internal.types.ts +91 -98
- package/dist/types/types/global.d.ts +0 -5
- package/dist/types/types/index.d.ts +1 -0
- package/dist/types/types/stripe/Apperance.d.ts +1 -2
- package/dist/types/utils/formattedUrl.d.ts +1 -1
- package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-e205ef1c.system.entry.js → p-0197a9bf.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-b9efc660.entry.js → p-0ab29580.entry.js} +1 -1
- package/dist/zonos-elements/{p-6b0aa1bb.system.js → p-0b5c9f89.system.js} +1 -1
- package/dist/zonos-elements/{p-87ed2e17.system.entry.js → p-0b5f4ca7.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-289ded20.system.entry.js → p-0db28495.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-35b8dcde.entry.js → p-1198c874.entry.js} +1 -1
- package/dist/zonos-elements/p-12a6b7bd.system.js +1 -0
- package/dist/zonos-elements/{p-b7307c61.js → p-1460f917.js} +1 -1
- package/dist/zonos-elements/{p-9589bd08.entry.js → p-1e3ea4ae.entry.js} +1 -1
- package/dist/zonos-elements/p-21b538ea.system.js +1 -0
- package/dist/zonos-elements/{p-0fc96872.system.entry.js → p-2761ad55.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-bc8b22ad.entry.js → p-28295342.entry.js} +1 -1
- package/dist/zonos-elements/{p-22d69480.system.entry.js → p-2ab5e362.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-f07c01c5.system.entry.js → p-2cfc00b8.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-f8ca3e71.entry.js → p-302f5d25.entry.js} +1 -1
- package/dist/zonos-elements/{p-4319600a.system.entry.js → p-33e1d25e.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-10efff62.system.js → p-36dfc7ac.system.js} +1 -1
- package/dist/zonos-elements/{p-7a60deef.system.entry.js → p-381874b0.system.entry.js} +1 -1
- package/dist/zonos-elements/p-386325ae.system.js +1 -0
- package/dist/zonos-elements/{p-1c4ff7b2.system.entry.js → p-38d0c496.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-00d4bff1.entry.js → p-39cac2c1.entry.js} +1 -1
- package/dist/zonos-elements/{p-5c32689e.entry.js → p-3f991022.entry.js} +1 -1
- package/dist/zonos-elements/{p-9b59704a.entry.js → p-44dd4269.entry.js} +1 -1
- package/dist/zonos-elements/{p-edc16f69.js → p-4b685549.js} +1 -1
- package/dist/zonos-elements/{p-ad1d6ea2.entry.js → p-4c7f0417.entry.js} +1 -1
- package/dist/zonos-elements/{p-d633ced9.entry.js → p-54058b57.entry.js} +1 -1
- package/dist/zonos-elements/{p-ad4bc6a2.entry.js → p-545c05ce.entry.js} +1 -1
- package/dist/zonos-elements/p-5bd927f2.js +1 -0
- package/dist/zonos-elements/{p-01ad5be8.system.entry.js → p-654fc23d.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-5b90dd6d.entry.js → p-675f60b4.entry.js} +1 -1
- package/dist/zonos-elements/p-680d3694.js +2 -0
- package/dist/zonos-elements/{p-461624ce.system.entry.js → p-6a8862a6.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-10d6fe23.js → p-766dd01f.js} +1 -1
- package/dist/zonos-elements/{p-3dd503fd.system.entry.js → p-78e4f877.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-7ef573f0.entry.js → p-7c5c0a85.entry.js} +1 -1
- package/dist/zonos-elements/{p-bb418544.system.js → p-7c643376.system.js} +1 -1
- package/dist/zonos-elements/{p-ffe4a999.system.entry.js → p-8ac02349.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-25c7e4fa.system.entry.js → p-8e30228d.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-be2feba6.entry.js → p-8f26cc7e.entry.js} +1 -1
- package/dist/zonos-elements/{p-fce202ab.entry.js → p-9306a835.entry.js} +1 -1
- package/dist/zonos-elements/{p-04a6a167.entry.js → p-9d7a860c.entry.js} +1 -1
- package/dist/zonos-elements/p-9da2d116.entry.js +1 -0
- package/dist/zonos-elements/{p-cd1fd09e.entry.js → p-9dec2b74.entry.js} +1 -1
- package/dist/zonos-elements/{p-cf72603f.system.entry.js → p-9e84f647.system.entry.js} +1 -1
- package/dist/zonos-elements/p-a08ea336.js +1 -0
- package/dist/zonos-elements/{p-ee1e1d94.system.entry.js → p-a13d5957.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-dc09df19.system.entry.js → p-a2bce31d.system.entry.js} +1 -1
- package/dist/zonos-elements/p-a4f045d4.js +17 -0
- package/dist/zonos-elements/{p-f2867195.entry.js → p-ab6973a5.entry.js} +1 -1
- package/dist/zonos-elements/{p-d10ffd69.js → p-b0174a8f.js} +1 -1
- package/dist/zonos-elements/{p-8368a79e.entry.js → p-b2ea7adb.entry.js} +1 -1
- package/dist/zonos-elements/{p-fd061229.system.js → p-b50667b6.system.js} +1 -1
- package/dist/zonos-elements/{p-46a5ec52.system.js → p-c0164a3c.system.js} +1 -1
- package/dist/zonos-elements/p-c437d76c.system.js +1 -0
- package/dist/zonos-elements/{p-64a04391.system.entry.js → p-d1afd314.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-7acf6802.entry.js → p-d3867033.entry.js} +1 -1
- package/dist/zonos-elements/{p-896ab1ed.system.entry.js → p-d5a3851d.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-0c027d2e.entry.js → p-d9511c4a.entry.js} +1 -1
- package/dist/zonos-elements/{p-010f5797.system.entry.js → p-dba6147b.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-896d62a4.system.entry.js → p-df9c0bfa.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-0aee2e4c.system.entry.js → p-e6554a6f.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c78dd680.system.js → p-e9964a5a.system.js} +1 -1
- package/dist/zonos-elements/{p-b832ec52.entry.js → p-f2d07062.entry.js} +1 -1
- package/dist/zonos-elements/{p-8f9affb3.system.entry.js → p-f9aef1fc.system.entry.js} +1 -1
- package/dist/zonos-elements/p-fa538a74.system.entry.js +1 -0
- package/dist/zonos-elements/{p-3a26cae5.entry.js → p-fc4658a6.entry.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 +68 -67
- package/dist/collection/__mocks__/vercel-app/loadZonos.js +0 -492
- package/dist/collection/__mocks__/vercel-app/localization.js +0 -1
- package/dist/collection/__mocks__/vercel-app/zonos-hello.entry.js +0 -1
- package/dist/collection/__mocks__/zonos-url/index.js +0 -1
- package/dist/collection/__mocks__/zonos-url/loadZonos.js +0 -492
- package/dist/collection/__mocks__/zonos-url/localization.js +0 -2899
- package/dist/collection/__mocks__/zonos-url/zonos-hello.entry.js +0 -1
- package/dist/esm-es5/cart-709f053f.js +0 -1
- package/dist/esm-es5/index-86b8247e.js +0 -2
- package/dist/zonos-elements/p-49e4ca08.system.entry.js +0 -1
- package/dist/zonos-elements/p-5b7da777.js +0 -2
- package/dist/zonos-elements/p-6b6cd6c3.system.js +0 -1
- package/dist/zonos-elements/p-a58731ec.system.js +0 -1
- package/dist/zonos-elements/p-afffdfc2.js +0 -1
- package/dist/zonos-elements/p-d35376d3.js +0 -17
- package/dist/zonos-elements/p-e6c31531.entry.js +0 -1
- package/dist/zonos-elements/p-f8e8b50e.system.js +0 -1
- /package/dist/esm-es5/{handleFetch-22cb914b.js → handleFetch-badf4543.js} +0 -0
- /package/dist/zonos-elements/{p-860e46ab.js → p-a5b294d7.js} +0 -0
- /package/dist/zonos-elements/{p-febc72e7.system.js → p-bfcfd29b.system.js} +0 -0
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
5
|
+
const index = require('./index-b678ce0c.js');
|
|
6
|
+
const zonosStore = require('./zonosStore-8971eb65.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
8
|
const isColorVariable = require('./isColorVariable-525dbfa7.js');
|
|
9
9
|
const styles = require('./styles-d1e64fb9.js');
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
5
|
+
const index = require('./index-b678ce0c.js');
|
|
6
|
+
const zonosStore = require('./zonosStore-8971eb65.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
8
|
|
|
9
9
|
const zonosToggleCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-inline-flexbox;display:inline-flex}:host .wrapper{position:relative;border-radius:6px;background-color:var(--zonos-elements-gray-50);display:-ms-flexbox;display:flex}:host .zonos--toggle-selected-slider{z-index:1;position:absolute;background-color:var(--zonos-elements-raised-surface-color);height:100%;-webkit-box-shadow:var(--zonos-elements-shadow-button-standard);box-shadow:var(--zonos-elements-shadow-button-standard);border-radius:6px;-webkit-animation:translate 0.3s ease-in-out;animation:translate 0.3s ease-in-out}:host .zonos--option{background:transparent;border:0;z-index:2;cursor:pointer;padding:4px 12px;border-radius:6px;-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);font-size:var(--zonos-elements-font-size-base);font-weight:500;color:var(--zonos-elements-text-color-secondary)}:host .zonos--option:focus{outline:none}:host .zonos--option:hover:not(.selected){color:var(--zonos-elements-text-color)}:host .zonos--option.selected{color:var(--zonos-elements-text-color);background-color:var(--zonos-elements-raised-surface-color);height:100%;-webkit-box-shadow:var(--zonos-elements-shadow-button-standard);box-shadow:var(--zonos-elements-shadow-button-standard);border-radius:6px;-webkit-animation:translate 0.3s ease-in-out;animation:translate 0.3s ease-in-out}";
|
|
@@ -17,9 +17,9 @@ const ZonosToggle = class {
|
|
|
17
17
|
this.value = undefined;
|
|
18
18
|
}
|
|
19
19
|
render() {
|
|
20
|
-
return (index.h(index.Host, { key: '
|
|
20
|
+
return (index.h(index.Host, { key: '01958140c90fdadecbfca64fe65dbf1132af2cc1', class: classes.classes(['zonos--elements zonos--toggle']), style: {
|
|
21
21
|
'--zonos--font-family': zonosStore.zonosStoreFontFamily(),
|
|
22
|
-
} }, index.h("div", { key: '
|
|
22
|
+
} }, index.h("div", { key: '5362589929c25b5ba897d23a308f6dd2759c4ac0', class: "wrapper" }, this.options.map(option => {
|
|
23
23
|
const selected = option.value === this.value;
|
|
24
24
|
return (index.h("button", { class: classes.classes(['zonos--option', selected && 'selected']), key: option.value, onClick: () => {
|
|
25
25
|
this.toggleChanged.emit(option.value);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-b678ce0c.js');
|
|
6
6
|
const classes = require('./classes-b7918f56.js');
|
|
7
7
|
|
|
8
8
|
const zonosTooltipCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .zonos--tooltip{position:relative}:host .zonos--tooltip .zonos--tooltip-content{position:absolute;bottom:100%;left:0;width:-webkit-max-content;width:-moz-max-content;width:max-content;padding:12px;background-color:var(--zonos-elements-gray-1000);opacity:0;-webkit-transform:scale(0);transform:scale(0);-webkit-transition:all 0.2s ease-in-out;transition:all 0.2s ease-in-out;-webkit-transform-origin:bottom left;transform-origin:bottom left;border-radius:var(--zonos-elements-radius-4);z-index:100;-webkit-box-shadow:var(--zonos-elements-v3-shadow-large);box-shadow:var(--zonos-elements-v3-shadow-large)}:host .zonos--tooltip .zonos--tooltip-content.zonos--show-tooltip{opacity:1;-webkit-transform:scale(1);transform:scale(1)}";
|
|
@@ -16,10 +16,10 @@ const ZonosTooltip = class {
|
|
|
16
16
|
this.showTooltip = false;
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
|
-
return (index.h(index.Host, { key: '
|
|
19
|
+
return (index.h(index.Host, { key: 'fa16c20a254958721bcc44dbe96f6588545e86f0', class: "zonos--elements" }, index.h("div", { key: '0e57607df02b12d5df9fb84b64c8345b40b2e823', class: "zonos--tooltip", onMouseEnter: () => (this.showTooltip = true), onMouseLeave: () => (this.showTooltip = false) }, index.h("slot", { key: '9faf457a730046b789a5b822fb6ab89d88970d59' }), index.h("div", { key: 'f85dbf49e172f9a1c1b57443b1ea22d819b4099c', class: classes.classes([
|
|
20
20
|
this.showTooltip && 'zonos--show-tooltip',
|
|
21
21
|
'zonos--tooltip-content',
|
|
22
|
-
]) }, index.h("zonos-text", { key: '
|
|
22
|
+
]) }, index.h("zonos-text", { key: '6e90bfe3f346cbe5d49aab4e03c868b3138aeca7', size: "s", textColor: "gray-0", type: "boldLabel" }, this.label), index.h("zonos-text", { key: '1c10f75f13ae427737fcf4ece41b9f7ba13fb76d', size: "xs", textColor: "gray-0" }, this.subtitle)))));
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
25
|
ZonosTooltip.style = ZonosTooltipStyle0;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
5
|
+
const index = require('./index-b678ce0c.js');
|
|
6
|
+
const zonosStore = require('./zonosStore-8971eb65.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
8
|
|
|
9
9
|
const zonosVStackCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .vstack{display:grid;grid-auto-columns:minmax(0, 1fr);grid-row-gap:var(--spacing, 24px);grid-auto-flow:row}";
|
|
@@ -15,9 +15,9 @@ const VStack = class {
|
|
|
15
15
|
this.spacing = 24;
|
|
16
16
|
}
|
|
17
17
|
render() {
|
|
18
|
-
return (index.h(index.Host, { key: '
|
|
18
|
+
return (index.h(index.Host, { key: '32154740511a038c4ca04ad55bc7d77d96496654', style: {
|
|
19
19
|
'--zonos--font-family': zonosStore.zonosStoreFontFamily(),
|
|
20
|
-
} }, index.h("div", { key: '
|
|
20
|
+
} }, index.h("div", { key: 'f80f8b0e51554a3db9efa960706ac9bb450155cb', class: classes.classes(['vstack']), style: { 'grid-row-gap': `${this.spacing}px` } }, index.h("slot", { key: '711a207eb1b4c59672be4df8b19a3c7200d44f29' }))));
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
23
|
VStack.style = ZonosVStackStyle0;
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
"components/common/zonos-logo/zonos-logo.js",
|
|
37
37
|
"components/common/zonos-rest-state/zonos-rest-state.js",
|
|
38
38
|
"components/common/zonos-select-dialog-header/zonos-select-dialog-header.js",
|
|
39
|
+
"components/common/zonos-stripe-input/zonos-stripe-input.js",
|
|
39
40
|
"components/common/zonos-text/zonos-text.js",
|
|
40
41
|
"components/common/zonos-toggle/zonos-toggle.js",
|
|
41
42
|
"components/common/zonos-tooltip/zonos-tooltip.js",
|
|
@@ -53,8 +54,8 @@
|
|
|
53
54
|
],
|
|
54
55
|
"compiler": {
|
|
55
56
|
"name": "@stencil/core",
|
|
56
|
-
"version": "4.
|
|
57
|
-
"typescriptVersion": "5.4
|
|
57
|
+
"version": "4.22.3",
|
|
58
|
+
"typescriptVersion": "5.5.4"
|
|
58
59
|
},
|
|
59
60
|
"collections": [],
|
|
60
61
|
"bundles": []
|
|
@@ -161,7 +161,7 @@ export class ZonosCheckoutFinish {
|
|
|
161
161
|
void sendErrorLog({
|
|
162
162
|
endpoint: `${baseUrl}/api/zonos-elements/get-order?checkoutSessionId=${checkoutSessionId}&orderId=${order.id}`,
|
|
163
163
|
errors: [
|
|
164
|
-
`Order found but legacy order number doesn
|
|
164
|
+
`Order found but legacy order number doesn't exist after ${maxRetries} attempts`,
|
|
165
165
|
],
|
|
166
166
|
metadata: {
|
|
167
167
|
allLogs,
|
|
@@ -702,7 +702,7 @@ export class ZonosCheckout {
|
|
|
702
702
|
cartStore.inventoryCheckErrorMessage =
|
|
703
703
|
await stripeStoreHandleInventoryCheck();
|
|
704
704
|
}
|
|
705
|
-
catch (
|
|
705
|
+
catch (_a) {
|
|
706
706
|
// If user provide callback and it throw an exception, default to this message and stop the payment.
|
|
707
707
|
cartStore.inventoryCheckErrorMessage = translate('Unable to check inventory. Please try again.');
|
|
708
708
|
}
|
|
@@ -1147,7 +1147,7 @@ export class ZonosCheckout {
|
|
|
1147
1147
|
},
|
|
1148
1148
|
"setToFinishStep": {
|
|
1149
1149
|
"complexType": {
|
|
1150
|
-
"signature": "(forcePaymentStatus?: PaymentIntent[
|
|
1150
|
+
"signature": "(forcePaymentStatus?: PaymentIntent[\"status\"]) => Promise<void>",
|
|
1151
1151
|
"parameters": [{
|
|
1152
1152
|
"name": "forcePaymentStatus",
|
|
1153
1153
|
"type": "Status | undefined",
|
|
@@ -13,7 +13,7 @@ export class ZonosCurrencyToggle {
|
|
|
13
13
|
const { exchangeRate } = cartStore;
|
|
14
14
|
const options = exchangeRate &&
|
|
15
15
|
exchangeRate.sourceCurrencyCode !== exchangeRate.targetCurrencyCode
|
|
16
|
-
?
|
|
16
|
+
? [
|
|
17
17
|
{
|
|
18
18
|
label: exchangeRate.sourceCurrencyCode,
|
|
19
19
|
value: exchangeRate.sourceCurrencyCode,
|
|
@@ -22,7 +22,7 @@ export class ZonosCurrencyToggle {
|
|
|
22
22
|
label: exchangeRate.targetCurrencyCode,
|
|
23
23
|
value: exchangeRate.targetCurrencyCode,
|
|
24
24
|
},
|
|
25
|
-
]
|
|
25
|
+
]
|
|
26
26
|
: [];
|
|
27
27
|
// If there is only one currency, don't show the toggle
|
|
28
28
|
if (!options.length) {
|
|
@@ -5,6 +5,7 @@ import { getZonosStoreTheme, zonosStore, } from "../../../store/zonosStore";
|
|
|
5
5
|
import { trackConversionEvent } from "../../../utils/api/trackConversionEvent";
|
|
6
6
|
import { containsNonLatinChars } from "../../../utils/containsNonLatinChars";
|
|
7
7
|
import { submitGtag } from "../../../utils/submitGtag";
|
|
8
|
+
import { countryRequireTaxId, shipToTaxIdLabels, } from "../../../../types/checkout/Tax";
|
|
8
9
|
export class ZonosCustomerInfo {
|
|
9
10
|
constructor() {
|
|
10
11
|
/**
|
|
@@ -166,6 +167,26 @@ export class ZonosCustomerInfo {
|
|
|
166
167
|
}
|
|
167
168
|
return invalidList;
|
|
168
169
|
}
|
|
170
|
+
isInTaxIdCountry(countryCode) {
|
|
171
|
+
return countryRequireTaxId.includes(countryCode);
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Render tax id input based on ship to country code
|
|
175
|
+
*/
|
|
176
|
+
renderTaxIdInput(countryCode) {
|
|
177
|
+
// Don't render tax id input if the country is not provided
|
|
178
|
+
if (!countryCode) {
|
|
179
|
+
return null;
|
|
180
|
+
}
|
|
181
|
+
const isCountryRequireTaxId = this.isInTaxIdCountry(countryCode);
|
|
182
|
+
if (!isCountryRequireTaxId) {
|
|
183
|
+
return null;
|
|
184
|
+
}
|
|
185
|
+
const taxIdInputInfo = shipToTaxIdLabels[countryCode];
|
|
186
|
+
return (h("div", { class: "zonos--tax-id-input" }, h("zonos-stripe-input", { inputLabel: translate(taxIdInputInfo.friendlyName), inputPlaceholder: taxIdInputInfo.placeholder, inputValue: stripeStore.taxId || '', onInputChange: (event) => {
|
|
187
|
+
stripeStore.taxId = event.detail;
|
|
188
|
+
} })));
|
|
189
|
+
}
|
|
169
190
|
render() {
|
|
170
191
|
var _a, _b;
|
|
171
192
|
if (!stripeStore.stripeElements) {
|
|
@@ -190,7 +211,7 @@ export class ZonosCustomerInfo {
|
|
|
190
211
|
if (this.showErrorBanner) {
|
|
191
212
|
this.showErrorBanner = !this.handleValidate();
|
|
192
213
|
}
|
|
193
|
-
return (h(Host, { class: "zonos--customer-info zonos--elements" }, h("div", { class: "zonos--group" }, h("zonos-text", { class: "zonos--title", type: "semiBoldSubheader" }, translate('Customer information')), this.showErrorBanner && (h("zonos-banner", { class: "zonos--error-banner", intent: "error" }, translate('Missing required fields. Make sure all fields are completed.'))), h("zonos-link-authentication", { defaultEmail: (_b = this.defaultAddress) === null || _b === void 0 ? void 0 : _b.email, isEmailError: this.isEmailError, onLinkAuthenticationChange: this.handleEmailValidation, titleText: translate('Contact') }), h("zonos-address", { defaultAddress: this.defaultAddress, titleText: translate('Address'), type: "shipping" }), h("zonos-checkbox", { class: "zonos--shipping-same-as-billing-cbx", isChecked: stripeStore.stripeShippingSameAsBilling, label: translate('Shipping address same as billing'), onCheckboxSelected: e => {
|
|
214
|
+
return (h(Host, { class: "zonos--customer-info zonos--elements" }, h("div", { class: "zonos--group" }, h("zonos-text", { class: "zonos--title", type: "semiBoldSubheader" }, translate('Customer information')), this.showErrorBanner && (h("zonos-banner", { class: "zonos--error-banner", intent: "error" }, translate('Missing required fields. Make sure all fields are completed.'))), h("zonos-link-authentication", { defaultEmail: (_b = this.defaultAddress) === null || _b === void 0 ? void 0 : _b.email, isEmailError: this.isEmailError, onLinkAuthenticationChange: this.handleEmailValidation, titleText: translate('Contact') }), h("zonos-address", { defaultAddress: this.defaultAddress, titleText: translate('Address'), type: "shipping" }), this.renderTaxIdInput(this.shippingCountry), h("zonos-checkbox", { class: "zonos--shipping-same-as-billing-cbx", isChecked: stripeStore.stripeShippingSameAsBilling, label: translate('Shipping address same as billing'), onCheckboxSelected: e => {
|
|
194
215
|
stripeStore.stripeShippingSameAsBilling = e.detail;
|
|
195
216
|
} }), h("zonos-collapse", { collapsed: !showBilling }, h("zonos-address", { defaultAddress: this.defaultAddress, titleText: translate('Billing address'), type: "billing" })), h("div", { class: "zonos--group-btn" }, h("zonos-button", { backgroundColor: this.submitBtnColor, loading: this.continueLoading, onClick: () => this.continueClickHandler(), size: "lg",
|
|
196
217
|
// use primary type when on mobile mode
|
|
@@ -172,7 +172,7 @@ export class ZonosCheckoutProgressTabs {
|
|
|
172
172
|
},
|
|
173
173
|
"setTabSelected": {
|
|
174
174
|
"complexType": {
|
|
175
|
-
"signature": "(tabValue: TabItem[
|
|
175
|
+
"signature": "(tabValue: TabItem[\"value\"]) => Promise<void>",
|
|
176
176
|
"parameters": [{
|
|
177
177
|
"name": "tabValue",
|
|
178
178
|
"type": "\"customer-info\" | \"shipping\" | \"payment\"",
|
|
@@ -0,0 +1,162 @@
|
|
|
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
|
+
--zonos--background-color: #f1f1f1;
|
|
36
|
+
--zonos--local-glowing-color: 0 0 0 3px hsla(0, 0%, 100%, 25%),
|
|
37
|
+
0 0 0 1px var(--zonos--primary-color);
|
|
38
|
+
--zonos--border: 1px solid #e8e8e8;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
:host(.dark) {
|
|
42
|
+
color-scheme: dark;
|
|
43
|
+
--zonos--background-color: #30313d;
|
|
44
|
+
--zonos--local-glowing-color: 0px 2px 4px rgba(0, 0, 0, 0.5),
|
|
45
|
+
0px 1px 6px rgba(0, 0, 0, 0.25), 0 0 0 3px hsla(0, 0%, 100%, 25%),
|
|
46
|
+
0 1px 1px 0 rgba(255, 255, 255, 0.12);
|
|
47
|
+
--zonos--border: 1px solid var(--zonos--primary-color);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
:host {
|
|
51
|
+
margin: 1px;
|
|
52
|
+
height: calc(var(--zonos-elements-size-xl) - 2px);
|
|
53
|
+
/**disabled state */
|
|
54
|
+
}
|
|
55
|
+
:host .zonos--label-wrapper {
|
|
56
|
+
position: relative;
|
|
57
|
+
display: flex;
|
|
58
|
+
flex-direction: row;
|
|
59
|
+
height: 100%;
|
|
60
|
+
width: 100%;
|
|
61
|
+
background: var(--zonos--background-color);
|
|
62
|
+
border-radius: var(--zonos--border-radius);
|
|
63
|
+
border: var(--zonos--border);
|
|
64
|
+
outline-offset: 0;
|
|
65
|
+
outline-width: 2px;
|
|
66
|
+
}
|
|
67
|
+
:host .zonos--floated-input {
|
|
68
|
+
box-sizing: border-box;
|
|
69
|
+
position: relative;
|
|
70
|
+
padding: 0 16px;
|
|
71
|
+
outline: none;
|
|
72
|
+
transition: var(--zonos-elements-transition);
|
|
73
|
+
width: 100%;
|
|
74
|
+
border-radius: var(--zonos--border-radius);
|
|
75
|
+
background: var(--zonos--background-color);
|
|
76
|
+
border: var(--zonos--border);
|
|
77
|
+
order: 2;
|
|
78
|
+
font-weight: 400;
|
|
79
|
+
font-size: var(--zonos--font-size);
|
|
80
|
+
}
|
|
81
|
+
:host .zonos--floated-input :-internal-autofill-selected {
|
|
82
|
+
border-radius: var(--zonos-elements-radius-6) 0 0 var(--zonos-elements-radius-6);
|
|
83
|
+
}
|
|
84
|
+
:host .zonos--floated-input :-internal-autofill-selected + label + div {
|
|
85
|
+
background-color: #e8f0fe;
|
|
86
|
+
}
|
|
87
|
+
:host .zonos--floated-input.has-label {
|
|
88
|
+
padding: 24px 4px 2px 16px;
|
|
89
|
+
}
|
|
90
|
+
:host .zonos--floated-input.has-label.has-input-prefix {
|
|
91
|
+
padding-left: 0;
|
|
92
|
+
}
|
|
93
|
+
:host .zonos--floated-input.has-label.has-input-prefix + .zonos--floated-label label {
|
|
94
|
+
margin-left: 0;
|
|
95
|
+
}
|
|
96
|
+
:host .zonos--floated-input:not(.has-label)::placeholder {
|
|
97
|
+
opacity: var(--zonos-elements-opacity-disabled);
|
|
98
|
+
}
|
|
99
|
+
:host .zonos--floated-input::placeholder {
|
|
100
|
+
transition: var(--zonos-elements-transition);
|
|
101
|
+
opacity: 0;
|
|
102
|
+
}
|
|
103
|
+
:host .zonos--floated-input:focus {
|
|
104
|
+
outline: none;
|
|
105
|
+
border: var(--zonos--border);
|
|
106
|
+
}
|
|
107
|
+
:host .zonos--floated-input:focus + .zonos--floated-label::after {
|
|
108
|
+
box-shadow: var(--zonos--glowing-color, var(--zonos--local-glowing-color));
|
|
109
|
+
}
|
|
110
|
+
:host .zonos--floated-input.has-error + .zonos--floated-label::after {
|
|
111
|
+
box-shadow: 0 0 0 2px #df1b41;
|
|
112
|
+
}
|
|
113
|
+
:host .zonos--floated-input.has-content::placeholder, :host .zonos--floated-input:focus::placeholder {
|
|
114
|
+
opacity: var(--zonos-elements-opacity-disabled);
|
|
115
|
+
}
|
|
116
|
+
:host .zonos--floated-input.has-content + .zonos--floated-label label, :host .zonos--floated-input:focus + .zonos--floated-label label {
|
|
117
|
+
top: 11px;
|
|
118
|
+
transform: scale(0.8);
|
|
119
|
+
}
|
|
120
|
+
:host .zonos--floated-input:-webkit-autofill, :host .zonos--floated-input:-moz-autofill {
|
|
121
|
+
background-color: var(--zonos-elements-input-background);
|
|
122
|
+
color: var(--zonos-elements-text-color);
|
|
123
|
+
}
|
|
124
|
+
:host .zonos--floated-label {
|
|
125
|
+
display: block;
|
|
126
|
+
max-height: 0;
|
|
127
|
+
pointer-events: none;
|
|
128
|
+
order: 1;
|
|
129
|
+
}
|
|
130
|
+
:host .zonos--floated-label label {
|
|
131
|
+
color: var(--zonos-elements-gray-800);
|
|
132
|
+
position: absolute;
|
|
133
|
+
font-size: 16px;
|
|
134
|
+
line-height: 16px;
|
|
135
|
+
display: inline-block;
|
|
136
|
+
filter: blur(0);
|
|
137
|
+
transform-origin: left top;
|
|
138
|
+
transition: var(--zonos-elements-transition);
|
|
139
|
+
margin-left: 16px;
|
|
140
|
+
top: calc(50% - 8px);
|
|
141
|
+
z-index: 1;
|
|
142
|
+
}
|
|
143
|
+
:host .zonos--floated-label::after {
|
|
144
|
+
content: "";
|
|
145
|
+
position: absolute;
|
|
146
|
+
left: 0;
|
|
147
|
+
right: 0;
|
|
148
|
+
top: 0;
|
|
149
|
+
bottom: 0;
|
|
150
|
+
border-radius: var(--zonos--border-radius);
|
|
151
|
+
}
|
|
152
|
+
:host .disabled .zonos--floated-label {
|
|
153
|
+
pointer-events: inherit;
|
|
154
|
+
}
|
|
155
|
+
:host .disabled .zonos--floated-label::after {
|
|
156
|
+
cursor: not-allowed;
|
|
157
|
+
z-index: 1;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
:host(.dark) .zonos--label-wrapper {
|
|
161
|
+
background: #30313d;
|
|
162
|
+
}
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
import { h, Host, } from "@stencil/core";
|
|
2
|
+
import { zonosStore, zonosStoreFontFamily, } from "../../store/zonosStore";
|
|
3
|
+
import { classes } from "../../utils/classes";
|
|
4
|
+
import { getBorderRadius } from "../../utils/getBorderRadius";
|
|
5
|
+
import { isDarkColor } from "../../utils/isDarkColor";
|
|
6
|
+
/**
|
|
7
|
+
* This component is input that has similar style to Stripe since we will use it with other Stripe elements when we don't want to use Link authentication element
|
|
8
|
+
*/
|
|
9
|
+
export class ZonosStripeInput {
|
|
10
|
+
constructor() {
|
|
11
|
+
this.inputValue = '';
|
|
12
|
+
this.inputLabel = undefined;
|
|
13
|
+
this.overridePrimaryColor = undefined;
|
|
14
|
+
this.overrideSecondaryColor = undefined;
|
|
15
|
+
this.isDisabled = false;
|
|
16
|
+
this.isError = false;
|
|
17
|
+
this.inputPlaceholder = '';
|
|
18
|
+
this.value = this.inputValue;
|
|
19
|
+
}
|
|
20
|
+
onInputValueChange(newValue) {
|
|
21
|
+
this.value = newValue;
|
|
22
|
+
this.inputChange.emit(newValue);
|
|
23
|
+
}
|
|
24
|
+
render() {
|
|
25
|
+
const primaryColor = this.overridePrimaryColor || zonosStore.appearance.colorPrimary;
|
|
26
|
+
const secondaryColor = this.overrideSecondaryColor || zonosStore.appearance.colorSecondary;
|
|
27
|
+
const isDark = primaryColor && isDarkColor(primaryColor);
|
|
28
|
+
const fontSize = zonosStore.appearance.fontSizeInputValue || 16;
|
|
29
|
+
return (h(Host, { key: 'cc1e63bf6a09749b4310fd55bb6f728879e3c160', class: classes([
|
|
30
|
+
'zonos--input zonos--elements',
|
|
31
|
+
isDark && 'dark',
|
|
32
|
+
this.isError && 'has-error',
|
|
33
|
+
]), "data-theme": isDark ? 'DARK' : 'LIGHT', style: {
|
|
34
|
+
'--zonos--border-radius': getBorderRadius(),
|
|
35
|
+
'--zonos--font-family': zonosStoreFontFamily(),
|
|
36
|
+
'--zonos--font-size': `${fontSize}px`,
|
|
37
|
+
'--zonos--primary-color': secondaryColor,
|
|
38
|
+
} }, h("div", { key: '62294a559ba63fbf80cedbe16e3dca97540c8d4a', class: classes([
|
|
39
|
+
'zonos--label-wrapper',
|
|
40
|
+
this.isDisabled && 'disabled',
|
|
41
|
+
]) }, h("input", { key: '7e7d2a9d16b34240945119356f1b801ff0e0d4ae', class: classes([
|
|
42
|
+
'zonos--floated-input',
|
|
43
|
+
!!this.inputLabel && 'has-label',
|
|
44
|
+
this.value && 'has-content',
|
|
45
|
+
this.isError && 'has-error',
|
|
46
|
+
]), disabled: this.isDisabled, id: "zonos--input", onInput: e => {
|
|
47
|
+
const input = e.target;
|
|
48
|
+
this.inputChange.emit(input.value);
|
|
49
|
+
}, placeholder: this.inputPlaceholder, type: "text", value: this.value }), h("div", { key: 'e8340ce1583c0ce2d3659631a3400c2b72c81258', class: "zonos--floated-label" }, h("label", { key: 'daa8f068ebabfa9d77ed85d0e8070b45f7803f92', htmlFor: "zonos--input" }, this.inputLabel)))));
|
|
50
|
+
}
|
|
51
|
+
static get is() { return "zonos-stripe-input"; }
|
|
52
|
+
static get encapsulation() { return "shadow"; }
|
|
53
|
+
static get originalStyleUrls() {
|
|
54
|
+
return {
|
|
55
|
+
"$": ["zonos-stripe-input.scss"]
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
static get styleUrls() {
|
|
59
|
+
return {
|
|
60
|
+
"$": ["zonos-stripe-input.css"]
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
static get properties() {
|
|
64
|
+
return {
|
|
65
|
+
"inputValue": {
|
|
66
|
+
"type": "string",
|
|
67
|
+
"mutable": false,
|
|
68
|
+
"complexType": {
|
|
69
|
+
"original": "string",
|
|
70
|
+
"resolved": "string",
|
|
71
|
+
"references": {}
|
|
72
|
+
},
|
|
73
|
+
"required": false,
|
|
74
|
+
"optional": false,
|
|
75
|
+
"docs": {
|
|
76
|
+
"tags": [],
|
|
77
|
+
"text": "Value of the stripeInput"
|
|
78
|
+
},
|
|
79
|
+
"attribute": "input-value",
|
|
80
|
+
"reflect": false,
|
|
81
|
+
"defaultValue": "''"
|
|
82
|
+
},
|
|
83
|
+
"inputLabel": {
|
|
84
|
+
"type": "string",
|
|
85
|
+
"mutable": false,
|
|
86
|
+
"complexType": {
|
|
87
|
+
"original": "string",
|
|
88
|
+
"resolved": "string",
|
|
89
|
+
"references": {}
|
|
90
|
+
},
|
|
91
|
+
"required": true,
|
|
92
|
+
"optional": false,
|
|
93
|
+
"docs": {
|
|
94
|
+
"tags": [],
|
|
95
|
+
"text": "Input label"
|
|
96
|
+
},
|
|
97
|
+
"attribute": "input-label",
|
|
98
|
+
"reflect": false
|
|
99
|
+
},
|
|
100
|
+
"overridePrimaryColor": {
|
|
101
|
+
"type": "string",
|
|
102
|
+
"mutable": false,
|
|
103
|
+
"complexType": {
|
|
104
|
+
"original": "string",
|
|
105
|
+
"resolved": "string | undefined",
|
|
106
|
+
"references": {}
|
|
107
|
+
},
|
|
108
|
+
"required": false,
|
|
109
|
+
"optional": true,
|
|
110
|
+
"docs": {
|
|
111
|
+
"tags": [],
|
|
112
|
+
"text": "Primary color to override primary color from appearance primary color in setting."
|
|
113
|
+
},
|
|
114
|
+
"attribute": "override-primary-color",
|
|
115
|
+
"reflect": false
|
|
116
|
+
},
|
|
117
|
+
"overrideSecondaryColor": {
|
|
118
|
+
"type": "string",
|
|
119
|
+
"mutable": false,
|
|
120
|
+
"complexType": {
|
|
121
|
+
"original": "string",
|
|
122
|
+
"resolved": "string | undefined",
|
|
123
|
+
"references": {}
|
|
124
|
+
},
|
|
125
|
+
"required": false,
|
|
126
|
+
"optional": true,
|
|
127
|
+
"docs": {
|
|
128
|
+
"tags": [],
|
|
129
|
+
"text": "Secondary color to override secondary color from appearance secondary color in setting"
|
|
130
|
+
},
|
|
131
|
+
"attribute": "override-secondary-color",
|
|
132
|
+
"reflect": false
|
|
133
|
+
},
|
|
134
|
+
"isDisabled": {
|
|
135
|
+
"type": "boolean",
|
|
136
|
+
"mutable": false,
|
|
137
|
+
"complexType": {
|
|
138
|
+
"original": "boolean",
|
|
139
|
+
"resolved": "boolean",
|
|
140
|
+
"references": {}
|
|
141
|
+
},
|
|
142
|
+
"required": false,
|
|
143
|
+
"optional": false,
|
|
144
|
+
"docs": {
|
|
145
|
+
"tags": [],
|
|
146
|
+
"text": "Disables the input"
|
|
147
|
+
},
|
|
148
|
+
"attribute": "is-disabled",
|
|
149
|
+
"reflect": false,
|
|
150
|
+
"defaultValue": "false"
|
|
151
|
+
},
|
|
152
|
+
"isError": {
|
|
153
|
+
"type": "boolean",
|
|
154
|
+
"mutable": false,
|
|
155
|
+
"complexType": {
|
|
156
|
+
"original": "boolean",
|
|
157
|
+
"resolved": "boolean",
|
|
158
|
+
"references": {}
|
|
159
|
+
},
|
|
160
|
+
"required": false,
|
|
161
|
+
"optional": false,
|
|
162
|
+
"docs": {
|
|
163
|
+
"tags": [],
|
|
164
|
+
"text": "Error state of the input"
|
|
165
|
+
},
|
|
166
|
+
"attribute": "is-error",
|
|
167
|
+
"reflect": false,
|
|
168
|
+
"defaultValue": "false"
|
|
169
|
+
},
|
|
170
|
+
"inputPlaceholder": {
|
|
171
|
+
"type": "string",
|
|
172
|
+
"mutable": false,
|
|
173
|
+
"complexType": {
|
|
174
|
+
"original": "string",
|
|
175
|
+
"resolved": "string",
|
|
176
|
+
"references": {}
|
|
177
|
+
},
|
|
178
|
+
"required": false,
|
|
179
|
+
"optional": false,
|
|
180
|
+
"docs": {
|
|
181
|
+
"tags": [],
|
|
182
|
+
"text": "Placeholder for the input"
|
|
183
|
+
},
|
|
184
|
+
"attribute": "input-placeholder",
|
|
185
|
+
"reflect": false,
|
|
186
|
+
"defaultValue": "''"
|
|
187
|
+
}
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
static get states() {
|
|
191
|
+
return {
|
|
192
|
+
"value": {}
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
static get events() {
|
|
196
|
+
return [{
|
|
197
|
+
"method": "inputChange",
|
|
198
|
+
"name": "inputChange",
|
|
199
|
+
"bubbles": true,
|
|
200
|
+
"cancelable": true,
|
|
201
|
+
"composed": true,
|
|
202
|
+
"docs": {
|
|
203
|
+
"tags": [],
|
|
204
|
+
"text": "Event to emit when input value changes"
|
|
205
|
+
},
|
|
206
|
+
"complexType": {
|
|
207
|
+
"original": "string",
|
|
208
|
+
"resolved": "string",
|
|
209
|
+
"references": {}
|
|
210
|
+
}
|
|
211
|
+
}];
|
|
212
|
+
}
|
|
213
|
+
static get elementRef() { return "el"; }
|
|
214
|
+
static get watchers() {
|
|
215
|
+
return [{
|
|
216
|
+
"propName": "inputValue",
|
|
217
|
+
"methodName": "onInputValueChange"
|
|
218
|
+
}];
|
|
219
|
+
}
|
|
220
|
+
}
|
|
@@ -7,9 +7,9 @@ export class ZonosToggle {
|
|
|
7
7
|
this.value = undefined;
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
|
-
return (h(Host, { key: '
|
|
10
|
+
return (h(Host, { key: '01958140c90fdadecbfca64fe65dbf1132af2cc1', class: classes(['zonos--elements zonos--toggle']), style: {
|
|
11
11
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
12
|
-
} }, h("div", { key: '
|
|
12
|
+
} }, h("div", { key: '5362589929c25b5ba897d23a308f6dd2759c4ac0', class: "wrapper" }, this.options.map(option => {
|
|
13
13
|
const selected = option.value === this.value;
|
|
14
14
|
return (h("button", { class: classes(['zonos--option', selected && 'selected']), key: option.value, onClick: () => {
|
|
15
15
|
this.toggleChanged.emit(option.value);
|
|
@@ -7,10 +7,10 @@ export class ZonosTooltip {
|
|
|
7
7
|
this.showTooltip = false;
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
|
-
return (h(Host, { key: '
|
|
10
|
+
return (h(Host, { key: 'fa16c20a254958721bcc44dbe96f6588545e86f0', class: "zonos--elements" }, h("div", { key: '0e57607df02b12d5df9fb84b64c8345b40b2e823', class: "zonos--tooltip", onMouseEnter: () => (this.showTooltip = true), onMouseLeave: () => (this.showTooltip = false) }, h("slot", { key: '9faf457a730046b789a5b822fb6ab89d88970d59' }), h("div", { key: 'f85dbf49e172f9a1c1b57443b1ea22d819b4099c', class: classes([
|
|
11
11
|
this.showTooltip && 'zonos--show-tooltip',
|
|
12
12
|
'zonos--tooltip-content',
|
|
13
|
-
]) }, h("zonos-text", { key: '
|
|
13
|
+
]) }, h("zonos-text", { key: '6e90bfe3f346cbe5d49aab4e03c868b3138aeca7', size: "s", textColor: "gray-0", type: "boldLabel" }, this.label), h("zonos-text", { key: '1c10f75f13ae427737fcf4ece41b9f7ba13fb76d', size: "xs", textColor: "gray-0" }, this.subtitle)))));
|
|
14
14
|
}
|
|
15
15
|
static get is() { return "zonos-tooltip"; }
|
|
16
16
|
static get encapsulation() { return "shadow"; }
|
|
@@ -7,9 +7,9 @@ export class VStack {
|
|
|
7
7
|
this.spacing = 24;
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
|
-
return (h(Host, { key: '
|
|
10
|
+
return (h(Host, { key: '32154740511a038c4ca04ad55bc7d77d96496654', style: {
|
|
11
11
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
12
|
-
} }, h("div", { key: '
|
|
12
|
+
} }, h("div", { key: 'f80f8b0e51554a3db9efa960706ac9bb450155cb', class: classes(['vstack']), style: { 'grid-row-gap': `${this.spacing}px` } }, h("slot", { key: '711a207eb1b4c59672be4df8b19a3c7200d44f29' }))));
|
|
13
13
|
}
|
|
14
14
|
static get is() { return "zonos-v-stack"; }
|
|
15
15
|
static get encapsulation() { return "shadow"; }
|