@mui/lab 5.0.0-alpha.107 → 5.0.0-alpha.108
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 -3
- package/AdapterDateFns/AdapterDateFns.js +2 -4
- package/AdapterDateFns/index.d.ts +1 -1
- package/AdapterDayjs/AdapterDayjs.d.ts +3 -3
- package/AdapterDayjs/AdapterDayjs.js +2 -4
- package/AdapterDayjs/index.d.ts +1 -1
- package/AdapterLuxon/AdapterLuxon.d.ts +3 -3
- package/AdapterLuxon/AdapterLuxon.js +2 -4
- package/AdapterLuxon/index.d.ts +1 -1
- package/AdapterMoment/AdapterMoment.d.ts +3 -3
- package/AdapterMoment/AdapterMoment.js +2 -4
- package/AdapterMoment/index.d.ts +1 -1
- package/Alert/Alert.js +1 -2
- package/AlertTitle/AlertTitle.js +1 -2
- package/Autocomplete/Autocomplete.js +1 -2
- package/AvatarGroup/AvatarGroup.js +1 -2
- package/CHANGELOG.md +70 -2
- package/CalendarPicker/CalendarPicker.d.ts +14 -14
- package/CalendarPicker/CalendarPicker.js +0 -2
- package/CalendarPicker/index.d.ts +2 -2
- package/CalendarPickerSkeleton/CalendarPickerSkeleton.d.ts +13 -13
- package/CalendarPickerSkeleton/CalendarPickerSkeleton.js +0 -2
- package/CalendarPickerSkeleton/index.d.ts +2 -2
- package/ClockPicker/ClockPicker.d.ts +14 -14
- package/ClockPicker/ClockPicker.js +0 -2
- package/ClockPicker/index.d.ts +2 -2
- package/DatePicker/DatePicker.d.ts +10 -10
- package/DatePicker/DatePicker.js +0 -2
- package/DatePicker/index.d.ts +2 -2
- package/DateRangePicker/DateRangePicker.d.ts +11 -11
- package/DateRangePicker/DateRangePicker.js +0 -2
- package/DateRangePicker/index.d.ts +2 -2
- package/DateRangePickerDay/DateRangePickerDay.d.ts +13 -13
- package/DateRangePickerDay/DateRangePickerDay.js +0 -2
- package/DateRangePickerDay/index.d.ts +2 -2
- package/DateTimePicker/DateTimePicker.d.ts +10 -10
- package/DateTimePicker/DateTimePicker.js +0 -2
- package/DateTimePicker/index.d.ts +2 -2
- package/DesktopDatePicker/DesktopDatePicker.d.ts +10 -10
- package/DesktopDatePicker/DesktopDatePicker.js +0 -2
- package/DesktopDatePicker/index.d.ts +2 -2
- package/DesktopDateRangePicker/DesktopDateRangePicker.d.ts +10 -10
- package/DesktopDateRangePicker/DesktopDateRangePicker.js +0 -2
- package/DesktopDateRangePicker/index.d.ts +2 -2
- package/DesktopDateTimePicker/DesktopDateTimePicker.d.ts +10 -10
- package/DesktopDateTimePicker/DesktopDateTimePicker.js +0 -2
- package/DesktopDateTimePicker/index.d.ts +2 -2
- package/DesktopTimePicker/DesktopTimePicker.d.ts +10 -10
- package/DesktopTimePicker/DesktopTimePicker.js +0 -2
- package/DesktopTimePicker/index.d.ts +2 -2
- package/LoadingButton/LoadingButton.js +13 -34
- package/LoadingButton/loadingButtonClasses.d.ts +22 -22
- package/LocalizationProvider/LocalizationProvider.d.ts +10 -10
- package/LocalizationProvider/LocalizationProvider.js +0 -2
- package/LocalizationProvider/index.d.ts +2 -2
- package/Masonry/Masonry.js +27 -68
- package/Masonry/masonryClasses.d.ts +8 -8
- package/MobileDatePicker/MobileDatePicker.d.ts +10 -10
- package/MobileDatePicker/MobileDatePicker.js +0 -2
- package/MobileDatePicker/index.d.ts +2 -2
- package/MobileDateRangePicker/MobileDateRangePicker.d.ts +10 -10
- package/MobileDateRangePicker/MobileDateRangePicker.js +0 -2
- package/MobileDateRangePicker/index.d.ts +2 -2
- package/MobileDateTimePicker/MobileDateTimePicker.d.ts +10 -10
- package/MobileDateTimePicker/MobileDateTimePicker.js +0 -2
- package/MobileDateTimePicker/index.d.ts +2 -2
- package/MobileTimePicker/MobileTimePicker.d.ts +10 -10
- package/MobileTimePicker/MobileTimePicker.js +0 -2
- package/MobileTimePicker/index.d.ts +2 -2
- package/MonthPicker/MonthPicker.d.ts +13 -13
- package/MonthPicker/MonthPicker.js +0 -2
- package/MonthPicker/index.d.ts +2 -2
- package/Pagination/Pagination.js +1 -2
- package/PaginationItem/PaginationItem.js +1 -2
- package/PickersDay/PickersDay.d.ts +13 -13
- package/PickersDay/PickersDay.js +0 -2
- package/PickersDay/index.d.ts +2 -2
- package/Rating/Rating.js +1 -2
- package/Skeleton/Skeleton.js +1 -2
- package/SpeedDial/SpeedDial.js +1 -2
- package/SpeedDialAction/SpeedDialAction.js +1 -2
- package/SpeedDialIcon/SpeedDialIcon.js +1 -2
- package/StaticDatePicker/StaticDatePicker.d.ts +10 -10
- package/StaticDatePicker/StaticDatePicker.js +0 -2
- package/StaticDatePicker/index.d.ts +2 -2
- package/StaticDateRangePicker/StaticDateRangePicker.d.ts +10 -10
- package/StaticDateRangePicker/StaticDateRangePicker.js +0 -2
- package/StaticDateRangePicker/index.d.ts +2 -2
- package/StaticDateTimePicker/StaticDateTimePicker.d.ts +10 -10
- package/StaticDateTimePicker/StaticDateTimePicker.js +0 -2
- package/StaticDateTimePicker/index.d.ts +2 -2
- package/StaticTimePicker/StaticTimePicker.d.ts +10 -10
- package/StaticTimePicker/StaticTimePicker.js +0 -2
- package/StaticTimePicker/index.d.ts +2 -2
- package/TabContext/TabContext.js +3 -14
- package/TabList/TabList.js +4 -11
- package/TabPanel/TabPanel.js +6 -20
- package/TabPanel/tabPanelClasses.d.ts +8 -8
- package/TimePicker/TimePicker.d.ts +10 -10
- package/TimePicker/TimePicker.js +0 -2
- package/TimePicker/index.d.ts +2 -2
- package/Timeline/Timeline.d.ts +59 -59
- package/Timeline/Timeline.js +9 -20
- package/Timeline/TimelineContext.d.ts +6 -6
- package/Timeline/TimelineContext.js +1 -3
- package/Timeline/index.d.ts +5 -5
- package/Timeline/timelineClasses.d.ts +3 -3
- package/TimelineConnector/TimelineConnector.js +4 -14
- package/TimelineConnector/timelineConnectorClasses.d.ts +8 -8
- package/TimelineContent/TimelineContent.js +4 -16
- package/TimelineContent/timelineContentClasses.d.ts +14 -14
- package/TimelineDot/TimelineDot.js +8 -25
- package/TimelineDot/timelineDotClasses.d.ts +24 -24
- package/TimelineItem/TimelineItem.js +5 -18
- package/TimelineItem/timelineItemClasses.d.ts +16 -16
- package/TimelineOppositeContent/TimelineOppositeContent.js +4 -16
- package/TimelineOppositeContent/timelineOppositeContentClasses.d.ts +14 -14
- package/TimelineSeparator/TimelineSeparator.js +4 -14
- package/TimelineSeparator/timelineSeparatorClasses.d.ts +8 -8
- package/ToggleButton/ToggleButton.js +1 -2
- package/ToggleButtonGroup/ToggleButtonGroup.js +1 -2
- package/TreeItem/TreeItem.js +19 -58
- package/TreeItem/TreeItemContent.js +12 -28
- package/TreeItem/treeItemClasses.d.ts +24 -24
- package/TreeItem/useTreeItem.js +2 -8
- package/TreeView/TreeView.js +51 -195
- package/TreeView/TreeViewContext.js +1 -3
- package/TreeView/descendants.js +19 -31
- package/TreeView/treeViewClasses.d.ts +8 -8
- package/YearPicker/YearPicker.d.ts +14 -14
- package/YearPicker/YearPicker.js +1 -3
- package/YearPicker/index.d.ts +2 -2
- package/index.js +3 -2
- package/internal/svg-icons/ArrowDropDown.d.ts +7 -7
- package/internal/svg-icons/ArrowDropDown.js +1 -1
- package/internal/svg-icons/ArrowLeft.d.ts +7 -7
- package/internal/svg-icons/ArrowLeft.js +1 -1
- package/internal/svg-icons/ArrowRight.d.ts +7 -7
- package/internal/svg-icons/ArrowRight.js +1 -1
- package/internal/svg-icons/Calendar.d.ts +7 -7
- package/internal/svg-icons/Calendar.js +1 -1
- package/internal/svg-icons/Clock.d.ts +7 -7
- package/internal/svg-icons/Clock.js +1 -1
- package/internal/svg-icons/DateRange.d.ts +7 -7
- package/internal/svg-icons/DateRange.js +1 -1
- package/internal/svg-icons/Pen.d.ts +7 -7
- package/internal/svg-icons/Pen.js +1 -1
- package/internal/svg-icons/Time.d.ts +7 -7
- package/internal/svg-icons/Time.js +1 -1
- package/legacy/AdapterDateFns/AdapterDateFns.js +2 -5
- package/legacy/AdapterDayjs/AdapterDayjs.js +2 -5
- package/legacy/AdapterLuxon/AdapterLuxon.js +2 -5
- package/legacy/AdapterMoment/AdapterMoment.js +2 -5
- package/legacy/Alert/Alert.js +1 -2
- package/legacy/AlertTitle/AlertTitle.js +1 -2
- package/legacy/Autocomplete/Autocomplete.js +1 -2
- package/legacy/AvatarGroup/AvatarGroup.js +1 -2
- package/legacy/CalendarPicker/CalendarPicker.js +0 -2
- package/legacy/CalendarPickerSkeleton/CalendarPickerSkeleton.js +0 -2
- package/legacy/ClockPicker/ClockPicker.js +0 -2
- package/legacy/DatePicker/DatePicker.js +0 -2
- package/legacy/DateRangePicker/DateRangePicker.js +0 -2
- package/legacy/DateRangePickerDay/DateRangePickerDay.js +0 -2
- package/legacy/DateTimePicker/DateTimePicker.js +0 -2
- package/legacy/DesktopDatePicker/DesktopDatePicker.js +0 -2
- package/legacy/DesktopDateRangePicker/DesktopDateRangePicker.js +0 -2
- package/legacy/DesktopDateTimePicker/DesktopDateTimePicker.js +0 -2
- package/legacy/DesktopTimePicker/DesktopTimePicker.js +0 -2
- package/legacy/LoadingButton/LoadingButton.js +19 -40
- package/legacy/LocalizationProvider/LocalizationProvider.js +0 -2
- package/legacy/Masonry/Masonry.js +33 -77
- package/legacy/MobileDatePicker/MobileDatePicker.js +0 -2
- package/legacy/MobileDateRangePicker/MobileDateRangePicker.js +0 -2
- package/legacy/MobileDateTimePicker/MobileDateTimePicker.js +0 -2
- package/legacy/MobileTimePicker/MobileTimePicker.js +0 -2
- package/legacy/MonthPicker/MonthPicker.js +0 -2
- package/legacy/Pagination/Pagination.js +1 -2
- package/legacy/PaginationItem/PaginationItem.js +1 -2
- package/legacy/PickersDay/PickersDay.js +0 -2
- package/legacy/Rating/Rating.js +1 -2
- package/legacy/Skeleton/Skeleton.js +1 -2
- package/legacy/SpeedDial/SpeedDial.js +1 -2
- package/legacy/SpeedDialAction/SpeedDialAction.js +1 -2
- package/legacy/SpeedDialIcon/SpeedDialIcon.js +1 -2
- package/legacy/StaticDatePicker/StaticDatePicker.js +0 -2
- package/legacy/StaticDateRangePicker/StaticDateRangePicker.js +0 -2
- package/legacy/StaticDateTimePicker/StaticDateTimePicker.js +0 -2
- package/legacy/StaticTimePicker/StaticTimePicker.js +0 -2
- package/legacy/TabContext/TabContext.js +6 -18
- package/legacy/TabList/TabList.js +2 -9
- package/legacy/TabPanel/TabPanel.js +4 -18
- package/legacy/TimePicker/TimePicker.js +0 -2
- package/legacy/Timeline/Timeline.js +9 -20
- package/legacy/Timeline/TimelineContext.js +1 -3
- package/legacy/TimelineConnector/TimelineConnector.js +2 -12
- package/legacy/TimelineContent/TimelineContent.js +4 -16
- package/legacy/TimelineDot/TimelineDot.js +11 -28
- package/legacy/TimelineItem/TimelineItem.js +6 -21
- package/legacy/TimelineOppositeContent/TimelineOppositeContent.js +4 -16
- package/legacy/TimelineSeparator/TimelineSeparator.js +2 -12
- package/legacy/ToggleButton/ToggleButton.js +1 -2
- package/legacy/ToggleButtonGroup/ToggleButtonGroup.js +1 -2
- package/legacy/TreeItem/TreeItem.js +37 -81
- package/legacy/TreeItem/TreeItemContent.js +17 -34
- package/legacy/TreeItem/useTreeItem.js +12 -19
- package/legacy/TreeView/TreeView.js +83 -236
- package/legacy/TreeView/TreeViewContext.js +1 -3
- package/legacy/TreeView/descendants.js +26 -44
- package/legacy/YearPicker/YearPicker.js +1 -3
- package/legacy/index.js +3 -2
- package/legacy/internal/svg-icons/ArrowDropDown.js +1 -1
- package/legacy/internal/svg-icons/ArrowLeft.js +1 -1
- package/legacy/internal/svg-icons/ArrowRight.js +1 -1
- package/legacy/internal/svg-icons/Calendar.js +1 -1
- package/legacy/internal/svg-icons/Clock.js +1 -1
- package/legacy/internal/svg-icons/DateRange.js +1 -1
- package/legacy/internal/svg-icons/Pen.js +1 -1
- package/legacy/internal/svg-icons/Time.js +1 -1
- package/modern/AdapterDateFns/AdapterDateFns.js +2 -4
- package/modern/AdapterDayjs/AdapterDayjs.js +2 -4
- package/modern/AdapterLuxon/AdapterLuxon.js +2 -4
- package/modern/AdapterMoment/AdapterMoment.js +2 -4
- package/modern/Alert/Alert.js +1 -2
- package/modern/AlertTitle/AlertTitle.js +1 -2
- package/modern/Autocomplete/Autocomplete.js +1 -2
- package/modern/AvatarGroup/AvatarGroup.js +1 -2
- package/modern/CalendarPicker/CalendarPicker.js +0 -2
- package/modern/CalendarPickerSkeleton/CalendarPickerSkeleton.js +0 -2
- package/modern/ClockPicker/ClockPicker.js +0 -2
- package/modern/DatePicker/DatePicker.js +0 -2
- package/modern/DateRangePicker/DateRangePicker.js +0 -2
- package/modern/DateRangePickerDay/DateRangePickerDay.js +0 -2
- package/modern/DateTimePicker/DateTimePicker.js +0 -2
- package/modern/DesktopDatePicker/DesktopDatePicker.js +0 -2
- package/modern/DesktopDateRangePicker/DesktopDateRangePicker.js +0 -2
- package/modern/DesktopDateTimePicker/DesktopDateTimePicker.js +0 -2
- package/modern/DesktopTimePicker/DesktopTimePicker.js +0 -2
- package/modern/LoadingButton/LoadingButton.js +13 -35
- package/modern/LocalizationProvider/LocalizationProvider.js +0 -2
- package/modern/Masonry/Masonry.js +27 -68
- package/modern/MobileDatePicker/MobileDatePicker.js +0 -2
- package/modern/MobileDateRangePicker/MobileDateRangePicker.js +0 -2
- package/modern/MobileDateTimePicker/MobileDateTimePicker.js +0 -2
- package/modern/MobileTimePicker/MobileTimePicker.js +0 -2
- package/modern/MonthPicker/MonthPicker.js +0 -2
- package/modern/Pagination/Pagination.js +1 -2
- package/modern/PaginationItem/PaginationItem.js +1 -2
- package/modern/PickersDay/PickersDay.js +0 -2
- package/modern/Rating/Rating.js +1 -2
- package/modern/Skeleton/Skeleton.js +1 -2
- package/modern/SpeedDial/SpeedDial.js +1 -2
- package/modern/SpeedDialAction/SpeedDialAction.js +1 -2
- package/modern/SpeedDialIcon/SpeedDialIcon.js +1 -2
- package/modern/StaticDatePicker/StaticDatePicker.js +0 -2
- package/modern/StaticDateRangePicker/StaticDateRangePicker.js +0 -2
- package/modern/StaticDateTimePicker/StaticDateTimePicker.js +0 -2
- package/modern/StaticTimePicker/StaticTimePicker.js +0 -2
- package/modern/TabContext/TabContext.js +3 -14
- package/modern/TabList/TabList.js +4 -11
- package/modern/TabPanel/TabPanel.js +6 -20
- package/modern/TimePicker/TimePicker.js +0 -2
- package/modern/Timeline/Timeline.js +9 -20
- package/modern/Timeline/TimelineContext.js +1 -3
- package/modern/TimelineConnector/TimelineConnector.js +4 -14
- package/modern/TimelineContent/TimelineContent.js +4 -16
- package/modern/TimelineDot/TimelineDot.js +8 -25
- package/modern/TimelineItem/TimelineItem.js +5 -18
- package/modern/TimelineOppositeContent/TimelineOppositeContent.js +4 -16
- package/modern/TimelineSeparator/TimelineSeparator.js +4 -14
- package/modern/ToggleButton/ToggleButton.js +1 -2
- package/modern/ToggleButtonGroup/ToggleButtonGroup.js +1 -2
- package/modern/TreeItem/TreeItem.js +19 -58
- package/modern/TreeItem/TreeItemContent.js +12 -28
- package/modern/TreeItem/useTreeItem.js +2 -8
- package/modern/TreeView/TreeView.js +51 -195
- package/modern/TreeView/TreeViewContext.js +1 -3
- package/modern/TreeView/descendants.js +19 -31
- package/modern/YearPicker/YearPicker.js +1 -3
- package/modern/index.js +3 -2
- package/modern/internal/svg-icons/ArrowDropDown.js +1 -1
- package/modern/internal/svg-icons/ArrowLeft.js +1 -1
- package/modern/internal/svg-icons/ArrowRight.js +1 -1
- package/modern/internal/svg-icons/Calendar.js +1 -1
- package/modern/internal/svg-icons/Clock.js +1 -1
- package/modern/internal/svg-icons/DateRange.js +1 -1
- package/modern/internal/svg-icons/Pen.js +1 -1
- package/modern/internal/svg-icons/Time.js +1 -1
- package/node/AdapterDateFns/AdapterDateFns.js +2 -5
- package/node/AdapterDateFns/index.js +0 -2
- package/node/AdapterDayjs/AdapterDayjs.js +2 -5
- package/node/AdapterDayjs/index.js +0 -2
- package/node/AdapterLuxon/AdapterLuxon.js +2 -5
- package/node/AdapterLuxon/index.js +0 -2
- package/node/AdapterMoment/AdapterMoment.js +2 -5
- package/node/AdapterMoment/index.js +0 -2
- package/node/Alert/Alert.js +1 -11
- package/node/Alert/index.js +0 -2
- package/node/AlertTitle/AlertTitle.js +1 -11
- package/node/AlertTitle/index.js +0 -2
- package/node/Autocomplete/Autocomplete.js +1 -11
- package/node/Autocomplete/index.js +0 -2
- package/node/AvatarGroup/AvatarGroup.js +1 -11
- package/node/AvatarGroup/index.js +0 -2
- package/node/CalendarPicker/CalendarPicker.js +1 -6
- package/node/CalendarPicker/index.js +0 -4
- package/node/CalendarPickerSkeleton/CalendarPickerSkeleton.js +1 -8
- package/node/CalendarPickerSkeleton/index.js +0 -4
- package/node/ClockPicker/ClockPicker.js +1 -6
- package/node/ClockPicker/index.js +0 -4
- package/node/DatePicker/DatePicker.js +1 -6
- package/node/DatePicker/index.js +0 -4
- package/node/DateRangePicker/DateRangePicker.js +1 -6
- package/node/DateRangePicker/index.js +0 -4
- package/node/DateRangePickerDay/DateRangePickerDay.js +1 -8
- package/node/DateRangePickerDay/index.js +0 -4
- package/node/DateTimePicker/DateTimePicker.js +1 -6
- package/node/DateTimePicker/index.js +0 -4
- package/node/DesktopDatePicker/DesktopDatePicker.js +1 -6
- package/node/DesktopDatePicker/index.js +0 -4
- package/node/DesktopDateRangePicker/DesktopDateRangePicker.js +1 -6
- package/node/DesktopDateRangePicker/index.js +0 -4
- package/node/DesktopDateTimePicker/DesktopDateTimePicker.js +1 -6
- package/node/DesktopDateTimePicker/index.js +0 -4
- package/node/DesktopTimePicker/DesktopTimePicker.js +1 -6
- package/node/DesktopTimePicker/index.js +0 -4
- package/node/LoadingButton/LoadingButton.js +13 -46
- package/node/LoadingButton/index.js +0 -6
- package/node/LoadingButton/loadingButtonClasses.js +0 -5
- package/node/LocalizationProvider/LocalizationProvider.js +0 -6
- package/node/LocalizationProvider/index.js +0 -4
- package/node/Masonry/Masonry.js +27 -83
- package/node/Masonry/index.js +0 -6
- package/node/Masonry/masonryClasses.js +0 -5
- package/node/MobileDatePicker/MobileDatePicker.js +1 -6
- package/node/MobileDatePicker/index.js +0 -4
- package/node/MobileDateRangePicker/MobileDateRangePicker.js +1 -6
- package/node/MobileDateRangePicker/index.js +0 -4
- package/node/MobileDateTimePicker/MobileDateTimePicker.js +1 -6
- package/node/MobileDateTimePicker/index.js +0 -4
- package/node/MobileTimePicker/MobileTimePicker.js +1 -6
- package/node/MobileTimePicker/index.js +0 -4
- package/node/MonthPicker/MonthPicker.js +1 -8
- package/node/MonthPicker/index.js +0 -4
- package/node/Pagination/Pagination.js +1 -11
- package/node/Pagination/index.js +0 -3
- package/node/Pagination/usePagination.js +0 -2
- package/node/PaginationItem/PaginationItem.js +1 -11
- package/node/PaginationItem/index.js +0 -2
- package/node/PickersDay/PickersDay.js +1 -8
- package/node/PickersDay/index.js +0 -4
- package/node/Rating/Rating.js +1 -11
- package/node/Rating/index.js +0 -2
- package/node/Skeleton/Skeleton.js +1 -11
- package/node/Skeleton/index.js +0 -2
- package/node/SpeedDial/SpeedDial.js +1 -11
- package/node/SpeedDial/index.js +0 -2
- package/node/SpeedDialAction/SpeedDialAction.js +1 -11
- package/node/SpeedDialAction/index.js +0 -2
- package/node/SpeedDialIcon/SpeedDialIcon.js +1 -11
- package/node/SpeedDialIcon/index.js +0 -2
- package/node/StaticDatePicker/StaticDatePicker.js +1 -6
- package/node/StaticDatePicker/index.js +0 -4
- package/node/StaticDateRangePicker/StaticDateRangePicker.js +1 -6
- package/node/StaticDateRangePicker/index.js +0 -4
- package/node/StaticDateTimePicker/StaticDateTimePicker.js +1 -6
- package/node/StaticDateTimePicker/index.js +0 -4
- package/node/StaticTimePicker/StaticTimePicker.js +1 -6
- package/node/StaticTimePicker/index.js +0 -4
- package/node/TabContext/TabContext.js +2 -23
- package/node/TabContext/index.js +0 -4
- package/node/TabList/TabList.js +4 -22
- package/node/TabList/index.js +0 -2
- package/node/TabPanel/TabPanel.js +6 -31
- package/node/TabPanel/index.js +0 -6
- package/node/TabPanel/tabPanelClasses.js +0 -5
- package/node/TimePicker/TimePicker.js +1 -6
- package/node/TimePicker/index.js +0 -4
- package/node/Timeline/Timeline.js +9 -32
- package/node/Timeline/TimelineContext.js +0 -6
- package/node/Timeline/index.js +0 -6
- package/node/Timeline/timelineClasses.js +0 -5
- package/node/TimelineConnector/TimelineConnector.js +4 -25
- package/node/TimelineConnector/index.js +0 -6
- package/node/TimelineConnector/timelineConnectorClasses.js +0 -5
- package/node/TimelineContent/TimelineContent.js +4 -28
- package/node/TimelineContent/index.js +0 -6
- package/node/TimelineContent/timelineContentClasses.js +0 -5
- package/node/TimelineDot/TimelineDot.js +8 -36
- package/node/TimelineDot/index.js +0 -6
- package/node/TimelineDot/timelineDotClasses.js +0 -5
- package/node/TimelineItem/TimelineItem.js +5 -31
- package/node/TimelineItem/index.js +0 -6
- package/node/TimelineItem/timelineItemClasses.js +0 -5
- package/node/TimelineOppositeContent/TimelineOppositeContent.js +4 -28
- package/node/TimelineOppositeContent/index.js +0 -6
- package/node/TimelineOppositeContent/timelineOppositeContentClasses.js +0 -5
- package/node/TimelineSeparator/TimelineSeparator.js +4 -25
- package/node/TimelineSeparator/index.js +0 -6
- package/node/TimelineSeparator/timelineSeparatorClasses.js +0 -5
- package/node/ToggleButton/ToggleButton.js +1 -11
- package/node/ToggleButton/index.js +0 -2
- package/node/ToggleButtonGroup/ToggleButtonGroup.js +1 -11
- package/node/ToggleButtonGroup/index.js +0 -2
- package/node/TreeItem/TreeItem.js +19 -73
- package/node/TreeItem/TreeItemContent.js +11 -38
- package/node/TreeItem/index.js +0 -7
- package/node/TreeItem/treeItemClasses.js +0 -5
- package/node/TreeItem/useTreeItem.js +2 -14
- package/node/TreeView/TreeView.js +51 -205
- package/node/TreeView/TreeViewContext.js +0 -6
- package/node/TreeView/descendants.js +18 -40
- package/node/TreeView/index.js +0 -6
- package/node/TreeView/treeViewClasses.js +0 -5
- package/node/YearPicker/YearPicker.js +1 -6
- package/node/YearPicker/index.js +0 -4
- package/node/index.js +1 -107
- package/node/internal/svg-icons/ArrowDropDown.js +0 -7
- package/node/internal/svg-icons/ArrowLeft.js +0 -7
- package/node/internal/svg-icons/ArrowRight.js +0 -7
- package/node/internal/svg-icons/Calendar.js +0 -7
- package/node/internal/svg-icons/Clock.js +0 -7
- package/node/internal/svg-icons/DateRange.js +0 -7
- package/node/internal/svg-icons/Pen.js +0 -7
- package/node/internal/svg-icons/Time.js +0 -7
- package/node/useAutocomplete/index.js +0 -1
- package/package.json +6 -6
package/Skeleton/Skeleton.js
CHANGED
|
@@ -3,16 +3,15 @@ import * as React from 'react';
|
|
|
3
3
|
import Skeleton from '@mui/material/Skeleton';
|
|
4
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
5
|
let warnedOnce = false;
|
|
6
|
+
|
|
6
7
|
/**
|
|
7
8
|
* @ignore - do not document.
|
|
8
9
|
*/
|
|
9
|
-
|
|
10
10
|
export default /*#__PURE__*/React.forwardRef(function DeprecatedSkeleton(props, ref) {
|
|
11
11
|
if (!warnedOnce) {
|
|
12
12
|
console.warn(['MUI: The Skeleton component was moved from the lab to the core.', '', "You should use `import { Skeleton } from '@mui/material'`", "or `import Skeleton from '@mui/material/Skeleton'`"].join('\n'));
|
|
13
13
|
warnedOnce = true;
|
|
14
14
|
}
|
|
15
|
-
|
|
16
15
|
return /*#__PURE__*/_jsx(Skeleton, _extends({
|
|
17
16
|
ref: ref
|
|
18
17
|
}, props));
|
package/SpeedDial/SpeedDial.js
CHANGED
|
@@ -3,16 +3,15 @@ import * as React from 'react';
|
|
|
3
3
|
import SpeedDial from '@mui/material/SpeedDial';
|
|
4
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
5
|
let warnedOnce = false;
|
|
6
|
+
|
|
6
7
|
/**
|
|
7
8
|
* @ignore - do not document.
|
|
8
9
|
*/
|
|
9
|
-
|
|
10
10
|
export default /*#__PURE__*/React.forwardRef(function DeprecatedSpeedDial(props, ref) {
|
|
11
11
|
if (!warnedOnce) {
|
|
12
12
|
console.warn(['MUI: The SpeedDial component was moved from the lab to the core.', '', "You should use `import { SpeedDial } from '@mui/material'`", "or `import SpeedDial from '@mui/material/SpeedDial'`"].join('\n'));
|
|
13
13
|
warnedOnce = true;
|
|
14
14
|
}
|
|
15
|
-
|
|
16
15
|
return /*#__PURE__*/_jsx(SpeedDial, _extends({
|
|
17
16
|
ref: ref
|
|
18
17
|
}, props));
|
|
@@ -3,16 +3,15 @@ import * as React from 'react';
|
|
|
3
3
|
import SpeedDialAction from '@mui/material/SpeedDialAction';
|
|
4
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
5
|
let warnedOnce = false;
|
|
6
|
+
|
|
6
7
|
/**
|
|
7
8
|
* @ignore - do not document.
|
|
8
9
|
*/
|
|
9
|
-
|
|
10
10
|
export default /*#__PURE__*/React.forwardRef(function DeprecatedSpeedDialAction(props, ref) {
|
|
11
11
|
if (!warnedOnce) {
|
|
12
12
|
console.warn(['MUI: The SpeedDialAction component was moved from the lab to the core.', '', "You should use `import { SpeedDialAction } from '@mui/material'`", "or `import SpeedDialAction from '@mui/material/SpeedDialAction'`"].join('\n'));
|
|
13
13
|
warnedOnce = true;
|
|
14
14
|
}
|
|
15
|
-
|
|
16
15
|
return /*#__PURE__*/_jsx(SpeedDialAction, _extends({
|
|
17
16
|
ref: ref
|
|
18
17
|
}, props));
|
|
@@ -3,16 +3,15 @@ import * as React from 'react';
|
|
|
3
3
|
import SpeedDialIcon from '@mui/material/SpeedDialIcon';
|
|
4
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
5
|
let warnedOnce = false;
|
|
6
|
+
|
|
6
7
|
/**
|
|
7
8
|
* @ignore - do not document.
|
|
8
9
|
*/
|
|
9
|
-
|
|
10
10
|
export default /*#__PURE__*/React.forwardRef(function DeprecatedSpeedDialIcon(props, ref) {
|
|
11
11
|
if (!warnedOnce) {
|
|
12
12
|
console.warn(['MUI: The SpeedDialIcon component was moved from the lab to the core.', '', "You should use `import { SpeedDialIcon } from '@mui/material'`", "or `import SpeedDialIcon from '@mui/material/SpeedDialIcon'`"].join('\n'));
|
|
13
13
|
warnedOnce = true;
|
|
14
14
|
}
|
|
15
|
-
|
|
16
15
|
return /*#__PURE__*/_jsx(SpeedDialIcon, _extends({
|
|
17
16
|
ref: ref
|
|
18
17
|
}, props));
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
declare type StaticDatePickerComponent = (<TDate>(props: StaticDatePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
|
|
3
|
-
propTypes?: any;
|
|
4
|
-
};
|
|
5
|
-
/**
|
|
6
|
-
* @ignore - do not document.
|
|
7
|
-
*/
|
|
8
|
-
declare const StaticDatePicker: StaticDatePickerComponent;
|
|
9
|
-
export default StaticDatePicker;
|
|
10
|
-
export declare type StaticDatePickerProps<TDate> = Record<any, any>;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare type StaticDatePickerComponent = (<TDate>(props: StaticDatePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
|
|
3
|
+
propTypes?: any;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* @ignore - do not document.
|
|
7
|
+
*/
|
|
8
|
+
declare const StaticDatePicker: StaticDatePickerComponent;
|
|
9
|
+
export default StaticDatePicker;
|
|
10
|
+
export declare type StaticDatePickerProps<TDate> = Record<any, any>;
|
|
@@ -1,14 +1,12 @@
|
|
|
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 StaticDatePicker component was moved from `@mui/lab` to `@mui/x-date-pickers`.', '', "You should use `import { StaticDatePicker } from '@mui/x-date-pickers'`", "or `import { StaticDatePicker } from '@mui/x-date-pickers/StaticDatePicker'`", '', '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
|
/**
|
|
13
11
|
* @ignore - do not document.
|
|
14
12
|
*/
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default } from './StaticDatePicker';
|
|
2
|
-
export * from './StaticDatePicker';
|
|
1
|
+
export { default } from './StaticDatePicker';
|
|
2
|
+
export * from './StaticDatePicker';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
declare type StaticDateRangePickerComponent = (<TDate>(props: StaticDateRangePickerProps & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
|
|
3
|
-
propTypes?: any;
|
|
4
|
-
};
|
|
5
|
-
/**
|
|
6
|
-
* @ignore - do not document.
|
|
7
|
-
*/
|
|
8
|
-
declare const StaticDateRangePicker: StaticDateRangePickerComponent;
|
|
9
|
-
export default StaticDateRangePicker;
|
|
10
|
-
export declare type StaticDateRangePickerProps = Record<any, any>;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare type StaticDateRangePickerComponent = (<TDate>(props: StaticDateRangePickerProps & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
|
|
3
|
+
propTypes?: any;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* @ignore - do not document.
|
|
7
|
+
*/
|
|
8
|
+
declare const StaticDateRangePicker: StaticDateRangePickerComponent;
|
|
9
|
+
export default StaticDateRangePicker;
|
|
10
|
+
export declare type StaticDateRangePickerProps = Record<any, any>;
|
|
@@ -1,14 +1,12 @@
|
|
|
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 StaticDateRangePicker component was moved from `@mui/lab` to `@mui/x-date-pickers-pro`', '', "You should use `import { StaticDateRangePicker } from '@mui/x-date-pickers-pro'`", "or `import { StaticDateRangePicker } from '@mui/x-date-pickers-pro/StaticDateRangePicker'`", '', '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
|
/**
|
|
13
11
|
* @ignore - do not document.
|
|
14
12
|
*/
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default } from './StaticDateRangePicker';
|
|
2
|
-
export * from './StaticDateRangePicker';
|
|
1
|
+
export { default } from './StaticDateRangePicker';
|
|
2
|
+
export * from './StaticDateRangePicker';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
declare type StaticDateTimePickerComponent = (<TDate>(props: StaticDateTimePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
|
|
3
|
-
propTypes?: any;
|
|
4
|
-
};
|
|
5
|
-
/**
|
|
6
|
-
* @ignore - do not document.
|
|
7
|
-
*/
|
|
8
|
-
declare const StaticDateTimePicker: StaticDateTimePickerComponent;
|
|
9
|
-
export default StaticDateTimePicker;
|
|
10
|
-
export declare type StaticDateTimePickerProps<TDate> = Record<any, any>;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare type StaticDateTimePickerComponent = (<TDate>(props: StaticDateTimePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
|
|
3
|
+
propTypes?: any;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* @ignore - do not document.
|
|
7
|
+
*/
|
|
8
|
+
declare const StaticDateTimePicker: StaticDateTimePickerComponent;
|
|
9
|
+
export default StaticDateTimePicker;
|
|
10
|
+
export declare type StaticDateTimePickerProps<TDate> = Record<any, any>;
|
|
@@ -1,14 +1,12 @@
|
|
|
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 StaticDateTimePicker component was moved from `@mui/lab` to `@mui/x-date-pickers`.', '', "You should use `import { StaticDateTimePicker } from '@mui/x-date-pickers'`", "or `import { StaticDateTimePicker } from '@mui/x-date-pickers/StaticDateTimePicker'`", '', '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
|
/**
|
|
13
11
|
* @ignore - do not document.
|
|
14
12
|
*/
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default } from './StaticDateTimePicker';
|
|
2
|
-
export * from './StaticDateTimePicker';
|
|
1
|
+
export { default } from './StaticDateTimePicker';
|
|
2
|
+
export * from './StaticDateTimePicker';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
declare type StaticTimePickerComponent = (<TDate>(props: StaticTimePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
|
|
3
|
-
propTypes?: any;
|
|
4
|
-
};
|
|
5
|
-
/**
|
|
6
|
-
* @ignore - do not document.
|
|
7
|
-
*/
|
|
8
|
-
declare const StaticTimePicker: StaticTimePickerComponent;
|
|
9
|
-
export default StaticTimePicker;
|
|
10
|
-
export declare type StaticTimePickerProps<TDate> = Record<any, any>;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare type StaticTimePickerComponent = (<TDate>(props: StaticTimePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
|
|
3
|
+
propTypes?: any;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* @ignore - do not document.
|
|
7
|
+
*/
|
|
8
|
+
declare const StaticTimePicker: StaticTimePickerComponent;
|
|
9
|
+
export default StaticTimePicker;
|
|
10
|
+
export declare type StaticTimePickerProps<TDate> = Record<any, any>;
|
|
@@ -1,14 +1,12 @@
|
|
|
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 StaticTimePicker component was moved from `@mui/lab` to `@mui/x-date-pickers`.', '', "You should use `import { StaticTimePicker } from '@mui/x-date-pickers'`", "or `import { StaticTimePicker } from '@mui/x-date-pickers/StaticTimePicker'`", '', '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
|
/**
|
|
13
11
|
* @ignore - do not document.
|
|
14
12
|
*/
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default } from './StaticTimePicker';
|
|
2
|
-
export * from './StaticTimePicker';
|
|
1
|
+
export { default } from './StaticTimePicker';
|
|
2
|
+
export * from './StaticTimePicker';
|
package/TabContext/TabContext.js
CHANGED
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
+
|
|
3
4
|
/**
|
|
4
5
|
* @type {React.Context<{ idPrefix: string; value: string } | null>}
|
|
5
6
|
*/
|
|
6
|
-
|
|
7
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
8
|
const Context = /*#__PURE__*/React.createContext(null);
|
|
9
|
-
|
|
10
9
|
if (process.env.NODE_ENV !== 'production') {
|
|
11
10
|
Context.displayName = 'TabContext';
|
|
12
11
|
}
|
|
13
|
-
|
|
14
12
|
function useUniquePrefix() {
|
|
15
13
|
const [id, setId] = React.useState(null);
|
|
16
14
|
React.useEffect(() => {
|
|
@@ -18,7 +16,6 @@ function useUniquePrefix() {
|
|
|
18
16
|
}, []);
|
|
19
17
|
return id;
|
|
20
18
|
}
|
|
21
|
-
|
|
22
19
|
export default function TabContext(props) {
|
|
23
20
|
const {
|
|
24
21
|
children,
|
|
@@ -36,28 +33,24 @@ export default function TabContext(props) {
|
|
|
36
33
|
children: children
|
|
37
34
|
});
|
|
38
35
|
}
|
|
39
|
-
process.env.NODE_ENV !== "production" ? TabContext.propTypes
|
|
40
|
-
/* remove-proptypes */
|
|
41
|
-
= {
|
|
36
|
+
process.env.NODE_ENV !== "production" ? TabContext.propTypes /* remove-proptypes */ = {
|
|
42
37
|
// ----------------------------- Warning --------------------------------
|
|
43
38
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
44
39
|
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
45
40
|
// ----------------------------------------------------------------------
|
|
46
|
-
|
|
47
41
|
/**
|
|
48
42
|
* The content of the component.
|
|
49
43
|
*/
|
|
50
44
|
children: PropTypes.node,
|
|
51
|
-
|
|
52
45
|
/**
|
|
53
46
|
* The value of the currently selected `Tab`.
|
|
54
47
|
*/
|
|
55
48
|
value: PropTypes.string.isRequired
|
|
56
49
|
} : void 0;
|
|
50
|
+
|
|
57
51
|
/**
|
|
58
52
|
* @returns {unknown}
|
|
59
53
|
*/
|
|
60
|
-
|
|
61
54
|
export function useTabContext() {
|
|
62
55
|
return React.useContext(Context);
|
|
63
56
|
}
|
|
@@ -65,21 +58,17 @@ export function getPanelId(context, value) {
|
|
|
65
58
|
const {
|
|
66
59
|
idPrefix
|
|
67
60
|
} = context;
|
|
68
|
-
|
|
69
61
|
if (idPrefix === null) {
|
|
70
62
|
return null;
|
|
71
63
|
}
|
|
72
|
-
|
|
73
64
|
return `${context.idPrefix}-P-${value}`;
|
|
74
65
|
}
|
|
75
66
|
export function getTabId(context, value) {
|
|
76
67
|
const {
|
|
77
68
|
idPrefix
|
|
78
69
|
} = context;
|
|
79
|
-
|
|
80
70
|
if (idPrefix === null) {
|
|
81
71
|
return null;
|
|
82
72
|
}
|
|
83
|
-
|
|
84
73
|
return `${context.idPrefix}-T-${value}`;
|
|
85
74
|
}
|
package/TabList/TabList.js
CHANGED
|
@@ -8,21 +8,17 @@ import { useTabContext, getTabId, getPanelId } from '../TabContext';
|
|
|
8
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
9
|
const TabList = /*#__PURE__*/React.forwardRef(function TabList(props, ref) {
|
|
10
10
|
const {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
children: childrenProp
|
|
12
|
+
} = props,
|
|
13
|
+
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
15
14
|
const context = useTabContext();
|
|
16
|
-
|
|
17
15
|
if (context === null) {
|
|
18
16
|
throw new TypeError('No TabContext provided');
|
|
19
17
|
}
|
|
20
|
-
|
|
21
18
|
const children = React.Children.map(childrenProp, child => {
|
|
22
19
|
if (! /*#__PURE__*/React.isValidElement(child)) {
|
|
23
20
|
return null;
|
|
24
21
|
}
|
|
25
|
-
|
|
26
22
|
return /*#__PURE__*/React.cloneElement(child, {
|
|
27
23
|
// SOMEDAY: `Tabs` will set those themselves
|
|
28
24
|
'aria-controls': getPanelId(context, child.props.value),
|
|
@@ -35,14 +31,11 @@ const TabList = /*#__PURE__*/React.forwardRef(function TabList(props, ref) {
|
|
|
35
31
|
children: children
|
|
36
32
|
}));
|
|
37
33
|
});
|
|
38
|
-
process.env.NODE_ENV !== "production" ? TabList.propTypes
|
|
39
|
-
/* remove-proptypes */
|
|
40
|
-
= {
|
|
34
|
+
process.env.NODE_ENV !== "production" ? TabList.propTypes /* remove-proptypes */ = {
|
|
41
35
|
// ----------------------------- Warning --------------------------------
|
|
42
36
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
43
37
|
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
44
38
|
// ----------------------------------------------------------------------
|
|
45
|
-
|
|
46
39
|
/**
|
|
47
40
|
* A list of `<Tab />` elements.
|
|
48
41
|
*/
|
package/TabPanel/TabPanel.js
CHANGED
|
@@ -9,7 +9,6 @@ import { unstable_composeClasses as composeClasses } from '@mui/base';
|
|
|
9
9
|
import { getTabPanelUtilityClass } from './tabPanelClasses';
|
|
10
10
|
import { getPanelId, getTabId, useTabContext } from '../TabContext';
|
|
11
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
|
-
|
|
13
12
|
const useUtilityClasses = ownerState => {
|
|
14
13
|
const {
|
|
15
14
|
classes
|
|
@@ -19,7 +18,6 @@ const useUtilityClasses = ownerState => {
|
|
|
19
18
|
};
|
|
20
19
|
return composeClasses(slots, getTabPanelUtilityClass, classes);
|
|
21
20
|
};
|
|
22
|
-
|
|
23
21
|
const TabPanelRoot = styled('div', {
|
|
24
22
|
name: 'MuiTabPanel',
|
|
25
23
|
slot: 'Root',
|
|
@@ -34,23 +32,18 @@ const TabPanel = /*#__PURE__*/React.forwardRef(function TabPanel(inProps, ref) {
|
|
|
34
32
|
props: inProps,
|
|
35
33
|
name: 'MuiTabPanel'
|
|
36
34
|
});
|
|
37
|
-
|
|
38
35
|
const {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
36
|
+
children,
|
|
37
|
+
className,
|
|
38
|
+
value
|
|
39
|
+
} = props,
|
|
40
|
+
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
45
41
|
const ownerState = _extends({}, props);
|
|
46
|
-
|
|
47
42
|
const classes = useUtilityClasses(ownerState);
|
|
48
43
|
const context = useTabContext();
|
|
49
|
-
|
|
50
44
|
if (context === null) {
|
|
51
45
|
throw new TypeError('No TabContext provided');
|
|
52
46
|
}
|
|
53
|
-
|
|
54
47
|
const id = getPanelId(context, value);
|
|
55
48
|
const tabId = getTabId(context, value);
|
|
56
49
|
return /*#__PURE__*/_jsx(TabPanelRoot, _extends({
|
|
@@ -65,34 +58,27 @@ const TabPanel = /*#__PURE__*/React.forwardRef(function TabPanel(inProps, ref) {
|
|
|
65
58
|
children: value === context.value && children
|
|
66
59
|
}));
|
|
67
60
|
});
|
|
68
|
-
process.env.NODE_ENV !== "production" ? TabPanel.propTypes
|
|
69
|
-
/* remove-proptypes */
|
|
70
|
-
= {
|
|
61
|
+
process.env.NODE_ENV !== "production" ? TabPanel.propTypes /* remove-proptypes */ = {
|
|
71
62
|
// ----------------------------- Warning --------------------------------
|
|
72
63
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
73
64
|
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
74
65
|
// ----------------------------------------------------------------------
|
|
75
|
-
|
|
76
66
|
/**
|
|
77
67
|
* The content of the component.
|
|
78
68
|
*/
|
|
79
69
|
children: PropTypes.node,
|
|
80
|
-
|
|
81
70
|
/**
|
|
82
71
|
* Override or extend the styles applied to the component.
|
|
83
72
|
*/
|
|
84
73
|
classes: PropTypes.object,
|
|
85
|
-
|
|
86
74
|
/**
|
|
87
75
|
* @ignore
|
|
88
76
|
*/
|
|
89
77
|
className: PropTypes.string,
|
|
90
|
-
|
|
91
78
|
/**
|
|
92
79
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
93
80
|
*/
|
|
94
81
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
95
|
-
|
|
96
82
|
/**
|
|
97
83
|
* The `value` of the corresponding `Tab`. Must use the index of the `Tab` when
|
|
98
84
|
* no `value` was passed to `Tab`.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export interface TabPanelClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
}
|
|
5
|
-
export declare type TabPanelClassKey = keyof TabPanelClasses;
|
|
6
|
-
export declare function getTabPanelUtilityClass(slot: string): string;
|
|
7
|
-
declare const tabPanelClasses: TabPanelClasses;
|
|
8
|
-
export default tabPanelClasses;
|
|
1
|
+
export interface TabPanelClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
}
|
|
5
|
+
export declare type TabPanelClassKey = keyof TabPanelClasses;
|
|
6
|
+
export declare function getTabPanelUtilityClass(slot: string): string;
|
|
7
|
+
declare const tabPanelClasses: TabPanelClasses;
|
|
8
|
+
export default tabPanelClasses;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
declare type TimePickerComponent = (<TDate>(props: TimePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
|
|
3
|
-
propTypes?: any;
|
|
4
|
-
};
|
|
5
|
-
/**
|
|
6
|
-
* @ignore - do not document.
|
|
7
|
-
*/
|
|
8
|
-
declare const TimePicker: TimePickerComponent;
|
|
9
|
-
export default TimePicker;
|
|
10
|
-
export declare type TimePickerProps<TDate> = Record<any, any>;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare type TimePickerComponent = (<TDate>(props: TimePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
|
|
3
|
+
propTypes?: any;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* @ignore - do not document.
|
|
7
|
+
*/
|
|
8
|
+
declare const TimePicker: TimePickerComponent;
|
|
9
|
+
export default TimePicker;
|
|
10
|
+
export declare type TimePickerProps<TDate> = Record<any, any>;
|
package/TimePicker/TimePicker.js
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
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 TimePicker component was moved from `@mui/lab` to `@mui/x-date-pickers`.', '', "You should use `import { TimePicker } from '@mui/x-date-pickers'`", "or `import { TimePicker } from '@mui/x-date-pickers/TimePicker'`", '', '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
|
/**
|
|
13
11
|
* @ignore - do not document.
|
|
14
12
|
*/
|
package/TimePicker/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default } from './TimePicker';
|
|
2
|
-
export * from './TimePicker';
|
|
1
|
+
export { default } from './TimePicker';
|
|
2
|
+
export * from './TimePicker';
|