ywana-core8 0.0.83 → 0.0.84
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/index.cjs +16 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +16 -3
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +16 -3
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/html/switch.js +2 -1
package/dist/index.cjs
CHANGED
@@ -869,7 +869,7 @@ var TextField = function TextField(props) {
|
|
869
869
|
var key = event.charCode ? event.charCode : event.keyCode ? event.keyCode : 0;
|
870
870
|
|
871
871
|
if (key == 13) {
|
872
|
-
onEnter();
|
872
|
+
if (onEnter) onEnter();
|
873
873
|
}
|
874
874
|
}
|
875
875
|
|
@@ -1480,7 +1480,18 @@ var TreeItem = function TreeItem(_ref3) {
|
|
1480
1480
|
};
|
1481
1481
|
|
1482
1482
|
var Switch = function Switch(props) {
|
1483
|
-
return /*#__PURE__*/React__default["default"].createElement(RSwitch__default["default"], props
|
1483
|
+
return /*#__PURE__*/React__default["default"].createElement(RSwitch__default["default"], _extends({}, props, {
|
1484
|
+
onColor: "#86d3ff",
|
1485
|
+
onHandleColor: "#2693e6",
|
1486
|
+
handleDiameter: 30,
|
1487
|
+
uncheckedIcon: false,
|
1488
|
+
checkedIcon: false,
|
1489
|
+
boxShadow: "0px 1px 5px rgba(0, 0, 0, 0.6)",
|
1490
|
+
activeBoxShadow: "0px 0px 1px 10px rgba(0, 0, 0, 0.2)",
|
1491
|
+
height: 20,
|
1492
|
+
width: 48,
|
1493
|
+
className: "react-switch"
|
1494
|
+
}));
|
1484
1495
|
};
|
1485
1496
|
|
1486
1497
|
/**
|
@@ -2575,7 +2586,9 @@ var ContentEditor = function ContentEditor(_ref) {
|
|
2575
2586
|
var sections = content.sections();
|
2576
2587
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
2577
2588
|
className: "content-editor"
|
2578
|
-
}, sections.
|
2589
|
+
}, sections.filter(function (section) {
|
2590
|
+
return section.fields && 0 < section.fields.length;
|
2591
|
+
}).map(function (section) {
|
2579
2592
|
var title = section.title,
|
2580
2593
|
fields = section.fields;
|
2581
2594
|
return /*#__PURE__*/React__default["default"].createElement("section", {
|