arengibook 2.4.670 → 2.4.671

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 +13 -14
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -36374,6 +36374,8 @@ var Dropdown = function Dropdown(props) {
36374
36374
  choice_attr = _props$choice_attr === void 0 ? function () {
36375
36375
  return {};
36376
36376
  } : _props$choice_attr,
36377
+ _props$optionClassnam = props.optionClassname,
36378
+ optionClassname = _props$optionClassnam === void 0 ? null : _props$optionClassnam,
36377
36379
  _props$isGroupedOptio = props.isGroupedOption,
36378
36380
  isGroupedOption = _props$isGroupedOptio === void 0 ? false : _props$isGroupedOptio,
36379
36381
  _props$showTooltipGro = props.showTooltipGroup,
@@ -36518,20 +36520,17 @@ var Dropdown = function Dropdown(props) {
36518
36520
  };
36519
36521
  var optionTemplate = function optionTemplate(option) {
36520
36522
  if (!isSelectMeta) {
36521
- if (choice_attr) {
36522
- return /*#__PURE__*/React__default.createElement("div", {
36523
- className: "".concat(choice_attr(option).className),
36524
- style: _objectSpread2({
36525
- fontSize: '14px'
36526
- }, optionStyle)
36527
- }, option === null || option === void 0 ? void 0 : option[optionLabel]);
36528
- } else {
36529
- return /*#__PURE__*/React__default.createElement("div", {
36530
- style: _objectSpread2({
36531
- fontSize: '14px'
36532
- }, optionStyle)
36533
- }, option === null || option === void 0 ? void 0 : option[optionLabel]);
36534
- }
36523
+ var defaultAttrs = {
36524
+ className: optionClassname,
36525
+ style: {
36526
+ fontSize: '14px'
36527
+ }
36528
+ };
36529
+ var attrs = typeof choice_attr === 'function' ? choice_attr(option) : defaultAttrs;
36530
+ return /*#__PURE__*/React__default.createElement("div", {
36531
+ className: attrs.className,
36532
+ style: _objectSpread2(_objectSpread2({}, attrs.style), optionStyle)
36533
+ }, option === null || option === void 0 ? void 0 : option[optionLabel]);
36535
36534
  } else {
36536
36535
  var _ref = selectMetaConfig || {},
36537
36536
  labelStyle = _ref.labelStyle,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "arengibook",
3
3
  "private": false,
4
- "version": "2.4.670",
4
+ "version": "2.4.671",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
7
7
  "exports": {