@mui/x-date-pickers 8.27.2 → 8.28.4

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.
@@ -213,19 +213,7 @@ class AdapterDayjs {
213
213
  }
214
214
  };
215
215
  createSystemDate = value => {
216
- let date;
217
- if (this.hasUTCPlugin() && this.hasTimezonePlugin()) {
218
- const timezone = _dayjs.default.tz.guess();
219
- if (timezone === 'UTC') {
220
- date = (0, _dayjs.default)(value);
221
- } /* v8 ignore next 3 */else {
222
- // We can't change the system timezone in the tests
223
- date = _dayjs.default.tz(value, timezone);
224
- }
225
- } else {
226
- date = (0, _dayjs.default)(value);
227
- }
228
- return this.setLocaleToValue(date);
216
+ return this.setLocaleToValue((0, _dayjs.default)(value));
229
217
  };
230
218
  createUTCDate = value => {
231
219
  /* v8 ignore next 3 */
package/CHANGELOG.md CHANGED
@@ -5,6 +5,420 @@
5
5
  All notable changes to this project will be documented in this file.
6
6
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
7
7
 
8
+ ## 8.28.4
9
+
10
+ _Apr 27, 2026_
11
+
12
+ We'd like to extend a big thank you to the 3 contributors who made this release possible. Here are some highlights ✨:
13
+
14
+ - 🐞 Bugfixes
15
+
16
+ Special thanks go out to these community members for their valuable contributions:
17
+ @supunsathsara
18
+
19
+ The following team members contributed to this release:
20
+ @LukasTy, @michelengelen
21
+
22
+ ### Date and Time Pickers
23
+
24
+ #### `@mui/x-date-pickers@8.28.4`
25
+
26
+ - [pickers] Fix `DateRangeCalendar` drag with `AdapterDayjs` plain-constructor values (#22170) @LukasTy
27
+ - [pickers] Fix disabled state not overriding error border color (#22186) @supunsathsara
28
+ - [pickers] Use `convertToMeridiem` utility in `transferDateSectionValue` (#22132) @michelengelen
29
+
30
+ #### `@mui/x-date-pickers-pro@8.28.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
31
+
32
+ Same changes as in `@mui/x-date-pickers@8.28.4`.
33
+
34
+ ### Docs
35
+
36
+ - [docs] Remove obsolete v7 deprecation warning for `dayOfWeekFormatter` (#22120) @LukasTy
37
+ - [docs] Use mui.com for broken links checker known targets (#22171) @LukasTy
38
+
39
+ ## 8.28.3
40
+
41
+ _Apr 15, 2026_
42
+
43
+ We'd like to extend a big thank you to the 6 contributors who made this release possible. Here are some highlights ✨:
44
+
45
+ - 🐞 Bugfixes
46
+
47
+ Special thanks go out to this community member for their valuable contribution:
48
+ @nk10nikhil
49
+
50
+ The following team members contributed to this release:
51
+ @flaviendelangle, @LukasTy, @MBilalShafi, @michelengelen, @sai6855
52
+
53
+ ### Data Grid
54
+
55
+ #### `@mui/x-data-grid@8.28.2`
56
+
57
+ Internal changes.
58
+
59
+ #### `@mui/x-data-grid-pro@8.28.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
60
+
61
+ Same changes as in `@mui/x-data-grid@8.28.2`, plus:
62
+
63
+ - [DataGridPro] Improve trigger for nested row reordering (#21996) @MBilalShafi
64
+
65
+ #### `@mui/x-data-grid-premium@8.28.2` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
66
+
67
+ Same changes as in `@mui/x-data-grid-pro@8.28.2`.
68
+
69
+ ### Date and Time Pickers
70
+
71
+ #### `@mui/x-date-pickers@8.28.3`
72
+
73
+ - [pickers] Ensure correct `display` property on Day component (#21980) @LukasTy
74
+
75
+ #### `@mui/x-date-pickers-pro@8.28.3` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
76
+
77
+ Same changes as in `@mui/x-date-pickers@8.28.3`.
78
+
79
+ ### Charts
80
+
81
+ #### `@mui/x-charts@8.28.2`
82
+
83
+ - [charts] Add missing export for `ChartsBrushOverlay` (#21993) (#22008) @nk10nikhil
84
+
85
+ #### `@mui/x-charts-pro@8.28.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
86
+
87
+ Same changes as in `@mui/x-charts@8.28.2`.
88
+
89
+ #### `@mui/x-charts-premium@8.28.2` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
90
+
91
+ Same changes as in `@mui/x-charts-pro@8.28.2`.
92
+
93
+ ### Tree View
94
+
95
+ #### `@mui/x-tree-view@8.28.3`
96
+
97
+ - [tree view] Move `lazyLoadedItems` initialization to state initializer (#22087) @michelengelen
98
+
99
+ #### `@mui/x-tree-view-pro@8.28.3` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
100
+
101
+ Same changes as in `@mui/x-tree-view@8.28.3`, plus:
102
+
103
+ - [RichTreeViewPro] Allow to auto-expand lazy loaded items (#21957) @flaviendelangle
104
+
105
+ ### Docs
106
+
107
+ - [docs] Fix `TreeDataFullExample` data grid demo crash (#22007) @sai6855
108
+
109
+ ### Miscellaneous
110
+
111
+ - [core] Post v9 stable updates (#22035) @LukasTy
112
+
113
+ ## 8.28.2
114
+
115
+ _Apr 1, 2026_
116
+
117
+ We'd like to extend a big thank you to the 4 contributors who made this release possible.
118
+
119
+ Special thanks go out to this community member for their valuable contribution:
120
+ @mixelburg, @sibananda485
121
+
122
+ The following team members contributed to this release:
123
+ @dav-is, @JCQuintas
124
+
125
+ ### Data Grid
126
+
127
+ #### `@mui/x-data-grid@8.28.2`
128
+
129
+ - [DataGrid] Export `GridColumnUnsortedIconProps` for custom column icon slots (#21898) @mixelburg
130
+
131
+ #### `@mui/x-data-grid-pro@8.28.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
132
+
133
+ Same changes as in `@mui/x-data-grid@8.28.2`.
134
+
135
+ #### `@mui/x-data-grid-premium@8.28.2` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
136
+
137
+ Same changes as in `@mui/x-data-grid-pro@8.28.2`, plus:
138
+
139
+ - [DataGridPremium] Fix clipboard paste issue in portal (#21949) @sibananda485
140
+
141
+ ### Charts
142
+
143
+ #### `@mui/x-charts@8.28.2`
144
+
145
+ - [charts] Fix zoom slider preview with discard filter mode (#21906) @JCQuintas
146
+
147
+ #### `@mui/x-charts-pro@8.28.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
148
+
149
+ Same changes as in `@mui/x-charts@8.28.2`.
150
+
151
+ #### `@mui/x-charts-premium@8.28.2` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
152
+
153
+ Same changes as in `@mui/x-charts-pro@8.28.2`.
154
+
155
+ ### Docs
156
+
157
+ - [docs] Fix JSDOM → jsdom casing (#21908) @JCQuintas
158
+
159
+ ### Core
160
+
161
+ - [docs-infra] Set `SEARCH_INDEX` Env for v8 (#21875) @dav-is
162
+
163
+ ## 8.28.1
164
+
165
+ _Mar 26, 2026_
166
+
167
+ We'd like to extend a big thank you to the 2 contributors who made this release possible.
168
+
169
+ The following team members contributed to this release:
170
+ @arminmeh, @cherniavskii
171
+
172
+ ### Data Grid
173
+
174
+ #### `@mui/x-data-grid@8.28.1`
175
+
176
+ - [DataGrid] Prevent repeated `hasScrollbar` state updates (#21847) @arminmeh
177
+
178
+ #### `@mui/x-data-grid-pro@8.28.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
179
+
180
+ Same changes as in `@mui/x-data-grid@8.28.1`, plus:
181
+
182
+ - [DataGridPro] `fetchRows()` API's default `start` and `end` params based on scroll position with lazy loading (#21811) @arminmeh
183
+
184
+ #### `@mui/x-data-grid-premium@8.28.1` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
185
+
186
+ Same changes as in `@mui/x-data-grid-pro@8.28.1`.
187
+
188
+ ### Core
189
+
190
+ - [internal] Remove headless data grid packages (#21848) @cherniavskii
191
+
192
+ ## 8.28.0
193
+
194
+ _Mar 19, 2026_
195
+
196
+ We'd like to extend a big thank you to the 5 contributors who made this release possible.
197
+
198
+ The following team members contributed to this release:
199
+ @alexfauquette, @brijeshb42, @Janpot, @JCQuintas, @sai6855
200
+
201
+ ### Data Grid
202
+
203
+ #### `@mui/x-data-grid@8.28.0`
204
+
205
+ - [DataGrid] Move `elementOverrides` to constants and remove duplicates (@sai6855) (#21752) @github-actions[bot]
206
+
207
+ #### `@mui/x-data-grid-pro@8.28.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
208
+
209
+ Same changes as in `@mui/x-data-grid@8.28.0`.
210
+
211
+ #### `@mui/x-data-grid-premium@8.28.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
212
+
213
+ Same changes as in `@mui/x-data-grid-pro@8.28.0`.
214
+
215
+ ### Date and Time Pickers
216
+
217
+ #### `@mui/x-date-pickers@8.27.2`
218
+
219
+ Internal changes.
220
+
221
+ #### `@mui/x-date-pickers-pro@8.27.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
222
+
223
+ Same changes as in `@mui/x-date-pickers@8.27.2`.
224
+
225
+ ### Charts
226
+
227
+ #### `@mui/x-charts@8.28.0`
228
+
229
+ - [charts] Improve deprecation warnings (#21760) (#21767) @alexfauquette
230
+ - [charts] Refactor `FunnelChart` classes structure (@JCQuintas) (#21763) @github-actions[bot]
231
+ - [charts] Refactor `Heatmap` classes structure (#21653) (#21745) @JCQuintas
232
+ - [charts] Refactor `PieChart` classes structure (@JCQuintas) (#21715) @github-actions[bot]
233
+ - [charts] Refactor `RadarChart` classes structure (@JCQuintas) (#21730) @github-actions[bot]
234
+ - [charts] Refactor `SankeyChart` classes structure (#21654) (#21726) @JCQuintas
235
+ - [charts] Rename `data-series-id` by `data-series` (#21761) (#21772) @alexfauquette
236
+
237
+ #### `@mui/x-charts-pro@8.28.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
238
+
239
+ Same changes as in `@mui/x-charts@8.28.0`, plus:
240
+
241
+ - [charts-pro] Allow `brush` interaction to accept `requiredKeys/pointerMode` (#21723) @JCQuintas
242
+
243
+ #### `@mui/x-charts-premium@8.28.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
244
+
245
+ Same changes as in `@mui/x-charts-pro@8.28.0`.
246
+
247
+ ### Tree View
248
+
249
+ #### `@mui/x-tree-view@8.27.2`
250
+
251
+ Internal changes.
252
+
253
+ #### `@mui/x-tree-view-pro@8.27.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
254
+
255
+ Same changes as in `@mui/x-tree-view@8.27.2`.
256
+
257
+ ### Codemod
258
+
259
+ #### `@mui/x-codemod@8.27.0`
260
+
261
+ Internal changes.
262
+
263
+ ### Core
264
+
265
+ - [code-infra] Fix contributor generation in changelog (#21712) @brijeshb42
266
+ - [code-infra] Install pkg-pr-new (#21778) @Janpot
267
+
268
+ ## 8.27.5
269
+
270
+ _Mar 11, 2026_
271
+
272
+ We'd like to extend a big thank you to the 7 contributors who made this release possible. Here are some highlights ✨:
273
+
274
+ - 🐞 Bugfixes
275
+
276
+ The following team members contributed to this release:
277
+ @bernardobelchior, @JCQuintas, @MBilalShafi, @michelengelen, @mj12albert, @sai6855, @siriwatknp
278
+
279
+ ### Data Grid
280
+
281
+ #### `@mui/x-data-grid@8.27.5`
282
+
283
+ - [DataGrid] Fix crash when `rows` and `rowModesModel` are updated simultaneously (#21684) @michelengelen
284
+ - [DataGrid] Forward rest props in `GridFilterInputMultipleValue` (#21444) @siriwatknp
285
+ - [DataGrid] Remove double rtl inversion logic for columns pinning (#21443) @siriwatknp
286
+ - [DataGrid] Add missing `resizablePanelHandle` classes to `gridClasses` object (#21632) @sai6855
287
+ - [DataGrid] Refactor `headerAlign` style calls (#21633) @sai6855
288
+ - [DataGrid] Fix keyboard navigation with single-row checkbox selection (#21529) @mj12albert
289
+
290
+ #### `@mui/x-data-grid-pro@8.27.5` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
291
+
292
+ Same changes as in `@mui/x-data-grid@8.27.5`, plus:
293
+
294
+ - [DataGridPro] Add `role="presentation"` to detail panel toggle header content (#21691) @michelengelen
295
+ - [DataGridPro] Fix sorting not reflected in nested server-side data (#21641) @MBilalShafi
296
+
297
+ #### `@mui/x-data-grid-premium@8.27.5` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
298
+
299
+ Same changes as in `@mui/x-data-grid-pro@8.27.5`.
300
+
301
+ ### Charts
302
+
303
+ #### `@mui/x-charts@8.27.5`
304
+
305
+ - [charts] Refactor `BarChart` classes structure (#21601) (#21644) @JCQuintas
306
+ - [charts] Refactor `LineChart` classes structure (#21672) @JCQuintas
307
+ - [charts] Refactor `ScatterChart` classes structure (#21706) @JCQuintas
308
+
309
+ #### `@mui/x-charts-pro@8.27.5` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
310
+
311
+ Same changes as in `@mui/x-charts@8.27.5`, plus:
312
+
313
+ - [charts-pro] Fix image export truncated when page is zoomed out (#21696) @bernardobelchior
314
+
315
+ #### `@mui/x-charts-premium@8.27.5` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
316
+
317
+ Same changes as in `@mui/x-charts-pro@8.27.5`.
318
+
319
+ ### Docs
320
+
321
+ - [docs] Fix `AssistantWithDataSource` demo crashing (#21631) @sai6855
322
+ - [docs] Move Range Bar Chart to existing charts (#21122) @bernardobelchior
323
+
324
+ ### Core
325
+
326
+ - [code-infra] Fix datagrid test flakyness (#21657) @JCQuintas
327
+ - [code-infra] Removed `getTeamMembers` function and usage from the release script (#21608) @michelengelen
328
+
329
+ ### Miscellaneous
330
+
331
+ - [test] Add missing tests for forwarding props to filter operators in DataGrid (#21700) @siriwatknp
332
+
333
+ ## 8.27.4
334
+
335
+ _Mar 5, 2026_
336
+
337
+ We'd like to extend a big thank you to the 6 contributors who made this release possible. Here are some highlights ✨:
338
+
339
+ - 🐞 Bugfixes
340
+ - 🌎 Improve Ukrainian (uk-UA) locale
341
+
342
+ Special thanks go out to this community member for their valuable contribution:
343
+ @lion1963
344
+
345
+ The following team members contributed to this release:
346
+ @arminmeh, @brijeshb42, @dav-is, @JCQuintas, @sai6855
347
+
348
+ ### Data Grid
349
+
350
+ #### `@mui/x-data-grid@8.27.4`
351
+
352
+ - [DataGrid] Prevent unnecessary row selection checkbox rerendering (#21571) @arminmeh
353
+ - [DataGrid] Make `GridScrollArea` overrides resolver dynamic (#21612) @sai6855
354
+ - [l10n] Improve Ukrainian (uk-UA) locale (#21381) @lion1963
355
+
356
+ #### `@mui/x-data-grid-pro@8.27.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
357
+
358
+ Same changes as in `@mui/x-data-grid@8.27.4`, plus:
359
+
360
+ - [DataGridPro] Use `getRowId` prop to calculate the tree data row update (#21544) @arminmeh
361
+
362
+ #### `@mui/x-data-grid-premium@8.27.4` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
363
+
364
+ Same changes as in `@mui/x-data-grid-pro@8.27.4`.
365
+
366
+ ### Charts
367
+
368
+ #### `@mui/x-charts@8.27.4`
369
+
370
+ - [charts] Deprecate `ChartDataProvider` in favour of `ChartsDataProvider` (#21549) @JCQuintas
371
+ - [charts] Rename `ChartContainer` to `ChartsContainer` (#21186) @JCQuintas
372
+ - [charts] Rename `ChartZoomSlider` to `ChartsZoomSlider` (#21572) @JCQuintas
373
+
374
+ #### `@mui/x-charts-pro@8.27.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
375
+
376
+ Same changes as in `@mui/x-charts@8.27.4`.
377
+
378
+ #### `@mui/x-charts-premium@8.27.4` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
379
+
380
+ Same changes as in `@mui/x-charts-pro@8.27.4`.
381
+
382
+ ### Core
383
+
384
+ - [code-infra] Add eslint rule to prevent `Math.random` in docs (#21505) (#21563) @JCQuintas
385
+ - [code-infra] V8 Dedupe (#21561) @JCQuintas
386
+ - [docs-infra] Apply Cookie Banner to v8.x Branch (#21448) @dav-is
387
+ - [code-infra] Setup checkout to do full clone for non master branches (#21624) @brijeshb42
388
+
389
+ ## 8.27.3
390
+
391
+ _Feb 25, 2026_
392
+
393
+ We'd like to extend a big thank you to the 4 contributors who made this release possible. Here are some highlights ✨:
394
+
395
+ - 🐞 Bugfixes
396
+ - ⚡️ Improved dynamic data support and cache invalidation in lazy loading for Data Grid Pro
397
+
398
+ The following team members contributed to this release:
399
+ @cherniavskii, @michelengelen, @MBilalShafi, @arminmeh
400
+
401
+ ### Data Grid
402
+
403
+ #### `@mui/x-data-grid@8.27.3`
404
+
405
+ - [DataGrid] Preserve key input during row edit when using `rowModesModel` (#21457) @michelengelen
406
+
407
+ #### `@mui/x-data-grid-pro@8.27.3` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
408
+
409
+ Same changes as in `@mui/x-data-grid@8.27.3`, plus:
410
+
411
+ - [DataGridPro] Improve dynamic data support and cache invalidation in lazy loading (#21465) @MBilalShafi
412
+
413
+ #### `@mui/x-data-grid-premium@8.27.3` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
414
+
415
+ Same changes as in `@mui/x-data-grid-pro@8.27.3`.
416
+
417
+ ### Core
418
+
419
+ - [code-infra] Do not append `x` to the last version for the compare API (#21422) @arminmeh
420
+ - [docs-infra] Fix current version detection logic (#21415) @cherniavskii
421
+
8
422
  ## 8.27.2
9
423
 
10
424
  _Feb 20, 2026_
@@ -52,6 +52,8 @@ const PickerDay2Root = (0, _styles.styled)(_ButtonBase.default, {
52
52
  '--PickerDay-horizontalMargin': `${_dimensions.DAY_MARGIN}px`,
53
53
  '--PickerDay-size': `${_dimensions.DAY_SIZE}px`
54
54
  }, theme.typography.caption, {
55
+ display: 'flex',
56
+ lineHeight: 1,
55
57
  width: 'var(--PickerDay-size)',
56
58
  height: 'var(--PickerDay-size)',
57
59
  borderRadius: 'calc(var(--PickerDay-size) / 2)',
@@ -43,6 +43,8 @@ const useUtilityClasses = (classes, ownerState) => {
43
43
  const styleArg = ({
44
44
  theme
45
45
  }) => (0, _extends2.default)({}, theme.typography.caption, {
46
+ display: 'flex',
47
+ lineHeight: 1,
46
48
  width: _dimensions.DAY_SIZE,
47
49
  height: _dimensions.DAY_SIZE,
48
50
  borderRadius: '50%',
@@ -44,6 +44,9 @@ const PickersOutlinedInputRoot = (0, _styles.styled)(_PickersInputBase2.PickersI
44
44
  borderStyle: 'solid',
45
45
  borderWidth: 2
46
46
  },
47
+ [`&.${_pickersOutlinedInputClasses.pickersOutlinedInputClasses.error} .${_pickersOutlinedInputClasses.pickersOutlinedInputClasses.notchedOutline}`]: {
48
+ borderColor: (theme.vars || theme).palette.error.main
49
+ },
47
50
  [`&.${_pickersOutlinedInputClasses.pickersOutlinedInputClasses.disabled}`]: {
48
51
  [`& .${_pickersOutlinedInputClasses.pickersOutlinedInputClasses.notchedOutline}`]: {
49
52
  borderColor: (theme.vars || theme).palette.action.disabled
@@ -52,9 +55,6 @@ const PickersOutlinedInputRoot = (0, _styles.styled)(_PickersInputBase2.PickersI
52
55
  color: (theme.vars || theme).palette.action.disabled
53
56
  }
54
57
  },
55
- [`&.${_pickersOutlinedInputClasses.pickersOutlinedInputClasses.error} .${_pickersOutlinedInputClasses.pickersOutlinedInputClasses.notchedOutline}`]: {
56
- borderColor: (theme.vars || theme).palette.error.main
57
- },
58
58
  variants: Object.keys((theme.vars ?? theme).palette)
59
59
  // @ts-ignore
60
60
  .filter(key => (theme.vars ?? theme).palette[key]?.main ?? false).map(color => ({
@@ -203,19 +203,7 @@ export class AdapterDayjs {
203
203
  }
204
204
  };
205
205
  createSystemDate = value => {
206
- let date;
207
- if (this.hasUTCPlugin() && this.hasTimezonePlugin()) {
208
- const timezone = dayjs.tz.guess();
209
- if (timezone === 'UTC') {
210
- date = dayjs(value);
211
- } /* v8 ignore next 3 */else {
212
- // We can't change the system timezone in the tests
213
- date = dayjs.tz(value, timezone);
214
- }
215
- } else {
216
- date = dayjs(value);
217
- }
218
- return this.setLocaleToValue(date);
206
+ return this.setLocaleToValue(dayjs(value));
219
207
  };
220
208
  createUTCDate = value => {
221
209
  /* v8 ignore next 3 */
@@ -45,6 +45,8 @@ const PickerDay2Root = styled(ButtonBase, {
45
45
  '--PickerDay-horizontalMargin': `${DAY_MARGIN}px`,
46
46
  '--PickerDay-size': `${DAY_SIZE}px`
47
47
  }, theme.typography.caption, {
48
+ display: 'flex',
49
+ lineHeight: 1,
48
50
  width: 'var(--PickerDay-size)',
49
51
  height: 'var(--PickerDay-size)',
50
52
  borderRadius: 'calc(var(--PickerDay-size) / 2)',
@@ -36,6 +36,8 @@ const useUtilityClasses = (classes, ownerState) => {
36
36
  const styleArg = ({
37
37
  theme
38
38
  }) => _extends({}, theme.typography.caption, {
39
+ display: 'flex',
40
+ lineHeight: 1,
39
41
  width: DAY_SIZE,
40
42
  height: DAY_SIZE,
41
43
  borderRadius: '50%',
@@ -37,6 +37,9 @@ const PickersOutlinedInputRoot = styled(PickersInputBaseRoot, {
37
37
  borderStyle: 'solid',
38
38
  borderWidth: 2
39
39
  },
40
+ [`&.${pickersOutlinedInputClasses.error} .${pickersOutlinedInputClasses.notchedOutline}`]: {
41
+ borderColor: (theme.vars || theme).palette.error.main
42
+ },
40
43
  [`&.${pickersOutlinedInputClasses.disabled}`]: {
41
44
  [`& .${pickersOutlinedInputClasses.notchedOutline}`]: {
42
45
  borderColor: (theme.vars || theme).palette.action.disabled
@@ -45,9 +48,6 @@ const PickersOutlinedInputRoot = styled(PickersInputBaseRoot, {
45
48
  color: (theme.vars || theme).palette.action.disabled
46
49
  }
47
50
  },
48
- [`&.${pickersOutlinedInputClasses.error} .${pickersOutlinedInputClasses.notchedOutline}`]: {
49
- borderColor: (theme.vars || theme).palette.error.main
50
- },
51
51
  variants: Object.keys((theme.vars ?? theme).palette)
52
52
  // @ts-ignore
53
53
  .filter(key => (theme.vars ?? theme).palette[key]?.main ?? false).map(color => ({
package/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers v8.27.2
2
+ * @mui/x-date-pickers v8.28.4
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -1,4 +1,5 @@
1
1
  import { getMonthsInYear } from "../../utils/date-utils.js";
2
+ import { convertToMeridiem } from "../../utils/time-utils.js";
2
3
  export const getDateSectionConfigFromFormatToken = (adapter, formatToken) => {
3
4
  const config = adapter.formatTokenMap[formatToken];
4
5
  if (config == null) {
@@ -378,15 +379,8 @@ const transferDateSectionValue = (adapter, section, dateToTransferFrom, dateToTr
378
379
  }
379
380
  case 'meridiem':
380
381
  {
381
- const isAM = adapter.getHours(dateToTransferFrom) < 12;
382
- const mergedDateHours = adapter.getHours(dateToTransferTo);
383
- if (isAM && mergedDateHours >= 12) {
384
- return adapter.addHours(dateToTransferTo, -12);
385
- }
386
- if (!isAM && mergedDateHours < 12) {
387
- return adapter.addHours(dateToTransferTo, 12);
388
- }
389
- return dateToTransferTo;
382
+ const meridiem = adapter.getHours(dateToTransferFrom) < 12 ? 'am' : 'pm';
383
+ return convertToMeridiem(dateToTransferTo, meridiem, true, adapter);
390
384
  }
391
385
  case 'hours':
392
386
  {
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers v8.27.2
2
+ * @mui/x-date-pickers v8.28.4
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.validateSections = exports.removeLocalizedDigits = exports.parseSelectedSections = exports.mergeDateIntoReferenceDate = exports.isStringNumber = exports.isAndroid = exports.getSectionsBoundaries = exports.getSectionVisibleValue = exports.getSectionOrder = exports.getLocalizedDigits = exports.getLetterEditingOptions = exports.getDaysInWeekStr = exports.getDateSectionConfigFromFormatToken = exports.getDateFromDateSections = exports.doesSectionFormatHaveLeadingZeros = exports.createDateStrForV7HiddenInputFromSections = exports.createDateStrForV6InputFromSections = exports.cleanLeadingZeros = exports.cleanDigitSectionValue = exports.changeSectionValueFormat = exports.applyLocalizedDigits = exports.FORMAT_SECONDS_NO_LEADING_ZEROS = void 0;
7
7
  var _dateUtils = require("../../utils/date-utils");
8
+ var _timeUtils = require("../../utils/time-utils");
8
9
  const getDateSectionConfigFromFormatToken = (adapter, formatToken) => {
9
10
  const config = adapter.formatTokenMap[formatToken];
10
11
  if (config == null) {
@@ -401,15 +402,8 @@ const transferDateSectionValue = (adapter, section, dateToTransferFrom, dateToTr
401
402
  }
402
403
  case 'meridiem':
403
404
  {
404
- const isAM = adapter.getHours(dateToTransferFrom) < 12;
405
- const mergedDateHours = adapter.getHours(dateToTransferTo);
406
- if (isAM && mergedDateHours >= 12) {
407
- return adapter.addHours(dateToTransferTo, -12);
408
- }
409
- if (!isAM && mergedDateHours < 12) {
410
- return adapter.addHours(dateToTransferTo, 12);
411
- }
412
- return dateToTransferTo;
405
+ const meridiem = adapter.getHours(dateToTransferFrom) < 12 ? 'am' : 'pm';
406
+ return (0, _timeUtils.convertToMeridiem)(dateToTransferTo, meridiem, true, adapter);
413
407
  }
414
408
  case 'hours':
415
409
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-date-pickers",
3
- "version": "8.27.2",
3
+ "version": "8.28.4",
4
4
  "author": "MUI Team",
5
5
  "description": "The community edition of the MUI X Date and Time Picker components.",
6
6
  "license": "MIT",