@evoke-platform/ui-components 1.7.0-testing.5 → 1.7.0-testing.7

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.
@@ -10,7 +10,9 @@ const styles = {
10
10
  display: 'flex',
11
11
  backgroundColor: 'white',
12
12
  minHeight: '40px',
13
- width: '400px',
13
+ width: {
14
+ sm: '400px',
15
+ },
14
16
  padding: '7px',
15
17
  border: '1px solid #919EAB7A',
16
18
  borderRadius: '8px',
@@ -149,6 +149,9 @@ export class FormFieldComponent extends ReactComponent {
149
149
  this.setValue(component.defaultValue || false);
150
150
  }
151
151
  }
152
+ else if (component.type === 'Decimal' || component.type === 'Integer') {
153
+ this.setValue(component.defaultValue);
154
+ }
152
155
  this.errorDetails = {};
153
156
  this.handleChange = this.handleChange.bind(this);
154
157
  }
@@ -58,9 +58,10 @@ const FileUploadControl = (props) => {
58
58
  border: error ? '1px solid red' : '1px solid #c4c4c4',
59
59
  borderRadius: '8px',
60
60
  height: '56px',
61
+ display: 'flex',
61
62
  },
62
63
  }) },
63
- React.createElement(Grid, { item: true, flexGrow: 1 },
64
+ React.createElement(Grid, { item: true, sx: { flex: 1 } },
64
65
  React.createElement("input", { ...getInputProps() }),
65
66
  React.createElement(TextField, { id: id, sx: { '& fieldset': { border: 'none' } }, fullWidth: true, value: uploadedFile?.name ?? (isDragActive ? 'Drop your file here' : 'File'), error: error, errorMessage: errorMessage, required: required, ...(additionalProps ?? {}) })),
66
67
  React.createElement(Grid, { item: true },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evoke-platform/ui-components",
3
- "version": "1.7.0-testing.5",
3
+ "version": "1.7.0-testing.7",
4
4
  "description": "",
5
5
  "main": "dist/published/index.js",
6
6
  "module": "dist/published/index.js",