@builder.io/sdk-react 0.1.13 → 0.1.14

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.
@@ -47,11 +47,11 @@ function Columns(props) {
47
47
  if (TARGET === "reactNative") {
48
48
  return {
49
49
  width,
50
- marginLeft: props.stackColumnsAt === "never" ? gutter : "0",
50
+ marginLeft: props.stackColumnsAt === "never" ? gutter : 0,
51
51
  };
52
52
  }
53
53
  const mobileWidth = "100%";
54
- const mobileMarginLeft = "0";
54
+ const mobileMarginLeft = 0;
55
55
  return {
56
56
  width,
57
57
  "margin-left": gutter,
@@ -107,21 +107,21 @@ function Columns(props) {
107
107
  const builderContext = useContext(BuilderContext);
108
108
  return (React.createElement(React.Fragment, null,
109
109
  React.createElement("div", { className: `builder-columns ${props.builderBlock.id}-breakpoints` +
110
- " div-568386c4", style: columnsCssVars(), dataSet: {
110
+ " div-5d506a94", style: columnsCssVars(), dataSet: {
111
111
  "builder-block-name": "builder-columns",
112
112
  } },
113
113
  TARGET !== "reactNative" ? (React.createElement(React.Fragment, null,
114
114
  React.createElement(RenderInlinedStyles, { styles: columnsStyles() }))) : null,
115
- props.columns?.map((column, index) => (React.createElement("div", { className: "builder-column div-568386c4-2", style: columnCssVars(index), dataSet: {
115
+ props.columns?.map((column, index) => (React.createElement("div", { className: "builder-column div-5d506a94-2", style: columnCssVars(index), dataSet: {
116
116
  "builder-block-name": "builder-column",
117
117
  }, key: index },
118
118
  React.createElement(RenderBlocks, { blocks: column.blocks, path: `component.options.columns.${index}.blocks`, parent: props.builderBlock.id, styleProp: {
119
119
  flexGrow: "1",
120
120
  } }))))),
121
- React.createElement("style", null, `.div-568386c4 {
121
+ React.createElement("style", null, `.div-5d506a94 {
122
122
  display: flex;
123
123
  line-height: normal;
124
- }.div-568386c4-2 {
124
+ }.div-5d506a94-2 {
125
125
  display: flex;
126
126
  flex-direction: column;
127
127
  align-items: stretch;
@@ -48,11 +48,11 @@ function Columns(props) {
48
48
  if (TARGET === "reactNative") {
49
49
  return {
50
50
  width,
51
- marginLeft: props.stackColumnsAt === "never" ? gutter : "0",
51
+ marginLeft: props.stackColumnsAt === "never" ? gutter : 0,
52
52
  };
53
53
  }
54
54
  const mobileWidth = "100%";
55
- const mobileMarginLeft = "0";
55
+ const mobileMarginLeft = 0;
56
56
  return {
57
57
  width,
58
58
  "margin-left": gutter,
@@ -109,21 +109,21 @@ function Columns(props) {
109
109
  const builderContext = _context["BuilderContext"];
110
110
  return (React.createElement(React.Fragment, null,
111
111
  React.createElement("div", { className: `builder-columns ${props.builderBlock.id}-breakpoints` +
112
- " div-263839f0", style: state.columnsCssVars, dataSet: {
112
+ " div-34a79a14", style: state.columnsCssVars, dataSet: {
113
113
  "builder-block-name": "builder-columns",
114
114
  } },
115
115
  TARGET !== "reactNative" ? (React.createElement(React.Fragment, null,
116
116
  React.createElement(RenderInlinedStyles, { styles: state.columnsStyles, _context: _context }))) : null,
117
- props.columns?.map((column, index) => (React.createElement("div", { className: "builder-column div-263839f0-2", style: state.columnCssVars(index), dataSet: {
117
+ props.columns?.map((column, index) => (React.createElement("div", { className: "builder-column div-34a79a14-2", style: state.columnCssVars(index), dataSet: {
118
118
  "builder-block-name": "builder-column",
119
119
  }, key: index },
120
120
  React.createElement(RenderBlocks, { blocks: column.blocks, path: `component.options.columns.${index}.blocks`, parent: props.builderBlock.id, styleProp: {
121
121
  flexGrow: "1",
122
122
  }, _context: _context }))))),
123
- React.createElement("style", null, `.div-263839f0 {
123
+ React.createElement("style", null, `.div-34a79a14 {
124
124
  display: flex;
125
125
  line-height: normal;
126
- }.div-263839f0-2 {
126
+ }.div-34a79a14-2 {
127
127
  display: flex;
128
128
  flex-direction: column;
129
129
  align-items: stretch;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@builder.io/sdk-react",
3
3
  "description": "Builder.io SDK for React",
4
- "version": "0.1.13",
4
+ "version": "0.1.14",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
7
7
  "exports": {
@@ -63,11 +63,11 @@ function Columns(props) {
63
63
  if (TARGET === "reactNative") {
64
64
  return {
65
65
  width,
66
- marginLeft: props.stackColumnsAt === "never" ? gutter : "0",
66
+ marginLeft: props.stackColumnsAt === "never" ? gutter : 0,
67
67
  };
68
68
  }
69
69
  const mobileWidth = "100%";
70
- const mobileMarginLeft = "0";
70
+ const mobileMarginLeft = 0;
71
71
  return {
72
72
  width,
73
73
  "margin-left": gutter,
@@ -132,7 +132,7 @@ function Columns(props) {
132
132
  <div
133
133
  className={
134
134
  `builder-columns ${props.builderBlock.id}-breakpoints` +
135
- " div-568386c4"
135
+ " div-5d506a94"
136
136
  }
137
137
  style={columnsCssVars()}
138
138
  dataSet={{
@@ -147,7 +147,7 @@ function Columns(props) {
147
147
 
148
148
  {props.columns?.map((column, index) => (
149
149
  <div
150
- className="builder-column div-568386c4-2"
150
+ className="builder-column div-5d506a94-2"
151
151
  style={columnCssVars(index)}
152
152
  dataSet={{
153
153
  "builder-block-name": "builder-column",
@@ -165,10 +165,10 @@ function Columns(props) {
165
165
  </div>
166
166
  ))}
167
167
  </div>
168
- <style>{`.div-568386c4 {
168
+ <style>{`.div-5d506a94 {
169
169
  display: flex;
170
170
  line-height: normal;
171
- }.div-568386c4-2 {
171
+ }.div-5d506a94-2 {
172
172
  display: flex;
173
173
  flex-direction: column;
174
174
  align-items: stretch;
@@ -52,11 +52,11 @@ function Columns(props) {
52
52
  if (TARGET === "reactNative") {
53
53
  return {
54
54
  width,
55
- marginLeft: props.stackColumnsAt === "never" ? gutter : "0",
55
+ marginLeft: props.stackColumnsAt === "never" ? gutter : 0,
56
56
  };
57
57
  }
58
58
  const mobileWidth = "100%";
59
- const mobileMarginLeft = "0";
59
+ const mobileMarginLeft = 0;
60
60
  return {
61
61
  width,
62
62
  "margin-left": gutter,
@@ -120,7 +120,7 @@ function Columns(props) {
120
120
  <div
121
121
  className={
122
122
  `builder-columns ${props.builderBlock.id}-breakpoints` +
123
- " div-263839f0"
123
+ " div-34a79a14"
124
124
  }
125
125
  style={state.columnsCssVars}
126
126
  dataSet={{
@@ -138,7 +138,7 @@ function Columns(props) {
138
138
 
139
139
  {props.columns?.map((column, index) => (
140
140
  <div
141
- className="builder-column div-263839f0-2"
141
+ className="builder-column div-34a79a14-2"
142
142
  style={state.columnCssVars(index)}
143
143
  dataSet={{
144
144
  "builder-block-name": "builder-column",
@@ -157,10 +157,10 @@ function Columns(props) {
157
157
  </div>
158
158
  ))}
159
159
  </div>
160
- <style>{`.div-263839f0 {
160
+ <style>{`.div-34a79a14 {
161
161
  display: flex;
162
162
  line-height: normal;
163
- }.div-263839f0-2 {
163
+ }.div-34a79a14-2 {
164
164
  display: flex;
165
165
  flex-direction: column;
166
166
  align-items: stretch;