@gem-sdk/components 2.0.0-dev.369 → 2.0.0-dev.371
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/components/ArticleDate.js +0 -1
- package/dist/cjs/article/components/ArticleReadMore.liquid.js +1 -1
- package/dist/cjs/article/setting/configs/ArticleContent/settings.js +1 -1
- package/dist/cjs/article/setting/configs/ArticleContent/uiV2.js +11 -1
- package/dist/cjs/article/setting/configs/ArticleExcerpt/settings.js +1 -1
- package/dist/cjs/article/setting/configs/ArticleImage/settings.js +5 -4
- package/dist/cjs/article/setting/configs/ArticleImage/uiV2.js +48 -4
- package/dist/cjs/article/setting/configs/ArticleReadMore/settings.js +96 -64
- package/dist/cjs/article/setting/configs/ArticleReadMore/uiV2.js +380 -97
- package/dist/cjs/builder.js +2 -2
- package/dist/cjs/button/setting/configs/settings.js +0 -14
- package/dist/cjs/carousel/arrow/Arrow.js +52 -0
- package/dist/cjs/carousel/arrow/Arrow.liquid.js +46 -0
- package/dist/cjs/carousel/{components/common/arrow.js → arrow/common/common.js} +13 -11
- package/dist/cjs/carousel/arrow/common/getClass.js +50 -0
- package/dist/cjs/carousel/arrow/common/getStyle.js +84 -0
- package/dist/cjs/carousel/carousel-item/CarouselItem.js +32 -0
- package/dist/cjs/carousel/carousel-item/CarouselItem.liquid.js +38 -0
- package/dist/cjs/carousel/carousel-item/common/getClass.js +29 -0
- package/dist/cjs/carousel/{components/CarouselItem.liquid.js → carousel-item/common/getStyle.js} +30 -47
- package/dist/cjs/carousel/carousel-item/hook/useCarouseItem.js +14 -0
- package/dist/cjs/carousel/components/const/index.js +5 -0
- package/dist/cjs/carousel/dots/Dots.js +51 -0
- package/dist/cjs/carousel/dots/Dots.liquid.js +26 -0
- package/dist/cjs/carousel/dots/common/common.js +46 -0
- package/dist/cjs/carousel/dots/common/getClass.js +40 -0
- package/dist/cjs/carousel/dots/common/getStyle.js +33 -0
- package/dist/cjs/carousel/dots/hook/useDotsSetting.js +21 -0
- package/dist/cjs/carousel/index.js +1 -2
- package/dist/cjs/carousel/next.js +2 -2
- package/dist/cjs/carousel/root/Carousel.js +129 -0
- package/dist/cjs/carousel/root/Carousel.liquid.js +104 -0
- package/dist/cjs/carousel/root/common/getAttr.js +25 -0
- package/dist/cjs/carousel/root/common/getClass.js +135 -0
- package/dist/cjs/carousel/root/common/getData.js +56 -0
- package/dist/cjs/carousel/root/common/getStyle.js +64 -0
- package/dist/cjs/carousel/{components/Carousel.js → root/hook/useCarousel.js} +153 -321
- package/dist/cjs/carousel/setting/Carousel.js +8 -1555
- package/dist/cjs/carousel/setting/configs/presets.js +380 -0
- package/dist/cjs/carousel/setting/configs/settingV2.js +771 -0
- package/dist/cjs/carousel/setting/configs/uiV1.js +434 -0
- package/dist/cjs/carousel/setting/configs/uiV2.js +627 -0
- package/dist/cjs/common/components/NoDataState.js +5 -5
- package/dist/cjs/grid/row/commons/common.js +3 -3
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/index.liquid.js +2 -2
- package/dist/cjs/product/components/ProductImages/ProductGalleryCarousel.js +2 -2
- package/dist/cjs/product/components/ProductImages/ProductImagesLightBox.js +2 -2
- package/dist/cjs/product/components/ProductImages/liquid/ProductGalleryCarousel.liquid.js +5 -3
- package/dist/cjs/product/components/ProductImagesV2/common/getAttr.js +1 -0
- package/dist/cjs/product/components/ProductImagesV2/common/productFeaturedImage.js +1 -1
- package/dist/cjs/product/components/ProductImagesV2/common/productGallery.js +1 -1
- package/dist/cjs/product/components/ProductImagesV2/components/child/ProductFeaturedImageCarousel.js +5 -5
- package/dist/cjs/product/components/ProductImagesV2/components/feature-gallery/FeatureImageWithGallery.liquid.js +8 -4
- package/dist/cjs/product/components/ProductImagesV2/components/gallery-carousel/GalleryCarousel.js +2 -2
- package/dist/cjs/product/components/ProductImagesV2/components/gallery-carousel/GalleryCarousel.liquid.js +6 -3
- package/dist/cjs/product/components/ProductImagesV2/components/lightbox/ProductImagesLightBox.js +2 -2
- package/dist/cjs/product/components/ProductImagesV2/hooks/useProductFeaturedImageCarousel.js +3 -3
- package/dist/cjs/product/components/ProductList/ProductListCarouselLayout.js +2 -2
- package/dist/cjs/product/components/ProductList/ProductListCarouselLayout.liquid.js +5 -3
- package/dist/cjs/product/components/ProductList/common/index.js +5 -5
- package/dist/cjs/product/components/ProductVariants/common/main/getAttr.js +1 -1
- package/dist/cjs/text/components/Text.js +3 -3
- package/dist/esm/article/components/ArticleDate.js +0 -1
- package/dist/esm/article/components/ArticleReadMore.liquid.js +1 -1
- package/dist/esm/article/setting/configs/ArticleContent/settings.js +1 -1
- package/dist/esm/article/setting/configs/ArticleContent/uiV2.js +11 -1
- package/dist/esm/article/setting/configs/ArticleExcerpt/settings.js +1 -1
- package/dist/esm/article/setting/configs/ArticleImage/settings.js +5 -4
- package/dist/esm/article/setting/configs/ArticleImage/uiV2.js +48 -4
- package/dist/esm/article/setting/configs/ArticleReadMore/settings.js +96 -64
- package/dist/esm/article/setting/configs/ArticleReadMore/uiV2.js +380 -97
- package/dist/esm/builder.js +2 -2
- package/dist/esm/button/setting/configs/settings.js +0 -14
- package/dist/esm/carousel/arrow/Arrow.js +48 -0
- package/dist/esm/carousel/arrow/Arrow.liquid.js +42 -0
- package/dist/esm/carousel/{components/common/arrow.js → arrow/common/common.js} +12 -10
- package/dist/esm/carousel/arrow/common/getClass.js +48 -0
- package/dist/esm/carousel/arrow/common/getStyle.js +82 -0
- package/dist/esm/carousel/carousel-item/CarouselItem.js +28 -0
- package/dist/esm/carousel/carousel-item/CarouselItem.liquid.js +34 -0
- package/dist/esm/carousel/carousel-item/common/getClass.js +27 -0
- package/dist/esm/carousel/{components/CarouselItem.liquid.js → carousel-item/common/getStyle.js} +31 -46
- package/dist/esm/carousel/carousel-item/hook/useCarouseItem.js +12 -0
- package/dist/esm/carousel/components/const/index.js +3 -0
- package/dist/esm/carousel/dots/Dots.js +47 -0
- package/dist/esm/carousel/dots/Dots.liquid.js +22 -0
- package/dist/esm/carousel/dots/common/common.js +43 -0
- package/dist/esm/carousel/dots/common/getClass.js +38 -0
- package/dist/esm/carousel/dots/common/getStyle.js +31 -0
- package/dist/esm/carousel/dots/hook/useDotsSetting.js +19 -0
- package/dist/esm/carousel/index.js +1 -2
- package/dist/esm/carousel/next.js +2 -2
- package/dist/esm/carousel/root/Carousel.js +125 -0
- package/dist/esm/carousel/root/Carousel.liquid.js +100 -0
- package/dist/esm/carousel/root/common/getAttr.js +23 -0
- package/dist/esm/carousel/root/common/getClass.js +133 -0
- package/dist/esm/carousel/root/common/getData.js +54 -0
- package/dist/esm/carousel/root/common/getStyle.js +62 -0
- package/dist/esm/carousel/{components/Carousel.js → root/hook/useCarousel.js} +150 -316
- package/dist/esm/carousel/setting/Carousel.js +8 -1555
- package/dist/esm/carousel/setting/configs/presets.js +378 -0
- package/dist/esm/carousel/setting/configs/settingV2.js +769 -0
- package/dist/esm/carousel/setting/configs/uiV1.js +432 -0
- package/dist/esm/carousel/setting/configs/uiV2.js +625 -0
- package/dist/esm/common/components/NoDataState.js +6 -6
- package/dist/esm/grid/row/commons/common.js +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.liquid.js +2 -2
- package/dist/esm/product/components/ProductImages/ProductGalleryCarousel.js +2 -2
- package/dist/esm/product/components/ProductImages/ProductImagesLightBox.js +2 -2
- package/dist/esm/product/components/ProductImages/liquid/ProductGalleryCarousel.liquid.js +5 -3
- package/dist/esm/product/components/ProductImagesV2/common/getAttr.js +1 -0
- package/dist/esm/product/components/ProductImagesV2/common/productFeaturedImage.js +1 -1
- package/dist/esm/product/components/ProductImagesV2/common/productGallery.js +1 -1
- package/dist/esm/product/components/ProductImagesV2/components/child/ProductFeaturedImageCarousel.js +5 -5
- package/dist/esm/product/components/ProductImagesV2/components/feature-gallery/FeatureImageWithGallery.liquid.js +8 -4
- package/dist/esm/product/components/ProductImagesV2/components/gallery-carousel/GalleryCarousel.js +2 -2
- package/dist/esm/product/components/ProductImagesV2/components/gallery-carousel/GalleryCarousel.liquid.js +6 -3
- package/dist/esm/product/components/ProductImagesV2/components/lightbox/ProductImagesLightBox.js +2 -2
- package/dist/esm/product/components/ProductImagesV2/hooks/useProductFeaturedImageCarousel.js +3 -3
- package/dist/esm/product/components/ProductList/ProductListCarouselLayout.js +2 -2
- package/dist/esm/product/components/ProductList/ProductListCarouselLayout.liquid.js +5 -3
- package/dist/esm/product/components/ProductList/common/index.js +3 -3
- package/dist/esm/product/components/ProductVariants/common/main/getAttr.js +1 -1
- package/dist/esm/text/components/Text.js +4 -4
- package/dist/types/index.d.ts +165 -68
- package/package.json +3 -3
- package/dist/cjs/carousel/components/Arrow.js +0 -110
- package/dist/cjs/carousel/components/Arrow.liquid.js +0 -103
- package/dist/cjs/carousel/components/Carousel.liquid.js +0 -256
- package/dist/cjs/carousel/components/CarouselItem.js +0 -88
- package/dist/cjs/carousel/components/Dots.js +0 -69
- package/dist/cjs/carousel/components/Dots.liquid.js +0 -23
- package/dist/cjs/carousel/components/common/dots.js +0 -57
- package/dist/esm/carousel/components/Arrow.js +0 -106
- package/dist/esm/carousel/components/Arrow.liquid.js +0 -99
- package/dist/esm/carousel/components/Carousel.liquid.js +0 -252
- package/dist/esm/carousel/components/CarouselItem.js +0 -84
- package/dist/esm/carousel/components/Dots.js +0 -65
- package/dist/esm/carousel/components/Dots.liquid.js +0 -19
- package/dist/esm/carousel/components/common/dots.js +0 -53
|
@@ -4,15 +4,33 @@ const ArticleReadMoreSettings = [
|
|
|
4
4
|
controls: [
|
|
5
5
|
{
|
|
6
6
|
id: 'readMoreType',
|
|
7
|
-
|
|
7
|
+
label: 'Style',
|
|
8
|
+
popoverLabel: 'Style',
|
|
9
|
+
type: 'layout-selector',
|
|
10
|
+
iconViewBox: '0 0 80 48',
|
|
11
|
+
enableItemBackground: true,
|
|
12
|
+
itemPerRow: 2,
|
|
13
|
+
itemSpacing: 'large',
|
|
8
14
|
options: [
|
|
9
15
|
{
|
|
10
|
-
label: '
|
|
11
|
-
value: 'button'
|
|
16
|
+
label: 'Filled Square',
|
|
17
|
+
value: 'button',
|
|
18
|
+
iconName: 'gp-article-filled-square'
|
|
12
19
|
},
|
|
13
20
|
{
|
|
14
|
-
label: '
|
|
15
|
-
value: '
|
|
21
|
+
label: 'Rounded',
|
|
22
|
+
value: 'rounded',
|
|
23
|
+
iconName: 'gp-article-rounded'
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
label: 'Outline',
|
|
27
|
+
value: 'outline',
|
|
28
|
+
iconName: 'gp-article-outline'
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
label: 'Text',
|
|
32
|
+
value: 'text',
|
|
33
|
+
iconName: 'gp-article-link'
|
|
16
34
|
}
|
|
17
35
|
],
|
|
18
36
|
default: 'button'
|
|
@@ -39,7 +57,7 @@ const ArticleReadMoreSettings = [
|
|
|
39
57
|
id: 'iconVisible',
|
|
40
58
|
label: 'Icon Visible',
|
|
41
59
|
type: 'toggle',
|
|
42
|
-
default:
|
|
60
|
+
default: true
|
|
43
61
|
},
|
|
44
62
|
{
|
|
45
63
|
id: 'iconSvg',
|
|
@@ -154,52 +172,6 @@ const ArticleReadMoreSettings = [
|
|
|
154
172
|
default: 'div'
|
|
155
173
|
}
|
|
156
174
|
]
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
id: 'background',
|
|
160
|
-
type: 'background-media',
|
|
161
|
-
ignoreReRender: true,
|
|
162
|
-
devices: {
|
|
163
|
-
desktop: {
|
|
164
|
-
default: {
|
|
165
|
-
type: 'color',
|
|
166
|
-
color: 'transparent',
|
|
167
|
-
image: {
|
|
168
|
-
src: '',
|
|
169
|
-
width: 0,
|
|
170
|
-
height: 0
|
|
171
|
-
},
|
|
172
|
-
size: 'cover',
|
|
173
|
-
position: {
|
|
174
|
-
x: 50,
|
|
175
|
-
y: 50
|
|
176
|
-
},
|
|
177
|
-
repeat: 'no-repeat',
|
|
178
|
-
attachment: 'scroll'
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
},
|
|
182
|
-
compoDefaultValue: {
|
|
183
|
-
desktop: {
|
|
184
|
-
default: {
|
|
185
|
-
type: 'color',
|
|
186
|
-
color: '#DDDDDD',
|
|
187
|
-
image: {
|
|
188
|
-
src: 'https://ucarecdn.com/5e27d43d-eb1e-4e71-b7e1-4158f3071bb6/-/format/auto/',
|
|
189
|
-
width: 1200,
|
|
190
|
-
height: 480
|
|
191
|
-
},
|
|
192
|
-
size: 'cover',
|
|
193
|
-
position: {
|
|
194
|
-
x: 50,
|
|
195
|
-
y: 50
|
|
196
|
-
},
|
|
197
|
-
repeat: 'no-repeat',
|
|
198
|
-
attachment: 'scroll',
|
|
199
|
-
preload: false
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
175
|
}
|
|
204
176
|
]
|
|
205
177
|
},
|
|
@@ -290,16 +262,16 @@ const ArticleReadMoreSettings = [
|
|
|
290
262
|
devices: {
|
|
291
263
|
desktop: {
|
|
292
264
|
default: {
|
|
293
|
-
normal: '
|
|
294
|
-
hover: '
|
|
265
|
+
normal: '#212121',
|
|
266
|
+
hover: '#303030'
|
|
295
267
|
}
|
|
296
268
|
}
|
|
297
269
|
},
|
|
298
270
|
compoDefaultValue: {
|
|
299
271
|
desktop: {
|
|
300
272
|
default: {
|
|
301
|
-
normal: '
|
|
302
|
-
hover: '
|
|
273
|
+
normal: '#212121',
|
|
274
|
+
hover: '#303030'
|
|
303
275
|
}
|
|
304
276
|
}
|
|
305
277
|
}
|
|
@@ -317,6 +289,38 @@ const ArticleReadMoreSettings = [
|
|
|
317
289
|
normal: true
|
|
318
290
|
}
|
|
319
291
|
},
|
|
292
|
+
{
|
|
293
|
+
id: 'backgroundImage',
|
|
294
|
+
type: 'background-image',
|
|
295
|
+
devices: {
|
|
296
|
+
desktop: {
|
|
297
|
+
default: {
|
|
298
|
+
normal: {},
|
|
299
|
+
hover: {}
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
compoDefaultValue: {
|
|
304
|
+
desktop: {
|
|
305
|
+
default: {
|
|
306
|
+
normal: {
|
|
307
|
+
image: {
|
|
308
|
+
src: 'https://ucarecdn.com/5e27d43d-eb1e-4e71-b7e1-4158f3071bb6/-/format/auto/',
|
|
309
|
+
width: 1200,
|
|
310
|
+
height: 480
|
|
311
|
+
}
|
|
312
|
+
},
|
|
313
|
+
hover: {
|
|
314
|
+
image: {
|
|
315
|
+
src: 'https://ucarecdn.com/5e27d43d-eb1e-4e71-b7e1-4158f3071bb6/-/format/auto/',
|
|
316
|
+
width: 1200,
|
|
317
|
+
height: 480
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
},
|
|
320
324
|
{
|
|
321
325
|
id: 'textColorBtnState',
|
|
322
326
|
type: 'color-picker-v2',
|
|
@@ -387,6 +391,31 @@ const ArticleReadMoreSettings = [
|
|
|
387
391
|
}
|
|
388
392
|
}
|
|
389
393
|
}
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
id: 'boxShadowBtnV2',
|
|
397
|
+
type: 'shadow-v2',
|
|
398
|
+
devices: {
|
|
399
|
+
desktop: {
|
|
400
|
+
default: {
|
|
401
|
+
normal: {}
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
},
|
|
405
|
+
compoDefaultValue: {
|
|
406
|
+
desktop: {
|
|
407
|
+
default: {
|
|
408
|
+
normal: {
|
|
409
|
+
type: 'shadow-2',
|
|
410
|
+
distance: '12px',
|
|
411
|
+
blur: '12px',
|
|
412
|
+
spread: '0px',
|
|
413
|
+
color: 'rgba(18, 18, 18, 0.2)',
|
|
414
|
+
angle: 45
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
}
|
|
390
419
|
}
|
|
391
420
|
]
|
|
392
421
|
},
|
|
@@ -427,13 +456,18 @@ const ArticleReadMoreSettings = [
|
|
|
427
456
|
id: 'typoBtn',
|
|
428
457
|
type: 'typography-v2',
|
|
429
458
|
default: {
|
|
430
|
-
type: '
|
|
459
|
+
type: 'paragraph-1',
|
|
431
460
|
custom: {
|
|
432
461
|
lineHeight: {
|
|
433
462
|
desktop: '120%',
|
|
434
463
|
tablet: '120%',
|
|
435
464
|
mobile: '120%'
|
|
436
|
-
}
|
|
465
|
+
},
|
|
466
|
+
letterSpacing: '0px',
|
|
467
|
+
hasShadowText: false
|
|
468
|
+
},
|
|
469
|
+
attrs: {
|
|
470
|
+
color: '#ffffff'
|
|
437
471
|
}
|
|
438
472
|
},
|
|
439
473
|
ignoreReRender: true,
|
|
@@ -565,14 +599,12 @@ const ArticleReadMoreSettings = [
|
|
|
565
599
|
{
|
|
566
600
|
id: 'spacing',
|
|
567
601
|
label: 'Spacing Icon',
|
|
568
|
-
type: 'input:
|
|
602
|
+
type: 'input:slider',
|
|
569
603
|
units: [
|
|
570
|
-
'px'
|
|
571
|
-
'em',
|
|
572
|
-
'rem',
|
|
573
|
-
'%'
|
|
604
|
+
'px'
|
|
574
605
|
],
|
|
575
|
-
|
|
606
|
+
step: 1,
|
|
607
|
+
max: 40,
|
|
576
608
|
default: '8px'
|
|
577
609
|
}
|
|
578
610
|
]
|