@mui/lab 5.0.0-alpha.100
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 +16 -0
- package/AdapterDateFns/index.d.ts +1 -0
- package/AdapterDateFns/index.js +1 -0
- package/AdapterDateFns/package.json +6 -0
- package/AdapterDayjs/AdapterDayjs.d.ts +3 -0
- package/AdapterDayjs/AdapterDayjs.js +16 -0
- package/AdapterDayjs/index.d.ts +1 -0
- package/AdapterDayjs/index.js +1 -0
- package/AdapterDayjs/package.json +6 -0
- package/AdapterLuxon/AdapterLuxon.d.ts +3 -0
- package/AdapterLuxon/AdapterLuxon.js +16 -0
- package/AdapterLuxon/index.d.ts +1 -0
- package/AdapterLuxon/index.js +1 -0
- package/AdapterLuxon/package.json +6 -0
- package/AdapterMoment/AdapterMoment.d.ts +3 -0
- package/AdapterMoment/AdapterMoment.js +16 -0
- package/AdapterMoment/index.d.ts +1 -0
- package/AdapterMoment/index.js +1 -0
- package/AdapterMoment/package.json +6 -0
- package/Alert/Alert.d.ts +2 -0
- package/Alert/Alert.js +19 -0
- package/Alert/index.d.ts +2 -0
- package/Alert/index.js +1 -0
- package/Alert/package.json +6 -0
- package/AlertTitle/AlertTitle.d.ts +2 -0
- package/AlertTitle/AlertTitle.js +19 -0
- package/AlertTitle/index.d.ts +2 -0
- package/AlertTitle/index.js +1 -0
- package/AlertTitle/package.json +6 -0
- package/Autocomplete/Autocomplete.d.ts +1 -0
- package/Autocomplete/Autocomplete.js +19 -0
- package/Autocomplete/index.d.ts +2 -0
- package/Autocomplete/index.js +1 -0
- package/Autocomplete/package.json +6 -0
- package/AvatarGroup/AvatarGroup.d.ts +2 -0
- package/AvatarGroup/AvatarGroup.js +19 -0
- package/AvatarGroup/index.d.ts +2 -0
- package/AvatarGroup/index.js +1 -0
- package/AvatarGroup/package.json +6 -0
- package/CHANGELOG.md +9458 -0
- package/CalendarPicker/CalendarPicker.d.ts +14 -0
- package/CalendarPicker/CalendarPicker.js +20 -0
- package/CalendarPicker/index.d.ts +2 -0
- package/CalendarPicker/index.js +2 -0
- package/CalendarPicker/package.json +6 -0
- package/CalendarPickerSkeleton/CalendarPickerSkeleton.d.ts +13 -0
- package/CalendarPickerSkeleton/CalendarPickerSkeleton.js +24 -0
- package/CalendarPickerSkeleton/index.d.ts +2 -0
- package/CalendarPickerSkeleton/index.js +2 -0
- package/CalendarPickerSkeleton/package.json +6 -0
- package/ClockPicker/ClockPicker.d.ts +14 -0
- package/ClockPicker/ClockPicker.js +20 -0
- package/ClockPicker/index.d.ts +2 -0
- package/ClockPicker/index.js +2 -0
- package/ClockPicker/package.json +6 -0
- package/DatePicker/DatePicker.d.ts +10 -0
- package/DatePicker/DatePicker.js +19 -0
- package/DatePicker/index.d.ts +2 -0
- package/DatePicker/index.js +2 -0
- package/DatePicker/package.json +6 -0
- package/DateRangePicker/DateRangePicker.d.ts +11 -0
- package/DateRangePicker/DateRangePicker.js +19 -0
- package/DateRangePicker/index.d.ts +2 -0
- package/DateRangePicker/index.js +2 -0
- package/DateRangePicker/package.json +6 -0
- package/DateRangePickerDay/DateRangePickerDay.d.ts +13 -0
- package/DateRangePickerDay/DateRangePickerDay.js +23 -0
- package/DateRangePickerDay/index.d.ts +2 -0
- package/DateRangePickerDay/index.js +2 -0
- package/DateRangePickerDay/package.json +6 -0
- package/DateTimePicker/DateTimePicker.d.ts +10 -0
- package/DateTimePicker/DateTimePicker.js +19 -0
- package/DateTimePicker/index.d.ts +2 -0
- package/DateTimePicker/index.js +2 -0
- package/DateTimePicker/package.json +6 -0
- package/DesktopDatePicker/DesktopDatePicker.d.ts +10 -0
- package/DesktopDatePicker/DesktopDatePicker.js +19 -0
- package/DesktopDatePicker/index.d.ts +2 -0
- package/DesktopDatePicker/index.js +2 -0
- package/DesktopDatePicker/package.json +6 -0
- package/DesktopDateRangePicker/DesktopDateRangePicker.d.ts +10 -0
- package/DesktopDateRangePicker/DesktopDateRangePicker.js +19 -0
- package/DesktopDateRangePicker/index.d.ts +2 -0
- package/DesktopDateRangePicker/index.js +2 -0
- package/DesktopDateRangePicker/package.json +6 -0
- package/DesktopDateTimePicker/DesktopDateTimePicker.d.ts +10 -0
- package/DesktopDateTimePicker/DesktopDateTimePicker.js +19 -0
- package/DesktopDateTimePicker/index.d.ts +2 -0
- package/DesktopDateTimePicker/index.js +2 -0
- package/DesktopDateTimePicker/package.json +6 -0
- package/DesktopTimePicker/DesktopTimePicker.d.ts +10 -0
- package/DesktopTimePicker/DesktopTimePicker.js +19 -0
- package/DesktopTimePicker/index.d.ts +2 -0
- package/DesktopTimePicker/index.js +2 -0
- package/DesktopTimePicker/package.json +6 -0
- package/LICENSE +21 -0
- package/LoadingButton/LoadingButton.d.ts +75 -0
- package/LoadingButton/LoadingButton.js +236 -0
- package/LoadingButton/index.d.ts +5 -0
- package/LoadingButton/index.js +3 -0
- package/LoadingButton/loadingButtonClasses.d.ts +22 -0
- package/LoadingButton/loadingButtonClasses.js +6 -0
- package/LoadingButton/package.json +6 -0
- package/LocalizationProvider/LocalizationProvider.d.ts +10 -0
- package/LocalizationProvider/LocalizationProvider.js +18 -0
- package/LocalizationProvider/index.d.ts +2 -0
- package/LocalizationProvider/index.js +2 -0
- package/LocalizationProvider/package.json +6 -0
- package/Masonry/Masonry.d.ts +62 -0
- package/Masonry/Masonry.js +347 -0
- package/Masonry/index.d.ts +5 -0
- package/Masonry/index.js +3 -0
- package/Masonry/masonryClasses.d.ts +8 -0
- package/Masonry/masonryClasses.js +6 -0
- package/Masonry/package.json +6 -0
- package/MobileDatePicker/MobileDatePicker.d.ts +10 -0
- package/MobileDatePicker/MobileDatePicker.js +19 -0
- package/MobileDatePicker/index.d.ts +2 -0
- package/MobileDatePicker/index.js +2 -0
- package/MobileDatePicker/package.json +6 -0
- package/MobileDateRangePicker/MobileDateRangePicker.d.ts +10 -0
- package/MobileDateRangePicker/MobileDateRangePicker.js +19 -0
- package/MobileDateRangePicker/index.d.ts +2 -0
- package/MobileDateRangePicker/index.js +2 -0
- package/MobileDateRangePicker/package.json +6 -0
- package/MobileDateTimePicker/MobileDateTimePicker.d.ts +10 -0
- package/MobileDateTimePicker/MobileDateTimePicker.js +19 -0
- package/MobileDateTimePicker/index.d.ts +2 -0
- package/MobileDateTimePicker/index.js +2 -0
- package/MobileDateTimePicker/package.json +6 -0
- package/MobileTimePicker/MobileTimePicker.d.ts +10 -0
- package/MobileTimePicker/MobileTimePicker.js +19 -0
- package/MobileTimePicker/index.d.ts +2 -0
- package/MobileTimePicker/index.js +2 -0
- package/MobileTimePicker/package.json +6 -0
- package/MonthPicker/MonthPicker.d.ts +13 -0
- package/MonthPicker/MonthPicker.js +24 -0
- package/MonthPicker/index.d.ts +2 -0
- package/MonthPicker/index.js +2 -0
- package/MonthPicker/package.json +6 -0
- package/Pagination/Pagination.d.ts +2 -0
- package/Pagination/Pagination.js +19 -0
- package/Pagination/index.d.ts +4 -0
- package/Pagination/index.js +2 -0
- package/Pagination/package.json +6 -0
- package/Pagination/usePagination.d.ts +2 -0
- package/Pagination/usePagination.js +1 -0
- package/PaginationItem/PaginationItem.d.ts +2 -0
- package/PaginationItem/PaginationItem.js +19 -0
- package/PaginationItem/index.d.ts +2 -0
- package/PaginationItem/index.js +1 -0
- package/PaginationItem/package.json +6 -0
- package/PickersDay/PickersDay.d.ts +13 -0
- package/PickersDay/PickersDay.js +24 -0
- package/PickersDay/index.d.ts +2 -0
- package/PickersDay/index.js +2 -0
- package/PickersDay/package.json +6 -0
- package/README.md +36 -0
- package/Rating/Rating.d.ts +2 -0
- package/Rating/Rating.js +19 -0
- package/Rating/index.d.ts +2 -0
- package/Rating/index.js +1 -0
- package/Rating/package.json +6 -0
- package/Skeleton/Skeleton.d.ts +2 -0
- package/Skeleton/Skeleton.js +19 -0
- package/Skeleton/index.d.ts +2 -0
- package/Skeleton/index.js +1 -0
- package/Skeleton/package.json +6 -0
- package/SpeedDial/SpeedDial.d.ts +2 -0
- package/SpeedDial/SpeedDial.js +19 -0
- package/SpeedDial/index.d.ts +2 -0
- package/SpeedDial/index.js +1 -0
- package/SpeedDial/package.json +6 -0
- package/SpeedDialAction/SpeedDialAction.d.ts +2 -0
- package/SpeedDialAction/SpeedDialAction.js +19 -0
- package/SpeedDialAction/index.d.ts +2 -0
- package/SpeedDialAction/index.js +1 -0
- package/SpeedDialAction/package.json +6 -0
- package/SpeedDialIcon/SpeedDialIcon.d.ts +2 -0
- package/SpeedDialIcon/SpeedDialIcon.js +19 -0
- package/SpeedDialIcon/index.d.ts +2 -0
- package/SpeedDialIcon/index.js +1 -0
- package/SpeedDialIcon/package.json +6 -0
- package/StaticDatePicker/StaticDatePicker.d.ts +10 -0
- package/StaticDatePicker/StaticDatePicker.js +19 -0
- package/StaticDatePicker/index.d.ts +2 -0
- package/StaticDatePicker/index.js +2 -0
- package/StaticDatePicker/package.json +6 -0
- package/StaticDateRangePicker/StaticDateRangePicker.d.ts +10 -0
- package/StaticDateRangePicker/StaticDateRangePicker.js +19 -0
- package/StaticDateRangePicker/index.d.ts +2 -0
- package/StaticDateRangePicker/index.js +2 -0
- package/StaticDateRangePicker/package.json +6 -0
- package/StaticDateTimePicker/StaticDateTimePicker.d.ts +10 -0
- package/StaticDateTimePicker/StaticDateTimePicker.js +19 -0
- package/StaticDateTimePicker/index.d.ts +2 -0
- package/StaticDateTimePicker/index.js +2 -0
- package/StaticDateTimePicker/package.json +6 -0
- package/StaticTimePicker/StaticTimePicker.d.ts +10 -0
- package/StaticTimePicker/StaticTimePicker.js +19 -0
- package/StaticTimePicker/index.d.ts +2 -0
- package/StaticTimePicker/index.js +2 -0
- package/StaticTimePicker/package.json +6 -0
- package/TabContext/TabContext.d.ts +31 -0
- package/TabContext/TabContext.js +85 -0
- package/TabContext/index.d.ts +2 -0
- package/TabContext/index.js +2 -0
- package/TabContext/package.json +6 -0
- package/TabList/TabList.d.ts +39 -0
- package/TabList/TabList.js +51 -0
- package/TabList/index.d.ts +2 -0
- package/TabList/index.js +1 -0
- package/TabList/package.json +6 -0
- package/TabPanel/TabPanel.d.ts +37 -0
- package/TabPanel/TabPanel.js +102 -0
- package/TabPanel/index.d.ts +5 -0
- package/TabPanel/index.js +3 -0
- package/TabPanel/package.json +6 -0
- package/TabPanel/tabPanelClasses.d.ts +8 -0
- package/TabPanel/tabPanelClasses.js +6 -0
- package/TimePicker/TimePicker.d.ts +10 -0
- package/TimePicker/TimePicker.js +19 -0
- package/TimePicker/index.d.ts +2 -0
- package/TimePicker/index.js +2 -0
- package/TimePicker/package.json +6 -0
- package/Timeline/Timeline.d.ts +59 -0
- package/Timeline/Timeline.js +125 -0
- package/Timeline/TimelineContext.d.ts +6 -0
- package/Timeline/TimelineContext.js +12 -0
- package/Timeline/index.d.ts +5 -0
- package/Timeline/index.js +3 -0
- package/Timeline/package.json +6 -0
- package/Timeline/timelineClasses.d.ts +3 -0
- package/Timeline/timelineClasses.js +6 -0
- package/TimelineConnector/TimelineConnector.d.ts +33 -0
- package/TimelineConnector/TimelineConnector.js +82 -0
- package/TimelineConnector/index.d.ts +5 -0
- package/TimelineConnector/index.js +3 -0
- package/TimelineConnector/package.json +6 -0
- package/TimelineConnector/timelineConnectorClasses.d.ts +8 -0
- package/TimelineConnector/timelineConnectorClasses.js +6 -0
- package/TimelineContent/TimelineContent.d.ts +33 -0
- package/TimelineContent/TimelineContent.js +99 -0
- package/TimelineContent/index.d.ts +5 -0
- package/TimelineContent/index.js +3 -0
- package/TimelineContent/package.json +6 -0
- package/TimelineContent/timelineContentClasses.d.ts +14 -0
- package/TimelineContent/timelineContentClasses.js +6 -0
- package/TimelineDot/TimelineDot.d.ts +50 -0
- package/TimelineDot/TimelineDot.js +131 -0
- package/TimelineDot/index.d.ts +5 -0
- package/TimelineDot/index.js +3 -0
- package/TimelineDot/package.json +6 -0
- package/TimelineDot/timelineDotClasses.d.ts +24 -0
- package/TimelineDot/timelineDotClasses.js +6 -0
- package/TimelineItem/TimelineItem.d.ts +36 -0
- package/TimelineItem/TimelineItem.js +135 -0
- package/TimelineItem/index.d.ts +5 -0
- package/TimelineItem/index.js +3 -0
- package/TimelineItem/package.json +6 -0
- package/TimelineItem/timelineItemClasses.d.ts +16 -0
- package/TimelineItem/timelineItemClasses.js +6 -0
- package/TimelineOppositeContent/TimelineOppositeContent.d.ts +37 -0
- package/TimelineOppositeContent/TimelineOppositeContent.js +101 -0
- package/TimelineOppositeContent/index.d.ts +5 -0
- package/TimelineOppositeContent/index.js +3 -0
- package/TimelineOppositeContent/package.json +6 -0
- package/TimelineOppositeContent/timelineOppositeContentClasses.d.ts +14 -0
- package/TimelineOppositeContent/timelineOppositeContentClasses.js +6 -0
- package/TimelineSeparator/TimelineSeparator.d.ts +33 -0
- package/TimelineSeparator/TimelineSeparator.js +79 -0
- package/TimelineSeparator/index.d.ts +5 -0
- package/TimelineSeparator/index.js +3 -0
- package/TimelineSeparator/package.json +6 -0
- package/TimelineSeparator/timelineSeparatorClasses.d.ts +8 -0
- package/TimelineSeparator/timelineSeparatorClasses.js +6 -0
- package/ToggleButton/ToggleButton.d.ts +2 -0
- package/ToggleButton/ToggleButton.js +19 -0
- package/ToggleButton/index.d.ts +2 -0
- package/ToggleButton/index.js +1 -0
- package/ToggleButton/package.json +6 -0
- package/ToggleButtonGroup/ToggleButtonGroup.d.ts +2 -0
- package/ToggleButtonGroup/ToggleButtonGroup.js +19 -0
- package/ToggleButtonGroup/index.d.ts +2 -0
- package/ToggleButtonGroup/index.js +1 -0
- package/ToggleButtonGroup/package.json +6 -0
- package/TreeItem/TreeItem.d.ts +87 -0
- package/TreeItem/TreeItem.js +423 -0
- package/TreeItem/TreeItemContent.d.ts +50 -0
- package/TreeItem/TreeItemContent.js +128 -0
- package/TreeItem/index.d.ts +7 -0
- package/TreeItem/index.js +4 -0
- package/TreeItem/package.json +6 -0
- package/TreeItem/treeItemClasses.d.ts +24 -0
- package/TreeItem/treeItemClasses.js +6 -0
- package/TreeItem/useTreeItem.d.ts +11 -0
- package/TreeItem/useTreeItem.js +74 -0
- package/TreeView/TreeView.d.ts +144 -0
- package/TreeView/TreeView.js +982 -0
- package/TreeView/TreeViewContext.js +12 -0
- package/TreeView/descendants.js +198 -0
- package/TreeView/index.d.ts +5 -0
- package/TreeView/index.js +3 -0
- package/TreeView/package.json +6 -0
- package/TreeView/treeViewClasses.d.ts +8 -0
- package/TreeView/treeViewClasses.js +6 -0
- package/YearPicker/YearPicker.d.ts +14 -0
- package/YearPicker/YearPicker.js +24 -0
- package/YearPicker/index.d.ts +2 -0
- package/YearPicker/index.js +2 -0
- package/YearPicker/package.json +6 -0
- package/index.d.ts +155 -0
- package/index.js +110 -0
- package/internal/svg-icons/ArrowDropDown.d.ts +7 -0
- package/internal/svg-icons/ArrowDropDown.js +10 -0
- package/internal/svg-icons/ArrowLeft.d.ts +7 -0
- package/internal/svg-icons/ArrowLeft.js +10 -0
- package/internal/svg-icons/ArrowRight.d.ts +7 -0
- package/internal/svg-icons/ArrowRight.js +10 -0
- package/internal/svg-icons/Calendar.d.ts +7 -0
- package/internal/svg-icons/Calendar.js +10 -0
- package/internal/svg-icons/Clock.d.ts +7 -0
- package/internal/svg-icons/Clock.js +15 -0
- package/internal/svg-icons/DateRange.d.ts +7 -0
- package/internal/svg-icons/DateRange.js +10 -0
- package/internal/svg-icons/Pen.d.ts +7 -0
- package/internal/svg-icons/Pen.js +10 -0
- package/internal/svg-icons/Time.d.ts +7 -0
- package/internal/svg-icons/Time.js +15 -0
- package/legacy/AdapterDateFns/AdapterDateFns.js +19 -0
- package/legacy/AdapterDateFns/index.js +1 -0
- package/legacy/AdapterDayjs/AdapterDayjs.js +19 -0
- package/legacy/AdapterDayjs/index.js +1 -0
- package/legacy/AdapterLuxon/AdapterLuxon.js +19 -0
- package/legacy/AdapterLuxon/index.js +1 -0
- package/legacy/AdapterMoment/AdapterMoment.js +19 -0
- package/legacy/AdapterMoment/index.js +1 -0
- package/legacy/Alert/Alert.js +19 -0
- package/legacy/Alert/index.js +1 -0
- package/legacy/AlertTitle/AlertTitle.js +19 -0
- package/legacy/AlertTitle/index.js +1 -0
- package/legacy/Autocomplete/Autocomplete.js +19 -0
- package/legacy/Autocomplete/index.js +1 -0
- package/legacy/AvatarGroup/AvatarGroup.js +19 -0
- package/legacy/AvatarGroup/index.js +1 -0
- package/legacy/CalendarPicker/CalendarPicker.js +20 -0
- package/legacy/CalendarPicker/index.js +2 -0
- package/legacy/CalendarPickerSkeleton/CalendarPickerSkeleton.js +24 -0
- package/legacy/CalendarPickerSkeleton/index.js +2 -0
- package/legacy/ClockPicker/ClockPicker.js +20 -0
- package/legacy/ClockPicker/index.js +2 -0
- package/legacy/DatePicker/DatePicker.js +19 -0
- package/legacy/DatePicker/index.js +2 -0
- package/legacy/DateRangePicker/DateRangePicker.js +19 -0
- package/legacy/DateRangePicker/index.js +2 -0
- package/legacy/DateRangePickerDay/DateRangePickerDay.js +23 -0
- package/legacy/DateRangePickerDay/index.js +2 -0
- package/legacy/DateTimePicker/DateTimePicker.js +19 -0
- package/legacy/DateTimePicker/index.js +2 -0
- package/legacy/DesktopDatePicker/DesktopDatePicker.js +19 -0
- package/legacy/DesktopDatePicker/index.js +2 -0
- package/legacy/DesktopDateRangePicker/DesktopDateRangePicker.js +19 -0
- package/legacy/DesktopDateRangePicker/index.js +2 -0
- package/legacy/DesktopDateTimePicker/DesktopDateTimePicker.js +19 -0
- package/legacy/DesktopDateTimePicker/index.js +2 -0
- package/legacy/DesktopTimePicker/DesktopTimePicker.js +19 -0
- package/legacy/DesktopTimePicker/index.js +2 -0
- package/legacy/LoadingButton/LoadingButton.js +229 -0
- package/legacy/LoadingButton/index.js +3 -0
- package/legacy/LoadingButton/loadingButtonClasses.js +6 -0
- package/legacy/LocalizationProvider/LocalizationProvider.js +18 -0
- package/legacy/LocalizationProvider/index.js +2 -0
- package/legacy/Masonry/Masonry.js +357 -0
- package/legacy/Masonry/index.js +3 -0
- package/legacy/Masonry/masonryClasses.js +6 -0
- package/legacy/MobileDatePicker/MobileDatePicker.js +19 -0
- package/legacy/MobileDatePicker/index.js +2 -0
- package/legacy/MobileDateRangePicker/MobileDateRangePicker.js +19 -0
- package/legacy/MobileDateRangePicker/index.js +2 -0
- package/legacy/MobileDateTimePicker/MobileDateTimePicker.js +19 -0
- package/legacy/MobileDateTimePicker/index.js +2 -0
- package/legacy/MobileTimePicker/MobileTimePicker.js +19 -0
- package/legacy/MobileTimePicker/index.js +2 -0
- package/legacy/MonthPicker/MonthPicker.js +24 -0
- package/legacy/MonthPicker/index.js +2 -0
- package/legacy/Pagination/Pagination.js +19 -0
- package/legacy/Pagination/index.js +2 -0
- package/legacy/Pagination/usePagination.js +1 -0
- package/legacy/PaginationItem/PaginationItem.js +19 -0
- package/legacy/PaginationItem/index.js +1 -0
- package/legacy/PickersDay/PickersDay.js +24 -0
- package/legacy/PickersDay/index.js +2 -0
- package/legacy/Rating/Rating.js +19 -0
- package/legacy/Rating/index.js +1 -0
- package/legacy/Skeleton/Skeleton.js +19 -0
- package/legacy/Skeleton/index.js +1 -0
- package/legacy/SpeedDial/SpeedDial.js +19 -0
- package/legacy/SpeedDial/index.js +1 -0
- package/legacy/SpeedDialAction/SpeedDialAction.js +19 -0
- package/legacy/SpeedDialAction/index.js +1 -0
- package/legacy/SpeedDialIcon/SpeedDialIcon.js +19 -0
- package/legacy/SpeedDialIcon/index.js +1 -0
- package/legacy/StaticDatePicker/StaticDatePicker.js +19 -0
- package/legacy/StaticDatePicker/index.js +2 -0
- package/legacy/StaticDateRangePicker/StaticDateRangePicker.js +19 -0
- package/legacy/StaticDateRangePicker/index.js +2 -0
- package/legacy/StaticDateTimePicker/StaticDateTimePicker.js +19 -0
- package/legacy/StaticDateTimePicker/index.js +2 -0
- package/legacy/StaticTimePicker/StaticTimePicker.js +19 -0
- package/legacy/StaticTimePicker/index.js +2 -0
- package/legacy/TabContext/TabContext.js +82 -0
- package/legacy/TabContext/index.js +2 -0
- package/legacy/TabList/TabList.js +48 -0
- package/legacy/TabList/index.js +1 -0
- package/legacy/TabPanel/TabPanel.js +100 -0
- package/legacy/TabPanel/index.js +3 -0
- package/legacy/TabPanel/tabPanelClasses.js +6 -0
- package/legacy/TimePicker/TimePicker.js +19 -0
- package/legacy/TimePicker/index.js +2 -0
- package/legacy/Timeline/Timeline.js +119 -0
- package/legacy/Timeline/TimelineContext.js +12 -0
- package/legacy/Timeline/index.js +3 -0
- package/legacy/Timeline/timelineClasses.js +6 -0
- package/legacy/TimelineConnector/TimelineConnector.js +78 -0
- package/legacy/TimelineConnector/index.js +3 -0
- package/legacy/TimelineConnector/timelineConnectorClasses.js +6 -0
- package/legacy/TimelineContent/TimelineContent.js +92 -0
- package/legacy/TimelineContent/index.js +3 -0
- package/legacy/TimelineContent/timelineContentClasses.js +6 -0
- package/legacy/TimelineDot/TimelineDot.js +127 -0
- package/legacy/TimelineDot/index.js +3 -0
- package/legacy/TimelineDot/timelineDotClasses.js +6 -0
- package/legacy/TimelineItem/TimelineItem.js +130 -0
- package/legacy/TimelineItem/index.js +3 -0
- package/legacy/TimelineItem/timelineItemClasses.js +6 -0
- package/legacy/TimelineOppositeContent/TimelineOppositeContent.js +94 -0
- package/legacy/TimelineOppositeContent/index.js +3 -0
- package/legacy/TimelineOppositeContent/timelineOppositeContentClasses.js +6 -0
- package/legacy/TimelineSeparator/TimelineSeparator.js +76 -0
- package/legacy/TimelineSeparator/index.js +3 -0
- package/legacy/TimelineSeparator/timelineSeparatorClasses.js +6 -0
- package/legacy/ToggleButton/ToggleButton.js +19 -0
- package/legacy/ToggleButton/index.js +1 -0
- package/legacy/ToggleButtonGroup/ToggleButtonGroup.js +19 -0
- package/legacy/ToggleButtonGroup/index.js +1 -0
- package/legacy/TreeItem/TreeItem.js +425 -0
- package/legacy/TreeItem/TreeItemContent.js +125 -0
- package/legacy/TreeItem/index.js +4 -0
- package/legacy/TreeItem/treeItemClasses.js +6 -0
- package/legacy/TreeItem/useTreeItem.js +74 -0
- package/legacy/TreeView/TreeView.js +1045 -0
- package/legacy/TreeView/TreeViewContext.js +12 -0
- package/legacy/TreeView/descendants.js +211 -0
- package/legacy/TreeView/index.js +3 -0
- package/legacy/TreeView/treeViewClasses.js +6 -0
- package/legacy/YearPicker/YearPicker.js +24 -0
- package/legacy/YearPicker/index.js +2 -0
- package/legacy/index.js +110 -0
- package/legacy/internal/svg-icons/ArrowDropDown.js +10 -0
- package/legacy/internal/svg-icons/ArrowLeft.js +10 -0
- package/legacy/internal/svg-icons/ArrowRight.js +10 -0
- package/legacy/internal/svg-icons/Calendar.js +10 -0
- package/legacy/internal/svg-icons/Clock.js +15 -0
- package/legacy/internal/svg-icons/DateRange.js +10 -0
- package/legacy/internal/svg-icons/Pen.js +10 -0
- package/legacy/internal/svg-icons/Time.js +15 -0
- package/legacy/themeAugmentation/index.js +1 -0
- package/legacy/useAutocomplete/index.js +1 -0
- package/modern/AdapterDateFns/AdapterDateFns.js +16 -0
- package/modern/AdapterDateFns/index.js +1 -0
- package/modern/AdapterDayjs/AdapterDayjs.js +16 -0
- package/modern/AdapterDayjs/index.js +1 -0
- package/modern/AdapterLuxon/AdapterLuxon.js +16 -0
- package/modern/AdapterLuxon/index.js +1 -0
- package/modern/AdapterMoment/AdapterMoment.js +16 -0
- package/modern/AdapterMoment/index.js +1 -0
- package/modern/Alert/Alert.js +19 -0
- package/modern/Alert/index.js +1 -0
- package/modern/AlertTitle/AlertTitle.js +19 -0
- package/modern/AlertTitle/index.js +1 -0
- package/modern/Autocomplete/Autocomplete.js +19 -0
- package/modern/Autocomplete/index.js +1 -0
- package/modern/AvatarGroup/AvatarGroup.js +19 -0
- package/modern/AvatarGroup/index.js +1 -0
- package/modern/CalendarPicker/CalendarPicker.js +20 -0
- package/modern/CalendarPicker/index.js +2 -0
- package/modern/CalendarPickerSkeleton/CalendarPickerSkeleton.js +24 -0
- package/modern/CalendarPickerSkeleton/index.js +2 -0
- package/modern/ClockPicker/ClockPicker.js +20 -0
- package/modern/ClockPicker/index.js +2 -0
- package/modern/DatePicker/DatePicker.js +19 -0
- package/modern/DatePicker/index.js +2 -0
- package/modern/DateRangePicker/DateRangePicker.js +19 -0
- package/modern/DateRangePicker/index.js +2 -0
- package/modern/DateRangePickerDay/DateRangePickerDay.js +23 -0
- package/modern/DateRangePickerDay/index.js +2 -0
- package/modern/DateTimePicker/DateTimePicker.js +19 -0
- package/modern/DateTimePicker/index.js +2 -0
- package/modern/DesktopDatePicker/DesktopDatePicker.js +19 -0
- package/modern/DesktopDatePicker/index.js +2 -0
- package/modern/DesktopDateRangePicker/DesktopDateRangePicker.js +19 -0
- package/modern/DesktopDateRangePicker/index.js +2 -0
- package/modern/DesktopDateTimePicker/DesktopDateTimePicker.js +19 -0
- package/modern/DesktopDateTimePicker/index.js +2 -0
- package/modern/DesktopTimePicker/DesktopTimePicker.js +19 -0
- package/modern/DesktopTimePicker/index.js +2 -0
- package/modern/LoadingButton/LoadingButton.js +237 -0
- package/modern/LoadingButton/index.js +3 -0
- package/modern/LoadingButton/loadingButtonClasses.js +6 -0
- package/modern/LocalizationProvider/LocalizationProvider.js +18 -0
- package/modern/LocalizationProvider/index.js +2 -0
- package/modern/Masonry/Masonry.js +347 -0
- package/modern/Masonry/index.js +3 -0
- package/modern/Masonry/masonryClasses.js +6 -0
- package/modern/MobileDatePicker/MobileDatePicker.js +19 -0
- package/modern/MobileDatePicker/index.js +2 -0
- package/modern/MobileDateRangePicker/MobileDateRangePicker.js +19 -0
- package/modern/MobileDateRangePicker/index.js +2 -0
- package/modern/MobileDateTimePicker/MobileDateTimePicker.js +19 -0
- package/modern/MobileDateTimePicker/index.js +2 -0
- package/modern/MobileTimePicker/MobileTimePicker.js +19 -0
- package/modern/MobileTimePicker/index.js +2 -0
- package/modern/MonthPicker/MonthPicker.js +24 -0
- package/modern/MonthPicker/index.js +2 -0
- package/modern/Pagination/Pagination.js +19 -0
- package/modern/Pagination/index.js +2 -0
- package/modern/Pagination/usePagination.js +1 -0
- package/modern/PaginationItem/PaginationItem.js +19 -0
- package/modern/PaginationItem/index.js +1 -0
- package/modern/PickersDay/PickersDay.js +24 -0
- package/modern/PickersDay/index.js +2 -0
- package/modern/Rating/Rating.js +19 -0
- package/modern/Rating/index.js +1 -0
- package/modern/Skeleton/Skeleton.js +19 -0
- package/modern/Skeleton/index.js +1 -0
- package/modern/SpeedDial/SpeedDial.js +19 -0
- package/modern/SpeedDial/index.js +1 -0
- package/modern/SpeedDialAction/SpeedDialAction.js +19 -0
- package/modern/SpeedDialAction/index.js +1 -0
- package/modern/SpeedDialIcon/SpeedDialIcon.js +19 -0
- package/modern/SpeedDialIcon/index.js +1 -0
- package/modern/StaticDatePicker/StaticDatePicker.js +19 -0
- package/modern/StaticDatePicker/index.js +2 -0
- package/modern/StaticDateRangePicker/StaticDateRangePicker.js +19 -0
- package/modern/StaticDateRangePicker/index.js +2 -0
- package/modern/StaticDateTimePicker/StaticDateTimePicker.js +19 -0
- package/modern/StaticDateTimePicker/index.js +2 -0
- package/modern/StaticTimePicker/StaticTimePicker.js +19 -0
- package/modern/StaticTimePicker/index.js +2 -0
- package/modern/TabContext/TabContext.js +85 -0
- package/modern/TabContext/index.js +2 -0
- package/modern/TabList/TabList.js +51 -0
- package/modern/TabList/index.js +1 -0
- package/modern/TabPanel/TabPanel.js +102 -0
- package/modern/TabPanel/index.js +3 -0
- package/modern/TabPanel/tabPanelClasses.js +6 -0
- package/modern/TimePicker/TimePicker.js +19 -0
- package/modern/TimePicker/index.js +2 -0
- package/modern/Timeline/Timeline.js +125 -0
- package/modern/Timeline/TimelineContext.js +12 -0
- package/modern/Timeline/index.js +3 -0
- package/modern/Timeline/timelineClasses.js +6 -0
- package/modern/TimelineConnector/TimelineConnector.js +82 -0
- package/modern/TimelineConnector/index.js +3 -0
- package/modern/TimelineConnector/timelineConnectorClasses.js +6 -0
- package/modern/TimelineContent/TimelineContent.js +99 -0
- package/modern/TimelineContent/index.js +3 -0
- package/modern/TimelineContent/timelineContentClasses.js +6 -0
- package/modern/TimelineDot/TimelineDot.js +131 -0
- package/modern/TimelineDot/index.js +3 -0
- package/modern/TimelineDot/timelineDotClasses.js +6 -0
- package/modern/TimelineItem/TimelineItem.js +135 -0
- package/modern/TimelineItem/index.js +3 -0
- package/modern/TimelineItem/timelineItemClasses.js +6 -0
- package/modern/TimelineOppositeContent/TimelineOppositeContent.js +101 -0
- package/modern/TimelineOppositeContent/index.js +3 -0
- package/modern/TimelineOppositeContent/timelineOppositeContentClasses.js +6 -0
- package/modern/TimelineSeparator/TimelineSeparator.js +79 -0
- package/modern/TimelineSeparator/index.js +3 -0
- package/modern/TimelineSeparator/timelineSeparatorClasses.js +6 -0
- package/modern/ToggleButton/ToggleButton.js +19 -0
- package/modern/ToggleButton/index.js +1 -0
- package/modern/ToggleButtonGroup/ToggleButtonGroup.js +19 -0
- package/modern/ToggleButtonGroup/index.js +1 -0
- package/modern/TreeItem/TreeItem.js +423 -0
- package/modern/TreeItem/TreeItemContent.js +128 -0
- package/modern/TreeItem/index.js +4 -0
- package/modern/TreeItem/treeItemClasses.js +6 -0
- package/modern/TreeItem/useTreeItem.js +74 -0
- package/modern/TreeView/TreeView.js +982 -0
- package/modern/TreeView/TreeViewContext.js +12 -0
- package/modern/TreeView/descendants.js +198 -0
- package/modern/TreeView/index.js +3 -0
- package/modern/TreeView/treeViewClasses.js +6 -0
- package/modern/YearPicker/YearPicker.js +24 -0
- package/modern/YearPicker/index.js +2 -0
- package/modern/index.js +110 -0
- package/modern/internal/svg-icons/ArrowDropDown.js +10 -0
- package/modern/internal/svg-icons/ArrowLeft.js +10 -0
- package/modern/internal/svg-icons/ArrowRight.js +10 -0
- package/modern/internal/svg-icons/Calendar.js +10 -0
- package/modern/internal/svg-icons/Clock.js +15 -0
- package/modern/internal/svg-icons/DateRange.js +10 -0
- package/modern/internal/svg-icons/Pen.js +10 -0
- package/modern/internal/svg-icons/Time.js +15 -0
- package/modern/themeAugmentation/index.js +1 -0
- package/modern/useAutocomplete/index.js +1 -0
- package/node/AdapterDateFns/AdapterDateFns.js +24 -0
- package/node/AdapterDateFns/index.js +15 -0
- package/node/AdapterDayjs/AdapterDayjs.js +24 -0
- package/node/AdapterDayjs/index.js +15 -0
- package/node/AdapterLuxon/AdapterLuxon.js +24 -0
- package/node/AdapterLuxon/index.js +15 -0
- package/node/AdapterMoment/AdapterMoment.js +24 -0
- package/node/AdapterMoment/index.js +15 -0
- package/node/Alert/Alert.js +38 -0
- package/node/Alert/index.js +15 -0
- package/node/AlertTitle/AlertTitle.js +38 -0
- package/node/AlertTitle/index.js +15 -0
- package/node/Autocomplete/Autocomplete.js +38 -0
- package/node/Autocomplete/index.js +15 -0
- package/node/AvatarGroup/AvatarGroup.js +38 -0
- package/node/AvatarGroup/index.js +15 -0
- package/node/CalendarPicker/CalendarPicker.js +34 -0
- package/node/CalendarPicker/index.js +30 -0
- package/node/CalendarPickerSkeleton/CalendarPickerSkeleton.js +41 -0
- package/node/CalendarPickerSkeleton/index.js +30 -0
- package/node/ClockPicker/ClockPicker.js +34 -0
- package/node/ClockPicker/index.js +30 -0
- package/node/DatePicker/DatePicker.js +32 -0
- package/node/DatePicker/index.js +30 -0
- package/node/DateRangePicker/DateRangePicker.js +32 -0
- package/node/DateRangePicker/index.js +30 -0
- package/node/DateRangePickerDay/DateRangePickerDay.js +39 -0
- package/node/DateRangePickerDay/index.js +30 -0
- package/node/DateTimePicker/DateTimePicker.js +32 -0
- package/node/DateTimePicker/index.js +30 -0
- package/node/DesktopDatePicker/DesktopDatePicker.js +32 -0
- package/node/DesktopDatePicker/index.js +30 -0
- package/node/DesktopDateRangePicker/DesktopDateRangePicker.js +32 -0
- package/node/DesktopDateRangePicker/index.js +30 -0
- package/node/DesktopDateTimePicker/DesktopDateTimePicker.js +32 -0
- package/node/DesktopDateTimePicker/index.js +30 -0
- package/node/DesktopTimePicker/DesktopTimePicker.js +32 -0
- package/node/DesktopTimePicker/index.js +30 -0
- package/node/LoadingButton/LoadingButton.js +257 -0
- package/node/LoadingButton/index.js +42 -0
- package/node/LoadingButton/loadingButtonClasses.js +17 -0
- package/node/LocalizationProvider/LocalizationProvider.js +31 -0
- package/node/LocalizationProvider/index.js +30 -0
- package/node/Masonry/Masonry.js +373 -0
- package/node/Masonry/index.js +42 -0
- package/node/Masonry/masonryClasses.js +17 -0
- package/node/MobileDatePicker/MobileDatePicker.js +32 -0
- package/node/MobileDatePicker/index.js +30 -0
- package/node/MobileDateRangePicker/MobileDateRangePicker.js +32 -0
- package/node/MobileDateRangePicker/index.js +30 -0
- package/node/MobileDateTimePicker/MobileDateTimePicker.js +32 -0
- package/node/MobileDateTimePicker/index.js +30 -0
- package/node/MobileTimePicker/MobileTimePicker.js +32 -0
- package/node/MobileTimePicker/index.js +30 -0
- package/node/MonthPicker/MonthPicker.js +41 -0
- package/node/MonthPicker/index.js +30 -0
- package/node/Pagination/Pagination.js +38 -0
- package/node/Pagination/index.js +23 -0
- package/node/Pagination/usePagination.js +15 -0
- package/node/PaginationItem/PaginationItem.js +38 -0
- package/node/PaginationItem/index.js +15 -0
- package/node/PickersDay/PickersDay.js +41 -0
- package/node/PickersDay/index.js +30 -0
- package/node/Rating/Rating.js +38 -0
- package/node/Rating/index.js +15 -0
- package/node/Skeleton/Skeleton.js +38 -0
- package/node/Skeleton/index.js +15 -0
- package/node/SpeedDial/SpeedDial.js +38 -0
- package/node/SpeedDial/index.js +15 -0
- package/node/SpeedDialAction/SpeedDialAction.js +38 -0
- package/node/SpeedDialAction/index.js +15 -0
- package/node/SpeedDialIcon/SpeedDialIcon.js +38 -0
- package/node/SpeedDialIcon/index.js +15 -0
- package/node/StaticDatePicker/StaticDatePicker.js +32 -0
- package/node/StaticDatePicker/index.js +30 -0
- package/node/StaticDateRangePicker/StaticDateRangePicker.js +32 -0
- package/node/StaticDateRangePicker/index.js +30 -0
- package/node/StaticDateTimePicker/StaticDateTimePicker.js +32 -0
- package/node/StaticDateTimePicker/index.js +30 -0
- package/node/StaticTimePicker/StaticTimePicker.js +32 -0
- package/node/StaticTimePicker/index.js +30 -0
- package/node/TabContext/TabContext.js +106 -0
- package/node/TabContext/index.js +30 -0
- package/node/TabList/TabList.js +72 -0
- package/node/TabList/index.js +15 -0
- package/node/TabPanel/TabPanel.js +123 -0
- package/node/TabPanel/index.js +42 -0
- package/node/TabPanel/tabPanelClasses.js +17 -0
- package/node/TimePicker/TimePicker.js +32 -0
- package/node/TimePicker/index.js +30 -0
- package/node/Timeline/Timeline.js +147 -0
- package/node/Timeline/TimelineContext.js +24 -0
- package/node/Timeline/index.js +42 -0
- package/node/Timeline/timelineClasses.js +17 -0
- package/node/TimelineConnector/TimelineConnector.js +103 -0
- package/node/TimelineConnector/index.js +42 -0
- package/node/TimelineConnector/timelineConnectorClasses.js +17 -0
- package/node/TimelineContent/TimelineContent.js +121 -0
- package/node/TimelineContent/index.js +42 -0
- package/node/TimelineContent/timelineContentClasses.js +17 -0
- package/node/TimelineDot/TimelineDot.js +152 -0
- package/node/TimelineDot/index.js +42 -0
- package/node/TimelineDot/timelineDotClasses.js +17 -0
- package/node/TimelineItem/TimelineItem.js +158 -0
- package/node/TimelineItem/index.js +42 -0
- package/node/TimelineItem/timelineItemClasses.js +17 -0
- package/node/TimelineOppositeContent/TimelineOppositeContent.js +123 -0
- package/node/TimelineOppositeContent/index.js +42 -0
- package/node/TimelineOppositeContent/timelineOppositeContentClasses.js +17 -0
- package/node/TimelineSeparator/TimelineSeparator.js +100 -0
- package/node/TimelineSeparator/index.js +42 -0
- package/node/TimelineSeparator/timelineSeparatorClasses.js +17 -0
- package/node/ToggleButton/ToggleButton.js +38 -0
- package/node/ToggleButton/index.js +15 -0
- package/node/ToggleButtonGroup/ToggleButtonGroup.js +38 -0
- package/node/ToggleButtonGroup/index.js +15 -0
- package/node/TreeItem/TreeItem.js +447 -0
- package/node/TreeItem/TreeItemContent.js +147 -0
- package/node/TreeItem/index.js +51 -0
- package/node/TreeItem/treeItemClasses.js +17 -0
- package/node/TreeItem/useTreeItem.js +89 -0
- package/node/TreeView/TreeView.js +1002 -0
- package/node/TreeView/TreeViewContext.js +24 -0
- package/node/TreeView/descendants.js +217 -0
- package/node/TreeView/index.js +42 -0
- package/node/TreeView/treeViewClasses.js +17 -0
- package/node/YearPicker/YearPicker.js +36 -0
- package/node/YearPicker/index.js +30 -0
- package/node/index.js +1098 -0
- package/node/internal/svg-icons/ArrowDropDown.js +25 -0
- package/node/internal/svg-icons/ArrowLeft.js +25 -0
- package/node/internal/svg-icons/ArrowRight.js +25 -0
- package/node/internal/svg-icons/Calendar.js +25 -0
- package/node/internal/svg-icons/Clock.js +29 -0
- package/node/internal/svg-icons/DateRange.js +25 -0
- package/node/internal/svg-icons/Pen.js +25 -0
- package/node/internal/svg-icons/Time.js +29 -0
- package/node/themeAugmentation/index.js +2 -0
- package/node/useAutocomplete/index.js +19 -0
- package/package.json +67 -0
- package/themeAugmentation/components.d.ts +78 -0
- package/themeAugmentation/index.d.ts +3 -0
- package/themeAugmentation/index.js +1 -0
- package/themeAugmentation/overrides.d.ts +35 -0
- package/themeAugmentation/package.json +6 -0
- package/themeAugmentation/props.d.ts +36 -0
- package/useAutocomplete/index.d.ts +1 -0
- package/useAutocomplete/index.js +1 -0
- package/useAutocomplete/package.json +6 -0
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
2
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
3
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import PropTypes from 'prop-types';
|
|
6
|
+
import { chainPropTypes } from '@mui/utils';
|
|
7
|
+
import { capitalize, unstable_useId as useId } from '@mui/material/utils';
|
|
8
|
+
import { unstable_composeClasses as composeClasses } from '@mui/base';
|
|
9
|
+
import { styled, useThemeProps } from '@mui/material/styles';
|
|
10
|
+
import Button from '@mui/material/Button';
|
|
11
|
+
import CircularProgress from '@mui/material/CircularProgress';
|
|
12
|
+
import loadingButtonClasses, { getLoadingButtonUtilityClass } from './loadingButtonClasses';
|
|
13
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
|
+
|
|
16
|
+
var useUtilityClasses = function useUtilityClasses(ownerState) {
|
|
17
|
+
var loading = ownerState.loading,
|
|
18
|
+
loadingPosition = ownerState.loadingPosition,
|
|
19
|
+
classes = ownerState.classes;
|
|
20
|
+
var slots = {
|
|
21
|
+
root: ['root', loading && 'loading'],
|
|
22
|
+
startIcon: [loading && "startIconLoading".concat(capitalize(loadingPosition))],
|
|
23
|
+
endIcon: [loading && "endIconLoading".concat(capitalize(loadingPosition))],
|
|
24
|
+
loadingIndicator: ['loadingIndicator', loading && "loadingIndicator".concat(capitalize(loadingPosition))]
|
|
25
|
+
};
|
|
26
|
+
var composedClasses = composeClasses(slots, getLoadingButtonUtilityClass, classes);
|
|
27
|
+
return _extends({}, classes, composedClasses);
|
|
28
|
+
}; // TODO use `import { rootShouldForwardProp } from '../styles/styled';` once move to core
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
var rootShouldForwardProp = function rootShouldForwardProp(prop) {
|
|
32
|
+
return prop !== 'ownerState' && prop !== 'theme' && prop !== 'sx' && prop !== 'as' && prop !== 'classes';
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
var LoadingButtonRoot = styled(Button, {
|
|
36
|
+
shouldForwardProp: function shouldForwardProp(prop) {
|
|
37
|
+
return rootShouldForwardProp(prop) || prop === 'classes';
|
|
38
|
+
},
|
|
39
|
+
name: 'MuiLoadingButton',
|
|
40
|
+
slot: 'Root',
|
|
41
|
+
overridesResolver: function overridesResolver(props, styles) {
|
|
42
|
+
return [styles.root, styles.startIconLoadingStart && _defineProperty({}, "& .".concat(loadingButtonClasses.startIconLoadingStart), styles.startIconLoadingStart), styles.endIconLoadingEnd && _defineProperty({}, "& .".concat(loadingButtonClasses.endIconLoadingEnd), styles.endIconLoadingEnd)];
|
|
43
|
+
}
|
|
44
|
+
})(function (_ref3) {
|
|
45
|
+
var ownerState = _ref3.ownerState,
|
|
46
|
+
theme = _ref3.theme;
|
|
47
|
+
return _extends(_defineProperty({}, "& .".concat(loadingButtonClasses.startIconLoadingStart, ", & .").concat(loadingButtonClasses.endIconLoadingEnd), {
|
|
48
|
+
transition: theme.transitions.create(['opacity'], {
|
|
49
|
+
duration: theme.transitions.duration.short
|
|
50
|
+
}),
|
|
51
|
+
opacity: 0
|
|
52
|
+
}), ownerState.loadingPosition === 'center' && _defineProperty({
|
|
53
|
+
transition: theme.transitions.create(['background-color', 'box-shadow', 'border-color'], {
|
|
54
|
+
duration: theme.transitions.duration.short
|
|
55
|
+
})
|
|
56
|
+
}, "&.".concat(loadingButtonClasses.loading), {
|
|
57
|
+
color: 'transparent'
|
|
58
|
+
}), ownerState.loadingPosition === 'start' && ownerState.fullWidth && _defineProperty({}, "& .".concat(loadingButtonClasses.startIconLoadingStart, ", & .").concat(loadingButtonClasses.endIconLoadingEnd), {
|
|
59
|
+
transition: theme.transitions.create(['opacity'], {
|
|
60
|
+
duration: theme.transitions.duration.short
|
|
61
|
+
}),
|
|
62
|
+
opacity: 0,
|
|
63
|
+
marginRight: -8
|
|
64
|
+
}), ownerState.loadingPosition === 'end' && ownerState.fullWidth && _defineProperty({}, "& .".concat(loadingButtonClasses.startIconLoadingStart, ", & .").concat(loadingButtonClasses.endIconLoadingEnd), {
|
|
65
|
+
transition: theme.transitions.create(['opacity'], {
|
|
66
|
+
duration: theme.transitions.duration.short
|
|
67
|
+
}),
|
|
68
|
+
opacity: 0,
|
|
69
|
+
marginLeft: -8
|
|
70
|
+
}));
|
|
71
|
+
});
|
|
72
|
+
var LoadingButtonLoadingIndicator = styled('div', {
|
|
73
|
+
name: 'MuiLoadingButton',
|
|
74
|
+
slot: 'LoadingIndicator',
|
|
75
|
+
overridesResolver: function overridesResolver(props, styles) {
|
|
76
|
+
var ownerState = props.ownerState;
|
|
77
|
+
return [styles.loadingIndicator, styles["loadingIndicator".concat(capitalize(ownerState.loadingPosition))]];
|
|
78
|
+
}
|
|
79
|
+
})(function (_ref7) {
|
|
80
|
+
var theme = _ref7.theme,
|
|
81
|
+
ownerState = _ref7.ownerState;
|
|
82
|
+
return _extends({
|
|
83
|
+
position: 'absolute',
|
|
84
|
+
visibility: 'visible',
|
|
85
|
+
display: 'flex'
|
|
86
|
+
}, ownerState.loadingPosition === 'start' && (ownerState.variant === 'outlined' || ownerState.variant === 'contained') && {
|
|
87
|
+
left: ownerState.size === 'small' ? 10 : 14
|
|
88
|
+
}, ownerState.loadingPosition === 'start' && ownerState.variant === 'text' && {
|
|
89
|
+
left: 6
|
|
90
|
+
}, ownerState.loadingPosition === 'center' && {
|
|
91
|
+
left: '50%',
|
|
92
|
+
transform: 'translate(-50%)',
|
|
93
|
+
color: (theme.vars || theme).palette.action.disabled
|
|
94
|
+
}, ownerState.loadingPosition === 'end' && (ownerState.variant === 'outlined' || ownerState.variant === 'contained') && {
|
|
95
|
+
right: ownerState.size === 'small' ? 10 : 14
|
|
96
|
+
}, ownerState.loadingPosition === 'end' && ownerState.variant === 'text' && {
|
|
97
|
+
right: 6
|
|
98
|
+
}, ownerState.loadingPosition === 'start' && ownerState.fullWidth && {
|
|
99
|
+
position: 'relative',
|
|
100
|
+
left: -10
|
|
101
|
+
}, ownerState.loadingPosition === 'end' && ownerState.fullWidth && {
|
|
102
|
+
position: 'relative',
|
|
103
|
+
right: -10
|
|
104
|
+
});
|
|
105
|
+
});
|
|
106
|
+
var LoadingButton = /*#__PURE__*/React.forwardRef(function LoadingButton(inProps, ref) {
|
|
107
|
+
var props = useThemeProps({
|
|
108
|
+
props: inProps,
|
|
109
|
+
name: 'MuiLoadingButton'
|
|
110
|
+
});
|
|
111
|
+
|
|
112
|
+
var children = props.children,
|
|
113
|
+
_props$disabled = props.disabled,
|
|
114
|
+
disabled = _props$disabled === void 0 ? false : _props$disabled,
|
|
115
|
+
idProp = props.id,
|
|
116
|
+
_props$loading = props.loading,
|
|
117
|
+
loading = _props$loading === void 0 ? false : _props$loading,
|
|
118
|
+
loadingIndicatorProp = props.loadingIndicator,
|
|
119
|
+
_props$loadingPositio = props.loadingPosition,
|
|
120
|
+
loadingPosition = _props$loadingPositio === void 0 ? 'center' : _props$loadingPositio,
|
|
121
|
+
_props$variant = props.variant,
|
|
122
|
+
variant = _props$variant === void 0 ? 'text' : _props$variant,
|
|
123
|
+
other = _objectWithoutProperties(props, ["children", "disabled", "id", "loading", "loadingIndicator", "loadingPosition", "variant"]);
|
|
124
|
+
|
|
125
|
+
var id = useId(idProp);
|
|
126
|
+
var loadingIndicator = loadingIndicatorProp != null ? loadingIndicatorProp : /*#__PURE__*/_jsx(CircularProgress, {
|
|
127
|
+
"aria-labelledby": id,
|
|
128
|
+
color: "inherit",
|
|
129
|
+
size: 16
|
|
130
|
+
});
|
|
131
|
+
|
|
132
|
+
var ownerState = _extends({}, props, {
|
|
133
|
+
disabled: disabled,
|
|
134
|
+
loading: loading,
|
|
135
|
+
loadingIndicator: loadingIndicator,
|
|
136
|
+
loadingPosition: loadingPosition,
|
|
137
|
+
variant: variant
|
|
138
|
+
});
|
|
139
|
+
|
|
140
|
+
var classes = useUtilityClasses(ownerState);
|
|
141
|
+
var loadingButtonLoadingIndicator = loading ? /*#__PURE__*/_jsx(LoadingButtonLoadingIndicator, {
|
|
142
|
+
className: classes.loadingIndicator,
|
|
143
|
+
ownerState: ownerState,
|
|
144
|
+
children: loadingIndicator
|
|
145
|
+
}) : null;
|
|
146
|
+
return /*#__PURE__*/_jsxs(LoadingButtonRoot, _extends({
|
|
147
|
+
disabled: disabled || loading,
|
|
148
|
+
id: id,
|
|
149
|
+
ref: ref
|
|
150
|
+
}, other, {
|
|
151
|
+
variant: variant,
|
|
152
|
+
classes: classes,
|
|
153
|
+
ownerState: ownerState,
|
|
154
|
+
children: [ownerState.loadingPosition === 'end' ? children : loadingButtonLoadingIndicator, ownerState.loadingPosition === 'end' ? loadingButtonLoadingIndicator : children]
|
|
155
|
+
}));
|
|
156
|
+
});
|
|
157
|
+
process.env.NODE_ENV !== "production" ? LoadingButton.propTypes
|
|
158
|
+
/* remove-proptypes */
|
|
159
|
+
= {
|
|
160
|
+
// ----------------------------- Warning --------------------------------
|
|
161
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
162
|
+
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
163
|
+
// ----------------------------------------------------------------------
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* The content of the component.
|
|
167
|
+
*/
|
|
168
|
+
children: PropTypes.node,
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* Override or extend the styles applied to the component.
|
|
172
|
+
*/
|
|
173
|
+
classes: PropTypes.object,
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* If `true`, the component is disabled.
|
|
177
|
+
* @default false
|
|
178
|
+
*/
|
|
179
|
+
disabled: PropTypes.bool,
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* @ignore
|
|
183
|
+
*/
|
|
184
|
+
id: PropTypes.string,
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* If `true`, the loading indicator is shown.
|
|
188
|
+
* @default false
|
|
189
|
+
*/
|
|
190
|
+
loading: PropTypes.bool,
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* Element placed before the children if the button is in loading state.
|
|
194
|
+
* The node should contain an element with `role="progressbar"` with an accessible name.
|
|
195
|
+
* By default we render a `CircularProgress` that is labelled by the button itself.
|
|
196
|
+
* @default <CircularProgress color="inherit" size={16} />
|
|
197
|
+
*/
|
|
198
|
+
loadingIndicator: PropTypes.node,
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* The loading indicator can be positioned on the start, end, or the center of the button.
|
|
202
|
+
* @default 'center'
|
|
203
|
+
*/
|
|
204
|
+
loadingPosition: chainPropTypes(PropTypes.oneOf(['start', 'end', 'center']), function (props) {
|
|
205
|
+
if (props.loadingPosition === 'start' && !props.startIcon) {
|
|
206
|
+
return new Error("MUI: The loadingPosition=\"start\" should be used in combination with startIcon.");
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
if (props.loadingPosition === 'end' && !props.endIcon) {
|
|
210
|
+
return new Error("MUI: The loadingPosition=\"end\" should be used in combination with endIcon.");
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
return null;
|
|
214
|
+
}),
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
218
|
+
*/
|
|
219
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* The variant to use.
|
|
223
|
+
* @default 'text'
|
|
224
|
+
*/
|
|
225
|
+
variant: PropTypes
|
|
226
|
+
/* @typescript-to-proptypes-ignore */
|
|
227
|
+
.oneOfType([PropTypes.oneOf(['contained', 'outlined', 'text']), PropTypes.string])
|
|
228
|
+
} : void 0;
|
|
229
|
+
export default LoadingButton;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { generateUtilityClass, generateUtilityClasses } from '@mui/base';
|
|
2
|
+
export function getLoadingButtonUtilityClass(slot) {
|
|
3
|
+
return generateUtilityClass('MuiLoadingButton', slot);
|
|
4
|
+
}
|
|
5
|
+
var loadingButtonClasses = generateUtilityClasses('MuiLoadingButton', ['root', 'loading', 'loadingIndicator', 'loadingIndicatorCenter', 'loadingIndicatorStart', 'loadingIndicatorEnd', 'endIconLoadingEnd', 'startIconLoadingStart']);
|
|
6
|
+
export default loadingButtonClasses;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
var warnedOnce = false;
|
|
3
|
+
|
|
4
|
+
var warn = function warn() {
|
|
5
|
+
if (!warnedOnce) {
|
|
6
|
+
console.warn(['MUI: The LocalizationProvider component was moved from `@mui/lab` to `@mui/x-date-pickers`.', '', "You should use `import { LocalizationProvider } from '@mui/x-date-pickers'`", "or `import { LocalizationProvider } from '@mui/x-date-pickers/LocalizationProvider'`", '', 'More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.'].join('\n'));
|
|
7
|
+
warnedOnce = true;
|
|
8
|
+
}
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* @ignore - do not document.
|
|
13
|
+
*/
|
|
14
|
+
var LocalizationProvider = /*#__PURE__*/React.forwardRef(function DeprecatedLocalizationProvider() {
|
|
15
|
+
warn();
|
|
16
|
+
return null;
|
|
17
|
+
});
|
|
18
|
+
export default LocalizationProvider;
|
|
@@ -0,0 +1,357 @@
|
|
|
1
|
+
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
+
import _typeof from "@babel/runtime/helpers/esm/typeof";
|
|
4
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
5
|
+
import { unstable_composeClasses as composeClasses } from '@mui/base';
|
|
6
|
+
import { flushSync } from 'react-dom';
|
|
7
|
+
import { styled, useThemeProps } from '@mui/material/styles';
|
|
8
|
+
import { createUnarySpacing, getValue, handleBreakpoints, unstable_resolveBreakpointValues as resolveBreakpointValues } from '@mui/system';
|
|
9
|
+
import { deepmerge, unstable_useForkRef as useForkRef } from '@mui/utils';
|
|
10
|
+
import clsx from 'clsx';
|
|
11
|
+
import PropTypes from 'prop-types';
|
|
12
|
+
import * as React from 'react';
|
|
13
|
+
import { getMasonryUtilityClass } from './masonryClasses';
|
|
14
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
|
+
export var parseToNumber = function parseToNumber(val) {
|
|
17
|
+
return Number(val.replace('px', ''));
|
|
18
|
+
};
|
|
19
|
+
var lineBreakStyle = {
|
|
20
|
+
flexBasis: '100%',
|
|
21
|
+
width: 0,
|
|
22
|
+
margin: 0,
|
|
23
|
+
padding: 0
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
var useUtilityClasses = function useUtilityClasses(ownerState) {
|
|
27
|
+
var classes = ownerState.classes;
|
|
28
|
+
var slots = {
|
|
29
|
+
root: ['root']
|
|
30
|
+
};
|
|
31
|
+
return composeClasses(slots, getMasonryUtilityClass, classes);
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export var getStyle = function getStyle(_ref) {
|
|
35
|
+
var ownerState = _ref.ownerState,
|
|
36
|
+
theme = _ref.theme;
|
|
37
|
+
var styles = {
|
|
38
|
+
width: '100%',
|
|
39
|
+
display: 'flex',
|
|
40
|
+
flexFlow: 'column wrap',
|
|
41
|
+
alignContent: 'flex-start',
|
|
42
|
+
boxSizing: 'border-box',
|
|
43
|
+
'& > *': {
|
|
44
|
+
boxSizing: 'border-box'
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
var stylesSSR = {}; // Only applicable for Server-Side Rendering
|
|
48
|
+
|
|
49
|
+
if (ownerState.isSSR) {
|
|
50
|
+
var orderStyleSSR = {};
|
|
51
|
+
var defaultSpacing = parseToNumber(theme.spacing(ownerState.defaultSpacing));
|
|
52
|
+
|
|
53
|
+
for (var i = 1; i <= ownerState.defaultColumns; i += 1) {
|
|
54
|
+
orderStyleSSR["&:nth-of-type(".concat(ownerState.defaultColumns, "n+").concat(i % ownerState.defaultColumns, ")")] = {
|
|
55
|
+
order: i
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
stylesSSR.height = ownerState.defaultHeight;
|
|
60
|
+
stylesSSR.margin = -(defaultSpacing / 2);
|
|
61
|
+
stylesSSR['& > *'] = _extends({}, styles['& > *'], orderStyleSSR, {
|
|
62
|
+
margin: defaultSpacing / 2,
|
|
63
|
+
width: "calc(".concat((100 / ownerState.defaultColumns).toFixed(2), "% - ").concat(defaultSpacing, "px)")
|
|
64
|
+
});
|
|
65
|
+
return _extends({}, styles, stylesSSR);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
var spacingValues = resolveBreakpointValues({
|
|
69
|
+
values: ownerState.spacing,
|
|
70
|
+
breakpoints: theme.breakpoints.values
|
|
71
|
+
});
|
|
72
|
+
var transformer = createUnarySpacing(theme);
|
|
73
|
+
|
|
74
|
+
var spacingStyleFromPropValue = function spacingStyleFromPropValue(propValue) {
|
|
75
|
+
var spacing; // in case of string/number value
|
|
76
|
+
|
|
77
|
+
if (typeof propValue === 'string' && !Number.isNaN(Number(propValue)) || typeof propValue === 'number') {
|
|
78
|
+
var themeSpacingValue = Number(propValue);
|
|
79
|
+
spacing = getValue(transformer, themeSpacingValue);
|
|
80
|
+
} else {
|
|
81
|
+
spacing = propValue;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return _extends({
|
|
85
|
+
margin: "calc(0px - (".concat(spacing, " / 2))"),
|
|
86
|
+
'& > *': {
|
|
87
|
+
margin: "calc(".concat(spacing, " / 2)")
|
|
88
|
+
}
|
|
89
|
+
}, ownerState.maxColumnHeight && {
|
|
90
|
+
height: typeof spacing === 'number' ? Math.ceil(ownerState.maxColumnHeight + parseToNumber(spacing)) : "calc(".concat(ownerState.maxColumnHeight, "px + ").concat(spacing, ")")
|
|
91
|
+
});
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
styles = deepmerge(styles, handleBreakpoints({
|
|
95
|
+
theme: theme
|
|
96
|
+
}, spacingValues, spacingStyleFromPropValue));
|
|
97
|
+
var columnValues = resolveBreakpointValues({
|
|
98
|
+
values: ownerState.columns,
|
|
99
|
+
breakpoints: theme.breakpoints.values
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
var columnStyleFromPropValue = function columnStyleFromPropValue(propValue) {
|
|
103
|
+
var columnValue = Number(propValue);
|
|
104
|
+
var width = "".concat((100 / columnValue).toFixed(2), "%");
|
|
105
|
+
var spacing = typeof spacingValues === 'string' && !Number.isNaN(Number(spacingValues)) || typeof spacingValues === 'number' ? getValue(transformer, Number(spacingValues)) : '0px';
|
|
106
|
+
return {
|
|
107
|
+
'& > *': {
|
|
108
|
+
width: "calc(".concat(width, " - ").concat(spacing, ")")
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
styles = deepmerge(styles, handleBreakpoints({
|
|
114
|
+
theme: theme
|
|
115
|
+
}, columnValues, columnStyleFromPropValue)); // configure width for responsive spacing values
|
|
116
|
+
|
|
117
|
+
if (_typeof(spacingValues) === 'object') {
|
|
118
|
+
styles = deepmerge(styles, handleBreakpoints({
|
|
119
|
+
theme: theme
|
|
120
|
+
}, spacingValues, function (propValue, breakpoint) {
|
|
121
|
+
if (breakpoint) {
|
|
122
|
+
var themeSpacingValue = Number(propValue);
|
|
123
|
+
var lastBreakpoint = Object.keys(columnValues).pop();
|
|
124
|
+
var spacing = getValue(transformer, themeSpacingValue);
|
|
125
|
+
var column = _typeof(columnValues) === 'object' ? columnValues[breakpoint] || columnValues[lastBreakpoint] : columnValues;
|
|
126
|
+
var width = "".concat((100 / column).toFixed(2), "%");
|
|
127
|
+
return {
|
|
128
|
+
'& > *': {
|
|
129
|
+
width: "calc(".concat(width, " - ").concat(spacing, ")")
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
return null;
|
|
135
|
+
}));
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
return styles;
|
|
139
|
+
};
|
|
140
|
+
var MasonryRoot = styled('div', {
|
|
141
|
+
name: 'MuiMasonry',
|
|
142
|
+
slot: 'Root',
|
|
143
|
+
overridesResolver: function overridesResolver(props, styles) {
|
|
144
|
+
return [styles.root];
|
|
145
|
+
}
|
|
146
|
+
})(getStyle);
|
|
147
|
+
var Masonry = /*#__PURE__*/React.forwardRef(function Masonry(inProps, ref) {
|
|
148
|
+
var props = useThemeProps({
|
|
149
|
+
props: inProps,
|
|
150
|
+
name: 'MuiMasonry'
|
|
151
|
+
});
|
|
152
|
+
|
|
153
|
+
var children = props.children,
|
|
154
|
+
className = props.className,
|
|
155
|
+
_props$component = props.component,
|
|
156
|
+
component = _props$component === void 0 ? 'div' : _props$component,
|
|
157
|
+
_props$columns = props.columns,
|
|
158
|
+
columns = _props$columns === void 0 ? 4 : _props$columns,
|
|
159
|
+
_props$spacing = props.spacing,
|
|
160
|
+
spacing = _props$spacing === void 0 ? 1 : _props$spacing,
|
|
161
|
+
defaultColumns = props.defaultColumns,
|
|
162
|
+
defaultHeight = props.defaultHeight,
|
|
163
|
+
defaultSpacing = props.defaultSpacing,
|
|
164
|
+
other = _objectWithoutProperties(props, ["children", "className", "component", "columns", "spacing", "defaultColumns", "defaultHeight", "defaultSpacing"]);
|
|
165
|
+
|
|
166
|
+
var masonryRef = React.useRef();
|
|
167
|
+
|
|
168
|
+
var _React$useState = React.useState(),
|
|
169
|
+
maxColumnHeight = _React$useState[0],
|
|
170
|
+
setMaxColumnHeight = _React$useState[1];
|
|
171
|
+
|
|
172
|
+
var isSSR = !maxColumnHeight && defaultHeight && defaultColumns !== undefined && defaultSpacing !== undefined;
|
|
173
|
+
|
|
174
|
+
var _React$useState2 = React.useState(isSSR ? defaultColumns - 1 : 0),
|
|
175
|
+
numberOfLineBreaks = _React$useState2[0],
|
|
176
|
+
setNumberOfLineBreaks = _React$useState2[1];
|
|
177
|
+
|
|
178
|
+
var ownerState = _extends({}, props, {
|
|
179
|
+
spacing: spacing,
|
|
180
|
+
columns: columns,
|
|
181
|
+
maxColumnHeight: maxColumnHeight,
|
|
182
|
+
defaultColumns: defaultColumns,
|
|
183
|
+
defaultHeight: defaultHeight,
|
|
184
|
+
defaultSpacing: defaultSpacing,
|
|
185
|
+
isSSR: isSSR
|
|
186
|
+
});
|
|
187
|
+
|
|
188
|
+
var classes = useUtilityClasses(ownerState);
|
|
189
|
+
|
|
190
|
+
var handleResize = function handleResize(masonryChildren) {
|
|
191
|
+
if (!masonryRef.current || !masonryChildren || masonryChildren.length === 0) {
|
|
192
|
+
return;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
var masonry = masonryRef.current;
|
|
196
|
+
var masonryFirstChild = masonryRef.current.firstChild;
|
|
197
|
+
var parentWidth = masonry.clientWidth;
|
|
198
|
+
var firstChildWidth = masonryFirstChild.clientWidth;
|
|
199
|
+
|
|
200
|
+
if (parentWidth === 0 || firstChildWidth === 0) {
|
|
201
|
+
return;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
var firstChildComputedStyle = window.getComputedStyle(masonryFirstChild);
|
|
205
|
+
var firstChildMarginLeft = parseToNumber(firstChildComputedStyle.marginLeft);
|
|
206
|
+
var firstChildMarginRight = parseToNumber(firstChildComputedStyle.marginRight);
|
|
207
|
+
var currentNumberOfColumns = Math.round(parentWidth / (firstChildWidth + firstChildMarginLeft + firstChildMarginRight));
|
|
208
|
+
var columnHeights = new Array(currentNumberOfColumns).fill(0);
|
|
209
|
+
var skip = false;
|
|
210
|
+
masonry.childNodes.forEach(function (child) {
|
|
211
|
+
if (child.nodeType !== Node.ELEMENT_NODE || child.dataset.class === 'line-break' || skip) {
|
|
212
|
+
return;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
var childComputedStyle = window.getComputedStyle(child);
|
|
216
|
+
var childMarginTop = parseToNumber(childComputedStyle.marginTop);
|
|
217
|
+
var childMarginBottom = parseToNumber(childComputedStyle.marginBottom); // if any one of children isn't rendered yet, masonry's height shouldn't be computed yet
|
|
218
|
+
|
|
219
|
+
var childHeight = parseToNumber(childComputedStyle.height) ? Math.ceil(parseToNumber(childComputedStyle.height)) + childMarginTop + childMarginBottom : 0;
|
|
220
|
+
|
|
221
|
+
if (childHeight === 0) {
|
|
222
|
+
skip = true;
|
|
223
|
+
return;
|
|
224
|
+
} // if there is a nested image that isn't rendered yet, masonry's height shouldn't be computed yet
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
for (var i = 0; i < child.childNodes.length; i += 1) {
|
|
228
|
+
var nestedChild = child.childNodes[i];
|
|
229
|
+
|
|
230
|
+
if (nestedChild.tagName === 'IMG' && nestedChild.clientHeight === 0) {
|
|
231
|
+
skip = true;
|
|
232
|
+
break;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
if (!skip) {
|
|
237
|
+
// find the current shortest column (where the current item will be placed)
|
|
238
|
+
var currentMinColumnIndex = columnHeights.indexOf(Math.min.apply(Math, _toConsumableArray(columnHeights)));
|
|
239
|
+
columnHeights[currentMinColumnIndex] += childHeight;
|
|
240
|
+
var order = currentMinColumnIndex + 1;
|
|
241
|
+
child.style.order = order;
|
|
242
|
+
}
|
|
243
|
+
});
|
|
244
|
+
|
|
245
|
+
if (!skip) {
|
|
246
|
+
// In React 18, state updates in a ResizeObserver's callback are happening after the paint which causes flickering
|
|
247
|
+
// when doing some visual updates in it. Using flushSync ensures that the dom will be painted after the states updates happen
|
|
248
|
+
// Related issue - https://github.com/facebook/react/issues/24331
|
|
249
|
+
flushSync(function () {
|
|
250
|
+
setMaxColumnHeight(Math.max.apply(Math, _toConsumableArray(columnHeights)));
|
|
251
|
+
setNumberOfLineBreaks(currentNumberOfColumns > 0 ? currentNumberOfColumns - 1 : 0);
|
|
252
|
+
});
|
|
253
|
+
}
|
|
254
|
+
};
|
|
255
|
+
|
|
256
|
+
var observer = React.useRef(typeof ResizeObserver === 'undefined' ? undefined : new ResizeObserver(handleResize));
|
|
257
|
+
React.useEffect(function () {
|
|
258
|
+
var resizeObserver = observer.current; // IE and old browsers are not supported
|
|
259
|
+
|
|
260
|
+
if (resizeObserver === undefined) {
|
|
261
|
+
return undefined;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
if (masonryRef.current) {
|
|
265
|
+
masonryRef.current.childNodes.forEach(function (childNode) {
|
|
266
|
+
resizeObserver.observe(childNode);
|
|
267
|
+
});
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
return function () {
|
|
271
|
+
return resizeObserver ? resizeObserver.disconnect() : {};
|
|
272
|
+
};
|
|
273
|
+
}, [columns, spacing, children]);
|
|
274
|
+
var handleRef = useForkRef(ref, masonryRef); // columns are likely to have different heights and hence can start to merge;
|
|
275
|
+
// a line break at the end of each column prevents columns from merging
|
|
276
|
+
|
|
277
|
+
var lineBreaks = new Array(numberOfLineBreaks).fill('').map(function (_, index) {
|
|
278
|
+
return /*#__PURE__*/_jsx("span", {
|
|
279
|
+
"data-class": "line-break",
|
|
280
|
+
style: _extends({}, lineBreakStyle, {
|
|
281
|
+
order: index + 1
|
|
282
|
+
})
|
|
283
|
+
}, index);
|
|
284
|
+
});
|
|
285
|
+
return /*#__PURE__*/_jsxs(MasonryRoot, _extends({
|
|
286
|
+
as: component,
|
|
287
|
+
className: clsx(classes.root, className),
|
|
288
|
+
ref: handleRef,
|
|
289
|
+
ownerState: ownerState
|
|
290
|
+
}, other, {
|
|
291
|
+
children: [children, lineBreaks]
|
|
292
|
+
}));
|
|
293
|
+
});
|
|
294
|
+
process.env.NODE_ENV !== "production" ? Masonry.propTypes
|
|
295
|
+
/* remove-proptypes */
|
|
296
|
+
= {
|
|
297
|
+
// ----------------------------- Warning --------------------------------
|
|
298
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
299
|
+
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
300
|
+
// ----------------------------------------------------------------------
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* The content of the component.
|
|
304
|
+
*/
|
|
305
|
+
children: PropTypes
|
|
306
|
+
/* @typescript-to-proptypes-ignore */
|
|
307
|
+
.node.isRequired,
|
|
308
|
+
|
|
309
|
+
/**
|
|
310
|
+
* Override or extend the styles applied to the component.
|
|
311
|
+
*/
|
|
312
|
+
classes: PropTypes.object,
|
|
313
|
+
|
|
314
|
+
/**
|
|
315
|
+
* @ignore
|
|
316
|
+
*/
|
|
317
|
+
className: PropTypes.string,
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* Number of columns.
|
|
321
|
+
* @default 4
|
|
322
|
+
*/
|
|
323
|
+
columns: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
* The component used for the root node.
|
|
327
|
+
* Either a string to use a HTML element or a component.
|
|
328
|
+
*/
|
|
329
|
+
component: PropTypes.elementType,
|
|
330
|
+
|
|
331
|
+
/**
|
|
332
|
+
* The default number of columns of the component. This is provided for server-side rendering.
|
|
333
|
+
*/
|
|
334
|
+
defaultColumns: PropTypes.number,
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
* The default height of the component in px. This is provided for server-side rendering.
|
|
338
|
+
*/
|
|
339
|
+
defaultHeight: PropTypes.number,
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* The default spacing of the component. Like `spacing`, it is a factor of the theme's spacing. This is provided for server-side rendering.
|
|
343
|
+
*/
|
|
344
|
+
defaultSpacing: PropTypes.number,
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* Defines the space between children. It is a factor of the theme's spacing.
|
|
348
|
+
* @default 1
|
|
349
|
+
*/
|
|
350
|
+
spacing: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),
|
|
351
|
+
|
|
352
|
+
/**
|
|
353
|
+
* Allows defining system overrides as well as additional CSS styles.
|
|
354
|
+
*/
|
|
355
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
|
|
356
|
+
} : void 0;
|
|
357
|
+
export default Masonry;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { generateUtilityClass, generateUtilityClasses } from '@mui/base';
|
|
2
|
+
export function getMasonryUtilityClass(slot) {
|
|
3
|
+
return generateUtilityClass('MuiMasonry', slot);
|
|
4
|
+
}
|
|
5
|
+
var masonryClasses = generateUtilityClasses('MuiMasonry', ['root']);
|
|
6
|
+
export default masonryClasses;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
var warnedOnce = false;
|
|
4
|
+
|
|
5
|
+
var warn = function warn() {
|
|
6
|
+
if (!warnedOnce) {
|
|
7
|
+
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
|
+
warnedOnce = true;
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* @ignore - do not document.
|
|
14
|
+
*/
|
|
15
|
+
var MobileDatePicker = /*#__PURE__*/React.forwardRef(function DeprecatedMobileDatePicker(props, ref) {
|
|
16
|
+
warn();
|
|
17
|
+
return null;
|
|
18
|
+
});
|
|
19
|
+
export default MobileDatePicker;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
var warnedOnce = false;
|
|
4
|
+
|
|
5
|
+
var warn = function warn() {
|
|
6
|
+
if (!warnedOnce) {
|
|
7
|
+
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
|
+
warnedOnce = true;
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* @ignore - do not document.
|
|
14
|
+
*/
|
|
15
|
+
var MobileDateRangePicker = /*#__PURE__*/React.forwardRef(function DeprecatedMobileDateRangePicker() {
|
|
16
|
+
warn();
|
|
17
|
+
return null;
|
|
18
|
+
});
|
|
19
|
+
export default MobileDateRangePicker;
|