@mui/x-date-pickers-pro 6.1.0 → 6.2.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/CHANGELOG.md +53 -1
- package/DateRangePicker/DateRangePicker.js +6 -0
- package/DesktopDateRangePicker/DesktopDateRangePicker.js +6 -0
- package/MobileDateRangePicker/MobileDateRangePicker.js +6 -0
- package/MultiInputDateRangeField/MultiInputDateRangeField.js +9 -1
- package/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +9 -1
- package/MultiInputTimeRangeField/MultiInputTimeRangeField.js +9 -1
- package/README.md +1 -0
- package/SingleInputDateRangeField/SingleInputDateRangeField.js +6 -0
- package/SingleInputDateRangeField/useSingleInputDateRangeField.js +3 -1
- package/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +6 -0
- package/SingleInputDateTimeRangeField/useSingleInputDateTimeRangeField.js +3 -1
- package/SingleInputTimeRangeField/SingleInputTimeRangeField.js +6 -0
- package/SingleInputTimeRangeField/useSingleInputTimeRangeField.js +3 -1
- package/index.js +1 -1
- package/internal/hooks/useDesktopRangePicker/useDesktopRangePicker.js +2 -0
- package/internal/hooks/useMobileRangePicker/useMobileRangePicker.js +3 -1
- package/internal/hooks/useMultiInputRangeField/useMultiInputDateRangeField.js +3 -0
- package/internal/utils/releaseInfo.js +1 -1
- package/legacy/DateRangePicker/DateRangePicker.js +6 -0
- package/legacy/DesktopDateRangePicker/DesktopDateRangePicker.js +6 -0
- package/legacy/MobileDateRangePicker/MobileDateRangePicker.js +6 -0
- package/legacy/MultiInputDateRangeField/MultiInputDateRangeField.js +9 -1
- package/legacy/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +9 -1
- package/legacy/MultiInputTimeRangeField/MultiInputTimeRangeField.js +9 -1
- package/legacy/SingleInputDateRangeField/SingleInputDateRangeField.js +6 -0
- package/legacy/SingleInputDateRangeField/useSingleInputDateRangeField.js +3 -1
- package/legacy/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +6 -0
- package/legacy/SingleInputDateTimeRangeField/useSingleInputDateTimeRangeField.js +3 -1
- package/legacy/SingleInputTimeRangeField/SingleInputTimeRangeField.js +6 -0
- package/legacy/SingleInputTimeRangeField/useSingleInputTimeRangeField.js +3 -1
- package/legacy/index.js +1 -1
- package/legacy/internal/hooks/useDesktopRangePicker/useDesktopRangePicker.js +2 -0
- package/legacy/internal/hooks/useMobileRangePicker/useMobileRangePicker.js +3 -1
- package/legacy/internal/hooks/useMultiInputRangeField/useMultiInputDateRangeField.js +3 -0
- package/legacy/internal/utils/releaseInfo.js +1 -1
- package/modern/DateRangePicker/DateRangePicker.js +6 -0
- package/modern/DesktopDateRangePicker/DesktopDateRangePicker.js +6 -0
- package/modern/MobileDateRangePicker/MobileDateRangePicker.js +6 -0
- package/modern/MultiInputDateRangeField/MultiInputDateRangeField.js +9 -1
- package/modern/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +9 -1
- package/modern/MultiInputTimeRangeField/MultiInputTimeRangeField.js +9 -1
- package/modern/SingleInputDateRangeField/SingleInputDateRangeField.js +6 -0
- package/modern/SingleInputDateRangeField/useSingleInputDateRangeField.js +3 -1
- package/modern/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +6 -0
- package/modern/SingleInputDateTimeRangeField/useSingleInputDateTimeRangeField.js +3 -1
- package/modern/SingleInputTimeRangeField/SingleInputTimeRangeField.js +6 -0
- package/modern/SingleInputTimeRangeField/useSingleInputTimeRangeField.js +3 -1
- package/modern/index.js +1 -1
- package/modern/internal/hooks/useDesktopRangePicker/useDesktopRangePicker.js +2 -0
- package/modern/internal/hooks/useMobileRangePicker/useMobileRangePicker.js +3 -1
- package/modern/internal/hooks/useMultiInputRangeField/useMultiInputDateRangeField.js +3 -0
- package/modern/internal/utils/releaseInfo.js +1 -1
- package/node/DateRangePicker/DateRangePicker.js +6 -0
- package/node/DesktopDateRangePicker/DesktopDateRangePicker.js +6 -0
- package/node/MobileDateRangePicker/MobileDateRangePicker.js +6 -0
- package/node/MultiInputDateRangeField/MultiInputDateRangeField.js +9 -1
- package/node/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +9 -1
- package/node/MultiInputTimeRangeField/MultiInputTimeRangeField.js +9 -1
- package/node/SingleInputDateRangeField/SingleInputDateRangeField.js +6 -0
- package/node/SingleInputDateRangeField/useSingleInputDateRangeField.js +3 -1
- package/node/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +6 -0
- package/node/SingleInputDateTimeRangeField/useSingleInputDateTimeRangeField.js +3 -1
- package/node/SingleInputTimeRangeField/SingleInputTimeRangeField.js +6 -0
- package/node/SingleInputTimeRangeField/useSingleInputTimeRangeField.js +3 -1
- package/node/index.js +1 -1
- package/node/internal/hooks/useDesktopRangePicker/useDesktopRangePicker.js +2 -0
- package/node/internal/hooks/useMobileRangePicker/useMobileRangePicker.js +3 -1
- package/node/internal/hooks/useMultiInputRangeField/useMultiInputDateRangeField.js +3 -0
- package/node/internal/utils/releaseInfo.js +1 -1
- package/package.json +23 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,9 +3,61 @@
|
|
|
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.2.0
|
|
7
|
+
|
|
8
|
+
_Apr 13, 2023_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 8 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- Add `@mui/base` as a `peerDependency` of `@mui/x-date-pickers` and `@mui/x-date-pickers-pro` (#8590) @LukasTy
|
|
13
|
+
|
|
14
|
+
Both libraries were not working correctly if used without `@mui/base`.
|
|
15
|
+
Most package manager should automatically use the `@mui/base` version installed for `@mui/material`.
|
|
16
|
+
|
|
17
|
+
- The value rendered in the picker or field input no longer has spaces around the `/` characters (#8425) @flaviendelangle
|
|
18
|
+
|
|
19
|
+
You can use the `formatDensity='spacious'` prop to add it back.
|
|
20
|
+
More information on [the dedicated doc section](https://mui.com/x/react-date-pickers/custom-field/#change-the-format-density)
|
|
21
|
+
|
|
22
|
+
- 🌍 Improve French (fr-FR) and Urdu (ur-PK) and locales.
|
|
23
|
+
- 🐞 Bugfixes
|
|
24
|
+
- 📚 Documentation improvements
|
|
25
|
+
|
|
26
|
+
### `@mui/x-data-grid@v6.2.0` / `@mui/x-data-grid-pro@v6.2.0` / `@mui/x-data-grid-premium@v6.2.0`
|
|
27
|
+
|
|
28
|
+
#### Changes
|
|
29
|
+
|
|
30
|
+
- [DataGrid] Reset selection state on `checkboxSelection` toggle (#8522) @MBilalShafi
|
|
31
|
+
- [DataGrid] Use `baseSelect` slot instead of `baseTextField` with `select={true}` (#8110) @cherniavskii
|
|
32
|
+
- [l10n] Improve French (fr-FR) locale (#8537) @vallereaugabriel
|
|
33
|
+
- [l10n] Improve Urdu (ur-PK) locale (#8513) @SFARPak
|
|
34
|
+
|
|
35
|
+
### `@mui/x-date-pickers@v6.2.0` / `@mui/x-date-pickers-pro@v6.2.0`
|
|
36
|
+
|
|
37
|
+
#### Changes
|
|
38
|
+
|
|
39
|
+
- [DateTimePicker] Fix `TimeClock` validation ignoring date by default (#8570) @LukasTy
|
|
40
|
+
- [fields] Fix reliance on section order (#8545) @LukasTy
|
|
41
|
+
- [fields] Make the space between format separators controllable (#8425) @flaviendelangle
|
|
42
|
+
- [pickers] Add `@mui/base` to `peerDependencies` (#8590) @LukasTy
|
|
43
|
+
- [pickers] Fix JSDoc for `formatDensity` prop (#8601) @flaviendelangle
|
|
44
|
+
- [pickers] Improve value lifecycle on non-controlled pickers (#8312) @flaviendelangle
|
|
45
|
+
- [pickers] Migrate `AdapterDayjs` to our repository (#8487) @flaviendelangle
|
|
46
|
+
|
|
47
|
+
### Docs
|
|
48
|
+
|
|
49
|
+
- [docs] Fix "Custom day rendering" demo alignment (#8541) @LukasTy
|
|
50
|
+
- [docs] Fix **below** typo (#8576) @alexfauquette
|
|
51
|
+
|
|
52
|
+
### Core
|
|
53
|
+
|
|
54
|
+
- [core] Optimize `renovate` rules (#8575) @LukasTy
|
|
55
|
+
- [core] Upgrade monorepo (#8578) @cherniavskii
|
|
56
|
+
- [core] Update last release date (#8569) @DanailH
|
|
57
|
+
|
|
6
58
|
## 6.1.0
|
|
7
59
|
|
|
8
|
-
_Apr
|
|
60
|
+
_Apr 10, 2023_
|
|
9
61
|
|
|
10
62
|
We'd like to offer a big thanks to the 15 contributors who made this release possible. Here are some highlights ✨:
|
|
11
63
|
|
|
@@ -147,6 +147,12 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
|
|
|
147
147
|
* Defaults to localized format based on the used `views`.
|
|
148
148
|
*/
|
|
149
149
|
format: PropTypes.string,
|
|
150
|
+
/**
|
|
151
|
+
* Density of the format when rendered in the input.
|
|
152
|
+
* Setting `formatDensity` to `"spacious"` will add a space before and after each `/`, `-` and `.` character.
|
|
153
|
+
* @default "dense"
|
|
154
|
+
*/
|
|
155
|
+
formatDensity: PropTypes.oneOf(['dense', 'spacious']),
|
|
150
156
|
/**
|
|
151
157
|
* Pass a ref to the `input` element.
|
|
152
158
|
* Ignored if the field has several inputs.
|
|
@@ -155,6 +155,12 @@ DesktopDateRangePicker.propTypes = {
|
|
|
155
155
|
* Defaults to localized format based on the used `views`.
|
|
156
156
|
*/
|
|
157
157
|
format: PropTypes.string,
|
|
158
|
+
/**
|
|
159
|
+
* Density of the format when rendered in the input.
|
|
160
|
+
* Setting `formatDensity` to `"spacious"` will add a space before and after each `/`, `-` and `.` character.
|
|
161
|
+
* @default "dense"
|
|
162
|
+
*/
|
|
163
|
+
formatDensity: PropTypes.oneOf(['dense', 'spacious']),
|
|
158
164
|
/**
|
|
159
165
|
* Pass a ref to the `input` element.
|
|
160
166
|
* Ignored if the field has several inputs.
|
|
@@ -158,6 +158,12 @@ MobileDateRangePicker.propTypes = {
|
|
|
158
158
|
* Defaults to localized format based on the used `views`.
|
|
159
159
|
*/
|
|
160
160
|
format: PropTypes.string,
|
|
161
|
+
/**
|
|
162
|
+
* Density of the format when rendered in the input.
|
|
163
|
+
* Setting `formatDensity` to `"spacious"` will add a space before and after each `/`, `-` and `.` character.
|
|
164
|
+
* @default "dense"
|
|
165
|
+
*/
|
|
166
|
+
formatDensity: PropTypes.oneOf(['dense', 'spacious']),
|
|
161
167
|
/**
|
|
162
168
|
* Pass a ref to the `input` element.
|
|
163
169
|
* Ignored if the field has several inputs.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
|
-
const _excluded = ["slots", "slotProps", "components", "componentsProps", "value", "defaultValue", "format", "onChange", "readOnly", "disabled", "onError", "shouldDisableDate", "minDate", "maxDate", "disableFuture", "disablePast", "selectedSections", "onSelectedSectionsChange", "autoFocus"],
|
|
3
|
+
const _excluded = ["slots", "slotProps", "components", "componentsProps", "value", "defaultValue", "format", "formatDensity", "onChange", "readOnly", "disabled", "onError", "shouldDisableDate", "minDate", "maxDate", "disableFuture", "disablePast", "selectedSections", "onSelectedSectionsChange", "autoFocus"],
|
|
4
4
|
_excluded2 = ["onKeyDown", "ref", "readOnly", "inputMode"],
|
|
5
5
|
_excluded3 = ["onKeyDown", "ref", "readOnly", "inputMode"];
|
|
6
6
|
import * as React from 'react';
|
|
@@ -48,6 +48,7 @@ const MultiInputDateRangeField = /*#__PURE__*/React.forwardRef(function MultiInp
|
|
|
48
48
|
value,
|
|
49
49
|
defaultValue,
|
|
50
50
|
format,
|
|
51
|
+
formatDensity,
|
|
51
52
|
onChange,
|
|
52
53
|
readOnly,
|
|
53
54
|
disabled,
|
|
@@ -104,6 +105,7 @@ const MultiInputDateRangeField = /*#__PURE__*/React.forwardRef(function MultiInp
|
|
|
104
105
|
value,
|
|
105
106
|
defaultValue,
|
|
106
107
|
format,
|
|
108
|
+
formatDensity,
|
|
107
109
|
onChange,
|
|
108
110
|
readOnly,
|
|
109
111
|
disabled,
|
|
@@ -211,6 +213,12 @@ process.env.NODE_ENV !== "production" ? MultiInputDateRangeField.propTypes = {
|
|
|
211
213
|
* Format of the date when rendered in the input(s).
|
|
212
214
|
*/
|
|
213
215
|
format: PropTypes.string,
|
|
216
|
+
/**
|
|
217
|
+
* Density of the format when rendered in the input.
|
|
218
|
+
* Setting `formatDensity` to `"spacious"` will add a space before and after each `/`, `-` and `.` character.
|
|
219
|
+
* @default "dense"
|
|
220
|
+
*/
|
|
221
|
+
formatDensity: PropTypes.oneOf(['dense', 'spacious']),
|
|
214
222
|
/**
|
|
215
223
|
* Maximal selectable date.
|
|
216
224
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
|
-
const _excluded = ["slots", "slotProps", "components", "componentsProps", "value", "defaultValue", "format", "onChange", "readOnly", "disabled", "onError", "shouldDisableDate", "minDate", "maxDate", "minTime", "maxTime", "minDateTime", "maxDateTime", "minutesStep", "shouldDisableClock", "shouldDisableTime", "disableFuture", "disablePast", "selectedSections", "onSelectedSectionsChange", "unstableStartFieldRef", "unstableEndFieldRef", "autoFocus"],
|
|
3
|
+
const _excluded = ["slots", "slotProps", "components", "componentsProps", "value", "defaultValue", "format", "formatDensity", "onChange", "readOnly", "disabled", "onError", "shouldDisableDate", "minDate", "maxDate", "minTime", "maxTime", "minDateTime", "maxDateTime", "minutesStep", "shouldDisableClock", "shouldDisableTime", "disableFuture", "disablePast", "selectedSections", "onSelectedSectionsChange", "unstableStartFieldRef", "unstableEndFieldRef", "autoFocus"],
|
|
4
4
|
_excluded2 = ["onKeyDown", "ref", "readOnly", "inputMode"],
|
|
5
5
|
_excluded3 = ["onKeyDown", "ref", "readOnly", "inputMode"];
|
|
6
6
|
import * as React from 'react';
|
|
@@ -48,6 +48,7 @@ const MultiInputDateTimeRangeField = /*#__PURE__*/React.forwardRef(function Mult
|
|
|
48
48
|
value,
|
|
49
49
|
defaultValue,
|
|
50
50
|
format,
|
|
51
|
+
formatDensity,
|
|
51
52
|
onChange,
|
|
52
53
|
readOnly,
|
|
53
54
|
disabled,
|
|
@@ -113,6 +114,7 @@ const MultiInputDateTimeRangeField = /*#__PURE__*/React.forwardRef(function Mult
|
|
|
113
114
|
value,
|
|
114
115
|
defaultValue,
|
|
115
116
|
format,
|
|
117
|
+
formatDensity,
|
|
116
118
|
onChange,
|
|
117
119
|
readOnly,
|
|
118
120
|
disabled,
|
|
@@ -239,6 +241,12 @@ process.env.NODE_ENV !== "production" ? MultiInputDateTimeRangeField.propTypes =
|
|
|
239
241
|
* Format of the date when rendered in the input(s).
|
|
240
242
|
*/
|
|
241
243
|
format: PropTypes.string,
|
|
244
|
+
/**
|
|
245
|
+
* Density of the format when rendered in the input.
|
|
246
|
+
* Setting `formatDensity` to `"spacious"` will add a space before and after each `/`, `-` and `.` character.
|
|
247
|
+
* @default "dense"
|
|
248
|
+
*/
|
|
249
|
+
formatDensity: PropTypes.oneOf(['dense', 'spacious']),
|
|
242
250
|
/**
|
|
243
251
|
* Maximal selectable date.
|
|
244
252
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
|
-
const _excluded = ["slots", "slotProps", "components", "componentsProps", "value", "defaultValue", "format", "onChange", "readOnly", "disabled", "onError", "minTime", "maxTime", "minutesStep", "shouldDisableClock", "shouldDisableTime", "disableFuture", "disablePast", "selectedSections", "onSelectedSectionsChange", "unstableStartFieldRef", "unstableEndFieldRef", "autoFocus"],
|
|
3
|
+
const _excluded = ["slots", "slotProps", "components", "componentsProps", "value", "defaultValue", "format", "formatDensity", "onChange", "readOnly", "disabled", "onError", "minTime", "maxTime", "minutesStep", "shouldDisableClock", "shouldDisableTime", "disableFuture", "disablePast", "selectedSections", "onSelectedSectionsChange", "unstableStartFieldRef", "unstableEndFieldRef", "autoFocus"],
|
|
4
4
|
_excluded2 = ["onKeyDown", "ref", "readOnly", "inputMode"],
|
|
5
5
|
_excluded3 = ["onKeyDown", "ref", "readOnly", "inputMode"];
|
|
6
6
|
import * as React from 'react';
|
|
@@ -48,6 +48,7 @@ const MultiInputTimeRangeField = /*#__PURE__*/React.forwardRef(function MultiInp
|
|
|
48
48
|
value,
|
|
49
49
|
defaultValue,
|
|
50
50
|
format,
|
|
51
|
+
formatDensity,
|
|
51
52
|
onChange,
|
|
52
53
|
readOnly,
|
|
53
54
|
disabled,
|
|
@@ -108,6 +109,7 @@ const MultiInputTimeRangeField = /*#__PURE__*/React.forwardRef(function MultiInp
|
|
|
108
109
|
value,
|
|
109
110
|
defaultValue,
|
|
110
111
|
format,
|
|
112
|
+
formatDensity,
|
|
111
113
|
onChange,
|
|
112
114
|
readOnly,
|
|
113
115
|
disabled,
|
|
@@ -229,6 +231,12 @@ process.env.NODE_ENV !== "production" ? MultiInputTimeRangeField.propTypes = {
|
|
|
229
231
|
* Format of the date when rendered in the input(s).
|
|
230
232
|
*/
|
|
231
233
|
format: PropTypes.string,
|
|
234
|
+
/**
|
|
235
|
+
* Density of the format when rendered in the input.
|
|
236
|
+
* Setting `formatDensity` to `"spacious"` will add a space before and after each `/`, `-` and `.` character.
|
|
237
|
+
* @default "dense"
|
|
238
|
+
*/
|
|
239
|
+
formatDensity: PropTypes.oneOf(['dense', 'spacious']),
|
|
232
240
|
/**
|
|
233
241
|
* Maximal selectable time.
|
|
234
242
|
* The date part of the object will be ignored unless `props.disableIgnoringDatePartForTimeValidation === true`.
|
package/README.md
CHANGED
|
@@ -121,6 +121,12 @@ process.env.NODE_ENV !== "production" ? SingleInputDateRangeField.propTypes = {
|
|
|
121
121
|
* Format of the date when rendered in the input(s).
|
|
122
122
|
*/
|
|
123
123
|
format: PropTypes.string,
|
|
124
|
+
/**
|
|
125
|
+
* Density of the format when rendered in the input.
|
|
126
|
+
* Setting `formatDensity` to `"spacious"` will add a space before and after each `/`, `-` and `.` character.
|
|
127
|
+
* @default "dense"
|
|
128
|
+
*/
|
|
129
|
+
formatDensity: PropTypes.oneOf(['dense', 'spacious']),
|
|
124
130
|
/**
|
|
125
131
|
* Props applied to the [`FormHelperText`](/material-ui/api/form-helper-text/) element.
|
|
126
132
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
|
-
const _excluded = ["value", "defaultValue", "format", "onChange", "readOnly", "onError", "shouldDisableDate", "minDate", "maxDate", "disableFuture", "disablePast", "selectedSections", "onSelectedSectionsChange", "unstableFieldRef"];
|
|
3
|
+
const _excluded = ["value", "defaultValue", "format", "formatDensity", "onChange", "readOnly", "onError", "shouldDisableDate", "minDate", "maxDate", "disableFuture", "disablePast", "selectedSections", "onSelectedSectionsChange", "unstableFieldRef"];
|
|
4
4
|
import { useUtils, useDefaultDates, applyDefaultDate, useField } from '@mui/x-date-pickers/internals';
|
|
5
5
|
import { rangeValueManager, rangeFieldValueManager } from '../internal/utils/valueManagers';
|
|
6
6
|
import { validateDateRange } from '../internal/hooks/validation/useDateRangeValidation';
|
|
@@ -25,6 +25,7 @@ export const useSingleInputDateRangeField = ({
|
|
|
25
25
|
value,
|
|
26
26
|
defaultValue,
|
|
27
27
|
format,
|
|
28
|
+
formatDensity,
|
|
28
29
|
onChange,
|
|
29
30
|
readOnly,
|
|
30
31
|
onError,
|
|
@@ -45,6 +46,7 @@ export const useSingleInputDateRangeField = ({
|
|
|
45
46
|
value,
|
|
46
47
|
defaultValue,
|
|
47
48
|
format,
|
|
49
|
+
formatDensity,
|
|
48
50
|
onChange,
|
|
49
51
|
readOnly,
|
|
50
52
|
onError,
|
|
@@ -131,6 +131,12 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
|
|
|
131
131
|
* Format of the date when rendered in the input(s).
|
|
132
132
|
*/
|
|
133
133
|
format: PropTypes.string,
|
|
134
|
+
/**
|
|
135
|
+
* Density of the format when rendered in the input.
|
|
136
|
+
* Setting `formatDensity` to `"spacious"` will add a space before and after each `/`, `-` and `.` character.
|
|
137
|
+
* @default "dense"
|
|
138
|
+
*/
|
|
139
|
+
formatDensity: PropTypes.oneOf(['dense', 'spacious']),
|
|
134
140
|
/**
|
|
135
141
|
* Props applied to the [`FormHelperText`](/material-ui/api/form-helper-text/) element.
|
|
136
142
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
|
-
const _excluded = ["value", "defaultValue", "format", "onChange", "readOnly", "onError", "shouldDisableDate", "minDate", "maxDate", "disableFuture", "disablePast", "minTime", "maxTime", "minDateTime", "maxDateTime", "minutesStep", "shouldDisableTime", "disableIgnoringDatePartForTimeValidation", "selectedSections", "onSelectedSectionsChange", "unstableFieldRef"];
|
|
3
|
+
const _excluded = ["value", "defaultValue", "format", "formatDensity", "onChange", "readOnly", "onError", "shouldDisableDate", "minDate", "maxDate", "disableFuture", "disablePast", "minTime", "maxTime", "minDateTime", "maxDateTime", "minutesStep", "shouldDisableTime", "disableIgnoringDatePartForTimeValidation", "selectedSections", "onSelectedSectionsChange", "unstableFieldRef"];
|
|
4
4
|
import { useUtils, useField, applyDefaultDate, useDefaultDates } from '@mui/x-date-pickers/internals';
|
|
5
5
|
import { rangeValueManager, rangeFieldValueManager } from '../internal/utils/valueManagers';
|
|
6
6
|
import { validateDateTimeRange } from '../internal/hooks/validation/useDateTimeRangeValidation';
|
|
@@ -30,6 +30,7 @@ export const useSingleInputDateTimeRangeField = ({
|
|
|
30
30
|
value,
|
|
31
31
|
defaultValue,
|
|
32
32
|
format,
|
|
33
|
+
formatDensity,
|
|
33
34
|
onChange,
|
|
34
35
|
readOnly,
|
|
35
36
|
onError,
|
|
@@ -55,6 +56,7 @@ export const useSingleInputDateTimeRangeField = ({
|
|
|
55
56
|
value,
|
|
56
57
|
defaultValue,
|
|
57
58
|
format,
|
|
59
|
+
formatDensity,
|
|
58
60
|
onChange,
|
|
59
61
|
readOnly,
|
|
60
62
|
onError,
|
|
@@ -131,6 +131,12 @@ process.env.NODE_ENV !== "production" ? SingleInputTimeRangeField.propTypes = {
|
|
|
131
131
|
* Format of the date when rendered in the input(s).
|
|
132
132
|
*/
|
|
133
133
|
format: PropTypes.string,
|
|
134
|
+
/**
|
|
135
|
+
* Density of the format when rendered in the input.
|
|
136
|
+
* Setting `formatDensity` to `"spacious"` will add a space before and after each `/`, `-` and `.` character.
|
|
137
|
+
* @default "dense"
|
|
138
|
+
*/
|
|
139
|
+
formatDensity: PropTypes.oneOf(['dense', 'spacious']),
|
|
134
140
|
/**
|
|
135
141
|
* Props applied to the [`FormHelperText`](/material-ui/api/form-helper-text/) element.
|
|
136
142
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
|
-
const _excluded = ["value", "defaultValue", "format", "onChange", "readOnly", "onError", "minTime", "maxTime", "minutesStep", "shouldDisableTime", "disableFuture", "disablePast", "selectedSections", "onSelectedSectionsChange", "unstableFieldRef"];
|
|
3
|
+
const _excluded = ["value", "defaultValue", "format", "formatDensity", "onChange", "readOnly", "onError", "minTime", "maxTime", "minutesStep", "shouldDisableTime", "disableFuture", "disablePast", "selectedSections", "onSelectedSectionsChange", "unstableFieldRef"];
|
|
4
4
|
import { useUtils, useField } from '@mui/x-date-pickers/internals';
|
|
5
5
|
import { rangeValueManager, rangeFieldValueManager } from '../internal/utils/valueManagers';
|
|
6
6
|
import { validateTimeRange } from '../internal/hooks/validation/useTimeRangeValidation';
|
|
@@ -24,6 +24,7 @@ export const useSingleInputTimeRangeField = ({
|
|
|
24
24
|
value,
|
|
25
25
|
defaultValue,
|
|
26
26
|
format,
|
|
27
|
+
formatDensity,
|
|
27
28
|
onChange,
|
|
28
29
|
readOnly,
|
|
29
30
|
onError,
|
|
@@ -45,6 +46,7 @@ export const useSingleInputTimeRangeField = ({
|
|
|
45
46
|
value,
|
|
46
47
|
defaultValue,
|
|
47
48
|
format,
|
|
49
|
+
formatDensity,
|
|
48
50
|
onChange,
|
|
49
51
|
readOnly,
|
|
50
52
|
onError,
|
package/index.js
CHANGED
|
@@ -24,6 +24,7 @@ export const useDesktopRangePicker = ({
|
|
|
24
24
|
className,
|
|
25
25
|
sx,
|
|
26
26
|
format,
|
|
27
|
+
formatDensity,
|
|
27
28
|
label,
|
|
28
29
|
inputRef,
|
|
29
30
|
readOnly,
|
|
@@ -77,6 +78,7 @@ export const useDesktopRangePicker = ({
|
|
|
77
78
|
className,
|
|
78
79
|
sx,
|
|
79
80
|
format,
|
|
81
|
+
formatDensity,
|
|
80
82
|
autoFocus: autoFocus && !props.open,
|
|
81
83
|
ref: fieldContainerRef
|
|
82
84
|
}, fieldType === 'single-input' && {
|
|
@@ -25,6 +25,7 @@ export const useMobileRangePicker = ({
|
|
|
25
25
|
className,
|
|
26
26
|
sx,
|
|
27
27
|
format,
|
|
28
|
+
formatDensity,
|
|
28
29
|
label,
|
|
29
30
|
inputRef,
|
|
30
31
|
readOnly,
|
|
@@ -66,7 +67,8 @@ export const useMobileRangePicker = ({
|
|
|
66
67
|
disabled,
|
|
67
68
|
className,
|
|
68
69
|
sx,
|
|
69
|
-
format
|
|
70
|
+
format,
|
|
71
|
+
formatDensity
|
|
70
72
|
}, fieldType === 'single-input' && {
|
|
71
73
|
inputRef
|
|
72
74
|
}),
|
|
@@ -23,6 +23,7 @@ export const useMultiInputDateRangeField = ({
|
|
|
23
23
|
value: valueProp,
|
|
24
24
|
defaultValue,
|
|
25
25
|
format,
|
|
26
|
+
formatDensity,
|
|
26
27
|
onChange,
|
|
27
28
|
disabled,
|
|
28
29
|
readOnly,
|
|
@@ -63,6 +64,7 @@ export const useMultiInputDateRangeField = ({
|
|
|
63
64
|
disabled,
|
|
64
65
|
readOnly,
|
|
65
66
|
format,
|
|
67
|
+
formatDensity,
|
|
66
68
|
unstableFieldRef: unstableStartFieldRef,
|
|
67
69
|
value: valueProp === undefined ? undefined : valueProp[0],
|
|
68
70
|
defaultValue: defaultValue === undefined ? undefined : defaultValue[0],
|
|
@@ -74,6 +76,7 @@ export const useMultiInputDateRangeField = ({
|
|
|
74
76
|
error: !!validationError[1]
|
|
75
77
|
}, endTextFieldProps, {
|
|
76
78
|
format,
|
|
79
|
+
formatDensity,
|
|
77
80
|
disabled,
|
|
78
81
|
readOnly,
|
|
79
82
|
unstableFieldRef: unstableEndFieldRef,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ponyfillGlobal } from '@mui/utils';
|
|
2
2
|
export const getReleaseInfo = () => {
|
|
3
|
-
const releaseInfo = "
|
|
3
|
+
const releaseInfo = "MTY4MTQyMzIwMDAwMA==";
|
|
4
4
|
if (process.env.NODE_ENV !== 'production') {
|
|
5
5
|
// A simple hack to set the value in the test environment (has no build step).
|
|
6
6
|
// eslint-disable-next-line no-useless-concat
|
|
@@ -146,6 +146,12 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
|
|
|
146
146
|
* Defaults to localized format based on the used `views`.
|
|
147
147
|
*/
|
|
148
148
|
format: PropTypes.string,
|
|
149
|
+
/**
|
|
150
|
+
* Density of the format when rendered in the input.
|
|
151
|
+
* Setting `formatDensity` to `"spacious"` will add a space before and after each `/`, `-` and `.` character.
|
|
152
|
+
* @default "dense"
|
|
153
|
+
*/
|
|
154
|
+
formatDensity: PropTypes.oneOf(['dense', 'spacious']),
|
|
149
155
|
/**
|
|
150
156
|
* Pass a ref to the `input` element.
|
|
151
157
|
* Ignored if the field has several inputs.
|
|
@@ -154,6 +154,12 @@ DesktopDateRangePicker.propTypes = {
|
|
|
154
154
|
* Defaults to localized format based on the used `views`.
|
|
155
155
|
*/
|
|
156
156
|
format: PropTypes.string,
|
|
157
|
+
/**
|
|
158
|
+
* Density of the format when rendered in the input.
|
|
159
|
+
* Setting `formatDensity` to `"spacious"` will add a space before and after each `/`, `-` and `.` character.
|
|
160
|
+
* @default "dense"
|
|
161
|
+
*/
|
|
162
|
+
formatDensity: PropTypes.oneOf(['dense', 'spacious']),
|
|
157
163
|
/**
|
|
158
164
|
* Pass a ref to the `input` element.
|
|
159
165
|
* Ignored if the field has several inputs.
|
|
@@ -159,6 +159,12 @@ MobileDateRangePicker.propTypes = {
|
|
|
159
159
|
* Defaults to localized format based on the used `views`.
|
|
160
160
|
*/
|
|
161
161
|
format: PropTypes.string,
|
|
162
|
+
/**
|
|
163
|
+
* Density of the format when rendered in the input.
|
|
164
|
+
* Setting `formatDensity` to `"spacious"` will add a space before and after each `/`, `-` and `.` character.
|
|
165
|
+
* @default "dense"
|
|
166
|
+
*/
|
|
167
|
+
formatDensity: PropTypes.oneOf(['dense', 'spacious']),
|
|
162
168
|
/**
|
|
163
169
|
* Pass a ref to the `input` element.
|
|
164
170
|
* Ignored if the field has several inputs.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
|
-
var _excluded = ["slots", "slotProps", "components", "componentsProps", "value", "defaultValue", "format", "onChange", "readOnly", "disabled", "onError", "shouldDisableDate", "minDate", "maxDate", "disableFuture", "disablePast", "selectedSections", "onSelectedSectionsChange", "autoFocus"],
|
|
3
|
+
var _excluded = ["slots", "slotProps", "components", "componentsProps", "value", "defaultValue", "format", "formatDensity", "onChange", "readOnly", "disabled", "onError", "shouldDisableDate", "minDate", "maxDate", "disableFuture", "disablePast", "selectedSections", "onSelectedSectionsChange", "autoFocus"],
|
|
4
4
|
_excluded2 = ["onKeyDown", "ref", "readOnly", "inputMode"],
|
|
5
5
|
_excluded3 = ["onKeyDown", "ref", "readOnly", "inputMode"];
|
|
6
6
|
import * as React from 'react';
|
|
@@ -53,6 +53,7 @@ var MultiInputDateRangeField = /*#__PURE__*/React.forwardRef(function MultiInput
|
|
|
53
53
|
value = themeProps.value,
|
|
54
54
|
defaultValue = themeProps.defaultValue,
|
|
55
55
|
format = themeProps.format,
|
|
56
|
+
formatDensity = themeProps.formatDensity,
|
|
56
57
|
onChange = themeProps.onChange,
|
|
57
58
|
readOnly = themeProps.readOnly,
|
|
58
59
|
disabled = themeProps.disabled,
|
|
@@ -108,6 +109,7 @@ var MultiInputDateRangeField = /*#__PURE__*/React.forwardRef(function MultiInput
|
|
|
108
109
|
value: value,
|
|
109
110
|
defaultValue: defaultValue,
|
|
110
111
|
format: format,
|
|
112
|
+
formatDensity: formatDensity,
|
|
111
113
|
onChange: onChange,
|
|
112
114
|
readOnly: readOnly,
|
|
113
115
|
disabled: disabled,
|
|
@@ -211,6 +213,12 @@ process.env.NODE_ENV !== "production" ? MultiInputDateRangeField.propTypes = {
|
|
|
211
213
|
* Format of the date when rendered in the input(s).
|
|
212
214
|
*/
|
|
213
215
|
format: PropTypes.string,
|
|
216
|
+
/**
|
|
217
|
+
* Density of the format when rendered in the input.
|
|
218
|
+
* Setting `formatDensity` to `"spacious"` will add a space before and after each `/`, `-` and `.` character.
|
|
219
|
+
* @default "dense"
|
|
220
|
+
*/
|
|
221
|
+
formatDensity: PropTypes.oneOf(['dense', 'spacious']),
|
|
214
222
|
/**
|
|
215
223
|
* Maximal selectable date.
|
|
216
224
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
|
-
var _excluded = ["slots", "slotProps", "components", "componentsProps", "value", "defaultValue", "format", "onChange", "readOnly", "disabled", "onError", "shouldDisableDate", "minDate", "maxDate", "minTime", "maxTime", "minDateTime", "maxDateTime", "minutesStep", "shouldDisableClock", "shouldDisableTime", "disableFuture", "disablePast", "selectedSections", "onSelectedSectionsChange", "unstableStartFieldRef", "unstableEndFieldRef", "autoFocus"],
|
|
3
|
+
var _excluded = ["slots", "slotProps", "components", "componentsProps", "value", "defaultValue", "format", "formatDensity", "onChange", "readOnly", "disabled", "onError", "shouldDisableDate", "minDate", "maxDate", "minTime", "maxTime", "minDateTime", "maxDateTime", "minutesStep", "shouldDisableClock", "shouldDisableTime", "disableFuture", "disablePast", "selectedSections", "onSelectedSectionsChange", "unstableStartFieldRef", "unstableEndFieldRef", "autoFocus"],
|
|
4
4
|
_excluded2 = ["onKeyDown", "ref", "readOnly", "inputMode"],
|
|
5
5
|
_excluded3 = ["onKeyDown", "ref", "readOnly", "inputMode"];
|
|
6
6
|
import * as React from 'react';
|
|
@@ -53,6 +53,7 @@ var MultiInputDateTimeRangeField = /*#__PURE__*/React.forwardRef(function MultiI
|
|
|
53
53
|
value = themeProps.value,
|
|
54
54
|
defaultValue = themeProps.defaultValue,
|
|
55
55
|
format = themeProps.format,
|
|
56
|
+
formatDensity = themeProps.formatDensity,
|
|
56
57
|
onChange = themeProps.onChange,
|
|
57
58
|
readOnly = themeProps.readOnly,
|
|
58
59
|
disabled = themeProps.disabled,
|
|
@@ -117,6 +118,7 @@ var MultiInputDateTimeRangeField = /*#__PURE__*/React.forwardRef(function MultiI
|
|
|
117
118
|
value: value,
|
|
118
119
|
defaultValue: defaultValue,
|
|
119
120
|
format: format,
|
|
121
|
+
formatDensity: formatDensity,
|
|
120
122
|
onChange: onChange,
|
|
121
123
|
readOnly: readOnly,
|
|
122
124
|
disabled: disabled,
|
|
@@ -239,6 +241,12 @@ process.env.NODE_ENV !== "production" ? MultiInputDateTimeRangeField.propTypes =
|
|
|
239
241
|
* Format of the date when rendered in the input(s).
|
|
240
242
|
*/
|
|
241
243
|
format: PropTypes.string,
|
|
244
|
+
/**
|
|
245
|
+
* Density of the format when rendered in the input.
|
|
246
|
+
* Setting `formatDensity` to `"spacious"` will add a space before and after each `/`, `-` and `.` character.
|
|
247
|
+
* @default "dense"
|
|
248
|
+
*/
|
|
249
|
+
formatDensity: PropTypes.oneOf(['dense', 'spacious']),
|
|
242
250
|
/**
|
|
243
251
|
* Maximal selectable date.
|
|
244
252
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
|
-
var _excluded = ["slots", "slotProps", "components", "componentsProps", "value", "defaultValue", "format", "onChange", "readOnly", "disabled", "onError", "minTime", "maxTime", "minutesStep", "shouldDisableClock", "shouldDisableTime", "disableFuture", "disablePast", "selectedSections", "onSelectedSectionsChange", "unstableStartFieldRef", "unstableEndFieldRef", "autoFocus"],
|
|
3
|
+
var _excluded = ["slots", "slotProps", "components", "componentsProps", "value", "defaultValue", "format", "formatDensity", "onChange", "readOnly", "disabled", "onError", "minTime", "maxTime", "minutesStep", "shouldDisableClock", "shouldDisableTime", "disableFuture", "disablePast", "selectedSections", "onSelectedSectionsChange", "unstableStartFieldRef", "unstableEndFieldRef", "autoFocus"],
|
|
4
4
|
_excluded2 = ["onKeyDown", "ref", "readOnly", "inputMode"],
|
|
5
5
|
_excluded3 = ["onKeyDown", "ref", "readOnly", "inputMode"];
|
|
6
6
|
import * as React from 'react';
|
|
@@ -53,6 +53,7 @@ var MultiInputTimeRangeField = /*#__PURE__*/React.forwardRef(function MultiInput
|
|
|
53
53
|
value = themeProps.value,
|
|
54
54
|
defaultValue = themeProps.defaultValue,
|
|
55
55
|
format = themeProps.format,
|
|
56
|
+
formatDensity = themeProps.formatDensity,
|
|
56
57
|
onChange = themeProps.onChange,
|
|
57
58
|
readOnly = themeProps.readOnly,
|
|
58
59
|
disabled = themeProps.disabled,
|
|
@@ -112,6 +113,7 @@ var MultiInputTimeRangeField = /*#__PURE__*/React.forwardRef(function MultiInput
|
|
|
112
113
|
value: value,
|
|
113
114
|
defaultValue: defaultValue,
|
|
114
115
|
format: format,
|
|
116
|
+
formatDensity: formatDensity,
|
|
115
117
|
onChange: onChange,
|
|
116
118
|
readOnly: readOnly,
|
|
117
119
|
disabled: disabled,
|
|
@@ -229,6 +231,12 @@ process.env.NODE_ENV !== "production" ? MultiInputTimeRangeField.propTypes = {
|
|
|
229
231
|
* Format of the date when rendered in the input(s).
|
|
230
232
|
*/
|
|
231
233
|
format: PropTypes.string,
|
|
234
|
+
/**
|
|
235
|
+
* Density of the format when rendered in the input.
|
|
236
|
+
* Setting `formatDensity` to `"spacious"` will add a space before and after each `/`, `-` and `.` character.
|
|
237
|
+
* @default "dense"
|
|
238
|
+
*/
|
|
239
|
+
formatDensity: PropTypes.oneOf(['dense', 'spacious']),
|
|
232
240
|
/**
|
|
233
241
|
* Maximal selectable time.
|
|
234
242
|
* The date part of the object will be ignored unless `props.disableIgnoringDatePartForTimeValidation === true`.
|
|
@@ -115,6 +115,12 @@ process.env.NODE_ENV !== "production" ? SingleInputDateRangeField.propTypes = {
|
|
|
115
115
|
* Format of the date when rendered in the input(s).
|
|
116
116
|
*/
|
|
117
117
|
format: PropTypes.string,
|
|
118
|
+
/**
|
|
119
|
+
* Density of the format when rendered in the input.
|
|
120
|
+
* Setting `formatDensity` to `"spacious"` will add a space before and after each `/`, `-` and `.` character.
|
|
121
|
+
* @default "dense"
|
|
122
|
+
*/
|
|
123
|
+
formatDensity: PropTypes.oneOf(['dense', 'spacious']),
|
|
118
124
|
/**
|
|
119
125
|
* Props applied to the [`FormHelperText`](/material-ui/api/form-helper-text/) element.
|
|
120
126
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
|
-
var _excluded = ["value", "defaultValue", "format", "onChange", "readOnly", "onError", "shouldDisableDate", "minDate", "maxDate", "disableFuture", "disablePast", "selectedSections", "onSelectedSectionsChange", "unstableFieldRef"];
|
|
3
|
+
var _excluded = ["value", "defaultValue", "format", "formatDensity", "onChange", "readOnly", "onError", "shouldDisableDate", "minDate", "maxDate", "disableFuture", "disablePast", "selectedSections", "onSelectedSectionsChange", "unstableFieldRef"];
|
|
4
4
|
import { useUtils, useDefaultDates, applyDefaultDate, useField } from '@mui/x-date-pickers/internals';
|
|
5
5
|
import { rangeValueManager, rangeFieldValueManager } from '../internal/utils/valueManagers';
|
|
6
6
|
import { validateDateRange } from '../internal/hooks/validation/useDateRangeValidation';
|
|
@@ -23,6 +23,7 @@ export var useSingleInputDateRangeField = function useSingleInputDateRangeField(
|
|
|
23
23
|
value = _useDefaultizedDateRa.value,
|
|
24
24
|
defaultValue = _useDefaultizedDateRa.defaultValue,
|
|
25
25
|
format = _useDefaultizedDateRa.format,
|
|
26
|
+
formatDensity = _useDefaultizedDateRa.formatDensity,
|
|
26
27
|
onChange = _useDefaultizedDateRa.onChange,
|
|
27
28
|
readOnly = _useDefaultizedDateRa.readOnly,
|
|
28
29
|
onError = _useDefaultizedDateRa.onError,
|
|
@@ -42,6 +43,7 @@ export var useSingleInputDateRangeField = function useSingleInputDateRangeField(
|
|
|
42
43
|
value: value,
|
|
43
44
|
defaultValue: defaultValue,
|
|
44
45
|
format: format,
|
|
46
|
+
formatDensity: formatDensity,
|
|
45
47
|
onChange: onChange,
|
|
46
48
|
readOnly: readOnly,
|
|
47
49
|
onError: onError,
|
|
@@ -125,6 +125,12 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
|
|
|
125
125
|
* Format of the date when rendered in the input(s).
|
|
126
126
|
*/
|
|
127
127
|
format: PropTypes.string,
|
|
128
|
+
/**
|
|
129
|
+
* Density of the format when rendered in the input.
|
|
130
|
+
* Setting `formatDensity` to `"spacious"` will add a space before and after each `/`, `-` and `.` character.
|
|
131
|
+
* @default "dense"
|
|
132
|
+
*/
|
|
133
|
+
formatDensity: PropTypes.oneOf(['dense', 'spacious']),
|
|
128
134
|
/**
|
|
129
135
|
* Props applied to the [`FormHelperText`](/material-ui/api/form-helper-text/) element.
|
|
130
136
|
*/
|