@mui/x-date-pickers-pro 6.0.0 → 6.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +103 -12
- package/DateRangeCalendar/DateRangeCalendar.js +2 -2
- package/DateRangeCalendar/DateRangeCalendar.types.d.ts +2 -2
- package/DateRangePicker/DateRangePicker.js +2 -2
- package/DateRangePicker/DateRangePicker.types.d.ts +2 -2
- package/DateRangePicker/shared.d.ts +2 -2
- package/DesktopDateRangePicker/DesktopDateRangePicker.js +2 -2
- package/DesktopDateRangePicker/DesktopDateRangePicker.types.d.ts +2 -2
- package/MobileDateRangePicker/MobileDateRangePicker.js +2 -2
- package/MobileDateRangePicker/MobileDateRangePicker.types.d.ts +2 -2
- package/MultiInputDateRangeField/MultiInputDateRangeField.js +2 -2
- package/MultiInputDateRangeField/MultiInputDateRangeField.types.d.ts +2 -2
- package/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +2 -2
- package/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.types.d.ts +2 -2
- package/MultiInputTimeRangeField/MultiInputTimeRangeField.js +2 -2
- package/MultiInputTimeRangeField/MultiInputTimeRangeField.types.d.ts +2 -2
- package/SingleInputDateRangeField/SingleInputDateRangeField.js +2 -2
- package/SingleInputDateRangeField/SingleInputDateRangeField.types.d.ts +2 -2
- package/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +2 -2
- package/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.types.d.ts +2 -2
- package/SingleInputTimeRangeField/SingleInputTimeRangeField.js +2 -2
- package/SingleInputTimeRangeField/SingleInputTimeRangeField.types.d.ts +2 -2
- package/StaticDateRangePicker/StaticDateRangePicker.js +2 -2
- package/StaticDateRangePicker/StaticDateRangePicker.types.d.ts +2 -2
- package/index.js +1 -1
- package/internal/hooks/useDesktopRangePicker/useDesktopRangePicker.js +1 -1
- package/internal/hooks/useDesktopRangePicker/useDesktopRangePicker.types.d.ts +4 -2
- package/internal/hooks/useMobileRangePicker/useMobileRangePicker.js +1 -1
- package/internal/hooks/useMobileRangePicker/useMobileRangePicker.types.d.ts +4 -2
- package/internal/hooks/useStaticRangePicker/useStaticRangePicker.types.d.ts +1 -1
- package/internal/utils/releaseInfo.js +1 -1
- package/legacy/DateRangeCalendar/DateRangeCalendar.js +2 -2
- package/legacy/DateRangePicker/DateRangePicker.js +2 -2
- package/legacy/DesktopDateRangePicker/DesktopDateRangePicker.js +2 -2
- package/legacy/MobileDateRangePicker/MobileDateRangePicker.js +2 -2
- package/legacy/MultiInputDateRangeField/MultiInputDateRangeField.js +2 -2
- package/legacy/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +2 -2
- package/legacy/MultiInputTimeRangeField/MultiInputTimeRangeField.js +2 -2
- package/legacy/SingleInputDateRangeField/SingleInputDateRangeField.js +2 -2
- package/legacy/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +2 -2
- package/legacy/SingleInputTimeRangeField/SingleInputTimeRangeField.js +2 -2
- package/legacy/StaticDateRangePicker/StaticDateRangePicker.js +2 -2
- package/legacy/index.js +1 -1
- package/legacy/internal/hooks/useDesktopRangePicker/useDesktopRangePicker.js +1 -1
- package/legacy/internal/hooks/useMobileRangePicker/useMobileRangePicker.js +1 -1
- package/legacy/internal/utils/releaseInfo.js +1 -1
- package/modern/DateRangeCalendar/DateRangeCalendar.js +2 -2
- package/modern/DateRangePicker/DateRangePicker.js +2 -2
- package/modern/DesktopDateRangePicker/DesktopDateRangePicker.js +2 -2
- package/modern/MobileDateRangePicker/MobileDateRangePicker.js +2 -2
- package/modern/MultiInputDateRangeField/MultiInputDateRangeField.js +2 -2
- package/modern/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +2 -2
- package/modern/MultiInputTimeRangeField/MultiInputTimeRangeField.js +2 -2
- package/modern/SingleInputDateRangeField/SingleInputDateRangeField.js +2 -2
- package/modern/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +2 -2
- package/modern/SingleInputTimeRangeField/SingleInputTimeRangeField.js +2 -2
- package/modern/StaticDateRangePicker/StaticDateRangePicker.js +2 -2
- package/modern/index.js +1 -1
- package/modern/internal/hooks/useDesktopRangePicker/useDesktopRangePicker.js +1 -1
- package/modern/internal/hooks/useMobileRangePicker/useMobileRangePicker.js +1 -1
- package/modern/internal/utils/releaseInfo.js +1 -1
- package/node/DateRangeCalendar/DateRangeCalendar.js +2 -2
- package/node/DateRangePicker/DateRangePicker.js +2 -2
- package/node/DesktopDateRangePicker/DesktopDateRangePicker.js +2 -2
- package/node/MobileDateRangePicker/MobileDateRangePicker.js +2 -2
- package/node/MultiInputDateRangeField/MultiInputDateRangeField.js +2 -2
- package/node/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +2 -2
- package/node/MultiInputTimeRangeField/MultiInputTimeRangeField.js +2 -2
- package/node/SingleInputDateRangeField/SingleInputDateRangeField.js +2 -2
- package/node/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +2 -2
- package/node/SingleInputTimeRangeField/SingleInputTimeRangeField.js +2 -2
- package/node/StaticDateRangePicker/StaticDateRangePicker.js +2 -2
- package/node/index.js +1 -1
- package/node/internal/hooks/useDesktopRangePicker/useDesktopRangePicker.js +1 -1
- package/node/internal/hooks/useMobileRangePicker/useMobileRangePicker.js +1 -1
- package/node/internal/utils/releaseInfo.js +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,97 @@
|
|
|
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.0.2
|
|
7
|
+
|
|
8
|
+
_Mar 16, 2023_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 🚀 Fire `onChange` when filling a partial date (#8082) @flaviendelangle
|
|
13
|
+
- 🎁 Support date format like `1st` (`do`) (#8188) @flaviendelangle
|
|
14
|
+
- 🌍 Add Hebrew (he-IL) locale (#8222) @ylarom
|
|
15
|
+
- 🌍 Improve Brazilian Portuguese (pt-BR), German (de-DE), and French (fr-FR) locales
|
|
16
|
+
- 📚 Documentation improvements
|
|
17
|
+
- 🐞 Bugfixes
|
|
18
|
+
|
|
19
|
+
### `@mui/x-data-grid@v6.0.2` / `@mui/x-data-grid-pro@v6.0.2` / `@mui/x-data-grid-premium@v6.0.2`
|
|
20
|
+
|
|
21
|
+
#### Changes
|
|
22
|
+
|
|
23
|
+
- [DataGrid] Fix <kbd>Space</kbd> triggering edit mode (#8180) @m4theushw
|
|
24
|
+
- [DataGrid] Remove warning when adding a custom column type (#8227) @m4theushw
|
|
25
|
+
- [l10n] Improve Brazilian Portuguese (pt-BR) locale (#8198) @JoaoSerafim3001
|
|
26
|
+
|
|
27
|
+
### `@mui/x-date-pickers@v6.0.2` / `@mui/x-date-pickers-pro@v6.0.2`
|
|
28
|
+
|
|
29
|
+
#### Changes
|
|
30
|
+
|
|
31
|
+
- [l10n] Add Hebrew (he-IL) locale (#8222) @ylarom
|
|
32
|
+
- [l10n] Improve German (de-DE) locale (#8204) @sebkasanzew
|
|
33
|
+
- [l10n] Improve French (fr-FR) locale (#8229) @marvinroger
|
|
34
|
+
- [DateRangePicker] Allow overriding `slotProps.textField` (#8201) @LukasTy
|
|
35
|
+
- [fields] Fire `onChange` when filling a partial date (#8082) @flaviendelangle
|
|
36
|
+
- [fields] Fix editing in shadow dom (#8254) @flaviendelangle
|
|
37
|
+
- [fields] Remove the duplicated warning about invalid adapter (#8187) @flaviendelangle
|
|
38
|
+
- [fields] Support date format like `1st` (`do`) (#8188) @flaviendelangle
|
|
39
|
+
- [pickers] Fix to avoid selecting sections on mobile picker field (#8228) @LukasTy
|
|
40
|
+
- [pickers] Inherit previous and next icons size from their parent button (#8218) @flaviendelangle
|
|
41
|
+
|
|
42
|
+
### Docs
|
|
43
|
+
|
|
44
|
+
- [docs] Add a warning in the migration guide for people re-enabling the clock on desktop (#8184) @flaviendelangle
|
|
45
|
+
- [docs] Add a warning for `luxon` macro tokens (#8245) @flaviendelangle
|
|
46
|
+
- [docs] Complete pickers customization pages (#8066) @alexfauquette
|
|
47
|
+
- [docs] Fix 301 redirection @oliviertassinari
|
|
48
|
+
- [docs] Fix 404 links to customization Material UI APIs (#8200) @oliviertassinari
|
|
49
|
+
- [docs] Fix `moment-hijri` demo (#8255) @LukasTy
|
|
50
|
+
- [docs] Improve migration diff (#8240) @oliviertassinari
|
|
51
|
+
- [docs] Change **What's new** page url to point to announcement blog post (#8186) @joserodolfofreitas
|
|
52
|
+
- [docs] Resolve 301 in changelog @oliviertassinari
|
|
53
|
+
|
|
54
|
+
### Core
|
|
55
|
+
|
|
56
|
+
- [core] Regen api docs (#8220) @flaviendelangle
|
|
57
|
+
- [core] Remove duplicated `/` (#8223) @alexfauquette
|
|
58
|
+
|
|
59
|
+
## 6.0.1
|
|
60
|
+
|
|
61
|
+
_Mar 9, 2023_
|
|
62
|
+
|
|
63
|
+
We'd like to offer a big thanks to the 8 contributors who made this release possible. Here are some highlights ✨:
|
|
64
|
+
|
|
65
|
+
- 🌍 Improve French (fr-FR) locale (#8122) @MaherSamiGMC
|
|
66
|
+
- 📚 Documentation improvements
|
|
67
|
+
- 🐞 Bugfixes
|
|
68
|
+
|
|
69
|
+
### `@mui/x-data-grid@v6.0.1` / `@mui/x-data-grid-pro@v6.0.1` / `@mui/x-data-grid-premium@v6.0.1`
|
|
70
|
+
|
|
71
|
+
#### Changes
|
|
72
|
+
|
|
73
|
+
- [DataGrid] Fix `MenuProps.onClose` being overridden for single select edit component (#8174) @rohitnatesh
|
|
74
|
+
- [DataGrid] Simplify `buildPrintWindow` (#8142) @oliviertassinari
|
|
75
|
+
- [l10n] Improve French (fr-FR) locale (#8122) @MaherSamiGMC
|
|
76
|
+
|
|
77
|
+
### `@mui/x-date-pickers@v6.0.1` / `@mui/x-date-pickers-pro@v6.0.1`
|
|
78
|
+
|
|
79
|
+
#### Changes
|
|
80
|
+
|
|
81
|
+
- [pickers] Add a runtime warning when a `renderInput` prop is passed to a picker (#8183) @flaviendelangle
|
|
82
|
+
- [pickers] Don't pass `ownerState` to the `inputAdornment` slot (#8165) @flaviendelangle
|
|
83
|
+
|
|
84
|
+
### Docs
|
|
85
|
+
|
|
86
|
+
- [docs] Fix a typo in the migration guide (#8152) @flaviendelangle
|
|
87
|
+
- [docs] Fix package version used in CodeSandbox demos (#8125) @cherniavskii
|
|
88
|
+
- [docs] Fix typos across codebase (#8126) @stavares843
|
|
89
|
+
- [docs] Improve Data Grid quick filter documentation (#8109) @MBilalShafi
|
|
90
|
+
- [docs] Improve link from npm to docs (#8141) @oliviertassinari
|
|
91
|
+
- [docs] Remove test sections (#8177) @m4theushw
|
|
92
|
+
|
|
93
|
+
### Core
|
|
94
|
+
|
|
95
|
+
- [core] Upgrade monorepo (#8162) @m4theushw
|
|
96
|
+
|
|
6
97
|
## 6.0.0
|
|
7
98
|
|
|
8
99
|
_Mar 3, 2023_
|
|
@@ -987,7 +1078,7 @@ We'd like to offer a big thanks to the 6 contributors who made this release poss
|
|
|
987
1078
|
<DataGridPremium unstable_cellSelection />
|
|
988
1079
|
```
|
|
989
1080
|
|
|
990
|
-
See [the documentation](https://mui.com/x/react-data-grid/
|
|
1081
|
+
See [the documentation](https://mui.com/x/react-data-grid/cell-selection/) for more information
|
|
991
1082
|
|
|
992
1083
|
- 🌍 Support the Right To Left orientation on the fields components
|
|
993
1084
|
- 📚 Documentation improvements
|
|
@@ -3044,7 +3135,7 @@ _Sep 2, 2022_
|
|
|
3044
3135
|
|
|
3045
3136
|
🎉 We are excited to finally introduce a stable release (v5.0.0) for the `@mui/x-date-pickers` and `@mui/x-date-pickers-pro` packages!
|
|
3046
3137
|
|
|
3047
|
-
If you are still using picker components from the `lab`, take a look at the [migration guide](https://mui.com/x/
|
|
3138
|
+
If you are still using picker components from the `lab`, take a look at the [migration guide](https://mui.com/x/migration/migration-pickers-lab/).
|
|
3048
3139
|
|
|
3049
3140
|
We'd like to offer a big thanks to the 9 contributors who made this release possible. Here are some highlights ✨:
|
|
3050
3141
|
|
|
@@ -3184,7 +3275,7 @@ We'd like to offer a big thanks to the 9 contributors who made this release poss
|
|
|
3184
3275
|
|
|
3185
3276
|
#### Changes
|
|
3186
3277
|
|
|
3187
|
-
- [DataGrid] Fix <kbd>Enter</kbd> causing Select to re-open when
|
|
3278
|
+
- [DataGrid] Fix <kbd>Enter</kbd> causing Select to re-open when committing value (#5756) @m4theushw
|
|
3188
3279
|
- [DataGrid] Fix `GridOverlays` bypassing pointer events (#5674) @philjones88
|
|
3189
3280
|
|
|
3190
3281
|
### `@mui/x-date-pickers@v5.0.0-beta.6` / `@mui/x-date-picker-pro@v5.0.0-beta.6`
|
|
@@ -3228,7 +3319,7 @@ We'd like to offer a big thanks to the 7 contributors who made this release poss
|
|
|
3228
3319
|
#### Changes
|
|
3229
3320
|
|
|
3230
3321
|
- [DataGrid] Catch errors if rows freezing is not supported (#5711) @cherniavskii
|
|
3231
|
-
- [DataGrid] Preserve cell mode when entering edit mode while
|
|
3322
|
+
- [DataGrid] Preserve cell mode when entering edit mode while committing (#5686) @m4theushw
|
|
3232
3323
|
- [DataGridPremium] Let quick filter search in row grouping children (#5701) @alexfauquette
|
|
3233
3324
|
|
|
3234
3325
|
### `@mui/x-date-pickers@v5.0.0-beta.5` / `@mui/x-date-picker-pro@5.0.0-beta.5`
|
|
@@ -4095,7 +4186,7 @@ We'd like to offer a big thanks to the 7 contributors who made this release poss
|
|
|
4095
4186
|
|
|
4096
4187
|
Date and time picker components have been moved to the MUI X repository.
|
|
4097
4188
|
They are now accessible in their own packages: `@mui/x-date-pickers` and `@mui/x-date-pickers-pro`.
|
|
4098
|
-
For more information, you can read the [blog article](https://mui.com/blog/lab-date-pickers-to-mui-x/) and the [migration guide](https://mui.com/x/
|
|
4189
|
+
For more information, you can read the [blog article](https://mui.com/blog/lab-date-pickers-to-mui-x/) and the [migration guide](https://mui.com/x/migration/migration-pickers-lab/).
|
|
4099
4190
|
|
|
4100
4191
|
- 📝 Add `onProcessRowUpdateError` prop to simplify error management in edit mode (#4267) @m4theushw
|
|
4101
4192
|
- ✨ Add generic typing to `GridColDef` and derived interfaces (#4064) @flaviendelangle
|
|
@@ -4155,7 +4246,7 @@ We'd like to offer a big thanks to the 7 contributors who made this release poss
|
|
|
4155
4246
|
- [core] Remove dead code (#4283) @oliviertassinari
|
|
4156
4247
|
- [core] Rename the "pre-processing" concept "pipe-processing" (#4261) @flaviendelangle
|
|
4157
4248
|
- [core] Reuse previous state when updating the columns prop (#4229) @m4theushw
|
|
4158
|
-
- [core] Fix Argos
|
|
4249
|
+
- [core] Fix Argos flakiness for pickers tests (#4312) @flaviendelangle
|
|
4159
4250
|
|
|
4160
4251
|
## 5.7.0
|
|
4161
4252
|
|
|
@@ -5705,7 +5796,7 @@ A big thanks to the 5 contributors who made this release possible. Here are some
|
|
|
5705
5796
|
|
|
5706
5797
|
- [docs] Add section for controlled selection and server-side pagination (#2602) @DanailH
|
|
5707
5798
|
- [docs] Fix Algolia search (#2655) @oliviertassinari
|
|
5708
|
-
- [docs] Improve the
|
|
5799
|
+
- [docs] Improve the search results relevance (#2656) @oliviertassinari
|
|
5709
5800
|
- [docs] Update installation instructions (#2663) @m4theushw
|
|
5710
5801
|
|
|
5711
5802
|
### Core
|
|
@@ -6743,7 +6834,7 @@ Big thanks to the 11 contributors who made this release possible. Here are some
|
|
|
6743
6834
|
- 💅 Add `columnHeader`, `row` and `cell` to the `classes` prop (#1660) @DanailH
|
|
6744
6835
|
- ✅ Add the `isRowSelectable` prop to disable selection on certain rows (#1659) @m4theushw
|
|
6745
6836
|
|
|
6746
|
-
See the documentation for [more details](https://mui.com/
|
|
6837
|
+
See the documentation for [more details](https://v4.mui.com/components/data-grid/selection/#disable-selection-on-certain-rows).
|
|
6747
6838
|
|
|
6748
6839
|
- ⚡️ Add new icon slot to be displayed when the column is unsorted (#1415) @m4theushw
|
|
6749
6840
|
- ⚙ Improve consistency of the API to prepare for the first beta release
|
|
@@ -7069,7 +7160,7 @@ Big thanks to the 5 contributors who made this release possible. Here are some h
|
|
|
7069
7160
|
}
|
|
7070
7161
|
```
|
|
7071
7162
|
|
|
7072
|
-
- [DataGrid] Upgrade
|
|
7163
|
+
- [DataGrid] Upgrade minimum supported version of React to 17.0.0 (#1410) @m4theushw
|
|
7073
7164
|
|
|
7074
7165
|
#### Changes
|
|
7075
7166
|
|
|
@@ -7199,7 +7290,7 @@ Big thanks to the 6 contributors who made this release possible. Here are some h
|
|
|
7199
7290
|
|
|
7200
7291
|
- [docs] Add demo page (#1147) @DanailH
|
|
7201
7292
|
- [docs] Fix typo in localization.md (#1155) @michael-martin-al
|
|
7202
|
-
- [docs] Improve the
|
|
7293
|
+
- [docs] Improve the description of the individual packages (#1139) @oliviertassinari
|
|
7203
7294
|
- [docs] Fix rendering docs to solve custom pagination issue (#1159) @consDev
|
|
7204
7295
|
|
|
7205
7296
|
### Core
|
|
@@ -7271,7 +7362,7 @@ Big thanks to the 4 contributors who made this release possible. Here are some h
|
|
|
7271
7362
|
- 📍 Add support for default locales (#983) @DanailH
|
|
7272
7363
|
We have built the infrastructure to support around 100 [default locales](https://mui.com/x/react-data-grid/localization/#supported-locales). If you have localized the data grid in your application. Please do consider contributing new translations back to Material UI by opening a pull request.
|
|
7273
7364
|
- 🎁 Add new `selectionModel` prop (#986) @dtassone
|
|
7274
|
-
The prop can be used to control the selected rows in the data grid. [See the docs](https://mui.com/
|
|
7365
|
+
The prop can be used to control the selected rows in the data grid. [See the docs](https://v4.mui.com/components/data-grid/selection/#controlled-selection).
|
|
7275
7366
|
- 💅 Add support for default props from theme (#1019) @DanailH
|
|
7276
7367
|
- 🙌 Fix scrollbar size on windows (#1061) @dtassone
|
|
7277
7368
|
- 🐛 Polish existing features, fix 9 issues.
|
|
@@ -7376,7 +7467,7 @@ Big thanks to the 5 contributors who made this release possible. Here are some h
|
|
|
7376
7467
|
- [DataGrid] Fix footer visual regression (#932) @dtassone
|
|
7377
7468
|
- [DataGrid] Fix strict mode issue with apiRef (#933) @dtassone
|
|
7378
7469
|
- [DataGrid] Work on the accessibility of the column menu (#900) @zj9495
|
|
7379
|
-
- [DataGrid] Fix timing
|
|
7470
|
+
- [DataGrid] Fix timing guarantee (#981) @oliviertassinari
|
|
7380
7471
|
- [DataGrid] Fix unstable footer height (#937) @oliviertassinari
|
|
7381
7472
|
- [DataGrid] Fix usage of the prop-types API (#955) @oliviertassinari
|
|
7382
7473
|
- [DataGrid] Fix duplicate aria-label (#953) @oliviertassinari
|
|
@@ -466,7 +466,7 @@ process.env.NODE_ENV !== "production" ? DateRangeCalendar.propTypes = {
|
|
|
466
466
|
classes: PropTypes.object,
|
|
467
467
|
className: PropTypes.string,
|
|
468
468
|
/**
|
|
469
|
-
*
|
|
469
|
+
* Overridable components.
|
|
470
470
|
* @default {}
|
|
471
471
|
* @deprecated Please use `slots`.
|
|
472
472
|
*/
|
|
@@ -617,7 +617,7 @@ process.env.NODE_ENV !== "production" ? DateRangeCalendar.propTypes = {
|
|
|
617
617
|
*/
|
|
618
618
|
slotProps: PropTypes.object,
|
|
619
619
|
/**
|
|
620
|
-
*
|
|
620
|
+
* Overridable component slots.
|
|
621
621
|
* @default {}
|
|
622
622
|
*/
|
|
623
623
|
slots: PropTypes.object,
|
|
@@ -89,7 +89,7 @@ export interface DateRangeCalendarProps<TDate> extends ExportedDateRangeCalendar
|
|
|
89
89
|
*/
|
|
90
90
|
sx?: SxProps<Theme>;
|
|
91
91
|
/**
|
|
92
|
-
*
|
|
92
|
+
* Overridable components.
|
|
93
93
|
* @default {}
|
|
94
94
|
* @deprecated Please use `slots`.
|
|
95
95
|
*/
|
|
@@ -101,7 +101,7 @@ export interface DateRangeCalendarProps<TDate> extends ExportedDateRangeCalendar
|
|
|
101
101
|
*/
|
|
102
102
|
componentsProps?: DateRangeCalendarSlotsComponentsProps<TDate>;
|
|
103
103
|
/**
|
|
104
|
-
*
|
|
104
|
+
* Overridable component slots.
|
|
105
105
|
* @default {}
|
|
106
106
|
*/
|
|
107
107
|
slots?: UncapitalizeObjectKeys<DateRangeCalendarSlotsComponent<TDate>>;
|
|
@@ -58,7 +58,7 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
|
|
|
58
58
|
*/
|
|
59
59
|
closeOnSelect: PropTypes.bool,
|
|
60
60
|
/**
|
|
61
|
-
*
|
|
61
|
+
* Overridable components.
|
|
62
62
|
* @default {}
|
|
63
63
|
* @deprecated Please use `slots`.
|
|
64
64
|
*/
|
|
@@ -276,7 +276,7 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
|
|
|
276
276
|
*/
|
|
277
277
|
slotProps: PropTypes.object,
|
|
278
278
|
/**
|
|
279
|
-
*
|
|
279
|
+
* Overridable component slots.
|
|
280
280
|
* @default {}
|
|
281
281
|
*/
|
|
282
282
|
slots: PropTypes.object,
|
|
@@ -13,7 +13,7 @@ export interface DateRangePickerProps<TDate> extends DesktopDateRangePickerProps
|
|
|
13
13
|
*/
|
|
14
14
|
desktopModeMediaQuery?: string;
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Overridable components.
|
|
17
17
|
* @default {}
|
|
18
18
|
* @deprecated Please use `slots`.
|
|
19
19
|
*/
|
|
@@ -25,7 +25,7 @@ export interface DateRangePickerProps<TDate> extends DesktopDateRangePickerProps
|
|
|
25
25
|
*/
|
|
26
26
|
componentsProps?: DateRangePickerSlotsComponentsProps<TDate>;
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* Overridable component slots.
|
|
29
29
|
* @default {}
|
|
30
30
|
*/
|
|
31
31
|
slots?: UncapitalizeObjectKeys<DateRangePickerSlotsComponents<TDate>>;
|
|
@@ -18,7 +18,7 @@ export interface BaseDateRangePickerSlotsComponentsProps<TDate> extends DateRang
|
|
|
18
18
|
}
|
|
19
19
|
export interface BaseDateRangePickerProps<TDate> extends Omit<BasePickerInputProps<DateRange<TDate>, TDate, 'day', DateRangeValidationError>, 'view' | 'views' | 'openTo' | 'onViewChange' | 'orientation'>, ExportedDateRangeCalendarProps<TDate>, BaseDateValidationProps<TDate> {
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Overridable components.
|
|
22
22
|
* @default {}
|
|
23
23
|
* @deprecated Please use `slots`.
|
|
24
24
|
*/
|
|
@@ -30,7 +30,7 @@ export interface BaseDateRangePickerProps<TDate> extends Omit<BasePickerInputPro
|
|
|
30
30
|
*/
|
|
31
31
|
componentsProps?: BaseDateRangePickerSlotsComponentsProps<TDate>;
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Overridable component slots.
|
|
34
34
|
* @default {}
|
|
35
35
|
*/
|
|
36
36
|
slots?: UncapitalizeObjectKeys<BaseDateRangePickerSlotsComponent<TDate>>;
|
|
@@ -72,7 +72,7 @@ DesktopDateRangePicker.propTypes = {
|
|
|
72
72
|
*/
|
|
73
73
|
closeOnSelect: PropTypes.bool,
|
|
74
74
|
/**
|
|
75
|
-
*
|
|
75
|
+
* Overridable components.
|
|
76
76
|
* @default {}
|
|
77
77
|
* @deprecated Please use `slots`.
|
|
78
78
|
*/
|
|
@@ -284,7 +284,7 @@ DesktopDateRangePicker.propTypes = {
|
|
|
284
284
|
*/
|
|
285
285
|
slotProps: PropTypes.object,
|
|
286
286
|
/**
|
|
287
|
-
*
|
|
287
|
+
* Overridable component slots.
|
|
288
288
|
* @default {}
|
|
289
289
|
*/
|
|
290
290
|
slots: PropTypes.object,
|
|
@@ -12,7 +12,7 @@ export interface DesktopDateRangePickerProps<TDate> extends BaseDateRangePickerP
|
|
|
12
12
|
*/
|
|
13
13
|
calendars?: 1 | 2 | 3;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Overridable components.
|
|
16
16
|
* @default {}
|
|
17
17
|
* @deprecated Please use `slots`.
|
|
18
18
|
*/
|
|
@@ -24,7 +24,7 @@ export interface DesktopDateRangePickerProps<TDate> extends BaseDateRangePickerP
|
|
|
24
24
|
*/
|
|
25
25
|
componentsProps?: DesktopDateRangePickerSlotsComponentsProps<TDate>;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Overridable component slots.
|
|
28
28
|
* @default {}
|
|
29
29
|
*/
|
|
30
30
|
slots?: UncapitalizeObjectKeys<DesktopDateRangePickerSlotsComponent<TDate>>;
|
|
@@ -75,7 +75,7 @@ MobileDateRangePicker.propTypes = {
|
|
|
75
75
|
*/
|
|
76
76
|
closeOnSelect: PropTypes.bool,
|
|
77
77
|
/**
|
|
78
|
-
*
|
|
78
|
+
* Overridable components.
|
|
79
79
|
* @default {}
|
|
80
80
|
* @deprecated Please use `slots`.
|
|
81
81
|
*/
|
|
@@ -287,7 +287,7 @@ MobileDateRangePicker.propTypes = {
|
|
|
287
287
|
*/
|
|
288
288
|
slotProps: PropTypes.object,
|
|
289
289
|
/**
|
|
290
|
-
*
|
|
290
|
+
* Overridable component slots.
|
|
291
291
|
* @default {}
|
|
292
292
|
*/
|
|
293
293
|
slots: PropTypes.object,
|
|
@@ -12,7 +12,7 @@ export interface MobileDateRangePickerProps<TDate> extends BaseDateRangePickerPr
|
|
|
12
12
|
*/
|
|
13
13
|
calendars?: 1 | 2 | 3;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Overridable components.
|
|
16
16
|
* @default {}
|
|
17
17
|
* @deprecated Please use `slots`.
|
|
18
18
|
*/
|
|
@@ -24,7 +24,7 @@ export interface MobileDateRangePickerProps<TDate> extends BaseDateRangePickerPr
|
|
|
24
24
|
*/
|
|
25
25
|
componentsProps?: MobileDateRangePickerSlotsComponentsProps<TDate>;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Overridable component slots.
|
|
28
28
|
* @default {}
|
|
29
29
|
*/
|
|
30
30
|
slots?: UncapitalizeObjectKeys<MobileDateRangePickerSlotsComponent<TDate>>;
|
|
@@ -167,7 +167,7 @@ process.env.NODE_ENV !== "production" ? MultiInputDateRangeField.propTypes = {
|
|
|
167
167
|
autoFocus: PropTypes.bool,
|
|
168
168
|
className: PropTypes.string,
|
|
169
169
|
/**
|
|
170
|
-
*
|
|
170
|
+
* Overridable components.
|
|
171
171
|
* @default {}
|
|
172
172
|
* @deprecated Please use `slots`.
|
|
173
173
|
*/
|
|
@@ -273,7 +273,7 @@ process.env.NODE_ENV !== "production" ? MultiInputDateRangeField.propTypes = {
|
|
|
273
273
|
*/
|
|
274
274
|
slotProps: PropTypes.object,
|
|
275
275
|
/**
|
|
276
|
-
*
|
|
276
|
+
* Overridable component slots.
|
|
277
277
|
* @default {}
|
|
278
278
|
*/
|
|
279
279
|
slots: PropTypes.object,
|
|
@@ -20,7 +20,7 @@ export interface MultiInputDateRangeFieldProps<TDate> extends UseMultiInputDateR
|
|
|
20
20
|
autoFocus?: boolean;
|
|
21
21
|
}> {
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Overridable components.
|
|
24
24
|
* @default {}
|
|
25
25
|
* @deprecated Please use `slots`.
|
|
26
26
|
*/
|
|
@@ -32,7 +32,7 @@ export interface MultiInputDateRangeFieldProps<TDate> extends UseMultiInputDateR
|
|
|
32
32
|
*/
|
|
33
33
|
componentsProps?: MultiInputDateRangeFieldSlotsComponentsProps<TDate>;
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* Overridable component slots.
|
|
36
36
|
* @default {}
|
|
37
37
|
*/
|
|
38
38
|
slots?: UncapitalizeObjectKeys<MultiInputDateRangeFieldSlotsComponent>;
|
|
@@ -181,7 +181,7 @@ process.env.NODE_ENV !== "production" ? MultiInputDateTimeRangeField.propTypes =
|
|
|
181
181
|
ampm: PropTypes.bool,
|
|
182
182
|
className: PropTypes.string,
|
|
183
183
|
/**
|
|
184
|
-
*
|
|
184
|
+
* Overridable components.
|
|
185
185
|
* @default {}
|
|
186
186
|
* @deprecated Please use `slots`.
|
|
187
187
|
*/
|
|
@@ -330,7 +330,7 @@ process.env.NODE_ENV !== "production" ? MultiInputDateTimeRangeField.propTypes =
|
|
|
330
330
|
*/
|
|
331
331
|
slotProps: PropTypes.object,
|
|
332
332
|
/**
|
|
333
|
-
*
|
|
333
|
+
* Overridable component slots.
|
|
334
334
|
* @default {}
|
|
335
335
|
*/
|
|
336
336
|
slots: PropTypes.object,
|
|
@@ -18,7 +18,7 @@ export interface UseMultiInputDateTimeRangeFieldProps<TDate> extends UseDateTime
|
|
|
18
18
|
export type UseMultiInputDateTimeRangeFieldComponentProps<TDate, TChildProps extends {}> = Omit<TChildProps, keyof UseMultiInputDateTimeRangeFieldProps<TDate>> & UseMultiInputDateTimeRangeFieldProps<TDate>;
|
|
19
19
|
export interface MultiInputDateTimeRangeFieldProps<TDate> extends UseMultiInputDateTimeRangeFieldComponentProps<TDate, Omit<StackProps, 'position'>> {
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Overridable components.
|
|
22
22
|
* @default {}
|
|
23
23
|
* @deprecated Please use `slots`.
|
|
24
24
|
*/
|
|
@@ -30,7 +30,7 @@ export interface MultiInputDateTimeRangeFieldProps<TDate> extends UseMultiInputD
|
|
|
30
30
|
*/
|
|
31
31
|
componentsProps?: MultiInputDateTimeRangeFieldSlotsComponentsProps<TDate>;
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Overridable component slots.
|
|
34
34
|
* @default {}
|
|
35
35
|
*/
|
|
36
36
|
slots?: UncapitalizeObjectKeys<MultiInputDateTimeRangeFieldSlotsComponent>;
|
|
@@ -171,7 +171,7 @@ process.env.NODE_ENV !== "production" ? MultiInputTimeRangeField.propTypes = {
|
|
|
171
171
|
ampm: PropTypes.bool,
|
|
172
172
|
className: PropTypes.string,
|
|
173
173
|
/**
|
|
174
|
-
*
|
|
174
|
+
* Overridable components.
|
|
175
175
|
* @default {}
|
|
176
176
|
* @deprecated Please use `slots`.
|
|
177
177
|
*/
|
|
@@ -296,7 +296,7 @@ process.env.NODE_ENV !== "production" ? MultiInputTimeRangeField.propTypes = {
|
|
|
296
296
|
*/
|
|
297
297
|
slotProps: PropTypes.object,
|
|
298
298
|
/**
|
|
299
|
-
*
|
|
299
|
+
* Overridable slots.
|
|
300
300
|
* @default {}
|
|
301
301
|
*/
|
|
302
302
|
slots: PropTypes.object,
|
|
@@ -18,7 +18,7 @@ export interface UseMultiInputTimeRangeFieldProps<TDate> extends UseTimeRangeFie
|
|
|
18
18
|
export type UseMultiInputTimeRangeFieldComponentProps<TDate, TChildProps extends {}> = Omit<TChildProps, keyof UseMultiInputTimeRangeFieldProps<TDate>> & UseMultiInputTimeRangeFieldProps<TDate>;
|
|
19
19
|
export interface MultiInputTimeRangeFieldProps<TDate> extends UseMultiInputTimeRangeFieldComponentProps<TDate, Omit<StackProps, 'position'>> {
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Overridable components.
|
|
22
22
|
* @default {}
|
|
23
23
|
* @deprecated Please use `slots`.
|
|
24
24
|
*/
|
|
@@ -30,7 +30,7 @@ export interface MultiInputTimeRangeFieldProps<TDate> extends UseMultiInputTimeR
|
|
|
30
30
|
*/
|
|
31
31
|
componentsProps?: MultiInputTimeRangeFieldSlotsComponentsProps<TDate>;
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Overridable slots.
|
|
34
34
|
* @default {}
|
|
35
35
|
*/
|
|
36
36
|
slots?: UncapitalizeObjectKeys<MultiInputTimeRangeFieldSlotsComponent>;
|
|
@@ -71,7 +71,7 @@ process.env.NODE_ENV !== "production" ? SingleInputDateRangeField.propTypes = {
|
|
|
71
71
|
*/
|
|
72
72
|
color: PropTypes.oneOf(['error', 'info', 'primary', 'secondary', 'success', 'warning']),
|
|
73
73
|
/**
|
|
74
|
-
*
|
|
74
|
+
* Overridable components.
|
|
75
75
|
* @default {}
|
|
76
76
|
* @deprecated Please use `slots`.
|
|
77
77
|
*/
|
|
@@ -242,7 +242,7 @@ process.env.NODE_ENV !== "production" ? SingleInputDateRangeField.propTypes = {
|
|
|
242
242
|
*/
|
|
243
243
|
slotProps: PropTypes.object,
|
|
244
244
|
/**
|
|
245
|
-
*
|
|
245
|
+
* Overridable component slots.
|
|
246
246
|
* @default {}
|
|
247
247
|
*/
|
|
248
248
|
slots: PropTypes.object,
|
|
@@ -13,7 +13,7 @@ export type UseSingleInputDateRangeFieldDefaultizedProps<TDate, AdditionalProps
|
|
|
13
13
|
export type UseSingleInputDateRangeFieldComponentProps<TDate, TChildProps extends {}> = Omit<TChildProps, keyof UseSingleInputDateRangeFieldProps<TDate>> & UseSingleInputDateRangeFieldProps<TDate>;
|
|
14
14
|
export interface SingleInputDateRangeFieldProps<TDate> extends UseSingleInputDateRangeFieldComponentProps<TDate, FieldsTextFieldProps> {
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Overridable components.
|
|
17
17
|
* @default {}
|
|
18
18
|
* @deprecated Please use `slots`.
|
|
19
19
|
*/
|
|
@@ -25,7 +25,7 @@ export interface SingleInputDateRangeFieldProps<TDate> extends UseSingleInputDat
|
|
|
25
25
|
*/
|
|
26
26
|
componentsProps?: SingleInputDateRangeFieldSlotsComponentsProps<TDate>;
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* Overridable component slots.
|
|
29
29
|
* @default {}
|
|
30
30
|
*/
|
|
31
31
|
slots?: UncapitalizeObjectKeys<SingleInputDateRangeFieldSlotsComponent>;
|
|
@@ -76,7 +76,7 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
|
|
|
76
76
|
*/
|
|
77
77
|
color: PropTypes.oneOf(['error', 'info', 'primary', 'secondary', 'success', 'warning']),
|
|
78
78
|
/**
|
|
79
|
-
*
|
|
79
|
+
* Overridable components.
|
|
80
80
|
* @default {}
|
|
81
81
|
* @deprecated Please use `slots`.
|
|
82
82
|
*/
|
|
@@ -290,7 +290,7 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
|
|
|
290
290
|
*/
|
|
291
291
|
slotProps: PropTypes.object,
|
|
292
292
|
/**
|
|
293
|
-
*
|
|
293
|
+
* Overridable component slots.
|
|
294
294
|
* @default {}
|
|
295
295
|
*/
|
|
296
296
|
slots: PropTypes.object,
|
|
@@ -14,7 +14,7 @@ export type UseSingleInputDateTimeRangeFieldDefaultizedProps<TDate, AdditionalPr
|
|
|
14
14
|
export type UseSingleInputDateTimeRangeFieldComponentProps<TDate, TChildProps extends {}> = Omit<TChildProps, keyof UseSingleInputDateTimeRangeFieldProps<TDate>> & UseSingleInputDateTimeRangeFieldProps<TDate>;
|
|
15
15
|
export interface SingleInputDateTimeRangeFieldProps<TDate> extends UseSingleInputDateTimeRangeFieldComponentProps<TDate, FieldsTextFieldProps> {
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Overridable components.
|
|
18
18
|
* @default {}
|
|
19
19
|
* @deprecated Please use `slots`.
|
|
20
20
|
*/
|
|
@@ -26,7 +26,7 @@ export interface SingleInputDateTimeRangeFieldProps<TDate> extends UseSingleInpu
|
|
|
26
26
|
*/
|
|
27
27
|
componentsProps?: SingleInputDateTimeRangeFieldSlotsComponentsProps<TDate>;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Overridable component slots.
|
|
30
30
|
* @default {}
|
|
31
31
|
*/
|
|
32
32
|
slots?: UncapitalizeObjectKeys<SingleInputDateTimeRangeFieldSlotsComponent>;
|
|
@@ -76,7 +76,7 @@ process.env.NODE_ENV !== "production" ? SingleInputTimeRangeField.propTypes = {
|
|
|
76
76
|
*/
|
|
77
77
|
color: PropTypes.oneOf(['error', 'info', 'primary', 'secondary', 'success', 'warning']),
|
|
78
78
|
/**
|
|
79
|
-
*
|
|
79
|
+
* Overridable components.
|
|
80
80
|
* @default {}
|
|
81
81
|
* @deprecated Please use `slots`.
|
|
82
82
|
*/
|
|
@@ -266,7 +266,7 @@ process.env.NODE_ENV !== "production" ? SingleInputTimeRangeField.propTypes = {
|
|
|
266
266
|
*/
|
|
267
267
|
slotProps: PropTypes.object,
|
|
268
268
|
/**
|
|
269
|
-
*
|
|
269
|
+
* Overridable component slots.
|
|
270
270
|
* @default {}
|
|
271
271
|
*/
|
|
272
272
|
slots: PropTypes.object,
|
|
@@ -14,7 +14,7 @@ export type UseSingleInputTimeRangeFieldDefaultizedProps<TDate, AdditionalProps
|
|
|
14
14
|
export type UseSingleInputTimeRangeFieldComponentProps<TDate, TChildProps extends {}> = Omit<TChildProps, keyof UseSingleInputTimeRangeFieldProps<TDate>> & UseSingleInputTimeRangeFieldProps<TDate>;
|
|
15
15
|
export interface SingleInputTimeRangeFieldProps<TDate> extends UseSingleInputTimeRangeFieldComponentProps<TDate, FieldsTextFieldProps> {
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Overridable components.
|
|
18
18
|
* @default {}
|
|
19
19
|
* @deprecated Please use `slots`.
|
|
20
20
|
*/
|
|
@@ -26,7 +26,7 @@ export interface SingleInputTimeRangeFieldProps<TDate> extends UseSingleInputTim
|
|
|
26
26
|
*/
|
|
27
27
|
componentsProps?: SingleInputTimeRangeFieldSlotsComponentsProps<TDate>;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Overridable component slots.
|
|
30
30
|
* @default {}
|
|
31
31
|
*/
|
|
32
32
|
slots?: UncapitalizeObjectKeys<SingleInputTimeRangeFieldSlotsComponent>;
|
|
@@ -59,7 +59,7 @@ StaticDateRangePicker.propTypes = {
|
|
|
59
59
|
*/
|
|
60
60
|
className: PropTypes.string,
|
|
61
61
|
/**
|
|
62
|
-
*
|
|
62
|
+
* Overridable components.
|
|
63
63
|
* @default {}
|
|
64
64
|
* @deprecated Please use `slots`.
|
|
65
65
|
*/
|
|
@@ -239,7 +239,7 @@ StaticDateRangePicker.propTypes = {
|
|
|
239
239
|
*/
|
|
240
240
|
slotProps: PropTypes.object,
|
|
241
241
|
/**
|
|
242
|
-
*
|
|
242
|
+
* Overridable component slots.
|
|
243
243
|
* @default {}
|
|
244
244
|
*/
|
|
245
245
|
slots: PropTypes.object,
|
|
@@ -7,7 +7,7 @@ export interface StaticDateRangePickerSlotsComponentsProps<TDate> extends BaseDa
|
|
|
7
7
|
}
|
|
8
8
|
export interface StaticDateRangePickerProps<TDate> extends BaseDateRangePickerProps<TDate>, MakeOptional<StaticRangeOnlyPickerProps, 'displayStaticWrapperAs'> {
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Overridable components.
|
|
11
11
|
* @default {}
|
|
12
12
|
* @deprecated Please use `slots`.
|
|
13
13
|
*/
|
|
@@ -19,7 +19,7 @@ export interface StaticDateRangePickerProps<TDate> extends BaseDateRangePickerPr
|
|
|
19
19
|
*/
|
|
20
20
|
componentsProps?: StaticDateRangePickerSlotsComponentsProps<TDate>;
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Overridable component slots.
|
|
23
23
|
* @default {}
|
|
24
24
|
*/
|
|
25
25
|
slots?: UncapitalizeObjectKeys<StaticDateRangePickerSlotsComponent<TDate>>;
|
package/index.js
CHANGED
|
@@ -98,7 +98,7 @@ export const useDesktopRangePicker = ({
|
|
|
98
98
|
const slotPropsForField = _extends({}, fieldProps.slotProps, {
|
|
99
99
|
textField: ownerState => {
|
|
100
100
|
const externalInputProps = resolveComponentProps(slotProps == null ? void 0 : slotProps.textField, ownerState);
|
|
101
|
-
return _extends({},
|
|
101
|
+
return _extends({}, ownerState.position === 'start' ? fieldSlotProps.startInput : fieldSlotProps.endInput, externalInputProps);
|
|
102
102
|
},
|
|
103
103
|
root: ownerState => {
|
|
104
104
|
const externalRootProps = resolveComponentProps(slotProps == null ? void 0 : slotProps.fieldRoot, ownerState);
|