@gem-sdk/components 2.0.0-dev.587 → 2.0.0-dev.589

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.
@@ -28,10 +28,10 @@ const getContainerStyles = (style, styles)=>{
28
28
  const widthHeightSizeControl = (widthHeightSize)=>core.makeGlobalSize(widthHeightSize);
29
29
  const widthStyle = (width, fullWidth, widthHeightSize)=>widthHeightSizeControl(widthHeightSize).width['--w'] ? widthHeightSizeControl(widthHeightSize).width : core.makeStyleResponsive('w', core.makeWidth(width, fullWidth));
30
30
  const getItemContainerStyles = (styles, isShow)=>{
31
- const { borderContent, backgroundContent, roundedContent, accordionShadow, width, fullWidth, widthHeightSize, color } = styles ?? {};
31
+ const { borderContent, backgroundContent, roundedContent, accordionShadow, width, fullWidth, widthHeightSize, iconColor } = styles ?? {};
32
32
  return {
33
- '--icon-hover-color': isShow ? color?.active : color?.hover,
34
- '--icon-active-color': color?.active,
33
+ '--icon-hover-color': isShow ? iconColor?.active : iconColor?.hover,
34
+ '--icon-active-color': iconColor?.active,
35
35
  ...widthStyle(width, fullWidth, widthHeightSize),
36
36
  ...core.makeStyle({
37
37
  bs: borderContent?.border ?? borderContent?.border,
@@ -85,12 +85,12 @@ const getDropdownStyles = (styles, extraData)=>{
85
85
  };
86
86
  };
87
87
  const getIconRotateStyles = (styles, isShow, iconCollapseSize)=>{
88
- const { color } = styles ?? {};
88
+ const { iconColor } = styles ?? {};
89
89
  return {
90
90
  ...isShow ? core.makeStyle({
91
- c: core.getSingleColorVariable(color?.active ?? color?.normal)
91
+ c: core.getSingleColorVariable(iconColor?.active ?? iconColor?.normal)
92
92
  }) : {
93
- ...core.getGlobalColorStateStyle('c', color)
93
+ ...core.getGlobalColorStateStyle('c', iconColor)
94
94
  },
95
95
  width: `${iconCollapseSize ?? 16}px`,
96
96
  height: `${iconCollapseSize ?? 16}px`
@@ -558,7 +558,7 @@ const SettingUIV2 = [
558
558
  options: {
559
559
  updateFields: [
560
560
  {
561
- field: 'enable',
561
+ field: 'normal.enable',
562
562
  settingId: 'hasBoxShadow',
563
563
  state: 'normal'
564
564
  }
@@ -625,7 +625,7 @@ const SettingUIV2 = [
625
625
  },
626
626
  {
627
627
  label: {
628
- en: 'Select item'
628
+ en: 'Item'
629
629
  },
630
630
  setting: {
631
631
  id: 'activeKey'
@@ -355,6 +355,15 @@ const SettingUIV2 = [
355
355
  toggleStyle: 'switch'
356
356
  }
357
357
  },
358
+ {
359
+ layout: 'vertical',
360
+ controlConfig: {
361
+ id: 'linkedToPreSalesPageBanner',
362
+ type: 'banner',
363
+ message: `Pre-sales page elements with link should redirect to the Sales page.`
364
+ },
365
+ conditionDisplay: 'pageType === "GP_PRE_SALE_PAGE" && enableLink == true'
366
+ },
358
367
  {
359
368
  conditionDisplay: 'enableLink == true',
360
369
  setting: {
@@ -423,6 +423,15 @@ const SettingUIV2 = [
423
423
  toggleStyle: 'switch'
424
424
  }
425
425
  },
426
+ {
427
+ layout: 'vertical',
428
+ controlConfig: {
429
+ id: 'linkedToPreSalesPageBanner',
430
+ type: 'banner',
431
+ message: `Pre-sales page elements with link should redirect to the Sales page.`
432
+ },
433
+ conditionDisplay: 'pageType === "GP_PRE_SALE_PAGE" && enableBtnLink == true'
434
+ },
426
435
  {
427
436
  type: 'control',
428
437
  layout: 'vertical',
@@ -323,6 +323,15 @@ const SettingUIV2 = [
323
323
  toggleStyle: 'switch'
324
324
  }
325
325
  },
326
+ {
327
+ layout: 'vertical',
328
+ controlConfig: {
329
+ id: 'linkedToPreSalesPageBanner',
330
+ type: 'banner',
331
+ message: `Pre-sales page elements with link should redirect to the Sales page.`
332
+ },
333
+ conditionDisplay: 'pageType === "GP_PRE_SALE_PAGE" && enableImageLink == true'
334
+ },
326
335
  {
327
336
  setting: {
328
337
  id: 'imageLink'
@@ -113,7 +113,7 @@ const SettingUIV2 = [
113
113
  options: {
114
114
  updateFields: [
115
115
  {
116
- field: 'enable',
116
+ field: 'normal.enable',
117
117
  settingId: 'hasBoxShadow',
118
118
  state: 'normal'
119
119
  }
@@ -26,10 +26,10 @@ const getContainerStyles = (style, styles)=>{
26
26
  const widthHeightSizeControl = (widthHeightSize)=>makeGlobalSize(widthHeightSize);
27
27
  const widthStyle = (width, fullWidth, widthHeightSize)=>widthHeightSizeControl(widthHeightSize).width['--w'] ? widthHeightSizeControl(widthHeightSize).width : makeStyleResponsive('w', makeWidth(width, fullWidth));
28
28
  const getItemContainerStyles = (styles, isShow)=>{
29
- const { borderContent, backgroundContent, roundedContent, accordionShadow, width, fullWidth, widthHeightSize, color } = styles ?? {};
29
+ const { borderContent, backgroundContent, roundedContent, accordionShadow, width, fullWidth, widthHeightSize, iconColor } = styles ?? {};
30
30
  return {
31
- '--icon-hover-color': isShow ? color?.active : color?.hover,
32
- '--icon-active-color': color?.active,
31
+ '--icon-hover-color': isShow ? iconColor?.active : iconColor?.hover,
32
+ '--icon-active-color': iconColor?.active,
33
33
  ...widthStyle(width, fullWidth, widthHeightSize),
34
34
  ...makeStyle({
35
35
  bs: borderContent?.border ?? borderContent?.border,
@@ -83,12 +83,12 @@ const getDropdownStyles = (styles, extraData)=>{
83
83
  };
84
84
  };
85
85
  const getIconRotateStyles = (styles, isShow, iconCollapseSize)=>{
86
- const { color } = styles ?? {};
86
+ const { iconColor } = styles ?? {};
87
87
  return {
88
88
  ...isShow ? makeStyle({
89
- c: getSingleColorVariable(color?.active ?? color?.normal)
89
+ c: getSingleColorVariable(iconColor?.active ?? iconColor?.normal)
90
90
  }) : {
91
- ...getGlobalColorStateStyle('c', color)
91
+ ...getGlobalColorStateStyle('c', iconColor)
92
92
  },
93
93
  width: `${iconCollapseSize ?? 16}px`,
94
94
  height: `${iconCollapseSize ?? 16}px`
@@ -556,7 +556,7 @@ const SettingUIV2 = [
556
556
  options: {
557
557
  updateFields: [
558
558
  {
559
- field: 'enable',
559
+ field: 'normal.enable',
560
560
  settingId: 'hasBoxShadow',
561
561
  state: 'normal'
562
562
  }
@@ -623,7 +623,7 @@ const SettingUIV2 = [
623
623
  },
624
624
  {
625
625
  label: {
626
- en: 'Select item'
626
+ en: 'Item'
627
627
  },
628
628
  setting: {
629
629
  id: 'activeKey'
@@ -353,6 +353,15 @@ const SettingUIV2 = [
353
353
  toggleStyle: 'switch'
354
354
  }
355
355
  },
356
+ {
357
+ layout: 'vertical',
358
+ controlConfig: {
359
+ id: 'linkedToPreSalesPageBanner',
360
+ type: 'banner',
361
+ message: `Pre-sales page elements with link should redirect to the Sales page.`
362
+ },
363
+ conditionDisplay: 'pageType === "GP_PRE_SALE_PAGE" && enableLink == true'
364
+ },
356
365
  {
357
366
  conditionDisplay: 'enableLink == true',
358
367
  setting: {
@@ -421,6 +421,15 @@ const SettingUIV2 = [
421
421
  toggleStyle: 'switch'
422
422
  }
423
423
  },
424
+ {
425
+ layout: 'vertical',
426
+ controlConfig: {
427
+ id: 'linkedToPreSalesPageBanner',
428
+ type: 'banner',
429
+ message: `Pre-sales page elements with link should redirect to the Sales page.`
430
+ },
431
+ conditionDisplay: 'pageType === "GP_PRE_SALE_PAGE" && enableBtnLink == true'
432
+ },
424
433
  {
425
434
  type: 'control',
426
435
  layout: 'vertical',
@@ -321,6 +321,15 @@ const SettingUIV2 = [
321
321
  toggleStyle: 'switch'
322
322
  }
323
323
  },
324
+ {
325
+ layout: 'vertical',
326
+ controlConfig: {
327
+ id: 'linkedToPreSalesPageBanner',
328
+ type: 'banner',
329
+ message: `Pre-sales page elements with link should redirect to the Sales page.`
330
+ },
331
+ conditionDisplay: 'pageType === "GP_PRE_SALE_PAGE" && enableImageLink == true'
332
+ },
324
333
  {
325
334
  setting: {
326
335
  id: 'imageLink'
@@ -111,7 +111,7 @@ const SettingUIV2 = [
111
111
  options: {
112
112
  updateFields: [
113
113
  {
114
- field: 'enable',
114
+ field: 'normal.enable',
115
115
  settingId: 'hasBoxShadow',
116
116
  state: 'normal'
117
117
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-dev.587",
3
+ "version": "2.0.0-dev.589",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",