ywana-core8 0.0.748 → 0.0.749

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,6 +1486,7 @@
1486
1486
  var DropDown = function DropDown(props) {
1487
1487
  var site = React.useContext(SiteContext);
1488
1488
  var id = props.id,
1489
+ icon = props.icon,
1489
1490
  _props$options = props.options,
1490
1491
  options = _props$options === void 0 ? [] : _props$options,
1491
1492
  value = props.value,
@@ -1580,7 +1581,10 @@
1580
1581
  onClick: function onClick() {
1581
1582
  return select(option.value);
1582
1583
  }
1583
- }, /*#__PURE__*/React__default["default"].createElement(Text, null, option.label));
1584
+ }, icon ? /*#__PURE__*/React__default["default"].createElement(Icon, {
1585
+ icon: icon,
1586
+ size: "small"
1587
+ }) : '', /*#__PURE__*/React__default["default"].createElement(Text, null, option.label));
1584
1588
  });
1585
1589
  return /*#__PURE__*/React__default["default"].createElement("menu", null, /*#__PURE__*/React__default["default"].createElement("ul", null, lis));
1586
1590
  } else {