@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
|
@@ -2,10 +2,23 @@ import { withHooks } from "@saasquatch/stencil-hooks";
|
|
|
2
2
|
import { Component, h, Prop, State } from "@stencil/core";
|
|
3
3
|
import { useScroll } from "./useScroll";
|
|
4
4
|
import { createStyleSheet } from "../../styling/JSS";
|
|
5
|
+
/**
|
|
6
|
+
* @uiName Scroll
|
|
7
|
+
*/
|
|
5
8
|
export class Scroll {
|
|
6
9
|
constructor() {
|
|
7
10
|
this.ignored = true;
|
|
11
|
+
/**
|
|
12
|
+
* @uiName Button Type
|
|
13
|
+
* @uiType string
|
|
14
|
+
* @uiEnum ["default", "primary", "success", "neutral", "warning", "danger", "text"]
|
|
15
|
+
*/
|
|
8
16
|
this.buttonType = "default";
|
|
17
|
+
/**
|
|
18
|
+
* @uiName Scroll Animation Style
|
|
19
|
+
* @uiType string
|
|
20
|
+
* @uiEnum ["smooth", "auto"]
|
|
21
|
+
*/
|
|
9
22
|
this.scrollAnimation = "smooth";
|
|
10
23
|
withHooks(this);
|
|
11
24
|
}
|
|
@@ -36,12 +49,13 @@ export class Scroll {
|
|
|
36
49
|
const styleString = sheet.toString();
|
|
37
50
|
const vanillaStyle = `
|
|
38
51
|
:host{
|
|
39
|
-
display:
|
|
52
|
+
display: contents;
|
|
40
53
|
}
|
|
41
|
-
${this.
|
|
54
|
+
${this.mobile &&
|
|
42
55
|
`
|
|
43
56
|
@media only screen and (max-width: 499px) {
|
|
44
57
|
:host {
|
|
58
|
+
display: block;
|
|
45
59
|
width: 100%;
|
|
46
60
|
}
|
|
47
61
|
}
|
|
@@ -50,14 +64,14 @@ export class Scroll {
|
|
|
50
64
|
let classStack = "";
|
|
51
65
|
if (this.outline)
|
|
52
66
|
classStack += "outline ";
|
|
53
|
-
if (this.
|
|
67
|
+
if (this.mobile)
|
|
54
68
|
classStack += "mobile ";
|
|
55
69
|
return (h("div", { class: sheet.classes.Button },
|
|
56
70
|
h("style", { type: "text/css" },
|
|
57
71
|
vanillaStyle,
|
|
58
72
|
styleString),
|
|
59
|
-
h("sl-button", { type: this.outline ? "primary" : this.buttonType, onClick: callbacks.scroll, size: this.size, pill: this.pill,
|
|
60
|
-
this.iconSlot
|
|
73
|
+
h("sl-button", { type: this.outline ? "primary" : this.buttonType, onClick: callbacks.scroll, size: this.size, pill: this.pill, circle: this.circle, class: classStack },
|
|
74
|
+
(this.iconSlot || this.iconName) && (h("sl-icon", { slot: this.iconSlot || "prefix", name: this.iconName })),
|
|
61
75
|
this.buttonText,
|
|
62
76
|
h("slot", null))));
|
|
63
77
|
}
|
|
@@ -75,7 +89,16 @@ export class Scroll {
|
|
|
75
89
|
"required": false,
|
|
76
90
|
"optional": false,
|
|
77
91
|
"docs": {
|
|
78
|
-
"tags": [
|
|
92
|
+
"tags": [{
|
|
93
|
+
"text": "Button Type",
|
|
94
|
+
"name": "uiName"
|
|
95
|
+
}, {
|
|
96
|
+
"text": "string",
|
|
97
|
+
"name": "uiType"
|
|
98
|
+
}, {
|
|
99
|
+
"text": "[\"default\", \"primary\", \"success\", \"neutral\", \"warning\", \"danger\", \"text\"]",
|
|
100
|
+
"name": "uiEnum"
|
|
101
|
+
}],
|
|
79
102
|
"text": ""
|
|
80
103
|
},
|
|
81
104
|
"attribute": "button-type",
|
|
@@ -93,7 +116,10 @@ export class Scroll {
|
|
|
93
116
|
"required": false,
|
|
94
117
|
"optional": false,
|
|
95
118
|
"docs": {
|
|
96
|
-
"tags": [
|
|
119
|
+
"tags": [{
|
|
120
|
+
"text": "Button Text",
|
|
121
|
+
"name": "uiName"
|
|
122
|
+
}],
|
|
97
123
|
"text": ""
|
|
98
124
|
},
|
|
99
125
|
"attribute": "button-text",
|
|
@@ -110,7 +136,10 @@ export class Scroll {
|
|
|
110
136
|
"required": false,
|
|
111
137
|
"optional": true,
|
|
112
138
|
"docs": {
|
|
113
|
-
"tags": [
|
|
139
|
+
"tags": [{
|
|
140
|
+
"text": "Scroll Tag Name",
|
|
141
|
+
"name": "uiName"
|
|
142
|
+
}],
|
|
114
143
|
"text": ""
|
|
115
144
|
},
|
|
116
145
|
"attribute": "scroll-tag-name",
|
|
@@ -127,7 +156,10 @@ export class Scroll {
|
|
|
127
156
|
"required": false,
|
|
128
157
|
"optional": true,
|
|
129
158
|
"docs": {
|
|
130
|
-
"tags": [
|
|
159
|
+
"tags": [{
|
|
160
|
+
"text": "Scroll Id",
|
|
161
|
+
"name": "uiName"
|
|
162
|
+
}],
|
|
131
163
|
"text": ""
|
|
132
164
|
},
|
|
133
165
|
"attribute": "scroll-id",
|
|
@@ -144,30 +176,22 @@ export class Scroll {
|
|
|
144
176
|
"required": false,
|
|
145
177
|
"optional": false,
|
|
146
178
|
"docs": {
|
|
147
|
-
"tags": [
|
|
179
|
+
"tags": [{
|
|
180
|
+
"text": "Scroll Animation Style",
|
|
181
|
+
"name": "uiName"
|
|
182
|
+
}, {
|
|
183
|
+
"text": "string",
|
|
184
|
+
"name": "uiType"
|
|
185
|
+
}, {
|
|
186
|
+
"text": "[\"smooth\", \"auto\"]",
|
|
187
|
+
"name": "uiEnum"
|
|
188
|
+
}],
|
|
148
189
|
"text": ""
|
|
149
190
|
},
|
|
150
191
|
"attribute": "scroll-animation",
|
|
151
192
|
"reflect": false,
|
|
152
193
|
"defaultValue": "\"smooth\""
|
|
153
194
|
},
|
|
154
|
-
"mobileFriendly": {
|
|
155
|
-
"type": "boolean",
|
|
156
|
-
"mutable": false,
|
|
157
|
-
"complexType": {
|
|
158
|
-
"original": "boolean",
|
|
159
|
-
"resolved": "boolean",
|
|
160
|
-
"references": {}
|
|
161
|
-
},
|
|
162
|
-
"required": false,
|
|
163
|
-
"optional": true,
|
|
164
|
-
"docs": {
|
|
165
|
-
"tags": [],
|
|
166
|
-
"text": ""
|
|
167
|
-
},
|
|
168
|
-
"attribute": "mobile-friendly",
|
|
169
|
-
"reflect": false
|
|
170
|
-
},
|
|
171
195
|
"size": {
|
|
172
196
|
"type": "string",
|
|
173
197
|
"mutable": false,
|
|
@@ -179,7 +203,16 @@ export class Scroll {
|
|
|
179
203
|
"required": false,
|
|
180
204
|
"optional": false,
|
|
181
205
|
"docs": {
|
|
182
|
-
"tags": [
|
|
206
|
+
"tags": [{
|
|
207
|
+
"text": "Size",
|
|
208
|
+
"name": "uiName"
|
|
209
|
+
}, {
|
|
210
|
+
"text": "string",
|
|
211
|
+
"name": "uiType"
|
|
212
|
+
}, {
|
|
213
|
+
"text": "[\"small\", \"medium\", \"large\"]",
|
|
214
|
+
"name": "uiEnum"
|
|
215
|
+
}],
|
|
183
216
|
"text": ""
|
|
184
217
|
},
|
|
185
218
|
"attribute": "size",
|
|
@@ -196,8 +229,11 @@ export class Scroll {
|
|
|
196
229
|
"required": false,
|
|
197
230
|
"optional": false,
|
|
198
231
|
"docs": {
|
|
199
|
-
"tags": [
|
|
200
|
-
|
|
232
|
+
"tags": [{
|
|
233
|
+
"text": "Outline",
|
|
234
|
+
"name": "uiName"
|
|
235
|
+
}],
|
|
236
|
+
"text": "Draws an outlined button with primary color."
|
|
201
237
|
},
|
|
202
238
|
"attribute": "outline",
|
|
203
239
|
"reflect": false
|
|
@@ -213,29 +249,15 @@ export class Scroll {
|
|
|
213
249
|
"required": false,
|
|
214
250
|
"optional": false,
|
|
215
251
|
"docs": {
|
|
216
|
-
"tags": [
|
|
217
|
-
|
|
252
|
+
"tags": [{
|
|
253
|
+
"text": "Pill",
|
|
254
|
+
"name": "uiName"
|
|
255
|
+
}],
|
|
256
|
+
"text": "Draws a pill-style button with rounded edges."
|
|
218
257
|
},
|
|
219
258
|
"attribute": "pill",
|
|
220
259
|
"reflect": false
|
|
221
260
|
},
|
|
222
|
-
"href": {
|
|
223
|
-
"type": "string",
|
|
224
|
-
"mutable": false,
|
|
225
|
-
"complexType": {
|
|
226
|
-
"original": "string",
|
|
227
|
-
"resolved": "string",
|
|
228
|
-
"references": {}
|
|
229
|
-
},
|
|
230
|
-
"required": false,
|
|
231
|
-
"optional": false,
|
|
232
|
-
"docs": {
|
|
233
|
-
"tags": [],
|
|
234
|
-
"text": ""
|
|
235
|
-
},
|
|
236
|
-
"attribute": "href",
|
|
237
|
-
"reflect": false
|
|
238
|
-
},
|
|
239
261
|
"circle": {
|
|
240
262
|
"type": "boolean",
|
|
241
263
|
"mutable": false,
|
|
@@ -247,30 +269,16 @@ export class Scroll {
|
|
|
247
269
|
"required": false,
|
|
248
270
|
"optional": false,
|
|
249
271
|
"docs": {
|
|
250
|
-
"tags": [
|
|
251
|
-
|
|
272
|
+
"tags": [{
|
|
273
|
+
"text": "Circle",
|
|
274
|
+
"name": "uiName"
|
|
275
|
+
}],
|
|
276
|
+
"text": "Draws a circle button."
|
|
252
277
|
},
|
|
253
278
|
"attribute": "circle",
|
|
254
279
|
"reflect": false
|
|
255
280
|
},
|
|
256
|
-
"
|
|
257
|
-
"type": "string",
|
|
258
|
-
"mutable": false,
|
|
259
|
-
"complexType": {
|
|
260
|
-
"original": "string",
|
|
261
|
-
"resolved": "string",
|
|
262
|
-
"references": {}
|
|
263
|
-
},
|
|
264
|
-
"required": false,
|
|
265
|
-
"optional": false,
|
|
266
|
-
"docs": {
|
|
267
|
-
"tags": [],
|
|
268
|
-
"text": ""
|
|
269
|
-
},
|
|
270
|
-
"attribute": "name",
|
|
271
|
-
"reflect": false
|
|
272
|
-
},
|
|
273
|
-
"target": {
|
|
281
|
+
"iconSlot": {
|
|
274
282
|
"type": "string",
|
|
275
283
|
"mutable": false,
|
|
276
284
|
"complexType": {
|
|
@@ -281,13 +289,22 @@ export class Scroll {
|
|
|
281
289
|
"required": false,
|
|
282
290
|
"optional": false,
|
|
283
291
|
"docs": {
|
|
284
|
-
"tags": [
|
|
292
|
+
"tags": [{
|
|
293
|
+
"text": "Icon Slot",
|
|
294
|
+
"name": "uiName"
|
|
295
|
+
}, {
|
|
296
|
+
"text": "string",
|
|
297
|
+
"name": "uiType"
|
|
298
|
+
}, {
|
|
299
|
+
"text": "[\"prefix\", \"suffix\"]",
|
|
300
|
+
"name": "uiEnum"
|
|
301
|
+
}],
|
|
285
302
|
"text": ""
|
|
286
303
|
},
|
|
287
|
-
"attribute": "
|
|
304
|
+
"attribute": "icon-slot",
|
|
288
305
|
"reflect": false
|
|
289
306
|
},
|
|
290
|
-
"
|
|
307
|
+
"iconName": {
|
|
291
308
|
"type": "string",
|
|
292
309
|
"mutable": false,
|
|
293
310
|
"complexType": {
|
|
@@ -298,47 +315,16 @@ export class Scroll {
|
|
|
298
315
|
"required": false,
|
|
299
316
|
"optional": false,
|
|
300
317
|
"docs": {
|
|
301
|
-
"tags": [
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
"reflect": false
|
|
306
|
-
},
|
|
307
|
-
"disabled": {
|
|
308
|
-
"type": "boolean",
|
|
309
|
-
"mutable": false,
|
|
310
|
-
"complexType": {
|
|
311
|
-
"original": "boolean",
|
|
312
|
-
"resolved": "boolean",
|
|
313
|
-
"references": {}
|
|
314
|
-
},
|
|
315
|
-
"required": false,
|
|
316
|
-
"optional": false,
|
|
317
|
-
"docs": {
|
|
318
|
-
"tags": [],
|
|
319
|
-
"text": ""
|
|
320
|
-
},
|
|
321
|
-
"attribute": "disabled",
|
|
322
|
-
"reflect": false
|
|
323
|
-
},
|
|
324
|
-
"caret": {
|
|
325
|
-
"type": "boolean",
|
|
326
|
-
"mutable": false,
|
|
327
|
-
"complexType": {
|
|
328
|
-
"original": "boolean",
|
|
329
|
-
"resolved": "boolean",
|
|
330
|
-
"references": {}
|
|
331
|
-
},
|
|
332
|
-
"required": false,
|
|
333
|
-
"optional": false,
|
|
334
|
-
"docs": {
|
|
335
|
-
"tags": [],
|
|
318
|
+
"tags": [{
|
|
319
|
+
"text": "Icon Name",
|
|
320
|
+
"name": "uiName"
|
|
321
|
+
}],
|
|
336
322
|
"text": ""
|
|
337
323
|
},
|
|
338
|
-
"attribute": "
|
|
324
|
+
"attribute": "icon-name",
|
|
339
325
|
"reflect": false
|
|
340
326
|
},
|
|
341
|
-
"
|
|
327
|
+
"mobile": {
|
|
342
328
|
"type": "boolean",
|
|
343
329
|
"mutable": false,
|
|
344
330
|
"complexType": {
|
|
@@ -347,46 +333,15 @@ export class Scroll {
|
|
|
347
333
|
"references": {}
|
|
348
334
|
},
|
|
349
335
|
"required": false,
|
|
350
|
-
"optional":
|
|
351
|
-
"docs": {
|
|
352
|
-
"tags": [],
|
|
353
|
-
"text": ""
|
|
354
|
-
},
|
|
355
|
-
"attribute": "loading",
|
|
356
|
-
"reflect": false
|
|
357
|
-
},
|
|
358
|
-
"iconSlot": {
|
|
359
|
-
"type": "string",
|
|
360
|
-
"mutable": false,
|
|
361
|
-
"complexType": {
|
|
362
|
-
"original": "string",
|
|
363
|
-
"resolved": "string",
|
|
364
|
-
"references": {}
|
|
365
|
-
},
|
|
366
|
-
"required": false,
|
|
367
|
-
"optional": false,
|
|
368
|
-
"docs": {
|
|
369
|
-
"tags": [],
|
|
370
|
-
"text": ""
|
|
371
|
-
},
|
|
372
|
-
"attribute": "icon-slot",
|
|
373
|
-
"reflect": false
|
|
374
|
-
},
|
|
375
|
-
"iconName": {
|
|
376
|
-
"type": "string",
|
|
377
|
-
"mutable": false,
|
|
378
|
-
"complexType": {
|
|
379
|
-
"original": "string",
|
|
380
|
-
"resolved": "string",
|
|
381
|
-
"references": {}
|
|
382
|
-
},
|
|
383
|
-
"required": false,
|
|
384
|
-
"optional": false,
|
|
336
|
+
"optional": true,
|
|
385
337
|
"docs": {
|
|
386
|
-
"tags": [
|
|
387
|
-
|
|
338
|
+
"tags": [{
|
|
339
|
+
"text": "Full Width on Mobile",
|
|
340
|
+
"name": "uiName"
|
|
341
|
+
}],
|
|
342
|
+
"text": "Sets button to be full width in mobile resolutions"
|
|
388
343
|
},
|
|
389
|
-
"attribute": "
|
|
344
|
+
"attribute": "mobile",
|
|
390
345
|
"reflect": false
|
|
391
346
|
}
|
|
392
347
|
}; }
|
|
@@ -8,11 +8,11 @@ export default {
|
|
|
8
8
|
},
|
|
9
9
|
};
|
|
10
10
|
export const WithIconPrefix = () => {
|
|
11
|
-
const props = { medium: "whatsapp",
|
|
11
|
+
const props = { medium: "whatsapp", iconSlot: "prefix" };
|
|
12
12
|
return h(ShareButtonView, Object.assign({}, props), "Share");
|
|
13
13
|
};
|
|
14
14
|
export const WithIconSuffix = () => {
|
|
15
|
-
const props = { medium: "whatsapp",
|
|
15
|
+
const props = { medium: "whatsapp", iconSlot: "suffix" };
|
|
16
16
|
return h(ShareButtonView, Object.assign({}, props), "Share");
|
|
17
17
|
};
|
|
18
18
|
export const WithIconOverride = () => {
|
|
@@ -30,15 +30,15 @@ export const TextStyle = () => {
|
|
|
30
30
|
return h(ShareButtonView, Object.assign({}, props), "Share");
|
|
31
31
|
};
|
|
32
32
|
export const WithoutIcon = () => {
|
|
33
|
-
const props = { medium: "facebook",
|
|
33
|
+
const props = { medium: "facebook", hideIcon: true };
|
|
34
34
|
return h(ShareButtonView, Object.assign({}, props), "Share");
|
|
35
35
|
};
|
|
36
36
|
export const WithoutText = () => {
|
|
37
|
-
const props = { medium: "facebook",
|
|
37
|
+
const props = { medium: "facebook", hideText: true };
|
|
38
38
|
return h(ShareButtonView, Object.assign({}, props), "Share");
|
|
39
39
|
};
|
|
40
40
|
export const TextStyleWithoutIcon = () => {
|
|
41
|
-
const props = { medium: "facebook", type: "text",
|
|
41
|
+
const props = { medium: "facebook", type: "text", hideIcon: true };
|
|
42
42
|
return h(ShareButtonView, Object.assign({}, props), "Share");
|
|
43
43
|
};
|
|
44
44
|
export const WithCustomColors = () => {
|
|
@@ -47,7 +47,7 @@ export const WithCustomColors = () => {
|
|
|
47
47
|
type: "text",
|
|
48
48
|
backgroundcolor: "red",
|
|
49
49
|
textcolor: "yellow",
|
|
50
|
-
|
|
50
|
+
iconSlot: "prefix",
|
|
51
51
|
};
|
|
52
52
|
return h(ShareButtonView, Object.assign({}, props), "Facebook");
|
|
53
53
|
};
|
|
@@ -55,8 +55,8 @@ export const WithCustomBorderRadius = () => {
|
|
|
55
55
|
const props = {
|
|
56
56
|
medium: "facebook",
|
|
57
57
|
type: "text",
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
borderRadius: 8,
|
|
59
|
+
iconSlot: "prefix",
|
|
60
60
|
};
|
|
61
61
|
return h(ShareButtonView, Object.assign({}, props), "Facebook");
|
|
62
62
|
};
|
|
@@ -13,40 +13,51 @@ const medium = {
|
|
|
13
13
|
linemessenger: { color: "#00B300", text: "#fff", icon: "line" },
|
|
14
14
|
pinterest: { color: "#e60023", text: "#fff", icon: "pinterest" },
|
|
15
15
|
};
|
|
16
|
+
const style = {
|
|
17
|
+
HostBlock: HostBlock,
|
|
18
|
+
buttonStyle: {
|
|
19
|
+
display: "flex",
|
|
20
|
+
alignItems: "center",
|
|
21
|
+
justifyContent: "center",
|
|
22
|
+
lineHeight: "0",
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
const sheet = createStyleSheet(style);
|
|
26
|
+
const styleString = sheet.toString();
|
|
16
27
|
export function ShareButtonView(props, children) {
|
|
17
28
|
const vanillaStyle = `
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
--sl-focus-ring-color-primary: ${props.
|
|
21
|
-
? props.
|
|
29
|
+
*::part(base) {
|
|
30
|
+
border: none;
|
|
31
|
+
--sl-focus-ring-color-primary: ${props.backgroundColor
|
|
32
|
+
? props.backgroundColor
|
|
22
33
|
: props.medium
|
|
23
34
|
? medium[props.medium].color
|
|
24
35
|
: ""}80!important;
|
|
25
36
|
|
|
26
|
-
|
|
27
|
-
? props.
|
|
37
|
+
background: ${props.backgroundColor
|
|
38
|
+
? props.backgroundColor
|
|
28
39
|
: props.medium
|
|
29
40
|
? medium[props.medium].color
|
|
30
41
|
: ""};
|
|
31
|
-
|
|
32
|
-
? props.
|
|
42
|
+
color: ${props.textColor
|
|
43
|
+
? props.textColor
|
|
33
44
|
: props.medium
|
|
34
45
|
? medium[props.medium].text
|
|
35
46
|
: ""};
|
|
36
|
-
|
|
37
|
-
|
|
47
|
+
border-radius: ${props.borderRadius ? props.borderRadius + "px" : ""};
|
|
48
|
+
}
|
|
38
49
|
|
|
39
50
|
*::part(base):hover {
|
|
40
|
-
border-color: ${props.
|
|
41
|
-
? props.
|
|
51
|
+
border-color: ${props.backgroundColor
|
|
52
|
+
? props.backgroundColor
|
|
42
53
|
: props.medium
|
|
43
54
|
? medium[props.medium].color
|
|
44
55
|
: ""}D1!important;
|
|
45
56
|
}
|
|
46
|
-
|
|
57
|
+
|
|
47
58
|
*::part(base):focus {
|
|
48
|
-
border-color: ${props.
|
|
49
|
-
? props.
|
|
59
|
+
border-color: ${props.backgroundColor
|
|
60
|
+
? props.backgroundColor
|
|
50
61
|
: props.medium
|
|
51
62
|
? medium[props.medium].color
|
|
52
63
|
: ""}D1!important;
|
|
@@ -56,22 +67,11 @@ export function ShareButtonView(props, children) {
|
|
|
56
67
|
position: relative;
|
|
57
68
|
top: 2%;
|
|
58
69
|
}
|
|
59
|
-
|
|
60
|
-
const style = {
|
|
61
|
-
HostBlock: HostBlock,
|
|
62
|
-
buttonStyle: {
|
|
63
|
-
display: "flex",
|
|
64
|
-
alignItems: "center",
|
|
65
|
-
justifyContent: "center",
|
|
66
|
-
lineHeight: "0",
|
|
67
|
-
},
|
|
68
|
-
};
|
|
69
|
-
const sheet = createStyleSheet(style);
|
|
70
|
-
const styleString = sheet.toString();
|
|
70
|
+
`;
|
|
71
71
|
return props.hide ? (h(Host, { style: { display: "none" } })) : (h("div", null,
|
|
72
72
|
h("style", { type: "text/css" }, styleString),
|
|
73
73
|
h("style", { type: "text/css" }, vanillaStyle),
|
|
74
74
|
h("sl-button", { class: sheet.classes.buttonStyle, loading: props.loading, disabled: props.disabled, pill: props.pill, size: props.size, type: props.type, onClick: props.onClick, exportparts: `base: ${props.type}sharebutton-base` },
|
|
75
|
-
!props.
|
|
76
|
-
!props.
|
|
75
|
+
!props.hideIcon && (h("sl-icon", { slot: props.iconSlot || "prefix", name: props.icon ? props.icon : medium[props.medium].icon, exportparts: "icon" })),
|
|
76
|
+
!props.hideText && children)));
|
|
77
77
|
}
|
|
@@ -7,7 +7,7 @@ import { getProps } from "../../utils/utils";
|
|
|
7
7
|
import deepmerge from "deepmerge";
|
|
8
8
|
/**
|
|
9
9
|
* @uiName Share Button
|
|
10
|
-
* @uiOrder ["medium", "program-id", "*", "pill", "disabled", "
|
|
10
|
+
* @uiOrder ["medium", "program-id", "*", "pill", "disabled", "hideIcon"]
|
|
11
11
|
*/
|
|
12
12
|
export class ShareButton {
|
|
13
13
|
constructor() {
|
|
@@ -23,15 +23,15 @@ export class ShareButton {
|
|
|
23
23
|
* @uiEnum ["prefix", "suffix" ]
|
|
24
24
|
* @uiEnumNames ["Prefix", "Suffix"]
|
|
25
25
|
*/
|
|
26
|
-
this.
|
|
26
|
+
this.iconSlot = "prefix";
|
|
27
27
|
/**
|
|
28
28
|
* @uiName Hide the icon
|
|
29
29
|
*/
|
|
30
|
-
this.
|
|
30
|
+
this.hideIcon = false;
|
|
31
31
|
/**
|
|
32
32
|
* @uiName Hide the text
|
|
33
33
|
*/
|
|
34
|
-
this.
|
|
34
|
+
this.hideText = false;
|
|
35
35
|
withHooks(this);
|
|
36
36
|
}
|
|
37
37
|
disconnectedCallback() { }
|
|
@@ -101,7 +101,7 @@ export class ShareButton {
|
|
|
101
101
|
"attribute": "program-id",
|
|
102
102
|
"reflect": false
|
|
103
103
|
},
|
|
104
|
-
"
|
|
104
|
+
"borderRadius": {
|
|
105
105
|
"type": "number",
|
|
106
106
|
"mutable": false,
|
|
107
107
|
"complexType": {
|
|
@@ -118,10 +118,10 @@ export class ShareButton {
|
|
|
118
118
|
}],
|
|
119
119
|
"text": ""
|
|
120
120
|
},
|
|
121
|
-
"attribute": "
|
|
121
|
+
"attribute": "border-radius",
|
|
122
122
|
"reflect": false
|
|
123
123
|
},
|
|
124
|
-
"
|
|
124
|
+
"backgroundColor": {
|
|
125
125
|
"type": "string",
|
|
126
126
|
"mutable": false,
|
|
127
127
|
"complexType": {
|
|
@@ -141,10 +141,10 @@ export class ShareButton {
|
|
|
141
141
|
}],
|
|
142
142
|
"text": ""
|
|
143
143
|
},
|
|
144
|
-
"attribute": "
|
|
144
|
+
"attribute": "background-color",
|
|
145
145
|
"reflect": false
|
|
146
146
|
},
|
|
147
|
-
"
|
|
147
|
+
"textColor": {
|
|
148
148
|
"type": "string",
|
|
149
149
|
"mutable": false,
|
|
150
150
|
"complexType": {
|
|
@@ -164,7 +164,7 @@ export class ShareButton {
|
|
|
164
164
|
}],
|
|
165
165
|
"text": ""
|
|
166
166
|
},
|
|
167
|
-
"attribute": "
|
|
167
|
+
"attribute": "text-color",
|
|
168
168
|
"reflect": false
|
|
169
169
|
},
|
|
170
170
|
"pill": {
|
|
@@ -263,7 +263,7 @@ export class ShareButton {
|
|
|
263
263
|
"attribute": "size",
|
|
264
264
|
"reflect": false
|
|
265
265
|
},
|
|
266
|
-
"
|
|
266
|
+
"iconSlot": {
|
|
267
267
|
"type": "string",
|
|
268
268
|
"mutable": false,
|
|
269
269
|
"complexType": {
|
|
@@ -289,7 +289,7 @@ export class ShareButton {
|
|
|
289
289
|
}],
|
|
290
290
|
"text": ""
|
|
291
291
|
},
|
|
292
|
-
"attribute": "
|
|
292
|
+
"attribute": "icon-slot",
|
|
293
293
|
"reflect": false,
|
|
294
294
|
"defaultValue": "\"prefix\""
|
|
295
295
|
},
|
|
@@ -313,7 +313,7 @@ export class ShareButton {
|
|
|
313
313
|
"attribute": "icon",
|
|
314
314
|
"reflect": false
|
|
315
315
|
},
|
|
316
|
-
"
|
|
316
|
+
"hideIcon": {
|
|
317
317
|
"type": "boolean",
|
|
318
318
|
"mutable": false,
|
|
319
319
|
"complexType": {
|
|
@@ -330,11 +330,11 @@ export class ShareButton {
|
|
|
330
330
|
}],
|
|
331
331
|
"text": ""
|
|
332
332
|
},
|
|
333
|
-
"attribute": "
|
|
333
|
+
"attribute": "hide-icon",
|
|
334
334
|
"reflect": false,
|
|
335
335
|
"defaultValue": "false"
|
|
336
336
|
},
|
|
337
|
-
"
|
|
337
|
+
"hideText": {
|
|
338
338
|
"type": "boolean",
|
|
339
339
|
"mutable": false,
|
|
340
340
|
"complexType": {
|
|
@@ -351,11 +351,11 @@ export class ShareButton {
|
|
|
351
351
|
}],
|
|
352
352
|
"text": ""
|
|
353
353
|
},
|
|
354
|
-
"attribute": "
|
|
354
|
+
"attribute": "hide-text",
|
|
355
355
|
"reflect": false,
|
|
356
356
|
"defaultValue": "false"
|
|
357
357
|
},
|
|
358
|
-
"
|
|
358
|
+
"shareTitle": {
|
|
359
359
|
"type": "string",
|
|
360
360
|
"mutable": false,
|
|
361
361
|
"complexType": {
|
|
@@ -372,10 +372,10 @@ export class ShareButton {
|
|
|
372
372
|
}],
|
|
373
373
|
"text": ""
|
|
374
374
|
},
|
|
375
|
-
"attribute": "
|
|
375
|
+
"attribute": "share-title",
|
|
376
376
|
"reflect": false
|
|
377
377
|
},
|
|
378
|
-
"
|
|
378
|
+
"shareText": {
|
|
379
379
|
"type": "string",
|
|
380
380
|
"mutable": false,
|
|
381
381
|
"complexType": {
|
|
@@ -392,7 +392,7 @@ export class ShareButton {
|
|
|
392
392
|
}],
|
|
393
393
|
"text": ""
|
|
394
394
|
},
|
|
395
|
-
"attribute": "
|
|
395
|
+
"attribute": "share-text",
|
|
396
396
|
"reflect": false
|
|
397
397
|
},
|
|
398
398
|
"demoData": {
|
|
@@ -400,7 +400,7 @@ export class ShareButton {
|
|
|
400
400
|
"mutable": false,
|
|
401
401
|
"complexType": {
|
|
402
402
|
"original": "DemoData<ShareButtonViewProps>",
|
|
403
|
-
"resolved": "{ loading?: boolean; medium?: \"facebook\" | \"twitter\" | \"email\" | \"direct\" | \"linkedin\" | \"sms\" | \"fbmessenger\" | \"whatsapp\" | \"linemessenger\" | \"pinterest\" | \"reminder\" | \"unknown\"; disabled?: boolean; pill?: boolean; type?: \"text\" | \"default\" | \"primary\" | \"success\" | \"warning\" | \"danger\" | \"info\"; size?: \"small\" | \"medium\" | \"large\"; icon?: string;
|
|
403
|
+
"resolved": "{ loading?: boolean; medium?: \"facebook\" | \"twitter\" | \"email\" | \"direct\" | \"linkedin\" | \"sms\" | \"fbmessenger\" | \"whatsapp\" | \"linemessenger\" | \"pinterest\" | \"reminder\" | \"unknown\"; disabled?: boolean; pill?: boolean; type?: \"text\" | \"default\" | \"primary\" | \"success\" | \"warning\" | \"danger\" | \"info\"; size?: \"small\" | \"medium\" | \"large\"; icon?: string; hideIcon?: boolean; hideText?: boolean; iconSlot?: \"prefix\" | \"suffix\"; onClick?: () => void; hide?: boolean; borderRadius?: number; backgroundColor?: string; textColor?: string; }",
|
|
404
404
|
"references": {
|
|
405
405
|
"DemoData": {
|
|
406
406
|
"location": "import",
|