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.
package/dist/index.cjs CHANGED
@@ -1492,7 +1492,6 @@ var TextArea = function TextArea(props) {
1492
1492
  var DropDown = function DropDown(props) {
1493
1493
  var site = React.useContext(SiteContext);
1494
1494
  var id = props.id,
1495
- icon = props.icon,
1496
1495
  _props$options = props.options,
1497
1496
  options = _props$options === void 0 ? [] : _props$options,
1498
1497
  value = props.value,
@@ -1587,8 +1586,8 @@ var DropDown = function DropDown(props) {
1587
1586
  onClick: function onClick() {
1588
1587
  return select(option.value);
1589
1588
  }
1590
- }, icon ? /*#__PURE__*/React__default["default"].createElement(Icon, {
1591
- icon: icon,
1589
+ }, option.icon ? /*#__PURE__*/React__default["default"].createElement(Icon, {
1590
+ icon: option.icon,
1592
1591
  size: "small"
1593
1592
  }) : '', /*#__PURE__*/React__default["default"].createElement(Text, null, option.label));
1594
1593
  });
@@ -6351,12 +6350,12 @@ var CollectionTree = function CollectionTree(props) {
6351
6350
  var CollectionEditor$1 = function CollectionEditor(props) {
6352
6351
  var save = function save() {
6353
6352
  try {
6354
- var _temp3 = function _temp3() {
6353
+ var _temp5 = function _temp5() {
6355
6354
  if (onChange) onChange(form);
6356
6355
  setPageContext(Object.assign({}, pageContext));
6357
6356
  };
6358
6357
 
6359
- var _temp4 = function () {
6358
+ var _temp6 = function () {
6360
6359
  if (patch) {
6361
6360
  return Promise.resolve(pageContext.patch(form.id, form)).then(function () {});
6362
6361
  } else {
@@ -6364,7 +6363,7 @@ var CollectionEditor$1 = function CollectionEditor(props) {
6364
6363
  }
6365
6364
  }();
6366
6365
 
6367
- return Promise.resolve(_temp4 && _temp4.then ? _temp4.then(_temp3) : _temp3(_temp4));
6366
+ return Promise.resolve(_temp6 && _temp6.then ? _temp6.then(_temp5) : _temp5(_temp6));
6368
6367
  } catch (e) {
6369
6368
  return Promise.reject(e);
6370
6369
  }
@@ -6374,7 +6373,7 @@ var CollectionEditor$1 = function CollectionEditor(props) {
6374
6373
  try {
6375
6374
  var accept = site.confirm("¿ Esta seguro ?");
6376
6375
 
6377
- var _temp6 = function () {
6376
+ var _temp2 = function () {
6378
6377
  if (accept === true) {
6379
6378
  return Promise.resolve(pageContext.remove(selected.id)).then(function () {
6380
6379
  pageContext.clear();
@@ -6383,12 +6382,14 @@ var CollectionEditor$1 = function CollectionEditor(props) {
6383
6382
  }
6384
6383
  }();
6385
6384
 
6386
- return Promise.resolve(_temp6 && _temp6.then ? _temp6.then(function () {}) : void 0);
6385
+ return Promise.resolve(_temp2 && _temp2.then ? _temp2.then(function () {}) : void 0);
6387
6386
  } catch (e) {
6388
6387
  return Promise.reject(e);
6389
6388
  }
6390
6389
  };
6391
6390
 
6391
+ var site = React.useContext(SiteContext);
6392
+
6392
6393
  var _useContext5 = React.useContext(PageContext),
6393
6394
  pageContext = _useContext5[0],
6394
6395
  setPageContext = _useContext5[1];