@mui/lab 6.0.0-alpha.7 → 6.0.0-alpha.9

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 (111) hide show
  1. package/Alert/Alert.js +4 -4
  2. package/AlertTitle/AlertTitle.js +4 -4
  3. package/Autocomplete/Autocomplete.js +4 -4
  4. package/AvatarGroup/AvatarGroup.js +4 -4
  5. package/CHANGELOG.md +113 -2
  6. package/CalendarPicker/CalendarPicker.d.ts +1 -1
  7. package/CalendarPickerSkeleton/CalendarPickerSkeleton.d.ts +1 -1
  8. package/ClockPicker/ClockPicker.d.ts +1 -1
  9. package/DatePicker/DatePicker.d.ts +1 -1
  10. package/DateRangePicker/DateRangePicker.d.ts +1 -1
  11. package/DateRangePickerDay/DateRangePickerDay.d.ts +1 -1
  12. package/DateTimePicker/DateTimePicker.d.ts +1 -1
  13. package/DesktopDatePicker/DesktopDatePicker.d.ts +1 -1
  14. package/DesktopDateRangePicker/DesktopDateRangePicker.d.ts +1 -1
  15. package/DesktopDateTimePicker/DesktopDateTimePicker.d.ts +1 -1
  16. package/DesktopTimePicker/DesktopTimePicker.d.ts +1 -1
  17. package/LoadingButton/LoadingButton.js +21 -19
  18. package/LocalizationProvider/LocalizationProvider.d.ts +1 -1
  19. package/Masonry/Masonry.js +35 -30
  20. package/MobileDatePicker/MobileDatePicker.d.ts +1 -1
  21. package/MobileDateRangePicker/MobileDateRangePicker.d.ts +1 -1
  22. package/MobileDateTimePicker/MobileDateTimePicker.d.ts +1 -1
  23. package/MobileTimePicker/MobileTimePicker.d.ts +1 -1
  24. package/MonthPicker/MonthPicker.d.ts +1 -1
  25. package/Pagination/Pagination.js +4 -4
  26. package/PaginationItem/PaginationItem.js +4 -4
  27. package/PickersDay/PickersDay.d.ts +1 -1
  28. package/Rating/Rating.js +4 -4
  29. package/Skeleton/Skeleton.js +4 -4
  30. package/SpeedDial/SpeedDial.js +4 -4
  31. package/SpeedDialAction/SpeedDialAction.js +4 -4
  32. package/SpeedDialIcon/SpeedDialIcon.js +4 -4
  33. package/StaticDatePicker/StaticDatePicker.d.ts +1 -1
  34. package/StaticDateRangePicker/StaticDateRangePicker.d.ts +1 -1
  35. package/StaticDateTimePicker/StaticDateTimePicker.d.ts +1 -1
  36. package/StaticTimePicker/StaticTimePicker.d.ts +1 -1
  37. package/TabContext/TabContext.d.ts +1 -1
  38. package/TabList/TabList.js +6 -8
  39. package/TabPanel/TabPanel.d.ts +1 -1
  40. package/TabPanel/TabPanel.js +13 -14
  41. package/TimePicker/TimePicker.d.ts +1 -1
  42. package/Timeline/Timeline.js +11 -12
  43. package/TimelineConnector/TimelineConnector.d.ts +1 -1
  44. package/TimelineConnector/TimelineConnector.js +7 -9
  45. package/TimelineContent/TimelineContent.d.ts +1 -1
  46. package/TimelineContent/TimelineContent.js +15 -15
  47. package/TimelineDot/TimelineDot.d.ts +1 -1
  48. package/TimelineDot/TimelineDot.js +38 -31
  49. package/TimelineItem/TimelineItem.d.ts +1 -1
  50. package/TimelineItem/TimelineItem.js +33 -31
  51. package/TimelineOppositeContent/TimelineOppositeContent.d.ts +3 -1
  52. package/TimelineOppositeContent/TimelineOppositeContent.js +15 -15
  53. package/TimelineSeparator/TimelineSeparator.d.ts +1 -1
  54. package/TimelineSeparator/TimelineSeparator.js +7 -9
  55. package/ToggleButton/ToggleButton.js +4 -4
  56. package/ToggleButtonGroup/ToggleButtonGroup.js +4 -4
  57. package/TreeItem/TreeItem.d.ts +1 -1
  58. package/TreeView/TreeView.d.ts +1 -1
  59. package/YearPicker/YearPicker.d.ts +1 -1
  60. package/index.js +1 -1
  61. package/modern/Alert/Alert.js +4 -4
  62. package/modern/AlertTitle/AlertTitle.js +4 -4
  63. package/modern/Autocomplete/Autocomplete.js +4 -4
  64. package/modern/AvatarGroup/AvatarGroup.js +4 -4
  65. package/modern/LoadingButton/LoadingButton.js +21 -19
  66. package/modern/Masonry/Masonry.js +35 -30
  67. package/modern/Pagination/Pagination.js +4 -4
  68. package/modern/PaginationItem/PaginationItem.js +4 -4
  69. package/modern/Rating/Rating.js +4 -4
  70. package/modern/Skeleton/Skeleton.js +4 -4
  71. package/modern/SpeedDial/SpeedDial.js +4 -4
  72. package/modern/SpeedDialAction/SpeedDialAction.js +4 -4
  73. package/modern/SpeedDialIcon/SpeedDialIcon.js +4 -4
  74. package/modern/TabList/TabList.js +6 -8
  75. package/modern/TabPanel/TabPanel.js +13 -14
  76. package/modern/Timeline/Timeline.js +11 -12
  77. package/modern/TimelineConnector/TimelineConnector.js +7 -9
  78. package/modern/TimelineContent/TimelineContent.js +15 -15
  79. package/modern/TimelineDot/TimelineDot.js +38 -31
  80. package/modern/TimelineItem/TimelineItem.js +33 -31
  81. package/modern/TimelineOppositeContent/TimelineOppositeContent.js +15 -15
  82. package/modern/TimelineSeparator/TimelineSeparator.js +7 -9
  83. package/modern/ToggleButton/ToggleButton.js +4 -4
  84. package/modern/ToggleButtonGroup/ToggleButtonGroup.js +4 -4
  85. package/modern/index.js +1 -1
  86. package/node/Alert/Alert.js +4 -4
  87. package/node/AlertTitle/AlertTitle.js +4 -4
  88. package/node/Autocomplete/Autocomplete.js +4 -4
  89. package/node/AvatarGroup/AvatarGroup.js +4 -4
  90. package/node/LoadingButton/LoadingButton.js +21 -19
  91. package/node/Masonry/Masonry.js +35 -30
  92. package/node/Pagination/Pagination.js +4 -4
  93. package/node/PaginationItem/PaginationItem.js +4 -4
  94. package/node/Rating/Rating.js +4 -4
  95. package/node/Skeleton/Skeleton.js +4 -4
  96. package/node/SpeedDial/SpeedDial.js +4 -4
  97. package/node/SpeedDialAction/SpeedDialAction.js +4 -4
  98. package/node/SpeedDialIcon/SpeedDialIcon.js +4 -4
  99. package/node/TabList/TabList.js +6 -8
  100. package/node/TabPanel/TabPanel.js +13 -14
  101. package/node/Timeline/Timeline.js +11 -12
  102. package/node/TimelineConnector/TimelineConnector.js +7 -9
  103. package/node/TimelineContent/TimelineContent.js +15 -15
  104. package/node/TimelineDot/TimelineDot.js +38 -31
  105. package/node/TimelineItem/TimelineItem.js +33 -31
  106. package/node/TimelineOppositeContent/TimelineOppositeContent.js +15 -15
  107. package/node/TimelineSeparator/TimelineSeparator.js +7 -9
  108. package/node/ToggleButton/ToggleButton.js +4 -4
  109. package/node/ToggleButtonGroup/ToggleButtonGroup.js +4 -4
  110. package/node/index.js +1 -1
  111. package/package.json +7 -7
package/Alert/Alert.js CHANGED
@@ -1,6 +1,5 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
4
3
  import * as React from 'react';
5
4
  import Alert from '@mui/material/Alert';
6
5
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -14,7 +13,8 @@ export default /*#__PURE__*/React.forwardRef(function DeprecatedAlert(props, ref
14
13
  console.warn(['MUI: The Alert component was moved from the lab to the core.', '', "You should use `import { Alert } from '@mui/material'`", "or `import Alert from '@mui/material/Alert'`"].join('\n'));
15
14
  warnedOnce = true;
16
15
  }
17
- return /*#__PURE__*/_jsx(Alert, _extends({
18
- ref: ref
19
- }, props));
16
+ return /*#__PURE__*/_jsx(Alert, {
17
+ ref: ref,
18
+ ...props
19
+ });
20
20
  });
@@ -1,6 +1,5 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
4
3
  import * as React from 'react';
5
4
  import AlertTitle from '@mui/material/AlertTitle';
6
5
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -14,7 +13,8 @@ export default /*#__PURE__*/React.forwardRef(function DeprecatedAlertTitle(props
14
13
  console.warn(['MUI: The AlertTitle component was moved from the lab to the core.', '', "You should use `import { AlertTitle } from '@mui/material'`", "or `import AlertTitle from '@mui/material/AlertTitle'`"].join('\n'));
15
14
  warnedOnce = true;
16
15
  }
17
- return /*#__PURE__*/_jsx(AlertTitle, _extends({
18
- ref: ref
19
- }, props));
16
+ return /*#__PURE__*/_jsx(AlertTitle, {
17
+ ref: ref,
18
+ ...props
19
+ });
20
20
  });
@@ -1,6 +1,5 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
4
3
  import * as React from 'react';
5
4
  import Autocomplete from '@mui/material/Autocomplete';
6
5
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -14,7 +13,8 @@ export default /*#__PURE__*/React.forwardRef(function DeprecatedAutocomplete(pro
14
13
  console.warn(['MUI: The Autocomplete component was moved from the lab to the core.', '', "You should use `import { Autocomplete } from '@mui/material'`", "or `import Autocomplete from '@mui/material/Autocomplete'`"].join('\n'));
15
14
  warnedOnce = true;
16
15
  }
17
- return /*#__PURE__*/_jsx(Autocomplete, _extends({
18
- ref: ref
19
- }, props));
16
+ return /*#__PURE__*/_jsx(Autocomplete, {
17
+ ref: ref,
18
+ ...props
19
+ });
20
20
  });
@@ -1,6 +1,5 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
4
3
  import * as React from 'react';
5
4
  import AvatarGroup from '@mui/material/AvatarGroup';
6
5
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -14,7 +13,8 @@ export default /*#__PURE__*/React.forwardRef(function DeprecatedAvatarGroup(prop
14
13
  console.warn(['MUI: The AvatarGroup component was moved from the lab to the core.', '', "You should use `import { AvatarGroup } from '@mui/material'`", "or `import AvatarGroup from '@mui/material/AvatarGroup'`"].join('\n'));
15
14
  warnedOnce = true;
16
15
  }
17
- return /*#__PURE__*/_jsx(AvatarGroup, _extends({
18
- ref: ref
19
- }, props));
16
+ return /*#__PURE__*/_jsx(AvatarGroup, {
17
+ ref: ref,
18
+ ...props
19
+ });
20
20
  });
package/CHANGELOG.md CHANGED
@@ -1,5 +1,116 @@
1
1
  # [Versions](https://mui.com/versions/)
2
2
 
3
+ ## v6.0.0-alpha.9
4
+
5
+ <!-- generated comparing v6.0.0-alpha.8..next -->
6
+
7
+ _May 29, 2024_
8
+
9
+ A big thanks to the 23 contributors who made this release possible. Here are some highlights ✨:
10
+
11
+ - 🚀 `CssVarsProvider` and `extendTheme` are now stable (#42246) @siriwatknp
12
+
13
+ ### `@mui/material@6.0.0-alpha.9`
14
+
15
+ - &#8203;<!-- 49 -->[AlertTitle] Enable extending Typography props (#42269) @lucasgmelo
16
+ - &#8203;<!-- 48 -->[AvatarGroup] deprecate `componentsProps` for v6 (#42122) @lhilgert9
17
+ - &#8203;<!-- 15 -->[Grid] Deprecate `wrap` prop (#42363) @fedirjh
18
+ - &#8203;<!-- 14 -->[ListItem] Document `*Component` and `*Props` props deprecations (#42263) @aarongarciah
19
+ - &#8203;<!-- 13 -->[ListItem] Deprecate ListItem's components and componentsProps (#42219) @aarongarciah
20
+ - &#8203;<!-- 12 -->[ListItemSecondaryAction] Deprecate component (#42251) @aarongarciah
21
+ - &#8203;<!-- 11 -->Stabilize `CssVarsProvider` and `extendTheme` (#42246) @siriwatknp
22
+ - &#8203;<!-- 10 -->[Popper] Deprecate components and componentProps props for v6 (#42111) @ChronicusUA
23
+ - &#8203;<!-- 09 -->[responsiveFontSizes] Handled undefined variants (#42412) @brijeshb42
24
+ - &#8203;<!-- 08 -->[Slider] Fix wrong CSS value (#42370) @mnajdova
25
+ - &#8203;<!-- 07 -->[Tooltip] Deprecate components and componentProps props for v6 (#42107) @ChronicusUA
26
+
27
+ ### `@mui/system@6.0.0-alpha.9`
28
+
29
+ - &#8203;<!-- 34 -->[createStyled] Intercept `ownerState` coming from `props` and `ownerState` (#42358) @DiegoAndai
30
+
31
+ ### `@mui/codemod@6.0.0-alpha.9`
32
+
33
+ - &#8203;<!-- 41 -->Add `sx` prop for v6 migration (#42153) @siriwatknp
34
+ - &#8203;<!-- 40 -->Add codemod for removing system props (#42282) @siriwatknp
35
+
36
+ ### Docs
37
+
38
+ - &#8203;<!-- 33 -->Remove unused images (#42324) @danilo-leal
39
+ - &#8203;<!-- 32 -->Add Pigment CSS and Base UI logos SVGs (#42322) @danilo-leal
40
+ - &#8203;<!-- 22 -->[joy-ui] Fix template responsiveness (#42422) @j4marcos
41
+ - &#8203;<!-- 21 -->[material-ui] Add the Pashto locale (#42244) @sayoubiaf
42
+ - &#8203;<!-- 20 -->[material-ui] Remove duplicate Design Kits page (#42338) @danilo-leal
43
+ - &#8203;<!-- 19 -->[material-ui] Document callback to access theme in GlobalStyles (#42257) @aarongarciah
44
+ - &#8203;<!-- 18 -->[material-ui] Add minor modifications to the Vertical stepper demo (#42342) @mihilt
45
+ - &#8203;<!-- 17 -->[material-ui][Tabs] Improve the Basic Tabs demo (#42374) @MatheusEli
46
+ - &#8203;<!-- 16 -->[pigment-css] Polish redirection mention @oliviertassinari
47
+
48
+ ### Core
49
+
50
+ - &#8203;<!-- 47 -->[blog] Add fixes and clean ups to the Blog page (#42311) @danilo-leal
51
+ - &#8203;<!-- 46 -->[blog] Add the "Product" tag to the Pigment CSS post (#42365) @danilo-leal
52
+ - &#8203;<!-- 45 -->[code-infra] Simplify .stylelintrc.js @oliviertassinari
53
+ - &#8203;<!-- 44 -->[code-infra] Fix stylelint locally (#42411) @oliviertassinari
54
+ - &#8203;<!-- 43 -->[code-infra] Run corepack enable on all CI jobs (#42331) @Janpot
55
+ - &#8203;<!-- 42 -->[code-infra] Create examples eslint rule (#42170) @oliviertassinari
56
+ - &#8203;<!-- 39 -->[core] Apply React 19 type changes that don't require upcoming `@types/` packages (#42346) @DiegoAndai
57
+ - &#8203;<!-- 38 -->[core] Remove `react-swipeable-views-utils` package from docs (#42378) @ZeeshanTamboli
58
+ - &#8203;<!-- 37 -->[core] Update `@testing-library/react` and `@testing-library/dom` packages (#42349) @ZeeshanTamboli
59
+ - &#8203;<!-- 36 -->[core] Remove `@types/prettier` package (#42339) @ZeeshanTamboli
60
+ - &#8203;<!-- 35 -->[core] Remove `WyW-in-JS` from Renovate config (#42335) @ZeeshanTamboli
61
+ - &#8203;<!-- 31 -->[docs-infra] Split feedback channels per product (#42413) @alexfauquette
62
+ - &#8203;<!-- 30 -->[docs-infra] Avoid cryptic errors when tests don't exist (#42356) @Janpot
63
+ - &#8203;<!-- 29 -->[docs-infra] Make menu styles consistent (#42387) @danilo-leal
64
+ - &#8203;<!-- 28 -->[docs-infra] Display deprecation messages in API pages (#42352) @aarongarciah
65
+ - &#8203;<!-- 27 -->[docs-infra] Standardize API pages Alert styles (#42386) @danilo-leal
66
+ - &#8203;<!-- 26 -->[docs-infra] Fix Toolpad Core API links (#42362) @apedroferreira
67
+ - &#8203;<!-- 25 -->[docs-infra] Tigthen up the header design (#42180) @danilo-leal
68
+ - &#8203;<!-- 24 -->[docs-infra] Add Toolpad to muiNpmOrgs for codesandbox demos (#42316) @Janpot
69
+ - &#8203;<!-- 23 -->[docs-infra] Allow JSDoc tags (#42337) @aarongarciah
70
+ - &#8203;<!-- 06 -->[test] Remove `userAgent` override in `jsdom` env (#42344) @cherniavskii
71
+ - &#8203;<!-- 05 -->[utils] Fix GitHub-reported prototype pollution vulnerability in `deepmerge` (#41652) @tjcouch-sil
72
+ - &#8203;<!-- 04 -->[website] Add Nikita to the about page (#42418) @nikitaa24
73
+ - &#8203;<!-- 03 -->[website] Fix hero spacing changes applying at the wrong breakpoint (#42341) @KenanYusuf
74
+ - &#8203;<!-- 02 -->[website] Adds Kenan Yusuf to about page (#42317) @KenanYusuf
75
+ - &#8203;<!-- 01 -->[website] Improve about page @oliviertassinari
76
+
77
+ All contributors of this release in alphabetical order: @aarongarciah, @alexfauquette, @apedroferreira, @brijeshb42, @cherniavskii, @ChronicusUA, @danilo-leal, @DiegoAndai, @fedirjh, @j4marcos, @Janpot, @KenanYusuf, @lhilgert9, @lucasgmelo, @MatheusEli, @mihilt, @mnajdova, @nikitaa24, @oliviertassinari, @sayoubiaf, @siriwatknp, @tjcouch-sil, @ZeeshanTamboli
78
+
79
+ ## v6.0.0-alpha.8
80
+
81
+ <!-- generated comparing v6.0.0-alpha.7..next -->
82
+
83
+ _May 21, 2024_
84
+
85
+ A big thanks to the 7 contributors who made this release possible.
86
+ This release was mostly about 🐛 bug fixes and 📚 documentation improvements.
87
+
88
+ ### `@mui/material@6.0.0-alpha.7`
89
+
90
+ - &#8203;<!-- 04 -->[material-ui] Filter only valid theme palette for generating styles (#42147) @siriwatknp
91
+ - &#8203;<!-- 03 -->[material-ui] Remove UMD bundle (#42172) @ZeeshanTamboli
92
+ - &#8203;<!-- 02 -->[material-ui][TextField] Deprecate `*Props` props (#42062) @DiegoAndai
93
+
94
+ ### Docs
95
+
96
+ - &#8203;<!-- 08 -->[docs] Remove Base UI from the README (#42307) @danilo-leal
97
+ - &#8203;<!-- 07 -->[docs][material-ui] Fix typo in style interoperability with Tailwind CSS docs (#42279) @ZeeshanTamboli
98
+ - &#8203;<!-- 06 -->[docs][material-ui] Add supported browsers section to migration guide (#42194) @DiegoAndai
99
+ - &#8203;<!-- 05 -->[docs][material-ui][Pagination] Clarify pagination `page` prop API (#42220) @Mandar-Pandya
100
+
101
+ ### Core
102
+
103
+ - &#8203;<!-- 12 -->[blog] Update blog post OG image (#42270) @danilo-leal
104
+ - &#8203;<!-- 11 -->[blog] Update Pigment CSS post (#42266) @danilo-leal
105
+ - &#8203;<!-- 10 -->[docs] Remove LocalMonero (#42224) @oliviertassinari
106
+ - &#8203;<!-- 08 -->[docs-infra] Fix keyboard navigation on page tabs (#42152) @danilo-leal
107
+ - &#8203;<!-- 10 -->[code-infra] Remove raw-loader (#42275) @Janpot
108
+ - &#8203;<!-- 09 -->[core] Remove outdated Babel plugins (#42140) @ZeeshanTamboli
109
+ - &#8203;<!-- 12 -->[core] Fix a few more key spread issues (#42168) @oliviertassinari
110
+ - &#8203;<!-- 01 -->[website] Avoid duplicate simple vs. rich (#42100) @oliviertassinari
111
+
112
+ All contributors of this release in alphabetical order: @danilo-leal, @DiegoAndai, @Janpot, @Mandar-Pandya, @oliviertassinari, @siriwatknp, @ZeeshanTamboli
113
+
3
114
  ## v6.0.0-alpha.7
4
115
 
5
116
  <!-- generated comparing v6.0.0-alpha.6..next -->
@@ -53,7 +164,7 @@ All contributors of this release in alphabetical order: @aarongarciah, @alexfauq
53
164
 
54
165
  _May 8, 2024_
55
166
 
56
- A big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
167
+ A big thanks to the 10 contributors who made this release possible.
57
168
 
58
169
  ### `@mui/material@6.0.0-alpha.6`
59
170
 
@@ -101,7 +212,7 @@ All contributors of this release in alphabetical order: @aarongarciah, @danilo-l
101
212
 
102
213
  _May 1, 2024_
103
214
 
104
- A big thanks to the 9 contributors who made this release possible. Here are some highlights ✨:
215
+ A big thanks to the 9 contributors who made this release possible.
105
216
 
106
217
  ### `@mui/material@6.0.0-alpha.5`
107
218
 
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- type CalendarPickerComponent = (<TDate>(props: CalendarPickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
2
+ type CalendarPickerComponent = (<TDate>(props: CalendarPickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
3
3
  propTypes?: any;
4
4
  };
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- type CalendarPickerSkeletonComponent = ((props: CalendarPickerSkeletonProps & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
2
+ type CalendarPickerSkeletonComponent = ((props: CalendarPickerSkeletonProps & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
3
3
  propTypes?: any;
4
4
  };
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- type ClockPickerComponent = (<TDate>(props: ClockPickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
2
+ type ClockPickerComponent = (<TDate>(props: ClockPickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
3
3
  propTypes?: any;
4
4
  };
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- type DatePickerComponent = (<TDate>(props: DatePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
2
+ type DatePickerComponent = (<TDate>(props: DatePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
3
3
  propTypes?: any;
4
4
  };
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- type DateRangePickerComponent = (<TDate>(props: DateRangePickerProps & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
2
+ type DateRangePickerComponent = (<TDate>(props: DateRangePickerProps & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
3
3
  propTypes?: any;
4
4
  };
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- type DateRangePickerDayComponent = (<TDate>(props: DateRangePickerDayProps & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
2
+ type DateRangePickerDayComponent = (<TDate>(props: DateRangePickerDayProps & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
3
3
  propTypes?: any;
4
4
  };
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- type DateTimePickerComponent = (<TDate>(props: DateTimePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
2
+ type DateTimePickerComponent = (<TDate>(props: DateTimePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
3
3
  propTypes?: any;
4
4
  };
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- type DesktopDatePickerComponent = (<TDate>(props: DesktopDatePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
2
+ type DesktopDatePickerComponent = (<TDate>(props: DesktopDatePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
3
3
  propTypes?: any;
4
4
  };
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- type DesktopDateRangePickerComponent = (<TDate>(props: DesktopDateRangePickerProps & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
2
+ type DesktopDateRangePickerComponent = (<TDate>(props: DesktopDateRangePickerProps & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
3
3
  propTypes?: any;
4
4
  };
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- type DesktopDateTimePickerComponent = (<TDate>(props: DesktopDateTimePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
2
+ type DesktopDateTimePickerComponent = (<TDate>(props: DesktopDateTimePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
3
3
  propTypes?: any;
4
4
  };
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- type DesktopTimePickerComponent = (<TDate>(props: DesktopTimePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
2
+ type DesktopTimePickerComponent = (<TDate>(props: DesktopTimePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
3
3
  propTypes?: any;
4
4
  };
5
5
  /**
@@ -1,8 +1,5 @@
1
1
  'use client';
2
2
 
3
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
4
- import _extends from "@babel/runtime/helpers/esm/extends";
5
- const _excluded = ["children", "disabled", "id", "loading", "loadingIndicator", "loadingPosition", "variant"];
6
3
  import * as React from 'react';
7
4
  import PropTypes from 'prop-types';
8
5
  import { chainPropTypes } from '@mui/utils';
@@ -29,7 +26,11 @@ const useUtilityClasses = ownerState => {
29
26
  loadingIndicator: ['loadingIndicator', loading && `loadingIndicator${capitalize(loadingPosition)}`]
30
27
  };
31
28
  const composedClasses = composeClasses(slots, getLoadingButtonUtilityClass, classes);
32
- return _extends({}, classes, composedClasses);
29
+ return {
30
+ ...classes,
31
+ // forward the outlined, color, etc. classes to Button
32
+ ...composedClasses
33
+ };
33
34
  };
34
35
 
35
36
  // TODO use `import rootShouldForwardProp from '../styles/rootShouldForwardProp';` once move to core
@@ -192,44 +193,45 @@ const LoadingButton = /*#__PURE__*/React.forwardRef(function LoadingButton(inPro
192
193
  name: 'MuiLoadingButton'
193
194
  });
194
195
  const {
195
- children,
196
- disabled = false,
197
- id: idProp,
198
- loading = false,
199
- loadingIndicator: loadingIndicatorProp,
200
- loadingPosition = 'center',
201
- variant = 'text'
202
- } = props,
203
- other = _objectWithoutPropertiesLoose(props, _excluded);
196
+ children,
197
+ disabled = false,
198
+ id: idProp,
199
+ loading = false,
200
+ loadingIndicator: loadingIndicatorProp,
201
+ loadingPosition = 'center',
202
+ variant = 'text',
203
+ ...other
204
+ } = props;
204
205
  const id = useId(idProp);
205
206
  const loadingIndicator = loadingIndicatorProp ?? /*#__PURE__*/_jsx(CircularProgress, {
206
207
  "aria-labelledby": id,
207
208
  color: "inherit",
208
209
  size: 16
209
210
  });
210
- const ownerState = _extends({}, props, {
211
+ const ownerState = {
212
+ ...props,
211
213
  disabled,
212
214
  loading,
213
215
  loadingIndicator,
214
216
  loadingPosition,
215
217
  variant
216
- });
218
+ };
217
219
  const classes = useUtilityClasses(ownerState);
218
220
  const loadingButtonLoadingIndicator = loading ? /*#__PURE__*/_jsx(LoadingButtonLoadingIndicator, {
219
221
  className: classes.loadingIndicator,
220
222
  ownerState: ownerState,
221
223
  children: loadingIndicator
222
224
  }) : null;
223
- return /*#__PURE__*/_jsxs(LoadingButtonRoot, _extends({
225
+ return /*#__PURE__*/_jsxs(LoadingButtonRoot, {
224
226
  disabled: disabled || loading,
225
227
  id: id,
226
- ref: ref
227
- }, other, {
228
+ ref: ref,
229
+ ...other,
228
230
  variant: variant,
229
231
  classes: classes,
230
232
  ownerState: ownerState,
231
233
  children: [ownerState.loadingPosition === 'end' ? children : loadingButtonLoadingIndicator, ownerState.loadingPosition === 'end' ? loadingButtonLoadingIndicator : children]
232
- }));
234
+ });
233
235
  });
234
236
  process.env.NODE_ENV !== "production" ? LoadingButton.propTypes /* remove-proptypes */ = {
235
237
  // ┌────────────────────────────── Warning ──────────────────────────────┐
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- type LocalizationProviderComponent = ((props: LocalizationProviderProps & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
2
+ type LocalizationProviderComponent = ((props: LocalizationProviderProps & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
3
3
  propTypes?: any;
4
4
  };
5
5
  /**
@@ -1,8 +1,5 @@
1
1
  'use client';
2
2
 
3
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
4
- import _extends from "@babel/runtime/helpers/esm/extends";
5
- const _excluded = ["children", "className", "component", "columns", "spacing", "sequential", "defaultColumns", "defaultHeight", "defaultSpacing"];
6
3
  import { unstable_composeClasses as composeClasses } from '@mui/base';
7
4
  import * as ReactDOM from 'react-dom';
8
5
  import { styled, useThemeProps } from '@mui/material/styles';
@@ -57,11 +54,16 @@ export const getStyle = ({
57
54
  }
58
55
  stylesSSR.height = ownerState.defaultHeight;
59
56
  stylesSSR.margin = -(defaultSpacing / 2);
60
- stylesSSR['& > *'] = _extends({}, styles['& > *'], orderStyleSSR, {
57
+ stylesSSR['& > *'] = {
58
+ ...styles['& > *'],
59
+ ...orderStyleSSR,
61
60
  margin: defaultSpacing / 2,
62
61
  width: `calc(${(100 / ownerState.defaultColumns).toFixed(2)}% - ${defaultSpacing}px)`
63
- });
64
- return _extends({}, styles, stylesSSR);
62
+ };
63
+ return {
64
+ ...styles,
65
+ ...stylesSSR
66
+ };
65
67
  }
66
68
  const spacingValues = resolveBreakpointValues({
67
69
  values: ownerState.spacing,
@@ -77,14 +79,15 @@ export const getStyle = ({
77
79
  } else {
78
80
  spacing = propValue;
79
81
  }
80
- return _extends({
82
+ return {
81
83
  margin: `calc(0px - (${spacing} / 2))`,
82
84
  '& > *': {
83
85
  margin: `calc(${spacing} / 2)`
84
- }
85
- }, ownerState.maxColumnHeight && {
86
- height: typeof spacing === 'number' ? Math.ceil(ownerState.maxColumnHeight + parseToNumber(spacing)) : `calc(${ownerState.maxColumnHeight}px + ${spacing})`
87
- });
86
+ },
87
+ ...(ownerState.maxColumnHeight && {
88
+ height: typeof spacing === 'number' ? Math.ceil(ownerState.maxColumnHeight + parseToNumber(spacing)) : `calc(${ownerState.maxColumnHeight}px + ${spacing})`
89
+ })
90
+ };
88
91
  };
89
92
  styles = deepmerge(styles, handleBreakpoints({
90
93
  theme
@@ -142,22 +145,23 @@ const Masonry = /*#__PURE__*/React.forwardRef(function Masonry(inProps, ref) {
142
145
  name: 'MuiMasonry'
143
146
  });
144
147
  const {
145
- children,
146
- className,
147
- component = 'div',
148
- columns = 4,
149
- spacing = 1,
150
- sequential = false,
151
- defaultColumns,
152
- defaultHeight,
153
- defaultSpacing
154
- } = props,
155
- other = _objectWithoutPropertiesLoose(props, _excluded);
148
+ children,
149
+ className,
150
+ component = 'div',
151
+ columns = 4,
152
+ spacing = 1,
153
+ sequential = false,
154
+ defaultColumns,
155
+ defaultHeight,
156
+ defaultSpacing,
157
+ ...other
158
+ } = props;
156
159
  const masonryRef = React.useRef();
157
160
  const [maxColumnHeight, setMaxColumnHeight] = React.useState();
158
161
  const isSSR = !maxColumnHeight && defaultHeight && defaultColumns !== undefined && defaultSpacing !== undefined;
159
162
  const [numberOfLineBreaks, setNumberOfLineBreaks] = React.useState(isSSR ? defaultColumns - 1 : 0);
160
- const ownerState = _extends({}, props, {
163
+ const ownerState = {
164
+ ...props,
161
165
  spacing,
162
166
  columns,
163
167
  maxColumnHeight,
@@ -165,7 +169,7 @@ const Masonry = /*#__PURE__*/React.forwardRef(function Masonry(inProps, ref) {
165
169
  defaultHeight,
166
170
  defaultSpacing,
167
171
  isSSR
168
- });
172
+ };
169
173
  const classes = useUtilityClasses(ownerState);
170
174
  const handleResize = React.useCallback(masonryChildren => {
171
175
  if (!masonryRef.current || !masonryChildren || masonryChildren.length === 0) {
@@ -263,18 +267,19 @@ const Masonry = /*#__PURE__*/React.forwardRef(function Masonry(inProps, ref) {
263
267
  // a line break at the end of each column prevents columns from merging
264
268
  const lineBreaks = new Array(numberOfLineBreaks).fill('').map((_, index) => /*#__PURE__*/_jsx("span", {
265
269
  "data-class": "line-break",
266
- style: _extends({}, lineBreakStyle, {
270
+ style: {
271
+ ...lineBreakStyle,
267
272
  order: index + 1
268
- })
273
+ }
269
274
  }, index));
270
- return /*#__PURE__*/_jsxs(MasonryRoot, _extends({
275
+ return /*#__PURE__*/_jsxs(MasonryRoot, {
271
276
  as: component,
272
277
  className: clsx(classes.root, className),
273
278
  ref: handleRef,
274
- ownerState: ownerState
275
- }, other, {
279
+ ownerState: ownerState,
280
+ ...other,
276
281
  children: [children, lineBreaks]
277
- }));
282
+ });
278
283
  });
279
284
  process.env.NODE_ENV !== "production" ? Masonry.propTypes /* remove-proptypes */ = {
280
285
  // ┌────────────────────────────── Warning ──────────────────────────────┐
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- type MobileDatePickerComponent = (<TDate>(props: MobileDatePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
2
+ type MobileDatePickerComponent = (<TDate>(props: MobileDatePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
3
3
  propTypes?: any;
4
4
  };
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- type MobileDateRangePickerComponent = (<TDate>(props: MobileDateRangePickerProps & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
2
+ type MobileDateRangePickerComponent = (<TDate>(props: MobileDateRangePickerProps & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
3
3
  propTypes?: any;
4
4
  };
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- type MobileDateTimePickerComponent = (<TDate>(props: MobileDateTimePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
2
+ type MobileDateTimePickerComponent = (<TDate>(props: MobileDateTimePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
3
3
  propTypes?: any;
4
4
  };
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- type MobileTimePickerComponent = (<TDate>(props: MobileTimePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
2
+ type MobileTimePickerComponent = (<TDate>(props: MobileTimePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
3
3
  propTypes?: any;
4
4
  };
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- type MonthPickerComponent = (<TDate>(props: MonthPickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
2
+ type MonthPickerComponent = (<TDate>(props: MonthPickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
3
3
  propTypes?: any;
4
4
  };
5
5
  /**
@@ -1,6 +1,5 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
4
3
  import * as React from 'react';
5
4
  import Pagination from '@mui/material/Pagination';
6
5
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -14,7 +13,8 @@ export default /*#__PURE__*/React.forwardRef(function DeprecatedPagination(props
14
13
  console.warn(['MUI: The Pagination component was moved from the lab to the core.', '', "You should use `import { Pagination } from '@mui/material'`", "or `import Pagination from '@mui/material/Pagination'`"].join('\n'));
15
14
  warnedOnce = true;
16
15
  }
17
- return /*#__PURE__*/_jsx(Pagination, _extends({
18
- ref: ref
19
- }, props));
16
+ return /*#__PURE__*/_jsx(Pagination, {
17
+ ref: ref,
18
+ ...props
19
+ });
20
20
  });
@@ -1,6 +1,5 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
4
3
  import * as React from 'react';
5
4
  import PaginationItem from '@mui/material/PaginationItem';
6
5
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -14,7 +13,8 @@ export default /*#__PURE__*/React.forwardRef(function DeprecatedPaginationItem(p
14
13
  console.warn(['MUI: The PaginationItem component was moved from the lab to the core.', '', "You should use `import { PaginationItem } from '@mui/material'`", "or `import PaginationItem from '@mui/material/PaginationItem'`"].join('\n'));
15
14
  warnedOnce = true;
16
15
  }
17
- return /*#__PURE__*/_jsx(PaginationItem, _extends({
18
- ref: ref
19
- }, props));
16
+ return /*#__PURE__*/_jsx(PaginationItem, {
17
+ ref: ref,
18
+ ...props
19
+ });
20
20
  });
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- type PickersDayComponent = (<TDate>(props: PickersDayProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
2
+ type PickersDayComponent = (<TDate>(props: PickersDayProps<TDate> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
3
3
  propTypes?: any;
4
4
  };
5
5
  /**
package/Rating/Rating.js CHANGED
@@ -1,6 +1,5 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
4
3
  import * as React from 'react';
5
4
  import Rating from '@mui/material/Rating';
6
5
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -14,7 +13,8 @@ export default /*#__PURE__*/React.forwardRef(function DeprecatedRating(props, re
14
13
  console.warn(['MUI: The Rating component was moved from the lab to the core.', '', "You should use `import { Rating } from '@mui/material'`", "or `import Rating from '@mui/material/Rating'`"].join('\n'));
15
14
  warnedOnce = true;
16
15
  }
17
- return /*#__PURE__*/_jsx(Rating, _extends({
18
- ref: ref
19
- }, props));
16
+ return /*#__PURE__*/_jsx(Rating, {
17
+ ref: ref,
18
+ ...props
19
+ });
20
20
  });
@@ -1,6 +1,5 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
4
3
  import * as React from 'react';
5
4
  import Skeleton from '@mui/material/Skeleton';
6
5
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -14,7 +13,8 @@ export default /*#__PURE__*/React.forwardRef(function DeprecatedSkeleton(props,
14
13
  console.warn(['MUI: The Skeleton component was moved from the lab to the core.', '', "You should use `import { Skeleton } from '@mui/material'`", "or `import Skeleton from '@mui/material/Skeleton'`"].join('\n'));
15
14
  warnedOnce = true;
16
15
  }
17
- return /*#__PURE__*/_jsx(Skeleton, _extends({
18
- ref: ref
19
- }, props));
16
+ return /*#__PURE__*/_jsx(Skeleton, {
17
+ ref: ref,
18
+ ...props
19
+ });
20
20
  });