ywana-core8 0.0.939 → 0.0.941

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
@@ -1502,7 +1502,8 @@ var DropDown = function DropDown(props) {
1502
1502
  editable = _props$editable === void 0 ? false : _props$editable,
1503
1503
  onBlur = props.onBlur,
1504
1504
  _props$position = props.position,
1505
- position = _props$position === void 0 ? "bottom" : _props$position;
1505
+ position = _props$position === void 0 ? "bottom" : _props$position,
1506
+ className = props.className;
1506
1507
  var _useState = React.useState(false),
1507
1508
  open = _useState[0],
1508
1509
  setOpen = _useState[1];
@@ -1591,7 +1592,7 @@ var DropDown = function DropDown(props) {
1591
1592
  size: "small"
1592
1593
  })) : props.label;
1593
1594
  return /*#__PURE__*/React__default["default"].createElement("div", {
1594
- className: "dropdown"
1595
+ className: "dropdown " + className
1595
1596
  }, /*#__PURE__*/React__default["default"].createElement(TextField, _extends({}, props, {
1596
1597
  label: title,
1597
1598
  onClick: onFocus,
@@ -7465,6 +7466,9 @@ var CollectionPage$1 = function CollectionPage(props) {
7465
7466
  onReload: reloadSelection,
7466
7467
  patch: patch,
7467
7468
  onChange: onChange,
7469
+ onClose: function onClose() {
7470
+ return onSelect(null);
7471
+ },
7468
7472
  actions: editorActions,
7469
7473
  title: editorTitle,
7470
7474
  validator: editValidator
@@ -7825,6 +7829,7 @@ var CollectionEditor$1 = function CollectionEditor(props) {
7825
7829
  canDelete = props.canDelete,
7826
7830
  onReload = props.onReload,
7827
7831
  onChange = props.onChange,
7832
+ onClose = props.onClose,
7828
7833
  _props$patch2 = props.patch,
7829
7834
  patch = _props$patch2 === void 0 ? false : _props$patch2,
7830
7835
  actions = props.actions,
@@ -7847,6 +7852,7 @@ var CollectionEditor$1 = function CollectionEditor(props) {
7847
7852
  function clear() {
7848
7853
  pageContext.clear();
7849
7854
  setPageContext(Object.assign({}, pageContext));
7855
+ if (onClose) onClose();
7850
7856
  }
7851
7857
  function change(next) {
7852
7858
  setForm(next);