import { CSSProperties, Component, VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue'; import { PvSelectButtonSize, PvSelectButtonVariant } from './types'; import { MenuAction, MenuOption, MenuOptionsVariant } from '../../../types'; import { PvCounterBadgeVariant } from '../PvCounterBadge/types'; import { PvPopoverV2Props } from '../PvPopoverV2/types.ts'; import { PvMenuChildrenDisplay } from '../PvMenu/types'; export interface PvSelectButtonProps { /** Whether the dropdown is open on initial render */ defaultOpen?: boolean; /** Prevent the button from being clicked */ disabled?: boolean; /** Show a loading state on the trigger button */ isLoading?: boolean; /** Visual style of the trigger button */ variant?: PvSelectButtonVariant; /** Inverse button colors for dark backgrounds */ inverse?: boolean; /** Size of the trigger button */ size?: PvSelectButtonSize; /** Configuration passed to the underlying PvPopoverV2 */ popoverProperties?: PvPopoverV2Props; /** Custom CSS properties applied to the popover container */ popoverCssProperties?: CSSProperties; /** Static text shown before the label on the trigger button */ prefixLabel?: string; /** Text label on the trigger button; updates to the selected option's text when an item is chosen */ label?: string; /** Icon shown before the trigger label when the selected option does not provide one */ icon?: string; /** * Keep the trigger showing `label` even after an option is selected, instead of * swapping to the selected option's text. Use when the label is a fixed title * (e.g. a column name) and the current selection is surfaced only inside the dropdown. */ staticLabel?: boolean; /** Hide the search input inside the dropdown */ disableSearchInput?: boolean; /** Placeholder text for the search input */ searchPlaceholder?: string; /** Visual style of menu options (simple, icon, company, avatar, radio) */ optionsVariant?: Exclude; /** The list of selectable options */ options?: MenuOption[]; /** Render nested options inline or in click-opened popovers. */ childrenDisplay?: PvMenuChildrenDisplay; /** Custom Vue component used to render each option */ optionsRenderer?: Component; /** Action configuration for per-option action buttons */ optionsAction?: MenuAction; /** Prevent deselecting the currently selected item */ disableDeselect?: boolean; /** Where to place the counter badge on the trigger */ counterPosition?: "left" | "right"; /** Variant of the counter badge which appears on the button and menu items */ counterBadgeVariant?: PvCounterBadgeVariant; /** Whether to highlight the search text in the options list */ highlightSearchText?: boolean; /** * `data-dd-action-name` attached to the trigger button so Datadog RUM * resolves the click to a named action. Leave unset to skip. */ rumActionName?: string; } declare const _default: (__VLS_props: NonNullable>["props"], __VLS_ctx?: __VLS_PrettifyLocal>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable>["expose"], __VLS_setup?: Promise<{ props: __VLS_PrettifyLocal & Omit<{ readonly "onUpdate:modelValue"?: ((value: MenuOption) => any) | undefined; readonly "onUpdate:searchInput"?: ((value: string) => any) | undefined; readonly "onDropdown-open"?: (() => any) | undefined; readonly "onDropdown-closed"?: (() => any) | undefined; } & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onUpdate:modelValue" | "onUpdate:searchInput" | "onDropdown-open" | "onDropdown-closed"> & ({ modelValue?: MenuOption; searchInput?: string; } & PvSelectButtonProps) & Partial<{}>> & PublicProps; expose(exposed: ShallowUnwrapRef<{}>): void; attrs: any; slots: { footer?(_: {}): any; }; emit: { (e: "dropdown-open"): void; (e: "dropdown-closed"): void; } & (((evt: "update:modelValue", value: MenuOption) => void) & ((evt: "update:searchInput", value: string) => void)); }>) => VNode & { __ctx?: Awaited; }; export default _default; type __VLS_PrettifyLocal = { [K in keyof T]: T[K]; } & {};