@saasquatch/mint-components 1.3.3-7 → 1.5.0-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{ShadowViewAddon-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-divided-layout_30.cjs.entry.js} +6661 -534
- 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 -9
- 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 -15
- 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 -6
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +3 -7
- 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 +1 -1
- package/dist/cjs/{useDemoBigStat-ee71b587.js → useDemoBigStat-5d71bbdf.js} +117 -21
- package/dist/collection/collection-manifest.json +7 -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 -1
- package/dist/collection/components/sqm-big-stat/useBigStat.js +115 -20
- package/dist/collection/components/sqm-big-stat/useDemoBigStat.js +1 -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 -25
- 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 -53
- 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 -53
- 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 +0 -25
- 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 +0 -25
- package/dist/collection/components/sqm-portal-verify-email/usePortalVerifyEmail.js +2 -2
- 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 +2 -2
- package/dist/collection/{stories → components/sqm-referral-table}/ReferralTableCell.stories.js +1 -1
- package/dist/collection/{stories → components/sqm-referral-table}/ReferralTableRewardsCell.stories.js +1 -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 +20 -0
- package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeListData.js +228 -0
- package/dist/collection/components/sqm-reward-exchange-list/SVGs.js +24 -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 +469 -0
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +144 -0
- package/dist/collection/components/sqm-reward-exchange-list/useRewardExchangeList.js +186 -0
- package/dist/collection/components/sqm-rewards-table/UseRewardsTable.stories.js +53 -0
- package/dist/collection/components/sqm-rewards-table/sqm-rewards-table-column.js +120 -0
- package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +222 -0
- package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +190 -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-button/sqm-share-button.js +1 -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-stencilbook/AutoColor.js +26 -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 +52 -0
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +87 -38
- package/dist/collection/components/sqm-task-card/SVGs.js +14 -0
- package/dist/collection/components/sqm-task-card/TaskCard.stories.js +412 -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 +444 -0
- package/dist/collection/{stories → components/sqm-user-name}/UserName.stories.js +3 -3
- 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 +22 -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-divided-layout_30.entry.js} +6659 -536
- 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 -9
- 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 -15
- 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 -6
- package/dist/esm/sqm-portal-verify-email.entry.js +3 -7
- 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 +1 -1
- package/dist/esm/{useDemoBigStat-8865b9fa.js → useDemoBigStat-d227b2f9.js} +117 -21
- 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-divided-layout_30.entry.js +58 -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-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-d3171b36.system.entry.js → p-0029a386.system.entry.js} +1 -1
- package/dist/mint-components/{p-3452bdae.system.js → p-02dc36a4.system.js} +1 -1
- package/dist/mint-components/{p-de3311bf.entry.js → p-03a6becf.entry.js} +1 -1
- package/dist/mint-components/{p-3e3dad7a.system.js → p-03e93c82.system.js} +1 -1
- 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-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-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-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-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-6cb81b77.entry.js → p-53e51b3f.entry.js} +1 -1
- package/dist/mint-components/p-58ffe936.system.entry.js +58 -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-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-88d9bd59.entry.js +393 -0
- package/dist/mint-components/{p-b3880833.system.entry.js → p-88fdfd94.system.entry.js} +1 -1
- 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-1e47e0a6.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-d68f6b64.system.entry.js +1 -0
- 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-c84a5b33.js → p-f7f87338.js} +1 -1
- 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/useBigStat.d.ts +4 -1
- 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 -4
- 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 -8
- 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 -8
- 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 -4
- 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 -4
- package/dist/types/components/sqm-portal-verify-email/usePortalVerifyEmail.d.ts +1 -2
- 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 +13 -0
- package/dist/types/components/sqm-reward-exchange-list/RewardExchangeListData.d.ts +234 -0
- package/dist/types/components/sqm-reward-exchange-list/SVGs.d.ts +4 -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 +25 -0
- package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list.d.ts +24 -0
- package/dist/types/components/sqm-reward-exchange-list/useRewardExchangeList.d.ts +44 -0
- package/dist/types/components/sqm-rewards-table/UseRewardsTable.stories.d.ts +16 -0
- package/dist/types/components/sqm-rewards-table/sqm-rewards-table-column.d.ts +20 -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 +38 -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 +1 -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 +19 -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.d.ts +297 -72
- package/dist/types/global/styles.d.ts +1 -1
- package/dist/types/tables/GenericTableView.d.ts +29 -0
- package/dist/types/tables/TableSlots.d.ts +8 -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 +4 -2
- package/dist/esm-es5/sqm-divided-layout_26.entry.js +0 -1
- package/dist/esm-es5/useDemoBigStat-8865b9fa.js +0 -1
- package/dist/mint-components/p-06d79243.system.entry.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-32573409.js +0 -227
- 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-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-9f2a08a9.entry.js +0 -230
- package/dist/mint-components/p-a359f652.system.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-ba09d673.system.entry.js +0 -1
- package/dist/mint-components/p-d1cea1b1.system.js +0 -1
- package/dist/types/stories/UserName.stories.d.ts +0 -6
|
@@ -0,0 +1,412 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { MatrixStory } from "../sqm-stencilbook/Matrix";
|
|
3
|
+
import { TaskCardView } from "./sqm-task-card-view";
|
|
4
|
+
import { ProgressBarView } from "./progress-bar/progress-bar-view";
|
|
5
|
+
import scenarioTaskCard from "./sqm-task-card.feature";
|
|
6
|
+
import scenarioProgressBar from "./progress-bar/progress-bar.feature";
|
|
7
|
+
import { DateTime } from "luxon";
|
|
8
|
+
import { Resizer } from "../sqm-stencilbook/Resizer";
|
|
9
|
+
const scenario = scenarioTaskCard + scenarioProgressBar;
|
|
10
|
+
export default {
|
|
11
|
+
title: "Components/Task Card/",
|
|
12
|
+
parameters: {
|
|
13
|
+
scenario,
|
|
14
|
+
},
|
|
15
|
+
};
|
|
16
|
+
const storyFrame = {
|
|
17
|
+
display: "inline-flex",
|
|
18
|
+
gap: "32px",
|
|
19
|
+
};
|
|
20
|
+
const resizable = {
|
|
21
|
+
width: "347px",
|
|
22
|
+
minWidth: "347px",
|
|
23
|
+
resize: "horizontal",
|
|
24
|
+
height: "fit-content",
|
|
25
|
+
overflow: "hidden",
|
|
26
|
+
};
|
|
27
|
+
const oneAction = {
|
|
28
|
+
rewardAmount: 20,
|
|
29
|
+
rewardUnit: "SaaSquatch Points",
|
|
30
|
+
cardTitle: "Complete a survey",
|
|
31
|
+
description: "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
|
|
32
|
+
repeatable: false,
|
|
33
|
+
showProgressBar: false,
|
|
34
|
+
progress: 0,
|
|
35
|
+
goal: 1,
|
|
36
|
+
buttonText: "Take survey",
|
|
37
|
+
buttonLink: "https://example.com/",
|
|
38
|
+
openNewTab: false,
|
|
39
|
+
showExpiry: false,
|
|
40
|
+
rewardDuration: null,
|
|
41
|
+
loading: false,
|
|
42
|
+
finite: 0,
|
|
43
|
+
};
|
|
44
|
+
const coupleActions = {
|
|
45
|
+
rewardAmount: 40,
|
|
46
|
+
rewardUnit: "SaaSquatch Points",
|
|
47
|
+
cardTitle: "Comment on 5 articles",
|
|
48
|
+
description: "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
|
|
49
|
+
repeatable: false,
|
|
50
|
+
showProgressBar: true,
|
|
51
|
+
steps: true,
|
|
52
|
+
progress: 1,
|
|
53
|
+
goal: 5,
|
|
54
|
+
buttonText: "Take survey",
|
|
55
|
+
buttonLink: "https://example.com/",
|
|
56
|
+
openNewTab: false,
|
|
57
|
+
showExpiry: false,
|
|
58
|
+
rewardDuration: null,
|
|
59
|
+
loading: false,
|
|
60
|
+
finite: 0,
|
|
61
|
+
};
|
|
62
|
+
const manyActions = {
|
|
63
|
+
rewardAmount: 150,
|
|
64
|
+
rewardUnit: "SaaSquatch Points",
|
|
65
|
+
cardTitle: "Spend $500 at our Store",
|
|
66
|
+
description: "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
|
|
67
|
+
repeatable: false,
|
|
68
|
+
showProgressBar: true,
|
|
69
|
+
progress: 100,
|
|
70
|
+
goal: 500,
|
|
71
|
+
progressBarUnit: "$",
|
|
72
|
+
buttonText: "Take survey",
|
|
73
|
+
buttonLink: "https://example.com/",
|
|
74
|
+
openNewTab: false,
|
|
75
|
+
showExpiry: false,
|
|
76
|
+
rewardDuration: null,
|
|
77
|
+
loading: false,
|
|
78
|
+
finite: 0,
|
|
79
|
+
};
|
|
80
|
+
export const TaskCard = () => {
|
|
81
|
+
const expire = {
|
|
82
|
+
showExpiry: true,
|
|
83
|
+
rewardDuration: "2021-11-30T08:00:00.000Z/2021-12-01T08:00:00.000Z",
|
|
84
|
+
};
|
|
85
|
+
const expireRepeat = { ...expire, repeatable: true };
|
|
86
|
+
return (h("div", { style: storyFrame },
|
|
87
|
+
h(Resizer, null,
|
|
88
|
+
h("h4", null, "Not Repeatable"),
|
|
89
|
+
h(TaskCardView, Object.assign({}, oneAction, { progress: 0 })),
|
|
90
|
+
" ",
|
|
91
|
+
h("h5", null),
|
|
92
|
+
h(TaskCardView, Object.assign({}, coupleActions, { progress: 1 })),
|
|
93
|
+
" ",
|
|
94
|
+
h("h5", null),
|
|
95
|
+
h(TaskCardView, Object.assign({}, manyActions, { progress: 230 }))),
|
|
96
|
+
h(Resizer, null,
|
|
97
|
+
h("h4", null, "Repeatable"),
|
|
98
|
+
h(TaskCardView, Object.assign({}, oneAction, { progress: 2, repeatable: true })),
|
|
99
|
+
" ",
|
|
100
|
+
h("h5", null),
|
|
101
|
+
h(TaskCardView, Object.assign({}, coupleActions, { progress: 7, repeatable: true })),
|
|
102
|
+
h("h5", null),
|
|
103
|
+
h(TaskCardView, Object.assign({}, manyActions, { progress: 650, repeatable: true }))),
|
|
104
|
+
h(Resizer, null,
|
|
105
|
+
h("h4", null, "Complete"),
|
|
106
|
+
h(TaskCardView, Object.assign({}, oneAction, { progress: 1 })),
|
|
107
|
+
" ",
|
|
108
|
+
h("h5", null),
|
|
109
|
+
h(TaskCardView, Object.assign({}, coupleActions, { progress: 5 })),
|
|
110
|
+
" ",
|
|
111
|
+
h("h5", null),
|
|
112
|
+
h(TaskCardView, Object.assign({}, manyActions, { progress: 500 }))),
|
|
113
|
+
h(Resizer, null,
|
|
114
|
+
h("h4", null, "Unavailable"),
|
|
115
|
+
h(TaskCardView, Object.assign({}, oneAction, { progress: 0 }, expireRepeat)),
|
|
116
|
+
" ",
|
|
117
|
+
h("h5", null),
|
|
118
|
+
h(TaskCardView, Object.assign({}, coupleActions, { progress: 3 }, expireRepeat)),
|
|
119
|
+
h("h5", null),
|
|
120
|
+
h(TaskCardView, Object.assign({}, manyActions, { progress: 250 }, expireRepeat)))));
|
|
121
|
+
};
|
|
122
|
+
export const TaskCardNotRepeatable = () => {
|
|
123
|
+
return (h("div", { style: storyFrame },
|
|
124
|
+
h("div", { style: resizable },
|
|
125
|
+
h("h4", null, "One Action"),
|
|
126
|
+
h(TaskCardView, Object.assign({}, oneAction, { progress: 0 })),
|
|
127
|
+
" ",
|
|
128
|
+
h("h5", null),
|
|
129
|
+
h(TaskCardView, Object.assign({}, oneAction, { progress: 1 })),
|
|
130
|
+
" ",
|
|
131
|
+
h("h5", null)),
|
|
132
|
+
h("div", { style: resizable },
|
|
133
|
+
h("h4", null, "A Couple Actions"),
|
|
134
|
+
h(TaskCardView, Object.assign({}, coupleActions, { progress: 1 })),
|
|
135
|
+
" ",
|
|
136
|
+
h("h5", null),
|
|
137
|
+
h(TaskCardView, Object.assign({}, coupleActions, { progress: 5 })),
|
|
138
|
+
" ",
|
|
139
|
+
h("h5", null)),
|
|
140
|
+
h("div", { style: resizable },
|
|
141
|
+
h("h4", null, "Many Actions"),
|
|
142
|
+
h(TaskCardView, Object.assign({}, manyActions, { progress: 230 })),
|
|
143
|
+
" ",
|
|
144
|
+
h("h5", null),
|
|
145
|
+
h(TaskCardView, Object.assign({}, manyActions, { progress: 500 })),
|
|
146
|
+
" ",
|
|
147
|
+
h("h5", null))));
|
|
148
|
+
};
|
|
149
|
+
export const TaskCardRepeatable = () => {
|
|
150
|
+
return (h("div", { style: storyFrame },
|
|
151
|
+
h("div", { style: resizable },
|
|
152
|
+
h("h4", null, "One Action"),
|
|
153
|
+
h(TaskCardView, Object.assign({}, oneAction, { progress: 0, repeatable: true })),
|
|
154
|
+
" ",
|
|
155
|
+
h("h5", null),
|
|
156
|
+
h(TaskCardView, Object.assign({}, oneAction, { progress: 1, repeatable: true })),
|
|
157
|
+
" ",
|
|
158
|
+
h("h5", null)),
|
|
159
|
+
h("div", { style: resizable },
|
|
160
|
+
h("h4", null, "A Couple Actions"),
|
|
161
|
+
h(TaskCardView, Object.assign({}, coupleActions, { progress: 1, repeatable: true })),
|
|
162
|
+
h("h5", null),
|
|
163
|
+
h(TaskCardView, Object.assign({}, coupleActions, { progress: 5, repeatable: true })),
|
|
164
|
+
h("h5", null),
|
|
165
|
+
h(TaskCardView, Object.assign({}, coupleActions, { progress: 7, repeatable: true })),
|
|
166
|
+
h("h5", null),
|
|
167
|
+
h(TaskCardView, Object.assign({}, coupleActions, { progress: 10, repeatable: true })),
|
|
168
|
+
h("h5", null)),
|
|
169
|
+
h("div", { style: resizable },
|
|
170
|
+
h("h4", null, "Many Actions"),
|
|
171
|
+
h(TaskCardView, Object.assign({}, manyActions, { progress: 100, repeatable: true })),
|
|
172
|
+
h("h5", null),
|
|
173
|
+
h(TaskCardView, Object.assign({}, manyActions, { progress: 500, repeatable: true })),
|
|
174
|
+
h("h5", null),
|
|
175
|
+
h(TaskCardView, Object.assign({}, manyActions, { progress: 650, repeatable: true })),
|
|
176
|
+
h("h5", null),
|
|
177
|
+
h(TaskCardView, Object.assign({}, manyActions, { progress: 1000, repeatable: true })),
|
|
178
|
+
h("h5", null))));
|
|
179
|
+
};
|
|
180
|
+
export const TaskCardRepeatableFinite = () => {
|
|
181
|
+
return (h("div", { style: storyFrame },
|
|
182
|
+
h("div", { style: resizable },
|
|
183
|
+
h("h4", null, "One Action"),
|
|
184
|
+
h(TaskCardView, Object.assign({}, oneAction, { progress: 0, repeatable: true, finite: 2 })),
|
|
185
|
+
h("h5", null),
|
|
186
|
+
h(TaskCardView, Object.assign({}, oneAction, { progress: 1, repeatable: true, finite: 2 })),
|
|
187
|
+
h("h5", null),
|
|
188
|
+
h(TaskCardView, Object.assign({}, oneAction, { progress: 2, repeatable: true, finite: 2 })),
|
|
189
|
+
h("h5", null)),
|
|
190
|
+
h("div", { style: resizable },
|
|
191
|
+
h("h4", null, "A Couple Actions"),
|
|
192
|
+
h(TaskCardView, Object.assign({}, coupleActions, { progress: 2, repeatable: true, finite: 2 })),
|
|
193
|
+
h("h5", null),
|
|
194
|
+
h(TaskCardView, Object.assign({}, coupleActions, { progress: 5, repeatable: true, finite: 2 })),
|
|
195
|
+
h("h5", null),
|
|
196
|
+
h(TaskCardView, Object.assign({}, coupleActions, { progress: 10, repeatable: true, finite: 2 })),
|
|
197
|
+
h("h5", null),
|
|
198
|
+
h(TaskCardView, Object.assign({}, coupleActions, { progress: 12, repeatable: true, finite: 3 })),
|
|
199
|
+
h("h5", null),
|
|
200
|
+
h(TaskCardView, Object.assign({}, coupleActions, { progress: 15, repeatable: true, finite: 3 })),
|
|
201
|
+
h("h5", null)),
|
|
202
|
+
h("div", { style: resizable },
|
|
203
|
+
h("h4", null, "Many Actions"),
|
|
204
|
+
h(TaskCardView, Object.assign({}, manyActions, { progress: 200, repeatable: true, finite: 2 })),
|
|
205
|
+
h("h5", null),
|
|
206
|
+
h(TaskCardView, Object.assign({}, manyActions, { progress: 500, repeatable: true, finite: 2 })),
|
|
207
|
+
h("h5", null),
|
|
208
|
+
h(TaskCardView, Object.assign({}, manyActions, { progress: 1000, repeatable: true, finite: 2 })),
|
|
209
|
+
h("h5", null),
|
|
210
|
+
h(TaskCardView, Object.assign({}, manyActions, { progress: 1200, repeatable: true, finite: 3 })),
|
|
211
|
+
h("h5", null),
|
|
212
|
+
h(TaskCardView, Object.assign({}, manyActions, { progress: 1500, repeatable: true, finite: 3 })),
|
|
213
|
+
h("h5", null))));
|
|
214
|
+
};
|
|
215
|
+
export const TaskCardEndDate = () => {
|
|
216
|
+
const expire = {
|
|
217
|
+
showExpiry: true,
|
|
218
|
+
rewardDuration: DateTime.now().minus({ days: 1 }).toISO() +
|
|
219
|
+
"/" +
|
|
220
|
+
DateTime.now().plus({ days: 1 }).toISO(),
|
|
221
|
+
};
|
|
222
|
+
const expireRepeat = { ...expire, repeatable: true };
|
|
223
|
+
return (h("div", { style: storyFrame },
|
|
224
|
+
h("div", { style: resizable },
|
|
225
|
+
h("h4", null, "One Action"),
|
|
226
|
+
h(TaskCardView, Object.assign({}, oneAction, expire)),
|
|
227
|
+
" ",
|
|
228
|
+
h("h5", null),
|
|
229
|
+
h(TaskCardView, Object.assign({}, oneAction, expireRepeat)),
|
|
230
|
+
" ",
|
|
231
|
+
h("h5", null)),
|
|
232
|
+
h("div", { style: resizable },
|
|
233
|
+
h("h4", null, "A Couple Actions"),
|
|
234
|
+
h(TaskCardView, Object.assign({}, coupleActions, expire)),
|
|
235
|
+
" ",
|
|
236
|
+
h("h5", null),
|
|
237
|
+
h(TaskCardView, Object.assign({}, coupleActions, expireRepeat)),
|
|
238
|
+
" ",
|
|
239
|
+
h("h5", null)),
|
|
240
|
+
h("div", { style: resizable },
|
|
241
|
+
h("h4", null, "Many Actions"),
|
|
242
|
+
h(TaskCardView, Object.assign({}, manyActions, expire)),
|
|
243
|
+
" ",
|
|
244
|
+
h("h5", null),
|
|
245
|
+
h(TaskCardView, Object.assign({}, manyActions, expireRepeat)),
|
|
246
|
+
" ",
|
|
247
|
+
h("h5", null))));
|
|
248
|
+
};
|
|
249
|
+
export const TaskCardLoading = () => {
|
|
250
|
+
const loading = { loading: true };
|
|
251
|
+
return (h("div", { style: storyFrame },
|
|
252
|
+
h("div", { style: resizable },
|
|
253
|
+
h("h4", null, "One Action"),
|
|
254
|
+
h(TaskCardView, Object.assign({}, oneAction, loading)),
|
|
255
|
+
" ",
|
|
256
|
+
h("h5", null),
|
|
257
|
+
h(TaskCardView, Object.assign({}, oneAction, loading)),
|
|
258
|
+
" ",
|
|
259
|
+
h("h5", null)),
|
|
260
|
+
h("div", { style: resizable },
|
|
261
|
+
h("h4", null, "A Couple Actions"),
|
|
262
|
+
h(TaskCardView, Object.assign({}, coupleActions, loading)),
|
|
263
|
+
" ",
|
|
264
|
+
h("h5", null),
|
|
265
|
+
h(TaskCardView, Object.assign({}, coupleActions, loading)),
|
|
266
|
+
" ",
|
|
267
|
+
h("h5", null)),
|
|
268
|
+
h("div", { style: resizable },
|
|
269
|
+
h("h4", null, "Many Actions"),
|
|
270
|
+
h(TaskCardView, Object.assign({}, manyActions, loading)),
|
|
271
|
+
" ",
|
|
272
|
+
h("h5", null),
|
|
273
|
+
h(TaskCardView, Object.assign({}, manyActions, loading)),
|
|
274
|
+
" ",
|
|
275
|
+
h("h5", null))));
|
|
276
|
+
};
|
|
277
|
+
export const TaskCardNotStarted = () => {
|
|
278
|
+
const expire = {
|
|
279
|
+
showExpiry: true,
|
|
280
|
+
rewardDuration: DateTime.now().plus({ days: 1 }).toISO() +
|
|
281
|
+
"/" +
|
|
282
|
+
DateTime.now().plus({ days: 2 }).toISO(),
|
|
283
|
+
};
|
|
284
|
+
const expireRepeat = { ...expire, repeatable: true };
|
|
285
|
+
return (h("div", { style: storyFrame },
|
|
286
|
+
h("div", { style: resizable },
|
|
287
|
+
h("h4", null, "One Action"),
|
|
288
|
+
h(TaskCardView, Object.assign({}, oneAction, { progress: 0 }, expire)),
|
|
289
|
+
" ",
|
|
290
|
+
h("h5", null),
|
|
291
|
+
h(TaskCardView, Object.assign({}, oneAction, { progress: 1 }, expire)),
|
|
292
|
+
" ",
|
|
293
|
+
h("h5", null),
|
|
294
|
+
h(TaskCardView, Object.assign({}, oneAction, { progress: 0 }, expireRepeat)),
|
|
295
|
+
" ",
|
|
296
|
+
h("h5", null),
|
|
297
|
+
h(TaskCardView, Object.assign({}, oneAction, { progress: 1 }, expireRepeat)),
|
|
298
|
+
" ",
|
|
299
|
+
h("h5", null)),
|
|
300
|
+
h("div", { style: resizable },
|
|
301
|
+
h("h4", null, "A Couple Actions"),
|
|
302
|
+
h(TaskCardView, Object.assign({}, coupleActions, { progress: 1 }, expire)),
|
|
303
|
+
" ",
|
|
304
|
+
h("h5", null),
|
|
305
|
+
h(TaskCardView, Object.assign({}, coupleActions, { progress: 5 }, expire)),
|
|
306
|
+
" ",
|
|
307
|
+
h("h5", null),
|
|
308
|
+
h(TaskCardView, Object.assign({}, coupleActions, { progress: 1 }, expireRepeat)),
|
|
309
|
+
h("h5", null),
|
|
310
|
+
h(TaskCardView, Object.assign({}, coupleActions, { progress: 5 }, expireRepeat)),
|
|
311
|
+
h("h5", null)),
|
|
312
|
+
h("div", { style: resizable },
|
|
313
|
+
h("h4", null, "Many Actions"),
|
|
314
|
+
h(TaskCardView, Object.assign({}, manyActions, { progress: 100 }, expire)),
|
|
315
|
+
" ",
|
|
316
|
+
h("h5", null),
|
|
317
|
+
h(TaskCardView, Object.assign({}, manyActions, { progress: 500 }, expire)),
|
|
318
|
+
" ",
|
|
319
|
+
h("h5", null),
|
|
320
|
+
h(TaskCardView, Object.assign({}, manyActions, { progress: 100 }, expireRepeat)),
|
|
321
|
+
h("h5", null),
|
|
322
|
+
h(TaskCardView, Object.assign({}, manyActions, { progress: 500 }, expireRepeat)),
|
|
323
|
+
h("h5", null))));
|
|
324
|
+
};
|
|
325
|
+
export const TaskCardEnded = () => {
|
|
326
|
+
const expire = {
|
|
327
|
+
showExpiry: true,
|
|
328
|
+
rewardDuration: DateTime.now().minus({ days: 2 }).toISO() +
|
|
329
|
+
"/" +
|
|
330
|
+
DateTime.now().minus({ days: 1 }).toISO(),
|
|
331
|
+
};
|
|
332
|
+
const expireRepeat = { ...expire, repeatable: true };
|
|
333
|
+
return (h("div", { style: storyFrame },
|
|
334
|
+
h("div", { style: resizable },
|
|
335
|
+
h("h4", null, "One Action"),
|
|
336
|
+
h(TaskCardView, Object.assign({}, oneAction, { progress: 0 }, expire)),
|
|
337
|
+
" ",
|
|
338
|
+
h("h5", null),
|
|
339
|
+
h(TaskCardView, Object.assign({}, oneAction, { progress: 1 }, expire)),
|
|
340
|
+
" ",
|
|
341
|
+
h("h5", null),
|
|
342
|
+
h(TaskCardView, Object.assign({}, oneAction, { progress: 0 }, expireRepeat)),
|
|
343
|
+
" ",
|
|
344
|
+
h("h5", null),
|
|
345
|
+
h(TaskCardView, Object.assign({}, oneAction, { progress: 1 }, expireRepeat)),
|
|
346
|
+
" ",
|
|
347
|
+
h("h5", null)),
|
|
348
|
+
h("div", { style: resizable },
|
|
349
|
+
h("h4", null, "A Couple Actions"),
|
|
350
|
+
h(TaskCardView, Object.assign({}, coupleActions, { progress: 1 }, expire)),
|
|
351
|
+
" ",
|
|
352
|
+
h("h5", null),
|
|
353
|
+
h(TaskCardView, Object.assign({}, coupleActions, { progress: 5 }, expire)),
|
|
354
|
+
" ",
|
|
355
|
+
h("h5", null),
|
|
356
|
+
h(TaskCardView, Object.assign({}, coupleActions, { progress: 1 }, expireRepeat)),
|
|
357
|
+
h("h5", null),
|
|
358
|
+
h(TaskCardView, Object.assign({}, coupleActions, { progress: 5 }, expireRepeat)),
|
|
359
|
+
h("h5", null)),
|
|
360
|
+
h("div", { style: resizable },
|
|
361
|
+
h("h4", null, "Many Actions"),
|
|
362
|
+
h(TaskCardView, Object.assign({}, manyActions, { progress: 100 }, expire)),
|
|
363
|
+
" ",
|
|
364
|
+
h("h5", null),
|
|
365
|
+
h(TaskCardView, Object.assign({}, manyActions, { progress: 500 }, expire)),
|
|
366
|
+
" ",
|
|
367
|
+
h("h5", null),
|
|
368
|
+
h(TaskCardView, Object.assign({}, manyActions, { progress: 100 }, expireRepeat)),
|
|
369
|
+
h("h5", null),
|
|
370
|
+
h(TaskCardView, Object.assign({}, manyActions, { progress: 500 }, expireRepeat)),
|
|
371
|
+
h("h5", null))));
|
|
372
|
+
};
|
|
373
|
+
export const ProgressBar = () => {
|
|
374
|
+
const props = {
|
|
375
|
+
progress: 0,
|
|
376
|
+
goal: 500,
|
|
377
|
+
progressBarUnit: "$",
|
|
378
|
+
};
|
|
379
|
+
return (h("div", null,
|
|
380
|
+
h(MatrixStory, { matrix: { progress: [-100, 0, 100, 500, 1000] }, props: props, Component: ProgressBarView })));
|
|
381
|
+
};
|
|
382
|
+
export const ProgressBarSteps = () => {
|
|
383
|
+
const props = {
|
|
384
|
+
progress: 0,
|
|
385
|
+
steps: true,
|
|
386
|
+
goal: 5,
|
|
387
|
+
progressBarUnit: "$",
|
|
388
|
+
};
|
|
389
|
+
return (h("div", null,
|
|
390
|
+
h(MatrixStory, { matrix: { progress: [-1, 0, 1, 5, 7] }, props: props, Component: ProgressBarView })));
|
|
391
|
+
};
|
|
392
|
+
export const ProgressBarRepeatable = () => {
|
|
393
|
+
const props = {
|
|
394
|
+
progress: 0,
|
|
395
|
+
goal: 500,
|
|
396
|
+
progressBarUnit: "$",
|
|
397
|
+
repeatable: true,
|
|
398
|
+
};
|
|
399
|
+
return (h("div", null,
|
|
400
|
+
h(MatrixStory, { matrix: { progress: [100, 500, 650, 1200] }, props: props, Component: ProgressBarView })));
|
|
401
|
+
};
|
|
402
|
+
export const ProgressBarStepsRepeatable = () => {
|
|
403
|
+
const props = {
|
|
404
|
+
progress: 0,
|
|
405
|
+
steps: true,
|
|
406
|
+
goal: 5,
|
|
407
|
+
progressBarUnit: "$",
|
|
408
|
+
repeatable: true,
|
|
409
|
+
};
|
|
410
|
+
return (h("div", null,
|
|
411
|
+
h(MatrixStory, { matrix: { progress: [1, 5, 7, 12] }, props: props, Component: ProgressBarView })));
|
|
412
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { setUserIdentity } from "@saasquatch/component-boilerplate";
|
|
2
|
+
import { useEffect } from "@saasquatch/universal-hooks";
|
|
3
|
+
import { h } from "@stencil/core";
|
|
4
|
+
import { createHookStory } from "../sqm-stencilbook/HookStoryAddon";
|
|
5
|
+
const JWT = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImlkIjoic2FtK2tsaXBAc2Fhc3F1YXQuY2giLCJhY2NvdW50SWQiOiJzYW0ra2xpcEBzYWFzcXVhdC5jaCJ9fQ.FMNZ6oajyr6SiCcRqKKdyPqvNTvWROQ60MKAyfvWGfc";
|
|
6
|
+
export default {
|
|
7
|
+
title: "Hooks / useTaskCard",
|
|
8
|
+
};
|
|
9
|
+
function setupGraphQL() {
|
|
10
|
+
const id = "sam+klip@saasquat.ch";
|
|
11
|
+
const accountId = id;
|
|
12
|
+
const programId = "klip-referral-program";
|
|
13
|
+
//@ts-ignore
|
|
14
|
+
window.widgetIdent = {
|
|
15
|
+
tenantAlias: "test_a74miwdpofztj",
|
|
16
|
+
appDomain: "https://staging.referralsaasquatch.com",
|
|
17
|
+
programId,
|
|
18
|
+
};
|
|
19
|
+
useEffect(() => {
|
|
20
|
+
setUserIdentity({
|
|
21
|
+
accountId,
|
|
22
|
+
id,
|
|
23
|
+
jwt: JWT,
|
|
24
|
+
});
|
|
25
|
+
return () => {
|
|
26
|
+
window.widgetIdent = undefined;
|
|
27
|
+
setUserIdentity(undefined);
|
|
28
|
+
};
|
|
29
|
+
}, []);
|
|
30
|
+
return { id, accountId };
|
|
31
|
+
}
|
|
32
|
+
export const TaskCard = createHookStory(() => {
|
|
33
|
+
setupGraphQL();
|
|
34
|
+
const props = {
|
|
35
|
+
listType: "",
|
|
36
|
+
render: () => { },
|
|
37
|
+
disconnectedCallback: () => { },
|
|
38
|
+
ignored: true,
|
|
39
|
+
};
|
|
40
|
+
return (h("sqm-task-card", { "card-title": "Comment on 5 articles", "button-text": "Start reading", goal: 5, steps: true, "show-progress-bar": true }));
|
|
41
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
export const gift = () => {
|
|
3
|
+
return (h("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
4
|
+
h("path", { d: "M15 5H12.4508H9V16H13.5C14.0523 16 14.5 15.5523 14.5 15V9H15C15.5523 9 16 8.55228 16 8V6C16 5.44772 15.5523 5 15 5Z", fill: "#F2C94C" }),
|
|
5
|
+
h("path", { d: "M1.5 9V15C1.5 15.5523 1.94772 16 2.5 16H7V5H4.64242H1C0.447715 5 0 5.44772 0 6V8C0 8.55228 0.447715 9 1 9H1.5Z", fill: "#F2C94C" }),
|
|
6
|
+
h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M1.5 9V10H14.5V9H1.5Z", fill: "#BE9720" }),
|
|
7
|
+
h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M14 2.70949C14 3.59565 12.6694 4.93746 12 5H9V16H7.00179V5H4.58792C3.21247 4.70182 2 3.64537 2 2.52072C2 1.42474 2.47603 0.556701 3.34184 0.182041C4.16921 -0.175986 5.12452 0.0203328 5.87976 0.544666C6.80676 1.18825 7.32679 2.3963 7.79856 3.49226C7.83996 3.58845 7.88099 3.68378 7.9219 3.77778C7.96173 3.68865 8.00186 3.59793 8.0425 3.50608C8.50995 2.44948 9.04359 1.24325 9.9404 0.59563C10.7332 0.0231438 11.741 -0.193157 12.6121 0.198945C13.5129 0.604397 14 1.53453 14 2.70949ZM10.6123 1.5C11.0928 1.15305 11.668 1.09012 12.1597 1.5C12.5879 1.85694 12.6108 2.02497 12.6658 2.42926L12.6755 2.5C12.6755 3.09851 12.1597 4 11.6439 4C11.2785 4 10.9914 3.99691 10.7224 3.99402C10.2319 3.98875 9.80131 3.98412 9.06496 4C9.20533 3.72786 9.31743 3.46669 9.42434 3.21761C9.71026 2.55143 9.95907 1.97176 10.6123 1.5ZM4.93861 1.5C4.70607 1.33855 4.17281 1.4106 3.95166 1.5063C3.76894 1.58537 3.49602 1.82658 3.49602 2.52072C3.49602 3.19524 4.58792 3.77778 4.58792 3.77778C4.58792 3.77778 5.45441 4 7.00179 4C6.47506 2.69451 5.7289 2.04867 4.93861 1.5Z", fill: "#EB5757" })));
|
|
8
|
+
};
|