Skip to content

Commit

Permalink
Merge branch 'master' into slider-custom-marks-nan
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeeshanTamboli committed Jan 21, 2025
2 parents bfc18c9 + 8a4eaf6 commit 4556e41
Show file tree
Hide file tree
Showing 137 changed files with 643 additions and 355 deletions.
18 changes: 18 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@ module.exports = /** @type {Config} */ ({
patterns: NO_RESTRICTED_IMPORTS_PATTERNS_DEEPLY_NESTED,
},
],
'no-irregular-whitespace': ['error', { skipJSXText: true, skipStrings: true }],
},
},
{
Expand Down Expand Up @@ -407,6 +408,21 @@ module.exports = /** @type {Config} */ ({
'react/prop-types': 'off',
},
},
{
files: ['packages/*/src/*/*.?(c|m)[jt]s?(x)'],
excludedFiles: [
'*.spec.*',
'*.test.*',
// deprecated library
'**/mui-base/**/*',
'**/mui-joy/**/*',
// used internally, not used on app router yet
'**/mui-docs/**/*',
],
rules: {
'material-ui/disallow-react-api-in-server-components': 'error',
},
},
{
files: ['packages/*/src/**/*.?(c|m)[jt]s?(x)'],
excludedFiles: '*.spec.*',
Expand Down Expand Up @@ -519,6 +535,7 @@ module.exports = /** @type {Config} */ ({
'import/no-default-export': 'error',
'import/prefer-default-export': 'off',
'react-compiler/react-compiler': 'off',
'no-irregular-whitespace': ['error', { skipComments: true }],
},
},
{
Expand All @@ -544,6 +561,7 @@ module.exports = /** @type {Config} */ ({
// 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',
'no-irregular-whitespace': ['error', { skipJSXText: true, skipStrings: true }],
},
},
{
Expand Down
42 changes: 42 additions & 0 deletions CHANGELOG.md
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 -->
Expand Down
8 changes: 4 additions & 4 deletions CHANGELOG.old.md
Original file line number Diff line number Diff line change
Expand Up @@ -3151,7 +3151,7 @@ A big thanks to the 12 contributors who made this release possible. Here are som
- [docs][base] Remove usage of `component` prop in docs (#37462) @sai6855
- [docs] Fix docs redirections @oliviertassinari
- [docs] Fix Fluent -> Fluent UI @oliviertassinari
- [docs] Fix MUI Base -> Base UI @oliviertassinari
- [docs] Fix MUI Base -> Base UI @oliviertassinari
- [docs] Add base-vite-tailwind example repo (#36994) @mj12albert
- [docs] Fix search bar layout shift (#37460) @oliviertassinari
- [docs] Tweak Material UI's "Showcase" page design (#37259) @danilo-leal
Expand Down Expand Up @@ -3366,7 +3366,7 @@ A big thanks to the 18 contributors who made this release possible. Here are som

### Core

- [blog] Fix images using "MUI Base" instead of "Base UI" (#37044) @danilo-leal
- [blog] Fix images using "MUI Base" instead of "Base UI" (#37044) @danilo-leal
- [core] Add VS Code extensions recommendations (#37166) @michaldudak
- [test] `e2e-website` related minor fixes (#37204) @ZeeshanTamboli

Expand Down Expand Up @@ -3671,7 +3671,7 @@ A big thanks to the 9 contributors who made this release possible. Here are some
### Core

- [core] Increase margin to scroll @oliviertassinari
- [core] Replace MUI Base with Base UI (#36716) @mnajdova
- [core] Replace MUI Base with Base UI (#36716) @mnajdova

All contributors of this release in alphabetical order: @alirezahekmati, @danilo-leal, @hbjORbj, @Lioness100, @mnajdova, @oliviertassinari, @sai6855, @siriwatknp, @ZeeshanTamboli

Expand Down Expand Up @@ -3711,7 +3711,7 @@ A big thanks to the 17 contributors who made this release possible. Here are som
- [docs][base] Move styles to the bottom of demos code for `Menu` (#36582) @gitstart
- [docs][base] Move styles code to bottom in the `Button` demos (#36590) @sai6855
- [docs][base] Show components & hooks API on the components page (#35938) @mnajdova
- [docs] Describe slotProps in MUI Base customization doc (#36206) @michaldudak
- [docs] Describe slotProps in MUI Base customization doc (#36206) @michaldudak
- [docs] Fix double API page redirection (#36743) @oliviertassinari
- [docs] Remove hash property and leverage pathname (#36764) @siriwatknp
- [docs] Introduce markdown permalink to source (#36729) @oliviertassinari
Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Docs

This is the website of the company (MUI), the documentation of Material UI, Base UI, MUI System, and Joy UI.
This is the website of the company (MUI), the documentation of Material UI, MUI Base, MUI System, and Joy UI.

To start the docs site in development mode, from the project root, run:

Expand Down
4 changes: 2 additions & 2 deletions docs/data/base/all-components/all-components.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Base UI components
# MUI Base components

<p class="description">Every Base UI component available so far, sorted alphabetically.</p>
<p class="description">Every MUI Base component available so far, sorted alphabetically.</p>

{{"component": "modules/components/BaseUIComponents.js"}}
8 changes: 3 additions & 5 deletions docs/data/base/components/accordion/accordion.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@ productId: base-ui
title: React Accordion component
githubLabel: 'component: accordion'
waiAria: https://www.w3.org/WAI/ARIA/apg/patterns/accordion/
newUrl: https://base-ui.com/react/components/accordion
newName: Accordion
---

# Accordion 🚧
# Accordion

<p class="description">Accordions let users show and hide sections of related content on a page.</p>

:::warning
The Base UI Accordion component isn't available yet, but you can upvote [this GitHub issue](https://github.com/mui/base-ui/issues/25) to see it arrive sooner.
:::
6 changes: 3 additions & 3 deletions docs/data/base/components/autocomplete/autocomplete.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ waiAria: https://www.w3.org/WAI/ARIA/apg/patterns/combobox/

An autocomplete component is an enhanced text input that shows a list of suggested options as users type and lets them select an option from the list.

Base UI provides the `useAutocomplete` hook for building a custom Autocomplete.
MUI Base provides the `useAutocomplete` hook for building a custom Autocomplete.
It implements the WAI-ARIA Combobox pattern and is typically used to assist users in completing form inputs or search queries faster.

{{"demo": "AutocompleteIntroduction", "defaultCodeOpen": false, "bg": "gradient"}}
Expand Down Expand Up @@ -102,9 +102,9 @@ Learn more about controlled and uncontrolled components in the [React documentat

React Portals can be used to render the listbox outside of the DOM hierarchy, making it easier to allow it to "float" above adjacent elements.

Base UI provides a [Popper](/base-ui/react-popper/) component built around React's `createPortal()` for exactly this purpose, and additionally helps you manage keyboard focus as it moves in and out of the portal.
MUI Base provides a [Popper](/base-ui/react-popper/) component built around React's `createPortal()` for exactly this purpose, and additionally helps you manage keyboard focus as it moves in and out of the portal.

To render the listbox in Base UI's Popper, the `ref`s must be merged as follows:
To render the listbox in MUI Base's Popper, the `ref`s must be merged as follows:

```jsx
import { useAutocomplete } from '@mui/base/useAutocomplete';
Expand Down
4 changes: 2 additions & 2 deletions docs/data/base/components/button/button.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ You can even use SVGs, as shown in the demo below:

### Using with links

The following demo illustrates how to use the Button as a link, whether using the Base UI Button itself for the `href`, or with the [Next.js Link component](https://nextjs.org/docs/pages/api-reference/components/link):
The following demo illustrates how to use the Button as a link, whether using the MUI Base Button itself for the `href`, or with the [Next.js Link component](https://nextjs.org/docs/pages/api-reference/components/link):

{{"demo": "UnstyledLinkButton.js", "defaultCodeOpen": true}}

Expand All @@ -142,7 +142,7 @@ Instead, `aria-disabled` is used, which makes the Button focusable.

This should be used whenever the disabled Button needs to be read by screen readers.

Base UI uses this prop internally in [menu items](/base-ui/react-menu/), making it possible to use the keyboard to navigate to disabled items (in compliance with [ARIA guidelines](https://www.w3.org/WAI/ARIA/apg/practices/keyboard-interface/#focusabilityofdisabledcontrols)).
MUI Base uses this prop internally in [menu items](/base-ui/react-menu/), making it possible to use the keyboard to navigate to disabled items (in compliance with [ARIA guidelines](https://www.w3.org/WAI/ARIA/apg/practices/keyboard-interface/#focusabilityofdisabledcontrols)).

The following demo shows how the `focusableWhenDisabled` prop works—use the <kbd class="key">Tab</kbd> key to navigate within this document to see that only the second Button accepts the focus:

Expand Down
8 changes: 3 additions & 5 deletions docs/data/base/components/checkbox/checkbox.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@ productId: base-ui
title: React Checkbox component
githubLabel: 'component: checkbox'
waiAria: https://www.w3.org/WAI/ARIA/apg/patterns/checkbox/
newUrl: https://base-ui.com/react/components/checkbox
newName: Checkbox
---

# Checkbox 🚧
# Checkbox

<p class="description">Checkboxes give users binary choices when presented with multiple options in a series.</p>

:::warning
The Base UI Checkbox component isn't available yet, but you can upvote [this GitHub issue](https://github.com/mui/base-ui/issues/24) to see it arrive sooner.
:::
6 changes: 3 additions & 3 deletions docs/data/base/components/drawer/drawer.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ title: React Drawer component
githubLabel: 'component: drawer'
---

# Drawer 🚧
# Drawer

<p class="description">Navigation drawers (also known as sidebars) provide ergonomic access to different destinations without taking the user out of context.</p>

:::warning
The Base UI Drawer component isn't available yet, but you can upvote [this GitHub issue](https://github.com/mui/base-ui/issues/38) to see it arrive sooner.
:::error
@mui/base has been deprecated and replaced by MUI Base. Please follow [this GitHub issue](https://github.com/mui/base-ui/issues/38) to track the development of the Drawer component.
:::
2 changes: 2 additions & 0 deletions docs/data/base/components/form-control/form-control.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ title: React Form Control component and hook
components: FormControl
hooks: useFormControlContext
githubLabel: 'component: FormControl'
newUrl: https://base-ui.com/react/components/field
newName: Field
---

# Form Control
Expand Down
2 changes: 2 additions & 0 deletions docs/data/base/components/input/input.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ title: React Input component and hook
components: Input
hooks: useInput
githubLabel: 'component: input'
newUrl: https://base-ui.com/react/components/input
newName: Input
---

# Input
Expand Down
4 changes: 3 additions & 1 deletion docs/data/base/components/menu/menu.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ components: Menu, MenuItem, MenuButton, Dropdown
hooks: useMenu, useMenuItem, useMenuButton, useDropdown, useMenuItemContextStabilizer
githubLabel: 'component: menu'
waiAria: https://www.w3.org/WAI/ARIA/apg/patterns/menu-button/
newUrl: https://base-ui.com/react/components/menu
newName: Menu
---

# Menu
Expand All @@ -17,7 +19,7 @@ waiAria: https://www.w3.org/WAI/ARIA/apg/patterns/menu-button/

## Introduction

The Base UI Dropdown Menu is implemented using a collection of related components:
The MUI Base Dropdown Menu is implemented using a collection of related components:

- Dropdown - The outermost container that houses all Menu components.
- Menu Button - The button that toggles the visibility of the Menu.
Expand Down
2 changes: 2 additions & 0 deletions docs/data/base/components/modal/modal.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ components: Modal
hooks: useModal
githubLabel: 'component: modal'
waiAria: https://www.w3.org/WAI/ARIA/apg/patterns/dialog-modal/
newUrl: https://base-ui.com/react/components/dialog
newName: Dialog
---

# Modal
Expand Down
8 changes: 5 additions & 3 deletions docs/data/base/components/number-input/number-input.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ title: React Number Input component and hook
components: NumberInput
hooks: useNumberInput
githubLabel: 'component: number input'
newUrl: https://base-ui.com/react/components/number-field
newName: Number Field
---

# Number Input
Expand All @@ -17,7 +19,7 @@ githubLabel: 'component: number input'
## Introduction

A number input is a UI element that accepts numeric values from the user.
Base UI's Number Input component is a customizable replacement for the native HTML `<input type="number">` that solves common usability issues of its native counterpart, such as:
MUI Base's Number Input component is a customizable replacement for the native HTML `<input type="number">` that solves common usability issues of its native counterpart, such as:

- Inconsistencies across browsers in the appearance and behavior of the stepper buttons
- Allowing certain non-numeric characters ('e', '+', '-', '.') and silently discarding others
Expand All @@ -41,7 +43,7 @@ The following demo shows how to create a Number Input component, apply some styl

### Anatomy

The Base UI Number Input component consists of four slots:
The MUI Base Number Input component consists of four slots:

- `root`: an outer `<div>` containing the other interior slots
- `input`: an `<input>` element
Expand Down Expand Up @@ -137,7 +139,7 @@ If you only define one or the other, the opposite end of the range will be open-

```

The demo below shows a Number Input with a an accepted range of 1 to 99:
The demo below shows a Number Input with an accepted range of 1 to 99:

{{"demo": "QuantityInput.js", "defaultCodeOpen": false}}

Expand Down
4 changes: 2 additions & 2 deletions docs/data/base/components/pagination/pagination.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ githubLabel: 'component: Pagination'

<p class="description">The Pagination component lets the user select a specific page from a range of pages.</p>

:::warning
The Base UI Pagination component isn't available yet, but you can upvote [this GitHub issue](https://github.com/mui/base-ui/issues/29) to see it arrive sooner.
:::error
@mui/base has been deprecated and replaced by MUI Base. Please follow [this GitHub issue](https://github.com/mui/base-ui/issues/29) to track the development of the Pagination component.
:::
4 changes: 3 additions & 1 deletion docs/data/base/components/popper/popper.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ title: React Popper component
components: Popper
githubLabel: 'component: Popper'
waiAria: https://www.w3.org/WAI/ARIA/apg/patterns/tooltip/
newUrl: https://base-ui.com/react/components/popover
newName: Popover
---

# Popper
Expand All @@ -23,7 +25,7 @@ It relies on the third-party library ([Popper.js v2](https://popper.js.org/docs/
The Popper.js library is no longer maintained.
It has been replaced by a new library: [Floating UI](https://floating-ui.com/).

Base UI offers the [Popup](/base-ui/react-popup/) component based on this new library.
MUI Base offers the [Popup](/base-ui/react-popup/) component based on this new library.
It has features and an API similar to the Popper component, but is still in development and its API may change.

Once the [Popup](/base-ui/react-popup/) is stable, we will deprecate and, later, remove our Popper component.
Expand Down
6 changes: 4 additions & 2 deletions docs/data/base/components/popup/popup.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ title: React Popup component
components: Popup
githubLabel: 'component: popup'
waiAria: https://www.w3.org/WAI/ARIA/apg/patterns/tooltip/
newUrl: https://base-ui.com/react/components/popover
newName: Popover
---

# Popup
Expand All @@ -22,7 +24,7 @@ It relies on the third-party [Floating UI](https://floating-ui.com/) library for
{{"demo": "UnstyledPopupIntroduction", "defaultCodeOpen": false, "bg": "gradient"}}

:::info
The Popup component, once stable, is intended to replace the [Popper](/base-ui/react-popper/) component, which will be phased out in a future release of Base UI.
The Popup component, once stable, is intended to replace the [Popper](/base-ui/react-popper/) component, which will be phased out in a future release of MUI Base.
:::

## Component
Expand Down Expand Up @@ -61,7 +63,7 @@ Try changing this value to `top` in the interactive demo below to see how it wor
### Transitions

You can animate the opening and closing of the Popup using CSS transitions, CSS animations, or third-party animation libraries.
It supports the API described on the [Base UI Transitions](/base-ui/react-transitions/) page.
It supports the API described on the [MUI Base Transitions](/base-ui/react-transitions/) page.

### Disable portal

Expand Down
8 changes: 3 additions & 5 deletions docs/data/base/components/radio-group/radio-group.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@ productId: base-ui
title: React Radio Group component
githubLabel: 'component: radio'
waiAria: https://www.w3.org/WAI/ARIA/apg/patterns/radio/
newUrl: https://base-ui.com/react/components/radio
newName: Radio
---

# Radio Group 🚧
# Radio Group

<p class="description">Radio buttons enable the user to select one option from a set.</p>

:::warning
The Base UI Radio Group component isn't available yet, but you can upvote [this GitHub issue](https://github.com/mui/base-ui/issues/26) to see it arrive sooner.
:::
6 changes: 3 additions & 3 deletions docs/data/base/components/rating/rating.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ githubLabel: 'component: rating'
waiAria: https://www.w3.org/WAI/tutorials/forms/custom-controls/#a-star-rating
---

# Rating 🚧
# Rating

<p class="description">Rating components provide users with a simple action to give feedback as well as assess the opinions of others.</p>

:::warning
The Base UI Rating component isn't available yet, but you can upvote [this GitHub issue](https://github.com/mui/base-ui/issues/30) to see it arrive sooner.
:::error
@mui/base has been deprecated and replaced by MUI Base. Please follow [this GitHub issue](https://github.com/mui/base-ui/issues/30) to track the development of the Rating component.
:::
Loading

0 comments on commit 4556e41

Please sign in to comment.