@builder.io/mitosis 0.6.2 → 0.6.3

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.
@@ -1112,16 +1112,13 @@ function mapBuilderBindingsToMitosisBindingWithCode(bindings) {
1112
1112
  });
1113
1113
  return result;
1114
1114
  }
1115
- function removeFalsey(obj) {
1116
- return (0, lodash_1.omitBy)(obj, (value) => !value || value === '0' || value === '0px' || value === 'none' || value === '0%');
1117
- }
1118
1115
  function combineStyles(parent, child) {
1119
1116
  const marginStyles = ['marginTop', 'marginBottom', 'marginLeft', 'marginRight'];
1120
1117
  const paddingStyles = ['paddingTop', 'paddingBottom', 'paddingLeft', 'paddingRight'];
1121
1118
  const distanceStylesToCombine = [...paddingStyles, ...marginStyles];
1122
1119
  const merged = {
1123
- ...(0, lodash_1.omit)(removeFalsey(child), distanceStylesToCombine),
1124
- ...removeFalsey(parent),
1120
+ ...(0, lodash_1.omit)(child, distanceStylesToCombine),
1121
+ ...parent,
1125
1122
  };
1126
1123
  for (const key of distanceStylesToCombine) {
1127
1124
  // Funky things happen if different alignment
package/package.json CHANGED
@@ -22,7 +22,7 @@
22
22
  "name": "Builder.io",
23
23
  "url": "https://www.builder.io"
24
24
  },
25
- "version": "0.6.2",
25
+ "version": "0.6.3",
26
26
  "homepage": "https://github.com/BuilderIO/mitosis",
27
27
  "main": "./dist/src/index.js",
28
28
  "exports": {