ywana-core8 0.0.81 → 0.0.85
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 +17 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +17 -3
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +17 -3
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/ContentEditor.js +18 -14
- package/src/html/switch.js +2 -1
- package/src/html/textfield.js +1 -1
package/dist/index.umd.js
CHANGED
@@ -866,7 +866,7 @@
|
|
866
866
|
var key = event.charCode ? event.charCode : event.keyCode ? event.keyCode : 0;
|
867
867
|
|
868
868
|
if (key == 13) {
|
869
|
-
onEnter();
|
869
|
+
if (onEnter) onEnter();
|
870
870
|
}
|
871
871
|
}
|
872
872
|
|
@@ -1477,7 +1477,18 @@
|
|
1477
1477
|
};
|
1478
1478
|
|
1479
1479
|
var Switch = function Switch(props) {
|
1480
|
-
return /*#__PURE__*/React__default["default"].createElement(RSwitch__default["default"], props
|
1480
|
+
return /*#__PURE__*/React__default["default"].createElement(RSwitch__default["default"], _extends({}, props, {
|
1481
|
+
onColor: "#86d3ff",
|
1482
|
+
onHandleColor: "#2693e6",
|
1483
|
+
handleDiameter: 30,
|
1484
|
+
uncheckedIcon: false,
|
1485
|
+
checkedIcon: false,
|
1486
|
+
boxShadow: "0px 1px 5px rgba(0, 0, 0, 0.6)",
|
1487
|
+
activeBoxShadow: "0px 0px 1px 10px rgba(0, 0, 0, 0.2)",
|
1488
|
+
height: 20,
|
1489
|
+
width: 48,
|
1490
|
+
className: "react-switch"
|
1491
|
+
}));
|
1481
1492
|
};
|
1482
1493
|
|
1483
1494
|
/**
|
@@ -2570,9 +2581,12 @@
|
|
2570
2581
|
}
|
2571
2582
|
|
2572
2583
|
var sections = content.sections();
|
2584
|
+
console.log('ContentEditor:sections', sections);
|
2573
2585
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
2574
2586
|
className: "content-editor"
|
2575
|
-
}, sections.
|
2587
|
+
}, sections.filter(function (section) {
|
2588
|
+
return section.fields && section.fields.length > 0;
|
2589
|
+
}).map(function (section) {
|
2576
2590
|
var title = section.title,
|
2577
2591
|
fields = section.fields;
|
2578
2592
|
return /*#__PURE__*/React__default["default"].createElement("section", {
|