react-form-builder-more-flexibility 1.0.30 → 1.0.32

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.
@@ -33,13 +33,14 @@ function getCustomElement(item, props) {
33
33
  }
34
34
  function getElement(item, props) {
35
35
  if (!item) return null;
36
- var Element = item.custom ? function () {
36
+ if (item.custom) {
37
37
  return getCustomElement(item, props);
38
- } : _formElements["default"][item.element || item.key];
39
- return /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, /*#__PURE__*/_react["default"].createElement(Element, (0, _extends2["default"])({}, props, {
38
+ }
39
+ var Element = _formElements["default"][item.element || item.key];
40
+ return /*#__PURE__*/_react["default"].createElement(Element, (0, _extends2["default"])({}, props, {
40
41
  key: "form_".concat(item.id),
41
42
  data: item
42
- })));
43
+ }));
43
44
  }
44
45
  function getStyle(backgroundColor) {
45
46
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-form-builder-more-flexibility",
3
- "version": "1.0.30",
3
+ "version": "1.0.32",
4
4
  "description": "A complete form builder for react.",
5
5
  "main": "lib/index.js",
6
6
  "types": "types/index.d.ts",
@@ -78,7 +78,6 @@
78
78
  "eslint-plugin-react": "^7.22.0",
79
79
  "express": "^4.17.1",
80
80
  "multer": "^1.4.2",
81
- "node-sass": "^7.0.1",
82
81
  "react": "^16.14.0",
83
82
  "react-dom": "^16.14.0",
84
83
  "rimraf": "^3.0.2",
@@ -93,7 +92,7 @@
93
92
  "build": "webpack --mode production --config webpack.production.config.js",
94
93
  "build:dev": "webpack --mode development",
95
94
  "build:umd": "webpack --mode development --config webpack.production.config.js",
96
- "build:style": "node-sass ./scss/application.scss dist/app.css --output-style compressed",
95
+ "build:style": "sass ./scss/application.scss dist/app.css --style compressed",
97
96
  "build:lib": "npm run transpile && npm run build:style",
98
97
  "build:dist": "npm run build && npm run copy:dist",
99
98
  "clean": "rimraf dist",