|
|
@ -1,4 +1,4 @@ |
|
|
|
import { FC, ReactNode } from 'react'; |
|
|
|
import { FC } from 'react'; |
|
|
|
import { |
|
|
|
import { |
|
|
|
Checkbox as MUICheckbox, |
|
|
|
Checkbox as MUICheckbox, |
|
|
|
FormControl as MUIFormControl, |
|
|
|
FormControl as MUIFormControl, |
|
|
@ -14,14 +14,6 @@ import OutlinedInputLabel, { |
|
|
|
} from './OutlinedInputLabel'; |
|
|
|
} from './OutlinedInputLabel'; |
|
|
|
import Select, { SelectProps } from './Select'; |
|
|
|
import Select, { SelectProps } from './Select'; |
|
|
|
|
|
|
|
|
|
|
|
type SelectItem< |
|
|
|
|
|
|
|
ValueType = string, |
|
|
|
|
|
|
|
DisplayValueType = ValueType | ReactNode, |
|
|
|
|
|
|
|
> = { |
|
|
|
|
|
|
|
displayValue?: DisplayValueType; |
|
|
|
|
|
|
|
value: ValueType; |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
type SelectWithLabelOptionalProps = { |
|
|
|
type SelectWithLabelOptionalProps = { |
|
|
|
checkItem?: ((value: string) => boolean) | null; |
|
|
|
checkItem?: ((value: string) => boolean) | null; |
|
|
|
disableItem?: ((value: string) => boolean) | null; |
|
|
|
disableItem?: ((value: string) => boolean) | null; |
|
|
@ -110,6 +102,6 @@ const SelectWithLabel: FC<SelectWithLabelProps> = ({ |
|
|
|
|
|
|
|
|
|
|
|
SelectWithLabel.defaultProps = SELECT_WITH_LABEL_DEFAULT_PROPS; |
|
|
|
SelectWithLabel.defaultProps = SELECT_WITH_LABEL_DEFAULT_PROPS; |
|
|
|
|
|
|
|
|
|
|
|
export type { SelectItem, SelectWithLabelProps }; |
|
|
|
export type { SelectWithLabelProps }; |
|
|
|
|
|
|
|
|
|
|
|
export default SelectWithLabel; |
|
|
|
export default SelectWithLabel; |
|
|
|