@zonos/elements 1.3.142 → 1.3.144
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/{CheckoutConfig-eaaf62a1.js → CheckoutConfig-d25d548d.js} +13 -3
- package/dist/cjs/TaxId-4632639d.js +29 -0
- package/dist/cjs/{cart-199b0751.js → cart-2398abd4.js} +547 -42
- package/dist/cjs/{createCustomEvent-3e982e57.js → createCustomEvent-7b6fad95.js} +0 -3
- package/dist/cjs/{getBorderRadius-f97c99ad.js → getBorderRadius-7d0772bf.js} +1 -1
- package/dist/cjs/{handleFetch-864d3c53.js → handleFetch-3673a0c2.js} +30 -1
- package/dist/cjs/{index-b678ce0c.js → index-2f90486e.js} +209 -157
- package/dist/cjs/index.cjs.js +15 -11
- package/dist/cjs/{isDarkColor-434d71dd.js → isDarkColor-2acf30d1.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{paypal-4f1ee604.js → paypal-7ed9dfb7.js} +4 -4
- package/dist/cjs/{zonos-address_7.cjs.entry.js → zonos-address_8.cjs.entry.js} +143 -10
- package/dist/cjs/zonos-badge.cjs.entry.js +2 -2
- package/dist/cjs/zonos-banner.cjs.entry.js +2 -2
- package/dist/cjs/zonos-button_3.cjs.entry.js +4 -4
- package/dist/cjs/zonos-card.cjs.entry.js +3 -3
- package/dist/cjs/zonos-cart-items_13.cjs.entry.js +151 -32
- package/dist/cjs/zonos-checkout.cjs.entry.js +36 -16
- package/dist/cjs/zonos-collapse.cjs.entry.js +2 -2
- package/dist/cjs/zonos-component.cjs.entry.js +2 -2
- package/dist/cjs/zonos-controller.cjs.entry.js +8 -8
- package/dist/cjs/zonos-country-flag.cjs.entry.js +6 -6
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +10 -10
- package/dist/cjs/zonos-elements.cjs.js +3 -3
- package/dist/cjs/{zonos-notification_3.cjs.entry.js → zonos-empty-state-payment_4.cjs.entry.js} +87 -9
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +10 -10
- package/dist/cjs/zonos-hello.cjs.entry.js +6 -6
- package/dist/cjs/zonos-input.cjs.entry.js +3 -3
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +6 -6
- package/dist/cjs/zonos-link.cjs.entry.js +1 -1
- package/dist/cjs/zonos-logo.cjs.entry.js +2 -2
- package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +3 -3
- package/dist/cjs/zonos-text.cjs.entry.js +2 -2
- package/dist/cjs/zonos-toggle.cjs.entry.js +4 -4
- package/dist/cjs/zonos-tooltip.cjs.entry.js +3 -3
- package/dist/cjs/zonos-v-stack.cjs.entry.js +4 -4
- package/dist/cjs/{zonosStore-8971eb65.js → zonosStore-46809186.js} +1 -1
- package/dist/collection/collection-manifest.json +3 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-display/zonos-address-display.js +5 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-form/zonos-address-form.js +8 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-update-dialog.js +24 -4
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-restricted-items/zonos-cart-restricted-items.js +2 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js +4 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +34 -6
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.js +4 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +109 -18
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-empty-state-payment/assets/PaymentEmptyStateDarkIcon.svg +22 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-empty-state-payment/assets/PaymentEmptyStateLightIcon.svg +22 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-empty-state-payment/zonos-empty-state-payment.css +51 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-empty-state-payment/zonos-empty-state-payment.js +90 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +62 -7
- package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.css +3 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +32 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-review/zonos-review.js +4 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +6 -0
- package/dist/collection/components/common/zonos-badge/zonos-badge.js +18 -2
- package/dist/collection/components/common/zonos-banner/zonos-banner.js +4 -0
- package/dist/collection/components/common/zonos-button/zonos-button.js +30 -0
- package/dist/collection/components/common/zonos-card/zonos-card.js +20 -4
- package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +14 -0
- package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +4 -0
- package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +4 -0
- package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +22 -0
- package/dist/collection/components/common/zonos-country-flag/zonos-country-flag.js +4 -0
- package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +2 -0
- package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +4 -0
- package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +26 -0
- package/dist/collection/components/common/zonos-icon/zonos-icon.js +8 -0
- package/dist/collection/components/common/zonos-input/zonos-input.js +12 -0
- package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -0
- package/dist/collection/components/common/zonos-link/zonos-link.js +8 -0
- package/dist/collection/components/common/zonos-logo/zonos-logo.js +4 -0
- package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.js +6 -0
- package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +4 -0
- package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.js +11 -1
- package/dist/collection/components/common/zonos-spinner/zonos-spinner.js +4 -0
- package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.css +162 -0
- package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.js +264 -0
- package/dist/collection/components/common/zonos-text/zonos-text.js +8 -0
- package/dist/collection/components/common/zonos-toggle/zonos-toggle.js +6 -2
- package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +6 -2
- package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +4 -2
- package/dist/collection/components/common/zonos-virtual-scroll/zonos-virtual-scroll.js +12 -4
- package/dist/collection/components/component-template/zonos-component/zonos-component.js +7 -1
- package/dist/collection/components/hello/zonos-hello/zonos-hello.js +7 -1
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +9 -3
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +17 -5
- package/dist/collection/components/main/zonos-controller.js +7 -3
- package/dist/collection/components/paypal/zonos-paypal-payment.js +1 -1
- package/dist/collection/components/store/checkout/cart.js +3 -0
- package/dist/collection/components/store/checkout/stripe.js +121 -40
- package/dist/collection/components/store/translationStore/strings.arabic.js +21 -0
- package/dist/collection/components/store/translationStore/strings.base.js +21 -0
- package/dist/collection/components/store/translationStore/strings.chinese.js +21 -0
- package/dist/collection/components/store/translationStore/strings.danish.js +21 -0
- package/dist/collection/components/store/translationStore/strings.dutch.js +21 -0
- package/dist/collection/components/store/translationStore/strings.french.js +21 -0
- package/dist/collection/components/store/translationStore/strings.german.js +21 -0
- package/dist/collection/components/store/translationStore/strings.hebrew.js +21 -0
- package/dist/collection/components/store/translationStore/strings.indonesian.js +21 -0
- package/dist/collection/components/store/translationStore/strings.italian.js +21 -0
- package/dist/collection/components/store/translationStore/strings.japanese.js +21 -0
- package/dist/collection/components/store/translationStore/strings.korean.js +21 -0
- package/dist/collection/components/store/translationStore/strings.norwegian.js +21 -0
- package/dist/collection/components/store/translationStore/strings.polish.js +21 -0
- package/dist/collection/components/store/translationStore/strings.portuguese.js +21 -0
- package/dist/collection/components/store/translationStore/strings.russian.js +21 -0
- package/dist/collection/components/store/translationStore/strings.spanish.js +21 -0
- package/dist/collection/components/store/translationStore/strings.swedish.js +21 -0
- package/dist/collection/components/store/translationStore/strings.turkish.js +21 -0
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +21 -0
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +7 -1
- package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +84 -3
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +3 -1
- package/dist/collection/components/utils/api/getCheckoutSession.js +1 -1
- package/dist/collection/components/utils/api/placeTestOrder.js +40 -0
- package/dist/collection/components/utils/api/prepCalculateLandedCost.js +2 -0
- package/dist/collection/components/utils/checkout/getIsStagingMode.js +1 -0
- package/dist/collection/components/utils/checkout/getIsTestMode.js +5 -1
- package/dist/collection/components/utils/handleFetch.js +22 -1
- package/dist/collection/components/utils/validateEmailValue.js +4 -0
- package/dist/collection/scripts/_getTempCartById.js +2 -2
- package/dist/collection/scripts/_getWithTestPublicCredential.js +5 -2
- package/dist/collection/scripts/cart/_getIsValidCartId.js +11 -0
- package/dist/collection/types/checkout/TaxId.js +24 -0
- package/dist/collection/types/checkout/api/PlaceTestOrder.js +1 -0
- package/dist/collection/types/generated/graphql.internal.types.js +64 -0
- package/dist/collection/types/index.js +2 -0
- package/dist/esm/{CheckoutConfig-262008fe.js → CheckoutConfig-573bd959.js} +13 -3
- package/dist/esm/TaxId-915ef042.js +26 -0
- package/dist/esm/{cart-cf87ec6f.js → cart-3427ee25.js} +547 -42
- package/dist/esm/{createCustomEvent-31a792d3.js → createCustomEvent-58159025.js} +1 -3
- package/dist/esm/{getBorderRadius-4aca63d4.js → getBorderRadius-b32d4218.js} +1 -1
- package/dist/esm/{handleFetch-badf4543.js → handleFetch-b4633675.js} +29 -2
- package/dist/esm/{index-986b5ff2.js → index-d82f06f2.js} +209 -157
- package/dist/esm/index.js +14 -12
- package/dist/esm/{isDarkColor-4915739f.js → isDarkColor-10f38df6.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{paypal-b7124cc4.js → paypal-4e2f9753.js} +4 -4
- package/dist/esm/{zonos-address_7.entry.js → zonos-address_8.entry.js} +143 -11
- package/dist/esm/zonos-badge.entry.js +2 -2
- package/dist/esm/zonos-banner.entry.js +2 -2
- package/dist/esm/zonos-button_3.entry.js +4 -4
- package/dist/esm/zonos-card.entry.js +3 -3
- package/dist/esm/zonos-cart-items_13.entry.js +149 -30
- package/dist/esm/zonos-checkout.entry.js +34 -14
- package/dist/esm/zonos-collapse.entry.js +2 -2
- package/dist/esm/zonos-component.entry.js +2 -2
- package/dist/esm/zonos-controller.entry.js +8 -8
- package/dist/esm/zonos-country-flag.entry.js +6 -6
- package/dist/esm/zonos-country-select_4.entry.js +10 -10
- package/dist/esm/zonos-elements.js +4 -4
- package/dist/esm/{zonos-notification_3.entry.js → zonos-empty-state-payment_4.entry.js} +87 -10
- package/dist/esm/zonos-hello-dialog.entry.js +10 -10
- package/dist/esm/zonos-hello.entry.js +6 -6
- package/dist/esm/zonos-input.entry.js +3 -3
- package/dist/esm/zonos-language-select_2.entry.js +6 -6
- package/dist/esm/zonos-link.entry.js +1 -1
- package/dist/esm/zonos-logo.entry.js +2 -2
- package/dist/esm/zonos-shipping-rich-radio.entry.js +3 -3
- package/dist/esm/zonos-text.entry.js +2 -2
- package/dist/esm/zonos-toggle.entry.js +4 -4
- package/dist/esm/zonos-tooltip.entry.js +3 -3
- package/dist/esm/zonos-v-stack.entry.js +4 -4
- package/dist/esm/{zonosStore-708637e7.js → zonosStore-44efd080.js} +1 -1
- package/dist/esm-es5/CheckoutConfig-573bd959.js +1 -0
- package/dist/esm-es5/TaxId-915ef042.js +1 -0
- package/dist/esm-es5/cart-3427ee25.js +1 -0
- package/dist/esm-es5/createCustomEvent-58159025.js +1 -0
- package/dist/esm-es5/{getBorderRadius-4aca63d4.js → getBorderRadius-b32d4218.js} +1 -1
- package/dist/esm-es5/handleFetch-b4633675.js +1 -0
- package/dist/esm-es5/index-d82f06f2.js +2 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{isDarkColor-4915739f.js → isDarkColor-10f38df6.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{paypal-b7124cc4.js → paypal-4e2f9753.js} +1 -1
- package/dist/esm-es5/zonos-address_8.entry.js +1 -0
- package/dist/esm-es5/zonos-badge.entry.js +1 -1
- package/dist/esm-es5/zonos-banner.entry.js +1 -1
- package/dist/esm-es5/zonos-button_3.entry.js +1 -1
- package/dist/esm-es5/zonos-card.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_13.entry.js +1 -1
- package/dist/esm-es5/zonos-checkout.entry.js +1 -1
- package/dist/esm-es5/zonos-collapse.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_4.entry.js +1 -1
- package/dist/esm-es5/zonos-elements.js +1 -1
- package/dist/esm-es5/zonos-empty-state-payment_4.entry.js +1 -0
- package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm-es5/zonos-hello.entry.js +1 -1
- package/dist/esm-es5/zonos-input.entry.js +1 -1
- package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
- 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-shipping-rich-radio.entry.js +1 -1
- package/dist/esm-es5/zonos-text.entry.js +1 -1
- package/dist/esm-es5/zonos-toggle.entry.js +1 -1
- package/dist/esm-es5/zonos-tooltip.entry.js +1 -1
- package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
- package/dist/esm-es5/{zonosStore-708637e7.js → zonosStore-44efd080.js} +1 -1
- package/dist/scripts/index.d.ts +170 -0
- package/dist/scripts/index.js +1 -1
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.d.ts +1 -0
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.d.ts +18 -0
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-empty-state-payment/zonos-empty-state-payment.d.ts +13 -0
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +10 -0
- package/dist/types/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.d.ts +5 -0
- package/dist/types/components/common/zonos-stripe-input/zonos-stripe-input.d.ts +46 -0
- package/dist/types/components/store/checkout/cart.d.ts +5 -0
- package/dist/types/components/store/checkout/stripe.d.ts +16 -2
- package/dist/types/components/store/translationStore/strings.arabic.d.ts +21 -0
- package/dist/types/components/store/translationStore/strings.base.d.ts +21 -0
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +21 -0
- package/dist/types/components/store/translationStore/strings.danish.d.ts +21 -0
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +21 -0
- package/dist/types/components/store/translationStore/strings.french.d.ts +21 -0
- package/dist/types/components/store/translationStore/strings.german.d.ts +21 -0
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +21 -0
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +21 -0
- package/dist/types/components/store/translationStore/strings.italian.d.ts +21 -0
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +21 -0
- package/dist/types/components/store/translationStore/strings.korean.d.ts +21 -0
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +21 -0
- package/dist/types/components/store/translationStore/strings.polish.d.ts +21 -0
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +21 -0
- package/dist/types/components/store/translationStore/strings.russian.d.ts +21 -0
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +21 -0
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +21 -0
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +21 -0
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +21 -0
- package/dist/types/components/stripe/zonos-link-authentication/zonos-link-authentication.d.ts +6 -0
- package/dist/types/components/utils/api/placeTestOrder.d.ts +7 -0
- package/dist/types/components/utils/checkout/getIsStagingMode.d.ts +1 -0
- package/dist/types/components/utils/checkout/getIsTestMode.d.ts +1 -1
- package/dist/types/components/utils/validateEmailValue.d.ts +1 -0
- package/dist/types/components.d.ts +161 -0
- package/dist/types/types/checkout/TaxId.d.ts +20 -0
- package/dist/types/types/checkout/api/CalculateLandedCost.d.ts +8 -0
- package/dist/types/types/checkout/api/CheckoutSession.d.ts +8 -2
- package/dist/types/types/checkout/api/PlaceTestOrder.d.ts +7 -0
- package/dist/types/types/generated/graphql.internal.types.d.ts +144 -109
- package/dist/types/types/generated/graphql.internal.types.ts +180 -99
- package/dist/types/types/index.d.ts +2 -0
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-68d79b58.entry.js → p-00136c20.entry.js} +1 -1
- package/dist/zonos-elements/{p-d381288e.entry.js → p-0028d158.entry.js} +1 -1
- package/dist/zonos-elements/{p-72256333.entry.js → p-05013308.entry.js} +1 -1
- package/dist/zonos-elements/{p-c1b098de.system.js → p-0e6a3cd2.system.js} +1 -1
- package/dist/zonos-elements/{p-c0164a3c.system.js → p-12546668.system.js} +1 -1
- package/dist/zonos-elements/p-12a6b7bd.system.js +1 -0
- package/dist/zonos-elements/p-1423ebbe.js +1 -0
- package/dist/zonos-elements/p-18e5b741.system.js +1 -0
- package/dist/zonos-elements/p-2deae669.entry.js +1 -0
- package/dist/zonos-elements/{p-36dfc7ac.system.js → p-32912caf.system.js} +1 -1
- package/dist/zonos-elements/{p-fc4658a6.entry.js → p-36f97fd9.entry.js} +1 -1
- package/dist/zonos-elements/{p-983f23a1.system.entry.js → p-3a213429.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-e6554a6f.system.entry.js → p-3aa4841a.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-a13d5957.system.entry.js → p-3d221556.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-381874b0.system.entry.js → p-41e26cc4.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-2d514c1d.system.entry.js → p-463e44b6.system.entry.js} +1 -1
- package/dist/zonos-elements/p-46f6e5e9.system.js +1 -0
- package/dist/zonos-elements/{p-6271e108.js → p-485d89a4.js} +1 -1
- package/dist/zonos-elements/p-48bca3d4.system.entry.js +1 -0
- package/dist/zonos-elements/p-4caffd96.system.js +2 -0
- package/dist/zonos-elements/{p-0920500d.entry.js → p-50896f89.entry.js} +1 -1
- package/dist/zonos-elements/{p-2e152517.system.entry.js → p-515e3606.system.entry.js} +1 -1
- package/dist/zonos-elements/p-5834c218.system.js +1 -0
- package/dist/zonos-elements/p-595f5dd2.js +1 -0
- package/dist/zonos-elements/p-5bd927f2.js +1 -0
- package/dist/zonos-elements/{p-2761ad55.system.entry.js → p-619c07c6.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-2b8cddb7.entry.js → p-69f84611.entry.js} +1 -1
- package/dist/zonos-elements/{p-766dd01f.js → p-6c578d26.js} +1 -1
- package/dist/zonos-elements/{p-28295342.entry.js → p-709c7e9e.entry.js} +1 -1
- package/dist/zonos-elements/{p-0197a9bf.system.entry.js → p-7140439f.system.entry.js} +1 -1
- package/dist/zonos-elements/p-7302a081.system.entry.js +1 -0
- package/dist/zonos-elements/p-7e47f6cf.entry.js +1 -0
- package/dist/zonos-elements/{p-44dd4269.entry.js → p-7f288336.entry.js} +1 -1
- package/dist/zonos-elements/{p-0e54432c.system.entry.js → p-81084be5.system.entry.js} +1 -1
- package/dist/zonos-elements/p-81a5dd5c.js +1 -0
- package/dist/zonos-elements/p-84e5fc0b.entry.js +1 -0
- package/dist/zonos-elements/{p-33e1d25e.system.entry.js → p-86e825f0.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-0b5f4ca7.system.entry.js → p-91fc6c24.system.entry.js} +1 -1
- package/dist/zonos-elements/p-9951462e.entry.js +1 -0
- package/dist/zonos-elements/{p-a2bce31d.system.entry.js → p-9cf018c8.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-232963d3.system.entry.js → p-9e05e259.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-6b490b0a.system.entry.js → p-a8cf3542.system.entry.js} +1 -1
- package/dist/zonos-elements/p-ab68ad11.js +2 -0
- package/dist/zonos-elements/{p-4b685549.js → p-b0616716.js} +1 -1
- package/dist/zonos-elements/{p-1e3ea4ae.entry.js → p-b12fbc07.entry.js} +1 -1
- package/dist/zonos-elements/{p-d198421b.system.entry.js → p-b2292b70.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-58a09715.entry.js → p-b262b93e.entry.js} +1 -1
- package/dist/zonos-elements/{p-545c05ce.entry.js → p-b288c2ed.entry.js} +1 -1
- package/dist/zonos-elements/p-b3882a73.system.js +1 -0
- package/dist/zonos-elements/{p-9306a835.entry.js → p-b5c360af.entry.js} +1 -1
- package/dist/zonos-elements/{p-2cfc00b8.system.entry.js → p-b6bbdb59.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-f295030e.system.entry.js → p-bb92882d.system.entry.js} +1 -1
- package/dist/zonos-elements/p-bf37ccc7.system.js +1 -0
- package/dist/zonos-elements/{p-21b538ea.system.js → p-c015be06.system.js} +1 -1
- package/dist/zonos-elements/p-c8b0bc02.system.entry.js +1 -0
- package/dist/zonos-elements/{p-39cac2c1.entry.js → p-cbd5d932.entry.js} +1 -1
- package/dist/zonos-elements/{p-7c5c0a85.entry.js → p-cdfca133.entry.js} +1 -1
- package/dist/zonos-elements/{p-675f60b4.entry.js → p-d2f2c685.entry.js} +1 -1
- package/dist/zonos-elements/{p-2c19f5e2.entry.js → p-d6061c79.entry.js} +1 -1
- package/dist/zonos-elements/p-da6a29e4.system.entry.js +1 -0
- package/dist/zonos-elements/{p-65069140.entry.js → p-db3f381d.entry.js} +1 -1
- package/dist/zonos-elements/{p-9dec2b74.entry.js → p-de221545.entry.js} +1 -1
- package/dist/zonos-elements/{p-2949faf3.entry.js → p-e01ccb27.entry.js} +1 -1
- package/dist/zonos-elements/{p-b0174a8f.js → p-e02fd9ae.js} +1 -1
- package/dist/zonos-elements/{p-3cf30d83.entry.js → p-e2f1fa53.entry.js} +1 -1
- package/dist/zonos-elements/{p-ebdd9b64.system.entry.js → p-e8c70c7d.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-a8bd492d.system.entry.js → p-ea35b237.system.entry.js} +1 -1
- package/dist/zonos-elements/p-f0c8150e.js +1 -0
- package/dist/zonos-elements/p-f3b0a097.system.js +1 -0
- package/dist/zonos-elements/{p-d5a3851d.system.entry.js → p-fc4ebe6b.system.entry.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 +9 -8
- package/dist/esm-es5/CheckoutConfig-262008fe.js +0 -1
- package/dist/esm-es5/cart-cf87ec6f.js +0 -1
- package/dist/esm-es5/createCustomEvent-31a792d3.js +0 -1
- package/dist/esm-es5/handleFetch-badf4543.js +0 -1
- package/dist/esm-es5/index-986b5ff2.js +0 -2
- package/dist/esm-es5/zonos-address_7.entry.js +0 -1
- package/dist/esm-es5/zonos-notification_3.entry.js +0 -1
- package/dist/zonos-elements/p-076388d3.entry.js +0 -1
- package/dist/zonos-elements/p-0cda2818.system.js +0 -1
- package/dist/zonos-elements/p-0d2cf216.entry.js +0 -1
- package/dist/zonos-elements/p-1460f917.js +0 -1
- package/dist/zonos-elements/p-272052bd.system.entry.js +0 -1
- package/dist/zonos-elements/p-3cb4468f.system.entry.js +0 -1
- package/dist/zonos-elements/p-3d82e70e.js +0 -1
- package/dist/zonos-elements/p-64372f93.system.js +0 -1
- package/dist/zonos-elements/p-673b4402.system.entry.js +0 -1
- package/dist/zonos-elements/p-680d3694.js +0 -2
- package/dist/zonos-elements/p-7b999a40.js +0 -1
- package/dist/zonos-elements/p-7c643376.system.js +0 -1
- package/dist/zonos-elements/p-866bb93e.system.js +0 -1
- package/dist/zonos-elements/p-8c487480.entry.js +0 -1
- package/dist/zonos-elements/p-9b720cf4.entry.js +0 -1
- package/dist/zonos-elements/p-a5b294d7.js +0 -1
- package/dist/zonos-elements/p-b50667b6.system.js +0 -2
- package/dist/zonos-elements/p-bfcfd29b.system.js +0 -1
- package/dist/zonos-elements/p-ded984d9.system.entry.js +0 -1
- package/dist/zonos-elements/p-e9964a5a.system.js +0 -1
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
font-family: var(--zonos--font-family, Inter), Inter;
|
|
3
|
+
display: block;
|
|
4
|
+
white-space: normal;
|
|
5
|
+
}
|
|
6
|
+
:host * {
|
|
7
|
+
font-family: var(--zonos--font-family, Inter), Inter;
|
|
8
|
+
}
|
|
9
|
+
:host img {
|
|
10
|
+
max-width: 100%;
|
|
11
|
+
}
|
|
12
|
+
:host dl,
|
|
13
|
+
:host dd,
|
|
14
|
+
:host h1,
|
|
15
|
+
:host h2,
|
|
16
|
+
:host h3,
|
|
17
|
+
:host h4,
|
|
18
|
+
:host h5,
|
|
19
|
+
:host h6,
|
|
20
|
+
:host hr,
|
|
21
|
+
:host figure,
|
|
22
|
+
:host p,
|
|
23
|
+
:host pre {
|
|
24
|
+
margin: 0;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* All sets of variable are here */
|
|
28
|
+
/* smooth font rendering */
|
|
29
|
+
:host {
|
|
30
|
+
-moz-osx-font-smoothing: grayscale;
|
|
31
|
+
-webkit-font-smoothing: antialiased;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
:host {
|
|
35
|
+
--zonos--background-color: #f1f1f1;
|
|
36
|
+
--zonos--local-glowing-color: 0 0 0 3px hsla(0, 0%, 100%, 25%),
|
|
37
|
+
0 0 0 1px var(--zonos--primary-color);
|
|
38
|
+
--zonos--border: 1px solid #e8e8e8;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
:host(.dark) {
|
|
42
|
+
color-scheme: dark;
|
|
43
|
+
--zonos--background-color: #30313d;
|
|
44
|
+
--zonos--local-glowing-color: 0px 2px 4px rgba(0, 0, 0, 0.5),
|
|
45
|
+
0px 1px 6px rgba(0, 0, 0, 0.25), 0 0 0 3px hsla(0, 0%, 100%, 25%),
|
|
46
|
+
0 1px 1px 0 rgba(255, 255, 255, 0.12);
|
|
47
|
+
--zonos--border: 1px solid var(--zonos--primary-color);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
:host {
|
|
51
|
+
margin: 1px;
|
|
52
|
+
height: calc(var(--zonos-elements-size-xl) - 2px);
|
|
53
|
+
/**disabled state */
|
|
54
|
+
}
|
|
55
|
+
:host .zonos--label-wrapper {
|
|
56
|
+
position: relative;
|
|
57
|
+
display: flex;
|
|
58
|
+
flex-direction: row;
|
|
59
|
+
height: 100%;
|
|
60
|
+
width: 100%;
|
|
61
|
+
background: var(--zonos--background-color);
|
|
62
|
+
border-radius: var(--zonos--border-radius);
|
|
63
|
+
border: var(--zonos--border);
|
|
64
|
+
outline-offset: 0;
|
|
65
|
+
outline-width: 2px;
|
|
66
|
+
}
|
|
67
|
+
:host .zonos--floated-input {
|
|
68
|
+
box-sizing: border-box;
|
|
69
|
+
position: relative;
|
|
70
|
+
padding: 0 16px;
|
|
71
|
+
outline: none;
|
|
72
|
+
transition: var(--zonos-elements-transition);
|
|
73
|
+
width: 100%;
|
|
74
|
+
border-radius: var(--zonos--border-radius);
|
|
75
|
+
background: var(--zonos--background-color);
|
|
76
|
+
border: var(--zonos--border);
|
|
77
|
+
order: 2;
|
|
78
|
+
font-weight: 400;
|
|
79
|
+
font-size: var(--zonos--font-size);
|
|
80
|
+
}
|
|
81
|
+
:host .zonos--floated-input :-internal-autofill-selected {
|
|
82
|
+
border-radius: var(--zonos-elements-radius-6) 0 0 var(--zonos-elements-radius-6);
|
|
83
|
+
}
|
|
84
|
+
:host .zonos--floated-input :-internal-autofill-selected + label + div {
|
|
85
|
+
background-color: #e8f0fe;
|
|
86
|
+
}
|
|
87
|
+
:host .zonos--floated-input.has-label {
|
|
88
|
+
padding: 24px 4px 2px 16px;
|
|
89
|
+
}
|
|
90
|
+
:host .zonos--floated-input.has-label.has-input-prefix {
|
|
91
|
+
padding-left: 0;
|
|
92
|
+
}
|
|
93
|
+
:host .zonos--floated-input.has-label.has-input-prefix ~ .zonos--floated-label label {
|
|
94
|
+
margin-left: 0;
|
|
95
|
+
}
|
|
96
|
+
:host .zonos--floated-input:not(.has-label)::placeholder {
|
|
97
|
+
opacity: var(--zonos-elements-opacity-disabled);
|
|
98
|
+
}
|
|
99
|
+
:host .zonos--floated-input::placeholder {
|
|
100
|
+
transition: var(--zonos-elements-transition);
|
|
101
|
+
opacity: 0;
|
|
102
|
+
}
|
|
103
|
+
:host .zonos--floated-input:focus {
|
|
104
|
+
outline: none;
|
|
105
|
+
border: var(--zonos--border);
|
|
106
|
+
}
|
|
107
|
+
:host .zonos--floated-input:focus ~ .zonos--floated-label::after {
|
|
108
|
+
box-shadow: var(--zonos--glowing-color, var(--zonos--local-glowing-color));
|
|
109
|
+
}
|
|
110
|
+
:host .zonos--floated-input.has-error + .zonos--floated-label::after {
|
|
111
|
+
box-shadow: 0 0 0 2px #df1b41;
|
|
112
|
+
}
|
|
113
|
+
:host .zonos--floated-input.has-content::placeholder, :host .zonos--floated-input:focus::placeholder {
|
|
114
|
+
opacity: var(--zonos-elements-opacity-disabled);
|
|
115
|
+
}
|
|
116
|
+
:host .zonos--floated-input.has-content ~ .zonos--floated-label label, :host .zonos--floated-input:focus ~ .zonos--floated-label label {
|
|
117
|
+
top: 11px;
|
|
118
|
+
transform: scale(0.8);
|
|
119
|
+
}
|
|
120
|
+
:host .zonos--floated-input:-webkit-autofill, :host .zonos--floated-input:-moz-autofill {
|
|
121
|
+
background-color: var(--zonos-elements-input-background);
|
|
122
|
+
color: var(--zonos-elements-text-color);
|
|
123
|
+
}
|
|
124
|
+
:host .zonos--floated-label {
|
|
125
|
+
display: block;
|
|
126
|
+
max-height: 0;
|
|
127
|
+
pointer-events: none;
|
|
128
|
+
order: 1;
|
|
129
|
+
}
|
|
130
|
+
:host .zonos--floated-label label {
|
|
131
|
+
color: var(--zonos-elements-gray-800);
|
|
132
|
+
position: absolute;
|
|
133
|
+
font-size: 16px;
|
|
134
|
+
line-height: 16px;
|
|
135
|
+
display: inline-block;
|
|
136
|
+
filter: blur(0);
|
|
137
|
+
transform-origin: left top;
|
|
138
|
+
transition: var(--zonos-elements-transition);
|
|
139
|
+
margin-left: 16px;
|
|
140
|
+
top: calc(50% - 8px);
|
|
141
|
+
z-index: 1;
|
|
142
|
+
}
|
|
143
|
+
:host .zonos--floated-label::after {
|
|
144
|
+
content: "";
|
|
145
|
+
position: absolute;
|
|
146
|
+
left: 0;
|
|
147
|
+
right: 0;
|
|
148
|
+
top: 0;
|
|
149
|
+
bottom: 0;
|
|
150
|
+
border-radius: var(--zonos--border-radius);
|
|
151
|
+
}
|
|
152
|
+
:host .disabled .zonos--floated-label {
|
|
153
|
+
pointer-events: inherit;
|
|
154
|
+
}
|
|
155
|
+
:host .disabled .zonos--floated-label::after {
|
|
156
|
+
cursor: not-allowed;
|
|
157
|
+
z-index: 1;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
:host(.dark) .zonos--label-wrapper {
|
|
161
|
+
background: #30313d;
|
|
162
|
+
}
|
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
import { h, Host, } from "@stencil/core";
|
|
2
|
+
import { zonosStore, zonosStoreFontFamily, } from "../../store/zonosStore";
|
|
3
|
+
import { classes } from "../../utils/classes";
|
|
4
|
+
import { getBorderRadius } from "../../utils/getBorderRadius";
|
|
5
|
+
import { isDarkColor } from "../../utils/isDarkColor";
|
|
6
|
+
/**
|
|
7
|
+
* This component is input that has similar style to Stripe since we will use it with other Stripe elements when we don't want to use Link authentication element
|
|
8
|
+
*/
|
|
9
|
+
export class ZonosStripeInput {
|
|
10
|
+
constructor() {
|
|
11
|
+
this.inputValue = '';
|
|
12
|
+
this.inputLabel = undefined;
|
|
13
|
+
this.overridePrimaryColor = undefined;
|
|
14
|
+
this.overrideSecondaryColor = undefined;
|
|
15
|
+
this.isDisabled = false;
|
|
16
|
+
this.isError = false;
|
|
17
|
+
this.inputPlaceholder = '';
|
|
18
|
+
this.value = '';
|
|
19
|
+
this.internalValue = this.inputValue;
|
|
20
|
+
}
|
|
21
|
+
onInputValueChange(newValue) {
|
|
22
|
+
this.internalValue = newValue;
|
|
23
|
+
this.inputChange.emit(newValue);
|
|
24
|
+
this.value = newValue;
|
|
25
|
+
}
|
|
26
|
+
onValueChange(newValue) {
|
|
27
|
+
this.internalValue = newValue;
|
|
28
|
+
}
|
|
29
|
+
render() {
|
|
30
|
+
const primaryColor = this.overridePrimaryColor || zonosStore.appearance.colorPrimary;
|
|
31
|
+
const secondaryColor = this.overrideSecondaryColor || zonosStore.appearance.colorSecondary;
|
|
32
|
+
const isDark = primaryColor && isDarkColor(primaryColor);
|
|
33
|
+
const fontSize = zonosStore.appearance.fontSizeInputValue || 16;
|
|
34
|
+
return (h(Host, { key: 'd78f2aee99ac4e6d95cf1628e058e6d3bb70e309', class: classes([
|
|
35
|
+
'zonos--input zonos--elements',
|
|
36
|
+
isDark && 'dark',
|
|
37
|
+
this.isError && 'has-error',
|
|
38
|
+
]), "data-theme": isDark ? 'DARK' : 'LIGHT', style: {
|
|
39
|
+
'--zonos--border-radius': getBorderRadius(),
|
|
40
|
+
'--zonos--font-family': zonosStoreFontFamily(),
|
|
41
|
+
'--zonos--font-size': `${fontSize}px`,
|
|
42
|
+
'--zonos--primary-color': secondaryColor,
|
|
43
|
+
} }, h("div", { key: 'a3e7f765b0081a564c5955e387ff4b521a28d1a5', class: classes([
|
|
44
|
+
'zonos--label-wrapper',
|
|
45
|
+
this.isDisabled && 'disabled',
|
|
46
|
+
]) }, h("input", { key: '999a54381e24e5da6f2a5fd9cde56c4fa87d37b1', class: classes([
|
|
47
|
+
'zonos--floated-input',
|
|
48
|
+
!!this.inputLabel && 'has-label',
|
|
49
|
+
this.internalValue && 'has-content',
|
|
50
|
+
this.isError && 'has-error',
|
|
51
|
+
]), disabled: this.isDisabled, id: "zonos--input", onInput: e => {
|
|
52
|
+
const input = e.target;
|
|
53
|
+
this.inputChange.emit(input.value);
|
|
54
|
+
this.el.inputValue = input.value;
|
|
55
|
+
this.el.dispatchEvent(new Event('change'));
|
|
56
|
+
}, placeholder: this.inputPlaceholder, type: "text", value: this.internalValue }), h("div", { key: '251f9bfc2399e47f2a4dad359d2511400ec10b41', class: "zonos--floated-label" }, h("label", { key: 'eb23eea3a74af98c7439294621a4caf282fdbbb1', htmlFor: "zonos--input" }, this.inputLabel)))));
|
|
57
|
+
}
|
|
58
|
+
static get is() { return "zonos-stripe-input"; }
|
|
59
|
+
static get encapsulation() { return "shadow"; }
|
|
60
|
+
static get originalStyleUrls() {
|
|
61
|
+
return {
|
|
62
|
+
"$": ["zonos-stripe-input.scss"]
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
static get styleUrls() {
|
|
66
|
+
return {
|
|
67
|
+
"$": ["zonos-stripe-input.css"]
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
static get properties() {
|
|
71
|
+
return {
|
|
72
|
+
"inputValue": {
|
|
73
|
+
"type": "string",
|
|
74
|
+
"mutable": false,
|
|
75
|
+
"complexType": {
|
|
76
|
+
"original": "string",
|
|
77
|
+
"resolved": "string",
|
|
78
|
+
"references": {}
|
|
79
|
+
},
|
|
80
|
+
"required": false,
|
|
81
|
+
"optional": false,
|
|
82
|
+
"docs": {
|
|
83
|
+
"tags": [],
|
|
84
|
+
"text": "Value of the stripeInput"
|
|
85
|
+
},
|
|
86
|
+
"getter": false,
|
|
87
|
+
"setter": false,
|
|
88
|
+
"attribute": "input-value",
|
|
89
|
+
"reflect": false,
|
|
90
|
+
"defaultValue": "''"
|
|
91
|
+
},
|
|
92
|
+
"inputLabel": {
|
|
93
|
+
"type": "string",
|
|
94
|
+
"mutable": false,
|
|
95
|
+
"complexType": {
|
|
96
|
+
"original": "string",
|
|
97
|
+
"resolved": "string",
|
|
98
|
+
"references": {}
|
|
99
|
+
},
|
|
100
|
+
"required": true,
|
|
101
|
+
"optional": false,
|
|
102
|
+
"docs": {
|
|
103
|
+
"tags": [],
|
|
104
|
+
"text": "Input label"
|
|
105
|
+
},
|
|
106
|
+
"getter": false,
|
|
107
|
+
"setter": false,
|
|
108
|
+
"attribute": "input-label",
|
|
109
|
+
"reflect": false
|
|
110
|
+
},
|
|
111
|
+
"overridePrimaryColor": {
|
|
112
|
+
"type": "string",
|
|
113
|
+
"mutable": false,
|
|
114
|
+
"complexType": {
|
|
115
|
+
"original": "string",
|
|
116
|
+
"resolved": "string | undefined",
|
|
117
|
+
"references": {}
|
|
118
|
+
},
|
|
119
|
+
"required": false,
|
|
120
|
+
"optional": true,
|
|
121
|
+
"docs": {
|
|
122
|
+
"tags": [],
|
|
123
|
+
"text": "Primary color to override primary color from appearance primary color in setting."
|
|
124
|
+
},
|
|
125
|
+
"getter": false,
|
|
126
|
+
"setter": false,
|
|
127
|
+
"attribute": "override-primary-color",
|
|
128
|
+
"reflect": false
|
|
129
|
+
},
|
|
130
|
+
"overrideSecondaryColor": {
|
|
131
|
+
"type": "string",
|
|
132
|
+
"mutable": false,
|
|
133
|
+
"complexType": {
|
|
134
|
+
"original": "string",
|
|
135
|
+
"resolved": "string | undefined",
|
|
136
|
+
"references": {}
|
|
137
|
+
},
|
|
138
|
+
"required": false,
|
|
139
|
+
"optional": true,
|
|
140
|
+
"docs": {
|
|
141
|
+
"tags": [],
|
|
142
|
+
"text": "Secondary color to override secondary color from appearance secondary color in setting"
|
|
143
|
+
},
|
|
144
|
+
"getter": false,
|
|
145
|
+
"setter": false,
|
|
146
|
+
"attribute": "override-secondary-color",
|
|
147
|
+
"reflect": false
|
|
148
|
+
},
|
|
149
|
+
"isDisabled": {
|
|
150
|
+
"type": "boolean",
|
|
151
|
+
"mutable": false,
|
|
152
|
+
"complexType": {
|
|
153
|
+
"original": "boolean",
|
|
154
|
+
"resolved": "boolean",
|
|
155
|
+
"references": {}
|
|
156
|
+
},
|
|
157
|
+
"required": false,
|
|
158
|
+
"optional": false,
|
|
159
|
+
"docs": {
|
|
160
|
+
"tags": [],
|
|
161
|
+
"text": "Disables the input"
|
|
162
|
+
},
|
|
163
|
+
"getter": false,
|
|
164
|
+
"setter": false,
|
|
165
|
+
"attribute": "is-disabled",
|
|
166
|
+
"reflect": false,
|
|
167
|
+
"defaultValue": "false"
|
|
168
|
+
},
|
|
169
|
+
"isError": {
|
|
170
|
+
"type": "boolean",
|
|
171
|
+
"mutable": false,
|
|
172
|
+
"complexType": {
|
|
173
|
+
"original": "boolean",
|
|
174
|
+
"resolved": "boolean",
|
|
175
|
+
"references": {}
|
|
176
|
+
},
|
|
177
|
+
"required": false,
|
|
178
|
+
"optional": false,
|
|
179
|
+
"docs": {
|
|
180
|
+
"tags": [],
|
|
181
|
+
"text": "Error state of the input"
|
|
182
|
+
},
|
|
183
|
+
"getter": false,
|
|
184
|
+
"setter": false,
|
|
185
|
+
"attribute": "is-error",
|
|
186
|
+
"reflect": false,
|
|
187
|
+
"defaultValue": "false"
|
|
188
|
+
},
|
|
189
|
+
"inputPlaceholder": {
|
|
190
|
+
"type": "string",
|
|
191
|
+
"mutable": false,
|
|
192
|
+
"complexType": {
|
|
193
|
+
"original": "string",
|
|
194
|
+
"resolved": "string",
|
|
195
|
+
"references": {}
|
|
196
|
+
},
|
|
197
|
+
"required": false,
|
|
198
|
+
"optional": false,
|
|
199
|
+
"docs": {
|
|
200
|
+
"tags": [],
|
|
201
|
+
"text": "Placeholder for the input"
|
|
202
|
+
},
|
|
203
|
+
"getter": false,
|
|
204
|
+
"setter": false,
|
|
205
|
+
"attribute": "input-placeholder",
|
|
206
|
+
"reflect": false,
|
|
207
|
+
"defaultValue": "''"
|
|
208
|
+
},
|
|
209
|
+
"value": {
|
|
210
|
+
"type": "string",
|
|
211
|
+
"mutable": true,
|
|
212
|
+
"complexType": {
|
|
213
|
+
"original": "string",
|
|
214
|
+
"resolved": "string",
|
|
215
|
+
"references": {}
|
|
216
|
+
},
|
|
217
|
+
"required": false,
|
|
218
|
+
"optional": false,
|
|
219
|
+
"docs": {
|
|
220
|
+
"tags": [],
|
|
221
|
+
"text": "The value of the input."
|
|
222
|
+
},
|
|
223
|
+
"getter": false,
|
|
224
|
+
"setter": false,
|
|
225
|
+
"attribute": "value",
|
|
226
|
+
"reflect": false,
|
|
227
|
+
"defaultValue": "''"
|
|
228
|
+
}
|
|
229
|
+
};
|
|
230
|
+
}
|
|
231
|
+
static get states() {
|
|
232
|
+
return {
|
|
233
|
+
"internalValue": {}
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
static get events() {
|
|
237
|
+
return [{
|
|
238
|
+
"method": "inputChange",
|
|
239
|
+
"name": "inputChange",
|
|
240
|
+
"bubbles": true,
|
|
241
|
+
"cancelable": true,
|
|
242
|
+
"composed": true,
|
|
243
|
+
"docs": {
|
|
244
|
+
"tags": [],
|
|
245
|
+
"text": "Event to emit when input value changes"
|
|
246
|
+
},
|
|
247
|
+
"complexType": {
|
|
248
|
+
"original": "string",
|
|
249
|
+
"resolved": "string",
|
|
250
|
+
"references": {}
|
|
251
|
+
}
|
|
252
|
+
}];
|
|
253
|
+
}
|
|
254
|
+
static get elementRef() { return "el"; }
|
|
255
|
+
static get watchers() {
|
|
256
|
+
return [{
|
|
257
|
+
"propName": "inputValue",
|
|
258
|
+
"methodName": "onInputValueChange"
|
|
259
|
+
}, {
|
|
260
|
+
"propName": "value",
|
|
261
|
+
"methodName": "onValueChange"
|
|
262
|
+
}];
|
|
263
|
+
}
|
|
264
|
+
}
|
|
@@ -105,6 +105,8 @@ export class ZonosText {
|
|
|
105
105
|
"tags": [],
|
|
106
106
|
"text": "The icon element to display"
|
|
107
107
|
},
|
|
108
|
+
"getter": false,
|
|
109
|
+
"setter": false,
|
|
108
110
|
"attribute": "text-color",
|
|
109
111
|
"reflect": false,
|
|
110
112
|
"defaultValue": "'gray-1000'"
|
|
@@ -129,6 +131,8 @@ export class ZonosText {
|
|
|
129
131
|
"tags": [],
|
|
130
132
|
"text": "The size of the text"
|
|
131
133
|
},
|
|
134
|
+
"getter": false,
|
|
135
|
+
"setter": false,
|
|
132
136
|
"attribute": "size",
|
|
133
137
|
"reflect": false
|
|
134
138
|
},
|
|
@@ -152,6 +156,8 @@ export class ZonosText {
|
|
|
152
156
|
"tags": [],
|
|
153
157
|
"text": "Type of the text to display"
|
|
154
158
|
},
|
|
159
|
+
"getter": false,
|
|
160
|
+
"setter": false,
|
|
155
161
|
"attribute": "type",
|
|
156
162
|
"reflect": false,
|
|
157
163
|
"defaultValue": "'body'"
|
|
@@ -176,6 +182,8 @@ export class ZonosText {
|
|
|
176
182
|
"tags": [],
|
|
177
183
|
"text": "The weight of the text"
|
|
178
184
|
},
|
|
185
|
+
"getter": false,
|
|
186
|
+
"setter": false,
|
|
179
187
|
"attribute": "weight",
|
|
180
188
|
"reflect": false
|
|
181
189
|
}
|
|
@@ -7,9 +7,9 @@ export class ZonosToggle {
|
|
|
7
7
|
this.value = undefined;
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
|
-
return (h(Host, { key: '
|
|
10
|
+
return (h(Host, { key: '01958140c90fdadecbfca64fe65dbf1132af2cc1', class: classes(['zonos--elements zonos--toggle']), style: {
|
|
11
11
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
12
|
-
} }, h("div", { key: '
|
|
12
|
+
} }, h("div", { key: '5362589929c25b5ba897d23a308f6dd2759c4ac0', class: "wrapper" }, this.options.map(option => {
|
|
13
13
|
const selected = option.value === this.value;
|
|
14
14
|
return (h("button", { class: classes(['zonos--option', selected && 'selected']), key: option.value, onClick: () => {
|
|
15
15
|
this.toggleChanged.emit(option.value);
|
|
@@ -50,6 +50,8 @@ export class ZonosToggle {
|
|
|
50
50
|
"tags": [],
|
|
51
51
|
"text": "Options for the toggle"
|
|
52
52
|
},
|
|
53
|
+
"getter": false,
|
|
54
|
+
"setter": false,
|
|
53
55
|
"defaultValue": "[]"
|
|
54
56
|
},
|
|
55
57
|
"value": {
|
|
@@ -66,6 +68,8 @@ export class ZonosToggle {
|
|
|
66
68
|
"tags": [],
|
|
67
69
|
"text": "The selected option"
|
|
68
70
|
},
|
|
71
|
+
"getter": false,
|
|
72
|
+
"setter": false,
|
|
69
73
|
"attribute": "value",
|
|
70
74
|
"reflect": false
|
|
71
75
|
}
|
|
@@ -7,10 +7,10 @@ export class ZonosTooltip {
|
|
|
7
7
|
this.showTooltip = false;
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
|
-
return (h(Host, { key: '
|
|
10
|
+
return (h(Host, { key: 'fa16c20a254958721bcc44dbe96f6588545e86f0', class: "zonos--elements" }, h("div", { key: '0e57607df02b12d5df9fb84b64c8345b40b2e823', class: "zonos--tooltip", onMouseEnter: () => (this.showTooltip = true), onMouseLeave: () => (this.showTooltip = false) }, h("slot", { key: '9faf457a730046b789a5b822fb6ab89d88970d59' }), h("div", { key: 'f85dbf49e172f9a1c1b57443b1ea22d819b4099c', class: classes([
|
|
11
11
|
this.showTooltip && 'zonos--show-tooltip',
|
|
12
12
|
'zonos--tooltip-content',
|
|
13
|
-
]) }, h("zonos-text", { key: '
|
|
13
|
+
]) }, h("zonos-text", { key: '6e90bfe3f346cbe5d49aab4e03c868b3138aeca7', size: "s", textColor: "gray-0", type: "boldLabel" }, this.label), h("zonos-text", { key: '1c10f75f13ae427737fcf4ece41b9f7ba13fb76d', size: "xs", textColor: "gray-0" }, this.subtitle)))));
|
|
14
14
|
}
|
|
15
15
|
static get is() { return "zonos-tooltip"; }
|
|
16
16
|
static get encapsulation() { return "shadow"; }
|
|
@@ -40,6 +40,8 @@ export class ZonosTooltip {
|
|
|
40
40
|
"tags": [],
|
|
41
41
|
"text": "The title of the tooltip"
|
|
42
42
|
},
|
|
43
|
+
"getter": false,
|
|
44
|
+
"setter": false,
|
|
43
45
|
"attribute": "label",
|
|
44
46
|
"reflect": false,
|
|
45
47
|
"defaultValue": "''"
|
|
@@ -58,6 +60,8 @@ export class ZonosTooltip {
|
|
|
58
60
|
"tags": [],
|
|
59
61
|
"text": "The subtitle of the tooltip"
|
|
60
62
|
},
|
|
63
|
+
"getter": false,
|
|
64
|
+
"setter": false,
|
|
61
65
|
"attribute": "subtitle",
|
|
62
66
|
"reflect": false,
|
|
63
67
|
"defaultValue": "''"
|
|
@@ -7,9 +7,9 @@ export class VStack {
|
|
|
7
7
|
this.spacing = 24;
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
|
-
return (h(Host, { key: '
|
|
10
|
+
return (h(Host, { key: '32154740511a038c4ca04ad55bc7d77d96496654', style: {
|
|
11
11
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
12
|
-
} }, h("div", { key: '
|
|
12
|
+
} }, h("div", { key: 'f80f8b0e51554a3db9efa960706ac9bb450155cb', class: classes(['vstack']), style: { 'grid-row-gap': `${this.spacing}px` } }, h("slot", { key: '711a207eb1b4c59672be4df8b19a3c7200d44f29' }))));
|
|
13
13
|
}
|
|
14
14
|
static get is() { return "zonos-v-stack"; }
|
|
15
15
|
static get encapsulation() { return "shadow"; }
|
|
@@ -48,6 +48,8 @@ export class VStack {
|
|
|
48
48
|
}],
|
|
49
49
|
"text": "The spacing between elements in the stack"
|
|
50
50
|
},
|
|
51
|
+
"getter": false,
|
|
52
|
+
"setter": false,
|
|
51
53
|
"attribute": "spacing",
|
|
52
54
|
"reflect": false,
|
|
53
55
|
"defaultValue": "24"
|
|
@@ -56,12 +56,12 @@ export class ZonosVirtualScroll {
|
|
|
56
56
|
} }, this.renderItem(i)));
|
|
57
57
|
accHeight += itemHeight;
|
|
58
58
|
}
|
|
59
|
-
return (h(Host, { key: '
|
|
59
|
+
return (h(Host, { key: '0f132a5b60586fb22d1d5536aa7abef6199e0748' }, h("div", { key: 'a947229cd3d53b79312855cf8ddf8c9985035e1e',
|
|
60
60
|
// to capture scroll action
|
|
61
61
|
class: "scroller", style: {
|
|
62
62
|
height: `${this.totalHeight}px`,
|
|
63
63
|
width: `${W}px`,
|
|
64
|
-
} }), h("div", { key: '
|
|
64
|
+
} }), h("div", { key: '63013fe7bc53d76152fda74e7b6ef054e7c3a9ef',
|
|
65
65
|
// to display items
|
|
66
66
|
class: "item-container", ref: el => (this.container = el), style: {
|
|
67
67
|
height: `${this.totalHeight}px`,
|
|
@@ -104,7 +104,9 @@ export class ZonosVirtualScroll {
|
|
|
104
104
|
"docs": {
|
|
105
105
|
"tags": [],
|
|
106
106
|
"text": "Render item"
|
|
107
|
-
}
|
|
107
|
+
},
|
|
108
|
+
"getter": false,
|
|
109
|
+
"setter": false
|
|
108
110
|
},
|
|
109
111
|
"itemWidth": {
|
|
110
112
|
"type": "number",
|
|
@@ -120,6 +122,8 @@ export class ZonosVirtualScroll {
|
|
|
120
122
|
"tags": [],
|
|
121
123
|
"text": "Width of each item"
|
|
122
124
|
},
|
|
125
|
+
"getter": false,
|
|
126
|
+
"setter": false,
|
|
123
127
|
"attribute": "item-width",
|
|
124
128
|
"reflect": false
|
|
125
129
|
},
|
|
@@ -137,6 +141,8 @@ export class ZonosVirtualScroll {
|
|
|
137
141
|
"tags": [],
|
|
138
142
|
"text": "Height that is used as a fallback if height is not provided"
|
|
139
143
|
},
|
|
144
|
+
"getter": false,
|
|
145
|
+
"setter": false,
|
|
140
146
|
"attribute": "fallback-item-height",
|
|
141
147
|
"reflect": false
|
|
142
148
|
},
|
|
@@ -153,7 +159,9 @@ export class ZonosVirtualScroll {
|
|
|
153
159
|
"docs": {
|
|
154
160
|
"tags": [],
|
|
155
161
|
"text": "Heights list of each item"
|
|
156
|
-
}
|
|
162
|
+
},
|
|
163
|
+
"getter": false,
|
|
164
|
+
"setter": false
|
|
157
165
|
}
|
|
158
166
|
};
|
|
159
167
|
}
|
|
@@ -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: '63b0c771133fd495f36e2c67601d64d6e56f5f2b' }, "Hello, World! I'm ", this.getText());
|
|
14
14
|
}
|
|
15
15
|
static get is() { return "zonos-component"; }
|
|
16
16
|
static get encapsulation() { return "shadow"; }
|
|
@@ -40,6 +40,8 @@ export class ZonosComponent {
|
|
|
40
40
|
"tags": [],
|
|
41
41
|
"text": "The first name"
|
|
42
42
|
},
|
|
43
|
+
"getter": false,
|
|
44
|
+
"setter": false,
|
|
43
45
|
"attribute": "first",
|
|
44
46
|
"reflect": false,
|
|
45
47
|
"defaultValue": "''"
|
|
@@ -58,6 +60,8 @@ export class ZonosComponent {
|
|
|
58
60
|
"tags": [],
|
|
59
61
|
"text": "The middle name"
|
|
60
62
|
},
|
|
63
|
+
"getter": false,
|
|
64
|
+
"setter": false,
|
|
61
65
|
"attribute": "middle",
|
|
62
66
|
"reflect": false,
|
|
63
67
|
"defaultValue": "''"
|
|
@@ -76,6 +80,8 @@ export class ZonosComponent {
|
|
|
76
80
|
"tags": [],
|
|
77
81
|
"text": "The last name"
|
|
78
82
|
},
|
|
83
|
+
"getter": false,
|
|
84
|
+
"setter": false,
|
|
79
85
|
"attribute": "last",
|
|
80
86
|
"reflect": false,
|
|
81
87
|
"defaultValue": "''"
|
|
@@ -423,6 +423,8 @@ export class ZonosHello {
|
|
|
423
423
|
}],
|
|
424
424
|
"text": "Force mobile styling instead of media query and use the passed location value"
|
|
425
425
|
},
|
|
426
|
+
"getter": false,
|
|
427
|
+
"setter": false,
|
|
426
428
|
"attribute": "mobile-location-override",
|
|
427
429
|
"reflect": false
|
|
428
430
|
},
|
|
@@ -443,6 +445,8 @@ export class ZonosHello {
|
|
|
443
445
|
}],
|
|
444
446
|
"text": "Force left animation instead of detecting which side has more space"
|
|
445
447
|
},
|
|
448
|
+
"getter": false,
|
|
449
|
+
"setter": false,
|
|
446
450
|
"attribute": "animate-from-left-override",
|
|
447
451
|
"reflect": false
|
|
448
452
|
},
|
|
@@ -469,7 +473,9 @@ export class ZonosHello {
|
|
|
469
473
|
"docs": {
|
|
470
474
|
"tags": [],
|
|
471
475
|
"text": "Override the appearance settings"
|
|
472
|
-
}
|
|
476
|
+
},
|
|
477
|
+
"getter": false,
|
|
478
|
+
"setter": false
|
|
473
479
|
}
|
|
474
480
|
};
|
|
475
481
|
}
|