What's Changed
- Add
offsetprop to configure spacing between inputs and label inCheckbox.GroupandRadio.Groupcomponents - Improve type definition for effect callback in
use-did-updatehook - Add
DateRangePickerValuetype export to@mantine/datespackage - Fix broken Styles API in Switch component
- Change use-uncontrolled hook logic to call
onChangehandler even if state is uncontrolled - Fix incorrect disabled Radio styles applied when
disabled={false} - Fix FileInput component submitting form when clicked
- Disable user-select in Slider thumb and tooltip
- Fix incorrect disabled prop handling in uncontrolled Select and MultiSelect components
- Fix
onClosefunction not being called when Menu is closed with outside click or with escape key - Allow overriding Menu dropdown padding with
classNamesandstylesprops - Forward
classNamein Tooltip component to target element to allow usage with Group and MediaQuery components - Fix incorrect cancelation handling in FileButton component when there was previously picked file (#1854)
- Disable years before 100 in Calendar component to avoid Date object collisions (#1758)
- Preserve cursor position on format/parse in NumberInput component (#1908)
- Add
translate="no"attribute to Prism and Prism.Tabs components to avoid browser translations of code (#1891) - Add
resetOnExitoption to use-mouse hook (#1893) - Add better types inferring to use-toggle hook with
as const(#1892) - Fix incorrect value formatting for locales in which month name starts with lowercase letter in DatePicker component (#1845)
- Fix incorrect disabled state handling for clearable Select component (#1843)
- Fix incorrect MultiSelect placeholder color in Firefox
- Migrate
@mantine/formfromlodash.clonedeeptoklonato decrease bundle size - Fix incorrect nested lists validation logic in
@mantine/form(#1861) - Clear list errors when list item is removed to avoid stale errors in
@mantine/form - Add option to set visibility toggle button aria-label in PasswordInput component
- Fix missing Prism props forwarding in Prism.Panel component
- Rename id option to modalId to avoid errors with React 18 in
@mantine/modalspackage
New Contributors
- @hunterwilhelm made their first contribution in #1848
- @filiptammergard made their first contribution in #1866
- @arymoraes made their first contribution in #1884
- @hpiaia made their first contribution in #1899
- @Siris01 made their first contribution in #1906
- @armoniaechaos made their first contribution in #1908
- @Eliasmgprado made their first contribution in #1894
- @ryuhangyeong made their first contribution in #1891
- @yudai-nkt made their first contribution in #1892
- @ercgrat made their first contribution in #1845
- @antoinesion made their first contribution in #1843
Full Changelog: 5.0.0...5.0.2