arengibook 2.4.662 → 2.4.663

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 +14 -7
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -39891,13 +39891,20 @@ var MultiSelect = function MultiSelect(props) {
39891
39891
  }, "\xD7"));
39892
39892
  } else {
39893
39893
  if (option == null) return null;
39894
- if (typeof option === 'string') {
39895
- var _selectedOption = options.find(function (opt) {
39896
- return opt.value === option;
39897
- });
39898
- return _selectedOption ? "".concat(_selectedOption.label, ", ") : "".concat(option, ", ");
39899
- }
39900
- return "".concat(option.label || option, ",");
39894
+ var opt = options.find(function (o) {
39895
+ return o[optionValue] === option;
39896
+ });
39897
+ if (!opt) return null;
39898
+ var isLast = selectedOptions[selectedOptions.length - 1] === option;
39899
+ return /*#__PURE__*/React__default.createElement("span", {
39900
+ style: {
39901
+ marginRight: '4px'
39902
+ }
39903
+ }, opt[optionLabel], !isLast && /*#__PURE__*/React__default.createElement("span", {
39904
+ style: {
39905
+ opacity: 0.8
39906
+ }
39907
+ }, ", "));
39901
39908
  }
39902
39909
  };
39903
39910
  var panelFooterTemplate = function panelFooterTemplate() {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "arengibook",
3
3
  "private": false,
4
- "version": "2.4.662",
4
+ "version": "2.4.663",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
7
7
  "exports": {