@gem-sdk/components 2.0.0-dev.384 → 2.0.0-dev.385

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.
@@ -10,6 +10,11 @@ const getWrapperStyle = (style, background)=>{
10
10
  ...style,
11
11
  ...core.getStyleBackgroundByDevice(background, {
12
12
  liquid: true
13
+ }),
14
+ ...core.getGradientBgrStyleByDevice(background, {
15
+ desktop: true,
16
+ tablet: true,
17
+ mobile: true
13
18
  })
14
19
  };
15
20
  return filterTruthyStyles(composeStyles);
@@ -74,7 +74,7 @@ const IconListHozSettings = [
74
74
  },
75
75
  {
76
76
  id: 'horizontalSpacing',
77
- type: 'input:unit',
77
+ type: 'input:unit-spacing',
78
78
  units: [
79
79
  'px'
80
80
  ],
@@ -79,6 +79,50 @@ const SettingUIV2 = [
79
79
  setting: {
80
80
  id: 'boxShadow',
81
81
  state: 'normal'
82
+ },
83
+ options: {
84
+ updateFields: [
85
+ {
86
+ field: 'enable',
87
+ settingId: 'advanced.hasBoxShadow',
88
+ state: 'normal'
89
+ }
90
+ ]
91
+ },
92
+ controlChangeTrigger: {
93
+ settings: [
94
+ {
95
+ condition: `boxShadow.normal.enable === true`,
96
+ source: [
97
+ 'boxShadow',
98
+ 'hasBoxShadow'
99
+ ],
100
+ action: {
101
+ controlId: 'hasBoxShadow',
102
+ groupType: 'advanced',
103
+ controlType: 'advanced',
104
+ state: 'normal',
105
+ newValue: true
106
+ }
107
+ },
108
+ {
109
+ condition: `boxShadow.normal.enable === false`,
110
+ source: [
111
+ 'boxShadow',
112
+ 'hasBoxShadow'
113
+ ],
114
+ action: {
115
+ controlId: 'hasBoxShadow',
116
+ groupType: 'advanced',
117
+ controlType: 'advanced',
118
+ state: 'normal',
119
+ newValue: false
120
+ }
121
+ }
122
+ ],
123
+ options: {
124
+ noRecordHistory: true
125
+ }
82
126
  }
83
127
  }
84
128
  ]
@@ -1,4 +1,4 @@
1
- import { getStyleBackgroundByDevice, makeStyle, makeStyleResponsive } from '@gem-sdk/core';
1
+ import { getStyleBackgroundByDevice, getGradientBgrStyleByDevice, makeStyle, makeStyleResponsive } from '@gem-sdk/core';
2
2
 
3
3
  function filterTruthyStyles(styles) {
4
4
  return Object.fromEntries(Object.entries(styles || {}).filter(([, value])=>!!value));
@@ -8,6 +8,11 @@ const getWrapperStyle = (style, background)=>{
8
8
  ...style,
9
9
  ...getStyleBackgroundByDevice(background, {
10
10
  liquid: true
11
+ }),
12
+ ...getGradientBgrStyleByDevice(background, {
13
+ desktop: true,
14
+ tablet: true,
15
+ mobile: true
11
16
  })
12
17
  };
13
18
  return filterTruthyStyles(composeStyles);
@@ -72,7 +72,7 @@ const IconListHozSettings = [
72
72
  },
73
73
  {
74
74
  id: 'horizontalSpacing',
75
- type: 'input:unit',
75
+ type: 'input:unit-spacing',
76
76
  units: [
77
77
  'px'
78
78
  ],
@@ -77,6 +77,50 @@ const SettingUIV2 = [
77
77
  setting: {
78
78
  id: 'boxShadow',
79
79
  state: 'normal'
80
+ },
81
+ options: {
82
+ updateFields: [
83
+ {
84
+ field: 'enable',
85
+ settingId: 'advanced.hasBoxShadow',
86
+ state: 'normal'
87
+ }
88
+ ]
89
+ },
90
+ controlChangeTrigger: {
91
+ settings: [
92
+ {
93
+ condition: `boxShadow.normal.enable === true`,
94
+ source: [
95
+ 'boxShadow',
96
+ 'hasBoxShadow'
97
+ ],
98
+ action: {
99
+ controlId: 'hasBoxShadow',
100
+ groupType: 'advanced',
101
+ controlType: 'advanced',
102
+ state: 'normal',
103
+ newValue: true
104
+ }
105
+ },
106
+ {
107
+ condition: `boxShadow.normal.enable === false`,
108
+ source: [
109
+ 'boxShadow',
110
+ 'hasBoxShadow'
111
+ ],
112
+ action: {
113
+ controlId: 'hasBoxShadow',
114
+ groupType: 'advanced',
115
+ controlType: 'advanced',
116
+ state: 'normal',
117
+ newValue: false
118
+ }
119
+ }
120
+ ],
121
+ options: {
122
+ noRecordHistory: true
123
+ }
80
124
  }
81
125
  }
82
126
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-dev.384",
3
+ "version": "2.0.0-dev.385",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",