import { ComponentProps, ReactElement, ReactNode, SyntheticEvent } from "react"; import { OmitInternalProps } from "../../shared"; import { OverlayProps, PopupAlignmentProp, PopupDirectionProp } from "../../overlay"; import { ResponsiveProp } from "../../styling"; import { AbstractInputProps } from "../../input"; declare const DefaultElement = "button"; export interface InnerSelectProps extends Omit, "zIndex"> { /** * The horizontal alignment of the select menu relative to the input. */ align?: PopupAlignmentProp; /** * Whether or not the select menu can flip when it will overflow it's boundary area. */ allowFlip?: boolean; /** * Whether or not the selection menu position can change to prevent it from being cut off so that it stays visible within its boundary area. */ allowPreventOverflow?: boolean; /** * Whether or not the selection menu should match the trigger width. */ allowResponsiveMenuWidth?: boolean; /** * React children. */ children: ReactNode; /** * The initial value of open when in auto controlled mode. */ defaultOpen?: boolean; /** * The initial value of `selectedKey` when uncontrolled. */ defaultSelectedKey?: string; /** * The direction the select menu will open relative to the input. */ direction?: PopupDirectionProp; /** * Whether or not the select is disabled. */ disabled?: boolean; /** * Whether or not the select take up the width of its container. */ fluid?: ResponsiveProp; /** * A trigger icon. */ icon?: ReactElement; /** * @ignore */ name?: string; /** * Called when the select open state change. * @param {SyntheticEvent} event - React's original event. * @param {boolean} isOpen - Indicate if the menu is open. * @returns {void} */ onOpenChange?: (event: SyntheticEvent, isOpen: boolean) => void; /** * Called when the select value change. * @param {SyntheticEvent} event - React's original event. * @param {string} selectedKey - The new selected key. * @returns {void} */ onSelectionChange?: (event: SyntheticEvent, selectedKey: string) => void; /** * Whether or not to open the select element. */ open?: boolean | null; /** * Additional props to render on the menu of options. */ overlayProps?: Partial; /** * Temporary text that occupies the select trigger when no value is selected. */ placeholder?: string; /** * Whether or not the select is readonly. */ readOnly?: boolean; /** * A controlled selected key. */ selectedKey?: string | null; /** * The style to use. */ variant?: "outline" | "ghost"; /** * The z-index of the overlay element. */ zIndex?: number; } export declare function InnerSelect(props: InnerSelectProps): JSX.Element; export declare namespace InnerSelect { var defaultElement: string; } /** * A select allow users to choose a single option from a collapsible list of options. * * [Documentation](https://orbit.sharegate.design/?path=/docs/select--default-story) */ export declare const Select: import("react").ForwardRefExoticComponent, "ref"> & import("react").RefAttributes>; export declare type SelectProps = ComponentProps; export {};