@gem-sdk/core 1.8.15 → 1.8.26

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.
@@ -121,6 +121,13 @@ function composeAdvanceStyle(data, tag) {
121
121
  if (attr === 'rounded') {
122
122
  Object.assign(styles, radius.getCornerCSSFromGlobal(value));
123
123
  }
124
+ if (attr === 'hasBoxShadow') {
125
+ Object.assign(styles, shadow.getStyleShadow({
126
+ value: data.boxShadow,
127
+ styleAppliedFor: 'box-shadow',
128
+ isEnableShadow: data.hasBoxShadow
129
+ }));
130
+ }
124
131
  if (attr === 'boxShadow') {
125
132
  Object.assign(styles, shadow.getStyleShadow({
126
133
  value: value,
@@ -132,6 +139,13 @@ function composeAdvanceStyle(data, tag) {
132
139
  });
133
140
  } else {
134
141
  styles[`--${attr}`] = getAttrValue(attr, value, tag);
142
+ if (attr === 'hasBoxShadow' && data.boxShadow) {
143
+ Object.assign(styles, shadow.getStyleShadow({
144
+ value: data.boxShadow,
145
+ styleAppliedFor: 'box-shadow',
146
+ isEnableShadow: data.hasBoxShadow
147
+ }));
148
+ }
135
149
  }
136
150
  });
137
151
  return styles;
@@ -119,6 +119,13 @@ function composeAdvanceStyle(data, tag) {
119
119
  if (attr === 'rounded') {
120
120
  Object.assign(styles, getCornerCSSFromGlobal(value));
121
121
  }
122
+ if (attr === 'hasBoxShadow') {
123
+ Object.assign(styles, getStyleShadow({
124
+ value: data.boxShadow,
125
+ styleAppliedFor: 'box-shadow',
126
+ isEnableShadow: data.hasBoxShadow
127
+ }));
128
+ }
122
129
  if (attr === 'boxShadow') {
123
130
  Object.assign(styles, getStyleShadow({
124
131
  value: value,
@@ -130,6 +137,13 @@ function composeAdvanceStyle(data, tag) {
130
137
  });
131
138
  } else {
132
139
  styles[`--${attr}`] = getAttrValue(attr, value, tag);
140
+ if (attr === 'hasBoxShadow' && data.boxShadow) {
141
+ Object.assign(styles, getStyleShadow({
142
+ value: data.boxShadow,
143
+ styleAppliedFor: 'box-shadow',
144
+ isEnableShadow: data.hasBoxShadow
145
+ }));
146
+ }
133
147
  }
134
148
  });
135
149
  return styles;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/core",
3
- "version": "1.8.15",
3
+ "version": "1.8.26",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",