@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.
- package/dist/published/components/core/Alert/Alert.js +3 -1
- package/dist/published/components/custom/Form/Common/FormComponentWrapper.js +1 -1
- package/dist/published/components/custom/FormField/FileUpload/FileUpload.js +2 -1
- package/dist/published/components/custom/FormV2/components/FieldWrapper.js +2 -2
- package/dist/published/components/custom/FormV2/components/FormFieldTypes/DocumentFiles/Document.js +2 -2
- package/package.json +1 -1
|
@@ -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: '
|
|
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,
|
|
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, {
|
|
91
|
-
React.createElement(Typography, { fontSize: '12px',
|
|
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,
|
package/dist/published/components/custom/FormV2/components/FormFieldTypes/DocumentFiles/Document.js
CHANGED
|
@@ -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, {
|
|
117
|
-
React.createElement(Typography, { fontSize: '12px', color: '
|
|
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
|
};
|