ywana-core8 0.0.942 → 0.0.943

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 CHANGED
@@ -1070,7 +1070,10 @@ var Tabs = function Tabs(props) {
1070
1070
  fillLeft = _props$fillLeft === void 0 ? false : _props$fillLeft,
1071
1071
  _props$fillRight = props.fillRight,
1072
1072
  fillRight = _props$fillRight === void 0 ? true : _props$fillRight;
1073
- var tabs = React__default["default"].Children.map(children, function (child, index) {
1073
+ var notNullChildren = React__default["default"].Children.toArray(children).filter(function (child) {
1074
+ return child !== null;
1075
+ });
1076
+ var tabs = notNullChildren.map(function (child, index) {
1074
1077
  function select(id) {
1075
1078
  if (onChange) onChange(id || index);
1076
1079
  }
@@ -1120,7 +1123,10 @@ var Tab = function Tab(props) {
1120
1123
  var Stack = function Stack(props) {
1121
1124
  var _props$selected = props.selected,
1122
1125
  selected = _props$selected === void 0 ? 0 : _props$selected;
1123
- var child = React__default["default"].Children.toArray(props.children).filter(function (child, index) {
1126
+ var notNullChildren = React__default["default"].Children.toArray(props.children).filter(function (child) {
1127
+ return child !== null;
1128
+ });
1129
+ var child = notNullChildren.filter(function (child, index) {
1124
1130
  return index === selected;
1125
1131
  })[0];
1126
1132
  return /*#__PURE__*/React__default["default"].createElement(React.Fragment, null, child);
@@ -5788,6 +5794,9 @@ var Planner2 = function Planner2(_ref) {
5788
5794
  function selectCell(cell) {
5789
5795
  if (onSelectCell) onSelectCell(cell);
5790
5796
  }
5797
+ function drop() {
5798
+ //TODO
5799
+ }
5791
5800
  var uniqueMonths = Array.from(new Set(days.map(function (_ref2) {
5792
5801
  var month = _ref2.month;
5793
5802
  return month;
@@ -5888,18 +5897,19 @@ var Planner2 = function Planner2(_ref) {
5888
5897
  });
5889
5898
  var weekendClass = isWeekend ? 'weekend' : '';
5890
5899
  return /*#__PURE__*/React__default["default"].createElement("div", {
5900
+ key: "content" + index + "_" + year + "-" + month + "-" + day,
5891
5901
  className: "content-cell " + weekendClass,
5892
5902
  style: {
5893
5903
  minWidth: dayWidth,
5894
5904
  maxWidth: dayWidth
5895
5905
  },
5896
- key: "content" + index + "_" + year + "-" + month + "-" + day,
5897
5906
  onClick: function onClick() {
5898
5907
  return selectCell({
5899
5908
  lane: lane.id,
5900
5909
  date: dayDate
5901
5910
  });
5902
- }
5911
+ },
5912
+ onDrop: drop
5903
5913
  }, dayEvents.map(function (event, index) {
5904
5914
  return /*#__PURE__*/React__default["default"].createElement(EventRenderer, {
5905
5915
  key: event.id + "-" + index,