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

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.
@@ -127,6 +127,8 @@ const AccordionItem = (props)=>{
127
127
  ...composeIconPaddingGlobalSize
128
128
  },
129
129
  children: /*#__PURE__*/ jsxRuntime.jsx("span", {
130
+ className: composeLayoutTextClasses,
131
+ style: composeLayoutTextStyles,
130
132
  dangerouslySetInnerHTML: {
131
133
  __html: childrenIcon ?? ''
132
134
  }
@@ -19,7 +19,7 @@ const getIconRotateClasses = (styles, extraData)=>{
19
19
  return core.composeClasses(core.cls({
20
20
  '-gp-rotate-90': isShow === true && iconSvg !== 'plus' && !iconExpand,
21
21
  'gp-rotate-90': isShow === false && !iconCollapse
22
- }, 'group-hover:[color:var(--icon-hover-color)] gp-collapsible-icon gp-accordion-item_icon gp-inline-flex gp-items-center gp-justify-center gp-overflow-hidden gp-transition-all gp-duration-200 [&>svg]:!gp-h-[var(--height-iconCollapseSize)] [&>svg]:!gp-w-auto', isShow ? core.getGlobalColorClass('text', color?.active) : core.getGlobalColorStateClass('text', color)));
22
+ }, 'group-hover:[color:var(--icon-hover-color)] gp-collapsible-icon gp-accordion-item_icon gp-inline-flex gp-items-center gp-justify-center gp-overflow-hidden gp-transition-all gp-duration-200 [&>svg]:!gp-h-[var(--height-iconCollapseSize)] [&>svg]:!gp-w-full', isShow ? core.getGlobalColorClass('text', color?.active) : core.getGlobalColorStateClass('text', color)));
23
23
  };
24
24
  const getDropdownClasses = (styles, extraData)=>{
25
25
  const { isShow, uniqueId, makeIcon } = extraData || {};
@@ -103,12 +103,12 @@ const config = {
103
103
  ],
104
104
  layoutHeader: 'text-only',
105
105
  iconCollapse: `
106
- <svg height="100%" width="100%" xmlns="http://www.w3.org/2000/svg" classname="w-6 h-6" viewBox="0 0 512 512" fill="currentColor">
107
- <path fill="currentColor" strokelinecap="round" strokelinejoin="round" d="M256 64a16 16 0 0 1 16 16v160h160a16 16 0 0 1 0 32h-160v160a16 16 0 0 1 -32 0v-160h-160a16 16 0 0 1 0 -32h160v-160A16 16 0 0 1 256 64Z"></path></svg>
106
+ <svg height="100%" width="100%" data-name="plus-light" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" data-id="508817587901825384">
107
+ <path fill="currentColor" strokelinecap="round" strokelinejoin="round" d="M228,128a12,12,0,0,1-12,12H140v76a12,12,0,0,1-24,0V140H40a12,12,0,0,1,0-24h76V40a12,12,0,0,1,24,0v76h76A12,12,0,0,1,228,128Z"></path></svg>
108
108
  `,
109
109
  iconExpand: `
110
- <svg height="100%" width="100%" xmlns="http://www.w3.org/2000/svg" classname="w-6 h-6" viewBox="0 0 512 512" fill="currentColor">
111
- <path fill="currentColor" strokelinecap="round" strokelinejoin="round" d="M64 256a16 16 0 0 1 16 -16h352a16 16 0 0 1 0 32h-352A16 16 0 0 1 64 256Z"></path></svg>
110
+ <svg height="100%" width="100%" data-name="minus-light" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" data-id="508817584339812712">
111
+ <path fill="currentColor" strokelinecap="round" strokelinejoin="round" d="M228,128a12,12,0,0,1-12,12H40a12,12,0,0,1,0-24H216A12,12,0,0,1,228,128Z"></path></svg>
112
112
  `,
113
113
  iconPosition: 'left'
114
114
  },
@@ -155,7 +155,7 @@ const AccordionSettings = [
155
155
  default: 'before-text',
156
156
  options: [
157
157
  {
158
- label: 'Text only',
158
+ label: 'No icon',
159
159
  value: 'text-only',
160
160
  svgName: 'gp-accordion-header-no-icon'
161
161
  },
@@ -220,9 +220,12 @@ const AccordionSettings = [
220
220
  id: 'iconExpand',
221
221
  type: 'icon',
222
222
  label: 'Icon',
223
+ compoDefaultValue: `<svg data-name="Chevron-up" width="100%" height="100%" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
224
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M11.6243 9.82426C11.39 10.0586 11.0101 10.0586 10.7758 9.82426L8.00005 7.04853L5.22431 9.82426C4.99 10.0586 4.6101 10.0586 4.37579 9.82426C4.14147 9.58995 4.14147 9.21005 4.37579 8.97574L7.57579 5.77574C7.8101 5.54142 8.19 5.54142 8.42431 5.77574L11.6243 8.97574C11.8586 9.21005 11.8586 9.58995 11.6243 9.82426Z" fill="currentColor" />
225
+ </svg>`,
223
226
  default: `
224
- <svg data-name="Chevron-up" width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
225
- <path fill-rule="evenodd" clip-rule="evenodd" d="M11.6243 9.82426C11.39 10.0586 11.0101 10.0586 10.7758 9.82426L8.00005 7.04853L5.22431 9.82426C4.99 10.0586 4.6101 10.0586 4.37579 9.82426C4.14147 9.58995 4.14147 9.21005 4.37579 8.97574L7.57579 5.77574C7.8101 5.54142 8.19 5.54142 8.42431 5.77574L11.6243 8.97574C11.8586 9.21005 11.8586 9.58995 11.6243 9.82426Z" fill="#F9F9F9"/>
227
+ <svg data-name="Chevron-up" width="100%" height="100%" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
228
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M11.6243 9.82426C11.39 10.0586 11.0101 10.0586 10.7758 9.82426L8.00005 7.04853L5.22431 9.82426C4.99 10.0586 4.6101 10.0586 4.37579 9.82426C4.14147 9.58995 4.14147 9.21005 4.37579 8.97574L7.57579 5.77574C7.8101 5.54142 8.19 5.54142 8.42431 5.77574L11.6243 8.97574C11.8586 9.21005 11.8586 9.58995 11.6243 9.82426Z" fill="currentColor" />
226
229
  </svg>
227
230
  `,
228
231
  hideInput: true,
@@ -232,9 +235,12 @@ const AccordionSettings = [
232
235
  id: 'iconCollapse',
233
236
  type: 'icon',
234
237
  label: 'Icon',
238
+ compoDefaultValue: `<svg data-name="Chevron-down" width="100%" height="100%" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
239
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M4.57576 6.77571C4.81007 6.5414 5.18997 6.5414 5.42429 6.77571L8.20002 9.55145L10.9758 6.77571C11.2101 6.5414 11.59 6.5414 11.8243 6.77571C12.0586 7.01003 12.0586 7.38993 11.8243 7.62424L8.62429 10.8242C8.38997 11.0586 8.01007 11.0586 7.77576 10.8242L4.57576 7.62424C4.34145 7.38993 4.34145 7.01003 4.57576 6.77571Z" fill="currentColor" />
240
+ </svg>`,
235
241
  default: `
236
- <svg data-name="Chevron-down" width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
237
- <path fill-rule="evenodd" clip-rule="evenodd" d="M4.57576 6.77571C4.81007 6.5414 5.18997 6.5414 5.42429 6.77571L8.20002 9.55145L10.9758 6.77571C11.2101 6.5414 11.59 6.5414 11.8243 6.77571C12.0586 7.01003 12.0586 7.38993 11.8243 7.62424L8.62429 10.8242C8.38997 11.0586 8.01007 11.0586 7.77576 10.8242L4.57576 7.62424C4.34145 7.38993 4.34145 7.01003 4.57576 6.77571Z" fill="#F9F9F9"/>
242
+ <svg data-name="Chevron-down" width="100%" height="100%" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
243
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M4.57576 6.77571C4.81007 6.5414 5.18997 6.5414 5.42429 6.77571L8.20002 9.55145L10.9758 6.77571C11.2101 6.5414 11.59 6.5414 11.8243 6.77571C12.0586 7.01003 12.0586 7.38993 11.8243 7.62424L8.62429 10.8242C8.38997 11.0586 8.01007 11.0586 7.77576 10.8242L4.57576 7.62424C4.34145 7.38993 4.34145 7.01003 4.57576 6.77571Z" fill="currentColor" />
238
244
  </svg>
239
245
  `,
240
246
  hideInput: true,
@@ -66,7 +66,9 @@ const SettingUIV2 = [
66
66
  },
67
67
  type: 'combo',
68
68
  iconName: 'polaris-icons',
69
- fixedValue: 'Edited',
69
+ // fixedValue: 'Edited',
70
+ getValueFromSettingID: 'layoutHeader',
71
+ isShowSettingTitle: true,
70
72
  isHideClear: true,
71
73
  popoverLabel: {
72
74
  en: 'Title icon'
@@ -80,11 +80,7 @@ const getAlignStyle = (styles)=>{
80
80
  const getFlexChildren = core.composeClasses('gp-flex-1');
81
81
  const getContainerStyles = (composeSizeStyles, styles, style)=>{
82
82
  return {
83
- ...styles?.itemSpacing ? {
84
- ...core.makeStyle({
85
- gg: styles?.itemSpacing
86
- })
87
- } : composeSizeStyles,
83
+ ...composeSizeStyles,
88
84
  ...getAlignStyle(styles),
89
85
  ...style
90
86
  };
@@ -211,30 +211,6 @@ const config = {
211
211
  {
212
212
  id: 'style',
213
213
  controls: [
214
- {
215
- id: 'itemSpacing',
216
- type: 'dropdown:input',
217
- hideUnit: false,
218
- inputType: 'number',
219
- default: '12px',
220
- displayOptions: [
221
- {
222
- label: 'Small',
223
- value: '8px',
224
- showValue: true
225
- },
226
- {
227
- label: 'Medium',
228
- value: '16px',
229
- showValue: true
230
- },
231
- {
232
- label: 'Large',
233
- value: '24px',
234
- showValue: true
235
- }
236
- ]
237
- },
238
214
  {
239
215
  id: 'size',
240
216
  type: 'size-setting',
@@ -248,7 +224,7 @@ const config = {
248
224
  bottom: '24px',
249
225
  right: '16px'
250
226
  },
251
- // gap: '12px',
227
+ gap: '12px',
252
228
  width: '100%'
253
229
  }
254
230
  }
@@ -464,7 +440,10 @@ const config = {
464
440
  childItem: [],
465
441
  layout: 'vertical-layout'
466
442
  },
467
- childrens: []
443
+ childrens: [],
444
+ advanced: {
445
+ of: 'hidden'
446
+ }
468
447
  }
469
448
  ]
470
449
  },
@@ -494,7 +473,10 @@ const config = {
494
473
  layout: 'horizontal-layout',
495
474
  enableIcon: false
496
475
  },
497
- childrens: []
476
+ childrens: [],
477
+ advanced: {
478
+ of: 'hidden'
479
+ }
498
480
  }
499
481
  ]
500
482
  }
@@ -22,13 +22,53 @@ const ControlUIV2 = [
22
22
  en: 'Item gap'
23
23
  },
24
24
  controls: [
25
+ // {
26
+ // label: {
27
+ // en: 'Gap',
28
+ // },
29
+ // setting: {
30
+ // id: 'itemSpacing',
31
+ // },
32
+ // },
25
33
  {
34
+ id: 'Width',
26
35
  label: {
27
- en: 'Gap'
36
+ en: 'Width'
28
37
  },
29
- setting: {
30
- id: 'itemSpacing'
31
- }
38
+ controlConfig: {
39
+ id: 'gap-size',
40
+ type: 'dropdown:input',
41
+ label: 'Gap',
42
+ inputType: 'number',
43
+ units: [
44
+ 'px',
45
+ '%'
46
+ ],
47
+ hideUnit: false,
48
+ linkWithSetting: {
49
+ name: 'size',
50
+ 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
+ ]
70
+ },
71
+ layout: 'horizontal'
32
72
  }
33
73
  ]
34
74
  },
@@ -387,24 +387,6 @@ const StockCounterSettingsV2 = [
387
387
  btlr: '99999px',
388
388
  radiusType: 'circle'
389
389
  }
390
- },
391
- tablet: {
392
- default: {
393
- btrr: '99999px',
394
- bblr: '99999px',
395
- bbrr: '99999px',
396
- btlr: '99999px',
397
- radiusType: 'circle'
398
- }
399
- },
400
- mobile: {
401
- default: {
402
- btrr: '99999px',
403
- bblr: '99999px',
404
- bbrr: '99999px',
405
- btlr: '99999px',
406
- radiusType: 'circle'
407
- }
408
390
  }
409
391
  },
410
392
  compoDefaultValue: {
@@ -123,6 +123,8 @@ const AccordionItem = (props)=>{
123
123
  ...composeIconPaddingGlobalSize
124
124
  },
125
125
  children: /*#__PURE__*/ jsx("span", {
126
+ className: composeLayoutTextClasses,
127
+ style: composeLayoutTextStyles,
126
128
  dangerouslySetInnerHTML: {
127
129
  __html: childrenIcon ?? ''
128
130
  }
@@ -17,7 +17,7 @@ const getIconRotateClasses = (styles, extraData)=>{
17
17
  return composeClasses(cls({
18
18
  '-gp-rotate-90': isShow === true && iconSvg !== 'plus' && !iconExpand,
19
19
  'gp-rotate-90': isShow === false && !iconCollapse
20
- }, 'group-hover:[color:var(--icon-hover-color)] gp-collapsible-icon gp-accordion-item_icon gp-inline-flex gp-items-center gp-justify-center gp-overflow-hidden gp-transition-all gp-duration-200 [&>svg]:!gp-h-[var(--height-iconCollapseSize)] [&>svg]:!gp-w-auto', isShow ? getGlobalColorClass('text', color?.active) : getGlobalColorStateClass('text', color)));
20
+ }, 'group-hover:[color:var(--icon-hover-color)] gp-collapsible-icon gp-accordion-item_icon gp-inline-flex gp-items-center gp-justify-center gp-overflow-hidden gp-transition-all gp-duration-200 [&>svg]:!gp-h-[var(--height-iconCollapseSize)] [&>svg]:!gp-w-full', isShow ? getGlobalColorClass('text', color?.active) : getGlobalColorStateClass('text', color)));
21
21
  };
22
22
  const getDropdownClasses = (styles, extraData)=>{
23
23
  const { isShow, uniqueId, makeIcon } = extraData || {};
@@ -99,12 +99,12 @@ const config = {
99
99
  ],
100
100
  layoutHeader: 'text-only',
101
101
  iconCollapse: `
102
- <svg height="100%" width="100%" xmlns="http://www.w3.org/2000/svg" classname="w-6 h-6" viewBox="0 0 512 512" fill="currentColor">
103
- <path fill="currentColor" strokelinecap="round" strokelinejoin="round" d="M256 64a16 16 0 0 1 16 16v160h160a16 16 0 0 1 0 32h-160v160a16 16 0 0 1 -32 0v-160h-160a16 16 0 0 1 0 -32h160v-160A16 16 0 0 1 256 64Z"></path></svg>
102
+ <svg height="100%" width="100%" data-name="plus-light" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" data-id="508817587901825384">
103
+ <path fill="currentColor" strokelinecap="round" strokelinejoin="round" d="M228,128a12,12,0,0,1-12,12H140v76a12,12,0,0,1-24,0V140H40a12,12,0,0,1,0-24h76V40a12,12,0,0,1,24,0v76h76A12,12,0,0,1,228,128Z"></path></svg>
104
104
  `,
105
105
  iconExpand: `
106
- <svg height="100%" width="100%" xmlns="http://www.w3.org/2000/svg" classname="w-6 h-6" viewBox="0 0 512 512" fill="currentColor">
107
- <path fill="currentColor" strokelinecap="round" strokelinejoin="round" d="M64 256a16 16 0 0 1 16 -16h352a16 16 0 0 1 0 32h-352A16 16 0 0 1 64 256Z"></path></svg>
106
+ <svg height="100%" width="100%" data-name="minus-light" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" data-id="508817584339812712">
107
+ <path fill="currentColor" strokelinecap="round" strokelinejoin="round" d="M228,128a12,12,0,0,1-12,12H40a12,12,0,0,1,0-24H216A12,12,0,0,1,228,128Z"></path></svg>
108
108
  `,
109
109
  iconPosition: 'left'
110
110
  },
@@ -153,7 +153,7 @@ const AccordionSettings = [
153
153
  default: 'before-text',
154
154
  options: [
155
155
  {
156
- label: 'Text only',
156
+ label: 'No icon',
157
157
  value: 'text-only',
158
158
  svgName: 'gp-accordion-header-no-icon'
159
159
  },
@@ -218,9 +218,12 @@ const AccordionSettings = [
218
218
  id: 'iconExpand',
219
219
  type: 'icon',
220
220
  label: 'Icon',
221
+ compoDefaultValue: `<svg data-name="Chevron-up" width="100%" height="100%" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
222
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M11.6243 9.82426C11.39 10.0586 11.0101 10.0586 10.7758 9.82426L8.00005 7.04853L5.22431 9.82426C4.99 10.0586 4.6101 10.0586 4.37579 9.82426C4.14147 9.58995 4.14147 9.21005 4.37579 8.97574L7.57579 5.77574C7.8101 5.54142 8.19 5.54142 8.42431 5.77574L11.6243 8.97574C11.8586 9.21005 11.8586 9.58995 11.6243 9.82426Z" fill="currentColor" />
223
+ </svg>`,
221
224
  default: `
222
- <svg data-name="Chevron-up" width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
223
- <path fill-rule="evenodd" clip-rule="evenodd" d="M11.6243 9.82426C11.39 10.0586 11.0101 10.0586 10.7758 9.82426L8.00005 7.04853L5.22431 9.82426C4.99 10.0586 4.6101 10.0586 4.37579 9.82426C4.14147 9.58995 4.14147 9.21005 4.37579 8.97574L7.57579 5.77574C7.8101 5.54142 8.19 5.54142 8.42431 5.77574L11.6243 8.97574C11.8586 9.21005 11.8586 9.58995 11.6243 9.82426Z" fill="#F9F9F9"/>
225
+ <svg data-name="Chevron-up" width="100%" height="100%" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
226
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M11.6243 9.82426C11.39 10.0586 11.0101 10.0586 10.7758 9.82426L8.00005 7.04853L5.22431 9.82426C4.99 10.0586 4.6101 10.0586 4.37579 9.82426C4.14147 9.58995 4.14147 9.21005 4.37579 8.97574L7.57579 5.77574C7.8101 5.54142 8.19 5.54142 8.42431 5.77574L11.6243 8.97574C11.8586 9.21005 11.8586 9.58995 11.6243 9.82426Z" fill="currentColor" />
224
227
  </svg>
225
228
  `,
226
229
  hideInput: true,
@@ -230,9 +233,12 @@ const AccordionSettings = [
230
233
  id: 'iconCollapse',
231
234
  type: 'icon',
232
235
  label: 'Icon',
236
+ compoDefaultValue: `<svg data-name="Chevron-down" width="100%" height="100%" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
237
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M4.57576 6.77571C4.81007 6.5414 5.18997 6.5414 5.42429 6.77571L8.20002 9.55145L10.9758 6.77571C11.2101 6.5414 11.59 6.5414 11.8243 6.77571C12.0586 7.01003 12.0586 7.38993 11.8243 7.62424L8.62429 10.8242C8.38997 11.0586 8.01007 11.0586 7.77576 10.8242L4.57576 7.62424C4.34145 7.38993 4.34145 7.01003 4.57576 6.77571Z" fill="currentColor" />
238
+ </svg>`,
233
239
  default: `
234
- <svg data-name="Chevron-down" width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
235
- <path fill-rule="evenodd" clip-rule="evenodd" d="M4.57576 6.77571C4.81007 6.5414 5.18997 6.5414 5.42429 6.77571L8.20002 9.55145L10.9758 6.77571C11.2101 6.5414 11.59 6.5414 11.8243 6.77571C12.0586 7.01003 12.0586 7.38993 11.8243 7.62424L8.62429 10.8242C8.38997 11.0586 8.01007 11.0586 7.77576 10.8242L4.57576 7.62424C4.34145 7.38993 4.34145 7.01003 4.57576 6.77571Z" fill="#F9F9F9"/>
240
+ <svg data-name="Chevron-down" width="100%" height="100%" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
241
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M4.57576 6.77571C4.81007 6.5414 5.18997 6.5414 5.42429 6.77571L8.20002 9.55145L10.9758 6.77571C11.2101 6.5414 11.59 6.5414 11.8243 6.77571C12.0586 7.01003 12.0586 7.38993 11.8243 7.62424L8.62429 10.8242C8.38997 11.0586 8.01007 11.0586 7.77576 10.8242L4.57576 7.62424C4.34145 7.38993 4.34145 7.01003 4.57576 6.77571Z" fill="currentColor" />
236
242
  </svg>
237
243
  `,
238
244
  hideInput: true,
@@ -64,7 +64,9 @@ const SettingUIV2 = [
64
64
  },
65
65
  type: 'combo',
66
66
  iconName: 'polaris-icons',
67
- fixedValue: 'Edited',
67
+ // fixedValue: 'Edited',
68
+ getValueFromSettingID: 'layoutHeader',
69
+ isShowSettingTitle: true,
68
70
  isHideClear: true,
69
71
  popoverLabel: {
70
72
  en: 'Title icon'
@@ -78,11 +78,7 @@ const getAlignStyle = (styles)=>{
78
78
  const getFlexChildren = composeClasses('gp-flex-1');
79
79
  const getContainerStyles = (composeSizeStyles, styles, style)=>{
80
80
  return {
81
- ...styles?.itemSpacing ? {
82
- ...makeStyle({
83
- gg: styles?.itemSpacing
84
- })
85
- } : composeSizeStyles,
81
+ ...composeSizeStyles,
86
82
  ...getAlignStyle(styles),
87
83
  ...style
88
84
  };
@@ -207,30 +207,6 @@ const config = {
207
207
  {
208
208
  id: 'style',
209
209
  controls: [
210
- {
211
- id: 'itemSpacing',
212
- type: 'dropdown:input',
213
- hideUnit: false,
214
- inputType: 'number',
215
- default: '12px',
216
- displayOptions: [
217
- {
218
- label: 'Small',
219
- value: '8px',
220
- showValue: true
221
- },
222
- {
223
- label: 'Medium',
224
- value: '16px',
225
- showValue: true
226
- },
227
- {
228
- label: 'Large',
229
- value: '24px',
230
- showValue: true
231
- }
232
- ]
233
- },
234
210
  {
235
211
  id: 'size',
236
212
  type: 'size-setting',
@@ -244,7 +220,7 @@ const config = {
244
220
  bottom: '24px',
245
221
  right: '16px'
246
222
  },
247
- // gap: '12px',
223
+ gap: '12px',
248
224
  width: '100%'
249
225
  }
250
226
  }
@@ -460,7 +436,10 @@ const config = {
460
436
  childItem: [],
461
437
  layout: 'vertical-layout'
462
438
  },
463
- childrens: []
439
+ childrens: [],
440
+ advanced: {
441
+ of: 'hidden'
442
+ }
464
443
  }
465
444
  ]
466
445
  },
@@ -490,7 +469,10 @@ const config = {
490
469
  layout: 'horizontal-layout',
491
470
  enableIcon: false
492
471
  },
493
- childrens: []
472
+ childrens: [],
473
+ advanced: {
474
+ of: 'hidden'
475
+ }
494
476
  }
495
477
  ]
496
478
  }
@@ -18,13 +18,53 @@ const ControlUIV2 = [
18
18
  en: 'Item gap'
19
19
  },
20
20
  controls: [
21
+ // {
22
+ // label: {
23
+ // en: 'Gap',
24
+ // },
25
+ // setting: {
26
+ // id: 'itemSpacing',
27
+ // },
28
+ // },
21
29
  {
30
+ id: 'Width',
22
31
  label: {
23
- en: 'Gap'
32
+ en: 'Width'
24
33
  },
25
- setting: {
26
- id: 'itemSpacing'
27
- }
34
+ controlConfig: {
35
+ id: 'gap-size',
36
+ type: 'dropdown:input',
37
+ label: 'Gap',
38
+ inputType: 'number',
39
+ units: [
40
+ 'px',
41
+ '%'
42
+ ],
43
+ hideUnit: false,
44
+ linkWithSetting: {
45
+ name: 'size',
46
+ 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
+ ]
66
+ },
67
+ layout: 'horizontal'
28
68
  }
29
69
  ]
30
70
  },
@@ -385,24 +385,6 @@ const StockCounterSettingsV2 = [
385
385
  btlr: '99999px',
386
386
  radiusType: 'circle'
387
387
  }
388
- },
389
- tablet: {
390
- default: {
391
- btrr: '99999px',
392
- bblr: '99999px',
393
- bbrr: '99999px',
394
- btlr: '99999px',
395
- radiusType: 'circle'
396
- }
397
- },
398
- mobile: {
399
- default: {
400
- btrr: '99999px',
401
- bblr: '99999px',
402
- bbrr: '99999px',
403
- btlr: '99999px',
404
- radiusType: 'circle'
405
- }
406
388
  }
407
389
  },
408
390
  compoDefaultValue: {
@@ -4068,7 +4068,6 @@ type ProductBundleDiscountProps = BasePropsWrap<{
4068
4068
  borderBundle?: StateProp<Border>;
4069
4069
  roundedBundle?: StateProp<CornerRadius>;
4070
4070
  align?: string;
4071
- itemSpacing?: Property.Padding;
4072
4071
  }> & {
4073
4072
  children: React.ReactNode[];
4074
4073
  rawChildren?: any[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-dev.562",
3
+ "version": "2.0.0-dev.564",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",