@mui/x-date-pickers 7.0.0-alpha.8 → 7.0.0-alpha.9
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/AdapterLuxon/AdapterLuxon.d.ts +1 -1
- package/AdapterLuxon/AdapterLuxon.js +4 -12
- package/CHANGELOG.md +379 -2
- package/DatePicker/DatePicker.js +0 -3
- package/DatePicker/DatePickerToolbar.js +0 -3
- package/DateTimePicker/DateTimePicker.js +0 -3
- package/DateTimePicker/DateTimePickerToolbar.js +0 -3
- package/DesktopDatePicker/DesktopDatePicker.js +0 -3
- package/DesktopDateTimePicker/DesktopDateTimePicker.js +0 -3
- package/DesktopTimePicker/DesktopTimePicker.js +0 -3
- package/MobileDatePicker/MobileDatePicker.js +0 -3
- package/MobileDateTimePicker/MobileDateTimePicker.js +0 -3
- package/MobileTimePicker/MobileTimePicker.js +0 -3
- package/MonthCalendar/MonthCalendar.js +0 -3
- package/MonthCalendar/MonthCalendar.types.d.ts +0 -3
- package/PickersCalendarHeader/PickersCalendarHeader.js +0 -3
- package/PickersCalendarHeader/PickersCalendarHeader.types.d.ts +0 -3
- package/PickersSectionList/PickersSectionList.js +6 -1
- package/PickersTextField/PickersFilledInput/PickersFilledInput.d.ts +11 -0
- package/{internals/components/PickersInput → PickersTextField/PickersFilledInput}/PickersFilledInput.js +98 -25
- package/PickersTextField/PickersFilledInput/index.d.ts +4 -0
- package/PickersTextField/PickersFilledInput/index.js +2 -0
- package/PickersTextField/PickersFilledInput/pickersFilledInputClasses.d.ts +23 -0
- package/PickersTextField/PickersFilledInput/pickersFilledInputClasses.js +8 -0
- package/PickersTextField/PickersInput/PickersInput.d.ts +10 -0
- package/PickersTextField/PickersInput/PickersInput.js +196 -0
- package/{internals/components → PickersTextField}/PickersInput/index.d.ts +2 -2
- package/PickersTextField/PickersInput/index.js +2 -0
- package/PickersTextField/PickersInput/pickersInputClasses.d.ts +22 -0
- package/PickersTextField/PickersInput/pickersInputClasses.js +8 -0
- package/PickersTextField/PickersInputBase/PickersInputBase.d.ts +16 -0
- package/{internals/components/PickersInput/PickersInput.js → PickersTextField/PickersInputBase/PickersInputBase.js} +106 -27
- package/{internals/components/PickersInput/PickersInput.types.d.ts → PickersTextField/PickersInputBase/PickersInputBase.types.d.ts} +3 -13
- package/PickersTextField/PickersInputBase/index.d.ts +4 -0
- package/PickersTextField/PickersInputBase/index.js +2 -0
- package/PickersTextField/PickersInputBase/pickersInputBaseClasses.d.ts +31 -0
- package/PickersTextField/PickersInputBase/pickersInputBaseClasses.js +6 -0
- package/{internals/components/PickersInput → PickersTextField/PickersOutlinedInput}/Outline.d.ts +3 -0
- package/{modern/internals/components/PickersInput → PickersTextField/PickersOutlinedInput}/Outline.js +5 -1
- package/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.d.ts +10 -0
- package/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +190 -0
- package/PickersTextField/PickersOutlinedInput/index.d.ts +4 -0
- package/PickersTextField/PickersOutlinedInput/index.js +2 -0
- package/PickersTextField/PickersOutlinedInput/pickersOutlinedInputClasses.d.ts +22 -0
- package/PickersTextField/PickersOutlinedInput/pickersOutlinedInputClasses.js +8 -0
- package/PickersTextField/PickersTextField.d.ts +3 -0
- package/PickersTextField/PickersTextField.js +258 -0
- package/{internals/components/PickersTextField → PickersTextField}/PickersTextField.types.d.ts +5 -2
- package/PickersTextField/index.d.ts +8 -0
- package/PickersTextField/index.js +6 -0
- package/PickersTextField/package.json +6 -0
- package/README.md +1 -1
- package/StaticDatePicker/StaticDatePicker.js +0 -3
- package/StaticDateTimePicker/StaticDateTimePicker.js +0 -3
- package/StaticTimePicker/StaticTimePicker.js +0 -3
- package/TimePicker/TimePicker.js +0 -3
- package/TimePicker/TimePickerToolbar.js +0 -3
- package/YearCalendar/YearCalendar.js +0 -3
- package/YearCalendar/YearCalendar.types.d.ts +0 -3
- package/index.d.ts +2 -1
- package/index.js +3 -2
- package/internals/hooks/useField/useField.js +6 -4
- package/internals/hooks/useField/useField.types.d.ts +4 -2
- package/internals/hooks/useField/useField.utils.d.ts +19 -9
- package/internals/hooks/useField/useField.utils.js +68 -21
- package/internals/hooks/useField/useFieldCharacterEditing.d.ts +2 -1
- package/internals/hooks/useField/useFieldCharacterEditing.js +12 -8
- package/internals/hooks/useField/useFieldState.d.ts +1 -0
- package/internals/hooks/useField/useFieldState.js +9 -7
- package/internals/models/props/basePickerProps.d.ts +0 -3
- package/internals/models/props/toolbar.d.ts +0 -3
- package/internals/utils/valueManagers.js +2 -2
- package/legacy/AdapterLuxon/AdapterLuxon.js +4 -12
- package/legacy/DatePicker/DatePicker.js +0 -3
- package/legacy/DatePicker/DatePickerToolbar.js +0 -3
- package/legacy/DateTimePicker/DateTimePicker.js +0 -3
- package/legacy/DateTimePicker/DateTimePickerToolbar.js +0 -3
- package/legacy/DesktopDatePicker/DesktopDatePicker.js +0 -3
- package/legacy/DesktopDateTimePicker/DesktopDateTimePicker.js +0 -3
- package/legacy/DesktopTimePicker/DesktopTimePicker.js +0 -3
- package/legacy/MobileDatePicker/MobileDatePicker.js +0 -3
- package/legacy/MobileDateTimePicker/MobileDateTimePicker.js +0 -3
- package/legacy/MobileTimePicker/MobileTimePicker.js +0 -3
- package/legacy/MonthCalendar/MonthCalendar.js +0 -3
- package/legacy/PickersCalendarHeader/PickersCalendarHeader.js +0 -3
- package/legacy/PickersSectionList/PickersSectionList.js +6 -1
- package/legacy/{internals/components/PickersInput → PickersTextField/PickersFilledInput}/PickersFilledInput.js +99 -26
- package/legacy/PickersTextField/PickersFilledInput/index.js +2 -0
- package/legacy/PickersTextField/PickersFilledInput/pickersFilledInputClasses.js +8 -0
- package/legacy/PickersTextField/PickersInput/PickersInput.js +190 -0
- package/legacy/PickersTextField/PickersInput/index.js +2 -0
- package/legacy/PickersTextField/PickersInput/pickersInputClasses.js +8 -0
- package/legacy/{internals/components/PickersInput/PickersInput.js → PickersTextField/PickersInputBase/PickersInputBase.js} +106 -27
- package/legacy/PickersTextField/PickersInputBase/index.js +2 -0
- package/legacy/PickersTextField/PickersInputBase/pickersInputBaseClasses.js +6 -0
- package/legacy/{internals/components/PickersInput → PickersTextField/PickersOutlinedInput}/Outline.js +7 -1
- package/legacy/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +183 -0
- package/legacy/PickersTextField/PickersOutlinedInput/index.js +2 -0
- package/legacy/PickersTextField/PickersOutlinedInput/pickersOutlinedInputClasses.js +8 -0
- package/legacy/{internals/components/PickersTextField → PickersTextField}/PickersTextField.js +128 -8
- package/legacy/PickersTextField/index.js +6 -0
- package/legacy/StaticDatePicker/StaticDatePicker.js +0 -3
- package/legacy/StaticDateTimePicker/StaticDateTimePicker.js +0 -3
- package/legacy/StaticTimePicker/StaticTimePicker.js +0 -3
- package/legacy/TimePicker/TimePicker.js +0 -3
- package/legacy/TimePicker/TimePickerToolbar.js +0 -3
- package/legacy/YearCalendar/YearCalendar.js +0 -3
- package/legacy/index.js +3 -2
- package/legacy/internals/hooks/useField/useField.js +6 -4
- package/legacy/internals/hooks/useField/useField.utils.js +71 -20
- package/legacy/internals/hooks/useField/useFieldCharacterEditing.js +12 -8
- package/legacy/internals/hooks/useField/useFieldState.js +15 -11
- package/legacy/internals/utils/valueManagers.js +2 -2
- package/modern/AdapterLuxon/AdapterLuxon.js +3 -11
- package/modern/DatePicker/DatePicker.js +0 -3
- package/modern/DatePicker/DatePickerToolbar.js +0 -3
- package/modern/DateTimePicker/DateTimePicker.js +0 -3
- package/modern/DateTimePicker/DateTimePickerToolbar.js +0 -3
- package/modern/DesktopDatePicker/DesktopDatePicker.js +0 -3
- package/modern/DesktopDateTimePicker/DesktopDateTimePicker.js +0 -3
- package/modern/DesktopTimePicker/DesktopTimePicker.js +0 -3
- package/modern/MobileDatePicker/MobileDatePicker.js +0 -3
- package/modern/MobileDateTimePicker/MobileDateTimePicker.js +0 -3
- package/modern/MobileTimePicker/MobileTimePicker.js +0 -3
- package/modern/MonthCalendar/MonthCalendar.js +0 -3
- package/modern/PickersCalendarHeader/PickersCalendarHeader.js +0 -3
- package/modern/PickersSectionList/PickersSectionList.js +6 -1
- package/modern/{internals/components/PickersInput → PickersTextField/PickersFilledInput}/PickersFilledInput.js +98 -25
- package/modern/PickersTextField/PickersFilledInput/index.js +2 -0
- package/modern/PickersTextField/PickersFilledInput/pickersFilledInputClasses.js +8 -0
- package/modern/PickersTextField/PickersInput/PickersInput.js +196 -0
- package/modern/PickersTextField/PickersInput/index.js +2 -0
- package/modern/PickersTextField/PickersInput/pickersInputClasses.js +8 -0
- package/modern/{internals/components/PickersInput/PickersInput.js → PickersTextField/PickersInputBase/PickersInputBase.js} +106 -27
- package/modern/PickersTextField/PickersInputBase/index.js +2 -0
- package/modern/PickersTextField/PickersInputBase/pickersInputBaseClasses.js +6 -0
- package/{internals/components/PickersInput → modern/PickersTextField/PickersOutlinedInput}/Outline.js +5 -1
- package/modern/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +190 -0
- package/modern/PickersTextField/PickersOutlinedInput/index.js +2 -0
- package/modern/PickersTextField/PickersOutlinedInput/pickersOutlinedInputClasses.js +8 -0
- package/modern/PickersTextField/PickersTextField.js +258 -0
- package/modern/PickersTextField/index.js +6 -0
- package/modern/StaticDatePicker/StaticDatePicker.js +0 -3
- package/modern/StaticDateTimePicker/StaticDateTimePicker.js +0 -3
- package/modern/StaticTimePicker/StaticTimePicker.js +0 -3
- package/modern/TimePicker/TimePicker.js +0 -3
- package/modern/TimePicker/TimePickerToolbar.js +0 -3
- package/modern/YearCalendar/YearCalendar.js +0 -3
- package/modern/index.js +3 -2
- package/modern/internals/hooks/useField/useField.js +5 -3
- package/modern/internals/hooks/useField/useField.utils.js +68 -21
- package/modern/internals/hooks/useField/useFieldCharacterEditing.js +12 -8
- package/modern/internals/hooks/useField/useFieldState.js +9 -7
- package/modern/internals/utils/valueManagers.js +2 -2
- package/node/AdapterLuxon/AdapterLuxon.js +3 -11
- package/node/DatePicker/DatePicker.js +0 -3
- package/node/DatePicker/DatePickerToolbar.js +0 -3
- package/node/DateTimePicker/DateTimePicker.js +0 -3
- package/node/DateTimePicker/DateTimePickerToolbar.js +0 -3
- package/node/DesktopDatePicker/DesktopDatePicker.js +0 -3
- package/node/DesktopDateTimePicker/DesktopDateTimePicker.js +0 -3
- package/node/DesktopTimePicker/DesktopTimePicker.js +0 -3
- package/node/MobileDatePicker/MobileDatePicker.js +0 -3
- package/node/MobileDateTimePicker/MobileDateTimePicker.js +0 -3
- package/node/MobileTimePicker/MobileTimePicker.js +0 -3
- package/node/MonthCalendar/MonthCalendar.js +0 -3
- package/node/PickersCalendarHeader/PickersCalendarHeader.js +0 -3
- package/node/PickersSectionList/PickersSectionList.js +6 -1
- package/node/{internals/components/PickersInput → PickersTextField/PickersFilledInput}/PickersFilledInput.js +102 -30
- package/node/PickersTextField/PickersFilledInput/index.js +25 -0
- package/node/PickersTextField/PickersFilledInput/pickersFilledInputClasses.js +16 -0
- package/node/PickersTextField/PickersInput/PickersInput.js +204 -0
- package/node/{internals/components → PickersTextField}/PickersInput/index.js +0 -7
- package/node/PickersTextField/PickersInput/pickersInputClasses.js +16 -0
- package/node/{internals/components/PickersInput/PickersInput.js → PickersTextField/PickersInputBase/PickersInputBase.js} +105 -27
- package/node/PickersTextField/PickersInputBase/index.js +25 -0
- package/node/PickersTextField/PickersInputBase/pickersInputBaseClasses.js +14 -0
- package/node/{internals/components/PickersInput → PickersTextField/PickersOutlinedInput}/Outline.js +5 -1
- package/node/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +197 -0
- package/node/PickersTextField/PickersOutlinedInput/index.js +25 -0
- package/node/PickersTextField/PickersOutlinedInput/pickersOutlinedInputClasses.js +16 -0
- package/node/{internals/components/PickersTextField → PickersTextField}/PickersTextField.js +128 -9
- package/node/PickersTextField/index.js +78 -0
- package/node/StaticDatePicker/StaticDatePicker.js +0 -3
- package/node/StaticDateTimePicker/StaticDateTimePicker.js +0 -3
- package/node/StaticTimePicker/StaticTimePicker.js +0 -3
- package/node/TimePicker/TimePicker.js +0 -3
- package/node/TimePicker/TimePickerToolbar.js +0 -3
- package/node/YearCalendar/YearCalendar.js +0 -3
- package/node/index.js +17 -5
- package/node/internals/hooks/useField/useField.js +5 -3
- package/node/internals/hooks/useField/useField.utils.js +73 -22
- package/node/internals/hooks/useField/useFieldCharacterEditing.js +11 -7
- package/node/internals/hooks/useField/useFieldState.js +8 -6
- package/node/internals/utils/valueManagers.js +2 -2
- package/package.json +7 -7
- package/themeAugmentation/components.d.ts +26 -0
- package/themeAugmentation/overrides.d.ts +16 -0
- package/themeAugmentation/props.d.ts +16 -0
- package/internals/components/PickersInput/PickersFilledInput.d.ts +0 -3
- package/internals/components/PickersInput/PickersInput.d.ts +0 -13
- package/internals/components/PickersInput/PickersOutlinedInput.d.ts +0 -3
- package/internals/components/PickersInput/PickersOutlinedInput.js +0 -117
- package/internals/components/PickersInput/PickersStandardInput.d.ts +0 -3
- package/internals/components/PickersInput/PickersStandardInput.js +0 -123
- package/internals/components/PickersInput/index.js +0 -3
- package/internals/components/PickersInput/pickersInputClasses.d.ts +0 -84
- package/internals/components/PickersInput/pickersInputClasses.js +0 -18
- package/internals/components/PickersTextField/PickersTextField.d.ts +0 -2
- package/internals/components/PickersTextField/PickersTextField.js +0 -138
- package/internals/components/PickersTextField/index.d.ts +0 -1
- package/internals/components/PickersTextField/index.js +0 -1
- package/legacy/internals/components/PickersInput/PickersOutlinedInput.js +0 -110
- package/legacy/internals/components/PickersInput/PickersStandardInput.js +0 -117
- package/legacy/internals/components/PickersInput/index.js +0 -3
- package/legacy/internals/components/PickersInput/pickersInputClasses.js +0 -18
- package/legacy/internals/components/PickersTextField/index.js +0 -1
- package/modern/internals/components/PickersInput/PickersOutlinedInput.js +0 -117
- package/modern/internals/components/PickersInput/PickersStandardInput.js +0 -123
- package/modern/internals/components/PickersInput/index.js +0 -3
- package/modern/internals/components/PickersInput/pickersInputClasses.js +0 -18
- package/modern/internals/components/PickersTextField/PickersTextField.js +0 -138
- package/modern/internals/components/PickersTextField/index.js +0 -1
- package/node/internals/components/PickersInput/PickersOutlinedInput.js +0 -125
- package/node/internals/components/PickersInput/PickersStandardInput.js +0 -132
- package/node/internals/components/PickersInput/pickersInputClasses.js +0 -29
- package/node/internals/components/PickersTextField/index.js +0 -12
- /package/{internals/components/PickersInput/PickersInput.types.js → PickersTextField/PickersInputBase/PickersInputBase.types.js} +0 -0
- /package/{internals/components/PickersTextField → PickersTextField}/PickersTextField.types.js +0 -0
- /package/{internals/components/PickersTextField → PickersTextField}/pickersTextFieldClasses.d.ts +0 -0
- /package/{internals/components/PickersTextField → PickersTextField}/pickersTextFieldClasses.js +0 -0
- /package/legacy/{internals/components/PickersInput/PickersInput.types.js → PickersTextField/PickersInputBase/PickersInputBase.types.js} +0 -0
- /package/legacy/{internals/components/PickersTextField → PickersTextField}/PickersTextField.types.js +0 -0
- /package/legacy/{internals/components/PickersTextField → PickersTextField}/pickersTextFieldClasses.js +0 -0
- /package/modern/{internals/components/PickersInput/PickersInput.types.js → PickersTextField/PickersInputBase/PickersInputBase.types.js} +0 -0
- /package/modern/{internals/components/PickersTextField → PickersTextField}/PickersTextField.types.js +0 -0
- /package/modern/{internals/components/PickersTextField → PickersTextField}/pickersTextFieldClasses.js +0 -0
- /package/node/{internals/components/PickersInput/PickersInput.types.js → PickersTextField/PickersInputBase/PickersInputBase.types.js} +0 -0
- /package/node/{internals/components/PickersTextField → PickersTextField}/PickersTextField.types.js +0 -0
- /package/node/{internals/components/PickersTextField → PickersTextField}/pickersTextFieldClasses.js +0 -0
|
@@ -4,25 +4,26 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.
|
|
7
|
+
exports.PickersInputBaseSectionsContainer = exports.PickersInputBaseRoot = exports.PickersInputBase = void 0;
|
|
8
8
|
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
10
|
var React = _interopRequireWildcard(require("react"));
|
|
11
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
12
|
var _FormControl = require("@mui/material/FormControl");
|
|
12
13
|
var _styles = require("@mui/material/styles");
|
|
13
14
|
var _useForkRef = _interopRequireDefault(require("@mui/utils/useForkRef"));
|
|
14
15
|
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
15
16
|
var _capitalize = _interopRequireDefault(require("@mui/utils/capitalize"));
|
|
16
17
|
var _visuallyHidden = _interopRequireDefault(require("@mui/utils/visuallyHidden"));
|
|
17
|
-
var
|
|
18
|
-
var _PickersSectionList = require("
|
|
18
|
+
var _pickersInputBaseClasses = require("./pickersInputBaseClasses");
|
|
19
|
+
var _PickersSectionList = require("../../PickersSectionList");
|
|
19
20
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
20
21
|
const _excluded = ["elements", "areAllSectionsEmpty", "defaultValue", "label", "value", "onChange", "id", "autoFocus", "endAdornment", "startAdornment", "renderSuffix", "slots", "contentEditable", "tabIndex", "onInput", "onPaste", "onKeyDown", "fullWidth", "inputProps", "inputRef", "sectionListRef"];
|
|
21
22
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
22
23
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
23
24
|
const round = value => Math.round(value * 1e5) / 1e5;
|
|
24
|
-
const
|
|
25
|
-
name: '
|
|
25
|
+
const PickersInputBaseRoot = exports.PickersInputBaseRoot = (0, _styles.styled)('div', {
|
|
26
|
+
name: 'MuiPickersInputBase',
|
|
26
27
|
slot: 'Root',
|
|
27
28
|
overridesResolver: (props, styles) => styles.root
|
|
28
29
|
})(({
|
|
@@ -42,8 +43,8 @@ const PickersInputRoot = exports.PickersInputRoot = (0, _styles.styled)('div', {
|
|
|
42
43
|
}, ownerState.fullWidth && {
|
|
43
44
|
width: '100%'
|
|
44
45
|
}));
|
|
45
|
-
const
|
|
46
|
-
name: '
|
|
46
|
+
const PickersInputBaseSectionsContainer = exports.PickersInputBaseSectionsContainer = (0, _styles.styled)(_PickersSectionList.Unstable_PickersSectionListRoot, {
|
|
47
|
+
name: 'MuiPickersInputBase',
|
|
47
48
|
slot: 'SectionsContainer',
|
|
48
49
|
overridesResolver: (props, styles) => styles.sectionsContainer
|
|
49
50
|
})(({
|
|
@@ -76,8 +77,8 @@ const PickersInputSectionsContainer = exports.PickersInputSectionsContainer = (0
|
|
|
76
77
|
}), ownerState.label != null && {
|
|
77
78
|
opacity: 0
|
|
78
79
|
})));
|
|
79
|
-
const
|
|
80
|
-
name: '
|
|
80
|
+
const PickersInputBaseSection = (0, _styles.styled)(_PickersSectionList.Unstable_PickersSectionListSection, {
|
|
81
|
+
name: 'MuiPickersInputBase',
|
|
81
82
|
slot: 'Section',
|
|
82
83
|
overridesResolver: (props, styles) => styles.section
|
|
83
84
|
})(({
|
|
@@ -90,8 +91,8 @@ const PickersInputSection = (0, _styles.styled)(_PickersSectionList.Unstable_Pic
|
|
|
90
91
|
// 23px
|
|
91
92
|
display: 'flex'
|
|
92
93
|
}));
|
|
93
|
-
const
|
|
94
|
-
name: '
|
|
94
|
+
const PickersInputBaseSectionContent = (0, _styles.styled)(_PickersSectionList.Unstable_PickersSectionListSectionContent, {
|
|
95
|
+
name: 'MuiPickersInputBase',
|
|
95
96
|
slot: 'SectionContent',
|
|
96
97
|
overridesResolver: (props, styles) => styles.content
|
|
97
98
|
})(({
|
|
@@ -104,16 +105,16 @@ const PickersInputSectionContent = (0, _styles.styled)(_PickersSectionList.Unsta
|
|
|
104
105
|
width: 'fit-content',
|
|
105
106
|
outline: 'none'
|
|
106
107
|
}));
|
|
107
|
-
const
|
|
108
|
-
name: '
|
|
108
|
+
const PickersInputBaseSectionSeparator = (0, _styles.styled)(_PickersSectionList.Unstable_PickersSectionListSectionSeparator, {
|
|
109
|
+
name: 'MuiPickersInputBase',
|
|
109
110
|
slot: 'Separator',
|
|
110
111
|
overridesResolver: (props, styles) => styles.separator
|
|
111
112
|
})(() => ({
|
|
112
113
|
whiteSpace: 'pre',
|
|
113
114
|
letterSpacing: 'inherit'
|
|
114
115
|
}));
|
|
115
|
-
const
|
|
116
|
-
name: '
|
|
116
|
+
const PickersInputBaseInput = (0, _styles.styled)('input', {
|
|
117
|
+
name: 'MuiPickersInputBase',
|
|
117
118
|
slot: 'Input',
|
|
118
119
|
overridesResolver: (props, styles) => styles.hiddenInput
|
|
119
120
|
})((0, _extends2.default)({}, _visuallyHidden.default));
|
|
@@ -139,9 +140,16 @@ const useUtilityClasses = ownerState => {
|
|
|
139
140
|
sectionBefore: ['sectionBefore'],
|
|
140
141
|
sectionAfter: ['sectionAfter']
|
|
141
142
|
};
|
|
142
|
-
return (0, _composeClasses.default)(slots,
|
|
143
|
+
return (0, _composeClasses.default)(slots, _pickersInputBaseClasses.getPickersInputBaseUtilityClass, classes);
|
|
143
144
|
};
|
|
144
|
-
|
|
145
|
+
/**
|
|
146
|
+
* @ignore - internal component.
|
|
147
|
+
*/
|
|
148
|
+
const PickersInputBase = exports.PickersInputBase = /*#__PURE__*/React.forwardRef(function PickersInputBase(inProps, ref) {
|
|
149
|
+
const props = (0, _styles.useThemeProps)({
|
|
150
|
+
props: inProps,
|
|
151
|
+
name: 'MuiPickersInputBase'
|
|
152
|
+
});
|
|
145
153
|
const {
|
|
146
154
|
elements,
|
|
147
155
|
areAllSectionsEmpty,
|
|
@@ -167,7 +175,7 @@ const PickersInput = exports.PickersInput = /*#__PURE__*/React.forwardRef(functi
|
|
|
167
175
|
const handleInputRef = (0, _useForkRef.default)(inputProps?.ref, inputRef);
|
|
168
176
|
const muiFormControl = (0, _FormControl.useFormControl)();
|
|
169
177
|
if (!muiFormControl) {
|
|
170
|
-
throw new Error('MUI X:
|
|
178
|
+
throw new Error('MUI X: PickersInputBase should always be used inside a PickersTextField component');
|
|
171
179
|
}
|
|
172
180
|
const handleInputFocus = event => {
|
|
173
181
|
// Fix a bug with IE11 where the focus/blur events are triggered
|
|
@@ -195,8 +203,8 @@ const PickersInput = exports.PickersInput = /*#__PURE__*/React.forwardRef(functi
|
|
|
195
203
|
}, [muiFormControl, areAllSectionsEmpty]);
|
|
196
204
|
const ownerState = (0, _extends2.default)({}, props, muiFormControl);
|
|
197
205
|
const classes = useUtilityClasses(ownerState);
|
|
198
|
-
const InputRoot = slots?.root ||
|
|
199
|
-
const InputSectionsContainer = slots?.input ||
|
|
206
|
+
const InputRoot = slots?.root || PickersInputBaseRoot;
|
|
207
|
+
const InputSectionsContainer = slots?.input || PickersInputBaseSectionsContainer;
|
|
200
208
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(InputRoot, (0, _extends2.default)({}, other, {
|
|
201
209
|
className: classes.root,
|
|
202
210
|
ownerState: ownerState,
|
|
@@ -215,24 +223,24 @@ const PickersInput = exports.PickersInput = /*#__PURE__*/React.forwardRef(functi
|
|
|
215
223
|
onKeyDown: onKeyDown,
|
|
216
224
|
slots: {
|
|
217
225
|
root: InputSectionsContainer,
|
|
218
|
-
section:
|
|
219
|
-
sectionContent:
|
|
220
|
-
sectionSeparator:
|
|
226
|
+
section: PickersInputBaseSection,
|
|
227
|
+
sectionContent: PickersInputBaseSectionContent,
|
|
228
|
+
sectionSeparator: PickersInputBaseSectionSeparator
|
|
221
229
|
},
|
|
222
230
|
slotProps: {
|
|
223
231
|
root: {
|
|
224
232
|
ownerState
|
|
225
233
|
},
|
|
226
234
|
sectionContent: {
|
|
227
|
-
className:
|
|
235
|
+
className: _pickersInputBaseClasses.pickersInputBaseClasses.sectionContent
|
|
228
236
|
},
|
|
229
237
|
sectionSeparator: ({
|
|
230
238
|
position
|
|
231
239
|
}) => ({
|
|
232
|
-
className: position === 'before' ?
|
|
240
|
+
className: position === 'before' ? _pickersInputBaseClasses.pickersInputBaseClasses.sectionBefore : _pickersInputBaseClasses.pickersInputBaseClasses.sectionAfter
|
|
233
241
|
})
|
|
234
242
|
}
|
|
235
|
-
}), endAdornment, renderSuffix ? renderSuffix((0, _extends2.default)({}, muiFormControl)) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
243
|
+
}), endAdornment, renderSuffix ? renderSuffix((0, _extends2.default)({}, muiFormControl)) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(PickersInputBaseInput, (0, _extends2.default)({
|
|
236
244
|
className: classes.input,
|
|
237
245
|
value: value,
|
|
238
246
|
onChange: onChange,
|
|
@@ -244,4 +252,74 @@ const PickersInput = exports.PickersInput = /*#__PURE__*/React.forwardRef(functi
|
|
|
244
252
|
}))]
|
|
245
253
|
}));
|
|
246
254
|
});
|
|
247
|
-
|
|
255
|
+
process.env.NODE_ENV !== "production" ? PickersInputBase.propTypes = {
|
|
256
|
+
// ----------------------------- Warning --------------------------------
|
|
257
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
258
|
+
// | To update them edit the TypeScript types and run "yarn proptypes" |
|
|
259
|
+
// ----------------------------------------------------------------------
|
|
260
|
+
/**
|
|
261
|
+
* Is `true` if the current values equals the empty value.
|
|
262
|
+
* For a single item value, it means that `value === null`
|
|
263
|
+
* For a range value, it means that `value === [null, null]`
|
|
264
|
+
*/
|
|
265
|
+
areAllSectionsEmpty: _propTypes.default.bool.isRequired,
|
|
266
|
+
className: _propTypes.default.string,
|
|
267
|
+
/**
|
|
268
|
+
* The component used for the root node.
|
|
269
|
+
* Either a string to use a HTML element or a component.
|
|
270
|
+
*/
|
|
271
|
+
component: _propTypes.default.elementType,
|
|
272
|
+
/**
|
|
273
|
+
* If true, the whole element is editable.
|
|
274
|
+
* Useful when all the sections are selected.
|
|
275
|
+
*/
|
|
276
|
+
contentEditable: _propTypes.default.bool.isRequired,
|
|
277
|
+
/**
|
|
278
|
+
* The elements to render.
|
|
279
|
+
* Each element contains the prop to edit a section of the value.
|
|
280
|
+
*/
|
|
281
|
+
elements: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
282
|
+
after: _propTypes.default.object.isRequired,
|
|
283
|
+
before: _propTypes.default.object.isRequired,
|
|
284
|
+
container: _propTypes.default.object.isRequired,
|
|
285
|
+
content: _propTypes.default.object.isRequired
|
|
286
|
+
})).isRequired,
|
|
287
|
+
endAdornment: _propTypes.default.node,
|
|
288
|
+
fullWidth: _propTypes.default.bool,
|
|
289
|
+
id: _propTypes.default.string,
|
|
290
|
+
inputProps: _propTypes.default.object,
|
|
291
|
+
inputRef: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.shape({
|
|
292
|
+
current: _propTypes.default.object
|
|
293
|
+
})]),
|
|
294
|
+
label: _propTypes.default.node,
|
|
295
|
+
margin: _propTypes.default.oneOf(['dense', 'none', 'normal']),
|
|
296
|
+
onChange: _propTypes.default.func.isRequired,
|
|
297
|
+
onClick: _propTypes.default.func.isRequired,
|
|
298
|
+
onInput: _propTypes.default.func.isRequired,
|
|
299
|
+
onKeyDown: _propTypes.default.func.isRequired,
|
|
300
|
+
onPaste: _propTypes.default.func.isRequired,
|
|
301
|
+
ownerState: _propTypes.default.any,
|
|
302
|
+
readOnly: _propTypes.default.bool,
|
|
303
|
+
renderSuffix: _propTypes.default.func,
|
|
304
|
+
sectionListRef: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.shape({
|
|
305
|
+
current: _propTypes.default.shape({
|
|
306
|
+
getRoot: _propTypes.default.func.isRequired,
|
|
307
|
+
getSectionContainer: _propTypes.default.func.isRequired,
|
|
308
|
+
getSectionContent: _propTypes.default.func.isRequired,
|
|
309
|
+
getSectionIndexFromDOMElement: _propTypes.default.func.isRequired
|
|
310
|
+
})
|
|
311
|
+
})]),
|
|
312
|
+
/**
|
|
313
|
+
* The components used for each slot inside.
|
|
314
|
+
*
|
|
315
|
+
* @default {}
|
|
316
|
+
*/
|
|
317
|
+
slots: _propTypes.default.object,
|
|
318
|
+
startAdornment: _propTypes.default.node,
|
|
319
|
+
style: _propTypes.default.object,
|
|
320
|
+
/**
|
|
321
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
322
|
+
*/
|
|
323
|
+
sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object]),
|
|
324
|
+
value: _propTypes.default.string.isRequired
|
|
325
|
+
} : void 0;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "PickersInputBase", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _PickersInputBase.PickersInputBase;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "getPickersInputBaseUtilityClass", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _pickersInputBaseClasses.getPickersInputBaseUtilityClass;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "pickersInputBaseClasses", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return _pickersInputBaseClasses.pickersInputBaseClasses;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
var _PickersInputBase = require("./PickersInputBase");
|
|
25
|
+
var _pickersInputBaseClasses = require("./pickersInputBaseClasses");
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.getPickersInputBaseUtilityClass = getPickersInputBaseUtilityClass;
|
|
8
|
+
exports.pickersInputBaseClasses = void 0;
|
|
9
|
+
var _generateUtilityClass = _interopRequireDefault(require("@mui/utils/generateUtilityClass"));
|
|
10
|
+
var _generateUtilityClasses = _interopRequireDefault(require("@mui/utils/generateUtilityClasses"));
|
|
11
|
+
function getPickersInputBaseUtilityClass(slot) {
|
|
12
|
+
return (0, _generateUtilityClass.default)('MuiPickersInputBase', slot);
|
|
13
|
+
}
|
|
14
|
+
const pickersInputBaseClasses = exports.pickersInputBaseClasses = (0, _generateUtilityClasses.default)('MuiPickersInputBase', ['root', 'focused', 'disabled', 'error', 'notchedOutline', 'sectionContent', 'sectionBefore', 'sectionAfter', 'adornedStart', 'adornedEnd', 'input']);
|
package/node/{internals/components/PickersInput → PickersTextField/PickersOutlinedInput}/Outline.js
RENAMED
|
@@ -10,7 +10,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
10
10
|
var React = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _styles = require("@mui/material/styles");
|
|
12
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
-
const _excluded = ["children", "className", "label"];
|
|
13
|
+
const _excluded = ["children", "className", "label", "notched", "shrink"];
|
|
14
14
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
15
15
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
16
16
|
const OutlineRoot = (0, _styles.styled)('fieldset', {
|
|
@@ -91,6 +91,10 @@ const OutlineLegend = (0, _styles.styled)('legend')(({
|
|
|
91
91
|
delay: 50
|
|
92
92
|
})
|
|
93
93
|
})));
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* @ignore - internal component.
|
|
97
|
+
*/
|
|
94
98
|
function Outline(props) {
|
|
95
99
|
const {
|
|
96
100
|
className,
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.PickersOutlinedInput = void 0;
|
|
8
|
+
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
9
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
|
+
var React = _interopRequireWildcard(require("react"));
|
|
11
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
12
|
+
var _FormControl = require("@mui/material/FormControl");
|
|
13
|
+
var _styles = require("@mui/material/styles");
|
|
14
|
+
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
15
|
+
var _pickersOutlinedInputClasses = require("./pickersOutlinedInputClasses");
|
|
16
|
+
var _Outline = _interopRequireDefault(require("./Outline"));
|
|
17
|
+
var _PickersInputBase = require("../PickersInputBase");
|
|
18
|
+
var _PickersInputBase2 = require("../PickersInputBase/PickersInputBase");
|
|
19
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
20
|
+
const _excluded = ["label", "autoFocus", "ownerState", "notched"];
|
|
21
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
22
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
23
|
+
const PickersOutlinedInputRoot = (0, _styles.styled)(_PickersInputBase2.PickersInputBaseRoot, {
|
|
24
|
+
name: 'MuiPickersOutlinedInput',
|
|
25
|
+
slot: 'Root',
|
|
26
|
+
overridesResolver: (props, styles) => styles.root
|
|
27
|
+
})(({
|
|
28
|
+
theme,
|
|
29
|
+
ownerState
|
|
30
|
+
}) => {
|
|
31
|
+
const borderColor = theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)';
|
|
32
|
+
return {
|
|
33
|
+
padding: '0 14px',
|
|
34
|
+
borderRadius: (theme.vars || theme).shape.borderRadius,
|
|
35
|
+
[`&:hover .${_pickersOutlinedInputClasses.pickersOutlinedInputClasses.notchedOutline}`]: {
|
|
36
|
+
borderColor: (theme.vars || theme).palette.text.primary
|
|
37
|
+
},
|
|
38
|
+
// Reset on touch devices, it doesn't add specificity
|
|
39
|
+
'@media (hover: none)': {
|
|
40
|
+
[`&:hover .${_pickersOutlinedInputClasses.pickersOutlinedInputClasses.notchedOutline}`]: {
|
|
41
|
+
borderColor: theme.vars ? `rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : borderColor
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
[`&.${_pickersOutlinedInputClasses.pickersOutlinedInputClasses.focused} .${_pickersOutlinedInputClasses.pickersOutlinedInputClasses.notchedOutline}`]: {
|
|
45
|
+
borderStyle: 'solid',
|
|
46
|
+
// @ts-ignore
|
|
47
|
+
borderColor: (theme.vars || theme).palette[ownerState.color].main,
|
|
48
|
+
borderWidth: 2
|
|
49
|
+
},
|
|
50
|
+
[`&.${_pickersOutlinedInputClasses.pickersOutlinedInputClasses.disabled}`]: {
|
|
51
|
+
[`& .${_pickersOutlinedInputClasses.pickersOutlinedInputClasses.notchedOutline}`]: {
|
|
52
|
+
borderColor: (theme.vars || theme).palette.action.disabled
|
|
53
|
+
},
|
|
54
|
+
'*': {
|
|
55
|
+
color: (theme.vars || theme).palette.action.disabled
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
[`&.${_pickersOutlinedInputClasses.pickersOutlinedInputClasses.error} .${_pickersOutlinedInputClasses.pickersOutlinedInputClasses.notchedOutline}`]: {
|
|
59
|
+
borderColor: (theme.vars || theme).palette.error.main
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
});
|
|
63
|
+
const PickersOutlinedInputSectionsContainer = (0, _styles.styled)(_PickersInputBase2.PickersInputBaseSectionsContainer, {
|
|
64
|
+
name: 'MuiPickersOutlinedInput',
|
|
65
|
+
slot: 'SectionsContainer',
|
|
66
|
+
overridesResolver: (props, styles) => styles.sectionsContainer
|
|
67
|
+
})(({
|
|
68
|
+
ownerState
|
|
69
|
+
}) => (0, _extends2.default)({
|
|
70
|
+
padding: '16.5px 0'
|
|
71
|
+
}, ownerState.size === 'small' && {
|
|
72
|
+
padding: '8.5px 0'
|
|
73
|
+
}));
|
|
74
|
+
const useUtilityClasses = ownerState => {
|
|
75
|
+
const {
|
|
76
|
+
classes
|
|
77
|
+
} = ownerState;
|
|
78
|
+
const slots = {
|
|
79
|
+
root: ['root'],
|
|
80
|
+
notchedOutline: ['notchedOutline'],
|
|
81
|
+
input: ['input']
|
|
82
|
+
};
|
|
83
|
+
const composedClasses = (0, _composeClasses.default)(slots, _pickersOutlinedInputClasses.getPickersOutlinedInputUtilityClass, classes);
|
|
84
|
+
return (0, _extends2.default)({}, classes, composedClasses);
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* @ignore - internal component.
|
|
88
|
+
*/
|
|
89
|
+
const PickersOutlinedInput = exports.PickersOutlinedInput = /*#__PURE__*/React.forwardRef(function PickersOutlinedInput(inProps, ref) {
|
|
90
|
+
const props = (0, _styles.useThemeProps)({
|
|
91
|
+
props: inProps,
|
|
92
|
+
name: 'MuiPickersOutlinedInput'
|
|
93
|
+
});
|
|
94
|
+
const {
|
|
95
|
+
label,
|
|
96
|
+
ownerState: ownerStateProp,
|
|
97
|
+
notched
|
|
98
|
+
} = props,
|
|
99
|
+
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
100
|
+
const muiFormControl = (0, _FormControl.useFormControl)();
|
|
101
|
+
const ownerState = (0, _extends2.default)({}, props, ownerStateProp, muiFormControl, {
|
|
102
|
+
color: muiFormControl?.color || 'primary'
|
|
103
|
+
});
|
|
104
|
+
const classes = useUtilityClasses(ownerState);
|
|
105
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_PickersInputBase.PickersInputBase, (0, _extends2.default)({
|
|
106
|
+
slots: {
|
|
107
|
+
root: PickersOutlinedInputRoot,
|
|
108
|
+
input: PickersOutlinedInputSectionsContainer
|
|
109
|
+
},
|
|
110
|
+
renderSuffix: state => /*#__PURE__*/(0, _jsxRuntime.jsx)(_Outline.default, {
|
|
111
|
+
shrink: Boolean(notched || state.adornedStart || state.focused || state.filled),
|
|
112
|
+
notched: Boolean(notched || state.adornedStart || state.focused || state.filled),
|
|
113
|
+
className: classes.notchedOutline,
|
|
114
|
+
label: label != null && label !== '' && muiFormControl?.required ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
|
|
115
|
+
children: [label, "\u2009", '*']
|
|
116
|
+
}) : label,
|
|
117
|
+
ownerState: ownerState
|
|
118
|
+
})
|
|
119
|
+
}, other, {
|
|
120
|
+
label: label,
|
|
121
|
+
classes: classes,
|
|
122
|
+
ref: ref
|
|
123
|
+
}));
|
|
124
|
+
});
|
|
125
|
+
process.env.NODE_ENV !== "production" ? PickersOutlinedInput.propTypes = {
|
|
126
|
+
// ----------------------------- Warning --------------------------------
|
|
127
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
128
|
+
// | To update them edit the TypeScript types and run "yarn proptypes" |
|
|
129
|
+
// ----------------------------------------------------------------------
|
|
130
|
+
/**
|
|
131
|
+
* Is `true` if the current values equals the empty value.
|
|
132
|
+
* For a single item value, it means that `value === null`
|
|
133
|
+
* For a range value, it means that `value === [null, null]`
|
|
134
|
+
*/
|
|
135
|
+
areAllSectionsEmpty: _propTypes.default.bool.isRequired,
|
|
136
|
+
className: _propTypes.default.string,
|
|
137
|
+
/**
|
|
138
|
+
* The component used for the root node.
|
|
139
|
+
* Either a string to use a HTML element or a component.
|
|
140
|
+
*/
|
|
141
|
+
component: _propTypes.default.elementType,
|
|
142
|
+
/**
|
|
143
|
+
* If true, the whole element is editable.
|
|
144
|
+
* Useful when all the sections are selected.
|
|
145
|
+
*/
|
|
146
|
+
contentEditable: _propTypes.default.bool.isRequired,
|
|
147
|
+
/**
|
|
148
|
+
* The elements to render.
|
|
149
|
+
* Each element contains the prop to edit a section of the value.
|
|
150
|
+
*/
|
|
151
|
+
elements: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
152
|
+
after: _propTypes.default.object.isRequired,
|
|
153
|
+
before: _propTypes.default.object.isRequired,
|
|
154
|
+
container: _propTypes.default.object.isRequired,
|
|
155
|
+
content: _propTypes.default.object.isRequired
|
|
156
|
+
})).isRequired,
|
|
157
|
+
endAdornment: _propTypes.default.node,
|
|
158
|
+
fullWidth: _propTypes.default.bool,
|
|
159
|
+
id: _propTypes.default.string,
|
|
160
|
+
inputProps: _propTypes.default.object,
|
|
161
|
+
inputRef: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.shape({
|
|
162
|
+
current: _propTypes.default.object
|
|
163
|
+
})]),
|
|
164
|
+
label: _propTypes.default.node,
|
|
165
|
+
margin: _propTypes.default.oneOf(['dense', 'none', 'normal']),
|
|
166
|
+
notched: _propTypes.default.bool,
|
|
167
|
+
onChange: _propTypes.default.func.isRequired,
|
|
168
|
+
onClick: _propTypes.default.func.isRequired,
|
|
169
|
+
onInput: _propTypes.default.func.isRequired,
|
|
170
|
+
onKeyDown: _propTypes.default.func.isRequired,
|
|
171
|
+
onPaste: _propTypes.default.func.isRequired,
|
|
172
|
+
ownerState: _propTypes.default.any,
|
|
173
|
+
readOnly: _propTypes.default.bool,
|
|
174
|
+
renderSuffix: _propTypes.default.func,
|
|
175
|
+
sectionListRef: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.shape({
|
|
176
|
+
current: _propTypes.default.shape({
|
|
177
|
+
getRoot: _propTypes.default.func.isRequired,
|
|
178
|
+
getSectionContainer: _propTypes.default.func.isRequired,
|
|
179
|
+
getSectionContent: _propTypes.default.func.isRequired,
|
|
180
|
+
getSectionIndexFromDOMElement: _propTypes.default.func.isRequired
|
|
181
|
+
})
|
|
182
|
+
})]),
|
|
183
|
+
/**
|
|
184
|
+
* The components used for each slot inside.
|
|
185
|
+
*
|
|
186
|
+
* @default {}
|
|
187
|
+
*/
|
|
188
|
+
slots: _propTypes.default.object,
|
|
189
|
+
startAdornment: _propTypes.default.node,
|
|
190
|
+
style: _propTypes.default.object,
|
|
191
|
+
/**
|
|
192
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
193
|
+
*/
|
|
194
|
+
sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object]),
|
|
195
|
+
value: _propTypes.default.string.isRequired
|
|
196
|
+
} : void 0;
|
|
197
|
+
PickersOutlinedInput.muiName = 'Input';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "PickersOutlinedInput", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _PickersOutlinedInput.PickersOutlinedInput;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "getPickersOutlinedInputUtilityClass", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _pickersOutlinedInputClasses.getPickersOutlinedInputUtilityClass;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "pickersOutlinedInputClasses", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return _pickersOutlinedInputClasses.pickersOutlinedInputClasses;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
var _PickersOutlinedInput = require("./PickersOutlinedInput");
|
|
25
|
+
var _pickersOutlinedInputClasses = require("./pickersOutlinedInputClasses");
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.getPickersOutlinedInputUtilityClass = getPickersOutlinedInputUtilityClass;
|
|
8
|
+
exports.pickersOutlinedInputClasses = void 0;
|
|
9
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
|
+
var _generateUtilityClasses = _interopRequireDefault(require("@mui/utils/generateUtilityClasses"));
|
|
11
|
+
var _generateUtilityClass = _interopRequireDefault(require("@mui/utils/generateUtilityClass"));
|
|
12
|
+
var _PickersInputBase = require("../PickersInputBase");
|
|
13
|
+
function getPickersOutlinedInputUtilityClass(slot) {
|
|
14
|
+
return (0, _generateUtilityClass.default)('MuiPickersOutlinedInput', slot);
|
|
15
|
+
}
|
|
16
|
+
const pickersOutlinedInputClasses = exports.pickersOutlinedInputClasses = (0, _extends2.default)({}, _PickersInputBase.pickersInputBaseClasses, (0, _generateUtilityClasses.default)('MuiPickersOutlinedInput', ['root', 'notchedOutline', 'input']));
|