What's Changed
- Add
offset
prop to configure spacing between inputs and label inCheckbox.Group
andRadio.Group
components - Improve type definition for effect callback in
use-did-update
hook - Add
DateRangePickerValue
type export to@mantine/dates
package - Fix broken Styles API in Switch component
- Change use-uncontrolled hook logic to call
onChange
handler 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
onClose
function not being called when Menu is closed with outside click or with escape key - Allow overriding Menu dropdown padding with
classNames
andstyles
props - Forward
className
in 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
resetOnExit
option 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/form
fromlodash.clonedeep
toklona
to 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/modals
package
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