@saasquatch/mint-components 1.5.0-113 → 1.5.0-117
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 +82 -15
- package/dist/cjs/{GenericTableView-f947b749.js → GenericTableView-ed381b89.js} +7 -6
- package/dist/cjs/{ShadowViewAddon-79dd6c07.js → ShadowViewAddon-60ca6e6c.js} +242 -179
- package/dist/cjs/{global-633d1fb7.js → global-13123238.js} +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/mint-components.cjs.js +2 -2
- package/dist/cjs/{sqm-big-stat_30.cjs.entry.js → sqm-big-stat_31.cjs.entry.js} +198 -154
- package/dist/cjs/sqm-empty_5.cjs.entry.js +3 -2
- package/dist/cjs/{sqm-hero-view-a13795c0.js → sqm-hero-view-3b0d45d0.js} +1 -0
- package/dist/cjs/sqm-hero.cjs.entry.js +1 -1
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-container-view-d101032e.js → sqm-portal-container-view-5ea913a8.js} +2 -1
- package/dist/cjs/{sqm-portal-email-verification-view-c32a55d6.js → sqm-portal-email-verification-view-535ae80c.js} +2 -2
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-portal-footer-view-cac67bc9.js → sqm-portal-footer-view-3c62d7a6.js} +1 -1
- package/dist/cjs/sqm-portal-footer.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-forgot-password-view-10c0b54f.js → sqm-portal-forgot-password-view-02b046e1.js} +1 -1
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-profile-view-72c40619.js → sqm-portal-profile-view-12c9cd73.js} +3 -3
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +4 -4
- package/dist/cjs/{sqm-portal-reset-password-view-1fdc957e.js → sqm-portal-reset-password-view-20df8d45.js} +1 -1
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-section-view-186a5f7e.js → sqm-portal-section-view-f3c8475a.js} +1 -0
- package/dist/cjs/{sqm-portal-verify-email-view-4c78e231.js → sqm-portal-verify-email-view-1b07a1ba.js} +1 -1
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +2 -2
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +27 -10
- package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +1 -1
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +37 -21
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +252 -115
- package/dist/cjs/sqm-text-span-view-c54af22c.js +59 -0
- package/dist/cjs/sqm-text-span.cjs.entry.js +1 -1
- package/dist/collection/components/sqm-big-stat/UseBigStat.stories.js +15 -3
- package/dist/collection/components/sqm-big-stat/sqm-big-stat-view.js +1 -0
- package/dist/collection/components/sqm-big-stat/sqm-big-stat.js +3 -3
- package/dist/collection/components/sqm-big-stat/useBigStat.js +1 -1
- package/dist/collection/components/sqm-card-feed/sqm-card-feed-view.js +1 -0
- package/dist/collection/components/sqm-hero/sqm-hero-view.js +1 -0
- package/dist/collection/components/sqm-hero-image/sqm-hero-image-view.js +9 -2
- package/dist/collection/components/sqm-image/sqm-image-view.js +1 -0
- package/dist/collection/components/sqm-leaderboard/UseLeaderboard.stories.js +2 -2
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +0 -5
- package/dist/collection/components/sqm-portal-container/PortalContainer.stories.js +72 -0
- package/dist/collection/components/sqm-portal-container/sqm-portal-container-view.js +2 -1
- package/dist/collection/components/sqm-portal-container/sqm-portal-container.js +26 -0
- package/dist/collection/components/sqm-referral-card/sqm-referral-card-view.js +40 -38
- package/dist/collection/components/sqm-referral-iframe/sqm-referral-iframe-view.js +1 -0
- package/dist/collection/components/sqm-referral-table/ReferralTable.stories.js +1 -1
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +0 -1
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js +10 -1
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-status-column.js +5 -1
- package/dist/collection/components/sqm-referral-table/sqm-referral-table.js +12 -10
- package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeListData.js +1 -1
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +1 -1
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +11 -9
- package/dist/collection/components/sqm-rewards-table/RewardsTableCell.stories.js +10 -10
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.js +9 -25
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.js +7 -27
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.js +3 -0
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.js +1 -1
- package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +14 -9
- package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +7 -1
- package/dist/collection/components/sqm-scroll/Scroll.stories.js +14 -23
- package/dist/collection/components/sqm-scroll/sqm-scroll.js +102 -147
- package/dist/collection/components/sqm-share-button/ShareButton.stories.js +8 -8
- package/dist/collection/components/sqm-share-button/sqm-share-button-view.js +29 -29
- package/dist/collection/components/sqm-share-button/sqm-share-button.js +21 -21
- package/dist/collection/components/sqm-share-code/ShareCode.stories.js +2 -2
- package/dist/collection/components/sqm-share-code/sqm-share-code.js +7 -7
- package/dist/collection/components/sqm-share-code/useShareCode.js +1 -1
- package/dist/collection/components/sqm-share-link/ShareLink.stories.js +3 -3
- package/dist/collection/components/sqm-share-link/UseShareLink.stories.js +3 -3
- package/dist/collection/components/sqm-share-link/sqm-share-link-view.js +1 -1
- package/dist/collection/components/sqm-share-link/sqm-share-link.js +4 -4
- package/dist/collection/components/sqm-stat-container/sqm-stat-container-view.js +1 -0
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +2 -0
- package/dist/collection/components/sqm-tabs/sqm-tabs.js +1 -1
- package/dist/collection/components/sqm-task-card/DetailsView.js +1 -1
- package/dist/collection/components/sqm-task-card/progress-bar/SVGs.js +7 -0
- package/dist/collection/components/sqm-task-card/progress-bar/progress-bar-view.js +52 -50
- package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +18 -10
- package/dist/collection/components/sqm-task-card/sqm-task-card.js +3 -1
- package/dist/collection/components/sqm-text-span/sqm-text-span-view.js +42 -42
- package/dist/collection/components/sqm-timeline/sqm-timeline-entry-view.js +77 -0
- package/dist/collection/components/sqm-timeline/sqm-timeline-entry.js +1 -80
- package/dist/collection/components/sqm-timeline/sqm-timeline.js +0 -18
- package/dist/collection/components/sqm-titled-section/sqm-portal-section-view.js +1 -0
- package/dist/collection/global/styles.js +1 -0
- package/dist/collection/global/styles.ts +1 -0
- package/dist/collection/stories/NewPortal.stories.js +2 -2
- package/dist/collection/stories/PortalTemplates.stories.js +0 -7
- package/dist/collection/stories/Widget.stories.js +49 -0
- package/dist/collection/tables/GenericTableView.js +7 -6
- package/dist/esm/{GenericTableView-6b7b537b.js → GenericTableView-6924630b.js} +7 -6
- package/dist/esm/{ShadowViewAddon-9c382e30.js → ShadowViewAddon-3347acdb.js} +242 -180
- package/dist/esm/{global-7d4eb5e5.js → global-9bff4920.js} +1 -0
- package/dist/esm/loader.js +2 -2
- package/dist/esm/mint-components.js +2 -2
- package/dist/esm/{sqm-big-stat_30.entry.js → sqm-big-stat_31.entry.js} +199 -156
- package/dist/esm/sqm-empty_5.entry.js +3 -2
- package/dist/esm/{sqm-hero-view-5ea17052.js → sqm-hero-view-8e70916e.js} +1 -0
- package/dist/esm/sqm-hero.entry.js +1 -1
- package/dist/esm/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm/{sqm-portal-container-view-dea0cdcc.js → sqm-portal-container-view-46929235.js} +2 -1
- package/dist/esm/{sqm-portal-email-verification-view-86e3ff2e.js → sqm-portal-email-verification-view-1d7eca0a.js} +2 -2
- package/dist/esm/sqm-portal-email-verification.entry.js +3 -3
- package/dist/esm/{sqm-portal-footer-view-d6a43c4d.js → sqm-portal-footer-view-df66904d.js} +1 -1
- package/dist/esm/sqm-portal-footer.entry.js +2 -2
- package/dist/esm/{sqm-portal-forgot-password-view-fa088f83.js → sqm-portal-forgot-password-view-6b99a1ad.js} +1 -1
- package/dist/esm/sqm-portal-forgot-password.entry.js +2 -2
- package/dist/esm/{sqm-portal-profile-view-c34e781b.js → sqm-portal-profile-view-b96b89a3.js} +3 -3
- package/dist/esm/sqm-portal-profile.entry.js +4 -4
- package/dist/esm/{sqm-portal-reset-password-view-73e14282.js → sqm-portal-reset-password-view-2c0da51c.js} +1 -1
- package/dist/esm/sqm-portal-reset-password.entry.js +2 -2
- package/dist/esm/{sqm-portal-section-view-88a80af9.js → sqm-portal-section-view-61dbb8a9.js} +1 -0
- package/dist/esm/{sqm-portal-verify-email-view-cbf1cfdc.js → sqm-portal-verify-email-view-0d005914.js} +1 -1
- package/dist/esm/sqm-portal-verify-email.entry.js +2 -2
- package/dist/esm/sqm-referral-table_11.entry.js +27 -10
- package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +1 -1
- package/dist/esm/sqm-rewards-table_9.entry.js +37 -21
- package/dist/esm/sqm-stencilbook.entry.js +248 -111
- package/dist/esm/sqm-text-span-view-c8793d61.js +57 -0
- package/dist/esm/sqm-text-span.entry.js +1 -1
- package/dist/esm-es5/GenericTableView-6924630b.js +1 -0
- package/dist/esm-es5/ShadowViewAddon-3347acdb.js +1 -0
- package/dist/esm-es5/{global-7d4eb5e5.js → global-9bff4920.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/sqm-big-stat_31.entry.js +1 -0
- package/dist/esm-es5/sqm-empty_5.entry.js +1 -1
- package/dist/esm-es5/{sqm-hero-view-5ea17052.js → sqm-hero-view-8e70916e.js} +0 -0
- package/dist/esm-es5/sqm-hero.entry.js +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-container-view-46929235.js +1 -0
- package/dist/esm-es5/{sqm-portal-email-verification-view-86e3ff2e.js → sqm-portal-email-verification-view-1d7eca0a.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-footer-view-d6a43c4d.js → sqm-portal-footer-view-df66904d.js} +1 -1
- package/dist/esm-es5/sqm-portal-footer.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-forgot-password-view-fa088f83.js → sqm-portal-forgot-password-view-6b99a1ad.js} +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-c34e781b.js → sqm-portal-profile-view-b96b89a3.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-reset-password-view-73e14282.js → sqm-portal-reset-password-view-2c0da51c.js} +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-section-view-88a80af9.js → sqm-portal-section-view-61dbb8a9.js} +0 -0
- package/dist/esm-es5/{sqm-portal-verify-email-view-cbf1cfdc.js → sqm-portal-verify-email-view-0d005914.js} +1 -1
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/{mint-components/p-179988b5.js → esm-es5/sqm-text-span-view-c8793d61.js} +1 -1
- package/dist/esm-es5/sqm-text-span.entry.js +1 -1
- package/dist/mint-components/global/styles.ts +1 -0
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-e08f5f8e.js → p-00c0fd3c.js} +0 -0
- package/dist/mint-components/{p-49667de1.system.entry.js → p-07b18f4a.system.entry.js} +1 -1
- package/dist/mint-components/{p-f31a3a08.system.entry.js → p-099d949d.system.entry.js} +1 -1
- package/dist/mint-components/{p-ce0ec1c4.system.js → p-1830b02e.system.js} +1 -1
- package/dist/mint-components/p-1e57c649.entry.js +9 -0
- package/dist/mint-components/p-23a3e161.entry.js +1 -0
- package/dist/mint-components/{p-3dbd3303.entry.js → p-258dc62f.entry.js} +1 -1
- package/dist/mint-components/{p-1c3c2ddb.system.js → p-26b42a93.system.js} +1 -1
- package/dist/mint-components/{p-147440c3.js → p-2ec8c64c.js} +0 -0
- package/dist/mint-components/{p-e82076e4.system.js → p-2ef43b0b.system.js} +1 -1
- package/dist/mint-components/{p-91951a0a.system.entry.js → p-3295bcea.system.entry.js} +1 -1
- package/dist/mint-components/{p-d7736049.system.entry.js → p-32b9d246.system.entry.js} +1 -1
- package/dist/mint-components/p-33159b8f.entry.js +99 -0
- package/dist/mint-components/p-39928661.system.entry.js +1 -0
- package/dist/mint-components/{p-96bbb28a.system.entry.js → p-3bb7f637.system.entry.js} +1 -1
- package/dist/mint-components/{p-6b43e4cc.system.js → p-3bf4f950.system.js} +1 -1
- package/dist/mint-components/{p-53af4433.system.js → p-3cf449ba.system.js} +0 -0
- package/dist/mint-components/{p-fe0d7472.entry.js → p-4556231d.entry.js} +1 -1
- package/dist/mint-components/{p-759df017.system.entry.js → p-4fdc7713.system.entry.js} +1 -1
- package/dist/mint-components/{p-6a87a09f.entry.js → p-5c35a4e6.entry.js} +1 -1
- package/dist/mint-components/p-5c71ba83.js +268 -0
- package/dist/mint-components/{p-8d7ae057.system.entry.js → p-60abe71f.system.entry.js} +1 -1
- package/dist/mint-components/p-6660f97d.system.js +1 -0
- package/dist/mint-components/p-6faceb79.system.entry.js +1 -0
- package/dist/mint-components/{p-eb61462d.entry.js → p-710dd330.entry.js} +12 -12
- package/dist/mint-components/{p-1959da16.system.js → p-73e64749.system.js} +1 -1
- package/dist/mint-components/{p-4f4bdfad.system.entry.js → p-79e4c06a.system.entry.js} +1 -1
- package/dist/mint-components/{p-3bdc5918.js → p-7b074331.js} +1 -1
- package/dist/mint-components/{p-4a1b7d35.js → p-7fe7dbb0.js} +1 -1
- package/dist/mint-components/{p-d264d1a0.system.js → p-80845175.system.js} +1 -1
- package/dist/mint-components/{p-200ffff7.entry.js → p-96f571e5.entry.js} +1 -1
- package/dist/mint-components/p-99e7434e.js +1 -0
- package/dist/mint-components/{p-93e15034.entry.js → p-9dee36f6.entry.js} +1 -1
- package/dist/mint-components/{p-16023c39.system.entry.js → p-a35ce12b.system.entry.js} +1 -1
- package/dist/mint-components/{p-2af6bb32.system.entry.js → p-a36892ea.system.entry.js} +1 -1
- package/dist/mint-components/p-a82df645.system.entry.js +1 -0
- package/dist/mint-components/{p-55b6147d.js → p-abc7fa04.js} +1 -1
- package/dist/mint-components/p-ad741ee2.system.entry.js +1 -0
- package/dist/mint-components/p-aebee81d.system.js +1 -0
- package/dist/mint-components/{p-3e65453b.system.js → p-b756428e.system.js} +0 -0
- package/dist/mint-components/{p-1d1e9197.js → p-ba597021.js} +1 -1
- package/dist/mint-components/p-bb630f90.system.js +1 -0
- package/dist/mint-components/p-c887a653.system.js +1 -0
- package/dist/mint-components/{p-d33eb961.js → p-c8cb3674.js} +1 -1
- package/dist/mint-components/{p-20e8567f.entry.js → p-ca696a40.entry.js} +1 -1
- package/dist/mint-components/{p-1204f7df.entry.js → p-cfe3ceb7.entry.js} +1 -1
- package/dist/mint-components/{p-a8141e7b.entry.js → p-d073aead.entry.js} +1 -1
- package/dist/mint-components/p-db46fe90.js +1 -0
- package/dist/mint-components/{p-fcd096b3.entry.js → p-dc0b8fdb.entry.js} +1 -1
- package/dist/mint-components/{p-ce8b1b36.system.js → p-e2cb443e.system.js} +1 -1
- package/dist/mint-components/{p-72a798c3.entry.js → p-e3fff405.entry.js} +1 -1
- package/dist/mint-components/p-ec5633b8.js +1 -0
- package/dist/mint-components/p-ec77261d.system.js +1 -0
- package/dist/mint-components/{p-e57bb617.entry.js → p-ee1684ae.entry.js} +1 -1
- package/dist/mint-components/{p-c5314bbc.js → p-eff88c3d.js} +1 -1
- package/dist/mint-components/p-f34dd1c1.js +1 -0
- package/dist/mint-components/{p-72296718.system.entry.js → p-f72dc3a5.system.entry.js} +1 -1
- package/dist/types/components/sqm-big-stat/UseBigStat.stories.d.ts +24 -0
- package/dist/types/components/sqm-portal-container/PortalContainer.stories.d.ts +6 -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 +6 -0
- package/dist/types/components/sqm-referral-table/sqm-referral-table.d.ts +2 -3
- package/dist/types/components/sqm-reward-exchange-list/RewardExchangeListData.d.ts +19 -19
- package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.d.ts +1 -1
- package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list.d.ts +6 -4
- package/dist/types/components/sqm-reward-exchange-list/useRewardExchangeList.d.ts +1 -1
- package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.d.ts +0 -1
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.d.ts +0 -4
- package/dist/types/components/sqm-rewards-table/sqm-rewards-table.d.ts +7 -4
- package/dist/types/components/sqm-scroll/Scroll.stories.d.ts +1 -0
- package/dist/types/components/sqm-scroll/sqm-scroll.d.ts +56 -8
- package/dist/types/components/sqm-share-button/sqm-share-button-view.d.ts +6 -6
- package/dist/types/components/sqm-share-button/sqm-share-button.d.ts +9 -9
- package/dist/types/components/sqm-share-code/sqm-share-code.d.ts +2 -2
- package/dist/types/components/sqm-share-code/useShareCode.d.ts +2 -2
- package/dist/types/components/sqm-share-link/sqm-share-link-view.d.ts +1 -1
- package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +1 -1
- package/dist/types/components/sqm-share-link/useShareLink.d.ts +1 -1
- package/dist/types/components/sqm-tabs/sqm-tabs.d.ts +1 -1
- package/dist/types/components/sqm-task-card/progress-bar/SVGs.d.ts +1 -0
- package/dist/types/components/sqm-task-card/progress-bar/progress-bar-view.d.ts +1 -0
- package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +2 -0
- package/dist/types/components/sqm-timeline/sqm-timeline-entry-view.d.ts +9 -0
- package/dist/types/components.d.ts +172 -78
- package/dist/types/global/styles.d.ts +1 -1
- package/dist/types/stories/Widget.stories.d.ts +22 -0
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/sqm-stat-container-view-8aaf6cb8.js +0 -52
- package/dist/cjs/sqm-stat-container.cjs.entry.js +0 -36
- package/dist/cjs/sqm-text-span-view-f101dedf.js +0 -59
- package/dist/esm/sqm-stat-container-view-226b6496.js +0 -50
- package/dist/esm/sqm-stat-container.entry.js +0 -32
- package/dist/esm/sqm-text-span-view-7e61c95c.js +0 -57
- package/dist/esm-es5/GenericTableView-6b7b537b.js +0 -1
- package/dist/esm-es5/ShadowViewAddon-9c382e30.js +0 -1
- package/dist/esm-es5/sqm-big-stat_30.entry.js +0 -1
- package/dist/esm-es5/sqm-portal-container-view-dea0cdcc.js +0 -1
- package/dist/esm-es5/sqm-stat-container-view-226b6496.js +0 -1
- package/dist/esm-es5/sqm-stat-container.entry.js +0 -1
- package/dist/esm-es5/sqm-text-span-view-7e61c95c.js +0 -1
- package/dist/mint-components/p-1a786c17.js +0 -1
- package/dist/mint-components/p-1b71a09e.system.entry.js +0 -1
- package/dist/mint-components/p-1cd23e56.system.entry.js +0 -1
- package/dist/mint-components/p-2c5d7a20.js +0 -268
- package/dist/mint-components/p-3f88f8eb.system.js +0 -1
- package/dist/mint-components/p-45581e0b.entry.js +0 -9
- package/dist/mint-components/p-48161ba8.js +0 -1
- package/dist/mint-components/p-4e0ce80b.js +0 -1
- package/dist/mint-components/p-546ee840.entry.js +0 -1
- package/dist/mint-components/p-55f3d841.system.js +0 -1
- package/dist/mint-components/p-78df4d2d.system.js +0 -1
- package/dist/mint-components/p-8bcaafaf.system.js +0 -1
- package/dist/mint-components/p-9e4f0169.system.entry.js +0 -1
- package/dist/mint-components/p-a44b64d5.js +0 -1
- package/dist/mint-components/p-ac303785.system.js +0 -1
- package/dist/mint-components/p-b359d5a5.entry.js +0 -1
- package/dist/mint-components/p-bb497e73.entry.js +0 -93
- package/dist/mint-components/p-c5086d90.system.js +0 -1
- package/dist/mint-components/p-e16186c0.system.entry.js +0 -1
- package/dist/mint-components/p-e2731437.system.entry.js +0 -1
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const index = require('./index-b0129cd6.js');
|
|
4
|
+
const JSS = require('./JSS-c65a40f1.js');
|
|
5
|
+
|
|
6
|
+
const style = {
|
|
7
|
+
p: {
|
|
8
|
+
"font-size": "var(--sl-font-size-small)",
|
|
9
|
+
"font-weight": "400",
|
|
10
|
+
color: "var(--sl-color-gray-800)",
|
|
11
|
+
margin: "0",
|
|
12
|
+
},
|
|
13
|
+
subtext: {
|
|
14
|
+
"font-size": "var(--sl-font-size-x-small)",
|
|
15
|
+
"font-weight": "400",
|
|
16
|
+
color: "var(--sl-color-gray-600)",
|
|
17
|
+
margin: "0",
|
|
18
|
+
},
|
|
19
|
+
h1: {
|
|
20
|
+
"font-size": "var(--sl-font-size-xx-large)",
|
|
21
|
+
"font-weight": "600",
|
|
22
|
+
color: "var(--sl-color-gray-800)",
|
|
23
|
+
margin: "0",
|
|
24
|
+
},
|
|
25
|
+
h2: {
|
|
26
|
+
"font-size": "var(--sl-font-size-x-large)",
|
|
27
|
+
"font-weight": "600",
|
|
28
|
+
color: "var(--sl-color-gray-800)",
|
|
29
|
+
margin: "0",
|
|
30
|
+
},
|
|
31
|
+
h3: {
|
|
32
|
+
"font-size": "var(--sl-font-size-large)",
|
|
33
|
+
"font-weight": "600",
|
|
34
|
+
color: "var(--sl-color-gray-800)",
|
|
35
|
+
margin: "0",
|
|
36
|
+
},
|
|
37
|
+
h4: {
|
|
38
|
+
"font-size": "13px",
|
|
39
|
+
"font-weight": "600",
|
|
40
|
+
color: "var(--sl-color-gray-800)",
|
|
41
|
+
margin: "0",
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
const sheet = JSS.createStyleSheet(style);
|
|
45
|
+
const styleString = sheet.toString();
|
|
46
|
+
const vanillaStyle = `
|
|
47
|
+
sqm-text-span {
|
|
48
|
+
display: inline;
|
|
49
|
+
}
|
|
50
|
+
`;
|
|
51
|
+
function TextSpanView(props, children) {
|
|
52
|
+
return (index.h("span", { class: sheet.classes[props.type] },
|
|
53
|
+
index.h("style", { type: "text/css" },
|
|
54
|
+
vanillaStyle,
|
|
55
|
+
styleString),
|
|
56
|
+
children));
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
exports.TextSpanView = TextSpanView;
|
|
@@ -6,7 +6,7 @@ const index = require('./index-b0129cd6.js');
|
|
|
6
6
|
const stencilHooks_module = require('./stencil-hooks.module-87a1f4f7.js');
|
|
7
7
|
require('./extends-08099afd.js');
|
|
8
8
|
require('./JSS-c65a40f1.js');
|
|
9
|
-
const sqmTextSpanView = require('./sqm-text-span-view-
|
|
9
|
+
const sqmTextSpanView = require('./sqm-text-span-view-c54af22c.js');
|
|
10
10
|
|
|
11
11
|
const Text = class {
|
|
12
12
|
constructor(hostRef) {
|
|
@@ -30,8 +30,8 @@ function setupGraphQL() {
|
|
|
30
30
|
};
|
|
31
31
|
}, []);
|
|
32
32
|
}
|
|
33
|
-
const View = (statType, format) => {
|
|
34
|
-
console.log(`View("${statType}") - CALLED`);
|
|
33
|
+
const View = (statType, format, label) => {
|
|
34
|
+
// console.log(`View("${statType}") - CALLED`);
|
|
35
35
|
setupGraphQL();
|
|
36
36
|
return (h("div", null,
|
|
37
37
|
h("b", null, "Stat format:"),
|
|
@@ -40,7 +40,7 @@ const View = (statType, format) => {
|
|
|
40
40
|
h("b", null, "Stat selected:"),
|
|
41
41
|
" ",
|
|
42
42
|
h("pre", { style: { color: "green" } }, statType),
|
|
43
|
-
h("sqm-big-stat", { "stat-type": statType })));
|
|
43
|
+
h("sqm-big-stat", { "stat-type": statType }, label)));
|
|
44
44
|
};
|
|
45
45
|
const DemoView = () => {
|
|
46
46
|
const [type, setType] = useState("/someRandomThing/with/someArguments/1234");
|
|
@@ -99,3 +99,15 @@ export const ProgramGoals = createHookStory(() => {
|
|
|
99
99
|
export const CustomField = createHookStory(() => {
|
|
100
100
|
return View(`/customFields/thingCount`, "/(customFields)/:customField");
|
|
101
101
|
});
|
|
102
|
+
export const CustomFieldWithLabel = createHookStory(() => {
|
|
103
|
+
return View(`/customFields/thingCount`, "/(customFields)/:customField", h("sqm-text", null, "Thing Count"));
|
|
104
|
+
});
|
|
105
|
+
export const CustomFieldWithEmptyLabel = createHookStory(() => {
|
|
106
|
+
return View(`/customFields/thingCount`, "/(customFields)/:customField", " ");
|
|
107
|
+
});
|
|
108
|
+
export const CustomFieldWithEmptySpaceLabel = createHookStory(() => {
|
|
109
|
+
return View(`/customFields/thingCount`, "/(customFields)/:customField", "\n ");
|
|
110
|
+
});
|
|
111
|
+
export const CustomFieldWithTextLabel = createHookStory(() => {
|
|
112
|
+
return View(`/customFields/thingCount`, "/(customFields)/:customField", "Thing Count");
|
|
113
|
+
});
|
|
@@ -2,6 +2,7 @@ import { h } from "@stencil/core";
|
|
|
2
2
|
import { createStyleSheet } from "../../styling/JSS";
|
|
3
3
|
export function BigStatView(props) {
|
|
4
4
|
const { statvalue, flexReverse, alignment } = props;
|
|
5
|
+
// Dependent on props, not feasiable to move out
|
|
5
6
|
const style = {
|
|
6
7
|
Container: {
|
|
7
8
|
display: "flex",
|
|
@@ -3,8 +3,7 @@ import { withHooks } from "@saasquatch/stencil-hooks";
|
|
|
3
3
|
import { BigStatView } from "./sqm-big-stat-view";
|
|
4
4
|
import { useBigStat } from "./useBigStat";
|
|
5
5
|
import { useDemoBigStat } from "./useDemoBigStat";
|
|
6
|
-
import { isDemo } from "@saasquatch/component-boilerplate";
|
|
7
|
-
import { useChildElements } from "../../tables/useChildElements";
|
|
6
|
+
import { isDemo, useHost } from "@saasquatch/component-boilerplate";
|
|
8
7
|
/**
|
|
9
8
|
*
|
|
10
9
|
* @uiName Big Stat
|
|
@@ -23,7 +22,8 @@ export class BigStat {
|
|
|
23
22
|
render() {
|
|
24
23
|
var _a;
|
|
25
24
|
const { props, label } = isDemo() ? useDemoBigStat(this) : useBigStat(this);
|
|
26
|
-
const
|
|
25
|
+
const host = useHost();
|
|
26
|
+
const hasLabel = !!((_a = host.innerHTML) === null || _a === void 0 ? void 0 : _a.trim());
|
|
27
27
|
const labelSlot = h("slot", { name: "label" }, hasLabel ? h("slot", null) : label);
|
|
28
28
|
return h(BigStatView, Object.assign({}, props, { labelSlot: labelSlot }));
|
|
29
29
|
}
|
|
@@ -38,7 +38,7 @@ _, status) => {
|
|
|
38
38
|
`, { queryFilter }, (res) => {
|
|
39
39
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
40
40
|
return ({
|
|
41
|
-
value: (_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.referrals) === null || _c === void 0 ? void 0 : _c.totalCount,
|
|
41
|
+
value: ((_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.referrals) === null || _c === void 0 ? void 0 : _c.totalCount) || 0,
|
|
42
42
|
statvalue: (_g = (_f = (_e = (_d = res.data) === null || _d === void 0 ? void 0 : _d.viewer) === null || _e === void 0 ? void 0 : _e.referrals) === null || _f === void 0 ? void 0 : _f.totalCount) === null || _g === void 0 ? void 0 : _g.toString(),
|
|
43
43
|
});
|
|
44
44
|
});
|
|
@@ -3,6 +3,7 @@ import { createStyleSheet } from "../../styling/JSS";
|
|
|
3
3
|
export function HeroImageView(props, children) {
|
|
4
4
|
const overlay = Boolean((props.header || props.description || props.buttonText) &&
|
|
5
5
|
props.layout === "overlay");
|
|
6
|
+
// Dependent on props, not feasiable to move out
|
|
6
7
|
const style = {
|
|
7
8
|
Container: {
|
|
8
9
|
position: "relative",
|
|
@@ -33,10 +34,17 @@ export function HeroImageView(props, children) {
|
|
|
33
34
|
},
|
|
34
35
|
Overlay: {
|
|
35
36
|
zIndex: "1",
|
|
36
|
-
padding: "var(--sl-spacing-" +
|
|
37
|
+
padding: "calc(var(--sl-spacing-" +
|
|
38
|
+
props.paddingText +
|
|
39
|
+
") + var(--sl-spacing-" +
|
|
40
|
+
props.paddingImage +
|
|
41
|
+
"))",
|
|
37
42
|
textAlign: "center",
|
|
38
43
|
color: props.textColor || "var(--sl-color-neutral-0)",
|
|
39
44
|
lineHeight: "var(--sl-line-height-dense)",
|
|
45
|
+
"@media (max-width: 599px)": {
|
|
46
|
+
padding: "var(--sl-spacing-" + props.paddingText + ")",
|
|
47
|
+
},
|
|
40
48
|
},
|
|
41
49
|
Column: {
|
|
42
50
|
display: "flex",
|
|
@@ -48,7 +56,6 @@ export function HeroImageView(props, children) {
|
|
|
48
56
|
width: props.imagePercentage ? props.imagePercentage + "%" : "50%",
|
|
49
57
|
padding: "var(--sl-spacing-" + props.paddingImage + ")",
|
|
50
58
|
boxSizing: "border-box",
|
|
51
|
-
// margin: props.maxHeight ? "auto" : "",
|
|
52
59
|
"@media (max-width: 599px)": {
|
|
53
60
|
width: "100%",
|
|
54
61
|
},
|
|
@@ -64,7 +64,7 @@ const View = (overrideProps) => {
|
|
|
64
64
|
...overrideProps,
|
|
65
65
|
};
|
|
66
66
|
const { leaderboardType, rankType } = props;
|
|
67
|
-
console.log(`View("${leaderboardType}") - CALLED`, { ...props });
|
|
67
|
+
// console.log(`View("${leaderboardType}") - CALLED`, { ...props });
|
|
68
68
|
return (h("div", { style: { marginBottom: "20px" } },
|
|
69
69
|
h("sqm-divided-layout", { direction: "row" },
|
|
70
70
|
h("div", { style: { padding: "10px" } },
|
|
@@ -146,7 +146,7 @@ export const DemoHookEmpty = createHookStory(() => {
|
|
|
146
146
|
anonymousUser: "Anonymous User",
|
|
147
147
|
showRank: true,
|
|
148
148
|
},
|
|
149
|
-
}
|
|
149
|
+
},
|
|
150
150
|
} },
|
|
151
151
|
h("sqm-empty", { "empty-state-image": "https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_leaderboard2.png", "empty-state-header": "View your rank in the leaderboard", "empty-state-text": "Be the first to refer a friend and reach the top of the leaderboard" })));
|
|
152
152
|
});
|
|
@@ -52,10 +52,6 @@ export function LeaderboardView(props) {
|
|
|
52
52
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
53
53
|
const { states, data, elements } = props;
|
|
54
54
|
const { styles } = states;
|
|
55
|
-
console.log("LEADER", props);
|
|
56
|
-
console.log(styles);
|
|
57
|
-
console.log("hideViewer", styles.hideViewer);
|
|
58
|
-
console.log(!styles.hideViewer);
|
|
59
55
|
if (states.loading)
|
|
60
56
|
return (h("div", { class: sheet.classes.Leaderboard },
|
|
61
57
|
h("style", { type: "text/css" },
|
|
@@ -91,7 +87,6 @@ export function LeaderboardView(props) {
|
|
|
91
87
|
h("td", { class: "Score" }, user.value)));
|
|
92
88
|
}),
|
|
93
89
|
!userSeenFlag && !styles.hideViewer && (h("tr", null,
|
|
94
|
-
console.log("res", !userSeenFlag && !styles.hideViewer),
|
|
95
90
|
h("td", { colSpan: 100, class: "ellipses" },
|
|
96
91
|
h("sl-icon", { name: "three-dots", style: { verticalAlign: "middle" } })))),
|
|
97
92
|
!userSeenFlag && !styles.hideViewer && (h("tr", { class: "highlight" },
|
|
@@ -45,3 +45,75 @@ export const FullWidth = () => (h("div", { style: { width: "1000px", border: "1p
|
|
|
45
45
|
h("sqm-share-button", { icon: "envelope", medium: "email", size: "medium", class: "hydrated" }, "Email a friend"),
|
|
46
46
|
h("sqm-share-button", { medium: "twitter", size: "medium", class: "hydrated" }, "Tweet about us"),
|
|
47
47
|
h("sqm-share-button", { medium: "facebook", size: "medium", class: "hydrated" }, "Share on Facebook"))));
|
|
48
|
+
export const SpaceBetween = () => {
|
|
49
|
+
return (h("div", { style: { width: "1000px", border: "1px dashed grey" } },
|
|
50
|
+
h("sqm-portal-container", { center: true, direction: "row", display: "flex", "justify-content": "space-between" },
|
|
51
|
+
h("sqm-stat-container", { space: "xxx-large", display: "flex" },
|
|
52
|
+
h("sqm-big-stat", { "flex-reverse": "true", alignment: "left", "stat-type": "/rewardsRedeemed/CREDIT/global" },
|
|
53
|
+
h("sqm-text", null,
|
|
54
|
+
h("p", null, "Rewards Redeemed"))),
|
|
55
|
+
h("sqm-big-stat", { "flex-reverse": "true", alignment: "left", "stat-type": "/rewardBalance/CREDIT/POINT/value/global" },
|
|
56
|
+
h("sqm-text", null,
|
|
57
|
+
h("p", null, "Points Balance")))),
|
|
58
|
+
h("sqm-scroll", { "scroll-id": "tab-2", outline: true, "button-type": "primary", "button-text": "Redeem your rewards", mobile: true }))));
|
|
59
|
+
};
|
|
60
|
+
export const SpaceAround = () => {
|
|
61
|
+
return (h("div", { style: { width: "1000px", border: "1px dashed grey" } },
|
|
62
|
+
h("sqm-portal-container", { center: true, direction: "row", display: "flex", "justify-content": "space-around" },
|
|
63
|
+
h("sqm-stat-container", { space: "xxx-large", display: "flex" },
|
|
64
|
+
h("sqm-big-stat", { "flex-reverse": "true", alignment: "left", "stat-type": "/rewardsRedeemed/CREDIT/global" },
|
|
65
|
+
h("sqm-text", null,
|
|
66
|
+
h("p", null, "Rewards Redeemed"))),
|
|
67
|
+
h("sqm-big-stat", { "flex-reverse": "true", alignment: "left", "stat-type": "/rewardBalance/CREDIT/POINT/value/global" },
|
|
68
|
+
h("sqm-text", null,
|
|
69
|
+
h("p", null, "Points Balance")))),
|
|
70
|
+
h("sqm-scroll", { "scroll-id": "tab-2", outline: true, "button-type": "primary", "button-text": "Redeem your rewards", mobile: true }))));
|
|
71
|
+
};
|
|
72
|
+
export const SpaceEvenly = () => {
|
|
73
|
+
return (h("div", { style: { width: "1000px", border: "1px dashed grey" } },
|
|
74
|
+
h("sqm-portal-container", { center: true, direction: "row", display: "flex", "justify-content": "space-evenly" },
|
|
75
|
+
h("sqm-stat-container", { space: "xxx-large", display: "flex" },
|
|
76
|
+
h("sqm-big-stat", { "flex-reverse": "true", alignment: "left", "stat-type": "/rewardsRedeemed/CREDIT/global" },
|
|
77
|
+
h("sqm-text", null,
|
|
78
|
+
h("p", null, "Rewards Redeemed"))),
|
|
79
|
+
h("sqm-big-stat", { "flex-reverse": "true", alignment: "left", "stat-type": "/rewardBalance/CREDIT/POINT/value/global" },
|
|
80
|
+
h("sqm-text", null,
|
|
81
|
+
h("p", null, "Points Balance")))),
|
|
82
|
+
h("sqm-scroll", { "scroll-id": "tab-2", outline: true, "button-type": "primary", "button-text": "Redeem your rewards", mobile: true }))));
|
|
83
|
+
};
|
|
84
|
+
export const Start = () => {
|
|
85
|
+
return (h("div", { style: { width: "1000px", border: "1px dashed grey" } },
|
|
86
|
+
h("sqm-portal-container", { center: true, direction: "row", display: "flex", "justify-content": "start" },
|
|
87
|
+
h("sqm-stat-container", { space: "xxx-large", display: "flex" },
|
|
88
|
+
h("sqm-big-stat", { "flex-reverse": "true", alignment: "left", "stat-type": "/rewardsRedeemed/CREDIT/global" },
|
|
89
|
+
h("sqm-text", null,
|
|
90
|
+
h("p", null, "Rewards Redeemed"))),
|
|
91
|
+
h("sqm-big-stat", { "flex-reverse": "true", alignment: "left", "stat-type": "/rewardBalance/CREDIT/POINT/value/global" },
|
|
92
|
+
h("sqm-text", null,
|
|
93
|
+
h("p", null, "Points Balance")))),
|
|
94
|
+
h("sqm-scroll", { "scroll-id": "tab-2", outline: true, "button-type": "primary", "button-text": "Redeem your rewards", mobile: true }))));
|
|
95
|
+
};
|
|
96
|
+
export const Center = () => {
|
|
97
|
+
return (h("div", { style: { width: "1000px", border: "1px dashed grey" } },
|
|
98
|
+
h("sqm-portal-container", { center: true, direction: "row", display: "flex", "justify-content": "center" },
|
|
99
|
+
h("sqm-stat-container", { space: "xxx-large", display: "flex" },
|
|
100
|
+
h("sqm-big-stat", { "flex-reverse": "true", alignment: "left", "stat-type": "/rewardsRedeemed/CREDIT/global" },
|
|
101
|
+
h("sqm-text", null,
|
|
102
|
+
h("p", null, "Rewards Redeemed"))),
|
|
103
|
+
h("sqm-big-stat", { "flex-reverse": "true", alignment: "left", "stat-type": "/rewardBalance/CREDIT/POINT/value/global" },
|
|
104
|
+
h("sqm-text", null,
|
|
105
|
+
h("p", null, "Points Balance")))),
|
|
106
|
+
h("sqm-scroll", { "scroll-id": "tab-2", outline: true, "button-type": "primary", "button-text": "Redeem your rewards", mobile: true }))));
|
|
107
|
+
};
|
|
108
|
+
export const End = () => {
|
|
109
|
+
return (h("div", { style: { width: "1000px", border: "1px dashed grey" } },
|
|
110
|
+
h("sqm-portal-container", { center: true, direction: "row", display: "flex", "justify-content": "end" },
|
|
111
|
+
h("sqm-stat-container", { space: "xxx-large", display: "flex" },
|
|
112
|
+
h("sqm-big-stat", { "flex-reverse": "true", alignment: "left", "stat-type": "/rewardsRedeemed/CREDIT/global" },
|
|
113
|
+
h("sqm-text", null,
|
|
114
|
+
h("p", null, "Rewards Redeemed"))),
|
|
115
|
+
h("sqm-big-stat", { "flex-reverse": "true", alignment: "left", "stat-type": "/rewardBalance/CREDIT/POINT/value/global" },
|
|
116
|
+
h("sqm-text", null,
|
|
117
|
+
h("p", null, "Points Balance")))),
|
|
118
|
+
h("sqm-scroll", { "scroll-id": "tab-2", outline: true, "button-type": "primary", "button-text": "Redeem your rewards", mobile: true }))));
|
|
119
|
+
};
|
|
@@ -10,8 +10,9 @@ export function PortalContainerView(props, children) {
|
|
|
10
10
|
: "100%",
|
|
11
11
|
"grid-gap": `var(--sl-spacing-${props.gap})`,
|
|
12
12
|
padding: props.padding === "none" ? "0" : `var(--sl-spacing-${props.padding})`,
|
|
13
|
-
maxWidth: props.maxWidth
|
|
13
|
+
maxWidth: props.maxWidth,
|
|
14
14
|
margin: props.center && "auto",
|
|
15
|
+
justifyContent: props.justifyContent,
|
|
15
16
|
},
|
|
16
17
|
};
|
|
17
18
|
const vanillaStyle = `
|
|
@@ -177,6 +177,32 @@ export class PortalContainer {
|
|
|
177
177
|
"reflect": false,
|
|
178
178
|
"defaultValue": "\"grid\""
|
|
179
179
|
},
|
|
180
|
+
"justifyContent": {
|
|
181
|
+
"type": "string",
|
|
182
|
+
"mutable": false,
|
|
183
|
+
"complexType": {
|
|
184
|
+
"original": "| \"start\"\r\n | \"center\"\r\n | \"end\"\r\n | \"space-between\"\r\n | \"space-around\"\r\n | \"space-evenly\"",
|
|
185
|
+
"resolved": "\"center\" | \"end\" | \"space-around\" | \"space-between\" | \"space-evenly\" | \"start\"",
|
|
186
|
+
"references": {}
|
|
187
|
+
},
|
|
188
|
+
"required": false,
|
|
189
|
+
"optional": true,
|
|
190
|
+
"docs": {
|
|
191
|
+
"tags": [{
|
|
192
|
+
"text": "Justify content",
|
|
193
|
+
"name": "uiName"
|
|
194
|
+
}, {
|
|
195
|
+
"text": "string",
|
|
196
|
+
"name": "uiType"
|
|
197
|
+
}, {
|
|
198
|
+
"text": "[\"start\", \"center\", \"end\", \"space-between\", \"space-around\", \"space-evenly\"]",
|
|
199
|
+
"name": "uiEnum"
|
|
200
|
+
}],
|
|
201
|
+
"text": ""
|
|
202
|
+
},
|
|
203
|
+
"attribute": "justify-content",
|
|
204
|
+
"reflect": false
|
|
205
|
+
},
|
|
180
206
|
"maxWidth": {
|
|
181
207
|
"type": "string",
|
|
182
208
|
"mutable": false,
|
|
@@ -1,54 +1,56 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { createStyleSheet } from "../../styling/JSS";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
padding: "0",
|
|
18
|
-
marginBottom: "var(--sl-spacing-xx-large)",
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
"& .right": {
|
|
22
|
-
boxSizing: "border-box",
|
|
23
|
-
width: "50%",
|
|
24
|
-
padding: "var(--sl-spacing-large)",
|
|
25
|
-
paddingLeft: "var(--sl-spacing-medium)",
|
|
26
|
-
alignSelf: props.verticalAlignment,
|
|
27
|
-
"@media (max-width: 499px)": {
|
|
28
|
-
width: "100%",
|
|
29
|
-
padding: "0",
|
|
30
|
-
},
|
|
3
|
+
const style = {
|
|
4
|
+
Container: {
|
|
5
|
+
display: "flex",
|
|
6
|
+
color: "var(--sl-color-neutral-900)",
|
|
7
|
+
background: "var(--sl-color-neutral-0)",
|
|
8
|
+
"& .left": {
|
|
9
|
+
boxSizing: "border-box",
|
|
10
|
+
width: "50%",
|
|
11
|
+
padding: "var(--sl-spacing-large)",
|
|
12
|
+
paddingRight: "var(--sl-spacing-medium)",
|
|
13
|
+
"@media (max-width: 499px)": {
|
|
14
|
+
width: "100%",
|
|
15
|
+
padding: "0",
|
|
16
|
+
marginBottom: "var(--sl-spacing-xx-large)",
|
|
31
17
|
},
|
|
32
|
-
|
|
33
|
-
|
|
18
|
+
},
|
|
19
|
+
"& .right": {
|
|
20
|
+
boxSizing: "border-box",
|
|
21
|
+
width: "50%",
|
|
22
|
+
padding: "var(--sl-spacing-large)",
|
|
23
|
+
paddingLeft: "var(--sl-spacing-medium)",
|
|
34
24
|
"@media (max-width: 499px)": {
|
|
35
|
-
|
|
36
|
-
|
|
25
|
+
width: "100%",
|
|
26
|
+
padding: "0",
|
|
37
27
|
},
|
|
38
28
|
},
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
29
|
+
border: "1px solid var(--sl-color-neutral-300)",
|
|
30
|
+
borderRadius: "var(--sl-border-radius-large)",
|
|
31
|
+
"@media (max-width: 499px)": {
|
|
32
|
+
flexDirection: "column",
|
|
33
|
+
border: "none",
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
const sheet = createStyleSheet(style);
|
|
38
|
+
const styleString = sheet.toString();
|
|
39
|
+
const vanillaStyle = `
|
|
43
40
|
:host{
|
|
44
41
|
display: block;
|
|
45
42
|
}
|
|
46
43
|
`;
|
|
44
|
+
export function ReferralCardView(props) {
|
|
47
45
|
return (h("div", null,
|
|
48
46
|
h("style", { type: "text/css" },
|
|
49
47
|
styleString,
|
|
50
48
|
vanillaStyle),
|
|
51
49
|
h("div", { class: sheet.classes.Container },
|
|
52
|
-
h("div", { class: "left"
|
|
53
|
-
|
|
50
|
+
h("div", { class: "left", style: {
|
|
51
|
+
alignSelf: props.verticalAlignment,
|
|
52
|
+
} }, props.slots.left),
|
|
53
|
+
h("div", { class: "right", style: {
|
|
54
|
+
alignSelf: props.verticalAlignment,
|
|
55
|
+
} }, props.slots.right))));
|
|
54
56
|
}
|
package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js
CHANGED
|
@@ -116,7 +116,6 @@ export class ReferralTableRewardsCell {
|
|
|
116
116
|
}, {
|
|
117
117
|
status: state,
|
|
118
118
|
});
|
|
119
|
-
const rid = Math.random().toString(36).slice(2);
|
|
120
119
|
return (h("sl-details", { class: sheet.classes.Details, disabled: this.hideDetails },
|
|
121
120
|
h("style", { type: "text/css" }, styleString),
|
|
122
121
|
h("div", { slot: "summary", class: sheet.classes.DetailsContainer },
|
package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js
CHANGED
|
@@ -53,7 +53,16 @@ export class ReferralTableRewardsColumn {
|
|
|
53
53
|
return (h("sqm-referral-table-rewards-cell", { rewards: data.rewards }));
|
|
54
54
|
}
|
|
55
55
|
render() {
|
|
56
|
-
useRequestRerender([
|
|
56
|
+
useRequestRerender([
|
|
57
|
+
this.columnTitle,
|
|
58
|
+
this.statusText,
|
|
59
|
+
this.statusLongText,
|
|
60
|
+
this.fuelTankText,
|
|
61
|
+
this.rewardReceivedText,
|
|
62
|
+
this.expiringText,
|
|
63
|
+
this.pendingForText,
|
|
64
|
+
this.hideDetails,
|
|
65
|
+
]);
|
|
57
66
|
return h(Host, { style: { display: "none" } });
|
|
58
67
|
}
|
|
59
68
|
static get is() { return "sqm-referral-table-rewards-column"; }
|
package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-status-column.js
CHANGED
|
@@ -39,7 +39,11 @@ export class ReferralTableStatusColumn {
|
|
|
39
39
|
return (h("sqm-referral-table-status-cell", { "status-text": statusText, converted: data.dateConverted ? true : false }));
|
|
40
40
|
}
|
|
41
41
|
render() {
|
|
42
|
-
useRequestRerender([
|
|
42
|
+
useRequestRerender([
|
|
43
|
+
this.columnTitle,
|
|
44
|
+
this.convertedStatusText,
|
|
45
|
+
this.inProgressStatusText,
|
|
46
|
+
]);
|
|
43
47
|
return h(Host, { style: { display: "none" } });
|
|
44
48
|
}
|
|
45
49
|
static get is() { return "sqm-referral-table-status-column"; }
|
|
@@ -23,11 +23,14 @@ export class ReferralTable {
|
|
|
23
23
|
this.moreLabel = "Next";
|
|
24
24
|
/** @uiName Show Referred by user in table */
|
|
25
25
|
this.showReferrer = false;
|
|
26
|
-
|
|
26
|
+
/*
|
|
27
|
+
* Provide the column numbers (0 indexed) that should not be displayed in mobile views. Ex. 0,2,3
|
|
28
|
+
*
|
|
29
|
+
* @uiName Mobile Hidden Columns */
|
|
27
30
|
this.hiddenColumns = "0";
|
|
28
|
-
/** @uiName
|
|
31
|
+
/** @uiName Mobile Breakpoint */
|
|
29
32
|
this.smBreakpoint = 634;
|
|
30
|
-
/** @uiName
|
|
33
|
+
/** @uiName Tablet Breakpoint */
|
|
31
34
|
this.mdBreakpoint = 899;
|
|
32
35
|
withHooks(this);
|
|
33
36
|
}
|
|
@@ -180,10 +183,7 @@ export class ReferralTable {
|
|
|
180
183
|
"required": false,
|
|
181
184
|
"optional": true,
|
|
182
185
|
"docs": {
|
|
183
|
-
"tags": [
|
|
184
|
-
"text": "Hide Column Labels (Mobile View)",
|
|
185
|
-
"name": "uiName"
|
|
186
|
-
}],
|
|
186
|
+
"tags": [],
|
|
187
187
|
"text": ""
|
|
188
188
|
},
|
|
189
189
|
"attribute": "hidden-columns",
|
|
@@ -202,7 +202,7 @@ export class ReferralTable {
|
|
|
202
202
|
"optional": true,
|
|
203
203
|
"docs": {
|
|
204
204
|
"tags": [{
|
|
205
|
-
"text": "
|
|
205
|
+
"text": "Mobile Breakpoint",
|
|
206
206
|
"name": "uiName"
|
|
207
207
|
}],
|
|
208
208
|
"text": ""
|
|
@@ -223,7 +223,7 @@ export class ReferralTable {
|
|
|
223
223
|
"optional": true,
|
|
224
224
|
"docs": {
|
|
225
225
|
"tags": [{
|
|
226
|
-
"text": "
|
|
226
|
+
"text": "Tablet Breakpoint",
|
|
227
227
|
"name": "uiName"
|
|
228
228
|
}],
|
|
229
229
|
"text": ""
|
|
@@ -266,7 +266,7 @@ export class ReferralTable {
|
|
|
266
266
|
}
|
|
267
267
|
function EmptySlot() {
|
|
268
268
|
return (h("slot", { name: "empty" },
|
|
269
|
-
h("sqm-empty", { "empty-state-image": "https://res.cloudinary.com/saasquatch/image/upload/v1644000223/squatch-assets/empty_referral2.png", "empty-state-header": "View your referral details", "empty-state-text": "
|
|
269
|
+
h("sqm-empty", { "empty-state-image": "https://res.cloudinary.com/saasquatch/image/upload/v1644000223/squatch-assets/empty_referral2.png", "empty-state-header": "View your referral details", "empty-state-text": "Refer a friend to view the status of your referrals and rewards earned" })));
|
|
270
270
|
}
|
|
271
271
|
function LoadingSlot() {
|
|
272
272
|
return (h("slot", { name: "loading" },
|
|
@@ -354,6 +354,8 @@ function useReferralTableDemo(props, emptyElement, loadingElement) {
|
|
|
354
354
|
moreLabel: props.moreLabel,
|
|
355
355
|
},
|
|
356
356
|
referralData: [],
|
|
357
|
+
mdBreakpoint: 899,
|
|
358
|
+
smBreakpoint: 599,
|
|
357
359
|
},
|
|
358
360
|
elements: {
|
|
359
361
|
columns: content.columns,
|
|
@@ -17,7 +17,7 @@ const baseResponse = (data, stage = "chooseReward", selectedItem = null, selecte
|
|
|
17
17
|
redeemTitle: "Confirm and redeem",
|
|
18
18
|
redemptionSuccessText: "Redeemed {sourceValue} for {destinationValue}",
|
|
19
19
|
doneText: "Done",
|
|
20
|
-
|
|
20
|
+
tooltipText: "Copied!",
|
|
21
21
|
selectText: "Select amount to receive",
|
|
22
22
|
sourceAmountMessage: "{ruleType, select, FIXED_GLOBAL_REWARD {{sourceValue}} other {{sourceMinValue} to {sourceMaxValue}}}",
|
|
23
23
|
rewardRedeemedText: "Reward redeemed",
|
package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js
CHANGED
|
@@ -538,7 +538,7 @@ export function RewardExchangeView(props) {
|
|
|
538
538
|
})),
|
|
539
539
|
(data === null || data === void 0 ? void 0 : data.fuelTankCode) && (h("div", { class: "promo" },
|
|
540
540
|
states.content.text.promoCode,
|
|
541
|
-
h(ShareLinkView, { shareString: data.fuelTankCode,
|
|
541
|
+
h(ShareLinkView, { shareString: data.fuelTankCode, tooltipText: (_f = states === null || states === void 0 ? void 0 : states.content) === null || _f === void 0 ? void 0 : _f.text.tooltipText, open: states.open, onClick: callbacks.copyFuelTankCode }))),
|
|
542
542
|
h("div", { class: sheet.classes.Button },
|
|
543
543
|
h("sl-button", { class: "continue center", type: "primary", size: "large", onClick: () => callbacks.resetState(true) }, states.content.text.doneText))));
|
|
544
544
|
}
|