@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/Masonry/Masonry.js
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
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
|
-
const _excluded = ["children", "className", "component", "columns", "spacing", "defaultColumns", "defaultHeight", "defaultSpacing"];
|
|
5
|
+
const _excluded = ["children", "className", "component", "columns", "spacing", "sequential", "defaultColumns", "defaultHeight", "defaultSpacing"];
|
|
4
6
|
import { unstable_composeClasses as composeClasses } from '@mui/base';
|
|
5
|
-
import
|
|
7
|
+
import * as ReactDOM from 'react-dom';
|
|
6
8
|
import { styled, useThemeProps } from '@mui/material/styles';
|
|
7
9
|
import { createUnarySpacing, getValue, handleBreakpoints, unstable_resolveBreakpointValues as resolveBreakpointValues } from '@mui/system';
|
|
8
|
-
import { deepmerge, unstable_useForkRef as useForkRef } from '@mui/utils';
|
|
10
|
+
import { deepmerge, unstable_useForkRef as useForkRef, unstable_useEnhancedEffect as useEnhancedEffect } from '@mui/utils';
|
|
9
11
|
import clsx from 'clsx';
|
|
10
12
|
import PropTypes from 'prop-types';
|
|
11
13
|
import * as React from 'react';
|
|
12
14
|
import { getMasonryUtilityClass } from './masonryClasses';
|
|
13
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
16
|
export const parseToNumber = val => {
|
|
16
17
|
return Number(val.replace('px', ''));
|
|
17
18
|
};
|
|
@@ -21,7 +22,6 @@ const lineBreakStyle = {
|
|
|
21
22
|
margin: 0,
|
|
22
23
|
padding: 0
|
|
23
24
|
};
|
|
24
|
-
|
|
25
25
|
const useUtilityClasses = ownerState => {
|
|
26
26
|
const {
|
|
27
27
|
classes
|
|
@@ -31,7 +31,6 @@ const useUtilityClasses = ownerState => {
|
|
|
31
31
|
};
|
|
32
32
|
return composeClasses(slots, getMasonryUtilityClass, classes);
|
|
33
33
|
};
|
|
34
|
-
|
|
35
34
|
export const getStyle = ({
|
|
36
35
|
ownerState,
|
|
37
36
|
theme
|
|
@@ -46,18 +45,16 @@ export const getStyle = ({
|
|
|
46
45
|
boxSizing: 'border-box'
|
|
47
46
|
}
|
|
48
47
|
};
|
|
49
|
-
const stylesSSR = {};
|
|
50
|
-
|
|
48
|
+
const stylesSSR = {};
|
|
49
|
+
// Only applicable for Server-Side Rendering
|
|
51
50
|
if (ownerState.isSSR) {
|
|
52
51
|
const orderStyleSSR = {};
|
|
53
52
|
const defaultSpacing = parseToNumber(theme.spacing(ownerState.defaultSpacing));
|
|
54
|
-
|
|
55
53
|
for (let i = 1; i <= ownerState.defaultColumns; i += 1) {
|
|
56
54
|
orderStyleSSR[`&:nth-of-type(${ownerState.defaultColumns}n+${i % ownerState.defaultColumns})`] = {
|
|
57
55
|
order: i
|
|
58
56
|
};
|
|
59
57
|
}
|
|
60
|
-
|
|
61
58
|
stylesSSR.height = ownerState.defaultHeight;
|
|
62
59
|
stylesSSR.margin = -(defaultSpacing / 2);
|
|
63
60
|
stylesSSR['& > *'] = _extends({}, styles['& > *'], orderStyleSSR, {
|
|
@@ -66,23 +63,20 @@ export const getStyle = ({
|
|
|
66
63
|
});
|
|
67
64
|
return _extends({}, styles, stylesSSR);
|
|
68
65
|
}
|
|
69
|
-
|
|
70
66
|
const spacingValues = resolveBreakpointValues({
|
|
71
67
|
values: ownerState.spacing,
|
|
72
68
|
breakpoints: theme.breakpoints.values
|
|
73
69
|
});
|
|
74
70
|
const transformer = createUnarySpacing(theme);
|
|
75
|
-
|
|
76
71
|
const spacingStyleFromPropValue = propValue => {
|
|
77
|
-
let spacing;
|
|
78
|
-
|
|
72
|
+
let spacing;
|
|
73
|
+
// in case of string/number value
|
|
79
74
|
if (typeof propValue === 'string' && !Number.isNaN(Number(propValue)) || typeof propValue === 'number') {
|
|
80
75
|
const themeSpacingValue = Number(propValue);
|
|
81
76
|
spacing = getValue(transformer, themeSpacingValue);
|
|
82
77
|
} else {
|
|
83
78
|
spacing = propValue;
|
|
84
79
|
}
|
|
85
|
-
|
|
86
80
|
return _extends({
|
|
87
81
|
margin: `calc(0px - (${spacing} / 2))`,
|
|
88
82
|
'& > *': {
|
|
@@ -92,7 +86,6 @@ export const getStyle = ({
|
|
|
92
86
|
height: typeof spacing === 'number' ? Math.ceil(ownerState.maxColumnHeight + parseToNumber(spacing)) : `calc(${ownerState.maxColumnHeight}px + ${spacing})`
|
|
93
87
|
});
|
|
94
88
|
};
|
|
95
|
-
|
|
96
89
|
styles = deepmerge(styles, handleBreakpoints({
|
|
97
90
|
theme
|
|
98
91
|
}, spacingValues, spacingStyleFromPropValue));
|
|
@@ -100,7 +93,6 @@ export const getStyle = ({
|
|
|
100
93
|
values: ownerState.columns,
|
|
101
94
|
breakpoints: theme.breakpoints.values
|
|
102
95
|
});
|
|
103
|
-
|
|
104
96
|
const columnStyleFromPropValue = propValue => {
|
|
105
97
|
const columnValue = Number(propValue);
|
|
106
98
|
const width = `${(100 / columnValue).toFixed(2)}%`;
|
|
@@ -111,11 +103,11 @@ export const getStyle = ({
|
|
|
111
103
|
}
|
|
112
104
|
};
|
|
113
105
|
};
|
|
114
|
-
|
|
115
106
|
styles = deepmerge(styles, handleBreakpoints({
|
|
116
107
|
theme
|
|
117
|
-
}, columnValues, columnStyleFromPropValue));
|
|
108
|
+
}, columnValues, columnStyleFromPropValue));
|
|
118
109
|
|
|
110
|
+
// configure width for responsive spacing values
|
|
119
111
|
if (typeof spacingValues === 'object') {
|
|
120
112
|
styles = deepmerge(styles, handleBreakpoints({
|
|
121
113
|
theme
|
|
@@ -132,11 +124,9 @@ export const getStyle = ({
|
|
|
132
124
|
}
|
|
133
125
|
};
|
|
134
126
|
}
|
|
135
|
-
|
|
136
127
|
return null;
|
|
137
128
|
}));
|
|
138
129
|
}
|
|
139
|
-
|
|
140
130
|
return styles;
|
|
141
131
|
};
|
|
142
132
|
const MasonryRoot = styled('div', {
|
|
@@ -151,24 +141,22 @@ const Masonry = /*#__PURE__*/React.forwardRef(function Masonry(inProps, ref) {
|
|
|
151
141
|
props: inProps,
|
|
152
142
|
name: 'MuiMasonry'
|
|
153
143
|
});
|
|
154
|
-
|
|
155
144
|
const {
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
145
|
+
children,
|
|
146
|
+
className,
|
|
147
|
+
component = 'div',
|
|
148
|
+
columns = 4,
|
|
149
|
+
spacing = 1,
|
|
150
|
+
sequential = false,
|
|
151
|
+
defaultColumns,
|
|
152
|
+
defaultHeight,
|
|
153
|
+
defaultSpacing
|
|
154
|
+
} = props,
|
|
155
|
+
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
167
156
|
const masonryRef = React.useRef();
|
|
168
157
|
const [maxColumnHeight, setMaxColumnHeight] = React.useState();
|
|
169
158
|
const isSSR = !maxColumnHeight && defaultHeight && defaultColumns !== undefined && defaultSpacing !== undefined;
|
|
170
159
|
const [numberOfLineBreaks, setNumberOfLineBreaks] = React.useState(isSSR ? defaultColumns - 1 : 0);
|
|
171
|
-
|
|
172
160
|
const ownerState = _extends({}, props, {
|
|
173
161
|
spacing,
|
|
174
162
|
columns,
|
|
@@ -178,94 +166,101 @@ const Masonry = /*#__PURE__*/React.forwardRef(function Masonry(inProps, ref) {
|
|
|
178
166
|
defaultSpacing,
|
|
179
167
|
isSSR
|
|
180
168
|
});
|
|
181
|
-
|
|
182
169
|
const classes = useUtilityClasses(ownerState);
|
|
183
|
-
|
|
184
|
-
const handleResize = masonryChildren => {
|
|
170
|
+
const handleResize = React.useCallback(masonryChildren => {
|
|
185
171
|
if (!masonryRef.current || !masonryChildren || masonryChildren.length === 0) {
|
|
186
172
|
return;
|
|
187
173
|
}
|
|
188
|
-
|
|
189
174
|
const masonry = masonryRef.current;
|
|
190
175
|
const masonryFirstChild = masonryRef.current.firstChild;
|
|
191
176
|
const parentWidth = masonry.clientWidth;
|
|
192
177
|
const firstChildWidth = masonryFirstChild.clientWidth;
|
|
193
|
-
|
|
194
178
|
if (parentWidth === 0 || firstChildWidth === 0) {
|
|
195
179
|
return;
|
|
196
180
|
}
|
|
197
|
-
|
|
198
181
|
const firstChildComputedStyle = window.getComputedStyle(masonryFirstChild);
|
|
199
182
|
const firstChildMarginLeft = parseToNumber(firstChildComputedStyle.marginLeft);
|
|
200
183
|
const firstChildMarginRight = parseToNumber(firstChildComputedStyle.marginRight);
|
|
201
184
|
const currentNumberOfColumns = Math.round(parentWidth / (firstChildWidth + firstChildMarginLeft + firstChildMarginRight));
|
|
202
185
|
const columnHeights = new Array(currentNumberOfColumns).fill(0);
|
|
203
186
|
let skip = false;
|
|
187
|
+
let nextOrder = 1;
|
|
204
188
|
masonry.childNodes.forEach(child => {
|
|
205
189
|
if (child.nodeType !== Node.ELEMENT_NODE || child.dataset.class === 'line-break' || skip) {
|
|
206
190
|
return;
|
|
207
191
|
}
|
|
208
|
-
|
|
209
192
|
const childComputedStyle = window.getComputedStyle(child);
|
|
210
193
|
const childMarginTop = parseToNumber(childComputedStyle.marginTop);
|
|
211
|
-
const childMarginBottom = parseToNumber(childComputedStyle.marginBottom);
|
|
212
|
-
|
|
194
|
+
const childMarginBottom = parseToNumber(childComputedStyle.marginBottom);
|
|
195
|
+
// if any one of children isn't rendered yet, masonry's height shouldn't be computed yet
|
|
213
196
|
const childHeight = parseToNumber(childComputedStyle.height) ? Math.ceil(parseToNumber(childComputedStyle.height)) + childMarginTop + childMarginBottom : 0;
|
|
214
|
-
|
|
215
197
|
if (childHeight === 0) {
|
|
216
198
|
skip = true;
|
|
217
199
|
return;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
|
|
200
|
+
}
|
|
201
|
+
// if there is a nested image that isn't rendered yet, masonry's height shouldn't be computed yet
|
|
221
202
|
for (let i = 0; i < child.childNodes.length; i += 1) {
|
|
222
203
|
const nestedChild = child.childNodes[i];
|
|
223
|
-
|
|
224
204
|
if (nestedChild.tagName === 'IMG' && nestedChild.clientHeight === 0) {
|
|
225
205
|
skip = true;
|
|
226
206
|
break;
|
|
227
207
|
}
|
|
228
208
|
}
|
|
229
|
-
|
|
230
209
|
if (!skip) {
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
210
|
+
if (sequential) {
|
|
211
|
+
columnHeights[nextOrder - 1] += childHeight;
|
|
212
|
+
child.style.order = nextOrder;
|
|
213
|
+
nextOrder += 1;
|
|
214
|
+
if (nextOrder > currentNumberOfColumns) {
|
|
215
|
+
nextOrder = 1;
|
|
216
|
+
}
|
|
217
|
+
} else {
|
|
218
|
+
// find the current shortest column (where the current item will be placed)
|
|
219
|
+
const currentMinColumnIndex = columnHeights.indexOf(Math.min(...columnHeights));
|
|
220
|
+
columnHeights[currentMinColumnIndex] += childHeight;
|
|
221
|
+
const order = currentMinColumnIndex + 1;
|
|
222
|
+
child.style.order = order;
|
|
223
|
+
}
|
|
236
224
|
}
|
|
237
225
|
});
|
|
238
|
-
|
|
239
226
|
if (!skip) {
|
|
240
227
|
// In React 18, state updates in a ResizeObserver's callback are happening after the paint which causes flickering
|
|
241
228
|
// when doing some visual updates in it. Using flushSync ensures that the dom will be painted after the states updates happen
|
|
242
229
|
// Related issue - https://github.com/facebook/react/issues/24331
|
|
243
|
-
flushSync(() => {
|
|
230
|
+
ReactDOM.flushSync(() => {
|
|
244
231
|
setMaxColumnHeight(Math.max(...columnHeights));
|
|
245
232
|
setNumberOfLineBreaks(currentNumberOfColumns > 0 ? currentNumberOfColumns - 1 : 0);
|
|
246
233
|
});
|
|
247
234
|
}
|
|
248
|
-
};
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
const resizeObserver = observer.current; // IE and old browsers are not supported
|
|
253
|
-
|
|
254
|
-
if (resizeObserver === undefined) {
|
|
235
|
+
}, [sequential]);
|
|
236
|
+
useEnhancedEffect(() => {
|
|
237
|
+
// IE and old browsers are not supported
|
|
238
|
+
if (typeof ResizeObserver === 'undefined') {
|
|
255
239
|
return undefined;
|
|
256
240
|
}
|
|
257
|
-
|
|
241
|
+
let animationFrame;
|
|
242
|
+
const resizeObserver = new ResizeObserver(() => {
|
|
243
|
+
// see https://github.com/mui/material-ui/issues/36909
|
|
244
|
+
animationFrame = requestAnimationFrame(handleResize);
|
|
245
|
+
});
|
|
258
246
|
if (masonryRef.current) {
|
|
259
247
|
masonryRef.current.childNodes.forEach(childNode => {
|
|
260
248
|
resizeObserver.observe(childNode);
|
|
261
249
|
});
|
|
262
250
|
}
|
|
251
|
+
return () => {
|
|
252
|
+
if (animationFrame) {
|
|
253
|
+
window.cancelAnimationFrame(animationFrame);
|
|
254
|
+
}
|
|
255
|
+
if (resizeObserver) {
|
|
256
|
+
resizeObserver.disconnect();
|
|
257
|
+
}
|
|
258
|
+
};
|
|
259
|
+
}, [columns, spacing, children, handleResize]);
|
|
260
|
+
const handleRef = useForkRef(ref, masonryRef);
|
|
263
261
|
|
|
264
|
-
|
|
265
|
-
}, [columns, spacing, children]);
|
|
266
|
-
const handleRef = useForkRef(ref, masonryRef); // columns are likely to have different heights and hence can start to merge;
|
|
262
|
+
// columns are likely to have different heights and hence can start to merge;
|
|
267
263
|
// a line break at the end of each column prevents columns from merging
|
|
268
|
-
|
|
269
264
|
const lineBreaks = new Array(numberOfLineBreaks).fill('').map((_, index) => /*#__PURE__*/_jsx("span", {
|
|
270
265
|
"data-class": "line-break",
|
|
271
266
|
style: _extends({}, lineBreakStyle, {
|
|
@@ -281,64 +276,55 @@ const Masonry = /*#__PURE__*/React.forwardRef(function Masonry(inProps, ref) {
|
|
|
281
276
|
children: [children, lineBreaks]
|
|
282
277
|
}));
|
|
283
278
|
});
|
|
284
|
-
process.env.NODE_ENV !== "production" ? Masonry.propTypes
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
//
|
|
288
|
-
//
|
|
289
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
290
|
-
// ----------------------------------------------------------------------
|
|
291
|
-
|
|
279
|
+
process.env.NODE_ENV !== "production" ? Masonry.propTypes /* remove-proptypes */ = {
|
|
280
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
281
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
282
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
283
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
292
284
|
/**
|
|
293
285
|
* The content of the component.
|
|
294
286
|
*/
|
|
295
|
-
children: PropTypes
|
|
296
|
-
/* @typescript-to-proptypes-ignore */
|
|
297
|
-
.node.isRequired,
|
|
298
|
-
|
|
287
|
+
children: PropTypes /* @typescript-to-proptypes-ignore */.node.isRequired,
|
|
299
288
|
/**
|
|
300
289
|
* Override or extend the styles applied to the component.
|
|
301
290
|
*/
|
|
302
291
|
classes: PropTypes.object,
|
|
303
|
-
|
|
304
292
|
/**
|
|
305
293
|
* @ignore
|
|
306
294
|
*/
|
|
307
295
|
className: PropTypes.string,
|
|
308
|
-
|
|
309
296
|
/**
|
|
310
297
|
* Number of columns.
|
|
311
298
|
* @default 4
|
|
312
299
|
*/
|
|
313
300
|
columns: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),
|
|
314
|
-
|
|
315
301
|
/**
|
|
316
302
|
* The component used for the root node.
|
|
317
303
|
* Either a string to use a HTML element or a component.
|
|
318
304
|
*/
|
|
319
305
|
component: PropTypes.elementType,
|
|
320
|
-
|
|
321
306
|
/**
|
|
322
307
|
* The default number of columns of the component. This is provided for server-side rendering.
|
|
323
308
|
*/
|
|
324
309
|
defaultColumns: PropTypes.number,
|
|
325
|
-
|
|
326
310
|
/**
|
|
327
311
|
* The default height of the component in px. This is provided for server-side rendering.
|
|
328
312
|
*/
|
|
329
313
|
defaultHeight: PropTypes.number,
|
|
330
|
-
|
|
331
314
|
/**
|
|
332
315
|
* The default spacing of the component. Like `spacing`, it is a factor of the theme's spacing. This is provided for server-side rendering.
|
|
333
316
|
*/
|
|
334
317
|
defaultSpacing: PropTypes.number,
|
|
335
|
-
|
|
318
|
+
/**
|
|
319
|
+
* Allows using sequential order rather than adding to shortest column
|
|
320
|
+
* @default false
|
|
321
|
+
*/
|
|
322
|
+
sequential: PropTypes.bool,
|
|
336
323
|
/**
|
|
337
324
|
* Defines the space between children. It is a factor of the theme's spacing.
|
|
338
325
|
* @default 1
|
|
339
326
|
*/
|
|
340
327
|
spacing: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),
|
|
341
|
-
|
|
342
328
|
/**
|
|
343
329
|
* Allows defining system overrides as well as additional CSS styles.
|
|
344
330
|
*/
|
|
@@ -2,7 +2,7 @@ export interface MasonryClasses {
|
|
|
2
2
|
/** Styles applied to the root element. */
|
|
3
3
|
root: string;
|
|
4
4
|
}
|
|
5
|
-
export
|
|
5
|
+
export type MasonryClassKey = keyof MasonryClasses;
|
|
6
6
|
export declare function getMasonryUtilityClass(slot: string): string;
|
|
7
7
|
declare const masonryClasses: MasonryClasses;
|
|
8
8
|
export default masonryClasses;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
|
2
|
+
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
|
2
3
|
export function getMasonryUtilityClass(slot) {
|
|
3
4
|
return generateUtilityClass('MuiMasonry', slot);
|
|
4
5
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
2
|
+
type MobileDatePickerComponent = (<TDate>(props: MobileDatePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
|
|
3
3
|
propTypes?: any;
|
|
4
4
|
};
|
|
5
5
|
/**
|
|
6
|
+
* @deprecated The MobileDatePicker component was moved from `@mui/lab` to `@mui/x-date-pickers`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.
|
|
6
7
|
* @ignore - do not document.
|
|
7
8
|
*/
|
|
8
9
|
declare const MobileDatePicker: MobileDatePickerComponent;
|
|
9
10
|
export default MobileDatePicker;
|
|
10
|
-
export
|
|
11
|
+
export type MobileDatePickerProps<TDate> = Record<any, any>;
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
1
3
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
4
|
import * as React from 'react';
|
|
3
5
|
let warnedOnce = false;
|
|
4
|
-
|
|
5
6
|
const warn = () => {
|
|
6
7
|
if (!warnedOnce) {
|
|
7
8
|
console.warn(['MUI: The MobileDatePicker component was moved from `@mui/lab` to `@mui/x-date-pickers`.', '', "You should use `import { MobileDatePicker } from '@mui/x-date-pickers'`", "or `import { MobileDatePicker } from '@mui/x-date-pickers/MobileDatePicker'`", '', 'More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.'].join('\n'));
|
|
8
9
|
warnedOnce = true;
|
|
9
10
|
}
|
|
10
11
|
};
|
|
11
|
-
|
|
12
12
|
/**
|
|
13
|
+
* @deprecated The MobileDatePicker component was moved from `@mui/lab` to `@mui/x-date-pickers`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.
|
|
13
14
|
* @ignore - do not document.
|
|
14
15
|
*/
|
|
15
16
|
const MobileDatePicker = /*#__PURE__*/React.forwardRef(function DeprecatedMobileDatePicker(props, ref) {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
2
|
+
type MobileDateRangePickerComponent = (<TDate>(props: MobileDateRangePickerProps & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
|
|
3
3
|
propTypes?: any;
|
|
4
4
|
};
|
|
5
5
|
/**
|
|
6
|
+
* @deprecated The MobileDateRangePicker component was moved from `@mui/lab` to `@mui/x-date-pickers-pro`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.
|
|
6
7
|
* @ignore - do not document.
|
|
7
8
|
*/
|
|
8
9
|
declare const MobileDateRangePicker: MobileDateRangePickerComponent;
|
|
9
10
|
export default MobileDateRangePicker;
|
|
10
|
-
export
|
|
11
|
+
export type MobileDateRangePickerProps = Record<any, any>;
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
let warnedOnce = false;
|
|
4
|
-
|
|
5
4
|
const warn = () => {
|
|
6
5
|
if (!warnedOnce) {
|
|
7
6
|
console.warn(['MUI: The MobileDateRangePicker component was moved from `@mui/lab` to `@mui/x-date-pickers-pro`', '', "You should use `import { MobileDateRangePicker } from '@mui/x-date-pickers-pro'`", "or `import { MobileDateRangePicker } from '@mui/x-date-pickers-pro/MobileDateRangePicker'`", '', 'More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.'].join('\n'));
|
|
8
7
|
warnedOnce = true;
|
|
9
8
|
}
|
|
10
9
|
};
|
|
11
|
-
|
|
12
10
|
/**
|
|
11
|
+
* @deprecated The MobileDateRangePicker component was moved from `@mui/lab` to `@mui/x-date-pickers-pro`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.
|
|
13
12
|
* @ignore - do not document.
|
|
14
13
|
*/
|
|
15
14
|
const MobileDateRangePicker = /*#__PURE__*/React.forwardRef(function DeprecatedMobileDateRangePicker() {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
2
|
+
type MobileDateTimePickerComponent = (<TDate>(props: MobileDateTimePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
|
|
3
3
|
propTypes?: any;
|
|
4
4
|
};
|
|
5
5
|
/**
|
|
6
|
+
* @deprecated The MobileDateTimePicker component was moved from `@mui/lab` to `@mui/x-date-pickers`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.
|
|
6
7
|
* @ignore - do not document.
|
|
7
8
|
*/
|
|
8
9
|
declare const MobileDateTimePicker: MobileDateTimePickerComponent;
|
|
9
10
|
export default MobileDateTimePicker;
|
|
10
|
-
export
|
|
11
|
+
export type MobileDateTimePickerProps<TDate> = Record<any, any>;
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
1
3
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
4
|
import * as React from 'react';
|
|
3
5
|
let warnedOnce = false;
|
|
4
|
-
|
|
5
6
|
const warn = () => {
|
|
6
7
|
if (!warnedOnce) {
|
|
7
8
|
console.warn(['MUI: The MobileDateTimePicker component was moved from `@mui/lab` to `@mui/x-date-pickers`.', '', "You should use `import { MobileDateTimePicker } from '@mui/x-date-pickers'`", "or `import { MobileDateTimePicker } from '@mui/x-date-pickers/MobileDateTimePicker'`", '', 'More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.'].join('\n'));
|
|
8
9
|
warnedOnce = true;
|
|
9
10
|
}
|
|
10
11
|
};
|
|
11
|
-
|
|
12
12
|
/**
|
|
13
|
+
* @deprecated The MobileDateTimePicker component was moved from `@mui/lab` to `@mui/x-date-pickers`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.
|
|
13
14
|
* @ignore - do not document.
|
|
14
15
|
*/
|
|
15
16
|
const MobileDateTimePicker = /*#__PURE__*/React.forwardRef(function DeprecatedMobileDateTimePicker() {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
2
|
+
type MobileTimePickerComponent = (<TDate>(props: MobileTimePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
|
|
3
3
|
propTypes?: any;
|
|
4
4
|
};
|
|
5
5
|
/**
|
|
6
|
+
* @deprecated The MobileTimePicker component was moved from `@mui/lab` to `@mui/x-date-pickers`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.
|
|
6
7
|
* @ignore - do not document.
|
|
7
8
|
*/
|
|
8
9
|
declare const MobileTimePicker: MobileTimePickerComponent;
|
|
9
10
|
export default MobileTimePicker;
|
|
10
|
-
export
|
|
11
|
+
export type MobileTimePickerProps<TDate> = Record<any, any>;
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
1
3
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
4
|
import * as React from 'react';
|
|
3
5
|
let warnedOnce = false;
|
|
4
|
-
|
|
5
6
|
const warn = () => {
|
|
6
7
|
if (!warnedOnce) {
|
|
7
8
|
console.warn(['MUI: The MobileTimePicker component was moved from `@mui/lab` to `@mui/x-date-pickers`.', '', "You should use `import { MobileTimePicker } from '@mui/x-date-pickers'`", "or `import { MobileTimePicker } from '@mui/x-date-pickers/MobileTimePicker'`", '', 'More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.'].join('\n'));
|
|
8
9
|
warnedOnce = true;
|
|
9
10
|
}
|
|
10
11
|
};
|
|
11
|
-
|
|
12
12
|
/**
|
|
13
|
+
* @deprecated The MobileTimePicker component was moved from `@mui/lab` to `@mui/x-date-pickers`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.
|
|
13
14
|
* @ignore - do not document.
|
|
14
15
|
*/
|
|
15
16
|
const MobileTimePicker = /*#__PURE__*/React.forwardRef(function DeprecatedMobileTimePicker() {
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
2
|
+
type MonthPickerComponent = (<TDate>(props: MonthPickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
|
|
3
3
|
propTypes?: any;
|
|
4
4
|
};
|
|
5
5
|
/**
|
|
6
|
+
* @deprecated The MonthPicker component was moved from `@mui/lab` to `@mui/x-date-pickers`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.
|
|
6
7
|
* @ignore - do not document.
|
|
7
8
|
*/
|
|
8
9
|
declare const MonthPicker: MonthPickerComponent;
|
|
9
10
|
export default MonthPicker;
|
|
10
11
|
export declare const monthPickerClasses: {};
|
|
11
12
|
export declare const getMonthPickerUtilityClass: (slot: string) => string;
|
|
12
|
-
export
|
|
13
|
-
export
|
|
13
|
+
export type MonthPickerProps<TDate> = Record<any, any>;
|
|
14
|
+
export type MonthPickerClassKey = any;
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
1
3
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
4
|
import * as React from 'react';
|
|
3
5
|
let warnedOnce = false;
|
|
4
|
-
|
|
5
6
|
const warn = () => {
|
|
6
7
|
if (!warnedOnce) {
|
|
7
8
|
console.warn(['MUI: The MonthPicker component was moved from `@mui/lab` to `@mui/x-date-pickers`.', '', "You should use `import { MonthPicker } from '@mui/x-date-pickers'`", "or `import { MonthPicker } from '@mui/x-date-pickers/MonthPicker'`", '', 'More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.'].join('\n'));
|
|
8
9
|
warnedOnce = true;
|
|
9
10
|
}
|
|
10
11
|
};
|
|
11
|
-
|
|
12
12
|
/**
|
|
13
|
+
* @deprecated The MonthPicker component was moved from `@mui/lab` to `@mui/x-date-pickers`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.
|
|
13
14
|
* @ignore - do not document.
|
|
14
15
|
*/
|
|
15
16
|
const MonthPicker = /*#__PURE__*/React.forwardRef(function DeprecatedMonthPicker() {
|
package/Pagination/Pagination.js
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
1
3
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
4
|
import * as React from 'react';
|
|
3
5
|
import Pagination from '@mui/material/Pagination';
|
|
4
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
7
|
let warnedOnce = false;
|
|
8
|
+
|
|
6
9
|
/**
|
|
7
10
|
* @ignore - do not document.
|
|
8
11
|
*/
|
|
9
|
-
|
|
10
12
|
export default /*#__PURE__*/React.forwardRef(function DeprecatedPagination(props, ref) {
|
|
11
13
|
if (!warnedOnce) {
|
|
12
14
|
console.warn(['MUI: The Pagination component was moved from the lab to the core.', '', "You should use `import { Pagination } from '@mui/material'`", "or `import Pagination from '@mui/material/Pagination'`"].join('\n'));
|
|
13
15
|
warnedOnce = true;
|
|
14
16
|
}
|
|
15
|
-
|
|
16
17
|
return /*#__PURE__*/_jsx(Pagination, _extends({
|
|
17
18
|
ref: ref
|
|
18
19
|
}, props));
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
1
3
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
4
|
import * as React from 'react';
|
|
3
5
|
import PaginationItem from '@mui/material/PaginationItem';
|
|
4
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
7
|
let warnedOnce = false;
|
|
8
|
+
|
|
6
9
|
/**
|
|
7
10
|
* @ignore - do not document.
|
|
8
11
|
*/
|
|
9
|
-
|
|
10
12
|
export default /*#__PURE__*/React.forwardRef(function DeprecatedPaginationItem(props, ref) {
|
|
11
13
|
if (!warnedOnce) {
|
|
12
14
|
console.warn(['MUI: The PaginationItem component was moved from the lab to the core.', '', "You should use `import { PaginationItem } from '@mui/material'`", "or `import PaginationItem from '@mui/material/PaginationItem'`"].join('\n'));
|
|
13
15
|
warnedOnce = true;
|
|
14
16
|
}
|
|
15
|
-
|
|
16
17
|
return /*#__PURE__*/_jsx(PaginationItem, _extends({
|
|
17
18
|
ref: ref
|
|
18
19
|
}, props));
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
2
|
+
type PickersDayComponent = (<TDate>(props: PickersDayProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
|
|
3
3
|
propTypes?: any;
|
|
4
4
|
};
|
|
5
5
|
/**
|
|
6
|
+
* @deprecated The PickersDay component was moved from `@mui/lab` to `@mui/x-date-pickers`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.
|
|
6
7
|
* @ignore - do not document.
|
|
7
8
|
*/
|
|
8
9
|
declare const PickersDay: PickersDayComponent;
|
|
9
10
|
export default PickersDay;
|
|
10
11
|
export declare const pickersDayClasses: {};
|
|
11
12
|
export declare const getPickersDayUtilityClass: (slot: string) => string;
|
|
12
|
-
export
|
|
13
|
-
export
|
|
13
|
+
export type PickersDayProps<TDate> = Record<any, any>;
|
|
14
|
+
export type PickersDayClassKey = any;
|