@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
|
@@ -12,8 +12,7 @@ export class ZonosButton {
|
|
|
12
12
|
this.handleSlotChange = () => {
|
|
13
13
|
this.hasContent = true;
|
|
14
14
|
};
|
|
15
|
-
this.
|
|
16
|
-
this.color = undefined;
|
|
15
|
+
this.buttonColor = undefined;
|
|
17
16
|
this.backgroundColor = undefined;
|
|
18
17
|
this.borderStyle = undefined;
|
|
19
18
|
this.isDisabled = false;
|
|
@@ -46,35 +45,39 @@ export class ZonosButton {
|
|
|
46
45
|
}
|
|
47
46
|
render() {
|
|
48
47
|
const disabled = this.loading || this.isDisabled;
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
48
|
+
/**
|
|
49
|
+
* If the parent component pass in the variant prop with `undefined` value, it would not re-assign the `undefined` value with the default value.
|
|
50
|
+
* So need to re-assign the variant prop with the default value if the value is `undefined` here.
|
|
51
|
+
*/
|
|
52
|
+
const variant = this.variant || 'standard';
|
|
53
|
+
const color = this.buttonColor && isColorVariable(this.buttonColor)
|
|
54
|
+
? `var(--amino-${this.buttonColor})`
|
|
55
|
+
: this.buttonColor;
|
|
52
56
|
// use override background if it exists, otherwise use color from setting
|
|
53
57
|
const overrideBackground = this.backgroundColor || zonosStore.appearance.colorSecondary;
|
|
54
58
|
// only set theme for button to change text color if variant is standard and override background is set
|
|
55
|
-
const buttonTheme =
|
|
56
|
-
? getButtonTheme(overrideBackground)
|
|
57
|
-
: undefined;
|
|
59
|
+
const buttonTheme = variant === 'standard' ? getButtonTheme(overrideBackground) : undefined;
|
|
58
60
|
const borderStyle = getBorderRadius(this.borderStyle);
|
|
59
|
-
|
|
61
|
+
const spinnerColor = buttonTheme === 'LIGHT' ? 'white' : 'black';
|
|
62
|
+
return (h(Host, { key: '817142c1d229333aee0b38864788346d2749d3d1', class: classes(['zonos--elements']), "data-theme": this.theme || buttonTheme, disabled: disabled, style: {
|
|
60
63
|
'--background-color': overrideBackground,
|
|
61
64
|
'--border-radius': borderStyle,
|
|
62
65
|
'--color': color,
|
|
63
66
|
'--font-family': zonosStoreFontFamily(),
|
|
64
|
-
} }, h("button", { key: '
|
|
67
|
+
} }, h("button", { key: '04bff1f932154f54b4af51b2fac053d40efc354f', class: classes([
|
|
65
68
|
this.hasIcon && 'has-icon',
|
|
66
69
|
this.hasContent && 'has-content',
|
|
67
70
|
this.noBackground && 'no-background',
|
|
68
71
|
this.noPaddingLeft && 'no-padding-left',
|
|
69
72
|
this.noPaddingRight && 'no-padding-right',
|
|
70
73
|
this.iconRight && 'icon-right',
|
|
71
|
-
|
|
74
|
+
variant,
|
|
72
75
|
this.size,
|
|
73
76
|
// only override background if variant is set to standard
|
|
74
|
-
|
|
75
|
-
|
|
77
|
+
overrideBackground &&
|
|
78
|
+
variant === 'standard' &&
|
|
76
79
|
'override-background',
|
|
77
|
-
]), disabled: disabled }, this.loading && (h("div", { class: "zonos--spinner-wrapper" }, h("zonos-spinner", { size: 16 }))), !this.loading && !this.iconRight && this.icon, h("slot", { key: '
|
|
80
|
+
]), disabled: disabled }, this.loading && (h("div", { class: "zonos--spinner-wrapper" }, h("zonos-spinner", { size: 16, spinnerColor: spinnerColor }))), !this.loading && !this.iconRight && this.icon, h("slot", { key: 'fd9bd0e9f89c3c9ab6dc9d0ac7a123542a1f5023', onSlotchange: this.handleSlotChange }), !this.loading && this.iconRight && this.icon)));
|
|
78
81
|
}
|
|
79
82
|
static get is() { return "zonos-button"; }
|
|
80
83
|
static get encapsulation() { return "shadow"; }
|
|
@@ -90,25 +93,7 @@ export class ZonosButton {
|
|
|
90
93
|
}
|
|
91
94
|
static get properties() {
|
|
92
95
|
return {
|
|
93
|
-
"
|
|
94
|
-
"type": "string",
|
|
95
|
-
"mutable": false,
|
|
96
|
-
"complexType": {
|
|
97
|
-
"original": "string",
|
|
98
|
-
"resolved": "string",
|
|
99
|
-
"references": {}
|
|
100
|
-
},
|
|
101
|
-
"required": false,
|
|
102
|
-
"optional": false,
|
|
103
|
-
"docs": {
|
|
104
|
-
"tags": [],
|
|
105
|
-
"text": "css class for the component"
|
|
106
|
-
},
|
|
107
|
-
"attribute": "class",
|
|
108
|
-
"reflect": false,
|
|
109
|
-
"defaultValue": "''"
|
|
110
|
-
},
|
|
111
|
-
"color": {
|
|
96
|
+
"buttonColor": {
|
|
112
97
|
"type": "string",
|
|
113
98
|
"mutable": false,
|
|
114
99
|
"complexType": {
|
|
@@ -128,7 +113,7 @@ export class ZonosButton {
|
|
|
128
113
|
"tags": [],
|
|
129
114
|
"text": "The color of the button text and svg"
|
|
130
115
|
},
|
|
131
|
-
"attribute": "color",
|
|
116
|
+
"attribute": "button-color",
|
|
132
117
|
"reflect": false
|
|
133
118
|
},
|
|
134
119
|
"backgroundColor": {
|
|
@@ -5,7 +5,6 @@ import { classes } from "../../utils/classes";
|
|
|
5
5
|
export class ZonosCard {
|
|
6
6
|
constructor() {
|
|
7
7
|
this.actions = undefined;
|
|
8
|
-
this.class = undefined;
|
|
9
8
|
this.footerActions = undefined;
|
|
10
9
|
this.footerContent = undefined;
|
|
11
10
|
this.footerHeight = undefined;
|
|
@@ -13,9 +12,9 @@ export class ZonosCard {
|
|
|
13
12
|
this.spacing = '24px';
|
|
14
13
|
}
|
|
15
14
|
render() {
|
|
16
|
-
return (h(Host, { key: '
|
|
15
|
+
return (h(Host, { key: '8581e04d45e7061bff02485ad9a9a22920b5fe84', style: {
|
|
17
16
|
'--font-family': zonosStoreFontFamily(),
|
|
18
|
-
} }, h("div", { key: '
|
|
17
|
+
} }, h("div", { key: '5e2038438e0885602c2e15808a34d62e86c95035', class: classes(['styled-card']), style: { padding: this.spacing } }, this.label && (h("header", { class: "card-header", style: { padding: this.spacing } }, h("zonos-text", { type: "subheader" }, this.label), h("h-stack", { spacing: 8 }, this.actions))), h("slot", { key: 'b7cbddad1cc08256ae9192349fe5a44302b6d79e' }), (this.footerActions || this.footerContent) && (h("footer", { class: "card-footer", style: {
|
|
19
18
|
height: this.footerHeight ? `${this.footerHeight}px` : 'auto',
|
|
20
19
|
padding: this.spacing,
|
|
21
20
|
} }, h("div", null, this.footerContent), h("h-stack", { spacing: 8 }, this.footerActions))))));
|
|
@@ -54,23 +53,6 @@ export class ZonosCard {
|
|
|
54
53
|
"text": "The actions to display in the header of the card"
|
|
55
54
|
}
|
|
56
55
|
},
|
|
57
|
-
"class": {
|
|
58
|
-
"type": "string",
|
|
59
|
-
"mutable": false,
|
|
60
|
-
"complexType": {
|
|
61
|
-
"original": "string",
|
|
62
|
-
"resolved": "string | undefined",
|
|
63
|
-
"references": {}
|
|
64
|
-
},
|
|
65
|
-
"required": false,
|
|
66
|
-
"optional": true,
|
|
67
|
-
"docs": {
|
|
68
|
-
"tags": [],
|
|
69
|
-
"text": "The CSS class to apply to the card element"
|
|
70
|
-
},
|
|
71
|
-
"attribute": "class",
|
|
72
|
-
"reflect": false
|
|
73
|
-
},
|
|
74
56
|
"footerActions": {
|
|
75
57
|
"type": "unknown",
|
|
76
58
|
"mutable": false,
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
font-family: var(--font-family, Inter), Inter;
|
|
3
|
+
display: block;
|
|
4
|
+
white-space: normal;
|
|
5
|
+
}
|
|
6
|
+
:host * {
|
|
7
|
+
font-family: var(--font-family, Inter), Inter;
|
|
8
|
+
}
|
|
9
|
+
:host img {
|
|
10
|
+
max-width: 100%;
|
|
11
|
+
}
|
|
12
|
+
:host dl,
|
|
13
|
+
:host dd,
|
|
14
|
+
:host h1,
|
|
15
|
+
:host h2,
|
|
16
|
+
:host h3,
|
|
17
|
+
:host h4,
|
|
18
|
+
:host h5,
|
|
19
|
+
:host h6,
|
|
20
|
+
:host hr,
|
|
21
|
+
:host figure,
|
|
22
|
+
:host p,
|
|
23
|
+
:host pre {
|
|
24
|
+
margin: 0;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* All sets of variable are here */
|
|
28
|
+
/* smooth font rendering */
|
|
29
|
+
:host {
|
|
30
|
+
-moz-osx-font-smoothing: grayscale;
|
|
31
|
+
-webkit-font-smoothing: antialiased;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
:host {
|
|
35
|
+
display: inline-flex;
|
|
36
|
+
}
|
|
37
|
+
:host label {
|
|
38
|
+
display: inline-flex;
|
|
39
|
+
position: relative;
|
|
40
|
+
gap: var(--amino-space-8);
|
|
41
|
+
align-items: center;
|
|
42
|
+
}
|
|
43
|
+
:host label.disabled {
|
|
44
|
+
cursor: not-allowed;
|
|
45
|
+
opacity: 0.6;
|
|
46
|
+
}
|
|
47
|
+
:host input[type=checkbox] {
|
|
48
|
+
opacity: 0;
|
|
49
|
+
position: absolute;
|
|
50
|
+
left: 0;
|
|
51
|
+
width: 0;
|
|
52
|
+
height: 0;
|
|
53
|
+
top: 0;
|
|
54
|
+
z-index: -99999;
|
|
55
|
+
}
|
|
56
|
+
:host svg {
|
|
57
|
+
opacity: 0;
|
|
58
|
+
}
|
|
59
|
+
:host .checkmark-container {
|
|
60
|
+
height: var(--size);
|
|
61
|
+
width: var(--size);
|
|
62
|
+
background-color: transparent;
|
|
63
|
+
border: 1.5px solid var(--amino-gray-400);
|
|
64
|
+
position: relative;
|
|
65
|
+
border-radius: var(--border-radius, var(--amino-radius-4));
|
|
66
|
+
}
|
|
67
|
+
:host .checkmark {
|
|
68
|
+
opacity: 0;
|
|
69
|
+
position: absolute;
|
|
70
|
+
top: -1.5px;
|
|
71
|
+
left: -1.5px;
|
|
72
|
+
right: -1.5px;
|
|
73
|
+
bottom: -1.5px;
|
|
74
|
+
transition: 0.3s all cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
|
75
|
+
transform: scale(0.4);
|
|
76
|
+
background-color: var(--background-color);
|
|
77
|
+
border-radius: var(--border-radius, var(--amino-radius-4));
|
|
78
|
+
}
|
|
79
|
+
:host input[type=checkbox]:checked ~ .checkmark-container .checkmark {
|
|
80
|
+
opacity: 1;
|
|
81
|
+
transform: scale(1);
|
|
82
|
+
}
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
import { h, Host, } from "@stencil/core";
|
|
2
|
+
import { zonosStoreFontFamily } from "../../store/zonosStore";
|
|
3
|
+
import { classes } from "../../utils/classes";
|
|
4
|
+
import { getBorderRadius } from "../../utils/getBorderRadius";
|
|
5
|
+
import { isDarkColor } from "../../utils/isDarkColor";
|
|
6
|
+
import { colorPrefixes } from "../../../types/styles/Color";
|
|
7
|
+
export class ZonosCheckbox {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.backgroundColor = 'blue';
|
|
10
|
+
this.label = undefined;
|
|
11
|
+
this.isChecked = false;
|
|
12
|
+
this.isDisabled = false;
|
|
13
|
+
this.size = 12;
|
|
14
|
+
this.fontSize = 'base';
|
|
15
|
+
this.borderStyle = undefined;
|
|
16
|
+
}
|
|
17
|
+
render() {
|
|
18
|
+
const isBackgroundVariable = colorPrefixes.includes(this.backgroundColor);
|
|
19
|
+
const backgroundColor = isBackgroundVariable
|
|
20
|
+
? `var(--amino-${this.backgroundColor}-600)`
|
|
21
|
+
: this.backgroundColor;
|
|
22
|
+
const checkmarkColor = isBackgroundVariable
|
|
23
|
+
? // use lighter color if the color is amino variable
|
|
24
|
+
`var(--amino-${this.backgroundColor}-200)`
|
|
25
|
+
: // if it's not an amino variable, use white if the background is dark, and dark if the background is light
|
|
26
|
+
!isDarkColor(backgroundColor)
|
|
27
|
+
? 'var(--amino-gray-800)'
|
|
28
|
+
: 'var(--amino-gray-0)';
|
|
29
|
+
const borderStyle = getBorderRadius(this.borderStyle, '4px');
|
|
30
|
+
return (h(Host, { key: '86ab50028bec3f6a230b3a9492d06c1b2ce250fe', class: classes(['zonos--elements zonos--checkbox']), style: {
|
|
31
|
+
'--background-color': backgroundColor,
|
|
32
|
+
'--border-radius': borderStyle,
|
|
33
|
+
'--font-family': zonosStoreFontFamily(),
|
|
34
|
+
'--size': `${this.size}px`,
|
|
35
|
+
} }, h("label", { key: '88e87bb45739707a4e3da6d378ba491899dad76c', class: classes([this.isDisabled && 'disabled']) }, h("input", { key: 'c877ba4a2bd43aa67c394136ef4b3c71096e75aa', checked: this.isChecked, disabled: this.isDisabled, hidden: true, onChange: e => {
|
|
36
|
+
this.checkboxSelected.emit(e.target.checked);
|
|
37
|
+
}, type: "checkbox" }), h("span", { key: '0f40603a3cf90c38f37b05d7bfd8ed54623b07f4', class: "checkmark-container" }, h("svg", { key: '67945bb82cc05997bb40aeef14c5c0fd452a68af', class: "checkmark", color: checkmarkColor, fill: "none", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: 'ac2d1db7ba5c1578dbe59f4ca9755a409ab24546', "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", { size: this.fontSize }, this.label)))));
|
|
38
|
+
}
|
|
39
|
+
static get is() { return "zonos-checkbox"; }
|
|
40
|
+
static get encapsulation() { return "shadow"; }
|
|
41
|
+
static get originalStyleUrls() {
|
|
42
|
+
return {
|
|
43
|
+
"$": ["zonos-checkbox.scss"]
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
static get styleUrls() {
|
|
47
|
+
return {
|
|
48
|
+
"$": ["zonos-checkbox.css"]
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
static get properties() {
|
|
52
|
+
return {
|
|
53
|
+
"backgroundColor": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"mutable": false,
|
|
56
|
+
"complexType": {
|
|
57
|
+
"original": "| CheckboxColorPrefix\n | (string & { _placeholder?: never })",
|
|
58
|
+
"resolved": "\"blue\" | \"cyan\" | \"gray\" | \"green\" | \"orange\" | \"purple\" | \"red\" | string & { _placeholder?: undefined; }",
|
|
59
|
+
"references": {
|
|
60
|
+
"CheckboxColorPrefix": {
|
|
61
|
+
"location": "import",
|
|
62
|
+
"path": "src/types/styles/Color",
|
|
63
|
+
"id": "src/types/styles/Color.ts::CheckboxColorPrefix"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"required": false,
|
|
68
|
+
"optional": false,
|
|
69
|
+
"docs": {
|
|
70
|
+
"tags": [],
|
|
71
|
+
"text": "background color of the checkbox"
|
|
72
|
+
},
|
|
73
|
+
"attribute": "background-color",
|
|
74
|
+
"reflect": false,
|
|
75
|
+
"defaultValue": "'blue'"
|
|
76
|
+
},
|
|
77
|
+
"label": {
|
|
78
|
+
"type": "string",
|
|
79
|
+
"mutable": false,
|
|
80
|
+
"complexType": {
|
|
81
|
+
"original": "string",
|
|
82
|
+
"resolved": "string | undefined",
|
|
83
|
+
"references": {}
|
|
84
|
+
},
|
|
85
|
+
"required": false,
|
|
86
|
+
"optional": true,
|
|
87
|
+
"docs": {
|
|
88
|
+
"tags": [],
|
|
89
|
+
"text": "The label of the checkbox"
|
|
90
|
+
},
|
|
91
|
+
"attribute": "label",
|
|
92
|
+
"reflect": false
|
|
93
|
+
},
|
|
94
|
+
"isChecked": {
|
|
95
|
+
"type": "boolean",
|
|
96
|
+
"mutable": false,
|
|
97
|
+
"complexType": {
|
|
98
|
+
"original": "boolean",
|
|
99
|
+
"resolved": "boolean",
|
|
100
|
+
"references": {}
|
|
101
|
+
},
|
|
102
|
+
"required": false,
|
|
103
|
+
"optional": false,
|
|
104
|
+
"docs": {
|
|
105
|
+
"tags": [],
|
|
106
|
+
"text": "Whether or not the checkbox is checked"
|
|
107
|
+
},
|
|
108
|
+
"attribute": "is-checked",
|
|
109
|
+
"reflect": false,
|
|
110
|
+
"defaultValue": "false"
|
|
111
|
+
},
|
|
112
|
+
"isDisabled": {
|
|
113
|
+
"type": "boolean",
|
|
114
|
+
"mutable": false,
|
|
115
|
+
"complexType": {
|
|
116
|
+
"original": "boolean",
|
|
117
|
+
"resolved": "boolean",
|
|
118
|
+
"references": {}
|
|
119
|
+
},
|
|
120
|
+
"required": false,
|
|
121
|
+
"optional": false,
|
|
122
|
+
"docs": {
|
|
123
|
+
"tags": [],
|
|
124
|
+
"text": "Whether or not the checkbox is disabled"
|
|
125
|
+
},
|
|
126
|
+
"attribute": "is-disabled",
|
|
127
|
+
"reflect": false,
|
|
128
|
+
"defaultValue": "false"
|
|
129
|
+
},
|
|
130
|
+
"size": {
|
|
131
|
+
"type": "number",
|
|
132
|
+
"mutable": false,
|
|
133
|
+
"complexType": {
|
|
134
|
+
"original": "12 | 16 | 24",
|
|
135
|
+
"resolved": "12 | 16 | 24",
|
|
136
|
+
"references": {}
|
|
137
|
+
},
|
|
138
|
+
"required": false,
|
|
139
|
+
"optional": false,
|
|
140
|
+
"docs": {
|
|
141
|
+
"tags": [],
|
|
142
|
+
"text": "Size of the checkbox"
|
|
143
|
+
},
|
|
144
|
+
"attribute": "size",
|
|
145
|
+
"reflect": false,
|
|
146
|
+
"defaultValue": "12"
|
|
147
|
+
},
|
|
148
|
+
"fontSize": {
|
|
149
|
+
"type": "string",
|
|
150
|
+
"mutable": false,
|
|
151
|
+
"complexType": {
|
|
152
|
+
"original": "Size",
|
|
153
|
+
"resolved": "\"2xl\" | \"3xl\" | \"base\" | \"l\" | \"s\" | \"xl\" | \"xs\"",
|
|
154
|
+
"references": {
|
|
155
|
+
"Size": {
|
|
156
|
+
"location": "import",
|
|
157
|
+
"path": "src/types/styles/Text",
|
|
158
|
+
"id": "src/types/styles/Text.ts::Size"
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
"required": false,
|
|
163
|
+
"optional": false,
|
|
164
|
+
"docs": {
|
|
165
|
+
"tags": [],
|
|
166
|
+
"text": "Font size of the checkbox text"
|
|
167
|
+
},
|
|
168
|
+
"attribute": "font-size",
|
|
169
|
+
"reflect": false,
|
|
170
|
+
"defaultValue": "'base'"
|
|
171
|
+
},
|
|
172
|
+
"borderStyle": {
|
|
173
|
+
"type": "string",
|
|
174
|
+
"mutable": false,
|
|
175
|
+
"complexType": {
|
|
176
|
+
"original": "ElementsUiStyle",
|
|
177
|
+
"resolved": "\"ROUNDED\" | \"SHARP\" | undefined",
|
|
178
|
+
"references": {
|
|
179
|
+
"ElementsUiStyle": {
|
|
180
|
+
"location": "import",
|
|
181
|
+
"path": "src/types",
|
|
182
|
+
"id": "src/types/index.ts::ElementsUiStyle"
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
"required": false,
|
|
187
|
+
"optional": true,
|
|
188
|
+
"docs": {
|
|
189
|
+
"tags": [{
|
|
190
|
+
"name": "default",
|
|
191
|
+
"text": "ROUNDED"
|
|
192
|
+
}],
|
|
193
|
+
"text": "The border style of the button"
|
|
194
|
+
},
|
|
195
|
+
"attribute": "border-style",
|
|
196
|
+
"reflect": false
|
|
197
|
+
}
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
static get events() {
|
|
201
|
+
return [{
|
|
202
|
+
"method": "checkboxSelected",
|
|
203
|
+
"name": "checkboxSelected",
|
|
204
|
+
"bubbles": true,
|
|
205
|
+
"cancelable": true,
|
|
206
|
+
"composed": true,
|
|
207
|
+
"docs": {
|
|
208
|
+
"tags": [],
|
|
209
|
+
"text": "Event to emit when the checkbox is changed"
|
|
210
|
+
},
|
|
211
|
+
"complexType": {
|
|
212
|
+
"original": "boolean",
|
|
213
|
+
"resolved": "boolean",
|
|
214
|
+
"references": {}
|
|
215
|
+
}
|
|
216
|
+
}];
|
|
217
|
+
}
|
|
218
|
+
}
|
|
@@ -23,10 +23,10 @@ export class ZonosCollapse {
|
|
|
23
23
|
}
|
|
24
24
|
render() {
|
|
25
25
|
this.height = this.el.scrollHeight;
|
|
26
|
-
return (h(Host, { key: '
|
|
26
|
+
return (h(Host, { key: '372c80d0d5b8d2c693b2c74bd6652430c8e4a5bb', class: 'zonos--elements zonos--collapse', style: {
|
|
27
27
|
'--font-family': zonosStoreFontFamily(),
|
|
28
28
|
height: this.getElementHeight(),
|
|
29
|
-
} }, h("div", { key: '
|
|
29
|
+
} }, h("div", { key: 'babd12279d1ac54092a1cff83e8e5b8ed5e81008' }, h("iframe", { key: '6d3a7845d560ba587829ba68033cd92ec8d2af5b', class: "height-change-listener", tabindex: "-1", title: "collapse-height-change-listener" }), h("slot", { key: 'f295e17fd3178eb44dc7c0c51f87a80694fd04d7' }))));
|
|
30
30
|
}
|
|
31
31
|
static get is() { return "zonos-collapse"; }
|
|
32
32
|
static get encapsulation() { return "shadow"; }
|
|
@@ -5,7 +5,6 @@ import { classes } from "../../utils/classes";
|
|
|
5
5
|
const FLAG_URL = process.env.NEXT_PUBLIC_FLAG_URL;
|
|
6
6
|
export class ZonosCountryFlag {
|
|
7
7
|
constructor() {
|
|
8
|
-
this.class = '';
|
|
9
8
|
this.countryCode = localizationStore.selectedCountryCode;
|
|
10
9
|
this.size = undefined;
|
|
11
10
|
}
|
|
@@ -23,7 +22,7 @@ export class ZonosCountryFlag {
|
|
|
23
22
|
}
|
|
24
23
|
: {
|
|
25
24
|
'--font-family': font,
|
|
26
|
-
} }, h("div", { class: classes([`flag-container
|
|
25
|
+
} }, h("div", { class: classes([`flag-container`]) }, h("div", { class: "flag-icon", style: { backgroundImage: `url(${flagUrl})` } }))));
|
|
27
26
|
}
|
|
28
27
|
static get is() { return "zonos-country-flag"; }
|
|
29
28
|
static get encapsulation() { return "shadow"; }
|
|
@@ -39,24 +38,6 @@ export class ZonosCountryFlag {
|
|
|
39
38
|
}
|
|
40
39
|
static get properties() {
|
|
41
40
|
return {
|
|
42
|
-
"class": {
|
|
43
|
-
"type": "string",
|
|
44
|
-
"mutable": false,
|
|
45
|
-
"complexType": {
|
|
46
|
-
"original": "string",
|
|
47
|
-
"resolved": "string | undefined",
|
|
48
|
-
"references": {}
|
|
49
|
-
},
|
|
50
|
-
"required": false,
|
|
51
|
-
"optional": true,
|
|
52
|
-
"docs": {
|
|
53
|
-
"tags": [],
|
|
54
|
-
"text": "The class name for the flag"
|
|
55
|
-
},
|
|
56
|
-
"attribute": "class",
|
|
57
|
-
"reflect": false,
|
|
58
|
-
"defaultValue": "''"
|
|
59
|
-
},
|
|
60
41
|
"countryCode": {
|
|
61
42
|
"type": "string",
|
|
62
43
|
"mutable": false,
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M7.99996 2.6665C5.05444 2.6665 2.66663 5.05432 2.66663 7.99984C2.66663 10.9454 5.05444 13.3332 7.99996 13.3332C10.9455 13.3332 13.3333 10.9454 13.3333 7.99984C13.3333 5.05432 10.9455 2.6665 7.99996 2.6665Z" fill="#AFF8C3"/>
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M10.1403 6.10535C10.3582 6.27488 10.3975 6.58902 10.228 6.80699L8.01055 9.65797C7.76436 9.97449 7.29646 10.0036 7.01291 9.72008L5.81307 8.52024C5.61781 8.32498 5.61781 8.0084 5.81307 7.81314C6.00833 7.61787 6.32492 7.61787 6.52018 7.81314L7.45301 8.74597L9.43862 6.19305C9.60815 5.97508 9.92229 5.93581 10.1403 6.10535Z" fill="#246627"/>
|
|
4
|
+
</svg>
|
|
@@ -32,22 +32,23 @@
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
:host .zonos--country-select {
|
|
35
|
-
max-height: 60vh;
|
|
36
|
-
}
|
|
37
|
-
:host .zonos--country-select .zonos--country-select-header {
|
|
38
35
|
position: relative;
|
|
39
|
-
text-align: center;
|
|
40
36
|
}
|
|
41
|
-
:host .zonos--country-select .zonos--country-select-header
|
|
42
|
-
position:
|
|
43
|
-
top:
|
|
44
|
-
|
|
37
|
+
:host .zonos--country-select .zonos--country-select-header {
|
|
38
|
+
position: sticky;
|
|
39
|
+
top: 0;
|
|
40
|
+
background: var(--amino-surface-color);
|
|
41
|
+
z-index: 11;
|
|
45
42
|
}
|
|
46
43
|
:host .zonos--country-select .zonos--country-select-input {
|
|
47
44
|
padding: var(--amino-space-8);
|
|
48
45
|
border-radius: var(--amino-radius-4);
|
|
49
46
|
border: var(--amino-border);
|
|
50
47
|
}
|
|
48
|
+
:host .zonos--country-select .zonos--country-select-content {
|
|
49
|
+
padding: var(--amino-space-16);
|
|
50
|
+
padding-top: var(--amino-space-0);
|
|
51
|
+
}
|
|
51
52
|
:host .zonos--country-select .zonos--country-select-country {
|
|
52
53
|
display: flex;
|
|
53
54
|
gap: var(--amino-space-16);
|
|
@@ -62,7 +63,7 @@
|
|
|
62
63
|
:host .zonos--country-select .zonos--country-select-country:hover {
|
|
63
64
|
background: var(--amino-gray-100);
|
|
64
65
|
}
|
|
65
|
-
:host .zonos--country-select .zonos--country-select-country .zonos--
|
|
66
|
+
:host .zonos--country-select .zonos--country-select-country .zonos--country-flag {
|
|
66
67
|
border-radius: var(--amino-radius-4);
|
|
67
68
|
width: 24px;
|
|
68
69
|
height: 18px;
|
|
@@ -73,7 +74,7 @@
|
|
|
73
74
|
justify-self: center;
|
|
74
75
|
}
|
|
75
76
|
@media (max-width: 768px) {
|
|
76
|
-
:host .zonos--country-select .zonos--country-select-country .zonos--
|
|
77
|
+
:host .zonos--country-select .zonos--country-select-country .zonos--country-flag {
|
|
77
78
|
border-radius: var(--amino-radius-4);
|
|
78
79
|
width: 24px;
|
|
79
80
|
}
|
|
@@ -1,27 +1,25 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
import Fuse from "fuse.js";
|
|
3
3
|
import { localizationStore, localizationStoreUpdateSelectedCountryCode, } from "../../store/hello/localization";
|
|
4
|
-
import { translate } from "../../store/translationStore";
|
|
5
4
|
import { zonosStoreFontFamily } from "../../store/zonosStore";
|
|
6
5
|
// eslint-disable-next-line no-relative-import-paths/no-relative-import-paths
|
|
7
|
-
import
|
|
6
|
+
import GreenCheckDuotoneIcon from "./assets/greenCheckDuotone.svg";
|
|
8
7
|
export class ZonosCountrySelect {
|
|
9
8
|
constructor() {
|
|
10
9
|
this.countrySelected = (countryCode) => {
|
|
11
10
|
// mutate the selected country code in store
|
|
12
11
|
void localizationStoreUpdateSelectedCountryCode(countryCode);
|
|
13
|
-
this.
|
|
12
|
+
this.handleOnClose();
|
|
14
13
|
};
|
|
15
14
|
this.handleInputChange = (event) => {
|
|
16
15
|
const input = event.target;
|
|
17
16
|
this.inputValue = input.value;
|
|
18
17
|
};
|
|
19
|
-
this.
|
|
18
|
+
this.handleOnClose = () => { };
|
|
20
19
|
this.inputValue = '';
|
|
21
20
|
}
|
|
22
21
|
render() {
|
|
23
|
-
|
|
24
|
-
const { selectedCountryCode, shippingZoneCountries } = localizationStore;
|
|
22
|
+
const { shippingZoneCountries } = localizationStore;
|
|
25
23
|
const countries = shippingZoneCountries
|
|
26
24
|
? Object.values(shippingZoneCountries)
|
|
27
25
|
: [];
|
|
@@ -32,11 +30,9 @@ export class ZonosCountrySelect {
|
|
|
32
30
|
const filteredCountries = this.inputValue
|
|
33
31
|
? fuseObject.map(country => country.item)
|
|
34
32
|
: countries.sort((a, b) => a.displayName.localeCompare(b.displayName));
|
|
35
|
-
return (h(Host, { key: '
|
|
33
|
+
return (h(Host, { key: 'fb1115a06814daaf8ebb7d9e282fdd1bd944121f', class: "zonos--elements", style: {
|
|
36
34
|
'--font-family': zonosStoreFontFamily(),
|
|
37
|
-
} }, h("div", { key: '
|
|
38
|
-
selectedCountryCode &&
|
|
39
|
-
((_a = shippingZoneCountries[selectedCountryCode]) === null || _a === void 0 ? void 0 : _a.displayName))), h("zonos-v-stack", { key: '8c2f3da67b479d618d6837a5811b6cede4fe4517', spacing: 8 }, h("input", { key: '989879f65463f5c118e5f9906127546436d5f40c', class: "zonos--country-select-input", onInput: this.handleInputChange, placeholder: "Enter country", value: this.inputValue }), h("div", { key: 'f6ddf1629ad299053f949b8ff36bc126b622bb91' }, filteredCountries.map(country => (h("button", { class: "zonos--country-select-country", onClick: () => this.countrySelected(country.code) }, h("zonos-country-flag", { class: "zonos--hello-country-flag", countryCode: country.code }), h("zonos-text", { color: "gray-800" }, country.displayName))))))))));
|
|
35
|
+
} }, h("div", { key: 'eb9eb7dba8f170c6190fd29e670b002ecb39a849', class: "zonos--country-select" }, h("zonos-v-stack", { key: '4667474f03efbad9fbb0ea4153d16b49a7f2803f', class: "zonos--country-select-header", spacing: 8 }, h("zonos-select-dialog-header", { key: 'c2777f838d9d376878e1218868ed8df0d28dc5f2', handleOnClose: () => this.handleOnClose(), label: "Select a country" }, h("input", { key: '1e41b3888bce97a94ff88c4b3b3389cc8d4de096', class: "zonos--country-select-input", onInput: this.handleInputChange, placeholder: "Search countries", value: this.inputValue }))), h("div", { key: 'ba89ae931e2a0e564112d9989d8074674906a297', class: "zonos--country-select-content" }, filteredCountries.map(country => (h("button", { class: "zonos--country-select-country", onClick: () => this.countrySelected(country.code) }, h("zonos-country-flag", { class: "zonos--country-flag", countryCode: country.code }), h("zonos-text", { color: "gray-800" }, country.displayName), country.code === localizationStore.selectedCountryCode && (h("zonos-icon", { content: GreenCheckDuotoneIcon, size: 20 })))))))));
|
|
40
36
|
}
|
|
41
37
|
static get is() { return "zonos-country-select"; }
|
|
42
38
|
static get encapsulation() { return "shadow"; }
|
|
@@ -52,7 +48,7 @@ export class ZonosCountrySelect {
|
|
|
52
48
|
}
|
|
53
49
|
static get properties() {
|
|
54
50
|
return {
|
|
55
|
-
"
|
|
51
|
+
"handleOnClose": {
|
|
56
52
|
"type": "unknown",
|
|
57
53
|
"mutable": false,
|
|
58
54
|
"complexType": {
|
|
@@ -6,9 +6,9 @@ export class ZonosCustomMessage {
|
|
|
6
6
|
this.message = '';
|
|
7
7
|
}
|
|
8
8
|
render() {
|
|
9
|
-
return (h(Host, { key: '
|
|
9
|
+
return (h(Host, { key: '6c16aa29406415995c2289c2fe3d22dbe08fbd23', class: "zonos--elements", style: {
|
|
10
10
|
'--font-family': zonosStoreFontFamily(),
|
|
11
|
-
} }, h("zonos-card", {
|
|
11
|
+
} }, this.message && (h("zonos-card", { class: "zonos--custom-message", spacing: "12px" }, h("div", { class: "zonos--flex-message" }, h("zonos-icon", { "aria-label": "Custom message", content: this.icon }), h("zonos-text", null, this.message))))));
|
|
12
12
|
}
|
|
13
13
|
static get is() { return "zonos-custom-message"; }
|
|
14
14
|
static get encapsulation() { return "shadow"; }
|
|
@@ -48,7 +48,7 @@ export class ZonosDialog {
|
|
|
48
48
|
document.body.style.overflow = 'auto';
|
|
49
49
|
}
|
|
50
50
|
const borderStyle = getBorderRadius(this.borderStyle);
|
|
51
|
-
return (h(Host, { key: '
|
|
51
|
+
return (h(Host, { key: 'dd232b16db7f6a6216f91af19c8b735b7eb528c7', class: classes([
|
|
52
52
|
'zonos--elements',
|
|
53
53
|
this.open && 'open',
|
|
54
54
|
this.isLoading && 'is-loading',
|
|
@@ -59,10 +59,10 @@ export class ZonosDialog {
|
|
|
59
59
|
'--font-family': zonosStoreFontFamily(),
|
|
60
60
|
'--height': this.height || 'initial',
|
|
61
61
|
'--width': this.width,
|
|
62
|
-
} }, h("div", { key: '
|
|
62
|
+
} }, h("div", { key: '23751fcbfe7a51856589d45feb59ed51ca3f86fa', class: "zonos--backdrop" }), h("div", { key: '3f5af0c470ad69e68b978753ece8d2687c99ab7c', "aria-hidden": "true", class: "zonos--dialog-layout", onClick: this.clickOutsideDialogHandler }, h("div", { key: 'e137a76e1a3e2cfc6403628fe804eb23d1bb1282', class: "zonos--dialog" }, this.isLoading && (h("div", { class: "zonos--loading" }, h("zonos-spinner", { size: 30 }))), (this.headerText || !this.noCloseButton) && (h("div", { class: "zonos--header" }, this.headerText && (h("h3", { class: "zonos--header-text" }, this.headerText)), !this.noCloseButton && (h("zonos-button", { class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close dialog", content: RemoveIcon }), noBackground: true, onClick: this.closeButtonHandler })))), h("div", { key: '46e89cdfaffd1190f4916206deb452002f40f24f', class: classes([
|
|
63
63
|
'zonos--body',
|
|
64
64
|
this.noBodyPadding && 'zonos--no-body-padding',
|
|
65
|
-
]) }, h("slot", { key: '
|
|
65
|
+
]) }, h("slot", { key: 'e8acb4a5e48ad4a0aeb057799f5abeb56eb8d1ea' })), this.footerRightAction && (h("div", { class: "zonos--footer" }, h("div", { class: "zonos--footer-right-action" }, this.footerRightAction)))))));
|
|
66
66
|
}
|
|
67
67
|
static get is() { return "zonos-dialog"; }
|
|
68
68
|
static get encapsulation() { return "shadow"; }
|