@mui/x-date-pickers-pro 6.19.0 → 6.19.2

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 CHANGED
@@ -3,6 +3,70 @@
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.19.2
7
+
8
+ _Jan 25, 2024_
9
+
10
+ We'd like to offer a big thanks to the 2 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 🚀 Apply the `layout.tabs` class to `Tabs` slot (@LukasTy) (#11782)
13
+ - 🐞 Bugfixes
14
+
15
+ ### Date Pickers
16
+
17
+ #### `@mui/x-date-pickers@6.19.2`
18
+
19
+ - [pickers] Apply the `layout.tabs` class to `Tabs` slot (@LukasTy) (#11782)
20
+
21
+ #### `@mui/x-date-pickers-pro@6.19.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
22
+
23
+ Same changes as in `@mui/x-date-pickers@6.19.2`, plus:
24
+
25
+ - [DateRangePicker] Remove `calendars` prop on `Mobile` (@LukasTy) (#11771)
26
+
27
+ ### Data Grid
28
+
29
+ #### `@mui/x-data-grid@6.19.2`
30
+
31
+ - [DataGrid] Fix support for tree with more than 50,000 children (@zenazn) (#11808)
32
+
33
+ #### `@mui/x-data-grid-pro@6.19.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
34
+
35
+ Same changes as in `@mui/x-data-grid@6.19.2`.
36
+
37
+ #### `@mui/x-data-grid-premium@6.19.2` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
38
+
39
+ Same changes as in `@mui/x-data-grid-pro@6.19.2`.
40
+
41
+ ## 6.19.1
42
+
43
+ _Jan 19, 2024_
44
+
45
+ We'd like to offer a big thanks to the 1 contributors who made this release possible. Here are some highlights ✨:
46
+
47
+ - 🌍 Add Croatian (hr-HR), Portuguese (pt-PT), and Chinese (Hong Kong) (zh-HK) locales (#11717) @BCaspari
48
+ - 🐞 Bugfixes
49
+
50
+ ### Data Grid
51
+
52
+ #### `@mui/x-data-grid@6.19.1`
53
+
54
+ - [l10n] Add Croatian (hr-HR), Portuguese (pt-PT), and Chinese (Hong Kong) (zh-HK) locales (#11717) @BCaspari
55
+
56
+ #### `@mui/x-data-grid-pro@6.19.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
57
+
58
+ Same changes as in `@mui/x-data-grid@6.19.1`.
59
+
60
+ #### `@mui/x-data-grid-premium@6.19.1` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
61
+
62
+ Same changes as in `@mui/x-data-grid-pro@6.19.1`.
63
+
64
+ ### Charts / `@mui/x-charts@6.19.1`
65
+
66
+ - [charts] Add `arcLabelRadius` property (#11563) @alexfauquette
67
+ - [charts] Do not propagate `innerRadius` and `outerRadius` to the DOM (#11719) @alexfauquette
68
+ - [charts] Fix default `stackOffset` for `LineChart` (#11703) @alexfauquette
69
+
6
70
  ## 6.19.0
7
71
 
8
72
  _Jan 11, 2024_
@@ -56,11 +56,6 @@ export interface ExportedDateRangeCalendarProps<TDate> extends ExportedDayCalend
56
56
  * @param {TDate} month The new month.
57
57
  */
58
58
  onMonthChange?: (month: TDate) => void;
59
- /**
60
- * The number of calendars to render.
61
- * @default 2
62
- */
63
- calendars?: 1 | 2 | 3;
64
59
  /**
65
60
  * Position the current month is rendered in.
66
61
  * @default 1
@@ -95,6 +90,11 @@ export interface DateRangeCalendarProps<TDate> extends ExportedDateRangeCalendar
95
90
  * @param {PickerSelectionState | undefined} selectionState Indicates if the date range selection is complete.
96
91
  */
97
92
  onChange?: (value: DateRange<TDate>, selectionState?: PickerSelectionState) => void;
93
+ /**
94
+ * The number of calendars to render.
95
+ * @default 2
96
+ */
97
+ calendars?: 1 | 2 | 3;
98
98
  className?: string;
99
99
  classes?: Partial<DateRangeCalendarClasses>;
100
100
  /**
@@ -29,6 +29,7 @@ const MobileDateRangePicker = /*#__PURE__*/React.forwardRef(function MobileDateR
29
29
  }, defaultizedProps.viewRenderers);
30
30
  const props = _extends({}, defaultizedProps, {
31
31
  viewRenderers,
32
+ // Force one calendar on mobile to avoid layout issues
32
33
  calendars: 1,
33
34
  views: ['day'],
34
35
  openTo: 'day',
@@ -69,11 +70,6 @@ MobileDateRangePicker.propTypes = {
69
70
  * - the `input` element if there is a field rendered.
70
71
  */
71
72
  autoFocus: PropTypes.bool,
72
- /**
73
- * The number of calendars to render on **desktop**.
74
- * @default 2
75
- */
76
- calendars: PropTypes.oneOf([1, 2, 3]),
77
73
  /**
78
74
  * Class name applied to the root element.
79
75
  */
@@ -6,11 +6,6 @@ export interface MobileDateRangePickerSlotsComponent<TDate> extends BaseDateRang
6
6
  export interface MobileDateRangePickerSlotsComponentsProps<TDate> extends BaseDateRangePickerSlotsComponentsProps<TDate>, UseMobileRangePickerSlotsComponentsProps<TDate, 'day'> {
7
7
  }
8
8
  export interface MobileDateRangePickerProps<TDate> extends BaseDateRangePickerProps<TDate>, MobileRangeOnlyPickerProps<TDate> {
9
- /**
10
- * The number of calendars to render on **desktop**.
11
- * @default 2
12
- */
13
- calendars?: 1 | 2 | 3;
14
9
  /**
15
10
  * Overridable components.
16
11
  * @default {}
@@ -62,7 +62,7 @@ StaticDateRangePicker.propTypes = {
62
62
  autoFocus: PropTypes.bool,
63
63
  /**
64
64
  * The number of calendars to render.
65
- * @default 2
65
+ * @default 1 if `displayStaticWrapperAs === 'mobile'`, 2 otherwise.
66
66
  */
67
67
  calendars: PropTypes.oneOf([1, 2, 3]),
68
68
  /**
@@ -6,6 +6,11 @@ export interface StaticDateRangePickerSlotsComponent<TDate> extends BaseDateRang
6
6
  export interface StaticDateRangePickerSlotsComponentsProps<TDate> extends BaseDateRangePickerSlotsComponentsProps<TDate>, UseStaticRangePickerSlotsComponentsProps<TDate, 'day'> {
7
7
  }
8
8
  export interface StaticDateRangePickerProps<TDate> extends BaseDateRangePickerProps<TDate>, MakeOptional<StaticRangeOnlyPickerProps, 'displayStaticWrapperAs'> {
9
+ /**
10
+ * The number of calendars to render.
11
+ * @default 1 if `displayStaticWrapperAs === 'mobile'`, 2 otherwise.
12
+ */
13
+ calendars?: 1 | 2 | 3;
9
14
  /**
10
15
  * Overridable components.
11
16
  * @default {}
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers-pro v6.19.0
2
+ * @mui/x-date-pickers-pro v6.19.2
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTcwNDkyNzYwMDAwMA==";
3
+ const releaseInfo = "MTcwNjEzMzYwMDAwMA==";
4
4
  if (process.env.NODE_ENV !== 'production') {
5
5
  // A simple hack to set the value in the test environment (has no build step).
6
6
  // eslint-disable-next-line no-useless-concat
@@ -60,23 +60,22 @@ var DAY_RANGE_SIZE = 40;
60
60
  var weeksContainerHeight = (DAY_RANGE_SIZE + DAY_MARGIN * 2) * 6;
61
61
  var warnInvalidCurrentMonthCalendarPosition = buildWarning(['The `currentMonthCalendarPosition` prop must be an integer between `1` and the amount of calendars rendered.', 'For example if you have 2 calendars rendered, it should be equal to either 1 or 2.']);
62
62
  var DayCalendarForRange = styled(DayCalendar)(function (_ref2) {
63
- var _$concat, _ref3;
64
63
  var theme = _ref2.theme;
65
- return _ref3 = {
64
+ return _defineProperty(_defineProperty({
66
65
  minWidth: 312,
67
66
  minHeight: weeksContainerHeight
68
- }, _defineProperty(_ref3, "&.".concat(dateRangeCalendarClasses.dayDragging), (_$concat = {}, _defineProperty(_$concat, "& .".concat(dayClasses.day), {
67
+ }, "&.".concat(dateRangeCalendarClasses.dayDragging), _defineProperty(_defineProperty({}, "& .".concat(dayClasses.day), {
69
68
  cursor: 'grabbing'
70
- }), _defineProperty(_$concat, "& .".concat(dayClasses.root, ":not(.").concat(dayClasses.rangeIntervalDayHighlightStart, "):not(.").concat(dayClasses.rangeIntervalDayHighlightEnd, ") .").concat(dayClasses.day, ":not(.").concat(dayClasses.notSelectedDate, ")"), {
69
+ }), "& .".concat(dayClasses.root, ":not(.").concat(dayClasses.rangeIntervalDayHighlightStart, "):not(.").concat(dayClasses.rangeIntervalDayHighlightEnd, ") .").concat(dayClasses.day, ":not(.").concat(dayClasses.notSelectedDate, ")"), {
71
70
  // we can't override `PickersDay` background color here, because it's styles take precedence
72
71
  opacity: 0.6
73
- }), _$concat)), _defineProperty(_ref3, "&:not(.".concat(dateRangeCalendarClasses.dayDragging, ") .").concat(dayClasses.dayOutsideRangeInterval), {
72
+ })), "&:not(.".concat(dateRangeCalendarClasses.dayDragging, ") .").concat(dayClasses.dayOutsideRangeInterval), {
74
73
  '@media (pointer: fine)': {
75
74
  '&:hover': {
76
75
  border: "1px solid ".concat((theme.vars || theme).palette.grey[500])
77
76
  }
78
77
  }
79
- }), _ref3;
78
+ });
80
79
  });
81
80
  function useDateRangeCalendarDefaultizedProps(props, name) {
82
81
  var _themeProps$renderLoa, _themeProps$reduceAni, _props$loading, _props$disablePast, _props$disableFuture, _themeProps$calendars, _themeProps$disableDr;
@@ -51,14 +51,13 @@ var DateRangePickerDayRoot = styled('div', {
51
51
  return [_defineProperty({}, "&.".concat(dateRangePickerDayClasses.rangeIntervalDayHighlight), styles.rangeIntervalDayHighlight), _defineProperty({}, "&.".concat(dateRangePickerDayClasses.rangeIntervalDayHighlightStart), styles.rangeIntervalDayHighlightStart), _defineProperty({}, "&.".concat(dateRangePickerDayClasses.rangeIntervalDayHighlightEnd), styles.rangeIntervalDayHighlightEnd), _defineProperty({}, "&.".concat(dateRangePickerDayClasses.firstVisibleCell), styles.firstVisibleCell), _defineProperty({}, "&.".concat(dateRangePickerDayClasses.lastVisibleCell), styles.lastVisibleCell), _defineProperty({}, "&.".concat(dateRangePickerDayClasses.startOfMonth), styles.startOfMonth), _defineProperty({}, "&.".concat(dateRangePickerDayClasses.endOfMonth), styles.endOfMonth), _defineProperty({}, "&.".concat(dateRangePickerDayClasses.outsideCurrentMonth), styles.outsideCurrentMonth), _defineProperty({}, "&.".concat(dateRangePickerDayClasses.hiddenDayFiller), styles.hiddenDayFiller), styles.root];
52
52
  }
53
53
  })(function (_ref10) {
54
- var _extends2;
55
54
  var theme = _ref10.theme,
56
55
  ownerState = _ref10.ownerState;
57
- return ownerState.isHiddenDayFiller ? {} : _extends((_extends2 = {}, _defineProperty(_extends2, "&:first-of-type .".concat(dateRangePickerDayClasses.rangeIntervalDayPreview), _extends({}, startBorderStyle, {
56
+ return ownerState.isHiddenDayFiller ? {} : _extends(_defineProperty(_defineProperty({}, "&:first-of-type .".concat(dateRangePickerDayClasses.rangeIntervalDayPreview), _extends({}, startBorderStyle, {
58
57
  borderLeftColor: (theme.vars || theme).palette.divider
59
- })), _defineProperty(_extends2, "&:last-of-type .".concat(dateRangePickerDayClasses.rangeIntervalDayPreview), _extends({}, endBorderStyle, {
58
+ })), "&:last-of-type .".concat(dateRangePickerDayClasses.rangeIntervalDayPreview), _extends({}, endBorderStyle, {
60
59
  borderRightColor: (theme.vars || theme).palette.divider
61
- })), _extends2), ownerState.isHighlighting && {
60
+ })), ownerState.isHighlighting && {
62
61
  borderRadius: 0,
63
62
  color: (theme.vars || theme).palette.primary.contrastText,
64
63
  backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.primary.mainChannel, " / ").concat(theme.vars.palette.action.focusOpacity, ")") : alpha(theme.palette.primary.main, theme.palette.action.focusOpacity),
@@ -29,6 +29,7 @@ var MobileDateRangePicker = /*#__PURE__*/React.forwardRef(function MobileDateRan
29
29
  }, defaultizedProps.viewRenderers);
30
30
  var props = _extends({}, defaultizedProps, {
31
31
  viewRenderers: viewRenderers,
32
+ // Force one calendar on mobile to avoid layout issues
32
33
  calendars: 1,
33
34
  views: ['day'],
34
35
  openTo: 'day',
@@ -68,11 +69,6 @@ MobileDateRangePicker.propTypes = {
68
69
  * - the `input` element if there is a field rendered.
69
70
  */
70
71
  autoFocus: PropTypes.bool,
71
- /**
72
- * The number of calendars to render on **desktop**.
73
- * @default 2
74
- */
75
- calendars: PropTypes.oneOf([1, 2, 3]),
76
72
  /**
77
73
  * Class name applied to the root element.
78
74
  */
@@ -61,7 +61,7 @@ StaticDateRangePicker.propTypes = {
61
61
  autoFocus: PropTypes.bool,
62
62
  /**
63
63
  * The number of calendars to render.
64
- * @default 2
64
+ * @default 1 if `displayStaticWrapperAs === 'mobile'`, 2 otherwise.
65
65
  */
66
66
  calendars: PropTypes.oneOf([1, 2, 3]),
67
67
  /**
package/legacy/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers-pro v6.19.0
2
+ * @mui/x-date-pickers-pro v6.19.2
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export var getReleaseInfo = function getReleaseInfo() {
3
- var releaseInfo = "MTcwNDkyNzYwMDAwMA==";
3
+ var releaseInfo = "MTcwNjEzMzYwMDAwMA==";
4
4
  if (process.env.NODE_ENV !== 'production') {
5
5
  // A simple hack to set the value in the test environment (has no build step).
6
6
  // eslint-disable-next-line no-useless-concat
@@ -28,6 +28,7 @@ const MobileDateRangePicker = /*#__PURE__*/React.forwardRef(function MobileDateR
28
28
  }, defaultizedProps.viewRenderers);
29
29
  const props = _extends({}, defaultizedProps, {
30
30
  viewRenderers,
31
+ // Force one calendar on mobile to avoid layout issues
31
32
  calendars: 1,
32
33
  views: ['day'],
33
34
  openTo: 'day',
@@ -65,11 +66,6 @@ MobileDateRangePicker.propTypes = {
65
66
  * - the `input` element if there is a field rendered.
66
67
  */
67
68
  autoFocus: PropTypes.bool,
68
- /**
69
- * The number of calendars to render on **desktop**.
70
- * @default 2
71
- */
72
- calendars: PropTypes.oneOf([1, 2, 3]),
73
69
  /**
74
70
  * Class name applied to the root element.
75
71
  */
@@ -61,7 +61,7 @@ StaticDateRangePicker.propTypes = {
61
61
  autoFocus: PropTypes.bool,
62
62
  /**
63
63
  * The number of calendars to render.
64
- * @default 2
64
+ * @default 1 if `displayStaticWrapperAs === 'mobile'`, 2 otherwise.
65
65
  */
66
66
  calendars: PropTypes.oneOf([1, 2, 3]),
67
67
  /**
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers-pro v6.19.0
2
+ * @mui/x-date-pickers-pro v6.19.2
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTcwNDkyNzYwMDAwMA==";
3
+ const releaseInfo = "MTcwNjEzMzYwMDAwMA==";
4
4
  if (process.env.NODE_ENV !== 'production') {
5
5
  // A simple hack to set the value in the test environment (has no build step).
6
6
  // eslint-disable-next-line no-useless-concat
@@ -37,6 +37,7 @@ const MobileDateRangePicker = exports.MobileDateRangePicker = /*#__PURE__*/React
37
37
  }, defaultizedProps.viewRenderers);
38
38
  const props = (0, _extends2.default)({}, defaultizedProps, {
39
39
  viewRenderers,
40
+ // Force one calendar on mobile to avoid layout issues
40
41
  calendars: 1,
41
42
  views: ['day'],
42
43
  openTo: 'day',
@@ -74,11 +75,6 @@ MobileDateRangePicker.propTypes = {
74
75
  * - the `input` element if there is a field rendered.
75
76
  */
76
77
  autoFocus: _propTypes.default.bool,
77
- /**
78
- * The number of calendars to render on **desktop**.
79
- * @default 2
80
- */
81
- calendars: _propTypes.default.oneOf([1, 2, 3]),
82
78
  /**
83
79
  * Class name applied to the root element.
84
80
  */
@@ -70,7 +70,7 @@ StaticDateRangePicker.propTypes = {
70
70
  autoFocus: _propTypes.default.bool,
71
71
  /**
72
72
  * The number of calendars to render.
73
- * @default 2
73
+ * @default 1 if `displayStaticWrapperAs === 'mobile'`, 2 otherwise.
74
74
  */
75
75
  calendars: _propTypes.default.oneOf([1, 2, 3]),
76
76
  /**
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers-pro v6.19.0
2
+ * @mui/x-date-pickers-pro v6.19.2
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.getReleaseInfo = void 0;
7
7
  var _utils = require("@mui/utils");
8
8
  const getReleaseInfo = () => {
9
- const releaseInfo = "MTcwNDkyNzYwMDAwMA==";
9
+ const releaseInfo = "MTcwNjEzMzYwMDAwMA==";
10
10
  if (process.env.NODE_ENV !== 'production') {
11
11
  // A simple hack to set the value in the test environment (has no build step).
12
12
  // eslint-disable-next-line no-useless-concat
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-date-pickers-pro",
3
- "version": "6.19.0",
3
+ "version": "6.19.2",
4
4
  "description": "The commercial edition of the date picker components (MUI X).",
5
5
  "author": "MUI Team",
6
6
  "main": "./node/index.js",
@@ -33,7 +33,7 @@
33
33
  "@babel/runtime": "^7.23.2",
34
34
  "@mui/base": "^5.0.0-beta.22",
35
35
  "@mui/utils": "^5.14.16",
36
- "@mui/x-date-pickers": "6.19.0",
36
+ "@mui/x-date-pickers": "6.19.2",
37
37
  "@mui/x-license-pro": "6.10.2",
38
38
  "clsx": "^2.0.0",
39
39
  "prop-types": "^15.8.1",