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

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.
@@ -181,24 +181,16 @@ const config = {
181
181
  },
182
182
  styles: {
183
183
  bgColor: {
184
- normal: '#333333',
185
- active: '#333333',
186
- hover: '#333333'
184
+ normal: '#333333'
187
185
  },
188
186
  iconColor: {
189
- normal: '#EAEAEA',
190
- active: '#EAEAEA',
191
- hover: '#EAEAEA'
187
+ normal: '#EAEAEA'
192
188
  },
193
189
  textColor: {
194
- normal: '#EAEAEA',
195
- active: '#EAEAEA',
196
- hover: '#EAEAEA'
190
+ normal: '#EAEAEA'
197
191
  },
198
192
  color: {
199
- normal: '#EAEAEA',
200
- active: '#EAEAEA',
201
- hover: '#EAEAEA'
193
+ normal: '#EAEAEA'
202
194
  },
203
195
  itemGap: '16px'
204
196
  },
@@ -16,7 +16,7 @@ const AccordionSettings = [
16
16
  'Accordion 3'
17
17
  ],
18
18
  childTemplate: ItemTemplate.itemControlTemplate,
19
- expandItem: true
19
+ expandItem: false
20
20
  },
21
21
  {
22
22
  id: 'translate',
@@ -13,7 +13,7 @@ const ArticleImageSettings = [
13
13
  id: 'alt',
14
14
  label: 'Alt Text',
15
15
  type: 'textarea',
16
- minHeight: 100,
16
+ minHeight: 56,
17
17
  autoHeight: true,
18
18
  placeholder: 'E.g: This is a very long value for text area field'
19
19
  },
@@ -21,7 +21,9 @@ const ArticleImageSettings = [
21
21
  id: 'title',
22
22
  label: 'Image title',
23
23
  info: 'Show title when hover to image',
24
- type: 'input',
24
+ type: 'textarea',
25
+ minHeight: 56,
26
+ autoHeight: true,
25
27
  placeholder: 'E.g: White t-shirt'
26
28
  }
27
29
  ]
@@ -237,10 +237,7 @@ const ArticleListSettings = [
237
237
  {
238
238
  id: 'borderRadius',
239
239
  type: 'corner-v2',
240
- label: 'Corner',
241
- default: {
242
- radiusType: 'none'
243
- }
240
+ label: 'Corner'
244
241
  },
245
242
  {
246
243
  id: 'hasActiveShadow',
@@ -153,8 +153,7 @@ const uiV2 = [
153
153
  en: 'Border'
154
154
  },
155
155
  setting: {
156
- id: 'wrapperBorder',
157
- state: 'normal'
156
+ id: 'wrapperBorder'
158
157
  }
159
158
  },
160
159
  {
@@ -162,8 +161,7 @@ const uiV2 = [
162
161
  en: 'Corner'
163
162
  },
164
163
  setting: {
165
- id: 'borderRadius',
166
- state: 'normal'
164
+ id: 'borderRadius'
167
165
  }
168
166
  },
169
167
  {
@@ -171,45 +169,41 @@ const uiV2 = [
171
169
  en: 'Shadow'
172
170
  },
173
171
  setting: {
174
- id: 'boxShadow',
175
- state: 'normal'
172
+ id: 'shadow'
176
173
  },
177
174
  options: {
178
175
  updateFields: [
179
176
  {
180
- field: 'normal.enable',
181
- settingId: 'hasBoxShadow',
182
- state: 'normal'
177
+ field: 'enable',
178
+ settingId: 'hasActiveShadow'
183
179
  }
184
180
  ]
185
181
  },
186
182
  controlChangeTrigger: {
187
183
  settings: [
188
184
  {
189
- condition: `boxShadow.normal.enable === true`,
185
+ condition: `shadow.enable === true`,
190
186
  source: [
191
- 'boxShadow',
192
- 'hasBoxShadow'
187
+ 'shadow',
188
+ 'hasActiveShadow'
193
189
  ],
194
190
  action: {
195
- controlId: 'hasBoxShadow',
196
- groupType: 'advanced',
197
- controlType: 'advanced',
198
- state: 'normal',
191
+ controlId: 'hasActiveShadow',
192
+ groupType: 'style',
193
+ controlType: 'style',
199
194
  newValue: true
200
195
  }
201
196
  },
202
197
  {
203
- condition: `boxShadow.normal.enable === false`,
198
+ condition: `shadow.enable === false`,
204
199
  source: [
205
- 'boxShadow',
206
- 'hasBoxShadow'
200
+ 'shadow',
201
+ 'hasActiveShadow'
207
202
  ],
208
203
  action: {
209
- controlId: 'hasBoxShadow',
210
- groupType: 'advanced',
211
- controlType: 'advanced',
212
- state: 'normal',
204
+ controlId: 'hasActiveShadow',
205
+ groupType: 'style',
206
+ controlType: 'style',
213
207
  newValue: false
214
208
  }
215
209
  }
@@ -177,24 +177,16 @@ const config = {
177
177
  },
178
178
  styles: {
179
179
  bgColor: {
180
- normal: '#333333',
181
- active: '#333333',
182
- hover: '#333333'
180
+ normal: '#333333'
183
181
  },
184
182
  iconColor: {
185
- normal: '#EAEAEA',
186
- active: '#EAEAEA',
187
- hover: '#EAEAEA'
183
+ normal: '#EAEAEA'
188
184
  },
189
185
  textColor: {
190
- normal: '#EAEAEA',
191
- active: '#EAEAEA',
192
- hover: '#EAEAEA'
186
+ normal: '#EAEAEA'
193
187
  },
194
188
  color: {
195
- normal: '#EAEAEA',
196
- active: '#EAEAEA',
197
- hover: '#EAEAEA'
189
+ normal: '#EAEAEA'
198
190
  },
199
191
  itemGap: '16px'
200
192
  },
@@ -14,7 +14,7 @@ const AccordionSettings = [
14
14
  'Accordion 3'
15
15
  ],
16
16
  childTemplate: itemControlTemplate,
17
- expandItem: true
17
+ expandItem: false
18
18
  },
19
19
  {
20
20
  id: 'translate',
@@ -11,7 +11,7 @@ const ArticleImageSettings = [
11
11
  id: 'alt',
12
12
  label: 'Alt Text',
13
13
  type: 'textarea',
14
- minHeight: 100,
14
+ minHeight: 56,
15
15
  autoHeight: true,
16
16
  placeholder: 'E.g: This is a very long value for text area field'
17
17
  },
@@ -19,7 +19,9 @@ const ArticleImageSettings = [
19
19
  id: 'title',
20
20
  label: 'Image title',
21
21
  info: 'Show title when hover to image',
22
- type: 'input',
22
+ type: 'textarea',
23
+ minHeight: 56,
24
+ autoHeight: true,
23
25
  placeholder: 'E.g: White t-shirt'
24
26
  }
25
27
  ]
@@ -235,10 +235,7 @@ const ArticleListSettings = [
235
235
  {
236
236
  id: 'borderRadius',
237
237
  type: 'corner-v2',
238
- label: 'Corner',
239
- default: {
240
- radiusType: 'none'
241
- }
238
+ label: 'Corner'
242
239
  },
243
240
  {
244
241
  id: 'hasActiveShadow',
@@ -151,8 +151,7 @@ const uiV2 = [
151
151
  en: 'Border'
152
152
  },
153
153
  setting: {
154
- id: 'wrapperBorder',
155
- state: 'normal'
154
+ id: 'wrapperBorder'
156
155
  }
157
156
  },
158
157
  {
@@ -160,8 +159,7 @@ const uiV2 = [
160
159
  en: 'Corner'
161
160
  },
162
161
  setting: {
163
- id: 'borderRadius',
164
- state: 'normal'
162
+ id: 'borderRadius'
165
163
  }
166
164
  },
167
165
  {
@@ -169,45 +167,41 @@ const uiV2 = [
169
167
  en: 'Shadow'
170
168
  },
171
169
  setting: {
172
- id: 'boxShadow',
173
- state: 'normal'
170
+ id: 'shadow'
174
171
  },
175
172
  options: {
176
173
  updateFields: [
177
174
  {
178
- field: 'normal.enable',
179
- settingId: 'hasBoxShadow',
180
- state: 'normal'
175
+ field: 'enable',
176
+ settingId: 'hasActiveShadow'
181
177
  }
182
178
  ]
183
179
  },
184
180
  controlChangeTrigger: {
185
181
  settings: [
186
182
  {
187
- condition: `boxShadow.normal.enable === true`,
183
+ condition: `shadow.enable === true`,
188
184
  source: [
189
- 'boxShadow',
190
- 'hasBoxShadow'
185
+ 'shadow',
186
+ 'hasActiveShadow'
191
187
  ],
192
188
  action: {
193
- controlId: 'hasBoxShadow',
194
- groupType: 'advanced',
195
- controlType: 'advanced',
196
- state: 'normal',
189
+ controlId: 'hasActiveShadow',
190
+ groupType: 'style',
191
+ controlType: 'style',
197
192
  newValue: true
198
193
  }
199
194
  },
200
195
  {
201
- condition: `boxShadow.normal.enable === false`,
196
+ condition: `shadow.enable === false`,
202
197
  source: [
203
- 'boxShadow',
204
- 'hasBoxShadow'
198
+ 'shadow',
199
+ 'hasActiveShadow'
205
200
  ],
206
201
  action: {
207
- controlId: 'hasBoxShadow',
208
- groupType: 'advanced',
209
- controlType: 'advanced',
210
- state: 'normal',
202
+ controlId: 'hasActiveShadow',
203
+ groupType: 'style',
204
+ controlType: 'style',
211
205
  newValue: false
212
206
  }
213
207
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-dev.561",
3
+ "version": "2.0.0-dev.562",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",