@applica-software-guru/react-admin 1.5.321 → 1.5.323
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/Notification.d.ts.map +1 -1
- package/dist/components/ra-lists/Empty.d.ts.map +1 -1
- package/dist/react-admin.cjs.js +1 -1
- package/dist/react-admin.cjs.js.gz +0 -0
- package/dist/react-admin.cjs.js.map +1 -1
- package/dist/react-admin.es.js +5 -1
- package/dist/react-admin.es.js.gz +0 -0
- package/dist/react-admin.es.js.map +1 -1
- package/dist/react-admin.umd.js +1 -1
- package/dist/react-admin.umd.js.gz +0 -0
- package/dist/react-admin.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Notification.tsx +1 -0
- package/src/components/ra-lists/Empty.tsx +4 -1
- package/src/playground/components/ra-lists/CategoryList.jsx +20 -3
- package/src/playground/components/ra-lists/I18nMessageList.jsx +2 -2
package/package.json
CHANGED
|
@@ -49,7 +49,10 @@ type EmptyProps = {
|
|
|
49
49
|
};
|
|
50
50
|
|
|
51
51
|
const StyledToolbar = styled('div')(({ theme }) => ({
|
|
52
|
-
padding: theme.spacing(2)
|
|
52
|
+
padding: theme.spacing(2),
|
|
53
|
+
display: 'flex',
|
|
54
|
+
justifyContent: 'center',
|
|
55
|
+
gap: theme.spacing(2)
|
|
53
56
|
}));
|
|
54
57
|
|
|
55
58
|
const PREFIX = 'ApplicaEmpty';
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
|
|
20
20
|
function CategoryAddButton() {
|
|
21
21
|
return (
|
|
22
|
-
<CreateInDialogButton maxWidth="sm" redirect="list" size="medium" variant="
|
|
22
|
+
<CreateInDialogButton maxWidth="sm" redirect="list" size="medium" variant="contained" color="primary">
|
|
23
23
|
<CategoryForm />
|
|
24
24
|
</CreateInDialogButton>
|
|
25
25
|
);
|
|
@@ -30,7 +30,15 @@ function CategorySubmitButton() {
|
|
|
30
30
|
console.log(values);
|
|
31
31
|
}
|
|
32
32
|
return (
|
|
33
|
-
<CreateInDialogButton
|
|
33
|
+
<CreateInDialogButton
|
|
34
|
+
onSubmit={handleSubmit}
|
|
35
|
+
redirect="list"
|
|
36
|
+
label="Submit"
|
|
37
|
+
size="medium"
|
|
38
|
+
variant="contained"
|
|
39
|
+
color="primary"
|
|
40
|
+
maxWidth="xs"
|
|
41
|
+
>
|
|
34
42
|
<SimpleForm>
|
|
35
43
|
<TextInput source="description" validate={required()} fullWidth />
|
|
36
44
|
</SimpleForm>
|
|
@@ -51,7 +59,16 @@ function CategoryList() {
|
|
|
51
59
|
</ActionsMenu>
|
|
52
60
|
</>
|
|
53
61
|
}
|
|
54
|
-
empty={
|
|
62
|
+
empty={
|
|
63
|
+
<Empty
|
|
64
|
+
actions={
|
|
65
|
+
<>
|
|
66
|
+
<CategoryAddButton />
|
|
67
|
+
<CategorySubmitButton />
|
|
68
|
+
</>
|
|
69
|
+
}
|
|
70
|
+
/>
|
|
71
|
+
}
|
|
55
72
|
>
|
|
56
73
|
<Datagrid>
|
|
57
74
|
<LocalizedTextField source="description" />
|
|
@@ -2,6 +2,7 @@ import {
|
|
|
2
2
|
ActionsField,
|
|
3
3
|
BooleanField,
|
|
4
4
|
Datagrid,
|
|
5
|
+
DeleteWithConfirmButton,
|
|
5
6
|
List,
|
|
6
7
|
RecordInput,
|
|
7
8
|
SearchInput,
|
|
@@ -15,8 +16,7 @@ function I18nMessageList() {
|
|
|
15
16
|
<TextField source="lang" />
|
|
16
17
|
<RecordInput source="code" />
|
|
17
18
|
<RecordInput source="text" />
|
|
18
|
-
<
|
|
19
|
-
<ActionsField />
|
|
19
|
+
<DeleteWithConfirmButton />
|
|
20
20
|
</Datagrid>
|
|
21
21
|
</List>
|
|
22
22
|
);
|