@gem-sdk/components 2.0.0-dev.548 → 2.0.0-dev.550
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/article/setting/configs/ArticleReadMore/settings.js +65 -7
- package/dist/cjs/article/setting/configs/ArticleReadMore/uiV2.js +26 -7
- package/dist/esm/article/setting/configs/ArticleReadMore/settings.js +65 -7
- package/dist/esm/article/setting/configs/ArticleReadMore/uiV2.js +26 -7
- package/dist/types/index.d.ts +2 -0
- package/package.json +1 -1
|
@@ -65,7 +65,8 @@ const ArticleReadMoreSettings = [
|
|
|
65
65
|
id: 'iconSvg',
|
|
66
66
|
label: 'SVG Icon',
|
|
67
67
|
type: 'icon',
|
|
68
|
-
default: '<svg height="20" width="20" data-name="
|
|
68
|
+
default: '<svg height="20" width="20" data-name="arrow-right-bold" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" data-id="508817550824440168"><path fill="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M224.49,136.49l-72,72a12,12,0,0,1-17-17L187,140H40a12,12,0,0,1,0-24H187L135.51,64.48a12,12,0,0,1,17-17l72,72A12,12,0,0,1,224.49,136.49Z"/></svg>',
|
|
69
|
+
compoDefaultValue: `<svg height="20" width="20" data-name="arrow-right-bold" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" data-id="508817550824440168"><path fill="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M224.49,136.49l-72,72a12,12,0,0,1-17-17L187,140H40a12,12,0,0,1,0-24H187L135.51,64.48a12,12,0,0,1,17-17l72,72A12,12,0,0,1,224.49,136.49Z"/></svg>`
|
|
69
70
|
},
|
|
70
71
|
{
|
|
71
72
|
id: 'iconAlign',
|
|
@@ -258,22 +259,69 @@ const ArticleReadMoreSettings = [
|
|
|
258
259
|
}
|
|
259
260
|
}
|
|
260
261
|
},
|
|
262
|
+
{
|
|
263
|
+
id: 'background',
|
|
264
|
+
type: 'background-media',
|
|
265
|
+
ignoreReRender: true,
|
|
266
|
+
showVideo: false,
|
|
267
|
+
devices: {
|
|
268
|
+
desktop: {
|
|
269
|
+
default: {
|
|
270
|
+
type: 'color',
|
|
271
|
+
color: 'transparent',
|
|
272
|
+
image: {
|
|
273
|
+
src: '',
|
|
274
|
+
width: 0,
|
|
275
|
+
height: 0
|
|
276
|
+
},
|
|
277
|
+
size: 'cover',
|
|
278
|
+
position: {
|
|
279
|
+
x: 50,
|
|
280
|
+
y: 50
|
|
281
|
+
},
|
|
282
|
+
repeat: 'no-repeat',
|
|
283
|
+
attachment: 'scroll'
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
compoDefaultValue: {
|
|
288
|
+
desktop: {
|
|
289
|
+
default: {
|
|
290
|
+
type: 'color',
|
|
291
|
+
color: 'brand',
|
|
292
|
+
image: {
|
|
293
|
+
src: 'https://ucarecdn.com/06075225-af9e-460c-8e3c-6be63c0b773a/-/format/auto/',
|
|
294
|
+
width: 1200,
|
|
295
|
+
height: 480
|
|
296
|
+
},
|
|
297
|
+
size: 'cover',
|
|
298
|
+
position: {
|
|
299
|
+
x: 50,
|
|
300
|
+
y: 50
|
|
301
|
+
},
|
|
302
|
+
repeat: 'no-repeat',
|
|
303
|
+
attachment: 'scroll',
|
|
304
|
+
preload: false
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
},
|
|
261
309
|
{
|
|
262
310
|
id: 'backgroundColorV2',
|
|
263
311
|
type: 'color-picker-v2',
|
|
264
312
|
devices: {
|
|
265
313
|
desktop: {
|
|
266
314
|
default: {
|
|
267
|
-
normal: '
|
|
268
|
-
hover: '
|
|
315
|
+
normal: 'brand',
|
|
316
|
+
hover: 'highlight'
|
|
269
317
|
}
|
|
270
318
|
}
|
|
271
319
|
},
|
|
272
320
|
compoDefaultValue: {
|
|
273
321
|
desktop: {
|
|
274
322
|
default: {
|
|
275
|
-
normal: '
|
|
276
|
-
hover: '
|
|
323
|
+
normal: 'brand',
|
|
324
|
+
hover: 'highlight'
|
|
277
325
|
}
|
|
278
326
|
}
|
|
279
327
|
}
|
|
@@ -341,12 +389,16 @@ const ArticleReadMoreSettings = [
|
|
|
341
389
|
type: 'color-picker-v2',
|
|
342
390
|
devices: {
|
|
343
391
|
desktop: {
|
|
344
|
-
default: {
|
|
392
|
+
default: {
|
|
393
|
+
hover: 'text-3'
|
|
394
|
+
}
|
|
345
395
|
}
|
|
346
396
|
},
|
|
347
397
|
compoDefaultValue: {
|
|
348
398
|
desktop: {
|
|
349
|
-
default: {
|
|
399
|
+
default: {
|
|
400
|
+
hover: 'text-3'
|
|
401
|
+
}
|
|
350
402
|
}
|
|
351
403
|
},
|
|
352
404
|
enableGradient: true
|
|
@@ -469,6 +521,12 @@ const ArticleReadMoreSettings = [
|
|
|
469
521
|
}
|
|
470
522
|
}
|
|
471
523
|
},
|
|
524
|
+
{
|
|
525
|
+
id: 'enableTextStyle',
|
|
526
|
+
label: '',
|
|
527
|
+
type: 'toggle',
|
|
528
|
+
default: true
|
|
529
|
+
},
|
|
472
530
|
{
|
|
473
531
|
id: 'typoBtn',
|
|
474
532
|
type: 'typography-v2',
|
|
@@ -181,6 +181,13 @@ const uiV2 = [
|
|
|
181
181
|
en: 'Background'
|
|
182
182
|
},
|
|
183
183
|
controls: [
|
|
184
|
+
{
|
|
185
|
+
setting: {
|
|
186
|
+
id: 'background'
|
|
187
|
+
},
|
|
188
|
+
layout: 'vertical',
|
|
189
|
+
conditionDisplay: "readMoreType === 'text'"
|
|
190
|
+
},
|
|
184
191
|
{
|
|
185
192
|
label: {
|
|
186
193
|
en: 'Color'
|
|
@@ -188,7 +195,8 @@ const uiV2 = [
|
|
|
188
195
|
setting: {
|
|
189
196
|
id: 'backgroundColorV2',
|
|
190
197
|
state: 'normal'
|
|
191
|
-
}
|
|
198
|
+
},
|
|
199
|
+
conditionDisplay: "readMoreType != 'text'"
|
|
192
200
|
},
|
|
193
201
|
{
|
|
194
202
|
label: {
|
|
@@ -197,7 +205,8 @@ const uiV2 = [
|
|
|
197
205
|
setting: {
|
|
198
206
|
id: 'backgroundImage',
|
|
199
207
|
state: 'normal'
|
|
200
|
-
}
|
|
208
|
+
},
|
|
209
|
+
conditionDisplay: "readMoreType != 'text'"
|
|
201
210
|
}
|
|
202
211
|
]
|
|
203
212
|
},
|
|
@@ -322,11 +331,20 @@ const uiV2 = [
|
|
|
322
331
|
]
|
|
323
332
|
},
|
|
324
333
|
{
|
|
325
|
-
label: {
|
|
326
|
-
en: 'Text style'
|
|
327
|
-
},
|
|
328
|
-
conditionDisplay: `readMoreType !== 'text'`,
|
|
329
334
|
controls: [
|
|
335
|
+
{
|
|
336
|
+
label: {
|
|
337
|
+
en: 'Text'
|
|
338
|
+
},
|
|
339
|
+
setting: {
|
|
340
|
+
id: 'enableTextStyle'
|
|
341
|
+
},
|
|
342
|
+
conditionDisplay: `readMoreType !== 'text'`,
|
|
343
|
+
options: {
|
|
344
|
+
labelVariant: 'primary',
|
|
345
|
+
toggleStyle: 'switch'
|
|
346
|
+
}
|
|
347
|
+
},
|
|
330
348
|
{
|
|
331
349
|
id: 'typo',
|
|
332
350
|
label: {
|
|
@@ -335,6 +353,7 @@ const uiV2 = [
|
|
|
335
353
|
setting: {
|
|
336
354
|
id: 'typoBtn'
|
|
337
355
|
},
|
|
356
|
+
conditionDisplay: `readMoreType !== 'text' && enableTextStyle == true`,
|
|
338
357
|
options: {
|
|
339
358
|
hideLabel: true,
|
|
340
359
|
fullWidth: true,
|
|
@@ -366,7 +385,7 @@ const uiV2 = [
|
|
|
366
385
|
},
|
|
367
386
|
{
|
|
368
387
|
label: {
|
|
369
|
-
en: 'Text
|
|
388
|
+
en: 'Text'
|
|
370
389
|
},
|
|
371
390
|
conditionDisplay: `readMoreType == 'text'`,
|
|
372
391
|
controls: [
|
|
@@ -63,7 +63,8 @@ const ArticleReadMoreSettings = [
|
|
|
63
63
|
id: 'iconSvg',
|
|
64
64
|
label: 'SVG Icon',
|
|
65
65
|
type: 'icon',
|
|
66
|
-
default: '<svg height="20" width="20" data-name="
|
|
66
|
+
default: '<svg height="20" width="20" data-name="arrow-right-bold" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" data-id="508817550824440168"><path fill="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M224.49,136.49l-72,72a12,12,0,0,1-17-17L187,140H40a12,12,0,0,1,0-24H187L135.51,64.48a12,12,0,0,1,17-17l72,72A12,12,0,0,1,224.49,136.49Z"/></svg>',
|
|
67
|
+
compoDefaultValue: `<svg height="20" width="20" data-name="arrow-right-bold" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" data-id="508817550824440168"><path fill="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M224.49,136.49l-72,72a12,12,0,0,1-17-17L187,140H40a12,12,0,0,1,0-24H187L135.51,64.48a12,12,0,0,1,17-17l72,72A12,12,0,0,1,224.49,136.49Z"/></svg>`
|
|
67
68
|
},
|
|
68
69
|
{
|
|
69
70
|
id: 'iconAlign',
|
|
@@ -256,22 +257,69 @@ const ArticleReadMoreSettings = [
|
|
|
256
257
|
}
|
|
257
258
|
}
|
|
258
259
|
},
|
|
260
|
+
{
|
|
261
|
+
id: 'background',
|
|
262
|
+
type: 'background-media',
|
|
263
|
+
ignoreReRender: true,
|
|
264
|
+
showVideo: false,
|
|
265
|
+
devices: {
|
|
266
|
+
desktop: {
|
|
267
|
+
default: {
|
|
268
|
+
type: 'color',
|
|
269
|
+
color: 'transparent',
|
|
270
|
+
image: {
|
|
271
|
+
src: '',
|
|
272
|
+
width: 0,
|
|
273
|
+
height: 0
|
|
274
|
+
},
|
|
275
|
+
size: 'cover',
|
|
276
|
+
position: {
|
|
277
|
+
x: 50,
|
|
278
|
+
y: 50
|
|
279
|
+
},
|
|
280
|
+
repeat: 'no-repeat',
|
|
281
|
+
attachment: 'scroll'
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
compoDefaultValue: {
|
|
286
|
+
desktop: {
|
|
287
|
+
default: {
|
|
288
|
+
type: 'color',
|
|
289
|
+
color: 'brand',
|
|
290
|
+
image: {
|
|
291
|
+
src: 'https://ucarecdn.com/06075225-af9e-460c-8e3c-6be63c0b773a/-/format/auto/',
|
|
292
|
+
width: 1200,
|
|
293
|
+
height: 480
|
|
294
|
+
},
|
|
295
|
+
size: 'cover',
|
|
296
|
+
position: {
|
|
297
|
+
x: 50,
|
|
298
|
+
y: 50
|
|
299
|
+
},
|
|
300
|
+
repeat: 'no-repeat',
|
|
301
|
+
attachment: 'scroll',
|
|
302
|
+
preload: false
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
},
|
|
259
307
|
{
|
|
260
308
|
id: 'backgroundColorV2',
|
|
261
309
|
type: 'color-picker-v2',
|
|
262
310
|
devices: {
|
|
263
311
|
desktop: {
|
|
264
312
|
default: {
|
|
265
|
-
normal: '
|
|
266
|
-
hover: '
|
|
313
|
+
normal: 'brand',
|
|
314
|
+
hover: 'highlight'
|
|
267
315
|
}
|
|
268
316
|
}
|
|
269
317
|
},
|
|
270
318
|
compoDefaultValue: {
|
|
271
319
|
desktop: {
|
|
272
320
|
default: {
|
|
273
|
-
normal: '
|
|
274
|
-
hover: '
|
|
321
|
+
normal: 'brand',
|
|
322
|
+
hover: 'highlight'
|
|
275
323
|
}
|
|
276
324
|
}
|
|
277
325
|
}
|
|
@@ -339,12 +387,16 @@ const ArticleReadMoreSettings = [
|
|
|
339
387
|
type: 'color-picker-v2',
|
|
340
388
|
devices: {
|
|
341
389
|
desktop: {
|
|
342
|
-
default: {
|
|
390
|
+
default: {
|
|
391
|
+
hover: 'text-3'
|
|
392
|
+
}
|
|
343
393
|
}
|
|
344
394
|
},
|
|
345
395
|
compoDefaultValue: {
|
|
346
396
|
desktop: {
|
|
347
|
-
default: {
|
|
397
|
+
default: {
|
|
398
|
+
hover: 'text-3'
|
|
399
|
+
}
|
|
348
400
|
}
|
|
349
401
|
},
|
|
350
402
|
enableGradient: true
|
|
@@ -467,6 +519,12 @@ const ArticleReadMoreSettings = [
|
|
|
467
519
|
}
|
|
468
520
|
}
|
|
469
521
|
},
|
|
522
|
+
{
|
|
523
|
+
id: 'enableTextStyle',
|
|
524
|
+
label: '',
|
|
525
|
+
type: 'toggle',
|
|
526
|
+
default: true
|
|
527
|
+
},
|
|
470
528
|
{
|
|
471
529
|
id: 'typoBtn',
|
|
472
530
|
type: 'typography-v2',
|
|
@@ -179,6 +179,13 @@ const uiV2 = [
|
|
|
179
179
|
en: 'Background'
|
|
180
180
|
},
|
|
181
181
|
controls: [
|
|
182
|
+
{
|
|
183
|
+
setting: {
|
|
184
|
+
id: 'background'
|
|
185
|
+
},
|
|
186
|
+
layout: 'vertical',
|
|
187
|
+
conditionDisplay: "readMoreType === 'text'"
|
|
188
|
+
},
|
|
182
189
|
{
|
|
183
190
|
label: {
|
|
184
191
|
en: 'Color'
|
|
@@ -186,7 +193,8 @@ const uiV2 = [
|
|
|
186
193
|
setting: {
|
|
187
194
|
id: 'backgroundColorV2',
|
|
188
195
|
state: 'normal'
|
|
189
|
-
}
|
|
196
|
+
},
|
|
197
|
+
conditionDisplay: "readMoreType != 'text'"
|
|
190
198
|
},
|
|
191
199
|
{
|
|
192
200
|
label: {
|
|
@@ -195,7 +203,8 @@ const uiV2 = [
|
|
|
195
203
|
setting: {
|
|
196
204
|
id: 'backgroundImage',
|
|
197
205
|
state: 'normal'
|
|
198
|
-
}
|
|
206
|
+
},
|
|
207
|
+
conditionDisplay: "readMoreType != 'text'"
|
|
199
208
|
}
|
|
200
209
|
]
|
|
201
210
|
},
|
|
@@ -320,11 +329,20 @@ const uiV2 = [
|
|
|
320
329
|
]
|
|
321
330
|
},
|
|
322
331
|
{
|
|
323
|
-
label: {
|
|
324
|
-
en: 'Text style'
|
|
325
|
-
},
|
|
326
|
-
conditionDisplay: `readMoreType !== 'text'`,
|
|
327
332
|
controls: [
|
|
333
|
+
{
|
|
334
|
+
label: {
|
|
335
|
+
en: 'Text'
|
|
336
|
+
},
|
|
337
|
+
setting: {
|
|
338
|
+
id: 'enableTextStyle'
|
|
339
|
+
},
|
|
340
|
+
conditionDisplay: `readMoreType !== 'text'`,
|
|
341
|
+
options: {
|
|
342
|
+
labelVariant: 'primary',
|
|
343
|
+
toggleStyle: 'switch'
|
|
344
|
+
}
|
|
345
|
+
},
|
|
328
346
|
{
|
|
329
347
|
id: 'typo',
|
|
330
348
|
label: {
|
|
@@ -333,6 +351,7 @@ const uiV2 = [
|
|
|
333
351
|
setting: {
|
|
334
352
|
id: 'typoBtn'
|
|
335
353
|
},
|
|
354
|
+
conditionDisplay: `readMoreType !== 'text' && enableTextStyle == true`,
|
|
336
355
|
options: {
|
|
337
356
|
hideLabel: true,
|
|
338
357
|
fullWidth: true,
|
|
@@ -364,7 +383,7 @@ const uiV2 = [
|
|
|
364
383
|
},
|
|
365
384
|
{
|
|
366
385
|
label: {
|
|
367
|
-
en: 'Text
|
|
386
|
+
en: 'Text'
|
|
368
387
|
},
|
|
369
388
|
conditionDisplay: `readMoreType == 'text'`,
|
|
370
389
|
controls: [
|
package/dist/types/index.d.ts
CHANGED
|
@@ -441,10 +441,12 @@ type ArticleReadMoreStyles = TextProps['styles'] & ButtonProps['styles'] & {
|
|
|
441
441
|
textColorTextState?: StateProp<ColorValueType$1>;
|
|
442
442
|
typoBtn?: TypographySettingV2;
|
|
443
443
|
typoText?: TypographySettingV2;
|
|
444
|
+
enableTextStyle?: boolean;
|
|
444
445
|
globalSizeBtn?: ObjectDevices$1<SizeSettingGlobal>;
|
|
445
446
|
globalSizeText?: ObjectDevices$1<SizeSettingGlobal>;
|
|
446
447
|
alignBtn?: ObjectDevices$1<AlignProp>;
|
|
447
448
|
alignText?: ObjectDevices$1<AlignProp>;
|
|
449
|
+
background?: ObjectDevices$1<BackgroundMedia>;
|
|
448
450
|
};
|
|
449
451
|
type ArticleReadMoreProps = BasePropsWrap<ArticleReadMoreSetting, ArticleReadMoreStyles> & {
|
|
450
452
|
className?: string;
|