@mui/x-date-pickers-pro 9.9.0 → 9.10.1
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 +217 -0
- package/DateRangeCalendar/DateRangeCalendar.js +2 -2
- package/DateRangeCalendar/DateRangeCalendar.mjs +2 -2
- package/DateRangeCalendar/useDragRange.d.mts +1 -1
- package/DateRangeCalendar/useDragRange.d.ts +1 -1
- package/DateRangePicker/shared.d.mts +2 -1
- package/DateRangePicker/shared.d.ts +2 -1
- package/DateRangePickerDay/DateRangePickerDay.js +2 -2
- package/DateRangePickerDay/DateRangePickerDay.mjs +2 -2
- package/DateTimeRangePicker/DateTimeRangePickerTabs.d.mts +4 -4
- package/DateTimeRangePicker/DateTimeRangePickerTabs.d.ts +4 -4
- package/DateTimeRangePicker/DateTimeRangePickerTabs.js +13 -9
- package/DateTimeRangePicker/DateTimeRangePickerTabs.mjs +13 -9
- package/DateTimeRangePicker/shared.d.mts +3 -2
- package/DateTimeRangePicker/shared.d.ts +3 -2
- package/TimeRangePicker/TimeRangePickerTabs.d.mts +4 -14
- package/TimeRangePicker/TimeRangePickerTabs.d.ts +4 -14
- package/TimeRangePicker/TimeRangePickerTabs.js +12 -8
- package/TimeRangePicker/TimeRangePickerTabs.mjs +12 -8
- package/TimeRangePicker/shared.d.mts +3 -2
- package/TimeRangePicker/shared.d.ts +3 -2
- package/dateRangeViewRenderers/dateRangeViewRenderers.d.mts +1 -1
- package/dateRangeViewRenderers/dateRangeViewRenderers.d.ts +1 -1
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.js +2 -2
- package/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.mjs +2 -2
- package/internals/hooks/useMobileRangePicker/useMobileRangePicker.js +2 -2
- package/internals/hooks/useMobileRangePicker/useMobileRangePicker.mjs +2 -2
- package/internals/hooks/useStaticRangePicker/useStaticRangePicker.types.d.mts +2 -1
- package/internals/hooks/useStaticRangePicker/useStaticRangePicker.types.d.ts +2 -1
- package/internals/utils/date-fields-utils.d.mts +2 -2
- package/internals/utils/date-fields-utils.d.ts +2 -2
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,222 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 9.10.1
|
|
4
|
+
|
|
5
|
+
_Jul 23, 2026_
|
|
6
|
+
|
|
7
|
+
We'd like to extend a big thank you to the 11 contributors who made this release possible. Here are some highlights ✨:
|
|
8
|
+
|
|
9
|
+
- 🦮 Improve accessibility of the Charts and Pickers components.
|
|
10
|
+
- 🐞 Bugfixes
|
|
11
|
+
- 📚 Documentation improvements
|
|
12
|
+
|
|
13
|
+
Special thanks go out to these community members for their valuable contributions:
|
|
14
|
+
@kevincorizi-sbt, @mustafajw07, @SamanPandey-in
|
|
15
|
+
|
|
16
|
+
The following team members contributed to this release:
|
|
17
|
+
@brijeshb42, @hasdfa, @JCQuintas, @LukasTy, @michelengelen, @noraleonte, @rita-codes, @silviuaavram
|
|
18
|
+
|
|
19
|
+
### Data Grid
|
|
20
|
+
|
|
21
|
+
#### `@mui/x-data-grid@9.10.1`
|
|
22
|
+
|
|
23
|
+
- [data grid] Fix `getColumn` return type not reflecting that it can return undefined (#23165) @JCQuintas
|
|
24
|
+
|
|
25
|
+
#### `@mui/x-data-grid-pro@9.10.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
26
|
+
|
|
27
|
+
Same changes as in `@mui/x-data-grid@9.10.1`.
|
|
28
|
+
|
|
29
|
+
#### `@mui/x-data-grid-premium@9.10.1` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
30
|
+
|
|
31
|
+
Same changes as in `@mui/x-data-grid-pro@9.10.1`.
|
|
32
|
+
|
|
33
|
+
### Date and Time Pickers
|
|
34
|
+
|
|
35
|
+
#### `@mui/x-date-pickers@9.10.1`
|
|
36
|
+
|
|
37
|
+
- [pickers] Fix format placeholder brightness with a start adornment (#23189) @LukasTy
|
|
38
|
+
|
|
39
|
+
#### `@mui/x-date-pickers-pro@9.10.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
40
|
+
|
|
41
|
+
Same changes as in `@mui/x-date-pickers@9.10.1`, plus:
|
|
42
|
+
|
|
43
|
+
- [DateRangePicker] Fix broken active range position underline in single input range fields (#23166) @LukasTy
|
|
44
|
+
|
|
45
|
+
### Charts
|
|
46
|
+
|
|
47
|
+
#### `@mui/x-charts@9.10.1`
|
|
48
|
+
|
|
49
|
+
- [charts] Fix pie chart disappearing when an arc spans almost the full circle (#23145) @JCQuintas
|
|
50
|
+
- [charts] Set `aria-hidden` on accessibility proxy divs at initialization (#23186) @kevincorizi-sbt
|
|
51
|
+
- [charts] Fix keyboard navigation on series with different lengths (#23182) @JCQuintas
|
|
52
|
+
- [charts] Fix out of bounds keyboard navigation (#23180) @silviuaavram
|
|
53
|
+
|
|
54
|
+
#### `@mui/x-charts-pro@9.10.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
55
|
+
|
|
56
|
+
Same changes as in `@mui/x-charts@9.10.1`, plus:
|
|
57
|
+
|
|
58
|
+
- [charts-pro] Fix highlight shifting on sampled bar charts (#23190) @noraleonte
|
|
59
|
+
- [charts-pro] Sampled band highlight falls back to single-band width for Date/object values (#23024) @SamanPandey-in
|
|
60
|
+
|
|
61
|
+
#### `@mui/x-charts-premium@9.10.1` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
62
|
+
|
|
63
|
+
Same changes as in `@mui/x-charts-pro@9.10.1`.
|
|
64
|
+
|
|
65
|
+
### Tree View
|
|
66
|
+
|
|
67
|
+
#### `@mui/x-tree-view@9.10.1`
|
|
68
|
+
|
|
69
|
+
- [TreeView] Fix selection propagation to exclude disabled items (#23012) @michelengelen
|
|
70
|
+
|
|
71
|
+
#### `@mui/x-tree-view-pro@9.10.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
72
|
+
|
|
73
|
+
Same changes as in `@mui/x-tree-view@9.10.1`.
|
|
74
|
+
|
|
75
|
+
### Scheduler
|
|
76
|
+
|
|
77
|
+
#### `@mui/x-scheduler@9.0.0-beta.7`
|
|
78
|
+
|
|
79
|
+
- [scheduler] Polish `EventCalendar` rendering for multi-resource events (#23161) @mustafajw07
|
|
80
|
+
- [scheduler] Responsive header (#22954) @noraleonte
|
|
81
|
+
|
|
82
|
+
#### `@mui/x-scheduler-premium@9.0.0-beta.7` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
83
|
+
|
|
84
|
+
Same changes as in `@mui/x-scheduler@9.0.0-beta.7`, plus:
|
|
85
|
+
|
|
86
|
+
- [scheduler-premium] Add the dependencies data model (#23117) @rita-codes
|
|
87
|
+
- [scheduler-premium] Dependencies - Render the FS arrow (#23162) @rita-codes
|
|
88
|
+
|
|
89
|
+
### Codemod
|
|
90
|
+
|
|
91
|
+
#### `@mui/x-codemod@9.10.1`
|
|
92
|
+
|
|
93
|
+
Internal changes.
|
|
94
|
+
|
|
95
|
+
### Docs
|
|
96
|
+
|
|
97
|
+
- [docs] Fix clearing, layout shift, and prop leak in Pickers demos (#23191) @LukasTy
|
|
98
|
+
|
|
99
|
+
### Core
|
|
100
|
+
|
|
101
|
+
- [code-infra] Validate working of specific code-infra canary (#23207) @brijeshb42
|
|
102
|
+
|
|
103
|
+
### Miscellaneous
|
|
104
|
+
|
|
105
|
+
- [chat] Normalize message part link URLs (#23187) @hasdfa
|
|
106
|
+
- [x-chat] Fix object URL leaks for submitted attachments (#23198) @hasdfa
|
|
107
|
+
- [internals] Make disposable types self-contained without `esnext.disposable` lib (#23164) @JCQuintas
|
|
108
|
+
|
|
109
|
+
## 9.10.0
|
|
110
|
+
|
|
111
|
+
_Jul 17, 2026_
|
|
112
|
+
|
|
113
|
+
We'd like to extend a big thank you to the 7 contributors who made this release possible. Here are some highlights ✨:
|
|
114
|
+
|
|
115
|
+
- 📊 Provide `dataIndex` in `LinePlot` and `AreaPlot` `onItemClick` for Charts
|
|
116
|
+
- ⚙️ Allow opt-in `data-*` attributes on `slotProps`. [Read more](https://mui.com/x/common-concepts/custom-components/#passing-data-attributes-to-slots)
|
|
117
|
+
- 🐞 Bugfixes
|
|
118
|
+
- 📚 Documentation improvements
|
|
119
|
+
|
|
120
|
+
Special thanks go out to these community members for their valuable contributions:
|
|
121
|
+
@Anexus5919, @mustafajw07
|
|
122
|
+
|
|
123
|
+
The following team members contributed to this release:
|
|
124
|
+
@brijeshb42, @Janpot, @JCQuintas, @LukasTy, @noraleonte
|
|
125
|
+
|
|
126
|
+
### Data Grid
|
|
127
|
+
|
|
128
|
+
#### `@mui/x-data-grid@9.10.0`
|
|
129
|
+
|
|
130
|
+
Internal changes.
|
|
131
|
+
|
|
132
|
+
#### `@mui/x-data-grid-pro@9.10.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
133
|
+
|
|
134
|
+
Same changes as in `@mui/x-data-grid@9.10.0`.
|
|
135
|
+
|
|
136
|
+
#### `@mui/x-data-grid-premium@9.10.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
137
|
+
|
|
138
|
+
Same changes as in `@mui/x-data-grid-pro@9.10.0`.
|
|
139
|
+
|
|
140
|
+
### Date and Time Pickers
|
|
141
|
+
|
|
142
|
+
#### `@mui/x-date-pickers@9.10.0`
|
|
143
|
+
|
|
144
|
+
Internal changes.
|
|
145
|
+
|
|
146
|
+
#### `@mui/x-date-pickers-pro@9.10.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
147
|
+
|
|
148
|
+
Same changes as in `@mui/x-date-pickers@9.10.0`.
|
|
149
|
+
|
|
150
|
+
### Charts
|
|
151
|
+
|
|
152
|
+
#### `@mui/x-charts@9.10.0`
|
|
153
|
+
|
|
154
|
+
- [charts] Provide `dataIndex` in `LinePlot` and `AreaPlot` `onItemClick` (#23144) @JCQuintas
|
|
155
|
+
|
|
156
|
+
#### `@mui/x-charts-pro@9.10.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
157
|
+
|
|
158
|
+
Same changes as in `@mui/x-charts@9.10.0`.
|
|
159
|
+
|
|
160
|
+
#### `@mui/x-charts-premium@9.10.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
161
|
+
|
|
162
|
+
Same changes as in `@mui/x-charts-pro@9.10.0`.
|
|
163
|
+
|
|
164
|
+
### Tree View
|
|
165
|
+
|
|
166
|
+
#### `@mui/x-tree-view@9.10.0`
|
|
167
|
+
|
|
168
|
+
Internal changes.
|
|
169
|
+
|
|
170
|
+
#### `@mui/x-tree-view-pro@9.10.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
171
|
+
|
|
172
|
+
Same changes as in `@mui/x-tree-view@9.10.0`, plus:
|
|
173
|
+
|
|
174
|
+
- [tree-view] Fix pre-loaded items not caching (#23155) @noraleonte
|
|
175
|
+
|
|
176
|
+
### Scheduler
|
|
177
|
+
|
|
178
|
+
#### `@mui/x-scheduler@9.0.0-beta.6`
|
|
179
|
+
|
|
180
|
+
- [scheduler] Carry custom event data through the edit dialog submit (#22874) @Anexus5919
|
|
181
|
+
- [scheduler] Support array values for `CalendarEvent.resource` (#23109) @mustafajw07
|
|
182
|
+
|
|
183
|
+
#### `@mui/x-scheduler-premium@9.0.0-beta.6` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
184
|
+
|
|
185
|
+
Same changes as in `@mui/x-scheduler@9.0.0-beta.6`.
|
|
186
|
+
|
|
187
|
+
### Chat
|
|
188
|
+
|
|
189
|
+
#### `@mui/x-chat@9.0.0-alpha.14`
|
|
190
|
+
|
|
191
|
+
- [chat] Reuse `resolveComponentProps` from `@mui/utils` (#23095) @LukasTy
|
|
192
|
+
|
|
193
|
+
#### `@mui/x-chat-headless@9.0.0-alpha.14`
|
|
194
|
+
|
|
195
|
+
Internal changes.
|
|
196
|
+
|
|
197
|
+
### Codemod
|
|
198
|
+
|
|
199
|
+
#### `@mui/x-codemod@9.10.0`
|
|
200
|
+
|
|
201
|
+
Internal changes.
|
|
202
|
+
|
|
203
|
+
### Docs
|
|
204
|
+
|
|
205
|
+
- [docs] Fix bugs on Scheduler overview page (#23147) @noraleonte
|
|
206
|
+
|
|
207
|
+
### Core
|
|
208
|
+
|
|
209
|
+
- [code-infra] Fix changelog dependency exclusion and l10n routing (#23112) @LukasTy
|
|
210
|
+
- [code-infra] Port codebase to use `tsgo` (#22826) @brijeshb42
|
|
211
|
+
- [code-infra] Reduce `release:build` concurrency to mitigate `tsgo` OOM kills (#23139) @LukasTy
|
|
212
|
+
- [core] Allow opt-in `data-*` attributes on `slotProps` (#22128) @LukasTy
|
|
213
|
+
|
|
214
|
+
### Miscellaneous
|
|
215
|
+
|
|
216
|
+
- [core] Ignore `code-infra-renovate[bot]` commits in changelog (#23153) @Janpot
|
|
217
|
+
- [website] Fix broken `ChatBox` API link (#23149) @brijeshb42
|
|
218
|
+
- [test] Fix WebGL benchmark timeout on CI (#23142) @JCQuintas
|
|
219
|
+
|
|
3
220
|
## 9.9.0
|
|
4
221
|
|
|
5
222
|
_Jul 9, 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: "
|
|
41
|
-
version: "9.
|
|
40
|
+
releaseDate: "MTc4NDc2NDgwMDAwMA==",
|
|
41
|
+
version: "9.10.1",
|
|
42
42
|
name: 'x-date-pickers-pro'
|
|
43
43
|
};
|
|
44
44
|
const DateRangeCalendarRoot = (0, _styles.styled)('div', {
|
|
@@ -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: "
|
|
34
|
-
version: "9.
|
|
33
|
+
releaseDate: "MTc4NDc2NDgwMDAwMA==",
|
|
34
|
+
version: "9.10.1",
|
|
35
35
|
name: 'x-date-pickers-pro'
|
|
36
36
|
};
|
|
37
37
|
const DateRangeCalendarRoot = styled('div', {
|
|
@@ -28,5 +28,5 @@ export declare const useDragRange: ({
|
|
|
28
28
|
onDrop,
|
|
29
29
|
dateRange,
|
|
30
30
|
timezone
|
|
31
|
-
}: Omit<UseDragRangeParams,
|
|
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,
|
|
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: "
|
|
332
|
-
version: "9.
|
|
331
|
+
releaseDate: "MTc4NDc2NDgwMDAwMA==",
|
|
332
|
+
version: "9.10.1",
|
|
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: "
|
|
325
|
-
version: "9.
|
|
324
|
+
releaseDate: "MTc4NDc2NDgwMDAwMA==",
|
|
325
|
+
version: "9.10.1",
|
|
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
|
|
27
|
-
|
|
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
|
|
27
|
-
|
|
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
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
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
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
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;
|
|
@@ -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
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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): React.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
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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): React.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
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
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
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
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;
|
package/index.js
CHANGED
package/index.mjs
CHANGED
|
@@ -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: "
|
|
30
|
-
version: "9.
|
|
29
|
+
releaseDate: "MTc4NDc2NDgwMDAwMA==",
|
|
30
|
+
version: "9.10.1",
|
|
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: "
|
|
23
|
-
version: "9.
|
|
22
|
+
releaseDate: "MTc4NDc2NDgwMDAwMA==",
|
|
23
|
+
version: "9.10.1",
|
|
24
24
|
name: 'x-date-pickers-pro'
|
|
25
25
|
});
|
|
26
26
|
const {
|
|
@@ -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: "
|
|
32
|
-
version: "9.
|
|
31
|
+
releaseDate: "MTc4NDc2NDgwMDAwMA==",
|
|
32
|
+
version: "9.10.1",
|
|
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: "
|
|
25
|
-
version: "9.
|
|
24
|
+
releaseDate: "MTc4NDc2NDgwMDAwMA==",
|
|
25
|
+
version: "9.10.1",
|
|
26
26
|
name: 'x-date-pickers-pro'
|
|
27
27
|
});
|
|
28
28
|
const {
|
|
@@ -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
|
-
}): "
|
|
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
|
-
}): "
|
|
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.
|
|
3
|
+
"version": "9.10.1",
|
|
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",
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
"clsx": "^2.1.1",
|
|
36
36
|
"prop-types": "^15.8.1",
|
|
37
37
|
"react-transition-group": "^4.4.5",
|
|
38
|
-
"@mui/x-
|
|
39
|
-
"@mui/x-
|
|
40
|
-
"@mui/x-internals": "^9.
|
|
38
|
+
"@mui/x-date-pickers": "^9.10.1",
|
|
39
|
+
"@mui/x-license": "^9.10.1",
|
|
40
|
+
"@mui/x-internals": "^9.10.1"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"@emotion/react": "^11.9.0",
|