@arquimedes.co/eureka-forms 3.0.44-test → 3.0.45-next-fix
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/FormSteps/FileUploadStep/MaterialFileUploadStep/FileComponent/FileComponent.js +1 -1
- package/dist/FormSteps/FileUploadStep/MaterialFileUploadStep/MaterialFileUploadStep.js +1 -1
- package/dist/Shared/ErkDatePicker/ErkDatePicker.js +1 -6
- package/dist/Shared/ErkDateRangePicker/ErkDateRangePicker.js +1 -5
- package/package.json +1 -1
|
@@ -64,6 +64,6 @@ function FileUploadComponent({ file, formStyle, error, editable, handleRemove, f
|
|
|
64
64
|
}
|
|
65
65
|
}, children: file.file?.name ?? file.fileName }), editable && (_jsx("div", { className: styles.deletBtn, onClick: () => {
|
|
66
66
|
handleRemove();
|
|
67
|
-
}, children: _jsx(CloseIcon, {
|
|
67
|
+
}, children: _jsx(CloseIcon, { size: 24 }) }))] }));
|
|
68
68
|
}
|
|
69
69
|
export default FileUploadComponent;
|
|
@@ -58,7 +58,7 @@ function FileUploadStep({ step, editable }) {
|
|
|
58
58
|
postFile(pFile.file, pFile.postInfo),
|
|
59
59
|
new Promise((resolve) => setTimeout(resolve, 1000)),
|
|
60
60
|
]);
|
|
61
|
-
setFileChange(
|
|
61
|
+
setFileChange([{ ...pFile, state: 'DONE', ...resp[0] }]);
|
|
62
62
|
}
|
|
63
63
|
catch (error) {
|
|
64
64
|
console.error(error);
|
|
@@ -144,10 +144,7 @@ const CustomTextField = forwardRef((props, ref) => {
|
|
|
144
144
|
pickerContext.setOpen((prev) => !prev);
|
|
145
145
|
}
|
|
146
146
|
};
|
|
147
|
-
return
|
|
148
|
-
...props.InputProps,
|
|
149
|
-
disabled: !!props.readOnly || !!props.disabled,
|
|
150
|
-
} }));
|
|
147
|
+
return _jsx(StyledTextField, { ...props, inputRef: ref, onClick: handleClick });
|
|
151
148
|
});
|
|
152
149
|
function CustomDatePicker({ error, required, disabled, readOnly, helperText, size = 'small', labelMargin = 5, pickTime = false,
|
|
153
150
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
@@ -195,7 +192,6 @@ orientation: _orientation, ...others }) {
|
|
|
195
192
|
textField: {
|
|
196
193
|
error,
|
|
197
194
|
size,
|
|
198
|
-
required,
|
|
199
195
|
disabled,
|
|
200
196
|
readOnly: !disabled && readOnly,
|
|
201
197
|
helperText,
|
|
@@ -251,7 +247,6 @@ orientation: _orientation, ...others }) {
|
|
|
251
247
|
textField: {
|
|
252
248
|
size,
|
|
253
249
|
error,
|
|
254
|
-
required,
|
|
255
250
|
disabled,
|
|
256
251
|
readOnly: !disabled && readOnly,
|
|
257
252
|
helperText,
|
|
@@ -93,10 +93,7 @@ const CustomTextField = React.forwardRef((props, ref) => {
|
|
|
93
93
|
pickerContext.setOpen((prev) => !prev);
|
|
94
94
|
}
|
|
95
95
|
};
|
|
96
|
-
return
|
|
97
|
-
...props.InputProps,
|
|
98
|
-
disabled: !!props.readOnly || !!props.disabled,
|
|
99
|
-
} }));
|
|
96
|
+
return _jsx(StyledTextField, { ...props, inputRef: ref, onClick: handleClick });
|
|
100
97
|
});
|
|
101
98
|
const formatDate = (date, showYear) => {
|
|
102
99
|
if (!date || !isValid(date))
|
|
@@ -160,7 +157,6 @@ function CustomDatePickerRange({ error, disabled, readOnly, helperText, size = '
|
|
|
160
157
|
textField: {
|
|
161
158
|
size,
|
|
162
159
|
error,
|
|
163
|
-
required: others.required,
|
|
164
160
|
disabled,
|
|
165
161
|
readOnly: !disabled && readOnly,
|
|
166
162
|
helperText,
|
package/package.json
CHANGED