@zonos/elements 1.3.4-alpha.1 → 1.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{cart-cfa5d5fd.js → cart-f31374d4.js} +4 -4
- package/dist/cjs/{getBorderRadius-c3c63ee6.js → getBorderRadius-cd7ef574.js} +1 -1
- package/dist/cjs/{index-0dcccc22.js → index-3ead02fe.js} +56 -22
- package/dist/cjs/index.cjs.js +6 -6
- package/dist/cjs/{isDarkColor-fc8c294a.js → isDarkColor-5eda1323.js} +7 -3
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{localization-4746acf7.js → localization-d43e1540.js} +1 -1
- package/dist/cjs/{submitGtag-ca175427.js → submitGtag-42f29b3a.js} +2 -2
- package/dist/cjs/zonos-address_2.cjs.entry.js +12 -10
- package/dist/cjs/zonos-badge.cjs.entry.js +7 -6
- package/dist/cjs/zonos-banner.cjs.entry.js +4 -3
- package/dist/cjs/zonos-button_2.cjs.entry.js +11 -9
- package/dist/cjs/zonos-card_2.cjs.entry.js +10 -8
- package/dist/cjs/zonos-cart-items_10.cjs.entry.js +36 -26
- package/dist/cjs/zonos-checkout.cjs.entry.js +9 -8
- package/dist/cjs/zonos-component.cjs.entry.js +4 -3
- package/dist/cjs/zonos-controller.cjs.entry.js +9 -8
- package/dist/cjs/zonos-country-flag_4.cjs.entry.js +19 -15
- package/dist/cjs/zonos-elements.cjs.js +2 -2
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +7 -6
- package/dist/cjs/zonos-hello.cjs.entry.js +44 -27
- package/dist/cjs/zonos-icon.cjs.entry.js +4 -3
- package/dist/cjs/zonos-notification.cjs.entry.js +6 -5
- package/dist/cjs/zonos-payment.cjs.entry.js +9 -8
- package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +6 -5
- package/dist/cjs/zonos-text.cjs.entry.js +4 -3
- package/dist/cjs/{zonosStore-10d1d6ff.js → zonosStore-b88b5671.js} +571 -332
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-items/zonos-cart-items.js +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +1 -1
- 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 +2 -2
- package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +2 -2
- 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-logo/zonos-logo.js +2 -2
- package/dist/collection/components/common/zonos-notification/zonos-notification.js +2 -2
- package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.js +1 -1
- package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.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 +2 -2
- package/dist/collection/components/main/zonos-controller.js +1 -1
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +1 -1
- package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +1 -1
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
- package/dist/components/isDarkColor.js +7 -3
- package/dist/components/zonos-address2.js +3 -2
- package/dist/components/zonos-badge2.js +6 -5
- package/dist/components/zonos-banner2.js +3 -2
- package/dist/components/zonos-button2.js +6 -5
- package/dist/components/zonos-card2.js +5 -4
- package/dist/components/zonos-cart-items2.js +3 -2
- package/dist/components/zonos-cart-subtotal2.js +2 -1
- package/dist/components/zonos-checkout-finish2.js +3 -2
- package/dist/components/zonos-checkout-payment2.js +2 -1
- package/dist/components/zonos-checkout.js +2 -1
- package/dist/components/zonos-collapse2.js +5 -4
- package/dist/components/zonos-component.js +3 -2
- package/dist/components/zonos-controller.js +4 -3
- package/dist/components/zonos-country-flag2.js +3 -2
- package/dist/components/zonos-country-select2.js +6 -5
- package/dist/components/zonos-custom-message2.js +5 -4
- package/dist/components/zonos-customer-info2.js +2 -1
- package/dist/components/zonos-dialog2.js +6 -5
- package/dist/components/zonos-hello-dialog-footer2.js +4 -3
- package/dist/components/zonos-hello-dialog2.js +4 -3
- package/dist/components/zonos-hello.js +42 -25
- package/dist/components/zonos-icon2.js +3 -2
- package/dist/components/zonos-link-authentication2.js +3 -2
- package/dist/components/zonos-logo2.js +5 -4
- package/dist/components/zonos-notification2.js +5 -4
- package/dist/components/zonos-payment2.js +3 -2
- package/dist/components/zonos-review2.js +2 -1
- package/dist/components/zonos-shipping-rich-radio2.js +4 -3
- package/dist/components/zonos-shipping2.js +2 -1
- package/dist/components/zonos-spinner2.js +2 -1
- package/dist/components/zonos-text2.js +3 -2
- package/dist/components/zonos-v-stack2.js +5 -4
- package/dist/components/zonosStore.js +571 -331
- package/dist/esm/{cart-d81b92ea.js → cart-c9124cc3.js} +4 -4
- package/dist/esm/{getBorderRadius-77e97943.js → getBorderRadius-9e4cb3b1.js} +1 -1
- package/dist/esm/{index-36ff6342.js → index-81a199ef.js} +56 -22
- package/dist/esm/index.js +6 -6
- package/dist/esm/{isDarkColor-69090b29.js → isDarkColor-8696cb70.js} +7 -3
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{localization-0c5b29fd.js → localization-5d83fde2.js} +1 -1
- package/dist/esm/{submitGtag-8a0fbd41.js → submitGtag-a7d07aec.js} +2 -2
- package/dist/esm/zonos-address_2.entry.js +12 -10
- package/dist/esm/zonos-badge.entry.js +7 -6
- package/dist/esm/zonos-banner.entry.js +4 -3
- package/dist/esm/zonos-button_2.entry.js +11 -9
- package/dist/esm/zonos-card_2.entry.js +10 -8
- package/dist/esm/zonos-cart-items_10.entry.js +36 -26
- package/dist/esm/zonos-checkout.entry.js +9 -8
- package/dist/esm/zonos-component.entry.js +4 -3
- package/dist/esm/zonos-controller.entry.js +9 -8
- package/dist/esm/zonos-country-flag_4.entry.js +19 -15
- package/dist/esm/zonos-elements.js +3 -3
- package/dist/esm/zonos-hello-dialog.entry.js +7 -6
- package/dist/esm/zonos-hello.entry.js +44 -27
- package/dist/esm/zonos-icon.entry.js +4 -3
- package/dist/esm/zonos-notification.entry.js +6 -5
- package/dist/esm/zonos-payment.entry.js +9 -8
- package/dist/esm/zonos-shipping-rich-radio.entry.js +6 -5
- package/dist/esm/zonos-text.entry.js +4 -3
- package/dist/esm/{zonosStore-34f07ee8.js → zonosStore-e59617f8.js} +572 -332
- package/dist/esm-es5/{cart-d81b92ea.js → cart-c9124cc3.js} +1 -1
- package/dist/esm-es5/{getBorderRadius-77e97943.js → getBorderRadius-9e4cb3b1.js} +1 -1
- package/dist/esm-es5/index-81a199ef.js +2 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/isDarkColor-8696cb70.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{localization-0c5b29fd.js → localization-5d83fde2.js} +1 -1
- package/dist/esm-es5/{submitGtag-8a0fbd41.js → submitGtag-a7d07aec.js} +1 -1
- package/dist/esm-es5/zonos-address_2.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_2.entry.js +1 -1
- package/dist/esm-es5/zonos-card_2.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_10.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_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-icon.entry.js +1 -1
- package/dist/esm-es5/zonos-notification.entry.js +1 -1
- package/dist/esm-es5/zonos-payment.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/zonosStore-e59617f8.js +1 -0
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/scripts/zonosBase.js +1 -1
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/p-0024f8c2.js +1 -0
- package/dist/zonos-elements/p-027abb50.entry.js +1 -0
- package/dist/zonos-elements/{p-a54d8db3.system.js → p-12ecf765.system.js} +1 -1
- package/dist/zonos-elements/p-139fc767.entry.js +1 -0
- package/dist/zonos-elements/p-1c00ffea.system.entry.js +1 -0
- package/dist/zonos-elements/{p-c1e298d5.system.entry.js → p-21793192.entry.js} +1 -1
- package/dist/zonos-elements/p-26edde4d.system.entry.js +1 -0
- package/dist/zonos-elements/p-28d7b75d.entry.js +1 -0
- package/dist/zonos-elements/p-2ac66cea.system.entry.js +1 -0
- package/dist/zonos-elements/p-39d12bf0.entry.js +1 -0
- package/dist/zonos-elements/p-3d965e88.entry.js +1 -0
- package/dist/zonos-elements/p-410045c5.system.entry.js +1 -0
- package/dist/zonos-elements/{p-c0494ed6.entry.js → p-43220d68.entry.js} +1 -1
- package/dist/zonos-elements/p-4d39efb6.system.js +2 -0
- package/dist/zonos-elements/p-4d8545e1.js +2 -0
- package/dist/zonos-elements/{p-ed074fbf.system.js → p-51a40ddf.system.js} +1 -1
- package/dist/zonos-elements/{p-5bada106.system.entry.js → p-5a0264e8.system.entry.js} +1 -1
- package/dist/zonos-elements/p-5d91e45c.entry.js +1 -0
- package/dist/zonos-elements/p-62851827.system.entry.js +1 -0
- package/dist/zonos-elements/p-73174d0c.system.entry.js +1 -0
- package/dist/zonos-elements/p-741a1402.system.entry.js +1 -0
- package/dist/zonos-elements/p-7748735d.entry.js +1 -0
- package/dist/zonos-elements/p-7cae86a0.system.entry.js +1 -0
- package/dist/zonos-elements/p-7f68c103.system.js +1 -0
- package/dist/zonos-elements/p-83bb8727.system.entry.js +1 -0
- package/dist/zonos-elements/{p-a244579e.js → p-8ebc0b64.js} +1 -1
- package/dist/zonos-elements/p-97e659b7.entry.js +1 -0
- package/dist/zonos-elements/p-9f3cad08.entry.js +1 -0
- package/dist/zonos-elements/{p-ab179c88.system.js → p-a6f2e282.system.js} +1 -1
- package/dist/zonos-elements/p-afed9236.entry.js +1 -0
- package/dist/zonos-elements/{p-24fbe845.system.js → p-b035f9e5.system.js} +1 -1
- package/dist/zonos-elements/{p-3509ffaa.entry.js → p-b1ffb37b.entry.js} +1 -1
- package/dist/zonos-elements/{p-17ef815f.entry.js → p-b494d540.entry.js} +1 -1
- package/dist/zonos-elements/{p-06a332cd.js → p-b87fa3a1.js} +1 -1
- package/dist/zonos-elements/{p-ab00288a.entry.js → p-bd02a65c.entry.js} +1 -1
- package/dist/zonos-elements/p-be23cc91.system.entry.js +1 -0
- package/dist/zonos-elements/p-bea31a7b.system.entry.js +1 -0
- package/dist/zonos-elements/p-c134eecd.system.js +1 -0
- package/dist/zonos-elements/p-d170748c.system.entry.js +1 -0
- package/dist/zonos-elements/p-dc09ca69.system.js +1 -0
- package/dist/zonos-elements/{p-2b41549a.js → p-e59b6648.js} +1 -1
- package/dist/zonos-elements/p-e8da4463.js +1 -0
- package/dist/zonos-elements/{p-ccd1794a.system.entry.js → p-eb96f893.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-5066955b.system.js → p-ee8b44c0.system.js} +1 -1
- package/dist/zonos-elements/{p-935fa685.system.entry.js → p-efd1544b.system.entry.js} +1 -1
- package/dist/zonos-elements/p-f2733cc7.js +1 -0
- package/dist/zonos-elements/{p-e6556b0d.entry.js → p-f342e7c7.entry.js} +1 -1
- package/dist/zonos-elements/p-f7b1dfd0.system.entry.js +1 -0
- package/dist/zonos-elements/p-f82e000f.system.entry.js +1 -0
- package/dist/zonos-elements/p-ffc91e42.entry.js +1 -0
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/dist/zonos-elements/zonos-elements.js +1 -1
- package/package.json +29 -29
- package/dist/esm-es5/index-36ff6342.js +0 -2
- package/dist/esm-es5/isDarkColor-69090b29.js +0 -1
- package/dist/esm-es5/zonosStore-34f07ee8.js +0 -1
- package/dist/zonos-elements/p-02175f85.entry.js +0 -1
- package/dist/zonos-elements/p-124857ae.entry.js +0 -1
- package/dist/zonos-elements/p-18904b7c.system.js +0 -2
- package/dist/zonos-elements/p-1f494581.system.entry.js +0 -1
- package/dist/zonos-elements/p-2e1e9074.js +0 -1
- package/dist/zonos-elements/p-3c8763a7.entry.js +0 -1
- package/dist/zonos-elements/p-3e7444c6.entry.js +0 -1
- package/dist/zonos-elements/p-4b3baf99.js +0 -1
- package/dist/zonos-elements/p-53ea93c2.system.entry.js +0 -1
- package/dist/zonos-elements/p-67154df2.system.entry.js +0 -1
- package/dist/zonos-elements/p-684ed483.entry.js +0 -1
- package/dist/zonos-elements/p-72cfaee2.system.entry.js +0 -1
- package/dist/zonos-elements/p-7730250d.system.js +0 -1
- package/dist/zonos-elements/p-80748529.system.entry.js +0 -1
- package/dist/zonos-elements/p-86f22026.js +0 -1
- package/dist/zonos-elements/p-88600956.entry.js +0 -1
- package/dist/zonos-elements/p-8b1cb8a4.entry.js +0 -1
- package/dist/zonos-elements/p-8bd04aaa.entry.js +0 -1
- package/dist/zonos-elements/p-956efa27.js +0 -2
- package/dist/zonos-elements/p-9c1f19b6.entry.js +0 -1
- package/dist/zonos-elements/p-a063c4b7.entry.js +0 -1
- package/dist/zonos-elements/p-a174d834.system.js +0 -1
- package/dist/zonos-elements/p-b3a71ae4.system.entry.js +0 -1
- package/dist/zonos-elements/p-b3e034bb.system.entry.js +0 -1
- package/dist/zonos-elements/p-bb7de2c4.system.entry.js +0 -1
- package/dist/zonos-elements/p-c1665c4f.system.js +0 -1
- package/dist/zonos-elements/p-c520d819.system.entry.js +0 -1
- package/dist/zonos-elements/p-ca875e60.system.entry.js +0 -1
- package/dist/zonos-elements/p-e2c7adaa.system.entry.js +0 -1
- package/dist/zonos-elements/p-e3bca405.entry.js +0 -1
- package/dist/zonos-elements/p-e58cc024.entry.js +0 -1
- package/dist/zonos-elements/p-f1e9b431.system.entry.js +0 -1
- package/dist/zonos-elements/p-fbc09dae.system.entry.js +0 -1
package/dist/collection/components/checkout/zonos-checkout/zonos-cart-items/zonos-cart-items.js
CHANGED
|
@@ -9,7 +9,7 @@ export class ZonosCartItems {
|
|
|
9
9
|
var _a;
|
|
10
10
|
const emptyItemImg = getAssetPath('./assets/empty-item.jpeg');
|
|
11
11
|
const rate = ((_a = cartStore.exchangeRate) === null || _a === void 0 ? void 0 : _a.rate) || 1;
|
|
12
|
-
return (h(Host, { class: "zonos--cart-items zonos--elements" }, h("table", { class: "zonos--cart-table" }, h("tbody",
|
|
12
|
+
return (h(Host, { key: '945bd402bb5f8a73bc02dc8f30d187c43b78050e', class: "zonos--cart-items zonos--elements" }, h("table", { key: '600b545e20eb81d7e744c2bf66a9cec2eb68c8e7', class: "zonos--cart-table" }, h("tbody", { key: 'cd12a4372e97b8018af37433e6b2daba5403e621' }, cartStore.items.map(item => {
|
|
13
13
|
const itemImg = item.imageUrl;
|
|
14
14
|
return (h("tr", { class: "zonos--cart-item" }, h("td", { class: "zonos--column zonos--cart-item-image" }, itemImg && !this.errorImages.includes(itemImg) ? (h("img", { alt: item.name, onError: () => {
|
|
15
15
|
this.errorImages = [...this.errorImages, itemImg];
|
|
@@ -140,7 +140,7 @@ export class ZonosCheckoutFinish {
|
|
|
140
140
|
// const totalItems = this.order?.items?.reduce((acc, item) => {
|
|
141
141
|
// return acc + item.quantity;
|
|
142
142
|
// }, 0);
|
|
143
|
-
return (h(Host, { class: "zonos--checkout-finish zonos--elements", style: {
|
|
143
|
+
return (h(Host, { key: 'bdf824c48f7f01bcafd88b17ad758d05ab589ffd', class: "zonos--checkout-finish zonos--elements", style: {
|
|
144
144
|
'--border-radius': getBorderRadius(this.borderRadius),
|
|
145
145
|
} }, this.isLoading && (h("div", { class: "loading-wrapper" }, h("zonos-spinner", null))), !this.isLoading && (h(Fragment, null, h("div", { class: "zonos--group" }, this.notificationType === 'success' ? (h("zonos-icon", { color: 'blue-800', content: SuccessIcon, size: 50 })) : (h("zonos-icon", { color: 'red-800', content: RemoveIcon, size: 50 })), h("zonos-text", { class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), h("zonos-text", null, this.notificationMessages.map(message => (h(Fragment, null, message, h("br", null))))), h("zonos-button", { onClick: () => this.closeClickHandler(), size: "md", variant: "primary" }, translate('Keep shopping')))))));
|
|
146
146
|
}
|
|
@@ -12,16 +12,16 @@ export class ZonosBadge {
|
|
|
12
12
|
this.class = '';
|
|
13
13
|
}
|
|
14
14
|
render() {
|
|
15
|
-
return (h(Host, { class: classes(['zonos--elements zonos--badge', this.class]), style: {
|
|
15
|
+
return (h(Host, { key: '2d111e91f403ef5c03f742f5dabe9491623be91d', class: classes(['zonos--elements zonos--badge', this.class]), style: {
|
|
16
16
|
'--font-family': zonosStoreFontFamily(),
|
|
17
|
-
} }, h("div", { class: classes([
|
|
17
|
+
} }, h("div", { key: 'e6debe091b732b857f180cee19bec4be435ea524', class: classes([
|
|
18
18
|
'zonos--badge-content',
|
|
19
19
|
this.color,
|
|
20
20
|
this.rounded && 'rounded',
|
|
21
21
|
this.iconRight && 'icon-right',
|
|
22
22
|
this.size,
|
|
23
23
|
this.bold && 'bold',
|
|
24
|
-
]) }, this.icon, h("zonos-text",
|
|
24
|
+
]) }, this.icon, h("zonos-text", { key: 'e92c97d77fa5ce279059953f7d7fbc5a0030aa5d' }, h("slot", { key: 'c93852c3225ba57dd26c26300254f348e349f9ad' })))));
|
|
25
25
|
}
|
|
26
26
|
static get is() { return "zonos-badge"; }
|
|
27
27
|
static get encapsulation() { return "shadow"; }
|
|
@@ -56,12 +56,12 @@ export class ZonosButton {
|
|
|
56
56
|
? getButtonTheme(overrideBackground)
|
|
57
57
|
: undefined;
|
|
58
58
|
const borderStyle = getBorderRadius(this.borderStyle);
|
|
59
|
-
return (h(Host, { class: classes(['zonos--elements', this.class]), "data-theme": this.theme || buttonTheme, disabled: disabled, style: {
|
|
59
|
+
return (h(Host, { key: 'af41b1035e5ea776d47580647a65997bb41730e3', class: classes(['zonos--elements', this.class]), "data-theme": this.theme || buttonTheme, disabled: disabled, style: {
|
|
60
60
|
'--background-color': overrideBackground,
|
|
61
61
|
'--border-radius': borderStyle,
|
|
62
62
|
'--color': color,
|
|
63
63
|
'--font-family': zonosStoreFontFamily(),
|
|
64
|
-
} }, h("button", { class: classes([
|
|
64
|
+
} }, h("button", { key: 'af3fdc9aa0440cf5a7e49c4c0c76826d7a700d32', class: classes([
|
|
65
65
|
this.hasIcon && 'has-icon',
|
|
66
66
|
this.hasContent && 'has-content',
|
|
67
67
|
this.noBackground && 'no-background',
|
|
@@ -74,7 +74,7 @@ export class ZonosButton {
|
|
|
74
74
|
this.backgroundColor &&
|
|
75
75
|
this.variant === 'standard' &&
|
|
76
76
|
'override-background',
|
|
77
|
-
]), disabled: disabled }, this.loading && (h("div", { class: "zonos--spinner-wrapper" }, h("zonos-spinner", { size: 16 }))), !this.loading && !this.iconRight && this.icon, h("slot", { onSlotchange: this.handleSlotChange }), !this.loading && this.iconRight && this.icon)));
|
|
77
|
+
]), disabled: disabled }, this.loading && (h("div", { class: "zonos--spinner-wrapper" }, h("zonos-spinner", { size: 16 }))), !this.loading && !this.iconRight && this.icon, h("slot", { key: '32b6a079ba98ab9d62b5df34ddc15e4ac7a87a8e', onSlotchange: this.handleSlotChange }), !this.loading && this.iconRight && this.icon)));
|
|
78
78
|
}
|
|
79
79
|
static get is() { return "zonos-button"; }
|
|
80
80
|
static get encapsulation() { return "shadow"; }
|
|
@@ -13,9 +13,9 @@ export class ZonosCard {
|
|
|
13
13
|
this.spacing = '24px';
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
|
-
return (h(Host, { style: {
|
|
16
|
+
return (h(Host, { key: 'f2f7929742862b9806ddc568155e7cddf954252e', style: {
|
|
17
17
|
'--font-family': zonosStoreFontFamily(),
|
|
18
|
-
} }, h("div", { class: classes(['styled-card', this.class]), style: { padding: this.spacing } }, this.label && (h("header", { class: "card-header", style: { padding: this.spacing } }, h("zonos-text", { type: "subheader" }, this.label), h("h-stack", { spacing: 8 }, this.actions))), h("slot",
|
|
18
|
+
} }, h("div", { key: 'ce3568d7ded3cfb9acb0f4ff3d4184a17b88f33b', class: classes(['styled-card', this.class]), style: { padding: this.spacing } }, this.label && (h("header", { class: "card-header", style: { padding: this.spacing } }, h("zonos-text", { type: "subheader" }, this.label), h("h-stack", { spacing: 8 }, this.actions))), h("slot", { key: '3cc9f896df1899da73eab80dfbb3aac3a0046956' }), (this.footerActions || this.footerContent) && (h("footer", { class: "card-footer", style: {
|
|
19
19
|
height: this.footerHeight ? `${this.footerHeight}px` : 'auto',
|
|
20
20
|
padding: this.spacing,
|
|
21
21
|
} }, h("div", null, this.footerContent), h("h-stack", { spacing: 8 }, this.footerActions))))));
|
|
@@ -23,10 +23,10 @@ export class ZonosCollapse {
|
|
|
23
23
|
}
|
|
24
24
|
render() {
|
|
25
25
|
this.height = this.el.scrollHeight;
|
|
26
|
-
return (h(Host, { class: 'zonos--elements zonos--collapse', style: {
|
|
26
|
+
return (h(Host, { key: 'fb0d16e7e638d45b3469d7f7d26cd3f3ce9bf318', class: 'zonos--elements zonos--collapse', style: {
|
|
27
27
|
'--font-family': zonosStoreFontFamily(),
|
|
28
28
|
height: this.getElementHeight(),
|
|
29
|
-
} }, h("div",
|
|
29
|
+
} }, h("div", { key: '9da00237f8f14edd9c5bf4b68da545b8c7ab4786' }, h("iframe", { key: '402e19d6e96d019a4eccd49af6afdac428c9fae9', class: "height-change-listener", tabindex: "-1", title: "collapse-height-change-listener" }), h("slot", { key: 'de6751ac4955c073cc34188ebe22fabed38f780d' }))));
|
|
30
30
|
}
|
|
31
31
|
static get is() { return "zonos-collapse"; }
|
|
32
32
|
static get encapsulation() { return "shadow"; }
|
|
@@ -32,11 +32,11 @@ export class ZonosCountrySelect {
|
|
|
32
32
|
const filteredCountries = this.inputValue
|
|
33
33
|
? fuseObject.map(country => country.item)
|
|
34
34
|
: countries.sort((a, b) => a.displayName.localeCompare(b.displayName));
|
|
35
|
-
return (h(Host, { class: "zonos--elements", style: {
|
|
35
|
+
return (h(Host, { key: 'ddd9aaea7997423d9e5302158e95fc7614b50138', class: "zonos--elements", style: {
|
|
36
36
|
'--font-family': zonosStoreFontFamily(),
|
|
37
|
-
} }, h("div", { class: "zonos--country-select" }, h("zonos-v-stack",
|
|
37
|
+
} }, h("div", { key: 'c847863dce4998919ea6ed9fd14490173bc41928', class: "zonos--country-select" }, h("zonos-v-stack", { key: '59601481559a5348d49faa3bb37087464b487d2b' }, h("div", { key: '29ba7a85217df739ac29ede069bbe2dd2b19cfac', class: "zonos--country-select-header" }, h("zonos-button", { key: '02f705c0403182b24e8657791b51c5e67879681d', class: "zonos--country-select-back", color: "blue-600", icon: h("zonos-icon", { color: "blue-600", content: ArrowLeftBlue, size: 18 }), onClick: () => this.closeCountrySelect(), variant: "subtle" }, translate('Back')), h("zonos-text", { key: '1a12fd2978f70e7cff4b8871a90e80e4b511be6a' }, shippingZoneCountries &&
|
|
38
38
|
selectedCountryCode &&
|
|
39
|
-
((_a = shippingZoneCountries[selectedCountryCode]) === null || _a === void 0 ? void 0 : _a.displayName))), h("zonos-v-stack", { spacing: 8 }, h("input", { class: "zonos--country-select-input", onInput: this.handleInputChange, placeholder: "Enter country", value: this.inputValue }), h("div",
|
|
39
|
+
((_a = shippingZoneCountries[selectedCountryCode]) === null || _a === void 0 ? void 0 : _a.displayName))), h("zonos-v-stack", { key: '8c2f3da67b479d618d6837a5811b6cede4fe4517', spacing: 8 }, h("input", { key: '989879f65463f5c118e5f9906127546436d5f40c', class: "zonos--country-select-input", onInput: this.handleInputChange, placeholder: "Enter country", value: this.inputValue }), h("div", { key: 'f6ddf1629ad299053f949b8ff36bc126b622bb91' }, filteredCountries.map(country => (h("button", { class: "zonos--country-select-country", onClick: () => this.countrySelected(country.code) }, h("zonos-country-flag", { class: "zonos--hello-country-flag", countryCode: country.code }), h("zonos-text", { color: "gray-800" }, country.displayName))))))))));
|
|
40
40
|
}
|
|
41
41
|
static get is() { return "zonos-country-select"; }
|
|
42
42
|
static get encapsulation() { return "shadow"; }
|
|
@@ -6,9 +6,9 @@ export class ZonosCustomMessage {
|
|
|
6
6
|
this.message = '';
|
|
7
7
|
}
|
|
8
8
|
render() {
|
|
9
|
-
return (h(Host, { class: "zonos--elements", style: {
|
|
9
|
+
return (h(Host, { key: 'eb6b2a907ef77d5e2da0d9cb1bee4b77f814e5cb', class: "zonos--elements", style: {
|
|
10
10
|
'--font-family': zonosStoreFontFamily(),
|
|
11
|
-
} }, h("zonos-card", { class: "zonos--custom-message", spacing: "12px" }, h("div", { class: "zonos--flex-message" }, h("zonos-icon", { content: this.icon }), h("zonos-text",
|
|
11
|
+
} }, h("zonos-card", { key: '9d61e783ca6f87f3a6b478fad97052a2f9f25a8c', class: "zonos--custom-message", spacing: "12px" }, h("div", { key: '6aa51eeb08ee08f19ff8764b0ee868a1c4eeacf8', class: "zonos--flex-message" }, h("zonos-icon", { key: 'c2dd91ae7ac5cf7dd8392729f0ecb38edb04c077', content: this.icon }), h("zonos-text", { key: '537f77f41a5285acc29e7b104d9bb3fd65119477' }, this.message)))));
|
|
12
12
|
}
|
|
13
13
|
static get is() { return "zonos-custom-message"; }
|
|
14
14
|
static get encapsulation() { return "shadow"; }
|
|
@@ -48,7 +48,7 @@ export class ZonosDialog {
|
|
|
48
48
|
document.body.style.overflow = 'auto';
|
|
49
49
|
}
|
|
50
50
|
const borderStyle = getBorderRadius(this.borderStyle);
|
|
51
|
-
return (h(Host, { class: classes([
|
|
51
|
+
return (h(Host, { key: '5a331d58bfd2a0414e9577c4f515cfcd0c630ad5', class: classes([
|
|
52
52
|
'zonos--elements',
|
|
53
53
|
this.open && 'open',
|
|
54
54
|
this.isLoading && 'is-loading',
|
|
@@ -59,10 +59,10 @@ export class ZonosDialog {
|
|
|
59
59
|
'--font-family': zonosStoreFontFamily(),
|
|
60
60
|
'--height': this.height || 'initial',
|
|
61
61
|
'--width': this.width,
|
|
62
|
-
} }, h("div", { class: "zonos--backdrop" }), h("div", { "aria-hidden": "true", class: "zonos--dialog-layout", onClick: this.clickOutsideDialogHandler }, h("div", { class: "zonos--dialog" }, this.isLoading && (h("div", { class: "zonos--loading" }, h("zonos-spinner", { size: 30 }))), (this.headerText || !this.noCloseButton) && (h("div", { class: "zonos--header" }, this.headerText && (h("h3", { class: "zonos--header-text" }, this.headerText)), !this.noCloseButton && (h("zonos-button", { class: "zonos--close-button", icon: h("zonos-icon", { content: RemoveIcon }), noBackground: true, onClick: this.closeButtonHandler })))), h("div", { class: classes([
|
|
62
|
+
} }, h("div", { key: '74e3ed8fcdf55e3ae11d6be9c1e18691f1115bb9', class: "zonos--backdrop" }), h("div", { key: 'dae7aa8261feeb43d62550832b6b91437da07f9d', "aria-hidden": "true", class: "zonos--dialog-layout", onClick: this.clickOutsideDialogHandler }, h("div", { key: 'ea919a80d1c0589908af64d48845c5263d1b18f4', class: "zonos--dialog" }, this.isLoading && (h("div", { class: "zonos--loading" }, h("zonos-spinner", { size: 30 }))), (this.headerText || !this.noCloseButton) && (h("div", { class: "zonos--header" }, this.headerText && (h("h3", { class: "zonos--header-text" }, this.headerText)), !this.noCloseButton && (h("zonos-button", { class: "zonos--close-button", icon: h("zonos-icon", { content: RemoveIcon }), noBackground: true, onClick: this.closeButtonHandler })))), h("div", { key: '77de036f1fd7ea16936a5521a646df427115e99b', class: classes([
|
|
63
63
|
'zonos--body',
|
|
64
64
|
this.noBodyPadding && 'zonos--no-body-padding',
|
|
65
|
-
]) }, h("slot",
|
|
65
|
+
]) }, h("slot", { key: '9da41cdcfe580bb41b672f8185552e29b269e5dd' })), this.footerRightAction && (h("div", { class: "zonos--footer" }, h("div", { class: "zonos--footer-right-action" }, this.footerRightAction)))))));
|
|
66
66
|
}
|
|
67
67
|
static get is() { return "zonos-dialog"; }
|
|
68
68
|
static get encapsulation() { return "shadow"; }
|
|
@@ -11,11 +11,11 @@ export class ZonosLogo {
|
|
|
11
11
|
const filterColor = this.theme === 'DARK'
|
|
12
12
|
? 'invert(100%) sepia(100%) saturate(0%) hue-rotate(288deg) brightness(102%) contrast(102%)'
|
|
13
13
|
: 'whiteinvert(0%) sepia(100%) saturate(32%) hue-rotate(92deg) brightness(107%) contrast(107%)';
|
|
14
|
-
return (h(Host, { class: classes(['zonos--elements zonos--logo', this.class]), style: {
|
|
14
|
+
return (h(Host, { key: '7ddd949ab91ed0c61ee34ce6ee80da54b3ba3664', class: classes(['zonos--elements zonos--logo', this.class]), style: {
|
|
15
15
|
'--filter-color': filterColor,
|
|
16
16
|
'--font-family': zonosStoreFontFamily(),
|
|
17
17
|
'--width': this.width,
|
|
18
|
-
} }, h("img", { alt: "Zonos Logo", src: getAssetPath('./assets/ZonosLogo.png') })));
|
|
18
|
+
} }, h("img", { key: '1a8d98f7d836f253a21654c84ab0251969362e2f', alt: "Zonos Logo", src: getAssetPath('./assets/ZonosLogo.png') })));
|
|
19
19
|
}
|
|
20
20
|
static get is() { return "zonos-logo"; }
|
|
21
21
|
static get encapsulation() { return "shadow"; }
|
|
@@ -46,9 +46,9 @@ export class ZonosNotification {
|
|
|
46
46
|
}, 300);
|
|
47
47
|
}
|
|
48
48
|
render() {
|
|
49
|
-
return (h(Host, { class: classes(['zonos--elements zonos--notification', this.class]), style: {
|
|
49
|
+
return (h(Host, { key: '0846607651bce1e7acfc92cc775f86ce399dc789', class: classes(['zonos--elements zonos--notification', this.class]), style: {
|
|
50
50
|
'--font-family': zonosStoreFontFamily(),
|
|
51
|
-
} }, h("div", { class: "zonos--notification-items" }, this.notificationArray.map(notification => {
|
|
51
|
+
} }, h("div", { key: '1a4dd6b138b21b8a626d3df3a9c353590d51fd8c', class: "zonos--notification-items" }, this.notificationArray.map(notification => {
|
|
52
52
|
return (h("div", { "aria-hidden": "true", class: classes([
|
|
53
53
|
'zonos--notification-item',
|
|
54
54
|
notification.type,
|
package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.js
CHANGED
|
@@ -28,7 +28,7 @@ export class ZonosShippingRichRadio {
|
|
|
28
28
|
}
|
|
29
29
|
render() {
|
|
30
30
|
var _a;
|
|
31
|
-
return (h(Host, { class: "zonos--shipping-rich-radio zonos--elements", "data-theme": this.theme, style: Object.assign(Object.assign({}, this.getRadioItemStyleVariables()), { '--font-family': zonosStoreFontFamily() }) }, (_a = this.items) === null || _a === void 0 ? void 0 : _a.map(item => {
|
|
31
|
+
return (h(Host, { key: '0dc36a16b2f51816755010c46b416b8b1f4b4744', class: "zonos--shipping-rich-radio zonos--elements", "data-theme": this.theme, style: Object.assign(Object.assign({}, this.getRadioItemStyleVariables()), { '--font-family': zonosStoreFontFamily() }) }, (_a = this.items) === null || _a === void 0 ? void 0 : _a.map(item => {
|
|
32
32
|
var _a;
|
|
33
33
|
const selected = ((_a = this.selectedItem) === null || _a === void 0 ? void 0 : _a.value) === item.value;
|
|
34
34
|
return (h("div", { "aria-hidden": "true", class: classes([
|
|
@@ -8,9 +8,9 @@ export class VStack {
|
|
|
8
8
|
this.class = '';
|
|
9
9
|
}
|
|
10
10
|
render() {
|
|
11
|
-
return (h(Host, { style: {
|
|
11
|
+
return (h(Host, { key: 'd363ffeb2bbae49e7318b26ab56b4b8871844daf', style: {
|
|
12
12
|
'--font-family': zonosStoreFontFamily(),
|
|
13
|
-
} }, h("div", { class: classes(['vstack', this.class]), style: { 'grid-row-gap': `${this.spacing}px` } }, h("slot",
|
|
13
|
+
} }, h("div", { key: '5d9fa5ae9ffca787ca42f38e4ec75fedc24823f9', class: classes(['vstack', this.class]), style: { 'grid-row-gap': `${this.spacing}px` } }, h("slot", { key: 'e1d6fef3378b92c18c2c43ec8616e8c733a4290c' }))));
|
|
14
14
|
}
|
|
15
15
|
static get is() { return "zonos-v-stack"; }
|
|
16
16
|
static get encapsulation() { return "shadow"; }
|
|
@@ -10,7 +10,7 @@ export class ZonosComponent {
|
|
|
10
10
|
return format(this.first, this.middle, this.last);
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
|
-
return h("div",
|
|
13
|
+
return h("div", { key: '8862bb59447d2b9ecf98f19a641b86ded55e72b8' }, "Hello, World! I'm ", this.getText());
|
|
14
14
|
}
|
|
15
15
|
static get is() { return "zonos-component"; }
|
|
16
16
|
static get encapsulation() { return "shadow"; }
|
|
@@ -14,9 +14,9 @@ export class ZonosHelloDialogFooter {
|
|
|
14
14
|
var _a, _b;
|
|
15
15
|
const primaryColor = (_a = this.appearanceSettings) === null || _a === void 0 ? void 0 : _a.colorPrimary;
|
|
16
16
|
const footerTheme = primaryColor && isDarkColor(primaryColor) ? 'DARK' : 'LIGHT';
|
|
17
|
-
return (h(Host, { class: "zonos--elements" }, h("div", { class: "zonos--hello-dialog-footer", "data-theme": footerTheme, style: {
|
|
17
|
+
return (h(Host, { key: '2a67210015d9880acddd72578337243a7f2175e5', class: "zonos--elements" }, h("div", { key: 'b025a2fbbd5f6f2a5addce5d6bba1e6ce720b205', class: "zonos--hello-dialog-footer", "data-theme": footerTheme, style: {
|
|
18
18
|
'--primary-color': (_b = this.appearanceSettings) === null || _b === void 0 ? void 0 : _b.colorPrimary,
|
|
19
|
-
} }, h("a", { href: "https://zonos.com", target: "_blank" }, h("zonos-icon", { autoHeight: true, color: "gray-1200", content: ZonosIcon, size: 108 })), h("zonos-button", { icon: h("zonos-icon", { color: "gray-700", content: ChevronDownIcon }), iconRight: true, onClick: () => this.setShowCountrySelect(true), variant: "outline" }, localizationStore.selectedCountryCode))));
|
|
19
|
+
} }, h("a", { key: '7595e99d4849a19b0337181defa88d074a4407fc', href: "https://zonos.com", target: "_blank" }, h("zonos-icon", { key: '0fa6457c3343170ad144d1b4c02793b62a49efd6', autoHeight: true, color: "gray-1200", content: ZonosIcon, size: 108 })), h("zonos-button", { key: '5fcee8b5e43f239883caa2e3f6f155641674d37e', icon: h("zonos-icon", { color: "gray-700", content: ChevronDownIcon }), iconRight: true, onClick: () => this.setShowCountrySelect(true), variant: "outline" }, localizationStore.selectedCountryCode))));
|
|
20
20
|
}
|
|
21
21
|
static get is() { return "zonos-hello-dialog-footer"; }
|
|
22
22
|
static get encapsulation() { return "shadow"; }
|
|
@@ -90,14 +90,14 @@ export class ZonosHelloDialog {
|
|
|
90
90
|
translate('Know about duties and taxes before you buy. Shop with confidence!');
|
|
91
91
|
const currentPage = this.getCurrentPageEnum();
|
|
92
92
|
const filteredMessages = customMessages.filter(x => x.pageName === currentPage);
|
|
93
|
-
return (h(Host, { class: "zonos--elements" }, h("div", { "aria-hidden": "true", class: classes([
|
|
93
|
+
return (h(Host, { key: '09c2e005a701cf41134f1613c1bbf7214782b24c', class: "zonos--elements" }, h("div", { key: 'ad9675ef097ea4b21bbdb99b5f30d64c45c744e5', "aria-hidden": "true", class: classes([
|
|
94
94
|
'zonos--hello-dialog',
|
|
95
95
|
animateLeft && 'zonos--hello-dialog-animate-from-left',
|
|
96
96
|
animateFromBottom && 'zonos--hello-dialog-animate-from-bottom',
|
|
97
97
|
!!this.mobileLocationOverride &&
|
|
98
98
|
'zonos--hello-dialog-mobile-override',
|
|
99
99
|
this.isOpen && 'zonos--hello-dialog-open',
|
|
100
|
-
]), ref: el => el && (this.dialogRef = el) }, h("div", { class: "zonos--hello-dialog-content" }, h("zonos-button", { class: "zonos--close-button", icon: h("zonos-icon", { content: RemoveIcon }), noBackground: true, onClick: () => this.setIsOpen(false) }), this.showCountrySelect ? (h("div", null, h("zonos-country-select", { closeCountrySelect: () => this.setShowCountrySelect(false) }))) : (h("div", null, h("zonos-v-stack", { spacing: 24 }, h("zonos-country-flag", { class: "zonos--hello-country-flag", countryCode: selectedCountryCode }), h("zonos-v-stack", { class: "zonos--hello-dialog-header", spacing: 4 }, h("zonos-text", { type: "boldSubheader" }, welcomeMessage), h("zonos-text", { color: "gray-800" }, defaultMessage)), h("zonos-v-stack", { spacing: 8 }, this.restrictedItems.map(item => {
|
|
100
|
+
]), ref: el => el && (this.dialogRef = el) }, h("div", { key: '54f5da38c7ff31b3d848a83ca87b4514cf51de20', class: "zonos--hello-dialog-content" }, h("zonos-button", { key: '31b30feb4e314c23932aa433f6a3d9564f28a56d', class: "zonos--close-button", icon: h("zonos-icon", { content: RemoveIcon }), noBackground: true, onClick: () => this.setIsOpen(false) }), this.showCountrySelect ? (h("div", null, h("zonos-country-select", { closeCountrySelect: () => this.setShowCountrySelect(false) }))) : (h("div", null, h("zonos-v-stack", { spacing: 24 }, h("zonos-country-flag", { class: "zonos--hello-country-flag", countryCode: selectedCountryCode }), h("zonos-v-stack", { class: "zonos--hello-dialog-header", spacing: 4 }, h("zonos-text", { type: "boldSubheader" }, welcomeMessage), h("zonos-text", { color: "gray-800" }, defaultMessage)), h("zonos-v-stack", { spacing: 8 }, this.restrictedItems.map(item => {
|
|
101
101
|
var _a;
|
|
102
102
|
return item && (h("zonos-banner", { bannerTitle: item.name, intent: "error" }, (_a = item.itemRestrictions) === null || _a === void 0 ? void 0 : _a.map(x => (h("zonos-text", { color: "red-800" }, x === null || x === void 0 ? void 0 : x.note)))));
|
|
103
103
|
}), h("zonos-card", { spacing: "12px" }, h("zonos-v-stack", { spacing: 12 }, h("div", { class: "zonos--flex-message" }, h("zonos-icon", { content: BagIcon }), h("zonos-text", null, dutyDeMinimisMessage)), h("div", { class: "zonos--flex-message" }, h("zonos-icon", { content: MoneyIcon }), h("zonos-text", null, taxDeMinimisMessage)))), filteredMessages.map(x => (h("zonos-custom-message", { icon: MessageIcon, message: x.message })))))))), !this.showCountrySelect && (h("zonos-hello-dialog-footer", { appearanceSettings: this.appearanceSettings, setShowCountrySelect: value => this.setShowCountrySelect(value) })))));
|
|
@@ -153,7 +153,7 @@ export class ZonosController {
|
|
|
153
153
|
zonosStore.organizationName = organizationName;
|
|
154
154
|
}
|
|
155
155
|
render() {
|
|
156
|
-
return h(Host, { class: "zonos--elements" });
|
|
156
|
+
return h(Host, { key: 'a94fb7ff23c45a9813ce5da857cda14c8455ff79', class: "zonos--elements" });
|
|
157
157
|
}
|
|
158
158
|
static get is() { return "zonos-controller"; }
|
|
159
159
|
static get encapsulation() { return "shadow"; }
|
|
@@ -66,7 +66,7 @@ export class ZonosAddress {
|
|
|
66
66
|
}
|
|
67
67
|
render() {
|
|
68
68
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
69
|
-
return (h(Host, { class: "zonos--address zonos--elements" }, h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("div", { class: "zonos--address-component" })));
|
|
69
|
+
return (h(Host, { key: '47fa225123b7c944732b018fbb374bcb6da0f4ca', class: "zonos--address zonos--elements" }, h("zonos-text", { key: '4d0d9d4f9c09d6b2f29bc6a44164a0ef8db0acc9', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("div", { key: 'd279ba97287890e489230f9e449a344db76556f2', class: "zonos--address-component" })));
|
|
70
70
|
}
|
|
71
71
|
static get is() { return "zonos-address"; }
|
|
72
72
|
static get encapsulation() { return "scoped"; }
|
package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js
CHANGED
|
@@ -36,7 +36,7 @@ export class ZonosLinkAuthentication {
|
|
|
36
36
|
}
|
|
37
37
|
render() {
|
|
38
38
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
39
|
-
return (h(Host, { class: "zonos--link-authentication zonos--elements" }, h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("div", { class: "zonos--link-authentication-component" })));
|
|
39
|
+
return (h(Host, { key: '48ec92ca8a1500c3b8e85222c3df069c32074e72', class: "zonos--link-authentication zonos--elements" }, h("zonos-text", { key: '9060fab8ab9f88157ee6951af830e106e6ff9509', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("div", { key: 'dac7e96170d15faa8c1013fb298ae86e2ce99f0b', class: "zonos--link-authentication-component" })));
|
|
40
40
|
}
|
|
41
41
|
static get is() { return "zonos-link-authentication"; }
|
|
42
42
|
static get encapsulation() { return "scoped"; }
|
|
@@ -37,7 +37,7 @@ export class ZonosPayment {
|
|
|
37
37
|
}
|
|
38
38
|
render() {
|
|
39
39
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
40
|
-
return (h(Host, { class: "zonos--payment zonos--elements" }, this.titleText && (h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), h("div", { class: "zonos--payment-component" })));
|
|
40
|
+
return (h(Host, { key: '8a674f72e9235f9b6afcc8d8e0374639423e0bb3', class: "zonos--payment zonos--elements" }, this.titleText && (h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), h("div", { key: '94a0a064e6f6d8058bc11d114ecc4c3ab495e802', class: "zonos--payment-component" })));
|
|
41
41
|
}
|
|
42
42
|
static get is() { return "zonos-payment"; }
|
|
43
43
|
static get encapsulation() { return "scoped"; }
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { a as
|
|
1
|
+
import { a as commonjsGlobal } from './zonosStore.js';
|
|
2
2
|
|
|
3
|
-
var tinycolor =
|
|
3
|
+
var tinycolor$1 = {exports: {}};
|
|
4
|
+
|
|
5
|
+
(function (module, exports) {
|
|
4
6
|
// This file is autogenerated. It's used to publish CJS to npm.
|
|
5
7
|
(function (global, factory) {
|
|
6
8
|
module.exports = factory() ;
|
|
@@ -1186,7 +1188,9 @@ var tinycolor = createCommonjsModule(function (module, exports) {
|
|
|
1186
1188
|
return tinycolor;
|
|
1187
1189
|
|
|
1188
1190
|
}));
|
|
1189
|
-
});
|
|
1191
|
+
}(tinycolor$1));
|
|
1192
|
+
|
|
1193
|
+
const tinycolor = tinycolor$1.exports;
|
|
1190
1194
|
|
|
1191
1195
|
const isDarkColor = (color) => {
|
|
1192
1196
|
return tinycolor(color).isDark();
|
|
@@ -4,6 +4,7 @@ import { l as logError, b as localizationStore } from './localization.js';
|
|
|
4
4
|
import { d as defineCustomElement$1 } from './zonos-text2.js';
|
|
5
5
|
|
|
6
6
|
const zonosAddressCss = ".sc-zonos-address-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-address-h *.sc-zonos-address{font-family:var(--font-family, Inter), Inter}.sc-zonos-address-h img.sc-zonos-address{max-width:100%}.sc-zonos-address-h dl.sc-zonos-address,.sc-zonos-address-h dd.sc-zonos-address,.sc-zonos-address-h h1.sc-zonos-address,.sc-zonos-address-h h2.sc-zonos-address,.sc-zonos-address-h h3.sc-zonos-address,.sc-zonos-address-h h4.sc-zonos-address,.sc-zonos-address-h h5.sc-zonos-address,.sc-zonos-address-h h6.sc-zonos-address,.sc-zonos-address-h hr.sc-zonos-address,.sc-zonos-address-h figure.sc-zonos-address,.sc-zonos-address-h p.sc-zonos-address,.sc-zonos-address-h pre.sc-zonos-address{margin:0}.sc-zonos-address-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-address-h .zonos--title.sc-zonos-address{margin-bottom:var(--amino-space-16)}";
|
|
7
|
+
const ZonosAddressStyle0 = zonosAddressCss;
|
|
7
8
|
|
|
8
9
|
const ZonosAddress = /*@__PURE__*/ proxyCustomElement(class ZonosAddress extends HTMLElement {
|
|
9
10
|
constructor() {
|
|
@@ -67,13 +68,13 @@ const ZonosAddress = /*@__PURE__*/ proxyCustomElement(class ZonosAddress extends
|
|
|
67
68
|
}
|
|
68
69
|
render() {
|
|
69
70
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
70
|
-
return (h(Host, { class: "zonos--address zonos--elements" }, h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("div", { class: "zonos--address-component" })));
|
|
71
|
+
return (h(Host, { key: '47fa225123b7c944732b018fbb374bcb6da0f4ca', class: "zonos--address zonos--elements" }, h("zonos-text", { key: '4d0d9d4f9c09d6b2f29bc6a44164a0ef8db0acc9', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("div", { key: 'd279ba97287890e489230f9e449a344db76556f2', class: "zonos--address-component" })));
|
|
71
72
|
}
|
|
72
73
|
get el() { return this; }
|
|
73
74
|
static get watchers() { return {
|
|
74
75
|
"stripe": ["watchInitStripe"]
|
|
75
76
|
}; }
|
|
76
|
-
static get style() { return
|
|
77
|
+
static get style() { return ZonosAddressStyle0; }
|
|
77
78
|
}, [2, "zonos-address", {
|
|
78
79
|
"type": [1],
|
|
79
80
|
"titleText": [1, "title-text"],
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import {
|
|
2
|
+
import { b as zonosStoreFontFamily } from './zonosStore.js';
|
|
3
3
|
import { c as classes } from './classes.js';
|
|
4
4
|
import { d as defineCustomElement$1 } from './zonos-text2.js';
|
|
5
5
|
|
|
6
6
|
const zonosBadgeCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--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 .zonos--badge-content{display:-ms-flexbox;display:flex;gap:var(--amino-space-8);font-size:var(--amino-font-size-s);padding:4px 8px;text-align:center;border-radius:var(--amino-radius-6);background-color:var(--amino-gray-100);color:var(--amino-gray-800);-ms-flex-align:center;align-items:center}:host p{font-weight:600;line-height:16px}:host .icon-right svg{-ms-flex-order:2;order:2}:host .small{padding:2px 8px}:host .rounded{border-radius:20px}:host .bold{background-color:var(--amino-gray-600);color:var(--amino-gray-100)}:host .blue{background-color:var(--amino-blue-100);color:var(--amino-blue-800)}:host .blue.bold{background-color:var(--amino-blue-600);color:var(--amino-blue-100)}:host .green{background-color:var(--amino-green-100);color:var(--amino-green-800)}:host .green.bold{background-color:var(--amino-green-600);color:var(--amino-green-100)}:host .red{background-color:var(--amino-red-100);color:var(--amino-red-800)}:host .red.bold{background-color:var(--amino-red-600);color:var(--amino-red-100)}:host .orange{background-color:var(--amino-orange-100);color:var(--amino-orange-800)}:host .orange.bold{background-color:var(--amino-orange-600);color:var(--amino-orange-100)}:host .purple{background-color:var(--amino-purple-100);color:var(--amino-purple-800)}:host .purple.bold{background-color:var(--amino-purple-600);color:var(--amino-purple-100)}:host .cyan{background-color:var(--amino-cyan-100);color:var(--amino-cyan-800)}:host .cyan.bold{background-color:var(--amino-cyan-600);color:var(--amino-cyan-100)}";
|
|
7
|
+
const ZonosBadgeStyle0 = zonosBadgeCss;
|
|
7
8
|
|
|
8
9
|
const ZonosBadge = /*@__PURE__*/ proxyCustomElement(class ZonosBadge extends HTMLElement {
|
|
9
10
|
constructor() {
|
|
@@ -19,18 +20,18 @@ const ZonosBadge = /*@__PURE__*/ proxyCustomElement(class ZonosBadge extends HTM
|
|
|
19
20
|
this.class = '';
|
|
20
21
|
}
|
|
21
22
|
render() {
|
|
22
|
-
return (h(Host, { class: classes(['zonos--elements zonos--badge', this.class]), style: {
|
|
23
|
+
return (h(Host, { key: '2d111e91f403ef5c03f742f5dabe9491623be91d', class: classes(['zonos--elements zonos--badge', this.class]), style: {
|
|
23
24
|
'--font-family': zonosStoreFontFamily(),
|
|
24
|
-
} }, h("div", { class: classes([
|
|
25
|
+
} }, h("div", { key: 'e6debe091b732b857f180cee19bec4be435ea524', class: classes([
|
|
25
26
|
'zonos--badge-content',
|
|
26
27
|
this.color,
|
|
27
28
|
this.rounded && 'rounded',
|
|
28
29
|
this.iconRight && 'icon-right',
|
|
29
30
|
this.size,
|
|
30
31
|
this.bold && 'bold',
|
|
31
|
-
]) }, this.icon, h("zonos-text",
|
|
32
|
+
]) }, this.icon, h("zonos-text", { key: 'e92c97d77fa5ce279059953f7d7fbc5a0030aa5d' }, h("slot", { key: 'c93852c3225ba57dd26c26300254f348e349f9ad' })))));
|
|
32
33
|
}
|
|
33
|
-
static get style() { return
|
|
34
|
+
static get style() { return ZonosBadgeStyle0; }
|
|
34
35
|
}, [1, "zonos-badge", {
|
|
35
36
|
"bold": [4],
|
|
36
37
|
"color": [1],
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import {
|
|
2
|
+
import { b as zonosStoreFontFamily } from './zonosStore.js';
|
|
3
3
|
import { c as classes } from './classes.js';
|
|
4
4
|
import { d as defineCustomElement$1 } from './zonos-text2.js';
|
|
5
5
|
|
|
6
6
|
const zonosBannerCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--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{border-radius:var(--amino-radius-10);padding:var(--amino-space-16);background:var(--amino-gray-100)}:host .zonos--container{display:grid;-ms-flex-align:center;align-items:center;grid-template-areas:\"icon header\" \". content\";grid-template-columns:32px auto 0}:host .zonos--icon-wrapper{grid-area:icon;display:-ms-flexbox;display:flex;justify-self:start}:host .zonos--header-wrapper{margin-top:var(--amino-space-0);grid-area:header}:host .zonos--content-wrapper{grid-area:content;margin-top:var(--amino-space-4)}:host(.info){background-color:var(--amino-blue-100);border:1px solid var(--amino-blue-200)}:host(.success){background-color:var(--amino-green-100);border:1px solid var(--amino-green-200)}:host(.error){background-color:var(--amino-red-100);border:1px solid var(--amino-red-200)}:host(.warning){background-color:var(--amino-orange-100);border:1px solid var(--amino-orange-200)}";
|
|
7
|
+
const ZonosBannerStyle0 = zonosBannerCss;
|
|
7
8
|
|
|
8
9
|
const ZonosBanner = /*@__PURE__*/ proxyCustomElement(class ZonosBanner extends HTMLElement {
|
|
9
10
|
constructor() {
|
|
@@ -71,7 +72,7 @@ const ZonosBanner = /*@__PURE__*/ proxyCustomElement(class ZonosBanner extends H
|
|
|
71
72
|
})));
|
|
72
73
|
}
|
|
73
74
|
}
|
|
74
|
-
static get style() { return
|
|
75
|
+
static get style() { return ZonosBannerStyle0; }
|
|
75
76
|
}, [1, "zonos-banner", {
|
|
76
77
|
"bannerTitle": [1, "banner-title"],
|
|
77
78
|
"intent": [1],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import { z as zonosStore,
|
|
2
|
+
import { z as zonosStore, b as zonosStoreFontFamily } from './zonosStore.js';
|
|
3
3
|
import { c as classes } from './classes.js';
|
|
4
4
|
import { g as getBorderRadius } from './getBorderRadius.js';
|
|
5
5
|
import { i as isColorVariable } from './isColorVariable.js';
|
|
@@ -21,6 +21,7 @@ const getButtonTheme = (overrideBackground) => {
|
|
|
21
21
|
};
|
|
22
22
|
|
|
23
23
|
const zonosButtonCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--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 .zonos--spinner-wrapper{position:absolute;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;background-color:var(--amino-surface-color);-ms-flex-pack:center;justify-content:center;border-radius:var(--amino-radius-10);gap:var(--amino-space-8)}:host button{width:100%;position:relative;font-size:14px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background-color:var(--amino-surface-color);border:none;outline:1px solid var(--amino-surface-color);border-radius:var(--border-radius, var(--amino-radius-10));-webkit-transition:var(--amino-transition);transition:var(--amino-transition);font-weight:500;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-family:var(--font-family, Inter), Inter;letter-spacing:normal;cursor:pointer;white-space:nowrap;padding:var(--amino-space-8) var(--amino-space-24);color:var(--color, var(--amino-gray-1200));}:host button.sm.no-background,:host button.md.no-background,:host button.lg.no-background{background:none;outline:none}:host button.sm.no-padding-left,:host button.md.no-padding-left,:host button.lg.no-padding-left{padding-left:0}:host button.sm.no-padding-right,:host button.md.no-padding-right,:host button.lg.no-padding-right{padding-right:0}:host button[disabled]{cursor:not-allowed;background-color:var(--amino-gray-200)}:host button[disabled] .zonos--spinner-wrapper{background-color:var(--amino-gray-200)}:host button:active{-webkit-transform:scale(0.99);transform:scale(0.99)}:host button.sm{height:var(--amino-size-sm);line-height:var(--amino-size-sm);padding:var(--amino-space-4) var(--amino-space-8)}:host button.sm:not(.has-content).has-icon{padding:0 var(--amino-space-4)}:host button.md{height:var(--amino-size-md);line-height:var(--amino-size-md);padding:var(--amino-space-8) var(--amino-space-16)}:host button.md:not(.has-content).has-icon{padding:0 var(--amino-space-8)}:host button.lg{height:var(--amino-size-lg);line-height:var(--amino-size-lg);padding:var(--amino-space-12) var(--amino-space-24)}:host button.lg:not(.has-content).has-icon{padding:0 var(--amino-space-16)}:host button:not(.only-icon).has-icon{gap:var(--amino-space-8)}:host button.override-background{background-color:var(--background-color, var(--amino-gray-0));color:var(--color, var(--amino-gray-1200));outline:1px solid var(--background-color, var(--amino-gray-0))}:host button.override-background:disabled{opacity:0.8}:host button.override-background:not(:disabled):hover{opacity:0.9}:host button:not(.override-background){}:host button:not(.override-background).primary{background:var(--amino-blue-600);outline:1px solid var(--amino-blue-600);color:var(--amino-gray-0)}:host button:not(.override-background).primary:not([disabled]):hover{background-image:var(--amino-button-primary-hover)}:host button:not(.override-background).primary:not([disabled]):active{background:var(--amino-blue-700)}:host button:not(.override-background).primary:not([disabled]):focus{-webkit-box-shadow:var(--amino-focus-button);box-shadow:var(--amino-focus-button)}:host button:not(.override-background).primary[disabled]{background:var(--amino-blue-400)}:host button:not(.override-background).primary[disabled] .zonos--spinner-wrapper{background-color:var(--amino-blue-400)}:host button:not(.override-background).primary .zonos--spinner-wrapper{background-color:var(--amino-blue-600)}:host button:not(.override-background).success{background:var(--amino-green-600);outline:1px solid var(--amino-green-600);color:var(--amino-gray-0)}:host button:not(.override-background).success:not([disabled]):hover{background-image:var(--amino-button-success-hover)}:host button:not(.override-background).success:not([disabled]):active{background:var(--amino-green-700)}:host button:not(.override-background).success:not([disabled]):focus{-webkit-box-shadow:var(--amino-focus-button);box-shadow:var(--amino-focus-button)}:host button:not(.override-background).success[disabled]{background:var(--amino-green-400)}:host button:not(.override-background).success[disabled] .zonos--spinner-wrapper{background-color:var(--amino-green-400)}:host button:not(.override-background).danger{background:var(--amino-red-600);outline:1px solid var(--amino-red-600);color:var(--amino-gray-0)}:host button:not(.override-background).danger:not([disabled]):hover{background-image:var(--amino-button-danger-hover)}:host button:not(.override-background).danger:not([disabled]):active{background:var(--amino-red-700)}:host button:not(.override-background).danger:not([disabled]):focus{-webkit-box-shadow:var(--amino-focus-button);box-shadow:var(--amino-focus-button)}:host button:not(.override-background).danger[disabled]{background:var(--amino-red-400)}:host button:not(.override-background).danger[disabled] .zonos--spinner-wrapper{background-color:var(--amino-red-400)}:host button:not(.override-background).warning{background:var(--amino-orange-600);outline:1px solid var(--amino-orange-600);color:var(--amino-gray-0)}:host button:not(.override-background).warning:not([disabled]):hover{background-image:var(--amino-button-warning-hover)}:host button:not(.override-background).warning:not([disabled]):active{background:var(--amino-orange-700)}:host button:not(.override-background).warning:not([disabled]):focus{-webkit-box-shadow:var(--amino-focus-button);box-shadow:var(--amino-focus-button)}:host button:not(.override-background).warning[disabled]{background:var(--amino-orange-400)}:host button:not(.override-background).warning[disabled] .zonos--spinner-wrapper{background-color:var(--amino-orange-400)}:host button:not(.override-background).subtle{background:transparent;color:var(--color)}:host button:not(.override-background).subtle:not([disabled]):hover{background:var(--amino-gray-100)}:host button:not(.override-background).subtle:not([disabled]):active{background:var(--amino-gray-200)}:host button:not(.override-background).subtle:focus{-webkit-box-shadow:var(--amino-button-focus-ring);box-shadow:var(--amino-button-focus-ring)}:host button:not(.override-background).subtle[disabled] .content{opacity:0.6}:host button:not(.override-background).subtle[disabled] .zonos--spinner-wrapper{background-color:var(--amino-gray-0)}:host button:not(.override-background).outline{background:transparent;outline:1px solid var(--amino-gray-700)}:host button:not(.override-background).outline:not([disabled]):hover{background-color:var(--amino-gray-100)}:host button:not(.override-background).outline:not([disabled]):active{background:var(--amino-gray-200)}";
|
|
24
|
+
const ZonosButtonStyle0 = zonosButtonCss;
|
|
24
25
|
|
|
25
26
|
const ZonosButton = /*@__PURE__*/ proxyCustomElement(class ZonosButton extends HTMLElement {
|
|
26
27
|
constructor() {
|
|
@@ -77,12 +78,12 @@ const ZonosButton = /*@__PURE__*/ proxyCustomElement(class ZonosButton extends H
|
|
|
77
78
|
? getButtonTheme(overrideBackground)
|
|
78
79
|
: undefined;
|
|
79
80
|
const borderStyle = getBorderRadius(this.borderStyle);
|
|
80
|
-
return (h(Host, { class: classes(['zonos--elements', this.class]), "data-theme": this.theme || buttonTheme, disabled: disabled, style: {
|
|
81
|
+
return (h(Host, { key: 'af41b1035e5ea776d47580647a65997bb41730e3', class: classes(['zonos--elements', this.class]), "data-theme": this.theme || buttonTheme, disabled: disabled, style: {
|
|
81
82
|
'--background-color': overrideBackground,
|
|
82
83
|
'--border-radius': borderStyle,
|
|
83
84
|
'--color': color,
|
|
84
85
|
'--font-family': zonosStoreFontFamily(),
|
|
85
|
-
} }, h("button", { class: classes([
|
|
86
|
+
} }, h("button", { key: 'af3fdc9aa0440cf5a7e49c4c0c76826d7a700d32', class: classes([
|
|
86
87
|
this.hasIcon && 'has-icon',
|
|
87
88
|
this.hasContent && 'has-content',
|
|
88
89
|
this.noBackground && 'no-background',
|
|
@@ -95,12 +96,12 @@ const ZonosButton = /*@__PURE__*/ proxyCustomElement(class ZonosButton extends H
|
|
|
95
96
|
this.backgroundColor &&
|
|
96
97
|
this.variant === 'standard' &&
|
|
97
98
|
'override-background',
|
|
98
|
-
]), disabled: disabled }, this.loading && (h("div", { class: "zonos--spinner-wrapper" }, h("zonos-spinner", { size: 16 }))), !this.loading && !this.iconRight && this.icon, h("slot", { onSlotchange: this.handleSlotChange }), !this.loading && this.iconRight && this.icon)));
|
|
99
|
+
]), disabled: disabled }, this.loading && (h("div", { class: "zonos--spinner-wrapper" }, h("zonos-spinner", { size: 16 }))), !this.loading && !this.iconRight && this.icon, h("slot", { key: '32b6a079ba98ab9d62b5df34ddc15e4ac7a87a8e', onSlotchange: this.handleSlotChange }), !this.loading && this.iconRight && this.icon)));
|
|
99
100
|
}
|
|
100
101
|
static get watchers() { return {
|
|
101
102
|
"icon": ["iconChangeHandler"]
|
|
102
103
|
}; }
|
|
103
|
-
static get style() { return
|
|
104
|
+
static get style() { return ZonosButtonStyle0; }
|
|
104
105
|
}, [1, "zonos-button", {
|
|
105
106
|
"class": [1],
|
|
106
107
|
"color": [1],
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import {
|
|
2
|
+
import { b as zonosStoreFontFamily } from './zonosStore.js';
|
|
3
3
|
import { c as classes } from './classes.js';
|
|
4
4
|
import { d as defineCustomElement$1 } from './zonos-text2.js';
|
|
5
5
|
|
|
6
6
|
const zonosCardCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--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 .styled-card{border:var(--amino-border);border-radius:var(--amino-radius-6);padding:var(--spacing, var(--amino-space-24));text-align:left}:host .styled-card hr{margin-left:calc(var(--spacing, var(--amino-space-24)) * -1);margin-right:calc(var(--spacing, var(--amino-space-24)) * -1)}:host .styled-card .card-header{margin:calc(var(--spacing, var(--amino-space-24)) * -1);padding:var(--spacing, var(--amino-space-24));display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-bottom:var(--spacing, var(--amino-space-24));border-bottom:var(--amino-border);height:65px;line-height:65px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host .styled-card .card-header h5{margin-bottom:0;-ms-flex:1;flex:1}:host .styled-card .card-footer{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:calc(var(--spacing, var(--amino-space-24)) * -1);padding:var(--spacing, var(--amino-space-24));border-top:var(--amino-border);background:var(--amino-surface-color-secondary);margin-top:var(--spacing, var(--amino-space-24));border-bottom-left-radius:var(--amino-radius-8);border-bottom-right-radius:var(--amino-radius-8);height:var(--footerHeight)}";
|
|
7
|
+
const ZonosCardStyle0 = zonosCardCss;
|
|
7
8
|
|
|
8
9
|
const ZonosCard = /*@__PURE__*/ proxyCustomElement(class ZonosCard extends HTMLElement {
|
|
9
10
|
constructor() {
|
|
@@ -19,14 +20,14 @@ const ZonosCard = /*@__PURE__*/ proxyCustomElement(class ZonosCard extends HTMLE
|
|
|
19
20
|
this.spacing = '24px';
|
|
20
21
|
}
|
|
21
22
|
render() {
|
|
22
|
-
return (h(Host, { style: {
|
|
23
|
+
return (h(Host, { key: 'f2f7929742862b9806ddc568155e7cddf954252e', style: {
|
|
23
24
|
'--font-family': zonosStoreFontFamily(),
|
|
24
|
-
} }, h("div", { class: classes(['styled-card', this.class]), style: { padding: this.spacing } }, this.label && (h("header", { class: "card-header", style: { padding: this.spacing } }, h("zonos-text", { type: "subheader" }, this.label), h("h-stack", { spacing: 8 }, this.actions))), h("slot",
|
|
25
|
+
} }, h("div", { key: 'ce3568d7ded3cfb9acb0f4ff3d4184a17b88f33b', class: classes(['styled-card', this.class]), style: { padding: this.spacing } }, this.label && (h("header", { class: "card-header", style: { padding: this.spacing } }, h("zonos-text", { type: "subheader" }, this.label), h("h-stack", { spacing: 8 }, this.actions))), h("slot", { key: '3cc9f896df1899da73eab80dfbb3aac3a0046956' }), (this.footerActions || this.footerContent) && (h("footer", { class: "card-footer", style: {
|
|
25
26
|
height: this.footerHeight ? `${this.footerHeight}px` : 'auto',
|
|
26
27
|
padding: this.spacing,
|
|
27
28
|
} }, h("div", null, this.footerContent), h("h-stack", { spacing: 8 }, this.footerActions))))));
|
|
28
29
|
}
|
|
29
|
-
static get style() { return
|
|
30
|
+
static get style() { return ZonosCardStyle0; }
|
|
30
31
|
}, [1, "zonos-card", {
|
|
31
32
|
"actions": [16],
|
|
32
33
|
"class": [1],
|
|
@@ -4,6 +4,7 @@ import { f as formatCurrency } from './formatCurrency.js';
|
|
|
4
4
|
import { d as defineCustomElement$1 } from './zonos-text2.js';
|
|
5
5
|
|
|
6
6
|
const zonosCartItemsCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--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--cart-table{width:100%;border:none;border-collapse:collapse;overflow:auto;font-size:var(--amino-font-size-base)}:host .zonos--cart-table .zonos--column{padding:var(--amino-space-8);font-size:var(--amino-font-size-base)}:host .zonos--cart-table .zonos--column:last-child{text-align:right}:host .zonos--cart-table .zonos--column:first-child{width:60px}:host img{min-width:40px}";
|
|
7
|
+
const ZonosCartItemsStyle0 = zonosCartItemsCss;
|
|
7
8
|
|
|
8
9
|
const ZonosCartItems = /*@__PURE__*/ proxyCustomElement(class ZonosCartItems extends HTMLElement {
|
|
9
10
|
constructor() {
|
|
@@ -16,7 +17,7 @@ const ZonosCartItems = /*@__PURE__*/ proxyCustomElement(class ZonosCartItems ext
|
|
|
16
17
|
var _a;
|
|
17
18
|
const emptyItemImg = getAssetPath('./assets/empty-item.jpeg');
|
|
18
19
|
const rate = ((_a = cartStore.exchangeRate) === null || _a === void 0 ? void 0 : _a.rate) || 1;
|
|
19
|
-
return (h(Host, { class: "zonos--cart-items zonos--elements" }, h("table", { class: "zonos--cart-table" }, h("tbody",
|
|
20
|
+
return (h(Host, { key: '945bd402bb5f8a73bc02dc8f30d187c43b78050e', class: "zonos--cart-items zonos--elements" }, h("table", { key: '600b545e20eb81d7e744c2bf66a9cec2eb68c8e7', class: "zonos--cart-table" }, h("tbody", { key: 'cd12a4372e97b8018af37433e6b2daba5403e621' }, cartStore.items.map(item => {
|
|
20
21
|
const itemImg = item.imageUrl;
|
|
21
22
|
return (h("tr", { class: "zonos--cart-item" }, h("td", { class: "zonos--column zonos--cart-item-image" }, itemImg && !this.errorImages.includes(itemImg) ? (h("img", { alt: item.name, onError: () => {
|
|
22
23
|
this.errorImages = [...this.errorImages, itemImg];
|
|
@@ -29,7 +30,7 @@ const ZonosCartItems = /*@__PURE__*/ proxyCustomElement(class ZonosCartItems ext
|
|
|
29
30
|
})))));
|
|
30
31
|
}
|
|
31
32
|
static get assetsDirs() { return ["assets"]; }
|
|
32
|
-
static get style() { return
|
|
33
|
+
static get style() { return ZonosCartItemsStyle0; }
|
|
33
34
|
}, [1, "zonos-cart-items", {
|
|
34
35
|
"errorImages": [32]
|
|
35
36
|
}]);
|
|
@@ -13,6 +13,7 @@ const InfoIcon = `<svg viewBox="0 0 17 16" fill="none" xmlns="https://www.w3.org
|
|
|
13
13
|
`;
|
|
14
14
|
|
|
15
15
|
const zonosCartSubtotalCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--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--cart-table{width:100%;border:none;border-collapse:collapse;overflow:auto;font-size:var(--amino-font-size-base)}:host .zonos--cart-table .zonos--column{padding:var(--amino-space-20) var(--amino-space-8);vertical-align:top}:host .zonos--cart-table .zonos--column:last-child{text-align:right}:host .zonos--cart-table .zonos--column:first-child{width:60px}:host .zonos--title-with-icon{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:var(--amino-space-8)}:host .zonos--cart-subtotal-title,:host .zonos--cart-subtotal-price{border-bottom:1px solid var(--amino-gray-200)}:host .zonos--cart-duty-tax-price{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:end;align-items:flex-end;gap:5px}:host .zonos--cart-subtotal-price{text-align:right}";
|
|
16
|
+
const ZonosCartSubtotalStyle0 = zonosCartSubtotalCss;
|
|
16
17
|
|
|
17
18
|
const ZonosCartSubtotal = /*@__PURE__*/ proxyCustomElement(class ZonosCartSubtotal extends HTMLElement {
|
|
18
19
|
constructor() {
|
|
@@ -52,7 +53,7 @@ const ZonosCartSubtotal = /*@__PURE__*/ proxyCustomElement(class ZonosCartSubtot
|
|
|
52
53
|
})))))));
|
|
53
54
|
}
|
|
54
55
|
static get assetsDirs() { return ["assets"]; }
|
|
55
|
-
static get style() { return
|
|
56
|
+
static get style() { return ZonosCartSubtotalStyle0; }
|
|
56
57
|
}, [1, "zonos-cart-subtotal"]);
|
|
57
58
|
function defineCustomElement() {
|
|
58
59
|
if (typeof customElements === "undefined") {
|