@saasquatch/mint-components 1.5.0-113 → 1.5.0-114

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 (277) hide show
  1. package/dist/cjs/{GenericTableView-f947b749.js → GenericTableView-a69fddb5.js} +4 -2
  2. package/dist/cjs/{ShadowViewAddon-79dd6c07.js → ShadowViewAddon-b0dc2cbf.js} +14 -19
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/mint-components.cjs.js +1 -1
  5. package/dist/cjs/sqm-big-stat_30.cjs.entry.js +20 -8
  6. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +1 -2
  7. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +9 -12
  8. package/dist/cjs/sqm-stencilbook.cjs.entry.js +42 -50
  9. package/dist/collection/components/sqm-big-stat/UseBigStat.stories.js +1 -1
  10. package/dist/collection/components/sqm-big-stat/useBigStat.js +1 -1
  11. package/dist/collection/components/sqm-leaderboard/UseLeaderboard.stories.js +2 -2
  12. package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +0 -5
  13. package/dist/collection/components/sqm-referral-table/ReferralTable.stories.js +1 -1
  14. package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +0 -1
  15. package/dist/collection/components/sqm-rewards-table/RewardsTableCell.stories.js +10 -10
  16. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.js +8 -24
  17. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.js +1 -26
  18. package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +1 -1
  19. package/dist/collection/components/sqm-scroll/Scroll.stories.js +14 -23
  20. package/dist/collection/components/sqm-scroll/sqm-scroll.js +101 -147
  21. package/dist/collection/components/sqm-share-button/ShareButton.stories.js +8 -8
  22. package/dist/collection/components/sqm-share-button/sqm-share-button-view.js +13 -13
  23. package/dist/collection/components/sqm-share-button/sqm-share-button.js +21 -21
  24. package/dist/collection/components/sqm-task-card/sqm-task-card.js +3 -1
  25. package/dist/collection/tables/GenericTableView.js +4 -2
  26. package/dist/esm/{GenericTableView-6b7b537b.js → GenericTableView-042ed0ca.js} +4 -2
  27. package/dist/esm/{ShadowViewAddon-9c382e30.js → ShadowViewAddon-1c28d584.js} +14 -19
  28. package/dist/esm/loader.js +1 -1
  29. package/dist/esm/mint-components.js +1 -1
  30. package/dist/esm/sqm-big-stat_30.entry.js +20 -8
  31. package/dist/esm/sqm-referral-table_11.entry.js +1 -2
  32. package/dist/esm/sqm-rewards-table_9.entry.js +9 -12
  33. package/dist/esm/sqm-stencilbook.entry.js +42 -50
  34. package/dist/esm-es5/GenericTableView-042ed0ca.js +1 -0
  35. package/dist/esm-es5/ShadowViewAddon-1c28d584.js +1 -0
  36. package/dist/esm-es5/loader.js +1 -1
  37. package/dist/esm-es5/mint-components.js +1 -1
  38. package/dist/esm-es5/sqm-big-stat_30.entry.js +1 -1
  39. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  40. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  41. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  42. package/dist/mint-components/mint-components.esm.js +1 -1
  43. package/dist/mint-components/p-46c31936.entry.js +1 -0
  44. package/dist/mint-components/p-55f3d841.system.js +1 -1
  45. package/dist/mint-components/{p-e16186c0.system.entry.js → p-660e371f.system.entry.js} +1 -1
  46. package/dist/mint-components/{p-1cd23e56.system.entry.js → p-6918a207.system.entry.js} +1 -1
  47. package/dist/mint-components/{p-bb497e73.entry.js → p-920a2900.entry.js} +2 -2
  48. package/dist/mint-components/p-9a2b9ff8.system.entry.js +1 -0
  49. package/dist/mint-components/p-a11e1cb1.system.js +1 -0
  50. package/dist/mint-components/p-b74de10f.js +1 -0
  51. package/dist/mint-components/p-b7f5d9e7.entry.js +9 -0
  52. package/dist/mint-components/p-bf49f17f.system.js +1 -0
  53. package/dist/mint-components/{p-eb61462d.entry.js → p-d79e1aa4.entry.js} +8 -8
  54. package/dist/mint-components/{p-2c5d7a20.js → p-f017e3da.js} +3 -3
  55. package/dist/mint-components/{p-e2731437.system.entry.js → p-fa68591b.system.entry.js} +1 -1
  56. package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.d.ts +0 -1
  57. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.d.ts +0 -4
  58. package/dist/types/components/sqm-rewards-table/sqm-rewards-table.d.ts +1 -1
  59. package/dist/types/components/sqm-scroll/Scroll.stories.d.ts +1 -0
  60. package/dist/types/components/sqm-scroll/sqm-scroll.d.ts +56 -8
  61. package/dist/types/components/sqm-share-button/sqm-share-button-view.d.ts +6 -6
  62. package/dist/types/components/sqm-share-button/sqm-share-button.d.ts +9 -9
  63. package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +2 -0
  64. package/dist/types/components.d.ts +116 -42
  65. package/grapesjs/grapesjs.js +1 -1
  66. package/package.json +1 -1
  67. package/shoelace/assets/icons/123.svg +3 -0
  68. package/shoelace/assets/icons/activity.svg +3 -0
  69. package/shoelace/assets/icons/apple.svg +4 -0
  70. package/shoelace/assets/icons/bandaid-fill.svg +3 -0
  71. package/shoelace/assets/icons/bandaid.svg +4 -0
  72. package/shoelace/assets/icons/bank.svg +3 -0
  73. package/shoelace/assets/icons/bank2.svg +3 -0
  74. package/shoelace/assets/icons/behance.svg +3 -0
  75. package/shoelace/assets/icons/bell-slash-fill.svg +3 -0
  76. package/shoelace/assets/icons/bell-slash.svg +3 -0
  77. package/shoelace/assets/icons/bluetooth.svg +3 -0
  78. package/shoelace/assets/icons/body-text.svg +3 -0
  79. package/shoelace/assets/icons/boombox-fill.svg +4 -0
  80. package/shoelace/assets/icons/boombox.svg +6 -0
  81. package/shoelace/assets/icons/boxes.svg +3 -0
  82. package/shoelace/assets/icons/cash-coin.svg +6 -0
  83. package/shoelace/assets/icons/check-lg.svg +3 -0
  84. package/shoelace/assets/icons/cloud-haze2.svg +3 -0
  85. package/shoelace/assets/icons/coin.svg +5 -0
  86. package/shoelace/assets/icons/currency-bitcoin.svg +3 -0
  87. package/shoelace/assets/icons/currency-dollar.svg +3 -0
  88. package/shoelace/assets/icons/currency-euro.svg +3 -0
  89. package/shoelace/assets/icons/currency-exchange.svg +3 -0
  90. package/shoelace/assets/icons/currency-pound.svg +3 -0
  91. package/shoelace/assets/icons/currency-yen.svg +3 -0
  92. package/shoelace/assets/icons/dash-lg.svg +3 -0
  93. package/shoelace/assets/icons/device-hdd-fill.svg +4 -0
  94. package/shoelace/assets/icons/device-hdd.svg +5 -0
  95. package/shoelace/assets/icons/device-ssd-fill.svg +4 -0
  96. package/shoelace/assets/icons/device-ssd.svg +4 -0
  97. package/shoelace/assets/icons/displayport-fill.svg +3 -0
  98. package/shoelace/assets/icons/displayport.svg +4 -0
  99. package/shoelace/assets/icons/dpad-fill.svg +3 -0
  100. package/shoelace/assets/icons/dpad.svg +4 -0
  101. package/shoelace/assets/icons/dribbble.svg +3 -0
  102. package/shoelace/assets/icons/ear-fill.svg +3 -0
  103. package/shoelace/assets/icons/ear.svg +3 -0
  104. package/shoelace/assets/icons/easel2-fill.svg +4 -0
  105. package/shoelace/assets/icons/easel2.svg +3 -0
  106. package/shoelace/assets/icons/easel3-fill.svg +3 -0
  107. package/shoelace/assets/icons/easel3.svg +3 -0
  108. package/shoelace/assets/icons/envelope-check-fill.svg +4 -0
  109. package/shoelace/assets/icons/envelope-check.svg +4 -0
  110. package/shoelace/assets/icons/envelope-dash-fill.svg +4 -0
  111. package/shoelace/assets/icons/envelope-dash.svg +4 -0
  112. package/shoelace/assets/icons/envelope-exclamation-fill.svg +4 -0
  113. package/shoelace/assets/icons/envelope-exclamation.svg +4 -0
  114. package/shoelace/assets/icons/envelope-plus-fill.svg +4 -0
  115. package/shoelace/assets/icons/envelope-plus.svg +4 -0
  116. package/shoelace/assets/icons/envelope-slash-fill.svg +4 -0
  117. package/shoelace/assets/icons/envelope-slash.svg +4 -0
  118. package/shoelace/assets/icons/envelope-x-fill.svg +4 -0
  119. package/shoelace/assets/icons/envelope-x.svg +4 -0
  120. package/shoelace/assets/icons/ethernet.svg +4 -0
  121. package/shoelace/assets/icons/exclamation-lg.svg +3 -0
  122. package/shoelace/assets/icons/explicit-fill.svg +3 -0
  123. package/shoelace/assets/icons/explicit.svg +4 -0
  124. package/shoelace/assets/icons/fan.svg +4 -0
  125. package/shoelace/assets/icons/file-earmark-pdf-fill.svg +4 -0
  126. package/shoelace/assets/icons/file-earmark-pdf.svg +4 -0
  127. package/shoelace/assets/icons/file-pdf-fill.svg +4 -0
  128. package/shoelace/assets/icons/file-pdf.svg +4 -0
  129. package/shoelace/assets/icons/fingerprint.svg +7 -0
  130. package/shoelace/assets/icons/gender-ambiguous.svg +3 -0
  131. package/shoelace/assets/icons/gender-female.svg +3 -0
  132. package/shoelace/assets/icons/gender-male.svg +3 -0
  133. package/shoelace/assets/icons/gender-trans.svg +3 -0
  134. package/shoelace/assets/icons/git.svg +3 -0
  135. package/shoelace/assets/icons/gpu-card.svg +5 -0
  136. package/shoelace/assets/icons/graph-down-arrow.svg +3 -0
  137. package/shoelace/assets/icons/graph-up-arrow.svg +3 -0
  138. package/shoelace/assets/icons/hdmi-fill.svg +3 -0
  139. package/shoelace/assets/icons/hdmi.svg +4 -0
  140. package/shoelace/assets/icons/headset-vr.svg +4 -0
  141. package/shoelace/assets/icons/hypnotize.svg +4 -0
  142. package/shoelace/assets/icons/infinity.svg +3 -0
  143. package/shoelace/assets/icons/info-lg.svg +3 -0
  144. package/shoelace/assets/icons/line.svg +3 -0
  145. package/shoelace/assets/icons/list-columns-reverse.svg +3 -0
  146. package/shoelace/assets/icons/list-columns.svg +3 -0
  147. package/shoelace/assets/icons/magic.svg +3 -0
  148. package/shoelace/assets/icons/mastodon.svg +3 -0
  149. package/shoelace/assets/icons/medium.svg +3 -0
  150. package/shoelace/assets/icons/memory.svg +3 -0
  151. package/shoelace/assets/icons/messenger.svg +3 -0
  152. package/shoelace/assets/icons/meta.svg +3 -0
  153. package/shoelace/assets/icons/microsoft.svg +3 -0
  154. package/shoelace/assets/icons/modem-fill.svg +3 -0
  155. package/shoelace/assets/icons/modem.svg +4 -0
  156. package/shoelace/assets/icons/mortarboard-fill.svg +4 -0
  157. package/shoelace/assets/icons/mortarboard.svg +4 -0
  158. package/shoelace/assets/icons/motherboard-fill.svg +4 -0
  159. package/shoelace/assets/icons/motherboard.svg +4 -0
  160. package/shoelace/assets/icons/nintendo-switch.svg +4 -0
  161. package/shoelace/assets/icons/optical-audio-fill.svg +4 -0
  162. package/shoelace/assets/icons/optical-audio.svg +5 -0
  163. package/shoelace/assets/icons/paypal.svg +3 -0
  164. package/shoelace/assets/icons/pc-display-horizontal.svg +3 -0
  165. package/shoelace/assets/icons/pc-display.svg +3 -0
  166. package/shoelace/assets/icons/pc-horizontal.svg +3 -0
  167. package/shoelace/assets/icons/pc.svg +3 -0
  168. package/shoelace/assets/icons/pci-card.svg +4 -0
  169. package/shoelace/assets/icons/person-rolodex.svg +4 -0
  170. package/shoelace/assets/icons/person-video.svg +4 -0
  171. package/shoelace/assets/icons/person-video2.svg +4 -0
  172. package/shoelace/assets/icons/person-video3.svg +4 -0
  173. package/shoelace/assets/icons/person-workspace.svg +4 -0
  174. package/shoelace/assets/icons/piggy-bank-fill.svg +3 -0
  175. package/shoelace/assets/icons/piggy-bank.svg +4 -0
  176. package/shoelace/assets/icons/pin-map-fill.svg +4 -0
  177. package/shoelace/assets/icons/pin-map.svg +4 -0
  178. package/shoelace/assets/icons/pinterest.svg +3 -0
  179. package/shoelace/assets/icons/playstation.svg +3 -0
  180. package/shoelace/assets/icons/plus-lg.svg +3 -0
  181. package/shoelace/assets/icons/plus-slash-minus.svg +3 -0
  182. package/shoelace/assets/icons/projector-fill.svg +3 -0
  183. package/shoelace/assets/icons/projector.svg +4 -0
  184. package/shoelace/assets/icons/qr-code-scan.svg +7 -0
  185. package/shoelace/assets/icons/qr-code.svg +7 -0
  186. package/shoelace/assets/icons/question-lg.svg +3 -0
  187. package/shoelace/assets/icons/quora.svg +3 -0
  188. package/shoelace/assets/icons/quote.svg +3 -0
  189. package/shoelace/assets/icons/radioactive.svg +4 -0
  190. package/shoelace/assets/icons/recycle.svg +3 -0
  191. package/shoelace/assets/icons/reddit.svg +4 -0
  192. package/shoelace/assets/icons/robot.svg +4 -0
  193. package/shoelace/assets/icons/router-fill.svg +6 -0
  194. package/shoelace/assets/icons/router.svg +6 -0
  195. package/shoelace/assets/icons/safe-fill.svg +4 -0
  196. package/shoelace/assets/icons/safe.svg +4 -0
  197. package/shoelace/assets/icons/safe2-fill.svg +4 -0
  198. package/shoelace/assets/icons/safe2.svg +4 -0
  199. package/shoelace/assets/icons/sd-card-fill.svg +3 -0
  200. package/shoelace/assets/icons/sd-card.svg +4 -0
  201. package/shoelace/assets/icons/send-check-fill.svg +4 -0
  202. package/shoelace/assets/icons/send-check.svg +4 -0
  203. package/shoelace/assets/icons/send-dash-fill.svg +4 -0
  204. package/shoelace/assets/icons/send-dash.svg +4 -0
  205. package/shoelace/assets/icons/send-exclamation-fill.svg +4 -0
  206. package/shoelace/assets/icons/send-exclamation.svg +4 -0
  207. package/shoelace/assets/icons/send-fill.svg +3 -0
  208. package/shoelace/assets/icons/send-plus-fill.svg +4 -0
  209. package/shoelace/assets/icons/send-plus.svg +4 -0
  210. package/shoelace/assets/icons/send-slash-fill.svg +4 -0
  211. package/shoelace/assets/icons/send-slash.svg +4 -0
  212. package/shoelace/assets/icons/send-x-fill.svg +4 -0
  213. package/shoelace/assets/icons/send-x.svg +4 -0
  214. package/shoelace/assets/icons/send.svg +3 -0
  215. package/shoelace/assets/icons/signal.svg +3 -0
  216. package/shoelace/assets/icons/skype.svg +3 -0
  217. package/shoelace/assets/icons/slash-lg.svg +3 -0
  218. package/shoelace/assets/icons/snapchat.svg +3 -0
  219. package/shoelace/assets/icons/spotify.svg +3 -0
  220. package/shoelace/assets/icons/stack-overflow.svg +4 -0
  221. package/shoelace/assets/icons/steam.svg +4 -0
  222. package/shoelace/assets/icons/strava.svg +3 -0
  223. package/shoelace/assets/icons/terminal-dash.svg +4 -0
  224. package/shoelace/assets/icons/terminal-plus.svg +4 -0
  225. package/shoelace/assets/icons/terminal-split.svg +4 -0
  226. package/shoelace/assets/icons/terminal-x.svg +4 -0
  227. package/shoelace/assets/icons/thunderbolt-fill.svg +3 -0
  228. package/shoelace/assets/icons/thunderbolt.svg +4 -0
  229. package/shoelace/assets/icons/ticket-detailed-fill.svg +3 -0
  230. package/shoelace/assets/icons/ticket-detailed.svg +4 -0
  231. package/shoelace/assets/icons/ticket-fill.svg +3 -0
  232. package/shoelace/assets/icons/ticket-perforated-fill.svg +3 -0
  233. package/shoelace/assets/icons/ticket-perforated.svg +4 -0
  234. package/shoelace/assets/icons/ticket.svg +3 -0
  235. package/shoelace/assets/icons/tiktok.svg +3 -0
  236. package/shoelace/assets/icons/translate.svg +4 -0
  237. package/shoelace/assets/icons/usb-c-fill.svg +3 -0
  238. package/shoelace/assets/icons/usb-c.svg +4 -0
  239. package/shoelace/assets/icons/usb-drive-fill.svg +3 -0
  240. package/shoelace/assets/icons/usb-drive.svg +3 -0
  241. package/shoelace/assets/icons/usb-fill.svg +3 -0
  242. package/shoelace/assets/icons/usb-micro-fill.svg +3 -0
  243. package/shoelace/assets/icons/usb-micro.svg +4 -0
  244. package/shoelace/assets/icons/usb-mini-fill.svg +3 -0
  245. package/shoelace/assets/icons/usb-mini.svg +4 -0
  246. package/shoelace/assets/icons/usb-plug-fill.svg +3 -0
  247. package/shoelace/assets/icons/usb-plug.svg +3 -0
  248. package/shoelace/assets/icons/usb-symbol.svg +3 -0
  249. package/shoelace/assets/icons/usb.svg +4 -0
  250. package/shoelace/assets/icons/vimeo.svg +3 -0
  251. package/shoelace/assets/icons/webcam-fill.svg +4 -0
  252. package/shoelace/assets/icons/webcam.svg +4 -0
  253. package/shoelace/assets/icons/window-dash.svg +5 -0
  254. package/shoelace/assets/icons/window-desktop.svg +4 -0
  255. package/shoelace/assets/icons/window-fullscreen.svg +4 -0
  256. package/shoelace/assets/icons/window-plus.svg +5 -0
  257. package/shoelace/assets/icons/window-split.svg +4 -0
  258. package/shoelace/assets/icons/window-stack.svg +4 -0
  259. package/shoelace/assets/icons/window-x.svg +5 -0
  260. package/shoelace/assets/icons/windows.svg +3 -0
  261. package/shoelace/assets/icons/wordpress.svg +5 -0
  262. package/shoelace/assets/icons/x-lg.svg +4 -0
  263. package/shoelace/assets/icons/xbox.svg +3 -0
  264. package/shoelace/assets/icons/yin-yang.svg +4 -0
  265. package/shoelace/themes/themes/dark.styles.d.ts +2 -0
  266. package/shoelace/themes/themes/dark.styles.js +531 -0
  267. package/shoelace/themes/themes/light.css +439 -0
  268. package/shoelace/themes/themes/light.styles.d.ts +2 -0
  269. package/shoelace/themes/themes/light.styles.js +531 -0
  270. package/dist/esm-es5/GenericTableView-6b7b537b.js +0 -1
  271. package/dist/esm-es5/ShadowViewAddon-9c382e30.js +0 -1
  272. package/dist/mint-components/p-1b71a09e.system.entry.js +0 -1
  273. package/dist/mint-components/p-3f88f8eb.system.js +0 -1
  274. package/dist/mint-components/p-45581e0b.entry.js +0 -9
  275. package/dist/mint-components/p-48161ba8.js +0 -1
  276. package/dist/mint-components/p-546ee840.entry.js +0 -1
  277. package/dist/mint-components/p-ac303785.system.js +0 -1
@@ -11,7 +11,7 @@ require('./extends-08099afd.js');
11
11
  require('./cjs-1066ec21.js');
12
12
  require('./mixins-7b7c59fe.js');
13
13
  const JSS = require('./JSS-c65a40f1.js');
14
- const GenericTableView = require('./GenericTableView-f947b749.js');
14
+ const GenericTableView = require('./GenericTableView-a69fddb5.js');
15
15
  const luxon = require('./luxon-59ca7d19.js');
16
16
  require('./utils-01dbfd4a.js');
17
17
  require('./sqm-text-span-view-f101dedf.js');
@@ -29,7 +29,7 @@ const sqmPortalProfileView = require('./sqm-portal-profile-view-72c40619.js');
29
29
  const sqmPortalResetPasswordView = require('./sqm-portal-reset-password-view-1fdc957e.js');
30
30
  const sqmPortalVerifyEmailView = require('./sqm-portal-verify-email-view-4c78e231.js');
31
31
  const sqmStatContainerView = require('./sqm-stat-container-view-8aaf6cb8.js');
32
- const ShadowViewAddon = require('./ShadowViewAddon-79dd6c07.js');
32
+ const ShadowViewAddon = require('./ShadowViewAddon-b0dc2cbf.js');
33
33
  const sqmPortalSectionView = require('./sqm-portal-section-view-186a5f7e.js');
34
34
 
35
35
  /**
@@ -1457,11 +1457,11 @@ const ShareButton_stories = {
1457
1457
  },
1458
1458
  };
1459
1459
  const WithIconPrefix = () => {
1460
- const props = { medium: "whatsapp", iconslot: "prefix" };
1460
+ const props = { medium: "whatsapp", iconSlot: "prefix" };
1461
1461
  return index.h(ShadowViewAddon.ShareButtonView, Object.assign({}, props), "Share");
1462
1462
  };
1463
1463
  const WithIconSuffix = () => {
1464
- const props = { medium: "whatsapp", iconslot: "suffix" };
1464
+ const props = { medium: "whatsapp", iconSlot: "suffix" };
1465
1465
  return index.h(ShadowViewAddon.ShareButtonView, Object.assign({}, props), "Share");
1466
1466
  };
1467
1467
  const WithIconOverride = () => {
@@ -1479,15 +1479,15 @@ const TextStyle = () => {
1479
1479
  return index.h(ShadowViewAddon.ShareButtonView, Object.assign({}, props), "Share");
1480
1480
  };
1481
1481
  const WithoutIcon = () => {
1482
- const props = { medium: "facebook", hideicon: true };
1482
+ const props = { medium: "facebook", hideIcon: true };
1483
1483
  return index.h(ShadowViewAddon.ShareButtonView, Object.assign({}, props), "Share");
1484
1484
  };
1485
1485
  const WithoutText = () => {
1486
- const props = { medium: "facebook", hidetext: true };
1486
+ const props = { medium: "facebook", hideText: true };
1487
1487
  return index.h(ShadowViewAddon.ShareButtonView, Object.assign({}, props), "Share");
1488
1488
  };
1489
1489
  const TextStyleWithoutIcon = () => {
1490
- const props = { medium: "facebook", type: "text", hideicon: true };
1490
+ const props = { medium: "facebook", type: "text", hideIcon: true };
1491
1491
  return index.h(ShadowViewAddon.ShareButtonView, Object.assign({}, props), "Share");
1492
1492
  };
1493
1493
  const WithCustomColors = () => {
@@ -1496,7 +1496,7 @@ const WithCustomColors = () => {
1496
1496
  type: "text",
1497
1497
  backgroundcolor: "red",
1498
1498
  textcolor: "yellow",
1499
- iconslot: "prefix",
1499
+ iconSlot: "prefix",
1500
1500
  };
1501
1501
  return index.h(ShadowViewAddon.ShareButtonView, Object.assign({}, props), "Facebook");
1502
1502
  };
@@ -1504,8 +1504,8 @@ const WithCustomBorderRadius = () => {
1504
1504
  const props = {
1505
1505
  medium: "facebook",
1506
1506
  type: "text",
1507
- borderradius: 8,
1508
- iconslot: "prefix",
1507
+ borderRadius: 8,
1508
+ iconSlot: "prefix",
1509
1509
  };
1510
1510
  return index.h(ShadowViewAddon.ShareButtonView, Object.assign({}, props), "Facebook");
1511
1511
  };
@@ -1760,7 +1760,7 @@ const BigStat = /*#__PURE__*/Object.freeze({
1760
1760
  InvalidStatValue: InvalidStatValue
1761
1761
  });
1762
1762
 
1763
- const scenario$4 = "@owner:noah\r\n@author:noah\r\nFeature: Leaderboard\r\n\r\n\tThe leaderboard displays the top referrers along with their scores\r\n\r\n\t@motivating\r\n\tScenario Outline: The leaderboard can be for referrals started or converted\r\n\t\tGiven a leaderboard is configured with \"leaderboard-type\" <value>\r\n\t\tAnd a user with started referrals\r\n\t\tAnd a user with converted referrals\r\n\t\tWhen they view the leaderboard\r\n\t\tThen then only <referralType> referrals are counted in the leaderboard\r\n\t\tExamples:\r\n\t\t\t| value | referralType |\r\n\t\t\t| topStartedReferrers | started |\r\n\t\t\t| topConvertedReferrers | converted |\r\n\t\t\t| | started |\r\n\r\n\t@motivating\r\n\tScenario: If there are any users with referrals the leaderboard is shown\r\n\t\tGiven there is aleast one user\r\n\t\tThen the leaderboard displays up to 10 top referrers\r\n\t\tAnd leaderboard is ordered by the referrers score in descending ordered\r\n\t\tAnd in the case of a tie the rows are ordered alphabetically\r\n\r\n\t@motivating\r\n\tScenario: The leaderboard can filter referrals within an time interval\r\n\t\tGiven a leaderboard is configured with \"interval\" \"2021-11-02T07:00:00.000Z/2021-11-07T07:00:00.000Z\"\r\n\t\tAnd a user with referrals\r\n\t\tWhen they view the leaderboard\r\n\t\tThen only referrals from within \"2021-11-02T07:00:00.000Z/2021-11-07T07:00:00.000Z\" are counted in the leaderboard\r\n\r\n\t@motivating\r\n\tScenario Outline: Rank Type can be configured\r\n\t\tGiven a leaderboard is configured with \"rank-type\" <value>\r\n\t\tAnd a user\r\n\t\tWhen they view the leaderboard\r\n\t\tThen their leaderboard rank is their <rank>\r\n\t\tExamples:\r\n\t\t\t| value | rank |\r\n\t\t\t| rowNumber | row number |\r\n\t\t\t| denseRank | dense rank |\r\n\t\t\t| rank | rank |\r\n\t\t\t| | row number |\r\n\r\n\t@minutiae\r\n\t@ui\r\n\tScenario: An empty state is displayed if no users\r\n\t\tGiven a user\r\n\t\tBut no users have made any referrals\r\n\t\tWhen they view the leaderboard\r\n\t\tThen an empty state is dislayed\r\n\t\tAnd they see an image of a leaderboard\r\n\t\tAnd below they see \"View your rank in the leaderboard\"\r\n\t\tAnd below they see \"Be the first to refer a friend and reach the top of the leaderboard\"\r\n\t\tAnd the text is center aligned\r\n\r\n\t@minutiae\r\n\t@ui\r\n\tScenario: A custom empty state can be provided\r\n\t\tGiven a user\r\n\t\tBut no users have made any referrals\r\n\t\tWhen they view the leaderboard\r\n\t\tThen the contents of the \"empty\" slot are displayed\r\n\r\n\t@minutiae\r\n\t@ui\r\n\tScenario: Leaderboard headings can be customized\r\n\t\tGiven a leaderboard\r\n\t\tAnd it has the following props\r\n\t\t\t| prop | value |\r\n\t\t\t| rankheading | Place |\r\n\t\t\t| usersheading | Customer |\r\n\t\t\t| statsheading | Referral Count |\r\n\t\t\t| show-rank | true |\r\n\t\tAnd a user\r\n\t\tWhen they view the leaderboard\r\n\t\tThen they see the following columns with headings\r\n\t\t\t| column | heading |\r\n\t\t\t| rank | Place |\r\n\t\t\t| user | Customer |\r\n\t\t\t| stat | Referral Count |\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario Outline: Rank can be hidden or shown\r\n\t\tGiven a leaderboard\r\n\t\tAnd it has prop \"show-rank\" with <propValue>\r\n\t\tAnd a user\r\n\t\tWhen they view the leaderboard\r\n\t\tThen they <maySee> the rank column\r\n\t\tExamples:\r\n\t\t\t| propValue | maySee |\r\n\t\t\t| true | see |\r\n\t\t\t| false | don't see |\r\n\t\t\t| | don't see |\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario: Users in the top 10 referrers see their leaderboard row highlighted\r\n\t\tGiven a user\r\n\t\tAnd they are in the top 10 referrers\r\n\t\tWhen they view the leaderboard\r\n\t\tThen they see the row with their name highlighted with brand colour\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario Outline: Users not in the top 10 referrers can see their progress at the bottom of the leaderboard\r\n\t\tGiven a user\r\n\t\tAnd they <mayHmayHaveReferralave>\r\n\t\tAnd they are not in the top 10 referrers\r\n\t\tAnd the leaderboard has prop \"show-user\" with <value>\r\n\t\tWhen they view the leaderboard\r\n\t\tThen they <maySee> \"...\" under the top 10 referrers\r\n\t\tAnd under \"...\" they <maySee> a row highlighted with brand colour\r\n\t\tAnd they <maySee> their name\r\n\t\tAnd they <maySee> their referral count\r\n\t\tAnd they <maySeeRank>\r\n\t\tExamples:\r\n\t\t\t| mayHaveReferral | value | maySee | maySeeRank |\r\n\t\t\t| have referrals | true | see | see their rank |\r\n\t\t\t| don't have referrals | true | see | don't see their rank |\r\n\t\t\t| | false | don't see | don't see their rank |\r\n\t\t\t| have referrals | | see | see their rank |\r\n\r\n\t@minutiae\r\n\tScenario: Users without names are displayed as an \"Anonymous User\"\r\n\t\tGiven a user\r\n\t\tAnd they do not have a first name\r\n\t\tAnd they do not have a last initial\r\n\t\tWhen they view the leaderboard\r\n\t\tThen they see the user displayed as \"Anonymous User\"";
1763
+ const scenario$4 = "@owner:noah\r\n@author:noah\r\nFeature: Leaderboard\r\n\r\n\tThe leaderboard displays the top referrers along with their scores\r\n\r\n\t@motivating\r\n\tScenario Outline: The leaderboard can be for referrals started or converted\r\n\t\tGiven a leaderboard is configured with \"leaderboard-type\" <value>\r\n\t\tAnd a user with started referrals\r\n\t\tAnd a user with converted referrals\r\n\t\tWhen they view the leaderboard\r\n\t\tThen then only <referralType> referrals are counted in the leaderboard\r\n\t\tExamples:\r\n\t\t\t| value | referralType |\r\n\t\t\t| topStartedReferrers | started |\r\n\t\t\t| topConvertedReferrers | converted |\r\n\t\t\t| | started |\r\n\r\n\t@motivating\r\n\tScenario: If there are any users with referrals the leaderboard is shown\r\n\t\tGiven there is aleast one user\r\n\t\tThen the leaderboard displays up to 10 top referrers\r\n\t\tAnd leaderboard is ordered by the referrers score in descending ordered\r\n\r\n\t@motivating\r\n\tScenario: The leaderboard can filter referrals within an time interval\r\n\t\tGiven a leaderboard is configured with \"interval\" \"2021-11-02T07:00:00.000Z/2021-11-07T07:00:00.000Z\"\r\n\t\tAnd a user with referrals\r\n\t\tWhen they view the leaderboard\r\n\t\tThen only referrals from within \"2021-11-02T07:00:00.000Z/2021-11-07T07:00:00.000Z\" are counted in the leaderboard\r\n\r\n\t@motivating\r\n\tScenario Outline: Rank Type can be configured\r\n\t\tGiven a leaderboard is configured with \"rank-type\" <value>\r\n\t\tAnd a user\r\n\t\tWhen they view the leaderboard\r\n\t\tThen their leaderboard rank is their <rank>\r\n\t\tExamples:\r\n\t\t\t| value | rank |\r\n\t\t\t| rowNumber | row number |\r\n\t\t\t| denseRank | dense rank |\r\n\t\t\t| rank | rank |\r\n\t\t\t| | row number |\r\n\r\n\t@minutiae\r\n\t@ui\r\n\tScenario: An empty state is displayed if no users\r\n\t\tGiven a user\r\n\t\tBut no users have made any referrals\r\n\t\tWhen they view the leaderboard\r\n\t\tThen an empty state is dislayed\r\n\t\tAnd they see an image of a leaderboard\r\n\t\tAnd below they see \"View your rank in the leaderboard\"\r\n\t\tAnd below they see \"Be the first to refer a friend and reach the top of the leaderboard\"\r\n\t\tAnd the text is center aligned\r\n\r\n\t@minutiae\r\n\t@ui\r\n\tScenario: A custom empty state can be provided\r\n\t\tGiven a user\r\n\t\tBut no users have made any referrals\r\n\t\tWhen they view the leaderboard\r\n\t\tThen the contents of the \"empty\" slot are displayed\r\n\r\n\t@minutiae\r\n\t@ui\r\n\tScenario: Leaderboard headings can be customized\r\n\t\tGiven a leaderboard\r\n\t\tAnd it has the following props\r\n\t\t\t| prop | value |\r\n\t\t\t| rankheading | Place |\r\n\t\t\t| usersheading | Customer |\r\n\t\t\t| statsheading | Referral Count |\r\n\t\t\t| show-rank | true |\r\n\t\tAnd a user\r\n\t\tWhen they view the leaderboard\r\n\t\tThen they see the following columns with headings\r\n\t\t\t| column | heading |\r\n\t\t\t| rank | Place |\r\n\t\t\t| user | Customer |\r\n\t\t\t| stat | Referral Count |\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario Outline: Rank can be hidden or shown\r\n\t\tGiven a leaderboard\r\n\t\tAnd it has prop \"show-rank\" with <propValue>\r\n\t\tAnd a user\r\n\t\tWhen they view the leaderboard\r\n\t\tThen they <maySee> the rank column\r\n\t\tExamples:\r\n\t\t\t| propValue | maySee |\r\n\t\t\t| true | see |\r\n\t\t\t| false | don't see |\r\n\t\t\t| | don't see |\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario: Users in the top 10 referrers see their leaderboard row highlighted\r\n\t\tGiven a user\r\n\t\tAnd they are in the top 10 referrers\r\n\t\tWhen they view the leaderboard\r\n\t\tThen they see the row with their name highlighted with brand colour\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario Outline: Users not in the top 10 referrers can see their progress at the bottom of the leaderboard\r\n\t\tGiven a user\r\n\t\tAnd they <mayHmayHaveReferralave>\r\n\t\tAnd they are not in the top 10 referrers\r\n\t\tAnd the leaderboard has prop \"show-user\" with <value>\r\n\t\tWhen they view the leaderboard\r\n\t\tThen they <maySee> \"...\" under the top 10 referrers\r\n\t\tAnd under \"...\" they <maySee> a row highlighted with brand colour\r\n\t\tAnd they <maySee> their name\r\n\t\tAnd they <maySee> their referral count\r\n\t\tAnd they <maySeeRank>\r\n\t\tExamples:\r\n\t\t\t| mayHaveReferral | value | maySee | maySeeRank |\r\n\t\t\t| have referrals | true | see | see their rank |\r\n\t\t\t| don't have referrals | true | see | don't see their rank |\r\n\t\t\t| | false | don't see | don't see their rank |\r\n\t\t\t| have referrals | | see | see their rank |\r\n\r\n\t@minutiae\r\n\tScenario: Users without names are displayed as an \"Anonymous User\"\r\n\t\tGiven a user\r\n\t\tAnd they do not have a first name\r\n\t\tAnd they do not have a last initial\r\n\t\tWhen they view the leaderboard\r\n\t\tThen they see the user displayed as \"Anonymous User\"";
1764
1764
 
1765
1765
  const Leaderboard_stories = {
1766
1766
  title: "Components/Leaderboard",
@@ -2665,7 +2665,7 @@ function setupGraphQL$3() {
2665
2665
  }, []);
2666
2666
  }
2667
2667
  const View = (statType, format) => {
2668
- console.log(`View("${statType}") - CALLED`);
2668
+ // console.log(`View("${statType}") - CALLED`);
2669
2669
  setupGraphQL$3();
2670
2670
  return (index.h("div", null,
2671
2671
  index.h("b", null, "Stat format:"),
@@ -2873,7 +2873,7 @@ const View$1 = (overrideProps) => {
2873
2873
  ...overrideProps,
2874
2874
  };
2875
2875
  const { leaderboardType, rankType } = props;
2876
- console.log(`View("${leaderboardType}") - CALLED`, { ...props });
2876
+ // console.log(`View("${leaderboardType}") - CALLED`, { ...props });
2877
2877
  return (index.h("div", { style: { marginBottom: "20px" } },
2878
2878
  index.h("sqm-divided-layout", { direction: "row" },
2879
2879
  index.h("div", { style: { padding: "10px" } },
@@ -2955,7 +2955,7 @@ const DemoHookEmpty = createHookStory(() => {
2955
2955
  anonymousUser: "Anonymous User",
2956
2956
  showRank: true,
2957
2957
  },
2958
- }
2958
+ },
2959
2959
  } },
2960
2960
  index.h("sqm-empty", { "empty-state-image": "https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_leaderboard2.png", "empty-state-header": "View your rank in the leaderboard", "empty-state-text": "Be the first to refer a friend and reach the top of the leaderboard" })));
2961
2961
  });
@@ -5523,7 +5523,7 @@ const FullRewardsTable = () => {
5523
5523
  prevLabel: "Prev",
5524
5524
  moreLabel: "View More",
5525
5525
  },
5526
- hiddenColumns: "",
5526
+ hiddenColumns: "1",
5527
5527
  mdBreakpoint: 899,
5528
5528
  smBreakpoint: 599,
5529
5529
  },
@@ -5805,7 +5805,7 @@ function cartesian(...args) {
5805
5805
 
5806
5806
  const scenarioTaskCard = "@author:derek\r\n@owner:kutay\r\nFeature: Task Card\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario: A header, body title and a CTA button are always displayed\r\n\t\tGiven the Task Card is configured with the following props\r\n\t\t\t| prop | value |\r\n\t\t\t| rewardAmount | \"40\" |\r\n\t\t\t| rewardUnit | \"Points\" |\r\n\t\t\t| cardTitle | Complete a survey |\r\n\t\t\t| buttonText | Take Survey |\r\n\t\tWhen a user views the Task Card\r\n\t\tThen they see \"40 Points\" as the heading\r\n\t\tAnd the \"40\" is bolded\r\n\t\tAnd they see \"Complete a survey\" bolded in the body\r\n\t\tAnd a details icon in the top right hand corner\r\n\t\tAnd a button with text \"Take Survey\" in the bottom right hand corner\r\n\t\tWhen they click the button\r\n\t\tThen they are redirected to \"example.com\" in a new window\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario Outline: A Task Card description can be included but is not required\r\n\t\tGiven a Task Card\r\n\t\tAnd it has <descriptionPropValue>\r\n\t\tWhen a user views the Task card\r\n\t\tThen they <maySee> a chevron icon in the top right\r\n\t\tWhen they attempt to click the chevron\r\n\t\tThen they <maySee> the card description\r\n\t\tExamples:\r\n\t\t\t| descriptionPropValue | maySee |\r\n\t\t\t| This is my task card description | see |\r\n\t\t\t| | don't see |\r\n\r\n\t@motivating\r\n\tScenario Outline: CTA links can open in a new tab or the same tab\r\n\t\tGiven a Task Card\r\n\t\tAnd it has <openNewTabPropValue>\r\n\t\tWhen a user views the Task card\r\n\t\tAnd they click on the CTA\r\n\t\tThen they are redirected to the CTA link in <tab>\r\n\t\tExamples:\r\n\t\t\t| openNewTabPropValue | tab |\r\n\t\t\t| true | a new tab |\r\n\t\t\t| false | the same tab |\r\n\t\t\t| N/A | the same tab |\r\n\r\n\t@minutae\r\n\t@ui\r\n\tScenario: A loading state is displayed while the Task Card is loading\r\n\t\tGiven a Task Card component\r\n\t\tWhen a user views the Task Card\r\n\t\tThen a loading state is displayed\r\n\t\tWhen the Task Card has loaded\r\n\t\tThen the loading state disapears\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario Outline: The Progress Bar can be shown or hidden but is hidden by default\r\n\t\tGiven a Task Card\r\n\t\tAnd it has <showProgressBarPropValue>\r\n\t\tWhen a user views the Task Card\r\n\t\tThen the progress bar <mayBe> displayed\r\n\t\tExamples:\r\n\t\t\t| showProgressBarPropValue | mayBe |\r\n\t\t\t| true | is |\r\n\t\t\t| false | isn't |\r\n\t\t\t| N/A | isn't |\r\n\r\n\t@motivating\r\n\tScenario: Clicking the CTA Button can trigger an event to be sent and refresh the widget\r\n\t\tGiven a Task card\r\n\t\tAnd it is configured to send an \"test\" event\r\n\t\tWhen a user views the Task card\r\n\t\tAnd clicks on the CTA\r\n\t\tThen a \"test\" event is sent to SSQT on the users behalf\r\n\t\tAnd the contents of the widget the card is dislayed within are refreshed\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario Outline: Tasks can be repeatable or one-time only but are one-time only by default\r\n\t\tGiven a Task Card\r\n\t\tAnd it has <repeatablePropValue>\r\n\t\tAnd a user who has already completed the task\r\n\t\tWhen they view the Task Card\r\n\t\tThen they see a brand colour checkmark icon beside the card heading\r\n\t\tAnd the card <mayBe> brand colour\r\n\t\tAnd the CTA button <mayBe> disabled\r\n\t\tAnd the CTA button <mayBe> grey\r\n\t\tExamples:\r\n\t\t\t| repeatablePropValue | mayBe |\r\n\t\t\t| true | isn't |\r\n\t\t\t| false | is |\r\n\t\t\t| N/A | is |\r\n\r\n\t@motivating\r\n\tScenario Outline: Display duration hides or shows a task\r\n\t\tGiven a Task Card\r\n\t\tAnd it has a \"display-duration\" interval\r\n\t\tWhen a user views the Card on <day>\r\n\t\tThen card <mayBeHidden>\r\n\t\tExamples:\r\n\t\t\t| day | mayBeHidden |\r\n\t\t\t| a day before the interval | is hidden |\r\n\t\t\t| a day during the interval | is not hidden |\r\n\t\t\t| a day after the interval | is hidden |\r\n\r\n\t@motivating\r\n\tScenario: Task Expiries can be configured and disable the CTA after the expiry\r\n\t\tGiven a Task Card\r\n\t\tAnd it has an \"reward-duration\" interval\r\n\t\tWhen a user views the card on <day>\r\n\t\tThen the card <mayBeDisabled>\r\n\t\tAnd it <mayHaveAlert>\r\n\t\tAnd it <mayHaveExpiryText> on the bottom left hand side of the card\r\n\t\tExamples:\r\n\t\t\t| day | mayBeDisabled | mayHaveAlert | mayHaveExpiryText |\r\n\t\t\t| a day before the expiry interval | is disabled | has alert stating the month, date, year and time the task starts | doesn't have expiry text |\r\n\t\t\t| a day during the expiry interval | isn't disabled | doesn't have an alert | has the month, date, year and time the task expires |\r\n\t\t\t| a day after the expiry interval | is disabled | has alert stating the month, date, year and time the task expired | doesn't have expiry text |\r\n\r\n\t@motivating\r\n\tScenario Outline: Task Card dates support localization\r\n\t\tGiven a Task Card\r\n\t\tAnd it's configured with a expiry duration interval\r\n\t\tWhen a user with <locale> views the task card <atTime>\r\n\t\tThen they <seeDate> translated for <locale>\r\n\t\tExamples:\r\n\t\t\t| atTime | locale | seeDate |\r\n\t\t\t| before the interval | en | Task Start Date |\r\n\t\t\t| during the interval | en | Task End Date |\r\n\t\t\t| after the interval | en | Task Ended Date |\r\n\t\t\t| before the interval | fr | Task Start Date |\r\n\t\t\t| during the interval | fr | Task End Date |\r\n\t\t\t| after the interval | fr | Task Ended Date |\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario Outline: A task completion count is displayed for repeatable tasks\r\n\t\tGiven a Task Card\r\n\t\tAnd it is configured for a repeatable task\r\n\t\tAnd has it has <goalValue>\r\n\t\tAnd a user with <userGoalProgress>\r\n\t\tWhen the user views the task card\r\n\t\tThen they see a repeat icon\r\n\t\tAnd the <text> in the bottom left hand corner\r\n\t\tAnd the <text> is brand colour\r\n\t\tExamples:\r\n\t\t\t| goalValue | userGoalProgress | text |\r\n\t\t\t| 2 | 0 | Completed 0 times |\r\n\t\t\t| 2 | 1 | Completed 0 times |\r\n\t\t\t| 2 | 2 | Completed 1 times |\r\n\t\t\t| 2 | 4 | Completed 2 times |\r\n\r\n\t@motivating\r\n\tScenario Outline: The source of a user's progress can be a custom field or a program goal\r\n\t\tGiven a Task Card\r\n\t\tAnd it is configured <progressSourcePath>\r\n\t\tWhen a user views the Task card\r\n\t\tThen the value at <progressSourcePath> is used to benchmark their progress against the \"Goal Completion Count\"\r\n\t\tExamples:\r\n\t\t\t| progressSourcePath |\r\n\t\t\t| /customFields/activityCount |\r\n\t\t\t| /customFields/purchaseTotal |\r\n\t\t\t| /programGoals/count%2FComment-on-Article |\r\n\t\t\t| /programGoals/count/Referral-Started%2Freferrals |\r\n\r\n\t@motivating\r\n\tScenario Outline: The users completion of a goal is calculated by the Goal Completion Number\r\n\t\tGiven a Task Card\r\n\t\tAnd it is configured for <goalValue>\r\n\t\tAnd a user who has <progressValue>\r\n\t\tWhen they view the Task Card\r\n\t\tThen they are shown to have <progressValue> towards <goalValue>\r\n\t\tWhen their progress grows larger than <goalValue>\r\n\t\tThen the task is marked as completed\r\n\t\tExamples:\r\n\t\t\t| goalValue | progressValue |\r\n\t\t\t| 1 | 0 |\r\n\t\t\t| 10 | 9 |\r\n\t\t\t| 5 | 2 |\r\n\r\n\t@motivating\r\n\tScenario: The Goal Completion Number defaults to 1\r\n\t\tGiven a Task Card without a configured \"goal\" value\r\n\t\tAnd a user who has <progressValue>\r\n\t\tWhen they view the Task Card\r\n\t\tThen it <mayBe> marked as completed\r\n\t\tExamples:\r\n\t\t\t| progressValue | mayBe |\r\n\t\t\t| 0 | isn't |\r\n\t\t\t| 1 | is |\r\n\t\t\t| 2 | is |";
5807
5807
 
5808
- const scenarioProgressBar = "@author:kutay\r\n@owner:kutay\r\nFeature: Task Card Progress Bar\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario Outline: The progress bar displays a continuous bar with the goal represented by a present\r\n\t\tGiven a Task Card component\r\n\t\tAnd the users progress is <progress>\r\n\t\tAnd the task goal is \"500\"\r\n\t\tAnd the task is not repeatable\r\n\t\tThen I have <progressBar>\r\n\t\tAnd the <progressBar> shows <progress> with <unit> on the right\r\n\t\tAnd the circle on the progress bar is brand colour\r\n\t\tAnd the line behind the circle is brand colour\r\n\t\tAnd the line infront of the circle is grey\r\n\t\tAnd the gift icon has <color>\r\n\t\tAnd the gift icon shows \"500\" with <unit> below\r\n\t\tExamples:\r\n\t\t\t| progress | progressBar | unit | color |\r\n\t\t\t| 0 | ●――――――――――――――――――🎁 | $ | no |\r\n\t\t\t| 100 | ―――●―――――――――――――――🎁 | $ | no |\r\n\t\t\t| 500 | ―――――――――――――――――――🎁 | $ | yes |\r\n\t\t\t| 650 | ―――――――――――――――――――🎁 | $ | yes |\r\n\t\t\t| 1200 | ―――――――――――――――――――🎁 | $ | yes |\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario Outline: The progress bar can be displayed with steps instead of a continuous line\r\n\t\tGiven a Task Card component\r\n\t\tAnd the user progress is <progress>\r\n\t\tAnd the goal is \"5\"\r\n\t\tAnd steps are enabled\r\n\t\tThen I have <progressBar>\r\n\t\tAnd the <progressBar> has incrementing steps up to \"5\" in increments of 1\r\n\t\tAnd the steps behind the users progress are brand colour\r\n\t\tAnd the steps infront of the users progress are grey\r\n\t\tAnd the gift icon has <color>\r\n\t\tAnd the gift icon shows \"5\" below\r\n\t\tExamples:\r\n\t\t\t| progress | progressBar | color |\r\n\t\t\t| 0 | ―――○―――○―――○―――○―――🎁 | no |\r\n\t\t\t| 1 | ―――●―――○―――○―――○―――🎁 | no |\r\n\t\t\t| 5 | ―――●―――●―――●―――●―――🎁 | yes |\r\n\t\t\t| 7 | ―――●―――●―――●―――●―――🎁 | yes |\r\n\t\t\t| 12 | ―――●―――●―――●―――●―――🎁 | yes |\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario Outline: The continuous progress bar will continue to progress for repeatable rewards\r\n\t\tGiven a Task Card component\r\n\t\tAnd the user progress is <progress>\r\n\t\tAnd the goal is \"500\"\r\n\t\tAnd it is repeatable\r\n\t\tThen I have <progressBar>\r\n\t\tAnd the <progressBar> shows <progress> with <unit> to the right\r\n\t\tAnd the first <icon1> is <color1> with <text1> displayed below\r\n\t\tAnd the second <icon2> is <color2> with <text2> displayed below\r\n\t\tAnd the third <icon3> is <color3> with <text3> displayed below\r\n\t\tAnd the circle on the progress bar is brand colour\r\n\t\tAnd the line behind the circle is brand colour\r\n\t\tAnd the line infront of the circle is grey\r\n\t\tExamples:\r\n\t\t\t| progress | progressBar | unit | icon1 | color1 | text1 | icon2 | color2 | text 2 | icon3 | color3 | text 3 |\r\n\t\t\t| 250 | ――――●――――🎁―――――――🎁 | $ | NA | NA | NA | gift | greyscale | 500 | gift | greyscale | 1000 |\r\n\t\t\t| 500 | ―――――――――🎁―――――――🎁 | $ | NA | NA | NA | gift | colorful | 500 | gift | greyscale | 1000 |\r\n\t\t\t| 750 | ―――――――――🎁―――●―――🎁 | $ | NA | NA | NA | gift | colorful | 500 | gift | greyscale | 1000 |\r\n\t\t\t| 1000 | 🎁―――――――🎁―――――――🎁 | $ | gift | colorful | 500 | gift | colorful | 1000 | gift | greyscale | 1500 |\r\n\t\t\t| 1250 | 🎁―――――――🎁―――●―――🎁 | $ | gift | colorful | 500 | gift | colorful | 1000 | gift | greyscale | 1500 |\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario Outline: The stepped progress bar will continue to progress for repeatable rewards\r\n\t\tGiven a Task Card component\r\n\t\tAnd the user progress is <progress>\r\n\t\tAnd the goal is \"5\"\r\n\t\tAnd steps are enabled\r\n\t\tAnd it is repeatable\r\n\t\tThen I have <progressBar>\r\n\t\tAnd the <progressBar> has incrementing steps up to \"5\" in increments of 1\r\n\t\tAnd the first <icon1> is <color1>\r\n\t\tAnd the second <icon2> is <color2>\r\n\t\tAnd the third <icon3> is <color3>\r\n\t\tAnd the steps behind the users progress are brand colour\r\n\t\tAnd the steps infront of the users progress are grey\r\n\t\tExamples:\r\n\t\t\t| progress | progressBar | icon1 | color1 | icon2 | color2 | icon3 | color3 |\r\n\t\t\t| 0 | ―――○―○―○―○―🎁―○―○―○―○―🎁 | NA | NA | gift | greyscale | gift | greyscale |\r\n\t\t\t| 1 | ―――●―○―○―○―🎁―○―○―○―○―🎁 | NA | NA | gift | greyscale | gift | greyscale |\r\n\t\t\t| 5 | ―――●―●―●―●―🎁―○―○―○―○―🎁 | NA | NA | gift | colorful | gift | greyscale |\r\n\t\t\t| 7 | ―――●―●―●―●―🎁―●―●―○―○―🎁 | NA | NA | gift | colorful | gift | greyscale |\r\n\t\t\t| 12 | 🎁―●―●―●―●―🎁―●―●―○―○―🎁 | gift | colorful | gift | colorful | gift | greyscale |";
5808
+ const scenarioProgressBar = "@author:kutay\r\n@owner:kutay\r\nFeature: The progress bar can be shown as a continuous line with progress and end goal. \r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario Outline: The progress bar displays a continuous bar with the goal represented by a present\r\n\t\tGiven a Task Card component\r\n\t\tAnd the users progress is <progress>\r\n\t\tAnd the task goal is \"500\"\r\n\t\tAnd the task is not repeatable\r\n\t\tThen I have <progressBar>\r\n\t\tAnd the <progressBar> shows <progress> with <unit> on the right\r\n\t\tAnd the circle on the progress bar is brand colour\r\n\t\tAnd the line behind the circle is brand colour\r\n\t\tAnd the line infront of the circle is grey\r\n\t\tAnd the gift icon has <color>\r\n\t\tAnd the gift icon shows \"500\" with <unit> below\r\n\t\tExamples:\r\n\t\t\t| progress | progressBar | unit | color |\r\n\t\t\t| 0 | ●――――――――――――――――――🎁 | $ | no |\r\n\t\t\t| 100 | ―――●―――――――――――――――🎁 | $ | no |\r\n\t\t\t| 500 | ―――――――――――――――――――🎁 | $ | yes |\r\n\t\t\t| 650 | ―――――――――――――――――――🎁 | $ | yes |\r\n\t\t\t| 1200 | ―――――――――――――――――――🎁 | $ | yes |\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario Outline: The progress bar can be displayed with steps instead of a continuous line\r\n\t\tGiven a Task Card component\r\n\t\tAnd the user progress is <progress>\r\n\t\tAnd the goal is \"5\"\r\n\t\tAnd steps are enabled\r\n\t\tThen I have <progressBar>\r\n\t\tAnd the <progressBar> has incrementing steps up to \"5\" in increments of 1\r\n\t\tAnd the steps behind the users progress are brand colour\r\n\t\tAnd the steps infront of the users progress are grey\r\n\t\tAnd the gift icon has <color>\r\n\t\tAnd the gift icon shows \"5\" below\r\n\t\tExamples:\r\n\t\t\t| progress | progressBar | color |\r\n\t\t\t| 0 | ―――○―――○―――○―――○―――🎁 | no |\r\n\t\t\t| 1 | ―――●―――○―――○―――○―――🎁 | no |\r\n\t\t\t| 5 | ―――●―――●―――●―――●―――🎁 | yes |\r\n\t\t\t| 7 | ―――●―――●―――●―――●―――🎁 | yes |\r\n\t\t\t| 12 | ―――●―――●―――●―――●―――🎁 | yes |\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario Outline: The continuous progress bar will continue to progress for repeatable rewards\r\n\t\tGiven a Task Card component\r\n\t\tAnd the user progress is <progress>\r\n\t\tAnd the goal is \"500\"\r\n\t\tAnd it is repeatable\r\n\t\tThen I have <progressBar>\r\n\t\tAnd the <progressBar> shows <progress> with <unit> to the right\r\n\t\tAnd the first <icon1> is <color1> with <text1> displayed below\r\n\t\tAnd the second <icon2> is <color2> with <text2> displayed below\r\n\t\tAnd the third <icon3> is <color3> with <text3> displayed below\r\n\t\tAnd the circle on the progress bar is brand colour\r\n\t\tAnd the line behind the circle is brand colour\r\n\t\tAnd the line infront of the circle is grey\r\n\t\tExamples:\r\n\t\t\t| progress | progressBar | unit | icon1 | color1 | text1 | icon2 | color2 | text 2 | icon3 | color3 | text 3 |\r\n\t\t\t| 250 | ――――●――――🎁―――――――🎁 | $ | NA | NA | NA | gift | greyscale | 500 | gift | greyscale | 1000 |\r\n\t\t\t| 500 | ―――――――――🎁―――――――🎁 | $ | NA | NA | NA | gift | colorful | 500 | gift | greyscale | 1000 |\r\n\t\t\t| 750 | ―――――――――🎁―――●―――🎁 | $ | NA | NA | NA | gift | colorful | 500 | gift | greyscale | 1000 |\r\n\t\t\t| 1000 | 🎁―――――――🎁―――――――🎁 | $ | gift | colorful | 500 | gift | colorful | 1000 | gift | greyscale | 1500 |\r\n\t\t\t| 1250 | 🎁―――――――🎁―――●―――🎁 | $ | gift | colorful | 500 | gift | colorful | 1000 | gift | greyscale | 1500 |\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario Outline: The stepped progress bar will continue to progress for repeatable rewards\r\n\t\tGiven a Task Card component\r\n\t\tAnd the user progress is <progress>\r\n\t\tAnd the goal is \"5\"\r\n\t\tAnd steps are enabled\r\n\t\tAnd it is repeatable\r\n\t\tThen I have <progressBar>\r\n\t\tAnd the <progressBar> has incrementing steps up to \"5\" in increments of 1\r\n\t\tAnd the first <icon1> is <color1>\r\n\t\tAnd the second <icon2> is <color2>\r\n\t\tAnd the third <icon3> is <color3>\r\n\t\tAnd the steps behind the users progress are brand colour\r\n\t\tAnd the steps infront of the users progress are grey\r\n\t\tExamples:\r\n\t\t\t| progress | progressBar | icon1 | color1 | icon2 | color2 | icon3 | color3 |\r\n\t\t\t| 0 | ―――○―○―○―○―🎁―○―○―○―○―🎁 | NA | NA | gift | greyscale | gift | greyscale |\r\n\t\t\t| 1 | ―――●―○―○―○―🎁―○―○―○―○―🎁 | NA | NA | gift | greyscale | gift | greyscale |\r\n\t\t\t| 5 | ―――●―●―●―●―🎁―○―○―○―○―🎁 | NA | NA | gift | colorful | gift | greyscale |\r\n\t\t\t| 7 | ―――●―●―●―●―🎁―●―●―○―○―🎁 | NA | NA | gift | colorful | gift | greyscale |\r\n\t\t\t| 12 | 🎁―●―●―●―●―🎁―●―●―○―○―🎁 | gift | colorful | gift | colorful | gift | greyscale |";
5809
5809
 
5810
5810
  const ResizerStylesheet = `
5811
5811
 
@@ -10369,7 +10369,7 @@ const rewardsData$1 = {
10369
10369
  id: "61c100117a82a376d8804166",
10370
10370
  type: "CREDIT",
10371
10371
  value: 19,
10372
- unit: "TESTUNIT",
10372
+ unit: "Points",
10373
10373
  name: null,
10374
10374
  dateGiven: 1640038417468,
10375
10375
  meta: { message: "***CUSTOMER NOTE MESSAGE***" },
@@ -10401,7 +10401,7 @@ const RewardsCellCreditSingle = () => {
10401
10401
  return (index.h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData$1, ...singleRedeemed } }));
10402
10402
  };
10403
10403
  const RewardsCellCreditFull = () => {
10404
- return (index.h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData$1 }, availableText: "19 Points remaining" }));
10404
+ return (index.h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData$1 }, availableText: "{availableAmount} remaining" }));
10405
10405
  };
10406
10406
  const partial = {
10407
10407
  prettyAvailableValue: "10 Points",
@@ -10410,16 +10410,16 @@ const partial = {
10410
10410
  dateRedeemed: 1640038417468,
10411
10411
  };
10412
10412
  const RewardsCellCreditPartial = () => {
10413
- return (index.h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData$1, ...partial }, availableText: "10 Points remaining" }));
10413
+ return (index.h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData$1, ...partial }, availableText: "{availableAmount} remaining" }));
10414
10414
  };
10415
10415
  const RewardsCellCreditCancelled = () => {
10416
- return (index.h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData$1, ...cancelled }, redeemedText: "0 Points redeemed" }));
10416
+ return (index.h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData$1, ...cancelled }, redeemedText: "{redeemedAmount} redeemed" }));
10417
10417
  };
10418
10418
  const RewardsCellCreditExpired = () => {
10419
- return (index.h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData$1, ...partial, ...expired }, redeemedText: "9 Points redeemed" }));
10419
+ return (index.h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData$1, ...partial, ...expired }, redeemedText: "{redeemedAmount} redeemed" }));
10420
10420
  };
10421
10421
  const RewardsCellCreditPending = () => {
10422
- return (index.h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData$1, ...partial, ...pending }, availableText: "9 Points redeemed" }));
10422
+ return (index.h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData$1, ...pending }, availableText: "{availableAmount} remaining" }));
10423
10423
  };
10424
10424
  const empty = {
10425
10425
  prettyAvailableValue: "0 Points",
@@ -10429,7 +10429,7 @@ const empty = {
10429
10429
  dateRedeemed: 1640038417468,
10430
10430
  };
10431
10431
  const RewardsCellCreditRedeemed = () => {
10432
- return (index.h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData$1, ...empty }, availableText: "0 Points remaining" }));
10432
+ return (index.h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData$1, ...empty }, availableText: "{availableAmount} remaining" }));
10433
10433
  };
10434
10434
  const singleRedeemed = {
10435
10435
  prettyValue: "1 Point",
@@ -10441,7 +10441,7 @@ const longName = {
10441
10441
  };
10442
10442
  const RewardsCellCreditLong = () => {
10443
10443
  return (index.h("div", { style: { maxWidth: "222px" } },
10444
- index.h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData$1, ...longName }, availableText: "19 Points with a really really super duper longest name ever in the world wide web remaining" })));
10444
+ index.h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData$1, ...longName }, availableText: "{availableAmount} remaining" })));
10445
10445
  };
10446
10446
  const RewardsCellNonCredit = () => {
10447
10447
  return (index.h("sqm-rewards-table-reward-cell", { reward: {
@@ -10456,7 +10456,7 @@ const RewardsCellFueltank = () => {
10456
10456
  type: "FUELTANK",
10457
10457
  prettyValue: "Fueltank Reward",
10458
10458
  fuelTankCode: "AFUELTANKCODE",
10459
- }, fueltankText: "Your code:", copyText: "Copied" }));
10459
+ }, copyText: "Copied" }));
10460
10460
  };
10461
10461
  const RewardsCellFueltankLong = () => {
10462
10462
  return (index.h("div", { style: { maxWidth: "222px" } },
@@ -10465,7 +10465,7 @@ const RewardsCellFueltankLong = () => {
10465
10465
  type: "FUELTANK",
10466
10466
  prettyValue: "Long Fueltank Reward",
10467
10467
  fuelTankCode: "AFUELTANKCODE123456789123456789123456789123456789",
10468
- }, fueltankText: "Your code:", copyText: "Copied" })));
10468
+ }, copyText: "Copied" })));
10469
10469
  };
10470
10470
  const SourceCellManual = () => {
10471
10471
  return (index.h("sqm-rewards-table-source-cell", { reward: rewardsData$1, rewardSourceText: "Manual" }));
@@ -10660,7 +10660,7 @@ const RewardsTableCell = /*#__PURE__*/Object.freeze({
10660
10660
  EmptyCell: EmptyCell$2
10661
10661
  });
10662
10662
 
10663
- const scenario$p = "@owner:sam\r\n@author:sam\r\nFeature: Rewards Table\r\n\r\n Shows a list of rewards as a table\r\n\r\n @motivating\r\n @ui\r\n Scenario: The empty state is shown if there are no rewards\r\n Given a user with rewards\r\n When they view the reward table\r\n Then no rewards are displayed\r\n And they see an image with a user icon\r\n And \"View your rewards\" in bold\r\n And \"See all the rewards you have earned from referring friends and completing tasks\" below the bolded text\r\n And the pagination buttons are disabled\r\n\r\n @minutae\r\n @ui\r\n Scenario: A custom empty state can be provided\r\n Given a user with no rewards\r\n And a custom empty state has been supplied in the \"empty\" slot\r\n When they view the reward table\r\n Then they see the custom empty state\r\n\r\n @minutae\r\n @ui\r\n Scenario: The loading state is shown while rewards are loading\r\n Given the table is loading\r\n Then the loading state is shown in the table\r\n And a custom loading state can be supplied in the \"loading\" slot\r\n And the pagination buttons are disabled\r\n\r\n @motivating\r\n @ui\r\n Scenario Outline: The table becomes paginated when the number of rewards exceeds the per page limit\r\n Given the user has <number of rewards>\r\n And the table is configured to show <page limit> rewards per page\r\n Then the table will have <number of pages> page(s)\r\n And pagination buttons will allow users to navigate between pages\r\n And the pagination button to go to the next page is disabled on the last page of rewards\r\n And the pagination button to go to the previous page is disabled on the first page of rewards\r\n Examples:\r\n | number of rewards | page limit | number of pages |\r\n | 0 | 4 | 1 |\r\n | 1 | 4 | 1 |\r\n | 3 | 4 | 1 |\r\n | 5 | 4 | 2 |\r\n | 42 | 4 | 11 |\r\n\r\n @motivating\r\n @ui\r\n Scenario: The table converts to a card view on tablet and mobile window sizes\r\n Given a user with rewards\r\n When they view the table\r\n And their window size is smaller than \"899px\"\r\n Then rewards are displayed as cards\r\n And they are in two columns\r\n When their window size is smaller than \"634px\"\r\n Then the rewards are displayed as cards in a singular column\r\n\r\n @motivating\r\n @ui\r\n Scenario: Table and Mobile beakpoints can be configured\r\n Given the reward table has been configured with the following props\r\n | prop | value |\r\n | smBreakpoint | 599 |\r\n | mdBreakpoint | 799 |\r\n And a user with rewards\r\n When they view the table\r\n And their window size is smaller than \"799px\"\r\n Then rewards are displayed as cards\r\n And they are in two columns\r\n When their window size is smaller than \"599px\"\r\n Then the rewards are displayed as cards in a singular column\r\n\r\n @motivating\r\n @ui\r\n Scenario Outline: By default the first column heading is hidden in mobile\r\n Given a reward table with 4 columns\r\n And prop \"hidden-columns\" with <hideColumnValue>\r\n And a user with rewards\r\n When they view the reward table\r\n And their window size is below the tablet breakpoint\r\n Then reward cards are displayed\r\n And the titles of <columnsArehidden> within the card\r\n Examples:\r\n | hideColumnValue | columnsArehidden |\r\n | | the first column |\r\n | 0,1,2 | the first, second and third columns |\r\n | 3 | the fourth column |\r\n\r\n @motivating\r\n Scenario: Only rewards which occured in the program specific by \"program-id\" are shown\r\n Given the table is configured with \"program-id\"\r\n Then only rewards from the program with \"program-id\" are shown\r\n\r\n @landmine\r\n Scenario: Classic program rewards can't be filtered for\r\n There is no easy way for the backend to filter for \"classic\" programs,\r\n since it only allows filtering my \"programId: null\"\r\n and that returns manual rewards and reward exchanges\r\n\r\n Given the \"program-id\" of the table is set to \"classic\"\r\n Then there is an error shown\r\n\r\n @minutae\r\n @ui\r\n Scenario: Column heading can be hidden\r\n Given the table is configured with \"show-labels\" set to false\r\n Then the table is displayed without column headings";
10663
+ const scenario$p = "@owner:sam\r\n@author:sam\r\nFeature: Rewards Table\r\n\r\n Shows a list of rewards as a table\r\n\r\n @motivating\r\n @ui\r\n Scenario: The empty state is shown if there are no rewards\r\n Given a user with rewards\r\n When they view the reward table\r\n Then no rewards are displayed\r\n And they see an image with a user icon\r\n And \"View your rewards\" in bold\r\n And \"See all the rewards you have earned from referring friends and completing tasks\" below the bolded text\r\n And the pagination buttons are disabled\r\n\r\n @minutae\r\n @ui\r\n Scenario: A custom empty state can be provided\r\n Given a user with no rewards\r\n And a custom empty state has been supplied in the \"empty\" slot\r\n When they view the reward table\r\n Then they see the custom empty state\r\n\r\n @minutae\r\n @ui\r\n Scenario: The loading state is shown while rewards are loading\r\n Given the table is loading\r\n Then the loading state is shown in the table\r\n And a custom loading state can be supplied in the \"loading\" slot\r\n And the pagination buttons are disabled\r\n\r\n @motivating\r\n @ui\r\n Scenario Outline: The table becomes paginated when the number of rewards exceeds the per page limit\r\n Given the user has <number of rewards>\r\n And the table is configured to show <page limit> rewards per page\r\n Then the table will have <number of pages> page(s)\r\n And pagination buttons will allow users to navigate between pages\r\n And the pagination button to go to the next page is disabled on the last page of rewards\r\n And the pagination button to go to the previous page is disabled on the first page of rewards\r\n Examples:\r\n | number of rewards | page limit | number of pages |\r\n | 0 | 4 | 1 |\r\n | 1 | 4 | 1 |\r\n | 3 | 4 | 1 |\r\n | 5 | 4 | 2 |\r\n | 42 | 4 | 11 |\r\n\r\n @motivating\r\n @ui\r\n Scenario: The table converts to a card view on tablet and mobile window sizes\r\n Given a user with rewards\r\n When they view the table\r\n And their window size is smaller than \"899px\"\r\n Then rewards are displayed as cards\r\n And they are in two columns\r\n When their window size is smaller than \"634px\"\r\n Then the rewards are displayed as cards in a singular column\r\n\r\n @motivating\r\n @ui\r\n Scenario: Table and Mobile beakpoints can be configured\r\n Given the reward table has been configured with the following props\r\n | prop | value |\r\n | smBreakpoint | 599 |\r\n | mdBreakpoint | 799 |\r\n And a user with rewards\r\n When they view the table\r\n And their window size is smaller than \"799px\"\r\n Then rewards are displayed as cards\r\n And they are in two columns\r\n When their window size is smaller than \"599px\"\r\n Then the rewards are displayed as cards in a singular column\r\n\r\n @motivating\r\n @ui\r\n Scenario Outline: By default the first column heading is hidden in mobile\r\n Given a reward table with 4 columns\r\n And prop \"hidden-columns\" with <hideColumnValue>\r\n And a user with rewards\r\n When they view the reward table\r\n And their window size is below the tablet breakpoint\r\n Then reward cards are displayed\r\n And the titles of <columnsArehidden> within the card\r\n Examples:\r\n | hideColumnValue | columnsArehidden |\r\n | | the first column |\r\n | 0,1,2 | the first, second and third columns |\r\n | 3 | the fourth column |\r\n\r\n @motivating\r\n Scenario: Only rewards which occured in the program specific by \"program-id\" are shown\r\n Given the table is configured with \"program-id\"\r\n Then only rewards from the program with \"program-id\" are shown\r\n\r\n @landmine\r\n Scenario: When a `classic` program Id is set then any reward without a programId is shown\r\n There is no easy way for the backend to filter for \"classic\" programs,\r\n thus we are filtering for rewards without programId's.\r\n\r\n Given the \"program-id\" of the table is set to \"classic\"\r\n Then rewards from classic programs are shown\r\n And manual rewards are shown\r\n\r\n @minutae\r\n @ui\r\n Scenario: Column heading can be hidden\r\n Given the table is configured with \"show-labels\" set to false\r\n Then the table is displayed without column headings";
10664
10664
 
10665
10665
  const RewardsTable_stories = {
10666
10666
  title: "Components/Rewards Table",
@@ -11438,7 +11438,7 @@ const Scroll_stories = {
11438
11438
  };
11439
11439
  const ScrollTag = () => {
11440
11440
  return (index.h("div", { style: { position: "relative", height: "2000px" } },
11441
- index.h("sqm-scroll", { "scroll-tag-name": "sqm-text", "button-text": "Scroll" }),
11441
+ index.h("sqm-scroll", { "scroll-tag-name": "sqm-text", "button-text": "Scroll", "scroll-animation": "smooth" }),
11442
11442
  index.h("div", { style: { position: "absolute", bottom: "0" } },
11443
11443
  index.h("sqm-text", { slot: "label" },
11444
11444
  index.h("h3", null, "Earn more rewards"),
@@ -11446,7 +11446,15 @@ const ScrollTag = () => {
11446
11446
  };
11447
11447
  const ScrollId = () => {
11448
11448
  return (index.h("div", { style: { position: "relative", height: "2000px" } },
11449
- index.h("sqm-scroll", { "button-text": "Scroll", "scroll-id": "my-id" }),
11449
+ index.h("sqm-scroll", { "button-text": "Scroll", "scroll-id": "my-id", "scroll-animation": "smooth" }),
11450
+ index.h("div", { style: { position: "absolute", bottom: "0" } },
11451
+ index.h("sqm-text", { slot: "label", id: "my-id" },
11452
+ index.h("h3", null, "Earn more rewards"),
11453
+ index.h("p", null, "Get points while using Klip. Use those points to redeem rewards like one free month of Klip Enterprise or two plane tickets to anywhere in North America")))));
11454
+ };
11455
+ const ScrollAutoAnimation = () => {
11456
+ return (index.h("div", { style: { position: "relative", height: "2000px" } },
11457
+ index.h("sqm-scroll", { "button-text": "Scroll", "scroll-id": "my-id", "scroll-animation": "auto" }),
11450
11458
  index.h("div", { style: { position: "absolute", bottom: "0" } },
11451
11459
  index.h("sqm-text", { slot: "label", id: "my-id" },
11452
11460
  index.h("h3", null, "Earn more rewards"),
@@ -11454,7 +11462,7 @@ const ScrollId = () => {
11454
11462
  };
11455
11463
  const ScrollTabGroup = () => {
11456
11464
  return (index.h("div", { style: { position: "relative", height: "2000px" } },
11457
- index.h("sqm-scroll", { "button-text": "Redeem rewards", "scroll-id": "tab-3" }),
11465
+ index.h("sqm-scroll", { "button-text": "Redeem rewards", "scroll-id": "tab-3", "scroll-animation": "smooth" }),
11458
11466
  index.h("div", { style: { position: "absolute", bottom: "0" }, innerHTML: `
11459
11467
  <sqm-tabs>
11460
11468
  <sqm-tab header="Leaderboard">
@@ -11543,12 +11551,9 @@ const ShoelaceProps = () => {
11543
11551
  index.h("br", null),
11544
11552
  " ",
11545
11553
  index.h("hr", null),
11546
- index.h("h3", null, "Caret:"),
11547
- index.h("sqm-scroll", { caret: true }, "Button"),
11548
- index.h("br", null),
11549
- " ",
11550
- index.h("hr", null),
11551
11554
  index.h("h3", null, "Icon:"),
11555
+ index.h("sqm-scroll", { "button-type": "primary", iconName: "facebook" }, "Icon Name"),
11556
+ index.h("br", null),
11552
11557
  index.h("sqm-scroll", { iconName: "gear", iconSlot: "prefix" }, "Icon Slot Prefix"),
11553
11558
  index.h("br", null),
11554
11559
  index.h("sqm-scroll", { iconName: "gear", iconSlot: "suffix" }, "Icon Slot Suffix"),
@@ -11565,22 +11570,8 @@ const ShoelaceProps = () => {
11565
11570
  index.h("br", null),
11566
11571
  " ",
11567
11572
  index.h("hr", null),
11568
- index.h("h3", null, "Disabled:"),
11569
- index.h("sqm-scroll", { disabled: true }, "Button"),
11570
- index.h("br", null),
11571
- " ",
11572
- index.h("hr", null),
11573
- index.h("h3", null, "Link:"),
11574
- index.h("sqm-scroll", { href: "https://example.com/" }, "Link"),
11575
- index.h("br", null),
11576
- index.h("sqm-scroll", { href: "https://example.com/", target: "_self" }, "Same Window"),
11577
- index.h("br", null),
11578
- index.h("sqm-scroll", { href: "/assets/images/wordmark.svg", download: "shoelace.svg" }, "Download"),
11579
- index.h("br", null),
11580
- " ",
11581
- index.h("hr", null),
11582
11573
  index.h("h3", null, "Mobile Friendly:"),
11583
- index.h("sqm-scroll", { "mobile-friendly": true }, "Button"),
11574
+ index.h("sqm-scroll", { mobile: true }, "Button"),
11584
11575
  index.h("br", null),
11585
11576
  " ",
11586
11577
  index.h("hr", null)));
@@ -11591,6 +11582,7 @@ const Scroll = /*#__PURE__*/Object.freeze({
11591
11582
  'default': Scroll_stories,
11592
11583
  ScrollTag: ScrollTag,
11593
11584
  ScrollId: ScrollId,
11585
+ ScrollAutoAnimation: ScrollAutoAnimation,
11594
11586
  ScrollTabGroup: ScrollTabGroup,
11595
11587
  ScrollTabGroupInner: ScrollTabGroupInner,
11596
11588
  ShoelaceProps: ShoelaceProps
@@ -31,7 +31,7 @@ function setupGraphQL() {
31
31
  }, []);
32
32
  }
33
33
  const View = (statType, format) => {
34
- console.log(`View("${statType}") - CALLED`);
34
+ // console.log(`View("${statType}") - CALLED`);
35
35
  setupGraphQL();
36
36
  return (h("div", null,
37
37
  h("b", null, "Stat format:"),
@@ -38,7 +38,7 @@ _, status) => {
38
38
  `, { queryFilter }, (res) => {
39
39
  var _a, _b, _c, _d, _e, _f, _g;
40
40
  return ({
41
- 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,
41
+ 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,
42
42
  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(),
43
43
  });
44
44
  });
@@ -64,7 +64,7 @@ const View = (overrideProps) => {
64
64
  ...overrideProps,
65
65
  };
66
66
  const { leaderboardType, rankType } = props;
67
- console.log(`View("${leaderboardType}") - CALLED`, { ...props });
67
+ // console.log(`View("${leaderboardType}") - CALLED`, { ...props });
68
68
  return (h("div", { style: { marginBottom: "20px" } },
69
69
  h("sqm-divided-layout", { direction: "row" },
70
70
  h("div", { style: { padding: "10px" } },
@@ -146,7 +146,7 @@ export const DemoHookEmpty = createHookStory(() => {
146
146
  anonymousUser: "Anonymous User",
147
147
  showRank: true,
148
148
  },
149
- }
149
+ },
150
150
  } },
151
151
  h("sqm-empty", { "empty-state-image": "https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_leaderboard2.png", "empty-state-header": "View your rank in the leaderboard", "empty-state-text": "Be the first to refer a friend and reach the top of the leaderboard" })));
152
152
  });
@@ -52,10 +52,6 @@ export function LeaderboardView(props) {
52
52
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
53
53
  const { states, data, elements } = props;
54
54
  const { styles } = states;
55
- console.log("LEADER", props);
56
- console.log(styles);
57
- console.log("hideViewer", styles.hideViewer);
58
- console.log(!styles.hideViewer);
59
55
  if (states.loading)
60
56
  return (h("div", { class: sheet.classes.Leaderboard },
61
57
  h("style", { type: "text/css" },
@@ -91,7 +87,6 @@ export function LeaderboardView(props) {
91
87
  h("td", { class: "Score" }, user.value)));
92
88
  }),
93
89
  !userSeenFlag && !styles.hideViewer && (h("tr", null,
94
- console.log("res", !userSeenFlag && !styles.hideViewer),
95
90
  h("td", { colSpan: 100, class: "ellipses" },
96
91
  h("sl-icon", { name: "three-dots", style: { verticalAlign: "middle" } })))),
97
92
  !userSeenFlag && !styles.hideViewer && (h("tr", { class: "highlight" },
@@ -488,7 +488,7 @@ export const FullRewardsTable = () => {
488
488
  prevLabel: "Prev",
489
489
  moreLabel: "View More",
490
490
  },
491
- hiddenColumns: "",
491
+ hiddenColumns: "1",
492
492
  mdBreakpoint: 899,
493
493
  smBreakpoint: 599,
494
494
  },
@@ -116,7 +116,6 @@ export class ReferralTableRewardsCell {
116
116
  }, {
117
117
  status: state,
118
118
  });
119
- const rid = Math.random().toString(36).slice(2);
120
119
  return (h("sl-details", { class: sheet.classes.Details, disabled: this.hideDetails },
121
120
  h("style", { type: "text/css" }, styleString),
122
121
  h("div", { slot: "summary", class: sheet.classes.DetailsContainer },
@@ -14,7 +14,7 @@ const rewardsData = {
14
14
  id: "61c100117a82a376d8804166",
15
15
  type: "CREDIT",
16
16
  value: 19,
17
- unit: "TESTUNIT",
17
+ unit: "Points",
18
18
  name: null,
19
19
  dateGiven: 1640038417468,
20
20
  meta: { message: "***CUSTOMER NOTE MESSAGE***" },
@@ -46,7 +46,7 @@ export const RewardsCellCreditSingle = () => {
46
46
  return (h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData, ...singleRedeemed } }));
47
47
  };
48
48
  export const RewardsCellCreditFull = () => {
49
- return (h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData }, availableText: "19 Points remaining" }));
49
+ return (h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData }, availableText: "{availableAmount} remaining" }));
50
50
  };
51
51
  const partial = {
52
52
  prettyAvailableValue: "10 Points",
@@ -55,16 +55,16 @@ const partial = {
55
55
  dateRedeemed: 1640038417468,
56
56
  };
57
57
  export const RewardsCellCreditPartial = () => {
58
- return (h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData, ...partial }, availableText: "10 Points remaining" }));
58
+ return (h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData, ...partial }, availableText: "{availableAmount} remaining" }));
59
59
  };
60
60
  export const RewardsCellCreditCancelled = () => {
61
- return (h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData, ...cancelled }, redeemedText: "0 Points redeemed" }));
61
+ return (h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData, ...cancelled }, redeemedText: "{redeemedAmount} redeemed" }));
62
62
  };
63
63
  export const RewardsCellCreditExpired = () => {
64
- return (h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData, ...partial, ...expired }, redeemedText: "9 Points redeemed" }));
64
+ return (h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData, ...partial, ...expired }, redeemedText: "{redeemedAmount} redeemed" }));
65
65
  };
66
66
  export const RewardsCellCreditPending = () => {
67
- return (h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData, ...partial, ...pending }, availableText: "9 Points redeemed" }));
67
+ return (h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData, ...pending }, availableText: "{availableAmount} remaining" }));
68
68
  };
69
69
  const empty = {
70
70
  prettyAvailableValue: "0 Points",
@@ -74,7 +74,7 @@ const empty = {
74
74
  dateRedeemed: 1640038417468,
75
75
  };
76
76
  export const RewardsCellCreditRedeemed = () => {
77
- return (h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData, ...empty }, availableText: "0 Points remaining" }));
77
+ return (h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData, ...empty }, availableText: "{availableAmount} remaining" }));
78
78
  };
79
79
  const singleRedeemed = {
80
80
  prettyValue: "1 Point",
@@ -86,7 +86,7 @@ const longName = {
86
86
  };
87
87
  export const RewardsCellCreditLong = () => {
88
88
  return (h("div", { style: { maxWidth: "222px" } },
89
- h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData, ...longName }, availableText: "19 Points with a really really super duper longest name ever in the world wide web remaining" })));
89
+ h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData, ...longName }, availableText: "{availableAmount} remaining" })));
90
90
  };
91
91
  export const RewardsCellNonCredit = () => {
92
92
  return (h("sqm-rewards-table-reward-cell", { reward: {
@@ -101,7 +101,7 @@ export const RewardsCellFueltank = () => {
101
101
  type: "FUELTANK",
102
102
  prettyValue: "Fueltank Reward",
103
103
  fuelTankCode: "AFUELTANKCODE",
104
- }, fueltankText: "Your code:", copyText: "Copied" }));
104
+ }, copyText: "Copied" }));
105
105
  };
106
106
  export const RewardsCellFueltankLong = () => {
107
107
  return (h("div", { style: { maxWidth: "222px" } },
@@ -110,7 +110,7 @@ export const RewardsCellFueltankLong = () => {
110
110
  type: "FUELTANK",
111
111
  prettyValue: "Long Fueltank Reward",
112
112
  fuelTankCode: "AFUELTANKCODE123456789123456789123456789123456789",
113
- }, fueltankText: "Your code:", copyText: "Copied" })));
113
+ }, copyText: "Copied" })));
114
114
  };
115
115
  export const SourceCellManual = () => {
116
116
  return (h("sqm-rewards-table-source-cell", { reward: rewardsData, rewardSourceText: "Manual" }));
@@ -86,17 +86,16 @@ export class RewardTableRewardsCell {
86
86
  if (reward.type === "FUELTANK") {
87
87
  return (h("div", { class: sheet.classes.Fueltank },
88
88
  reward.prettyValue,
89
- h("div", { class: "code", onClick: () => navigator.clipboard.writeText(reward.fuelTankCode) },
89
+ reward.fuelTankCode && (h("div", { class: "code", onClick: () => navigator.clipboard.writeText(reward.fuelTankCode) },
90
90
  h("sl-tooltip", { trigger: "click", placement: "top", distance: 5, skidding: 11, content: this.copyText, "onSl-show": (e) => setTimeout(() => e.path[0].hide(), 1000) },
91
91
  h("span", { class: "text" }, reward.fuelTankCode),
92
92
  h("span", { class: "icon" },
93
- h("sl-icon", { name: "files" }))))));
93
+ h("sl-icon", { name: "files" })))))));
94
94
  }
95
95
  if (reward.type === "CREDIT" && !singleReward) {
96
- const progress = Math.round(((parseFloat(reward.prettyValueNumber) -
97
- parseFloat(reward.prettyRedeemedNumber)) /
98
- parseFloat(reward.prettyValueNumber)) *
99
- 100);
96
+ const remainingValue = parseFloat(reward.prettyValueNumber) -
97
+ parseFloat(reward.prettyRedeemedNumber);
98
+ const progress = Math.round((remainingValue / parseFloat(reward.prettyValueNumber)) * 100);
100
99
  const progressBarSubtext = reward.statuses.includes("EXPIRED") ||
101
100
  reward.statuses.includes("CANCELLED") ? (h("div", null, intl.formatMessage({
102
101
  id: "redeemedText",
@@ -107,7 +106,9 @@ export class RewardTableRewardsCell {
107
106
  id: "availableText",
108
107
  defaultMessage: this.availableText,
109
108
  }, {
110
- availableAmount: reward.prettyAvailableValue,
109
+ availableAmount: reward.statuses.includes("PENDING")
110
+ ? reward.prettyAssignedCredit
111
+ : reward.prettyAvailableValue,
111
112
  })));
112
113
  const style = {
113
114
  Progress: {
@@ -214,23 +215,6 @@ export class RewardTableRewardsCell {
214
215
  "attribute": "available-text",
215
216
  "reflect": false
216
217
  },
217
- "fueltankText": {
218
- "type": "string",
219
- "mutable": false,
220
- "complexType": {
221
- "original": "string",
222
- "resolved": "string",
223
- "references": {}
224
- },
225
- "required": false,
226
- "optional": false,
227
- "docs": {
228
- "tags": [],
229
- "text": ""
230
- },
231
- "attribute": "fueltank-text",
232
- "reflect": false
233
- },
234
218
  "copyText": {
235
219
  "type": "string",
236
220
  "mutable": false,
@@ -18,10 +18,6 @@ export class RewardsTableColumn {
18
18
  * @uiName Remaining Amount Text
19
19
  */
20
20
  this.availableText = "{availableAmount} remaining";
21
- /**
22
- * @uiName Fuel Tank Text
23
- */
24
- this.fueltankText = "Your code:";
25
21
  /**
26
22
  * @uiName Copied Fuel Tank Text
27
23
  */
@@ -30,7 +26,7 @@ export class RewardsTableColumn {
30
26
  }
31
27
  disconnectedCallback() { }
32
28
  async renderCell(data, locale) {
33
- return (h("sqm-rewards-table-reward-cell", { reward: data === null || data === void 0 ? void 0 : data[0], redeemedText: this.redeemedText, availableText: this.availableText, fueltankText: this.fueltankText, locale: locale }));
29
+ return (h("sqm-rewards-table-reward-cell", { reward: data === null || data === void 0 ? void 0 : data[0], redeemedText: this.redeemedText, availableText: this.availableText, copyText: this.copyText, locale: locale }));
34
30
  }
35
31
  async renderLabel() {
36
32
  return this.columnTitle;
@@ -105,27 +101,6 @@ export class RewardsTableColumn {
105
101
  "reflect": false,
106
102
  "defaultValue": "\"{availableAmount} remaining\""
107
103
  },
108
- "fueltankText": {
109
- "type": "string",
110
- "mutable": false,
111
- "complexType": {
112
- "original": "string",
113
- "resolved": "string",
114
- "references": {}
115
- },
116
- "required": false,
117
- "optional": false,
118
- "docs": {
119
- "tags": [{
120
- "text": "Fuel Tank Text",
121
- "name": "uiName"
122
- }],
123
- "text": ""
124
- },
125
- "attribute": "fueltank-text",
126
- "reflect": false,
127
- "defaultValue": "\"Your code:\""
128
- },
129
104
  "copyText": {
130
105
  "type": "string",
131
106
  "mutable": false,