@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
@@ -43,6 +43,12 @@ export const WithPreviouslyCopiedCode = () => {
43
43
  shareCodeWithPreviouslyCopied("shareCodes"),
44
44
  shareButtons("shareButtons")));
45
45
  };
46
+ export const WithPreviouslyCopiedCodeAndCustomColor = () => {
47
+ return (h("sqm-referral-codes", { textColor: "red" },
48
+ pagination("pagination"),
49
+ shareCodeWithPreviouslyCopied("shareCodes"),
50
+ shareButtons("shareButtons")));
51
+ };
46
52
  export const Empty = () => {
47
53
  return (h("sqm-referral-codes", { demoData: { states: { ...demoData.states, noCodes: true } } },
48
54
  pagination("pagination"),
@@ -1,52 +1,52 @@
1
1
  import { h } from "@stencil/core";
2
2
  import { createStyleSheet } from "../../styling/JSS";
3
- const style = {
4
- Wrapper: {
5
- width: "100%",
6
- display: "flex",
7
- alignItems: "flex-start",
8
- justifyContent: "center",
9
- flexDirection: "column",
10
- gap: "var(--sl-spacing-large)",
11
- },
12
- HeaderContainer: {
13
- display: "flex",
14
- alignItems: "center",
15
- justifyContent: "space-between",
16
- width: "100%",
17
- },
18
- ShareCodeContainer: {
19
- width: "100%",
20
- display: "flex",
21
- alignItems: "flex-start",
22
- justifyContent: "center",
23
- flexDirection: "column",
24
- },
25
- ShareButtonContainer: {
26
- width: "100%",
27
- display: "flex",
28
- alignItems: "flex-start",
29
- justifyContent: "center",
30
- flexDirection: "column",
31
- },
32
- TitleText: {
33
- color: "var(--sqm-text-subdued)",
34
- fontSize: "var(--sl-font-size-large)",
35
- margin: "0",
36
- },
37
- };
38
- const vanillaStyle = `
39
- :host {
40
- display: block;
41
- }
42
- :host([hidden]): {
43
- display: none;
44
- }
45
- `;
46
- const sheet = createStyleSheet(style);
47
- const styleString = sheet.toString();
48
3
  export function ReferralCodesView(props) {
49
- const { slots, titleText, states } = props;
4
+ const { slots, titleText, states, textColor = "var(--sqm-text-subdued)", } = props;
5
+ const style = {
6
+ Wrapper: {
7
+ width: "100%",
8
+ display: "flex",
9
+ alignItems: "flex-start",
10
+ justifyContent: "center",
11
+ flexDirection: "column",
12
+ gap: "var(--sl-spacing-large)",
13
+ color: textColor,
14
+ },
15
+ HeaderContainer: {
16
+ display: "flex",
17
+ alignItems: "center",
18
+ justifyContent: "space-between",
19
+ width: "100%",
20
+ },
21
+ ShareCodeContainer: {
22
+ width: "100%",
23
+ display: "flex",
24
+ alignItems: "flex-start",
25
+ justifyContent: "center",
26
+ flexDirection: "column",
27
+ },
28
+ ShareButtonContainer: {
29
+ width: "100%",
30
+ display: "flex",
31
+ alignItems: "flex-start",
32
+ justifyContent: "center",
33
+ flexDirection: "column",
34
+ },
35
+ TitleText: {
36
+ fontSize: "var(--sl-font-size-large)",
37
+ margin: "0",
38
+ },
39
+ };
40
+ const vanillaStyle = `
41
+ :host {
42
+ display: block;
43
+ }
44
+ :host([hidden]): {
45
+ display: none;
46
+ }
47
+ `;
48
+ const sheet = createStyleSheet(style);
49
+ const styleString = sheet.toString();
50
50
  const getSlotContent = (states) => {
51
51
  if (states.noCodes) {
52
52
  return slots.empty;
@@ -77,6 +77,32 @@ export class ReferralCodes {
77
77
  "reflect": false,
78
78
  "defaultValue": "\"Start sharing\""
79
79
  },
80
+ "textColor": {
81
+ "type": "string",
82
+ "mutable": false,
83
+ "complexType": {
84
+ "original": "string",
85
+ "resolved": "string",
86
+ "references": {}
87
+ },
88
+ "required": false,
89
+ "optional": true,
90
+ "docs": {
91
+ "tags": [{
92
+ "text": "Text Color",
93
+ "name": "uiName"
94
+ }, {
95
+ "text": "string",
96
+ "name": "uiType"
97
+ }, {
98
+ "text": "color",
99
+ "name": "uiWidget"
100
+ }],
101
+ "text": ""
102
+ },
103
+ "attribute": "text-color",
104
+ "reflect": false
105
+ },
80
106
  "emptyStateHeaderText": {
81
107
  "type": "string",
82
108
  "mutable": false,
@@ -168,7 +194,7 @@ export class ReferralCodes {
168
194
  "mutable": false,
169
195
  "complexType": {
170
196
  "original": "DemoData<ReferralCodesViewProps>",
171
- "resolved": "{ states?: { noCodes: boolean; loading: boolean; }; slots?: { shareButtons: VNode; shareCodes: VNode; pagination: VNode; empty: VNode; loading: VNode; }; titleText?: string; }",
197
+ "resolved": "{ states?: { noCodes: boolean; loading: boolean; }; slots?: { shareButtons: VNode; shareCodes: VNode; pagination: VNode; empty: VNode; loading: VNode; }; titleText?: string; textColor?: string; }",
172
198
  "references": {
173
199
  "DemoData": {
174
200
  "location": "import",
@@ -212,6 +238,7 @@ function LoadingRow() {
212
238
  function useDemoReferralCodes(props) {
213
239
  return deepmerge({
214
240
  titleText: props.titleText,
241
+ textColor: props.textColor,
215
242
  states: {
216
243
  noCodes: false,
217
244
  loading: false,
@@ -248,7 +248,7 @@ export class ShareCode {
248
248
  "text": "Style",
249
249
  "name": "uiGroup"
250
250
  }],
251
- "text": "The border radius on the share link container"
251
+ "text": "The border radius on the share link container (in pixels)"
252
252
  },
253
253
  "attribute": "border-radius",
254
254
  "reflect": false
@@ -374,7 +374,7 @@ export class ShareCode {
374
374
  "mutable": false,
375
375
  "complexType": {
376
376
  "original": "DemoData<CopyTextViewProps>",
377
- "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; }",
377
+ "resolved": "{ loading?: boolean; textColor?: 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; borderRadius?: string; buttonType?: \"primary\" | \"secondary\"; borderColor?: string; onClick?: () => void; }",
378
378
  "references": {
379
379
  "DemoData": {
380
380
  "location": "import",
@@ -413,6 +413,7 @@ function useDemoShareCode(props) {
413
413
  backgroundColor: props.backgroundColor,
414
414
  textColor: props.textColor,
415
415
  borderRadius: props.borderRadius,
416
+ borderColor: props.borderColor,
416
417
  buttonType: props.buttonType,
417
418
  rewardStatus: "AVAILABLE",
418
419
  open,
@@ -31,6 +31,7 @@ export class ShareLink {
31
31
  * @uiType string
32
32
  * @uiEnum ["left", "center", "right"]
33
33
  * @uiEnumNames ["Left", "Center", "Right"]
34
+ * @uiGroup Style
34
35
  */
35
36
  this.textAlign = "left";
36
37
  /**
@@ -157,6 +158,9 @@ export class ShareLink {
157
158
  }, {
158
159
  "text": "[\"Left\", \"Center\", \"Right\"]",
159
160
  "name": "uiEnumNames"
161
+ }, {
162
+ "text": "Style",
163
+ "name": "uiGroup"
160
164
  }],
161
165
  "text": "Change the text alignment"
162
166
  },
@@ -293,7 +297,7 @@ export class ShareLink {
293
297
  "text": "Style",
294
298
  "name": "uiGroup"
295
299
  }],
296
- "text": "The border radius on the share link container"
300
+ "text": "The border radius on the share link container (in pixels)"
297
301
  },
298
302
  "attribute": "border-radius",
299
303
  "reflect": false
@@ -369,7 +373,7 @@ export class ShareLink {
369
373
  "mutable": false,
370
374
  "complexType": {
371
375
  "original": "DemoData<CopyTextViewProps>",
372
- "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; }",
376
+ "resolved": "{ loading?: boolean; textColor?: 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; borderRadius?: string; buttonType?: \"primary\" | \"secondary\"; borderColor?: string; onClick?: () => void; }",
373
377
  "references": {
374
378
  "DemoData": {
375
379
  "location": "import",
@@ -72,7 +72,7 @@ export function CopyTextView(props) {
72
72
  },
73
73
  notificationTextStyle: {
74
74
  margin: "0",
75
- color: "var(--sl-color-neutral-500)",
75
+ color: "inherit",
76
76
  },
77
77
  };
78
78
  const sheet = createStyleSheet(style);
@@ -7,7 +7,7 @@ import { l as luxonLocale } from './utils-334c1e34.js';
7
7
  import { c as createStyleSheet, j as jss, a as create } from './JSS-67b5cff8.js';
8
8
  import { a as REFERRAL_CODES_NAMESPACE, S as SET_CODE_COPIED } from './useReferralCodes-8f75921a.js';
9
9
  import { H as HostBlock, A as AuthWrapper, a as AuthColumn, b as AuthButtonsContainer, E as ErrorStyles } from './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 { u as useChildElements } from './useChildElements-7945ae56.js';
12
12
  import { l as luxon } from './luxon-8d51c92b.js';
13
13
  import { T as TextSpanView } from './sqm-text-span-view-c577cc60.js';
@@ -73,7 +73,7 @@ function CopyTextView(props) {
73
73
  },
74
74
  notificationTextStyle: {
75
75
  margin: "0",
76
- color: "var(--sl-color-neutral-500)",
76
+ color: "inherit",
77
77
  },
78
78
  };
79
79
  const sheet = createStyleSheet(style);