@mui/lab 5.0.0-alpha.99 → 6.0.0-alpha.0
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/AdapterDateFns/AdapterDateFns.d.ts +3 -0
- package/AdapterDateFns/AdapterDateFns.js +4 -4
- package/AdapterDayjs/AdapterDayjs.d.ts +3 -0
- package/AdapterDayjs/AdapterDayjs.js +4 -4
- package/AdapterLuxon/AdapterLuxon.d.ts +3 -0
- package/AdapterLuxon/AdapterLuxon.js +4 -4
- package/AdapterMoment/AdapterMoment.d.ts +3 -0
- package/AdapterMoment/AdapterMoment.js +4 -4
- package/Alert/Alert.js +3 -2
- package/AlertTitle/AlertTitle.js +3 -2
- package/Autocomplete/Autocomplete.js +3 -2
- package/AvatarGroup/AvatarGroup.js +3 -2
- package/CHANGELOG.md +5857 -405
- package/CalendarPicker/CalendarPicker.d.ts +6 -5
- package/CalendarPicker/CalendarPicker.js +3 -2
- package/CalendarPickerSkeleton/CalendarPickerSkeleton.d.ts +4 -3
- package/CalendarPickerSkeleton/CalendarPickerSkeleton.js +3 -2
- package/ClockPicker/ClockPicker.d.ts +6 -5
- package/ClockPicker/ClockPicker.js +3 -2
- package/DatePicker/DatePicker.d.ts +2 -2
- package/DatePicker/DatePicker.js +2 -2
- package/DateRangePicker/DateRangePicker.d.ts +4 -3
- package/DateRangePicker/DateRangePicker.js +1 -2
- package/DateRangePickerDay/DateRangePickerDay.d.ts +5 -4
- package/DateRangePickerDay/DateRangePickerDay.js +1 -2
- package/DateTimePicker/DateTimePicker.d.ts +3 -2
- package/DateTimePicker/DateTimePicker.js +3 -2
- package/DesktopDatePicker/DesktopDatePicker.d.ts +3 -2
- package/DesktopDatePicker/DesktopDatePicker.js +3 -2
- package/DesktopDateRangePicker/DesktopDateRangePicker.d.ts +3 -2
- package/DesktopDateRangePicker/DesktopDateRangePicker.js +1 -2
- package/DesktopDateTimePicker/DesktopDateTimePicker.d.ts +3 -2
- package/DesktopDateTimePicker/DesktopDateTimePicker.js +3 -2
- package/DesktopTimePicker/DesktopTimePicker.d.ts +3 -2
- package/DesktopTimePicker/DesktopTimePicker.js +3 -2
- package/LoadingButton/LoadingButton.d.ts +53 -50
- package/LoadingButton/LoadingButton.js +28 -44
- package/LoadingButton/loadingButtonClasses.d.ts +1 -1
- package/LoadingButton/loadingButtonClasses.js +2 -1
- package/LocalizationProvider/LocalizationProvider.d.ts +3 -2
- package/LocalizationProvider/LocalizationProvider.js +3 -2
- package/Masonry/Masonry.d.ts +51 -41
- package/Masonry/Masonry.js +75 -89
- package/Masonry/masonryClasses.d.ts +1 -1
- package/Masonry/masonryClasses.js +2 -1
- package/MobileDatePicker/MobileDatePicker.d.ts +3 -2
- package/MobileDatePicker/MobileDatePicker.js +3 -2
- package/MobileDateRangePicker/MobileDateRangePicker.d.ts +3 -2
- package/MobileDateRangePicker/MobileDateRangePicker.js +1 -2
- package/MobileDateTimePicker/MobileDateTimePicker.d.ts +3 -2
- package/MobileDateTimePicker/MobileDateTimePicker.js +3 -2
- package/MobileTimePicker/MobileTimePicker.d.ts +3 -2
- package/MobileTimePicker/MobileTimePicker.js +3 -2
- package/MonthPicker/MonthPicker.d.ts +4 -3
- package/MonthPicker/MonthPicker.js +3 -2
- package/Pagination/Pagination.js +3 -2
- package/Pagination/usePagination.js +2 -0
- package/PaginationItem/PaginationItem.js +3 -2
- package/PickersDay/PickersDay.d.ts +4 -3
- package/PickersDay/PickersDay.js +3 -2
- package/README.md +5 -13
- package/Rating/Rating.js +3 -2
- package/Skeleton/Skeleton.js +3 -2
- package/SpeedDial/SpeedDial.js +3 -2
- package/SpeedDialAction/SpeedDialAction.js +3 -2
- package/SpeedDialIcon/SpeedDialIcon.js +3 -2
- package/StaticDatePicker/StaticDatePicker.d.ts +3 -2
- package/StaticDatePicker/StaticDatePicker.js +3 -2
- package/StaticDateRangePicker/StaticDateRangePicker.d.ts +3 -2
- package/StaticDateRangePicker/StaticDateRangePicker.js +1 -2
- package/StaticDateTimePicker/StaticDateTimePicker.d.ts +3 -2
- package/StaticDateTimePicker/StaticDateTimePicker.js +3 -2
- package/StaticTimePicker/StaticTimePicker.d.ts +3 -2
- package/StaticTimePicker/StaticTimePicker.js +3 -2
- package/TabContext/TabContext.d.ts +1 -1
- package/TabContext/TabContext.js +10 -19
- package/TabList/TabList.d.ts +14 -12
- package/TabList/TabList.js +10 -15
- package/TabPanel/TabPanel.js +12 -24
- package/TabPanel/tabPanelClasses.d.ts +1 -1
- package/TabPanel/tabPanelClasses.js +2 -1
- package/TimePicker/TimePicker.d.ts +3 -2
- package/TimePicker/TimePicker.js +3 -2
- package/Timeline/Timeline.d.ts +2 -37
- package/Timeline/Timeline.js +23 -31
- package/Timeline/Timeline.types.d.ts +28 -0
- package/Timeline/Timeline.types.js +1 -0
- package/Timeline/TimelineContext.js +1 -3
- package/Timeline/index.d.ts +1 -2
- package/Timeline/index.js +1 -0
- package/Timeline/timelineClasses.d.ts +14 -1
- package/Timeline/timelineClasses.js +3 -2
- package/TimelineConnector/TimelineConnector.js +10 -18
- package/TimelineConnector/timelineConnectorClasses.d.ts +1 -1
- package/TimelineConnector/timelineConnectorClasses.js +2 -1
- package/TimelineContent/TimelineContent.js +13 -23
- package/TimelineContent/timelineContentClasses.d.ts +3 -1
- package/TimelineContent/timelineContentClasses.js +3 -2
- package/TimelineDot/TimelineDot.js +14 -29
- package/TimelineDot/timelineDotClasses.d.ts +1 -1
- package/TimelineDot/timelineDotClasses.js +2 -1
- package/TimelineItem/TimelineItem.d.ts +1 -1
- package/TimelineItem/TimelineItem.js +23 -32
- package/TimelineItem/timelineItemClasses.d.ts +3 -1
- package/TimelineItem/timelineItemClasses.js +3 -2
- package/TimelineOppositeContent/TimelineOppositeContent.js +13 -23
- package/TimelineOppositeContent/timelineOppositeContentClasses.d.ts +3 -1
- package/TimelineOppositeContent/timelineOppositeContentClasses.js +3 -2
- package/TimelineSeparator/TimelineSeparator.js +10 -18
- package/TimelineSeparator/timelineSeparatorClasses.d.ts +1 -1
- package/TimelineSeparator/timelineSeparatorClasses.js +2 -1
- package/ToggleButton/ToggleButton.js +3 -2
- package/ToggleButtonGroup/ToggleButtonGroup.js +3 -2
- package/TreeItem/TreeItem.d.ts +8 -84
- package/TreeItem/TreeItem.js +15 -419
- package/TreeItem/index.d.ts +0 -5
- package/TreeItem/index.js +1 -3
- package/TreeView/TreeView.d.ts +8 -141
- package/TreeView/TreeView.js +16 -978
- package/TreeView/index.d.ts +0 -3
- package/TreeView/index.js +1 -2
- package/YearPicker/YearPicker.d.ts +5 -4
- package/YearPicker/YearPicker.js +3 -3
- package/index.js +5 -2
- package/internal/convertTimelinePositionToClass.d.ts +1 -0
- package/internal/convertTimelinePositionToClass.js +4 -0
- package/internal/svg-icons/ArrowDropDown.js +3 -1
- package/internal/svg-icons/ArrowLeft.js +3 -1
- package/internal/svg-icons/ArrowRight.js +3 -1
- package/internal/svg-icons/Calendar.js +3 -1
- package/internal/svg-icons/Clock.js +4 -3
- package/internal/svg-icons/DateRange.js +3 -1
- package/internal/svg-icons/Pen.js +3 -1
- package/internal/svg-icons/Time.js +4 -3
- package/legacy/AdapterDateFns/AdapterDateFns.js +4 -5
- package/legacy/AdapterDayjs/AdapterDayjs.js +4 -5
- package/legacy/AdapterLuxon/AdapterLuxon.js +4 -5
- package/legacy/AdapterMoment/AdapterMoment.js +4 -5
- package/legacy/Alert/Alert.js +3 -2
- package/legacy/AlertTitle/AlertTitle.js +3 -2
- package/legacy/Autocomplete/Autocomplete.js +3 -2
- package/legacy/AvatarGroup/AvatarGroup.js +3 -2
- package/legacy/CalendarPicker/CalendarPicker.js +3 -2
- package/legacy/CalendarPickerSkeleton/CalendarPickerSkeleton.js +3 -2
- package/legacy/ClockPicker/ClockPicker.js +3 -2
- package/legacy/DatePicker/DatePicker.js +2 -2
- package/legacy/DateRangePicker/DateRangePicker.js +1 -2
- package/legacy/DateRangePickerDay/DateRangePickerDay.js +1 -2
- package/legacy/DateTimePicker/DateTimePicker.js +3 -2
- package/legacy/DesktopDatePicker/DesktopDatePicker.js +3 -2
- package/legacy/DesktopDateRangePicker/DesktopDateRangePicker.js +1 -2
- package/legacy/DesktopDateTimePicker/DesktopDateTimePicker.js +3 -2
- package/legacy/DesktopTimePicker/DesktopTimePicker.js +3 -2
- package/legacy/LoadingButton/LoadingButton.js +33 -49
- package/legacy/LoadingButton/loadingButtonClasses.js +2 -1
- package/legacy/LocalizationProvider/LocalizationProvider.js +3 -2
- package/legacy/Masonry/Masonry.js +80 -98
- package/legacy/Masonry/masonryClasses.js +2 -1
- package/legacy/MobileDatePicker/MobileDatePicker.js +3 -2
- package/legacy/MobileDateRangePicker/MobileDateRangePicker.js +1 -2
- package/legacy/MobileDateTimePicker/MobileDateTimePicker.js +3 -2
- package/legacy/MobileTimePicker/MobileTimePicker.js +3 -2
- package/legacy/MonthPicker/MonthPicker.js +3 -2
- package/legacy/Pagination/Pagination.js +3 -2
- package/legacy/Pagination/usePagination.js +2 -0
- package/legacy/PaginationItem/PaginationItem.js +3 -2
- package/legacy/PickersDay/PickersDay.js +3 -2
- package/legacy/Rating/Rating.js +3 -2
- package/legacy/Skeleton/Skeleton.js +3 -2
- package/legacy/SpeedDial/SpeedDial.js +3 -2
- package/legacy/SpeedDialAction/SpeedDialAction.js +3 -2
- package/legacy/SpeedDialIcon/SpeedDialIcon.js +3 -2
- package/legacy/StaticDatePicker/StaticDatePicker.js +3 -2
- package/legacy/StaticDateRangePicker/StaticDateRangePicker.js +1 -2
- package/legacy/StaticDateTimePicker/StaticDateTimePicker.js +3 -2
- package/legacy/StaticTimePicker/StaticTimePicker.js +3 -2
- package/legacy/TabContext/TabContext.js +13 -23
- package/legacy/TabList/TabList.js +8 -13
- package/legacy/TabPanel/TabPanel.js +10 -22
- package/legacy/TabPanel/tabPanelClasses.js +2 -1
- package/legacy/TimePicker/TimePicker.js +3 -2
- package/legacy/Timeline/Timeline.js +25 -31
- package/legacy/Timeline/Timeline.types.js +1 -0
- package/legacy/Timeline/TimelineContext.js +1 -3
- package/legacy/Timeline/index.js +1 -0
- package/legacy/Timeline/timelineClasses.js +3 -2
- package/legacy/TimelineConnector/TimelineConnector.js +8 -16
- package/legacy/TimelineConnector/timelineConnectorClasses.js +2 -1
- package/legacy/TimelineContent/TimelineContent.js +13 -23
- package/legacy/TimelineContent/timelineContentClasses.js +3 -2
- package/legacy/TimelineDot/TimelineDot.js +17 -32
- package/legacy/TimelineDot/timelineDotClasses.js +2 -1
- package/legacy/TimelineItem/TimelineItem.js +31 -43
- package/legacy/TimelineItem/timelineItemClasses.js +3 -2
- package/legacy/TimelineOppositeContent/TimelineOppositeContent.js +13 -23
- package/legacy/TimelineOppositeContent/timelineOppositeContentClasses.js +3 -2
- package/legacy/TimelineSeparator/TimelineSeparator.js +8 -16
- package/legacy/TimelineSeparator/timelineSeparatorClasses.js +2 -1
- package/legacy/ToggleButton/ToggleButton.js +3 -2
- package/legacy/ToggleButtonGroup/ToggleButtonGroup.js +3 -2
- package/legacy/TreeItem/TreeItem.js +15 -421
- package/legacy/TreeItem/index.js +1 -3
- package/legacy/TreeView/TreeView.js +16 -1041
- package/legacy/TreeView/index.js +1 -2
- package/legacy/YearPicker/YearPicker.js +3 -3
- package/legacy/index.js +5 -2
- package/legacy/internal/convertTimelinePositionToClass.js +4 -0
- package/legacy/internal/svg-icons/ArrowDropDown.js +3 -1
- package/legacy/internal/svg-icons/ArrowLeft.js +3 -1
- package/legacy/internal/svg-icons/ArrowRight.js +3 -1
- package/legacy/internal/svg-icons/Calendar.js +3 -1
- package/legacy/internal/svg-icons/Clock.js +4 -3
- package/legacy/internal/svg-icons/DateRange.js +3 -1
- package/legacy/internal/svg-icons/Pen.js +3 -1
- package/legacy/internal/svg-icons/Time.js +4 -3
- package/modern/AdapterDateFns/AdapterDateFns.js +4 -4
- package/modern/AdapterDayjs/AdapterDayjs.js +4 -4
- package/modern/AdapterLuxon/AdapterLuxon.js +4 -4
- package/modern/AdapterMoment/AdapterMoment.js +4 -4
- package/modern/Alert/Alert.js +3 -2
- package/modern/AlertTitle/AlertTitle.js +3 -2
- package/modern/Autocomplete/Autocomplete.js +3 -2
- package/modern/AvatarGroup/AvatarGroup.js +3 -2
- package/modern/CalendarPicker/CalendarPicker.js +3 -2
- package/modern/CalendarPickerSkeleton/CalendarPickerSkeleton.js +3 -2
- package/modern/ClockPicker/ClockPicker.js +3 -2
- package/modern/DatePicker/DatePicker.js +2 -2
- package/modern/DateRangePicker/DateRangePicker.js +1 -2
- package/modern/DateRangePickerDay/DateRangePickerDay.js +1 -2
- package/modern/DateTimePicker/DateTimePicker.js +3 -2
- package/modern/DesktopDatePicker/DesktopDatePicker.js +3 -2
- package/modern/DesktopDateRangePicker/DesktopDateRangePicker.js +1 -2
- package/modern/DesktopDateTimePicker/DesktopDateTimePicker.js +3 -2
- package/modern/DesktopTimePicker/DesktopTimePicker.js +3 -2
- package/modern/LoadingButton/LoadingButton.js +27 -44
- package/modern/LoadingButton/loadingButtonClasses.js +2 -1
- package/modern/LocalizationProvider/LocalizationProvider.js +3 -2
- package/modern/Masonry/Masonry.js +75 -89
- package/modern/Masonry/masonryClasses.js +2 -1
- package/modern/MobileDatePicker/MobileDatePicker.js +3 -2
- package/modern/MobileDateRangePicker/MobileDateRangePicker.js +1 -2
- package/modern/MobileDateTimePicker/MobileDateTimePicker.js +3 -2
- package/modern/MobileTimePicker/MobileTimePicker.js +3 -2
- package/modern/MonthPicker/MonthPicker.js +3 -2
- package/modern/Pagination/Pagination.js +3 -2
- package/modern/Pagination/usePagination.js +2 -0
- package/modern/PaginationItem/PaginationItem.js +3 -2
- package/modern/PickersDay/PickersDay.js +3 -2
- package/modern/Rating/Rating.js +3 -2
- package/modern/Skeleton/Skeleton.js +3 -2
- package/modern/SpeedDial/SpeedDial.js +3 -2
- package/modern/SpeedDialAction/SpeedDialAction.js +3 -2
- package/modern/SpeedDialIcon/SpeedDialIcon.js +3 -2
- package/modern/StaticDatePicker/StaticDatePicker.js +3 -2
- package/modern/StaticDateRangePicker/StaticDateRangePicker.js +1 -2
- package/modern/StaticDateTimePicker/StaticDateTimePicker.js +3 -2
- package/modern/StaticTimePicker/StaticTimePicker.js +3 -2
- package/modern/TabContext/TabContext.js +10 -19
- package/modern/TabList/TabList.js +10 -15
- package/modern/TabPanel/TabPanel.js +12 -24
- package/modern/TabPanel/tabPanelClasses.js +2 -1
- package/modern/TimePicker/TimePicker.js +3 -2
- package/modern/Timeline/Timeline.js +23 -31
- package/modern/Timeline/Timeline.types.js +1 -0
- package/modern/Timeline/TimelineContext.js +1 -3
- package/modern/Timeline/index.js +1 -0
- package/modern/Timeline/timelineClasses.js +3 -2
- package/modern/TimelineConnector/TimelineConnector.js +10 -18
- package/modern/TimelineConnector/timelineConnectorClasses.js +2 -1
- package/modern/TimelineContent/TimelineContent.js +13 -23
- package/modern/TimelineContent/timelineContentClasses.js +3 -2
- package/modern/TimelineDot/TimelineDot.js +14 -29
- package/modern/TimelineDot/timelineDotClasses.js +2 -1
- package/modern/TimelineItem/TimelineItem.js +23 -32
- package/modern/TimelineItem/timelineItemClasses.js +3 -2
- package/modern/TimelineOppositeContent/TimelineOppositeContent.js +13 -23
- package/modern/TimelineOppositeContent/timelineOppositeContentClasses.js +3 -2
- package/modern/TimelineSeparator/TimelineSeparator.js +10 -18
- package/modern/TimelineSeparator/timelineSeparatorClasses.js +2 -1
- package/modern/ToggleButton/ToggleButton.js +3 -2
- package/modern/ToggleButtonGroup/ToggleButtonGroup.js +3 -2
- package/modern/TreeItem/TreeItem.js +15 -419
- package/modern/TreeItem/index.js +1 -3
- package/modern/TreeView/TreeView.js +16 -978
- package/modern/TreeView/index.js +1 -2
- package/modern/YearPicker/YearPicker.js +3 -3
- package/modern/index.js +5 -2
- package/modern/internal/convertTimelinePositionToClass.js +4 -0
- package/modern/internal/svg-icons/ArrowDropDown.js +3 -1
- package/modern/internal/svg-icons/ArrowLeft.js +3 -1
- package/modern/internal/svg-icons/ArrowRight.js +3 -1
- package/modern/internal/svg-icons/Calendar.js +3 -1
- package/modern/internal/svg-icons/Clock.js +4 -3
- package/modern/internal/svg-icons/DateRange.js +3 -1
- package/modern/internal/svg-icons/Pen.js +3 -1
- package/modern/internal/svg-icons/Time.js +4 -3
- package/node/AdapterDateFns/AdapterDateFns.js +4 -5
- package/node/AdapterDateFns/index.js +0 -2
- package/node/AdapterDayjs/AdapterDayjs.js +4 -5
- package/node/AdapterDayjs/index.js +0 -2
- package/node/AdapterLuxon/AdapterLuxon.js +4 -5
- package/node/AdapterLuxon/index.js +0 -2
- package/node/AdapterMoment/AdapterMoment.js +4 -5
- package/node/AdapterMoment/index.js +0 -2
- package/node/Alert/Alert.js +6 -16
- package/node/Alert/index.js +0 -2
- package/node/AlertTitle/AlertTitle.js +6 -16
- package/node/AlertTitle/index.js +0 -2
- package/node/Autocomplete/Autocomplete.js +6 -16
- package/node/Autocomplete/index.js +0 -2
- package/node/AvatarGroup/AvatarGroup.js +6 -16
- package/node/AvatarGroup/index.js +0 -2
- package/node/CalendarPicker/CalendarPicker.js +7 -13
- package/node/CalendarPicker/index.js +2 -6
- package/node/CalendarPickerSkeleton/CalendarPickerSkeleton.js +7 -15
- package/node/CalendarPickerSkeleton/index.js +2 -6
- package/node/ClockPicker/ClockPicker.js +7 -13
- package/node/ClockPicker/index.js +2 -6
- package/node/DatePicker/DatePicker.js +5 -11
- package/node/DatePicker/index.js +2 -6
- package/node/DateRangePicker/DateRangePicker.js +5 -10
- package/node/DateRangePicker/index.js +2 -6
- package/node/DateRangePickerDay/DateRangePickerDay.js +5 -12
- package/node/DateRangePickerDay/index.js +2 -6
- package/node/DateTimePicker/DateTimePicker.js +6 -11
- package/node/DateTimePicker/index.js +2 -6
- package/node/DesktopDatePicker/DesktopDatePicker.js +6 -11
- package/node/DesktopDatePicker/index.js +2 -6
- package/node/DesktopDateRangePicker/DesktopDateRangePicker.js +5 -10
- package/node/DesktopDateRangePicker/index.js +2 -6
- package/node/DesktopDateTimePicker/DesktopDateTimePicker.js +6 -11
- package/node/DesktopDateTimePicker/index.js +2 -6
- package/node/DesktopTimePicker/DesktopTimePicker.js +6 -11
- package/node/DesktopTimePicker/index.js +2 -6
- package/node/LoadingButton/LoadingButton.js +28 -57
- package/node/LoadingButton/index.js +2 -8
- package/node/LoadingButton/loadingButtonClasses.js +6 -8
- package/node/LocalizationProvider/LocalizationProvider.js +5 -10
- package/node/LocalizationProvider/index.js +2 -6
- package/node/Masonry/Masonry.js +75 -105
- package/node/Masonry/index.js +2 -8
- package/node/Masonry/masonryClasses.js +6 -8
- package/node/MobileDatePicker/MobileDatePicker.js +6 -11
- package/node/MobileDatePicker/index.js +2 -6
- package/node/MobileDateRangePicker/MobileDateRangePicker.js +5 -10
- package/node/MobileDateRangePicker/index.js +2 -6
- package/node/MobileDateTimePicker/MobileDateTimePicker.js +6 -11
- package/node/MobileDateTimePicker/index.js +2 -6
- package/node/MobileTimePicker/MobileTimePicker.js +6 -11
- package/node/MobileTimePicker/index.js +2 -6
- package/node/MonthPicker/MonthPicker.js +7 -15
- package/node/MonthPicker/index.js +2 -6
- package/node/Pagination/Pagination.js +6 -16
- package/node/Pagination/index.js +0 -3
- package/node/Pagination/usePagination.js +1 -2
- package/node/PaginationItem/PaginationItem.js +6 -16
- package/node/PaginationItem/index.js +0 -2
- package/node/PickersDay/PickersDay.js +7 -15
- package/node/PickersDay/index.js +2 -6
- package/node/Rating/Rating.js +6 -16
- package/node/Rating/index.js +0 -2
- package/node/Skeleton/Skeleton.js +6 -16
- package/node/Skeleton/index.js +0 -2
- package/node/SpeedDial/SpeedDial.js +6 -16
- package/node/SpeedDial/index.js +0 -2
- package/node/SpeedDialAction/SpeedDialAction.js +6 -16
- package/node/SpeedDialAction/index.js +0 -2
- package/node/SpeedDialIcon/SpeedDialIcon.js +6 -16
- package/node/SpeedDialIcon/index.js +0 -2
- package/node/StaticDatePicker/StaticDatePicker.js +6 -11
- package/node/StaticDatePicker/index.js +2 -6
- package/node/StaticDateRangePicker/StaticDateRangePicker.js +5 -10
- package/node/StaticDateRangePicker/index.js +2 -6
- package/node/StaticDateTimePicker/StaticDateTimePicker.js +6 -11
- package/node/StaticDateTimePicker/index.js +2 -6
- package/node/StaticTimePicker/StaticTimePicker.js +6 -11
- package/node/StaticTimePicker/index.js +2 -6
- package/node/TabContext/TabContext.js +11 -32
- package/node/TabContext/index.js +2 -6
- package/node/TabList/TabList.js +12 -30
- package/node/TabList/index.js +0 -2
- package/node/TabPanel/TabPanel.js +14 -39
- package/node/TabPanel/index.js +2 -8
- package/node/TabPanel/tabPanelClasses.js +6 -8
- package/node/TimePicker/TimePicker.js +6 -11
- package/node/TimePicker/index.js +2 -6
- package/node/Timeline/Timeline.js +25 -47
- package/node/Timeline/Timeline.types.js +5 -0
- package/node/Timeline/TimelineContext.js +3 -10
- package/node/Timeline/index.js +14 -8
- package/node/Timeline/timelineClasses.js +6 -8
- package/node/TimelineConnector/TimelineConnector.js +12 -33
- package/node/TimelineConnector/index.js +2 -8
- package/node/TimelineConnector/timelineConnectorClasses.js +6 -8
- package/node/TimelineContent/TimelineContent.js +15 -39
- package/node/TimelineContent/index.js +2 -8
- package/node/TimelineContent/timelineContentClasses.js +6 -8
- package/node/TimelineDot/TimelineDot.js +16 -44
- package/node/TimelineDot/index.js +2 -8
- package/node/TimelineDot/timelineDotClasses.js +6 -8
- package/node/TimelineItem/TimelineItem.js +24 -48
- package/node/TimelineItem/index.js +2 -8
- package/node/TimelineItem/timelineItemClasses.js +6 -8
- package/node/TimelineOppositeContent/TimelineOppositeContent.js +15 -39
- package/node/TimelineOppositeContent/index.js +2 -8
- package/node/TimelineOppositeContent/timelineOppositeContentClasses.js +6 -8
- package/node/TimelineSeparator/TimelineSeparator.js +12 -33
- package/node/TimelineSeparator/index.js +2 -8
- package/node/TimelineSeparator/timelineSeparatorClasses.js +6 -8
- package/node/ToggleButton/ToggleButton.js +6 -16
- package/node/ToggleButton/index.js +0 -2
- package/node/ToggleButtonGroup/ToggleButtonGroup.js +6 -16
- package/node/ToggleButtonGroup/index.js +0 -2
- package/node/TreeItem/TreeItem.js +17 -438
- package/node/TreeItem/index.js +7 -32
- package/node/TreeView/TreeView.js +18 -993
- package/node/TreeView/index.js +7 -23
- package/node/YearPicker/YearPicker.js +5 -11
- package/node/YearPicker/index.js +2 -6
- package/node/index.js +5 -109
- package/node/internal/convertTimelinePositionToClass.js +10 -0
- package/node/internal/svg-icons/ArrowDropDown.js +5 -12
- package/node/internal/svg-icons/ArrowLeft.js +5 -12
- package/node/internal/svg-icons/ArrowRight.js +5 -12
- package/node/internal/svg-icons/Calendar.js +5 -12
- package/node/internal/svg-icons/Clock.js +5 -12
- package/node/internal/svg-icons/DateRange.js +5 -12
- package/node/internal/svg-icons/Pen.js +5 -12
- package/node/internal/svg-icons/Time.js +5 -12
- package/node/useAutocomplete/index.js +0 -1
- package/package.json +15 -14
- package/themeAugmentation/components.d.ts +5 -10
- package/themeAugmentation/overrides.d.ts +2 -4
- package/themeAugmentation/props.d.ts +2 -4
- package/TreeItem/TreeItemContent.d.ts +0 -50
- package/TreeItem/TreeItemContent.js +0 -128
- package/TreeItem/treeItemClasses.d.ts +0 -24
- package/TreeItem/treeItemClasses.js +0 -6
- package/TreeItem/useTreeItem.d.ts +0 -11
- package/TreeItem/useTreeItem.js +0 -74
- package/TreeView/TreeViewContext.js +0 -12
- package/TreeView/descendants.js +0 -198
- package/TreeView/treeViewClasses.d.ts +0 -8
- package/TreeView/treeViewClasses.js +0 -6
- package/legacy/TreeItem/TreeItemContent.js +0 -125
- package/legacy/TreeItem/treeItemClasses.js +0 -6
- package/legacy/TreeItem/useTreeItem.js +0 -74
- package/legacy/TreeView/TreeViewContext.js +0 -12
- package/legacy/TreeView/descendants.js +0 -211
- package/legacy/TreeView/treeViewClasses.js +0 -6
- package/modern/TreeItem/TreeItemContent.js +0 -128
- package/modern/TreeItem/treeItemClasses.js +0 -6
- package/modern/TreeItem/useTreeItem.js +0 -74
- package/modern/TreeView/TreeViewContext.js +0 -12
- package/modern/TreeView/descendants.js +0 -198
- package/modern/TreeView/treeViewClasses.js +0 -6
- package/node/TreeItem/TreeItemContent.js +0 -147
- package/node/TreeItem/treeItemClasses.js +0 -17
- package/node/TreeItem/useTreeItem.js +0 -89
- package/node/TreeView/TreeViewContext.js +0 -24
- package/node/TreeView/descendants.js +0 -217
- package/node/TreeView/treeViewClasses.js +0 -17
package/Timeline/Timeline.d.ts
CHANGED
|
@@ -1,40 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
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
|
-
}
|
|
2
|
+
import { TimelineProps } from './Timeline.types';
|
|
38
3
|
/**
|
|
39
4
|
*
|
|
40
5
|
* Demos:
|
|
@@ -45,7 +10,7 @@ export interface TimelineProps extends StandardProps<React.HTMLAttributes<HTMLUL
|
|
|
45
10
|
*
|
|
46
11
|
* - [Timeline API](https://mui.com/material-ui/api/timeline/)
|
|
47
12
|
*/
|
|
48
|
-
declare const Timeline: React.ForwardRefExoticComponent<
|
|
13
|
+
declare const Timeline: React.ForwardRefExoticComponent<TimelineProps & React.RefAttributes<HTMLUListElement>>;
|
|
49
14
|
/**
|
|
50
15
|
*
|
|
51
16
|
* Demos:
|
package/Timeline/Timeline.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
1
3
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
4
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
5
|
const _excluded = ["position", "className"];
|
|
4
6
|
import * as React from 'react';
|
|
5
7
|
import PropTypes from 'prop-types';
|
|
6
8
|
import clsx from 'clsx';
|
|
7
|
-
import { capitalize } from '@mui/material/utils';
|
|
8
9
|
import { unstable_composeClasses as composeClasses } from '@mui/base';
|
|
9
10
|
import { styled, useThemeProps } from '@mui/material/styles';
|
|
10
11
|
import TimelineContext from './TimelineContext';
|
|
11
12
|
import { getTimelineUtilityClass } from './timelineClasses';
|
|
13
|
+
import convertTimelinePositionToClass from '../internal/convertTimelinePositionToClass';
|
|
12
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
|
|
14
15
|
const useUtilityClasses = ownerState => {
|
|
15
16
|
const {
|
|
16
17
|
position,
|
|
17
18
|
classes
|
|
18
19
|
} = ownerState;
|
|
19
20
|
const slots = {
|
|
20
|
-
root: ['root', position &&
|
|
21
|
+
root: ['root', position && convertTimelinePositionToClass(position)]
|
|
21
22
|
};
|
|
22
23
|
return composeClasses(slots, getTimelineUtilityClass, classes);
|
|
23
24
|
};
|
|
24
|
-
|
|
25
25
|
const TimelineRoot = styled('ul', {
|
|
26
26
|
name: 'MuiTimeline',
|
|
27
27
|
slot: 'Root',
|
|
@@ -29,7 +29,7 @@ const TimelineRoot = styled('ul', {
|
|
|
29
29
|
const {
|
|
30
30
|
ownerState
|
|
31
31
|
} = props;
|
|
32
|
-
return [styles.root, ownerState.position && styles[
|
|
32
|
+
return [styles.root, ownerState.position && styles[convertTimelinePositionToClass(ownerState.position)]];
|
|
33
33
|
}
|
|
34
34
|
})({
|
|
35
35
|
display: 'flex',
|
|
@@ -37,6 +37,7 @@ const TimelineRoot = styled('ul', {
|
|
|
37
37
|
padding: '6px 16px',
|
|
38
38
|
flexGrow: 1
|
|
39
39
|
});
|
|
40
|
+
|
|
40
41
|
/**
|
|
41
42
|
*
|
|
42
43
|
* Demos:
|
|
@@ -47,70 +48,62 @@ const TimelineRoot = styled('ul', {
|
|
|
47
48
|
*
|
|
48
49
|
* - [Timeline API](https://mui.com/material-ui/api/timeline/)
|
|
49
50
|
*/
|
|
50
|
-
|
|
51
51
|
const Timeline = /*#__PURE__*/React.forwardRef(function Timeline(inProps, ref) {
|
|
52
52
|
const props = useThemeProps({
|
|
53
53
|
props: inProps,
|
|
54
54
|
name: 'MuiTimeline'
|
|
55
55
|
});
|
|
56
|
-
|
|
57
56
|
const {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
57
|
+
position = 'right',
|
|
58
|
+
className
|
|
59
|
+
} = props,
|
|
60
|
+
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
63
61
|
const ownerState = _extends({}, props, {
|
|
64
62
|
position
|
|
65
63
|
});
|
|
66
|
-
|
|
67
64
|
const classes = useUtilityClasses(ownerState);
|
|
65
|
+
const contextValue = React.useMemo(() => ({
|
|
66
|
+
position
|
|
67
|
+
}), [position]);
|
|
68
68
|
return /*#__PURE__*/_jsx(TimelineContext.Provider, {
|
|
69
|
-
value:
|
|
70
|
-
position
|
|
71
|
-
},
|
|
69
|
+
value: contextValue,
|
|
72
70
|
children: /*#__PURE__*/_jsx(TimelineRoot, _extends({
|
|
73
71
|
className: clsx(classes.root, className),
|
|
74
|
-
ownerState: ownerState
|
|
72
|
+
ownerState: ownerState
|
|
73
|
+
// @ts-expect-error TypeScript bug, need to keep unknown for DX
|
|
75
74
|
,
|
|
76
75
|
ref: ref
|
|
77
76
|
}, other))
|
|
78
77
|
});
|
|
79
78
|
});
|
|
80
|
-
process.env.NODE_ENV !== "production" ? Timeline.propTypes
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
//
|
|
84
|
-
//
|
|
85
|
-
// | To update them edit TypeScript types and run "yarn proptypes" |
|
|
86
|
-
// ----------------------------------------------------------------------
|
|
87
|
-
|
|
79
|
+
process.env.NODE_ENV !== "production" ? Timeline.propTypes /* remove-proptypes */ = {
|
|
80
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
81
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
82
|
+
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
83
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
88
84
|
/**
|
|
89
85
|
* The content of the component.
|
|
90
86
|
*/
|
|
91
87
|
children: PropTypes.node,
|
|
92
|
-
|
|
93
88
|
/**
|
|
94
89
|
* Override or extend the styles applied to the component.
|
|
95
90
|
*/
|
|
96
91
|
classes: PropTypes.object,
|
|
97
|
-
|
|
98
92
|
/**
|
|
99
93
|
* className applied to the root element.
|
|
100
94
|
*/
|
|
101
95
|
className: PropTypes.string,
|
|
102
|
-
|
|
103
96
|
/**
|
|
104
97
|
* The position where the TimelineContent should appear relative to the time axis.
|
|
105
98
|
* @default 'right'
|
|
106
99
|
*/
|
|
107
|
-
position: PropTypes.oneOf(['alternate', 'left', 'right']),
|
|
108
|
-
|
|
100
|
+
position: PropTypes.oneOf(['alternate-reverse', 'alternate', 'left', 'right']),
|
|
109
101
|
/**
|
|
110
102
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
111
103
|
*/
|
|
112
104
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
|
|
113
105
|
} : void 0;
|
|
106
|
+
|
|
114
107
|
/**
|
|
115
108
|
*
|
|
116
109
|
* Demos:
|
|
@@ -121,5 +114,4 @@ process.env.NODE_ENV !== "production" ? Timeline.propTypes
|
|
|
121
114
|
*
|
|
122
115
|
* - [Timeline API](https://mui.com/api/timeline/)
|
|
123
116
|
*/
|
|
124
|
-
|
|
125
117
|
export default Timeline;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { InternalStandardProps as StandardProps } from '@mui/material';
|
|
3
|
+
import { Theme } from '@mui/material/styles';
|
|
4
|
+
import { SxProps } from '@mui/system';
|
|
5
|
+
import { TimelineClasses } from './timelineClasses';
|
|
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' | 'alternate-reverse';
|
|
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?: Partial<TimelineClasses>;
|
|
20
|
+
/**
|
|
21
|
+
* className applied to the root element.
|
|
22
|
+
*/
|
|
23
|
+
className?: string;
|
|
24
|
+
/**
|
|
25
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
26
|
+
*/
|
|
27
|
+
sx?: SxProps<Theme>;
|
|
28
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
|
|
2
3
|
/**
|
|
3
4
|
* @ignore - internal component.
|
|
4
5
|
*/
|
|
5
|
-
|
|
6
6
|
const TimelineContext = /*#__PURE__*/React.createContext({});
|
|
7
|
-
|
|
8
7
|
if (process.env.NODE_ENV !== 'production') {
|
|
9
8
|
TimelineContext.displayName = 'TimelineContext';
|
|
10
9
|
}
|
|
11
|
-
|
|
12
10
|
export default TimelineContext;
|
package/Timeline/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export { default } from './Timeline';
|
|
2
|
-
export
|
|
3
|
-
export declare type TimelineProps = import('./Timeline').TimelineProps;
|
|
2
|
+
export * from './Timeline.types';
|
|
4
3
|
export { default as timelineClasses } from './timelineClasses';
|
|
5
4
|
export * from './timelineClasses';
|
package/Timeline/index.js
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
export interface TimelineClasses {
|
|
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 `position="alternate-reverse"`. */
|
|
11
|
+
positionAlternateReverse: string;
|
|
12
|
+
}
|
|
13
|
+
export type TimelineClassKey = keyof TimelineClasses;
|
|
1
14
|
export declare function getTimelineUtilityClass(slot: string): string;
|
|
2
|
-
declare const timelineClasses:
|
|
15
|
+
declare const timelineClasses: TimelineClasses;
|
|
3
16
|
export default timelineClasses;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
|
2
|
+
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
|
2
3
|
export function getTimelineUtilityClass(slot) {
|
|
3
4
|
return generateUtilityClass('MuiTimeline', slot);
|
|
4
5
|
}
|
|
5
|
-
const timelineClasses = generateUtilityClasses('MuiTimeline', ['root', 'positionLeft', 'positionRight', 'positionAlternate']);
|
|
6
|
+
const timelineClasses = generateUtilityClasses('MuiTimeline', ['root', 'positionLeft', 'positionRight', 'positionAlternate', 'positionAlternateReverse']);
|
|
6
7
|
export default timelineClasses;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
1
3
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
4
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
5
|
const _excluded = ["className"];
|
|
@@ -8,7 +10,6 @@ import { unstable_composeClasses as composeClasses } from '@mui/base';
|
|
|
8
10
|
import { styled, useThemeProps } from '@mui/material/styles';
|
|
9
11
|
import { getTimelineConnectorUtilityClass } from './timelineConnectorClasses';
|
|
10
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
-
|
|
12
13
|
const useUtilityClasses = ownerState => {
|
|
13
14
|
const {
|
|
14
15
|
classes
|
|
@@ -18,7 +19,6 @@ const useUtilityClasses = ownerState => {
|
|
|
18
19
|
};
|
|
19
20
|
return composeClasses(slots, getTimelineConnectorUtilityClass, classes);
|
|
20
21
|
};
|
|
21
|
-
|
|
22
22
|
const TimelineConnectorRoot = styled('span', {
|
|
23
23
|
name: 'MuiTimelineConnector',
|
|
24
24
|
slot: 'Root',
|
|
@@ -37,12 +37,10 @@ const TimelineConnector = /*#__PURE__*/React.forwardRef(function TimelineConnect
|
|
|
37
37
|
props: inProps,
|
|
38
38
|
name: 'MuiTimelineConnector'
|
|
39
39
|
});
|
|
40
|
-
|
|
41
40
|
const {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
41
|
+
className
|
|
42
|
+
} = props,
|
|
43
|
+
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
46
44
|
const ownerState = props;
|
|
47
45
|
const classes = useUtilityClasses(ownerState);
|
|
48
46
|
return /*#__PURE__*/_jsx(TimelineConnectorRoot, _extends({
|
|
@@ -51,29 +49,23 @@ const TimelineConnector = /*#__PURE__*/React.forwardRef(function TimelineConnect
|
|
|
51
49
|
ref: ref
|
|
52
50
|
}, other));
|
|
53
51
|
});
|
|
54
|
-
process.env.NODE_ENV !== "production" ? TimelineConnector.propTypes
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
//
|
|
58
|
-
//
|
|
59
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
60
|
-
// ----------------------------------------------------------------------
|
|
61
|
-
|
|
52
|
+
process.env.NODE_ENV !== "production" ? TimelineConnector.propTypes /* remove-proptypes */ = {
|
|
53
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
54
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
55
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
56
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
62
57
|
/**
|
|
63
58
|
* The content of the component.
|
|
64
59
|
*/
|
|
65
60
|
children: PropTypes.node,
|
|
66
|
-
|
|
67
61
|
/**
|
|
68
62
|
* Override or extend the styles applied to the component.
|
|
69
63
|
*/
|
|
70
64
|
classes: PropTypes.object,
|
|
71
|
-
|
|
72
65
|
/**
|
|
73
66
|
* @ignore
|
|
74
67
|
*/
|
|
75
68
|
className: PropTypes.string,
|
|
76
|
-
|
|
77
69
|
/**
|
|
78
70
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
79
71
|
*/
|
|
@@ -2,7 +2,7 @@ export interface TimelineConnectorClasses {
|
|
|
2
2
|
/** Styles applied to the root element. */
|
|
3
3
|
root: string;
|
|
4
4
|
}
|
|
5
|
-
export
|
|
5
|
+
export type TimelineConnectorClassKey = keyof TimelineConnectorClasses;
|
|
6
6
|
export declare function getTimelineConnectorUtilityClass(slot: string): string;
|
|
7
7
|
declare const timelineConnectorClasses: TimelineConnectorClasses;
|
|
8
8
|
export default timelineConnectorClasses;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
|
2
|
+
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
|
2
3
|
export function getTimelineConnectorUtilityClass(slot) {
|
|
3
4
|
return generateUtilityClass('MuiTimelineConnector', slot);
|
|
4
5
|
}
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
1
3
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
2
4
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
5
|
const _excluded = ["className"];
|
|
4
6
|
import * as React from 'react';
|
|
5
7
|
import PropTypes from 'prop-types';
|
|
6
8
|
import clsx from 'clsx';
|
|
7
|
-
import { capitalize } from '@mui/material/utils';
|
|
8
9
|
import { styled, useThemeProps } from '@mui/material/styles';
|
|
9
10
|
import { unstable_composeClasses as composeClasses } from '@mui/base';
|
|
10
11
|
import Typography from '@mui/material/Typography';
|
|
11
12
|
import TimelineContext from '../Timeline/TimelineContext';
|
|
12
13
|
import { getTimelineContentUtilityClass } from './timelineContentClasses';
|
|
14
|
+
import convertTimelinePositionToClass from '../internal/convertTimelinePositionToClass';
|
|
13
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
-
|
|
15
16
|
const useUtilityClasses = ownerState => {
|
|
16
17
|
const {
|
|
17
18
|
position,
|
|
18
19
|
classes
|
|
19
20
|
} = ownerState;
|
|
20
21
|
const slots = {
|
|
21
|
-
root: ['root',
|
|
22
|
+
root: ['root', convertTimelinePositionToClass(position)]
|
|
22
23
|
};
|
|
23
24
|
return composeClasses(slots, getTimelineContentUtilityClass, classes);
|
|
24
25
|
};
|
|
25
|
-
|
|
26
26
|
const TimelineContentRoot = styled(Typography, {
|
|
27
27
|
name: 'MuiTimelineContent',
|
|
28
28
|
slot: 'Root',
|
|
@@ -30,7 +30,7 @@ const TimelineContentRoot = styled(Typography, {
|
|
|
30
30
|
const {
|
|
31
31
|
ownerState
|
|
32
32
|
} = props;
|
|
33
|
-
return [styles.root, styles[
|
|
33
|
+
return [styles.root, styles[convertTimelinePositionToClass(ownerState.position)]];
|
|
34
34
|
}
|
|
35
35
|
})(({
|
|
36
36
|
ownerState
|
|
@@ -46,20 +46,16 @@ const TimelineContent = /*#__PURE__*/React.forwardRef(function TimelineContent(i
|
|
|
46
46
|
props: inProps,
|
|
47
47
|
name: 'MuiTimelineContent'
|
|
48
48
|
});
|
|
49
|
-
|
|
50
49
|
const {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
50
|
+
className
|
|
51
|
+
} = props,
|
|
52
|
+
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
55
53
|
const {
|
|
56
54
|
position: positionContext
|
|
57
55
|
} = React.useContext(TimelineContext);
|
|
58
|
-
|
|
59
56
|
const ownerState = _extends({}, props, {
|
|
60
57
|
position: positionContext || 'right'
|
|
61
58
|
});
|
|
62
|
-
|
|
63
59
|
const classes = useUtilityClasses(ownerState);
|
|
64
60
|
return /*#__PURE__*/_jsx(TimelineContentRoot, _extends({
|
|
65
61
|
component: "div",
|
|
@@ -68,29 +64,23 @@ const TimelineContent = /*#__PURE__*/React.forwardRef(function TimelineContent(i
|
|
|
68
64
|
ref: ref
|
|
69
65
|
}, other));
|
|
70
66
|
});
|
|
71
|
-
process.env.NODE_ENV !== "production" ? TimelineContent.propTypes
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
//
|
|
75
|
-
//
|
|
76
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
77
|
-
// ----------------------------------------------------------------------
|
|
78
|
-
|
|
67
|
+
process.env.NODE_ENV !== "production" ? TimelineContent.propTypes /* remove-proptypes */ = {
|
|
68
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
69
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
70
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
71
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
79
72
|
/**
|
|
80
73
|
* The content of the component.
|
|
81
74
|
*/
|
|
82
75
|
children: PropTypes.node,
|
|
83
|
-
|
|
84
76
|
/**
|
|
85
77
|
* Override or extend the styles applied to the component.
|
|
86
78
|
*/
|
|
87
79
|
classes: PropTypes.object,
|
|
88
|
-
|
|
89
80
|
/**
|
|
90
81
|
* @ignore
|
|
91
82
|
*/
|
|
92
83
|
className: PropTypes.string,
|
|
93
|
-
|
|
94
84
|
/**
|
|
95
85
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
96
86
|
*/
|
|
@@ -7,8 +7,10 @@ export interface TimelineContentClasses {
|
|
|
7
7
|
positionLeft: string;
|
|
8
8
|
/** Styles applied to the root element if `position="alternate"`. */
|
|
9
9
|
positionAlternate: string;
|
|
10
|
+
/** Styles applied to the root element if `position="alternate-reverse"`. */
|
|
11
|
+
positionAlternateReverse: string;
|
|
10
12
|
}
|
|
11
|
-
export
|
|
13
|
+
export type TimelineContentClassKey = keyof TimelineContentClasses;
|
|
12
14
|
export declare function getTimelineContentUtilityClass(slot: string): string;
|
|
13
15
|
declare const timelineContentClasses: TimelineContentClasses;
|
|
14
16
|
export default timelineContentClasses;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
|
2
|
+
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
|
2
3
|
export function getTimelineContentUtilityClass(slot) {
|
|
3
4
|
return generateUtilityClass('MuiTimelineContent', slot);
|
|
4
5
|
}
|
|
5
|
-
const timelineContentClasses = generateUtilityClasses('MuiTimelineContent', ['root', 'positionLeft', 'positionRight', 'positionAlternate']);
|
|
6
|
+
const timelineContentClasses = generateUtilityClasses('MuiTimelineContent', ['root', 'positionLeft', 'positionRight', 'positionAlternate', 'positionAlternateReverse']);
|
|
6
7
|
export default timelineContentClasses;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
1
3
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
2
4
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
5
|
const _excluded = ["className", "color", "variant"];
|
|
@@ -9,7 +11,6 @@ import { capitalize } from '@mui/material/utils';
|
|
|
9
11
|
import { unstable_composeClasses as composeClasses } from '@mui/base';
|
|
10
12
|
import { getTimelineDotUtilityClass } from './timelineDotClasses';
|
|
11
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
|
-
|
|
13
14
|
const useUtilityClasses = ownerState => {
|
|
14
15
|
const {
|
|
15
16
|
color,
|
|
@@ -21,7 +22,6 @@ const useUtilityClasses = ownerState => {
|
|
|
21
22
|
};
|
|
22
23
|
return composeClasses(slots, getTimelineDotUtilityClass, classes);
|
|
23
24
|
};
|
|
24
|
-
|
|
25
25
|
const TimelineDotRoot = styled('span', {
|
|
26
26
|
name: 'MuiTimelineDot',
|
|
27
27
|
slot: 'Root',
|
|
@@ -64,19 +64,16 @@ const TimelineDot = /*#__PURE__*/React.forwardRef(function TimelineDot(inProps,
|
|
|
64
64
|
props: inProps,
|
|
65
65
|
name: 'MuiTimelineDot'
|
|
66
66
|
});
|
|
67
|
-
|
|
68
67
|
const {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
68
|
+
className,
|
|
69
|
+
color = 'grey',
|
|
70
|
+
variant = 'filled'
|
|
71
|
+
} = props,
|
|
72
|
+
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
75
73
|
const ownerState = _extends({}, props, {
|
|
76
74
|
color,
|
|
77
75
|
variant
|
|
78
76
|
});
|
|
79
|
-
|
|
80
77
|
const classes = useUtilityClasses(ownerState);
|
|
81
78
|
return /*#__PURE__*/_jsx(TimelineDotRoot, _extends({
|
|
82
79
|
className: clsx(classes.root, className),
|
|
@@ -84,48 +81,36 @@ const TimelineDot = /*#__PURE__*/React.forwardRef(function TimelineDot(inProps,
|
|
|
84
81
|
ref: ref
|
|
85
82
|
}, other));
|
|
86
83
|
});
|
|
87
|
-
process.env.NODE_ENV !== "production" ? TimelineDot.propTypes
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
//
|
|
91
|
-
//
|
|
92
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
93
|
-
// ----------------------------------------------------------------------
|
|
94
|
-
|
|
84
|
+
process.env.NODE_ENV !== "production" ? TimelineDot.propTypes /* remove-proptypes */ = {
|
|
85
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
86
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
87
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
88
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
95
89
|
/**
|
|
96
90
|
* The content of the component.
|
|
97
91
|
*/
|
|
98
92
|
children: PropTypes.node,
|
|
99
|
-
|
|
100
93
|
/**
|
|
101
94
|
* Override or extend the styles applied to the component.
|
|
102
95
|
*/
|
|
103
96
|
classes: PropTypes.object,
|
|
104
|
-
|
|
105
97
|
/**
|
|
106
98
|
* @ignore
|
|
107
99
|
*/
|
|
108
100
|
className: PropTypes.string,
|
|
109
|
-
|
|
110
101
|
/**
|
|
111
102
|
* The dot can have a different colors.
|
|
112
103
|
* @default 'grey'
|
|
113
104
|
*/
|
|
114
|
-
color: PropTypes
|
|
115
|
-
/* @typescript-to-proptypes-ignore */
|
|
116
|
-
.oneOfType([PropTypes.oneOf(['error', 'grey', 'info', 'inherit', 'primary', 'secondary', 'success', 'warning']), PropTypes.string]),
|
|
117
|
-
|
|
105
|
+
color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['error', 'grey', 'info', 'inherit', 'primary', 'secondary', 'success', 'warning']), PropTypes.string]),
|
|
118
106
|
/**
|
|
119
107
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
120
108
|
*/
|
|
121
109
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
122
|
-
|
|
123
110
|
/**
|
|
124
111
|
* The dot can appear filled or outlined.
|
|
125
112
|
* @default 'filled'
|
|
126
113
|
*/
|
|
127
|
-
variant: PropTypes
|
|
128
|
-
/* @typescript-to-proptypes-ignore */
|
|
129
|
-
.oneOfType([PropTypes.oneOf(['filled', 'outlined']), PropTypes.string])
|
|
114
|
+
variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['filled', 'outlined']), PropTypes.string])
|
|
130
115
|
} : void 0;
|
|
131
116
|
export default TimelineDot;
|
|
@@ -18,7 +18,7 @@ export interface TimelineDotClasses {
|
|
|
18
18
|
/** Styles applied to the root element if `color="secondary"` and `variant="outlined"`. */
|
|
19
19
|
outlinedSecondary: string;
|
|
20
20
|
}
|
|
21
|
-
export
|
|
21
|
+
export type TimelineDotClassKey = keyof TimelineDotClasses;
|
|
22
22
|
export declare function getTimelineDotUtilityClass(slot: string): string;
|
|
23
23
|
declare const timelineDotClasses: TimelineDotClasses;
|
|
24
24
|
export default timelineDotClasses;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
|
2
|
+
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
|
2
3
|
export function getTimelineDotUtilityClass(slot) {
|
|
3
4
|
return generateUtilityClass('MuiTimelineDot', slot);
|
|
4
5
|
}
|
|
@@ -8,7 +8,7 @@ export interface TimelineItemProps extends StandardProps<React.HTMLAttributes<HT
|
|
|
8
8
|
/**
|
|
9
9
|
* The position where the timeline's item should appear.
|
|
10
10
|
*/
|
|
11
|
-
position?: 'left' | 'right';
|
|
11
|
+
position?: 'left' | 'right' | 'alternate' | 'alternate-reverse';
|
|
12
12
|
/**
|
|
13
13
|
* The content of the component.
|
|
14
14
|
*/
|