@builder.io/sdk-react-native 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.
@@ -73,26 +73,26 @@ function Columns(props) {
73
73
  };
74
74
  }
75
75
  function columnCssVars(index) {
76
- const width = getColumnCssWidth(index);
77
- const gutter = `${index === 0 ? 0 : gutterSize}px`;
76
+ const gutter = index === 0 ? 0 : gutterSize;
78
77
  if (target_js_1.TARGET === "reactNative") {
79
78
  return {
80
- width,
81
- marginLeft: props.stackColumnsAt === "never" ? gutter : "0",
79
+ marginLeft: props.stackColumnsAt === "never" ? gutter : 0,
82
80
  };
83
81
  }
82
+ const width = getColumnCssWidth(index);
83
+ const gutterPixels = `${gutterSize}px`;
84
84
  const mobileWidth = "100%";
85
- const mobileMarginLeft = "0";
85
+ const mobileMarginLeft = 0;
86
86
  return {
87
87
  width,
88
- "margin-left": gutter,
88
+ "margin-left": gutterPixels,
89
89
  "--column-width-mobile": getMobileStyle({
90
90
  stackedStyle: mobileWidth,
91
91
  desktopStyle: width,
92
92
  }),
93
93
  "--column-margin-left-mobile": getMobileStyle({
94
94
  stackedStyle: mobileMarginLeft,
95
- desktopStyle: gutter,
95
+ desktopStyle: gutterPixels,
96
96
  }),
97
97
  "--column-width-tablet": getTabletStyle({
98
98
  stackedStyle: mobileWidth,
@@ -100,7 +100,7 @@ function Columns(props) {
100
100
  }),
101
101
  "--column-margin-left-tablet": getTabletStyle({
102
102
  stackedStyle: mobileMarginLeft,
103
- desktopStyle: gutter,
103
+ desktopStyle: gutterPixels,
104
104
  }),
105
105
  };
106
106
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@builder.io/sdk-react-native",
3
3
  "description": "Builder.io SDK for React Native",
4
- "version": "0.1.13",
4
+ "version": "0.1.15",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",
@@ -66,26 +66,26 @@ function Columns(props) {
66
66
  }
67
67
 
68
68
  function columnCssVars(index) {
69
- const width = getColumnCssWidth(index);
70
- const gutter = `${index === 0 ? 0 : gutterSize}px`;
69
+ const gutter = index === 0 ? 0 : gutterSize;
71
70
  if (TARGET === "reactNative") {
72
71
  return {
73
- width,
74
- marginLeft: props.stackColumnsAt === "never" ? gutter : "0",
72
+ marginLeft: props.stackColumnsAt === "never" ? gutter : 0,
75
73
  };
76
74
  }
75
+ const width = getColumnCssWidth(index);
76
+ const gutterPixels = `${gutterSize}px`;
77
77
  const mobileWidth = "100%";
78
- const mobileMarginLeft = "0";
78
+ const mobileMarginLeft = 0;
79
79
  return {
80
80
  width,
81
- "margin-left": gutter,
81
+ "margin-left": gutterPixels,
82
82
  "--column-width-mobile": getMobileStyle({
83
83
  stackedStyle: mobileWidth,
84
84
  desktopStyle: width,
85
85
  }),
86
86
  "--column-margin-left-mobile": getMobileStyle({
87
87
  stackedStyle: mobileMarginLeft,
88
- desktopStyle: gutter,
88
+ desktopStyle: gutterPixels,
89
89
  }),
90
90
  "--column-width-tablet": getTabletStyle({
91
91
  stackedStyle: mobileWidth,
@@ -93,7 +93,7 @@ function Columns(props) {
93
93
  }),
94
94
  "--column-margin-left-tablet": getTabletStyle({
95
95
  stackedStyle: mobileMarginLeft,
96
- desktopStyle: gutter,
96
+ desktopStyle: gutterPixels,
97
97
  }),
98
98
  };
99
99
  }