@saasquatch/mint-components 2.0.0-6 → 2.0.0-61

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 (76) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/mint-components.cjs.js +1 -1
  3. package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +69 -29
  4. package/dist/cjs/{sqm-base-registration-form-view-8847804c.js → sqm-base-registration-form-view-7b95ae7a.js} +1 -0
  5. package/dist/cjs/sqm-big-stat_46.cjs.entry.js +5 -13
  6. package/dist/cjs/sqm-form-message.cjs.entry.js +6 -5
  7. package/dist/cjs/sqm-portal-google-registration-form.cjs.entry.js +7 -6
  8. package/dist/cjs/sqm-stencilbook.cjs.entry.js +20 -2
  9. package/dist/cjs/sqm-tax-and-cash.cjs.entry.js +1 -1
  10. package/dist/collection/components/sqm-base-registration/sqm-base-registration-form-view.js +1 -0
  11. package/dist/collection/components/sqm-form-message/FormMessage.stories.js +14 -0
  12. package/dist/collection/components/sqm-form-message/sqm-form-message.css +7 -0
  13. package/dist/collection/components/sqm-form-message/sqm-form-message.js +23 -4
  14. package/dist/collection/components/sqm-hero/sqm-hero.js +4 -4
  15. package/dist/collection/components/sqm-hero-image/sqm-hero-image.js +2 -2
  16. package/dist/collection/components/sqm-portal-footer/sqm-portal-footer.js +1 -1
  17. package/dist/collection/components/sqm-portal-google-registration-form/sqm-portal-google-registration-form.js +7 -4
  18. package/dist/collection/components/sqm-portal-google-registration-form/usePortalGoogleRegistrationForm.js +4 -1
  19. package/dist/collection/components/sqm-titled-section/sqm-titled-section.js +1 -1
  20. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +9 -41
  21. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +1 -1
  22. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +67 -26
  23. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +0 -1
  24. package/dist/esm/loader.js +1 -1
  25. package/dist/esm/mint-components.js +1 -1
  26. package/dist/esm/sqm-banking-info-form_10.entry.js +69 -29
  27. package/dist/esm/{sqm-base-registration-form-view-193f1721.js → sqm-base-registration-form-view-1a6bb4b4.js} +1 -0
  28. package/dist/esm/sqm-big-stat_46.entry.js +5 -13
  29. package/dist/esm/sqm-form-message.entry.js +6 -5
  30. package/dist/esm/sqm-portal-google-registration-form.entry.js +7 -6
  31. package/dist/esm/sqm-stencilbook.entry.js +20 -2
  32. package/dist/esm/sqm-tax-and-cash.entry.js +1 -1
  33. package/dist/esm-es5/loader.js +1 -1
  34. package/dist/esm-es5/mint-components.js +1 -1
  35. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
  36. package/dist/esm-es5/{sqm-base-registration-form-view-193f1721.js → sqm-base-registration-form-view-1a6bb4b4.js} +1 -1
  37. package/dist/esm-es5/sqm-big-stat_46.entry.js +1 -1
  38. package/dist/esm-es5/sqm-form-message.entry.js +1 -1
  39. package/dist/esm-es5/sqm-portal-google-registration-form.entry.js +1 -1
  40. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  41. package/dist/esm-es5/sqm-tax-and-cash.entry.js +1 -1
  42. package/dist/mint-components/mint-components.esm.js +1 -1
  43. package/dist/mint-components/{p-ddf3c05e.js → p-1522a7d1.js} +1 -1
  44. package/dist/mint-components/{p-38b92bc5.entry.js → p-38263521.entry.js} +1 -1
  45. package/dist/mint-components/{p-402984b3.system.entry.js → p-43a9fb8e.system.entry.js} +1 -1
  46. package/dist/mint-components/{p-13e66b37.system.entry.js → p-454a6d05.system.entry.js} +1 -1
  47. package/dist/mint-components/p-478ad7c8.system.entry.js +1 -0
  48. package/dist/mint-components/{p-ec25aaa7.system.entry.js → p-69d8b4f2.system.entry.js} +1 -1
  49. package/dist/mint-components/{p-a0730259.entry.js → p-6b247deb.entry.js} +6 -6
  50. package/dist/mint-components/p-71a6e549.system.entry.js +1 -0
  51. package/dist/mint-components/{p-a44a912b.entry.js → p-75c569f7.entry.js} +1 -1
  52. package/dist/mint-components/{p-e110688b.entry.js → p-78daa639.entry.js} +1 -1
  53. package/dist/mint-components/p-8801b7f1.system.entry.js +1 -0
  54. package/dist/mint-components/p-967a9040.system.js +1 -1
  55. package/dist/mint-components/p-ac9138fd.entry.js +1 -0
  56. package/dist/mint-components/{p-be88596c.system.js → p-b21c5311.system.js} +1 -1
  57. package/dist/mint-components/p-c2ac14b7.entry.js +1 -0
  58. package/dist/types/components/sqm-base-registration/sqm-base-registration-form-view.d.ts +1 -0
  59. package/dist/types/components/sqm-form-message/FormMessage.stories.d.ts +4 -0
  60. package/dist/types/components/sqm-form-message/sqm-form-message.d.ts +1 -0
  61. package/dist/types/components/sqm-hero/sqm-hero.d.ts +4 -4
  62. package/dist/types/components/sqm-hero-image/sqm-hero-image.d.ts +2 -2
  63. package/dist/types/components/sqm-portal-footer/sqm-portal-footer.d.ts +1 -1
  64. package/dist/types/components/sqm-portal-google-registration-form/sqm-portal-google-registration-form.d.ts +5 -0
  65. package/dist/types/components/sqm-titled-section/sqm-titled-section.d.ts +1 -1
  66. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +4 -12
  67. package/dist/types/components.d.ts +18 -32
  68. package/docs/docs.docx +0 -0
  69. package/docs/raisins.json +1 -1
  70. package/grapesjs/grapesjs.js +1 -1
  71. package/package.json +1 -1
  72. package/dist/mint-components/p-3ea29bac.system.entry.js +0 -1
  73. package/dist/mint-components/p-43d9c1c5.system.entry.js +0 -1
  74. package/dist/mint-components/p-916a2045.system.entry.js +0 -1
  75. package/dist/mint-components/p-a597b136.entry.js +0 -1
  76. package/dist/mint-components/p-ea063d99.entry.js +0 -1
@@ -3709,9 +3709,6 @@ const style$5 = {
3709
3709
  backgroundColor: "var(--sl-color-red-100)",
3710
3710
  borderTop: "none",
3711
3711
  },
3712
- "& sl-icon::part(base)": {
3713
- color: "var(--sl-color-danger-500)",
3714
- },
3715
3712
  },
3716
3713
  WarningAlertContainer: {
3717
3714
  "&::part(base)": {
@@ -3719,9 +3716,6 @@ const style$5 = {
3719
3716
  borderTop: "none",
3720
3717
  maxWidth: "600px",
3721
3718
  },
3722
- "& sl-icon::part(base)": {
3723
- color: "var(--sl-color-warning-500)",
3724
- },
3725
3719
  },
3726
3720
  WarningHoldAlertContainer: {
3727
3721
  marginLeft: "-20px",
@@ -3729,9 +3723,10 @@ const style$5 = {
3729
3723
  maxWidth: "850px",
3730
3724
  border: "none",
3731
3725
  backgroundColor: "transparent",
3726
+ color: "var(--sqm-text)",
3732
3727
  },
3733
3728
  "& sl-icon::part(base)": {
3734
- color: "var(--sl-color-warning-500)",
3729
+ color: "var(--sqm-warning-color-icon)",
3735
3730
  },
3736
3731
  },
3737
3732
  ErrorHoldAlertContainer: {
@@ -3740,9 +3735,10 @@ const style$5 = {
3740
3735
  maxWidth: "850px",
3741
3736
  border: "none",
3742
3737
  backgroundColor: "transparent",
3738
+ color: "var(--sqm-text)",
3743
3739
  },
3744
3740
  "& sl-icon::part(base)": {
3745
- color: "var(--sl-color-danger-500)",
3741
+ color: "var(--sqm-danger-color-icon)",
3746
3742
  },
3747
3743
  },
3748
3744
  ExpiringSoonAlertContainer: {
@@ -3765,7 +3761,7 @@ const style$5 = {
3765
3761
  display: "flex",
3766
3762
  gap: "var(--sl-spacing-x-small)",
3767
3763
  "&::part(base)": {
3768
- color: "var(--sl-color-green-500)",
3764
+ color: "var(--sqm-text)",
3769
3765
  },
3770
3766
  },
3771
3767
  IndirectTaxPreviewDetails: {
@@ -3774,12 +3770,13 @@ const style$5 = {
3774
3770
  flexDirection: "column",
3775
3771
  lineHeight: "var(--sl-spacing-medium)",
3776
3772
  fontSize: "var(--sl-font-size-small)",
3773
+ color: "var(--sqm-text-subdued)",
3777
3774
  },
3778
3775
  InvoiceTableContainer: {
3779
3776
  marginTop: "var(--sl-spacing-medium)",
3780
3777
  },
3781
3778
  NotRegisteredIndirectTaxText: {
3782
- color: "var(--sl-color-gray-500)",
3779
+ color: "var(--sqm-text-subdued)",
3783
3780
  },
3784
3781
  TaxDocumentsContainer: {
3785
3782
  marginTop: "var(--sl-spacing-xx-large)",
@@ -3800,7 +3797,6 @@ const style$5 = {
3800
3797
  "& p": {
3801
3798
  margin: "0",
3802
3799
  paddingTop: "2px",
3803
- color: "var(--sl-color-gray-500)",
3804
3800
  },
3805
3801
  },
3806
3802
  StatusAlert: {
@@ -3835,7 +3831,7 @@ const style$5 = {
3835
3831
  },
3836
3832
  TaxDocSubtext: {
3837
3833
  margin: "0",
3838
- color: "var(--sl-color-neutral-500)",
3834
+ color: "var(--sqm-text-subdued)",
3839
3835
  lineHeight: "var(--sl-spacing-medium)",
3840
3836
  fontSize: "var(--sl-font-size-small)",
3841
3837
  marginLeft: "1px",
@@ -3856,13 +3852,13 @@ const style$5 = {
3856
3852
  gap: "6px",
3857
3853
  },
3858
3854
  DescriptionText: {
3859
- color: "var(--sl-color-gray-500)",
3855
+ color: "var(--sqm-text-subdued)",
3860
3856
  fontSize: "var(--sl-font-size-x-small)",
3861
3857
  marginBottom: "none",
3862
3858
  maxWidth: "492px",
3863
3859
  },
3864
3860
  PageDescriptionText: {
3865
- color: "var(--sl-color-neutral-500)",
3861
+ color: "var(--sqm-text-subdued)",
3866
3862
  fontSize: "var(--sl-font-size-medium)",
3867
3863
  marginTop: "0",
3868
3864
  },
@@ -3893,9 +3889,53 @@ const style$5 = {
3893
3889
  },
3894
3890
  },
3895
3891
  DialogButton: { margin: "auto", width: "100%" },
3892
+ SuccessBadge: {
3893
+ "&::part(base)": {
3894
+ textAlign: "center",
3895
+ whiteSpace: "pre-line",
3896
+ background: "var(--sqm-success-color-icon)",
3897
+ },
3898
+ },
3899
+ WarningBadge: {
3900
+ "&::part(base)": {
3901
+ textAlign: "center",
3902
+ whiteSpace: "pre-line",
3903
+ background: "var(--sqm-warning-color-icon)",
3904
+ },
3905
+ },
3906
+ ErrorBadge: {
3907
+ "&::part(base)": {
3908
+ textAlign: "center",
3909
+ whiteSpace: "pre-line",
3910
+ background: "var(--sqm-danger-color-icon)",
3911
+ },
3912
+ },
3913
+ SubduedText: {
3914
+ color: "var(--sqm-text-subdued)",
3915
+ },
3896
3916
  };
3897
3917
  const sheet$4 = createStyleSheet(style$5);
3898
3918
  const styleString$4 = sheet$4.toString();
3919
+ const vanillaStyle$3 = `
3920
+ :host{
3921
+ display: block;
3922
+ }
3923
+
3924
+ sl-button[type="secondary"]::part(base) {
3925
+ font-family: var(--sqm-primary-font);
3926
+ background-color: var(--sqm-secondary-button-background);
3927
+ color: var(--sqm-secondary-button-color);
3928
+ border-color: var(--sqm-secondary-button-color-border);
3929
+ border-radius: var(--sqm-secondary-button-radius);
3930
+ }
3931
+
3932
+ sl-button[type="secondary"]::part(base):hover {
3933
+ background-color: var(--sqm-secondary-button-background-hover);
3934
+ color: var(--sqm-secondary-button-color-hover);
3935
+ border-color: var(--sqm-secondary-button-border-color-hover);
3936
+ }
3937
+
3938
+ `;
3899
3939
  const TaxAndCashDashboardView = (props) => {
3900
3940
  var _a;
3901
3941
  const { states, text, callbacks, slots } = props;
@@ -3912,7 +3952,7 @@ const TaxAndCashDashboardView = (props) => {
3912
3952
  termsAndConditions: (h("a", { target: "_blank", href: `https://terms.advocate.impact.com/PayoutTermsAndConditions.html` }, text.termsAndConditions)),
3913
3953
  }),
3914
3954
  button: (h("sl-button", { style: { marginTop: "var(--sl-spacing-x-small)" }, type: "default", onClick: callbacks.onNewFormClick }, text.w9RequiredButtonText)),
3915
- alertType: "info",
3955
+ alertType: "warning",
3916
3956
  icon: "info-circle",
3917
3957
  class: sheet$4.classes.WarningHoldAlertContainer,
3918
3958
  };
@@ -4019,16 +4059,16 @@ const TaxAndCashDashboardView = (props) => {
4019
4059
  }
4020
4060
  const statusMap = {
4021
4061
  NOT_VERIFIED: (h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
4022
- h("sl-badge", { type: "warning", pill: true }, text.statusTextNotVerified),
4023
- h("p", null, intl.formatMessage({
4062
+ h("sl-badge", { class: sheet$4.classes.WarningBadge, type: "warning", pill: true }, text.statusTextNotVerified),
4063
+ h("p", { class: sheet$4.classes.SubduedText }, intl.formatMessage({
4024
4064
  id: `badgeTextAwaitingReview`,
4025
4065
  defaultMessage: text.badgeTextAwaitingReview,
4026
4066
  }, {
4027
4067
  dateSubmitted: states.dateSubmitted,
4028
4068
  })))),
4029
4069
  ACTIVE: (h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
4030
- h("sl-badge", { type: "success", pill: true }, text.statusTextActive),
4031
- h("p", null, intl.formatMessage({
4070
+ h("sl-badge", { class: sheet$4.classes.SuccessBadge, type: "success", pill: true }, text.statusTextActive),
4071
+ h("p", { class: sheet$4.classes.SubduedText }, intl.formatMessage({
4032
4072
  id: `badgeTextSubmittedOn`,
4033
4073
  defaultMessage: states.documentType === "W9"
4034
4074
  ? text.badgeTextSubmittedOn
@@ -4037,8 +4077,8 @@ const TaxAndCashDashboardView = (props) => {
4037
4077
  dateSubmitted: states.dateSubmitted,
4038
4078
  })))),
4039
4079
  INACTIVE: (h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
4040
- h("sl-badge", { type: "danger", pill: true }, text.statusTextNotActive),
4041
- h("p", null, text.invalidForm))),
4080
+ h("sl-badge", { class: sheet$4.classes.ErrorBadge, type: "danger", pill: true }, text.statusTextNotActive),
4081
+ h("p", { class: sheet$4.classes.SubduedText }, text.invalidForm))),
4042
4082
  undefined: (h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
4043
4083
  h("sl-badge", { type: "danger", pill: true }, text.statusTextRequired),
4044
4084
  h("p", null, intl.formatMessage({
@@ -4100,9 +4140,11 @@ const TaxAndCashDashboardView = (props) => {
4100
4140
  const alertInfo = getAlert(states.payoutStatus);
4101
4141
  return (h("div", null,
4102
4142
  h("div", null,
4103
- h("style", { type: "text/css" }, styleString$4),
4143
+ h("style", { type: "text/css" },
4144
+ styleString$4,
4145
+ vanillaStyle$3),
4104
4146
  states.loadingError && (h("div", null,
4105
- h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true },
4147
+ h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.ErrorAlertContainer },
4106
4148
  h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
4107
4149
  h("strong", null, text.error.loadingErrorAlertHeader),
4108
4150
  h("br", null),
@@ -4122,8 +4164,7 @@ const TaxAndCashDashboardView = (props) => {
4122
4164
  }, {
4123
4165
  supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
4124
4166
  }))),
4125
- alertInfo && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", name: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.alertType, open: true, class: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.class },
4126
- h("sl-icon", { slot: "icon", name: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.icon }),
4167
+ alertInfo && (h("sqm-form-message", { exportparts: "base: alert-base, icon:alert-icon", type: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.alertType, class: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.class, icon: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.icon, transparent: true },
4127
4168
  h("strong", null, alertInfo.header),
4128
4169
  h("p", { style: { margin: "0" } }, alertInfo.description),
4129
4170
  alertInfo.buttonText && (h("sl-button", { style: { marginTop: "var(--sl-spacing-x-small)" }, type: "default", loading: states.veriffLoading, onClick: () => callbacks.onVerifyClick() }, alertInfo.buttonText)),
@@ -4138,7 +4179,7 @@ const TaxAndCashDashboardView = (props) => {
4138
4179
  h("div", { class: sheet$4.classes.BankingInformationContainer },
4139
4180
  slots.payoutDetailsCardSlot,
4140
4181
  !states.loading && (h("p", { class: sheet$4.classes.DescriptionText }, text.payoutFromImpact)),
4141
- states.canEditPayoutInfo && (h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$4.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
4182
+ states.canEditPayoutInfo && (h("sl-button", { disabled: states.disabled || states.loading, exportparts: "base: secondarybutton-base", type: "secondary", class: sheet$4.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
4142
4183
  (!states.noFormNeeded || states.status === "NOT_VERIFIED") && (h("div", { class: sheet$4.classes.TaxDocumentsContainer },
4143
4184
  h("div", null, states.loading ? (h("div", { class: sheet$4.classes.TaxSectionSkeletonContainer },
4144
4185
  h("sl-skeleton", { class: sheet$4.classes.SkeletonOne }),
@@ -4689,7 +4730,6 @@ const TaxAndCashDashboard = class {
4689
4730
  }
4690
4731
  };
4691
4732
  function useDemoTaxAndCashDashboard(props) {
4692
- console.log("dashboard", { props });
4693
4733
  // @ts-ignore
4694
4734
  return cjs({
4695
4735
  states: {
@@ -5782,7 +5822,7 @@ const style$6 = {
5782
5822
  };
5783
5823
  const sheet$5 = createStyleSheet(style$6);
5784
5824
  const styleString$5 = sheet$5.toString();
5785
- const vanillaStyle$3 = `
5825
+ const vanillaStyle$4 = `
5786
5826
  :host{
5787
5827
  display: block;
5788
5828
  }
@@ -5990,7 +6030,7 @@ const UserInfoFormView = (props) => {
5990
6030
  return (h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
5991
6031
  h("style", { type: "text/css" },
5992
6032
  styleString$5,
5993
- vanillaStyle$3),
6033
+ vanillaStyle$4),
5994
6034
  states.loadingError && (h("div", null,
5995
6035
  h("sqm-form-message", { type: "error" },
5996
6036
  h("p", { part: "alert-title" }, text.error.loadingErrorAlertHeader),
@@ -47,6 +47,7 @@ function BaseRegistrationFormView(props) {
47
47
  h("sl-form", { class: sheet.classes.Column, "onSl-submit": callbacks.handleEmailSubmit, novalidate: true },
48
48
  states.error && (h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
49
49
  h("div", { part: "erroralert-text" }, props.states.error))),
50
+ content.formData,
50
51
  h("sl-input", { exportparts: "label: input-label, base: input-base", type: "email", name: "/email", label: content.emailLabel || "Email", required: true, validationError: ({ value }) => {
51
52
  if (!value) {
52
53
  return content.requiredFieldErrorMessage;
@@ -3182,18 +3182,10 @@ const PayoutStatusAlert = class {
3182
3182
  this.errorDescription = "There was an error with determining your payout status.";
3183
3183
  /**
3184
3184
  * @undocumented
3185
- * @componentState { "title": "Information Required", "props": { "demoData": { "states": { "status": "INFORMATION_REQUIRED" } } }, "uiGroup": "Alert States" }
3186
- * @componentState { "title": "Over W9 Threshold", "props": { "demoData": { "states": { "status": "OVER_W9_THRESHOLD", "enforceUsTaxComplianceOption": "CASH_ONLY_DEFER_W9" } } }, "uiGroup": "Alert States" }
3187
- * @componentState { "title": "Over W9 Threshold - Hold", "props": { "demoData": { "states": { "status": "OVER_W9_THRESHOLD", "enforceUsTaxComplianceOption": "NONE" } } }, "uiGroup": "Alert States" }
3188
- * @componentState { "title": "Verification Required", "props": { "demoData": { "states": { "status": "VERIFICATION:REQUIRED" } } }, "uiGroup": "Alert States" }
3189
- * @componentState { "title": "Verification Internal", "props": { "demoData": { "states": { "status": "VERIFICATION:INTERNAL" } } }, "uiGroup": "Alert States" }
3190
- * @componentState { "title": "Verification Review", "props": { "demoData": { "states": { "status": "VERIFICATION:REVIEW" } } }, "uiGroup": "Alert States" }
3191
- * @componentState { "title": "Verification Failed", "props": { "demoData": { "states": { "status": "VERIFICATION:FAILED" } } }, "uiGroup": "Alert States" }
3192
- * @componentState { "title": "Account Review", "props": { "demoData": { "states": { "status": "ACCOUNT_REVIEW" } } }, "uiGroup": "Alert States" }
3193
- * @componentState { "title": "Hold", "props": { "demoData": { "states": { "status": "HOLD" } } }, "uiGroup": "Alert States" }
3194
- * @componentState { "title": "Done - No Alert", "props": { "demoData": { "states": { "status": "DONE" } } }, "uiGroup": "Alert States" }
3195
- * @componentState { "title": "Error State", "props": { "demoData": { "states": { "error": true } } }, "uiGroup": "Alert States" }
3196
- * @componentState { "title": "Loading State", "props": { "demoData": { "states": { "loading": true } } }, "uiGroup": "Alert States" }
3185
+ * @componentState { "title": "Payout Info Required", "props": { "states": { "status": "INFORMATION_REQUIRED" } }, "dependencies": ["sqm-payout-status-alert"] }
3186
+ * @componentState { "title": "Verification Required", "props": { "states": { "status": "VERIFICATION:REQUIRED" } }, "dependencies": ["sqm-payout-status-alert"] }
3187
+ * @componentState { "title": "Identity Verification", "props": { "states": { "status": "VERIFICATION:REVIEW" } }, "dependencies": ["sqm-payout-status-alert"] }
3188
+ * @componentState { "title": "Account Hold", "props": { "states": { "status": "HOLD" } }, "dependencies": ["sqm-payout-status-alert"] }
3197
3189
  */
3198
3190
  this.stateController = "{}";
3199
3191
  h(this);
@@ -3227,7 +3219,7 @@ function useDemoPayoutStatusAlert(props) {
3227
3219
  onTermsClick: () => { },
3228
3220
  onClick: () => console.log("show"),
3229
3221
  },
3230
- }, props.demoData || formatted || {}, { arrayMerge: (_, a) => a });
3222
+ }, formatted || props.demoData || {}, { arrayMerge: (_, a) => a });
3231
3223
  }
3232
3224
 
3233
3225
  const GET_USER$1 = dist.gql `
@@ -1,27 +1,28 @@
1
1
  import { r as registerInstance, h as h$1 } from './index-b3a06de8.js';
2
2
  import { n as h } from './dom-context-hooks.module-63370afd.js';
3
3
 
4
- const sqmFormMessageCss = "sl-alert::part(base){border:var(--sqm-border-thickness) solid;border-radius:var(--sqm-border-radius-normal);font-family:var(--sqm-primary-font)}.Error::part(base){color:var(--sqm-danger-color-text);background-color:var(--sqm-danger-color-background);border-color:var(--sqm-danger-color-border);font-size:14px}.Error #icon{color:var(--sqm-danger-color-icon);font-size:24px}.Warning::part(base){color:var(--sqm-warning-color-text);background-color:var(--sqm-warning-color-background);border-color:var(--sqm-warning-color-border)}.Warning #icon{color:var(--sqm-warning-color-icon);font-size:24px}.Success::part(base){color:var(--sqm-success-color-text);background-color:var(--sqm-success-color-background);border-color:var(--sqm-success-color-border)}.Success #icon{color:var(--sqm-success-color-icon);font-size:24px}.Info::part(base){color:var(--sqm-informative-color-text);background-color:var(--sqm-informative-color-background);border-color:var(--sqm-informative-color-border)}.Info #icon{color:var(--sqm-informative-color-icon);font-size:24px}::slotted(*){margin:0}::slotted(*[part=alert-title]){font-size:16px;font-weight:bold}::slotted(*[part=alert-description]),::slotted(*[part=erroralert-text]){font-size:14px}";
4
+ const sqmFormMessageCss = "sl-alert::part(base){border:var(--sqm-border-thickness) solid;border-radius:var(--sqm-border-radius-normal);font-family:var(--sqm-primary-font)}.Error::part(base){color:var(--sqm-danger-color-text);background-color:var(--sqm-danger-color-background);border-color:var(--sqm-danger-color-border);font-size:14px}.Error #icon{color:var(--sqm-danger-color-icon);font-size:24px}.Warning::part(base){color:var(--sqm-warning-color-text);background-color:var(--sqm-warning-color-background);border-color:var(--sqm-warning-color-border)}.Warning #icon{color:var(--sqm-warning-color-icon);font-size:24px}.Success::part(base){color:var(--sqm-success-color-text);background-color:var(--sqm-success-color-background);border-color:var(--sqm-success-color-border)}.Success #icon{color:var(--sqm-success-color-icon);font-size:24px}.Info::part(base){color:var(--sqm-informative-color-text);background-color:var(--sqm-informative-color-background);border-color:var(--sqm-informative-color-border)}.Info #icon{color:var(--sqm-informative-color-icon);font-size:24px}.Transparent::part(base){background-color:transparent;border:none;color:var(--sqm-text);margin-left:-20px}::slotted(*){margin:0}::slotted(*[part=alert-title]){font-size:16px;font-weight:bold}::slotted(*[part=alert-description]),::slotted(*[part=erroralert-text]){font-size:14px}";
5
5
 
6
6
  const FormMessage = class {
7
7
  constructor(hostRef) {
8
8
  registerInstance(this, hostRef);
9
9
  this.ignored = true;
10
+ this.transparent = false;
10
11
  h(this);
11
12
  }
12
13
  disconnectedCallback() { }
13
14
  render() {
14
15
  if (this.type === "error") {
15
- return (h$1("sl-alert", { exportparts: "base: erroralert-base, icon:erroralert-icon", class: "Error", type: "danger", open: true }, h$1("sl-icon", { id: "icon", slot: "icon", name: `${this.icon ? this.icon : "exclamation-octagon"}` }), h$1("slot", null)));
16
+ return (h$1("sl-alert", { exportparts: "base: erroralert-base, icon:erroralert-icon", class: `Error ${this.transparent ? "Transparent" : ""}`, type: "danger", open: true }, h$1("sl-icon", { id: "icon", slot: "icon", name: `${this.icon ? this.icon : "exclamation-octagon"}` }), h$1("slot", null)));
16
17
  }
17
18
  else if (this.type === "info") {
18
- return (h$1("sl-alert", { id: "icon", exportparts: "base: infoalert-base, icon:infoalert-icon", class: "Info", type: "primary", open: true }, h$1("sl-icon", { id: "icon", slot: "icon", name: `${this.icon ? this.icon : "info-circle"}` }), h$1("slot", null)));
19
+ return (h$1("sl-alert", { id: "icon", exportparts: "base: infoalert-base, icon:infoalert-icon", class: `Info ${this.transparent ? "Transparent" : ""}`, type: "info", open: true }, h$1("sl-icon", { id: "icon", slot: "icon", name: `${this.icon ? this.icon : "info-circle"}` }), h$1("slot", null)));
19
20
  }
20
21
  else if (this.type === "warning") {
21
- return (h$1("sl-alert", { exportparts: "base: warningalert-base, icon:warningalert-icon", class: "Warning", type: "warning", open: true }, h$1("sl-icon", { id: "icon", slot: "icon", name: `${this.icon ? this.icon : "exclamation-triangle"}` }), h$1("slot", null)));
22
+ return (h$1("sl-alert", { exportparts: "base: warningalert-base, icon:warningalert-icon", class: `Warning ${this.transparent ? "Transparent" : ""}`, type: "warning", open: true }, h$1("sl-icon", { id: "icon", slot: "icon", name: `${this.icon ? this.icon : "exclamation-triangle"}` }), h$1("slot", null)));
22
23
  }
23
24
  else {
24
- return (h$1("sl-alert", { exportparts: "base: successalert-base, icon:successalert-icon", class: "Success", type: "success", open: true }, h$1("sl-icon", { id: "icon", slot: "icon", name: `${this.icon ? this.icon : "check2-circle"}` }), h$1("slot", null)));
25
+ return (h$1("sl-alert", { exportparts: "base: successalert-base, icon:successalert-icon", class: `Success ${this.transparent ? "Transparent" : ""}`, type: "success", open: true }, h$1("sl-icon", { id: "icon", slot: "icon", name: `${this.icon ? this.icon : "check2-circle"}` }), h$1("slot", null)));
25
26
  }
26
27
  }
27
28
  };
@@ -7,7 +7,7 @@ import { c as createStyleSheet } from './JSS-67b5cff8.js';
7
7
  import './mixins-f750863a.js';
8
8
  import './sqm-text-span-view-4c17b8c9.js';
9
9
  import { a as useRegistrationForm } from './useRegistrationFormState-24d594ea.js';
10
- import { B as BaseRegistrationFormView } from './sqm-base-registration-form-view-193f1721.js';
10
+ import { B as BaseRegistrationFormView } from './sqm-base-registration-form-view-1a6bb4b4.js';
11
11
  import { P as PortalRegistrationFormView } from './sqm-portal-registration-form-view-8bdc3804.js';
12
12
  import './AsYouType-46f67d0d.js';
13
13
  import { u as usePortalRegistrationForm } from './usePortalRegistrationForm-1eb3cd72.js';
@@ -81,9 +81,12 @@ function usePortalGoogleRegistrationForm(props) {
81
81
  let formData = {};
82
82
  let errorMessage = null;
83
83
  formControls.forEach((control) => {
84
- if (!control.name || control.name !== "/email")
84
+ if (!control.name)
85
85
  return;
86
86
  jsonpointer.set(formData, control.name, control.value);
87
+ // only validate email field
88
+ if (control.name !== "/email")
89
+ return;
87
90
  if (control.required && !control.value)
88
91
  errorMessage = props.requiredFieldErrorMessage;
89
92
  if (typeof control.validationError === "function") {
@@ -321,9 +324,7 @@ const PortalGoogleRegistrationForm = class {
321
324
  ...states,
322
325
  emailDisabled: true,
323
326
  hidePasswords: showRegistrationForm.mode === "google",
324
- }, callbacks: callbacks, content: {
325
- ...content,
326
- }, refs: refs }));
327
+ }, callbacks: callbacks, content: content, refs: refs }));
327
328
  }
328
329
  };
329
330
  function useRegisterDemo(props) {
@@ -359,7 +360,7 @@ function useGoogleDemo(props) {
359
360
  mode: "base",
360
361
  });
361
362
  return cjs({
362
- emailValidationError: true,
363
+ emailValidationError: false,
363
364
  handleEmailSubmit: () => setShowRegistrationForm({ mode: "manual" }),
364
365
  showRegistrationForm,
365
366
  handleGoogleInit: () => setShowRegistrationForm({ mode: "google" }),
@@ -22,7 +22,7 @@ import { N as NavigationSidebarView } from './sqm-navigation-sidebar-view-0a2ec5
22
22
  import { N as NavigationSidebarItemView } from './sqm-navigation-sidebar-item-view-5a452423.js';
23
23
  import { P as PortalEmailVerificationView } from './sqm-portal-email-verification-view-7d86299c.js';
24
24
  import { P as PortalLoginView } from './sqm-portal-login-view-7670cd86.js';
25
- import { B as BaseRegistrationFormView } from './sqm-base-registration-form-view-193f1721.js';
25
+ import { B as BaseRegistrationFormView } from './sqm-base-registration-form-view-1a6bb4b4.js';
26
26
  import { P as PortalRegistrationFormView } from './sqm-portal-registration-form-view-8bdc3804.js';
27
27
  import { P as PortalProfileView } from './sqm-portal-profile-view-3ed13e4d.js';
28
28
  import './utilities-72c07b09.js';
@@ -6428,6 +6428,20 @@ const InfoAlert = () => {
6428
6428
  h("p", { part: "alert-title" }, "This is the title"),
6429
6429
  h("p", { part: "alert-description" }, "This is the description")));
6430
6430
  };
6431
+ const SuccessAlertTransparent = () => {
6432
+ return (h("sqm-form-message", { type: "success", transparent: true },
6433
+ h("p", { part: "alert-title" }, "This is the title"),
6434
+ h("p", { part: "alert-description" }, "This is the description")));
6435
+ };
6436
+ const ErrorAlertTransparent = () => (h("sqm-form-message", { type: "error", transparent: true },
6437
+ h("p", { part: "alert-title" }, "This is the title"),
6438
+ h("p", { part: "alert-description" }, "This is the description")));
6439
+ const WarningAlertTransparent = () => (h("sqm-form-message", { type: "warning", transparent: true },
6440
+ h("p", { part: "alert-title" }, "This is the title"),
6441
+ h("p", { part: "alert-description" }, "This is the description")));
6442
+ const InfoAlertTransparent = () => (h("sqm-form-message", { type: "info", transparent: true },
6443
+ h("p", { part: "alert-title" }, "This is the title"),
6444
+ h("p", { part: "alert-description" }, "This is the description")));
6431
6445
 
6432
6446
  const FormMessage = /*#__PURE__*/Object.freeze({
6433
6447
  __proto__: null,
@@ -6435,7 +6449,11 @@ const FormMessage = /*#__PURE__*/Object.freeze({
6435
6449
  SuccessAlert: SuccessAlert,
6436
6450
  ErrorAlert: ErrorAlert,
6437
6451
  WarningAlert: WarningAlert,
6438
- InfoAlert: InfoAlert
6452
+ InfoAlert: InfoAlert,
6453
+ SuccessAlertTransparent: SuccessAlertTransparent,
6454
+ ErrorAlertTransparent: ErrorAlertTransparent,
6455
+ WarningAlertTransparent: WarningAlertTransparent,
6456
+ InfoAlertTransparent: InfoAlertTransparent
6439
6457
  });
6440
6458
 
6441
6459
  const scenario$6 = "@author:kutay\n@owner:kutay\nFeature: Hero Image\n\n\tThe Hero Image component displays media images with a header, description and button using an overlay or a double column layout to offer an attrative widget page.\n\n\tBackground: A user on the portal is viewing the widget\n\t\tGiven a user viewing the Hero Image component\n\n\t@motivating\n\t@ui\n\tScenario: Overlay image displays header, description, and button with brand color\n\t\tGiven a Hero Image component configured with the following props\n\t\t\t| prop | value |\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000278/squatch-assets/bTwu1Um.png\" |\n\t\t\t| header | \"Klip Rewards\" |\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\n\t\t\t| button-text | \"Start earning\" |\n\t\t\t| layout | \"overlay\" |\n\t\tThen they see their image\n\t\tAnd the image has no padding\n\t\tAnd it has a brand colour overlay\n\t\tAnd \"Klip Rewards\" is displayed over top of the image in xxx-large font\n\t\tAnd below \"Refer friends or complete tasks while using Klip to earn rewards\" is displayed over top of the image in x-large font\n\t\tAnd below they see a brand coloured button with text \"Start earning\"\n\t\tAnd the text section has xxx-large padding\n\t\tWhen the component is scaled down to 599px\n\t\tThen the image is scaled to fit content\n\n\t@motivating\n\t@ui\n\tScenario Outline: Overlay image crop can be aligned left, center or right\n\t\tGiven a Hero Image component configured with the following props\n\t\t\t| prop | value |\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000278/squatch-assets/bTwu1Um.png\" |\n\t\t\t| header | \"Klip Rewards\" |\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\n\t\t\t| button-text | \"Start earning\" |\n\t\t\t| layout | \"overlay\" |\n\t\t\t| image-pos | <value> |\n\t\tThen the image with overlay is displayed\n\t\tWhen the component is scaled down to 599px\n\t\tThen the image is <alignment> to fit content\n\t\tExamples:\n\t\t\t| value | alignment |\n\t\t\t| left | left aligned |\n\t\t\t| center | centered |\n\t\t\t| right | right aligned |\n\t\t\t| N/A | centered |\n\n\t@motivating\n\t@ui\n\tScenario Outline: Overlay padding is configurable\n\t\tGiven a Hero Image component configured with the following props\n\t\t\t| prop | value |\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000278/squatch-assets/bTwu1Um.png\" |\n\t\t\t| header | \"Klip Rewards\" |\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\n\t\t\t| button-text | \"Start earning\" |\n\t\t\t| layout | \"overlay\" |\n\t\t\t| padding-text | <value> |\n\t\tThen the image with overlay is displayed\n\t\tAnd <padding> is applied around header, description and button\n\t\tExamples:\n\t\t\t| value | padding |\n\t\t\t| none | no padding |\n\t\t\t| xxx-small | xxx-small |\n\t\t\t| xx-small | xx-small |\n\t\t\t| x-small | x-small |\n\t\t\t| small | small |\n\t\t\t| medium | medium |\n\t\t\t| large | large |\n\t\t\t| x-large | x-large |\n\t\t\t| xx-large | xx-large |\n\t\t\t| xxx-large | xxx-large |\n\t\t\t| xxxx-large | xxxx-large |\n\t\t\t| N/A | no padding |\n\n\t@motivating\n\t@ui\n\tScenario Outline: Overlay color and background is configurable\n\t\tGiven a Hero Image component configured with the following props\n\t\t\t| prop | value |\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000278/squatch-assets/bTwu1Um.png\" |\n\t\t\t| header | \"Klip Rewards\" |\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\n\t\t\t| button-text | \"Start earning\" |\n\t\t\t| layout | \"overlay\" |\n\t\t\t| text-color | <textColor> |\n\t\t\t| overlay-color | <overlayColor> |\n\t\t\t| overlay-opacity | <overlayOpacity> |\n\t\tThen the image with overlay is displayed\n\t\tAnd the overlay is <overlayColor>\n\t\tAnd the overlay has <overlayOpacity>\n\t\tAnd the text is <textColor>\n\t\tExamples:\n\t\t\t| textColor | overlayColor | overlayOpacity |\n\t\t\t| #fffc4b | #ff7f7f | 0.9 |\n\t\t\t| #1d0314 | #4baa1a | 0 |\n\t\t\t| #211a27 | #aa481a | 1 |\n\n\t@motivating\n\t@ui\n\tScenario: Two-column layout displays an image on one side and on the other side a header, description, and button\n\t\tGiven a Hero Image component configured with the following props\n\t\t\t| prop | value |\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png\" |\n\t\t\t| header | \"Klip Rewards\" |\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\n\t\t\t| button-text | \"Start earning\" |\n\t\t\t| layout | \"columns\" |\n\t\tThen the image is displayed on the left\n\t\tAnd the following elements are displayed on the right\n\t\t\t| elements |\n\t\t\t| header |\n\t\t\t| description |\n\t\t\t| button |\n\t\tWhen the component is scaled down to 599px\n\t\tThen the two-column layout switches to a row layout\n\t\tAnd the image is displayed on top\n\t\tAnd the content is displayed below\n\n\t@motivating\n\t@ui\n\tScenario Outline: Image position is configurable for desktop and mobile\n\t\tGiven a Hero Image component configured with the following props\n\t\t\t| prop | value |\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png\" |\n\t\t\t| header | \"Klip Rewards\" |\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\n\t\t\t| button-text | \"Start earning\" |\n\t\t\t| layout | \"columns\" |\n\t\t\t| image-pos | <imagePos> |\n\t\t\t| image-mobile-pos | <imageMobilePos> |\n\t\tThen the image is displayed on the <imagePos>\n\t\tWhen the component is scaled down to 599px\n\t\tThen two-column layout switches to a row layout\n\t\tAnd image is displayed on the <imageMobilePos>\n\t\tExamples:\n\t\t\t| imagePos | imageMobilePos |\n\t\t\t| left | top |\n\t\t\t| right | bottom |\n\n\t@motivating\n\t@ui\n\tScenario Outline: Padding is configurable for the image and text of two column layouts\n\t\tGiven a Hero Image component configured with the following props\n\t\t\t| prop | value |\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png\" |\n\t\t\t| header | \"Klip Rewards\" |\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\n\t\t\t| button-text | \"Start earning\" |\n\t\t\t| layout | \"columns\" |\n\t\t\t| padding-text | <paddingText> |\n\t\t\t| padding-image | <paddingImage> |\n\t\tThen the two column layout is displayed\n\t\tAnd the image has padding <paddingImage>\n\t\tAnd the text has padding <paddingText>\n\t\tExamples:\n\t\t\t| paddingText | paddingImage |\n\t\t\t| xxx-small | xxx-small |\n\t\t\t| xx-small | xx-small |\n\t\t\t| x-small | x-small |\n\t\t\t| small | small |\n\t\t\t| medium | medium |\n\t\t\t| large | large |\n\t\t\t| x-large | x-large |\n\t\t\t| xx-large | xx-large |\n\t\t\t| xxx-large | xxx-large |\n\t\t\t| xxxx-large | xxxx-large |\n\t\t\t| none | none |\n\n\t@motivating\n\t@ui\n\tScenario Outline: Two-column layout image division percentage is configurable\n\t\tGiven a Hero Image component configured with the following props\n\t\t\t| prop | value |\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000248/squatch-assets/MVgOJn7.png\" |\n\t\t\t| header | \"Klip Rewards\" |\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\n\t\t\t| button-text | \"Start earning\" |\n\t\t\t| layout | \"columns\" |\n\t\t\t| image-percentage | <percent> |\n\t\tThen the two column layout is displayed\n\t\tAnd the image takes up <percent> of the two-column layout\n\t\tAnd the text elements take up the remainder of the space\n\t\tExamples:\n\t\t\t| percent |\n\t\t\t| 25% |\n\t\t\t| 42% |\n\t\t\t| 66% |\n\n\t@motivating\n\t@ui\n\tScenario: Two-column layout text and background color is configurable\n\t\tGiven a Hero Image component configured with the following props\n\t\t\t| prop | value |\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png\" |\n\t\t\t| header | \"Klip Rewards\" |\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\n\t\t\t| button-text | \"Start earning\" |\n\t\t\t| layout | \"columns\" |\n\t\t\t| text-color | <textColor> |\n\t\t\t| background-color | <backgroundColor> |\n\t\tThen the two column layout is displayed\n\t\tAnd the text has color <textColor>\n\t\tAnd the background has color <backgroundColor>\n\t\tExamples:\n\t\t\t| textColor | backgroundColor |\n\t\t\t| #fffc4b | #ff7f7f |\n\t\t\t| #1d0314 | #4baa1a |\n\t\t\t| #211a27 | #aa481a |";
@@ -1279,7 +1279,7 @@ const TaxAndCashMonolith = class {
1279
1279
  case "/4":
1280
1280
  return (h$1("sqm-banking-info-form", Object.assign({}, this.getGeneralStepTextProps("step4_"))));
1281
1281
  case "/dashboard":
1282
- return (h$1("sqm-tax-and-cash-dashboard", Object.assign({}, this.getGeneralStepTextProps("dashboard_"))));
1282
+ return (h$1("sqm-tax-and-cash-dashboard", Object.assign({}, this.getGeneralStepTextProps("dashboard_"), { stateController: props["sqm-tax-and-cash-dashboard_stateController"] || "{}" })));
1283
1283
  case "/error":
1284
1284
  return (h$1(ErrorView, { loadingErrorAlertHeader: this.loadingErrorAlertHeader, loadingErrorAlertDescription: intl.formatMessage({
1285
1285
  id: "loadingErrorAlertDescription",