@danxbot/ui 7.8.0 → 7.9.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.
- package/dist/index.js +4017 -3950
- package/dist/index.js.map +1 -1
- package/dist/types/components/Combobox.d.ts +26 -0
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -22,6 +22,32 @@ export interface ComboboxGroupProps {
|
|
|
22
22
|
children: ReactNode;
|
|
23
23
|
}
|
|
24
24
|
export declare function ComboboxGroup({ label, children }: ComboboxGroupProps): import("react").JSX.Element;
|
|
25
|
+
export interface SearchSelectProps<Value> extends Omit<BaseCombobox.Root.Props<Value, boolean>, "children"> {
|
|
26
|
+
/** What the closed trigger shows — plain text, never a boxed field. */
|
|
27
|
+
label: ReactNode;
|
|
28
|
+
placeholder?: string;
|
|
29
|
+
/** Shown when `children` is empty. */
|
|
30
|
+
emptyMessage?: ReactNode;
|
|
31
|
+
"aria-label"?: string;
|
|
32
|
+
/** Applied to the popup panel. */
|
|
33
|
+
className?: string;
|
|
34
|
+
/** Applied to the trigger button — e.g. to size/truncate a long label. */
|
|
35
|
+
triggerClassName?: string;
|
|
36
|
+
children: ReactNode;
|
|
37
|
+
ref?: Ref<HTMLButtonElement>;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* A plain-text trigger ("Sample data", a chosen row's name, …) that opens a
|
|
41
|
+
* searchable popover — `TemplateDemandPicker` (gpt-manager, SG-956) is the
|
|
42
|
+
* first caller, choosing a demand to preview a template against from rich,
|
|
43
|
+
* multi-line rows rather than a single-line `<option>`.
|
|
44
|
+
*
|
|
45
|
+
* The caller owns the search text (`inputValue`/`onInputValueChange`) and the
|
|
46
|
+
* result set (`children`, one `ComboboxItem` per row) — this component only
|
|
47
|
+
* 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.
|
|
49
|
+
*/
|
|
50
|
+
export declare function SearchSelect<Value>({ label, placeholder, emptyMessage, className, triggerClassName, children, ref, "aria-label": ariaLabel, ...props }: SearchSelectProps<Value>): import("react").JSX.Element;
|
|
25
51
|
export interface MultiComboboxProps<Value> extends ComboboxProps<Value> {
|
|
26
52
|
/** How each selected value should read on its chip. */
|
|
27
53
|
renderChip?: (value: Value) => ReactNode;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -44,7 +44,7 @@ export { CommandPalette, useCommandPalette, type CommandPaletteProps, type Comma
|
|
|
44
44
|
export { Slider, type SliderProps, type SliderMark } from "./components/Slider";
|
|
45
45
|
export { NumberInput, type NumberInputProps } from "./components/NumberInput";
|
|
46
46
|
export { OTPInput, type OTPInputProps } from "./components/OTPInput";
|
|
47
|
-
export { Combobox, ComboboxItem, ComboboxGroup, MultiCombobox, type ComboboxProps, type ComboboxItemProps, type ComboboxGroupProps, type MultiComboboxProps, } from "./components/Combobox";
|
|
47
|
+
export { Combobox, ComboboxItem, ComboboxGroup, MultiCombobox, SearchSelect, type ComboboxProps, type ComboboxItemProps, type ComboboxGroupProps, type MultiComboboxProps, type SearchSelectProps, } from "./components/Combobox";
|
|
48
48
|
export { Select, SelectItem, SelectGroup, SelectSeparator, type SelectProps, type SelectItemProps, type SelectGroupProps, } from "./components/Select";
|
|
49
49
|
export { StatusSelect, type StatusSelectProps, type StatusOption } from "./components/StatusSelect";
|
|
50
50
|
export { Card, CardHeader, CardFooter, type CardProps, type CardHeaderProps, } from "./components/Card";
|