ywana-core8 0.0.749 → 0.0.751

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.
@@ -1484,7 +1484,6 @@ var TextArea = function TextArea(props) {
1484
1484
  var DropDown = function DropDown(props) {
1485
1485
  var site = useContext(SiteContext);
1486
1486
  var id = props.id,
1487
- icon = props.icon,
1488
1487
  _props$options = props.options,
1489
1488
  options = _props$options === void 0 ? [] : _props$options,
1490
1489
  value = props.value,
@@ -1579,8 +1578,8 @@ var DropDown = function DropDown(props) {
1579
1578
  onClick: function onClick() {
1580
1579
  return select(option.value);
1581
1580
  }
1582
- }, icon ? /*#__PURE__*/React.createElement(Icon, {
1583
- icon: icon,
1581
+ }, option.icon ? /*#__PURE__*/React.createElement(Icon, {
1582
+ icon: option.icon,
1584
1583
  size: "small"
1585
1584
  }) : '', /*#__PURE__*/React.createElement(Text, null, option.label));
1586
1585
  });
@@ -6343,12 +6342,12 @@ var CollectionTree = function CollectionTree(props) {
6343
6342
  var CollectionEditor$1 = function CollectionEditor(props) {
6344
6343
  var save = function save() {
6345
6344
  try {
6346
- var _temp3 = function _temp3() {
6345
+ var _temp5 = function _temp5() {
6347
6346
  if (onChange) onChange(form);
6348
6347
  setPageContext(Object.assign({}, pageContext));
6349
6348
  };
6350
6349
 
6351
- var _temp4 = function () {
6350
+ var _temp6 = function () {
6352
6351
  if (patch) {
6353
6352
  return Promise.resolve(pageContext.patch(form.id, form)).then(function () {});
6354
6353
  } else {
@@ -6356,7 +6355,7 @@ var CollectionEditor$1 = function CollectionEditor(props) {
6356
6355
  }
6357
6356
  }();
6358
6357
 
6359
- return Promise.resolve(_temp4 && _temp4.then ? _temp4.then(_temp3) : _temp3(_temp4));
6358
+ return Promise.resolve(_temp6 && _temp6.then ? _temp6.then(_temp5) : _temp5(_temp6));
6360
6359
  } catch (e) {
6361
6360
  return Promise.reject(e);
6362
6361
  }
@@ -6366,7 +6365,7 @@ var CollectionEditor$1 = function CollectionEditor(props) {
6366
6365
  try {
6367
6366
  var accept = site.confirm("¿ Esta seguro ?");
6368
6367
 
6369
- var _temp6 = function () {
6368
+ var _temp2 = function () {
6370
6369
  if (accept === true) {
6371
6370
  return Promise.resolve(pageContext.remove(selected.id)).then(function () {
6372
6371
  pageContext.clear();
@@ -6375,12 +6374,14 @@ var CollectionEditor$1 = function CollectionEditor(props) {
6375
6374
  }
6376
6375
  }();
6377
6376
 
6378
- return Promise.resolve(_temp6 && _temp6.then ? _temp6.then(function () {}) : void 0);
6377
+ return Promise.resolve(_temp2 && _temp2.then ? _temp2.then(function () {}) : void 0);
6379
6378
  } catch (e) {
6380
6379
  return Promise.reject(e);
6381
6380
  }
6382
6381
  };
6383
6382
 
6383
+ var site = useContext(SiteContext);
6384
+
6384
6385
  var _useContext5 = useContext(PageContext),
6385
6386
  pageContext = _useContext5[0],
6386
6387
  setPageContext = _useContext5[1];