@saasquatch/mint-components 2.0.0-43 → 2.0.0-47
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.
- package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +4 -10
- package/dist/cjs/sqm-tax-and-cash.cjs.entry.js +0 -1
- package/dist/collection/components/sqm-hero/sqm-hero.js +4 -4
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +0 -1
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +1 -2
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +4 -9
- package/dist/esm/sqm-banking-info-form_10.entry.js +4 -10
- package/dist/esm/sqm-tax-and-cash.entry.js +0 -1
- package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
- package/dist/esm-es5/sqm-tax-and-cash.entry.js +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/{p-7d23f71a.system.entry.js → p-43a9fb8e.system.entry.js} +1 -1
- package/dist/mint-components/{p-afabe607.entry.js → p-5f05a0e4.entry.js} +2 -2
- package/dist/mint-components/{p-a898d088.entry.js → p-75c569f7.entry.js} +1 -1
- package/dist/mint-components/p-967a9040.system.js +1 -1
- package/dist/mint-components/{p-5ef6fb32.system.entry.js → p-ce26148d.system.entry.js} +1 -1
- package/dist/types/components/sqm-hero/sqm-hero.d.ts +4 -4
- package/dist/types/components.d.ts +8 -8
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/shoelace/assets/icons/twitter-x.svg +4 -0
|
@@ -4103,7 +4103,6 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
4103
4103
|
}
|
|
4104
4104
|
};
|
|
4105
4105
|
const alertInfo = getAlert(states.payoutStatus);
|
|
4106
|
-
console.log({ states, props });
|
|
4107
4106
|
return (index.h("div", null,
|
|
4108
4107
|
index.h("div", null,
|
|
4109
4108
|
index.h("style", { type: "text/css" }, styleString$4),
|
|
@@ -4144,7 +4143,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
4144
4143
|
index.h("div", { class: sheet$4.classes.BankingInformationContainer },
|
|
4145
4144
|
slots.payoutDetailsCardSlot,
|
|
4146
4145
|
!states.loading && (index.h("p", { class: sheet$4.classes.DescriptionText }, text.payoutFromImpact)),
|
|
4147
|
-
states.canEditPayoutInfo && (index.h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$4.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
|
|
4146
|
+
states.canEditPayoutInfo && (index.h("sl-button", { disabled: states.disabled || states.loading, type: "default", exportparts: "base: secondarybutton-base", class: sheet$4.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
|
|
4148
4147
|
(!states.noFormNeeded || states.status === "NOT_VERIFIED") && (index.h("div", { class: sheet$4.classes.TaxDocumentsContainer },
|
|
4149
4148
|
index.h("div", null, states.loading ? (index.h("div", { class: sheet$4.classes.TaxSectionSkeletonContainer },
|
|
4150
4149
|
index.h("sl-skeleton", { class: sheet$4.classes.SkeletonOne }),
|
|
@@ -4689,18 +4688,13 @@ const TaxAndCashDashboard = class {
|
|
|
4689
4688
|
const props = index_module.isDemo()
|
|
4690
4689
|
? useDemoTaxAndCashDashboard(this)
|
|
4691
4690
|
: useTaxAndCashDashboard(this);
|
|
4692
|
-
console.log({ stateController: this.stateController });
|
|
4693
4691
|
return (index.h(index.Host, null, index.h(TaxAndCashDashboardView, { callbacks: props.callbacks, states: props.states, text: props.text, slots: {
|
|
4694
4692
|
payoutDetailsCardSlot: (index.h("sqm-payout-details-card", Object.assign({}, this.getTextProps()))),
|
|
4695
4693
|
} })));
|
|
4696
4694
|
}
|
|
4697
4695
|
};
|
|
4698
4696
|
function useDemoTaxAndCashDashboard(props) {
|
|
4699
|
-
const
|
|
4700
|
-
const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-tax-and-cash-dashboard"
|
|
4701
|
-
? { ...prev, ...states[key] }
|
|
4702
|
-
: { ...prev, [`${key}_stateController`]: states[key] }, {});
|
|
4703
|
-
console.log({ formatted });
|
|
4697
|
+
const stateController = parseStates.parseStates(props.stateController);
|
|
4704
4698
|
// @ts-ignore
|
|
4705
4699
|
return cjs.cjs({
|
|
4706
4700
|
states: {
|
|
@@ -4723,7 +4717,7 @@ function useDemoTaxAndCashDashboard(props) {
|
|
|
4723
4717
|
province: undefined,
|
|
4724
4718
|
notRegistered: true,
|
|
4725
4719
|
loadingError: false,
|
|
4726
|
-
payoutStatus:
|
|
4720
|
+
payoutStatus: "DONE",
|
|
4727
4721
|
veriffLoading: false,
|
|
4728
4722
|
canEditPayoutInfo: true,
|
|
4729
4723
|
},
|
|
@@ -4742,7 +4736,7 @@ function useDemoTaxAndCashDashboard(props) {
|
|
|
4742
4736
|
},
|
|
4743
4737
|
} })),
|
|
4744
4738
|
},
|
|
4745
|
-
},
|
|
4739
|
+
}, stateController || props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
4746
4740
|
}
|
|
4747
4741
|
|
|
4748
4742
|
const PHONE_EXTENSIONS = {
|
|
@@ -1264,7 +1264,6 @@ const TaxAndCashMonolith = class {
|
|
|
1264
1264
|
render() {
|
|
1265
1265
|
var _a, _b;
|
|
1266
1266
|
const props = index_module.isDemo() ? useDemoTaxAndCash(this) : useTaxAndCash();
|
|
1267
|
-
console.log({ props });
|
|
1268
1267
|
// @ts-ignore
|
|
1269
1268
|
if ((_a = this.demoData) === null || _a === void 0 ? void 0 : _a.showTextProps) {
|
|
1270
1269
|
const textProps = utils$1.getProps(this);
|
|
@@ -122,13 +122,13 @@ export class Hero {
|
|
|
122
122
|
"optional": true,
|
|
123
123
|
"docs": {
|
|
124
124
|
"tags": [{
|
|
125
|
-
"text": "
|
|
125
|
+
"text": "Splash image",
|
|
126
126
|
"name": "uiName"
|
|
127
127
|
}, {
|
|
128
128
|
"text": "Background",
|
|
129
129
|
"name": "uiWidget"
|
|
130
130
|
}],
|
|
131
|
-
"text": "
|
|
131
|
+
"text": "Splash image or background color (for use in the left column)"
|
|
132
132
|
},
|
|
133
133
|
"attribute": "background",
|
|
134
134
|
"reflect": false
|
|
@@ -172,13 +172,13 @@ export class Hero {
|
|
|
172
172
|
"optional": true,
|
|
173
173
|
"docs": {
|
|
174
174
|
"tags": [{
|
|
175
|
-
"text": "
|
|
175
|
+
"text": "Content background",
|
|
176
176
|
"name": "uiName"
|
|
177
177
|
}, {
|
|
178
178
|
"text": "Background",
|
|
179
179
|
"name": "uiWidget"
|
|
180
180
|
}],
|
|
181
|
-
"text": "
|
|
181
|
+
"text": "Content background color or image (for use in the right column)"
|
|
182
182
|
},
|
|
183
183
|
"attribute": "secondary-background",
|
|
184
184
|
"reflect": false
|
|
@@ -1100,7 +1100,6 @@ export class TaxAndCashMonolith {
|
|
|
1100
1100
|
render() {
|
|
1101
1101
|
var _a, _b;
|
|
1102
1102
|
const props = isDemo() ? useDemoTaxAndCash(this) : useTaxAndCash();
|
|
1103
|
-
console.log({ props });
|
|
1104
1103
|
// @ts-ignore
|
|
1105
1104
|
if ((_a = this.demoData) === null || _a === void 0 ? void 0 : _a.showTextProps) {
|
|
1106
1105
|
const textProps = getProps(this);
|
|
@@ -396,7 +396,6 @@ export const TaxAndCashDashboardView = (props) => {
|
|
|
396
396
|
}
|
|
397
397
|
};
|
|
398
398
|
const alertInfo = getAlert(states.payoutStatus);
|
|
399
|
-
console.log({ states, props });
|
|
400
399
|
return (h("div", null,
|
|
401
400
|
h("div", null,
|
|
402
401
|
h("style", { type: "text/css" }, styleString),
|
|
@@ -437,7 +436,7 @@ export const TaxAndCashDashboardView = (props) => {
|
|
|
437
436
|
h("div", { class: sheet.classes.BankingInformationContainer },
|
|
438
437
|
slots.payoutDetailsCardSlot,
|
|
439
438
|
!states.loading && (h("p", { class: sheet.classes.DescriptionText }, text.payoutFromImpact)),
|
|
440
|
-
states.canEditPayoutInfo && (h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
|
|
439
|
+
states.canEditPayoutInfo && (h("sl-button", { disabled: states.disabled || states.loading, type: "default", exportparts: "base: secondarybutton-base", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
|
|
441
440
|
(!states.noFormNeeded || states.status === "NOT_VERIFIED") && (h("div", { class: sheet.classes.TaxDocumentsContainer },
|
|
442
441
|
h("div", null, states.loading ? (h("div", { class: sheet.classes.TaxSectionSkeletonContainer },
|
|
443
442
|
h("sl-skeleton", { class: sheet.classes.SkeletonOne }),
|
|
@@ -2,10 +2,10 @@ import { isDemo } from "@saasquatch/component-boilerplate";
|
|
|
2
2
|
import { withHooks } from "@saasquatch/stencil-hooks";
|
|
3
3
|
import { Component, h, Host, Prop } from "@stencil/core";
|
|
4
4
|
import deepmerge from "deepmerge";
|
|
5
|
+
import { parseStates } from "../../../utils/parseStates";
|
|
5
6
|
import { getProps } from "../../../utils/utils";
|
|
6
7
|
import { TaxAndCashDashboardView } from "./sqm-tax-and-cash-dashboard-view";
|
|
7
8
|
import { useTaxAndCashDashboard, } from "./useTaxAndCashDashboard";
|
|
8
|
-
import { parseStates } from "../../../utils/parseStates";
|
|
9
9
|
/**
|
|
10
10
|
* @uiName Tax and Cash Status Dashboard
|
|
11
11
|
*/
|
|
@@ -363,7 +363,6 @@ export class TaxAndCashDashboard {
|
|
|
363
363
|
const props = isDemo()
|
|
364
364
|
? useDemoTaxAndCashDashboard(this)
|
|
365
365
|
: useTaxAndCashDashboard(this);
|
|
366
|
-
console.log({ stateController: this.stateController });
|
|
367
366
|
return (h(Host, null,
|
|
368
367
|
h(TaxAndCashDashboardView, { callbacks: props.callbacks, states: props.states, text: props.text, slots: {
|
|
369
368
|
payoutDetailsCardSlot: (h("sqm-payout-details-card", Object.assign({}, this.getTextProps()))),
|
|
@@ -1902,11 +1901,7 @@ export class TaxAndCashDashboard {
|
|
|
1902
1901
|
}; }
|
|
1903
1902
|
}
|
|
1904
1903
|
function useDemoTaxAndCashDashboard(props) {
|
|
1905
|
-
const
|
|
1906
|
-
const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-tax-and-cash-dashboard"
|
|
1907
|
-
? { ...prev, ...states[key] }
|
|
1908
|
-
: { ...prev, [`${key}_stateController`]: states[key] }, {});
|
|
1909
|
-
console.log({ formatted });
|
|
1904
|
+
const stateController = parseStates(props.stateController);
|
|
1910
1905
|
// @ts-ignore
|
|
1911
1906
|
return deepmerge({
|
|
1912
1907
|
states: {
|
|
@@ -1929,7 +1924,7 @@ function useDemoTaxAndCashDashboard(props) {
|
|
|
1929
1924
|
province: undefined,
|
|
1930
1925
|
notRegistered: true,
|
|
1931
1926
|
loadingError: false,
|
|
1932
|
-
payoutStatus:
|
|
1927
|
+
payoutStatus: "DONE",
|
|
1933
1928
|
veriffLoading: false,
|
|
1934
1929
|
canEditPayoutInfo: true,
|
|
1935
1930
|
},
|
|
@@ -1948,5 +1943,5 @@ function useDemoTaxAndCashDashboard(props) {
|
|
|
1948
1943
|
},
|
|
1949
1944
|
} })),
|
|
1950
1945
|
},
|
|
1951
|
-
},
|
|
1946
|
+
}, stateController || props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
1952
1947
|
}
|
|
@@ -4099,7 +4099,6 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
4099
4099
|
}
|
|
4100
4100
|
};
|
|
4101
4101
|
const alertInfo = getAlert(states.payoutStatus);
|
|
4102
|
-
console.log({ states, props });
|
|
4103
4102
|
return (h("div", null,
|
|
4104
4103
|
h("div", null,
|
|
4105
4104
|
h("style", { type: "text/css" }, styleString$4),
|
|
@@ -4140,7 +4139,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
4140
4139
|
h("div", { class: sheet$4.classes.BankingInformationContainer },
|
|
4141
4140
|
slots.payoutDetailsCardSlot,
|
|
4142
4141
|
!states.loading && (h("p", { class: sheet$4.classes.DescriptionText }, text.payoutFromImpact)),
|
|
4143
|
-
states.canEditPayoutInfo && (h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$4.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
|
|
4142
|
+
states.canEditPayoutInfo && (h("sl-button", { disabled: states.disabled || states.loading, type: "default", exportparts: "base: secondarybutton-base", class: sheet$4.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
|
|
4144
4143
|
(!states.noFormNeeded || states.status === "NOT_VERIFIED") && (h("div", { class: sheet$4.classes.TaxDocumentsContainer },
|
|
4145
4144
|
h("div", null, states.loading ? (h("div", { class: sheet$4.classes.TaxSectionSkeletonContainer },
|
|
4146
4145
|
h("sl-skeleton", { class: sheet$4.classes.SkeletonOne }),
|
|
@@ -4685,18 +4684,13 @@ const TaxAndCashDashboard = class {
|
|
|
4685
4684
|
const props = isDemo()
|
|
4686
4685
|
? useDemoTaxAndCashDashboard(this)
|
|
4687
4686
|
: useTaxAndCashDashboard(this);
|
|
4688
|
-
console.log({ stateController: this.stateController });
|
|
4689
4687
|
return (h(Host, null, h(TaxAndCashDashboardView, { callbacks: props.callbacks, states: props.states, text: props.text, slots: {
|
|
4690
4688
|
payoutDetailsCardSlot: (h("sqm-payout-details-card", Object.assign({}, this.getTextProps()))),
|
|
4691
4689
|
} })));
|
|
4692
4690
|
}
|
|
4693
4691
|
};
|
|
4694
4692
|
function useDemoTaxAndCashDashboard(props) {
|
|
4695
|
-
const
|
|
4696
|
-
const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-tax-and-cash-dashboard"
|
|
4697
|
-
? { ...prev, ...states[key] }
|
|
4698
|
-
: { ...prev, [`${key}_stateController`]: states[key] }, {});
|
|
4699
|
-
console.log({ formatted });
|
|
4693
|
+
const stateController = parseStates(props.stateController);
|
|
4700
4694
|
// @ts-ignore
|
|
4701
4695
|
return cjs({
|
|
4702
4696
|
states: {
|
|
@@ -4719,7 +4713,7 @@ function useDemoTaxAndCashDashboard(props) {
|
|
|
4719
4713
|
province: undefined,
|
|
4720
4714
|
notRegistered: true,
|
|
4721
4715
|
loadingError: false,
|
|
4722
|
-
payoutStatus:
|
|
4716
|
+
payoutStatus: "DONE",
|
|
4723
4717
|
veriffLoading: false,
|
|
4724
4718
|
canEditPayoutInfo: true,
|
|
4725
4719
|
},
|
|
@@ -4738,7 +4732,7 @@ function useDemoTaxAndCashDashboard(props) {
|
|
|
4738
4732
|
},
|
|
4739
4733
|
} })),
|
|
4740
4734
|
},
|
|
4741
|
-
},
|
|
4735
|
+
}, stateController || props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
4742
4736
|
}
|
|
4743
4737
|
|
|
4744
4738
|
const PHONE_EXTENSIONS = {
|
|
@@ -1260,7 +1260,6 @@ const TaxAndCashMonolith = class {
|
|
|
1260
1260
|
render() {
|
|
1261
1261
|
var _a, _b;
|
|
1262
1262
|
const props = isDemo() ? useDemoTaxAndCash(this) : useTaxAndCash();
|
|
1263
|
-
console.log({ props });
|
|
1264
1263
|
// @ts-ignore
|
|
1265
1264
|
if ((_a = this.demoData) === null || _a === void 0 ? void 0 : _a.showTextProps) {
|
|
1266
1265
|
const textProps = getProps(this);
|