@etsoo/react 1.4.44 → 1.4.45

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.
@@ -147,7 +147,7 @@ export function ResponsibleContainer(props) {
147
147
  ? undefined
148
148
  : containerBoxSx(paddings, showDataGrid) },
149
149
  React.createElement(Stack, null,
150
- React.createElement(Box, { ref: dimensions[0][0], className: "SearchBox", sx: { height: 64 } }, searchBar),
150
+ React.createElement(Box, { ref: dimensions[0][0], className: "SearchBox", sx: { height: searchBar == null ? 0 : 40 } }, searchBar),
151
151
  list),
152
152
  pullToRefresh && pullContainer && (React.createElement(PullToRefreshUI, { mainElement: pullContainer, triggerElement: pullContainer, instructionsPullToRefresh: labels.pullToRefresh, instructionsReleaseToRefresh: labels.releaseToRefresh, instructionsRefreshing: labels.refreshing, onRefresh: () => { var _a; return (_a = state.ref) === null || _a === void 0 ? void 0 : _a.reset(); }, shouldPullToRefresh: () => {
153
153
  const container = document.querySelector(pullContainer);
@@ -23,9 +23,9 @@ export function ResponsivePage(props) {
23
23
  const half = MUGlobal.half(paddings);
24
24
  // .SearchBox keep the same to avoid flick when switching between DataGrid and List
25
25
  return {
26
+ paddingTop: paddings,
26
27
  '& .SearchBox': {
27
28
  marginLeft: paddings,
28
- marginTop: paddings,
29
29
  marginRight: paddings,
30
30
  marginBottom: half
31
31
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/react",
3
- "version": "1.4.44",
3
+ "version": "1.4.45",
4
4
  "description": "TypeScript ReactJs framework",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -352,7 +352,7 @@ export function ResponsibleContainer<
352
352
  <Box
353
353
  ref={dimensions[0][0]}
354
354
  className="SearchBox"
355
- sx={{ height: 64 }}
355
+ sx={{ height: searchBar == null ? 0 : 40 }}
356
356
  >
357
357
  {searchBar}
358
358
  </Box>
@@ -40,9 +40,9 @@ export function ResponsivePage<
40
40
 
41
41
  // .SearchBox keep the same to avoid flick when switching between DataGrid and List
42
42
  return {
43
+ paddingTop: paddings,
43
44
  '& .SearchBox': {
44
45
  marginLeft: paddings,
45
- marginTop: paddings,
46
46
  marginRight: paddings,
47
47
  marginBottom: half
48
48
  },