@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.
package/dist/index.d.ts CHANGED
@@ -2202,6 +2202,12 @@ type SearchProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'value'>
2202
2202
  * Callback function to handle search with the query string
2203
2203
  */
2204
2204
  onSearch?: SearchCallback;
2205
+ /**
2206
+ * Callback function to handle clear button click
2207
+ * Called when the user clicks the clear button (X icon)
2208
+ * This is separate from onValueChange to provide explicit clear intent
2209
+ */
2210
+ onClear?: () => void;
2205
2211
  /**
2206
2212
  * Debounce delay in milliseconds for auto style
2207
2213
  * @default 300
@@ -2243,6 +2249,7 @@ type SearchProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'value'>
2243
2249
  declare const Search: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "value" | "type"> & ControlledFormComponentProps<string> & {
2244
2250
  style?: SearchStyleEnum;
2245
2251
  onSearch?: SearchCallback;
2252
+ onClear?: () => void;
2246
2253
  debounceMs?: number;
2247
2254
  minCharacters?: number;
2248
2255
  showSubmitButton?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@delightui/components",
3
- "version": "0.1.156",
3
+ "version": "0.1.157",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "start": "vite",