@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.
- package/AdapterDateFns/AdapterDateFns.js +1 -1
- package/AdapterDateFnsJalali/AdapterDateFnsJalali.js +1 -1
- package/AdapterDayjs/AdapterDayjs.js +1 -1
- package/AdapterLuxon/AdapterLuxon.js +1 -1
- package/CHANGELOG.md +66 -0
- package/DateCalendar/DayCalendar.js +1 -3
- package/index.js +1 -1
- package/internals/components/FakeTextField/FakeTextField.d.ts +15 -3
- package/internals/components/FakeTextField/FakeTextField.js +35 -18
- package/legacy/AdapterDateFns/AdapterDateFns.js +1 -1
- package/legacy/AdapterDateFnsJalali/AdapterDateFnsJalali.js +1 -1
- package/legacy/AdapterDayjs/AdapterDayjs.js +1 -1
- package/legacy/AdapterLuxon/AdapterLuxon.js +1 -1
- package/legacy/DateCalendar/DayCalendar.js +1 -3
- package/legacy/index.js +1 -1
- package/legacy/internals/components/FakeTextField/FakeTextField.js +41 -15
- package/modern/AdapterDateFns/AdapterDateFns.js +1 -1
- package/modern/AdapterDateFnsJalali/AdapterDateFnsJalali.js +1 -1
- package/modern/AdapterDayjs/AdapterDayjs.js +1 -1
- package/modern/AdapterLuxon/AdapterLuxon.js +1 -1
- package/modern/DateCalendar/DayCalendar.js +1 -3
- package/modern/index.js +1 -1
- package/modern/internals/components/FakeTextField/FakeTextField.js +35 -18
- package/node/AdapterDateFns/AdapterDateFns.js +1 -1
- package/node/AdapterDateFnsJalali/AdapterDateFnsJalali.js +1 -1
- package/node/AdapterDayjs/AdapterDayjs.js +1 -1
- package/node/AdapterLuxon/AdapterLuxon.js +1 -1
- package/node/DateCalendar/DayCalendar.js +1 -3
- package/node/index.js +1 -1
- package/node/internals/components/FakeTextField/FakeTextField.js +36 -19
- package/package.json +2 -2
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
|
+

|
|
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` [](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` [](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` [](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
|
-
|
|
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,10 +1,22 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
export interface FakeTextFieldElement
|
|
3
|
-
|
|
4
|
-
|
|
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 = ["
|
|
3
|
+
const _excluded = ["elements", "valueStr", "onValueStrChange", "id", "error", "InputProps", "inputProps", "autoFocus", "disabled", "valueType", "ownerState"];
|
|
4
4
|
import * as React from 'react';
|
|
5
|
-
import
|
|
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
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
|
});
|
|
@@ -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
|
-
|
|
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,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 = ["
|
|
3
|
+
var _excluded = ["elements", "valueStr", "onValueStrChange", "id", "error", "InputProps", "inputProps", "autoFocus", "disabled", "valueType", "ownerState"];
|
|
4
4
|
import * as React from 'react';
|
|
5
|
-
import
|
|
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
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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
|
});
|
|
@@ -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
|
-
|
|
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,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 = ["
|
|
3
|
+
const _excluded = ["elements", "valueStr", "onValueStrChange", "id", "error", "InputProps", "inputProps", "autoFocus", "disabled", "valueType", "ownerState"];
|
|
4
4
|
import * as React from 'react';
|
|
5
|
-
import
|
|
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
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
|
});
|
|
@@ -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
|
-
|
|
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
|
@@ -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
|
|
11
|
-
var
|
|
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 = ["
|
|
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
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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.
|
|
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.
|
|
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"
|