@saasquatch/mint-components 1.3.2-0 → 1.3.2-12

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.
Files changed (294) hide show
  1. package/dist/cjs/{ShadowViewAddon-75c18b96.js → ShadowViewAddon-a85b8c8d.js} +1 -1
  2. package/dist/cjs/{global-041b5338.js → global-6223fe8f.js} +110 -56
  3. package/dist/cjs/{index.module-6a7bda18.js → index.module-7dd4b981.js} +2 -1
  4. package/dist/cjs/loader.cjs.js +3 -4
  5. package/dist/cjs/mint-components.cjs.js +3 -4
  6. package/dist/cjs/{re-render-7cdb2d81.js → re-render-6111d4bd.js} +1 -1
  7. package/dist/cjs/sqm-asset-card.cjs.entry.js +1 -1
  8. package/dist/cjs/sqm-big-stat.cjs.entry.js +2 -2
  9. package/dist/cjs/{sqm-divided-layout_27.cjs.entry.js → sqm-divided-layout_30.cjs.entry.js} +1961 -529
  10. package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +1 -1
  11. package/dist/cjs/{index-19309631.js → sqm-leaderboard-rank-view-7dd44d62.js} +10 -3
  12. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +7 -9
  13. package/dist/cjs/sqm-leaderboard.cjs.entry.js +2 -2
  14. package/dist/cjs/sqm-name-fields.cjs.entry.js +1 -1
  15. package/dist/cjs/{sqm-navigation-sidebar-item-view-e99b4a10.js → sqm-navigation-sidebar-item-view-6c7f78e6.js} +1 -1
  16. package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +2 -2
  17. package/dist/cjs/sqm-popup-container.cjs.entry.js +1 -1
  18. package/dist/cjs/{sqm-portal-email-verification-view-5e955797.js → sqm-portal-email-verification-view-08d1848c.js} +1 -1
  19. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +3 -4
  20. package/dist/cjs/{sqm-portal-footer-view-9089feb7.js → sqm-portal-footer-view-69c73802.js} +1 -1
  21. package/dist/cjs/sqm-portal-footer.cjs.entry.js +3 -4
  22. package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +1 -1
  23. package/dist/cjs/sqm-portal-logout.cjs.entry.js +1 -1
  24. package/dist/cjs/{sqm-portal-profile-view-a23ea292.js → sqm-portal-profile-view-14b41436.js} +1 -1
  25. package/dist/cjs/sqm-portal-profile.cjs.entry.js +3 -4
  26. package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +1 -1
  27. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +1 -1
  28. package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +1 -1
  29. package/dist/cjs/sqm-referral-table-column.cjs.entry.js +2 -2
  30. package/dist/cjs/sqm-referral-table-date-column.cjs.entry.js +2 -2
  31. package/dist/cjs/sqm-referral-table-rewards-column.cjs.entry.js +2 -2
  32. package/dist/cjs/sqm-referral-table-status-column.cjs.entry.js +2 -2
  33. package/dist/cjs/sqm-referral-table-user-column.cjs.entry.js +2 -2
  34. package/dist/cjs/sqm-share-code.cjs.entry.js +1 -1
  35. package/dist/cjs/{useDemoBigStat-17e61803.js → useDemoBigStat-2786227e.js} +117 -21
  36. package/dist/collection/collection-manifest.json +2 -1
  37. package/dist/collection/components/sqm-big-stat/BigStat.stories.js +8 -1
  38. package/dist/collection/components/sqm-big-stat/UseBigStat.stories.js +3 -0
  39. package/dist/collection/components/sqm-big-stat/sqm-big-stat.js +1 -1
  40. package/dist/collection/components/sqm-big-stat/useBigStat.js +115 -20
  41. package/dist/collection/components/sqm-big-stat/useDemoBigStat.js +1 -0
  42. package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeList.stories.js +21 -0
  43. package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeListData.js +218 -0
  44. package/dist/collection/components/sqm-reward-exchange-list/SVGs.js +8 -0
  45. package/dist/collection/components/sqm-reward-exchange-list/progressBar.js +32 -41
  46. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +171 -88
  47. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +23 -22
  48. package/dist/collection/components/sqm-reward-exchange-list/useRewardExchangeList.js +9 -5
  49. package/dist/collection/components/sqm-rewards-table/UseRewardsTable.stories.js +53 -0
  50. package/dist/collection/components/sqm-rewards-table/sqm-rewards-table-column.js +120 -0
  51. package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +11 -16
  52. package/dist/collection/components/{sqm-rewards-table → sqm-router}/Router.stories.js +0 -0
  53. package/dist/collection/components/sqm-share-button/sqm-share-button.js +1 -1
  54. package/dist/collection/components/sqm-stencilbook/CucumberAddon.js +3 -1
  55. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +9 -1
  56. package/dist/collection/components/sqm-task-card/SVGs.js +0 -6
  57. package/dist/collection/components/sqm-task-card/TaskCard.stories.js +144 -105
  58. package/dist/collection/components/sqm-task-card/UseTaskCard.stories.js +41 -0
  59. package/dist/collection/components/sqm-task-card/progress-bar/SVGs.js +7 -0
  60. package/dist/collection/components/sqm-task-card/progress-bar/progress-bar-view.js +311 -0
  61. package/dist/collection/components/sqm-task-card/progress-bar/progress-bar.stories.js +53 -0
  62. package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +33 -313
  63. package/dist/collection/components/sqm-task-card/sqm-task-card.js +228 -30
  64. package/dist/collection/global/styles.js +3 -0
  65. package/dist/collection/global/styles.ts +3 -0
  66. package/dist/collection/stories/NewPortal.stories.js +15 -15
  67. package/dist/esm/{ShadowViewAddon-fff5d35d.js → ShadowViewAddon-a3f510db.js} +1 -1
  68. package/dist/esm/{global-5ecbf81a.js → global-90da933f.js} +57 -3
  69. package/dist/esm/{index.module-f80561db.js → index.module-90d2c3ad.js} +2 -2
  70. package/dist/esm/loader.js +3 -4
  71. package/dist/esm/mint-components.js +3 -4
  72. package/dist/esm/{re-render-9ab5fe0f.js → re-render-e06f2f7f.js} +1 -1
  73. package/dist/esm/sqm-asset-card.entry.js +1 -1
  74. package/dist/esm/sqm-big-stat.entry.js +2 -2
  75. package/dist/esm/{sqm-divided-layout_27.entry.js → sqm-divided-layout_30.entry.js} +1934 -505
  76. package/dist/esm/sqm-graphql-client-provider.entry.js +1 -1
  77. package/dist/esm/{index-2f5dd0a1.js → sqm-leaderboard-rank-view-47844836.js} +9 -3
  78. package/dist/esm/sqm-leaderboard-rank.entry.js +3 -5
  79. package/dist/esm/sqm-leaderboard.entry.js +2 -2
  80. package/dist/esm/sqm-name-fields.entry.js +1 -1
  81. package/dist/esm/{sqm-navigation-sidebar-item-view-8a3f374b.js → sqm-navigation-sidebar-item-view-f2304ad9.js} +1 -1
  82. package/dist/esm/sqm-navigation-sidebar-item.entry.js +2 -2
  83. package/dist/esm/sqm-popup-container.entry.js +1 -1
  84. package/dist/esm/{sqm-portal-email-verification-view-90781be2.js → sqm-portal-email-verification-view-8cefe480.js} +1 -1
  85. package/dist/esm/sqm-portal-email-verification.entry.js +3 -4
  86. package/dist/esm/{sqm-portal-footer-view-c317518e.js → sqm-portal-footer-view-d9fe0bf8.js} +1 -1
  87. package/dist/esm/sqm-portal-footer.entry.js +3 -4
  88. package/dist/esm/sqm-portal-forgot-password.entry.js +1 -1
  89. package/dist/esm/sqm-portal-logout.entry.js +1 -1
  90. package/dist/esm/{sqm-portal-profile-view-824c8242.js → sqm-portal-profile-view-b67467b4.js} +1 -1
  91. package/dist/esm/sqm-portal-profile.entry.js +3 -4
  92. package/dist/esm/sqm-portal-protected-route.entry.js +1 -1
  93. package/dist/esm/sqm-portal-reset-password.entry.js +1 -1
  94. package/dist/esm/sqm-portal-verify-email.entry.js +1 -1
  95. package/dist/esm/sqm-referral-table-column.entry.js +2 -2
  96. package/dist/esm/sqm-referral-table-date-column.entry.js +2 -2
  97. package/dist/esm/sqm-referral-table-rewards-column.entry.js +2 -2
  98. package/dist/esm/sqm-referral-table-status-column.entry.js +2 -2
  99. package/dist/esm/sqm-referral-table-user-column.entry.js +2 -2
  100. package/dist/esm/sqm-share-code.entry.js +1 -1
  101. package/dist/esm/{useDemoBigStat-b71fe122.js → useDemoBigStat-c3b955b7.js} +117 -21
  102. package/dist/esm-es5/{ShadowViewAddon-fff5d35d.js → ShadowViewAddon-a3f510db.js} +1 -1
  103. package/dist/esm-es5/{global-5ecbf81a.js → global-90da933f.js} +16 -2
  104. package/dist/esm-es5/{index.module-f80561db.js → index.module-90d2c3ad.js} +1 -1
  105. package/dist/esm-es5/loader.js +1 -1
  106. package/dist/esm-es5/mint-components.js +1 -1
  107. package/dist/esm-es5/{re-render-9ab5fe0f.js → re-render-e06f2f7f.js} +1 -1
  108. package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
  109. package/dist/esm-es5/sqm-big-stat.entry.js +1 -1
  110. package/dist/esm-es5/sqm-divided-layout_30.entry.js +1 -0
  111. package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
  112. package/dist/esm-es5/sqm-leaderboard-rank-view-47844836.js +1 -0
  113. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  114. package/dist/esm-es5/sqm-leaderboard.entry.js +1 -1
  115. package/dist/esm-es5/sqm-name-fields.entry.js +1 -1
  116. package/dist/esm-es5/{sqm-navigation-sidebar-item-view-8a3f374b.js → sqm-navigation-sidebar-item-view-f2304ad9.js} +1 -1
  117. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  118. package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
  119. package/dist/esm-es5/{sqm-portal-email-verification-view-90781be2.js → sqm-portal-email-verification-view-8cefe480.js} +1 -1
  120. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  121. package/dist/esm-es5/{sqm-portal-footer-view-c317518e.js → sqm-portal-footer-view-d9fe0bf8.js} +1 -1
  122. package/dist/esm-es5/sqm-portal-footer.entry.js +1 -1
  123. package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
  124. package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
  125. package/dist/esm-es5/{sqm-portal-profile-view-824c8242.js → sqm-portal-profile-view-b67467b4.js} +1 -1
  126. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  127. package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
  128. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  129. package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
  130. package/dist/esm-es5/sqm-referral-table-column.entry.js +1 -1
  131. package/dist/esm-es5/sqm-referral-table-date-column.entry.js +1 -1
  132. package/dist/esm-es5/sqm-referral-table-rewards-column.entry.js +1 -1
  133. package/dist/esm-es5/sqm-referral-table-status-column.entry.js +1 -1
  134. package/dist/esm-es5/sqm-referral-table-user-column.entry.js +1 -1
  135. package/dist/esm-es5/sqm-share-code.entry.js +1 -1
  136. package/dist/esm-es5/useDemoBigStat-c3b955b7.js +1 -0
  137. package/dist/mint-components/global/styles.ts +3 -0
  138. package/dist/mint-components/mint-components.css +1 -0
  139. package/dist/mint-components/mint-components.esm.js +1 -1
  140. package/dist/mint-components/mint-components.js +1 -1
  141. package/dist/mint-components/{p-3052c913.system.js → p-07c924fa.system.js} +1 -1
  142. package/dist/mint-components/{p-05cca77b.js → p-0eb3e89c.js} +1 -1
  143. package/dist/mint-components/{p-337b49ee.entry.js → p-160bd62f.entry.js} +1 -1
  144. package/dist/mint-components/p-16f5a7cb.system.js +1 -0
  145. package/dist/mint-components/{p-4ba2faf2.system.entry.js → p-1a09e4e1.system.entry.js} +1 -1
  146. package/dist/mint-components/p-1c8b0290.entry.js +1 -0
  147. package/dist/mint-components/{p-7c13e32e.system.entry.js → p-1dcdca58.system.entry.js} +1 -1
  148. package/dist/mint-components/p-20d41ab1.entry.js +1 -0
  149. package/dist/mint-components/{p-e9ab90a1.entry.js → p-221a4097.entry.js} +1 -1
  150. package/dist/mint-components/{p-a0045707.system.entry.js → p-223b42bd.system.entry.js} +1 -1
  151. package/dist/mint-components/{p-cc3510c8.js → p-224504ad.js} +1 -1
  152. package/dist/mint-components/{p-2a025d2a.system.entry.js → p-24b3c6f0.system.entry.js} +1 -1
  153. package/dist/mint-components/{p-1b414d8f.system.entry.js → p-24c9a599.system.entry.js} +1 -1
  154. package/dist/mint-components/{p-a7f0b2f6.entry.js → p-29fab29b.entry.js} +1 -1
  155. package/dist/mint-components/{p-e475a5ff.system.entry.js → p-304e6c82.system.entry.js} +1 -1
  156. package/dist/mint-components/{p-5f28af29.entry.js → p-3397167c.entry.js} +1 -1
  157. package/dist/mint-components/p-33c5ffb7.entry.js +1 -0
  158. package/dist/mint-components/{p-04516274.system.entry.js → p-396bf448.system.entry.js} +1 -1
  159. package/dist/mint-components/p-3b97aed8.system.js +1 -0
  160. package/dist/mint-components/{p-3b0acfcd.system.js → p-3ce2fb83.system.js} +1 -1
  161. package/dist/mint-components/{p-82d7a2ba.entry.js → p-3d856985.entry.js} +1 -1
  162. package/dist/mint-components/{p-af06ea5b.system.entry.js → p-4052b948.system.entry.js} +1 -1
  163. package/dist/mint-components/{p-57a53dbd.system.entry.js → p-412a9226.system.entry.js} +1 -1
  164. package/dist/mint-components/p-44d0fc80.system.entry.js +1 -0
  165. package/dist/mint-components/{p-844f9bad.entry.js → p-45c752a0.entry.js} +1 -1
  166. package/dist/mint-components/{p-f1e1086e.js → p-46a4269a.js} +17 -2
  167. package/dist/mint-components/p-52802c88.entry.js +13 -0
  168. package/dist/mint-components/p-5480e4ee.entry.js +1 -0
  169. package/dist/mint-components/{p-db723323.system.entry.js → p-55508395.system.entry.js} +1 -1
  170. package/dist/mint-components/{p-844fd903.js → p-563253e8.js} +1 -1
  171. package/dist/mint-components/p-60855d33.system.js +1 -0
  172. package/dist/mint-components/p-67ae18d1.system.entry.js +1 -0
  173. package/dist/mint-components/{p-434ee9c1.js → p-6882070c.js} +1 -1
  174. package/dist/mint-components/{p-1ac9c24b.system.entry.js → p-69bcf4fa.system.entry.js} +1 -1
  175. package/dist/mint-components/p-6bf0a4d9.system.entry.js +1 -0
  176. package/dist/mint-components/p-6e245fa3.system.entry.js +1 -0
  177. package/dist/mint-components/{p-a4a00461.entry.js → p-723ebe45.entry.js} +1 -1
  178. package/dist/mint-components/{p-5dfc6804.system.entry.js → p-73148868.system.entry.js} +1 -1
  179. package/dist/mint-components/{p-6cdc70f4.entry.js → p-8435a22d.entry.js} +1 -1
  180. package/dist/mint-components/p-883a32e7.entry.js +1 -0
  181. package/dist/mint-components/p-9c554ca0.system.js +1 -0
  182. package/dist/mint-components/{p-d3787c3a.entry.js → p-9d6dbb2d.entry.js} +1 -1
  183. package/dist/mint-components/p-9e4fee30.system.entry.js +1 -0
  184. package/dist/mint-components/{p-2bce988c.js → p-a2c3cff3.js} +1 -1
  185. package/dist/mint-components/{p-d9cc041f.entry.js → p-a4c2c7ed.entry.js} +1 -1
  186. package/dist/mint-components/{p-1813b9b9.system.js → p-a6094ff9.system.js} +1 -1
  187. package/dist/mint-components/{p-aba21f90.entry.js → p-ade44a4e.entry.js} +1 -1
  188. package/dist/mint-components/p-b1bb07db.entry.js +1 -0
  189. package/dist/mint-components/p-b47179b8.system.entry.js +1 -0
  190. package/dist/mint-components/{p-ceeaf074.system.js → p-b608f7a4.system.js} +35 -21
  191. package/dist/mint-components/{p-2f171597.entry.js → p-b8bd2607.entry.js} +1 -1
  192. package/dist/mint-components/{p-0688c9c2.system.entry.js → p-be2738b0.system.entry.js} +1 -1
  193. package/dist/mint-components/{p-82ab88fe.system.js → p-c6114bfe.system.js} +1 -1
  194. package/dist/mint-components/{p-16535642.system.entry.js → p-c79c608d.system.entry.js} +1 -1
  195. package/dist/mint-components/{p-505f5c59.system.entry.js → p-cca9026f.system.entry.js} +1 -1
  196. package/dist/mint-components/{p-71d942af.entry.js → p-cd410a05.entry.js} +2 -2
  197. package/dist/mint-components/{p-a0cfd3d9.system.js → p-cdeae699.system.js} +1 -1
  198. package/dist/mint-components/{p-3fd33dee.system.entry.js → p-d174d0bc.system.entry.js} +1 -1
  199. package/dist/mint-components/p-d21e0dbd.js +1 -0
  200. package/dist/mint-components/p-d2e71fe0.entry.js +335 -0
  201. package/dist/mint-components/{p-00190438.js → p-d35b0366.js} +1 -1
  202. package/dist/mint-components/{p-8e37c08d.js → p-db2e4c42.js} +1 -1
  203. package/dist/mint-components/p-dc603d08.system.entry.js +1 -0
  204. package/dist/mint-components/{p-1fb688a9.system.js → p-e7f633b9.system.js} +1 -1
  205. package/dist/mint-components/{p-16da5146.entry.js → p-f17050de.entry.js} +1 -1
  206. package/dist/mint-components/p-f90486ca.js +235 -0
  207. package/dist/mint-components/p-fce1dbf6.entry.js +1 -0
  208. package/dist/types/components/sqm-big-stat/UseBigStat.stories.d.ts +6 -0
  209. package/dist/types/components/sqm-big-stat/sqm-big-stat-view.d.ts +1 -0
  210. package/dist/types/components/sqm-big-stat/useBigStat.d.ts +4 -1
  211. package/dist/types/components/sqm-reward-exchange-list/RewardExchangeList.stories.d.ts +6 -0
  212. package/dist/types/components/sqm-reward-exchange-list/RewardExchangeListData.d.ts +81 -0
  213. package/dist/types/components/sqm-reward-exchange-list/SVGs.d.ts +3 -0
  214. package/dist/types/components/sqm-reward-exchange-list/progressBar.d.ts +3 -2
  215. package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.d.ts +5 -3
  216. package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list.d.ts +2 -3
  217. package/dist/types/components/sqm-reward-exchange-list/useRewardExchangeList.d.ts +4 -7
  218. package/dist/types/components/sqm-rewards-table/UseRewardsTable.stories.d.ts +16 -0
  219. package/dist/types/components/sqm-rewards-table/sqm-rewards-table-column.d.ts +20 -0
  220. package/dist/types/components/sqm-rewards-table/useRewardsTable.d.ts +33 -0
  221. package/dist/types/components/{sqm-rewards-table → sqm-router}/Router.stories.d.ts +0 -0
  222. package/dist/types/components/sqm-task-card/SVGs.d.ts +0 -1
  223. package/dist/types/components/sqm-task-card/TaskCard.stories.d.ts +3 -1
  224. package/dist/types/components/sqm-task-card/UseTaskCard.stories.d.ts +10 -0
  225. package/dist/types/components/sqm-task-card/progress-bar/SVGs.d.ts +1 -0
  226. package/dist/types/components/sqm-task-card/progress-bar/progress-bar-view.d.ts +10 -0
  227. package/dist/types/components/sqm-task-card/progress-bar/progress-bar.stories.d.ts +12 -0
  228. package/dist/types/components/sqm-task-card/sqm-task-card-view.d.ts +10 -17
  229. package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +45 -11
  230. package/dist/types/components.d.ts +120 -32
  231. package/dist/types/global/android.d.ts +7 -0
  232. package/dist/types/global/demo.d.ts +1 -0
  233. package/dist/types/global/styles.d.ts +1 -1
  234. package/dist/types/stories/features.d.ts +4 -0
  235. package/dist/types/stories/templates.d.ts +4 -0
  236. package/grapesjs/grapesjs.js +1 -1
  237. package/package.json +1 -1
  238. package/dist/cjs/sqm-leaderboard-rank-view-35015d30.js +0 -10
  239. package/dist/cjs/sqm-rewards-table.cjs.entry.js +0 -332
  240. package/dist/cjs/sqm-task-card-view-cb11e56f.js +0 -472
  241. package/dist/cjs/sqm-task-card.cjs.entry.js +0 -32
  242. package/dist/cjs/tslib.es6-0e81fab1.js +0 -56
  243. package/dist/cjs/useChildElements-428ca5b8.js +0 -21
  244. package/dist/collection/components/sqm-reward-exchange-list/assets/Leftward Arrow.svg +0 -3
  245. package/dist/esm/sqm-leaderboard-rank-view-da91f5f3.js +0 -8
  246. package/dist/esm/sqm-rewards-table.entry.js +0 -328
  247. package/dist/esm/sqm-task-card-view-6a082a21.js +0 -469
  248. package/dist/esm/sqm-task-card.entry.js +0 -28
  249. package/dist/esm/tslib.es6-7ac9d7e4.js +0 -53
  250. package/dist/esm/useChildElements-506f00d0.js +0 -19
  251. package/dist/esm-es5/index-2f5dd0a1.js +0 -1
  252. package/dist/esm-es5/sqm-divided-layout_27.entry.js +0 -1
  253. package/dist/esm-es5/sqm-leaderboard-rank-view-da91f5f3.js +0 -1
  254. package/dist/esm-es5/sqm-rewards-table.entry.js +0 -1
  255. package/dist/esm-es5/sqm-task-card-view-6a082a21.js +0 -1
  256. package/dist/esm-es5/sqm-task-card.entry.js +0 -1
  257. package/dist/esm-es5/tslib.es6-7ac9d7e4.js +0 -15
  258. package/dist/esm-es5/useChildElements-506f00d0.js +0 -1
  259. package/dist/esm-es5/useDemoBigStat-b71fe122.js +0 -1
  260. package/dist/mint-components/assets/Leftward Arrow.svg +0 -3
  261. package/dist/mint-components/p-11c75956.entry.js +0 -1
  262. package/dist/mint-components/p-12fb9197.entry.js +0 -1
  263. package/dist/mint-components/p-189219ee.system.js +0 -1
  264. package/dist/mint-components/p-21dfdeb8.entry.js +0 -1
  265. package/dist/mint-components/p-23a0bdae.entry.js +0 -1
  266. package/dist/mint-components/p-2ae9c535.js +0 -1
  267. package/dist/mint-components/p-405a9253.js +0 -227
  268. package/dist/mint-components/p-550b4579.system.entry.js +0 -1
  269. package/dist/mint-components/p-55e02769.entry.js +0 -13
  270. package/dist/mint-components/p-58d9b2f0.js +0 -15
  271. package/dist/mint-components/p-6d545e13.entry.js +0 -1
  272. package/dist/mint-components/p-70837c1c.entry.js +0 -49
  273. package/dist/mint-components/p-795a7259.system.entry.js +0 -1
  274. package/dist/mint-components/p-7c138c84.entry.js +0 -1
  275. package/dist/mint-components/p-7c261ea0.system.entry.js +0 -1
  276. package/dist/mint-components/p-8034f81c.system.entry.js +0 -1
  277. package/dist/mint-components/p-86cd9f79.entry.js +0 -286
  278. package/dist/mint-components/p-8c16f04e.js +0 -1
  279. package/dist/mint-components/p-91d39961.system.js +0 -1
  280. package/dist/mint-components/p-b3af1c6f.js +0 -1
  281. package/dist/mint-components/p-bf04a8e1.system.entry.js +0 -1
  282. package/dist/mint-components/p-bf055b6c.system.js +0 -1
  283. package/dist/mint-components/p-c3866bfa.system.entry.js +0 -1
  284. package/dist/mint-components/p-c9c4f31b.system.entry.js +0 -1
  285. package/dist/mint-components/p-d0913f8d.system.js +0 -1
  286. package/dist/mint-components/p-dd6a666e.system.js +0 -15
  287. package/dist/mint-components/p-dfc3cf82.js +0 -1
  288. package/dist/mint-components/p-e19a57a4.system.entry.js +0 -1
  289. package/dist/mint-components/p-e22eed7b.entry.js +0 -1
  290. package/dist/mint-components/p-e2ebe90c.entry.js +0 -1
  291. package/dist/mint-components/p-ecbabf6e.system.js +0 -1
  292. package/dist/mint-components/p-f41ab9e1.system.js +0 -1
  293. package/dist/mint-components/p-f87d8f53.system.js +0 -1
  294. package/dist/mint-components/p-fcaa5886.system.entry.js +0 -1
@@ -1,8 +1,11 @@
1
1
  import { h } from "@stencil/core";
2
- import { MatrixStory } from "./Matrix";
3
- import { ProgressBar as ProgressBarView, TaskCardView, } from "./sqm-task-card-view";
2
+ import { TaskCardView } from "./sqm-task-card-view";
3
+ import scenario from "./sqm-task-card.feature";
4
4
  export default {
5
- title: "Components/Task Card",
5
+ title: "Components/Task Card/",
6
+ parameters: {
7
+ scenario,
8
+ },
6
9
  };
7
10
  const resizable = {
8
11
  width: "347px",
@@ -13,57 +16,72 @@ const resizable = {
13
16
  };
14
17
  export const NotRepeatable = () => {
15
18
  const oneAction = {
16
- points: 20,
17
- title: "Complete a survey",
19
+ rewardAmount: 20,
20
+ showExpiry: false,
21
+ rewardUnit: "Points",
22
+ cardTitle: "Complete a survey",
23
+ repeatable: false,
18
24
  description: "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
19
25
  buttonText: "Take survey",
20
- onClick: () => { },
26
+ goal: 1,
27
+ buttonLink: "https://example.com/",
28
+ showProgressBar: false,
29
+ loading: false,
21
30
  };
22
31
  const coupleActions = {
23
- points: 40,
24
- title: "Comment on 5 articles",
25
- progress: 1,
32
+ rewardAmount: 40,
33
+ rewardUnit: "Points",
34
+ cardTitle: "Comment on 5 articles",
35
+ showProgressBar: true,
36
+ showExpiry: false,
26
37
  goal: 5,
27
- steps: 1,
38
+ repeatable: false,
39
+ steps: true,
28
40
  description: "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
29
41
  buttonText: "Start reading",
30
- onClick: () => { },
42
+ buttonLink: "https://example.com/",
43
+ loading: false,
31
44
  };
32
45
  const manyActions = {
33
- points: 150,
34
- title: "Spend $500 at our Store",
35
- progress: 230,
46
+ rewardAmount: 150,
47
+ rewardUnit: "Points",
48
+ cardTitle: "Spend $500 at our Store",
49
+ showProgressBar: true,
50
+ showExpiry: false,
36
51
  goal: 500,
37
- unit: "$",
52
+ repeatable: false,
53
+ progressBarUnit: "$",
38
54
  description: "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
39
55
  buttonText: "Visit our Store",
40
- onClick: () => { },
56
+ buttonLink: "https://example.com/",
57
+ loading: false,
41
58
  };
42
59
  return (h("div", { style: { display: "inline-flex", gap: "32px" } },
43
60
  h("div", { style: resizable },
44
61
  h("h4", null, "One Action"),
45
- h(TaskCardView, Object.assign({}, oneAction)),
62
+ h(TaskCardView, Object.assign({}, oneAction, { progress: 0 })),
46
63
  " ",
47
64
  h("h5", null),
48
- h(TaskCardView, Object.assign({}, oneAction, { complete: true })),
65
+ h(TaskCardView, Object.assign({}, oneAction, { progress: 1 })),
49
66
  " ",
50
67
  h("h5", null)),
51
68
  h("div", { style: resizable },
52
69
  h("h4", null, "A Couple Actions"),
53
- h(TaskCardView, Object.assign({}, coupleActions)),
70
+ h(TaskCardView, Object.assign({}, coupleActions, { progress: 0 })),
71
+ " ",
72
+ h("h5", null),
73
+ h(TaskCardView, Object.assign({}, coupleActions, { progress: 1 })),
54
74
  " ",
55
75
  h("h5", null),
56
76
  h(TaskCardView, Object.assign({}, coupleActions, { progress: 5 })),
57
- h("h5", null,
58
- "Progress ",
59
- ">",
60
- " Goal"),
61
- h(TaskCardView, Object.assign({}, coupleActions, { progress: 9 })),
62
77
  " ",
63
78
  h("h5", null)),
64
79
  h("div", { style: resizable },
65
80
  h("h4", null, "Many Actions"),
66
- h(TaskCardView, Object.assign({}, manyActions)),
81
+ h(TaskCardView, Object.assign({}, manyActions, { progress: 0 })),
82
+ " ",
83
+ h("h5", null),
84
+ h(TaskCardView, Object.assign({}, manyActions, { progress: 230 })),
67
85
  " ",
68
86
  h("h5", null),
69
87
  h(TaskCardView, Object.assign({}, manyActions, { progress: 500 })),
@@ -72,60 +90,75 @@ export const NotRepeatable = () => {
72
90
  };
73
91
  export const NotRepeatableWithExpiry = () => {
74
92
  const oneAction = {
75
- points: 20,
76
- title: "Complete a survey",
93
+ rewardAmount: 20,
94
+ rewardUnit: "Points",
95
+ cardTitle: "Complete a survey",
77
96
  description: "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
78
- expire: "Nov 30, 2021",
79
97
  buttonText: "Take survey",
80
- onClick: () => { },
98
+ goal: 1,
99
+ showExpiry: true,
100
+ repeatable: false,
101
+ dateExpires: "Nov 1, 2021",
102
+ buttonLink: "https://example.com/",
103
+ showProgressBar: false,
104
+ loading: false,
81
105
  };
82
106
  const coupleActions = {
83
- points: 40,
84
- title: "Comment on 5 articles",
85
- progress: 1,
107
+ rewardAmount: 40,
108
+ rewardUnit: "Points",
109
+ cardTitle: "Comment on 5 articles",
110
+ showProgressBar: true,
86
111
  goal: 5,
87
- steps: 1,
112
+ steps: true,
88
113
  description: "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
89
- expire: "Nov 30, 2021",
90
114
  buttonText: "Start reading",
91
- onClick: () => { },
115
+ showExpiry: true,
116
+ repeatable: false,
117
+ dateExpires: "Nov 1, 2021",
118
+ buttonLink: "https://example.com/",
119
+ loading: false,
92
120
  };
93
121
  const manyActions = {
94
- points: 150,
95
- title: "Spend $500 at our Store",
96
- progress: 230,
122
+ rewardAmount: 150,
123
+ rewardUnit: "Points",
124
+ repeatable: false,
125
+ cardTitle: "Spend $500 at our Store",
126
+ showProgressBar: true,
97
127
  goal: 500,
98
- unit: "$",
128
+ progressBarUnit: "$",
99
129
  description: "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
100
- expire: "Nov 30, 2021",
101
130
  buttonText: "Visit our Store",
102
- onClick: () => { },
131
+ showExpiry: true,
132
+ dateExpires: "Nov 1, 2021",
133
+ buttonLink: "https://example.com/",
134
+ loading: false,
103
135
  };
104
136
  return (h("div", { style: { display: "inline-flex", gap: "32px" } },
105
137
  h("div", { style: resizable },
106
138
  h("h4", null, "One Action"),
107
- h(TaskCardView, Object.assign({}, oneAction)),
139
+ h(TaskCardView, Object.assign({}, oneAction, { progress: 0 })),
108
140
  " ",
109
141
  h("h5", null),
110
- h(TaskCardView, Object.assign({}, oneAction, { complete: true })),
142
+ h(TaskCardView, Object.assign({}, oneAction, { progress: 1 })),
111
143
  " ",
112
144
  h("h5", null)),
113
145
  h("div", { style: resizable },
114
146
  h("h4", null, "A Couple Actions"),
115
- h(TaskCardView, Object.assign({}, coupleActions)),
147
+ h(TaskCardView, Object.assign({}, coupleActions, { progress: 0 })),
148
+ " ",
149
+ h("h5", null),
150
+ h(TaskCardView, Object.assign({}, coupleActions, { progress: 1 })),
116
151
  " ",
117
152
  h("h5", null),
118
153
  h(TaskCardView, Object.assign({}, coupleActions, { progress: 5 })),
119
- h("h5", null,
120
- "Progress ",
121
- ">",
122
- " Goal"),
123
- h(TaskCardView, Object.assign({}, coupleActions, { progress: 9 })),
124
154
  " ",
125
155
  h("h5", null)),
126
156
  h("div", { style: resizable },
127
157
  h("h4", null, "Many Actions"),
128
- h(TaskCardView, Object.assign({}, manyActions)),
158
+ h(TaskCardView, Object.assign({}, manyActions, { progress: 0 })),
159
+ " ",
160
+ h("h5", null),
161
+ h(TaskCardView, Object.assign({}, manyActions, { progress: 230 })),
129
162
  " ",
130
163
  h("h5", null),
131
164
  h(TaskCardView, Object.assign({}, manyActions, { progress: 500 })),
@@ -134,40 +167,53 @@ export const NotRepeatableWithExpiry = () => {
134
167
  };
135
168
  export const Repeatable = () => {
136
169
  const oneAction = {
137
- points: 20,
138
- title: "Complete a survey",
170
+ rewardAmount: 20,
171
+ rewardUnit: "Points",
172
+ showExpiry: false,
173
+ cardTitle: "Complete a survey",
139
174
  description: "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
140
- repeatable: 0,
141
175
  buttonText: "Take survey",
142
- onClick: () => { },
176
+ goal: 1,
177
+ repeatable: true,
178
+ buttonLink: "https://example.com/",
179
+ showProgressBar: false,
180
+ loading: false,
143
181
  };
144
182
  const coupleActions = {
145
- points: 40,
146
- title: "Comment on 5 articles",
147
- goal: 5,
148
- steps: 1,
183
+ rewardAmount: 40,
184
+ rewardUnit: "Points",
185
+ showExpiry: false,
186
+ cardTitle: "Comment on 5 articles",
187
+ showProgressBar: true,
149
188
  repeatable: true,
189
+ goal: 5,
190
+ steps: true,
150
191
  description: "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
151
192
  buttonText: "Start reading",
152
- onClick: () => { },
193
+ buttonLink: "https://example.com/",
194
+ loading: false,
153
195
  };
154
196
  const manyActions = {
155
- points: 150,
156
- title: "Spend $500 at our Store",
157
- goal: 500,
197
+ rewardAmount: 150,
198
+ rewardUnit: "Points",
199
+ showExpiry: false,
200
+ cardTitle: "Spend $500 at our Store",
201
+ showProgressBar: true,
158
202
  repeatable: true,
159
- unit: "$",
203
+ goal: 500,
204
+ progressBarUnit: "$",
160
205
  description: "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
161
206
  buttonText: "Visit our Store",
162
- onClick: () => { },
207
+ buttonLink: "https://example.com/",
208
+ loading: false,
163
209
  };
164
210
  return (h("div", { style: { display: "inline-flex", gap: "32px" } },
165
211
  h("div", { style: resizable },
166
212
  h("h4", null, "One Action"),
167
- h(TaskCardView, Object.assign({}, oneAction)),
213
+ h(TaskCardView, Object.assign({}, oneAction, { progress: 0 })),
168
214
  " ",
169
215
  h("h5", null),
170
- h(TaskCardView, Object.assign({}, oneAction, { repeatable: 1, complete: true })),
216
+ h(TaskCardView, Object.assign({}, oneAction, { progress: 1 })),
171
217
  " ",
172
218
  h("h5", null)),
173
219
  h("div", { style: resizable },
@@ -183,9 +229,6 @@ export const Repeatable = () => {
183
229
  h("h5", null),
184
230
  h(TaskCardView, Object.assign({}, coupleActions, { progress: 10 })),
185
231
  " ",
186
- h("h5", null),
187
- h(TaskCardView, Object.assign({}, coupleActions, { progress: 12 })),
188
- " ",
189
232
  h("h5", null)),
190
233
  h("div", { style: resizable },
191
234
  h("h4", null, "Many Actions"),
@@ -200,50 +243,60 @@ export const Repeatable = () => {
200
243
  h("h5", null),
201
244
  h(TaskCardView, Object.assign({}, manyActions, { progress: 1000 })),
202
245
  " ",
203
- h("h5", null),
204
- h(TaskCardView, Object.assign({}, manyActions, { progress: 1200 })),
205
- " ",
206
246
  h("h5", null))));
207
247
  };
208
248
  export const RepeatableWithExpiry = () => {
209
249
  const oneAction = {
210
- points: 20,
211
- title: "Complete a survey",
212
- expire: "Nov 30, 2021",
250
+ rewardAmount: 20,
251
+ rewardUnit: "Points",
252
+ cardTitle: "Complete a survey",
213
253
  description: "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
214
- repeatable: 0,
215
254
  buttonText: "Take survey",
216
- onClick: () => { },
255
+ goal: 1,
256
+ repeatable: true,
257
+ showExpiry: true,
258
+ dateExpires: "Nov 1, 2021",
259
+ buttonLink: "https://example.com/",
260
+ showProgressBar: false,
261
+ loading: false,
217
262
  };
218
263
  const coupleActions = {
219
- points: 40,
220
- title: "Comment on 5 articles",
221
- expire: "Nov 30, 2021",
222
- goal: 5,
223
- steps: 1,
264
+ rewardAmount: 40,
265
+ rewardUnit: "Points",
266
+ cardTitle: "Comment on 5 articles",
267
+ showProgressBar: true,
224
268
  repeatable: true,
269
+ goal: 5,
270
+ steps: true,
225
271
  description: "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
226
272
  buttonText: "Start reading",
227
- onClick: () => { },
273
+ showExpiry: true,
274
+ dateExpires: "Nov 1, 2021",
275
+ buttonLink: "https://example.com/",
276
+ loading: false,
228
277
  };
229
278
  const manyActions = {
230
- points: 150,
231
- title: "Spend $500 at our Store",
232
- expire: "Nov 30, 2021",
233
- goal: 500,
279
+ rewardAmount: 150,
280
+ rewardUnit: "Points",
281
+ cardTitle: "Spend $500 at our Store",
282
+ showProgressBar: true,
234
283
  repeatable: true,
235
- unit: "$",
284
+ goal: 500,
285
+ progressBarUnit: "$",
236
286
  description: "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
237
287
  buttonText: "Visit our Store",
238
- onClick: () => { },
288
+ showExpiry: true,
289
+ dateExpires: "Nov 1, 2021",
290
+ buttonLink: "https://example.com/",
291
+ loading: false,
239
292
  };
240
293
  return (h("div", { style: { display: "inline-flex", gap: "32px" } },
241
294
  h("div", { style: resizable },
242
295
  h("h4", null, "One Action"),
243
- h(TaskCardView, Object.assign({}, oneAction)),
296
+ h(TaskCardView, Object.assign({}, oneAction, { progress: 0 })),
244
297
  " ",
245
298
  h("h5", null),
246
- h(TaskCardView, Object.assign({}, oneAction, { repeatable: 1, complete: true })),
299
+ h(TaskCardView, Object.assign({}, oneAction, { progress: 1 })),
247
300
  " ",
248
301
  h("h5", null)),
249
302
  h("div", { style: resizable },
@@ -259,9 +312,6 @@ export const RepeatableWithExpiry = () => {
259
312
  h("h5", null),
260
313
  h(TaskCardView, Object.assign({}, coupleActions, { progress: 10 })),
261
314
  " ",
262
- h("h5", null),
263
- h(TaskCardView, Object.assign({}, coupleActions, { progress: 12 })),
264
- " ",
265
315
  h("h5", null)),
266
316
  h("div", { style: resizable },
267
317
  h("h4", null, "Many Actions"),
@@ -276,16 +326,5 @@ export const RepeatableWithExpiry = () => {
276
326
  h("h5", null),
277
327
  h(TaskCardView, Object.assign({}, manyActions, { progress: 1000 })),
278
328
  " ",
279
- h("h5", null),
280
- h(TaskCardView, Object.assign({}, manyActions, { progress: 1200 })),
281
- " ",
282
329
  h("h5", null))));
283
330
  };
284
- export const ProgressBar = () => {
285
- const props = {
286
- goal: 5,
287
- };
288
- return (h("div", null,
289
- h(MatrixStory, { matrix: { progress: [1, 2, 5], steps: [0, 1], repeatable: [false] }, props: props, Component: ProgressBarView }),
290
- h(MatrixStory, { matrix: { progress: [2, 5, 7, 12], steps: [0, 1], repeatable: [true] }, props: props, Component: ProgressBarView })));
291
- };
@@ -0,0 +1,41 @@
1
+ import { setUserIdentity } from "@saasquatch/component-boilerplate";
2
+ import { useEffect } from "@saasquatch/universal-hooks";
3
+ import { h } from "@stencil/core";
4
+ import { createHookStory } from "../sqm-stencilbook/HookStoryAddon";
5
+ const JWT = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImlkIjoic2FtK2tsaXBAc2Fhc3F1YXQuY2giLCJhY2NvdW50SWQiOiJzYW0ra2xpcEBzYWFzcXVhdC5jaCJ9fQ.FMNZ6oajyr6SiCcRqKKdyPqvNTvWROQ60MKAyfvWGfc";
6
+ export default {
7
+ title: "Hooks / useTaskCard",
8
+ };
9
+ function setupGraphQL() {
10
+ const id = "sam+klip@saasquat.ch";
11
+ const accountId = id;
12
+ const programId = "klip-referral-program";
13
+ //@ts-ignore
14
+ window.widgetIdent = {
15
+ tenantAlias: "test_a74miwdpofztj",
16
+ appDomain: "https://staging.referralsaasquatch.com",
17
+ programId,
18
+ };
19
+ useEffect(() => {
20
+ setUserIdentity({
21
+ accountId,
22
+ id,
23
+ jwt: JWT,
24
+ });
25
+ return () => {
26
+ window.widgetIdent = undefined;
27
+ setUserIdentity(undefined);
28
+ };
29
+ }, []);
30
+ return { id, accountId };
31
+ }
32
+ export const TaskCard = createHookStory(() => {
33
+ setupGraphQL();
34
+ const props = {
35
+ listType: "",
36
+ render: () => { },
37
+ disconnectedCallback: () => { },
38
+ ignored: true,
39
+ };
40
+ return (h("sqm-task-card", { "card-title": "Comment on 5 articles", "button-text": "Start reading", goal: 5, steps: true, "show-progress-bar": true }));
41
+ });
@@ -0,0 +1,7 @@
1
+ import { h } from "@stencil/core";
2
+ export const gift = () => {
3
+ return (h("svg", { width: 16, height: 16, fill: "none", xmlns: "http://www.w3.org/2000/svg" },
4
+ 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)" }),
5
+ h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M1.5 9v1h13V9h-13z", fill: "var(--sl-color-primary-300)" }),
6
+ 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)" })));
7
+ };