import * as react from 'react'; import { ReactNode, ReactElement, SyntheticEvent, ComponentProps } from 'react'; import * as react_jsx_runtime from 'react/jsx-runtime'; import { OmitInternalProps } from '../../shared/src/types.js'; import { OverlayProps } from '../../overlay/src/Overlay.js'; import { ResponsiveProp } from '../../styling/src/useResponsiveValue.js'; import { PopupAlignmentProp, PopupDirectionProp } from '../../overlay/src/usePopup.js'; import { AbstractInputProps } from '../../input/src/types.js'; import '../../styling/src/styled-system/props-handler.js'; import 'csstype'; import '../../shared/src/type-fest.js'; import '../../styling/src/styled-system/StylingContext.js'; import '../../styling/src/BreakpointProvider.js'; import '../../shared/src/useMergedRefs.js'; import '../../shared/src/useFocusScope.js'; import '../../shared/src/useFocusManager.js'; import '../../overlay/src/useOverlayPosition.js'; import '@popperjs/core'; import '../../overlay/src/usePopupAriaProps.js'; import '../../group/src/Group.js'; import '../../layout/src/Flex.js'; declare const DefaultElement = "button"; 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; } declare function InnerSelect(props: InnerSelectProps): react_jsx_runtime.JSX.Element; declare namespace InnerSelect { var defaultElement: string; } /** * A select allow users to choose a single option from a collapsible list of options. * * [Documentation](https://wl-orbiter-website.netlify.app/?path=/docs/select--default-story) */ declare const Select: react.ForwardRefExoticComponent, "ref"> & react.RefAttributes>; type SelectProps = ComponentProps; export { InnerSelect, type InnerSelectProps, Select, type SelectProps };