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.
@@ -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
  /**
@@ -2566,9 +2577,12 @@ var ContentEditor = function ContentEditor(_ref) {
2566
2577
  }
2567
2578
 
2568
2579
  var sections = content.sections();
2580
+ console.log('ContentEditor:sections', sections);
2569
2581
  return /*#__PURE__*/React.createElement("div", {
2570
2582
  className: "content-editor"
2571
- }, sections.map(function (section) {
2583
+ }, sections.filter(function (section) {
2584
+ return section.fields && section.fields.length > 0;
2585
+ }).map(function (section) {
2572
2586
  var title = section.title,
2573
2587
  fields = section.fields;
2574
2588
  return /*#__PURE__*/React.createElement("section", {