@saasquatch/mint-components 1.6.8-0 → 1.6.8-2
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/{GenericTableView-9271483b.js → GenericTableView-380b83e2.js} +7 -2
- package/dist/cjs/{ShadowViewAddon-2d3ef919.js → ShadowViewAddon-7a412c0b.js} +139 -57
- package/dist/cjs/{sqm-passwordless-registration-view-60f25a41.js → email-registration-view-a483578e.js} +7 -6
- package/dist/cjs/{global-3ebda209.js → global-ea52ea30.js} +10 -161
- package/dist/cjs/{index.module-30d74cb5.js → index.module-bd6e817a.js} +36 -23
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/{luxon-1b6e7276.js → luxon-53e983a6.js} +1 -1
- package/dist/cjs/mint-components.cjs.js +5 -5
- package/dist/cjs/{re-render-6963789e.js → re-render-1d12dfdd.js} +2 -2
- package/dist/cjs/{sqm-asset-card-view-59c39ed2.js → sqm-asset-card-view-79099616.js} +2 -2
- package/dist/cjs/sqm-asset-card.cjs.entry.js +5 -5
- package/dist/cjs/{sqm-big-stat_36.cjs.entry.js → sqm-big-stat_37.cjs.entry.js} +191 -83
- package/dist/cjs/sqm-empty_5.cjs.entry.js +7 -7
- package/dist/cjs/sqm-form-message.cjs.entry.js +2 -2
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +4 -4
- package/dist/cjs/sqm-header-logo.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-hero-view-201fca7e.js → sqm-hero-view-ddd1ef43.js} +6 -6
- package/dist/cjs/sqm-hero.cjs.entry.js +4 -4
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +9 -10
- package/dist/cjs/sqm-link-button-view-8b446852.js +27 -0
- package/dist/cjs/sqm-link-button.cjs.entry.js +23 -0
- package/dist/cjs/{sqm-navigation-sidebar-item-view-9bba2bad.js → sqm-navigation-sidebar-item-view-91d9d7b5.js} +3 -3
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +5 -5
- package/dist/cjs/{sqm-navigation-sidebar-view-2da83d3b.js → sqm-navigation-sidebar-view-b830e8d8.js} +2 -2
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +5 -5
- package/dist/cjs/sqm-password-field.cjs.entry.js +6 -6
- package/dist/cjs/sqm-passwordless-registration.cjs.entry.js +19 -54
- package/dist/cjs/sqm-popup-container.cjs.entry.js +6 -6
- package/dist/cjs/{sqm-portal-container-view-ec1be9eb.js → sqm-portal-container-view-6accb54a.js} +2 -2
- package/dist/cjs/{sqm-portal-email-verification-view-e834e79c.js → sqm-portal-email-verification-view-7e795920.js} +2 -2
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +7 -7
- package/dist/cjs/{sqm-portal-forgot-password-view-a3573ade.js → sqm-portal-forgot-password-view-f73bb724.js} +2 -2
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +7 -7
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +4 -4
- package/dist/cjs/{sqm-portal-profile-view-c143c506.js → sqm-portal-profile-view-7c290eed.js} +3 -3
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +12 -13
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +4 -4
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +9 -10
- package/dist/cjs/{sqm-portal-reset-password-view-a5d48909.js → sqm-portal-reset-password-view-e182df83.js} +1 -1
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +7 -7
- package/dist/cjs/{sqm-portal-verify-email-view-9657cc0c.js → sqm-portal-verify-email-view-fd739843.js} +2 -2
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +6 -6
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +25 -26
- package/dist/cjs/sqm-referred-registration.cjs.entry.js +83 -0
- package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +3 -3
- package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +5 -5
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +60 -61
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +4241 -4109
- package/dist/cjs/sqm-tab.cjs.entry.js +5 -5
- package/dist/cjs/sqm-tabs.cjs.entry.js +6 -6
- package/dist/cjs/{sqm-text-span-view-1acdf7e9.js → sqm-text-span-view-3c734dbb.js} +1 -1
- package/dist/cjs/sqm-text-span.cjs.entry.js +3 -3
- package/dist/cjs/sqm-user-identifier-view-69b42b84.js +28 -0
- package/dist/cjs/sqm-user-identifier.cjs.entry.js +11 -38
- package/dist/cjs/{stencil-hooks.module-5344b631.js → stencil-hooks.module-e4bf7f2d.js} +4 -1
- package/dist/cjs/{use-callback-05714e23.js → use-callback-86e9ac75.js} +1 -1
- package/dist/cjs/{useChildElements-161457a6.js → useChildElements-0a6ccd0f.js} +2 -2
- package/dist/cjs/usePasswordlessRegistration-9105faa4.js +47 -0
- package/dist/cjs/{useReferralTable-e933351b.js → useReferralTable-259fc04d.js} +13 -14
- package/dist/cjs/{useRegistrationFormState-5f21a453.js → useRegistrationFormState-ed30c0e6.js} +2 -2
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/sqm-asset-card/sqm-asset-card-view.js +2 -2
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field-view.js +1 -1
- package/dist/collection/components/sqm-coupon-code/CouponCode.stories.js +10 -0
- package/dist/collection/components/sqm-coupon-code/sqm-coupon-code.js +57 -1
- package/dist/collection/components/sqm-divided-layout/sqm-divided-layout-view.js +1 -1
- package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field-view.js +1 -1
- package/dist/collection/components/sqm-edit-profile/sqm-edit-profile-view.js +4 -4
- package/dist/collection/components/sqm-empty/sqm-empty-view.js +1 -1
- package/dist/collection/components/sqm-header-logo/sqm-header-logo.js +1 -1
- package/dist/collection/components/sqm-hero/sqm-hero-view.js +4 -4
- package/dist/collection/components/sqm-hero-image/sqm-hero-image-view.js +7 -7
- package/dist/collection/components/sqm-image/sqm-image-view.js +1 -1
- package/dist/collection/components/sqm-input-field/sqm-input-field-view.js +1 -1
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +2 -2
- package/dist/collection/components/sqm-link-button/LinkButton.stories.js +20 -0
- package/dist/collection/components/sqm-link-button/sqm-link-button-view.js +22 -0
- package/dist/collection/components/sqm-link-button/sqm-link-button.js +68 -0
- package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar-view.js +2 -2
- package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view.js +2 -2
- package/dist/collection/components/sqm-password-field/sqm-password-field-view.js +1 -1
- package/dist/collection/components/sqm-passwordless-registration/sqm-passwordless-registration.js +17 -37
- package/dist/collection/components/sqm-passwordless-registration/usePasswordlessRegistration.js +6 -2
- package/dist/collection/components/sqm-popup-container/sqm-popup-container-view.js +2 -2
- package/dist/collection/components/sqm-portal-footer/sqm-portal-footer-view.js +1 -1
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.js +1 -1
- package/dist/collection/components/sqm-portal-frame/sqm-portal-frame-view.js +3 -3
- package/dist/collection/components/sqm-portal-login/sqm-portal-login-view.js +2 -2
- package/dist/collection/components/sqm-portal-profile/sqm-portal-profile-view.js +1 -1
- package/dist/collection/components/sqm-portal-register/sqm-portal-register-view.js +1 -1
- package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form-view.js +1 -1
- package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email-view.js +1 -1
- package/dist/collection/components/sqm-program-explainer/sqm-program-explainer-view.js +3 -3
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step-view.js +4 -4
- package/dist/collection/components/sqm-referral-card/ReferralCard.stories.js +12 -0
- package/dist/collection/components/sqm-referral-card/sqm-referral-card-view.js +17 -7
- package/dist/collection/components/sqm-referral-card/sqm-referral-card.js +3 -1
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +7 -7
- package/dist/collection/components/sqm-referred-registration/sqm-referred-registration.js +241 -0
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +6 -6
- package/dist/collection/components/sqm-share-code/ShareCode.stories.js +18 -3
- package/dist/collection/components/sqm-share-code/sqm-share-code.js +57 -1
- package/dist/collection/components/sqm-share-link/ShareLink.stories.js +15 -1
- package/dist/collection/components/sqm-share-link/sqm-share-link.js +57 -1
- package/dist/collection/components/sqm-stat-container/sqm-stat-container-view.js +3 -3
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +6 -2
- package/dist/collection/components/sqm-text-span/sqm-text-span-view.js +1 -1
- package/dist/collection/components/sqm-timeline/sqm-timeline-entry-view.js +1 -1
- package/dist/collection/components/sqm-titled-section/sqm-portal-section-view.js +2 -2
- package/dist/collection/components/sqm-user-identifier/UserIdentifier.stories.js +9 -18
- package/dist/collection/components/sqm-user-identifier/sqm-user-identifier-view.js +17 -26
- package/dist/collection/components/sqm-user-identifier/sqm-user-identifier.js +31 -61
- package/dist/collection/components/views/EmailRegistration.stories.js +31 -0
- package/dist/collection/components/views/copy-text-view.js +8 -1
- package/dist/collection/components/{sqm-passwordless-registration/sqm-passwordless-registration-view.js → views/email-registration-view.js} +6 -5
- package/dist/collection/stories/PortalTemplates.stories.js +1 -1
- package/dist/collection/stories/Widget.stories.js +21 -0
- package/dist/collection/tables/GenericTableView.js +7 -2
- package/dist/esm/{GenericTableView-ce26115f.js → GenericTableView-266126f9.js} +7 -2
- package/dist/esm/{ShadowViewAddon-e57c3d40.js → ShadowViewAddon-ca765d5e.js} +121 -41
- package/dist/esm/{sqm-passwordless-registration-view-dcd145d6.js → email-registration-view-0ed79e24.js} +7 -6
- package/dist/esm/{global-4bd89b1d.js → global-0f137e54.js} +10 -161
- package/dist/esm/{index.module-5043fba6.js → index.module-787e5d35.js} +29 -19
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{luxon-dccb73bb.js → luxon-1e38d7f1.js} +1 -1
- package/dist/esm/mint-components.js +5 -5
- package/dist/esm/{re-render-a3c1732f.js → re-render-54bb3e32.js} +2 -2
- package/dist/esm/{sqm-asset-card-view-b0f8ef8e.js → sqm-asset-card-view-b2ac5a23.js} +2 -2
- package/dist/esm/sqm-asset-card.entry.js +4 -4
- package/dist/esm/{sqm-big-stat_36.entry.js → sqm-big-stat_37.entry.js} +144 -37
- package/dist/esm/sqm-empty_5.entry.js +4 -4
- package/dist/esm/sqm-form-message.entry.js +1 -1
- package/dist/esm/sqm-graphql-client-provider.entry.js +3 -3
- package/dist/esm/sqm-header-logo.entry.js +2 -2
- package/dist/esm/{sqm-hero-view-27de6b06.js → sqm-hero-view-875c927d.js} +6 -6
- package/dist/esm/sqm-hero.entry.js +3 -3
- package/dist/esm/sqm-leaderboard-rank.entry.js +4 -5
- package/dist/esm/sqm-link-button-view-8d9ad936.js +25 -0
- package/dist/esm/sqm-link-button.entry.js +19 -0
- package/dist/esm/{sqm-navigation-sidebar-item-view-d63373b2.js → sqm-navigation-sidebar-item-view-ee402e54.js} +3 -3
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +4 -4
- package/dist/esm/{sqm-navigation-sidebar-view-74ad47d4.js → sqm-navigation-sidebar-view-feb719ce.js} +2 -2
- package/dist/esm/sqm-navigation-sidebar.entry.js +4 -4
- package/dist/esm/sqm-password-field.entry.js +5 -5
- package/dist/esm/sqm-passwordless-registration.entry.js +17 -52
- package/dist/esm/sqm-popup-container.entry.js +5 -5
- package/dist/esm/{sqm-portal-container-view-06bce80d.js → sqm-portal-container-view-83b417f0.js} +2 -2
- package/dist/esm/{sqm-portal-email-verification-view-9c993283.js → sqm-portal-email-verification-view-727bbfd9.js} +2 -2
- package/dist/esm/sqm-portal-email-verification.entry.js +6 -6
- package/dist/esm/{sqm-portal-forgot-password-view-37bafb1c.js → sqm-portal-forgot-password-view-9970dee2.js} +2 -2
- package/dist/esm/sqm-portal-forgot-password.entry.js +6 -6
- package/dist/esm/sqm-portal-logout.entry.js +3 -3
- package/dist/esm/{sqm-portal-profile-view-0b4315c2.js → sqm-portal-profile-view-1f2b6063.js} +3 -3
- package/dist/esm/sqm-portal-profile.entry.js +6 -7
- package/dist/esm/sqm-portal-protected-route.entry.js +3 -3
- package/dist/esm/sqm-portal-registration-form.entry.js +7 -8
- package/dist/esm/{sqm-portal-reset-password-view-2b9da683.js → sqm-portal-reset-password-view-1f0f3bf8.js} +1 -1
- package/dist/esm/sqm-portal-reset-password.entry.js +6 -6
- package/dist/esm/{sqm-portal-verify-email-view-e3e39501.js → sqm-portal-verify-email-view-8d453021.js} +2 -2
- package/dist/esm/sqm-portal-verify-email.entry.js +5 -5
- package/dist/esm/sqm-referral-table_11.entry.js +17 -18
- package/dist/esm/sqm-referred-registration.entry.js +79 -0
- package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +2 -2
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +4 -4
- package/dist/esm/sqm-rewards-table_9.entry.js +9 -10
- package/dist/esm/sqm-stencilbook.entry.js +4231 -4099
- package/dist/esm/sqm-tab.entry.js +4 -4
- package/dist/esm/sqm-tabs.entry.js +5 -5
- package/dist/esm/{sqm-text-span-view-b03a3c6d.js → sqm-text-span-view-2f7d6d14.js} +1 -1
- package/dist/esm/sqm-text-span.entry.js +2 -2
- package/dist/esm/sqm-user-identifier-view-379c773f.js +26 -0
- package/dist/esm/sqm-user-identifier.entry.js +12 -39
- package/dist/esm/{stencil-hooks.module-6bde7453.js → stencil-hooks.module-b48b45ec.js} +1 -1
- package/dist/esm/{use-callback-c5579ecb.js → use-callback-051c06c6.js} +1 -1
- package/dist/esm/{useChildElements-a68649fd.js → useChildElements-0124b1a9.js} +2 -2
- package/dist/esm/usePasswordlessRegistration-2381025b.js +45 -0
- package/dist/esm/{useReferralTable-6c6c06cb.js → useReferralTable-3024490c.js} +5 -6
- package/dist/esm/{useRegistrationFormState-97f39def.js → useRegistrationFormState-3c2c2f1b.js} +2 -2
- package/dist/esm-es5/GenericTableView-266126f9.js +1 -0
- package/dist/esm-es5/ShadowViewAddon-ca765d5e.js +1 -0
- package/dist/esm-es5/email-registration-view-0ed79e24.js +1 -0
- package/dist/esm-es5/global-0f137e54.js +285 -0
- package/dist/esm-es5/index.module-787e5d35.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{luxon-dccb73bb.js → luxon-1e38d7f1.js} +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{re-render-a3c1732f.js → re-render-54bb3e32.js} +1 -1
- package/dist/esm-es5/sqm-asset-card-view-b2ac5a23.js +1 -0
- package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_37.entry.js +1 -0
- package/dist/esm-es5/sqm-empty_5.entry.js +1 -1
- package/dist/esm-es5/sqm-form-message.entry.js +1 -1
- package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm-es5/sqm-header-logo.entry.js +1 -1
- package/dist/esm-es5/{sqm-hero-view-27de6b06.js → sqm-hero-view-875c927d.js} +1 -1
- package/dist/esm-es5/sqm-hero.entry.js +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-link-button-view-8d9ad936.js +1 -0
- package/dist/esm-es5/sqm-link-button.entry.js +1 -0
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-ee402e54.js +1 -0
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/{sqm-navigation-sidebar-view-74ad47d4.js → sqm-navigation-sidebar-view-feb719ce.js} +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm-es5/sqm-password-field.entry.js +1 -1
- package/dist/esm-es5/sqm-passwordless-registration.entry.js +1 -1
- package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-container-view-83b417f0.js +1 -0
- package/dist/esm-es5/{sqm-portal-email-verification-view-9c993283.js → sqm-portal-email-verification-view-727bbfd9.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password-view-9970dee2.js +1 -0
- package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-profile-view-1f2b6063.js +1 -0
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-reset-password-view-2b9da683.js → sqm-portal-reset-password-view-1f0f3bf8.js} +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-verify-email-view-8d453021.js +1 -0
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-referred-registration.entry.js +1 -0
- package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-column.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-tab.entry.js +1 -1
- package/dist/esm-es5/sqm-tabs.entry.js +1 -1
- package/dist/esm-es5/{sqm-text-span-view-b03a3c6d.js → sqm-text-span-view-2f7d6d14.js} +1 -1
- package/dist/esm-es5/sqm-text-span.entry.js +1 -1
- package/dist/esm-es5/sqm-user-identifier-view-379c773f.js +1 -0
- package/dist/esm-es5/sqm-user-identifier.entry.js +1 -1
- package/dist/esm-es5/{stencil-hooks.module-6bde7453.js → stencil-hooks.module-b48b45ec.js} +1 -1
- package/dist/esm-es5/use-callback-051c06c6.js +1 -0
- package/dist/esm-es5/{useChildElements-a68649fd.js → useChildElements-0124b1a9.js} +1 -1
- package/dist/esm-es5/usePasswordlessRegistration-2381025b.js +1 -0
- package/dist/esm-es5/useReferralTable-3024490c.js +1 -0
- package/dist/esm-es5/{useRegistrationFormState-97f39def.js → useRegistrationFormState-3c2c2f1b.js} +1 -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-9dce9be7.system.entry.js → p-01bd9ae1.system.entry.js} +1 -1
- package/dist/mint-components/p-03ad8655.js +1 -0
- package/dist/mint-components/p-05abfc50.system.entry.js +1 -0
- package/dist/mint-components/p-085290c7.system.entry.js +1 -0
- package/dist/mint-components/p-0eddbe09.entry.js +1 -0
- package/dist/mint-components/p-1069832a.entry.js +1 -0
- package/dist/mint-components/{p-fbc2343f.system.js → p-15cfd2cf.system.js} +22 -22
- package/dist/mint-components/p-19cecf43.entry.js +1 -0
- package/dist/mint-components/p-1b9c1909.entry.js +1 -0
- package/dist/mint-components/p-1bf9875f.entry.js +1 -0
- package/dist/mint-components/p-1f54fd38.system.js +1 -0
- package/dist/mint-components/{p-d566db0b.js → p-25254dd1.js} +1 -1
- package/dist/mint-components/p-25ce265e.entry.js +13 -0
- package/dist/mint-components/p-26117a7d.system.js +1 -0
- package/dist/mint-components/p-27c9d3be.system.entry.js +1 -0
- package/dist/mint-components/p-2a7686a6.system.entry.js +1 -0
- package/dist/mint-components/p-2b9ae018.system.js +1 -0
- package/dist/mint-components/p-30ec7d38.entry.js +1 -0
- package/dist/mint-components/p-3282f52a.entry.js +1 -0
- package/dist/mint-components/p-32b28506.system.entry.js +1 -0
- package/dist/mint-components/{p-2f8ddf17.system.entry.js → p-332448db.system.entry.js} +1 -1
- package/dist/mint-components/p-3552b5c5.entry.js +1 -0
- package/dist/mint-components/p-35b9bb54.entry.js +1 -0
- package/dist/mint-components/{p-21bf8abc.entry.js → p-36b5b564.entry.js} +1 -1
- package/dist/mint-components/p-36c08962.js +1 -0
- package/dist/mint-components/p-3855a6e0.entry.js +1 -0
- package/dist/mint-components/p-39ac088a.entry.js +13 -0
- package/dist/mint-components/{p-ce7fef38.system.js → p-3a6a59f2.system.js} +1 -1
- package/dist/mint-components/{p-f628a8cd.entry.js → p-3ad5761c.entry.js} +1 -1
- package/dist/mint-components/{p-850c27d0.entry.js → p-3ad8c79f.entry.js} +1 -1
- package/dist/mint-components/{p-0a15b302.system.js → p-3c189cea.system.js} +1 -1
- package/dist/mint-components/{p-a853bf1c.system.entry.js → p-3cbdb360.system.entry.js} +1 -1
- package/dist/mint-components/{p-b0f1dfad.entry.js → p-3f075d21.entry.js} +1 -1
- package/dist/mint-components/p-4336876b.js +1 -0
- package/dist/mint-components/p-4359f515.system.js +1 -0
- package/dist/mint-components/p-52468c89.system.js +1 -0
- package/dist/mint-components/p-5333d935.entry.js +1 -0
- package/dist/mint-components/p-5377e1c5.system.entry.js +1 -0
- package/dist/mint-components/p-545e2df1.entry.js +1 -0
- package/dist/mint-components/{p-f572337b.system.js → p-555123c5.system.js} +1 -1
- package/dist/mint-components/p-56306cfd.system.js +1 -0
- package/dist/mint-components/p-56494499.js +1 -0
- package/dist/mint-components/p-5938e109.js +1 -0
- package/dist/mint-components/p-598f6e6e.entry.js +171 -0
- package/dist/mint-components/{p-b6de33e5.system.entry.js → p-5a8866c0.system.entry.js} +1 -1
- package/dist/mint-components/p-5deb8687.system.entry.js +1 -0
- package/dist/mint-components/{p-94cf16d4.entry.js → p-65aac49a.entry.js} +1 -1
- package/dist/mint-components/p-6868f6a3.system.entry.js +1 -0
- package/dist/mint-components/{p-acc9e541.js → p-695d65b1.js} +1 -1
- package/dist/mint-components/p-6c69d3d5.entry.js +1 -0
- package/dist/mint-components/{p-0a4c867d.system.entry.js → p-6d7b7618.system.entry.js} +1 -1
- package/dist/mint-components/p-70d33b67.system.js +1 -0
- package/dist/mint-components/p-71fe4061.js +1 -0
- package/dist/mint-components/p-73bca9e7.js +1 -0
- package/dist/mint-components/p-76c339cd.system.js +1 -0
- package/dist/mint-components/p-788fd322.system.js +1 -0
- package/dist/mint-components/p-7ed639bc.js +1 -0
- package/dist/mint-components/p-7ef716a7.js +1 -0
- package/dist/mint-components/p-82f341ec.system.entry.js +1 -0
- package/dist/mint-components/{p-ad694844.system.entry.js → p-838e5560.system.entry.js} +1 -1
- package/dist/mint-components/p-83927707.js +1 -0
- package/dist/mint-components/p-883169ad.entry.js +1 -0
- package/dist/mint-components/p-8caf0121.system.entry.js +1 -0
- package/dist/mint-components/p-8eb9298d.js +268 -0
- package/dist/mint-components/p-911f8910.system.js +1 -0
- package/dist/mint-components/p-9165844e.system.js +1 -0
- package/dist/mint-components/p-91b1dd5f.system.entry.js +1 -0
- package/dist/mint-components/{p-4fc59b30.system.entry.js → p-92002bbb.system.entry.js} +1 -1
- package/dist/mint-components/p-95cc44c3.system.js +1 -0
- package/dist/mint-components/{p-e9489bfb.system.js → p-96e98d06.system.js} +1 -1
- package/dist/mint-components/p-97763c36.system.js +1 -0
- package/dist/mint-components/p-9957d667.system.js +1 -0
- package/dist/mint-components/p-9c0678aa.system.entry.js +1 -0
- package/dist/mint-components/p-9cbc79f6.system.entry.js +1 -0
- package/dist/mint-components/p-9e8ea69d.system.js +1 -0
- package/dist/mint-components/p-a2f7a2f3.system.js +1 -0
- package/dist/mint-components/{p-22176b92.js → p-a90b4c3f.js} +1 -1
- package/dist/mint-components/p-a9467e3e.system.entry.js +1 -0
- package/dist/mint-components/p-aaff2c88.system.entry.js +1 -0
- package/dist/mint-components/p-ae00aec4.system.js +1 -0
- package/dist/mint-components/{p-2d728c9b.entry.js → p-af00c9b0.entry.js} +1 -1
- package/dist/mint-components/p-b039fb72.entry.js +1 -0
- package/dist/mint-components/{p-0e344e4c.system.entry.js → p-b0ad1b74.system.entry.js} +1 -1
- package/dist/mint-components/{p-6b9e32ca.system.js → p-b79c0e38.system.js} +2 -2
- package/dist/mint-components/{p-8ddb2c01.system.entry.js → p-b91658ca.system.entry.js} +1 -1
- package/dist/mint-components/p-ba7feba5.js +1 -0
- package/dist/mint-components/{p-10122db1.system.js → p-bb6f60a6.system.js} +1 -1
- package/dist/mint-components/{p-3aa51afb.js → p-bc6255a0.js} +3 -3
- package/dist/mint-components/{p-cd745ffb.system.js → p-bd63ef52.system.js} +1 -1
- package/dist/mint-components/p-bfdbe27c.js +1 -0
- package/dist/mint-components/p-c0685957.js +1 -0
- package/dist/mint-components/p-cce7f6ea.js +1 -0
- package/dist/mint-components/{p-b0601c94.entry.js → p-cfb400c5.entry.js} +1 -1
- package/dist/mint-components/{p-938ff1fc.js → p-d27b326c.js} +1 -1
- package/dist/mint-components/{p-2c8645c6.system.entry.js → p-d483347f.system.entry.js} +1 -1
- package/dist/mint-components/{p-293d8305.entry.js → p-d949b099.entry.js} +2 -2
- package/dist/mint-components/{p-26131a87.system.entry.js → p-d9643307.system.entry.js} +1 -1
- package/dist/mint-components/p-da70e75d.entry.js +1 -0
- package/dist/mint-components/p-db297fa3.system.entry.js +1 -0
- package/dist/mint-components/{p-54d0019e.entry.js → p-de9716b9.entry.js} +3 -3
- package/dist/mint-components/p-dffe8bea.entry.js +1 -0
- package/dist/mint-components/p-e0167571.js +1 -0
- package/dist/mint-components/p-e41a853f.system.entry.js +1 -0
- package/dist/mint-components/p-e74525d9.system.entry.js +1 -0
- package/dist/mint-components/p-e869887b.system.entry.js +1 -0
- package/dist/mint-components/{p-5bba84a6.system.js → p-e94f28d3.system.js} +1 -1
- package/dist/mint-components/p-ea76c3bc.system.entry.js +1 -0
- package/dist/mint-components/{p-4e38410c.js → p-eb3278aa.js} +153 -153
- package/dist/mint-components/{p-c5966d38.js → p-ed801cb7.js} +1 -1
- package/dist/mint-components/p-f63ea5f4.entry.js +1 -0
- package/dist/mint-components/p-f66b4b3a.js +1 -0
- package/dist/mint-components/p-f85504fd.system.entry.js +1 -0
- package/dist/mint-components/p-f87b1e0b.system.js +1 -0
- package/dist/mint-components/p-f8bbbea1.js +1 -0
- package/dist/mint-components/{p-74f936b0.js → p-f8dd6bac.js} +1 -1
- package/dist/mint-components/{p-b9831b79.entry.js → p-f96d239a.entry.js} +1 -1
- package/dist/mint-components/p-fd90e9db.entry.js +9 -0
- package/dist/types/components/sqm-coupon-code/CouponCode.stories.d.ts +1 -0
- package/dist/types/components/sqm-coupon-code/sqm-coupon-code.d.ts +12 -0
- package/dist/types/components/sqm-link-button/LinkButton.stories.d.ts +9 -0
- package/dist/types/components/sqm-link-button/sqm-link-button-view.d.ts +5 -0
- package/dist/types/components/sqm-link-button/sqm-link-button.d.ts +17 -0
- package/dist/types/components/sqm-passwordless-registration/sqm-passwordless-registration.d.ts +2 -6
- package/dist/types/components/sqm-referral-card/ReferralCard.stories.d.ts +2 -0
- package/dist/types/components/sqm-referral-card/sqm-referral-card-view.d.ts +2 -0
- package/dist/types/components/sqm-referral-card/sqm-referral-card.d.ts +1 -1
- package/dist/types/components/sqm-referred-registration/sqm-referred-registration.d.ts +44 -0
- package/dist/types/components/sqm-share-code/ShareCode.stories.d.ts +2 -1
- package/dist/types/components/sqm-share-code/sqm-share-code.d.ts +12 -0
- package/dist/types/components/sqm-share-link/ShareLink.stories.d.ts +1 -0
- package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +12 -0
- package/dist/types/components/sqm-user-identifier/UserIdentifier.stories.d.ts +1 -6
- package/dist/types/components/sqm-user-identifier/sqm-user-identifier-view.d.ts +5 -8
- package/dist/types/components/sqm-user-identifier/sqm-user-identifier.d.ts +8 -18
- package/dist/types/components/{sqm-passwordless-registration/PasswordlessRegistration.stories.d.ts → views/EmailRegistration.stories.d.ts} +1 -1
- package/dist/types/components/views/copy-text-view.d.ts +3 -1
- package/dist/types/components/{sqm-passwordless-registration/sqm-passwordless-registration-view.d.ts → views/email-registration-view.d.ts} +2 -3
- package/dist/types/components.d.ts +185 -47
- package/dist/types/stories/PortalTemplates.stories.d.ts +1 -0
- package/dist/types/stories/Widget.stories.d.ts +24 -0
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +4 -2
- package/dist/cjs/PoweredByImg-7084ef2d.js +0 -16
- package/dist/cjs/index-e4027f09.js +0 -2227
- package/dist/cjs/sqm-portal-footer-view-6e490bc6.js +0 -71
- package/dist/cjs/sqm-portal-footer.cjs.entry.js +0 -69
- package/dist/collection/components/sqm-passwordless-registration/PasswordlessRegistration.stories.js +0 -32
- package/dist/esm/PoweredByImg-1114005e.js +0 -14
- package/dist/esm/index-4bffa04c.js +0 -2225
- package/dist/esm/sqm-portal-footer-view-d673e9b9.js +0 -69
- package/dist/esm/sqm-portal-footer.entry.js +0 -65
- package/dist/esm-es5/GenericTableView-ce26115f.js +0 -1
- package/dist/esm-es5/PoweredByImg-1114005e.js +0 -1
- package/dist/esm-es5/ShadowViewAddon-e57c3d40.js +0 -1
- package/dist/esm-es5/global-4bd89b1d.js +0 -285
- package/dist/esm-es5/index-4bffa04c.js +0 -1
- package/dist/esm-es5/index.module-5043fba6.js +0 -1
- package/dist/esm-es5/sqm-asset-card-view-b0f8ef8e.js +0 -1
- package/dist/esm-es5/sqm-big-stat_36.entry.js +0 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-d63373b2.js +0 -1
- package/dist/esm-es5/sqm-passwordless-registration-view-dcd145d6.js +0 -1
- package/dist/esm-es5/sqm-portal-container-view-06bce80d.js +0 -1
- package/dist/esm-es5/sqm-portal-footer-view-d673e9b9.js +0 -1
- package/dist/esm-es5/sqm-portal-footer.entry.js +0 -1
- package/dist/esm-es5/sqm-portal-forgot-password-view-37bafb1c.js +0 -1
- package/dist/esm-es5/sqm-portal-profile-view-0b4315c2.js +0 -1
- package/dist/esm-es5/sqm-portal-verify-email-view-e3e39501.js +0 -1
- package/dist/esm-es5/use-callback-c5579ecb.js +0 -1
- package/dist/esm-es5/useReferralTable-6c6c06cb.js +0 -1
- package/dist/mint-components/p-014e183e.system.js +0 -1
- package/dist/mint-components/p-040a7ac6.system.entry.js +0 -1
- package/dist/mint-components/p-0afd05cc.system.entry.js +0 -1
- package/dist/mint-components/p-0b07c70b.entry.js +0 -171
- package/dist/mint-components/p-0b3af3f2.js +0 -1
- package/dist/mint-components/p-143e7a08.system.js +0 -1
- package/dist/mint-components/p-1555c1e9.js +0 -1
- package/dist/mint-components/p-15e0bdb5.entry.js +0 -1
- package/dist/mint-components/p-18d5795d.system.js +0 -1
- package/dist/mint-components/p-1943d52e.js +0 -1
- package/dist/mint-components/p-1b0c59f0.system.entry.js +0 -1
- package/dist/mint-components/p-1e350778.system.entry.js +0 -1
- package/dist/mint-components/p-218c8a32.js +0 -1
- package/dist/mint-components/p-25d4bd6c.entry.js +0 -1
- package/dist/mint-components/p-2b2415cc.system.js +0 -1
- package/dist/mint-components/p-2bc7c025.system.entry.js +0 -1
- package/dist/mint-components/p-2dcc4495.entry.js +0 -1
- package/dist/mint-components/p-2ffe61a0.system.js +0 -1
- package/dist/mint-components/p-3b084b9e.system.entry.js +0 -1
- package/dist/mint-components/p-4056a7f4.entry.js +0 -1
- package/dist/mint-components/p-41377dac.system.js +0 -1
- package/dist/mint-components/p-4777598b.system.entry.js +0 -1
- package/dist/mint-components/p-497c2091.system.entry.js +0 -1
- package/dist/mint-components/p-545c6333.system.entry.js +0 -1
- package/dist/mint-components/p-561b5ade.js +0 -268
- package/dist/mint-components/p-5bfe901d.js +0 -1
- package/dist/mint-components/p-5da32b79.system.entry.js +0 -1
- package/dist/mint-components/p-68454fb6.system.entry.js +0 -1
- package/dist/mint-components/p-6b5824db.entry.js +0 -13
- package/dist/mint-components/p-6b8b7dc0.system.js +0 -1
- package/dist/mint-components/p-6dd27a5e.js +0 -1
- package/dist/mint-components/p-721deaaf.system.js +0 -1
- package/dist/mint-components/p-848a7767.entry.js +0 -1
- package/dist/mint-components/p-88bfcec2.system.js +0 -1
- package/dist/mint-components/p-8a6a0b6f.js +0 -1
- package/dist/mint-components/p-8a7b0f2c.system.entry.js +0 -1
- package/dist/mint-components/p-8c0e613f.system.js +0 -1
- package/dist/mint-components/p-8e84f311.system.entry.js +0 -1
- package/dist/mint-components/p-910c977e.entry.js +0 -13
- package/dist/mint-components/p-9c63de96.system.js +0 -1
- package/dist/mint-components/p-9ccc4b8a.system.entry.js +0 -1
- package/dist/mint-components/p-9f011b61.system.entry.js +0 -1
- package/dist/mint-components/p-9f06a318.entry.js +0 -1
- package/dist/mint-components/p-a0dcecee.system.js +0 -1
- package/dist/mint-components/p-a15a06d1.entry.js +0 -1
- package/dist/mint-components/p-a208711a.js +0 -1
- package/dist/mint-components/p-a46c0d32.js +0 -1
- package/dist/mint-components/p-a4b7f6a6.system.js +0 -1
- package/dist/mint-components/p-b56a0052.system.js +0 -1
- package/dist/mint-components/p-b76c5252.entry.js +0 -1
- package/dist/mint-components/p-b8301966.js +0 -1
- package/dist/mint-components/p-bef0a1f4.system.js +0 -1
- package/dist/mint-components/p-c3fa90e4.entry.js +0 -1
- package/dist/mint-components/p-c5bd5f21.entry.js +0 -9
- package/dist/mint-components/p-c78edab5.entry.js +0 -1
- package/dist/mint-components/p-c7e36372.system.js +0 -1
- package/dist/mint-components/p-c96900ab.js +0 -1
- package/dist/mint-components/p-ceb6a9e5.js +0 -1
- package/dist/mint-components/p-ceefa840.system.entry.js +0 -1
- package/dist/mint-components/p-d4dd44ce.js +0 -1
- package/dist/mint-components/p-d8c7e0db.js +0 -1
- package/dist/mint-components/p-d96ba635.entry.js +0 -1
- package/dist/mint-components/p-db01736e.entry.js +0 -1
- package/dist/mint-components/p-dbb3533c.system.entry.js +0 -1
- package/dist/mint-components/p-dc9f2ec3.system.entry.js +0 -1
- package/dist/mint-components/p-dcdfc20a.entry.js +0 -1
- package/dist/mint-components/p-e36afaf4.system.entry.js +0 -1
- package/dist/mint-components/p-eae501f9.js +0 -1
- package/dist/mint-components/p-eb5e8657.entry.js +0 -1
- package/dist/mint-components/p-ece264ab.entry.js +0 -1
- package/dist/mint-components/p-ee7e5b54.system.js +0 -1
- package/dist/mint-components/p-f19e6247.entry.js +0 -1
- package/dist/mint-components/p-f4dbaf32.js +0 -1
- package/dist/mint-components/p-f5a0ea6c.entry.js +0 -1
- package/dist/mint-components/p-f6e9b11e.js +0 -1
- package/dist/mint-components/p-f9203fcb.system.entry.js +0 -1
- package/dist/mint-components/p-fab61d16.system.js +0 -1
|
@@ -61,11 +61,11 @@ export function LeaderboardView(props) {
|
|
|
61
61
|
if (!states.hasLeaders)
|
|
62
62
|
return elements.empty;
|
|
63
63
|
let userSeenFlag = false;
|
|
64
|
-
return (h("div", { class: sheet.classes.Leaderboard },
|
|
64
|
+
return (h("div", { class: sheet.classes.Leaderboard, part: "sqm-leaderboard-container" },
|
|
65
65
|
h("style", { type: "text/css" },
|
|
66
66
|
styleString,
|
|
67
67
|
vanillaStyle),
|
|
68
|
-
h("table",
|
|
68
|
+
h("table", { part: "sqm-leaderboard-table" },
|
|
69
69
|
h("tr", null,
|
|
70
70
|
styles.showRank && h("th", { class: "Rank" }, styles.rankheading),
|
|
71
71
|
h("th", { class: "User" }, styles.usersheading),
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import scenario from "./sqm-link-button.feature";
|
|
3
|
+
import { LinkButtonView } from "./sqm-link-button-view";
|
|
4
|
+
export default {
|
|
5
|
+
title: "Components/User Identifier",
|
|
6
|
+
parameters: {
|
|
7
|
+
scenario,
|
|
8
|
+
},
|
|
9
|
+
};
|
|
10
|
+
const defaultProps = {
|
|
11
|
+
buttonSlot: h("span", null, "Test Slot Content"),
|
|
12
|
+
link: "https://example.com",
|
|
13
|
+
openInNewTab: false,
|
|
14
|
+
};
|
|
15
|
+
export const Default = () => {
|
|
16
|
+
return h(LinkButtonView, Object.assign({}, defaultProps));
|
|
17
|
+
};
|
|
18
|
+
export const OpenInNewTab = () => {
|
|
19
|
+
return h(LinkButtonView, Object.assign({}, { ...defaultProps, openInNewTab: true }));
|
|
20
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { createStyleSheet } from "../../styling/JSS";
|
|
3
|
+
const style = {
|
|
4
|
+
Container: { display: "contents" },
|
|
5
|
+
};
|
|
6
|
+
const vanillaStyle = `
|
|
7
|
+
:host{
|
|
8
|
+
display: inline;
|
|
9
|
+
}
|
|
10
|
+
`;
|
|
11
|
+
const sheet = createStyleSheet(style);
|
|
12
|
+
const styleString = sheet.toString();
|
|
13
|
+
export function LinkButtonView(props) {
|
|
14
|
+
const { link, openInNewTab } = props;
|
|
15
|
+
return (h("span", { class: sheet.classes.Container },
|
|
16
|
+
h("style", { type: "text/css" },
|
|
17
|
+
styleString,
|
|
18
|
+
vanillaStyle),
|
|
19
|
+
h("sl-button", null,
|
|
20
|
+
h("a", { href: link, target: openInNewTab ? "_blank" : "" },
|
|
21
|
+
h("slot", null)))));
|
|
22
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { Component, h, Prop } from "@stencil/core";
|
|
2
|
+
import { getProps } from "../../utils/utils";
|
|
3
|
+
import { LinkButtonView } from "./sqm-link-button-view";
|
|
4
|
+
/**
|
|
5
|
+
* @uiName Image
|
|
6
|
+
* @exampleGroup Common Components
|
|
7
|
+
* @example Image - <sqm-image image-url="https://res.cloudinary.com/saasquatch/image/upload/v1644000259/squatch-assets/tn47wOj.png" alignment="center"></sqm-image>
|
|
8
|
+
*/
|
|
9
|
+
export class Image {
|
|
10
|
+
constructor() {
|
|
11
|
+
/**
|
|
12
|
+
* @uiName User Identification Text
|
|
13
|
+
*/
|
|
14
|
+
this.openInNewTab = false;
|
|
15
|
+
}
|
|
16
|
+
render() {
|
|
17
|
+
return h(LinkButtonView, Object.assign({}, getProps(this)));
|
|
18
|
+
}
|
|
19
|
+
static get is() { return "sqm-link-button"; }
|
|
20
|
+
static get encapsulation() { return "shadow"; }
|
|
21
|
+
static get properties() { return {
|
|
22
|
+
"link": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"mutable": false,
|
|
25
|
+
"complexType": {
|
|
26
|
+
"original": "string",
|
|
27
|
+
"resolved": "string",
|
|
28
|
+
"references": {}
|
|
29
|
+
},
|
|
30
|
+
"required": false,
|
|
31
|
+
"optional": false,
|
|
32
|
+
"docs": {
|
|
33
|
+
"tags": [{
|
|
34
|
+
"text": undefined,
|
|
35
|
+
"name": "required"
|
|
36
|
+
}, {
|
|
37
|
+
"text": "User Identification Text",
|
|
38
|
+
"name": "uiName"
|
|
39
|
+
}],
|
|
40
|
+
"text": ""
|
|
41
|
+
},
|
|
42
|
+
"attribute": "link",
|
|
43
|
+
"reflect": false
|
|
44
|
+
},
|
|
45
|
+
"openInNewTab": {
|
|
46
|
+
"type": "boolean",
|
|
47
|
+
"mutable": false,
|
|
48
|
+
"complexType": {
|
|
49
|
+
"original": "boolean",
|
|
50
|
+
"resolved": "boolean",
|
|
51
|
+
"references": {}
|
|
52
|
+
},
|
|
53
|
+
"required": false,
|
|
54
|
+
"optional": false,
|
|
55
|
+
"docs": {
|
|
56
|
+
"tags": [{
|
|
57
|
+
"text": "User Identification Text",
|
|
58
|
+
"name": "uiName"
|
|
59
|
+
}],
|
|
60
|
+
"text": ""
|
|
61
|
+
},
|
|
62
|
+
"attribute": "open-in-new-tab",
|
|
63
|
+
"reflect": false,
|
|
64
|
+
"defaultValue": "false"
|
|
65
|
+
}
|
|
66
|
+
}; }
|
|
67
|
+
}
|
|
68
|
+
//TODO: Write a hook to resolve ICU strings
|
|
@@ -142,12 +142,12 @@ const vanillaStyle = `
|
|
|
142
142
|
}
|
|
143
143
|
`;
|
|
144
144
|
export function NavigationSidebarView(props, children) {
|
|
145
|
-
return (h("div", { class: "container" },
|
|
145
|
+
return (h("div", { class: "container", part: "sqm-navigation-container" },
|
|
146
146
|
h("style", null, vanillaStyle),
|
|
147
147
|
h("input", Object.assign({ type: "checkbox", class: "toggler" }, props)),
|
|
148
148
|
h("div", { class: "hamburger" },
|
|
149
149
|
h("div", { class: "line" }),
|
|
150
150
|
h("div", { class: "line" }),
|
|
151
151
|
h("div", { class: "line" })),
|
|
152
|
-
h("div", { class: "menu-items" }, children)));
|
|
152
|
+
h("div", { class: "menu-items", part: "sqm-navigation-menu-items" }, children)));
|
|
153
153
|
}
|
package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view.js
CHANGED
|
@@ -30,11 +30,11 @@ export function NavigationSidebarItemView(props) {
|
|
|
30
30
|
};
|
|
31
31
|
const sheet = createStyleSheet(style);
|
|
32
32
|
const styleString = sheet.toString();
|
|
33
|
-
return (h("a", { href: data.path, onClick: (e) => {
|
|
33
|
+
return (h("a", { part: "sqm-navigation-item-link", href: data.path, onClick: (e) => {
|
|
34
34
|
e.preventDefault();
|
|
35
35
|
navigation.push(data.path);
|
|
36
36
|
}, class: sheet.classes.ItemContainer },
|
|
37
37
|
h("style", { type: "text/css" }, styleString),
|
|
38
38
|
h("sl-icon", { class: sheet.classes.Icon, name: data.icon }),
|
|
39
|
-
h("p", { class: sheet.classes.Label }, data.label)));
|
|
39
|
+
h("p", { class: sheet.classes.Label, part: "sqm-navigation-item-label" }, data.label)));
|
|
40
40
|
}
|
|
@@ -24,7 +24,7 @@ const styleString = sheet.toString();
|
|
|
24
24
|
export function PortalResetPasswordView(props) {
|
|
25
25
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
26
26
|
const { states, callbacks } = props;
|
|
27
|
-
return (h("div", { class: sheet.classes.InputContainer },
|
|
27
|
+
return (h("div", { class: sheet.classes.InputContainer, part: "sqm-password-field-container" },
|
|
28
28
|
h("style", { type: "text/css" },
|
|
29
29
|
vanillaStyle,
|
|
30
30
|
styleString),
|
package/dist/collection/components/sqm-passwordless-registration/sqm-passwordless-registration.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { isDemo } from "@saasquatch/component-boilerplate";
|
|
1
|
+
import { isDemo, setUserIdentity, } from "@saasquatch/component-boilerplate";
|
|
2
2
|
import { withHooks } from "@saasquatch/stencil-hooks";
|
|
3
3
|
import { Component, h, Prop, State } from "@stencil/core";
|
|
4
4
|
import deepmerge from "deepmerge";
|
|
5
|
-
import {
|
|
5
|
+
import { EmailRegistrationView, } from "../views/email-registration-view";
|
|
6
6
|
import { usePasswordlessRegistration } from "./usePasswordlessRegistration";
|
|
7
7
|
/**
|
|
8
8
|
* @uiName Microsite Registration
|
|
@@ -38,10 +38,6 @@ export class PasswordlessRegistration {
|
|
|
38
38
|
* @uiName Include name fields
|
|
39
39
|
*/
|
|
40
40
|
this.includeName = false;
|
|
41
|
-
/**
|
|
42
|
-
* @uiName Include name fields
|
|
43
|
-
*/
|
|
44
|
-
this.hidePoweredBy = false;
|
|
45
41
|
withHooks(this);
|
|
46
42
|
}
|
|
47
43
|
disconnectedCallback() { }
|
|
@@ -55,12 +51,11 @@ export class PasswordlessRegistration {
|
|
|
55
51
|
firstNameLabel: this.firstNameLabel,
|
|
56
52
|
lastNameLabel: this.lastNameLabel,
|
|
57
53
|
includeName: this.includeName,
|
|
58
|
-
hidePoweredBy: this.hidePoweredBy,
|
|
59
54
|
// slots
|
|
60
55
|
topSlot: h("slot", { name: "top-slot" }),
|
|
61
56
|
bottomSlot: h("slot", { name: "bottom-slot" }),
|
|
62
57
|
};
|
|
63
|
-
return (h(
|
|
58
|
+
return (h(EmailRegistrationView, { states: states, callbacks: callbacks, content: content }));
|
|
64
59
|
}
|
|
65
60
|
static get is() { return "sqm-passwordless-registration"; }
|
|
66
61
|
static get encapsulation() { return "shadow"; }
|
|
@@ -194,41 +189,20 @@ export class PasswordlessRegistration {
|
|
|
194
189
|
"reflect": false,
|
|
195
190
|
"defaultValue": "false"
|
|
196
191
|
},
|
|
197
|
-
"hidePoweredBy": {
|
|
198
|
-
"type": "boolean",
|
|
199
|
-
"mutable": false,
|
|
200
|
-
"complexType": {
|
|
201
|
-
"original": "boolean",
|
|
202
|
-
"resolved": "boolean",
|
|
203
|
-
"references": {}
|
|
204
|
-
},
|
|
205
|
-
"required": false,
|
|
206
|
-
"optional": false,
|
|
207
|
-
"docs": {
|
|
208
|
-
"tags": [{
|
|
209
|
-
"text": "Include name fields",
|
|
210
|
-
"name": "uiName"
|
|
211
|
-
}],
|
|
212
|
-
"text": ""
|
|
213
|
-
},
|
|
214
|
-
"attribute": "hide-powered-by",
|
|
215
|
-
"reflect": false,
|
|
216
|
-
"defaultValue": "false"
|
|
217
|
-
},
|
|
218
192
|
"demoData": {
|
|
219
193
|
"type": "unknown",
|
|
220
194
|
"mutable": false,
|
|
221
195
|
"complexType": {
|
|
222
|
-
"original": "DemoData<
|
|
223
|
-
"resolved": "{ states?: { error: string; loading: boolean; }; content?: { emailLabel?: string; firstNameLabel?: string; lastNameLabel?: string; registerLabel?: string; includeName?: boolean;
|
|
196
|
+
"original": "DemoData<EmailRegistrationViewProps>",
|
|
197
|
+
"resolved": "{ states?: { error: string; loading: boolean; }; content?: { emailLabel?: string; firstNameLabel?: string; lastNameLabel?: string; registerLabel?: string; includeName?: boolean; topSlot?: VNode; bottomSlot?: VNode; }; }",
|
|
224
198
|
"references": {
|
|
225
199
|
"DemoData": {
|
|
226
200
|
"location": "import",
|
|
227
201
|
"path": "../../global/demo"
|
|
228
202
|
},
|
|
229
|
-
"
|
|
203
|
+
"EmailRegistrationViewProps": {
|
|
230
204
|
"location": "import",
|
|
231
|
-
"path": "
|
|
205
|
+
"path": "../views/email-registration-view"
|
|
232
206
|
}
|
|
233
207
|
}
|
|
234
208
|
},
|
|
@@ -251,16 +225,22 @@ export class PasswordlessRegistration {
|
|
|
251
225
|
}; }
|
|
252
226
|
}
|
|
253
227
|
function useRegistrationDemo(props) {
|
|
228
|
+
console.debug("sqm-passwordless-registration: Running in debug mode...");
|
|
229
|
+
const onSubmit = () => {
|
|
230
|
+
setUserIdentity({
|
|
231
|
+
id: "referrer@example.com",
|
|
232
|
+
accountId: "referrer@example.com",
|
|
233
|
+
jwt: "eyJraWQiOiJlNjI2NzQxNy1jMzZlLTRlM2EtYjM5NS1lYTFmY2YyNmU3YzIiLCJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJjbVZtWlhKeVpYSkFaWGhoYlhCc1pTNWpiMjA9OmNtVm1aWEp5WlhKQVpYaGhiWEJzWlM1amIyMD1AdGVzdF9heGJndGF0dzF0Y2NwOnVzZXJzIiwicGFzc3dvcmRsZXNzIjp0cnVlLCJpc3MiOiJodHRwczovL3N0YWdpbmcucmVmZXJyYWxzYWFzcXVhdGNoLmNvbS8iLCJleHAiOjE2ODA4ODU5MTksImlhdCI6MTY4MDc5OTUxOX0.kjmTVVf_BTb-uMNKnadLyNLxMFwpkefsY02O3iAfBVIJJZZfeZMwunPlKsS3Vbp28aYRClBjH5Wj4pYxDn23D0CdZx8KNCqiJ8yF6149O9SPMkRseoJkliqS6LyvMOEDjGDkuLfcC8_hq1AHBXFt5BdCtWOk1gwf_5R9A0w5gXEIvprBzbNDLbuo88bVAlrmFNvfttXXryrpUeruMal7cBKuy02YblBrB4kKoyJiprU5GLEjciBA4A56u8TwQc0kbsPf2YcQaJsY_IvkC7S1u4sPyObpq6iF6Ed8UYHAo6nU5KjZXyVtoUyeIS11mf_6OtDO6LyMNHV2FtEUUDdPCg",
|
|
234
|
+
});
|
|
235
|
+
};
|
|
254
236
|
return deepmerge({
|
|
255
237
|
states: {
|
|
256
|
-
error: "",
|
|
257
238
|
loading: false,
|
|
258
|
-
|
|
259
|
-
registerPath: "/register",
|
|
239
|
+
error: "",
|
|
260
240
|
},
|
|
261
241
|
callbacks: {
|
|
262
242
|
submit: async (_event) => {
|
|
263
|
-
|
|
243
|
+
onSubmit();
|
|
264
244
|
},
|
|
265
245
|
},
|
|
266
246
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
package/dist/collection/components/sqm-passwordless-registration/usePasswordlessRegistration.js
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { useUpsertPasswordlessUserMutation } from "@saasquatch/component-boilerplate";
|
|
2
2
|
import { useState } from "@saasquatch/universal-hooks";
|
|
3
|
-
import
|
|
3
|
+
import jsonpointer from "jsonpointer";
|
|
4
4
|
export function usePasswordlessRegistration() {
|
|
5
5
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
6
|
+
const cookie = new URLSearchParams(window.location.search);
|
|
7
|
+
const cookies = cookie === null || cookie === void 0 ? void 0 : cookie.get("_saasquatch");
|
|
8
|
+
console.log({ cookie });
|
|
6
9
|
const [request, { loading, errors, data }] = useUpsertPasswordlessUserMutation();
|
|
7
10
|
const [error, setError] = useState("");
|
|
8
11
|
const submit = async (event) => {
|
|
@@ -16,6 +19,7 @@ export function usePasswordlessRegistration() {
|
|
|
16
19
|
firstName: formData.firstName,
|
|
17
20
|
lastName: formData.lastName,
|
|
18
21
|
email: formData.email,
|
|
22
|
+
...(cookies ? { cookies } : {}),
|
|
19
23
|
};
|
|
20
24
|
const result = await request(variables);
|
|
21
25
|
if (result instanceof Error) {
|
|
@@ -3,8 +3,8 @@ const PopupContainerView = (props) => {
|
|
|
3
3
|
const { states, callbacks } = props;
|
|
4
4
|
const { styles } = states;
|
|
5
5
|
return (h(Host, { class: "squatch-container" },
|
|
6
|
-
h("div", { style: { padding: props.states.styles.padding } },
|
|
7
|
-
styles.closeButton && (h("span", { class: "close squatch-header-close", "data-close-panel": "#squatch-panel", onClick: () => callbacks.closePopup() }, styles.closeButtonText)),
|
|
6
|
+
h("div", { style: { padding: props.states.styles.padding }, part: "sqm-popup-container" },
|
|
7
|
+
styles.closeButton && (h("span", { part: "sqm-popup-container-close-btn", class: "close squatch-header-close", "data-close-panel": "#squatch-panel", onClick: () => callbacks.closePopup() }, styles.closeButtonText)),
|
|
8
8
|
h("slot", null),
|
|
9
9
|
styles.poweredBy ? (h("a", { class: "sqh-attribution", href: "https://www.saasquatch.com/?utm_source=app&utm_medium=user-widget&utm_campaign=referral-widget", target: "_blank" }, "Powered By")) : (""))));
|
|
10
10
|
};
|
|
@@ -48,7 +48,7 @@ export function PortalFooterView(props) {
|
|
|
48
48
|
};
|
|
49
49
|
const sheet = createStyleSheet(style);
|
|
50
50
|
const styleString = sheet.toString();
|
|
51
|
-
return (h("div", { class: sheet.classes.Container },
|
|
51
|
+
return (h("div", { class: sheet.classes.Container, part: "sqm-footer-container" },
|
|
52
52
|
h("style", { type: "text/css" },
|
|
53
53
|
vanillaStyle,
|
|
54
54
|
styleString),
|
package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.js
CHANGED
|
@@ -23,7 +23,7 @@ const sheet = createStyleSheet(style);
|
|
|
23
23
|
const styleString = sheet.toString();
|
|
24
24
|
export function PortalForgotPasswordView(props) {
|
|
25
25
|
const { states, callbacks, content } = props;
|
|
26
|
-
return (h("div", { class: sheet.classes.Wrapper },
|
|
26
|
+
return (h("div", { class: sheet.classes.Wrapper, part: "sqm-forgot-password-container" },
|
|
27
27
|
h("style", { type: "text/css" },
|
|
28
28
|
vanillaStyle,
|
|
29
29
|
styleString),
|
|
@@ -39,11 +39,11 @@ const sheet = createStyleSheet(style);
|
|
|
39
39
|
const styleString = sheet.toString();
|
|
40
40
|
export function PortalFrameView(props, children) {
|
|
41
41
|
const { data, notFullScreen } = props;
|
|
42
|
-
return (h("div", { style: { minHeight: notFullScreen ? "100%" : "100vh" }, class: sheet.classes.Frame },
|
|
42
|
+
return (h("div", { style: { minHeight: notFullScreen ? "100%" : "100vh" }, class: sheet.classes.Frame, part: "sqm-portal-frame-container" },
|
|
43
43
|
h("style", { type: "text/css" }, styleString),
|
|
44
|
-
h("div", { class: sheet.classes.HeaderWrapper },
|
|
44
|
+
h("div", { class: sheet.classes.HeaderWrapper, part: "sqm-portal-frame-header" },
|
|
45
45
|
data.header,
|
|
46
46
|
h("slot", { name: "sqm-navigation-menu" })),
|
|
47
47
|
children,
|
|
48
|
-
h("div", { class: sheet.classes.FooterWrapper }, data.footer)));
|
|
48
|
+
h("div", { class: sheet.classes.FooterWrapper, part: "sqm-portal-frame-footer" }, data.footer)));
|
|
49
49
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { AuthButtonsContainer, AuthColumn, AuthWrapper } from "../../global/mixins";
|
|
2
|
+
import { AuthButtonsContainer, AuthColumn, AuthWrapper, } from "../../global/mixins";
|
|
3
3
|
import { createStyleSheet } from "../../styling/JSS";
|
|
4
4
|
import { TextSpanView } from "../sqm-text-span/sqm-text-span-view";
|
|
5
5
|
const style = {
|
|
@@ -27,7 +27,7 @@ const sheet = createStyleSheet(style);
|
|
|
27
27
|
const styleString = sheet.toString();
|
|
28
28
|
export function PortalLoginView(props) {
|
|
29
29
|
const { states, callbacks, content } = props;
|
|
30
|
-
return (h("div", { class: sheet.classes.Wrapper },
|
|
30
|
+
return (h("div", { class: sheet.classes.Wrapper, part: "sqm-portal-login-container" },
|
|
31
31
|
h("style", { type: "text/css" },
|
|
32
32
|
vanillaStyle,
|
|
33
33
|
styleString),
|
|
@@ -56,7 +56,7 @@ export function PortalProfileView(props) {
|
|
|
56
56
|
type: "region",
|
|
57
57
|
})
|
|
58
58
|
: "";
|
|
59
|
-
return (h("div", { class: sheet.classes.Container },
|
|
59
|
+
return (h("div", { class: sheet.classes.Container, part: "sqm-portal-profile-container" },
|
|
60
60
|
h("style", { type: "text/css" }, styleString),
|
|
61
61
|
h(TextSpanView, Object.assign({}, { type: "h1" }), text.editProfileHeader),
|
|
62
62
|
h(TextSpanView, Object.assign({}, { type: "h2" }), text.editProfileSubHeader),
|
|
@@ -36,7 +36,7 @@ export function PortalRegisterView(props) {
|
|
|
36
36
|
if (states.error) {
|
|
37
37
|
window.scrollTo({ top: 0, left: 0, behavior: "smooth" });
|
|
38
38
|
}
|
|
39
|
-
return (h("div", { class: sheet.classes.Wrapper },
|
|
39
|
+
return (h("div", { class: sheet.classes.Wrapper, part: "sqm-portal-register-container" },
|
|
40
40
|
h("style", { type: "text/css" },
|
|
41
41
|
vanillaStyle,
|
|
42
42
|
styleString),
|
package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form-view.js
CHANGED
|
@@ -36,7 +36,7 @@ export function PortalRegistrationFormView(props) {
|
|
|
36
36
|
if (states.error) {
|
|
37
37
|
window.scrollTo({ top: 0, left: 0, behavior: "smooth" });
|
|
38
38
|
}
|
|
39
|
-
return (h("div", { class: sheet.classes.Wrapper },
|
|
39
|
+
return (h("div", { class: sheet.classes.Wrapper, part: "sqm-portal-registration-container" },
|
|
40
40
|
h("style", { type: "text/css" },
|
|
41
41
|
vanillaStyle,
|
|
42
42
|
styleString),
|
|
@@ -22,7 +22,7 @@ const styleString = sheet.toString();
|
|
|
22
22
|
export function PortalVerifyEmailView(props) {
|
|
23
23
|
const { states, data, callbacks } = props;
|
|
24
24
|
if (states.verified) {
|
|
25
|
-
return (h("div", { class: sheet.classes.Wrapper },
|
|
25
|
+
return (h("div", { class: sheet.classes.Wrapper, part: "sqm-portal-verify-email-container" },
|
|
26
26
|
h("style", { type: "text/css" },
|
|
27
27
|
vanillaStyle,
|
|
28
28
|
styleString),
|
|
@@ -34,11 +34,11 @@ export function ProgramExplainerView(props, children) {
|
|
|
34
34
|
display: block;
|
|
35
35
|
}
|
|
36
36
|
}`;
|
|
37
|
-
return (h("div", { class: sheet.classes.Container },
|
|
37
|
+
return (h("div", { class: sheet.classes.Container, part: "sqm-program-explainer-container" },
|
|
38
38
|
h("style", { type: "text/css" },
|
|
39
39
|
styleString,
|
|
40
40
|
vanillaStyle),
|
|
41
41
|
h("div", { class: sheet.classes.Header },
|
|
42
|
-
h("div", { class: sheet.classes.Header }, props.header)),
|
|
43
|
-
h("div", { class: sheet.classes.Grid }, children)));
|
|
42
|
+
h("div", { class: sheet.classes.Header, part: "sqm-program-explainer-header" }, props.header)),
|
|
43
|
+
h("div", { class: sheet.classes.Grid, part: "sqm-program-explainer-grid-container" }, children)));
|
|
44
44
|
}
|
package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step-view.js
CHANGED
|
@@ -61,11 +61,11 @@ export function ProgramExplainerStepView(props) {
|
|
|
61
61
|
display: block;
|
|
62
62
|
}
|
|
63
63
|
}`;
|
|
64
|
-
return (h("div", { class: sheet.classes.Container },
|
|
64
|
+
return (h("div", { class: sheet.classes.Container, part: "sqm-program-explainer-step-container" },
|
|
65
65
|
h("style", { type: "text/css" }, styleString),
|
|
66
|
-
h("div", null, props.imageUrl ? (h("img", { class: sheet.classes.Media, src: props.imageUrl })) : (h("div", { class: sheet.classes.Media },
|
|
66
|
+
h("div", null, props.imageUrl ? (h("img", { class: sheet.classes.Media, src: props.imageUrl, part: "sqm-program-explainer-step-media" })) : (h("div", { class: sheet.classes.Media, part: "sqm-program-explainer-step-media" },
|
|
67
67
|
h("sl-icon", { name: props.icon })))),
|
|
68
68
|
h("div", { class: sheet.classes.Text },
|
|
69
|
-
h("div", { class: sheet.classes.Header }, props.header),
|
|
70
|
-
h("div", { class: sheet.classes.Description }, props.description))));
|
|
69
|
+
h("div", { class: sheet.classes.Header, part: "sqm-program-explainer-step-header" }, props.header),
|
|
70
|
+
h("div", { class: sheet.classes.Description, part: "sqm-program-explainer-step-description" }, props.description))));
|
|
71
71
|
}
|
|
@@ -58,6 +58,18 @@ export const FlippedSlots = () => {
|
|
|
58
58
|
timeline("right", 3),
|
|
59
59
|
sharebutton("left")));
|
|
60
60
|
};
|
|
61
|
+
export const WithHeader = () => {
|
|
62
|
+
return (h("sqm-referral-card", null,
|
|
63
|
+
h("h3", { slot: "header" }, "Header slot content"),
|
|
64
|
+
timeline("right", 3),
|
|
65
|
+
sharebutton("left")));
|
|
66
|
+
};
|
|
67
|
+
export const WithFooter = () => {
|
|
68
|
+
return (h("sqm-referral-card", null,
|
|
69
|
+
timeline("right", 3),
|
|
70
|
+
sharebutton("left"),
|
|
71
|
+
h("sqm-portal-footer", { slot: "footer" })));
|
|
72
|
+
};
|
|
61
73
|
export const ReferralCardGeneric = () => {
|
|
62
74
|
return (h("sqm-referral-card", { "vertical-alignment": "center" },
|
|
63
75
|
h("sqm-portal-container", { slot: "left", gap: "x-small" },
|
|
@@ -2,10 +2,20 @@ import { h } from "@stencil/core";
|
|
|
2
2
|
import { createStyleSheet } from "../../styling/JSS";
|
|
3
3
|
const style = {
|
|
4
4
|
Container: {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
border: "1px solid var(--sl-color-neutral-300)",
|
|
6
|
+
borderRadius: "var(--sl-border-radius-large)",
|
|
7
7
|
color: "var(--sl-color-neutral-900)",
|
|
8
8
|
background: "var(--sl-color-neutral-0)",
|
|
9
|
+
},
|
|
10
|
+
EndContainer: {
|
|
11
|
+
display: "flex",
|
|
12
|
+
flexDirection: "column",
|
|
13
|
+
alignItems: "center",
|
|
14
|
+
padding: "0 var(--sl-spacing-large)",
|
|
15
|
+
},
|
|
16
|
+
ColumnContainer: {
|
|
17
|
+
"& p": { margin: "0" },
|
|
18
|
+
display: "flex",
|
|
9
19
|
"& .left": {
|
|
10
20
|
boxSizing: "border-box",
|
|
11
21
|
width: "50%",
|
|
@@ -24,8 +34,6 @@ const style = {
|
|
|
24
34
|
width: "100%",
|
|
25
35
|
},
|
|
26
36
|
},
|
|
27
|
-
border: "1px solid var(--sl-color-neutral-300)",
|
|
28
|
-
borderRadius: "var(--sl-border-radius-large)",
|
|
29
37
|
"@media (max-width: 499px)": {
|
|
30
38
|
flexDirection: "column",
|
|
31
39
|
border: "none",
|
|
@@ -40,15 +48,17 @@ const vanillaStyle = `
|
|
|
40
48
|
}
|
|
41
49
|
`;
|
|
42
50
|
export function ReferralCardView(props) {
|
|
43
|
-
return (h("div",
|
|
51
|
+
return (h("div", { part: "sqm-referral-card-container", class: sheet.classes.Container },
|
|
44
52
|
h("style", { type: "text/css" },
|
|
45
53
|
styleString,
|
|
46
54
|
vanillaStyle),
|
|
47
|
-
h("div", {
|
|
55
|
+
h("div", { class: sheet.classes.EndContainer }, props.slots.header),
|
|
56
|
+
h("div", { part: "sqm-columns", class: sheet.classes.ColumnContainer },
|
|
48
57
|
h("div", { class: "left", style: {
|
|
49
58
|
alignSelf: props.verticalAlignment,
|
|
50
59
|
} }, props.slots.left),
|
|
51
60
|
h("div", { class: "right", style: {
|
|
52
61
|
alignSelf: props.verticalAlignment,
|
|
53
|
-
} }, props.slots.right))
|
|
62
|
+
} }, props.slots.right)),
|
|
63
|
+
h("div", { class: sheet.classes.EndContainer }, props.slots.footer)));
|
|
54
64
|
}
|
|
@@ -5,7 +5,7 @@ import { ReferralCardView } from "./sqm-referral-card-view";
|
|
|
5
5
|
/**
|
|
6
6
|
* @uiName Referral Card
|
|
7
7
|
* @exampleGroup Referrals
|
|
8
|
-
* @slots [{"name":"left", "title":"Left Content"},{"name":"right", "title":"Right Content"}]
|
|
8
|
+
* @slots [{"name":"left", "title":"Left Content"},{"name":"right", "title":"Right Content"},{"name":"header", "title":"Header Content"},{"name":"footer", "title":"Footer Content"}]
|
|
9
9
|
* @example Referral Card - <sqm-referral-card vertical-alignment="start"> <sqm-portal-container gap="large" slot="left" direction="column" display="grid" max-width="100%" padding="none" > <sqm-text >They’ll get a $50 credit towards a new account and you’ll get: </sqm-text> <sqm-timeline icon="circle"> <sqm-timeline-entry reward="$50" unit="visa giftcard" desc="Your friend purchases a Business plan" icon="circle" > </sqm-timeline-entry> <sqm-timeline-entry reward="$200" unit="visa giftcard" desc="Our sales team qualifies your friend as a good fit for our Enterprise plan" icon="circle" > </sqm-timeline-entry> <sqm-timeline-entry reward="$1000" unit="visa giftcard" desc="Your friend purchases an Enterprise plan" icon="circle" > </sqm-timeline-entry> </sqm-timeline> </sqm-portal-container> <sqm-portal-container gap="large" slot="right" direction="column" display="grid" max-width="100%" padding="none" > <sqm-text>Choose how you want to share: </sqm-text> <sqm-text> <sub>Your unique referral link:</sub> <sqm-share-link tooltip-text="Copied to Clipboard" tooltip-lifespan="1000" > </sqm-share-link> </sqm-text> <sqm-portal-container gap="x-small" direction="column" display="grid" max-width="100%" padding="none" > <sqm-share-button medium="email" icon-slot="prefix" size="medium" type="default" > Share via email </sqm-share-button> <sqm-share-button medium="linkedin" icon-slot="prefix" size="medium" type="default" > Share on LinkedIn </sqm-share-button> <sqm-share-button medium="twitter" icon-slot="prefix" size="medium" type="default" > Share on Twitter </sqm-share-button> </sqm-portal-container> </sqm-portal-container> </sqm-referral-card>
|
|
10
10
|
*/
|
|
11
11
|
export class ReferralCard {
|
|
@@ -25,6 +25,8 @@ export class ReferralCard {
|
|
|
25
25
|
const slots = {
|
|
26
26
|
left: h("slot", { name: "left" }),
|
|
27
27
|
right: h("slot", { name: "right" }),
|
|
28
|
+
header: h("slot", { name: "header" }),
|
|
29
|
+
footer: h("slot", { name: "footer" }),
|
|
28
30
|
};
|
|
29
31
|
return (h(ReferralCardView, Object.assign({}, getProps(this), { slots: slots }),
|
|
30
32
|
h("slot", null)));
|
package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js
CHANGED
|
@@ -121,7 +121,7 @@ export class ReferralTableRewardsCell {
|
|
|
121
121
|
h("style", { type: "text/css" }, styleString),
|
|
122
122
|
h("div", { slot: "summary", class: sheet.classes.DetailsContainer },
|
|
123
123
|
h(TextSpanView, { type: "p" },
|
|
124
|
-
h("span", { class: sheet.classes.BoldText }, reward.prettyValue)),
|
|
124
|
+
h("span", { part: "sqm-reward-cell-bold-text", class: sheet.classes.BoldText }, reward.prettyValue)),
|
|
125
125
|
h("div", { class: sheet.classes.BadgeContainer },
|
|
126
126
|
state === "PENDING" && reward.dateScheduledFor ? (h("sl-badge", { class: slBadgeType === "primary"
|
|
127
127
|
? sheet.classes.RedeemBadge
|
|
@@ -144,28 +144,28 @@ export class ReferralTableRewardsCell {
|
|
|
144
144
|
h(TextSpanView, { type: "p" },
|
|
145
145
|
this.rewardReceivedText,
|
|
146
146
|
" ",
|
|
147
|
-
h("span", { class: sheet.classes.BoldText }, DateTime.fromMillis(reward.dateGiven)
|
|
147
|
+
h("span", { class: sheet.classes.BoldText, part: "sqm-reward-cell-bold-text" }, DateTime.fromMillis(reward.dateGiven)
|
|
148
148
|
.setLocale(luxonLocale(this.locale))
|
|
149
149
|
.toLocaleString(DateTime.DATE_MED))))),
|
|
150
150
|
state === "EXPIRED" && reward.dateExpires && (h("div", null,
|
|
151
151
|
h(TextSpanView, { type: "p" },
|
|
152
152
|
statusText,
|
|
153
153
|
" ",
|
|
154
|
-
h("span", { class: sheet.classes.BoldText }, DateTime.fromMillis(reward.dateExpires)
|
|
154
|
+
h("span", { class: sheet.classes.BoldText, part: "sqm-reward-cell-bold-text" }, DateTime.fromMillis(reward.dateExpires)
|
|
155
155
|
.setLocale(luxonLocale(this.locale))
|
|
156
156
|
.toLocaleString(DateTime.DATE_MED))))),
|
|
157
157
|
state === "CANCELLED" && reward.dateCancelled && (h("div", null,
|
|
158
158
|
h(TextSpanView, { type: "p" },
|
|
159
159
|
statusText,
|
|
160
160
|
" ",
|
|
161
|
-
h("span", { class: sheet.classes.BoldText }, DateTime.fromMillis(reward.dateCancelled)
|
|
161
|
+
h("span", { class: sheet.classes.BoldText, part: "sqm-reward-cell-bold-text" }, DateTime.fromMillis(reward.dateCancelled)
|
|
162
162
|
.setLocale(luxonLocale(this.locale))
|
|
163
163
|
.toLocaleString(DateTime.DATE_MED))))),
|
|
164
164
|
state === "PENDING" && reward.dateScheduledFor && (h("div", null,
|
|
165
165
|
h(TextSpanView, { type: "p" },
|
|
166
166
|
statusText,
|
|
167
167
|
" ",
|
|
168
|
-
h("span", { class: sheet.classes.BoldText }, DateTime.fromMillis(reward.dateScheduledFor)
|
|
168
|
+
h("span", { class: sheet.classes.BoldText, part: "sqm-reward-cell-bold-text" }, DateTime.fromMillis(reward.dateScheduledFor)
|
|
169
169
|
.setLocale(luxonLocale(this.locale))
|
|
170
170
|
.toLocaleString(DateTime.DATE_MED))))),
|
|
171
171
|
" ",
|
|
@@ -173,13 +173,13 @@ export class ReferralTableRewardsCell {
|
|
|
173
173
|
h(TextSpanView, { type: "p" },
|
|
174
174
|
statusText,
|
|
175
175
|
" ",
|
|
176
|
-
h("span", { class: sheet.classes.BoldText }, DateTime.fromMillis(reward.dateExpires)
|
|
176
|
+
h("span", { class: sheet.classes.BoldText, part: "sqm-reward-cell-bold-text" }, DateTime.fromMillis(reward.dateExpires)
|
|
177
177
|
.setLocale(luxonLocale(this.locale))
|
|
178
178
|
.toLocaleString(DateTime.DATE_MED))))),
|
|
179
179
|
reward.fuelTankCode && (h("div", null,
|
|
180
180
|
this.fuelTankText,
|
|
181
181
|
" ",
|
|
182
|
-
h("span", { class: sheet.classes.BoldText }, reward.fuelTankCode))))));
|
|
182
|
+
h("span", { class: sheet.classes.BoldText, part: "sqm-reward-cell-bold-text" }, reward.fuelTankCode))))));
|
|
183
183
|
});
|
|
184
184
|
}
|
|
185
185
|
static get is() { return "sqm-referral-table-rewards-cell"; }
|