@saasquatch/mint-components 2.1.9-12 → 2.1.9-13
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/sqm-big-stat_46.cjs.entry.js +26 -16
- package/dist/cjs/sqm-email-verification_2.cjs.entry.js +3 -5
- package/dist/cjs/{sqm-partner-info-modal-view-7bcb2262.js → sqm-partner-info-modal-view-2d6e89a4.js} +21 -18
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +1 -1
- package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal-view.js +21 -18
- package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal.js +1 -4
- package/dist/collection/components/sqm-partner-info-modal/usePartnerInfoModal.js +1 -0
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +11 -11
- package/dist/esm/sqm-big-stat_46.entry.js +22 -12
- package/dist/esm/sqm-email-verification_2.entry.js +3 -5
- package/dist/esm/{sqm-partner-info-modal-view-dd777f00.js → sqm-partner-info-modal-view-f85b5a08.js} +21 -18
- package/dist/esm/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_46.entry.js +1 -1
- package/dist/esm-es5/sqm-email-verification_2.entry.js +1 -1
- package/dist/esm-es5/sqm-partner-info-modal-view-f85b5a08.js +1 -0
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/p-05fb44b6.system.entry.js +1 -0
- package/dist/mint-components/p-1c413a06.system.js +1 -1
- package/dist/mint-components/{p-aabc6b28.entry.js → p-44071410.entry.js} +9 -8
- package/dist/mint-components/{p-e7c3d207.entry.js → p-526332c3.entry.js} +15 -15
- package/dist/mint-components/p-5a71d63c.js +1 -0
- package/dist/mint-components/{p-50cdc2d0.system.entry.js → p-65e4ba6f.system.entry.js} +1 -1
- package/dist/mint-components/p-67792584.system.js +1 -0
- package/dist/mint-components/p-bb86bb46.system.entry.js +1 -0
- package/dist/mint-components/{p-52e702ad.entry.js → p-d111584d.entry.js} +1 -1
- package/docs/docs.docx +0 -0
- package/package.json +1 -1
- package/dist/cjs/parseStates-d1effc19.js +0 -16
- package/dist/esm/parseStates-ed75e224.js +0 -14
- package/dist/esm-es5/parseStates-ed75e224.js +0 -1
- package/dist/esm-es5/sqm-partner-info-modal-view-dd777f00.js +0 -1
- package/dist/mint-components/p-0581c425.system.entry.js +0 -1
- package/dist/mint-components/p-0a769ba3.system.entry.js +0 -1
- package/dist/mint-components/p-115dfc03.system.js +0 -1
- package/dist/mint-components/p-13f3a647.js +0 -1
- package/dist/mint-components/p-71d00dcf.js +0 -1
- package/dist/mint-components/p-f10e42e8.system.js +0 -1
package/dist/esm/{sqm-partner-info-modal-view-dd777f00.js → sqm-partner-info-modal-view-f85b5a08.js}
RENAMED
|
@@ -6,11 +6,6 @@ const style = {
|
|
|
6
6
|
"&::part(panel)": {
|
|
7
7
|
maxWidth: "480px",
|
|
8
8
|
},
|
|
9
|
-
"&::part(title)": {
|
|
10
|
-
fontSize: "var(--sl-font-size-x-large)",
|
|
11
|
-
fontWeight: "600",
|
|
12
|
-
padding: "var(--sl-spacing-x-large) var(--sl-spacing-x-large) 0 var(--sl-spacing-x-large)",
|
|
13
|
-
},
|
|
14
9
|
"&::part(body)": {
|
|
15
10
|
padding: "0 var(--sl-spacing-x-large)",
|
|
16
11
|
fontSize: "var(--sl-font-size-small)",
|
|
@@ -19,14 +14,17 @@ const style = {
|
|
|
19
14
|
"&::part(footer)": {
|
|
20
15
|
display: "flex",
|
|
21
16
|
flexDirection: "column",
|
|
22
|
-
|
|
17
|
+
padding: "0 var(--sl-spacing-large) var(--sl-spacing-large) var(--sl-spacing-large)",
|
|
23
18
|
},
|
|
24
19
|
"&::part(overlay)": {
|
|
25
20
|
background: "rgba(0, 0, 0, 0.5)",
|
|
26
21
|
},
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
22
|
+
},
|
|
23
|
+
DialogTitle: {
|
|
24
|
+
fontSize: "var(--sl-font-size-x-large)",
|
|
25
|
+
fontWeight: "600",
|
|
26
|
+
padding: "var(--sl-spacing-x-large) 0 0 0",
|
|
27
|
+
margin: "0",
|
|
30
28
|
},
|
|
31
29
|
FormFields: {
|
|
32
30
|
display: "flex",
|
|
@@ -53,22 +51,24 @@ const style = {
|
|
|
53
51
|
display: "flex",
|
|
54
52
|
flexDirection: "column",
|
|
55
53
|
gap: "var(--sl-spacing-medium)",
|
|
56
|
-
|
|
54
|
+
margin: "0",
|
|
57
55
|
"& > p": {
|
|
58
56
|
margin: "0",
|
|
59
57
|
},
|
|
60
58
|
},
|
|
59
|
+
SubmitButton: {
|
|
60
|
+
width: "100%",
|
|
61
|
+
marginTop: "var(--sl-spacing-small)",
|
|
62
|
+
},
|
|
61
63
|
};
|
|
62
64
|
function PartnerInfoModalContentView(props) {
|
|
63
65
|
var _a, _b;
|
|
64
66
|
const { states, callbacks, text } = props;
|
|
65
67
|
const sheet = createStyleSheet(style);
|
|
66
68
|
const styleString = sheet.toString();
|
|
67
|
-
const description = states.isExistingPartner ? (h("
|
|
69
|
+
const description = states.isExistingPartner ? (h("span", { class: sheet.classes.DescriptionContainer },
|
|
68
70
|
h("p", null, text.descriptionExistingPartner),
|
|
69
|
-
h("p", null, text.supportDescriptionExistingPartner))) : (h("p",
|
|
70
|
-
" ",
|
|
71
|
-
text.descriptionNewPartner));
|
|
71
|
+
h("p", null, text.supportDescriptionExistingPartner))) : (h("p", { class: sheet.classes.DescriptionContainer }, text.descriptionNewPartner));
|
|
72
72
|
const buttonLabel = states.isExistingPartner
|
|
73
73
|
? text.confirmButtonLabel
|
|
74
74
|
: text.submitButtonLabel;
|
|
@@ -76,17 +76,17 @@ function PartnerInfoModalContentView(props) {
|
|
|
76
76
|
h("style", { type: "text/css" }, styleString),
|
|
77
77
|
description,
|
|
78
78
|
h("div", { class: sheet.classes.FormFields },
|
|
79
|
-
h("sl-select", { key: `country-${states.countryCode}`, exportparts: "label: input-label, base: input-base", label: text.countryLabel, value: states.countryCode, disabled: states.submitting || !!states.isExistingPartner, required: true, "onSl-select": callbacks.onCountryChange },
|
|
79
|
+
h("sl-select", { key: `country-${states.countryCode}`, exportparts: "label: input-label, base: input-base", label: text.countryLabel, value: states.countryCode, disabled: states.submitting || !!states.isExistingPartner, required: true, hoist: true, "onSl-select": callbacks.onCountryChange },
|
|
80
80
|
h("sl-input", { class: sheet.classes.SearchInput, placeholder: text.searchCountryPlaceholder, onKeyDown: (e) => e.stopPropagation(), "onSl-input": (e) => {
|
|
81
81
|
var _a;
|
|
82
82
|
callbacks.setCountrySearch((_a = e.target) === null || _a === void 0 ? void 0 : _a.value);
|
|
83
83
|
} }), (_a = states.filteredCountries) === null || _a === void 0 ? void 0 :
|
|
84
84
|
_a.map((c) => (h("sl-menu-item", { value: c.countryCode }, c.displayName)))),
|
|
85
|
-
h("sl-select", { key: `currency-${states.currency}`, exportparts: "label: input-label, base: input-base", label: text.currencyLabel, value: states.currency, disabled: states.submitting || !!states.isExistingPartner, required: true, "onSl-select": callbacks.onCurrencyChange },
|
|
85
|
+
h("sl-select", { key: `currency-${states.currency}`, exportparts: "label: input-label, base: input-base", label: text.currencyLabel, value: states.currency, disabled: states.submitting || !!states.isExistingPartner, required: true, hoist: true, "onSl-select": callbacks.onCurrencyChange },
|
|
86
86
|
h("sl-input", { class: sheet.classes.SearchInput, placeholder: text.searchCurrencyPlaceholder, onKeyDown: (e) => e.stopPropagation(), "onSl-input": (e) => { var _a; return callbacks.setCurrencySearch((_a = e.target) === null || _a === void 0 ? void 0 : _a.value); } }), (_b = states.filteredCurrencies) === null || _b === void 0 ? void 0 :
|
|
87
87
|
_b.map((c) => (h("sl-menu-item", { value: c.currencyCode }, c.currencyCode))))),
|
|
88
88
|
states.error && h("p", { class: sheet.classes.ErrorMessage }, states.error),
|
|
89
|
-
h("sl-button", { slot: "footer", type: "primary", loading: states.submitting, disabled: states.submitting || !states.countryCode || !states.currency, onClick: callbacks.onSubmit,
|
|
89
|
+
h("sl-button", { slot: "footer", type: "primary", loading: states.submitting, disabled: states.submitting || !states.countryCode || !states.currency, onClick: callbacks.onSubmit, class: sheet.classes.SubmitButton, exportparts: "base: primarybutton-base" }, buttonLabel),
|
|
90
90
|
];
|
|
91
91
|
}
|
|
92
92
|
function PartnerInfoModalView(props) {
|
|
@@ -95,7 +95,7 @@ function PartnerInfoModalView(props) {
|
|
|
95
95
|
console.log(states, "partner info modal states"); // TEMP
|
|
96
96
|
if (!states.open)
|
|
97
97
|
return h("div", null);
|
|
98
|
-
return (h("sl-dialog", { class: sheet.classes.Dialog, open: states.open, noHeader:
|
|
98
|
+
return (h("sl-dialog", { class: sheet.classes.Dialog, open: states.open, noHeader: true, label: states.isExistingPartner
|
|
99
99
|
? text.modalHeaderExistingPartner
|
|
100
100
|
: text.modalHeader, "onSl-request-close": (e) => {
|
|
101
101
|
e.preventDefault();
|
|
@@ -105,6 +105,9 @@ function PartnerInfoModalView(props) {
|
|
|
105
105
|
e.preventDefault();
|
|
106
106
|
}
|
|
107
107
|
} },
|
|
108
|
+
h("h2", { class: sheet.classes.DialogTitle }, states.isExistingPartner
|
|
109
|
+
? text.modalHeaderExistingPartner
|
|
110
|
+
: text.modalHeader),
|
|
108
111
|
h(PartnerInfoModalContentView, Object.assign({}, props))));
|
|
109
112
|
}
|
|
110
113
|
|
|
@@ -34,7 +34,7 @@ import { P as PortalContainerView, a as PortalSectionView } from './sqm-portal-c
|
|
|
34
34
|
import { I as InvoiceTableView, a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, O as OtherRegionSlotView, U as UserInfoFormView$1 } from './sqm-user-info-form-view-f9026468.js';
|
|
35
35
|
import { t as taxTypeToName, L as LoadingView } from './data-2b0feb3f.js';
|
|
36
36
|
import { L as LeadInputFieldView } from './sqm-lead-input-field-view-11a4f9a9.js';
|
|
37
|
-
import { P as PartnerInfoModalView } from './sqm-partner-info-modal-view-
|
|
37
|
+
import { P as PartnerInfoModalView } from './sqm-partner-info-modal-view-f85b5a08.js';
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
40
|
* lodash (Custom Build) <https://lodash.com/>
|