-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into ui-adjust-scrollbar-in-stickyheader-table-…
…component
- Loading branch information
Showing
43 changed files
with
285 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,47 @@ | ||
# [Versions](https://mui.com/versions/) | ||
|
||
## 6.4.1 | ||
|
||
<!-- generated comparing v6.4.0..master --> | ||
|
||
_Jan 21, 2025_ | ||
|
||
A big thanks to the 9 contributors who made this release possible. | ||
|
||
### `@mui/[email protected]` | ||
|
||
- [ButtonBase] Export types used in ButtonBase props (#43530) @Janpot | ||
- [Dialog] Add slots and slotProps (#44792) @sai6855 | ||
- [Drawer] Deprecate composed classes (#44870) @yash49 | ||
- [IconButton] Set default loading to `null` (#45057) @siriwatknp | ||
- [ListItem] Add codemod for deprecated props (#45022) @sai6855 | ||
- [Modal] Add migration guide and codemod for deprecated props (#45021) @sai6855 | ||
- [TextField] Fix filled state to be synced with autofill (#44135) @DiegoAndai | ||
|
||
### `@mui/[email protected]` | ||
|
||
- Fix dark mode flicker using `useEnhancedEffect` (#44812) @siriwatknp | ||
|
||
### `@mui/[email protected]` | ||
|
||
- Do not deep merge React component (#45058) @siriwatknp | ||
|
||
### Docs | ||
|
||
- Fix typo (#45070) @Fullchee | ||
- Improve Toolpad templates section (#44914) @bharatkashyap | ||
- Fix expand / collapse icons orientation (#44989) @zanivan | ||
- Rename "Base UI" to "MUI Base" in all text (#45060) @mj12albert | ||
- Add @mui/base deprecation callout (#45030) @mj12albert | ||
- Update @mui/base deprecation message (#45064) @mj12albert | ||
|
||
### Core | ||
|
||
- [code-infra] Add "use client" directive to files with React APIs (#45036) @Janpot | ||
- [docs] 301 redirect `/base-ui` to `base-ui.com` (#45061) @mj12albert | ||
|
||
All contributors of this release in alphabetical order: @bharatkashyap, @DiegoAndai, @Fullchee, @Janpot, @mj12albert, @sai6855, @siriwatknp, @yash49, @zanivan | ||
|
||
## 6.4.0 | ||
|
||
<!-- generated comparing v6.3.1..master --> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
packages/eslint-plugin-material-ui/src/rules/disallow-react-api-in-server-components.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
module.exports = { | ||
create(context) { | ||
let hasUseClientDirective = false; | ||
const apis = new Set([ | ||
'useState', | ||
'useEffect', | ||
'useLayoutEffect', | ||
'useReducer', | ||
'useTransition', | ||
'createContext', | ||
]); | ||
return { | ||
Program(node) { | ||
hasUseClientDirective = node.body.some( | ||
(statement) => | ||
statement.type === 'ExpressionStatement' && | ||
statement.expression.type === 'Literal' && | ||
statement.expression.value === 'use client', | ||
); | ||
}, | ||
CallExpression(node) { | ||
if ( | ||
!hasUseClientDirective && | ||
node.callee.type === 'MemberExpression' && | ||
node.callee.object.name === 'React' && | ||
apis.has(node.callee.property.name) | ||
) { | ||
context.report({ | ||
node, | ||
message: `Using 'React.${node.callee.property.name}' is forbidden if the file doesn't have a 'use client' directive.`, | ||
fix(fixer) { | ||
const sourceCode = context.getSourceCode(); | ||
if ( | ||
sourceCode.text.includes('"use server"') || | ||
sourceCode.text.includes("'use server'") | ||
) { | ||
return null; | ||
} | ||
|
||
const firstToken = sourceCode.ast.body[0]; | ||
return fixer.insertTextBefore(firstToken, "'use client';\n"); | ||
}, | ||
}); | ||
} | ||
}, | ||
}; | ||
}, | ||
meta: { | ||
fixable: 'code', | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
'use client'; | ||
import * as React from 'react'; | ||
|
||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
packages/mui-material/src/ButtonGroup/ButtonGroupButtonContext.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
'use client'; | ||
import * as React from 'react'; | ||
|
||
type ButtonPositionClassName = string; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
'use client'; | ||
import * as React from 'react'; | ||
import type { ButtonGroupProps } from './ButtonGroup'; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
'use client'; | ||
import * as React from 'react'; | ||
|
||
interface DialogContextValue { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
'use client'; | ||
import * as React from 'react'; | ||
import type { FormControlProps } from './FormControl'; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
'use client'; | ||
import * as React from 'react'; | ||
|
||
export interface RadioGroupContextValue { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
'use client'; | ||
import * as React from 'react'; | ||
|
||
export interface StepContextType { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
'use client'; | ||
import * as React from 'react'; | ||
|
||
export interface StepperContextType { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
'use client'; | ||
import * as React from 'react'; | ||
|
||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.