@evoke-platform/ui-components 1.7.0-testing.4 → 1.7.0-testing.6

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',
@@ -79,7 +79,7 @@ export const FormComponentWrapper = (props) => {
79
79
  React.createElement(PrefixSuffix, { suffix: suffix, height: fieldHeight }))),
80
80
  React.createElement(Box, { sx: underFieldStyles },
81
81
  React.createElement(Box, { sx: { width: '100%', display: 'flex', justifyContent: 'space-between' } },
82
- errorMessage ? (React.createElement(Typography, { sx: { color: 'red', whiteSpace: 'normal', display: 'flex', alignItems: 'center' }, variant: "caption" },
82
+ errorMessage ? (React.createElement(Typography, { sx: { color: '#D3271B', whiteSpace: 'normal', display: 'flex', alignItems: 'center' }, variant: "caption" },
83
83
  React.createElement(ErrorRounded, { sx: { fontSize: '15px', paddingRight: '4px' } }),
84
84
  errorMessage)) : (React.createElement("span", null)),
85
85
  showCharCount && (React.createElement(Typography, { variant: "caption", sx: { color: '#999', whiteSpace: 'nowrap' } },
@@ -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 },
@@ -87,8 +87,8 @@ const FieldWrapper = (props) => {
87
87
  } },
88
88
  React.createElement(Box, { sx: { display: 'flex', flexDirection: 'column' } },
89
89
  errorMessage ? (React.createElement(Box, { display: 'flex', alignItems: 'center' },
90
- React.createElement(InfoRounded, { color: 'error', sx: { fontSize: '.75rem', marginRight: '3px' } }),
91
- React.createElement(Typography, { fontSize: '12px', color: 'error', sx: { lineHeight: '18px' } }, errorMessage))) : (React.createElement("span", null)),
90
+ React.createElement(InfoRounded, { sx: { fontSize: '.75rem', marginRight: '3px', color: '#D3271B' } }),
91
+ React.createElement(Typography, { fontSize: '12px', sx: { lineHeight: '18px', color: '#D3271B' } }, errorMessage))) : (React.createElement("span", null)),
92
92
  description && (React.createElement(Typography, { id: `${inputId}-description`, variant: "caption", sx: descriptionStyles }, description))),
93
93
  showCharCount && (React.createElement(Typography, { variant: "caption", sx: { color: '#999999', whiteSpace: 'nowrap' } },
94
94
  remainingChars ?? charCount,
@@ -113,6 +113,6 @@ export const Document = (props) => {
113
113
  React.createElement(DocumentList, { id: id, instance: instance, handleChange: handleChange, value: value, setSnackbarError: (type, message) => setSnackbarError({ message, type }), canUpdateProperty: canUpdateProperty && !!hasUpdatePermission }),
114
114
  React.createElement(Snackbar, { open: !!snackbarError?.message, handleClose: () => setSnackbarError(null), message: snackbarError?.message, error: snackbarError?.type === 'error' }),
115
115
  errors.length > 0 && (React.createElement(Box, { display: 'flex', alignItems: 'center' },
116
- React.createElement(InfoRounded, { color: 'error', sx: { fontSize: '.75rem', marginRight: '3px' } }),
117
- React.createElement(Typography, { fontSize: '12px', color: 'error', sx: { lineHeight: '18px' } }, errors.join('; ') + '.')))));
116
+ React.createElement(InfoRounded, { sx: { fontSize: '.75rem', marginRight: '3px', color: '#D3271B' } }),
117
+ React.createElement(Typography, { fontSize: '12px', color: '#D3271B', sx: { lineHeight: '18px' } }, errors.join('; ') + '.')))));
118
118
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evoke-platform/ui-components",
3
- "version": "1.7.0-testing.4",
3
+ "version": "1.7.0-testing.6",
4
4
  "description": "",
5
5
  "main": "dist/published/index.js",
6
6
  "module": "dist/published/index.js",