@gem-sdk/components 2.0.0-dev.595 → 2.0.0-dev.598

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 (44) hide show
  1. package/dist/cjs/banner/components/HeroBannerItem.js +3 -3
  2. package/dist/cjs/banner/components/HeroBannerItem.liquid.js +2 -2
  3. package/dist/cjs/button/components/common/styles.js +20 -3
  4. package/dist/cjs/countdown-timer/components/Countdown.js +0 -1
  5. package/dist/cjs/countdown-timer/components/common/getStyle.js +1 -1
  6. package/dist/cjs/countdown-timer/setting/configs/settings.js +14 -20
  7. package/dist/cjs/countdown-timer/setting/configs/uiV2.js +30 -17
  8. package/dist/cjs/image/components/NextImage.liquid.js +1 -0
  9. package/dist/cjs/image/setting/configs/settings.js +2 -2
  10. package/dist/cjs/image/setting/configs/uiV2.js +2 -0
  11. package/dist/cjs/image-comparison/components/common/helpers.js +2 -1
  12. package/dist/cjs/image-comparison/components/hooks/useCompareImage.js +5 -3
  13. package/dist/cjs/image-comparison/setting/configs/settings.js +8 -7
  14. package/dist/cjs/image-comparison/setting/configs/uiV2.js +42 -41
  15. package/dist/cjs/product/components/ProductButton/common/styles.js +6 -3
  16. package/dist/cjs/product/components/ProductButton/components/PriceLayout.liquid.js +2 -2
  17. package/dist/cjs/product/setting/product-view-more/configs/settings.js +2 -2
  18. package/dist/cjs/product/setting/product-view-more/configs/uiV2.js +2 -32
  19. package/dist/cjs/third-party/components/Releasit.js +0 -1
  20. package/dist/cjs/third-party/components/Releasit.liquid.js +0 -1
  21. package/dist/cjs/third-party/configs/BoldProductOptions.js +1 -1
  22. package/dist/esm/banner/components/HeroBannerItem.js +3 -3
  23. package/dist/esm/banner/components/HeroBannerItem.liquid.js +2 -2
  24. package/dist/esm/button/components/common/styles.js +21 -4
  25. package/dist/esm/countdown-timer/components/Countdown.js +0 -1
  26. package/dist/esm/countdown-timer/components/common/getStyle.js +2 -2
  27. package/dist/esm/countdown-timer/setting/configs/settings.js +14 -20
  28. package/dist/esm/countdown-timer/setting/configs/uiV2.js +30 -17
  29. package/dist/esm/image/components/NextImage.liquid.js +1 -0
  30. package/dist/esm/image/setting/configs/settings.js +2 -2
  31. package/dist/esm/image/setting/configs/uiV2.js +2 -0
  32. package/dist/esm/image-comparison/components/common/helpers.js +2 -1
  33. package/dist/esm/image-comparison/components/hooks/useCompareImage.js +5 -3
  34. package/dist/esm/image-comparison/setting/configs/settings.js +8 -7
  35. package/dist/esm/image-comparison/setting/configs/uiV2.js +42 -41
  36. package/dist/esm/product/components/ProductButton/common/styles.js +6 -3
  37. package/dist/esm/product/components/ProductButton/components/PriceLayout.liquid.js +2 -2
  38. package/dist/esm/product/setting/product-view-more/configs/settings.js +2 -2
  39. package/dist/esm/product/setting/product-view-more/configs/uiV2.js +2 -32
  40. package/dist/esm/third-party/components/Releasit.js +0 -1
  41. package/dist/esm/third-party/components/Releasit.liquid.js +0 -1
  42. package/dist/esm/third-party/configs/BoldProductOptions.js +1 -1
  43. package/dist/types/index.d.ts +1 -1
  44. package/package.json +2 -2
@@ -254,64 +254,59 @@ const SettingUIV2 = [
254
254
  },
255
255
  {
256
256
  label: {
257
- en: 'Position'
257
+ en: 'Background'
258
258
  },
259
+ conditionDisplay: `enableLabel === true`,
259
260
  setting: {
260
- id: 'labelPositionHoz'
261
- },
262
- conditionDisplay: `enableLabel === true && direction === 'horizontal'`
261
+ id: 'labelBackgroundColor'
262
+ }
263
263
  },
264
264
  {
265
265
  label: {
266
- en: 'Position'
266
+ en: 'Border'
267
267
  },
268
+ conditionDisplay: `enableLabel === true`,
268
269
  setting: {
269
- id: 'labelPositionVer'
270
+ id: 'labelBorder'
271
+ }
272
+ },
273
+ {
274
+ label: {
275
+ en: 'Corner'
270
276
  },
271
- conditionDisplay: `enableLabel === true && direction === 'vertical'`
277
+ conditionDisplay: `enableLabel === true`,
278
+ setting: {
279
+ id: 'labelRounded'
280
+ }
272
281
  },
273
282
  {
274
283
  label: {
275
- en: 'Background'
284
+ en: 'Shadow'
276
285
  },
277
286
  conditionDisplay: `enableLabel === true`,
278
287
  setting: {
279
- id: 'labelBackgroundColor'
288
+ id: 'labelShadow'
280
289
  }
281
- }
282
- ],
283
- moreSettings: {
284
- type: 'collapse',
285
- controls: [
286
- {
287
- label: {
288
- en: 'Border'
289
- },
290
- conditionDisplay: `enableLabel === true`,
291
- setting: {
292
- id: 'labelBorder'
293
- }
290
+ },
291
+ {
292
+ label: {
293
+ en: 'Position'
294
294
  },
295
- {
296
- label: {
297
- en: 'Corner'
298
- },
299
- conditionDisplay: `enableLabel === true`,
300
- setting: {
301
- id: 'labelRounded'
302
- }
295
+ setting: {
296
+ id: 'labelPositionHoz'
303
297
  },
304
- {
305
- label: {
306
- en: 'Shadow'
307
- },
308
- conditionDisplay: `enableLabel === true`,
309
- setting: {
310
- id: 'labelShadow'
311
- }
312
- }
313
- ]
314
- }
298
+ conditionDisplay: `enableLabel === true && direction === 'horizontal'`
299
+ },
300
+ {
301
+ label: {
302
+ en: 'Position'
303
+ },
304
+ setting: {
305
+ id: 'labelPositionVer'
306
+ },
307
+ conditionDisplay: `enableLabel === true && direction === 'vertical'`
308
+ }
309
+ ]
315
310
  },
316
311
  {
317
312
  label: {
@@ -450,6 +445,9 @@ const SettingUIV2 = [
450
445
  type: 'combo',
451
446
  iconName: 'polaris-text-title',
452
447
  isHideClear: true,
448
+ popoverLabel: {
449
+ en: 'SEO'
450
+ },
453
451
  controls: [
454
452
  {
455
453
  label: {
@@ -476,6 +474,9 @@ const SettingUIV2 = [
476
474
  type: 'combo',
477
475
  iconName: 'polaris-text-title',
478
476
  isHideClear: true,
477
+ popoverLabel: {
478
+ en: 'SEO'
479
+ },
479
480
  controls: [
480
481
  {
481
482
  label: {
@@ -50,13 +50,16 @@ const getSoldOutButtonStyles = (styles)=>{
50
50
  if (oosBackgroundV2) {
51
51
  buttonSoldOutStyles.backgroundColorV2 = {
52
52
  desktop: {
53
- normal: oosBackgroundV2?.desktop?.normal
53
+ normal: oosBackgroundV2?.desktop?.normal,
54
+ hover: buttonSoldOutStyles.backgroundColorV2?.desktop?.hover
54
55
  },
55
56
  tablet: {
56
- normal: oosBackgroundV2?.tablet?.normal
57
+ normal: oosBackgroundV2?.tablet?.normal,
58
+ hover: buttonSoldOutStyles.backgroundColorV2?.tablet?.hover
57
59
  },
58
60
  mobile: {
59
- normal: oosBackgroundV2?.mobile?.normal
61
+ normal: oosBackgroundV2?.mobile?.normal,
62
+ hover: buttonSoldOutStyles.backgroundColorV2?.mobile?.hover
60
63
  }
61
64
  };
62
65
  }
@@ -9,10 +9,10 @@ const PriceLayout = ({ components, separator, showPrice, showSeparator })=>{
9
9
  }), BlankSpace());
10
10
  return template`
11
11
  ${separatorComponent}
12
- ${showPrice && components.map((component, index)=>template`
12
+ ${showPrice ? components.map((component, index)=>template`
13
13
  ${component()}
14
14
  ${index < components.length - 1 ? BlankSpace() : ''}
15
- `).join('')}
15
+ `).join('') : ''}
16
16
  `;
17
17
  };
18
18
 
@@ -44,7 +44,7 @@ const ProductViewMoreSettings = [
44
44
  tooltip: 'Align right'
45
45
  }
46
46
  ],
47
- default: 'left'
47
+ default: 'right'
48
48
  },
49
49
  {
50
50
  id: 'shouldClearSpace',
@@ -403,7 +403,7 @@ const ProductViewMoreSettings = [
403
403
  default: {
404
404
  type: 'paragraph-1',
405
405
  attrs: {
406
- color: 'text-1'
406
+ color: 'text-3'
407
407
  }
408
408
  },
409
409
  hiddenSetting: {
@@ -24,29 +24,14 @@ const SettingUIV2 = [
24
24
  field: 'width'
25
25
  },
26
26
  displayOptions: [
27
- {
28
- label: 'Fit content',
29
- value: 'Auto',
30
- showValue: true
31
- },
32
27
  {
33
28
  label: 'Full',
34
29
  value: '100%',
35
30
  showValue: true
36
31
  },
37
32
  {
38
- label: 'Small',
39
- value: '100px',
40
- showValue: true
41
- },
42
- {
43
- label: 'Medium',
44
- value: '116px',
45
- showValue: true
46
- },
47
- {
48
- label: 'Large',
49
- value: '132px',
33
+ label: 'Fit content',
34
+ value: 'Auto',
50
35
  showValue: true
51
36
  }
52
37
  ]
@@ -76,21 +61,6 @@ const SettingUIV2 = [
76
61
  label: 'Fit content',
77
62
  value: 'Auto',
78
63
  showValue: true
79
- },
80
- {
81
- label: 'Small',
82
- value: '28px',
83
- showValue: true
84
- },
85
- {
86
- label: 'Medium',
87
- value: '36px',
88
- showValue: true
89
- },
90
- {
91
- label: 'Large',
92
- value: '44px',
93
- showValue: true
94
64
  }
95
65
  ]
96
66
  },
@@ -1,4 +1,3 @@
1
- 'use client';
2
1
  import { jsx } from 'react/jsx-runtime';
3
2
  import { useEditorMode, makeStyleResponsive } from '@gem-sdk/core';
4
3
  import dynamic from 'next/dynamic';
@@ -3,7 +3,6 @@ import { template, makeStyleResponsive } from '@gem-sdk/core';
3
3
 
4
4
  const Releasit = ({ setting, advanced })=>{
5
5
  const { align, version, appBlockId } = setting ?? {};
6
- console.log('version', version);
7
6
  return version === 'v2' ? getLiquidForAppBlock(appBlockId, align, `${advanced?.cssClass ?? ''}!gp-block`) : template`
8
7
  <div
9
8
  class="${advanced?.cssClass}"
@@ -1,7 +1,7 @@
1
1
  var BoldProductOptionsConfig = {
2
2
  id: 'bold-product-options',
3
3
  label: 'SC Product Options',
4
- logoUrl: 'https://cdn.shopify.com/app-store/listing_images/9a0bf1159f79c6ab0660ec422f350445/icon/CP2Uwo_GuYIDEAE=.png?width=22&height=22',
4
+ logoUrl: 'https://cdn.shopify.com/app-store/listing_images/9a0bf1159f79c6ab0660ec422f350445/icon/CP2Uwo_GuYIDEAE=.png',
5
5
  tag: 'BoldProductOptions'
6
6
  };
7
7
 
@@ -1357,7 +1357,7 @@ type CountdownProps = BaseProps<{
1357
1357
  roundedState?: StateProp<CornerRadius>;
1358
1358
  verticalGap?: string;
1359
1359
  horizontalGap?: string;
1360
- itemPadding?: SizeSetting;
1360
+ itemPadding?: PaddingType$1;
1361
1361
  }> & {
1362
1362
  pageContext?: PageContext;
1363
1363
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-dev.595",
3
+ "version": "2.0.0-dev.598",
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.595",
26
+ "@gem-sdk/core": "2.0.0-dev.596",
27
27
  "@gem-sdk/styles": "2.0.0-dev.571",
28
28
  "@gem-sdk/system": "2.0.0-dev.504",
29
29
  "@types/react-transition-group": "^4.4.5"