@etsoo/materialui 1.2.21 → 1.2.22

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.
@@ -113,7 +113,7 @@ export function ViewPage(props) {
113
113
  ":")),
114
114
  typeof itemData === "object" ? (itemData) : (React.createElement(Typography, { variant: "subtitle2" }, itemData))));
115
115
  })),
116
- React.createElement(Stack, { className: "ET-ViewPage-Actions", direction: "row", width: "100%", flexWrap: "wrap", justifyContent: "flex-end", paddingTop: actions == null ? undefined : paddings, paddingBottom: paddings, gap: paddings }, actions != null && Utils.getResult(actions, data, refresh)),
116
+ actions !== null && (React.createElement(Stack, { className: "ET-ViewPage-Actions", direction: "row", width: "100%", flexWrap: "wrap", justifyContent: "flex-end", paddingTop: actions == null ? undefined : paddings, paddingBottom: paddings, gap: paddings }, actions != null && Utils.getResult(actions, data, refresh))),
117
117
  Utils.getResult(children, data, refresh),
118
118
  pullToRefresh && (React.createElement(PullToRefreshUI, { mainElement: pullContainer, triggerElement: pullContainer, instructionsPullToRefresh: labels.pullToRefresh, instructionsReleaseToRefresh: labels.releaseToRefresh, instructionsRefreshing: labels.refreshing, onRefresh: refresh, shouldPullToRefresh: () => {
119
119
  const container = document.querySelector(pullContainer);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/materialui",
3
- "version": "1.2.21",
3
+ "version": "1.2.22",
4
4
  "description": "TypeScript Material-UI Implementation",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -288,18 +288,20 @@ export function ViewPage<T extends DataTypes.StringRecord>(
288
288
  );
289
289
  })}
290
290
  </Grid>
291
- <Stack
292
- className="ET-ViewPage-Actions"
293
- direction="row"
294
- width="100%"
295
- flexWrap="wrap"
296
- justifyContent="flex-end"
297
- paddingTop={actions == null ? undefined : paddings}
298
- paddingBottom={paddings}
299
- gap={paddings}
300
- >
301
- {actions != null && Utils.getResult(actions, data, refresh)}
302
- </Stack>
291
+ {actions !== null && (
292
+ <Stack
293
+ className="ET-ViewPage-Actions"
294
+ direction="row"
295
+ width="100%"
296
+ flexWrap="wrap"
297
+ justifyContent="flex-end"
298
+ paddingTop={actions == null ? undefined : paddings}
299
+ paddingBottom={paddings}
300
+ gap={paddings}
301
+ >
302
+ {actions != null && Utils.getResult(actions, data, refresh)}
303
+ </Stack>
304
+ )}
303
305
  {Utils.getResult(children, data, refresh)}
304
306
  {pullToRefresh && (
305
307
  <PullToRefreshUI