@saasquatch/mint-components 1.15.0-5 → 1.15.0-7

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 (137) hide show
  1. package/dist/cjs/{ShadowViewAddon-3f11bc68.js → ShadowViewAddon-e666dc8b.js} +197 -213
  2. package/dist/cjs/{copy-text-view-c85acaaa.js → copy-text-view-7441206d.js} +53 -38
  3. package/dist/cjs/{global-261393c6.js → global-124aec2c.js} +21 -9
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/cjs/mint-components.cjs.js +2 -2
  6. package/dist/cjs/sqm-banking-info-form_17.cjs.entry.js +2 -2
  7. package/dist/cjs/sqm-big-stat_41.cjs.entry.js +59 -6
  8. package/dist/cjs/sqm-email-verification.cjs.entry.js +1 -1
  9. package/dist/cjs/sqm-empty_4.cjs.entry.js +1 -1
  10. package/dist/cjs/{sqm-invoice-table-view-8b950046.js → sqm-invoice-table-view-f369b0a6.js} +1 -1
  11. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +1 -1
  12. package/dist/cjs/sqm-pagination_3.cjs.entry.js +2 -2
  13. package/dist/cjs/{sqm-portal-email-verification-view-8d5b23f3.js → sqm-portal-email-verification-view-f5ce25cc.js} +1 -1
  14. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +2 -2
  15. package/dist/cjs/{sqm-portal-profile-view-fcb3ea3f.js → sqm-portal-profile-view-07d13061.js} +1 -1
  16. package/dist/cjs/sqm-portal-profile.cjs.entry.js +2 -2
  17. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +1 -1
  18. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +1 -1
  19. package/dist/cjs/sqm-stencilbook.cjs.entry.js +19 -6
  20. package/dist/collection/components/sqm-coupon-code/sqm-coupon-code.js +1 -1
  21. package/dist/collection/components/sqm-logout-current-user/sqm-logout-current-user.js +1 -1
  22. package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step-view.js +6 -2
  23. package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step.js +77 -2
  24. package/dist/collection/components/sqm-referral-code/sqm-referral-code.js +1 -1
  25. package/dist/collection/components/sqm-share-button/sqm-share-button.js +1 -1
  26. package/dist/collection/components/sqm-share-code/sqm-share-code.js +139 -1
  27. package/dist/collection/components/sqm-share-link/ShareLink.stories.js +12 -0
  28. package/dist/collection/components/sqm-share-link/sqm-share-link.js +138 -3
  29. package/dist/collection/components/sqm-task-card/DetailsView.js +1 -1
  30. package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +139 -155
  31. package/dist/collection/components/sqm-task-card/sqm-task-card.js +146 -0
  32. package/dist/collection/components/sqm-task-card/useTaskCard.js +10 -0
  33. package/dist/collection/components/views/copy-text-view.js +53 -38
  34. package/dist/collection/global/styles.js +21 -9
  35. package/dist/collection/global/styles.ts +21 -9
  36. package/dist/esm/{ShadowViewAddon-f5791215.js → ShadowViewAddon-7c10e0ee.js} +197 -213
  37. package/dist/esm/{copy-text-view-782137ba.js → copy-text-view-717050d5.js} +53 -38
  38. package/dist/esm/{global-7b65dcb8.js → global-6dc825bc.js} +21 -9
  39. package/dist/esm/loader.js +2 -2
  40. package/dist/esm/mint-components.js +2 -2
  41. package/dist/esm/sqm-banking-info-form_17.entry.js +2 -2
  42. package/dist/esm/sqm-big-stat_41.entry.js +59 -6
  43. package/dist/esm/sqm-email-verification.entry.js +1 -1
  44. package/dist/esm/sqm-empty_4.entry.js +1 -1
  45. package/dist/esm/{sqm-invoice-table-view-0f0a7386.js → sqm-invoice-table-view-1bd8afaa.js} +1 -1
  46. package/dist/esm/sqm-leaderboard-rank.entry.js +1 -1
  47. package/dist/esm/sqm-pagination_3.entry.js +2 -2
  48. package/dist/esm/{sqm-portal-email-verification-view-3bd4f1d9.js → sqm-portal-email-verification-view-d96d6c43.js} +1 -1
  49. package/dist/esm/sqm-portal-email-verification.entry.js +2 -2
  50. package/dist/esm/{sqm-portal-profile-view-3a751a15.js → sqm-portal-profile-view-4ce1c7c3.js} +1 -1
  51. package/dist/esm/sqm-portal-profile.entry.js +2 -2
  52. package/dist/esm/sqm-referral-table_11.entry.js +1 -1
  53. package/dist/esm/sqm-rewards-table_9.entry.js +1 -1
  54. package/dist/esm/sqm-stencilbook.entry.js +19 -6
  55. package/dist/esm-es5/ShadowViewAddon-7c10e0ee.js +1 -0
  56. package/dist/esm-es5/copy-text-view-717050d5.js +1 -0
  57. package/dist/esm-es5/{global-7b65dcb8.js → global-6dc825bc.js} +1 -1
  58. package/dist/esm-es5/loader.js +1 -1
  59. package/dist/esm-es5/mint-components.js +1 -1
  60. package/dist/esm-es5/sqm-banking-info-form_17.entry.js +1 -1
  61. package/dist/esm-es5/sqm-big-stat_41.entry.js +1 -1
  62. package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
  63. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  64. package/dist/esm-es5/{sqm-invoice-table-view-0f0a7386.js → sqm-invoice-table-view-1bd8afaa.js} +1 -1
  65. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  66. package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
  67. package/dist/esm-es5/{sqm-portal-email-verification-view-3bd4f1d9.js → sqm-portal-email-verification-view-d96d6c43.js} +1 -1
  68. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  69. package/dist/esm-es5/{sqm-portal-profile-view-3a751a15.js → sqm-portal-profile-view-4ce1c7c3.js} +1 -1
  70. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  71. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  72. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  73. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  74. package/dist/mint-components/global/styles.ts +21 -9
  75. package/dist/mint-components/mint-components.esm.js +1 -1
  76. package/dist/mint-components/mint-components.js +1 -1
  77. package/dist/mint-components/{p-aa3c81d3.system.js → p-11519322.system.js} +1 -1
  78. package/dist/mint-components/{p-c2ab40ae.system.entry.js → p-11542862.system.entry.js} +1 -1
  79. package/dist/mint-components/{p-8f603753.system.entry.js → p-208d8d75.system.entry.js} +1 -1
  80. package/dist/mint-components/{p-a4eb4b81.entry.js → p-2c07df76.entry.js} +1 -1
  81. package/dist/mint-components/{p-7127a230.js → p-3a49811c.js} +1 -1
  82. package/dist/mint-components/{p-fbfbbbd2.system.js → p-44a82cf3.system.js} +1 -1
  83. package/dist/mint-components/p-4874193a.system.js +1 -0
  84. package/dist/mint-components/{p-ebdf906a.entry.js → p-49deb225.entry.js} +1 -1
  85. package/dist/mint-components/{p-4b626c19.entry.js → p-4dbe2d08.entry.js} +1 -1
  86. package/dist/mint-components/{p-4ae5ac59.entry.js → p-51495bc3.entry.js} +1 -1
  87. package/dist/mint-components/{p-c0b52238.entry.js → p-619c2aa3.entry.js} +1 -1
  88. package/dist/mint-components/{p-c53b8fe7.entry.js → p-6f34c2c2.entry.js} +2 -2
  89. package/dist/mint-components/{p-5c2d9a52.entry.js → p-734695a0.entry.js} +1 -1
  90. package/dist/mint-components/{p-e4fd9966.entry.js → p-7f1e10d3.entry.js} +2 -2
  91. package/dist/mint-components/{p-383d8c5a.system.entry.js → p-837dbf90.system.entry.js} +1 -1
  92. package/dist/mint-components/p-8c12078e.js +394 -0
  93. package/dist/mint-components/{p-2e4129e0.system.entry.js → p-90421929.system.entry.js} +1 -1
  94. package/dist/mint-components/{p-10ed0483.system.entry.js → p-9209a016.system.entry.js} +1 -1
  95. package/dist/mint-components/{p-646cfbd5.system.js → p-93fed35b.system.js} +1 -1
  96. package/dist/mint-components/{p-05255c61.system.js → p-95ae4ab9.system.js} +1 -1
  97. package/dist/mint-components/{p-fa630b25.system.entry.js → p-a37541ae.system.entry.js} +1 -1
  98. package/dist/mint-components/{p-32d5cbc1.js → p-abefb7cc.js} +1 -1
  99. package/dist/mint-components/{p-7e8bf5cb.system.entry.js → p-ad985d37.system.entry.js} +1 -1
  100. package/dist/mint-components/{p-c07551c4.system.entry.js → p-bb3f1257.system.entry.js} +1 -1
  101. package/dist/mint-components/p-bdbbc673.system.entry.js +1 -0
  102. package/dist/mint-components/{p-15d20bf9.entry.js → p-c0d839d0.entry.js} +11 -11
  103. package/dist/mint-components/p-c3680c02.js +1 -0
  104. package/dist/mint-components/{p-5c0576c0.system.entry.js → p-c6841ab8.system.entry.js} +1 -1
  105. package/dist/mint-components/{p-f25f3d2a.system.entry.js → p-cd63a965.system.entry.js} +1 -1
  106. package/dist/mint-components/{p-cde752fa.js → p-cf8677ea.js} +1 -1
  107. package/dist/mint-components/{p-22f374db.entry.js → p-d3e5704c.entry.js} +1 -1
  108. package/dist/mint-components/p-d8cf46ba.system.js +1 -0
  109. package/dist/mint-components/{p-ae473175.js → p-e01fe915.js} +12 -12
  110. package/dist/mint-components/{p-9dd8c93b.system.js → p-ed11966d.system.js} +1 -1
  111. package/dist/mint-components/{p-ec7d2a85.entry.js → p-eda5e82c.entry.js} +1 -1
  112. package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step-view.d.ts +3 -0
  113. package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step.d.ts +19 -2
  114. package/dist/types/components/sqm-share-code/sqm-share-code.d.ts +34 -0
  115. package/dist/types/components/sqm-share-link/ShareLink.stories.d.ts +1 -0
  116. package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +34 -1
  117. package/dist/types/components/sqm-task-card/sqm-task-card-view.d.ts +5 -0
  118. package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +32 -0
  119. package/dist/types/components/sqm-task-card/useTaskCard.d.ts +9 -0
  120. package/dist/types/components/views/copy-text-view.d.ts +5 -0
  121. package/dist/types/components.d.ts +236 -4
  122. package/dist/types/global/styles.d.ts +1 -1
  123. package/docs/docs.docx +0 -0
  124. package/docs/raisins.json +1 -1
  125. package/grapesjs/grapesjs.js +1 -1
  126. package/package.json +1 -1
  127. package/dist/esm-es5/ShadowViewAddon-f5791215.js +0 -1
  128. package/dist/esm-es5/copy-text-view-782137ba.js +0 -1
  129. package/dist/mint-components/p-31015791.js +0 -1
  130. package/dist/mint-components/p-3708a40b.system.js +0 -1
  131. package/dist/mint-components/p-3b90e01b.system.js +0 -1
  132. package/dist/mint-components/p-97ccee03.system.entry.js +0 -1
  133. package/dist/mint-components/p-acf93efa.js +0 -394
  134. package/dist/types/global/android.d.ts +0 -7
  135. package/dist/types/global/demo.d.ts +0 -2
  136. package/dist/types/stories/features.d.ts +0 -4
  137. package/dist/types/stories/templates.d.ts +0 -4
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-a29c60ef.js');
6
6
  const stencilHooks_module = require('./stencil-hooks.module-3a336b0f.js');
7
- const global = require('./global-261393c6.js');
7
+ const global = require('./global-124aec2c.js');
8
8
  const index_module = require('./index.module-ee84433d.js');
9
9
  const cjs = require('./cjs-1066ec21.js');
10
10
  const sqmLeaderboardRankView = require('./sqm-leaderboard-rank-view-d39a55d8.js');
@@ -4,14 +4,14 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-a29c60ef.js');
6
6
  const stencilHooks_module = require('./stencil-hooks.module-3a336b0f.js');
7
- const global = require('./global-261393c6.js');
7
+ const global = require('./global-124aec2c.js');
8
8
  const index_module = require('./index.module-ee84433d.js');
9
9
  const cjs = require('./cjs-1066ec21.js');
10
10
  const utils = require('./utils-6847bc06.js');
11
11
  const JSS = require('./JSS-8503a151.js');
12
12
  const useReferralCodes = require('./useReferralCodes-82e8797b.js');
13
13
  require('./mixins-f7e0377a.js');
14
- const copyTextView = require('./copy-text-view-c85acaaa.js');
14
+ const copyTextView = require('./copy-text-view-7441206d.js');
15
15
 
16
16
  const style = {
17
17
  Container: {
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const index = require('./index-a29c60ef.js');
4
- const global = require('./global-261393c6.js');
4
+ const global = require('./global-124aec2c.js');
5
5
  const JSS = require('./JSS-8503a151.js');
6
6
  const mixins = require('./mixins-f7e0377a.js');
7
7
  const sqmTextSpanView = require('./sqm-text-span-view-56e48a78.js');
@@ -4,13 +4,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-a29c60ef.js');
6
6
  const stencilHooks_module = require('./stencil-hooks.module-3a336b0f.js');
7
- require('./global-261393c6.js');
7
+ require('./global-124aec2c.js');
8
8
  const index_module = require('./index.module-ee84433d.js');
9
9
  const cjs = require('./cjs-1066ec21.js');
10
10
  require('./JSS-8503a151.js');
11
11
  require('./mixins-f7e0377a.js');
12
12
  require('./sqm-text-span-view-56e48a78.js');
13
- const sqmPortalEmailVerificationView = require('./sqm-portal-email-verification-view-8d5b23f3.js');
13
+ const sqmPortalEmailVerificationView = require('./sqm-portal-email-verification-view-f5ce25cc.js');
14
14
 
15
15
  function usePortalEmailVerification(props) {
16
16
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const index = require('./index-a29c60ef.js');
4
- const global = require('./global-261393c6.js');
4
+ const global = require('./global-124aec2c.js');
5
5
  const JSS = require('./JSS-8503a151.js');
6
6
  const sqmTextSpanView = require('./sqm-text-span-view-56e48a78.js');
7
7
 
@@ -4,13 +4,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-a29c60ef.js');
6
6
  const stencilHooks_module = require('./stencil-hooks.module-3a336b0f.js');
7
- require('./global-261393c6.js');
7
+ require('./global-124aec2c.js');
8
8
  const index_module = require('./index.module-ee84433d.js');
9
9
  const cjs = require('./cjs-1066ec21.js');
10
10
  const utils = require('./utils-6847bc06.js');
11
11
  require('./JSS-8503a151.js');
12
12
  require('./sqm-text-span-view-56e48a78.js');
13
- const sqmPortalProfileView = require('./sqm-portal-profile-view-fcb3ea3f.js');
13
+ const sqmPortalProfileView = require('./sqm-portal-profile-view-07d13061.js');
14
14
  const utilities = require('./utilities-78f5e169.js');
15
15
 
16
16
  const GET_USER = index_module.dist.gql `
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-a29c60ef.js');
6
6
  const stencilHooks_module = require('./stencil-hooks.module-3a336b0f.js');
7
- const global = require('./global-261393c6.js');
7
+ const global = require('./global-124aec2c.js');
8
8
  const index_module = require('./index.module-ee84433d.js');
9
9
  const cjs = require('./cjs-1066ec21.js');
10
10
  const utils = require('./utils-6847bc06.js');
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-a29c60ef.js');
6
6
  const stencilHooks_module = require('./stencil-hooks.module-3a336b0f.js');
7
- const global = require('./global-261393c6.js');
7
+ const global = require('./global-124aec2c.js');
8
8
  const index_module = require('./index.module-ee84433d.js');
9
9
  const cjs = require('./cjs-1066ec21.js');
10
10
  const utils = require('./utils-6847bc06.js');
@@ -4,14 +4,14 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-a29c60ef.js');
6
6
  const stencilHooks_module = require('./stencil-hooks.module-3a336b0f.js');
7
- require('./global-261393c6.js');
7
+ require('./global-124aec2c.js');
8
8
  const index_module = require('./index.module-ee84433d.js');
9
9
  require('./cjs-1066ec21.js');
10
10
  require('./utils-6847bc06.js');
11
11
  const JSS = require('./JSS-8503a151.js');
12
12
  require('./useReferralCodes-82e8797b.js');
13
13
  require('./mixins-f7e0377a.js');
14
- const copyTextView = require('./copy-text-view-c85acaaa.js');
14
+ const copyTextView = require('./copy-text-view-7441206d.js');
15
15
  const GenericTableView = require('./GenericTableView-f0e9c531.js');
16
16
  require('./useChildElements-1b35d945.js');
17
17
  const luxon = require('./luxon-2926d85f.js');
@@ -24,20 +24,20 @@ const sqmLeaderboardRankView = require('./sqm-leaderboard-rank-view-d39a55d8.js'
24
24
  const sqmLogoutCurrentUserView = require('./sqm-logout-current-user-view-11d57c12.js');
25
25
  const sqmNavigationSidebarView = require('./sqm-navigation-sidebar-view-17111896.js');
26
26
  const sqmNavigationSidebarItemView = require('./sqm-navigation-sidebar-item-view-6f35d2ee.js');
27
- const sqmPortalEmailVerificationView = require('./sqm-portal-email-verification-view-8d5b23f3.js');
27
+ const sqmPortalEmailVerificationView = require('./sqm-portal-email-verification-view-f5ce25cc.js');
28
28
  const sqmPortalForgotPasswordView = require('./sqm-portal-forgot-password-view-b986086e.js');
29
29
  const sqmPortalLoginView = require('./sqm-portal-login-view-84e99287.js');
30
30
  const sqmBaseRegistrationFormView = require('./sqm-base-registration-form-view-1b2440c3.js');
31
31
  const sqmPortalRegistrationFormView = require('./sqm-portal-registration-form-view-4377d849.js');
32
- const sqmPortalProfileView = require('./sqm-portal-profile-view-fcb3ea3f.js');
32
+ const sqmPortalProfileView = require('./sqm-portal-profile-view-07d13061.js');
33
33
  require('./utilities-78f5e169.js');
34
34
  const sqmPortalResetPasswordView = require('./sqm-portal-reset-password-view-52fc50fe.js');
35
35
  const sqmPortalVerifyEmailView = require('./sqm-portal-verify-email-view-4f837226.js');
36
36
  require('./ErrorView-b2fcf954.js');
37
37
  const sqmQrCodeView = require('./sqm-qr-code-view-3da9ed28.js');
38
- const ShadowViewAddon = require('./ShadowViewAddon-3f11bc68.js');
38
+ const ShadowViewAddon = require('./ShadowViewAddon-e666dc8b.js');
39
39
  const sqmPortalContainerView = require('./sqm-portal-container-view-4f15143a.js');
40
- const sqmInvoiceTableView = require('./sqm-invoice-table-view-8b950046.js');
40
+ const sqmInvoiceTableView = require('./sqm-invoice-table-view-f369b0a6.js');
41
41
 
42
42
  /**
43
43
  * lodash (Custom Build) <https://lodash.com/>
@@ -1726,6 +1726,18 @@ const CopyButtonBelow = () => {
1726
1726
  buttonStyle: "button-below",
1727
1727
  })));
1728
1728
  };
1729
+ const CustomStyles = () => {
1730
+ const props = {
1731
+ copyString: "https://noah.example.com",
1732
+ open: false,
1733
+ tooltiptext: "Copied!",
1734
+ backgroundColor: "#1ed760",
1735
+ borderRadius: "30px",
1736
+ textColor: "#121212",
1737
+ buttonType: "primary",
1738
+ };
1739
+ return index.h(copyTextView.CopyTextView, Object.assign({}, props));
1740
+ };
1729
1741
  const FullStack = () => {
1730
1742
  return index.h("sqm-share-link", null);
1731
1743
  };
@@ -1741,6 +1753,7 @@ const ShareLink = /*#__PURE__*/Object.freeze({
1741
1753
  TextAlignRight: TextAlignRight,
1742
1754
  CopyButton: CopyButton,
1743
1755
  CopyButtonBelow: CopyButtonBelow,
1756
+ CustomStyles: CustomStyles,
1744
1757
  FullStack: FullStack
1745
1758
  });
1746
1759
 
@@ -476,7 +476,7 @@ export class CouponCode {
476
476
  "mutable": false,
477
477
  "complexType": {
478
478
  "original": "DemoData<CouponCodeViewProps>",
479
- "resolved": "{ loading?: boolean; errorType?: \"error\" | \"warning\" | \"info\" | \"success\"; couponCodeLabel?: string; copyString?: string; tooltiptext?: string; open?: boolean; copyButtonLabel?: string; disabled?: boolean; textAlign?: \"left\" | \"right\" | \"center\"; buttonStyle?: \"icon\" | \"button-outside\" | \"button-below\"; error?: boolean; errorText?: string; notificationText?: string; showNotificationText?: boolean; inputPlaceholderText?: string; dateAvailable?: string; isCopied?: boolean; onClick?: () => void; }",
479
+ "resolved": "{ loading?: boolean; errorType?: \"error\" | \"warning\" | \"info\" | \"success\"; couponCodeLabel?: string; copyString?: string; tooltiptext?: string; open?: boolean; copyButtonLabel?: string; disabled?: boolean; textAlign?: \"left\" | \"right\" | \"center\"; buttonStyle?: \"icon\" | \"button-outside\" | \"button-below\"; error?: boolean; errorText?: string; notificationText?: string; showNotificationText?: boolean; inputPlaceholderText?: string; dateAvailable?: string; isCopied?: boolean; backgroundColor?: string; textColor?: string; borderRadius?: string; buttonType?: \"primary\" | \"secondary\"; borderColor?: string; onClick?: () => void; }",
480
480
  "references": {
481
481
  "DemoData": {
482
482
  "location": "import",
@@ -122,7 +122,7 @@ export class LogoutCurrentUser {
122
122
  "mutable": false,
123
123
  "complexType": {
124
124
  "original": "DemoData<CopyTextViewProps>",
125
- "resolved": "{ loading?: boolean; copyString?: string; tooltiptext?: string; open?: boolean; copyButtonLabel?: string; disabled?: boolean; textAlign?: \"left\" | \"right\" | \"center\"; buttonStyle?: \"icon\" | \"button-outside\" | \"button-below\"; error?: boolean; errorText?: string; notificationText?: string; showNotificationText?: boolean; inputPlaceholderText?: string; dateAvailable?: string; isCopied?: boolean; onClick?: () => void; }",
125
+ "resolved": "{ loading?: boolean; copyString?: string; tooltiptext?: string; open?: boolean; copyButtonLabel?: string; disabled?: boolean; textAlign?: \"left\" | \"right\" | \"center\"; buttonStyle?: \"icon\" | \"button-outside\" | \"button-below\"; error?: boolean; errorText?: string; notificationText?: string; showNotificationText?: boolean; inputPlaceholderText?: string; dateAvailable?: string; isCopied?: boolean; backgroundColor?: string; textColor?: string; borderRadius?: string; buttonType?: \"primary\" | \"secondary\"; borderColor?: string; onClick?: () => void; }",
126
126
  "references": {
127
127
  "DemoData": {
128
128
  "location": "import",
@@ -8,6 +8,7 @@ export function ProgramExplainerStepView(props) {
8
8
  width: "100%",
9
9
  padding: "var(--sl-spacing-x-large)",
10
10
  lineHeight: "var(--sl-line-height-dense)",
11
+ borderRadius: props.borderRadius || "var(--sl-border-radius-large)",
11
12
  color: props.textColor || "var(--sqm-text)",
12
13
  background: props.backgroundColor || "var(--sl-color-primary-50)",
13
14
  "@media (max-width: 499px)": {
@@ -44,11 +45,14 @@ export function ProgramExplainerStepView(props) {
44
45
  borderRadius: "100%",
45
46
  objectFit: "cover",
46
47
  userSelect: "none",
47
- background: "#FFF",
48
- color: "var(--sl-color-primary-300)",
48
+ background: props.iconBackgroundColor || "var(--sl-color-white)",
49
+ color: props.iconColor || "var(--sl-color-primary-500)",
49
50
  fontSize: "26px",
50
51
  textAlign: "center",
51
52
  lineHeight: "72px",
53
+ display: "flex",
54
+ alignItems: "center",
55
+ justifyContent: "center",
52
56
  },
53
57
  };
54
58
  const sheet = createStyleSheet(style);
@@ -71,7 +71,7 @@ export class ProgramExplainerStep {
71
71
  "references": {}
72
72
  },
73
73
  "required": false,
74
- "optional": false,
74
+ "optional": true,
75
75
  "docs": {
76
76
  "tags": [{
77
77
  "text": "Text color",
@@ -97,7 +97,7 @@ export class ProgramExplainerStep {
97
97
  "references": {}
98
98
  },
99
99
  "required": false,
100
- "optional": false,
100
+ "optional": true,
101
101
  "docs": {
102
102
  "tags": [{
103
103
  "text": "Background color",
@@ -114,6 +114,81 @@ export class ProgramExplainerStep {
114
114
  "attribute": "background-color",
115
115
  "reflect": false
116
116
  },
117
+ "borderRadius": {
118
+ "type": "string",
119
+ "mutable": false,
120
+ "complexType": {
121
+ "original": "string",
122
+ "resolved": "string",
123
+ "references": {}
124
+ },
125
+ "required": false,
126
+ "optional": true,
127
+ "docs": {
128
+ "tags": [{
129
+ "text": "Border radius",
130
+ "name": "uiName"
131
+ }, {
132
+ "text": "number",
133
+ "name": "type"
134
+ }],
135
+ "text": ""
136
+ },
137
+ "attribute": "border-radius",
138
+ "reflect": false
139
+ },
140
+ "iconBackgroundColor": {
141
+ "type": "string",
142
+ "mutable": false,
143
+ "complexType": {
144
+ "original": "string",
145
+ "resolved": "string",
146
+ "references": {}
147
+ },
148
+ "required": false,
149
+ "optional": true,
150
+ "docs": {
151
+ "tags": [{
152
+ "text": "Icon Background color",
153
+ "name": "uiName"
154
+ }, {
155
+ "text": "color",
156
+ "name": "uiWidget"
157
+ }, {
158
+ "text": "color",
159
+ "name": "format"
160
+ }],
161
+ "text": ""
162
+ },
163
+ "attribute": "icon-background-color",
164
+ "reflect": false
165
+ },
166
+ "iconColor": {
167
+ "type": "string",
168
+ "mutable": false,
169
+ "complexType": {
170
+ "original": "string",
171
+ "resolved": "string",
172
+ "references": {}
173
+ },
174
+ "required": false,
175
+ "optional": true,
176
+ "docs": {
177
+ "tags": [{
178
+ "text": "Icon color",
179
+ "name": "uiName"
180
+ }, {
181
+ "text": "color",
182
+ "name": "uiWidget"
183
+ }, {
184
+ "text": "color",
185
+ "name": "format"
186
+ }],
187
+ "text": ""
188
+ },
189
+ "attribute": "icon-color",
190
+ "reflect": false
191
+ },
117
192
  "imageUrl": {
118
193
  "type": "string",
119
194
  "mutable": false,
@@ -265,7 +265,7 @@ export class ReferralCode {
265
265
  "mutable": false,
266
266
  "complexType": {
267
267
  "original": "DemoData<CopyTextViewProps>",
268
- "resolved": "{ loading?: boolean; copyString?: string; tooltiptext?: string; open?: boolean; copyButtonLabel?: string; disabled?: boolean; textAlign?: \"left\" | \"right\" | \"center\"; buttonStyle?: \"icon\" | \"button-outside\" | \"button-below\"; error?: boolean; errorText?: string; notificationText?: string; showNotificationText?: boolean; inputPlaceholderText?: string; dateAvailable?: string; isCopied?: boolean; onClick?: () => void; }",
268
+ "resolved": "{ loading?: boolean; copyString?: string; tooltiptext?: string; open?: boolean; copyButtonLabel?: string; disabled?: boolean; textAlign?: \"left\" | \"right\" | \"center\"; buttonStyle?: \"icon\" | \"button-outside\" | \"button-below\"; error?: boolean; errorText?: string; notificationText?: string; showNotificationText?: boolean; inputPlaceholderText?: string; dateAvailable?: string; isCopied?: boolean; backgroundColor?: string; textColor?: string; borderRadius?: string; buttonType?: \"primary\" | \"secondary\"; borderColor?: string; onClick?: () => void; }",
269
269
  "references": {
270
270
  "DemoData": {
271
271
  "location": "import",
@@ -490,7 +490,7 @@ export class ShareButton {
490
490
  "mutable": false,
491
491
  "complexType": {
492
492
  "original": "DemoData<ShareButtonViewProps>",
493
- "resolved": "{ loading?: boolean; icon?: string; disabled?: boolean; onClick?: () => void; medium?: \"facebook\" | \"twitter\" | \"email\" | \"direct\" | \"linkedin\" | \"sms\" | \"fbmessenger\" | \"whatsapp\" | \"linemessenger\" | \"pinterest\" | \"reminder\" | \"unknown\"; pill?: boolean; type?: \"text\" | \"warning\" | \"info\" | \"success\" | \"default\" | \"primary\" | \"danger\"; size?: \"small\" | \"medium\" | \"large\"; hideicon?: boolean; hidetext?: boolean; iconslot?: \"prefix\" | \"suffix\"; hide?: boolean; borderradius?: number; backgroundcolor?: string; textcolor?: string; messageLink?: string; openInSameTab?: boolean; isPlainLink?: boolean; }",
493
+ "resolved": "{ loading?: boolean; icon?: string; disabled?: boolean; onClick?: () => void; medium?: \"facebook\" | \"twitter\" | \"email\" | \"direct\" | \"linkedin\" | \"sms\" | \"fbmessenger\" | \"whatsapp\" | \"linemessenger\" | \"pinterest\" | \"reminder\" | \"unknown\"; pill?: boolean; type?: \"text\" | \"warning\" | \"info\" | \"success\" | \"primary\" | \"default\" | \"danger\"; size?: \"small\" | \"medium\" | \"large\"; hideicon?: boolean; hidetext?: boolean; iconslot?: \"prefix\" | \"suffix\"; hide?: boolean; borderradius?: number; backgroundcolor?: string; textcolor?: string; messageLink?: string; openInSameTab?: boolean; isPlainLink?: boolean; }",
494
494
  "references": {
495
495
  "DemoData": {
496
496
  "location": "import",
@@ -32,6 +32,7 @@ export class ShareCode {
32
32
  * @uiType string
33
33
  * @uiEnum ["left", "center", "right"]
34
34
  * @uiEnumNames ["Left", "Center", "Right"]
35
+ * @uiGroup Style
35
36
  */
36
37
  this.textAlign = "left";
37
38
  /**
@@ -45,8 +46,18 @@ export class ShareCode {
45
46
  * @uiType string
46
47
  * @uiEnum ["icon", "button-outside", "button-below"]
47
48
  * @uiEnumNames ["Icon", "Button outside", "Button below"]
49
+ * @uiGroup Style
48
50
  */
49
51
  this.buttonStyle = "icon";
52
+ /**
53
+ * The type of the button (primary or secondary) that will be used to copy the link.
54
+ * @uiName Button Type
55
+ * @uiType string
56
+ * @uiEnum ["primary", "secondary"]
57
+ * @uiEnumNames ["Primary", "Secondary"]
58
+ * @uiGroup Style
59
+ */
60
+ this.buttonType = "primary";
50
61
  withHooks(this);
51
62
  }
52
63
  disconnectedCallback() { }
@@ -148,6 +159,9 @@ export class ShareCode {
148
159
  }, {
149
160
  "text": "[\"Left\", \"Center\", \"Right\"]",
150
161
  "name": "uiEnumNames"
162
+ }, {
163
+ "text": "Style",
164
+ "name": "uiGroup"
151
165
  }],
152
166
  "text": "Change the text alignment"
153
167
  },
@@ -155,6 +169,90 @@ export class ShareCode {
155
169
  "reflect": false,
156
170
  "defaultValue": "\"left\""
157
171
  },
172
+ "backgroundColor": {
173
+ "type": "string",
174
+ "mutable": false,
175
+ "complexType": {
176
+ "original": "string",
177
+ "resolved": "string",
178
+ "references": {}
179
+ },
180
+ "required": false,
181
+ "optional": true,
182
+ "docs": {
183
+ "tags": [{
184
+ "text": "Background color",
185
+ "name": "uiName"
186
+ }, {
187
+ "text": "color",
188
+ "name": "uiWidget"
189
+ }, {
190
+ "text": "color",
191
+ "name": "format"
192
+ }, {
193
+ "text": "Style",
194
+ "name": "uiGroup"
195
+ }],
196
+ "text": "Background color of share link container"
197
+ },
198
+ "attribute": "background-color",
199
+ "reflect": false
200
+ },
201
+ "textColor": {
202
+ "type": "string",
203
+ "mutable": false,
204
+ "complexType": {
205
+ "original": "string",
206
+ "resolved": "string",
207
+ "references": {}
208
+ },
209
+ "required": false,
210
+ "optional": true,
211
+ "docs": {
212
+ "tags": [{
213
+ "text": "Text color",
214
+ "name": "uiName"
215
+ }, {
216
+ "text": "color",
217
+ "name": "uiWidget"
218
+ }, {
219
+ "text": "color",
220
+ "name": "format"
221
+ }, {
222
+ "text": "Style",
223
+ "name": "uiGroup"
224
+ }],
225
+ "text": "Color of the text and copy icon"
226
+ },
227
+ "attribute": "text-color",
228
+ "reflect": false
229
+ },
230
+ "borderRadius": {
231
+ "type": "string",
232
+ "mutable": false,
233
+ "complexType": {
234
+ "original": "string",
235
+ "resolved": "string",
236
+ "references": {}
237
+ },
238
+ "required": false,
239
+ "optional": true,
240
+ "docs": {
241
+ "tags": [{
242
+ "text": "Border Radius",
243
+ "name": "uiName"
244
+ }, {
245
+ "text": "number",
246
+ "name": "uiType"
247
+ }, {
248
+ "text": "Style",
249
+ "name": "uiGroup"
250
+ }],
251
+ "text": "The border radius on the share link container"
252
+ },
253
+ "attribute": "border-radius",
254
+ "reflect": false
255
+ },
158
256
  "copyButtonLabel": {
159
257
  "type": "string",
160
258
  "mutable": false,
@@ -199,6 +297,9 @@ export class ShareCode {
199
297
  }, {
200
298
  "text": "[\"Icon\", \"Button outside\", \"Button below\"]",
201
299
  "name": "uiEnumNames"
300
+ }, {
301
+ "text": "Style",
302
+ "name": "uiGroup"
202
303
  }],
203
304
  "text": "Set the copy button style and placement"
204
305
  },
@@ -206,12 +307,45 @@ export class ShareCode {
206
307
  "reflect": false,
207
308
  "defaultValue": "\"icon\""
208
309
  },
310
+ "buttonType": {
311
+ "type": "string",
312
+ "mutable": false,
313
+ "complexType": {
314
+ "original": "\"primary\" | \"secondary\"",
315
+ "resolved": "\"primary\" | \"secondary\"",
316
+ "references": {}
317
+ },
318
+ "required": false,
319
+ "optional": true,
320
+ "docs": {
321
+ "tags": [{
322
+ "text": "Button Type",
323
+ "name": "uiName"
324
+ }, {
325
+ "text": "string",
326
+ "name": "uiType"
327
+ }, {
328
+ "text": "[\"primary\", \"secondary\"]",
329
+ "name": "uiEnum"
330
+ }, {
331
+ "text": "[\"Primary\", \"Secondary\"]",
332
+ "name": "uiEnumNames"
333
+ }, {
334
+ "text": "Style",
335
+ "name": "uiGroup"
336
+ }],
337
+ "text": "The type of the button (primary or secondary) that will be used to copy the link."
338
+ },
339
+ "attribute": "button-type",
340
+ "reflect": false,
341
+ "defaultValue": "\"primary\""
342
+ },
209
343
  "demoData": {
210
344
  "type": "unknown",
211
345
  "mutable": false,
212
346
  "complexType": {
213
347
  "original": "DemoData<CopyTextViewProps>",
214
- "resolved": "{ loading?: boolean; copyString?: string; tooltiptext?: string; open?: boolean; copyButtonLabel?: string; disabled?: boolean; textAlign?: \"left\" | \"right\" | \"center\"; buttonStyle?: \"icon\" | \"button-outside\" | \"button-below\"; error?: boolean; errorText?: string; notificationText?: string; showNotificationText?: boolean; inputPlaceholderText?: string; dateAvailable?: string; isCopied?: boolean; onClick?: () => void; }",
348
+ "resolved": "{ loading?: boolean; copyString?: string; tooltiptext?: string; open?: boolean; copyButtonLabel?: string; disabled?: boolean; textAlign?: \"left\" | \"right\" | \"center\"; buttonStyle?: \"icon\" | \"button-outside\" | \"button-below\"; error?: boolean; errorText?: string; notificationText?: string; showNotificationText?: boolean; inputPlaceholderText?: string; dateAvailable?: string; isCopied?: boolean; backgroundColor?: string; textColor?: string; borderRadius?: string; buttonType?: \"primary\" | \"secondary\"; borderColor?: string; onClick?: () => void; }",
215
349
  "references": {
216
350
  "DemoData": {
217
351
  "location": "import",
@@ -247,6 +381,10 @@ function useDemoShareCode(props) {
247
381
  textAlign: props.textAlign,
248
382
  copyButtonLabel: props.copyButtonLabel,
249
383
  buttonStyle: props.buttonStyle,
384
+ backgroundColor: props.backgroundColor,
385
+ textColor: props.textColor,
386
+ borderRadius: props.borderRadius,
387
+ buttonType: props.buttonType,
250
388
  rewardStatus: "AVAILABLE",
251
389
  open,
252
390
  onClick: () => {
@@ -64,6 +64,18 @@ export const CopyButtonBelow = () => {
64
64
  buttonStyle: "button-below",
65
65
  })));
66
66
  };
67
+ export const CustomStyles = () => {
68
+ const props = {
69
+ copyString: "https://noah.example.com",
70
+ open: false,
71
+ tooltiptext: "Copied!",
72
+ backgroundColor: "#1ed760",
73
+ borderRadius: "30px",
74
+ textColor: "#121212",
75
+ buttonType: "primary",
76
+ };
77
+ return h(CopyTextView, Object.assign({}, props));
78
+ };
67
79
  export const FullStack = () => {
68
80
  return h("sqm-share-link", null);
69
81
  };