@arquimedes.co/eureka-forms 3.0.36-test → 3.0.37-test
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.
|
@@ -9,9 +9,9 @@ const StyledDateTimePicker = styled(MuiDateTimePicker, {
|
|
|
9
9
|
shouldForwardProp: (propName) => propName !== 'size',
|
|
10
10
|
})(({ disabled, readOnly, size }) => ({
|
|
11
11
|
'& .Erk-MuiInputBase-root': {
|
|
12
|
-
cursor:
|
|
12
|
+
cursor: disabled || readOnly ? 'default' : 'pointer',
|
|
13
13
|
'& input': {
|
|
14
|
-
cursor:
|
|
14
|
+
cursor: disabled || readOnly ? 'default' : 'pointer',
|
|
15
15
|
paddingRight: '0px',
|
|
16
16
|
},
|
|
17
17
|
},
|
|
@@ -36,9 +36,9 @@ const StyledDatePicker = styled(MuiDatePicker, {
|
|
|
36
36
|
shouldForwardProp: (propName) => propName !== 'size',
|
|
37
37
|
})(({ disabled, readOnly, size }) => ({
|
|
38
38
|
'& .Erk-MuiInputBase-root': {
|
|
39
|
-
cursor:
|
|
39
|
+
cursor: disabled || readOnly ? 'default' : 'pointer',
|
|
40
40
|
'& input': {
|
|
41
|
-
cursor:
|
|
41
|
+
cursor: disabled || readOnly ? 'default' : 'pointer',
|
|
42
42
|
},
|
|
43
43
|
},
|
|
44
44
|
'& .Erk-MuiInputBase-adornedEnd': {
|
|
@@ -146,7 +146,9 @@ const CustomTextField = forwardRef((props, ref) => {
|
|
|
146
146
|
};
|
|
147
147
|
return _jsx(StyledTextField, { ...props, inputRef: ref, onClick: handleClick });
|
|
148
148
|
});
|
|
149
|
-
function CustomDatePicker({ error, required, disabled, readOnly, helperText, size = 'small', labelMargin = 5, pickTime = false,
|
|
149
|
+
function CustomDatePicker({ error, required, disabled, readOnly, helperText, size = 'small', labelMargin = 5, pickTime = false,
|
|
150
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
151
|
+
orientation: _orientation, ...others }) {
|
|
150
152
|
if (pickTime) {
|
|
151
153
|
return (_jsx(StyledDateTimePicker, { ampm: true, size: size, reduceAnimations: true, ...others, disabled: disabled, readOnly: readOnly, defaultValue: required ? new Date() : undefined, showDaysOutsideCurrentMonth: true, slotProps: {
|
|
152
154
|
actionBar: {
|
package/package.json
CHANGED