UNPKG

@spaced-out/ui-design-system

Version:
44 lines 1.67 kB
import * as React from 'react'; import type { Flow } from 'flow-to-typescript-codemod'; import type { MenuClassNames, MenuLabelTooltip } from '../../types/menu'; import type { ClickAwayRefType } from '../../utils/click-away'; import type { InputProps } from '../Input'; import type { MenuOption, MenuOptionsVariant, Virtualization } from '../Menu'; import type { ElevationType } from '../Tooltip'; type ClassNames = Readonly<{ wrapper?: string; box?: string; }>; export type SimpleDropdownRef = { selectedKeys?: Array<string>; }; export type SimpleDropdownProps = // Input props InputProps & { elevation?: ElevationType; classNames?: ClassNames; clickAwayRef?: ClickAwayRefType; options?: Array<MenuOption>; optionsVariant?: MenuOptionsVariant; allowSearch?: boolean; selectedKeys?: Array<string>; isMenuFluid?: boolean; menuVirtualization?: Virtualization; header?: React.ReactNode; footer?: React.ReactNode; menuClassNames?: MenuClassNames; showLabelTooltip?: MenuLabelTooltip; allowWrap?: boolean; staticLabels?: { RESULT?: string; RESULTS?: string; SEARCH_PLACEHOLDER?: string; }; onChange?: (option: MenuOption, arg2?: React.SyntheticEvent<HTMLElement> | null | undefined) => unknown; onMenuOpen?: () => unknown; onMenuClose?: () => unknown; resolveLabel?: (option: MenuOption) => string | React.ReactNode; resolveSecondaryLabel?: (option: MenuOption) => string | React.ReactNode; }; export declare const SimpleDropdown: Flow.AbstractComponent<SimpleDropdownProps, SimpleDropdownRef>; export {}; //# sourceMappingURL=SimpleDropdown.d.ts.map