@gem-sdk/components 2.0.0-dev.495 → 2.0.0-dev.497

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 (50) hide show
  1. package/dist/cjs/banner/components/common/getStyle.js +2 -2
  2. package/dist/cjs/banner/setting/presets/heroBannerContentLeft.js +3 -3
  3. package/dist/cjs/banner/setting/presets/heroBannerContentRight.js +3 -3
  4. package/dist/cjs/banner/setting/uiV2.js +1 -2
  5. package/dist/cjs/button/components/common/styles.js +32 -6
  6. package/dist/cjs/estimate-delivery/components/EstimateDate.js +2 -2
  7. package/dist/cjs/estimate-delivery/setting/configs/settings.js +6 -0
  8. package/dist/cjs/estimate-delivery/setting/configs/uiV2.js +14 -3
  9. package/dist/cjs/form/components/contact/common/composeStyles.js +3 -1
  10. package/dist/cjs/form/components/newsletter/Newsletter.liquid.js +1 -1
  11. package/dist/cjs/form/setting/contact/configs/settings.js +0 -12
  12. package/dist/cjs/form/setting/contact/configs/uiV2.js +4 -8
  13. package/dist/cjs/form/setting/newsletter/configs/settings.js +2 -8
  14. package/dist/cjs/form/setting/newsletter/configs/uiV2.js +5 -9
  15. package/dist/cjs/icon-list/common/styles.js +1 -0
  16. package/dist/cjs/icon-list/setting/IconList.js +6 -6
  17. package/dist/cjs/icon-list/setting/configs/settings.js +4 -10
  18. package/dist/cjs/icon-list/setting/configs/uiV2.js +4 -4
  19. package/dist/cjs/image-comparison/components/common/styles.js +19 -5
  20. package/dist/cjs/image-comparison/setting/configs/settings.js +49 -16
  21. package/dist/cjs/product/components/ProductButton/ProductButton.liquid.js +2 -1
  22. package/dist/cjs/product/components/ProductButton/components/AddToCartButton.liquid.js +1 -0
  23. package/dist/cjs/product/components/ProductButton/components/SoldOutButton.liquid.js +1 -0
  24. package/dist/cjs/product/setting/product-view-more/configs/uiV2.js +1 -1
  25. package/dist/esm/banner/components/common/getStyle.js +2 -2
  26. package/dist/esm/banner/setting/presets/heroBannerContentLeft.js +3 -3
  27. package/dist/esm/banner/setting/presets/heroBannerContentRight.js +3 -3
  28. package/dist/esm/banner/setting/uiV2.js +1 -2
  29. package/dist/esm/button/components/common/styles.js +32 -6
  30. package/dist/esm/estimate-delivery/components/EstimateDate.js +2 -2
  31. package/dist/esm/estimate-delivery/setting/configs/settings.js +6 -0
  32. package/dist/esm/estimate-delivery/setting/configs/uiV2.js +14 -3
  33. package/dist/esm/form/components/contact/common/composeStyles.js +3 -1
  34. package/dist/esm/form/components/newsletter/Newsletter.liquid.js +1 -1
  35. package/dist/esm/form/setting/contact/configs/settings.js +0 -12
  36. package/dist/esm/form/setting/contact/configs/uiV2.js +4 -8
  37. package/dist/esm/form/setting/newsletter/configs/settings.js +2 -8
  38. package/dist/esm/form/setting/newsletter/configs/uiV2.js +5 -9
  39. package/dist/esm/icon-list/common/styles.js +1 -0
  40. package/dist/esm/icon-list/setting/IconList.js +6 -6
  41. package/dist/esm/icon-list/setting/configs/settings.js +4 -10
  42. package/dist/esm/icon-list/setting/configs/uiV2.js +4 -4
  43. package/dist/esm/image-comparison/components/common/styles.js +20 -6
  44. package/dist/esm/image-comparison/setting/configs/settings.js +49 -16
  45. package/dist/esm/product/components/ProductButton/ProductButton.liquid.js +3 -2
  46. package/dist/esm/product/components/ProductButton/components/AddToCartButton.liquid.js +1 -0
  47. package/dist/esm/product/components/ProductButton/components/SoldOutButton.liquid.js +1 -0
  48. package/dist/esm/product/setting/product-view-more/configs/uiV2.js +1 -1
  49. package/dist/types/index.d.ts +4 -3
  50. package/package.json +2 -2
@@ -49,14 +49,14 @@ const getContainerStyle = (styles, setting)=>{
49
49
  return filterTruthyStyles(composeStyles);
50
50
  };
51
51
  const getOverlayStyle = (styles)=>{
52
- const { overlayColor, overlayOpacity } = styles ?? {};
52
+ const { overlayColor, overlayOpacity, hoverEffect } = styles ?? {};
53
53
  const bgcColor = core.getGlobalColorStateStyle('bgc', overlayColor);
54
54
  const opacityColor = core.makeStyleState('op', overlayOpacity);
55
55
  if (!overlayColor?.normal || overlayOpacity?.normal == '0%') {
56
56
  delete bgcColor?.['--bgc'];
57
57
  delete opacityColor?.['--op'];
58
58
  }
59
- if (!overlayColor?.hover || overlayOpacity?.hover == '0%') {
59
+ if (!overlayColor?.hover || overlayOpacity?.hover == '0%' || !hoverEffect) {
60
60
  delete bgcColor?.['--hvr-bgc'];
61
61
  delete opacityColor?.['--hvr-op'];
62
62
  }
@@ -79,7 +79,7 @@ const heroBannerContentLeft = {
79
79
  },
80
80
  styles: {
81
81
  textAlign: {
82
- desktop: 'left'
82
+ desktop: 'center'
83
83
  },
84
84
  typo: {
85
85
  attrs: {
@@ -105,7 +105,7 @@ const heroBannerContentLeft = {
105
105
  },
106
106
  styles: {
107
107
  textAlign: {
108
- desktop: 'left'
108
+ desktop: 'center'
109
109
  },
110
110
  typo: {
111
111
  attrs: {
@@ -130,7 +130,7 @@ const heroBannerContentLeft = {
130
130
  },
131
131
  styles: {
132
132
  align: {
133
- desktop: 'left'
133
+ desktop: 'center'
134
134
  }
135
135
  }
136
136
  }
@@ -87,7 +87,7 @@ const heroBannerContentRight = {
87
87
  },
88
88
  styles: {
89
89
  textAlign: {
90
- desktop: 'left'
90
+ desktop: 'center'
91
91
  },
92
92
  typo: {
93
93
  attrs: {
@@ -113,7 +113,7 @@ const heroBannerContentRight = {
113
113
  },
114
114
  styles: {
115
115
  textAlign: {
116
- desktop: 'left'
116
+ desktop: 'center'
117
117
  },
118
118
  typo: {
119
119
  attrs: {
@@ -138,7 +138,7 @@ const heroBannerContentRight = {
138
138
  },
139
139
  styles: {
140
140
  align: {
141
- desktop: 'left'
141
+ desktop: 'center'
142
142
  }
143
143
  }
144
144
  }
@@ -253,7 +253,7 @@ const SettingUIV2 = [
253
253
  fixedValue: 'Effect',
254
254
  iconName: 'polaris-check-clicked',
255
255
  label: {
256
- en: 'Hover'
256
+ en: 'Hover effect'
257
257
  },
258
258
  setting: {
259
259
  id: 'hoverEffect'
@@ -333,7 +333,6 @@ const SettingUIV2 = [
333
333
  label: {
334
334
  en: 'Speed'
335
335
  },
336
- layout: 'vertical',
337
336
  setting: {
338
337
  id: 'speedParallax'
339
338
  }
@@ -26,8 +26,8 @@ const getButtonIconStyles = (styles, settings)=>{
26
26
  };
27
27
  };
28
28
  const isEnableShadowStateForDevice = (deviceStyles)=>({
29
- normal: deviceStyles?.normal?.enable,
30
- hover: deviceStyles?.hover?.enable
29
+ normal: deviceStyles?.normal?.type !== 'none',
30
+ hover: deviceStyles?.hover?.type !== 'none'
31
31
  });
32
32
  const getShadowStyles = (styles)=>{
33
33
  const { boxShadowBtnV2 } = styles || {};
@@ -138,14 +138,40 @@ const getCustomCssStyles = ({ styles, uid, builderAttrs })=>{
138
138
  };
139
139
  const generateBorderCornerStyles = ({ uid, device, borderBtn, roundedBtn, builderAttrs })=>{
140
140
  const tag = builderAttrs?.['data-component-tag'];
141
+ const getResponsiveStyles = ({ styleObj, state })=>{
142
+ if (!styleObj) return undefined;
143
+ if (device === 'mobile') {
144
+ return styleObj.mobile?.[state] || styleObj.tablet?.[state] || styleObj.desktop?.[state];
145
+ }
146
+ if (device === 'tablet') {
147
+ return styleObj.tablet?.[state] || styleObj.desktop?.[state];
148
+ }
149
+ return styleObj.desktop?.[state];
150
+ };
151
+ const normalBorder = getResponsiveStyles({
152
+ styleObj: borderBtn,
153
+ state: 'normal'
154
+ });
155
+ const hoverBorder = getResponsiveStyles({
156
+ styleObj: borderBtn,
157
+ state: 'hover'
158
+ });
159
+ const normalCorner = getResponsiveStyles({
160
+ styleObj: roundedBtn,
161
+ state: 'normal'
162
+ });
163
+ const hoverCorner = getResponsiveStyles({
164
+ styleObj: roundedBtn,
165
+ state: 'hover'
166
+ });
141
167
  const baseStyle = `
142
168
  content: "";
143
169
  height: 100%;
144
170
  width: 100%;
145
171
  position: absolute;
146
172
  pointer-events: none;
147
- ${core.composeBorderCss(borderBtn?.[device]?.normal)}
148
- ${core.composeCornerCss(roundedBtn?.[device]?.normal)}
173
+ ${core.composeBorderCss(normalBorder)}
174
+ ${core.composeCornerCss(normalCorner)}
149
175
  `;
150
176
  let normalStyles = `
151
177
  .${uid}.gp-button-base::before {
@@ -161,8 +187,8 @@ const generateBorderCornerStyles = ({ uid, device, borderBtn, roundedBtn, builde
161
187
  }
162
188
  const hoverStyles = `
163
189
  .${uid}:hover::before {
164
- ${core.composeBorderCss(borderBtn?.[device]?.hover)}
165
- ${core.composeCornerCss(roundedBtn?.[device]?.hover)}
190
+ ${core.composeBorderCss(hoverBorder)}
191
+ ${core.composeCornerCss(hoverCorner)}
166
192
  }
167
193
  `;
168
194
  return {
@@ -51,7 +51,7 @@ const EstimateDate = ({ setting, styles, builderAttrs, style, builderProps, adva
51
51
  align: styles?.align
52
52
  },
53
53
  setting: {
54
- text: `${TextInline.default({
54
+ text: `${setting?.enableCustomText ? TextInline.default({
55
55
  styles: {
56
56
  align: styles?.align,
57
57
  typo: styles?.typoCustom
@@ -59,7 +59,7 @@ const EstimateDate = ({ setting, styles, builderAttrs, style, builderProps, adva
59
59
  setting: {
60
60
  text: setting?.customText
61
61
  }
62
- })} ${TextInline.default({
62
+ }) : ''} ${TextInline.default({
63
63
  styles: {
64
64
  align: styles?.align,
65
65
  typo: styles?.typoDate
@@ -6,6 +6,12 @@ const EstimateDateSettings = [
6
6
  {
7
7
  id: 'setting',
8
8
  controls: [
9
+ {
10
+ id: 'enableCustomText',
11
+ label: '',
12
+ type: 'toggle',
13
+ default: true
14
+ },
9
15
  {
10
16
  id: 'customTextContainer',
11
17
  type: 'group',
@@ -86,10 +86,19 @@ const SettingUIV2 = [
86
86
  ]
87
87
  },
88
88
  {
89
- label: {
90
- en: 'Custom text'
91
- },
92
89
  controls: [
90
+ {
91
+ label: {
92
+ en: 'Custom text'
93
+ },
94
+ setting: {
95
+ id: 'enableCustomText'
96
+ },
97
+ options: {
98
+ labelVariant: 'primary',
99
+ toggleStyle: 'switch'
100
+ }
101
+ },
93
102
  {
94
103
  type: 'combo',
95
104
  label: {
@@ -99,6 +108,7 @@ const SettingUIV2 = [
99
108
  fixedValue: 'Estimate delivery between',
100
109
  getValueFromSettingID: 'customText',
101
110
  isHideClear: true,
111
+ conditionDisplay: 'enableCustomText === true',
102
112
  controls: [
103
113
  {
104
114
  label: {
@@ -112,6 +122,7 @@ const SettingUIV2 = [
112
122
  ]
113
123
  },
114
124
  {
125
+ conditionDisplay: 'enableCustomText === true',
115
126
  setting: {
116
127
  id: 'typoCustom'
117
128
  },
@@ -7,7 +7,9 @@ const composeStyles = (styles)=>common.filterTruthy(styles);
7
7
  const composeContainerStyles = (setting, styles, style)=>{
8
8
  const { background } = setting ?? {};
9
9
  const { globalSize } = styles ?? {};
10
- const composeGlobalSize = core.makeGlobalSize(globalSize);
10
+ const composeGlobalSize = core.makeGlobalSize({
11
+ ...globalSize
12
+ });
11
13
  return composeStyles({
12
14
  ...composeGlobalSize?.width?.['--w'] ? composeGlobalSize.width : {
13
15
  '--w': '100%'
@@ -24,7 +24,7 @@ const Newsletter = ({ builderProps, setting, children, style, formType, advanced
24
24
  uid: builderProps?.uid,
25
25
  settingId: 'successMessage',
26
26
  pageContext,
27
- defaultVal: pageContext?.isPreviewing ? `Thanks for contacting us. We'll get back to you as soon as possible.` : helpers.getStaticLocale('Newsletter', 'success_msg_default'),
27
+ defaultVal: pageContext?.isPreviewing ? `Thanks for subscribing` : helpers.getStaticLocale('Newsletter', 'success_msg_default'),
28
28
  translate: setting?.translate
29
29
  });
30
30
  const containerAttrs = composeAttrs.composeContainerAttrs(builderProps, setting);
@@ -6,12 +6,6 @@ const ContactSettings = [
6
6
  {
7
7
  id: 'setting',
8
8
  controls: [
9
- {
10
- id: 'contentBanner',
11
- type: 'banner',
12
- message: `This element sends submissions to <a class="no-underline text-primary-250" target="_blank" href="https://help.shopify.com/en/manual/customers/manage-customers#email-customers">the sender email address</a>`,
13
- closable: true
14
- },
15
9
  {
16
10
  id: 'callbackURL',
17
11
  type: 'pick-link',
@@ -23,12 +17,6 @@ const ContactSettings = [
23
17
  type: 'stay-on-page',
24
18
  link: '',
25
19
  target: '_self'
26
- },
27
- hiddenOptions: {
28
- 'scroll-to': true,
29
- 'open-popup': true,
30
- 'send-email': true,
31
- 'call-phone': true
32
20
  }
33
21
  },
34
22
  {
@@ -2,14 +2,10 @@
2
2
 
3
3
  const SettingUIV2 = [
4
4
  {
5
- controls: [
6
- {
7
- setting: {
8
- id: 'contentBanner'
9
- },
10
- layout: 'vertical'
11
- }
12
- ]
5
+ messageConfig: {
6
+ type: 'info',
7
+ message: `This element sends submissions to <a class="no-underline text-primary-250" target="_blank" href="https://help.shopify.com/en/manual/customers/manage-customers#email-customers">the sender email address</a>`
8
+ }
13
9
  },
14
10
  {
15
11
  label: {
@@ -6,12 +6,6 @@ const NewsletterSettings = [
6
6
  {
7
7
  id: 'setting',
8
8
  controls: [
9
- {
10
- id: 'contentBanner',
11
- type: 'banner',
12
- message: `You can manage collected email in <a class="no-underline text-primary-250" target="_blank" href="https://admin.shopify.com/customers">Customers</a>`,
13
- closable: true
14
- },
15
9
  {
16
10
  id: 'afterSubmitAction',
17
11
  type: 'select',
@@ -44,10 +38,10 @@ const NewsletterSettings = [
44
38
  id: 'successMessage',
45
39
  type: 'textarea',
46
40
  label: 'Success Message',
47
- default: "Thanks for contacting us. We'll get back to you as soon as possible.",
41
+ default: 'Thanks for subscribing',
48
42
  autoHeight: true,
49
43
  minHeight: 58,
50
- compoDefaultValue: "Thanks for contacting us. We'll get back to you as soon as possible."
44
+ compoDefaultValue: 'Thanks for subscribing'
51
45
  },
52
46
  {
53
47
  id: 'successColor',
@@ -2,14 +2,10 @@
2
2
 
3
3
  const SettingUIV2 = [
4
4
  {
5
- controls: [
6
- {
7
- setting: {
8
- id: 'contentBanner'
9
- },
10
- layout: 'vertical'
11
- }
12
- ]
5
+ messageConfig: {
6
+ type: 'info',
7
+ message: `You can manage collected email in <a class="no-underline text-primary-250" target="_blank" href="https://admin.shopify.com/customers">Customers</a>`
8
+ }
13
9
  },
14
10
  {
15
11
  label: {
@@ -25,7 +21,7 @@ const SettingUIV2 = [
25
21
  getValueFromSettingID: 'successMessage',
26
22
  isHideClear: true,
27
23
  disableScrollbar: true,
28
- compoDefaultValue: "Thanks for contacting us. We'll get back to you as soon as possible.",
24
+ compoDefaultValue: 'Thanks for subscribing',
29
25
  popoverLabel: {
30
26
  en: 'Success message'
31
27
  },
@@ -25,6 +25,7 @@ const getItemStyles = (parentStyles)=>{
25
25
  ...core.composeRadiusResponsive(parentStyles?.itemRounded),
26
26
  ...core.composeBorderResponsive(parentStyles?.itemBorder),
27
27
  ...core.getGlobalColorResponsiveStyle('bgc', parentStyles?.itemBackgroundColor),
28
+ ...core.getGlobalColorResponsiveStyle('bgi', parentStyles?.itemBackgroundColor),
28
29
  ...core.makeStyleResponsive('cg', parentStyles?.horizontalSpacing)
29
30
  };
30
31
  };
@@ -52,9 +52,9 @@ const config = {
52
52
  tag: 'IconList',
53
53
  settings: {
54
54
  childItem: [
55
- 'Icon 1',
56
- 'Icon 2',
57
- 'Icon 3'
55
+ 'Item 1',
56
+ 'Item 2',
57
+ 'Item 3'
58
58
  ],
59
59
  presetId: 'icon-list-ver1-1-text'
60
60
  },
@@ -122,9 +122,9 @@ const config = {
122
122
  tag: 'IconList',
123
123
  settings: {
124
124
  childItem: [
125
- 'Icon 1',
126
- 'Icon 2',
127
- 'Icon 3'
125
+ 'Item 1',
126
+ 'Item 2',
127
+ 'Item 3'
128
128
  ],
129
129
  presetId: 'icon-list-ver1-2-image'
130
130
  },
@@ -11,9 +11,9 @@ const IconListSettings = [
11
11
  label: 'Item management',
12
12
  type: 'child-item',
13
13
  default: [
14
- 'Icon 1',
15
- 'Icon 2',
16
- 'Icon 3'
14
+ 'Item 1',
15
+ 'Item 2',
16
+ 'Item 3'
17
17
  ],
18
18
  childTemplate: {
19
19
  default: ItemTemplate.itemControlTemplate,
@@ -148,13 +148,7 @@ const IconListSettings = [
148
148
  devices: {
149
149
  desktop: {
150
150
  default: {
151
- padding: {
152
- type: 'medium',
153
- top: '8px',
154
- bottom: '8px',
155
- left: '12px',
156
- right: '12px'
157
- }
151
+ padding: {}
158
152
  }
159
153
  }
160
154
  },
@@ -52,10 +52,10 @@ const SettingUIV2 = [
52
52
  desktop: {
53
53
  default: {
54
54
  type: 'medium',
55
- top: '8px',
56
- bottom: '8px',
57
- left: '12px',
58
- right: '12px'
55
+ top: '16px',
56
+ bottom: '16px',
57
+ left: '16px',
58
+ right: '16px'
59
59
  }
60
60
  }
61
61
  }
@@ -60,7 +60,7 @@ const getLabelStyles = ({ type, styles, isHorizontal })=>{
60
60
  return {
61
61
  opacity: 1,
62
62
  ...baseLabelPosition,
63
- ...core.getBorderStyle(styles?.labelBorder),
63
+ ...core.composeBorderResponsive(styles?.labelBorder),
64
64
  ...core.composeTypographyStyle(styles?.typo),
65
65
  ...core.makeStyleResponsive('t', translateByDevices),
66
66
  ...core.getResponsiveStylePadding(styles?.labelPadding),
@@ -72,10 +72,10 @@ const getLabelStyles = ({ type, styles, isHorizontal })=>{
72
72
  value: styles?.typo?.custom?.textShadow,
73
73
  isEnableShadow: styles?.typo?.custom?.hasShadowText
74
74
  }),
75
+ ...core.makeStyleResponsive('bg', styles?.labelBackgroundColor),
75
76
  ...core.makeStyle({
76
77
  tt: styles?.transform,
77
- c: styles?.labelTextColor ?? '#F9F9F9',
78
- bg: styles?.labelBackgroundColor ?? 'rgba(0,0,0,0.6)'
78
+ c: styles?.labelTextColor ?? '#F9F9F9'
79
79
  })
80
80
  };
81
81
  };
@@ -95,8 +95,22 @@ const getImageStyles = ({ type, props })=>{
95
95
  const getInnerBorderCss = (styles, uid)=>{
96
96
  const innerBorderCss = `
97
97
  #image-comparison-left-label-${uid} div, #image-comparison-right-label-${uid} div {
98
- ${core.composeBorderCss(styles?.labelBorder)}
99
- ${core.composeCornerCss(styles?.labelRounded)}
98
+ ${core.composeBorderCss(styles?.labelBorder?.desktop)}
99
+ ${core.composeCornerCss(styles?.labelRounded?.desktop)}
100
+ }
101
+
102
+ @media only screen and (max-width: 1024px) and (min-width: 768px) {
103
+ #image-comparison-left-label-${uid} div, #image-comparison-right-label-${uid} div {
104
+ ${core.composeBorderCss(styles?.labelBorder?.tablet)}
105
+ ${core.composeCornerCss(styles?.labelRounded?.tablet)}
106
+ }
107
+ }
108
+
109
+ @media only screen and (max-width: 767px) {
110
+ #image-comparison-left-label-${uid} div, #image-comparison-right-label-${uid} div {
111
+ ${core.composeBorderCss(styles?.labelBorder?.mobile)}
112
+ ${core.composeCornerCss(styles?.labelRounded?.mobile)}
113
+ }
100
114
  }
101
115
  `;
102
116
  return innerBorderCss;
@@ -296,7 +296,11 @@ const ImageComparisonSettings = [
296
296
  {
297
297
  id: 'labelBackgroundColor',
298
298
  type: 'color-picker-v2',
299
- default: 'rgba(0, 0, 0, 0.60)'
299
+ devices: {
300
+ desktop: {
301
+ default: 'rgba(0, 0, 0, 0.60)'
302
+ }
303
+ }
300
304
  },
301
305
  {
302
306
  id: 'labelPositionHoz',
@@ -360,25 +364,54 @@ const ImageComparisonSettings = [
360
364
  },
361
365
  {
362
366
  id: 'labelBorder',
363
- type: 'border',
364
- default: {
365
- borderType: 'none',
366
- border: 'none',
367
- borderWidth: '1px',
368
- width: '1px 1px 1px 1px',
369
- color: '#000000',
370
- isCustom: false
367
+ type: 'border-v2',
368
+ devices: {
369
+ desktop: {
370
+ default: {
371
+ borderType: 'none',
372
+ border: 'none',
373
+ borderWidth: '1px',
374
+ width: '1px 1px 1px 1px',
375
+ color: '#121212',
376
+ isCustom: true
377
+ }
378
+ }
379
+ },
380
+ compoDefaultValue: {
381
+ desktop: {
382
+ default: {
383
+ border: 'solid',
384
+ color: '#121212',
385
+ width: '1px',
386
+ borderWidth: '1px'
387
+ }
388
+ }
371
389
  }
372
390
  },
373
391
  {
374
392
  id: 'labelRounded',
375
- type: 'radius-preset',
376
- default: {
377
- btrr: '4px',
378
- bblr: '4px',
379
- bbrr: '4px',
380
- btlr: '4px',
381
- radiusType: 'rounded'
393
+ type: 'corner-v2',
394
+ devices: {
395
+ desktop: {
396
+ default: {
397
+ btrr: '0px',
398
+ bblr: '0px',
399
+ bbrr: '0px',
400
+ btlr: '0px',
401
+ radiusType: 'none'
402
+ }
403
+ }
404
+ },
405
+ compoDefaultValue: {
406
+ desktop: {
407
+ default: {
408
+ btrr: '8px',
409
+ bblr: '8px',
410
+ bbrr: '8px',
411
+ btlr: '8px',
412
+ radiusType: 'rounded'
413
+ }
414
+ }
382
415
  }
383
416
  },
384
417
  {
@@ -57,7 +57,8 @@ const ProductButton = (props)=>{
57
57
  gp-data='${JSON.stringify(productButtonState).replaceAll("'", '&#039;')}'
58
58
  data-variant-selection-required-message="${variantSelectionRequiredMessage}"
59
59
  >
60
- ${system.LiquidIf('is_in_stock', renderAddToCartButton(), renderSoldOutButton())}
60
+ ${renderAddToCartButton()}
61
+ ${renderSoldOutButton()}
61
62
  </gp-product-button>
62
63
  ${renderScript()}
63
64
  `;
@@ -27,6 +27,7 @@ const AddToCartButton = (props)=>{
27
27
  styles: buttonStyles,
28
28
  setting: buttonSettings,
29
29
  className: buttonClasses,
30
+ wrapClassName: `{% unless variant.available %} !gp-hidden {% endunless %}`,
30
31
  builderProps: builderProps,
31
32
  builderAttrs: builderAttrs,
32
33
  customAttrs: {
@@ -24,6 +24,7 @@ const SoldOutButton = (props)=>{
24
24
  nodePrice: nodePrice,
25
25
  setting: buttonSettings,
26
26
  className: buttonClasses,
27
+ wrapClassName: `{% if variant.available %} !gp-hidden {% endif %}`,
27
28
  builderAttrs: builderAttrs,
28
29
  builderProps: {
29
30
  ...builderProps,
@@ -265,7 +265,7 @@ const SettingUIV2 = [
265
265
  {
266
266
  type: 'control',
267
267
  label: {
268
- en: 'Text & icon gap'
268
+ en: 'Gap'
269
269
  },
270
270
  setting: {
271
271
  id: 'iconSpacing'
@@ -47,14 +47,14 @@ const getContainerStyle = (styles, setting)=>{
47
47
  return filterTruthyStyles(composeStyles);
48
48
  };
49
49
  const getOverlayStyle = (styles)=>{
50
- const { overlayColor, overlayOpacity } = styles ?? {};
50
+ const { overlayColor, overlayOpacity, hoverEffect } = styles ?? {};
51
51
  const bgcColor = getGlobalColorStateStyle('bgc', overlayColor);
52
52
  const opacityColor = makeStyleState('op', overlayOpacity);
53
53
  if (!overlayColor?.normal || overlayOpacity?.normal == '0%') {
54
54
  delete bgcColor?.['--bgc'];
55
55
  delete opacityColor?.['--op'];
56
56
  }
57
- if (!overlayColor?.hover || overlayOpacity?.hover == '0%') {
57
+ if (!overlayColor?.hover || overlayOpacity?.hover == '0%' || !hoverEffect) {
58
58
  delete bgcColor?.['--hvr-bgc'];
59
59
  delete opacityColor?.['--hvr-op'];
60
60
  }
@@ -77,7 +77,7 @@ const heroBannerContentLeft = {
77
77
  },
78
78
  styles: {
79
79
  textAlign: {
80
- desktop: 'left'
80
+ desktop: 'center'
81
81
  },
82
82
  typo: {
83
83
  attrs: {
@@ -103,7 +103,7 @@ const heroBannerContentLeft = {
103
103
  },
104
104
  styles: {
105
105
  textAlign: {
106
- desktop: 'left'
106
+ desktop: 'center'
107
107
  },
108
108
  typo: {
109
109
  attrs: {
@@ -128,7 +128,7 @@ const heroBannerContentLeft = {
128
128
  },
129
129
  styles: {
130
130
  align: {
131
- desktop: 'left'
131
+ desktop: 'center'
132
132
  }
133
133
  }
134
134
  }