@gridui/select 1.1.1 → 1.1.2
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.
- package/README.md +7 -6
- package/dist/combobox/combobox.d.ts +2 -5
- package/dist/index.js +342 -350
- package/dist/index.js.map +4 -4
- package/dist/multi-select/multi-select.d.ts +2 -8
- package/dist/select/select-options.d.ts +2 -6
- package/dist/select/style.d.ts +0 -2
- package/dist/shared/{selection-actions.d.ts → popup/selection-actions.d.ts} +2 -2
- package/dist/shared/{selection-popup.d.ts → popup/selection-popup.d.ts} +1 -1
- package/dist/shared/{use-selection-popup.d.ts → popup/use-selection-popup.d.ts} +2 -2
- package/dist/shared/{combobox-options.d.ts → search/combobox-options.d.ts} +3 -5
- package/dist/shared/{scroll-option.d.ts → search/scroll-option.d.ts} +1 -1
- package/dist/shared/{use-search-options.d.ts → search/use-search-options.d.ts} +2 -2
- package/dist/shared/style.d.ts +0 -1
- package/dist/shared/types.d.ts +16 -4
- package/dist/styles.css +55 -81
- package/docs/catalog.json +2 -3
- package/package.json +6 -7
package/README.md
CHANGED
|
@@ -10,14 +10,13 @@ Combobox, and MultiSelect:
|
|
|
10
10
|
@import "@gridui/overlay/styles.css";
|
|
11
11
|
@import "@gridui/input/styles.css";
|
|
12
12
|
@import "@gridui/form/styles.css";
|
|
13
|
-
@import "@gridui/dropdown-menu/styles.css";
|
|
14
13
|
@import "@gridui/select/styles.css";
|
|
15
14
|
```
|
|
16
15
|
|
|
17
|
-
Input supplies control styles
|
|
18
|
-
|
|
19
|
-
multiple-value bridge. Applications own routes, labels,
|
|
20
|
-
|
|
16
|
+
Input supplies control styles. Overlay supplies popup surfaces, motion, option
|
|
17
|
+
rows, group labels, and trailing check slots. Form hides MultiSelect’s native
|
|
18
|
+
multiple-value bridge. Applications own routes, labels, state persistence, and
|
|
19
|
+
branding.
|
|
21
20
|
|
|
22
21
|
See [component ownership](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/docs/component-ownership.md) and [release history](https://github.com/sudo-ui/GridUI-React-Monorepo/tree/main/packages-core/select/.changeset/history).
|
|
23
22
|
|
|
@@ -34,7 +33,9 @@ the selected item over the trigger when space permits, with a viewport-safe
|
|
|
34
33
|
fallback. Both modes match the trigger's outer width and limit height to available
|
|
35
34
|
space. The option list scrolls independently of actions. Standard and small
|
|
36
35
|
triggers retain 2.75rem and 2.25rem minimum heights. Option labels and descriptions wrap;
|
|
37
|
-
the editable input displays one line.
|
|
36
|
+
the editable input displays one line. A trailing check slot stays reserved for all
|
|
37
|
+
options; optional icons remain before the label. This matches DropdownMenu and
|
|
38
|
+
ContextMenu, including RTL presentation. `portalContainer` can keep popups within an
|
|
38
39
|
enclosing overlay's ownership and focus boundary. Inside a Modal or Drawer,
|
|
39
40
|
use `portalContainer` when the popup must inherit a local theme or custom portal
|
|
40
41
|
location. Radix layers coordinate nested focus and Escape handling. Attach a
|
|
@@ -4,10 +4,7 @@
|
|
|
4
4
|
* @namespace Combobox
|
|
5
5
|
* @description Combobox
|
|
6
6
|
*/
|
|
7
|
-
import type { SelectionProps, SelectionSearchProps } from "../shared/types";
|
|
7
|
+
import type { SelectionProps, SelectionSearchLabels, SelectionSearchProps } from "../shared/types";
|
|
8
8
|
import { type ComponentPropsWithRef, type FC } from "react";
|
|
9
|
-
export type ComboboxProps = Omit<ComponentPropsWithRef<"input">, "children" | "value" | "defaultValue" | "onChange" | "type" | "size"> & SelectionProps & SelectionSearchProps &
|
|
10
|
-
readonly searchLabel: string;
|
|
11
|
-
readonly emptyLabel: string;
|
|
12
|
-
};
|
|
9
|
+
export type ComboboxProps = Omit<ComponentPropsWithRef<"input">, "children" | "value" | "defaultValue" | "onChange" | "type" | "size"> & SelectionProps & SelectionSearchProps & SelectionSearchLabels;
|
|
13
10
|
export declare const Combobox: FC<ComboboxProps>;
|