@saasquatch/mint-components 2.0.4-9 → 2.0.5-0
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/{IndirectTaxDetailsView-d39b895d.js → IndirectTaxDetailsView-659a139c.js} +2 -2
- package/dist/cjs/{ShadowViewAddon-7066fae7.js → ShadowViewAddon-ae3a32c3.js} +24 -22
- package/dist/cjs/{global-94f36ad7.js → global-e862bfd4.js} +54 -55
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/mint-components.cjs.js +2 -2
- package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +43 -29
- package/dist/cjs/sqm-big-stat_47.cjs.entry.js +18 -27
- package/dist/cjs/sqm-code-verification.cjs.entry.js +1 -1
- package/dist/cjs/sqm-email-verification.cjs.entry.js +4 -7
- package/dist/cjs/sqm-empty_4.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-form-message_2.cjs.entry.js → sqm-form-message.cjs.entry.js} +0 -50
- package/dist/cjs/{sqm-lead-checkbox-field-view-c0123bfa.js → sqm-lead-checkbox-field-view-dca40eb4.js} +1 -1
- package/dist/cjs/sqm-lead-checkbox-field.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-lead-input-field-view-6983eaa1.js → sqm-lead-input-field-view-2006001f.js} +1 -1
- package/dist/cjs/sqm-lead-input-field.cjs.entry.js +3 -3
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +1 -1
- package/dist/cjs/sqm-pagination_3.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-email-verification-view-d968178a.js → sqm-portal-email-verification-view-1745d9a2.js} +6 -4
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-profile-view-f74b8d6c.js → sqm-portal-profile-view-5c5e29b1.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-qr-code-view-a2889aee.js → sqm-qr-code-view-4ccf89da.js} +5 -1
- package/dist/cjs/sqm-qr-code.cjs.entry.js +1 -1
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +2 -2
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +2 -2
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +52 -85
- package/dist/cjs/{useLeadFormState-f8b33c07.js → useLeadFormState-91999606.js} +1 -1
- package/dist/cjs/{utils-5ecfecd9.js → utils-4eb18a29.js} +30 -18
- package/dist/collection/collection-manifest.json +0 -1
- package/dist/collection/components/sqm-edit-profile/sqm-edit-profile-view.js +1 -1
- package/dist/collection/components/sqm-empty/EmptyState.stories.js +1 -1
- package/dist/collection/components/sqm-form-message/FormMessage.stories.js +0 -5
- package/dist/collection/components/sqm-form-message/sqm-form-message.js +0 -30
- package/dist/collection/components/sqm-invoice-table/InvoiceTable.stories.js +5 -5
- package/dist/collection/components/sqm-invoice-table/sqm-invoice-table.js +1 -1
- package/dist/collection/components/sqm-lead-form/sqm-lead-form-view.js +7 -5
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +2 -2
- package/dist/collection/components/sqm-portal-email-verification/PortalEmailVerification.stories.js +0 -1
- package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification-view.js +5 -3
- package/dist/collection/components/sqm-qr-code/sqm-qr-code-view.js +5 -1
- package/dist/collection/components/sqm-referral-codes/sqm-referral-codes.js +1 -1
- package/dist/collection/components/sqm-referral-table/ReferralTable.stories.js +5 -5
- package/dist/collection/components/sqm-referral-table/sqm-referral-table.js +1 -1
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +8 -8
- package/dist/collection/components/sqm-rewards-table/RewardsTable.stories.js +5 -5
- package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +1 -1
- package/dist/collection/components/sqm-stencilbook/Themes.js +0 -12
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +0 -2
- package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +5 -5
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +3 -6
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card-view.js +5 -5
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +14 -11
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/LoadingView.js +29 -17
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +15 -5
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +18 -14
- package/dist/collection/global/styles.js +54 -55
- package/dist/collection/global/styles.ts +1 -6
- package/dist/collection/tables/TableSlots.js +6 -6
- package/dist/esm/{IndirectTaxDetailsView-a7dd6e4c.js → IndirectTaxDetailsView-8dec05e4.js} +2 -2
- package/dist/esm/{ShadowViewAddon-fe2896cb.js → ShadowViewAddon-78a1c35c.js} +24 -22
- package/dist/esm/{global-536c422d.js → global-58a69018.js} +54 -55
- package/dist/esm/loader.js +2 -2
- package/dist/esm/mint-components.js +2 -2
- package/dist/esm/sqm-banking-info-form_10.entry.js +43 -29
- package/dist/esm/sqm-big-stat_47.entry.js +18 -27
- package/dist/esm/sqm-code-verification.entry.js +1 -1
- package/dist/esm/sqm-email-verification.entry.js +4 -7
- package/dist/esm/sqm-empty_4.entry.js +1 -1
- package/dist/esm/{sqm-form-message_2.entry.js → sqm-form-message.entry.js} +1 -50
- package/dist/esm/{sqm-lead-checkbox-field-view-5c387852.js → sqm-lead-checkbox-field-view-81541e40.js} +1 -1
- package/dist/esm/sqm-lead-checkbox-field.entry.js +3 -3
- package/dist/esm/{sqm-lead-input-field-view-fa2488c9.js → sqm-lead-input-field-view-d543d939.js} +1 -1
- package/dist/esm/sqm-lead-input-field.entry.js +3 -3
- package/dist/esm/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm/sqm-pagination_3.entry.js +2 -2
- package/dist/esm/{sqm-portal-email-verification-view-8bbe5fcf.js → sqm-portal-email-verification-view-5fb1a99e.js} +6 -4
- package/dist/esm/sqm-portal-email-verification.entry.js +2 -2
- package/dist/esm/{sqm-portal-profile-view-9848caf1.js → sqm-portal-profile-view-e3aef106.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +2 -2
- package/dist/esm/{sqm-qr-code-view-804b8bb6.js → sqm-qr-code-view-ea505213.js} +5 -1
- package/dist/esm/sqm-qr-code.entry.js +1 -1
- package/dist/esm/sqm-referral-table_11.entry.js +2 -2
- package/dist/esm/sqm-rewards-table_9.entry.js +2 -2
- package/dist/esm/sqm-stencilbook.entry.js +52 -85
- package/dist/esm/{useLeadFormState-5a6188da.js → useLeadFormState-8d4b2620.js} +1 -1
- package/dist/esm/{utils-fafc712f.js → utils-2695a43e.js} +30 -18
- package/dist/esm-es5/{IndirectTaxDetailsView-a7dd6e4c.js → IndirectTaxDetailsView-8dec05e4.js} +1 -1
- package/dist/esm-es5/{ShadowViewAddon-fe2896cb.js → ShadowViewAddon-78a1c35c.js} +1 -1
- package/dist/esm-es5/{global-536c422d.js → global-58a69018.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_47.entry.js +1 -1
- package/dist/esm-es5/sqm-code-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
- package/dist/esm-es5/sqm-form-message.entry.js +1 -0
- package/dist/esm-es5/{sqm-lead-checkbox-field-view-5c387852.js → sqm-lead-checkbox-field-view-81541e40.js} +1 -1
- package/dist/esm-es5/sqm-lead-checkbox-field.entry.js +1 -1
- package/dist/esm-es5/{sqm-lead-input-field-view-fa2488c9.js → sqm-lead-input-field-view-d543d939.js} +1 -1
- package/dist/esm-es5/sqm-lead-input-field.entry.js +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-email-verification-view-5fb1a99e.js +1 -0
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-9848caf1.js → sqm-portal-profile-view-e3aef106.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/{sqm-qr-code-view-804b8bb6.js → sqm-qr-code-view-ea505213.js} +1 -1
- package/dist/esm-es5/sqm-qr-code.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/{useLeadFormState-5a6188da.js → useLeadFormState-8d4b2620.js} +1 -1
- package/dist/esm-es5/utils-2695a43e.js +1 -0
- package/dist/mint-components/global/styles.ts +1 -6
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-902b919d.system.entry.js → p-011c0990.system.entry.js} +1 -1
- package/dist/mint-components/{p-d6d31505.js → p-027c0b10.js} +32 -32
- package/dist/mint-components/{p-f6305644.js → p-088f082f.js} +1 -1
- package/dist/mint-components/{p-05e8620f.system.entry.js → p-0c024cf0.system.entry.js} +1 -1
- package/dist/mint-components/p-0d71303d.js +1 -0
- package/dist/mint-components/{p-33fff374.system.js → p-1215518e.system.js} +1 -1
- package/dist/mint-components/{p-b8878552.entry.js → p-12e6cea7.entry.js} +2 -2
- package/dist/mint-components/{p-19e407bd.system.js → p-13c6673e.system.js} +1 -1
- package/dist/mint-components/{p-4130caec.js → p-1aa9136c.js} +1 -1
- package/dist/mint-components/{p-a65610e3.entry.js → p-1b79b186.entry.js} +1 -1
- package/dist/mint-components/{p-ceb79149.js → p-1d8c5935.js} +1 -1
- package/dist/mint-components/{p-d07a46c6.system.entry.js → p-2ea3eea9.system.entry.js} +1 -1
- package/dist/mint-components/p-325c5476.js +1 -0
- package/dist/mint-components/{p-4b595fc3.system.entry.js → p-36a1fa33.system.entry.js} +1 -1
- package/dist/mint-components/p-3f661133.system.entry.js +1 -0
- package/dist/mint-components/{p-66effbef.entry.js → p-43ad51bc.entry.js} +1 -1
- package/dist/mint-components/p-478ad7c8.system.entry.js +1 -0
- package/dist/mint-components/{p-a71edffc.system.js → p-4965dae4.system.js} +1 -1
- package/dist/mint-components/{p-69bd9de3.entry.js → p-4c02afc8.entry.js} +7 -7
- package/dist/mint-components/{p-1e156272.system.js → p-4cc72a4e.system.js} +1 -1
- package/dist/mint-components/{p-8a24b9a9.entry.js → p-58c79873.entry.js} +1 -1
- package/dist/mint-components/{p-48bc3283.system.js → p-5fbe6356.system.js} +1 -1
- package/dist/mint-components/{p-30f37386.entry.js → p-6076dbaf.entry.js} +2 -2
- package/dist/mint-components/{p-1e0a8579.entry.js → p-775214ef.entry.js} +2 -2
- package/dist/mint-components/p-78dda262.system.js +1 -0
- package/dist/mint-components/p-829cb9ed.system.entry.js +1 -0
- package/dist/mint-components/{p-af02f28c.system.js → p-8618e8f6.system.js} +1 -1
- package/dist/mint-components/p-8d9fa981.system.js +1 -0
- package/dist/mint-components/p-947bacd1.system.js +1 -0
- package/dist/mint-components/{p-005ee5bf.js → p-988f236f.js} +1 -1
- package/dist/mint-components/{p-dcdd959e.entry.js → p-9a3ff9b9.entry.js} +2 -2
- package/dist/mint-components/{p-4e3303a8.system.entry.js → p-9d46f87f.system.entry.js} +1 -1
- package/dist/mint-components/{p-2192a6d7.entry.js → p-a470e203.entry.js} +2 -2
- package/dist/mint-components/p-a974c549.js +1 -0
- package/dist/mint-components/p-ab1e34f5.system.entry.js +1 -0
- package/dist/mint-components/p-ac9138fd.entry.js +1 -0
- package/dist/mint-components/{p-80196216.entry.js → p-ad3ebf4d.entry.js} +1 -1
- package/dist/mint-components/{p-78968e5f.js → p-bf044217.js} +1 -1
- package/dist/mint-components/{p-000dc98f.system.entry.js → p-c6e8086f.system.entry.js} +1 -1
- package/dist/mint-components/p-c7ac295d.system.entry.js +1 -0
- package/dist/mint-components/p-d88d8ffe.entry.js +1 -0
- package/dist/mint-components/p-dc5bca55.entry.js +1 -0
- package/dist/mint-components/{p-8f6b3391.system.entry.js → p-deecffd0.system.entry.js} +1 -1
- package/dist/mint-components/{p-e712a01d.entry.js → p-e19f0908.entry.js} +2 -2
- package/dist/mint-components/{p-648f881e.system.js → p-e3ee8c37.system.js} +1 -1
- package/dist/mint-components/p-e8bda98a.system.entry.js +1 -0
- package/dist/mint-components/p-ee3a7577.entry.js +144 -0
- package/dist/mint-components/p-ee83de0e.js +448 -0
- package/dist/mint-components/{p-f380bcd9.system.entry.js → p-f3613921.system.entry.js} +1 -1
- package/dist/mint-components/{p-a45124c1.system.entry.js → p-f5256738.system.entry.js} +1 -1
- package/dist/mint-components/p-f5820d03.system.js +1 -0
- package/dist/mint-components/{p-a7157ef3.entry.js → p-f7e49c12.entry.js} +2 -2
- package/dist/mint-components/{p-d8d818d9.system.entry.js → p-fcf8bdbc.system.entry.js} +1 -1
- package/dist/types/components/sqm-form-message/FormMessage.stories.d.ts +0 -1
- package/dist/types/components/sqm-form-message/sqm-form-message.d.ts +0 -6
- package/dist/types/components.d.ts +0 -39
- package/dist/types/saasquatch.d.ts +0 -4
- package/docs/docs.docx +0 -0
- package/docs/picklesdoc--2024-01-15--11-20-00.xlsx +0 -0
- package/docs/picklesdoc--2024-01-15--11-24-04.xlsx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/collection/components/sqm-skeleton/Skeleton.stories.js +0 -16
- package/dist/collection/components/sqm-skeleton/sqm-skeleton.js +0 -90
- package/dist/esm-es5/sqm-form-message_2.entry.js +0 -1
- package/dist/esm-es5/sqm-portal-email-verification-view-8bbe5fcf.js +0 -1
- package/dist/esm-es5/utils-fafc712f.js +0 -1
- package/dist/mint-components/p-0d3803a2.js +0 -1
- package/dist/mint-components/p-10aea972.system.js +0 -1
- package/dist/mint-components/p-28973c9b.entry.js +0 -144
- package/dist/mint-components/p-397a5adf.system.entry.js +0 -1
- package/dist/mint-components/p-3ad8e1af.system.js +0 -1
- package/dist/mint-components/p-566d837b.system.js +0 -1
- package/dist/mint-components/p-59332a30.entry.js +0 -1
- package/dist/mint-components/p-5d39d345.system.entry.js +0 -1
- package/dist/mint-components/p-6c528a8c.system.entry.js +0 -1
- package/dist/mint-components/p-7c9520b7.system.js +0 -1
- package/dist/mint-components/p-8af550b9.system.entry.js +0 -1
- package/dist/mint-components/p-a115c57a.system.entry.js +0 -1
- package/dist/mint-components/p-a92c692b.js +0 -448
- package/dist/mint-components/p-ab4c0642.js +0 -1
- package/dist/mint-components/p-af758193.entry.js +0 -1
- package/dist/mint-components/p-c37744c7.entry.js +0 -1
- package/dist/mint-components/p-e0c7640f.js +0 -1
- package/dist/mint-components/p-ede77156.system.entry.js +0 -1
- package/dist/types/components/sqm-skeleton/Skeleton.stories.d.ts +0 -8
- package/dist/types/components/sqm-skeleton/sqm-skeleton.d.ts +0 -14
|
@@ -36,8 +36,3 @@ export const WarningAlertTransparent = () => (h("sqm-form-message", { type: "war
|
|
|
36
36
|
export const InfoAlertTransparent = () => (h("sqm-form-message", { type: "info", transparent: true },
|
|
37
37
|
h("p", { part: "alert-title" }, "This is the title"),
|
|
38
38
|
h("p", { part: "alert-description" }, "This is the description")));
|
|
39
|
-
export const Loading = () => {
|
|
40
|
-
return (h("sqm-form-message", { type: "success", loading: true },
|
|
41
|
-
h("p", { part: "alert-title" }, "This is the title"),
|
|
42
|
-
h("p", { part: "alert-description" }, "This is the description")));
|
|
43
|
-
};
|
|
@@ -7,12 +7,6 @@ import { Component, h, Prop, State } from "@stencil/core";
|
|
|
7
7
|
export class FormMessage {
|
|
8
8
|
constructor() {
|
|
9
9
|
this.ignored = true;
|
|
10
|
-
/**
|
|
11
|
-
* Loading state for the alert.
|
|
12
|
-
*
|
|
13
|
-
* @uiName Loading
|
|
14
|
-
*/
|
|
15
|
-
this.loading = false;
|
|
16
10
|
/**
|
|
17
11
|
* Render the alert with transparent styles
|
|
18
12
|
*/
|
|
@@ -21,9 +15,6 @@ export class FormMessage {
|
|
|
21
15
|
}
|
|
22
16
|
disconnectedCallback() { }
|
|
23
17
|
render() {
|
|
24
|
-
if (this.loading) {
|
|
25
|
-
return h("sqm-skeleton", { height: "90px", width: "100%" });
|
|
26
|
-
}
|
|
27
18
|
if (this.type === "error") {
|
|
28
19
|
return (h("sl-alert", { exportparts: "base: erroralert-base, icon:erroralert-icon", class: `Error ${this.transparent ? "Transparent" : ""}`, type: "danger", open: true },
|
|
29
20
|
h("sl-icon", { id: "icon", slot: "icon", name: `${this.icon ? this.icon : "exclamation-octagon"}` }),
|
|
@@ -74,27 +65,6 @@ export class FormMessage {
|
|
|
74
65
|
"attribute": "type",
|
|
75
66
|
"reflect": false
|
|
76
67
|
},
|
|
77
|
-
"loading": {
|
|
78
|
-
"type": "boolean",
|
|
79
|
-
"mutable": false,
|
|
80
|
-
"complexType": {
|
|
81
|
-
"original": "boolean",
|
|
82
|
-
"resolved": "boolean",
|
|
83
|
-
"references": {}
|
|
84
|
-
},
|
|
85
|
-
"required": false,
|
|
86
|
-
"optional": false,
|
|
87
|
-
"docs": {
|
|
88
|
-
"tags": [{
|
|
89
|
-
"text": "Loading",
|
|
90
|
-
"name": "uiName"
|
|
91
|
-
}],
|
|
92
|
-
"text": "Loading state for the alert."
|
|
93
|
-
},
|
|
94
|
-
"attribute": "loading",
|
|
95
|
-
"reflect": false,
|
|
96
|
-
"defaultValue": "false"
|
|
97
|
-
},
|
|
98
68
|
"icon": {
|
|
99
69
|
"type": "string",
|
|
100
70
|
"mutable": false,
|
|
@@ -8,19 +8,19 @@ export default {
|
|
|
8
8
|
const loadingElement = (h("div", { slot: "loading", style: { display: "contents" } },
|
|
9
9
|
h("sqm-table-row", null,
|
|
10
10
|
h("sqm-table-cell", { colspan: 6 },
|
|
11
|
-
h("
|
|
11
|
+
h("sl-skeleton", null))),
|
|
12
12
|
h("sqm-table-row", null,
|
|
13
13
|
h("sqm-table-cell", { colspan: 6 },
|
|
14
|
-
h("
|
|
14
|
+
h("sl-skeleton", null))),
|
|
15
15
|
h("sqm-table-row", null,
|
|
16
16
|
h("sqm-table-cell", { colspan: 6 },
|
|
17
|
-
h("
|
|
17
|
+
h("sl-skeleton", null))),
|
|
18
18
|
h("sqm-table-row", null,
|
|
19
19
|
h("sqm-table-cell", { colspan: 6 },
|
|
20
|
-
h("
|
|
20
|
+
h("sl-skeleton", null))),
|
|
21
21
|
h("sqm-table-row", null,
|
|
22
22
|
h("sqm-table-cell", { colspan: 6 },
|
|
23
|
-
h("
|
|
23
|
+
h("sl-skeleton", null)))));
|
|
24
24
|
const emptyElement = (h("sqm-empty", { "empty-state-image": "https://res.cloudinary.com/saasquatch/image/upload/v1710363322/squatch-assets/invoice-table-empty.png", "empty-state-header": "View your invoice details", "empty-state-text": "Track the status of your invoices and rewards earned by referring friends" }));
|
|
25
25
|
// Reward Status Cases
|
|
26
26
|
const simpleInvoiceTableProps = {
|
|
@@ -368,7 +368,7 @@ function LoadingSlot() {
|
|
|
368
368
|
function LoadingRow() {
|
|
369
369
|
return (h("sqm-table-row", null,
|
|
370
370
|
h("sqm-table-cell", { colspan: 6 },
|
|
371
|
-
h("
|
|
371
|
+
h("sl-skeleton", null))));
|
|
372
372
|
}
|
|
373
373
|
function useInvoiceTableDemo(props, emptyElement, loadingElement) {
|
|
374
374
|
const [content, setContent] = useReducer((state, next) => ({
|
|
@@ -76,7 +76,7 @@ export function LeadFormView(props) {
|
|
|
76
76
|
vanillaStyle,
|
|
77
77
|
styleString),
|
|
78
78
|
h(TextSpanView, { type: "h3" }, content.pageLabel),
|
|
79
|
-
h("sqm-form-message", {
|
|
79
|
+
h("sqm-form-message", { exportparts: "success-icon" },
|
|
80
80
|
h("b", null, content.submitSuccessHeader),
|
|
81
81
|
h("br", null),
|
|
82
82
|
h("div", { part: "successalert-text" }, content.submitSuccessDescription)),
|
|
@@ -87,14 +87,16 @@ export function LeadFormView(props) {
|
|
|
87
87
|
styleString),
|
|
88
88
|
h(TextSpanView, { type: "h3" }, content.pageLabel),
|
|
89
89
|
h("sl-form", { class: sheet.classes.Column, "onSl-submit": callbacks.submit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
90
|
-
states.error && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "
|
|
91
|
-
h("
|
|
92
|
-
h("
|
|
90
|
+
states.error && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", class: sheet.classes.ErrorAlertContainer, open: true },
|
|
91
|
+
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
92
|
+
h("b", null, content.submitErrorHeader),
|
|
93
|
+
h("br", null),
|
|
94
|
+
intl.formatMessage({
|
|
93
95
|
id: "submitErrorDescription",
|
|
94
96
|
defaultMessage: content.submitErrorDescription,
|
|
95
97
|
}, {
|
|
96
98
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, content.supportLinkText)),
|
|
97
|
-
})))
|
|
99
|
+
}))),
|
|
98
100
|
h("div", { class: sheet.classes.NameFieldWrapper },
|
|
99
101
|
h("sqm-lead-input-field", { class: sheet.classes.NameInput, "field-label": content.firstNameLabel || "First Name", "field-name": "firstName" }),
|
|
100
102
|
h("sqm-lead-input-field", { class: sheet.classes.NameInput, "field-label": content.lastNameLabel || "Last Name", "field-name": "lastName" })),
|
|
@@ -74,10 +74,10 @@ export function LeaderboardView(props) {
|
|
|
74
74
|
h("style", { type: "text/css" },
|
|
75
75
|
styleString,
|
|
76
76
|
vanillaStyle),
|
|
77
|
-
h("table", null, [...Array(
|
|
77
|
+
h("table", null, [...Array(10)].map(() => {
|
|
78
78
|
return (h("tr", null,
|
|
79
79
|
h("td", null,
|
|
80
|
-
h("
|
|
80
|
+
h("sl-skeleton", null))));
|
|
81
81
|
}))));
|
|
82
82
|
}
|
|
83
83
|
if (!states.hasLeaders)
|
package/dist/collection/components/sqm-portal-email-verification/PortalEmailVerification.stories.js
CHANGED
|
@@ -17,7 +17,6 @@ const defaultContent = {
|
|
|
17
17
|
resendEmailButtonText: "Re-send Email",
|
|
18
18
|
verificationStatusMessage: "Checking verification status in {countdown}",
|
|
19
19
|
verificationLoadingMessage: "Checking verification status",
|
|
20
|
-
verificationResentMessage: "Verification email resent to {email}",
|
|
21
20
|
};
|
|
22
21
|
const defaultStates = {
|
|
23
22
|
error: "",
|
|
@@ -17,7 +17,7 @@ const style = {
|
|
|
17
17
|
},
|
|
18
18
|
ButtonLinkLoading: {
|
|
19
19
|
fontSize: "14px",
|
|
20
|
-
color: "var(--
|
|
20
|
+
color: "var(--sl-color-gray-500)",
|
|
21
21
|
opacity: "0.6",
|
|
22
22
|
display: "inline-block !important",
|
|
23
23
|
textDecoration: "underline",
|
|
@@ -54,7 +54,7 @@ export function PortalEmailVerificationView(props) {
|
|
|
54
54
|
}, {
|
|
55
55
|
email: (h("span", { style: { fontWeight: "var(--sl-font-weight-semibold)" } }, email)),
|
|
56
56
|
})),
|
|
57
|
-
h("p", { style: { color: "var(--
|
|
57
|
+
h("p", { style: { color: "var(--sl-color-gray-500)", fontSize: "14px" } }, intl.formatMessage({
|
|
58
58
|
id: `verificationStatus`,
|
|
59
59
|
defaultMessage: states.loadingVerification
|
|
60
60
|
? verificationLoadingMessage + " {countdown}"
|
|
@@ -62,5 +62,7 @@ export function PortalEmailVerificationView(props) {
|
|
|
62
62
|
}, {
|
|
63
63
|
countdown: states.loadingVerification ? (h("sl-spinner", null)) : (states.countdown),
|
|
64
64
|
})),
|
|
65
|
-
h("
|
|
65
|
+
h("a", { class: states.loading
|
|
66
|
+
? sheet.classes.ButtonLinkLoading
|
|
67
|
+
: sheet.classes.ButtonLink, onClick: callbacks.submit }, resendEmailButtonText))));
|
|
66
68
|
}
|
|
@@ -68,7 +68,11 @@ export function QrCodeView({ error, qrLink, titleText, downloadCodeText, printCo
|
|
|
68
68
|
return (h(ErrorView, { loadingErrorAlertDescription: errorHeaderText, loadingErrorAlertHeader: errorDescriptionText }));
|
|
69
69
|
}
|
|
70
70
|
else if (loading) {
|
|
71
|
-
return h("
|
|
71
|
+
return (h("sl-skeleton", { className: sheet.classes.LoadingSkeleton, effect: "sheen", style: {
|
|
72
|
+
width: "100px",
|
|
73
|
+
height: "100px",
|
|
74
|
+
borderRadius: "0px !important",
|
|
75
|
+
} }));
|
|
72
76
|
}
|
|
73
77
|
else if (qrLink) {
|
|
74
78
|
return (h("svg", { width: "100", height: "100" },
|
|
@@ -233,7 +233,7 @@ function LoadingSlot() {
|
|
|
233
233
|
h(LoadingRow, null)));
|
|
234
234
|
}
|
|
235
235
|
function LoadingRow() {
|
|
236
|
-
return h("
|
|
236
|
+
return h("sl-skeleton", { style: { width: "100%" } });
|
|
237
237
|
}
|
|
238
238
|
function useDemoReferralCodes(props) {
|
|
239
239
|
return deepmerge({
|
|
@@ -12,19 +12,19 @@ export default {
|
|
|
12
12
|
const loadingElement = (h("div", { slot: "loading", style: { display: "contents" } },
|
|
13
13
|
h("sqm-table-row", null,
|
|
14
14
|
h("sqm-table-cell", { colspan: 5 },
|
|
15
|
-
h("
|
|
15
|
+
h("sl-skeleton", null))),
|
|
16
16
|
h("sqm-table-row", null,
|
|
17
17
|
h("sqm-table-cell", { colspan: 5 },
|
|
18
|
-
h("
|
|
18
|
+
h("sl-skeleton", null))),
|
|
19
19
|
h("sqm-table-row", null,
|
|
20
20
|
h("sqm-table-cell", { colspan: 5 },
|
|
21
|
-
h("
|
|
21
|
+
h("sl-skeleton", null))),
|
|
22
22
|
h("sqm-table-row", null,
|
|
23
23
|
h("sqm-table-cell", { colspan: 5 },
|
|
24
|
-
h("
|
|
24
|
+
h("sl-skeleton", null))),
|
|
25
25
|
h("sqm-table-row", null,
|
|
26
26
|
h("sqm-table-cell", { colspan: 5 },
|
|
27
|
-
h("
|
|
27
|
+
h("sl-skeleton", null)))));
|
|
28
28
|
const emptyElement = (h("sqm-empty", { "empty-state-image": "https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_referral2.png", "empty-state-header": "View your referral details", "empty-state-text": "Track the status of your referrals and rewards earned by referring friends" }));
|
|
29
29
|
const baseReward = {
|
|
30
30
|
id: "123",
|
|
@@ -306,7 +306,7 @@ function LoadingSlot() {
|
|
|
306
306
|
function LoadingRow() {
|
|
307
307
|
return (h("sqm-table-row", null,
|
|
308
308
|
h("sqm-table-cell", { colspan: 5 },
|
|
309
|
-
h("
|
|
309
|
+
h("sl-skeleton", null))));
|
|
310
310
|
}
|
|
311
311
|
function useReferralTableDemo(props, emptyElement, loadingElement) {
|
|
312
312
|
const [content, setContent] = useReducer((state, next) => ({
|
package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js
CHANGED
|
@@ -567,19 +567,19 @@ export function RewardExchangeView(props) {
|
|
|
567
567
|
h("sl-card", { class: sheet.classes.Card },
|
|
568
568
|
h("div", { class: sheet.classes.CardLayout },
|
|
569
569
|
h("div", null,
|
|
570
|
-
h("
|
|
570
|
+
h("sl-skeleton", { style: {
|
|
571
|
+
width: "100px",
|
|
572
|
+
height: "100px",
|
|
571
573
|
margin: "9px",
|
|
572
|
-
|
|
574
|
+
"--border-radius": "var(--sqm-border-radius-normal)",
|
|
575
|
+
} })),
|
|
573
576
|
h("div", { style: {
|
|
574
577
|
margin: "var(--sl-spacing-small) var(--sl-spacing-small) 0 0",
|
|
575
578
|
width: "100%",
|
|
576
|
-
display: "flex",
|
|
577
|
-
flexDirection: "column",
|
|
578
|
-
gap: "var(--sl-spacing-small)",
|
|
579
579
|
} },
|
|
580
|
-
h("
|
|
581
|
-
h("
|
|
582
|
-
h("
|
|
580
|
+
h("sl-skeleton", { style: { marginBottom: "var(--sl-spacing-small)" } }),
|
|
581
|
+
h("sl-skeleton", { style: { marginBottom: "var(--sl-spacing-small)" } }),
|
|
582
|
+
h("sl-skeleton", { style: { width: "45%" } }))))));
|
|
583
583
|
})));
|
|
584
584
|
}
|
|
585
585
|
function errorMessage() {
|
|
@@ -11,19 +11,19 @@ export default {
|
|
|
11
11
|
const loadingElement = (h("div", { slot: "loading", style: { display: "contents" } },
|
|
12
12
|
h("sqm-table-row", null,
|
|
13
13
|
h("sqm-table-cell", { colspan: 5 },
|
|
14
|
-
h("
|
|
14
|
+
h("sl-skeleton", null))),
|
|
15
15
|
h("sqm-table-row", null,
|
|
16
16
|
h("sqm-table-cell", { colspan: 5 },
|
|
17
|
-
h("
|
|
17
|
+
h("sl-skeleton", null))),
|
|
18
18
|
h("sqm-table-row", null,
|
|
19
19
|
h("sqm-table-cell", { colspan: 5 },
|
|
20
|
-
h("
|
|
20
|
+
h("sl-skeleton", null))),
|
|
21
21
|
h("sqm-table-row", null,
|
|
22
22
|
h("sqm-table-cell", { colspan: 5 },
|
|
23
|
-
h("
|
|
23
|
+
h("sl-skeleton", null))),
|
|
24
24
|
h("sqm-table-row", null,
|
|
25
25
|
h("sqm-table-cell", { colspan: 5 },
|
|
26
|
-
h("
|
|
26
|
+
h("sl-skeleton", null)))));
|
|
27
27
|
const emptyElement = (h("sqm-empty", { "empty-state-image": "https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_reward2.png", "empty-state-header": "View your rewards", "empty-state-text": "See all the rewards you have earned from referring friends and completing tasks" }));
|
|
28
28
|
const rewardsTableProps = (rows, empty = false, loading = false, prev = "Prev", next = "Next", hidden = "") => ({
|
|
29
29
|
states: {
|
|
@@ -269,7 +269,7 @@ function LoadingSlot() {
|
|
|
269
269
|
function LoadingRow() {
|
|
270
270
|
return (h("sqm-table-row", null,
|
|
271
271
|
h("sqm-table-cell", { colspan: 5 },
|
|
272
|
-
h("
|
|
272
|
+
h("sl-skeleton", null))));
|
|
273
273
|
}
|
|
274
274
|
function useRewardsTableDemo(props, emptyElement, loadingElement) {
|
|
275
275
|
const [content, setContent] = useReducer((state, next) => ({
|
|
@@ -22,10 +22,6 @@ export const Netflix = {
|
|
|
22
22
|
borderThickness: 1,
|
|
23
23
|
},
|
|
24
24
|
color: {
|
|
25
|
-
loadingSkeleton: {
|
|
26
|
-
background: "#272727",
|
|
27
|
-
animationBackground: "#E50914",
|
|
28
|
-
},
|
|
29
25
|
textColorShades: {
|
|
30
26
|
mainText: "white",
|
|
31
27
|
subduedText: "#B3B3B3",
|
|
@@ -117,10 +113,6 @@ export const Amazon = {
|
|
|
117
113
|
},
|
|
118
114
|
color: {
|
|
119
115
|
backgroundColor: "#ffffff",
|
|
120
|
-
loadingSkeleton: {
|
|
121
|
-
background: "hsl(240 4.8% 95.9%)",
|
|
122
|
-
animationBackground: "#FF9900",
|
|
123
|
-
},
|
|
124
116
|
textColorShades: {
|
|
125
117
|
mainText: "#2f2f2f",
|
|
126
118
|
subduedText: "#565959",
|
|
@@ -209,10 +201,6 @@ export const Spotify = {
|
|
|
209
201
|
borderThickness: 1,
|
|
210
202
|
},
|
|
211
203
|
color: {
|
|
212
|
-
loadingSkeleton: {
|
|
213
|
-
background: "#282928",
|
|
214
|
-
animationBackground: "#1ed760",
|
|
215
|
-
},
|
|
216
204
|
textColorShades: {
|
|
217
205
|
mainText: "white",
|
|
218
206
|
subduedText: "white",
|
|
@@ -100,7 +100,6 @@ import * as LeadForm from "../sqm-lead-form/LeadForm.stories";
|
|
|
100
100
|
import * as LeadInputField from "../sqm-lead-form/LeadInputField.stories";
|
|
101
101
|
import * as LeadFormDropdownField from "../sqm-lead-form/LeadFormDropdownField.stories";
|
|
102
102
|
import * as LeadCheckboxField from "../sqm-lead-form/LeadCheckboxField.stories";
|
|
103
|
-
import * as Skeleton from "../sqm-skeleton/Skeleton.stories";
|
|
104
103
|
import { ShadowViewAddon } from "../../ShadowViewAddon";
|
|
105
104
|
import { CucumberAddon } from "./CucumberAddon";
|
|
106
105
|
import { HookStoryAddon } from "./HookStoryAddon";
|
|
@@ -205,7 +204,6 @@ const stories = [
|
|
|
205
204
|
LeadInputField,
|
|
206
205
|
LeadFormDropdownField,
|
|
207
206
|
LeadCheckboxField,
|
|
208
|
-
Skeleton,
|
|
209
207
|
];
|
|
210
208
|
/**
|
|
211
209
|
* For internal documentation
|
|
@@ -217,11 +217,11 @@ export function TaskCardView(props) {
|
|
|
217
217
|
? "main complete"
|
|
218
218
|
: "main" },
|
|
219
219
|
h("div", { class: "container", part: "sqm-card-container", "data-subdue": taskComplete || taskUnavailable },
|
|
220
|
-
h("div", { class: sheet.classes.Header, style: { opacity: taskComplete || taskUnavailable ? "0.45" : "1" } }, states.loading ? (h("
|
|
220
|
+
h("div", { class: sheet.classes.Header, style: { opacity: taskComplete || taskUnavailable ? "0.45" : "1" } }, states.loading ? (h("sl-skeleton", { style: { width: "22%", margin: "0" } })) : (h("div", null,
|
|
221
221
|
showComplete && (h("span", { class: taskUnavailable ? "icon neutral" : "icon" }, taskComplete ? checkmark_filled : checkmark_circle)),
|
|
222
222
|
h("span", { part: "sqm-value", class: "value" }, content.rewardAmount),
|
|
223
223
|
h("span", { part: "sqm-unit", class: "text" }, content.rewardUnit)))),
|
|
224
|
-
states.loading ? (h("
|
|
224
|
+
states.loading ? (h("sl-skeleton", { style: { width: "42%", margin: "var(--sl-spacing-medium) 0" } })) : (h("div", { class: "title", part: "sqm-title", style: {
|
|
225
225
|
marginBottom: !content.description
|
|
226
226
|
? content.steps
|
|
227
227
|
? "var(--sl-spacing-x-large)"
|
|
@@ -231,9 +231,9 @@ export function TaskCardView(props) {
|
|
|
231
231
|
: "",
|
|
232
232
|
opacity: taskComplete || taskUnavailable ? "0.45" : "1",
|
|
233
233
|
} }, content.cardTitle)),
|
|
234
|
-
states.loading ? (h("
|
|
235
|
-
content.showProgressBar && states.loading ? (h("
|
|
236
|
-
h("div", { class: sheet.classes.Footer, "data-subdue": taskComplete || taskUnavailable }, states.loading ? (h("
|
|
234
|
+
states.loading ? (h("sl-skeleton", { style: { margin: "var(--sl-spacing-medium) 0" } })) : (content.description && (h(Details, Object.assign({}, props, { opacity: taskComplete || taskUnavailable ? "0.45" : "1" })))),
|
|
235
|
+
content.showProgressBar && states.loading ? (h("sl-skeleton", { style: { margin: "var(--sl-spacing-medium) 0" } })) : (content.showProgressBar && (h(ProgressBarView, Object.assign({}, props.content, props.states, { opacity: taskComplete || taskUnavailable ? "0.75" : "1", complete: taskComplete, expired: taskUnavailable })))),
|
|
236
|
+
h("div", { class: sheet.classes.Footer, "data-subdue": taskComplete || taskUnavailable }, states.loading ? (h("sl-skeleton", { style: { width: "25%", marginLeft: "auto" } })) : (h("div", { style: { display: "contents" } },
|
|
237
237
|
h("span", { class: "text" },
|
|
238
238
|
content.repeatable && (h("div", null,
|
|
239
239
|
h("span", { class: repetitions > 0
|
|
@@ -189,12 +189,9 @@ export function WidgetEmailVerificationView(props) {
|
|
|
189
189
|
const { states, callbacks, text } = props;
|
|
190
190
|
const renderLoadingSkeleton = () => {
|
|
191
191
|
return (h("div", { class: sheet.classes.Wrapper },
|
|
192
|
-
h("
|
|
193
|
-
h("
|
|
194
|
-
h("
|
|
195
|
-
h("sqm-skeleton", { height: "34px", width: "30%" }),
|
|
196
|
-
h("sqm-skeleton", { height: "24px", width: "15%" }),
|
|
197
|
-
h("sl-button", { submit: true, class: sheet.classes.ContinueButton, loading: true, exportparts: "base: primarybutton-base", type: "primary" }, text.sendCodeText)));
|
|
192
|
+
h("sl-skeleton", { class: sheet.classes.SkeletonOne }),
|
|
193
|
+
h("sl-skeleton", { class: sheet.classes.SkeletonTwo }),
|
|
194
|
+
h("sl-skeleton", { class: sheet.classes.SkeletonThree })));
|
|
198
195
|
};
|
|
199
196
|
return (h("div", { part: "sqm-base" },
|
|
200
197
|
h("style", { type: "text/css" },
|
package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js
CHANGED
|
@@ -157,7 +157,7 @@ export const IndirectTaxFormView = (props) => {
|
|
|
157
157
|
}, {
|
|
158
158
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
159
159
|
}))),
|
|
160
|
-
states.isPartner && (h("sqm-form-message", {
|
|
160
|
+
states.isPartner && (h("sqm-form-message", { type: "info" },
|
|
161
161
|
h("p", { part: "alert-title" }, text.isPartnerAlertHeader),
|
|
162
162
|
intl.formatMessage({
|
|
163
163
|
id: "isPartnerAlertDescription",
|
|
@@ -138,11 +138,11 @@ export function PayoutDetailsCardView(props) {
|
|
|
138
138
|
const { states, text } = props;
|
|
139
139
|
const renderLoadingSkeleton = () => {
|
|
140
140
|
return (h("div", { class: classes.CardContainer },
|
|
141
|
-
h("div", { class: classes.StatusContainer
|
|
142
|
-
h("
|
|
143
|
-
h("
|
|
144
|
-
h("
|
|
145
|
-
h("
|
|
141
|
+
h("div", { class: classes.StatusContainer },
|
|
142
|
+
h("sl-skeleton", { class: classes.SkeletonOne }),
|
|
143
|
+
h("sl-skeleton", { class: classes.SkeletonTwo })),
|
|
144
|
+
h("sl-skeleton", { class: classes.SkeletonThree }),
|
|
145
|
+
h("sl-skeleton", { class: classes.SkeletonOne })));
|
|
146
146
|
};
|
|
147
147
|
const renderStatusBadge = (status, statusBadgeText) => {
|
|
148
148
|
const badgeType = status === "nextPayout" ? "success" : "primary";
|
|
@@ -168,8 +168,8 @@ export function PayoutStatusAlertView(props) {
|
|
|
168
168
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
169
169
|
}),
|
|
170
170
|
button: (h("div", { class: sheet.classes.ButtonContainer },
|
|
171
|
-
h("sl-button", { disabled: states.loading, type: "primary",
|
|
172
|
-
h("sl-button", { disabled: states.loading, type: "
|
|
171
|
+
h("sl-button", { disabled: states.loading, type: "primary", onClick: callbacks.onPaymentInfoClick }, text.editPaymentInformationButton),
|
|
172
|
+
h("sl-button", { disabled: states.loading, type: "default", onClick: callbacks.onNewFormClick }, text.newFormButton))),
|
|
173
173
|
alertType: "warning",
|
|
174
174
|
icon: "exclamation-triangle",
|
|
175
175
|
};
|
|
@@ -183,8 +183,8 @@ export function PayoutStatusAlertView(props) {
|
|
|
183
183
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
184
184
|
}),
|
|
185
185
|
button: (h("div", { class: sheet.classes.ButtonContainer },
|
|
186
|
-
h("sl-button", { disabled: states.loading, type: "primary",
|
|
187
|
-
h("sl-button", { disabled: states.loading, type: "
|
|
186
|
+
h("sl-button", { disabled: states.loading, type: "primary", onClick: callbacks.onPaymentInfoClick }, text.editPaymentInformationButton),
|
|
187
|
+
h("sl-button", { disabled: states.loading, type: "default", onClick: callbacks.onNewFormClick }, text.newFormButton))),
|
|
188
188
|
alertType: "warning",
|
|
189
189
|
icon: "exclamation-triangle",
|
|
190
190
|
};
|
|
@@ -198,8 +198,8 @@ export function PayoutStatusAlertView(props) {
|
|
|
198
198
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
199
199
|
}),
|
|
200
200
|
button: (h("div", { class: sheet.classes.ButtonContainer },
|
|
201
|
-
h("sl-button", { disabled: states.loading, type: "primary",
|
|
202
|
-
h("sl-button", { disabled: states.loading, type: "
|
|
201
|
+
h("sl-button", { disabled: states.loading, type: "primary", onClick: callbacks.onPaymentInfoClick }, text.editPaymentInformationButton),
|
|
202
|
+
h("sl-button", { disabled: states.loading, type: "default", onClick: callbacks.onNewFormClick }, text.newFormButton))),
|
|
203
203
|
alertType: "warning",
|
|
204
204
|
icon: "exclamation-triangle",
|
|
205
205
|
};
|
|
@@ -213,7 +213,7 @@ export function PayoutStatusAlertView(props) {
|
|
|
213
213
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
214
214
|
}),
|
|
215
215
|
button: (h("div", { class: sheet.classes.ButtonContainer },
|
|
216
|
-
h("sl-button", { disabled: states.loading, type: "primary",
|
|
216
|
+
h("sl-button", { disabled: states.loading, type: "primary", onClick: callbacks.onPaymentInfoClick }, text.editPaymentInformationButton))),
|
|
217
217
|
alertType: "warning",
|
|
218
218
|
icon: "exclamation-triangle",
|
|
219
219
|
};
|
|
@@ -227,7 +227,7 @@ export function PayoutStatusAlertView(props) {
|
|
|
227
227
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
228
228
|
}),
|
|
229
229
|
button: (h("div", { class: sheet.classes.ButtonContainer },
|
|
230
|
-
h("sl-button", { disabled: states.loading, type: "primary",
|
|
230
|
+
h("sl-button", { disabled: states.loading, type: "primary", onClick: callbacks.onPaymentInfoClick }, text.editPaymentInformationButton))),
|
|
231
231
|
alertType: "error",
|
|
232
232
|
icon: "exclamation-triangle",
|
|
233
233
|
};
|
|
@@ -252,9 +252,9 @@ export function PayoutStatusAlertView(props) {
|
|
|
252
252
|
case "OVER_W9_THRESHOLD":
|
|
253
253
|
if (states.enforceUsTaxComplianceOption === "CASH_ONLY")
|
|
254
254
|
return;
|
|
255
|
-
return data.type === "SquatchJS2" ? (h("sqm-scroll", { "scroll-tag-name": "sqm-tabs", "button-text": text.w9RequiredButtonText, "scroll-animation": "smooth" })) : data.type === "SquatchPortal" ? (h("sl-button", { type: "
|
|
255
|
+
return data.type === "SquatchJS2" ? (h("sqm-scroll", { "scroll-tag-name": "sqm-tabs", "button-text": text.w9RequiredButtonText, "scroll-animation": "smooth" })) : data.type === "SquatchPortal" ? (h("sl-button", { type: "default", onClick: callbacks.onTermsClick }, text.w9RequiredButtonText)) : (
|
|
256
256
|
// Demo case
|
|
257
|
-
h("sl-button", { type: "
|
|
257
|
+
h("sl-button", { type: "default" }, text.w9RequiredButtonText));
|
|
258
258
|
case "INFORMATION_REQUIRED":
|
|
259
259
|
return data.type === "SquatchJS2" ? (h("div", { style: { paddingTop: "10px" } },
|
|
260
260
|
h("sqm-scroll", { "scroll-tag-name": "sqm-tabs", "button-text": text.informationRequiredButtonText, "scroll-animation": "smooth" }))) : data.type === "SquatchPortal" ? (h("div", { style: { paddingTop: "10px" } },
|
|
@@ -271,6 +271,9 @@ export function PayoutStatusAlertView(props) {
|
|
|
271
271
|
return;
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
|
+
if (states.loading) {
|
|
275
|
+
return h("sl-skeleton", { class: sheet.classes.SkeletonOne });
|
|
276
|
+
}
|
|
274
277
|
const alertDetails = getAlert(states.status);
|
|
275
278
|
if (states.status === "DONE" || !alertDetails) {
|
|
276
279
|
return h("div", null);
|
|
@@ -278,7 +281,7 @@ export function PayoutStatusAlertView(props) {
|
|
|
278
281
|
return (h("div", { part: "sqm-base" },
|
|
279
282
|
h("style", { type: "text/css" }, styleString),
|
|
280
283
|
h("style", { type: "text/css" }, vanillaStyle),
|
|
281
|
-
h("sqm-form-message", {
|
|
284
|
+
h("sqm-form-message", { type: alertDetails.alertType },
|
|
282
285
|
h("p", { part: "alert-title" }, alertDetails.header),
|
|
283
286
|
h("p", { part: "alert-description" }, alertDetails.description),
|
|
284
287
|
getButton(states.status))));
|
|
@@ -4,35 +4,47 @@ const style = {
|
|
|
4
4
|
Container: {
|
|
5
5
|
display: "flex",
|
|
6
6
|
flexDirection: "column",
|
|
7
|
-
gap: "
|
|
7
|
+
gap: "24px",
|
|
8
8
|
},
|
|
9
9
|
HeaderContainer: {
|
|
10
10
|
display: "flex",
|
|
11
11
|
flexDirection: "column",
|
|
12
12
|
gap: "10px",
|
|
13
13
|
},
|
|
14
|
+
TitleSkeleton: {
|
|
15
|
+
width: "45%",
|
|
16
|
+
height: "40px !important",
|
|
17
|
+
},
|
|
18
|
+
StepSkeleton: {
|
|
19
|
+
width: "15%",
|
|
20
|
+
},
|
|
21
|
+
HeaderSkeleton: {
|
|
22
|
+
width: "25%",
|
|
23
|
+
height: "30px !important",
|
|
24
|
+
},
|
|
25
|
+
InputSkeleton: {
|
|
26
|
+
width: "75%",
|
|
27
|
+
},
|
|
28
|
+
ButtonSkeleton: {
|
|
29
|
+
width: "80px",
|
|
30
|
+
height: "30px !important",
|
|
31
|
+
},
|
|
14
32
|
};
|
|
15
33
|
const sheet = createStyleSheet(style);
|
|
16
34
|
const styleString = sheet.toString();
|
|
17
35
|
const LoadingView = () => {
|
|
18
36
|
return (h("div", { class: sheet.classes.Container },
|
|
19
37
|
h("style", { type: "text/css" }, styleString),
|
|
20
|
-
h("
|
|
38
|
+
h("sl-skeleton", { class: sheet.classes.TitleSkeleton }),
|
|
21
39
|
h("div", { class: sheet.classes.HeaderContainer },
|
|
22
|
-
h("
|
|
23
|
-
h("
|
|
24
|
-
h("
|
|
25
|
-
h("
|
|
26
|
-
h("
|
|
27
|
-
h("
|
|
28
|
-
h("
|
|
29
|
-
h("
|
|
30
|
-
h("
|
|
31
|
-
h("sqm-skeleton", { width: "75%", height: "35px" }),
|
|
32
|
-
h("sqm-skeleton", { width: "75%", height: "35px" }),
|
|
33
|
-
h("sqm-skeleton", { width: "75%", height: "35px" }),
|
|
34
|
-
h("sqm-skeleton", { width: "75%", height: "35px" }),
|
|
35
|
-
h("sqm-skeleton", { width: "15%" }),
|
|
36
|
-
h("sqm-skeleton", { width: "80px", height: "30px !important" })));
|
|
40
|
+
h("sl-skeleton", { class: sheet.classes.StepSkeleton }),
|
|
41
|
+
h("sl-skeleton", { class: sheet.classes.HeaderSkeleton })),
|
|
42
|
+
h("sl-skeleton", { class: sheet.classes.InputSkeleton }),
|
|
43
|
+
h("sl-skeleton", { class: sheet.classes.InputSkeleton }),
|
|
44
|
+
h("sl-skeleton", { class: sheet.classes.InputSkeleton }),
|
|
45
|
+
h("sl-skeleton", { class: sheet.classes.InputSkeleton }),
|
|
46
|
+
h("sl-skeleton", { class: sheet.classes.InputSkeleton }),
|
|
47
|
+
h("sl-skeleton", { class: sheet.classes.StepSkeleton }),
|
|
48
|
+
h("sl-skeleton", { class: sheet.classes.ButtonSkeleton })));
|
|
37
49
|
};
|
|
38
50
|
export default LoadingView;
|