@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.
- package/dist/cjs/{ShadowViewAddon-afc40c22.js → ShadowViewAddon-3e3e03ab.js} +1 -1
- package/dist/cjs/{copy-text-view-9d4259f4.js → copy-text-view-b2f47da0.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/sqm-big-stat_41.cjs.entry.js +21 -3
- package/dist/cjs/sqm-pagination_3.cjs.entry.js +70 -54
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +13 -2
- package/dist/collection/components/sqm-coupon-code/sqm-coupon-code.js +1 -1
- package/dist/collection/components/sqm-hero-image/sqm-hero-image-view.js +1 -1
- package/dist/collection/components/sqm-hero-image/sqm-hero-image.js +79 -0
- package/dist/collection/components/sqm-logout-current-user/sqm-logout-current-user.js +1 -1
- package/dist/collection/components/sqm-referral-code/ReferralCode.stories.js +3 -0
- package/dist/collection/components/sqm-referral-code/sqm-referral-code.js +165 -1
- package/dist/collection/components/sqm-referral-codes/ReferralCodes.stories.js +6 -0
- package/dist/collection/components/sqm-referral-codes/sqm-referral-codes-view.js +46 -46
- package/dist/collection/components/sqm-referral-codes/sqm-referral-codes.js +28 -1
- package/dist/collection/components/sqm-share-code/sqm-share-code.js +3 -2
- package/dist/collection/components/sqm-share-link/sqm-share-link.js +6 -2
- package/dist/collection/components/views/copy-text-view.js +1 -1
- package/dist/esm/{ShadowViewAddon-bdedf635.js → ShadowViewAddon-ccd5586b.js} +1 -1
- package/dist/esm/{copy-text-view-ca98ab38.js → copy-text-view-0ac6e1d1.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/sqm-big-stat_41.entry.js +21 -3
- package/dist/esm/sqm-pagination_3.entry.js +70 -54
- package/dist/esm/sqm-stencilbook.entry.js +13 -2
- package/dist/esm-es5/{ShadowViewAddon-bdedf635.js → ShadowViewAddon-ccd5586b.js} +1 -1
- package/dist/esm-es5/copy-text-view-0ac6e1d1.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/sqm-big-stat_41.entry.js +1 -1
- package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/p-19439bf0.system.entry.js +1 -0
- package/dist/mint-components/p-2c7ebd5b.js +1 -0
- package/dist/mint-components/p-32dbde60.system.js +1 -0
- package/dist/mint-components/p-5ca43353.system.entry.js +1 -0
- package/dist/mint-components/{p-338bcfd6.system.js → p-6d061986.system.js} +1 -1
- package/dist/mint-components/{p-469ad274.js → p-ab47e9a7.js} +1 -1
- package/dist/mint-components/{p-484196f8.entry.js → p-b59cd472.entry.js} +2 -2
- package/dist/mint-components/{p-c39db551.system.entry.js → p-ccc207bc.system.entry.js} +1 -1
- package/dist/mint-components/{p-b889ec31.entry.js → p-cd31cfd4.entry.js} +11 -11
- package/dist/mint-components/p-d4546357.entry.js +13 -0
- package/dist/mint-components/p-ed11966d.system.js +1 -1
- package/dist/types/components/sqm-hero-image/sqm-hero-image-view.d.ts +1 -0
- package/dist/types/components/sqm-hero-image/sqm-hero-image.d.ts +19 -0
- package/dist/types/components/sqm-referral-code/ReferralCode.stories.d.ts +1 -0
- package/dist/types/components/sqm-referral-code/sqm-referral-code.d.ts +41 -0
- package/dist/types/components/sqm-referral-codes/ReferralCodes.stories.d.ts +1 -0
- package/dist/types/components/sqm-referral-codes/sqm-referral-codes-view.d.ts +1 -0
- package/dist/types/components/sqm-referral-codes/sqm-referral-codes.d.ts +6 -0
- package/dist/types/components/sqm-share-code/sqm-share-code.d.ts +1 -1
- package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +2 -1
- package/dist/types/components.d.ts +138 -4
- package/dist/types/global/android.d.ts +7 -0
- package/dist/types/global/demo.d.ts +2 -0
- package/dist/types/stories/features.d.ts +4 -0
- package/dist/types/stories/templates.d.ts +4 -0
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/copy-text-view-ca98ab38.js +0 -1
- package/dist/mint-components/p-09a77c82.system.entry.js +0 -1
- package/dist/mint-components/p-2195c312.entry.js +0 -13
- package/dist/mint-components/p-55c16fb9.system.js +0 -1
- package/dist/mint-components/p-642909e6.system.entry.js +0 -1
- package/dist/mint-components/p-9fe143f5.js +0 -1
|
@@ -11,7 +11,7 @@ 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-
|
|
14
|
+
const copyTextView = require('./copy-text-view-b2f47da0.js');
|
|
15
15
|
|
|
16
16
|
const style = {
|
|
17
17
|
Container: {
|
|
@@ -220,8 +220,18 @@ const ReferralCode = class {
|
|
|
220
220
|
* @uiType string
|
|
221
221
|
* @uiEnum ["icon", "button-outside", "button-below"]
|
|
222
222
|
* @uiEnumNames ["Icon", "Button outside", "Button below"]
|
|
223
|
+
* @uiGroup Style
|
|
223
224
|
*/
|
|
224
225
|
this.buttonStyle = "icon";
|
|
226
|
+
/**
|
|
227
|
+
* The type of the button (primary or secondary) that will be used to copy the link.
|
|
228
|
+
* @uiName Button Type
|
|
229
|
+
* @uiType string
|
|
230
|
+
* @uiEnum ["primary", "secondary"]
|
|
231
|
+
* @uiEnumNames ["Primary", "Secondary"]
|
|
232
|
+
* @uiGroup Style
|
|
233
|
+
*/
|
|
234
|
+
this.buttonType = "primary";
|
|
225
235
|
stencilHooks_module.h$1(this);
|
|
226
236
|
}
|
|
227
237
|
disconnectedCallback() { }
|
|
@@ -245,6 +255,11 @@ function useDemoReferralCode(props) {
|
|
|
245
255
|
notificationText: props.notificationText,
|
|
246
256
|
showNotificationText: props.showNotificationText,
|
|
247
257
|
isCopied: props.showNotificationText,
|
|
258
|
+
borderColor: props.borderColor,
|
|
259
|
+
backgroundColor: props.backgroundColor,
|
|
260
|
+
textColor: props.textColor,
|
|
261
|
+
borderRadius: props.borderRadius,
|
|
262
|
+
buttonType: props.buttonType,
|
|
248
263
|
isUsed: false,
|
|
249
264
|
rewardStatus: "AVAILABLE",
|
|
250
265
|
open,
|
|
@@ -258,53 +273,53 @@ function useDemoReferralCode(props) {
|
|
|
258
273
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
259
274
|
}
|
|
260
275
|
|
|
261
|
-
const style$1 = {
|
|
262
|
-
Wrapper: {
|
|
263
|
-
width: "100%",
|
|
264
|
-
display: "flex",
|
|
265
|
-
alignItems: "flex-start",
|
|
266
|
-
justifyContent: "center",
|
|
267
|
-
flexDirection: "column",
|
|
268
|
-
gap: "var(--sl-spacing-large)",
|
|
269
|
-
},
|
|
270
|
-
HeaderContainer: {
|
|
271
|
-
display: "flex",
|
|
272
|
-
alignItems: "center",
|
|
273
|
-
justifyContent: "space-between",
|
|
274
|
-
width: "100%",
|
|
275
|
-
},
|
|
276
|
-
ShareCodeContainer: {
|
|
277
|
-
width: "100%",
|
|
278
|
-
display: "flex",
|
|
279
|
-
alignItems: "flex-start",
|
|
280
|
-
justifyContent: "center",
|
|
281
|
-
flexDirection: "column",
|
|
282
|
-
},
|
|
283
|
-
ShareButtonContainer: {
|
|
284
|
-
width: "100%",
|
|
285
|
-
display: "flex",
|
|
286
|
-
alignItems: "flex-start",
|
|
287
|
-
justifyContent: "center",
|
|
288
|
-
flexDirection: "column",
|
|
289
|
-
},
|
|
290
|
-
TitleText: {
|
|
291
|
-
color: "var(--sqm-text-subdued)",
|
|
292
|
-
fontSize: "var(--sl-font-size-large)",
|
|
293
|
-
margin: "0",
|
|
294
|
-
},
|
|
295
|
-
};
|
|
296
|
-
const vanillaStyle = `
|
|
297
|
-
:host {
|
|
298
|
-
display: block;
|
|
299
|
-
}
|
|
300
|
-
:host([hidden]): {
|
|
301
|
-
display: none;
|
|
302
|
-
}
|
|
303
|
-
`;
|
|
304
|
-
const sheet$1 = JSS.createStyleSheet(style$1);
|
|
305
|
-
const styleString$1 = sheet$1.toString();
|
|
306
276
|
function ReferralCodesView(props) {
|
|
307
|
-
const { slots, titleText, states } = props;
|
|
277
|
+
const { slots, titleText, states, textColor = "var(--sqm-text-subdued)", } = props;
|
|
278
|
+
const style = {
|
|
279
|
+
Wrapper: {
|
|
280
|
+
width: "100%",
|
|
281
|
+
display: "flex",
|
|
282
|
+
alignItems: "flex-start",
|
|
283
|
+
justifyContent: "center",
|
|
284
|
+
flexDirection: "column",
|
|
285
|
+
gap: "var(--sl-spacing-large)",
|
|
286
|
+
color: textColor,
|
|
287
|
+
},
|
|
288
|
+
HeaderContainer: {
|
|
289
|
+
display: "flex",
|
|
290
|
+
alignItems: "center",
|
|
291
|
+
justifyContent: "space-between",
|
|
292
|
+
width: "100%",
|
|
293
|
+
},
|
|
294
|
+
ShareCodeContainer: {
|
|
295
|
+
width: "100%",
|
|
296
|
+
display: "flex",
|
|
297
|
+
alignItems: "flex-start",
|
|
298
|
+
justifyContent: "center",
|
|
299
|
+
flexDirection: "column",
|
|
300
|
+
},
|
|
301
|
+
ShareButtonContainer: {
|
|
302
|
+
width: "100%",
|
|
303
|
+
display: "flex",
|
|
304
|
+
alignItems: "flex-start",
|
|
305
|
+
justifyContent: "center",
|
|
306
|
+
flexDirection: "column",
|
|
307
|
+
},
|
|
308
|
+
TitleText: {
|
|
309
|
+
fontSize: "var(--sl-font-size-large)",
|
|
310
|
+
margin: "0",
|
|
311
|
+
},
|
|
312
|
+
};
|
|
313
|
+
const vanillaStyle = `
|
|
314
|
+
:host {
|
|
315
|
+
display: block;
|
|
316
|
+
}
|
|
317
|
+
:host([hidden]): {
|
|
318
|
+
display: none;
|
|
319
|
+
}
|
|
320
|
+
`;
|
|
321
|
+
const sheet = JSS.createStyleSheet(style);
|
|
322
|
+
const styleString = sheet.toString();
|
|
308
323
|
const getSlotContent = (states) => {
|
|
309
324
|
if (states.noCodes) {
|
|
310
325
|
return slots.empty;
|
|
@@ -312,16 +327,16 @@ function ReferralCodesView(props) {
|
|
|
312
327
|
if (states.loading) {
|
|
313
328
|
return slots.loading;
|
|
314
329
|
}
|
|
315
|
-
return (index.h("div", { class: sheet
|
|
316
|
-
index.h("div", { class: sheet
|
|
317
|
-
index.h("div", { class: sheet
|
|
330
|
+
return (index.h("div", { class: sheet.classes.Wrapper },
|
|
331
|
+
index.h("div", { class: sheet.classes.ShareCodeContainer }, slots.shareCodes),
|
|
332
|
+
index.h("div", { class: sheet.classes.ShareButtonContainer }, slots.shareButtons)));
|
|
318
333
|
};
|
|
319
|
-
return (index.h("div", { class: sheet
|
|
334
|
+
return (index.h("div", { class: sheet.classes.Wrapper, part: "sqm-base" },
|
|
320
335
|
index.h("style", { type: "text/css" },
|
|
321
336
|
vanillaStyle,
|
|
322
|
-
styleString
|
|
323
|
-
index.h("div", { class: sheet
|
|
324
|
-
index.h("h2", { class: sheet
|
|
337
|
+
styleString),
|
|
338
|
+
index.h("div", { class: sheet.classes.HeaderContainer },
|
|
339
|
+
index.h("h2", { class: sheet.classes.TitleText }, titleText),
|
|
325
340
|
!states.noCodes && !states.loading && slots.pagination),
|
|
326
341
|
getSlotContent(states)));
|
|
327
342
|
}
|
|
@@ -381,6 +396,7 @@ function LoadingRow() {
|
|
|
381
396
|
function useDemoReferralCodes(props) {
|
|
382
397
|
return cjs.cjs({
|
|
383
398
|
titleText: props.titleText,
|
|
399
|
+
textColor: props.textColor,
|
|
384
400
|
states: {
|
|
385
401
|
noCodes: false,
|
|
386
402
|
loading: false,
|
|
@@ -11,7 +11,7 @@ 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-
|
|
14
|
+
const copyTextView = require('./copy-text-view-b2f47da0.js');
|
|
15
15
|
const GenericTableView = require('./GenericTableView-f0e9c531.js');
|
|
16
16
|
require('./useChildElements-1b35d945.js');
|
|
17
17
|
const luxon = require('./luxon-2926d85f.js');
|
|
@@ -35,7 +35,7 @@ const sqmPortalResetPasswordView = require('./sqm-portal-reset-password-view-52f
|
|
|
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-
|
|
38
|
+
const ShadowViewAddon = require('./ShadowViewAddon-3e3e03ab.js');
|
|
39
39
|
const sqmPortalContainerView = require('./sqm-portal-container-view-4f15143a.js');
|
|
40
40
|
const sqmInvoiceTableView = require('./sqm-invoice-table-view-f369b0a6.js');
|
|
41
41
|
|
|
@@ -14144,6 +14144,9 @@ const ReferralCode = () => {
|
|
|
14144
14144
|
const ShowNotificationText = () => {
|
|
14145
14145
|
return (index.h("sqm-referral-code", { showNotificationText: true, notificationText: "You've copied this code before" }));
|
|
14146
14146
|
};
|
|
14147
|
+
const ShowNotificationTextRed = () => {
|
|
14148
|
+
return (index.h("sqm-referral-code", { textColor: "red", showNotificationText: true, notificationText: "You've copied this code before" }));
|
|
14149
|
+
};
|
|
14147
14150
|
const ShowNotificationTextWithButton = () => {
|
|
14148
14151
|
return (index.h("sqm-referral-code", { showNotificationText: true, notificationText: "You've copied this code before", buttonStyle: "button-outside" }));
|
|
14149
14152
|
};
|
|
@@ -14195,6 +14198,7 @@ const ReferralCode$1 = /*#__PURE__*/Object.freeze({
|
|
|
14195
14198
|
'default': ReferralCode_stories,
|
|
14196
14199
|
ReferralCode: ReferralCode,
|
|
14197
14200
|
ShowNotificationText: ShowNotificationText,
|
|
14201
|
+
ShowNotificationTextRed: ShowNotificationTextRed,
|
|
14198
14202
|
ShowNotificationTextWithButton: ShowNotificationTextWithButton,
|
|
14199
14203
|
ShowNotificationTextWithButtonBelow: ShowNotificationTextWithButtonBelow,
|
|
14200
14204
|
CustomTooltipText: CustomTooltipText$1,
|
|
@@ -15600,6 +15604,12 @@ const WithPreviouslyCopiedCode = () => {
|
|
|
15600
15604
|
shareCodeWithPreviouslyCopied("shareCodes"),
|
|
15601
15605
|
shareButtons("shareButtons")));
|
|
15602
15606
|
};
|
|
15607
|
+
const WithPreviouslyCopiedCodeAndCustomColor = () => {
|
|
15608
|
+
return (index.h("sqm-referral-codes", { textColor: "red" },
|
|
15609
|
+
pagination("pagination"),
|
|
15610
|
+
shareCodeWithPreviouslyCopied("shareCodes"),
|
|
15611
|
+
shareButtons("shareButtons")));
|
|
15612
|
+
};
|
|
15603
15613
|
const Empty$3 = () => {
|
|
15604
15614
|
return (index.h("sqm-referral-codes", { demoData: { states: { ...demoData.states, noCodes: true } } },
|
|
15605
15615
|
pagination("pagination"),
|
|
@@ -15626,6 +15636,7 @@ const ReferralCodes$1 = /*#__PURE__*/Object.freeze({
|
|
|
15626
15636
|
'default': ReferralCodes_stories,
|
|
15627
15637
|
ReferralCodes: ReferralCodes,
|
|
15628
15638
|
WithPreviouslyCopiedCode: WithPreviouslyCopiedCode,
|
|
15639
|
+
WithPreviouslyCopiedCodeAndCustomColor: WithPreviouslyCopiedCodeAndCustomColor,
|
|
15629
15640
|
Empty: Empty$3,
|
|
15630
15641
|
EmptyWithCustomTextAndImage: EmptyWithCustomTextAndImage,
|
|
15631
15642
|
Loading: Loading$b
|
|
@@ -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; backgroundColor?: string;
|
|
479
|
+
"resolved": "{ loading?: boolean; textColor?: string; 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; borderRadius?: string; buttonType?: \"primary\" | \"secondary\"; borderColor?: string; onClick?: () => void; }",
|
|
480
480
|
"references": {
|
|
481
481
|
"DemoData": {
|
|
482
482
|
"location": "import",
|
|
@@ -119,7 +119,7 @@ export function HeroImageView(props, children) {
|
|
|
119
119
|
h("div", { class: sheet.classes.Overlay, part: "sqm-overlay" },
|
|
120
120
|
props.header && (h("div", { class: sheet.classes.Header }, props.header)),
|
|
121
121
|
props.description && (h("div", { class: sheet.classes.Description }, props.description)),
|
|
122
|
-
props.buttonText && (h("sl-button", { class: sheet.classes.Button, type: "primary", exportparts:
|
|
122
|
+
props.buttonText && (h("sl-button", { class: sheet.classes.Button, type: "primary", exportparts: `base: ${props.buttonType === "primary" ? "primary" : "secondary"}button-base`, onClick: () => props.buttonNewTab
|
|
123
123
|
? window.open(props.buttonLink)
|
|
124
124
|
: window.open(props.buttonLink, "_parent") }, props.buttonText)),
|
|
125
125
|
children && children)));
|
|
@@ -13,6 +13,7 @@ export class HeroImage {
|
|
|
13
13
|
constructor() {
|
|
14
14
|
/**
|
|
15
15
|
* @uiName Overlay opacity
|
|
16
|
+
* @uiGroup Style
|
|
16
17
|
*/
|
|
17
18
|
this.overlayOpacity = "0.75";
|
|
18
19
|
/**
|
|
@@ -20,11 +21,13 @@ export class HeroImage {
|
|
|
20
21
|
* @uiType string
|
|
21
22
|
* @uiEnum ["overlay", "columns"]
|
|
22
23
|
* @uiEnumNames ["Overlay", "Two-column"]
|
|
24
|
+
* @uiGroup Style
|
|
23
25
|
*/
|
|
24
26
|
this.layout = "overlay";
|
|
25
27
|
/**
|
|
26
28
|
* @uiName Image percentage
|
|
27
29
|
* @uiType number
|
|
30
|
+
* @uiGroup Style
|
|
28
31
|
*/
|
|
29
32
|
this.imagePercentage = 50;
|
|
30
33
|
/**
|
|
@@ -32,6 +35,7 @@ export class HeroImage {
|
|
|
32
35
|
* @uiType string
|
|
33
36
|
* @uiEnum ["left", "center", "right"]
|
|
34
37
|
* @uiEnumNames ["Left", "Center", "Right"]
|
|
38
|
+
* @uiGroup Style
|
|
35
39
|
*/
|
|
36
40
|
this.imagePos = "center";
|
|
37
41
|
/**
|
|
@@ -39,6 +43,7 @@ export class HeroImage {
|
|
|
39
43
|
* @uiType string
|
|
40
44
|
* @uiEnum ["top", "bottom"]
|
|
41
45
|
* @uiEnumNames ["Top", "Bottom"]
|
|
46
|
+
* @uiGroup Style
|
|
42
47
|
*/
|
|
43
48
|
this.imageMobilePos = "top";
|
|
44
49
|
/**
|
|
@@ -51,6 +56,7 @@ export class HeroImage {
|
|
|
51
56
|
* @uiType string
|
|
52
57
|
* @uiEnum ["none", "xxx-small", "xx-small", "x-small", "small", "medium", "large", "x-large", "xx-large", "xxx-large", "xxxx-large"]
|
|
53
58
|
* @uiEnumNames ["None", "XXX-Small", "XX-Small", "X-Small", "Small", "Medium", "Large", "X-Large", "XX-Large", "XXX-Large", "XXXX-Large"]
|
|
59
|
+
* @uiGroup Style
|
|
54
60
|
*/
|
|
55
61
|
this.paddingText = "xxxx-large";
|
|
56
62
|
/**
|
|
@@ -58,8 +64,18 @@ export class HeroImage {
|
|
|
58
64
|
* @uiType string
|
|
59
65
|
* @uiEnum ["none", "xxx-small", "xx-small", "x-small", "small", "medium", "large", "x-large", "xx-large", "xxx-large", "xxxx-large"]
|
|
60
66
|
* @uiEnumNames ["None", "XXX-Small", "XX-Small", "X-Small", "Small", "Medium", "Large", "X-Large", "XX-Large", "XXX-Large", "XXXX-Large"]
|
|
67
|
+
* @uiGroup Style
|
|
61
68
|
*/
|
|
62
69
|
this.paddingImage = "none";
|
|
70
|
+
/**
|
|
71
|
+
* The type of the button (primary or secondary) that will be used to copy the link.
|
|
72
|
+
* @uiName Button Type
|
|
73
|
+
* @uiType string
|
|
74
|
+
* @uiEnum ["primary", "secondary"]
|
|
75
|
+
* @uiEnumNames ["Primary", "Secondary"]
|
|
76
|
+
* @uiGroup Style
|
|
77
|
+
*/
|
|
78
|
+
this.buttonType = "primary";
|
|
63
79
|
withHooks(this);
|
|
64
80
|
}
|
|
65
81
|
disconnectedCallback() { }
|
|
@@ -116,6 +132,9 @@ export class HeroImage {
|
|
|
116
132
|
}, {
|
|
117
133
|
"text": "color",
|
|
118
134
|
"name": "format"
|
|
135
|
+
}, {
|
|
136
|
+
"text": "Style",
|
|
137
|
+
"name": "uiGroup"
|
|
119
138
|
}],
|
|
120
139
|
"text": ""
|
|
121
140
|
},
|
|
@@ -136,6 +155,9 @@ export class HeroImage {
|
|
|
136
155
|
"tags": [{
|
|
137
156
|
"text": "Overlay opacity",
|
|
138
157
|
"name": "uiName"
|
|
158
|
+
}, {
|
|
159
|
+
"text": "Style",
|
|
160
|
+
"name": "uiGroup"
|
|
139
161
|
}],
|
|
140
162
|
"text": ""
|
|
141
163
|
},
|
|
@@ -163,6 +185,9 @@ export class HeroImage {
|
|
|
163
185
|
}, {
|
|
164
186
|
"text": "color",
|
|
165
187
|
"name": "format"
|
|
188
|
+
}, {
|
|
189
|
+
"text": "Style",
|
|
190
|
+
"name": "uiGroup"
|
|
166
191
|
}],
|
|
167
192
|
"text": ""
|
|
168
193
|
},
|
|
@@ -189,6 +214,9 @@ export class HeroImage {
|
|
|
189
214
|
}, {
|
|
190
215
|
"text": "color",
|
|
191
216
|
"name": "format"
|
|
217
|
+
}, {
|
|
218
|
+
"text": "Style",
|
|
219
|
+
"name": "uiGroup"
|
|
192
220
|
}],
|
|
193
221
|
"text": ""
|
|
194
222
|
},
|
|
@@ -218,6 +246,9 @@ export class HeroImage {
|
|
|
218
246
|
}, {
|
|
219
247
|
"text": "[\"Overlay\", \"Two-column\"]",
|
|
220
248
|
"name": "uiEnumNames"
|
|
249
|
+
}, {
|
|
250
|
+
"text": "Style",
|
|
251
|
+
"name": "uiGroup"
|
|
221
252
|
}],
|
|
222
253
|
"text": ""
|
|
223
254
|
},
|
|
@@ -242,6 +273,9 @@ export class HeroImage {
|
|
|
242
273
|
}, {
|
|
243
274
|
"text": "number",
|
|
244
275
|
"name": "uiType"
|
|
276
|
+
}, {
|
|
277
|
+
"text": "Style",
|
|
278
|
+
"name": "uiGroup"
|
|
245
279
|
}],
|
|
246
280
|
"text": ""
|
|
247
281
|
},
|
|
@@ -272,6 +306,9 @@ export class HeroImage {
|
|
|
272
306
|
}, {
|
|
273
307
|
"text": "[\"Left\", \"Center\", \"Right\"]",
|
|
274
308
|
"name": "uiEnumNames"
|
|
309
|
+
}, {
|
|
310
|
+
"text": "Style",
|
|
311
|
+
"name": "uiGroup"
|
|
275
312
|
}],
|
|
276
313
|
"text": ""
|
|
277
314
|
},
|
|
@@ -302,6 +339,9 @@ export class HeroImage {
|
|
|
302
339
|
}, {
|
|
303
340
|
"text": "[\"Top\", \"Bottom\"]",
|
|
304
341
|
"name": "uiEnumNames"
|
|
342
|
+
}, {
|
|
343
|
+
"text": "Style",
|
|
344
|
+
"name": "uiGroup"
|
|
305
345
|
}],
|
|
306
346
|
"text": ""
|
|
307
347
|
},
|
|
@@ -444,6 +484,9 @@ export class HeroImage {
|
|
|
444
484
|
}, {
|
|
445
485
|
"text": "[\"None\", \"XXX-Small\", \"XX-Small\", \"X-Small\", \"Small\", \"Medium\", \"Large\", \"X-Large\", \"XX-Large\", \"XXX-Large\", \"XXXX-Large\"]",
|
|
446
486
|
"name": "uiEnumNames"
|
|
487
|
+
}, {
|
|
488
|
+
"text": "Style",
|
|
489
|
+
"name": "uiGroup"
|
|
447
490
|
}],
|
|
448
491
|
"text": ""
|
|
449
492
|
},
|
|
@@ -479,12 +522,48 @@ export class HeroImage {
|
|
|
479
522
|
}, {
|
|
480
523
|
"text": "[\"None\", \"XXX-Small\", \"XX-Small\", \"X-Small\", \"Small\", \"Medium\", \"Large\", \"X-Large\", \"XX-Large\", \"XXX-Large\", \"XXXX-Large\"]",
|
|
481
524
|
"name": "uiEnumNames"
|
|
525
|
+
}, {
|
|
526
|
+
"text": "Style",
|
|
527
|
+
"name": "uiGroup"
|
|
482
528
|
}],
|
|
483
529
|
"text": ""
|
|
484
530
|
},
|
|
485
531
|
"attribute": "padding-image",
|
|
486
532
|
"reflect": false,
|
|
487
533
|
"defaultValue": "\"none\""
|
|
534
|
+
},
|
|
535
|
+
"buttonType": {
|
|
536
|
+
"type": "string",
|
|
537
|
+
"mutable": false,
|
|
538
|
+
"complexType": {
|
|
539
|
+
"original": "\"primary\" | \"secondary\"",
|
|
540
|
+
"resolved": "\"primary\" | \"secondary\"",
|
|
541
|
+
"references": {}
|
|
542
|
+
},
|
|
543
|
+
"required": false,
|
|
544
|
+
"optional": true,
|
|
545
|
+
"docs": {
|
|
546
|
+
"tags": [{
|
|
547
|
+
"text": "Button Type",
|
|
548
|
+
"name": "uiName"
|
|
549
|
+
}, {
|
|
550
|
+
"text": "string",
|
|
551
|
+
"name": "uiType"
|
|
552
|
+
}, {
|
|
553
|
+
"text": "[\"primary\", \"secondary\"]",
|
|
554
|
+
"name": "uiEnum"
|
|
555
|
+
}, {
|
|
556
|
+
"text": "[\"Primary\", \"Secondary\"]",
|
|
557
|
+
"name": "uiEnumNames"
|
|
558
|
+
}, {
|
|
559
|
+
"text": "Style",
|
|
560
|
+
"name": "uiGroup"
|
|
561
|
+
}],
|
|
562
|
+
"text": "The type of the button (primary or secondary) that will be used to copy the link."
|
|
563
|
+
},
|
|
564
|
+
"attribute": "button-type",
|
|
565
|
+
"reflect": false,
|
|
566
|
+
"defaultValue": "\"primary\""
|
|
488
567
|
}
|
|
489
568
|
}; }
|
|
490
569
|
}
|
|
@@ -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; backgroundColor?: string;
|
|
125
|
+
"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; }",
|
|
126
126
|
"references": {
|
|
127
127
|
"DemoData": {
|
|
128
128
|
"location": "import",
|
|
@@ -13,6 +13,9 @@ export const ReferralCode = () => {
|
|
|
13
13
|
export const ShowNotificationText = () => {
|
|
14
14
|
return (h("sqm-referral-code", { showNotificationText: true, notificationText: "You've copied this code before" }));
|
|
15
15
|
};
|
|
16
|
+
export const ShowNotificationTextRed = () => {
|
|
17
|
+
return (h("sqm-referral-code", { textColor: "red", showNotificationText: true, notificationText: "You've copied this code before" }));
|
|
18
|
+
};
|
|
16
19
|
export const ShowNotificationTextWithButton = () => {
|
|
17
20
|
return (h("sqm-referral-code", { showNotificationText: true, notificationText: "You've copied this code before", buttonStyle: "button-outside" }));
|
|
18
21
|
};
|
|
@@ -57,8 +57,18 @@ export class ReferralCode {
|
|
|
57
57
|
* @uiType string
|
|
58
58
|
* @uiEnum ["icon", "button-outside", "button-below"]
|
|
59
59
|
* @uiEnumNames ["Icon", "Button outside", "Button below"]
|
|
60
|
+
* @uiGroup Style
|
|
60
61
|
*/
|
|
61
62
|
this.buttonStyle = "icon";
|
|
63
|
+
/**
|
|
64
|
+
* The type of the button (primary or secondary) that will be used to copy the link.
|
|
65
|
+
* @uiName Button Type
|
|
66
|
+
* @uiType string
|
|
67
|
+
* @uiEnum ["primary", "secondary"]
|
|
68
|
+
* @uiEnumNames ["Primary", "Secondary"]
|
|
69
|
+
* @uiGroup Style
|
|
70
|
+
*/
|
|
71
|
+
this.buttonType = "primary";
|
|
62
72
|
withHooks(this);
|
|
63
73
|
}
|
|
64
74
|
disconnectedCallback() { }
|
|
@@ -253,6 +263,9 @@ export class ReferralCode {
|
|
|
253
263
|
}, {
|
|
254
264
|
"text": "[\"Icon\", \"Button outside\", \"Button below\"]",
|
|
255
265
|
"name": "uiEnumNames"
|
|
266
|
+
}, {
|
|
267
|
+
"text": "Style",
|
|
268
|
+
"name": "uiGroup"
|
|
256
269
|
}],
|
|
257
270
|
"text": "Set the copy button style and placement"
|
|
258
271
|
},
|
|
@@ -260,12 +273,158 @@ export class ReferralCode {
|
|
|
260
273
|
"reflect": false,
|
|
261
274
|
"defaultValue": "\"icon\""
|
|
262
275
|
},
|
|
276
|
+
"backgroundColor": {
|
|
277
|
+
"type": "string",
|
|
278
|
+
"mutable": false,
|
|
279
|
+
"complexType": {
|
|
280
|
+
"original": "string",
|
|
281
|
+
"resolved": "string",
|
|
282
|
+
"references": {}
|
|
283
|
+
},
|
|
284
|
+
"required": false,
|
|
285
|
+
"optional": true,
|
|
286
|
+
"docs": {
|
|
287
|
+
"tags": [{
|
|
288
|
+
"text": "Background color",
|
|
289
|
+
"name": "uiName"
|
|
290
|
+
}, {
|
|
291
|
+
"text": "color",
|
|
292
|
+
"name": "uiWidget"
|
|
293
|
+
}, {
|
|
294
|
+
"text": "color",
|
|
295
|
+
"name": "format"
|
|
296
|
+
}, {
|
|
297
|
+
"text": "Style",
|
|
298
|
+
"name": "uiGroup"
|
|
299
|
+
}],
|
|
300
|
+
"text": "Background color of share link container"
|
|
301
|
+
},
|
|
302
|
+
"attribute": "background-color",
|
|
303
|
+
"reflect": false
|
|
304
|
+
},
|
|
305
|
+
"borderColor": {
|
|
306
|
+
"type": "string",
|
|
307
|
+
"mutable": false,
|
|
308
|
+
"complexType": {
|
|
309
|
+
"original": "string",
|
|
310
|
+
"resolved": "string",
|
|
311
|
+
"references": {}
|
|
312
|
+
},
|
|
313
|
+
"required": false,
|
|
314
|
+
"optional": true,
|
|
315
|
+
"docs": {
|
|
316
|
+
"tags": [{
|
|
317
|
+
"text": "Border color",
|
|
318
|
+
"name": "uiName"
|
|
319
|
+
}, {
|
|
320
|
+
"text": "color",
|
|
321
|
+
"name": "uiWidget"
|
|
322
|
+
}, {
|
|
323
|
+
"text": "color",
|
|
324
|
+
"name": "format"
|
|
325
|
+
}, {
|
|
326
|
+
"text": "Style",
|
|
327
|
+
"name": "uiGroup"
|
|
328
|
+
}],
|
|
329
|
+
"text": "Border color of share link container (default is set to 1px solid transparent)"
|
|
330
|
+
},
|
|
331
|
+
"attribute": "border-color",
|
|
332
|
+
"reflect": false
|
|
333
|
+
},
|
|
334
|
+
"textColor": {
|
|
335
|
+
"type": "string",
|
|
336
|
+
"mutable": false,
|
|
337
|
+
"complexType": {
|
|
338
|
+
"original": "string",
|
|
339
|
+
"resolved": "string",
|
|
340
|
+
"references": {}
|
|
341
|
+
},
|
|
342
|
+
"required": false,
|
|
343
|
+
"optional": true,
|
|
344
|
+
"docs": {
|
|
345
|
+
"tags": [{
|
|
346
|
+
"text": "Text color",
|
|
347
|
+
"name": "uiName"
|
|
348
|
+
}, {
|
|
349
|
+
"text": "color",
|
|
350
|
+
"name": "uiWidget"
|
|
351
|
+
}, {
|
|
352
|
+
"text": "color",
|
|
353
|
+
"name": "format"
|
|
354
|
+
}, {
|
|
355
|
+
"text": "Style",
|
|
356
|
+
"name": "uiGroup"
|
|
357
|
+
}],
|
|
358
|
+
"text": "Color of the text and copy icon"
|
|
359
|
+
},
|
|
360
|
+
"attribute": "text-color",
|
|
361
|
+
"reflect": false
|
|
362
|
+
},
|
|
363
|
+
"borderRadius": {
|
|
364
|
+
"type": "string",
|
|
365
|
+
"mutable": false,
|
|
366
|
+
"complexType": {
|
|
367
|
+
"original": "string",
|
|
368
|
+
"resolved": "string",
|
|
369
|
+
"references": {}
|
|
370
|
+
},
|
|
371
|
+
"required": false,
|
|
372
|
+
"optional": true,
|
|
373
|
+
"docs": {
|
|
374
|
+
"tags": [{
|
|
375
|
+
"text": "Border Radius",
|
|
376
|
+
"name": "uiName"
|
|
377
|
+
}, {
|
|
378
|
+
"text": "number",
|
|
379
|
+
"name": "uiType"
|
|
380
|
+
}, {
|
|
381
|
+
"text": "Style",
|
|
382
|
+
"name": "uiGroup"
|
|
383
|
+
}],
|
|
384
|
+
"text": "The border radius on the share link container (in pixels)"
|
|
385
|
+
},
|
|
386
|
+
"attribute": "border-radius",
|
|
387
|
+
"reflect": false
|
|
388
|
+
},
|
|
389
|
+
"buttonType": {
|
|
390
|
+
"type": "string",
|
|
391
|
+
"mutable": false,
|
|
392
|
+
"complexType": {
|
|
393
|
+
"original": "\"primary\" | \"secondary\"",
|
|
394
|
+
"resolved": "\"primary\" | \"secondary\"",
|
|
395
|
+
"references": {}
|
|
396
|
+
},
|
|
397
|
+
"required": false,
|
|
398
|
+
"optional": true,
|
|
399
|
+
"docs": {
|
|
400
|
+
"tags": [{
|
|
401
|
+
"text": "Button Type",
|
|
402
|
+
"name": "uiName"
|
|
403
|
+
}, {
|
|
404
|
+
"text": "string",
|
|
405
|
+
"name": "uiType"
|
|
406
|
+
}, {
|
|
407
|
+
"text": "[\"primary\", \"secondary\"]",
|
|
408
|
+
"name": "uiEnum"
|
|
409
|
+
}, {
|
|
410
|
+
"text": "[\"Primary\", \"Secondary\"]",
|
|
411
|
+
"name": "uiEnumNames"
|
|
412
|
+
}, {
|
|
413
|
+
"text": "Style",
|
|
414
|
+
"name": "uiGroup"
|
|
415
|
+
}],
|
|
416
|
+
"text": "The type of the button (primary or secondary) that will be used to copy the link."
|
|
417
|
+
},
|
|
418
|
+
"attribute": "button-type",
|
|
419
|
+
"reflect": false,
|
|
420
|
+
"defaultValue": "\"primary\""
|
|
421
|
+
},
|
|
263
422
|
"demoData": {
|
|
264
423
|
"type": "unknown",
|
|
265
424
|
"mutable": false,
|
|
266
425
|
"complexType": {
|
|
267
426
|
"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; backgroundColor?: string;
|
|
427
|
+
"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; }",
|
|
269
428
|
"references": {
|
|
270
429
|
"DemoData": {
|
|
271
430
|
"location": "import",
|
|
@@ -304,6 +463,11 @@ function useDemoReferralCode(props) {
|
|
|
304
463
|
notificationText: props.notificationText,
|
|
305
464
|
showNotificationText: props.showNotificationText,
|
|
306
465
|
isCopied: props.showNotificationText,
|
|
466
|
+
borderColor: props.borderColor,
|
|
467
|
+
backgroundColor: props.backgroundColor,
|
|
468
|
+
textColor: props.textColor,
|
|
469
|
+
borderRadius: props.borderRadius,
|
|
470
|
+
buttonType: props.buttonType,
|
|
307
471
|
isUsed: false,
|
|
308
472
|
rewardStatus: "AVAILABLE",
|
|
309
473
|
open,
|