@saasquatch/mint-components 2.0.0-9 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{ShadowViewAddon-016bebfd.js → ShadowViewAddon-1b38dcfc.js} +12 -8
- package/dist/cjs/{copy-text-view-51c8ee5d.js → copy-text-view-322436c2.js} +2 -8
- package/dist/cjs/{usePayoutStatus-fe32dd1a.js → data-16106637.js} +142 -0
- package/dist/cjs/{extractProps-fd93ba62.js → extractProps-e9c55ba8.js} +14 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +79 -42
- package/dist/cjs/{sqm-base-registration-form-view-8847804c.js → sqm-base-registration-form-view-69a4b615.js} +10 -4
- package/dist/cjs/{sqm-big-stat_46.cjs.entry.js → sqm-big-stat_47.cjs.entry.js} +1322 -24
- package/dist/cjs/sqm-code-verification.cjs.entry.js +1 -1
- package/dist/cjs/sqm-context-router.cjs.entry.js +1 -1
- package/dist/cjs/sqm-email-verification.cjs.entry.js +1 -1
- package/dist/cjs/sqm-empty_4.cjs.entry.js +2 -2
- package/dist/cjs/sqm-form-message.cjs.entry.js +9 -5
- package/dist/cjs/sqm-invoice-table-data-cell_5.cjs.entry.js +1 -1
- package/dist/cjs/sqm-lead-checkbox-field.cjs.entry.js +1 -1
- package/dist/cjs/sqm-lead-input-field.cjs.entry.js +1 -1
- package/dist/cjs/sqm-logout-current-user.cjs.entry.js +1 -1
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +1 -1
- package/dist/cjs/sqm-pagination_3.cjs.entry.js +2 -2
- package/dist/cjs/sqm-password-field.cjs.entry.js +1 -1
- package/dist/cjs/sqm-popup-container.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-container-view-ca86b9e5.js → sqm-portal-container-view-07e4343f.js} +1 -1
- package/dist/cjs/sqm-portal-google-login.cjs.entry.js +2 -2
- package/dist/cjs/sqm-portal-google-registration-form.cjs.entry.js +27 -19
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +1 -1
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +1 -1
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +1 -1
- package/dist/cjs/sqm-qr-code.cjs.entry.js +1 -1
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +1 -1
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +2 -3
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +38 -19
- package/dist/cjs/sqm-tabs.cjs.entry.js +1 -4
- package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +3 -2
- package/dist/cjs/sqm-widget-verification.cjs.entry.js +3 -4
- package/dist/cjs/{usePortalLogin-353f776a.js → usePortalLogin-1c022d8d.js} +1 -1
- package/dist/cjs/{utils-0d3ac0fb.js → utils-6847bc06.js} +0 -4
- package/dist/collection/components/sqm-base-registration/BaseRegistrationForm.stories.js +2 -2
- package/dist/collection/components/sqm-base-registration/sqm-base-registration-form-view.js +10 -4
- package/dist/collection/components/sqm-big-stat/sqm-big-stat-view.js +0 -2
- package/dist/collection/components/sqm-big-stat/useBigStat.js +7 -1
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +1 -1
- package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field.js +1 -1
- package/dist/collection/components/sqm-form-message/FormMessage.stories.js +14 -0
- package/dist/collection/components/sqm-form-message/sqm-form-message.css +7 -0
- package/dist/collection/components/sqm-form-message/sqm-form-message.js +26 -4
- package/dist/collection/components/sqm-hero/sqm-hero.js +4 -4
- package/dist/collection/components/sqm-hero-image/sqm-hero-image.js +2 -2
- package/dist/collection/components/sqm-input-field/sqm-input-field.js +1 -1
- package/dist/collection/components/sqm-marketing-emails-checkbox/sqm-marketing-emails-checkbox.js +1 -1
- package/dist/collection/components/sqm-name-fields/NameFields.stories.js +2 -0
- package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +2 -2
- package/dist/collection/components/sqm-name-fields/sqm-name-fields.js +31 -1
- package/dist/collection/components/sqm-name-fields/useNameFields.js +1 -0
- package/dist/collection/components/sqm-password-field/sqm-password-field.js +2 -2
- package/dist/collection/components/sqm-portal-container/sqm-portal-container-view.js +1 -1
- package/dist/collection/components/sqm-portal-footer/sqm-portal-footer.js +1 -1
- package/dist/collection/components/sqm-portal-forgot-password/PortalForgotPassword.stories.js +1 -0
- package/dist/collection/components/sqm-portal-google-registration-form/PortalGoogleRegistrationForm.stories.js +1 -0
- package/dist/collection/components/sqm-portal-google-registration-form/sqm-portal-google-registration-form.js +10 -7
- package/dist/collection/components/sqm-portal-google-registration-form/usePortalGoogleRegistrationForm.js +23 -13
- package/dist/collection/components/sqm-referred-registration/sqm-referred-registration.js +2 -2
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.js +2 -3
- package/dist/collection/components/sqm-share-link/sqm-share-link.js +0 -1
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +0 -1
- package/dist/collection/components/sqm-tabs/sqm-tabs-view.js +0 -3
- package/dist/collection/components/sqm-task-card/sqm-task-card.js +2 -2
- package/dist/collection/components/sqm-titled-section/sqm-titled-section.js +1 -1
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-controller.js +10 -4
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +6 -10
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +8 -32
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +2 -3
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +67 -26
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +0 -1
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +1 -4
- package/dist/collection/components/views/copy-text-view.js +2 -8
- package/dist/collection/utils/utils.js +0 -1
- package/dist/esm/{ShadowViewAddon-4cde160a.js → ShadowViewAddon-1adaf077.js} +12 -8
- package/dist/esm/{copy-text-view-83b09456.js → copy-text-view-fac47254.js} +2 -8
- package/dist/esm/{usePayoutStatus-42cc6a2c.js → data-acdb790f.js} +128 -1
- package/dist/esm/{extractProps-ae1afbb3.js → extractProps-54064fb0.js} +14 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/sqm-banking-info-form_10.entry.js +72 -35
- package/dist/esm/{sqm-base-registration-form-view-193f1721.js → sqm-base-registration-form-view-9e97d8b4.js} +10 -4
- package/dist/esm/{sqm-big-stat_46.entry.js → sqm-big-stat_47.entry.js} +1320 -23
- package/dist/esm/sqm-code-verification.entry.js +1 -1
- package/dist/esm/sqm-context-router.entry.js +1 -1
- package/dist/esm/sqm-email-verification.entry.js +1 -1
- package/dist/esm/sqm-empty_4.entry.js +2 -2
- package/dist/esm/sqm-form-message.entry.js +9 -5
- package/dist/esm/sqm-invoice-table-data-cell_5.entry.js +1 -1
- package/dist/esm/sqm-lead-checkbox-field.entry.js +1 -1
- package/dist/esm/sqm-lead-input-field.entry.js +1 -1
- package/dist/esm/sqm-logout-current-user.entry.js +1 -1
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm/sqm-pagination_3.entry.js +2 -2
- package/dist/esm/sqm-password-field.entry.js +1 -1
- package/dist/esm/sqm-popup-container.entry.js +1 -1
- package/dist/esm/{sqm-portal-container-view-16309b22.js → sqm-portal-container-view-176e92e3.js} +1 -1
- package/dist/esm/sqm-portal-google-login.entry.js +2 -2
- package/dist/esm/sqm-portal-google-registration-form.entry.js +27 -19
- package/dist/esm/sqm-portal-profile.entry.js +1 -1
- package/dist/esm/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm/sqm-qr-code.entry.js +1 -1
- package/dist/esm/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm/sqm-rewards-table_9.entry.js +2 -3
- package/dist/esm/sqm-stencilbook.entry.js +38 -19
- package/dist/esm/sqm-tabs.entry.js +1 -4
- package/dist/esm/sqm-widget-verification-controller.entry.js +3 -2
- package/dist/esm/sqm-widget-verification.entry.js +2 -3
- package/dist/esm/{usePortalLogin-95814943.js → usePortalLogin-f95bbc67.js} +1 -1
- package/dist/esm/{utils-84b4b092.js → utils-334c1e34.js} +0 -4
- package/dist/esm-es5/{ShadowViewAddon-4cde160a.js → ShadowViewAddon-1adaf077.js} +1 -1
- package/dist/esm-es5/data-acdb790f.js +6 -0
- package/dist/esm-es5/extractProps-54064fb0.js +1 -0
- 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-base-registration-form-view-9e97d8b4.js +1 -0
- package/dist/esm-es5/sqm-big-stat_47.entry.js +1 -0
- package/dist/esm-es5/sqm-code-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-context-router.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 -1
- package/dist/esm-es5/sqm-invoice-table-data-cell_5.entry.js +1 -1
- package/dist/esm-es5/sqm-lead-checkbox-field.entry.js +1 -1
- package/dist/esm-es5/sqm-lead-input-field.entry.js +1 -1
- package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
- package/dist/esm-es5/sqm-password-field.entry.js +1 -1
- package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-container-view-16309b22.js → sqm-portal-container-view-176e92e3.js} +1 -1
- package/dist/esm-es5/sqm-portal-google-login.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-google-registration-form.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-verify-email.entry.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/sqm-tabs.entry.js +1 -1
- package/dist/esm-es5/sqm-widget-verification.entry.js +1 -1
- package/dist/esm-es5/{usePortalLogin-95814943.js → usePortalLogin-f95bbc67.js} +1 -1
- package/dist/esm-es5/utils-334c1e34.js +1 -0
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/{p-ab79297a.entry.js → p-010957a1.entry.js} +6 -6
- package/dist/mint-components/p-0797a946.js +1 -0
- package/dist/mint-components/{p-0ea4d6a1.system.entry.js → p-0b9b1b36.system.entry.js} +1 -1
- package/dist/mint-components/{p-4ffc5bce.js → p-0e1a1b14.js} +4 -4
- package/dist/mint-components/{p-7bae9bb7.system.entry.js → p-14e813a7.system.entry.js} +1 -1
- package/dist/mint-components/{p-9fed62f8.system.entry.js → p-18720462.system.entry.js} +1 -1
- package/dist/mint-components/{p-c6fa4cc5.system.js → p-20c40fdf.system.js} +1 -1
- package/dist/mint-components/{p-eba70d67.system.entry.js → p-2700136f.system.entry.js} +1 -1
- package/dist/mint-components/{p-67aa0b2d.entry.js → p-30278955.entry.js} +1 -1
- package/dist/mint-components/{p-e110688b.entry.js → p-31bba357.entry.js} +2 -2
- package/dist/mint-components/{p-2ff72acc.entry.js → p-3b46fae5.entry.js} +2 -2
- package/dist/mint-components/{p-e711d0e9.js → p-44fc6029.js} +1 -1
- package/dist/mint-components/p-469a6450.system.js +6 -0
- package/dist/mint-components/p-478ad7c8.system.entry.js +1 -0
- package/dist/mint-components/{p-7b8cd420.system.entry.js → p-4ce51b1c.system.entry.js} +1 -1
- package/dist/mint-components/p-51a6a779.js +1 -0
- package/dist/mint-components/{p-cb845a3a.system.entry.js → p-56009bf0.system.entry.js} +1 -1
- package/dist/mint-components/{p-c86f64ad.system.entry.js → p-5b7a896e.system.entry.js} +1 -1
- package/dist/mint-components/{p-0caad0db.entry.js → p-5d059c95.entry.js} +1 -1
- package/dist/mint-components/{p-f370bddc.entry.js → p-60c14cec.entry.js} +1 -1
- package/dist/mint-components/p-6333265f.system.js +1 -0
- package/dist/mint-components/{p-6b0f79d1.system.entry.js → p-6445e926.system.entry.js} +1 -1
- package/dist/mint-components/p-662ed116.system.entry.js +1 -0
- package/dist/mint-components/{p-a9ad7fb2.system.entry.js → p-674d9089.system.entry.js} +1 -1
- package/dist/mint-components/{p-29f0c87d.entry.js → p-6a0ddee0.entry.js} +1 -1
- package/dist/mint-components/p-6c006998.entry.js +33 -0
- package/dist/mint-components/{p-b1eafaae.entry.js → p-6d9ce4e5.entry.js} +1 -1
- package/dist/mint-components/{p-b703c89f.system.entry.js → p-717b6730.system.entry.js} +1 -1
- package/dist/mint-components/p-720341b1.entry.js +273 -0
- package/dist/mint-components/{p-b55002dc.system.entry.js → p-72b914b9.system.entry.js} +1 -1
- package/dist/mint-components/{p-433e7458.entry.js → p-7e323f2c.entry.js} +1 -1
- package/dist/mint-components/p-80569911.system.js +1 -0
- package/dist/mint-components/{p-c531cc75.entry.js → p-85029918.entry.js} +1 -1
- package/dist/mint-components/{p-ab018deb.entry.js → p-8931d05e.entry.js} +2 -2
- package/dist/mint-components/{p-b487cb00.system.entry.js → p-8afb47c5.system.entry.js} +1 -1
- package/dist/mint-components/{p-cf22cf56.entry.js → p-8b5b2acc.entry.js} +1 -1
- package/dist/mint-components/{p-1fa9ef02.js → p-9580aac3.js} +1 -1
- package/dist/mint-components/p-95b6e903.entry.js +1 -0
- package/dist/mint-components/p-967a9040.system.js +1 -1
- package/dist/mint-components/p-9ba07029.system.entry.js +1 -0
- package/dist/mint-components/{p-6dc742bc.js → p-9ec99ced.js} +1 -1
- package/dist/mint-components/{p-c62b277d.system.js → p-9f8d34d1.system.js} +1 -1
- package/dist/mint-components/{p-4250b06d.entry.js → p-a217cc8d.entry.js} +1 -1
- package/dist/mint-components/{p-4c9d80e4.entry.js → p-a32afaaa.entry.js} +1 -1
- package/dist/mint-components/{p-61157c6a.entry.js → p-a5c63310.entry.js} +1 -1
- package/dist/mint-components/p-a6f4fb03.system.js +1 -0
- package/dist/mint-components/{p-1c6ef258.system.entry.js → p-ac86903a.system.entry.js} +1 -1
- package/dist/mint-components/p-ac9138fd.entry.js +1 -0
- package/dist/mint-components/{p-3bf5cd51.entry.js → p-aefaec37.entry.js} +1 -1
- package/dist/mint-components/{p-bfd77a07.entry.js → p-b00e8365.entry.js} +1 -1
- package/dist/mint-components/{p-66cf70f7.system.entry.js → p-b3510ca0.system.entry.js} +1 -1
- package/dist/mint-components/{p-06f13966.system.entry.js → p-bec87ac9.system.entry.js} +1 -1
- package/dist/mint-components/{p-f7c0877d.entry.js → p-c95a437e.entry.js} +1 -1
- package/dist/mint-components/p-d2bb770d.system.entry.js +1 -0
- package/dist/mint-components/{p-d4edce6c.system.entry.js → p-d3120982.system.entry.js} +1 -1
- package/dist/mint-components/p-d69c0a32.system.entry.js +1 -0
- package/dist/mint-components/{p-cf4e1709.entry.js → p-d9780ae9.entry.js} +1 -1
- package/dist/mint-components/{p-978d06ab.entry.js → p-e1422b78.entry.js} +1 -1
- package/dist/mint-components/p-e1e7d01c.js +157 -0
- package/dist/mint-components/{p-84d1041d.system.entry.js → p-e3b4e06a.system.entry.js} +1 -1
- package/dist/mint-components/p-e55aafe9.system.js +1 -0
- package/dist/mint-components/{p-0d21194c.entry.js → p-ea0bc627.entry.js} +1 -1
- package/dist/mint-components/{p-dd30354a.system.entry.js → p-f3613921.system.entry.js} +1 -1
- package/dist/mint-components/{p-55eaba8e.system.entry.js → p-f3c2074b.system.entry.js} +1 -1
- package/dist/mint-components/{p-2623b232.system.entry.js → p-f401ef19.system.entry.js} +1 -1
- package/dist/mint-components/{p-c065057d.entry.js → p-f7e49c12.entry.js} +2 -2
- package/dist/mint-components/p-fedb9ab8.system.entry.js +1 -0
- package/dist/types/components/sqm-base-registration/sqm-base-registration-form-view.d.ts +3 -1
- package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field.d.ts +1 -1
- package/dist/types/components/sqm-dropdown-field/sqm-dropdown-field.d.ts +1 -1
- package/dist/types/components/sqm-form-message/FormMessage.stories.d.ts +4 -0
- package/dist/types/components/sqm-form-message/sqm-form-message.d.ts +4 -0
- package/dist/types/components/sqm-hero/sqm-hero.d.ts +4 -4
- package/dist/types/components/sqm-hero-image/sqm-hero-image.d.ts +2 -2
- package/dist/types/components/sqm-input-field/sqm-input-field.d.ts +1 -1
- package/dist/types/components/sqm-marketing-emails-checkbox/sqm-marketing-emails-checkbox.d.ts +1 -1
- package/dist/types/components/sqm-name-fields/sqm-name-fields-view.d.ts +1 -0
- package/dist/types/components/sqm-name-fields/sqm-name-fields.d.ts +5 -0
- package/dist/types/components/sqm-name-fields/useNameFields.d.ts +1 -0
- package/dist/types/components/sqm-password-field/sqm-password-field.d.ts +1 -1
- package/dist/types/components/sqm-portal-footer/sqm-portal-footer.d.ts +1 -1
- package/dist/types/components/sqm-portal-google-registration-form/sqm-portal-google-registration-form.d.ts +5 -0
- package/dist/types/components/sqm-portal-google-registration-form/usePortalGoogleRegistrationForm.d.ts +2 -1
- package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.d.ts +1 -1
- package/dist/types/components/sqm-titled-section/sqm-titled-section.d.ts +1 -1
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification-controller.d.ts +5 -2
- package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +4 -10
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +1 -2
- package/dist/types/components.d.ts +40 -32
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +2 -2
- package/dist/cjs/data-88adb95b.js +0 -146
- package/dist/cjs/parseStates-d1effc19.js +0 -16
- package/dist/cjs/sqm-tax-and-cash.cjs.entry.js +0 -1313
- package/dist/esm/data-807686c2.js +0 -130
- package/dist/esm/parseStates-ed75e224.js +0 -14
- package/dist/esm/sqm-tax-and-cash.entry.js +0 -1309
- package/dist/esm-es5/data-807686c2.js +0 -1
- package/dist/esm-es5/extractProps-ae1afbb3.js +0 -1
- package/dist/esm-es5/parseStates-ed75e224.js +0 -1
- package/dist/esm-es5/sqm-base-registration-form-view-193f1721.js +0 -1
- package/dist/esm-es5/sqm-big-stat_46.entry.js +0 -1
- package/dist/esm-es5/sqm-tax-and-cash.entry.js +0 -1
- package/dist/esm-es5/usePayoutStatus-42cc6a2c.js +0 -6
- package/dist/esm-es5/utils-84b4b092.js +0 -1
- package/dist/mint-components/p-115dfc03.system.js +0 -1
- package/dist/mint-components/p-13f3a647.js +0 -1
- package/dist/mint-components/p-26468242.js +0 -1
- package/dist/mint-components/p-38263521.entry.js +0 -273
- package/dist/mint-components/p-3d713973.system.entry.js +0 -1
- package/dist/mint-components/p-3ea29bac.system.entry.js +0 -1
- package/dist/mint-components/p-402984b3.system.entry.js +0 -1
- package/dist/mint-components/p-4306a11d.entry.js +0 -33
- package/dist/mint-components/p-43d9c1c5.system.entry.js +0 -1
- package/dist/mint-components/p-4b9976cc.system.js +0 -1
- package/dist/mint-components/p-60f1cca2.system.js +0 -1
- package/dist/mint-components/p-69d8b4f2.system.entry.js +0 -1
- package/dist/mint-components/p-7837f69e.js +0 -46
- package/dist/mint-components/p-7b8232f8.system.js +0 -6
- package/dist/mint-components/p-8c3c4e92.js +0 -112
- package/dist/mint-components/p-916a2045.system.entry.js +0 -1
- package/dist/mint-components/p-92bed2ad.system.js +0 -1
- package/dist/mint-components/p-a44a912b.entry.js +0 -1
- package/dist/mint-components/p-a597b136.entry.js +0 -1
- package/dist/mint-components/p-a8645c1b.system.js +0 -1
- package/dist/mint-components/p-be88596c.system.js +0 -1
- package/dist/mint-components/p-ddf3c05e.js +0 -1
- package/dist/mint-components/p-ea063d99.entry.js +0 -1
- package/dist/mint-components/p-ecc84140.system.entry.js +0 -1
- package/shoelace/assets/icons/twitter-x.svg +0 -4
- /package/dist/esm-es5/{copy-text-view-83b09456.js → copy-text-view-fac47254.js} +0 -0
- /package/dist/mint-components/{p-45c3ff6d.js → p-4a0a76a5.js} +0 -0
- /package/dist/mint-components/{p-c210374a.system.js → p-ce81839d.system.js} +0 -0
|
@@ -39,10 +39,6 @@ function sanitizeUrlPath(path) {
|
|
|
39
39
|
cleanUrl.hash = url.hash;
|
|
40
40
|
return cleanUrl;
|
|
41
41
|
}
|
|
42
|
-
function capitalizeFirstLetter(word) {
|
|
43
|
-
return word[0].toUpperCase() + word.slice(1);
|
|
44
|
-
}
|
|
45
|
-
console.log(capitalizeFirstLetter("warning"));
|
|
46
42
|
|
|
47
43
|
exports.getMissingProps = getMissingProps;
|
|
48
44
|
exports.getProps = getProps;
|
|
@@ -5,7 +5,7 @@ export default {
|
|
|
5
5
|
};
|
|
6
6
|
const defaultProps = {
|
|
7
7
|
states: {
|
|
8
|
-
|
|
8
|
+
validationErrors: {},
|
|
9
9
|
},
|
|
10
10
|
callbacks: {
|
|
11
11
|
handleEmailSubmit: () => console.log("Submit!"),
|
|
@@ -25,7 +25,7 @@ const defaultProps = {
|
|
|
25
25
|
const errorProps = {
|
|
26
26
|
...defaultProps,
|
|
27
27
|
states: {
|
|
28
|
-
error: "Something went wrong. Please try again.",
|
|
28
|
+
validationErrors: { error: "Something went wrong. Please try again." },
|
|
29
29
|
},
|
|
30
30
|
};
|
|
31
31
|
export const Default = () => {
|
|
@@ -37,6 +37,7 @@ sqm-portal-register {
|
|
|
37
37
|
const sheet = createStyleSheet(style);
|
|
38
38
|
const styleString = sheet.toString();
|
|
39
39
|
export function BaseRegistrationFormView(props) {
|
|
40
|
+
var _a, _b;
|
|
40
41
|
const { states, content, callbacks } = props;
|
|
41
42
|
return (h("div", { class: sheet.classes.Wrapper },
|
|
42
43
|
h("style", { type: "text/css" },
|
|
@@ -44,9 +45,8 @@ export function BaseRegistrationFormView(props) {
|
|
|
44
45
|
styleString),
|
|
45
46
|
h(TextSpanView, { type: "h3" }, content.pageLabel),
|
|
46
47
|
h("sl-form", { class: sheet.classes.Column, "onSl-submit": callbacks.handleEmailSubmit, novalidate: true },
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
h("sl-input", { exportparts: "label: input-label, base: input-base", type: "email", name: "/email", label: content.emailLabel || "Email", required: true, validationError: ({ value }) => {
|
|
48
|
+
content.formData,
|
|
49
|
+
h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", type: "email", name: "/email", label: content.emailLabel || "Email", required: true, validationError: ({ value }) => {
|
|
50
50
|
if (!value) {
|
|
51
51
|
return content.requiredFieldErrorMessage;
|
|
52
52
|
}
|
|
@@ -54,7 +54,13 @@ export function BaseRegistrationFormView(props) {
|
|
|
54
54
|
if (!value.includes("@")) {
|
|
55
55
|
return content.invalidEmailErrorMessage;
|
|
56
56
|
}
|
|
57
|
-
} })
|
|
57
|
+
} }, (((_a = states === null || states === void 0 ? void 0 : states.validationErrors) === null || _a === void 0 ? void 0 : _a.email) ? {
|
|
58
|
+
class: sheet.classes.ErrorStyle,
|
|
59
|
+
helpText: ((_b = states === null || states === void 0 ? void 0 : states.validationErrors) === null || _b === void 0 ? void 0 : _b.email) ||
|
|
60
|
+
content.requiredFieldErrorMessage,
|
|
61
|
+
}
|
|
62
|
+
: []))),
|
|
63
|
+
content.terms,
|
|
58
64
|
h("div", { class: sheet.classes.ButtonsContainer },
|
|
59
65
|
h("sl-button", { submit: true, exportparts: "base: primarybutton-base", type: "primary", style: { margin: "0" } }, content.submitLabel || "Register"),
|
|
60
66
|
h("sl-menu-divider", { style: { margin: "0" } }),
|
|
@@ -6,8 +6,6 @@ export function BigStatView(props) {
|
|
|
6
6
|
const style = {
|
|
7
7
|
Container: {
|
|
8
8
|
display: "flex",
|
|
9
|
-
// height: "inherit",
|
|
10
|
-
// "justify-content": "space-between",
|
|
11
9
|
"flex-direction": `${flexReverse ? "column-reverse" : "column"}`,
|
|
12
10
|
"align-items": `${alignment === "left"
|
|
13
11
|
? "flex-start"
|
|
@@ -120,12 +120,18 @@ const referralsMonthQuery = (programId, status) => {
|
|
|
120
120
|
});
|
|
121
121
|
});
|
|
122
122
|
};
|
|
123
|
-
const referralsWeekQuery = (programId) => {
|
|
123
|
+
const referralsWeekQuery = (programId, status) => {
|
|
124
124
|
const programFilter = programId === "classic"
|
|
125
125
|
? { programId_exists: false }
|
|
126
126
|
: { programId_eq: programId };
|
|
127
|
+
const convertedFilter = status && status == "converted"
|
|
128
|
+
? { dateConverted_exists: true }
|
|
129
|
+
: status && status == "started"
|
|
130
|
+
? { dateConverted_exists: false }
|
|
131
|
+
: {};
|
|
127
132
|
const filter = {
|
|
128
133
|
...programFilter,
|
|
134
|
+
...convertedFilter,
|
|
129
135
|
dateReferralStarted_timeframe: "this_week",
|
|
130
136
|
};
|
|
131
137
|
return debugQuery(gql `
|
|
@@ -8,7 +8,7 @@ import { CheckboxFieldView, } from "./sqm-checkbox-field-view";
|
|
|
8
8
|
import { useCheckboxField } from "./useCheckboxField";
|
|
9
9
|
/**
|
|
10
10
|
* @uiName Form Checkbox Field
|
|
11
|
-
* @validParents ["sqm-portal-register","sqm-portal-registration-form"]
|
|
11
|
+
* @validParents ["sqm-portal-register","sqm-portal-registration-form", "sqm-portal-google-registration-form"]
|
|
12
12
|
* @exampleGroup Microsite Components
|
|
13
13
|
* @example Form Checkbox Field - <sqm-checkbox-field checkbox-name="terms" checkbox-label="By signing up you agree to the {labelLink}" checkbox-label-link="https://example.com" checkbox-label-link-text="Terms and Conditions" error-message="Must be checked" ></sqm-checkbox-field>
|
|
14
14
|
*/
|
|
@@ -8,7 +8,7 @@ import { DropdownFieldView, } from "./sqm-dropdown-field-view";
|
|
|
8
8
|
import { useDropdownField } from "./useDropdownField";
|
|
9
9
|
/**
|
|
10
10
|
* @uiName Form Dropdown Field
|
|
11
|
-
* @validParents ["sqm-portal-register","sqm-portal-registration-form"]
|
|
11
|
+
* @validParents ["sqm-portal-register","sqm-portal-registration-form", "sqm-portal-google-registration-form"]
|
|
12
12
|
* @slots [{"name":"", "title":"Drop Down Option"}]
|
|
13
13
|
* @exampleGroup Microsite Components
|
|
14
14
|
* @example Form Dropdown Field - <sqm-dropdown-field dropdown-label="Select an option" error-message="Select an option"><sl-menu-item value="option-1">Option 1</sl-menu-item><sl-menu-item value="option-2">Option 2</sl-menu-item><sl-menu-item value="option-3">Option 3</sl-menu-item></sqm-dropdown-field>
|
|
@@ -22,3 +22,17 @@ export const InfoAlert = () => {
|
|
|
22
22
|
h("p", { part: "alert-title" }, "This is the title"),
|
|
23
23
|
h("p", { part: "alert-description" }, "This is the description")));
|
|
24
24
|
};
|
|
25
|
+
export const SuccessAlertTransparent = () => {
|
|
26
|
+
return (h("sqm-form-message", { type: "success", transparent: true },
|
|
27
|
+
h("p", { part: "alert-title" }, "This is the title"),
|
|
28
|
+
h("p", { part: "alert-description" }, "This is the description")));
|
|
29
|
+
};
|
|
30
|
+
export const ErrorAlertTransparent = () => (h("sqm-form-message", { type: "error", transparent: true },
|
|
31
|
+
h("p", { part: "alert-title" }, "This is the title"),
|
|
32
|
+
h("p", { part: "alert-description" }, "This is the description")));
|
|
33
|
+
export const WarningAlertTransparent = () => (h("sqm-form-message", { type: "warning", transparent: true },
|
|
34
|
+
h("p", { part: "alert-title" }, "This is the title"),
|
|
35
|
+
h("p", { part: "alert-description" }, "This is the description")));
|
|
36
|
+
export const InfoAlertTransparent = () => (h("sqm-form-message", { type: "info", transparent: true },
|
|
37
|
+
h("p", { part: "alert-title" }, "This is the title"),
|
|
38
|
+
h("p", { part: "alert-description" }, "This is the description")));
|
|
@@ -7,27 +7,31 @@ import { Component, h, Prop, State } from "@stencil/core";
|
|
|
7
7
|
export class FormMessage {
|
|
8
8
|
constructor() {
|
|
9
9
|
this.ignored = true;
|
|
10
|
+
/**
|
|
11
|
+
* Render the alert with transparent styles
|
|
12
|
+
*/
|
|
13
|
+
this.transparent = false;
|
|
10
14
|
withHooks(this);
|
|
11
15
|
}
|
|
12
16
|
disconnectedCallback() { }
|
|
13
17
|
render() {
|
|
14
18
|
if (this.type === "error") {
|
|
15
|
-
return (h("sl-alert", { exportparts: "base: erroralert-base, icon:erroralert-icon", class:
|
|
19
|
+
return (h("sl-alert", { exportparts: "base: erroralert-base, icon:erroralert-icon", class: `Error ${this.transparent ? "Transparent" : ""}`, type: "danger", open: true },
|
|
16
20
|
h("sl-icon", { id: "icon", slot: "icon", name: `${this.icon ? this.icon : "exclamation-octagon"}` }),
|
|
17
21
|
h("slot", null)));
|
|
18
22
|
}
|
|
19
23
|
else if (this.type === "info") {
|
|
20
|
-
return (h("sl-alert", { id: "icon", exportparts: "base: infoalert-base, icon:infoalert-icon", class:
|
|
24
|
+
return (h("sl-alert", { id: "icon", exportparts: "base: infoalert-base, icon:infoalert-icon", class: `Info ${this.transparent ? "Transparent" : ""}`, type: "info", open: true },
|
|
21
25
|
h("sl-icon", { id: "icon", slot: "icon", name: `${this.icon ? this.icon : "info-circle"}` }),
|
|
22
26
|
h("slot", null)));
|
|
23
27
|
}
|
|
24
28
|
else if (this.type === "warning") {
|
|
25
|
-
return (h("sl-alert", { exportparts: "base: warningalert-base, icon:warningalert-icon", class:
|
|
29
|
+
return (h("sl-alert", { exportparts: "base: warningalert-base, icon:warningalert-icon", class: `Warning ${this.transparent ? "Transparent" : ""}`, type: "warning", open: true },
|
|
26
30
|
h("sl-icon", { id: "icon", slot: "icon", name: `${this.icon ? this.icon : "exclamation-triangle"}` }),
|
|
27
31
|
h("slot", null)));
|
|
28
32
|
}
|
|
29
33
|
else {
|
|
30
|
-
return (h("sl-alert", { exportparts: "base: successalert-base, icon:successalert-icon", class:
|
|
34
|
+
return (h("sl-alert", { exportparts: "base: successalert-base, icon:successalert-icon", class: `Success ${this.transparent ? "Transparent" : ""}`, type: "success", open: true },
|
|
31
35
|
h("sl-icon", { id: "icon", slot: "icon", name: `${this.icon ? this.icon : "check2-circle"}` }),
|
|
32
36
|
h("slot", null)));
|
|
33
37
|
}
|
|
@@ -80,6 +84,24 @@ export class FormMessage {
|
|
|
80
84
|
},
|
|
81
85
|
"attribute": "icon",
|
|
82
86
|
"reflect": false
|
|
87
|
+
},
|
|
88
|
+
"transparent": {
|
|
89
|
+
"type": "boolean",
|
|
90
|
+
"mutable": false,
|
|
91
|
+
"complexType": {
|
|
92
|
+
"original": "boolean",
|
|
93
|
+
"resolved": "boolean",
|
|
94
|
+
"references": {}
|
|
95
|
+
},
|
|
96
|
+
"required": false,
|
|
97
|
+
"optional": true,
|
|
98
|
+
"docs": {
|
|
99
|
+
"tags": [],
|
|
100
|
+
"text": "Render the alert with transparent styles"
|
|
101
|
+
},
|
|
102
|
+
"attribute": "transparent",
|
|
103
|
+
"reflect": false,
|
|
104
|
+
"defaultValue": "false"
|
|
83
105
|
}
|
|
84
106
|
}; }
|
|
85
107
|
static get states() { return {
|
|
@@ -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
|
|
@@ -6,8 +6,8 @@ import { HeroImageView } from "./sqm-hero-image-view";
|
|
|
6
6
|
* @uiName Hero Image
|
|
7
7
|
* @validParents ["sqm-portal-container","sqm-brand", "div"]
|
|
8
8
|
* @exampleGroup Common Components
|
|
9
|
-
* @example Two Column Hero Image - <sqm-hero-image image-url="https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png" header="MyCompany Rewards" description="Refer a friend and earn up to $1200 in rewards" layout="columns" image-pos="right"
|
|
10
|
-
* @example Overlay Hero Image - <sqm-hero-image image-url="https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png" header="MyCompany Rewards" description="Refer a friend and earn up to $1200 in rewards" layout="overlay" image-pos="center"
|
|
9
|
+
* @example Two Column Hero Image - <sqm-hero-image image-url="https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png" header="MyCompany Rewards" description="Refer a friend and earn up to $1200 in rewards" layout="columns" image-pos="right"></sqm-hero-image>
|
|
10
|
+
* @example Overlay Hero Image - <sqm-hero-image image-url="https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png" header="MyCompany Rewards" description="Refer a friend and earn up to $1200 in rewards" layout="overlay" image-pos="center" button-link="https://www.example.com" button-new-tab button-text="Earn!" image-percentage="45" overlay-opacity=".5" padding-image="small" padding-text="xxxx-large"></sqm-hero-image>
|
|
11
11
|
*/
|
|
12
12
|
export class HeroImage {
|
|
13
13
|
constructor() {
|
|
@@ -8,7 +8,7 @@ import { InputFieldView } from "./sqm-input-field-view";
|
|
|
8
8
|
import { useInputField } from "./useInputField";
|
|
9
9
|
/**
|
|
10
10
|
* @uiName Form Input Field
|
|
11
|
-
* @validParents ["sqm-portal-register","sqm-portal-registration-form"]
|
|
11
|
+
* @validParents ["sqm-portal-register","sqm-portal-registration-form", "sqm-portal-google-registration-form"]
|
|
12
12
|
* @exampleGroup Microsite Components
|
|
13
13
|
* @example Form Input Field - <sqm-input-field input-label="Field Label" field-type="text" error-message="Cannot be empty"></sqm-input-field>
|
|
14
14
|
*/
|
package/dist/collection/components/sqm-marketing-emails-checkbox/sqm-marketing-emails-checkbox.js
CHANGED
|
@@ -7,7 +7,7 @@ import { CheckboxFieldView, } from "../sqm-checkbox-field/sqm-checkbox-field-vie
|
|
|
7
7
|
import { useCheckboxField } from "../sqm-checkbox-field/useCheckboxField";
|
|
8
8
|
/**
|
|
9
9
|
* @uiName Marketing Emails Checkbox Field
|
|
10
|
-
* @validParents ["sqm-portal-register","sqm-portal-registration-form"]
|
|
10
|
+
* @validParents ["sqm-portal-register","sqm-portal-registration-form", "sqm-portal-google-registration-form"]
|
|
11
11
|
* @requiredFeatures ["MARKETING_EMAILS"]
|
|
12
12
|
*/
|
|
13
13
|
export class MarketingEmailsCheckbox {
|
|
@@ -9,6 +9,7 @@ export default {
|
|
|
9
9
|
};
|
|
10
10
|
const props = {
|
|
11
11
|
states: {
|
|
12
|
+
optional: false,
|
|
12
13
|
registrationFormState: {
|
|
13
14
|
validationErrors: undefined,
|
|
14
15
|
},
|
|
@@ -20,6 +21,7 @@ const props = {
|
|
|
20
21
|
};
|
|
21
22
|
const errorProps = {
|
|
22
23
|
states: {
|
|
24
|
+
optional: false,
|
|
23
25
|
registrationFormState: {
|
|
24
26
|
validationErrors: {
|
|
25
27
|
firstName: "Cannot be empty",
|
|
@@ -56,7 +56,7 @@ export function NameFieldsView(props) {
|
|
|
56
56
|
h("style", { type: "text/css" },
|
|
57
57
|
vanillaStyle,
|
|
58
58
|
styleString),
|
|
59
|
-
h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", name: "/firstName", type: "text", label: states.content.firstNameLabel, required:
|
|
59
|
+
h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", name: "/firstName", type: "text", label: states.content.firstNameLabel, required: !states.optional, disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled) }, (((_e = (_d = states.registrationFormState) === null || _d === void 0 ? void 0 : _d.initialData) === null || _e === void 0 ? void 0 : _e.firstName) ? {
|
|
60
60
|
value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g.firstName,
|
|
61
61
|
}
|
|
62
62
|
: {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.firstName) ? {
|
|
@@ -64,7 +64,7 @@ export function NameFieldsView(props) {
|
|
|
64
64
|
helpText: (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.firstName) || "Cannot be empty",
|
|
65
65
|
}
|
|
66
66
|
: []))),
|
|
67
|
-
h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", name: "/lastName", type: "text", label: states.content.lastNameLabel, required:
|
|
67
|
+
h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", name: "/lastName", type: "text", label: states.content.lastNameLabel, required: !states.optional, disabled: ((_h = states.registrationFormState) === null || _h === void 0 ? void 0 : _h.loading) || ((_j = states.registrationFormState) === null || _j === void 0 ? void 0 : _j.disabled) }, (((_l = (_k = states.registrationFormState) === null || _k === void 0 ? void 0 : _k.initialData) === null || _l === void 0 ? void 0 : _l.lastName) ? {
|
|
68
68
|
value: (_o = (_m = states.registrationFormState) === null || _m === void 0 ? void 0 : _m.initialData) === null || _o === void 0 ? void 0 : _o.lastName,
|
|
69
69
|
}
|
|
70
70
|
: {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.lastName) ? {
|
|
@@ -21,6 +21,11 @@ export class NameFields {
|
|
|
21
21
|
* @uiName Last name label
|
|
22
22
|
*/
|
|
23
23
|
this.lastNameLabel = "Last Name";
|
|
24
|
+
/**
|
|
25
|
+
* @uiName Optional
|
|
26
|
+
* @uiWidget
|
|
27
|
+
*/
|
|
28
|
+
this.optional = false;
|
|
24
29
|
withHooks(this);
|
|
25
30
|
}
|
|
26
31
|
disconnectedCallback() { }
|
|
@@ -73,12 +78,36 @@ export class NameFields {
|
|
|
73
78
|
"reflect": false,
|
|
74
79
|
"defaultValue": "\"Last Name\""
|
|
75
80
|
},
|
|
81
|
+
"optional": {
|
|
82
|
+
"type": "boolean",
|
|
83
|
+
"mutable": false,
|
|
84
|
+
"complexType": {
|
|
85
|
+
"original": "boolean",
|
|
86
|
+
"resolved": "boolean",
|
|
87
|
+
"references": {}
|
|
88
|
+
},
|
|
89
|
+
"required": false,
|
|
90
|
+
"optional": false,
|
|
91
|
+
"docs": {
|
|
92
|
+
"tags": [{
|
|
93
|
+
"text": "Optional",
|
|
94
|
+
"name": "uiName"
|
|
95
|
+
}, {
|
|
96
|
+
"text": undefined,
|
|
97
|
+
"name": "uiWidget"
|
|
98
|
+
}],
|
|
99
|
+
"text": ""
|
|
100
|
+
},
|
|
101
|
+
"attribute": "optional",
|
|
102
|
+
"reflect": false,
|
|
103
|
+
"defaultValue": "false"
|
|
104
|
+
},
|
|
76
105
|
"demoData": {
|
|
77
106
|
"type": "unknown",
|
|
78
107
|
"mutable": false,
|
|
79
108
|
"complexType": {
|
|
80
109
|
"original": "DemoData<NameFieldsViewProps>",
|
|
81
|
-
"resolved": "{ states?: { registrationFormState?: RegistrationFormState; content: { firstNameLabel: string; lastNameLabel: string; }; }; }",
|
|
110
|
+
"resolved": "{ states?: { optional: boolean; registrationFormState?: RegistrationFormState; content: { firstNameLabel: string; lastNameLabel: string; }; }; }",
|
|
82
111
|
"references": {
|
|
83
112
|
"DemoData": {
|
|
84
113
|
"location": "import",
|
|
@@ -111,6 +140,7 @@ export class NameFields {
|
|
|
111
140
|
function useNameFieldsDemo(props) {
|
|
112
141
|
return deepmerge({
|
|
113
142
|
states: {
|
|
143
|
+
optional: props.optional,
|
|
114
144
|
validationErrors: [],
|
|
115
145
|
content: {
|
|
116
146
|
firstNameLabel: props.firstNameLabel,
|
|
@@ -3,13 +3,13 @@ import { withHooks } from "@saasquatch/stencil-hooks";
|
|
|
3
3
|
import { useState } from "@saasquatch/universal-hooks";
|
|
4
4
|
import { Component, h, Prop, State } from "@stencil/core";
|
|
5
5
|
import deepmerge from "deepmerge";
|
|
6
|
+
import { getProps } from "../../utils/utils";
|
|
6
7
|
import { validateNewPassword } from "./passwordValidation";
|
|
7
8
|
import { PortalResetPasswordView, } from "./sqm-password-field-view";
|
|
8
9
|
import { usePasswordField } from "./usePasswordField";
|
|
9
|
-
import { getProps } from "../../utils/utils";
|
|
10
10
|
/**
|
|
11
11
|
* @uiName Form Password Field
|
|
12
|
-
* @validParents ["sqm-portal-register","sqm-portal-registration-form"]
|
|
12
|
+
* @validParents ["sqm-portal-register","sqm-portal-registration-form", "sqm-portal-google-registration-form"]
|
|
13
13
|
* @exampleGroup Microsite Components
|
|
14
14
|
* @example Form Password Field - <sqm-password-field field-label="Password"></sqm-password-field>
|
|
15
15
|
*/
|
|
@@ -14,7 +14,7 @@ export function PortalContainerView(props, children) {
|
|
|
14
14
|
maxWidth: props.maxWidth,
|
|
15
15
|
margin: props.center && "auto",
|
|
16
16
|
justifyContent: props.justifyContent,
|
|
17
|
-
backgroundColor: props.backgroundColor || "
|
|
17
|
+
backgroundColor: props.backgroundColor || "var(--sqm-portal-background)",
|
|
18
18
|
},
|
|
19
19
|
};
|
|
20
20
|
const vanillaStyle = `
|
|
@@ -4,7 +4,7 @@ import { getProps } from "../../utils/utils";
|
|
|
4
4
|
import { PortalFooterView } from "./sqm-portal-footer-view";
|
|
5
5
|
/**
|
|
6
6
|
* @uiName Footer
|
|
7
|
-
* @validParents ["div","sqm-brand","sqm-portal-container", "sqm-divided-layout", "sqm-referral-card", "sqm-instant-access-registration", "sqm-portal-frame"]
|
|
7
|
+
* @validParents ["div","sqm-brand","sqm-portal-container", "sqm-divided-layout", "sqm-referral-card", "sqm-instant-access-registration", "sqm-portal-frame", "sqm-referred-registration"]
|
|
8
8
|
*/
|
|
9
9
|
export class PortalFooter {
|
|
10
10
|
constructor() {
|
package/dist/collection/components/sqm-portal-forgot-password/PortalForgotPassword.stories.js
CHANGED
|
@@ -65,6 +65,7 @@ const successProps = {
|
|
|
65
65
|
content: {
|
|
66
66
|
loginText: "Login",
|
|
67
67
|
messageSlot: "Enter your email below to receive a password reset link.",
|
|
68
|
+
successAlertText: "An email has been sent with instructions to reset your password.",
|
|
68
69
|
},
|
|
69
70
|
};
|
|
70
71
|
export const Default = () => h(PortalForgotPasswordView, Object.assign({}, defaultProps));
|
|
@@ -2,11 +2,16 @@ import { isDemo, navigation } from "@saasquatch/component-boilerplate";
|
|
|
2
2
|
import { useState, withHooks } from "@saasquatch/stencil-hooks";
|
|
3
3
|
import { Component, h, Prop, State } from "@stencil/core";
|
|
4
4
|
import deepmerge from "deepmerge";
|
|
5
|
+
import { createStyleSheet } from "../../styling/JSS";
|
|
5
6
|
import { BaseRegistrationFormView } from "../sqm-base-registration/sqm-base-registration-form-view";
|
|
6
7
|
import { PortalRegistrationFormView, } from "../sqm-portal-registration-form/sqm-portal-registration-form-view";
|
|
7
8
|
import { usePortalRegistrationForm } from "../sqm-portal-registration-form/usePortalRegistrationForm";
|
|
8
9
|
import { usePortalGoogleRegistrationForm } from "./usePortalGoogleRegistrationForm";
|
|
9
|
-
|
|
10
|
+
/**
|
|
11
|
+
* @uiName Google Registration
|
|
12
|
+
* @canvasRenderer always-replace
|
|
13
|
+
* @slots [{"name":"formData","title":"Additional Fields"},{"name":"terms","title":"Terms And Conditions Fields"}]
|
|
14
|
+
*/
|
|
10
15
|
export class PortalGoogleRegistrationForm {
|
|
11
16
|
constructor() {
|
|
12
17
|
this.ignored = true;
|
|
@@ -156,7 +161,7 @@ export class PortalGoogleRegistrationForm {
|
|
|
156
161
|
};
|
|
157
162
|
const sheet = createStyleSheet(styles);
|
|
158
163
|
const styleString = sheet.toString();
|
|
159
|
-
const { handleGoogleInit, handleEmailSubmit, showRegistrationForm,
|
|
164
|
+
const { handleGoogleInit, handleEmailSubmit, showRegistrationForm, validationErrors, } = isDemo() ? useGoogleDemo(this) : usePortalGoogleRegistrationForm(this);
|
|
160
165
|
const content = {
|
|
161
166
|
formData: h("slot", { name: "formData" }),
|
|
162
167
|
googleButton: (h("sqm-google-sign-in", { text: this.googleButtonText, onInitComplete: handleGoogleInit })),
|
|
@@ -187,16 +192,14 @@ export class PortalGoogleRegistrationForm {
|
|
|
187
192
|
};
|
|
188
193
|
if (showRegistrationForm.mode === "base") {
|
|
189
194
|
return (h(BaseRegistrationFormView, { states: {
|
|
190
|
-
|
|
195
|
+
validationErrors,
|
|
191
196
|
}, callbacks: { handleEmailSubmit }, content: content }));
|
|
192
197
|
}
|
|
193
198
|
return (h(PortalRegistrationFormView, { states: {
|
|
194
199
|
...states,
|
|
195
200
|
emailDisabled: true,
|
|
196
201
|
hidePasswords: showRegistrationForm.mode === "google",
|
|
197
|
-
}, callbacks: callbacks, content:
|
|
198
|
-
...content,
|
|
199
|
-
}, refs: refs }));
|
|
202
|
+
}, callbacks: callbacks, content: content, refs: refs }));
|
|
200
203
|
}
|
|
201
204
|
static get is() { return "sqm-portal-google-registration-form"; }
|
|
202
205
|
static get encapsulation() { return "shadow"; }
|
|
@@ -871,7 +874,7 @@ function useGoogleDemo(props) {
|
|
|
871
874
|
mode: "base",
|
|
872
875
|
});
|
|
873
876
|
return deepmerge({
|
|
874
|
-
|
|
877
|
+
validationErrors: {},
|
|
875
878
|
handleEmailSubmit: () => setShowRegistrationForm({ mode: "manual" }),
|
|
876
879
|
showRegistrationForm,
|
|
877
880
|
handleGoogleInit: () => setShowRegistrationForm({ mode: "google" }),
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { useState } from "@saasquatch/universal-hooks";
|
|
2
2
|
import jsonpointer from "jsonpointer";
|
|
3
|
-
import { useRegistrationForm } from "../sqm-portal-registration-form/useRegistrationFormState";
|
|
4
3
|
import { jwtDecode } from "jwt-decode";
|
|
4
|
+
import { useRegistrationForm } from "../sqm-portal-registration-form/useRegistrationFormState";
|
|
5
5
|
export function usePortalGoogleRegistrationForm(props) {
|
|
6
|
-
const [emailValidationError, setEmailValidationError] = useState(null);
|
|
7
6
|
const [registrationFormState, setRegistrationFormState] = useRegistrationForm();
|
|
8
7
|
const [showRegistrationForm, setShowRegistrationForm] = useState({
|
|
9
8
|
mode: "base",
|
|
@@ -11,30 +10,40 @@ export function usePortalGoogleRegistrationForm(props) {
|
|
|
11
10
|
const handleEmailSubmit = async (event) => {
|
|
12
11
|
const formControls = event.target.getFormControls();
|
|
13
12
|
let formData = {};
|
|
14
|
-
let
|
|
13
|
+
let validationErrors = {};
|
|
15
14
|
formControls.forEach((control) => {
|
|
16
|
-
if (!control.name
|
|
15
|
+
if (!control.name)
|
|
17
16
|
return;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
const key = control.name;
|
|
18
|
+
const value = control.value;
|
|
19
|
+
jsonpointer.set(formData, key, value);
|
|
20
|
+
if (control.required && !value) {
|
|
21
|
+
jsonpointer.set(validationErrors, key, props.requiredFieldErrorMessage);
|
|
22
|
+
}
|
|
21
23
|
if (typeof control.validationError === "function") {
|
|
22
24
|
const validate = control.validationError;
|
|
23
25
|
const validationError = validate({
|
|
24
26
|
control,
|
|
25
|
-
key
|
|
26
|
-
value
|
|
27
|
+
key,
|
|
28
|
+
value,
|
|
27
29
|
});
|
|
28
30
|
if (validationError)
|
|
29
|
-
|
|
31
|
+
jsonpointer.set(validationErrors, key, validationError);
|
|
30
32
|
}
|
|
31
33
|
});
|
|
32
|
-
if (
|
|
33
|
-
|
|
34
|
+
if (Object.keys(validationErrors).length) {
|
|
35
|
+
// early return for validation errors
|
|
36
|
+
setRegistrationFormState({
|
|
37
|
+
...registrationFormState,
|
|
38
|
+
loading: false,
|
|
39
|
+
error: "",
|
|
40
|
+
validationErrors,
|
|
41
|
+
});
|
|
34
42
|
return;
|
|
35
43
|
}
|
|
36
44
|
setRegistrationFormState({
|
|
37
45
|
...registrationFormState,
|
|
46
|
+
validationErrors: {},
|
|
38
47
|
initialData: {
|
|
39
48
|
...registrationFormState === null || registrationFormState === void 0 ? void 0 : registrationFormState.initialData,
|
|
40
49
|
...formData,
|
|
@@ -64,8 +73,9 @@ export function usePortalGoogleRegistrationForm(props) {
|
|
|
64
73
|
}
|
|
65
74
|
};
|
|
66
75
|
return {
|
|
76
|
+
registrationFormState,
|
|
67
77
|
showRegistrationForm,
|
|
68
|
-
|
|
78
|
+
validationErrors: registrationFormState.validationErrors,
|
|
69
79
|
handleGoogleInit,
|
|
70
80
|
handleEmailSubmit,
|
|
71
81
|
};
|
|
@@ -30,7 +30,7 @@ export class ReferredRegistration {
|
|
|
30
30
|
/**
|
|
31
31
|
* @uiName Register button text
|
|
32
32
|
*/
|
|
33
|
-
this.registerLabel = "
|
|
33
|
+
this.registerLabel = "Claim Your Reward";
|
|
34
34
|
/**
|
|
35
35
|
* Require your participants to enter their first and last name.
|
|
36
36
|
*
|
|
@@ -229,7 +229,7 @@ export class ReferredRegistration {
|
|
|
229
229
|
},
|
|
230
230
|
"attribute": "register-label",
|
|
231
231
|
"reflect": false,
|
|
232
|
-
"defaultValue": "\"
|
|
232
|
+
"defaultValue": "\"Claim Your Reward\""
|
|
233
233
|
},
|
|
234
234
|
"includeName": {
|
|
235
235
|
"type": "boolean",
|
|
@@ -201,8 +201,7 @@ export class RewardTableStatusCell {
|
|
|
201
201
|
: rewardStatus === "DENIED"
|
|
202
202
|
? this.deniedText
|
|
203
203
|
: null;
|
|
204
|
-
|
|
205
|
-
const getBadgeCSSClass = (badgeType) => {
|
|
204
|
+
const getBadgeCSSClass = () => {
|
|
206
205
|
switch (rewardStatus) {
|
|
207
206
|
case "AVAILABLE":
|
|
208
207
|
return sheet.classes.SuccessBadge;
|
|
@@ -216,7 +215,7 @@ export class RewardTableStatusCell {
|
|
|
216
215
|
return sheet.classes.DangerBadge;
|
|
217
216
|
}
|
|
218
217
|
};
|
|
219
|
-
const badgeCSSClass = getBadgeCSSClass(
|
|
218
|
+
const badgeCSSClass = getBadgeCSSClass();
|
|
220
219
|
return (h("div", { style: { display: "contents" } },
|
|
221
220
|
h("style", { type: "text/css" }, styleString),
|
|
222
221
|
h("sl-badge", { type: badgeType, pill: true, class: badgeCSSClass }, statusText),
|
|
@@ -404,7 +404,6 @@ export class ShareLink {
|
|
|
404
404
|
function useDemoShareLink(props) {
|
|
405
405
|
const [open, setOpen] = useState(false);
|
|
406
406
|
const copyString = "https://www.example.com/sharelink/abc";
|
|
407
|
-
console.log("Demo props", props);
|
|
408
407
|
return deepmerge({
|
|
409
408
|
copyString: copyString,
|
|
410
409
|
tooltiptext: props.tooltiptext,
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
-
// sl-tab-group {
|
|
3
|
-
// --sl-color-primary-500: var(--sqm-accent-color-icon);
|
|
4
|
-
// }
|
|
5
2
|
export const TabsView = ({ content, placement, textColor = "var(--sqm-text)", }) => {
|
|
6
3
|
// Vertical padding for top & bottom placement, horizontal for left & right.
|
|
7
4
|
const padding = !placement || placement === "top" || placement === "bottom"
|