@etsoo/materialui 1.2.8 → 1.2.9

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.
@@ -61,6 +61,10 @@ export interface ViewPageProps<T extends DataTypes.StringRecord> extends Omit<Co
61
61
  * Pull to refresh data
62
62
  */
63
63
  pullToRefresh?: boolean;
64
+ /**
65
+ * Grid spacing
66
+ */
67
+ spacing?: Record<string, string | number>;
64
68
  /**
65
69
  * Support refresh
66
70
  */
@@ -77,7 +77,7 @@ function getItemField(field, data) {
77
77
  */
78
78
  export function ViewPage(props) {
79
79
  // Destruct
80
- const { actions, children, fields, loadData, paddings = MUGlobal.pagePaddings, supportRefresh = true, fabColumnDirection = true, fabTop = true, supportBack = true, pullToRefresh = true, gridRef, ...rest } = props;
80
+ const { actions, children, fields, loadData, paddings = MUGlobal.pagePaddings, spacing = MUGlobal.half(MUGlobal.pagePaddings), supportRefresh = true, fabColumnDirection = true, fabTop = true, supportBack = true, pullToRefresh = true, gridRef, ...rest } = props;
81
81
  // Data
82
82
  const [data, setData] = React.useState();
83
83
  // Labels
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/materialui",
3
- "version": "1.2.8",
3
+ "version": "1.2.9",
4
4
  "description": "TypeScript Material-UI Implementation",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -97,6 +97,11 @@ export interface ViewPageProps<T extends DataTypes.StringRecord>
97
97
  */
98
98
  pullToRefresh?: boolean;
99
99
 
100
+ /**
101
+ * Grid spacing
102
+ */
103
+ spacing?: Record<string, string | number>;
104
+
100
105
  /**
101
106
  * Support refresh
102
107
  */
@@ -198,6 +203,7 @@ export function ViewPage<T extends DataTypes.StringRecord>(
198
203
  fields,
199
204
  loadData,
200
205
  paddings = MUGlobal.pagePaddings,
206
+ spacing = MUGlobal.half(MUGlobal.pagePaddings),
201
207
  supportRefresh = true,
202
208
  fabColumnDirection = true,
203
209
  fabTop = true,