diff --git a/.codesandbox/ci.json b/.codesandbox/ci.json index 1abc84447..247caf9a4 100644 --- a/.codesandbox/ci.json +++ b/.codesandbox/ci.json @@ -4,7 +4,7 @@ "node": "18", "packages": ["packages/mui-base"], "publishDirectory": { - "@mui/base": "packages/mui-base/build" + "@base_ui/react": "packages/mui-base/build" }, "sandboxes": ["/examples/base-ui-cra-ts"], "silent": true diff --git a/CHANGELOG.md b/CHANGELOG.md index 52a6086a7..0c8b1405b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,1337 +1 @@ # Versions - -## MUI Core v5.15.9 - -_Feb 8, 2024_ - -### `@mui/base@5.0.0-beta.36` - -- [base-ui] Update props using Array to ReadonlyArray type (#40754) @RaghavenderSingh - -## MUI Core v5.15.8 - -_Feb 6, 2024_ - -### `@mui/base@5.0.0-beta.34` - -- [Button] Add support for `hostElementName` prop to improve SSR (#40507) @mj12albert -- [Menu] Use Popup instead of Popper (#40731) @michaldudak -- [useNumberInput] Integrate useNumberInput with useControllableReducer (#40206) @mj12albert -- [Slider] Add support for Arrow Down/Up + Shift and Page Up/Down keys (#40676) @mnajdova - -## MUI Core v5.15.7 - -_Jan 31, 2024_ - -### `@mui/base@5.0.0-beta.34` - -- [Input] Add OTP input demo (#40539) @sai6855 -- [Menu] Focus last item after opening a menu using up arrow (#40764) @Jaswanth-Sriram-Veturi -- [Menu] Focus Menu Items on hover (#40755) @michaldudak - -## MUI Core v5.15.6 - -_Jan 22, 2024_ - -### `@mui/base@5.0.0-beta.33` - -- [Select] Fix display of selected Options with rich content (#40689) @michaldudak -- [Select] Use Popup instead of Popper (#40524) @michaldudak -- [useMenuButton] Fix non native button triggers (#40645) @DiegoAndai - -## MUI Core v5.15.5 - -_Jan 17, 2024_ - -### `@mui/base@5.0.0-beta.32` - -#### Breaking changes - --Change the CSS class prefix to `base-` (#40205) @michaldudak - -The class prefix of Base UI components have been changed from `Mui-` to `base-`. This only affects codebases that uses class names verbatim, that is not exposed by JS objects such as `buttonClasses`, but as plain strings or in CSS stylesheets (`.MuiButton.root`) - -To adapt your code to the new pattern: - -- replace all occurrences of the regex `.Mui([A-Z][A-Za-z]*)-` with `.base-$1-` (so `MuiButton-root` becomes `base-Button-root`, etc.), -- replace all occurrences of the regex `.Mui-([a-z]*)` with `.base--$1` (so `Mui-disabled` becomes `base--disabled`, etc.). - -#### Changes - -- [Select] Fix screen-reader CSS to avoid body scrollbar (#40599) @brijeshb42 -- [Switch] Add border-box to demos (#40638) @zanivan - -## MUI Core 5.15.4 - -_Jan 10, 2024_ - -### `@mui/base@5.0.0-beta.31` - -- [base-ui][NumberInput] Remove inputId and inputRef types from NumberInput component (#40425) @sai6855 - -## MUI Core 5.15.3 - -_Jan 3, 2024_ - -### `@mui/base@5.0.0-beta.30` - -- [useSlider] Rearrange passive option in eventlisteners (#40235) @Kamino0 - -## MUI Core 5.15.2 - -_Dec 25, 2023_ - -### `@mui/base@5.0.0-beta.29` - -- [Popup] Use context-based transition API (#39326) @michaldudak -- [Popup] Popup no longer opens outside viewport (#39827) @adamhylander -- [useSelect] Refactor to use DOM focus management instead of active descendant (#39675) @DiegoAndai - -## MUI Core 5.15.0 - -_Dec 11, 2023_ - -### `@mui/base@5.0.0-beta.27` - -- [base-ui] useControllableReducer warns when controlled props become uncontrolled (and vice versa) (#39096) @mj12albert - -## MUI Core 5.14.19 - -_Nov 29, 2023_ - -### `@mui/base@5.0.0-beta.25` - -- [Menu] Fix navigation of items when 1st item is disabled (#39828) @sai6855 -- [Modal] Refine demos (#39824) @zanivan -- [NumberInput] Implement `numberInputReducer` (#38723) @mj12albert -- [useNumberInput] Fix change handlers passed through slotProps (#39407) @mj12albert - -## MUI Core 5.14.18 - -_Nov 14, 2023_ - -### `@mui/base@5.0.0-beta.23` - -- Make list components more reliable (#39380) @michaldudak - -## MUI Core 5.14.16 - -_Oct 31, 2023_ - -### `@mui/base@5.0.0-beta.22` - -- [Autocomplete] Standardize box shadow on demos (#39519) @zanivan -- [useSelect] Support browser autofill (#39595) @DiegoAndai -- [base-ui] Fix mergeSlotProps className join order (#39616) @mj12albert - -## MUI Core 5.14.15 - -_Oct 24, 2023_ - -### `@mui/base@5.0.0-beta.21` - -- [useAutocomplete] Correct keyboard navigation with multiple disabled options (#38788) @VadimZvf -- [Select] Standardize box shadow on demos (#39509) @zanivan -- [Slider] Refine demos (#39526) @zanivan -- [Input] Update and port additional tests from material-ui (#39584) @mj12albert - -## MUI Core 5.14.14 - -_Oct 17, 2023_ - -### `@mui/base@5.0.0-beta.20` - -- [base-ui][Menu] Do not reopen the menu after clicking on a trigger in Safari (#39393) @michaldudak - -## MUI Core 5.14.13 - -_Oct 10, 2023_ - -### `@mui/base@5.0.0-beta.19` - -- [Menu] Add the anchor prop (#39297) @michaldudak - -## MUI Core 5.14.12 - -_Oct 3, 2023_ - -### `@mui/base@5.0.0-beta.18` - -- [useSlider] Align externalProps handling (#38854) @mj12albert -- [useTabs] Align external props handling for useTab/useTabPanel/useTabsList (#39037) @mj12albert -- [test] Fix import paths in useTab tests (#39291) @mj12albert - -## MUI Core 5.14.11 - -_Sep 26, 2023_ - -### `@mui/base@5.0.0-beta.17` - -- [NumberInput] Support adornments (#38900) @anle9650 -- [Menu] Align external props handling for useMenu/MenuButton/MenuItem (#38946) @mj12albert -- [Select] Align external props handling (#39038) @mj12albert -- [TextareaAutosize] Simplify logic and add test (#38728) @oliviertassinari - -## MUI Core 5.14.10 - -_Sep 18, 2023_ - -### `@mui/base@5.0.0-beta.16` - -- [NumberInput][base-ui] Warn when changing control mode with `useControlled` (#38757) @sai6855 -- [Select][base-ui] Fix Select button layout shift, add placeholder prop (#38796) @mj12albert -- [useList][base-ui] Accept arbitrary external props and forward to root (#38848) @mj12albert -- [Autocomplete][base-ui] Added ref to getInputProps return value (#38919) @DarhkVoyd - -## MUI Core 5.14.9 - -_Sep 13, 2023_ - -### `@mui/base@5.0.0-beta.15` - -- [useSnackbar] Align externalProps handling (#38935) @mj12albert -- [useInput] Align ExternalProps naming (#38849) @mj12albert -- [FocusTrap] Refactor & cleanup (#38878) @mnajdova -- [FocusTrap] Fix `disableEnforceFocus` behavior (#38816) @mnajdova -- [Switch] Simplify source (#38910) @oliviertassinari - -## MUI Core 5.14.8 - -_Sep 5, 2023_ - -### `@mui/base@5.0.0-beta.14` - -- [Autocomplete] Type multiple values with readonly arrays. (#38253) @pcorpet -- [TextField] Fix unstable height of memoized multiline TextField component (#37135) @amal-qb - -## MUI Core 5.14.7 - -_Aug 29, 2023_ - -### `@mui/base@5.0.0-beta.13` - -- [useButton][base-ui] Accept arbitrary props in getRootProps and forward them (#38475) @DiegoAndai - -## MUI Core 5.14.6 - -_Aug 23, 2023_ - -### `@mui/base@5.0.0-beta.12` - -- [Popup] New component (#37960) @michaldudak - -## MUI Core 5.14.5 - -_Aug 14, 2023_ - -### `@mui/base@5.0.0-beta.11` - -- [base-ui] Remove the legacy Extend\* types (#38184) @michaldudak -- [base-ui] Add `useModal` hook (#38187) @mnajdova -- [base-ui] Add `prepareForSlot` util (#38138) @mnajdova -- [useButton][base-ui] Fix tabIndex not being forwarded (#38417) @DiegoAndai -- [useButton][base-ui] Fix onFocusVisible not being handled (#38399) @DiegoAndai - -## MUI Core 5.14.4 - -_Aug 8, 2023_ - -### `@mui/base@5.0.0-beta.10` - -#### Breaking changes - -- [base] Ban default exports (#38200) @michaldudak - - Base UI default exports were changed to named ones. Previously we had a mix of default and named ones. - This was changed to improve consistency and avoid problems some bundlers have with default exports. - See https://github.com/mui/material-ui/issues/21862 for more context. - - ```diff - - import Button, { buttonClasses } from '@mui/base/Button'; - + import { Button, buttonClasses } from '@mui/base/Button'; - - import BaseMenu from '@mui/base/Menu'; - + import { Menu as BaseMenu } from '@mui/base/Menu'; - ``` - - Additionally, the `ClassNameGenerator` has been moved to the directory matching its name: - - ```diff - - import ClassNameGenerator from '@mui/base/className'; - + import { ClassNameGenerator } from '@mui/base/ClassNameGenerator'; - ``` - - A codemod is provided to help with the migration: - - ```bash - npx @mui/codemod@latest v5.0.0/base-use-named-exports - ``` - -#### Changes - -- [base] Create useNumberInput and NumberInput (#36119) @mj12albert -- [Select][base] Fix flicker on click of controlled Select button (#37855) @VishruthR -- [Dropdown] Fix imports of types (#38296) @yash-thakur - -## MUI Core 5.14.3 - -_Jul 31, 2023_ - -### `@mui/base@5.0.0-beta.9` - -#### Breaking changes - -- [Dropdown][base][joy] Introduce higher-level menu component (#37667) @michaldudak - -#### Other changes - -- [typescript][base] Rename one letter type parameters (#38171) @michaldudak - -## MUI Core 5.14.2 - -_Jul 25, 2023_ - -### @mui/material@5.14.2 - -- Revert "[core] Adds `component` prop to `OverrideProps` type (#35924)" (#38150) @michaldudak -- [Chip][material] Fix base cursor style to be "auto" not "default" (#38076) @DiegoAndai -- [Tabs] Refactor IntersectionObserver logic (#38133) @ZeeshanTamboli -- [Tabs] Fix and improve visibility of tab scroll buttons using the IntersectionObserver API (#36071) @SaidMarar - -### @mui/joy@5.0.0-alpha.89 - -- [Joy] Replace leftover `Joy-` prefix with `Mui-` (#38086) @siriwatknp -- [Skeleton][joy] Fix WebkitMaskImage CSS property (#38077) @Bestwebdesign -- [Link][Joy UI] Fix font inherit (#38124) @oliviertassinari - -## 5.14.1 - -_Jul 19, 2023_ - -### `@mui/base@5.0.0-beta.8` - -- [Autocomplete] Make touch and click behavior on an option consistent (#37972) @divyammadhok - -## MUI Core 5.13.7 - -_Jul 4, 2023_ - -### `@mui/base@5.0.0-beta.6` - -- [Slider][base][material][joy] Fix not draggable on the edge when `disableSwap={true}` (#35998) @sai6855 -- [Slider][base] Provide slot state to Slider's thumb slot props callback (#37749) @mnajdova -- [Tabs] Wrap TabsList context creation in useMemo (#37370) @michaldudak -- [TextareaAutosize] Fix wrong height measurement (#37185) @bigteech - -## MUI Core 5.13.6 - -_Jun 21, 2023_ - -### `@mui/base@5.0.0-beta.5` - -- [Menu][base] Add the resetHighlight action (#37392) @michaldudak -- [Select][base] Expose the `areOptionsEqual` prop (#37615) @michaldudak - -## MUI Core 5.13.4 - -_Jun 5, 2023_ - -### `@mui/base@5.0.0-beta.4` - -- [Input][base] Fix calling slotProps event handlers (#37463) @sai6855 - -## MUI Core 5.13.3 - -_May 29, 2023_ - -### `@mui/base@5.0.0-beta.3` - -- [base] Maintain nodes document order in compound components (#36857) @michaldudak -- [base][joy] Prevent persisting hover state styles onclick on mobile (#36704) @gitstart -- [Menu][base] MenuItem as a link does not work (#37242) @nicolas-ot -- [MenuItem][Base] Pass idGenerator function (#37364) @sai6855 -- [Slider][Base] Add Vertical slider demo (#37357) @sai6855 - -## MUI Core 5.13.1 - -_May 16, 2023_ - -### `@mui/base@5.0.0-beta.1` - -- [Select][base] Keep focus on the trigger element when listbox is open (#37244) @michaldudak - -## MUI Core 5.13.0 - -_May 10, 2023_ - -### `@mui/base@5.0.0-beta.0` - -- [Select][base] Do not call onChange after initial render (#37141) @michaldudak -- [Select][base] Rename the `optionStringifier` prop (#37118) @michaldudak -- [typescript][base] Fix types of components callbacks parameters (#37169) @michaldudak -- [Select], [TablePagination] Use more descriptive parameter names (#37064) @michaldudak - -## MUI Core 5.12.3 - -_May 2, 2023_ - -### `@mui/base@5.0.0-alpha.128` - -#### Breaking changes - -- The `component` prop is no longer supported because it can be replaced with the slots API. This is how the transformation will look like: - - ```diff -