Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/mui/material-ui into util…
Browse files Browse the repository at this point in the history
…s/merge-props
  • Loading branch information
siriwatknp committed Jan 2, 2025
2 parents c8c8a8e + 020514f commit 9dde1e3
Show file tree
Hide file tree
Showing 149 changed files with 2,645 additions and 1,596 deletions.
9 changes: 6 additions & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,13 @@ const NO_RESTRICTED_IMPORTS_PATTERNS_DEEPLY_NESTED = [
group: [
'@mui/*/*/*',
'@pigment-css/*/*/*',
'@base_ui/*/*/*',
'@base-ui/*/*/*',
// Allow any import depth with any internal packages
'!@mui/internal-*/**',
// TODO delete, @mui/docs should be @mui/internal-docs
'!@mui/docs/**',
// TODO delete
'@base-ui-components/*/*/*', // Wait for migration to @base-ui/
'@base_ui/*/*/*', // Legacy, moved to @base-ui-components/
'!@mui/docs/**', // @mui/docs should be @mui/internal-docs
],
message: OneLevelImportMessage,
},
Expand Down Expand Up @@ -541,6 +543,7 @@ module.exports = /** @type {Config} */ ({
'import/order': 'off',
// Reset the default until https://github.com/jsx-eslint/eslint-plugin-react/issues/3672 is fixed.
'react/jsx-no-target-blank': ['error', { allowReferrer: false }],
'react/prop-types': 'off',
},
},
{
Expand Down
41 changes: 41 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,46 @@
# [Versions](https://mui.com/versions/)

## 6.3.0

<!-- generated comparing v6.2.1..master -->

_Dec 23, 2024_

A big thanks to the 11 contributors who made this release possible. Here are some highlights ✨:

- Fix invalid HTML structure in the Accordion component (#44408) @ZeeshanTamboli
The HTML elements of the Accordion summary have been updated:
- the root element is now button (previously div).
- summary content and the icon wrapper are now span (previously div).
This will only impact you if you used the HTML element as selectors in your styles.

### `@mui/material@6.3.0`

- [Accordion] Fix invalid HTML inside heading (#44408) @ZeeshanTamboli
- [useAutocomplete] Improve TS typing of `groupedOptions` prop (#44657) @lewxdev
- Prevent `ownerState` propagation for transition slots (#44401) @ZeeshanTamboli
- [StepContent] Add slots and slotProps (#44742) @sai6855
- [TablePagination] Add the rest of `slots` and `slotProps`. (#44570) @siriwatknp

### `@mui/system@6.3.0`

- Set `before` directly without using prepend for global styles (#44648) @siriwatknp

### Docs

- [material-ui] Improve `theme.applyStyles()` docs (#44658) @DiegoAndai
- [material-ui] Update MD callout (#43958) @aarongarciah

### Core

- Remove unnecessary conditional around `.muiName =` (#44071) @Janpot
- [blog] Material UI: 2024 EOY updates blog post (#44722) @alelthomas
- Fix quickstart command in pigment docs (#44806) @yash49
- [docs-infra] Remove Next.js production profiler (#44823) @romgrk
- [docs-infra] Remove no longer support `optimizeFonts` Next.js option (#44802) @LukasTy

All contributors of this release in alphabetical order: @aarongarciah, @alelthomas, @DiegoAndai, @Janpot, @lewxdev, @LukasTy, @romgrk, @sai6855, @siriwatknp, @yash49, @ZeeshanTamboli

## 6.2.1

<!-- generated comparing v6.2.0..master -->
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.old.md
Original file line number Diff line number Diff line change
Expand Up @@ -3070,7 +3070,7 @@ A big thanks to the 25 contributors who made this release possible. Here are som
- [docs-infra] Simplify product id handling (#37593) @oliviertassinari
- [changelog] Add missing release date for v5.13.5 @oliviertassinari
- [examples] Shell command fix in the readme file of material-next-ts example (#37675) @bablukpik
- [examples] Next.js v13 app router with Material UI (#37315) @smo043
- [examples] Next.js v13 App Router with Material UI (#37315) @smo043

### Core

Expand Down
4 changes: 2 additions & 2 deletions apps/pigment-css-next-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
"react-dom": "^19.0.0"
},
"devDependencies": {
"@pigment-css/nextjs-plugin": "0.0.28",
"@pigment-css/nextjs-plugin": "0.0.29",
"@types/node": "^20.17.10",
"@types/react": "^19.0.1",
"@types/react": "^19.0.2",
"@types/react-dom": "^19.0.2",
"eslint": "^8.57.1",
"typescript": "^5.7.2"
Expand Down
8 changes: 4 additions & 4 deletions apps/pigment-css-vite-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-error-boundary": "^4.1.2",
"react-router-dom": "^6.28.0",
"react-router-dom": "^6.28.1",
"webfontloader": "^1.6.28"
},
"devDependencies": {
"@babel/preset-react": "^7.25.9",
"@babel/preset-react": "^7.26.3",
"@babel/preset-typescript": "^7.26.0",
"@pigment-css/vite-plugin": "0.0.28",
"@types/react": "^19.0.1",
"@pigment-css/vite-plugin": "0.0.29",
"@types/react": "^19.0.2",
"@types/react-dom": "^19.0.2",
"@types/webfontloader": "^1.6.38",
"@vitejs/plugin-react": "^4.3.4",
Expand Down
3 changes: 2 additions & 1 deletion docs/data/about/teamMembers.json
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,8 @@
"title": "Talent & Culture Partner",
"location": "Novi Sad, Serbia",
"locationCountry": "rs",
"about": "🧠 Psychology geek, 🏂 amateur snowboarder, and 𐃡 pottery enthusiast."
"about": "🧠 Psychology geek, 🏂 amateur snowboarder, and 𐃡 pottery enthusiast.",
"github": "nadjakovacev"
},
{
"name": "James Nelson",
Expand Down
1 change: 1 addition & 0 deletions docs/data/base/components/modal/SpringModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ const Fade = React.forwardRef(function Fade(props, ref) {
});

return (
// @ts-expect-error https://github.com/pmndrs/react-spring/issues/2341
<animated.div ref={ref} style={style} {...other}>
{children}
</animated.div>
Expand Down
1 change: 1 addition & 0 deletions docs/data/base/components/modal/SpringModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ const Fade = React.forwardRef<HTMLDivElement, FadeProps>(function Fade(props, re
});

return (
// @ts-expect-error https://github.com/pmndrs/react-spring/issues/2341
<animated.div ref={ref} style={style} {...other}>
{children}
</animated.div>
Expand Down
1 change: 1 addition & 0 deletions docs/data/base/components/transitions/ReactSpring.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ function ReactSpringTransition({ children }) {
}
}, [requestedEnter, api, onExited]);

// @ts-expect-error https://github.com/pmndrs/react-spring/issues/2341
return <animated.div style={springs}>{children}</animated.div>;
}

Expand Down
1 change: 1 addition & 0 deletions docs/data/base/components/transitions/ReactSpring.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,5 +139,6 @@ function ReactSpringTransition({ children }: React.PropsWithChildren<{}>) {
}
}, [requestedEnter, api, onExited]);

// @ts-expect-error https://github.com/pmndrs/react-spring/issues/2341
return <animated.div style={springs}>{children}</animated.div>;
}
2 changes: 1 addition & 1 deletion docs/data/joy/customization/dark-mode/dark-mode.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export default class MyDocument extends Document {

### Next.js App Router

To use the Joy UI API with a Next.js project with the App Router, add the following code to the [root layout](https://nextjs.org/docs/app/building-your-application/routing/layouts-and-templates#root-layout-required) file in order to prevent flickering:
To use the Joy UI API with a Next.js project with the App Router, add the following code to the [root layout](https://nextjs.org/docs/app/api-reference/file-conventions/layout#root-layouts) file in order to prevent flickering:

```jsx title="app/layout.js"
import InitColorSchemeScript from '@mui/joy/InitColorSchemeScript';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default function AccordionExpandDefault() {
aria-controls="panel1-content"
id="panel1-header"
>
<Typography>Expanded by default</Typography>
<Typography component="span">Expanded by default</Typography>
</AccordionSummary>
<AccordionDetails>
<Typography>
Expand All @@ -29,7 +29,7 @@ export default function AccordionExpandDefault() {
aria-controls="panel2-content"
id="panel2-header"
>
<Typography>Header</Typography>
<Typography component="span">Header</Typography>
</AccordionSummary>
<AccordionDetails>
<Typography>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default function AccordionExpandDefault() {
aria-controls="panel1-content"
id="panel1-header"
>
<Typography>Expanded by default</Typography>
<Typography component="span">Expanded by default</Typography>
</AccordionSummary>
<AccordionDetails>
<Typography>
Expand All @@ -29,7 +29,7 @@ export default function AccordionExpandDefault() {
aria-controls="panel2-content"
id="panel2-header"
>
<Typography>Header</Typography>
<Typography component="span">Header</Typography>
</AccordionSummary>
<AccordionDetails>
<Typography>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default function AccordionExpandIcon() {
aria-controls="panel1-content"
id="panel1-header"
>
<Typography>Accordion 1</Typography>
<Typography component="span">Accordion 1</Typography>
</AccordionSummary>
<AccordionDetails>
<Typography>
Expand All @@ -30,7 +30,7 @@ export default function AccordionExpandIcon() {
aria-controls="panel2-content"
id="panel2-header"
>
<Typography>Accordion 2</Typography>
<Typography component="span">Accordion 2</Typography>
</AccordionSummary>
<AccordionDetails>
<Typography>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default function AccordionExpandIcon() {
aria-controls="panel1-content"
id="panel1-header"
>
<Typography>Accordion 1</Typography>
<Typography component="span">Accordion 1</Typography>
</AccordionSummary>
<AccordionDetails>
<Typography>
Expand All @@ -30,7 +30,7 @@ export default function AccordionExpandIcon() {
aria-controls="panel2-content"
id="panel2-header"
>
<Typography>Accordion 2</Typography>
<Typography component="span">Accordion 2</Typography>
</AccordionSummary>
<AccordionDetails>
<Typography>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default function AccordionTransition() {
aria-controls="panel1-content"
id="panel1-header"
>
<Typography>Custom transition using Fade</Typography>
<Typography component="span">Custom transition using Fade</Typography>
</AccordionSummary>
<AccordionDetails>
<Typography>
Expand All @@ -62,7 +62,7 @@ export default function AccordionTransition() {
aria-controls="panel2-content"
id="panel2-header"
>
<Typography>Default transition using Collapse</Typography>
<Typography component="span">Default transition using Collapse</Typography>
</AccordionSummary>
<AccordionDetails>
<Typography>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export default function AccordionTransition() {
aria-controls="panel1-content"
id="panel1-header"
>
<Typography>Custom transition using Fade</Typography>
<Typography component="span">Custom transition using Fade</Typography>
</AccordionSummary>
<AccordionDetails>
<Typography>
Expand All @@ -65,7 +65,7 @@ export default function AccordionTransition() {
aria-controls="panel2-content"
id="panel2-header"
>
<Typography>Default transition using Collapse</Typography>
<Typography component="span">Default transition using Collapse</Typography>
</AccordionSummary>
<AccordionDetails>
<Typography>
Expand Down
7 changes: 4 additions & 3 deletions docs/data/material/components/accordion/AccordionUsage.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import Accordion from '@mui/material/Accordion';
import AccordionActions from '@mui/material/AccordionActions';
import AccordionSummary from '@mui/material/AccordionSummary';
import AccordionDetails from '@mui/material/AccordionDetails';
import Typography from '@mui/material/Typography';
import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
import Button from '@mui/material/Button';

Expand All @@ -15,7 +16,7 @@ export default function AccordionUsage() {
aria-controls="panel1-content"
id="panel1-header"
>
Accordion 1
<Typography component="span">Accordion 1</Typography>
</AccordionSummary>
<AccordionDetails>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse
Expand All @@ -28,7 +29,7 @@ export default function AccordionUsage() {
aria-controls="panel2-content"
id="panel2-header"
>
Accordion 2
<Typography component="span">Accordion 2</Typography>
</AccordionSummary>
<AccordionDetails>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse
Expand All @@ -41,7 +42,7 @@ export default function AccordionUsage() {
aria-controls="panel3-content"
id="panel3-header"
>
Accordion Actions
<Typography component="span">Accordion Actions</Typography>
</AccordionSummary>
<AccordionDetails>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse
Expand Down
7 changes: 4 additions & 3 deletions docs/data/material/components/accordion/AccordionUsage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import Accordion from '@mui/material/Accordion';
import AccordionActions from '@mui/material/AccordionActions';
import AccordionSummary from '@mui/material/AccordionSummary';
import AccordionDetails from '@mui/material/AccordionDetails';
import Typography from '@mui/material/Typography';
import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
import Button from '@mui/material/Button';

Expand All @@ -15,7 +16,7 @@ export default function AccordionUsage() {
aria-controls="panel1-content"
id="panel1-header"
>
Accordion 1
<Typography component="span">Accordion 1</Typography>
</AccordionSummary>
<AccordionDetails>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse
Expand All @@ -28,7 +29,7 @@ export default function AccordionUsage() {
aria-controls="panel2-content"
id="panel2-header"
>
Accordion 2
<Typography component="span">Accordion 2</Typography>
</AccordionSummary>
<AccordionDetails>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse
Expand All @@ -41,7 +42,7 @@ export default function AccordionUsage() {
aria-controls="panel3-content"
id="panel3-header"
>
Accordion Actions
<Typography component="span">Accordion Actions</Typography>
</AccordionSummary>
<AccordionDetails>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse
Expand Down
20 changes: 13 additions & 7 deletions docs/data/material/components/accordion/ControlledAccordions.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@ export default function ControlledAccordions() {
aria-controls="panel1bh-content"
id="panel1bh-header"
>
<Typography sx={{ width: '33%', flexShrink: 0 }}>
<Typography component="span" sx={{ width: '33%', flexShrink: 0 }}>
General settings
</Typography>
<Typography sx={{ color: 'text.secondary' }}>I am an accordion</Typography>
<Typography component="span" sx={{ color: 'text.secondary' }}>
I am an accordion
</Typography>
</AccordionSummary>
<AccordionDetails>
<Typography>
Expand All @@ -38,8 +40,10 @@ export default function ControlledAccordions() {
aria-controls="panel2bh-content"
id="panel2bh-header"
>
<Typography sx={{ width: '33%', flexShrink: 0 }}>Users</Typography>
<Typography sx={{ color: 'text.secondary' }}>
<Typography component="span" sx={{ width: '33%', flexShrink: 0 }}>
Users
</Typography>
<Typography component="span" sx={{ color: 'text.secondary' }}>
You are currently not an owner
</Typography>
</AccordionSummary>
Expand All @@ -57,10 +61,10 @@ export default function ControlledAccordions() {
aria-controls="panel3bh-content"
id="panel3bh-header"
>
<Typography sx={{ width: '33%', flexShrink: 0 }}>
<Typography component="span" sx={{ width: '33%', flexShrink: 0 }}>
Advanced settings
</Typography>
<Typography sx={{ color: 'text.secondary' }}>
<Typography component="span" sx={{ color: 'text.secondary' }}>
Filtering has been entirely disabled for whole web server
</Typography>
</AccordionSummary>
Expand All @@ -77,7 +81,9 @@ export default function ControlledAccordions() {
aria-controls="panel4bh-content"
id="panel4bh-header"
>
<Typography sx={{ width: '33%', flexShrink: 0 }}>Personal data</Typography>
<Typography component="span" sx={{ width: '33%', flexShrink: 0 }}>
Personal data
</Typography>
</AccordionSummary>
<AccordionDetails>
<Typography>
Expand Down
Loading

0 comments on commit 9dde1e3

Please sign in to comment.