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