@saasquatch/mint-components 1.4.0 → 1.5.0-11
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/CHANGELOG.md +24 -48
- package/dist/cjs/{ShadowViewAddon-e9bacad0.js → ShadowViewAddon-475e00d3.js} +1 -1
- package/dist/cjs/{global-0c01d88f.js → global-89f66e76.js} +282 -70
- package/dist/cjs/{index.module-2925fe3b.js → index.module-c0bf9df0.js} +3 -1
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/mint-components.cjs.js +3 -3
- package/dist/cjs/{re-render-b1ad512d.js → re-render-124b56ee.js} +1 -1
- package/dist/cjs/sqm-asset-card.cjs.entry.js +1 -1
- package/dist/cjs/sqm-big-stat.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-divided-layout_26.cjs.entry.js → sqm-brand_38.cjs.entry.js} +4546 -777
- package/dist/cjs/sqm-card-feed-view-42f1c900.js +36 -0
- package/dist/cjs/sqm-card-feed.cjs.entry.js +33 -0
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-leaderboard-rank-view-48245b30.js → sqm-leaderboard-rank-view-510f16d3.js} +2 -2
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +3 -3
- package/dist/cjs/sqm-leaderboard.cjs.entry.js +2 -2
- package/dist/cjs/sqm-name-fields.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-navigation-sidebar-item-view-1bad646a.js → sqm-navigation-sidebar-item-view-a2bdcf05.js} +1 -1
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +2 -2
- package/dist/cjs/sqm-popup-container.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-email-verification-view-68b16f27.js → sqm-portal-email-verification-view-5093ac20.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +4 -11
- package/dist/cjs/{sqm-portal-footer-view-edeeebab.js → sqm-portal-footer-view-03408484.js} +1 -1
- package/dist/cjs/sqm-portal-footer.cjs.entry.js +3 -3
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +5 -17
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-profile-view-2b48529e.js → sqm-portal-profile-view-fa2db439.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +3 -3
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +1 -1
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +2 -10
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +3 -11
- package/dist/cjs/sqm-program-explainer-step-view-54424840.js +68 -0
- package/dist/cjs/sqm-program-explainer-step.cjs.entry.js +22 -0
- package/dist/cjs/sqm-program-explainer-view-db516613.js +60 -0
- package/dist/cjs/sqm-program-explainer.cjs.entry.js +23 -0
- package/dist/cjs/sqm-referral-table-column.cjs.entry.js +2 -2
- package/dist/cjs/sqm-referral-table-date-column.cjs.entry.js +2 -2
- package/dist/cjs/sqm-referral-table-rewards-column.cjs.entry.js +2 -2
- package/dist/cjs/sqm-referral-table-status-column.cjs.entry.js +2 -2
- package/dist/cjs/sqm-referral-table-user-column.cjs.entry.js +2 -2
- package/dist/cjs/sqm-share-code.cjs.entry.js +20 -1
- package/dist/cjs/{useDemoBigStat-d7a60992.js → useDemoBigStat-5d71bbdf.js} +119 -22
- package/dist/collection/collection-manifest.json +18 -3
- package/dist/collection/{stories → components/sqm-asset-card}/AssetCard.stories.js +2 -2
- package/dist/collection/{stories → components/sqm-big-stat}/BigStat.stories.js +10 -3
- package/dist/collection/{stories → components/sqm-big-stat}/UseBigStat.stories.js +7 -4
- package/dist/collection/components/sqm-big-stat/sqm-big-stat.js +1 -21
- package/dist/collection/components/sqm-big-stat/useBigStat.js +117 -21
- package/dist/collection/components/sqm-big-stat/useDemoBigStat.js +1 -0
- package/dist/collection/components/sqm-brand/SqmBrand.stories.js +93 -0
- package/dist/collection/components/sqm-brand/sqm-brand.js +97 -0
- package/dist/collection/components/sqm-card-feed/CardFeed.stories.js +74 -0
- package/dist/collection/components/sqm-card-feed/sqm-card-feed-view.js +32 -0
- package/dist/collection/components/sqm-card-feed/sqm-card-feed.js +83 -0
- package/dist/collection/{stories → components/sqm-divided-layout}/DividedLayout.stories.js +4 -4
- package/dist/collection/{stories → components/sqm-edit-profile}/EditProfileForm.stories.js +2 -2
- package/dist/collection/{stories → components/sqm-edit-profile}/UseEditProfile.stories.js +1 -1
- package/dist/collection/{stories → components/sqm-form-message}/FormMessage.stories.js +1 -1
- package/dist/collection/{stories → components/sqm-hero}/Hero.stories.js +2 -2
- package/dist/collection/{stories → components/sqm-leaderboard}/Leaderboard.stories.js +2 -2
- package/dist/collection/{stories → components/sqm-leaderboard}/UseLeaderboard.stories.js +3 -3
- package/dist/collection/{stories → components/sqm-leaderboard-rank}/LeaderboardRank.stories.js +2 -2
- package/dist/collection/{stories → components/sqm-name-fields}/NameFields.stories.js +2 -2
- package/dist/collection/{stories → components/sqm-navigation-sidebar}/NavigationSidebar.stories.js +3 -3
- package/dist/collection/{stories → components/sqm-navigation-sidebar-item}/SidebarItem.stories.js +2 -2
- package/dist/collection/{stories → components/sqm-password-field}/PasswordField.stories.js +1 -1
- package/dist/collection/{stories → components/sqm-portal-change-password}/ChangePassword.stories.js +3 -3
- package/dist/collection/{stories → components/sqm-portal-email-verification}/PortalEmailVerification.stories.js +3 -3
- package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification.js +0 -27
- package/dist/collection/components/sqm-portal-email-verification/usePortalEmailVerification.js +1 -2
- package/dist/collection/{stories → components/sqm-portal-footer}/PortalFooter.stories.js +2 -2
- package/dist/collection/{stories → components/sqm-portal-forgot-password}/PortalForgotPassword.stories.js +3 -7
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password.js +3 -55
- package/dist/collection/components/sqm-portal-forgot-password/usePortalForgotPassword.js +2 -4
- package/dist/collection/{stories → components/sqm-portal-frame}/PortalFrame.stories.js +2 -2
- package/dist/collection/{stories → components/sqm-portal-login}/PortalLogin.stories.js +2 -8
- package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +4 -59
- package/dist/collection/components/sqm-portal-login/usePortalLogin.js +2 -4
- package/dist/collection/{stories → components/sqm-portal-profile}/PortalProfile.stories.js +2 -2
- package/dist/collection/{stories → components/sqm-portal-register}/PortalRegister.stories.js +2 -7
- package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +2 -55
- package/dist/collection/components/sqm-portal-register/usePortalRegister.js +0 -3
- package/dist/collection/{stories → components/sqm-portal-reset-password}/PortalResetPassword.stories.js +3 -3
- package/dist/collection/components/sqm-portal-reset-password/sqm-portal-reset-password.js +1 -30
- package/dist/collection/components/sqm-portal-reset-password/usePortalResetPassword.js +1 -1
- package/dist/collection/{stories → components/sqm-portal-verify-email}/PortalVerifyEmail.stories.js +3 -3
- package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email.js +1 -30
- package/dist/collection/components/sqm-portal-verify-email/usePortalVerifyEmail.js +2 -2
- package/dist/collection/components/sqm-program-explainer/ProgramExplainer.stories.js +51 -0
- package/dist/collection/components/sqm-program-explainer/sqm-program-explainer-view.js +56 -0
- package/dist/collection/components/sqm-program-explainer/sqm-program-explainer.js +177 -0
- package/dist/collection/components/sqm-program-explainer-step/ProgramExplainerStep.stories.js +15 -0
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step-view.js +74 -0
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step.js +123 -0
- package/dist/collection/{stories → components/sqm-program-menu}/ProgramMenu.stories.js +2 -2
- package/dist/collection/{stories → components/sqm-referral-iframe}/ReferralIframe.stories.js +2 -2
- package/dist/collection/{stories → components/sqm-referral-table}/ReferralTable.stories.js +3 -2
- package/dist/collection/{stories → components/sqm-referral-table}/ReferralTableCell.stories.js +2 -1
- package/dist/collection/{stories → components/sqm-referral-table}/ReferralTableRewardsCell.stories.js +2 -1
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-column.js +1 -1
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-date-column.js +1 -1
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js +1 -1
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-status-column.js +1 -1
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-user-column.js +1 -1
- package/dist/collection/components/sqm-referral-table/useReferralTable.js +2 -2
- package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeList.stories.js +22 -0
- package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeListData.js +259 -0
- package/dist/collection/components/sqm-reward-exchange-list/SVGs.js +27 -0
- package/dist/collection/components/sqm-reward-exchange-list/UseRewardExchangeList.stories.js +143 -0
- package/dist/collection/components/sqm-reward-exchange-list/assets/Reward-icon.png +0 -0
- package/dist/collection/components/sqm-reward-exchange-list/assets/placeholder.png +0 -0
- package/dist/collection/components/sqm-reward-exchange-list/progressBar.js +64 -0
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +509 -0
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +490 -0
- package/dist/collection/components/sqm-reward-exchange-list/useRewardExchangeList.js +193 -0
- package/dist/collection/components/sqm-rewards-table/UseRewardsTable.stories.js +59 -0
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-date-cell.js +43 -0
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-rewards-cell.js +160 -0
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.js +81 -0
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.js +84 -0
- package/dist/collection/components/sqm-rewards-table/columns/RewardTableColumn.js +1 -0
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.js +130 -0
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.js +118 -0
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.js +145 -0
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.js +117 -0
- package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +222 -0
- package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +215 -0
- package/dist/collection/{stories → components/sqm-router}/Router.stories.js +1 -1
- package/dist/collection/{stories → components/sqm-share-button}/ShareButton.stories.js +2 -2
- package/dist/collection/{stories → components/sqm-share-button}/UseShareButton.stories.js +2 -2
- package/dist/collection/components/sqm-share-code/useShareCode.js +20 -1
- package/dist/collection/{stories → components/sqm-share-link}/ShareLink.stories.js +2 -2
- package/dist/collection/{stories → components/sqm-share-link}/UseShareLink.stories.js +3 -3
- package/dist/collection/components/sqm-share-link/useShareLink.js +20 -1
- package/dist/collection/components/sqm-stencilbook/AutoColor.js +49 -0
- package/dist/collection/components/sqm-stencilbook/CucumberAddon.js +3 -1
- package/dist/collection/components/sqm-stencilbook/Matrix.js +66 -0
- package/dist/collection/components/sqm-stencilbook/Resizer.js +26 -0
- package/dist/collection/components/sqm-stencilbook/Themes.js +44 -0
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +95 -38
- package/dist/collection/components/sqm-task-card/SVGs.js +14 -0
- package/dist/collection/components/sqm-task-card/TaskCard.stories.js +424 -0
- package/dist/collection/components/sqm-task-card/UseTaskCard.stories.js +41 -0
- package/dist/collection/components/sqm-task-card/progress-bar/SVGs.js +8 -0
- package/dist/collection/components/sqm-task-card/progress-bar/progress-bar-view.js +370 -0
- package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +240 -0
- package/dist/collection/components/sqm-task-card/sqm-task-card.js +443 -0
- package/dist/collection/{stories → components/sqm-user-name}/UserName.stories.js +3 -3
- package/dist/collection/components/sqm-user-name/sqm-user-name.js +1 -1
- package/dist/collection/fonts/GoogleFonts.js +12 -0
- package/dist/collection/global/styles.js +281 -69
- package/dist/collection/global/styles.ts +281 -69
- package/dist/collection/stories/NewPortal.stories.js +15 -15
- package/dist/collection/tables/GenericTableView.js +51 -0
- package/dist/collection/tables/TableSlots.js +30 -0
- package/dist/collection/{components/sqm-referral-table → tables}/re-render.js +0 -0
- package/dist/collection/{components/sqm-referral-table → tables}/sqm-table-cell.js +0 -0
- package/dist/collection/{components/sqm-referral-table → tables}/sqm-table-row.js +0 -0
- package/dist/collection/{components/sqm-referral-table → tables}/useChildElements.js +0 -0
- package/dist/esm/{ShadowViewAddon-5f66de48.js → ShadowViewAddon-558fabb7.js} +1 -1
- package/dist/esm/{global-0fcfbedf.js → global-e0e25c22.js} +282 -70
- package/dist/esm/{index.module-1e92a7a3.js → index.module-eb50a8d2.js} +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/mint-components.js +3 -3
- package/dist/esm/{re-render-b8468637.js → re-render-6d5b856e.js} +1 -1
- package/dist/esm/sqm-asset-card.entry.js +1 -1
- package/dist/esm/sqm-big-stat.entry.js +2 -2
- package/dist/esm/{sqm-divided-layout_26.entry.js → sqm-brand_38.entry.js} +5514 -1757
- package/dist/esm/sqm-card-feed-view-b63057a6.js +34 -0
- package/dist/esm/sqm-card-feed.entry.js +29 -0
- package/dist/esm/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm/{sqm-leaderboard-rank-view-fd7d7f42.js → sqm-leaderboard-rank-view-cd1e8962.js} +2 -2
- package/dist/esm/sqm-leaderboard-rank.entry.js +3 -3
- package/dist/esm/sqm-leaderboard.entry.js +2 -2
- package/dist/esm/sqm-name-fields.entry.js +1 -1
- package/dist/esm/{sqm-navigation-sidebar-item-view-a48bca9b.js → sqm-navigation-sidebar-item-view-2d8c368c.js} +1 -1
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +2 -2
- package/dist/esm/sqm-popup-container.entry.js +1 -1
- package/dist/esm/{sqm-portal-email-verification-view-6cc56c87.js → sqm-portal-email-verification-view-2af31979.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +4 -11
- package/dist/esm/{sqm-portal-footer-view-8a1128d5.js → sqm-portal-footer-view-60cd9ae5.js} +1 -1
- package/dist/esm/sqm-portal-footer.entry.js +3 -3
- package/dist/esm/sqm-portal-forgot-password.entry.js +5 -17
- package/dist/esm/sqm-portal-logout.entry.js +1 -1
- package/dist/esm/{sqm-portal-profile-view-4acf74a5.js → sqm-portal-profile-view-f1deea0f.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +3 -3
- package/dist/esm/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm/sqm-portal-reset-password.entry.js +2 -10
- package/dist/esm/sqm-portal-verify-email.entry.js +3 -11
- package/dist/esm/sqm-program-explainer-step-view-7c0d5f71.js +66 -0
- package/dist/esm/sqm-program-explainer-step.entry.js +18 -0
- package/dist/esm/sqm-program-explainer-view-ab291eb4.js +58 -0
- package/dist/esm/sqm-program-explainer.entry.js +19 -0
- package/dist/esm/sqm-referral-table-column.entry.js +2 -2
- package/dist/esm/sqm-referral-table-date-column.entry.js +2 -2
- package/dist/esm/sqm-referral-table-rewards-column.entry.js +2 -2
- package/dist/esm/sqm-referral-table-status-column.entry.js +2 -2
- package/dist/esm/sqm-referral-table-user-column.entry.js +2 -2
- package/dist/esm/sqm-share-code.entry.js +20 -1
- package/dist/esm/{useDemoBigStat-5557504e.js → useDemoBigStat-d227b2f9.js} +119 -22
- package/dist/esm-es5/{ShadowViewAddon-5f66de48.js → ShadowViewAddon-558fabb7.js} +1 -1
- package/dist/esm-es5/{global-0fcfbedf.js → global-e0e25c22.js} +2 -2
- package/dist/esm-es5/{index.module-1e92a7a3.js → index.module-eb50a8d2.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{re-render-b8468637.js → re-render-6d5b856e.js} +1 -1
- package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat.entry.js +1 -1
- package/dist/esm-es5/sqm-brand_38.entry.js +1 -0
- package/dist/esm-es5/sqm-card-feed-view-b63057a6.js +1 -0
- package/dist/esm-es5/sqm-card-feed.entry.js +1 -0
- package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm-es5/{sqm-leaderboard-rank-view-fd7d7f42.js → sqm-leaderboard-rank-view-cd1e8962.js} +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-leaderboard.entry.js +1 -1
- package/dist/esm-es5/sqm-name-fields.entry.js +1 -1
- package/dist/esm-es5/{sqm-navigation-sidebar-item-view-a48bca9b.js → sqm-navigation-sidebar-item-view-2d8c368c.js} +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-6cc56c87.js → sqm-portal-email-verification-view-2af31979.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-footer-view-8a1128d5.js → sqm-portal-footer-view-60cd9ae5.js} +1 -1
- package/dist/esm-es5/sqm-portal-footer.entry.js +1 -1
- 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-4acf74a5.js → sqm-portal-profile-view-f1deea0f.js} +1 -1
- 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-reset-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm-es5/sqm-program-explainer-step-view-7c0d5f71.js +1 -0
- package/dist/esm-es5/sqm-program-explainer-step.entry.js +1 -0
- package/dist/esm-es5/sqm-program-explainer-view-ab291eb4.js +1 -0
- package/dist/esm-es5/sqm-program-explainer.entry.js +1 -0
- package/dist/esm-es5/sqm-referral-table-column.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table-date-column.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table-rewards-column.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table-status-column.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table-user-column.entry.js +1 -1
- package/dist/esm-es5/sqm-share-code.entry.js +1 -1
- package/dist/esm-es5/useDemoBigStat-d227b2f9.js +1 -0
- package/dist/mint-components/assets/Reward-icon.png +0 -0
- package/dist/mint-components/assets/placeholder.png +0 -0
- package/dist/mint-components/global/styles.ts +281 -69
- package/dist/mint-components/mint-components.css +1 -0
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-3452bdae.system.js → p-02dc36a4.system.js} +1 -1
- package/dist/mint-components/{p-3e3dad7a.system.js → p-03e93c82.system.js} +1 -1
- package/dist/mint-components/p-046c45b1.entry.js +1 -0
- package/dist/mint-components/p-046d9056.system.js +1 -0
- package/dist/mint-components/p-0d0ec6fd.system.entry.js +1 -0
- package/dist/mint-components/p-0d8b2757.system.entry.js +1 -0
- package/dist/mint-components/{p-18aa175f.system.js → p-0e8ae7e3.system.js} +2 -2
- package/dist/mint-components/p-0e95b67b.js +1 -0
- package/dist/mint-components/p-106740a1.system.entry.js +1 -0
- package/dist/mint-components/{p-965e34ab.entry.js → p-1705e549.entry.js} +1 -1
- package/dist/mint-components/{p-51cfdd14.js → p-1f95b411.js} +1 -1
- package/dist/mint-components/p-1fa2a689.js +1 -0
- package/dist/mint-components/{p-9ff0425e.system.entry.js → p-2027edc0.system.entry.js} +1 -1
- package/dist/mint-components/p-20c95798.entry.js +1 -0
- package/dist/mint-components/{p-e50839df.entry.js → p-21b4044a.entry.js} +1 -1
- package/dist/mint-components/{p-d513229d.js → p-221bd06e.js} +1 -1
- package/dist/mint-components/p-2338162a.entry.js +1 -0
- package/dist/mint-components/{p-9ff118a2.system.entry.js → p-24fa8920.system.entry.js} +1 -1
- package/dist/mint-components/p-29ee7d11.system.entry.js +1 -0
- package/dist/mint-components/{p-64759dda.system.js → p-2e63dcfd.system.js} +1 -1
- package/dist/mint-components/{p-743882c6.entry.js → p-3143cce4.entry.js} +1 -1
- package/dist/mint-components/{p-4b6c316d.entry.js → p-34112d74.entry.js} +1 -1
- package/dist/mint-components/p-376a0b37.js +1 -0
- package/dist/mint-components/p-40e83a85.system.js +1 -0
- package/dist/mint-components/{p-337a3d6b.system.entry.js → p-46493de5.system.entry.js} +1 -1
- package/dist/mint-components/p-4658d225.system.entry.js +1 -0
- package/dist/mint-components/{p-7d996b49.js → p-4b719313.js} +1 -1
- package/dist/mint-components/p-4fc31af7.system.js +1 -0
- package/dist/mint-components/{p-6cb81b77.entry.js → p-53e51b3f.entry.js} +1 -1
- package/dist/mint-components/p-57c26fbe.entry.js +1 -0
- package/dist/mint-components/p-5939212e.system.entry.js +1 -0
- package/dist/mint-components/{p-af2d886e.js → p-5d925bb6.js} +1 -1
- package/dist/mint-components/{p-27e23808.system.js → p-5e4e7f01.system.js} +1 -1
- package/dist/mint-components/{p-af1f8bd3.js → p-61acba7a.js} +1 -1
- package/dist/mint-components/{p-13605359.entry.js → p-65c79eec.entry.js} +1 -1
- package/dist/mint-components/{p-d55abc13.entry.js → p-759d3800.entry.js} +2 -2
- package/dist/mint-components/p-760762d3.entry.js +13 -0
- package/dist/mint-components/p-7cdbe82a.entry.js +1 -0
- package/dist/mint-components/{p-9a3a0db5.system.entry.js → p-7ff22998.system.entry.js} +1 -1
- package/dist/mint-components/p-85efd952.entry.js +1 -0
- package/dist/mint-components/p-86255b95.entry.js +1 -0
- package/dist/mint-components/{p-b3880833.system.entry.js → p-88fdfd94.system.entry.js} +1 -1
- package/dist/mint-components/p-8a261335.system.entry.js +1 -0
- package/dist/mint-components/p-8b6f2ad8.system.entry.js +1 -0
- package/dist/mint-components/{p-d0cad85c.js → p-8fd8682c.js} +2 -2
- package/dist/mint-components/{p-70ca623f.system.entry.js → p-97b946c2.system.entry.js} +1 -1
- package/dist/mint-components/p-98a753b7.entry.js +372 -0
- package/dist/mint-components/{p-5fcd8687.entry.js → p-9be0cb19.entry.js} +1 -1
- package/dist/mint-components/{p-6156a7ac.system.entry.js → p-a0a26fc5.system.entry.js} +1 -1
- package/dist/mint-components/{p-8bfebd45.system.entry.js → p-a355eeaf.system.entry.js} +1 -1
- package/dist/mint-components/{p-036c5a7e.system.entry.js → p-a8246a50.system.entry.js} +1 -1
- package/dist/mint-components/{p-c47b83c3.entry.js → p-a831de18.entry.js} +1 -1
- package/dist/mint-components/{p-6ad110d3.js → p-a833dbb3.js} +1 -1
- package/dist/mint-components/p-a88a08bb.system.js +1 -0
- package/dist/mint-components/p-a9a6f205.entry.js +1 -0
- package/dist/mint-components/{p-624c5352.system.entry.js → p-aee83885.system.entry.js} +1 -1
- package/dist/mint-components/p-b86cbac3.system.entry.js +1 -0
- package/dist/mint-components/{p-602180a2.system.js → p-be3a0cc4.system.js} +1 -1
- package/dist/mint-components/{p-05a2640d.entry.js → p-c0f9d0b1.entry.js} +1 -1
- package/dist/mint-components/p-c65cfc9d.system.js +1 -0
- package/dist/mint-components/{p-991bd182.system.entry.js → p-ca40dbaa.system.entry.js} +1 -1
- package/dist/mint-components/p-cc189fc4.system.js +1 -0
- package/dist/mint-components/{p-cffc23c0.entry.js → p-cc652a53.entry.js} +1 -1
- package/dist/mint-components/p-d19d6012.js +235 -0
- package/dist/mint-components/p-d3c7dbfc.entry.js +1 -0
- package/dist/mint-components/{p-3772bae2.system.entry.js → p-d4a1bce9.system.entry.js} +1 -1
- package/dist/mint-components/{p-ced568fc.system.entry.js → p-d68f6b64.system.entry.js} +1 -1
- package/dist/mint-components/p-e36ff7fa.entry.js +1 -0
- package/dist/mint-components/{p-05a86906.entry.js → p-e608f340.entry.js} +1 -1
- package/dist/mint-components/{p-4068e47c.system.entry.js → p-e7cb4274.system.entry.js} +1 -1
- package/dist/mint-components/p-ef7f70f2.system.entry.js +1 -0
- package/dist/mint-components/{p-f16bae7a.system.entry.js → p-f20d9204.system.entry.js} +1 -1
- package/dist/mint-components/p-f79454fc.entry.js +1 -0
- package/dist/mint-components/{p-c84a5b33.js → p-f7f87338.js} +1 -1
- package/dist/mint-components/p-f8f125a7.system.js +1 -0
- package/dist/mint-components/{p-55210498.system.js → p-f9ada3d7.system.js} +1 -1
- package/dist/mint-components/{p-eddcf481.js → p-faf66fdb.js} +1 -1
- package/dist/mint-components/{p-6305419f.entry.js → p-fcd03042.entry.js} +1 -1
- package/dist/mint-components/{p-09afaaac.system.entry.js → p-fd281e6b.system.entry.js} +1 -1
- package/dist/types/{stories → components/sqm-asset-card}/AssetCard.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-big-stat}/BigStat.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-big-stat}/UseBigStat.stories.d.ts +6 -0
- package/dist/types/components/sqm-big-stat/sqm-big-stat-view.d.ts +1 -0
- package/dist/types/components/sqm-big-stat/sqm-big-stat.d.ts +0 -6
- package/dist/types/components/sqm-big-stat/useBigStat.d.ts +4 -1
- package/dist/types/components/sqm-brand/SqmBrand.stories.d.ts +7 -0
- package/dist/types/components/sqm-brand/sqm-brand.d.ts +23 -0
- package/dist/types/components/sqm-card-feed/CardFeed.stories.d.ts +5 -0
- package/dist/types/components/sqm-card-feed/sqm-card-feed-view.d.ts +6 -0
- package/dist/types/components/sqm-card-feed/sqm-card-feed.d.ts +19 -0
- package/dist/types/{stories → components/sqm-divided-layout}/DividedLayout.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-edit-profile}/EditProfileForm.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-edit-profile}/UseEditProfile.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-form-message}/FormMessage.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-hero}/Hero.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-leaderboard}/Leaderboard.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-leaderboard}/UseLeaderboard.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-leaderboard-rank}/LeaderboardRank.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-name-fields}/NameFields.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-navigation-sidebar}/NavigationSidebar.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-navigation-sidebar-item}/SidebarItem.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-password-field}/PasswordField.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-portal-change-password}/ChangePassword.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-portal-email-verification}/PortalEmailVerification.stories.d.ts +0 -0
- package/dist/types/components/sqm-portal-email-verification/sqm-portal-email-verification.d.ts +0 -6
- package/dist/types/{stories → components/sqm-portal-footer}/PortalFooter.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-portal-forgot-password}/PortalForgotPassword.stories.d.ts +0 -0
- package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.d.ts +0 -1
- package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password.d.ts +0 -10
- package/dist/types/components/sqm-portal-forgot-password/usePortalForgotPassword.d.ts +1 -3
- package/dist/types/{stories → components/sqm-portal-frame}/PortalFrame.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-portal-login}/PortalLogin.stories.d.ts +0 -0
- package/dist/types/components/sqm-portal-login/sqm-portal-login-view.d.ts +0 -2
- package/dist/types/components/sqm-portal-login/sqm-portal-login.d.ts +0 -8
- package/dist/types/components/sqm-portal-login/usePortalLogin.d.ts +3 -3
- package/dist/types/{stories → components/sqm-portal-profile}/PortalProfile.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-portal-register}/PortalRegister.stories.d.ts +0 -0
- package/dist/types/components/sqm-portal-register/sqm-portal-register-view.d.ts +0 -1
- package/dist/types/components/sqm-portal-register/sqm-portal-register.d.ts +0 -10
- package/dist/types/components/sqm-portal-register/usePortalRegister.d.ts +0 -1
- package/dist/types/{stories → components/sqm-portal-reset-password}/PortalResetPassword.stories.d.ts +0 -0
- package/dist/types/components/sqm-portal-reset-password/sqm-portal-reset-password.d.ts +0 -8
- package/dist/types/{stories → components/sqm-portal-verify-email}/PortalVerifyEmail.stories.d.ts +0 -0
- package/dist/types/components/sqm-portal-verify-email/sqm-portal-verify-email.d.ts +0 -8
- package/dist/types/components/sqm-portal-verify-email/usePortalVerifyEmail.d.ts +1 -2
- package/dist/types/components/sqm-program-explainer/ProgramExplainer.stories.d.ts +7 -0
- package/dist/types/components/sqm-program-explainer/sqm-program-explainer-view.d.ts +11 -0
- package/dist/types/components/sqm-program-explainer/sqm-program-explainer.d.ts +41 -0
- package/dist/types/components/sqm-program-explainer-step/ProgramExplainerStep.stories.d.ts +5 -0
- package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step-view.d.ts +8 -0
- package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step.d.ts +29 -0
- package/dist/types/{stories → components/sqm-program-menu}/ProgramMenu.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-referral-iframe}/ReferralIframe.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-referral-table}/ReferralTable.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-referral-table}/ReferralTableCell.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-referral-table}/ReferralTableRewardsCell.stories.d.ts +0 -0
- package/dist/types/components/sqm-reward-exchange-list/RewardExchangeList.stories.d.ts +15 -0
- package/dist/types/components/sqm-reward-exchange-list/RewardExchangeListData.d.ts +451 -0
- package/dist/types/components/sqm-reward-exchange-list/SVGs.d.ts +5 -0
- package/dist/types/components/sqm-reward-exchange-list/UseRewardExchangeList.stories.d.ts +28 -0
- package/dist/types/components/sqm-reward-exchange-list/progressBar.d.ts +4 -0
- package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.d.ts +28 -0
- package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list.d.ts +77 -0
- package/dist/types/components/sqm-reward-exchange-list/useRewardExchangeList.d.ts +60 -0
- package/dist/types/components/sqm-rewards-table/UseRewardsTable.stories.d.ts +16 -0
- package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-date-cell.d.ts +7 -0
- package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-rewards-cell.d.ts +5 -0
- package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.d.ts +4 -0
- package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.d.ts +6 -0
- package/dist/types/components/sqm-rewards-table/columns/RewardTableColumn.d.ts +5 -0
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.d.ts +25 -0
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.d.ts +19 -0
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.d.ts +23 -0
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.d.ts +19 -0
- package/dist/types/components/sqm-rewards-table/sqm-rewards-table.d.ts +32 -0
- package/dist/types/components/sqm-rewards-table/useRewardsTable.d.ts +5 -0
- package/dist/types/{stories → components/sqm-router}/Router.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-share-button}/ShareButton.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-share-button}/UseShareButton.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-share-link}/ShareLink.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-share-link}/UseShareLink.stories.d.ts +0 -0
- package/dist/types/components/sqm-stencilbook/AutoColor.d.ts +8 -0
- package/dist/types/components/sqm-stencilbook/Matrix.d.ts +11 -0
- package/dist/types/components/sqm-stencilbook/Resizer.d.ts +3 -0
- package/dist/types/components/sqm-stencilbook/Themes.d.ts +17 -0
- package/dist/types/components/sqm-task-card/SVGs.d.ts +3 -0
- package/dist/types/components/sqm-task-card/TaskCard.stories.d.ts +20 -0
- package/dist/types/components/sqm-task-card/UseTaskCard.stories.d.ts +10 -0
- package/dist/types/components/sqm-task-card/progress-bar/SVGs.d.ts +1 -0
- package/dist/types/components/sqm-task-card/progress-bar/progress-bar-view.d.ts +12 -0
- package/dist/types/components/sqm-task-card/sqm-task-card-view.d.ts +18 -0
- package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +80 -0
- package/dist/types/components/sqm-user-name/UserName.stories.d.ts +6 -0
- package/dist/types/components/sqm-user-name/sqm-user-name.d.ts +1 -1
- package/dist/types/components.d.ts +769 -96
- package/dist/types/fonts/GoogleFonts.d.ts +9 -0
- package/dist/types/global/styles.d.ts +1 -1
- package/dist/types/saasquatch.d.ts +34 -0
- package/dist/types/tables/GenericTableView.d.ts +29 -0
- package/dist/types/tables/TableSlots.d.ts +9 -0
- package/dist/types/{components/sqm-referral-table → tables}/re-render.d.ts +0 -0
- package/dist/types/{components/sqm-referral-table → tables}/sqm-table-cell.d.ts +0 -0
- package/dist/types/{components/sqm-referral-table → tables}/sqm-table-row.d.ts +0 -0
- package/dist/types/{components/sqm-referral-table → tables}/useChildElements.d.ts +0 -0
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +2 -1
- package/dist/esm-es5/sqm-divided-layout_26.entry.js +0 -1
- package/dist/esm-es5/useDemoBigStat-5557504e.js +0 -1
- package/dist/mint-components/p-10a98629.entry.js +0 -1
- package/dist/mint-components/p-112d42ab.system.entry.js +0 -1
- package/dist/mint-components/p-192539d2.entry.js +0 -1
- package/dist/mint-components/p-2f333f89.system.entry.js +0 -1
- package/dist/mint-components/p-528aecd1.entry.js +0 -1
- package/dist/mint-components/p-54707082.system.js +0 -1
- package/dist/mint-components/p-5c89c2ec.entry.js +0 -230
- package/dist/mint-components/p-606506d6.system.entry.js +0 -1
- package/dist/mint-components/p-6815e7ba.entry.js +0 -1
- package/dist/mint-components/p-756a5e6f.system.js +0 -1
- package/dist/mint-components/p-768b9014.system.entry.js +0 -1
- package/dist/mint-components/p-7cf335a0.entry.js +0 -1
- package/dist/mint-components/p-86b66e5c.entry.js +0 -1
- package/dist/mint-components/p-942723ad.entry.js +0 -1
- package/dist/mint-components/p-a646db48.system.entry.js +0 -1
- package/dist/mint-components/p-b3cddcca.entry.js +0 -1
- package/dist/mint-components/p-b63744fe.js +0 -227
- package/dist/mint-components/p-c5c029b8.system.js +0 -1
- package/dist/mint-components/p-c90978f4.system.entry.js +0 -1
- package/dist/mint-components/p-d1cea1b1.system.js +0 -1
- package/dist/mint-components/p-d3171b36.system.entry.js +0 -1
- package/dist/mint-components/p-de3311bf.entry.js +0 -9
- package/dist/types/stories/UserName.stories.d.ts +0 -6
|
@@ -14,12 +14,6 @@ export class PortalRegister {
|
|
|
14
14
|
* @uiName Page navigated to after registration
|
|
15
15
|
*/
|
|
16
16
|
this.nextPage = "/";
|
|
17
|
-
/**
|
|
18
|
-
* The page that users are redirected to from the verification email.
|
|
19
|
-
*
|
|
20
|
-
* @uiName Email redirection base path
|
|
21
|
-
*/
|
|
22
|
-
this.redirectPath = "/verifyEmail";
|
|
23
17
|
/**
|
|
24
18
|
* @uiName Label for email field
|
|
25
19
|
*/
|
|
@@ -56,10 +50,6 @@ export class PortalRegister {
|
|
|
56
50
|
* @uiName Heading label
|
|
57
51
|
*/
|
|
58
52
|
this.pageLabel = "Register";
|
|
59
|
-
/**
|
|
60
|
-
* @uiName Sign in button redirection path
|
|
61
|
-
*/
|
|
62
|
-
this.loginPath = "/login";
|
|
63
53
|
withHooks(this);
|
|
64
54
|
}
|
|
65
55
|
disconnectedCallback() { }
|
|
@@ -70,7 +60,7 @@ export class PortalRegister {
|
|
|
70
60
|
const content = {
|
|
71
61
|
formData: h("slot", { name: "formData" }),
|
|
72
62
|
secondaryButton: (h("slot", { name: "secondaryButton" },
|
|
73
|
-
h("sl-button", { type: "text", disabled: states.loading, onClick: () => navigation.push(
|
|
63
|
+
h("sl-button", { type: "text", disabled: states.loading, onClick: () => navigation.push("/login") }, this.loginLabel))),
|
|
74
64
|
emailLabel: this.emailLabel,
|
|
75
65
|
passwordLabel: this.passwordLabel,
|
|
76
66
|
submitLabel: this.submitLabel,
|
|
@@ -103,27 +93,6 @@ export class PortalRegister {
|
|
|
103
93
|
"reflect": false,
|
|
104
94
|
"defaultValue": "\"/\""
|
|
105
95
|
},
|
|
106
|
-
"redirectPath": {
|
|
107
|
-
"type": "string",
|
|
108
|
-
"mutable": false,
|
|
109
|
-
"complexType": {
|
|
110
|
-
"original": "string",
|
|
111
|
-
"resolved": "string",
|
|
112
|
-
"references": {}
|
|
113
|
-
},
|
|
114
|
-
"required": false,
|
|
115
|
-
"optional": false,
|
|
116
|
-
"docs": {
|
|
117
|
-
"tags": [{
|
|
118
|
-
"text": "Email redirection base path",
|
|
119
|
-
"name": "uiName"
|
|
120
|
-
}],
|
|
121
|
-
"text": "The page that users are redirected to from the verification email."
|
|
122
|
-
},
|
|
123
|
-
"attribute": "redirect-path",
|
|
124
|
-
"reflect": false,
|
|
125
|
-
"defaultValue": "\"/verifyEmail\""
|
|
126
|
-
},
|
|
127
96
|
"emailLabel": {
|
|
128
97
|
"type": "string",
|
|
129
98
|
"mutable": false,
|
|
@@ -313,33 +282,12 @@ export class PortalRegister {
|
|
|
313
282
|
"reflect": false,
|
|
314
283
|
"defaultValue": "\"Register\""
|
|
315
284
|
},
|
|
316
|
-
"loginPath": {
|
|
317
|
-
"type": "string",
|
|
318
|
-
"mutable": false,
|
|
319
|
-
"complexType": {
|
|
320
|
-
"original": "string",
|
|
321
|
-
"resolved": "string",
|
|
322
|
-
"references": {}
|
|
323
|
-
},
|
|
324
|
-
"required": false,
|
|
325
|
-
"optional": false,
|
|
326
|
-
"docs": {
|
|
327
|
-
"tags": [{
|
|
328
|
-
"text": "Sign in button redirection path",
|
|
329
|
-
"name": "uiName"
|
|
330
|
-
}],
|
|
331
|
-
"text": ""
|
|
332
|
-
},
|
|
333
|
-
"attribute": "login-path",
|
|
334
|
-
"reflect": false,
|
|
335
|
-
"defaultValue": "\"/login\""
|
|
336
|
-
},
|
|
337
285
|
"demoData": {
|
|
338
286
|
"type": "unknown",
|
|
339
287
|
"mutable": false,
|
|
340
288
|
"complexType": {
|
|
341
289
|
"original": "DemoData<PortalRegisterViewProps>",
|
|
342
|
-
"resolved": "{ states?: { error: string; loading: boolean; confirmPassword: boolean; hideInputs: boolean; validationState?: FormState; enablePasswordValidation?: boolean;
|
|
290
|
+
"resolved": "{ states?: { error: string; loading: boolean; confirmPassword: boolean; hideInputs: boolean; validationState?: FormState; enablePasswordValidation?: boolean; }; content?: { formData?: any; passwordField?: any; secondaryButton?: any; emailLabel?: string; passwordLabel?: string; submitLabel?: string; pageLabel?: string; confirmPasswordLabel: string; }; refs?: { formRef: any; }; }",
|
|
343
291
|
"references": {
|
|
344
292
|
"DemoData": {
|
|
345
293
|
"location": "import",
|
|
@@ -377,7 +325,6 @@ function useRegisterDemo(props) {
|
|
|
377
325
|
confirmPassword: true,
|
|
378
326
|
hideInputs: props.hideInputs || false,
|
|
379
327
|
customPasswordField: false,
|
|
380
|
-
loginPath: "/login",
|
|
381
328
|
},
|
|
382
329
|
callbacks: {
|
|
383
330
|
submit: async (_event) => {
|
|
@@ -47,12 +47,10 @@ export function usePortalRegister(props) {
|
|
|
47
47
|
delete formData.password;
|
|
48
48
|
delete formData.confirmPassword;
|
|
49
49
|
formData = { ...formData };
|
|
50
|
-
const redirectPath = props.redirectPath;
|
|
51
50
|
const variables = {
|
|
52
51
|
email,
|
|
53
52
|
password,
|
|
54
53
|
formData,
|
|
55
|
-
redirectPath,
|
|
56
54
|
};
|
|
57
55
|
try {
|
|
58
56
|
await request(variables);
|
|
@@ -102,7 +100,6 @@ export function usePortalRegister(props) {
|
|
|
102
100
|
validationState,
|
|
103
101
|
confirmPassword: props.confirmPassword,
|
|
104
102
|
hideInputs: props.hideInputs,
|
|
105
|
-
loginPath: props.loginPath,
|
|
106
103
|
},
|
|
107
104
|
callbacks: {
|
|
108
105
|
submit,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { PortalResetPasswordView, } from "
|
|
3
|
-
import scenario from "
|
|
2
|
+
import { PortalResetPasswordView, } from "./sqm-portal-reset-password-view";
|
|
3
|
+
import scenario from "./sqm-portal-reset-password.feature";
|
|
4
4
|
export default {
|
|
5
|
-
title: "Portal Reset Password",
|
|
5
|
+
title: "Components/Portal Reset Password",
|
|
6
6
|
parameters: {
|
|
7
7
|
scenario,
|
|
8
8
|
},
|
|
@@ -11,17 +11,9 @@ export class PortalResetPassword {
|
|
|
11
11
|
constructor() {
|
|
12
12
|
this.ignored = true;
|
|
13
13
|
/**
|
|
14
|
-
* The page that users are redirected to when the password reset succeeds.
|
|
15
|
-
*
|
|
16
14
|
* @uiName Next page path
|
|
17
15
|
*/
|
|
18
16
|
this.nextPage = "/";
|
|
19
|
-
/**
|
|
20
|
-
* The page that users are redirected to if the reset fails due to outdated password reset attempt.
|
|
21
|
-
*
|
|
22
|
-
* @uiName Failed page redirection path
|
|
23
|
-
*/
|
|
24
|
-
this.failedPage = "/";
|
|
25
17
|
/**
|
|
26
18
|
* @uiName Show confirm password
|
|
27
19
|
*/
|
|
@@ -81,33 +73,12 @@ export class PortalResetPassword {
|
|
|
81
73
|
"text": "Next page path",
|
|
82
74
|
"name": "uiName"
|
|
83
75
|
}],
|
|
84
|
-
"text": "
|
|
76
|
+
"text": ""
|
|
85
77
|
},
|
|
86
78
|
"attribute": "next-page",
|
|
87
79
|
"reflect": false,
|
|
88
80
|
"defaultValue": "\"/\""
|
|
89
81
|
},
|
|
90
|
-
"failedPage": {
|
|
91
|
-
"type": "string",
|
|
92
|
-
"mutable": false,
|
|
93
|
-
"complexType": {
|
|
94
|
-
"original": "string",
|
|
95
|
-
"resolved": "string",
|
|
96
|
-
"references": {}
|
|
97
|
-
},
|
|
98
|
-
"required": false,
|
|
99
|
-
"optional": false,
|
|
100
|
-
"docs": {
|
|
101
|
-
"tags": [{
|
|
102
|
-
"text": "Failed page redirection path",
|
|
103
|
-
"name": "uiName"
|
|
104
|
-
}],
|
|
105
|
-
"text": "The page that users are redirected to if the reset fails due to outdated password reset attempt."
|
|
106
|
-
},
|
|
107
|
-
"attribute": "failed-page",
|
|
108
|
-
"reflect": false,
|
|
109
|
-
"defaultValue": "\"/\""
|
|
110
|
-
},
|
|
111
82
|
"confirmPassword": {
|
|
112
83
|
"type": "boolean",
|
|
113
84
|
"mutable": false,
|
package/dist/collection/{stories → components/sqm-portal-verify-email}/PortalVerifyEmail.stories.js
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { PortalVerifyEmailView, } from "
|
|
3
|
-
import scenario from "
|
|
2
|
+
import { PortalVerifyEmailView, } from "./sqm-portal-verify-email-view";
|
|
3
|
+
import scenario from "./sqm-portal-verify-email.feature";
|
|
4
4
|
export default {
|
|
5
|
-
title: "Portal Verify Email",
|
|
5
|
+
title: "Components/Portal Verify Email",
|
|
6
6
|
parameters: {
|
|
7
7
|
scenario,
|
|
8
8
|
},
|
|
@@ -11,17 +11,9 @@ export class PortalVerifyEmail {
|
|
|
11
11
|
constructor() {
|
|
12
12
|
this.ignored = true;
|
|
13
13
|
/**
|
|
14
|
-
* The page that users are redirected to when the verification succeeds.
|
|
15
|
-
*
|
|
16
14
|
* @uiName Next page path
|
|
17
15
|
*/
|
|
18
16
|
this.nextPage = "/";
|
|
19
|
-
/**
|
|
20
|
-
* The page that users are redirected to if verification fails due to outdated verification attempt.
|
|
21
|
-
*
|
|
22
|
-
* @uiName Failed page redirection path
|
|
23
|
-
*/
|
|
24
|
-
this.failedPage = "/";
|
|
25
17
|
withHooks(this);
|
|
26
18
|
}
|
|
27
19
|
disconnectedCallback() { }
|
|
@@ -49,33 +41,12 @@ export class PortalVerifyEmail {
|
|
|
49
41
|
"text": "Next page path",
|
|
50
42
|
"name": "uiName"
|
|
51
43
|
}],
|
|
52
|
-
"text": "
|
|
44
|
+
"text": ""
|
|
53
45
|
},
|
|
54
46
|
"attribute": "next-page",
|
|
55
47
|
"reflect": false,
|
|
56
48
|
"defaultValue": "\"/\""
|
|
57
49
|
},
|
|
58
|
-
"failedPage": {
|
|
59
|
-
"type": "string",
|
|
60
|
-
"mutable": false,
|
|
61
|
-
"complexType": {
|
|
62
|
-
"original": "string",
|
|
63
|
-
"resolved": "string",
|
|
64
|
-
"references": {}
|
|
65
|
-
},
|
|
66
|
-
"required": false,
|
|
67
|
-
"optional": false,
|
|
68
|
-
"docs": {
|
|
69
|
-
"tags": [{
|
|
70
|
-
"text": "Failed page redirection path",
|
|
71
|
-
"name": "uiName"
|
|
72
|
-
}],
|
|
73
|
-
"text": "The page that users are redirected to if verification fails due to outdated verification attempt."
|
|
74
|
-
},
|
|
75
|
-
"attribute": "failed-page",
|
|
76
|
-
"reflect": false,
|
|
77
|
-
"defaultValue": "\"/\""
|
|
78
|
-
},
|
|
79
50
|
"demoData": {
|
|
80
51
|
"type": "unknown",
|
|
81
52
|
"mutable": false,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useEffect, useState } from "@saasquatch/universal-hooks";
|
|
2
2
|
import { navigation, useUserIdentity, useVerifyEmailMutation, } from "@saasquatch/component-boilerplate";
|
|
3
|
-
export function usePortalVerifyEmail({ nextPage
|
|
3
|
+
export function usePortalVerifyEmail({ nextPage }) {
|
|
4
4
|
var _a, _b, _c, _d, _e;
|
|
5
5
|
const [verified, setVerified] = useState(false);
|
|
6
6
|
const [disableContinue, setDisableContinue] = useState(true);
|
|
@@ -13,7 +13,7 @@ export function usePortalVerifyEmail({ nextPage, failedPage }) {
|
|
|
13
13
|
urlParams.delete("oobCode");
|
|
14
14
|
const failed = () => {
|
|
15
15
|
return navigation.push({
|
|
16
|
-
pathname:
|
|
16
|
+
pathname: "/",
|
|
17
17
|
search: urlParams.toString() && "?" + urlParams.toString(),
|
|
18
18
|
});
|
|
19
19
|
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { ProgramExplainerView } from "./sqm-program-explainer-view";
|
|
3
|
+
import { ProgramExplainerStepView } from "../sqm-program-explainer-step/sqm-program-explainer-step-view";
|
|
4
|
+
export default {
|
|
5
|
+
title: "Components/Program Explainer",
|
|
6
|
+
};
|
|
7
|
+
const props = {
|
|
8
|
+
header: "Klip Rewards",
|
|
9
|
+
headerColor: "black",
|
|
10
|
+
headerBackground: "#F3F0EC",
|
|
11
|
+
cardTitle: "Earn rewards with our loyalty program",
|
|
12
|
+
cardDescription: "Earn points by completing tasks like uploading your first video or sharing videos with friends. Use your points to redeem rewards like one free month of Klip Enterprise or two plane tickets to anywhere in North America.",
|
|
13
|
+
cardColor: "black",
|
|
14
|
+
cardBackground: "var(--sl-color-primary-100)",
|
|
15
|
+
};
|
|
16
|
+
const steps1 = {
|
|
17
|
+
cardTitle: "Invite your friends to Klip",
|
|
18
|
+
description: "Earn up to $1200 in rewards for each referral",
|
|
19
|
+
color: "white",
|
|
20
|
+
background: "#5B3EDA",
|
|
21
|
+
icon: "person-plus-fill",
|
|
22
|
+
};
|
|
23
|
+
const steps2 = {
|
|
24
|
+
cardTitle: "If your friend signs up for a Klip Business plan",
|
|
25
|
+
description: "Get a $50 VISA giftcard when they pay for their first month",
|
|
26
|
+
color: "black",
|
|
27
|
+
background: "#F3CC66",
|
|
28
|
+
icon: "server",
|
|
29
|
+
};
|
|
30
|
+
const steps3 = {
|
|
31
|
+
cardTitle: "If your friend signs up for a Klip Enterprise plan",
|
|
32
|
+
description: "Get up to $1200 in rewards - a $200 VISA giftcard when our sales team qualifies them as a good fit for Klip, and a $1000 VISA giftcard when they become a paying customer",
|
|
33
|
+
color: "black",
|
|
34
|
+
background: "#D3CCF5",
|
|
35
|
+
icon: "people-fill",
|
|
36
|
+
};
|
|
37
|
+
export const OneStep = () => {
|
|
38
|
+
return (h(ProgramExplainerView, Object.assign({}, props),
|
|
39
|
+
h(ProgramExplainerStepView, Object.assign({}, steps1))));
|
|
40
|
+
};
|
|
41
|
+
export const TwoSteps = () => {
|
|
42
|
+
return (h(ProgramExplainerView, Object.assign({}, props),
|
|
43
|
+
h(ProgramExplainerStepView, Object.assign({}, steps1)),
|
|
44
|
+
h(ProgramExplainerStepView, Object.assign({}, steps2))));
|
|
45
|
+
};
|
|
46
|
+
export const ThreeSteps = () => {
|
|
47
|
+
return (h(ProgramExplainerView, Object.assign({}, props),
|
|
48
|
+
h(ProgramExplainerStepView, Object.assign({}, steps1)),
|
|
49
|
+
h(ProgramExplainerStepView, Object.assign({}, steps2)),
|
|
50
|
+
h(ProgramExplainerStepView, Object.assign({}, steps3))));
|
|
51
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import jss from "jss";
|
|
3
|
+
import preset from "jss-preset-default";
|
|
4
|
+
export function ProgramExplainerView(props, children) {
|
|
5
|
+
const style = {
|
|
6
|
+
Container: {
|
|
7
|
+
display: "flex",
|
|
8
|
+
flexDirection: "row",
|
|
9
|
+
"@media (max-width: 768px)": {
|
|
10
|
+
flexDirection: "column",
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
Header: {
|
|
14
|
+
padding: "var(--sl-spacing-large)",
|
|
15
|
+
color: props.headerColor,
|
|
16
|
+
background: props.headerBackground,
|
|
17
|
+
},
|
|
18
|
+
Card: {
|
|
19
|
+
padding: "var(--sl-spacing-large)",
|
|
20
|
+
color: props.cardColor,
|
|
21
|
+
background: props.cardBackground,
|
|
22
|
+
},
|
|
23
|
+
Title: {
|
|
24
|
+
fontSize: "var(--sl-font-size-x-large)",
|
|
25
|
+
fontWeight: "var(--sl-font-weight-bold)",
|
|
26
|
+
lineHeight: "var(--sl-line-height-dense)",
|
|
27
|
+
},
|
|
28
|
+
Description: {
|
|
29
|
+
fontSize: "var(--sl-font-size-medium)",
|
|
30
|
+
marginTop: "var(--sl-spacing-x-small)",
|
|
31
|
+
},
|
|
32
|
+
};
|
|
33
|
+
jss.setup(preset());
|
|
34
|
+
const sheet = jss.createStyleSheet(style);
|
|
35
|
+
const styleString = sheet.toString();
|
|
36
|
+
const vanillaStyle = `
|
|
37
|
+
::slotted(*){
|
|
38
|
+
display: flex;
|
|
39
|
+
width: 100%;
|
|
40
|
+
}
|
|
41
|
+
@media (max-width: 768px) {
|
|
42
|
+
::slotted(*){
|
|
43
|
+
display: block;
|
|
44
|
+
}
|
|
45
|
+
}`;
|
|
46
|
+
return (h("div", null,
|
|
47
|
+
h("style", { type: "text/css" },
|
|
48
|
+
styleString,
|
|
49
|
+
vanillaStyle),
|
|
50
|
+
h("div", { class: sheet.classes.Header },
|
|
51
|
+
h("div", { class: sheet.classes.Title }, props.header)),
|
|
52
|
+
h("div", { class: sheet.classes.Container }, children),
|
|
53
|
+
h("div", { class: sheet.classes.Card },
|
|
54
|
+
h("div", { class: sheet.classes.Title }, props.cardTitle),
|
|
55
|
+
h("div", { class: sheet.classes.Description }, props.cardDescription))));
|
|
56
|
+
}
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import { withHooks } from "@saasquatch/stencil-hooks";
|
|
2
|
+
import { Component, h, Prop, State } from "@stencil/core";
|
|
3
|
+
import { getProps } from "../../utils/utils";
|
|
4
|
+
import { ProgramExplainerView } from "./sqm-program-explainer-view";
|
|
5
|
+
/**
|
|
6
|
+
* @uiName Program Explainer
|
|
7
|
+
*/
|
|
8
|
+
export class ProgramExplainer {
|
|
9
|
+
constructor() {
|
|
10
|
+
this.ignored = true;
|
|
11
|
+
withHooks(this);
|
|
12
|
+
}
|
|
13
|
+
disconnectedCallback() { }
|
|
14
|
+
render() {
|
|
15
|
+
return (h(ProgramExplainerView, Object.assign({}, getProps(this)),
|
|
16
|
+
h("slot", null)));
|
|
17
|
+
}
|
|
18
|
+
static get is() { return "sqm-program-explainer"; }
|
|
19
|
+
static get encapsulation() { return "shadow"; }
|
|
20
|
+
static get properties() { return {
|
|
21
|
+
"header": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"mutable": false,
|
|
24
|
+
"complexType": {
|
|
25
|
+
"original": "string",
|
|
26
|
+
"resolved": "string",
|
|
27
|
+
"references": {}
|
|
28
|
+
},
|
|
29
|
+
"required": false,
|
|
30
|
+
"optional": false,
|
|
31
|
+
"docs": {
|
|
32
|
+
"tags": [{
|
|
33
|
+
"text": "Header Text",
|
|
34
|
+
"name": "uiName"
|
|
35
|
+
}],
|
|
36
|
+
"text": ""
|
|
37
|
+
},
|
|
38
|
+
"attribute": "header",
|
|
39
|
+
"reflect": false
|
|
40
|
+
},
|
|
41
|
+
"headerColor": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"mutable": false,
|
|
44
|
+
"complexType": {
|
|
45
|
+
"original": "string",
|
|
46
|
+
"resolved": "string",
|
|
47
|
+
"references": {}
|
|
48
|
+
},
|
|
49
|
+
"required": false,
|
|
50
|
+
"optional": false,
|
|
51
|
+
"docs": {
|
|
52
|
+
"tags": [{
|
|
53
|
+
"text": "Header Text Color",
|
|
54
|
+
"name": "uiName"
|
|
55
|
+
}, {
|
|
56
|
+
"text": "color",
|
|
57
|
+
"name": "uiWidget"
|
|
58
|
+
}],
|
|
59
|
+
"text": ""
|
|
60
|
+
},
|
|
61
|
+
"attribute": "header-color",
|
|
62
|
+
"reflect": false
|
|
63
|
+
},
|
|
64
|
+
"headerBackground": {
|
|
65
|
+
"type": "string",
|
|
66
|
+
"mutable": false,
|
|
67
|
+
"complexType": {
|
|
68
|
+
"original": "string",
|
|
69
|
+
"resolved": "string",
|
|
70
|
+
"references": {}
|
|
71
|
+
},
|
|
72
|
+
"required": false,
|
|
73
|
+
"optional": false,
|
|
74
|
+
"docs": {
|
|
75
|
+
"tags": [{
|
|
76
|
+
"text": "Header Background Color",
|
|
77
|
+
"name": "uiName"
|
|
78
|
+
}, {
|
|
79
|
+
"text": "color",
|
|
80
|
+
"name": "uiWidget"
|
|
81
|
+
}],
|
|
82
|
+
"text": ""
|
|
83
|
+
},
|
|
84
|
+
"attribute": "header-background",
|
|
85
|
+
"reflect": false
|
|
86
|
+
},
|
|
87
|
+
"cardTitle": {
|
|
88
|
+
"type": "string",
|
|
89
|
+
"mutable": false,
|
|
90
|
+
"complexType": {
|
|
91
|
+
"original": "string",
|
|
92
|
+
"resolved": "string",
|
|
93
|
+
"references": {}
|
|
94
|
+
},
|
|
95
|
+
"required": false,
|
|
96
|
+
"optional": false,
|
|
97
|
+
"docs": {
|
|
98
|
+
"tags": [{
|
|
99
|
+
"text": "Card Title",
|
|
100
|
+
"name": "uiName"
|
|
101
|
+
}],
|
|
102
|
+
"text": ""
|
|
103
|
+
},
|
|
104
|
+
"attribute": "card-title",
|
|
105
|
+
"reflect": false
|
|
106
|
+
},
|
|
107
|
+
"cardDescription": {
|
|
108
|
+
"type": "string",
|
|
109
|
+
"mutable": false,
|
|
110
|
+
"complexType": {
|
|
111
|
+
"original": "string",
|
|
112
|
+
"resolved": "string",
|
|
113
|
+
"references": {}
|
|
114
|
+
},
|
|
115
|
+
"required": false,
|
|
116
|
+
"optional": false,
|
|
117
|
+
"docs": {
|
|
118
|
+
"tags": [{
|
|
119
|
+
"text": "Card Description",
|
|
120
|
+
"name": "uiName"
|
|
121
|
+
}],
|
|
122
|
+
"text": ""
|
|
123
|
+
},
|
|
124
|
+
"attribute": "card-description",
|
|
125
|
+
"reflect": false
|
|
126
|
+
},
|
|
127
|
+
"cardColor": {
|
|
128
|
+
"type": "string",
|
|
129
|
+
"mutable": false,
|
|
130
|
+
"complexType": {
|
|
131
|
+
"original": "string",
|
|
132
|
+
"resolved": "string",
|
|
133
|
+
"references": {}
|
|
134
|
+
},
|
|
135
|
+
"required": false,
|
|
136
|
+
"optional": false,
|
|
137
|
+
"docs": {
|
|
138
|
+
"tags": [{
|
|
139
|
+
"text": "Card Text Color",
|
|
140
|
+
"name": "uiName"
|
|
141
|
+
}, {
|
|
142
|
+
"text": "color",
|
|
143
|
+
"name": "uiWidget"
|
|
144
|
+
}],
|
|
145
|
+
"text": ""
|
|
146
|
+
},
|
|
147
|
+
"attribute": "card-color",
|
|
148
|
+
"reflect": false
|
|
149
|
+
},
|
|
150
|
+
"cardBackground": {
|
|
151
|
+
"type": "string",
|
|
152
|
+
"mutable": false,
|
|
153
|
+
"complexType": {
|
|
154
|
+
"original": "string",
|
|
155
|
+
"resolved": "string",
|
|
156
|
+
"references": {}
|
|
157
|
+
},
|
|
158
|
+
"required": false,
|
|
159
|
+
"optional": false,
|
|
160
|
+
"docs": {
|
|
161
|
+
"tags": [{
|
|
162
|
+
"text": "Card Background Color",
|
|
163
|
+
"name": "uiName"
|
|
164
|
+
}, {
|
|
165
|
+
"text": "color",
|
|
166
|
+
"name": "uiWidget"
|
|
167
|
+
}],
|
|
168
|
+
"text": ""
|
|
169
|
+
},
|
|
170
|
+
"attribute": "card-background",
|
|
171
|
+
"reflect": false
|
|
172
|
+
}
|
|
173
|
+
}; }
|
|
174
|
+
static get states() { return {
|
|
175
|
+
"ignored": {}
|
|
176
|
+
}; }
|
|
177
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { ProgramExplainerStepView } from "./sqm-program-explainer-step-view";
|
|
3
|
+
export default {
|
|
4
|
+
title: "Components/Program Explainer Step",
|
|
5
|
+
};
|
|
6
|
+
export const Example1 = () => {
|
|
7
|
+
const props = {
|
|
8
|
+
cardTitle: "Invite your friends to Klip",
|
|
9
|
+
description: "Earn up to $1200 in rewards for each referral",
|
|
10
|
+
color: "white",
|
|
11
|
+
background: "#5B3EDA",
|
|
12
|
+
icon: "person-plus-fill",
|
|
13
|
+
};
|
|
14
|
+
return h(ProgramExplainerStepView, Object.assign({}, props));
|
|
15
|
+
};
|
package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step-view.js
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import jss from "jss";
|
|
3
|
+
import preset from "jss-preset-default";
|
|
4
|
+
export function ProgramExplainerStepView(props) {
|
|
5
|
+
const style = {
|
|
6
|
+
Container: {
|
|
7
|
+
display: "flex",
|
|
8
|
+
flexDirection: "column",
|
|
9
|
+
width: "100%",
|
|
10
|
+
color: props.color,
|
|
11
|
+
background: props.background,
|
|
12
|
+
padding: "var(--sl-spacing-large)",
|
|
13
|
+
paddingBottom: "var(--sl-spacing-xxx-large)",
|
|
14
|
+
"@media (max-width: 768px)": {
|
|
15
|
+
flexDirection: "row",
|
|
16
|
+
width: "auto",
|
|
17
|
+
paddingBottom: "var(--sl-spacing-large)",
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
Text: {
|
|
21
|
+
"@media (max-width: 768px)": {
|
|
22
|
+
marginLeft: "var(--sl-spacing-large)",
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
Title: {
|
|
26
|
+
textTransform: "uppercase",
|
|
27
|
+
fontSize: "var(--sl-font-size-medium)",
|
|
28
|
+
fontWeight: "var(--sl-font-weight-bold)",
|
|
29
|
+
lineHeight: "var(--sl-line-height-dense)",
|
|
30
|
+
marginTop: "var(--sl-spacing-large)",
|
|
31
|
+
"@media (max-width: 768px)": {
|
|
32
|
+
margin: "0",
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
Description: {
|
|
36
|
+
fontSize: "var(--sl-font-size-medium)",
|
|
37
|
+
marginTop: "var(--sl-spacing-small)",
|
|
38
|
+
"@media (max-width: 768px)": {
|
|
39
|
+
marginTop: "var(--sl-spacing-x-small)",
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
Icon: {
|
|
43
|
+
width: "64px",
|
|
44
|
+
height: "64px",
|
|
45
|
+
borderRadius: "100%",
|
|
46
|
+
background: "#F4F5F7",
|
|
47
|
+
color: "var(--sl-color-primary-400)",
|
|
48
|
+
fontSize: "26px",
|
|
49
|
+
textAlign: "center",
|
|
50
|
+
lineHeight: "72px",
|
|
51
|
+
},
|
|
52
|
+
};
|
|
53
|
+
jss.setup(preset());
|
|
54
|
+
const sheet = jss.createStyleSheet(style);
|
|
55
|
+
const styleString = sheet.toString();
|
|
56
|
+
const vanillaStyle = `
|
|
57
|
+
:host{
|
|
58
|
+
display: flex;
|
|
59
|
+
width: 100%;
|
|
60
|
+
}
|
|
61
|
+
@media (max-width: 768px) {
|
|
62
|
+
:host{
|
|
63
|
+
display: block;
|
|
64
|
+
}
|
|
65
|
+
}`;
|
|
66
|
+
return (h("div", { class: sheet.classes.Container },
|
|
67
|
+
h("style", { type: "text/css" }, styleString),
|
|
68
|
+
h("div", null,
|
|
69
|
+
h("div", { class: sheet.classes.Icon },
|
|
70
|
+
h("sl-icon", { name: props.icon }))),
|
|
71
|
+
h("div", { class: sheet.classes.Text },
|
|
72
|
+
h("div", { class: sheet.classes.Title }, props.cardTitle),
|
|
73
|
+
h("div", { class: sheet.classes.Description }, props.description))));
|
|
74
|
+
}
|