@saasquatch/mint-components 2.0.3 → 2.0.4-10
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-659a139c.js → IndirectTaxDetailsView-d39b895d.js} +2 -2
- package/dist/cjs/{ShadowViewAddon-fbc33c53.js → ShadowViewAddon-7066fae7.js} +25 -27
- package/dist/cjs/{data-16106637.js → data-44260010.js} +29 -2
- package/dist/cjs/{global-e862bfd4.js → global-94f36ad7.js} +55 -54
- 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 +355 -102
- package/dist/cjs/sqm-big-stat_47.cjs.entry.js +232 -22
- package/dist/cjs/sqm-code-verification.cjs.entry.js +1 -1
- package/dist/cjs/sqm-email-verification.cjs.entry.js +7 -4
- package/dist/cjs/sqm-empty_4.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-form-message.cjs.entry.js → sqm-form-message_2.cjs.entry.js} +50 -0
- package/dist/cjs/sqm-header-logo.cjs.entry.js +15 -2
- package/dist/cjs/{sqm-lead-checkbox-field-view-dca40eb4.js → sqm-lead-checkbox-field-view-c0123bfa.js} +1 -1
- package/dist/cjs/sqm-lead-checkbox-field.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-lead-input-field-view-2006001f.js → sqm-lead-input-field-view-6983eaa1.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-1745d9a2.js → sqm-portal-email-verification-view-d968178a.js} +4 -6
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-profile-view-5c5e29b1.js → sqm-portal-profile-view-f74b8d6c.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-qr-code-view-4ccf89da.js → sqm-qr-code-view-a2889aee.js} +1 -5
- 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 +108 -54
- package/dist/cjs/{useLeadFormState-91999606.js → useLeadFormState-f8b33c07.js} +1 -1
- package/dist/cjs/{utils-4eb18a29.js → utils-5ecfecd9.js} +18 -30
- package/dist/collection/collection-manifest.json +1 -0
- 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 +5 -0
- package/dist/collection/components/sqm-form-message/sqm-form-message.js +30 -0
- package/dist/collection/components/sqm-header-logo/sqm-header-logo.js +85 -5
- 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 +5 -7
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +2 -2
- package/dist/collection/components/sqm-portal-email-verification/PortalEmailVerification.stories.js +1 -0
- package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification-view.js +3 -5
- package/dist/collection/components/sqm-portal-footer/sqm-portal-footer-view.js +3 -3
- package/dist/collection/components/sqm-qr-code/sqm-qr-code-view.js +1 -5
- 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-skeleton/Skeleton.stories.js +16 -0
- package/dist/collection/components/sqm-skeleton/sqm-skeleton.js +90 -0
- package/dist/collection/components/sqm-stencilbook/Themes.js +12 -0
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +2 -0
- 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 +6 -3
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +1 -0
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +10 -5
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +11 -5
- 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-indirect-tax-form/useIndirectTaxForm.js +46 -40
- 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/PayoutStatusAlert.stories.js +13 -0
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +98 -7
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +361 -8
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +29 -2
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/LoadingView.js +17 -29
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +311 -11
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +101 -16
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +310 -10
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +7 -1
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +22 -13
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +100 -9
- package/dist/collection/global/styles.js +55 -54
- package/dist/collection/global/styles.ts +6 -1
- package/dist/collection/tables/TableSlots.js +6 -6
- package/dist/esm/{IndirectTaxDetailsView-8dec05e4.js → IndirectTaxDetailsView-a7dd6e4c.js} +2 -2
- package/dist/esm/{ShadowViewAddon-7a242b65.js → ShadowViewAddon-fe2896cb.js} +25 -27
- package/dist/esm/{data-acdb790f.js → data-68816061.js} +29 -2
- package/dist/esm/{global-58a69018.js → global-536c422d.js} +55 -54
- 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 +355 -102
- package/dist/esm/sqm-big-stat_47.entry.js +232 -22
- package/dist/esm/sqm-code-verification.entry.js +1 -1
- package/dist/esm/sqm-email-verification.entry.js +7 -4
- package/dist/esm/sqm-empty_4.entry.js +1 -1
- package/dist/esm/{sqm-form-message.entry.js → sqm-form-message_2.entry.js} +50 -1
- package/dist/esm/sqm-header-logo.entry.js +15 -2
- package/dist/esm/{sqm-lead-checkbox-field-view-81541e40.js → sqm-lead-checkbox-field-view-5c387852.js} +1 -1
- package/dist/esm/sqm-lead-checkbox-field.entry.js +3 -3
- package/dist/esm/{sqm-lead-input-field-view-d543d939.js → sqm-lead-input-field-view-fa2488c9.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-5fb1a99e.js → sqm-portal-email-verification-view-8bbe5fcf.js} +4 -6
- package/dist/esm/sqm-portal-email-verification.entry.js +2 -2
- package/dist/esm/{sqm-portal-profile-view-e3aef106.js → sqm-portal-profile-view-9848caf1.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +2 -2
- package/dist/esm/{sqm-qr-code-view-ea505213.js → sqm-qr-code-view-804b8bb6.js} +1 -5
- 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 +108 -54
- package/dist/esm/{useLeadFormState-8d4b2620.js → useLeadFormState-5a6188da.js} +1 -1
- package/dist/esm/{utils-2695a43e.js → utils-fafc712f.js} +18 -30
- package/dist/esm-es5/{IndirectTaxDetailsView-8dec05e4.js → IndirectTaxDetailsView-a7dd6e4c.js} +1 -1
- package/dist/esm-es5/{ShadowViewAddon-7a242b65.js → ShadowViewAddon-fe2896cb.js} +1 -1
- package/dist/esm-es5/{data-acdb790f.js → data-68816061.js} +2 -2
- package/dist/esm-es5/{global-58a69018.js → global-536c422d.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_2.entry.js +1 -0
- package/dist/esm-es5/sqm-header-logo.entry.js +1 -1
- package/dist/esm-es5/{sqm-lead-checkbox-field-view-81541e40.js → sqm-lead-checkbox-field-view-5c387852.js} +1 -1
- package/dist/esm-es5/sqm-lead-checkbox-field.entry.js +1 -1
- package/dist/esm-es5/{sqm-lead-input-field-view-d543d939.js → sqm-lead-input-field-view-fa2488c9.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-8bbe5fcf.js +1 -0
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-e3aef106.js → sqm-portal-profile-view-9848caf1.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/{sqm-qr-code-view-ea505213.js → sqm-qr-code-view-804b8bb6.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-8d4b2620.js → useLeadFormState-5a6188da.js} +1 -1
- package/dist/esm-es5/utils-fafc712f.js +1 -0
- package/dist/mint-components/global/styles.ts +6 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-c6e8086f.system.entry.js → p-000dc98f.system.entry.js} +1 -1
- package/dist/mint-components/{p-988f236f.js → p-005ee5bf.js} +1 -1
- package/dist/mint-components/{p-0c024cf0.system.entry.js → p-05e8620f.system.entry.js} +1 -1
- package/dist/mint-components/p-0d3803a2.js +1 -0
- package/dist/mint-components/p-10aea972.system.js +1 -0
- package/dist/mint-components/{p-13c6673e.system.js → p-19e407bd.system.js} +1 -1
- package/dist/mint-components/{p-4cc72a4e.system.js → p-1e156272.system.js} +1 -1
- package/dist/mint-components/{p-a470e203.entry.js → p-2192a6d7.entry.js} +2 -2
- package/dist/mint-components/p-28973c9b.entry.js +144 -0
- package/dist/mint-components/{p-6076dbaf.entry.js → p-30f37386.entry.js} +2 -2
- package/dist/mint-components/{p-1215518e.system.js → p-33fff374.system.js} +1 -1
- package/dist/mint-components/p-397a5adf.system.entry.js +1 -0
- package/dist/mint-components/p-3ad8e1af.system.js +1 -0
- package/dist/mint-components/{p-1aa9136c.js → p-4130caec.js} +1 -1
- package/dist/mint-components/p-438a0c91.system.entry.js +1 -0
- package/dist/mint-components/{p-5fbe6356.system.js → p-48bc3283.system.js} +1 -1
- package/dist/mint-components/{p-36a1fa33.system.entry.js → p-4b595fc3.system.entry.js} +1 -1
- package/dist/mint-components/{p-9d46f87f.system.entry.js → p-4e3303a8.system.entry.js} +1 -1
- package/dist/mint-components/p-566d837b.system.js +1 -0
- package/dist/mint-components/p-59332a30.entry.js +1 -0
- package/dist/mint-components/p-5d39d345.system.entry.js +1 -0
- package/dist/mint-components/{p-d7635535.system.js → p-648f881e.system.js} +1 -1
- package/dist/mint-components/{p-43ad51bc.entry.js → p-66effbef.entry.js} +1 -1
- package/dist/mint-components/p-69bd9de3.entry.js +106 -0
- package/dist/mint-components/{p-bf044217.js → p-78968e5f.js} +1 -1
- package/dist/mint-components/p-7c9520b7.system.js +1 -0
- package/dist/mint-components/p-7e550c3b.system.entry.js +1 -0
- package/dist/mint-components/{p-ad3ebf4d.entry.js → p-80196216.entry.js} +1 -1
- package/dist/mint-components/{p-58c79873.entry.js → p-8a24b9a9.entry.js} +1 -1
- package/dist/mint-components/p-8af550b9.system.entry.js +1 -0
- package/dist/mint-components/{p-deecffd0.system.entry.js → p-8f6b3391.system.entry.js} +1 -1
- package/dist/mint-components/{p-011c0990.system.entry.js → p-902b919d.system.entry.js} +1 -1
- package/dist/mint-components/p-92b5c376.js +157 -0
- package/dist/mint-components/p-a115c57a.system.entry.js +1 -0
- package/dist/mint-components/p-a2dbc9ad.system.js +6 -0
- package/dist/mint-components/{p-f5256738.system.entry.js → p-a45124c1.system.entry.js} +1 -1
- package/dist/mint-components/p-a6198c55.entry.js +273 -0
- package/dist/mint-components/{p-1b79b186.entry.js → p-a65610e3.entry.js} +1 -1
- package/dist/mint-components/{p-f7e49c12.entry.js → p-a7157ef3.entry.js} +2 -2
- package/dist/mint-components/{p-4965dae4.system.js → p-a71edffc.system.js} +1 -1
- package/dist/mint-components/p-a92c692b.js +448 -0
- package/dist/mint-components/p-ab4c0642.js +1 -0
- package/dist/mint-components/{p-8618e8f6.system.js → p-af02f28c.system.js} +1 -1
- package/dist/mint-components/p-af758193.entry.js +1 -0
- package/dist/mint-components/{p-12e6cea7.entry.js → p-b8878552.entry.js} +2 -2
- package/dist/mint-components/p-bdb6194c.entry.js +1 -0
- package/dist/mint-components/p-c37744c7.entry.js +1 -0
- package/dist/mint-components/{p-1d8c5935.js → p-ceb79149.js} +1 -1
- package/dist/mint-components/{p-2ea3eea9.system.entry.js → p-d07a46c6.system.entry.js} +1 -1
- package/dist/mint-components/{p-027c0b10.js → p-d6d31505.js} +32 -32
- package/dist/mint-components/{p-fcf8bdbc.system.entry.js → p-d8d818d9.system.entry.js} +1 -1
- package/dist/mint-components/p-dcdd959e.entry.js +9 -0
- package/dist/mint-components/p-e0c7640f.js +1 -0
- package/dist/mint-components/{p-e19f0908.entry.js → p-e712a01d.entry.js} +2 -2
- package/dist/mint-components/p-ede77156.system.entry.js +1 -0
- package/dist/mint-components/{p-f3613921.system.entry.js → p-f380bcd9.system.entry.js} +1 -1
- package/dist/mint-components/{p-088f082f.js → p-f6305644.js} +1 -1
- package/dist/types/components/sqm-form-message/FormMessage.stories.d.ts +1 -0
- package/dist/types/components/sqm-form-message/sqm-form-message.d.ts +6 -0
- package/dist/types/components/sqm-header-logo/sqm-header-logo.d.ts +17 -2
- package/dist/types/components/sqm-skeleton/Skeleton.stories.d.ts +8 -0
- package/dist/types/components/sqm-skeleton/sqm-skeleton.d.ts +14 -0
- package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.d.ts +24 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.d.ts +7 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.d.ts +16 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +57 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +3 -1
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +48 -0
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +12 -0
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +48 -0
- package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.d.ts +2 -0
- package/dist/types/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.d.ts +1 -0
- package/dist/types/components.d.ts +376 -43
- package/dist/types/global/android.d.ts +7 -0
- package/dist/types/global/demo.d.ts +2 -0
- package/dist/types/saasquatch.d.ts +4 -0
- package/dist/types/stories/features.d.ts +4 -0
- package/dist/types/stories/templates.d.ts +4 -0
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/sqm-form-message.entry.js +0 -1
- package/dist/esm-es5/sqm-portal-email-verification-view-5fb1a99e.js +0 -1
- package/dist/esm-es5/utils-2695a43e.js +0 -1
- package/dist/mint-components/p-012d31bc.entry.js +0 -99
- package/dist/mint-components/p-0d71303d.js +0 -1
- package/dist/mint-components/p-2ea6e2fa.entry.js +0 -273
- package/dist/mint-components/p-303b84d7.system.entry.js +0 -1
- package/dist/mint-components/p-325c5476.js +0 -1
- package/dist/mint-components/p-469a6450.system.js +0 -6
- package/dist/mint-components/p-478ad7c8.system.entry.js +0 -1
- package/dist/mint-components/p-6976099f.entry.js +0 -9
- package/dist/mint-components/p-752ede25.system.entry.js +0 -1
- package/dist/mint-components/p-78dda262.system.js +0 -1
- package/dist/mint-components/p-829cb9ed.system.entry.js +0 -1
- package/dist/mint-components/p-8d9fa981.system.js +0 -1
- package/dist/mint-components/p-947bacd1.system.js +0 -1
- package/dist/mint-components/p-97747228.system.entry.js +0 -1
- package/dist/mint-components/p-a7ee19dc.entry.js +0 -1
- package/dist/mint-components/p-a974c549.js +0 -1
- package/dist/mint-components/p-ac9138fd.entry.js +0 -1
- package/dist/mint-components/p-d88d8ffe.entry.js +0 -1
- package/dist/mint-components/p-dc5bca55.entry.js +0 -1
- package/dist/mint-components/p-e1e7d01c.js +0 -157
- package/dist/mint-components/p-e8bda98a.system.entry.js +0 -1
- package/dist/mint-components/p-ee3a7577.entry.js +0 -144
- package/dist/mint-components/p-eea87fdc.system.entry.js +0 -1
- package/dist/mint-components/p-f5820d03.system.js +0 -1
- package/dist/mint-components/p-ffc3cd7c.js +0 -448
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const index = require('./index-a43a63b4.js');
|
|
4
|
-
const global = require('./global-
|
|
4
|
+
const global = require('./global-94f36ad7.js');
|
|
5
5
|
const domContextHooks_module = require('./dom-context-hooks.module-7fa676ae.js');
|
|
6
6
|
const index_module = require('./index.module-4f54e412.js');
|
|
7
7
|
const JSS = require('./JSS-8503a151.js');
|
|
@@ -1,55 +1,43 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const index = require('./index-a43a63b4.js');
|
|
4
|
-
const global = require('./global-
|
|
4
|
+
const global = require('./global-94f36ad7.js');
|
|
5
5
|
const JSS = require('./JSS-8503a151.js');
|
|
6
6
|
|
|
7
7
|
const style = {
|
|
8
8
|
Container: {
|
|
9
9
|
display: "flex",
|
|
10
10
|
flexDirection: "column",
|
|
11
|
-
gap: "
|
|
11
|
+
gap: "35px",
|
|
12
12
|
},
|
|
13
13
|
HeaderContainer: {
|
|
14
14
|
display: "flex",
|
|
15
15
|
flexDirection: "column",
|
|
16
16
|
gap: "10px",
|
|
17
17
|
},
|
|
18
|
-
TitleSkeleton: {
|
|
19
|
-
width: "45%",
|
|
20
|
-
height: "40px !important",
|
|
21
|
-
},
|
|
22
|
-
StepSkeleton: {
|
|
23
|
-
width: "15%",
|
|
24
|
-
},
|
|
25
|
-
HeaderSkeleton: {
|
|
26
|
-
width: "25%",
|
|
27
|
-
height: "30px !important",
|
|
28
|
-
},
|
|
29
|
-
InputSkeleton: {
|
|
30
|
-
width: "75%",
|
|
31
|
-
},
|
|
32
|
-
ButtonSkeleton: {
|
|
33
|
-
width: "80px",
|
|
34
|
-
height: "30px !important",
|
|
35
|
-
},
|
|
36
18
|
};
|
|
37
19
|
const sheet = JSS.createStyleSheet(style);
|
|
38
20
|
const styleString = sheet.toString();
|
|
39
21
|
const LoadingView = () => {
|
|
40
22
|
return (index.h("div", { class: sheet.classes.Container },
|
|
41
23
|
index.h("style", { type: "text/css" }, styleString),
|
|
42
|
-
index.h("
|
|
24
|
+
index.h("sqm-skeleton", { width: "45%", height: "40px !important" }),
|
|
43
25
|
index.h("div", { class: sheet.classes.HeaderContainer },
|
|
44
|
-
index.h("
|
|
45
|
-
index.h("
|
|
46
|
-
index.h("
|
|
47
|
-
index.h("
|
|
48
|
-
index.h("
|
|
49
|
-
index.h("
|
|
50
|
-
index.h("
|
|
51
|
-
index.h("
|
|
52
|
-
index.h("
|
|
26
|
+
index.h("sqm-skeleton", { width: "15%" }),
|
|
27
|
+
index.h("sqm-skeleton", { width: "25%", height: "30px !important" })),
|
|
28
|
+
index.h("sqm-skeleton", { width: "75%", height: "35px" }),
|
|
29
|
+
index.h("sqm-skeleton", { width: "75%", height: "35px" }),
|
|
30
|
+
index.h("sqm-skeleton", { width: "75%", height: "35px" }),
|
|
31
|
+
index.h("sqm-skeleton", { width: "75%", height: "35px" }),
|
|
32
|
+
index.h("sqm-skeleton", { width: "75%", height: "35px" }),
|
|
33
|
+
index.h("sqm-skeleton", { width: "75%", height: "35px" }),
|
|
34
|
+
index.h("sqm-skeleton", { width: "75%", height: "35px" }),
|
|
35
|
+
index.h("sqm-skeleton", { width: "75%", height: "35px" }),
|
|
36
|
+
index.h("sqm-skeleton", { width: "75%", height: "35px" }),
|
|
37
|
+
index.h("sqm-skeleton", { width: "75%", height: "35px" }),
|
|
38
|
+
index.h("sqm-skeleton", { width: "75%", height: "35px" }),
|
|
39
|
+
index.h("sqm-skeleton", { width: "15%" }),
|
|
40
|
+
index.h("sqm-skeleton", { width: "80px", height: "30px !important" })));
|
|
53
41
|
};
|
|
54
42
|
|
|
55
43
|
function validTaxDocument(requiredType) {
|
|
@@ -107,6 +107,7 @@
|
|
|
107
107
|
"./components/sqm-share-button/sqm-share-button.js",
|
|
108
108
|
"./components/sqm-share-code/sqm-share-code.js",
|
|
109
109
|
"./components/sqm-share-link/sqm-share-link.js",
|
|
110
|
+
"./components/sqm-skeleton/sqm-skeleton.js",
|
|
110
111
|
"./components/sqm-stat-container/sqm-stat-container.js",
|
|
111
112
|
"./components/sqm-stencilbook/BrandSelector.js",
|
|
112
113
|
"./components/sqm-stencilbook/sqm-stencilbook.js",
|
|
@@ -13,7 +13,7 @@ const EditProfileView = (props) => {
|
|
|
13
13
|
} }, text.editprofileheader),
|
|
14
14
|
h("form", { class: "FormWrapper", onSubmit: callbacks.onSubmit },
|
|
15
15
|
h("div", { class: "FormSection" },
|
|
16
|
-
states.formState.error && (h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
|
|
16
|
+
states.formState.error && (h("sqm-form-message", { loading: states.loading, type: "error", exportparts: "erroralert-icon" },
|
|
17
17
|
h("div", { part: "erroralert-text" }, states.formState.error))),
|
|
18
18
|
h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", value: states.formState.firstName, onInput: callbacks.onChange, label: text.firstnametext, disabled: states.loading }, (errors.firstName && errors.firstName.status !== "valid"
|
|
19
19
|
? { class: "ErrorStyles", helpText: text.fieldEmptyText }
|
|
@@ -36,3 +36,8 @@ 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,6 +7,12 @@ 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;
|
|
10
16
|
/**
|
|
11
17
|
* Render the alert with transparent styles
|
|
12
18
|
*/
|
|
@@ -15,6 +21,9 @@ export class FormMessage {
|
|
|
15
21
|
}
|
|
16
22
|
disconnectedCallback() { }
|
|
17
23
|
render() {
|
|
24
|
+
if (this.loading) {
|
|
25
|
+
return h("sqm-skeleton", { height: "90px", width: "100%" });
|
|
26
|
+
}
|
|
18
27
|
if (this.type === "error") {
|
|
19
28
|
return (h("sl-alert", { exportparts: "base: erroralert-base, icon:erroralert-icon", class: `Error ${this.transparent ? "Transparent" : ""}`, type: "danger", open: true },
|
|
20
29
|
h("sl-icon", { id: "icon", slot: "icon", name: `${this.icon ? this.icon : "exclamation-octagon"}` }),
|
|
@@ -65,6 +74,27 @@ export class FormMessage {
|
|
|
65
74
|
"attribute": "type",
|
|
66
75
|
"reflect": false
|
|
67
76
|
},
|
|
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
|
+
},
|
|
68
98
|
"icon": {
|
|
69
99
|
"type": "string",
|
|
70
100
|
"mutable": false,
|
|
@@ -6,6 +6,16 @@ import { Component, h, Host, Prop } from "@stencil/core";
|
|
|
6
6
|
*/
|
|
7
7
|
export class HeroImage {
|
|
8
8
|
constructor() {
|
|
9
|
+
/**
|
|
10
|
+
* @uiName Logo text size (in px)
|
|
11
|
+
* @uiWidget number
|
|
12
|
+
*/
|
|
13
|
+
this.logoTextSize = 32;
|
|
14
|
+
/**
|
|
15
|
+
* @uiWidget color
|
|
16
|
+
* @uiName Logo text color
|
|
17
|
+
*/
|
|
18
|
+
this.logoTextColor = "var(--sqm-primary-color, var(--sqm-text, #555555))";
|
|
9
19
|
/**
|
|
10
20
|
* Page participants are navigated to after clicking the header logo.
|
|
11
21
|
*
|
|
@@ -14,7 +24,7 @@ export class HeroImage {
|
|
|
14
24
|
*/
|
|
15
25
|
this.nextPage = "/";
|
|
16
26
|
/**
|
|
17
|
-
* @uiName Logo height
|
|
27
|
+
* @uiName Logo height (in px)
|
|
18
28
|
*/
|
|
19
29
|
this.height = 60;
|
|
20
30
|
withHooks(this);
|
|
@@ -22,8 +32,10 @@ export class HeroImage {
|
|
|
22
32
|
disconnectedCallback() { }
|
|
23
33
|
render() {
|
|
24
34
|
return (h(Host, null,
|
|
25
|
-
h("a", { href: this.nextPage, part: "sqm-link" },
|
|
26
|
-
|
|
35
|
+
h("a", { href: this.nextPage, part: "sqm-link", style: { textDecoration: "none" } }, this.imageUrl ? (h("img", { style: { height: `${this === null || this === void 0 ? void 0 : this.height}px` }, src: this === null || this === void 0 ? void 0 : this.imageUrl })) : (h("h3", { style: {
|
|
36
|
+
fontSize: `${this.logoTextSize}px`,
|
|
37
|
+
color: this.logoTextColor,
|
|
38
|
+
} }, this.logoText)))));
|
|
27
39
|
}
|
|
28
40
|
static get is() { return "sqm-header-logo"; }
|
|
29
41
|
static get encapsulation() { return "shadow"; }
|
|
@@ -37,7 +49,7 @@ export class HeroImage {
|
|
|
37
49
|
"references": {}
|
|
38
50
|
},
|
|
39
51
|
"required": false,
|
|
40
|
-
"optional":
|
|
52
|
+
"optional": true,
|
|
41
53
|
"docs": {
|
|
42
54
|
"tags": [{
|
|
43
55
|
"text": "ImageUpload",
|
|
@@ -54,6 +66,74 @@ export class HeroImage {
|
|
|
54
66
|
"attribute": "image-url",
|
|
55
67
|
"reflect": false
|
|
56
68
|
},
|
|
69
|
+
"logoText": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"mutable": false,
|
|
72
|
+
"complexType": {
|
|
73
|
+
"original": "string",
|
|
74
|
+
"resolved": "string",
|
|
75
|
+
"references": {}
|
|
76
|
+
},
|
|
77
|
+
"required": false,
|
|
78
|
+
"optional": true,
|
|
79
|
+
"docs": {
|
|
80
|
+
"tags": [{
|
|
81
|
+
"text": "Logo text",
|
|
82
|
+
"name": "uiName"
|
|
83
|
+
}],
|
|
84
|
+
"text": "This text will be used as the logo only if no Logo image is selected above. The image takes precedence."
|
|
85
|
+
},
|
|
86
|
+
"attribute": "logo-text",
|
|
87
|
+
"reflect": false
|
|
88
|
+
},
|
|
89
|
+
"logoTextSize": {
|
|
90
|
+
"type": "number",
|
|
91
|
+
"mutable": false,
|
|
92
|
+
"complexType": {
|
|
93
|
+
"original": "number",
|
|
94
|
+
"resolved": "number",
|
|
95
|
+
"references": {}
|
|
96
|
+
},
|
|
97
|
+
"required": false,
|
|
98
|
+
"optional": true,
|
|
99
|
+
"docs": {
|
|
100
|
+
"tags": [{
|
|
101
|
+
"text": "Logo text size (in px)",
|
|
102
|
+
"name": "uiName"
|
|
103
|
+
}, {
|
|
104
|
+
"text": "number",
|
|
105
|
+
"name": "uiWidget"
|
|
106
|
+
}],
|
|
107
|
+
"text": ""
|
|
108
|
+
},
|
|
109
|
+
"attribute": "logo-text-size",
|
|
110
|
+
"reflect": false,
|
|
111
|
+
"defaultValue": "32"
|
|
112
|
+
},
|
|
113
|
+
"logoTextColor": {
|
|
114
|
+
"type": "string",
|
|
115
|
+
"mutable": false,
|
|
116
|
+
"complexType": {
|
|
117
|
+
"original": "string",
|
|
118
|
+
"resolved": "string",
|
|
119
|
+
"references": {}
|
|
120
|
+
},
|
|
121
|
+
"required": false,
|
|
122
|
+
"optional": true,
|
|
123
|
+
"docs": {
|
|
124
|
+
"tags": [{
|
|
125
|
+
"text": "color",
|
|
126
|
+
"name": "uiWidget"
|
|
127
|
+
}, {
|
|
128
|
+
"text": "Logo text color",
|
|
129
|
+
"name": "uiName"
|
|
130
|
+
}],
|
|
131
|
+
"text": ""
|
|
132
|
+
},
|
|
133
|
+
"attribute": "logo-text-color",
|
|
134
|
+
"reflect": false,
|
|
135
|
+
"defaultValue": "\"var(--sqm-primary-color, var(--sqm-text, #555555))\""
|
|
136
|
+
},
|
|
57
137
|
"nextPage": {
|
|
58
138
|
"type": "string",
|
|
59
139
|
"mutable": false,
|
|
@@ -90,7 +170,7 @@ export class HeroImage {
|
|
|
90
170
|
"optional": false,
|
|
91
171
|
"docs": {
|
|
92
172
|
"tags": [{
|
|
93
|
-
"text": "Logo height",
|
|
173
|
+
"text": "Logo height (in px)",
|
|
94
174
|
"name": "uiName"
|
|
95
175
|
}],
|
|
96
176
|
"text": ""
|
|
@@ -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("sqm-skeleton", null))),
|
|
12
12
|
h("sqm-table-row", null,
|
|
13
13
|
h("sqm-table-cell", { colspan: 6 },
|
|
14
|
-
h("
|
|
14
|
+
h("sqm-skeleton", null))),
|
|
15
15
|
h("sqm-table-row", null,
|
|
16
16
|
h("sqm-table-cell", { colspan: 6 },
|
|
17
|
-
h("
|
|
17
|
+
h("sqm-skeleton", null))),
|
|
18
18
|
h("sqm-table-row", null,
|
|
19
19
|
h("sqm-table-cell", { colspan: 6 },
|
|
20
|
-
h("
|
|
20
|
+
h("sqm-skeleton", null))),
|
|
21
21
|
h("sqm-table-row", null,
|
|
22
22
|
h("sqm-table-cell", { colspan: 6 },
|
|
23
|
-
h("
|
|
23
|
+
h("sqm-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("sqm-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", { exportparts: "success-icon" },
|
|
79
|
+
h("sqm-form-message", { loading: states.loading, 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,16 +87,14 @@ 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("
|
|
93
|
-
h("br", null),
|
|
94
|
-
intl.formatMessage({
|
|
90
|
+
states.error && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "error" },
|
|
91
|
+
h("p", { part: "alert-title" }, content.submitErrorHeader),
|
|
92
|
+
h("p", { part: "alert-text" }, intl.formatMessage({
|
|
95
93
|
id: "submitErrorDescription",
|
|
96
94
|
defaultMessage: content.submitErrorDescription,
|
|
97
95
|
}, {
|
|
98
96
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, content.supportLinkText)),
|
|
99
|
-
}))),
|
|
97
|
+
})))),
|
|
100
98
|
h("div", { class: sheet.classes.NameFieldWrapper },
|
|
101
99
|
h("sqm-lead-input-field", { class: sheet.classes.NameInput, "field-label": content.firstNameLabel || "First Name", "field-name": "firstName" }),
|
|
102
100
|
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(5)].map(() => {
|
|
78
78
|
return (h("tr", null,
|
|
79
79
|
h("td", null,
|
|
80
|
-
h("
|
|
80
|
+
h("sqm-skeleton", null))));
|
|
81
81
|
}))));
|
|
82
82
|
}
|
|
83
83
|
if (!states.hasLeaders)
|
package/dist/collection/components/sqm-portal-email-verification/PortalEmailVerification.stories.js
CHANGED
|
@@ -17,6 +17,7 @@ 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}",
|
|
20
21
|
};
|
|
21
22
|
const defaultStates = {
|
|
22
23
|
error: "",
|
|
@@ -17,7 +17,7 @@ const style = {
|
|
|
17
17
|
},
|
|
18
18
|
ButtonLinkLoading: {
|
|
19
19
|
fontSize: "14px",
|
|
20
|
-
color: "var(--
|
|
20
|
+
color: "var(--sqm-text-subdued)",
|
|
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(--sqm-text-subdued)", fontSize: "14px" } }, intl.formatMessage({
|
|
58
58
|
id: `verificationStatus`,
|
|
59
59
|
defaultMessage: states.loadingVerification
|
|
60
60
|
? verificationLoadingMessage + " {countdown}"
|
|
@@ -62,7 +62,5 @@ export function PortalEmailVerificationView(props) {
|
|
|
62
62
|
}, {
|
|
63
63
|
countdown: states.loadingVerification ? (h("sl-spinner", null)) : (states.countdown),
|
|
64
64
|
})),
|
|
65
|
-
h("
|
|
66
|
-
? sheet.classes.ButtonLinkLoading
|
|
67
|
-
: sheet.classes.ButtonLink, onClick: callbacks.submit }, resendEmailButtonText))));
|
|
65
|
+
h("sl-button", { type: "primary", exportparts: "base: primarybutton-base", onClick: callbacks.submit, loading: states.loading }, resendEmailButtonText))));
|
|
68
66
|
}
|
|
@@ -3,14 +3,14 @@ import { createStyleSheet } from "../../styling/JSS";
|
|
|
3
3
|
import { intl } from "../../global/global";
|
|
4
4
|
import { PoweredByImg } from "./PoweredByImg";
|
|
5
5
|
const vanillaStyle = `
|
|
6
|
-
:host{
|
|
6
|
+
:host {
|
|
7
7
|
margin: 0 auto;
|
|
8
8
|
width: 100%;
|
|
9
9
|
}
|
|
10
|
-
a{
|
|
10
|
+
a {
|
|
11
11
|
cursor:pointer;
|
|
12
12
|
color: var(--sqm-text-subdued);
|
|
13
|
-
text-decoration: none
|
|
13
|
+
text-decoration: none;
|
|
14
14
|
}
|
|
15
15
|
`;
|
|
16
16
|
export function PortalFooterView(props) {
|
|
@@ -68,11 +68,7 @@ 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
|
|
72
|
-
width: "100px",
|
|
73
|
-
height: "100px",
|
|
74
|
-
borderRadius: "0px !important",
|
|
75
|
-
} }));
|
|
71
|
+
return h("sqm-skeleton", { height: "100px", width: "100px" });
|
|
76
72
|
}
|
|
77
73
|
else if (qrLink) {
|
|
78
74
|
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("sqm-skeleton", null);
|
|
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("sqm-skeleton", null))),
|
|
16
16
|
h("sqm-table-row", null,
|
|
17
17
|
h("sqm-table-cell", { colspan: 5 },
|
|
18
|
-
h("
|
|
18
|
+
h("sqm-skeleton", null))),
|
|
19
19
|
h("sqm-table-row", null,
|
|
20
20
|
h("sqm-table-cell", { colspan: 5 },
|
|
21
|
-
h("
|
|
21
|
+
h("sqm-skeleton", null))),
|
|
22
22
|
h("sqm-table-row", null,
|
|
23
23
|
h("sqm-table-cell", { colspan: 5 },
|
|
24
|
-
h("
|
|
24
|
+
h("sqm-skeleton", null))),
|
|
25
25
|
h("sqm-table-row", null,
|
|
26
26
|
h("sqm-table-cell", { colspan: 5 },
|
|
27
|
-
h("
|
|
27
|
+
h("sqm-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("sqm-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("
|
|
571
|
-
width: "100px",
|
|
572
|
-
height: "100px",
|
|
570
|
+
h("sqm-skeleton", { style: {
|
|
573
571
|
margin: "9px",
|
|
574
|
-
|
|
575
|
-
} })),
|
|
572
|
+
}, width: "100px", height: "100px" })),
|
|
576
573
|
h("div", { style: {
|
|
577
574
|
margin: "var(--sl-spacing-small) var(--sl-spacing-small) 0 0",
|
|
578
575
|
width: "100%",
|
|
576
|
+
display: "flex",
|
|
577
|
+
flexDirection: "column",
|
|
578
|
+
gap: "var(--sl-spacing-small)",
|
|
579
579
|
} },
|
|
580
|
-
h("
|
|
581
|
-
h("
|
|
582
|
-
h("
|
|
580
|
+
h("sqm-skeleton", null),
|
|
581
|
+
h("sqm-skeleton", null),
|
|
582
|
+
h("sqm-skeleton", { 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("sqm-skeleton", null))),
|
|
15
15
|
h("sqm-table-row", null,
|
|
16
16
|
h("sqm-table-cell", { colspan: 5 },
|
|
17
|
-
h("
|
|
17
|
+
h("sqm-skeleton", null))),
|
|
18
18
|
h("sqm-table-row", null,
|
|
19
19
|
h("sqm-table-cell", { colspan: 5 },
|
|
20
|
-
h("
|
|
20
|
+
h("sqm-skeleton", null))),
|
|
21
21
|
h("sqm-table-row", null,
|
|
22
22
|
h("sqm-table-cell", { colspan: 5 },
|
|
23
|
-
h("
|
|
23
|
+
h("sqm-skeleton", null))),
|
|
24
24
|
h("sqm-table-row", null,
|
|
25
25
|
h("sqm-table-cell", { colspan: 5 },
|
|
26
|
-
h("
|
|
26
|
+
h("sqm-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("sqm-skeleton", null))));
|
|
273
273
|
}
|
|
274
274
|
function useRewardsTableDemo(props, emptyElement, loadingElement) {
|
|
275
275
|
const [content, setContent] = useReducer((state, next) => ({
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
export default {
|
|
3
|
+
title: "Components/Skeleton",
|
|
4
|
+
};
|
|
5
|
+
export const Default = () => {
|
|
6
|
+
return h("sqm-skeleton", null);
|
|
7
|
+
};
|
|
8
|
+
export const CustomWidth = () => {
|
|
9
|
+
return h("sqm-skeleton", { width: "100px" });
|
|
10
|
+
};
|
|
11
|
+
export const CustomHeight = () => {
|
|
12
|
+
return h("sqm-skeleton", { height: "100px" });
|
|
13
|
+
};
|
|
14
|
+
export const CustomWidthAndHeight = () => {
|
|
15
|
+
return h("sqm-skeleton", { width: "150px", height: "50px" });
|
|
16
|
+
};
|