@mui/x-date-pickers-pro 7.23.3 → 7.24.0

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/CHANGELOG.md CHANGED
@@ -3,6 +3,227 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## 7.24.0
7
+
8
+ _Jan 17, 2025_
9
+
10
+ We'd like to offer a big thanks to the 8 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 🔄 Data Grid [Scroll restoration](https://next.mui.com/x/react-data-grid/scrolling/#scroll-restoration)
13
+ - 🐞 Bugfixes
14
+
15
+ Special thanks go out to the community contributors who have helped make this release possible:
16
+ @lauri865, @AxharKhan.
17
+ Following are all team members who have contributed to this release:
18
+ @KenanYusuf, @arminmeh, @cherniavskii, @michelengelen, @samuelsycamore, @LukasTy.
19
+
20
+ <!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
21
+
22
+ ### Data Grid
23
+
24
+ #### `@mui/x-data-grid@7.24.0`
25
+
26
+ - [DataGrid] Fix resizing right pinned column (#16193) @KenanYusuf
27
+ - [DataGrid] Improve scrollbar deadzone with overlay scrollbars (#16212) @lauri865
28
+ - [DataGrid] Scroll restoration (#16208) @lauri865
29
+ - [DataGrid] Fix row, cell and header memoizations (#16195) @lauri865
30
+ - [l10n] Improve Urdu (ur-PK) locale (#16081) @AxharKhan
31
+
32
+ #### `@mui/x-data-grid-pro@7.24.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
33
+
34
+ Same changes as in `@mui/x-data-grid@7.24.0`, plus:
35
+
36
+ - [DataGridPro] Add test for column pinning with disabled column virtualization (#16196) @cherniavskii
37
+ - [DataGridPro] Fix width of right-pinned column group during resize (#16207) @cherniavskii
38
+
39
+ #### `@mui/x-data-grid-premium@7.24.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
40
+
41
+ Same changes as in `@mui/x-data-grid-pro@7.24.0`.
42
+
43
+ ### Date and Time Pickers
44
+
45
+ #### `@mui/x-date-pickers@7.24.0`
46
+
47
+ Internal changes.
48
+
49
+ #### `@mui/x-date-pickers-pro@7.24.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
50
+
51
+ Same changes as in `@mui/x-date-pickers@7.24.0`.
52
+
53
+ ### Charts
54
+
55
+ #### `@mui/x-charts@7.24.0`
56
+
57
+ Internal changes.
58
+
59
+ #### `@mui/x-charts-pro@7.24.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
60
+
61
+ Same changes as in `@mui/x-charts@7.24.0`.
62
+
63
+ ### Tree View
64
+
65
+ #### `@mui/x-tree-view@7.24.0`
66
+
67
+ Internal changes.
68
+
69
+ #### `@mui/x-tree-view-pro@7.24.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
70
+
71
+ Same changes as in `@mui/x-tree-view@7.24.0`.
72
+
73
+ ### Docs
74
+
75
+ - [docs] Copyedit the Data Grid cell selection page (#16213) @samuelsycamore
76
+ - [docs] Fix demo rendering issue on Codesandbox (#16129) @arminmeh
77
+
78
+ ### Core
79
+
80
+ - [core] Type all references as `RefObject` (#16125) @arminmeh
81
+ - [code-infra] Refactor `react` and `react-dom` definitions to simplify dep resolving (#16214) @LukasTy
82
+ - [infra] Improve cherry-pick action target list (#16188) @michelengelen
83
+ - [test] Fix flaky column pinning unit test (#16209) @cherniavskii
84
+
85
+ ## 7.23.6
86
+
87
+ _Jan 9, 2025_
88
+
89
+ We'd like to offer a big thanks to the 11 contributors who made this release possible. Here are some highlights ✨:
90
+
91
+ - 🌍 Add Chinese (Taiwan) (zh-TW) locale on the Date and Time Pickers
92
+ - 🌍 Improve Norwegian (nb-NO) locale on the Date and Time Pickers
93
+ - 🌍 Improve Dutch (nl-NL) locale on the Data Grid
94
+ - 🐞 Bugfixes
95
+
96
+ Special thanks go out to the community contributors who have helped make this release possible:
97
+ @josteinjhauge, @derek-0000, @nusr, @k-rajat19, @tomashauser.
98
+ Following are all team members who have contributed to this release:
99
+ @flaviendelangle, @LukasTy, @MBilalShafi, @arminmeh, @oliviertassinari, @cherniavskii.
100
+
101
+ <!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
102
+
103
+ ### Data Grid
104
+
105
+ #### `@mui/x-data-grid@7.23.6`
106
+
107
+ - [DataGrid] Improve React 19 support (#16048) @LukasTy
108
+ - [DataGrid] Add `name` attribute to selection checkboxes (#16041) @derek-0000
109
+ - [DataGrid] Fix number filter field formatting values while typing (#16068) @arminmeh
110
+ - [DataGrid] Fix select all checkbox state reset with server side data (#16039) @MBilalShafi
111
+
112
+ #### `@mui/x-data-grid-pro@7.23.6` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
113
+
114
+ Same changes as in `@mui/x-data-grid@7.23.6`.
115
+
116
+ #### `@mui/x-data-grid-premium@7.23.6` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
117
+
118
+ Same changes as in `@mui/x-data-grid-pro@7.23.6`.
119
+
120
+ ### Date and Time Pickers
121
+
122
+ #### `@mui/x-date-pickers@7.23.6`
123
+
124
+ - [pickers] Improve React 19 support (#16048) @LukasTy
125
+ - [l10n] Add Chinese (Taiwan) (zh-TW) locale (#16057) @nusr
126
+ - [l10n] Improve Norwegian (nb-NO) locale (#16083) @josteinjhauge
127
+ - [pickers] Support `date-fns-jalali` v4 (#16013) @LukasTy
128
+
129
+ #### `@mui/x-date-pickers-pro@7.23.6` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
130
+
131
+ Same changes as in `@mui/x-date-pickers@7.23.6`.
132
+
133
+ ### Charts
134
+
135
+ #### `@mui/x-charts@7.23.6`
136
+
137
+ - [charts] Improve React 19 support (#16048) @LukasTy
138
+ - [charts] Fix 301 redirection in the API documentation @oliviertassinari
139
+
140
+ #### `@mui/x-charts-pro@7.23.6` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
141
+
142
+ Same changes as in `@mui/x-charts@7.23.6`.
143
+
144
+ ### Tree View
145
+
146
+ #### `@mui/x-tree-view@7.23.6`
147
+
148
+ - [TreeView] Improve React 19 support (#16048) @LukasTy
149
+
150
+ #### `@mui/x-tree-view-pro@7.23.6` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
151
+
152
+ Same changes as in `@mui/x-tree-view@7.23.6`.
153
+
154
+ ### Docs
155
+
156
+ - [docs] Fix `EditingWithDatePickers` demo (#16047) @k-rajat19
157
+ - [docs] Fix doc warning for automatic children selection on tree view (#16037) @flaviendelangle
158
+ - [docs] Fix non-existing "adapter" property of `LocalizationProvider` (#16088) @tomashauser
159
+
160
+ ### Core
161
+
162
+ - [core] Clarify the release strategy (#16012) @MBilalShafi
163
+ - [core] Update the `release:version` docs (#16040) @cherniavskii
164
+
165
+ ## 7.23.5
166
+
167
+ _Dec 27, 2024_
168
+
169
+ Here are some highlights ✨:
170
+
171
+ - 🐞 Fix version mismatch issue in Data Grid codesandbox/stackblitz demos
172
+
173
+ <!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
174
+
175
+ ### Data Grid
176
+
177
+ #### `@mui/x-data-grid@7.23.5`
178
+
179
+ No changes since `@mui/x-data-grid@v7.23.4`.
180
+
181
+ #### `@mui/x-data-grid-pro@7.23.5` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
182
+
183
+ Same changes as in `@mui/x-data-grid@7.23.5`.
184
+
185
+ #### `@mui/x-data-grid-premium@7.23.5` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
186
+
187
+ Same changes as in `@mui/x-data-grid-pro@7.23.5`.
188
+
189
+ ## v7.23.4
190
+
191
+ _Dec 27, 2024_
192
+
193
+ We'd like to offer a big thanks to the 4 contributors who made this release possible. Here are some highlights ✨:
194
+
195
+ - 🌍 Improve Dutch (nl-NL) locale on the Data Grid
196
+ - 🐞 Bugfixes
197
+
198
+ Special thanks go out to the community contributor who has helped make this release possible:
199
+ @JoepVerkoelen.
200
+ Following are all team members who have contributed to this release:
201
+ @arminmeh, @oliviertassinari.
202
+
203
+ <!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
204
+
205
+ ### Data Grid
206
+
207
+ #### `@mui/x-data-grid@7.23.4`
208
+
209
+ - [DataGrid] Fix header filters showing clear button while empty (#15990) @k-rajat19
210
+ - [DataGrid] Replace `forwardRef` with a shim for forward compatibility (#15984) @lauri865
211
+ - [l10n] Improve Dutch (nl-NL) locale (#15920) @JoepVerkoelen
212
+
213
+ #### `@mui/x-data-grid-pro@7.23.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
214
+
215
+ Same changes as in `@mui/x-data-grid@7.23.4`.
216
+
217
+ #### `@mui/x-data-grid-premium@7.23.4` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
218
+
219
+ Same changes as in `@mui/x-data-grid-pro@7.23.4`, plus:
220
+
221
+ - [DataGridPremium] Fix column pinning with checkbox selection and row grouping (#15949) @k-rajat19
222
+
223
+ ### Docs
224
+
225
+ - [docs] Fix outdated link to handbook (#15855) @oliviertassinari
226
+
6
227
  ## 7.23.3
7
228
 
8
229
  _Dec 19, 2024_
@@ -13,12 +13,12 @@ export interface ExportedDateTimeRangePickerTabsProps extends ExportedBaseTabsPr
13
13
  * Date tab icon.
14
14
  * @default DateRangeIcon
15
15
  */
16
- dateIcon?: React.ReactElement;
16
+ dateIcon?: React.ReactElement<any>;
17
17
  /**
18
18
  * Time tab icon.
19
19
  * @default TimeIcon
20
20
  */
21
- timeIcon?: React.ReactElement;
21
+ timeIcon?: React.ReactElement<any>;
22
22
  /**
23
23
  * Override or extend the styles applied to the component.
24
24
  */
@@ -1,4 +1,3 @@
1
- import * as React from 'react';
2
1
  import { PickerSelectionState, PickerViewRenderer, TimeViewWithMeridiem, BaseClockProps, DefaultizedProps } from '@mui/x-date-pickers/internals';
3
2
  import { PickerValidDate } from '@mui/x-date-pickers/models';
4
3
  import { DateRange } from '../models';
@@ -16,5 +15,5 @@ export type DateTimeRangePickerTimeWrapperProps<TDate extends PickerValidDate, T
16
15
  /**
17
16
  * @ignore - internal component.
18
17
  */
19
- declare function DateTimeRangePickerTimeWrapper<TDate extends PickerValidDate, TView extends TimeViewWithMeridiem, TComponentProps extends DefaultizedProps<Omit<BaseClockProps<TDate, TView>, 'value' | 'defaultValue' | 'onChange'>, 'views'>>(props: DateTimeRangePickerTimeWrapperProps<TDate, TView, TComponentProps>, ref: React.Ref<HTMLDivElement>): React.ReactNode;
18
+ declare function DateTimeRangePickerTimeWrapper<TDate extends PickerValidDate, TView extends TimeViewWithMeridiem, TComponentProps extends DefaultizedProps<Omit<BaseClockProps<TDate, TView>, 'value' | 'defaultValue' | 'onChange'>, 'views'>>(props: DateTimeRangePickerTimeWrapperProps<TDate, TView, TComponentProps>): import("react").ReactNode;
20
19
  export { DateTimeRangePickerTimeWrapper };
@@ -7,7 +7,7 @@ import { calculateRangeChange } from "../internals/utils/date-range-manager.js";
7
7
  /**
8
8
  * @ignore - internal component.
9
9
  */
10
- function DateTimeRangePickerTimeWrapper(props, ref) {
10
+ function DateTimeRangePickerTimeWrapper(props) {
11
11
  const utils = useUtils();
12
12
  const {
13
13
  rangePosition,
@@ -47,7 +47,6 @@ function DateTimeRangePickerTimeWrapper(props, ref) {
47
47
  onChange(newRange, isFullRangeSelected ? 'finish' : 'partial', selectedView);
48
48
  };
49
49
  return viewRenderer(_extends({}, other, {
50
- ref,
51
50
  views,
52
51
  onViewChange,
53
52
  value: currentValue,
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # MUI X Date Pickers Pro
2
2
 
3
3
  This package is the Pro plan edition of the Date and Time Picker Components.
4
- It's part of [MUI X](https://mui.com/x/), an open-core extension of MUI Core, with advanced components.
4
+ It's part of [MUI X](https://mui.com/x/), an open-core extension of our Core libraries, with advanced components.
5
5
 
6
6
  ## Installation
7
7
 
@@ -1,3 +1,3 @@
1
1
  import { PickerValidDate } from '@mui/x-date-pickers/models';
2
2
  import { UseSingleInputDateRangeFieldProps } from './SingleInputDateRangeField.types';
3
- export declare const useSingleInputDateRangeField: <TDate extends PickerValidDate, TEnableAccessibleFieldDOMStructure extends boolean, TAllProps extends UseSingleInputDateRangeFieldProps<TDate, TEnableAccessibleFieldDOMStructure>>(inProps: TAllProps) => import("@mui/x-date-pickers/internals").UseFieldResponse<TEnableAccessibleFieldDOMStructure, Omit<TAllProps & Omit<UseSingleInputDateRangeFieldProps<TDate, TEnableAccessibleFieldDOMStructure>, keyof import("@mui/x-date-pickers/internals/hooks/defaultizedFieldProps").UseDefaultizedDateFieldBaseProps<any>> & Required<Pick<UseSingleInputDateRangeFieldProps<TDate, TEnableAccessibleFieldDOMStructure>, keyof import("@mui/x-date-pickers/internals/hooks/defaultizedFieldProps").UseDefaultizedDateFieldBaseProps<any>>>, "disabled" | "format" | "onChange" | "onError" | "defaultValue" | "value" | "readOnly" | "referenceDate" | "timezone" | "formatDensity" | "enableAccessibleFieldDOMStructure" | "selectedSections" | "onSelectedSectionsChange" | "shouldRespectLeadingZeros" | "unstableFieldRef" | "shouldDisableDate" | "shouldDisableMonth" | "shouldDisableYear" | keyof import("@mui/x-date-pickers/internals").BaseDateValidationProps<any> | "dateSeparator">>;
3
+ export declare const useSingleInputDateRangeField: <TDate extends PickerValidDate, TEnableAccessibleFieldDOMStructure extends boolean, TAllProps extends UseSingleInputDateRangeFieldProps<TDate, TEnableAccessibleFieldDOMStructure>>(inProps: TAllProps) => import("@mui/x-date-pickers/internals").UseFieldResponse<TEnableAccessibleFieldDOMStructure, Omit<TAllProps & Omit<UseSingleInputDateRangeFieldProps<TDate, TEnableAccessibleFieldDOMStructure>, keyof import("@mui/x-date-pickers/internals/hooks/defaultizedFieldProps").UseDefaultizedDateFieldBaseProps<any>> & Required<Pick<UseSingleInputDateRangeFieldProps<TDate, TEnableAccessibleFieldDOMStructure>, keyof import("@mui/x-date-pickers/internals/hooks/defaultizedFieldProps").UseDefaultizedDateFieldBaseProps<any>>>, "disabled" | "readOnly" | "value" | "defaultValue" | "onChange" | "onError" | "format" | "referenceDate" | "timezone" | "formatDensity" | "enableAccessibleFieldDOMStructure" | "selectedSections" | "onSelectedSectionsChange" | "shouldRespectLeadingZeros" | "unstableFieldRef" | "shouldDisableDate" | "shouldDisableMonth" | "shouldDisableYear" | keyof import("@mui/x-date-pickers/internals").BaseDateValidationProps<any> | "dateSeparator">>;
@@ -1,3 +1,3 @@
1
1
  import { PickerValidDate } from '@mui/x-date-pickers/models';
2
2
  import { UseSingleInputDateTimeRangeFieldProps } from './SingleInputDateTimeRangeField.types';
3
- export declare const useSingleInputDateTimeRangeField: <TDate extends PickerValidDate, TEnableAccessibleFieldDOMStructure extends boolean, TAllProps extends UseSingleInputDateTimeRangeFieldProps<TDate, TEnableAccessibleFieldDOMStructure>>(inProps: TAllProps) => import("@mui/x-date-pickers/internals").UseFieldResponse<TEnableAccessibleFieldDOMStructure, Omit<TAllProps & Omit<UseSingleInputDateTimeRangeFieldProps<TDate, TEnableAccessibleFieldDOMStructure>, keyof import("@mui/x-date-pickers/internals/hooks/defaultizedFieldProps").UseDefaultizedDateTimeFieldBaseProps<any>> & Required<Pick<UseSingleInputDateTimeRangeFieldProps<TDate, TEnableAccessibleFieldDOMStructure>, keyof import("@mui/x-date-pickers/internals/hooks/defaultizedFieldProps").UseDefaultizedDateTimeFieldBaseProps<any>>>, "disabled" | "format" | "onChange" | "onError" | "defaultValue" | "value" | "readOnly" | "referenceDate" | "timezone" | "formatDensity" | "enableAccessibleFieldDOMStructure" | "selectedSections" | "onSelectedSectionsChange" | "shouldRespectLeadingZeros" | "unstableFieldRef" | "ampm" | "disableFuture" | "maxDate" | "disablePast" | "minDate" | "minTime" | "maxTime" | "minutesStep" | "shouldDisableTime" | "disableIgnoringDatePartForTimeValidation" | "minDateTime" | "maxDateTime" | "shouldDisableDate" | "shouldDisableMonth" | "shouldDisableYear" | "dateSeparator">>;
3
+ export declare const useSingleInputDateTimeRangeField: <TDate extends PickerValidDate, TEnableAccessibleFieldDOMStructure extends boolean, TAllProps extends UseSingleInputDateTimeRangeFieldProps<TDate, TEnableAccessibleFieldDOMStructure>>(inProps: TAllProps) => import("@mui/x-date-pickers/internals").UseFieldResponse<TEnableAccessibleFieldDOMStructure, Omit<TAllProps & Omit<UseSingleInputDateTimeRangeFieldProps<TDate, TEnableAccessibleFieldDOMStructure>, keyof import("@mui/x-date-pickers/internals/hooks/defaultizedFieldProps").UseDefaultizedDateTimeFieldBaseProps<any>> & Required<Pick<UseSingleInputDateTimeRangeFieldProps<TDate, TEnableAccessibleFieldDOMStructure>, keyof import("@mui/x-date-pickers/internals/hooks/defaultizedFieldProps").UseDefaultizedDateTimeFieldBaseProps<any>>>, "disabled" | "readOnly" | "value" | "defaultValue" | "onChange" | "onError" | "format" | "referenceDate" | "timezone" | "formatDensity" | "enableAccessibleFieldDOMStructure" | "selectedSections" | "onSelectedSectionsChange" | "shouldRespectLeadingZeros" | "unstableFieldRef" | "ampm" | "disableFuture" | "maxDate" | "disablePast" | "minDate" | "minTime" | "maxTime" | "minutesStep" | "shouldDisableTime" | "disableIgnoringDatePartForTimeValidation" | "minDateTime" | "maxDateTime" | "shouldDisableDate" | "shouldDisableMonth" | "shouldDisableYear" | "dateSeparator">>;
@@ -1,3 +1,3 @@
1
1
  import { PickerValidDate } from '@mui/x-date-pickers/models';
2
2
  import { UseSingleInputTimeRangeFieldProps } from './SingleInputTimeRangeField.types';
3
- export declare const useSingleInputTimeRangeField: <TDate extends PickerValidDate, TEnableAccessibleFieldDOMStructure extends boolean, TAllProps extends UseSingleInputTimeRangeFieldProps<TDate, TEnableAccessibleFieldDOMStructure>>(inProps: TAllProps) => import("@mui/x-date-pickers/internals").UseFieldResponse<TEnableAccessibleFieldDOMStructure, Omit<TAllProps & Omit<UseSingleInputTimeRangeFieldProps<TDate, TEnableAccessibleFieldDOMStructure>, keyof import("@mui/x-date-pickers/internals/hooks/defaultizedFieldProps").UseDefaultizedTimeFieldBaseProps> & Required<Pick<UseSingleInputTimeRangeFieldProps<TDate, TEnableAccessibleFieldDOMStructure>, keyof import("@mui/x-date-pickers/internals/hooks/defaultizedFieldProps").UseDefaultizedTimeFieldBaseProps>>, "disabled" | "format" | "onChange" | "onError" | "defaultValue" | "value" | "readOnly" | "referenceDate" | "timezone" | "formatDensity" | "enableAccessibleFieldDOMStructure" | "selectedSections" | "onSelectedSectionsChange" | "shouldRespectLeadingZeros" | "unstableFieldRef" | "ampm" | keyof import("@mui/x-date-pickers/internals").BaseTimeValidationProps | keyof import("@mui/x-date-pickers/internals").TimeValidationProps<any> | "dateSeparator">>;
3
+ export declare const useSingleInputTimeRangeField: <TDate extends PickerValidDate, TEnableAccessibleFieldDOMStructure extends boolean, TAllProps extends UseSingleInputTimeRangeFieldProps<TDate, TEnableAccessibleFieldDOMStructure>>(inProps: TAllProps) => import("@mui/x-date-pickers/internals").UseFieldResponse<TEnableAccessibleFieldDOMStructure, Omit<TAllProps & Omit<UseSingleInputTimeRangeFieldProps<TDate, TEnableAccessibleFieldDOMStructure>, keyof import("@mui/x-date-pickers/internals/hooks/defaultizedFieldProps").UseDefaultizedTimeFieldBaseProps> & Required<Pick<UseSingleInputTimeRangeFieldProps<TDate, TEnableAccessibleFieldDOMStructure>, keyof import("@mui/x-date-pickers/internals/hooks/defaultizedFieldProps").UseDefaultizedTimeFieldBaseProps>>, "disabled" | "readOnly" | "value" | "defaultValue" | "onChange" | "onError" | "format" | "referenceDate" | "timezone" | "formatDensity" | "enableAccessibleFieldDOMStructure" | "selectedSections" | "onSelectedSectionsChange" | "shouldRespectLeadingZeros" | "unstableFieldRef" | "ampm" | keyof import("@mui/x-date-pickers/internals").BaseTimeValidationProps | keyof import("@mui/x-date-pickers/internals").TimeValidationProps<any> | "dateSeparator">>;
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers-pro v7.23.3
2
+ * @mui/x-date-pickers-pro v7.24.0
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -53,7 +53,7 @@ export interface UseEnrichedRangePickerFieldPropsParams<TIsSingleInput extends b
53
53
  currentView?: TView | null;
54
54
  initialView?: TView;
55
55
  onViewChange?: (view: TView) => void;
56
- startFieldRef: React.RefObject<FieldRef<RangeFieldSection>>;
57
- endFieldRef: React.RefObject<FieldRef<RangeFieldSection>>;
56
+ startFieldRef: React.RefObject<FieldRef<RangeFieldSection> | null>;
57
+ endFieldRef: React.RefObject<FieldRef<RangeFieldSection> | null>;
58
58
  }
59
59
  export declare const useEnrichedRangePickerFieldProps: <TDate extends PickerValidDate, TView extends DateOrTimeViewWithMeridiem, TEnableAccessibleFieldDOMStructure extends boolean, TError>(params: UseEnrichedRangePickerFieldPropsParams<boolean, TDate, TView, TEnableAccessibleFieldDOMStructure, TError>) => BaseMultiInputFieldProps<DateRange<TDate>, TDate, RangeFieldSection, TEnableAccessibleFieldDOMStructure, TError> | BaseSingleInputFieldProps<DateRange<TDate>, TDate, RangeFieldSection, TEnableAccessibleFieldDOMStructure, TError>;
@@ -6,16 +6,14 @@ interface UseMultiInputFieldSelectedSectionsParams extends Pick<UseFieldInternal
6
6
  unstableStartFieldRef?: React.Ref<FieldRef<RangeFieldSection>>;
7
7
  unstableEndFieldRef?: React.Ref<FieldRef<RangeFieldSection>>;
8
8
  }
9
- export declare const useMultiInputFieldSelectedSections: (params: UseMultiInputFieldSelectedSectionsParams) => {
10
- start: {
11
- unstableFieldRef: React.Ref<FieldRef<RangeFieldSection>> | undefined;
12
- selectedSections: FieldSelectedSections;
13
- onSelectedSectionsChange: (newSelectedSections: FieldSelectedSections) => void;
14
- };
15
- end: {
16
- unstableFieldRef: ((instance: FieldRef<RangeFieldSection> | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | null;
17
- selectedSections: FieldSelectedSections;
18
- onSelectedSectionsChange: (newSelectedSections: FieldSelectedSections) => void;
19
- };
20
- };
9
+ interface UseMultiInputFieldSelectedSectionsResponseItem {
10
+ unstableFieldRef?: React.Ref<FieldRef<RangeFieldSection>>;
11
+ selectedSections: FieldSelectedSections;
12
+ onSelectedSectionsChange: (newSelectedSections: FieldSelectedSections) => void;
13
+ }
14
+ interface UseMultiInputFieldSelectedSectionsResponse {
15
+ start: UseMultiInputFieldSelectedSectionsResponseItem;
16
+ end: UseMultiInputFieldSelectedSectionsResponseItem;
17
+ }
18
+ export declare const useMultiInputFieldSelectedSections: (params: UseMultiInputFieldSelectedSectionsParams) => UseMultiInputFieldSelectedSectionsResponse;
21
19
  export {};
@@ -23,4 +23,4 @@ export interface UseRangePositionResponse {
23
23
  rangePosition: RangePosition;
24
24
  onRangePositionChange: (newPosition: RangePosition) => void;
25
25
  }
26
- export declare const useRangePosition: (props: UseRangePositionProps, singleInputFieldRef?: React.RefObject<FieldRef<RangeFieldSection>>) => UseRangePositionResponse;
26
+ export declare const useRangePosition: (props: UseRangePositionProps, singleInputFieldRef?: React.RefObject<FieldRef<RangeFieldSection> | null>) => UseRangePositionResponse;
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTczNDU2NjQwMDAwMA==";
3
+ const releaseInfo = "MTczNzA2ODQwMDAwMA==";
4
4
  if (process.env.NODE_ENV !== 'production') {
5
5
  // A simple hack to set the value in the test environment (has no build step).
6
6
  // eslint-disable-next-line no-useless-concat
@@ -7,7 +7,7 @@ import { calculateRangeChange } from "../internals/utils/date-range-manager.js";
7
7
  /**
8
8
  * @ignore - internal component.
9
9
  */
10
- function DateTimeRangePickerTimeWrapper(props, ref) {
10
+ function DateTimeRangePickerTimeWrapper(props) {
11
11
  const utils = useUtils();
12
12
  const {
13
13
  rangePosition,
@@ -47,7 +47,6 @@ function DateTimeRangePickerTimeWrapper(props, ref) {
47
47
  onChange(newRange, isFullRangeSelected ? 'finish' : 'partial', selectedView);
48
48
  };
49
49
  return viewRenderer(_extends({}, other, {
50
- ref,
51
50
  views,
52
51
  onViewChange,
53
52
  value: currentValue,
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers-pro v7.23.3
2
+ * @mui/x-date-pickers-pro v7.24.0
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTczNDU2NjQwMDAwMA==";
3
+ const releaseInfo = "MTczNzA2ODQwMDAwMA==";
4
4
  if (process.env.NODE_ENV !== 'production') {
5
5
  // A simple hack to set the value in the test environment (has no build step).
6
6
  // eslint-disable-next-line no-useless-concat
@@ -14,7 +14,7 @@ const _excluded = ["rangePosition", "onRangePositionChange", "viewRenderer", "va
14
14
  /**
15
15
  * @ignore - internal component.
16
16
  */
17
- function DateTimeRangePickerTimeWrapper(props, ref) {
17
+ function DateTimeRangePickerTimeWrapper(props) {
18
18
  const utils = (0, _internals.useUtils)();
19
19
  const {
20
20
  rangePosition,
@@ -54,7 +54,6 @@ function DateTimeRangePickerTimeWrapper(props, ref) {
54
54
  onChange(newRange, isFullRangeSelected ? 'finish' : 'partial', selectedView);
55
55
  };
56
56
  return viewRenderer((0, _extends2.default)({}, other, {
57
- ref,
58
57
  views,
59
58
  onViewChange,
60
59
  value: currentValue,
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers-pro v7.23.3
2
+ * @mui/x-date-pickers-pro v7.24.0
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.getReleaseInfo = void 0;
7
7
  var _utils = require("@mui/utils");
8
8
  const getReleaseInfo = () => {
9
- const releaseInfo = "MTczNDU2NjQwMDAwMA==";
9
+ const releaseInfo = "MTczNzA2ODQwMDAwMA==";
10
10
  if (process.env.NODE_ENV !== 'production') {
11
11
  // A simple hack to set the value in the test environment (has no build step).
12
12
  // eslint-disable-next-line no-useless-concat
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-date-pickers-pro",
3
- "version": "7.23.3",
3
+ "version": "7.24.0",
4
4
  "description": "The Pro plan edition of the Date and Time Picker components (MUI X).",
5
5
  "author": "MUI Team",
6
6
  "main": "./node/index.js",
@@ -37,9 +37,9 @@
37
37
  "clsx": "^2.1.1",
38
38
  "prop-types": "^15.8.1",
39
39
  "react-transition-group": "^4.4.5",
40
- "@mui/x-internals": "7.23.0",
41
- "@mui/x-date-pickers": "7.23.3",
42
- "@mui/x-license": "7.23.2"
40
+ "@mui/x-internals": "7.24.0",
41
+ "@mui/x-license": "7.24.0",
42
+ "@mui/x-date-pickers": "7.24.0"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "@emotion/react": "^11.9.0",
@@ -47,7 +47,7 @@
47
47
  "@mui/material": "^5.15.14 || ^6.0.0",
48
48
  "@mui/system": "^5.15.14 || ^6.0.0",
49
49
  "date-fns": "^2.25.0 || ^3.2.0 || ^4.0.0",
50
- "date-fns-jalali": "^2.13.0-0 || ^3.2.0-0",
50
+ "date-fns-jalali": "^2.13.0-0 || ^3.2.0-0 || ^4.0.0-0",
51
51
  "dayjs": "^1.10.7",
52
52
  "luxon": "^3.0.2",
53
53
  "moment": "^2.29.4",