@danxbot/ui 7.8.1 → 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.
@@ -22,6 +22,33 @@ 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
+ "aria-label"?: string;
30
+ /** Applied to the popup panel. */
31
+ className?: string;
32
+ /** Applied to the trigger button — e.g. to size/truncate a long label. */
33
+ triggerClassName?: string;
34
+ children: ReactNode;
35
+ ref?: Ref<HTMLButtonElement>;
36
+ }
37
+ /**
38
+ * A plain-text trigger ("Sample data", a chosen row's name, …) that opens a
39
+ * searchable popover — `TemplateDemandPicker` (gpt-manager, SG-956) is the
40
+ * first caller, choosing a demand to preview a template against from rich,
41
+ * multi-line rows rather than a single-line `<option>`.
42
+ *
43
+ * The caller owns the search text (`inputValue`/`onInputValueChange`) and the
44
+ * result set (`children`, one `ComboboxItem` per row) — this component only
45
+ * owns the trigger/popup chrome and the keyboard/focus contract. See the file
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.
50
+ */
51
+ export declare function SearchSelect<Value>({ label, placeholder, className, triggerClassName, children, ref, "aria-label": ariaLabel, ...props }: SearchSelectProps<Value>): import("react").JSX.Element;
25
52
  export interface MultiComboboxProps<Value> extends ComboboxProps<Value> {
26
53
  /** How each selected value should read on its chip. */
27
54
  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.1",
3
+ "version": "7.9.1",
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",