@applica-software-guru/react-admin 1.4.0-beta.6 → 1.4.0-beta.8
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/dist/components/ActionsMenu.d.ts.map +1 -1
- package/dist/components/Layout/Header/Profile/buttons/StopImpersonateButton.d.ts.map +1 -1
- package/dist/components/Layout/Navigation/NavGroup.d.ts +1 -14
- package/dist/components/Layout/Navigation/NavGroup.d.ts.map +1 -1
- package/dist/components/Layout/Provider.d.ts.map +1 -1
- package/dist/components/MenuPopover/styles.d.ts.map +1 -1
- package/dist/components/ra-buttons/CreateInDialogButton.d.ts +25 -5
- package/dist/components/ra-buttons/CreateInDialogButton.d.ts.map +1 -1
- package/dist/components/ra-buttons/EditInDialogButton.d.ts +3 -2
- package/dist/components/ra-buttons/EditInDialogButton.d.ts.map +1 -1
- package/dist/components/ra-fields/ReferenceManyField.d.ts.map +1 -1
- package/dist/components/ra-forms/Create.d.ts +1 -1
- package/dist/components/ra-forms/SimpleForm.d.ts.map +1 -1
- package/dist/components/ra-forms/TabbedForm.d.ts.map +1 -1
- package/dist/contexts/MenuConfigContext.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/react-admin.cjs.js +77 -73
- package/dist/react-admin.cjs.js.map +1 -1
- package/dist/react-admin.es.js +12717 -11514
- package/dist/react-admin.es.js.map +1 -1
- package/dist/react-admin.umd.js +76 -72
- package/dist/react-admin.umd.js.map +1 -1
- package/dist/themes/overrides/Dialog.d.ts +10 -1
- package/dist/themes/overrides/Dialog.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/ActionsMenu.tsx +0 -3
- package/src/components/Layout/Header/Profile/buttons/StopImpersonateButton.tsx +4 -2
- package/src/components/Layout/Navigation/NavGroup.tsx +1 -13
- package/src/components/Layout/Provider.tsx +6 -2
- package/src/components/MenuPopover/styles.jsx +2 -3
- package/src/components/ra-buttons/CreateInDialogButton.tsx +44 -31
- package/src/components/ra-buttons/EditInDialogButton.tsx +29 -30
- package/src/components/ra-fields/ReferenceManyField.tsx +1 -2
- package/src/components/ra-forms/CardForm.tsx +2 -2
- package/src/components/ra-forms/Create.tsx +2 -2
- package/src/components/ra-forms/Edit.tsx +2 -2
- package/src/components/ra-forms/LongForm/BaseForm.tsx +1 -1
- package/src/components/ra-forms/SimpleForm.tsx +12 -11
- package/src/components/ra-forms/TabbedForm.tsx +8 -6
- package/src/components/ra-pages/RecoverPage.tsx +1 -1
- package/src/contexts/MenuConfigContext.tsx +2 -3
- package/src/dev/ErrorEventHandler.ts +2 -2
- package/src/index.jsx +3 -0
- package/src/playground/components/ra-forms/UserForm.jsx +14 -1
- package/src/playground/menu.jsx +1 -1
- package/src/themes/index.jsx +1 -1
- package/src/themes/overrides/Dialog.jsx +10 -1
- package/src/themes/overrides/index.jsx +1 -1
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
ImageInput,
|
|
5
5
|
SelectArrayInput,
|
|
6
6
|
SimpleForm,
|
|
7
|
+
TabbedForm,
|
|
7
8
|
TableFormIterator,
|
|
8
9
|
TextInput,
|
|
9
10
|
useThemeConfig
|
|
@@ -11,6 +12,7 @@ import {
|
|
|
11
12
|
|
|
12
13
|
import { Grid } from '@mui/material';
|
|
13
14
|
import PropTypes from 'prop-types';
|
|
15
|
+
import { CreateInDialogButton, EditInDialogButton } from '../../../components';
|
|
14
16
|
|
|
15
17
|
const UserForm = ({ configuredRoles }) => {
|
|
16
18
|
const { spacing } = useThemeConfig();
|
|
@@ -42,7 +44,18 @@ const UserForm = ({ configuredRoles }) => {
|
|
|
42
44
|
</ArrayInput>
|
|
43
45
|
</Grid>
|
|
44
46
|
</Grid>
|
|
45
|
-
|
|
47
|
+
<EditInDialogButton>
|
|
48
|
+
<TabbedForm>
|
|
49
|
+
<TabbedForm.Tab label="ciaooo">
|
|
50
|
+
<TextInput source="ciao" />
|
|
51
|
+
</TabbedForm.Tab>
|
|
52
|
+
</TabbedForm>
|
|
53
|
+
</EditInDialogButton>
|
|
54
|
+
<CreateInDialogButton>
|
|
55
|
+
<SimpleForm>
|
|
56
|
+
<TextInput source="ciao" />
|
|
57
|
+
</SimpleForm>
|
|
58
|
+
</CreateInDialogButton>
|
|
46
59
|
<BooleanInput source="active" />
|
|
47
60
|
</SimpleForm>
|
|
48
61
|
);
|
package/src/playground/menu.jsx
CHANGED
package/src/themes/index.jsx
CHANGED
|
@@ -72,7 +72,7 @@ const ThemeCustomization = ({ themeOverrides, children }) => {
|
|
|
72
72
|
return (
|
|
73
73
|
<StyledEngineProvider injectFirst>
|
|
74
74
|
<ThemeProvider theme={themes}>
|
|
75
|
-
<CssBaseline />
|
|
75
|
+
<CssBaseline enableColorScheme />
|
|
76
76
|
{children}
|
|
77
77
|
</ThemeProvider>
|
|
78
78
|
</StyledEngineProvider>
|
|
@@ -3,13 +3,22 @@ import { alpha } from '@mui/material/styles';
|
|
|
3
3
|
|
|
4
4
|
// ==============================|| OVERRIDES - DIALOG ||============================== //
|
|
5
5
|
|
|
6
|
-
export default function Dialog() {
|
|
6
|
+
export default function Dialog(theme) {
|
|
7
7
|
return {
|
|
8
8
|
MuiDialog: {
|
|
9
9
|
styleOverrides: {
|
|
10
10
|
root: {
|
|
11
11
|
'& .MuiBackdrop-root': {
|
|
12
12
|
backgroundColor: alpha('#000', 0.7)
|
|
13
|
+
},
|
|
14
|
+
'& .MuiCardContent-root': {
|
|
15
|
+
[theme.breakpoints.down('sm')]: {
|
|
16
|
+
paddingBottom: `${theme.spacing(2.5)}`
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
'& .MuiPaper-root:has(.tabbed-form)': {
|
|
20
|
+
overflowY: 'unset',
|
|
21
|
+
width: '100%'
|
|
13
22
|
}
|
|
14
23
|
}
|
|
15
24
|
}
|