@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.
@@ -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;
@@ -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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danxbot/ui",
3
- "version": "7.8.0",
3
+ "version": "7.9.0",
4
4
  "type": "module",
5
5
  "description": "Danxbot — a domain-agnostic React design system with motion as a first-class primitive.",
6
6
  "license": "MIT",