|
|
@ -5,9 +5,11 @@ import EnhancedSelectInputOption, {
|
|
|
|
} from './EnhancedSelectInputOption';
|
|
|
|
} from './EnhancedSelectInputOption';
|
|
|
|
import styles from './HintedSelectInputOption.css';
|
|
|
|
import styles from './HintedSelectInputOption.css';
|
|
|
|
|
|
|
|
|
|
|
|
interface HintedSelectInputOptionProps extends EnhancedSelectInputOptionProps {
|
|
|
|
interface HintedSelectInputOptionProps
|
|
|
|
|
|
|
|
extends Omit<EnhancedSelectInputOptionProps, 'isSelected'> {
|
|
|
|
value: string;
|
|
|
|
value: string;
|
|
|
|
hint?: React.ReactNode;
|
|
|
|
hint?: React.ReactNode;
|
|
|
|
|
|
|
|
isSelected?: boolean;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function HintedSelectInputOption(props: HintedSelectInputOptionProps) {
|
|
|
|
function HintedSelectInputOption(props: HintedSelectInputOptionProps) {
|
|
|
@ -17,7 +19,7 @@ function HintedSelectInputOption(props: HintedSelectInputOptionProps) {
|
|
|
|
hint,
|
|
|
|
hint,
|
|
|
|
depth,
|
|
|
|
depth,
|
|
|
|
isSelected = false,
|
|
|
|
isSelected = false,
|
|
|
|
isDisabled,
|
|
|
|
isMultiSelect,
|
|
|
|
isMobile,
|
|
|
|
isMobile,
|
|
|
|
...otherProps
|
|
|
|
...otherProps
|
|
|
|
} = props;
|
|
|
|
} = props;
|
|
|
@ -27,8 +29,6 @@ function HintedSelectInputOption(props: HintedSelectInputOptionProps) {
|
|
|
|
id={id}
|
|
|
|
id={id}
|
|
|
|
depth={depth}
|
|
|
|
depth={depth}
|
|
|
|
isSelected={isSelected}
|
|
|
|
isSelected={isSelected}
|
|
|
|
isDisabled={isDisabled}
|
|
|
|
|
|
|
|
isHidden={isDisabled}
|
|
|
|
|
|
|
|
isMobile={isMobile}
|
|
|
|
isMobile={isMobile}
|
|
|
|
{...otherProps}
|
|
|
|
{...otherProps}
|
|
|
|
>
|
|
|
|
>
|
|
|
@ -43,10 +43,4 @@ function HintedSelectInputOption(props: HintedSelectInputOptionProps) {
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
HintedSelectInputOption.defaultProps = {
|
|
|
|
|
|
|
|
isDisabled: false,
|
|
|
|
|
|
|
|
isHidden: false,
|
|
|
|
|
|
|
|
isMultiSelect: false,
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default HintedSelectInputOption;
|
|
|
|
export default HintedSelectInputOption;
|
|
|
|