@zonos/elements 1.3.31 → 1.3.32
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-62ff7ee7.js → cart-d07e8ea1.js} +460 -41
- package/dist/cjs/index.cjs.js +4 -4
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{submitGtag-a5f8eaab.js → submitGtag-f1aeac3e.js} +4 -1
- package/dist/cjs/zonos-address_8.cjs.entry.js +11 -11
- package/dist/cjs/zonos-badge_2.cjs.entry.js +6 -6
- package/dist/cjs/zonos-button_3.cjs.entry.js +6 -3
- package/dist/cjs/zonos-card.cjs.entry.js +47 -0
- package/dist/cjs/zonos-cart-items_12.cjs.entry.js +53 -36
- package/dist/cjs/zonos-checkout.cjs.entry.js +18 -10
- 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_3.cjs.entry.js +7 -7
- 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-input.cjs.entry.js +4 -4
- package/dist/cjs/{zonos-card_2.cjs.entry.js → zonos-language-select_2.cjs.entry.js} +23 -29
- 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_2.cjs.entry.js +123 -0
- package/dist/cjs/zonos-v-stack.cjs.entry.js +25 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.css +15 -4
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +16 -15
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.js +2 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/assets/CheckmarkLineIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/assets/RemoveLineIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.css +8 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +20 -4
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.css +9 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +17 -6
- package/dist/collection/components/checkout/zonos-checkout/zonos-review/zonos-review.js +3 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +1 -1
- package/dist/collection/components/common/zonos-badge/zonos-badge.css +10 -0
- package/dist/collection/components/common/zonos-badge/zonos-badge.js +6 -6
- package/dist/collection/components/common/zonos-button/zonos-button.js +28 -4
- package/dist/collection/components/common/zonos-card/zonos-card.css +3 -1
- package/dist/collection/components/common/zonos-card/zonos-card.js +61 -3
- package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +3 -3
- package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +3 -3
- package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +2 -2
- package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +3 -3
- package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +2 -2
- 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-input/zonos-input.js +4 -4
- package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -2
- package/dist/collection/components/common/zonos-link/zonos-link.js +1 -1
- package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -2
- package/dist/collection/components/common/zonos-notification/zonos-notification.css +1 -1
- package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.js +3 -3
- package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
- package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
- 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 +4 -4
- package/dist/collection/components/main/zonos-controller.js +1 -1
- package/dist/collection/components/store/checkout/stripe.js +0 -1
- package/dist/collection/components/store/translationStore/strings.arabic.js +23 -2
- package/dist/collection/components/store/translationStore/strings.base.js +23 -2
- package/dist/collection/components/store/translationStore/strings.chinese.js +23 -2
- package/dist/collection/components/store/translationStore/strings.danish.js +23 -2
- package/dist/collection/components/store/translationStore/strings.dutch.js +23 -2
- package/dist/collection/components/store/translationStore/strings.french.js +23 -2
- package/dist/collection/components/store/translationStore/strings.german.js +23 -2
- package/dist/collection/components/store/translationStore/strings.hebrew.js +23 -2
- package/dist/collection/components/store/translationStore/strings.indonesian.js +23 -2
- package/dist/collection/components/store/translationStore/strings.italian.js +23 -2
- package/dist/collection/components/store/translationStore/strings.japanese.js +23 -2
- package/dist/collection/components/store/translationStore/strings.korean.js +23 -2
- package/dist/collection/components/store/translationStore/strings.norwegian.js +23 -2
- package/dist/collection/components/store/translationStore/strings.polish.js +23 -2
- package/dist/collection/components/store/translationStore/strings.portuguese.js +23 -2
- package/dist/collection/components/store/translationStore/strings.russian.js +23 -2
- package/dist/collection/components/store/translationStore/strings.spanish.js +23 -2
- package/dist/collection/components/store/translationStore/strings.swedish.js +23 -2
- package/dist/collection/components/store/translationStore/strings.turkish.js +23 -2
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +23 -2
- 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/collection/components/utils/checkout/getIsTestMode.js +1 -0
- package/dist/esm/{cart-b96aaa4f.js → cart-a90aa9ae.js} +460 -41
- package/dist/esm/index.js +4 -4
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{submitGtag-6e271d76.js → submitGtag-849e2bc9.js} +4 -2
- package/dist/esm/zonos-address_8.entry.js +11 -11
- package/dist/esm/zonos-badge_2.entry.js +6 -6
- package/dist/esm/zonos-button_3.entry.js +6 -3
- package/dist/esm/zonos-card.entry.js +43 -0
- package/dist/esm/zonos-cart-items_12.entry.js +53 -36
- package/dist/esm/zonos-checkout.entry.js +18 -10
- 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_3.entry.js +7 -7
- 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-input.entry.js +4 -4
- package/dist/esm/zonos-language-select_2.entry.js +56 -0
- package/dist/esm/zonos-link.entry.js +1 -1
- package/dist/esm/zonos-logo.entry.js +2 -2
- package/dist/esm/zonos-notification_2.entry.js +118 -0
- package/dist/esm/zonos-v-stack.entry.js +21 -0
- package/dist/esm-es5/cart-a90aa9ae.js +1 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/submitGtag-849e2bc9.js +1 -0
- package/dist/esm-es5/zonos-address_8.entry.js +1 -1
- package/dist/esm-es5/zonos-badge_2.entry.js +1 -1
- package/dist/esm-es5/zonos-button_3.entry.js +1 -1
- package/dist/esm-es5/zonos-card.entry.js +1 -0
- package/dist/esm-es5/zonos-cart-items_12.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_3.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 -0
- 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_2.entry.js +1 -0
- package/dist/esm-es5/zonos-v-stack.entry.js +1 -0
- package/dist/scripts/index.d.ts +34 -6
- 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-checkout-finish/zonos-checkout-finish.d.ts +1 -0
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.d.ts +1 -0
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +1 -0
- package/dist/types/components/common/zonos-badge/zonos-badge.d.ts +2 -2
- package/dist/types/components/common/zonos-button/zonos-button.d.ts +6 -1
- package/dist/types/components/common/zonos-card/zonos-card.d.ts +10 -0
- package/dist/types/components/store/translationStore/strings.arabic.d.ts +22 -1
- package/dist/types/components/store/translationStore/strings.base.d.ts +22 -1
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +22 -1
- package/dist/types/components/store/translationStore/strings.danish.d.ts +22 -1
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +22 -1
- package/dist/types/components/store/translationStore/strings.french.d.ts +22 -1
- package/dist/types/components/store/translationStore/strings.german.d.ts +22 -1
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +22 -1
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +22 -1
- package/dist/types/components/store/translationStore/strings.italian.d.ts +22 -1
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +22 -1
- package/dist/types/components/store/translationStore/strings.korean.d.ts +22 -1
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +22 -1
- package/dist/types/components/store/translationStore/strings.polish.d.ts +22 -1
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +22 -1
- package/dist/types/components/store/translationStore/strings.russian.d.ts +22 -1
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +22 -1
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +22 -1
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +22 -1
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +22 -1
- package/dist/types/components/store/translationStore.d.ts +1 -1
- package/dist/types/components/utils/checkout/getIsTestMode.d.ts +1 -0
- package/dist/types/components.d.ts +36 -6
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/p-057380ad.system.js +1 -0
- package/dist/zonos-elements/{p-b208fec6.system.entry.js → p-16ab16f9.system.entry.js} +1 -1
- package/dist/zonos-elements/p-1eab7a86.entry.js +1 -0
- package/dist/zonos-elements/p-21b61106.system.entry.js +1 -0
- package/dist/zonos-elements/p-22882fd6.entry.js +1 -0
- package/dist/zonos-elements/p-2a45c837.system.entry.js +1 -0
- package/dist/zonos-elements/p-2d6d0d57.js +1 -0
- package/dist/zonos-elements/{p-7664dec5.entry.js → p-344ce057.entry.js} +1 -1
- package/dist/zonos-elements/{p-c4e38b85.entry.js → p-3523c3b4.entry.js} +1 -1
- package/dist/zonos-elements/{p-2cb880e7.system.entry.js → p-38a90e86.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-9b0aa65c.system.js → p-3ba86711.system.js} +1 -1
- package/dist/zonos-elements/p-41ef293d.js +1 -0
- package/dist/zonos-elements/{p-6cb9812b.entry.js → p-63a27875.entry.js} +1 -1
- package/dist/zonos-elements/{p-9cdfb51b.system.entry.js → p-672e80e5.system.entry.js} +1 -1
- package/dist/zonos-elements/p-6c3390b7.entry.js +1 -0
- package/dist/zonos-elements/{p-666d1605.system.entry.js → p-6de51a79.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-725c2d57.entry.js → p-6f04e132.entry.js} +1 -1
- package/dist/zonos-elements/{p-10b9a681.system.entry.js → p-717faabd.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-a90393e0.system.entry.js → p-71882ac9.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-78a839b8.entry.js → p-7a6dcfa2.entry.js} +1 -1
- package/dist/zonos-elements/p-85503e70.system.entry.js +1 -0
- package/dist/zonos-elements/{p-9c32b924.entry.js → p-8aadefbb.entry.js} +1 -1
- package/dist/zonos-elements/p-8b771620.entry.js +1 -0
- package/dist/zonos-elements/{p-692816a7.entry.js → p-93e493ce.entry.js} +1 -1
- package/dist/zonos-elements/{p-dda78e8e.system.entry.js → p-966ab4e7.system.entry.js} +1 -1
- package/dist/zonos-elements/p-9d599745.entry.js +1 -0
- package/dist/zonos-elements/{p-3dc59d89.system.entry.js → p-9de374a7.system.entry.js} +1 -1
- package/dist/zonos-elements/p-af0d3ca0.system.entry.js +1 -0
- package/dist/zonos-elements/p-b6c515e1.system.entry.js +1 -0
- package/dist/zonos-elements/{p-13454044.system.entry.js → p-b903af96.system.entry.js} +1 -1
- package/dist/zonos-elements/p-c21802e9.entry.js +1 -0
- package/dist/zonos-elements/{p-d4724ac8.entry.js → p-c3619b3d.entry.js} +1 -1
- package/dist/zonos-elements/{p-89664e49.system.js → p-ca8fb99c.system.js} +1 -1
- package/dist/zonos-elements/p-cc965417.entry.js +1 -0
- package/dist/zonos-elements/{p-941a01be.system.entry.js → p-d2992457.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-2701e08c.entry.js → p-d8c1eb99.entry.js} +1 -1
- package/dist/zonos-elements/p-da2e5289.system.entry.js +1 -0
- package/dist/zonos-elements/{p-d8027710.system.entry.js → p-da787898.system.entry.js} +1 -1
- package/dist/zonos-elements/p-e0bf9666.system.js +1 -1
- package/dist/zonos-elements/{p-4a0cf47b.entry.js → p-e344cb12.entry.js} +1 -1
- package/dist/zonos-elements/p-e3c014ae.entry.js +1 -0
- package/dist/zonos-elements/p-ed333de6.system.entry.js +1 -0
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/zonos-notification.cjs.entry.js +0 -72
- package/dist/cjs/zonos-payment.cjs.entry.js +0 -58
- package/dist/cjs/zonos-select-dialog-header_2.cjs.entry.js +0 -45
- package/dist/esm/zonos-card_2.entry.js +0 -62
- package/dist/esm/zonos-notification.entry.js +0 -68
- package/dist/esm/zonos-payment.entry.js +0 -54
- package/dist/esm/zonos-select-dialog-header_2.entry.js +0 -40
- package/dist/esm-es5/cart-b96aaa4f.js +0 -1
- package/dist/esm-es5/submitGtag-6e271d76.js +0 -1
- package/dist/esm-es5/zonos-card_2.entry.js +0 -1
- package/dist/esm-es5/zonos-notification.entry.js +0 -1
- package/dist/esm-es5/zonos-payment.entry.js +0 -1
- package/dist/esm-es5/zonos-select-dialog-header_2.entry.js +0 -1
- package/dist/zonos-elements/p-087c83a5.system.entry.js +0 -1
- package/dist/zonos-elements/p-1a40aaf4.system.js +0 -1
- package/dist/zonos-elements/p-2613b5d3.system.entry.js +0 -1
- package/dist/zonos-elements/p-27d648c3.system.entry.js +0 -1
- package/dist/zonos-elements/p-4e01d1ab.system.entry.js +0 -1
- package/dist/zonos-elements/p-5441b729.entry.js +0 -1
- package/dist/zonos-elements/p-5857ad65.entry.js +0 -1
- package/dist/zonos-elements/p-5d53f9a4.js +0 -1
- package/dist/zonos-elements/p-75ba695c.entry.js +0 -1
- package/dist/zonos-elements/p-8c9e7980.entry.js +0 -1
- package/dist/zonos-elements/p-8f8baabf.system.entry.js +0 -1
- package/dist/zonos-elements/p-9f7c0472.entry.js +0 -1
- package/dist/zonos-elements/p-acfb9be6.system.entry.js +0 -1
- package/dist/zonos-elements/p-b468f941.js +0 -1
- package/dist/zonos-elements/p-bb5a9eaa.entry.js +0 -1
- package/dist/zonos-elements/p-be2b32f5.entry.js +0 -1
- package/dist/zonos-elements/p-c63a7dde.entry.js +0 -1
- package/dist/zonos-elements/p-f38fd0d9.system.entry.js +0 -1
package/dist/esm/index.js
CHANGED
|
@@ -245,9 +245,9 @@ const zonosLoadUrl = (() => {
|
|
|
245
245
|
}
|
|
246
246
|
return null;
|
|
247
247
|
})();
|
|
248
|
-
const ZONOS_URL = "https://v1.3.
|
|
249
|
-
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.
|
|
250
|
-
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.
|
|
248
|
+
const ZONOS_URL = "https://v1.3.32.js.zonos.com";
|
|
249
|
+
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.32";
|
|
250
|
+
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.32";
|
|
251
251
|
const MAIN_LOAD_CDN_TYPE = 'jsdelivr';
|
|
252
252
|
const INTER_FONT_URL = 'https://rsms.me';
|
|
253
253
|
const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
|
|
@@ -267,7 +267,7 @@ Zonos.isBigCommerce = false;
|
|
|
267
267
|
*/
|
|
268
268
|
Zonos.isNpm = true;
|
|
269
269
|
Zonos.zonosQaUrl = null;
|
|
270
|
-
Zonos.version = `v${"1.3.
|
|
270
|
+
Zonos.version = `v${"1.3.32"}`;
|
|
271
271
|
Zonos.modeAlerted = false;
|
|
272
272
|
Zonos.tempCartData = null;
|
|
273
273
|
Zonos.getCurrentTimestamp = () => new Date().getTime();
|
package/dist/esm/loader.js
CHANGED
|
@@ -5,7 +5,7 @@ import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
6
6
|
if (typeof window === 'undefined') return undefined;
|
|
7
7
|
await globalScripts();
|
|
8
|
-
return bootstrapLazy([["zonos-checkout",[[2,"zonos-checkout",{"appearanceSettingsOverride":[16],"preview":[4],"mobile":[4],"defaultAddress":[16],"forceDialogOpen":[4,"force-dialog-open"],"open":[32],"stripe":[32],"submitLoading":[32],"paymentError":[32],"collapseReviewMobile":[32],"isAttachError":[32],"isMobile":[32],"zonosReviewRef":[32],"storybookPaymentStatusOverride":[32],"domesticRedirectedBtnSelector":[32],"legacyCheckoutHiddenBtnSelector":[32],"isLegacyCheckout":[32],"confirmDialogOpen":[32],"showSessionTimoutScreen":[32],"checkoutTimeoutInterval":[32],"inventoryCheckErrorMessage":[32],"closeDialogHandler":[64],"init":[64],"setToFinishStep":[64]},[[16,"zonos--init-cart-info","initCartInfoHandler"],[4,"keydown","handleKeyPress"],[9,"resize","handleWindowResize"]],{"appearanceSettingsOverride":["appearanceSettingsOverrideChanged","handleAppearanceSettingsOverrideChange"],"mobile":["handleMobileChange"]}]]],["zonos-hello",[[1,"zonos-hello",{"mobileLocationOverride":[1,"mobile-location-override"],"animateFromLeftOverride":[4,"animate-from-left-override"],"appearanceSettingsOverride":[16],"showPeekMessage":[32],"zonosStoreHelloSettings":[32],"showDialog":[32],"peekMessage":[32],"initialUrl":[32],"allRestrictedItems":[32],"allFoundProducts":[32],"productsOnPage":[32],"isHelloWidgetRendered":[32],"displayCurrency":[64],"convertAndFormat":[64],"convert":[64],"format":[64],"openHelloDialog":[64]},[[9,"resize","handleResize"]],{"appearanceSettingsOverride":["handleAppearanceSettingsOverrideChange"]}]]],["zonos-controller",[[1,"zonos-controller",{"config":[16],"zonosApiKey":[1,"zonos-api-key"],"initCheckoutElement":[64],"setupGoogleFont":[64],"showNotification":[64],"overrideConfig":[64],"overrideCountry":[64],"getAppearanceSetting":[64],"updateOrganizationName":[64]},[[8,"locationchange","handleLocationChange"]]]]],["zonos-component",[[1,"zonos-component",{"first":[1],"middle":[1],"last":[1]}]]],["zonos-link",[[1,"zonos-link",{"href":[1],"rel":[1],"target":[1],"linkTitle":[1,"link-title"]}]]],["zonos-logo",[[1,"zonos-logo",{"theme":[1],"width":[1]}]]],["zonos-
|
|
8
|
+
return bootstrapLazy([["zonos-checkout",[[2,"zonos-checkout",{"appearanceSettingsOverride":[16],"preview":[4],"mobile":[4],"defaultAddress":[16],"forceDialogOpen":[4,"force-dialog-open"],"open":[32],"stripe":[32],"submitLoading":[32],"paymentError":[32],"collapseReviewMobile":[32],"isAttachError":[32],"isMobile":[32],"zonosReviewRef":[32],"storybookPaymentStatusOverride":[32],"domesticRedirectedBtnSelector":[32],"legacyCheckoutHiddenBtnSelector":[32],"isLegacyCheckout":[32],"confirmDialogOpen":[32],"showSessionTimoutScreen":[32],"checkoutTimeoutInterval":[32],"inventoryCheckErrorMessage":[32],"closeDialogHandler":[64],"init":[64],"setToFinishStep":[64]},[[16,"zonos--init-cart-info","initCartInfoHandler"],[4,"keydown","handleKeyPress"],[9,"resize","handleWindowResize"]],{"appearanceSettingsOverride":["appearanceSettingsOverrideChanged","handleAppearanceSettingsOverrideChange"],"mobile":["handleMobileChange"],"defaultAddress":["handleAddressChange"]}]]],["zonos-hello",[[1,"zonos-hello",{"mobileLocationOverride":[1,"mobile-location-override"],"animateFromLeftOverride":[4,"animate-from-left-override"],"appearanceSettingsOverride":[16],"showPeekMessage":[32],"zonosStoreHelloSettings":[32],"showDialog":[32],"peekMessage":[32],"initialUrl":[32],"allRestrictedItems":[32],"allFoundProducts":[32],"productsOnPage":[32],"isHelloWidgetRendered":[32],"displayCurrency":[64],"convertAndFormat":[64],"convert":[64],"format":[64],"openHelloDialog":[64]},[[9,"resize","handleResize"]],{"appearanceSettingsOverride":["handleAppearanceSettingsOverrideChange"]}]]],["zonos-controller",[[1,"zonos-controller",{"config":[16],"zonosApiKey":[1,"zonos-api-key"],"initCheckoutElement":[64],"setupGoogleFont":[64],"showNotification":[64],"overrideConfig":[64],"overrideCountry":[64],"getAppearanceSetting":[64],"updateOrganizationName":[64]},[[8,"locationchange","handleLocationChange"]]]]],["zonos-component",[[1,"zonos-component",{"first":[1],"middle":[1],"last":[1]}]]],["zonos-link",[[1,"zonos-link",{"href":[1],"rel":[1],"target":[1],"linkTitle":[1,"link-title"]}]]],["zonos-logo",[[1,"zonos-logo",{"theme":[1],"width":[1]}]]],["zonos-input",[[1,"zonos-input",{"inputValue":[1,"input-value"],"inputLabel":[1,"input-label"],"inputSize":[1,"input-size"],"isDisabled":[4,"is-disabled"],"isError":[4,"is-error"],"inputPlaceholder":[1,"input-placeholder"],"value":[32]},null,{"inputValue":["onInputValueChange"]}]]],["zonos-badge_2",[[1,"zonos-tooltip",{"label":[1],"subtitle":[1],"showTooltip":[32]}],[1,"zonos-badge",{"bold":[4],"badgeColor":[1,"badge-color"],"icon":[16],"iconRight":[4,"icon-right"],"size":[1],"rounded":[4]}]]],["zonos-country-flag",[[1,"zonos-country-flag",{"countryCode":[1,"country-code"],"size":[2]}]]],["zonos-v-stack",[[1,"zonos-v-stack",{"spacing":[2]}]]],["zonos-text",[[1,"zonos-text",{"textColor":[1,"text-color"],"size":[1],"type":[1],"weight":[2],"ready":[32]}]]],["zonos-country-select_3",[[1,"zonos-country-select",{"handleOnClose":[16],"inputValue":[32]}],[1,"zonos-hello-dialog-footer",{"appearanceSettings":[16],"setShowCountrySelect":[16],"setShowLanguageSelect":[16]}],[1,"zonos-custom-message",{"icon":[1],"message":[1]}]]],["zonos-hello-dialog",[[1,"zonos-hello-dialog",{"isOpen":[4,"is-open"],"setIsOpen":[16],"mobileLocationOverride":[1,"mobile-location-override"],"animateFromLeftOverride":[4,"animate-from-left-override"],"appearanceSettings":[16],"restrictedItems":[16],"welcomeMessage":[32],"showCountrySelect":[32],"showLanguageSelect":[32]},[[4,"click","globalClickHandler"]],{"isOpen":["isOpenHandler"]}]]],["zonos-shipping-rich-radio",[[1,"zonos-shipping-rich-radio",{"items":[16],"borderColor":[1,"border-color"],"borderStyle":[1,"border-style"],"theme":[1],"initialSelectedValue":[8,"initial-selected-value"],"selectedItem":[32]}]]],["zonos-notification_2",[[2,"zonos-payment",{"titleText":[1,"title-text"],"stripe":[32],"stripeElements":[32]},null,{"stripeElements":["watchInitStripe"],"stripe":["watchInitStripe"]}],[1,"zonos-notification",{"notificationArray":[32],"showNotification":[64]}]]],["zonos-card",[[1,"zonos-card",{"actions":[16],"backgroundColor":[1,"background-color"],"borderRadius":[2,"border-radius"],"footerActions":[16],"footerContent":[16],"footerHeight":[2,"footer-height"],"label":[16],"spacing":[1]}]]],["zonos-banner",[[1,"zonos-banner",{"bannerTitle":[1,"banner-title"],"intent":[1],"hasContent":[32]}]]],["zonos-button_3",[[17,"zonos-button",{"buttonColor":[1,"button-color"],"backgroundColor":[1,"background-color"],"borderStyle":[1,"border-style"],"isDisabled":[4,"is-disabled"],"icon":[16],"iconRight":[4,"icon-right"],"size":[1],"variant":[1],"noBackground":[4,"no-background"],"withBoxShadow":[4,"with-box-shadow"],"noPaddingLeft":[4,"no-padding-left"],"noPaddingRight":[4,"no-padding-right"],"loading":[4],"justifyContent":[1,"justify-content"],"theme":[1],"hasIcon":[32],"hasContent":[32]},[[2,"click","clickHandler"]],{"icon":["iconChangeHandler"]}],[1,"zonos-spinner",{"size":[2],"spinnerColor":[1,"spinner-color"]}],[1,"zonos-icon",{"autoHeight":[4,"auto-height"],"iconColor":[1,"icon-color"],"content":[1],"size":[2]}]]],["zonos-language-select_2",[[1,"zonos-language-select",{"handleOnClose":[16]}],[1,"zonos-select-dialog-header",{"handleOnClose":[16],"label":[1]}]]],["zonos-address_8",[[1,"zonos-address-update-dialog",{"continueLoading":[4,"continue-loading"],"dialogLoading":[4,"dialog-loading"],"dialogOpen":[4,"dialog-open"],"submitBtnType":[1,"submit-btn-type"],"submitBtnColor":[1,"submit-btn-color"],"isMobile":[4,"is-mobile"],"shippingAddress":[16],"billingAddress":[16],"translatedShippingAddress":[16],"translatedBillingAddress":[16],"showErrorBanner":[32],"translatedShippingAddressState":[32],"translatedBillingAddressState":[32]},null,{"translatedShippingAddress":["watchTranslatedShippingAddress"],"translatedBillingAddress":["watchTranslatedBillingAddress"]}],[2,"zonos-address",{"type":[1],"titleText":[1,"title-text"],"defaultAddress":[16],"stripe":[32],"isDirtyAddress":[32]},null,{"stripe":["watchInitStripe"]}],[1,"zonos-checkbox",{"backgroundColor":[1,"background-color"],"label":[1],"isChecked":[4,"is-checked"],"isDisabled":[4,"is-disabled"],"size":[2],"fontSize":[1,"font-size"],"borderStyle":[1,"border-style"]},[[1,"click","onClick"]]],[2,"zonos-link-authentication",{"titleText":[1,"title-text"],"defaultEmail":[1,"default-email"],"stripe":[32]},null,{"stripe":["watchInitStripe"]}],[1,"zonos-dialog",{"open":[4],"headerText":[1,"header-text"],"width":[1],"height":[1],"minHeight":[1,"min-height"],"noHeader":[4,"no-header"],"noBodyPadding":[4,"no-body-padding"],"noBorder":[4,"no-border"],"borderStyle":[1,"border-style"],"noCloseButton":[4,"no-close-button"],"noClickOutside":[4,"no-click-outside"],"mobile":[4],"isLoading":[4,"is-loading"],"isMobile":[32]},[[9,"resize","handleWindowResize"],[4,"keydown","handleKeyDown"]]],[1,"zonos-address-display",{"currentAddress":[16],"addressType":[1,"address-type"]}],[1,"zonos-address-form",{"currentAddress":[16],"translatedAddress":[16],"addressType":[1,"address-type"],"localAddress":[32]},null,{"translatedAddress":["watchCurrentAddress"]}],[1,"zonos-collapse",{"collapsed":[4],"collapseSize":[2,"collapse-size"],"height":[32],"iframe":[32]}]]],["zonos-cart-items_12",[[2,"zonos-customer-info",{"continueLoading":[4,"continue-loading"],"submitBtnType":[1,"submit-btn-type"],"submitBtnColor":[1,"submit-btn-color"],"isMobile":[4,"is-mobile"],"defaultAddress":[16],"showErrorBanner":[32],"shippingCountry":[32],"isCheckingForRestrictedItems":[32],"isValidatingAddress":[32],"invalidShippingCharacterList":[32],"invalidBillingCharacterList":[32],"openAddressValidationDialog":[32]}],[2,"zonos-checkout-payment",{"paymentError":[4,"payment-error"],"submitBtnType":[1,"submit-btn-type"],"continueLoading":[4,"continue-loading"],"submitBtnColor":[1,"submit-btn-color"],"showErrorBanner":[32]}],[1,"zonos-checkout-footer",{"mobile":[4],"dataTheme":[1,"data-theme"],"showLanguageDialog":[32],"isMobile":[32]},[[4,"click","handleGlobalClick"]],{"mobile":["handleMobileChange"]}],[1,"zonos-checkout-finish",{"borderRadius":[1,"border-radius"],"storybookForceStatus":[1,"storybook-force-status"],"overrideNotification":[16],"isLoading":[32],"notificationType":[32],"notificationTitle":[32],"notificationMessages":[32],"notificationActionText":[32],"order":[32]}],[2,"zonos-shipping",{"continueLoading":[4,"continue-loading"],"submitBtnColor":[1,"submit-btn-color"],"submitBtnType":[1,"submit-btn-type"],"selectedShippingMethod":[32],"isSelecting":[32],"showErrorBanner":[32],"serviceLevels":[32]}],[1,"zonos-cart-restricted-items",{"hide":[4],"errorImages":[32],"internalCollapsed":[32],"firstRender":[32]}],[1,"zonos-cart-subtotal"],[1,"zonos-confirm-dialog",{"dialogTitle":[1,"dialog-title"],"dialogIntent":[1,"dialog-intent"],"dialogSubtitle":[1,"dialog-subtitle"],"submitBtnColor":[1,"submit-btn-color"],"dialogConfirmBtnText":[1,"dialog-confirm-btn-text"],"dialogCancelBtnText":[1,"dialog-cancel-btn-text"],"dialogType":[1,"dialog-type"],"isMobile":[4,"is-mobile"],"dialogOpen":[4,"dialog-open"],"noClickOutside":[4,"no-click-outside"]},[[4,"keydown","handleKeyDown"]]],[1,"zonos-checkout-progress-tabs",{"tabColor":[1,"tab-color"],"backgroundColor":[1,"background-color"],"setTabItems":[64],"setTabSelected":[64]}],[1,"zonos-review",{"mobile":[4],"collapsed":[4],"isMobile":[32]},[[9,"resize","handleWindowResize"]]],[1,"zonos-cart-items",{"errorImages":[32]}],[1,"zonos-rest-state",{"restStateSubtitle":[1,"rest-state-subtitle"],"restStateTitle":[1,"rest-state-title"],"restStateType":[1,"rest-state-type"],"isErrorImageLoad":[32]}]]]], options);
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export { defineCustomElements };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as handleFetch, d as cartStore, l as localizationStore } from './cart-
|
|
1
|
+
import { r as handleFetch, d as cartStore, l as localizationStore } from './cart-a90aa9ae.js';
|
|
2
2
|
import { z as zonosStore } from './zonosStore-ba9e541e.js';
|
|
3
3
|
import { l as log } from './logError-c456c092.js';
|
|
4
4
|
|
|
@@ -35,6 +35,8 @@ const trackConversionEvent = async (eventName, metadata) => {
|
|
|
35
35
|
});
|
|
36
36
|
};
|
|
37
37
|
|
|
38
|
+
const getIsTestMode = () => { var _a; return (_a = window.Zonos.zonosApiKey) === null || _a === void 0 ? void 0 : _a.includes('test'); };
|
|
39
|
+
|
|
38
40
|
/**
|
|
39
41
|
* Strongly typed custom event creation for all available events in zonos-checkout project
|
|
40
42
|
*/
|
|
@@ -78,4 +80,4 @@ const submitGtag = (event) => {
|
|
|
78
80
|
}
|
|
79
81
|
};
|
|
80
82
|
|
|
81
|
-
export { submitGtag as a, createCustomEvent as c, sendErrorLog as s, trackConversionEvent as t };
|
|
83
|
+
export { submitGtag as a, createCustomEvent as c, getIsTestMode as g, sendErrorLog as s, trackConversionEvent as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, d as getElement } from './index-3b46f3c3.js';
|
|
2
|
-
import { h as stripeStore, l as localizationStore, t as translate } from './cart-
|
|
2
|
+
import { h as stripeStore, l as localizationStore, t as translate } from './cart-a90aa9ae.js';
|
|
3
3
|
import { i as isCheckoutMobile } from './isCheckoutMobile-8846dccb.js';
|
|
4
4
|
import { a as logError } from './logError-c456c092.js';
|
|
5
5
|
import { i as isTextContainsNonLatinChars, c as containsNonLatinChars } from './containsNonLatinChars-2d8810c3.js';
|
|
@@ -143,7 +143,7 @@ const ZonosAddress = class {
|
|
|
143
143
|
}
|
|
144
144
|
render() {
|
|
145
145
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
146
|
-
return (h(Host, { key: '
|
|
146
|
+
return (h(Host, { key: 'c8b22844b640cf67016bedac346ee2876822fb91', class: "zonos--address zonos--elements" }, h("zonos-text", { key: '79a688fbb8915ef11897939bd568d696b3632b6a', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("div", { key: '71468dc23512c3e228dd9ce7d6df6593ba01ad0b', class: "zonos--address-component" })));
|
|
147
147
|
}
|
|
148
148
|
get el() { return getElement(this); }
|
|
149
149
|
static get watchers() { return {
|
|
@@ -442,14 +442,14 @@ const ZonosCheckbox = class {
|
|
|
442
442
|
customRoundRadius: '4px',
|
|
443
443
|
overrideBorderStyle: this.borderStyle,
|
|
444
444
|
});
|
|
445
|
-
return (h(Host, { key: '
|
|
445
|
+
return (h(Host, { key: 'bf51dd642e88096e874d78023a29dd68239e8d3a', class: classes(['zonos--elements zonos--checkbox']), style: {
|
|
446
446
|
'--background-color': backgroundColor,
|
|
447
447
|
'--border-radius': borderStyle,
|
|
448
448
|
'--font-family': zonosStoreFontFamily(),
|
|
449
449
|
'--size': `${this.size}px`,
|
|
450
|
-
} }, h("label", { key: '
|
|
450
|
+
} }, h("label", { key: '3598c9f21285304499aaafbab5226d619ecf4e69', class: classes([this.isDisabled && 'disabled']) }, h("input", { key: '277507f643404e6e44191c2d715b70f38fc6af85', checked: this.isChecked, disabled: this.isDisabled, hidden: true, onChange: e => {
|
|
451
451
|
this.checkboxSelected.emit(e.target.checked);
|
|
452
|
-
}, type: "checkbox" }), h("span", { key: '
|
|
452
|
+
}, type: "checkbox" }), h("span", { key: '3f0fd0d458e8cf660fa883ceaa241e3397829548', class: "checkmark-container" }, h("svg", { key: '0d654744bea5b5696ddcf3778a155fb622022f1e', class: "checkmark", color: checkmarkColor, fill: "none", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: 'cc19837ee088feb7053fdaeaea0d1213cbc60775', "clip-rule": "evenodd", d: "M17.456 7.404a.75.75 0 0 1 .14 1.052l-6.5 8.5a.75.75 0 0 1-1.126.074l-4-4a.75.75 0 0 1 1.06-1.06l3.395 3.394 5.98-7.82a.75.75 0 0 1 1.05-.14Z", fill: "currentColor", "fill-rule": "evenodd" }))), this.label && (h("zonos-text", { key: 'cb85d59651f67a33126d37c3ebfb1e8a91b457fe', size: this.fontSize }, this.label)))));
|
|
453
453
|
}
|
|
454
454
|
};
|
|
455
455
|
ZonosCheckbox.style = ZonosCheckboxStyle0;
|
|
@@ -499,10 +499,10 @@ const ZonosCollapse = class {
|
|
|
499
499
|
// set overflow to hidden to prevent content from showing when collapsed
|
|
500
500
|
this.el.style.overflow = 'hidden';
|
|
501
501
|
}
|
|
502
|
-
return (h(Host, { key: '
|
|
502
|
+
return (h(Host, { key: '7cc2167ab3dab1a975d141f3c58d3c5982c1645a', class: 'zonos--elements zonos--collapse', style: {
|
|
503
503
|
'--font-family': zonosStoreFontFamily(),
|
|
504
504
|
height: this.getElementHeight(),
|
|
505
|
-
} }, h("div", { key: '
|
|
505
|
+
} }, h("div", { key: '1b791702f95066643ac82402a9fcff19b0fcc706' }, h("iframe", { key: '08f678a4ce92f5600c584e329e3039bc4588ff3a', class: "height-change-listener", tabindex: "-1", title: "collapse-height-change-listener" }), h("slot", { key: '83119f9ba9764c46fa7d1dd7b4c0b08c49033607' }))));
|
|
506
506
|
}
|
|
507
507
|
get el() { return getElement(this); }
|
|
508
508
|
};
|
|
@@ -569,7 +569,7 @@ const ZonosDialog = class {
|
|
|
569
569
|
const borderStyle = getBorderRadius({
|
|
570
570
|
overrideBorderStyle: this.borderStyle,
|
|
571
571
|
});
|
|
572
|
-
return (h(Host, { key: '
|
|
572
|
+
return (h(Host, { key: '9478fd5dd572bc1a677146025485b74321700fba', class: classes([
|
|
573
573
|
'zonos--elements',
|
|
574
574
|
this.open && 'open',
|
|
575
575
|
this.isLoading && 'is-loading',
|
|
@@ -581,10 +581,10 @@ const ZonosDialog = class {
|
|
|
581
581
|
'--height': this.height || 'initial',
|
|
582
582
|
'--min-height': this.minHeight || '500px',
|
|
583
583
|
'--width': this.width,
|
|
584
|
-
} }, h("div", { key: '
|
|
584
|
+
} }, h("div", { key: '4bc8f62202bbae238d07536f3234bdc00c6d689f', class: "zonos--backdrop" }), h("div", { key: 'da80cf2a9b0a19e4e42062a57fed91ecfe6c0bcf', "aria-hidden": "true", class: "zonos--dialog-layout", onClick: this.clickOutsideDialogHandler }, h("div", { key: '7bbaacf6fbb5ff70db62246254f007006146324e', class: "zonos--dialog" }, this.isLoading && (h("div", { key: 'c65e9205d105456072b4c3c7549dce937dd7f8ec', class: "zonos--loading" }, h("zonos-spinner", { key: 'ac3667841a42f0ae55831a449c07bdfadc976971', size: 30 }))), (this.headerText || !this.noCloseButton) && (h("div", { key: '9e2c9ec2c4a9be64169f2f6b6473bc16516fbff1', class: "zonos--header" }, this.headerText && (h("h3", { key: '0b2086b13d7cfc14901527afbb087c40eb76895d', class: "zonos--header-text" }, this.headerText)), !this.noCloseButton && (h("zonos-button", { key: '2d2b55e65e965071f6422665eaa8be7991450a93', class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close dialog", content: RemoveIcon }), noBackground: true, onClick: this.closeButtonHandler, variant: "subtle" })))), h("div", { key: 'aedb5b3b307a5a04f9b806c927679d0e0c0de711', class: classes([
|
|
585
585
|
'zonos--body',
|
|
586
586
|
this.noBodyPadding && 'zonos--no-body-padding',
|
|
587
|
-
]) }, h("slot", { key: '
|
|
587
|
+
]) }, h("slot", { key: '5f55d5771bc62a54865ee3bf8a25f571bfd7fbd1' })), h("slot", { key: '95053c3ebf850f1f9796163122f9224f4190d1c9', name: "dialog-footer" })))));
|
|
588
588
|
}
|
|
589
589
|
static get assetsDirs() { return ["assets"]; }
|
|
590
590
|
};
|
|
@@ -631,7 +631,7 @@ const ZonosLinkAuthentication = class {
|
|
|
631
631
|
}
|
|
632
632
|
render() {
|
|
633
633
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
634
|
-
return (h(Host, { key: '
|
|
634
|
+
return (h(Host, { key: '715d58ba37c753ac4890aabf3b6979a759a5594a', class: "zonos--link-authentication zonos--elements" }, h("zonos-text", { key: '1394e448a080a21522e91a62c8886d49c3616e59', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("div", { key: '417bc27477776220acfdc9d9f76acd91fd14c1ca', class: "zonos--link-authentication-component" })));
|
|
635
635
|
}
|
|
636
636
|
get el() { return getElement(this); }
|
|
637
637
|
static get watchers() { return {
|
|
@@ -2,7 +2,7 @@ import { r as registerInstance, h, H as Host } from './index-3b46f3c3.js';
|
|
|
2
2
|
import { d as zonosStoreFontFamily } from './zonosStore-ba9e541e.js';
|
|
3
3
|
import { c as classes } from './classes-0d95c529.js';
|
|
4
4
|
|
|
5
|
-
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:8px;font-size:var(--zonos-elements-font-size-s);padding:4px 8px;text-align:center;border-radius:var(--zonos-elements-radius-6);background-color:var(--zonos-elements-gray-100);color:var(--zonos-elements-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(--zonos-elements-gray-600);color:var(--zonos-elements-gray-100)}:host .blue{background-color:var(--zonos-elements-blue-100);color:var(--zonos-elements-blue-800)}:host .blue.bold{background-color:var(--zonos-elements-blue-600);color:var(--zonos-elements-blue-100)}:host .green{background-color:var(--zonos-elements-green-100);color:var(--zonos-elements-green-800)}:host .green.bold{background-color:var(--zonos-elements-green-600);color:var(--zonos-elements-green-100)}:host .red{background-color:var(--zonos-elements-red-100);color:var(--zonos-elements-red-800)}:host .red.bold{background-color:var(--zonos-elements-red-600);color:var(--zonos-elements-red-100)}:host .orange{background-color:var(--zonos-elements-orange-100);color:var(--zonos-elements-orange-800)}:host .orange.bold{background-color:var(--zonos-elements-orange-600);color:var(--zonos-elements-orange-100)}:host .purple{background-color:var(--zonos-elements-purple-100);color:var(--zonos-elements-purple-800)}:host .purple.bold{background-color:var(--zonos-elements-purple-600);color:var(--zonos-elements-purple-100)}:host .cyan{background-color:var(--zonos-elements-cyan-100);color:var(--zonos-elements-cyan-800)}:host .cyan.bold{background-color:var(--zonos-elements-cyan-600);color:var(--zonos-elements-cyan-100)}";
|
|
5
|
+
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:8px;font-size:var(--zonos-elements-font-size-s);padding:4px 8px;text-align:center;border-radius:var(--zonos-elements-radius-6);background-color:var(--zonos-elements-gray-100);color:var(--zonos-elements-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(--zonos-elements-gray-600);color:var(--zonos-elements-gray-100)}:host .blue{background-color:var(--zonos-elements-blue-100);color:var(--zonos-elements-blue-800)}:host .blue.bold{background-color:var(--zonos-elements-blue-600);color:var(--zonos-elements-blue-100)}:host .green{background-color:var(--zonos-elements-green-100);color:var(--zonos-elements-green-800)}:host .green.bold{background-color:var(--zonos-elements-green-600);color:var(--zonos-elements-green-100)}:host .red{background-color:var(--zonos-elements-red-100);color:var(--zonos-elements-red-800)}:host .red.bold{background-color:var(--zonos-elements-red-600);color:var(--zonos-elements-red-100)}:host .orange{background-color:var(--zonos-elements-orange-100);color:var(--zonos-elements-orange-800);border:1px solid var(--zonos-elements-orange-200)}:host .orange.bold{background-color:var(--zonos-elements-orange-600);color:var(--zonos-elements-orange-100)}:host .purple{background-color:var(--zonos-elements-purple-100);color:var(--zonos-elements-purple-800)}:host .purple.bold{background-color:var(--zonos-elements-purple-600);color:var(--zonos-elements-purple-100)}:host .cyan{background-color:var(--zonos-elements-cyan-100);color:var(--zonos-elements-cyan-800)}:host .cyan.bold{background-color:var(--zonos-elements-cyan-600);color:var(--zonos-elements-cyan-100)}:host .transparent{background-color:transparent;border:1px solid var(--zonos-elements-gray-200);color:var(--zonos-elements-gray-800)}:host .transparent.bold{background-color:var(--zonos-elements-glass-600);color:var(--zonos-elements-gray-100)}";
|
|
6
6
|
const ZonosBadgeStyle0 = zonosBadgeCss;
|
|
7
7
|
|
|
8
8
|
const ZonosBadge = class {
|
|
@@ -16,16 +16,16 @@ const ZonosBadge = class {
|
|
|
16
16
|
this.rounded = false;
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
|
-
return (h(Host, { key: '
|
|
19
|
+
return (h(Host, { key: '4e022b4090de017818c5ba8f86e2d7684a1b8f05', class: classes(['zonos--elements zonos--badge']), style: {
|
|
20
20
|
'--font-family': zonosStoreFontFamily(),
|
|
21
|
-
} }, h("div", { key: '
|
|
21
|
+
} }, h("div", { key: '8e6a4c0fcf81939d69fd3aec91463ed6c7a2d67d', class: classes([
|
|
22
22
|
'zonos--badge-content',
|
|
23
23
|
this.badgeColor,
|
|
24
24
|
this.rounded && 'rounded',
|
|
25
25
|
this.iconRight && 'icon-right',
|
|
26
26
|
this.size,
|
|
27
27
|
this.bold && 'bold',
|
|
28
|
-
]) }, this.icon, h("zonos-text", { key: '
|
|
28
|
+
]) }, this.icon, h("zonos-text", { key: '5824866453d31abef18443179e6bc1692e9e98a3', textColor: `${this.badgeColor}-800` }, h("slot", { key: '9bc411177ae04e8fa1061098023860204fa1a5d7' })))));
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
31
|
ZonosBadge.style = ZonosBadgeStyle0;
|
|
@@ -41,10 +41,10 @@ const ZonosTooltip = class {
|
|
|
41
41
|
this.showTooltip = false;
|
|
42
42
|
}
|
|
43
43
|
render() {
|
|
44
|
-
return (h(Host, { key: '
|
|
44
|
+
return (h(Host, { key: 'a38f8d5dec27abcfc73f341b9451ac29c71f3e1a', class: "zonos--elements" }, h("div", { key: 'dc2d9d599437e79d61ea6a7c4dc1cbba6ab03748', class: "zonos--tooltip", onMouseEnter: () => (this.showTooltip = true), onMouseLeave: () => (this.showTooltip = false) }, h("slot", { key: 'a0e10b6ea75346cee1b5a42f0c35f9a86ba4f1ee' }), h("div", { key: 'bed28d732fe207e56f03ba50ea835c562c5d08cb', class: classes([
|
|
45
45
|
this.showTooltip && 'zonos--show-tooltip',
|
|
46
46
|
'zonos--tooltip-content',
|
|
47
|
-
]) }, h("zonos-text", { key: '
|
|
47
|
+
]) }, h("zonos-text", { key: '920ef6419d1dedd71e46be23e9a19dc1042925ce', size: "s", textColor: "gray-0", type: "boldLabel" }, this.label), h("zonos-text", { key: '259961488d833d3728819f6ba93ea6579b0f3f9d', size: "xs", textColor: "gray-0" }, this.subtitle)))));
|
|
48
48
|
}
|
|
49
49
|
};
|
|
50
50
|
ZonosTooltip.style = ZonosTooltipStyle0;
|
|
@@ -126,6 +126,7 @@ const ZonosButton = class {
|
|
|
126
126
|
this.noPaddingLeft = false;
|
|
127
127
|
this.noPaddingRight = false;
|
|
128
128
|
this.loading = false;
|
|
129
|
+
this.justifyContent = 'center';
|
|
129
130
|
this.theme = undefined;
|
|
130
131
|
this.hasIcon = !!this.icon;
|
|
131
132
|
this.hasContent = false;
|
|
@@ -154,12 +155,12 @@ const ZonosButton = class {
|
|
|
154
155
|
const borderStyle = getBorderRadius({
|
|
155
156
|
overrideBorderStyle: this.borderStyle,
|
|
156
157
|
});
|
|
157
|
-
return (h(Host, { key: '
|
|
158
|
+
return (h(Host, { key: '51f49811674e7ef1efe49389afc3fc70e4f5a46c', class: classes(['zonos--elements']), "data-theme": this.theme || buttonTheme, disabled: disabled, style: styles({
|
|
158
159
|
'--background-color': backgroundColor,
|
|
159
160
|
'--border-radius': borderStyle,
|
|
160
161
|
'--color': color,
|
|
161
162
|
'--font-family': zonosStoreFontFamily(),
|
|
162
|
-
}) }, h("button", { key: '
|
|
163
|
+
}) }, h("button", { key: 'f11f4f6877a0947df57dbe5baf658b69d91fff4d', class: classes([
|
|
163
164
|
this.hasIcon && 'has-icon',
|
|
164
165
|
this.hasContent && 'has-content',
|
|
165
166
|
this.noBackground && 'no-background',
|
|
@@ -172,7 +173,9 @@ const ZonosButton = class {
|
|
|
172
173
|
this.size,
|
|
173
174
|
// only override background if variant is set to standard
|
|
174
175
|
backgroundColor && variant === 'standard' && 'override-background',
|
|
175
|
-
]), disabled: disabled
|
|
176
|
+
]), disabled: disabled, style: {
|
|
177
|
+
justifyContent: this.justifyContent,
|
|
178
|
+
} }, this.loading && (h("div", { key: '35f474efa80cde690afd876863d25f3b46198ecf', class: "zonos--spinner-wrapper" }, h("zonos-spinner", { key: '7476edf05b7d85d5f2f6900a7ad97c49d2216dd8', size: 16, spinnerColor: spinnerColor }))), !this.loading && !this.iconRight && this.icon, h("slot", { key: 'a4e8bfc0aef84561416ddc5f38602ed346db6f4b', onSlotchange: this.handleSlotChange }), !this.loading && this.iconRight && this.icon)));
|
|
176
179
|
}
|
|
177
180
|
static get delegatesFocus() { return true; }
|
|
178
181
|
get ele() { return getElement(this); }
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-3b46f3c3.js';
|
|
2
|
+
import { d as zonosStoreFontFamily } from './zonosStore-ba9e541e.js';
|
|
3
|
+
import { c as classes } from './classes-0d95c529.js';
|
|
4
|
+
import { g as getBorderRadius } from './getBorderRadius-947c24de.js';
|
|
5
|
+
|
|
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(--zonos-elements-border);border-radius:var(--border-radius, var(--zonos-elements-radius-6));padding:var(--spacing, 24px);text-align:left;background-color:var(--background-color);overflow:hidden}:host .styled-card hr{margin-left:calc(var(--spacing, 24px) * -1);margin-right:calc(var(--spacing, 24px) * -1)}:host .styled-card .card-header{margin:calc(var(--spacing, 24px) * -1);padding:var(--spacing, 24px);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-bottom:var(--spacing, 24px);border-bottom:var(--zonos-elements-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, 24px) * -1);padding:var(--spacing, 24px);border-top:var(--zonos-elements-border);background:var(--zonos-elements-surface-color-secondary);margin-top:var(--spacing, 24px);border-bottom-left-radius:var(--zonos-elements-radius-8);border-bottom-right-radius:var(--zonos-elements-radius-8);height:var(--footerHeight)}";
|
|
7
|
+
const ZonosCardStyle0 = zonosCardCss;
|
|
8
|
+
|
|
9
|
+
const ZonosCard = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
registerInstance(this, hostRef);
|
|
12
|
+
this.actions = undefined;
|
|
13
|
+
this.backgroundColor = undefined;
|
|
14
|
+
this.borderRadius = 6;
|
|
15
|
+
this.footerActions = undefined;
|
|
16
|
+
this.footerContent = undefined;
|
|
17
|
+
this.footerHeight = undefined;
|
|
18
|
+
this.label = undefined;
|
|
19
|
+
this.spacing = '24px';
|
|
20
|
+
}
|
|
21
|
+
render() {
|
|
22
|
+
const backgroundColor = this.backgroundColor
|
|
23
|
+
? `var(--zonos-elements-${this.backgroundColor})`
|
|
24
|
+
: 'transparent';
|
|
25
|
+
const borderRadius = getBorderRadius({
|
|
26
|
+
customRoundRadius: `${this.borderRadius}px`,
|
|
27
|
+
overrideBorderStyle: 'ROUNDED',
|
|
28
|
+
});
|
|
29
|
+
return (h(Host, { key: 'e239a3af7d0bb71537ef94a13672ffa906adedd9', style: {
|
|
30
|
+
'--font-family': zonosStoreFontFamily(),
|
|
31
|
+
} }, h("div", { key: '41efc14a60719dbf847be74385d8d1c4065cee84', class: classes(['styled-card']), style: {
|
|
32
|
+
'--background-color': backgroundColor,
|
|
33
|
+
'--border-radius': borderRadius,
|
|
34
|
+
padding: this.spacing,
|
|
35
|
+
} }, this.label && (h("header", { key: '012234fa59c5c50cf78ff7a4b2dc0efaecd3cc20', class: "card-header", style: { padding: this.spacing } }, h("zonos-text", { key: '133ae9f43b50edca812aa0aab203febbffc07318', type: "subheader" }, this.label), h("h-stack", { key: '542c1e7b4d1f1e0751231cff9cb4ae5df3a82fa6', spacing: 8 }, this.actions))), h("slot", { key: '307ff202ce1c090f37b3f377a3f64efbea7a2e67' }), (this.footerActions || this.footerContent) && (h("footer", { key: '6641fba300b6acf06a650a73393612e774e79f1a', class: "card-footer", style: {
|
|
36
|
+
height: this.footerHeight ? `${this.footerHeight}px` : 'auto',
|
|
37
|
+
padding: this.spacing,
|
|
38
|
+
} }, h("div", { key: '40676761caaa588d4a503fe791e296829636e717' }, this.footerContent), h("h-stack", { key: 'f4f61d848c4b2e9c070b006146a88841a2f6f45f', spacing: 8 }, this.footerActions))))));
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
ZonosCard.style = ZonosCardStyle0;
|
|
42
|
+
|
|
43
|
+
export { ZonosCard as zonos_card };
|