@gem-sdk/components 2.0.0-dev.358 → 2.0.0-dev.359

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.
@@ -78,7 +78,11 @@ const SettingV2 = [
78
78
  min: 0,
79
79
  max: 100,
80
80
  step: 1,
81
- default: '8'
81
+ units: [
82
+ '%'
83
+ ],
84
+ hide: true,
85
+ default: '1%'
82
86
  },
83
87
  {
84
88
  id: 'spacingVertical',
@@ -64,6 +64,7 @@ const ProductQuantitySettings = [
64
64
  id: 'quantityLayout',
65
65
  label: 'Style',
66
66
  type: 'layout-selector',
67
+ popoverLabel: 'Style',
67
68
  iconViewBox: '0 0 80 48',
68
69
  enableItemBackground: true,
69
70
  itemPerRow: 2,
@@ -191,7 +191,8 @@ const SettingUIV2 = [
191
191
  },
192
192
  setting: {
193
193
  id: 'buttonWidth'
194
- }
194
+ },
195
+ conditionDisplay: 'hasButton === true'
195
196
  },
196
197
  {
197
198
  label: {
@@ -200,7 +201,8 @@ const SettingUIV2 = [
200
201
  setting: {
201
202
  id: 'buttonBackgroundColor',
202
203
  state: 'normal'
203
- }
204
+ },
205
+ conditionDisplay: 'hasButton === true'
204
206
  },
205
207
  {
206
208
  label: {
@@ -208,7 +210,8 @@ const SettingUIV2 = [
208
210
  },
209
211
  setting: {
210
212
  id: 'plusIcon'
211
- }
213
+ },
214
+ conditionDisplay: 'hasButton === true'
212
215
  },
213
216
  {
214
217
  label: {
@@ -216,7 +219,8 @@ const SettingUIV2 = [
216
219
  },
217
220
  setting: {
218
221
  id: 'minusIcon'
219
- }
222
+ },
223
+ conditionDisplay: 'hasButton === true'
220
224
  },
221
225
  {
222
226
  label: {
@@ -225,7 +229,8 @@ const SettingUIV2 = [
225
229
  setting: {
226
230
  id: 'iconColor',
227
231
  state: 'normal'
228
- }
232
+ },
233
+ conditionDisplay: 'hasButton === true'
229
234
  }
230
235
  ],
231
236
  moreSettings: {
@@ -237,7 +242,8 @@ const SettingUIV2 = [
237
242
  },
238
243
  setting: {
239
244
  id: 'iconSizeCustom'
240
- }
245
+ },
246
+ conditionDisplay: 'hasButton === true'
241
247
  },
242
248
  {
243
249
  label: {
@@ -250,6 +256,7 @@ const SettingUIV2 = [
250
256
  popoverLabel: {
251
257
  en: 'Hover effect'
252
258
  },
259
+ conditionDisplay: 'hasButton === true',
253
260
  controls: [
254
261
  {
255
262
  label: {
@@ -76,7 +76,11 @@ const SettingV2 = [
76
76
  min: 0,
77
77
  max: 100,
78
78
  step: 1,
79
- default: '8'
79
+ units: [
80
+ '%'
81
+ ],
82
+ hide: true,
83
+ default: '1%'
80
84
  },
81
85
  {
82
86
  id: 'spacingVertical',
@@ -62,6 +62,7 @@ const ProductQuantitySettings = [
62
62
  id: 'quantityLayout',
63
63
  label: 'Style',
64
64
  type: 'layout-selector',
65
+ popoverLabel: 'Style',
65
66
  iconViewBox: '0 0 80 48',
66
67
  enableItemBackground: true,
67
68
  itemPerRow: 2,
@@ -189,7 +189,8 @@ const SettingUIV2 = [
189
189
  },
190
190
  setting: {
191
191
  id: 'buttonWidth'
192
- }
192
+ },
193
+ conditionDisplay: 'hasButton === true'
193
194
  },
194
195
  {
195
196
  label: {
@@ -198,7 +199,8 @@ const SettingUIV2 = [
198
199
  setting: {
199
200
  id: 'buttonBackgroundColor',
200
201
  state: 'normal'
201
- }
202
+ },
203
+ conditionDisplay: 'hasButton === true'
202
204
  },
203
205
  {
204
206
  label: {
@@ -206,7 +208,8 @@ const SettingUIV2 = [
206
208
  },
207
209
  setting: {
208
210
  id: 'plusIcon'
209
- }
211
+ },
212
+ conditionDisplay: 'hasButton === true'
210
213
  },
211
214
  {
212
215
  label: {
@@ -214,7 +217,8 @@ const SettingUIV2 = [
214
217
  },
215
218
  setting: {
216
219
  id: 'minusIcon'
217
- }
220
+ },
221
+ conditionDisplay: 'hasButton === true'
218
222
  },
219
223
  {
220
224
  label: {
@@ -223,7 +227,8 @@ const SettingUIV2 = [
223
227
  setting: {
224
228
  id: 'iconColor',
225
229
  state: 'normal'
226
- }
230
+ },
231
+ conditionDisplay: 'hasButton === true'
227
232
  }
228
233
  ],
229
234
  moreSettings: {
@@ -235,7 +240,8 @@ const SettingUIV2 = [
235
240
  },
236
241
  setting: {
237
242
  id: 'iconSizeCustom'
238
- }
243
+ },
244
+ conditionDisplay: 'hasButton === true'
239
245
  },
240
246
  {
241
247
  label: {
@@ -248,6 +254,7 @@ const SettingUIV2 = [
248
254
  popoverLabel: {
249
255
  en: 'Hover effect'
250
256
  },
257
+ conditionDisplay: 'hasButton === true',
251
258
  controls: [
252
259
  {
253
260
  label: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-dev.358",
3
+ "version": "2.0.0-dev.359",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",