diff --git a/CHANGELOG.md b/CHANGELOG.md index a5cabde32be030..95ada176700a2f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,57 @@ # [Versions](https://mui.com/versions/) +## 5.11.15 + + + +_Mar 28, 2023_ + +A big thanks to the 10 contributors who made this release possible. We have one big highlight this week ✨: + +- @siriwatknp made a [Theme Builder](https://mui.com/joy-ui/customization/theme-builder) for Joy UI 🎨 (#35741) + +### `@mui/material@5.11.15` + +- [Chip] Fix error when theme value is a CSS variable (#36654) @siriwatknp +- [Grid2] Support dynamic nested columns (#36401) @siriwatknp + +### `@mui/system@5.11.15` + +- [system] Enable regressions tests & fix regressions (#36611) @mnajdova +- [Stack] Add `useFlexGap` prop (#36404) @siriwatknp + +### `@mui/base@5.0.0-alpha.122` + +- [Autocomplete] Update `autoSelect` prop description (#36280) @sai6855 +- [TablePagination][base] Improve `actions` type in `slotProps` (#36458) @sai6855 +- [Base] Add JSDoc comments for classes of Base components (#36586) @hbjORbj +- [useSlider][base] Add API docs for the hook parameters and return type (#36576) @varunmulay22 + +### `@mui/joy@5.0.0-alpha.73` + +- [Joy] Miscellaneous fixes (#36628) @siriwatknp +- [Joy] Add palette customizer (#35741) @siriwatknp + +### Docs + +- Revert "[docs] Use `theme.applyDarkStyles` for the rest of the docs" (#36602) @mnajdova +- [blog] Improvements on v6 announcement blog (#36505) @joserodolfofreitas +- [docs] Add `Snackbar` coming soon page (#36604) @danilo-leal +- [docs] Add accordion coming soon page (#36279) @siriwatknp +- [docs] Fix palette customizer theme augmentation (#36629) @siriwatknp +- [docs] Finish migration away from https://reactjs.org/ @oliviertassinari +- [docs] Remove duplicated slot descriptions (#36621) @hbjORbj +- [docs] Fix broken example link (#36607) @mnajdova +- [docs] Use `theme.applyDarkStyles` (#36606) @siriwatknp +- [docs] Improve API for theme default prop (#36490) @oliviertassinari +- [docs][Table] Refactor `Sorting & Selecting` table demo (#33236) @IFaniry + +### Core + +- [core] Use Netlify function for feedback management (#36472) @alexfauquette + +All contributors of this release in alphabetical order: @alexfauquette, @danilo-leal, @hbjORbj, @IFaniry, @joserodolfofreitas, @mnajdova, @oliviertassinari, @sai6855, @siriwatknp, @varunmulay22 + ## 5.11.14 diff --git a/benchmark/package.json b/benchmark/package.json index 5271d3903492c7..1251730b70f6aa 100644 --- a/benchmark/package.json +++ b/benchmark/package.json @@ -15,9 +15,9 @@ "@emotion/react": "^11.10.6", "@emotion/styled": "^11.10.6", "@mdx-js/react": "^2.3.0", - "@mui/material": "^5.11.14", + "@mui/material": "^5.11.15", "@mui/styles": "^5.11.13", - "@mui/system": "^5.11.14", + "@mui/system": "^5.11.15", "@styled-system/css": "^5.1.5", "benchmark": "^2.1.4", "playwright": "^1.31.2", diff --git a/docs/data/joy/components/snackbar/snackbar.md b/docs/data/joy/components/snackbar/snackbar.md new file mode 100644 index 00000000000000..7c4039a4bf336b --- /dev/null +++ b/docs/data/joy/components/snackbar/snackbar.md @@ -0,0 +1,56 @@ +--- +product: joy-ui +title: React Snackbar component +githubLabel: 'component: snackbar' +--- + +# Snackbar + +
The Snackbar, also commonly referred to as Toast, component informs users that an action has been or will be performed by the app.
+ +:::info +💡 The Joy UI Snackbar component is still in development. +If you're in need of it, please upvote [**this issue**](https://github.com/mui/material-ui/issues/36603) to help us prioritize the next batch of new components. +::: + +## Integration with headless UI libraries + +In the meantime, you can still adopt Joy UI today for building a snackbar! + +This document shows how to construct it with existing Joy UI components combined with popular headless UI libraries. + +### Using the `Alert` component + +Joy UI's [`Alert`](/joy-ui/react-alert/) component is perfect for building a snackbar (or toast) because of the default role—`alert` and support for decorators. + +### With Radix UI + +Using Joy UI's Alert component as a starting point, pass Radix UI's Toast to component prop. +Radix will enhance the functionalities by preserving the styles of Joy UI components. + +Animation is created by targeting `data-*` attributes injected by Radix UI's `Toast.Root` component. +In this demo, it uses `@mui/system` keyframes API, same as emotion's keyframes, to build the animation stylesheet. + +- [Install Radix UI's Toast](https://www.radix-ui.com/docs/primitives/components/toast#installation) +- [Toast component documentation](https://www.radix-ui.com/docs/primitives/components/toast) + + + +### With React Aria + +React Aria provides the `useToast` hook that can be used with Joy UI's `Alert` component. + +- [Install React Aria's Toast](https://react-spectrum.adobe.com/react-aria/useToast.html) +- [Toast component documentation](https://react-spectrum.adobe.com/react-aria/useToast.html#features) + + diff --git a/docs/data/joy/pages.ts b/docs/data/joy/pages.ts index abf9a9f8f18d63..a0406f3821dfa8 100644 --- a/docs/data/joy/pages.ts +++ b/docs/data/joy/pages.ts @@ -66,6 +66,7 @@ const pages = [ { pathname: '/joy-ui/react-circular-progress', title: 'Circular Progress' }, { pathname: '/joy-ui/react-linear-progress', title: 'Linear Progress' }, { pathname: '/joy-ui/react-modal' }, + { pathname: '/joy-ui/react-snackbar', comingSoon: true }, ], }, { diff --git a/docs/package.json b/docs/package.json index de3f5f6d4d68b7..f1417a40218770 100644 --- a/docs/package.json +++ b/docs/package.json @@ -31,18 +31,18 @@ "@fortawesome/fontawesome-svg-core": "^6.2.1", "@fortawesome/free-solid-svg-icons": "^6.2.1", "@fortawesome/react-fontawesome": "^0.2.0", - "@mui/base": "5.0.0-alpha.122", + "@mui/base": "5.0.0-alpha.123", "@mui/docs": "^5.11.13", "@mui/icons-material": "^5.11.11", - "@mui/joy": "5.0.0-alpha.72", + "@mui/joy": "5.0.0-alpha.73", "@mui/lab": "5.0.0-alpha.124", "@mui/markdown": "^5.0.0", - "@mui/material": "^5.11.14", + "@mui/material": "^5.11.15", "@mui/material-next": "6.0.0-alpha.79", "@mui/styled-engine": "^5.11.11", "@mui/styled-engine-sc": "^5.11.11", "@mui/styles": "^5.11.13", - "@mui/system": "^5.11.14", + "@mui/system": "^5.11.15", "@mui/types": "^7.2.3", "@mui/x-data-grid": "6.0.0-alpha.14", "@mui/x-data-grid-generator": "6.0.0-alpha.14", diff --git a/docs/pages/joy-ui/react-snackbar.js b/docs/pages/joy-ui/react-snackbar.js new file mode 100644 index 00000000000000..b35cb0721bc1a8 --- /dev/null +++ b/docs/pages/joy-ui/react-snackbar.js @@ -0,0 +1,7 @@ +import * as React from 'react'; +import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; +import * as pageProps from 'docs/data/joy/components/snackbar/snackbar.md?@mui/markdown'; + +export default function Page() { + return