@etsoo/materialui 1.0.73 → 1.0.74

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.
@@ -107,7 +107,8 @@ export function ViewPage(props) {
107
107
  ":"),
108
108
  typeof itemData === 'object' ? (itemData) : (React.createElement(Typography, { variant: "subtitle2" }, itemData))));
109
109
  })),
110
- actions != null && (React.createElement(Stack, { className: "ET-ViewPage-Actions", direction: "row", width: "100%", flexWrap: "wrap", justifyContent: "flex-end", paddingTop: paddings, paddingBottom: paddings, gap: paddings }, Utils.getResult(actions, data, refresh))),
110
+ 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 &&
111
+ Utils.getResult(actions, data, refresh)),
111
112
  Utils.getResult(children, data, refresh),
112
113
  pullToRefresh && (React.createElement(PullToRefreshUI, { mainElement: pullContainer, triggerElement: pullContainer, instructionsPullToRefresh: labels.pullToRefresh, instructionsReleaseToRefresh: labels.releaseToRefresh, instructionsRefreshing: labels.refreshing, onRefresh: refresh, shouldPullToRefresh: () => {
113
114
  const container = document.querySelector(pullContainer);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/materialui",
3
- "version": "1.0.73",
3
+ "version": "1.0.74",
4
4
  "description": "TypeScript Material-UI Implementation",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -268,20 +268,19 @@ export function ViewPage<T extends DataTypes.StringRecord>(
268
268
  );
269
269
  })}
270
270
  </Grid>
271
- {actions != null && (
272
- <Stack
273
- className="ET-ViewPage-Actions"
274
- direction="row"
275
- width="100%"
276
- flexWrap="wrap"
277
- justifyContent="flex-end"
278
- paddingTop={paddings}
279
- paddingBottom={paddings}
280
- gap={paddings}
281
- >
282
- {Utils.getResult(actions, data, refresh)}
283
- </Stack>
284
- )}
271
+ <Stack
272
+ className="ET-ViewPage-Actions"
273
+ direction="row"
274
+ width="100%"
275
+ flexWrap="wrap"
276
+ justifyContent="flex-end"
277
+ paddingTop={actions == null ? undefined : paddings}
278
+ paddingBottom={paddings}
279
+ gap={paddings}
280
+ >
281
+ {actions != null &&
282
+ Utils.getResult(actions, data, refresh)}
283
+ </Stack>
285
284
  {Utils.getResult(children, data, refresh)}
286
285
  {pullToRefresh && (
287
286
  <PullToRefreshUI