@saasquatch/mint-components 2.0.0-1 → 2.0.0-11

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 (53) hide show
  1. package/dist/cjs/{ShadowViewAddon-23b04c91.js → ShadowViewAddon-016bebfd.js} +1 -1
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/mint-components.cjs.js +1 -1
  4. package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +0 -1
  5. package/dist/cjs/sqm-big-stat_46.cjs.entry.js +29 -46
  6. package/dist/cjs/sqm-empty_4.cjs.entry.js +1 -1
  7. package/dist/cjs/{sqm-portal-container-view-07e4343f.js → sqm-portal-container-view-ca86b9e5.js} +1 -1
  8. package/dist/cjs/sqm-stencilbook.cjs.entry.js +6 -5
  9. package/dist/collection/components/sqm-hero/sqm-hero.js +5 -13
  10. package/dist/collection/components/sqm-portal-container/sqm-portal-container-view.js +1 -1
  11. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +1 -34
  12. package/dist/collection/components/tax-and-cash/TaxForm.stories.js +4 -3
  13. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +78 -3
  14. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +0 -1
  15. package/dist/esm/{ShadowViewAddon-c0bd62f7.js → ShadowViewAddon-4cde160a.js} +1 -1
  16. package/dist/esm/loader.js +1 -1
  17. package/dist/esm/mint-components.js +1 -1
  18. package/dist/esm/sqm-banking-info-form_10.entry.js +0 -1
  19. package/dist/esm/sqm-big-stat_46.entry.js +29 -46
  20. package/dist/esm/sqm-empty_4.entry.js +1 -1
  21. package/dist/esm/{sqm-portal-container-view-176e92e3.js → sqm-portal-container-view-16309b22.js} +1 -1
  22. package/dist/esm/sqm-stencilbook.entry.js +6 -5
  23. package/dist/esm-es5/{ShadowViewAddon-c0bd62f7.js → ShadowViewAddon-4cde160a.js} +1 -1
  24. package/dist/esm-es5/loader.js +1 -1
  25. package/dist/esm-es5/mint-components.js +1 -1
  26. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
  27. package/dist/esm-es5/sqm-big-stat_46.entry.js +1 -1
  28. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  29. package/dist/esm-es5/{sqm-portal-container-view-176e92e3.js → sqm-portal-container-view-16309b22.js} +1 -1
  30. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  31. package/dist/mint-components/mint-components.esm.js +1 -1
  32. package/dist/mint-components/p-16a6f4f4.system.entry.js +1 -0
  33. package/dist/mint-components/{p-9580aac3.js → p-1fa9ef02.js} +1 -1
  34. package/dist/mint-components/{p-76d4ef41.entry.js → p-3bf5cd51.entry.js} +1 -1
  35. package/dist/mint-components/{p-13e66b37.system.entry.js → p-3d713973.system.entry.js} +1 -1
  36. package/dist/mint-components/{p-a38dd63f.system.entry.js → p-3ea29bac.system.entry.js} +1 -1
  37. package/dist/mint-components/{p-7d735c9c.js → p-4ffc5bce.js} +1 -1
  38. package/dist/mint-components/p-92bed2ad.system.js +1 -0
  39. package/dist/mint-components/p-967a9040.system.js +1 -1
  40. package/dist/mint-components/{p-35081b0c.system.entry.js → p-9fed62f8.system.entry.js} +1 -1
  41. package/dist/mint-components/{p-a0730259.entry.js → p-ab79297a.entry.js} +1 -1
  42. package/dist/mint-components/{p-bb452830.system.js → p-c62b277d.system.js} +1 -1
  43. package/dist/mint-components/{p-b8d3fb57.entry.js → p-ca216d67.entry.js} +7 -7
  44. package/dist/mint-components/{p-f860e7f1.entry.js → p-e110688b.entry.js} +2 -2
  45. package/dist/types/components/sqm-hero/sqm-hero.d.ts +4 -4
  46. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +14 -0
  47. package/dist/types/components.d.ts +36 -8
  48. package/docs/docs.docx +0 -0
  49. package/docs/raisins.json +1 -1
  50. package/grapesjs/grapesjs.js +1 -1
  51. package/package.json +1 -1
  52. package/dist/mint-components/p-a6f4fb03.system.js +0 -1
  53. package/dist/mint-components/p-c5fea579.system.entry.js +0 -1
@@ -34,8 +34,8 @@ const sqmPortalResetPasswordView = require('./sqm-portal-reset-password-view-25e
34
34
  const sqmPortalVerifyEmailView = require('./sqm-portal-verify-email-view-1c4e781f.js');
35
35
  require('./ErrorView-3f91e5ab.js');
36
36
  const sqmQrCodeView = require('./sqm-qr-code-view-4ccf89da.js');
37
- const ShadowViewAddon = require('./ShadowViewAddon-23b04c91.js');
38
- const sqmPortalContainerView = require('./sqm-portal-container-view-07e4343f.js');
37
+ const ShadowViewAddon = require('./ShadowViewAddon-016bebfd.js');
38
+ const sqmPortalContainerView = require('./sqm-portal-container-view-ca86b9e5.js');
39
39
  const IndirectTaxDetailsView = require('./IndirectTaxDetailsView-e5f70b8b.js');
40
40
  const utils = require('./utils-83d125fa.js');
41
41
  const sqmLeadInputFieldView = require('./sqm-lead-input-field-view-06ed3632.js');
@@ -16722,9 +16722,10 @@ const TaxAndCashDashboardW9ThresholdReached = () => {
16722
16722
  documentTypeString: utils.taxTypeToName("W9"),
16723
16723
  dateSubmitted: "Jan 18th, 2025",
16724
16724
  noFormNeeded: false,
16725
- notRegistered: true,
16725
+ notRegistered: false,
16726
16726
  showNewFormDialog: false,
16727
16727
  hasHold: false,
16728
+ enforceUsTaxComplianceOption: "CASH_ONLY_DEFER_W9",
16728
16729
  },
16729
16730
  } }));
16730
16731
  };
@@ -16750,7 +16751,7 @@ const TaxAndCashDashboardPayoutsOnHold = () => {
16750
16751
  return (index.h("sqm-tax-and-cash-dashboard", { demoData: {
16751
16752
  ...dashboardProps,
16752
16753
  states: {
16753
- payoutStatus: "DONE",
16754
+ payoutStatus: "HOLD",
16754
16755
  veriffLoading: false,
16755
16756
  canEditPayoutInfo: true,
16756
16757
  disabled: true,
@@ -16762,7 +16763,7 @@ const TaxAndCashDashboardPayoutsOnHold = () => {
16762
16763
  indirectTaxNumber: "123456",
16763
16764
  country: "Slovania",
16764
16765
  showNewFormDialog: false,
16765
- hasHold: true,
16766
+ hasHold: false,
16766
16767
  },
16767
16768
  } }));
16768
16769
  };
@@ -24,13 +24,6 @@ export class Hero {
24
24
  * @uiName Minimum height (in px)
25
25
  */
26
26
  this.minHeight = 200;
27
- /**
28
- * Add an image or select a color. Recommended image aspect ratio of 4:5
29
- *
30
- * @uiName Background
31
- * @uiWidget Background
32
- */
33
- this.background = "#f9fafb";
34
27
  /**
35
28
  * @uiName Padding size
36
29
  * @uiEnum ["none", "small", "medium","large"]
@@ -129,17 +122,16 @@ export class Hero {
129
122
  "optional": true,
130
123
  "docs": {
131
124
  "tags": [{
132
- "text": "Background",
125
+ "text": "Content background",
133
126
  "name": "uiName"
134
127
  }, {
135
128
  "text": "Background",
136
129
  "name": "uiWidget"
137
130
  }],
138
- "text": "Add an image or select a color. Recommended image aspect ratio of 4:5"
131
+ "text": "Content background color or image (for use in the left column)"
139
132
  },
140
133
  "attribute": "background",
141
- "reflect": false,
142
- "defaultValue": "\"#f9fafb\""
134
+ "reflect": false
143
135
  },
144
136
  "paddingSize": {
145
137
  "type": "string",
@@ -180,13 +172,13 @@ export class Hero {
180
172
  "optional": true,
181
173
  "docs": {
182
174
  "tags": [{
183
- "text": "Secondary background",
175
+ "text": "Splash image",
184
176
  "name": "uiName"
185
177
  }, {
186
178
  "text": "Background",
187
179
  "name": "uiWidget"
188
180
  }],
189
- "text": "Secondary background image or color (for use in the right column)"
181
+ "text": "Splash image or background color (for use in the right column)"
190
182
  },
191
183
  "attribute": "secondary-background",
192
184
  "reflect": false
@@ -14,7 +14,7 @@ export function PortalContainerView(props, children) {
14
14
  maxWidth: props.maxWidth,
15
15
  margin: props.center && "auto",
16
16
  justifyContent: props.justifyContent,
17
- backgroundColor: props.backgroundColor || "var(--sqm-portal-background)",
17
+ backgroundColor: props.backgroundColor || "inherit",
18
18
  },
19
19
  };
20
20
  const vanillaStyle = `
@@ -793,39 +793,6 @@ function useRewardExchangeListDemo(props) {
793
793
  const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-reward-exchange-list"
794
794
  ? { ...prev, ...states[key] }
795
795
  : { ...prev, [`${key}_stateController`]: states[key] }, {});
796
- const finalProps = deepmerge({ ...demoRewardExchange, content: { text: props } },
797
- // {
798
- // states: {
799
- // content: {
800
- // text: props,
801
- // },
802
- // redeemStage: "chooseReward",
803
- // amount: 0,
804
- // selectedStep: undefined,
805
- // selectedItem: undefined,
806
- // open: false,
807
- // exchangeError: false,
808
- // queryError: false,
809
- // loading: false,
810
- // noExchangeOptions: false,
811
- // // empty: EmptySlot(),
812
- // },
813
- // data: {
814
- // // shareCode: "SHARECODE123",
815
- // exchangeList: demoRewardExchange.data.exchangeList,
816
- // },
817
- // callbacks: {
818
- // exchangeReward: () => {},
819
- // setExchangeState: (_: ExchangeState) => {},
820
- // setStage: (_: Stages) => {},
821
- // resetState: () => {},
822
- // copyFuelTankCode: () => {},
823
- // },
824
- // refs: {
825
- // canvasRef: {},
826
- // },
827
- // },
828
- props.demoData || formatted || {}, { arrayMerge: (_, a) => a });
829
- console.log({ finalProps });
796
+ const finalProps = deepmerge({ ...demoRewardExchange, content: { text: props } }, props.demoData || formatted || {}, { arrayMerge: (_, a) => a });
830
797
  return finalProps;
831
798
  }
@@ -1125,9 +1125,10 @@ export const TaxAndCashDashboardW9ThresholdReached = () => {
1125
1125
  documentTypeString: taxTypeToName("W9"),
1126
1126
  dateSubmitted: "Jan 18th, 2025",
1127
1127
  noFormNeeded: false,
1128
- notRegistered: true,
1128
+ notRegistered: false,
1129
1129
  showNewFormDialog: false,
1130
1130
  hasHold: false,
1131
+ enforceUsTaxComplianceOption: "CASH_ONLY_DEFER_W9",
1131
1132
  },
1132
1133
  } }));
1133
1134
  };
@@ -1153,7 +1154,7 @@ export const TaxAndCashDashboardPayoutsOnHold = () => {
1153
1154
  return (h("sqm-tax-and-cash-dashboard", { demoData: {
1154
1155
  ...dashboardProps,
1155
1156
  states: {
1156
- payoutStatus: "DONE",
1157
+ payoutStatus: "HOLD",
1157
1158
  veriffLoading: false,
1158
1159
  canEditPayoutInfo: true,
1159
1160
  disabled: true,
@@ -1165,7 +1166,7 @@ export const TaxAndCashDashboardPayoutsOnHold = () => {
1165
1166
  indirectTaxNumber: "123456",
1166
1167
  country: "Slovania",
1167
1168
  showNewFormDialog: false,
1168
- hasHold: true,
1169
+ hasHold: false,
1169
1170
  },
1170
1171
  } }));
1171
1172
  };
@@ -5,6 +5,7 @@ import deepmerge from "deepmerge";
5
5
  import { getProps } from "../../../utils/utils";
6
6
  import { PayoutStatusAlertView, } from "./sqm-payout-status-alert-view";
7
7
  import { usePayoutStatus } from "./usePayoutStatus";
8
+ import { parseStates } from "../../../utils/parseStates";
8
9
  /**
9
10
  * @uiName Payout Status Alert
10
11
  * @validParents ["sqm-portal-container","div","sqm-hero","sqm-instant-access-registration","sqm-brand","sqb-program-section","sqb-conditional-section"]
@@ -109,6 +110,20 @@ export class PayoutStatusAlert {
109
110
  * @uiName Error description
110
111
  */
111
112
  this.errorDescription = "There was an error with determining your payout status.";
113
+ /**
114
+ * @undocumented
115
+ * @componentState { "title": "Information Required", "props": { "demoData": { "states": { "status": "INFORMATION_REQUIRED" } } }, "dependencies": ["sqm-payout-status-alert"] }
116
+ * @componentState { "title": "Over W9 Threshold - Defer", "props": { "demoData": { "states": { "status": "OVER_W9_THRESHOLD", "enforceUsTaxComplianceOption": "CASH_ONLY_DEFER_W9" } } }, "dependencies": ["sqm-payout-status-alert"] }
117
+ * @componentState { "title": "Over W9 Threshold - Hold", "props": { "demoData": { "states": { "status": "OVER_W9_THRESHOLD", "enforceUsTaxComplianceOption": "NONE" } } }, "dependencies": ["sqm-payout-status-alert"] }
118
+ * @componentState { "title": "Verification Required", "props": { "demoData": { "states": { "status": "VERIFICATION:REQUIRED" } } }, "dependencies": ["sqm-payout-status-alert"] }
119
+ * @componentState { "title": "Verification Internal", "props": { "demoData": { "states": { "status": "VERIFICATION:INTERNAL" } } }, "dependencies": ["sqm-payout-status-alert"] }
120
+ * @componentState { "title": "Verification Review", "props": { "demoData": { "states": { "status": "VERIFICATION:REVIEW" } } }, "dependencies": ["sqm-payout-status-alert"] }
121
+ * @componentState { "title": "Verification Failed", "props": { "demoData": { "states": { "status": "VERIFICATION:FAILED" } } }, "dependencies": ["sqm-payout-status-alert"] }
122
+ * @componentState { "title": "Account Review", "props": { "demoData": { "states": { "status": "ACCOUNT_REVIEW" } } }, "dependencies": ["sqm-payout-status-alert"] }
123
+ * @componentState { "title": "Hold", "props": { "demoData": { "states": { "status": "HOLD" } } }, "dependencies": ["sqm-payout-status-alert"] }
124
+ * @componentState { "title": "Error State", "props": { "demoData": { "states": { "error": true } } }, "dependencies": ["sqm-payout-status-alert"] }
125
+ */
126
+ this.stateController = "{}";
112
127
  withHooks(this);
113
128
  }
114
129
  disconnectedCallback() { }
@@ -628,6 +643,57 @@ export class PayoutStatusAlert {
628
643
  "reflect": false,
629
644
  "defaultValue": "\"There was an error with determining your payout status.\""
630
645
  },
646
+ "stateController": {
647
+ "type": "string",
648
+ "mutable": false,
649
+ "complexType": {
650
+ "original": "string",
651
+ "resolved": "string",
652
+ "references": {}
653
+ },
654
+ "required": false,
655
+ "optional": true,
656
+ "docs": {
657
+ "tags": [{
658
+ "text": undefined,
659
+ "name": "undocumented"
660
+ }, {
661
+ "text": "{ \"title\": \"Information Required\", \"props\": { \"demoData\": { \"states\": { \"status\": \"INFORMATION_REQUIRED\" } } }, \"dependencies\": [\"sqm-payout-status-alert\"] }",
662
+ "name": "componentState"
663
+ }, {
664
+ "text": "{ \"title\": \"Over W9 Threshold - Defer\", \"props\": { \"demoData\": { \"states\": { \"status\": \"OVER_W9_THRESHOLD\", \"enforceUsTaxComplianceOption\": \"CASH_ONLY_DEFER_W9\" } } }, \"dependencies\": [\"sqm-payout-status-alert\"] }",
665
+ "name": "componentState"
666
+ }, {
667
+ "text": "{ \"title\": \"Over W9 Threshold - Hold\", \"props\": { \"demoData\": { \"states\": { \"status\": \"OVER_W9_THRESHOLD\", \"enforceUsTaxComplianceOption\": \"NONE\" } } }, \"dependencies\": [\"sqm-payout-status-alert\"] }",
668
+ "name": "componentState"
669
+ }, {
670
+ "text": "{ \"title\": \"Verification Required\", \"props\": { \"demoData\": { \"states\": { \"status\": \"VERIFICATION:REQUIRED\" } } }, \"dependencies\": [\"sqm-payout-status-alert\"] }",
671
+ "name": "componentState"
672
+ }, {
673
+ "text": "{ \"title\": \"Verification Internal\", \"props\": { \"demoData\": { \"states\": { \"status\": \"VERIFICATION:INTERNAL\" } } }, \"dependencies\": [\"sqm-payout-status-alert\"] }",
674
+ "name": "componentState"
675
+ }, {
676
+ "text": "{ \"title\": \"Verification Review\", \"props\": { \"demoData\": { \"states\": { \"status\": \"VERIFICATION:REVIEW\" } } }, \"dependencies\": [\"sqm-payout-status-alert\"] }",
677
+ "name": "componentState"
678
+ }, {
679
+ "text": "{ \"title\": \"Verification Failed\", \"props\": { \"demoData\": { \"states\": { \"status\": \"VERIFICATION:FAILED\" } } }, \"dependencies\": [\"sqm-payout-status-alert\"] }",
680
+ "name": "componentState"
681
+ }, {
682
+ "text": "{ \"title\": \"Account Review\", \"props\": { \"demoData\": { \"states\": { \"status\": \"ACCOUNT_REVIEW\" } } }, \"dependencies\": [\"sqm-payout-status-alert\"] }",
683
+ "name": "componentState"
684
+ }, {
685
+ "text": "{ \"title\": \"Hold\", \"props\": { \"demoData\": { \"states\": { \"status\": \"HOLD\" } } }, \"dependencies\": [\"sqm-payout-status-alert\"] }",
686
+ "name": "componentState"
687
+ }, {
688
+ "text": "{ \"title\": \"Error State\", \"props\": { \"demoData\": { \"states\": { \"error\": true } } }, \"dependencies\": [\"sqm-payout-status-alert\"] }",
689
+ "name": "componentState"
690
+ }],
691
+ "text": ""
692
+ },
693
+ "attribute": "state-controller",
694
+ "reflect": false,
695
+ "defaultValue": "\"{}\""
696
+ },
631
697
  "demoData": {
632
698
  "type": "unknown",
633
699
  "mutable": false,
@@ -661,12 +727,16 @@ export class PayoutStatusAlert {
661
727
  }; }
662
728
  }
663
729
  function useDemoPayoutStatusAlert(props) {
664
- return deepmerge({
730
+ const parsed = parseStates(props.stateController);
731
+ const stateControllerData = parsed["sqm-payout-status-alert"]
732
+ ? { states: parsed["sqm-payout-status-alert"] }
733
+ : {};
734
+ const base = {
665
735
  states: {
666
736
  error: false,
667
737
  status: "INFORMATION_REQUIRED",
668
738
  loading: false,
669
- showVerifyIdentity: false,
739
+ veriffLoading: false,
670
740
  },
671
741
  data: { type: "SquatchAdmin" },
672
742
  text: props.getTextProps(),
@@ -674,5 +744,10 @@ function useDemoPayoutStatusAlert(props) {
674
744
  onTermsClick: () => { },
675
745
  onClick: () => console.log("show"),
676
746
  },
677
- }, props.demoData || {}, { arrayMerge: (_, a) => a });
747
+ };
748
+ return deepmerge.all([
749
+ base,
750
+ props.demoData || {},
751
+ stateControllerData,
752
+ ], { arrayMerge: (_, a) => a });
678
753
  }
@@ -1900,7 +1900,6 @@ export class TaxAndCashDashboard {
1900
1900
  }; }
1901
1901
  }
1902
1902
  function useDemoTaxAndCashDashboard(props) {
1903
- console.log("dashboard", { props });
1904
1903
  // @ts-ignore
1905
1904
  return deepmerge({
1906
1905
  states: {
@@ -13,7 +13,7 @@ import { l as luxon } from './luxon-bbf75a9d.js';
13
13
  import { T as TextSpanView } from './sqm-text-span-view-4c17b8c9.js';
14
14
  import { p as pathToRegexp } from './index-ffa26b43.js';
15
15
  import { a as isValidColor, b as isMobile } from './utilities-72c07b09.js';
16
- import { a as PortalSectionView, P as PortalContainerView } from './sqm-portal-container-view-176e92e3.js';
16
+ import { a as PortalSectionView, P as PortalContainerView } from './sqm-portal-container-view-16309b22.js';
17
17
 
18
18
  function BigStatView(props) {
19
19
  const { statvalue, flexReverse, alignment, statTextColor, statFontSize, descriptionTextColor, descriptionFontSize, statFontWeight, } = props;