@mui/x-date-pickers 6.16.2 → 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 +131 -0
- package/DateCalendar/DayCalendar.js +1 -3
- package/DateField/DateField.js +1 -1
- package/DatePicker/DatePicker.d.ts +10 -0
- package/DatePicker/DatePicker.js +10 -0
- package/DatePicker/DatePickerToolbar.d.ts +10 -0
- package/DatePicker/DatePickerToolbar.js +10 -0
- package/DateTimeField/DateTimeField.js +1 -1
- package/DateTimePicker/DateTimePickerTabs.d.ts +10 -0
- package/DateTimePicker/DateTimePickerTabs.js +11 -0
- package/DateTimePicker/DateTimePickerToolbar.d.ts +10 -0
- package/DateTimePicker/DateTimePickerToolbar.js +11 -0
- package/DayCalendarSkeleton/DayCalendarSkeleton.d.ts +1 -2
- package/DayCalendarSkeleton/DayCalendarSkeleton.js +1 -2
- package/DesktopDatePicker/DesktopDatePicker.d.ts +10 -0
- package/DesktopDatePicker/DesktopDatePicker.js +10 -0
- package/DigitalClock/DigitalClock.d.ts +10 -0
- package/DigitalClock/DigitalClock.js +10 -0
- package/LocalizationProvider/LocalizationProvider.d.ts +12 -0
- package/LocalizationProvider/LocalizationProvider.js +12 -0
- package/MobileDatePicker/MobileDatePicker.d.ts +10 -0
- package/MobileDatePicker/MobileDatePicker.js +10 -0
- package/MultiSectionDigitalClock/MultiSectionDigitalClock.d.ts +10 -0
- package/MultiSectionDigitalClock/MultiSectionDigitalClock.js +10 -0
- package/PickersActionBar/PickersActionBar.d.ts +10 -0
- package/PickersActionBar/PickersActionBar.js +10 -0
- package/PickersCalendarHeader/PickersCalendarHeader.d.ts +11 -0
- package/PickersCalendarHeader/PickersCalendarHeader.js +11 -0
- package/PickersDay/PickersDay.d.ts +1 -3
- package/PickersDay/PickersDay.js +1 -3
- package/PickersLayout/PickersLayout.d.ts +9 -0
- package/PickersLayout/PickersLayout.js +10 -0
- package/PickersShortcuts/PickersShortcuts.d.ts +9 -0
- package/PickersShortcuts/PickersShortcuts.js +9 -0
- package/StaticDatePicker/StaticDatePicker.d.ts +10 -0
- package/StaticDatePicker/StaticDatePicker.js +10 -0
- package/TimeClock/TimeClock.d.ts +4 -0
- package/TimeClock/TimeClock.js +4 -0
- package/TimeField/TimeField.js +1 -1
- package/TimePicker/TimePickerToolbar.d.ts +10 -0
- package/TimePicker/TimePickerToolbar.js +11 -0
- package/index.js +1 -1
- package/internals/components/FakeTextField/FakeTextField.d.ts +18 -3
- package/internals/components/FakeTextField/FakeTextField.js +39 -14
- package/internals/hooks/useField/useField.js +14 -4
- package/internals/hooks/useField/useField.utils.js +1 -1
- package/internals/hooks/useField/useFieldState.js +5 -8
- 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/DateField/DateField.js +1 -1
- package/legacy/DatePicker/DatePicker.js +10 -0
- package/legacy/DatePicker/DatePickerToolbar.js +10 -0
- package/legacy/DateTimeField/DateTimeField.js +1 -1
- package/legacy/DateTimePicker/DateTimePickerTabs.js +11 -0
- package/legacy/DateTimePicker/DateTimePickerToolbar.js +11 -0
- package/legacy/DayCalendarSkeleton/DayCalendarSkeleton.js +1 -2
- package/legacy/DesktopDatePicker/DesktopDatePicker.js +10 -0
- package/legacy/DigitalClock/DigitalClock.js +10 -0
- package/legacy/LocalizationProvider/LocalizationProvider.js +12 -0
- package/legacy/MobileDatePicker/MobileDatePicker.js +10 -0
- package/legacy/MultiSectionDigitalClock/MultiSectionDigitalClock.js +10 -0
- package/legacy/PickersActionBar/PickersActionBar.js +10 -0
- package/legacy/PickersCalendarHeader/PickersCalendarHeader.js +11 -0
- package/legacy/PickersDay/PickersDay.js +1 -3
- package/legacy/PickersLayout/PickersLayout.js +10 -0
- package/legacy/PickersShortcuts/PickersShortcuts.js +9 -0
- package/legacy/StaticDatePicker/StaticDatePicker.js +10 -0
- package/legacy/TimeClock/TimeClock.js +4 -0
- package/legacy/TimeField/TimeField.js +1 -1
- package/legacy/TimePicker/TimePickerToolbar.js +11 -0
- package/legacy/index.js +1 -1
- package/legacy/internals/components/FakeTextField/FakeTextField.js +45 -15
- package/legacy/internals/hooks/useField/useField.js +14 -4
- package/legacy/internals/hooks/useField/useField.utils.js +1 -1
- package/legacy/internals/hooks/useField/useFieldState.js +5 -8
- 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/DateField/DateField.js +1 -1
- package/modern/DatePicker/DatePicker.js +10 -0
- package/modern/DatePicker/DatePickerToolbar.js +10 -0
- package/modern/DateTimeField/DateTimeField.js +1 -1
- package/modern/DateTimePicker/DateTimePickerTabs.js +11 -0
- package/modern/DateTimePicker/DateTimePickerToolbar.js +11 -0
- package/modern/DayCalendarSkeleton/DayCalendarSkeleton.js +1 -2
- package/modern/DesktopDatePicker/DesktopDatePicker.js +10 -0
- package/modern/DigitalClock/DigitalClock.js +10 -0
- package/modern/LocalizationProvider/LocalizationProvider.js +12 -0
- package/modern/MobileDatePicker/MobileDatePicker.js +10 -0
- package/modern/MultiSectionDigitalClock/MultiSectionDigitalClock.js +10 -0
- package/modern/PickersActionBar/PickersActionBar.js +10 -0
- package/modern/PickersCalendarHeader/PickersCalendarHeader.js +11 -0
- package/modern/PickersDay/PickersDay.js +1 -3
- package/modern/PickersLayout/PickersLayout.js +10 -0
- package/modern/PickersShortcuts/PickersShortcuts.js +9 -0
- package/modern/StaticDatePicker/StaticDatePicker.js +10 -0
- package/modern/TimeClock/TimeClock.js +4 -0
- package/modern/TimeField/TimeField.js +1 -1
- package/modern/TimePicker/TimePickerToolbar.js +11 -0
- package/modern/index.js +1 -1
- package/modern/internals/components/FakeTextField/FakeTextField.js +39 -14
- package/modern/internals/hooks/useField/useField.js +14 -4
- package/modern/internals/hooks/useField/useField.utils.js +1 -1
- package/modern/internals/hooks/useField/useFieldState.js +5 -8
- 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/DateCalendar.js +2 -2
- package/node/DateCalendar/DayCalendar.js +3 -5
- package/node/DateCalendar/PickersFadeTransitionGroup.js +2 -2
- package/node/DateCalendar/PickersSlideTransition.js +2 -2
- package/node/DateCalendar/useCalendarState.js +2 -2
- package/node/DateCalendar/useIsDateDisabled.js +2 -2
- package/node/DateField/DateField.js +3 -3
- package/node/DatePicker/DatePicker.js +12 -2
- package/node/DatePicker/DatePickerToolbar.js +12 -2
- package/node/DatePicker/shared.js +2 -2
- package/node/DateTimeField/DateTimeField.js +3 -3
- package/node/DateTimePicker/DateTimePicker.js +2 -2
- package/node/DateTimePicker/DateTimePickerTabs.js +13 -2
- package/node/DateTimePicker/DateTimePickerToolbar.js +13 -2
- package/node/DateTimePicker/shared.js +2 -2
- package/node/DayCalendarSkeleton/DayCalendarSkeleton.js +3 -4
- package/node/DesktopDatePicker/DesktopDatePicker.js +12 -2
- package/node/DesktopDateTimePicker/DesktopDateTimePicker.js +2 -2
- package/node/DesktopTimePicker/DesktopTimePicker.js +2 -2
- package/node/DigitalClock/DigitalClock.js +12 -2
- package/node/LocalizationProvider/LocalizationProvider.js +14 -2
- package/node/MobileDatePicker/MobileDatePicker.js +12 -2
- package/node/MobileDateTimePicker/MobileDateTimePicker.js +2 -2
- package/node/MobileTimePicker/MobileTimePicker.js +2 -2
- package/node/MonthCalendar/MonthCalendar.js +2 -2
- package/node/MonthCalendar/PickersMonth.js +2 -2
- package/node/MultiSectionDigitalClock/MultiSectionDigitalClock.js +12 -2
- package/node/MultiSectionDigitalClock/MultiSectionDigitalClockSection.js +2 -2
- package/node/PickersActionBar/PickersActionBar.js +12 -2
- package/node/PickersCalendarHeader/PickersCalendarHeader.js +13 -2
- package/node/PickersDay/PickersDay.js +3 -5
- package/node/PickersLayout/PickersLayout.js +12 -2
- package/node/PickersLayout/usePickerLayout.js +2 -2
- package/node/PickersShortcuts/PickersShortcuts.js +11 -2
- package/node/StaticDatePicker/StaticDatePicker.js +12 -2
- package/node/StaticDateTimePicker/StaticDateTimePicker.js +2 -2
- package/node/StaticTimePicker/StaticTimePicker.js +2 -2
- package/node/TimeClock/Clock.js +2 -2
- package/node/TimeClock/ClockNumber.js +2 -2
- package/node/TimeClock/ClockNumbers.js +2 -2
- package/node/TimeClock/ClockPointer.js +2 -2
- package/node/TimeClock/TimeClock.js +6 -2
- package/node/TimeField/TimeField.js +3 -3
- package/node/TimePicker/TimePicker.js +2 -2
- package/node/TimePicker/TimePickerToolbar.js +13 -2
- package/node/TimePicker/shared.js +2 -2
- package/node/YearCalendar/PickersYear.js +2 -2
- package/node/YearCalendar/YearCalendar.js +2 -2
- package/node/dateTimeViewRenderers/dateTimeViewRenderers.js +2 -2
- package/node/dateViewRenderers/dateViewRenderers.js +2 -2
- package/node/hooks/useClearableField.js +2 -2
- package/node/icons/index.js +2 -2
- package/node/index.js +1 -1
- package/node/internals/components/FakeTextField/FakeTextField.js +43 -18
- package/node/internals/components/PickersArrowSwitcher/PickersArrowSwitcher.js +2 -2
- package/node/internals/components/PickersModalDialog.js +2 -2
- package/node/internals/components/PickersPopper.js +2 -2
- package/node/internals/components/PickersToolbar.js +2 -2
- package/node/internals/components/PickersToolbarButton.js +2 -2
- package/node/internals/components/PickersToolbarText.js +2 -2
- package/node/internals/demo/DemoContainer.js +2 -2
- package/node/internals/hooks/date-helpers-hooks.js +2 -2
- package/node/internals/hooks/useClockReferenceDate.js +2 -2
- package/node/internals/hooks/useDesktopPicker/useDesktopPicker.js +2 -2
- package/node/internals/hooks/useField/useField.js +16 -6
- package/node/internals/hooks/useField/useField.utils.js +1 -1
- package/node/internals/hooks/useField/useFieldCharacterEditing.js +2 -2
- package/node/internals/hooks/useField/useFieldState.js +7 -10
- package/node/internals/hooks/useIsLandscape.js +2 -2
- package/node/internals/hooks/useMobilePicker/useMobilePicker.js +2 -2
- package/node/internals/hooks/useOpenState.js +2 -2
- package/node/internals/hooks/usePicker/usePickerValue.js +2 -2
- package/node/internals/hooks/usePicker/usePickerViews.js +2 -2
- package/node/internals/hooks/useStaticPicker/useStaticPicker.js +2 -2
- package/node/internals/hooks/useUtils.js +2 -2
- package/node/internals/hooks/useValidation.js +2 -2
- package/node/internals/hooks/useValueWithTimezone.js +2 -2
- package/node/internals/hooks/useViews.js +2 -2
- package/node/timeViewRenderers/timeViewRenderers.js +2 -2
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,137 @@
|
|
|
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
|
+
|
|
72
|
+
## 6.16.3
|
|
73
|
+
|
|
74
|
+
_Oct 20, 2023_
|
|
75
|
+
|
|
76
|
+
We'd like to offer a big thanks to the 7 contributors who made this release possible. Here are some highlights ✨:
|
|
77
|
+
|
|
78
|
+
- 🎁 Add a Data Grid recipe for saving & restoring state
|
|
79
|
+
- 💫 Support animations on the bar chart
|
|
80
|
+
- 🐞 Bugfixes
|
|
81
|
+
- 📚 Documentation improvements
|
|
82
|
+
|
|
83
|
+
### Data Grid
|
|
84
|
+
|
|
85
|
+
#### `@mui/x-data-grid@6.16.3`
|
|
86
|
+
|
|
87
|
+
- [DataGrid] Allow passing readonly arrays to `columns` and `sortingOrder` props (#10686) @pcorpet
|
|
88
|
+
|
|
89
|
+
#### `@mui/x-data-grid-pro@6.16.3` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
90
|
+
|
|
91
|
+
Same changes as in `@mui/x-data-grid@6.16.3`.
|
|
92
|
+
|
|
93
|
+
#### `@mui/x-data-grid-premium@6.16.3` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
94
|
+
|
|
95
|
+
Same changes as in `@mui/x-data-grid-pro@6.16.3`.
|
|
96
|
+
|
|
97
|
+
### Date Pickers
|
|
98
|
+
|
|
99
|
+
#### `@mui/x-date-pickers@6.16.3`
|
|
100
|
+
|
|
101
|
+
- [fields] Correctly respect leading zeroes on seconds section (#10713) @flaviendelangle
|
|
102
|
+
- [fields] Use `onChange` instead of `onKeyPress` for Backspace editing (#10494) @flaviendelangle
|
|
103
|
+
- [pickers] Add reference links to DatePicker components (#10626) @michelengelen
|
|
104
|
+
- [pickers] Add reference links to clock components (#10645) @michelengelen
|
|
105
|
+
- [pickers] Add reference links to misc picker components (#10647) @michelengelen
|
|
106
|
+
- [pickers] Add reference links to toolbar components (#10646) @michelengelen
|
|
107
|
+
- [pickers] POC: Change the props received by the `FakeTextField` component (#10687) @flaviendelangle
|
|
108
|
+
|
|
109
|
+
#### `@mui/x-date-pickers-pro@6.16.3` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
110
|
+
|
|
111
|
+
Same changes as in `@mui/x-date-pickers@6.16.3`, plus:
|
|
112
|
+
|
|
113
|
+
- [DateRangePicker] Fix touch based range dragging (#10664) @michelengelen
|
|
114
|
+
|
|
115
|
+
### Charts / `@mui/x-charts@6.0.0-alpha.16`
|
|
116
|
+
|
|
117
|
+
- [charts] Add reference links to area + bar chart components (#10652) @michelengelen
|
|
118
|
+
- [charts] Add reference links to line chart + sparkline components (#10650) @michelengelen
|
|
119
|
+
- [charts] Add reference links to pie + scatter chart components (#10653) @michelengelen
|
|
120
|
+
- [charts] Render only when `width` and `height` are resolved (#10714) @alexfauquette
|
|
121
|
+
- [charts] Support animation on `BarChart` (#9926) @alexfauquette
|
|
122
|
+
- [charts] Use new text component to avoid tick label overflow on x-axis (#10648) @alexfauquette
|
|
123
|
+
|
|
124
|
+
### Docs
|
|
125
|
+
|
|
126
|
+
- [docs] Add a recipe for saving and restoring `state` externally (#10722) @michelengelen
|
|
127
|
+
- [docs] Add example about how to add an axis (#10709) @alexfauquette
|
|
128
|
+
- [docs] Customization Playground - fix DesktopDatePicker sx props and styled examples (#10665) @noraleonte
|
|
129
|
+
- [docs] Improve meta description @oliviertassinari
|
|
130
|
+
- [docs] Make overview demo work in codesandbox (#10661) @alexfauquette
|
|
131
|
+
|
|
132
|
+
### Core
|
|
133
|
+
|
|
134
|
+
- [core] Update React renovate group with `@types` (#10723) @LukasTy
|
|
135
|
+
- [core] Update `styled-components` (#10733) @LukasTy
|
|
136
|
+
|
|
6
137
|
## 6.16.2
|
|
7
138
|
|
|
8
139
|
_Oct 12, 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/DateField/DateField.js
CHANGED
|
@@ -113,7 +113,7 @@ process.env.NODE_ENV !== "production" ? DateField.propTypes = {
|
|
|
113
113
|
/**
|
|
114
114
|
* The color of the component.
|
|
115
115
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
116
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
116
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
117
117
|
* @default 'primary'
|
|
118
118
|
*/
|
|
119
119
|
color: PropTypes.oneOf(['error', 'info', 'primary', 'secondary', 'success', 'warning']),
|
|
@@ -3,5 +3,15 @@ import { DatePickerProps } from './DatePicker.types';
|
|
|
3
3
|
type DatePickerComponent = (<TDate>(props: DatePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
|
|
4
4
|
propTypes?: any;
|
|
5
5
|
};
|
|
6
|
+
/**
|
|
7
|
+
* Demos:
|
|
8
|
+
*
|
|
9
|
+
* - [DatePicker](https://mui.com/x/react-date-pickers/date-picker/)
|
|
10
|
+
* - [Validation](https://mui.com/x/react-date-pickers/validation/)
|
|
11
|
+
*
|
|
12
|
+
* API:
|
|
13
|
+
*
|
|
14
|
+
* - [DatePicker API](https://mui.com/x/api/date-pickers/date-picker/)
|
|
15
|
+
*/
|
|
6
16
|
declare const DatePicker: DatePickerComponent;
|
|
7
17
|
export { DatePicker };
|
package/DatePicker/DatePicker.js
CHANGED
|
@@ -10,6 +10,16 @@ import { DesktopDatePicker } from '../DesktopDatePicker';
|
|
|
10
10
|
import { MobileDatePicker } from '../MobileDatePicker';
|
|
11
11
|
import { DEFAULT_DESKTOP_MODE_MEDIA_QUERY } from '../internals/utils/utils';
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
/**
|
|
14
|
+
* Demos:
|
|
15
|
+
*
|
|
16
|
+
* - [DatePicker](https://mui.com/x/react-date-pickers/date-picker/)
|
|
17
|
+
* - [Validation](https://mui.com/x/react-date-pickers/validation/)
|
|
18
|
+
*
|
|
19
|
+
* API:
|
|
20
|
+
*
|
|
21
|
+
* - [DatePicker API](https://mui.com/x/api/date-pickers/date-picker/)
|
|
22
|
+
*/
|
|
13
23
|
const DatePicker = /*#__PURE__*/React.forwardRef(function DatePicker(inProps, ref) {
|
|
14
24
|
const props = useThemeProps({
|
|
15
25
|
props: inProps,
|
|
@@ -12,5 +12,15 @@ export interface ExportedDatePickerToolbarProps extends ExportedBaseToolbarProps
|
|
|
12
12
|
type DatePickerToolbarComponent = (<TDate>(props: DatePickerToolbarProps<TDate> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
|
|
13
13
|
propTypes?: any;
|
|
14
14
|
};
|
|
15
|
+
/**
|
|
16
|
+
* Demos:
|
|
17
|
+
*
|
|
18
|
+
* - [DatePicker](https://mui.com/x/react-date-pickers/date-picker/)
|
|
19
|
+
* - [Custom components](https://mui.com/x/react-date-pickers/custom-components/)
|
|
20
|
+
*
|
|
21
|
+
* API:
|
|
22
|
+
*
|
|
23
|
+
* - [DatePickerToolbar API](https://mui.com/x/api/date-pickers/date-picker-toolbar/)
|
|
24
|
+
*/
|
|
15
25
|
declare const DatePickerToolbar: DatePickerToolbarComponent;
|
|
16
26
|
export { DatePickerToolbar };
|
|
@@ -39,6 +39,16 @@ const DatePickerToolbarTitle = styled(Typography, {
|
|
|
39
39
|
}) => _extends({}, ownerState.isLandscape && {
|
|
40
40
|
margin: 'auto 16px auto auto'
|
|
41
41
|
}));
|
|
42
|
+
/**
|
|
43
|
+
* Demos:
|
|
44
|
+
*
|
|
45
|
+
* - [DatePicker](https://mui.com/x/react-date-pickers/date-picker/)
|
|
46
|
+
* - [Custom components](https://mui.com/x/react-date-pickers/custom-components/)
|
|
47
|
+
*
|
|
48
|
+
* API:
|
|
49
|
+
*
|
|
50
|
+
* - [DatePickerToolbar API](https://mui.com/x/api/date-pickers/date-picker-toolbar/)
|
|
51
|
+
*/
|
|
42
52
|
const DatePickerToolbar = /*#__PURE__*/React.forwardRef(function DatePickerToolbar(inProps, ref) {
|
|
43
53
|
const props = useThemeProps({
|
|
44
54
|
props: inProps,
|
|
@@ -118,7 +118,7 @@ process.env.NODE_ENV !== "production" ? DateTimeField.propTypes = {
|
|
|
118
118
|
/**
|
|
119
119
|
* The color of the component.
|
|
120
120
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
121
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
121
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
122
122
|
* @default 'primary'
|
|
123
123
|
*/
|
|
124
124
|
color: PropTypes.oneOf(['error', 'info', 'primary', 'secondary', 'success', 'warning']),
|
|
@@ -25,6 +25,16 @@ export interface DateTimePickerTabsProps extends ExportedDateTimePickerTabsProps
|
|
|
25
25
|
*/
|
|
26
26
|
classes?: Partial<DateTimePickerTabsClasses>;
|
|
27
27
|
}
|
|
28
|
+
/**
|
|
29
|
+
* Demos:
|
|
30
|
+
*
|
|
31
|
+
* - [DateTimePicker](https://mui.com/x/react-date-pickers/date-time-picker/)
|
|
32
|
+
* - [Custom slots and subcomponents](https://mui.com/x/react-date-pickers/custom-components/)
|
|
33
|
+
*
|
|
34
|
+
* API:
|
|
35
|
+
*
|
|
36
|
+
* - [DateTimePickerTabs API](https://mui.com/x/api/date-pickers/date-time-picker-tabs/)
|
|
37
|
+
*/
|
|
28
38
|
declare const DateTimePickerTabs: {
|
|
29
39
|
(inProps: DateTimePickerTabsProps): React.JSX.Element | null;
|
|
30
40
|
propTypes: any;
|
|
@@ -47,6 +47,17 @@ const DateTimePickerTabsRoot = styled(Tabs, {
|
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
}));
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Demos:
|
|
53
|
+
*
|
|
54
|
+
* - [DateTimePicker](https://mui.com/x/react-date-pickers/date-time-picker/)
|
|
55
|
+
* - [Custom slots and subcomponents](https://mui.com/x/react-date-pickers/custom-components/)
|
|
56
|
+
*
|
|
57
|
+
* API:
|
|
58
|
+
*
|
|
59
|
+
* - [DateTimePickerTabs API](https://mui.com/x/api/date-pickers/date-time-picker-tabs/)
|
|
60
|
+
*/
|
|
50
61
|
const DateTimePickerTabs = function DateTimePickerTabs(inProps) {
|
|
51
62
|
const props = useThemeProps({
|
|
52
63
|
props: inProps,
|
|
@@ -13,6 +13,16 @@ export interface DateTimePickerToolbarProps<TDate> extends ExportedDateTimePicke
|
|
|
13
13
|
classes?: Partial<DateTimePickerToolbarClasses>;
|
|
14
14
|
toolbarVariant?: WrapperVariant;
|
|
15
15
|
}
|
|
16
|
+
/**
|
|
17
|
+
* Demos:
|
|
18
|
+
*
|
|
19
|
+
* - [DateTimePicker](https://mui.com/x/react-date-pickers/date-time-picker/)
|
|
20
|
+
* - [Custom components](https://mui.com/x/react-date-pickers/custom-components/)
|
|
21
|
+
*
|
|
22
|
+
* API:
|
|
23
|
+
*
|
|
24
|
+
* - [DateTimePickerToolbar API](https://mui.com/x/api/date-pickers/date-time-picker-toolbar/)
|
|
25
|
+
*/
|
|
16
26
|
declare function DateTimePickerToolbar<TDate extends unknown>(inProps: DateTimePickerToolbarProps<TDate>): React.JSX.Element;
|
|
17
27
|
declare namespace DateTimePickerToolbar {
|
|
18
28
|
var propTypes: any;
|
|
@@ -153,6 +153,17 @@ const DateTimePickerToolbarAmPmSelection = styled('div', {
|
|
|
153
153
|
fontSize: 17
|
|
154
154
|
}
|
|
155
155
|
}));
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Demos:
|
|
159
|
+
*
|
|
160
|
+
* - [DateTimePicker](https://mui.com/x/react-date-pickers/date-time-picker/)
|
|
161
|
+
* - [Custom components](https://mui.com/x/react-date-pickers/custom-components/)
|
|
162
|
+
*
|
|
163
|
+
* API:
|
|
164
|
+
*
|
|
165
|
+
* - [DateTimePickerToolbar API](https://mui.com/x/api/date-pickers/date-time-picker-toolbar/)
|
|
166
|
+
*/
|
|
156
167
|
function DateTimePickerToolbar(inProps) {
|
|
157
168
|
const props = useThemeProps({
|
|
158
169
|
props: inProps,
|
|
@@ -15,10 +15,9 @@ export interface DayCalendarSkeletonProps extends HTMLDivProps {
|
|
|
15
15
|
ref?: React.Ref<HTMLDivElement>;
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
19
18
|
* Demos:
|
|
20
19
|
*
|
|
21
|
-
* - [
|
|
20
|
+
* - [DateCalendar](https://mui.com/x/react-date-pickers/date-calendar/)
|
|
22
21
|
*
|
|
23
22
|
* API:
|
|
24
23
|
*
|
|
@@ -60,10 +60,9 @@ DayCalendarSkeletonDay.propTypes = {
|
|
|
60
60
|
const monthMap = [[0, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 0, 0, 0]];
|
|
61
61
|
|
|
62
62
|
/**
|
|
63
|
-
*
|
|
64
63
|
* Demos:
|
|
65
64
|
*
|
|
66
|
-
* - [
|
|
65
|
+
* - [DateCalendar](https://mui.com/x/react-date-pickers/date-calendar/)
|
|
67
66
|
*
|
|
68
67
|
* API:
|
|
69
68
|
*
|
|
@@ -3,5 +3,15 @@ import { DesktopDatePickerProps } from './DesktopDatePicker.types';
|
|
|
3
3
|
type DesktopDatePickerComponent = (<TDate>(props: DesktopDatePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
|
|
4
4
|
propTypes?: any;
|
|
5
5
|
};
|
|
6
|
+
/**
|
|
7
|
+
* Demos:
|
|
8
|
+
*
|
|
9
|
+
* - [DatePicker](https://mui.com/x/react-date-pickers/date-picker/)
|
|
10
|
+
* - [Validation](https://mui.com/x/react-date-pickers/validation/)
|
|
11
|
+
*
|
|
12
|
+
* API:
|
|
13
|
+
*
|
|
14
|
+
* - [DesktopDatePicker API](https://mui.com/x/api/date-pickers/desktop-date-picker/)
|
|
15
|
+
*/
|
|
6
16
|
declare const DesktopDatePicker: DesktopDatePickerComponent;
|
|
7
17
|
export { DesktopDatePicker };
|
|
@@ -12,6 +12,16 @@ import { DateField } from '../DateField';
|
|
|
12
12
|
import { extractValidationProps } from '../internals/utils/validation/extractValidationProps';
|
|
13
13
|
import { renderDateViewCalendar } from '../dateViewRenderers';
|
|
14
14
|
import { resolveDateFormat } from '../internals/utils/date-utils';
|
|
15
|
+
/**
|
|
16
|
+
* Demos:
|
|
17
|
+
*
|
|
18
|
+
* - [DatePicker](https://mui.com/x/react-date-pickers/date-picker/)
|
|
19
|
+
* - [Validation](https://mui.com/x/react-date-pickers/validation/)
|
|
20
|
+
*
|
|
21
|
+
* API:
|
|
22
|
+
*
|
|
23
|
+
* - [DesktopDatePicker API](https://mui.com/x/api/date-pickers/desktop-date-picker/)
|
|
24
|
+
*/
|
|
15
25
|
const DesktopDatePicker = /*#__PURE__*/React.forwardRef(function DesktopDatePicker(inProps, ref) {
|
|
16
26
|
var _defaultizedProps$yea, _defaultizedProps$slo2, _props$localeText$ope, _props$localeText;
|
|
17
27
|
const localeText = useLocaleText();
|
|
@@ -3,5 +3,15 @@ import { DigitalClockProps } from './DigitalClock.types';
|
|
|
3
3
|
type DigitalClockComponent = (<TDate>(props: DigitalClockProps<TDate> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
|
|
4
4
|
propTypes?: any;
|
|
5
5
|
};
|
|
6
|
+
/**
|
|
7
|
+
* Demos:
|
|
8
|
+
*
|
|
9
|
+
* - [TimePicker](https://mui.com/x/react-date-pickers/time-picker/)
|
|
10
|
+
* - [DigitalClock](https://mui.com/x/react-date-pickers/digital-clock/)
|
|
11
|
+
*
|
|
12
|
+
* API:
|
|
13
|
+
*
|
|
14
|
+
* - [DigitalClock API](https://mui.com/x/api/date-pickers/digital-clock/)
|
|
15
|
+
*/
|
|
6
16
|
export declare const DigitalClock: DigitalClockComponent;
|
|
7
17
|
export {};
|
|
@@ -79,6 +79,16 @@ const DigitalClockItem = styled(MenuItem, {
|
|
|
79
79
|
backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.focusOpacity})` : alpha(theme.palette.primary.main, theme.palette.action.focusOpacity)
|
|
80
80
|
}
|
|
81
81
|
}));
|
|
82
|
+
/**
|
|
83
|
+
* Demos:
|
|
84
|
+
*
|
|
85
|
+
* - [TimePicker](https://mui.com/x/react-date-pickers/time-picker/)
|
|
86
|
+
* - [DigitalClock](https://mui.com/x/react-date-pickers/digital-clock/)
|
|
87
|
+
*
|
|
88
|
+
* API:
|
|
89
|
+
*
|
|
90
|
+
* - [DigitalClock API](https://mui.com/x/api/date-pickers/digital-clock/)
|
|
91
|
+
*/
|
|
82
92
|
export const DigitalClock = /*#__PURE__*/React.forwardRef(function DigitalClock(inProps, ref) {
|
|
83
93
|
var _ref, _slots$digitalClockIt, _slotProps$digitalClo;
|
|
84
94
|
const utils = useUtils();
|
|
@@ -41,5 +41,17 @@ export interface LocalizationProviderProps<TDate, TLocale> {
|
|
|
41
41
|
type LocalizationProviderComponent = (<TDate, TLocale>(props: LocalizationProviderProps<TDate, TLocale>) => React.JSX.Element) & {
|
|
42
42
|
propTypes?: any;
|
|
43
43
|
};
|
|
44
|
+
/**
|
|
45
|
+
* Demos:
|
|
46
|
+
*
|
|
47
|
+
* - [Date format and localization](https://mui.com/x/react-date-pickers/adapters-locale/)
|
|
48
|
+
* - [Calendar systems](https://mui.com/x/react-date-pickers/calendar-systems/)
|
|
49
|
+
* - [Translated components](https://mui.com/x/react-date-pickers/localization/)
|
|
50
|
+
* - [UTC and timezones](https://mui.com/x/react-date-pickers/timezone/)
|
|
51
|
+
*
|
|
52
|
+
* API:
|
|
53
|
+
*
|
|
54
|
+
* - [LocalizationProvider API](https://mui.com/x/api/date-pickers/localization-provider/)
|
|
55
|
+
*/
|
|
44
56
|
export declare const LocalizationProvider: LocalizationProviderComponent;
|
|
45
57
|
export {};
|
|
@@ -9,6 +9,18 @@ export const MuiPickersAdapterContext = /*#__PURE__*/React.createContext(null);
|
|
|
9
9
|
if (process.env.NODE_ENV !== 'production') {
|
|
10
10
|
MuiPickersAdapterContext.displayName = 'MuiPickersAdapterContext';
|
|
11
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* Demos:
|
|
14
|
+
*
|
|
15
|
+
* - [Date format and localization](https://mui.com/x/react-date-pickers/adapters-locale/)
|
|
16
|
+
* - [Calendar systems](https://mui.com/x/react-date-pickers/calendar-systems/)
|
|
17
|
+
* - [Translated components](https://mui.com/x/react-date-pickers/localization/)
|
|
18
|
+
* - [UTC and timezones](https://mui.com/x/react-date-pickers/timezone/)
|
|
19
|
+
*
|
|
20
|
+
* API:
|
|
21
|
+
*
|
|
22
|
+
* - [LocalizationProvider API](https://mui.com/x/api/date-pickers/localization-provider/)
|
|
23
|
+
*/
|
|
12
24
|
export const LocalizationProvider = function LocalizationProvider(inProps) {
|
|
13
25
|
var _React$useContext;
|
|
14
26
|
const {
|
|
@@ -3,5 +3,15 @@ import { MobileDatePickerProps } from './MobileDatePicker.types';
|
|
|
3
3
|
type MobileDatePickerComponent = (<TDate>(props: MobileDatePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
|
|
4
4
|
propTypes?: any;
|
|
5
5
|
};
|
|
6
|
+
/**
|
|
7
|
+
* Demos:
|
|
8
|
+
*
|
|
9
|
+
* - [DatePicker](https://mui.com/x/react-date-pickers/date-picker/)
|
|
10
|
+
* - [Validation](https://mui.com/x/react-date-pickers/validation/)
|
|
11
|
+
*
|
|
12
|
+
* API:
|
|
13
|
+
*
|
|
14
|
+
* - [MobileDatePicker API](https://mui.com/x/api/date-pickers/mobile-date-picker/)
|
|
15
|
+
*/
|
|
6
16
|
declare const MobileDatePicker: MobileDatePickerComponent;
|
|
7
17
|
export { MobileDatePicker };
|
|
@@ -11,6 +11,16 @@ import { extractValidationProps } from '../internals/utils/validation/extractVal
|
|
|
11
11
|
import { singleItemValueManager } from '../internals/utils/valueManagers';
|
|
12
12
|
import { renderDateViewCalendar } from '../dateViewRenderers';
|
|
13
13
|
import { resolveDateFormat } from '../internals/utils/date-utils';
|
|
14
|
+
/**
|
|
15
|
+
* Demos:
|
|
16
|
+
*
|
|
17
|
+
* - [DatePicker](https://mui.com/x/react-date-pickers/date-picker/)
|
|
18
|
+
* - [Validation](https://mui.com/x/react-date-pickers/validation/)
|
|
19
|
+
*
|
|
20
|
+
* API:
|
|
21
|
+
*
|
|
22
|
+
* - [MobileDatePicker API](https://mui.com/x/api/date-pickers/mobile-date-picker/)
|
|
23
|
+
*/
|
|
14
24
|
const MobileDatePicker = /*#__PURE__*/React.forwardRef(function MobileDatePicker(inProps, ref) {
|
|
15
25
|
var _defaultizedProps$slo2, _props$localeText$ope, _props$localeText;
|
|
16
26
|
const localeText = useLocaleText();
|
|
@@ -3,5 +3,15 @@ import { MultiSectionDigitalClockProps } from './MultiSectionDigitalClock.types'
|
|
|
3
3
|
type MultiSectionDigitalClockComponent = (<TDate>(props: MultiSectionDigitalClockProps<TDate> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
|
|
4
4
|
propTypes?: any;
|
|
5
5
|
};
|
|
6
|
+
/**
|
|
7
|
+
* Demos:
|
|
8
|
+
*
|
|
9
|
+
* - [TimePicker](https://mui.com/x/react-date-pickers/time-picker/)
|
|
10
|
+
* - [DigitalClock](https://mui.com/x/react-date-pickers/digital-clock/)
|
|
11
|
+
*
|
|
12
|
+
* API:
|
|
13
|
+
*
|
|
14
|
+
* - [MultiSectionDigitalClock API](https://mui.com/x/api/date-pickers/multi-section-digital-clock/)
|
|
15
|
+
*/
|
|
6
16
|
export declare const MultiSectionDigitalClock: MultiSectionDigitalClockComponent;
|
|
7
17
|
export {};
|
|
@@ -41,6 +41,16 @@ const MultiSectionDigitalClockRoot = styled(PickerViewRoot, {
|
|
|
41
41
|
width: '100%',
|
|
42
42
|
borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`
|
|
43
43
|
}));
|
|
44
|
+
/**
|
|
45
|
+
* Demos:
|
|
46
|
+
*
|
|
47
|
+
* - [TimePicker](https://mui.com/x/react-date-pickers/time-picker/)
|
|
48
|
+
* - [DigitalClock](https://mui.com/x/react-date-pickers/digital-clock/)
|
|
49
|
+
*
|
|
50
|
+
* API:
|
|
51
|
+
*
|
|
52
|
+
* - [MultiSectionDigitalClock API](https://mui.com/x/api/date-pickers/multi-section-digital-clock/)
|
|
53
|
+
*/
|
|
44
54
|
export const MultiSectionDigitalClock = /*#__PURE__*/React.forwardRef(function MultiSectionDigitalClock(inProps, ref) {
|
|
45
55
|
const utils = useUtils();
|
|
46
56
|
const props = useThemeProps({
|
|
@@ -13,6 +13,16 @@ export interface PickersActionBarProps extends DialogActionsProps {
|
|
|
13
13
|
onCancel: () => void;
|
|
14
14
|
onSetToday: () => void;
|
|
15
15
|
}
|
|
16
|
+
/**
|
|
17
|
+
* Demos:
|
|
18
|
+
*
|
|
19
|
+
* - [Custom slots and subcomponents](https://mui.com/x/react-date-pickers/custom-components/)
|
|
20
|
+
* - [Custom layout](https://mui.com/x/react-date-pickers/custom-layout/)
|
|
21
|
+
*
|
|
22
|
+
* API:
|
|
23
|
+
*
|
|
24
|
+
* - [PickersActionBar API](https://mui.com/x/api/date-pickers/pickers-action-bar/)
|
|
25
|
+
*/
|
|
16
26
|
declare function PickersActionBar(props: PickersActionBarProps): React.JSX.Element | null;
|
|
17
27
|
declare namespace PickersActionBar {
|
|
18
28
|
var propTypes: any;
|
|
@@ -7,6 +7,16 @@ import Button from '@mui/material/Button';
|
|
|
7
7
|
import DialogActions from '@mui/material/DialogActions';
|
|
8
8
|
import { useLocaleText } from '../internals/hooks/useUtils';
|
|
9
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
+
/**
|
|
11
|
+
* Demos:
|
|
12
|
+
*
|
|
13
|
+
* - [Custom slots and subcomponents](https://mui.com/x/react-date-pickers/custom-components/)
|
|
14
|
+
* - [Custom layout](https://mui.com/x/react-date-pickers/custom-layout/)
|
|
15
|
+
*
|
|
16
|
+
* API:
|
|
17
|
+
*
|
|
18
|
+
* - [PickersActionBar API](https://mui.com/x/api/date-pickers/pickers-action-bar/)
|
|
19
|
+
*/
|
|
10
20
|
function PickersActionBar(props) {
|
|
11
21
|
const {
|
|
12
22
|
onAccept,
|
|
@@ -64,5 +64,16 @@ export interface PickersCalendarHeaderProps<TDate> extends ExportedPickersArrowS
|
|
|
64
64
|
type PickersCalendarHeaderComponent = (<TDate>(props: PickersCalendarHeaderProps<TDate> & React.RefAttributes<HTMLButtonElement>) => React.JSX.Element) & {
|
|
65
65
|
propTypes?: any;
|
|
66
66
|
};
|
|
67
|
+
/**
|
|
68
|
+
* Demos:
|
|
69
|
+
*
|
|
70
|
+
* - [DateCalendar](https://mui.com/x/react-date-pickers/date-calendar/)
|
|
71
|
+
* - [DateRangeCalendar](https://mui.com/x/react-date-pickers/date-range-calendar/)
|
|
72
|
+
* - [Custom slots and subcomponents](https://mui.com/x/react-date-pickers/custom-components/)
|
|
73
|
+
*
|
|
74
|
+
* API:
|
|
75
|
+
*
|
|
76
|
+
* - [PickersCalendarHeader API](https://mui.com/x/api/date-pickers/pickers-calendar-header/)
|
|
77
|
+
*/
|
|
67
78
|
declare const PickersCalendarHeader: PickersCalendarHeaderComponent;
|
|
68
79
|
export { PickersCalendarHeader };
|
|
@@ -94,6 +94,17 @@ const PickersCalendarHeaderSwitchViewIcon = styled(ArrowDropDownIcon, {
|
|
|
94
94
|
transition: theme.transitions.create('transform'),
|
|
95
95
|
transform: 'rotate(0deg)'
|
|
96
96
|
}));
|
|
97
|
+
/**
|
|
98
|
+
* Demos:
|
|
99
|
+
*
|
|
100
|
+
* - [DateCalendar](https://mui.com/x/react-date-pickers/date-calendar/)
|
|
101
|
+
* - [DateRangeCalendar](https://mui.com/x/react-date-pickers/date-range-calendar/)
|
|
102
|
+
* - [Custom slots and subcomponents](https://mui.com/x/react-date-pickers/custom-components/)
|
|
103
|
+
*
|
|
104
|
+
* API:
|
|
105
|
+
*
|
|
106
|
+
* - [PickersCalendarHeader API](https://mui.com/x/api/date-pickers/pickers-calendar-header/)
|
|
107
|
+
*/
|
|
97
108
|
const PickersCalendarHeader = /*#__PURE__*/React.forwardRef(function PickersCalendarHeader(inProps, ref) {
|
|
98
109
|
var _slots$switchViewButt, _slots$switchViewIcon;
|
|
99
110
|
const localeText = useLocaleText();
|
|
@@ -74,11 +74,9 @@ type PickersDayComponent = (<TDate>(props: PickersDayProps<TDate> & React.RefAtt
|
|
|
74
74
|
propTypes?: any;
|
|
75
75
|
};
|
|
76
76
|
/**
|
|
77
|
-
*
|
|
78
77
|
* Demos:
|
|
79
78
|
*
|
|
80
|
-
* - [
|
|
81
|
-
*
|
|
79
|
+
* - [DateCalendar](https://mui.com/x/react-date-pickers/date-calendar/)
|
|
82
80
|
* API:
|
|
83
81
|
*
|
|
84
82
|
* - [PickersDay API](https://mui.com/x/api/date-pickers/pickers-day/)
|