@gem-sdk/components 2.0.0-dev.564 → 2.0.0-dev.566

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.
@@ -515,7 +515,7 @@ const SettingUIV2 = [
515
515
  showValue: true
516
516
  },
517
517
  {
518
- label: 'Fit content',
518
+ label: 'Default',
519
519
  value: '1200px',
520
520
  showValue: true
521
521
  }
@@ -30,9 +30,11 @@ const ProductBundleDiscount = ({ rawChildren, setting, styles: styles$1, advance
30
30
  const composeStateOrContext = system.createStateOrContext({
31
31
  styles: styles$1,
32
32
  settings: {
33
+ useProductCompareAtPrice: setting?.useProductCompareAtPrice,
33
34
  selectItemDefault: setting?.selectItemDefault,
34
35
  hideNoDiscountItem: setting?.hideNoDiscountItem,
35
- hasPreSelectItem: setting?.hasPreSelectItem
36
+ hasPreSelectItem: setting?.hasPreSelectItem,
37
+ iconItemColor: setting?.iconItemColor
36
38
  }
37
39
  });
38
40
  const renderScript = ()=>{
@@ -40,7 +42,6 @@ const ProductBundleDiscount = ({ rawChildren, setting, styles: styles$1, advance
40
42
  };
41
43
  return core.template`
42
44
  <gp-product-bundle-discount
43
- use-product-compare-at-price="${setting?.useProductCompareAtPrice}"
44
45
  gp-data='${JSON.stringify(composeStateOrContext)}'
45
46
  style="${composeContainerStyles}"
46
47
  class="${composeContainerClasses}">
@@ -31,43 +31,53 @@ const ControlUIV2 = [
31
31
  // },
32
32
  // },
33
33
  {
34
- id: 'Width',
35
34
  label: {
36
- en: 'Width'
35
+ en: 'Gap'
37
36
  },
38
37
  controlConfig: {
39
- id: 'gap-size',
40
- type: 'dropdown:input',
41
- label: 'Gap',
42
- inputType: 'number',
38
+ id: 'gap',
39
+ type: 'input:slider',
43
40
  units: [
44
- 'px',
45
- '%'
41
+ 'px'
46
42
  ],
47
- hideUnit: false,
43
+ min: 0,
44
+ max: 100,
45
+ step: 1,
48
46
  linkWithSetting: {
49
47
  name: 'size',
50
48
  field: 'gap'
51
- },
52
- default: '12px',
53
- displayOptions: [
54
- {
55
- label: 'Small',
56
- value: '8px',
57
- showValue: true
58
- },
59
- {
60
- label: 'Medium',
61
- value: '16px',
62
- showValue: true
63
- },
64
- {
65
- label: 'Large',
66
- value: '24px',
67
- showValue: true
68
- }
69
- ]
49
+ }
70
50
  },
51
+ // controlConfig: {
52
+ // id: 'gap-size',
53
+ // type: 'dropdown:input',
54
+ // label: 'Gap',
55
+ // inputType: 'number',
56
+ // units: ['px', '%'],
57
+ // hideUnit: false,
58
+ // linkWithSetting: {
59
+ // name: 'size',
60
+ // field: 'gap',
61
+ // },
62
+ // default: '12px',
63
+ // displayOptions: [
64
+ // {
65
+ // label: 'Small',
66
+ // value: '8px',
67
+ // showValue: true,
68
+ // },
69
+ // {
70
+ // label: 'Medium',
71
+ // value: '16px',
72
+ // showValue: true,
73
+ // },
74
+ // {
75
+ // label: 'Large',
76
+ // value: '24px',
77
+ // showValue: true,
78
+ // },
79
+ // ],
80
+ // },
71
81
  layout: 'horizontal'
72
82
  }
73
83
  ]
@@ -513,7 +513,7 @@ const SettingUIV2 = [
513
513
  showValue: true
514
514
  },
515
515
  {
516
- label: 'Fit content',
516
+ label: 'Default',
517
517
  value: '1200px',
518
518
  showValue: true
519
519
  }
@@ -26,9 +26,11 @@ const ProductBundleDiscount = ({ rawChildren, setting, styles, advanced, style }
26
26
  const composeStateOrContext = createStateOrContext({
27
27
  styles,
28
28
  settings: {
29
+ useProductCompareAtPrice: setting?.useProductCompareAtPrice,
29
30
  selectItemDefault: setting?.selectItemDefault,
30
31
  hideNoDiscountItem: setting?.hideNoDiscountItem,
31
- hasPreSelectItem: setting?.hasPreSelectItem
32
+ hasPreSelectItem: setting?.hasPreSelectItem,
33
+ iconItemColor: setting?.iconItemColor
32
34
  }
33
35
  });
34
36
  const renderScript = ()=>{
@@ -36,7 +38,6 @@ const ProductBundleDiscount = ({ rawChildren, setting, styles, advanced, style }
36
38
  };
37
39
  return template`
38
40
  <gp-product-bundle-discount
39
- use-product-compare-at-price="${setting?.useProductCompareAtPrice}"
40
41
  gp-data='${JSON.stringify(composeStateOrContext)}'
41
42
  style="${composeContainerStyles}"
42
43
  class="${composeContainerClasses}">
@@ -27,43 +27,53 @@ const ControlUIV2 = [
27
27
  // },
28
28
  // },
29
29
  {
30
- id: 'Width',
31
30
  label: {
32
- en: 'Width'
31
+ en: 'Gap'
33
32
  },
34
33
  controlConfig: {
35
- id: 'gap-size',
36
- type: 'dropdown:input',
37
- label: 'Gap',
38
- inputType: 'number',
34
+ id: 'gap',
35
+ type: 'input:slider',
39
36
  units: [
40
- 'px',
41
- '%'
37
+ 'px'
42
38
  ],
43
- hideUnit: false,
39
+ min: 0,
40
+ max: 100,
41
+ step: 1,
44
42
  linkWithSetting: {
45
43
  name: 'size',
46
44
  field: 'gap'
47
- },
48
- default: '12px',
49
- displayOptions: [
50
- {
51
- label: 'Small',
52
- value: '8px',
53
- showValue: true
54
- },
55
- {
56
- label: 'Medium',
57
- value: '16px',
58
- showValue: true
59
- },
60
- {
61
- label: 'Large',
62
- value: '24px',
63
- showValue: true
64
- }
65
- ]
45
+ }
66
46
  },
47
+ // controlConfig: {
48
+ // id: 'gap-size',
49
+ // type: 'dropdown:input',
50
+ // label: 'Gap',
51
+ // inputType: 'number',
52
+ // units: ['px', '%'],
53
+ // hideUnit: false,
54
+ // linkWithSetting: {
55
+ // name: 'size',
56
+ // field: 'gap',
57
+ // },
58
+ // default: '12px',
59
+ // displayOptions: [
60
+ // {
61
+ // label: 'Small',
62
+ // value: '8px',
63
+ // showValue: true,
64
+ // },
65
+ // {
66
+ // label: 'Medium',
67
+ // value: '16px',
68
+ // showValue: true,
69
+ // },
70
+ // {
71
+ // label: 'Large',
72
+ // value: '24px',
73
+ // showValue: true,
74
+ // },
75
+ // ],
76
+ // },
67
77
  layout: 'horizontal'
68
78
  }
69
79
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-dev.564",
3
+ "version": "2.0.0-dev.566",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",