@zonos/elements 1.3.4-alpha.1 → 1.3.4
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/{cart-cfa5d5fd.js → cart-f31374d4.js} +4 -4
- package/dist/cjs/{getBorderRadius-c3c63ee6.js → getBorderRadius-cd7ef574.js} +1 -1
- package/dist/cjs/{index-0dcccc22.js → index-3ead02fe.js} +56 -22
- package/dist/cjs/index.cjs.js +6 -6
- package/dist/cjs/{isDarkColor-fc8c294a.js → isDarkColor-5eda1323.js} +7 -3
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{localization-4746acf7.js → localization-d43e1540.js} +1 -1
- package/dist/cjs/{submitGtag-ca175427.js → submitGtag-42f29b3a.js} +2 -2
- package/dist/cjs/zonos-address_2.cjs.entry.js +12 -10
- package/dist/cjs/zonos-badge.cjs.entry.js +7 -6
- package/dist/cjs/zonos-banner.cjs.entry.js +4 -3
- package/dist/cjs/zonos-button_2.cjs.entry.js +11 -9
- package/dist/cjs/zonos-card_2.cjs.entry.js +10 -8
- package/dist/cjs/zonos-cart-items_10.cjs.entry.js +36 -26
- package/dist/cjs/zonos-checkout.cjs.entry.js +9 -8
- package/dist/cjs/zonos-component.cjs.entry.js +4 -3
- package/dist/cjs/zonos-controller.cjs.entry.js +9 -8
- package/dist/cjs/zonos-country-flag_4.cjs.entry.js +19 -15
- package/dist/cjs/zonos-elements.cjs.js +2 -2
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +7 -6
- package/dist/cjs/zonos-hello.cjs.entry.js +44 -27
- package/dist/cjs/zonos-icon.cjs.entry.js +4 -3
- package/dist/cjs/zonos-notification.cjs.entry.js +6 -5
- package/dist/cjs/zonos-payment.cjs.entry.js +9 -8
- package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +6 -5
- package/dist/cjs/zonos-text.cjs.entry.js +4 -3
- package/dist/cjs/{zonosStore-10d1d6ff.js → zonosStore-b88b5671.js} +571 -332
- package/dist/collection/collection-manifest.json +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-checkout-finish/zonos-checkout-finish.js +1 -1
- package/dist/collection/components/common/zonos-badge/zonos-badge.js +3 -3
- package/dist/collection/components/common/zonos-button/zonos-button.js +3 -3
- package/dist/collection/components/common/zonos-card/zonos-card.js +2 -2
- package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +2 -2
- package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +3 -3
- package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +2 -2
- package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +3 -3
- package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -2
- package/dist/collection/components/common/zonos-notification/zonos-notification.js +2 -2
- package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.js +1 -1
- 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-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -2
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +2 -2
- package/dist/collection/components/main/zonos-controller.js +1 -1
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +1 -1
- package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +1 -1
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
- package/dist/components/isDarkColor.js +7 -3
- package/dist/components/zonos-address2.js +3 -2
- package/dist/components/zonos-badge2.js +6 -5
- package/dist/components/zonos-banner2.js +3 -2
- package/dist/components/zonos-button2.js +6 -5
- package/dist/components/zonos-card2.js +5 -4
- package/dist/components/zonos-cart-items2.js +3 -2
- package/dist/components/zonos-cart-subtotal2.js +2 -1
- package/dist/components/zonos-checkout-finish2.js +3 -2
- package/dist/components/zonos-checkout-payment2.js +2 -1
- package/dist/components/zonos-checkout.js +2 -1
- package/dist/components/zonos-collapse2.js +5 -4
- package/dist/components/zonos-component.js +3 -2
- package/dist/components/zonos-controller.js +4 -3
- package/dist/components/zonos-country-flag2.js +3 -2
- package/dist/components/zonos-country-select2.js +6 -5
- package/dist/components/zonos-custom-message2.js +5 -4
- package/dist/components/zonos-customer-info2.js +2 -1
- package/dist/components/zonos-dialog2.js +6 -5
- package/dist/components/zonos-hello-dialog-footer2.js +4 -3
- package/dist/components/zonos-hello-dialog2.js +4 -3
- package/dist/components/zonos-hello.js +42 -25
- package/dist/components/zonos-icon2.js +3 -2
- package/dist/components/zonos-link-authentication2.js +3 -2
- package/dist/components/zonos-logo2.js +5 -4
- package/dist/components/zonos-notification2.js +5 -4
- package/dist/components/zonos-payment2.js +3 -2
- package/dist/components/zonos-review2.js +2 -1
- package/dist/components/zonos-shipping-rich-radio2.js +4 -3
- package/dist/components/zonos-shipping2.js +2 -1
- package/dist/components/zonos-spinner2.js +2 -1
- package/dist/components/zonos-text2.js +3 -2
- package/dist/components/zonos-v-stack2.js +5 -4
- package/dist/components/zonosStore.js +571 -331
- package/dist/esm/{cart-d81b92ea.js → cart-c9124cc3.js} +4 -4
- package/dist/esm/{getBorderRadius-77e97943.js → getBorderRadius-9e4cb3b1.js} +1 -1
- package/dist/esm/{index-36ff6342.js → index-81a199ef.js} +56 -22
- package/dist/esm/index.js +6 -6
- package/dist/esm/{isDarkColor-69090b29.js → isDarkColor-8696cb70.js} +7 -3
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{localization-0c5b29fd.js → localization-5d83fde2.js} +1 -1
- package/dist/esm/{submitGtag-8a0fbd41.js → submitGtag-a7d07aec.js} +2 -2
- package/dist/esm/zonos-address_2.entry.js +12 -10
- package/dist/esm/zonos-badge.entry.js +7 -6
- package/dist/esm/zonos-banner.entry.js +4 -3
- package/dist/esm/zonos-button_2.entry.js +11 -9
- package/dist/esm/zonos-card_2.entry.js +10 -8
- package/dist/esm/zonos-cart-items_10.entry.js +36 -26
- package/dist/esm/zonos-checkout.entry.js +9 -8
- package/dist/esm/zonos-component.entry.js +4 -3
- package/dist/esm/zonos-controller.entry.js +9 -8
- package/dist/esm/zonos-country-flag_4.entry.js +19 -15
- package/dist/esm/zonos-elements.js +3 -3
- package/dist/esm/zonos-hello-dialog.entry.js +7 -6
- package/dist/esm/zonos-hello.entry.js +44 -27
- package/dist/esm/zonos-icon.entry.js +4 -3
- package/dist/esm/zonos-notification.entry.js +6 -5
- package/dist/esm/zonos-payment.entry.js +9 -8
- package/dist/esm/zonos-shipping-rich-radio.entry.js +6 -5
- package/dist/esm/zonos-text.entry.js +4 -3
- package/dist/esm/{zonosStore-34f07ee8.js → zonosStore-e59617f8.js} +572 -332
- package/dist/esm-es5/{cart-d81b92ea.js → cart-c9124cc3.js} +1 -1
- package/dist/esm-es5/{getBorderRadius-77e97943.js → getBorderRadius-9e4cb3b1.js} +1 -1
- package/dist/esm-es5/index-81a199ef.js +2 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/isDarkColor-8696cb70.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{localization-0c5b29fd.js → localization-5d83fde2.js} +1 -1
- package/dist/esm-es5/{submitGtag-8a0fbd41.js → submitGtag-a7d07aec.js} +1 -1
- package/dist/esm-es5/zonos-address_2.entry.js +1 -1
- 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_2.entry.js +1 -1
- package/dist/esm-es5/zonos-card_2.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_10.entry.js +1 -1
- 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_4.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-icon.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-shipping-rich-radio.entry.js +1 -1
- package/dist/esm-es5/zonos-text.entry.js +1 -1
- package/dist/esm-es5/zonosStore-e59617f8.js +1 -0
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/scripts/zonosBase.js +1 -1
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/p-0024f8c2.js +1 -0
- package/dist/zonos-elements/p-027abb50.entry.js +1 -0
- package/dist/zonos-elements/{p-a54d8db3.system.js → p-12ecf765.system.js} +1 -1
- package/dist/zonos-elements/p-139fc767.entry.js +1 -0
- package/dist/zonos-elements/p-1c00ffea.system.entry.js +1 -0
- package/dist/zonos-elements/{p-c1e298d5.system.entry.js → p-21793192.entry.js} +1 -1
- package/dist/zonos-elements/p-26edde4d.system.entry.js +1 -0
- package/dist/zonos-elements/p-28d7b75d.entry.js +1 -0
- package/dist/zonos-elements/p-2ac66cea.system.entry.js +1 -0
- package/dist/zonos-elements/p-39d12bf0.entry.js +1 -0
- package/dist/zonos-elements/p-3d965e88.entry.js +1 -0
- package/dist/zonos-elements/p-410045c5.system.entry.js +1 -0
- package/dist/zonos-elements/{p-c0494ed6.entry.js → p-43220d68.entry.js} +1 -1
- package/dist/zonos-elements/p-4d39efb6.system.js +2 -0
- package/dist/zonos-elements/p-4d8545e1.js +2 -0
- package/dist/zonos-elements/{p-ed074fbf.system.js → p-51a40ddf.system.js} +1 -1
- package/dist/zonos-elements/{p-5bada106.system.entry.js → p-5a0264e8.system.entry.js} +1 -1
- package/dist/zonos-elements/p-5d91e45c.entry.js +1 -0
- package/dist/zonos-elements/p-62851827.system.entry.js +1 -0
- package/dist/zonos-elements/p-73174d0c.system.entry.js +1 -0
- package/dist/zonos-elements/p-741a1402.system.entry.js +1 -0
- package/dist/zonos-elements/p-7748735d.entry.js +1 -0
- package/dist/zonos-elements/p-7cae86a0.system.entry.js +1 -0
- package/dist/zonos-elements/p-7f68c103.system.js +1 -0
- package/dist/zonos-elements/p-83bb8727.system.entry.js +1 -0
- package/dist/zonos-elements/{p-a244579e.js → p-8ebc0b64.js} +1 -1
- package/dist/zonos-elements/p-97e659b7.entry.js +1 -0
- package/dist/zonos-elements/p-9f3cad08.entry.js +1 -0
- package/dist/zonos-elements/{p-ab179c88.system.js → p-a6f2e282.system.js} +1 -1
- package/dist/zonos-elements/p-afed9236.entry.js +1 -0
- package/dist/zonos-elements/{p-24fbe845.system.js → p-b035f9e5.system.js} +1 -1
- package/dist/zonos-elements/{p-3509ffaa.entry.js → p-b1ffb37b.entry.js} +1 -1
- package/dist/zonos-elements/{p-17ef815f.entry.js → p-b494d540.entry.js} +1 -1
- package/dist/zonos-elements/{p-06a332cd.js → p-b87fa3a1.js} +1 -1
- package/dist/zonos-elements/{p-ab00288a.entry.js → p-bd02a65c.entry.js} +1 -1
- package/dist/zonos-elements/p-be23cc91.system.entry.js +1 -0
- package/dist/zonos-elements/p-bea31a7b.system.entry.js +1 -0
- package/dist/zonos-elements/p-c134eecd.system.js +1 -0
- package/dist/zonos-elements/p-d170748c.system.entry.js +1 -0
- package/dist/zonos-elements/p-dc09ca69.system.js +1 -0
- package/dist/zonos-elements/{p-2b41549a.js → p-e59b6648.js} +1 -1
- package/dist/zonos-elements/p-e8da4463.js +1 -0
- package/dist/zonos-elements/{p-ccd1794a.system.entry.js → p-eb96f893.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-5066955b.system.js → p-ee8b44c0.system.js} +1 -1
- package/dist/zonos-elements/{p-935fa685.system.entry.js → p-efd1544b.system.entry.js} +1 -1
- package/dist/zonos-elements/p-f2733cc7.js +1 -0
- package/dist/zonos-elements/{p-e6556b0d.entry.js → p-f342e7c7.entry.js} +1 -1
- package/dist/zonos-elements/p-f7b1dfd0.system.entry.js +1 -0
- package/dist/zonos-elements/p-f82e000f.system.entry.js +1 -0
- package/dist/zonos-elements/p-ffc91e42.entry.js +1 -0
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/dist/zonos-elements/zonos-elements.js +1 -1
- package/package.json +29 -29
- package/dist/esm-es5/index-36ff6342.js +0 -2
- package/dist/esm-es5/isDarkColor-69090b29.js +0 -1
- package/dist/esm-es5/zonosStore-34f07ee8.js +0 -1
- package/dist/zonos-elements/p-02175f85.entry.js +0 -1
- package/dist/zonos-elements/p-124857ae.entry.js +0 -1
- package/dist/zonos-elements/p-18904b7c.system.js +0 -2
- package/dist/zonos-elements/p-1f494581.system.entry.js +0 -1
- package/dist/zonos-elements/p-2e1e9074.js +0 -1
- package/dist/zonos-elements/p-3c8763a7.entry.js +0 -1
- package/dist/zonos-elements/p-3e7444c6.entry.js +0 -1
- package/dist/zonos-elements/p-4b3baf99.js +0 -1
- package/dist/zonos-elements/p-53ea93c2.system.entry.js +0 -1
- package/dist/zonos-elements/p-67154df2.system.entry.js +0 -1
- package/dist/zonos-elements/p-684ed483.entry.js +0 -1
- package/dist/zonos-elements/p-72cfaee2.system.entry.js +0 -1
- package/dist/zonos-elements/p-7730250d.system.js +0 -1
- package/dist/zonos-elements/p-80748529.system.entry.js +0 -1
- package/dist/zonos-elements/p-86f22026.js +0 -1
- package/dist/zonos-elements/p-88600956.entry.js +0 -1
- package/dist/zonos-elements/p-8b1cb8a4.entry.js +0 -1
- package/dist/zonos-elements/p-8bd04aaa.entry.js +0 -1
- package/dist/zonos-elements/p-956efa27.js +0 -2
- package/dist/zonos-elements/p-9c1f19b6.entry.js +0 -1
- package/dist/zonos-elements/p-a063c4b7.entry.js +0 -1
- package/dist/zonos-elements/p-a174d834.system.js +0 -1
- package/dist/zonos-elements/p-b3a71ae4.system.entry.js +0 -1
- package/dist/zonos-elements/p-b3e034bb.system.entry.js +0 -1
- package/dist/zonos-elements/p-bb7de2c4.system.entry.js +0 -1
- package/dist/zonos-elements/p-c1665c4f.system.js +0 -1
- package/dist/zonos-elements/p-c520d819.system.entry.js +0 -1
- package/dist/zonos-elements/p-ca875e60.system.entry.js +0 -1
- package/dist/zonos-elements/p-e2c7adaa.system.entry.js +0 -1
- package/dist/zonos-elements/p-e3bca405.entry.js +0 -1
- package/dist/zonos-elements/p-e58cc024.entry.js +0 -1
- package/dist/zonos-elements/p-f1e9b431.system.entry.js +0 -1
- package/dist/zonos-elements/p-fbc09dae.system.entry.js +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const zonosStore = require('./zonosStore-
|
|
4
|
-
const localization = require('./localization-
|
|
5
|
-
const isDarkColor = require('./isDarkColor-
|
|
6
|
-
const getBorderRadius = require('./getBorderRadius-
|
|
3
|
+
const zonosStore = require('./zonosStore-b88b5671.js');
|
|
4
|
+
const localization = require('./localization-d43e1540.js');
|
|
5
|
+
const isDarkColor = require('./isDarkColor-5eda1323.js');
|
|
6
|
+
const getBorderRadius = require('./getBorderRadius-cd7ef574.js');
|
|
7
7
|
|
|
8
8
|
const prepCalculateLandedCost = () => {
|
|
9
9
|
// maybe we don't need email now for prefetch the landed cost
|
|
@@ -32,6 +32,7 @@ const NAMESPACE = 'zonos-elements';
|
|
|
32
32
|
*/
|
|
33
33
|
let scopeId;
|
|
34
34
|
let hostTagName;
|
|
35
|
+
let useNativeShadowDom = false;
|
|
35
36
|
let isSvgMode = false;
|
|
36
37
|
let renderingRef = null;
|
|
37
38
|
let queuePending = false;
|
|
@@ -981,8 +982,7 @@ const patch = (oldVNode, newVNode, isInitialRender = false) => {
|
|
|
981
982
|
isSvgMode = tag === 'svg' ? true : tag === 'foreignObject' ? false : isSvgMode;
|
|
982
983
|
}
|
|
983
984
|
{
|
|
984
|
-
if (tag === 'slot')
|
|
985
|
-
;
|
|
985
|
+
if (tag === 'slot' && !useNativeShadowDom) ;
|
|
986
986
|
else {
|
|
987
987
|
// either this is the first render of an element OR it's an update
|
|
988
988
|
// AND we already know it's possible it could have changed
|
|
@@ -1046,6 +1046,7 @@ const nullifyVNodeRefs = (vNode) => {
|
|
|
1046
1046
|
*/
|
|
1047
1047
|
const renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
1048
1048
|
const hostElm = hostRef.$hostElement$;
|
|
1049
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
1049
1050
|
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
1050
1051
|
// if `renderFnResults` is a Host node then we can use it directly. If not,
|
|
1051
1052
|
// we need to call `h` again to wrap the children of our component in a
|
|
@@ -1082,6 +1083,7 @@ const renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1082
1083
|
{
|
|
1083
1084
|
scopeId = hostElm['s-sc'];
|
|
1084
1085
|
}
|
|
1086
|
+
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) !== 0;
|
|
1085
1087
|
// synchronous patch
|
|
1086
1088
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
1087
1089
|
};
|
|
@@ -1797,25 +1799,29 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1797
1799
|
}
|
|
1798
1800
|
});
|
|
1799
1801
|
});
|
|
1800
|
-
//
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
//
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1802
|
+
// Only bother generating CSS if we have components
|
|
1803
|
+
// TODO(STENCIL-1118): Add test cases for CSS content based on conditionals
|
|
1804
|
+
if (cmpTags.length > 0) {
|
|
1805
|
+
// Add styles for `slot-fb` elements if any of our components are using slots outside the Shadow DOM
|
|
1806
|
+
if (hasSlotRelocation) {
|
|
1807
|
+
dataStyles.innerHTML += SLOT_FB_CSS;
|
|
1808
|
+
}
|
|
1809
|
+
// Add hydration styles
|
|
1810
|
+
{
|
|
1811
|
+
dataStyles.innerHTML += cmpTags + HYDRATED_CSS;
|
|
1812
|
+
}
|
|
1813
|
+
// If we have styles, add them to the DOM
|
|
1814
|
+
if (dataStyles.innerHTML.length) {
|
|
1815
|
+
dataStyles.setAttribute('data-styles', '');
|
|
1816
|
+
// Apply CSP nonce to the style tag if it exists
|
|
1817
|
+
const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
|
|
1818
|
+
if (nonce != null) {
|
|
1819
|
+
dataStyles.setAttribute('nonce', nonce);
|
|
1820
|
+
}
|
|
1821
|
+
// Insert the styles into the document head
|
|
1822
|
+
// NOTE: this _needs_ to happen last so we can ensure the nonce (and other attributes) are applied
|
|
1823
|
+
head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
|
|
1815
1824
|
}
|
|
1816
|
-
// Insert the styles into the document head
|
|
1817
|
-
// NOTE: this _needs_ to happen last so we can ensure the nonce (and other attributes) are applied
|
|
1818
|
-
head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
|
|
1819
1825
|
}
|
|
1820
1826
|
// Process deferred connectedCallbacks now all components have been registered
|
|
1821
1827
|
isBootstrapping = false;
|
|
@@ -1868,7 +1874,12 @@ const getHostListenerTarget = (elm, flags) => {
|
|
|
1868
1874
|
return elm;
|
|
1869
1875
|
};
|
|
1870
1876
|
// prettier-ignore
|
|
1871
|
-
const hostListenerOpts = (flags) =>
|
|
1877
|
+
const hostListenerOpts = (flags) => supportsListenerOptions
|
|
1878
|
+
? ({
|
|
1879
|
+
passive: (flags & 1 /* LISTENER_FLAGS.Passive */) !== 0,
|
|
1880
|
+
capture: (flags & 2 /* LISTENER_FLAGS.Capture */) !== 0,
|
|
1881
|
+
})
|
|
1882
|
+
: (flags & 2 /* LISTENER_FLAGS.Capture */) !== 0;
|
|
1872
1883
|
/**
|
|
1873
1884
|
* Assigns the given value to the nonce property on the runtime platform object.
|
|
1874
1885
|
* During runtime, this value is used to set the nonce attribute on all dynamically created script and style tags.
|
|
@@ -1879,8 +1890,19 @@ const setNonce = (nonce) => (plt.$nonce$ = nonce);
|
|
|
1879
1890
|
/**
|
|
1880
1891
|
* A WeakMap mapping runtime component references to their corresponding host reference
|
|
1881
1892
|
* instances.
|
|
1893
|
+
*
|
|
1894
|
+
* **Note**: If we're in an HMR context we need to store a reference to this
|
|
1895
|
+
* value on `window` in order to maintain the mapping of {@link d.RuntimeRef}
|
|
1896
|
+
* to {@link d.HostRef} across HMR updates.
|
|
1897
|
+
*
|
|
1898
|
+
* This is necessary because when HMR updates for a component are processed by
|
|
1899
|
+
* the browser-side dev server client the JS bundle for that component is
|
|
1900
|
+
* re-fetched. Since the module containing {@link hostRefs} is included in
|
|
1901
|
+
* that bundle, if we do not store a reference to it the new iteration of the
|
|
1902
|
+
* component will not have access to the previous hostRef map, leading to a
|
|
1903
|
+
* bug where the new version of the component cannot properly initialize.
|
|
1882
1904
|
*/
|
|
1883
|
-
const hostRefs =
|
|
1905
|
+
const hostRefs = new WeakMap();
|
|
1884
1906
|
/**
|
|
1885
1907
|
* Given a {@link d.RuntimeRef} retrieve the corresponding {@link d.HostRef}
|
|
1886
1908
|
*
|
|
@@ -1960,6 +1982,18 @@ const plt = {
|
|
|
1960
1982
|
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
|
1961
1983
|
ce: (eventName, opts) => new CustomEvent(eventName, opts),
|
|
1962
1984
|
};
|
|
1985
|
+
const supportsListenerOptions = /*@__PURE__*/ (() => {
|
|
1986
|
+
let supportsListenerOptions = false;
|
|
1987
|
+
try {
|
|
1988
|
+
doc.addEventListener('e', null, Object.defineProperty({}, 'passive', {
|
|
1989
|
+
get() {
|
|
1990
|
+
supportsListenerOptions = true;
|
|
1991
|
+
},
|
|
1992
|
+
}));
|
|
1993
|
+
}
|
|
1994
|
+
catch (e) { }
|
|
1995
|
+
return supportsListenerOptions;
|
|
1996
|
+
})();
|
|
1963
1997
|
const promiseResolve = (v) => Promise.resolve(v);
|
|
1964
1998
|
const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
|
|
1965
1999
|
try {
|
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const cart = require('./cart-
|
|
6
|
-
require('./zonosStore-
|
|
7
|
-
require('./index-
|
|
8
|
-
require('./localization-
|
|
9
|
-
require('./isDarkColor-
|
|
10
|
-
require('./getBorderRadius-
|
|
5
|
+
const cart = require('./cart-f31374d4.js');
|
|
6
|
+
require('./zonosStore-b88b5671.js');
|
|
7
|
+
require('./index-3ead02fe.js');
|
|
8
|
+
require('./localization-d43e1540.js');
|
|
9
|
+
require('./isDarkColor-5eda1323.js');
|
|
10
|
+
require('./getBorderRadius-cd7ef574.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const zonosStore = require('./zonosStore-
|
|
3
|
+
const zonosStore = require('./zonosStore-b88b5671.js');
|
|
4
4
|
|
|
5
|
-
var tinycolor =
|
|
5
|
+
var tinycolor$1 = {exports: {}};
|
|
6
|
+
|
|
7
|
+
(function (module, exports) {
|
|
6
8
|
// This file is autogenerated. It's used to publish CJS to npm.
|
|
7
9
|
(function (global, factory) {
|
|
8
10
|
module.exports = factory() ;
|
|
@@ -1188,7 +1190,9 @@ var tinycolor = zonosStore.createCommonjsModule(function (module, exports) {
|
|
|
1188
1190
|
return tinycolor;
|
|
1189
1191
|
|
|
1190
1192
|
}));
|
|
1191
|
-
});
|
|
1193
|
+
}(tinycolor$1));
|
|
1194
|
+
|
|
1195
|
+
const tinycolor = tinycolor$1.exports;
|
|
1192
1196
|
|
|
1193
1197
|
const isDarkColor = (color) => {
|
|
1194
1198
|
return tinycolor(color).isDark();
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-3ead02fe.js');
|
|
6
6
|
|
|
7
7
|
const defineCustomElements = (win, options) => {
|
|
8
8
|
if (typeof window === 'undefined') return undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const zonosStore = require('./zonosStore-
|
|
4
|
-
const localization = require('./localization-
|
|
3
|
+
const zonosStore = require('./zonosStore-b88b5671.js');
|
|
4
|
+
const localization = require('./localization-d43e1540.js');
|
|
5
5
|
|
|
6
6
|
const checkoutBreakpoint = 890;
|
|
7
7
|
const isCheckoutMobile = (isMobile) => {
|
|
@@ -2,14 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const cart = require('./cart-
|
|
7
|
-
const localization = require('./localization-
|
|
8
|
-
require('./zonosStore-
|
|
9
|
-
require('./isDarkColor-
|
|
10
|
-
require('./getBorderRadius-
|
|
5
|
+
const index = require('./index-3ead02fe.js');
|
|
6
|
+
const cart = require('./cart-f31374d4.js');
|
|
7
|
+
const localization = require('./localization-d43e1540.js');
|
|
8
|
+
require('./zonosStore-b88b5671.js');
|
|
9
|
+
require('./isDarkColor-5eda1323.js');
|
|
10
|
+
require('./getBorderRadius-cd7ef574.js');
|
|
11
11
|
|
|
12
12
|
const zonosAddressCss = ".sc-zonos-address-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-address-h *.sc-zonos-address{font-family:var(--font-family, Inter), Inter}.sc-zonos-address-h img.sc-zonos-address{max-width:100%}.sc-zonos-address-h dl.sc-zonos-address,.sc-zonos-address-h dd.sc-zonos-address,.sc-zonos-address-h h1.sc-zonos-address,.sc-zonos-address-h h2.sc-zonos-address,.sc-zonos-address-h h3.sc-zonos-address,.sc-zonos-address-h h4.sc-zonos-address,.sc-zonos-address-h h5.sc-zonos-address,.sc-zonos-address-h h6.sc-zonos-address,.sc-zonos-address-h hr.sc-zonos-address,.sc-zonos-address-h figure.sc-zonos-address,.sc-zonos-address-h p.sc-zonos-address,.sc-zonos-address-h pre.sc-zonos-address{margin:0}.sc-zonos-address-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-address-h .zonos--title.sc-zonos-address{margin-bottom:var(--amino-space-16)}";
|
|
13
|
+
const ZonosAddressStyle0 = zonosAddressCss;
|
|
13
14
|
|
|
14
15
|
const ZonosAddress = class {
|
|
15
16
|
constructor(hostRef) {
|
|
@@ -72,16 +73,17 @@ const ZonosAddress = class {
|
|
|
72
73
|
}
|
|
73
74
|
render() {
|
|
74
75
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
75
|
-
return (index.h(index.Host, { class: "zonos--address zonos--elements" }, index.h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, this.titleText), index.h("div", { class: "zonos--address-component" })));
|
|
76
|
+
return (index.h(index.Host, { key: '47fa225123b7c944732b018fbb374bcb6da0f4ca', class: "zonos--address zonos--elements" }, index.h("zonos-text", { key: '4d0d9d4f9c09d6b2f29bc6a44164a0ef8db0acc9', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), index.h("div", { key: 'd279ba97287890e489230f9e449a344db76556f2', class: "zonos--address-component" })));
|
|
76
77
|
}
|
|
77
78
|
get el() { return index.getElement(this); }
|
|
78
79
|
static get watchers() { return {
|
|
79
80
|
"stripe": ["watchInitStripe"]
|
|
80
81
|
}; }
|
|
81
82
|
};
|
|
82
|
-
ZonosAddress.style =
|
|
83
|
+
ZonosAddress.style = ZonosAddressStyle0;
|
|
83
84
|
|
|
84
85
|
const zonosLinkAuthenticationCss = ".sc-zonos-link-authentication-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-link-authentication-h *.sc-zonos-link-authentication{font-family:var(--font-family, Inter), Inter}.sc-zonos-link-authentication-h img.sc-zonos-link-authentication{max-width:100%}.sc-zonos-link-authentication-h dl.sc-zonos-link-authentication,.sc-zonos-link-authentication-h dd.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h1.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h2.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h3.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h4.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h5.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h6.sc-zonos-link-authentication,.sc-zonos-link-authentication-h hr.sc-zonos-link-authentication,.sc-zonos-link-authentication-h figure.sc-zonos-link-authentication,.sc-zonos-link-authentication-h p.sc-zonos-link-authentication,.sc-zonos-link-authentication-h pre.sc-zonos-link-authentication{margin:0}.sc-zonos-link-authentication-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-link-authentication-h .zonos--title.sc-zonos-link-authentication{margin-bottom:var(--amino-space-16)}";
|
|
86
|
+
const ZonosLinkAuthenticationStyle0 = zonosLinkAuthenticationCss;
|
|
85
87
|
|
|
86
88
|
const ZonosLinkAuthentication = class {
|
|
87
89
|
constructor(hostRef) {
|
|
@@ -116,14 +118,14 @@ const ZonosLinkAuthentication = class {
|
|
|
116
118
|
}
|
|
117
119
|
render() {
|
|
118
120
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
119
|
-
return (index.h(index.Host, { class: "zonos--link-authentication zonos--elements" }, index.h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, this.titleText), index.h("div", { class: "zonos--link-authentication-component" })));
|
|
121
|
+
return (index.h(index.Host, { key: '48ec92ca8a1500c3b8e85222c3df069c32074e72', class: "zonos--link-authentication zonos--elements" }, index.h("zonos-text", { key: '9060fab8ab9f88157ee6951af830e106e6ff9509', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), index.h("div", { key: 'dac7e96170d15faa8c1013fb298ae86e2ce99f0b', class: "zonos--link-authentication-component" })));
|
|
120
122
|
}
|
|
121
123
|
get el() { return index.getElement(this); }
|
|
122
124
|
static get watchers() { return {
|
|
123
125
|
"stripe": ["watchInitStripe"]
|
|
124
126
|
}; }
|
|
125
127
|
};
|
|
126
|
-
ZonosLinkAuthentication.style =
|
|
128
|
+
ZonosLinkAuthentication.style = ZonosLinkAuthenticationStyle0;
|
|
127
129
|
|
|
128
130
|
exports.zonos_address = ZonosAddress;
|
|
129
131
|
exports.zonos_link_authentication = ZonosLinkAuthentication;
|
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
5
|
+
const index = require('./index-3ead02fe.js');
|
|
6
|
+
const zonosStore = require('./zonosStore-b88b5671.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
8
|
|
|
9
9
|
const zonosBadgeCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-inline-flexbox;display:inline-flex}:host .zonos--badge-content{display:-ms-flexbox;display:flex;gap:var(--amino-space-8);font-size:var(--amino-font-size-s);padding:4px 8px;text-align:center;border-radius:var(--amino-radius-6);background-color:var(--amino-gray-100);color:var(--amino-gray-800);-ms-flex-align:center;align-items:center}:host p{font-weight:600;line-height:16px}:host .icon-right svg{-ms-flex-order:2;order:2}:host .small{padding:2px 8px}:host .rounded{border-radius:20px}:host .bold{background-color:var(--amino-gray-600);color:var(--amino-gray-100)}:host .blue{background-color:var(--amino-blue-100);color:var(--amino-blue-800)}:host .blue.bold{background-color:var(--amino-blue-600);color:var(--amino-blue-100)}:host .green{background-color:var(--amino-green-100);color:var(--amino-green-800)}:host .green.bold{background-color:var(--amino-green-600);color:var(--amino-green-100)}:host .red{background-color:var(--amino-red-100);color:var(--amino-red-800)}:host .red.bold{background-color:var(--amino-red-600);color:var(--amino-red-100)}:host .orange{background-color:var(--amino-orange-100);color:var(--amino-orange-800)}:host .orange.bold{background-color:var(--amino-orange-600);color:var(--amino-orange-100)}:host .purple{background-color:var(--amino-purple-100);color:var(--amino-purple-800)}:host .purple.bold{background-color:var(--amino-purple-600);color:var(--amino-purple-100)}:host .cyan{background-color:var(--amino-cyan-100);color:var(--amino-cyan-800)}:host .cyan.bold{background-color:var(--amino-cyan-600);color:var(--amino-cyan-100)}";
|
|
10
|
+
const ZonosBadgeStyle0 = zonosBadgeCss;
|
|
10
11
|
|
|
11
12
|
const ZonosBadge = class {
|
|
12
13
|
constructor(hostRef) {
|
|
@@ -20,18 +21,18 @@ const ZonosBadge = class {
|
|
|
20
21
|
this.class = '';
|
|
21
22
|
}
|
|
22
23
|
render() {
|
|
23
|
-
return (index.h(index.Host, { class: classes.classes(['zonos--elements zonos--badge', this.class]), style: {
|
|
24
|
+
return (index.h(index.Host, { key: '2d111e91f403ef5c03f742f5dabe9491623be91d', class: classes.classes(['zonos--elements zonos--badge', this.class]), style: {
|
|
24
25
|
'--font-family': zonosStore.zonosStoreFontFamily(),
|
|
25
|
-
} }, index.h("div", { class: classes.classes([
|
|
26
|
+
} }, index.h("div", { key: 'e6debe091b732b857f180cee19bec4be435ea524', class: classes.classes([
|
|
26
27
|
'zonos--badge-content',
|
|
27
28
|
this.color,
|
|
28
29
|
this.rounded && 'rounded',
|
|
29
30
|
this.iconRight && 'icon-right',
|
|
30
31
|
this.size,
|
|
31
32
|
this.bold && 'bold',
|
|
32
|
-
]) }, this.icon, index.h("zonos-text",
|
|
33
|
+
]) }, this.icon, index.h("zonos-text", { key: 'e92c97d77fa5ce279059953f7d7fbc5a0030aa5d' }, index.h("slot", { key: 'c93852c3225ba57dd26c26300254f348e349f9ad' })))));
|
|
33
34
|
}
|
|
34
35
|
};
|
|
35
|
-
ZonosBadge.style =
|
|
36
|
+
ZonosBadge.style = ZonosBadgeStyle0;
|
|
36
37
|
|
|
37
38
|
exports.zonos_badge = ZonosBadge;
|
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
5
|
+
const index = require('./index-3ead02fe.js');
|
|
6
|
+
const zonosStore = require('./zonosStore-b88b5671.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
8
|
|
|
9
9
|
const zonosBannerCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{border-radius:var(--amino-radius-10);padding:var(--amino-space-16);background:var(--amino-gray-100)}:host .zonos--container{display:grid;-ms-flex-align:center;align-items:center;grid-template-areas:\"icon header\" \". content\";grid-template-columns:32px auto 0}:host .zonos--icon-wrapper{grid-area:icon;display:-ms-flexbox;display:flex;justify-self:start}:host .zonos--header-wrapper{margin-top:var(--amino-space-0);grid-area:header}:host .zonos--content-wrapper{grid-area:content;margin-top:var(--amino-space-4)}:host(.info){background-color:var(--amino-blue-100);border:1px solid var(--amino-blue-200)}:host(.success){background-color:var(--amino-green-100);border:1px solid var(--amino-green-200)}:host(.error){background-color:var(--amino-red-100);border:1px solid var(--amino-red-200)}:host(.warning){background-color:var(--amino-orange-100);border:1px solid var(--amino-orange-200)}";
|
|
10
|
+
const ZonosBannerStyle0 = zonosBannerCss;
|
|
10
11
|
|
|
11
12
|
const ZonosBanner = class {
|
|
12
13
|
constructor(hostRef) {
|
|
@@ -73,6 +74,6 @@ const ZonosBanner = class {
|
|
|
73
74
|
}
|
|
74
75
|
}
|
|
75
76
|
};
|
|
76
|
-
ZonosBanner.style =
|
|
77
|
+
ZonosBanner.style = ZonosBannerStyle0;
|
|
77
78
|
|
|
78
79
|
exports.zonos_banner = ZonosBanner;
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
5
|
+
const index = require('./index-3ead02fe.js');
|
|
6
|
+
const zonosStore = require('./zonosStore-b88b5671.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
|
-
const getBorderRadius = require('./getBorderRadius-
|
|
8
|
+
const getBorderRadius = require('./getBorderRadius-cd7ef574.js');
|
|
9
9
|
const isColorVariable = require('./isColorVariable-41cacd82.js');
|
|
10
|
-
const isDarkColor = require('./isDarkColor-
|
|
10
|
+
const isDarkColor = require('./isDarkColor-5eda1323.js');
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Get theme for button text based on background color
|
|
@@ -24,6 +24,7 @@ const getButtonTheme = (overrideBackground) => {
|
|
|
24
24
|
};
|
|
25
25
|
|
|
26
26
|
const zonosButtonCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-inline-flexbox;display:inline-flex}:host .zonos--spinner-wrapper{position:absolute;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;background-color:var(--amino-surface-color);-ms-flex-pack:center;justify-content:center;border-radius:var(--amino-radius-10);gap:var(--amino-space-8)}:host button{width:100%;position:relative;font-size:14px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background-color:var(--amino-surface-color);border:none;outline:1px solid var(--amino-surface-color);border-radius:var(--border-radius, var(--amino-radius-10));-webkit-transition:var(--amino-transition);transition:var(--amino-transition);font-weight:500;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-family:var(--font-family, Inter), Inter;letter-spacing:normal;cursor:pointer;white-space:nowrap;padding:var(--amino-space-8) var(--amino-space-24);color:var(--color, var(--amino-gray-1200));}:host button.sm.no-background,:host button.md.no-background,:host button.lg.no-background{background:none;outline:none}:host button.sm.no-padding-left,:host button.md.no-padding-left,:host button.lg.no-padding-left{padding-left:0}:host button.sm.no-padding-right,:host button.md.no-padding-right,:host button.lg.no-padding-right{padding-right:0}:host button[disabled]{cursor:not-allowed;background-color:var(--amino-gray-200)}:host button[disabled] .zonos--spinner-wrapper{background-color:var(--amino-gray-200)}:host button:active{-webkit-transform:scale(0.99);transform:scale(0.99)}:host button.sm{height:var(--amino-size-sm);line-height:var(--amino-size-sm);padding:var(--amino-space-4) var(--amino-space-8)}:host button.sm:not(.has-content).has-icon{padding:0 var(--amino-space-4)}:host button.md{height:var(--amino-size-md);line-height:var(--amino-size-md);padding:var(--amino-space-8) var(--amino-space-16)}:host button.md:not(.has-content).has-icon{padding:0 var(--amino-space-8)}:host button.lg{height:var(--amino-size-lg);line-height:var(--amino-size-lg);padding:var(--amino-space-12) var(--amino-space-24)}:host button.lg:not(.has-content).has-icon{padding:0 var(--amino-space-16)}:host button:not(.only-icon).has-icon{gap:var(--amino-space-8)}:host button.override-background{background-color:var(--background-color, var(--amino-gray-0));color:var(--color, var(--amino-gray-1200));outline:1px solid var(--background-color, var(--amino-gray-0))}:host button.override-background:disabled{opacity:0.8}:host button.override-background:not(:disabled):hover{opacity:0.9}:host button:not(.override-background){}:host button:not(.override-background).primary{background:var(--amino-blue-600);outline:1px solid var(--amino-blue-600);color:var(--amino-gray-0)}:host button:not(.override-background).primary:not([disabled]):hover{background-image:var(--amino-button-primary-hover)}:host button:not(.override-background).primary:not([disabled]):active{background:var(--amino-blue-700)}:host button:not(.override-background).primary:not([disabled]):focus{-webkit-box-shadow:var(--amino-focus-button);box-shadow:var(--amino-focus-button)}:host button:not(.override-background).primary[disabled]{background:var(--amino-blue-400)}:host button:not(.override-background).primary[disabled] .zonos--spinner-wrapper{background-color:var(--amino-blue-400)}:host button:not(.override-background).primary .zonos--spinner-wrapper{background-color:var(--amino-blue-600)}:host button:not(.override-background).success{background:var(--amino-green-600);outline:1px solid var(--amino-green-600);color:var(--amino-gray-0)}:host button:not(.override-background).success:not([disabled]):hover{background-image:var(--amino-button-success-hover)}:host button:not(.override-background).success:not([disabled]):active{background:var(--amino-green-700)}:host button:not(.override-background).success:not([disabled]):focus{-webkit-box-shadow:var(--amino-focus-button);box-shadow:var(--amino-focus-button)}:host button:not(.override-background).success[disabled]{background:var(--amino-green-400)}:host button:not(.override-background).success[disabled] .zonos--spinner-wrapper{background-color:var(--amino-green-400)}:host button:not(.override-background).danger{background:var(--amino-red-600);outline:1px solid var(--amino-red-600);color:var(--amino-gray-0)}:host button:not(.override-background).danger:not([disabled]):hover{background-image:var(--amino-button-danger-hover)}:host button:not(.override-background).danger:not([disabled]):active{background:var(--amino-red-700)}:host button:not(.override-background).danger:not([disabled]):focus{-webkit-box-shadow:var(--amino-focus-button);box-shadow:var(--amino-focus-button)}:host button:not(.override-background).danger[disabled]{background:var(--amino-red-400)}:host button:not(.override-background).danger[disabled] .zonos--spinner-wrapper{background-color:var(--amino-red-400)}:host button:not(.override-background).warning{background:var(--amino-orange-600);outline:1px solid var(--amino-orange-600);color:var(--amino-gray-0)}:host button:not(.override-background).warning:not([disabled]):hover{background-image:var(--amino-button-warning-hover)}:host button:not(.override-background).warning:not([disabled]):active{background:var(--amino-orange-700)}:host button:not(.override-background).warning:not([disabled]):focus{-webkit-box-shadow:var(--amino-focus-button);box-shadow:var(--amino-focus-button)}:host button:not(.override-background).warning[disabled]{background:var(--amino-orange-400)}:host button:not(.override-background).warning[disabled] .zonos--spinner-wrapper{background-color:var(--amino-orange-400)}:host button:not(.override-background).subtle{background:transparent;color:var(--color)}:host button:not(.override-background).subtle:not([disabled]):hover{background:var(--amino-gray-100)}:host button:not(.override-background).subtle:not([disabled]):active{background:var(--amino-gray-200)}:host button:not(.override-background).subtle:focus{-webkit-box-shadow:var(--amino-button-focus-ring);box-shadow:var(--amino-button-focus-ring)}:host button:not(.override-background).subtle[disabled] .content{opacity:0.6}:host button:not(.override-background).subtle[disabled] .zonos--spinner-wrapper{background-color:var(--amino-gray-0)}:host button:not(.override-background).outline{background:transparent;outline:1px solid var(--amino-gray-700)}:host button:not(.override-background).outline:not([disabled]):hover{background-color:var(--amino-gray-100)}:host button:not(.override-background).outline:not([disabled]):active{background:var(--amino-gray-200)}";
|
|
27
|
+
const ZonosButtonStyle0 = zonosButtonCss;
|
|
27
28
|
|
|
28
29
|
const ZonosButton = class {
|
|
29
30
|
constructor(hostRef) {
|
|
@@ -78,12 +79,12 @@ const ZonosButton = class {
|
|
|
78
79
|
? getButtonTheme(overrideBackground)
|
|
79
80
|
: undefined;
|
|
80
81
|
const borderStyle = getBorderRadius.getBorderRadius(this.borderStyle);
|
|
81
|
-
return (index.h(index.Host, { class: classes.classes(['zonos--elements', this.class]), "data-theme": this.theme || buttonTheme, disabled: disabled, style: {
|
|
82
|
+
return (index.h(index.Host, { key: 'af41b1035e5ea776d47580647a65997bb41730e3', class: classes.classes(['zonos--elements', this.class]), "data-theme": this.theme || buttonTheme, disabled: disabled, style: {
|
|
82
83
|
'--background-color': overrideBackground,
|
|
83
84
|
'--border-radius': borderStyle,
|
|
84
85
|
'--color': color,
|
|
85
86
|
'--font-family': zonosStore.zonosStoreFontFamily(),
|
|
86
|
-
} }, index.h("button", { class: classes.classes([
|
|
87
|
+
} }, index.h("button", { key: 'af3fdc9aa0440cf5a7e49c4c0c76826d7a700d32', class: classes.classes([
|
|
87
88
|
this.hasIcon && 'has-icon',
|
|
88
89
|
this.hasContent && 'has-content',
|
|
89
90
|
this.noBackground && 'no-background',
|
|
@@ -96,15 +97,16 @@ const ZonosButton = class {
|
|
|
96
97
|
this.backgroundColor &&
|
|
97
98
|
this.variant === 'standard' &&
|
|
98
99
|
'override-background',
|
|
99
|
-
]), disabled: disabled }, this.loading && (index.h("div", { class: "zonos--spinner-wrapper" }, index.h("zonos-spinner", { size: 16 }))), !this.loading && !this.iconRight && this.icon, index.h("slot", { onSlotchange: this.handleSlotChange }), !this.loading && this.iconRight && this.icon)));
|
|
100
|
+
]), disabled: disabled }, this.loading && (index.h("div", { class: "zonos--spinner-wrapper" }, index.h("zonos-spinner", { size: 16 }))), !this.loading && !this.iconRight && this.icon, index.h("slot", { key: '32b6a079ba98ab9d62b5df34ddc15e4ac7a87a8e', onSlotchange: this.handleSlotChange }), !this.loading && this.iconRight && this.icon)));
|
|
100
101
|
}
|
|
101
102
|
static get watchers() { return {
|
|
102
103
|
"icon": ["iconChangeHandler"]
|
|
103
104
|
}; }
|
|
104
105
|
};
|
|
105
|
-
ZonosButton.style =
|
|
106
|
+
ZonosButton.style = ZonosButtonStyle0;
|
|
106
107
|
|
|
107
108
|
const zonosSpinnerCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{position:relative;overflow:hidden;width:var(--size);height:var(--size);display:-ms-inline-flexbox;display:inline-flex}:host svg{width:var(--size);height:var(--size);stroke:var(--amino-blue-600);-webkit-animation:rotate 2s linear infinite;animation:rotate 2s linear infinite}:host circle.track{stroke:var(--amino-gray-200)}:host.black{stroke:var(--amino-spinner-stroke-black)}:host.black circle.track{stroke:var(--amino-spinner-track-black)}:host.white{stroke:var(--amino-spinner-stroke-white)}:host.white circle.track{stroke:var(--amino-spinner-track-white)}:host.info{stroke:var(--amino-blue-600)}:host.info circle.track{stroke:var(--amino-blue-100)}:host.success{stroke:var(--amino-green-600)}:host.success circle.track{stroke:var(--amino-green-100)}:host.danger{stroke:var(--amino-red-600)}:host.danger circle.track{stroke:var(--amino-red-100)}:host.warning{stroke:var(--amino-orange-600)}:host.warning circle.track{stroke:var(--amino-orange-100)}@-webkit-keyframes rotate{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotate{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes dash{0%{stroke-dasharray:1, 150;stroke-dashoffset:0}50%{stroke-dasharray:90, 150;stroke-dashoffset:-35}100%{stroke-dasharray:90, 150;stroke-dashoffset:-124}}@keyframes dash{0%{stroke-dasharray:1, 150;stroke-dashoffset:0}50%{stroke-dasharray:90, 150;stroke-dashoffset:-35}100%{stroke-dasharray:90, 150;stroke-dashoffset:-124}}:host circle:not(.track){stroke-linecap:round;-webkit-animation:dash 1.5s ease-in-out infinite;animation:dash 1.5s ease-in-out infinite}";
|
|
109
|
+
const ZonosSpinnerStyle0 = zonosSpinnerCss;
|
|
108
110
|
|
|
109
111
|
const ZonosSpinner = class {
|
|
110
112
|
constructor(hostRef) {
|
|
@@ -122,7 +124,7 @@ const ZonosSpinner = class {
|
|
|
122
124
|
}
|
|
123
125
|
get el() { return index.getElement(this); }
|
|
124
126
|
};
|
|
125
|
-
ZonosSpinner.style =
|
|
127
|
+
ZonosSpinner.style = ZonosSpinnerStyle0;
|
|
126
128
|
|
|
127
129
|
exports.zonos_button = ZonosButton;
|
|
128
130
|
exports.zonos_spinner = ZonosSpinner;
|
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
5
|
+
const index = require('./index-3ead02fe.js');
|
|
6
|
+
const zonosStore = require('./zonosStore-b88b5671.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
8
|
|
|
9
9
|
const zonosCardCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .styled-card{border:var(--amino-border);border-radius:var(--amino-radius-6);padding:var(--spacing, var(--amino-space-24));text-align:left}:host .styled-card hr{margin-left:calc(var(--spacing, var(--amino-space-24)) * -1);margin-right:calc(var(--spacing, var(--amino-space-24)) * -1)}:host .styled-card .card-header{margin:calc(var(--spacing, var(--amino-space-24)) * -1);padding:var(--spacing, var(--amino-space-24));display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-bottom:var(--spacing, var(--amino-space-24));border-bottom:var(--amino-border);height:65px;line-height:65px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host .styled-card .card-header h5{margin-bottom:0;-ms-flex:1;flex:1}:host .styled-card .card-footer{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:calc(var(--spacing, var(--amino-space-24)) * -1);padding:var(--spacing, var(--amino-space-24));border-top:var(--amino-border);background:var(--amino-surface-color-secondary);margin-top:var(--spacing, var(--amino-space-24));border-bottom-left-radius:var(--amino-radius-8);border-bottom-right-radius:var(--amino-radius-8);height:var(--footerHeight)}";
|
|
10
|
+
const ZonosCardStyle0 = zonosCardCss;
|
|
10
11
|
|
|
11
12
|
const ZonosCard = class {
|
|
12
13
|
constructor(hostRef) {
|
|
@@ -20,17 +21,18 @@ const ZonosCard = class {
|
|
|
20
21
|
this.spacing = '24px';
|
|
21
22
|
}
|
|
22
23
|
render() {
|
|
23
|
-
return (index.h(index.Host, { style: {
|
|
24
|
+
return (index.h(index.Host, { key: 'f2f7929742862b9806ddc568155e7cddf954252e', style: {
|
|
24
25
|
'--font-family': zonosStore.zonosStoreFontFamily(),
|
|
25
|
-
} }, index.h("div", { class: classes.classes(['styled-card', this.class]), style: { padding: this.spacing } }, this.label && (index.h("header", { class: "card-header", style: { padding: this.spacing } }, index.h("zonos-text", { type: "subheader" }, this.label), index.h("h-stack", { spacing: 8 }, this.actions))), index.h("slot",
|
|
26
|
+
} }, index.h("div", { key: 'ce3568d7ded3cfb9acb0f4ff3d4184a17b88f33b', class: classes.classes(['styled-card', this.class]), style: { padding: this.spacing } }, this.label && (index.h("header", { class: "card-header", style: { padding: this.spacing } }, index.h("zonos-text", { type: "subheader" }, this.label), index.h("h-stack", { spacing: 8 }, this.actions))), index.h("slot", { key: '3cc9f896df1899da73eab80dfbb3aac3a0046956' }), (this.footerActions || this.footerContent) && (index.h("footer", { class: "card-footer", style: {
|
|
26
27
|
height: this.footerHeight ? `${this.footerHeight}px` : 'auto',
|
|
27
28
|
padding: this.spacing,
|
|
28
29
|
} }, index.h("div", null, this.footerContent), index.h("h-stack", { spacing: 8 }, this.footerActions))))));
|
|
29
30
|
}
|
|
30
31
|
};
|
|
31
|
-
ZonosCard.style =
|
|
32
|
+
ZonosCard.style = ZonosCardStyle0;
|
|
32
33
|
|
|
33
34
|
const zonosVStackCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .vstack{display:grid;grid-auto-columns:minmax(0, 1fr);grid-row-gap:var(--spacing, 24px);grid-auto-flow:row}";
|
|
35
|
+
const ZonosVStackStyle0 = zonosVStackCss;
|
|
34
36
|
|
|
35
37
|
const VStack = class {
|
|
36
38
|
constructor(hostRef) {
|
|
@@ -39,12 +41,12 @@ const VStack = class {
|
|
|
39
41
|
this.class = '';
|
|
40
42
|
}
|
|
41
43
|
render() {
|
|
42
|
-
return (index.h(index.Host, { style: {
|
|
44
|
+
return (index.h(index.Host, { key: 'd363ffeb2bbae49e7318b26ab56b4b8871844daf', style: {
|
|
43
45
|
'--font-family': zonosStore.zonosStoreFontFamily(),
|
|
44
|
-
} }, index.h("div", { class: classes.classes(['vstack', this.class]), style: { 'grid-row-gap': `${this.spacing}px` } }, index.h("slot",
|
|
46
|
+
} }, index.h("div", { key: '5d9fa5ae9ffca787ca42f38e4ec75fedc24823f9', class: classes.classes(['vstack', this.class]), style: { 'grid-row-gap': `${this.spacing}px` } }, index.h("slot", { key: 'e1d6fef3378b92c18c2c43ec8616e8c733a4290c' }))));
|
|
45
47
|
}
|
|
46
48
|
};
|
|
47
|
-
VStack.style =
|
|
49
|
+
VStack.style = ZonosVStackStyle0;
|
|
48
50
|
|
|
49
51
|
exports.zonos_card = ZonosCard;
|
|
50
52
|
exports.zonos_v_stack = VStack;
|