@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,6 @@
|
|
|
1
|
+
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
|
2
|
+
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
|
3
|
+
export function getDateRangePickerDay2UtilityClass(slot) {
|
|
4
|
+
return generateUtilityClass('MuiDateRangePickerDay2', slot);
|
|
5
|
+
}
|
|
6
|
+
export const dateRangePickerDay2Classes = generateUtilityClasses('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";
|
|
@@ -151,7 +151,7 @@ process.env.NODE_ENV !== "production" ? SingleInputDateRangeField.propTypes = {
|
|
|
151
151
|
*/
|
|
152
152
|
InputLabelProps: PropTypes.object,
|
|
153
153
|
/**
|
|
154
|
-
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/
|
|
154
|
+
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.
|
|
155
155
|
* @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.
|
|
156
156
|
*/
|
|
157
157
|
inputProps: PropTypes.object,
|
|
@@ -161,7 +161,7 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
|
|
|
161
161
|
*/
|
|
162
162
|
InputLabelProps: PropTypes.object,
|
|
163
163
|
/**
|
|
164
|
-
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/
|
|
164
|
+
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.
|
|
165
165
|
* @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.
|
|
166
166
|
*/
|
|
167
167
|
inputProps: PropTypes.object,
|
|
@@ -161,7 +161,7 @@ process.env.NODE_ENV !== "production" ? SingleInputTimeRangeField.propTypes = {
|
|
|
161
161
|
*/
|
|
162
162
|
InputLabelProps: PropTypes.object,
|
|
163
163
|
/**
|
|
164
|
-
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/
|
|
164
|
+
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.
|
|
165
165
|
* @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.
|
|
166
166
|
*/
|
|
167
167
|
inputProps: PropTypes.object,
|
package/esm/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from '@mui/x-date-pickers';
|
|
2
2
|
export * from "./DateRangePickerDay/index.js";
|
|
3
|
+
export * from "./DateRangePickerDay2/index.js";
|
|
3
4
|
export * from "./MultiInputDateRangeField/index.js";
|
|
4
5
|
export * from "./MultiInputTimeRangeField/index.js";
|
|
5
6
|
export * from "./MultiInputDateTimeRangeField/index.js";
|
package/esm/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @mui/x-date-pickers-pro v8.5.
|
|
2
|
+
* @mui/x-date-pickers-pro v8.5.2
|
|
3
3
|
*
|
|
4
4
|
* @license MUI X Commercial
|
|
5
5
|
* This source code is licensed under the commercial license found in the
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
export * from '@mui/x-date-pickers';
|
|
9
9
|
export * from "./DateRangePickerDay/index.js";
|
|
10
|
+
export * from "./DateRangePickerDay2/index.js";
|
|
10
11
|
|
|
11
12
|
// Fields
|
|
12
13
|
export * from "./MultiInputDateRangeField/index.js";
|
|
@@ -19,7 +19,7 @@ export const useDesktopRangePicker = _ref => {
|
|
|
19
19
|
steps
|
|
20
20
|
} = _ref,
|
|
21
21
|
pickerParams = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
22
|
-
useLicenseVerifier('x-date-pickers-pro', "
|
|
22
|
+
useLicenseVerifier('x-date-pickers-pro', "MTc0OTY3OTIwMDAwMA==");
|
|
23
23
|
const {
|
|
24
24
|
slots,
|
|
25
25
|
slotProps,
|
|
@@ -21,7 +21,7 @@ export const useMobileRangePicker = _ref => {
|
|
|
21
21
|
steps
|
|
22
22
|
} = _ref,
|
|
23
23
|
pickerParams = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
24
|
-
useLicenseVerifier('x-date-pickers-pro', "
|
|
24
|
+
useLicenseVerifier('x-date-pickers-pro', "MTc0OTY3OTIwMDAwMA==");
|
|
25
25
|
const {
|
|
26
26
|
slots,
|
|
27
27
|
slotProps: innerSlotProps,
|
|
@@ -12,6 +12,10 @@ export interface PickersProComponents<Theme = unknown> {
|
|
|
12
12
|
defaultProps?: ComponentsProps['MuiDateRangePickerDay'];
|
|
13
13
|
styleOverrides?: ComponentsOverrides<Theme, DateRangePickerDayOwnerState>['MuiDateRangePickerDay'];
|
|
14
14
|
};
|
|
15
|
+
MuiDateRangePickerDay2?: {
|
|
16
|
+
defaultProps?: ComponentsProps['MuiDateRangePickerDay2'];
|
|
17
|
+
styleOverrides?: ComponentsOverrides<Theme>['MuiDateRangePickerDay2'];
|
|
18
|
+
};
|
|
15
19
|
MuiDateTimeRangePickerTabs?: {
|
|
16
20
|
defaultProps?: ComponentsProps['MuiDateTimeRangePickerTabs'];
|
|
17
21
|
styleOverrides?: ComponentsOverrides<Theme, PickerOwnerState>['MuiDateTimeRangePickerTabs'];
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { DateRangePickerDayClassKey } from "../DateRangePickerDay/index.js";
|
|
2
|
+
import { DateRangePickerDay2ClassKey } from "../DateRangePickerDay2/index.js";
|
|
2
3
|
import { DateRangeCalendarClassKey } from "../DateRangeCalendar/index.js";
|
|
3
4
|
import { DateRangePickerToolbarClassKey } from "../DateRangePicker/index.js";
|
|
4
5
|
import { DateTimeRangePickerTabsClassKey, DateTimeRangePickerToolbarClassKey } from "../DateTimeRangePicker/index.js";
|
|
@@ -8,6 +9,7 @@ import { MultiInputTimeRangeFieldClassKey } from "../MultiInputTimeRangeField/in
|
|
|
8
9
|
export interface PickersProComponentNameToClassKey {
|
|
9
10
|
MuiDateRangeCalendar: DateRangeCalendarClassKey;
|
|
10
11
|
MuiDateRangePickerDay: DateRangePickerDayClassKey;
|
|
12
|
+
MuiDateRangePickerDay2: DateRangePickerDay2ClassKey;
|
|
11
13
|
MuiDateRangePickerToolbar: DateRangePickerToolbarClassKey;
|
|
12
14
|
MuiDateTimeRangePickerTabs: DateTimeRangePickerTabsClassKey;
|
|
13
15
|
MuiDateTimeRangePickerToolbar: DateTimeRangePickerToolbarClassKey;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { DateRangePickerDayProps } from "../DateRangePickerDay/index.js";
|
|
2
|
+
import { DateRangePickerDay2Props } from "../DateRangePickerDay2/index.js";
|
|
2
3
|
import { DateRangeCalendarProps } from "../DateRangeCalendar/index.js";
|
|
3
4
|
import { DateRangePickerProps } from "../DateRangePicker/index.js";
|
|
4
5
|
import { ExportedDateRangePickerToolbarProps } from "../DateRangePicker/DateRangePickerToolbar.js";
|
|
@@ -20,6 +21,7 @@ import { ExportedPickersRangeCalendarHeaderProps } from "../PickersRangeCalendar
|
|
|
20
21
|
export interface PickersProComponentsPropsList {
|
|
21
22
|
MuiDateRangeCalendar: DateRangeCalendarProps;
|
|
22
23
|
MuiDateRangePickerDay: DateRangePickerDayProps;
|
|
24
|
+
MuiDateRangePickerDay2: DateRangePickerDay2Props;
|
|
23
25
|
MuiDateTimeRangePickerTabs: ExportedDateTimeRangePickerTabsProps;
|
|
24
26
|
MuiDateRangePickerToolbar: ExportedDateRangePickerToolbarProps;
|
|
25
27
|
MuiDateTimeRangePickerToolbar: ExportedDateTimeRangePickerToolbarProps;
|
package/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from '@mui/x-date-pickers';
|
|
2
2
|
export * from "./DateRangePickerDay/index.js";
|
|
3
|
+
export * from "./DateRangePickerDay2/index.js";
|
|
3
4
|
export * from "./MultiInputDateRangeField/index.js";
|
|
4
5
|
export * from "./MultiInputTimeRangeField/index.js";
|
|
5
6
|
export * from "./MultiInputDateTimeRangeField/index.js";
|
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @mui/x-date-pickers-pro v8.5.
|
|
2
|
+
* @mui/x-date-pickers-pro v8.5.2
|
|
3
3
|
*
|
|
4
4
|
* @license MUI X Commercial
|
|
5
5
|
* This source code is licensed under the commercial license found in the
|
|
@@ -32,6 +32,17 @@ Object.keys(_DateRangePickerDay).forEach(function (key) {
|
|
|
32
32
|
}
|
|
33
33
|
});
|
|
34
34
|
});
|
|
35
|
+
var _DateRangePickerDay2 = require("./DateRangePickerDay2");
|
|
36
|
+
Object.keys(_DateRangePickerDay2).forEach(function (key) {
|
|
37
|
+
if (key === "default" || key === "__esModule") return;
|
|
38
|
+
if (key in exports && exports[key] === _DateRangePickerDay2[key]) return;
|
|
39
|
+
Object.defineProperty(exports, key, {
|
|
40
|
+
enumerable: true,
|
|
41
|
+
get: function () {
|
|
42
|
+
return _DateRangePickerDay2[key];
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
});
|
|
35
46
|
var _MultiInputDateRangeField = require("./MultiInputDateRangeField");
|
|
36
47
|
Object.keys(_MultiInputDateRangeField).forEach(function (key) {
|
|
37
48
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -27,7 +27,7 @@ const useDesktopRangePicker = _ref => {
|
|
|
27
27
|
steps
|
|
28
28
|
} = _ref,
|
|
29
29
|
pickerParams = (0, _objectWithoutPropertiesLoose2.default)(_ref, _excluded);
|
|
30
|
-
(0, _xLicense.useLicenseVerifier)('x-date-pickers-pro', "
|
|
30
|
+
(0, _xLicense.useLicenseVerifier)('x-date-pickers-pro', "MTc0OTY3OTIwMDAwMA==");
|
|
31
31
|
const {
|
|
32
32
|
slots,
|
|
33
33
|
slotProps,
|
|
@@ -29,7 +29,7 @@ const useMobileRangePicker = _ref => {
|
|
|
29
29
|
steps
|
|
30
30
|
} = _ref,
|
|
31
31
|
pickerParams = (0, _objectWithoutPropertiesLoose2.default)(_ref, _excluded);
|
|
32
|
-
(0, _xLicense.useLicenseVerifier)('x-date-pickers-pro', "
|
|
32
|
+
(0, _xLicense.useLicenseVerifier)('x-date-pickers-pro', "MTc0OTY3OTIwMDAwMA==");
|
|
33
33
|
const {
|
|
34
34
|
slots,
|
|
35
35
|
slotProps: innerSlotProps,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-date-pickers-pro",
|
|
3
|
-
"version": "8.5.
|
|
3
|
+
"version": "8.5.2",
|
|
4
4
|
"author": "MUI Team",
|
|
5
5
|
"description": "The Pro plan edition of the MUI X Date and Time Picker components.",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -32,14 +32,14 @@
|
|
|
32
32
|
"directory": "packages/x-date-pickers-pro"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@babel/runtime": "^7.27.
|
|
36
|
-
"@mui/utils": "^7.
|
|
35
|
+
"@babel/runtime": "^7.27.6",
|
|
36
|
+
"@mui/utils": "^7.1.1",
|
|
37
37
|
"clsx": "^2.1.1",
|
|
38
38
|
"prop-types": "^15.8.1",
|
|
39
39
|
"react-transition-group": "^4.4.5",
|
|
40
|
-
"@mui/x-
|
|
41
|
-
"@mui/x-license": "8.5.
|
|
42
|
-
"@mui/x-
|
|
40
|
+
"@mui/x-internals": "8.5.2",
|
|
41
|
+
"@mui/x-license": "8.5.2",
|
|
42
|
+
"@mui/x-date-pickers": "8.5.2"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"@emotion/react": "^11.9.0",
|
|
@@ -12,6 +12,10 @@ export interface PickersProComponents<Theme = unknown> {
|
|
|
12
12
|
defaultProps?: ComponentsProps['MuiDateRangePickerDay'];
|
|
13
13
|
styleOverrides?: ComponentsOverrides<Theme, DateRangePickerDayOwnerState>['MuiDateRangePickerDay'];
|
|
14
14
|
};
|
|
15
|
+
MuiDateRangePickerDay2?: {
|
|
16
|
+
defaultProps?: ComponentsProps['MuiDateRangePickerDay2'];
|
|
17
|
+
styleOverrides?: ComponentsOverrides<Theme>['MuiDateRangePickerDay2'];
|
|
18
|
+
};
|
|
15
19
|
MuiDateTimeRangePickerTabs?: {
|
|
16
20
|
defaultProps?: ComponentsProps['MuiDateTimeRangePickerTabs'];
|
|
17
21
|
styleOverrides?: ComponentsOverrides<Theme, PickerOwnerState>['MuiDateTimeRangePickerTabs'];
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { DateRangePickerDayClassKey } from "../DateRangePickerDay/index.js";
|
|
2
|
+
import { DateRangePickerDay2ClassKey } from "../DateRangePickerDay2/index.js";
|
|
2
3
|
import { DateRangeCalendarClassKey } from "../DateRangeCalendar/index.js";
|
|
3
4
|
import { DateRangePickerToolbarClassKey } from "../DateRangePicker/index.js";
|
|
4
5
|
import { DateTimeRangePickerTabsClassKey, DateTimeRangePickerToolbarClassKey } from "../DateTimeRangePicker/index.js";
|
|
@@ -8,6 +9,7 @@ import { MultiInputTimeRangeFieldClassKey } from "../MultiInputTimeRangeField/in
|
|
|
8
9
|
export interface PickersProComponentNameToClassKey {
|
|
9
10
|
MuiDateRangeCalendar: DateRangeCalendarClassKey;
|
|
10
11
|
MuiDateRangePickerDay: DateRangePickerDayClassKey;
|
|
12
|
+
MuiDateRangePickerDay2: DateRangePickerDay2ClassKey;
|
|
11
13
|
MuiDateRangePickerToolbar: DateRangePickerToolbarClassKey;
|
|
12
14
|
MuiDateTimeRangePickerTabs: DateTimeRangePickerTabsClassKey;
|
|
13
15
|
MuiDateTimeRangePickerToolbar: DateTimeRangePickerToolbarClassKey;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { DateRangePickerDayProps } from "../DateRangePickerDay/index.js";
|
|
2
|
+
import { DateRangePickerDay2Props } from "../DateRangePickerDay2/index.js";
|
|
2
3
|
import { DateRangeCalendarProps } from "../DateRangeCalendar/index.js";
|
|
3
4
|
import { DateRangePickerProps } from "../DateRangePicker/index.js";
|
|
4
5
|
import { ExportedDateRangePickerToolbarProps } from "../DateRangePicker/DateRangePickerToolbar.js";
|
|
@@ -20,6 +21,7 @@ import { ExportedPickersRangeCalendarHeaderProps } from "../PickersRangeCalendar
|
|
|
20
21
|
export interface PickersProComponentsPropsList {
|
|
21
22
|
MuiDateRangeCalendar: DateRangeCalendarProps;
|
|
22
23
|
MuiDateRangePickerDay: DateRangePickerDayProps;
|
|
24
|
+
MuiDateRangePickerDay2: DateRangePickerDay2Props;
|
|
23
25
|
MuiDateTimeRangePickerTabs: ExportedDateTimeRangePickerTabsProps;
|
|
24
26
|
MuiDateRangePickerToolbar: ExportedDateRangePickerToolbarProps;
|
|
25
27
|
MuiDateTimeRangePickerToolbar: ExportedDateTimeRangePickerToolbarProps;
|