Releases: mantinedev/mantine
Releases Β· mantinedev/mantine
4.2.9
- Add option to customize weekend days with
weekendDays
prop in all@mantine/dates
components that useMonth
component as a base (DatePicker, Calendar, Month, etc.) - Fix missing selected styles in Menu component when navigating with keyboard
- Add option to customize am/pm labels to TimeInput component (#1599)
- Change how
autoComplete
andtype
attributes are handled in MultiSelect, Autocomplete and Select components - Fix broken inline code padding styles in TypographyStylesProvider component (#1611)
- Fix incorrect focus managing logic in Modal and Drawer components when
trapFocus
prop is set tofalse
(#1596 #1597) - Fix incorrect on / off label positions in Switch component when labels have only one letter
- Fix composition events handling (unexpected IME submit on Enter key pressed) in MultiSelect component (#1570)
- Fix console errors produced by
use-move
hook (used in Slide and ColorPicker) (missing passive option in event handler options)
4.2.8
4.2.7
- Add missing
FormList
type export to@mantine/form
package - Fix Dropzone component throwing error if files were rejected and onReject function was not provided
- Fix
transitionTimingFunction
prop not working in Modal and Drawer components - Add mime type for .exe files in
@mantine/dropzone
package (#1515) - Add support for separator as first character in NumberInput (#1530)
- Fix am/pm not working on Android in TimeInput component (#1534)
- Fix error
range is null
on image upload in RichTextEditor (#1514) - Add
openDropdownOnClear
prop to DatePicker and DateRangePicker components (#1497)
4.2.6
- Improve custom color typescript override to allow colors autocomplete in components props (#1468)
- Fix incorrect aria-owns attribute in Select, MultiSelect and Autocomplete components (#1485)
- Make Step loader inherit color from parent item in Stepper component
- Add
UseListStateHandlers
type export from@mantine/hooks
package - Fix incorrect ref type in DatePicker and DateRangePicker components
- Add
exitTransitionDuration
prop support to LoadingOverlay component - Fix missing selected item highlighted styled in TransferList component
4.2.5
- Fix multiple RichTextEditor errors and visual bugs
- Add missing accessible role to Pagination (#1432)
- Use
style
instead ofsx
to set thumb position to improve Slider and RangeSlider performance (#1437) - Allow the
-
symbol in an empty NumberInput (#1445) - Fix incorrect
sx
array type for strict TypeScript mode (#1447) - Clear milliseconds value on input value change in TimeInput (#1464)
- Allow hex colors (and other CSS values) in color prop in Divider component
- Fix errors not cleared when value changes in lists in use-form hook (#1438)
- Fix action not registered in useEffect with registerSpotlightActions function in
@mantine/spotlight
4.2.3
- Fix Menu click outside events not working when it is used within Drawer
- Fix
onKeyDown
prop not working correctly in MultiSelect component - Add option to configure z-index to Indicator component and fix the issue when indicator appeared above modal
- Make use-form functions memoized to optimize rerenders (#1383)
- Fix
registerSpotlightActions
andremoveSpotlightActions
not working correctly in@mantine/spotlight
(#1396) - Fix
Enter
key not submitting form in Autocomplete component (#1364)
4.2.2
- Fix DateRangePicker popover not closing when user clicks outside on touch device
- Fix Alert a11y name without provided id
- Call onChange prop function when clearing TimeInput (#1342)
- Fix
labelProp
color property getting overwritten by Divider component color (#1343) - Lock
@emotion/*
packages versions to prevent mismatch when installing with npm - Fix incorrect value syncing for hooks with different local storage keys in use-local-storage hook
- Move font-smoothing styles to body element to allow overrides
4.2.0
View changelog with demos on Mantine docs website
primaryShade on theme
New theme.primaryShade
property is used to determine which shade will be used for the components that have color
prop,
it defaults to 6. Note that for some variants with dark color scheme primaryShade
will not be used as it will cause contrast issues.
import { MantineProvider, Group, Button } from '@mantine/core';
function Demo() {
return (
<MantineProvider theme={{ primaryShade: 6 }}>
<App />
</MantineProvider>
);
}
primaryShade
can also be customized for dark and light color scheme separately:
import { MantineProvider } from '@mantine/core';
function Demo() {
return (
<MantineProvider theme={{ primaryShade: { light: 6, dark: 8 } }}>
<App />
</MantineProvider>
);
}
New features
- New use-focus-within hook detects if any element within has focus,
it works the same way as:focus-within
CSS selector - New use-network hook returns current connection status
- New Indicator component
- SegmentedControl component now supports disabled items
- Calendar component now supports multiple selected dates
- Modal and Drawer components now support setting overlay blur
- Calendar, Month and DatePicker components now support custom day renderer with
renderDay
function: - use-window-event hook now supports custom events
- use-local-storage hook now supports value sync in the same tab
- RichTextEditor now supports placeholder
4.1.5
- Add option to set id to root Modal element (#1270)
- Fix incorrect Tooltip behavior with disabled buttons (#1272)
- Add missing them default radius support to MultiSelect component (#1279)
- Fix warnings during SSR in SegmentedControl component (#1284)
- Add accessible name to RadioGroup component (#1285)
- Prioritize actions based on title in default filter function in
@mantine/spotlight
(#1304) - Add ref support to Grid.Col component (#1314)
- Fix issue when it was impossible to override padding with sx or className in Container component
- Fix width and height not repected when inline element is used as root in Avatar component
- Fix values not provided for list fields validation rules in use-form hook
4.1.4
- Add
name
to Dropzone hidden input to support uncontrolled forms - Fix use-fullscreen hook not working with some elements (#1212)
- Fix incorrect position of FloatingTooltip when it is used in flex container (#1219)
- Make MultiSelect search input width take the whole remaining space (#1235)
- Add option to configure clear button tab index in Select, MultiSelect and DatePicker components (#1243)
- Add initial value support to use-media-query, use-color-scheme and use-reduced-motion hooks to avoid hydration mismatches (#1244)
- Fix Notification icon squishing when text is too large (#1215)
- Fix incorrect border styles of Aside component
- Fix incorrect
form
prop handling in Select and MultiSelect components - Add missing
role="alert"
to Alert component (#1269) - Fix
rightSectionWidth
prop not working in NumberInput component (#1266) - Prevent required asterisk from being announced by screen reader in all inputs (#1267)
- Fix incorrect
value
andonChange
types in RichTextEditor component (#1268) - Remove initial item animation from SegmentedColor, fix item not being highlighted during SSR (#1264)
- Add numeric input mode to TimeInput component