@saasquatch/mint-components 1.3.2-2 → 1.3.2-20

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 (308) hide show
  1. package/dist/cjs/{ShadowViewAddon-75c18b96.js → ShadowViewAddon-475e00d3.js} +3 -3
  2. package/dist/cjs/{global-041b5338.js → global-89f66e76.js} +111 -57
  3. package/dist/cjs/{index.module-6a7bda18.js → index.module-c0bf9df0.js} +17 -16
  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-124b56ee.js} +4 -4
  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} +6104 -1125
  10. package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +4 -4
  11. package/dist/cjs/{index-19309631.js → sqm-leaderboard-rank-view-510f16d3.js} +10 -3
  12. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +9 -11
  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-a2bdcf05.js} +2 -2
  16. package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +3 -3
  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-5093ac20.js} +1 -1
  19. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +5 -6
  20. package/dist/cjs/{sqm-portal-footer-view-9089feb7.js → sqm-portal-footer-view-03408484.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 +3 -3
  23. package/dist/cjs/sqm-portal-logout.cjs.entry.js +3 -3
  24. package/dist/cjs/{sqm-portal-profile-view-a23ea292.js → sqm-portal-profile-view-fa2db439.js} +1 -1
  25. package/dist/cjs/sqm-portal-profile.cjs.entry.js +6 -7
  26. package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +5 -5
  27. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +5 -5
  28. package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +5 -5
  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 +3 -3
  35. package/dist/cjs/{useDemoBigStat-17e61803.js → useDemoBigStat-5d71bbdf.js} +119 -23
  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 +20 -0
  44. package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeListData.js +228 -0
  45. package/dist/collection/components/sqm-reward-exchange-list/SVGs.js +20 -13
  46. package/dist/collection/components/sqm-reward-exchange-list/assets/placeholder.png +0 -0
  47. package/dist/collection/components/sqm-reward-exchange-list/progressBar.js +46 -56
  48. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +349 -114
  49. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +32 -8
  50. package/dist/collection/components/sqm-reward-exchange-list/useRewardExchangeList.js +23 -33
  51. package/dist/collection/components/sqm-rewards-table/UseRewardsTable.stories.js +53 -0
  52. package/dist/collection/components/sqm-rewards-table/sqm-rewards-table-column.js +120 -0
  53. package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +11 -16
  54. package/dist/collection/components/{sqm-rewards-table → sqm-router}/Router.stories.js +0 -0
  55. package/dist/collection/components/sqm-share-button/sqm-share-button.js +1 -1
  56. package/dist/collection/components/sqm-stencilbook/AutoColor.js +26 -0
  57. package/dist/collection/components/sqm-stencilbook/CucumberAddon.js +3 -1
  58. package/dist/collection/components/{sqm-task-card → sqm-stencilbook}/Matrix.js +4 -1
  59. package/dist/collection/components/sqm-stencilbook/Resizer.js +26 -0
  60. package/dist/collection/components/sqm-stencilbook/Themes.js +52 -0
  61. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +48 -3
  62. package/dist/collection/components/sqm-task-card/SVGs.js +7 -8
  63. package/dist/collection/components/sqm-task-card/TaskCard.stories.js +285 -372
  64. package/dist/collection/components/sqm-task-card/UseTaskCard.stories.js +41 -0
  65. package/dist/collection/components/sqm-task-card/progress-bar/SVGs.js +8 -0
  66. package/dist/collection/components/sqm-task-card/progress-bar/progress-bar-view.js +370 -0
  67. package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +131 -349
  68. package/dist/collection/components/sqm-task-card/sqm-task-card.js +167 -47
  69. package/dist/collection/global/styles.js +3 -0
  70. package/dist/collection/global/styles.ts +3 -0
  71. package/dist/collection/stories/NewPortal.stories.js +15 -15
  72. package/dist/esm/{ShadowViewAddon-fff5d35d.js → ShadowViewAddon-558fabb7.js} +3 -3
  73. package/dist/esm/{global-5ecbf81a.js → global-e0e25c22.js} +58 -4
  74. package/dist/esm/{index.module-f80561db.js → index.module-eb50a8d2.js} +2 -2
  75. package/dist/esm/loader.js +3 -4
  76. package/dist/esm/mint-components.js +3 -4
  77. package/dist/esm/{re-render-9ab5fe0f.js → re-render-6d5b856e.js} +4 -4
  78. package/dist/esm/sqm-asset-card.entry.js +1 -1
  79. package/dist/esm/sqm-big-stat.entry.js +2 -2
  80. package/dist/esm/{sqm-divided-layout_27.entry.js → sqm-divided-layout_30.entry.js} +6093 -1117
  81. package/dist/esm/sqm-graphql-client-provider.entry.js +4 -4
  82. package/dist/esm/{index-2f5dd0a1.js → sqm-leaderboard-rank-view-cd1e8962.js} +9 -3
  83. package/dist/esm/sqm-leaderboard-rank.entry.js +5 -7
  84. package/dist/esm/sqm-leaderboard.entry.js +2 -2
  85. package/dist/esm/sqm-name-fields.entry.js +1 -1
  86. package/dist/esm/{sqm-navigation-sidebar-item-view-8a3f374b.js → sqm-navigation-sidebar-item-view-2d8c368c.js} +2 -2
  87. package/dist/esm/sqm-navigation-sidebar-item.entry.js +3 -3
  88. package/dist/esm/sqm-popup-container.entry.js +1 -1
  89. package/dist/esm/{sqm-portal-email-verification-view-90781be2.js → sqm-portal-email-verification-view-2af31979.js} +1 -1
  90. package/dist/esm/sqm-portal-email-verification.entry.js +5 -6
  91. package/dist/esm/{sqm-portal-footer-view-c317518e.js → sqm-portal-footer-view-60cd9ae5.js} +1 -1
  92. package/dist/esm/sqm-portal-footer.entry.js +3 -4
  93. package/dist/esm/sqm-portal-forgot-password.entry.js +3 -3
  94. package/dist/esm/sqm-portal-logout.entry.js +3 -3
  95. package/dist/esm/{sqm-portal-profile-view-824c8242.js → sqm-portal-profile-view-f1deea0f.js} +1 -1
  96. package/dist/esm/sqm-portal-profile.entry.js +6 -7
  97. package/dist/esm/sqm-portal-protected-route.entry.js +5 -5
  98. package/dist/esm/sqm-portal-reset-password.entry.js +7 -7
  99. package/dist/esm/sqm-portal-verify-email.entry.js +5 -5
  100. package/dist/esm/sqm-referral-table-column.entry.js +2 -2
  101. package/dist/esm/sqm-referral-table-date-column.entry.js +2 -2
  102. package/dist/esm/sqm-referral-table-rewards-column.entry.js +2 -2
  103. package/dist/esm/sqm-referral-table-status-column.entry.js +2 -2
  104. package/dist/esm/sqm-referral-table-user-column.entry.js +2 -2
  105. package/dist/esm/sqm-share-code.entry.js +3 -3
  106. package/dist/esm/{useDemoBigStat-b71fe122.js → useDemoBigStat-d227b2f9.js} +119 -23
  107. package/dist/esm-es5/ShadowViewAddon-558fabb7.js +1 -0
  108. package/dist/esm-es5/{global-5ecbf81a.js → global-e0e25c22.js} +16 -2
  109. package/dist/esm-es5/{index.module-f80561db.js → index.module-eb50a8d2.js} +1 -1
  110. package/dist/esm-es5/loader.js +1 -1
  111. package/dist/esm-es5/mint-components.js +1 -1
  112. package/dist/esm-es5/{re-render-9ab5fe0f.js → re-render-6d5b856e.js} +1 -1
  113. package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
  114. package/dist/esm-es5/sqm-big-stat.entry.js +1 -1
  115. package/dist/esm-es5/sqm-divided-layout_30.entry.js +58 -0
  116. package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
  117. package/dist/esm-es5/sqm-leaderboard-rank-view-cd1e8962.js +1 -0
  118. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  119. package/dist/esm-es5/sqm-leaderboard.entry.js +1 -1
  120. package/dist/esm-es5/sqm-name-fields.entry.js +1 -1
  121. package/dist/esm-es5/sqm-navigation-sidebar-item-view-2d8c368c.js +1 -0
  122. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  123. package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
  124. package/dist/esm-es5/{sqm-portal-email-verification-view-90781be2.js → sqm-portal-email-verification-view-2af31979.js} +1 -1
  125. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  126. package/dist/esm-es5/{sqm-portal-footer-view-c317518e.js → sqm-portal-footer-view-60cd9ae5.js} +1 -1
  127. package/dist/esm-es5/sqm-portal-footer.entry.js +1 -1
  128. package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
  129. package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
  130. package/dist/esm-es5/{sqm-portal-profile-view-824c8242.js → sqm-portal-profile-view-f1deea0f.js} +1 -1
  131. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  132. package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
  133. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  134. package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
  135. package/dist/esm-es5/sqm-referral-table-column.entry.js +1 -1
  136. package/dist/esm-es5/sqm-referral-table-date-column.entry.js +1 -1
  137. package/dist/esm-es5/sqm-referral-table-rewards-column.entry.js +1 -1
  138. package/dist/esm-es5/sqm-referral-table-status-column.entry.js +1 -1
  139. package/dist/esm-es5/sqm-referral-table-user-column.entry.js +1 -1
  140. package/dist/esm-es5/sqm-share-code.entry.js +1 -1
  141. package/dist/esm-es5/useDemoBigStat-d227b2f9.js +1 -0
  142. package/dist/mint-components/assets/placeholder.png +0 -0
  143. package/dist/mint-components/global/styles.ts +3 -0
  144. package/dist/mint-components/mint-components.css +1 -0
  145. package/dist/mint-components/mint-components.esm.js +1 -1
  146. package/dist/mint-components/mint-components.js +1 -1
  147. package/dist/mint-components/p-0029a386.system.entry.js +1 -0
  148. package/dist/mint-components/{p-1813b9b9.system.js → p-02dc36a4.system.js} +1 -1
  149. package/dist/mint-components/p-03a6becf.entry.js +9 -0
  150. package/dist/mint-components/{p-3b0acfcd.system.js → p-03e93c82.system.js} +1 -1
  151. package/dist/mint-components/p-0d8b2757.system.entry.js +1 -0
  152. package/dist/mint-components/{p-ceeaf074.system.js → p-0e8ae7e3.system.js} +35 -21
  153. package/dist/mint-components/{p-e9ab90a1.entry.js → p-1705e549.entry.js} +1 -1
  154. package/dist/mint-components/{p-05cca77b.js → p-1f95b411.js} +1 -1
  155. package/dist/mint-components/p-2027edc0.system.entry.js +1 -0
  156. package/dist/mint-components/{p-d9cc041f.entry.js → p-20c95798.entry.js} +1 -1
  157. package/dist/mint-components/p-21b4044a.entry.js +1 -0
  158. package/dist/mint-components/{p-8e37c08d.js → p-221bd06e.js} +1 -1
  159. package/dist/mint-components/p-2338162a.entry.js +1 -0
  160. package/dist/mint-components/{p-5dfc6804.system.entry.js → p-24fa8920.system.entry.js} +1 -1
  161. package/dist/mint-components/{p-1fb688a9.system.js → p-2e63dcfd.system.js} +1 -1
  162. package/dist/mint-components/{p-d3787c3a.entry.js → p-3143cce4.entry.js} +1 -1
  163. package/dist/mint-components/p-34112d74.entry.js +1 -0
  164. package/dist/mint-components/p-40e83a85.system.js +1 -0
  165. package/dist/mint-components/{p-0688c9c2.system.entry.js → p-46493de5.system.entry.js} +1 -1
  166. package/dist/mint-components/{p-7c13e32e.system.entry.js → p-4658d225.system.entry.js} +1 -1
  167. package/dist/mint-components/{p-434ee9c1.js → p-4b719313.js} +1 -1
  168. package/dist/mint-components/{p-a7f0b2f6.entry.js → p-53e51b3f.entry.js} +1 -1
  169. package/dist/mint-components/p-58ffe936.system.entry.js +58 -0
  170. package/dist/mint-components/p-5939212e.system.entry.js +1 -0
  171. package/dist/mint-components/{p-00190438.js → p-5d925bb6.js} +1 -1
  172. package/dist/mint-components/{p-82ab88fe.system.js → p-5e4e7f01.system.js} +1 -1
  173. package/dist/mint-components/{p-cc3510c8.js → p-61acba7a.js} +1 -1
  174. package/dist/mint-components/{p-16da5146.entry.js → p-65c79eec.entry.js} +1 -1
  175. package/dist/mint-components/p-759d3800.entry.js +13 -0
  176. package/dist/mint-components/p-7cdbe82a.entry.js +1 -0
  177. package/dist/mint-components/{p-a0045707.system.entry.js → p-7ff22998.system.entry.js} +1 -1
  178. package/dist/mint-components/p-85efd952.entry.js +1 -0
  179. package/dist/mint-components/p-86255b95.entry.js +1 -0
  180. package/dist/mint-components/p-88d9bd59.entry.js +393 -0
  181. package/dist/mint-components/{p-1b414d8f.system.entry.js → p-88fdfd94.system.entry.js} +1 -1
  182. package/dist/mint-components/{p-f1e1086e.js → p-8fd8682c.js} +17 -2
  183. package/dist/mint-components/{p-57a53dbd.system.entry.js → p-97b946c2.system.entry.js} +1 -1
  184. package/dist/mint-components/{p-e22eed7b.entry.js → p-9be0cb19.entry.js} +1 -1
  185. package/dist/mint-components/{p-4ba2faf2.system.entry.js → p-a0a26fc5.system.entry.js} +1 -1
  186. package/dist/mint-components/{p-e475a5ff.system.entry.js → p-a355eeaf.system.entry.js} +1 -1
  187. package/dist/mint-components/p-a8246a50.system.entry.js +1 -0
  188. package/dist/mint-components/p-a831de18.entry.js +1 -0
  189. package/dist/mint-components/p-a833dbb3.js +1 -0
  190. package/dist/mint-components/p-a88a08bb.system.js +1 -0
  191. package/dist/mint-components/{p-2f171597.entry.js → p-a9a6f205.entry.js} +1 -1
  192. package/dist/mint-components/p-aee83885.system.entry.js +1 -0
  193. package/dist/mint-components/{p-505f5c59.system.entry.js → p-b86cbac3.system.entry.js} +1 -1
  194. package/dist/mint-components/{p-3052c913.system.js → p-be3a0cc4.system.js} +1 -1
  195. package/dist/mint-components/{p-5f28af29.entry.js → p-c0f9d0b1.entry.js} +1 -1
  196. package/dist/mint-components/p-c65cfc9d.system.js +1 -0
  197. package/dist/mint-components/p-ca40dbaa.system.entry.js +1 -0
  198. package/dist/mint-components/p-cc189fc4.system.js +1 -0
  199. package/dist/mint-components/p-cc652a53.entry.js +1 -0
  200. package/dist/mint-components/p-d19d6012.js +235 -0
  201. package/dist/mint-components/p-d3c7dbfc.entry.js +1 -0
  202. package/dist/mint-components/{p-2a025d2a.system.entry.js → p-d4a1bce9.system.entry.js} +1 -1
  203. package/dist/mint-components/p-d68f6b64.system.entry.js +1 -0
  204. package/dist/mint-components/p-e36ff7fa.entry.js +1 -0
  205. package/dist/mint-components/{p-a4a00461.entry.js → p-e608f340.entry.js} +2 -2
  206. package/dist/mint-components/{p-16535642.system.entry.js → p-e7cb4274.system.entry.js} +1 -1
  207. package/dist/mint-components/p-ef7f70f2.system.entry.js +1 -0
  208. package/dist/mint-components/{p-04516274.system.entry.js → p-f20d9204.system.entry.js} +1 -1
  209. package/dist/mint-components/p-f7f87338.js +1 -0
  210. package/dist/mint-components/{p-a0cfd3d9.system.js → p-f9ada3d7.system.js} +1 -1
  211. package/dist/mint-components/{p-844fd903.js → p-faf66fdb.js} +1 -1
  212. package/dist/mint-components/p-fcd03042.entry.js +1 -0
  213. package/dist/mint-components/{p-1ac9c24b.system.entry.js → p-fd281e6b.system.entry.js} +1 -1
  214. package/dist/types/components/sqm-big-stat/UseBigStat.stories.d.ts +6 -0
  215. package/dist/types/components/sqm-big-stat/sqm-big-stat-view.d.ts +1 -0
  216. package/dist/types/components/sqm-big-stat/useBigStat.d.ts +4 -1
  217. package/dist/types/components/sqm-reward-exchange-list/RewardExchangeList.stories.d.ts +13 -0
  218. package/dist/types/components/sqm-reward-exchange-list/RewardExchangeListData.d.ts +234 -0
  219. package/dist/types/components/sqm-reward-exchange-list/SVGs.d.ts +2 -0
  220. package/dist/types/components/sqm-reward-exchange-list/progressBar.d.ts +3 -2
  221. package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.d.ts +3 -4
  222. package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list.d.ts +4 -0
  223. package/dist/types/components/sqm-reward-exchange-list/useRewardExchangeList.d.ts +1 -0
  224. package/dist/types/components/sqm-rewards-table/UseRewardsTable.stories.d.ts +16 -0
  225. package/dist/types/components/sqm-rewards-table/sqm-rewards-table-column.d.ts +20 -0
  226. package/dist/types/components/sqm-rewards-table/useRewardsTable.d.ts +33 -0
  227. package/dist/types/components/{sqm-rewards-table → sqm-router}/Router.stories.d.ts +0 -0
  228. package/dist/types/components/sqm-stencilbook/AutoColor.d.ts +1 -0
  229. package/dist/types/components/{sqm-task-card → sqm-stencilbook}/Matrix.d.ts +0 -0
  230. package/dist/types/components/sqm-stencilbook/Resizer.d.ts +3 -0
  231. package/dist/types/components/sqm-stencilbook/Themes.d.ts +17 -0
  232. package/dist/types/components/sqm-task-card/SVGs.d.ts +1 -1
  233. package/dist/types/components/sqm-task-card/TaskCard.stories.d.ts +15 -5
  234. package/dist/types/components/sqm-task-card/UseTaskCard.stories.d.ts +10 -0
  235. package/dist/types/components/sqm-task-card/progress-bar/SVGs.d.ts +1 -0
  236. package/dist/types/components/sqm-task-card/progress-bar/progress-bar-view.d.ts +12 -0
  237. package/dist/types/components/sqm-task-card/sqm-task-card-view.d.ts +15 -22
  238. package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +35 -16
  239. package/dist/types/components.d.ts +110 -36
  240. package/dist/types/global/styles.d.ts +1 -1
  241. package/grapesjs/grapesjs.js +1 -1
  242. package/package.json +4 -2
  243. package/dist/cjs/sqm-leaderboard-rank-view-35015d30.js +0 -10
  244. package/dist/cjs/sqm-rewards-table.cjs.entry.js +0 -332
  245. package/dist/cjs/sqm-task-card-view-57066e67.js +0 -476
  246. package/dist/cjs/sqm-task-card.cjs.entry.js +0 -56
  247. package/dist/cjs/tslib.es6-0e81fab1.js +0 -56
  248. package/dist/cjs/useChildElements-428ca5b8.js +0 -21
  249. package/dist/esm/sqm-leaderboard-rank-view-da91f5f3.js +0 -8
  250. package/dist/esm/sqm-rewards-table.entry.js +0 -328
  251. package/dist/esm/sqm-task-card-view-2ee495af.js +0 -474
  252. package/dist/esm/sqm-task-card.entry.js +0 -52
  253. package/dist/esm/tslib.es6-7ac9d7e4.js +0 -53
  254. package/dist/esm/useChildElements-506f00d0.js +0 -19
  255. package/dist/esm-es5/ShadowViewAddon-fff5d35d.js +0 -1
  256. package/dist/esm-es5/index-2f5dd0a1.js +0 -1
  257. package/dist/esm-es5/sqm-divided-layout_27.entry.js +0 -1
  258. package/dist/esm-es5/sqm-leaderboard-rank-view-da91f5f3.js +0 -1
  259. package/dist/esm-es5/sqm-navigation-sidebar-item-view-8a3f374b.js +0 -1
  260. package/dist/esm-es5/sqm-rewards-table.entry.js +0 -1
  261. package/dist/esm-es5/sqm-task-card-view-2ee495af.js +0 -1
  262. package/dist/esm-es5/sqm-task-card.entry.js +0 -1
  263. package/dist/esm-es5/tslib.es6-7ac9d7e4.js +0 -15
  264. package/dist/esm-es5/useChildElements-506f00d0.js +0 -1
  265. package/dist/esm-es5/useDemoBigStat-b71fe122.js +0 -1
  266. package/dist/mint-components/p-0ba3c956.system.entry.js +0 -1
  267. package/dist/mint-components/p-11c75956.entry.js +0 -1
  268. package/dist/mint-components/p-189219ee.system.js +0 -1
  269. package/dist/mint-components/p-1e248afc.system.entry.js +0 -1
  270. package/dist/mint-components/p-21dfdeb8.entry.js +0 -1
  271. package/dist/mint-components/p-23a0bdae.entry.js +0 -1
  272. package/dist/mint-components/p-2bce988c.js +0 -1
  273. package/dist/mint-components/p-337b49ee.entry.js +0 -1
  274. package/dist/mint-components/p-353b4413.system.js +0 -1
  275. package/dist/mint-components/p-3fd33dee.system.entry.js +0 -1
  276. package/dist/mint-components/p-405a9253.js +0 -227
  277. package/dist/mint-components/p-55e02769.entry.js +0 -13
  278. package/dist/mint-components/p-58d9b2f0.js +0 -15
  279. package/dist/mint-components/p-6cdc70f4.entry.js +0 -1
  280. package/dist/mint-components/p-6d545e13.entry.js +0 -1
  281. package/dist/mint-components/p-70837c1c.entry.js +0 -49
  282. package/dist/mint-components/p-71d942af.entry.js +0 -9
  283. package/dist/mint-components/p-7c138c84.entry.js +0 -1
  284. package/dist/mint-components/p-7c261ea0.system.entry.js +0 -1
  285. package/dist/mint-components/p-8034f81c.system.entry.js +0 -1
  286. package/dist/mint-components/p-82d7a2ba.entry.js +0 -1
  287. package/dist/mint-components/p-844f9bad.entry.js +0 -1
  288. package/dist/mint-components/p-8c16f04e.js +0 -1
  289. package/dist/mint-components/p-8f5e2af4.entry.js +0 -1
  290. package/dist/mint-components/p-91d39961.system.js +0 -1
  291. package/dist/mint-components/p-aba21f90.entry.js +0 -1
  292. package/dist/mint-components/p-af06ea5b.system.entry.js +0 -1
  293. package/dist/mint-components/p-b3af1c6f.js +0 -1
  294. package/dist/mint-components/p-bca8867d.entry.js +0 -287
  295. package/dist/mint-components/p-bf04a8e1.system.entry.js +0 -1
  296. package/dist/mint-components/p-bf055b6c.system.js +0 -1
  297. package/dist/mint-components/p-c3866bfa.system.entry.js +0 -1
  298. package/dist/mint-components/p-c9c4f31b.system.entry.js +0 -1
  299. package/dist/mint-components/p-db723323.system.entry.js +0 -1
  300. package/dist/mint-components/p-dd6a666e.system.js +0 -15
  301. package/dist/mint-components/p-dfc3cf82.js +0 -1
  302. package/dist/mint-components/p-e19a57a4.system.entry.js +0 -1
  303. package/dist/mint-components/p-e2ebe90c.entry.js +0 -1
  304. package/dist/mint-components/p-e78a5a91.js +0 -1
  305. package/dist/mint-components/p-ecbabf6e.system.js +0 -1
  306. package/dist/mint-components/p-f41ab9e1.system.js +0 -1
  307. package/dist/mint-components/p-f87d8f53.system.js +0 -1
  308. package/dist/mint-components/p-fcaa5886.system.entry.js +0 -1
@@ -1,7 +1,21 @@
1
1
  import { h } from "@stencil/core";
2
- import { TaskCardView, } from "./sqm-task-card-view";
2
+ import { MatrixStory } from "../sqm-stencilbook/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
+ import { DateTime } from "luxon";
8
+ import { Resizer } from "../sqm-stencilbook/Resizer";
9
+ const scenario = scenarioTaskCard + scenarioProgressBar;
3
10
  export default {
4
- title: "Components/Task Card",
11
+ title: "Components/Task Card/",
12
+ parameters: {
13
+ scenario,
14
+ },
15
+ };
16
+ const storyFrame = {
17
+ display: "inline-flex",
18
+ gap: "32px",
5
19
  };
6
20
  const resizable = {
7
21
  width: "347px",
@@ -10,44 +24,103 @@ const resizable = {
10
24
  height: "fit-content",
11
25
  overflow: "hidden",
12
26
  };
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);
27
+ const oneAction = {
28
+ rewardAmount: 20,
29
+ rewardUnit: "SaaSquatch Points",
30
+ cardTitle: "Complete a survey",
31
+ description: "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
32
+ repeatable: false,
33
+ showProgressBar: false,
34
+ progress: 0,
35
+ goal: 1,
36
+ buttonText: "Take survey",
37
+ buttonLink: "https://example.com/",
38
+ openNewTab: false,
39
+ showExpiry: false,
40
+ rewardDuration: null,
41
+ loading: false,
42
+ finite: 0,
23
43
  };
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",
44
+ const coupleActions = {
45
+ rewardAmount: 40,
46
+ rewardUnit: "SaaSquatch Points",
47
+ cardTitle: "Comment on 5 articles",
48
+ description: "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
49
+ repeatable: false,
50
+ showProgressBar: true,
51
+ steps: true,
52
+ progress: 1,
53
+ goal: 5,
54
+ buttonText: "Take survey",
55
+ buttonLink: "https://example.com/",
56
+ openNewTab: false,
57
+ showExpiry: false,
58
+ rewardDuration: null,
59
+ loading: false,
60
+ finite: 0,
61
+ };
62
+ const manyActions = {
63
+ rewardAmount: 150,
64
+ rewardUnit: "SaaSquatch Points",
65
+ cardTitle: "Spend $500 at our Store",
66
+ description: "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
67
+ repeatable: false,
68
+ showProgressBar: true,
69
+ progress: 100,
70
+ goal: 500,
71
+ progressBarUnit: "$",
72
+ buttonText: "Take survey",
73
+ buttonLink: "https://example.com/",
74
+ openNewTab: false,
75
+ showExpiry: false,
76
+ rewardDuration: null,
77
+ loading: false,
78
+ finite: 0,
79
+ };
80
+ export const TaskCard = () => {
81
+ const expire = {
82
+ showExpiry: true,
83
+ rewardDuration: "2021-11-30T08:00:00.000Z/2021-12-01T08:00:00.000Z",
49
84
  };
50
- return (h("div", { style: { display: "inline-flex", gap: "32px" } },
85
+ const expireRepeat = { ...expire, repeatable: true };
86
+ return (h("div", { style: storyFrame },
87
+ h(Resizer, null,
88
+ h("h4", null, "Not Repeatable"),
89
+ h(TaskCardView, Object.assign({}, oneAction, { progress: 0 })),
90
+ " ",
91
+ h("h5", null),
92
+ h(TaskCardView, Object.assign({}, coupleActions, { progress: 1 })),
93
+ " ",
94
+ h("h5", null),
95
+ h(TaskCardView, Object.assign({}, manyActions, { progress: 230 }))),
96
+ h(Resizer, null,
97
+ h("h4", null, "Repeatable"),
98
+ h(TaskCardView, Object.assign({}, oneAction, { progress: 2, repeatable: true })),
99
+ " ",
100
+ h("h5", null),
101
+ h(TaskCardView, Object.assign({}, coupleActions, { progress: 7, repeatable: true })),
102
+ h("h5", null),
103
+ h(TaskCardView, Object.assign({}, manyActions, { progress: 650, repeatable: true }))),
104
+ h(Resizer, null,
105
+ h("h4", null, "Complete"),
106
+ h(TaskCardView, Object.assign({}, oneAction, { progress: 1 })),
107
+ " ",
108
+ h("h5", null),
109
+ h(TaskCardView, Object.assign({}, coupleActions, { progress: 5 })),
110
+ " ",
111
+ h("h5", null),
112
+ h(TaskCardView, Object.assign({}, manyActions, { progress: 500 }))),
113
+ h(Resizer, null,
114
+ h("h4", null, "Unavailable"),
115
+ h(TaskCardView, Object.assign({}, oneAction, { progress: 0 }, expireRepeat)),
116
+ " ",
117
+ h("h5", null),
118
+ h(TaskCardView, Object.assign({}, coupleActions, { progress: 3 }, expireRepeat)),
119
+ h("h5", null),
120
+ h(TaskCardView, Object.assign({}, manyActions, { progress: 250 }, expireRepeat)))));
121
+ };
122
+ export const TaskCardNotRepeatable = () => {
123
+ return (h("div", { style: storyFrame },
51
124
  h("div", { style: resizable },
52
125
  h("h4", null, "One Action"),
53
126
  h(TaskCardView, Object.assign({}, oneAction, { progress: 0 })),
@@ -58,442 +131,282 @@ export const NotRepeatable = () => {
58
131
  h("h5", null)),
59
132
  h("div", { style: resizable },
60
133
  h("h4", null, "A Couple Actions"),
61
- h(TaskCardView, Object.assign({}, coupleActions, { progress: 0 })),
62
- " ",
63
- h("h5", null),
64
134
  h(TaskCardView, Object.assign({}, coupleActions, { progress: 1 })),
65
135
  " ",
66
136
  h("h5", null),
67
137
  h(TaskCardView, Object.assign({}, coupleActions, { progress: 5 })),
68
138
  " ",
69
- h("h5", null),
70
- h("h5", null,
71
- "Progress ",
72
- ">",
73
- " Goal"),
74
- h(TaskCardView, Object.assign({}, coupleActions, { progress: 9 })),
75
- " ",
76
139
  h("h5", null)),
77
140
  h("div", { style: resizable },
78
141
  h("h4", null, "Many Actions"),
79
- h(TaskCardView, Object.assign({}, manyActions, { progress: 0 })),
80
- " ",
81
- h("h5", null),
82
142
  h(TaskCardView, Object.assign({}, manyActions, { progress: 230 })),
83
143
  " ",
84
144
  h("h5", null),
85
145
  h(TaskCardView, Object.assign({}, manyActions, { progress: 500 })),
86
146
  " ",
87
- h("h5", null),
88
- h("h5", null,
89
- "Progress ",
90
- ">",
91
- " Goal"),
92
- h(TaskCardView, Object.assign({}, manyActions, { progress: 700 })),
93
- " ",
94
147
  h("h5", null))));
95
148
  };
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" } },
149
+ export const TaskCardRepeatable = () => {
150
+ return (h("div", { style: storyFrame },
129
151
  h("div", { style: resizable },
130
152
  h("h4", null, "One Action"),
131
- h(TaskCardView, Object.assign({}, oneAction, { progress: 0 })),
153
+ h(TaskCardView, Object.assign({}, oneAction, { progress: 0, repeatable: true })),
132
154
  " ",
133
155
  h("h5", null),
134
- h(TaskCardView, Object.assign({}, oneAction, { progress: 1 })),
156
+ h(TaskCardView, Object.assign({}, oneAction, { progress: 1, repeatable: true })),
135
157
  " ",
136
158
  h("h5", null)),
137
159
  h("div", { style: resizable },
138
160
  h("h4", null, "A Couple Actions"),
139
- h(TaskCardView, Object.assign({}, coupleActions, { progress: 0 })),
140
- " ",
161
+ h(TaskCardView, Object.assign({}, coupleActions, { progress: 1, repeatable: true })),
141
162
  h("h5", null),
142
- h(TaskCardView, Object.assign({}, coupleActions, { progress: 1 })),
143
- " ",
163
+ h(TaskCardView, Object.assign({}, coupleActions, { progress: 5, repeatable: true })),
144
164
  h("h5", null),
145
- h(TaskCardView, Object.assign({}, coupleActions, { progress: 5 })),
146
- " ",
165
+ h(TaskCardView, Object.assign({}, coupleActions, { progress: 7, repeatable: true })),
147
166
  h("h5", null),
148
- h("h5", null,
149
- "Progress ",
150
- ">",
151
- " Goal"),
152
- h(TaskCardView, Object.assign({}, coupleActions, { progress: 9 })),
153
- " ",
167
+ h(TaskCardView, Object.assign({}, coupleActions, { progress: 10, repeatable: true })),
154
168
  h("h5", null)),
155
169
  h("div", { style: resizable },
156
170
  h("h4", null, "Many Actions"),
157
- h(TaskCardView, Object.assign({}, manyActions, { progress: 0 })),
158
- " ",
171
+ h(TaskCardView, Object.assign({}, manyActions, { progress: 100, repeatable: true })),
159
172
  h("h5", null),
160
- h(TaskCardView, Object.assign({}, manyActions, { progress: 230 })),
161
- " ",
173
+ h(TaskCardView, Object.assign({}, manyActions, { progress: 500, repeatable: true })),
162
174
  h("h5", null),
163
- h(TaskCardView, Object.assign({}, manyActions, { progress: 500 })),
164
- " ",
175
+ h(TaskCardView, Object.assign({}, manyActions, { progress: 650, repeatable: true })),
165
176
  h("h5", null),
166
- h("h5", null,
167
- "Progress ",
168
- ">",
169
- " Goal"),
170
- h(TaskCardView, Object.assign({}, manyActions, { progress: 700 })),
171
- " ",
177
+ h(TaskCardView, Object.assign({}, manyActions, { progress: 1000, repeatable: true })),
172
178
  h("h5", null))));
173
179
  };
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,
182
- };
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" } },
180
+ export const TaskCardRepeatableFinite = () => {
181
+ return (h("div", { style: storyFrame },
204
182
  h("div", { style: resizable },
205
183
  h("h4", null, "One Action"),
206
- h(TaskCardView, Object.assign({}, oneAction, { progress: 0 })),
207
- " ",
184
+ h(TaskCardView, Object.assign({}, oneAction, { progress: 0, repeatable: true, finite: 2 })),
208
185
  h("h5", null),
209
- h(TaskCardView, Object.assign({}, oneAction, { progress: 1 })),
210
- " ",
186
+ h(TaskCardView, Object.assign({}, oneAction, { progress: 1, repeatable: true, finite: 2 })),
187
+ h("h5", null),
188
+ h(TaskCardView, Object.assign({}, oneAction, { progress: 2, repeatable: true, finite: 2 })),
211
189
  h("h5", null)),
212
190
  h("div", { style: resizable },
213
191
  h("h4", null, "A Couple Actions"),
214
- h(TaskCardView, Object.assign({}, coupleActions, { progress: 1 })),
215
- " ",
192
+ h(TaskCardView, Object.assign({}, coupleActions, { progress: 2, repeatable: true, finite: 2 })),
216
193
  h("h5", null),
217
- h(TaskCardView, Object.assign({}, coupleActions, { progress: 5 })),
218
- " ",
194
+ h(TaskCardView, Object.assign({}, coupleActions, { progress: 5, repeatable: true, finite: 2 })),
219
195
  h("h5", null),
220
- h(TaskCardView, Object.assign({}, coupleActions, { progress: 7 })),
221
- " ",
196
+ h(TaskCardView, Object.assign({}, coupleActions, { progress: 10, repeatable: true, finite: 2 })),
222
197
  h("h5", null),
223
- h(TaskCardView, Object.assign({}, coupleActions, { progress: 10 })),
224
- " ",
198
+ h(TaskCardView, Object.assign({}, coupleActions, { progress: 12, repeatable: true, finite: 3 })),
225
199
  h("h5", null),
226
- h(TaskCardView, Object.assign({}, coupleActions, { progress: 12 })),
227
- " ",
200
+ h(TaskCardView, Object.assign({}, coupleActions, { progress: 15, repeatable: true, finite: 3 })),
201
+ h("h5", null)),
202
+ h("div", { style: resizable },
203
+ h("h4", null, "Many Actions"),
204
+ h(TaskCardView, Object.assign({}, manyActions, { progress: 200, repeatable: true, finite: 2 })),
228
205
  h("h5", null),
229
- h(TaskCardView, Object.assign({}, coupleActions, { progress: 15 })),
206
+ h(TaskCardView, Object.assign({}, manyActions, { progress: 500, repeatable: true, finite: 2 })),
207
+ h("h5", null),
208
+ h(TaskCardView, Object.assign({}, manyActions, { progress: 1000, repeatable: true, finite: 2 })),
209
+ h("h5", null),
210
+ h(TaskCardView, Object.assign({}, manyActions, { progress: 1200, repeatable: true, finite: 3 })),
211
+ h("h5", null),
212
+ h(TaskCardView, Object.assign({}, manyActions, { progress: 1500, repeatable: true, finite: 3 })),
213
+ h("h5", null))));
214
+ };
215
+ export const TaskCardEndDate = () => {
216
+ const expire = {
217
+ showExpiry: true,
218
+ rewardDuration: DateTime.now().minus({ days: 1 }).toISO() +
219
+ "/" +
220
+ DateTime.now().plus({ days: 1 }).toISO(),
221
+ };
222
+ const expireRepeat = { ...expire, repeatable: true };
223
+ return (h("div", { style: storyFrame },
224
+ h("div", { style: resizable },
225
+ h("h4", null, "One Action"),
226
+ h(TaskCardView, Object.assign({}, oneAction, expire)),
230
227
  " ",
231
228
  h("h5", null),
232
- h(TaskCardView, Object.assign({}, coupleActions, { progress: 17 })),
229
+ h(TaskCardView, Object.assign({}, oneAction, expireRepeat)),
230
+ " ",
231
+ h("h5", null)),
232
+ h("div", { style: resizable },
233
+ h("h4", null, "A Couple Actions"),
234
+ h(TaskCardView, Object.assign({}, coupleActions, expire)),
233
235
  " ",
234
236
  h("h5", null),
235
- h(TaskCardView, Object.assign({}, coupleActions, { progress: 22 })),
237
+ h(TaskCardView, Object.assign({}, coupleActions, expireRepeat)),
236
238
  " ",
237
239
  h("h5", null)),
238
240
  h("div", { style: resizable },
239
241
  h("h4", null, "Many Actions"),
240
- h(TaskCardView, Object.assign({}, manyActions, { progress: 100 })),
242
+ h(TaskCardView, Object.assign({}, manyActions, expire)),
241
243
  " ",
242
244
  h("h5", null),
243
- h(TaskCardView, Object.assign({}, manyActions, { progress: 500 })),
245
+ h(TaskCardView, Object.assign({}, manyActions, expireRepeat)),
244
246
  " ",
245
- h("h5", null),
246
- h(TaskCardView, Object.assign({}, manyActions, { progress: 650 })),
247
+ h("h5", null))));
248
+ };
249
+ export const TaskCardLoading = () => {
250
+ const loading = { loading: true };
251
+ return (h("div", { style: storyFrame },
252
+ h("div", { style: resizable },
253
+ h("h4", null, "One Action"),
254
+ h(TaskCardView, Object.assign({}, oneAction, loading)),
247
255
  " ",
248
256
  h("h5", null),
249
- h(TaskCardView, Object.assign({}, manyActions, { progress: 1000 })),
257
+ h(TaskCardView, Object.assign({}, oneAction, loading)),
250
258
  " ",
251
- h("h5", null),
252
- h(TaskCardView, Object.assign({}, manyActions, { progress: 1200 })),
259
+ h("h5", null)),
260
+ h("div", { style: resizable },
261
+ h("h4", null, "A Couple Actions"),
262
+ h(TaskCardView, Object.assign({}, coupleActions, loading)),
253
263
  " ",
254
264
  h("h5", null),
255
- h(TaskCardView, Object.assign({}, manyActions, { progress: 1500 })),
265
+ h(TaskCardView, Object.assign({}, coupleActions, loading)),
256
266
  " ",
257
- h("h5", null),
258
- h(TaskCardView, Object.assign({}, manyActions, { progress: 1700 })),
267
+ h("h5", null)),
268
+ h("div", { style: resizable },
269
+ h("h4", null, "Many Actions"),
270
+ h(TaskCardView, Object.assign({}, manyActions, loading)),
259
271
  " ",
260
272
  h("h5", null),
261
- h(TaskCardView, Object.assign({}, manyActions, { progress: 2200 })),
273
+ h(TaskCardView, Object.assign({}, manyActions, loading)),
262
274
  " ",
263
275
  h("h5", null))));
264
276
  };
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",
277
+ export const TaskCardNotStarted = () => {
278
+ const expire = {
279
+ showExpiry: true,
280
+ rewardDuration: DateTime.now().plus({ days: 1 }).toISO() +
281
+ "/" +
282
+ DateTime.now().plus({ days: 2 }).toISO(),
275
283
  };
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" } },
284
+ const expireRepeat = { ...expire, repeatable: true };
285
+ return (h("div", { style: storyFrame },
301
286
  h("div", { style: resizable },
302
287
  h("h4", null, "One Action"),
303
- h(TaskCardView, Object.assign({}, oneAction, { progress: 0 })),
288
+ h(TaskCardView, Object.assign({}, oneAction, { progress: 0 }, expire)),
304
289
  " ",
305
290
  h("h5", null),
306
- h(TaskCardView, Object.assign({}, oneAction, { progress: 1 })),
291
+ h(TaskCardView, Object.assign({}, oneAction, { progress: 1 }, expire)),
292
+ " ",
293
+ h("h5", null),
294
+ h(TaskCardView, Object.assign({}, oneAction, { progress: 0 }, expireRepeat)),
295
+ " ",
296
+ h("h5", null),
297
+ h(TaskCardView, Object.assign({}, oneAction, { progress: 1 }, expireRepeat)),
307
298
  " ",
308
299
  h("h5", null)),
309
300
  h("div", { style: resizable },
310
301
  h("h4", null, "A Couple Actions"),
311
- h(TaskCardView, Object.assign({}, coupleActions, { progress: 1 })),
302
+ h(TaskCardView, Object.assign({}, coupleActions, { progress: 1 }, expire)),
312
303
  " ",
313
304
  h("h5", null),
314
- h(TaskCardView, Object.assign({}, coupleActions, { progress: 5 })),
305
+ h(TaskCardView, Object.assign({}, coupleActions, { progress: 5 }, expire)),
315
306
  " ",
316
307
  h("h5", null),
317
- h(TaskCardView, Object.assign({}, coupleActions, { progress: 7 })),
308
+ h(TaskCardView, Object.assign({}, coupleActions, { progress: 1 }, expireRepeat)),
309
+ h("h5", null),
310
+ h(TaskCardView, Object.assign({}, coupleActions, { progress: 5 }, expireRepeat)),
311
+ h("h5", null)),
312
+ h("div", { style: resizable },
313
+ h("h4", null, "Many Actions"),
314
+ h(TaskCardView, Object.assign({}, manyActions, { progress: 100 }, expire)),
318
315
  " ",
319
316
  h("h5", null),
320
- h(TaskCardView, Object.assign({}, coupleActions, { progress: 10 })),
317
+ h(TaskCardView, Object.assign({}, manyActions, { progress: 500 }, expire)),
321
318
  " ",
322
319
  h("h5", null),
323
- h(TaskCardView, Object.assign({}, coupleActions, { progress: 12 })),
320
+ h(TaskCardView, Object.assign({}, manyActions, { progress: 100 }, expireRepeat)),
321
+ h("h5", null),
322
+ h(TaskCardView, Object.assign({}, manyActions, { progress: 500 }, expireRepeat)),
323
+ h("h5", null))));
324
+ };
325
+ export const TaskCardEnded = () => {
326
+ const expire = {
327
+ showExpiry: true,
328
+ rewardDuration: DateTime.now().minus({ days: 2 }).toISO() +
329
+ "/" +
330
+ DateTime.now().minus({ days: 1 }).toISO(),
331
+ };
332
+ const expireRepeat = { ...expire, repeatable: true };
333
+ return (h("div", { style: storyFrame },
334
+ h("div", { style: resizable },
335
+ h("h4", null, "One Action"),
336
+ h(TaskCardView, Object.assign({}, oneAction, { progress: 0 }, expire)),
324
337
  " ",
325
338
  h("h5", null),
326
- h(TaskCardView, Object.assign({}, coupleActions, { progress: 15 })),
339
+ h(TaskCardView, Object.assign({}, oneAction, { progress: 1 }, expire)),
327
340
  " ",
328
341
  h("h5", null),
329
- h(TaskCardView, Object.assign({}, coupleActions, { progress: 17 })),
342
+ h(TaskCardView, Object.assign({}, oneAction, { progress: 0 }, expireRepeat)),
330
343
  " ",
331
344
  h("h5", null),
332
- h(TaskCardView, Object.assign({}, coupleActions, { progress: 22 })),
345
+ h(TaskCardView, Object.assign({}, oneAction, { progress: 1 }, expireRepeat)),
333
346
  " ",
334
347
  h("h5", null)),
335
348
  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 })),
349
+ h("h4", null, "A Couple Actions"),
350
+ h(TaskCardView, Object.assign({}, coupleActions, { progress: 1 }, expire)),
341
351
  " ",
342
352
  h("h5", null),
343
- h(TaskCardView, Object.assign({}, manyActions, { progress: 650 })),
353
+ h(TaskCardView, Object.assign({}, coupleActions, { progress: 5 }, expire)),
344
354
  " ",
345
355
  h("h5", null),
346
- h(TaskCardView, Object.assign({}, manyActions, { progress: 1000 })),
347
- " ",
356
+ h(TaskCardView, Object.assign({}, coupleActions, { progress: 1 }, expireRepeat)),
348
357
  h("h5", null),
349
- h(TaskCardView, Object.assign({}, manyActions, { progress: 1200 })),
358
+ h(TaskCardView, Object.assign({}, coupleActions, { progress: 5 }, expireRepeat)),
359
+ h("h5", null)),
360
+ h("div", { style: resizable },
361
+ h("h4", null, "Many Actions"),
362
+ h(TaskCardView, Object.assign({}, manyActions, { progress: 100 }, expire)),
350
363
  " ",
351
364
  h("h5", null),
352
- h(TaskCardView, Object.assign({}, manyActions, { progress: 1500 })),
365
+ h(TaskCardView, Object.assign({}, manyActions, { progress: 500 }, expire)),
353
366
  " ",
354
367
  h("h5", null),
355
- h(TaskCardView, Object.assign({}, manyActions, { progress: 1700 })),
356
- " ",
368
+ h(TaskCardView, Object.assign({}, manyActions, { progress: 100 }, expireRepeat)),
357
369
  h("h5", null),
358
- h(TaskCardView, Object.assign({}, manyActions, { progress: 2200 })),
359
- " ",
370
+ h(TaskCardView, Object.assign({}, manyActions, { progress: 500 }, expireRepeat)),
360
371
  h("h5", null))));
361
372
  };
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
- // };
373
+ export const ProgressBar = () => {
374
+ const props = {
375
+ progress: 0,
376
+ goal: 500,
377
+ progressBarUnit: "$",
378
+ };
379
+ return (h("div", null,
380
+ h(MatrixStory, { matrix: { progress: [-100, 0, 100, 500, 1000] }, props: props, Component: ProgressBarView })));
381
+ };
382
+ export const ProgressBarSteps = () => {
383
+ const props = {
384
+ progress: 0,
385
+ steps: true,
386
+ goal: 5,
387
+ progressBarUnit: "$",
388
+ };
389
+ return (h("div", null,
390
+ h(MatrixStory, { matrix: { progress: [-1, 0, 1, 5, 7] }, props: props, Component: ProgressBarView })));
391
+ };
392
+ export const ProgressBarRepeatable = () => {
393
+ const props = {
394
+ progress: 0,
395
+ goal: 500,
396
+ progressBarUnit: "$",
397
+ repeatable: true,
398
+ };
399
+ return (h("div", null,
400
+ h(MatrixStory, { matrix: { progress: [100, 500, 650, 1200] }, props: props, Component: ProgressBarView })));
401
+ };
402
+ export const ProgressBarStepsRepeatable = () => {
403
+ const props = {
404
+ progress: 0,
405
+ steps: true,
406
+ goal: 5,
407
+ progressBarUnit: "$",
408
+ repeatable: true,
409
+ };
410
+ return (h("div", null,
411
+ h(MatrixStory, { matrix: { progress: [1, 5, 7, 12] }, props: props, Component: ProgressBarView })));
412
+ };