react-admin-base-bootstrap 0.8.5 → 0.8.6

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 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-body-bg);
1363
+ border-color: var(--bs-gray-300);
1364
+ transition: none;
1365
+ }
1366
+
1367
+ .react-select-container .react-select__control:hover {
1368
+ border-color: var(--bs-gray-300);
1369
+ }
1370
+
1371
+ .react-select-container .react-select__menu {
1372
+ background-color: var(--bs-body-bg);
1373
+ border: 1px solid var(--bs-gray-300);
1374
+ }
1375
+
1376
+ .react-select-container .react-select__option {
1377
+ background-color: var(--bs-body-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-dark);
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-gray-700);
1396
+ }
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  export declare function useDataTableContext(): any;
3
- declare type ActionsProp = {
3
+ type ActionsProp = {
4
4
  edit?: string;
5
5
  del?: string;
6
6
  rowSpan?: number | undefined;
@@ -1,4 +1,4 @@
1
- declare type BootstrapPaginationProps = {
1
+ type BootstrapPaginationProps = {
2
2
  className?: string;
3
3
  currentPage: number;
4
4
  pageCount: number;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { BootstrapTableProps } from './BootstrapDataTable';
3
- declare type ModalEntityEditorParams = {
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
- declare type CrudActionProps = {
13
+ type CrudActionProps = {
14
14
  id: any;
15
15
  edit?: Boolean;
16
16
  del: string;
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- declare type DefaultValidatorOptionsProps = {
2
+ type DefaultValidatorOptionsProps = {
3
3
  children: React.ReactNode;
4
4
  };
5
5
  export default function DefaultValidatorOptions({ children }: DefaultValidatorOptionsProps): JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- declare type EntityEditorParams = {
2
+ type EntityEditorParams = {
3
3
  entity: any;
4
4
  onSave?: any;
5
5
  saveButtonClassName?: string;
@@ -1,4 +1,4 @@
1
- declare type ExternalLoginButtonProps = {
1
+ type ExternalLoginButtonProps = {
2
2
  id: string;
3
3
  icon?: string;
4
4
  name: string;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- declare type RelativeProps = {
2
+ type RelativeProps = {
3
3
  children: JSX.Element;
4
4
  };
5
5
  export declare function Relative({ children }: RelativeProps): React.FunctionComponentElement<any> | null;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  export declare function useLanguage(): any;
3
- declare type LanguageProviderProps = {
3
+ type LanguageProviderProps = {
4
4
  defaultLanguage: string;
5
5
  languages: any;
6
6
  loader?: (language: any) => any;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- declare type MultiFilePickerProps = {
2
+ type MultiFilePickerProps = {
3
3
  disabled?: boolean;
4
4
  className?: string;
5
5
  accepts?: string;
@@ -1,11 +1,11 @@
1
1
  import React from "react";
2
- declare type StepListProps = {
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
- declare type StepItemProps = {
8
+ type StepItemProps = {
9
9
  title?: string;
10
10
  translate?: string;
11
11
  disabled?: boolean;
@@ -1,6 +1 @@
1
- import React from 'react';
2
- declare type TopProgressBarProps = {
3
- children: React.ReactNode;
4
- };
5
- export default function TopProgressBar({ children }: TopProgressBarProps): React.ReactNode;
6
- export {};
1
+ export default function TopProgressBar(): null;
@@ -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({ children }) {
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 children;
9
+ return null;
10
10
  }
@@ -1,10 +1,10 @@
1
- declare type ValidatorProps = {
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
- declare type ValueValidatorProps = {
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.5",
3
+ "version": "0.8.6",
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": "^5.21.0",
31
- "react-router-dom": "^6.4.2"
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.0",
36
- "bootstrap": "^5.2.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.0",
46
- "react-select": "^5.5.7",
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.4"
49
+ "sweetalert2": "^11.6.16"
50
50
  },
51
51
  "devDependencies": {
52
- "@types/react": "^18.0.24",
52
+ "@types/react": "^18.0.26",
53
53
  "cross-env": "^7.0.3",
54
54
  "nodemon": "^2.0.20",
55
- "react-intl": "^6.2.1",
56
- "typescript": "^4.8.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
- type TopProgressBarProps = {
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 children;
12
+ return null;
17
13
  }