arengibook 2.4.679 → 2.4.681

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.
Files changed (2) hide show
  1. package/dist/index.js +15 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -36522,6 +36522,7 @@ var Dropdown = function Dropdown(props) {
36522
36522
  };
36523
36523
  var optionTemplate = function optionTemplate(option) {
36524
36524
  if (!isSelectMeta) {
36525
+ var _option$attrs;
36525
36526
  var defaultAttrs = {
36526
36527
  className: optionClassname,
36527
36528
  style: {
@@ -36529,10 +36530,19 @@ var Dropdown = function Dropdown(props) {
36529
36530
  }
36530
36531
  };
36531
36532
  var attrs = typeof choice_attr === 'function' ? choice_attr(option) : defaultAttrs;
36533
+ var srcLink = option === null || option === void 0 || (_option$attrs = option.attrs) === null || _option$attrs === void 0 ? void 0 : _option$attrs['data-src'];
36532
36534
  return /*#__PURE__*/React__default.createElement("div", {
36533
36535
  className: attrs.className,
36534
36536
  style: _objectSpread2(_objectSpread2({}, attrs.style), optionStyle)
36535
- }, option === null || option === void 0 ? void 0 : option[optionLabel]);
36537
+ }, srcLink && /*#__PURE__*/React__default.createElement("img", {
36538
+ alt: "img",
36539
+ src: srcLink,
36540
+ style: {
36541
+ width: '18px',
36542
+ marginRight: '0.5rem'
36543
+ },
36544
+ className: "mr-2"
36545
+ }), option === null || option === void 0 ? void 0 : option[optionLabel]);
36536
36546
  } else {
36537
36547
  var _ref = selectMetaConfig || {},
36538
36548
  labelStyle = _ref.labelStyle,
@@ -36633,8 +36643,10 @@ var Dropdown = function Dropdown(props) {
36633
36643
  setIsEditing(false);
36634
36644
  }
36635
36645
  clickedFromList.current = false;
36636
- if (onChange) {
36637
- onChange(newValue);
36646
+ if (typeof onChange === 'function') {
36647
+ onChange(e);
36648
+ } else if (typeof onChange === 'string' && typeof window[onChange] === 'function') {
36649
+ window[onChange](e);
36638
36650
  }
36639
36651
  };
36640
36652
  var groupedItemTemplate = function groupedItemTemplate(option) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "arengibook",
3
3
  "private": false,
4
- "version": "2.4.679",
4
+ "version": "2.4.681",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
7
7
  "exports": {