react-admin-base-bootstrap 0.8.0 → 0.8.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/lib/esm/Components/ApiSelect.d.ts +2 -2
- package/lib/esm/Components/BootstrapDataTable.d.ts +2 -2
- package/lib/esm/Components/CheckBox.d.ts +4 -3
- package/lib/esm/Components/LanguageProvider.d.ts +1 -1
- package/package.json +2 -2
- package/src/Components/ApiSelect.tsx +2 -2
- package/src/Components/BootstrapDataTable.tsx +2 -2
- package/src/Components/CheckBox.tsx +4 -4
- package/src/Components/LanguageProvider.tsx +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { jsx } from '@emotion/react';
|
|
3
3
|
import React from 'react';
|
|
4
|
-
export interface ApiSelectProps<Option> {
|
|
4
|
+
export interface ApiSelectProps<Option = any> {
|
|
5
5
|
url?: string;
|
|
6
6
|
value: Option | Option[];
|
|
7
7
|
onChange: (a: Option | Option[] | null) => void;
|
|
@@ -18,4 +18,4 @@ export interface ApiSelectProps<Option> {
|
|
|
18
18
|
staticOptions?: any[];
|
|
19
19
|
getNewOptionData?: (name: string, elem: React.ReactNode) => any | null;
|
|
20
20
|
}
|
|
21
|
-
export default function ApiSelect<Option>(props: ApiSelectProps<Option>): jsx.JSX.Element;
|
|
21
|
+
export default function ApiSelect<Option = any>(props: ApiSelectProps<Option>): jsx.JSX.Element;
|
|
@@ -20,9 +20,9 @@ export interface BootstrapTableProps {
|
|
|
20
20
|
children: any;
|
|
21
21
|
innerRef?: any;
|
|
22
22
|
}
|
|
23
|
-
interface RowRendererProps<Row> {
|
|
23
|
+
interface RowRendererProps<Row = any> {
|
|
24
24
|
render: (row: Row) => React.ReactNode;
|
|
25
25
|
}
|
|
26
|
-
export declare function RowRenderer<Row>({ render }: RowRendererProps<Row>): JSX.Element;
|
|
26
|
+
export declare function RowRenderer<Row = any>({ render }: RowRendererProps<Row>): JSX.Element;
|
|
27
27
|
export default function BootstrapTable({ url, bordered, noStrip, defaultParams, add, children, innerRef, body }: BootstrapTableProps): JSX.Element;
|
|
28
28
|
export {};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
2
|
+
import { InputProps } from "reactstrap";
|
|
3
|
+
interface CheckBoxProps extends InputProps {
|
|
3
4
|
id: string;
|
|
4
5
|
type?: "checkbox" | "radio";
|
|
5
6
|
label?: React.ReactNode;
|
|
6
|
-
children
|
|
7
|
-
}
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
}
|
|
8
9
|
export default function CheckBox(props: CheckBoxProps): JSX.Element;
|
|
9
10
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-admin-base-bootstrap",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"modal-cropper": "^1.2.3",
|
|
39
39
|
"nprogress": "^0.2.0",
|
|
40
40
|
"prettysize": "^2.0.0",
|
|
41
|
-
"react-admin-base": "^0.
|
|
41
|
+
"react-admin-base": "^0.8.0",
|
|
42
42
|
"react-password-strength-bar": "^0.4.1",
|
|
43
43
|
"react-responsive": "^9.0.0",
|
|
44
44
|
"react-select": "^5.4.0",
|
|
@@ -60,7 +60,7 @@ function IndicatorsContainer(props) {
|
|
|
60
60
|
|
|
61
61
|
const Components = { Option, SingleValue, IndicatorsContainer };
|
|
62
62
|
|
|
63
|
-
export interface ApiSelectProps<Option> {
|
|
63
|
+
export interface ApiSelectProps<Option = any> {
|
|
64
64
|
url?: string;
|
|
65
65
|
value: Option|Option[];
|
|
66
66
|
onChange: (a: Option|Option[]|null) => void;
|
|
@@ -78,7 +78,7 @@ export interface ApiSelectProps<Option> {
|
|
|
78
78
|
getNewOptionData?: (name: string, elem: React.ReactNode) => any|null;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
-
export default function ApiSelect<Option>(props: ApiSelectProps<Option>) {
|
|
81
|
+
export default function ApiSelect<Option = any>(props: ApiSelectProps<Option>) {
|
|
82
82
|
const { disabled, url, getOptionLabel, getOptionValue, idKey, nameKey, filter, group, onCreateOption, getNewOptionData, isMulti, onChange, value, placeholder, staticOptions } = props;
|
|
83
83
|
const intl = useIntl();
|
|
84
84
|
const [ search, setSearch ] = useState('');
|
|
@@ -95,11 +95,11 @@ export interface BootstrapTableProps {
|
|
|
95
95
|
innerRef?: any;
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
interface RowRendererProps<Row> {
|
|
98
|
+
interface RowRendererProps<Row = any> {
|
|
99
99
|
render: (row: Row) => React.ReactNode;
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
-
export function RowRenderer<Row>({render}: RowRendererProps<Row>) {
|
|
102
|
+
export function RowRenderer<Row = any>({render}: RowRendererProps<Row>) {
|
|
103
103
|
const rows = useContext(RowDatasContext);
|
|
104
104
|
|
|
105
105
|
return <tbody>
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { FormGroup, Input, Label } from "reactstrap";
|
|
2
|
+
import { FormGroup, Input, InputProps, Label } from "reactstrap";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
interface CheckBoxProps extends InputProps {
|
|
5
5
|
id: string;
|
|
6
6
|
type?: "checkbox"|"radio";
|
|
7
7
|
label?: React.ReactNode;
|
|
8
|
-
children
|
|
9
|
-
}
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
}
|
|
10
10
|
|
|
11
11
|
export default function CheckBox(props: CheckBoxProps) {
|
|
12
12
|
return <FormGroup check>
|