@mui/lab 6.0.0-beta.3 → 6.0.0-beta.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (311) hide show
  1. package/AdapterDateFns/index.js +1 -1
  2. package/AdapterDayjs/index.js +1 -1
  3. package/AdapterLuxon/index.js +1 -1
  4. package/AdapterMoment/index.js +1 -1
  5. package/Alert/index.js +1 -1
  6. package/AlertTitle/index.js +1 -1
  7. package/Autocomplete/index.js +1 -1
  8. package/AvatarGroup/index.js +1 -1
  9. package/CHANGELOG.md +1648 -15413
  10. package/CalendarPicker/index.js +2 -2
  11. package/CalendarPickerSkeleton/index.js +2 -2
  12. package/ClockPicker/index.js +2 -2
  13. package/DatePicker/index.js +2 -2
  14. package/DateRangePicker/index.js +2 -2
  15. package/DateRangePickerDay/index.js +2 -2
  16. package/DateTimePicker/index.js +2 -2
  17. package/DesktopDatePicker/index.js +2 -2
  18. package/DesktopDateRangePicker/index.js +2 -2
  19. package/DesktopDateTimePicker/index.js +2 -2
  20. package/DesktopTimePicker/index.js +2 -2
  21. package/LoadingButton/LoadingButton.d.ts +6 -78
  22. package/LoadingButton/LoadingButton.js +15 -289
  23. package/LoadingButton/index.d.ts +0 -3
  24. package/LoadingButton/index.js +1 -3
  25. package/LocalizationProvider/index.js +2 -2
  26. package/Masonry/Masonry.d.ts +2 -2
  27. package/Masonry/Masonry.js +2 -2
  28. package/Masonry/index.js +3 -3
  29. package/MobileDatePicker/index.js +2 -2
  30. package/MobileDateRangePicker/index.js +2 -2
  31. package/MobileDateTimePicker/index.js +2 -2
  32. package/MobileTimePicker/index.js +2 -2
  33. package/MonthPicker/index.js +2 -2
  34. package/Pagination/index.js +2 -2
  35. package/PaginationItem/index.js +1 -1
  36. package/PickersDay/index.js +2 -2
  37. package/README.md +3 -3
  38. package/Rating/index.js +1 -1
  39. package/Skeleton/index.js +1 -1
  40. package/SpeedDial/index.js +1 -1
  41. package/SpeedDialAction/index.js +1 -1
  42. package/SpeedDialIcon/index.js +1 -1
  43. package/StaticDatePicker/index.js +2 -2
  44. package/StaticDateRangePicker/index.js +2 -2
  45. package/StaticDateTimePicker/index.js +2 -2
  46. package/StaticTimePicker/index.js +2 -2
  47. package/TabContext/TabContext.d.ts +2 -2
  48. package/TabContext/index.js +2 -2
  49. package/TabList/TabList.d.ts +3 -3
  50. package/TabList/TabList.js +1 -1
  51. package/TabList/index.js +1 -1
  52. package/TabPanel/TabPanel.d.ts +3 -3
  53. package/TabPanel/TabPanel.js +3 -3
  54. package/TabPanel/index.js +3 -3
  55. package/TimePicker/index.js +2 -2
  56. package/Timeline/Timeline.d.ts +2 -2
  57. package/Timeline/Timeline.js +6 -8
  58. package/Timeline/Timeline.types.d.ts +1 -2
  59. package/Timeline/TimelineContext.js +2 -0
  60. package/Timeline/index.js +4 -4
  61. package/TimelineConnector/TimelineConnector.d.ts +2 -2
  62. package/TimelineConnector/TimelineConnector.js +1 -1
  63. package/TimelineConnector/index.js +3 -3
  64. package/TimelineContent/TimelineContent.d.ts +3 -3
  65. package/TimelineContent/TimelineContent.js +3 -3
  66. package/TimelineContent/index.js +3 -3
  67. package/TimelineDot/TimelineDot.d.ts +2 -2
  68. package/TimelineDot/TimelineDot.js +1 -1
  69. package/TimelineDot/index.js +3 -3
  70. package/TimelineItem/TimelineItem.d.ts +2 -2
  71. package/TimelineItem/TimelineItem.js +5 -5
  72. package/TimelineItem/index.js +3 -3
  73. package/TimelineOppositeContent/TimelineOppositeContent.d.ts +3 -3
  74. package/TimelineOppositeContent/TimelineOppositeContent.js +3 -3
  75. package/TimelineOppositeContent/index.js +3 -3
  76. package/TimelineSeparator/TimelineSeparator.d.ts +2 -2
  77. package/TimelineSeparator/TimelineSeparator.js +1 -1
  78. package/TimelineSeparator/index.js +3 -3
  79. package/ToggleButton/index.js +1 -1
  80. package/ToggleButtonGroup/index.js +1 -1
  81. package/TreeItem/index.js +2 -2
  82. package/TreeView/TreeView.d.ts +1 -1
  83. package/TreeView/index.js +2 -2
  84. package/YearPicker/index.js +2 -2
  85. package/index.js +104 -104
  86. package/internal/svg-icons/ArrowDropDown.js +1 -1
  87. package/internal/svg-icons/ArrowLeft.js +1 -1
  88. package/internal/svg-icons/ArrowRight.js +1 -1
  89. package/internal/svg-icons/Calendar.js +1 -1
  90. package/internal/svg-icons/Clock.js +1 -1
  91. package/internal/svg-icons/DateRange.js +1 -1
  92. package/internal/svg-icons/Pen.js +1 -1
  93. package/internal/svg-icons/Time.js +1 -1
  94. package/modern/AdapterDateFns/index.js +1 -1
  95. package/modern/AdapterDayjs/index.js +1 -1
  96. package/modern/AdapterLuxon/index.js +1 -1
  97. package/modern/AdapterMoment/index.js +1 -1
  98. package/modern/Alert/index.js +1 -1
  99. package/modern/AlertTitle/index.js +1 -1
  100. package/modern/Autocomplete/index.js +1 -1
  101. package/modern/AvatarGroup/index.js +1 -1
  102. package/modern/CalendarPicker/index.js +2 -2
  103. package/modern/CalendarPickerSkeleton/index.js +2 -2
  104. package/modern/ClockPicker/index.js +2 -2
  105. package/modern/DatePicker/index.js +2 -2
  106. package/modern/DateRangePicker/index.js +2 -2
  107. package/modern/DateRangePickerDay/index.js +2 -2
  108. package/modern/DateTimePicker/index.js +2 -2
  109. package/modern/DesktopDatePicker/index.js +2 -2
  110. package/modern/DesktopDateRangePicker/index.js +2 -2
  111. package/modern/DesktopDateTimePicker/index.js +2 -2
  112. package/modern/DesktopTimePicker/index.js +2 -2
  113. package/modern/LoadingButton/LoadingButton.js +15 -289
  114. package/modern/LoadingButton/index.js +1 -3
  115. package/modern/LocalizationProvider/index.js +2 -2
  116. package/modern/Masonry/Masonry.js +2 -2
  117. package/modern/Masonry/index.js +3 -3
  118. package/modern/MobileDatePicker/index.js +2 -2
  119. package/modern/MobileDateRangePicker/index.js +2 -2
  120. package/modern/MobileDateTimePicker/index.js +2 -2
  121. package/modern/MobileTimePicker/index.js +2 -2
  122. package/modern/MonthPicker/index.js +2 -2
  123. package/modern/Pagination/index.js +2 -2
  124. package/modern/PaginationItem/index.js +1 -1
  125. package/modern/PickersDay/index.js +2 -2
  126. package/modern/Rating/index.js +1 -1
  127. package/modern/Skeleton/index.js +1 -1
  128. package/modern/SpeedDial/index.js +1 -1
  129. package/modern/SpeedDialAction/index.js +1 -1
  130. package/modern/SpeedDialIcon/index.js +1 -1
  131. package/modern/StaticDatePicker/index.js +2 -2
  132. package/modern/StaticDateRangePicker/index.js +2 -2
  133. package/modern/StaticDateTimePicker/index.js +2 -2
  134. package/modern/StaticTimePicker/index.js +2 -2
  135. package/modern/TabContext/index.js +2 -2
  136. package/modern/TabList/TabList.js +1 -1
  137. package/modern/TabList/index.js +1 -1
  138. package/modern/TabPanel/TabPanel.js +3 -3
  139. package/modern/TabPanel/index.js +3 -3
  140. package/modern/TimePicker/index.js +2 -2
  141. package/modern/Timeline/Timeline.js +6 -8
  142. package/modern/Timeline/TimelineContext.js +2 -0
  143. package/modern/Timeline/index.js +4 -4
  144. package/modern/TimelineConnector/TimelineConnector.js +1 -1
  145. package/modern/TimelineConnector/index.js +3 -3
  146. package/modern/TimelineContent/TimelineContent.js +3 -3
  147. package/modern/TimelineContent/index.js +3 -3
  148. package/modern/TimelineDot/TimelineDot.js +1 -1
  149. package/modern/TimelineDot/index.js +3 -3
  150. package/modern/TimelineItem/TimelineItem.js +5 -5
  151. package/modern/TimelineItem/index.js +3 -3
  152. package/modern/TimelineOppositeContent/TimelineOppositeContent.js +3 -3
  153. package/modern/TimelineOppositeContent/index.js +3 -3
  154. package/modern/TimelineSeparator/TimelineSeparator.js +1 -1
  155. package/modern/TimelineSeparator/index.js +3 -3
  156. package/modern/ToggleButton/index.js +1 -1
  157. package/modern/ToggleButtonGroup/index.js +1 -1
  158. package/modern/TreeItem/index.js +2 -2
  159. package/modern/TreeView/index.js +2 -2
  160. package/modern/YearPicker/index.js +2 -2
  161. package/modern/index.js +104 -104
  162. package/modern/internal/svg-icons/ArrowDropDown.js +1 -1
  163. package/modern/internal/svg-icons/ArrowLeft.js +1 -1
  164. package/modern/internal/svg-icons/ArrowRight.js +1 -1
  165. package/modern/internal/svg-icons/Calendar.js +1 -1
  166. package/modern/internal/svg-icons/Clock.js +1 -1
  167. package/modern/internal/svg-icons/DateRange.js +1 -1
  168. package/modern/internal/svg-icons/Pen.js +1 -1
  169. package/modern/internal/svg-icons/Time.js +1 -1
  170. package/modern/themeAugmentation/components.js +2 -0
  171. package/modern/themeAugmentation/overrides.js +4 -0
  172. package/modern/themeAugmentation/props.js +2 -0
  173. package/node/AdapterDateFns/index.js +1 -1
  174. package/node/AdapterDayjs/index.js +1 -1
  175. package/node/AdapterLuxon/index.js +1 -1
  176. package/node/AdapterMoment/index.js +1 -1
  177. package/node/Alert/Alert.js +2 -3
  178. package/node/Alert/index.js +1 -1
  179. package/node/AlertTitle/AlertTitle.js +2 -3
  180. package/node/AlertTitle/index.js +1 -1
  181. package/node/Autocomplete/Autocomplete.js +2 -3
  182. package/node/Autocomplete/index.js +1 -1
  183. package/node/AvatarGroup/AvatarGroup.js +2 -3
  184. package/node/AvatarGroup/index.js +1 -1
  185. package/node/CalendarPicker/CalendarPicker.js +1 -2
  186. package/node/CalendarPicker/index.js +2 -3
  187. package/node/CalendarPickerSkeleton/CalendarPickerSkeleton.js +1 -2
  188. package/node/CalendarPickerSkeleton/index.js +2 -3
  189. package/node/ClockPicker/ClockPicker.js +1 -2
  190. package/node/ClockPicker/index.js +2 -3
  191. package/node/DatePicker/DatePicker.js +1 -2
  192. package/node/DatePicker/index.js +2 -3
  193. package/node/DateRangePicker/DateRangePicker.js +1 -2
  194. package/node/DateRangePicker/index.js +2 -3
  195. package/node/DateRangePickerDay/DateRangePickerDay.js +1 -2
  196. package/node/DateRangePickerDay/index.js +2 -3
  197. package/node/DateTimePicker/DateTimePicker.js +1 -2
  198. package/node/DateTimePicker/index.js +2 -3
  199. package/node/DesktopDatePicker/DesktopDatePicker.js +1 -2
  200. package/node/DesktopDatePicker/index.js +2 -3
  201. package/node/DesktopDateRangePicker/DesktopDateRangePicker.js +1 -2
  202. package/node/DesktopDateRangePicker/index.js +2 -3
  203. package/node/DesktopDateTimePicker/DesktopDateTimePicker.js +1 -2
  204. package/node/DesktopDateTimePicker/index.js +2 -3
  205. package/node/DesktopTimePicker/DesktopTimePicker.js +1 -2
  206. package/node/DesktopTimePicker/index.js +2 -3
  207. package/node/LoadingButton/LoadingButton.js +16 -291
  208. package/node/LoadingButton/index.js +2 -25
  209. package/node/LocalizationProvider/LocalizationProvider.js +1 -2
  210. package/node/LocalizationProvider/index.js +2 -3
  211. package/node/Masonry/Masonry.js +3 -4
  212. package/node/Masonry/index.js +3 -4
  213. package/node/Masonry/masonryClasses.js +1 -1
  214. package/node/MobileDatePicker/MobileDatePicker.js +1 -2
  215. package/node/MobileDatePicker/index.js +2 -3
  216. package/node/MobileDateRangePicker/MobileDateRangePicker.js +1 -2
  217. package/node/MobileDateRangePicker/index.js +2 -3
  218. package/node/MobileDateTimePicker/MobileDateTimePicker.js +1 -2
  219. package/node/MobileDateTimePicker/index.js +2 -3
  220. package/node/MobileTimePicker/MobileTimePicker.js +1 -2
  221. package/node/MobileTimePicker/index.js +2 -3
  222. package/node/MonthPicker/MonthPicker.js +1 -2
  223. package/node/MonthPicker/index.js +2 -3
  224. package/node/Pagination/Pagination.js +2 -3
  225. package/node/Pagination/index.js +1 -1
  226. package/node/Pagination/usePagination.js +1 -1
  227. package/node/PaginationItem/PaginationItem.js +2 -3
  228. package/node/PaginationItem/index.js +1 -1
  229. package/node/PickersDay/PickersDay.js +1 -2
  230. package/node/PickersDay/index.js +2 -3
  231. package/node/Rating/Rating.js +2 -3
  232. package/node/Rating/index.js +1 -1
  233. package/node/Skeleton/Skeleton.js +2 -3
  234. package/node/Skeleton/index.js +1 -1
  235. package/node/SpeedDial/SpeedDial.js +2 -3
  236. package/node/SpeedDial/index.js +1 -1
  237. package/node/SpeedDialAction/SpeedDialAction.js +2 -3
  238. package/node/SpeedDialAction/index.js +1 -1
  239. package/node/SpeedDialIcon/SpeedDialIcon.js +2 -3
  240. package/node/SpeedDialIcon/index.js +1 -1
  241. package/node/StaticDatePicker/StaticDatePicker.js +1 -2
  242. package/node/StaticDatePicker/index.js +2 -3
  243. package/node/StaticDateRangePicker/StaticDateRangePicker.js +1 -2
  244. package/node/StaticDateRangePicker/index.js +2 -3
  245. package/node/StaticDateTimePicker/StaticDateTimePicker.js +1 -2
  246. package/node/StaticDateTimePicker/index.js +2 -3
  247. package/node/StaticTimePicker/StaticTimePicker.js +1 -2
  248. package/node/StaticTimePicker/index.js +2 -3
  249. package/node/TabContext/TabContext.js +2 -3
  250. package/node/TabContext/index.js +2 -3
  251. package/node/TabList/TabList.js +2 -3
  252. package/node/TabList/index.js +1 -1
  253. package/node/TabPanel/TabPanel.js +3 -4
  254. package/node/TabPanel/index.js +3 -4
  255. package/node/TabPanel/tabPanelClasses.js +1 -1
  256. package/node/TimePicker/TimePicker.js +1 -2
  257. package/node/TimePicker/index.js +2 -3
  258. package/node/Timeline/Timeline.js +5 -8
  259. package/node/Timeline/TimelineContext.js +2 -2
  260. package/node/Timeline/index.js +3 -4
  261. package/node/Timeline/timelineClasses.js +1 -1
  262. package/node/TimelineConnector/TimelineConnector.js +2 -3
  263. package/node/TimelineConnector/index.js +3 -4
  264. package/node/TimelineConnector/timelineConnectorClasses.js +1 -1
  265. package/node/TimelineContent/TimelineContent.js +2 -3
  266. package/node/TimelineContent/index.js +3 -4
  267. package/node/TimelineContent/timelineContentClasses.js +1 -1
  268. package/node/TimelineDot/TimelineDot.js +2 -3
  269. package/node/TimelineDot/index.js +3 -4
  270. package/node/TimelineDot/timelineDotClasses.js +1 -1
  271. package/node/TimelineItem/TimelineItem.js +2 -3
  272. package/node/TimelineItem/index.js +3 -4
  273. package/node/TimelineItem/timelineItemClasses.js +1 -1
  274. package/node/TimelineOppositeContent/TimelineOppositeContent.js +2 -3
  275. package/node/TimelineOppositeContent/index.js +3 -4
  276. package/node/TimelineOppositeContent/timelineOppositeContentClasses.js +1 -1
  277. package/node/TimelineSeparator/TimelineSeparator.js +2 -3
  278. package/node/TimelineSeparator/index.js +3 -4
  279. package/node/TimelineSeparator/timelineSeparatorClasses.js +1 -1
  280. package/node/ToggleButton/ToggleButton.js +2 -3
  281. package/node/ToggleButton/index.js +1 -1
  282. package/node/ToggleButtonGroup/ToggleButtonGroup.js +2 -3
  283. package/node/ToggleButtonGroup/index.js +1 -1
  284. package/node/TreeItem/TreeItem.js +1 -2
  285. package/node/TreeItem/index.js +2 -3
  286. package/node/TreeView/TreeView.js +1 -2
  287. package/node/TreeView/index.js +2 -3
  288. package/node/YearPicker/index.js +2 -3
  289. package/node/index.js +4 -5
  290. package/node/internal/svg-icons/ArrowDropDown.js +2 -3
  291. package/node/internal/svg-icons/ArrowLeft.js +2 -3
  292. package/node/internal/svg-icons/ArrowRight.js +2 -3
  293. package/node/internal/svg-icons/Calendar.js +2 -3
  294. package/node/internal/svg-icons/Clock.js +2 -3
  295. package/node/internal/svg-icons/DateRange.js +2 -3
  296. package/node/internal/svg-icons/Pen.js +2 -3
  297. package/node/internal/svg-icons/Time.js +2 -3
  298. package/node/themeAugmentation/components.js +5 -0
  299. package/node/themeAugmentation/overrides.js +5 -0
  300. package/node/themeAugmentation/props.js +5 -0
  301. package/package.json +12 -12
  302. package/themeAugmentation/components.d.ts +58 -67
  303. package/themeAugmentation/components.js +2 -0
  304. package/themeAugmentation/overrides.d.ts +13 -17
  305. package/themeAugmentation/overrides.js +4 -0
  306. package/themeAugmentation/props.d.ts +14 -17
  307. package/themeAugmentation/props.js +2 -0
  308. package/LoadingButton/loadingButtonClasses.d.ts +0 -22
  309. package/LoadingButton/loadingButtonClasses.js +0 -7
  310. package/modern/LoadingButton/loadingButtonClasses.js +0 -7
  311. package/node/LoadingButton/loadingButtonClasses.js +0 -15
@@ -1,2 +1,2 @@
1
- export { default } from './CalendarPicker';
2
- export * from './CalendarPicker';
1
+ export { default } from "./CalendarPicker.js";
2
+ export * from "./CalendarPicker.js";
@@ -1,2 +1,2 @@
1
- export { default } from './CalendarPickerSkeleton';
2
- export * from './CalendarPickerSkeleton';
1
+ export { default } from "./CalendarPickerSkeleton.js";
2
+ export * from "./CalendarPickerSkeleton.js";
@@ -1,2 +1,2 @@
1
- export { default } from './ClockPicker';
2
- export * from './ClockPicker';
1
+ export { default } from "./ClockPicker.js";
2
+ export * from "./ClockPicker.js";
@@ -1,2 +1,2 @@
1
- export { default } from './DatePicker';
2
- export * from './DatePicker';
1
+ export { default } from "./DatePicker.js";
2
+ export * from "./DatePicker.js";
@@ -1,2 +1,2 @@
1
- export { default } from './DateRangePicker';
2
- export * from './DateRangePicker';
1
+ export { default } from "./DateRangePicker.js";
2
+ export * from "./DateRangePicker.js";
@@ -1,2 +1,2 @@
1
- export { default } from './DateRangePickerDay';
2
- export * from './DateRangePickerDay';
1
+ export { default } from "./DateRangePickerDay.js";
2
+ export * from "./DateRangePickerDay.js";
@@ -1,2 +1,2 @@
1
- export { default } from './DateTimePicker';
2
- export * from './DateTimePicker';
1
+ export { default } from "./DateTimePicker.js";
2
+ export * from "./DateTimePicker.js";
@@ -1,2 +1,2 @@
1
- export { default } from './DesktopDatePicker';
2
- export * from './DesktopDatePicker';
1
+ export { default } from "./DesktopDatePicker.js";
2
+ export * from "./DesktopDatePicker.js";
@@ -1,2 +1,2 @@
1
- export { default } from './DesktopDateRangePicker';
2
- export * from './DesktopDateRangePicker';
1
+ export { default } from "./DesktopDateRangePicker.js";
2
+ export * from "./DesktopDateRangePicker.js";
@@ -1,2 +1,2 @@
1
- export { default } from './DesktopDateTimePicker';
2
- export * from './DesktopDateTimePicker';
1
+ export { default } from "./DesktopDateTimePicker.js";
2
+ export * from "./DesktopDateTimePicker.js";
@@ -1,2 +1,2 @@
1
- export { default } from './DesktopTimePicker';
2
- export * from './DesktopTimePicker';
1
+ export { default } from "./DesktopTimePicker.js";
2
+ export * from "./DesktopTimePicker.js";
@@ -1,78 +1,6 @@
1
- import { ExtendButton, ExtendButtonTypeMap, ButtonClasses } from '@mui/material/Button';
2
- import { OverrideProps } from '@mui/material/OverridableComponent';
3
- import { Theme } from '@mui/material/styles';
4
- import { SxProps } from '@mui/system';
5
-
6
- export interface LoadingButtonOwnProps {
7
- /**
8
- * Override or extend the styles applied to the component.
9
- */
10
- classes?: Partial<ButtonClasses> & {
11
- /** Styles applied to the root element. */
12
- root?: string;
13
- /** Styles applied to the root element if `loading={true}`. */
14
- loading?: string;
15
- /** Styles applied to the loadingIndicator element. */
16
- loadingIndicator?: string;
17
- /** Styles applied to the loadingIndicator element if `loadingPosition="center"`. */
18
- loadingIndicatorCenter?: string;
19
- /** Styles applied to the loadingIndicator element if `loadingPosition="start"`. */
20
- loadingIndicatorStart?: string;
21
- /** Styles applied to the loadingIndicator element if `loadingPosition="end"`. */
22
- loadingIndicatorEnd?: string;
23
- /** Styles applied to the endIcon element if `loading={true}` and `loadingPosition="end"`. */
24
- endIconLoadingEnd?: string;
25
- /** Styles applied to the startIcon element if `loading={true}` and `loadingPosition="start"`. */
26
- startIconLoadingStart?: string;
27
- };
28
- /**
29
- * If `true`, the loading indicator is shown and the button becomes disabled.
30
- * @default false
31
- */
32
- loading?: boolean;
33
- /**
34
- * Element placed before the children if the button is in loading state.
35
- * The node should contain an element with `role="progressbar"` with an accessible name.
36
- * By default we render a `CircularProgress` that is labelled by the button itself.
37
- * @default <CircularProgress color="inherit" size={16} />
38
- */
39
- loadingIndicator?: React.ReactNode;
40
- /**
41
- * The loading indicator can be positioned on the start, end, or the center of the button.
42
- * @default 'center'
43
- */
44
- loadingPosition?: 'start' | 'end' | 'center';
45
- /**
46
- * The system prop that allows defining system overrides as well as additional CSS styles.
47
- */
48
- sx?: SxProps<Theme>;
49
- }
50
-
51
- export type LoadingButtonTypeMap<
52
- AdditionalProps = {},
53
- RootComponent extends React.ElementType = 'button',
54
- > = ExtendButtonTypeMap<{
55
- props: AdditionalProps & LoadingButtonOwnProps;
56
- defaultComponent: RootComponent;
57
- }>;
58
-
59
- /**
60
- *
61
- * Demos:
62
- *
63
- * - [Button Group](https://next.mui.com/material-ui/react-button-group/)
64
- * - [Button](https://next.mui.com/material-ui/react-button/)
65
- *
66
- * API:
67
- *
68
- * - [LoadingButton API](https://next.mui.com/material-ui/api/loading-button/)
69
- * - inherits [Button API](https://next.mui.com/material-ui/api/button/)
70
- */
71
- declare const LoadingButton: ExtendButton<LoadingButtonTypeMap>;
72
-
73
- export type LoadingButtonProps<
74
- RootComponent extends React.ElementType = LoadingButtonTypeMap['defaultComponent'],
75
- AdditionalProps = {},
76
- > = OverrideProps<LoadingButtonTypeMap<AdditionalProps, RootComponent>, RootComponent>;
77
-
78
- export default LoadingButton;
1
+ export { default } from '@mui/material/Button';
2
+ export * from '@mui/material/Button';
3
+ export {
4
+ ButtonProps as LoadingButtonProps,
5
+ ButtonClassKey as LoadingButtonClassKey,
6
+ } from '@mui/material/Button';
@@ -1,297 +1,23 @@
1
1
  'use client';
2
2
 
3
3
  import * as React from 'react';
4
- import PropTypes from 'prop-types';
5
- import { chainPropTypes } from '@mui/utils';
6
- import { capitalize, unstable_useId as useId } from '@mui/material/utils';
7
- import { unstable_composeClasses as composeClasses } from '@mui/base';
8
- import { useDefaultProps } from '@mui/material/DefaultPropsProvider';
9
4
  import Button from '@mui/material/Button';
10
- import { ButtonGroupContext } from '@mui/material/ButtonGroup';
11
- import CircularProgress from '@mui/material/CircularProgress';
12
- import resolveProps from '@mui/utils/resolveProps';
13
- import { styled } from '../zero-styled';
14
- import loadingButtonClasses, { getLoadingButtonUtilityClass } from './loadingButtonClasses';
15
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
16
- const useUtilityClasses = ownerState => {
17
- const {
18
- loading,
19
- loadingPosition,
20
- classes
21
- } = ownerState;
22
- const slots = {
23
- root: ['root', loading && 'loading'],
24
- startIcon: [loading && `startIconLoading${capitalize(loadingPosition)}`],
25
- endIcon: [loading && `endIconLoading${capitalize(loadingPosition)}`],
26
- loadingIndicator: ['loadingIndicator', loading && `loadingIndicator${capitalize(loadingPosition)}`]
27
- };
28
- const composedClasses = composeClasses(slots, getLoadingButtonUtilityClass, classes);
29
- return {
30
- ...classes,
31
- // forward the outlined, color, etc. classes to Button
32
- ...composedClasses
33
- };
5
+ import { jsx as _jsx } from "react/jsx-runtime";
6
+ let warnedOnce = false;
7
+ const warn = () => {
8
+ if (!warnedOnce) {
9
+ console.warn(['MUI: The LoadingButton component functionality is now part of the Button component from Material UI.', '', "You should use `import Button from '@mui/material/Button'`", "or `import { Button } from '@mui/material'`"].join('\n'));
10
+ warnedOnce = true;
11
+ }
34
12
  };
35
13
 
36
- // TODO use `import rootShouldForwardProp from '../styles/rootShouldForwardProp';` once move to core
37
- const rootShouldForwardProp = prop => prop !== 'ownerState' && prop !== 'theme' && prop !== 'sx' && prop !== 'as' && prop !== 'classes';
38
- const LoadingButtonRoot = styled(Button, {
39
- shouldForwardProp: prop => rootShouldForwardProp(prop) || prop === 'classes',
40
- name: 'MuiLoadingButton',
41
- slot: 'Root',
42
- overridesResolver: (props, styles) => {
43
- return [styles.root, styles.startIconLoadingStart && {
44
- [`& .${loadingButtonClasses.startIconLoadingStart}`]: styles.startIconLoadingStart
45
- }, styles.endIconLoadingEnd && {
46
- [`& .${loadingButtonClasses.endIconLoadingEnd}`]: styles.endIconLoadingEnd
47
- }];
48
- }
49
- })(({
50
- theme
51
- }) => ({
52
- [`& .${loadingButtonClasses.startIconLoadingStart}, & .${loadingButtonClasses.endIconLoadingEnd}`]: {
53
- transition: theme.transitions.create(['opacity'], {
54
- duration: theme.transitions.duration.short
55
- }),
56
- opacity: 0
57
- },
58
- variants: [{
59
- props: {
60
- loadingPosition: 'center'
61
- },
62
- style: {
63
- transition: theme.transitions.create(['background-color', 'box-shadow', 'border-color'], {
64
- duration: theme.transitions.duration.short
65
- }),
66
- [`&.${loadingButtonClasses.loading}`]: {
67
- color: 'transparent'
68
- }
69
- }
70
- }, {
71
- props: ({
72
- ownerState
73
- }) => ownerState.loadingPosition === 'start' && ownerState.fullWidth,
74
- style: {
75
- [`& .${loadingButtonClasses.startIconLoadingStart}, & .${loadingButtonClasses.endIconLoadingEnd}`]: {
76
- transition: theme.transitions.create(['opacity'], {
77
- duration: theme.transitions.duration.short
78
- }),
79
- opacity: 0,
80
- marginRight: -8
81
- }
82
- }
83
- }, {
84
- props: ({
85
- ownerState
86
- }) => ownerState.loadingPosition === 'end' && ownerState.fullWidth,
87
- style: {
88
- [`& .${loadingButtonClasses.startIconLoadingStart}, & .${loadingButtonClasses.endIconLoadingEnd}`]: {
89
- transition: theme.transitions.create(['opacity'], {
90
- duration: theme.transitions.duration.short
91
- }),
92
- opacity: 0,
93
- marginLeft: -8
94
- }
95
- }
96
- }]
97
- }));
98
- const LoadingButtonLoadingIndicator = styled('span', {
99
- name: 'MuiLoadingButton',
100
- slot: 'LoadingIndicator',
101
- overridesResolver: (props, styles) => {
102
- const {
103
- ownerState
104
- } = props;
105
- return [styles.loadingIndicator, styles[`loadingIndicator${capitalize(ownerState.loadingPosition)}`]];
106
- }
107
- })(({
108
- theme
109
- }) => ({
110
- position: 'absolute',
111
- visibility: 'visible',
112
- display: 'flex',
113
- variants: [{
114
- props: {
115
- loadingPosition: 'start',
116
- size: 'small'
117
- },
118
- style: {
119
- left: 10
120
- }
121
- }, {
122
- props: ({
123
- loadingPosition,
124
- ownerState
125
- }) => loadingPosition === 'start' && ownerState.size !== 'small',
126
- style: {
127
- left: 14
128
- }
129
- }, {
130
- props: {
131
- variant: 'text',
132
- loadingPosition: 'start'
133
- },
134
- style: {
135
- left: 6
136
- }
137
- }, {
138
- props: {
139
- loadingPosition: 'center'
140
- },
141
- style: {
142
- left: '50%',
143
- transform: 'translate(-50%)',
144
- color: (theme.vars || theme).palette.action.disabled
145
- }
146
- }, {
147
- props: {
148
- loadingPosition: 'end',
149
- size: 'small'
150
- },
151
- style: {
152
- right: 10
153
- }
154
- }, {
155
- props: ({
156
- loadingPosition,
157
- ownerState
158
- }) => loadingPosition === 'end' && ownerState.size !== 'small',
159
- style: {
160
- right: 14
161
- }
162
- }, {
163
- props: {
164
- variant: 'text',
165
- loadingPosition: 'end'
166
- },
167
- style: {
168
- right: 6
169
- }
170
- }, {
171
- props: ({
172
- ownerState
173
- }) => ownerState.loadingPosition === 'start' && ownerState.fullWidth,
174
- style: {
175
- position: 'relative',
176
- left: -10
177
- }
178
- }, {
179
- props: ({
180
- ownerState
181
- }) => ownerState.loadingPosition === 'end' && ownerState.fullWidth,
182
- style: {
183
- position: 'relative',
184
- right: -10
185
- }
186
- }]
187
- }));
188
- const LoadingButton = /*#__PURE__*/React.forwardRef(function LoadingButton(inProps, ref) {
189
- const contextProps = React.useContext(ButtonGroupContext);
190
- const resolvedProps = resolveProps(contextProps, inProps);
191
- const props = useDefaultProps({
192
- props: resolvedProps,
193
- name: 'MuiLoadingButton'
194
- });
195
- const {
196
- children,
197
- disabled = false,
198
- id: idProp,
199
- loading = false,
200
- loadingIndicator: loadingIndicatorProp,
201
- loadingPosition = 'center',
202
- variant = 'text',
203
- ...other
204
- } = props;
205
- const id = useId(idProp);
206
- const loadingIndicator = loadingIndicatorProp ?? /*#__PURE__*/_jsx(CircularProgress, {
207
- "aria-labelledby": id,
208
- color: "inherit",
209
- size: 16
210
- });
211
- const ownerState = {
212
- ...props,
213
- disabled,
214
- loading,
215
- loadingIndicator,
216
- loadingPosition,
217
- variant
218
- };
219
- const classes = useUtilityClasses(ownerState);
220
- const loadingButtonLoadingIndicator = loading ? /*#__PURE__*/_jsx(LoadingButtonLoadingIndicator, {
221
- className: classes.loadingIndicator,
222
- ownerState: ownerState,
223
- children: loadingIndicator
224
- }) : null;
225
- return /*#__PURE__*/_jsxs(LoadingButtonRoot, {
226
- disabled: disabled || loading,
227
- id: id,
14
+ /**
15
+ * @ignore - do not document.
16
+ */
17
+ export default /*#__PURE__*/React.forwardRef(function DeprecatedLoadingButton(props, ref) {
18
+ warn();
19
+ return /*#__PURE__*/_jsx(Button, {
228
20
  ref: ref,
229
- ...other,
230
- variant: variant,
231
- classes: classes,
232
- ownerState: ownerState,
233
- children: [ownerState.loadingPosition === 'end' ? /*#__PURE__*/_jsx("span", {
234
- children: children
235
- }) : loadingButtonLoadingIndicator, ownerState.loadingPosition === 'end' ? loadingButtonLoadingIndicator : /*#__PURE__*/_jsx("span", {
236
- children: children
237
- })]
21
+ ...props
238
22
  });
239
- });
240
- process.env.NODE_ENV !== "production" ? LoadingButton.propTypes /* remove-proptypes */ = {
241
- // ┌────────────────────────────── Warning ──────────────────────────────┐
242
- // │ These PropTypes are generated from the TypeScript type definitions. │
243
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
244
- // └─────────────────────────────────────────────────────────────────────┘
245
- /**
246
- * The content of the component.
247
- */
248
- children: PropTypes.node,
249
- /**
250
- * Override or extend the styles applied to the component.
251
- */
252
- classes: PropTypes.object,
253
- /**
254
- * If `true`, the component is disabled.
255
- * @default false
256
- */
257
- disabled: PropTypes.bool,
258
- /**
259
- * @ignore
260
- */
261
- id: PropTypes.string,
262
- /**
263
- * If `true`, the loading indicator is shown and the button becomes disabled.
264
- * @default false
265
- */
266
- loading: PropTypes.bool,
267
- /**
268
- * Element placed before the children if the button is in loading state.
269
- * The node should contain an element with `role="progressbar"` with an accessible name.
270
- * By default we render a `CircularProgress` that is labelled by the button itself.
271
- * @default <CircularProgress color="inherit" size={16} />
272
- */
273
- loadingIndicator: PropTypes.node,
274
- /**
275
- * The loading indicator can be positioned on the start, end, or the center of the button.
276
- * @default 'center'
277
- */
278
- loadingPosition: chainPropTypes(PropTypes.oneOf(['start', 'end', 'center']), props => {
279
- if (props.loadingPosition === 'start' && !props.startIcon) {
280
- return new Error(`MUI: The loadingPosition="start" should be used in combination with startIcon.`);
281
- }
282
- if (props.loadingPosition === 'end' && !props.endIcon) {
283
- return new Error(`MUI: The loadingPosition="end" should be used in combination with endIcon.`);
284
- }
285
- return null;
286
- }),
287
- /**
288
- * The system prop that allows defining system overrides as well as additional CSS styles.
289
- */
290
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
291
- /**
292
- * The variant to use.
293
- * @default 'text'
294
- */
295
- variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['contained', 'outlined', 'text']), PropTypes.string])
296
- } : void 0;
297
- export default LoadingButton;
23
+ });
@@ -1,5 +1,2 @@
1
1
  export { default } from './LoadingButton';
2
2
  export * from './LoadingButton';
3
-
4
- export { default as loadingButtonClasses } from './loadingButtonClasses';
5
- export * from './loadingButtonClasses';
@@ -1,3 +1 @@
1
- export { default } from './LoadingButton';
2
- export { default as loadingButtonClasses } from './loadingButtonClasses';
3
- export * from './loadingButtonClasses';
1
+ export { default } from "./LoadingButton.js";
@@ -1,2 +1,2 @@
1
- export { default } from './LocalizationProvider';
2
- export * from './LocalizationProvider';
1
+ export { default } from "./LocalizationProvider.js";
2
+ export * from "./LocalizationProvider.js";
@@ -56,11 +56,11 @@ export interface MasonryTypeMap<
56
56
  *
57
57
  * Demos:
58
58
  *
59
- * - [Masonry](https://next.mui.com/material-ui/react-masonry/)
59
+ * - [Masonry](https://mui.com/material-ui/react-masonry/)
60
60
  *
61
61
  * API:
62
62
  *
63
- * - [Masonry API](https://next.mui.com/material-ui/api/masonry/)
63
+ * - [Masonry API](https://mui.com/material-ui/api/masonry/)
64
64
  */
65
65
  declare const Masonry: OverridableComponent<MasonryTypeMap>;
66
66
 
@@ -8,7 +8,7 @@ import { deepmerge, unstable_useForkRef as useForkRef, unstable_useEnhancedEffec
8
8
  import clsx from 'clsx';
9
9
  import PropTypes from 'prop-types';
10
10
  import * as React from 'react';
11
- import { getMasonryUtilityClass } from './masonryClasses';
11
+ import { getMasonryUtilityClass } from "./masonryClasses.js";
12
12
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
13
  export const parseToNumber = val => {
14
14
  return Number(val.replace('px', ''));
@@ -254,7 +254,7 @@ const Masonry = /*#__PURE__*/React.forwardRef(function Masonry(inProps, ref) {
254
254
  }
255
255
  return () => {
256
256
  if (animationFrame) {
257
- window.cancelAnimationFrame(animationFrame);
257
+ cancelAnimationFrame(animationFrame);
258
258
  }
259
259
  if (resizeObserver) {
260
260
  resizeObserver.disconnect();
package/Masonry/index.js CHANGED
@@ -1,3 +1,3 @@
1
- export { default } from './Masonry';
2
- export * from './masonryClasses';
3
- export { default as masonryClasses } from './masonryClasses';
1
+ export { default } from "./Masonry.js";
2
+ export * from "./masonryClasses.js";
3
+ export { default as masonryClasses } from "./masonryClasses.js";
@@ -1,2 +1,2 @@
1
- export { default } from './MobileDatePicker';
2
- export * from './MobileDatePicker';
1
+ export { default } from "./MobileDatePicker.js";
2
+ export * from "./MobileDatePicker.js";
@@ -1,2 +1,2 @@
1
- export { default } from './MobileDateRangePicker';
2
- export * from './MobileDateRangePicker';
1
+ export { default } from "./MobileDateRangePicker.js";
2
+ export * from "./MobileDateRangePicker.js";
@@ -1,2 +1,2 @@
1
- export { default } from './MobileDateTimePicker';
2
- export * from './MobileDateTimePicker';
1
+ export { default } from "./MobileDateTimePicker.js";
2
+ export * from "./MobileDateTimePicker.js";
@@ -1,2 +1,2 @@
1
- export { default } from './MobileTimePicker';
2
- export * from './MobileTimePicker';
1
+ export { default } from "./MobileTimePicker.js";
2
+ export * from "./MobileTimePicker.js";
@@ -1,2 +1,2 @@
1
- export { default } from './MonthPicker';
2
- export * from './MonthPicker';
1
+ export { default } from "./MonthPicker.js";
2
+ export * from "./MonthPicker.js";
@@ -1,2 +1,2 @@
1
- export { default } from './Pagination';
2
- export { default as usePagination } from './usePagination';
1
+ export { default } from "./Pagination.js";
2
+ export { default as usePagination } from "./usePagination.js";
@@ -1 +1 @@
1
- export { default } from './PaginationItem';
1
+ export { default } from "./PaginationItem.js";
@@ -1,2 +1,2 @@
1
- export { default } from './PickersDay';
2
- export * from './PickersDay';
1
+ export { default } from "./PickersDay.js";
2
+ export * from "./PickersDay.js";
package/README.md CHANGED
@@ -9,7 +9,7 @@ Install the package in your project directory with:
9
9
  <!-- #default-branch-switch -->
10
10
 
11
11
  ```bash
12
- npm install @mui/lab@next
12
+ npm install @mui/lab
13
13
  ```
14
14
 
15
15
  The lab has peer dependencies on the Material Design components and on the Emotion library.
@@ -18,11 +18,11 @@ If you are not already using them in your project, you can install with:
18
18
  <!-- #default-branch-switch -->
19
19
 
20
20
  ```bash
21
- npm install @mui/material@next @emotion/react @emotion/styled
21
+ npm install @mui/material @emotion/react @emotion/styled
22
22
  ```
23
23
 
24
24
  ## Documentation
25
25
 
26
26
  <!-- #default-branch-switch -->
27
27
 
28
- Visit [https://next.mui.com/material-ui/about-the-lab/](https://next.mui.com/material-ui/about-the-lab/) to view the full documentation.
28
+ Visit [https://mui.com/material-ui/about-the-lab/](https://mui.com/material-ui/about-the-lab/) to view the full documentation.
package/Rating/index.js CHANGED
@@ -1 +1 @@
1
- export { default } from './Rating';
1
+ export { default } from "./Rating.js";
package/Skeleton/index.js CHANGED
@@ -1 +1 @@
1
- export { default } from './Skeleton';
1
+ export { default } from "./Skeleton.js";
@@ -1 +1 @@
1
- export { default } from './SpeedDial';
1
+ export { default } from "./SpeedDial.js";
@@ -1 +1 @@
1
- export { default } from './SpeedDialAction';
1
+ export { default } from "./SpeedDialAction.js";
@@ -1 +1 @@
1
- export { default } from './SpeedDialIcon';
1
+ export { default } from "./SpeedDialIcon.js";
@@ -1,2 +1,2 @@
1
- export { default } from './StaticDatePicker';
2
- export * from './StaticDatePicker';
1
+ export { default } from "./StaticDatePicker.js";
2
+ export * from "./StaticDatePicker.js";
@@ -1,2 +1,2 @@
1
- export { default } from './StaticDateRangePicker';
2
- export * from './StaticDateRangePicker';
1
+ export { default } from "./StaticDateRangePicker.js";
2
+ export * from "./StaticDateRangePicker.js";
@@ -1,2 +1,2 @@
1
- export { default } from './StaticDateTimePicker';
2
- export * from './StaticDateTimePicker';
1
+ export { default } from "./StaticDateTimePicker.js";
2
+ export * from "./StaticDateTimePicker.js";
@@ -1,2 +1,2 @@
1
- export { default } from './StaticTimePicker';
2
- export * from './StaticTimePicker';
1
+ export { default } from "./StaticTimePicker.js";
2
+ export * from "./StaticTimePicker.js";