@builder.io/sdk-solid 0.1.13 → 0.1.15

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/sdk-solid",
3
- "version": "0.1.13",
3
+ "version": "0.1.15",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./solid-index.jsx",
@@ -58,26 +58,26 @@ function Columns(props) {
58
58
  }
59
59
 
60
60
  function columnCssVars(index) {
61
- const width = getColumnCssWidth(index);
62
- const gutter = `${index === 0 ? 0 : gutterSize()}px`;
61
+ const gutter = index === 0 ? 0 : gutterSize();
63
62
  if (TARGET === "reactNative") {
64
63
  return {
65
- width,
66
- marginLeft: props.stackColumnsAt === "never" ? gutter : "0",
64
+ marginLeft: props.stackColumnsAt === "never" ? gutter : 0,
67
65
  };
68
66
  }
67
+ const width = getColumnCssWidth(index);
68
+ const gutterPixels = `${gutterSize()}px`;
69
69
  const mobileWidth = "100%";
70
- const mobileMarginLeft = "0";
70
+ const mobileMarginLeft = 0;
71
71
  return {
72
72
  width,
73
- "margin-left": gutter,
73
+ "margin-left": gutterPixels,
74
74
  "--column-width-mobile": getMobileStyle({
75
75
  stackedStyle: mobileWidth,
76
76
  desktopStyle: width,
77
77
  }),
78
78
  "--column-margin-left-mobile": getMobileStyle({
79
79
  stackedStyle: mobileMarginLeft,
80
- desktopStyle: gutter,
80
+ desktopStyle: gutterPixels,
81
81
  }),
82
82
  "--column-width-tablet": getTabletStyle({
83
83
  stackedStyle: mobileWidth,
@@ -85,7 +85,7 @@ function Columns(props) {
85
85
  }),
86
86
  "--column-margin-left-tablet": getTabletStyle({
87
87
  stackedStyle: mobileMarginLeft,
88
- desktopStyle: gutter,
88
+ desktopStyle: gutterPixels,
89
89
  }),
90
90
  };
91
91
  }