@applica-software-guru/react-admin 1.5.354 → 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/package.json CHANGED
@@ -108,5 +108,5 @@
108
108
  "type": "module",
109
109
  "types": "dist/index.d.ts",
110
110
  "typings": "dist/index.d.ts",
111
- "version": "1.5.354"
111
+ "version": "1.5.356"
112
112
  }
@@ -117,7 +117,7 @@ function Empty({
117
117
  const translate = useTranslate();
118
118
  const getResourceLabel = useGetResourceLabel();
119
119
  const resourceName = resource
120
- ? translate(`resources.${resource}.forcedCaseName`, {
120
+ ? translate(`resources.${resource}.name`, {
121
121
  smart_count: 0,
122
122
  _: getResourceLabel(resource, 0)
123
123
  })
@@ -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={{ display: 'flex', flex: 1, flexDirection: 'column', gap: 2, width: '100%' }}>
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 sx={{ my: 1 }} />
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>