@delightui/components 0.1.156 → 0.1.157

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.
@@ -8,6 +8,7 @@
8
8
  declare const Search: import("react").ForwardRefExoticComponent<Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "value" | "type"> & import("../FormField/FormField.types").ControlledFormComponentProps<string> & {
9
9
  style?: import("./Search.types").SearchStyleEnum;
10
10
  onSearch?: import("./Search.types").SearchCallback;
11
+ onClear?: () => void;
11
12
  debounceMs?: number;
12
13
  minCharacters?: number;
13
14
  showSubmitButton?: boolean;
@@ -21,6 +21,12 @@ export type SearchProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | '
21
21
  * Callback function to handle search with the query string
22
22
  */
23
23
  onSearch?: SearchCallback;
24
+ /**
25
+ * Callback function to handle clear button click
26
+ * Called when the user clicks the clear button (X icon)
27
+ * This is separate from onValueChange to provide explicit clear intent
28
+ */
29
+ onClear?: () => void;
24
30
  /**
25
31
  * Debounce delay in milliseconds for auto style
26
32
  * @default 300