@saasquatch/mint-components 1.13.2 → 1.13.3
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/{ShadowViewAddon-cf0ee0a0.js → ShadowViewAddon-14a02da4.js} +133 -98
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/{sqm-big-stat_39.cjs.entry.js → sqm-big-stat_41.cjs.entry.js} +220 -2
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +1 -1
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +1 -1
- package/dist/cjs/sqm-portal-google-registration-form.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-registration-form-view-ebf355a6.js → sqm-portal-registration-form-view-637a4bf4.js} +1 -0
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +2 -1
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +1 -1
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +1 -1
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +469 -381
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/sqm-checkbox-field/CheckboxField.stories.js +1 -1
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field-view.js +6 -15
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +5 -5
- package/dist/collection/components/sqm-marketing-emails-checkbox/MarketingEmailsCheckbox.stories.js +11 -0
- package/dist/collection/components/sqm-marketing-emails-checkbox/sqm-marketing-emails-checkbox.js +129 -0
- package/dist/collection/components/sqm-portal-change-marketing/ChangeMarketing.stories.js +54 -0
- package/dist/collection/components/sqm-portal-change-marketing/sqm-portal-change-marketing-view.js +47 -0
- package/dist/collection/components/sqm-portal-change-marketing/sqm-portal-change-marketing.js +217 -0
- package/dist/collection/components/sqm-portal-change-marketing/usePortalChangeMarketing.js +115 -0
- package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification.js +3 -3
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password.js +3 -3
- package/dist/collection/components/sqm-portal-google-registration-form/sqm-portal-google-registration-form.js +2 -2
- package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +3 -3
- package/dist/collection/components/sqm-portal-registration-form/PortalRegistrationForm.stories.js +4 -0
- package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form-view.js +1 -0
- package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form.js +3 -2
- package/dist/collection/components/sqm-portal-reset-password/sqm-portal-reset-password.js +3 -3
- package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email.js +3 -3
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +6 -0
- package/dist/esm/{ShadowViewAddon-fd07e6e1.js → ShadowViewAddon-23a6afab.js} +133 -99
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/{sqm-big-stat_39.entry.js → sqm-big-stat_41.entry.js} +219 -3
- package/dist/esm/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm/sqm-portal-google-registration-form.entry.js +1 -1
- package/dist/esm/{sqm-portal-registration-form-view-32c4b488.js → sqm-portal-registration-form-view-3c1f6000.js} +1 -0
- package/dist/esm/sqm-portal-registration-form.entry.js +2 -1
- package/dist/esm/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm/sqm-stencilbook.entry.js +469 -381
- package/dist/esm-es5/ShadowViewAddon-23a6afab.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/sqm-big-stat_41.entry.js +1 -0
- package/dist/esm-es5/sqm-portal-google-registration-form.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-registration-form-view-32c4b488.js → sqm-portal-registration-form-view-3c1f6000.js} +1 -1
- package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
- 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-01010af0.entry.js +258 -0
- package/dist/mint-components/{p-079405ff.entry.js → p-0d2d0b6d.entry.js} +1 -1
- package/dist/mint-components/p-33ed6f1c.system.entry.js +1 -0
- package/dist/mint-components/p-37996351.system.js +1 -1
- package/dist/mint-components/p-38b5f028.system.entry.js +1 -0
- package/dist/mint-components/p-7e7cbccf.system.js +1 -0
- package/dist/mint-components/{p-e6045498.entry.js → p-7f80a9d7.entry.js} +1 -1
- package/dist/mint-components/{p-793d2130.js → p-91ab3da1.js} +1 -1
- package/dist/mint-components/{p-51d3cde7.system.entry.js → p-9386ad84.system.entry.js} +1 -1
- package/dist/mint-components/{p-54adee71.system.entry.js → p-9bfd9bed.system.entry.js} +1 -1
- package/dist/mint-components/p-d3d74266.js +394 -0
- package/dist/mint-components/{p-bb0f585c.system.js → p-e5d0375e.system.js} +1 -1
- package/dist/mint-components/p-f2cc6a6f.entry.js +9 -0
- package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field-view.d.ts +1 -1
- package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field.d.ts +4 -4
- package/dist/types/components/sqm-marketing-emails-checkbox/MarketingEmailsCheckbox.stories.d.ts +8 -0
- package/dist/types/components/sqm-marketing-emails-checkbox/sqm-marketing-emails-checkbox.d.ts +27 -0
- package/dist/types/components/sqm-portal-change-marketing/ChangeMarketing.stories.d.ts +8 -0
- package/dist/types/components/sqm-portal-change-marketing/sqm-portal-change-marketing-view.d.ts +28 -0
- package/dist/types/components/sqm-portal-change-marketing/sqm-portal-change-marketing.d.ts +39 -0
- package/dist/types/components/sqm-portal-change-marketing/usePortalChangeMarketing.d.ts +3 -0
- package/dist/types/components/sqm-portal-email-verification/sqm-portal-email-verification.d.ts +1 -1
- package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password.d.ts +1 -1
- package/dist/types/components/sqm-portal-login/sqm-portal-login.d.ts +1 -1
- package/dist/types/components/sqm-portal-registration-form/PortalRegistrationForm.stories.d.ts +1 -0
- package/dist/types/components/sqm-portal-registration-form/sqm-portal-registration-form-view.d.ts +1 -0
- package/dist/types/components/sqm-portal-registration-form/sqm-portal-registration-form.d.ts +1 -1
- package/dist/types/components/sqm-portal-reset-password/sqm-portal-reset-password.d.ts +1 -1
- package/dist/types/components/sqm-portal-verify-email/sqm-portal-verify-email.d.ts +1 -1
- package/dist/types/components.d.ts +130 -13
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/ShadowViewAddon-fd07e6e1.js +0 -1
- package/dist/esm-es5/sqm-big-stat_39.entry.js +0 -1
- package/dist/mint-components/p-57e2c2fa.system.js +0 -1
- package/dist/mint-components/p-87d385d8.entry.js +0 -241
- package/dist/mint-components/p-abedbbf3.system.entry.js +0 -1
- package/dist/mint-components/p-bc83460e.system.entry.js +0 -1
- package/dist/mint-components/p-d12fc50f.js +0 -394
- package/dist/mint-components/p-da932ca2.entry.js +0 -9
- package/dist/types/global/android.d.ts +0 -7
- package/dist/types/global/demo.d.ts +0 -2
- package/dist/types/stories/features.d.ts +0 -4
- package/dist/types/stories/templates.d.ts +0 -4
|
@@ -1662,6 +1662,109 @@ function PortalRegisterView(props) {
|
|
|
1662
1662
|
}
|
|
1663
1663
|
|
|
1664
1664
|
const style$4 = {
|
|
1665
|
+
ErrorStyle: {
|
|
1666
|
+
"&::part(control)": {
|
|
1667
|
+
background: "var(--sl-color-danger-10)",
|
|
1668
|
+
borderColor: "var(--sl-color-danger-500)",
|
|
1669
|
+
outline: "var(--sl-color-danger-500)",
|
|
1670
|
+
},
|
|
1671
|
+
"&:host": {
|
|
1672
|
+
"--focus-ring": "0 0 0 var(--sl-focus-ring-width) red !important",
|
|
1673
|
+
},
|
|
1674
|
+
},
|
|
1675
|
+
ErrorMessageStyle: {
|
|
1676
|
+
margin: 0,
|
|
1677
|
+
marginTop: "5px",
|
|
1678
|
+
color: "var(--sl-color-danger-500)",
|
|
1679
|
+
fontSize: "var(--sl-input-help-text-font-size-medium)",
|
|
1680
|
+
fontFamily: "var(--sl-font-sans)",
|
|
1681
|
+
fontWeight: "var(--sl-font-weight-normal)",
|
|
1682
|
+
},
|
|
1683
|
+
FieldContainer: {
|
|
1684
|
+
"margin-bottom": "var(--sl-spacing-large)",
|
|
1685
|
+
},
|
|
1686
|
+
};
|
|
1687
|
+
const vanillaStyle$2 = `
|
|
1688
|
+
:host {
|
|
1689
|
+
margin: 0 auto;
|
|
1690
|
+
width: 100%;
|
|
1691
|
+
display: block;
|
|
1692
|
+
}
|
|
1693
|
+
sl-checkbox::part(label){
|
|
1694
|
+
font-size: var(--sl-input-label-font-size-small);
|
|
1695
|
+
font-weight: var(--sl-font-weight-normal);
|
|
1696
|
+
line-height: 20px;
|
|
1697
|
+
}
|
|
1698
|
+
sl-checkbox::part(base){
|
|
1699
|
+
align-items: start;
|
|
1700
|
+
}
|
|
1701
|
+
`;
|
|
1702
|
+
JSS.jss.setup(JSS.create());
|
|
1703
|
+
const sheet$4 = JSS.jss.createStyleSheet(style$4);
|
|
1704
|
+
const styleString$4 = sheet$4.toString();
|
|
1705
|
+
function CheckboxFieldView(props) {
|
|
1706
|
+
var _b, _c;
|
|
1707
|
+
const { states, content, callbacks } = props;
|
|
1708
|
+
return (index.h("div", { class: sheet$4.classes.FieldContainer, part: "sqm-base" },
|
|
1709
|
+
index.h("style", { type: "text/css" },
|
|
1710
|
+
vanillaStyle$2,
|
|
1711
|
+
styleString$4),
|
|
1712
|
+
index.h("sl-checkbox", Object.assign({ exportparts: "label: input-label, base: input-base", name: `/${content.checkboxName}`, checked: states.checked, "onSl-change": (e) => {
|
|
1713
|
+
e.target.value = e.target.checked;
|
|
1714
|
+
callbacks.setChecked(e.target.value);
|
|
1715
|
+
} }, (!content.checkboxOptional ? { required: false } : []), { disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled), required: false }), global.intl.formatMessage({
|
|
1716
|
+
id: content.checkboxName + "-message",
|
|
1717
|
+
defaultMessage: content.checkboxLabel,
|
|
1718
|
+
}, {
|
|
1719
|
+
labelLink: (index.h("a", { href: content.checkboxLabelLink, target: "_blank" }, content.checkboxLabelLinkText || content.checkboxLabelLink)),
|
|
1720
|
+
}))));
|
|
1721
|
+
}
|
|
1722
|
+
|
|
1723
|
+
function ChangeMarktingView(props) {
|
|
1724
|
+
const { states, callbacks } = props;
|
|
1725
|
+
const { text, formState } = states;
|
|
1726
|
+
const { error } = formState;
|
|
1727
|
+
const style = {
|
|
1728
|
+
Container: {
|
|
1729
|
+
display: "flex",
|
|
1730
|
+
flexDirection: "column",
|
|
1731
|
+
gap: "var(--sl-spacing-x-small)",
|
|
1732
|
+
padding: "0 var(--sl-spacing-xxx-large) var(--sl-spacing-xxx-large)",
|
|
1733
|
+
},
|
|
1734
|
+
SubmitButton: { marginBottom: "var(--sl-spacing-medium)" },
|
|
1735
|
+
Error: {
|
|
1736
|
+
"&::part(erroralert-base)": {
|
|
1737
|
+
"margin-bottom": "15px",
|
|
1738
|
+
},
|
|
1739
|
+
},
|
|
1740
|
+
Success: {
|
|
1741
|
+
"&::part(successalert-base)": {
|
|
1742
|
+
"margin-bottom": "15px",
|
|
1743
|
+
},
|
|
1744
|
+
},
|
|
1745
|
+
};
|
|
1746
|
+
const sheet = JSS.createStyleSheet(style);
|
|
1747
|
+
const styleString = sheet.toString();
|
|
1748
|
+
return (index.h("div", { class: sheet.classes.Container, part: "sqm-base" },
|
|
1749
|
+
index.h("style", { type: "text/css" }, styleString),
|
|
1750
|
+
index.h(sqmTextSpanView.TextSpanView, Object.assign({}, { type: "h2" }), text.emailPreferencesHeader),
|
|
1751
|
+
index.h("sl-form", { "onSl-submit": callbacks.onSubmit },
|
|
1752
|
+
index.h(CheckboxFieldView, { states: {
|
|
1753
|
+
checked: states.formState.marketingEmailOptIn,
|
|
1754
|
+
}, content: {
|
|
1755
|
+
checkboxLabel: text.marketingCheckboxLabel,
|
|
1756
|
+
checkboxName: "marketingEmailOptIn",
|
|
1757
|
+
}, callbacks: {
|
|
1758
|
+
setChecked: callbacks.setChecked,
|
|
1759
|
+
} }),
|
|
1760
|
+
index.h("sl-button", { class: sheet.classes.SubmitButton, type: "primary", submit: true, loading: states.loading, disabled: states.submitDisabled }, text.submitChangeButtonText),
|
|
1761
|
+
error && (index.h("sqm-form-message", { class: sheet.classes.Error, type: "error", exportparts: "erroralert-icon" },
|
|
1762
|
+
index.h("div", { part: "erroralert-text" }, error))),
|
|
1763
|
+
states.success && (index.h("sqm-form-message", { class: sheet.classes.Success, type: "success", exportparts: "successalert-icon" },
|
|
1764
|
+
index.h("div", { part: "successalert-text" }, states.text.successMessage))))));
|
|
1765
|
+
}
|
|
1766
|
+
|
|
1767
|
+
const style$5 = {
|
|
1665
1768
|
Description: {
|
|
1666
1769
|
"& input[type=checkbox]": {
|
|
1667
1770
|
display: "none",
|
|
@@ -1700,13 +1803,13 @@ const style$4 = {
|
|
|
1700
1803
|
},
|
|
1701
1804
|
},
|
|
1702
1805
|
};
|
|
1703
|
-
const sheet$
|
|
1704
|
-
const styleString$
|
|
1806
|
+
const sheet$5 = JSS.createStyleSheet(style$5);
|
|
1807
|
+
const styleString$5 = sheet$5.toString();
|
|
1705
1808
|
function Details(props) {
|
|
1706
1809
|
const rid = Math.random().toString(36).slice(2);
|
|
1707
1810
|
return (index.h("div", { style: { opacity: props.opacity } },
|
|
1708
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
1709
|
-
index.h("span", { class: sheet$
|
|
1811
|
+
index.h("style", { type: "text/css" }, styleString$5),
|
|
1812
|
+
index.h("span", { class: sheet$5.classes.Description },
|
|
1710
1813
|
index.h("input", { type: "checkbox", id: "details-" + rid }),
|
|
1711
1814
|
index.h("label", { class: "details", htmlFor: "details-" + rid },
|
|
1712
1815
|
index.h("sl-icon", { exportparts: "base: chevron-icon", name: "chevron-down" })),
|
|
@@ -1728,7 +1831,7 @@ const GreyGift = () => {
|
|
|
1728
1831
|
index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M14 2.70949C14 3.59565 12.6694 4.93746 12 5H9V16H7.00179V5H4.58792C3.21247 4.70182 2 3.64537 2 2.52072C2 1.42474 2.47603 0.556701 3.34184 0.182041C4.16921 -0.175986 5.12452 0.0203328 5.87976 0.544666C6.80676 1.18825 7.32679 2.3963 7.79856 3.49226C7.83996 3.58845 7.88099 3.68378 7.9219 3.77778C7.96173 3.68865 8.00186 3.59793 8.0425 3.50608C8.50995 2.44948 9.04359 1.24325 9.9404 0.59563C10.7332 0.0231438 11.741 -0.193157 12.6121 0.198945C13.5129 0.604397 14 1.53453 14 2.70949ZM10.6123 1.5C11.0928 1.15305 11.668 1.09012 12.1597 1.5C12.5879 1.85694 12.6108 2.02497 12.6658 2.42926L12.6755 2.5C12.6755 3.09851 12.1597 4 11.6439 4C11.2785 4 10.9914 3.99691 10.7224 3.99402C10.2319 3.98875 9.80131 3.98412 9.06496 4C9.20533 3.72786 9.31743 3.46669 9.42434 3.21761C9.71026 2.55143 9.95907 1.97176 10.6123 1.5ZM4.93861 1.5C4.70607 1.33855 4.17281 1.4106 3.95166 1.5063C3.76894 1.58537 3.49602 1.82658 3.49602 2.52072C3.49602 3.19524 4.58792 3.77778 4.58792 3.77778C4.58792 3.77778 5.45441 4 7.00179 4C6.47506 2.69451 5.7289 2.04867 4.93861 1.5Z", fill: "#828282" })));
|
|
1729
1832
|
};
|
|
1730
1833
|
|
|
1731
|
-
const style$
|
|
1834
|
+
const style$6 = {
|
|
1732
1835
|
ProgressBar: {
|
|
1733
1836
|
"& .progress-bar": {
|
|
1734
1837
|
height: "0",
|
|
@@ -1840,14 +1943,14 @@ const style$5 = {
|
|
|
1840
1943
|
},
|
|
1841
1944
|
},
|
|
1842
1945
|
};
|
|
1843
|
-
const sheet$
|
|
1844
|
-
const styleString$
|
|
1946
|
+
const sheet$6 = JSS.createStyleSheet(style$6, { classNamePrefix: "sqm-prog-bar" });
|
|
1947
|
+
const styleString$6 = sheet$6.toString();
|
|
1845
1948
|
function ProgressBarView(props) {
|
|
1846
1949
|
const { progress = 0, goal = 1, steps = false, progressBarUnit = "", repeatable = false, complete = false, expired = false, finite = 0, opacity = "1", } = props;
|
|
1847
1950
|
let aggregate = buildProgressBar(repeatable, steps, props);
|
|
1848
1951
|
const { columns, items } = aggregate;
|
|
1849
|
-
return (index.h("div", { class: sheet$
|
|
1850
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
1952
|
+
return (index.h("div", { class: sheet$6.classes.ProgressBar, "data-expired": expired, "data-complete": complete, "data-steps": steps, "data-done": goal <= progress, style: { opacity: opacity } },
|
|
1953
|
+
index.h("style", { type: "text/css" }, styleString$6),
|
|
1851
1954
|
index.h("div", { class: (!Boolean(finite) && progress >= 2 * goal) ||
|
|
1852
1955
|
(Boolean(finite) && progress > 2 * goal)
|
|
1853
1956
|
? "progress-bar repeatable-steps"
|
|
@@ -2138,7 +2241,7 @@ const arrow_left_right = () => {
|
|
|
2138
2241
|
index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M10.265 2.789a.346.346 0 000-.489L8.066.101a.346.346 0 10-.489.489l1.61 1.609H2.073a.691.691 0 00-.69.691v1.728a.346.346 0 00.69 0V2.89h7.114L7.577 4.5a.346.346 0 10.49.488l2.198-2.2zM.101 9.21a.346.346 0 000 .489l2.2 2.199a.346.346 0 00.488-.489l-1.61-1.609h7.114c.382 0 .691-.31.691-.691V7.382a.346.346 0 00-.691 0V9.11H1.18L2.789 7.5a.346.346 0 10-.489-.488l-2.199 2.2z", fill: "currentColor" })));
|
|
2139
2242
|
};
|
|
2140
2243
|
|
|
2141
|
-
const style$
|
|
2244
|
+
const style$7 = {
|
|
2142
2245
|
TaskCard: {
|
|
2143
2246
|
display: "inline-block",
|
|
2144
2247
|
width: "100%",
|
|
@@ -2292,8 +2395,8 @@ const style$6 = {
|
|
|
2292
2395
|
},
|
|
2293
2396
|
},
|
|
2294
2397
|
};
|
|
2295
|
-
const sheet$
|
|
2296
|
-
const styleString$
|
|
2398
|
+
const sheet$7 = JSS.createStyleSheet(style$7);
|
|
2399
|
+
const styleString$7 = sheet$7.toString();
|
|
2297
2400
|
function TaskCardView(props) {
|
|
2298
2401
|
var _a, _b;
|
|
2299
2402
|
const { callbacks, states, content } = props;
|
|
@@ -2329,11 +2432,11 @@ function TaskCardView(props) {
|
|
|
2329
2432
|
}
|
|
2330
2433
|
|
|
2331
2434
|
`;
|
|
2332
|
-
return (index.h("div", { class: sheet$
|
|
2435
|
+
return (index.h("div", { class: sheet$7.classes.TaskCard, part: "sqm-base" },
|
|
2333
2436
|
index.h("style", { type: "text/css" },
|
|
2334
|
-
styleString$
|
|
2437
|
+
styleString$7,
|
|
2335
2438
|
vanillaStyle),
|
|
2336
|
-
!states.loading && taskNotStarted && (index.h("div", { class: sheet$
|
|
2439
|
+
!states.loading && taskNotStarted && (index.h("div", { class: sheet$7.classes.NotStarted },
|
|
2337
2440
|
index.h("span", { class: "icon" },
|
|
2338
2441
|
index.h("sl-icon", { name: "info-circle-fill" })),
|
|
2339
2442
|
global.intl.formatMessage({
|
|
@@ -2344,7 +2447,7 @@ function TaskCardView(props) {
|
|
|
2344
2447
|
.setLocale(utils.luxonLocale(states.locale))
|
|
2345
2448
|
.toLocaleString(luxon.luxon.DateTime.DATETIME_MED),
|
|
2346
2449
|
}))),
|
|
2347
|
-
!states.loading && taskEnded && (index.h("div", { class: sheet$
|
|
2450
|
+
!states.loading && taskEnded && (index.h("div", { class: sheet$7.classes.Ended },
|
|
2348
2451
|
index.h("span", { class: "icon" },
|
|
2349
2452
|
index.h("sl-icon", { exportparts: "base: task-card-icon", name: "exclamation-triangle-fill" })),
|
|
2350
2453
|
global.intl.formatMessage({
|
|
@@ -2364,7 +2467,7 @@ function TaskCardView(props) {
|
|
|
2364
2467
|
? "main complete"
|
|
2365
2468
|
: "main" },
|
|
2366
2469
|
index.h("div", { class: "container", part: "sqm-card-container", "data-subdue": taskComplete || taskUnavailable },
|
|
2367
|
-
index.h("div", { class: sheet$
|
|
2470
|
+
index.h("div", { class: sheet$7.classes.Header, style: { opacity: taskComplete || taskUnavailable ? "0.45" : "1" } }, states.loading ? (index.h("sl-skeleton", { style: { width: "22%", margin: "0" } })) : (index.h("div", null,
|
|
2368
2471
|
showComplete && (index.h("span", { class: taskUnavailable ? "icon neutral" : "icon" }, taskComplete ? checkmark_filled$1 : checkmark_circle$1)),
|
|
2369
2472
|
index.h("span", { part: "sqm-value", class: "value" }, content.rewardAmount),
|
|
2370
2473
|
index.h("span", { part: "sqm-unit", class: "text" }, content.rewardUnit)))),
|
|
@@ -2380,7 +2483,7 @@ function TaskCardView(props) {
|
|
|
2380
2483
|
} }, content.cardTitle)),
|
|
2381
2484
|
states.loading ? (index.h("sl-skeleton", { style: { margin: "var(--sl-spacing-medium) 0" } })) : (content.description && (index.h(Details, Object.assign({}, props, { opacity: taskComplete || taskUnavailable ? "0.45" : "1" })))),
|
|
2382
2485
|
content.showProgressBar && states.loading ? (index.h("sl-skeleton", { style: { margin: "var(--sl-spacing-medium) 0" } })) : (content.showProgressBar && (index.h(ProgressBarView, Object.assign({}, props.content, props.states, { opacity: taskComplete || taskUnavailable ? "0.45" : "1", complete: taskComplete, expired: taskUnavailable })))),
|
|
2383
|
-
index.h("div", { class: sheet$
|
|
2486
|
+
index.h("div", { class: sheet$7.classes.Footer, "data-subdue": taskComplete || taskUnavailable }, states.loading ? (index.h("sl-skeleton", { style: { width: "25%", marginLeft: "auto" } })) : (index.h("div", { style: { display: "contents" } },
|
|
2384
2487
|
index.h("span", { class: "text" },
|
|
2385
2488
|
content.repeatable && (index.h("div", null,
|
|
2386
2489
|
index.h("span", { class: repetitions > 0
|
|
@@ -2451,7 +2554,7 @@ function PoweredByImg({ color = "#A6A6A6", width = 120, height = 16, }) {
|
|
|
2451
2554
|
index.h("path", { d: "M1661.53 157.54H1589.77C1590.42 169.37 1593.54 178.535 1599.13 185.035C1604.85 191.535 1612.65 194.785 1622.53 194.785C1628.51 194.785 1633.97 193.485 1638.91 190.885C1643.98 188.285 1647.95 184.645 1650.81 179.965L1657.24 186.4C1653.34 192.12 1648.4 196.475 1642.42 199.465C1636.57 202.455 1629.94 203.95 1622.53 203.95C1609.01 203.95 1598.35 199.465 1590.55 190.495C1582.88 181.525 1579.05 169.175 1579.05 153.445C1579.05 137.585 1582.82 125.17 1590.36 116.2C1597.9 107.1 1608.23 102.55 1621.36 102.55C1633.84 102.55 1643.66 106.84 1650.81 115.42C1657.96 124 1661.53 135.895 1661.53 151.105V157.54ZM1651.39 147.4C1651.39 136.48 1648.66 127.77 1643.2 121.27C1637.74 114.77 1630.46 111.52 1621.36 111.52C1611.74 111.52 1604.2 114.77 1598.74 121.27C1593.28 127.77 1590.29 137.065 1589.77 149.155H1651.39V147.4Z", fill: color })));
|
|
2452
2555
|
}
|
|
2453
2556
|
|
|
2454
|
-
const vanillaStyle$
|
|
2557
|
+
const vanillaStyle$3 = `
|
|
2455
2558
|
:host{
|
|
2456
2559
|
margin: 0 auto;
|
|
2457
2560
|
width: 100%;
|
|
@@ -2507,7 +2610,7 @@ function PortalFooterView(props) {
|
|
|
2507
2610
|
const styleString = sheet.toString();
|
|
2508
2611
|
return (index.h("div", { class: sheet.classes.Container, part: "sqm-base" },
|
|
2509
2612
|
index.h("style", { type: "text/css" },
|
|
2510
|
-
vanillaStyle$
|
|
2613
|
+
vanillaStyle$3,
|
|
2511
2614
|
styleString),
|
|
2512
2615
|
index.h("div", { class: sheet.classes.RowContainer },
|
|
2513
2616
|
props.faqLink && (index.h("a", { target: "_blank", href: props.faqLink }, props.faqText)),
|
|
@@ -2679,7 +2782,7 @@ function ReferralIframeView(props) {
|
|
|
2679
2782
|
index.h("iframe", { class: sheet.classes.IFrame, src: `${content.iframeSrc}?rsCode=${data.shareCode}` })));
|
|
2680
2783
|
}
|
|
2681
2784
|
|
|
2682
|
-
const style$
|
|
2785
|
+
const style$8 = {
|
|
2683
2786
|
ErrorStyle: mixins.ErrorStyles,
|
|
2684
2787
|
FieldsContainer: {
|
|
2685
2788
|
"& sl-input": {
|
|
@@ -2687,7 +2790,7 @@ const style$7 = {
|
|
|
2687
2790
|
},
|
|
2688
2791
|
},
|
|
2689
2792
|
};
|
|
2690
|
-
const vanillaStyle$
|
|
2793
|
+
const vanillaStyle$4 = `
|
|
2691
2794
|
:host {
|
|
2692
2795
|
margin: 0 auto;
|
|
2693
2796
|
width: 100%;
|
|
@@ -2699,21 +2802,21 @@ sl-input::part(label){
|
|
|
2699
2802
|
font-weight: var(--sl-font-weight-semibold);
|
|
2700
2803
|
}
|
|
2701
2804
|
`;
|
|
2702
|
-
const sheet$
|
|
2703
|
-
const styleString$
|
|
2805
|
+
const sheet$8 = JSS.createStyleSheet(style$8);
|
|
2806
|
+
const styleString$8 = sheet$8.toString();
|
|
2704
2807
|
function NameFieldsView(props) {
|
|
2705
2808
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
2706
2809
|
const { states } = props;
|
|
2707
2810
|
const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
|
|
2708
|
-
return (index.h("div", { class: sheet$
|
|
2811
|
+
return (index.h("div", { class: sheet$8.classes.FieldsContainer },
|
|
2709
2812
|
index.h("style", { type: "text/css" },
|
|
2710
|
-
vanillaStyle$
|
|
2711
|
-
styleString$
|
|
2813
|
+
vanillaStyle$4,
|
|
2814
|
+
styleString$8),
|
|
2712
2815
|
index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", name: "/firstName", type: "text", label: states.content.firstNameLabel, required: true, disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled) }, (((_e = (_d = states.registrationFormState) === null || _d === void 0 ? void 0 : _d.initialData) === null || _e === void 0 ? void 0 : _e.firstName) ? {
|
|
2713
2816
|
value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g.firstName,
|
|
2714
2817
|
}
|
|
2715
2818
|
: {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.firstName) ? {
|
|
2716
|
-
class: sheet$
|
|
2819
|
+
class: sheet$8.classes.ErrorStyle,
|
|
2717
2820
|
helpText: (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.firstName) || "Cannot be empty",
|
|
2718
2821
|
}
|
|
2719
2822
|
: []))),
|
|
@@ -2721,81 +2824,12 @@ function NameFieldsView(props) {
|
|
|
2721
2824
|
value: (_o = (_m = states.registrationFormState) === null || _m === void 0 ? void 0 : _m.initialData) === null || _o === void 0 ? void 0 : _o.lastName,
|
|
2722
2825
|
}
|
|
2723
2826
|
: {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.lastName) ? {
|
|
2724
|
-
class: sheet$
|
|
2827
|
+
class: sheet$8.classes.ErrorStyle,
|
|
2725
2828
|
helpText: (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.lastName) || "Cannot be empty",
|
|
2726
2829
|
}
|
|
2727
2830
|
: [])))));
|
|
2728
2831
|
}
|
|
2729
2832
|
|
|
2730
|
-
const style$8 = {
|
|
2731
|
-
ErrorStyle: {
|
|
2732
|
-
"&::part(control)": {
|
|
2733
|
-
background: "var(--sl-color-danger-10)",
|
|
2734
|
-
borderColor: "var(--sl-color-danger-500)",
|
|
2735
|
-
outline: "var(--sl-color-danger-500)",
|
|
2736
|
-
},
|
|
2737
|
-
"&:host": {
|
|
2738
|
-
"--focus-ring": "0 0 0 var(--sl-focus-ring-width) red !important",
|
|
2739
|
-
},
|
|
2740
|
-
},
|
|
2741
|
-
ErrorMessageStyle: {
|
|
2742
|
-
margin: 0,
|
|
2743
|
-
marginTop: "5px",
|
|
2744
|
-
color: "var(--sl-color-danger-500)",
|
|
2745
|
-
fontSize: "var(--sl-input-help-text-font-size-medium)",
|
|
2746
|
-
fontFamily: "var(--sl-font-sans)",
|
|
2747
|
-
fontWeight: "var(--sl-font-weight-normal)",
|
|
2748
|
-
},
|
|
2749
|
-
FieldContainer: {
|
|
2750
|
-
"margin-bottom": "var(--sl-spacing-large)",
|
|
2751
|
-
},
|
|
2752
|
-
};
|
|
2753
|
-
const vanillaStyle$4 = `
|
|
2754
|
-
:host {
|
|
2755
|
-
margin: 0 auto;
|
|
2756
|
-
width: 100%;
|
|
2757
|
-
display: block;
|
|
2758
|
-
}
|
|
2759
|
-
sl-checkbox::part(label){
|
|
2760
|
-
font-size: var(--sl-input-label-font-size-small);
|
|
2761
|
-
font-weight: var(--sl-font-weight-normal);
|
|
2762
|
-
line-height: 20px;
|
|
2763
|
-
}
|
|
2764
|
-
sl-checkbox::part(base){
|
|
2765
|
-
align-items: start;
|
|
2766
|
-
}
|
|
2767
|
-
`;
|
|
2768
|
-
JSS.jss.setup(JSS.create());
|
|
2769
|
-
const sheet$8 = JSS.jss.createStyleSheet(style$8);
|
|
2770
|
-
const styleString$8 = sheet$8.toString();
|
|
2771
|
-
function CheckboxFieldView(props) {
|
|
2772
|
-
var _a, _b, _c;
|
|
2773
|
-
const { states, content, callbacks } = props;
|
|
2774
|
-
const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
|
|
2775
|
-
return (index.h("div", { class: sheet$8.classes.FieldContainer, part: "sqm-base" },
|
|
2776
|
-
index.h("style", { type: "text/css" },
|
|
2777
|
-
vanillaStyle$4,
|
|
2778
|
-
styleString$8),
|
|
2779
|
-
index.h("sl-checkbox", Object.assign({ exportparts: "label: input-label, base: input-base", name: `/${content.checkboxName}`, checked: states.checked, "onSl-change": (e) => {
|
|
2780
|
-
e.target.value = e.target.checked;
|
|
2781
|
-
callbacks.setChecked(e.target.value);
|
|
2782
|
-
} }, (!content.checkboxOptional ? { required: true } : []), { disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled) }, (!states.checked && (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.checkboxName])
|
|
2783
|
-
? {
|
|
2784
|
-
class: sheet$8.classes.ErrorStyle,
|
|
2785
|
-
}
|
|
2786
|
-
: [])),
|
|
2787
|
-
global.intl.formatMessage({
|
|
2788
|
-
id: content.checkboxName + "-message",
|
|
2789
|
-
defaultMessage: content.checkboxLabel,
|
|
2790
|
-
}, {
|
|
2791
|
-
labelLink: (index.h("a", { href: content.checkboxLabelLink, target: "_blank" }, content.checkboxLabelLinkText || content.checkboxLabelLink)),
|
|
2792
|
-
}),
|
|
2793
|
-
!states.checked && (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.checkboxName]) && (index.h("p", { class: sheet$8.classes.ErrorMessageStyle }, global.intl.formatMessage({
|
|
2794
|
-
id: `errorMessage-${content.checkboxName}`,
|
|
2795
|
-
defaultMessage: content.errorMessage,
|
|
2796
|
-
}))))));
|
|
2797
|
-
}
|
|
2798
|
-
|
|
2799
2833
|
const style$9 = {
|
|
2800
2834
|
ErrorStyle: {
|
|
2801
2835
|
"--sl-input-border-color": "var(--sl-color-danger-500)",
|
|
@@ -4098,6 +4132,7 @@ const ShadowViewAddon = ({ story }, children) => {
|
|
|
4098
4132
|
|
|
4099
4133
|
exports.BigStatView = BigStatView;
|
|
4100
4134
|
exports.CardFeedView = CardFeedView;
|
|
4135
|
+
exports.ChangeMarktingView = ChangeMarktingView;
|
|
4101
4136
|
exports.CheckboxFieldView = CheckboxFieldView;
|
|
4102
4137
|
exports.CouponCodeView = CouponCodeView;
|
|
4103
4138
|
exports.DropdownFieldView = DropdownFieldView;
|