changed type name to select item
Signed-off-by: lukzerom <lukzerom@gmail.com>
This commit is contained in:
@@ -102,7 +102,7 @@ const useStyles = makeStyles(
|
||||
{ name: 'BackstageSelect' },
|
||||
);
|
||||
|
||||
export type Item = {
|
||||
export type SelectItem = {
|
||||
label: string;
|
||||
value: string | number;
|
||||
};
|
||||
@@ -111,7 +111,7 @@ export type Selection = string | string[] | number | number[];
|
||||
|
||||
export type SelectProps = {
|
||||
multiple?: boolean;
|
||||
items: Item[];
|
||||
items: SelectItem[];
|
||||
label: string;
|
||||
placeholder?: string;
|
||||
selected?: Selection;
|
||||
|
||||
@@ -16,10 +16,10 @@
|
||||
|
||||
export { SelectComponent as Select } from './Select';
|
||||
export type {
|
||||
Item,
|
||||
SelectClassKey,
|
||||
SelectInputBaseClassKey,
|
||||
Selection,
|
||||
SelectItem,
|
||||
} from './Select';
|
||||
export type { ClosedDropdownClassKey } from './static/ClosedDropdown';
|
||||
export type { OpenedDropdownClassKey } from './static/OpenedDropdown';
|
||||
|
||||
Reference in New Issue
Block a user