import React from "react"; import { PlusDropdown as PlusDropdownElement } from "../dist/components/dropdown/index.js"; export type { PlusDropdownElement }; export interface PlusDropdownProps extends Pick< React.AllHTMLAttributes, | "children" | "dir" | "hidden" | "id" | "lang" | "slot" | "style" | "title" | "translate" | "onClick" | "onFocus" | "onBlur" > { /** Disables the dropdown interaction */ disabled?: boolean; /** Sets the size of the dropdown button - sm: Small size - md: Medium size - lg: Large size */ size?: PlusDropdownElement["size"]; /** Sets the status/color variant of the dropdown button - default: Neutral color scheme - primary: Primary color scheme - success: Green color scheme - warning: Yellow color scheme - danger: Red color scheme - info: Blue color scheme */ status?: PlusDropdownElement["status"]; /** Determines the visual style of the dropdown button - filled: Solid background color - outlined: Transparent background with border - dashed: Transparent background with dashed border - text: No background or border */ kind?: PlusDropdownElement["kind"]; /** Sets the text content of the dropdown button if no default slot is provided */ text?: PlusDropdownElement["text"]; /** A space-separated list of the classes of the element. Classes allows CSS and JavaScript to select and access specific elements via the class selectors or functions like the method `Document.getElementsByClassName()`. */ className?: string; /** Contains a space-separated list of the part names of the element that should be exposed on the host element. */ exportparts?: string; /** Used for labels to link them with their inputs (using input id). */ htmlFor?: string; /** Used to help React identify which items have changed, are added, or are removed within a list. */ key?: number | string; /** Contains a space-separated list of the part names of the element. Part names allows CSS to select and style specific elements in a shadow tree via the ::part pseudo-element. */ part?: string; /** A mutable ref object whose `.current` property is initialized to the passed argument (`initialValue`). The returned object will persist for the full lifetime of the component. */ ref?: any; /** Allows developers to make HTML elements focusable, allow or prevent them from being sequentially focusable (usually with the `Tab` key, hence the name) and determine their relative ordering for sequential focus navigation. */ tabIndex?: number; /** Emitted when the dropdown is opened */ onPlusDropdownOpen?: (event: CustomEvent) => void; /** Emitted when the dropdown is closed */ onPlusDropdownClose?: (event: CustomEvent) => void; /** Emitted when an item is selected with the selected item in detail */ onPlusDropdownSelectedItem?: (event: CustomEvent) => void; } /** * * --- * * * ### **Events:** * - **plus-dropdown-open** - Emitted when the dropdown is opened * - **plus-dropdown-close** - Emitted when the dropdown is closed * - **plus-dropdown-selected-item** - Emitted when an item is selected with the selected item in detail * * ### **Slots:** * - _default_ - The default slot for the dropdown trigger button content * - **suffix** - Slot for adding content to the right side of the trigger button * - **dropdown-item** - Slot for dropdown menu items * * ### **CSS Parts:** * - **base** - The component's base wrapper * - **button** - The dropdown trigger button * - **dropdown-box** - The dropdown list container */ export const PlusDropdown: React.ForwardRefExoticComponent;