@gem-sdk/core 1.10.23 → 1.10.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.
@@ -96,7 +96,7 @@ const makeAspectRatio = (aspectRatio, aspectWidth, aspectHeight)=>{
96
96
  const makeLineClamp = (lineClampValue, hasLineClampValue)=>{
97
97
  const getVal = (deviceValue, lineClampValue, hasLineClampValue)=>{
98
98
  const lineClamp = lineClampValue?.[deviceValue];
99
- const hasLineClamp = hasLineClampValue?.[deviceValue];
99
+ const hasLineClamp = hasLineClampValue?.[deviceValue] || hasLineClampValue?.['desktop'];
100
100
  if (hasLineClamp || hasLineClamp === undefined) {
101
101
  return lineClamp;
102
102
  }
@@ -94,7 +94,7 @@ const makeAspectRatio = (aspectRatio, aspectWidth, aspectHeight)=>{
94
94
  const makeLineClamp = (lineClampValue, hasLineClampValue)=>{
95
95
  const getVal = (deviceValue, lineClampValue, hasLineClampValue)=>{
96
96
  const lineClamp = lineClampValue?.[deviceValue];
97
- const hasLineClamp = hasLineClampValue?.[deviceValue];
97
+ const hasLineClamp = hasLineClampValue?.[deviceValue] || hasLineClampValue?.['desktop'];
98
98
  if (hasLineClamp || hasLineClamp === undefined) {
99
99
  return lineClamp;
100
100
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/core",
3
- "version": "1.10.23",
3
+ "version": "1.10.26",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",