@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.
Files changed (48) hide show
  1. package/dist/components/ActionsMenu.d.ts.map +1 -1
  2. package/dist/components/Layout/Header/Profile/buttons/StopImpersonateButton.d.ts.map +1 -1
  3. package/dist/components/Layout/Navigation/NavGroup.d.ts +1 -14
  4. package/dist/components/Layout/Navigation/NavGroup.d.ts.map +1 -1
  5. package/dist/components/Layout/Provider.d.ts.map +1 -1
  6. package/dist/components/MenuPopover/styles.d.ts.map +1 -1
  7. package/dist/components/ra-buttons/CreateInDialogButton.d.ts +25 -5
  8. package/dist/components/ra-buttons/CreateInDialogButton.d.ts.map +1 -1
  9. package/dist/components/ra-buttons/EditInDialogButton.d.ts +3 -2
  10. package/dist/components/ra-buttons/EditInDialogButton.d.ts.map +1 -1
  11. package/dist/components/ra-fields/ReferenceManyField.d.ts.map +1 -1
  12. package/dist/components/ra-forms/Create.d.ts +1 -1
  13. package/dist/components/ra-forms/SimpleForm.d.ts.map +1 -1
  14. package/dist/components/ra-forms/TabbedForm.d.ts.map +1 -1
  15. package/dist/contexts/MenuConfigContext.d.ts.map +1 -1
  16. package/dist/index.d.ts +1 -1
  17. package/dist/react-admin.cjs.js +77 -73
  18. package/dist/react-admin.cjs.js.map +1 -1
  19. package/dist/react-admin.es.js +12717 -11514
  20. package/dist/react-admin.es.js.map +1 -1
  21. package/dist/react-admin.umd.js +76 -72
  22. package/dist/react-admin.umd.js.map +1 -1
  23. package/dist/themes/overrides/Dialog.d.ts +10 -1
  24. package/dist/themes/overrides/Dialog.d.ts.map +1 -1
  25. package/package.json +1 -1
  26. package/src/components/ActionsMenu.tsx +0 -3
  27. package/src/components/Layout/Header/Profile/buttons/StopImpersonateButton.tsx +4 -2
  28. package/src/components/Layout/Navigation/NavGroup.tsx +1 -13
  29. package/src/components/Layout/Provider.tsx +6 -2
  30. package/src/components/MenuPopover/styles.jsx +2 -3
  31. package/src/components/ra-buttons/CreateInDialogButton.tsx +44 -31
  32. package/src/components/ra-buttons/EditInDialogButton.tsx +29 -30
  33. package/src/components/ra-fields/ReferenceManyField.tsx +1 -2
  34. package/src/components/ra-forms/CardForm.tsx +2 -2
  35. package/src/components/ra-forms/Create.tsx +2 -2
  36. package/src/components/ra-forms/Edit.tsx +2 -2
  37. package/src/components/ra-forms/LongForm/BaseForm.tsx +1 -1
  38. package/src/components/ra-forms/SimpleForm.tsx +12 -11
  39. package/src/components/ra-forms/TabbedForm.tsx +8 -6
  40. package/src/components/ra-pages/RecoverPage.tsx +1 -1
  41. package/src/contexts/MenuConfigContext.tsx +2 -3
  42. package/src/dev/ErrorEventHandler.ts +2 -2
  43. package/src/index.jsx +3 -0
  44. package/src/playground/components/ra-forms/UserForm.jsx +14 -1
  45. package/src/playground/menu.jsx +1 -1
  46. package/src/themes/index.jsx +1 -1
  47. package/src/themes/overrides/Dialog.jsx +10 -1
  48. 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
  );
@@ -3,7 +3,7 @@ import { DashboardOutlined, FlagOutlined, NotificationOutlined, TableOutlined, U
3
3
  const config = [
4
4
  {
5
5
  id: 'dashboard',
6
- title: 'Dashboard',
6
+ title: 'Dashboard AA',
7
7
  type: 'group',
8
8
  icon: DashboardOutlined,
9
9
  children: [
@@ -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
  }
@@ -64,7 +64,7 @@ export default function ComponentsOverrides(theme) {
64
64
  CardContent(),
65
65
  Checkbox(theme),
66
66
  Chip(theme),
67
- Dialog(),
67
+ Dialog(theme),
68
68
  DialogContentText(theme),
69
69
  DialogTitle(),
70
70
  Fab(theme),