@mui/x-date-pickers-pro 8.5.0 → 8.5.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 +204 -0
- package/DateRangeCalendar/DateRangeCalendar.js +3 -2
- package/DateRangePickerDay/DateRangePickerDay.js +1 -1
- package/DateRangePickerDay2/DateRangePickerDay2.d.ts +7 -0
- package/DateRangePickerDay2/DateRangePickerDay2.js +603 -0
- package/DateRangePickerDay2/DateRangePickerDay2.types.d.ts +92 -0
- package/DateRangePickerDay2/DateRangePickerDay2.types.js +5 -0
- package/DateRangePickerDay2/dateRangePickerDay2Classes.d.ts +29 -0
- package/DateRangePickerDay2/dateRangePickerDay2Classes.js +14 -0
- package/DateRangePickerDay2/index.d.ts +4 -0
- package/DateRangePickerDay2/index.js +25 -0
- package/SingleInputDateRangeField/SingleInputDateRangeField.js +1 -1
- package/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +1 -1
- package/SingleInputTimeRangeField/SingleInputTimeRangeField.js +1 -1
- package/esm/DateRangeCalendar/DateRangeCalendar.js +3 -2
- package/esm/DateRangePickerDay/DateRangePickerDay.js +1 -1
- package/esm/DateRangePickerDay2/DateRangePickerDay2.d.ts +7 -0
- package/esm/DateRangePickerDay2/DateRangePickerDay2.js +595 -0
- package/esm/DateRangePickerDay2/DateRangePickerDay2.types.d.ts +92 -0
- package/esm/DateRangePickerDay2/DateRangePickerDay2.types.js +1 -0
- package/esm/DateRangePickerDay2/dateRangePickerDay2Classes.d.ts +29 -0
- package/esm/DateRangePickerDay2/dateRangePickerDay2Classes.js +6 -0
- package/esm/DateRangePickerDay2/index.d.ts +4 -0
- package/esm/DateRangePickerDay2/index.js +2 -0
- package/esm/SingleInputDateRangeField/SingleInputDateRangeField.js +1 -1
- package/esm/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +1 -1
- package/esm/SingleInputTimeRangeField/SingleInputTimeRangeField.js +1 -1
- package/esm/index.d.ts +1 -0
- package/esm/index.js +2 -1
- package/esm/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.js +1 -1
- package/esm/internals/hooks/useMobileRangePicker/useMobileRangePicker.js +1 -1
- package/esm/themeAugmentation/components.d.ts +4 -0
- package/esm/themeAugmentation/overrides.d.ts +2 -0
- package/esm/themeAugmentation/props.d.ts +2 -0
- package/index.d.ts +1 -0
- package/index.js +12 -1
- package/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.js +1 -1
- package/internals/hooks/useMobileRangePicker/useMobileRangePicker.js +1 -1
- package/package.json +6 -6
- package/themeAugmentation/components.d.ts +4 -0
- package/themeAugmentation/overrides.d.ts +2 -0
- package/themeAugmentation/props.d.ts +2 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export interface DateRangePickerDay2Classes {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element if `outsideCurrentMonth=true` and `showDaysOutsideCurrentMonth=true`. */
|
|
5
|
+
dayOutsideMonth: string;
|
|
6
|
+
/** Styles applied to the root element if `outsideCurrentMonth=true` and `showDaysOutsideCurrentMonth=false`. */
|
|
7
|
+
fillerCell: string;
|
|
8
|
+
/** Styles applied to the root element if `disableHighlightToday=false` and `today=true`. */
|
|
9
|
+
today: string;
|
|
10
|
+
/** State class applied to the root element if `disabled=true`. */
|
|
11
|
+
disabled: string;
|
|
12
|
+
/** State class applied to the root element if `selected=true`. */
|
|
13
|
+
selected: string;
|
|
14
|
+
previewStart: string;
|
|
15
|
+
previewEnd: string;
|
|
16
|
+
insidePreviewing: string;
|
|
17
|
+
selectionStart: string;
|
|
18
|
+
selectionEnd: string;
|
|
19
|
+
insideSelection: string;
|
|
20
|
+
startOfWeek: string;
|
|
21
|
+
endOfWeek: string;
|
|
22
|
+
startOfMonth: string;
|
|
23
|
+
endOfMonth: string;
|
|
24
|
+
previewed: string;
|
|
25
|
+
draggable: string;
|
|
26
|
+
}
|
|
27
|
+
export type DateRangePickerDay2ClassKey = keyof DateRangePickerDay2Classes;
|
|
28
|
+
export declare function getDateRangePickerDay2UtilityClass(slot: string): string;
|
|
29
|
+
export declare const dateRangePickerDay2Classes: Record<keyof DateRangePickerDay2Classes, string>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.dateRangePickerDay2Classes = void 0;
|
|
8
|
+
exports.getDateRangePickerDay2UtilityClass = getDateRangePickerDay2UtilityClass;
|
|
9
|
+
var _generateUtilityClass = _interopRequireDefault(require("@mui/utils/generateUtilityClass"));
|
|
10
|
+
var _generateUtilityClasses = _interopRequireDefault(require("@mui/utils/generateUtilityClasses"));
|
|
11
|
+
function getDateRangePickerDay2UtilityClass(slot) {
|
|
12
|
+
return (0, _generateUtilityClass.default)('MuiDateRangePickerDay2', slot);
|
|
13
|
+
}
|
|
14
|
+
const dateRangePickerDay2Classes = exports.dateRangePickerDay2Classes = (0, _generateUtilityClasses.default)('MuiDateRangePickerDay2', ['root', 'dayOutsideMonth', 'today', 'disabled', 'fillerCell', 'previewStart', 'previewEnd', 'insidePreviewing', 'selectionStart', 'selectionEnd', 'insideSelection', 'startOfWeek', 'endOfWeek', 'startOfMonth', 'endOfMonth', 'previewed', 'selected', 'draggable']);
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { DateRangePickerDay2 } from "./DateRangePickerDay2.js";
|
|
2
|
+
export type { DateRangePickerDay2Props, DateRangePickerDay2OwnerState } from "./DateRangePickerDay2.types.js";
|
|
3
|
+
export { getDateRangePickerDay2UtilityClass, dateRangePickerDay2Classes } from "./dateRangePickerDay2Classes.js";
|
|
4
|
+
export type { DateRangePickerDay2ClassKey } from "./dateRangePickerDay2Classes.js";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "DateRangePickerDay2", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _DateRangePickerDay.DateRangePickerDay2;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "dateRangePickerDay2Classes", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _dateRangePickerDay2Classes.dateRangePickerDay2Classes;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "getDateRangePickerDay2UtilityClass", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return _dateRangePickerDay2Classes.getDateRangePickerDay2UtilityClass;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
var _DateRangePickerDay = require("./DateRangePickerDay2");
|
|
25
|
+
var _dateRangePickerDay2Classes = require("./dateRangePickerDay2Classes");
|
|
@@ -158,7 +158,7 @@ process.env.NODE_ENV !== "production" ? SingleInputDateRangeField.propTypes = {
|
|
|
158
158
|
*/
|
|
159
159
|
InputLabelProps: _propTypes.default.object,
|
|
160
160
|
/**
|
|
161
|
-
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/
|
|
161
|
+
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.
|
|
162
162
|
* @deprecated Use `slotProps.htmlInput` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
163
163
|
*/
|
|
164
164
|
inputProps: _propTypes.default.object,
|
|
@@ -168,7 +168,7 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
|
|
|
168
168
|
*/
|
|
169
169
|
InputLabelProps: _propTypes.default.object,
|
|
170
170
|
/**
|
|
171
|
-
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/
|
|
171
|
+
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.
|
|
172
172
|
* @deprecated Use `slotProps.htmlInput` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
173
173
|
*/
|
|
174
174
|
inputProps: _propTypes.default.object,
|
|
@@ -168,7 +168,7 @@ process.env.NODE_ENV !== "production" ? SingleInputTimeRangeField.propTypes = {
|
|
|
168
168
|
*/
|
|
169
169
|
InputLabelProps: _propTypes.default.object,
|
|
170
170
|
/**
|
|
171
|
-
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/
|
|
171
|
+
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.
|
|
172
172
|
* @deprecated Use `slotProps.htmlInput` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
173
173
|
*/
|
|
174
174
|
inputProps: _propTypes.default.object,
|
|
@@ -27,8 +27,9 @@ import { useRangePosition } from "../internals/hooks/useRangePosition.js";
|
|
|
27
27
|
import { DAY_RANGE_SIZE, DAY_MARGIN } from "../internals/constants/dimensions.js";
|
|
28
28
|
import { PickersRangeCalendarHeader } from "../PickersRangeCalendarHeader/index.js";
|
|
29
29
|
import { useNullablePickerRangePositionContext } from "../internals/hooks/useNullablePickerRangePositionContext.js";
|
|
30
|
+
import { dateRangePickerDay2Classes } from "../DateRangePickerDay2/index.js";
|
|
30
31
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
31
|
-
const releaseInfo = "
|
|
32
|
+
const releaseInfo = "MTc0OTY3OTIwMDAwMA==";
|
|
32
33
|
const DateRangeCalendarRoot = styled('div', {
|
|
33
34
|
name: 'MuiDateRangeCalendar',
|
|
34
35
|
slot: 'Root'
|
|
@@ -54,7 +55,7 @@ const InnerDayCalendarForRange = styled(DayCalendar)(({
|
|
|
54
55
|
minWidth: 312,
|
|
55
56
|
minHeight: weeksContainerHeight,
|
|
56
57
|
[`&.${dateRangeCalendarClasses.dayDragging}`]: {
|
|
57
|
-
[`& .${dayClasses.day}`]: {
|
|
58
|
+
[`& .${dateRangePickerDay2Classes.root}, & .${dayClasses.day}`]: {
|
|
58
59
|
cursor: 'grabbing'
|
|
59
60
|
},
|
|
60
61
|
[`& .${dayClasses.root}:not(.${dayClasses.rangeIntervalDayHighlightStart}):not(.${dayClasses.rangeIntervalDayHighlightEnd}) .${dayClasses.day}:not(.${dayClasses.notSelectedDate})`]: {
|
|
@@ -227,7 +227,7 @@ const DateRangePickerDayRaw = /*#__PURE__*/React.forwardRef(function DateRangePi
|
|
|
227
227
|
showDaysOutsideCurrentMonth
|
|
228
228
|
} = props,
|
|
229
229
|
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
230
|
-
useLicenseVerifier('x-date-pickers-pro', "
|
|
230
|
+
useLicenseVerifier('x-date-pickers-pro', "MTc0OTY3OTIwMDAwMA==");
|
|
231
231
|
const utils = useUtils();
|
|
232
232
|
const shouldRenderHighlight = isHighlighting && !outsideCurrentMonth;
|
|
233
233
|
const shouldRenderPreview = isPreviewing && !outsideCurrentMonth;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { DateRangePickerDay2Props } from "./DateRangePickerDay2.types.js";
|
|
3
|
+
type DateRangePickerDay2Component = ((props: DateRangePickerDay2Props & React.RefAttributes<HTMLButtonElement>) => React.JSX.Element) & {
|
|
4
|
+
propTypes?: any;
|
|
5
|
+
};
|
|
6
|
+
export declare const DateRangePickerDay2: DateRangePickerDay2Component;
|
|
7
|
+
export {};
|