Grid2 now uses React.cloneElement instead of React context for passing the spacing and columns to the next container. The change is close to how CSS flexbox behaves.
​[base] Refactor the compound components building blocks (#36400) @michaldudak
Components affected by the changes are:
Menu
MenuUnstyledContext is replaced by MenuProvider. The value to pass to the provider is returned by the useMenu hook.
MenuUnstyled's onClose prop is replaced by onOpenChange. It has the open parameter and is called when a menu is opened or closed
Select
SelectUnstyledContext is replaced by SelectProvider. The value to pass to the provider is returned by the useSelect hook.
SelectUnstyled's popup is permanently mounted.
The defaultOpen prop was added to the SelectUnstyled. The open/close state can now be controlled or uncontrolled, as a value.
Tabs
TabsContext is replaced by TabsProvider. The value to pass to the provider is returned by the useTabs hook.
To deselect all tabs, pass in null to Tabs' value prop, instead of false. This is consistent with how Select works.
The value prop is still technically not mandatory on TabUnstyled and TabPanel, but when omitted, the contents of the selected tab panel will not be rendered during SSR.
@mui/joy@5.0.0-alpha.76
​[Table][Joy] Replace uses of css selector *-child to *-of-type (#36839) @keyvanm
Grid2 now uses React.cloneElement instead of React context for passing the spacing and columns to the next container. The change is close to how CSS flexbox behaves.
​[base] Refactor the compound components building blocks (#36400) @michaldudak
Components affected by the changes are:
Menu
MenuUnstyledContext is replaced by MenuProvider. The value to pass to the provider is returned by the useMenu hook.
MenuUnstyled's onClose prop is replaced by onOpenChange. It has the open parameter and is called when a menu is opened or closed
Select
SelectUnstyledContext is replaced by SelectProvider. The value to pass to the provider is returned by the useSelect hook.
SelectUnstyled's popup is permanently mounted.
The defaultOpen prop was added to the SelectUnstyled. The open/close state can now be controlled or uncontrolled, as a value.
Tabs
TabsContext is replaced by TabsProvider. The value to pass to the provider is returned by the useTabs hook.
To deselect all tabs, pass in null to Tabs' value prop, instead of false. This is consistent with how Select works.
The value prop is still technically not mandatory on TabUnstyled and TabPanel, but when omitted, the contents of the selected tab panel will not be rendered during SSR.
@mui/joy@5.0.0-alpha.76
​[Table][Joy] Replace uses of css selector *-child to *-of-type (#36839) @keyvanm
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps @mui/material from 5.12.0 to 5.12.1.
Release notes
Sourced from
@mui/material
's releases.... (truncated)
Changelog
Sourced from
@mui/material
's changelog.... (truncated)
Commits
d14d288
[release] v5.12.1 (#36915)1bedbbc
[Button] Fix contained with inherit prop not adapting on dark mode (#34508)fe7ac37
[ThemeProvider] Fix theme proptypes (#36852)0046053
[docs] Sync <Stack> between projects (#36785)5853e6a
[Autocomplete] Fix autocomplete left padding (#36649)7239a54
[FormControlLabel] Addrequired
prop (#34207)7fd18fe
[Tabs] Fix null reference in ScrollbarSize after unmounting (#36485)4109ca1
[TextField] Fix type error when usinginputTypeSearch
class foroutlined
...Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)