@gem-sdk/components 2.0.0-dev.539 → 2.0.0-dev.541

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 (42) hide show
  1. package/dist/cjs/article/components/ArticleContent.js +20 -3
  2. package/dist/cjs/article/components/ArticleExcerpt.js +20 -5
  3. package/dist/cjs/article/components/ArticleTag.js +2 -2
  4. package/dist/cjs/article/setting/configs/ArticleList/settings.js +6 -61
  5. package/dist/cjs/article/setting/configs/ArticleList/uiV2.js +2 -2
  6. package/dist/cjs/button/setting/configs/settings.js +14 -0
  7. package/dist/cjs/common/components/NoDataState.js +13 -1
  8. package/dist/cjs/estimate-delivery/components/EstimateDate.js +1 -3
  9. package/dist/cjs/estimate-delivery/setting/configs/settings.js +25 -49
  10. package/dist/cjs/estimate-delivery/setting/configs/uiV2.js +55 -62
  11. package/dist/cjs/image/components/AdaptiveImage.js +2 -2
  12. package/dist/cjs/image/components/common/styles.js +1 -1
  13. package/dist/cjs/image/setting/configs/settings.js +8 -4
  14. package/dist/cjs/image/setting/configs/uiV2.js +42 -43
  15. package/dist/cjs/image-comparison/components/hooks/useCompareImage.js +3 -2
  16. package/dist/cjs/image-comparison/setting/configs/settings.js +11 -5
  17. package/dist/cjs/product/setting/product-view-more/configs/settings.js +14 -0
  18. package/dist/cjs/tab/components/common/getClasses.js +1 -1
  19. package/dist/cjs/tab/setting/Tabs.js +3 -0
  20. package/dist/cjs/tab/setting/configs/settings.js +5 -5
  21. package/dist/esm/article/components/ArticleContent.js +21 -4
  22. package/dist/esm/article/components/ArticleExcerpt.js +21 -6
  23. package/dist/esm/article/components/ArticleTag.js +2 -2
  24. package/dist/esm/article/setting/configs/ArticleList/settings.js +6 -61
  25. package/dist/esm/article/setting/configs/ArticleList/uiV2.js +2 -2
  26. package/dist/esm/button/setting/configs/settings.js +14 -0
  27. package/dist/esm/common/components/NoDataState.js +13 -1
  28. package/dist/esm/estimate-delivery/components/EstimateDate.js +1 -3
  29. package/dist/esm/estimate-delivery/setting/configs/settings.js +25 -49
  30. package/dist/esm/estimate-delivery/setting/configs/uiV2.js +55 -62
  31. package/dist/esm/image/components/AdaptiveImage.js +2 -2
  32. package/dist/esm/image/components/common/styles.js +1 -1
  33. package/dist/esm/image/setting/configs/settings.js +8 -4
  34. package/dist/esm/image/setting/configs/uiV2.js +42 -43
  35. package/dist/esm/image-comparison/components/hooks/useCompareImage.js +3 -2
  36. package/dist/esm/image-comparison/setting/configs/settings.js +11 -5
  37. package/dist/esm/product/setting/product-view-more/configs/settings.js +14 -0
  38. package/dist/esm/tab/components/common/getClasses.js +1 -1
  39. package/dist/esm/tab/setting/Tabs.js +3 -0
  40. package/dist/esm/tab/setting/configs/settings.js +5 -5
  41. package/dist/types/index.d.ts +3 -0
  42. package/package.json +2 -2
@@ -6,14 +6,21 @@ Object.defineProperty(exports, '__esModule', { value: true });
6
6
  var jsxRuntime = require('react/jsx-runtime');
7
7
  var core = require('@gem-sdk/core');
8
8
  var React = require('react');
9
+ var NoDataState = require('../../common/components/NoDataState.js');
9
10
 
10
11
  const ArticleContent = ({ styles, builderProps })=>{
11
12
  const article = core.useArticleStore((s)=>s.article);
12
13
  const [open, setOpen] = React.useState(false);
13
14
  const ref = React.useRef(null);
14
15
  const currentDevice = core.useCurrentDevice();
16
+ const storefrontUrl = core.useShopStore((s)=>s.storefrontUrl);
15
17
  const hasLineClamp = core.getResponsiveValueByScreen(styles?.hasLineClamp, currentDevice);
16
18
  const lineClamp = core.getResponsiveValueByScreen(styles?.lineClamp, currentDevice);
19
+ const addExcerptLink = ()=>{
20
+ if (!storefrontUrl) return undefined;
21
+ const url = new URL(storefrontUrl);
22
+ window.open(`${url.protocol}//${url.host}/admin/content/articles`);
23
+ };
17
24
  React.useEffect(()=>{
18
25
  setOpen(false);
19
26
  }, [
@@ -46,9 +53,19 @@ const ArticleContent = ({ styles, builderProps })=>{
46
53
  className: "gp-article-description",
47
54
  "data-article-id": article?.baseID?.replace('gid://shopify/OnlineStoreArticle/', ''),
48
55
  children: !article?.description ? /*#__PURE__*/ jsxRuntime.jsx("div", {
49
- children: /*#__PURE__*/ jsxRuntime.jsx("p", {
50
- className: "gp-p-2 gp-text-sm gp-font-semibold gp-text-gray-500",
51
- children: "This article does not have content."
56
+ children: /*#__PURE__*/ jsxRuntime.jsx(NoDataState.default, {
57
+ elementType: "secondary",
58
+ description: "Inform and provide value to the audience with article content.",
59
+ descriptionActions: [
60
+ {
61
+ text: 'Add article content',
62
+ callback: addExcerptLink
63
+ },
64
+ {
65
+ text: 'sync data',
66
+ callback: 'syncArticle'
67
+ }
68
+ ]
52
69
  })
53
70
  }) : /*#__PURE__*/ jsxRuntime.jsxs(jsxRuntime.Fragment, {
54
71
  children: [
@@ -9,23 +9,38 @@ var Text = require('../../text/components/Text.js');
9
9
  var core = require('@gem-sdk/core');
10
10
  var React = require('react');
11
11
  var useArticleLink = require('../hooks/useArticleLink.js');
12
+ var NoDataState = require('../../common/components/NoDataState.js');
12
13
 
13
14
  const ArticleExcerpt = ({ setting, styles, builderProps })=>{
14
15
  const article = core.useArticleStore((s)=>s.article);
16
+ const storefrontUrl = core.useShopStore((s)=>s.storefrontUrl);
15
17
  const excerpt = React.useMemo(()=>{
16
18
  return article?.content?.excerptHtml;
17
19
  }, [
18
20
  article
19
21
  ]);
20
22
  const { shopifyArticleLink } = useArticleLink.useArticleLink();
23
+ const addExcerptLink = ()=>{
24
+ if (!storefrontUrl) return undefined;
25
+ const url = new URL(storefrontUrl);
26
+ window.open(`${url.protocol}//${url.host}/admin/content/articles`);
27
+ };
21
28
  return /*#__PURE__*/ jsxRuntime.jsx("div", {
22
29
  id: `shopify-text-element-${builderProps?.uid}`,
23
30
  "data-article-id": article?.baseID?.replace('gid://shopify/OnlineStoreArticle/', ''),
24
- children: !article || !excerpt ? /*#__PURE__*/ jsxRuntime.jsx("div", {
25
- children: /*#__PURE__*/ jsxRuntime.jsx("p", {
26
- className: "gp-p-2 gp-text-sm gp-font-semibold gp-text-gray-500",
27
- children: "This article does not have an excerpt."
28
- })
31
+ children: !article || !excerpt ? /*#__PURE__*/ jsxRuntime.jsx(NoDataState.default, {
32
+ elementType: "secondary",
33
+ description: "Provide a brief summary or teaser of the article. ",
34
+ descriptionActions: [
35
+ {
36
+ text: 'Add article excerpt',
37
+ callback: addExcerptLink
38
+ },
39
+ {
40
+ text: 'sync data',
41
+ callback: 'syncArticle'
42
+ }
43
+ ]
29
44
  }) : setting?.linkArticle ? /*#__PURE__*/ jsxRuntime.jsx(Link, {
30
45
  href: shopifyArticleLink,
31
46
  title: article?.title,
@@ -23,8 +23,8 @@ const ArticleTag = ({ setting, builderProps, styles })=>{
23
23
  }
24
24
  }) : /*#__PURE__*/ jsxRuntime.jsx("div", {
25
25
  children: /*#__PURE__*/ jsxRuntime.jsx("p", {
26
- className: "gp-p-2 gp-text-sm gp-font-semibold gp-text-gray-500",
27
- children: "This article does not have any tags"
26
+ className: "gp-bg-light-100 gp-border-dashed gp-border-[1px] gp-border-text-light-100 gp-text-text-light-500 gp-rounded-lg gp-px-2 gp-py-1 gp-text-12 gp-leading-5",
27
+ children: "No article tag"
28
28
  })
29
29
  })
30
30
  });
@@ -219,6 +219,7 @@ const ArticleListSettings = [
219
219
  id: 'verticalGutter',
220
220
  label: 'Column gap',
221
221
  type: 'input:unit-spacing',
222
+ hideUnit: true,
222
223
  units: [
223
224
  'px'
224
225
  ],
@@ -228,62 +229,14 @@ const ArticleListSettings = [
228
229
  }
229
230
  }
230
231
  },
231
- {
232
- id: 'grid',
233
- label: 'Grid',
234
- type: 'group',
235
- controls: [
236
- {
237
- id: 'horizontalGutter',
238
- label: 'Row gap',
239
- type: 'input:unit',
240
- units: [
241
- 'px'
242
- ],
243
- devices: {
244
- desktop: {
245
- default: '16px'
246
- },
247
- mobile: {
248
- default: '16px'
249
- }
250
- }
251
- },
252
- {
253
- id: 'verticalGutter',
254
- label: 'Column gap',
255
- type: 'input:unit-spacing',
256
- units: [
257
- 'px'
258
- ],
259
- devices: {
260
- desktop: {
261
- default: '16px'
262
- },
263
- mobile: {
264
- default: '8px'
265
- }
266
- }
267
- }
268
- ]
269
- },
270
232
  {
271
233
  id: 'wrapperBorder',
272
- type: 'border',
273
- label: 'Border',
274
- default: {
275
- borderType: 'none',
276
- border: 'none',
277
- width: '1px 1px 1px 1px',
278
- position: 'all',
279
- borderWidth: '1px',
280
- color: '#000000',
281
- isCustom: true
282
- }
234
+ type: 'border-v2',
235
+ label: 'Border'
283
236
  },
284
237
  {
285
238
  id: 'borderRadius',
286
- type: 'radius-preset',
239
+ type: 'corner-v2',
287
240
  label: 'Corner',
288
241
  default: {
289
242
  radiusType: 'none'
@@ -297,16 +250,8 @@ const ArticleListSettings = [
297
250
  },
298
251
  {
299
252
  id: 'shadow',
300
- type: 'boxShadow',
301
- label: 'Button Shadow',
302
- default: {
303
- type: 'custom',
304
- distance: '10px',
305
- blur: '12px',
306
- spread: '10px',
307
- color: 'rgba(18, 18, 18, 0.77)',
308
- angle: 40
309
- }
253
+ type: 'shadow-v2',
254
+ label: 'Button Shadow'
310
255
  }
311
256
  ]
312
257
  }
@@ -128,7 +128,7 @@ const uiV2 = [
128
128
  en: 'Border'
129
129
  },
130
130
  setting: {
131
- id: 'border',
131
+ id: 'wrapperBorder',
132
132
  state: 'normal'
133
133
  }
134
134
  },
@@ -137,7 +137,7 @@ const uiV2 = [
137
137
  en: 'Corner'
138
138
  },
139
139
  setting: {
140
- id: 'rounded',
140
+ id: 'borderRadius',
141
141
  state: 'normal'
142
142
  }
143
143
  },
@@ -338,6 +338,13 @@ const ButtonSettings = [
338
338
  desktop: {
339
339
  default: {
340
340
  normal: {
341
+ size: 'cover',
342
+ position: {
343
+ x: 50,
344
+ y: 50
345
+ },
346
+ repeat: 'no-repeat',
347
+ attachment: 'scroll',
341
348
  image: {
342
349
  src: 'https://ucarecdn.com/06075225-af9e-460c-8e3c-6be63c0b773a/-/format/auto/',
343
350
  width: 1200,
@@ -345,6 +352,13 @@ const ButtonSettings = [
345
352
  }
346
353
  },
347
354
  hover: {
355
+ size: 'cover',
356
+ position: {
357
+ x: 50,
358
+ y: 50
359
+ },
360
+ repeat: 'no-repeat',
361
+ attachment: 'scroll',
348
362
  image: {
349
363
  src: 'https://ucarecdn.com/06075225-af9e-460c-8e3c-6be63c0b773a/-/format/auto/',
350
364
  width: 1200,
@@ -21,6 +21,17 @@ const NoDataState = ({ title, description, elementType, builderAttrs, descriptio
21
21
  });
22
22
  window.dispatchEvent(event);
23
23
  };
24
+ const emitSyncArticle = ()=>{
25
+ const componentUid = refContainer.current?.closest('[data-component-type="component"]')?.getAttribute('data-uid');
26
+ if (!componentUid) return;
27
+ const event = new CustomEvent('editor:sync-article', {
28
+ bubbles: true,
29
+ detail: {
30
+ uid: componentUid
31
+ }
32
+ });
33
+ window.dispatchEvent(event);
34
+ };
24
35
  const emitNoDataSignal = ()=>{
25
36
  if (mode !== 'edit') return;
26
37
  const event = new CustomEvent('editor:product-source-no-data-warning', {
@@ -34,7 +45,8 @@ const NoDataState = ({ title, description, elementType, builderAttrs, descriptio
34
45
  window.dispatchEvent(event);
35
46
  };
36
47
  const presetCallback = {
37
- syncProduct: emitSyncProduct
48
+ syncProduct: emitSyncProduct,
49
+ syncArticle: emitSyncArticle
38
50
  };
39
51
  React.useEffect(()=>{
40
52
  const observer = new ResizeObserver(()=>{
@@ -32,9 +32,7 @@ const EstimateDate = ({ setting, styles, builderAttrs, style, builderProps, adva
32
32
  cssClass: advancedClass
33
33
  },
34
34
  style: style,
35
- styles: {
36
- align: styles?.align
37
- },
35
+ styles: styles,
38
36
  setting: newSetting,
39
37
  className: wrapperClasses,
40
38
  children: children
@@ -50,37 +50,25 @@ const EstimateDateSettings = [
50
50
  {
51
51
  id: 'minEstimate',
52
52
  label: 'Min estimate',
53
- type: 'input:unit',
53
+ type: 'input:number',
54
54
  default: 2,
55
- units: [
56
- 'days'
57
- ],
58
55
  emptyOnClear: true,
59
- useOnlyUnitInit: true,
60
56
  min: 0
61
57
  },
62
58
  {
63
59
  id: 'maxEstimate',
64
60
  label: 'Max estimate',
65
- type: 'input:unit',
66
- units: [
67
- 'days'
68
- ],
61
+ type: 'input:number',
69
62
  emptyOnClear: true,
70
63
  default: 5,
71
- useOnlyUnitInit: true,
72
64
  min: 0
73
65
  },
74
66
  {
75
67
  id: 'estimateTime',
76
68
  label: 'Estimate',
77
- type: 'input:unit',
69
+ type: 'input:number',
78
70
  emptyOnClear: true,
79
- units: [
80
- 'days'
81
- ],
82
71
  default: 5,
83
- useOnlyUnitInit: true,
84
72
  min: 0
85
73
  }
86
74
  ]
@@ -172,18 +160,6 @@ const EstimateDateSettings = [
172
160
  type: 'size-setting',
173
161
  devices: {
174
162
  desktop: {
175
- default: {
176
- width: 'Auto',
177
- padding: {
178
- type: 'medium',
179
- top: '12px',
180
- bottom: '12px',
181
- left: '24px',
182
- right: '24px'
183
- }
184
- }
185
- },
186
- mobile: {
187
163
  default: {
188
164
  width: '100%'
189
165
  }
@@ -236,7 +212,7 @@ const EstimateDateSettings = [
236
212
  desktop: {
237
213
  default: {
238
214
  type: 'color',
239
- color: '#DDDDDD',
215
+ color: '#FFFFFF',
240
216
  image: {
241
217
  src: 'https://ucarecdn.com/06075225-af9e-460c-8e3c-6be63c0b773a/-/format/auto/',
242
218
  width: 1200,
@@ -324,7 +300,7 @@ const EstimateDateSettings = [
324
300
  }
325
301
  },
326
302
  {
327
- id: 'border',
303
+ id: 'shapeBorder',
328
304
  type: 'border-v2',
329
305
  devices: {
330
306
  desktop: {
@@ -334,36 +310,30 @@ const EstimateDateSettings = [
334
310
  compoDefaultValue: {
335
311
  desktop: {
336
312
  default: {
337
- normal: {
338
- border: 'solid',
339
- color: '#121212',
340
- width: '1px',
341
- borderWidth: '1px'
342
- }
313
+ border: 'solid',
314
+ color: '#121212',
315
+ width: '1px',
316
+ borderWidth: '1px'
343
317
  }
344
318
  }
345
319
  }
346
320
  },
347
321
  {
348
- id: 'rounded',
322
+ id: 'shapeRounded',
349
323
  type: 'corner-v2',
350
324
  devices: {
351
325
  desktop: {
352
- default: {
353
- normal: undefined
354
- }
326
+ default: undefined
355
327
  }
356
328
  },
357
329
  compoDefaultValue: {
358
330
  desktop: {
359
331
  default: {
360
- normal: {
361
- btrr: '8px',
362
- bblr: '8px',
363
- bbrr: '8px',
364
- btlr: '8px',
365
- radiusType: 'rounded'
366
- }
332
+ btrr: '8px',
333
+ bblr: '8px',
334
+ bbrr: '8px',
335
+ btlr: '8px',
336
+ radiusType: 'rounded'
367
337
  }
368
338
  }
369
339
  }
@@ -399,19 +369,25 @@ const EstimateDateSettings = [
399
369
  }
400
370
  },
401
371
  {
402
- id: 'boxShadow',
372
+ id: 'shapeBoxShadow',
403
373
  type: 'shadow-v2',
404
374
  devices: {
405
375
  desktop: {
406
376
  default: {
407
- normal: {}
377
+ enable: false
408
378
  }
409
379
  }
410
380
  },
411
381
  compoDefaultValue: {
412
382
  desktop: {
413
383
  default: {
414
- normal: {}
384
+ type: 'shadow-2',
385
+ distance: '12px',
386
+ blur: '12px',
387
+ spread: '0px',
388
+ color: 'rgba(18, 18, 18, 0.2)',
389
+ angle: 45,
390
+ enable: true
415
391
  }
416
392
  }
417
393
  }
@@ -26,7 +26,27 @@ const SettingUIV2 = [
26
26
  setting: {
27
27
  id: 'minEstimate'
28
28
  },
29
- conditionDisplay: `typeEstimate === "${_const.ESTIMATE_DAYS.RANGE}"`
29
+ conditionDisplay: `typeEstimate === "${_const.ESTIMATE_DAYS.RANGE}"`,
30
+ controlChangeTrigger: {
31
+ settings: [
32
+ {
33
+ condition: `parseInt(minEstimate) > parseInt(maxEstimate)`,
34
+ source: [
35
+ 'maxEstimate',
36
+ 'minEstimate'
37
+ ],
38
+ action: {
39
+ controlId: 'maxEstimate',
40
+ groupType: 'setting',
41
+ controlType: 'setting',
42
+ valueFromField: 'minEstimate'
43
+ }
44
+ }
45
+ ],
46
+ options: {
47
+ noRecordHistory: true
48
+ }
49
+ }
30
50
  },
31
51
  {
32
52
  label: {
@@ -35,7 +55,27 @@ const SettingUIV2 = [
35
55
  setting: {
36
56
  id: 'maxEstimate'
37
57
  },
38
- conditionDisplay: `typeEstimate === "${_const.ESTIMATE_DAYS.RANGE}"`
58
+ conditionDisplay: `typeEstimate === "${_const.ESTIMATE_DAYS.RANGE}"`,
59
+ controlChangeTrigger: {
60
+ settings: [
61
+ {
62
+ condition: `parseInt(maxEstimate) < parseInt(minEstimate)`,
63
+ source: [
64
+ 'maxEstimate',
65
+ 'minEstimate'
66
+ ],
67
+ action: {
68
+ controlId: 'minEstimate',
69
+ groupType: 'setting',
70
+ controlType: 'setting',
71
+ valueFromField: 'maxEstimate'
72
+ }
73
+ }
74
+ ],
75
+ options: {
76
+ noRecordHistory: true
77
+ }
78
+ }
39
79
  },
40
80
  {
41
81
  label: {
@@ -60,14 +100,7 @@ const SettingUIV2 = [
60
100
  setting: {
61
101
  id: 'typeFormat'
62
102
  }
63
- }
64
- ]
65
- },
66
- {
67
- label: {
68
- en: 'Date text'
69
- },
70
- controls: [
103
+ },
71
104
  {
72
105
  conditionDisplay: `typeFormat === 'Custom'`,
73
106
  label: {
@@ -76,7 +109,14 @@ const SettingUIV2 = [
76
109
  setting: {
77
110
  id: 'customFormat'
78
111
  }
79
- },
112
+ }
113
+ ]
114
+ },
115
+ {
116
+ label: {
117
+ en: 'Date text'
118
+ },
119
+ controls: [
80
120
  {
81
121
  setting: {
82
122
  id: 'typoDate'
@@ -244,8 +284,7 @@ const SettingUIV2 = [
244
284
  es: 'Borde'
245
285
  },
246
286
  setting: {
247
- id: 'border',
248
- state: 'normal'
287
+ id: 'shapeBorder'
249
288
  }
250
289
  },
251
290
  {
@@ -255,8 +294,7 @@ const SettingUIV2 = [
255
294
  es: 'Esquina'
256
295
  },
257
296
  setting: {
258
- id: 'rounded',
259
- state: 'normal'
297
+ id: 'shapeRounded'
260
298
  }
261
299
  },
262
300
  {
@@ -266,52 +304,7 @@ const SettingUIV2 = [
266
304
  es: 'Sombra'
267
305
  },
268
306
  setting: {
269
- id: 'boxShadow',
270
- state: 'normal'
271
- },
272
- options: {
273
- updateFields: [
274
- {
275
- field: 'normal.enable',
276
- settingId: 'hasBoxShadow',
277
- state: 'normal'
278
- }
279
- ]
280
- },
281
- controlChangeTrigger: {
282
- settings: [
283
- {
284
- condition: `boxShadow.normal.enable === true`,
285
- source: [
286
- 'boxShadow',
287
- 'hasBoxShadow'
288
- ],
289
- action: {
290
- controlId: 'hasBoxShadow',
291
- groupType: 'advanced',
292
- controlType: 'advanced',
293
- state: 'normal',
294
- newValue: true
295
- }
296
- },
297
- {
298
- condition: `boxShadow.normal.enable === false`,
299
- source: [
300
- 'boxShadow',
301
- 'hasBoxShadow'
302
- ],
303
- action: {
304
- controlId: 'hasBoxShadow',
305
- groupType: 'advanced',
306
- controlType: 'advanced',
307
- state: 'normal',
308
- newValue: false
309
- }
310
- }
311
- ],
312
- options: {
313
- noRecordHistory: true
314
- }
307
+ id: 'shapeBoxShadow'
315
308
  }
316
309
  }
317
310
  ]
@@ -329,7 +322,7 @@ const SettingUIV2 = [
329
322
  options: {
330
323
  labelVariant: 'primary',
331
324
  fullWidth: true,
332
- disableMessage: `Align is not supported when width is 100%`
325
+ disableMessage: `Horizontal alignment is disabled when the width is set to 100% or greater`
333
326
  }
334
327
  }
335
328
  ]
@@ -41,11 +41,11 @@ const AdaptiveImage = (props)=>{
41
41
  children: [
42
42
  srcMobile && /*#__PURE__*/ jsxRuntime.jsx("source", {
43
43
  media: "(max-width: 767px)",
44
- srcSet: srcMobile || constants.IMAGE_PLACEHOLDER
44
+ srcSet: enableLazyloadImage ? constants.IMAGE_PLACEHOLDER : srcMobile
45
45
  }),
46
46
  srcTablet && /*#__PURE__*/ jsxRuntime.jsx("source", {
47
47
  media: "(max-width: 1024px)",
48
- srcSet: srcTablet || constants.IMAGE_PLACEHOLDER
48
+ srcSet: enableLazyloadImage ? constants.IMAGE_PLACEHOLDER : srcTablet
49
49
  })
50
50
  ]
51
51
  });
@@ -27,7 +27,7 @@ const getImageStyles = (styles, builderProps)=>{
27
27
  ...core.getStyleShadow({
28
28
  value: styles?.shadow,
29
29
  styleAppliedFor: 'box-shadow',
30
- isEnableShadow: styles?.shadow?.type !== 'none'
30
+ isEnableShadow: styles?.shadow?.enable && styles?.shadow?.type !== 'none'
31
31
  })
32
32
  };
33
33
  };
@@ -95,16 +95,20 @@ const ImageSettings = [
95
95
  id: 'alt',
96
96
  label: 'Alt Text',
97
97
  type: 'textarea',
98
- minHeight: 100,
98
+ minHeight: 56,
99
99
  autoHeight: true,
100
- placeholder: 'E.g: Classic white crewneck t-shirt with minimalist design'
100
+ placeholder: 'E.g: Classic white crewneck t-shirt with minimalist design',
101
+ default: 'Describes the appearance of the image'
101
102
  },
102
103
  {
103
104
  id: 'title',
104
105
  label: 'Image title',
105
106
  info: 'Show title when hover to image',
106
- type: 'input',
107
- placeholder: 'E.g: White t-shirt'
107
+ type: 'textarea',
108
+ minHeight: 56,
109
+ autoHeight: true,
110
+ placeholder: 'E.g: White t-shirt',
111
+ default: 'Title'
108
112
  }
109
113
  ]
110
114
  },