@saasquatch/mint-components 2.0.7 → 2.0.8-1

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.
@@ -2943,6 +2943,7 @@ const sheet$2 = JSS.createStyleSheet(style$2);
2943
2943
  const styleString$2 = sheet$2.toString();
2944
2944
  function PayoutStatusAlertView(props) {
2945
2945
  const { text, states, data, callbacks } = props;
2946
+ console.log("test 123456");
2946
2947
  function getAlert(status) {
2947
2948
  if (states.error)
2948
2949
  return {
@@ -3176,6 +3177,7 @@ function PayoutStatusAlertView(props) {
3176
3177
  return index.h("sl-skeleton", { class: sheet$2.classes.SkeletonOne });
3177
3178
  }
3178
3179
  const alertDetails = getAlert(states.status);
3180
+ console.log("status is ", states.status, alertDetails);
3179
3181
  if (states.status === "DONE" || !alertDetails) {
3180
3182
  return index.h("div", null);
3181
3183
  }
@@ -3366,16 +3368,17 @@ const PayoutStatusAlert = class {
3366
3368
  }
3367
3369
  };
3368
3370
  function useDemoPayoutStatusAlert(props) {
3371
+ var _a;
3369
3372
  const states = extractProps.parseStates(props.stateController);
3370
3373
  const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-payout-status-alert"
3371
3374
  ? { ...prev, ...states[key] }
3372
3375
  : { ...prev, [`${key}_stateController`]: states[key] }, {});
3373
3376
  return cjs.cjs({
3374
3377
  states: {
3375
- error: false,
3376
- status: props.demoData.states.status,
3377
- loading: false,
3378
- veriffLoading: false,
3378
+ error: props.demoData.states.error || false,
3379
+ status: states.status ? states.status : (_a = props.demoData.states) === null || _a === void 0 ? void 0 : _a.status,
3380
+ loading: props.demoData.states.loading || false,
3381
+ veriffLoading: props.demoData.states.veriffLoading || false,
3379
3382
  },
3380
3383
  data: { type: "SquatchAdmin" },
3381
3384
  text: props.getTextProps(),
@@ -17015,6 +17015,7 @@ const defaultProps$r = {
17015
17015
  loading: false,
17016
17016
  veriffLoading: false,
17017
17017
  };
17018
+ const Test = () => index.h("sqm-payout-status-alert", null);
17018
17019
  const InformationRequired = () => (index.h("sqm-payout-status-alert", { demoData: { states: defaultProps$r } }));
17019
17020
  const VerifyIdentity = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$r, status: "VERIFICATION:REQUIRED" } } }));
17020
17021
  const VerifyIdentityRequiredInternal = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$r, status: "VERIFICATION:INTERNAL" } } }));
@@ -17041,6 +17042,7 @@ const PaymentReturned = () => (index.h("sqm-payout-status-alert", { demoData: {
17041
17042
  const PayoutStatusAlert = /*#__PURE__*/Object.freeze({
17042
17043
  __proto__: null,
17043
17044
  'default': PayoutStatusAlert_stories,
17045
+ Test: Test,
17044
17046
  InformationRequired: InformationRequired,
17045
17047
  VerifyIdentity: VerifyIdentity,
17046
17048
  VerifyIdentityRequiredInternal: VerifyIdentityRequiredInternal,
@@ -8,6 +8,7 @@ const defaultProps = {
8
8
  loading: false,
9
9
  veriffLoading: false,
10
10
  };
11
+ export const Test = () => h("sqm-payout-status-alert", null);
11
12
  export const InformationRequired = () => (h("sqm-payout-status-alert", { demoData: { states: defaultProps } }));
12
13
  export const VerifyIdentity = () => (h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps, status: "VERIFICATION:REQUIRED" } } }));
13
14
  export const VerifyIdentityRequiredInternal = () => (h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps, status: "VERIFICATION:INTERNAL" } } }));
@@ -42,6 +42,7 @@ const sheet = createStyleSheet(style);
42
42
  const styleString = sheet.toString();
43
43
  export function PayoutStatusAlertView(props) {
44
44
  const { text, states, data, callbacks } = props;
45
+ console.log("test 123456");
45
46
  function getAlert(status) {
46
47
  if (states.error)
47
48
  return {
@@ -275,6 +276,7 @@ export function PayoutStatusAlertView(props) {
275
276
  return h("sl-skeleton", { class: sheet.classes.SkeletonOne });
276
277
  }
277
278
  const alertDetails = getAlert(states.status);
279
+ console.log("status is ", states.status, alertDetails);
278
280
  if (states.status === "DONE" || !alertDetails) {
279
281
  return h("div", null);
280
282
  }
@@ -1054,16 +1054,17 @@ export class PayoutStatusAlert {
1054
1054
  }; }
1055
1055
  }
1056
1056
  function useDemoPayoutStatusAlert(props) {
1057
+ var _a;
1057
1058
  const states = parseStates(props.stateController);
1058
1059
  const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-payout-status-alert"
1059
1060
  ? { ...prev, ...states[key] }
1060
1061
  : { ...prev, [`${key}_stateController`]: states[key] }, {});
1061
1062
  return deepmerge({
1062
1063
  states: {
1063
- error: false,
1064
- status: props.demoData.states.status,
1065
- loading: false,
1066
- veriffLoading: false,
1064
+ error: props.demoData.states.error || false,
1065
+ status: states.status ? states.status : (_a = props.demoData.states) === null || _a === void 0 ? void 0 : _a.status,
1066
+ loading: props.demoData.states.loading || false,
1067
+ veriffLoading: props.demoData.states.veriffLoading || false,
1067
1068
  },
1068
1069
  data: { type: "SquatchAdmin" },
1069
1070
  text: props.getTextProps(),
@@ -2939,6 +2939,7 @@ const sheet$2 = createStyleSheet(style$2);
2939
2939
  const styleString$2 = sheet$2.toString();
2940
2940
  function PayoutStatusAlertView(props) {
2941
2941
  const { text, states, data, callbacks } = props;
2942
+ console.log("test 123456");
2942
2943
  function getAlert(status) {
2943
2944
  if (states.error)
2944
2945
  return {
@@ -3172,6 +3173,7 @@ function PayoutStatusAlertView(props) {
3172
3173
  return h$1("sl-skeleton", { class: sheet$2.classes.SkeletonOne });
3173
3174
  }
3174
3175
  const alertDetails = getAlert(states.status);
3176
+ console.log("status is ", states.status, alertDetails);
3175
3177
  if (states.status === "DONE" || !alertDetails) {
3176
3178
  return h$1("div", null);
3177
3179
  }
@@ -3362,16 +3364,17 @@ const PayoutStatusAlert = class {
3362
3364
  }
3363
3365
  };
3364
3366
  function useDemoPayoutStatusAlert(props) {
3367
+ var _a;
3365
3368
  const states = parseStates(props.stateController);
3366
3369
  const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-payout-status-alert"
3367
3370
  ? { ...prev, ...states[key] }
3368
3371
  : { ...prev, [`${key}_stateController`]: states[key] }, {});
3369
3372
  return cjs({
3370
3373
  states: {
3371
- error: false,
3372
- status: props.demoData.states.status,
3373
- loading: false,
3374
- veriffLoading: false,
3374
+ error: props.demoData.states.error || false,
3375
+ status: states.status ? states.status : (_a = props.demoData.states) === null || _a === void 0 ? void 0 : _a.status,
3376
+ loading: props.demoData.states.loading || false,
3377
+ veriffLoading: props.demoData.states.veriffLoading || false,
3375
3378
  },
3376
3379
  data: { type: "SquatchAdmin" },
3377
3380
  text: props.getTextProps(),
@@ -17011,6 +17011,7 @@ const defaultProps$r = {
17011
17011
  loading: false,
17012
17012
  veriffLoading: false,
17013
17013
  };
17014
+ const Test = () => h("sqm-payout-status-alert", null);
17014
17015
  const InformationRequired = () => (h("sqm-payout-status-alert", { demoData: { states: defaultProps$r } }));
17015
17016
  const VerifyIdentity = () => (h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$r, status: "VERIFICATION:REQUIRED" } } }));
17016
17017
  const VerifyIdentityRequiredInternal = () => (h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$r, status: "VERIFICATION:INTERNAL" } } }));
@@ -17037,6 +17038,7 @@ const PaymentReturned = () => (h("sqm-payout-status-alert", { demoData: { states
17037
17038
  const PayoutStatusAlert = /*#__PURE__*/Object.freeze({
17038
17039
  __proto__: null,
17039
17040
  'default': PayoutStatusAlert_stories,
17041
+ Test: Test,
17040
17042
  InformationRequired: InformationRequired,
17041
17043
  VerifyIdentity: VerifyIdentity,
17042
17044
  VerifyIdentityRequiredInternal: VerifyIdentityRequiredInternal,