@gem-sdk/components 2.0.0-dev.449 → 2.0.0-dev.452

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 (32) hide show
  1. package/dist/cjs/accordion/setting/configs/settings.js +8 -11
  2. package/dist/cjs/accordion/setting/configs/uiV2.js +138 -35
  3. package/dist/cjs/button/components/Button.js +1 -2
  4. package/dist/cjs/button/components/Button.liquid.js +1 -2
  5. package/dist/cjs/button/components/common/helpers.js +0 -4
  6. package/dist/cjs/button/setting/configs/settings.js +1 -2
  7. package/dist/cjs/form/setting/newsletter/NewsletterInitConfig.js +1 -1
  8. package/dist/cjs/form/setting/submit-button/configs/settings.js +69 -2
  9. package/dist/cjs/image/components/AdaptiveImage.js +2 -2
  10. package/dist/cjs/image/components/common/data.js +2 -2
  11. package/dist/cjs/product/setting/dynamic-checkout/configs/settings.js +1 -2
  12. package/dist/cjs/product/setting/product-button/configs/settings.js +2 -4
  13. package/dist/cjs/product/setting/product-view-more/configs/settings.js +1 -2
  14. package/dist/cjs/sticky/setting/preset-config.js +2 -0
  15. package/dist/cjs/third-party/components/Trustoo.liquid.js +2 -2
  16. package/dist/esm/accordion/setting/configs/settings.js +8 -11
  17. package/dist/esm/accordion/setting/configs/uiV2.js +138 -35
  18. package/dist/esm/button/components/Button.js +2 -3
  19. package/dist/esm/button/components/Button.liquid.js +2 -3
  20. package/dist/esm/button/components/common/helpers.js +1 -4
  21. package/dist/esm/button/setting/configs/settings.js +1 -2
  22. package/dist/esm/form/setting/newsletter/NewsletterInitConfig.js +1 -1
  23. package/dist/esm/form/setting/submit-button/configs/settings.js +69 -2
  24. package/dist/esm/image/components/AdaptiveImage.js +2 -2
  25. package/dist/esm/image/components/common/data.js +2 -2
  26. package/dist/esm/product/setting/dynamic-checkout/configs/settings.js +1 -2
  27. package/dist/esm/product/setting/product-button/configs/settings.js +2 -4
  28. package/dist/esm/product/setting/product-view-more/configs/settings.js +1 -2
  29. package/dist/esm/sticky/setting/preset-config.js +2 -0
  30. package/dist/esm/third-party/components/Trustoo.liquid.js +2 -2
  31. package/dist/types/index.d.ts +1 -1
  32. package/package.json +3 -3
@@ -304,10 +304,7 @@ const AccordionSettings = [
304
304
  label: 'Background Color',
305
305
  devices: {
306
306
  desktop: {
307
- default: {
308
- type: 'color',
309
- color: 'transparent'
310
- }
307
+ default: 'transparent'
311
308
  }
312
309
  }
313
310
  },
@@ -684,7 +681,12 @@ const AccordionSettings = [
684
681
  {
685
682
  id: 'align',
686
683
  label: 'Alignment',
687
- type: 'option:value',
684
+ type: 'segment',
685
+ devices: {
686
+ desktop: {
687
+ default: 'center'
688
+ }
689
+ },
688
690
  options: [
689
691
  {
690
692
  label: 'Left',
@@ -701,12 +703,7 @@ const AccordionSettings = [
701
703
  value: 'right',
702
704
  type: 'align'
703
705
  }
704
- ],
705
- devices: {
706
- desktop: {
707
- default: 'center'
708
- }
709
- }
706
+ ]
710
707
  },
711
708
  {
712
709
  id: 'hasActiveShadow',
@@ -26,31 +26,6 @@ const SettingUIV2 = [
26
26
  setting: {
27
27
  id: 'childItem'
28
28
  }
29
- },
30
- {
31
- label: {
32
- en: 'Expand mode'
33
- },
34
- setting: {
35
- id: 'expandedMode'
36
- }
37
- },
38
- {
39
- label: {
40
- en: 'Default expanded item'
41
- },
42
- setting: {
43
- id: 'expandItem'
44
- }
45
- },
46
- {
47
- label: {
48
- en: 'Select item'
49
- },
50
- setting: {
51
- id: 'activeKey'
52
- },
53
- conditionDisplay: 'expandItem === true'
54
29
  }
55
30
  ]
56
31
  },
@@ -61,14 +36,17 @@ const SettingUIV2 = [
61
36
  controls: [
62
37
  {
63
38
  label: {
64
- en: 'Gap inside'
39
+ en: 'Item gap'
65
40
  },
66
41
  controlConfig: {
67
42
  id: 'gap',
68
- type: 'input:unit',
43
+ type: 'input:slider',
69
44
  units: [
70
45
  'px'
71
46
  ],
47
+ min: 0,
48
+ max: 100,
49
+ step: 1,
72
50
  linkWithSetting: {
73
51
  name: 'contentSizePadding',
74
52
  field: 'gap'
@@ -149,6 +127,14 @@ const SettingUIV2 = [
149
127
  id: 'headerBorder',
150
128
  state: 'normal'
151
129
  }
130
+ },
131
+ {
132
+ label: {
133
+ en: 'Alignment'
134
+ },
135
+ setting: {
136
+ id: 'alignment'
137
+ }
152
138
  }
153
139
  ]
154
140
  },
@@ -180,14 +166,6 @@ const SettingUIV2 = [
180
166
  moreSettings: {
181
167
  type: 'collapse',
182
168
  controls: [
183
- {
184
- label: {
185
- en: 'Background'
186
- },
187
- setting: {
188
- id: 'backgroundContent'
189
- }
190
- },
191
169
  {
192
170
  label: {
193
171
  en: 'Border'
@@ -533,6 +511,131 @@ const SettingUIV2 = [
533
511
  }
534
512
  ]
535
513
  },
514
+ {
515
+ label: {
516
+ en: 'Background'
517
+ },
518
+ controls: [
519
+ {
520
+ label: {
521
+ en: 'Color'
522
+ },
523
+ setting: {
524
+ id: 'backgroundContent'
525
+ }
526
+ }
527
+ ]
528
+ },
529
+ {
530
+ label: {
531
+ en: 'Shape'
532
+ },
533
+ controls: [
534
+ {
535
+ label: {
536
+ en: 'Border'
537
+ },
538
+ setting: {
539
+ id: 'border',
540
+ state: 'normal'
541
+ }
542
+ },
543
+ {
544
+ label: {
545
+ en: 'Corner'
546
+ },
547
+ setting: {
548
+ id: 'rounded',
549
+ state: 'normal'
550
+ }
551
+ },
552
+ {
553
+ label: {
554
+ en: 'Shadow'
555
+ },
556
+ setting: {
557
+ id: 'boxShadow',
558
+ state: 'normal'
559
+ },
560
+ options: {
561
+ updateFields: [
562
+ {
563
+ field: 'enable',
564
+ settingId: 'hasBoxShadow',
565
+ state: 'normal'
566
+ }
567
+ ]
568
+ },
569
+ controlChangeTrigger: {
570
+ settings: [
571
+ {
572
+ condition: `boxShadow.normal.enable === true`,
573
+ source: [
574
+ 'boxShadow',
575
+ 'hasBoxShadow'
576
+ ],
577
+ action: {
578
+ controlId: 'hasBoxShadow',
579
+ groupType: 'advanced',
580
+ controlType: 'advanced',
581
+ state: 'normal',
582
+ newValue: true
583
+ }
584
+ },
585
+ {
586
+ condition: `boxShadow.normal.enable === false`,
587
+ source: [
588
+ 'boxShadow',
589
+ 'hasBoxShadow'
590
+ ],
591
+ action: {
592
+ controlId: 'hasBoxShadow',
593
+ groupType: 'advanced',
594
+ controlType: 'advanced',
595
+ state: 'normal',
596
+ newValue: false
597
+ }
598
+ }
599
+ ],
600
+ options: {
601
+ noRecordHistory: true
602
+ }
603
+ }
604
+ }
605
+ ]
606
+ },
607
+ {
608
+ label: {
609
+ en: 'Display condition'
610
+ },
611
+ controls: [
612
+ {
613
+ label: {
614
+ en: 'Expand mode'
615
+ },
616
+ setting: {
617
+ id: 'expandedMode'
618
+ }
619
+ },
620
+ {
621
+ label: {
622
+ en: 'Default expanded item'
623
+ },
624
+ setting: {
625
+ id: 'expandItem'
626
+ }
627
+ },
628
+ {
629
+ label: {
630
+ en: 'Select item'
631
+ },
632
+ setting: {
633
+ id: 'activeKey'
634
+ },
635
+ conditionDisplay: 'expandItem === true'
636
+ }
637
+ ]
638
+ },
536
639
  {
537
640
  controls: [
538
641
  {
@@ -21,13 +21,12 @@ const Button = (props)=>{
21
21
  const { enableTextStyle = true } = styles$1;
22
22
  const mode = core.useEditorMode();
23
23
  const { customCss, wrapStyle, restStyle, dataState, dataIdAttr, isShowIcon, isScrollToElement, getArialLabel, getLabelToDisplay, checkIsShowLabel, checkIsEditableLabel } = data.getData(props);
24
- const { HTMLTag, urlData, shouldRenderLink } = helpers.getInsertLinkData({
24
+ const { HTMLTag: ButtonWrapper, urlData, shouldRenderLink } = helpers.getInsertLinkData({
25
25
  enableBtnLink,
26
26
  htmlType,
27
27
  setting: btnLink,
28
28
  defaultTag: 'button'
29
29
  });
30
- const ButtonWrapper = helpers.getButtonWrapper(HTMLTag, isScrollToElement);
31
30
  const buttonStyles = system.createStyle({
32
31
  ...styles.getButtonStyles(styles$1)
33
32
  });
@@ -19,14 +19,13 @@ const Button = (props)=>{
19
19
  const { iconSvg, loading, btnLink, htmlType, disabled, shouldClearSpace, enableBtnLink } = setting;
20
20
  const { enableTextStyle = true } = styles$1;
21
21
  const { customCss, wrapStyle, restStyle, dataState, dataIdAttr, isShowIcon, isScrollToElement, getArialLabel, getLabelToDisplay, checkIsShowLabel, checkIsEditableLabel } = data.getData(props);
22
- const { HTMLTag, urlData, shouldRenderLink } = helpers.getInsertLinkData({
22
+ const { HTMLTag: ButtonWrapper, urlData, shouldRenderLink } = helpers.getInsertLinkData({
23
23
  enableBtnLink,
24
24
  htmlType,
25
25
  setting: btnLink,
26
26
  defaultTag: 'button',
27
27
  isLiquid: true
28
28
  });
29
- const ButtonWrapper = helpers.getButtonWrapper(HTMLTag, isScrollToElement);
30
29
  const buttonStyles = system.createStyle({
31
30
  ...styles.getButtonStyles(styles$1)
32
31
  });
@@ -48,9 +48,6 @@ const handleCheckIsEditableLabel = ({ mode, options, isLiquid = false })=>{
48
48
  const checkIsScrollToElement = (btnLink)=>{
49
49
  return btnLink?.link?.startsWith('#') && btnLink?.target === '_self';
50
50
  };
51
- const getButtonWrapper = (Wrap, isScrollToElement)=>{
52
- return isScrollToElement ? 'button' : Wrap;
53
- };
54
51
  const getSplitStyles = (style)=>{
55
52
  return core.splitStyle([
56
53
  'pos',
@@ -119,7 +116,6 @@ const getInsertLinkData = ({ setting, htmlType, defaultTag, enableBtnLink, isLiq
119
116
 
120
117
  exports.checkIsScrollToElement = checkIsScrollToElement;
121
118
  exports.checkIsShowIcon = checkIsShowIcon;
122
- exports.getButtonWrapper = getButtonWrapper;
123
119
  exports.getCleanedStyles = getCleanedStyles;
124
120
  exports.getDataId = getDataId;
125
121
  exports.getDataState = getDataState;
@@ -424,8 +424,7 @@ const ButtonSettings = [
424
424
  hover: 'text-3'
425
425
  }
426
426
  }
427
- },
428
- enableGradient: true
427
+ }
429
428
  },
430
429
  {
431
430
  id: 'transform',
@@ -130,7 +130,7 @@ const newsletterInitConfig = [
130
130
  {
131
131
  tag: 'SubmitButton',
132
132
  settings: {
133
- label: 'Send'
133
+ label: 'Submit'
134
134
  },
135
135
  styles: {
136
136
  globalSize: {
@@ -142,6 +142,38 @@ const SubmitButtonSettings = [
142
142
  borderWidth: '1px'
143
143
  }
144
144
  }
145
+ },
146
+ tablet: {
147
+ default: {
148
+ normal: {
149
+ border: 'solid',
150
+ color: '#121212',
151
+ width: '1px',
152
+ borderWidth: '1px'
153
+ },
154
+ hover: {
155
+ border: 'solid',
156
+ color: '#121212',
157
+ width: '1px',
158
+ borderWidth: '1px'
159
+ }
160
+ }
161
+ },
162
+ mobile: {
163
+ default: {
164
+ normal: {
165
+ border: 'solid',
166
+ color: '#121212',
167
+ width: '1px',
168
+ borderWidth: '1px'
169
+ },
170
+ hover: {
171
+ border: 'solid',
172
+ color: '#121212',
173
+ width: '1px',
174
+ borderWidth: '1px'
175
+ }
176
+ }
145
177
  }
146
178
  }
147
179
  },
@@ -186,6 +218,42 @@ const SubmitButtonSettings = [
186
218
  radiusType: 'rounded'
187
219
  }
188
220
  }
221
+ },
222
+ tablet: {
223
+ default: {
224
+ normal: {
225
+ btrr: '8px',
226
+ bblr: '8px',
227
+ bbrr: '8px',
228
+ btlr: '8px',
229
+ radiusType: 'rounded'
230
+ },
231
+ hover: {
232
+ btrr: '8px',
233
+ bblr: '8px',
234
+ bbrr: '8px',
235
+ btlr: '8px',
236
+ radiusType: 'rounded'
237
+ }
238
+ }
239
+ },
240
+ mobile: {
241
+ default: {
242
+ normal: {
243
+ btrr: '8px',
244
+ bblr: '8px',
245
+ bbrr: '8px',
246
+ btlr: '8px',
247
+ radiusType: 'rounded'
248
+ },
249
+ hover: {
250
+ btrr: '8px',
251
+ bblr: '8px',
252
+ bbrr: '8px',
253
+ btlr: '8px',
254
+ radiusType: 'rounded'
255
+ }
256
+ }
189
257
  }
190
258
  }
191
259
  },
@@ -359,8 +427,7 @@ const SubmitButtonSettings = [
359
427
  hover: 'text-3'
360
428
  }
361
429
  }
362
- },
363
- enableGradient: true
430
+ }
364
431
  },
365
432
  {
366
433
  id: 'hasBoxShadowBtn',
@@ -41,11 +41,11 @@ const AdaptiveImage = (props)=>{
41
41
  children: [
42
42
  srcMobile && /*#__PURE__*/ jsxRuntime.jsx("source", {
43
43
  media: "(max-width: 767px)",
44
- srcSet: enableLazyloadImage ? constants.IMAGE_PLACEHOLDER : srcMobile
44
+ srcSet: srcMobile || constants.IMAGE_PLACEHOLDER
45
45
  }),
46
46
  srcTablet && /*#__PURE__*/ jsxRuntime.jsx("source", {
47
47
  media: "(max-width: 1024px)",
48
- srcSet: enableLazyloadImage ? constants.IMAGE_PLACEHOLDER : srcTablet
48
+ srcSet: srcTablet || constants.IMAGE_PLACEHOLDER
49
49
  })
50
50
  ]
51
51
  });
@@ -8,8 +8,8 @@ const getAdaptiveImageData = (props)=>{
8
8
  const getDeviceSource = (props)=>{
9
9
  const { isLiquid } = props ?? {};
10
10
  const srcDesktop = getSrcSet.getImageSrc(srcSet?.desktop, 'desktop', !isLiquid) || constants.FALLBACK_IMAGE;
11
- const srcTablet = (getSrcSet.getImageSrc(srcSet?.tablet, 'tablet', !isLiquid) ?? getSrcSet.getImageSrc(srcSet?.desktop, 'tablet', !isLiquid)) || constants.FALLBACK_IMAGE;
12
- const srcMobile = (getSrcSet.getImageSrc(srcSet?.mobile, 'mobile', !isLiquid) ?? getSrcSet.getImageSrc(srcSet?.tablet, 'mobile', !isLiquid) ?? getSrcSet.getImageSrc(srcSet?.desktop, 'mobile', !isLiquid)) || constants.FALLBACK_IMAGE;
11
+ const srcTablet = getSrcSet.getImageSrc(srcSet?.tablet, 'tablet', !isLiquid) || getSrcSet.getImageSrc(srcSet?.desktop, 'tablet', !isLiquid) || constants.FALLBACK_IMAGE;
12
+ const srcMobile = getSrcSet.getImageSrc(srcSet?.mobile, 'mobile', !isLiquid) || getSrcSet.getImageSrc(srcSet?.tablet, 'mobile', !isLiquid) || getSrcSet.getImageSrc(srcSet?.desktop, 'mobile', !isLiquid) || constants.FALLBACK_IMAGE;
13
13
  return {
14
14
  srcTablet,
15
15
  srcMobile,
@@ -421,8 +421,7 @@ const DynamicCheckoutSettings = [
421
421
  hover: 'text-3'
422
422
  }
423
423
  }
424
- },
425
- enableGradient: true
424
+ }
426
425
  },
427
426
  {
428
427
  id: 'globalSize',
@@ -542,8 +542,7 @@ const ProductButtonSettings = [
542
542
  hover: '#121212'
543
543
  }
544
544
  }
545
- },
546
- enableGradient: true
545
+ }
547
546
  },
548
547
  {
549
548
  id: 'oosBackgroundV2',
@@ -582,8 +581,7 @@ const ProductButtonSettings = [
582
581
  normal: '#121212'
583
582
  }
584
583
  }
585
- },
586
- enableGradient: true
584
+ }
587
585
  },
588
586
  {
589
587
  id: 'oosBorderV2',
@@ -343,8 +343,7 @@ const ProductViewMoreSettings = [
343
343
  desktop: {
344
344
  default: {}
345
345
  }
346
- },
347
- enableGradient: true
346
+ }
348
347
  },
349
348
  {
350
349
  id: 'align',
@@ -983,11 +983,13 @@ const StickyPresetScrollToTop = {
983
983
  settings: {
984
984
  enableBtnLink: true,
985
985
  btnLink: {
986
+ type: 'scroll-to',
986
987
  link: '#scroll-to-top',
987
988
  selectedTab: 'scrollToList',
988
989
  target: '_self',
989
990
  title: 'Section'
990
991
  },
992
+ enableBtnLink: true,
991
993
  disabled: false,
992
994
  htmlType: 'button',
993
995
  iconAlign: 'left',
@@ -28,10 +28,10 @@ const Trustoo = ({ setting, advanced })=>{
28
28
  {% assign widget = '${widgetType}' %}
29
29
  {% case widget %}
30
30
  {% when "starRating" %}
31
- <div id="seal-star-rating-widget" data-star-size="16" data-font-size="14" class="vstar-star"></div>
31
+ <div id="seal-star-rating-widget" data-star-size="16" data-font-size="14" class="vstar-star gp-block"></div>
32
32
  <script ${helpers.getSettingPreloadData('class="gps-link" delay', 'src')}="https://cdn.shopify.com/extensions/da25a851-7e4c-4ab7-9a2d-0b3d699025b5/trustoo-product-ali-reviews-7/assets/star-rating-widget.min.js" defer="defer"></script>
33
33
  {% when "reviews" %}
34
- <div id="seal-review-widget"></div>
34
+ <div id="seal-review-widget" class="gp-block"></div>
35
35
  <link ${helpers.getSettingPreloadData('class="gps-link" delay', 'href')}="https://cdn.shopify.com/extensions/0519f63f-61ca-467d-975d-a60b2cc82088/7.3.0/assets/star-rating.css" rel="stylesheet" type="text/css" media="all">
36
36
  {% endcase %}
37
37
  {% endif %}
@@ -302,10 +302,7 @@ const AccordionSettings = [
302
302
  label: 'Background Color',
303
303
  devices: {
304
304
  desktop: {
305
- default: {
306
- type: 'color',
307
- color: 'transparent'
308
- }
305
+ default: 'transparent'
309
306
  }
310
307
  }
311
308
  },
@@ -682,7 +679,12 @@ const AccordionSettings = [
682
679
  {
683
680
  id: 'align',
684
681
  label: 'Alignment',
685
- type: 'option:value',
682
+ type: 'segment',
683
+ devices: {
684
+ desktop: {
685
+ default: 'center'
686
+ }
687
+ },
686
688
  options: [
687
689
  {
688
690
  label: 'Left',
@@ -699,12 +701,7 @@ const AccordionSettings = [
699
701
  value: 'right',
700
702
  type: 'align'
701
703
  }
702
- ],
703
- devices: {
704
- desktop: {
705
- default: 'center'
706
- }
707
- }
704
+ ]
708
705
  },
709
706
  {
710
707
  id: 'hasActiveShadow',
@@ -24,31 +24,6 @@ const SettingUIV2 = [
24
24
  setting: {
25
25
  id: 'childItem'
26
26
  }
27
- },
28
- {
29
- label: {
30
- en: 'Expand mode'
31
- },
32
- setting: {
33
- id: 'expandedMode'
34
- }
35
- },
36
- {
37
- label: {
38
- en: 'Default expanded item'
39
- },
40
- setting: {
41
- id: 'expandItem'
42
- }
43
- },
44
- {
45
- label: {
46
- en: 'Select item'
47
- },
48
- setting: {
49
- id: 'activeKey'
50
- },
51
- conditionDisplay: 'expandItem === true'
52
27
  }
53
28
  ]
54
29
  },
@@ -59,14 +34,17 @@ const SettingUIV2 = [
59
34
  controls: [
60
35
  {
61
36
  label: {
62
- en: 'Gap inside'
37
+ en: 'Item gap'
63
38
  },
64
39
  controlConfig: {
65
40
  id: 'gap',
66
- type: 'input:unit',
41
+ type: 'input:slider',
67
42
  units: [
68
43
  'px'
69
44
  ],
45
+ min: 0,
46
+ max: 100,
47
+ step: 1,
70
48
  linkWithSetting: {
71
49
  name: 'contentSizePadding',
72
50
  field: 'gap'
@@ -147,6 +125,14 @@ const SettingUIV2 = [
147
125
  id: 'headerBorder',
148
126
  state: 'normal'
149
127
  }
128
+ },
129
+ {
130
+ label: {
131
+ en: 'Alignment'
132
+ },
133
+ setting: {
134
+ id: 'alignment'
135
+ }
150
136
  }
151
137
  ]
152
138
  },
@@ -178,14 +164,6 @@ const SettingUIV2 = [
178
164
  moreSettings: {
179
165
  type: 'collapse',
180
166
  controls: [
181
- {
182
- label: {
183
- en: 'Background'
184
- },
185
- setting: {
186
- id: 'backgroundContent'
187
- }
188
- },
189
167
  {
190
168
  label: {
191
169
  en: 'Border'
@@ -531,6 +509,131 @@ const SettingUIV2 = [
531
509
  }
532
510
  ]
533
511
  },
512
+ {
513
+ label: {
514
+ en: 'Background'
515
+ },
516
+ controls: [
517
+ {
518
+ label: {
519
+ en: 'Color'
520
+ },
521
+ setting: {
522
+ id: 'backgroundContent'
523
+ }
524
+ }
525
+ ]
526
+ },
527
+ {
528
+ label: {
529
+ en: 'Shape'
530
+ },
531
+ controls: [
532
+ {
533
+ label: {
534
+ en: 'Border'
535
+ },
536
+ setting: {
537
+ id: 'border',
538
+ state: 'normal'
539
+ }
540
+ },
541
+ {
542
+ label: {
543
+ en: 'Corner'
544
+ },
545
+ setting: {
546
+ id: 'rounded',
547
+ state: 'normal'
548
+ }
549
+ },
550
+ {
551
+ label: {
552
+ en: 'Shadow'
553
+ },
554
+ setting: {
555
+ id: 'boxShadow',
556
+ state: 'normal'
557
+ },
558
+ options: {
559
+ updateFields: [
560
+ {
561
+ field: 'enable',
562
+ settingId: 'hasBoxShadow',
563
+ state: 'normal'
564
+ }
565
+ ]
566
+ },
567
+ controlChangeTrigger: {
568
+ settings: [
569
+ {
570
+ condition: `boxShadow.normal.enable === true`,
571
+ source: [
572
+ 'boxShadow',
573
+ 'hasBoxShadow'
574
+ ],
575
+ action: {
576
+ controlId: 'hasBoxShadow',
577
+ groupType: 'advanced',
578
+ controlType: 'advanced',
579
+ state: 'normal',
580
+ newValue: true
581
+ }
582
+ },
583
+ {
584
+ condition: `boxShadow.normal.enable === false`,
585
+ source: [
586
+ 'boxShadow',
587
+ 'hasBoxShadow'
588
+ ],
589
+ action: {
590
+ controlId: 'hasBoxShadow',
591
+ groupType: 'advanced',
592
+ controlType: 'advanced',
593
+ state: 'normal',
594
+ newValue: false
595
+ }
596
+ }
597
+ ],
598
+ options: {
599
+ noRecordHistory: true
600
+ }
601
+ }
602
+ }
603
+ ]
604
+ },
605
+ {
606
+ label: {
607
+ en: 'Display condition'
608
+ },
609
+ controls: [
610
+ {
611
+ label: {
612
+ en: 'Expand mode'
613
+ },
614
+ setting: {
615
+ id: 'expandedMode'
616
+ }
617
+ },
618
+ {
619
+ label: {
620
+ en: 'Default expanded item'
621
+ },
622
+ setting: {
623
+ id: 'expandItem'
624
+ }
625
+ },
626
+ {
627
+ label: {
628
+ en: 'Select item'
629
+ },
630
+ setting: {
631
+ id: 'activeKey'
632
+ },
633
+ conditionDisplay: 'expandItem === true'
634
+ }
635
+ ]
636
+ },
534
637
  {
535
638
  controls: [
536
639
  {
@@ -9,7 +9,7 @@ import ButtonIcon from './ButtonIcon.js';
9
9
  import ButtonLabel from './ButtonLabel.js';
10
10
  import ButtonLoadingIndicator from './ButtonLoadingIndicator.js';
11
11
  import { getData } from './common/data.js';
12
- import { getInsertLinkData, getButtonWrapper } from './common/helpers.js';
12
+ import { getInsertLinkData } from './common/helpers.js';
13
13
 
14
14
  const Button = (props)=>{
15
15
  const { children, advanced, className, nodePrice, customAttrs, styles = {}, setting = {}, builderProps, builderAttrs, wrapClassName = '', onClick } = props;
@@ -17,13 +17,12 @@ const Button = (props)=>{
17
17
  const { enableTextStyle = true } = styles;
18
18
  const mode = useEditorMode();
19
19
  const { customCss, wrapStyle, restStyle, dataState, dataIdAttr, isShowIcon, isScrollToElement, getArialLabel, getLabelToDisplay, checkIsShowLabel, checkIsEditableLabel } = getData(props);
20
- const { HTMLTag, urlData, shouldRenderLink } = getInsertLinkData({
20
+ const { HTMLTag: ButtonWrapper, urlData, shouldRenderLink } = getInsertLinkData({
21
21
  enableBtnLink,
22
22
  htmlType,
23
23
  setting: btnLink,
24
24
  defaultTag: 'button'
25
25
  });
26
- const ButtonWrapper = getButtonWrapper(HTMLTag, isScrollToElement);
27
26
  const buttonStyles = createStyle({
28
27
  ...getButtonStyles(styles)
29
28
  });
@@ -8,21 +8,20 @@ import ButtonIcon from './ButtonIcon.liquid.js';
8
8
  import ButtonLabel from './ButtonLabel.liquid.js';
9
9
  import ButtonLoadingIndicator from './ButtonLoadingIndicator.liquid.js';
10
10
  import { getData } from './common/data.js';
11
- import { getInsertLinkData, getButtonWrapper } from './common/helpers.js';
11
+ import { getInsertLinkData } from './common/helpers.js';
12
12
 
13
13
  const Button = (props)=>{
14
14
  const { advanced, className, nodePrice, customAttrs, styles = {}, setting = {}, builderProps, wrapClassName = '' } = props;
15
15
  const { iconSvg, loading, btnLink, htmlType, disabled, shouldClearSpace, enableBtnLink } = setting;
16
16
  const { enableTextStyle = true } = styles;
17
17
  const { customCss, wrapStyle, restStyle, dataState, dataIdAttr, isShowIcon, isScrollToElement, getArialLabel, getLabelToDisplay, checkIsShowLabel, checkIsEditableLabel } = getData(props);
18
- const { HTMLTag, urlData, shouldRenderLink } = getInsertLinkData({
18
+ const { HTMLTag: ButtonWrapper, urlData, shouldRenderLink } = getInsertLinkData({
19
19
  enableBtnLink,
20
20
  htmlType,
21
21
  setting: btnLink,
22
22
  defaultTag: 'button',
23
23
  isLiquid: true
24
24
  });
25
- const ButtonWrapper = getButtonWrapper(HTMLTag, isScrollToElement);
26
25
  const buttonStyles = createStyle({
27
26
  ...getButtonStyles(styles)
28
27
  });
@@ -46,9 +46,6 @@ const handleCheckIsEditableLabel = ({ mode, options, isLiquid = false })=>{
46
46
  const checkIsScrollToElement = (btnLink)=>{
47
47
  return btnLink?.link?.startsWith('#') && btnLink?.target === '_self';
48
48
  };
49
- const getButtonWrapper = (Wrap, isScrollToElement)=>{
50
- return isScrollToElement ? 'button' : Wrap;
51
- };
52
49
  const getSplitStyles = (style)=>{
53
50
  return splitStyle([
54
51
  'pos',
@@ -115,4 +112,4 @@ const getInsertLinkData = ({ setting, htmlType, defaultTag, enableBtnLink, isLiq
115
112
  };
116
113
  };
117
114
 
118
- export { checkIsScrollToElement, checkIsShowIcon, getButtonWrapper, getCleanedStyles, getDataId, getDataState, getInsertLinkData, getSplitStyles, handleCheckIsEditableLabel, handleCheckIsShowLabel, handleGetArialLabel, handleGetLabelToDisplay };
115
+ export { checkIsScrollToElement, checkIsShowIcon, getCleanedStyles, getDataId, getDataState, getInsertLinkData, getSplitStyles, handleCheckIsEditableLabel, handleCheckIsShowLabel, handleGetArialLabel, handleGetLabelToDisplay };
@@ -422,8 +422,7 @@ const ButtonSettings = [
422
422
  hover: 'text-3'
423
423
  }
424
424
  }
425
- },
426
- enableGradient: true
425
+ }
427
426
  },
428
427
  {
429
428
  id: 'transform',
@@ -128,7 +128,7 @@ const newsletterInitConfig = [
128
128
  {
129
129
  tag: 'SubmitButton',
130
130
  settings: {
131
- label: 'Send'
131
+ label: 'Submit'
132
132
  },
133
133
  styles: {
134
134
  globalSize: {
@@ -138,6 +138,38 @@ const SubmitButtonSettings = [
138
138
  borderWidth: '1px'
139
139
  }
140
140
  }
141
+ },
142
+ tablet: {
143
+ default: {
144
+ normal: {
145
+ border: 'solid',
146
+ color: '#121212',
147
+ width: '1px',
148
+ borderWidth: '1px'
149
+ },
150
+ hover: {
151
+ border: 'solid',
152
+ color: '#121212',
153
+ width: '1px',
154
+ borderWidth: '1px'
155
+ }
156
+ }
157
+ },
158
+ mobile: {
159
+ default: {
160
+ normal: {
161
+ border: 'solid',
162
+ color: '#121212',
163
+ width: '1px',
164
+ borderWidth: '1px'
165
+ },
166
+ hover: {
167
+ border: 'solid',
168
+ color: '#121212',
169
+ width: '1px',
170
+ borderWidth: '1px'
171
+ }
172
+ }
141
173
  }
142
174
  }
143
175
  },
@@ -182,6 +214,42 @@ const SubmitButtonSettings = [
182
214
  radiusType: 'rounded'
183
215
  }
184
216
  }
217
+ },
218
+ tablet: {
219
+ default: {
220
+ normal: {
221
+ btrr: '8px',
222
+ bblr: '8px',
223
+ bbrr: '8px',
224
+ btlr: '8px',
225
+ radiusType: 'rounded'
226
+ },
227
+ hover: {
228
+ btrr: '8px',
229
+ bblr: '8px',
230
+ bbrr: '8px',
231
+ btlr: '8px',
232
+ radiusType: 'rounded'
233
+ }
234
+ }
235
+ },
236
+ mobile: {
237
+ default: {
238
+ normal: {
239
+ btrr: '8px',
240
+ bblr: '8px',
241
+ bbrr: '8px',
242
+ btlr: '8px',
243
+ radiusType: 'rounded'
244
+ },
245
+ hover: {
246
+ btrr: '8px',
247
+ bblr: '8px',
248
+ bbrr: '8px',
249
+ btlr: '8px',
250
+ radiusType: 'rounded'
251
+ }
252
+ }
185
253
  }
186
254
  }
187
255
  },
@@ -355,8 +423,7 @@ const SubmitButtonSettings = [
355
423
  hover: 'text-3'
356
424
  }
357
425
  }
358
- },
359
- enableGradient: true
426
+ }
360
427
  },
361
428
  {
362
429
  id: 'hasBoxShadowBtn',
@@ -37,11 +37,11 @@ const AdaptiveImage = (props)=>{
37
37
  children: [
38
38
  srcMobile && /*#__PURE__*/ jsx("source", {
39
39
  media: "(max-width: 767px)",
40
- srcSet: enableLazyloadImage ? IMAGE_PLACEHOLDER : srcMobile
40
+ srcSet: srcMobile || IMAGE_PLACEHOLDER
41
41
  }),
42
42
  srcTablet && /*#__PURE__*/ jsx("source", {
43
43
  media: "(max-width: 1024px)",
44
- srcSet: enableLazyloadImage ? IMAGE_PLACEHOLDER : srcTablet
44
+ srcSet: srcTablet || IMAGE_PLACEHOLDER
45
45
  })
46
46
  ]
47
47
  });
@@ -6,8 +6,8 @@ const getAdaptiveImageData = (props)=>{
6
6
  const getDeviceSource = (props)=>{
7
7
  const { isLiquid } = props ?? {};
8
8
  const srcDesktop = getImageSrc(srcSet?.desktop, 'desktop', !isLiquid) || FALLBACK_IMAGE;
9
- const srcTablet = (getImageSrc(srcSet?.tablet, 'tablet', !isLiquid) ?? getImageSrc(srcSet?.desktop, 'tablet', !isLiquid)) || FALLBACK_IMAGE;
10
- const srcMobile = (getImageSrc(srcSet?.mobile, 'mobile', !isLiquid) ?? getImageSrc(srcSet?.tablet, 'mobile', !isLiquid) ?? getImageSrc(srcSet?.desktop, 'mobile', !isLiquid)) || FALLBACK_IMAGE;
9
+ const srcTablet = getImageSrc(srcSet?.tablet, 'tablet', !isLiquid) || getImageSrc(srcSet?.desktop, 'tablet', !isLiquid) || FALLBACK_IMAGE;
10
+ const srcMobile = getImageSrc(srcSet?.mobile, 'mobile', !isLiquid) || getImageSrc(srcSet?.tablet, 'mobile', !isLiquid) || getImageSrc(srcSet?.desktop, 'mobile', !isLiquid) || FALLBACK_IMAGE;
11
11
  return {
12
12
  srcTablet,
13
13
  srcMobile,
@@ -419,8 +419,7 @@ const DynamicCheckoutSettings = [
419
419
  hover: 'text-3'
420
420
  }
421
421
  }
422
- },
423
- enableGradient: true
422
+ }
424
423
  },
425
424
  {
426
425
  id: 'globalSize',
@@ -540,8 +540,7 @@ const ProductButtonSettings = [
540
540
  hover: '#121212'
541
541
  }
542
542
  }
543
- },
544
- enableGradient: true
543
+ }
545
544
  },
546
545
  {
547
546
  id: 'oosBackgroundV2',
@@ -580,8 +579,7 @@ const ProductButtonSettings = [
580
579
  normal: '#121212'
581
580
  }
582
581
  }
583
- },
584
- enableGradient: true
582
+ }
585
583
  },
586
584
  {
587
585
  id: 'oosBorderV2',
@@ -341,8 +341,7 @@ const ProductViewMoreSettings = [
341
341
  desktop: {
342
342
  default: {}
343
343
  }
344
- },
345
- enableGradient: true
344
+ }
346
345
  },
347
346
  {
348
347
  id: 'align',
@@ -981,11 +981,13 @@ const StickyPresetScrollToTop = {
981
981
  settings: {
982
982
  enableBtnLink: true,
983
983
  btnLink: {
984
+ type: 'scroll-to',
984
985
  link: '#scroll-to-top',
985
986
  selectedTab: 'scrollToList',
986
987
  target: '_self',
987
988
  title: 'Section'
988
989
  },
990
+ enableBtnLink: true,
989
991
  disabled: false,
990
992
  htmlType: 'button',
991
993
  iconAlign: 'left',
@@ -24,10 +24,10 @@ const Trustoo = ({ setting, advanced })=>{
24
24
  {% assign widget = '${widgetType}' %}
25
25
  {% case widget %}
26
26
  {% when "starRating" %}
27
- <div id="seal-star-rating-widget" data-star-size="16" data-font-size="14" class="vstar-star"></div>
27
+ <div id="seal-star-rating-widget" data-star-size="16" data-font-size="14" class="vstar-star gp-block"></div>
28
28
  <script ${getSettingPreloadData('class="gps-link" delay', 'src')}="https://cdn.shopify.com/extensions/da25a851-7e4c-4ab7-9a2d-0b3d699025b5/trustoo-product-ali-reviews-7/assets/star-rating-widget.min.js" defer="defer"></script>
29
29
  {% when "reviews" %}
30
- <div id="seal-review-widget"></div>
30
+ <div id="seal-review-widget" class="gp-block"></div>
31
31
  <link ${getSettingPreloadData('class="gps-link" delay', 'href')}="https://cdn.shopify.com/extensions/0519f63f-61ca-467d-975d-a60b2cc82088/7.3.0/assets/star-rating.css" rel="stylesheet" type="text/css" media="all">
32
32
  {% endcase %}
33
33
  {% endif %}
@@ -41,7 +41,7 @@ type AccordionProps = BaseProps<{
41
41
  width?: ObjectDevices$1<string | number | undefined>;
42
42
  itemHeaderSpacing?: SizeSetting;
43
43
  itemContentSpacing?: SizeSetting;
44
- backgroundContent?: ObjectDevices$1<Background>;
44
+ backgroundContent?: ObjectDevices$1<ColorValueType$1>;
45
45
  roundedContent?: CornerRadius;
46
46
  borderContent?: Border;
47
47
  contentSizePadding?: ObjectDevices$1<SizeSettingGlobal>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-dev.449",
3
+ "version": "2.0.0-dev.452",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",
@@ -23,9 +23,9 @@
23
23
  "update-img-src-3rd": "node ./scripts/update-img-src-3rd.js"
24
24
  },
25
25
  "devDependencies": {
26
- "@gem-sdk/core": "2.0.0-dev.435",
26
+ "@gem-sdk/core": "2.0.0-dev.451",
27
27
  "@gem-sdk/styles": "2.0.0-dev.381",
28
- "@gem-sdk/system": "2.0.0-dev.439",
28
+ "@gem-sdk/system": "2.0.0-dev.451",
29
29
  "@types/react-transition-group": "^4.4.5"
30
30
  },
31
31
  "dependencies": {