@jasperoosthoek/react-toolbox 0.6.1 → 0.6.2

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/change-log.md CHANGED
@@ -251,4 +251,8 @@
251
251
  - Update to React 19
252
252
 
253
253
  ##### Version 0.6.1
254
- - New `downloadFile` function in `utils`
254
+ - New `downloadFile` function in `utils`
255
+
256
+
257
+ ##### Version 0.6.2
258
+ - `SearchBox` has optional label & placeholder and is wrapped by `Form.Group` component
@@ -1,9 +1,11 @@
1
- import React from 'react';
1
+ import React, { ReactNode } from 'react';
2
2
  export type SearchBoxProps = {
3
3
  className?: string;
4
4
  value: string;
5
5
  onChange: (value: string) => void;
6
6
  onClear?: () => void;
7
7
  onSearch?: () => void;
8
+ label?: ReactNode | string | number;
9
+ placeholder?: string | false;
8
10
  };
9
- export declare const SearchBox: ({ className, value, onChange, onClear, onSearch }: SearchBoxProps) => React.JSX.Element;
11
+ export declare const SearchBox: ({ className, value, onChange, onClear, onSearch, label, placeholder, }: SearchBoxProps) => React.JSX.Element;