@saasquatch/mint-components 1.14.7-9 → 1.14.8-0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. package/dist/cjs/{ShadowViewAddon-3c344355.js → ShadowViewAddon-28865623.js} +12 -4
  2. package/dist/cjs/sqm-big-stat_43.cjs.entry.js +1 -1
  3. package/dist/cjs/sqm-stencilbook.cjs.entry.js +1 -1
  4. package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field-view.js +11 -4
  5. package/dist/collection/components/sqm-lead-form/sqm-lead-form.js +1 -0
  6. package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +1 -0
  7. package/dist/esm/{ShadowViewAddon-64194d20.js → ShadowViewAddon-f2176779.js} +12 -4
  8. package/dist/esm/sqm-big-stat_43.entry.js +1 -1
  9. package/dist/esm/sqm-stencilbook.entry.js +1 -1
  10. package/dist/esm-es5/ShadowViewAddon-f2176779.js +1 -0
  11. package/dist/esm-es5/sqm-big-stat_43.entry.js +1 -1
  12. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  13. package/dist/mint-components/mint-components.esm.js +1 -1
  14. package/dist/mint-components/p-0d939b73.system.js +1 -0
  15. package/dist/mint-components/p-37996351.system.js +1 -1
  16. package/dist/mint-components/{p-1d8c24d9.system.entry.js → p-4cff3345.system.entry.js} +1 -1
  17. package/dist/mint-components/{p-41c0d386.entry.js → p-653a8a7b.entry.js} +1 -1
  18. package/dist/mint-components/{p-cbbd0d6f.system.entry.js → p-a01e3c3d.system.entry.js} +1 -1
  19. package/dist/mint-components/p-c1b074b6.js +394 -0
  20. package/dist/mint-components/{p-a94b5fc6.entry.js → p-c4ce8578.entry.js} +1 -1
  21. package/dist/types/components/sqm-lead-form/sqm-lead-form.d.ts +1 -0
  22. package/dist/types/components/sqm-portal-register/sqm-portal-register.d.ts +1 -0
  23. package/docs/docs.docx +0 -0
  24. package/docs/raisins.json +1 -1
  25. package/package.json +1 -1
  26. package/dist/esm-es5/ShadowViewAddon-64194d20.js +0 -1
  27. package/dist/mint-components/p-0d94d81a.system.js +0 -1
  28. package/dist/mint-components/p-30a11ec0.js +0 -394
@@ -1665,7 +1665,6 @@ function PortalRegisterView(props) {
1665
1665
  const style$4 = {
1666
1666
  ErrorStyle: {
1667
1667
  "&::part(control)": {
1668
- background: "var(--sl-color-danger-10)",
1669
1668
  borderColor: "var(--sl-color-danger-500)",
1670
1669
  outline: "var(--sl-color-danger-500)",
1671
1670
  },
@@ -1704,8 +1703,9 @@ JSS.jss.setup(JSS.create());
1704
1703
  const sheet$4 = JSS.jss.createStyleSheet(style$4);
1705
1704
  const styleString$4 = sheet$4.toString();
1706
1705
  function CheckboxFieldView(props) {
1707
- var _b, _c;
1706
+ var _a, _b, _c, _d, _e;
1708
1707
  const { states, content, callbacks } = props;
1708
+ const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
1709
1709
  return (index.h("div", { class: sheet$4.classes.FieldContainer, part: "sqm-base" },
1710
1710
  index.h("style", { type: "text/css" },
1711
1711
  vanillaStyle$2,
@@ -1713,12 +1713,20 @@ function CheckboxFieldView(props) {
1713
1713
  index.h("sl-checkbox", Object.assign({ exportparts: "label: input-label, base: input-base", name: `/${content.checkboxName}`, checked: states.checked, "onSl-change": (e) => {
1714
1714
  e.target.value = e.target.checked;
1715
1715
  callbacks.setChecked(e.target.value);
1716
- } }, (!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
+ } }, (!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), validationError: ({ value }) => {
1717
+ if (!value && !content.checkboxOptional) {
1718
+ return content.errorMessage;
1719
+ }
1720
+ } }, (((_e = (_d = states.registrationFormState) === null || _d === void 0 ? void 0 : _d.validationErrors) === null || _e === void 0 ? void 0 : _e[content.checkboxName]) ? {
1721
+ class: sheet$4.classes.ErrorStyle,
1722
+ }
1723
+ : [])), global.intl.formatMessage({
1717
1724
  id: content.checkboxName + "-message",
1718
1725
  defaultMessage: content.checkboxLabel,
1719
1726
  }, {
1720
1727
  labelLink: (index.h("a", { href: content.checkboxLabelLink, target: "_blank" }, content.checkboxLabelLinkText || content.checkboxLabelLink)),
1721
- }))));
1728
+ })),
1729
+ (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.checkboxName]) && (index.h("p", { class: sheet$4.classes.ErrorMessageStyle }, content.errorMessage))));
1722
1730
  }
1723
1731
 
1724
1732
  function ChangeMarktingView(props) {
@@ -24,7 +24,7 @@ const sqmPortalLoginView = require('./sqm-portal-login-view-761a4d8e.js');
24
24
  const usePortalLogin = require('./usePortalLogin-63d896d1.js');
25
25
  const AsYouType = require('./AsYouType-6788393a.js');
26
26
  const utilities = require('./utilities-78f5e169.js');
27
- const ShadowViewAddon = require('./ShadowViewAddon-3c344355.js');
27
+ const ShadowViewAddon = require('./ShadowViewAddon-28865623.js');
28
28
  require('./sqm-portal-container-view-4f15143a.js');
29
29
  const usePayoutStatus = require('./usePayoutStatus-feeac99b.js');
30
30
 
@@ -36,7 +36,7 @@ const sqmPortalResetPasswordView = require('./sqm-portal-reset-password-view-fe6
36
36
  const sqmPortalVerifyEmailView = require('./sqm-portal-verify-email-view-7b678f34.js');
37
37
  require('./ErrorView-b2fcf954.js');
38
38
  const sqmQrCodeView = require('./sqm-qr-code-view-15dfc0b6.js');
39
- const ShadowViewAddon = require('./ShadowViewAddon-3c344355.js');
39
+ const ShadowViewAddon = require('./ShadowViewAddon-28865623.js');
40
40
  const sqmPortalContainerView = require('./sqm-portal-container-view-4f15143a.js');
41
41
  const sqmInvoiceTableView = require('./sqm-invoice-table-view-0f7fa309.js');
42
42
  const sqmLeadInputFieldView = require('./sqm-lead-input-field-view-89308aab.js');
@@ -5,7 +5,6 @@ import { intl } from "../../global/global";
5
5
  const style = {
6
6
  ErrorStyle: {
7
7
  "&::part(control)": {
8
- background: "var(--sl-color-danger-10)",
9
8
  borderColor: "var(--sl-color-danger-500)",
10
9
  outline: "var(--sl-color-danger-500)",
11
10
  },
@@ -44,7 +43,7 @@ jss.setup(preset());
44
43
  const sheet = jss.createStyleSheet(style);
45
44
  const styleString = sheet.toString();
46
45
  export function CheckboxFieldView(props) {
47
- var _a, _b, _c;
46
+ var _a, _b, _c, _d, _e;
48
47
  const { states, content, callbacks } = props;
49
48
  const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
50
49
  return (h("div", { class: sheet.classes.FieldContainer, part: "sqm-base" },
@@ -54,10 +53,18 @@ export function CheckboxFieldView(props) {
54
53
  h("sl-checkbox", Object.assign({ exportparts: "label: input-label, base: input-base", name: `/${content.checkboxName}`, checked: states.checked, "onSl-change": (e) => {
55
54
  e.target.value = e.target.checked;
56
55
  callbacks.setChecked(e.target.value);
57
- } }, (!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 }), intl.formatMessage({
56
+ } }, (!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), validationError: ({ value }) => {
57
+ if (!value && !content.checkboxOptional) {
58
+ return content.errorMessage;
59
+ }
60
+ } }, (((_e = (_d = states.registrationFormState) === null || _d === void 0 ? void 0 : _d.validationErrors) === null || _e === void 0 ? void 0 : _e[content.checkboxName]) ? {
61
+ class: sheet.classes.ErrorStyle,
62
+ }
63
+ : [])), intl.formatMessage({
58
64
  id: content.checkboxName + "-message",
59
65
  defaultMessage: content.checkboxLabel,
60
66
  }, {
61
67
  labelLink: (h("a", { href: content.checkboxLabelLink, target: "_blank" }, content.checkboxLabelLinkText || content.checkboxLabelLink)),
62
- }))));
68
+ })),
69
+ (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.checkboxName]) && (h("p", { class: sheet.classes.ErrorMessageStyle }, content.errorMessage))));
63
70
  }
@@ -6,6 +6,7 @@ import { LeadFormView } from "./sqm-lead-form-view";
6
6
  import { useLeadForm } from "./useLeadForm";
7
7
  /**
8
8
  * @uiName Lead Form
9
+ * @canvasRenderer always-replace
9
10
  * @slots [{"name":"formData","title":"Additional Fields"}]
10
11
  */
11
12
  export class LeadForm {
@@ -6,6 +6,7 @@ import { PortalRegisterView, } from "./sqm-portal-register-view";
6
6
  import { usePortalRegister } from "./usePortalRegister";
7
7
  /**
8
8
  * @uiName Microsite Registration
9
+ * @canvasRenderer always-replace
9
10
  * @slots [{"name":"formData","title":"Additional Fields"},{"name":"terms","title":"Terms And Conditions Fields"}]
10
11
  */
11
12
  export class PortalRegister {
@@ -1663,7 +1663,6 @@ function PortalRegisterView(props) {
1663
1663
  const style$4 = {
1664
1664
  ErrorStyle: {
1665
1665
  "&::part(control)": {
1666
- background: "var(--sl-color-danger-10)",
1667
1666
  borderColor: "var(--sl-color-danger-500)",
1668
1667
  outline: "var(--sl-color-danger-500)",
1669
1668
  },
@@ -1702,8 +1701,9 @@ jss.setup(create());
1702
1701
  const sheet$4 = jss.createStyleSheet(style$4);
1703
1702
  const styleString$4 = sheet$4.toString();
1704
1703
  function CheckboxFieldView(props) {
1705
- var _b, _c;
1704
+ var _a, _b, _c, _d, _e;
1706
1705
  const { states, content, callbacks } = props;
1706
+ const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
1707
1707
  return (h("div", { class: sheet$4.classes.FieldContainer, part: "sqm-base" },
1708
1708
  h("style", { type: "text/css" },
1709
1709
  vanillaStyle$2,
@@ -1711,12 +1711,20 @@ function CheckboxFieldView(props) {
1711
1711
  h("sl-checkbox", Object.assign({ exportparts: "label: input-label, base: input-base", name: `/${content.checkboxName}`, checked: states.checked, "onSl-change": (e) => {
1712
1712
  e.target.value = e.target.checked;
1713
1713
  callbacks.setChecked(e.target.value);
1714
- } }, (!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 }), intl.formatMessage({
1714
+ } }, (!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), validationError: ({ value }) => {
1715
+ if (!value && !content.checkboxOptional) {
1716
+ return content.errorMessage;
1717
+ }
1718
+ } }, (((_e = (_d = states.registrationFormState) === null || _d === void 0 ? void 0 : _d.validationErrors) === null || _e === void 0 ? void 0 : _e[content.checkboxName]) ? {
1719
+ class: sheet$4.classes.ErrorStyle,
1720
+ }
1721
+ : [])), intl.formatMessage({
1715
1722
  id: content.checkboxName + "-message",
1716
1723
  defaultMessage: content.checkboxLabel,
1717
1724
  }, {
1718
1725
  labelLink: (h("a", { href: content.checkboxLabelLink, target: "_blank" }, content.checkboxLabelLinkText || content.checkboxLabelLink)),
1719
- }))));
1726
+ })),
1727
+ (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.checkboxName]) && (h("p", { class: sheet$4.classes.ErrorMessageStyle }, content.errorMessage))));
1720
1728
  }
1721
1729
 
1722
1730
  function ChangeMarktingView(props) {
@@ -20,7 +20,7 @@ import { P as PortalLoginView } from './sqm-portal-login-view-7e49609a.js';
20
20
  import { u as usePortalLogin } from './usePortalLogin-ef647a50.js';
21
21
  import { A as AsYouType } from './AsYouType-46f67d0d.js';
22
22
  import { i as isEmpty } from './utilities-5b0ca040.js';
23
- import { b as useDemoBigStat, W as useBigStat, B as BigStatView, U as autoColorScaleCss, J as CardFeedView, i as CheckboxFieldView, K as CouponCodeView, D as DropdownFieldView, E as EditProfileView, H as HeroView, I as InputFieldView, Q as LeadDropdownFieldView, O as LeadFormView, X as withShadowView, L as LeaderboardView, N as NameFieldsView, C as ChangeMarktingView, d as PortalChangePasswordView, h as PortalFooterView, P as PortalFrameView, e as PortalRegisterView, R as ReferralIframeView, Y as demoRewardExchange, j as RewardExchangeView, a as useShareButton, S as ShareButtonView, u as useShareLink, c as StatContainerView, T as TaskCardView } from './ShadowViewAddon-64194d20.js';
23
+ import { b as useDemoBigStat, W as useBigStat, B as BigStatView, U as autoColorScaleCss, J as CardFeedView, i as CheckboxFieldView, K as CouponCodeView, D as DropdownFieldView, E as EditProfileView, H as HeroView, I as InputFieldView, Q as LeadDropdownFieldView, O as LeadFormView, X as withShadowView, L as LeaderboardView, N as NameFieldsView, C as ChangeMarktingView, d as PortalChangePasswordView, h as PortalFooterView, P as PortalFrameView, e as PortalRegisterView, R as ReferralIframeView, Y as demoRewardExchange, j as RewardExchangeView, a as useShareButton, S as ShareButtonView, u as useShareLink, c as StatContainerView, T as TaskCardView } from './ShadowViewAddon-f2176779.js';
24
24
  import './sqm-portal-container-view-1683ae32.js';
25
25
  import { u as usePayoutStatus } from './usePayoutStatus-fed17fc9.js';
26
26
 
@@ -32,7 +32,7 @@ import { P as PortalResetPasswordView } from './sqm-portal-reset-password-view-5
32
32
  import { P as PortalVerifyEmailView } from './sqm-portal-verify-email-view-b12cb894.js';
33
33
  import './ErrorView-48e2b969.js';
34
34
  import { Q as QrCodeView } from './sqm-qr-code-view-f1d0763b.js';
35
- import { S as ShareButtonView, L as LeaderboardView, B as BigStatView, P as PortalFrameView, E as EditProfileView, u as useShareLink, a as useShareButton, b as useDemoBigStat, c as StatContainerView, d as PortalChangePasswordView, e as PortalRegisterView, C as ChangeMarktingView, T as TaskCardView, f as ProgressBarView, g as PoweredByImg$1, h as PortalFooterView, H as HeroView, R as ReferralIframeView, N as NameFieldsView, i as CheckboxFieldView, D as DropdownFieldView, I as InputFieldView, j as RewardExchangeView, r as rewardExchangeCustomErrorMsg, k as rewardExchangeLongText, l as rewardExchangeSelected, m as chooseAmountFixed, n as chooseAmountFixedNoDescription, o as chooseAmountVariable, p as chooseAmountVariableNoDescription, q as chooseAmountVariableDisabled, s as chooseAmountVariableUnavailable, t as confirmFixed, v as confirmVariable, w as redemptionError, x as queryError, y as success, z as successVariable, A as loading, F as empty$1, G as rewardExchange, J as CardFeedView, K as CouponCodeView, M as ProgressBar$2, O as LeadFormView, Q as LeadDropdownFieldView, U as autoColorScaleCss, V as ShadowViewAddon } from './ShadowViewAddon-64194d20.js';
35
+ import { S as ShareButtonView, L as LeaderboardView, B as BigStatView, P as PortalFrameView, E as EditProfileView, u as useShareLink, a as useShareButton, b as useDemoBigStat, c as StatContainerView, d as PortalChangePasswordView, e as PortalRegisterView, C as ChangeMarktingView, T as TaskCardView, f as ProgressBarView, g as PoweredByImg$1, h as PortalFooterView, H as HeroView, R as ReferralIframeView, N as NameFieldsView, i as CheckboxFieldView, D as DropdownFieldView, I as InputFieldView, j as RewardExchangeView, r as rewardExchangeCustomErrorMsg, k as rewardExchangeLongText, l as rewardExchangeSelected, m as chooseAmountFixed, n as chooseAmountFixedNoDescription, o as chooseAmountVariable, p as chooseAmountVariableNoDescription, q as chooseAmountVariableDisabled, s as chooseAmountVariableUnavailable, t as confirmFixed, v as confirmVariable, w as redemptionError, x as queryError, y as success, z as successVariable, A as loading, F as empty$1, G as rewardExchange, J as CardFeedView, K as CouponCodeView, M as ProgressBar$2, O as LeadFormView, Q as LeadDropdownFieldView, U as autoColorScaleCss, V as ShadowViewAddon } from './ShadowViewAddon-f2176779.js';
36
36
  import { P as PortalContainerView, a as PortalSectionView } from './sqm-portal-container-view-1683ae32.js';
37
37
  import { O as OtherRegionSlotView, I as InvoiceTableView, T as TaxForm } from './sqm-invoice-table-view-7f376a75.js';
38
38
  import { L as LeadInputFieldView } from './sqm-lead-input-field-view-4ede5d7f.js';