@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 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, Overlay supplies the popup surface and motion,
18
- DropdownMenu supplies option-row styles, and Form hides MultiSelect’s native
19
- multiple-value bridge. Applications own routes, labels,
20
- state persistence, and branding.
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. `portalContainer` can keep popups within an
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>;