Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/upstream/master' into auto…
Browse files Browse the repository at this point in the history
…mation/add-closing-message
  • Loading branch information
michelengelen committed Aug 26, 2024
2 parents 8382256 + 129a3ef commit 0dde9b5
Show file tree
Hide file tree
Showing 25 changed files with 34 additions and 37 deletions.
3 changes: 0 additions & 3 deletions docs/.link-check-errors.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
Broken links found by `pnpm docs:link-check` that exist:

- https://mui.com/material-ui/customization/theme-components/#creating-new-component-variants
- https://mui.com/material-ui/customization/theme-components/#overrides-based-on-props
- https://mui.com/material-ui/react-grid2/#whats-changed
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ This guide will walk you through how to build this statistics component, which a

### 1. Create the component slots

Slots let you customize each individual element of the component by targeting its respective name in the [theme's styleOverrides](/material-ui/customization/theme-components/#theme-style-overrides) and [theme's variants](/material-ui/customization/theme-components/#creating-new-component-variants).
Slots let you customize each individual element of the component by targeting its respective name in the [theme's styleOverrides](/material-ui/customization/theme-components/#theme-style-overrides) and [theme's variants](/material-ui/customization/theme-components/#variants).

This statistics component is composed of three slots:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ The Grid v2 is marked as stable in Material UI v6, so the `Unstable_` prefix is
```

Alongside the stabilization, the API has been improved.
You can see the changes and further details on how to migrate in the [Material UI v6 upgrade guide](/material-ui/migration/upgrade-to-v6/).
You can see the changes and further details on how to migrate in the [Material UI v6 upgrade guide](/material-ui/migration/upgrade-to-v6/#grid2).

Finally, the original Grid component is deprecated and will be removed in the future, so we highly encourage you to migrate to Grid v2.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,7 @@ The props `alignItems`, `alignContent`, and `justifyContent`—along with their

These props are now considered part of MUI System, not the `Grid` component itself.

If you still wish to add overrides for them, you can use the [callback as a value in `styleOverrides`](/material-ui/customization/theme-components/#overrides-based-on-props).
If you still wish to add overrides for them, you can use the [callback as a value in `styleOverrides`](https://v5.mui.com/material-ui/customization/theme-components/#overrides-based-on-props).

```diff
const theme = createTheme({
Expand Down Expand Up @@ -775,7 +775,7 @@ If you need negative margins on all sides, we recommend using the new Grid v2 in
+ import Grid from '@mui/material/Grid2';
```

To learn more about the Grid v2, check out the [demos](/material-ui/react-grid2/#whats-changed) and the [Grid migration guide](/material-ui/migration/migration-grid-v2/).
To learn more about the Grid v2, check out the [demos](/material-ui/react-grid2/) and the [Grid migration guide](/material-ui/migration/migration-grid-v2/).

:::info
Grid v2 was introduced in Material UI v5.9.1 and features negative margins on all sides by default.
Expand Down Expand Up @@ -1862,7 +1862,7 @@ The following classes and style overrides keys were removed:

These props are now considered part of MUISystem rather than the `Typography` component itself.

If you still wish to add overrides for them, you can use the [callback as a value in `styleOverrides`](/material-ui/customization/theme-components/#overrides-based-on-props).
If you still wish to add overrides for them, you can use the [callback as a value in `styleOverrides`](https://v5.mui.com/material-ui/customization/theme-components/#overrides-based-on-props).

For example:

Expand Down
2 changes: 1 addition & 1 deletion docs/data/system/styled/styled.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ The utility can be used as a replacement for emotion's or styled-components' sty
It aims to solve the same problem, but also provides the following benefits:

1. It uses a default `theme` if no theme is available in React context.
2. It supports the theme's [`styleOverrides`](/material-ui/customization/theme-components/#theme-style-overrides) and [`variants`](/material-ui/customization/theme-components/#creating-new-component-variants) to be applied, based on the `name` applied in the options (can be skipped).
2. It supports the theme's [`styleOverrides`](/material-ui/customization/theme-components/#theme-style-overrides) and [`variants`](/material-ui/customization/theme-components/#variants) to be applied, based on the `name` applied in the options (can be skipped).
3. It adds support for the [the `sx` prop](/system/getting-started/the-sx-prop/) (can be skipped).
4. It adds by default the `shouldForwardProp` option (that can be overridden), taking into account: `ownerState`, `theme`, `sx`, and `as`.

Expand Down
2 changes: 1 addition & 1 deletion docs/pages/blog/mui-core-v5.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ declare module '@mui/material/Button' {

<p class="blog-description"><a href="https://codesandbox.io/p/sandbox/stupefied-mclaren-ho4zs?file=/src/App.tsx">CodeSandbox</a></p>

**Second**, you can add [custom variants](/material-ui/customization/theme-components/#creating-new-component-variants) to the theme, overriding the CSS for specific component prop combinations.
**Second**, you can add [custom variants](https://v5.mui.com/material-ui/customization/theme-components/#creating-new-component-variants) to the theme, overriding the CSS for specific component prop combinations.

```jsx
import { createTheme, Button } from '@mui/material';
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
"@mui/joy": "workspace:*",
"@mui/material": "workspace:^",
"@mui/utils": "workspace:^",
"@next/eslint-plugin-next": "^14.2.5",
"@next/eslint-plugin-next": "^14.2.6",
"@octokit/rest": "^21.0.2",
"@pigment-css/react": "0.0.20",
"@playwright/test": "1.46.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/mui-material/src/Accordion/Accordion.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export interface AccordionSlots {
* @default Collapse
*/
transition?: React.JSXElementConstructor<
TransitionProps & { children?: React.ReactElement<any, any> }
TransitionProps & { children?: React.ReactElement<unknown, any> }
>;
}

Expand Down Expand Up @@ -92,7 +92,7 @@ export type AccordionTypeMap<
* [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
*/
TransitionComponent?: React.JSXElementConstructor<
TransitionProps & { children?: React.ReactElement<any, any> }
TransitionProps & { children?: React.ReactElement<unknown, any> }
>;
/**
* Props applied to the transition element.
Expand Down
4 changes: 2 additions & 2 deletions packages/mui-material/src/Backdrop/Backdrop.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export interface BackdropSlots {
* @default Fade
*/
transition?: React.JSXElementConstructor<
TransitionProps & { children: React.ReactElement<any, any> }
TransitionProps & { children: React.ReactElement<unknown, any> }
>;
}
export interface BackdropComponentsPropsOverrides {}
Expand Down Expand Up @@ -100,7 +100,7 @@ export interface BackdropOwnProps
*/
TransitionComponent?: React.JSXElementConstructor<
TransitionProps & {
children: React.ReactElement<any, any>;
children: React.ReactElement<unknown, any>;
}
>;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-material/src/Dialog/Dialog.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export interface DialogProps extends StandardProps<ModalProps, 'children'> {
* @default Fade
*/
TransitionComponent?: React.JSXElementConstructor<
TransitionProps & { children: React.ReactElement<any, any> }
TransitionProps & { children: React.ReactElement<unknown, any> }
>;
/**
* The duration for the transition, in milliseconds.
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-material/src/Fade/Fade.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export interface FadeProps extends Omit<TransitionProps, 'children'> {
/**
* A single child content element.
*/
children: React.ReactElement<any, any>;
children: React.ReactElement<unknown, any>;
/**
* The transition timing function.
* You may specify a single easing or a object containing enter and exit values.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export interface FormControlLabelProps
/**
* A control element. For instance, it can be a `Radio`, a `Switch` or a `Checkbox`.
*/
control: React.ReactElement<any, any>;
control: React.ReactElement<unknown, any>;
/**
* If `true`, the control is disabled.
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-material/src/Grow/Grow.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export interface GrowProps extends Omit<TransitionProps, 'timeout'> {
/**
* A single child content element.
*/
children: React.ReactElement<any, any>;
children: React.ReactElement<unknown, any>;
/**
* The transition timing function.
* You may specify a single easing or a object containing enter and exit values.
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-material/src/NativeSelect/NativeSelect.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export interface NativeSelectProps
* An `Input` element; does not have to be a material-ui specific `Input`.
* @default <Input />
*/
input?: React.ReactElement<any, any>;
input?: React.ReactElement<unknown, any>;
/**
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select#attributes) applied to the `select` element.
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-material/src/Popover/Popover.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export interface PopoverProps
* @default Grow
*/
TransitionComponent?: React.JSXElementConstructor<
TransitionProps & { children: React.ReactElement<any, any> }
TransitionProps & { children: React.ReactElement<unknown, any> }
>;
/**
* Set to 'auto' to automatically calculate transition time based on height.
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-material/src/Select/Select.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export interface BaseSelectProps<Value = unknown>
/**
* An `Input` element; does not have to be a material-ui specific `Input`.
*/
input?: React.ReactElement<any, any>;
input?: React.ReactElement<unknown, any>;
/**
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
* When `native` is `true`, the attributes are applied on the `select` element.
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-material/src/Slide/Slide.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export interface SlideProps extends TransitionProps {
/**
* A single child content element.
*/
children: React.ReactElement<any, any>;
children: React.ReactElement<unknown, any>;
/**
* An HTML element, or a function that returns one.
* It's used to set the container the Slide is transitioning from.
Expand Down
4 changes: 2 additions & 2 deletions packages/mui-material/src/Snackbar/Snackbar.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export interface SnackbarProps extends StandardProps<React.HTMLAttributes<HTMLDi
/**
* Replace the `SnackbarContent` component.
*/
children?: React.ReactElement<any, any>;
children?: React.ReactElement<unknown, any>;
/**
* Override or extend the styles applied to the component.
*/
Expand Down Expand Up @@ -98,7 +98,7 @@ export interface SnackbarProps extends StandardProps<React.HTMLAttributes<HTMLDi
* @default Grow
*/
TransitionComponent?: React.JSXElementConstructor<
TransitionProps & { children: React.ReactElement<any, any> }
TransitionProps & { children: React.ReactElement<unknown, any> }
>;
/**
* The duration for the transition, in milliseconds.
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-material/src/SpeedDial/SpeedDial.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export interface SpeedDialSlots {
* @default {}
*/
transition?: React.JSXElementConstructor<
TransitionProps & { children: React.ReactElement<any, any> }
TransitionProps & { children: React.ReactElement<unknown, any> }
>;
}

Expand Down
2 changes: 1 addition & 1 deletion packages/mui-material/src/StepContent/StepContent.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export interface StepContentProps extends StandardProps<React.HTMLAttributes<HTM
* @default Collapse
*/
TransitionComponent?: React.JSXElementConstructor<
TransitionProps & { children: React.ReactElement<any, any> }
TransitionProps & { children: React.ReactElement<unknown, any> }
>;
/**
* Adjust the duration of the content expand transition.
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-material/src/Stepper/Stepper.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export interface StepperOwnProps extends Pick<PaperProps, 'elevation' | 'square'
* An element to be placed between each step.
* @default <StepConnector />
*/
connector?: React.ReactElement<any, any> | null;
connector?: React.ReactElement<unknown, any> | null;
/**
* If set the `Stepper` will not assist in controlling steps for linear flow.
* @default false
Expand Down
4 changes: 2 additions & 2 deletions packages/mui-material/src/Tooltip/Tooltip.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export interface TooltipProps extends StandardProps<React.HTMLAttributes<HTMLDiv
/**
* Tooltip reference element.
*/
children: React.ReactElement<any, any>;
children: React.ReactElement<unknown, any>;
/**
* Override or extend the styles applied to the component.
*/
Expand Down Expand Up @@ -204,7 +204,7 @@ export interface TooltipProps extends StandardProps<React.HTMLAttributes<HTMLDiv
* @default Grow
*/
TransitionComponent?: React.JSXElementConstructor<
TransitionProps & { children: React.ReactElement<any, any> }
TransitionProps & { children: React.ReactElement<unknown, any> }
>;
/**
* Props applied to the transition element.
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-material/src/Zoom/Zoom.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export interface ZoomProps extends TransitionProps {
/**
* A single child content element.
*/
children: React.ReactElement<any, any>;
children: React.ReactElement<unknown, any>;
/**
* The transition timing function.
* You may specify a single easing or a object containing enter and exit values.
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion scripts/releaseChangelog.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ yargs(process.argv.slice(2))
})
.option('release', {
// #default-branch-switch
default: 'next',
default: 'master',
describe: 'Ref which we want to release',
type: 'string',
})
Expand Down

0 comments on commit 0dde9b5

Please sign in to comment.