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.modern.js
CHANGED
@@ -862,7 +862,7 @@ var TextField = function TextField(props) {
|
|
862
862
|
var key = event.charCode ? event.charCode : event.keyCode ? event.keyCode : 0;
|
863
863
|
|
864
864
|
if (key == 13) {
|
865
|
-
onEnter();
|
865
|
+
if (onEnter) onEnter();
|
866
866
|
}
|
867
867
|
}
|
868
868
|
|
@@ -1473,7 +1473,18 @@ var TreeItem = function TreeItem(_ref3) {
|
|
1473
1473
|
};
|
1474
1474
|
|
1475
1475
|
var Switch = function Switch(props) {
|
1476
|
-
return /*#__PURE__*/React.createElement(RSwitch, props
|
1476
|
+
return /*#__PURE__*/React.createElement(RSwitch, _extends({}, props, {
|
1477
|
+
onColor: "#86d3ff",
|
1478
|
+
onHandleColor: "#2693e6",
|
1479
|
+
handleDiameter: 30,
|
1480
|
+
uncheckedIcon: false,
|
1481
|
+
checkedIcon: false,
|
1482
|
+
boxShadow: "0px 1px 5px rgba(0, 0, 0, 0.6)",
|
1483
|
+
activeBoxShadow: "0px 0px 1px 10px rgba(0, 0, 0, 0.2)",
|
1484
|
+
height: 20,
|
1485
|
+
width: 48,
|
1486
|
+
className: "react-switch"
|
1487
|
+
}));
|
1477
1488
|
};
|
1478
1489
|
|
1479
1490
|
/**
|
@@ -2568,7 +2579,9 @@ var ContentEditor = function ContentEditor(_ref) {
|
|
2568
2579
|
var sections = content.sections();
|
2569
2580
|
return /*#__PURE__*/React.createElement("div", {
|
2570
2581
|
className: "content-editor"
|
2571
|
-
}, sections.
|
2582
|
+
}, sections.filter(function (section) {
|
2583
|
+
return section.fields && 0 < section.fields.length;
|
2584
|
+
}).map(function (section) {
|
2572
2585
|
var title = section.title,
|
2573
2586
|
fields = section.fields;
|
2574
2587
|
return /*#__PURE__*/React.createElement("section", {
|