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

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 (132) 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 +44 -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 +1 -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 +54 -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 +44 -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-c07551c4.system.entry.js → p-5ca8959a.system.entry.js} +1 -1
  88. package/dist/mint-components/{p-c0b52238.entry.js → p-619c2aa3.entry.js} +1 -1
  89. package/dist/mint-components/{p-c53b8fe7.entry.js → p-6f34c2c2.entry.js} +2 -2
  90. package/dist/mint-components/{p-5c2d9a52.entry.js → p-734695a0.entry.js} +1 -1
  91. package/dist/mint-components/{p-e4fd9966.entry.js → p-7f1e10d3.entry.js} +2 -2
  92. package/dist/mint-components/{p-383d8c5a.system.entry.js → p-837dbf90.system.entry.js} +1 -1
  93. package/dist/mint-components/{p-15d20bf9.entry.js → p-8b36fe4f.entry.js} +11 -11
  94. package/dist/mint-components/p-8c12078e.js +394 -0
  95. package/dist/mint-components/{p-2e4129e0.system.entry.js → p-90421929.system.entry.js} +1 -1
  96. package/dist/mint-components/{p-10ed0483.system.entry.js → p-9209a016.system.entry.js} +1 -1
  97. package/dist/mint-components/{p-646cfbd5.system.js → p-93fed35b.system.js} +1 -1
  98. package/dist/mint-components/{p-05255c61.system.js → p-95ae4ab9.system.js} +1 -1
  99. package/dist/mint-components/{p-fa630b25.system.entry.js → p-a37541ae.system.entry.js} +1 -1
  100. package/dist/mint-components/{p-32d5cbc1.js → p-abefb7cc.js} +1 -1
  101. package/dist/mint-components/{p-7e8bf5cb.system.entry.js → p-ad985d37.system.entry.js} +1 -1
  102. package/dist/mint-components/p-bdbbc673.system.entry.js +1 -0
  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-link/ShareLink.stories.d.ts +1 -0
  115. package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +30 -1
  116. package/dist/types/components/sqm-task-card/sqm-task-card-view.d.ts +5 -0
  117. package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +32 -0
  118. package/dist/types/components/sqm-task-card/useTaskCard.d.ts +9 -0
  119. package/dist/types/components/views/copy-text-view.d.ts +5 -0
  120. package/dist/types/components.d.ts +122 -4
  121. package/dist/types/global/styles.d.ts +1 -1
  122. package/docs/docs.docx +0 -0
  123. package/docs/raisins.json +1 -1
  124. package/grapesjs/grapesjs.js +1 -1
  125. package/package.json +1 -1
  126. package/dist/esm-es5/ShadowViewAddon-f5791215.js +0 -1
  127. package/dist/esm-es5/copy-text-view-782137ba.js +0 -1
  128. package/dist/mint-components/p-31015791.js +0 -1
  129. package/dist/mint-components/p-3708a40b.system.js +0 -1
  130. package/dist/mint-components/p-3b90e01b.system.js +0 -1
  131. package/dist/mint-components/p-97ccee03.system.entry.js +0 -1
  132. package/dist/mint-components/p-acf93efa.js +0 -394
@@ -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",
@@ -211,7 +211,7 @@ export class ShareCode {
211
211
  "mutable": false,
212
212
  "complexType": {
213
213
  "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; }",
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; backgroundColor?: string; textColor?: string; borderRadius?: string; buttonType?: \"primary\" | \"secondary\"; borderColor?: string; onClick?: () => void; }",
215
215
  "references": {
216
216
  "DemoData": {
217
217
  "location": "import",
@@ -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
  };
@@ -37,13 +37,23 @@ export class ShareLink {
37
37
  * @uiName Copy button label
38
38
  */
39
39
  this.copyButtonLabel = "Copy Link";
40
+ /**
41
+ * The type of the button (primary or secondary) that will be used to copy the link.
42
+ * @uiName Button Type
43
+ * @uiType string
44
+ * @uiEnum ["primary", "secondary"]
45
+ * @uiEnumNames ["Primary", "Secondary"]
46
+ * @uiGroup Style
47
+ */
48
+ this.buttonType = "primary";
40
49
  /**
41
50
  * Set the copy button style and placement
42
51
  *
43
- * @uiName Style
52
+ * @uiName Button style
44
53
  * @uiType string
45
54
  * @uiEnum ["icon", "button-outside", "button-below"]
46
55
  * @uiEnumNames ["Icon", "Button outside", "Button below"]
56
+ * @uiGroup Style
47
57
  */
48
58
  this.buttonStyle = "icon";
49
59
  withHooks(this);
@@ -175,6 +185,39 @@ export class ShareLink {
175
185
  "reflect": false,
176
186
  "defaultValue": "\"Copy Link\""
177
187
  },
188
+ "buttonType": {
189
+ "type": "string",
190
+ "mutable": false,
191
+ "complexType": {
192
+ "original": "\"primary\" | \"secondary\"",
193
+ "resolved": "\"primary\" | \"secondary\"",
194
+ "references": {}
195
+ },
196
+ "required": false,
197
+ "optional": true,
198
+ "docs": {
199
+ "tags": [{
200
+ "text": "Button Type",
201
+ "name": "uiName"
202
+ }, {
203
+ "text": "string",
204
+ "name": "uiType"
205
+ }, {
206
+ "text": "[\"primary\", \"secondary\"]",
207
+ "name": "uiEnum"
208
+ }, {
209
+ "text": "[\"Primary\", \"Secondary\"]",
210
+ "name": "uiEnumNames"
211
+ }, {
212
+ "text": "Style",
213
+ "name": "uiGroup"
214
+ }],
215
+ "text": "The type of the button (primary or secondary) that will be used to copy the link."
216
+ },
217
+ "attribute": "button-type",
218
+ "reflect": false,
219
+ "defaultValue": "\"primary\""
220
+ },
178
221
  "buttonStyle": {
179
222
  "type": "string",
180
223
  "mutable": false,
@@ -187,7 +230,7 @@ export class ShareLink {
187
230
  "optional": true,
188
231
  "docs": {
189
232
  "tags": [{
190
- "text": "Style",
233
+ "text": "Button style",
191
234
  "name": "uiName"
192
235
  }, {
193
236
  "text": "string",
@@ -198,6 +241,9 @@ export class ShareLink {
198
241
  }, {
199
242
  "text": "[\"Icon\", \"Button outside\", \"Button below\"]",
200
243
  "name": "uiEnumNames"
244
+ }, {
245
+ "text": "Style",
246
+ "name": "uiGroup"
201
247
  }],
202
248
  "text": "Set the copy button style and placement"
203
249
  },
@@ -210,7 +256,7 @@ export class ShareLink {
210
256
  "mutable": false,
211
257
  "complexType": {
212
258
  "original": "DemoData<CopyTextViewProps>",
213
- "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; }",
259
+ "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; }",
214
260
  "references": {
215
261
  "DemoData": {
216
262
  "location": "import",
@@ -245,7 +291,12 @@ function useDemoShareLink(props) {
245
291
  tooltiptext: props.tooltiptext,
246
292
  textAlign: props.textAlign,
247
293
  buttonStyle: props.buttonStyle,
294
+ backgroundColor: props.backgroundColor,
295
+ textColor: props.textColor,
296
+ borderRadius: props.borderRadius,
297
+ buttonType: props.buttonType,
248
298
  copyButtonLabel: props.copyButtonLabel,
299
+ // borderColor: props.borderColor,
249
300
  rewardStatus: "AVAILABLE",
250
301
  open,
251
302
  onClick: () => {
@@ -12,7 +12,7 @@ export const style = {
12
12
  position: "absolute",
13
13
  top: "var(--sl-spacing-medium)",
14
14
  right: "var(--sl-spacing-medium)",
15
- color: "var(--sl-color-neutral-700)",
15
+ color: "var(--sqm-text)",
16
16
  fontSize: "var(--sl-font-size-large)",
17
17
  "& :hover": {
18
18
  color: "var(--sl-color-primary-700)",