@jasperoosthoek/react-toolbox 0.6.0 → 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/README.md +1 -1
- package/change-log.md +8 -1
- package/dist/components/tables/SearchBox.d.ts +4 -2
- package/dist/index.js +2 -2
- package/dist/index.js.LICENSE.txt +14 -0
- package/dist/utils/utils.d.ts +5 -0
- package/package.json +2 -2
- package/src/components/tables/SearchBox.tsx +39 -21
- package/src/utils/utils.ts +24 -0
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
A library of useful [React](https://react.dev/) components for building user interfaces.
|
|
4
4
|
|
|
5
5
|
### Dependencies
|
|
6
|
-
- [React
|
|
6
|
+
- [React 19](https://react.dev/)
|
|
7
7
|
- [Bootstrap 5](https://getbootstrap.com/docs/5.1/getting-started/introduction/)
|
|
8
8
|
- [`react-bootstrap`](https://react-bootstrap.netlify.app/)
|
|
9
9
|
- [`react-icons`](https://react-icons.github.io/react-icons/) A library combining many open source icons
|
package/change-log.md
CHANGED
|
@@ -248,4 +248,11 @@
|
|
|
248
248
|
- New optional footer with sum of values in `DataTable` component
|
|
249
249
|
|
|
250
250
|
##### Version 0.6.0
|
|
251
|
-
- Update to React 19
|
|
251
|
+
- Update to React 19
|
|
252
|
+
|
|
253
|
+
##### Version 0.6.1
|
|
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;
|