umwd-components 0.1.236 → 0.1.237

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.
@@ -125,11 +125,13 @@ function PageBuilder(_ref) {
125
125
  }, /*#__PURE__*/React.createElement(material.TextField, {
126
126
  id: "title",
127
127
  name: "title",
128
- label: "title"
128
+ label: "title",
129
+ defaultValue: title
129
130
  }), /*#__PURE__*/React.createElement(material.TextField, {
130
131
  id: "description",
131
132
  name: "description",
132
- label: "description"
133
+ label: "description",
134
+ defaultValue: description
133
135
  })), blocks.map(blockRenderer)));
134
136
  }
135
137
 
@@ -121,11 +121,13 @@ function PageBuilder(_ref) {
121
121
  }, /*#__PURE__*/React__default.createElement(TextField, {
122
122
  id: "title",
123
123
  name: "title",
124
- label: "title"
124
+ label: "title",
125
+ defaultValue: title
125
126
  }), /*#__PURE__*/React__default.createElement(TextField, {
126
127
  id: "description",
127
128
  name: "description",
128
- label: "description"
129
+ label: "description",
130
+ defaultValue: description
129
131
  })), blocks.map(blockRenderer)));
130
132
  }
131
133
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "umwd-components",
3
- "version": "0.1.236",
3
+ "version": "0.1.237",
4
4
  "description": "UMWD Component library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -74,14 +74,21 @@ export default function PageBuilder({
74
74
  <Box sx={{ ...sx }}>
75
75
  <form action={formAction}>
76
76
  <Box sx={{ width: "100%", backgroundColor: "primary.dark", p: 2 }}>
77
- {/* <Button variant="contained" color="primary">
78
- Save
79
- </Button> */}
80
77
  <SubmitButton text="submit" loadingText="loading" />
81
78
  </Box>
82
79
  <Stack spacing={2} sx={{ p: 2 }}>
83
- <TextField id="title" name="title" label="title" />
84
- <TextField id="description" name="description" label="description" />
80
+ <TextField
81
+ id="title"
82
+ name="title"
83
+ label="title"
84
+ defaultValue={title}
85
+ />
86
+ <TextField
87
+ id="description"
88
+ name="description"
89
+ label="description"
90
+ defaultValue={description}
91
+ />
85
92
  </Stack>
86
93
  {blocks.map(blockRenderer)}
87
94
  </form>