@gem-sdk/core 1.12.0-next.58 → 1.12.0-next.65

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.
@@ -59,12 +59,14 @@ const makeStyleResponsive = (name, value)=>{
59
59
  };
60
60
  const makeWidth = (widthValue, fullWidthValue)=>{
61
61
  const getVal = (deviceValue, widthValue, fullWidthValue)=>{
62
- const widthVal = widthValue?.[deviceValue];
62
+ const widthVal = widthValue?.[deviceValue] === undefined ? widthValue?.['desktop'] : widthValue?.[deviceValue];
63
63
  const fullWidthVal = fullWidthValue?.[deviceValue] === undefined ? fullWidthValue?.['desktop'] : fullWidthValue?.[deviceValue];
64
64
  if (fullWidthVal) {
65
65
  return '100%';
66
+ } else if (fullWidthVal === false) {
67
+ return widthVal ?? widthVal;
66
68
  } else {
67
- return widthVal || 'unset';
69
+ return widthVal || 'auto';
68
70
  }
69
71
  };
70
72
  return {
@@ -79,8 +81,10 @@ const makeHeight = (heighValue, autoHeight)=>{
79
81
  const isAuto = autoHeight?.[deviceValue];
80
82
  if (isAuto) {
81
83
  return 'auto';
84
+ } else if (isAuto === false) {
85
+ return heightVal ?? heightVal;
82
86
  } else {
83
- return heightVal || 'unset';
87
+ return heightVal;
84
88
  }
85
89
  };
86
90
  return {
@@ -57,12 +57,14 @@ const makeStyleResponsive = (name, value)=>{
57
57
  };
58
58
  const makeWidth = (widthValue, fullWidthValue)=>{
59
59
  const getVal = (deviceValue, widthValue, fullWidthValue)=>{
60
- const widthVal = widthValue?.[deviceValue];
60
+ const widthVal = widthValue?.[deviceValue] === undefined ? widthValue?.['desktop'] : widthValue?.[deviceValue];
61
61
  const fullWidthVal = fullWidthValue?.[deviceValue] === undefined ? fullWidthValue?.['desktop'] : fullWidthValue?.[deviceValue];
62
62
  if (fullWidthVal) {
63
63
  return '100%';
64
+ } else if (fullWidthVal === false) {
65
+ return widthVal ?? widthVal;
64
66
  } else {
65
- return widthVal || 'unset';
67
+ return widthVal || 'auto';
66
68
  }
67
69
  };
68
70
  return {
@@ -77,8 +79,10 @@ const makeHeight = (heighValue, autoHeight)=>{
77
79
  const isAuto = autoHeight?.[deviceValue];
78
80
  if (isAuto) {
79
81
  return 'auto';
82
+ } else if (isAuto === false) {
83
+ return heightVal ?? heightVal;
80
84
  } else {
81
- return heightVal || 'unset';
85
+ return heightVal;
82
86
  }
83
87
  };
84
88
  return {
@@ -843,6 +843,7 @@ type TypographyV2ControlType<T> = SharedControlType<T> & {
843
843
  type: 'typography-v2';
844
844
  hiddenSetting?: {
845
845
  color?: boolean;
846
+ transform?: boolean;
846
847
  };
847
848
  };
848
849
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/core",
3
- "version": "1.12.0-next.58",
3
+ "version": "1.12.0-next.65",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",
@@ -25,7 +25,7 @@
25
25
  },
26
26
  "devDependencies": {
27
27
  "@gem-sdk/adapter-shopify": "1.12.0-next.13",
28
- "@gem-sdk/styles": "1.12.0-next.33"
28
+ "@gem-sdk/styles": "1.12.0-next.64"
29
29
  },
30
30
  "dependencies": {
31
31
  "react-error-boundary": "4.0.3",