@zonos/elements 1.3.5 → 1.3.7-alpha.0
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/{localization-d43e1540.js → cart-ecc80eb0.js} +1086 -2
- package/dist/cjs/{getBorderRadius-cd7ef574.js → getBorderRadius-834c321d.js} +8 -4
- package/dist/cjs/index.cjs.js +0 -21
- package/dist/cjs/{isDarkColor-5eda1323.js → isDarkColor-924e6a7a.js} +1 -1
- package/dist/cjs/loader.cjs.js +5 -3
- package/dist/cjs/{submitGtag-bd6e9b42.js → submitGtag-907e71d3.js} +3 -3
- package/dist/cjs/zonos-address_4.cjs.entry.js +301 -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_2.cjs.entry.js → zonos-button_3.cjs.entry.js} +42 -15
- package/dist/cjs/zonos-card_2.cjs.entry.js +28 -14
- package/dist/cjs/{zonos-cart-items_10.cjs.entry.js → zonos-cart-items_9.cjs.entry.js} +98 -99
- package/dist/cjs/zonos-checkout.cjs.entry.js +25 -27
- package/dist/cjs/zonos-component.cjs.entry.js +2 -2
- package/dist/cjs/zonos-controller.cjs.entry.js +29 -30
- package/dist/cjs/zonos-country-flag.cjs.entry.js +42 -0
- package/dist/cjs/{zonos-country-flag_4.cjs.entry.js → zonos-country-select_3.cjs.entry.js} +31 -56
- package/dist/cjs/zonos-elements.cjs.js +6 -4
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +29 -22
- package/dist/cjs/zonos-hello.cjs.entry.js +35 -33
- 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 +6 -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-49d4c92a.js} +5 -5
- 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 +13 -8
- 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.js +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.css +12 -21
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +4 -5
- package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.css +11 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +12 -4
- 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.js +1 -1
- 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 +18 -0
- package/dist/collection/components/common/zonos-button/zonos-button.js +9 -28
- 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 +15 -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.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/stripe.js +31 -7
- package/dist/collection/components/store/hello/localization.js +32 -2
- 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/store/zonosStore.js +4 -4
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +63 -24
- 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 +19 -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/isDarkColor.js +1 -1
- package/dist/components/{localization.js → stripe.js} +1070 -2
- package/dist/components/submitGtag.js +1 -1
- package/dist/components/zonos-address2.js +64 -26
- package/dist/components/zonos-badge2.js +8 -10
- package/dist/components/zonos-banner2.js +3 -9
- package/dist/components/zonos-button2.js +10 -12
- 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 -9
- 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 +15 -7
- 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 +2 -3
- package/dist/components/zonos-checkout.js +74 -52
- package/dist/components/zonos-collapse2.js +16 -3
- package/dist/components/zonos-component.js +1 -1
- package/dist/components/zonos-controller.js +3 -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 +30 -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 +4 -5
- 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 +2 -3
- package/dist/components/zonos-spinner2.js +3 -3
- 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 +5 -5
- package/dist/esm/ILanguage-97790bee.js +24 -0
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/{localization-5d83fde2.js → cart-2a0a6871.js} +1071 -3
- package/dist/esm/getBorderRadius-0c7dfcf0.js +20 -0
- package/dist/esm/index.js +1 -6
- package/dist/esm/{isDarkColor-8696cb70.js → isDarkColor-d0a57fd2.js} +1 -1
- package/dist/esm/loader.js +6 -4
- package/dist/esm/{submitGtag-776c5e10.js → submitGtag-a38aed23.js} +2 -2
- package/dist/esm/zonos-address_4.entry.js +294 -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_2.entry.js → zonos-button_3.entry.js} +42 -16
- package/dist/esm/zonos-card_2.entry.js +28 -14
- package/dist/esm/{zonos-cart-items_10.entry.js → zonos-cart-items_9.entry.js} +86 -86
- package/dist/esm/zonos-checkout.entry.js +11 -13
- package/dist/esm/zonos-component.entry.js +2 -2
- package/dist/esm/zonos-controller.entry.js +6 -7
- package/dist/esm/zonos-country-flag.entry.js +38 -0
- package/dist/esm/{zonos-country-flag_4.entry.js → zonos-country-select_3.entry.js} +31 -55
- package/dist/esm/zonos-elements.js +7 -5
- package/dist/esm/zonos-hello-dialog.entry.js +15 -8
- package/dist/esm/zonos-hello.entry.js +5 -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 +6 -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-dec6bd7e.js} +5 -5
- package/dist/esm-es5/ILanguage-97790bee.js +1 -0
- package/dist/esm-es5/app-globals-0f993ce5.js +1 -0
- package/dist/esm-es5/cart-2a0a6871.js +1 -0
- package/dist/esm-es5/getBorderRadius-0c7dfcf0.js +1 -0
- package/dist/esm-es5/index.js +0 -1
- package/dist/esm-es5/{isDarkColor-8696cb70.js → isDarkColor-d0a57fd2.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/submitGtag-a38aed23.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-dec6bd7e.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 +12 -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/store/zonosStore.d.ts +1 -1
- package/dist/types/components/stripe/zonos-address/zonos-address.d.ts +3 -0
- 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/getBorderRadius.d.ts +1 -1
- package/dist/types/components/utils/hello/currencyConversion/getLanguageCode.d.ts +1 -1
- package/dist/types/components.d.ts +242 -116
- package/dist/types/types/ICountryJson.d.ts +2 -1
- 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 +31 -4
- package/dist/types/types/generated/graphql.customer.types.ts +45 -4
- package/dist/types/types/generated/graphql.frontend.types.d.ts +5 -5
- package/dist/types/types/generated/graphql.frontend.types.ts +13 -3
- 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-0057e374.entry.js +1 -0
- package/dist/zonos-elements/{p-120df5be.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-0c72fb79.system.entry.js +1 -0
- package/dist/zonos-elements/p-16ad90ca.js +1 -0
- package/dist/zonos-elements/p-1f85a98c.system.entry.js +1 -0
- package/dist/zonos-elements/p-290c3670.entry.js +1 -0
- package/dist/zonos-elements/p-2d2e1831.entry.js +1 -0
- package/dist/zonos-elements/p-2f1e1cbb.system.entry.js +1 -0
- package/dist/zonos-elements/p-33080cde.system.entry.js +1 -0
- package/dist/zonos-elements/{p-0024f8c2.js → p-34c03be2.js} +1 -1
- package/dist/zonos-elements/p-34efed1d.entry.js +1 -0
- package/dist/zonos-elements/p-375c472a.system.entry.js +1 -0
- package/dist/zonos-elements/p-50ea2036.system.js +1 -0
- package/dist/zonos-elements/p-549c181b.system.js +1 -0
- package/dist/zonos-elements/{p-be23cc91.system.entry.js → p-55970b10.system.entry.js} +1 -1
- package/dist/zonos-elements/p-561e44d6.entry.js +1 -0
- package/dist/zonos-elements/p-56ba5cbf.system.js +1 -0
- package/dist/zonos-elements/{p-dc09ca69.system.js → p-591eb6dd.system.js} +1 -1
- package/dist/zonos-elements/p-5b44abc8.system.js +1 -0
- package/dist/zonos-elements/p-5c4dc123.js +1 -0
- package/dist/zonos-elements/p-656c836b.entry.js +1 -0
- package/dist/zonos-elements/p-67737613.system.entry.js +1 -0
- package/dist/zonos-elements/p-79b910bf.system.entry.js +1 -0
- package/dist/zonos-elements/p-7d1d862f.system.entry.js +1 -0
- package/dist/zonos-elements/{p-5a0264e8.system.entry.js → p-88a55076.system.entry.js} +1 -1
- package/dist/zonos-elements/p-8aeb4679.system.entry.js +1 -0
- package/dist/zonos-elements/p-8d645a00.entry.js +1 -0
- package/dist/zonos-elements/p-9878a770.js +1 -0
- package/dist/zonos-elements/p-a219689f.entry.js +1 -0
- package/dist/zonos-elements/p-a3d72a33.entry.js +1 -0
- package/dist/zonos-elements/{p-aca66e4b.entry.js → p-a4de3fb2.entry.js} +1 -1
- package/dist/zonos-elements/p-a93c594f.entry.js +1 -0
- package/dist/zonos-elements/p-a95c034c.entry.js +1 -0
- package/dist/zonos-elements/p-abe7524f.system.js +1 -0
- package/dist/zonos-elements/p-afe40057.entry.js +1 -0
- package/dist/zonos-elements/p-b10ff468.entry.js +1 -0
- package/dist/zonos-elements/p-b6992dc2.system.entry.js +1 -0
- package/dist/zonos-elements/{p-af910392.js → p-bce46c41.js} +1 -1
- package/dist/zonos-elements/p-c56d4a44.entry.js +1 -0
- package/dist/zonos-elements/p-c7098c3b.entry.js +1 -0
- package/dist/zonos-elements/{p-ead79548.system.js → p-cbb1e700.system.js} +1 -1
- package/dist/zonos-elements/p-cc63a29f.system.entry.js +1 -0
- package/dist/zonos-elements/p-cd8bd5e9.system.entry.js +1 -0
- package/dist/zonos-elements/p-d36faf87.system.entry.js +1 -0
- package/dist/zonos-elements/p-dfd3edcf.entry.js +1 -0
- package/dist/zonos-elements/p-e1255160.js +1 -0
- package/dist/zonos-elements/p-e161a08c.entry.js +1 -0
- package/dist/zonos-elements/p-e2770968.system.entry.js +1 -0
- package/dist/zonos-elements/p-e2c6ad57.entry.js +1 -0
- package/dist/zonos-elements/{p-73174d0c.system.entry.js → p-e855966f.system.entry.js} +1 -1
- package/dist/zonos-elements/p-ea93943a.system.entry.js +1 -0
- package/dist/zonos-elements/{p-7f68c103.system.js → p-ec4d08b3.system.js} +1 -1
- package/dist/zonos-elements/{p-e8da4463.js → p-f455e08c.js} +1 -1
- 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/cart-c1b0915c.js +0 -655
- package/dist/cjs/zonos-address_2.cjs.entry.js +0 -161
- package/dist/cjs/zonos-badge.cjs.entry.js +0 -38
- 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/cart.js +0 -637
- package/dist/components/zonos-logo2.js +0 -48
- package/dist/esm/cart-7e7c7585.js +0 -637
- package/dist/esm/getBorderRadius-9e4cb3b1.js +0 -16
- package/dist/esm/zonos-address_2.entry.js +0 -156
- package/dist/esm/zonos-badge.entry.js +0 -34
- package/dist/esm/zonos-icon.entry.js +0 -31
- package/dist/esm-es5/cart-7e7c7585.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-776c5e10.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-09c5dc1b.system.entry.js +0 -1
- package/dist/zonos-elements/p-1156ae5d.system.entry.js +0 -1
- package/dist/zonos-elements/p-12ecf765.system.js +0 -1
- package/dist/zonos-elements/p-174239da.system.js +0 -1
- package/dist/zonos-elements/p-18e09138.system.entry.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-2589a038.system.entry.js +0 -1
- package/dist/zonos-elements/p-28d7b75d.entry.js +0 -1
- package/dist/zonos-elements/p-31fa76da.entry.js +0 -1
- package/dist/zonos-elements/p-3319e4db.entry.js +0 -1
- package/dist/zonos-elements/p-357f0c61.entry.js +0 -1
- package/dist/zonos-elements/p-410045c5.system.entry.js +0 -1
- package/dist/zonos-elements/p-4d0861e9.system.js +0 -1
- package/dist/zonos-elements/p-54ef8ff3.entry.js +0 -1
- package/dist/zonos-elements/p-626b5a52.system.entry.js +0 -1
- package/dist/zonos-elements/p-6444a4b9.entry.js +0 -1
- package/dist/zonos-elements/p-65f4af1a.system.entry.js +0 -1
- package/dist/zonos-elements/p-661bc488.entry.js +0 -1
- package/dist/zonos-elements/p-6c47083f.entry.js +0 -1
- package/dist/zonos-elements/p-6d454281.entry.js +0 -1
- package/dist/zonos-elements/p-7748735d.entry.js +0 -1
- package/dist/zonos-elements/p-78886ed6.system.entry.js +0 -1
- package/dist/zonos-elements/p-8ebc0b64.js +0 -1
- package/dist/zonos-elements/p-a6f2e282.system.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-b58d2231.entry.js +0 -1
- package/dist/zonos-elements/p-bd02a65c.entry.js +0 -1
- package/dist/zonos-elements/p-bea31a7b.system.entry.js +0 -1
- package/dist/zonos-elements/p-cfe4a318.js +0 -1
- package/dist/zonos-elements/p-e4a2a1b0.system.entry.js +0 -1
- package/dist/zonos-elements/p-eb631432.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-f82e000f.system.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,61 @@
|
|
|
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 .zonos--language-select {
|
|
35
|
+
width: 100%;
|
|
36
|
+
}
|
|
37
|
+
:host .zonos--language-select .zonos--language-select-content {
|
|
38
|
+
display: grid;
|
|
39
|
+
grid-template-columns: repeat(3, minmax(max-content, 1fr));
|
|
40
|
+
padding: var(--amino-space-16);
|
|
41
|
+
padding-top: var(--amino-space-0);
|
|
42
|
+
}
|
|
43
|
+
:host .zonos--language-select .zonos--language-select-content .zonos--language-select-button {
|
|
44
|
+
display: flex;
|
|
45
|
+
padding: var(--amino-space-8);
|
|
46
|
+
gap: var(--amino-space-4);
|
|
47
|
+
align-items: center;
|
|
48
|
+
border-radius: var(--amino-radius-4);
|
|
49
|
+
cursor: pointer;
|
|
50
|
+
width: 100%;
|
|
51
|
+
border: none;
|
|
52
|
+
background: none;
|
|
53
|
+
}
|
|
54
|
+
:host .zonos--language-select .zonos--language-select-content .zonos--language-select-button:hover {
|
|
55
|
+
background: var(--amino-gray-100);
|
|
56
|
+
}
|
|
57
|
+
@media (max-width: 400px) {
|
|
58
|
+
:host .zonos--language-select .zonos--language-select-content {
|
|
59
|
+
grid-template-columns: 1fr 1fr;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { localizationStore, localizationStoreUpdateSelectedLocale, } from "../../store/hello/localization";
|
|
3
|
+
import { translate } from "../../store/translationStore";
|
|
4
|
+
import { zonosStoreFontFamily } from "../../store/zonosStore";
|
|
5
|
+
import { languages } from "../../../types/ILanguage";
|
|
6
|
+
// eslint-disable-next-line no-relative-import-paths/no-relative-import-paths
|
|
7
|
+
import GreenCheckDuotoneIcon from "./assets/greenCheckDuotone.svg";
|
|
8
|
+
export class ZonosLanguageSelect {
|
|
9
|
+
constructor() {
|
|
10
|
+
this.languageSelected = (languageCode) => {
|
|
11
|
+
// mutate the selected language code in store
|
|
12
|
+
void localizationStoreUpdateSelectedLocale(languageCode);
|
|
13
|
+
this.handleOnClose();
|
|
14
|
+
};
|
|
15
|
+
this.handleOnClose = () => { };
|
|
16
|
+
}
|
|
17
|
+
render() {
|
|
18
|
+
const { selectedLocale } = localizationStore;
|
|
19
|
+
return (h(Host, { key: 'c90288e341c50d113cc63d09e864ddfa346d55a1', class: "zonos--elements", style: {
|
|
20
|
+
'--font-family': zonosStoreFontFamily(),
|
|
21
|
+
} }, h("div", { key: '4dabc3c9ab177e5545942c725490af64cb9608c3', class: "zonos--language-select" }, h("zonos-select-dialog-header", { key: '95f111f3774a568ea44204858fe503fa7c1915f3', handleOnClose: () => this.handleOnClose(), label: translate('Select a language') }), h("div", { key: 'c2634e3b006f3d14c67ee78c0c9befdb21cecc72', class: "zonos--language-select-content" }, languages.map(language => (h("button", { class: "zonos--language-select-button", onClick: () => this.languageSelected(language.code) }, h("zonos-text", { color: "gray-800" }, language.translatedLabel), language.code === selectedLocale && (h("zonos-icon", { content: GreenCheckDuotoneIcon, size: 16 })))))))));
|
|
22
|
+
}
|
|
23
|
+
static get is() { return "zonos-language-select"; }
|
|
24
|
+
static get encapsulation() { return "shadow"; }
|
|
25
|
+
static get originalStyleUrls() {
|
|
26
|
+
return {
|
|
27
|
+
"$": ["zonos-language-select.scss"]
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
static get styleUrls() {
|
|
31
|
+
return {
|
|
32
|
+
"$": ["zonos-language-select.css"]
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
static get properties() {
|
|
36
|
+
return {
|
|
37
|
+
"handleOnClose": {
|
|
38
|
+
"type": "unknown",
|
|
39
|
+
"mutable": false,
|
|
40
|
+
"complexType": {
|
|
41
|
+
"original": "() => void",
|
|
42
|
+
"resolved": "() => void",
|
|
43
|
+
"references": {}
|
|
44
|
+
},
|
|
45
|
+
"required": false,
|
|
46
|
+
"optional": false,
|
|
47
|
+
"docs": {
|
|
48
|
+
"tags": [{
|
|
49
|
+
"name": "default",
|
|
50
|
+
"text": "() => {}"
|
|
51
|
+
}],
|
|
52
|
+
"text": "Function to close the language select"
|
|
53
|
+
},
|
|
54
|
+
"defaultValue": "() => {}"
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -5,17 +5,16 @@ export class ZonosLogo {
|
|
|
5
5
|
constructor() {
|
|
6
6
|
this.theme = 'LIGHT';
|
|
7
7
|
this.width = 'auto';
|
|
8
|
-
this.class = '';
|
|
9
8
|
}
|
|
10
9
|
render() {
|
|
11
10
|
const filterColor = this.theme === 'DARK'
|
|
12
11
|
? 'invert(100%) sepia(100%) saturate(0%) hue-rotate(288deg) brightness(102%) contrast(102%)'
|
|
13
12
|
: 'whiteinvert(0%) sepia(100%) saturate(32%) hue-rotate(92deg) brightness(107%) contrast(107%)';
|
|
14
|
-
return (h(Host, { key: '
|
|
13
|
+
return (h(Host, { key: '5e97dd0219dde036eef02757f055354390b18c3d', class: classes(['zonos--elements zonos--logo']), style: {
|
|
15
14
|
'--filter-color': filterColor,
|
|
16
15
|
'--font-family': zonosStoreFontFamily(),
|
|
17
16
|
'--width': this.width,
|
|
18
|
-
} }, h("img", { key: '
|
|
17
|
+
} }, h("img", { key: '44c720d0a7bf3cf5a6bd783f21c8493d3a53ec70', alt: "Zonos Logo", src: getAssetPath('./assets/ZonosLogo.png') })));
|
|
19
18
|
}
|
|
20
19
|
static get is() { return "zonos-logo"; }
|
|
21
20
|
static get encapsulation() { return "shadow"; }
|
|
@@ -73,24 +72,6 @@ export class ZonosLogo {
|
|
|
73
72
|
"attribute": "width",
|
|
74
73
|
"reflect": false,
|
|
75
74
|
"defaultValue": "'auto'"
|
|
76
|
-
},
|
|
77
|
-
"class": {
|
|
78
|
-
"type": "string",
|
|
79
|
-
"mutable": false,
|
|
80
|
-
"complexType": {
|
|
81
|
-
"original": "string",
|
|
82
|
-
"resolved": "string",
|
|
83
|
-
"references": {}
|
|
84
|
-
},
|
|
85
|
-
"required": false,
|
|
86
|
-
"optional": false,
|
|
87
|
-
"docs": {
|
|
88
|
-
"tags": [],
|
|
89
|
-
"text": "css class for the component"
|
|
90
|
-
},
|
|
91
|
-
"attribute": "class",
|
|
92
|
-
"reflect": false,
|
|
93
|
-
"defaultValue": "''"
|
|
94
75
|
}
|
|
95
76
|
};
|
|
96
77
|
}
|
|
@@ -3,7 +3,6 @@ import { zonosStoreFontFamily } from "../../store/zonosStore";
|
|
|
3
3
|
import { classes } from "../../utils/classes";
|
|
4
4
|
export class ZonosNotification {
|
|
5
5
|
constructor() {
|
|
6
|
-
this.class = '';
|
|
7
6
|
this.notificationArray = [];
|
|
8
7
|
}
|
|
9
8
|
/**
|
|
@@ -46,16 +45,16 @@ export class ZonosNotification {
|
|
|
46
45
|
}, 300);
|
|
47
46
|
}
|
|
48
47
|
render() {
|
|
49
|
-
return (h(Host, { key: '
|
|
48
|
+
return (h(Host, { key: '3567d975084d41ba075ccf92347adf31e200b41f', class: classes(['zonos--elements zonos--notification']), style: {
|
|
50
49
|
'--font-family': zonosStoreFontFamily(),
|
|
51
|
-
} }, h("div", { key: '
|
|
50
|
+
} }, h("div", { key: 'c01555f14621f43d515f0593ed5463d4aa9b1309', class: "zonos--notification-items" }, this.notificationArray.map(notification => {
|
|
52
51
|
return (h("div", { "aria-hidden": "true", class: classes([
|
|
53
52
|
'zonos--notification-item',
|
|
54
53
|
notification.type,
|
|
55
54
|
notification.transitionClass,
|
|
56
55
|
]), key: notification.id, onClick: () => {
|
|
57
56
|
this.removeNotification(notification.id);
|
|
58
|
-
} }, h("zonos-text", {
|
|
57
|
+
} }, h("zonos-text", { textColor: "gray-0" }, notification.message)));
|
|
59
58
|
}))));
|
|
60
59
|
}
|
|
61
60
|
static get is() { return "zonos-notification"; }
|
|
@@ -70,28 +69,6 @@ export class ZonosNotification {
|
|
|
70
69
|
"$": ["zonos-notification.css"]
|
|
71
70
|
};
|
|
72
71
|
}
|
|
73
|
-
static get properties() {
|
|
74
|
-
return {
|
|
75
|
-
"class": {
|
|
76
|
-
"type": "string",
|
|
77
|
-
"mutable": false,
|
|
78
|
-
"complexType": {
|
|
79
|
-
"original": "string",
|
|
80
|
-
"resolved": "string",
|
|
81
|
-
"references": {}
|
|
82
|
-
},
|
|
83
|
-
"required": false,
|
|
84
|
-
"optional": false,
|
|
85
|
-
"docs": {
|
|
86
|
-
"tags": [],
|
|
87
|
-
"text": "Custom class to add to the notification"
|
|
88
|
-
},
|
|
89
|
-
"attribute": "class",
|
|
90
|
-
"reflect": false,
|
|
91
|
-
"defaultValue": "''"
|
|
92
|
-
}
|
|
93
|
-
};
|
|
94
|
-
}
|
|
95
72
|
static get states() {
|
|
96
73
|
return {
|
|
97
74
|
"notificationArray": {}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="https://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path fill="#C5C6CA" fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z" clip-rule="evenodd"/><path fill="#4D505A" fill-rule="evenodd" d="M8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414Z" clip-rule="evenodd"/></svg>
|
package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.css
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
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 .zonos--select-dialog-header-wrapper {
|
|
35
|
+
position: sticky;
|
|
36
|
+
top: 0;
|
|
37
|
+
background: var(--amino-surface-color);
|
|
38
|
+
padding: var(--amino-space-16);
|
|
39
|
+
}
|
|
40
|
+
:host .zonos--select-dialog-header-wrapper .zonos--select-dialog-header {
|
|
41
|
+
position: relative;
|
|
42
|
+
justify-content: space-between;
|
|
43
|
+
display: flex;
|
|
44
|
+
align-items: center;
|
|
45
|
+
}
|
package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { zonosStoreFontFamily } from "../../store/zonosStore";
|
|
3
|
+
// eslint-disable-next-line no-relative-import-paths/no-relative-import-paths
|
|
4
|
+
import RemoveIcon from "./assets/removeIcon.svg";
|
|
5
|
+
export class ZonosSelectDialogHeader {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.handleOnClose = () => { };
|
|
8
|
+
this.label = '';
|
|
9
|
+
}
|
|
10
|
+
render() {
|
|
11
|
+
return (h(Host, { key: '737dcae414b2538bf4c0b5c932a78acb9eeb1e93', class: "zonos--elements", style: {
|
|
12
|
+
'--font-family': zonosStoreFontFamily(),
|
|
13
|
+
} }, h("zonos-v-stack", { key: '8cfde0f03e03ad011c8f8f4517c3b47ba8c03746', class: "zonos--select-dialog-header-wrapper", spacing: 8 }, h("div", { key: '5c5044ad46e156ad4cde26df0bb57c6690a11e42', class: "zonos--select-dialog-header" }, h("zonos-text", { key: 'a10b9b48834c6eabd9d20f44b8c8dc4927d53bd1', type: "boldLabel" }, this.label), h("zonos-button", { key: '50d74c5e97f2c224a437fde48b6d2a30b14fc1fe', class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close select dialog", content: RemoveIcon, size: 20 }), noBackground: true, onClick: () => this.handleOnClose() })), h("slot", { key: 'd875d9cfddaf37f1ca0a2bb01a3ba3da10c2fda0' }))));
|
|
14
|
+
}
|
|
15
|
+
static get is() { return "zonos-select-dialog-header"; }
|
|
16
|
+
static get encapsulation() { return "shadow"; }
|
|
17
|
+
static get originalStyleUrls() {
|
|
18
|
+
return {
|
|
19
|
+
"$": ["zonos-select-dialog-header.scss"]
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
static get styleUrls() {
|
|
23
|
+
return {
|
|
24
|
+
"$": ["zonos-select-dialog-header.css"]
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
static get properties() {
|
|
28
|
+
return {
|
|
29
|
+
"handleOnClose": {
|
|
30
|
+
"type": "unknown",
|
|
31
|
+
"mutable": false,
|
|
32
|
+
"complexType": {
|
|
33
|
+
"original": "() => void",
|
|
34
|
+
"resolved": "() => void",
|
|
35
|
+
"references": {}
|
|
36
|
+
},
|
|
37
|
+
"required": false,
|
|
38
|
+
"optional": false,
|
|
39
|
+
"docs": {
|
|
40
|
+
"tags": [{
|
|
41
|
+
"name": "default",
|
|
42
|
+
"text": "() => {}"
|
|
43
|
+
}],
|
|
44
|
+
"text": "Callback to do something on close"
|
|
45
|
+
},
|
|
46
|
+
"defaultValue": "() => {}"
|
|
47
|
+
},
|
|
48
|
+
"label": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"mutable": false,
|
|
51
|
+
"complexType": {
|
|
52
|
+
"original": "string",
|
|
53
|
+
"resolved": "string",
|
|
54
|
+
"references": {}
|
|
55
|
+
},
|
|
56
|
+
"required": false,
|
|
57
|
+
"optional": false,
|
|
58
|
+
"docs": {
|
|
59
|
+
"tags": [],
|
|
60
|
+
"text": "The label for the select dialog"
|
|
61
|
+
},
|
|
62
|
+
"attribute": "label",
|
|
63
|
+
"reflect": false,
|
|
64
|
+
"defaultValue": "''"
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
}
|
package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.js
CHANGED
|
@@ -34,7 +34,7 @@ export class ZonosShippingRichRadio {
|
|
|
34
34
|
return (h("div", { "aria-hidden": "true", class: classes([
|
|
35
35
|
'zonos--shipping-rich-radio-item',
|
|
36
36
|
selected && 'selected',
|
|
37
|
-
]), onClick: () => this.handleRichRadioSelect(item) }, h("input", { checked: selected, class: "zonos--shipping-rich-radio-input", name: "zonos--shipping-rich-radio", type: "radio", value: item.value }), h("div", { class: "zonos--shipping-info" }, h("div", { class: "zonos--shipping-detail" }, h("zonos-text", { class: "zonos--shipping-label", type: "label" }, item.label), (item.sublabel || item.caption) && (h("div", { class: "zonos--sub-detail" }, item.sublabel && (h("zonos-text", {
|
|
37
|
+
]), onClick: () => this.handleRichRadioSelect(item) }, h("input", { checked: selected, class: "zonos--shipping-rich-radio-input", name: "zonos--shipping-rich-radio", type: "radio", value: item.value }), h("div", { class: "zonos--shipping-info" }, h("div", { class: "zonos--shipping-detail" }, h("zonos-text", { class: "zonos--shipping-label", type: "label" }, item.label), (item.sublabel || item.caption) && (h("div", { class: "zonos--sub-detail" }, item.sublabel && (h("zonos-text", { textColor: "gray-800" }, item.sublabel)), item.caption && (h("zonos-text", { textColor: "gray-400" }, item.caption))))), h("zonos-text", { type: "semiBoldLabel" }, item.price))));
|
|
38
38
|
})));
|
|
39
39
|
}
|
|
40
40
|
static get is() { return "zonos-shipping-rich-radio"; }
|
|
@@ -3,13 +3,13 @@ import { classes } from "../../utils/classes";
|
|
|
3
3
|
export class ZonosSpinner {
|
|
4
4
|
constructor() {
|
|
5
5
|
this.size = 32;
|
|
6
|
-
this.
|
|
6
|
+
this.spinnerColor = undefined;
|
|
7
7
|
}
|
|
8
8
|
render() {
|
|
9
9
|
if (!this.el.shadowRoot) {
|
|
10
10
|
return null;
|
|
11
11
|
}
|
|
12
|
-
return (h(Host, { class: classes(['zonos--elements', this.
|
|
12
|
+
return (h(Host, { class: classes(['zonos--elements', this.spinnerColor]), style: {
|
|
13
13
|
'--size': `${this.size}px`,
|
|
14
14
|
} }, h("svg", { viewBox: "0 0 50 50" }, h("circle", { class: "track", cx: "25", cy: "25", fill: "none", id: "loading-spinner-circle", r: "20", "stroke-width": "5" }), h("circle", { cx: "25", cy: "25", fill: "none", id: "loading-spinner-circle", r: "20", "stroke-width": "5" }))));
|
|
15
15
|
}
|
|
@@ -48,7 +48,7 @@ export class ZonosSpinner {
|
|
|
48
48
|
"reflect": false,
|
|
49
49
|
"defaultValue": "32"
|
|
50
50
|
},
|
|
51
|
-
"
|
|
51
|
+
"spinnerColor": {
|
|
52
52
|
"type": "string",
|
|
53
53
|
"mutable": false,
|
|
54
54
|
"complexType": {
|
|
@@ -68,7 +68,7 @@ export class ZonosSpinner {
|
|
|
68
68
|
"tags": [],
|
|
69
69
|
"text": "Color of the spinner"
|
|
70
70
|
},
|
|
71
|
-
"attribute": "color",
|
|
71
|
+
"attribute": "spinner-color",
|
|
72
72
|
"reflect": false
|
|
73
73
|
}
|
|
74
74
|
};
|
|
@@ -4,8 +4,7 @@ import { classes } from "../../utils/classes";
|
|
|
4
4
|
import { textOptions, } from "../../../types/styles/Text";
|
|
5
5
|
export class ZonosText {
|
|
6
6
|
constructor() {
|
|
7
|
-
this.
|
|
8
|
-
this.color = 'gray-1200';
|
|
7
|
+
this.textColor = 'gray-1200';
|
|
9
8
|
this.size = undefined;
|
|
10
9
|
this.type = 'body';
|
|
11
10
|
this.weight = undefined;
|
|
@@ -41,9 +40,8 @@ export class ZonosText {
|
|
|
41
40
|
return (h(Host, { class: classes([
|
|
42
41
|
`zonos--text-size-${textSize}`,
|
|
43
42
|
`zonos--text-weight-${textWeight}`,
|
|
44
|
-
this.class,
|
|
45
43
|
]), style: {
|
|
46
|
-
'--color': this.
|
|
44
|
+
'--color': this.textColor ? `var(--amino-${this.textColor})` : '',
|
|
47
45
|
'--font-family': zonosStoreFontFamily(),
|
|
48
46
|
} }, renderText()));
|
|
49
47
|
}
|
|
@@ -61,25 +59,7 @@ export class ZonosText {
|
|
|
61
59
|
}
|
|
62
60
|
static get properties() {
|
|
63
61
|
return {
|
|
64
|
-
"
|
|
65
|
-
"type": "string",
|
|
66
|
-
"mutable": false,
|
|
67
|
-
"complexType": {
|
|
68
|
-
"original": "string",
|
|
69
|
-
"resolved": "string",
|
|
70
|
-
"references": {}
|
|
71
|
-
},
|
|
72
|
-
"required": false,
|
|
73
|
-
"optional": false,
|
|
74
|
-
"docs": {
|
|
75
|
-
"tags": [],
|
|
76
|
-
"text": "css class for the component"
|
|
77
|
-
},
|
|
78
|
-
"attribute": "class",
|
|
79
|
-
"reflect": false,
|
|
80
|
-
"defaultValue": "''"
|
|
81
|
-
},
|
|
82
|
-
"color": {
|
|
62
|
+
"textColor": {
|
|
83
63
|
"type": "string",
|
|
84
64
|
"mutable": false,
|
|
85
65
|
"complexType": {
|
|
@@ -99,7 +79,7 @@ export class ZonosText {
|
|
|
99
79
|
"tags": [],
|
|
100
80
|
"text": "The icon element to display"
|
|
101
81
|
},
|
|
102
|
-
"attribute": "color",
|
|
82
|
+
"attribute": "text-color",
|
|
103
83
|
"reflect": false,
|
|
104
84
|
"defaultValue": "'gray-1200'"
|
|
105
85
|
},
|
|
@@ -0,0 +1,55 @@
|
|
|
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 .zonos--tooltip {
|
|
35
|
+
position: relative;
|
|
36
|
+
}
|
|
37
|
+
:host .zonos--tooltip .zonos--tooltip-content {
|
|
38
|
+
position: absolute;
|
|
39
|
+
bottom: 100%;
|
|
40
|
+
left: 0;
|
|
41
|
+
width: max-content;
|
|
42
|
+
padding: var(--amino-space-12);
|
|
43
|
+
background-color: var(--amino-gray-1200);
|
|
44
|
+
opacity: 0;
|
|
45
|
+
transform: scale(0);
|
|
46
|
+
transition: all 0.2s ease-in-out;
|
|
47
|
+
transform-origin: bottom left;
|
|
48
|
+
border-radius: var(--amino-radius-4);
|
|
49
|
+
z-index: 100;
|
|
50
|
+
box-shadow: var(--amino-v3-shadow-large);
|
|
51
|
+
}
|
|
52
|
+
:host .zonos--tooltip .zonos--tooltip-content.zonos--show-tooltip {
|
|
53
|
+
opacity: 1;
|
|
54
|
+
transform: scale(1);
|
|
55
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { classes } from "../../utils/classes";
|
|
3
|
+
export class ZonosTooltip {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.label = '';
|
|
6
|
+
this.subtitle = '';
|
|
7
|
+
this.showTooltip = false;
|
|
8
|
+
}
|
|
9
|
+
render() {
|
|
10
|
+
return (h(Host, { key: '684561bebf9385c7e6bcca7de37e7ee5084c9692', class: "zonos--elements" }, h("div", { key: 'c116738f39d25b856b268ece410a33f91046c739', class: "zonos--tooltip", onMouseEnter: () => (this.showTooltip = true), onMouseLeave: () => (this.showTooltip = false) }, h("slot", { key: '4073ed0766b4efaa0c25fa7febdbad4c42714dca' }), h("div", { key: '8c6b180577830aaaceb629819535dd930fc49e02', class: classes([
|
|
11
|
+
this.showTooltip && 'zonos--show-tooltip',
|
|
12
|
+
'zonos--tooltip-content',
|
|
13
|
+
]) }, h("zonos-text", { key: '7c018a9d5a7db939b59624dcc77029a5a8d621af', color: "gray-0", size: "s", type: "boldLabel" }, this.label), h("zonos-text", { key: 'c1f09eaf9cb1084ecf47334903b9ca8b944502b7', color: "gray-0", size: "xs" }, this.subtitle)))));
|
|
14
|
+
}
|
|
15
|
+
static get is() { return "zonos-tooltip"; }
|
|
16
|
+
static get encapsulation() { return "shadow"; }
|
|
17
|
+
static get originalStyleUrls() {
|
|
18
|
+
return {
|
|
19
|
+
"$": ["zonos-tooltip.scss"]
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
static get styleUrls() {
|
|
23
|
+
return {
|
|
24
|
+
"$": ["zonos-tooltip.css"]
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
static get properties() {
|
|
28
|
+
return {
|
|
29
|
+
"label": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"mutable": false,
|
|
32
|
+
"complexType": {
|
|
33
|
+
"original": "string",
|
|
34
|
+
"resolved": "string",
|
|
35
|
+
"references": {}
|
|
36
|
+
},
|
|
37
|
+
"required": false,
|
|
38
|
+
"optional": false,
|
|
39
|
+
"docs": {
|
|
40
|
+
"tags": [],
|
|
41
|
+
"text": "The title of the tooltip"
|
|
42
|
+
},
|
|
43
|
+
"attribute": "label",
|
|
44
|
+
"reflect": false,
|
|
45
|
+
"defaultValue": "''"
|
|
46
|
+
},
|
|
47
|
+
"subtitle": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"mutable": false,
|
|
50
|
+
"complexType": {
|
|
51
|
+
"original": "string",
|
|
52
|
+
"resolved": "string",
|
|
53
|
+
"references": {}
|
|
54
|
+
},
|
|
55
|
+
"required": false,
|
|
56
|
+
"optional": false,
|
|
57
|
+
"docs": {
|
|
58
|
+
"tags": [],
|
|
59
|
+
"text": "The subtitle of the tooltip"
|
|
60
|
+
},
|
|
61
|
+
"attribute": "subtitle",
|
|
62
|
+
"reflect": false,
|
|
63
|
+
"defaultValue": "''"
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
static get states() {
|
|
68
|
+
return {
|
|
69
|
+
"showTooltip": {}
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -5,12 +5,11 @@ import { classes } from "../../utils/classes";
|
|
|
5
5
|
export class VStack {
|
|
6
6
|
constructor() {
|
|
7
7
|
this.spacing = 24;
|
|
8
|
-
this.class = '';
|
|
9
8
|
}
|
|
10
9
|
render() {
|
|
11
|
-
return (h(Host, { key: '
|
|
10
|
+
return (h(Host, { key: 'a26c7c4898b81deb569731adb63505ded3155fdf', style: {
|
|
12
11
|
'--font-family': zonosStoreFontFamily(),
|
|
13
|
-
} }, h("div", { key: '
|
|
12
|
+
} }, h("div", { key: 'd4af21dc024bbd12b5240dff4f2689416ad4d808', class: classes(['vstack']), style: { 'grid-row-gap': `${this.spacing}px` } }, h("slot", { key: '298de42d875520fad5a720eedcf2b8664b39ae85' }))));
|
|
14
13
|
}
|
|
15
14
|
static get is() { return "zonos-v-stack"; }
|
|
16
15
|
static get encapsulation() { return "shadow"; }
|
|
@@ -52,24 +51,6 @@ export class VStack {
|
|
|
52
51
|
"attribute": "spacing",
|
|
53
52
|
"reflect": false,
|
|
54
53
|
"defaultValue": "24"
|
|
55
|
-
},
|
|
56
|
-
"class": {
|
|
57
|
-
"type": "string",
|
|
58
|
-
"mutable": false,
|
|
59
|
-
"complexType": {
|
|
60
|
-
"original": "string",
|
|
61
|
-
"resolved": "string",
|
|
62
|
-
"references": {}
|
|
63
|
-
},
|
|
64
|
-
"required": false,
|
|
65
|
-
"optional": false,
|
|
66
|
-
"docs": {
|
|
67
|
-
"tags": [],
|
|
68
|
-
"text": "The CSS class to apply to the stack element"
|
|
69
|
-
},
|
|
70
|
-
"attribute": "class",
|
|
71
|
-
"reflect": false,
|
|
72
|
-
"defaultValue": "''"
|
|
73
54
|
}
|
|
74
55
|
};
|
|
75
56
|
}
|
|
@@ -10,7 +10,7 @@ export class ZonosComponent {
|
|
|
10
10
|
return format(this.first, this.middle, this.last);
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
|
-
return h("div", { key: '
|
|
13
|
+
return h("div", { key: 'cf376a9b1970bd04cdadf820112c081666c8bef2' }, "Hello, World! I'm ", this.getText());
|
|
14
14
|
}
|
|
15
15
|
static get is() { return "zonos-component"; }
|
|
16
16
|
static get encapsulation() { return "shadow"; }
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" color="var(--amino-gray-1200)" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12ZM11.4709 5.80634C11.7686 5.53723 11.9541 5.5 12 5.5C12.0459 5.5 12.2314 5.53723 12.5291 5.80634C12.8115 6.06164 13.1289 6.46913 13.4271 7.03651C13.9505 8.03191 14.3838 9.46098 14.48 11.25H9.51996C9.61624 9.46098 10.0495 8.03191 10.5729 7.03651C10.8711 6.46913 11.1885 6.06164 11.4709 5.80634ZM8.01802 11.25C8.11591 9.23031 8.60319 7.55958 9.24516 6.33849C9.29983 6.23451 9.35585 6.13335 9.41312 6.03514C7.32916 6.94017 5.81218 8.90533 5.5428 11.25H8.01802ZM5.5428 12.75H8.01802C8.11591 14.7697 8.60319 16.4404 9.24516 17.6615C9.29983 17.7655 9.35585 17.8666 9.41312 17.9649C7.32916 17.0598 5.81218 15.0947 5.5428 12.75ZM9.51996 12.75H14.48C14.3838 14.539 13.9505 15.9681 13.4271 16.9635C13.1289 17.5309 12.8115 17.9384 12.5291 18.1937C12.2314 18.4628 12.0459 18.5 12 18.5C11.9541 18.5 11.7686 18.4628 11.4709 18.1937C11.1885 17.9384 10.8711 17.5309 10.5729 16.9635C10.0495 15.9681 9.61624 14.539 9.51996 12.75ZM15.982 12.75C15.8841 14.7697 15.3968 16.4404 14.7548 17.6615C14.7002 17.7655 14.6441 17.8666 14.5869 17.9649C16.6708 17.0598 18.1878 15.0947 18.4572 12.75H15.982ZM18.4572 11.25C18.1878 8.90533 16.6708 6.94017 14.5869 6.03514C14.6441 6.13335 14.7002 6.23451 14.7548 6.33849C15.3968 7.55958 15.8841 9.23031 15.982 11.25H18.4572Z" fill="currentColor"/>
|
|
3
|
+
</svg>
|
|
@@ -523,4 +523,14 @@
|
|
|
523
523
|
}
|
|
524
524
|
:host .zonos--hello-dialog-footer zonos-button button.outline {
|
|
525
525
|
outline: 1px solid var(--amino-gray-800);
|
|
526
|
+
}
|
|
527
|
+
:host .zonos--hello-dialog-footer .zonos--hello-locale-wrapper {
|
|
528
|
+
display: flex;
|
|
529
|
+
align-items: center;
|
|
530
|
+
gap: var(--amino-space-8);
|
|
531
|
+
}
|
|
532
|
+
@media (max-width: 400px) {
|
|
533
|
+
:host .zonos--hello-dialog-footer .zonos--hello-locale-wrapper {
|
|
534
|
+
gap: var(--amino-space-4);
|
|
535
|
+
}
|
|
526
536
|
}
|