@zonos/elements 1.3.5-alpha.0 → 1.3.6
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/ILanguage-d247b45b.js +26 -0
- package/dist/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/{cart-f038cf46.js → cart-b8bbf22d.js} +71 -22
- package/dist/cjs/{getBorderRadius-cd7ef574.js → getBorderRadius-b252096d.js} +8 -4
- package/dist/cjs/index.cjs.js +0 -21
- package/dist/cjs/isCheckoutMobile-f491ca7c.js +8 -0
- package/dist/cjs/{isDarkColor-5eda1323.js → isDarkColor-168002d6.js} +1 -1
- package/dist/cjs/loader.cjs.js +5 -3
- package/dist/cjs/{localization-d43e1540.js → localization-2c9f5765.js} +366 -1
- package/dist/cjs/{submitGtag-42f29b3a.js → submitGtag-792fe45d.js} +2 -8
- package/dist/cjs/zonos-address_4.cjs.entry.js +289 -0
- package/dist/cjs/zonos-badge_2.cjs.entry.js +57 -0
- package/dist/cjs/zonos-banner.cjs.entry.js +4 -9
- package/dist/cjs/zonos-button_3.cjs.entry.js +161 -0
- package/dist/cjs/zonos-card_2.cjs.entry.js +26 -14
- package/dist/cjs/{zonos-cart-items_10.cjs.entry.js → zonos-cart-items_9.cjs.entry.js} +84 -92
- package/dist/cjs/zonos-checkout.cjs.entry.js +23 -26
- package/dist/cjs/zonos-component.cjs.entry.js +2 -2
- package/dist/cjs/zonos-controller.cjs.entry.js +7 -7
- package/dist/cjs/zonos-country-flag.cjs.entry.js +40 -0
- package/dist/cjs/{zonos-country-flag_4.cjs.entry.js → zonos-country-select_3.cjs.entry.js} +29 -55
- package/dist/cjs/zonos-elements.cjs.js +6 -4
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +13 -8
- package/dist/cjs/zonos-hello.cjs.entry.js +3 -3
- package/dist/cjs/zonos-logo.cjs.entry.js +32 -0
- package/dist/cjs/zonos-notification.cjs.entry.js +5 -6
- package/dist/cjs/zonos-payment.cjs.entry.js +7 -7
- package/dist/cjs/zonos-select-dialog-header_2.cjs.entry.js +45 -0
- package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +4 -4
- package/dist/cjs/zonos-text.cjs.entry.js +4 -6
- package/dist/cjs/{zonosStore-b88b5671.js → zonosStore-5d94dabb.js} +1 -1
- package/dist/collection/collection-manifest.json +6 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +5 -5
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/assets/chevronDownIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/assets/globe.svg +3 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/assets/zonosIcon.svg +5 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.css +126 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.js +60 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.css +5 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +2 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.css +18 -23
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +11 -15
- package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.css +14 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +13 -5
- package/dist/collection/components/checkout/zonos-checkout/zonos-review/zonos-review.css +7 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-review/zonos-review.js +3 -3
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.css +5 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +2 -2
- package/dist/collection/components/common/zonos-badge/zonos-badge.js +7 -26
- package/dist/collection/components/common/zonos-banner/zonos-banner.js +2 -25
- package/dist/collection/components/common/zonos-button/zonos-button.css +20 -2
- package/dist/collection/components/common/zonos-button/zonos-button.js +19 -34
- package/dist/collection/components/common/zonos-card/zonos-card.js +2 -20
- package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.css +82 -0
- package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +218 -0
- package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +2 -2
- package/dist/collection/components/common/zonos-country-flag/zonos-country-flag.js +1 -20
- package/dist/collection/components/common/zonos-country-select/assets/greenCheckDuotone.svg +4 -0
- package/dist/collection/components/common/zonos-country-select/zonos-country-select.css +11 -10
- package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +7 -11
- 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-icon/zonos-icon.js +4 -4
- package/dist/collection/components/common/zonos-language-select/assets/greenCheckDuotone.svg +4 -0
- package/dist/collection/components/common/zonos-language-select/zonos-language-select.css +61 -0
- package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +58 -0
- package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -21
- package/dist/collection/components/common/zonos-notification/zonos-notification.js +3 -26
- package/dist/collection/components/common/zonos-select-dialog-header/assets/removeIcon.svg +1 -0
- package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.css +45 -0
- package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +68 -0
- package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.js +1 -1
- package/dist/collection/components/common/zonos-spinner/zonos-spinner.css +41 -35
- package/dist/collection/components/common/zonos-spinner/zonos-spinner.js +4 -4
- package/dist/collection/components/common/zonos-text/zonos-text.js +4 -24
- package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.css +55 -0
- package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +72 -0
- package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -21
- 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/assets/globe.svg +3 -0
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.css +10 -0
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +27 -5
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.css +16 -2
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +11 -5
- package/dist/collection/components/main/zonos-controller.js +1 -1
- package/dist/collection/components/store/checkout/cart.js +3 -1
- package/dist/collection/components/store/checkout/stripe.js +36 -10
- package/dist/collection/components/store/hello/localization.js +5 -1
- package/dist/collection/components/store/translationStore/strings.arabic.js +18 -0
- package/dist/collection/components/store/translationStore/strings.base.js +18 -0
- package/dist/collection/components/store/translationStore/strings.chinese.js +18 -0
- package/dist/collection/components/store/translationStore/strings.danish.js +18 -0
- package/dist/collection/components/store/translationStore/strings.dutch.js +18 -0
- package/dist/collection/components/store/translationStore/strings.french.js +18 -0
- package/dist/collection/components/store/translationStore/strings.german.js +18 -0
- package/dist/collection/components/store/translationStore/strings.hebrew.js +18 -0
- package/dist/collection/components/store/translationStore/strings.indonesian.js +18 -0
- package/dist/collection/components/store/translationStore/strings.italian.js +18 -0
- package/dist/collection/components/store/translationStore/strings.japanese.js +18 -0
- package/dist/collection/components/store/translationStore/strings.korean.js +18 -0
- package/dist/collection/components/store/translationStore/strings.norwegian.js +18 -0
- package/dist/collection/components/store/translationStore/strings.polish.js +18 -0
- package/dist/collection/components/store/translationStore/strings.portuguese.js +18 -0
- package/dist/collection/components/store/translationStore/strings.russian.js +18 -0
- package/dist/collection/components/store/translationStore/strings.spanish.js +18 -0
- package/dist/collection/components/store/translationStore/strings.swedish.js +18 -0
- package/dist/collection/components/store/translationStore/strings.turkish.js +18 -0
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +18 -0
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +81 -21
- 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/api/prepCalculateLandedCost.js +19 -1
- package/dist/collection/components/utils/api/triggerBuildLandedCost.js +11 -5
- package/dist/collection/components/utils/getBorderRadius.js +7 -3
- package/dist/collection/types/ILanguage.js +22 -0
- package/dist/collection/types/generated/graphql.customer.types.js +13 -0
- package/dist/collection/types/index.js +0 -1
- package/dist/collection/types/styles/Color.js +9 -0
- package/dist/components/ILanguage.js +24 -0
- package/dist/components/getBorderRadius.js +7 -3
- package/dist/components/index.js +0 -1
- package/dist/components/isCheckoutMobile.js +6 -0
- package/dist/components/isDarkColor.js +1 -1
- package/dist/components/localization.js +365 -1
- package/dist/components/{cart.js → stripe.js} +280 -229
- package/dist/components/submitGtag.js +1 -1
- package/dist/components/zonos-address2.js +83 -23
- package/dist/components/zonos-badge2.js +8 -10
- package/dist/components/zonos-banner2.js +3 -9
- package/dist/components/zonos-button2.js +20 -18
- package/dist/components/zonos-card2.js +3 -5
- package/dist/components/zonos-cart-items2.js +1 -1
- package/dist/components/zonos-cart-subtotal2.js +14 -8
- package/dist/components/zonos-checkbox.d.ts +11 -0
- package/dist/components/zonos-checkbox.js +6 -0
- package/dist/components/zonos-checkbox2.js +87 -0
- package/dist/components/zonos-checkout-finish2.js +3 -3
- package/dist/components/zonos-checkout-footer.d.ts +11 -0
- package/dist/components/zonos-checkout-footer.js +6 -0
- package/dist/components/zonos-checkout-footer2.js +109 -0
- package/dist/components/zonos-checkout-payment2.js +4 -4
- package/dist/components/zonos-checkout.js +83 -62
- package/dist/components/zonos-collapse2.js +3 -3
- package/dist/components/zonos-component.js +1 -1
- package/dist/components/zonos-controller.js +4 -4
- package/dist/components/zonos-country-flag2.js +3 -5
- package/dist/components/zonos-country-select2.js +26 -19
- package/dist/components/zonos-custom-message2.js +3 -3
- package/dist/components/zonos-customer-info2.js +31 -11
- package/dist/components/zonos-dialog2.js +4 -4
- package/dist/components/zonos-hello-dialog-footer2.js +23 -10
- package/dist/components/zonos-hello-dialog2.js +41 -23
- package/dist/components/zonos-hello.js +31 -19
- package/dist/components/zonos-icon2.js +4 -4
- package/dist/components/zonos-language-select.d.ts +11 -0
- package/dist/components/zonos-language-select.js +6 -0
- package/dist/components/zonos-language-select2.js +87 -0
- package/dist/components/zonos-link-authentication2.js +2 -2
- package/dist/components/zonos-logo.js +44 -1
- package/dist/components/zonos-notification2.js +4 -6
- package/dist/components/zonos-payment2.js +2 -2
- package/dist/components/zonos-review2.js +7 -11
- package/dist/components/zonos-select-dialog-header.d.ts +11 -0
- package/dist/components/zonos-select-dialog-header.js +6 -0
- package/dist/components/zonos-select-dialog-header2.js +71 -0
- package/dist/components/zonos-shipping-rich-radio2.js +2 -2
- package/dist/components/zonos-shipping2.js +4 -4
- package/dist/components/zonos-spinner2.js +4 -4
- package/dist/components/zonos-text2.js +4 -7
- package/dist/components/zonos-tooltip.d.ts +11 -0
- package/dist/components/zonos-tooltip.js +6 -0
- package/dist/components/zonos-tooltip2.js +48 -0
- package/dist/components/zonos-v-stack2.js +4 -6
- package/dist/components/zonosStore.js +1 -1
- package/dist/esm/ILanguage-97790bee.js +24 -0
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/{cart-ba9b0d4c.js → cart-bc3bb22e.js} +72 -21
- package/dist/esm/getBorderRadius-e9736f7e.js +20 -0
- package/dist/esm/index.js +1 -6
- package/dist/esm/isCheckoutMobile-8846dccb.js +6 -0
- package/dist/esm/{isDarkColor-8696cb70.js → isDarkColor-e982fa09.js} +1 -1
- package/dist/esm/loader.js +6 -4
- package/dist/esm/{localization-5d83fde2.js → localization-d8f6453b.js} +366 -2
- package/dist/esm/{submitGtag-a7d07aec.js → submitGtag-bebe2cb0.js} +3 -8
- package/dist/esm/zonos-address_4.entry.js +282 -0
- package/dist/esm/zonos-badge_2.entry.js +52 -0
- package/dist/esm/zonos-banner.entry.js +4 -9
- package/dist/esm/zonos-button_3.entry.js +155 -0
- package/dist/esm/zonos-card_2.entry.js +26 -14
- package/dist/esm/{zonos-cart-items_10.entry.js → zonos-cart-items_9.entry.js} +82 -89
- package/dist/esm/zonos-checkout.entry.js +20 -23
- package/dist/esm/zonos-component.entry.js +2 -2
- package/dist/esm/zonos-controller.entry.js +7 -7
- package/dist/esm/zonos-country-flag.entry.js +36 -0
- package/dist/esm/{zonos-country-flag_4.entry.js → zonos-country-select_3.entry.js} +30 -55
- package/dist/esm/zonos-elements.js +7 -5
- package/dist/esm/zonos-hello-dialog.entry.js +13 -8
- package/dist/esm/zonos-hello.entry.js +3 -3
- package/dist/esm/zonos-logo.entry.js +28 -0
- package/dist/esm/zonos-notification.entry.js +5 -6
- package/dist/esm/zonos-payment.entry.js +7 -7
- package/dist/esm/zonos-select-dialog-header_2.entry.js +40 -0
- package/dist/esm/zonos-shipping-rich-radio.entry.js +4 -4
- package/dist/esm/zonos-text.entry.js +4 -6
- package/dist/esm/{zonosStore-e59617f8.js → zonosStore-e6c7be3a.js} +1 -1
- package/dist/esm-es5/ILanguage-97790bee.js +1 -0
- package/dist/esm-es5/app-globals-0f993ce5.js +1 -0
- package/dist/esm-es5/cart-bc3bb22e.js +1 -0
- package/dist/esm-es5/getBorderRadius-e9736f7e.js +1 -0
- package/dist/esm-es5/index.js +0 -1
- package/dist/esm-es5/isCheckoutMobile-8846dccb.js +1 -0
- package/dist/esm-es5/{isDarkColor-8696cb70.js → isDarkColor-e982fa09.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/localization-d8f6453b.js +1 -0
- package/dist/esm-es5/submitGtag-bebe2cb0.js +1 -0
- package/dist/esm-es5/zonos-address_4.entry.js +1 -0
- package/dist/esm-es5/zonos-badge_2.entry.js +1 -0
- package/dist/esm-es5/zonos-banner.entry.js +1 -1
- package/dist/esm-es5/zonos-button_3.entry.js +1 -0
- package/dist/esm-es5/zonos-card_2.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_9.entry.js +1 -0
- 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 -0
- package/dist/esm-es5/zonos-country-select_3.entry.js +1 -0
- 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-logo.entry.js +1 -0
- 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-select-dialog-header_2.entry.js +1 -0
- 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 → zonosStore-e6c7be3a.js} +1 -1
- package/dist/scripts/insertTranslations.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/types/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.d.ts +2 -1
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.d.ts +7 -0
- package/dist/types/components/common/zonos-badge/zonos-badge.d.ts +1 -5
- package/dist/types/components/common/zonos-banner/zonos-banner.d.ts +0 -4
- package/dist/types/components/common/zonos-button/zonos-button.d.ts +1 -5
- package/dist/types/components/common/zonos-card/zonos-card.d.ts +0 -4
- package/dist/types/components/common/zonos-checkbox/zonos-checkbox.d.ts +42 -0
- package/dist/types/components/common/zonos-country-flag/zonos-country-flag.d.ts +0 -4
- package/dist/types/components/common/zonos-country-select/zonos-country-select.d.ts +1 -1
- package/dist/types/components/common/zonos-icon/zonos-icon.d.ts +1 -1
- package/dist/types/components/common/zonos-language-select/zonos-language-select.d.ts +9 -0
- package/dist/types/components/common/zonos-logo/zonos-logo.d.ts +0 -4
- package/dist/types/components/common/zonos-notification/zonos-notification.d.ts +0 -4
- package/dist/types/components/common/zonos-select-dialog-header/zonos-select-dialog-header.d.ts +12 -0
- package/dist/types/components/common/zonos-spinner/zonos-spinner.d.ts +1 -1
- package/dist/types/components/common/zonos-text/zonos-text.d.ts +1 -5
- package/dist/types/components/common/zonos-tooltip/zonos-tooltip.d.ts +12 -0
- package/dist/types/components/common/zonos-v-stack/zonos-v-stack.d.ts +0 -4
- package/dist/types/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.d.ts +5 -0
- package/dist/types/components/hello/zonos-hello-dialog/zonos-hello-dialog.d.ts +2 -0
- package/dist/types/components/store/checkout/stripe.d.ts +9 -0
- package/dist/types/components/store/hello/localization.d.ts +2 -1
- package/dist/types/components/store/translationStore/strings.arabic.d.ts +18 -0
- package/dist/types/components/store/translationStore/strings.base.d.ts +18 -0
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +18 -0
- package/dist/types/components/store/translationStore/strings.danish.d.ts +18 -0
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +18 -0
- package/dist/types/components/store/translationStore/strings.french.d.ts +18 -0
- package/dist/types/components/store/translationStore/strings.german.d.ts +18 -0
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +18 -0
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +18 -0
- package/dist/types/components/store/translationStore/strings.italian.d.ts +18 -0
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +18 -0
- package/dist/types/components/store/translationStore/strings.korean.d.ts +18 -0
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +18 -0
- package/dist/types/components/store/translationStore/strings.polish.d.ts +18 -0
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +18 -0
- package/dist/types/components/store/translationStore/strings.russian.d.ts +18 -0
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +18 -0
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +18 -0
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +18 -0
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +18 -0
- package/dist/types/components/stripe/zonos-address/zonos-address.d.ts +7 -0
- package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
- package/dist/types/components/utils/api/triggerBuildLandedCost.d.ts +18 -2
- package/dist/types/components/utils/changeDeepProperty.d.ts +1 -1
- package/dist/types/components/utils/changeDeepPropertyAtIndex.d.ts +1 -1
- package/dist/types/components/utils/checkout/isCheckoutMobile.d.ts +1 -1
- package/dist/types/components/utils/getBorderRadius.d.ts +1 -1
- package/dist/types/components.d.ts +242 -116
- package/dist/types/types/ILanguage.d.ts +81 -0
- package/dist/types/types/checkout/CheckoutConfig.d.ts +3 -3
- package/dist/types/types/checkout/api/CalculateLandedCostRequest.d.ts +13 -0
- package/dist/types/types/generated/graphql.customer.types.d.ts +16 -4
- package/dist/types/types/generated/graphql.customer.types.ts +21 -4
- package/dist/types/types/generated/graphql.frontend.types.d.ts +6 -6
- package/dist/types/types/generated/graphql.frontend.types.ts +14 -4
- package/dist/types/types/index.d.ts +1 -1
- package/dist/types/types/styles/Color.d.ts +2 -0
- package/dist/zonos-elements/index.esm.js +0 -1
- package/dist/zonos-elements/{p-eb96f893.system.entry.js → p-00d63df1.system.entry.js} +1 -1
- package/dist/zonos-elements/p-04f63cea.entry.js +1 -0
- package/dist/zonos-elements/{p-7cae86a0.system.entry.js → p-06652d87.system.entry.js} +1 -1
- package/dist/zonos-elements/p-066c5893.system.js +1 -0
- package/dist/zonos-elements/p-0c7480a5.entry.js +1 -0
- package/dist/zonos-elements/p-16ad90ca.js +1 -0
- package/dist/zonos-elements/p-16b74c31.system.js +1 -0
- package/dist/zonos-elements/{p-0024f8c2.js → p-17550a10.js} +1 -1
- package/dist/zonos-elements/p-1d16a6fb.js +1 -0
- package/dist/zonos-elements/p-1ea68e3b.entry.js +1 -0
- package/dist/zonos-elements/{p-28d7b75d.entry.js → p-1ed530cc.entry.js} +1 -1
- package/dist/zonos-elements/p-289c8b1a.system.entry.js +1 -0
- package/dist/zonos-elements/{p-8970e202.system.entry.js → p-2a00c270.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-be23cc91.system.entry.js → p-32bca9c8.system.entry.js} +1 -1
- package/dist/zonos-elements/p-37f53a79.entry.js +1 -0
- package/dist/zonos-elements/p-394cf1cf.js +1 -0
- package/dist/zonos-elements/p-3ef27745.js +1 -0
- package/dist/zonos-elements/{p-7beaee33.system.entry.js → p-458fd100.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-e8da4463.js → p-47fac33f.js} +1 -1
- package/dist/zonos-elements/p-49a764e9.system.entry.js +1 -0
- package/dist/zonos-elements/p-4fafb2a5.system.entry.js +1 -0
- package/dist/zonos-elements/p-4fb71a93.js +1 -0
- package/dist/zonos-elements/{p-dc09ca69.system.js → p-50287643.system.js} +1 -1
- package/dist/zonos-elements/p-50ea2036.system.js +1 -0
- package/dist/zonos-elements/p-5276c61b.system.entry.js +1 -0
- package/dist/zonos-elements/p-56ba5cbf.system.js +1 -0
- package/dist/zonos-elements/{p-5a0264e8.system.entry.js → p-5a113c3d.system.entry.js} +1 -1
- package/dist/zonos-elements/p-6308b347.entry.js +1 -0
- package/dist/zonos-elements/p-63d1b1fe.entry.js +1 -0
- package/dist/zonos-elements/p-7347ee7c.system.entry.js +1 -0
- package/dist/zonos-elements/p-7a6144b1.entry.js +1 -0
- package/dist/zonos-elements/p-7dd8e8ba.system.entry.js +1 -0
- package/dist/zonos-elements/p-81a54668.js +1 -0
- package/dist/zonos-elements/p-8c26a080.system.js +1 -0
- package/dist/zonos-elements/p-96aabe02.entry.js +1 -0
- package/dist/zonos-elements/p-9cbbf261.system.entry.js +1 -0
- package/dist/zonos-elements/p-a33745e9.entry.js +1 -0
- package/dist/zonos-elements/{p-5d91e45c.entry.js → p-a4de3fb2.entry.js} +1 -1
- package/dist/zonos-elements/p-a682fd38.system.entry.js +1 -0
- package/dist/zonos-elements/p-abe7524f.system.js +1 -0
- package/dist/zonos-elements/p-aed0098c.system.js +1 -0
- package/dist/zonos-elements/{p-73174d0c.system.entry.js → p-b81a0577.system.entry.js} +1 -1
- package/dist/zonos-elements/p-ba1a111a.system.entry.js +1 -0
- package/dist/zonos-elements/p-ba43275e.entry.js +1 -0
- package/dist/zonos-elements/p-bd6a2095.entry.js +1 -0
- package/dist/zonos-elements/{p-f82e000f.system.entry.js → p-c4321084.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-824ebf9d.entry.js → p-cdf114a2.entry.js} +1 -1
- package/dist/zonos-elements/p-d5ae3cbb.system.entry.js +1 -0
- package/dist/zonos-elements/p-d5d7c8f5.entry.js +1 -0
- package/dist/zonos-elements/p-dd7729fd.system.entry.js +1 -0
- package/dist/zonos-elements/p-de339fb6.entry.js +1 -0
- package/dist/zonos-elements/p-e1255160.js +1 -0
- package/dist/zonos-elements/p-e8a9bc56.entry.js +1 -0
- package/dist/zonos-elements/{p-7f68c103.system.js → p-e99d79d9.system.js} +1 -1
- package/dist/zonos-elements/p-ec25f180.entry.js +1 -0
- package/dist/zonos-elements/p-f49dfd06.system.js +1 -0
- package/dist/zonos-elements/{p-1165b6e5.entry.js → p-f6f5f644.entry.js} +1 -1
- package/dist/zonos-elements/p-fcc4f140.system.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 +17 -18
- package/dist/cjs/zonos-address_2.cjs.entry.js +0 -141
- package/dist/cjs/zonos-badge.cjs.entry.js +0 -38
- package/dist/cjs/zonos-button_2.cjs.entry.js +0 -130
- package/dist/cjs/zonos-icon.cjs.entry.js +0 -35
- package/dist/collection/components/common/zonos-country-select/assets/arrowLeftBlue.svg +0 -1
- package/dist/components/zonos-logo2.js +0 -48
- package/dist/esm/getBorderRadius-9e4cb3b1.js +0 -16
- package/dist/esm/zonos-address_2.entry.js +0 -136
- package/dist/esm/zonos-badge.entry.js +0 -34
- package/dist/esm/zonos-button_2.entry.js +0 -125
- package/dist/esm/zonos-icon.entry.js +0 -31
- package/dist/esm-es5/cart-ba9b0d4c.js +0 -1
- package/dist/esm-es5/getBorderRadius-9e4cb3b1.js +0 -1
- package/dist/esm-es5/localization-5d83fde2.js +0 -1
- package/dist/esm-es5/submitGtag-a7d07aec.js +0 -1
- package/dist/esm-es5/zonos-address_2.entry.js +0 -1
- package/dist/esm-es5/zonos-badge.entry.js +0 -1
- package/dist/esm-es5/zonos-button_2.entry.js +0 -1
- package/dist/esm-es5/zonos-cart-items_10.entry.js +0 -1
- package/dist/esm-es5/zonos-country-flag_4.entry.js +0 -1
- package/dist/esm-es5/zonos-icon.entry.js +0 -1
- package/dist/zonos-elements/p-027abb50.entry.js +0 -1
- package/dist/zonos-elements/p-12c19be6.system.entry.js +0 -1
- package/dist/zonos-elements/p-12ecf765.system.js +0 -1
- package/dist/zonos-elements/p-1c00ffea.system.entry.js +0 -1
- package/dist/zonos-elements/p-21793192.entry.js +0 -1
- package/dist/zonos-elements/p-245997d9.js +0 -1
- package/dist/zonos-elements/p-26edde4d.system.entry.js +0 -1
- package/dist/zonos-elements/p-39d12bf0.entry.js +0 -1
- package/dist/zonos-elements/p-3d965e88.entry.js +0 -1
- package/dist/zonos-elements/p-410045c5.system.entry.js +0 -1
- package/dist/zonos-elements/p-59343e23.system.js +0 -1
- package/dist/zonos-elements/p-7748735d.entry.js +0 -1
- package/dist/zonos-elements/p-839f6cd9.entry.js +0 -1
- package/dist/zonos-elements/p-83bb8727.system.entry.js +0 -1
- package/dist/zonos-elements/p-8ebc0b64.js +0 -1
- package/dist/zonos-elements/p-9f3cad08.entry.js +0 -1
- package/dist/zonos-elements/p-a6f2e282.system.js +0 -1
- package/dist/zonos-elements/p-afed9236.entry.js +0 -1
- package/dist/zonos-elements/p-b035f9e5.system.js +0 -1
- package/dist/zonos-elements/p-b1ffb37b.entry.js +0 -1
- package/dist/zonos-elements/p-b87fa3a1.js +0 -1
- package/dist/zonos-elements/p-bd02a65c.entry.js +0 -1
- package/dist/zonos-elements/p-be4bc6bc.entry.js +0 -1
- package/dist/zonos-elements/p-bea31a7b.system.entry.js +0 -1
- package/dist/zonos-elements/p-c3d75f4f.system.js +0 -1
- package/dist/zonos-elements/p-da2387d2.system.entry.js +0 -1
- package/dist/zonos-elements/p-dcf1e1b4.system.entry.js +0 -1
- package/dist/zonos-elements/p-ee8b44c0.system.js +0 -1
- package/dist/zonos-elements/p-efd1544b.system.entry.js +0 -1
- package/dist/zonos-elements/p-f2733cc7.js +0 -1
- package/dist/zonos-elements/p-f342e7c7.entry.js +0 -1
- package/dist/zonos-elements/p-fdb9568e.entry.js +0 -1
- /package/dist/cjs/{index-3ead02fe.js → index-72767498.js} +0 -0
- /package/dist/esm/{index-81a199ef.js → index-b5be4dc3.js} +0 -0
- /package/dist/esm-es5/{index-81a199ef.js → index-b5be4dc3.js} +0 -0
- /package/dist/zonos-elements/{p-4d8545e1.js → p-58127116.js} +0 -0
- /package/dist/zonos-elements/{p-4d39efb6.system.js → p-d1ab0823.system.js} +0 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { localizationStore } from "../../../store/hello/localization";
|
|
3
|
+
import { zonosStore } from "../../../store/zonosStore";
|
|
4
|
+
import { classes } from "../../../utils/classes";
|
|
5
|
+
import { isDarkColor } from "../../../utils/isDarkColor";
|
|
6
|
+
import { languages } from "../../../../types/ILanguage";
|
|
7
|
+
// eslint-disable-next-line no-relative-import-paths/no-relative-import-paths
|
|
8
|
+
import Globe from "./assets/globe.svg";
|
|
9
|
+
// eslint-disable-next-line no-relative-import-paths/no-relative-import-paths
|
|
10
|
+
import ZonosIcon from "./assets/zonosIcon.svg";
|
|
11
|
+
export class ZonosCheckoutFooter {
|
|
12
|
+
constructor() {
|
|
13
|
+
this.showDialog = false;
|
|
14
|
+
}
|
|
15
|
+
handleGlobalClick(e) {
|
|
16
|
+
if (!this.el.contains(e.target) && this.showDialog) {
|
|
17
|
+
this.showDialog = false;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
toggleDialog() {
|
|
21
|
+
this.showDialog = !this.showDialog;
|
|
22
|
+
}
|
|
23
|
+
render() {
|
|
24
|
+
var _a, _b;
|
|
25
|
+
const primaryColor = (_a = zonosStore.appearance) === null || _a === void 0 ? void 0 : _a.colorPrimary;
|
|
26
|
+
const footerTheme = primaryColor && isDarkColor(primaryColor) ? 'DARK' : 'LIGHT';
|
|
27
|
+
const languageLabel = (_b = languages.find(x => x.code === localizationStore.selectedLocale)) === null || _b === void 0 ? void 0 : _b.label;
|
|
28
|
+
return (h(Host, { key: 'cadd2ef8877c716cdeb1f5f40642e41cabc2a55d', class: "zonos--elements" }, h("div", { key: '480995fd1ca7bc41702d15dd40d64e02a9ba09dd', class: "zonos--checkout-footer", "data-theme": footerTheme, style: { '--primary-color': primaryColor } }, h("div", { key: 'b83ebb3203542f7f4a227b50b26010cbeb914294', class: "zonos--checkout-locale-wrapper" }, h("zonos-button", { key: '66ad21d85629d159b4ff3341e82c92d6bd19ceca', class: "zonos--checkout-footer-language-button", icon: h("zonos-icon", { "aria-label": "Language select", content: Globe, iconColor: "gray-700" }), onClick: () => this.toggleDialog(), variant: "subtle" }, languageLabel), h("div", { key: '1e8dce34f3866570f267233644c6d5549cf02c9b', class: classes([
|
|
29
|
+
'zonos--checkout-footer-dialog',
|
|
30
|
+
this.showDialog && 'zonos--checkout-footer-dialog-open',
|
|
31
|
+
]) }, h("zonos-language-select", { key: '194aeb20273058577d2cbf3b72eef5f7152129e6', handleOnClose: () => this.toggleDialog() }))), h("div", { key: '56b5f28d98eeb5390b59da3dfbc072f967e945a0', class: "zonos--checkout-footer-icon-wrapper" }, h("zonos-text", { key: 'b098a9c89d4855d388372b20c94ee3582cc4e9df', type: "caption" }, "Powered by"), h("a", { key: '0652328fc74701168e5ddec2e0662208498e4557', href: "https://zonos.com", target: "_blank", title: "Zonos website" }, h("zonos-icon", { key: '826323504ca56c3216524d3a9a49f820162aeb85', autoHeight: true, content: ZonosIcon, iconColor: "gray-1200", size: 108 }))))));
|
|
32
|
+
}
|
|
33
|
+
static get is() { return "zonos-checkout-footer"; }
|
|
34
|
+
static get encapsulation() { return "shadow"; }
|
|
35
|
+
static get originalStyleUrls() {
|
|
36
|
+
return {
|
|
37
|
+
"$": ["zonos-checkout-footer.scss"]
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
static get styleUrls() {
|
|
41
|
+
return {
|
|
42
|
+
"$": ["zonos-checkout-footer.css"]
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
static get states() {
|
|
46
|
+
return {
|
|
47
|
+
"showDialog": {}
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
static get elementRef() { return "el"; }
|
|
51
|
+
static get listeners() {
|
|
52
|
+
return [{
|
|
53
|
+
"name": "click",
|
|
54
|
+
"method": "handleGlobalClick",
|
|
55
|
+
"target": "document",
|
|
56
|
+
"capture": false,
|
|
57
|
+
"passive": false
|
|
58
|
+
}];
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -63,9 +63,13 @@
|
|
|
63
63
|
margin-bottom: var(--amino-space-8);
|
|
64
64
|
}
|
|
65
65
|
:host .zonos--group-btn {
|
|
66
|
+
position: sticky;
|
|
66
67
|
display: flex;
|
|
67
68
|
justify-content: center;
|
|
69
|
+
bottom: 0;
|
|
70
|
+
margin-top: var(--amino-space-12);
|
|
71
|
+
background: var(--primary-color, var(--amino-gray-0));
|
|
68
72
|
}
|
|
69
73
|
:host .zonos--group-btn zonos-button {
|
|
70
|
-
width:
|
|
74
|
+
width: 100%;
|
|
71
75
|
}
|
|
@@ -30,12 +30,12 @@ export class ZonosCheckoutPayment {
|
|
|
30
30
|
return null;
|
|
31
31
|
}
|
|
32
32
|
this.disabled = !((_a = stripeStore.stripePaymentEventData) === null || _a === void 0 ? void 0 : _a.complete);
|
|
33
|
-
return (h(Host, { class: "zonos--checkout-payment zonos--elements" }, h("div", { class: "zonos--group" }, h("zonos-text", { class: "zonos--title", type: "semiBoldSubheader" }, translate('Payment method')), this.paymentError && (h("zonos-banner", { class: "zonos--payment-error-banner", intent: "error" }, translate("We couldn't complete your payment. Please verify the payment details and try again."))), h("zonos-payment", null)
|
|
33
|
+
return (h(Host, { class: "zonos--checkout-payment zonos--elements" }, h("div", { class: "zonos--group" }, h("zonos-text", { class: "zonos--title", type: "semiBoldSubheader" }, translate('Payment method')), this.paymentError && (h("zonos-banner", { class: "zonos--payment-error-banner", intent: "error" }, translate("We couldn't complete your payment. Please verify the payment details and try again."))), h("zonos-payment", null), h("div", { class: "zonos--group-btn" }, h("zonos-button", { backgroundColor: this.submitBtnColor, isDisabled: this.disabled, loading: this.continueLoading, onClick: () => this.continueClickHandler(), size: "lg",
|
|
34
34
|
// use primary type when on mobile mode
|
|
35
35
|
variant: this.submitBtnType }, "Pay", ' ', formatCurrency({
|
|
36
36
|
amount: cartStore.total,
|
|
37
37
|
currency: cartStore.currency,
|
|
38
|
-
})))));
|
|
38
|
+
}))))));
|
|
39
39
|
}
|
|
40
40
|
static get is() { return "zonos-checkout-payment"; }
|
|
41
41
|
static get encapsulation() { return "scoped"; }
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
:host .zonos--content .zonos--left,
|
|
56
56
|
:host .zonos--content .zonos--right {
|
|
57
57
|
flex: 1;
|
|
58
|
-
padding: var(--amino-space-48) var(--amino-space-56);
|
|
58
|
+
padding: var(--amino-space-48) var(--amino-space-56) var(--amino-space-76);
|
|
59
59
|
}
|
|
60
60
|
:host .zonos--content .zonos--left {
|
|
61
61
|
background-color: var(--primary-color, var(--amino-gray-0));
|
|
@@ -63,7 +63,6 @@
|
|
|
63
63
|
}
|
|
64
64
|
:host .zonos--content .zonos--right {
|
|
65
65
|
background-color: var(--amino-gray-0);
|
|
66
|
-
padding-bottom: var(--amino-space-80);
|
|
67
66
|
}
|
|
68
67
|
:host .zonos--content .zonos--done {
|
|
69
68
|
width: 100%;
|
|
@@ -114,15 +113,6 @@
|
|
|
114
113
|
right: var(--amino-space-24);
|
|
115
114
|
top: var(--amino-space-24);
|
|
116
115
|
}
|
|
117
|
-
:host .zonos--footer {
|
|
118
|
-
display: flex;
|
|
119
|
-
justify-content: flex-end;
|
|
120
|
-
align-items: center;
|
|
121
|
-
position: absolute;
|
|
122
|
-
bottom: var(--amino-space-32);
|
|
123
|
-
right: var(--amino-space-56);
|
|
124
|
-
gap: var(--amino-space-8);
|
|
125
|
-
}
|
|
126
116
|
:host .zonos--wrapper {
|
|
127
117
|
overflow: auto;
|
|
128
118
|
max-height: 100%;
|
|
@@ -168,9 +158,17 @@
|
|
|
168
158
|
:host(.mobile) .zonos--content .zonos--left,
|
|
169
159
|
:host(.mobile) .zonos--content .zonos--right {
|
|
170
160
|
padding: var(--amino-space-12);
|
|
161
|
+
padding-bottom: var(--amino-space-76);
|
|
162
|
+
}
|
|
163
|
+
@media (max-width: 768px) {
|
|
164
|
+
:host(.mobile) .zonos--content .zonos--left,
|
|
165
|
+
:host(.mobile) .zonos--content .zonos--right {
|
|
166
|
+
padding-bottom: var(--amino-space-0);
|
|
167
|
+
}
|
|
171
168
|
}
|
|
172
169
|
:host(.mobile) .zonos--content .zonos--left {
|
|
173
170
|
order: 2;
|
|
171
|
+
border-right: none;
|
|
174
172
|
}
|
|
175
173
|
:host(.mobile) .zonos--content .zonos--right {
|
|
176
174
|
order: 1;
|
|
@@ -179,14 +177,21 @@
|
|
|
179
177
|
:host(.mobile) .zonos--content .zonos--right .zonos--wrapper {
|
|
180
178
|
display: flex;
|
|
181
179
|
flex-direction: column;
|
|
182
|
-
gap: var(--amino-space-16);
|
|
183
|
-
margin-top: var(--amino-space-24);
|
|
184
180
|
border: var(--amino-border);
|
|
185
181
|
border-radius: var(--border-radius, var(--amino-radius-10));
|
|
186
182
|
background-color: var(--amino-gray-50);
|
|
187
183
|
padding: var(--amino-space-12);
|
|
188
184
|
margin-top: var(--amino-space-32);
|
|
189
185
|
}
|
|
186
|
+
:host(.mobile) .zonos--content .zonos--right .zonos--review {
|
|
187
|
+
margin-bottom: 0;
|
|
188
|
+
}
|
|
189
|
+
:host(.mobile) .zonos--content .zonos--right .zonos--cart-items {
|
|
190
|
+
margin-top: var(--amino-space-8);
|
|
191
|
+
}
|
|
192
|
+
:host(.mobile) .zonos--content zonos-checkout-footer {
|
|
193
|
+
order: 3;
|
|
194
|
+
}
|
|
190
195
|
:host(.mobile) .zonos--content .zonos--wrapper {
|
|
191
196
|
max-height: 100%;
|
|
192
197
|
}
|
|
@@ -198,14 +203,4 @@
|
|
|
198
203
|
}
|
|
199
204
|
:host(.mobile) .zonos--cart-subtotal {
|
|
200
205
|
margin: 0;
|
|
201
|
-
}
|
|
202
|
-
:host(.mobile) .zonos--footer {
|
|
203
|
-
bottom: 0;
|
|
204
|
-
left: 0;
|
|
205
|
-
padding: var(--amino-space-12);
|
|
206
|
-
position: relative;
|
|
207
|
-
display: flex;
|
|
208
|
-
align-items: center;
|
|
209
|
-
justify-content: center;
|
|
210
|
-
background-color: var(--amino-gray-0);
|
|
211
206
|
}
|
|
@@ -21,11 +21,12 @@ import RemoveIcon from "./assets/RemoveIcon.svg";
|
|
|
21
21
|
export class ZonosCheckout {
|
|
22
22
|
constructor() {
|
|
23
23
|
this.applyStripeTheme = async () => {
|
|
24
|
-
var _a, _b, _c;
|
|
24
|
+
var _a, _b, _c, _d;
|
|
25
25
|
const theme = ((_a = this.appearanceSettingsOverride) === null || _a === void 0 ? void 0 : _a.theme) || zonosStore.appearance.theme;
|
|
26
26
|
await initStripeElements({
|
|
27
27
|
overrideBorderRaidus: (_b = this.appearanceSettingsOverride) === null || _b === void 0 ? void 0 : _b.style,
|
|
28
28
|
overridePrimaryColor: (_c = this.appearanceSettingsOverride) === null || _c === void 0 ? void 0 : _c.colorPrimary,
|
|
29
|
+
overrideSecondaryColor: (_d = this.appearanceSettingsOverride) === null || _d === void 0 ? void 0 : _d.colorSecondary,
|
|
29
30
|
// only override theme or theme from appearance if it's mobile
|
|
30
31
|
overrideTheme: this.isMobile ? theme : undefined,
|
|
31
32
|
});
|
|
@@ -349,32 +350,27 @@ export class ZonosCheckout {
|
|
|
349
350
|
// only use submit button color if it's on desktop
|
|
350
351
|
const submitButtonColor = !this.isMobile ? colorSecondary : undefined;
|
|
351
352
|
const { customMessages } = localizationStore;
|
|
352
|
-
const defaultMessage = (
|
|
353
|
-
'Know about duties and taxes before you buy. Shop with confidence!';
|
|
353
|
+
const defaultMessage = (_a = customMessages.find(x => x.pageName === 'checkout_default')) === null || _a === void 0 ? void 0 : _a.message;
|
|
354
354
|
const localePageEnum = this.getCurrentLocalePageEnum();
|
|
355
355
|
const filteredMessages = customMessages.filter(x => x.pageName === localePageEnum);
|
|
356
356
|
const renderLogo = () => (h("div", { class: "zonos--logo" }, logoUrl && (h("img", { alt: `${zonosStore.organizationName} logo`, src: logoUrl, width: 100 }))));
|
|
357
|
-
const renderTopHeader = () => (h("zonos-v-stack", null, renderLogo(), filteredMessages.map(x => (h("zonos-custom-message", { icon: MessageIcon, message: x.message }))), h("div", null, h("zonos-button", { class: "zonos--back-button", icon: h("zonos-icon", { content: LeftArrow }), noBackground: true, noPaddingLeft: true, noPaddingRight: true, onClick: () => this.handleBackClick(), theme: leftSideTheme }, translate('Back')))));
|
|
358
|
-
const renderFooter = () => hasFooter && (h("div", { class: "zonos--footer", "data-theme": rightSideTheme }, h("zonos-text", { type: "hintText" }, translate('Powered by')), h("zonos-logo", { theme: rightSideTheme, width: "100px" })));
|
|
357
|
+
const renderTopHeader = () => (h("zonos-v-stack", null, renderLogo(), filteredMessages.map(x => (h("zonos-custom-message", { icon: MessageIcon, message: x.message }))), h("div", null, h("zonos-button", { class: "zonos--back-button", icon: h("zonos-icon", { "aria-label": "Back to previous step", content: LeftArrow }), noBackground: true, noPaddingLeft: true, noPaddingRight: true, onClick: () => this.handleBackClick(), theme: leftSideTheme }, translate('Back')))));
|
|
359
358
|
const renderContent = () => {
|
|
360
|
-
var _a;
|
|
361
|
-
const submitBtnType = this.isMobile ? 'primary' : undefined;
|
|
362
|
-
const reviewElementSize = (_a = this.zonosReviewRef) === null || _a === void 0 ? void 0 : _a.scrollHeight;
|
|
363
359
|
return (h("div", { class: 'zonos--content', style: {
|
|
364
360
|
'--border-radius': getBorderRadius(style),
|
|
365
361
|
} }, cartStore.step !== 'finish' && cartStore.step !== 'error' && (h(Fragment, null, h("div", { class: "zonos--left", "data-theme": leftSideTheme, style: {
|
|
366
362
|
'--primary-color': !this.isMobile ? colorPrimary : '',
|
|
367
|
-
} }, !this.isMobile && renderTopHeader(), cartStore.step === 'customer-info' && (h("zonos-customer-info", { continueLoading: this.submitLoading, defaultAddress: this.defaultAddress, onContinueClicked: () => this.handleCustomerInfoContinue(), submitBtnColor: submitButtonColor
|
|
368
|
-
// only collapse on mobile
|
|
369
|
-
collapsed: this.collapseReviewMobile && this.isMobile }, h("zonos-review", { collapsed: this.collapseReviewMobile, mobile: this.isMobile, onClick: () => {
|
|
363
|
+
} }, !this.isMobile && renderTopHeader(), cartStore.step === 'customer-info' && (h("zonos-customer-info", { continueLoading: this.submitLoading, defaultAddress: this.defaultAddress, onContinueClicked: () => this.handleCustomerInfoContinue(), submitBtnColor: submitButtonColor })), cartStore.step === 'shipping' && (h("zonos-shipping", { continueLoading: this.submitLoading, onContinueClicked: () => this.handleShippingContinue(), submitBtnColor: submitButtonColor })), cartStore.step === 'payment' && (h("zonos-checkout-payment", { continueLoading: this.submitLoading, onContinueClicked: () => this.handleCheckoutPaymentContinue(), paymentError: this.paymentError, submitBtnColor: submitButtonColor }))), h("div", { class: "zonos--right", "data-theme": rightSideTheme }, this.isMobile && renderTopHeader(), !this.isMobile && (h("zonos-button", { class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close checkout dialog", content: RemoveIcon }), noBackground: true, onClick: () => this.closeDialogHandler() })), h("div", { class: "flex--wrapper" }, h("div", { class: "zonos--wrapper" }, h("zonos-review", { collapsed: this.collapseReviewMobile, mobile: this.isMobile, onClick: () => {
|
|
370
364
|
// do nothing if it's not mobile
|
|
371
365
|
if (!this.isMobile) {
|
|
372
366
|
return;
|
|
373
367
|
}
|
|
374
|
-
this.collapseReviewMobile =
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
368
|
+
this.collapseReviewMobile = !this.collapseReviewMobile;
|
|
369
|
+
} }), h("zonos-collapse", {
|
|
370
|
+
// only collapse on mobile
|
|
371
|
+
collapsed: this.collapseReviewMobile && this.isMobile
|
|
372
|
+
}, h("zonos-cart-items", null))), h("zonos-v-stack", { spacing: 16 }, h("zonos-cart-subtotal", null), h("zonos-custom-message", { class: "zonos--checkout-default-message", icon: MessageIcon, message: defaultMessage })))))), (cartStore.step === 'finish' || cartStore.step === 'error') && (h("div", { class: "zonos--done", "data-theme": rightSideTheme }, h("div", { class: "zonos--header" }, renderLogo(), h("zonos-button", { class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close checkout dialog", content: RemoveIcon }), noBackground: true, onClick: () => this.handleFinishClick(), theme: rightSideTheme })), h("zonos-checkout-finish", { borderRadius: style, onCloseClick: () => this.handleFinishClick(), overrideNotification: cartStore.step === 'error' && !!cartStore.error
|
|
373
|
+
? Object.assign(Object.assign({}, cartStore.error), { type: 'error' }) : undefined, storybookForceStatus: this.storybookPaymentStatusOverride }))), h("zonos-checkout-footer", null)));
|
|
378
374
|
};
|
|
379
375
|
return (h(Host, { class: classes([
|
|
380
376
|
'zonos--checkout zonos--elements',
|
|
@@ -42,6 +42,15 @@
|
|
|
42
42
|
:host .zonos--link-authentication {
|
|
43
43
|
margin-bottom: var(--amino-space-32);
|
|
44
44
|
}
|
|
45
|
+
:host .zonos--address {
|
|
46
|
+
margin-bottom: var(--amino-space-16);
|
|
47
|
+
}
|
|
48
|
+
:host .zonos--checkbox {
|
|
49
|
+
margin-bottom: var(--amino-space-16);
|
|
50
|
+
}
|
|
51
|
+
:host .zonos--checkbox + .zonos--address {
|
|
52
|
+
margin-bottom: 0;
|
|
53
|
+
}
|
|
45
54
|
:host .zonos--group {
|
|
46
55
|
margin-bottom: var(--amino-space-20);
|
|
47
56
|
overflow: auto;
|
|
@@ -63,9 +72,13 @@
|
|
|
63
72
|
background: #d6d6d6;
|
|
64
73
|
}
|
|
65
74
|
:host .zonos--group-btn {
|
|
75
|
+
position: sticky;
|
|
66
76
|
display: flex;
|
|
67
77
|
justify-content: center;
|
|
78
|
+
bottom: 0;
|
|
79
|
+
margin-top: var(--amino-space-12);
|
|
80
|
+
background: var(--primary-color, var(--amino-gray-0));
|
|
68
81
|
}
|
|
69
82
|
:host .zonos--group-btn zonos-button {
|
|
70
|
-
width:
|
|
83
|
+
width: 100%;
|
|
71
84
|
}
|
|
@@ -23,17 +23,25 @@ export class ZonosCustomerInfo {
|
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
render() {
|
|
26
|
-
var _a, _b;
|
|
26
|
+
var _a, _b, _c, _d;
|
|
27
27
|
if (!stripeStore.stripeElements) {
|
|
28
28
|
return null;
|
|
29
29
|
}
|
|
30
|
+
// if the shipping is different from billing, we need to make sure the billing address is valid and disable the button if it's not
|
|
31
|
+
const isValidBilling = stripeStore.stripeShippingSameAsBilling
|
|
32
|
+
? !!((_a = stripeStore.stripeAddressEventData) === null || _a === void 0 ? void 0 : _a.complete)
|
|
33
|
+
: !!((_b = stripeStore.stripeBillingAddressEventData) === null || _b === void 0 ? void 0 : _b.complete);
|
|
30
34
|
// make sure data is valid
|
|
31
35
|
this.disabled =
|
|
32
|
-
!
|
|
33
|
-
!((
|
|
34
|
-
|
|
36
|
+
!isValidBilling ||
|
|
37
|
+
!((_c = stripeStore.stripeAddressEventData) === null || _c === void 0 ? void 0 : _c.complete) ||
|
|
38
|
+
!((_d = stripeStore.stripeLinkEventData) === null || _d === void 0 ? void 0 : _d.complete);
|
|
39
|
+
const showBilling = !stripeStore.stripeShippingSameAsBilling;
|
|
40
|
+
return (h(Host, { class: "zonos--customer-info zonos--elements" }, h("div", { class: "zonos--group" }, h("zonos-text", { class: "zonos--title", type: "semiBoldSubheader" }, translate('Customer information')), h("zonos-link-authentication", { titleText: translate('Contact') }), h("zonos-address", { defaultAddress: this.defaultAddress, titleText: translate('Address'), type: "shipping" }), h("zonos-checkbox", { isChecked: stripeStore.stripeShippingSameAsBilling, label: translate('Shipping address same as billing'), onCheckboxSelected: e => {
|
|
41
|
+
stripeStore.stripeShippingSameAsBilling = e.detail;
|
|
42
|
+
} }), h("zonos-collapse", { collapsed: !showBilling }, h("zonos-address", { defaultAddress: this.defaultAddress, titleText: translate('Billing address'), type: "billing" })), h("div", { class: "zonos--group-btn" }, h("zonos-button", { backgroundColor: this.submitBtnColor, isDisabled: this.disabled, loading: this.continueLoading, onClick: () => this.continueClickHandler(), size: "lg",
|
|
35
43
|
// use primary type when on mobile mode
|
|
36
|
-
variant: this.submitBtnType }, translate('Continue to shipping')))));
|
|
44
|
+
variant: this.submitBtnType }, translate('Continue to shipping'))))));
|
|
37
45
|
}
|
|
38
46
|
static get is() { return "zonos-customer-info"; }
|
|
39
47
|
static get encapsulation() { return "scoped"; }
|
|
@@ -31,6 +31,12 @@
|
|
|
31
31
|
-webkit-font-smoothing: antialiased;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
+
:host {
|
|
35
|
+
position: sticky;
|
|
36
|
+
top: 0;
|
|
37
|
+
background-color: var(--amino-gray-0);
|
|
38
|
+
z-index: 1;
|
|
39
|
+
}
|
|
34
40
|
:host .zonos--total-pay {
|
|
35
41
|
margin: var(--amino-space-16) 0 var(--amino-space-32);
|
|
36
42
|
}
|
|
@@ -42,6 +48,7 @@
|
|
|
42
48
|
justify-content: space-between;
|
|
43
49
|
padding: var(--amino-space-4) 0;
|
|
44
50
|
margin-bottom: var(--amino-space-8);
|
|
51
|
+
background-color: transparent;
|
|
45
52
|
}
|
|
46
53
|
:host(.mobile) .zonos--title {
|
|
47
54
|
display: flex;
|
|
@@ -35,14 +35,14 @@ export class ZonosReview {
|
|
|
35
35
|
return null;
|
|
36
36
|
}
|
|
37
37
|
if (!this.collapsed) {
|
|
38
|
-
return (h("zonos-icon", {
|
|
38
|
+
return (h("zonos-icon", { "aria-label": "Collapse expanded section", content: ChevronDownIcon, iconColor: "gray-1200" }));
|
|
39
39
|
}
|
|
40
|
-
return (h("zonos-icon", {
|
|
40
|
+
return (h("zonos-icon", { "aria-label": "Expand collapsed section", content: ChevronUpIcon, iconColor: "gray-1200" }));
|
|
41
41
|
};
|
|
42
42
|
return (h(Host, { class: classes([
|
|
43
43
|
'zonos--review zonos--elements',
|
|
44
44
|
this.isMobile && 'mobile',
|
|
45
|
-
]) }, h("div", { class: "zonos--title" }, h("zonos-text", {
|
|
45
|
+
]) }, h("div", { class: "zonos--title" }, h("zonos-text", { textColor: titleTextColor, type: titleTextType }, translate('Pay'), " ", zonosStore.organizationName), renderCollapseIcon()), h("div", { class: "zonos--total-pay" }, h("zonos-text", { type: totalTextType }, formatCurrency({
|
|
46
46
|
amount:
|
|
47
47
|
// show total without taxes when step is shipping, show total with taxes when step is payment
|
|
48
48
|
cartStore.step === 'shipping'
|
package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.css
CHANGED
|
@@ -66,11 +66,15 @@
|
|
|
66
66
|
background: #d6d6d6;
|
|
67
67
|
}
|
|
68
68
|
:host .zonos--group-btn {
|
|
69
|
+
position: sticky;
|
|
69
70
|
display: flex;
|
|
70
71
|
justify-content: center;
|
|
72
|
+
bottom: 0;
|
|
73
|
+
margin-top: var(--amino-space-12);
|
|
74
|
+
background: var(--primary-color, var(--amino-gray-0));
|
|
71
75
|
}
|
|
72
76
|
:host .zonos--group-btn zonos-button {
|
|
73
|
-
width:
|
|
77
|
+
width: 100%;
|
|
74
78
|
}
|
|
75
79
|
:host zonos-banner {
|
|
76
80
|
margin-top: var(--amino-space-24);
|
|
@@ -63,9 +63,9 @@ export class ZonosShipping {
|
|
|
63
63
|
value: item.id,
|
|
64
64
|
};
|
|
65
65
|
});
|
|
66
|
-
return (h(Host, { class: "zonos--shipping zonos--elements" }, h("div", { class: "zonos--group" }, h("zonos-text", { class: "zonos--title", type: "semiBoldSubheader" }, translate('Shipping information')), h("zonos-text", { class: "zonos--shipping-method-title", type: "semiBoldLabel" }, translate('Shipping method')), !(serviceLevels === null || serviceLevels === void 0 ? void 0 : serviceLevels.length) ? (h("zonos-banner", { bannerTitle: "No shipping methods found - try editing your address or contacting support if the error persists", intent: "error" })) : (h("zonos-shipping-rich-radio", { items: serviceLevels || [], onRadioSelected: e => this.handleRadioSelected(e) }))
|
|
66
|
+
return (h(Host, { class: "zonos--shipping zonos--elements" }, h("div", { class: "zonos--group" }, h("zonos-text", { class: "zonos--title", type: "semiBoldSubheader" }, translate('Shipping information')), h("zonos-text", { class: "zonos--shipping-method-title", type: "semiBoldLabel" }, translate('Shipping method')), !(serviceLevels === null || serviceLevels === void 0 ? void 0 : serviceLevels.length) ? (h("zonos-banner", { bannerTitle: "No shipping methods found - try editing your address or contacting support if the error persists", intent: "error" })) : (h("zonos-shipping-rich-radio", { items: serviceLevels || [], onRadioSelected: e => this.handleRadioSelected(e) })), h("div", { class: "zonos--group-btn" }, h("zonos-button", { backgroundColor: this.submitBtnColor, isDisabled: this.disabled, loading: this.continueLoading, onClick: () => this.continueClickHandler(), size: "lg",
|
|
67
67
|
// use primary type when on mobile mode
|
|
68
|
-
variant: this.submitBtnType }, translate('Go to payment'))));
|
|
68
|
+
variant: this.submitBtnType }, translate('Go to payment'))))));
|
|
69
69
|
}
|
|
70
70
|
static get is() { return "zonos-shipping"; }
|
|
71
71
|
static get encapsulation() { return "scoped"; }
|
|
@@ -4,24 +4,23 @@ import { classes } from "../../utils/classes";
|
|
|
4
4
|
export class ZonosBadge {
|
|
5
5
|
constructor() {
|
|
6
6
|
this.bold = false;
|
|
7
|
-
this.
|
|
7
|
+
this.badgeColor = 'gray';
|
|
8
8
|
this.icon = undefined;
|
|
9
9
|
this.iconRight = false;
|
|
10
10
|
this.size = 'default';
|
|
11
11
|
this.rounded = false;
|
|
12
|
-
this.class = '';
|
|
13
12
|
}
|
|
14
13
|
render() {
|
|
15
|
-
return (h(Host, { key: '
|
|
14
|
+
return (h(Host, { key: '0f502b63322730f508fd7c92f231573b1dfbfd6b', class: classes(['zonos--elements zonos--badge']), style: {
|
|
16
15
|
'--font-family': zonosStoreFontFamily(),
|
|
17
|
-
} }, h("div", { key: '
|
|
16
|
+
} }, h("div", { key: '4ee3f0b623067625ddd79336a1854f5ab796b3b1', class: classes([
|
|
18
17
|
'zonos--badge-content',
|
|
19
|
-
this.
|
|
18
|
+
this.badgeColor,
|
|
20
19
|
this.rounded && 'rounded',
|
|
21
20
|
this.iconRight && 'icon-right',
|
|
22
21
|
this.size,
|
|
23
22
|
this.bold && 'bold',
|
|
24
|
-
]) }, this.icon, h("zonos-text", { key: '
|
|
23
|
+
]) }, this.icon, h("zonos-text", { key: 'e5bdf974408416811f7666fc453ca47db58fa43f' }, h("slot", { key: 'd953b60fefe2c25aea529b9de41938cfd96a285b' })))));
|
|
25
24
|
}
|
|
26
25
|
static get is() { return "zonos-badge"; }
|
|
27
26
|
static get encapsulation() { return "shadow"; }
|
|
@@ -58,7 +57,7 @@ export class ZonosBadge {
|
|
|
58
57
|
"reflect": false,
|
|
59
58
|
"defaultValue": "false"
|
|
60
59
|
},
|
|
61
|
-
"
|
|
60
|
+
"badgeColor": {
|
|
62
61
|
"type": "string",
|
|
63
62
|
"mutable": false,
|
|
64
63
|
"complexType": {
|
|
@@ -81,7 +80,7 @@ export class ZonosBadge {
|
|
|
81
80
|
}],
|
|
82
81
|
"text": "The size of the badge"
|
|
83
82
|
},
|
|
84
|
-
"attribute": "color",
|
|
83
|
+
"attribute": "badge-color",
|
|
85
84
|
"reflect": false,
|
|
86
85
|
"defaultValue": "'gray'"
|
|
87
86
|
},
|
|
@@ -170,24 +169,6 @@ export class ZonosBadge {
|
|
|
170
169
|
"attribute": "rounded",
|
|
171
170
|
"reflect": false,
|
|
172
171
|
"defaultValue": "false"
|
|
173
|
-
},
|
|
174
|
-
"class": {
|
|
175
|
-
"type": "string",
|
|
176
|
-
"mutable": false,
|
|
177
|
-
"complexType": {
|
|
178
|
-
"original": "string",
|
|
179
|
-
"resolved": "string",
|
|
180
|
-
"references": {}
|
|
181
|
-
},
|
|
182
|
-
"required": false,
|
|
183
|
-
"optional": false,
|
|
184
|
-
"docs": {
|
|
185
|
-
"tags": [],
|
|
186
|
-
"text": "css class for the component"
|
|
187
|
-
},
|
|
188
|
-
"attribute": "class",
|
|
189
|
-
"reflect": false,
|
|
190
|
-
"defaultValue": "''"
|
|
191
172
|
}
|
|
192
173
|
};
|
|
193
174
|
}
|
|
@@ -11,7 +11,6 @@ export class ZonosBanner {
|
|
|
11
11
|
};
|
|
12
12
|
this.bannerTitle = undefined;
|
|
13
13
|
this.intent = undefined;
|
|
14
|
-
this.class = '';
|
|
15
14
|
this.hasContent = false;
|
|
16
15
|
}
|
|
17
16
|
render() {
|
|
@@ -23,13 +22,9 @@ export class ZonosBanner {
|
|
|
23
22
|
h("slot", { onSlotchange: this.handleSlotChange }),
|
|
24
23
|
].filter(Boolean);
|
|
25
24
|
const textColor = color === 'gray' ? 'gray-1200' : `${color}-800`;
|
|
26
|
-
return (h("div", { class: classes(['zonos--container']) }, h("div", { class: "zonos--icon-wrapper" }, h("svg", { color: primaryColor, fill: "none", height: "20", viewBox: "0 0 24 24", width: "20", xmlns: "https://www.w3.org/2000/svg" }, h("path", { "clip-rule": "evenodd", d: "M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Z", "data-is-secondary-color": "true", fill: secondaryColor, "fill-rule": "evenodd" }), h("path", { "clip-rule": "evenodd", d: "M12 6.99a1 1 0 0 1 1 1V8a1 1 0 1 1-2 0v-.01a1 1 0 0 1 1-1ZM12 11a1 1 0 0 1 1 1v4a1 1 0 1 1-2 0v-4a1 1 0 0 1 1-1Z", fill: "currentColor", "fill-rule": "evenodd" }))), h("div", { class: "zonos--header-wrapper" }, h("zonos-text", {
|
|
25
|
+
return (h("div", { class: classes(['zonos--container']) }, h("div", { class: "zonos--icon-wrapper" }, h("svg", { color: primaryColor, fill: "none", height: "20", viewBox: "0 0 24 24", width: "20", xmlns: "https://www.w3.org/2000/svg" }, h("path", { "clip-rule": "evenodd", d: "M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Z", "data-is-secondary-color": "true", fill: secondaryColor, "fill-rule": "evenodd" }), h("path", { "clip-rule": "evenodd", d: "M12 6.99a1 1 0 0 1 1 1V8a1 1 0 1 1-2 0v-.01a1 1 0 0 1 1-1ZM12 11a1 1 0 0 1 1 1v4a1 1 0 1 1-2 0v-4a1 1 0 0 1 1-1Z", fill: "currentColor", "fill-rule": "evenodd" }))), h("div", { class: "zonos--header-wrapper" }, h("zonos-text", { textColor: textColor, type: "label", weight: 600 }, header)), content && (h("div", { class: "zonos--content-wrapper" }, h("zonos-text", { textColor: textColor }, content)))));
|
|
27
26
|
};
|
|
28
|
-
const baseClass = classes([
|
|
29
|
-
'zonos--elements zonos--banner',
|
|
30
|
-
this.class,
|
|
31
|
-
this.intent,
|
|
32
|
-
]);
|
|
27
|
+
const baseClass = classes(['zonos--elements zonos--banner', this.intent]);
|
|
33
28
|
const font = zonosStoreFontFamily();
|
|
34
29
|
switch (this.intent) {
|
|
35
30
|
case 'error':
|
|
@@ -117,24 +112,6 @@ export class ZonosBanner {
|
|
|
117
112
|
},
|
|
118
113
|
"attribute": "intent",
|
|
119
114
|
"reflect": false
|
|
120
|
-
},
|
|
121
|
-
"class": {
|
|
122
|
-
"type": "string",
|
|
123
|
-
"mutable": false,
|
|
124
|
-
"complexType": {
|
|
125
|
-
"original": "string",
|
|
126
|
-
"resolved": "string",
|
|
127
|
-
"references": {}
|
|
128
|
-
},
|
|
129
|
-
"required": false,
|
|
130
|
-
"optional": false,
|
|
131
|
-
"docs": {
|
|
132
|
-
"tags": [],
|
|
133
|
-
"text": "css class for the component"
|
|
134
|
-
},
|
|
135
|
-
"attribute": "class",
|
|
136
|
-
"reflect": false,
|
|
137
|
-
"defaultValue": "''"
|
|
138
115
|
}
|
|
139
116
|
};
|
|
140
117
|
}
|
|
@@ -83,10 +83,10 @@
|
|
|
83
83
|
}
|
|
84
84
|
:host button[disabled] {
|
|
85
85
|
cursor: not-allowed;
|
|
86
|
-
background-color: var(--amino-gray-200);
|
|
86
|
+
background-color: var(--background-color, var(--amino-gray-200));
|
|
87
87
|
}
|
|
88
88
|
:host button[disabled] .zonos--spinner-wrapper {
|
|
89
|
-
background-color: var(--amino-gray-200);
|
|
89
|
+
background-color: var(--background-color, var(--amino-gray-200));
|
|
90
90
|
}
|
|
91
91
|
:host button:active {
|
|
92
92
|
transform: scale(0.99);
|
|
@@ -118,6 +118,11 @@
|
|
|
118
118
|
:host button:not(.only-icon).has-icon {
|
|
119
119
|
gap: var(--amino-space-8);
|
|
120
120
|
}
|
|
121
|
+
@media (max-width: 400px) {
|
|
122
|
+
:host button:not(.only-icon).has-icon {
|
|
123
|
+
font-size: var(--amino-font-size-s);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
121
126
|
:host button.override-background {
|
|
122
127
|
background-color: var(--background-color, var(--amino-gray-0));
|
|
123
128
|
color: var(--color, var(--amino-gray-1200));
|
|
@@ -218,6 +223,7 @@
|
|
|
218
223
|
:host button:not(.override-background).subtle {
|
|
219
224
|
background: transparent;
|
|
220
225
|
color: var(--color);
|
|
226
|
+
outline: none;
|
|
221
227
|
}
|
|
222
228
|
:host button:not(.override-background).subtle:not([disabled]):hover {
|
|
223
229
|
background: var(--amino-gray-100);
|
|
@@ -243,4 +249,16 @@
|
|
|
243
249
|
}
|
|
244
250
|
:host button:not(.override-background).outline:not([disabled]):active {
|
|
245
251
|
background: var(--amino-gray-200);
|
|
252
|
+
}
|
|
253
|
+
:host .zonos--footer-country-flag {
|
|
254
|
+
height: 18px;
|
|
255
|
+
width: 18px;
|
|
256
|
+
position: relative;
|
|
257
|
+
overflow: hidden;
|
|
258
|
+
border-radius: 30px;
|
|
259
|
+
box-shadow: var(--amino-v3-shadow-medium);
|
|
260
|
+
z-index: 10;
|
|
261
|
+
justify-self: center;
|
|
262
|
+
border-radius: var(--amino-radius-4);
|
|
263
|
+
width: 24px;
|
|
246
264
|
}
|