@jasperoosthoek/react-toolbox 0.7.2 → 0.7.4
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 +153 -12
- package/change-log.md +7 -1
- package/dist/components/buttons/ConfirmButton.d.ts +1 -1
- package/dist/components/forms/FormFields.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +3 -3
- package/src/components/buttons/ConfirmButton.tsx +1 -1
- package/src/components/forms/FormFields.tsx +1 -2
- package/src/components/tables/DataTable.tsx +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jasperoosthoek/react-toolbox",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.4",
|
|
4
4
|
"author": "jasperoosthoek",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -54,10 +54,10 @@
|
|
|
54
54
|
"axios": "^1.4.0",
|
|
55
55
|
"bootstrap": "^5.1.3",
|
|
56
56
|
"moment": "^2.29.4",
|
|
57
|
-
"react": "19.
|
|
57
|
+
"react": "^19.1.0",
|
|
58
58
|
"react-bootstrap": "^2.10.9",
|
|
59
59
|
"react-dnd": "^16.0.1",
|
|
60
|
-
"react-dom": "19.
|
|
60
|
+
"react-dom": "^19.1.0",
|
|
61
61
|
"react-icons": "^5.4.0",
|
|
62
62
|
"react-localization": "^2.0.5",
|
|
63
63
|
"react-redux": "^9.2.0",
|
|
@@ -3,7 +3,7 @@ import { Button, Modal } from 'react-bootstrap';
|
|
|
3
3
|
|
|
4
4
|
import { SmallSpinner } from '../indicators/LoadingIndicator';
|
|
5
5
|
import { LocalizationContext } from '../../localization/LocalizationContext';
|
|
6
|
-
import { ButtonProps } from './IconButtons';
|
|
6
|
+
import { type ButtonProps } from './IconButtons';
|
|
7
7
|
|
|
8
8
|
export interface ConfirmButtonProps extends ButtonProps {
|
|
9
9
|
modalTitle?: ReactElement | string;
|
|
@@ -8,8 +8,7 @@ export type FormValue = boolean | string | string[] | number | number[];
|
|
|
8
8
|
|
|
9
9
|
// export type FormOnChange = <T extends { [key: string]: FormValue }>(value: FormValue, formData: T) => Partial<T>;
|
|
10
10
|
export type FormOnChange = (
|
|
11
|
-
((value: FormValue) =>
|
|
12
|
-
| ((value: FormValue, formData: any) => any)
|
|
11
|
+
((value: FormValue, formData: any) => any)
|
|
13
12
|
);
|
|
14
13
|
|
|
15
14
|
export type FormComponentProps = {
|
|
@@ -223,7 +223,7 @@ export const DataTable = <D extends any[]>({
|
|
|
223
223
|
|
|
224
224
|
const customHeader = showHeader && (showHeader as DataTableHeader).customHeader;
|
|
225
225
|
const sm = customHeader ? 4 : 6;
|
|
226
|
-
const lg = customHeader ? 3 : 4;
|
|
226
|
+
const lg = customHeader ? 3 : 4;
|
|
227
227
|
|
|
228
228
|
return (
|
|
229
229
|
<div style={style} className={className}>
|