react-form-builder-more-flexibility 1.0.30 → 1.0.31
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/dist/app.css +2 -2
- package/dist/app.css.map +1 -0
- package/dist/app.js +1 -1
- package/lib/multi-column/dustbin.js +5 -4
- package/package.json +2 -3
|
@@ -33,13 +33,14 @@ function getCustomElement(item, props) {
|
|
|
33
33
|
}
|
|
34
34
|
function getElement(item, props) {
|
|
35
35
|
if (!item) return null;
|
|
36
|
-
|
|
36
|
+
if (item.custom) {
|
|
37
37
|
return getCustomElement(item, props);
|
|
38
|
-
}
|
|
39
|
-
|
|
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.
|
|
3
|
+
"version": "1.0.31",
|
|
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": "
|
|
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",
|