@zonos/elements 1.3.15-alpha.3 → 1.3.16-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/RemoveIcon-081ac073.js +5 -0
- package/dist/cjs/{cart-1b1d39af.js → cart-db549f04.js} +976 -138
- package/dist/cjs/containsNonLatinChars-2be5129b.js +24 -0
- package/dist/cjs/{getBorderRadius-c8cc2bb3.js → getBorderRadius-44b3eca1.js} +4 -6
- package/dist/cjs/index-654a6001.js +1361 -0
- package/dist/cjs/isCheckoutMobile-f491ca7c.js +8 -0
- package/dist/cjs/{isColorVariable-fff5e469.js → isColorVariable-6f5a9608.js} +2 -2
- package/dist/cjs/{isDarkColor-f5473002.js → isDarkColor-01f45d3f.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{submitGtag-ab287a34.js → submitGtag-fd8acad5.js} +21 -2
- package/dist/cjs/zonos-address_8.cjs.entry.js +642 -0
- package/dist/cjs/zonos-badge_2.cjs.entry.js +9 -9
- package/dist/cjs/zonos-banner.cjs.entry.js +5 -5
- package/dist/cjs/zonos-button_3.cjs.entry.js +192 -0
- package/dist/cjs/zonos-card_2.cjs.entry.js +12 -12
- package/dist/cjs/{zonos-cart-items_10.cjs.entry.js → zonos-cart-items_9.cjs.entry.js} +150 -124
- package/dist/cjs/zonos-checkout.cjs.entry.js +20 -19
- package/dist/cjs/zonos-component.cjs.entry.js +2 -2
- package/dist/cjs/zonos-controller.cjs.entry.js +6 -6
- package/dist/cjs/zonos-country-flag.cjs.entry.js +5 -5
- package/dist/cjs/zonos-country-select_3.cjs.entry.js +16 -16
- package/dist/cjs/zonos-elements.cjs.js +10 -10
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +9 -9
- package/dist/cjs/zonos-hello.cjs.entry.js +6 -6
- package/dist/cjs/zonos-input.cjs.entry.js +57 -0
- package/dist/cjs/zonos-link.cjs.entry.js +3 -3
- package/dist/cjs/zonos-logo.cjs.entry.js +4 -4
- package/dist/cjs/zonos-notification.cjs.entry.js +5 -5
- package/dist/cjs/zonos-payment.cjs.entry.js +6 -6
- package/dist/cjs/zonos-select-dialog-header_2.cjs.entry.js +7 -7
- package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +10 -8
- package/dist/cjs/zonos-text.cjs.entry.js +6 -5
- package/dist/cjs/{zonosStore-aee974e0.js → zonosStore-d8bb0bda.js} +1 -1
- package/dist/collection/__mocks__/vercel-app/zonos-hello.entry.js +1 -1
- package/dist/collection/__mocks__/zonos-url/zonos-hello.entry.js +1 -1
- package/dist/collection/collection-manifest.json +5 -1
- package/dist/collection/components/checkout/zonos-checkout/assets/LeftArrow.svg +1 -1
- package/dist/collection/components/checkout/zonos-checkout/assets/RemoveIcon.svg +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-display/zonos-address-display.css +62 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-display/zonos-address-display.js +80 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-form/zonos-address-form.css +59 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-form/zonos-address-form.js +148 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-update-dialog.css +115 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-update-dialog.js +429 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-items/zonos-cart-items.css +2 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-items/zonos-cart-items.js +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.css +2 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/assets/RemoveIcon.svg +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/assets/SuccessIcon.svg +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.css +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +5 -3
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/assets/chevronDownIcon.svg +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/assets/globe.svg +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/assets/zonosIcon.svg +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.css +8 -8
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.js +2 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.css +3 -3
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.css +10 -10
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +7 -5
- package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.css +3 -3
- package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +135 -20
- package/dist/collection/components/checkout/zonos-checkout/zonos-review/assets/ChevronDownIcon.svg +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-review/assets/ChevronUpIcon.svg +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-review/zonos-review.css +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.css +3 -3
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +1 -1
- package/dist/collection/components/common/component-template/zonos-link/zonos-link.css +4 -4
- package/dist/collection/components/common/component-template/zonos-link/zonos-link.js +1 -1
- package/dist/collection/components/common/zonos-badge/zonos-badge.css +30 -30
- package/dist/collection/components/common/zonos-badge/zonos-badge.js +3 -3
- package/dist/collection/components/common/zonos-banner/zonos-banner.css +10 -10
- package/dist/collection/components/common/zonos-banner/zonos-banner.js +2 -2
- package/dist/collection/components/common/zonos-button/zonos-button.css +63 -62
- package/dist/collection/components/common/zonos-button/zonos-button.js +17 -8
- package/dist/collection/components/common/zonos-card/zonos-card.css +7 -7
- package/dist/collection/components/common/zonos-card/zonos-card.js +3 -3
- package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.css +4 -3
- package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +26 -8
- package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +4 -4
- package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +2 -2
- package/dist/collection/components/common/zonos-country-select/zonos-country-select.css +8 -8
- package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +2 -2
- package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.css +2 -2
- package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +2 -2
- package/dist/collection/components/common/zonos-dialog/zonos-dialog.css +14 -14
- package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +6 -4
- package/dist/collection/components/common/zonos-icon/zonos-icon.js +1 -1
- package/dist/collection/components/common/zonos-input/zonos-input.css +176 -0
- package/dist/collection/components/common/zonos-input/zonos-input.js +193 -0
- package/dist/collection/components/common/zonos-language-select/zonos-language-select.css +2 -2
- package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -2
- package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -2
- package/dist/collection/components/common/zonos-notification/zonos-notification.css +4 -4
- package/dist/collection/components/common/zonos-notification/zonos-notification.js +2 -2
- package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.css +1 -1
- package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
- package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.css +7 -7
- package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.js +5 -3
- package/dist/collection/components/common/zonos-spinner/zonos-spinner.css +14 -14
- package/dist/collection/components/common/zonos-text/zonos-text.css +7 -7
- package/dist/collection/components/common/zonos-text/zonos-text.js +2 -1
- package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.css +3 -3
- package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
- package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
- package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
- package/dist/collection/components/hello/zonos-hello/zonos-hello.css +30 -30
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/assets/chevronDownIcon.svg +1 -1
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/assets/globe.svg +1 -1
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/assets/zonosIcon.svg +1 -1
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.css +385 -378
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -2
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.css +11 -11
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +3 -3
- package/dist/collection/components/main/zonos-controller.js +2 -2
- package/dist/collection/components/store/checkout/stripe.js +153 -14
- package/dist/collection/components/store/translationStore/strings.arabic.js +36 -6
- package/dist/collection/components/store/translationStore/strings.base.js +36 -6
- package/dist/collection/components/store/translationStore/strings.chinese.js +36 -6
- package/dist/collection/components/store/translationStore/strings.danish.js +36 -6
- package/dist/collection/components/store/translationStore/strings.dutch.js +36 -6
- package/dist/collection/components/store/translationStore/strings.french.js +36 -6
- package/dist/collection/components/store/translationStore/strings.german.js +36 -6
- package/dist/collection/components/store/translationStore/strings.hebrew.js +36 -6
- package/dist/collection/components/store/translationStore/strings.indonesian.js +36 -6
- package/dist/collection/components/store/translationStore/strings.italian.js +36 -6
- package/dist/collection/components/store/translationStore/strings.japanese.js +36 -6
- package/dist/collection/components/store/translationStore/strings.korean.js +36 -6
- package/dist/collection/components/store/translationStore/strings.norwegian.js +36 -6
- package/dist/collection/components/store/translationStore/strings.polish.js +36 -6
- package/dist/collection/components/store/translationStore/strings.portuguese.js +36 -6
- package/dist/collection/components/store/translationStore/strings.russian.js +36 -6
- package/dist/collection/components/store/translationStore/strings.spanish.js +36 -6
- package/dist/collection/components/store/translationStore/strings.swedish.js +36 -6
- package/dist/collection/components/store/translationStore/strings.turkish.js +36 -6
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +36 -6
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +3 -71
- package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +29 -5
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
- package/dist/collection/components/utils/checkout/buildTranslateRequestBody.js +98 -0
- package/dist/collection/components/utils/containsNonLatinChars.js +10 -8
- package/dist/collection/components/utils/getBorderRadius.js +3 -5
- package/dist/collection/components/utils/getButtonTheme.js +1 -1
- package/dist/collection/components/utils/isColorVariable.js +2 -2
- package/dist/collection/styles/stripe/defaultVariable.js +2 -2
- package/dist/collection/types/checkout/TranslatedText.js +1 -0
- package/dist/collection/types/checkout/api/ValidateAddressRequest.js +1 -0
- package/dist/components/containsNonLatinChars.js +21 -0
- package/dist/components/getBorderRadius.js +3 -5
- package/dist/components/isColorVariable.js +2 -2
- package/dist/components/stripe.js +255 -4545
- package/dist/components/trackConversionEvent.js +1 -1
- package/dist/components/translationStore.js +5131 -0
- package/dist/components/zonos-address-display.d.ts +11 -0
- package/dist/components/zonos-address-display.js +6 -0
- package/dist/components/zonos-address-display2.js +64 -0
- package/dist/components/zonos-address-form.d.ts +11 -0
- package/dist/components/zonos-address-form.js +6 -0
- package/dist/components/zonos-address-form2.js +84 -0
- package/dist/components/zonos-address-update-dialog.d.ts +11 -0
- package/dist/components/zonos-address-update-dialog.js +6 -0
- package/dist/components/zonos-address-update-dialog2.js +264 -0
- package/dist/components/zonos-address2.js +3 -93
- package/dist/components/zonos-badge2.js +4 -4
- package/dist/components/zonos-banner2.js +3 -3
- package/dist/components/zonos-button2.js +19 -10
- package/dist/components/zonos-card2.js +4 -4
- package/dist/components/zonos-cart-items2.js +2 -2
- package/dist/components/zonos-cart-subtotal2.js +3 -2
- package/dist/components/zonos-checkbox2.js +19 -10
- package/dist/components/zonos-checkout-finish2.js +29 -9
- package/dist/components/zonos-checkout-footer2.js +5 -5
- package/dist/components/zonos-checkout-payment2.js +3 -2
- package/dist/components/zonos-checkout-progress-tabs2.js +6 -5
- package/dist/components/zonos-checkout.js +73 -43
- package/dist/components/zonos-collapse2.js +2 -2
- package/dist/components/zonos-component.js +1 -1
- package/dist/components/zonos-controller.js +2 -2
- package/dist/components/zonos-country-select2.js +3 -3
- package/dist/components/zonos-custom-message2.js +3 -3
- package/dist/components/zonos-customer-info2.js +171 -30
- package/dist/components/zonos-dialog2.js +7 -5
- package/dist/components/zonos-hello-dialog-footer2.js +5 -5
- package/dist/components/zonos-hello-dialog2.js +6 -5
- package/dist/components/zonos-hello.js +3 -2
- package/dist/components/zonos-icon2.js +1 -1
- package/dist/components/zonos-input.d.ts +11 -0
- package/dist/components/zonos-input.js +6 -0
- package/dist/components/zonos-input2.js +78 -0
- package/dist/components/zonos-language-select2.js +5 -4
- package/dist/components/zonos-link-authentication2.js +12 -5
- package/dist/components/zonos-link.js +2 -2
- package/dist/components/zonos-logo.js +2 -2
- package/dist/components/zonos-notification2.js +3 -3
- package/dist/components/zonos-payment2.js +1 -1
- package/dist/components/zonos-review2.js +5 -4
- package/dist/components/zonos-select-dialog-header2.js +3 -3
- package/dist/components/zonos-shipping-rich-radio2.js +6 -4
- package/dist/components/zonos-shipping2.js +4 -3
- package/dist/components/zonos-spinner2.js +1 -1
- package/dist/components/zonos-text2.js +3 -2
- package/dist/components/zonos-tooltip2.js +3 -3
- package/dist/components/zonos-v-stack2.js +2 -2
- package/dist/esm/RemoveIcon-9dc5dd1a.js +3 -0
- package/dist/esm/{cart-10bcd2e0.js → cart-462e89a6.js} +976 -139
- package/dist/esm/containsNonLatinChars-2d8810c3.js +21 -0
- package/dist/esm/{getBorderRadius-8129b0cb.js → getBorderRadius-567f1786.js} +4 -6
- package/dist/esm/index-e063389c.js +1328 -0
- package/dist/esm/isCheckoutMobile-8846dccb.js +6 -0
- package/dist/esm/{isColorVariable-fbf2d80d.js → isColorVariable-82457bef.js} +2 -2
- package/dist/esm/{isDarkColor-7a6d2d14.js → isDarkColor-7f62035a.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{submitGtag-84886899.js → submitGtag-ac7c3c89.js} +21 -3
- package/dist/esm/zonos-address_8.entry.js +631 -0
- package/dist/esm/zonos-badge_2.entry.js +9 -9
- package/dist/esm/zonos-banner.entry.js +5 -5
- package/dist/esm/zonos-button_3.entry.js +186 -0
- package/dist/esm/zonos-card_2.entry.js +12 -12
- package/dist/esm/{zonos-cart-items_10.entry.js → zonos-cart-items_9.entry.js} +146 -119
- package/dist/esm/zonos-checkout.entry.js +15 -14
- package/dist/esm/zonos-component.entry.js +2 -2
- package/dist/esm/zonos-controller.entry.js +6 -6
- package/dist/esm/zonos-country-flag.entry.js +5 -5
- package/dist/esm/zonos-country-select_3.entry.js +16 -16
- package/dist/esm/zonos-elements.js +11 -11
- package/dist/esm/zonos-hello-dialog.entry.js +9 -9
- package/dist/esm/zonos-hello.entry.js +6 -6
- package/dist/esm/zonos-input.entry.js +53 -0
- package/dist/esm/zonos-link.entry.js +3 -3
- package/dist/esm/zonos-logo.entry.js +4 -4
- package/dist/esm/zonos-notification.entry.js +5 -5
- package/dist/esm/zonos-payment.entry.js +6 -6
- package/dist/esm/zonos-select-dialog-header_2.entry.js +7 -7
- package/dist/esm/zonos-shipping-rich-radio.entry.js +10 -8
- package/dist/esm/zonos-text.entry.js +6 -5
- package/dist/esm/{zonosStore-f3eef64b.js → zonosStore-33ff08ff.js} +1 -1
- package/dist/esm-es5/RemoveIcon-9dc5dd1a.js +1 -0
- package/dist/esm-es5/cart-462e89a6.js +1 -0
- package/dist/esm-es5/containsNonLatinChars-2d8810c3.js +1 -0
- package/dist/esm-es5/getBorderRadius-567f1786.js +1 -0
- package/dist/esm-es5/index-e063389c.js +2 -0
- package/dist/esm-es5/isCheckoutMobile-8846dccb.js +1 -0
- package/dist/esm-es5/isColorVariable-82457bef.js +1 -0
- package/dist/esm-es5/{isDarkColor-7a6d2d14.js → isDarkColor-7f62035a.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/submitGtag-ac7c3c89.js +1 -0
- package/dist/esm-es5/zonos-address_8.entry.js +1 -0
- package/dist/esm-es5/zonos-badge_2.entry.js +1 -1
- 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 -1
- package/dist/esm-es5/zonos-country-select_3.entry.js +1 -1
- package/dist/esm-es5/zonos-elements.js +1 -1
- package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm-es5/zonos-hello.entry.js +1 -1
- package/dist/esm-es5/zonos-input.entry.js +1 -0
- package/dist/esm-es5/zonos-link.entry.js +1 -1
- package/dist/esm-es5/zonos-logo.entry.js +1 -1
- package/dist/esm-es5/zonos-notification.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 -1
- package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
- package/dist/esm-es5/zonos-text.entry.js +1 -1
- package/dist/esm-es5/{zonosStore-f3eef64b.js → zonosStore-33ff08ff.js} +1 -1
- package/dist/scripts/loadStripe.js +1 -1
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/stripe.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-address-update-dialog/zonos-address-display/zonos-address-display.d.ts +12 -0
- package/dist/types/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-form/zonos-address-form.d.ts +28 -0
- package/dist/types/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-update-dialog.d.ts +96 -0
- package/dist/types/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.d.ts +22 -2
- package/dist/types/components/common/zonos-checkbox/zonos-checkbox.d.ts +1 -0
- package/dist/types/components/common/zonos-dialog/zonos-dialog.d.ts +0 -3
- package/dist/types/components/common/zonos-input/zonos-input.d.ts +35 -0
- package/dist/types/components/store/checkout/stripe.d.ts +25 -1
- package/dist/types/components/store/translationStore/strings.arabic.d.ts +35 -5
- package/dist/types/components/store/translationStore/strings.base.d.ts +35 -5
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +35 -5
- package/dist/types/components/store/translationStore/strings.danish.d.ts +35 -5
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +35 -5
- package/dist/types/components/store/translationStore/strings.french.d.ts +35 -5
- package/dist/types/components/store/translationStore/strings.german.d.ts +35 -5
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +35 -5
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +35 -5
- package/dist/types/components/store/translationStore/strings.italian.d.ts +35 -5
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +35 -5
- package/dist/types/components/store/translationStore/strings.korean.d.ts +35 -5
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +35 -5
- package/dist/types/components/store/translationStore/strings.polish.d.ts +35 -5
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +35 -5
- package/dist/types/components/store/translationStore/strings.russian.d.ts +35 -5
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +35 -5
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +35 -5
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +35 -5
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +35 -5
- package/dist/types/components/store/translationStore.d.ts +1 -1
- package/dist/types/components/stripe/zonos-address/zonos-address.d.ts +2 -10
- package/dist/types/components/stripe/zonos-link-authentication/zonos-link-authentication.d.ts +4 -0
- 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/buildTranslateRequestBody.d.ts +26 -0
- package/dist/types/components/utils/containsNonLatinChars.d.ts +1 -0
- package/dist/types/components/utils/getBorderRadius.d.ts +7 -1
- package/dist/types/components.d.ts +308 -6
- package/dist/types/types/checkout/TranslatedText.d.ts +23 -0
- package/dist/types/types/checkout/api/ValidateAddressRequest.d.ts +20 -0
- package/dist/types/types/generated/graphql.customer.types.d.ts +2 -0
- package/dist/types/types/generated/graphql.customer.types.ts +2 -0
- package/dist/zonos-elements/assets/ChevronDownIcon.svg +1 -1
- package/dist/zonos-elements/assets/ChevronUpIcon.svg +1 -1
- package/dist/zonos-elements/assets/LeftArrow.svg +1 -1
- package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
- package/dist/zonos-elements/assets/SuccessIcon.svg +1 -1
- package/dist/zonos-elements/p-04df7975.entry.js +1 -0
- package/dist/zonos-elements/p-08e7107d.js +1 -0
- package/dist/zonos-elements/p-0c64dbbb.js +1 -0
- package/dist/zonos-elements/{p-bc3a0f7c.entry.js → p-11f1b78c.entry.js} +1 -1
- package/dist/zonos-elements/p-13ddaf31.js +2 -0
- package/dist/zonos-elements/p-154aaf95.system.js +1 -0
- package/dist/zonos-elements/p-163ff5b5.system.js +2 -0
- package/dist/zonos-elements/p-17e265c3.system.entry.js +1 -0
- package/dist/zonos-elements/p-2670438c.system.js +1 -0
- package/dist/zonos-elements/p-2770ba48.system.js +1 -0
- package/dist/zonos-elements/p-305f27c7.entry.js +1 -0
- package/dist/zonos-elements/p-34d0ef7a.system.entry.js +1 -0
- package/dist/zonos-elements/p-3638e2ed.entry.js +1 -0
- package/dist/zonos-elements/p-36a461a6.system.entry.js +1 -0
- package/dist/zonos-elements/{p-1a5f8df7.entry.js → p-3d8667a7.entry.js} +1 -1
- package/dist/zonos-elements/p-4a107b6f.system.js +1 -0
- package/dist/zonos-elements/p-4dca5484.system.entry.js +1 -0
- package/dist/zonos-elements/p-5120a57c.entry.js +1 -0
- package/dist/zonos-elements/p-54004793.system.entry.js +1 -0
- package/dist/zonos-elements/p-578f0aad.system.js +1 -0
- package/dist/zonos-elements/p-582d8b27.entry.js +1 -0
- package/dist/zonos-elements/p-5d993965.js +1 -0
- package/dist/zonos-elements/{p-262b8e1e.system.entry.js → p-5f9c066d.system.entry.js} +1 -1
- package/dist/zonos-elements/p-66eb66d1.js +1 -0
- package/dist/zonos-elements/{p-95c864ca.system.entry.js → p-679877b1.system.entry.js} +1 -1
- package/dist/zonos-elements/p-6e9b72e4.entry.js +1 -0
- package/dist/zonos-elements/p-726e2268.system.entry.js +1 -0
- package/dist/zonos-elements/{p-fc4da55c.system.js → p-771fbeb3.system.js} +1 -1
- package/dist/zonos-elements/p-79f3c4f5.system.js +1 -0
- package/dist/zonos-elements/p-81a54668.js +1 -0
- package/dist/zonos-elements/p-835c8928.entry.js +1 -0
- package/dist/zonos-elements/p-83cc2936.js +1 -0
- package/dist/zonos-elements/p-83fecb2a.entry.js +1 -0
- package/dist/zonos-elements/{p-520e8e63.system.js → p-87badea9.system.js} +1 -1
- package/dist/zonos-elements/{p-d01576d7.js → p-909a331c.js} +1 -1
- package/dist/zonos-elements/p-94d6af4b.system.entry.js +1 -0
- package/dist/zonos-elements/{p-5ee8a685.entry.js → p-9b8ae241.entry.js} +1 -1
- package/dist/zonos-elements/p-9ea84657.system.entry.js +1 -0
- package/dist/zonos-elements/{p-24fee841.entry.js → p-9ec93319.entry.js} +1 -1
- package/dist/zonos-elements/p-a6d7ac46.js +1 -0
- package/dist/zonos-elements/{p-2a99c8b5.system.entry.js → p-a6eeb4bd.system.entry.js} +1 -1
- package/dist/zonos-elements/p-a889c1bc.entry.js +1 -0
- package/dist/zonos-elements/p-ab7ac0db.system.entry.js +1 -0
- package/dist/zonos-elements/p-ad088d46.system.entry.js +1 -0
- package/dist/zonos-elements/p-aed0098c.system.js +1 -0
- package/dist/zonos-elements/p-b98bdbcc.system.entry.js +1 -0
- package/dist/zonos-elements/{p-d3772fd3.entry.js → p-baee62a4.entry.js} +1 -1
- package/dist/zonos-elements/{p-eff12c31.system.entry.js → p-bf32179a.system.entry.js} +1 -1
- package/dist/zonos-elements/p-ca71b681.system.entry.js +1 -0
- package/dist/zonos-elements/p-d7acc81c.entry.js +1 -0
- package/dist/zonos-elements/p-dbdebdae.entry.js +1 -0
- package/dist/zonos-elements/p-df192668.system.js +1 -0
- package/dist/zonos-elements/{p-70ede197.system.entry.js → p-df24d548.system.entry.js} +1 -1
- package/dist/zonos-elements/p-df64afdd.entry.js +1 -0
- package/dist/zonos-elements/p-e108e5ed.system.entry.js +1 -0
- package/dist/zonos-elements/p-e1b2b610.entry.js +1 -0
- package/dist/zonos-elements/{p-6743734f.entry.js → p-e7b4b756.entry.js} +1 -1
- package/dist/zonos-elements/{p-d41b5762.js → p-f1962041.js} +1 -1
- package/dist/zonos-elements/p-f71489e5.system.entry.js +1 -0
- package/dist/zonos-elements/p-fd49d864.entry.js +1 -0
- package/dist/zonos-elements/p-fd5d2fc3.system.entry.js +1 -0
- package/dist/zonos-elements/p-fe246229.system.entry.js +1 -0
- package/dist/zonos-elements/p-ff403840.entry.js +1 -0
- package/dist/zonos-elements/zonos-elements.css +17 -9
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/dist/zonos-elements/zonos-elements.js +1 -1
- package/package.json +3 -2
- package/dist/cjs/index-3b4816ef.js +0 -2088
- package/dist/cjs/sendErrorLog-29e50f7e.js +0 -29
- package/dist/cjs/zonos-address_4.cjs.entry.js +0 -388
- package/dist/cjs/zonos-button_2.cjs.entry.js +0 -152
- package/dist/cjs/zonos-icon.cjs.entry.js +0 -39
- package/dist/components/sendErrorLog.js +0 -21
- package/dist/esm/index-0e31d804.js +0 -2055
- package/dist/esm/sendErrorLog-8642e94a.js +0 -26
- package/dist/esm/zonos-address_4.entry.js +0 -381
- package/dist/esm/zonos-button_2.entry.js +0 -147
- package/dist/esm/zonos-icon.entry.js +0 -35
- package/dist/esm-es5/cart-10bcd2e0.js +0 -1
- package/dist/esm-es5/getBorderRadius-8129b0cb.js +0 -1
- package/dist/esm-es5/index-0e31d804.js +0 -2
- package/dist/esm-es5/isColorVariable-fbf2d80d.js +0 -1
- package/dist/esm-es5/sendErrorLog-8642e94a.js +0 -1
- package/dist/esm-es5/submitGtag-84886899.js +0 -1
- package/dist/esm-es5/zonos-address_4.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-icon.entry.js +0 -1
- package/dist/scripts/insertTranslations.js +0 -1
- package/dist/zonos-elements/p-0253aeae.entry.js +0 -1
- package/dist/zonos-elements/p-031086ba.system.entry.js +0 -1
- package/dist/zonos-elements/p-1264b362.entry.js +0 -1
- package/dist/zonos-elements/p-1950dda7.entry.js +0 -1
- package/dist/zonos-elements/p-2244534c.js +0 -2
- package/dist/zonos-elements/p-2825570c.system.js +0 -2
- package/dist/zonos-elements/p-33abdb30.js +0 -1
- package/dist/zonos-elements/p-376bdf70.entry.js +0 -1
- package/dist/zonos-elements/p-3e417d7c.entry.js +0 -1
- package/dist/zonos-elements/p-450942a3.system.js +0 -1
- package/dist/zonos-elements/p-46f9c93e.system.entry.js +0 -1
- package/dist/zonos-elements/p-48a2b8b0.entry.js +0 -1
- package/dist/zonos-elements/p-49120f0e.system.entry.js +0 -1
- package/dist/zonos-elements/p-593948b5.system.entry.js +0 -1
- package/dist/zonos-elements/p-5ca09163.entry.js +0 -1
- package/dist/zonos-elements/p-5ff27485.js +0 -1
- package/dist/zonos-elements/p-6d9dbecb.system.entry.js +0 -1
- package/dist/zonos-elements/p-6e8d43de.entry.js +0 -1
- package/dist/zonos-elements/p-6f5761e8.js +0 -1
- package/dist/zonos-elements/p-7891f8d2.entry.js +0 -1
- package/dist/zonos-elements/p-78d22069.system.entry.js +0 -1
- package/dist/zonos-elements/p-8b44e558.system.js +0 -1
- package/dist/zonos-elements/p-8bc0e56a.system.entry.js +0 -1
- package/dist/zonos-elements/p-92446677.entry.js +0 -1
- package/dist/zonos-elements/p-9350d19f.entry.js +0 -1
- package/dist/zonos-elements/p-9768840a.system.entry.js +0 -1
- package/dist/zonos-elements/p-9db2f9d1.system.js +0 -1
- package/dist/zonos-elements/p-9e8f1065.system.entry.js +0 -1
- package/dist/zonos-elements/p-a0abc499.system.entry.js +0 -1
- package/dist/zonos-elements/p-a6bbf6de.system.entry.js +0 -1
- package/dist/zonos-elements/p-ae4a4634.system.entry.js +0 -1
- package/dist/zonos-elements/p-af8391bb.entry.js +0 -1
- package/dist/zonos-elements/p-b8e8330b.system.js +0 -1
- package/dist/zonos-elements/p-be022d8e.entry.js +0 -1
- package/dist/zonos-elements/p-bfa8d9a4.system.entry.js +0 -1
- package/dist/zonos-elements/p-c6170bec.system.js +0 -1
- package/dist/zonos-elements/p-d149bc5d.system.entry.js +0 -1
- package/dist/zonos-elements/p-e1ac5b2a.system.entry.js +0 -1
- package/dist/zonos-elements/p-e28ed57c.js +0 -1
- package/dist/zonos-elements/p-e705c44c.entry.js +0 -1
- package/dist/zonos-elements/p-e9fafda6.entry.js +0 -1
- package/dist/zonos-elements/p-ed2e94d2.js +0 -1
- package/dist/zonos-elements/p-f4c38bfc.system.js +0 -1
- package/dist/zonos-elements/p-fc35d717.system.entry.js +0 -1
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
width: 10px;
|
|
49
49
|
}
|
|
50
50
|
:host .zonos--group::-webkit-scrollbar-track {
|
|
51
|
-
background: var(--
|
|
51
|
+
background: var(--zonos-elements-gray-50);
|
|
52
52
|
}
|
|
53
53
|
:host .zonos--group::-webkit-scrollbar-thumb {
|
|
54
54
|
border-radius: 10px;
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
margin-bottom: 16px;
|
|
67
67
|
}
|
|
68
68
|
:host zonos-button {
|
|
69
|
-
box-shadow: 0 0 1px 0 var(--
|
|
69
|
+
box-shadow: 0 0 1px 0 var(--zonos-elements-gray-600);
|
|
70
70
|
}
|
|
71
71
|
:host .zonos--group-btn {
|
|
72
72
|
position: sticky;
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
justify-content: center;
|
|
75
75
|
bottom: 0;
|
|
76
76
|
margin-top: 12px;
|
|
77
|
-
background: var(--primary-color, var(--
|
|
77
|
+
background: var(--primary-color, var(--zonos-elements-gray-0));
|
|
78
78
|
}
|
|
79
79
|
:host .zonos--group-btn zonos-button {
|
|
80
80
|
width: 100%;
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
width: 10px;
|
|
36
36
|
}
|
|
37
37
|
:host *::-webkit-scrollbar-track {
|
|
38
|
-
background: var(--
|
|
38
|
+
background: var(--zonos-elements-gray-50);
|
|
39
39
|
}
|
|
40
40
|
:host *::-webkit-scrollbar-thumb {
|
|
41
41
|
border-radius: 10px;
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
display: flex;
|
|
51
51
|
height: 100%;
|
|
52
52
|
overflow: hidden;
|
|
53
|
-
border-radius: var(--border-radius, var(--
|
|
53
|
+
border-radius: var(--border-radius, var(--zonos-elements-radius-10));
|
|
54
54
|
}
|
|
55
55
|
:host .zonos--content .zonos--left,
|
|
56
56
|
:host .zonos--content .zonos--right {
|
|
@@ -58,11 +58,11 @@
|
|
|
58
58
|
padding: 32px;
|
|
59
59
|
}
|
|
60
60
|
:host .zonos--content .zonos--left {
|
|
61
|
-
background-color: var(--primary-color, var(--
|
|
62
|
-
border-right: 1px solid var(--
|
|
61
|
+
background-color: var(--primary-color, var(--zonos-elements-gray-0));
|
|
62
|
+
border-right: 1px solid var(--zonos-elements-gray-200);
|
|
63
63
|
}
|
|
64
64
|
:host .zonos--content .zonos--right {
|
|
65
|
-
background-color: var(--
|
|
65
|
+
background-color: var(--zonos-elements-gray-0);
|
|
66
66
|
}
|
|
67
67
|
:host .zonos--content .zonos--done {
|
|
68
68
|
width: 100%;
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
height: 100%;
|
|
71
71
|
overflow: auto;
|
|
72
72
|
flex-direction: column;
|
|
73
|
-
background-color: var(--
|
|
73
|
+
background-color: var(--zonos-elements-gray-0);
|
|
74
74
|
align-items: center;
|
|
75
75
|
justify-content: center;
|
|
76
76
|
padding: 24px;
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
margin: auto;
|
|
136
136
|
}
|
|
137
137
|
:host(.preview) .zonos--content {
|
|
138
|
-
border: var(--
|
|
138
|
+
border: var(--zonos-elements-border);
|
|
139
139
|
}
|
|
140
140
|
:host(.preview) .zonos--content .zonos--done {
|
|
141
141
|
padding: 32px;
|
|
@@ -175,9 +175,9 @@
|
|
|
175
175
|
:host(.mobile) .zonos--content .zonos--right .zonos--wrapper {
|
|
176
176
|
display: flex;
|
|
177
177
|
flex-direction: column;
|
|
178
|
-
border: var(--
|
|
179
|
-
border-radius: var(--border-radius, var(--
|
|
180
|
-
background-color: var(--
|
|
178
|
+
border: var(--zonos-elements-border);
|
|
179
|
+
border-radius: var(--border-radius, var(--zonos-elements-radius-10));
|
|
180
|
+
background-color: var(--zonos-elements-gray-50);
|
|
181
181
|
padding: 12px;
|
|
182
182
|
margin-top: 32px;
|
|
183
183
|
}
|
|
@@ -217,6 +217,7 @@ export class ZonosCheckout {
|
|
|
217
217
|
postal_code: legacyShippingInfo.customerZip,
|
|
218
218
|
state: legacyShippingInfo.customerState,
|
|
219
219
|
},
|
|
220
|
+
email: legacyShippingInfo.customerEmail || '',
|
|
220
221
|
name: legacyShippingInfo.customerName,
|
|
221
222
|
phone: legacyShippingInfo.customerPhone,
|
|
222
223
|
};
|
|
@@ -241,6 +242,7 @@ export class ZonosCheckout {
|
|
|
241
242
|
postal_code: shippingAddressSession.postalCode,
|
|
242
243
|
state: shippingAddressSession.state,
|
|
243
244
|
},
|
|
245
|
+
email: '',
|
|
244
246
|
name: `${shippingAddressSession.firstName} ${shippingAddressSession.lastName}`,
|
|
245
247
|
phone: shippingAddressSession.phone,
|
|
246
248
|
};
|
|
@@ -451,14 +453,14 @@ export class ZonosCheckout {
|
|
|
451
453
|
const renderTopHeader = () => {
|
|
452
454
|
return (h("zonos-v-stack", null, renderLogo(), h("zonos-checkout-progress-tabs", { backgroundColor:
|
|
453
455
|
// only use different contrast color when the secondary color is too off with the background in mobile
|
|
454
|
-
this.isMobile ? '--
|
|
456
|
+
this.isMobile ? '--zonos-elements-gray-0' : null }), filteredMessages.map(x => (h("zonos-custom-message", { icon: MessageIcon, message: x.message })))));
|
|
455
457
|
};
|
|
456
458
|
const renderContent = () => {
|
|
457
459
|
return (h("div", { class: 'zonos--content', style: {
|
|
458
|
-
'--border-radius': getBorderRadius(style),
|
|
460
|
+
'--border-radius': getBorderRadius({ overrideBorderStyle: style }),
|
|
459
461
|
} }, cartStore.step !== 'finish' && cartStore.step !== 'error' && (h(Fragment, null, h("div", { class: "zonos--left", "data-theme": leftSideTheme, style: {
|
|
460
462
|
'--primary-color': !this.isMobile ? colorPrimary : '',
|
|
461
|
-
} }, !this.isMobile && renderTopHeader(), cartStore.step === 'customer-info' && (h("zonos-customer-info", { continueLoading: this.submitLoading, defaultAddress: this.defaultAddress, onContinueClicked: () => this.handleCustomerInfoContinue(), submitBtnColor: submitButtonColor })), cartStore.step === 'shipping' && (h("zonos-shipping", { continueLoading: this.submitLoading, onContinueClicked: () => this.handleShippingContinue(), submitBtnColor: submitButtonColor })), cartStore.step === 'payment' && (h("zonos-checkout-payment", { continueLoading: this.submitLoading, onContinueClicked: () => this.handleCheckoutPaymentContinue(), paymentError: this.paymentError, submitBtnColor: submitButtonColor }))), h("div", { class: "zonos--right", "data-theme": rightSideTheme }, this.isMobile && renderTopHeader(), !this.isLegacyCheckout && (h("zonos-button", { class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close checkout dialog", content: RemoveIcon }), noBackground: true, onClick: () => this.closeDialogHandler() })), h("div", { class: "flex--wrapper" }, h("div", { class: "zonos--wrapper" }, h("zonos-review", { collapsed: this.collapseReviewMobile, mobile: this.isMobile, onClick: () => {
|
|
463
|
+
} }, !this.isMobile && renderTopHeader(), cartStore.step === 'customer-info' && (h("zonos-customer-info", { continueLoading: this.submitLoading, defaultAddress: this.defaultAddress, isMobile: this.isMobile, onContinueClicked: () => this.handleCustomerInfoContinue(), submitBtnColor: submitButtonColor })), cartStore.step === 'shipping' && (h("zonos-shipping", { continueLoading: this.submitLoading, onContinueClicked: () => this.handleShippingContinue(), submitBtnColor: submitButtonColor })), cartStore.step === 'payment' && (h("zonos-checkout-payment", { continueLoading: this.submitLoading, onContinueClicked: () => this.handleCheckoutPaymentContinue(), paymentError: this.paymentError, submitBtnColor: submitButtonColor }))), h("div", { class: "zonos--right", "data-theme": rightSideTheme }, this.isMobile && renderTopHeader(), !this.isLegacyCheckout && (h("zonos-button", { class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close checkout dialog", content: RemoveIcon }), noBackground: true, onClick: () => this.closeDialogHandler() })), h("div", { class: "flex--wrapper" }, h("div", { class: "zonos--wrapper" }, h("zonos-review", { collapsed: this.collapseReviewMobile, mobile: this.isMobile, onClick: () => {
|
|
462
464
|
// do nothing if it's not mobile
|
|
463
465
|
if (!this.isMobile) {
|
|
464
466
|
return;
|
|
@@ -481,7 +483,7 @@ export class ZonosCheckout {
|
|
|
481
483
|
hasFooter && 'has-footer',
|
|
482
484
|
this.preview && 'preview',
|
|
483
485
|
this.isMobile && 'mobile',
|
|
484
|
-
]) }, this.preview ? (renderContent()) : (h("zonos-dialog", { borderStyle: style, height: "980px", isLoading: dialogLoading, mobile: this.isMobile, noBodyPadding: true, noBorder: true, noClickOutside: true, noCloseButton: true, onCloseDialog: () => this.closeDialogHandler(), open: this.open, width: "1200px" }, renderContent()))));
|
|
486
|
+
]) }, this.preview ? (renderContent()) : (h("zonos-dialog", { borderStyle: style, "data-theme": rightSideTheme, height: "980px", isLoading: dialogLoading, mobile: this.isMobile, noBodyPadding: true, noBorder: true, noClickOutside: true, noCloseButton: true, onCloseDialog: () => this.closeDialogHandler(), open: this.open, width: "1200px" }, renderContent()))));
|
|
485
487
|
}
|
|
486
488
|
static get is() { return "zonos-checkout"; }
|
|
487
489
|
static get encapsulation() { return "scoped"; }
|
|
@@ -564,7 +566,7 @@ export class ZonosCheckout {
|
|
|
564
566
|
"mutable": false,
|
|
565
567
|
"complexType": {
|
|
566
568
|
"original": "ContactOption | null",
|
|
567
|
-
"resolved": "null | { address: { city: string; country: string; line1: string; line2?: string | undefined; postal_code: string; state: string; }; name: string; phone?: string | undefined; }",
|
|
569
|
+
"resolved": "null | { address: { city: string; country: string; line1: string; line2?: string | undefined; postal_code: string; state: string; }; email: string; name: string; phone?: string | undefined; }",
|
|
568
570
|
"references": {
|
|
569
571
|
"ContactOption": {
|
|
570
572
|
"location": "import",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
margin-bottom: 0;
|
|
53
53
|
}
|
|
54
54
|
:host zonos-button {
|
|
55
|
-
box-shadow: 0 0 1px 0 var(--
|
|
55
|
+
box-shadow: 0 0 1px 0 var(--zonos-elements-gray-600);
|
|
56
56
|
}
|
|
57
57
|
:host .zonos--error-banner {
|
|
58
58
|
margin-bottom: 16px;
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
width: 10px;
|
|
67
67
|
}
|
|
68
68
|
:host .zonos--group::-webkit-scrollbar-track {
|
|
69
|
-
background: var(--
|
|
69
|
+
background: var(--zonos-elements-gray-50);
|
|
70
70
|
}
|
|
71
71
|
:host .zonos--group::-webkit-scrollbar-thumb {
|
|
72
72
|
border-radius: 10px;
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
bottom: -5px;
|
|
85
85
|
padding-top: 8px;
|
|
86
86
|
margin-top: 12px;
|
|
87
|
-
background: var(--primary-color, var(--
|
|
87
|
+
background: var(--primary-color, var(--zonos-elements-gray-0));
|
|
88
88
|
}
|
|
89
89
|
:host .zonos--group-btn zonos-button {
|
|
90
90
|
width: 100%;
|
|
@@ -1,25 +1,60 @@
|
|
|
1
1
|
import { h, Host, } from "@stencil/core";
|
|
2
|
-
import { stripeStore, } from "../../../store/checkout/stripe";
|
|
2
|
+
import { stripeStore, stripeStoreTranslateAddressToLatin, } from "../../../store/checkout/stripe";
|
|
3
3
|
import { translate } from "../../../store/translationStore";
|
|
4
|
+
import { getZonosStoreTheme, zonosStore, } from "../../../store/zonosStore";
|
|
4
5
|
import { trackConversionEvent } from "../../../utils/api/trackConversionEvent";
|
|
6
|
+
import { containsNonLatinChars } from "../../../utils/containsNonLatinChars";
|
|
5
7
|
import { submitGtag } from "../../../utils/submitGtag";
|
|
6
8
|
export class ZonosCustomerInfo {
|
|
7
9
|
constructor() {
|
|
8
10
|
/**
|
|
9
|
-
*
|
|
11
|
+
* Handler for invalid characters in the address
|
|
10
12
|
*/
|
|
11
|
-
this.
|
|
12
|
-
if
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
13
|
+
this.handleInvalidCharacters = async () => {
|
|
14
|
+
// Do nothing if the allowed character sets is ALL
|
|
15
|
+
if (zonosStore.checkoutSettings.allowedCharacterSets === 'ALL') {
|
|
16
|
+
return { hasInvalidCharacters: false };
|
|
17
|
+
}
|
|
18
|
+
// Check if the address contains Non-Latin characters
|
|
19
|
+
this.invalidShippingCharacterList = stripeStore.stripeAddressEventData
|
|
20
|
+
? this.checkInvalidCharacters(stripeStore.stripeAddressEventData)
|
|
21
|
+
: null;
|
|
22
|
+
// if the shipping is the same as billing, we don't need to check the billing address
|
|
23
|
+
this.invalidBillingCharacterList = !stripeStore.stripeShippingSameAsBilling
|
|
24
|
+
? this.checkInvalidCharacters(stripeStore.stripeBillingAddressEventData)
|
|
25
|
+
: null;
|
|
26
|
+
const hasInvalidCharacters = !!this.invalidShippingCharacterList || !!this.invalidBillingCharacterList;
|
|
27
|
+
// send data to our api to translate the invalid characters
|
|
28
|
+
if (hasInvalidCharacters) {
|
|
29
|
+
// open the dialog
|
|
30
|
+
this.openAddressValidationDialog = true;
|
|
31
|
+
this.isValidatingAddress = true;
|
|
32
|
+
await stripeStoreTranslateAddressToLatin({
|
|
33
|
+
addressInvalidCharactersList: this.invalidShippingCharacterList,
|
|
34
|
+
billingAddressInvalidCharactersList: this.invalidBillingCharacterList,
|
|
35
|
+
});
|
|
36
|
+
this.isValidatingAddress = false;
|
|
37
|
+
}
|
|
38
|
+
return { hasInvalidCharacters };
|
|
39
|
+
};
|
|
40
|
+
this.transformTranslatedAddressToStripeEvent = ({ submitData, type, }) => {
|
|
41
|
+
let stripeEventDataObj = type === 'shippingAddress'
|
|
42
|
+
? stripeStore.stripeAddressEventData
|
|
43
|
+
: stripeStore.stripeBillingAddressEventData;
|
|
44
|
+
const submitDataByKey = submitData[type];
|
|
45
|
+
// this should never happen as they can only go to this step if the address is complete
|
|
46
|
+
if (!stripeEventDataObj || !submitDataByKey) {
|
|
21
47
|
return;
|
|
22
48
|
}
|
|
49
|
+
// overwrite the address object with the new data
|
|
50
|
+
stripeEventDataObj = Object.assign(Object.assign({}, stripeEventDataObj), { complete: true, value: Object.assign(Object.assign({}, stripeEventDataObj === null || stripeEventDataObj === void 0 ? void 0 : stripeEventDataObj.value), { address: Object.assign(Object.assign({}, stripeEventDataObj === null || stripeEventDataObj === void 0 ? void 0 : stripeEventDataObj.value.address), { city: submitDataByKey.city ||
|
|
51
|
+
(stripeEventDataObj === null || stripeEventDataObj === void 0 ? void 0 : stripeEventDataObj.value.address.city) ||
|
|
52
|
+
'', line1: submitDataByKey.line1, line2: submitDataByKey.line2, postal_code: submitDataByKey.postal_code, state: submitDataByKey.state }), firstName: submitDataByKey.name.split(' ')[0], lastName: submitDataByKey.name.split(' ')[1], name: submitDataByKey.name }) });
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* handler for continue button click
|
|
56
|
+
*/
|
|
57
|
+
this.continueClickHandler = async () => {
|
|
23
58
|
if (!this.handleValidate()) {
|
|
24
59
|
// scroll to the top zonos-banner
|
|
25
60
|
setTimeout(() => {
|
|
@@ -34,6 +69,11 @@ export class ZonosCustomerInfo {
|
|
|
34
69
|
return;
|
|
35
70
|
}
|
|
36
71
|
this.showErrorBanner = false;
|
|
72
|
+
// check if the address contains invalid characters
|
|
73
|
+
const { hasInvalidCharacters } = await this.handleInvalidCharacters();
|
|
74
|
+
if (hasInvalidCharacters) {
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
37
77
|
this.continueClicked.emit();
|
|
38
78
|
// submit google tag when the form is complete
|
|
39
79
|
submitGtag('zonos-checkout-customer-info');
|
|
@@ -54,28 +94,83 @@ export class ZonosCustomerInfo {
|
|
|
54
94
|
}
|
|
55
95
|
return true;
|
|
56
96
|
};
|
|
97
|
+
this.prepareAddressObject = (stripeAddressEventData) => {
|
|
98
|
+
var _a;
|
|
99
|
+
const addressValue = stripeAddressEventData.value;
|
|
100
|
+
return {
|
|
101
|
+
city: addressValue.address.city || '',
|
|
102
|
+
country: addressValue.address.country,
|
|
103
|
+
email: ((_a = stripeStore.stripeLinkEventData) === null || _a === void 0 ? void 0 : _a.value.email) || '',
|
|
104
|
+
line1: addressValue.address.line1 || '',
|
|
105
|
+
line2: addressValue.address.line2 || '',
|
|
106
|
+
name: addressValue.name || '',
|
|
107
|
+
phone: addressValue.phone || '',
|
|
108
|
+
postal_code: addressValue.address.postal_code || '',
|
|
109
|
+
state: addressValue.address.state || '',
|
|
110
|
+
};
|
|
111
|
+
};
|
|
57
112
|
this.continueLoading = false;
|
|
58
113
|
this.submitBtnType = undefined;
|
|
59
114
|
this.submitBtnColor = undefined;
|
|
115
|
+
this.isMobile = false;
|
|
60
116
|
this.defaultAddress = null;
|
|
61
117
|
this.showErrorBanner = false;
|
|
62
|
-
this.
|
|
63
|
-
this.
|
|
118
|
+
this.isValidatingAddress = false;
|
|
119
|
+
this.invalidShippingCharacterList = null;
|
|
120
|
+
this.invalidBillingCharacterList = null;
|
|
121
|
+
this.openAddressValidationDialog = false;
|
|
122
|
+
}
|
|
123
|
+
checkInvalidCharacters(address) {
|
|
124
|
+
if (!address) {
|
|
125
|
+
return null;
|
|
126
|
+
}
|
|
127
|
+
// Do nothing if the allowed character sets is ALL or the address is incomplete
|
|
128
|
+
if (!address.complete ||
|
|
129
|
+
zonosStore.checkoutSettings.allowedCharacterSets === 'ALL') {
|
|
130
|
+
return null;
|
|
131
|
+
}
|
|
132
|
+
const { address: addressValue, firstName, lastName, name } = address.value;
|
|
133
|
+
const { city, country, line1, line2, postal_code, state } = addressValue;
|
|
134
|
+
const invalidList = containsNonLatinChars({
|
|
135
|
+
city,
|
|
136
|
+
country,
|
|
137
|
+
line1,
|
|
138
|
+
line2: line2 || '',
|
|
139
|
+
name: name || `${firstName} ${lastName}`,
|
|
140
|
+
postal_code,
|
|
141
|
+
state,
|
|
142
|
+
});
|
|
143
|
+
if (!Object.keys(invalidList).length) {
|
|
144
|
+
return null;
|
|
145
|
+
}
|
|
146
|
+
return invalidList;
|
|
64
147
|
}
|
|
65
148
|
render() {
|
|
149
|
+
var _a;
|
|
66
150
|
if (!stripeStore.stripeElements) {
|
|
67
151
|
return null;
|
|
68
152
|
}
|
|
69
153
|
const showBilling = !stripeStore.stripeShippingSameAsBilling;
|
|
154
|
+
// Get theme for the update dialog, inherit from the theme, no from this component theme
|
|
155
|
+
const theme = getZonosStoreTheme(zonosStore.appearance.theme);
|
|
70
156
|
// start validate on typing after error banner is shown, and hide it if the form is complete
|
|
71
157
|
if (this.showErrorBanner) {
|
|
72
158
|
this.showErrorBanner = !this.handleValidate();
|
|
73
159
|
}
|
|
74
|
-
return (h(Host, { class: "zonos--customer-info zonos--elements" }, h("div", { class: "zonos--group" }, h("zonos-text", { class: "zonos--title", type: "semiBoldSubheader" }, translate('Customer information')), this.showErrorBanner && (h("zonos-banner", { class: "zonos--error-banner", intent: "error" }, translate('Missing required fields. Make sure all fields are completed.'))), h("zonos-link-authentication", { titleText: translate('Contact') }), h("zonos-address", { defaultAddress: this.defaultAddress,
|
|
160
|
+
return (h(Host, { class: "zonos--customer-info zonos--elements" }, h("div", { class: "zonos--group" }, h("zonos-text", { class: "zonos--title", type: "semiBoldSubheader" }, translate('Customer information')), this.showErrorBanner && (h("zonos-banner", { class: "zonos--error-banner", intent: "error" }, translate('Missing required fields. Make sure all fields are completed.'))), h("zonos-link-authentication", { defaultEmail: (_a = this.defaultAddress) === null || _a === void 0 ? void 0 : _a.email, titleText: translate('Contact') }), h("zonos-address", { defaultAddress: this.defaultAddress, titleText: translate('Address'), type: "shipping" }), h("zonos-checkbox", { class: "zonos--shipping-same-as-billing-cbx", isChecked: stripeStore.stripeShippingSameAsBilling, label: translate('Shipping address same as billing'), onCheckboxSelected: e => {
|
|
75
161
|
stripeStore.stripeShippingSameAsBilling = e.detail;
|
|
76
|
-
} }), h("zonos-collapse", { collapsed: !showBilling }, h("zonos-address", { defaultAddress: this.defaultAddress,
|
|
162
|
+
} }), h("zonos-collapse", { collapsed: !showBilling }, h("zonos-address", { defaultAddress: this.defaultAddress, titleText: translate('Billing address'), type: "billing" })), h("div", { class: "zonos--group-btn" }, h("zonos-button", { backgroundColor: this.submitBtnColor, loading: this.continueLoading, onClick: () => this.continueClickHandler(), size: "lg",
|
|
77
163
|
// use primary type when on mobile mode
|
|
78
|
-
variant: this.submitBtnType }, translate('Continue to shipping'))))
|
|
164
|
+
variant: this.submitBtnType }, translate('Continue to shipping')))), stripeStore.stripeAddressEventData && (h("zonos-address-update-dialog", { billingAddress: !stripeStore.stripeShippingSameAsBilling &&
|
|
165
|
+
stripeStore.stripeBillingAddressEventData
|
|
166
|
+
? this.prepareAddressObject(stripeStore.stripeBillingAddressEventData)
|
|
167
|
+
: null, "data-theme": theme, dialogLoading: this.isValidatingAddress, dialogOpen: this.openAddressValidationDialog, isMobile: this.isMobile, onCloseDialog: () => (this.openAddressValidationDialog = false), onContinueClicked: e => {
|
|
168
|
+
const submitData = e.detail;
|
|
169
|
+
this.transformTranslatedAddressToStripeEvent({
|
|
170
|
+
submitData,
|
|
171
|
+
type: 'shippingAddress',
|
|
172
|
+
});
|
|
173
|
+
}, shippingAddress: this.prepareAddressObject(stripeStore.stripeAddressEventData), translatedBillingAddress: stripeStore.translatedAddress.billingAddress, translatedShippingAddress: stripeStore.translatedAddress.address }))));
|
|
79
174
|
}
|
|
80
175
|
static get is() { return "zonos-customer-info"; }
|
|
81
176
|
static get encapsulation() { return "scoped"; }
|
|
@@ -148,12 +243,30 @@ export class ZonosCustomerInfo {
|
|
|
148
243
|
"attribute": "submit-btn-color",
|
|
149
244
|
"reflect": false
|
|
150
245
|
},
|
|
246
|
+
"isMobile": {
|
|
247
|
+
"type": "boolean",
|
|
248
|
+
"mutable": false,
|
|
249
|
+
"complexType": {
|
|
250
|
+
"original": "boolean",
|
|
251
|
+
"resolved": "boolean",
|
|
252
|
+
"references": {}
|
|
253
|
+
},
|
|
254
|
+
"required": false,
|
|
255
|
+
"optional": false,
|
|
256
|
+
"docs": {
|
|
257
|
+
"tags": [],
|
|
258
|
+
"text": "Whether or not the dialog is open"
|
|
259
|
+
},
|
|
260
|
+
"attribute": "is-mobile",
|
|
261
|
+
"reflect": false,
|
|
262
|
+
"defaultValue": "false"
|
|
263
|
+
},
|
|
151
264
|
"defaultAddress": {
|
|
152
265
|
"type": "unknown",
|
|
153
266
|
"mutable": false,
|
|
154
267
|
"complexType": {
|
|
155
268
|
"original": "ContactOption | null",
|
|
156
|
-
"resolved": "null | { address: { city: string; country: string; line1: string; line2?: string | undefined; postal_code: string; state: string; }; name: string; phone?: string | undefined; }",
|
|
269
|
+
"resolved": "null | { address: { city: string; country: string; line1: string; line2?: string | undefined; postal_code: string; state: string; }; email: string; name: string; phone?: string | undefined; }",
|
|
157
270
|
"references": {
|
|
158
271
|
"ContactOption": {
|
|
159
272
|
"location": "import",
|
|
@@ -175,8 +288,10 @@ export class ZonosCustomerInfo {
|
|
|
175
288
|
static get states() {
|
|
176
289
|
return {
|
|
177
290
|
"showErrorBanner": {},
|
|
178
|
-
"
|
|
179
|
-
"
|
|
291
|
+
"isValidatingAddress": {},
|
|
292
|
+
"invalidShippingCharacterList": {},
|
|
293
|
+
"invalidBillingCharacterList": {},
|
|
294
|
+
"openAddressValidationDialog": {}
|
|
180
295
|
};
|
|
181
296
|
}
|
|
182
297
|
static get events() {
|
package/dist/collection/components/checkout/zonos-checkout/zonos-review/assets/ChevronDownIcon.svg
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg color="var(--
|
|
1
|
+
<svg color="var(--zonos-elements-gray-400)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M6.293 9.293a1 1 0 0 1 1.414 0L12 13.586l4.293-4.293a1 1 0 0 1 1.414 1.414l-4.93 4.93a1.1 1.1 0 0 1-1.555 0l-4.93-4.93a1 1 0 0 1 0-1.414Z" fill="currentColor" fill-rule="evenodd"></path></svg>
|
package/dist/collection/components/checkout/zonos-checkout/zonos-review/assets/ChevronUpIcon.svg
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg color="var(--
|
|
1
|
+
<svg color="var(--zonos-elements-gray-400)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M17.707 14.707a1 1 0 0 1-1.414 0L12 10.414l-4.293 4.293a1 1 0 0 1-1.414-1.414l4.93-4.93a1.1 1.1 0 0 1 1.555 0l4.93 4.93a1 1 0 0 1 0 1.414Z" fill="currentColor" fill-rule="evenodd"></path></svg>
|
package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.css
CHANGED
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
width: 10px;
|
|
55
55
|
}
|
|
56
56
|
:host .zonos--group::-webkit-scrollbar-track {
|
|
57
|
-
background: var(--
|
|
57
|
+
background: var(--zonos-elements-gray-50);
|
|
58
58
|
}
|
|
59
59
|
:host .zonos--group::-webkit-scrollbar-thumb {
|
|
60
60
|
border-radius: 10px;
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
margin-bottom: 16px;
|
|
70
70
|
}
|
|
71
71
|
:host zonos-button {
|
|
72
|
-
box-shadow: 0 0 1px 0 var(--
|
|
72
|
+
box-shadow: 0 0 1px 0 var(--zonos-elements-gray-600);
|
|
73
73
|
}
|
|
74
74
|
:host .zonos--group-btn {
|
|
75
75
|
position: sticky;
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
justify-content: center;
|
|
78
78
|
bottom: 0;
|
|
79
79
|
margin-top: 12px;
|
|
80
|
-
background: var(--primary-color, var(--
|
|
80
|
+
background: var(--primary-color, var(--zonos-elements-gray-0));
|
|
81
81
|
}
|
|
82
82
|
:host .zonos--group-btn zonos-button {
|
|
83
83
|
width: 100%;
|
|
@@ -91,7 +91,7 @@ export class ZonosShipping {
|
|
|
91
91
|
if (this.showErrorBanner) {
|
|
92
92
|
this.showErrorBanner = !this.handleValidate();
|
|
93
93
|
}
|
|
94
|
-
return (h(Host, { key: '
|
|
94
|
+
return (h(Host, { key: '032c917dd5510a6a5801f0bf86a84bcf4096759e', class: "zonos--shipping zonos--elements" }, h("div", { key: 'b5052414ae56dc46908e53a1676acf96701bafa8', class: "zonos--group" }, h("zonos-text", { key: '41bb421c0fc620f8373be5453e872e83ad19150e', class: "zonos--title", type: "semiBoldSubheader" }, translate('Delivery options')), this.showErrorBanner && !!((_a = this.serviceLevels) === null || _a === void 0 ? void 0 : _a.length) && (h("zonos-banner", { key: '4b0119b9c1991ab31c15220ed26f0eac18c7229e', class: "zonos--error-banner", intent: "error" }, translate('No shipping method selected'))), h("zonos-text", { key: '61ea64f33b2b4bd54c4f2c4d273bac9e13d67040', class: "zonos--shipping-method-title", type: "semiBoldLabel" }, translate('Shipping method')), !((_b = this.serviceLevels) === null || _b === void 0 ? void 0 : _b.length) ? (h("zonos-banner", { bannerTitle: translate('No shipping methods found - please review and update your address details by selecting the "Customer" tab above. If you continue to encounter issues, contact our support team for assistance.'), intent: "error" })) : (h("zonos-shipping-rich-radio", { initialSelectedValue: (_c = this.selectedShippingMethod) === null || _c === void 0 ? void 0 : _c.value, items: this.serviceLevels, onRadioSelected: e => this.handleRadioSelected(e) })), h("div", { key: '1908b7445ef7158402882265af8a357f48096937', class: "zonos--group-btn" }, h("zonos-button", { key: 'b73ca7298b5c020c237703e4ce1f9b877cb96605', backgroundColor: this.submitBtnColor, loading: this.continueLoading || this.isSelecting, onClick: () => this.continueClickHandler(), size: "lg",
|
|
95
95
|
// use primary type when on mobile mode
|
|
96
96
|
variant: this.submitBtnType }, translate('Go to payment'))))));
|
|
97
97
|
}
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
}
|
|
37
37
|
:host a {
|
|
38
38
|
padding-bottom: 2px;
|
|
39
|
-
color: var(--
|
|
39
|
+
color: var(--zonos-elements-primary);
|
|
40
40
|
box-shadow: none;
|
|
41
41
|
text-decoration: none;
|
|
42
42
|
/* Non standard for webkit */
|
|
@@ -45,10 +45,10 @@
|
|
|
45
45
|
overflow-wrap: break-word;
|
|
46
46
|
}
|
|
47
47
|
:host a:link, :host a:visited {
|
|
48
|
-
color: var(--
|
|
48
|
+
color: var(--zonos-elements-primary);
|
|
49
49
|
transition: all 150ms ease-in-out;
|
|
50
50
|
}
|
|
51
51
|
:host a:hover, :host a:active {
|
|
52
|
-
color: var(--
|
|
53
|
-
box-shadow: 0 1px 0 var(--
|
|
52
|
+
color: var(--zonos-elements-primary);
|
|
53
|
+
box-shadow: 0 1px 0 var(--zonos-elements-primary);
|
|
54
54
|
}
|
|
@@ -7,7 +7,7 @@ export class ZonosLink {
|
|
|
7
7
|
this.linkTitle = undefined;
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
|
-
return (h(Host, { key: '
|
|
10
|
+
return (h(Host, { key: '595aa56bf6c9503434d265b62a85a5fcbf0e7bec', class: "zonos--elements" }, h("a", { key: '3e355af783529c0fa77ff2c351476c92ec128ec3', href: this.href, rel: this.rel, target: this.target, title: this.linkTitle }, h("slot", { key: '45607e8fa7448a96f6914270baaeab2f0d03944e' }))));
|
|
11
11
|
}
|
|
12
12
|
static get is() { return "zonos-link"; }
|
|
13
13
|
static get encapsulation() { return "shadow"; }
|
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
:host .zonos--badge-content {
|
|
38
38
|
display: flex;
|
|
39
39
|
gap: 8px;
|
|
40
|
-
font-size: var(--
|
|
40
|
+
font-size: var(--zonos-elements-font-size-s);
|
|
41
41
|
padding: 4px 8px;
|
|
42
42
|
text-align: center;
|
|
43
|
-
border-radius: var(--
|
|
44
|
-
background-color: var(--
|
|
45
|
-
color: var(--
|
|
43
|
+
border-radius: var(--zonos-elements-radius-6);
|
|
44
|
+
background-color: var(--zonos-elements-gray-100);
|
|
45
|
+
color: var(--zonos-elements-gray-800);
|
|
46
46
|
align-items: center;
|
|
47
47
|
}
|
|
48
48
|
:host p {
|
|
@@ -59,54 +59,54 @@
|
|
|
59
59
|
border-radius: 20px;
|
|
60
60
|
}
|
|
61
61
|
:host .bold {
|
|
62
|
-
background-color: var(--
|
|
63
|
-
color: var(--
|
|
62
|
+
background-color: var(--zonos-elements-gray-600);
|
|
63
|
+
color: var(--zonos-elements-gray-100);
|
|
64
64
|
}
|
|
65
65
|
:host .blue {
|
|
66
|
-
background-color: var(--
|
|
67
|
-
color: var(--
|
|
66
|
+
background-color: var(--zonos-elements-blue-100);
|
|
67
|
+
color: var(--zonos-elements-blue-800);
|
|
68
68
|
}
|
|
69
69
|
:host .blue.bold {
|
|
70
|
-
background-color: var(--
|
|
71
|
-
color: var(--
|
|
70
|
+
background-color: var(--zonos-elements-blue-600);
|
|
71
|
+
color: var(--zonos-elements-blue-100);
|
|
72
72
|
}
|
|
73
73
|
:host .green {
|
|
74
|
-
background-color: var(--
|
|
75
|
-
color: var(--
|
|
74
|
+
background-color: var(--zonos-elements-green-100);
|
|
75
|
+
color: var(--zonos-elements-green-800);
|
|
76
76
|
}
|
|
77
77
|
:host .green.bold {
|
|
78
|
-
background-color: var(--
|
|
79
|
-
color: var(--
|
|
78
|
+
background-color: var(--zonos-elements-green-600);
|
|
79
|
+
color: var(--zonos-elements-green-100);
|
|
80
80
|
}
|
|
81
81
|
:host .red {
|
|
82
|
-
background-color: var(--
|
|
83
|
-
color: var(--
|
|
82
|
+
background-color: var(--zonos-elements-red-100);
|
|
83
|
+
color: var(--zonos-elements-red-800);
|
|
84
84
|
}
|
|
85
85
|
:host .red.bold {
|
|
86
|
-
background-color: var(--
|
|
87
|
-
color: var(--
|
|
86
|
+
background-color: var(--zonos-elements-red-600);
|
|
87
|
+
color: var(--zonos-elements-red-100);
|
|
88
88
|
}
|
|
89
89
|
:host .orange {
|
|
90
|
-
background-color: var(--
|
|
91
|
-
color: var(--
|
|
90
|
+
background-color: var(--zonos-elements-orange-100);
|
|
91
|
+
color: var(--zonos-elements-orange-800);
|
|
92
92
|
}
|
|
93
93
|
:host .orange.bold {
|
|
94
|
-
background-color: var(--
|
|
95
|
-
color: var(--
|
|
94
|
+
background-color: var(--zonos-elements-orange-600);
|
|
95
|
+
color: var(--zonos-elements-orange-100);
|
|
96
96
|
}
|
|
97
97
|
:host .purple {
|
|
98
|
-
background-color: var(--
|
|
99
|
-
color: var(--
|
|
98
|
+
background-color: var(--zonos-elements-purple-100);
|
|
99
|
+
color: var(--zonos-elements-purple-800);
|
|
100
100
|
}
|
|
101
101
|
:host .purple.bold {
|
|
102
|
-
background-color: var(--
|
|
103
|
-
color: var(--
|
|
102
|
+
background-color: var(--zonos-elements-purple-600);
|
|
103
|
+
color: var(--zonos-elements-purple-100);
|
|
104
104
|
}
|
|
105
105
|
:host .cyan {
|
|
106
|
-
background-color: var(--
|
|
107
|
-
color: var(--
|
|
106
|
+
background-color: var(--zonos-elements-cyan-100);
|
|
107
|
+
color: var(--zonos-elements-cyan-800);
|
|
108
108
|
}
|
|
109
109
|
:host .cyan.bold {
|
|
110
|
-
background-color: var(--
|
|
111
|
-
color: var(--
|
|
110
|
+
background-color: var(--zonos-elements-cyan-600);
|
|
111
|
+
color: var(--zonos-elements-cyan-100);
|
|
112
112
|
}
|
|
@@ -11,16 +11,16 @@ export class ZonosBadge {
|
|
|
11
11
|
this.rounded = false;
|
|
12
12
|
}
|
|
13
13
|
render() {
|
|
14
|
-
return (h(Host, { key: '
|
|
14
|
+
return (h(Host, { key: 'c68ba6ef2bcb35c94ecf2b11379be748aa998198', class: classes(['zonos--elements zonos--badge']), style: {
|
|
15
15
|
'--font-family': zonosStoreFontFamily(),
|
|
16
|
-
} }, h("div", { key: '
|
|
16
|
+
} }, h("div", { key: '7f200effb42296a21829c292101ef3300b041327', class: classes([
|
|
17
17
|
'zonos--badge-content',
|
|
18
18
|
this.badgeColor,
|
|
19
19
|
this.rounded && 'rounded',
|
|
20
20
|
this.iconRight && 'icon-right',
|
|
21
21
|
this.size,
|
|
22
22
|
this.bold && 'bold',
|
|
23
|
-
]) }, this.icon, h("zonos-text", { key: '
|
|
23
|
+
]) }, this.icon, h("zonos-text", { key: '4358e95cb29ec6a82e32213b268612aadf8772c6' }, h("slot", { key: 'ab76831e3691a896179e06896d33ed771e4bbdf9' })))));
|
|
24
24
|
}
|
|
25
25
|
static get is() { return "zonos-badge"; }
|
|
26
26
|
static get encapsulation() { return "shadow"; }
|