@mui/x-date-pickers 7.0.0-alpha.3 → 7.0.0-alpha.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.
Files changed (98) hide show
  1. package/AdapterLuxon/AdapterLuxon.d.ts +27 -27
  2. package/AdapterLuxon/AdapterLuxon.js +0 -1
  3. package/CHANGELOG.md +123 -0
  4. package/DateCalendar/useCalendarState.js +0 -1
  5. package/MonthCalendar/MonthCalendar.js +0 -1
  6. package/MultiSectionDigitalClock/MultiSectionDigitalClockSection.js +8 -2
  7. package/MultiSectionDigitalClock/multiSectionDigitalClockSectionClasses.js +2 -2
  8. package/PickersCalendarHeader/PickersCalendarHeader.js +4 -4
  9. package/TimeClock/Clock.js +0 -1
  10. package/TimeClock/ClockPointer.js +0 -1
  11. package/YearCalendar/YearCalendar.js +0 -1
  12. package/index.js +1 -1
  13. package/internals/components/PickersTextField/Outline.d.ts +7 -1
  14. package/internals/components/PickersTextField/Outline.js +2 -4
  15. package/internals/components/PickersTextField/PickersInput.d.ts +1 -2
  16. package/internals/components/PickersTextField/PickersInput.js +117 -112
  17. package/internals/components/PickersTextField/PickersInput.types.d.ts +35 -20
  18. package/internals/components/PickersTextField/PickersTextField.js +57 -48
  19. package/internals/components/PickersTextField/PickersTextField.types.d.ts +19 -16
  20. package/internals/components/PickersTextField/pickersTextFieldClasses.d.ts +11 -7
  21. package/internals/components/PickersTextField/pickersTextFieldClasses.js +1 -1
  22. package/internals/constants/dimensions.d.ts +1 -1
  23. package/internals/constants/dimensions.js +1 -1
  24. package/internals/demo/DemoContainer.d.ts +4 -0
  25. package/internals/demo/DemoContainer.js +47 -19
  26. package/internals/hooks/useClockReferenceDate.js +0 -1
  27. package/internals/hooks/useField/useField.utils.js +0 -2
  28. package/internals/hooks/useViews.js +0 -1
  29. package/legacy/AdapterLuxon/AdapterLuxon.js +0 -1
  30. package/legacy/DateCalendar/useCalendarState.js +0 -1
  31. package/legacy/MonthCalendar/MonthCalendar.js +0 -1
  32. package/legacy/MultiSectionDigitalClock/MultiSectionDigitalClockSection.js +8 -2
  33. package/legacy/MultiSectionDigitalClock/multiSectionDigitalClockSectionClasses.js +2 -2
  34. package/legacy/PickersCalendarHeader/PickersCalendarHeader.js +4 -4
  35. package/legacy/TimeClock/Clock.js +0 -1
  36. package/legacy/TimeClock/ClockPointer.js +0 -1
  37. package/legacy/YearCalendar/YearCalendar.js +0 -1
  38. package/legacy/index.js +1 -1
  39. package/legacy/internals/components/PickersTextField/Outline.js +1 -4
  40. package/legacy/internals/components/PickersTextField/PickersInput.js +119 -115
  41. package/legacy/internals/components/PickersTextField/PickersTextField.js +51 -51
  42. package/legacy/internals/components/PickersTextField/pickersTextFieldClasses.js +1 -1
  43. package/legacy/internals/constants/dimensions.js +1 -1
  44. package/legacy/internals/demo/DemoContainer.js +45 -19
  45. package/legacy/internals/hooks/useClockReferenceDate.js +0 -1
  46. package/legacy/internals/hooks/useField/useField.utils.js +0 -2
  47. package/legacy/internals/hooks/useViews.js +0 -1
  48. package/legacy/locales/plPL.js +0 -1
  49. package/legacy/locales/svSE.js +0 -1
  50. package/legacy/locales/urPK.js +0 -1
  51. package/locales/plPL.js +0 -1
  52. package/locales/svSE.js +0 -1
  53. package/locales/urPK.js +0 -1
  54. package/modern/AdapterLuxon/AdapterLuxon.js +0 -1
  55. package/modern/DateCalendar/useCalendarState.js +0 -1
  56. package/modern/MonthCalendar/MonthCalendar.js +0 -1
  57. package/modern/MultiSectionDigitalClock/MultiSectionDigitalClockSection.js +8 -2
  58. package/modern/MultiSectionDigitalClock/multiSectionDigitalClockSectionClasses.js +2 -2
  59. package/modern/PickersCalendarHeader/PickersCalendarHeader.js +4 -4
  60. package/modern/TimeClock/Clock.js +0 -1
  61. package/modern/TimeClock/ClockPointer.js +0 -1
  62. package/modern/YearCalendar/YearCalendar.js +0 -1
  63. package/modern/index.js +1 -1
  64. package/modern/internals/components/PickersTextField/Outline.js +2 -4
  65. package/modern/internals/components/PickersTextField/PickersInput.js +116 -112
  66. package/modern/internals/components/PickersTextField/PickersTextField.js +57 -47
  67. package/modern/internals/components/PickersTextField/pickersTextFieldClasses.js +1 -1
  68. package/modern/internals/constants/dimensions.js +1 -1
  69. package/modern/internals/demo/DemoContainer.js +47 -19
  70. package/modern/internals/hooks/useClockReferenceDate.js +0 -1
  71. package/modern/internals/hooks/useField/useField.utils.js +0 -2
  72. package/modern/internals/hooks/useViews.js +0 -1
  73. package/modern/locales/plPL.js +0 -1
  74. package/modern/locales/svSE.js +0 -1
  75. package/modern/locales/urPK.js +0 -1
  76. package/node/AdapterLuxon/AdapterLuxon.js +0 -1
  77. package/node/DateCalendar/useCalendarState.js +0 -1
  78. package/node/MonthCalendar/MonthCalendar.js +0 -1
  79. package/node/MultiSectionDigitalClock/MultiSectionDigitalClockSection.js +8 -2
  80. package/node/MultiSectionDigitalClock/multiSectionDigitalClockSectionClasses.js +2 -2
  81. package/node/PickersCalendarHeader/PickersCalendarHeader.js +4 -4
  82. package/node/TimeClock/Clock.js +0 -1
  83. package/node/TimeClock/ClockPointer.js +0 -1
  84. package/node/YearCalendar/YearCalendar.js +0 -1
  85. package/node/index.js +1 -1
  86. package/node/internals/components/PickersTextField/Outline.js +2 -4
  87. package/node/internals/components/PickersTextField/PickersInput.js +119 -115
  88. package/node/internals/components/PickersTextField/PickersTextField.js +58 -48
  89. package/node/internals/components/PickersTextField/pickersTextFieldClasses.js +1 -1
  90. package/node/internals/constants/dimensions.js +1 -1
  91. package/node/internals/demo/DemoContainer.js +47 -19
  92. package/node/internals/hooks/useClockReferenceDate.js +0 -1
  93. package/node/internals/hooks/useField/useField.utils.js +0 -2
  94. package/node/internals/hooks/useViews.js +0 -1
  95. package/node/locales/plPL.js +0 -1
  96. package/node/locales/svSE.js +0 -1
  97. package/node/locales/urPK.js +0 -1
  98. package/package.json +5 -5
@@ -38,12 +38,12 @@ export declare class AdapterLuxon implements MuiPickersAdapter<DateTime, string>
38
38
  formatTokenMap: FieldFormatTokenMap;
39
39
  constructor({ locale, formats }?: AdapterOptions<string, never>);
40
40
  private setLocaleToValue;
41
- date: <T extends string | null | undefined>(value?: T | undefined, timezone?: PickersTimezone) => DateBuilderReturnType<T, DateTime>;
42
- getInvalidDate: () => DateTime;
41
+ date: <T extends string | null | undefined>(value?: T | undefined, timezone?: PickersTimezone) => DateBuilderReturnType<T, DateTime<boolean>>;
42
+ getInvalidDate: () => DateTime<true> | DateTime<false>;
43
43
  getTimezone: (value: DateTime) => string;
44
44
  setTimezone: (value: DateTime, timezone: PickersTimezone) => DateTime;
45
45
  toJsDate: (value: DateTime) => Date;
46
- parse: (value: string, formatString: string) => DateTime | null;
46
+ parse: (value: string, formatString: string) => DateTime<true> | DateTime<false> | null;
47
47
  getCurrentLocaleCode: () => string;
48
48
  is12HourCycleInCurrentLocale: () => boolean;
49
49
  expandFormat: (format: string) => string;
@@ -63,21 +63,21 @@ export declare class AdapterLuxon implements MuiPickersAdapter<DateTime, string>
63
63
  isBeforeYear: (value: DateTime, comparing: DateTime) => boolean;
64
64
  isBeforeDay: (value: DateTime, comparing: DateTime) => boolean;
65
65
  isWithinRange: (value: DateTime, [start, end]: [DateTime, DateTime]) => boolean;
66
- startOfYear: (value: DateTime) => DateTime;
67
- startOfMonth: (value: DateTime) => DateTime;
68
- startOfWeek: (value: DateTime) => DateTime;
69
- startOfDay: (value: DateTime) => DateTime;
70
- endOfYear: (value: DateTime) => DateTime;
71
- endOfMonth: (value: DateTime) => DateTime;
72
- endOfWeek: (value: DateTime) => DateTime;
73
- endOfDay: (value: DateTime) => DateTime;
74
- addYears: (value: DateTime, amount: number) => DateTime;
75
- addMonths: (value: DateTime, amount: number) => DateTime;
76
- addWeeks: (value: DateTime, amount: number) => DateTime;
77
- addDays: (value: DateTime, amount: number) => DateTime;
78
- addHours: (value: DateTime, amount: number) => DateTime;
79
- addMinutes: (value: DateTime, amount: number) => DateTime;
80
- addSeconds: (value: DateTime, amount: number) => DateTime;
66
+ startOfYear: (value: DateTime) => DateTime<boolean>;
67
+ startOfMonth: (value: DateTime) => DateTime<boolean>;
68
+ startOfWeek: (value: DateTime) => DateTime<boolean>;
69
+ startOfDay: (value: DateTime) => DateTime<boolean>;
70
+ endOfYear: (value: DateTime) => DateTime<boolean>;
71
+ endOfMonth: (value: DateTime) => DateTime<boolean>;
72
+ endOfWeek: (value: DateTime) => DateTime<boolean>;
73
+ endOfDay: (value: DateTime) => DateTime<boolean>;
74
+ addYears: (value: DateTime, amount: number) => DateTime<boolean>;
75
+ addMonths: (value: DateTime, amount: number) => DateTime<boolean>;
76
+ addWeeks: (value: DateTime, amount: number) => DateTime<boolean>;
77
+ addDays: (value: DateTime, amount: number) => DateTime<boolean>;
78
+ addHours: (value: DateTime, amount: number) => DateTime<boolean>;
79
+ addMinutes: (value: DateTime, amount: number) => DateTime<boolean>;
80
+ addSeconds: (value: DateTime, amount: number) => DateTime<boolean>;
81
81
  getYear: (value: DateTime) => number;
82
82
  getMonth: (value: DateTime) => number;
83
83
  getDate: (value: DateTime) => number;
@@ -85,15 +85,15 @@ export declare class AdapterLuxon implements MuiPickersAdapter<DateTime, string>
85
85
  getMinutes: (value: DateTime) => number;
86
86
  getSeconds: (value: DateTime) => number;
87
87
  getMilliseconds: (value: DateTime) => number;
88
- setYear: (value: DateTime, year: number) => DateTime;
89
- setMonth: (value: DateTime, month: number) => DateTime;
90
- setDate: (value: DateTime, date: number) => DateTime;
91
- setHours: (value: DateTime, hours: number) => DateTime;
92
- setMinutes: (value: DateTime, minutes: number) => DateTime;
93
- setSeconds: (value: DateTime, seconds: number) => DateTime;
94
- setMilliseconds: (value: DateTime, milliseconds: number) => DateTime;
88
+ setYear: (value: DateTime, year: number) => DateTime<boolean>;
89
+ setMonth: (value: DateTime, month: number) => DateTime<boolean>;
90
+ setDate: (value: DateTime, date: number) => DateTime<boolean>;
91
+ setHours: (value: DateTime, hours: number) => DateTime<boolean>;
92
+ setMinutes: (value: DateTime, minutes: number) => DateTime<boolean>;
93
+ setSeconds: (value: DateTime, seconds: number) => DateTime<boolean>;
94
+ setMilliseconds: (value: DateTime, milliseconds: number) => DateTime<boolean>;
95
95
  getDaysInMonth: (value: DateTime) => import("luxon").PossibleDaysInMonth;
96
- getWeekArray: (value: DateTime) => DateTime[][];
96
+ getWeekArray: (value: DateTime) => DateTime<boolean>[][];
97
97
  getWeekNumber: (value: DateTime) => any;
98
- getYearRange: ([start, end]: [DateTime, DateTime]) => DateTime[];
98
+ getYearRange: ([start, end]: [DateTime, DateTime]) => DateTime<boolean>[];
99
99
  }
@@ -231,7 +231,6 @@ export class AdapterLuxon {
231
231
  if (typeof Intl === 'undefined' || typeof Intl.DateTimeFormat === 'undefined') {
232
232
  return true; // Luxon defaults to en-US if Intl not found
233
233
  }
234
-
235
234
  return Boolean((_Intl$DateTimeFormat = new Intl.DateTimeFormat(this.locale, {
236
235
  hour: 'numeric'
237
236
  })) == null || (_Intl$DateTimeFormat = _Intl$DateTimeFormat.resolvedOptions()) == null ? void 0 : _Intl$DateTimeFormat.hour12);
package/CHANGELOG.md CHANGED
@@ -3,6 +3,89 @@
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
+ ## 7.0.0-alpha.4
7
+
8
+ _Dec 8, 2023_
9
+
10
+ We'd like to offer a big thanks to the 11 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 🚀 The scatter charts now use voronoi to trigger items
13
+
14
+ Users needed to hover the item to highlight the scatter item or show the tooltip.
15
+ Now they can interact with data by triggering the closest element. See the [docs page](https://next.mui.com/x/react-charts/scatter/#interaction) for more info.
16
+
17
+ - 📚 Add [Pickers FAQ page](https://next.mui.com/x/react-date-pickers/faq/)
18
+ - 🎉 The Data Grid Header filters feature is now stable
19
+ - 🌍 Improve Danish (da-DK) locale on Data Grid
20
+ - 🐞 Bugfixes
21
+
22
+ ### Data Grid
23
+
24
+ #### Breaking changes
25
+
26
+ - The header filters feature is now stable. `unstable_` prefix is removed from prop `headerFilters` and related exports.
27
+ See [migration docs](https://next.mui.com/x/migration/migration-data-grid-v6/#filtering) for more details.
28
+
29
+ - The `GridColDef['type']` has been narrowed down to only accept the built-in column types.
30
+ TypeScript users need to use the `GridColDef` interface when defining columns:
31
+
32
+ ```tsx
33
+ // 🛑 `type` is inferred as `string` and is too wide
34
+ const columns = [{ type: 'number', field: 'id' }];
35
+ <DataGrid columns={columns} />;
36
+
37
+ // ✅ `type` is `'number'`
38
+ const columns: GridColDef[] = [{ type: 'number', field: 'id' }];
39
+ <DataGrid columns={columns} />;
40
+
41
+ // ✅ Alternalively, `as const` can be used to narrow down the type
42
+ const columns = [{ type: 'number' as const, field: 'id' }];
43
+ <DataGrid columns={columns} />;
44
+ ```
45
+
46
+ #### `@mui/x-data-grid@7.0.0-alpha.4`
47
+
48
+ - [DataGrid] Added a guard for reorder cells (#11159) @michelengelen
49
+ - [DataGrid] Narrow down `GridColDef['type']` (#11270) @cherniavskii
50
+ - [l10n] Improve Danish (da-DK) locale (#11304) @goibon
51
+
52
+ #### `@mui/x-data-grid-pro@7.0.0-alpha.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
53
+
54
+ Same changes as in `@mui/x-data-grid@7.0.0-alpha.4`, plus:
55
+
56
+ - [DataGridPro] Make header filters feature stable (#11243) @MBilalShafi
57
+
58
+ #### `@mui/x-data-grid-premium@7.0.0-alpha.4` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
59
+
60
+ Same changes as in `@mui/x-data-grid-pro@7.0.0-alpha.4`.
61
+
62
+ ### Date Pickers
63
+
64
+ #### `@mui/x-date-pickers@7.0.0-alpha.4`
65
+
66
+ - [fields] Rework `PickersTextField` (#11258) @flaviendelangle
67
+ - [pickers] Fix `MultiSectionDigitalClock` issues (#11305) @LukasTy
68
+ - [pickers] Fix views height consistency (#11337) @LukasTy
69
+
70
+ #### `@mui/x-date-pickers-pro@7.0.0-alpha.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
71
+
72
+ Same changes as in `@mui/x-date-pickers@7.0.0-alpha.4`.
73
+
74
+ ### Charts / `@mui/x-charts@7.0.0-alpha.4`
75
+
76
+ - [charts] Remove animation on sparkline (#11311) @oliviertassinari
77
+ - [charts] Use voronoi cells to trigger interaction with scatter items (#10981) @alexfauquette
78
+ - [charts] Add `@mui/utils` as a dependency (#11351) @michelengelen
79
+
80
+ ### Docs
81
+
82
+ - [docs] Add FAQ page (#11271) @noraleonte
83
+ - [docs] Add a doc section on how to override the start of the week with each adapter (#11223) @flaviendelangle
84
+ - [docs] Added params to `onPaginationModelChange` docs (#10191) @JFBenzs
85
+ - [docs] Fix typo (#11324) @cadam11
86
+ - [docs] Improve `DemoContainer` styling coverage (#11315) @LukasTy
87
+ - [docs] General revision of the Charts docs (#11249) @danilo-leal
88
+
6
89
  ## 7.0.0-alpha.3
7
90
 
8
91
  _Dec 4, 2023_
@@ -866,6 +949,46 @@ Here is an example of the renaming for the `<ChartsTooltip />` component.
866
949
  - [core] Update release instructions as per v7 configuration (#10962) @MBilalShafi
867
950
  - [license] Correctly throw errors (#10924) @oliviertassinari
868
951
 
952
+ ## 6.18.4
953
+
954
+ _Dec 8, 2023_
955
+
956
+ We'd like to offer a big thanks to the 6 contributors who made this release possible. Here are some highlights ✨:
957
+
958
+ - 📚 Add [Pickers FAQ page](https://mui.com/x/react-date-pickers/faq/)
959
+ - 🌍 Improve Danish (da-DK) locale on Data Grid
960
+ - 🐞 Bugfixes
961
+
962
+ ### Data Grid
963
+
964
+ #### `@mui/x-data-grid@6.18.4`
965
+
966
+ - [DataGrid] Fix cell slot style override (#11215) @oliviertassinari
967
+ - [l10n] Improve Danish (da-DK) locale (#11346) @goibon
968
+
969
+ #### `@mui/x-data-grid-pro@6.18.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
970
+
971
+ Same changes as in `@mui/x-data-grid@6.18.4`.
972
+
973
+ #### `@mui/x-data-grid-premium@6.18.4` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
974
+
975
+ Same changes as in `@mui/x-data-grid-pro@6.18.4`.
976
+
977
+ ### Date Pickers
978
+
979
+ #### `@mui/x-date-pickers@6.18.4`
980
+
981
+ - [pickers] Fix `MultiSectionDigitalClock` issues (#11308) @LukasTy
982
+
983
+ #### `@mui/x-date-pickers-pro@6.18.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
984
+
985
+ Same changes as in `@mui/x-date-pickers@6.18.4`.
986
+
987
+ ### Docs
988
+
989
+ - [docs] Fix typo (#11323) @cadam11
990
+ - [docs] Add FAQ page (#11347) @noraleonte
991
+
869
992
  ## 6.18.3
870
993
 
871
994
  _Dec 4, 2023_
@@ -61,7 +61,6 @@ export const useCalendarState = params => {
61
61
  });
62
62
  }, [] // eslint-disable-line react-hooks/exhaustive-deps
63
63
  );
64
-
65
64
  const [calendarState, dispatch] = React.useReducer(reducerFn, {
66
65
  isMonthSwitchingAnimating: false,
67
66
  focusedDay: referenceDate,
@@ -110,7 +110,6 @@ export const MonthCalendar = /*#__PURE__*/React.forwardRef(function MonthCalenda
110
110
  granularity: SECTION_TYPE_GRANULARITY.month
111
111
  }), [] // eslint-disable-line react-hooks/exhaustive-deps
112
112
  );
113
-
114
113
  const ownerState = props;
115
114
  const classes = useUtilityClasses(ownerState);
116
115
  const todayMonth = React.useMemo(() => utils.getMonth(now), [utils, now]);
@@ -36,7 +36,12 @@ const MultiSectionDigitalClockSectionRoot = styled(MenuList, {
36
36
  '@media (prefers-reduced-motion: no-preference)': {
37
37
  scrollBehavior: ownerState.alreadyRendered ? 'smooth' : 'auto'
38
38
  },
39
- '&:hover': {
39
+ '@media (pointer: fine)': {
40
+ '&:hover': {
41
+ overflowY: 'auto'
42
+ }
43
+ },
44
+ '@media (pointer: none), (pointer: coarse)': {
40
45
  overflowY: 'auto'
41
46
  },
42
47
  '&:not(:first-of-type)': {
@@ -154,7 +159,8 @@ export const MultiSectionDigitalClockSection = /*#__PURE__*/React.forwardRef(fun
154
159
  "aria-disabled": readOnly,
155
160
  "aria-label": option.ariaLabel,
156
161
  "aria-selected": isSelected,
157
- tabIndex: tabIndex
162
+ tabIndex: tabIndex,
163
+ className: classes.item
158
164
  }, slotProps == null ? void 0 : slotProps.digitalClockSectionItem, {
159
165
  children: option.label
160
166
  }), option.label);
@@ -1,6 +1,6 @@
1
1
  import generateUtilityClass from '@mui/utils/generateUtilityClass';
2
2
  import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
3
3
  export function getMultiSectionDigitalClockSectionUtilityClass(slot) {
4
- return generateUtilityClass('MuiMultiSectionDigitalClock', slot);
4
+ return generateUtilityClass('MuiMultiSectionDigitalClockSection', slot);
5
5
  }
6
- export const multiSectionDigitalClockSectionClasses = generateUtilityClasses('MuiMultiSectionDigitalClock', ['root', 'item']);
6
+ export const multiSectionDigitalClockSectionClasses = generateUtilityClasses('MuiMultiSectionDigitalClockSection', ['root', 'item']);
@@ -38,13 +38,13 @@ const PickersCalendarHeaderRoot = styled('div', {
38
38
  })({
39
39
  display: 'flex',
40
40
  alignItems: 'center',
41
- marginTop: 16,
42
- marginBottom: 8,
41
+ marginTop: 12,
42
+ marginBottom: 4,
43
43
  paddingLeft: 24,
44
44
  paddingRight: 12,
45
45
  // prevent jumping in safari
46
- maxHeight: 30,
47
- minHeight: 30
46
+ maxHeight: 40,
47
+ minHeight: 40
48
48
  });
49
49
  const PickersCalendarHeaderLabelContainer = styled('div', {
50
50
  name: 'MuiPickersCalendarHeader',
@@ -276,7 +276,6 @@ export function Clock(inProps) {
276
276
  // do nothing
277
277
  }
278
278
  };
279
-
280
279
  return /*#__PURE__*/_jsxs(ClockRoot, {
281
280
  className: clsx(className, classes.root),
282
281
  children: [/*#__PURE__*/_jsxs(ClockClock, {
@@ -85,7 +85,6 @@ export function ClockPointer(inProps) {
85
85
  if (type === 'hours' && viewValue > 12) {
86
86
  angle -= 360; // round up angle to max 360 degrees
87
87
  }
88
-
89
88
  return {
90
89
  height: Math.round((isInner ? 0.26 : 0.4) * CLOCK_WIDTH),
91
90
  transform: `rotateZ(${angle}deg)`
@@ -116,7 +116,6 @@ export const YearCalendar = /*#__PURE__*/React.forwardRef(function YearCalendar(
116
116
  granularity: SECTION_TYPE_GRANULARITY.year
117
117
  }), [] // eslint-disable-line react-hooks/exhaustive-deps
118
118
  );
119
-
120
119
  const ownerState = props;
121
120
  const classes = useUtilityClasses(ownerState);
122
121
  const todayYear = React.useMemo(() => utils.getYear(now), [utils, now]);
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers v7.0.0-alpha.3
2
+ * @mui/x-date-pickers v7.0.0-alpha.4
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -1,2 +1,8 @@
1
1
  import * as React from 'react';
2
- export default function Outline(props: any): React.JSX.Element;
2
+ interface OutlineProps extends React.HTMLAttributes<HTMLFieldSetElement> {
3
+ notched: boolean;
4
+ shrink: boolean;
5
+ label: React.ReactNode;
6
+ }
7
+ export default function Outline(props: OutlineProps): React.JSX.Element;
8
+ export {};
@@ -1,6 +1,6 @@
1
1
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
2
2
  import _extends from "@babel/runtime/helpers/esm/extends";
3
- const _excluded = ["children", "classes", "className", "label", "notched"];
3
+ const _excluded = ["children", "className", "label"];
4
4
  import * as React from 'react';
5
5
  import { styled } from '@mui/material/styles';
6
6
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -69,13 +69,11 @@ const OutlineLegend = styled('legend')(({
69
69
  export default function Outline(props) {
70
70
  const {
71
71
  className,
72
- label,
73
- notched
72
+ label
74
73
  } = props,
75
74
  other = _objectWithoutPropertiesLoose(props, _excluded);
76
75
  const withLabel = label != null && label !== '';
77
76
  const ownerState = _extends({}, props, {
78
- notched,
79
77
  withLabel
80
78
  });
81
79
  return /*#__PURE__*/_jsx(OutlineRoot, _extends({
@@ -1,4 +1,3 @@
1
1
  import * as React from 'react';
2
2
  import { PickersInputProps } from './PickersInput.types';
3
- declare const PickersInput: React.ForwardRefExoticComponent<Omit<PickersInputProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
4
- export default PickersInput;
3
+ export declare const PickersInput: React.ForwardRefExoticComponent<Omit<PickersInputProps, "ref"> & React.RefAttributes<HTMLDivElement>>;