@dinofront/design_system 1.17.3 → 1.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -40,6 +40,10 @@ export interface DropdownContentProps extends HTMLAttributes<HTMLDivElement>, Ba
|
|
|
40
40
|
matchTriggerWidth?: boolean;
|
|
41
41
|
/** Closes the menu when any ancestor scrolls. */
|
|
42
42
|
closeOnScroll?: boolean;
|
|
43
|
+
/** Focuses the first item when the menu opens (default `true`). Set `false` when
|
|
44
|
+
* the trigger lives inside another focus-sensitive widget — e.g. a `SelectV2`
|
|
45
|
+
* option's `actions`, whose menu closes as soon as its input loses focus. */
|
|
46
|
+
autoFocusFirstItem?: boolean;
|
|
43
47
|
}
|
|
44
48
|
export interface DropdownItemProps extends ButtonHTMLAttributes<HTMLButtonElement>, BaseProps {
|
|
45
49
|
children: ReactNode;
|
|
@@ -12,6 +12,11 @@ export interface SelectV2Option {
|
|
|
12
12
|
disabled?: boolean;
|
|
13
13
|
/** Group heading this option belongs under. */
|
|
14
14
|
group?: string;
|
|
15
|
+
/** Content pinned to the end of the option's row in the menu — e.g. a "⋯"
|
|
16
|
+
* button opening a per-option `DropdownMenu`. Not shown in the closed
|
|
17
|
+
* control's selected value. Clicks inside it never select the option or
|
|
18
|
+
* close the select, so the consumer owns what the interaction does. */
|
|
19
|
+
actions?: ReactNode;
|
|
15
20
|
}
|
|
16
21
|
/** react-select props SelectV2 already computes/owns internally and can't be
|
|
17
22
|
* overridden through passthrough without breaking its own logic. */
|