@homecode/ui 4.18.14 → 4.18.15
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.
|
@@ -496,6 +496,7 @@ class Select extends Component {
|
|
|
496
496
|
return (jsx(Button, { variant: "clear", size: size, className: S.expandButton, onPointerUpCapture: e => this.onExpandClick(e, id), children: jsx(Icon, { type: "chevronRight", size: size, className: S.expandIcon }) }));
|
|
497
497
|
}
|
|
498
498
|
renderOption = (item, level = 0) => {
|
|
499
|
+
const { optionClassName } = this.props;
|
|
499
500
|
const { expanded } = this.store;
|
|
500
501
|
const { id, children, isGroup } = item;
|
|
501
502
|
const selectedState = this.isSelected(id);
|
|
@@ -504,7 +505,7 @@ class Select extends Component {
|
|
|
504
505
|
const isSelected = selectedState === true;
|
|
505
506
|
const isIndeterminate = selectedState === 'indeterminate';
|
|
506
507
|
const items = [];
|
|
507
|
-
const className = cn(S.option, isGroup && S.isGroup, isFocused && S.isFocused, isSelected && S.isSelected, isIndeterminate && S.isIndeterminate, isExpanded && S.isExpanded, S[`level-${level}`]);
|
|
508
|
+
const className = cn(S.option, isGroup && S.isGroup, isFocused && S.isFocused, isSelected && S.isSelected, isIndeterminate && S.isIndeterminate, isExpanded && S.isExpanded, S[`level-${level}`], optionClassName);
|
|
508
509
|
const props = {
|
|
509
510
|
className,
|
|
510
511
|
key: id,
|