@mui/x-date-pickers 7.1.1 → 7.3.1
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/AdapterDateFnsBase/AdapterDateFnsBase.d.ts +1 -1
- package/AdapterDateFnsJalali/AdapterDateFnsJalali.d.ts +1 -1
- package/AdapterDayjs/AdapterDayjs.d.ts +1 -1
- package/AdapterLuxon/AdapterLuxon.d.ts +1 -1
- package/AdapterMoment/AdapterMoment.d.ts +1 -1
- package/AdapterMomentHijri/AdapterMomentHijri.d.ts +1 -1
- package/AdapterMomentJalaali/AdapterMomentJalaali.d.ts +1 -1
- package/CHANGELOG.md +290 -2
- package/DateCalendar/DateCalendar.js +1 -2
- package/DateCalendar/DayCalendar.js +1 -2
- package/DateCalendar/useCalendarState.d.ts +1 -3
- package/DateTimePicker/DateTimePickerTabs.js +1 -2
- package/DateTimePicker/DateTimePickerToolbar.js +1 -2
- package/DesktopDateTimePicker/DesktopDateTimePicker.js +13 -5
- package/DesktopDateTimePicker/DesktopDateTimePickerLayout.js +1 -2
- package/PickersCalendarHeader/PickersCalendarHeader.js +1 -2
- package/PickersLayout/PickersLayout.js +1 -2
- package/PickersSectionList/PickersSectionList.js +1 -2
- package/PickersTextField/PickersInputBase/PickersInputBase.js +1 -2
- package/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +1 -2
- package/PickersTextField/PickersTextField.js +1 -2
- package/TimeClock/Clock.js +1 -2
- package/TimeClock/ClockNumbers.d.ts +1 -1
- package/TimeClock/TimeClock.js +1 -2
- package/TimePicker/TimePickerToolbar.js +1 -2
- package/hooks/useClearableField.js +1 -2
- package/icons/index.js +1 -2
- package/index.js +1 -1
- package/internals/components/PickersArrowSwitcher/PickersArrowSwitcher.js +1 -2
- package/internals/components/PickersToolbar.js +1 -2
- package/internals/demo/DemoContainer.js +1 -2
- package/internals/hooks/defaultizedFieldProps.d.ts +3 -3
- package/internals/hooks/useClockReferenceDate.d.ts +1 -1
- package/internals/hooks/useDesktopPicker/useDesktopPicker.js +1 -2
- package/internals/hooks/useField/useField.utils.d.ts +13 -13
- package/internals/hooks/useMobilePicker/useMobilePicker.js +1 -2
- package/internals/hooks/usePicker/usePickerValue.js +8 -2
- package/internals/hooks/usePicker/usePickerValue.types.d.ts +4 -3
- package/internals/utils/date-time-utils.d.ts +2 -2
- package/internals/utils/date-utils.d.ts +10 -10
- package/internals/utils/getDefaultReferenceDate.d.ts +2 -3
- package/internals/utils/time-utils.d.ts +6 -6
- package/internals/utils/utils.d.ts +1 -1
- package/locales/caES.js +26 -30
- package/locales/deDE.js +14 -17
- package/locales/esES.js +21 -24
- package/locales/frFR.js +16 -20
- package/locales/svSE.js +23 -28
- package/modern/DateCalendar/DateCalendar.js +1 -2
- package/modern/DateCalendar/DayCalendar.js +1 -2
- package/modern/DateTimePicker/DateTimePickerTabs.js +1 -2
- package/modern/DateTimePicker/DateTimePickerToolbar.js +1 -2
- package/modern/DesktopDateTimePicker/DesktopDateTimePicker.js +13 -5
- package/modern/DesktopDateTimePicker/DesktopDateTimePickerLayout.js +1 -2
- package/modern/PickersCalendarHeader/PickersCalendarHeader.js +1 -2
- package/modern/PickersLayout/PickersLayout.js +1 -2
- package/modern/PickersSectionList/PickersSectionList.js +1 -2
- package/modern/PickersTextField/PickersInputBase/PickersInputBase.js +1 -2
- package/modern/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +1 -2
- package/modern/PickersTextField/PickersTextField.js +1 -2
- package/modern/TimeClock/Clock.js +1 -2
- package/modern/TimeClock/TimeClock.js +1 -2
- package/modern/TimePicker/TimePickerToolbar.js +1 -2
- package/modern/hooks/useClearableField.js +1 -2
- package/modern/icons/index.js +1 -2
- package/modern/index.js +1 -1
- package/modern/internals/components/PickersArrowSwitcher/PickersArrowSwitcher.js +1 -2
- package/modern/internals/components/PickersToolbar.js +1 -2
- package/modern/internals/demo/DemoContainer.js +1 -2
- package/modern/internals/hooks/useDesktopPicker/useDesktopPicker.js +1 -2
- package/modern/internals/hooks/useMobilePicker/useMobilePicker.js +1 -2
- package/modern/internals/hooks/usePicker/usePickerValue.js +8 -2
- package/modern/locales/caES.js +26 -30
- package/modern/locales/deDE.js +14 -17
- package/modern/locales/esES.js +21 -24
- package/modern/locales/frFR.js +16 -20
- package/modern/locales/svSE.js +23 -28
- package/node/DateCalendar/DateCalendar.js +1 -1
- package/node/DateCalendar/DayCalendar.js +1 -1
- package/node/DateCalendar/PickersFadeTransitionGroup.js +1 -1
- package/node/DateCalendar/PickersSlideTransition.js +1 -1
- package/node/DateCalendar/useCalendarState.js +1 -1
- package/node/DateCalendar/useIsDateDisabled.js +1 -1
- package/node/DateField/DateField.js +1 -1
- package/node/DatePicker/DatePicker.js +1 -1
- package/node/DatePicker/DatePickerToolbar.js +1 -1
- package/node/DatePicker/shared.js +1 -1
- package/node/DateTimeField/DateTimeField.js +1 -1
- package/node/DateTimePicker/DateTimePicker.js +1 -1
- package/node/DateTimePicker/DateTimePickerTabs.js +1 -1
- package/node/DateTimePicker/DateTimePickerToolbar.js +1 -1
- package/node/DateTimePicker/shared.js +1 -1
- package/node/DayCalendarSkeleton/DayCalendarSkeleton.js +1 -1
- package/node/DesktopDatePicker/DesktopDatePicker.js +1 -1
- package/node/DesktopDateTimePicker/DesktopDateTimePicker.js +13 -4
- package/node/DesktopDateTimePicker/DesktopDateTimePickerLayout.js +1 -1
- package/node/DesktopTimePicker/DesktopTimePicker.js +1 -1
- package/node/DigitalClock/DigitalClock.js +1 -1
- package/node/LocalizationProvider/LocalizationProvider.js +1 -1
- package/node/MobileDatePicker/MobileDatePicker.js +1 -1
- package/node/MobileDateTimePicker/MobileDateTimePicker.js +1 -1
- package/node/MobileTimePicker/MobileTimePicker.js +1 -1
- package/node/MonthCalendar/MonthCalendar.js +1 -1
- package/node/MonthCalendar/PickersMonth.js +1 -1
- package/node/MultiSectionDigitalClock/MultiSectionDigitalClock.js +1 -1
- package/node/MultiSectionDigitalClock/MultiSectionDigitalClockSection.js +1 -1
- package/node/PickersActionBar/PickersActionBar.js +1 -1
- package/node/PickersCalendarHeader/PickersCalendarHeader.js +1 -1
- package/node/PickersDay/PickersDay.js +1 -1
- package/node/PickersLayout/PickersLayout.js +1 -1
- package/node/PickersLayout/usePickerLayout.js +1 -1
- package/node/PickersSectionList/PickersSectionList.js +1 -1
- package/node/PickersShortcuts/PickersShortcuts.js +1 -1
- package/node/PickersTextField/PickersFilledInput/PickersFilledInput.js +1 -1
- package/node/PickersTextField/PickersInput/PickersInput.js +1 -1
- package/node/PickersTextField/PickersInputBase/PickersInputBase.js +1 -1
- package/node/PickersTextField/PickersOutlinedInput/Outline.js +1 -1
- package/node/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +1 -1
- package/node/PickersTextField/PickersTextField.js +1 -1
- package/node/StaticDatePicker/StaticDatePicker.js +1 -1
- package/node/StaticDateTimePicker/StaticDateTimePicker.js +1 -1
- package/node/StaticTimePicker/StaticTimePicker.js +1 -1
- package/node/TimeClock/Clock.js +1 -1
- package/node/TimeClock/ClockNumber.js +1 -1
- package/node/TimeClock/ClockNumbers.js +1 -1
- package/node/TimeClock/ClockPointer.js +1 -1
- package/node/TimeClock/TimeClock.js +1 -1
- package/node/TimeField/TimeField.js +1 -1
- package/node/TimePicker/TimePicker.js +1 -1
- package/node/TimePicker/TimePickerToolbar.js +1 -1
- package/node/TimePicker/shared.js +1 -1
- package/node/YearCalendar/PickersYear.js +1 -1
- package/node/YearCalendar/YearCalendar.js +1 -1
- package/node/dateViewRenderers/dateViewRenderers.js +1 -1
- package/node/hooks/useClearableField.js +1 -1
- package/node/icons/index.js +1 -1
- package/node/index.js +1 -1
- package/node/internals/components/PickersArrowSwitcher/PickersArrowSwitcher.js +1 -1
- package/node/internals/components/PickersModalDialog.js +1 -1
- package/node/internals/components/PickersPopper.js +1 -1
- package/node/internals/components/PickersToolbar.js +1 -1
- package/node/internals/components/PickersToolbarButton.js +1 -1
- package/node/internals/components/PickersToolbarText.js +1 -1
- package/node/internals/demo/DemoContainer.js +1 -1
- package/node/internals/hooks/date-helpers-hooks.js +1 -1
- package/node/internals/hooks/useClockReferenceDate.js +1 -1
- package/node/internals/hooks/useDesktopPicker/useDesktopPicker.js +1 -1
- package/node/internals/hooks/useField/useField.js +1 -1
- package/node/internals/hooks/useField/useFieldCharacterEditing.js +1 -1
- package/node/internals/hooks/useField/useFieldState.js +1 -1
- package/node/internals/hooks/useField/useFieldV6TextField.js +1 -1
- package/node/internals/hooks/useField/useFieldV7TextField.js +1 -1
- package/node/internals/hooks/useIsLandscape.js +1 -1
- package/node/internals/hooks/useMobilePicker/useMobilePicker.js +1 -1
- package/node/internals/hooks/useOpenState.js +1 -1
- package/node/internals/hooks/usePicker/usePickerValue.js +9 -3
- package/node/internals/hooks/usePicker/usePickerViews.js +1 -1
- package/node/internals/hooks/useStaticPicker/useStaticPicker.js +1 -1
- package/node/internals/hooks/useUtils.js +1 -1
- package/node/internals/hooks/useValidation.js +1 -1
- package/node/internals/hooks/useValueWithTimezone.js +1 -1
- package/node/internals/hooks/useViews.js +1 -1
- package/node/locales/caES.js +26 -30
- package/node/locales/deDE.js +14 -17
- package/node/locales/esES.js +21 -24
- package/node/locales/frFR.js +16 -20
- package/node/locales/svSE.js +23 -28
- package/node/timeViewRenderers/timeViewRenderers.js +1 -1
- package/package.json +3 -5
- package/timeViewRenderers/timeViewRenderers.d.ts +1 -1
- package/internals/components/DateTimeViewWrapper/DateTimeViewWrapper.d.ts +0 -2
- package/internals/components/DateTimeViewWrapper/DateTimeViewWrapper.js +0 -5
- package/internals/components/DateTimeViewWrapper/index.d.ts +0 -1
- package/internals/components/DateTimeViewWrapper/index.js +0 -1
- package/modern/internals/components/DateTimeViewWrapper/DateTimeViewWrapper.js +0 -5
- package/modern/internals/components/DateTimeViewWrapper/index.js +0 -1
- package/node/internals/components/DateTimeViewWrapper/DateTimeViewWrapper.js +0 -11
- package/node/internals/components/DateTimeViewWrapper/index.js +0 -12
|
@@ -54,7 +54,7 @@ export declare class AdapterDateFnsBase<DateFnsLocale extends DateFnsLocaleBase>
|
|
|
54
54
|
};
|
|
55
55
|
longFormatters: DateFnsAdapterBaseOptions<DateFnsLocale>['longFormatters'];
|
|
56
56
|
constructor(props: DateFnsAdapterBaseOptions<DateFnsLocale>);
|
|
57
|
-
date: <T extends string | null | undefined>(value?: T
|
|
57
|
+
date: <T extends string | null | undefined>(value?: T) => DateBuilderReturnType<T, Date>;
|
|
58
58
|
getInvalidDate: () => Date;
|
|
59
59
|
getTimezone: () => string;
|
|
60
60
|
setTimezone: (value: Date) => Date;
|
|
@@ -44,7 +44,7 @@ export declare class AdapterDateFnsJalali implements MuiPickersAdapter<Date, Dat
|
|
|
44
44
|
end: string;
|
|
45
45
|
};
|
|
46
46
|
constructor({ locale, formats }?: AdapterOptions<DateFnsLocale, never>);
|
|
47
|
-
date: <T extends string | null | undefined>(value?: T
|
|
47
|
+
date: <T extends string | null | undefined>(value?: T) => DateBuilderReturnType<T, Date>;
|
|
48
48
|
getInvalidDate: () => Date;
|
|
49
49
|
getTimezone: () => string;
|
|
50
50
|
setTimezone: (value: Date) => Date;
|
|
@@ -63,7 +63,7 @@ export declare class AdapterDayjs implements MuiPickersAdapter<Dayjs, string> {
|
|
|
63
63
|
* See https://github.com/iamkun/dayjs/blob/b3624de619d6e734cd0ffdbbd3502185041c1b60/src/plugin/timezone/index.js#L72
|
|
64
64
|
*/
|
|
65
65
|
private adjustOffset;
|
|
66
|
-
date: <T extends string | null | undefined>(value?: T
|
|
66
|
+
date: <T extends string | null | undefined>(value?: T, timezone?: PickersTimezone) => DateBuilderReturnType<T, Dayjs>;
|
|
67
67
|
getInvalidDate: () => defaultDayjs.Dayjs;
|
|
68
68
|
getTimezone: (value: Dayjs) => string;
|
|
69
69
|
setTimezone: (value: Dayjs, timezone: PickersTimezone) => Dayjs;
|
|
@@ -43,7 +43,7 @@ export declare class AdapterLuxon implements MuiPickersAdapter<DateTime, string>
|
|
|
43
43
|
formatTokenMap: FieldFormatTokenMap;
|
|
44
44
|
constructor({ locale, formats }?: AdapterOptions<string, never>);
|
|
45
45
|
private setLocaleToValue;
|
|
46
|
-
date: <T extends string | null | undefined>(value?: T
|
|
46
|
+
date: <T extends string | null | undefined>(value?: T, timezone?: PickersTimezone) => DateBuilderReturnType<T, DateTime>;
|
|
47
47
|
getInvalidDate: () => DateTime<true> | DateTime<false>;
|
|
48
48
|
getTimezone: (value: DateTime) => string;
|
|
49
49
|
setTimezone: (value: DateTime, timezone: PickersTimezone) => DateTime;
|
|
@@ -48,7 +48,7 @@ export declare class AdapterMoment implements MuiPickersAdapter<Moment, string>
|
|
|
48
48
|
private createSystemDate;
|
|
49
49
|
private createUTCDate;
|
|
50
50
|
private createTZDate;
|
|
51
|
-
date: <T extends string | null | undefined>(value?: T
|
|
51
|
+
date: <T extends string | null | undefined>(value?: T, timezone?: PickersTimezone) => DateBuilderReturnType<T, Moment>;
|
|
52
52
|
getInvalidDate: () => defaultMoment.Moment;
|
|
53
53
|
getTimezone: (value: Moment) => string;
|
|
54
54
|
setTimezone: (value: Moment, timezone: PickersTimezone) => Moment;
|
|
@@ -37,7 +37,7 @@ export declare class AdapterMomentHijri extends AdapterMoment implements MuiPick
|
|
|
37
37
|
isTimezoneCompatible: boolean;
|
|
38
38
|
formatTokenMap: FieldFormatTokenMap;
|
|
39
39
|
constructor({ formats, instance }?: AdapterOptions<string, typeof defaultHMoment>);
|
|
40
|
-
date: <T extends string | null | undefined>(value?: T
|
|
40
|
+
date: <T extends string | null | undefined>(value?: T) => DateBuilderReturnType<T, Moment>;
|
|
41
41
|
getTimezone: () => string;
|
|
42
42
|
setTimezone: (value: Moment) => Moment;
|
|
43
43
|
parse: (value: string, format: string) => defaultHMoment.Moment | null;
|
|
@@ -37,7 +37,7 @@ export declare class AdapterMomentJalaali extends AdapterMoment implements MuiPi
|
|
|
37
37
|
moment: typeof defaultJMoment;
|
|
38
38
|
formatTokenMap: FieldFormatTokenMap;
|
|
39
39
|
constructor({ formats, instance }?: AdapterOptions<string, typeof defaultJMoment>);
|
|
40
|
-
date: <T extends string | null | undefined>(value?: T
|
|
40
|
+
date: <T extends string | null | undefined>(value?: T) => DateBuilderReturnType<T, Moment>;
|
|
41
41
|
getTimezone: () => string;
|
|
42
42
|
setTimezone: (value: Moment) => Moment;
|
|
43
43
|
parse: (value: string, format: string) => defaultJMoment.Moment | null;
|
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,244 @@
|
|
|
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.3.1
|
|
7
|
+
|
|
8
|
+
_Apr 26, 2024_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 13 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 🎁 Scatter Charts get a [z-axis to allow coloring data points independently from their coordinates](https://mui.com/x/react-charts/scatter/#color-scale)
|
|
13
|
+
- 🌍 Improve Catalan (ca-ES) and Spanish (es-ES) locales on the Date and Time Pickers
|
|
14
|
+
- 🐞 Bugfixes
|
|
15
|
+
- 📚 Documentation improvements
|
|
16
|
+
|
|
17
|
+
### Data Grid
|
|
18
|
+
|
|
19
|
+
#### `@mui/x-data-grid@7.3.1`
|
|
20
|
+
|
|
21
|
+
- [DataGrid] Fix date filtering for negative timezone offsets (#12836) @cherniavskii
|
|
22
|
+
- [DataGrid] Fix flex column width when used with pinned columns (#12849) @romgrk
|
|
23
|
+
- [DataGrid] Fix group header resize (#12863) @arminmeh
|
|
24
|
+
- [DataGrid] Pass slot props to `columnHeaders` slot (#12768) @cherniavskii
|
|
25
|
+
|
|
26
|
+
#### `@mui/x-data-grid-pro@7.3.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
27
|
+
|
|
28
|
+
Same changes as in `@mui/x-data-grid@7.3.1`.
|
|
29
|
+
|
|
30
|
+
#### `@mui/x-data-grid-premium@7.3.1` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
31
|
+
|
|
32
|
+
Same changes as in `@mui/x-data-grid-pro@7.3.1`.
|
|
33
|
+
|
|
34
|
+
### Date and Time Pickers
|
|
35
|
+
|
|
36
|
+
#### `@mui/x-date-pickers@7.3.1`
|
|
37
|
+
|
|
38
|
+
- [l10n] Improve Catalan (ca-ES) locale (#12856) @soler1212
|
|
39
|
+
- [l10n] Improve Spanish (es-ES) locale (#12858) @soler1212
|
|
40
|
+
|
|
41
|
+
#### `@mui/x-date-pickers-pro@7.3.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
42
|
+
|
|
43
|
+
Same changes as in `@mui/x-date-pickers@7.3.1`.
|
|
44
|
+
|
|
45
|
+
### Charts
|
|
46
|
+
|
|
47
|
+
#### `@mui/x-charts@7.3.1`
|
|
48
|
+
|
|
49
|
+
- [charts] Add documentation on border radius alternative for `BarCharts` (#12859) @JCQuintas
|
|
50
|
+
- [charts] Add z-axis to colorize scatter charts (#12738) @alexfauquette
|
|
51
|
+
- [charts] Fix left/bottomAxis not picking up default axis id (#12894) @JCQuintas
|
|
52
|
+
- [charts] Improve default tooltip content (#12257) @oliviertassinari
|
|
53
|
+
- [charts] Round y values for bar chart (#12846) @alexfauquette
|
|
54
|
+
|
|
55
|
+
### Tree View
|
|
56
|
+
|
|
57
|
+
#### `@mui/x-tree-view@7.3.1`
|
|
58
|
+
|
|
59
|
+
- [TreeView] Remove un-needed `aria-activedescendant` attribute (#12867) @flaviendelangle
|
|
60
|
+
- [TreeView] Rework the selection internals (#12703) @flaviendelangle
|
|
61
|
+
- [TreeView] Use the order in which the items are displayed for `type-ahead` (#12827) @flaviendelangle
|
|
62
|
+
|
|
63
|
+
### Docs
|
|
64
|
+
|
|
65
|
+
- [docs] Add demo for styling charts with `sx` props (#12791) @derek-0000
|
|
66
|
+
- [docs] Cover webpack 4 support in migration guide (#12710) @cherniavskii
|
|
67
|
+
- [docs] Document interfaces for charts (#12656) @alexfauquette
|
|
68
|
+
- [docs] Fix Vale regression (#12862) @oliviertassinari
|
|
69
|
+
- [docs] Improve Data Grid migration guide (#12879) @MBilalShafi
|
|
70
|
+
- [docs] Update Column features availability (#12865) @DanailH
|
|
71
|
+
|
|
72
|
+
### Core
|
|
73
|
+
|
|
74
|
+
- [core] Fix `l10n` GH workflow (#12895) @LukasTy
|
|
75
|
+
- [core] Match Base UI and Toolpad @oliviertassinari
|
|
76
|
+
- [core] Remove redundant `setupFiles` entries in `package.json` (#12899) @LukasTy
|
|
77
|
+
- [core] Use `describeTreeView` for focus tests (#12698) @flaviendelangle
|
|
78
|
+
- [core] Use `describeTreeView` for type-ahead tests (#12811) @flaviendelangle
|
|
79
|
+
- [code-infra] Change package manager to `pnpm` (#11875) @LukasTy
|
|
80
|
+
- [code-infra] Closer sync with eslint config of codebase (#12864) @oliviertassinari
|
|
81
|
+
- [support-infra] Add release announcement to GitHub workflows (#11867) (#12843) @michelengelen
|
|
82
|
+
|
|
83
|
+
## 7.3.0
|
|
84
|
+
|
|
85
|
+
_Apr 18, 2024_
|
|
86
|
+
|
|
87
|
+
We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
|
|
88
|
+
|
|
89
|
+
- 📄 Support [unknown and estimated row count in server-side pagination](https://mui.com/x/react-data-grid/pagination/#index-based-pagination) (#12490) @MBilalShafi
|
|
90
|
+
- 🎨 Support color scales in Charts (#12490) @alexfauquette
|
|
91
|
+
Add a [`colorMap` configuration](https://mui.com/x/react-charts/styling/#values-color) to an axis, and the chart will use it to select colors.
|
|
92
|
+
Each impacted chart ([bar charts](https://mui.com/x/react-charts/bars/#color-scale), [line charts](https://mui.com/x/react-charts/lines/#color-scale), [scatter charts](https://mui.com/x/react-charts/scatter/#color-scale)) has a dedicated section explaining how this color map is impacting it.
|
|
93
|
+
|
|
94
|
+
<img src="https://github.com/mui/mui-x/assets/45398769/f0066606-3486-4c4e-b3be-7fdd56d763c3" alt="scatter chart with gradient along y-axis" />
|
|
95
|
+
|
|
96
|
+
- 🌍 Improve Danish (da-DK) locale on the Data Grid
|
|
97
|
+
- 🐞 Bugfixes
|
|
98
|
+
- 📚 Documentation improvements
|
|
99
|
+
|
|
100
|
+
### Data Grid
|
|
101
|
+
|
|
102
|
+
#### `@mui/x-data-grid@7.3.0`
|
|
103
|
+
|
|
104
|
+
- [DataGrid] Fix calling `onCellEditStop` on error (#12747) @sai6855
|
|
105
|
+
- [DataGrid] Fix column resize (#12792) @romgrk
|
|
106
|
+
- [DataGrid] Fix column separators (#12808) @romgrk
|
|
107
|
+
- [DataGrid] Limit panel width to not exceed screen width (#12799) @cherniavskii
|
|
108
|
+
- [DataGrid] Support advanced server-side pagination use cases (#12474) @MBilalShafi
|
|
109
|
+
- [DataGrid] Support state export and restore on grid density (#12671) @MBilalShafi
|
|
110
|
+
- [l10n] Improve Danish (da-DK) locale (#12784) @EmilBahnsen
|
|
111
|
+
|
|
112
|
+
#### `@mui/x-data-grid-pro@7.3.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
113
|
+
|
|
114
|
+
Same changes as in `@mui/x-data-grid@7.3.0`, plus:
|
|
115
|
+
|
|
116
|
+
- [DataGridPro] Implement header filter height (#12666) @romgrk
|
|
117
|
+
|
|
118
|
+
#### `@mui/x-data-grid-premium@7.3.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
119
|
+
|
|
120
|
+
Same changes as in `@mui/x-data-grid-pro@7.3.0`.
|
|
121
|
+
|
|
122
|
+
### Charts
|
|
123
|
+
|
|
124
|
+
#### Breaking change
|
|
125
|
+
|
|
126
|
+
A typo fix:
|
|
127
|
+
|
|
128
|
+
```diff
|
|
129
|
+
- ContinuouseScaleName
|
|
130
|
+
+ ContinuousScaleName
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
#### `@mui/x-charts@7.3.0`
|
|
134
|
+
|
|
135
|
+
- [charts] Add `dataIndex` to series `valueFormatter` (#12745) @JCQuintas
|
|
136
|
+
- [charts] Add color scale (#12490) @alexfauquette
|
|
137
|
+
- [charts] Do not document the usage of `DEFAULT_X_AXIS_KEY` and `DEFAULT_Y_AXIS_KEY` (#12780) @alexfauquette
|
|
138
|
+
- [charts] Export more utils (#12744) @alexfauquette
|
|
139
|
+
- [charts] Fix passing slot props down to `PieArcLabel` (#12806) @JCQuintas
|
|
140
|
+
|
|
141
|
+
### Tree View
|
|
142
|
+
|
|
143
|
+
#### `@mui/x-tree-view@7.3.0`
|
|
144
|
+
|
|
145
|
+
- [TreeView] Support `defaultMuiPrevented` on the `onFocus` prop of the root slot (#12813) @flaviendelangle
|
|
146
|
+
|
|
147
|
+
### Docs
|
|
148
|
+
|
|
149
|
+
- [docs] Add grid cell display example to the migration guide (#12793) @romgrk
|
|
150
|
+
- [docs] Use charts classes objects (#12781) @alexfauquette
|
|
151
|
+
- [docs] Fix layout shift on demos (#12816) @zanivan
|
|
152
|
+
- [test] Increase timeout for test that sometimes fail on `DateTimeRangePicker` (#12786) @LukasTy
|
|
153
|
+
|
|
154
|
+
### Core
|
|
155
|
+
|
|
156
|
+
- [docs-infra] Prepare infra to document charts interfaces (#12653) @alexfauquette
|
|
157
|
+
|
|
158
|
+
## 7.2.0
|
|
159
|
+
|
|
160
|
+
_Apr 12, 2024_
|
|
161
|
+
|
|
162
|
+
We'd like to offer a big thanks to the 12 contributors who made this release possible. Here are some highlights ✨:
|
|
163
|
+
|
|
164
|
+
- 🎨 Make grid colors customizable through the MUI themes API
|
|
165
|
+
- 🌍 Improve French (fr-FR), German (de-DE), and Swedish (sv-SE) locales on the Data Grid and Pickers
|
|
166
|
+
- 🐞 Bugfixes
|
|
167
|
+
- 📚 Documentation improvements
|
|
168
|
+
|
|
169
|
+
### Data Grid
|
|
170
|
+
|
|
171
|
+
#### `@mui/x-data-grid@7.2.0`
|
|
172
|
+
|
|
173
|
+
- [DataGrid] Add missing `api` property to `GridCallbackDetails` (#12742) @sai6855
|
|
174
|
+
- [DataGrid] Do not escape double quotes when copying to clipboard (#12722) @cherniavskii
|
|
175
|
+
- [DataGrid] Fix column vertical border (#12741) @romgrk
|
|
176
|
+
- [DataGrid] Fix invalid date error when filtering `date`/`dateTime` columns (#12709) @cherniavskii
|
|
177
|
+
- [DataGrid] Fix overflow with dynamic row height (#12683) @romgrk
|
|
178
|
+
- [DataGrid] Make colors customizable (#12614) @romgrk
|
|
179
|
+
- [l10n] Improve French (fr-FR) locale (#12755) @derek-0000
|
|
180
|
+
- [l10n] Improve German (de-DE) locale (#12752) @Jens-Schoen
|
|
181
|
+
- [l10n] Improve Swedish (sv-SE) locale (#12731) @pontusdacke
|
|
182
|
+
|
|
183
|
+
#### `@mui/x-data-grid-pro@7.2.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
184
|
+
|
|
185
|
+
Same changes as in `@mui/x-data-grid@7.2.0`.
|
|
186
|
+
|
|
187
|
+
#### `@mui/x-data-grid-premium@7.2.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
188
|
+
|
|
189
|
+
Same changes as in `@mui/x-data-grid-pro@7.2.0`, plus:
|
|
190
|
+
|
|
191
|
+
- [DataGridPremium] Fix clipboard paste not working when cell loses focus (#12724) @cherniavskii
|
|
192
|
+
|
|
193
|
+
### Date and Time Pickers
|
|
194
|
+
|
|
195
|
+
#### `@mui/x-date-pickers@7.2.0`
|
|
196
|
+
|
|
197
|
+
- [fields] Fix field editing after closing the picker (#12675) @LukasTy
|
|
198
|
+
- [l10n] Improve French (fr-FR) locale (#12692) @FaroukBel
|
|
199
|
+
- [l10n] Improve German (de-DE) locale (#12752) @Jens-Schoen
|
|
200
|
+
- [l10n] Improve Swedish (sv-SE) locale (#12731) @pontusdacke
|
|
201
|
+
- [pickers] Fix desktop date time Pickers grid layout (#12748) @LukasTy
|
|
202
|
+
|
|
203
|
+
#### `@mui/x-date-pickers-pro@7.2.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
204
|
+
|
|
205
|
+
Same changes as in `@mui/x-date-pickers@7.2.0`, plus:
|
|
206
|
+
|
|
207
|
+
- [DateTimeRangePicker] Fix desktop toolbar style (#12760) @LukasTy
|
|
208
|
+
|
|
209
|
+
### Charts
|
|
210
|
+
|
|
211
|
+
#### `@mui/x-charts@7.2.0`
|
|
212
|
+
|
|
213
|
+
- [charts] Fix Bar chart with empty dataset throwing an error (#12708) @JCQuintas
|
|
214
|
+
- [charts] Fix `tickLabelInterval` not working on `YAxis` (#12746) @JCQuintas
|
|
215
|
+
|
|
216
|
+
### Tree View
|
|
217
|
+
|
|
218
|
+
#### `@mui/x-tree-view@7.2.0`
|
|
219
|
+
|
|
220
|
+
- [TreeView] Add a new lookup to access an item index without expansive computation (#12729) @flaviendelangle
|
|
221
|
+
- [TreeView] Clean up usage of term "node" in internals (#12655) @noraleonte
|
|
222
|
+
- [TreeView] Improve performance by removing `getNavigableChildrenIds` method (#12713) @flaviendelangle
|
|
223
|
+
- [TreeView] Remove `state.items.itemTree` (#12717) @flaviendelangle
|
|
224
|
+
- [TreeView] Remove remaining occurences of the word "node" in the codebase (#12712) @flaviendelangle
|
|
225
|
+
- [TreeView] Return `instance` and `publicAPI` methods from plugin and populate the main objects inside `useTreeView` (#12650) @flaviendelangle
|
|
226
|
+
- [TreeView] Fix behaviors when the item order changes (#12369) @flaviendelangle
|
|
227
|
+
|
|
228
|
+
### Docs
|
|
229
|
+
|
|
230
|
+
- [docs] Add `AxisFormatter` documentation for customizing tick/tooltip value formatting (#12700) @JCQuintas
|
|
231
|
+
- [docs] Add file explorer example to rich tree view customization docs (#12707) @noraleonte
|
|
232
|
+
- [docs] Do not use import of depth 3 in the doc (#12716) @flaviendelangle
|
|
233
|
+
- [docs] Explain how to clip plots with composition (#12679) @alexfauquette
|
|
234
|
+
- [docs] Fix typo in Data Grid v7 migration page (#12720) @bfaulk96
|
|
235
|
+
- [docs] Fix typo in Pickers v7 migration page (#12721) @bfaulk96
|
|
236
|
+
|
|
237
|
+
### Core
|
|
238
|
+
|
|
239
|
+
- [core] Support multiple resolved `l10n` PR packages (#12735) @LukasTy
|
|
240
|
+
- [core] Update Netlify release references in release README (#12687) @LukasTy
|
|
241
|
+
- [core] Use `describeTreeView` for icons tests (#12672) @flaviendelangle
|
|
242
|
+
- [core] Use `describeTreeView` in existing tests for `useTreeViewItems` (#12732) @flaviendelangle
|
|
243
|
+
|
|
6
244
|
## 7.1.1
|
|
7
245
|
|
|
8
246
|
_Apr 5, 2024_
|
|
@@ -82,7 +320,7 @@ Same changes as in `@mui/x-date-pickers@7.1.1`, plus:
|
|
|
82
320
|
- [docs] Fix type arguments in Custom Field page (#12619) @Juneezee
|
|
83
321
|
- [docs] Fix typo in `getItemId` prop description (#12637) @flaviendelangle
|
|
84
322
|
- [docs] Make the Charts `margin` usage more visible (#12591) @alexfauquette
|
|
85
|
-
- [docs] Match IE 11 spacing with Material
|
|
323
|
+
- [docs] Match IE 11 spacing with Material UI @oliviertassinari
|
|
86
324
|
- [docs] Move data grid interfaces to standard API page layout (#12016) @alexfauquette
|
|
87
325
|
- [docs] Remove ` around @default values (#12158) @alexfauquette
|
|
88
326
|
- [docs] Remove `day` from the default `dayOfWeekFormatter` function params (#12644) @LukasTy
|
|
@@ -345,7 +583,7 @@ Same changes as in `@mui/x-date-pickers@7.0.0`, plus:
|
|
|
345
583
|
- [docs] Update links to v6 (#12496) @cherniavskii
|
|
346
584
|
- [docs] Update links to v7 docs (#12500) @noraleonte
|
|
347
585
|
- [docs] Update supported versions (#12508) @joserodolfofreitas
|
|
348
|
-
- [docs] Update "What's new in MUI
|
|
586
|
+
- [docs] Update "What's new in MUI X" page #12527 @cherniavskii
|
|
349
587
|
|
|
350
588
|
### Core
|
|
351
589
|
|
|
@@ -2972,6 +3210,56 @@ Here is an example of the renaming for the `<ChartsTooltip />` component.
|
|
|
2972
3210
|
- [core] Update release instructions as per v7 configuration (#10962) @MBilalShafi
|
|
2973
3211
|
- [license] Correctly throw errors (#10924) @oliviertassinari
|
|
2974
3212
|
|
|
3213
|
+
## 6.19.11
|
|
3214
|
+
|
|
3215
|
+
_Apr 18, 2024_
|
|
3216
|
+
|
|
3217
|
+
We'd like to offer a big thanks to the 1 contributor who made this release possible. Here are some highlights ✨:
|
|
3218
|
+
|
|
3219
|
+
- 🐞 Bugfixes
|
|
3220
|
+
|
|
3221
|
+
### Data Grid
|
|
3222
|
+
|
|
3223
|
+
#### `@mui/x-data-grid@6.19.11`
|
|
3224
|
+
|
|
3225
|
+
- [DataGrid] Fix virtualization memory leak (#12812) @romgrk
|
|
3226
|
+
|
|
3227
|
+
#### `@mui/x-data-grid-pro@6.19.11` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
3228
|
+
|
|
3229
|
+
Same changes as in `@mui/x-data-grid@6.19.11`.
|
|
3230
|
+
|
|
3231
|
+
#### `@mui/x-data-grid-premium@6.19.11` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
3232
|
+
|
|
3233
|
+
Same changes as in `@mui/x-data-grid-pro@6.19.11`.
|
|
3234
|
+
|
|
3235
|
+
## 6.19.10
|
|
3236
|
+
|
|
3237
|
+
_Apr 12, 2024_
|
|
3238
|
+
|
|
3239
|
+
We'd like to offer a big thanks to the 2 contributors who made this release possible. Here are some highlights ✨:
|
|
3240
|
+
|
|
3241
|
+
- 🐞 Bugfixes
|
|
3242
|
+
- 📚 Documentation improvements
|
|
3243
|
+
|
|
3244
|
+
### Data Grid
|
|
3245
|
+
|
|
3246
|
+
#### `@mui/x-data-grid@6.19.10`
|
|
3247
|
+
|
|
3248
|
+
- [DataGrid] Do not escape double quotes when copying to clipboard (#12734) @cherniavskii
|
|
3249
|
+
- [DataGrid] Fix bug in suspense (#12754) @cherniavskii
|
|
3250
|
+
|
|
3251
|
+
#### `@mui/x-data-grid-pro@6.19.10` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
3252
|
+
|
|
3253
|
+
Same changes as in `@mui/x-data-grid@6.19.10`.
|
|
3254
|
+
|
|
3255
|
+
#### `@mui/x-data-grid-premium@6.19.10` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
3256
|
+
|
|
3257
|
+
Same changes as in `@mui/x-data-grid-pro@6.19.10`.
|
|
3258
|
+
|
|
3259
|
+
### Core
|
|
3260
|
+
|
|
3261
|
+
- [core] Update the docs release source branch (#12685) @LukasTy
|
|
3262
|
+
|
|
2975
3263
|
## 6.19.9
|
|
2976
3264
|
|
|
2977
3265
|
_Apr 5, 2024_
|
|
@@ -22,8 +22,7 @@ import { getDateCalendarUtilityClass } from './dateCalendarClasses';
|
|
|
22
22
|
import { useControlledValueWithTimezone } from '../internals/hooks/useValueWithTimezone';
|
|
23
23
|
import { singleItemValueManager } from '../internals/utils/valueManagers';
|
|
24
24
|
import { VIEW_HEIGHT } from '../internals/constants/dimensions';
|
|
25
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
26
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
25
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
27
26
|
const useUtilityClasses = ownerState => {
|
|
28
27
|
const {
|
|
29
28
|
classes
|
|
@@ -16,8 +16,7 @@ import { PickersSlideTransition } from './PickersSlideTransition';
|
|
|
16
16
|
import { useIsDateDisabled } from './useIsDateDisabled';
|
|
17
17
|
import { findClosestEnabledDate, getWeekdays } from '../internals/utils/date-utils';
|
|
18
18
|
import { getDayCalendarUtilityClass } from './dayCalendarClasses';
|
|
19
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
20
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
19
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
21
20
|
const useUtilityClasses = ownerState => {
|
|
22
21
|
const {
|
|
23
22
|
classes
|
|
@@ -22,9 +22,7 @@ interface ChangeFocusedDayPayload<TDate extends PickerValidDate> {
|
|
|
22
22
|
*/
|
|
23
23
|
withoutMonthSwitchingAnimation?: boolean;
|
|
24
24
|
}
|
|
25
|
-
export declare const createCalendarStateReducer: <TDate extends PickerValidDate>(reduceAnimations: boolean, disableSwitchToMonthOnDayFocus: boolean, utils: MuiPickersAdapter<TDate
|
|
26
|
-
type: "finishMonthSwitchingAnimation";
|
|
27
|
-
} | ReducerAction<"changeMonth", ChangeMonthPayload<TDate>> | ReducerAction<"changeFocusedDay", ChangeFocusedDayPayload<TDate>>) => CalendarState<TDate>;
|
|
25
|
+
export declare const createCalendarStateReducer: <TDate extends PickerValidDate>(reduceAnimations: boolean, disableSwitchToMonthOnDayFocus: boolean, utils: MuiPickersAdapter<TDate>) => (state: CalendarState<TDate>, action: ReducerAction<'finishMonthSwitchingAnimation'> | ReducerAction<'changeMonth', ChangeMonthPayload<TDate>> | ReducerAction<'changeFocusedDay', ChangeFocusedDayPayload<TDate>>) => CalendarState<TDate>;
|
|
28
26
|
interface UseCalendarStateParams<TDate extends PickerValidDate> extends Pick<DateCalendarDefaultizedProps<TDate>, 'value' | 'referenceDate' | 'disableFuture' | 'disablePast' | 'minDate' | 'maxDate' | 'onMonthChange' | 'reduceAnimations' | 'shouldDisableDate'> {
|
|
29
27
|
disableSwitchToMonthOnDayFocus?: boolean;
|
|
30
28
|
timezone: PickersTimezone;
|
|
@@ -9,8 +9,7 @@ import { TimeIcon, DateRangeIcon } from '../icons';
|
|
|
9
9
|
import { useLocaleText } from '../internals/hooks/useUtils';
|
|
10
10
|
import { getDateTimePickerTabsUtilityClass } from './dateTimePickerTabsClasses';
|
|
11
11
|
import { isDatePickerView } from '../internals/utils/date-utils';
|
|
12
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
13
|
const viewToTab = view => {
|
|
15
14
|
if (isDatePickerView(view)) {
|
|
16
15
|
return 'date';
|
|
@@ -16,8 +16,7 @@ import { MULTI_SECTION_CLOCK_SECTION_WIDTH } from '../internals/constants/dimens
|
|
|
16
16
|
import { formatMeridiem } from '../internals/utils/date-utils';
|
|
17
17
|
import { pickersToolbarTextClasses } from '../internals/components/pickersToolbarTextClasses';
|
|
18
18
|
import { pickersToolbarClasses } from '../internals';
|
|
19
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
20
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
19
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
21
20
|
const useUtilityClasses = ownerState => {
|
|
22
21
|
const {
|
|
23
22
|
classes,
|
|
@@ -21,8 +21,7 @@ import { VIEW_HEIGHT, isDatePickerView, isInternalTimeView } from '../internals'
|
|
|
21
21
|
import { multiSectionDigitalClockClasses, multiSectionDigitalClockSectionClasses } from '../MultiSectionDigitalClock';
|
|
22
22
|
import { digitalClockClasses } from '../DigitalClock';
|
|
23
23
|
import { DesktopDateTimePickerLayout } from './DesktopDateTimePickerLayout';
|
|
24
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
25
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
26
25
|
const rendererInterceptor = function rendererInterceptor(inViewRenderers, popperView, rendererProps) {
|
|
27
26
|
const {
|
|
28
27
|
openTo,
|
|
@@ -46,15 +45,24 @@ const rendererInterceptor = function rendererInterceptor(inViewRenderers, popper
|
|
|
46
45
|
children: [inViewRenderers[!isTimeViewActive ? popperView : 'day']?.(_extends({}, rendererProps, {
|
|
47
46
|
view: !isTimeViewActive ? popperView : 'day',
|
|
48
47
|
focusedView: focusedView && isDatePickerView(focusedView) ? focusedView : null,
|
|
49
|
-
views: rendererProps.views.filter(isDatePickerView)
|
|
48
|
+
views: rendererProps.views.filter(isDatePickerView),
|
|
49
|
+
sx: [{
|
|
50
|
+
gridColumn: 1
|
|
51
|
+
}, ...finalProps.sx]
|
|
50
52
|
})), timeViewsCount > 0 && /*#__PURE__*/_jsxs(React.Fragment, {
|
|
51
53
|
children: [/*#__PURE__*/_jsx(Divider, {
|
|
52
|
-
orientation: "vertical"
|
|
54
|
+
orientation: "vertical",
|
|
55
|
+
sx: {
|
|
56
|
+
gridColumn: 2
|
|
57
|
+
}
|
|
53
58
|
}), inViewRenderers[isTimeViewActive ? popperView : 'hours']?.(_extends({}, finalProps, {
|
|
54
59
|
view: isTimeViewActive ? popperView : 'hours',
|
|
55
60
|
focusedView: focusedView && isInternalTimeView(focusedView) ? focusedView : null,
|
|
56
61
|
openTo: isInternalTimeView(openTo) ? openTo : 'hours',
|
|
57
|
-
views: rendererProps.views.filter(isInternalTimeView)
|
|
62
|
+
views: rendererProps.views.filter(isInternalTimeView),
|
|
63
|
+
sx: [{
|
|
64
|
+
gridColumn: 3
|
|
65
|
+
}, ...finalProps.sx]
|
|
58
66
|
}))]
|
|
59
67
|
})]
|
|
60
68
|
});
|
|
@@ -3,8 +3,7 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import Divider from '@mui/material/Divider';
|
|
5
5
|
import { PickersLayoutContentWrapper, PickersLayoutRoot, pickersLayoutClasses, usePickerLayout } from '../PickersLayout';
|
|
6
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
7
|
/**
|
|
9
8
|
* @ignore - internal component.
|
|
10
9
|
*/
|
|
@@ -16,8 +16,7 @@ import { ArrowDropDownIcon } from '../icons';
|
|
|
16
16
|
import { PickersArrowSwitcher } from '../internals/components/PickersArrowSwitcher';
|
|
17
17
|
import { usePreviousMonthDisabled, useNextMonthDisabled } from '../internals/hooks/date-helpers-hooks';
|
|
18
18
|
import { getPickersCalendarHeaderUtilityClass, pickersCalendarHeaderClasses } from './pickersCalendarHeaderClasses';
|
|
19
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
20
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
19
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
21
20
|
const useUtilityClasses = ownerState => {
|
|
22
21
|
const {
|
|
23
22
|
classes
|
|
@@ -5,8 +5,7 @@ import { styled, useThemeProps } from '@mui/material/styles';
|
|
|
5
5
|
import { unstable_composeClasses as composeClasses } from '@mui/utils';
|
|
6
6
|
import { pickersLayoutClasses, getPickersLayoutUtilityClass } from './pickersLayoutClasses';
|
|
7
7
|
import usePickerLayout from './usePickerLayout';
|
|
8
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
+
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
10
9
|
const useUtilityClasses = ownerState => {
|
|
11
10
|
const {
|
|
12
11
|
isLandscape,
|
|
@@ -8,8 +8,7 @@ import composeClasses from '@mui/utils/composeClasses';
|
|
|
8
8
|
import useForkRef from '@mui/utils/useForkRef';
|
|
9
9
|
import { styled, useThemeProps } from '@mui/material/styles';
|
|
10
10
|
import { getPickersSectionListUtilityClass, pickersSectionListClasses } from './pickersSectionListClasses';
|
|
11
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
12
|
export const PickersSectionListRoot = styled('div', {
|
|
14
13
|
name: 'MuiPickersSectionList',
|
|
15
14
|
slot: 'Root',
|
|
@@ -13,8 +13,7 @@ import { useSlotProps } from '@mui/base/utils';
|
|
|
13
13
|
import visuallyHidden from '@mui/utils/visuallyHidden';
|
|
14
14
|
import { pickersInputBaseClasses, getPickersInputBaseUtilityClass } from './pickersInputBaseClasses';
|
|
15
15
|
import { Unstable_PickersSectionList as PickersSectionList, Unstable_PickersSectionListRoot as PickersSectionListRoot, Unstable_PickersSectionListSection as PickersSectionListSection, Unstable_PickersSectionListSectionSeparator as PickersSectionListSectionSeparator, Unstable_PickersSectionListSectionContent as PickersSectionListSectionContent } from '../../PickersSectionList';
|
|
16
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
18
17
|
const round = value => Math.round(value * 1e5) / 1e5;
|
|
19
18
|
export const PickersInputBaseRoot = styled('div', {
|
|
20
19
|
name: 'MuiPickersInputBase',
|
|
@@ -11,8 +11,7 @@ import { pickersOutlinedInputClasses, getPickersOutlinedInputUtilityClass } from
|
|
|
11
11
|
import Outline from './Outline';
|
|
12
12
|
import { PickersInputBase } from '../PickersInputBase';
|
|
13
13
|
import { PickersInputBaseRoot, PickersInputBaseSectionsContainer } from '../PickersInputBase/PickersInputBase';
|
|
14
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
+
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
16
15
|
const PickersOutlinedInputRoot = styled(PickersInputBaseRoot, {
|
|
17
16
|
name: 'MuiPickersOutlinedInput',
|
|
18
17
|
slot: 'Root',
|
|
@@ -16,8 +16,7 @@ import { getPickersTextFieldUtilityClass } from './pickersTextFieldClasses';
|
|
|
16
16
|
import { PickersOutlinedInput } from './PickersOutlinedInput';
|
|
17
17
|
import { PickersFilledInput } from './PickersFilledInput';
|
|
18
18
|
import { PickersInput } from './PickersInput';
|
|
19
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
20
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
19
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
21
20
|
const VARIANT_COMPONENT = {
|
|
22
21
|
standard: PickersInput,
|
|
23
22
|
filled: PickersFilledInput,
|
package/TimeClock/Clock.js
CHANGED
|
@@ -9,8 +9,7 @@ import { useLocaleText, useUtils } from '../internals/hooks/useUtils';
|
|
|
9
9
|
import { CLOCK_HOUR_WIDTH, getHours, getMinutes } from './shared';
|
|
10
10
|
import { getClockUtilityClass } from './clockClasses';
|
|
11
11
|
import { formatMeridiem } from '../internals/utils/date-utils';
|
|
12
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
13
|
const useUtilityClasses = ownerState => {
|
|
15
14
|
const {
|
|
16
15
|
classes
|
|
@@ -18,7 +18,7 @@ interface GetHourNumbersOptions<TDate extends PickerValidDate> {
|
|
|
18
18
|
* @ignore - internal component.
|
|
19
19
|
*/
|
|
20
20
|
export declare const getHourNumbers: <TDate extends PickerValidDate>({ ampm, value, getClockNumberText, isDisabled, selectedId, utils, }: GetHourNumbersOptions<TDate>) => React.JSX.Element[];
|
|
21
|
-
export declare const getMinutesNumbers: <TDate extends PickerValidDate>({ utils, value, isDisabled, getClockNumberText, selectedId, }: Omit<GetHourNumbersOptions<TDate>,
|
|
21
|
+
export declare const getMinutesNumbers: <TDate extends PickerValidDate>({ utils, value, isDisabled, getClockNumberText, selectedId, }: Omit<GetHourNumbersOptions<TDate>, 'ampm' | 'value'> & {
|
|
22
22
|
value: number;
|
|
23
23
|
}) => React.JSX.Element[];
|
|
24
24
|
export {};
|
package/TimeClock/TimeClock.js
CHANGED
|
@@ -18,8 +18,7 @@ import { getHourNumbers, getMinutesNumbers } from './ClockNumbers';
|
|
|
18
18
|
import { useControlledValueWithTimezone } from '../internals/hooks/useValueWithTimezone';
|
|
19
19
|
import { singleItemValueManager } from '../internals/utils/valueManagers';
|
|
20
20
|
import { useClockReferenceDate } from '../internals/hooks/useClockReferenceDate';
|
|
21
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
22
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
21
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
23
22
|
const useUtilityClasses = ownerState => {
|
|
24
23
|
const {
|
|
25
24
|
classes
|
|
@@ -14,8 +14,7 @@ import { useLocaleText, useUtils } from '../internals/hooks/useUtils';
|
|
|
14
14
|
import { useMeridiemMode } from '../internals/hooks/date-helpers-hooks';
|
|
15
15
|
import { getTimePickerToolbarUtilityClass, timePickerToolbarClasses } from './timePickerToolbarClasses';
|
|
16
16
|
import { formatMeridiem } from '../internals/utils/date-utils';
|
|
17
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
18
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
19
18
|
const useUtilityClasses = ownerState => {
|
|
20
19
|
const {
|
|
21
20
|
theme,
|
|
@@ -8,8 +8,7 @@ import MuiIconButton from '@mui/material/IconButton';
|
|
|
8
8
|
import InputAdornment from '@mui/material/InputAdornment';
|
|
9
9
|
import { ClearIcon } from '../icons';
|
|
10
10
|
import { useLocaleText } from '../internals/hooks/useUtils';
|
|
11
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
12
|
export const useClearableField = props => {
|
|
14
13
|
const localeText = useLocaleText();
|
|
15
14
|
const {
|
package/icons/index.js
CHANGED
|
@@ -4,8 +4,7 @@ import * as React from 'react';
|
|
|
4
4
|
/**
|
|
5
5
|
* @ignore - internal component.
|
|
6
6
|
*/
|
|
7
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
8
|
export const ArrowDropDownIcon = createSvgIcon( /*#__PURE__*/_jsx("path", {
|
|
10
9
|
d: "M7 10l5 5 5-5z"
|
|
11
10
|
}), 'ArrowDropDown');
|
package/index.js
CHANGED