@mui/lab 5.0.0-alpha.63 → 5.0.0-alpha.64

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.
Files changed (197) hide show
  1. package/AdapterDateFns/index.d.ts +1 -1
  2. package/AdapterDayjs/index.d.ts +1 -1
  3. package/AdapterLuxon/index.d.ts +1 -1
  4. package/AdapterMoment/index.d.ts +1 -1
  5. package/CHANGELOG.md +75 -32
  6. package/CalendarPicker/CalendarPicker.d.ts +106 -106
  7. package/CalendarPicker/PickersCalendar.d.ts +47 -47
  8. package/CalendarPicker/PickersCalendarHeader.d.ts +43 -43
  9. package/CalendarPicker/PickersFadeTransitionGroup.d.ts +12 -12
  10. package/CalendarPicker/PickersSlideTransition.d.ts +16 -16
  11. package/CalendarPicker/index.d.ts +5 -5
  12. package/CalendarPicker/shared.d.ts +1 -1
  13. package/CalendarPicker/useCalendarState.d.ts +32 -32
  14. package/CalendarPickerSkeleton/CalendarPickerSkeleton.d.ts +41 -41
  15. package/CalendarPickerSkeleton/index.d.ts +3 -3
  16. package/ClockPicker/Clock.d.ts +28 -28
  17. package/ClockPicker/ClockNumber.d.ts +19 -19
  18. package/ClockPicker/ClockNumbers.d.ts +24 -24
  19. package/ClockPicker/ClockPicker.d.ts +121 -121
  20. package/ClockPicker/ClockPicker.js +4 -1
  21. package/ClockPicker/ClockPickerStandalone.d.ts +28 -28
  22. package/ClockPicker/ClockPointer.d.ts +23 -23
  23. package/ClockPicker/index.d.ts +5 -5
  24. package/ClockPicker/shared.d.ts +5 -5
  25. package/DatePicker/DatePicker.d.ts +27 -27
  26. package/DatePicker/DatePicker.js +5 -1
  27. package/DatePicker/DatePickerToolbar.d.ts +23 -23
  28. package/DatePicker/index.d.ts +2 -2
  29. package/DatePicker/shared.d.ts +45 -45
  30. package/DateRangePicker/DateRangePicker.d.ts +65 -65
  31. package/DateRangePicker/DateRangePicker.js +5 -1
  32. package/DateRangePicker/DateRangePickerInput.d.ts +35 -35
  33. package/DateRangePicker/DateRangePickerToolbar.d.ts +15 -15
  34. package/DateRangePicker/DateRangePickerView.d.ts +44 -44
  35. package/DateRangePicker/DateRangePickerViewDesktop.d.ts +29 -29
  36. package/DateRangePicker/DateRangePickerViewMobile.d.ts +17 -17
  37. package/DateRangePicker/RangeTypes.d.ts +8 -8
  38. package/DateRangePicker/date-range-manager.d.ts +14 -14
  39. package/DateRangePicker/index.d.ts +3 -3
  40. package/DateRangePickerDay/DateRangePickerDay.d.ts +79 -79
  41. package/DateRangePickerDay/index.d.ts +2 -2
  42. package/DateTimePicker/DateTimePicker.d.ts +27 -27
  43. package/DateTimePicker/DateTimePicker.js +5 -1
  44. package/DateTimePicker/DateTimePickerTabs.d.ts +13 -13
  45. package/DateTimePicker/DateTimePickerToolbar.d.ts +7 -7
  46. package/DateTimePicker/index.d.ts +2 -2
  47. package/DateTimePicker/shared.d.ts +67 -67
  48. package/DesktopDatePicker/DesktopDatePicker.d.ts +20 -20
  49. package/DesktopDatePicker/DesktopDatePicker.js +5 -1
  50. package/DesktopDatePicker/index.d.ts +2 -2
  51. package/DesktopDateRangePicker/DesktopDateRangePicker.d.ts +64 -64
  52. package/DesktopDateRangePicker/DesktopDateRangePicker.js +5 -1
  53. package/DesktopDateRangePicker/index.d.ts +2 -2
  54. package/DesktopDateTimePicker/DesktopDateTimePicker.d.ts +20 -20
  55. package/DesktopDateTimePicker/DesktopDateTimePicker.js +5 -1
  56. package/DesktopDateTimePicker/index.d.ts +2 -2
  57. package/DesktopTimePicker/DesktopTimePicker.d.ts +20 -20
  58. package/DesktopTimePicker/index.d.ts +2 -2
  59. package/LoadingButton/loadingButtonClasses.d.ts +22 -22
  60. package/LocalizationProvider/LocalizationProvider.d.ts +35 -35
  61. package/LocalizationProvider/index.d.ts +2 -2
  62. package/Masonry/masonryClasses.d.ts +8 -8
  63. package/MobileDatePicker/MobileDatePicker.d.ts +20 -20
  64. package/MobileDatePicker/MobileDatePicker.js +5 -1
  65. package/MobileDatePicker/index.d.ts +2 -2
  66. package/MobileDateRangePicker/MobileDateRangePicker.d.ts +64 -64
  67. package/MobileDateRangePicker/MobileDateRangePicker.js +5 -1
  68. package/MobileDateRangePicker/index.d.ts +2 -2
  69. package/MobileDateTimePicker/MobileDateTimePicker.d.ts +20 -20
  70. package/MobileDateTimePicker/MobileDateTimePicker.js +5 -1
  71. package/MobileDateTimePicker/index.d.ts +2 -2
  72. package/MobileTimePicker/MobileTimePicker.d.ts +20 -20
  73. package/MobileTimePicker/index.d.ts +2 -2
  74. package/MonthPicker/MonthPicker.d.ts +53 -53
  75. package/MonthPicker/PickersMonth.d.ts +15 -15
  76. package/MonthPicker/index.d.ts +3 -3
  77. package/PickersDay/PickersDay.d.ts +93 -93
  78. package/PickersDay/index.d.ts +4 -4
  79. package/StaticDatePicker/StaticDatePicker.d.ts +25 -25
  80. package/StaticDatePicker/StaticDatePicker.js +5 -1
  81. package/StaticDatePicker/index.d.ts +2 -2
  82. package/StaticDateRangePicker/StaticDateRangePicker.d.ts +67 -67
  83. package/StaticDateRangePicker/StaticDateRangePicker.js +5 -1
  84. package/StaticDateRangePicker/index.d.ts +2 -2
  85. package/StaticDateTimePicker/StaticDateTimePicker.d.ts +25 -25
  86. package/StaticDateTimePicker/StaticDateTimePicker.js +5 -1
  87. package/StaticDateTimePicker/index.d.ts +2 -2
  88. package/StaticTimePicker/StaticTimePicker.d.ts +25 -25
  89. package/StaticTimePicker/index.d.ts +2 -2
  90. package/TabPanel/tabPanelClasses.d.ts +8 -8
  91. package/TimePicker/TimePicker.d.ts +27 -27
  92. package/TimePicker/TimePickerToolbar.d.ts +23 -23
  93. package/TimePicker/index.d.ts +2 -2
  94. package/TimePicker/shared.d.ts +36 -36
  95. package/Timeline/Timeline.d.ts +59 -59
  96. package/Timeline/TimelineContext.d.ts +6 -6
  97. package/Timeline/index.d.ts +5 -5
  98. package/Timeline/timelineClasses.d.ts +3 -3
  99. package/TimelineConnector/timelineConnectorClasses.d.ts +8 -8
  100. package/TimelineContent/timelineContentClasses.d.ts +14 -14
  101. package/TimelineDot/timelineDotClasses.d.ts +24 -24
  102. package/TimelineItem/timelineItemClasses.d.ts +16 -16
  103. package/TimelineOppositeContent/timelineOppositeContentClasses.d.ts +14 -14
  104. package/TimelineSeparator/timelineSeparatorClasses.d.ts +8 -8
  105. package/TreeItem/treeItemClasses.d.ts +24 -24
  106. package/TreeView/treeViewClasses.d.ts +8 -8
  107. package/YearPicker/PickersYear.d.ts +28 -28
  108. package/YearPicker/YearPicker.d.ts +44 -44
  109. package/YearPicker/index.d.ts +5 -5
  110. package/YearPicker/yearPickerClasses.d.ts +3 -3
  111. package/index.js +1 -1
  112. package/internal/pickers/KeyboardDateInput.d.ts +4 -4
  113. package/internal/pickers/Picker/Picker.d.ts +33 -33
  114. package/internal/pickers/Picker/PickerView.d.ts +3 -3
  115. package/internal/pickers/PickersArrowSwitcher.d.ts +41 -41
  116. package/internal/pickers/PickersModalDialog.d.ts +47 -47
  117. package/internal/pickers/PickersPopper.d.ts +33 -33
  118. package/internal/pickers/PickersToolbar.d.ts +14 -14
  119. package/internal/pickers/PickersToolbarButton.d.ts +13 -13
  120. package/internal/pickers/PickersToolbarText.d.ts +8 -8
  121. package/internal/pickers/PureDateInput.d.ts +80 -80
  122. package/internal/pickers/constants/dimensions.d.ts +4 -4
  123. package/internal/pickers/constants/prop-types.d.ts +1 -1
  124. package/internal/pickers/date-time-utils.d.ts +8 -8
  125. package/internal/pickers/date-utils.d.ts +52 -52
  126. package/internal/pickers/hooks/date-helpers-hooks.d.ts +16 -16
  127. package/internal/pickers/hooks/useIsLandscape.d.ts +4 -4
  128. package/internal/pickers/hooks/useMaskedInput.d.ts +7 -7
  129. package/internal/pickers/hooks/useOpenState.d.ts +10 -10
  130. package/internal/pickers/hooks/usePickerState.d.ts +38 -38
  131. package/internal/pickers/hooks/useUtils.d.ts +7 -7
  132. package/internal/pickers/hooks/useValidation.d.ts +23 -23
  133. package/internal/pickers/hooks/useViews.d.ts +19 -19
  134. package/internal/pickers/text-field-helper.d.ts +11 -11
  135. package/internal/pickers/time-utils.d.ts +33 -33
  136. package/internal/pickers/typings/BasePicker.d.ts +95 -95
  137. package/internal/pickers/typings/Views.d.ts +1 -1
  138. package/internal/pickers/typings/helpers.d.ts +9 -9
  139. package/internal/pickers/utils.d.ts +7 -7
  140. package/internal/pickers/wrappers/DesktopTooltipWrapper.d.ts +4 -4
  141. package/internal/pickers/wrappers/DesktopWrapper.d.ts +16 -16
  142. package/internal/pickers/wrappers/MobileWrapper.d.ts +14 -14
  143. package/internal/pickers/wrappers/PickerStaticWrapper.d.ts +21 -21
  144. package/internal/pickers/wrappers/ResponsiveWrapper.d.ts +23 -23
  145. package/internal/pickers/wrappers/WrapperProps.d.ts +13 -13
  146. package/internal/pickers/wrappers/WrapperVariantContext.d.ts +11 -11
  147. package/internal/svg-icons/ArrowDropDown.d.ts +7 -7
  148. package/internal/svg-icons/ArrowLeft.d.ts +7 -7
  149. package/internal/svg-icons/ArrowRight.d.ts +7 -7
  150. package/internal/svg-icons/Calendar.d.ts +7 -7
  151. package/internal/svg-icons/Clock.d.ts +7 -7
  152. package/internal/svg-icons/DateRange.d.ts +7 -7
  153. package/internal/svg-icons/Pen.d.ts +7 -7
  154. package/internal/svg-icons/Time.d.ts +7 -7
  155. package/legacy/ClockPicker/ClockPicker.js +4 -1
  156. package/legacy/DatePicker/DatePicker.js +5 -1
  157. package/legacy/DateRangePicker/DateRangePicker.js +5 -1
  158. package/legacy/DateTimePicker/DateTimePicker.js +5 -1
  159. package/legacy/DesktopDatePicker/DesktopDatePicker.js +5 -1
  160. package/legacy/DesktopDateRangePicker/DesktopDateRangePicker.js +5 -1
  161. package/legacy/DesktopDateTimePicker/DesktopDateTimePicker.js +5 -1
  162. package/legacy/MobileDatePicker/MobileDatePicker.js +5 -1
  163. package/legacy/MobileDateRangePicker/MobileDateRangePicker.js +5 -1
  164. package/legacy/MobileDateTimePicker/MobileDateTimePicker.js +5 -1
  165. package/legacy/StaticDatePicker/StaticDatePicker.js +5 -1
  166. package/legacy/StaticDateRangePicker/StaticDateRangePicker.js +5 -1
  167. package/legacy/StaticDateTimePicker/StaticDateTimePicker.js +5 -1
  168. package/legacy/index.js +1 -1
  169. package/modern/ClockPicker/ClockPicker.js +4 -1
  170. package/modern/DatePicker/DatePicker.js +5 -1
  171. package/modern/DateRangePicker/DateRangePicker.js +5 -1
  172. package/modern/DateTimePicker/DateTimePicker.js +5 -1
  173. package/modern/DesktopDatePicker/DesktopDatePicker.js +5 -1
  174. package/modern/DesktopDateRangePicker/DesktopDateRangePicker.js +5 -1
  175. package/modern/DesktopDateTimePicker/DesktopDateTimePicker.js +5 -1
  176. package/modern/MobileDatePicker/MobileDatePicker.js +5 -1
  177. package/modern/MobileDateRangePicker/MobileDateRangePicker.js +5 -1
  178. package/modern/MobileDateTimePicker/MobileDateTimePicker.js +5 -1
  179. package/modern/StaticDatePicker/StaticDatePicker.js +5 -1
  180. package/modern/StaticDateRangePicker/StaticDateRangePicker.js +5 -1
  181. package/modern/StaticDateTimePicker/StaticDateTimePicker.js +5 -1
  182. package/modern/index.js +1 -1
  183. package/node/ClockPicker/ClockPicker.js +4 -1
  184. package/node/DatePicker/DatePicker.js +5 -1
  185. package/node/DateRangePicker/DateRangePicker.js +5 -1
  186. package/node/DateTimePicker/DateTimePicker.js +5 -1
  187. package/node/DesktopDatePicker/DesktopDatePicker.js +5 -1
  188. package/node/DesktopDateRangePicker/DesktopDateRangePicker.js +5 -1
  189. package/node/DesktopDateTimePicker/DesktopDateTimePicker.js +5 -1
  190. package/node/MobileDatePicker/MobileDatePicker.js +5 -1
  191. package/node/MobileDateRangePicker/MobileDateRangePicker.js +5 -1
  192. package/node/MobileDateTimePicker/MobileDateTimePicker.js +5 -1
  193. package/node/StaticDatePicker/StaticDatePicker.js +5 -1
  194. package/node/StaticDateRangePicker/StaticDateRangePicker.js +5 -1
  195. package/node/StaticDateTimePicker/StaticDateTimePicker.js +5 -1
  196. package/node/index.js +1 -1
  197. package/package.json +3 -3
@@ -1,53 +1,53 @@
1
- import * as React from 'react';
2
- import { SxProps } from '@mui/system';
3
- import { Theme } from '@mui/material/styles';
4
- import { PickerOnChangeFn } from '../internal/pickers/hooks/useViews';
5
- export interface MonthPickerProps<TDate> {
6
- /**
7
- * className applied to the root element.
8
- */
9
- className?: string;
10
- /**
11
- * Override or extend the styles applied to the component.
12
- */
13
- classes?: {
14
- /** Styles applied to the root element. */
15
- root?: string;
16
- };
17
- /** Date value for the MonthPicker */
18
- date: TDate | null;
19
- /** If `true` picker is disabled */
20
- disabled?: boolean;
21
- /** If `true` past days are disabled. */
22
- disablePast?: boolean | null;
23
- /** If `true` future days are disabled. */
24
- disableFuture?: boolean | null;
25
- /** Minimal selectable date. */
26
- minDate: TDate;
27
- /** Maximal selectable date. */
28
- maxDate: TDate;
29
- /** Callback fired on date change. */
30
- onChange: PickerOnChangeFn<TDate>;
31
- onMonthChange?: (date: TDate) => void | Promise<void>;
32
- /** If `true` picker is readonly */
33
- readOnly?: boolean;
34
- /**
35
- * The system prop that allows defining system overrides as well as additional CSS styles.
36
- */
37
- sx?: SxProps<Theme>;
38
- }
39
- export declare function getMonthPickerUtilityClass(slot: string): string;
40
- export declare type MonthPickerClassKey = keyof NonNullable<MonthPickerProps<unknown>['classes']>;
41
- export declare const monthPickerClasses: Record<"root", string>;
42
- declare const _default: <TDate>(props: MonthPickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element;
43
- /**
44
- *
45
- * Demos:
46
- *
47
- * - [Date Picker](https://mui.com/components/date-picker/)
48
- *
49
- * API:
50
- *
51
- * - [MonthPicker API](https://mui.com/api/month-picker/)
52
- */
53
- export default _default;
1
+ import * as React from 'react';
2
+ import { SxProps } from '@mui/system';
3
+ import { Theme } from '@mui/material/styles';
4
+ import { PickerOnChangeFn } from '../internal/pickers/hooks/useViews';
5
+ export interface MonthPickerProps<TDate> {
6
+ /**
7
+ * className applied to the root element.
8
+ */
9
+ className?: string;
10
+ /**
11
+ * Override or extend the styles applied to the component.
12
+ */
13
+ classes?: {
14
+ /** Styles applied to the root element. */
15
+ root?: string;
16
+ };
17
+ /** Date value for the MonthPicker */
18
+ date: TDate | null;
19
+ /** If `true` picker is disabled */
20
+ disabled?: boolean;
21
+ /** If `true` past days are disabled. */
22
+ disablePast?: boolean | null;
23
+ /** If `true` future days are disabled. */
24
+ disableFuture?: boolean | null;
25
+ /** Minimal selectable date. */
26
+ minDate: TDate;
27
+ /** Maximal selectable date. */
28
+ maxDate: TDate;
29
+ /** Callback fired on date change. */
30
+ onChange: PickerOnChangeFn<TDate>;
31
+ onMonthChange?: (date: TDate) => void | Promise<void>;
32
+ /** If `true` picker is readonly */
33
+ readOnly?: boolean;
34
+ /**
35
+ * The system prop that allows defining system overrides as well as additional CSS styles.
36
+ */
37
+ sx?: SxProps<Theme>;
38
+ }
39
+ export declare function getMonthPickerUtilityClass(slot: string): string;
40
+ export declare type MonthPickerClassKey = keyof NonNullable<MonthPickerProps<unknown>['classes']>;
41
+ export declare const monthPickerClasses: Record<"root", string>;
42
+ declare const _default: <TDate>(props: MonthPickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element;
43
+ /**
44
+ *
45
+ * Demos:
46
+ *
47
+ * - [Date Picker](https://mui.com/components/date-picker/)
48
+ *
49
+ * API:
50
+ *
51
+ * - [MonthPicker API](https://mui.com/api/month-picker/)
52
+ */
53
+ export default _default;
@@ -1,15 +1,15 @@
1
- import * as React from 'react';
2
- declare const classes: Record<"root" | "selected", string>;
3
- export interface MonthProps {
4
- children: React.ReactNode;
5
- disabled?: boolean;
6
- onSelect: (value: any) => void;
7
- selected?: boolean;
8
- value: any;
9
- }
10
- export declare type PickersMonthClassKey = keyof typeof classes;
11
- /**
12
- * @ignore - do not document.
13
- */
14
- declare const PickersMonth: React.FC<MonthProps>;
15
- export default PickersMonth;
1
+ import * as React from 'react';
2
+ declare const classes: Record<"root" | "selected", string>;
3
+ export interface MonthProps {
4
+ children: React.ReactNode;
5
+ disabled?: boolean;
6
+ onSelect: (value: any) => void;
7
+ selected?: boolean;
8
+ value: any;
9
+ }
10
+ export declare type PickersMonthClassKey = keyof typeof classes;
11
+ /**
12
+ * @ignore - do not document.
13
+ */
14
+ declare const PickersMonth: React.FC<MonthProps>;
15
+ export default PickersMonth;
@@ -1,3 +1,3 @@
1
- export { default, getMonthPickerUtilityClass, monthPickerClasses } from './MonthPicker';
2
- export declare type MonthPickerClassKey = import('./MonthPicker').MonthPickerClassKey;
3
- export declare type MonthPickerProps<TDate> = import('./MonthPicker').MonthPickerProps<TDate>;
1
+ export { default, getMonthPickerUtilityClass, monthPickerClasses } from './MonthPicker';
2
+ export declare type MonthPickerClassKey = import('./MonthPicker').MonthPickerClassKey;
3
+ export declare type MonthPickerProps<TDate> = import('./MonthPicker').MonthPickerProps<TDate>;
@@ -1,93 +1,93 @@
1
- import * as React from 'react';
2
- import { SxProps } from '@mui/system';
3
- import { ButtonBaseProps } from '@mui/material/ButtonBase';
4
- import { Theme } from '@mui/material/styles';
5
- import { ExtendMui } from '../internal/pickers/typings/helpers';
6
- import { PickerSelectionState } from '../internal/pickers/hooks/usePickerState';
7
- export interface PickersDayProps<TDate> extends ExtendMui<ButtonBaseProps> {
8
- /**
9
- * If `true`, `onChange` is fired on click even if the same date is selected.
10
- * @default false
11
- */
12
- allowSameDateSelection?: boolean;
13
- /**
14
- * Override or extend the styles applied to the component.
15
- */
16
- classes?: {
17
- /** Styles applied to the root element. */
18
- root?: string;
19
- /** Styles applied to the root element if `disableMargin=false`. */
20
- dayWithMargin?: string;
21
- /** Styles applied to the root element if `outsideCurrentMonth=true` and `showDaysOutsideCurrentMonth=true`. */
22
- dayOutsideMonth?: string;
23
- /** Styles applied to the root element if `outsideCurrentMonth=true` and `showDaysOutsideCurrentMonth=false`. */
24
- hiddenDaySpacingFiller?: string;
25
- /** Styles applied to the root element if `disableHighlightToday=false` and `today=true`. */
26
- today?: string;
27
- /** State class applied to the root element if `selected=true`. */
28
- selected?: string;
29
- /** State class applied to the root element if `disabled=true`. */
30
- disabled?: string;
31
- };
32
- /**
33
- * The date to show.
34
- */
35
- day: TDate;
36
- /**
37
- * If `true`, renders as disabled.
38
- * @default false
39
- */
40
- disabled?: boolean;
41
- /**
42
- * If `true`, todays date is rendering without highlighting with circle.
43
- * @default false
44
- */
45
- disableHighlightToday?: boolean;
46
- /**
47
- * If `true`, days are rendering without margin. Useful for displaying linked range of days.
48
- * @default false
49
- */
50
- disableMargin?: boolean;
51
- isAnimating?: boolean;
52
- onDayFocus?: (day: TDate) => void;
53
- onDaySelect: (day: TDate, isFinish: PickerSelectionState) => void;
54
- /**
55
- * If `true`, day is outside of month and will be hidden.
56
- */
57
- outsideCurrentMonth: boolean;
58
- /**
59
- * If `true`, renders as selected.
60
- * @default false
61
- */
62
- selected?: boolean;
63
- /**
64
- * If `true`, days that have `outsideCurrentMonth={true}` are displayed.
65
- * @default false
66
- */
67
- showDaysOutsideCurrentMonth?: boolean;
68
- /**
69
- * If `true`, renders as today date.
70
- * @default false
71
- */
72
- today?: boolean;
73
- /**
74
- * The system prop that allows defining system overrides as well as additional CSS styles.
75
- */
76
- sx?: SxProps<Theme>;
77
- }
78
- export declare type PickersDayClassKey = keyof NonNullable<PickersDayProps<unknown>['classes']>;
79
- export declare function getPickersDayUtilityClass(slot: string): string;
80
- export declare const pickersDayClasses: Record<"root" | "selected" | "disabled" | "dayWithMargin" | "dayOutsideMonth" | "hiddenDaySpacingFiller" | "today", string>;
81
- export declare const areDayPropsEqual: (prevProps: PickersDayProps<any>, nextProps: PickersDayProps<any>) => boolean;
82
- declare const _default: <TDate>(props: PickersDayProps<TDate> & React.RefAttributes<HTMLButtonElement>) => JSX.Element;
83
- /**
84
- *
85
- * Demos:
86
- *
87
- * - [Date Picker](https://mui.com/components/date-picker/)
88
- *
89
- * API:
90
- *
91
- * - [PickersDay API](https://mui.com/api/pickers-day/)
92
- */
93
- export default _default;
1
+ import * as React from 'react';
2
+ import { SxProps } from '@mui/system';
3
+ import { ButtonBaseProps } from '@mui/material/ButtonBase';
4
+ import { Theme } from '@mui/material/styles';
5
+ import { ExtendMui } from '../internal/pickers/typings/helpers';
6
+ import { PickerSelectionState } from '../internal/pickers/hooks/usePickerState';
7
+ export interface PickersDayProps<TDate> extends ExtendMui<ButtonBaseProps> {
8
+ /**
9
+ * If `true`, `onChange` is fired on click even if the same date is selected.
10
+ * @default false
11
+ */
12
+ allowSameDateSelection?: boolean;
13
+ /**
14
+ * Override or extend the styles applied to the component.
15
+ */
16
+ classes?: {
17
+ /** Styles applied to the root element. */
18
+ root?: string;
19
+ /** Styles applied to the root element if `disableMargin=false`. */
20
+ dayWithMargin?: string;
21
+ /** Styles applied to the root element if `outsideCurrentMonth=true` and `showDaysOutsideCurrentMonth=true`. */
22
+ dayOutsideMonth?: string;
23
+ /** Styles applied to the root element if `outsideCurrentMonth=true` and `showDaysOutsideCurrentMonth=false`. */
24
+ hiddenDaySpacingFiller?: string;
25
+ /** Styles applied to the root element if `disableHighlightToday=false` and `today=true`. */
26
+ today?: string;
27
+ /** State class applied to the root element if `selected=true`. */
28
+ selected?: string;
29
+ /** State class applied to the root element if `disabled=true`. */
30
+ disabled?: string;
31
+ };
32
+ /**
33
+ * The date to show.
34
+ */
35
+ day: TDate;
36
+ /**
37
+ * If `true`, renders as disabled.
38
+ * @default false
39
+ */
40
+ disabled?: boolean;
41
+ /**
42
+ * If `true`, todays date is rendering without highlighting with circle.
43
+ * @default false
44
+ */
45
+ disableHighlightToday?: boolean;
46
+ /**
47
+ * If `true`, days are rendering without margin. Useful for displaying linked range of days.
48
+ * @default false
49
+ */
50
+ disableMargin?: boolean;
51
+ isAnimating?: boolean;
52
+ onDayFocus?: (day: TDate) => void;
53
+ onDaySelect: (day: TDate, isFinish: PickerSelectionState) => void;
54
+ /**
55
+ * If `true`, day is outside of month and will be hidden.
56
+ */
57
+ outsideCurrentMonth: boolean;
58
+ /**
59
+ * If `true`, renders as selected.
60
+ * @default false
61
+ */
62
+ selected?: boolean;
63
+ /**
64
+ * If `true`, days that have `outsideCurrentMonth={true}` are displayed.
65
+ * @default false
66
+ */
67
+ showDaysOutsideCurrentMonth?: boolean;
68
+ /**
69
+ * If `true`, renders as today date.
70
+ * @default false
71
+ */
72
+ today?: boolean;
73
+ /**
74
+ * The system prop that allows defining system overrides as well as additional CSS styles.
75
+ */
76
+ sx?: SxProps<Theme>;
77
+ }
78
+ export declare type PickersDayClassKey = keyof NonNullable<PickersDayProps<unknown>['classes']>;
79
+ export declare function getPickersDayUtilityClass(slot: string): string;
80
+ export declare const pickersDayClasses: Record<"root" | "selected" | "disabled" | "dayWithMargin" | "dayOutsideMonth" | "hiddenDaySpacingFiller" | "today", string>;
81
+ export declare const areDayPropsEqual: (prevProps: PickersDayProps<any>, nextProps: PickersDayProps<any>) => boolean;
82
+ declare const _default: <TDate>(props: PickersDayProps<TDate> & React.RefAttributes<HTMLButtonElement>) => JSX.Element;
83
+ /**
84
+ *
85
+ * Demos:
86
+ *
87
+ * - [Date Picker](https://mui.com/components/date-picker/)
88
+ *
89
+ * API:
90
+ *
91
+ * - [PickersDay API](https://mui.com/api/pickers-day/)
92
+ */
93
+ export default _default;
@@ -1,4 +1,4 @@
1
- export { default } from './PickersDay';
2
- export { pickersDayClasses, getPickersDayUtilityClass } from './PickersDay';
3
- export declare type PickersDayClassKey = import('./PickersDay').PickersDayClassKey;
4
- export declare type PickersDayProps<TDate> = import('./PickersDay').PickersDayProps<TDate>;
1
+ export { default } from './PickersDay';
2
+ export { pickersDayClasses, getPickersDayUtilityClass } from './PickersDay';
3
+ export declare type PickersDayClassKey = import('./PickersDay').PickersDayClassKey;
4
+ export declare type PickersDayProps<TDate> = import('./PickersDay').PickersDayProps<TDate>;
@@ -1,25 +1,25 @@
1
- import * as React from 'react';
2
- import { BaseDatePickerProps } from '../DatePicker/shared';
3
- import { PickerStaticWrapperProps } from '../internal/pickers/wrappers/PickerStaticWrapper';
4
- export interface StaticDatePickerProps<TDate = unknown> extends BaseDatePickerProps<TDate> {
5
- /**
6
- * Force static wrapper inner components to be rendered in mobile or desktop mode.
7
- * @default 'mobile'
8
- */
9
- displayStaticWrapperAs?: PickerStaticWrapperProps['displayStaticWrapperAs'];
10
- }
11
- declare type StaticDatePickerComponent = (<TDate>(props: StaticDatePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
12
- propTypes?: any;
13
- };
14
- /**
15
- *
16
- * Demos:
17
- *
18
- * - [Date Picker](https://mui.com/components/date-picker/)
19
- *
20
- * API:
21
- *
22
- * - [StaticDatePicker API](https://mui.com/api/static-date-picker/)
23
- */
24
- declare const StaticDatePicker: StaticDatePickerComponent;
25
- export default StaticDatePicker;
1
+ import * as React from 'react';
2
+ import { BaseDatePickerProps } from '../DatePicker/shared';
3
+ import { PickerStaticWrapperProps } from '../internal/pickers/wrappers/PickerStaticWrapper';
4
+ export interface StaticDatePickerProps<TDate = unknown> extends BaseDatePickerProps<TDate> {
5
+ /**
6
+ * Force static wrapper inner components to be rendered in mobile or desktop mode.
7
+ * @default 'mobile'
8
+ */
9
+ displayStaticWrapperAs?: PickerStaticWrapperProps['displayStaticWrapperAs'];
10
+ }
11
+ declare type StaticDatePickerComponent = (<TDate>(props: StaticDatePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
12
+ propTypes?: any;
13
+ };
14
+ /**
15
+ *
16
+ * Demos:
17
+ *
18
+ * - [Date Picker](https://mui.com/components/date-picker/)
19
+ *
20
+ * API:
21
+ *
22
+ * - [StaticDatePicker API](https://mui.com/api/static-date-picker/)
23
+ */
24
+ declare const StaticDatePicker: StaticDatePickerComponent;
25
+ export default StaticDatePicker;
@@ -106,7 +106,11 @@ process.env.NODE_ENV !== "production" ? StaticDatePicker.propTypes
106
106
  * The props used for each slot inside.
107
107
  * @default {}
108
108
  */
109
- componentsProps: PropTypes.object,
109
+ componentsProps: PropTypes.shape({
110
+ leftArrowButton: PropTypes.object,
111
+ rightArrowButton: PropTypes.object,
112
+ switchViewButton: PropTypes.object
113
+ }),
110
114
 
111
115
  /**
112
116
  * Default calendar month displayed when `value={null}`.
@@ -1,2 +1,2 @@
1
- export * from './StaticDatePicker';
2
- export { default } from './StaticDatePicker';
1
+ export * from './StaticDatePicker';
2
+ export { default } from './StaticDatePicker';
@@ -1,67 +1,67 @@
1
- import * as React from 'react';
2
- import { PickerStaticWrapperProps } from '../internal/pickers/wrappers/PickerStaticWrapper';
3
- import { RangeInput, DateRange } from '../DateRangePicker/RangeTypes';
4
- import { DateRangeValidationError, ValidationProps } from '../internal/pickers/hooks/useValidation';
5
- import { ExportedDateRangePickerViewProps } from '../DateRangePicker/DateRangePickerView';
6
- import { ExportedDateRangePickerInputProps } from '../DateRangePicker/DateRangePickerInput';
7
- interface BaseDateRangePickerProps<TDate> extends ExportedDateRangePickerViewProps<TDate>, ValidationProps<DateRangeValidationError, RangeInput<TDate>>, ExportedDateRangePickerInputProps {
8
- /**
9
- * The components used for each slot.
10
- * Either a string to use a HTML element or a component.
11
- * @default {}
12
- */
13
- components?: ExportedDateRangePickerViewProps<TDate>['components'] & ExportedDateRangePickerInputProps['components'];
14
- /**
15
- * Text for end input label and toolbar placeholder.
16
- * @default 'End'
17
- */
18
- endText?: React.ReactNode;
19
- /**
20
- * Custom mask. Can be used to override generate from format. (e.g. `__/__/____ __:__` or `__/__/____ __:__ _M`).
21
- * @default '__/__/____'
22
- */
23
- mask?: ExportedDateRangePickerInputProps['mask'];
24
- /**
25
- * Min selectable date. @DateIOType
26
- */
27
- minDate?: TDate;
28
- /**
29
- * Max selectable date. @DateIOType
30
- */
31
- maxDate?: TDate;
32
- /**
33
- * Callback fired when the value (the selected date range) changes @DateIOType.
34
- */
35
- onChange: (date: DateRange<TDate>, keyboardInputValue?: string) => void;
36
- /**
37
- * Text for start input label and toolbar placeholder.
38
- * @default 'Start'
39
- */
40
- startText?: React.ReactNode;
41
- /**
42
- * The value of the date range picker.
43
- */
44
- value: RangeInput<TDate>;
45
- }
46
- export interface StaticDateRangePickerProps<TDate = unknown> extends BaseDateRangePickerProps<TDate> {
47
- /**
48
- * Force static wrapper inner components to be rendered in mobile or desktop mode.
49
- * @default 'mobile'
50
- */
51
- displayStaticWrapperAs?: PickerStaticWrapperProps['displayStaticWrapperAs'];
52
- }
53
- declare type StaticDateRangePickerComponent = (<TDate>(props: StaticDateRangePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
54
- propTypes: unknown;
55
- };
56
- /**
57
- *
58
- * Demos:
59
- *
60
- * - [Date Range Picker](https://mui.com/components/date-range-picker/)
61
- *
62
- * API:
63
- *
64
- * - [StaticDateRangePicker API](https://mui.com/api/static-date-range-picker/)
65
- */
66
- declare const StaticDateRangePicker: StaticDateRangePickerComponent;
67
- export default StaticDateRangePicker;
1
+ import * as React from 'react';
2
+ import { PickerStaticWrapperProps } from '../internal/pickers/wrappers/PickerStaticWrapper';
3
+ import { RangeInput, DateRange } from '../DateRangePicker/RangeTypes';
4
+ import { DateRangeValidationError, ValidationProps } from '../internal/pickers/hooks/useValidation';
5
+ import { ExportedDateRangePickerViewProps } from '../DateRangePicker/DateRangePickerView';
6
+ import { ExportedDateRangePickerInputProps } from '../DateRangePicker/DateRangePickerInput';
7
+ interface BaseDateRangePickerProps<TDate> extends ExportedDateRangePickerViewProps<TDate>, ValidationProps<DateRangeValidationError, RangeInput<TDate>>, ExportedDateRangePickerInputProps {
8
+ /**
9
+ * The components used for each slot.
10
+ * Either a string to use a HTML element or a component.
11
+ * @default {}
12
+ */
13
+ components?: ExportedDateRangePickerViewProps<TDate>['components'] & ExportedDateRangePickerInputProps['components'];
14
+ /**
15
+ * Text for end input label and toolbar placeholder.
16
+ * @default 'End'
17
+ */
18
+ endText?: React.ReactNode;
19
+ /**
20
+ * Custom mask. Can be used to override generate from format. (e.g. `__/__/____ __:__` or `__/__/____ __:__ _M`).
21
+ * @default '__/__/____'
22
+ */
23
+ mask?: ExportedDateRangePickerInputProps['mask'];
24
+ /**
25
+ * Min selectable date. @DateIOType
26
+ */
27
+ minDate?: TDate;
28
+ /**
29
+ * Max selectable date. @DateIOType
30
+ */
31
+ maxDate?: TDate;
32
+ /**
33
+ * Callback fired when the value (the selected date range) changes @DateIOType.
34
+ */
35
+ onChange: (date: DateRange<TDate>, keyboardInputValue?: string) => void;
36
+ /**
37
+ * Text for start input label and toolbar placeholder.
38
+ * @default 'Start'
39
+ */
40
+ startText?: React.ReactNode;
41
+ /**
42
+ * The value of the date range picker.
43
+ */
44
+ value: RangeInput<TDate>;
45
+ }
46
+ export interface StaticDateRangePickerProps<TDate = unknown> extends BaseDateRangePickerProps<TDate> {
47
+ /**
48
+ * Force static wrapper inner components to be rendered in mobile or desktop mode.
49
+ * @default 'mobile'
50
+ */
51
+ displayStaticWrapperAs?: PickerStaticWrapperProps['displayStaticWrapperAs'];
52
+ }
53
+ declare type StaticDateRangePickerComponent = (<TDate>(props: StaticDateRangePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
54
+ propTypes: unknown;
55
+ };
56
+ /**
57
+ *
58
+ * Demos:
59
+ *
60
+ * - [Date Range Picker](https://mui.com/components/date-range-picker/)
61
+ *
62
+ * API:
63
+ *
64
+ * - [StaticDateRangePicker API](https://mui.com/api/static-date-range-picker/)
65
+ */
66
+ declare const StaticDateRangePicker: StaticDateRangePickerComponent;
67
+ export default StaticDateRangePicker;
@@ -149,7 +149,11 @@ process.env.NODE_ENV !== "production" ? StaticDateRangePicker.propTypes
149
149
  * The props used for each slot inside.
150
150
  * @default {}
151
151
  */
152
- componentsProps: PropTypes.object,
152
+ componentsProps: PropTypes.shape({
153
+ leftArrowButton: PropTypes.object,
154
+ rightArrowButton: PropTypes.object,
155
+ switchViewButton: PropTypes.object
156
+ }),
153
157
 
154
158
  /**
155
159
  * Default calendar month displayed when `value={null}`.
@@ -1,2 +1,2 @@
1
- export * from './StaticDateRangePicker';
2
- export { default } from './StaticDateRangePicker';
1
+ export * from './StaticDateRangePicker';
2
+ export { default } from './StaticDateRangePicker';
@@ -1,25 +1,25 @@
1
- import * as React from 'react';
2
- import { BaseDateTimePickerProps } from '../DateTimePicker/shared';
3
- import { PickerStaticWrapperProps } from '../internal/pickers/wrappers/PickerStaticWrapper';
4
- export interface StaticDateTimePickerProps<TDate = unknown> extends BaseDateTimePickerProps<TDate> {
5
- /**
6
- * Force static wrapper inner components to be rendered in mobile or desktop mode.
7
- * @default 'mobile'
8
- */
9
- displayStaticWrapperAs?: PickerStaticWrapperProps['displayStaticWrapperAs'];
10
- }
11
- declare type StaticDateTimePickerComponent = (<TDate>(props: StaticDateTimePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
12
- propTypes?: any;
13
- };
14
- /**
15
- *
16
- * Demos:
17
- *
18
- * - [Date Time Picker](https://mui.com/components/date-time-picker/)
19
- *
20
- * API:
21
- *
22
- * - [StaticDateTimePicker API](https://mui.com/api/static-date-time-picker/)
23
- */
24
- declare const StaticDateTimePicker: StaticDateTimePickerComponent;
25
- export default StaticDateTimePicker;
1
+ import * as React from 'react';
2
+ import { BaseDateTimePickerProps } from '../DateTimePicker/shared';
3
+ import { PickerStaticWrapperProps } from '../internal/pickers/wrappers/PickerStaticWrapper';
4
+ export interface StaticDateTimePickerProps<TDate = unknown> extends BaseDateTimePickerProps<TDate> {
5
+ /**
6
+ * Force static wrapper inner components to be rendered in mobile or desktop mode.
7
+ * @default 'mobile'
8
+ */
9
+ displayStaticWrapperAs?: PickerStaticWrapperProps['displayStaticWrapperAs'];
10
+ }
11
+ declare type StaticDateTimePickerComponent = (<TDate>(props: StaticDateTimePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
12
+ propTypes?: any;
13
+ };
14
+ /**
15
+ *
16
+ * Demos:
17
+ *
18
+ * - [Date Time Picker](https://mui.com/components/date-time-picker/)
19
+ *
20
+ * API:
21
+ *
22
+ * - [StaticDateTimePicker API](https://mui.com/api/static-date-time-picker/)
23
+ */
24
+ declare const StaticDateTimePicker: StaticDateTimePickerComponent;
25
+ export default StaticDateTimePicker;
@@ -118,7 +118,11 @@ process.env.NODE_ENV !== "production" ? StaticDateTimePicker.propTypes
118
118
  * The props used for each slot inside.
119
119
  * @default {}
120
120
  */
121
- componentsProps: PropTypes.object,
121
+ componentsProps: PropTypes.shape({
122
+ leftArrowButton: PropTypes.object,
123
+ rightArrowButton: PropTypes.object,
124
+ switchViewButton: PropTypes.object
125
+ }),
122
126
 
123
127
  /**
124
128
  * Date tab icon.
@@ -1,2 +1,2 @@
1
- export * from './StaticDateTimePicker';
2
- export { default } from './StaticDateTimePicker';
1
+ export * from './StaticDateTimePicker';
2
+ export { default } from './StaticDateTimePicker';