@danxbot/ui 7.9.0 → 7.9.1
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/dist/index.js +1878 -1876
- package/dist/index.js.map +1 -1
- package/dist/types/components/Combobox.d.ts +5 -4
- package/package.json +1 -1
|
@@ -26,8 +26,6 @@ export interface SearchSelectProps<Value> extends Omit<BaseCombobox.Root.Props<V
|
|
|
26
26
|
/** What the closed trigger shows — plain text, never a boxed field. */
|
|
27
27
|
label: ReactNode;
|
|
28
28
|
placeholder?: string;
|
|
29
|
-
/** Shown when `children` is empty. */
|
|
30
|
-
emptyMessage?: ReactNode;
|
|
31
29
|
"aria-label"?: string;
|
|
32
30
|
/** Applied to the popup panel. */
|
|
33
31
|
className?: string;
|
|
@@ -45,9 +43,12 @@ export interface SearchSelectProps<Value> extends Omit<BaseCombobox.Root.Props<V
|
|
|
45
43
|
* The caller owns the search text (`inputValue`/`onInputValueChange`) and the
|
|
46
44
|
* result set (`children`, one `ComboboxItem` per row) — this component only
|
|
47
45
|
* owns the trigger/popup chrome and the keyboard/focus contract. See the file
|
|
48
|
-
* header above for why no `items` prop is ever passed through
|
|
46
|
+
* header above for why no `items` prop is ever passed through, and why that
|
|
47
|
+
* also rules out `<Combobox.Empty>`: an empty-search state is rendered by the
|
|
48
|
+
* CALLER, as an ordinary (non-interactive) row among `children`, since only
|
|
49
|
+
* the caller knows whether its own result set is genuinely empty.
|
|
49
50
|
*/
|
|
50
|
-
export declare function SearchSelect<Value>({ label, placeholder,
|
|
51
|
+
export declare function SearchSelect<Value>({ label, placeholder, className, triggerClassName, children, ref, "aria-label": ariaLabel, ...props }: SearchSelectProps<Value>): import("react").JSX.Element;
|
|
51
52
|
export interface MultiComboboxProps<Value> extends ComboboxProps<Value> {
|
|
52
53
|
/** How each selected value should read on its chip. */
|
|
53
54
|
renderChip?: (value: Value) => ReactNode;
|