@mui/lab 5.0.0-alpha.73 → 5.0.0-alpha.74

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 (145) 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 +43 -0
  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/ClockPickerStandalone.d.ts +28 -28
  21. package/ClockPicker/ClockPointer.d.ts +23 -23
  22. package/ClockPicker/index.d.ts +5 -5
  23. package/ClockPicker/shared.d.ts +5 -5
  24. package/DatePicker/DatePicker.d.ts +27 -27
  25. package/DatePicker/DatePickerToolbar.d.ts +23 -23
  26. package/DatePicker/index.d.ts +2 -2
  27. package/DatePicker/shared.d.ts +45 -45
  28. package/DateRangePicker/DateRangePicker.d.ts +65 -65
  29. package/DateRangePicker/DateRangePickerInput.d.ts +35 -35
  30. package/DateRangePicker/DateRangePickerToolbar.d.ts +15 -15
  31. package/DateRangePicker/DateRangePickerView.d.ts +44 -44
  32. package/DateRangePicker/DateRangePickerViewDesktop.d.ts +29 -29
  33. package/DateRangePicker/DateRangePickerViewMobile.d.ts +17 -17
  34. package/DateRangePicker/RangeTypes.d.ts +8 -8
  35. package/DateRangePicker/date-range-manager.d.ts +14 -14
  36. package/DateRangePicker/index.d.ts +3 -3
  37. package/DateRangePickerDay/DateRangePickerDay.d.ts +79 -79
  38. package/DateRangePickerDay/index.d.ts +2 -2
  39. package/DateTimePicker/DateTimePicker.d.ts +27 -27
  40. package/DateTimePicker/DateTimePickerTabs.d.ts +13 -13
  41. package/DateTimePicker/DateTimePickerToolbar.d.ts +7 -7
  42. package/DateTimePicker/index.d.ts +2 -2
  43. package/DateTimePicker/shared.d.ts +67 -67
  44. package/DesktopDatePicker/DesktopDatePicker.d.ts +20 -20
  45. package/DesktopDatePicker/index.d.ts +2 -2
  46. package/DesktopDateRangePicker/DesktopDateRangePicker.d.ts +64 -64
  47. package/DesktopDateRangePicker/index.d.ts +2 -2
  48. package/DesktopDateTimePicker/DesktopDateTimePicker.d.ts +20 -20
  49. package/DesktopDateTimePicker/index.d.ts +2 -2
  50. package/DesktopTimePicker/DesktopTimePicker.d.ts +20 -20
  51. package/DesktopTimePicker/index.d.ts +2 -2
  52. package/LoadingButton/loadingButtonClasses.d.ts +22 -22
  53. package/LocalizationProvider/LocalizationProvider.d.ts +35 -35
  54. package/LocalizationProvider/index.d.ts +2 -2
  55. package/Masonry/masonryClasses.d.ts +8 -8
  56. package/MobileDatePicker/MobileDatePicker.d.ts +20 -20
  57. package/MobileDatePicker/index.d.ts +2 -2
  58. package/MobileDateRangePicker/MobileDateRangePicker.d.ts +64 -64
  59. package/MobileDateRangePicker/index.d.ts +2 -2
  60. package/MobileDateTimePicker/MobileDateTimePicker.d.ts +20 -20
  61. package/MobileDateTimePicker/index.d.ts +2 -2
  62. package/MobileTimePicker/MobileTimePicker.d.ts +20 -20
  63. package/MobileTimePicker/index.d.ts +2 -2
  64. package/MonthPicker/MonthPicker.d.ts +53 -53
  65. package/MonthPicker/PickersMonth.d.ts +15 -15
  66. package/MonthPicker/index.d.ts +3 -3
  67. package/PickersDay/PickersDay.d.ts +93 -93
  68. package/PickersDay/index.d.ts +4 -4
  69. package/StaticDatePicker/StaticDatePicker.d.ts +25 -25
  70. package/StaticDatePicker/index.d.ts +2 -2
  71. package/StaticDateRangePicker/StaticDateRangePicker.d.ts +67 -67
  72. package/StaticDateRangePicker/index.d.ts +2 -2
  73. package/StaticDateTimePicker/StaticDateTimePicker.d.ts +25 -25
  74. package/StaticDateTimePicker/index.d.ts +2 -2
  75. package/StaticTimePicker/StaticTimePicker.d.ts +25 -25
  76. package/StaticTimePicker/index.d.ts +2 -2
  77. package/TabPanel/tabPanelClasses.d.ts +8 -8
  78. package/TimePicker/TimePicker.d.ts +27 -27
  79. package/TimePicker/TimePickerToolbar.d.ts +23 -23
  80. package/TimePicker/index.d.ts +2 -2
  81. package/TimePicker/shared.d.ts +36 -36
  82. package/Timeline/Timeline.d.ts +59 -59
  83. package/Timeline/TimelineContext.d.ts +6 -6
  84. package/Timeline/index.d.ts +5 -5
  85. package/Timeline/timelineClasses.d.ts +3 -3
  86. package/TimelineConnector/timelineConnectorClasses.d.ts +8 -8
  87. package/TimelineContent/timelineContentClasses.d.ts +14 -14
  88. package/TimelineDot/timelineDotClasses.d.ts +24 -24
  89. package/TimelineItem/timelineItemClasses.d.ts +16 -16
  90. package/TimelineOppositeContent/timelineOppositeContentClasses.d.ts +14 -14
  91. package/TimelineSeparator/timelineSeparatorClasses.d.ts +8 -8
  92. package/TreeItem/treeItemClasses.d.ts +24 -24
  93. package/TreeView/treeViewClasses.d.ts +8 -8
  94. package/YearPicker/PickersYear.d.ts +27 -27
  95. package/YearPicker/YearPicker.d.ts +44 -44
  96. package/YearPicker/index.d.ts +5 -5
  97. package/YearPicker/yearPickerClasses.d.ts +3 -3
  98. package/index.js +1 -1
  99. package/internal/pickers/KeyboardDateInput.d.ts +4 -4
  100. package/internal/pickers/Picker/Picker.d.ts +33 -33
  101. package/internal/pickers/Picker/PickerView.d.ts +3 -3
  102. package/internal/pickers/PickersArrowSwitcher.d.ts +41 -41
  103. package/internal/pickers/PickersModalDialog.d.ts +47 -47
  104. package/internal/pickers/PickersPopper.d.ts +44 -44
  105. package/internal/pickers/PickersToolbar.d.ts +14 -14
  106. package/internal/pickers/PickersToolbarButton.d.ts +13 -13
  107. package/internal/pickers/PickersToolbarText.d.ts +8 -8
  108. package/internal/pickers/PureDateInput.d.ts +80 -80
  109. package/internal/pickers/constants/dimensions.d.ts +4 -4
  110. package/internal/pickers/constants/prop-types.d.ts +1 -1
  111. package/internal/pickers/date-time-utils.d.ts +8 -8
  112. package/internal/pickers/date-utils.d.ts +52 -52
  113. package/internal/pickers/hooks/date-helpers-hooks.d.ts +16 -16
  114. package/internal/pickers/hooks/useIsLandscape.d.ts +4 -4
  115. package/internal/pickers/hooks/useMaskedInput.d.ts +7 -7
  116. package/internal/pickers/hooks/useOpenState.d.ts +10 -10
  117. package/internal/pickers/hooks/usePickerState.d.ts +38 -38
  118. package/internal/pickers/hooks/useUtils.d.ts +7 -7
  119. package/internal/pickers/hooks/useValidation.d.ts +23 -23
  120. package/internal/pickers/hooks/useViews.d.ts +19 -19
  121. package/internal/pickers/text-field-helper.d.ts +11 -11
  122. package/internal/pickers/time-utils.d.ts +33 -33
  123. package/internal/pickers/typings/BasePicker.d.ts +95 -95
  124. package/internal/pickers/typings/Views.d.ts +1 -1
  125. package/internal/pickers/typings/helpers.d.ts +9 -9
  126. package/internal/pickers/utils.d.ts +7 -7
  127. package/internal/pickers/wrappers/DesktopTooltipWrapper.d.ts +4 -4
  128. package/internal/pickers/wrappers/DesktopWrapper.d.ts +16 -16
  129. package/internal/pickers/wrappers/MobileWrapper.d.ts +14 -14
  130. package/internal/pickers/wrappers/PickerStaticWrapper.d.ts +21 -21
  131. package/internal/pickers/wrappers/ResponsiveWrapper.d.ts +23 -23
  132. package/internal/pickers/wrappers/WrapperProps.d.ts +13 -13
  133. package/internal/pickers/wrappers/WrapperVariantContext.d.ts +11 -11
  134. package/internal/svg-icons/ArrowDropDown.d.ts +7 -7
  135. package/internal/svg-icons/ArrowLeft.d.ts +7 -7
  136. package/internal/svg-icons/ArrowRight.d.ts +7 -7
  137. package/internal/svg-icons/Calendar.d.ts +7 -7
  138. package/internal/svg-icons/Clock.d.ts +7 -7
  139. package/internal/svg-icons/DateRange.d.ts +7 -7
  140. package/internal/svg-icons/Pen.d.ts +7 -7
  141. package/internal/svg-icons/Time.d.ts +7 -7
  142. package/legacy/index.js +1 -1
  143. package/modern/index.js +1 -1
  144. package/node/index.js +1 -1
  145. package/package.json +3 -3
@@ -1,23 +1,23 @@
1
- import * as React from 'react';
2
- import { ToolbarComponentProps } from '../internal/pickers/typings/BasePicker';
3
- export interface TimePickerToolbarClasses {
4
- separator: string;
5
- hourMinuteLabel: string;
6
- hourMinuteLabelLandscape: string;
7
- hourMinuteLabelReverse: string;
8
- ampmSelection: string;
9
- ampmLandscape: string;
10
- ampmLabel: string;
11
- penIconLandscape: string;
12
- }
13
- export interface TimePickerToolbarProps extends ToolbarComponentProps {
14
- classes?: Partial<TimePickerToolbarClasses>;
15
- }
16
- export declare type TimePickerToolbarClassKey = keyof TimePickerToolbarClasses;
17
- export declare function getTimePickerToolbarUtilityClass(slot: string): string;
18
- export declare const timePickerToolbarClasses: TimePickerToolbarClasses;
19
- /**
20
- * @ignore - internal component.
21
- */
22
- declare const TimePickerToolbar: React.FC<ToolbarComponentProps>;
23
- export default TimePickerToolbar;
1
+ import * as React from 'react';
2
+ import { ToolbarComponentProps } from '../internal/pickers/typings/BasePicker';
3
+ export interface TimePickerToolbarClasses {
4
+ separator: string;
5
+ hourMinuteLabel: string;
6
+ hourMinuteLabelLandscape: string;
7
+ hourMinuteLabelReverse: string;
8
+ ampmSelection: string;
9
+ ampmLandscape: string;
10
+ ampmLabel: string;
11
+ penIconLandscape: string;
12
+ }
13
+ export interface TimePickerToolbarProps extends ToolbarComponentProps {
14
+ classes?: Partial<TimePickerToolbarClasses>;
15
+ }
16
+ export declare type TimePickerToolbarClassKey = keyof TimePickerToolbarClasses;
17
+ export declare function getTimePickerToolbarUtilityClass(slot: string): string;
18
+ export declare const timePickerToolbarClasses: TimePickerToolbarClasses;
19
+ /**
20
+ * @ignore - internal component.
21
+ */
22
+ declare const TimePickerToolbar: React.FC<ToolbarComponentProps>;
23
+ export default TimePickerToolbar;
@@ -1,2 +1,2 @@
1
- export * from './TimePicker';
2
- export { default } from './TimePicker';
1
+ export * from './TimePicker';
2
+ export { default } from './TimePicker';
@@ -1,36 +1,36 @@
1
- import * as React from 'react';
2
- import { ParseableDate } from '../internal/pickers/constants/prop-types';
3
- import { ExportedClockPickerProps } from '../ClockPicker/ClockPicker';
4
- import { TimeValidationError, ValidationProps } from '../internal/pickers/hooks/useValidation';
5
- import { BasePickerProps, ToolbarComponentProps } from '../internal/pickers/typings/BasePicker';
6
- import { ExportedDateInputProps } from '../internal/pickers/PureDateInput';
7
- export declare type TimePickerView = 'hours' | 'minutes' | 'seconds';
8
- export interface BaseTimePickerProps<TDate> extends ExportedClockPickerProps<TDate>, BasePickerProps<ParseableDate<TDate>, TDate | null>, ValidationProps<TimeValidationError, ParseableDate<TDate>>, ExportedDateInputProps<ParseableDate<TDate>, TDate | null> {
9
- /**
10
- * Callback fired on view change.
11
- */
12
- onViewChange?: (view: TimePickerView) => void;
13
- /**
14
- * First view to show.
15
- */
16
- openTo?: TimePickerView;
17
- /**
18
- * Component that will replace default toolbar renderer.
19
- * @default TimePickerToolbar
20
- */
21
- ToolbarComponent?: React.JSXElementConstructor<ToolbarComponentProps<TDate | null>>;
22
- /**
23
- * Mobile picker title, displaying in the toolbar.
24
- * @default 'Select time'
25
- */
26
- toolbarTitle?: React.ReactNode;
27
- /**
28
- * Array of views to show.
29
- */
30
- views?: readonly TimePickerView[];
31
- }
32
- declare type DefaultizedProps<Props> = Props & {
33
- inputFormat: string;
34
- };
35
- export declare function useTimePickerDefaultizedProps<Props extends BaseTimePickerProps<unknown>>({ ampm, components, inputFormat, openTo, views, ...other }: Props, name: string): DefaultizedProps<Props> & Required<Pick<BaseTimePickerProps<unknown>, 'openTo' | 'views'>>;
36
- export {};
1
+ import * as React from 'react';
2
+ import { ParseableDate } from '../internal/pickers/constants/prop-types';
3
+ import { ExportedClockPickerProps } from '../ClockPicker/ClockPicker';
4
+ import { TimeValidationError, ValidationProps } from '../internal/pickers/hooks/useValidation';
5
+ import { BasePickerProps, ToolbarComponentProps } from '../internal/pickers/typings/BasePicker';
6
+ import { ExportedDateInputProps } from '../internal/pickers/PureDateInput';
7
+ export declare type TimePickerView = 'hours' | 'minutes' | 'seconds';
8
+ export interface BaseTimePickerProps<TDate> extends ExportedClockPickerProps<TDate>, BasePickerProps<ParseableDate<TDate>, TDate | null>, ValidationProps<TimeValidationError, ParseableDate<TDate>>, ExportedDateInputProps<ParseableDate<TDate>, TDate | null> {
9
+ /**
10
+ * Callback fired on view change.
11
+ */
12
+ onViewChange?: (view: TimePickerView) => void;
13
+ /**
14
+ * First view to show.
15
+ */
16
+ openTo?: TimePickerView;
17
+ /**
18
+ * Component that will replace default toolbar renderer.
19
+ * @default TimePickerToolbar
20
+ */
21
+ ToolbarComponent?: React.JSXElementConstructor<ToolbarComponentProps<TDate | null>>;
22
+ /**
23
+ * Mobile picker title, displaying in the toolbar.
24
+ * @default 'Select time'
25
+ */
26
+ toolbarTitle?: React.ReactNode;
27
+ /**
28
+ * Array of views to show.
29
+ */
30
+ views?: readonly TimePickerView[];
31
+ }
32
+ declare type DefaultizedProps<Props> = Props & {
33
+ inputFormat: string;
34
+ };
35
+ export declare function useTimePickerDefaultizedProps<Props extends BaseTimePickerProps<unknown>>({ ampm, components, inputFormat, openTo, views, ...other }: Props, name: string): DefaultizedProps<Props> & Required<Pick<BaseTimePickerProps<unknown>, 'openTo' | 'views'>>;
36
+ export {};
@@ -1,59 +1,59 @@
1
- import * as React from 'react';
2
- import { SxProps } from '@mui/system';
3
- import { InternalStandardProps as StandardProps } from '@mui/material';
4
- import { Theme } from '@mui/material/styles';
5
- export declare type TimelineClassKey = keyof NonNullable<TimelineProps['classes']>;
6
- export interface TimelineProps extends StandardProps<React.HTMLAttributes<HTMLUListElement>> {
7
- /**
8
- * The position where the TimelineContent should appear relative to the time axis.
9
- * @default 'right'
10
- */
11
- position?: 'left' | 'right' | 'alternate';
12
- /**
13
- * The content of the component.
14
- */
15
- children?: React.ReactNode;
16
- /**
17
- * Override or extend the styles applied to the component.
18
- */
19
- classes?: {
20
- /** Styles applied to the root element. */
21
- root?: string;
22
- /** Styles applied to the root element if `position="left"`. */
23
- positionLeft?: string;
24
- /** Styles applied to the root element if `position="right"`. */
25
- positionRight?: string;
26
- /** Styles applied to the root element if `position="alternate"`. */
27
- positionAlternate?: string;
28
- };
29
- /**
30
- * className applied to the root element.
31
- */
32
- className?: string;
33
- /**
34
- * The system prop that allows defining system overrides as well as additional CSS styles.
35
- */
36
- sx?: SxProps<Theme>;
37
- }
38
- /**
39
- *
40
- * Demos:
41
- *
42
- * - [Timeline](https://mui.com/components/timeline/)
43
- *
44
- * API:
45
- *
46
- * - [Timeline API](https://mui.com/api/timeline/)
47
- */
48
- declare const Timeline: React.ForwardRefExoticComponent<Pick<TimelineProps, "slot" | "style" | "title" | "hidden" | "className" | "color" | "position" | "translate" | "classes" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "sx"> & React.RefAttributes<HTMLUListElement>>;
49
- /**
50
- *
51
- * Demos:
52
- *
53
- * - [Timeline](https://mui.com/components/timeline/)
54
- *
55
- * API:
56
- *
57
- * - [Timeline API](https://mui.com/api/timeline/)
58
- */
59
- export default Timeline;
1
+ import * as React from 'react';
2
+ import { SxProps } from '@mui/system';
3
+ import { InternalStandardProps as StandardProps } from '@mui/material';
4
+ import { Theme } from '@mui/material/styles';
5
+ export declare type TimelineClassKey = keyof NonNullable<TimelineProps['classes']>;
6
+ export interface TimelineProps extends StandardProps<React.HTMLAttributes<HTMLUListElement>> {
7
+ /**
8
+ * The position where the TimelineContent should appear relative to the time axis.
9
+ * @default 'right'
10
+ */
11
+ position?: 'left' | 'right' | 'alternate';
12
+ /**
13
+ * The content of the component.
14
+ */
15
+ children?: React.ReactNode;
16
+ /**
17
+ * Override or extend the styles applied to the component.
18
+ */
19
+ classes?: {
20
+ /** Styles applied to the root element. */
21
+ root?: string;
22
+ /** Styles applied to the root element if `position="left"`. */
23
+ positionLeft?: string;
24
+ /** Styles applied to the root element if `position="right"`. */
25
+ positionRight?: string;
26
+ /** Styles applied to the root element if `position="alternate"`. */
27
+ positionAlternate?: string;
28
+ };
29
+ /**
30
+ * className applied to the root element.
31
+ */
32
+ className?: string;
33
+ /**
34
+ * The system prop that allows defining system overrides as well as additional CSS styles.
35
+ */
36
+ sx?: SxProps<Theme>;
37
+ }
38
+ /**
39
+ *
40
+ * Demos:
41
+ *
42
+ * - [Timeline](https://mui.com/components/timeline/)
43
+ *
44
+ * API:
45
+ *
46
+ * - [Timeline API](https://mui.com/api/timeline/)
47
+ */
48
+ declare const Timeline: React.ForwardRefExoticComponent<Pick<TimelineProps, "slot" | "style" | "title" | "hidden" | "className" | "color" | "position" | "translate" | "classes" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "sx"> & React.RefAttributes<HTMLUListElement>>;
49
+ /**
50
+ *
51
+ * Demos:
52
+ *
53
+ * - [Timeline](https://mui.com/components/timeline/)
54
+ *
55
+ * API:
56
+ *
57
+ * - [Timeline API](https://mui.com/api/timeline/)
58
+ */
59
+ export default Timeline;
@@ -1,6 +1,6 @@
1
- import * as React from 'react';
2
- /**
3
- * @ignore - internal component.
4
- */
5
- declare const TimelineContext: React.Context<{}>;
6
- export default TimelineContext;
1
+ import * as React from 'react';
2
+ /**
3
+ * @ignore - internal component.
4
+ */
5
+ declare const TimelineContext: React.Context<{}>;
6
+ export default TimelineContext;
@@ -1,5 +1,5 @@
1
- export { default } from './Timeline';
2
- export declare type TimelineClassKey = import('./Timeline').TimelineClassKey;
3
- export declare type TimelineProps = import('./Timeline').TimelineProps;
4
- export { default as timelineClasses } from './timelineClasses';
5
- export * from './timelineClasses';
1
+ export { default } from './Timeline';
2
+ export declare type TimelineClassKey = import('./Timeline').TimelineClassKey;
3
+ export declare type TimelineProps = import('./Timeline').TimelineProps;
4
+ export { default as timelineClasses } from './timelineClasses';
5
+ export * from './timelineClasses';
@@ -1,3 +1,3 @@
1
- export declare function getTimelineUtilityClass(slot: string): string;
2
- declare const timelineClasses: Record<"root" | "positionLeft" | "positionRight" | "positionAlternate", string>;
3
- export default timelineClasses;
1
+ export declare function getTimelineUtilityClass(slot: string): string;
2
+ declare const timelineClasses: Record<"root" | "positionLeft" | "positionRight" | "positionAlternate", string>;
3
+ export default timelineClasses;
@@ -1,8 +1,8 @@
1
- export interface TimelineConnectorClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- }
5
- export declare type TimelineConnectorClassKey = keyof TimelineConnectorClasses;
6
- export declare function getTimelineConnectorUtilityClass(slot: string): string;
7
- declare const timelineConnectorClasses: TimelineConnectorClasses;
8
- export default timelineConnectorClasses;
1
+ export interface TimelineConnectorClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ }
5
+ export declare type TimelineConnectorClassKey = keyof TimelineConnectorClasses;
6
+ export declare function getTimelineConnectorUtilityClass(slot: string): string;
7
+ declare const timelineConnectorClasses: TimelineConnectorClasses;
8
+ export default timelineConnectorClasses;
@@ -1,14 +1,14 @@
1
- export interface TimelineContentClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if `position="right"`. */
5
- positionRight: string;
6
- /** Styles applied to the root element if `position="left"`. */
7
- positionLeft: string;
8
- /** Styles applied to the root element if `position="alternate"`. */
9
- positionAlternate: string;
10
- }
11
- export declare type TimelineContentClassKey = keyof TimelineContentClasses;
12
- export declare function getTimelineContentUtilityClass(slot: string): string;
13
- declare const timelineContentClasses: TimelineContentClasses;
14
- export default timelineContentClasses;
1
+ export interface TimelineContentClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if `position="right"`. */
5
+ positionRight: string;
6
+ /** Styles applied to the root element if `position="left"`. */
7
+ positionLeft: string;
8
+ /** Styles applied to the root element if `position="alternate"`. */
9
+ positionAlternate: string;
10
+ }
11
+ export declare type TimelineContentClassKey = keyof TimelineContentClasses;
12
+ export declare function getTimelineContentUtilityClass(slot: string): string;
13
+ declare const timelineContentClasses: TimelineContentClasses;
14
+ export default timelineContentClasses;
@@ -1,24 +1,24 @@
1
- export interface TimelineDotClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if `variant="filled"`. */
5
- filled: string;
6
- /** Styles applied to the root element if `variant="outlined"`. */
7
- outlined: string;
8
- /** Styles applied to the root element if `color="grey"` and `variant="filled"`. */
9
- filledGrey: string;
10
- /** Styles applied to the root element if `color="grey"` and `variant="outlined"`. */
11
- outlinedGrey: string;
12
- /** Styles applied to the root element if `color="primary"` and `variant="filled"`. */
13
- filledPrimary: string;
14
- /** Styles applied to the root element if `color="primary"` and `variant="outlined"`. */
15
- outlinedPrimary: string;
16
- /** Styles applied to the root element if `color="secondary"` and `variant="filled"`. */
17
- filledSecondary: string;
18
- /** Styles applied to the root element if `color="secondary"` and `variant="outlined"`. */
19
- outlinedSecondary: string;
20
- }
21
- export declare type TimelineDotClassKey = keyof TimelineDotClasses;
22
- export declare function getTimelineDotUtilityClass(slot: string): string;
23
- declare const timelineDotClasses: TimelineDotClasses;
24
- export default timelineDotClasses;
1
+ export interface TimelineDotClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if `variant="filled"`. */
5
+ filled: string;
6
+ /** Styles applied to the root element if `variant="outlined"`. */
7
+ outlined: string;
8
+ /** Styles applied to the root element if `color="grey"` and `variant="filled"`. */
9
+ filledGrey: string;
10
+ /** Styles applied to the root element if `color="grey"` and `variant="outlined"`. */
11
+ outlinedGrey: string;
12
+ /** Styles applied to the root element if `color="primary"` and `variant="filled"`. */
13
+ filledPrimary: string;
14
+ /** Styles applied to the root element if `color="primary"` and `variant="outlined"`. */
15
+ outlinedPrimary: string;
16
+ /** Styles applied to the root element if `color="secondary"` and `variant="filled"`. */
17
+ filledSecondary: string;
18
+ /** Styles applied to the root element if `color="secondary"` and `variant="outlined"`. */
19
+ outlinedSecondary: string;
20
+ }
21
+ export declare type TimelineDotClassKey = keyof TimelineDotClasses;
22
+ export declare function getTimelineDotUtilityClass(slot: string): string;
23
+ declare const timelineDotClasses: TimelineDotClasses;
24
+ export default timelineDotClasses;
@@ -1,16 +1,16 @@
1
- export interface TimelineItemClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if `position="left"`. */
5
- positionLeft: string;
6
- /** Styles applied to the root element if `position="right"`. */
7
- positionRight: string;
8
- /** Styles applied to the root element if `position="alternate"`. */
9
- positionAlternate: string;
10
- /** Styles applied to the root element if TimelineOppositeContent isn't provided. */
11
- missingOppositeContent: string;
12
- }
13
- export declare type TimelineItemClassKey = keyof TimelineItemClasses;
14
- export declare function getTimelineItemUtilityClass(slot: string): string;
15
- declare const timelineItemClasses: TimelineItemClasses;
16
- export default timelineItemClasses;
1
+ export interface TimelineItemClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if `position="left"`. */
5
+ positionLeft: string;
6
+ /** Styles applied to the root element if `position="right"`. */
7
+ positionRight: string;
8
+ /** Styles applied to the root element if `position="alternate"`. */
9
+ positionAlternate: string;
10
+ /** Styles applied to the root element if TimelineOppositeContent isn't provided. */
11
+ missingOppositeContent: string;
12
+ }
13
+ export declare type TimelineItemClassKey = keyof TimelineItemClasses;
14
+ export declare function getTimelineItemUtilityClass(slot: string): string;
15
+ declare const timelineItemClasses: TimelineItemClasses;
16
+ export default timelineItemClasses;
@@ -1,14 +1,14 @@
1
- export interface TimelineOppositeContentClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if `position="right"`. */
5
- positionRight: string;
6
- /** Styles applied to the root element if `position="left"`. */
7
- positionLeft: string;
8
- /** Styles applied to the root element if `position="alternate"`. */
9
- positionAlternate: string;
10
- }
11
- export declare type TimelineOppositeContentClassKey = keyof TimelineOppositeContentClasses;
12
- export declare function getTimelineOppositeContentUtilityClass(slot: string): string;
13
- declare const timelineOppositeContentClasses: TimelineOppositeContentClasses;
14
- export default timelineOppositeContentClasses;
1
+ export interface TimelineOppositeContentClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if `position="right"`. */
5
+ positionRight: string;
6
+ /** Styles applied to the root element if `position="left"`. */
7
+ positionLeft: string;
8
+ /** Styles applied to the root element if `position="alternate"`. */
9
+ positionAlternate: string;
10
+ }
11
+ export declare type TimelineOppositeContentClassKey = keyof TimelineOppositeContentClasses;
12
+ export declare function getTimelineOppositeContentUtilityClass(slot: string): string;
13
+ declare const timelineOppositeContentClasses: TimelineOppositeContentClasses;
14
+ export default timelineOppositeContentClasses;
@@ -1,8 +1,8 @@
1
- export interface TimelineSeparatorClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- }
5
- export declare type TimelineSeparatorClassKey = keyof TimelineSeparatorClasses;
6
- export declare function getTimelineSeparatorUtilityClass(slot: string): string;
7
- declare const timelineSeparatorClasses: TimelineSeparatorClasses;
8
- export default timelineSeparatorClasses;
1
+ export interface TimelineSeparatorClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ }
5
+ export declare type TimelineSeparatorClassKey = keyof TimelineSeparatorClasses;
6
+ export declare function getTimelineSeparatorUtilityClass(slot: string): string;
7
+ declare const timelineSeparatorClasses: TimelineSeparatorClasses;
8
+ export default timelineSeparatorClasses;
@@ -1,24 +1,24 @@
1
- export interface TreeItemClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the transition component. */
5
- group: string;
6
- /** Styles applied to the content element. */
7
- content: string;
8
- /** State class applied to the content element when expanded. */
9
- expanded: string;
10
- /** State class applied to the content element when selected. */
11
- selected: string;
12
- /** State class applied to the content element when focused. */
13
- focused: string;
14
- /** State class applied to the element when disabled. */
15
- disabled: string;
16
- /** Styles applied to the tree node icon. */
17
- iconContainer: string;
18
- /** Styles applied to the label element. */
19
- label: string;
20
- }
21
- export declare type TreeItemClassKey = keyof TreeItemClasses;
22
- export declare function getTreeItemUtilityClass(slot: string): string;
23
- declare const treeItemClasses: TreeItemClasses;
24
- export default treeItemClasses;
1
+ export interface TreeItemClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the transition component. */
5
+ group: string;
6
+ /** Styles applied to the content element. */
7
+ content: string;
8
+ /** State class applied to the content element when expanded. */
9
+ expanded: string;
10
+ /** State class applied to the content element when selected. */
11
+ selected: string;
12
+ /** State class applied to the content element when focused. */
13
+ focused: string;
14
+ /** State class applied to the element when disabled. */
15
+ disabled: string;
16
+ /** Styles applied to the tree node icon. */
17
+ iconContainer: string;
18
+ /** Styles applied to the label element. */
19
+ label: string;
20
+ }
21
+ export declare type TreeItemClassKey = keyof TreeItemClasses;
22
+ export declare function getTreeItemUtilityClass(slot: string): string;
23
+ declare const treeItemClasses: TreeItemClasses;
24
+ export default treeItemClasses;
@@ -1,8 +1,8 @@
1
- export interface TreeViewClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- }
5
- export declare type TreeViewClassKey = keyof TreeViewClasses;
6
- export declare function getTreeViewUtilityClass(slot: string): string;
7
- declare const treeViewClasses: TreeViewClasses;
8
- export default treeViewClasses;
1
+ export interface TreeViewClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ }
5
+ export declare type TreeViewClassKey = keyof TreeViewClasses;
6
+ export declare function getTreeViewUtilityClass(slot: string): string;
7
+ declare const treeViewClasses: TreeViewClasses;
8
+ export default treeViewClasses;
@@ -1,27 +1,27 @@
1
- import * as React from 'react';
2
- export interface YearProps {
3
- autoFocus?: boolean;
4
- children: React.ReactNode;
5
- classes?: {
6
- root?: string;
7
- modeDesktop?: string;
8
- modeMobile?: string;
9
- yearButton?: string;
10
- disabled?: string;
11
- selected?: string;
12
- };
13
- className?: string;
14
- disabled?: boolean;
15
- onClick: (event: React.MouseEvent, value: number) => void;
16
- onKeyDown: (event: React.KeyboardEvent, value: number) => void;
17
- selected: boolean;
18
- value: number;
19
- }
20
- export declare function getPickersYearUtilityClass(slot: string): string;
21
- export declare type PickersYearClassKey = keyof NonNullable<YearProps['classes']>;
22
- export declare const pickersYearClasses: Record<"root" | "selected" | "disabled" | "modeDesktop" | "modeMobile" | "yearButton", string>;
23
- /**
24
- * @ignore - internal component.
25
- */
26
- declare const PickersYear: React.ForwardRefExoticComponent<YearProps & React.RefAttributes<HTMLButtonElement>>;
27
- export default PickersYear;
1
+ import * as React from 'react';
2
+ export interface YearProps {
3
+ autoFocus?: boolean;
4
+ children: React.ReactNode;
5
+ classes?: {
6
+ root?: string;
7
+ modeDesktop?: string;
8
+ modeMobile?: string;
9
+ yearButton?: string;
10
+ disabled?: string;
11
+ selected?: string;
12
+ };
13
+ className?: string;
14
+ disabled?: boolean;
15
+ onClick: (event: React.MouseEvent, value: number) => void;
16
+ onKeyDown: (event: React.KeyboardEvent, value: number) => void;
17
+ selected: boolean;
18
+ value: number;
19
+ }
20
+ export declare function getPickersYearUtilityClass(slot: string): string;
21
+ export declare type PickersYearClassKey = keyof NonNullable<YearProps['classes']>;
22
+ export declare const pickersYearClasses: Record<"root" | "selected" | "disabled" | "modeDesktop" | "modeMobile" | "yearButton", string>;
23
+ /**
24
+ * @ignore - internal component.
25
+ */
26
+ declare const PickersYear: React.ForwardRefExoticComponent<YearProps & React.RefAttributes<HTMLButtonElement>>;
27
+ export default PickersYear;