@saasquatch/mint-components 1.15.0-6 → 1.15.0-8
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-e666dc8b.js → ShadowViewAddon-afc40c22.js} +1 -1
- package/dist/cjs/{copy-text-view-7441206d.js → copy-text-view-9d4259f4.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 +18 -3
- package/dist/cjs/sqm-pagination_3.cjs.entry.js +1 -1
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +2 -2
- package/dist/collection/components/sqm-share-code/sqm-share-code.js +167 -0
- package/dist/collection/components/sqm-share-link/sqm-share-link.js +114 -1
- package/dist/collection/components/views/copy-text-view.js +1 -1
- package/dist/esm/{ShadowViewAddon-7c10e0ee.js → ShadowViewAddon-bdedf635.js} +1 -1
- package/dist/esm/{copy-text-view-717050d5.js → copy-text-view-ca98ab38.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 +18 -3
- package/dist/esm/sqm-pagination_3.entry.js +1 -1
- package/dist/esm/sqm-stencilbook.entry.js +2 -2
- package/dist/esm-es5/{ShadowViewAddon-7c10e0ee.js → ShadowViewAddon-bdedf635.js} +1 -1
- package/dist/esm-es5/copy-text-view-ca98ab38.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-c6841ab8.system.entry.js → p-09a77c82.system.entry.js} +1 -1
- package/dist/mint-components/{p-51495bc3.entry.js → p-2195c312.entry.js} +1 -1
- package/dist/mint-components/{p-4874193a.system.js → p-338bcfd6.system.js} +1 -1
- package/dist/mint-components/{p-8c12078e.js → p-469ad274.js} +1 -1
- package/dist/mint-components/{p-7f1e10d3.entry.js → p-484196f8.entry.js} +1 -1
- package/dist/mint-components/p-55c16fb9.system.js +1 -0
- package/dist/mint-components/{p-5ca8959a.system.entry.js → p-642909e6.system.entry.js} +1 -1
- package/dist/mint-components/p-9fe143f5.js +1 -0
- package/dist/mint-components/{p-8b36fe4f.entry.js → p-b889ec31.entry.js} +2 -2
- package/dist/mint-components/{p-bdbbc673.system.entry.js → p-c39db551.system.entry.js} +1 -1
- package/dist/mint-components/p-ed11966d.system.js +1 -1
- package/dist/types/components/sqm-share-code/sqm-share-code.d.ts +42 -0
- package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +12 -0
- package/dist/types/components.d.ts +146 -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-717050d5.js +0 -1
- package/dist/mint-components/p-c3680c02.js +0 -1
- package/dist/mint-components/p-d8cf46ba.system.js +0 -1
- package/dist/types/global/android.d.ts +0 -7
- package/dist/types/global/demo.d.ts +0 -2
- package/dist/types/stories/features.d.ts +0 -4
- package/dist/types/stories/templates.d.ts +0 -4
|
@@ -32,6 +32,7 @@ export class ShareCode {
|
|
|
32
32
|
* @uiType string
|
|
33
33
|
* @uiEnum ["left", "center", "right"]
|
|
34
34
|
* @uiEnumNames ["Left", "Center", "Right"]
|
|
35
|
+
* @uiGroup Style
|
|
35
36
|
*/
|
|
36
37
|
this.textAlign = "left";
|
|
37
38
|
/**
|
|
@@ -45,8 +46,18 @@ export class ShareCode {
|
|
|
45
46
|
* @uiType string
|
|
46
47
|
* @uiEnum ["icon", "button-outside", "button-below"]
|
|
47
48
|
* @uiEnumNames ["Icon", "Button outside", "Button below"]
|
|
49
|
+
* @uiGroup Style
|
|
48
50
|
*/
|
|
49
51
|
this.buttonStyle = "icon";
|
|
52
|
+
/**
|
|
53
|
+
* The type of the button (primary or secondary) that will be used to copy the link.
|
|
54
|
+
* @uiName Button Type
|
|
55
|
+
* @uiType string
|
|
56
|
+
* @uiEnum ["primary", "secondary"]
|
|
57
|
+
* @uiEnumNames ["Primary", "Secondary"]
|
|
58
|
+
* @uiGroup Style
|
|
59
|
+
*/
|
|
60
|
+
this.buttonType = "primary";
|
|
50
61
|
withHooks(this);
|
|
51
62
|
}
|
|
52
63
|
disconnectedCallback() { }
|
|
@@ -148,6 +159,9 @@ export class ShareCode {
|
|
|
148
159
|
}, {
|
|
149
160
|
"text": "[\"Left\", \"Center\", \"Right\"]",
|
|
150
161
|
"name": "uiEnumNames"
|
|
162
|
+
}, {
|
|
163
|
+
"text": "Style",
|
|
164
|
+
"name": "uiGroup"
|
|
151
165
|
}],
|
|
152
166
|
"text": "Change the text alignment"
|
|
153
167
|
},
|
|
@@ -155,6 +169,90 @@ export class ShareCode {
|
|
|
155
169
|
"reflect": false,
|
|
156
170
|
"defaultValue": "\"left\""
|
|
157
171
|
},
|
|
172
|
+
"backgroundColor": {
|
|
173
|
+
"type": "string",
|
|
174
|
+
"mutable": false,
|
|
175
|
+
"complexType": {
|
|
176
|
+
"original": "string",
|
|
177
|
+
"resolved": "string",
|
|
178
|
+
"references": {}
|
|
179
|
+
},
|
|
180
|
+
"required": false,
|
|
181
|
+
"optional": true,
|
|
182
|
+
"docs": {
|
|
183
|
+
"tags": [{
|
|
184
|
+
"text": "Background color",
|
|
185
|
+
"name": "uiName"
|
|
186
|
+
}, {
|
|
187
|
+
"text": "color",
|
|
188
|
+
"name": "uiWidget"
|
|
189
|
+
}, {
|
|
190
|
+
"text": "color",
|
|
191
|
+
"name": "format"
|
|
192
|
+
}, {
|
|
193
|
+
"text": "Style",
|
|
194
|
+
"name": "uiGroup"
|
|
195
|
+
}],
|
|
196
|
+
"text": "Background color of share link container"
|
|
197
|
+
},
|
|
198
|
+
"attribute": "background-color",
|
|
199
|
+
"reflect": false
|
|
200
|
+
},
|
|
201
|
+
"textColor": {
|
|
202
|
+
"type": "string",
|
|
203
|
+
"mutable": false,
|
|
204
|
+
"complexType": {
|
|
205
|
+
"original": "string",
|
|
206
|
+
"resolved": "string",
|
|
207
|
+
"references": {}
|
|
208
|
+
},
|
|
209
|
+
"required": false,
|
|
210
|
+
"optional": true,
|
|
211
|
+
"docs": {
|
|
212
|
+
"tags": [{
|
|
213
|
+
"text": "Text color",
|
|
214
|
+
"name": "uiName"
|
|
215
|
+
}, {
|
|
216
|
+
"text": "color",
|
|
217
|
+
"name": "uiWidget"
|
|
218
|
+
}, {
|
|
219
|
+
"text": "color",
|
|
220
|
+
"name": "format"
|
|
221
|
+
}, {
|
|
222
|
+
"text": "Style",
|
|
223
|
+
"name": "uiGroup"
|
|
224
|
+
}],
|
|
225
|
+
"text": "Color of the text and copy icon"
|
|
226
|
+
},
|
|
227
|
+
"attribute": "text-color",
|
|
228
|
+
"reflect": false
|
|
229
|
+
},
|
|
230
|
+
"borderRadius": {
|
|
231
|
+
"type": "string",
|
|
232
|
+
"mutable": false,
|
|
233
|
+
"complexType": {
|
|
234
|
+
"original": "string",
|
|
235
|
+
"resolved": "string",
|
|
236
|
+
"references": {}
|
|
237
|
+
},
|
|
238
|
+
"required": false,
|
|
239
|
+
"optional": true,
|
|
240
|
+
"docs": {
|
|
241
|
+
"tags": [{
|
|
242
|
+
"text": "Border Radius",
|
|
243
|
+
"name": "uiName"
|
|
244
|
+
}, {
|
|
245
|
+
"text": "number",
|
|
246
|
+
"name": "uiType"
|
|
247
|
+
}, {
|
|
248
|
+
"text": "Style",
|
|
249
|
+
"name": "uiGroup"
|
|
250
|
+
}],
|
|
251
|
+
"text": "The border radius on the share link container"
|
|
252
|
+
},
|
|
253
|
+
"attribute": "border-radius",
|
|
254
|
+
"reflect": false
|
|
255
|
+
},
|
|
158
256
|
"copyButtonLabel": {
|
|
159
257
|
"type": "string",
|
|
160
258
|
"mutable": false,
|
|
@@ -199,6 +297,9 @@ export class ShareCode {
|
|
|
199
297
|
}, {
|
|
200
298
|
"text": "[\"Icon\", \"Button outside\", \"Button below\"]",
|
|
201
299
|
"name": "uiEnumNames"
|
|
300
|
+
}, {
|
|
301
|
+
"text": "Style",
|
|
302
|
+
"name": "uiGroup"
|
|
202
303
|
}],
|
|
203
304
|
"text": "Set the copy button style and placement"
|
|
204
305
|
},
|
|
@@ -206,6 +307,68 @@ export class ShareCode {
|
|
|
206
307
|
"reflect": false,
|
|
207
308
|
"defaultValue": "\"icon\""
|
|
208
309
|
},
|
|
310
|
+
"buttonType": {
|
|
311
|
+
"type": "string",
|
|
312
|
+
"mutable": false,
|
|
313
|
+
"complexType": {
|
|
314
|
+
"original": "\"primary\" | \"secondary\"",
|
|
315
|
+
"resolved": "\"primary\" | \"secondary\"",
|
|
316
|
+
"references": {}
|
|
317
|
+
},
|
|
318
|
+
"required": false,
|
|
319
|
+
"optional": true,
|
|
320
|
+
"docs": {
|
|
321
|
+
"tags": [{
|
|
322
|
+
"text": "Button Type",
|
|
323
|
+
"name": "uiName"
|
|
324
|
+
}, {
|
|
325
|
+
"text": "string",
|
|
326
|
+
"name": "uiType"
|
|
327
|
+
}, {
|
|
328
|
+
"text": "[\"primary\", \"secondary\"]",
|
|
329
|
+
"name": "uiEnum"
|
|
330
|
+
}, {
|
|
331
|
+
"text": "[\"Primary\", \"Secondary\"]",
|
|
332
|
+
"name": "uiEnumNames"
|
|
333
|
+
}, {
|
|
334
|
+
"text": "Style",
|
|
335
|
+
"name": "uiGroup"
|
|
336
|
+
}],
|
|
337
|
+
"text": "The type of the button (primary or secondary) that will be used to copy the link."
|
|
338
|
+
},
|
|
339
|
+
"attribute": "button-type",
|
|
340
|
+
"reflect": false,
|
|
341
|
+
"defaultValue": "\"primary\""
|
|
342
|
+
},
|
|
343
|
+
"borderColor": {
|
|
344
|
+
"type": "string",
|
|
345
|
+
"mutable": false,
|
|
346
|
+
"complexType": {
|
|
347
|
+
"original": "string",
|
|
348
|
+
"resolved": "string",
|
|
349
|
+
"references": {}
|
|
350
|
+
},
|
|
351
|
+
"required": false,
|
|
352
|
+
"optional": true,
|
|
353
|
+
"docs": {
|
|
354
|
+
"tags": [{
|
|
355
|
+
"text": "Border color",
|
|
356
|
+
"name": "uiName"
|
|
357
|
+
}, {
|
|
358
|
+
"text": "color",
|
|
359
|
+
"name": "uiWidget"
|
|
360
|
+
}, {
|
|
361
|
+
"text": "color",
|
|
362
|
+
"name": "format"
|
|
363
|
+
}, {
|
|
364
|
+
"text": "Style",
|
|
365
|
+
"name": "uiGroup"
|
|
366
|
+
}],
|
|
367
|
+
"text": "Border color of share link container (default is set to 1px solid transparent)"
|
|
368
|
+
},
|
|
369
|
+
"attribute": "border-color",
|
|
370
|
+
"reflect": false
|
|
371
|
+
},
|
|
209
372
|
"demoData": {
|
|
210
373
|
"type": "unknown",
|
|
211
374
|
"mutable": false,
|
|
@@ -247,6 +410,10 @@ function useDemoShareCode(props) {
|
|
|
247
410
|
textAlign: props.textAlign,
|
|
248
411
|
copyButtonLabel: props.copyButtonLabel,
|
|
249
412
|
buttonStyle: props.buttonStyle,
|
|
413
|
+
backgroundColor: props.backgroundColor,
|
|
414
|
+
textColor: props.textColor,
|
|
415
|
+
borderRadius: props.borderRadius,
|
|
416
|
+
buttonType: props.buttonType,
|
|
250
417
|
rewardStatus: "AVAILABLE",
|
|
251
418
|
open,
|
|
252
419
|
onClick: () => {
|
|
@@ -185,6 +185,119 @@ export class ShareLink {
|
|
|
185
185
|
"reflect": false,
|
|
186
186
|
"defaultValue": "\"Copy Link\""
|
|
187
187
|
},
|
|
188
|
+
"backgroundColor": {
|
|
189
|
+
"type": "string",
|
|
190
|
+
"mutable": false,
|
|
191
|
+
"complexType": {
|
|
192
|
+
"original": "string",
|
|
193
|
+
"resolved": "string",
|
|
194
|
+
"references": {}
|
|
195
|
+
},
|
|
196
|
+
"required": false,
|
|
197
|
+
"optional": true,
|
|
198
|
+
"docs": {
|
|
199
|
+
"tags": [{
|
|
200
|
+
"text": "Background color",
|
|
201
|
+
"name": "uiName"
|
|
202
|
+
}, {
|
|
203
|
+
"text": "color",
|
|
204
|
+
"name": "uiWidget"
|
|
205
|
+
}, {
|
|
206
|
+
"text": "color",
|
|
207
|
+
"name": "format"
|
|
208
|
+
}, {
|
|
209
|
+
"text": "Style",
|
|
210
|
+
"name": "uiGroup"
|
|
211
|
+
}],
|
|
212
|
+
"text": "Background color of share link container"
|
|
213
|
+
},
|
|
214
|
+
"attribute": "background-color",
|
|
215
|
+
"reflect": false
|
|
216
|
+
},
|
|
217
|
+
"borderColor": {
|
|
218
|
+
"type": "string",
|
|
219
|
+
"mutable": false,
|
|
220
|
+
"complexType": {
|
|
221
|
+
"original": "string",
|
|
222
|
+
"resolved": "string",
|
|
223
|
+
"references": {}
|
|
224
|
+
},
|
|
225
|
+
"required": false,
|
|
226
|
+
"optional": true,
|
|
227
|
+
"docs": {
|
|
228
|
+
"tags": [{
|
|
229
|
+
"text": "Border color",
|
|
230
|
+
"name": "uiName"
|
|
231
|
+
}, {
|
|
232
|
+
"text": "color",
|
|
233
|
+
"name": "uiWidget"
|
|
234
|
+
}, {
|
|
235
|
+
"text": "color",
|
|
236
|
+
"name": "format"
|
|
237
|
+
}, {
|
|
238
|
+
"text": "Style",
|
|
239
|
+
"name": "uiGroup"
|
|
240
|
+
}],
|
|
241
|
+
"text": "Border color of share link container (default is set to 1px solid transparent)"
|
|
242
|
+
},
|
|
243
|
+
"attribute": "border-color",
|
|
244
|
+
"reflect": false
|
|
245
|
+
},
|
|
246
|
+
"textColor": {
|
|
247
|
+
"type": "string",
|
|
248
|
+
"mutable": false,
|
|
249
|
+
"complexType": {
|
|
250
|
+
"original": "string",
|
|
251
|
+
"resolved": "string",
|
|
252
|
+
"references": {}
|
|
253
|
+
},
|
|
254
|
+
"required": false,
|
|
255
|
+
"optional": true,
|
|
256
|
+
"docs": {
|
|
257
|
+
"tags": [{
|
|
258
|
+
"text": "Text color",
|
|
259
|
+
"name": "uiName"
|
|
260
|
+
}, {
|
|
261
|
+
"text": "color",
|
|
262
|
+
"name": "uiWidget"
|
|
263
|
+
}, {
|
|
264
|
+
"text": "color",
|
|
265
|
+
"name": "format"
|
|
266
|
+
}, {
|
|
267
|
+
"text": "Style",
|
|
268
|
+
"name": "uiGroup"
|
|
269
|
+
}],
|
|
270
|
+
"text": "Color of the text and copy icon"
|
|
271
|
+
},
|
|
272
|
+
"attribute": "text-color",
|
|
273
|
+
"reflect": false
|
|
274
|
+
},
|
|
275
|
+
"borderRadius": {
|
|
276
|
+
"type": "string",
|
|
277
|
+
"mutable": false,
|
|
278
|
+
"complexType": {
|
|
279
|
+
"original": "string",
|
|
280
|
+
"resolved": "string",
|
|
281
|
+
"references": {}
|
|
282
|
+
},
|
|
283
|
+
"required": false,
|
|
284
|
+
"optional": true,
|
|
285
|
+
"docs": {
|
|
286
|
+
"tags": [{
|
|
287
|
+
"text": "Border Radius",
|
|
288
|
+
"name": "uiName"
|
|
289
|
+
}, {
|
|
290
|
+
"text": "number",
|
|
291
|
+
"name": "uiType"
|
|
292
|
+
}, {
|
|
293
|
+
"text": "Style",
|
|
294
|
+
"name": "uiGroup"
|
|
295
|
+
}],
|
|
296
|
+
"text": "The border radius on the share link container"
|
|
297
|
+
},
|
|
298
|
+
"attribute": "border-radius",
|
|
299
|
+
"reflect": false
|
|
300
|
+
},
|
|
188
301
|
"buttonType": {
|
|
189
302
|
"type": "string",
|
|
190
303
|
"mutable": false,
|
|
@@ -296,7 +409,7 @@ function useDemoShareLink(props) {
|
|
|
296
409
|
borderRadius: props.borderRadius,
|
|
297
410
|
buttonType: props.buttonType,
|
|
298
411
|
copyButtonLabel: props.copyButtonLabel,
|
|
299
|
-
|
|
412
|
+
borderColor: props.borderColor,
|
|
300
413
|
rewardStatus: "AVAILABLE",
|
|
301
414
|
open,
|
|
302
415
|
onClick: () => {
|
|
@@ -36,7 +36,7 @@ export function CopyTextView(props) {
|
|
|
36
36
|
"&::part(base)": {
|
|
37
37
|
cursor: "pointer",
|
|
38
38
|
overflow: "visible",
|
|
39
|
-
borderRadius: props.borderRadius || "var(--sl-border-radius-medium)",
|
|
39
|
+
borderRadius: `${props.borderRadius}px` || "var(--sl-border-radius-medium)",
|
|
40
40
|
background: props.backgroundColor || "var(--sl-color-white)",
|
|
41
41
|
border: `1px solid ${props.borderColor || "transparent"}`,
|
|
42
42
|
},
|
|
@@ -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-
|
|
10
|
+
import { C as CopyTextView } from './copy-text-view-ca98ab38.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';
|
|
@@ -37,7 +37,7 @@ function CopyTextView(props) {
|
|
|
37
37
|
"&::part(base)": {
|
|
38
38
|
cursor: "pointer",
|
|
39
39
|
overflow: "visible",
|
|
40
|
-
borderRadius: props.borderRadius || "var(--sl-border-radius-medium)",
|
|
40
|
+
borderRadius: `${props.borderRadius}px` || "var(--sl-border-radius-medium)",
|
|
41
41
|
background: props.backgroundColor || "var(--sl-color-white)",
|
|
42
42
|
border: `1px solid ${props.borderColor || "transparent"}`,
|
|
43
43
|
},
|