import { type KeyboardEvent, type MouseEvent, type ReactNode } from "react"; import { type IAccessibilityConfigBase } from "../../typings/accessibility.js"; import { type IconType } from "../@types/icon.js"; import { type IUiDropdownButtonRenderProps } from "../UiDropdown/types.js"; /** * @internal */ export interface IUiToolbarSelectProps { /** * The current selection, or the prompt when `isPlaceholder` is set. */ label: string; /** * Drawn before the label, for example what kind of thing the selection is. */ icon?: IconType; /** * "fixed" is 240px wide and truncates the label so the toolbar does not move as the selection * changes. * @defaultValue "hug" */ width?: "hug" | "fixed"; /** * Caps the width in pixels; a longer label is truncated and its full text is the title. */ maxWidth?: number; /** * Nothing is chosen yet; the label reads as prompt text. * @defaultValue false */ isPlaceholder?: boolean; /** * Held while the popup is on screen. Flips the chevron and keeps the pressed look. * @defaultValue false */ isOpen?: boolean; isDisabled?: boolean; /** * Shown on hover and focus, for example the full name of a truncated label. */ tooltip?: ReactNode; onClick?: (event: MouseEvent) => void; onKeyDown?: (event: KeyboardEvent) => void; id?: string; dataId?: string; dataTestId?: string; accessibilityConfig?: IAccessibilityConfigBase; /** * Attributes from the `renderButton` callback of {@link UiDropdown}. Without them the trigger * announces a listbox popup. */ ariaAttributes?: IUiDropdownButtonRenderProps["ariaAttributes"]; } /** * Label-driven dropdown trigger of a toolbar. * * @internal */ export declare const UiToolbarSelect: import("react").ForwardRefExoticComponent>; //# sourceMappingURL=UiToolbarSelect.d.ts.map