@applica-software-guru/react-admin 1.5.355 → 1.5.356
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/ra-lists/ListToolbar.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 +248 -252
- 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/ra-lists/ListToolbar.tsx +21 -25
package/package.json
CHANGED
|
@@ -28,43 +28,39 @@ function ListToolbarComp(props: ListToolbarPropsExtended): ReactElement | null {
|
|
|
28
28
|
<FilterSidebarContext.Provider value={{ hasFilterSidebar }}>
|
|
29
29
|
<FilterContext.Provider value={filters}>
|
|
30
30
|
<Root className={className}>
|
|
31
|
-
<Box sx={{
|
|
31
|
+
<Box sx={{ width: '100%', display: 'flex', flexDirection: 'column', gap: 2 }}>
|
|
32
32
|
{tabs ? <ListTabsToolbar tabs={tabs} /> : null}
|
|
33
|
-
<Box
|
|
34
|
-
sx={{
|
|
35
|
-
display: 'flex',
|
|
36
|
-
flexDirection: 'row',
|
|
37
|
-
alignItems: 'center',
|
|
38
|
-
justifyContent: 'flex-end',
|
|
39
|
-
gap: 2,
|
|
40
|
-
p: hasTabs ? 0 : theme.spacing(2.5),
|
|
41
|
-
px: theme.spacing(2.5),
|
|
42
|
-
pb: theme.spacing(2.5),
|
|
43
|
-
width: '100%'
|
|
44
|
-
}}
|
|
45
|
-
>
|
|
33
|
+
<Box>
|
|
46
34
|
{isMobile && hasFilterSidebar ? (
|
|
47
35
|
<Box
|
|
48
36
|
sx={{
|
|
49
|
-
border: shouldRenderEmptyList ? '1px solid' : 0,
|
|
50
|
-
borderColor: theme.palette.mode === 'dark' ? theme.palette.divider : theme.palette.grey.A800
|
|
51
|
-
width: '100%'
|
|
37
|
+
border: isMobile ? (shouldRenderEmptyList ? '1px solid' : 0) : 0,
|
|
38
|
+
borderColor: theme.palette.mode === 'dark' ? theme.palette.divider : theme.palette.grey.A800
|
|
52
39
|
}}
|
|
53
40
|
>
|
|
54
41
|
{Actions}
|
|
55
|
-
{!isEmpty(filterValues)
|
|
56
|
-
|
|
57
|
-
<Divider
|
|
42
|
+
{!isEmpty(filterValues) ? (
|
|
43
|
+
<Box>
|
|
44
|
+
<Divider />
|
|
58
45
|
<ActiveFiltersChips />
|
|
59
|
-
|
|
60
|
-
)}
|
|
46
|
+
</Box>
|
|
47
|
+
) : null}
|
|
61
48
|
</Box>
|
|
62
49
|
) : (
|
|
63
|
-
|
|
50
|
+
<Box
|
|
51
|
+
sx={{
|
|
52
|
+
display: 'flex',
|
|
53
|
+
flexDirection: isMobile ? 'column' : 'row',
|
|
54
|
+
alignItems: isMobile ? 'flex-start' : 'center',
|
|
55
|
+
gap: 2,
|
|
56
|
+
px: 2.5,
|
|
57
|
+
py: 2.5
|
|
58
|
+
}}
|
|
59
|
+
>
|
|
64
60
|
{hasFilterSidebar ? <ActiveFiltersChips /> : <FilterForm />}
|
|
65
|
-
<Box sx={{ flex: 1 }} />
|
|
61
|
+
{!isMobile ? <Box sx={{ flex: 1 }} /> : null}
|
|
66
62
|
{Actions}
|
|
67
|
-
|
|
63
|
+
</Box>
|
|
68
64
|
)}
|
|
69
65
|
</Box>
|
|
70
66
|
</Box>
|