@pk-design/react-tailwind 1.4.2 → 1.4.4
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.
|
@@ -48,6 +48,17 @@ export interface SelectBoxProps<T extends BaseOption | string = BaseOption> {
|
|
|
48
48
|
placeholder?: string;
|
|
49
49
|
/** CSS classes applied to the dropdown options container */
|
|
50
50
|
dropdownContainerClass?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Whether the open dropdown traps focus and makes the rest of the page
|
|
53
|
+
* inert (Headless UI's default Combobox behavior). Disabled by default so
|
|
54
|
+
* elements rendered inside the control itself — like the `allowClear`
|
|
55
|
+
* button — and the rest of the page stay interactive while the dropdown
|
|
56
|
+
* is open, matching common combobox libraries (e.g. react-select). Set to
|
|
57
|
+
* `true` to restore Headless UI's modal focus-trapping behavior.
|
|
58
|
+
*
|
|
59
|
+
* @default false
|
|
60
|
+
*/
|
|
61
|
+
modalDropdown?: boolean;
|
|
51
62
|
/** Enable multiple selection mode */
|
|
52
63
|
multiple?: boolean;
|
|
53
64
|
/** Maximum number of selections allowed in multi-select mode */
|