@saasquatch/mint-components 1.3.1-7 → 1.3.2-3
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 +23 -31
- package/dist/cjs/{ShadowViewAddon-b021dc8c.js → ShadowViewAddon-75c18b96.js} +1 -1
- package/dist/cjs/{global-5610b310.js → global-041b5338.js} +334 -176
- package/dist/cjs/{sqm-leaderboard-rank-view-c287ac06.js → index-19309631.js} +3 -10
- package/dist/cjs/{index.module-03ce03c2.js → index.module-6a7bda18.js} +1 -0
- package/dist/cjs/loader.cjs.js +4 -3
- package/dist/cjs/mint-components.cjs.js +4 -3
- package/dist/cjs/{re-render-b5efae5f.js → re-render-7cdb2d81.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_27.cjs.entry.js} +1261 -62
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +1 -1
- package/dist/cjs/sqm-leaderboard-rank-view-35015d30.js +10 -0
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +9 -7
- 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-153503f0.js → sqm-navigation-sidebar-item-view-e99b4a10.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-1d8728f9.js → sqm-portal-email-verification-view-5e955797.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +4 -3
- package/dist/cjs/{sqm-portal-footer-view-dc4b0667.js → sqm-portal-footer-view-9089feb7.js} +1 -1
- package/dist/cjs/sqm-portal-footer.cjs.entry.js +4 -3
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +1 -1
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-profile-view-a7519f19.js → sqm-portal-profile-view-a23ea292.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +4 -3
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +1 -1
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +1 -1
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +1 -1
- package/dist/cjs/sqm-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-rewards-table.cjs.entry.js +332 -0
- package/dist/cjs/sqm-share-code.cjs.entry.js +1 -1
- package/dist/cjs/sqm-task-card-view-57066e67.js +476 -0
- package/dist/cjs/sqm-task-card.cjs.entry.js +56 -0
- package/dist/cjs/tslib.es6-0e81fab1.js +56 -0
- package/dist/cjs/useChildElements-428ca5b8.js +21 -0
- package/dist/cjs/{useDemoBigStat-d7bd93f2.js → useDemoBigStat-17e61803.js} +3 -2
- package/dist/collection/collection-manifest.json +6 -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 +2 -2
- package/dist/collection/{stories → components/sqm-big-stat}/UseBigStat.stories.js +4 -4
- package/dist/collection/components/sqm-big-stat/sqm-big-stat.js +0 -20
- package/dist/collection/components/sqm-big-stat/useBigStat.js +2 -1
- 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/{stories → components/sqm-portal-footer}/PortalFooter.stories.js +2 -2
- package/dist/collection/{stories → components/sqm-portal-forgot-password}/PortalForgotPassword.stories.js +3 -3
- 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 -2
- 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 -2
- package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +1 -1
- package/dist/collection/{stories → components/sqm-portal-reset-password}/PortalResetPassword.stories.js +3 -3
- package/dist/collection/{stories → components/sqm-portal-verify-email}/PortalVerifyEmail.stories.js +3 -3
- 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/SVGs.js +17 -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/progressBar.js +59 -0
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +243 -0
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +120 -0
- package/dist/collection/components/sqm-reward-exchange-list/useRewardExchangeList.js +197 -0
- package/dist/collection/{stories → components/sqm-rewards-table}/Router.stories.js +1 -1
- package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +222 -0
- package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +195 -0
- 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/{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/sqm-stencilbook.js +40 -36
- package/dist/collection/components/sqm-task-card/Matrix.js +63 -0
- package/dist/collection/components/sqm-task-card/SVGs.js +15 -0
- package/dist/collection/components/sqm-task-card/TaskCard.stories.js +499 -0
- package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +458 -0
- package/dist/collection/components/sqm-task-card/sqm-task-card.js +324 -0
- package/dist/collection/{stories → components/sqm-user-name}/UserName.stories.js +3 -3
- package/dist/collection/global/styles.js +278 -69
- package/dist/collection/global/styles.ts +278 -69
- 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-2e3ea31f.js → ShadowViewAddon-fff5d35d.js} +1 -1
- package/dist/esm/{global-cc82aa03.js → global-5ecbf81a.js} +281 -123
- package/dist/esm/{sqm-leaderboard-rank-view-4f48da0c.js → index-2f5dd0a1.js} +3 -9
- package/dist/esm/{index.module-33c313d2.js → index.module-f80561db.js} +1 -1
- package/dist/esm/loader.js +4 -3
- package/dist/esm/mint-components.js +4 -3
- package/dist/esm/{re-render-338d931e.js → re-render-9ab5fe0f.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_27.entry.js} +1257 -59
- package/dist/esm/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm/sqm-leaderboard-rank-view-da91f5f3.js +8 -0
- package/dist/esm/sqm-leaderboard-rank.entry.js +5 -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-5dfa535f.js → sqm-navigation-sidebar-item-view-8a3f374b.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-87bf8191.js → sqm-portal-email-verification-view-90781be2.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +4 -3
- package/dist/esm/{sqm-portal-footer-view-da135cff.js → sqm-portal-footer-view-c317518e.js} +1 -1
- package/dist/esm/sqm-portal-footer.entry.js +4 -3
- package/dist/esm/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm/sqm-portal-logout.entry.js +1 -1
- package/dist/esm/{sqm-portal-profile-view-8781176c.js → sqm-portal-profile-view-824c8242.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +4 -3
- package/dist/esm/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm/sqm-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-rewards-table.entry.js +328 -0
- package/dist/esm/sqm-share-code.entry.js +1 -1
- package/dist/esm/sqm-task-card-view-2ee495af.js +474 -0
- package/dist/esm/sqm-task-card.entry.js +52 -0
- package/dist/esm/tslib.es6-7ac9d7e4.js +53 -0
- package/dist/esm/useChildElements-506f00d0.js +19 -0
- package/dist/esm/{useDemoBigStat-bb14d844.js → useDemoBigStat-b71fe122.js} +3 -2
- package/dist/esm-es5/{ShadowViewAddon-2e3ea31f.js → ShadowViewAddon-fff5d35d.js} +1 -1
- package/dist/esm-es5/{global-cc82aa03.js → global-5ecbf81a.js} +2 -16
- package/dist/esm-es5/index-2f5dd0a1.js +1 -0
- package/dist/esm-es5/{index.module-33c313d2.js → index.module-f80561db.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-338d931e.js → re-render-9ab5fe0f.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_27.entry.js +1 -0
- package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank-view-da91f5f3.js +1 -0
- 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-5dfa535f.js → sqm-navigation-sidebar-item-view-8a3f374b.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-87bf8191.js → sqm-portal-email-verification-view-90781be2.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-footer-view-da135cff.js → sqm-portal-footer-view-c317518e.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-8781176c.js → sqm-portal-profile-view-824c8242.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-rewards-table.entry.js +1 -0
- package/dist/esm-es5/sqm-share-code.entry.js +1 -1
- package/dist/esm-es5/sqm-task-card-view-2ee495af.js +1 -0
- package/dist/esm-es5/sqm-task-card.entry.js +1 -0
- package/dist/esm-es5/tslib.es6-7ac9d7e4.js +15 -0
- package/dist/esm-es5/useChildElements-506f00d0.js +1 -0
- package/dist/esm-es5/{useDemoBigStat-bb14d844.js → useDemoBigStat-b71fe122.js} +1 -1
- package/dist/mint-components/assets/Reward-icon.png +0 -0
- package/dist/mint-components/global/styles.ts +278 -69
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-846cebe7.js → p-00190438.js} +1 -1
- package/dist/mint-components/{p-ead730e0.system.entry.js → p-04516274.system.entry.js} +1 -1
- package/dist/mint-components/{p-f02360c9.js → p-05cca77b.js} +1 -1
- package/dist/mint-components/{p-775529b9.system.entry.js → p-0688c9c2.system.entry.js} +1 -1
- package/dist/mint-components/p-11c75956.entry.js +1 -0
- package/dist/mint-components/{p-713ea21e.system.entry.js → p-16535642.system.entry.js} +1 -1
- package/dist/mint-components/p-16da5146.entry.js +1 -0
- package/dist/mint-components/{p-c43f3b6b.system.js → p-1813b9b9.system.js} +1 -1
- package/dist/mint-components/p-189219ee.system.js +1 -0
- package/dist/mint-components/{p-2a6f038c.system.entry.js → p-1ac9c24b.system.entry.js} +1 -1
- package/dist/mint-components/{p-34dea514.system.entry.js → p-1b414d8f.system.entry.js} +1 -1
- package/dist/mint-components/p-1e248afc.system.entry.js +1 -0
- package/dist/mint-components/{p-871ed4c8.system.js → p-1fb688a9.system.js} +1 -1
- package/dist/mint-components/p-21dfdeb8.entry.js +1 -0
- package/dist/mint-components/p-23a0bdae.entry.js +1 -0
- package/dist/mint-components/{p-7b7613cf.system.entry.js → p-2a025d2a.system.entry.js} +1 -1
- package/dist/mint-components/{p-4a313a31.js → p-2bce988c.js} +1 -1
- package/dist/mint-components/{p-2bfc61a5.entry.js → p-2f171597.entry.js} +1 -1
- package/dist/mint-components/{p-8e87084e.system.js → p-3052c913.system.js} +1 -1
- package/dist/mint-components/p-337b49ee.entry.js +1 -0
- package/dist/mint-components/p-353b4413.system.js +1 -0
- package/dist/mint-components/{p-1996e9c8.system.js → p-3b0acfcd.system.js} +1 -1
- package/dist/mint-components/{p-772341ce.system.entry.js → p-3fd33dee.system.entry.js} +1 -1
- package/dist/mint-components/{p-38fbdc3a.js → p-405a9253.js} +2 -2
- package/dist/mint-components/{p-e83632dd.js → p-434ee9c1.js} +1 -1
- package/dist/mint-components/{p-086aaa1e.system.entry.js → p-4ba2faf2.system.entry.js} +1 -1
- package/dist/mint-components/p-4cc79fb9.entry.js +288 -0
- package/dist/mint-components/{p-7c3a270c.system.entry.js → p-505f5c59.system.entry.js} +1 -1
- package/dist/mint-components/p-55e02769.entry.js +13 -0
- package/dist/mint-components/{p-c434c33a.system.entry.js → p-57a53dbd.system.entry.js} +1 -1
- package/dist/mint-components/p-58d9b2f0.js +15 -0
- package/dist/mint-components/{p-e2fc8abf.system.entry.js → p-5dfc6804.system.entry.js} +1 -1
- package/dist/mint-components/{p-01722953.entry.js → p-5f28af29.entry.js} +1 -1
- package/dist/mint-components/{p-0f84ebfe.entry.js → p-6cdc70f4.entry.js} +1 -1
- package/dist/mint-components/p-6d545e13.entry.js +1 -0
- package/dist/mint-components/p-70837c1c.entry.js +49 -0
- package/dist/mint-components/p-71d942af.entry.js +9 -0
- package/dist/mint-components/p-7c138c84.entry.js +1 -0
- package/dist/mint-components/{p-16d0ec52.system.entry.js → p-7c13e32e.system.entry.js} +1 -1
- package/dist/mint-components/p-7c261ea0.system.entry.js +1 -0
- package/dist/mint-components/p-8034f81c.system.entry.js +1 -0
- package/dist/mint-components/{p-d1604020.system.js → p-82ab88fe.system.js} +1 -1
- package/dist/mint-components/{p-c32fb8e5.entry.js → p-82d7a2ba.entry.js} +1 -1
- package/dist/mint-components/{p-a011c13c.entry.js → p-844f9bad.entry.js} +1 -1
- package/dist/mint-components/{p-48cdbd66.js → p-844fd903.js} +1 -1
- package/dist/mint-components/p-8c16f04e.js +1 -0
- package/dist/mint-components/p-8c605e30.system.entry.js +1 -0
- package/dist/mint-components/{p-4843c461.js → p-8e37c08d.js} +1 -1
- package/dist/mint-components/p-8f5e2af4.entry.js +1 -0
- package/dist/mint-components/p-91d39961.system.js +1 -0
- package/dist/mint-components/{p-ff3c9d53.system.entry.js → p-a0045707.system.entry.js} +1 -1
- package/dist/mint-components/p-a0cfd3d9.system.js +1 -0
- package/dist/mint-components/{p-f4a9712a.entry.js → p-a4a00461.entry.js} +2 -2
- package/dist/mint-components/{p-156464b2.entry.js → p-a7f0b2f6.entry.js} +1 -1
- package/dist/mint-components/{p-b3e976e0.entry.js → p-aba21f90.entry.js} +1 -1
- package/dist/mint-components/{p-dd0b0a4a.system.entry.js → p-af06ea5b.system.entry.js} +1 -1
- package/dist/mint-components/p-b3af1c6f.js +1 -0
- package/dist/mint-components/p-bf04a8e1.system.entry.js +1 -0
- package/dist/mint-components/p-bf055b6c.system.js +1 -0
- package/dist/mint-components/p-c3866bfa.system.entry.js +1 -0
- package/dist/mint-components/{p-e282d07b.system.entry.js → p-c9c4f31b.system.entry.js} +1 -1
- package/dist/mint-components/{p-bbb3ff09.js → p-cc3510c8.js} +1 -1
- package/dist/mint-components/{p-754060c8.system.js → p-ceeaf074.system.js} +21 -35
- package/dist/mint-components/{p-b1e03222.entry.js → p-d3787c3a.entry.js} +1 -1
- package/dist/mint-components/{p-c1cadf29.entry.js → p-d9cc041f.entry.js} +1 -1
- package/dist/mint-components/{p-683a4971.system.entry.js → p-db723323.system.entry.js} +1 -1
- package/dist/mint-components/p-dd6a666e.system.js +15 -0
- package/dist/mint-components/p-dfc3cf82.js +1 -0
- package/dist/mint-components/p-e19a57a4.system.entry.js +1 -0
- package/dist/mint-components/p-e22eed7b.entry.js +1 -0
- package/dist/mint-components/p-e2ebe90c.entry.js +1 -0
- package/dist/mint-components/{p-1369c11a.system.entry.js → p-e475a5ff.system.entry.js} +1 -1
- package/dist/mint-components/p-e78a5a91.js +1 -0
- package/dist/mint-components/{p-36de7c74.entry.js → p-e9ab90a1.entry.js} +1 -1
- package/dist/mint-components/p-ecbabf6e.system.js +1 -0
- package/dist/mint-components/{p-b4fc47a0.js → p-f1e1086e.js} +2 -17
- package/dist/mint-components/p-f41ab9e1.system.js +1 -0
- package/dist/mint-components/{p-fb185ffd.system.js → p-f87d8f53.system.js} +1 -1
- package/dist/mint-components/{p-33b57b39.system.entry.js → p-fcaa5886.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 +0 -0
- package/dist/types/components/sqm-big-stat/sqm-big-stat.d.ts +0 -6
- 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/{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/{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/{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/{stories → components/sqm-portal-reset-password}/PortalResetPassword.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-portal-verify-email}/PortalVerifyEmail.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-program-menu}/ProgramMenu.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-referral-iframe}/ReferralIframe.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-referral-table}/ReferralTable.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-referral-table}/ReferralTableCell.stories.d.ts +0 -0
- package/dist/types/{stories → components/sqm-referral-table}/ReferralTableRewardsCell.stories.d.ts +0 -0
- package/dist/types/components/sqm-reward-exchange-list/SVGs.d.ts +2 -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 +26 -0
- package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list.d.ts +20 -0
- package/dist/types/components/sqm-reward-exchange-list/useRewardExchangeList.d.ts +43 -0
- package/dist/types/{stories → components/sqm-rewards-table}/Router.stories.d.ts +0 -0
- package/dist/types/components/sqm-rewards-table/sqm-rewards-table.d.ts +32 -0
- package/dist/types/components/sqm-rewards-table/useRewardsTable.d.ts +5 -0
- package/dist/types/{stories → components/sqm-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-task-card/Matrix.d.ts +11 -0
- package/dist/types/components/sqm-task-card/SVGs.d.ts +3 -0
- package/dist/types/components/sqm-task-card/TaskCard.stories.d.ts +9 -0
- package/dist/types/components/sqm-task-card/sqm-task-card-view.d.ts +25 -0
- package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +61 -0
- package/dist/types/components/sqm-user-name/UserName.stories.d.ts +6 -0
- package/dist/types/components.d.ts +223 -10
- package/dist/types/global/android.d.ts +7 -0
- package/dist/types/global/demo.d.ts +1 -0
- package/dist/types/global/styles.d.ts +1 -1
- package/dist/types/stories/features.d.ts +4 -0
- package/dist/types/stories/templates.d.ts +4 -0
- 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 +1 -1
- package/dist/esm-es5/sqm-divided-layout_26.entry.js +0 -1
- package/dist/esm-es5/sqm-leaderboard-rank-view-4f48da0c.js +0 -1
- package/dist/mint-components/p-1a2eadd1.entry.js +0 -1
- package/dist/mint-components/p-21bb74aa.system.entry.js +0 -1
- package/dist/mint-components/p-2ad23b02.system.entry.js +0 -1
- package/dist/mint-components/p-4cabd25b.entry.js +0 -1
- package/dist/mint-components/p-4e61f958.system.js +0 -1
- package/dist/mint-components/p-5950e58a.entry.js +0 -1
- package/dist/mint-components/p-6b21186a.entry.js +0 -230
- package/dist/mint-components/p-7129015b.system.js +0 -1
- package/dist/mint-components/p-83bdbf25.js +0 -1
- package/dist/mint-components/p-8cbc24b8.entry.js +0 -9
- package/dist/mint-components/p-8d65fef3.entry.js +0 -1
- package/dist/mint-components/p-b462e84e.system.js +0 -1
- package/dist/mint-components/p-bd67990b.system.entry.js +0 -1
- package/dist/mint-components/p-c03c68c1.entry.js +0 -1
- package/dist/mint-components/p-c35bb682.system.entry.js +0 -1
- package/dist/mint-components/p-cff66d2e.entry.js +0 -1
- package/dist/mint-components/p-d482d10c.entry.js +0 -1
- package/dist/mint-components/p-d8a80855.entry.js +0 -1
- package/dist/mint-components/p-e52c77cd.entry.js +0 -13
- package/dist/mint-components/p-ee6f5a1c.system.js +0 -1
- package/dist/mint-components/p-fa20e730.entry.js +0 -1
- package/dist/mint-components/p-ff3d1ed1.system.entry.js +0 -1
- package/dist/types/stories/UserName.stories.d.ts +0 -6
|
@@ -0,0 +1,474 @@
|
|
|
1
|
+
import { h } from './index-17b4da69.js';
|
|
2
|
+
import { j as jss, c as create } from './jss-preset-default.esm-71fae192.js';
|
|
3
|
+
import { H as HostBlock } from './mixins-10353a39.js';
|
|
4
|
+
|
|
5
|
+
const checkmark_circle = () => {
|
|
6
|
+
return (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "18", height: "18", viewBox: "0 0 18 18" },
|
|
7
|
+
h("path", { fill: "currentColor", "fill-rule": "evenodd", d: "M1.636 9a7.364 7.364 0 1114.728 0A7.364 7.364 0 011.636 9zM9 0a9 9 0 100 18A9 9 0 009 0zm5.192 6.266a.982.982 0 00-1.548-1.208l-4.787 6.137-2.58-2.58a.982.982 0 00-1.39 1.388l3.367 3.366a.982.982 0 001.468-.09l5.47-7.013z", "clip-rule": "evenodd" })));
|
|
8
|
+
};
|
|
9
|
+
const arrow_left_right = () => {
|
|
10
|
+
return (h("svg", { width: 11, height: 12, fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
11
|
+
h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M10.265 2.789a.346.346 0 000-.489L8.066.101a.346.346 0 10-.489.489l1.61 1.609H2.073a.691.691 0 00-.69.691v1.728a.346.346 0 00.69 0V2.89h7.114L7.577 4.5a.346.346 0 10.49.488l2.198-2.2zM.101 9.21a.346.346 0 000 .489l2.2 2.199a.346.346 0 00.488-.489l-1.61-1.609h7.114c.382 0 .691-.31.691-.691V7.382a.346.346 0 00-.691 0V9.11H1.18L2.789 7.5a.346.346 0 10-.489-.488l-2.199 2.2z", fill: "currentColor" })));
|
|
12
|
+
};
|
|
13
|
+
const gift = () => {
|
|
14
|
+
return (h("svg", { width: 16, height: 16, fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
15
|
+
h("path", { d: "M15 5H9v11h4.5a1 1 0 001-1V9h.5a1 1 0 001-1V6a1 1 0 00-1-1zM1.5 9v6a1 1 0 001 1H7V5H1a1 1 0 00-1 1v2a1 1 0 001 1h.5z", fill: "var(--sl-color-primary-200)" }),
|
|
16
|
+
h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M1.5 9v1h13V9h-13z", fill: "var(--sl-color-primary-300)" }),
|
|
17
|
+
h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M14 2.71c0 .886-1.33 2.227-2 2.29H9v11H7.002V5H4.588C3.212 4.702 2 3.645 2 2.52 2 1.426 2.476.558 3.342.183 4.169-.176 5.125.02 5.88.545c.927.643 1.447 1.851 1.919 2.947l.123.286.12-.272C8.51 2.45 9.045 1.243 9.94.596c.793-.573 1.801-.79 2.672-.397.9.405 1.388 1.336 1.388 2.51zM10.612 1.5c.48-.347 1.056-.41 1.548 0 .428.357.45.525.506.93l.01.07c0 .599-.516 1.5-1.032 1.5-.366 0-.653-.003-.922-.006-.49-.005-.92-.01-1.657.006.14-.272.252-.533.36-.782.285-.667.534-1.246 1.187-1.718zm-5.673 0c-.233-.161-.766-.09-.987.006-.183.08-.456.32-.456 1.015 0 .674 1.092 1.257 1.092 1.257S5.454 4 7.002 4c-.527-1.305-1.273-1.951-2.063-2.5z", fill: "var(--sl-color-primary-600)" })));
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
// @ts-expect-error -- unused
|
|
21
|
+
function TaskCardView(props, children) {
|
|
22
|
+
const { points = 0, cardTitle = "Title Text", description = "Description Text", showProgressBar = false, progress = 0, goal = 1, repeatable = false, expire = false, dateExpire = "", buttonText = "Button Text", buttonLink = "www.example.com", } = props;
|
|
23
|
+
const checkmark_circle$1 = checkmark_circle();
|
|
24
|
+
const arrow_left_right$1 = arrow_left_right();
|
|
25
|
+
const style = {
|
|
26
|
+
HostBlock: HostBlock,
|
|
27
|
+
TaskCard: {
|
|
28
|
+
"& .main > div": {
|
|
29
|
+
margin: "var(--sl-spacing-medium)",
|
|
30
|
+
},
|
|
31
|
+
"& .main": {
|
|
32
|
+
position: "relative",
|
|
33
|
+
boxSizing: "border-box",
|
|
34
|
+
minWidth: "347px",
|
|
35
|
+
background: "var(--sl-color-white)",
|
|
36
|
+
border: "1px solid var(--sl-color-gray-300)",
|
|
37
|
+
borderRadius: "var(--sl-border-radius-medium)",
|
|
38
|
+
fontSize: "var(--sl-font-size-small)",
|
|
39
|
+
lineHeight: "var(--sl-line-height-dense)",
|
|
40
|
+
},
|
|
41
|
+
"& .main.complete": {
|
|
42
|
+
background: "var(--sl-color-primary-50)",
|
|
43
|
+
borderColor: "var(--sl-color-primary-700)",
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
Header: {
|
|
47
|
+
display: "flex",
|
|
48
|
+
"& .icon": {
|
|
49
|
+
alignSelf: "center",
|
|
50
|
+
lineHeight: "0",
|
|
51
|
+
color: "var(--sl-color-primary-700)",
|
|
52
|
+
fontSize: "var(--sl-font-size-large)",
|
|
53
|
+
marginRight: "var(--sl-spacing-x-small)",
|
|
54
|
+
},
|
|
55
|
+
"& .value": {
|
|
56
|
+
alignSelf: "center",
|
|
57
|
+
color: "var(--sl-color-black)",
|
|
58
|
+
fontSize: "var(--sl-font-size-x-large)",
|
|
59
|
+
fontWeight: "var(--sl-font-weight-semibold)",
|
|
60
|
+
lineHeight: "100%",
|
|
61
|
+
marginRight: "var(--sl-spacing-xx-small)",
|
|
62
|
+
},
|
|
63
|
+
"& .text": {
|
|
64
|
+
alignSelf: "end",
|
|
65
|
+
color: "var(--sl-color-gray-600)",
|
|
66
|
+
fontSize: "var(--sl-font-size-x-small)",
|
|
67
|
+
lineHeight: "var(--sl-font-size-medium)",
|
|
68
|
+
marginRight: "var(--sl-spacing-xx-small)",
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
Title: {
|
|
72
|
+
color: "var(--sl-color-black)",
|
|
73
|
+
fontSize: "var(--sl-font-size-small)",
|
|
74
|
+
},
|
|
75
|
+
Footer: {
|
|
76
|
+
display: "flex",
|
|
77
|
+
"& span": {
|
|
78
|
+
verticalAlign: "text-bottom",
|
|
79
|
+
},
|
|
80
|
+
"& .icon": {
|
|
81
|
+
verticalAlign: "bottom",
|
|
82
|
+
fontSize: "var(--sl-font-size-xx-small)",
|
|
83
|
+
marginRight: "var(--sl-spacing-xx-small)",
|
|
84
|
+
},
|
|
85
|
+
"& .text": {
|
|
86
|
+
marginTop: "auto",
|
|
87
|
+
fontSize: "var(--sl-font-size-x-small)",
|
|
88
|
+
color: "var(--sl-color-gray-600)",
|
|
89
|
+
},
|
|
90
|
+
"& .action": {
|
|
91
|
+
marginTop: "auto",
|
|
92
|
+
marginLeft: "auto",
|
|
93
|
+
},
|
|
94
|
+
"& sl-button.action::part(base) ": {
|
|
95
|
+
color: "var(--sl-color-white)",
|
|
96
|
+
background: "var(--sl-color-primary-500)",
|
|
97
|
+
border: "1px solid var(--sl-color-primary-500)",
|
|
98
|
+
borderRadius: "var(--sl-border-radius-medium)",
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
};
|
|
102
|
+
jss.setup(create());
|
|
103
|
+
const sheet = jss.createStyleSheet(style);
|
|
104
|
+
const styleString = sheet.toString();
|
|
105
|
+
// if showProgressBar is false: progress >= goal
|
|
106
|
+
// if true
|
|
107
|
+
const showComplete = progress >= goal;
|
|
108
|
+
const repetitions = showProgressBar ? Math.floor(progress / goal) : progress;
|
|
109
|
+
return (h("div", { class: sheet.classes.TaskCard },
|
|
110
|
+
h("div", { class: showComplete ? "main complete" : "main" },
|
|
111
|
+
h("style", { type: "text/css" }, styleString),
|
|
112
|
+
h("div", { class: sheet.classes.Header },
|
|
113
|
+
showComplete && (h("span", { class: "icon" }, checkmark_circle$1)),
|
|
114
|
+
h("span", { class: "value" }, points),
|
|
115
|
+
h("span", { class: "text" }, "SAASQUATCH POINTS")),
|
|
116
|
+
h("div", { class: sheet.classes.Title }, cardTitle),
|
|
117
|
+
showProgressBar && h(ProgressBar, Object.assign({}, props)),
|
|
118
|
+
h(Details, { description: description }),
|
|
119
|
+
h("div", { class: sheet.classes.Footer },
|
|
120
|
+
h("span", { class: "text" },
|
|
121
|
+
repeatable && (h("div", null,
|
|
122
|
+
h("span", { class: "icon" }, arrow_left_right$1),
|
|
123
|
+
h("span", null,
|
|
124
|
+
"Completed ",
|
|
125
|
+
repetitions,
|
|
126
|
+
" times"),
|
|
127
|
+
h("br", null),
|
|
128
|
+
h("span", null,
|
|
129
|
+
"Earned ",
|
|
130
|
+
points * repetitions,
|
|
131
|
+
" SaaSquatch Points"))),
|
|
132
|
+
expire && (h("span", null,
|
|
133
|
+
h("br", null),
|
|
134
|
+
"Ends ",
|
|
135
|
+
" ",
|
|
136
|
+
dateExpire))),
|
|
137
|
+
h("sl-button", { class: "action", size: "small", onClick: () => alert(buttonLink), disabled: showComplete }, showComplete ? "Complete" : buttonText)))));
|
|
138
|
+
}
|
|
139
|
+
function Details(props) {
|
|
140
|
+
const style = {
|
|
141
|
+
HostBlock: HostBlock,
|
|
142
|
+
Description: {
|
|
143
|
+
"& input[type=checkbox]": {
|
|
144
|
+
display: "none",
|
|
145
|
+
},
|
|
146
|
+
"& input:checked ~ .details": {
|
|
147
|
+
transform: "rotate(-180deg)",
|
|
148
|
+
},
|
|
149
|
+
"& .details": {
|
|
150
|
+
position: "absolute",
|
|
151
|
+
top: "var(--sl-spacing-medium)",
|
|
152
|
+
right: "var(--sl-spacing-medium)",
|
|
153
|
+
color: "var(--sl-color-gray-700)",
|
|
154
|
+
fontSize: "var(--sl-font-size-large)",
|
|
155
|
+
"& :hover": {
|
|
156
|
+
color: "var(--sl-color-primary-700)",
|
|
157
|
+
},
|
|
158
|
+
transformOrigin: "50% 37%",
|
|
159
|
+
transition: "transform var(--sl-transition-medium) ease",
|
|
160
|
+
},
|
|
161
|
+
"& input:checked ~ .summary": {
|
|
162
|
+
transition: "max-height var(--sl-transition-medium) ease",
|
|
163
|
+
maxHeight: "300px",
|
|
164
|
+
},
|
|
165
|
+
"& .summary": {
|
|
166
|
+
display: "block",
|
|
167
|
+
overflow: "hidden",
|
|
168
|
+
color: "var(--sl-color-gray-700)",
|
|
169
|
+
fontSize: "var(--sl-font-size-x-small)",
|
|
170
|
+
maxHeight: "0px",
|
|
171
|
+
transition: "max-height var(--sl-transition-fast) ease-out",
|
|
172
|
+
},
|
|
173
|
+
},
|
|
174
|
+
};
|
|
175
|
+
jss.setup(create());
|
|
176
|
+
const sheet = jss.createStyleSheet(style);
|
|
177
|
+
const styleString = sheet.toString();
|
|
178
|
+
const rid = Math.random().toString(36).slice(2);
|
|
179
|
+
return (h("div", null,
|
|
180
|
+
h("style", { type: "text/css" }, styleString),
|
|
181
|
+
h("span", { class: sheet.classes.Description },
|
|
182
|
+
h("input", { type: "checkbox", id: "details-" + rid }),
|
|
183
|
+
h("label", { class: "details", htmlFor: "details-" + rid },
|
|
184
|
+
h("sl-icon", { name: "chevron-down" })),
|
|
185
|
+
h("span", { class: "summary" }, props.description))));
|
|
186
|
+
}
|
|
187
|
+
function ProgressBar(props) {
|
|
188
|
+
const { goal, progress, steps, unit = "", repeatable } = props;
|
|
189
|
+
const gift1 = gift();
|
|
190
|
+
const gift2 = gift();
|
|
191
|
+
const gift3 = gift();
|
|
192
|
+
// if progress and goal are not provided, there cannot be a progress bar
|
|
193
|
+
// if (!showProgressBar) return;
|
|
194
|
+
const items = [];
|
|
195
|
+
var columns = "";
|
|
196
|
+
var repetitions = Math.floor(progress / goal);
|
|
197
|
+
if (repeatable) {
|
|
198
|
+
if (steps) {
|
|
199
|
+
addStepsRepeatable();
|
|
200
|
+
}
|
|
201
|
+
else {
|
|
202
|
+
addLinearRepeatable();
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
// non repetable
|
|
206
|
+
else {
|
|
207
|
+
if (steps) {
|
|
208
|
+
addSteps();
|
|
209
|
+
}
|
|
210
|
+
else {
|
|
211
|
+
addLinear();
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
const style = {
|
|
215
|
+
HostBlock: HostBlock,
|
|
216
|
+
ProgressBar: {
|
|
217
|
+
"& .progress-bar": {
|
|
218
|
+
height: "20px",
|
|
219
|
+
marginTop: "var(--sl-spacing-large)",
|
|
220
|
+
marginRight: "var(--sl-spacing-x-small)",
|
|
221
|
+
marginBottom: "var(--sl-spacing-large)",
|
|
222
|
+
fontSize: "var(--sl-font-size-x-small)",
|
|
223
|
+
display: "grid",
|
|
224
|
+
gridTemplateColumns: columns,
|
|
225
|
+
lineHeight: "45px",
|
|
226
|
+
userSelect: "none",
|
|
227
|
+
},
|
|
228
|
+
"& .progress-bar.repeatable-steps": {
|
|
229
|
+
marginLeft: "var(--sl-spacing-x-small)",
|
|
230
|
+
},
|
|
231
|
+
"& .filled:after": {
|
|
232
|
+
content: '""',
|
|
233
|
+
display: "flex",
|
|
234
|
+
width: "100%",
|
|
235
|
+
height: "4px",
|
|
236
|
+
borderRadius: "4px",
|
|
237
|
+
backgroundColor: "var(--sl-color-primary-500)",
|
|
238
|
+
},
|
|
239
|
+
"& .progress": {
|
|
240
|
+
display: "block",
|
|
241
|
+
textAlign: "center",
|
|
242
|
+
marginLeft: "-100px",
|
|
243
|
+
marginRight: "-100px",
|
|
244
|
+
},
|
|
245
|
+
"& .progress::after": {
|
|
246
|
+
content: '""',
|
|
247
|
+
width: "12px",
|
|
248
|
+
height: "12px",
|
|
249
|
+
display: "flex",
|
|
250
|
+
backgroundColor: "var(--sl-color-primary-500)",
|
|
251
|
+
borderRadius: "50%",
|
|
252
|
+
position: "relative",
|
|
253
|
+
left: "47%",
|
|
254
|
+
top: "-85%",
|
|
255
|
+
},
|
|
256
|
+
"& .progress.bg:after": {
|
|
257
|
+
width: "0",
|
|
258
|
+
height: "0",
|
|
259
|
+
border: "none",
|
|
260
|
+
},
|
|
261
|
+
"& .empty": {
|
|
262
|
+
display: "block",
|
|
263
|
+
textAlign: "center",
|
|
264
|
+
marginLeft: "-100px",
|
|
265
|
+
marginRight: "-100px",
|
|
266
|
+
},
|
|
267
|
+
"& .empty::after": {
|
|
268
|
+
content: '""',
|
|
269
|
+
width: "12px",
|
|
270
|
+
height: "12px",
|
|
271
|
+
border: "2px solid #E0E0E0",
|
|
272
|
+
margin: "-2px",
|
|
273
|
+
display: "flex",
|
|
274
|
+
backgroundColor: "white",
|
|
275
|
+
borderRadius: "50%",
|
|
276
|
+
position: "relative",
|
|
277
|
+
left: "47%",
|
|
278
|
+
top: "-85%",
|
|
279
|
+
},
|
|
280
|
+
"& .empty.bg:after": {
|
|
281
|
+
width: "0",
|
|
282
|
+
height: "0",
|
|
283
|
+
border: "none",
|
|
284
|
+
},
|
|
285
|
+
"& .remain:after": {
|
|
286
|
+
content: '""',
|
|
287
|
+
display: "flex",
|
|
288
|
+
width: "100%",
|
|
289
|
+
height: "4px",
|
|
290
|
+
borderRadius: "4px",
|
|
291
|
+
backgroundColor: "#E0E0E0",
|
|
292
|
+
},
|
|
293
|
+
"& .end.bw": {
|
|
294
|
+
filter: "grayscale(100%)",
|
|
295
|
+
},
|
|
296
|
+
"& .end.start": {
|
|
297
|
+
transform: "scale(80%)",
|
|
298
|
+
top: "-20px",
|
|
299
|
+
},
|
|
300
|
+
"& .end": {
|
|
301
|
+
textAlign: "center",
|
|
302
|
+
marginLeft: "-100px",
|
|
303
|
+
marginRight: "-100px",
|
|
304
|
+
position: "relative",
|
|
305
|
+
top: "-18px",
|
|
306
|
+
filter: goal <= progress ? "" : "grayscale(100%)",
|
|
307
|
+
zIndex: "1",
|
|
308
|
+
},
|
|
309
|
+
},
|
|
310
|
+
};
|
|
311
|
+
jss.setup(create());
|
|
312
|
+
const sheet = jss.createStyleSheet(style);
|
|
313
|
+
const styleString = sheet.toString();
|
|
314
|
+
return (h("div", { class: sheet.classes.ProgressBar },
|
|
315
|
+
h("style", { type: "text/css" }, styleString),
|
|
316
|
+
h("div", { class: repetitions > 1 ? "progress-bar repeatable-steps" : "progress-bar" }, items)));
|
|
317
|
+
function addLinear() {
|
|
318
|
+
columns =
|
|
319
|
+
Math.min(Math.max(progress / goal, 0), 1) +
|
|
320
|
+
"fr 0fr " +
|
|
321
|
+
Math.min(Math.max(1 - progress / goal, 0), 1) +
|
|
322
|
+
"fr 0fr";
|
|
323
|
+
items.push(h("div", { class: "filled" }));
|
|
324
|
+
items.push(h("div", { class: progress == goal ? "progress bg" : "progress" }, unit + progress));
|
|
325
|
+
items.push(h("div", { class: "remain" }));
|
|
326
|
+
items.push(h("div", { class: "end" }, gift1));
|
|
327
|
+
}
|
|
328
|
+
function addSteps() {
|
|
329
|
+
let step_math = steps / goal;
|
|
330
|
+
for (let i = 1; i < goal; i += steps) {
|
|
331
|
+
columns += step_math + "fr 0fr ";
|
|
332
|
+
if (i > progress) {
|
|
333
|
+
items.push(h("div", { class: "remain" }));
|
|
334
|
+
items.push(h("div", { class: "empty" }, unit + i));
|
|
335
|
+
}
|
|
336
|
+
else {
|
|
337
|
+
items.push(h("div", { class: "filled" }));
|
|
338
|
+
items.push(h("div", { class: "progress" }, unit + i));
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
columns += step_math + "fr 0fr ";
|
|
342
|
+
// reward success
|
|
343
|
+
if (goal <= progress) {
|
|
344
|
+
columns += "0fr ";
|
|
345
|
+
items.push(h("div", { class: "filled" }));
|
|
346
|
+
items.push(h("div", { class: "progress bg" }, unit + goal));
|
|
347
|
+
items.push(h("div", { class: "end" }, gift1));
|
|
348
|
+
}
|
|
349
|
+
// reward fail
|
|
350
|
+
else {
|
|
351
|
+
columns += "0fr ";
|
|
352
|
+
items.push(h("div", { class: "remain" }));
|
|
353
|
+
items.push(h("div", { class: "empty bg" }, unit + goal));
|
|
354
|
+
items.push(h("div", { class: "end" }, gift1));
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
function addLinearRepeatable() {
|
|
358
|
+
let position = progress % goal;
|
|
359
|
+
let remainder = (position / goal) * 0.5;
|
|
360
|
+
let repetitions = Math.floor(progress / goal);
|
|
361
|
+
// 0 repetition
|
|
362
|
+
if (repetitions == 0) {
|
|
363
|
+
columns = remainder + "fr 0fr " + (0.5 - remainder) + "fr 0fr 0.5fr 0fr";
|
|
364
|
+
items.push(h("div", { class: "filled" }));
|
|
365
|
+
items.push(h("div", { class: progress == goal ? "progress bg" : "progress" }, unit + progress));
|
|
366
|
+
items.push(h("div", { class: "remain" }));
|
|
367
|
+
items.push(h("div", { class: "end" }, gift1));
|
|
368
|
+
items.push(h("div", { class: "remain" }));
|
|
369
|
+
items.push(h("div", { class: "end bw" }, gift2));
|
|
370
|
+
}
|
|
371
|
+
// single repetition
|
|
372
|
+
else if (repetitions == 1) {
|
|
373
|
+
columns =
|
|
374
|
+
"0.5fr 0fr " + remainder + "fr 0fr " + (0.5 - remainder) + "fr 0fr";
|
|
375
|
+
items.push(h("div", { class: "filled" }));
|
|
376
|
+
items.push(h("div", { class: "end" }, gift1));
|
|
377
|
+
items.push(h("div", { class: "filled" }));
|
|
378
|
+
items.push(h("div", { class: progress == goal ? "progress bg" : "progress" }, unit + progress));
|
|
379
|
+
items.push(h("div", { class: "remain" }));
|
|
380
|
+
items.push(h("div", { class: "end bw" }, gift2));
|
|
381
|
+
}
|
|
382
|
+
// multiple repetitions
|
|
383
|
+
else {
|
|
384
|
+
columns =
|
|
385
|
+
"0fr 0.5fr 0fr " + remainder + "fr 0fr " + (0.5 - remainder) + "fr 0fr";
|
|
386
|
+
items.push(h("div", { class: "end start" }, gift1));
|
|
387
|
+
items.push(h("div", { class: "filled" }));
|
|
388
|
+
items.push(h("div", { class: "end" }, gift2));
|
|
389
|
+
items.push(h("div", { class: "filled" }));
|
|
390
|
+
items.push(h("div", { class: progress == goal * repetitions ? "progress bg" : "progress" }, unit + progress));
|
|
391
|
+
items.push(h("div", { class: "remain" }));
|
|
392
|
+
items.push(h("div", { class: "end bw" }, gift3));
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
function addStepsRepeatable() {
|
|
396
|
+
let repetitions = Math.floor(progress / goal);
|
|
397
|
+
// no or single repetition
|
|
398
|
+
if (repetitions < 2) {
|
|
399
|
+
let step_math = steps / goal;
|
|
400
|
+
for (let i = 1; i < goal * 2 + 1; i += steps) {
|
|
401
|
+
columns += step_math + "fr 0fr ";
|
|
402
|
+
if (i > progress) {
|
|
403
|
+
if (i == goal) {
|
|
404
|
+
columns += "0fr ";
|
|
405
|
+
items.push(h("div", { class: "remain" }));
|
|
406
|
+
items.push(h("div", { class: "empty bg" }, unit + goal));
|
|
407
|
+
items.push(h("div", { class: "end bw" }, gift1));
|
|
408
|
+
}
|
|
409
|
+
else if (i == goal * 2) {
|
|
410
|
+
columns += "0fr 0fr";
|
|
411
|
+
items.push(h("div", { class: "remain" }));
|
|
412
|
+
items.push(h("div", { class: "empty bg" }, unit + (goal * 2)));
|
|
413
|
+
items.push(h("div", { class: "end bw" }, gift2));
|
|
414
|
+
}
|
|
415
|
+
else {
|
|
416
|
+
items.push(h("div", { class: "remain" }));
|
|
417
|
+
items.push(h("div", { class: "empty" }, unit + i));
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
else if (i == goal) {
|
|
421
|
+
columns += "0fr ";
|
|
422
|
+
items.push(h("div", { class: "filled" }));
|
|
423
|
+
items.push(h("div", { class: "progress bg" }, unit + i));
|
|
424
|
+
items.push(h("div", { class: "end" }, gift3));
|
|
425
|
+
}
|
|
426
|
+
else {
|
|
427
|
+
items.push(h("div", { class: "filled" }));
|
|
428
|
+
items.push(h("div", { class: "progress" }, unit + i));
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
// case repetition many
|
|
433
|
+
else {
|
|
434
|
+
let position = (progress % goal) + goal;
|
|
435
|
+
let step_math = steps / goal;
|
|
436
|
+
columns += "0fr 0fr ";
|
|
437
|
+
items.push(h("div", { class: "progress bg" }, unit + goal * (repetitions - 1)));
|
|
438
|
+
items.push(h("div", { class: "end start" }, gift1));
|
|
439
|
+
for (let i = 1; i < goal * 2 + 1; i += steps) {
|
|
440
|
+
columns += step_math + "fr 0fr ";
|
|
441
|
+
if (i <= goal) {
|
|
442
|
+
if (i == goal) {
|
|
443
|
+
columns += "0fr ";
|
|
444
|
+
items.push(h("div", { class: "filled" }));
|
|
445
|
+
items.push(h("div", { class: "progress bg" }, unit + (i + goal * (repetitions - 1))));
|
|
446
|
+
items.push(h("div", { class: "end" }, gift2));
|
|
447
|
+
}
|
|
448
|
+
else {
|
|
449
|
+
items.push(h("div", { class: "filled" }));
|
|
450
|
+
items.push(h("div", { class: "progress" }, unit + (i + goal * (repetitions - 1))));
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
else if (i > position) {
|
|
454
|
+
if (i == goal * 2) {
|
|
455
|
+
columns += "0fr 0fr";
|
|
456
|
+
items.push(h("div", { class: "remain" }));
|
|
457
|
+
items.push(h("div", { class: "empty bg" }, unit + (i + goal * (repetitions - 1))));
|
|
458
|
+
items.push(h("div", { class: "end bw" }, gift3));
|
|
459
|
+
}
|
|
460
|
+
else {
|
|
461
|
+
items.push(h("div", { class: "remain" }));
|
|
462
|
+
items.push(h("div", { class: "empty" }, unit + (i + goal * (repetitions - 1))));
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
else {
|
|
466
|
+
items.push(h("div", { class: "filled" }));
|
|
467
|
+
items.push(h("div", { class: "progress" }, unit + (i + goal * (repetitions - 1))));
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
export { TaskCardView as T };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
|
+
import { m as h } from './extends-3a3f9fe2.js';
|
|
3
|
+
import './jss-preset-default.esm-71fae192.js';
|
|
4
|
+
import { g as getProps } from './utils-454405f5.js';
|
|
5
|
+
import './mixins-10353a39.js';
|
|
6
|
+
import { T as TaskCardView } from './sqm-task-card-view-2ee495af.js';
|
|
7
|
+
|
|
8
|
+
const TaskCard = class {
|
|
9
|
+
constructor(hostRef) {
|
|
10
|
+
registerInstance(this, hostRef);
|
|
11
|
+
this.ignored = true;
|
|
12
|
+
/**
|
|
13
|
+
* @uiName Reward Points
|
|
14
|
+
*/
|
|
15
|
+
this.points = 0;
|
|
16
|
+
/**
|
|
17
|
+
* @uiName Title Text
|
|
18
|
+
*/
|
|
19
|
+
this.cardTitle = "Title Text";
|
|
20
|
+
/**
|
|
21
|
+
* @uiName Description Text
|
|
22
|
+
*/
|
|
23
|
+
this.description = "Description Text";
|
|
24
|
+
/**
|
|
25
|
+
* @uiName Set Repeatable
|
|
26
|
+
*/
|
|
27
|
+
this.repeatable = false;
|
|
28
|
+
/**
|
|
29
|
+
* @uiName Show Progress Bar
|
|
30
|
+
*/
|
|
31
|
+
this.showProgressBar = false;
|
|
32
|
+
/**
|
|
33
|
+
* @uiName Progress Bar Progress
|
|
34
|
+
*/
|
|
35
|
+
this.progress = 0;
|
|
36
|
+
/**
|
|
37
|
+
* @uiName Progress Bar Goal
|
|
38
|
+
*/
|
|
39
|
+
this.goal = 1;
|
|
40
|
+
/**
|
|
41
|
+
* @uiName Show Expiry
|
|
42
|
+
*/
|
|
43
|
+
this.expire = false;
|
|
44
|
+
h(this);
|
|
45
|
+
}
|
|
46
|
+
disconnectedCallback() { }
|
|
47
|
+
render() {
|
|
48
|
+
return h$1(TaskCardView, Object.assign({}, getProps(this)));
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
export { TaskCard as sqm_task_card };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/*! *****************************************************************************
|
|
2
|
+
Copyright (c) Microsoft Corporation.
|
|
3
|
+
|
|
4
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
5
|
+
purpose with or without fee is hereby granted.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
8
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
9
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
10
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
11
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
12
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
14
|
+
***************************************************************************** */
|
|
15
|
+
/* global Reflect, Promise */
|
|
16
|
+
|
|
17
|
+
var extendStatics = function(d, b) {
|
|
18
|
+
extendStatics = Object.setPrototypeOf ||
|
|
19
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
20
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
21
|
+
return extendStatics(d, b);
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
function __extends(d, b) {
|
|
25
|
+
if (typeof b !== "function" && b !== null)
|
|
26
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
27
|
+
extendStatics(d, b);
|
|
28
|
+
function __() { this.constructor = d; }
|
|
29
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
var __assign = function() {
|
|
33
|
+
__assign = Object.assign || function __assign(t) {
|
|
34
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
35
|
+
s = arguments[i];
|
|
36
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
37
|
+
}
|
|
38
|
+
return t;
|
|
39
|
+
};
|
|
40
|
+
return __assign.apply(this, arguments);
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
function __spreadArray(to, from, pack) {
|
|
44
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
45
|
+
if (ar || !(i in from)) {
|
|
46
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
47
|
+
ar[i] = from[i];
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
return to.concat(ar || from);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export { __assign as _, __extends as a, __spreadArray as b };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { j as useState, e as useEffect } from './extends-3a3f9fe2.js';
|
|
2
|
+
import { P } from './index.module-f80561db.js';
|
|
3
|
+
|
|
4
|
+
function useChildElements() {
|
|
5
|
+
const host = P();
|
|
6
|
+
const initialState = host.children.length ? Array.from(host.children) : [];
|
|
7
|
+
const [childElements, setChildElements] = useState(initialState);
|
|
8
|
+
useEffect(() => {
|
|
9
|
+
const observer = new MutationObserver(() => {
|
|
10
|
+
const children = Array.from(host.children);
|
|
11
|
+
setChildElements([...children]);
|
|
12
|
+
});
|
|
13
|
+
observer.observe(host, { childList: true });
|
|
14
|
+
return () => observer.disconnect();
|
|
15
|
+
}, [host]);
|
|
16
|
+
return childElements;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export { useChildElements as u };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h } from './index-17b4da69.js';
|
|
2
2
|
import { b as browser, k as useMemo } from './extends-3a3f9fe2.js';
|
|
3
|
-
import { M, R, T, d as dist, e as en } from './index.module-
|
|
3
|
+
import { M, R, T, d as dist, e as en } from './index.module-f80561db.js';
|
|
4
4
|
import { j as jss, c as create } from './jss-preset-default.esm-71fae192.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
6
|
|
|
@@ -803,7 +803,8 @@ const StatPaths = [
|
|
|
803
803
|
];
|
|
804
804
|
const StatPatterns = StatPaths.map((pattern) => pathToRegexp(pattern.route));
|
|
805
805
|
function useBigStat(props) {
|
|
806
|
-
const { statType, flexReverse, alignment
|
|
806
|
+
const { statType, flexReverse, alignment } = props;
|
|
807
|
+
const programId = M();
|
|
807
808
|
const locale = R();
|
|
808
809
|
const userIdent = T();
|
|
809
810
|
const re = useMemo(() => StatPatterns.find((re) => re.exec(statType)), [statType]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __makeTemplateObject=this&&this.__makeTemplateObject||function(e,a){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:a})}else{e.raw=a}return e};import{h,g as getElement}from"./index-17b4da69.js";import{d as dist,M,T,e as en}from"./index.module-
|
|
1
|
+
var __makeTemplateObject=this&&this.__makeTemplateObject||function(e,a){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:a})}else{e.raw=a}return e};import{h,g as getElement}from"./index-17b4da69.js";import{d as dist,M,T,e as en}from"./index.module-f80561db.js";function LeaderboardView(e){var a;var r=e.states,t=e.data,n=e.elements;var i=r.styles;if(r.loading){return n.loadingstate}return h("div",null,!r.hasLeaders&&n.empty,r.hasLeaders&&h("table",null,h("tr",null,i.showRank&&h("th",{class:"Rank"},i.rankheading),h("th",{class:"User"},i.usersheading),h("th",{class:"Score"},i.statsheading)),(a=t.leaderboard)===null||a===void 0?void 0:a.map((function(e){return h("tr",{class:"SeparateContent"},i.showRank&&h("td",{class:"Rank"},e.rank),h("td",{class:"User"},e.firstName+" "+e.lastInitial+" "),h("td",{class:"Score"},e.value))}))))}var GET_LEADERBOARD=dist.gql(templateObject_1||(templateObject_1=__makeTemplateObject(["\n query ($type: String!, $filter: UserLeaderboardFilterInput) {\n userLeaderboard(type: $type, filter: $filter) {\n dateModified\n rows {\n value\n firstName\n lastInitial\n rank {\n rank\n denseRank\n rowNumber\n }\n }\n }\n }\n"],["\n query ($type: String!, $filter: UserLeaderboardFilterInput) {\n userLeaderboard(type: $type, filter: $filter) {\n dateModified\n rows {\n value\n firstName\n lastInitial\n rank {\n rank\n denseRank\n rowNumber\n }\n }\n }\n }\n"])));function useLeaderboard(e){var a;var r=M();var t=T();var n={type:e.leaderboardType,filter:{programId_eq:r}};if(e.interval){n.filter["interval"]=e.interval}var i=en(GET_LEADERBOARD,n,!(t===null||t===void 0?void 0:t.jwt)),d=i.data,l=i.loading;var o=(a=d===null||d===void 0?void 0:d.userLeaderboard)===null||a===void 0?void 0:a.rows;var s=v(o);var u=s===null||s===void 0?void 0:s.sort((function(e,a){return e.rank-a.rank}));function v(a){return a===null||a===void 0?void 0:a.flatMap((function(a){var r;return{value:a.value,firstName:a.firstName||"Anonymous",lastInitial:a.lastInitial,rank:(r=a.rank)===null||r===void 0?void 0:r[e.rankType]}}))}return{states:{loading:l,hasLeaders:(u===null||u===void 0?void 0:u.length)>0,styles:e},data:{leaderboard:u,rankType:e.rankType},elements:{empty:e.empty,loadingstate:e.loadingstate}}}var map=new Map;function withShadowView(e){var a=getElement(e);var r=e["render"].bind(e);var t=function(){var e=a.getAttribute("stencilbook-shadow-view");if(e){var t=map.get(e);if(t){return t}}return r()};e["render"]=t}var ShadowViewAddon=function(e,a){var r=e.story;var t;var n=(t=r.parent.parameters)===null||t===void 0?void 0:t.tagname;if(!n)return a;var i=Math.round(Math.random()*1e5);map.set(i+"",a);var d="stencilbook-shawdow-view-"+i;return h(d,null,h(n,{"stencilbook-shadow-view":i}))};export{LeaderboardView as L,ShadowViewAddon as S,useLeaderboard as u,withShadowView as w};var templateObject_1;
|