@saasquatch/mint-components 2.0.0-22 → 2.0.0-23

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.
@@ -4666,7 +4666,7 @@ const TaxAndCashDashboard = class {
4666
4666
  this.cancelButton = "Cancel";
4667
4667
  /**
4668
4668
  * @undocumented
4669
- * @componentState { "title": "Payouts on hold", "props": { "states": { "payoutStatus": "HOLD" } }, "dependencies": ["sqm-tax-and-cash"] }
4669
+ * @componentState { "title": "Payouts on hold", "props": { "states": { "payoutStatus": "HOLD" } }, "dependencies": ["sqm-tax-and-cash-dashboard"], "uiGroup": "Dashboard Properties" }
4670
4670
  */
4671
4671
  this.stateController = "{}";
4672
4672
  domContextHooks_module.h$1(this);
@@ -4695,9 +4695,9 @@ const TaxAndCashDashboard = class {
4695
4695
  };
4696
4696
  function useDemoTaxAndCashDashboard(props) {
4697
4697
  const parsed = parseStates.parseStates(props.stateController);
4698
- const formatted = parsed["sqm-tax-and-cash-dashboard"] !== undefined
4699
- ? parsed["sqm-tax-and-cash-dashboard"]
4700
- : {};
4698
+ const formatted = Object.entries(parsed).reduce((acc, [key, value]) =>
4699
+ // @ts-ignore
4700
+ key === "sqm-tax-and-cash-dashboard" ? { ...acc, ...value } : acc, {});
4701
4701
  const merged = cjs.cjs.all([
4702
4702
  {
4703
4703
  states: {
@@ -4732,7 +4732,6 @@ function useDemoTaxAndCashDashboard(props) {
4732
4732
  onVerifyClick: () => console.log("verify"),
4733
4733
  },
4734
4734
  text: props.getTextProps(),
4735
- //@ts-ignore
4736
4735
  slots: {
4737
4736
  payoutDetailsCardSlot: (index.h("sqm-payout-details-card", { demoData: { states: { badgeStatus: "nextPayout" } } })),
4738
4737
  },
@@ -341,7 +341,7 @@ export class TaxAndCashDashboard {
341
341
  this.cancelButton = "Cancel";
342
342
  /**
343
343
  * @undocumented
344
- * @componentState { "title": "Payouts on hold", "props": { "states": { "payoutStatus": "HOLD" } }, "dependencies": ["sqm-tax-and-cash"] }
344
+ * @componentState { "title": "Payouts on hold", "props": { "states": { "payoutStatus": "HOLD" } }, "dependencies": ["sqm-tax-and-cash-dashboard"], "uiGroup": "Dashboard Properties" }
345
345
  */
346
346
  this.stateController = "{}";
347
347
  withHooks(this);
@@ -1889,7 +1889,7 @@ export class TaxAndCashDashboard {
1889
1889
  "text": undefined,
1890
1890
  "name": "undocumented"
1891
1891
  }, {
1892
- "text": "{ \"title\": \"Payouts on hold\", \"props\": { \"states\": { \"payoutStatus\": \"HOLD\" } }, \"dependencies\": [\"sqm-tax-and-cash\"] }",
1892
+ "text": "{ \"title\": \"Payouts on hold\", \"props\": { \"states\": { \"payoutStatus\": \"HOLD\" } }, \"dependencies\": [\"sqm-tax-and-cash-dashboard\"], \"uiGroup\": \"Dashboard Properties\" }",
1893
1893
  "name": "componentState"
1894
1894
  }],
1895
1895
  "text": ""
@@ -1902,9 +1902,9 @@ export class TaxAndCashDashboard {
1902
1902
  }
1903
1903
  function useDemoTaxAndCashDashboard(props) {
1904
1904
  const parsed = parseStates(props.stateController);
1905
- const formatted = parsed["sqm-tax-and-cash-dashboard"] !== undefined
1906
- ? parsed["sqm-tax-and-cash-dashboard"]
1907
- : {};
1905
+ const formatted = Object.entries(parsed).reduce((acc, [key, value]) =>
1906
+ // @ts-ignore
1907
+ key === "sqm-tax-and-cash-dashboard" ? { ...acc, ...value } : acc, {});
1908
1908
  const merged = deepmerge.all([
1909
1909
  {
1910
1910
  states: {
@@ -1939,7 +1939,6 @@ function useDemoTaxAndCashDashboard(props) {
1939
1939
  onVerifyClick: () => console.log("verify"),
1940
1940
  },
1941
1941
  text: props.getTextProps(),
1942
- //@ts-ignore
1943
1942
  slots: {
1944
1943
  payoutDetailsCardSlot: (h("sqm-payout-details-card", { demoData: { states: { badgeStatus: "nextPayout" } } })),
1945
1944
  },
@@ -4662,7 +4662,7 @@ const TaxAndCashDashboard = class {
4662
4662
  this.cancelButton = "Cancel";
4663
4663
  /**
4664
4664
  * @undocumented
4665
- * @componentState { "title": "Payouts on hold", "props": { "states": { "payoutStatus": "HOLD" } }, "dependencies": ["sqm-tax-and-cash"] }
4665
+ * @componentState { "title": "Payouts on hold", "props": { "states": { "payoutStatus": "HOLD" } }, "dependencies": ["sqm-tax-and-cash-dashboard"], "uiGroup": "Dashboard Properties" }
4666
4666
  */
4667
4667
  this.stateController = "{}";
4668
4668
  h$1(this);
@@ -4691,9 +4691,9 @@ const TaxAndCashDashboard = class {
4691
4691
  };
4692
4692
  function useDemoTaxAndCashDashboard(props) {
4693
4693
  const parsed = parseStates(props.stateController);
4694
- const formatted = parsed["sqm-tax-and-cash-dashboard"] !== undefined
4695
- ? parsed["sqm-tax-and-cash-dashboard"]
4696
- : {};
4694
+ const formatted = Object.entries(parsed).reduce((acc, [key, value]) =>
4695
+ // @ts-ignore
4696
+ key === "sqm-tax-and-cash-dashboard" ? { ...acc, ...value } : acc, {});
4697
4697
  const merged = cjs.all([
4698
4698
  {
4699
4699
  states: {
@@ -4728,7 +4728,6 @@ function useDemoTaxAndCashDashboard(props) {
4728
4728
  onVerifyClick: () => console.log("verify"),
4729
4729
  },
4730
4730
  text: props.getTextProps(),
4731
- //@ts-ignore
4732
4731
  slots: {
4733
4732
  payoutDetailsCardSlot: (h("sqm-payout-details-card", { demoData: { states: { badgeStatus: "nextPayout" } } })),
4734
4733
  },