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.
@@ -1493,7 +1493,8 @@ var DropDown = function DropDown(props) {
1493
1493
  editable = _props$editable === void 0 ? false : _props$editable,
1494
1494
  onBlur = props.onBlur,
1495
1495
  _props$position = props.position,
1496
- position = _props$position === void 0 ? "bottom" : _props$position;
1496
+ position = _props$position === void 0 ? "bottom" : _props$position,
1497
+ className = props.className;
1497
1498
  var _useState = useState(false),
1498
1499
  open = _useState[0],
1499
1500
  setOpen = _useState[1];
@@ -1582,7 +1583,7 @@ var DropDown = function DropDown(props) {
1582
1583
  size: "small"
1583
1584
  })) : props.label;
1584
1585
  return /*#__PURE__*/React.createElement("div", {
1585
- className: "dropdown"
1586
+ className: "dropdown " + className
1586
1587
  }, /*#__PURE__*/React.createElement(TextField, _extends({}, props, {
1587
1588
  label: title,
1588
1589
  onClick: onFocus,
@@ -7456,6 +7457,9 @@ var CollectionPage$1 = function CollectionPage(props) {
7456
7457
  onReload: reloadSelection,
7457
7458
  patch: patch,
7458
7459
  onChange: onChange,
7460
+ onClose: function onClose() {
7461
+ return onSelect(null);
7462
+ },
7459
7463
  actions: editorActions,
7460
7464
  title: editorTitle,
7461
7465
  validator: editValidator
@@ -7816,6 +7820,7 @@ var CollectionEditor$1 = function CollectionEditor(props) {
7816
7820
  canDelete = props.canDelete,
7817
7821
  onReload = props.onReload,
7818
7822
  onChange = props.onChange,
7823
+ onClose = props.onClose,
7819
7824
  _props$patch2 = props.patch,
7820
7825
  patch = _props$patch2 === void 0 ? false : _props$patch2,
7821
7826
  actions = props.actions,
@@ -7838,6 +7843,7 @@ var CollectionEditor$1 = function CollectionEditor(props) {
7838
7843
  function clear() {
7839
7844
  pageContext.clear();
7840
7845
  setPageContext(Object.assign({}, pageContext));
7846
+ if (onClose) onClose();
7841
7847
  }
7842
7848
  function change(next) {
7843
7849
  setForm(next);