@saasquatch/mint-components 1.3.3-7 → 1.5.0-1

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 (381) hide show
  1. package/dist/cjs/{ShadowViewAddon-e9bacad0.js → ShadowViewAddon-475e00d3.js} +1 -1
  2. package/dist/cjs/{global-0c01d88f.js → global-89f66e76.js} +282 -70
  3. package/dist/cjs/{index.module-2925fe3b.js → index.module-c0bf9df0.js} +3 -1
  4. package/dist/cjs/loader.cjs.js +3 -3
  5. package/dist/cjs/mint-components.cjs.js +3 -3
  6. package/dist/cjs/{re-render-b1ad512d.js → re-render-124b56ee.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_26.cjs.entry.js → sqm-divided-layout_30.cjs.entry.js} +6661 -534
  10. package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +1 -1
  11. package/dist/cjs/{sqm-leaderboard-rank-view-48245b30.js → sqm-leaderboard-rank-view-510f16d3.js} +2 -2
  12. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +3 -3
  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-1bad646a.js → sqm-navigation-sidebar-item-view-a2bdcf05.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-68b16f27.js → sqm-portal-email-verification-view-5093ac20.js} +1 -1
  19. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +4 -9
  20. package/dist/cjs/{sqm-portal-footer-view-edeeebab.js → sqm-portal-footer-view-03408484.js} +1 -1
  21. package/dist/cjs/sqm-portal-footer.cjs.entry.js +3 -3
  22. package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +5 -15
  23. package/dist/cjs/sqm-portal-logout.cjs.entry.js +1 -1
  24. package/dist/cjs/{sqm-portal-profile-view-2b48529e.js → sqm-portal-profile-view-fa2db439.js} +1 -1
  25. package/dist/cjs/sqm-portal-profile.cjs.entry.js +3 -3
  26. package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +1 -1
  27. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +2 -6
  28. package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +3 -7
  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-ee71b587.js → useDemoBigStat-5d71bbdf.js} +117 -21
  36. package/dist/collection/collection-manifest.json +7 -3
  37. package/dist/collection/{stories → components/sqm-asset-card}/AssetCard.stories.js +2 -2
  38. package/dist/collection/{stories → components/sqm-big-stat}/BigStat.stories.js +10 -3
  39. package/dist/collection/{stories → components/sqm-big-stat}/UseBigStat.stories.js +7 -4
  40. package/dist/collection/components/sqm-big-stat/sqm-big-stat.js +1 -1
  41. package/dist/collection/components/sqm-big-stat/useBigStat.js +115 -20
  42. package/dist/collection/components/sqm-big-stat/useDemoBigStat.js +1 -0
  43. package/dist/collection/{stories → components/sqm-divided-layout}/DividedLayout.stories.js +4 -4
  44. package/dist/collection/{stories → components/sqm-edit-profile}/EditProfileForm.stories.js +2 -2
  45. package/dist/collection/{stories → components/sqm-edit-profile}/UseEditProfile.stories.js +1 -1
  46. package/dist/collection/{stories → components/sqm-form-message}/FormMessage.stories.js +1 -1
  47. package/dist/collection/{stories → components/sqm-hero}/Hero.stories.js +2 -2
  48. package/dist/collection/{stories → components/sqm-leaderboard}/Leaderboard.stories.js +2 -2
  49. package/dist/collection/{stories → components/sqm-leaderboard}/UseLeaderboard.stories.js +3 -3
  50. package/dist/collection/{stories → components/sqm-leaderboard-rank}/LeaderboardRank.stories.js +2 -2
  51. package/dist/collection/{stories → components/sqm-name-fields}/NameFields.stories.js +2 -2
  52. package/dist/collection/{stories → components/sqm-navigation-sidebar}/NavigationSidebar.stories.js +3 -3
  53. package/dist/collection/{stories → components/sqm-navigation-sidebar-item}/SidebarItem.stories.js +2 -2
  54. package/dist/collection/{stories → components/sqm-password-field}/PasswordField.stories.js +1 -1
  55. package/dist/collection/{stories → components/sqm-portal-change-password}/ChangePassword.stories.js +3 -3
  56. package/dist/collection/{stories → components/sqm-portal-email-verification}/PortalEmailVerification.stories.js +3 -3
  57. package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification.js +0 -25
  58. package/dist/collection/components/sqm-portal-email-verification/usePortalEmailVerification.js +1 -2
  59. package/dist/collection/{stories → components/sqm-portal-footer}/PortalFooter.stories.js +2 -2
  60. package/dist/collection/{stories → components/sqm-portal-forgot-password}/PortalForgotPassword.stories.js +3 -7
  61. package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password.js +3 -53
  62. package/dist/collection/components/sqm-portal-forgot-password/usePortalForgotPassword.js +2 -4
  63. package/dist/collection/{stories → components/sqm-portal-frame}/PortalFrame.stories.js +2 -2
  64. package/dist/collection/{stories → components/sqm-portal-login}/PortalLogin.stories.js +2 -8
  65. package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +4 -59
  66. package/dist/collection/components/sqm-portal-login/usePortalLogin.js +2 -4
  67. package/dist/collection/{stories → components/sqm-portal-profile}/PortalProfile.stories.js +2 -2
  68. package/dist/collection/{stories → components/sqm-portal-register}/PortalRegister.stories.js +2 -7
  69. package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +2 -53
  70. package/dist/collection/components/sqm-portal-register/usePortalRegister.js +0 -3
  71. package/dist/collection/{stories → components/sqm-portal-reset-password}/PortalResetPassword.stories.js +3 -3
  72. package/dist/collection/components/sqm-portal-reset-password/sqm-portal-reset-password.js +0 -25
  73. package/dist/collection/components/sqm-portal-reset-password/usePortalResetPassword.js +1 -1
  74. package/dist/collection/{stories → components/sqm-portal-verify-email}/PortalVerifyEmail.stories.js +3 -3
  75. package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email.js +0 -25
  76. package/dist/collection/components/sqm-portal-verify-email/usePortalVerifyEmail.js +2 -2
  77. package/dist/collection/{stories → components/sqm-program-menu}/ProgramMenu.stories.js +2 -2
  78. package/dist/collection/{stories → components/sqm-referral-iframe}/ReferralIframe.stories.js +2 -2
  79. package/dist/collection/{stories → components/sqm-referral-table}/ReferralTable.stories.js +2 -2
  80. package/dist/collection/{stories → components/sqm-referral-table}/ReferralTableCell.stories.js +1 -1
  81. package/dist/collection/{stories → components/sqm-referral-table}/ReferralTableRewardsCell.stories.js +1 -1
  82. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-column.js +1 -1
  83. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-date-column.js +1 -1
  84. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js +1 -1
  85. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-status-column.js +1 -1
  86. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-user-column.js +1 -1
  87. package/dist/collection/components/sqm-referral-table/useReferralTable.js +2 -2
  88. package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeList.stories.js +20 -0
  89. package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeListData.js +228 -0
  90. package/dist/collection/components/sqm-reward-exchange-list/SVGs.js +24 -0
  91. package/dist/collection/components/sqm-reward-exchange-list/UseRewardExchangeList.stories.js +143 -0
  92. package/dist/collection/components/sqm-reward-exchange-list/assets/Reward-icon.png +0 -0
  93. package/dist/collection/components/sqm-reward-exchange-list/assets/placeholder.png +0 -0
  94. package/dist/collection/components/sqm-reward-exchange-list/progressBar.js +64 -0
  95. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +469 -0
  96. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +144 -0
  97. package/dist/collection/components/sqm-reward-exchange-list/useRewardExchangeList.js +186 -0
  98. package/dist/collection/components/sqm-rewards-table/UseRewardsTable.stories.js +53 -0
  99. package/dist/collection/components/sqm-rewards-table/sqm-rewards-table-column.js +120 -0
  100. package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +222 -0
  101. package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +190 -0
  102. package/dist/collection/{stories → components/sqm-router}/Router.stories.js +1 -1
  103. package/dist/collection/{stories → components/sqm-share-button}/ShareButton.stories.js +2 -2
  104. package/dist/collection/{stories → components/sqm-share-button}/UseShareButton.stories.js +2 -2
  105. package/dist/collection/components/sqm-share-button/sqm-share-button.js +1 -1
  106. package/dist/collection/{stories → components/sqm-share-link}/ShareLink.stories.js +2 -2
  107. package/dist/collection/{stories → components/sqm-share-link}/UseShareLink.stories.js +3 -3
  108. package/dist/collection/components/sqm-stencilbook/AutoColor.js +26 -0
  109. package/dist/collection/components/sqm-stencilbook/CucumberAddon.js +3 -1
  110. package/dist/collection/components/sqm-stencilbook/Matrix.js +66 -0
  111. package/dist/collection/components/sqm-stencilbook/Resizer.js +26 -0
  112. package/dist/collection/components/sqm-stencilbook/Themes.js +52 -0
  113. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +87 -38
  114. package/dist/collection/components/sqm-task-card/SVGs.js +14 -0
  115. package/dist/collection/components/sqm-task-card/TaskCard.stories.js +412 -0
  116. package/dist/collection/components/sqm-task-card/UseTaskCard.stories.js +41 -0
  117. package/dist/collection/components/sqm-task-card/progress-bar/SVGs.js +8 -0
  118. package/dist/collection/components/sqm-task-card/progress-bar/progress-bar-view.js +370 -0
  119. package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +240 -0
  120. package/dist/collection/components/sqm-task-card/sqm-task-card.js +444 -0
  121. package/dist/collection/{stories → components/sqm-user-name}/UserName.stories.js +3 -3
  122. package/dist/collection/global/styles.js +281 -69
  123. package/dist/collection/global/styles.ts +281 -69
  124. package/dist/collection/stories/NewPortal.stories.js +15 -15
  125. package/dist/collection/tables/GenericTableView.js +51 -0
  126. package/dist/collection/tables/TableSlots.js +22 -0
  127. package/dist/collection/{components/sqm-referral-table → tables}/re-render.js +0 -0
  128. package/dist/collection/{components/sqm-referral-table → tables}/sqm-table-cell.js +0 -0
  129. package/dist/collection/{components/sqm-referral-table → tables}/sqm-table-row.js +0 -0
  130. package/dist/collection/{components/sqm-referral-table → tables}/useChildElements.js +0 -0
  131. package/dist/esm/{ShadowViewAddon-5f66de48.js → ShadowViewAddon-558fabb7.js} +1 -1
  132. package/dist/esm/{global-0fcfbedf.js → global-e0e25c22.js} +282 -70
  133. package/dist/esm/{index.module-1e92a7a3.js → index.module-eb50a8d2.js} +2 -2
  134. package/dist/esm/loader.js +3 -3
  135. package/dist/esm/mint-components.js +3 -3
  136. package/dist/esm/{re-render-b8468637.js → re-render-6d5b856e.js} +1 -1
  137. package/dist/esm/sqm-asset-card.entry.js +1 -1
  138. package/dist/esm/sqm-big-stat.entry.js +2 -2
  139. package/dist/esm/{sqm-divided-layout_26.entry.js → sqm-divided-layout_30.entry.js} +6659 -536
  140. package/dist/esm/sqm-graphql-client-provider.entry.js +1 -1
  141. package/dist/esm/{sqm-leaderboard-rank-view-fd7d7f42.js → sqm-leaderboard-rank-view-cd1e8962.js} +2 -2
  142. package/dist/esm/sqm-leaderboard-rank.entry.js +3 -3
  143. package/dist/esm/sqm-leaderboard.entry.js +2 -2
  144. package/dist/esm/sqm-name-fields.entry.js +1 -1
  145. package/dist/esm/{sqm-navigation-sidebar-item-view-a48bca9b.js → sqm-navigation-sidebar-item-view-2d8c368c.js} +1 -1
  146. package/dist/esm/sqm-navigation-sidebar-item.entry.js +2 -2
  147. package/dist/esm/sqm-popup-container.entry.js +1 -1
  148. package/dist/esm/{sqm-portal-email-verification-view-6cc56c87.js → sqm-portal-email-verification-view-2af31979.js} +1 -1
  149. package/dist/esm/sqm-portal-email-verification.entry.js +4 -9
  150. package/dist/esm/{sqm-portal-footer-view-8a1128d5.js → sqm-portal-footer-view-60cd9ae5.js} +1 -1
  151. package/dist/esm/sqm-portal-footer.entry.js +3 -3
  152. package/dist/esm/sqm-portal-forgot-password.entry.js +5 -15
  153. package/dist/esm/sqm-portal-logout.entry.js +1 -1
  154. package/dist/esm/{sqm-portal-profile-view-4acf74a5.js → sqm-portal-profile-view-f1deea0f.js} +1 -1
  155. package/dist/esm/sqm-portal-profile.entry.js +3 -3
  156. package/dist/esm/sqm-portal-protected-route.entry.js +1 -1
  157. package/dist/esm/sqm-portal-reset-password.entry.js +2 -6
  158. package/dist/esm/sqm-portal-verify-email.entry.js +3 -7
  159. package/dist/esm/sqm-referral-table-column.entry.js +2 -2
  160. package/dist/esm/sqm-referral-table-date-column.entry.js +2 -2
  161. package/dist/esm/sqm-referral-table-rewards-column.entry.js +2 -2
  162. package/dist/esm/sqm-referral-table-status-column.entry.js +2 -2
  163. package/dist/esm/sqm-referral-table-user-column.entry.js +2 -2
  164. package/dist/esm/sqm-share-code.entry.js +1 -1
  165. package/dist/esm/{useDemoBigStat-8865b9fa.js → useDemoBigStat-d227b2f9.js} +117 -21
  166. package/dist/esm-es5/{ShadowViewAddon-5f66de48.js → ShadowViewAddon-558fabb7.js} +1 -1
  167. package/dist/esm-es5/{global-0fcfbedf.js → global-e0e25c22.js} +2 -2
  168. package/dist/esm-es5/{index.module-1e92a7a3.js → index.module-eb50a8d2.js} +1 -1
  169. package/dist/esm-es5/loader.js +1 -1
  170. package/dist/esm-es5/mint-components.js +1 -1
  171. package/dist/esm-es5/{re-render-b8468637.js → re-render-6d5b856e.js} +1 -1
  172. package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
  173. package/dist/esm-es5/sqm-big-stat.entry.js +1 -1
  174. package/dist/esm-es5/sqm-divided-layout_30.entry.js +58 -0
  175. package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
  176. package/dist/esm-es5/{sqm-leaderboard-rank-view-fd7d7f42.js → sqm-leaderboard-rank-view-cd1e8962.js} +1 -1
  177. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  178. package/dist/esm-es5/sqm-leaderboard.entry.js +1 -1
  179. package/dist/esm-es5/sqm-name-fields.entry.js +1 -1
  180. package/dist/esm-es5/{sqm-navigation-sidebar-item-view-a48bca9b.js → sqm-navigation-sidebar-item-view-2d8c368c.js} +1 -1
  181. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  182. package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
  183. package/dist/esm-es5/{sqm-portal-email-verification-view-6cc56c87.js → sqm-portal-email-verification-view-2af31979.js} +1 -1
  184. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  185. package/dist/esm-es5/{sqm-portal-footer-view-8a1128d5.js → sqm-portal-footer-view-60cd9ae5.js} +1 -1
  186. package/dist/esm-es5/sqm-portal-footer.entry.js +1 -1
  187. package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
  188. package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
  189. package/dist/esm-es5/{sqm-portal-profile-view-4acf74a5.js → sqm-portal-profile-view-f1deea0f.js} +1 -1
  190. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  191. package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
  192. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  193. package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
  194. package/dist/esm-es5/sqm-referral-table-column.entry.js +1 -1
  195. package/dist/esm-es5/sqm-referral-table-date-column.entry.js +1 -1
  196. package/dist/esm-es5/sqm-referral-table-rewards-column.entry.js +1 -1
  197. package/dist/esm-es5/sqm-referral-table-status-column.entry.js +1 -1
  198. package/dist/esm-es5/sqm-referral-table-user-column.entry.js +1 -1
  199. package/dist/esm-es5/sqm-share-code.entry.js +1 -1
  200. package/dist/esm-es5/useDemoBigStat-d227b2f9.js +1 -0
  201. package/dist/mint-components/assets/Reward-icon.png +0 -0
  202. package/dist/mint-components/assets/placeholder.png +0 -0
  203. package/dist/mint-components/global/styles.ts +281 -69
  204. package/dist/mint-components/mint-components.css +1 -0
  205. package/dist/mint-components/mint-components.esm.js +1 -1
  206. package/dist/mint-components/mint-components.js +1 -1
  207. package/dist/mint-components/{p-d3171b36.system.entry.js → p-0029a386.system.entry.js} +1 -1
  208. package/dist/mint-components/{p-3452bdae.system.js → p-02dc36a4.system.js} +1 -1
  209. package/dist/mint-components/{p-de3311bf.entry.js → p-03a6becf.entry.js} +1 -1
  210. package/dist/mint-components/{p-3e3dad7a.system.js → p-03e93c82.system.js} +1 -1
  211. package/dist/mint-components/p-0d8b2757.system.entry.js +1 -0
  212. package/dist/mint-components/{p-18aa175f.system.js → p-0e8ae7e3.system.js} +2 -2
  213. package/dist/mint-components/{p-965e34ab.entry.js → p-1705e549.entry.js} +1 -1
  214. package/dist/mint-components/{p-51cfdd14.js → p-1f95b411.js} +1 -1
  215. package/dist/mint-components/{p-9ff0425e.system.entry.js → p-2027edc0.system.entry.js} +1 -1
  216. package/dist/mint-components/p-20c95798.entry.js +1 -0
  217. package/dist/mint-components/{p-e50839df.entry.js → p-21b4044a.entry.js} +1 -1
  218. package/dist/mint-components/{p-d513229d.js → p-221bd06e.js} +1 -1
  219. package/dist/mint-components/p-2338162a.entry.js +1 -0
  220. package/dist/mint-components/{p-9ff118a2.system.entry.js → p-24fa8920.system.entry.js} +1 -1
  221. package/dist/mint-components/{p-64759dda.system.js → p-2e63dcfd.system.js} +1 -1
  222. package/dist/mint-components/{p-743882c6.entry.js → p-3143cce4.entry.js} +1 -1
  223. package/dist/mint-components/{p-4b6c316d.entry.js → p-34112d74.entry.js} +1 -1
  224. package/dist/mint-components/p-40e83a85.system.js +1 -0
  225. package/dist/mint-components/{p-337a3d6b.system.entry.js → p-46493de5.system.entry.js} +1 -1
  226. package/dist/mint-components/p-4658d225.system.entry.js +1 -0
  227. package/dist/mint-components/{p-7d996b49.js → p-4b719313.js} +1 -1
  228. package/dist/mint-components/{p-6cb81b77.entry.js → p-53e51b3f.entry.js} +1 -1
  229. package/dist/mint-components/p-58ffe936.system.entry.js +58 -0
  230. package/dist/mint-components/p-5939212e.system.entry.js +1 -0
  231. package/dist/mint-components/{p-af2d886e.js → p-5d925bb6.js} +1 -1
  232. package/dist/mint-components/{p-27e23808.system.js → p-5e4e7f01.system.js} +1 -1
  233. package/dist/mint-components/{p-af1f8bd3.js → p-61acba7a.js} +1 -1
  234. package/dist/mint-components/{p-13605359.entry.js → p-65c79eec.entry.js} +1 -1
  235. package/dist/mint-components/{p-d55abc13.entry.js → p-759d3800.entry.js} +2 -2
  236. package/dist/mint-components/p-7cdbe82a.entry.js +1 -0
  237. package/dist/mint-components/{p-9a3a0db5.system.entry.js → p-7ff22998.system.entry.js} +1 -1
  238. package/dist/mint-components/p-85efd952.entry.js +1 -0
  239. package/dist/mint-components/p-86255b95.entry.js +1 -0
  240. package/dist/mint-components/p-88d9bd59.entry.js +393 -0
  241. package/dist/mint-components/{p-b3880833.system.entry.js → p-88fdfd94.system.entry.js} +1 -1
  242. package/dist/mint-components/{p-d0cad85c.js → p-8fd8682c.js} +2 -2
  243. package/dist/mint-components/{p-70ca623f.system.entry.js → p-97b946c2.system.entry.js} +1 -1
  244. package/dist/mint-components/{p-1e47e0a6.entry.js → p-9be0cb19.entry.js} +1 -1
  245. package/dist/mint-components/{p-6156a7ac.system.entry.js → p-a0a26fc5.system.entry.js} +1 -1
  246. package/dist/mint-components/{p-8bfebd45.system.entry.js → p-a355eeaf.system.entry.js} +1 -1
  247. package/dist/mint-components/{p-036c5a7e.system.entry.js → p-a8246a50.system.entry.js} +1 -1
  248. package/dist/mint-components/{p-c47b83c3.entry.js → p-a831de18.entry.js} +1 -1
  249. package/dist/mint-components/{p-6ad110d3.js → p-a833dbb3.js} +1 -1
  250. package/dist/mint-components/p-a88a08bb.system.js +1 -0
  251. package/dist/mint-components/p-a9a6f205.entry.js +1 -0
  252. package/dist/mint-components/{p-624c5352.system.entry.js → p-aee83885.system.entry.js} +1 -1
  253. package/dist/mint-components/p-b86cbac3.system.entry.js +1 -0
  254. package/dist/mint-components/{p-602180a2.system.js → p-be3a0cc4.system.js} +1 -1
  255. package/dist/mint-components/{p-05a2640d.entry.js → p-c0f9d0b1.entry.js} +1 -1
  256. package/dist/mint-components/p-c65cfc9d.system.js +1 -0
  257. package/dist/mint-components/{p-991bd182.system.entry.js → p-ca40dbaa.system.entry.js} +1 -1
  258. package/dist/mint-components/p-cc189fc4.system.js +1 -0
  259. package/dist/mint-components/{p-cffc23c0.entry.js → p-cc652a53.entry.js} +1 -1
  260. package/dist/mint-components/p-d19d6012.js +235 -0
  261. package/dist/mint-components/p-d3c7dbfc.entry.js +1 -0
  262. package/dist/mint-components/{p-3772bae2.system.entry.js → p-d4a1bce9.system.entry.js} +1 -1
  263. package/dist/mint-components/p-d68f6b64.system.entry.js +1 -0
  264. package/dist/mint-components/p-e36ff7fa.entry.js +1 -0
  265. package/dist/mint-components/{p-05a86906.entry.js → p-e608f340.entry.js} +1 -1
  266. package/dist/mint-components/{p-4068e47c.system.entry.js → p-e7cb4274.system.entry.js} +1 -1
  267. package/dist/mint-components/p-ef7f70f2.system.entry.js +1 -0
  268. package/dist/mint-components/{p-f16bae7a.system.entry.js → p-f20d9204.system.entry.js} +1 -1
  269. package/dist/mint-components/{p-c84a5b33.js → p-f7f87338.js} +1 -1
  270. package/dist/mint-components/{p-55210498.system.js → p-f9ada3d7.system.js} +1 -1
  271. package/dist/mint-components/{p-eddcf481.js → p-faf66fdb.js} +1 -1
  272. package/dist/mint-components/{p-6305419f.entry.js → p-fcd03042.entry.js} +1 -1
  273. package/dist/mint-components/{p-09afaaac.system.entry.js → p-fd281e6b.system.entry.js} +1 -1
  274. package/dist/types/{stories → components/sqm-asset-card}/AssetCard.stories.d.ts +0 -0
  275. package/dist/types/{stories → components/sqm-big-stat}/BigStat.stories.d.ts +0 -0
  276. package/dist/types/{stories → components/sqm-big-stat}/UseBigStat.stories.d.ts +6 -0
  277. package/dist/types/components/sqm-big-stat/sqm-big-stat-view.d.ts +1 -0
  278. package/dist/types/components/sqm-big-stat/useBigStat.d.ts +4 -1
  279. package/dist/types/{stories → components/sqm-divided-layout}/DividedLayout.stories.d.ts +0 -0
  280. package/dist/types/{stories → components/sqm-edit-profile}/EditProfileForm.stories.d.ts +0 -0
  281. package/dist/types/{stories → components/sqm-edit-profile}/UseEditProfile.stories.d.ts +0 -0
  282. package/dist/types/{stories → components/sqm-form-message}/FormMessage.stories.d.ts +0 -0
  283. package/dist/types/{stories → components/sqm-hero}/Hero.stories.d.ts +0 -0
  284. package/dist/types/{stories → components/sqm-leaderboard}/Leaderboard.stories.d.ts +0 -0
  285. package/dist/types/{stories → components/sqm-leaderboard}/UseLeaderboard.stories.d.ts +0 -0
  286. package/dist/types/{stories → components/sqm-leaderboard-rank}/LeaderboardRank.stories.d.ts +0 -0
  287. package/dist/types/{stories → components/sqm-name-fields}/NameFields.stories.d.ts +0 -0
  288. package/dist/types/{stories → components/sqm-navigation-sidebar}/NavigationSidebar.stories.d.ts +0 -0
  289. package/dist/types/{stories → components/sqm-navigation-sidebar-item}/SidebarItem.stories.d.ts +0 -0
  290. package/dist/types/{stories → components/sqm-password-field}/PasswordField.stories.d.ts +0 -0
  291. package/dist/types/{stories → components/sqm-portal-change-password}/ChangePassword.stories.d.ts +0 -0
  292. package/dist/types/{stories → components/sqm-portal-email-verification}/PortalEmailVerification.stories.d.ts +0 -0
  293. package/dist/types/components/sqm-portal-email-verification/sqm-portal-email-verification.d.ts +0 -4
  294. package/dist/types/{stories → components/sqm-portal-footer}/PortalFooter.stories.d.ts +0 -0
  295. package/dist/types/{stories → components/sqm-portal-forgot-password}/PortalForgotPassword.stories.d.ts +0 -0
  296. package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.d.ts +0 -1
  297. package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password.d.ts +0 -8
  298. package/dist/types/components/sqm-portal-forgot-password/usePortalForgotPassword.d.ts +1 -3
  299. package/dist/types/{stories → components/sqm-portal-frame}/PortalFrame.stories.d.ts +0 -0
  300. package/dist/types/{stories → components/sqm-portal-login}/PortalLogin.stories.d.ts +0 -0
  301. package/dist/types/components/sqm-portal-login/sqm-portal-login-view.d.ts +0 -2
  302. package/dist/types/components/sqm-portal-login/sqm-portal-login.d.ts +0 -8
  303. package/dist/types/components/sqm-portal-login/usePortalLogin.d.ts +3 -3
  304. package/dist/types/{stories → components/sqm-portal-profile}/PortalProfile.stories.d.ts +0 -0
  305. package/dist/types/{stories → components/sqm-portal-register}/PortalRegister.stories.d.ts +0 -0
  306. package/dist/types/components/sqm-portal-register/sqm-portal-register-view.d.ts +0 -1
  307. package/dist/types/components/sqm-portal-register/sqm-portal-register.d.ts +0 -8
  308. package/dist/types/components/sqm-portal-register/usePortalRegister.d.ts +0 -1
  309. package/dist/types/{stories → components/sqm-portal-reset-password}/PortalResetPassword.stories.d.ts +0 -0
  310. package/dist/types/components/sqm-portal-reset-password/sqm-portal-reset-password.d.ts +0 -4
  311. package/dist/types/{stories → components/sqm-portal-verify-email}/PortalVerifyEmail.stories.d.ts +0 -0
  312. package/dist/types/components/sqm-portal-verify-email/sqm-portal-verify-email.d.ts +0 -4
  313. package/dist/types/components/sqm-portal-verify-email/usePortalVerifyEmail.d.ts +1 -2
  314. package/dist/types/{stories → components/sqm-program-menu}/ProgramMenu.stories.d.ts +0 -0
  315. package/dist/types/{stories → components/sqm-referral-iframe}/ReferralIframe.stories.d.ts +0 -0
  316. package/dist/types/{stories → components/sqm-referral-table}/ReferralTable.stories.d.ts +0 -0
  317. package/dist/types/{stories → components/sqm-referral-table}/ReferralTableCell.stories.d.ts +0 -0
  318. package/dist/types/{stories → components/sqm-referral-table}/ReferralTableRewardsCell.stories.d.ts +0 -0
  319. package/dist/types/components/sqm-reward-exchange-list/RewardExchangeList.stories.d.ts +13 -0
  320. package/dist/types/components/sqm-reward-exchange-list/RewardExchangeListData.d.ts +234 -0
  321. package/dist/types/components/sqm-reward-exchange-list/SVGs.d.ts +4 -0
  322. package/dist/types/components/sqm-reward-exchange-list/UseRewardExchangeList.stories.d.ts +28 -0
  323. package/dist/types/components/sqm-reward-exchange-list/progressBar.d.ts +4 -0
  324. package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.d.ts +25 -0
  325. package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list.d.ts +24 -0
  326. package/dist/types/components/sqm-reward-exchange-list/useRewardExchangeList.d.ts +44 -0
  327. package/dist/types/components/sqm-rewards-table/UseRewardsTable.stories.d.ts +16 -0
  328. package/dist/types/components/sqm-rewards-table/sqm-rewards-table-column.d.ts +20 -0
  329. package/dist/types/components/sqm-rewards-table/sqm-rewards-table.d.ts +32 -0
  330. package/dist/types/components/sqm-rewards-table/useRewardsTable.d.ts +38 -0
  331. package/dist/types/{stories → components/sqm-router}/Router.stories.d.ts +0 -0
  332. package/dist/types/{stories → components/sqm-share-button}/ShareButton.stories.d.ts +0 -0
  333. package/dist/types/{stories → components/sqm-share-button}/UseShareButton.stories.d.ts +0 -0
  334. package/dist/types/{stories → components/sqm-share-link}/ShareLink.stories.d.ts +0 -0
  335. package/dist/types/{stories → components/sqm-share-link}/UseShareLink.stories.d.ts +0 -0
  336. package/dist/types/components/sqm-stencilbook/AutoColor.d.ts +1 -0
  337. package/dist/types/components/sqm-stencilbook/Matrix.d.ts +11 -0
  338. package/dist/types/components/sqm-stencilbook/Resizer.d.ts +3 -0
  339. package/dist/types/components/sqm-stencilbook/Themes.d.ts +17 -0
  340. package/dist/types/components/sqm-task-card/SVGs.d.ts +3 -0
  341. package/dist/types/components/sqm-task-card/TaskCard.stories.d.ts +19 -0
  342. package/dist/types/components/sqm-task-card/UseTaskCard.stories.d.ts +10 -0
  343. package/dist/types/components/sqm-task-card/progress-bar/SVGs.d.ts +1 -0
  344. package/dist/types/components/sqm-task-card/progress-bar/progress-bar-view.d.ts +12 -0
  345. package/dist/types/components/sqm-task-card/sqm-task-card-view.d.ts +18 -0
  346. package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +80 -0
  347. package/dist/types/components/sqm-user-name/UserName.stories.d.ts +6 -0
  348. package/dist/types/components.d.ts +297 -72
  349. package/dist/types/global/styles.d.ts +1 -1
  350. package/dist/types/tables/GenericTableView.d.ts +29 -0
  351. package/dist/types/tables/TableSlots.d.ts +8 -0
  352. package/dist/types/{components/sqm-referral-table → tables}/re-render.d.ts +0 -0
  353. package/dist/types/{components/sqm-referral-table → tables}/sqm-table-cell.d.ts +0 -0
  354. package/dist/types/{components/sqm-referral-table → tables}/sqm-table-row.d.ts +0 -0
  355. package/dist/types/{components/sqm-referral-table → tables}/useChildElements.d.ts +0 -0
  356. package/grapesjs/grapesjs.js +1 -1
  357. package/package.json +4 -2
  358. package/dist/esm-es5/sqm-divided-layout_26.entry.js +0 -1
  359. package/dist/esm-es5/useDemoBigStat-8865b9fa.js +0 -1
  360. package/dist/mint-components/p-06d79243.system.entry.js +0 -1
  361. package/dist/mint-components/p-10a98629.entry.js +0 -1
  362. package/dist/mint-components/p-112d42ab.system.entry.js +0 -1
  363. package/dist/mint-components/p-192539d2.entry.js +0 -1
  364. package/dist/mint-components/p-2f333f89.system.entry.js +0 -1
  365. package/dist/mint-components/p-32573409.js +0 -227
  366. package/dist/mint-components/p-528aecd1.entry.js +0 -1
  367. package/dist/mint-components/p-54707082.system.js +0 -1
  368. package/dist/mint-components/p-606506d6.system.entry.js +0 -1
  369. package/dist/mint-components/p-6815e7ba.entry.js +0 -1
  370. package/dist/mint-components/p-756a5e6f.system.js +0 -1
  371. package/dist/mint-components/p-768b9014.system.entry.js +0 -1
  372. package/dist/mint-components/p-7cf335a0.entry.js +0 -1
  373. package/dist/mint-components/p-86b66e5c.entry.js +0 -1
  374. package/dist/mint-components/p-942723ad.entry.js +0 -1
  375. package/dist/mint-components/p-9f2a08a9.entry.js +0 -230
  376. package/dist/mint-components/p-a359f652.system.js +0 -1
  377. package/dist/mint-components/p-a646db48.system.entry.js +0 -1
  378. package/dist/mint-components/p-b3cddcca.entry.js +0 -1
  379. package/dist/mint-components/p-ba09d673.system.entry.js +0 -1
  380. package/dist/mint-components/p-d1cea1b1.system.js +0 -1
  381. package/dist/types/stories/UserName.stories.d.ts +0 -6
@@ -2,7 +2,7 @@
2
2
 
3
3
  const index = require('./index-b0129cd6.js');
4
4
  const _extends = require('./extends-0302d27d.js');
5
- const index_module = require('./index.module-2925fe3b.js');
5
+ const index_module = require('./index.module-c0bf9df0.js');
6
6
  const jssPresetDefault_esm = require('./jss-preset-default.esm-6304d24f.js');
7
7
  const cjs = require('./cjs-1066ec21.js');
8
8
 
@@ -367,7 +367,13 @@ _, status) => {
367
367
  }
368
368
  }
369
369
  }
370
- `, { queryFilter }, (res) => { var _a, _b, _c, _d; return (_d = (_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.referrals) === null || _c === void 0 ? void 0 : _c.totalCount) === null || _d === void 0 ? void 0 : _d.toString(); });
370
+ `, { queryFilter }, (res) => {
371
+ var _a, _b, _c, _d, _e, _f, _g;
372
+ return ({
373
+ value: (_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.referrals) === null || _c === void 0 ? void 0 : _c.totalCount,
374
+ statvalue: (_g = (_f = (_e = (_d = res.data) === null || _d === void 0 ? void 0 : _d.viewer) === null || _e === void 0 ? void 0 : _e.referrals) === null || _f === void 0 ? void 0 : _f.totalCount) === null || _g === void 0 ? void 0 : _g.toString(),
375
+ });
376
+ });
371
377
  };
372
378
  const programGoalsQuery = (programId, locale, metricType, goalId) => {
373
379
  // Confirm this behaviour
@@ -387,9 +393,33 @@ const programGoalsQuery = (programId, locale, metricType, goalId) => {
387
393
  }
388
394
  }
389
395
  `, { programId, metricType, goalId, locale }, (res) => {
390
- var _a, _b, _c, _d, _e;
396
+ var _a, _b, _c, _d, _e, _f;
391
397
  const goal = (_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.programGoals) === null || _c === void 0 ? void 0 : _c.filter((goal) => goal.goalId === goalId && goal.programId === programId);
392
- return ((_e = (_d = goal === null || goal === void 0 ? void 0 : goal[0]) === null || _d === void 0 ? void 0 : _d[metricType]) === null || _e === void 0 ? void 0 : _e.toString()) || 0;
398
+ return {
399
+ value: ((_d = goal === null || goal === void 0 ? void 0 : goal[0]) === null || _d === void 0 ? void 0 : _d[metricType]) || 0,
400
+ statvalue: ((_f = (_e = goal === null || goal === void 0 ? void 0 : goal[0]) === null || _e === void 0 ? void 0 : _e[metricType]) === null || _f === void 0 ? void 0 : _f.toString()) || 0,
401
+ };
402
+ });
403
+ };
404
+ const customFieldsQuery = (programId, locale, fieldName, goalId) => {
405
+ // Confirm this behaviour
406
+ if (programId === "classic")
407
+ return null;
408
+ return debugQuery(index_module.dist.gql `
409
+ query {
410
+ viewer {
411
+ ... on User {
412
+ customFields
413
+ }
414
+ }
415
+ }
416
+ `, { programId, fieldName, goalId, locale }, (res) => {
417
+ var _a, _b, _c;
418
+ const customField = (_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.customFields) === null || _c === void 0 ? void 0 : _c[fieldName];
419
+ return {
420
+ value: customField || 0,
421
+ statvalue: (customField === null || customField === void 0 ? void 0 : customField.toString()) || "0",
422
+ };
393
423
  });
394
424
  };
395
425
  const referralsMonthQuery = (programId) => {
@@ -410,7 +440,13 @@ const referralsMonthQuery = (programId) => {
410
440
  }
411
441
  }
412
442
  }
413
- `, { filter }, (res) => { var _a, _b, _c, _d; return (_d = (_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.referrals) === null || _c === void 0 ? void 0 : _c.totalCount) === null || _d === void 0 ? void 0 : _d.toString(); });
443
+ `, { filter }, (res) => {
444
+ var _a, _b, _c, _d, _e, _f, _g;
445
+ return ({
446
+ value: ((_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.referrals) === null || _c === void 0 ? void 0 : _c.totalCount) || 0,
447
+ statvalue: (_g = (_f = (_e = (_d = res.data) === null || _d === void 0 ? void 0 : _d.viewer) === null || _e === void 0 ? void 0 : _e.referrals) === null || _f === void 0 ? void 0 : _f.totalCount) === null || _g === void 0 ? void 0 : _g.toString(),
448
+ });
449
+ });
414
450
  };
415
451
  const referralsWeekQuery = (programId) => {
416
452
  const programFilter = programId === "classic"
@@ -430,7 +466,13 @@ const referralsWeekQuery = (programId) => {
430
466
  }
431
467
  }
432
468
  }
433
- `, { filter }, (res) => { var _a, _b, _c, _d; return (_d = (_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.referrals) === null || _c === void 0 ? void 0 : _c.totalCount) === null || _d === void 0 ? void 0 : _d.toString(); });
469
+ `, { filter }, (res) => {
470
+ var _a, _b, _c, _d, _e, _f, _g;
471
+ return ({
472
+ value: ((_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.referrals) === null || _c === void 0 ? void 0 : _c.totalCount) || 0,
473
+ statvalue: (_g = (_f = (_e = (_d = res.data) === null || _d === void 0 ? void 0 : _d.viewer) === null || _e === void 0 ? void 0 : _e.referrals) === null || _f === void 0 ? void 0 : _f.totalCount) === null || _g === void 0 ? void 0 : _g.toString(),
474
+ });
475
+ });
434
476
  };
435
477
  const rewardsCountQuery = (programId,
436
478
  // locale
@@ -447,7 +489,13 @@ _, global = "") => {
447
489
  }
448
490
  `, {
449
491
  programId: !global && programId !== "classic" ? programId : null,
450
- }, (res) => { var _a, _b, _c, _d; return (_d = (_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewards) === null || _c === void 0 ? void 0 : _c.totalCount) === null || _d === void 0 ? void 0 : _d.toString(); });
492
+ }, (res) => {
493
+ var _a, _b, _c, _d, _e, _f, _g;
494
+ return ({
495
+ value: ((_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewards) === null || _c === void 0 ? void 0 : _c.totalCount) || 0,
496
+ statvalue: (_g = (_f = (_e = (_d = res.data) === null || _d === void 0 ? void 0 : _d.viewer) === null || _e === void 0 ? void 0 : _e.rewards) === null || _f === void 0 ? void 0 : _f.totalCount) === null || _g === void 0 ? void 0 : _g.toString(),
497
+ });
498
+ });
451
499
  };
452
500
  const rewardsCountFilteredQuery = (programId,
453
501
  // locale
@@ -480,7 +528,13 @@ _, type, unit, status, global = "") => {
480
528
  unit,
481
529
  type,
482
530
  statusFilter,
483
- }, (res) => { var _a, _b, _c, _d; return (_d = (_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewards) === null || _c === void 0 ? void 0 : _c.totalCount) === null || _d === void 0 ? void 0 : _d.toString(); });
531
+ }, (res) => {
532
+ var _a, _b, _c, _d, _e, _f, _g;
533
+ return ({
534
+ value: ((_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewards) === null || _c === void 0 ? void 0 : _c.totalCount) || 0,
535
+ statvalue: (_g = (_f = (_e = (_d = res.data) === null || _d === void 0 ? void 0 : _d.viewer) === null || _e === void 0 ? void 0 : _e.rewards) === null || _f === void 0 ? void 0 : _f.totalCount) === null || _g === void 0 ? void 0 : _g.toString(),
536
+ });
537
+ });
484
538
  };
485
539
  const integrationRewardsCountFilteredQuery = (programId,
486
540
  // locale
@@ -505,7 +559,13 @@ _, status, global = "") => {
505
559
  `, {
506
560
  programId: !global && programId !== "classic" ? programId : null,
507
561
  statusFilter,
508
- }, (res) => { var _a, _b, _c, _d; return (_d = (_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewards) === null || _c === void 0 ? void 0 : _c.totalCount) === null || _d === void 0 ? void 0 : _d.toString(); });
562
+ }, (res) => {
563
+ var _a, _b, _c, _d, _e, _f, _g;
564
+ return ({
565
+ value: ((_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewards) === null || _c === void 0 ? void 0 : _c.totalCount) || 0,
566
+ statvalue: (_g = (_f = (_e = (_d = res.data) === null || _d === void 0 ? void 0 : _d.viewer) === null || _e === void 0 ? void 0 : _e.rewards) === null || _f === void 0 ? void 0 : _f.totalCount) === null || _g === void 0 ? void 0 : _g.toString(),
567
+ });
568
+ });
509
569
  };
510
570
  const rewardsMonthQuery = (programId,
511
571
  // locale
@@ -527,7 +587,13 @@ _, global = "") => {
527
587
  }
528
588
  `, {
529
589
  programId: !global && programId !== "classic" ? programId : null,
530
- }, (res) => { var _a, _b, _c, _d; return (_d = (_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewards) === null || _c === void 0 ? void 0 : _c.totalCount) === null || _d === void 0 ? void 0 : _d.toString(); });
590
+ }, (res) => {
591
+ var _a, _b, _c, _d, _e, _f, _g;
592
+ return ({
593
+ value: ((_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewards) === null || _c === void 0 ? void 0 : _c.totalCount) || 0,
594
+ statvalue: (_g = (_f = (_e = (_d = res.data) === null || _d === void 0 ? void 0 : _d.viewer) === null || _e === void 0 ? void 0 : _e.rewards) === null || _f === void 0 ? void 0 : _f.totalCount) === null || _g === void 0 ? void 0 : _g.toString(),
595
+ });
596
+ });
531
597
  };
532
598
  const rewardsWeekQuery = (programId,
533
599
  // locale
@@ -549,7 +615,13 @@ _, global = "") => {
549
615
  }
550
616
  `, {
551
617
  programId: !global && programId !== "classic" ? programId : null,
552
- }, (res) => { var _a, _b, _c, _d; return (_d = (_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewards) === null || _c === void 0 ? void 0 : _c.totalCount) === null || _d === void 0 ? void 0 : _d.toString(); });
618
+ }, (res) => {
619
+ var _a, _b, _c, _d, _e, _f, _g;
620
+ return ({
621
+ value: ((_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewards) === null || _c === void 0 ? void 0 : _c.totalCount) || 0,
622
+ statvalue: (_g = (_f = (_e = (_d = res.data) === null || _d === void 0 ? void 0 : _d.viewer) === null || _e === void 0 ? void 0 : _e.rewards) === null || _f === void 0 ? void 0 : _f.totalCount) === null || _g === void 0 ? void 0 : _g.toString(),
623
+ });
624
+ });
553
625
  };
554
626
  const rewardsRedeemedQuery = (programId, locale, type, unit, global = "") => {
555
627
  return debugQuery(index_module.dist.gql `
@@ -584,10 +656,13 @@ const rewardsRedeemedQuery = (programId, locale, type, unit, global = "") => {
584
656
  unit,
585
657
  locale,
586
658
  }, (res) => {
587
- var _a, _b, _c, _d;
659
+ var _a, _b, _c, _d, _e;
588
660
  const arr = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewardBalanceDetails;
589
661
  const fallback = (_c = res.data) === null || _c === void 0 ? void 0 : _c.fallback;
590
- return ((_d = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _d === void 0 ? void 0 : _d.prettyRedeemedCredit) || fallback;
662
+ return {
663
+ value: ((_d = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _d === void 0 ? void 0 : _d.prettyRedeemedCredit) || 0,
664
+ statvalue: ((_e = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _e === void 0 ? void 0 : _e.prettyRedeemedCredit) || fallback,
665
+ };
591
666
  });
592
667
  };
593
668
  const rewardsAssignedQuery = (programId, locale, type, unit, global = "") => {
@@ -623,10 +698,13 @@ const rewardsAssignedQuery = (programId, locale, type, unit, global = "") => {
623
698
  unit,
624
699
  locale,
625
700
  }, (res) => {
626
- var _a, _b, _c, _d;
701
+ var _a, _b, _c, _d, _e;
627
702
  const arr = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewardBalanceDetails;
628
703
  const fallback = (_c = res.data) === null || _c === void 0 ? void 0 : _c.fallback;
629
- return ((_d = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _d === void 0 ? void 0 : _d.prettyAssignedCredit) || fallback;
704
+ return {
705
+ value: ((_d = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _d === void 0 ? void 0 : _d.prettyAssignedCredit) || 0,
706
+ statvalue: ((_e = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _e === void 0 ? void 0 : _e.prettyAssignedCredit) || fallback,
707
+ };
630
708
  });
631
709
  };
632
710
  const rewardsAvailableQuery = (programId, locale, type, unit, global = "") => {
@@ -662,10 +740,13 @@ const rewardsAvailableQuery = (programId, locale, type, unit, global = "") => {
662
740
  unit,
663
741
  locale,
664
742
  }, (res) => {
665
- var _a, _b, _c, _d;
743
+ var _a, _b, _c, _d, _e;
666
744
  const arr = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewardBalanceDetails;
667
745
  const fallback = (_c = res.data) === null || _c === void 0 ? void 0 : _c.fallback;
668
- return ((_d = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _d === void 0 ? void 0 : _d.prettyAvailableValue) || fallback;
746
+ return {
747
+ value: ((_d = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _d === void 0 ? void 0 : _d.prettyAvailableValue) || 0,
748
+ statvalue: ((_e = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _e === void 0 ? void 0 : _e.prettyAvailableValue) || fallback,
749
+ };
669
750
  });
670
751
  };
671
752
  const parseRewardValueFormat = {
@@ -708,10 +789,13 @@ const rewardsBalanceQuery = (programId, locale, type, unit, format = "prettyValu
708
789
  format: (_a = parseRewardValueFormat[format]) !== null && _a !== void 0 ? _a : "UNIT_FORMATTED",
709
790
  locale,
710
791
  }, (res) => {
711
- var _a, _b, _c, _d;
792
+ var _a, _b, _c, _d, _e;
712
793
  const arr = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewardBalanceDetails;
713
794
  const fallback = (_c = res.data) === null || _c === void 0 ? void 0 : _c.fallback;
714
- return ((_d = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _d === void 0 ? void 0 : _d.prettyAvailableValue) || fallback;
795
+ return {
796
+ value: ((_d = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _d === void 0 ? void 0 : _d.prettyAvailableValue) || 0,
797
+ statvalue: ((_e = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _e === void 0 ? void 0 : _e.prettyAvailableValue) || fallback,
798
+ };
715
799
  });
716
800
  };
717
801
  // functions are of the form (programId: string, ...args: string) => string
@@ -768,10 +852,15 @@ const queries = {
768
852
  label: "Program Goals",
769
853
  query: programGoalsQuery,
770
854
  },
855
+ customFields: {
856
+ label: "Custom Fields",
857
+ query: customFieldsQuery,
858
+ },
771
859
  };
772
860
  // this should be exposed in documentation somehow
773
861
  const StatPaths = [
774
862
  { name: "programGoals", route: "/(programGoals)/:metricType/:goalId" },
863
+ { name: "customFields", route: "/(customFields)/:customField" },
775
864
  { name: "referralsCount", route: "/(referralsCount)/:status?" },
776
865
  { name: "referralsMonth", route: "/(referralsMonth)" },
777
866
  { name: "referralsWeek", route: "/(referralsWeek)" },
@@ -805,6 +894,7 @@ const StatPaths = [
805
894
  ];
806
895
  const StatPatterns = StatPaths.map((pattern) => pathToRegexp(pattern.route));
807
896
  function useBigStat(props) {
897
+ var _a;
808
898
  const { statType, flexReverse, alignment } = props;
809
899
  const programId = index_module.M();
810
900
  const locale = index_module.R();
@@ -812,7 +902,7 @@ function useBigStat(props) {
812
902
  const re = _extends.useMemo(() => StatPatterns.find((re) => re.exec(statType)), [statType]);
813
903
  if (!(re === null || re === void 0 ? void 0 : re.exec(statType))) {
814
904
  return {
815
- props: { statvalue: "!!!", flexReverse, alignment },
905
+ props: { value: 0, statvalue: "!!!", flexReverse, alignment },
816
906
  label: "BAD PROP TYPE",
817
907
  };
818
908
  }
@@ -835,7 +925,12 @@ function useBigStat(props) {
835
925
  const stat = (userIdent === null || userIdent === void 0 ? void 0 : userIdent.jwt) && queries[queryName].query(programId, locale, ...queryArgs);
836
926
  debug("stat:", stat);
837
927
  return {
838
- props: { statvalue: stat !== null && stat !== void 0 ? stat : LOADING, flexReverse, alignment },
928
+ props: {
929
+ value: stat === null || stat === void 0 ? void 0 : stat.value,
930
+ statvalue: (_a = stat === null || stat === void 0 ? void 0 : stat.statvalue) !== null && _a !== void 0 ? _a : LOADING,
931
+ flexReverse,
932
+ alignment,
933
+ },
839
934
  label,
840
935
  };
841
936
  }
@@ -846,6 +941,7 @@ function useDemoBigStat(props) {
846
941
  if (!(re === null || re === void 0 ? void 0 : re.exec(statType))) {
847
942
  return {
848
943
  props: {
944
+ value: 0,
849
945
  statvalue: "!!!",
850
946
  flexReverse: false,
851
947
  alignment: "center",
@@ -2,6 +2,8 @@
2
2
  "entries": [
3
3
  "./components/sqm-password-field/sqm-password-field.js",
4
4
  "./components/sqm-referral-table/sqm-referral-table.js",
5
+ "./components/sqm-reward-exchange-list/sqm-reward-exchange-list.js",
6
+ "./components/sqm-rewards-table/sqm-rewards-table.js",
5
7
  "./components/sqm-asset-card/sqm-asset-card.js",
6
8
  "./components/sqm-big-stat/sqm-big-stat.js",
7
9
  "./components/sqm-divided-layout/sqm-divided-layout.js",
@@ -32,8 +34,6 @@
32
34
  "./components/sqm-portal-verify-email/sqm-portal-verify-email.js",
33
35
  "./components/sqm-program-menu/sqm-program-menu.js",
34
36
  "./components/sqm-referral-iframe/sqm-referral-iframe.js",
35
- "./components/sqm-referral-table/sqm-table-cell.js",
36
- "./components/sqm-referral-table/sqm-table-row.js",
37
37
  "./components/sqm-referral-table/cells/sqm-referral-table-cell.js",
38
38
  "./components/sqm-referral-table/cells/sqm-referral-table-date-cell.js",
39
39
  "./components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js",
@@ -44,6 +44,7 @@
44
44
  "./components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js",
45
45
  "./components/sqm-referral-table/columns/sqm-referral-table-status-column.js",
46
46
  "./components/sqm-referral-table/columns/sqm-referral-table-user-column.js",
47
+ "./components/sqm-rewards-table/sqm-rewards-table-column.js",
47
48
  "./components/sqm-route/sqm-route.js",
48
49
  "./components/sqm-router/sqm-router.js",
49
50
  "./components/sqm-share-button/sqm-share-button.js",
@@ -51,10 +52,13 @@
51
52
  "./components/sqm-share-link/sqm-share-link.js",
52
53
  "./components/sqm-stat-container/sqm-stat-container.js",
53
54
  "./components/sqm-stencilbook/sqm-stencilbook.js",
55
+ "./components/sqm-task-card/sqm-task-card.js",
54
56
  "./components/sqm-text/sqm-text.js",
55
57
  "./components/sqm-text-span/sqm-text-span.js",
56
58
  "./components/sqm-titled-section/sqm-titled-section.js",
57
- "./components/sqm-user-name/sqm-user-name.js"
59
+ "./components/sqm-user-name/sqm-user-name.js",
60
+ "./tables/sqm-table-cell.js",
61
+ "./tables/sqm-table-row.js"
58
62
  ],
59
63
  "compiler": {
60
64
  "name": "@stencil/core",
@@ -1,7 +1,7 @@
1
1
  import { h } from "@stencil/core";
2
- import { AssetCardView } from "../components/sqm-asset-card/sqm-asset-card-view";
2
+ import { AssetCardView } from "./sqm-asset-card-view";
3
3
  export default {
4
- title: "Asset Card",
4
+ title: "Components/Asset Card",
5
5
  };
6
6
  export const Default = () => {
7
7
  const props = {
@@ -1,14 +1,15 @@
1
1
  import { h } from "@stencil/core";
2
- import { BigStatView } from "../components/sqm-big-stat/sqm-big-stat-view";
2
+ import { BigStatView } from "./sqm-big-stat-view";
3
3
  export default {
4
- title: "Big Stat",
4
+ title: "Components/Big Stat",
5
5
  };
6
6
  export const Default = () => {
7
- const props = { statvalue: "9.900,00" };
7
+ const props = { value: 990000, statvalue: "9.900,00" };
8
8
  return h(BigStatView, Object.assign({}, props), "Big stat");
9
9
  };
10
10
  export const LeftAlign = () => {
11
11
  const props = {
12
+ value: 500,
12
13
  statvalue: "500",
13
14
  alignment: "left",
14
15
  };
@@ -16,6 +17,7 @@ export const LeftAlign = () => {
16
17
  };
17
18
  export const RightAlign = () => {
18
19
  const props = {
20
+ value: 500,
19
21
  statvalue: "500",
20
22
  alignment: "right",
21
23
  };
@@ -23,6 +25,7 @@ export const RightAlign = () => {
23
25
  };
24
26
  export const FlexReverse = () => {
25
27
  const props = {
28
+ value: 500,
26
29
  statvalue: "500",
27
30
  flexReverse: true,
28
31
  };
@@ -30,6 +33,7 @@ export const FlexReverse = () => {
30
33
  };
31
34
  export const FlexReverseRight = () => {
32
35
  const props = {
36
+ value: 500,
33
37
  statvalue: "500",
34
38
  flexReverse: true,
35
39
  alignment: "right",
@@ -38,6 +42,7 @@ export const FlexReverseRight = () => {
38
42
  };
39
43
  export const FlexReverseLeft = () => {
40
44
  const props = {
45
+ value: 500,
41
46
  statvalue: "500",
42
47
  flexReverse: true,
43
48
  alignment: "left",
@@ -46,12 +51,14 @@ export const FlexReverseLeft = () => {
46
51
  };
47
52
  export const NoStatValue = () => {
48
53
  const props = {
54
+ value: 0,
49
55
  statvalue: "...",
50
56
  };
51
57
  return h(BigStatView, Object.assign({}, props), "Big stat");
52
58
  };
53
59
  export const InvalidStatValue = () => {
54
60
  const props = {
61
+ value: 0,
55
62
  statvalue: "!!!",
56
63
  };
57
64
  return h(BigStatView, Object.assign({}, props), "Big stat");
@@ -1,9 +1,9 @@
1
1
  import { h } from "@stencil/core";
2
- import { BigStatView } from "../components/sqm-big-stat/sqm-big-stat-view";
3
- import { useDemoBigStat } from "../components/sqm-big-stat/useDemoBigStat";
4
- import { useBigStat } from "../components/sqm-big-stat/useBigStat";
2
+ import { BigStatView } from "./sqm-big-stat-view";
3
+ import { useDemoBigStat } from "./useDemoBigStat";
4
+ import { useBigStat } from "./useBigStat";
5
5
  import { useState } from "@saasquatch/stencil-hooks";
6
- import { createHookStory } from "../components/sqm-stencilbook/HookStoryAddon";
6
+ import { createHookStory } from "../sqm-stencilbook/HookStoryAddon";
7
7
  import { useEffect } from "@saasquatch/universal-hooks";
8
8
  import { setUserIdentity } from "@saasquatch/component-boilerplate";
9
9
  export default {
@@ -103,3 +103,6 @@ export const ProgramGoals = createHookStory(() => {
103
103
  const dummy = encodeURIComponent("Paid-Member-Goal/referrals");
104
104
  return View(`/programGoals/count/${dummy}`, "/(programGoals)/:metricType/:goalId");
105
105
  });
106
+ export const CustomField = createHookStory(() => {
107
+ return View(`/customFields/thingCount`, "/(customFields)/:customField");
108
+ });
@@ -105,7 +105,7 @@ export class BigStat {
105
105
  "mutable": false,
106
106
  "complexType": {
107
107
  "original": "DemoData<BigStatViewProps>",
108
- "resolved": "{ statvalue?: string; flexReverse?: boolean; alignment?: \"left\" | \"right\" | \"center\"; }",
108
+ "resolved": "{ value?: number; statvalue?: string; flexReverse?: boolean; alignment?: \"left\" | \"right\" | \"center\"; }",
109
109
  "references": {
110
110
  "DemoData": {
111
111
  "location": "import",