@applica-software-guru/react-admin 1.1.110 → 1.1.111

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applica-software-guru/react-admin",
3
- "version": "1.1.110",
3
+ "version": "1.1.111",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -5,9 +5,18 @@ const StyledEdit = styled(RaEdit, {
5
5
  name: 'RaApplicaEdit',
6
6
  slot: 'root'
7
7
  })(({ theme }) => ({
8
+ '&>.MuiToolbar-root:first-of-type': {
9
+ backgroundColor: theme.palette.background.default
10
+ },
11
+ '& .RaEdit-card': {
12
+ [theme.breakpoints.down('sm')]: {
13
+ marginBottom: theme.spacing(6)
14
+ }
15
+ },
8
16
  '& .RaEdi-card, & > div > div > form': {
9
17
  backgroundColor: theme.palette.background.default
10
18
  },
19
+
11
20
  '& .RaToolbar-mobileToolbar': {
12
21
  borderTop: `1px solid ${theme.palette.divider}`
13
22
  },
@@ -0,0 +1,22 @@
1
+ import { Show as RaShow } from 'react-admin';
2
+ import { styled } from '@mui/material/styles';
3
+
4
+ const StyledShow = styled(RaShow, {
5
+ name: 'RaApplicaShow',
6
+ slot: 'root'
7
+ })(({ theme }) => ({
8
+ '&>.MuiToolbar-root:first-of-type': {
9
+ backgroundColor: theme.palette.background.default
10
+ },
11
+ '& .RaShow-card, & > div > div > form': {
12
+ backgroundColor: theme.palette.background.default
13
+ },
14
+ '& .RaShow-main>.MuiPaper-root:first-of-type': {
15
+ // Ci ho messo 4 ore per scrivere questa riga di codice e risolvere un problema con react-sticky-box ed i Long Form.
16
+ // L'overflow è di default 'hidden', a noi serve visibile per consentire a react-sticky-box di funzionare e gestire la visiblità con ancore
17
+ // di tutti gli elementi presenti all'interno della pagina.
18
+ overflow: 'visible'
19
+ }
20
+ }));
21
+
22
+ export default StyledShow;
@@ -1,25 +1,29 @@
1
+ import Create, { useResourceDefaultValues } from './Create';
2
+
1
3
  import CardForm from './CardForm';
2
4
  import ChangePasswordForm from './ChangePasswordForm';
3
- import Create, { useResourceDefaultValues } from './Create';
4
5
  import Edit from './Edit';
5
6
  import FormHeader from './FormHeader';
6
7
  import LongForm from './LongForm';
8
+ import Show from './Show';
7
9
  import SimpleForm from './SimpleForm';
8
10
  import SimpleFormIterator from './SimpleFormIterator';
9
11
  import TabbedForm from './TabbedForm';
10
12
  import TableFormIterator from './TableForm';
11
13
  import Toolbar from './Toolbar';
14
+
12
15
  export {
13
- Create,
14
- useResourceDefaultValues,
15
16
  CardForm,
16
17
  ChangePasswordForm,
18
+ Create,
17
19
  Edit,
18
20
  FormHeader,
19
21
  LongForm,
22
+ Show,
20
23
  SimpleForm,
21
24
  SimpleFormIterator,
22
25
  TabbedForm,
23
26
  TableFormIterator,
24
- Toolbar
27
+ Toolbar,
28
+ useResourceDefaultValues
25
29
  };
package/src/index.jsx CHANGED
@@ -45,11 +45,11 @@ export {
45
45
  Resource,
46
46
  ResourceContextProvider,
47
47
  SaveButton,
48
- Show,
49
48
  SimpleFormIterator as RaSimpleFormIterator,
50
49
  SimpleFormIteratorContext,
51
50
  SimpleList,
52
51
  SingleFieldList,
52
+ SimpleShowLayout,
53
53
  TopToolbar,
54
54
  UrlField,
55
55
  useArrayInput,