react-admin-base-bootstrap 0.8.5 → 0.8.7
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/assets/main.css +37 -0
- package/lib/esm/Components/BootstrapDataTable.d.ts +1 -1
- package/lib/esm/Components/BootstrapPagination.d.ts +1 -1
- package/lib/esm/Components/CRUD.d.ts +2 -2
- package/lib/esm/Components/DefaultValidatorOptions.d.ts +1 -1
- package/lib/esm/Components/EntityEditor.d.ts +1 -1
- package/lib/esm/Components/ExternalLoginButton.d.ts +1 -1
- package/lib/esm/Components/FilePickerCore.d.ts +1 -1
- package/lib/esm/Components/LanguageProvider.d.ts +1 -1
- package/lib/esm/Components/MultiFilePicker.d.ts +1 -1
- package/lib/esm/Components/StepList.d.ts +2 -2
- package/lib/esm/Components/TopProgressBar.d.ts +1 -6
- package/lib/esm/Components/TopProgressBar.js +2 -2
- package/lib/esm/Components/Validator.d.ts +2 -2
- package/package.json +11 -11
- package/src/Components/TopProgressBar.tsx +2 -6
package/assets/main.css
CHANGED
|
@@ -1357,3 +1357,40 @@
|
|
|
1357
1357
|
margin-left: -2.40625rem
|
|
1358
1358
|
}
|
|
1359
1359
|
}
|
|
1360
|
+
|
|
1361
|
+
.react-select-container .react-select__control {
|
|
1362
|
+
background-color: var(--bs-form-select-bg);
|
|
1363
|
+
border-color: var(--bs-form-select-border-color);
|
|
1364
|
+
transition: none;
|
|
1365
|
+
}
|
|
1366
|
+
|
|
1367
|
+
.react-select-container .react-select__control:hover {
|
|
1368
|
+
border-color: var(--bs-form-select-border-color);
|
|
1369
|
+
}
|
|
1370
|
+
|
|
1371
|
+
.react-select-container .react-select__menu {
|
|
1372
|
+
background-color: var(--bs-form-select-bg);
|
|
1373
|
+
border: 1px solid var(--bs-form-select-border-color);
|
|
1374
|
+
}
|
|
1375
|
+
|
|
1376
|
+
.react-select-container .react-select__option {
|
|
1377
|
+
background-color: var(--bs-form-select-bg);
|
|
1378
|
+
}
|
|
1379
|
+
|
|
1380
|
+
.react-select-container .react-select__option:hover {
|
|
1381
|
+
background-color: var(--bs-gray-300);
|
|
1382
|
+
}
|
|
1383
|
+
|
|
1384
|
+
.react-select-container .react-select__option--is-selected {
|
|
1385
|
+
color: var(--bs-form-selected-color);
|
|
1386
|
+
}
|
|
1387
|
+
|
|
1388
|
+
.react-select-container .react-select__indicator-separator {
|
|
1389
|
+
background-color: var(--bs-gray-300);
|
|
1390
|
+
}
|
|
1391
|
+
|
|
1392
|
+
.react-select-container .react-select__placeholder,
|
|
1393
|
+
.react-select-container .react-select__single-value
|
|
1394
|
+
{
|
|
1395
|
+
color: var(--bs-form-select-color);
|
|
1396
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BootstrapTableProps } from './BootstrapDataTable';
|
|
3
|
-
|
|
3
|
+
type ModalEntityEditorParams = {
|
|
4
4
|
entity: any;
|
|
5
5
|
title?: string;
|
|
6
6
|
size?: string;
|
|
@@ -10,7 +10,7 @@ declare type ModalEntityEditorParams = {
|
|
|
10
10
|
children: React.ReactNode;
|
|
11
11
|
};
|
|
12
12
|
export declare function ModalEntityEditor({ entity, title, size, url, onReload, disabled, children }: ModalEntityEditorParams): JSX.Element;
|
|
13
|
-
|
|
13
|
+
type CrudActionProps = {
|
|
14
14
|
id: any;
|
|
15
15
|
edit?: Boolean;
|
|
16
16
|
del: string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
2
|
+
type StepListProps = {
|
|
3
3
|
active: number;
|
|
4
4
|
setActive: (active: number) => {};
|
|
5
5
|
children: React.ReactNode;
|
|
6
6
|
};
|
|
7
7
|
export default function StepList({ active, setActive, children }: StepListProps): JSX.Element;
|
|
8
|
-
|
|
8
|
+
type StepItemProps = {
|
|
9
9
|
title?: string;
|
|
10
10
|
translate?: string;
|
|
11
11
|
disabled?: boolean;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import NProgress from 'nprogress';
|
|
2
2
|
import { useEffect } from 'react';
|
|
3
3
|
import { useAuth } from "react-admin-base";
|
|
4
|
-
export default function TopProgressBar(
|
|
4
|
+
export default function TopProgressBar() {
|
|
5
5
|
const [api] = useAuth();
|
|
6
6
|
useEffect(function () {
|
|
7
7
|
return api.set_hook(() => NProgress.start(), () => NProgress.done());
|
|
8
8
|
}, [api.set_hook]);
|
|
9
|
-
return
|
|
9
|
+
return null;
|
|
10
10
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
type ValidatorProps = {
|
|
2
2
|
name: string;
|
|
3
3
|
type: any;
|
|
4
4
|
children: JSX.Element;
|
|
5
5
|
};
|
|
6
6
|
export declare function Validator({ name, type, children }: ValidatorProps): JSX.Element;
|
|
7
|
-
|
|
7
|
+
type ValueValidatorProps = {
|
|
8
8
|
name: string;
|
|
9
9
|
type: any;
|
|
10
10
|
value: any;
|
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.7",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
@@ -27,13 +27,13 @@
|
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"react": "^18.2.0",
|
|
29
29
|
"react-dom": "^18.2.0",
|
|
30
|
-
"react-intl": "^
|
|
31
|
-
"react-router-dom": "^6.
|
|
30
|
+
"react-intl": "^6.2.5",
|
|
31
|
+
"react-router-dom": "^6.5.0"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@emotion/react": "^11.10.5",
|
|
35
|
-
"@fortawesome/fontawesome-free": "^6.2.
|
|
36
|
-
"bootstrap": "^5.2.
|
|
35
|
+
"@fortawesome/fontawesome-free": "^6.2.1",
|
|
36
|
+
"bootstrap": "^5.2.3",
|
|
37
37
|
"file-dialog": "^0.0.8",
|
|
38
38
|
"modal-cropper": "^1.2.3",
|
|
39
39
|
"nprogress": "^0.2.0",
|
|
@@ -42,17 +42,17 @@
|
|
|
42
42
|
"react-dnd": "^16.0.1",
|
|
43
43
|
"react-dnd-html5-backend": "^16.0.1",
|
|
44
44
|
"react-password-strength-bar": "^0.4.1",
|
|
45
|
-
"react-responsive": "^9.0.
|
|
46
|
-
"react-select": "^5.
|
|
45
|
+
"react-responsive": "^9.0.2",
|
|
46
|
+
"react-select": "^5.7.0",
|
|
47
47
|
"reactstrap": "^9.1.5",
|
|
48
48
|
"rewire": "^6.0.0",
|
|
49
|
-
"sweetalert2": "^11.6.
|
|
49
|
+
"sweetalert2": "^11.6.16"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@types/react": "^18.0.
|
|
52
|
+
"@types/react": "^18.0.26",
|
|
53
53
|
"cross-env": "^7.0.3",
|
|
54
54
|
"nodemon": "^2.0.20",
|
|
55
|
-
"react-intl": "^6.2.
|
|
56
|
-
"typescript": "^4.
|
|
55
|
+
"react-intl": "^6.2.5",
|
|
56
|
+
"typescript": "^4.9.4"
|
|
57
57
|
}
|
|
58
58
|
}
|
|
@@ -2,16 +2,12 @@ import NProgress from 'nprogress';
|
|
|
2
2
|
import React, { useEffect } from 'react';
|
|
3
3
|
import { useAuth } from "react-admin-base";
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
children: React.ReactNode;
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
export default function TopProgressBar({ children }: TopProgressBarProps): React.ReactNode {
|
|
5
|
+
export default function TopProgressBar() {
|
|
10
6
|
const [ api ] = useAuth();
|
|
11
7
|
|
|
12
8
|
useEffect(function() {
|
|
13
9
|
return api.set_hook(() => NProgress.start(), () => NProgress.done());
|
|
14
10
|
}, [api.set_hook]);
|
|
15
11
|
|
|
16
|
-
return
|
|
12
|
+
return null;
|
|
17
13
|
}
|