@gem-sdk/core 1.23.0-staging.456 → 1.23.0-staging.458

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.
@@ -134,8 +134,8 @@ const makeAspectRatio = (aspectRatio, aspectWidth, aspectHeight)=>{
134
134
  };
135
135
  const makeLineClamp = (lineClampValue, hasLineClampValue)=>{
136
136
  const getVal = (deviceValue, lineClampValue, hasLineClampValue)=>{
137
- const lineClamp = lineClampValue?.[deviceValue];
138
- const hasLineClamp = hasLineClampValue?.[deviceValue] || hasLineClampValue?.['desktop'];
137
+ const lineClamp = getResonsiveValue.getResponsiveValueByScreen(lineClampValue, deviceValue);
138
+ const hasLineClamp = getResonsiveValue.getResponsiveValueByScreen(hasLineClampValue, deviceValue);
139
139
  if (hasLineClamp || hasLineClamp === undefined) {
140
140
  return lineClamp;
141
141
  }
@@ -132,8 +132,8 @@ const makeAspectRatio = (aspectRatio, aspectWidth, aspectHeight)=>{
132
132
  };
133
133
  const makeLineClamp = (lineClampValue, hasLineClampValue)=>{
134
134
  const getVal = (deviceValue, lineClampValue, hasLineClampValue)=>{
135
- const lineClamp = lineClampValue?.[deviceValue];
136
- const hasLineClamp = hasLineClampValue?.[deviceValue] || hasLineClampValue?.['desktop'];
135
+ const lineClamp = getResponsiveValueByScreen(lineClampValue, deviceValue);
136
+ const hasLineClamp = getResponsiveValueByScreen(hasLineClampValue, deviceValue);
137
137
  if (hasLineClamp || hasLineClamp === undefined) {
138
138
  return lineClamp;
139
139
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/core",
3
- "version": "1.23.0-staging.456",
3
+ "version": "1.23.0-staging.458",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",