@saasquatch/mint-components 1.5.0-13 → 1.5.0-17

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 (213) hide show
  1. package/CHANGELOG.md +48 -24
  2. package/dist/cjs/{global-89f66e76.js → global-5ca2a131.js} +5 -5
  3. package/dist/cjs/loader.cjs.js +2 -2
  4. package/dist/cjs/mint-components.cjs.js +2 -2
  5. package/dist/cjs/sqm-big-stat.cjs.entry.js +1 -1
  6. package/dist/cjs/sqm-brand_39.cjs.entry.js +422 -238
  7. package/dist/cjs/sqm-card-feed-view-17fd3f0a.js +369 -0
  8. package/dist/cjs/sqm-card-feed.cjs.entry.js +4 -5
  9. package/dist/cjs/{sqm-leaderboard-rank-view-510f16d3.js → sqm-leaderboard-rank-view-dff9de2e.js} +1 -1
  10. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +2 -2
  11. package/dist/cjs/{sqm-portal-email-verification-view-5093ac20.js → sqm-portal-email-verification-view-f0cbd78b.js} +1 -1
  12. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +10 -3
  13. package/dist/cjs/{sqm-portal-footer-view-03408484.js → sqm-portal-footer-view-c714590c.js} +1 -1
  14. package/dist/cjs/sqm-portal-footer.cjs.entry.js +2 -2
  15. package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +16 -4
  16. package/dist/cjs/{sqm-portal-profile-view-1a6327e4.js → sqm-portal-profile-view-f0233000.js} +3 -2
  17. package/dist/cjs/sqm-portal-profile.cjs.entry.js +2 -2
  18. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +9 -1
  19. package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +10 -2
  20. package/dist/cjs/{sqm-program-explainer-step-view-54424840.js → sqm-program-explainer-step-view-17c5e99d.js} +4 -4
  21. package/dist/cjs/sqm-program-explainer-step.cjs.entry.js +1 -1
  22. package/dist/cjs/{sqm-program-explainer-view-db516613.js → sqm-program-explainer-view-d516c9df.js} +2 -2
  23. package/dist/cjs/sqm-program-explainer.cjs.entry.js +1 -1
  24. package/dist/cjs/{useDemoBigStat-5f770877.js → useDemoBigStat-49cd314a.js} +1 -2
  25. package/dist/collection/components/sqm-big-stat/sqm-big-stat.js +20 -0
  26. package/dist/collection/components/sqm-big-stat/useBigStat.js +1 -2
  27. package/dist/collection/components/sqm-card-feed/CardFeed.stories.js +13 -1
  28. package/dist/collection/components/sqm-card-feed/sqm-card-feed-view.js +7 -10
  29. package/dist/collection/components/sqm-card-feed/sqm-card-feed.js +9 -13
  30. package/dist/collection/components/sqm-portal-container/PortalContainer.stories.js +11 -1
  31. package/dist/collection/components/sqm-portal-container/sqm-portal-container-view.js +2 -1
  32. package/dist/collection/components/sqm-portal-container/sqm-portal-container.js +25 -0
  33. package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification.js +27 -0
  34. package/dist/collection/components/sqm-portal-email-verification/usePortalEmailVerification.js +2 -1
  35. package/dist/collection/components/sqm-portal-forgot-password/PortalForgotPassword.stories.js +4 -0
  36. package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password.js +55 -3
  37. package/dist/collection/components/sqm-portal-forgot-password/usePortalForgotPassword.js +4 -2
  38. package/dist/collection/components/sqm-portal-login/PortalLogin.stories.js +6 -0
  39. package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +59 -4
  40. package/dist/collection/components/sqm-portal-login/usePortalLogin.js +4 -2
  41. package/dist/collection/components/sqm-portal-register/PortalRegister.stories.js +5 -0
  42. package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +55 -2
  43. package/dist/collection/components/sqm-portal-register/usePortalRegister.js +3 -0
  44. package/dist/collection/components/sqm-portal-reset-password/sqm-portal-reset-password.js +30 -1
  45. package/dist/collection/components/sqm-portal-reset-password/usePortalResetPassword.js +1 -1
  46. package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email.js +30 -1
  47. package/dist/collection/components/sqm-portal-verify-email/usePortalVerifyEmail.js +2 -2
  48. package/dist/collection/components/sqm-program-explainer/ProgramExplainer.stories.js +1 -1
  49. package/dist/collection/components/sqm-program-explainer/sqm-program-explainer-view.js +2 -2
  50. package/dist/collection/components/sqm-program-explainer-step/ProgramExplainerStep.stories.js +1 -1
  51. package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step-view.js +5 -5
  52. package/dist/collection/components/sqm-referral-table/sqm-referral-table.js +5 -2
  53. package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeListData.js +13 -8
  54. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +91 -114
  55. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +113 -5
  56. package/dist/collection/components/sqm-share-button/ShareButton.stories.js +21 -0
  57. package/dist/collection/components/sqm-share-button/sqm-share-button-view.js +17 -9
  58. package/dist/collection/components/sqm-share-button/sqm-share-button.js +62 -10
  59. package/dist/collection/components/sqm-task-card/TaskCard.stories.js +12 -0
  60. package/dist/collection/components/sqm-task-card/progress-bar/SVGs.js +1 -1
  61. package/dist/collection/components/sqm-task-card/progress-bar/progress-bar-view.js +24 -31
  62. package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +79 -22
  63. package/dist/collection/components/sqm-task-card/sqm-task-card.js +106 -0
  64. package/dist/collection/components/sqm-user-name/sqm-user-name.js +1 -1
  65. package/dist/collection/global/styles.js +5 -5
  66. package/dist/collection/global/styles.ts +5 -5
  67. package/dist/esm/{global-e0e25c22.js → global-1c68ff6e.js} +5 -5
  68. package/dist/esm/loader.js +2 -2
  69. package/dist/esm/mint-components.js +2 -2
  70. package/dist/esm/sqm-big-stat.entry.js +1 -1
  71. package/dist/esm/sqm-brand_39.entry.js +422 -238
  72. package/dist/esm/sqm-card-feed-view-cdd1f818.js +367 -0
  73. package/dist/esm/sqm-card-feed.entry.js +4 -5
  74. package/dist/esm/{sqm-leaderboard-rank-view-cd1e8962.js → sqm-leaderboard-rank-view-95e6fb4f.js} +1 -1
  75. package/dist/esm/sqm-leaderboard-rank.entry.js +2 -2
  76. package/dist/esm/{sqm-portal-email-verification-view-2af31979.js → sqm-portal-email-verification-view-71eb8adb.js} +1 -1
  77. package/dist/esm/sqm-portal-email-verification.entry.js +10 -3
  78. package/dist/esm/{sqm-portal-footer-view-60cd9ae5.js → sqm-portal-footer-view-5cb00c4e.js} +1 -1
  79. package/dist/esm/sqm-portal-footer.entry.js +2 -2
  80. package/dist/esm/sqm-portal-forgot-password.entry.js +16 -4
  81. package/dist/esm/{sqm-portal-profile-view-ba06e776.js → sqm-portal-profile-view-864dd5b5.js} +3 -2
  82. package/dist/esm/sqm-portal-profile.entry.js +2 -2
  83. package/dist/esm/sqm-portal-reset-password.entry.js +9 -1
  84. package/dist/esm/sqm-portal-verify-email.entry.js +10 -2
  85. package/dist/esm/{sqm-program-explainer-step-view-7c0d5f71.js → sqm-program-explainer-step-view-e2b39225.js} +4 -4
  86. package/dist/esm/sqm-program-explainer-step.entry.js +1 -1
  87. package/dist/esm/{sqm-program-explainer-view-ab291eb4.js → sqm-program-explainer-view-f726f5ec.js} +2 -2
  88. package/dist/esm/sqm-program-explainer.entry.js +1 -1
  89. package/dist/esm/{useDemoBigStat-a0dd50ab.js → useDemoBigStat-acd4b73f.js} +1 -2
  90. package/dist/esm-es5/{global-e0e25c22.js → global-1c68ff6e.js} +1 -1
  91. package/dist/esm-es5/loader.js +1 -1
  92. package/dist/esm-es5/mint-components.js +1 -1
  93. package/dist/esm-es5/sqm-big-stat.entry.js +1 -1
  94. package/dist/esm-es5/sqm-brand_39.entry.js +1 -1
  95. package/dist/esm-es5/sqm-card-feed-view-cdd1f818.js +1 -0
  96. package/dist/esm-es5/sqm-card-feed.entry.js +1 -1
  97. package/dist/esm-es5/{sqm-leaderboard-rank-view-cd1e8962.js → sqm-leaderboard-rank-view-95e6fb4f.js} +1 -1
  98. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  99. package/dist/esm-es5/{sqm-portal-email-verification-view-2af31979.js → sqm-portal-email-verification-view-71eb8adb.js} +1 -1
  100. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  101. package/dist/esm-es5/{sqm-portal-footer-view-60cd9ae5.js → sqm-portal-footer-view-5cb00c4e.js} +1 -1
  102. package/dist/esm-es5/sqm-portal-footer.entry.js +1 -1
  103. package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
  104. package/dist/esm-es5/sqm-portal-profile-view-864dd5b5.js +1 -0
  105. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  106. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  107. package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
  108. package/dist/esm-es5/{sqm-program-explainer-step-view-7c0d5f71.js → sqm-program-explainer-step-view-e2b39225.js} +1 -1
  109. package/dist/esm-es5/sqm-program-explainer-step.entry.js +1 -1
  110. package/dist/esm-es5/{sqm-program-explainer-view-ab291eb4.js → sqm-program-explainer-view-f726f5ec.js} +1 -1
  111. package/dist/esm-es5/sqm-program-explainer.entry.js +1 -1
  112. package/dist/esm-es5/{useDemoBigStat-a0dd50ab.js → useDemoBigStat-acd4b73f.js} +1 -1
  113. package/dist/mint-components/global/styles.ts +5 -5
  114. package/dist/mint-components/mint-components.esm.js +1 -1
  115. package/dist/mint-components/mint-components.js +1 -1
  116. package/dist/mint-components/{p-bbb06296.entry.js → p-05de158b.entry.js} +1 -1
  117. package/dist/mint-components/p-0b7cc270.system.js +1 -0
  118. package/dist/mint-components/p-172e487a.system.entry.js +1 -0
  119. package/dist/mint-components/{p-759d3800.entry.js → p-26e63ecb.entry.js} +2 -2
  120. package/dist/mint-components/{p-376a0b37.js → p-35ee8cdf.js} +1 -1
  121. package/dist/mint-components/p-3e187434.system.js +1 -0
  122. package/dist/mint-components/{p-5001b2d1.system.js → p-5744f326.system.js} +1 -1
  123. package/dist/mint-components/p-5896caca.system.js +1 -0
  124. package/dist/mint-components/p-59cc7a26.system.entry.js +1 -0
  125. package/dist/mint-components/{p-8b523e73.entry.js → p-5b9a5dfa.entry.js} +1 -1
  126. package/dist/mint-components/{p-f79454fc.entry.js → p-69e273b4.entry.js} +1 -1
  127. package/dist/mint-components/p-6b8d51d6.entry.js +1 -0
  128. package/dist/mint-components/{p-0d0ec6fd.system.entry.js → p-6caa44e1.system.entry.js} +1 -1
  129. package/dist/mint-components/{p-0e95b67b.js → p-700f96f5.js} +1 -1
  130. package/dist/mint-components/{p-a8246a50.system.entry.js → p-71b6d552.system.entry.js} +1 -1
  131. package/dist/mint-components/{p-02dc36a4.system.js → p-7638bf48.system.js} +1 -1
  132. package/dist/mint-components/p-7798ebd4.js +1 -0
  133. package/dist/mint-components/{p-0e8ae7e3.system.js → p-79baab87.system.js} +1 -1
  134. package/dist/mint-components/p-7f6d37d8.entry.js +1 -0
  135. package/dist/mint-components/p-878ff4ca.entry.js +1 -0
  136. package/dist/mint-components/{p-4fc31af7.system.js → p-89d63744.system.js} +1 -1
  137. package/dist/mint-components/p-8c3d0392.system.entry.js +1 -0
  138. package/dist/mint-components/{p-8a261335.system.entry.js → p-8f58ce03.system.entry.js} +1 -1
  139. package/dist/mint-components/p-9a82ec56.entry.js +1 -0
  140. package/dist/mint-components/{p-21b4044a.entry.js → p-9bc12158.entry.js} +1 -1
  141. package/dist/mint-components/p-a3a5c48f.js +1 -0
  142. package/dist/mint-components/{p-2027edc0.system.entry.js → p-a424ac85.system.entry.js} +1 -1
  143. package/dist/mint-components/{p-1f95b411.js → p-a72143af.js} +1 -1
  144. package/dist/mint-components/p-b0d598db.system.entry.js +1 -0
  145. package/dist/mint-components/p-b11625ed.system.entry.js +1 -0
  146. package/dist/mint-components/p-b2cbbcce.system.js +1 -0
  147. package/dist/mint-components/p-ba1f4bf4.system.entry.js +1 -0
  148. package/dist/mint-components/{p-f8f125a7.system.js → p-bb7fd343.system.js} +1 -1
  149. package/dist/mint-components/{p-11cd0656.js → p-bd0887fb.js} +1 -1
  150. package/dist/mint-components/{p-72a5a051.system.entry.js → p-bffad7b3.system.entry.js} +1 -1
  151. package/dist/mint-components/p-c3d0b165.entry.js +1 -0
  152. package/dist/mint-components/p-c4a8c149.system.entry.js +1 -0
  153. package/dist/mint-components/{p-046c45b1.entry.js → p-c61028b0.entry.js} +1 -1
  154. package/dist/mint-components/{p-f7f87338.js → p-cd0ff606.js} +1 -1
  155. package/dist/mint-components/{p-8fd8682c.js → p-d793d269.js} +1 -1
  156. package/dist/mint-components/{p-4b719313.js → p-da46fc91.js} +1 -1
  157. package/dist/mint-components/{p-2e63dcfd.system.js → p-f47bf492.system.js} +1 -1
  158. package/dist/mint-components/p-ff74bee4.entry.js +372 -0
  159. package/dist/types/components/sqm-big-stat/sqm-big-stat.d.ts +6 -0
  160. package/dist/types/components/sqm-card-feed/sqm-card-feed-view.d.ts +2 -1
  161. package/dist/types/components/sqm-card-feed/sqm-card-feed.d.ts +3 -4
  162. package/dist/types/components/sqm-portal-container/PortalContainer.stories.d.ts +2 -0
  163. package/dist/types/components/sqm-portal-container/sqm-portal-container-view.d.ts +1 -0
  164. package/dist/types/components/sqm-portal-container/sqm-portal-container.d.ts +4 -0
  165. package/dist/types/components/sqm-portal-email-verification/sqm-portal-email-verification.d.ts +6 -0
  166. package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.d.ts +1 -0
  167. package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password.d.ts +10 -0
  168. package/dist/types/components/sqm-portal-forgot-password/usePortalForgotPassword.d.ts +3 -1
  169. package/dist/types/components/sqm-portal-login/sqm-portal-login-view.d.ts +2 -0
  170. package/dist/types/components/sqm-portal-login/sqm-portal-login.d.ts +8 -0
  171. package/dist/types/components/sqm-portal-login/usePortalLogin.d.ts +3 -3
  172. package/dist/types/components/sqm-portal-register/sqm-portal-register-view.d.ts +1 -0
  173. package/dist/types/components/sqm-portal-register/sqm-portal-register.d.ts +10 -0
  174. package/dist/types/components/sqm-portal-register/usePortalRegister.d.ts +1 -0
  175. package/dist/types/components/sqm-portal-reset-password/sqm-portal-reset-password.d.ts +8 -0
  176. package/dist/types/components/sqm-portal-verify-email/sqm-portal-verify-email.d.ts +8 -0
  177. package/dist/types/components/sqm-portal-verify-email/usePortalVerifyEmail.d.ts +2 -1
  178. package/dist/types/components/sqm-reward-exchange-list/RewardExchangeListData.d.ts +143 -88
  179. package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list.d.ts +21 -0
  180. package/dist/types/components/sqm-share-button/ShareButton.stories.d.ts +2 -0
  181. package/dist/types/components/sqm-share-button/sqm-share-button-view.d.ts +3 -0
  182. package/dist/types/components/sqm-share-button/sqm-share-button.d.ts +12 -0
  183. package/dist/types/components/sqm-task-card/progress-bar/SVGs.d.ts +1 -1
  184. package/dist/types/components/sqm-task-card/sqm-task-card-view.d.ts +4 -0
  185. package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +22 -0
  186. package/dist/types/components/sqm-user-name/sqm-user-name.d.ts +1 -1
  187. package/dist/types/components.d.ts +212 -8
  188. package/dist/types/global/styles.d.ts +1 -1
  189. package/grapesjs/grapesjs.js +1 -1
  190. package/package.json +2 -1
  191. package/dist/cjs/sqm-card-feed-view-ec75fafc.js +0 -36
  192. package/dist/esm/sqm-card-feed-view-81f93bc7.js +0 -34
  193. package/dist/esm-es5/sqm-card-feed-view-81f93bc7.js +0 -1
  194. package/dist/esm-es5/sqm-portal-profile-view-ba06e776.js +0 -1
  195. package/dist/mint-components/p-20c95798.entry.js +0 -1
  196. package/dist/mint-components/p-3f5aa202.system.js +0 -1
  197. package/dist/mint-components/p-4658d225.system.entry.js +0 -1
  198. package/dist/mint-components/p-5939212e.system.entry.js +0 -1
  199. package/dist/mint-components/p-6f498a6b.system.entry.js +0 -1
  200. package/dist/mint-components/p-77b5a0a4.js +0 -1
  201. package/dist/mint-components/p-7cdbe82a.entry.js +0 -1
  202. package/dist/mint-components/p-8a714f3f.js +0 -1
  203. package/dist/mint-components/p-91fde765.system.js +0 -1
  204. package/dist/mint-components/p-9608ce17.system.entry.js +0 -1
  205. package/dist/mint-components/p-9dd76aed.system.entry.js +0 -1
  206. package/dist/mint-components/p-9ef3c3bc.entry.js +0 -372
  207. package/dist/mint-components/p-a88a08bb.system.js +0 -1
  208. package/dist/mint-components/p-a9a6f205.entry.js +0 -1
  209. package/dist/mint-components/p-b86cbac3.system.entry.js +0 -1
  210. package/dist/mint-components/p-c65cfc9d.system.js +0 -1
  211. package/dist/mint-components/p-e36ff7fa.entry.js +0 -1
  212. package/dist/mint-components/p-ed696e43.entry.js +0 -1
  213. package/dist/mint-components/p-ef7f70f2.system.entry.js +0 -1
@@ -21,41 +21,6 @@ export function RewardExchangeView(props) {
21
21
  padding: "var(--sl-spacing-medium)",
22
22
  position: "relative",
23
23
  },
24
- CardContainer: {
25
- "&:active": {
26
- //boxShadow: "0 3px 10px #87ceeb6e!important",
27
- },
28
- },
29
- Base: {
30
- display: "flex",
31
- cursor: "pointer",
32
- textAlign: "center",
33
- height: "120px",
34
- "&::part(base)": {
35
- boxShadow: "none",
36
- width: "100%",
37
- display: "flex",
38
- margin: "0 auto",
39
- },
40
- "&::part(body)": {
41
- padding: 0,
42
- display: "flex",
43
- width: "100%",
44
- },
45
- },
46
- Drawer: {
47
- "&::part(base)": {
48
- minWidth: "400px",
49
- maxWidth: "700px",
50
- width: "50%",
51
- margin: "0 auto",
52
- right: "0",
53
- },
54
- "&::part(panel)": {
55
- height: "85vh",
56
- width: "100%",
57
- },
58
- },
59
24
  FullImage: {
60
25
  objectFit: "contain",
61
26
  maxWidth: "100%",
@@ -63,16 +28,6 @@ export function RewardExchangeView(props) {
63
28
  display: "flex",
64
29
  margin: "0 auto",
65
30
  },
66
- PreviewImage: {
67
- objectFit: "contain",
68
- width: "120px",
69
- height: "118px",
70
- flex: 0.33,
71
- },
72
- InputBox: {
73
- width: "100%",
74
- marginBottom: "20px",
75
- },
76
31
  Select: {
77
32
  "&::part(label)": {
78
33
  color: "var(--sl-color-primary-500)",
@@ -125,42 +80,39 @@ export function RewardExchangeView(props) {
125
80
  margin: "-9px",
126
81
  },
127
82
  },
128
- Square: {
129
- width: "120px",
130
- height: "118px",
131
- borderRadius: "3px 0 0 3px",
83
+ Image: {
84
+ padding: "var(--sl-spacing-small)",
85
+ minWidth: "96px",
86
+ maxWidth: "96px",
132
87
  "& .image": {
133
88
  width: "100%",
134
89
  height: "100%",
135
90
  objectFit: "contain",
136
- borderRadius: "inherit",
91
+ borderRadius: "4px",
137
92
  },
138
93
  "& .image.subdued": {
139
94
  filter: "brightness(0.95)",
140
95
  opacity: "0.5",
141
96
  },
142
97
  },
143
- Image: {
144
- padding: "8px",
145
- minWidth: "96px",
146
- maxWidth: "96px",
98
+ Square: {
99
+ width: "120px",
100
+ height: "118px",
101
+ borderRadius: "3px 0 0 3px",
147
102
  "& .image": {
148
103
  width: "100%",
149
104
  height: "100%",
150
105
  objectFit: "contain",
151
- borderRadius: "4px",
152
- },
153
- "& .image.subdued": {
154
- filter: "brightness(0.95)",
155
- opacity: "0.5",
106
+ borderRadius: "inherit",
156
107
  },
157
108
  },
158
109
  TextArea: {
159
110
  textAlign: "left",
160
- padding: "12px",
111
+ padding: "var(--sl-spacing-small)",
112
+ paddingLeft: "0",
161
113
  "& .title": {
162
- fontSize: "16px",
163
- lineHeight: "20px",
114
+ fontSize: "var(--sl-font-size-medium)",
115
+ lineHeight: "var(--sl-line-height-dense)",
164
116
  fontWeight: "600",
165
117
  color: "var(--sl-color-neutral-1000)",
166
118
  display: "-webkit-box",
@@ -169,9 +121,9 @@ export function RewardExchangeView(props) {
169
121
  overflow: "hidden",
170
122
  },
171
123
  "& .amount": {
172
- fontSize: "14px",
173
- lineHeight: "18px",
174
- marginTop: "8px",
124
+ fontSize: "var(--sl-font-size-small)",
125
+ lineHeight: "var(--sl-line-height-dense)",
126
+ marginTop: "var(--sl-spacing-x-small)",
175
127
  color: "var(--sl-color-neutral-500)",
176
128
  display: "-webkit-box",
177
129
  "-webkit-line-clamp": "1",
@@ -179,28 +131,31 @@ export function RewardExchangeView(props) {
179
131
  overflow: "hidden",
180
132
  },
181
133
  "& .error": {
182
- fontSize: "14px",
183
- lineHeight: "18px",
184
- marginTop: "8px",
134
+ fontSize: "var(--sl-font-size-small)",
135
+ lineHeight: "var(--sl-line-height-dense)",
136
+ marginTop: "var(--sl-spacing-x-small)",
185
137
  fontWeight: "600",
186
138
  color: "var(--sl-color-warning-500)",
187
139
  display: "-webkit-box",
188
140
  "-webkit-line-clamp": "1",
189
141
  "-webkit-box-orient": "vertical",
190
142
  overflow: "hidden",
143
+ "& .icon": {
144
+ position: "relative",
145
+ top: "0.1em",
146
+ marginRight: "var(--sl-spacing-xx-small)",
147
+ },
191
148
  },
192
149
  },
193
150
  ChooseAmount: {
194
151
  margin: "var(--sl-spacing-medium) 0",
195
152
  "& .title": {
196
- //fontSize: "var(--sl-font-size-large)",
197
- fontSize: "113%",
153
+ fontSize: "var(--sl-font-size-large)",
198
154
  fontWeight: "var(--sl-font-weight-semibold)",
199
155
  color: "var(--sl-color-neutral-1000)",
200
156
  },
201
157
  "& .points": {
202
- //fontSize: "var(--sl-font-size-large)",
203
- fontSize: "113%",
158
+ fontSize: "var(--sl-font-size-large)",
204
159
  fontWeight: "var(--sl-font-weight-semibold)",
205
160
  color: "var(--sl-color-primary-500)",
206
161
  },
@@ -250,7 +205,7 @@ export function RewardExchangeView(props) {
250
205
  fontWeight: "var(--sl-font-weight-normal)",
251
206
  color: "var(--sl-color-neutral-1000)",
252
207
  },
253
- "@media (max-width: 1024px)": {
208
+ "@media (max-width: 499px)": {
254
209
  width: "100%",
255
210
  marginRight: "0",
256
211
  },
@@ -262,7 +217,7 @@ export function RewardExchangeView(props) {
262
217
  fontWeight: "var(--sl-font-weight-normal)",
263
218
  color: "var(--sl-color-neutral-0)",
264
219
  },
265
- "@media (max-width: 1024px)": {
220
+ "@media (max-width: 499px)": {
266
221
  width: "100%",
267
222
  },
268
223
  },
@@ -279,7 +234,7 @@ export function RewardExchangeView(props) {
279
234
  const sheet = jss.createStyleSheet(style);
280
235
  const styleString = sheet.toString();
281
236
  function getInput() {
282
- var _a, _b;
237
+ var _a, _b, _c;
283
238
  const item = states.selectedItem;
284
239
  if (!item || (item === null || item === void 0 ? void 0 : item.ruleType) === "FIXED_GLOBAL_REWARD")
285
240
  return h("span", null, item === null || item === void 0 ? void 0 : item.prettySourceValue);
@@ -291,19 +246,22 @@ export function RewardExchangeView(props) {
291
246
  sourceUnit: item.sourceUnit,
292
247
  })));
293
248
  }
294
- return (h("sl-select", { style: { width: "auto" }, label: "Select amount to receive", class: sheet.classes.Select, value: states.selectedStep, "onSl-select": (e) => {
249
+ return (h("sl-select", { style: { width: "auto" }, label: (_b = states === null || states === void 0 ? void 0 : states.content) === null || _b === void 0 ? void 0 : _b.text.selectText, class: sheet.classes.Select, value: states.selectedStep, "onSl-select": (e) => {
295
250
  var _a, _b, _c, _d, _e;
296
251
  return callbacks.setExchangeState({
297
252
  amount: (_c = (_b = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.item) === null || _b === void 0 ? void 0 : _b.value) === null || _c === void 0 ? void 0 : _c.sourceValue,
298
253
  selectedStep: (_e = (_d = e.detail) === null || _d === void 0 ? void 0 : _d.item) === null || _e === void 0 ? void 0 : _e.value,
299
254
  });
300
- } }, (_b = item.steps) === null || _b === void 0 ? void 0 : _b.map((step) => {
255
+ } }, (_c = item.steps) === null || _c === void 0 ? void 0 : _c.map((step) => {
301
256
  var _a, _b;
302
257
  return (h("sl-menu-item", { value: step, disabled: !step.available },
303
258
  step.prettyDestinationValue,
304
259
  h("div", { slot: "suffix", style: { fontSize: "75%", float: "right" } },
305
260
  step.prettySourceValue,
306
- step.unavailableReasonCode && (h("p", { style: { fontSize: "70%", color: "#F2994A" } }, intl.formatMessage({
261
+ step.unavailableReasonCode && (h("p", { style: {
262
+ fontSize: "70%",
263
+ color: "var(--sl-color-warning-500)",
264
+ } }, intl.formatMessage({
307
265
  id: "unavailableCode",
308
266
  defaultMessage: (_b = (_a = states.content) === null || _a === void 0 ? void 0 : _a.text) === null || _b === void 0 ? void 0 : _b.notAvailableError,
309
267
  }, {
@@ -324,12 +282,7 @@ export function RewardExchangeView(props) {
324
282
  : "none",
325
283
  borderRadius: "4px",
326
284
  };
327
- const amount = item.ruleType === "FIXED_GLOBAL_REWARD"
328
- ? item.prettySourceValue
329
- : item.ruleType === "STEPPED_FIXED_GLOBAL_REWARD"
330
- ? `${(_a = item.steps[0]) === null || _a === void 0 ? void 0 : _a.sourceValue} to ${(_b = item.steps.slice(-1).pop()) === null || _b === void 0 ? void 0 : _b.prettySourceValue}`
331
- : `${item.prettySourceMinValue} to ${item.prettySourceMaxValue}`;
332
- return (h("div", { key: item.key, class: item.available ? sheet.classes.CardContainer : "", style: style },
285
+ return (h("div", { key: item.key, style: style },
333
286
  h("sl-card", { class: sheet.classes.Card, style: {
334
287
  cursor: item.unavailableReasonCode
335
288
  ? "not-allowed"
@@ -359,22 +312,32 @@ export function RewardExchangeView(props) {
359
312
  "-webkit-line-clamp": item.unavailableReasonCode
360
313
  ? "1"
361
314
  : "2",
362
- } }, (_c = item.name) !== null && _c !== void 0 ? _c : ""),
315
+ } }, (_a = item.name) !== null && _a !== void 0 ? _a : ""),
363
316
  h("div", { class: "amount", style: {
364
317
  "-webkit-line-clamp": item.unavailableReasonCode
365
318
  ? "1"
366
319
  : "2",
367
- } }, amount),
368
- item.unavailableReasonCode && (h("div", { class: "error" }, intl.formatMessage({
369
- id: "unavailableCode",
370
- defaultMessage: (_e = (_d = states.content) === null || _d === void 0 ? void 0 : _d.text) === null || _e === void 0 ? void 0 : _e.notAvailableError,
320
+ } }, intl.formatMessage({
321
+ id: "sourceAmountMessage",
322
+ defaultMessage: (_c = (_b = states.content) === null || _b === void 0 ? void 0 : _b.text) === null || _c === void 0 ? void 0 : _c.sourceAmountMessage,
371
323
  }, {
372
- unavailableReason: item.unavailableReason ||
373
- item.unavailableReasonCode,
374
- sourceUnit: item.sourceUnit,
375
- sourceValue: item.prettySourceValue ||
376
- item.prettySourceMinValue,
377
- }))))))));
324
+ ruleType: item.ruleType,
325
+ sourceValue: item.prettySourceValue,
326
+ sourceMinValue: item.prettySourceMinValue,
327
+ sourceMaxValue: item.prettySourceMaxValue,
328
+ })),
329
+ item.unavailableReasonCode && (h("div", { class: "error" },
330
+ h("sl-icon", { class: "icon", name: "exclamation-triangle-fill" }),
331
+ intl.formatMessage({
332
+ id: "unavailableCode",
333
+ defaultMessage: (_e = (_d = states.content) === null || _d === void 0 ? void 0 : _d.text) === null || _e === void 0 ? void 0 : _e.notAvailableError,
334
+ }, {
335
+ unavailableReason: item.unavailableReason ||
336
+ item.unavailableReasonCode,
337
+ sourceUnit: item.sourceUnit,
338
+ sourceValue: item.prettySourceValue ||
339
+ item.prettySourceMinValue,
340
+ }))))))));
378
341
  })),
379
342
  h("div", { class: sheet.classes.Button },
380
343
  h("sl-button", { class: "continue right", size: "large", onClick: () => callbacks.setStage("chooseAmount"), loading: states.loading, disabled: !states.selectedItem }, states.content.text.continueText)),
@@ -401,36 +364,44 @@ export function RewardExchangeView(props) {
401
364
  function confirmation() {
402
365
  console.log(selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.name);
403
366
  return (h("div", null,
404
- h("h2", { style: { margin: "20px 0" } }, states.content.text.redeemTitle),
367
+ h("h2", { style: { margin: "var(--sl-spacing-large) 0" } }, states.content.text.redeemTitle),
405
368
  h("div", { style: {
406
369
  textAlign: "center",
407
370
  marginBottom: "var(--sl-spacing-xxx-large)",
408
371
  } },
409
372
  h("p", null,
410
- h("span", { style: { fontSize: "18px" } }, (selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettySourceValue) || (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.prettySourceValue))),
373
+ h("span", { style: { fontSize: "var(--sl-font-size-large)" } }, (selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettySourceValue) || (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.prettySourceValue))),
411
374
  h("p", null,
412
375
  h(ExchangeArrows, null)),
413
- h("div", { class: sheet.classes.CardContainer, style: {
376
+ h("div", { style: {
414
377
  boxShadow: "none",
415
378
  marginBottom: "10px",
416
379
  flex: "1",
417
380
  minWidth: "100%",
418
381
  } },
419
- h("sl-card", { style: { width: "auto", maxWidth: "350px", margin: "auto" }, class: sheet.classes.Card },
420
- h("div", { class: sheet.classes.Square },
421
- h("img", { class: "image", src: (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.imageUrl) ||
422
- getAssetPath("./assets/placeholder.png") })),
423
- h("div", { class: sheet.classes.TextArea, style: {
424
- lineHeight: "18px",
425
- alignSelf: "center",
426
- } }, (selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettyDestinationValue) ? `${selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettyDestinationValue} ${(selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.name) || ""}`
427
- : (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.name) || "")))),
382
+ h("sl-card", { class: sheet.classes.Card, style: {
383
+ width: "33%",
384
+ margin: "auto",
385
+ } },
386
+ h("div", { style: {
387
+ display: "flex",
388
+ width: "100%",
389
+ height: "120px",
390
+ borderRadius: "3px",
391
+ background: "rgba(0, 0, 0, 0)",
392
+ } },
393
+ h("div", { class: sheet.classes.Image },
394
+ h("img", { class: "image", src: (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.imageUrl) ||
395
+ getAssetPath("./assets/placeholder.png") })),
396
+ h("div", { class: sheet.classes.TextArea },
397
+ h("div", { class: "title" }, selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.name),
398
+ h("div", { class: "amount" }, selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.destinationValue)))))),
428
399
  h("div", { class: sheet.classes.Button },
429
400
  h("sl-button", { class: "cancel", type: "text", size: "large", onClick: () => callbacks.setStage("chooseAmount") }, states.content.text.backText),
430
401
  h("sl-button", { class: "continue", size: "large", loading: states.loading, onClick: callbacks.exchangeReward }, states.content.text.redeemText))));
431
402
  }
432
403
  function success() {
433
- var _a, _b, _c, _d;
404
+ var _a, _b, _c, _d, _e;
434
405
  return (h("div", { class: sheet.classes.Success },
435
406
  h(Gift, null),
436
407
  h("div", { class: "title" }, states.content.text.rewardRedeemedText),
@@ -445,8 +416,11 @@ export function RewardExchangeView(props) {
445
416
  (data === null || data === void 0 ? void 0 : data.fuelTankCode) && (h("div", { style: {
446
417
  width: "40%",
447
418
  margin: "-30px auto var(--sl-spacing-xxx-large) auto",
419
+ textAlign: "left",
420
+ color: "var(--sl-color-neutral-700)",
448
421
  } },
449
- h(ShareLinkView, { shareString: data.fuelTankCode, tooltiptext: "Copied", open: states.open, onClick: callbacks.copyFuelTankCode }))),
422
+ "Promo code",
423
+ h(ShareLinkView, { shareString: data.fuelTankCode, tooltiptext: (_e = states === null || states === void 0 ? void 0 : states.content) === null || _e === void 0 ? void 0 : _e.text.toopTipText, open: states.open, onClick: callbacks.copyFuelTankCode }))),
450
424
  h("div", { class: sheet.classes.Button },
451
425
  h("sl-button", { class: "continue center", type: "primary", size: "large", onClick: () => callbacks.resetState(true) }, states.content.text.doneText))));
452
426
  }
@@ -471,8 +445,8 @@ export function RewardExchangeView(props) {
471
445
  h(ProgressBar, { stageCount: 3, currentStage: stageNumber })));
472
446
  }
473
447
  function loading() {
474
- return (h("div", { class: sheet.classes.Grid }, [...Array(8)].map(() => {
475
- return (h("div", { class: sheet.classes.CardContainer },
448
+ return (h("div", { class: sheet.classes.Grid }, [...Array(states.content.text.skeletonCardNum)].map(() => {
449
+ return (h("div", null,
476
450
  h("sl-card", { class: sheet.classes.Card },
477
451
  h("div", { class: sheet.classes.CardLayout },
478
452
  h("div", null,
@@ -482,9 +456,12 @@ export function RewardExchangeView(props) {
482
456
  margin: "9px",
483
457
  "--border-radius": "4px",
484
458
  } })),
485
- h("div", { style: { margin: "12px 12px 0 0", width: "100%" } },
486
- h("sl-skeleton", { style: { marginBottom: "12px" } }),
487
- h("sl-skeleton", { style: { marginBottom: "12px" } }),
459
+ h("div", { style: {
460
+ margin: "var(--sl-spacing-small) var(--sl-spacing-small) 0 0",
461
+ width: "100%",
462
+ } },
463
+ h("sl-skeleton", { style: { marginBottom: "var(--sl-spacing-small)" } }),
464
+ h("sl-skeleton", { style: { marginBottom: "var(--sl-spacing-small)" } }),
488
465
  h("sl-skeleton", { style: { width: "45%" } }))))));
489
466
  })));
490
467
  }
@@ -22,11 +22,11 @@ export class SqmRewardExchangeList {
22
22
  /**
23
23
  * @uiName Choose Reward Progress Title
24
24
  */
25
- this.chooseRewardTitle = "Choose reward";
25
+ this.chooseRewardTitle = "Rewards";
26
26
  /**
27
27
  * @uiName Choose Amount Progress Title
28
28
  */
29
- this.chooseAmountTitle = "Amount";
29
+ this.chooseAmountTitle = "Select";
30
30
  /**
31
31
  * @uiName Confirmation Progress Title
32
32
  */
@@ -55,11 +55,28 @@ export class SqmRewardExchangeList {
55
55
  * @uiName Confirmation Title Text
56
56
  */
57
57
  this.redeemTitle = "Confirm and redeem";
58
+ /**
59
+ * @uiName Redemption Success Message
60
+ */
58
61
  this.redemptionSuccessText = "Successfully redeemed {sourceValue} for {destinationValue}";
62
+ /**
63
+ * @uiName Reward Exchange Amount Text
64
+ */
65
+ this.sourceAmountMessage = "{ruleType, select, FIXED_GLOBAL_REWARD {{sourceValue}} other {{sourceMinValue} to {sourceMaxValue}}}";
66
+ /**
67
+ * Shown when a user copies a fuel tank code
68
+ *
69
+ * @uiName Tool Tip Text
70
+ */
71
+ this.tooltiptext = "Copied";
59
72
  /**
60
73
  * @uiName Done Text
61
74
  */
62
75
  this.doneText = "Done";
76
+ /**
77
+ * @uiName Select Amount Text
78
+ */
79
+ this.selectText = "Select amount to receive";
63
80
  /**
64
81
  * @uiName Reward List Error Message
65
82
  */
@@ -72,6 +89,10 @@ export class SqmRewardExchangeList {
72
89
  * @uiName Not Enough Available Error Message
73
90
  */
74
91
  this.notEnoughError = "Not enough {sourceUnit} to redeem for this reward";
92
+ /**
93
+ * @uiName Number of Skeleton Cards
94
+ */
95
+ this.skeletonCardNum = 8;
75
96
  withHooks(this);
76
97
  }
77
98
  disconnectedCallback() { }
@@ -156,7 +177,7 @@ export class SqmRewardExchangeList {
156
177
  },
157
178
  "attribute": "choose-reward-title",
158
179
  "reflect": false,
159
- "defaultValue": "\"Choose reward\""
180
+ "defaultValue": "\"Rewards\""
160
181
  },
161
182
  "chooseAmountTitle": {
162
183
  "type": "string",
@@ -177,7 +198,7 @@ export class SqmRewardExchangeList {
177
198
  },
178
199
  "attribute": "choose-amount-title",
179
200
  "reflect": false,
180
- "defaultValue": "\"Amount\""
201
+ "defaultValue": "\"Select\""
181
202
  },
182
203
  "confirmationTitle": {
183
204
  "type": "string",
@@ -337,13 +358,58 @@ export class SqmRewardExchangeList {
337
358
  "required": false,
338
359
  "optional": false,
339
360
  "docs": {
340
- "tags": [],
361
+ "tags": [{
362
+ "text": "Redemption Success Message",
363
+ "name": "uiName"
364
+ }],
341
365
  "text": ""
342
366
  },
343
367
  "attribute": "redemption-success-text",
344
368
  "reflect": false,
345
369
  "defaultValue": "\"Successfully redeemed {sourceValue} for {destinationValue}\""
346
370
  },
371
+ "sourceAmountMessage": {
372
+ "type": "string",
373
+ "mutable": false,
374
+ "complexType": {
375
+ "original": "string",
376
+ "resolved": "string",
377
+ "references": {}
378
+ },
379
+ "required": false,
380
+ "optional": false,
381
+ "docs": {
382
+ "tags": [{
383
+ "text": "Reward Exchange Amount Text",
384
+ "name": "uiName"
385
+ }],
386
+ "text": ""
387
+ },
388
+ "attribute": "source-amount-message",
389
+ "reflect": false,
390
+ "defaultValue": "\"{ruleType, select, FIXED_GLOBAL_REWARD {{sourceValue}} other {{sourceMinValue} to {sourceMaxValue}}}\""
391
+ },
392
+ "tooltiptext": {
393
+ "type": "string",
394
+ "mutable": false,
395
+ "complexType": {
396
+ "original": "string",
397
+ "resolved": "string",
398
+ "references": {}
399
+ },
400
+ "required": false,
401
+ "optional": false,
402
+ "docs": {
403
+ "tags": [{
404
+ "text": "Tool Tip Text",
405
+ "name": "uiName"
406
+ }],
407
+ "text": "Shown when a user copies a fuel tank code"
408
+ },
409
+ "attribute": "tooltiptext",
410
+ "reflect": false,
411
+ "defaultValue": "\"Copied\""
412
+ },
347
413
  "doneText": {
348
414
  "type": "string",
349
415
  "mutable": false,
@@ -365,6 +431,27 @@ export class SqmRewardExchangeList {
365
431
  "reflect": false,
366
432
  "defaultValue": "\"Done\""
367
433
  },
434
+ "selectText": {
435
+ "type": "string",
436
+ "mutable": false,
437
+ "complexType": {
438
+ "original": "string",
439
+ "resolved": "string",
440
+ "references": {}
441
+ },
442
+ "required": false,
443
+ "optional": false,
444
+ "docs": {
445
+ "tags": [{
446
+ "text": "Select Amount Text",
447
+ "name": "uiName"
448
+ }],
449
+ "text": ""
450
+ },
451
+ "attribute": "select-text",
452
+ "reflect": false,
453
+ "defaultValue": "\"Select amount to receive\""
454
+ },
368
455
  "queryError": {
369
456
  "type": "string",
370
457
  "mutable": false,
@@ -428,6 +515,27 @@ export class SqmRewardExchangeList {
428
515
  "reflect": false,
429
516
  "defaultValue": "\"Not enough {sourceUnit} to redeem for this reward\""
430
517
  },
518
+ "skeletonCardNum": {
519
+ "type": "number",
520
+ "mutable": false,
521
+ "complexType": {
522
+ "original": "number",
523
+ "resolved": "number",
524
+ "references": {}
525
+ },
526
+ "required": false,
527
+ "optional": false,
528
+ "docs": {
529
+ "tags": [{
530
+ "text": "Number of Skeleton Cards",
531
+ "name": "uiName"
532
+ }],
533
+ "text": ""
534
+ },
535
+ "attribute": "skeleton-card-num",
536
+ "reflect": false,
537
+ "defaultValue": "8"
538
+ },
431
539
  "demoData": {
432
540
  "type": "unknown",
433
541
  "mutable": false,
@@ -35,6 +35,27 @@ export const TextStyleWithoutIcon = () => {
35
35
  const props = { medium: "facebook", type: "text", hideicon: true };
36
36
  return h(ShareButtonView, Object.assign({}, props), "Share");
37
37
  };
38
+ export const WithCustomColors = () => {
39
+ const props = {
40
+ medium: "facebook",
41
+ type: "text",
42
+ backgroundcolor: "#3b5998",
43
+ textcolor: "#fff",
44
+ iconslot: "prefix",
45
+ };
46
+ return h(ShareButtonView, Object.assign({}, props), "Facebook");
47
+ };
48
+ export const WithCustomBorderRadius = () => {
49
+ const props = {
50
+ medium: "facebook",
51
+ type: "text",
52
+ backgroundcolor: "#3b5998",
53
+ textcolor: "#fff",
54
+ borderradius: 8,
55
+ iconslot: "prefix",
56
+ };
57
+ return h(ShareButtonView, Object.assign({}, props), "Facebook");
58
+ };
38
59
  export const FullStackIcon = () => {
39
60
  return (h("div", null,
40
61
  h("sqm-share-button", { medium: "facebook", iconslot: "prefix" },
@@ -2,18 +2,26 @@ import { h, Host } from "@stencil/core";
2
2
  import jss from "jss";
3
3
  import preset from "jss-preset-default";
4
4
  import { HostBlock } from "../../global/mixins";
5
- const style = {
6
- HostBlock: HostBlock,
7
- buttonStyle: {
8
- display: "block",
9
- },
10
- };
11
- jss.setup(preset());
12
- const sheet = jss.createStyleSheet(style);
13
- const styleString = sheet.toString();
14
5
  export function ShareButtonView(props, children) {
6
+ const vanillaStyle = `
7
+ *::part(base) {
8
+ background: ${props.backgroundcolor ? props.backgroundcolor : ""};
9
+ color: ${props.textcolor ? props.textcolor : ""};
10
+ border-radius: ${props.borderradius ? props.borderradius + "px" : ""};
11
+ }
12
+ `;
13
+ const style = {
14
+ HostBlock: HostBlock,
15
+ buttonStyle: {
16
+ display: "block",
17
+ },
18
+ };
19
+ jss.setup(preset());
20
+ const sheet = jss.createStyleSheet(style);
21
+ const styleString = sheet.toString();
15
22
  return props.hide ? (h(Host, { style: { display: "none" } })) : (h("div", null,
16
23
  h("style", { type: "text/css" }, styleString),
24
+ h("style", { type: "text/css" }, vanillaStyle),
17
25
  h("sl-button", { class: sheet.classes.buttonStyle, loading: props.loading, disabled: props.disabled, pill: props.pill, size: props.size, type: props.type, onClick: props.onClick, exportparts: `base: ${props.type}sharebutton-base` },
18
26
  !props.hideicon && (h("sl-icon", { slot: props.iconslot, name: props.icon ? props.icon : props.medium, exportparts: "icon" })),
19
27
  !props.hidetext && children)));