@zonos/elements 1.3.142 → 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/TaxId-4632639d.js +29 -0
- package/dist/cjs/{cart-199b0751.js → cart-6ac8dc06.js} +251 -1
- package/dist/cjs/index.cjs.js +10 -7
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{paypal-4f1ee604.js → paypal-ea8b4ca0.js} +1 -1
- package/dist/cjs/{zonos-address_7.cjs.entry.js → zonos-address_8.cjs.entry.js} +59 -4
- package/dist/cjs/zonos-cart-items_13.cjs.entry.js +25 -4
- package/dist/cjs/zonos-checkout.cjs.entry.js +2 -2
- package/dist/cjs/zonos-component.cjs.entry.js +1 -1
- package/dist/cjs/zonos-controller.cjs.entry.js +2 -2
- package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +5 -5
- package/dist/cjs/zonos-elements.cjs.js +1 -1
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +5 -5
- package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +1 -1
- package/dist/cjs/zonos-notification_3.cjs.entry.js +4 -4
- 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 +1 -0
- 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-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/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/prepCalculateLandedCost.js +2 -0
- 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/esm/TaxId-915ef042.js +26 -0
- package/dist/esm/{cart-cf87ec6f.js → cart-acba54d0.js} +251 -1
- package/dist/esm/index.js +8 -7
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{paypal-b7124cc4.js → paypal-3401f757.js} +1 -1
- package/dist/esm/{zonos-address_7.entry.js → zonos-address_8.entry.js} +59 -5
- package/dist/esm/zonos-cart-items_13.entry.js +25 -4
- package/dist/esm/zonos-checkout.entry.js +2 -2
- package/dist/esm/zonos-component.entry.js +1 -1
- package/dist/esm/zonos-controller.entry.js +2 -2
- package/dist/esm/zonos-country-flag.entry.js +1 -1
- package/dist/esm/zonos-country-select_4.entry.js +5 -5
- package/dist/esm/zonos-elements.js +1 -1
- package/dist/esm/zonos-hello-dialog.entry.js +5 -5
- package/dist/esm/zonos-hello.entry.js +1 -1
- package/dist/esm/zonos-language-select_2.entry.js +1 -1
- package/dist/esm/zonos-notification_3.entry.js +4 -4
- 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/TaxId-915ef042.js +1 -0
- package/dist/esm-es5/cart-acba54d0.js +1 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{paypal-b7124cc4.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-cart-items_13.entry.js +1 -1
- package/dist/esm-es5/zonos-checkout.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-language-select_2.entry.js +1 -1
- package/dist/esm-es5/zonos-notification_3.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 +109 -0
- 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/stripe.d.ts +8 -0
- 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/utils/api/getLocaleMessages.d.ts +1 -1
- package/dist/types/components.d.ts +100 -0
- 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/index.d.ts +1 -0
- package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-2949faf3.entry.js → p-0ab29580.entry.js} +1 -1
- package/dist/zonos-elements/{p-c1b098de.system.js → p-0b5c9f89.system.js} +1 -1
- package/dist/zonos-elements/{p-2d514c1d.system.entry.js → p-0db28495.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-9b720cf4.entry.js → p-1198c874.entry.js} +1 -1
- package/dist/zonos-elements/p-12a6b7bd.system.js +1 -0
- package/dist/zonos-elements/{p-232963d3.system.entry.js → p-2ab5e362.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-8c487480.entry.js → p-302f5d25.entry.js} +1 -1
- package/dist/zonos-elements/p-386325ae.system.js +1 -0
- package/dist/zonos-elements/{p-2e152517.system.entry.js → p-38d0c496.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-65069140.entry.js → p-3f991022.entry.js} +1 -1
- package/dist/zonos-elements/{p-2c19f5e2.entry.js → p-4c7f0417.entry.js} +1 -1
- package/dist/zonos-elements/{p-72256333.entry.js → p-54058b57.entry.js} +1 -1
- package/dist/zonos-elements/p-5bd927f2.js +1 -0
- package/dist/zonos-elements/{p-f295030e.system.entry.js → p-654fc23d.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-ebdd9b64.system.entry.js → p-6a8862a6.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-0e54432c.system.entry.js → p-78e4f877.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-983f23a1.system.entry.js → p-8ac02349.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-ded984d9.system.entry.js → p-8e30228d.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-076388d3.entry.js → p-8f26cc7e.entry.js} +1 -1
- package/dist/zonos-elements/{p-2b8cddb7.entry.js → p-9d7a860c.entry.js} +1 -1
- package/dist/zonos-elements/p-9da2d116.entry.js +1 -0
- package/dist/zonos-elements/{p-a8bd492d.system.entry.js → p-9e84f647.system.entry.js} +1 -1
- package/dist/zonos-elements/p-a08ea336.js +1 -0
- package/dist/zonos-elements/p-a4f045d4.js +17 -0
- package/dist/zonos-elements/{p-68d79b58.entry.js → p-ab6973a5.entry.js} +1 -1
- package/dist/zonos-elements/{p-58a09715.entry.js → p-b2ea7adb.entry.js} +1 -1
- package/dist/zonos-elements/p-c437d76c.system.js +1 -0
- package/dist/zonos-elements/{p-3cb4468f.system.entry.js → p-d1afd314.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-d381288e.entry.js → p-d3867033.entry.js} +1 -1
- package/dist/zonos-elements/{p-0920500d.entry.js → p-d9511c4a.entry.js} +1 -1
- package/dist/zonos-elements/{p-d198421b.system.entry.js → p-dba6147b.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-6b490b0a.system.entry.js → p-df9c0bfa.system.entry.js} +1 -1
- package/dist/zonos-elements/p-e9964a5a.system.js +1 -1
- package/dist/zonos-elements/{p-3cf30d83.entry.js → p-f2d07062.entry.js} +1 -1
- package/dist/zonos-elements/{p-673b4402.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/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/cart-cf87ec6f.js +0 -1
- package/dist/zonos-elements/p-0cda2818.system.js +0 -1
- package/dist/zonos-elements/p-0d2cf216.entry.js +0 -1
- package/dist/zonos-elements/p-272052bd.system.entry.js +0 -1
- package/dist/zonos-elements/p-3d82e70e.js +0 -1
- package/dist/zonos-elements/p-6271e108.js +0 -17
- package/dist/zonos-elements/p-866bb93e.system.js +0 -1
|
@@ -2,9 +2,9 @@ import { r as registerInstance, h, H as Host, d as getElement, c as createEvent
|
|
|
2
2
|
import { d as zonosStoreFontFamily } from './zonosStore-708637e7.js';
|
|
3
3
|
import { c as classes } from './classes-0d95c529.js';
|
|
4
4
|
import { g as getBorderRadius } from './getBorderRadius-4aca63d4.js';
|
|
5
|
-
import { f as stripeStore } from './cart-
|
|
5
|
+
import { f as stripeStore } from './cart-acba54d0.js';
|
|
6
6
|
import { a as logError, l as log } from './handleFetch-badf4543.js';
|
|
7
|
-
import { d as paypalStoreInitButtons } from './paypal-
|
|
7
|
+
import { d as paypalStoreInitButtons } from './paypal-3401f757.js';
|
|
8
8
|
import './isDarkColor-4915739f.js';
|
|
9
9
|
|
|
10
10
|
const zonosNotificationCss = ":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-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}:host .zonos--notification-items{position:fixed;z-index:9999999999;bottom:24px;gap:8px;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column}:host .zonos--notification-item{cursor:pointer;-webkit-transition:all 0.3s ease;transition:all 0.3s ease;padding:8px;border-radius:var(--zonos--border-radius, var(--zonos-elements-radius-6));opacity:0;-ms-flex-negative:0.0001;flex-shrink:0.0001;-webkit-transform:translateY(100%);transform:translateY(100%)}:host .zonos--notification-item+:host .zonos--notification-item{margin-top:8px}:host .zonos--notification-item.show{opacity:1;-webkit-transform:translateY(0);transform:translateY(0);-ms-flex-positive:1000;flex-grow:1000}:host .zonos--notification-item.success{background-color:var(--zonos-elements-green-700)}:host .zonos--notification-item.error{background-color:var(--zonos-elements-red-700)}:host .zonos--notification-item.warning{background-color:var(--zonos-elements-orange-700)}";
|
|
@@ -107,7 +107,7 @@ const ZonosPayment = class {
|
|
|
107
107
|
}
|
|
108
108
|
render() {
|
|
109
109
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
110
|
-
return (h(Host, { key: '
|
|
110
|
+
return (h(Host, { key: 'adcbeae4dadcaff59781ae47f779032e9fe43f5c', class: "zonos--payment zonos--elements" }, this.titleText && (h("zonos-text", { key: 'c83017ca67410a6715cacf6c0e524ed7b4304837', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), h("div", { key: '55c6d6dde8efaffec4411a838c62b7ede3efe30a', class: "zonos--payment-component" }), h("div", { key: 'd27b440253222daf94e4a6ad862c901efa54bfe5', class: "zonos--payment-paypal-container" })));
|
|
111
111
|
}
|
|
112
112
|
get el() { return getElement(this); }
|
|
113
113
|
static get watchers() { return {
|
|
@@ -161,7 +161,7 @@ const ZonosPaypalPayment = class {
|
|
|
161
161
|
void this.loadPaypal();
|
|
162
162
|
}
|
|
163
163
|
render() {
|
|
164
|
-
return (h(Host, { key: '
|
|
164
|
+
return (h(Host, { key: '7be3c38f702c8fb105c54e652774f69fbbcfd34c', class: "zonos--paypal-payment zonos--elements" }, h("div", { key: '6845b53c2a5d1f2637f3ae9d867d2c6de48ab1b5', class: "zonos--payment-paypal-container" })));
|
|
165
165
|
}
|
|
166
166
|
get el() { return getElement(this); }
|
|
167
167
|
};
|
|
@@ -13,9 +13,9 @@ const ZonosToggle = class {
|
|
|
13
13
|
this.value = undefined;
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
|
-
return (h(Host, { key: '
|
|
16
|
+
return (h(Host, { key: '01958140c90fdadecbfca64fe65dbf1132af2cc1', class: classes(['zonos--elements zonos--toggle']), style: {
|
|
17
17
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
18
|
-
} }, h("div", { key: '
|
|
18
|
+
} }, h("div", { key: '5362589929c25b5ba897d23a308f6dd2759c4ac0', class: "wrapper" }, this.options.map(option => {
|
|
19
19
|
const selected = option.value === this.value;
|
|
20
20
|
return (h("button", { class: classes(['zonos--option', selected && 'selected']), key: option.value, onClick: () => {
|
|
21
21
|
this.toggleChanged.emit(option.value);
|
|
@@ -12,10 +12,10 @@ const ZonosTooltip = class {
|
|
|
12
12
|
this.showTooltip = false;
|
|
13
13
|
}
|
|
14
14
|
render() {
|
|
15
|
-
return (h(Host, { key: '
|
|
15
|
+
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([
|
|
16
16
|
this.showTooltip && 'zonos--show-tooltip',
|
|
17
17
|
'zonos--tooltip-content',
|
|
18
|
-
]) }, h("zonos-text", { key: '
|
|
18
|
+
]) }, 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)))));
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
21
|
ZonosTooltip.style = ZonosTooltipStyle0;
|
|
@@ -11,9 +11,9 @@ const VStack = class {
|
|
|
11
11
|
this.spacing = 24;
|
|
12
12
|
}
|
|
13
13
|
render() {
|
|
14
|
-
return (h(Host, { key: '
|
|
14
|
+
return (h(Host, { key: '32154740511a038c4ca04ad55bc7d77d96496654', style: {
|
|
15
15
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
16
|
-
} }, h("div", { key: '
|
|
16
|
+
} }, h("div", { key: 'f80f8b0e51554a3db9efa960706ac9bb450155cb', class: classes(['vstack']), style: { 'grid-row-gap': `${this.spacing}px` } }, h("slot", { key: '711a207eb1b4c59672be4df8b19a3c7200d44f29' }))));
|
|
17
17
|
}
|
|
18
18
|
};
|
|
19
19
|
VStack.style = ZonosVStackStyle0;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var countryRequireTaxId=["AR","BR","KR","MX"];var shipToTaxIdLabels={AR:{friendlyName:"Unique Labor Identification Code",placeholder:"00-00000000-0"},BR:{friendlyName:"CPF/CNPJ number",placeholder:"000.000.000-00"},KR:{friendlyName:"Personal Customers Clearance Code",placeholder:"000-00-00000"},MX:{friendlyName:"RFC number",placeholder:"XAXX010101000"}};export{countryRequireTaxId as c,shipToTaxIdLabels as s};
|