@gem-sdk/components 2.0.0-dev.532 → 2.0.0-dev.534

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 (34) hide show
  1. package/dist/cjs/carousel/setting/configs/presets.js +6 -0
  2. package/dist/cjs/carousel/setting/configs/settingV2.js +8 -6
  3. package/dist/cjs/carousel/setting/configs/uiV2.js +78 -18
  4. package/dist/cjs/collection/components/collection-description/common/index.js +0 -2
  5. package/dist/cjs/collection/components/collection-description/common/styles.js +4 -4
  6. package/dist/cjs/collection/components/collection-description/components/CollectionDescription.js +5 -5
  7. package/dist/cjs/collection/components/collection-description/components/CollectionDescription.liquid.js +6 -9
  8. package/dist/cjs/collection/components/collection-paginator/common/index.js +2 -1
  9. package/dist/cjs/collection/components/collection-paginator/components/CollectionPaginator.liquid.js +4 -9
  10. package/dist/cjs/collection/setting/collection-banner/configs/settings.js +38 -35
  11. package/dist/cjs/collection/setting/collection-banner/configs/uiV2.js +47 -43
  12. package/dist/cjs/collection/setting/collection-description/configs/uiV2.js +38 -4
  13. package/dist/cjs/collection/setting/collection-paginator/configs/settings.js +7 -3
  14. package/dist/cjs/collection/setting/collection-paginator/configs/uiV2.js +64 -31
  15. package/dist/cjs/collection/setting/collection-toolbar/configs/settings.js +2 -2
  16. package/dist/cjs/collection/setting/collection-toolbar/configs/uiV2.js +1 -1
  17. package/dist/esm/carousel/setting/configs/presets.js +6 -0
  18. package/dist/esm/carousel/setting/configs/settingV2.js +8 -6
  19. package/dist/esm/carousel/setting/configs/uiV2.js +78 -18
  20. package/dist/esm/collection/components/collection-description/common/index.js +1 -2
  21. package/dist/esm/collection/components/collection-description/common/styles.js +5 -5
  22. package/dist/esm/collection/components/collection-description/components/CollectionDescription.js +7 -7
  23. package/dist/esm/collection/components/collection-description/components/CollectionDescription.liquid.js +7 -10
  24. package/dist/esm/collection/components/collection-paginator/common/index.js +2 -1
  25. package/dist/esm/collection/components/collection-paginator/components/CollectionPaginator.liquid.js +4 -9
  26. package/dist/esm/collection/setting/collection-banner/configs/settings.js +38 -35
  27. package/dist/esm/collection/setting/collection-banner/configs/uiV2.js +47 -43
  28. package/dist/esm/collection/setting/collection-description/configs/uiV2.js +38 -4
  29. package/dist/esm/collection/setting/collection-paginator/configs/settings.js +7 -3
  30. package/dist/esm/collection/setting/collection-paginator/configs/uiV2.js +64 -31
  31. package/dist/esm/collection/setting/collection-toolbar/configs/settings.js +2 -2
  32. package/dist/esm/collection/setting/collection-toolbar/configs/uiV2.js +1 -1
  33. package/dist/types/index.d.ts +2 -2
  34. package/package.json +1 -1
@@ -76,21 +76,55 @@ const SettingUIV2 = [
76
76
  conditionDisplay: 'hasLineClamp == true'
77
77
  },
78
78
  {
79
+ type: 'combo',
79
80
  label: {
80
81
  en: 'Show more label'
81
82
  },
82
- setting: {
83
- id: 'viewMoreText'
83
+ iconName: 'polaris-text-block',
84
+ getValueFromSettingID: 'viewMoreText',
85
+ isHideClear: true,
86
+ disableScrollbar: true,
87
+ compoDefaultValue: 'Show more',
88
+ popoverLabel: {
89
+ en: 'Show more label'
84
90
  },
91
+ controls: [
92
+ {
93
+ layout: 'vertical',
94
+ label: {
95
+ en: 'Content'
96
+ },
97
+ setting: {
98
+ id: 'viewMoreText'
99
+ }
100
+ }
101
+ ],
85
102
  conditionDisplay: 'hasLineClamp == true'
86
103
  },
87
104
  {
105
+ type: 'combo',
88
106
  label: {
89
107
  en: 'Show less label'
90
108
  },
91
- setting: {
92
- id: 'viewLessText'
109
+ iconName: 'polaris-text-block',
110
+ getValueFromSettingID: 'viewLessText',
111
+ isHideClear: true,
112
+ disableScrollbar: true,
113
+ compoDefaultValue: 'Show more',
114
+ popoverLabel: {
115
+ en: 'Show less label'
93
116
  },
117
+ controls: [
118
+ {
119
+ layout: 'vertical',
120
+ label: {
121
+ en: 'Content'
122
+ },
123
+ setting: {
124
+ id: 'viewLessText'
125
+ }
126
+ }
127
+ ],
94
128
  conditionDisplay: 'hasLineClamp == true'
95
129
  },
96
130
  {
@@ -11,7 +11,7 @@ const CollectionPaginatorSettings = [
11
11
  controls: [
12
12
  {
13
13
  id: 'pageQuantity',
14
- type: 'input',
14
+ type: 'input:stepper',
15
15
  label: 'Page quantity',
16
16
  default: '10'
17
17
  }
@@ -99,10 +99,14 @@ const CollectionPaginatorSettings = [
99
99
  type: 'typography-v2',
100
100
  label: 'Text styles',
101
101
  default: {
102
- type: 'paragraph-1'
102
+ type: 'paragraph-1',
103
+ attrs: {
104
+ color: '#4D4D4D'
105
+ }
103
106
  },
104
107
  hiddenSetting: {
105
- color: true
108
+ textAlign: true,
109
+ textShadow: true
106
110
  },
107
111
  ignoreReRender: true
108
112
  },
@@ -1,21 +1,6 @@
1
1
  'use strict';
2
2
 
3
3
  const SettingUIV2 = [
4
- {
5
- label: {
6
- en: 'Preview mode'
7
- },
8
- controls: [
9
- {
10
- label: {
11
- en: 'Page quantity'
12
- },
13
- setting: {
14
- id: 'pageQuantity'
15
- }
16
- }
17
- ]
18
- },
19
4
  {
20
5
  label: {
21
6
  en: 'Display'
@@ -59,24 +44,73 @@ const SettingUIV2 = [
59
44
  },
60
45
  {
61
46
  label: {
62
- en: 'Text'
47
+ en: 'Preview mode'
63
48
  },
64
49
  controls: [
65
50
  {
66
51
  label: {
67
- en: 'Previous'
52
+ en: 'Page quantity'
68
53
  },
69
54
  setting: {
70
- id: 'previousText'
55
+ id: 'pageQuantity'
71
56
  }
57
+ }
58
+ ]
59
+ },
60
+ {
61
+ label: {
62
+ en: 'Text'
63
+ },
64
+ controls: [
65
+ {
66
+ type: 'combo',
67
+ label: {
68
+ en: 'Previous'
69
+ },
70
+ iconName: 'polaris-text-block',
71
+ getValueFromSettingID: 'previousText',
72
+ isHideClear: true,
73
+ disableScrollbar: true,
74
+ compoDefaultValue: 'PREVIOUS',
75
+ popoverLabel: {
76
+ en: 'Previous'
77
+ },
78
+ controls: [
79
+ {
80
+ layout: 'vertical',
81
+ label: {
82
+ en: 'Content'
83
+ },
84
+ setting: {
85
+ id: 'previousText'
86
+ }
87
+ }
88
+ ]
72
89
  },
73
90
  {
91
+ type: 'combo',
74
92
  label: {
75
93
  en: 'Next'
76
94
  },
77
- setting: {
78
- id: 'nextText'
79
- }
95
+ iconName: 'polaris-text-block',
96
+ getValueFromSettingID: 'nextText',
97
+ isHideClear: true,
98
+ disableScrollbar: true,
99
+ compoDefaultValue: 'NEXT',
100
+ popoverLabel: {
101
+ en: 'Next'
102
+ },
103
+ controls: [
104
+ {
105
+ layout: 'vertical',
106
+ label: {
107
+ en: 'Content'
108
+ },
109
+ setting: {
110
+ id: 'nextText'
111
+ }
112
+ }
113
+ ]
80
114
  }
81
115
  ]
82
116
  },
@@ -90,18 +124,17 @@ const SettingUIV2 = [
90
124
  id: 'typo'
91
125
  },
92
126
  layout: 'vertical'
93
- },
94
- {
95
- label: {
96
- en: 'Normal color'
97
- },
98
- setting: {
99
- id: 'normalColor'
100
- }
101
- },
127
+ }
128
+ ]
129
+ },
130
+ {
131
+ label: {
132
+ en: 'Active effect'
133
+ },
134
+ controls: [
102
135
  {
103
136
  label: {
104
- en: 'Active color'
137
+ en: 'Text color'
105
138
  },
106
139
  setting: {
107
140
  id: 'activeColor'
@@ -30,7 +30,7 @@ const CollectionToolbarSettings = [
30
30
  },
31
31
  {
32
32
  id: 'sortingText',
33
- label: 'Sorting text',
33
+ label: 'Option text',
34
34
  type: 'group',
35
35
  controls: [
36
36
  {
@@ -114,7 +114,7 @@ const CollectionToolbarSettings = [
114
114
  type: 'option:value',
115
115
  devices: {
116
116
  desktop: {
117
- default: 'left'
117
+ default: 'center'
118
118
  }
119
119
  },
120
120
  options: [
@@ -3,7 +3,7 @@
3
3
  const SettingUIV2 = [
4
4
  {
5
5
  label: {
6
- en: 'Sorting dropdown'
6
+ en: 'Option text'
7
7
  },
8
8
  controls: [
9
9
  {
@@ -112,6 +112,12 @@ const CarouselPreset = [
112
112
  desktop: 4,
113
113
  tablet: 2,
114
114
  mobile: 2
115
+ },
116
+ navigationStyle: {
117
+ desktop: 'outside'
118
+ },
119
+ dotStyle: {
120
+ desktop: 'outside'
115
121
  }
116
122
  },
117
123
  styles: {
@@ -226,13 +226,13 @@ const CarouselSettingsV2Setting = [
226
226
  enableTooltip: true,
227
227
  options: [
228
228
  {
229
- label: 'Display outside navigation',
229
+ label: 'Outside',
230
230
  value: 'outside',
231
231
  type: 'slide-control',
232
232
  svgName: 'gp-slide-control-outside'
233
233
  },
234
234
  {
235
- label: 'Display inside navigation',
235
+ label: 'Inside',
236
236
  value: 'inside',
237
237
  type: 'slide-control',
238
238
  svgName: 'gp-slide-control-inside'
@@ -249,7 +249,7 @@ const CarouselSettingsV2Setting = [
249
249
  type: 'icon',
250
250
  hideInput: true,
251
251
  hideLabel: true,
252
- default: `<svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
252
+ default: `<svg data-name="arrow" width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
253
253
  <path fill-rule="evenodd" clip-rule="evenodd" d="M7.62204 5.13313C7.78476 4.95562 8.04858 4.95562 8.21129 5.13313L12.378 9.67859C12.5407 9.8561 12.5407 10.1439 12.378 10.3214L8.21129 14.8669C8.04858 15.0444 7.78476 15.0444 7.62204 14.8669C7.45932 14.6894 7.45932 14.4016 7.62204 14.224L11.4941 10L7.62204 5.77596C7.45932 5.59845 7.45932 5.31064 7.62204 5.13313Z"/>
254
254
  </svg>
255
255
  `
@@ -258,7 +258,8 @@ const CarouselSettingsV2Setting = [
258
258
  id: 'arrowCustomColor',
259
259
  label: 'Icon color',
260
260
  type: 'color-picker-v2',
261
- default: '#000000'
261
+ default: '#121212',
262
+ compoDefaultValue: '#121212'
262
263
  },
263
264
  {
264
265
  id: 'arrowIconSize',
@@ -353,7 +354,8 @@ const CarouselSettingsV2Setting = [
353
354
  id: 'arrowBackgroundColor',
354
355
  label: 'Background Color',
355
356
  type: 'color-picker-v2',
356
- default: 'transparent'
357
+ default: 'transparent',
358
+ compoDefaultValue: '#E2E2E2'
357
359
  },
358
360
  {
359
361
  id: 'arrowBorder',
@@ -513,7 +515,7 @@ const CarouselSettingsV2Setting = [
513
515
  value: CAROUSEL_ANIMATION.EASE_OUT.value
514
516
  },
515
517
  {
516
- label: 'Ease in out',
518
+ label: 'Ease in & out',
517
519
  value: CAROUSEL_ANIMATION.EASE_IN_OUT.value
518
520
  }
519
521
  ]
@@ -219,14 +219,6 @@ const carouselEffectsSettings = {
219
219
  en: 'Slide effect'
220
220
  },
221
221
  controls: [
222
- {
223
- label: {
224
- en: 'Slide direction'
225
- },
226
- setting: {
227
- id: 'rtl'
228
- }
229
- },
230
222
  {
231
223
  label: {
232
224
  en: 'Autoplay'
@@ -237,7 +229,7 @@ const carouselEffectsSettings = {
237
229
  },
238
230
  {
239
231
  label: {
240
- en: 'Time out'
232
+ en: 'Delay'
241
233
  },
242
234
  setting: {
243
235
  id: 'autoplayTimeout'
@@ -255,12 +247,11 @@ const carouselEffectsSettings = {
255
247
  },
256
248
  {
257
249
  label: {
258
- en: 'Preview'
250
+ en: 'Slide direction'
259
251
  },
260
252
  setting: {
261
- id: 'runPreview'
262
- },
263
- conditionDisplay: 'autoplay === true'
253
+ id: 'rtl'
254
+ }
264
255
  },
265
256
  {
266
257
  label: {
@@ -296,6 +287,13 @@ const carouselEffectsSettings = {
296
287
  setting: {
297
288
  id: 'animationMode'
298
289
  }
290
+ },
291
+ {
292
+ setting: {
293
+ id: 'runPreview'
294
+ },
295
+ layout: 'vertical',
296
+ conditionDisplay: 'autoplay === true'
299
297
  }
300
298
  ]
301
299
  }
@@ -327,8 +325,12 @@ const SettingUIV2 = [
327
325
  setting: {
328
326
  id: 'sneakPeak'
329
327
  },
330
- fixedValue: 'Enable',
328
+ fixedValue: 'Styled',
331
329
  iconName: 'polaris-edit',
330
+ conditionEnable: 'itemNumber > 1',
331
+ options: {
332
+ disableMessage: `Sneak peek doesn't work <br> with 1-column layout`
333
+ },
332
334
  controls: [
333
335
  {
334
336
  layout: 'vertical',
@@ -506,10 +508,68 @@ const SettingUIV2 = [
506
508
  },
507
509
  controls: [
508
510
  {
509
- setting: {
510
- id: 'sizeSetting'
511
+ id: 'Width',
512
+ label: {
513
+ en: 'Width'
511
514
  },
512
- layout: 'vertical'
515
+ controlConfig: {
516
+ id: 'width',
517
+ type: 'dropdown:input',
518
+ label: 'Width',
519
+ inputType: 'number',
520
+ units: [
521
+ 'px',
522
+ '%'
523
+ ],
524
+ hideUnit: false,
525
+ fallbackValue: 'Auto',
526
+ linkWithSetting: {
527
+ name: 'sizeSetting',
528
+ field: 'width'
529
+ },
530
+ displayOptions: [
531
+ {
532
+ label: 'Default',
533
+ value: 'default',
534
+ showValue: true
535
+ },
536
+ {
537
+ label: 'Full',
538
+ value: '100%',
539
+ showValue: true
540
+ }
541
+ ]
542
+ },
543
+ layout: 'horizontal'
544
+ },
545
+ {
546
+ id: 'Height',
547
+ label: {
548
+ en: 'Height'
549
+ },
550
+ controlConfig: {
551
+ id: 'height',
552
+ type: 'dropdown:input',
553
+ label: 'height',
554
+ inputType: 'number',
555
+ units: [
556
+ 'px'
557
+ ],
558
+ hideUnit: false,
559
+ fallbackValue: 'Auto',
560
+ linkWithSetting: {
561
+ name: 'sizeSetting',
562
+ field: 'height'
563
+ },
564
+ displayOptions: [
565
+ {
566
+ label: 'Fit content',
567
+ value: 'Auto',
568
+ showValue: true
569
+ }
570
+ ]
571
+ },
572
+ layout: 'horizontal'
513
573
  },
514
574
  {
515
575
  label: {
@@ -517,7 +577,7 @@ const SettingUIV2 = [
517
577
  },
518
578
  conditionDisplay: `pageType != "POST_PURCHASE"`,
519
579
  controlConfig: {
520
- id: 'padding',
580
+ id: 'slider-padding',
521
581
  type: 'padding-v2',
522
582
  linkWithSetting: {
523
583
  name: 'spacing-setting',
@@ -1,7 +1,6 @@
1
1
  import '@gem-sdk/core';
2
2
  import { getDynamicSourceLocales } from '../../../../helpers.js';
3
3
 
4
- const getTag = (htmlTag)=>htmlTag === 'html' ? 'div' : 'p';
5
4
  const getViewMoreText = ({ setting, builderProps, pageContext, type })=>{
6
5
  if (type === 'liquid') {
7
6
  return getDynamicSourceLocales({
@@ -29,4 +28,4 @@ const getViewLessText = ({ setting, builderProps, pageContext, type })=>{
29
28
  return setting?.viewLessText;
30
29
  };
31
30
 
32
- export { getTag, getViewLessText, getViewMoreText };
31
+ export { getViewLessText, getViewMoreText };
@@ -1,4 +1,4 @@
1
- import { composeTypographyStyle, getStyleShadow, makeStyleResponsive, makeStyle, getGlobalColorStyle, getResponsiveValueByScreen } from '@gem-sdk/core';
1
+ import { composeTypographyStyle, filterTruthyStyles, getStyleShadow, makeStyleResponsive, makeStyle, getGlobalColorStyle, getResponsiveValueByScreen } from '@gem-sdk/core';
2
2
  import { DESCRIPTION_LINE_HEIGHT_DEFAULT } from './constant.js';
3
3
  import { getDisplayStyle } from '../../../../helpers.js';
4
4
 
@@ -23,9 +23,9 @@ const getMaxHeightStyleDefault = (setting)=>{
23
23
  const style = makeStyleResponsive('maxh', result);
24
24
  return style;
25
25
  };
26
- const getDefaultStyleCollectionDes = (setting)=>{
26
+ const getDefaultStyleCollectionDes = ({ setting, renderMaxHeight })=>{
27
27
  const appendTypoStyle = composeTypographyStyle(setting?.typo, setting?.typography);
28
- return {
28
+ return filterTruthyStyles({
29
29
  ...getStyleShadow({
30
30
  value: setting?.typo?.custom?.textShadow,
31
31
  styleAppliedFor: 'text-shadow',
@@ -36,8 +36,8 @@ const getDefaultStyleCollectionDes = (setting)=>{
36
36
  tt: setting?.transform
37
37
  }),
38
38
  ...appendTypoStyle,
39
- ...getMaxHeightStyleDefault(setting)
40
- };
39
+ ...renderMaxHeight && getMaxHeightStyleDefault(setting)
40
+ });
41
41
  };
42
42
  const getStyleDefaultViewMore = (setting)=>{
43
43
  const appendTypoStyle = composeTypographyStyle(setting?.typo, setting?.typography);
@@ -1,17 +1,15 @@
1
1
  'use client';
2
2
  import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
3
- import { useCollection, makeLineClamp, isSafari } from '@gem-sdk/core';
3
+ import { useCollection, makeStyleResponsive, makeLineClamp, isSafari } from '@gem-sdk/core';
4
4
  import { getDefaultStyleCollectionDes, getStyleDefaultViewMore, getStaticCss } from '../common/styles.js';
5
5
  import { getClassContainerCollectionDes, getClassButtonViewMore } from '../common/classes.js';
6
6
  import { createClass, createStyle, createAttr, If } from '@gem-sdk/system';
7
- import { getViewLessText, getViewMoreText, getTag } from '../common/index.js';
7
+ import { getViewLessText, getViewMoreText } from '../common/index.js';
8
8
  import { useGpDescription } from '../hook/useDescription.js';
9
9
  import { ICON_SVG } from '../common/constant.js';
10
10
 
11
11
  const CollectionDescription = ({ setting, builderProps, pageContext, advanced })=>{
12
12
  const collection = useCollection();
13
- const { htmlTag } = setting ?? {};
14
- const Tag = getTag(htmlTag);
15
13
  const { ref, open, isShowViewMore, handleToggleShowMore, hasLineClamp } = useGpDescription(setting);
16
14
  const hasDescriptionHtml = collection?.descriptionHtml;
17
15
  const classContainerCollectionDes = createClass(getClassContainerCollectionDes({
@@ -31,8 +29,10 @@ const CollectionDescription = ({ setting, builderProps, pageContext, advanced })
31
29
  } : {}
32
30
  });
33
31
  const collapseStyle = createStyle({
34
- ...getDefaultStyleCollectionDes(setting),
35
- ...!open ? makeLineClamp(setting?.lineClamp, setting?.hasLineClamp) : {}
32
+ ...getDefaultStyleCollectionDes({
33
+ setting
34
+ }),
35
+ ...!open ? makeStyleResponsive('line-clamp', makeLineClamp(setting?.lineClamp, setting?.hasLineClamp)) : {}
36
36
  });
37
37
  const styleViewMore = createStyle({
38
38
  ...getStyleDefaultViewMore(setting)
@@ -67,7 +67,7 @@ const CollectionDescription = ({ setting, builderProps, pageContext, advanced })
67
67
  If(!isSafari(), /*#__PURE__*/ jsx("style", {
68
68
  children: gpDescriptionCss
69
69
  }), ''),
70
- /*#__PURE__*/ jsx(Tag, {
70
+ /*#__PURE__*/ jsx("div", {
71
71
  ref: ref,
72
72
  className: classContainerCollectionDes,
73
73
  style: collapseStyle,
@@ -3,12 +3,10 @@ import { getSettingPreloadData } from '../../../../helpers.js';
3
3
  import { getDefaultStyleCollectionDes, getStyleDefaultViewMore, getDisplayCollapse, getStaticCss } from '../common/styles.js';
4
4
  import { createClass, createStyle, createAttr, createStateOrContext, If, Liquid, LiquidUnless, LiquidIf } from '@gem-sdk/system';
5
5
  import { getClassContainerCollectionDes, getClassButtonViewMore } from '../common/classes.js';
6
- import { getViewLessText, getViewMoreText, getTag } from '../common/index.js';
6
+ import { getViewLessText, getViewMoreText } from '../common/index.js';
7
7
  import { ICON_SVG } from '../common/constant.js';
8
8
 
9
9
  const CollectionDescription = ({ setting, advanced, builderProps, pageContext })=>{
10
- const { htmlTag } = setting ?? {};
11
- const Tag = getTag(htmlTag);
12
10
  const hasDescriptionHtml = 'collection.description != blank';
13
11
  const classContainerCollectionDes = createClass(getClassContainerCollectionDes({
14
12
  setting
@@ -24,12 +22,12 @@ const CollectionDescription = ({ setting, advanced, builderProps, pageContext })
24
22
  'gp-show-more-icon gp-ml-1': true
25
23
  });
26
24
  const collapseStyle = createStyle({
27
- ...getDefaultStyleCollectionDes(setting),
25
+ ...getDefaultStyleCollectionDes({
26
+ setting,
27
+ renderMaxHeight: true
28
+ }),
28
29
  ...makeStyleResponsive('line-clamp', makeLineClamp(setting?.lineClamp, setting?.hasLineClamp))
29
30
  });
30
- const defaultStyle = createStyle({
31
- ...getDefaultStyleCollectionDes(setting)
32
- });
33
31
  const styleViewMore = createStyle({
34
32
  ...getStyleDefaultViewMore(setting),
35
33
  ...getDisplayCollapse(setting),
@@ -65,7 +63,6 @@ const CollectionDescription = ({ setting, advanced, builderProps, pageContext })
65
63
  viewLessText: viewLessText,
66
64
  enableViewMoreIcon: setting?.enableViewMoreIcon
67
65
  },
68
- defaultStyle,
69
66
  collapseStyle
70
67
  });
71
68
  const renderScript = ()=>{
@@ -80,9 +77,9 @@ const CollectionDescription = ({ setting, advanced, builderProps, pageContext })
80
77
  >
81
78
  <style>${textDescriptionCss}</style>
82
79
  ${If(!isSafari(), `<style>${gpDescriptionCss}</style>`, ' ')}
83
- ${LiquidUnless('collection', `<p>Collection not found</p>`, template`<${Tag} ${textAttr} class="${classContainerCollectionDes}" style="${collapseStyle}">
80
+ ${LiquidUnless('collection', `<p>Collection not found</p>`, template`<div ${textAttr} class="${classContainerCollectionDes}" style="${collapseStyle}">
84
81
  {{collection.description}}
85
- </${Tag}>
82
+ </div>
86
83
  ${LiquidIf(hasDescriptionHtml, template`<button type="button" class="${classButtonViewMore}" style="${styleViewMore}">
87
84
  ${If(pageContext?.isPreviewing, viewMoreText?.toString() || '', `{{${viewMoreText}}}`)}
88
85
  ${If(setting?.enableViewMoreIcon, template`<span class="${showMoreIconClasses}">${ICON_SVG}</span>`, ' ')}
@@ -41,8 +41,9 @@ const renderPaginatorLive = ({ setting, builderProps, pageContext })=>{
41
41
  `;
42
42
  };
43
43
  const renderPaginatorEditor = ({ setting, builderProps, pageContext })=>{
44
- const { pageQuantity, typo, normalColor, activeColor } = setting ?? {};
44
+ const { pageQuantity, typo, activeColor } = setting ?? {};
45
45
  const paginatorItems = [];
46
+ const normalColor = typo?.attrs?.color;
46
47
  const pageCount = parseInt(pageQuantity ?? '0');
47
48
  let displayPage = 6;
48
49
  if (displayPage > pageCount) {
@@ -5,14 +5,14 @@ import { customClass, getPaginatorWrapperClass, getPaginatorClass } from '../com
5
5
  import { createStyle, createClass, createStateOrContext } from '@gem-sdk/system';
6
6
 
7
7
  const CollectionPaginator = ({ setting, builderProps, pageContext })=>{
8
- const { typographyPaginator, normalColor, activeColor, align, typo } = setting ?? {};
8
+ const { typographyPaginator, activeColor, align, typo } = setting ?? {};
9
9
  const appendTypoStyle = createStyle({
10
10
  ...composeTypographyStyle(typo, typographyPaginator)
11
11
  });
12
12
  const globalColorStyle = createStyle({
13
- normalColorClass: getGlobalColorClass('text', normalColor),
13
+ normalColorClass: getGlobalColorClass('text', typo?.attrs?.color),
14
14
  activeColorClass: getGlobalColorClass('text', activeColor),
15
- normalColorStyle: getGlobalColorCSSProp(normalColor) ?? '',
15
+ normalColorStyle: getGlobalColorCSSProp(typo?.attrs?.color) ?? '',
16
16
  activeColorStyle: getGlobalColorCSSProp(activeColor) ?? ''
17
17
  });
18
18
  const addedClass = createClass({
@@ -43,12 +43,7 @@ const CollectionPaginator = ({ setting, builderProps, pageContext })=>{
43
43
  uid: builderProps?.uid
44
44
  });
45
45
  return template`
46
- <gp-collection-paginator
47
- gp-data='${JSON.stringify(stateData).replaceAll("'", '&#039;')}'
48
- id="${builderProps?.uid}"
49
- class="${classPaginator}"
50
- style="${stylePaginator}"
51
- >
46
+ <gp-collection-paginator gp-data='${JSON.stringify(stateData).replaceAll("'", '&#039;')}' id="${builderProps?.uid}" class="${classPaginator}" style="${stylePaginator}" >
52
47
  <div class="${classPaginatorWrapper}">${paginatorItem}</div>
53
48
  </gp-collection-paginator>
54
49
  ${RenderIf(isLocalEnv, `<script ${getSettingPreloadData('class="gps-link" delay', 'src')}="{{ 'gp-collection-paginator.js' | asset_url }}" defer="defer"></script>`, `<script ${getSettingPreloadData('class="gps-link" delay', 'src')}="${baseAssetURL}/assets-v2/gp-collection-paginator.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`)}