@mui/x-date-pickers 6.16.3 → 6.17.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 (31) hide show
  1. package/AdapterDateFns/AdapterDateFns.js +1 -1
  2. package/AdapterDateFnsJalali/AdapterDateFnsJalali.js +1 -1
  3. package/AdapterDayjs/AdapterDayjs.js +1 -1
  4. package/AdapterLuxon/AdapterLuxon.js +1 -1
  5. package/CHANGELOG.md +66 -0
  6. package/DateCalendar/DayCalendar.js +1 -3
  7. package/index.js +1 -1
  8. package/internals/components/FakeTextField/FakeTextField.d.ts +15 -3
  9. package/internals/components/FakeTextField/FakeTextField.js +35 -18
  10. package/legacy/AdapterDateFns/AdapterDateFns.js +1 -1
  11. package/legacy/AdapterDateFnsJalali/AdapterDateFnsJalali.js +1 -1
  12. package/legacy/AdapterDayjs/AdapterDayjs.js +1 -1
  13. package/legacy/AdapterLuxon/AdapterLuxon.js +1 -1
  14. package/legacy/DateCalendar/DayCalendar.js +1 -3
  15. package/legacy/index.js +1 -1
  16. package/legacy/internals/components/FakeTextField/FakeTextField.js +41 -15
  17. package/modern/AdapterDateFns/AdapterDateFns.js +1 -1
  18. package/modern/AdapterDateFnsJalali/AdapterDateFnsJalali.js +1 -1
  19. package/modern/AdapterDayjs/AdapterDayjs.js +1 -1
  20. package/modern/AdapterLuxon/AdapterLuxon.js +1 -1
  21. package/modern/DateCalendar/DayCalendar.js +1 -3
  22. package/modern/index.js +1 -1
  23. package/modern/internals/components/FakeTextField/FakeTextField.js +35 -18
  24. package/node/AdapterDateFns/AdapterDateFns.js +1 -1
  25. package/node/AdapterDateFnsJalali/AdapterDateFnsJalali.js +1 -1
  26. package/node/AdapterDayjs/AdapterDayjs.js +1 -1
  27. package/node/AdapterLuxon/AdapterLuxon.js +1 -1
  28. package/node/DateCalendar/DayCalendar.js +1 -3
  29. package/node/index.js +1 -1
  30. package/node/internals/components/FakeTextField/FakeTextField.js +36 -19
  31. package/package.json +2 -2
@@ -228,7 +228,7 @@ const defaultFormats = {
228
228
  monthShort: 'MMM',
229
229
  dayOfMonth: 'd',
230
230
  weekday: 'EEEE',
231
- weekdayShort: 'EEE',
231
+ weekdayShort: 'EEEEEE',
232
232
  hours24h: 'HH',
233
233
  hours12h: 'hh',
234
234
  meridiem: 'aa',
@@ -228,7 +228,7 @@ const defaultFormats = {
228
228
  monthShort: 'MMM',
229
229
  dayOfMonth: 'd',
230
230
  weekday: 'EEEE',
231
- weekdayShort: 'EEE',
231
+ weekdayShort: 'EEEEEE',
232
232
  hours24h: 'HH',
233
233
  hours12h: 'hh',
234
234
  meridiem: 'aa',
@@ -99,7 +99,7 @@ const defaultFormats = {
99
99
  monthShort: 'MMM',
100
100
  dayOfMonth: 'D',
101
101
  weekday: 'dddd',
102
- weekdayShort: 'ddd',
102
+ weekdayShort: 'dd',
103
103
  hours24h: 'HH',
104
104
  hours12h: 'hh',
105
105
  meridiem: 'A',
@@ -113,7 +113,7 @@ const defaultFormats = {
113
113
  monthShort: 'MMM',
114
114
  dayOfMonth: 'd',
115
115
  weekday: 'cccc',
116
- weekdayShort: 'ccc',
116
+ weekdayShort: 'ccccc',
117
117
  hours24h: 'HH',
118
118
  hours12h: 'hh',
119
119
  meridiem: 'a',
package/CHANGELOG.md CHANGED
@@ -3,6 +3,72 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## 6.17.0
7
+
8
+ _Oct 27, 2023_
9
+
10
+ We'd like to offer a big thanks to the 9 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 🎁 The Tree View package is now officially stable!
13
+
14
+ ![tree-view-example](https://github.com/mui/mui-x/assets/550141/77d1fe66-d912-49ba-b38f-b853fb90446a)
15
+
16
+ - ✨ Improve the handling of non-numeric values by Data Grid aggregation
17
+ - 🚀 Support lines with different domains on the line charts
18
+ - 🐞 Bugfixes
19
+ - 📚 Documentation improvements
20
+
21
+ ### Data Grid
22
+
23
+ #### `@mui/x-data-grid@6.17.0`
24
+
25
+ - [DataGrid] Allow custom debounce time for row positions calculation (#10708) @cherniavskii
26
+ - [DataGrid] Persist stable row index for focused row (#10674) @cherniavskii
27
+
28
+ #### `@mui/x-data-grid-pro@6.17.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
29
+
30
+ Same changes as in `@mui/x-data-grid@6.17.0`, plus:
31
+
32
+ - [DataGridPro] Fix `undefined` values passed to `valueFormatter` for tree leaf nodes (#10748) @cherniavskii
33
+
34
+ #### `@mui/x-data-grid-premium@6.17.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
35
+
36
+ Same changes as in `@mui/x-data-grid-pro@6.17.0`, plus:
37
+
38
+ - [DataGridPremium] Fix `avg` aggregation to ignore non-numeric values (#10787) @cherniavskii
39
+ - [DataGridPremium] Fix `size` aggregation to ignore `undefined` values (#10745) @cherniavskii
40
+ - [DataGridPremium] Fix `sum` aggregation to ignore non-numeric values (#10730) @cherniavskii
41
+ - [DataGridPremium] Fix cell selection throwing index error on second page and beyond (#10784) @MBilalShafi
42
+
43
+ ### Date Pickers
44
+
45
+ #### `@mui/x-date-pickers@6.17.0`
46
+
47
+ - [fields] POC: Use `contentEditable` on `FakeTextField` (#10779) @flaviendelangle
48
+ - [pickers] Fix weekday label localization (#10809) @LukasTy
49
+
50
+ #### `@mui/x-date-pickers-pro@6.17.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-date-pickers@6.17.0`.
53
+
54
+ ### Charts / `@mui/x-charts@6.0.0-alpha.17`
55
+
56
+ - [charts] Fix text position in Safari (#10815) @lhilgert9
57
+ - [charts] Support lines with different domains (#10801) @alexfauquette
58
+
59
+ ### Tree View / `@mui/x-tree-view@6.17.0`
60
+
61
+ No change
62
+
63
+ ### Docs
64
+
65
+ - [docs] Correct editing related props' description (#10798) @MBilalShafi
66
+ - [docs] Fix RTL data grid demo (#10728) @oliviertassinari
67
+ - [docs] Fix unclosed warning (#10796) @flaviendelangle
68
+ - [docs] Improve performance of `Save and restore the state from external storage` recipe (#10811) @michelengelen
69
+
70
+ - [test] Add missing type on `cleanText` utility function (#10780) @flaviendelangle
71
+
6
72
  ## 6.16.3
7
73
 
8
74
  _Oct 20, 2023_
@@ -414,9 +414,7 @@ export function DayCalendar(inProps) {
414
414
  children: localeText.calendarWeekNumberHeaderText
415
415
  }), getWeekdays(utils, now).map((weekday, i) => {
416
416
  var _dayOfWeekFormatter;
417
- // regression-prevention:
418
- // since 'weekdayShort' now always returns an abbreviated form we slice the first 2 letters from it.
419
- const day = utils.format(weekday, 'weekdayShort').slice(0, 2);
417
+ const day = utils.format(weekday, 'weekdayShort');
420
418
  return /*#__PURE__*/_jsx(PickersCalendarWeekDayLabel, {
421
419
  variant: "caption",
422
420
  role: "columnheader",
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers v6.16.3
2
+ * @mui/x-date-pickers v6.17.0
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -1,10 +1,22 @@
1
1
  import * as React from 'react';
2
- export interface FakeTextFieldElement extends React.HTMLAttributes<HTMLDivElement> {
3
- before: string;
4
- after: string;
2
+ export interface FakeTextFieldElement {
3
+ container: React.HTMLAttributes<HTMLSpanElement>;
4
+ content: React.HTMLAttributes<HTMLSpanElement>;
5
+ before: React.HTMLAttributes<HTMLSpanElement>;
6
+ after: React.HTMLAttributes<HTMLSpanElement>;
5
7
  }
6
8
  interface FakeTextFieldProps {
7
9
  elements: FakeTextFieldElement[];
10
+ valueStr: string;
11
+ onValueStrChange: React.ChangeEventHandler<HTMLInputElement>;
12
+ error: boolean;
13
+ id?: string;
14
+ InputProps: any;
15
+ inputProps: any;
16
+ disabled?: boolean;
17
+ autoFocus?: boolean;
18
+ ownerState?: any;
19
+ valueType: 'value' | 'placeholder';
8
20
  }
9
21
  export declare const FakeTextField: React.ForwardRefExoticComponent<FakeTextFieldProps & React.RefAttributes<HTMLDivElement>>;
10
22
  export {};
@@ -1,27 +1,44 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
- const _excluded = ["before", "after"];
3
+ const _excluded = ["elements", "valueStr", "onValueStrChange", "id", "error", "InputProps", "inputProps", "autoFocus", "disabled", "valueType", "ownerState"];
4
4
  import * as React from 'react';
5
- import Stack from '@mui/material/Stack';
5
+ import Box from '@mui/material/Box';
6
6
  import { jsx as _jsx } from "react/jsx-runtime";
7
+ import { createElement as _createElement } from "react";
7
8
  import { jsxs as _jsxs } from "react/jsx-runtime";
8
9
  export const FakeTextField = /*#__PURE__*/React.forwardRef(function FakeTextField(props, ref) {
9
10
  const {
10
- elements
11
- } = props;
12
- return /*#__PURE__*/_jsx(Stack, {
13
- direction: "row",
14
- spacing: 1,
15
- ref: ref,
16
- children: elements.map((_ref, elementIndex) => {
17
- let {
18
- before,
19
- after
20
- } = _ref,
21
- otherElementProps = _objectWithoutPropertiesLoose(_ref, _excluded);
22
- return /*#__PURE__*/_jsxs(React.Fragment, {
23
- children: [before, /*#__PURE__*/_jsx("input", _extends({}, otherElementProps)), after]
24
- }, elementIndex);
25
- })
11
+ elements,
12
+ valueStr,
13
+ onValueStrChange,
14
+ id,
15
+ valueType
16
+ } = props,
17
+ other = _objectWithoutPropertiesLoose(props, _excluded);
18
+ return /*#__PURE__*/_jsxs(React.Fragment, {
19
+ children: [/*#__PURE__*/_jsx(Box, _extends({
20
+ ref: ref
21
+ }, other, {
22
+ style: {
23
+ display: 'inline-block',
24
+ border: '1px solid black',
25
+ borderRadius: 4,
26
+ padding: '2px 4px',
27
+ color: valueType === 'placeholder' ? 'grey' : 'black'
28
+ },
29
+ children: elements.map(({
30
+ container,
31
+ content,
32
+ before,
33
+ after
34
+ }, elementIndex) => /*#__PURE__*/_createElement("span", _extends({}, container, {
35
+ key: elementIndex
36
+ }), /*#__PURE__*/_jsx("span", _extends({}, before)), /*#__PURE__*/_jsx("span", _extends({}, content)), /*#__PURE__*/_jsx("span", _extends({}, after))))
37
+ })), /*#__PURE__*/_jsx("input", {
38
+ type: "hidden",
39
+ value: valueStr,
40
+ onChange: onValueStrChange,
41
+ id: id
42
+ })]
26
43
  });
27
44
  });
@@ -231,7 +231,7 @@ var defaultFormats = {
231
231
  monthShort: 'MMM',
232
232
  dayOfMonth: 'd',
233
233
  weekday: 'EEEE',
234
- weekdayShort: 'EEE',
234
+ weekdayShort: 'EEEEEE',
235
235
  hours24h: 'HH',
236
236
  hours12h: 'hh',
237
237
  meridiem: 'aa',
@@ -231,7 +231,7 @@ var defaultFormats = {
231
231
  monthShort: 'MMM',
232
232
  dayOfMonth: 'd',
233
233
  weekday: 'EEEE',
234
- weekdayShort: 'EEE',
234
+ weekdayShort: 'EEEEEE',
235
235
  hours24h: 'HH',
236
236
  hours12h: 'hh',
237
237
  meridiem: 'aa',
@@ -102,7 +102,7 @@ var defaultFormats = {
102
102
  monthShort: 'MMM',
103
103
  dayOfMonth: 'D',
104
104
  weekday: 'dddd',
105
- weekdayShort: 'ddd',
105
+ weekdayShort: 'dd',
106
106
  hours24h: 'HH',
107
107
  hours12h: 'hh',
108
108
  meridiem: 'A',
@@ -116,7 +116,7 @@ var defaultFormats = {
116
116
  monthShort: 'MMM',
117
117
  dayOfMonth: 'd',
118
118
  weekday: 'cccc',
119
- weekdayShort: 'ccc',
119
+ weekdayShort: 'ccccc',
120
120
  hours24h: 'HH',
121
121
  hours12h: 'hh',
122
122
  meridiem: 'a',
@@ -458,9 +458,7 @@ export function DayCalendar(inProps) {
458
458
  children: localeText.calendarWeekNumberHeaderText
459
459
  }), getWeekdays(utils, now).map(function (weekday, i) {
460
460
  var _dayOfWeekFormatter;
461
- // regression-prevention:
462
- // since 'weekdayShort' now always returns an abbreviated form we slice the first 2 letters from it.
463
- var day = utils.format(weekday, 'weekdayShort').slice(0, 2);
461
+ var day = utils.format(weekday, 'weekdayShort');
464
462
  return /*#__PURE__*/_jsx(PickersCalendarWeekDayLabel, {
465
463
  variant: "caption",
466
464
  role: "columnheader",
package/legacy/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers v6.16.3
2
+ * @mui/x-date-pickers v6.17.0
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -1,23 +1,49 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
- var _excluded = ["before", "after"];
3
+ var _excluded = ["elements", "valueStr", "onValueStrChange", "id", "error", "InputProps", "inputProps", "autoFocus", "disabled", "valueType", "ownerState"];
4
4
  import * as React from 'react';
5
- import Stack from '@mui/material/Stack';
5
+ import Box from '@mui/material/Box';
6
6
  import { jsx as _jsx } from "react/jsx-runtime";
7
+ import { createElement as _createElement } from "react";
7
8
  import { jsxs as _jsxs } from "react/jsx-runtime";
8
9
  export var FakeTextField = /*#__PURE__*/React.forwardRef(function FakeTextField(props, ref) {
9
- var elements = props.elements;
10
- return /*#__PURE__*/_jsx(Stack, {
11
- direction: "row",
12
- spacing: 1,
13
- ref: ref,
14
- children: elements.map(function (_ref, elementIndex) {
15
- var before = _ref.before,
16
- after = _ref.after,
17
- otherElementProps = _objectWithoutProperties(_ref, _excluded);
18
- return /*#__PURE__*/_jsxs(React.Fragment, {
19
- children: [before, /*#__PURE__*/_jsx("input", _extends({}, otherElementProps)), after]
20
- }, elementIndex);
21
- })
10
+ var elements = props.elements,
11
+ valueStr = props.valueStr,
12
+ onValueStrChange = props.onValueStrChange,
13
+ id = props.id,
14
+ error = props.error,
15
+ InputProps = props.InputProps,
16
+ inputProps = props.inputProps,
17
+ autoFocus = props.autoFocus,
18
+ disabled = props.disabled,
19
+ valueType = props.valueType,
20
+ ownerState = props.ownerState,
21
+ other = _objectWithoutProperties(props, _excluded);
22
+ return /*#__PURE__*/_jsxs(React.Fragment, {
23
+ children: [/*#__PURE__*/_jsx(Box, _extends({
24
+ ref: ref
25
+ }, other, {
26
+ style: {
27
+ display: 'inline-block',
28
+ border: '1px solid black',
29
+ borderRadius: 4,
30
+ padding: '2px 4px',
31
+ color: valueType === 'placeholder' ? 'grey' : 'black'
32
+ },
33
+ children: elements.map(function (_ref, elementIndex) {
34
+ var container = _ref.container,
35
+ content = _ref.content,
36
+ before = _ref.before,
37
+ after = _ref.after;
38
+ return /*#__PURE__*/_createElement("span", _extends({}, container, {
39
+ key: elementIndex
40
+ }), /*#__PURE__*/_jsx("span", _extends({}, before)), /*#__PURE__*/_jsx("span", _extends({}, content)), /*#__PURE__*/_jsx("span", _extends({}, after)));
41
+ })
42
+ })), /*#__PURE__*/_jsx("input", {
43
+ type: "hidden",
44
+ value: valueStr,
45
+ onChange: onValueStrChange,
46
+ id: id
47
+ })]
22
48
  });
23
49
  });
@@ -228,7 +228,7 @@ const defaultFormats = {
228
228
  monthShort: 'MMM',
229
229
  dayOfMonth: 'd',
230
230
  weekday: 'EEEE',
231
- weekdayShort: 'EEE',
231
+ weekdayShort: 'EEEEEE',
232
232
  hours24h: 'HH',
233
233
  hours12h: 'hh',
234
234
  meridiem: 'aa',
@@ -228,7 +228,7 @@ const defaultFormats = {
228
228
  monthShort: 'MMM',
229
229
  dayOfMonth: 'd',
230
230
  weekday: 'EEEE',
231
- weekdayShort: 'EEE',
231
+ weekdayShort: 'EEEEEE',
232
232
  hours24h: 'HH',
233
233
  hours12h: 'hh',
234
234
  meridiem: 'aa',
@@ -99,7 +99,7 @@ const defaultFormats = {
99
99
  monthShort: 'MMM',
100
100
  dayOfMonth: 'D',
101
101
  weekday: 'dddd',
102
- weekdayShort: 'ddd',
102
+ weekdayShort: 'dd',
103
103
  hours24h: 'HH',
104
104
  hours12h: 'hh',
105
105
  meridiem: 'A',
@@ -113,7 +113,7 @@ const defaultFormats = {
113
113
  monthShort: 'MMM',
114
114
  dayOfMonth: 'd',
115
115
  weekday: 'cccc',
116
- weekdayShort: 'ccc',
116
+ weekdayShort: 'ccccc',
117
117
  hours24h: 'HH',
118
118
  hours12h: 'hh',
119
119
  meridiem: 'a',
@@ -412,9 +412,7 @@ export function DayCalendar(inProps) {
412
412
  className: classes.weekNumberLabel,
413
413
  children: localeText.calendarWeekNumberHeaderText
414
414
  }), getWeekdays(utils, now).map((weekday, i) => {
415
- // regression-prevention:
416
- // since 'weekdayShort' now always returns an abbreviated form we slice the first 2 letters from it.
417
- const day = utils.format(weekday, 'weekdayShort').slice(0, 2);
415
+ const day = utils.format(weekday, 'weekdayShort');
418
416
  return /*#__PURE__*/_jsx(PickersCalendarWeekDayLabel, {
419
417
  variant: "caption",
420
418
  role: "columnheader",
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers v6.16.3
2
+ * @mui/x-date-pickers v6.17.0
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -1,27 +1,44 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
- const _excluded = ["before", "after"];
3
+ const _excluded = ["elements", "valueStr", "onValueStrChange", "id", "error", "InputProps", "inputProps", "autoFocus", "disabled", "valueType", "ownerState"];
4
4
  import * as React from 'react';
5
- import Stack from '@mui/material/Stack';
5
+ import Box from '@mui/material/Box';
6
6
  import { jsx as _jsx } from "react/jsx-runtime";
7
+ import { createElement as _createElement } from "react";
7
8
  import { jsxs as _jsxs } from "react/jsx-runtime";
8
9
  export const FakeTextField = /*#__PURE__*/React.forwardRef(function FakeTextField(props, ref) {
9
10
  const {
10
- elements
11
- } = props;
12
- return /*#__PURE__*/_jsx(Stack, {
13
- direction: "row",
14
- spacing: 1,
15
- ref: ref,
16
- children: elements.map((_ref, elementIndex) => {
17
- let {
18
- before,
19
- after
20
- } = _ref,
21
- otherElementProps = _objectWithoutPropertiesLoose(_ref, _excluded);
22
- return /*#__PURE__*/_jsxs(React.Fragment, {
23
- children: [before, /*#__PURE__*/_jsx("input", _extends({}, otherElementProps)), after]
24
- }, elementIndex);
25
- })
11
+ elements,
12
+ valueStr,
13
+ onValueStrChange,
14
+ id,
15
+ valueType
16
+ } = props,
17
+ other = _objectWithoutPropertiesLoose(props, _excluded);
18
+ return /*#__PURE__*/_jsxs(React.Fragment, {
19
+ children: [/*#__PURE__*/_jsx(Box, _extends({
20
+ ref: ref
21
+ }, other, {
22
+ style: {
23
+ display: 'inline-block',
24
+ border: '1px solid black',
25
+ borderRadius: 4,
26
+ padding: '2px 4px',
27
+ color: valueType === 'placeholder' ? 'grey' : 'black'
28
+ },
29
+ children: elements.map(({
30
+ container,
31
+ content,
32
+ before,
33
+ after
34
+ }, elementIndex) => /*#__PURE__*/_createElement("span", _extends({}, container, {
35
+ key: elementIndex
36
+ }), /*#__PURE__*/_jsx("span", _extends({}, before)), /*#__PURE__*/_jsx("span", _extends({}, content)), /*#__PURE__*/_jsx("span", _extends({}, after))))
37
+ })), /*#__PURE__*/_jsx("input", {
38
+ type: "hidden",
39
+ value: valueStr,
40
+ onChange: onValueStrChange,
41
+ id: id
42
+ })]
26
43
  });
27
44
  });
@@ -237,7 +237,7 @@ const defaultFormats = {
237
237
  monthShort: 'MMM',
238
238
  dayOfMonth: 'd',
239
239
  weekday: 'EEEE',
240
- weekdayShort: 'EEE',
240
+ weekdayShort: 'EEEEEE',
241
241
  hours24h: 'HH',
242
242
  hours12h: 'hh',
243
243
  meridiem: 'aa',
@@ -237,7 +237,7 @@ const defaultFormats = {
237
237
  monthShort: 'MMM',
238
238
  dayOfMonth: 'd',
239
239
  weekday: 'EEEE',
240
- weekdayShort: 'EEE',
240
+ weekdayShort: 'EEEEEE',
241
241
  hours24h: 'HH',
242
242
  hours12h: 'hh',
243
243
  meridiem: 'aa',
@@ -107,7 +107,7 @@ const defaultFormats = {
107
107
  monthShort: 'MMM',
108
108
  dayOfMonth: 'D',
109
109
  weekday: 'dddd',
110
- weekdayShort: 'ddd',
110
+ weekdayShort: 'dd',
111
111
  hours24h: 'HH',
112
112
  hours12h: 'hh',
113
113
  meridiem: 'A',
@@ -121,7 +121,7 @@ const defaultFormats = {
121
121
  monthShort: 'MMM',
122
122
  dayOfMonth: 'd',
123
123
  weekday: 'cccc',
124
- weekdayShort: 'ccc',
124
+ weekdayShort: 'ccccc',
125
125
  hours24h: 'HH',
126
126
  hours12h: 'hh',
127
127
  meridiem: 'a',
@@ -420,9 +420,7 @@ function DayCalendar(inProps) {
420
420
  className: classes.weekNumberLabel,
421
421
  children: localeText.calendarWeekNumberHeaderText
422
422
  }), (0, _dateUtils.getWeekdays)(utils, now).map((weekday, i) => {
423
- // regression-prevention:
424
- // since 'weekdayShort' now always returns an abbreviated form we slice the first 2 letters from it.
425
- const day = utils.format(weekday, 'weekdayShort').slice(0, 2);
423
+ const day = utils.format(weekday, 'weekdayShort');
426
424
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(PickersCalendarWeekDayLabel, {
427
425
  variant: "caption",
428
426
  role: "columnheader",
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers v6.16.3
2
+ * @mui/x-date-pickers v6.17.0
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -7,29 +7,46 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.FakeTextField = void 0;
8
8
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
9
  var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
10
- var React = _interopRequireWildcard(require("react"));
11
- var _Stack = _interopRequireDefault(require("@mui/material/Stack"));
10
+ var _react = _interopRequireWildcard(require("react"));
11
+ var React = _react;
12
+ var _Box = _interopRequireDefault(require("@mui/material/Box"));
12
13
  var _jsxRuntime = require("react/jsx-runtime");
13
- const _excluded = ["before", "after"];
14
+ const _excluded = ["elements", "valueStr", "onValueStrChange", "id", "error", "InputProps", "inputProps", "autoFocus", "disabled", "valueType", "ownerState"];
14
15
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
15
16
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
16
17
  const FakeTextField = exports.FakeTextField = /*#__PURE__*/React.forwardRef(function FakeTextField(props, ref) {
17
18
  const {
18
- elements
19
- } = props;
20
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Stack.default, {
21
- direction: "row",
22
- spacing: 1,
23
- ref: ref,
24
- children: elements.map((_ref, elementIndex) => {
25
- let {
26
- before,
27
- after
28
- } = _ref,
29
- otherElementProps = (0, _objectWithoutPropertiesLoose2.default)(_ref, _excluded);
30
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
31
- children: [before, /*#__PURE__*/(0, _jsxRuntime.jsx)("input", (0, _extends2.default)({}, otherElementProps)), after]
32
- }, elementIndex);
33
- })
19
+ elements,
20
+ valueStr,
21
+ onValueStrChange,
22
+ id,
23
+ valueType
24
+ } = props,
25
+ other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
26
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
27
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Box.default, (0, _extends2.default)({
28
+ ref: ref
29
+ }, other, {
30
+ style: {
31
+ display: 'inline-block',
32
+ border: '1px solid black',
33
+ borderRadius: 4,
34
+ padding: '2px 4px',
35
+ color: valueType === 'placeholder' ? 'grey' : 'black'
36
+ },
37
+ children: elements.map(({
38
+ container,
39
+ content,
40
+ before,
41
+ after
42
+ }, elementIndex) => /*#__PURE__*/(0, _react.createElement)("span", (0, _extends2.default)({}, container, {
43
+ key: elementIndex
44
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", (0, _extends2.default)({}, before)), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", (0, _extends2.default)({}, content)), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", (0, _extends2.default)({}, after))))
45
+ })), /*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
46
+ type: "hidden",
47
+ value: valueStr,
48
+ onChange: onValueStrChange,
49
+ id: id
50
+ })]
34
51
  });
35
52
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-date-pickers",
3
- "version": "6.16.3",
3
+ "version": "6.17.0",
4
4
  "description": "The community edition of the date picker components (MUI X).",
5
5
  "author": "MUI Team",
6
6
  "main": "./node/index.js",
@@ -36,7 +36,7 @@
36
36
  "@babel/runtime": "^7.23.2",
37
37
  "@mui/base": "^5.0.0-beta.20",
38
38
  "@mui/utils": "^5.14.14",
39
- "@types/react-transition-group": "^4.4.7",
39
+ "@types/react-transition-group": "^4.4.8",
40
40
  "clsx": "^2.0.0",
41
41
  "prop-types": "^15.8.1",
42
42
  "react-transition-group": "^4.4.5"