@arquimedes.co/eureka-forms 3.0.52-test → 3.0.53-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.
|
@@ -128,10 +128,10 @@ const StyledDay = styled(MuiPickerDay)(({ theme }) => ({
|
|
|
128
128
|
fontWeight: 500,
|
|
129
129
|
fontSize: '0.9rem',
|
|
130
130
|
lineHeight: 'normal',
|
|
131
|
-
'&.Erk-
|
|
131
|
+
'&.Erk-MuiPickerDay-today': {
|
|
132
132
|
backgroundColor: theme.palette.primary.main + '33',
|
|
133
133
|
},
|
|
134
|
-
'&.Erk-
|
|
134
|
+
'&.Erk-MuiPickerDay-dayOutsideMonth': {
|
|
135
135
|
color: 'rgb(0,0,0,0.4)',
|
|
136
136
|
'&.Mui-selected': {
|
|
137
137
|
color: theme.palette.primary.contrastText,
|
|
@@ -171,7 +171,7 @@ function CustomDatePicker({ error, required, disabled, readOnly, helperText, siz
|
|
|
171
171
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
172
172
|
orientation: _orientation, ...others }) {
|
|
173
173
|
if (pickTime) {
|
|
174
|
-
return (_jsx(StyledDateTimePicker, { ampm: true, size: size, reduceAnimations: true, ...others, label: label, disabled: disabled, readOnly: readOnly, showDaysOutsideCurrentMonth: true, slotProps: {
|
|
174
|
+
return (_jsx(StyledDateTimePicker, { ampm: true, size: size, reduceAnimations: true, orientation: "portrait", ...others, label: label, disabled: disabled, readOnly: readOnly, showDaysOutsideCurrentMonth: true, slotProps: {
|
|
175
175
|
actionBar: {
|
|
176
176
|
actions: ['clear', 'accept'],
|
|
177
177
|
},
|
|
@@ -231,7 +231,7 @@ orientation: _orientation, ...others }) {
|
|
|
231
231
|
} }));
|
|
232
232
|
}
|
|
233
233
|
else {
|
|
234
|
-
return (_jsx(StyledDatePicker, { ...others, label: label, size: size, reduceAnimations: true, readOnly: readOnly, disabled: disabled, showDaysOutsideCurrentMonth: true, views: ['year', 'month', 'day'], slotProps: {
|
|
234
|
+
return (_jsx(StyledDatePicker, { ...others, label: label, size: size, reduceAnimations: true, orientation: "portrait", readOnly: readOnly, disabled: disabled, showDaysOutsideCurrentMonth: true, views: ['year', 'month', 'day'], slotProps: {
|
|
235
235
|
actionBar: {
|
|
236
236
|
actions: ['clear', 'accept'],
|
|
237
237
|
},
|
|
@@ -71,10 +71,10 @@ const StyledDay = styled(MuiDateRangePickerDay)(({ theme }) => ({
|
|
|
71
71
|
fontWeight: 500,
|
|
72
72
|
fontSize: '0.9rem',
|
|
73
73
|
lineHeight: 'normal',
|
|
74
|
-
'&.Erk-
|
|
74
|
+
'&.Erk-MuiDateRangePickerDay-today:not(.Erk-MuiDateRangePickerDay-rangeIntervalDayHighlight)': {
|
|
75
75
|
backgroundColor: theme.palette.primary.main + '33',
|
|
76
76
|
},
|
|
77
|
-
'&.Erk-
|
|
77
|
+
'&.Erk-MuiDateRangePickerDay-dayOutsideMonth': {
|
|
78
78
|
color: 'rgb(0,0,0,0.4)',
|
|
79
79
|
'&.Mui-selected': {
|
|
80
80
|
color: theme.palette.primary.contrastText,
|
|
@@ -84,7 +84,7 @@ const StyledDay = styled(MuiDateRangePickerDay)(({ theme }) => ({
|
|
|
84
84
|
backgroundColor: theme.palette.primary.main + '1a',
|
|
85
85
|
},
|
|
86
86
|
}));
|
|
87
|
-
const CustomRangePickerField = React.forwardRef(function CustomRangePickerField({ error, required, helperText, size = 'small', labelMargin = 5, fullWidth = true, inputRef
|
|
87
|
+
const CustomRangePickerField = React.forwardRef(function CustomRangePickerField({ error, required, helperText, size = 'small', labelMargin = 5, fullWidth = true, inputRef }, ref) {
|
|
88
88
|
const { value, fieldFormat, setOpen, disabled, readOnly, label } = usePickerContext();
|
|
89
89
|
const { displayValue, isInvalid } = useMemo(() => {
|
|
90
90
|
const [startDate, endDate] = value ?? [null, null];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arquimedes.co/eureka-forms",
|
|
3
3
|
"repository": "git://github.com/Arquimede5/Eureka-Forms.git",
|
|
4
|
-
"version":"3.0.
|
|
4
|
+
"version":"3.0.53-test",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"watch": "tsgo --noEmit --watch --project tsconfig.app.json",
|
|
7
7
|
"start": "vite",
|
|
@@ -50,10 +50,10 @@
|
|
|
50
50
|
"@eslint/eslintrc": "3.3.3",
|
|
51
51
|
"@eslint/js": "9.39.1",
|
|
52
52
|
"@faker-js/faker": "10.1.0",
|
|
53
|
-
"@mui/material": "^9.0
|
|
54
|
-
"@mui/x-data-grid-pro": "^9.
|
|
55
|
-
"@mui/x-date-pickers": "^9.
|
|
56
|
-
"@mui/x-date-pickers-pro": "^9.
|
|
53
|
+
"@mui/material": "^9.2.0",
|
|
54
|
+
"@mui/x-data-grid-pro": "^9.10.1",
|
|
55
|
+
"@mui/x-date-pickers": "^9.10.1",
|
|
56
|
+
"@mui/x-date-pickers-pro": "^9.10.1",
|
|
57
57
|
"@storybook/addon-docs": "^10.4.0",
|
|
58
58
|
"@storybook/addon-onboarding": "^10.4.0",
|
|
59
59
|
"@storybook/addon-themes": "^10.4.0",
|
|
@@ -97,8 +97,8 @@
|
|
|
97
97
|
"peerDependencies": {
|
|
98
98
|
"@emotion/react": "11.x.x",
|
|
99
99
|
"@emotion/styled": "11.x.x",
|
|
100
|
-
"@mui/material": "^9.0
|
|
101
|
-
"@mui/x-date-pickers": "^9.
|
|
100
|
+
"@mui/material": "^9.2.0",
|
|
101
|
+
"@mui/x-date-pickers": "^9.10.1",
|
|
102
102
|
"react": "18 || 19",
|
|
103
103
|
"react-dom": "18 || 19"
|
|
104
104
|
},
|