@saasquatch/mint-components 1.3.2-1 → 1.3.2-13

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 (285) 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} +1959 -766
  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-portal-register/sqm-portal-register.js +1 -1
  43. package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeList.stories.js +21 -0
  44. package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeListData.js +218 -0
  45. package/dist/collection/components/sqm-reward-exchange-list/SVGs.js +5 -14
  46. package/dist/collection/components/sqm-reward-exchange-list/progressBar.js +31 -43
  47. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +175 -100
  48. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +6 -8
  49. package/dist/collection/components/sqm-reward-exchange-list/useRewardExchangeList.js +10 -32
  50. package/dist/collection/components/sqm-rewards-table/UseRewardsTable.stories.js +53 -0
  51. package/dist/collection/components/sqm-rewards-table/sqm-rewards-table-column.js +120 -0
  52. package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +11 -16
  53. package/dist/collection/components/{sqm-rewards-table → sqm-router}/Router.stories.js +0 -0
  54. package/dist/collection/components/sqm-share-button/sqm-share-button.js +1 -1
  55. package/dist/collection/components/sqm-stencilbook/CucumberAddon.js +3 -1
  56. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +7 -1
  57. package/dist/collection/components/sqm-task-card/SVGs.js +0 -6
  58. package/dist/collection/components/sqm-task-card/TaskCard.stories.js +165 -389
  59. package/dist/collection/components/sqm-task-card/UseTaskCard.stories.js +41 -0
  60. package/dist/collection/components/sqm-task-card/progress-bar/SVGs.js +7 -0
  61. package/dist/collection/components/sqm-task-card/progress-bar/progress-bar-view.js +318 -0
  62. package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +93 -346
  63. package/dist/collection/components/sqm-task-card/sqm-task-card.js +127 -53
  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} +1939 -749
  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-3f7218fb.entry.js +335 -0
  163. package/dist/mint-components/{p-af06ea5b.system.entry.js → p-4052b948.system.entry.js} +1 -1
  164. package/dist/mint-components/{p-57a53dbd.system.entry.js → p-412a9226.system.entry.js} +1 -1
  165. package/dist/mint-components/p-44d0fc80.system.entry.js +1 -0
  166. package/dist/mint-components/{p-844f9bad.entry.js → p-45c752a0.entry.js} +1 -1
  167. package/dist/mint-components/{p-f1e1086e.js → p-46a4269a.js} +17 -2
  168. package/dist/mint-components/p-52802c88.entry.js +13 -0
  169. package/dist/mint-components/p-5480e4ee.entry.js +1 -0
  170. package/dist/mint-components/{p-db723323.system.entry.js → p-55508395.system.entry.js} +1 -1
  171. package/dist/mint-components/{p-844fd903.js → p-563253e8.js} +1 -1
  172. package/dist/mint-components/p-60855d33.system.js +1 -0
  173. package/dist/mint-components/p-67ae18d1.system.entry.js +1 -0
  174. package/dist/mint-components/{p-434ee9c1.js → p-6882070c.js} +1 -1
  175. package/dist/mint-components/{p-1ac9c24b.system.entry.js → p-69bcf4fa.system.entry.js} +1 -1
  176. package/dist/mint-components/p-6bf0a4d9.system.entry.js +1 -0
  177. package/dist/mint-components/p-6e245fa3.system.entry.js +1 -0
  178. package/dist/mint-components/{p-a4a00461.entry.js → p-723ebe45.entry.js} +1 -1
  179. package/dist/mint-components/{p-5dfc6804.system.entry.js → p-73148868.system.entry.js} +1 -1
  180. package/dist/mint-components/{p-6cdc70f4.entry.js → p-8435a22d.entry.js} +1 -1
  181. package/dist/mint-components/p-883a32e7.entry.js +1 -0
  182. package/dist/mint-components/p-9c554ca0.system.js +1 -0
  183. package/dist/mint-components/{p-d3787c3a.entry.js → p-9d6dbb2d.entry.js} +1 -1
  184. package/dist/mint-components/p-9e4fee30.system.entry.js +1 -0
  185. package/dist/mint-components/{p-2bce988c.js → p-a2c3cff3.js} +1 -1
  186. package/dist/mint-components/{p-d9cc041f.entry.js → p-a4c2c7ed.entry.js} +1 -1
  187. package/dist/mint-components/{p-1813b9b9.system.js → p-a6094ff9.system.js} +1 -1
  188. package/dist/mint-components/{p-aba21f90.entry.js → p-ade44a4e.entry.js} +1 -1
  189. package/dist/mint-components/p-b1bb07db.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-b6b4022a.system.entry.js +1 -0
  192. package/dist/mint-components/{p-2f171597.entry.js → p-b8bd2607.entry.js} +1 -1
  193. package/dist/mint-components/{p-0688c9c2.system.entry.js → p-be2738b0.system.entry.js} +1 -1
  194. package/dist/mint-components/{p-82ab88fe.system.js → p-c6114bfe.system.js} +1 -1
  195. package/dist/mint-components/{p-16535642.system.entry.js → p-c79c608d.system.entry.js} +1 -1
  196. package/dist/mint-components/{p-505f5c59.system.entry.js → p-cca9026f.system.entry.js} +1 -1
  197. package/dist/mint-components/{p-71d942af.entry.js → p-cd410a05.entry.js} +2 -2
  198. package/dist/mint-components/{p-a0cfd3d9.system.js → p-cdeae699.system.js} +1 -1
  199. package/dist/mint-components/{p-3fd33dee.system.entry.js → p-d174d0bc.system.entry.js} +1 -1
  200. package/dist/mint-components/p-d21e0dbd.js +1 -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 +1 -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 +3 -4
  216. package/dist/types/components/sqm-rewards-table/UseRewardsTable.stories.d.ts +16 -0
  217. package/dist/types/components/sqm-rewards-table/sqm-rewards-table-column.d.ts +20 -0
  218. package/dist/types/components/sqm-rewards-table/useRewardsTable.d.ts +33 -0
  219. package/dist/types/components/{sqm-rewards-table → sqm-router}/Router.stories.d.ts +0 -0
  220. package/dist/types/components/sqm-task-card/SVGs.d.ts +0 -1
  221. package/dist/types/components/sqm-task-card/TaskCard.stories.d.ts +12 -5
  222. package/dist/types/components/sqm-task-card/UseTaskCard.stories.d.ts +10 -0
  223. package/dist/types/components/sqm-task-card/progress-bar/SVGs.d.ts +1 -0
  224. package/dist/types/components/sqm-task-card/progress-bar/progress-bar-view.d.ts +11 -0
  225. package/dist/types/components/sqm-task-card/sqm-task-card-view.d.ts +13 -22
  226. package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +29 -14
  227. package/dist/types/components.d.ts +86 -36
  228. package/dist/types/global/styles.d.ts +1 -1
  229. package/grapesjs/grapesjs.js +1 -1
  230. package/package.json +1 -1
  231. package/dist/cjs/sqm-leaderboard-rank-view-35015d30.js +0 -10
  232. package/dist/cjs/sqm-rewards-table.cjs.entry.js +0 -332
  233. package/dist/cjs/sqm-task-card-view-57066e67.js +0 -476
  234. package/dist/cjs/sqm-task-card.cjs.entry.js +0 -56
  235. package/dist/cjs/tslib.es6-0e81fab1.js +0 -56
  236. package/dist/cjs/useChildElements-428ca5b8.js +0 -21
  237. package/dist/esm/sqm-leaderboard-rank-view-da91f5f3.js +0 -8
  238. package/dist/esm/sqm-rewards-table.entry.js +0 -328
  239. package/dist/esm/sqm-task-card-view-2ee495af.js +0 -474
  240. package/dist/esm/sqm-task-card.entry.js +0 -52
  241. package/dist/esm/tslib.es6-7ac9d7e4.js +0 -53
  242. package/dist/esm/useChildElements-506f00d0.js +0 -19
  243. package/dist/esm-es5/index-2f5dd0a1.js +0 -1
  244. package/dist/esm-es5/sqm-divided-layout_27.entry.js +0 -1
  245. package/dist/esm-es5/sqm-leaderboard-rank-view-da91f5f3.js +0 -1
  246. package/dist/esm-es5/sqm-rewards-table.entry.js +0 -1
  247. package/dist/esm-es5/sqm-task-card-view-2ee495af.js +0 -1
  248. package/dist/esm-es5/sqm-task-card.entry.js +0 -1
  249. package/dist/esm-es5/tslib.es6-7ac9d7e4.js +0 -15
  250. package/dist/esm-es5/useChildElements-506f00d0.js +0 -1
  251. package/dist/esm-es5/useDemoBigStat-b71fe122.js +0 -1
  252. package/dist/mint-components/p-11c75956.entry.js +0 -1
  253. package/dist/mint-components/p-189219ee.system.js +0 -1
  254. package/dist/mint-components/p-1e248afc.system.entry.js +0 -1
  255. package/dist/mint-components/p-21dfdeb8.entry.js +0 -1
  256. package/dist/mint-components/p-23a0bdae.entry.js +0 -1
  257. package/dist/mint-components/p-353b4413.system.js +0 -1
  258. package/dist/mint-components/p-405a9253.js +0 -227
  259. package/dist/mint-components/p-55e02769.entry.js +0 -13
  260. package/dist/mint-components/p-58d9b2f0.js +0 -15
  261. package/dist/mint-components/p-684850a7.entry.js +0 -287
  262. package/dist/mint-components/p-6d545e13.entry.js +0 -1
  263. package/dist/mint-components/p-70837c1c.entry.js +0 -49
  264. package/dist/mint-components/p-7c138c84.entry.js +0 -1
  265. package/dist/mint-components/p-7c261ea0.system.entry.js +0 -1
  266. package/dist/mint-components/p-8034f81c.system.entry.js +0 -1
  267. package/dist/mint-components/p-81dbda90.system.entry.js +0 -1
  268. package/dist/mint-components/p-8c16f04e.js +0 -1
  269. package/dist/mint-components/p-8f5e2af4.entry.js +0 -1
  270. package/dist/mint-components/p-91d39961.system.js +0 -1
  271. package/dist/mint-components/p-b3af1c6f.js +0 -1
  272. package/dist/mint-components/p-bf04a8e1.system.entry.js +0 -1
  273. package/dist/mint-components/p-bf055b6c.system.js +0 -1
  274. package/dist/mint-components/p-c3866bfa.system.entry.js +0 -1
  275. package/dist/mint-components/p-c9c4f31b.system.entry.js +0 -1
  276. package/dist/mint-components/p-dd6a666e.system.js +0 -15
  277. package/dist/mint-components/p-dfc3cf82.js +0 -1
  278. package/dist/mint-components/p-e19a57a4.system.entry.js +0 -1
  279. package/dist/mint-components/p-e22eed7b.entry.js +0 -1
  280. package/dist/mint-components/p-e2ebe90c.entry.js +0 -1
  281. package/dist/mint-components/p-e78a5a91.js +0 -1
  282. package/dist/mint-components/p-ecbabf6e.system.js +0 -1
  283. package/dist/mint-components/p-f41ab9e1.system.js +0 -1
  284. package/dist/mint-components/p-f87d8f53.system.js +0 -1
  285. package/dist/mint-components/p-fcaa5886.system.entry.js +0 -1
@@ -1,7 +1,19 @@
1
1
  import { h } from "@stencil/core";
2
- import { TaskCardView, } from "./sqm-task-card-view";
2
+ import { MatrixStory } from "./Matrix";
3
+ import { TaskCardView } from "./sqm-task-card-view";
4
+ import { ProgressBarView } from "./progress-bar/progress-bar-view";
5
+ import scenarioTaskCard from "./sqm-task-card.feature";
6
+ import scenarioProgressBar from "./progress-bar/progress-bar.feature";
7
+ const scenario = scenarioTaskCard + scenarioProgressBar;
3
8
  export default {
4
- title: "Components/Task Card",
9
+ title: "Components/Task Card/",
10
+ parameters: {
11
+ scenario,
12
+ },
13
+ };
14
+ const storyFrame = {
15
+ display: "inline-flex",
16
+ gap: "32px",
5
17
  };
6
18
  const resizable = {
7
19
  width: "347px",
@@ -10,44 +22,55 @@ const resizable = {
10
22
  height: "fit-content",
11
23
  overflow: "hidden",
12
24
  };
13
- export const Default = () => {
14
- const oneAction = {
15
- points: 20,
16
- cardTitle: "Complete a survey",
17
- description: "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
18
- buttonText: "Take survey",
19
- buttonOnClick: () => { },
20
- };
21
- // @ts-ignore
22
- return h(TaskCardView, null);
25
+ const oneAction = {
26
+ rewardAmount: 20,
27
+ rewardUnit: "Points",
28
+ cardTitle: "Complete a survey",
29
+ description: "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
30
+ repeatable: false,
31
+ showProgressBar: false,
32
+ progress: 0,
33
+ goal: 1,
34
+ buttonText: "Take survey",
35
+ buttonLink: "https://example.com/",
36
+ showExpiry: false,
37
+ dateExpires: null,
38
+ loading: false,
23
39
  };
24
- export const NotRepeatable = () => {
25
- const oneAction = {
26
- points: 20,
27
- cardTitle: "Complete a survey",
28
- description: "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
29
- buttonText: "Take survey",
30
- goal: 1,
31
- };
32
- const coupleActions = {
33
- points: 40,
34
- cardTitle: "Comment on 5 articles",
35
- showProgressBar: true,
36
- goal: 5,
37
- steps: 1,
38
- description: "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
39
- buttonText: "Start reading",
40
- };
41
- const manyActions = {
42
- points: 150,
43
- cardTitle: "Spend $500 at our Store",
44
- showProgressBar: true,
45
- goal: 500,
46
- unit: "$",
47
- description: "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
48
- buttonText: "Visit our Store",
49
- };
50
- return (h("div", { style: { display: "inline-flex", gap: "32px" } },
40
+ const coupleActions = {
41
+ rewardAmount: 40,
42
+ rewardUnit: "Points",
43
+ cardTitle: "Comment on 5 articles",
44
+ description: "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
45
+ repeatable: false,
46
+ showProgressBar: true,
47
+ steps: true,
48
+ progress: 1,
49
+ goal: 5,
50
+ buttonText: "Take survey",
51
+ buttonLink: "https://example.com/",
52
+ showExpiry: false,
53
+ dateExpires: null,
54
+ loading: false,
55
+ };
56
+ const manyActions = {
57
+ rewardAmount: 150,
58
+ rewardUnit: "Points",
59
+ cardTitle: "Spend $500 at our Store",
60
+ description: "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
61
+ repeatable: false,
62
+ showProgressBar: true,
63
+ progress: 100,
64
+ goal: 500,
65
+ progressBarUnit: "$",
66
+ buttonText: "Take survey",
67
+ buttonLink: "https://example.com/",
68
+ showExpiry: false,
69
+ dateExpires: null,
70
+ loading: false,
71
+ };
72
+ export const TaskCardNotRepeatable = () => {
73
+ return (h("div", { style: storyFrame },
51
74
  h("div", { style: resizable },
52
75
  h("h4", null, "One Action"),
53
76
  h(TaskCardView, Object.assign({}, oneAction, { progress: 0 })),
@@ -58,442 +81,195 @@ export const NotRepeatable = () => {
58
81
  h("h5", null)),
59
82
  h("div", { style: resizable },
60
83
  h("h4", null, "A Couple Actions"),
61
- h(TaskCardView, Object.assign({}, coupleActions, { progress: 0 })),
62
- " ",
63
- h("h5", null),
64
84
  h(TaskCardView, Object.assign({}, coupleActions, { progress: 1 })),
65
85
  " ",
66
86
  h("h5", null),
67
87
  h(TaskCardView, Object.assign({}, coupleActions, { progress: 5 })),
68
88
  " ",
69
- h("h5", null),
70
- h("h5", null,
71
- "Progress ",
72
- ">",
73
- " Goal"),
74
- h(TaskCardView, Object.assign({}, coupleActions, { progress: 9 })),
75
- " ",
76
89
  h("h5", null)),
77
90
  h("div", { style: resizable },
78
91
  h("h4", null, "Many Actions"),
79
- h(TaskCardView, Object.assign({}, manyActions, { progress: 0 })),
80
- " ",
81
- h("h5", null),
82
92
  h(TaskCardView, Object.assign({}, manyActions, { progress: 230 })),
83
93
  " ",
84
94
  h("h5", null),
85
95
  h(TaskCardView, Object.assign({}, manyActions, { progress: 500 })),
86
96
  " ",
87
- h("h5", null),
88
- h("h5", null,
89
- "Progress ",
90
- ">",
91
- " Goal"),
92
- h(TaskCardView, Object.assign({}, manyActions, { progress: 700 })),
93
- " ",
94
97
  h("h5", null))));
95
98
  };
96
- export const NotRepeatableWithExpiry = () => {
97
- const oneAction = {
98
- points: 20,
99
- cardTitle: "Complete a survey",
100
- description: "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
101
- buttonText: "Take survey",
102
- goal: 1,
103
- expire: true,
104
- dateExpire: "Nov 1, 2021",
105
- };
106
- const coupleActions = {
107
- points: 40,
108
- cardTitle: "Comment on 5 articles",
109
- showProgressBar: true,
110
- goal: 5,
111
- steps: 1,
112
- description: "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
113
- buttonText: "Start reading",
114
- expire: true,
115
- dateExpire: "Nov 1, 2021",
116
- };
117
- const manyActions = {
118
- points: 150,
119
- cardTitle: "Spend $500 at our Store",
120
- showProgressBar: true,
121
- goal: 500,
122
- unit: "$",
123
- description: "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
124
- buttonText: "Visit our Store",
125
- expire: true,
126
- dateExpire: "Nov 1, 2021",
127
- };
128
- return (h("div", { style: { display: "inline-flex", gap: "32px" } },
99
+ export const TaskCardRepeatable = () => {
100
+ return (h("div", { style: storyFrame },
129
101
  h("div", { style: resizable },
130
102
  h("h4", null, "One Action"),
131
- h(TaskCardView, Object.assign({}, oneAction, { progress: 0 })),
103
+ h(TaskCardView, Object.assign({}, oneAction, { progress: 0, repeatable: true })),
132
104
  " ",
133
105
  h("h5", null),
134
- h(TaskCardView, Object.assign({}, oneAction, { progress: 1 })),
106
+ h(TaskCardView, Object.assign({}, oneAction, { progress: 1, repeatable: true })),
135
107
  " ",
136
108
  h("h5", null)),
137
109
  h("div", { style: resizable },
138
110
  h("h4", null, "A Couple Actions"),
139
- h(TaskCardView, Object.assign({}, coupleActions, { progress: 0 })),
140
- " ",
111
+ h(TaskCardView, Object.assign({}, coupleActions, { progress: 1, repeatable: true })),
141
112
  h("h5", null),
142
- h(TaskCardView, Object.assign({}, coupleActions, { progress: 1 })),
143
- " ",
113
+ h(TaskCardView, Object.assign({}, coupleActions, { progress: 5, repeatable: true })),
144
114
  h("h5", null),
145
- h(TaskCardView, Object.assign({}, coupleActions, { progress: 5 })),
146
- " ",
115
+ h(TaskCardView, Object.assign({}, coupleActions, { progress: 7, repeatable: true })),
147
116
  h("h5", null),
148
- h("h5", null,
149
- "Progress ",
150
- ">",
151
- " Goal"),
152
- h(TaskCardView, Object.assign({}, coupleActions, { progress: 9 })),
153
- " ",
117
+ h(TaskCardView, Object.assign({}, coupleActions, { progress: 10, repeatable: true })),
154
118
  h("h5", null)),
155
119
  h("div", { style: resizable },
156
120
  h("h4", null, "Many Actions"),
157
- h(TaskCardView, Object.assign({}, manyActions, { progress: 0 })),
158
- " ",
121
+ h(TaskCardView, Object.assign({}, manyActions, { progress: 100, repeatable: true })),
159
122
  h("h5", null),
160
- h(TaskCardView, Object.assign({}, manyActions, { progress: 230 })),
161
- " ",
123
+ h(TaskCardView, Object.assign({}, manyActions, { progress: 500, repeatable: true })),
162
124
  h("h5", null),
163
- h(TaskCardView, Object.assign({}, manyActions, { progress: 500 })),
164
- " ",
125
+ h(TaskCardView, Object.assign({}, manyActions, { progress: 650, repeatable: true })),
165
126
  h("h5", null),
166
- h("h5", null,
167
- "Progress ",
168
- ">",
169
- " Goal"),
170
- h(TaskCardView, Object.assign({}, manyActions, { progress: 700 })),
171
- " ",
127
+ h(TaskCardView, Object.assign({}, manyActions, { progress: 1000, repeatable: true })),
172
128
  h("h5", null))));
173
129
  };
174
- export const Repeatable = () => {
175
- const oneAction = {
176
- points: 20,
177
- cardTitle: "Complete a survey",
178
- description: "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
179
- buttonText: "Take survey",
180
- goal: 1,
181
- repeatable: true,
130
+ export const TaskCardDateExpires = () => {
131
+ const expire = {
132
+ showExpiry: true,
133
+ dateExpires: "2021-12-01T08:00:00.000Z/2077-12-01T08:00:00.000Z",
182
134
  };
183
- const coupleActions = {
184
- points: 40,
185
- cardTitle: "Comment on 5 articles",
186
- showProgressBar: true,
187
- repeatable: true,
188
- goal: 5,
189
- steps: 1,
190
- description: "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
191
- buttonText: "Start reading",
192
- };
193
- const manyActions = {
194
- points: 150,
195
- cardTitle: "Spend $500 at our Store",
196
- showProgressBar: true,
197
- repeatable: true,
198
- goal: 500,
199
- unit: "$",
200
- description: "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
201
- buttonText: "Visit our Store",
202
- };
203
- return (h("div", { style: { display: "inline-flex", gap: "32px" } },
135
+ const expireRepeat = { ...expire, repeatable: true };
136
+ return (h("div", { style: storyFrame },
204
137
  h("div", { style: resizable },
205
138
  h("h4", null, "One Action"),
206
- h(TaskCardView, Object.assign({}, oneAction, { progress: 0 })),
139
+ h(TaskCardView, Object.assign({}, oneAction, expire)),
207
140
  " ",
208
141
  h("h5", null),
209
- h(TaskCardView, Object.assign({}, oneAction, { progress: 1 })),
142
+ h(TaskCardView, Object.assign({}, oneAction, expireRepeat)),
210
143
  " ",
211
144
  h("h5", null)),
212
145
  h("div", { style: resizable },
213
146
  h("h4", null, "A Couple Actions"),
214
- h(TaskCardView, Object.assign({}, coupleActions, { progress: 1 })),
215
- " ",
216
- h("h5", null),
217
- h(TaskCardView, Object.assign({}, coupleActions, { progress: 5 })),
218
- " ",
219
- h("h5", null),
220
- h(TaskCardView, Object.assign({}, coupleActions, { progress: 7 })),
221
- " ",
222
- h("h5", null),
223
- h(TaskCardView, Object.assign({}, coupleActions, { progress: 10 })),
147
+ h(TaskCardView, Object.assign({}, coupleActions, expire)),
224
148
  " ",
225
149
  h("h5", null),
226
- h(TaskCardView, Object.assign({}, coupleActions, { progress: 12 })),
227
- " ",
228
- h("h5", null),
229
- h(TaskCardView, Object.assign({}, coupleActions, { progress: 15 })),
230
- " ",
231
- h("h5", null),
232
- h(TaskCardView, Object.assign({}, coupleActions, { progress: 17 })),
233
- " ",
234
- h("h5", null),
235
- h(TaskCardView, Object.assign({}, coupleActions, { progress: 22 })),
150
+ h(TaskCardView, Object.assign({}, coupleActions, expireRepeat)),
236
151
  " ",
237
152
  h("h5", null)),
238
153
  h("div", { style: resizable },
239
154
  h("h4", null, "Many Actions"),
240
- h(TaskCardView, Object.assign({}, manyActions, { progress: 100 })),
155
+ h(TaskCardView, Object.assign({}, manyActions, expire)),
241
156
  " ",
242
157
  h("h5", null),
243
- h(TaskCardView, Object.assign({}, manyActions, { progress: 500 })),
244
- " ",
245
- h("h5", null),
246
- h(TaskCardView, Object.assign({}, manyActions, { progress: 650 })),
247
- " ",
248
- h("h5", null),
249
- h(TaskCardView, Object.assign({}, manyActions, { progress: 1000 })),
250
- " ",
251
- h("h5", null),
252
- h(TaskCardView, Object.assign({}, manyActions, { progress: 1200 })),
253
- " ",
254
- h("h5", null),
255
- h(TaskCardView, Object.assign({}, manyActions, { progress: 1500 })),
256
- " ",
257
- h("h5", null),
258
- h(TaskCardView, Object.assign({}, manyActions, { progress: 1700 })),
259
- " ",
260
- h("h5", null),
261
- h(TaskCardView, Object.assign({}, manyActions, { progress: 2200 })),
158
+ h(TaskCardView, Object.assign({}, manyActions, expireRepeat)),
262
159
  " ",
263
160
  h("h5", null))));
264
161
  };
265
- export const RepeatableWithExpiry = () => {
266
- const oneAction = {
267
- points: 20,
268
- cardTitle: "Complete a survey",
269
- description: "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
270
- buttonText: "Take survey",
271
- goal: 1,
272
- repeatable: true,
273
- expire: true,
274
- dateExpire: "Nov 1, 2021",
275
- };
276
- const coupleActions = {
277
- points: 40,
278
- cardTitle: "Comment on 5 articles",
279
- showProgressBar: true,
280
- repeatable: true,
281
- goal: 5,
282
- steps: 1,
283
- description: "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
284
- buttonText: "Start reading",
285
- expire: true,
286
- dateExpire: "Nov 1, 2021",
287
- };
288
- const manyActions = {
289
- points: 150,
290
- cardTitle: "Spend $500 at our Store",
291
- showProgressBar: true,
292
- repeatable: true,
293
- goal: 500,
294
- unit: "$",
295
- description: "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
296
- buttonText: "Visit our Store",
297
- expire: true,
298
- dateExpire: "Nov 1, 2021",
299
- };
300
- return (h("div", { style: { display: "inline-flex", gap: "32px" } },
162
+ export const TaskCardLoading = () => {
163
+ const loading = { loading: true };
164
+ return (h("div", { style: storyFrame },
301
165
  h("div", { style: resizable },
302
166
  h("h4", null, "One Action"),
303
- h(TaskCardView, Object.assign({}, oneAction, { progress: 0 })),
167
+ h(TaskCardView, Object.assign({}, oneAction, loading)),
304
168
  " ",
305
169
  h("h5", null),
306
- h(TaskCardView, Object.assign({}, oneAction, { progress: 1 })),
170
+ h(TaskCardView, Object.assign({}, oneAction, loading)),
307
171
  " ",
308
172
  h("h5", null)),
309
173
  h("div", { style: resizable },
310
174
  h("h4", null, "A Couple Actions"),
311
- h(TaskCardView, Object.assign({}, coupleActions, { progress: 1 })),
175
+ h(TaskCardView, Object.assign({}, coupleActions, loading)),
312
176
  " ",
313
177
  h("h5", null),
314
- h(TaskCardView, Object.assign({}, coupleActions, { progress: 5 })),
178
+ h(TaskCardView, Object.assign({}, coupleActions, loading)),
315
179
  " ",
316
- h("h5", null),
317
- h(TaskCardView, Object.assign({}, coupleActions, { progress: 7 })),
180
+ h("h5", null)),
181
+ h("div", { style: resizable },
182
+ h("h4", null, "Many Actions"),
183
+ h(TaskCardView, Object.assign({}, manyActions, loading)),
318
184
  " ",
319
185
  h("h5", null),
320
- h(TaskCardView, Object.assign({}, coupleActions, { progress: 10 })),
186
+ h(TaskCardView, Object.assign({}, manyActions, loading)),
321
187
  " ",
322
- h("h5", null),
323
- h(TaskCardView, Object.assign({}, coupleActions, { progress: 12 })),
188
+ h("h5", null))));
189
+ };
190
+ export const TaskCardExpired = () => {
191
+ const expire = {
192
+ showExpiry: true,
193
+ dateExpires: "2021-12-01T08:00:00.000Z/2021-12-01T08:00:00.000Z",
194
+ };
195
+ const expireRepeat = { ...expire, repeatable: true };
196
+ return (h("div", { style: storyFrame },
197
+ h("div", { style: resizable },
198
+ h("h4", null, "One Action"),
199
+ h(TaskCardView, Object.assign({}, oneAction, { progress: 0 }, expire)),
324
200
  " ",
325
201
  h("h5", null),
326
- h(TaskCardView, Object.assign({}, coupleActions, { progress: 15 })),
202
+ h(TaskCardView, Object.assign({}, oneAction, { progress: 1 }, expire)),
327
203
  " ",
328
204
  h("h5", null),
329
- h(TaskCardView, Object.assign({}, coupleActions, { progress: 17 })),
205
+ h(TaskCardView, Object.assign({}, oneAction, { progress: 0 }, expireRepeat)),
330
206
  " ",
331
207
  h("h5", null),
332
- h(TaskCardView, Object.assign({}, coupleActions, { progress: 22 })),
208
+ h(TaskCardView, Object.assign({}, oneAction, { progress: 1 }, expireRepeat)),
333
209
  " ",
334
210
  h("h5", null)),
335
211
  h("div", { style: resizable },
336
- h("h4", null, "Many Actions"),
337
- h(TaskCardView, Object.assign({}, manyActions, { progress: 100 })),
338
- " ",
339
- h("h5", null),
340
- h(TaskCardView, Object.assign({}, manyActions, { progress: 500 })),
212
+ h("h4", null, "A Couple Actions"),
213
+ h(TaskCardView, Object.assign({}, coupleActions, { progress: 1 }, expire)),
341
214
  " ",
342
215
  h("h5", null),
343
- h(TaskCardView, Object.assign({}, manyActions, { progress: 650 })),
216
+ h(TaskCardView, Object.assign({}, coupleActions, { progress: 5 }, expire)),
344
217
  " ",
345
218
  h("h5", null),
346
- h(TaskCardView, Object.assign({}, manyActions, { progress: 1000 })),
347
- " ",
219
+ h(TaskCardView, Object.assign({}, coupleActions, { progress: 1 }, expireRepeat)),
348
220
  h("h5", null),
349
- h(TaskCardView, Object.assign({}, manyActions, { progress: 1200 })),
221
+ h(TaskCardView, Object.assign({}, coupleActions, { progress: 5 }, expireRepeat)),
222
+ h("h5", null)),
223
+ h("div", { style: resizable },
224
+ h("h4", null, "Many Actions"),
225
+ h(TaskCardView, Object.assign({}, manyActions, { progress: 100 }, expire)),
350
226
  " ",
351
227
  h("h5", null),
352
- h(TaskCardView, Object.assign({}, manyActions, { progress: 1500 })),
228
+ h(TaskCardView, Object.assign({}, manyActions, { progress: 500 }, expire)),
353
229
  " ",
354
230
  h("h5", null),
355
- h(TaskCardView, Object.assign({}, manyActions, { progress: 1700 })),
356
- " ",
231
+ h(TaskCardView, Object.assign({}, manyActions, { progress: 100 }, expireRepeat)),
357
232
  h("h5", null),
358
- h(TaskCardView, Object.assign({}, manyActions, { progress: 2200 })),
359
- " ",
233
+ h(TaskCardView, Object.assign({}, manyActions, { progress: 500 }, expireRepeat)),
360
234
  h("h5", null))));
361
235
  };
362
- // export const Repeatable = () => {
363
- // const oneAction = {
364
- // points: 20,
365
- // cardTitle: "Complete a survey",
366
- // description:
367
- // "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
368
- // repeatable: 0,
369
- // buttonText: "Take survey",
370
- // buttonOnClick: () => {},
371
- // };
372
- // const coupleActions = {
373
- // points: 40,
374
- // cardTitle: "Comment on 5 articles",
375
- // goal: 5,
376
- // steps: 1,
377
- // repeatable: true,
378
- // description:
379
- // "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
380
- // buttonText: "Start reading",
381
- // buttonOnClick: () => {},
382
- // };
383
- // const manyActions = {
384
- // points: 150,
385
- // cardTitle: "Spend $500 at our Store",
386
- // goal: 500,
387
- // repeatable: true,
388
- // unit: "$",
389
- // description:
390
- // "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
391
- // buttonText: "Visit our Store",
392
- // buttonOnClick: () => {},
393
- // };
394
- // return (
395
- // <div style={{ display: "inline-flex", gap: "32px" }}>
396
- // <div style={resizable}>
397
- // <h4>One Action</h4>
398
- // <TaskCardView {...oneAction} /> <h5 />
399
- // <TaskCardView {...oneAction} repeatable={1} complete /> <h5 />
400
- // </div>
401
- // <div style={resizable}>
402
- // <h4>A Couple Actions</h4>
403
- // <TaskCardView {...coupleActions} progress={1} /> <h5 />
404
- // <TaskCardView {...coupleActions} progress={5} /> <h5 />
405
- // <TaskCardView {...coupleActions} progress={7} /> <h5 />
406
- // <TaskCardView {...coupleActions} progress={10} /> <h5 />
407
- // <TaskCardView {...coupleActions} progress={12} /> <h5 />
408
- // </div>
409
- // <div style={resizable}>
410
- // <h4>Many Actions</h4>
411
- // <TaskCardView {...manyActions} progress={100} /> <h5 />
412
- // <TaskCardView {...manyActions} progress={500} /> <h5 />
413
- // <TaskCardView {...manyActions} progress={650} /> <h5 />
414
- // <TaskCardView {...manyActions} progress={1000} /> <h5 />
415
- // <TaskCardView {...manyActions} progress={1200} /> <h5 />
416
- // </div>
417
- // </div>
418
- // );
419
- // };
420
- // export const RepeatableWithExpiry = () => {
421
- // const oneAction = {
422
- // points: 20,
423
- // cardTitle: "Complete a survey",
424
- // expire: "Nov 30, 2021",
425
- // description:
426
- // "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
427
- // repeatable: 0,
428
- // buttonText: "Take survey",
429
- // buttonOnClick: () => {},
430
- // };
431
- // const coupleActions = {
432
- // points: 40,
433
- // cardTitle: "Comment on 5 articles",
434
- // expire: "Nov 30, 2021",
435
- // goal: 5,
436
- // steps: 1,
437
- // repeatable: true,
438
- // description:
439
- // "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
440
- // buttonText: "Start reading",
441
- // buttonOnClick: () => {},
442
- // };
443
- // const manyActions = {
444
- // points: 150,
445
- // cardTitle: "Spend $500 at our Store",
446
- // expire: "Nov 30, 2021",
447
- // goal: 500,
448
- // repeatable: true,
449
- // unit: "$",
450
- // description:
451
- // "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
452
- // buttonText: "Visit our Store",
453
- // buttonOnClick: () => {},
454
- // };
455
- // return (
456
- // <div style={{ display: "inline-flex", gap: "32px" }}>
457
- // <div style={resizable}>
458
- // <h4>One Action</h4>
459
- // <TaskCardView {...oneAction} /> <h5 />
460
- // <TaskCardView {...oneAction} repeatable={1} complete /> <h5 />
461
- // </div>
462
- // <div style={resizable}>
463
- // <h4>A Couple Actions</h4>
464
- // <TaskCardView {...coupleActions} progress={1} /> <h5 />
465
- // <TaskCardView {...coupleActions} progress={5} /> <h5 />
466
- // <TaskCardView {...coupleActions} progress={7} /> <h5 />
467
- // <TaskCardView {...coupleActions} progress={10} /> <h5 />
468
- // <TaskCardView {...coupleActions} progress={12} /> <h5 />
469
- // </div>
470
- // <div style={resizable}>
471
- // <h4>Many Actions</h4>
472
- // <TaskCardView {...manyActions} progress={100} /> <h5 />
473
- // <TaskCardView {...manyActions} progress={500} /> <h5 />
474
- // <TaskCardView {...manyActions} progress={650} /> <h5 />
475
- // <TaskCardView {...manyActions} progress={1000} /> <h5 />
476
- // <TaskCardView {...manyActions} progress={1200} /> <h5 />
477
- // </div>
478
- // </div>
479
- // );
480
- // };
481
- // export const ProgressBar = () => {
482
- // const props = {
483
- // goal: 5,
484
- // };
485
- // return (
486
- // <div>
487
- // <MatrixStory
488
- // matrix={{ progress: [1, 2, 5], steps: [0, 1], repeatable: [false] }}
489
- // props={props}
490
- // Component={ProgressBarView}
491
- // />
492
- // <MatrixStory
493
- // matrix={{ progress: [2, 5, 7, 12], steps: [0, 1], repeatable: [true] }}
494
- // props={props}
495
- // Component={ProgressBarView}
496
- // />
497
- // </div>
498
- // );
499
- // };
236
+ export const ProgressBar = () => {
237
+ const props = {
238
+ progress: 0,
239
+ goal: 500,
240
+ progressBarUnit: "$",
241
+ };
242
+ return (h("div", null,
243
+ h(MatrixStory, { matrix: { progress: [-100, 0, 100, 500, 1000] }, props: props, Component: ProgressBarView })));
244
+ };
245
+ export const ProgressBarSteps = () => {
246
+ const props = {
247
+ progress: 0,
248
+ steps: true,
249
+ goal: 5,
250
+ progressBarUnit: "$",
251
+ };
252
+ return (h("div", null,
253
+ h(MatrixStory, { matrix: { progress: [-1, 0, 1, 5, 7] }, props: props, Component: ProgressBarView })));
254
+ };
255
+ export const ProgressBarRepeatable = () => {
256
+ const props = {
257
+ progress: 0,
258
+ goal: 500,
259
+ progressBarUnit: "$",
260
+ repeatable: true,
261
+ };
262
+ return (h("div", null,
263
+ h(MatrixStory, { matrix: { progress: [100, 500, 650, 1200] }, props: props, Component: ProgressBarView })));
264
+ };
265
+ export const ProgressBarStepsRepeatable = () => {
266
+ const props = {
267
+ progress: 0,
268
+ steps: true,
269
+ goal: 5,
270
+ progressBarUnit: "$",
271
+ repeatable: true,
272
+ };
273
+ return (h("div", null,
274
+ h(MatrixStory, { matrix: { progress: [1, 5, 7, 12] }, props: props, Component: ProgressBarView })));
275
+ };