@saasquatch/mint-components 1.5.0-2 → 1.5.0-20
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 +48 -24
- package/dist/cjs/{ShadowViewAddon-a85b8c8d.js → ShadowViewAddon-475e00d3.js} +3 -3
- package/dist/cjs/{global-6223fe8f.js → global-0ba9aa05.js} +8 -8
- package/dist/cjs/{index.module-7dd4b981.js → index.module-c0bf9df0.js} +16 -16
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/mint-components.cjs.js +3 -3
- package/dist/cjs/{re-render-6111d4bd.js → re-render-124b56ee.js} +4 -4
- 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-brand_31.cjs.entry.js → sqm-brand_39.cjs.entry.js} +1884 -4155
- package/dist/cjs/sqm-card-feed-view-02999919.js +375 -0
- package/dist/cjs/sqm-card-feed.cjs.entry.js +32 -0
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +4 -4
- package/dist/cjs/{sqm-leaderboard-rank-view-7dd44d62.js → sqm-leaderboard-rank-view-9b6487f6.js} +2 -2
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +5 -5
- 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-6c7f78e6.js → sqm-navigation-sidebar-item-view-a2bdcf05.js} +2 -2
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +3 -3
- package/dist/cjs/sqm-popup-container.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-email-verification-view-08d1848c.js → sqm-portal-email-verification-view-46e037ca.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +13 -6
- package/dist/cjs/{sqm-portal-footer-view-69c73802.js → sqm-portal-footer-view-2a0dca52.js} +1 -1
- package/dist/cjs/sqm-portal-footer.cjs.entry.js +3 -3
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +18 -6
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-portal-profile-view-14b41436.js → sqm-portal-profile-view-492cc289.js} +31 -4
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +6 -7
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +5 -5
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +14 -6
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +15 -7
- package/dist/cjs/sqm-program-explainer-step-view-17c5e99d.js +68 -0
- package/dist/cjs/sqm-program-explainer-step.cjs.entry.js +3 -16
- package/dist/cjs/sqm-program-explainer-view-d516c9df.js +60 -0
- package/dist/cjs/sqm-program-explainer.cjs.entry.js +4 -33
- 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 +4 -4
- package/dist/cjs/{useDemoBigStat-2786227e.js → useDemoBigStat-49cd314a.js} +8 -7
- package/dist/collection/collection-manifest.json +10 -2
- package/dist/collection/components/sqm-big-stat/BigStat.stories.js +8 -1
- package/dist/collection/components/sqm-big-stat/sqm-big-stat.js +21 -1
- package/dist/collection/components/sqm-big-stat/useBigStat.js +4 -4
- package/dist/collection/components/sqm-big-stat/useDemoBigStat.js +1 -0
- package/dist/collection/components/sqm-brand/SqmBrand.stories.js +31 -13
- package/dist/collection/components/sqm-brand/sqm-brand.js +53 -15
- package/dist/collection/components/sqm-card-feed/CardFeed.stories.js +92 -0
- package/dist/collection/components/sqm-card-feed/sqm-card-feed-view.js +29 -0
- package/dist/collection/components/sqm-card-feed/sqm-card-feed.js +79 -0
- package/dist/collection/components/sqm-portal-container/PortalContainer.stories.js +27 -0
- package/dist/collection/components/sqm-portal-container/sqm-portal-container-view.js +3 -1
- package/dist/collection/components/sqm-portal-container/sqm-portal-container.js +25 -0
- package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification.js +27 -0
- package/dist/collection/components/sqm-portal-email-verification/usePortalEmailVerification.js +2 -1
- package/dist/collection/components/sqm-portal-forgot-password/PortalForgotPassword.stories.js +4 -0
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password.js +55 -3
- package/dist/collection/components/sqm-portal-forgot-password/usePortalForgotPassword.js +4 -2
- package/dist/collection/components/sqm-portal-login/PortalLogin.stories.js +6 -0
- package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +59 -4
- package/dist/collection/components/sqm-portal-login/usePortalLogin.js +4 -2
- package/dist/collection/components/sqm-portal-register/PortalRegister.stories.js +5 -0
- package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +55 -2
- package/dist/collection/components/sqm-portal-register/usePortalRegister.js +3 -0
- package/dist/collection/components/sqm-portal-reset-password/sqm-portal-reset-password.js +30 -1
- package/dist/collection/components/sqm-portal-reset-password/usePortalResetPassword.js +1 -1
- package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email.js +30 -1
- package/dist/collection/components/sqm-portal-verify-email/usePortalVerifyEmail.js +2 -2
- package/dist/collection/components/sqm-program-explainer/ProgramExplainer.stories.js +47 -29
- package/dist/collection/components/sqm-program-explainer/sqm-program-explainer-view.js +50 -27
- package/dist/collection/components/sqm-program-explainer/sqm-program-explainer.js +158 -5
- package/dist/collection/components/sqm-program-explainer-step/ProgramExplainerStep.stories.js +4 -10
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step-view.js +49 -20
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step.js +46 -46
- package/dist/collection/components/sqm-referral-table/ReferralTable.stories.js +1 -0
- package/dist/collection/components/sqm-referral-table/ReferralTableCell.stories.js +1 -0
- package/dist/collection/components/sqm-referral-table/ReferralTableRewardsCell.stories.js +1 -0
- package/dist/collection/components/sqm-referral-table/sqm-referral-table.js +5 -2
- package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeList.stories.js +4 -3
- package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeListData.js +55 -25
- package/dist/collection/components/sqm-reward-exchange-list/SVGs.js +3 -0
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +228 -200
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +482 -3
- package/dist/collection/components/sqm-reward-exchange-list/useRewardExchangeList.js +17 -12
- package/dist/collection/components/sqm-rewards-table/UseRewardsTable.stories.js +8 -2
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-date-cell.js +42 -0
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-rewards-cell.js +154 -0
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.js +78 -0
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.js +95 -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/{sqm-rewards-table-column.js → columns/sqm-rewards-table-reward-column.js} +5 -9
- 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-view.js +83 -0
- package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +7 -30
- package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +33 -7
- package/dist/collection/components/sqm-share-button/ShareButton.stories.js +22 -1
- package/dist/collection/components/sqm-share-button/sqm-share-button-view.js +17 -9
- package/dist/collection/components/sqm-share-button/sqm-share-button.js +62 -10
- package/dist/collection/components/sqm-stencilbook/AutoColor.js +40 -45
- package/dist/collection/components/sqm-stencilbook/Themes.js +3 -11
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +5 -1
- package/dist/collection/components/sqm-task-card/TaskCard.stories.js +12 -0
- package/dist/collection/components/sqm-task-card/progress-bar/SVGs.js +1 -1
- package/dist/collection/components/sqm-task-card/progress-bar/progress-bar-view.js +24 -31
- package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +82 -21
- package/dist/collection/components/sqm-task-card/sqm-task-card.js +108 -2
- 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/global.js +1 -1
- package/dist/collection/global/styles.js +5 -5
- package/dist/collection/global/styles.ts +5 -5
- package/dist/collection/stories/NewPortal.stories.js +15 -15
- package/dist/collection/tables/TableSlots.js +9 -1
- package/dist/esm/{ShadowViewAddon-a3f510db.js → ShadowViewAddon-558fabb7.js} +3 -3
- package/dist/esm/{global-90da933f.js → global-6b404f7f.js} +8 -8
- package/dist/esm/{index.module-90d2c3ad.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-e06f2f7f.js → re-render-6d5b856e.js} +4 -4
- package/dist/esm/sqm-asset-card.entry.js +1 -1
- package/dist/esm/sqm-big-stat.entry.js +2 -2
- package/dist/esm/{sqm-brand_31.entry.js → sqm-brand_39.entry.js} +1870 -4149
- package/dist/esm/sqm-card-feed-view-c56cf42d.js +373 -0
- package/dist/esm/sqm-card-feed.entry.js +28 -0
- package/dist/esm/sqm-graphql-client-provider.entry.js +4 -4
- package/dist/esm/{sqm-leaderboard-rank-view-47844836.js → sqm-leaderboard-rank-view-a350e73c.js} +2 -2
- package/dist/esm/sqm-leaderboard-rank.entry.js +5 -5
- 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-f2304ad9.js → sqm-navigation-sidebar-item-view-2d8c368c.js} +2 -2
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +3 -3
- package/dist/esm/sqm-popup-container.entry.js +1 -1
- package/dist/esm/{sqm-portal-email-verification-view-8cefe480.js → sqm-portal-email-verification-view-ff8af635.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +13 -6
- package/dist/esm/{sqm-portal-footer-view-d9fe0bf8.js → sqm-portal-footer-view-d33f2e35.js} +1 -1
- package/dist/esm/sqm-portal-footer.entry.js +3 -3
- package/dist/esm/sqm-portal-forgot-password.entry.js +18 -6
- package/dist/esm/sqm-portal-logout.entry.js +3 -3
- package/dist/esm/{sqm-portal-profile-view-b67467b4.js → sqm-portal-profile-view-beb878a3.js} +29 -3
- package/dist/esm/sqm-portal-profile.entry.js +6 -7
- package/dist/esm/sqm-portal-protected-route.entry.js +5 -5
- package/dist/esm/sqm-portal-reset-password.entry.js +16 -8
- package/dist/esm/sqm-portal-verify-email.entry.js +15 -7
- package/dist/esm/sqm-program-explainer-step-view-e2b39225.js +66 -0
- package/dist/esm/sqm-program-explainer-step.entry.js +3 -16
- package/dist/esm/sqm-program-explainer-view-f726f5ec.js +58 -0
- package/dist/esm/sqm-program-explainer.entry.js +7 -36
- 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 +4 -4
- package/dist/esm/{useDemoBigStat-c3b955b7.js → useDemoBigStat-acd4b73f.js} +8 -7
- package/dist/esm-es5/ShadowViewAddon-558fabb7.js +1 -0
- package/dist/esm-es5/{global-90da933f.js → global-6b404f7f.js} +2 -2
- package/dist/esm-es5/{index.module-90d2c3ad.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-e06f2f7f.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_39.entry.js +1 -0
- package/dist/esm-es5/sqm-card-feed-view-c56cf42d.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-47844836.js → sqm-leaderboard-rank-view-a350e73c.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-2d8c368c.js +1 -0
- 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-8cefe480.js → sqm-portal-email-verification-view-ff8af635.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-footer-view-d9fe0bf8.js → sqm-portal-footer-view-d33f2e35.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-beb878a3.js +1 -0
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-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-e2b39225.js +1 -0
- package/dist/esm-es5/sqm-program-explainer-step.entry.js +1 -1
- package/dist/esm-es5/sqm-program-explainer-view-f726f5ec.js +1 -0
- package/dist/esm-es5/sqm-program-explainer.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-acd4b73f.js +1 -0
- package/dist/mint-components/global/styles.ts +5 -5
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-e7f633b9.system.js → p-03aa4cc8.system.js} +1 -1
- package/dist/mint-components/{p-3ce2fb83.system.js → p-03e93c82.system.js} +1 -1
- package/dist/mint-components/p-0d8b2757.system.entry.js +1 -0
- package/dist/mint-components/p-13cbfee2.entry.js +372 -0
- package/dist/mint-components/{p-221a4097.entry.js → p-1705e549.entry.js} +1 -1
- package/dist/mint-components/p-2338162a.entry.js +1 -0
- package/dist/mint-components/{p-73148868.system.entry.js → p-24fa8920.system.entry.js} +1 -1
- package/dist/mint-components/p-2765e302.system.entry.js +1 -0
- package/dist/mint-components/{p-e6d77d20.system.entry.js → p-29ee7d11.system.entry.js} +1 -1
- package/dist/mint-components/p-2fb1baf2.system.js +1 -0
- package/dist/mint-components/{p-9d6dbb2d.entry.js → p-3143cce4.entry.js} +1 -1
- package/dist/mint-components/p-340089a3.system.js +1 -0
- package/dist/mint-components/p-34112d74.entry.js +1 -0
- package/dist/mint-components/p-35ee8cdf.js +1 -0
- package/dist/mint-components/{p-60855d33.system.js → p-3adbd62c.system.js} +1 -1
- package/dist/mint-components/p-3e1bd246.entry.js +1 -0
- package/dist/mint-components/{p-3b97aed8.system.js → p-40e83a85.system.js} +1 -1
- package/dist/mint-components/{p-be2738b0.system.entry.js → p-46493de5.system.entry.js} +1 -1
- package/dist/mint-components/{p-29fab29b.entry.js → p-53e51b3f.entry.js} +1 -1
- package/dist/mint-components/p-5744f326.system.js +1 -0
- package/dist/mint-components/{p-0eb3e89c.js → p-5894ceb0.js} +1 -1
- package/dist/mint-components/p-5b9a5dfa.entry.js +1 -0
- package/dist/mint-components/{p-d35b0366.js → p-5d925bb6.js} +1 -1
- package/dist/mint-components/{p-c6114bfe.system.js → p-5e4e7f01.system.js} +1 -1
- package/dist/mint-components/{p-224504ad.js → p-61acba7a.js} +1 -1
- package/dist/mint-components/p-63d1efcd.system.entry.js +1 -0
- package/dist/mint-components/{p-f17050de.entry.js → p-65c79eec.entry.js} +1 -1
- package/dist/mint-components/{p-46a4269a.js → p-671dfda0.js} +2 -2
- package/dist/mint-components/p-69e273b4.entry.js +1 -0
- package/dist/mint-components/p-6b8d51d6.entry.js +1 -0
- package/dist/mint-components/p-6caa44e1.system.entry.js +1 -0
- package/dist/mint-components/p-700f96f5.js +1 -0
- package/dist/mint-components/{p-49cbd0a2.entry.js → p-760762d3.entry.js} +2 -2
- package/dist/mint-components/{p-b608f7a4.system.js → p-795acde7.system.js} +2 -2
- package/dist/mint-components/{p-44d0fc80.system.entry.js → p-7a26fed1.system.entry.js} +1 -1
- package/dist/mint-components/{p-b1bb07db.entry.js → p-7dcefa4f.entry.js} +1 -1
- package/dist/mint-components/{p-223b42bd.system.entry.js → p-7ff22998.system.entry.js} +1 -1
- package/dist/mint-components/{p-6882070c.js → p-82506e49.js} +1 -1
- package/dist/mint-components/{p-a6094ff9.system.js → p-8451453e.system.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-24c9a599.system.entry.js → p-88fdfd94.system.entry.js} +1 -1
- package/dist/mint-components/p-89d63744.system.js +1 -0
- package/dist/mint-components/p-8c3d0392.system.entry.js +1 -0
- package/dist/mint-components/p-8f58ce03.system.entry.js +1 -0
- package/dist/mint-components/p-90647dea.entry.js +1 -0
- package/dist/mint-components/{p-412a9226.system.entry.js → p-97b946c2.system.entry.js} +1 -1
- package/dist/mint-components/p-9a82ec56.entry.js +1 -0
- package/dist/mint-components/p-9f14da02.system.entry.js +1 -0
- package/dist/mint-components/{p-1a09e4e1.system.entry.js → p-a0a26fc5.system.entry.js} +1 -1
- package/dist/mint-components/{p-304e6c82.system.entry.js → p-a355eeaf.system.entry.js} +1 -1
- package/dist/mint-components/p-a831de18.entry.js +1 -0
- package/dist/mint-components/p-a833dbb3.js +1 -0
- package/dist/mint-components/{p-52802c88.entry.js → p-adca9d11.entry.js} +1 -1
- package/dist/mint-components/{p-6e245fa3.system.entry.js → p-aee83885.system.entry.js} +1 -1
- package/dist/mint-components/p-b0d598db.system.entry.js +1 -0
- package/dist/mint-components/p-b11625ed.system.entry.js +1 -0
- package/dist/mint-components/p-ba0e812a.system.js +1 -0
- package/dist/mint-components/p-bb7fd343.system.js +1 -0
- package/dist/mint-components/{p-f90486ca.js → p-bd0887fb.js} +15 -15
- package/dist/mint-components/p-bffad7b3.system.entry.js +1 -0
- package/dist/mint-components/p-c04d40db.system.entry.js +1 -0
- package/dist/mint-components/{p-3397167c.entry.js → p-c0f9d0b1.entry.js} +1 -1
- package/dist/mint-components/p-c3d0b165.entry.js +1 -0
- package/dist/mint-components/p-c61028b0.entry.js +1 -0
- package/dist/mint-components/{p-fce1dbf6.entry.js → p-cc652a53.entry.js} +1 -1
- package/dist/mint-components/p-d3c7dbfc.entry.js +1 -0
- package/dist/mint-components/{p-24b3c6f0.system.entry.js → p-d4a1bce9.system.entry.js} +1 -1
- package/dist/mint-components/p-d6416b4d.js +1 -0
- package/dist/mint-components/{p-d21e0dbd.js → p-ded15f0a.js} +1 -1
- package/dist/mint-components/{p-c79c608d.system.entry.js → p-e7cb4274.system.entry.js} +1 -1
- package/dist/mint-components/{p-723ebe45.entry.js → p-ed2e08f8.entry.js} +2 -2
- package/dist/mint-components/{p-396bf448.system.entry.js → p-f20d9204.system.entry.js} +1 -1
- package/dist/mint-components/{p-cdeae699.system.js → p-f9ada3d7.system.js} +1 -1
- package/dist/mint-components/p-f9c4d41b.js +1 -0
- package/dist/mint-components/{p-563253e8.js → p-faf66fdb.js} +1 -1
- package/dist/mint-components/p-fcd03042.entry.js +1 -0
- package/dist/mint-components/{p-69bcf4fa.system.entry.js → p-fd281e6b.system.entry.js} +1 -1
- package/dist/mint-components/{p-67ae18d1.system.entry.js → p-ff747334.system.entry.js} +1 -1
- 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 +6 -0
- package/dist/types/components/sqm-big-stat/useBigStat.d.ts +1 -0
- package/dist/types/components/sqm-brand/SqmBrand.stories.d.ts +1 -0
- package/dist/types/components/sqm-brand/sqm-brand.d.ts +8 -2
- 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 +7 -0
- package/dist/types/components/sqm-card-feed/sqm-card-feed.d.ts +18 -0
- package/dist/types/components/sqm-portal-container/PortalContainer.stories.d.ts +11 -0
- package/dist/types/components/sqm-portal-container/sqm-portal-container-view.d.ts +1 -0
- package/dist/types/components/sqm-portal-container/sqm-portal-container.d.ts +4 -0
- package/dist/types/components/sqm-portal-email-verification/sqm-portal-email-verification.d.ts +6 -0
- package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.d.ts +1 -0
- package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password.d.ts +10 -0
- package/dist/types/components/sqm-portal-forgot-password/usePortalForgotPassword.d.ts +3 -1
- package/dist/types/components/sqm-portal-login/sqm-portal-login-view.d.ts +2 -0
- package/dist/types/components/sqm-portal-login/sqm-portal-login.d.ts +8 -0
- package/dist/types/components/sqm-portal-login/usePortalLogin.d.ts +3 -3
- package/dist/types/components/sqm-portal-register/sqm-portal-register-view.d.ts +1 -0
- package/dist/types/components/sqm-portal-register/sqm-portal-register.d.ts +10 -0
- package/dist/types/components/sqm-portal-register/usePortalRegister.d.ts +1 -0
- package/dist/types/components/sqm-portal-reset-password/sqm-portal-reset-password.d.ts +8 -0
- package/dist/types/components/sqm-portal-verify-email/sqm-portal-verify-email.d.ts +8 -0
- package/dist/types/components/sqm-portal-verify-email/usePortalVerifyEmail.d.ts +2 -1
- package/dist/types/components/sqm-program-explainer/ProgramExplainer.stories.d.ts +3 -1
- 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 +33 -3
- package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step-view.d.ts +2 -1
- package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step.d.ts +14 -12
- package/dist/types/components/sqm-reward-exchange-list/RewardExchangeList.stories.d.ts +1 -0
- package/dist/types/components/sqm-reward-exchange-list/RewardExchangeListData.d.ts +246 -0
- package/dist/types/components/sqm-reward-exchange-list/SVGs.d.ts +1 -0
- package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.d.ts +3 -0
- package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list.d.ts +78 -0
- package/dist/types/components/sqm-reward-exchange-list/useRewardExchangeList.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/{sqm-rewards-table-column.d.ts → columns/sqm-rewards-table-reward-column.d.ts} +3 -4
- 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-view.d.ts +29 -0
- package/dist/types/components/sqm-rewards-table/sqm-rewards-table.d.ts +2 -4
- package/dist/types/components/sqm-rewards-table/useRewardsTable.d.ts +0 -33
- package/dist/types/components/sqm-share-button/ShareButton.stories.d.ts +2 -0
- package/dist/types/components/sqm-share-button/sqm-share-button-view.d.ts +3 -0
- package/dist/types/components/sqm-share-button/sqm-share-button.d.ts +12 -0
- package/dist/types/components/sqm-stencilbook/AutoColor.d.ts +0 -8
- package/dist/types/components/sqm-stencilbook/Themes.d.ts +1 -1
- package/dist/types/components/sqm-task-card/progress-bar/SVGs.d.ts +1 -1
- package/dist/types/components/sqm-task-card/sqm-task-card-view.d.ts +4 -0
- package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +22 -0
- package/dist/types/components/sqm-user-name/sqm-user-name.d.ts +1 -1
- package/dist/types/components.d.ts +628 -36
- 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/TableSlots.d.ts +1 -0
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +4 -4
- package/dist/cjs/sqm-portal-container-view-d144735a.js +0 -31
- package/dist/cjs/sqm-portal-container.cjs.entry.js +0 -35
- package/dist/cjs/sqm-program-explainer-step-view-0e66bea1.js +0 -49
- package/dist/esm/sqm-portal-container-view-73757ca5.js +0 -29
- package/dist/esm/sqm-portal-container.entry.js +0 -31
- package/dist/esm/sqm-program-explainer-step-view-26920cf9.js +0 -47
- package/dist/esm-es5/ShadowViewAddon-a3f510db.js +0 -1
- package/dist/esm-es5/sqm-brand_31.entry.js +0 -58
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-f2304ad9.js +0 -1
- package/dist/esm-es5/sqm-portal-container-view-73757ca5.js +0 -1
- package/dist/esm-es5/sqm-portal-container.entry.js +0 -1
- package/dist/esm-es5/sqm-portal-profile-view-b67467b4.js +0 -1
- package/dist/esm-es5/sqm-program-explainer-step-view-26920cf9.js +0 -1
- package/dist/esm-es5/useDemoBigStat-c3b955b7.js +0 -1
- package/dist/mint-components/p-07c924fa.system.js +0 -1
- package/dist/mint-components/p-160bd62f.entry.js +0 -1
- package/dist/mint-components/p-16f5a7cb.system.js +0 -1
- package/dist/mint-components/p-1c8b0290.entry.js +0 -1
- package/dist/mint-components/p-1dcdca58.system.entry.js +0 -1
- package/dist/mint-components/p-1ea0804d.js +0 -1
- package/dist/mint-components/p-20d41ab1.entry.js +0 -1
- package/dist/mint-components/p-244f3d9b.system.entry.js +0 -1
- package/dist/mint-components/p-33c5ffb7.entry.js +0 -1
- package/dist/mint-components/p-3d856985.entry.js +0 -1
- package/dist/mint-components/p-4052b948.system.entry.js +0 -1
- package/dist/mint-components/p-45c752a0.entry.js +0 -1
- package/dist/mint-components/p-4fd17832.entry.js +0 -1
- package/dist/mint-components/p-547a0354.system.js +0 -1
- package/dist/mint-components/p-5480e4ee.entry.js +0 -1
- package/dist/mint-components/p-6bf0a4d9.system.entry.js +0 -1
- package/dist/mint-components/p-7300b0ae.entry.js +0 -397
- package/dist/mint-components/p-8435a22d.entry.js +0 -1
- package/dist/mint-components/p-883a32e7.entry.js +0 -1
- package/dist/mint-components/p-9bda1dc4.system.entry.js +0 -1
- package/dist/mint-components/p-9c554ca0.system.js +0 -1
- package/dist/mint-components/p-9e4fee30.system.entry.js +0 -1
- package/dist/mint-components/p-a2c3cff3.js +0 -1
- package/dist/mint-components/p-a4c2c7ed.entry.js +0 -1
- package/dist/mint-components/p-ade44a4e.entry.js +0 -1
- package/dist/mint-components/p-b8bd2607.entry.js +0 -1
- package/dist/mint-components/p-cca9026f.system.entry.js +0 -1
- package/dist/mint-components/p-d12c666e.system.js +0 -1
- package/dist/mint-components/p-d174d0bc.system.entry.js +0 -1
- package/dist/mint-components/p-db2e4c42.js +0 -1
- package/dist/mint-components/p-dc603d08.system.entry.js +0 -1
- package/dist/mint-components/p-ded1509b.entry.js +0 -1
- package/dist/mint-components/p-e069bc2d.entry.js +0 -1
- package/dist/mint-components/p-e43cc1f8.system.entry.js +0 -1
- package/dist/mint-components/p-ebcd8a59.js +0 -1
- package/dist/mint-components/p-f8c5f710.system.entry.js +0 -58
|
@@ -38,7 +38,11 @@ const oneAction = {
|
|
|
38
38
|
openNewTab: false,
|
|
39
39
|
showExpiry: false,
|
|
40
40
|
rewardDuration: null,
|
|
41
|
+
completedText: "Completed {finite, select, 0 {{count, plural, =1 {{count} time} other {{count} times}}} other {{count}/{finite} times}}",
|
|
41
42
|
loading: false,
|
|
43
|
+
expiryMessage: "Ends {endDate}",
|
|
44
|
+
startsOnMessage: "Starts {startDate}",
|
|
45
|
+
endedMessage: "Ended {endDate}",
|
|
42
46
|
finite: 0,
|
|
43
47
|
};
|
|
44
48
|
const coupleActions = {
|
|
@@ -55,8 +59,12 @@ const coupleActions = {
|
|
|
55
59
|
buttonLink: "https://example.com/",
|
|
56
60
|
openNewTab: false,
|
|
57
61
|
showExpiry: false,
|
|
62
|
+
completedText: "Completed {finite, select, 0 {{count, plural, =1 {{count} time} other {{count} times}}} other {{count}/{finite} times}}",
|
|
58
63
|
rewardDuration: null,
|
|
59
64
|
loading: false,
|
|
65
|
+
expiryMessage: "Ends {endDate}",
|
|
66
|
+
startsOnMessage: "Starts {startDate}",
|
|
67
|
+
endedMessage: "Ended {endDate}",
|
|
60
68
|
finite: 0,
|
|
61
69
|
};
|
|
62
70
|
const manyActions = {
|
|
@@ -65,6 +73,7 @@ const manyActions = {
|
|
|
65
73
|
cardTitle: "Spend $500 at our Store",
|
|
66
74
|
description: "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
|
|
67
75
|
repeatable: false,
|
|
76
|
+
completedText: "Completed {finite, select, 0 {{count, plural, =1 {{count} time} other {{count} times}}} other {{count}/{finite} times}}",
|
|
68
77
|
showProgressBar: true,
|
|
69
78
|
progress: 100,
|
|
70
79
|
goal: 500,
|
|
@@ -75,6 +84,9 @@ const manyActions = {
|
|
|
75
84
|
showExpiry: false,
|
|
76
85
|
rewardDuration: null,
|
|
77
86
|
loading: false,
|
|
87
|
+
expiryMessage: "Ends {endDate}",
|
|
88
|
+
startsOnMessage: "Starts {startDate}",
|
|
89
|
+
endedMessage: "Ended {endDate}",
|
|
78
90
|
finite: 0,
|
|
79
91
|
};
|
|
80
92
|
export const TaskCard = () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
export const
|
|
2
|
+
export const Gift = () => {
|
|
3
3
|
return (h("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
4
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
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" }),
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import jss from "jss";
|
|
3
3
|
import preset from "jss-preset-default";
|
|
4
|
-
import
|
|
4
|
+
import { Gift } from "./SVGs";
|
|
5
5
|
export function ProgressBarView(props) {
|
|
6
6
|
const { progress = 0, goal = 1, steps = false, progressBarUnit = "", repeatable = false, expired = false, finite = 0, } = props;
|
|
7
|
-
// console.log("progress bar props", props);
|
|
8
|
-
const gift1 = SVGs.gift();
|
|
9
|
-
const gift2 = SVGs.gift();
|
|
10
|
-
const gift3 = SVGs.gift();
|
|
11
7
|
var items = [];
|
|
12
8
|
var columns = "";
|
|
13
9
|
if (repeatable) {
|
|
@@ -128,11 +124,8 @@ export function ProgressBarView(props) {
|
|
|
128
124
|
marginLeft: "-100px",
|
|
129
125
|
marginRight: "-100px",
|
|
130
126
|
position: "relative",
|
|
131
|
-
display: "list-item",
|
|
132
|
-
listStyleType: "none",
|
|
133
127
|
top: "-18px",
|
|
134
128
|
filter: goal <= progress ? "" : "grayscale(100%)",
|
|
135
|
-
zIndex: "1",
|
|
136
129
|
},
|
|
137
130
|
},
|
|
138
131
|
};
|
|
@@ -158,7 +151,7 @@ export function ProgressBarView(props) {
|
|
|
158
151
|
: progressBarUnit + clamp(progress, 0, goal)));
|
|
159
152
|
items.push(h("div", { class: "remain" }));
|
|
160
153
|
items.push(h("div", { class: "progress bg" }, progressBarUnit + goal));
|
|
161
|
-
items.push(h("div", { class: "gift" },
|
|
154
|
+
items.push(h("div", { class: "gift" }, h(Gift, null)));
|
|
162
155
|
}
|
|
163
156
|
function addSteps() {
|
|
164
157
|
let ratio = 1 / goal;
|
|
@@ -179,14 +172,14 @@ export function ProgressBarView(props) {
|
|
|
179
172
|
columns += "0fr ";
|
|
180
173
|
items.push(h("div", { class: "filled" }));
|
|
181
174
|
items.push(h("div", { class: "progress bg" }, goal));
|
|
182
|
-
items.push(h("div", { class: "gift" },
|
|
175
|
+
items.push(h("div", { class: "gift" }, h(Gift, null)));
|
|
183
176
|
}
|
|
184
177
|
// reward fail
|
|
185
178
|
else {
|
|
186
179
|
columns += "0fr ";
|
|
187
180
|
items.push(h("div", { class: "remain" }));
|
|
188
181
|
items.push(h("div", { class: "empty bg" }, goal));
|
|
189
|
-
items.push(h("div", { class: "gift" },
|
|
182
|
+
items.push(h("div", { class: "gift" }, h(Gift, null)));
|
|
190
183
|
}
|
|
191
184
|
}
|
|
192
185
|
function addLinearRepeatable() {
|
|
@@ -199,10 +192,10 @@ export function ProgressBarView(props) {
|
|
|
199
192
|
items.push(h("div", { class: progress == goal ? "progress top bg" : "progress top" }, progressBarUnit + progress));
|
|
200
193
|
items.push(h("div", { class: "remain" }));
|
|
201
194
|
items.push(h("div", { class: "progress bg" }, progressBarUnit + goal));
|
|
202
|
-
items.push(h("div", { class: "gift" },
|
|
195
|
+
items.push(h("div", { class: "gift" }, h(Gift, null)));
|
|
203
196
|
items.push(h("div", { class: "remain" }));
|
|
204
197
|
items.push(h("div", { class: "progress bg" }, progressBarUnit + goal * 2));
|
|
205
|
-
items.push(h("div", { class: "gift bw" },
|
|
198
|
+
items.push(h("div", { class: "gift bw" }, h(Gift, null)));
|
|
206
199
|
}
|
|
207
200
|
// single repetition
|
|
208
201
|
else if (repetitions == 1) {
|
|
@@ -210,18 +203,18 @@ export function ProgressBarView(props) {
|
|
|
210
203
|
"0.5fr 0fr 0fr " + ratio + "fr 0fr " + (0.5 - ratio) + "fr 0fr 0fr";
|
|
211
204
|
items.push(h("div", { class: "filled" }));
|
|
212
205
|
items.push(h("div", { class: "progress bg" }, progressBarUnit + goal));
|
|
213
|
-
items.push(h("div", { class: "gift" },
|
|
206
|
+
items.push(h("div", { class: "gift" }, h(Gift, null)));
|
|
214
207
|
items.push(h("div", { class: "filled" }));
|
|
215
208
|
items.push(h("div", { class: progress == goal ? "progress top bg" : "progress top" }, progress == goal ? "" : progressBarUnit + progress));
|
|
216
209
|
items.push(h("div", { class: "remain" }));
|
|
217
210
|
items.push(h("div", { class: "progress bg" }, progressBarUnit + goal * 2));
|
|
218
|
-
items.push(h("div", { class: "gift bw" },
|
|
211
|
+
items.push(h("div", { class: "gift bw" }, h(Gift, null)));
|
|
219
212
|
}
|
|
220
213
|
// finite repetition hit
|
|
221
214
|
else if (finite && repetitions >= finite) {
|
|
222
215
|
if (repetitions > 2) {
|
|
223
216
|
items.push(h("div", { class: "progress bg" }, progressBarUnit + goal * (finite - 2)));
|
|
224
|
-
items.push(h("div", { class: "gift start" },
|
|
217
|
+
items.push(h("div", { class: "gift start" }, h(Gift, null)));
|
|
225
218
|
columns = "0fr 0fr 0.5fr 0fr 0fr 0.5fr 0fr 0fr";
|
|
226
219
|
}
|
|
227
220
|
else {
|
|
@@ -229,10 +222,10 @@ export function ProgressBarView(props) {
|
|
|
229
222
|
}
|
|
230
223
|
items.push(h("div", { class: "filled" }));
|
|
231
224
|
items.push(h("div", { class: "progress bg" }, progressBarUnit + goal * (finite - 1)));
|
|
232
|
-
items.push(h("div", { class: "gift" },
|
|
225
|
+
items.push(h("div", { class: "gift" }, h(Gift, null)));
|
|
233
226
|
items.push(h("div", { class: "filled" }));
|
|
234
227
|
items.push(h("div", { class: "progress bg" }, progressBarUnit + goal * finite));
|
|
235
|
-
items.push(h("div", { class: "gift" },
|
|
228
|
+
items.push(h("div", { class: "gift" }, h(Gift, null)));
|
|
236
229
|
}
|
|
237
230
|
// multiple repetitions
|
|
238
231
|
else {
|
|
@@ -243,15 +236,15 @@ export function ProgressBarView(props) {
|
|
|
243
236
|
(0.5 - ratio) +
|
|
244
237
|
"fr 0fr 0fr";
|
|
245
238
|
items.push(h("div", { class: "progress bg" }, progressBarUnit + goal * (repetitions - 1)));
|
|
246
|
-
items.push(h("div", { class: "gift start" },
|
|
239
|
+
items.push(h("div", { class: "gift start" }, h(Gift, null)));
|
|
247
240
|
items.push(h("div", { class: "filled" }));
|
|
248
241
|
items.push(h("div", { class: "progress bg" }, progressBarUnit + goal * repetitions));
|
|
249
|
-
items.push(h("div", { class: "gift" },
|
|
242
|
+
items.push(h("div", { class: "gift" }, h(Gift, null)));
|
|
250
243
|
items.push(h("div", { class: "filled" }));
|
|
251
244
|
items.push(h("div", { class: progress == goal * repetitions ? "progress top bg" : "progress top" }, progress == goal * repetitions ? "" : progressBarUnit + progress));
|
|
252
245
|
items.push(h("div", { class: "remain" }));
|
|
253
246
|
items.push(h("div", { class: "progress bg" }, progressBarUnit + goal * (repetitions + 1)));
|
|
254
|
-
items.push(h("div", { class: "gift bw" },
|
|
247
|
+
items.push(h("div", { class: "gift bw" }, h(Gift, null)));
|
|
255
248
|
}
|
|
256
249
|
}
|
|
257
250
|
function addStepsRepeatable() {
|
|
@@ -266,13 +259,13 @@ export function ProgressBarView(props) {
|
|
|
266
259
|
columns += "0fr ";
|
|
267
260
|
items.push(h("div", { class: "remain" }));
|
|
268
261
|
items.push(h("div", { class: "empty bg" }, goal));
|
|
269
|
-
items.push(h("div", { class: "gift bw" },
|
|
262
|
+
items.push(h("div", { class: "gift bw" }, h(Gift, null)));
|
|
270
263
|
}
|
|
271
264
|
else if (i == goal * 2) {
|
|
272
265
|
columns += "0fr 0fr";
|
|
273
266
|
items.push(h("div", { class: "remain" }));
|
|
274
267
|
items.push(h("div", { class: "empty bg" }, goal * 2));
|
|
275
|
-
items.push(h("div", { class: "gift bw" },
|
|
268
|
+
items.push(h("div", { class: "gift bw" }, h(Gift, null)));
|
|
276
269
|
}
|
|
277
270
|
else {
|
|
278
271
|
items.push(h("div", { class: "remain" }));
|
|
@@ -283,7 +276,7 @@ export function ProgressBarView(props) {
|
|
|
283
276
|
columns += "0fr ";
|
|
284
277
|
items.push(h("div", { class: "filled" }));
|
|
285
278
|
items.push(h("div", { class: "progress bg" }, i));
|
|
286
|
-
items.push(h("div", { class: "gift" },
|
|
279
|
+
items.push(h("div", { class: "gift" }, h(Gift, null)));
|
|
287
280
|
}
|
|
288
281
|
else {
|
|
289
282
|
items.push(h("div", { class: "filled" }));
|
|
@@ -297,7 +290,7 @@ export function ProgressBarView(props) {
|
|
|
297
290
|
if (repetitions > 2) {
|
|
298
291
|
columns += "0fr 0fr ";
|
|
299
292
|
items.push(h("div", { class: "progress bg" }, goal * (finite - 2)));
|
|
300
|
-
items.push(h("div", { class: "gift start" },
|
|
293
|
+
items.push(h("div", { class: "gift start" }, h(Gift, null)));
|
|
301
294
|
}
|
|
302
295
|
for (let i = 1; i < goal * 2 + 1; i++) {
|
|
303
296
|
columns += ratio + "fr 0fr ";
|
|
@@ -306,20 +299,20 @@ export function ProgressBarView(props) {
|
|
|
306
299
|
columns += "0fr ";
|
|
307
300
|
items.push(h("div", { class: "remain" }));
|
|
308
301
|
items.push(h("div", { class: "progress bg" }, goal * (finite - 1)));
|
|
309
|
-
items.push(h("div", { class: "gift bw" },
|
|
302
|
+
items.push(h("div", { class: "gift bw" }, h(Gift, null)));
|
|
310
303
|
}
|
|
311
304
|
}
|
|
312
305
|
else if (i == goal) {
|
|
313
306
|
columns += "0fr ";
|
|
314
307
|
items.push(h("div", { class: "filled" }));
|
|
315
308
|
items.push(h("div", { class: "progress bg" }, goal * (finite - 1)));
|
|
316
|
-
items.push(h("div", { class: "gift" },
|
|
309
|
+
items.push(h("div", { class: "gift" }, h(Gift, null)));
|
|
317
310
|
}
|
|
318
311
|
else if (i == goal * 2) {
|
|
319
312
|
columns += "0fr 0fr";
|
|
320
313
|
items.push(h("div", { class: "filled" }));
|
|
321
314
|
items.push(h("div", { class: "progress bg" }, goal * finite));
|
|
322
|
-
items.push(h("div", { class: "gift" },
|
|
315
|
+
items.push(h("div", { class: "gift" }, h(Gift, null)));
|
|
323
316
|
}
|
|
324
317
|
else {
|
|
325
318
|
items.push(h("div", { class: "filled" }));
|
|
@@ -333,7 +326,7 @@ export function ProgressBarView(props) {
|
|
|
333
326
|
let ratio = 1 / goal;
|
|
334
327
|
columns += "0fr 0fr ";
|
|
335
328
|
items.push(h("div", { class: "progress bg" }, goal * (repetitions - 1)));
|
|
336
|
-
items.push(h("div", { class: "gift start" },
|
|
329
|
+
items.push(h("div", { class: "gift start" }, h(Gift, null)));
|
|
337
330
|
for (let i = 1; i < goal * 2 + 1; i++) {
|
|
338
331
|
columns += ratio + "fr 0fr ";
|
|
339
332
|
if (i <= goal) {
|
|
@@ -341,7 +334,7 @@ export function ProgressBarView(props) {
|
|
|
341
334
|
columns += "0fr ";
|
|
342
335
|
items.push(h("div", { class: "filled" }));
|
|
343
336
|
items.push(h("div", { class: "progress bg" }, i + goal * (repetitions - 1)));
|
|
344
|
-
items.push(h("div", { class: "gift" },
|
|
337
|
+
items.push(h("div", { class: "gift" }, h(Gift, null)));
|
|
345
338
|
}
|
|
346
339
|
else {
|
|
347
340
|
items.push(h("div", { class: "filled" }));
|
|
@@ -353,7 +346,7 @@ export function ProgressBarView(props) {
|
|
|
353
346
|
columns += "0fr 0fr";
|
|
354
347
|
items.push(h("div", { class: "remain" }));
|
|
355
348
|
items.push(h("div", { class: "empty bg" }, i + goal * (repetitions - 1)));
|
|
356
|
-
items.push(h("div", { class: "gift bw" },
|
|
349
|
+
items.push(h("div", { class: "gift bw" }, h(Gift, null)));
|
|
357
350
|
}
|
|
358
351
|
else {
|
|
359
352
|
items.push(h("div", { class: "remain" }));
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import jss from "jss";
|
|
3
3
|
import preset from "jss-preset-default";
|
|
4
|
-
import { HostBlock } from "../../global/mixins";
|
|
5
4
|
import * as SVGs from "./SVGs";
|
|
6
5
|
import { ProgressBarView, } from "./progress-bar/progress-bar-view";
|
|
7
6
|
import { DateTime } from "luxon";
|
|
7
|
+
import { intl } from "../../global/global";
|
|
8
8
|
export function TaskCardView(props) {
|
|
9
|
-
// console.log({ props });
|
|
10
9
|
const checkmark_circle = SVGs.checkmark_circle();
|
|
11
10
|
const checkmark_filled = SVGs.checkmark_filled();
|
|
12
11
|
const arrow_left_right = SVGs.arrow_left_right();
|
|
13
12
|
const style = {
|
|
14
|
-
HostBlock: HostBlock,
|
|
15
13
|
TaskCard: {
|
|
14
|
+
display: "inline-block",
|
|
15
|
+
width: "100%",
|
|
16
16
|
"& .main": {
|
|
17
17
|
position: "relative",
|
|
18
18
|
boxSizing: "border-box",
|
|
19
|
-
minWidth: "347px",
|
|
19
|
+
// minWidth: "347px",
|
|
20
20
|
background: "var(--sl-color-neutral-0)",
|
|
21
21
|
border: "1px solid var(--sl-color-neutral-200)",
|
|
22
22
|
borderRadius: "var(--sl-border-radius-medium)",
|
|
@@ -29,7 +29,7 @@ export function TaskCardView(props) {
|
|
|
29
29
|
borderColor: "var(--sl-color-primary-500)",
|
|
30
30
|
},
|
|
31
31
|
"& .main.expired": {
|
|
32
|
-
color: "var(--sl-color-neutral-
|
|
32
|
+
color: "var(--sl-color-neutral-600)",
|
|
33
33
|
background: "var(--sl-color-neutral-50)",
|
|
34
34
|
},
|
|
35
35
|
"& .title": {
|
|
@@ -41,17 +41,43 @@ export function TaskCardView(props) {
|
|
|
41
41
|
margin: "var(--sl-spacing-medium)",
|
|
42
42
|
},
|
|
43
43
|
"& .container.subdued": {
|
|
44
|
-
opacity: "0.
|
|
44
|
+
opacity: "0.45",
|
|
45
45
|
},
|
|
46
46
|
"& .container > div": {
|
|
47
47
|
margin: "var(--sl-spacing-medium) 0",
|
|
48
48
|
},
|
|
49
49
|
},
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
NotStarted: {
|
|
51
|
+
padding: "var(--sl-spacing-medium)",
|
|
52
|
+
color: "var(--sl-color-primary-600)",
|
|
53
|
+
border: "1px solid var(--sl-color-neutral-200)",
|
|
54
|
+
borderRadius: "var(--sl-border-radius-medium) var(--sl-border-radius-medium) 0 0",
|
|
55
|
+
borderBottom: "none",
|
|
56
|
+
background: "var(--sl-color-primary-50)",
|
|
57
|
+
fontWeight: "var(--sl-font-weight-semibold)",
|
|
58
|
+
lineHeight: "var(--sl-line-height-dense)",
|
|
59
|
+
"& .icon": {
|
|
60
|
+
position: "relative",
|
|
61
|
+
top: "0.1em",
|
|
62
|
+
marginRight: "var(--sl-spacing-small)",
|
|
63
|
+
color: "var(--sl-color-primary-500)",
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
Ended: {
|
|
67
|
+
padding: "var(--sl-spacing-medium)",
|
|
53
68
|
color: "var(--sl-color-warning-600)",
|
|
69
|
+
border: "1px solid var(--sl-color-neutral-200)",
|
|
70
|
+
borderRadius: "var(--sl-border-radius-medium) var(--sl-border-radius-medium) 0 0",
|
|
71
|
+
borderBottom: "none",
|
|
72
|
+
background: "var(--sl-color-warning-50)",
|
|
54
73
|
fontWeight: "var(--sl-font-weight-semibold)",
|
|
74
|
+
lineHeight: "var(--sl-line-height-dense)",
|
|
75
|
+
"& .icon": {
|
|
76
|
+
position: "relative",
|
|
77
|
+
top: "0.1em",
|
|
78
|
+
marginRight: "var(--sl-spacing-small)",
|
|
79
|
+
color: "var(--sl-color-warning-500)",
|
|
80
|
+
},
|
|
55
81
|
},
|
|
56
82
|
Header: {
|
|
57
83
|
display: "flex",
|
|
@@ -122,7 +148,7 @@ export function TaskCardView(props) {
|
|
|
122
148
|
},
|
|
123
149
|
},
|
|
124
150
|
"& .neutral": {
|
|
125
|
-
color: "var(--sl-color-neutral-
|
|
151
|
+
color: "var(--sl-color-neutral-600)",
|
|
126
152
|
},
|
|
127
153
|
},
|
|
128
154
|
};
|
|
@@ -141,16 +167,42 @@ export function TaskCardView(props) {
|
|
|
141
167
|
const taskEnded = props.showExpiry && dateEnd <= dateToday;
|
|
142
168
|
const taskNotStarted = props.showExpiry && dateToday <= dateStart;
|
|
143
169
|
const taskUnavailable = taskEnded || taskNotStarted;
|
|
170
|
+
const vanillaStyle = `
|
|
171
|
+
:host{
|
|
172
|
+
display: block;
|
|
173
|
+
margin-bottom: 24px;
|
|
174
|
+
}
|
|
175
|
+
`;
|
|
144
176
|
return (h("div", { class: sheet.classes.TaskCard },
|
|
145
|
-
h("
|
|
177
|
+
h("style", { type: "text/css" },
|
|
178
|
+
styleString,
|
|
179
|
+
vanillaStyle),
|
|
180
|
+
!props.loading && taskNotStarted && (h("div", { class: sheet.classes.NotStarted },
|
|
181
|
+
h("span", { class: "icon" },
|
|
182
|
+
h("sl-icon", { name: "info-circle-fill" })),
|
|
183
|
+
intl.formatMessage({
|
|
184
|
+
id: "startsOnMessage",
|
|
185
|
+
defaultMessage: props.startsOnMessage,
|
|
186
|
+
}, {
|
|
187
|
+
startDate: dateStart.toLocaleString(DateTime.DATE_MED),
|
|
188
|
+
}))),
|
|
189
|
+
!props.loading && taskEnded && (h("div", { class: sheet.classes.Ended },
|
|
190
|
+
h("span", { class: "icon" },
|
|
191
|
+
h("sl-icon", { name: "exclamation-triangle-fill" })),
|
|
192
|
+
intl.formatMessage({
|
|
193
|
+
id: "endedMessage",
|
|
194
|
+
defaultMessage: props.endedMessage,
|
|
195
|
+
}, {
|
|
196
|
+
endDate: dateEnd.toLocaleString(DateTime.DATE_MED),
|
|
197
|
+
}))),
|
|
198
|
+
h("div", { style: {
|
|
199
|
+
borderRadius: taskUnavailable &&
|
|
200
|
+
"0 0 var(--sl-border-radius-medium) var(--sl-border-radius-medium)",
|
|
201
|
+
}, class: taskUnavailable
|
|
146
202
|
? "main expired"
|
|
147
203
|
: taskComplete
|
|
148
204
|
? "main complete"
|
|
149
205
|
: "main" },
|
|
150
|
-
h("style", { type: "text/css" }, styleString),
|
|
151
|
-
taskUnavailable && (h("div", { class: sheet.classes.Expired }, taskEnded
|
|
152
|
-
? "Ended " + dateEnd.toLocaleString(DateTime.DATE_MED)
|
|
153
|
-
: "Starts " + dateStart.toLocaleString(DateTime.DATE_MED))),
|
|
154
206
|
h("div", { class: taskComplete || taskUnavailable ? "container subdued" : "container" },
|
|
155
207
|
h("div", { class: sheet.classes.Header }, props.loading ? (h("sl-skeleton", { style: { width: "22%", margin: "0" } })) : (h("div", null,
|
|
156
208
|
showComplete && (h("span", { class: taskUnavailable ? "icon neutral" : "icon" }, taskComplete ? checkmark_filled : checkmark_circle)),
|
|
@@ -171,13 +223,21 @@ export function TaskCardView(props) {
|
|
|
171
223
|
? taskUnavailable
|
|
172
224
|
? "neutral"
|
|
173
225
|
: "success"
|
|
174
|
-
: "" },
|
|
175
|
-
|
|
226
|
+
: "" }, intl.formatMessage({
|
|
227
|
+
id: "completedMessage",
|
|
228
|
+
defaultMessage: props.completedText,
|
|
229
|
+
}, {
|
|
230
|
+
finite: props.finite,
|
|
231
|
+
count: props.finite
|
|
176
232
|
? Math.min(repetitions, props.finite)
|
|
177
|
-
: repetitions
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
233
|
+
: repetitions,
|
|
234
|
+
})))),
|
|
235
|
+
props.showExpiry && !taskUnavailable && (h("span", null, intl.formatMessage({
|
|
236
|
+
id: "expiryMessage",
|
|
237
|
+
defaultMessage: props.expiryMessage,
|
|
238
|
+
}, {
|
|
239
|
+
endDate: dateEnd.toLocaleString(DateTime.DATE_FULL),
|
|
240
|
+
})))),
|
|
181
241
|
h("sl-button", { class: taskUnavailable
|
|
182
242
|
? "action neutral"
|
|
183
243
|
: taskComplete
|
|
@@ -206,6 +266,7 @@ function Details(props) {
|
|
|
206
266
|
},
|
|
207
267
|
transformOrigin: "50% 37%",
|
|
208
268
|
transition: "transform var(--sl-transition-medium) ease",
|
|
269
|
+
cursor: "pointer",
|
|
209
270
|
},
|
|
210
271
|
"& input:checked ~ .summary": {
|
|
211
272
|
transition: "all var(--sl-transition-medium) ease",
|
|
@@ -52,12 +52,34 @@ export class TaskCard {
|
|
|
52
52
|
* @uiName Show Goal Expiry
|
|
53
53
|
*/
|
|
54
54
|
this.showExpiry = false;
|
|
55
|
+
/**
|
|
56
|
+
* @uiName Expiry Date Message
|
|
57
|
+
*/
|
|
58
|
+
this.expiryMessage = "Ends {endDate}";
|
|
55
59
|
/**
|
|
56
60
|
* @uiName Reward Duration
|
|
57
61
|
* @uiWidget DateRange
|
|
58
62
|
* @uiOptions {"allowPastDates":true, "months": 1}
|
|
59
63
|
*/
|
|
60
64
|
this.rewardDuration = "/";
|
|
65
|
+
/**
|
|
66
|
+
* Shown to users before the start of the task duration.
|
|
67
|
+
*
|
|
68
|
+
* @uiName Start Date Message
|
|
69
|
+
*/
|
|
70
|
+
this.startsOnMessage = "Starts {startDate}";
|
|
71
|
+
/**
|
|
72
|
+
* Shown to users after the end of the task duration.
|
|
73
|
+
*
|
|
74
|
+
* @uiName Ended Date Message
|
|
75
|
+
*/
|
|
76
|
+
this.endedMessage = "Ended {endDate}";
|
|
77
|
+
/**
|
|
78
|
+
* Displays the amount of times that a user has completed a repeatable task.
|
|
79
|
+
*
|
|
80
|
+
* @uiName Completed Count Text
|
|
81
|
+
*/
|
|
82
|
+
this.completedText = "Completed {finite, select, 0 {{count, plural, =1 {{count} time} other {{count} times}}} other {{count}/{finite} times}}";
|
|
61
83
|
/**
|
|
62
84
|
* @uiName CTA Button Text
|
|
63
85
|
*/
|
|
@@ -83,8 +105,8 @@ export class TaskCard {
|
|
|
83
105
|
disconnectedCallback() { }
|
|
84
106
|
render() {
|
|
85
107
|
const { props } = isDemo() ? useDemoBigStat(this) : useBigStat(this);
|
|
86
|
-
const { value,
|
|
87
|
-
return (h(TaskCardView, Object.assign({ progress: value, loading:
|
|
108
|
+
const { value, loading } = props;
|
|
109
|
+
return (h(TaskCardView, Object.assign({ progress: value, loading: loading }, getProps(this))));
|
|
88
110
|
}
|
|
89
111
|
static get is() { return "sqm-task-card"; }
|
|
90
112
|
static get encapsulation() { return "shadow"; }
|
|
@@ -319,6 +341,27 @@ export class TaskCard {
|
|
|
319
341
|
"reflect": false,
|
|
320
342
|
"defaultValue": "false"
|
|
321
343
|
},
|
|
344
|
+
"expiryMessage": {
|
|
345
|
+
"type": "string",
|
|
346
|
+
"mutable": false,
|
|
347
|
+
"complexType": {
|
|
348
|
+
"original": "string",
|
|
349
|
+
"resolved": "string",
|
|
350
|
+
"references": {}
|
|
351
|
+
},
|
|
352
|
+
"required": false,
|
|
353
|
+
"optional": false,
|
|
354
|
+
"docs": {
|
|
355
|
+
"tags": [{
|
|
356
|
+
"text": "Expiry Date Message",
|
|
357
|
+
"name": "uiName"
|
|
358
|
+
}],
|
|
359
|
+
"text": ""
|
|
360
|
+
},
|
|
361
|
+
"attribute": "expiry-message",
|
|
362
|
+
"reflect": false,
|
|
363
|
+
"defaultValue": "\"Ends {endDate}\""
|
|
364
|
+
},
|
|
322
365
|
"rewardDuration": {
|
|
323
366
|
"type": "string",
|
|
324
367
|
"mutable": false,
|
|
@@ -346,6 +389,69 @@ export class TaskCard {
|
|
|
346
389
|
"reflect": false,
|
|
347
390
|
"defaultValue": "\"/\""
|
|
348
391
|
},
|
|
392
|
+
"startsOnMessage": {
|
|
393
|
+
"type": "string",
|
|
394
|
+
"mutable": false,
|
|
395
|
+
"complexType": {
|
|
396
|
+
"original": "string",
|
|
397
|
+
"resolved": "string",
|
|
398
|
+
"references": {}
|
|
399
|
+
},
|
|
400
|
+
"required": false,
|
|
401
|
+
"optional": false,
|
|
402
|
+
"docs": {
|
|
403
|
+
"tags": [{
|
|
404
|
+
"text": "Start Date Message",
|
|
405
|
+
"name": "uiName"
|
|
406
|
+
}],
|
|
407
|
+
"text": "Shown to users before the start of the task duration."
|
|
408
|
+
},
|
|
409
|
+
"attribute": "starts-on-message",
|
|
410
|
+
"reflect": false,
|
|
411
|
+
"defaultValue": "\"Starts {startDate}\""
|
|
412
|
+
},
|
|
413
|
+
"endedMessage": {
|
|
414
|
+
"type": "string",
|
|
415
|
+
"mutable": false,
|
|
416
|
+
"complexType": {
|
|
417
|
+
"original": "string",
|
|
418
|
+
"resolved": "string",
|
|
419
|
+
"references": {}
|
|
420
|
+
},
|
|
421
|
+
"required": false,
|
|
422
|
+
"optional": false,
|
|
423
|
+
"docs": {
|
|
424
|
+
"tags": [{
|
|
425
|
+
"text": "Ended Date Message",
|
|
426
|
+
"name": "uiName"
|
|
427
|
+
}],
|
|
428
|
+
"text": "Shown to users after the end of the task duration."
|
|
429
|
+
},
|
|
430
|
+
"attribute": "ended-message",
|
|
431
|
+
"reflect": false,
|
|
432
|
+
"defaultValue": "\"Ended {endDate}\""
|
|
433
|
+
},
|
|
434
|
+
"completedText": {
|
|
435
|
+
"type": "string",
|
|
436
|
+
"mutable": false,
|
|
437
|
+
"complexType": {
|
|
438
|
+
"original": "string",
|
|
439
|
+
"resolved": "string",
|
|
440
|
+
"references": {}
|
|
441
|
+
},
|
|
442
|
+
"required": false,
|
|
443
|
+
"optional": false,
|
|
444
|
+
"docs": {
|
|
445
|
+
"tags": [{
|
|
446
|
+
"text": "Completed Count Text",
|
|
447
|
+
"name": "uiName"
|
|
448
|
+
}],
|
|
449
|
+
"text": "Displays the amount of times that a user has completed a repeatable task."
|
|
450
|
+
},
|
|
451
|
+
"attribute": "completed-text",
|
|
452
|
+
"reflect": false,
|
|
453
|
+
"defaultValue": "\"Completed {finite, select, 0 {{count, plural, =1 {{count} time} other {{count} times}}} other {{count}/{finite} times}}\""
|
|
454
|
+
},
|
|
349
455
|
"buttonText": {
|
|
350
456
|
"type": "string",
|
|
351
457
|
"mutable": false,
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Build a font CSS URL using the Google Fonts CSS API
|
|
3
|
+
*
|
|
4
|
+
* Docs: https://developers.google.com/fonts/docs/css2
|
|
5
|
+
*
|
|
6
|
+
* @param fonts - the font family or families to load
|
|
7
|
+
* @returns url to a .css file
|
|
8
|
+
*/
|
|
9
|
+
export function buildFontsCssUrl(...fonts) {
|
|
10
|
+
const queryString = fonts.map(f => `family=${encodeURIComponent(f)}`).join("&");
|
|
11
|
+
return `https://fonts.googleapis.com/css2?${queryString}`;
|
|
12
|
+
}
|
|
@@ -19,7 +19,7 @@ try {
|
|
|
19
19
|
// SlAlert.register();
|
|
20
20
|
registerIconLibrary("default", {
|
|
21
21
|
// same link that shoelace uses internally
|
|
22
|
-
resolver: (name) => `https://fast.ssqt.io/npm/bootstrap-icons@1.2
|
|
22
|
+
resolver: (name) => `https://fast.ssqt.io/npm/bootstrap-icons@1.7.2/icons/${name}.svg`,
|
|
23
23
|
});
|
|
24
24
|
// SlAlert.register();
|
|
25
25
|
customElements.define("sl-alert", SlAlert);
|
|
@@ -503,11 +503,11 @@ html {
|
|
|
503
503
|
--sl-line-height-dense: 1.4;
|
|
504
504
|
--sl-line-height-normal: 1.8;
|
|
505
505
|
--sl-line-height-loose: 2.2;
|
|
506
|
-
--sl-focus-ring-color-primary:
|
|
507
|
-
--sl-focus-ring-color-success:
|
|
508
|
-
--sl-focus-ring-color-info:
|
|
509
|
-
--sl-focus-ring-color-warning:
|
|
510
|
-
--sl-focus-ring-color-danger: #
|
|
506
|
+
--sl-focus-ring-color-primary: var(--sl-color-primary-100);
|
|
507
|
+
--sl-focus-ring-color-success: var(--sl-color-success-100);
|
|
508
|
+
--sl-focus-ring-color-info: var(--sl-color-info-100);
|
|
509
|
+
--sl-focus-ring-color-warning: var(--sl-color-warning-100);
|
|
510
|
+
--sl-focus-ring-color-danger: #var(--sl-color-danger-100);;
|
|
511
511
|
--sl-focus-ring-width: 3px;
|
|
512
512
|
--sl-button-font-size-small: var(--sl-font-size-x-small);
|
|
513
513
|
--sl-button-font-size-medium: var(--sl-font-size-small);
|
|
@@ -504,11 +504,11 @@ html {
|
|
|
504
504
|
--sl-line-height-dense: 1.4;
|
|
505
505
|
--sl-line-height-normal: 1.8;
|
|
506
506
|
--sl-line-height-loose: 2.2;
|
|
507
|
-
--sl-focus-ring-color-primary:
|
|
508
|
-
--sl-focus-ring-color-success:
|
|
509
|
-
--sl-focus-ring-color-info:
|
|
510
|
-
--sl-focus-ring-color-warning:
|
|
511
|
-
--sl-focus-ring-color-danger: #
|
|
507
|
+
--sl-focus-ring-color-primary: var(--sl-color-primary-100);
|
|
508
|
+
--sl-focus-ring-color-success: var(--sl-color-success-100);
|
|
509
|
+
--sl-focus-ring-color-info: var(--sl-color-info-100);
|
|
510
|
+
--sl-focus-ring-color-warning: var(--sl-color-warning-100);
|
|
511
|
+
--sl-focus-ring-color-danger: #var(--sl-color-danger-100);;
|
|
512
512
|
--sl-focus-ring-width: 3px;
|
|
513
513
|
--sl-button-font-size-small: var(--sl-font-size-x-small);
|
|
514
514
|
--sl-button-font-size-medium: var(--sl-font-size-small);
|