@saasquatch/mint-components 2.0.8-5 → 2.0.8-6

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.
@@ -3368,7 +3368,7 @@ const PayoutStatusAlert = class {
3368
3368
  }
3369
3369
  };
3370
3370
  function useDemoPayoutStatusAlert(props) {
3371
- var _a, _b;
3371
+ var _a, _b, _c, _d;
3372
3372
  const states = extractProps.parseStates(props.stateController);
3373
3373
  const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-payout-status-alert"
3374
3374
  ? { ...prev, ...states[key] }
@@ -3386,10 +3386,10 @@ function useDemoPayoutStatusAlert(props) {
3386
3386
  // veriffLoading: props.demoData.states.veriffLoading || false,
3387
3387
  // },
3388
3388
  states: {
3389
- error: false,
3389
+ error: (_d = (_c = props.demoData) === null || _c === void 0 ? void 0 : _c.states) === null || _d === void 0 ? void 0 : _d.error,
3390
3390
  status: states.status,
3391
- loading: false,
3392
- veriffLoading: false,
3391
+ loading: props.demoData.states.loading,
3392
+ veriffLoading: props.demoData.states.veriffLoading,
3393
3393
  },
3394
3394
  data: { type: "SquatchAdmin" },
3395
3395
  text: props.getTextProps(),
@@ -1054,7 +1054,7 @@ export class PayoutStatusAlert {
1054
1054
  }; }
1055
1055
  }
1056
1056
  function useDemoPayoutStatusAlert(props) {
1057
- var _a, _b;
1057
+ var _a, _b, _c, _d;
1058
1058
  const states = parseStates(props.stateController);
1059
1059
  const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-payout-status-alert"
1060
1060
  ? { ...prev, ...states[key] }
@@ -1072,10 +1072,10 @@ function useDemoPayoutStatusAlert(props) {
1072
1072
  // veriffLoading: props.demoData.states.veriffLoading || false,
1073
1073
  // },
1074
1074
  states: {
1075
- error: false,
1075
+ error: (_d = (_c = props.demoData) === null || _c === void 0 ? void 0 : _c.states) === null || _d === void 0 ? void 0 : _d.error,
1076
1076
  status: states.status,
1077
- loading: false,
1078
- veriffLoading: false,
1077
+ loading: props.demoData.states.loading,
1078
+ veriffLoading: props.demoData.states.veriffLoading,
1079
1079
  },
1080
1080
  data: { type: "SquatchAdmin" },
1081
1081
  text: props.getTextProps(),
@@ -3364,7 +3364,7 @@ const PayoutStatusAlert = class {
3364
3364
  }
3365
3365
  };
3366
3366
  function useDemoPayoutStatusAlert(props) {
3367
- var _a, _b;
3367
+ var _a, _b, _c, _d;
3368
3368
  const states = parseStates(props.stateController);
3369
3369
  const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-payout-status-alert"
3370
3370
  ? { ...prev, ...states[key] }
@@ -3382,10 +3382,10 @@ function useDemoPayoutStatusAlert(props) {
3382
3382
  // veriffLoading: props.demoData.states.veriffLoading || false,
3383
3383
  // },
3384
3384
  states: {
3385
- error: false,
3385
+ error: (_d = (_c = props.demoData) === null || _c === void 0 ? void 0 : _c.states) === null || _d === void 0 ? void 0 : _d.error,
3386
3386
  status: states.status,
3387
- loading: false,
3388
- veriffLoading: false,
3387
+ loading: props.demoData.states.loading,
3388
+ veriffLoading: props.demoData.states.veriffLoading,
3389
3389
  },
3390
3390
  data: { type: "SquatchAdmin" },
3391
3391
  text: props.getTextProps(),