@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
@@ -85,7 +85,7 @@ const heroBannerContentRight = {
85
85
  },
86
86
  styles: {
87
87
  textAlign: {
88
- desktop: 'left'
88
+ desktop: 'center'
89
89
  },
90
90
  typo: {
91
91
  attrs: {
@@ -111,7 +111,7 @@ const heroBannerContentRight = {
111
111
  },
112
112
  styles: {
113
113
  textAlign: {
114
- desktop: 'left'
114
+ desktop: 'center'
115
115
  },
116
116
  typo: {
117
117
  attrs: {
@@ -136,7 +136,7 @@ const heroBannerContentRight = {
136
136
  },
137
137
  styles: {
138
138
  align: {
139
- desktop: 'left'
139
+ desktop: 'center'
140
140
  }
141
141
  }
142
142
  }
@@ -251,7 +251,7 @@ const SettingUIV2 = [
251
251
  fixedValue: 'Effect',
252
252
  iconName: 'polaris-check-clicked',
253
253
  label: {
254
- en: 'Hover'
254
+ en: 'Hover effect'
255
255
  },
256
256
  setting: {
257
257
  id: 'hoverEffect'
@@ -331,7 +331,6 @@ const SettingUIV2 = [
331
331
  label: {
332
332
  en: 'Speed'
333
333
  },
334
- layout: 'vertical',
335
334
  setting: {
336
335
  id: 'speedParallax'
337
336
  }
@@ -24,8 +24,8 @@ const getButtonIconStyles = (styles, settings)=>{
24
24
  };
25
25
  };
26
26
  const isEnableShadowStateForDevice = (deviceStyles)=>({
27
- normal: deviceStyles?.normal?.enable,
28
- hover: deviceStyles?.hover?.enable
27
+ normal: deviceStyles?.normal?.type !== 'none',
28
+ hover: deviceStyles?.hover?.type !== 'none'
29
29
  });
30
30
  const getShadowStyles = (styles)=>{
31
31
  const { boxShadowBtnV2 } = styles || {};
@@ -136,14 +136,40 @@ const getCustomCssStyles = ({ styles, uid, builderAttrs })=>{
136
136
  };
137
137
  const generateBorderCornerStyles = ({ uid, device, borderBtn, roundedBtn, builderAttrs })=>{
138
138
  const tag = builderAttrs?.['data-component-tag'];
139
+ const getResponsiveStyles = ({ styleObj, state })=>{
140
+ if (!styleObj) return undefined;
141
+ if (device === 'mobile') {
142
+ return styleObj.mobile?.[state] || styleObj.tablet?.[state] || styleObj.desktop?.[state];
143
+ }
144
+ if (device === 'tablet') {
145
+ return styleObj.tablet?.[state] || styleObj.desktop?.[state];
146
+ }
147
+ return styleObj.desktop?.[state];
148
+ };
149
+ const normalBorder = getResponsiveStyles({
150
+ styleObj: borderBtn,
151
+ state: 'normal'
152
+ });
153
+ const hoverBorder = getResponsiveStyles({
154
+ styleObj: borderBtn,
155
+ state: 'hover'
156
+ });
157
+ const normalCorner = getResponsiveStyles({
158
+ styleObj: roundedBtn,
159
+ state: 'normal'
160
+ });
161
+ const hoverCorner = getResponsiveStyles({
162
+ styleObj: roundedBtn,
163
+ state: 'hover'
164
+ });
139
165
  const baseStyle = `
140
166
  content: "";
141
167
  height: 100%;
142
168
  width: 100%;
143
169
  position: absolute;
144
170
  pointer-events: none;
145
- ${composeBorderCss(borderBtn?.[device]?.normal)}
146
- ${composeCornerCss(roundedBtn?.[device]?.normal)}
171
+ ${composeBorderCss(normalBorder)}
172
+ ${composeCornerCss(normalCorner)}
147
173
  `;
148
174
  let normalStyles = `
149
175
  .${uid}.gp-button-base::before {
@@ -159,8 +185,8 @@ const generateBorderCornerStyles = ({ uid, device, borderBtn, roundedBtn, builde
159
185
  }
160
186
  const hoverStyles = `
161
187
  .${uid}:hover::before {
162
- ${composeBorderCss(borderBtn?.[device]?.hover)}
163
- ${composeCornerCss(roundedBtn?.[device]?.hover)}
188
+ ${composeBorderCss(hoverBorder)}
189
+ ${composeCornerCss(hoverCorner)}
164
190
  }
165
191
  `;
166
192
  return {
@@ -47,7 +47,7 @@ const EstimateDate = ({ setting, styles, builderAttrs, style, builderProps, adva
47
47
  align: styles?.align
48
48
  },
49
49
  setting: {
50
- text: `${TextInline({
50
+ text: `${setting?.enableCustomText ? TextInline({
51
51
  styles: {
52
52
  align: styles?.align,
53
53
  typo: styles?.typoCustom
@@ -55,7 +55,7 @@ const EstimateDate = ({ setting, styles, builderAttrs, style, builderProps, adva
55
55
  setting: {
56
56
  text: setting?.customText
57
57
  }
58
- })} ${TextInline({
58
+ }) : ''} ${TextInline({
59
59
  styles: {
60
60
  align: styles?.align,
61
61
  typo: styles?.typoDate
@@ -4,6 +4,12 @@ const EstimateDateSettings = [
4
4
  {
5
5
  id: 'setting',
6
6
  controls: [
7
+ {
8
+ id: 'enableCustomText',
9
+ label: '',
10
+ type: 'toggle',
11
+ default: true
12
+ },
7
13
  {
8
14
  id: 'customTextContainer',
9
15
  type: 'group',
@@ -84,10 +84,19 @@ const SettingUIV2 = [
84
84
  ]
85
85
  },
86
86
  {
87
- label: {
88
- en: 'Custom text'
89
- },
90
87
  controls: [
88
+ {
89
+ label: {
90
+ en: 'Custom text'
91
+ },
92
+ setting: {
93
+ id: 'enableCustomText'
94
+ },
95
+ options: {
96
+ labelVariant: 'primary',
97
+ toggleStyle: 'switch'
98
+ }
99
+ },
91
100
  {
92
101
  type: 'combo',
93
102
  label: {
@@ -97,6 +106,7 @@ const SettingUIV2 = [
97
106
  fixedValue: 'Estimate delivery between',
98
107
  getValueFromSettingID: 'customText',
99
108
  isHideClear: true,
109
+ conditionDisplay: 'enableCustomText === true',
100
110
  controls: [
101
111
  {
102
112
  label: {
@@ -110,6 +120,7 @@ const SettingUIV2 = [
110
120
  ]
111
121
  },
112
122
  {
123
+ conditionDisplay: 'enableCustomText === true',
113
124
  setting: {
114
125
  id: 'typoCustom'
115
126
  },
@@ -5,7 +5,9 @@ const composeStyles = (styles)=>filterTruthy(styles);
5
5
  const composeContainerStyles = (setting, styles, style)=>{
6
6
  const { background } = setting ?? {};
7
7
  const { globalSize } = styles ?? {};
8
- const composeGlobalSize = makeGlobalSize(globalSize);
8
+ const composeGlobalSize = makeGlobalSize({
9
+ ...globalSize
10
+ });
9
11
  return composeStyles({
10
12
  ...composeGlobalSize?.width?.['--w'] ? composeGlobalSize.width : {
11
13
  '--w': '100%'
@@ -20,7 +20,7 @@ const Newsletter = ({ builderProps, setting, children, style, formType, advanced
20
20
  uid: builderProps?.uid,
21
21
  settingId: 'successMessage',
22
22
  pageContext,
23
- defaultVal: pageContext?.isPreviewing ? `Thanks for contacting us. We'll get back to you as soon as possible.` : getStaticLocale('Newsletter', 'success_msg_default'),
23
+ defaultVal: pageContext?.isPreviewing ? `Thanks for subscribing` : getStaticLocale('Newsletter', 'success_msg_default'),
24
24
  translate: setting?.translate
25
25
  });
26
26
  const containerAttrs = composeContainerAttrs(builderProps, setting);
@@ -2,12 +2,6 @@ const ContactSettings = [
2
2
  {
3
3
  id: 'setting',
4
4
  controls: [
5
- {
6
- id: 'contentBanner',
7
- type: 'banner',
8
- 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>`,
9
- closable: true
10
- },
11
5
  {
12
6
  id: 'callbackURL',
13
7
  type: 'pick-link',
@@ -19,12 +13,6 @@ const ContactSettings = [
19
13
  type: 'stay-on-page',
20
14
  link: '',
21
15
  target: '_self'
22
- },
23
- hiddenOptions: {
24
- 'scroll-to': true,
25
- 'open-popup': true,
26
- 'send-email': true,
27
- 'call-phone': true
28
16
  }
29
17
  },
30
18
  {
@@ -1,13 +1,9 @@
1
1
  const SettingUIV2 = [
2
2
  {
3
- controls: [
4
- {
5
- setting: {
6
- id: 'contentBanner'
7
- },
8
- layout: 'vertical'
9
- }
10
- ]
3
+ messageConfig: {
4
+ type: 'info',
5
+ 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>`
6
+ }
11
7
  },
12
8
  {
13
9
  label: {
@@ -2,12 +2,6 @@ const NewsletterSettings = [
2
2
  {
3
3
  id: 'setting',
4
4
  controls: [
5
- {
6
- id: 'contentBanner',
7
- type: 'banner',
8
- message: `You can manage collected email in <a class="no-underline text-primary-250" target="_blank" href="https://admin.shopify.com/customers">Customers</a>`,
9
- closable: true
10
- },
11
5
  {
12
6
  id: 'afterSubmitAction',
13
7
  type: 'select',
@@ -40,10 +34,10 @@ const NewsletterSettings = [
40
34
  id: 'successMessage',
41
35
  type: 'textarea',
42
36
  label: 'Success Message',
43
- default: "Thanks for contacting us. We'll get back to you as soon as possible.",
37
+ default: 'Thanks for subscribing',
44
38
  autoHeight: true,
45
39
  minHeight: 58,
46
- compoDefaultValue: "Thanks for contacting us. We'll get back to you as soon as possible."
40
+ compoDefaultValue: 'Thanks for subscribing'
47
41
  },
48
42
  {
49
43
  id: 'successColor',
@@ -1,13 +1,9 @@
1
1
  const SettingUIV2 = [
2
2
  {
3
- controls: [
4
- {
5
- setting: {
6
- id: 'contentBanner'
7
- },
8
- layout: 'vertical'
9
- }
10
- ]
3
+ messageConfig: {
4
+ type: 'info',
5
+ message: `You can manage collected email in <a class="no-underline text-primary-250" target="_blank" href="https://admin.shopify.com/customers">Customers</a>`
6
+ }
11
7
  },
12
8
  {
13
9
  label: {
@@ -23,7 +19,7 @@ const SettingUIV2 = [
23
19
  getValueFromSettingID: 'successMessage',
24
20
  isHideClear: true,
25
21
  disableScrollbar: true,
26
- compoDefaultValue: "Thanks for contacting us. We'll get back to you as soon as possible.",
22
+ compoDefaultValue: 'Thanks for subscribing',
27
23
  popoverLabel: {
28
24
  en: 'Success message'
29
25
  },
@@ -23,6 +23,7 @@ const getItemStyles = (parentStyles)=>{
23
23
  ...composeRadiusResponsive(parentStyles?.itemRounded),
24
24
  ...composeBorderResponsive(parentStyles?.itemBorder),
25
25
  ...getGlobalColorResponsiveStyle('bgc', parentStyles?.itemBackgroundColor),
26
+ ...getGlobalColorResponsiveStyle('bgi', parentStyles?.itemBackgroundColor),
26
27
  ...makeStyleResponsive('cg', parentStyles?.horizontalSpacing)
27
28
  };
28
29
  };
@@ -48,9 +48,9 @@ const config = {
48
48
  tag: 'IconList',
49
49
  settings: {
50
50
  childItem: [
51
- 'Icon 1',
52
- 'Icon 2',
53
- 'Icon 3'
51
+ 'Item 1',
52
+ 'Item 2',
53
+ 'Item 3'
54
54
  ],
55
55
  presetId: 'icon-list-ver1-1-text'
56
56
  },
@@ -118,9 +118,9 @@ const config = {
118
118
  tag: 'IconList',
119
119
  settings: {
120
120
  childItem: [
121
- 'Icon 1',
122
- 'Icon 2',
123
- 'Icon 3'
121
+ 'Item 1',
122
+ 'Item 2',
123
+ 'Item 3'
124
124
  ],
125
125
  presetId: 'icon-list-ver1-2-image'
126
126
  },
@@ -9,9 +9,9 @@ const IconListSettings = [
9
9
  label: 'Item management',
10
10
  type: 'child-item',
11
11
  default: [
12
- 'Icon 1',
13
- 'Icon 2',
14
- 'Icon 3'
12
+ 'Item 1',
13
+ 'Item 2',
14
+ 'Item 3'
15
15
  ],
16
16
  childTemplate: {
17
17
  default: itemControlTemplate,
@@ -146,13 +146,7 @@ const IconListSettings = [
146
146
  devices: {
147
147
  desktop: {
148
148
  default: {
149
- padding: {
150
- type: 'medium',
151
- top: '8px',
152
- bottom: '8px',
153
- left: '12px',
154
- right: '12px'
155
- }
149
+ padding: {}
156
150
  }
157
151
  }
158
152
  },
@@ -50,10 +50,10 @@ const SettingUIV2 = [
50
50
  desktop: {
51
51
  default: {
52
52
  type: 'medium',
53
- top: '8px',
54
- bottom: '8px',
55
- left: '12px',
56
- right: '12px'
53
+ top: '16px',
54
+ bottom: '16px',
55
+ left: '16px',
56
+ right: '16px'
57
57
  }
58
58
  }
59
59
  }
@@ -1,4 +1,4 @@
1
- import { makeStyleResponsive, getCornerCSSFromGlobal, getBorderStyle, composeTypographyStyle, getResponsiveStylePadding, getResponsiveStyleShadowWithoutState, getStyleShadow, makeStyle, composeBorderCss, composeCornerCss } from '@gem-sdk/core';
1
+ import { makeStyleResponsive, getCornerCSSFromGlobal, composeBorderResponsive, composeTypographyStyle, getResponsiveStylePadding, getResponsiveStyleShadowWithoutState, getStyleShadow, makeStyle, composeBorderCss, composeCornerCss } from '@gem-sdk/core';
2
2
  import { FLEX_ALIGN } from './constant.js';
3
3
  import { generateTranslateByDevices, getLabelPosition } from './helpers.js';
4
4
 
@@ -58,7 +58,7 @@ const getLabelStyles = ({ type, styles, isHorizontal })=>{
58
58
  return {
59
59
  opacity: 1,
60
60
  ...baseLabelPosition,
61
- ...getBorderStyle(styles?.labelBorder),
61
+ ...composeBorderResponsive(styles?.labelBorder),
62
62
  ...composeTypographyStyle(styles?.typo),
63
63
  ...makeStyleResponsive('t', translateByDevices),
64
64
  ...getResponsiveStylePadding(styles?.labelPadding),
@@ -70,10 +70,10 @@ const getLabelStyles = ({ type, styles, isHorizontal })=>{
70
70
  value: styles?.typo?.custom?.textShadow,
71
71
  isEnableShadow: styles?.typo?.custom?.hasShadowText
72
72
  }),
73
+ ...makeStyleResponsive('bg', styles?.labelBackgroundColor),
73
74
  ...makeStyle({
74
75
  tt: styles?.transform,
75
- c: styles?.labelTextColor ?? '#F9F9F9',
76
- bg: styles?.labelBackgroundColor ?? 'rgba(0,0,0,0.6)'
76
+ c: styles?.labelTextColor ?? '#F9F9F9'
77
77
  })
78
78
  };
79
79
  };
@@ -93,8 +93,22 @@ const getImageStyles = ({ type, props })=>{
93
93
  const getInnerBorderCss = (styles, uid)=>{
94
94
  const innerBorderCss = `
95
95
  #image-comparison-left-label-${uid} div, #image-comparison-right-label-${uid} div {
96
- ${composeBorderCss(styles?.labelBorder)}
97
- ${composeCornerCss(styles?.labelRounded)}
96
+ ${composeBorderCss(styles?.labelBorder?.desktop)}
97
+ ${composeCornerCss(styles?.labelRounded?.desktop)}
98
+ }
99
+
100
+ @media only screen and (max-width: 1024px) and (min-width: 768px) {
101
+ #image-comparison-left-label-${uid} div, #image-comparison-right-label-${uid} div {
102
+ ${composeBorderCss(styles?.labelBorder?.tablet)}
103
+ ${composeCornerCss(styles?.labelRounded?.tablet)}
104
+ }
105
+ }
106
+
107
+ @media only screen and (max-width: 767px) {
108
+ #image-comparison-left-label-${uid} div, #image-comparison-right-label-${uid} div {
109
+ ${composeBorderCss(styles?.labelBorder?.mobile)}
110
+ ${composeCornerCss(styles?.labelRounded?.mobile)}
111
+ }
98
112
  }
99
113
  `;
100
114
  return innerBorderCss;
@@ -294,7 +294,11 @@ const ImageComparisonSettings = [
294
294
  {
295
295
  id: 'labelBackgroundColor',
296
296
  type: 'color-picker-v2',
297
- default: 'rgba(0, 0, 0, 0.60)'
297
+ devices: {
298
+ desktop: {
299
+ default: 'rgba(0, 0, 0, 0.60)'
300
+ }
301
+ }
298
302
  },
299
303
  {
300
304
  id: 'labelPositionHoz',
@@ -358,25 +362,54 @@ const ImageComparisonSettings = [
358
362
  },
359
363
  {
360
364
  id: 'labelBorder',
361
- type: 'border',
362
- default: {
363
- borderType: 'none',
364
- border: 'none',
365
- borderWidth: '1px',
366
- width: '1px 1px 1px 1px',
367
- color: '#000000',
368
- isCustom: false
365
+ type: 'border-v2',
366
+ devices: {
367
+ desktop: {
368
+ default: {
369
+ borderType: 'none',
370
+ border: 'none',
371
+ borderWidth: '1px',
372
+ width: '1px 1px 1px 1px',
373
+ color: '#121212',
374
+ isCustom: true
375
+ }
376
+ }
377
+ },
378
+ compoDefaultValue: {
379
+ desktop: {
380
+ default: {
381
+ border: 'solid',
382
+ color: '#121212',
383
+ width: '1px',
384
+ borderWidth: '1px'
385
+ }
386
+ }
369
387
  }
370
388
  },
371
389
  {
372
390
  id: 'labelRounded',
373
- type: 'radius-preset',
374
- default: {
375
- btrr: '4px',
376
- bblr: '4px',
377
- bbrr: '4px',
378
- btlr: '4px',
379
- radiusType: 'rounded'
391
+ type: 'corner-v2',
392
+ devices: {
393
+ desktop: {
394
+ default: {
395
+ btrr: '0px',
396
+ bblr: '0px',
397
+ bbrr: '0px',
398
+ btlr: '0px',
399
+ radiusType: 'none'
400
+ }
401
+ }
402
+ },
403
+ compoDefaultValue: {
404
+ desktop: {
405
+ default: {
406
+ btrr: '8px',
407
+ bblr: '8px',
408
+ bbrr: '8px',
409
+ btlr: '8px',
410
+ radiusType: 'rounded'
411
+ }
412
+ }
380
413
  }
381
414
  },
382
415
  {
@@ -1,7 +1,7 @@
1
1
  import { getSplitStyle } from './common/styles.js';
2
2
  import { getGPProductButtonState } from './common/helpers.js';
3
3
  import { template, isLocalEnv, baseAssetURL } from '@gem-sdk/core';
4
- import { createStateOrContext, LiquidIf, If } from '@gem-sdk/system';
4
+ import { createStateOrContext, If } from '@gem-sdk/system';
5
5
  import { getInsertLinkData, getSettingPreloadData } from '../../../helpers.js';
6
6
  import { getButtonDynamicSourceLocales } from './helpers/getButtonDynamicSourceLocales.js';
7
7
  import { SoldOutButton } from './components/SoldOutButton.liquid.js';
@@ -53,7 +53,8 @@ const ProductButton = (props)=>{
53
53
  gp-data='${JSON.stringify(productButtonState).replaceAll("'", '&#039;')}'
54
54
  data-variant-selection-required-message="${variantSelectionRequiredMessage}"
55
55
  >
56
- ${LiquidIf('is_in_stock', renderAddToCartButton(), renderSoldOutButton())}
56
+ ${renderAddToCartButton()}
57
+ ${renderSoldOutButton()}
57
58
  </gp-product-button>
58
59
  ${renderScript()}
59
60
  `;
@@ -25,6 +25,7 @@ const AddToCartButton = (props)=>{
25
25
  styles: buttonStyles,
26
26
  setting: buttonSettings,
27
27
  className: buttonClasses,
28
+ wrapClassName: `{% unless variant.available %} !gp-hidden {% endunless %}`,
28
29
  builderProps: builderProps,
29
30
  builderAttrs: builderAttrs,
30
31
  customAttrs: {
@@ -22,6 +22,7 @@ const SoldOutButton = (props)=>{
22
22
  nodePrice: nodePrice,
23
23
  setting: buttonSettings,
24
24
  className: buttonClasses,
25
+ wrapClassName: `{% if variant.available %} !gp-hidden {% endif %}`,
25
26
  builderAttrs: builderAttrs,
26
27
  builderProps: {
27
28
  ...builderProps,
@@ -263,7 +263,7 @@ const SettingUIV2 = [
263
263
  {
264
264
  type: 'control',
265
265
  label: {
266
- en: 'Text & icon gap'
266
+ en: 'Gap'
267
267
  },
268
268
  setting: {
269
269
  id: 'iconSpacing'
@@ -1432,6 +1432,7 @@ type EstimateDateProps = BasePropsWrap<{
1432
1432
  translate?: string;
1433
1433
  globalSize?: ObjectDevices$1<SizeSettingGlobal>;
1434
1434
  background?: ObjectDevices$1<BackgroundMedia>;
1435
+ enableCustomText?: boolean;
1435
1436
  customText?: string;
1436
1437
  minEstimate?: number;
1437
1438
  maxEstimate?: number;
@@ -2052,9 +2053,9 @@ type QualityType$1 = 'finest' | 'high' | 'medium' | 'custom';
2052
2053
  type ImageComparisonStyle = {
2053
2054
  labelPadding?: ObjectDevices$1<PaddingType$1>;
2054
2055
  labelTextColor?: ColorValueType$1;
2055
- labelBackgroundColor?: ColorValueType$1;
2056
- labelBorder?: Border;
2057
- labelRounded?: CornerRadius;
2056
+ labelBackgroundColor?: ObjectDevices$1<ColorValueType$1>;
2057
+ labelBorder?: ObjectDevices$1<Border>;
2058
+ labelRounded?: ObjectDevices$1<CornerRadius>;
2058
2059
  labelShadow?: ObjectDevices$1<ShadowProps$1>;
2059
2060
  align?: ObjectDevices$1<AlignProp>;
2060
2061
  typo?: TypographySettingV2;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-dev.495",
3
+ "version": "2.0.0-dev.497",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",
@@ -23,7 +23,7 @@
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.479",
26
+ "@gem-sdk/core": "2.0.0-dev.497",
27
27
  "@gem-sdk/styles": "2.0.0-dev.482",
28
28
  "@gem-sdk/system": "2.0.0-dev.464",
29
29
  "@types/react-transition-group": "^4.4.5"