@saasquatch/mint-components 1.15.0-8 → 1.15.0-9

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 (69) hide show
  1. package/dist/cjs/{ShadowViewAddon-afc40c22.js → ShadowViewAddon-3e3e03ab.js} +1 -1
  2. package/dist/cjs/{copy-text-view-9d4259f4.js → copy-text-view-b2f47da0.js} +1 -1
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/mint-components.cjs.js +1 -1
  5. package/dist/cjs/sqm-big-stat_41.cjs.entry.js +21 -3
  6. package/dist/cjs/sqm-pagination_3.cjs.entry.js +70 -54
  7. package/dist/cjs/sqm-stencilbook.cjs.entry.js +13 -2
  8. package/dist/collection/components/sqm-coupon-code/sqm-coupon-code.js +1 -1
  9. package/dist/collection/components/sqm-hero-image/sqm-hero-image-view.js +1 -1
  10. package/dist/collection/components/sqm-hero-image/sqm-hero-image.js +79 -0
  11. package/dist/collection/components/sqm-logout-current-user/sqm-logout-current-user.js +1 -1
  12. package/dist/collection/components/sqm-referral-code/ReferralCode.stories.js +3 -0
  13. package/dist/collection/components/sqm-referral-code/sqm-referral-code.js +165 -1
  14. package/dist/collection/components/sqm-referral-codes/ReferralCodes.stories.js +6 -0
  15. package/dist/collection/components/sqm-referral-codes/sqm-referral-codes-view.js +46 -46
  16. package/dist/collection/components/sqm-referral-codes/sqm-referral-codes.js +28 -1
  17. package/dist/collection/components/sqm-share-code/sqm-share-code.js +3 -2
  18. package/dist/collection/components/sqm-share-link/sqm-share-link.js +6 -2
  19. package/dist/collection/components/views/copy-text-view.js +1 -1
  20. package/dist/esm/{ShadowViewAddon-bdedf635.js → ShadowViewAddon-ccd5586b.js} +1 -1
  21. package/dist/esm/{copy-text-view-ca98ab38.js → copy-text-view-0ac6e1d1.js} +1 -1
  22. package/dist/esm/loader.js +1 -1
  23. package/dist/esm/mint-components.js +1 -1
  24. package/dist/esm/sqm-big-stat_41.entry.js +21 -3
  25. package/dist/esm/sqm-pagination_3.entry.js +70 -54
  26. package/dist/esm/sqm-stencilbook.entry.js +13 -2
  27. package/dist/esm-es5/{ShadowViewAddon-bdedf635.js → ShadowViewAddon-ccd5586b.js} +1 -1
  28. package/dist/esm-es5/copy-text-view-0ac6e1d1.js +1 -0
  29. package/dist/esm-es5/loader.js +1 -1
  30. package/dist/esm-es5/mint-components.js +1 -1
  31. package/dist/esm-es5/sqm-big-stat_41.entry.js +1 -1
  32. package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
  33. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  34. package/dist/mint-components/mint-components.esm.js +1 -1
  35. package/dist/mint-components/p-19439bf0.system.entry.js +1 -0
  36. package/dist/mint-components/p-2c7ebd5b.js +1 -0
  37. package/dist/mint-components/p-32dbde60.system.js +1 -0
  38. package/dist/mint-components/p-5ca43353.system.entry.js +1 -0
  39. package/dist/mint-components/{p-338bcfd6.system.js → p-6d061986.system.js} +1 -1
  40. package/dist/mint-components/{p-469ad274.js → p-ab47e9a7.js} +1 -1
  41. package/dist/mint-components/{p-484196f8.entry.js → p-b59cd472.entry.js} +2 -2
  42. package/dist/mint-components/{p-c39db551.system.entry.js → p-ccc207bc.system.entry.js} +1 -1
  43. package/dist/mint-components/{p-b889ec31.entry.js → p-cd31cfd4.entry.js} +11 -11
  44. package/dist/mint-components/p-d4546357.entry.js +13 -0
  45. package/dist/mint-components/p-ed11966d.system.js +1 -1
  46. package/dist/types/components/sqm-hero-image/sqm-hero-image-view.d.ts +1 -0
  47. package/dist/types/components/sqm-hero-image/sqm-hero-image.d.ts +19 -0
  48. package/dist/types/components/sqm-referral-code/ReferralCode.stories.d.ts +1 -0
  49. package/dist/types/components/sqm-referral-code/sqm-referral-code.d.ts +41 -0
  50. package/dist/types/components/sqm-referral-codes/ReferralCodes.stories.d.ts +1 -0
  51. package/dist/types/components/sqm-referral-codes/sqm-referral-codes-view.d.ts +1 -0
  52. package/dist/types/components/sqm-referral-codes/sqm-referral-codes.d.ts +6 -0
  53. package/dist/types/components/sqm-share-code/sqm-share-code.d.ts +1 -1
  54. package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +2 -1
  55. package/dist/types/components.d.ts +138 -4
  56. package/dist/types/global/android.d.ts +7 -0
  57. package/dist/types/global/demo.d.ts +2 -0
  58. package/dist/types/stories/features.d.ts +4 -0
  59. package/dist/types/stories/templates.d.ts +4 -0
  60. package/docs/docs.docx +0 -0
  61. package/docs/raisins.json +1 -1
  62. package/grapesjs/grapesjs.js +1 -1
  63. package/package.json +1 -1
  64. package/dist/esm-es5/copy-text-view-ca98ab38.js +0 -1
  65. package/dist/mint-components/p-09a77c82.system.entry.js +0 -1
  66. package/dist/mint-components/p-2195c312.entry.js +0 -13
  67. package/dist/mint-components/p-55c16fb9.system.js +0 -1
  68. package/dist/mint-components/p-642909e6.system.entry.js +0 -1
  69. package/dist/mint-components/p-9fe143f5.js +0 -1
@@ -7,7 +7,7 @@ import { g as getProps } from './utils-334c1e34.js';
7
7
  import { c as createStyleSheet } from './JSS-67b5cff8.js';
8
8
  import { R as REFERRAL_CODES_PAGINATION_CONTEXT, a as REFERRAL_CODES_NAMESPACE, S as SET_CODE_COPIED, u as useReferralCodes } from './useReferralCodes-8f75921a.js';
9
9
  import './mixins-83f90fa1.js';
10
- import { C as CopyTextView } from './copy-text-view-ca98ab38.js';
10
+ import { C as CopyTextView } from './copy-text-view-0ac6e1d1.js';
11
11
 
12
12
  const style = {
13
13
  Container: {
@@ -216,8 +216,18 @@ const ReferralCode = class {
216
216
  * @uiType string
217
217
  * @uiEnum ["icon", "button-outside", "button-below"]
218
218
  * @uiEnumNames ["Icon", "Button outside", "Button below"]
219
+ * @uiGroup Style
219
220
  */
220
221
  this.buttonStyle = "icon";
222
+ /**
223
+ * The type of the button (primary or secondary) that will be used to copy the link.
224
+ * @uiName Button Type
225
+ * @uiType string
226
+ * @uiEnum ["primary", "secondary"]
227
+ * @uiEnumNames ["Primary", "Secondary"]
228
+ * @uiGroup Style
229
+ */
230
+ this.buttonType = "primary";
221
231
  h$1(this);
222
232
  }
223
233
  disconnectedCallback() { }
@@ -241,6 +251,11 @@ function useDemoReferralCode(props) {
241
251
  notificationText: props.notificationText,
242
252
  showNotificationText: props.showNotificationText,
243
253
  isCopied: props.showNotificationText,
254
+ borderColor: props.borderColor,
255
+ backgroundColor: props.backgroundColor,
256
+ textColor: props.textColor,
257
+ borderRadius: props.borderRadius,
258
+ buttonType: props.buttonType,
244
259
  isUsed: false,
245
260
  rewardStatus: "AVAILABLE",
246
261
  open,
@@ -254,53 +269,53 @@ function useDemoReferralCode(props) {
254
269
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
255
270
  }
256
271
 
257
- const style$1 = {
258
- Wrapper: {
259
- width: "100%",
260
- display: "flex",
261
- alignItems: "flex-start",
262
- justifyContent: "center",
263
- flexDirection: "column",
264
- gap: "var(--sl-spacing-large)",
265
- },
266
- HeaderContainer: {
267
- display: "flex",
268
- alignItems: "center",
269
- justifyContent: "space-between",
270
- width: "100%",
271
- },
272
- ShareCodeContainer: {
273
- width: "100%",
274
- display: "flex",
275
- alignItems: "flex-start",
276
- justifyContent: "center",
277
- flexDirection: "column",
278
- },
279
- ShareButtonContainer: {
280
- width: "100%",
281
- display: "flex",
282
- alignItems: "flex-start",
283
- justifyContent: "center",
284
- flexDirection: "column",
285
- },
286
- TitleText: {
287
- color: "var(--sqm-text-subdued)",
288
- fontSize: "var(--sl-font-size-large)",
289
- margin: "0",
290
- },
291
- };
292
- const vanillaStyle = `
293
- :host {
294
- display: block;
295
- }
296
- :host([hidden]): {
297
- display: none;
298
- }
299
- `;
300
- const sheet$1 = createStyleSheet(style$1);
301
- const styleString$1 = sheet$1.toString();
302
272
  function ReferralCodesView(props) {
303
- const { slots, titleText, states } = props;
273
+ const { slots, titleText, states, textColor = "var(--sqm-text-subdued)", } = props;
274
+ const style = {
275
+ Wrapper: {
276
+ width: "100%",
277
+ display: "flex",
278
+ alignItems: "flex-start",
279
+ justifyContent: "center",
280
+ flexDirection: "column",
281
+ gap: "var(--sl-spacing-large)",
282
+ color: textColor,
283
+ },
284
+ HeaderContainer: {
285
+ display: "flex",
286
+ alignItems: "center",
287
+ justifyContent: "space-between",
288
+ width: "100%",
289
+ },
290
+ ShareCodeContainer: {
291
+ width: "100%",
292
+ display: "flex",
293
+ alignItems: "flex-start",
294
+ justifyContent: "center",
295
+ flexDirection: "column",
296
+ },
297
+ ShareButtonContainer: {
298
+ width: "100%",
299
+ display: "flex",
300
+ alignItems: "flex-start",
301
+ justifyContent: "center",
302
+ flexDirection: "column",
303
+ },
304
+ TitleText: {
305
+ fontSize: "var(--sl-font-size-large)",
306
+ margin: "0",
307
+ },
308
+ };
309
+ const vanillaStyle = `
310
+ :host {
311
+ display: block;
312
+ }
313
+ :host([hidden]): {
314
+ display: none;
315
+ }
316
+ `;
317
+ const sheet = createStyleSheet(style);
318
+ const styleString = sheet.toString();
304
319
  const getSlotContent = (states) => {
305
320
  if (states.noCodes) {
306
321
  return slots.empty;
@@ -308,16 +323,16 @@ function ReferralCodesView(props) {
308
323
  if (states.loading) {
309
324
  return slots.loading;
310
325
  }
311
- return (h("div", { class: sheet$1.classes.Wrapper },
312
- h("div", { class: sheet$1.classes.ShareCodeContainer }, slots.shareCodes),
313
- h("div", { class: sheet$1.classes.ShareButtonContainer }, slots.shareButtons)));
326
+ return (h("div", { class: sheet.classes.Wrapper },
327
+ h("div", { class: sheet.classes.ShareCodeContainer }, slots.shareCodes),
328
+ h("div", { class: sheet.classes.ShareButtonContainer }, slots.shareButtons)));
314
329
  };
315
- return (h("div", { class: sheet$1.classes.Wrapper, part: "sqm-base" },
330
+ return (h("div", { class: sheet.classes.Wrapper, part: "sqm-base" },
316
331
  h("style", { type: "text/css" },
317
332
  vanillaStyle,
318
- styleString$1),
319
- h("div", { class: sheet$1.classes.HeaderContainer },
320
- h("h2", { class: sheet$1.classes.TitleText }, titleText),
333
+ styleString),
334
+ h("div", { class: sheet.classes.HeaderContainer },
335
+ h("h2", { class: sheet.classes.TitleText }, titleText),
321
336
  !states.noCodes && !states.loading && slots.pagination),
322
337
  getSlotContent(states)));
323
338
  }
@@ -377,6 +392,7 @@ function LoadingRow() {
377
392
  function useDemoReferralCodes(props) {
378
393
  return cjs({
379
394
  titleText: props.titleText,
395
+ textColor: props.textColor,
380
396
  states: {
381
397
  noCodes: false,
382
398
  loading: false,
@@ -7,7 +7,7 @@ import './utils-334c1e34.js';
7
7
  import { c as createStyleSheet } from './JSS-67b5cff8.js';
8
8
  import './useReferralCodes-8f75921a.js';
9
9
  import './mixins-83f90fa1.js';
10
- import { C as CopyTextView } from './copy-text-view-ca98ab38.js';
10
+ import { C as CopyTextView } from './copy-text-view-0ac6e1d1.js';
11
11
  import { G as GenericTableView } from './GenericTableView-e7addb2b.js';
12
12
  import './useChildElements-7945ae56.js';
13
13
  import { l as luxon } from './luxon-8d51c92b.js';
@@ -31,7 +31,7 @@ import { P as PortalResetPasswordView } from './sqm-portal-reset-password-view-b
31
31
  import { P as PortalVerifyEmailView } from './sqm-portal-verify-email-view-2983ba9b.js';
32
32
  import './ErrorView-48e2b969.js';
33
33
  import { Q as QrCodeView } from './sqm-qr-code-view-10b8b4cb.js';
34
- import { S as ShareButtonView, L as LeaderboardView, B as BigStatView, P as PortalFrameView, E as EditProfileView, u as useShareLink, a as useShareButton, b as useDemoBigStat, c as StatContainerView, d as PortalChangePasswordView, e as PortalRegisterView, C as ChangeMarktingView, T as TaskCardView, f as ProgressBarView, g as PoweredByImg$1, h as PortalFooterView, H as HeroView, R as ReferralIframeView, N as NameFieldsView, i as CheckboxFieldView, D as DropdownFieldView, I as InputFieldView, j as RewardExchangeView, r as rewardExchangeCustomErrorMsg, k as rewardExchangeLongText, l as rewardExchangeSelected, m as chooseAmountFixed, n as chooseAmountFixedNoDescription, o as chooseAmountVariable, p as chooseAmountVariableNoDescription, q as chooseAmountVariableDisabled, s as chooseAmountVariableUnavailable, t as confirmFixed, v as confirmVariable, w as redemptionError, x as queryError, y as success, z as successVariable, A as loading, F as empty$1, G as rewardExchange, J as CardFeedView, K as CouponCodeView, M as ProgressBar$2, O as autoColorScaleCss, Q as ShadowViewAddon } from './ShadowViewAddon-bdedf635.js';
34
+ import { S as ShareButtonView, L as LeaderboardView, B as BigStatView, P as PortalFrameView, E as EditProfileView, u as useShareLink, a as useShareButton, b as useDemoBigStat, c as StatContainerView, d as PortalChangePasswordView, e as PortalRegisterView, C as ChangeMarktingView, T as TaskCardView, f as ProgressBarView, g as PoweredByImg$1, h as PortalFooterView, H as HeroView, R as ReferralIframeView, N as NameFieldsView, i as CheckboxFieldView, D as DropdownFieldView, I as InputFieldView, j as RewardExchangeView, r as rewardExchangeCustomErrorMsg, k as rewardExchangeLongText, l as rewardExchangeSelected, m as chooseAmountFixed, n as chooseAmountFixedNoDescription, o as chooseAmountVariable, p as chooseAmountVariableNoDescription, q as chooseAmountVariableDisabled, s as chooseAmountVariableUnavailable, t as confirmFixed, v as confirmVariable, w as redemptionError, x as queryError, y as success, z as successVariable, A as loading, F as empty$1, G as rewardExchange, J as CardFeedView, K as CouponCodeView, M as ProgressBar$2, O as autoColorScaleCss, Q as ShadowViewAddon } from './ShadowViewAddon-ccd5586b.js';
35
35
  import { P as PortalContainerView, a as PortalSectionView } from './sqm-portal-container-view-1683ae32.js';
36
36
  import { O as OtherRegionSlotView, I as InvoiceTableView, T as TaxForm } from './sqm-invoice-table-view-1bd8afaa.js';
37
37
 
@@ -14140,6 +14140,9 @@ const ReferralCode = () => {
14140
14140
  const ShowNotificationText = () => {
14141
14141
  return (h("sqm-referral-code", { showNotificationText: true, notificationText: "You've copied this code before" }));
14142
14142
  };
14143
+ const ShowNotificationTextRed = () => {
14144
+ return (h("sqm-referral-code", { textColor: "red", showNotificationText: true, notificationText: "You've copied this code before" }));
14145
+ };
14143
14146
  const ShowNotificationTextWithButton = () => {
14144
14147
  return (h("sqm-referral-code", { showNotificationText: true, notificationText: "You've copied this code before", buttonStyle: "button-outside" }));
14145
14148
  };
@@ -14191,6 +14194,7 @@ const ReferralCode$1 = /*#__PURE__*/Object.freeze({
14191
14194
  'default': ReferralCode_stories,
14192
14195
  ReferralCode: ReferralCode,
14193
14196
  ShowNotificationText: ShowNotificationText,
14197
+ ShowNotificationTextRed: ShowNotificationTextRed,
14194
14198
  ShowNotificationTextWithButton: ShowNotificationTextWithButton,
14195
14199
  ShowNotificationTextWithButtonBelow: ShowNotificationTextWithButtonBelow,
14196
14200
  CustomTooltipText: CustomTooltipText$1,
@@ -15596,6 +15600,12 @@ const WithPreviouslyCopiedCode = () => {
15596
15600
  shareCodeWithPreviouslyCopied("shareCodes"),
15597
15601
  shareButtons("shareButtons")));
15598
15602
  };
15603
+ const WithPreviouslyCopiedCodeAndCustomColor = () => {
15604
+ return (h("sqm-referral-codes", { textColor: "red" },
15605
+ pagination("pagination"),
15606
+ shareCodeWithPreviouslyCopied("shareCodes"),
15607
+ shareButtons("shareButtons")));
15608
+ };
15599
15609
  const Empty$3 = () => {
15600
15610
  return (h("sqm-referral-codes", { demoData: { states: { ...demoData.states, noCodes: true } } },
15601
15611
  pagination("pagination"),
@@ -15622,6 +15632,7 @@ const ReferralCodes$1 = /*#__PURE__*/Object.freeze({
15622
15632
  'default': ReferralCodes_stories,
15623
15633
  ReferralCodes: ReferralCodes,
15624
15634
  WithPreviouslyCopiedCode: WithPreviouslyCopiedCode,
15635
+ WithPreviouslyCopiedCodeAndCustomColor: WithPreviouslyCopiedCodeAndCustomColor,
15625
15636
  Empty: Empty$3,
15626
15637
  EmptyWithCustomTextAndImage: EmptyWithCustomTextAndImage,
15627
15638
  Loading: Loading$b