@mui/x-date-pickers-pro 9.8.0 → 9.10.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.
Files changed (46) hide show
  1. package/CHANGELOG.md +230 -0
  2. package/DateRangeCalendar/DateRangeCalendar.js +13 -6
  3. package/DateRangeCalendar/DateRangeCalendar.mjs +13 -6
  4. package/DateRangeCalendar/useDragRange.d.mts +1 -1
  5. package/DateRangeCalendar/useDragRange.d.ts +1 -1
  6. package/DateRangePicker/shared.d.mts +2 -1
  7. package/DateRangePicker/shared.d.ts +2 -1
  8. package/DateRangePickerDay/DateRangePickerDay.js +2 -2
  9. package/DateRangePickerDay/DateRangePickerDay.mjs +2 -2
  10. package/DateTimeRangePicker/DateTimeRangePickerTabs.d.mts +4 -4
  11. package/DateTimeRangePicker/DateTimeRangePickerTabs.d.ts +4 -4
  12. package/DateTimeRangePicker/DateTimeRangePickerTabs.js +13 -9
  13. package/DateTimeRangePicker/DateTimeRangePickerTabs.mjs +13 -9
  14. package/DateTimeRangePicker/shared.d.mts +3 -2
  15. package/DateTimeRangePicker/shared.d.ts +3 -2
  16. package/MultiInputDateRangeField/MultiInputDateRangeField.js +1 -1
  17. package/MultiInputDateRangeField/MultiInputDateRangeField.mjs +1 -1
  18. package/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +1 -1
  19. package/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.mjs +1 -1
  20. package/MultiInputTimeRangeField/MultiInputTimeRangeField.js +1 -1
  21. package/MultiInputTimeRangeField/MultiInputTimeRangeField.mjs +1 -1
  22. package/TimeRangePicker/TimeRangePickerTabs.d.mts +4 -14
  23. package/TimeRangePicker/TimeRangePickerTabs.d.ts +4 -14
  24. package/TimeRangePicker/TimeRangePickerTabs.js +12 -8
  25. package/TimeRangePicker/TimeRangePickerTabs.mjs +12 -8
  26. package/TimeRangePicker/shared.d.mts +3 -2
  27. package/TimeRangePicker/shared.d.ts +3 -2
  28. package/dateRangeViewRenderers/dateRangeViewRenderers.d.mts +1 -1
  29. package/dateRangeViewRenderers/dateRangeViewRenderers.d.ts +1 -1
  30. package/index.js +1 -1
  31. package/index.mjs +1 -1
  32. package/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.d.mts +1 -1
  33. package/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.d.ts +1 -1
  34. package/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.js +2 -2
  35. package/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.mjs +2 -2
  36. package/internals/hooks/useMobileRangePicker/useMobileRangePicker.d.mts +1 -1
  37. package/internals/hooks/useMobileRangePicker/useMobileRangePicker.d.ts +1 -1
  38. package/internals/hooks/useMobileRangePicker/useMobileRangePicker.js +2 -2
  39. package/internals/hooks/useMobileRangePicker/useMobileRangePicker.mjs +2 -2
  40. package/internals/hooks/useStaticRangePicker/useStaticRangePicker.d.mts +1 -1
  41. package/internals/hooks/useStaticRangePicker/useStaticRangePicker.d.ts +1 -1
  42. package/internals/hooks/useStaticRangePicker/useStaticRangePicker.types.d.mts +2 -1
  43. package/internals/hooks/useStaticRangePicker/useStaticRangePicker.types.d.ts +2 -1
  44. package/internals/utils/date-fields-utils.d.mts +2 -2
  45. package/internals/utils/date-fields-utils.d.ts +2 -2
  46. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -1,5 +1,235 @@
1
1
  # Changelog
2
2
 
3
+ ## 9.10.0
4
+
5
+ _Jul 17, 2026_
6
+
7
+ We'd like to extend a big thank you to the 7 contributors who made this release possible. Here are some highlights ✨:
8
+
9
+ - 📊 Provide `dataIndex` in `LinePlot` and `AreaPlot` `onItemClick` for Charts
10
+ - ⚙️ Allow opt-in `data-*` attributes on `slotProps`. [Read more](https://mui.com/x/common-concepts/custom-components/#passing-data-attributes-to-slots)
11
+ - 🐞 Bugfixes
12
+ - 📚 Documentation improvements
13
+
14
+ Special thanks go out to these community members for their valuable contributions:
15
+ @Anexus5919, @mustafajw07
16
+
17
+ The following team members contributed to this release:
18
+ @brijeshb42, @Janpot, @JCQuintas, @LukasTy, @noraleonte
19
+
20
+ ### Data Grid
21
+
22
+ #### `@mui/x-data-grid@9.10.0`
23
+
24
+ Internal changes.
25
+
26
+ #### `@mui/x-data-grid-pro@9.10.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
27
+
28
+ Same changes as in `@mui/x-data-grid@9.10.0`.
29
+
30
+ #### `@mui/x-data-grid-premium@9.10.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
31
+
32
+ Same changes as in `@mui/x-data-grid-pro@9.10.0`.
33
+
34
+ ### Date and Time Pickers
35
+
36
+ #### `@mui/x-date-pickers@9.10.0`
37
+
38
+ Internal changes.
39
+
40
+ #### `@mui/x-date-pickers-pro@9.10.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
41
+
42
+ Same changes as in `@mui/x-date-pickers@9.10.0`.
43
+
44
+ ### Charts
45
+
46
+ #### `@mui/x-charts@9.10.0`
47
+
48
+ - [charts] Provide `dataIndex` in `LinePlot` and `AreaPlot` `onItemClick` (#23144) @JCQuintas
49
+
50
+ #### `@mui/x-charts-pro@9.10.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
51
+
52
+ Same changes as in `@mui/x-charts@9.10.0`.
53
+
54
+ #### `@mui/x-charts-premium@9.10.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
55
+
56
+ Same changes as in `@mui/x-charts-pro@9.10.0`.
57
+
58
+ ### Tree View
59
+
60
+ #### `@mui/x-tree-view@9.10.0`
61
+
62
+ Internal changes.
63
+
64
+ #### `@mui/x-tree-view-pro@9.10.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
65
+
66
+ Same changes as in `@mui/x-tree-view@9.10.0`, plus:
67
+
68
+ - [tree-view] Fix pre-loaded items not caching (#23155) @noraleonte
69
+
70
+ ### Scheduler
71
+
72
+ #### `@mui/x-scheduler@9.0.0-beta.6`
73
+
74
+ - [scheduler] Carry custom event data through the edit dialog submit (#22874) @Anexus5919
75
+ - [scheduler] Support array values for `CalendarEvent.resource` (#23109) @mustafajw07
76
+
77
+ #### `@mui/x-scheduler-premium@9.0.0-beta.6` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
78
+
79
+ Same changes as in `@mui/x-scheduler@9.0.0-beta.6`.
80
+
81
+ ### Chat
82
+
83
+ #### `@mui/x-chat@9.0.0-alpha.14`
84
+
85
+ - [chat] Reuse `resolveComponentProps` from `@mui/utils` (#23095) @LukasTy
86
+
87
+ #### `@mui/x-chat-headless@9.0.0-alpha.14`
88
+
89
+ Internal changes.
90
+
91
+ ### Codemod
92
+
93
+ #### `@mui/x-codemod@9.10.0`
94
+
95
+ Internal changes.
96
+
97
+ ### Docs
98
+
99
+ - [docs] Fix bugs on Scheduler overview page (#23147) @noraleonte
100
+
101
+ ### Core
102
+
103
+ - [code-infra] Fix changelog dependency exclusion and l10n routing (#23112) @LukasTy
104
+ - [code-infra] Port codebase to use `tsgo` (#22826) @brijeshb42
105
+ - [code-infra] Reduce `release:build` concurrency to mitigate `tsgo` OOM kills (#23139) @LukasTy
106
+ - [core] Allow opt-in `data-*` attributes on `slotProps` (#22128) @LukasTy
107
+
108
+ ### Miscellaneous
109
+
110
+ - [core] Ignore `code-infra-renovate[bot]` commits in changelog (#23153) @Janpot
111
+ - [website] Fix broken `ChatBox` API link (#23149) @brijeshb42
112
+ - [test] Fix WebGL benchmark timeout on CI (#23142) @JCQuintas
113
+
114
+ ## 9.9.0
115
+
116
+ _Jul 9, 2026_
117
+
118
+ We'd like to extend a big thank you to the 11 contributors who made this release possible. Here are some highlights ✨:
119
+
120
+ - 📊 [Data sampling](https://mui.com/x/react-charts/performance/#sampling) for better performance with large bar and line charts
121
+ - 🗺️ [Maps zoom support](https://mui.com/x/react-charts/map/#zoom)
122
+ - ☑️ Support [applying filters on demand](https://mui.com/x/react-data-grid/filtering/customization/#apply-filters-on-demand) in the Data Grid
123
+ - 🐞 Bugfixes
124
+ - 📚 Documentation improvements
125
+
126
+ Special thanks go out to these community members for their valuable contributions:
127
+ @mustafajw07, @sebastianfrey
128
+
129
+ The following team members contributed to this release:
130
+ @aemartos, @alexfauquette, @brijeshb42, @hasdfa, @Janpot, @JCQuintas, @LukasTy, @rita-codes, @sai6855
131
+
132
+ ### Data Grid
133
+
134
+ #### `@mui/x-data-grid@9.9.0`
135
+
136
+ - [DataGrid] Add `dataSourceKeepPreviousData` prop (#22554) @LukasTy
137
+ - [DataGrid] Add controlled filter panel for applying filters on demand (#23023) @sebastianfrey
138
+
139
+ #### `@mui/x-data-grid-pro@9.9.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
140
+
141
+ Same changes as in `@mui/x-data-grid@9.9.0`.
142
+
143
+ #### `@mui/x-data-grid-premium@9.9.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
144
+
145
+ Same changes as in `@mui/x-data-grid-pro@9.9.0`.
146
+
147
+ ### Date and Time Pickers
148
+
149
+ #### `@mui/x-date-pickers@9.9.0`
150
+
151
+ Internal changes.
152
+
153
+ #### `@mui/x-date-pickers-pro@9.9.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
154
+
155
+ Same changes as in `@mui/x-date-pickers@9.9.0`, plus:
156
+
157
+ - [DateRangeCalendar] Avoid unnecessary month switch when the value is already visible (#22996) @LukasTy
158
+
159
+ ### Charts
160
+
161
+ #### `@mui/x-charts@9.9.0`
162
+
163
+ - [charts] Optimize and de-duplicate sampled axis-highlight band lookup (#23052) @JCQuintas
164
+ - [charts] Unify tooltip item position getter and selector into a single selector API (#23041) @alexfauquette
165
+ - [charts] Fix impossible condition in axis text angle warning (#23102) @sai6855
166
+
167
+ #### `@mui/x-charts-pro@9.9.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
168
+
169
+ Same changes as in `@mui/x-charts@9.9.0`, plus:
170
+
171
+ - [charts-pro] Add data sampling for large bar and line charts (#22830) @JCQuintas
172
+ - [charts-pro] Allow sampling on non-zoomable charts (#23051) @JCQuintas
173
+
174
+ #### `@mui/x-charts-premium@9.9.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
175
+
176
+ #### Breaking changes
177
+
178
+ The API of the `Unstable_ChartsGeoDataProviderPremium` got modified.
179
+ Props `scale`, `rotation`, and `translation` are replaced by props `view` and `initialView`.
180
+ Same behavior can be obtained with `view.zoomLevel`, `view.center`, and `view.translation`.
181
+ See the [zoom view section](https://mui.com/x/react-charts/map/#control) for detailed information
182
+
183
+ Same changes as in `@mui/x-charts-pro@9.9.0`, plus:
184
+
185
+ - [charts-premium] Maps zoom support (#22709) @alexfauquette
186
+
187
+ ### Tree View
188
+
189
+ #### `@mui/x-tree-view@9.9.0`
190
+
191
+ Internal changes.
192
+
193
+ #### `@mui/x-tree-view-pro@9.9.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
194
+
195
+ Same changes as in `@mui/x-tree-view@9.9.0`.
196
+
197
+ ### Scheduler
198
+
199
+ #### `@mui/x-scheduler@9.0.0-beta.5`
200
+
201
+ - [scheduler] Introduce event resource helper utilities (#23022) @mustafajw07
202
+ - [scheduler] Preserve multi-day event continuity across overflow (#22797) @mustafajw07
203
+
204
+ #### `@mui/x-scheduler-premium@9.0.0-beta.5` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
205
+
206
+ Same changes as in `@mui/x-scheduler@9.0.0-beta.5`.
207
+
208
+ ### Codemod
209
+
210
+ #### `@mui/x-codemod@9.9.0`
211
+
212
+ Internal changes.
213
+
214
+ ### Docs
215
+
216
+ - [docs] Fix broken social preview image on shared docs links (#23055) @sai6855
217
+ - [docs] Review and clean up react-chat docs demos & gallery; fix actions-bar layout (#22993) @hasdfa
218
+ - [docs] Update the Pickers recommended date library bundle sizes (#23087) @LukasTy
219
+
220
+ ### Core
221
+
222
+ - [mcp] Add `@mui/mcp` server and `@mui/x-agent-tools`. See the [README](https://github.com/mui/mui-x/blob/master/packages/mcp/README.md) for setup (#22947) @aemartos
223
+ - [code-infra] Avoid OOM in the Netlify docs build and CircleCI lint step (#23086) @LukasTy
224
+ - [code-infra] Group `@atlaskit/pragmatic-drag-and-drop` renovate updates (#23105) @LukasTy
225
+ - [code-infra] Validate npm publishing through dry run (#23038) @brijeshb42
226
+ - [docs-infra] Enable `webpackBuildWorker` to bound docs build memory (#23100) @Janpot
227
+
228
+ ### Miscellaneous
229
+
230
+ - [test] Fix flaky "should render only the pageSize" Data Grid virtualization test (#23090) @LukasTy
231
+ - [test] Track `@mui/x-chat` bundle size via native expand (#23049) @Janpot
232
+
3
233
  ## 9.8.0
4
234
 
5
235
  _Jul 2, 2026_
@@ -37,8 +37,8 @@ var _jsxRuntime = require("react/jsx-runtime");
37
37
  const _excluded = ["value", "defaultValue", "referenceDate", "onChange", "className", "classes", "disableFuture", "disablePast", "minDate", "maxDate", "shouldDisableDate", "reduceAnimations", "onMonthChange", "rangePosition", "defaultRangePosition", "onRangePositionChange", "calendars", "currentMonthCalendarPosition", "slots", "slotProps", "loading", "renderLoading", "disableHighlightToday", "focusedView", "onFocusedViewChange", "readOnly", "disabled", "showDaysOutsideCurrentMonth", "dayOfWeekFormatter", "disableAutoMonthSwitching", "autoFocus", "fixedWeekNumber", "disableDragEditing", "displayWeekNumber", "timezone", "availableRangePositions", "views", "view", "openTo", "onViewChange"],
38
38
  _excluded2 = ["isDragging", "rangeDragDay", "draggingDatePosition"];
39
39
  const packageInfo = {
40
- releaseDate: "MTc4Mjk1MDQwMDAwMA==",
41
- version: "9.8.0",
40
+ releaseDate: "MTc4NDI0NjQwMDAwMA==",
41
+ version: "9.10.0",
42
42
  name: 'x-date-pickers-pro'
43
43
  };
44
44
  const DateRangeCalendarRoot = (0, _styles.styled)('div', {
@@ -348,10 +348,17 @@ const DateRangeCalendar = exports.DateRangeCalendar = /*#__PURE__*/React.forward
348
348
  return;
349
349
  }
350
350
  const displayingMonthRange = calendars - currentMonthCalendarPosition;
351
- // Use absolute months (year * 12 + month) so the comparison stays correct across year boundaries.
352
- const currentMonthNumber = adapter.getYear(calendarState.currentMonth) * 12 + adapter.getMonth(calendarState.currentMonth);
353
- const requestedMonthNumber = adapter.getYear(date) * 12 + adapter.getMonth(date);
354
- if (requestedMonthNumber < currentMonthNumber || requestedMonthNumber > currentMonthNumber + displayingMonthRange) {
351
+
352
+ // Compare absolute month indices (year * 12 + month). This is time-insensitive (unlike a
353
+ // date range check) and stays correct across year boundaries. The visible window spans the
354
+ // `currentMonthCalendarPosition - 1` calendars rendered before the current month and the
355
+ // `calendars - currentMonthCalendarPosition` rendered after it.
356
+ // See https://github.com/mui/mui-x/issues/22980
357
+ const currentMonthIndex = adapter.getYear(calendarState.currentMonth) * 12 + adapter.getMonth(calendarState.currentMonth);
358
+ const requestedMonthIndex = adapter.getYear(date) * 12 + adapter.getMonth(date);
359
+ const firstVisibleMonthIndex = currentMonthIndex - (currentMonthCalendarPosition - 1);
360
+ const lastVisibleMonthIndex = currentMonthIndex + displayingMonthRange;
361
+ if (requestedMonthIndex < firstVisibleMonthIndex || requestedMonthIndex > lastVisibleMonthIndex) {
355
362
  const newMonth = rangePosition === 'start' ? date :
356
363
  // If need to focus end, scroll to the state when "end" is displaying in the last calendar
357
364
  adapter.addMonths(date, -displayingMonthRange);
@@ -30,8 +30,8 @@ import { PickersRangeCalendarHeader } from "../PickersRangeCalendarHeader/index.
30
30
  import { useNullablePickerRangePositionContext } from "../internals/hooks/useNullablePickerRangePositionContext.mjs";
31
31
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
32
32
  const packageInfo = {
33
- releaseDate: "MTc4Mjk1MDQwMDAwMA==",
34
- version: "9.8.0",
33
+ releaseDate: "MTc4NDI0NjQwMDAwMA==",
34
+ version: "9.10.0",
35
35
  name: 'x-date-pickers-pro'
36
36
  };
37
37
  const DateRangeCalendarRoot = styled('div', {
@@ -341,10 +341,17 @@ const DateRangeCalendar = /*#__PURE__*/React.forwardRef(function DateRangeCalend
341
341
  return;
342
342
  }
343
343
  const displayingMonthRange = calendars - currentMonthCalendarPosition;
344
- // Use absolute months (year * 12 + month) so the comparison stays correct across year boundaries.
345
- const currentMonthNumber = adapter.getYear(calendarState.currentMonth) * 12 + adapter.getMonth(calendarState.currentMonth);
346
- const requestedMonthNumber = adapter.getYear(date) * 12 + adapter.getMonth(date);
347
- if (requestedMonthNumber < currentMonthNumber || requestedMonthNumber > currentMonthNumber + displayingMonthRange) {
344
+
345
+ // Compare absolute month indices (year * 12 + month). This is time-insensitive (unlike a
346
+ // date range check) and stays correct across year boundaries. The visible window spans the
347
+ // `currentMonthCalendarPosition - 1` calendars rendered before the current month and the
348
+ // `calendars - currentMonthCalendarPosition` rendered after it.
349
+ // See https://github.com/mui/mui-x/issues/22980
350
+ const currentMonthIndex = adapter.getYear(calendarState.currentMonth) * 12 + adapter.getMonth(calendarState.currentMonth);
351
+ const requestedMonthIndex = adapter.getYear(date) * 12 + adapter.getMonth(date);
352
+ const firstVisibleMonthIndex = currentMonthIndex - (currentMonthCalendarPosition - 1);
353
+ const lastVisibleMonthIndex = currentMonthIndex + displayingMonthRange;
354
+ if (requestedMonthIndex < firstVisibleMonthIndex || requestedMonthIndex > lastVisibleMonthIndex) {
348
355
  const newMonth = rangePosition === 'start' ? date :
349
356
  // If need to focus end, scroll to the state when "end" is displaying in the last calendar
350
357
  adapter.addMonths(date, -displayingMonthRange);
@@ -28,5 +28,5 @@ export declare const useDragRange: ({
28
28
  onDrop,
29
29
  dateRange,
30
30
  timezone
31
- }: Omit<UseDragRangeParams, "setRangeDragDay" | "setIsDragging">) => UseDragRangeResponse;
31
+ }: Omit<UseDragRangeParams, 'setRangeDragDay' | 'setIsDragging'>) => UseDragRangeResponse;
32
32
  export {};
@@ -28,5 +28,5 @@ export declare const useDragRange: ({
28
28
  onDrop,
29
29
  dateRange,
30
30
  timezone
31
- }: Omit<UseDragRangeParams, "setRangeDragDay" | "setIsDragging">) => UseDragRangeResponse;
31
+ }: Omit<UseDragRangeParams, 'setRangeDragDay' | 'setIsDragging'>) => UseDragRangeResponse;
32
32
  export {};
@@ -1,5 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import type { DefaultizedProps } from '@mui/x-internals/types';
3
+ import type { WithDataAttributes } from '@mui/utils/types';
3
4
  import type { LocalizedComponent } from '@mui/x-date-pickers/locales';
4
5
  import type { BasePickerInputProps, PickerViewRendererLookup, PickerRangeValue } from '@mui/x-date-pickers/internals';
5
6
  import type { DateRangeValidationError } from "../models/index.mjs";
@@ -15,7 +16,7 @@ export interface BaseDateRangePickerSlots extends DateRangeCalendarSlots {
15
16
  toolbar?: React.JSXElementConstructor<DateRangePickerToolbarProps>;
16
17
  }
17
18
  export interface BaseDateRangePickerSlotProps extends DateRangeCalendarSlotProps {
18
- toolbar?: ExportedDateRangePickerToolbarProps;
19
+ toolbar?: WithDataAttributes<ExportedDateRangePickerToolbarProps>;
19
20
  }
20
21
  export interface BaseDateRangePickerProps extends Omit<BasePickerInputProps<PickerRangeValue, 'day', DateRangeValidationError>, 'view' | 'views' | 'openTo' | 'onViewChange' | 'orientation'>, ExportedDateRangeCalendarProps {
21
22
  /**
@@ -1,5 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import type { DefaultizedProps } from '@mui/x-internals/types';
3
+ import type { WithDataAttributes } from '@mui/utils/types';
3
4
  import type { LocalizedComponent } from '@mui/x-date-pickers/locales';
4
5
  import type { BasePickerInputProps, PickerViewRendererLookup, PickerRangeValue } from '@mui/x-date-pickers/internals';
5
6
  import type { DateRangeValidationError } from "../models/index.js";
@@ -15,7 +16,7 @@ export interface BaseDateRangePickerSlots extends DateRangeCalendarSlots {
15
16
  toolbar?: React.JSXElementConstructor<DateRangePickerToolbarProps>;
16
17
  }
17
18
  export interface BaseDateRangePickerSlotProps extends DateRangeCalendarSlotProps {
18
- toolbar?: ExportedDateRangePickerToolbarProps;
19
+ toolbar?: WithDataAttributes<ExportedDateRangePickerToolbarProps>;
19
20
  }
20
21
  export interface BaseDateRangePickerProps extends Omit<BasePickerInputProps<PickerRangeValue, 'day', DateRangeValidationError>, 'view' | 'views' | 'openTo' | 'onViewChange' | 'orientation'>, ExportedDateRangeCalendarProps {
21
22
  /**
@@ -328,8 +328,8 @@ const DateRangePickerDayRaw = /*#__PURE__*/React.forwardRef(function DateRangePi
328
328
  name: 'MuiDateRangePickerDay'
329
329
  });
330
330
  (0, _internals.useLicenseVerifier)({
331
- releaseDate: "MTc4Mjk1MDQwMDAwMA==",
332
- version: "9.8.0",
331
+ releaseDate: "MTc4NDI0NjQwMDAwMA==",
332
+ version: "9.10.0",
333
333
  name: 'x-date-pickers-pro'
334
334
  });
335
335
  const adapter = (0, _hooks.usePickerAdapter)();
@@ -321,8 +321,8 @@ const DateRangePickerDayRaw = /*#__PURE__*/React.forwardRef(function DateRangePi
321
321
  name: 'MuiDateRangePickerDay'
322
322
  });
323
323
  useLicenseVerifier({
324
- releaseDate: "MTc4Mjk1MDQwMDAwMA==",
325
- version: "9.8.0",
324
+ releaseDate: "MTc4NDI0NjQwMDAwMA==",
325
+ version: "9.10.0",
326
326
  name: 'x-date-pickers-pro'
327
327
  });
328
328
  const adapter = usePickerAdapter();
@@ -23,8 +23,8 @@ export interface ExportedDateTimeRangePickerTabsProps extends ExportedBaseTabsPr
23
23
  classes?: Partial<DateTimeRangePickerTabsClasses>;
24
24
  }
25
25
  export interface DateTimeRangePickerTabsProps extends ExportedDateTimeRangePickerTabsProps {}
26
- declare const DateTimeRangePickerTabs: {
27
- (inProps: DateTimeRangePickerTabsProps): import("react/jsx-runtime").JSX.Element | null;
28
- propTypes: any;
29
- };
26
+ declare function DateTimeRangePickerTabs(inProps: DateTimeRangePickerTabsProps): React.JSX.Element | null;
27
+ declare namespace DateTimeRangePickerTabs {
28
+ var propTypes: any;
29
+ }
30
30
  export { DateTimeRangePickerTabs };
@@ -23,8 +23,8 @@ export interface ExportedDateTimeRangePickerTabsProps extends ExportedBaseTabsPr
23
23
  classes?: Partial<DateTimeRangePickerTabsClasses>;
24
24
  }
25
25
  export interface DateTimeRangePickerTabsProps extends ExportedDateTimeRangePickerTabsProps {}
26
- declare const DateTimeRangePickerTabs: {
27
- (inProps: DateTimeRangePickerTabsProps): import("react/jsx-runtime").JSX.Element | null;
28
- propTypes: any;
29
- };
26
+ declare function DateTimeRangePickerTabs(inProps: DateTimeRangePickerTabsProps): React.JSX.Element | null;
27
+ declare namespace DateTimeRangePickerTabs {
28
+ var propTypes: any;
29
+ }
30
30
  export { DateTimeRangePickerTabs };
@@ -7,6 +7,8 @@ Object.defineProperty(exports, "__esModule", {
7
7
  value: true
8
8
  });
9
9
  exports.DateTimeRangePickerTabs = void 0;
10
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
+ var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
10
12
  var React = _interopRequireWildcard(require("react"));
11
13
  var _clsx = _interopRequireDefault(require("clsx"));
12
14
  var _propTypes = _interopRequireDefault(require("prop-types"));
@@ -21,6 +23,7 @@ var _Button = _interopRequireDefault(require("@mui/material/Button"));
21
23
  var _dateTimeRangePickerTabsClasses = require("./dateTimeRangePickerTabsClasses");
22
24
  var _hooks2 = require("../hooks");
23
25
  var _jsxRuntime = require("react/jsx-runtime");
26
+ const _excluded = ["dateIcon", "timeIcon", "hidden", "className", "classes", "sx"];
24
27
  const viewToTab = (view, rangePosition) => {
25
28
  if ((0, _internals.isDatePickerView)(view)) {
26
29
  return rangePosition === 'start' ? 'start-date' : 'end-date';
@@ -73,13 +76,14 @@ const DateTimeRangePickerTabs = exports.DateTimeRangePickerTabs = function DateT
73
76
  name: 'MuiDateTimeRangePickerTabs'
74
77
  });
75
78
  const {
76
- dateIcon = /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.DateRangeIcon, {}),
77
- timeIcon = /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.TimeIcon, {}),
78
- hidden = typeof window === 'undefined' || window.innerHeight < 667,
79
- className,
80
- classes: classesProp,
81
- sx
82
- } = props;
79
+ dateIcon = /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.DateRangeIcon, {}),
80
+ timeIcon = /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.TimeIcon, {}),
81
+ hidden = typeof window === 'undefined' || window.innerHeight < 667,
82
+ className,
83
+ classes: classesProp,
84
+ sx
85
+ } = props,
86
+ other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
83
87
  const translations = (0, _hooks.usePickerTranslations)();
84
88
  const {
85
89
  ownerState
@@ -138,7 +142,7 @@ const DateTimeRangePickerTabs = exports.DateTimeRangePickerTabs = function DateT
138
142
  } else {
139
143
  startIcon = timeIcon;
140
144
  }
141
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(DateTimeRangePickerTabsRoot, {
145
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(DateTimeRangePickerTabsRoot, (0, _extends2.default)({}, other, {
142
146
  ownerState: ownerState,
143
147
  className: (0, _clsx.default)(classes.root, className),
144
148
  sx: sx,
@@ -162,7 +166,7 @@ const DateTimeRangePickerTabs = exports.DateTimeRangePickerTabs = function DateT
162
166
  }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(DateTimeRangePickerTabFiller, {
163
167
  className: classes.filler
164
168
  })]
165
- });
169
+ }));
166
170
  };
167
171
  if (process.env.NODE_ENV !== "production") DateTimeRangePickerTabs.displayName = "DateTimeRangePickerTabs";
168
172
  process.env.NODE_ENV !== "production" ? DateTimeRangePickerTabs.propTypes /* remove-proptypes */ = {
@@ -1,5 +1,8 @@
1
1
  'use client';
2
2
 
3
+ import _extends from "@babel/runtime/helpers/esm/extends";
4
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
5
+ const _excluded = ["dateIcon", "timeIcon", "hidden", "className", "classes", "sx"];
3
6
  import * as React from 'react';
4
7
  import clsx from 'clsx';
5
8
  import PropTypes from 'prop-types';
@@ -66,13 +69,14 @@ const DateTimeRangePickerTabs = function DateTimeRangePickerTabs(inProps) {
66
69
  name: 'MuiDateTimeRangePickerTabs'
67
70
  });
68
71
  const {
69
- dateIcon = /*#__PURE__*/_jsx(DateRangeIcon, {}),
70
- timeIcon = /*#__PURE__*/_jsx(TimeIcon, {}),
71
- hidden = typeof window === 'undefined' || window.innerHeight < 667,
72
- className,
73
- classes: classesProp,
74
- sx
75
- } = props;
72
+ dateIcon = /*#__PURE__*/_jsx(DateRangeIcon, {}),
73
+ timeIcon = /*#__PURE__*/_jsx(TimeIcon, {}),
74
+ hidden = typeof window === 'undefined' || window.innerHeight < 667,
75
+ className,
76
+ classes: classesProp,
77
+ sx
78
+ } = props,
79
+ other = _objectWithoutPropertiesLoose(props, _excluded);
76
80
  const translations = usePickerTranslations();
77
81
  const {
78
82
  ownerState
@@ -131,7 +135,7 @@ const DateTimeRangePickerTabs = function DateTimeRangePickerTabs(inProps) {
131
135
  } else {
132
136
  startIcon = timeIcon;
133
137
  }
134
- return /*#__PURE__*/_jsxs(DateTimeRangePickerTabsRoot, {
138
+ return /*#__PURE__*/_jsxs(DateTimeRangePickerTabsRoot, _extends({}, other, {
135
139
  ownerState: ownerState,
136
140
  className: clsx(classes.root, className),
137
141
  sx: sx,
@@ -155,7 +159,7 @@ const DateTimeRangePickerTabs = function DateTimeRangePickerTabs(inProps) {
155
159
  }) : /*#__PURE__*/_jsx(DateTimeRangePickerTabFiller, {
156
160
  className: classes.filler
157
161
  })]
158
- });
162
+ }));
159
163
  };
160
164
  if (process.env.NODE_ENV !== "production") DateTimeRangePickerTabs.displayName = "DateTimeRangePickerTabs";
161
165
  process.env.NODE_ENV !== "production" ? DateTimeRangePickerTabs.propTypes /* remove-proptypes */ = {
@@ -1,5 +1,6 @@
1
1
  import type * as React from 'react';
2
2
  import type { DefaultizedProps } from '@mui/x-internals/types';
3
+ import type { WithDataAttributes } from '@mui/utils/types';
3
4
  import type { LocalizedComponent } from '@mui/x-date-pickers/locales';
4
5
  import type { BasePickerInputProps, PickerViewRendererLookup, BaseClockProps, DigitalTimePickerProps, TimeViewWithMeridiem, UseViewsOptions, DateOrTimeViewWithMeridiem, PickerRangeValue } from '@mui/x-date-pickers/internals';
5
6
  import type { TimeViewRendererProps } from '@mui/x-date-pickers/timeViewRenderers';
@@ -28,11 +29,11 @@ export interface BaseDateTimeRangePickerSlotProps extends DateRangeCalendarSlotP
28
29
  /**
29
30
  * Props passed down to the tabs component.
30
31
  */
31
- tabs?: ExportedDateTimeRangePickerTabsProps;
32
+ tabs?: WithDataAttributes<ExportedDateTimeRangePickerTabsProps>;
32
33
  /**
33
34
  * Props passed down to the toolbar component.
34
35
  */
35
- toolbar?: ExportedDateTimeRangePickerToolbarProps;
36
+ toolbar?: WithDataAttributes<ExportedDateTimeRangePickerToolbarProps>;
36
37
  }
37
38
  type DateTimeRangePickerRenderers<TView extends DateOrTimeViewWithMeridiem> = PickerViewRendererLookup<PickerRangeValue, TView, Omit<DateRangeViewRendererProps<'day'>, 'view' | 'slots' | 'slotProps'> & Omit<TimeViewRendererProps<TimeViewWithMeridiem, BaseClockProps<TimeViewWithMeridiem>>, 'view' | 'slots' | 'slotProps'> & {
38
39
  view: TView;
@@ -1,5 +1,6 @@
1
1
  import type * as React from 'react';
2
2
  import type { DefaultizedProps } from '@mui/x-internals/types';
3
+ import type { WithDataAttributes } from '@mui/utils/types';
3
4
  import type { LocalizedComponent } from '@mui/x-date-pickers/locales';
4
5
  import type { BasePickerInputProps, PickerViewRendererLookup, BaseClockProps, DigitalTimePickerProps, TimeViewWithMeridiem, UseViewsOptions, DateOrTimeViewWithMeridiem, PickerRangeValue } from '@mui/x-date-pickers/internals';
5
6
  import type { TimeViewRendererProps } from '@mui/x-date-pickers/timeViewRenderers';
@@ -28,11 +29,11 @@ export interface BaseDateTimeRangePickerSlotProps extends DateRangeCalendarSlotP
28
29
  /**
29
30
  * Props passed down to the tabs component.
30
31
  */
31
- tabs?: ExportedDateTimeRangePickerTabsProps;
32
+ tabs?: WithDataAttributes<ExportedDateTimeRangePickerTabsProps>;
32
33
  /**
33
34
  * Props passed down to the toolbar component.
34
35
  */
35
- toolbar?: ExportedDateTimeRangePickerToolbarProps;
36
+ toolbar?: WithDataAttributes<ExportedDateTimeRangePickerToolbarProps>;
36
37
  }
37
38
  type DateTimeRangePickerRenderers<TView extends DateOrTimeViewWithMeridiem> = PickerViewRendererLookup<PickerRangeValue, TView, Omit<DateRangeViewRendererProps<'day'>, 'view' | 'slots' | 'slotProps'> & Omit<TimeViewRendererProps<TimeViewWithMeridiem, BaseClockProps<TimeViewWithMeridiem>>, 'view' | 'slots' | 'slotProps'> & {
38
39
  view: TView;
@@ -205,7 +205,7 @@ process.env.NODE_ENV !== "production" ? MultiInputDateRangeField.propTypes /* re
205
205
  /**
206
206
  * If `true`, the CSS flexbox `gap` is used instead of applying `margin` to children.
207
207
  *
208
- * While CSS `gap` removes the [known limitations](https://mui.com/joy-ui/react-stack/#limitations),
208
+ * While CSS `gap` removes the known limitations,
209
209
  * it is not fully supported in some browsers. We recommend checking https://caniuse.com/?search=flex%20gap before using this flag.
210
210
  *
211
211
  * To enable this flag globally, follow the [theme's default props](https://mui.com/material-ui/customization/theme-components/#default-props) configuration.
@@ -201,7 +201,7 @@ process.env.NODE_ENV !== "production" ? MultiInputDateRangeField.propTypes /* re
201
201
  /**
202
202
  * If `true`, the CSS flexbox `gap` is used instead of applying `margin` to children.
203
203
  *
204
- * While CSS `gap` removes the [known limitations](https://mui.com/joy-ui/react-stack/#limitations),
204
+ * While CSS `gap` removes the known limitations,
205
205
  * it is not fully supported in some browsers. We recommend checking https://caniuse.com/?search=flex%20gap before using this flag.
206
206
  *
207
207
  * To enable this flag globally, follow the [theme's default props](https://mui.com/material-ui/customization/theme-components/#default-props) configuration.
@@ -245,7 +245,7 @@ process.env.NODE_ENV !== "production" ? MultiInputDateTimeRangeField.propTypes /
245
245
  /**
246
246
  * If `true`, the CSS flexbox `gap` is used instead of applying `margin` to children.
247
247
  *
248
- * While CSS `gap` removes the [known limitations](https://mui.com/joy-ui/react-stack/#limitations),
248
+ * While CSS `gap` removes the known limitations,
249
249
  * it is not fully supported in some browsers. We recommend checking https://caniuse.com/?search=flex%20gap before using this flag.
250
250
  *
251
251
  * To enable this flag globally, follow the [theme's default props](https://mui.com/material-ui/customization/theme-components/#default-props) configuration.
@@ -241,7 +241,7 @@ process.env.NODE_ENV !== "production" ? MultiInputDateTimeRangeField.propTypes /
241
241
  /**
242
242
  * If `true`, the CSS flexbox `gap` is used instead of applying `margin` to children.
243
243
  *
244
- * While CSS `gap` removes the [known limitations](https://mui.com/joy-ui/react-stack/#limitations),
244
+ * While CSS `gap` removes the known limitations,
245
245
  * it is not fully supported in some browsers. We recommend checking https://caniuse.com/?search=flex%20gap before using this flag.
246
246
  *
247
247
  * To enable this flag globally, follow the [theme's default props](https://mui.com/material-ui/customization/theme-components/#default-props) configuration.
@@ -218,7 +218,7 @@ process.env.NODE_ENV !== "production" ? MultiInputTimeRangeField.propTypes /* re
218
218
  /**
219
219
  * If `true`, the CSS flexbox `gap` is used instead of applying `margin` to children.
220
220
  *
221
- * While CSS `gap` removes the [known limitations](https://mui.com/joy-ui/react-stack/#limitations),
221
+ * While CSS `gap` removes the known limitations,
222
222
  * it is not fully supported in some browsers. We recommend checking https://caniuse.com/?search=flex%20gap before using this flag.
223
223
  *
224
224
  * To enable this flag globally, follow the [theme's default props](https://mui.com/material-ui/customization/theme-components/#default-props) configuration.
@@ -214,7 +214,7 @@ process.env.NODE_ENV !== "production" ? MultiInputTimeRangeField.propTypes /* re
214
214
  /**
215
215
  * If `true`, the CSS flexbox `gap` is used instead of applying `margin` to children.
216
216
  *
217
- * While CSS `gap` removes the [known limitations](https://mui.com/joy-ui/react-stack/#limitations),
217
+ * While CSS `gap` removes the known limitations,
218
218
  * it is not fully supported in some browsers. We recommend checking https://caniuse.com/?search=flex%20gap before using this flag.
219
219
  *
220
220
  * To enable this flag globally, follow the [theme's default props](https://mui.com/material-ui/customization/theme-components/#default-props) configuration.
@@ -18,18 +18,8 @@ export interface ExportedTimeRangePickerTabsProps extends ExportedBaseTabsProps
18
18
  classes?: Partial<TimeRangePickerTabsClasses>;
19
19
  }
20
20
  export interface TimeRangePickerTabsProps extends ExportedTimeRangePickerTabsProps {}
21
- /**
22
- * Demos:
23
- *
24
- * - [TimeRangePicker](https://mui.com/x/react-date-pickers/time-range-picker/)
25
- * - [Custom slots and subcomponents](https://mui.com/x/react-date-pickers/custom-components/)
26
- *
27
- * API:
28
- *
29
- * - [TimeRangePickerTabs API](https://mui.com/x/api/date-pickers/time-range-picker-tabs/)
30
- */
31
- declare const TimeRangePickerTabs: {
32
- (inProps: TimeRangePickerTabsProps): import("react/jsx-runtime").JSX.Element | null;
33
- propTypes: any;
34
- };
21
+ declare function TimeRangePickerTabs(inProps: TimeRangePickerTabsProps): React.JSX.Element | null;
22
+ declare namespace TimeRangePickerTabs {
23
+ var propTypes: any;
24
+ }
35
25
  export { TimeRangePickerTabs };
@@ -18,18 +18,8 @@ export interface ExportedTimeRangePickerTabsProps extends ExportedBaseTabsProps
18
18
  classes?: Partial<TimeRangePickerTabsClasses>;
19
19
  }
20
20
  export interface TimeRangePickerTabsProps extends ExportedTimeRangePickerTabsProps {}
21
- /**
22
- * Demos:
23
- *
24
- * - [TimeRangePicker](https://mui.com/x/react-date-pickers/time-range-picker/)
25
- * - [Custom slots and subcomponents](https://mui.com/x/react-date-pickers/custom-components/)
26
- *
27
- * API:
28
- *
29
- * - [TimeRangePickerTabs API](https://mui.com/x/api/date-pickers/time-range-picker-tabs/)
30
- */
31
- declare const TimeRangePickerTabs: {
32
- (inProps: TimeRangePickerTabsProps): import("react/jsx-runtime").JSX.Element | null;
33
- propTypes: any;
34
- };
21
+ declare function TimeRangePickerTabs(inProps: TimeRangePickerTabsProps): React.JSX.Element | null;
22
+ declare namespace TimeRangePickerTabs {
23
+ var propTypes: any;
24
+ }
35
25
  export { TimeRangePickerTabs };
@@ -7,6 +7,8 @@ Object.defineProperty(exports, "__esModule", {
7
7
  value: true
8
8
  });
9
9
  exports.TimeRangePickerTabs = void 0;
10
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
+ var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
10
12
  var React = _interopRequireWildcard(require("react"));
11
13
  var _clsx = _interopRequireDefault(require("clsx"));
12
14
  var _propTypes = _interopRequireDefault(require("prop-types"));
@@ -19,6 +21,7 @@ var _hooks = require("@mui/x-date-pickers/hooks");
19
21
  var _timeRangePickerTabsClasses = require("./timeRangePickerTabsClasses");
20
22
  var _hooks2 = require("../hooks");
21
23
  var _jsxRuntime = require("react/jsx-runtime");
24
+ const _excluded = ["timeIcon", "hidden", "className", "sx", "classes"];
22
25
  const useUtilityClasses = classes => {
23
26
  const slots = {
24
27
  root: ['root'],
@@ -67,12 +70,13 @@ const TimeRangePickerTabs = exports.TimeRangePickerTabs = function TimeRangePick
67
70
  name: 'MuiTimeRangePickerTabs'
68
71
  });
69
72
  const {
70
- timeIcon = /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.TimeIcon, {}),
71
- hidden = typeof window === 'undefined' || window.innerHeight < 667,
72
- className,
73
- sx,
74
- classes: classesProp
75
- } = props;
73
+ timeIcon = /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.TimeIcon, {}),
74
+ hidden = typeof window === 'undefined' || window.innerHeight < 667,
75
+ className,
76
+ sx,
77
+ classes: classesProp
78
+ } = props,
79
+ other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
76
80
  const translations = (0, _hooks.usePickerTranslations)();
77
81
  const {
78
82
  view,
@@ -94,7 +98,7 @@ const TimeRangePickerTabs = exports.TimeRangePickerTabs = function TimeRangePick
94
98
  if (hidden) {
95
99
  return null;
96
100
  }
97
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(TimeRangePickerTabsRoot, {
101
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(TimeRangePickerTabsRoot, (0, _extends2.default)({}, other, {
98
102
  variant: "fullWidth",
99
103
  value: rangePosition,
100
104
  onChange: handleChange,
@@ -113,7 +117,7 @@ const TimeRangePickerTabs = exports.TimeRangePickerTabs = function TimeRangePick
113
117
  icon: timeIcon,
114
118
  className: classes.tab
115
119
  })]
116
- });
120
+ }));
117
121
  };
118
122
  if (process.env.NODE_ENV !== "production") TimeRangePickerTabs.displayName = "TimeRangePickerTabs";
119
123
  process.env.NODE_ENV !== "production" ? TimeRangePickerTabs.propTypes /* remove-proptypes */ = {
@@ -1,5 +1,8 @@
1
1
  'use client';
2
2
 
3
+ import _extends from "@babel/runtime/helpers/esm/extends";
4
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
5
+ const _excluded = ["timeIcon", "hidden", "className", "sx", "classes"];
3
6
  import * as React from 'react';
4
7
  import clsx from 'clsx';
5
8
  import PropTypes from 'prop-types';
@@ -60,12 +63,13 @@ const TimeRangePickerTabs = function TimeRangePickerTabs(inProps) {
60
63
  name: 'MuiTimeRangePickerTabs'
61
64
  });
62
65
  const {
63
- timeIcon = /*#__PURE__*/_jsx(TimeIcon, {}),
64
- hidden = typeof window === 'undefined' || window.innerHeight < 667,
65
- className,
66
- sx,
67
- classes: classesProp
68
- } = props;
66
+ timeIcon = /*#__PURE__*/_jsx(TimeIcon, {}),
67
+ hidden = typeof window === 'undefined' || window.innerHeight < 667,
68
+ className,
69
+ sx,
70
+ classes: classesProp
71
+ } = props,
72
+ other = _objectWithoutPropertiesLoose(props, _excluded);
69
73
  const translations = usePickerTranslations();
70
74
  const {
71
75
  view,
@@ -87,7 +91,7 @@ const TimeRangePickerTabs = function TimeRangePickerTabs(inProps) {
87
91
  if (hidden) {
88
92
  return null;
89
93
  }
90
- return /*#__PURE__*/_jsxs(TimeRangePickerTabsRoot, {
94
+ return /*#__PURE__*/_jsxs(TimeRangePickerTabsRoot, _extends({}, other, {
91
95
  variant: "fullWidth",
92
96
  value: rangePosition,
93
97
  onChange: handleChange,
@@ -106,7 +110,7 @@ const TimeRangePickerTabs = function TimeRangePickerTabs(inProps) {
106
110
  icon: timeIcon,
107
111
  className: classes.tab
108
112
  })]
109
- });
113
+ }));
110
114
  };
111
115
  if (process.env.NODE_ENV !== "production") TimeRangePickerTabs.displayName = "TimeRangePickerTabs";
112
116
  process.env.NODE_ENV !== "production" ? TimeRangePickerTabs.propTypes /* remove-proptypes */ = {
@@ -1,5 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import type { DefaultizedProps } from '@mui/x-internals/types';
3
+ import type { WithDataAttributes } from '@mui/utils/types';
3
4
  import type { LocalizedComponent } from '@mui/x-date-pickers/locales';
4
5
  import type { TimeStepOptions, TimeView } from '@mui/x-date-pickers/models';
5
6
  import type { BasePickerInputProps, PickerViewRendererLookup, BaseTimeValidationProps, BaseClockProps, ExportedBaseClockProps, TimeViewWithMeridiem, UseViewsOptions, PickerRangeValue, PickerValue } from '@mui/x-date-pickers/internals';
@@ -26,11 +27,11 @@ export interface BaseTimeRangePickerSlotProps extends TimeClockSlotProps, Digita
26
27
  /**
27
28
  * Props passed down to the tabs component.
28
29
  */
29
- tabs?: ExportedTimeRangePickerTabsProps;
30
+ tabs?: WithDataAttributes<ExportedTimeRangePickerTabsProps>;
30
31
  /**
31
32
  * Props passed down to the toolbar component.
32
33
  */
33
- toolbar?: ExportedTimeRangePickerToolbarProps;
34
+ toolbar?: WithDataAttributes<ExportedTimeRangePickerToolbarProps>;
34
35
  }
35
36
  export type TimeRangePickerRenderers = PickerViewRendererLookup<PickerValue, TimeViewWithMeridiem, TimeViewRendererProps<TimeViewWithMeridiem, BaseClockProps<TimeViewWithMeridiem>> & {
36
37
  view: TimeViewWithMeridiem;
@@ -1,5 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import type { DefaultizedProps } from '@mui/x-internals/types';
3
+ import type { WithDataAttributes } from '@mui/utils/types';
3
4
  import type { LocalizedComponent } from '@mui/x-date-pickers/locales';
4
5
  import type { TimeStepOptions, TimeView } from '@mui/x-date-pickers/models';
5
6
  import type { BasePickerInputProps, PickerViewRendererLookup, BaseTimeValidationProps, BaseClockProps, ExportedBaseClockProps, TimeViewWithMeridiem, UseViewsOptions, PickerRangeValue, PickerValue } from '@mui/x-date-pickers/internals';
@@ -26,11 +27,11 @@ export interface BaseTimeRangePickerSlotProps extends TimeClockSlotProps, Digita
26
27
  /**
27
28
  * Props passed down to the tabs component.
28
29
  */
29
- tabs?: ExportedTimeRangePickerTabsProps;
30
+ tabs?: WithDataAttributes<ExportedTimeRangePickerTabsProps>;
30
31
  /**
31
32
  * Props passed down to the toolbar component.
32
33
  */
33
- toolbar?: ExportedTimeRangePickerToolbarProps;
34
+ toolbar?: WithDataAttributes<ExportedTimeRangePickerToolbarProps>;
34
35
  }
35
36
  export type TimeRangePickerRenderers = PickerViewRendererLookup<PickerValue, TimeViewWithMeridiem, TimeViewRendererProps<TimeViewWithMeridiem, BaseClockProps<TimeViewWithMeridiem>> & {
36
37
  view: TimeViewWithMeridiem;
@@ -45,4 +45,4 @@ export declare const renderDateRangeViewCalendar: ({
45
45
  displayWeekNumber,
46
46
  timezone,
47
47
  availableRangePositions
48
- }: DateRangeViewRendererProps<"day">) => import("react/jsx-runtime").JSX.Element;
48
+ }: DateRangeViewRendererProps<'day'>) => import("react").JSX.Element;
@@ -45,4 +45,4 @@ export declare const renderDateRangeViewCalendar: ({
45
45
  displayWeekNumber,
46
46
  timezone,
47
47
  availableRangePositions
48
- }: DateRangeViewRendererProps<"day">) => import("react/jsx-runtime").JSX.Element;
48
+ }: DateRangeViewRendererProps<'day'>) => import("react").JSX.Element;
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers-pro v9.8.0
2
+ * @mui/x-date-pickers-pro v9.10.0
3
3
  *
4
4
  * @license SEE LICENSE IN LICENSE
5
5
  * This source code is licensed under the SEE LICENSE IN LICENSE license found in the
package/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers-pro v9.8.0
2
+ * @mui/x-date-pickers-pro v9.10.0
3
3
  *
4
4
  * @license SEE LICENSE IN LICENSE
5
5
  * This source code is licensed under the SEE LICENSE IN LICENSE license found in the
@@ -5,5 +5,5 @@ export declare const useDesktopRangePicker: <TView extends DateOrTimeViewWithMer
5
5
  steps,
6
6
  ...pickerParams
7
7
  }: UseDesktopRangePickerParams<TView, TExternalProps>) => {
8
- renderPicker: () => import("react/jsx-runtime").JSX.Element;
8
+ renderPicker: () => import("react").JSX.Element;
9
9
  };
@@ -5,5 +5,5 @@ export declare const useDesktopRangePicker: <TView extends DateOrTimeViewWithMer
5
5
  steps,
6
6
  ...pickerParams
7
7
  }: UseDesktopRangePickerParams<TView, TExternalProps>) => {
8
- renderPicker: () => import("react/jsx-runtime").JSX.Element;
8
+ renderPicker: () => import("react").JSX.Element;
9
9
  };
@@ -26,8 +26,8 @@ const useDesktopRangePicker = _ref => {
26
26
  } = _ref,
27
27
  pickerParams = (0, _objectWithoutPropertiesLoose2.default)(_ref, _excluded);
28
28
  (0, _internals.useLicenseVerifier)({
29
- releaseDate: "MTc4Mjk1MDQwMDAwMA==",
30
- version: "9.8.0",
29
+ releaseDate: "MTc4NDI0NjQwMDAwMA==",
30
+ version: "9.10.0",
31
31
  name: 'x-date-pickers-pro'
32
32
  });
33
33
  const {
@@ -19,8 +19,8 @@ export const useDesktopRangePicker = _ref => {
19
19
  } = _ref,
20
20
  pickerParams = _objectWithoutPropertiesLoose(_ref, _excluded);
21
21
  useLicenseVerifier({
22
- releaseDate: "MTc4Mjk1MDQwMDAwMA==",
23
- version: "9.8.0",
22
+ releaseDate: "MTc4NDI0NjQwMDAwMA==",
23
+ version: "9.10.0",
24
24
  name: 'x-date-pickers-pro'
25
25
  });
26
26
  const {
@@ -5,5 +5,5 @@ export declare const useMobileRangePicker: <TView extends DateOrTimeViewWithMeri
5
5
  steps,
6
6
  ...pickerParams
7
7
  }: UseMobileRangePickerParams<TView, TExternalProps>) => {
8
- renderPicker: () => import("react/jsx-runtime").JSX.Element;
8
+ renderPicker: () => import("react").JSX.Element;
9
9
  };
@@ -5,5 +5,5 @@ export declare const useMobileRangePicker: <TView extends DateOrTimeViewWithMeri
5
5
  steps,
6
6
  ...pickerParams
7
7
  }: UseMobileRangePickerParams<TView, TExternalProps>) => {
8
- renderPicker: () => import("react/jsx-runtime").JSX.Element;
8
+ renderPicker: () => import("react").JSX.Element;
9
9
  };
@@ -28,8 +28,8 @@ const useMobileRangePicker = _ref => {
28
28
  } = _ref,
29
29
  pickerParams = (0, _objectWithoutPropertiesLoose2.default)(_ref, _excluded);
30
30
  (0, _internals.useLicenseVerifier)({
31
- releaseDate: "MTc4Mjk1MDQwMDAwMA==",
32
- version: "9.8.0",
31
+ releaseDate: "MTc4NDI0NjQwMDAwMA==",
32
+ version: "9.10.0",
33
33
  name: 'x-date-pickers-pro'
34
34
  });
35
35
  const {
@@ -21,8 +21,8 @@ export const useMobileRangePicker = _ref => {
21
21
  } = _ref,
22
22
  pickerParams = _objectWithoutPropertiesLoose(_ref, _excluded);
23
23
  useLicenseVerifier({
24
- releaseDate: "MTc4Mjk1MDQwMDAwMA==",
25
- version: "9.8.0",
24
+ releaseDate: "MTc4NDI0NjQwMDAwMA==",
25
+ version: "9.10.0",
26
26
  name: 'x-date-pickers-pro'
27
27
  });
28
28
  const {
@@ -9,5 +9,5 @@ export declare const useStaticRangePicker: <TView extends DateOrTimeViewWithMeri
9
9
  steps,
10
10
  ...pickerParams
11
11
  }: UseStaticRangePickerParams<TView, TExternalProps>) => {
12
- renderPicker: () => import("react/jsx-runtime").JSX.Element;
12
+ renderPicker: () => import("react").JSX.Element;
13
13
  };
@@ -9,5 +9,5 @@ export declare const useStaticRangePicker: <TView extends DateOrTimeViewWithMeri
9
9
  steps,
10
10
  ...pickerParams
11
11
  }: UseStaticRangePickerParams<TView, TExternalProps>) => {
12
- renderPicker: () => import("react/jsx-runtime").JSX.Element;
12
+ renderPicker: () => import("react").JSX.Element;
13
13
  };
@@ -1,10 +1,11 @@
1
+ import type { WithDataAttributes } from '@mui/utils/types';
1
2
  import type { BasePickerProps, UsePickerParameters, ExportedBaseToolbarProps, StaticOnlyPickerProps, DateOrTimeViewWithMeridiem, PickerRangeValue } from '@mui/x-date-pickers/internals';
2
3
  import type { ExportedPickersLayoutSlots, ExportedPickersLayoutSlotProps } from '@mui/x-date-pickers/PickersLayout';
3
4
  import type { UseRangePositionProps } from "../useRangePosition.mjs";
4
5
  import type { PickerRangeStep } from "../../utils/createRangePickerStepNavigation.mjs";
5
6
  export interface UseStaticRangePickerSlots extends ExportedPickersLayoutSlots<PickerRangeValue> {}
6
7
  export interface UseStaticRangePickerSlotProps extends ExportedPickersLayoutSlotProps<PickerRangeValue> {
7
- toolbar?: ExportedBaseToolbarProps;
8
+ toolbar?: WithDataAttributes<ExportedBaseToolbarProps>;
8
9
  }
9
10
  export interface StaticRangeOnlyPickerProps extends StaticOnlyPickerProps, UseRangePositionProps {}
10
11
  export interface UseStaticRangePickerProps<TView extends DateOrTimeViewWithMeridiem, TError, TExternalProps extends UseStaticRangePickerProps<TView, any, TExternalProps>> extends BasePickerProps<PickerRangeValue, TView, TError, TExternalProps>, StaticRangeOnlyPickerProps {
@@ -1,10 +1,11 @@
1
+ import type { WithDataAttributes } from '@mui/utils/types';
1
2
  import type { BasePickerProps, UsePickerParameters, ExportedBaseToolbarProps, StaticOnlyPickerProps, DateOrTimeViewWithMeridiem, PickerRangeValue } from '@mui/x-date-pickers/internals';
2
3
  import type { ExportedPickersLayoutSlots, ExportedPickersLayoutSlotProps } from '@mui/x-date-pickers/PickersLayout';
3
4
  import type { UseRangePositionProps } from "../useRangePosition.js";
4
5
  import type { PickerRangeStep } from "../../utils/createRangePickerStepNavigation.js";
5
6
  export interface UseStaticRangePickerSlots extends ExportedPickersLayoutSlots<PickerRangeValue> {}
6
7
  export interface UseStaticRangePickerSlotProps extends ExportedPickersLayoutSlotProps<PickerRangeValue> {
7
- toolbar?: ExportedBaseToolbarProps;
8
+ toolbar?: WithDataAttributes<ExportedBaseToolbarProps>;
8
9
  }
9
10
  export interface StaticRangeOnlyPickerProps extends StaticOnlyPickerProps, UseRangePositionProps {}
10
11
  export interface UseStaticRangePickerProps<TView extends DateOrTimeViewWithMeridiem, TError, TExternalProps extends UseStaticRangePickerProps<TView, any, TExternalProps>> extends BasePickerProps<PickerRangeValue, TView, TError, TExternalProps>, StaticRangeOnlyPickerProps {
@@ -4,7 +4,6 @@ export declare const splitDateRangeSections: (sections: FieldRangeSection[]) =>
4
4
  endDate: FieldRangeSection[];
5
5
  };
6
6
  export declare const removeLastSeparator: (dateSections: FieldRangeSection[]) => (FieldRangeSection | {
7
- separator: null;
8
7
  dateName: import("@mui/x-date-pickers/internals").RangePosition;
9
8
  value: string;
10
9
  format: string;
@@ -18,7 +17,8 @@ export declare const removeLastSeparator: (dateSections: FieldRangeSection[]) =>
18
17
  startSeparator: string;
19
18
  endSeparator: string;
20
19
  isEndFormatSeparator?: boolean;
20
+ separator: null;
21
21
  })[];
22
22
  export declare function getRangeFieldType(field: React.ElementType & {
23
23
  fieldType?: 'single-input' | 'multi-input';
24
- }): "single-input" | "multi-input";
24
+ }): "multi-input" | "single-input";
@@ -4,7 +4,6 @@ export declare const splitDateRangeSections: (sections: FieldRangeSection[]) =>
4
4
  endDate: FieldRangeSection[];
5
5
  };
6
6
  export declare const removeLastSeparator: (dateSections: FieldRangeSection[]) => (FieldRangeSection | {
7
- separator: null;
8
7
  dateName: import("@mui/x-date-pickers/internals").RangePosition;
9
8
  value: string;
10
9
  format: string;
@@ -18,7 +17,8 @@ export declare const removeLastSeparator: (dateSections: FieldRangeSection[]) =>
18
17
  startSeparator: string;
19
18
  endSeparator: string;
20
19
  isEndFormatSeparator?: boolean;
20
+ separator: null;
21
21
  })[];
22
22
  export declare function getRangeFieldType(field: React.ElementType & {
23
23
  fieldType?: 'single-input' | 'multi-input';
24
- }): "single-input" | "multi-input";
24
+ }): "multi-input" | "single-input";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-date-pickers-pro",
3
- "version": "9.8.0",
3
+ "version": "9.10.0",
4
4
  "author": "MUI Team",
5
5
  "description": "The Pro plan edition of the MUI X Date and Time Picker components.",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -31,13 +31,13 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "@babel/runtime": "^7.29.7",
34
- "@mui/utils": "^9.1.1",
34
+ "@mui/utils": "^9.2.0",
35
35
  "clsx": "^2.1.1",
36
36
  "prop-types": "^15.8.1",
37
37
  "react-transition-group": "^4.4.5",
38
- "@mui/x-internals": "^9.8.0",
39
- "@mui/x-license": "^9.8.0",
40
- "@mui/x-date-pickers": "^9.8.0"
38
+ "@mui/x-date-pickers": "^9.10.0",
39
+ "@mui/x-license": "^9.10.0",
40
+ "@mui/x-internals": "^9.10.0"
41
41
  },
42
42
  "peerDependencies": {
43
43
  "@emotion/react": "^11.9.0",