@mantine/dates improvements
Calendar component was rebuilt to improved date picking experience. Now user can change level by clicking label between next and previous controls:
Mo | Tu | We | Th | Fr | Sa | Su |
---|---|---|---|---|---|---|
This change is applied to all components that use Calendar: DatePicker, DateRangePicker and RangeCalendar. There are several breaking changes associated with this improvement:
- All @mantine/dates components that use Calendar no longer support
withSelect
andyearsRange
props - Styles API names were changed to include new calendar header
New hooks
use-page-leave hook calls given function when mouse leaves page:
Mouse left the page 0 times
use-input-state hook lets you handle state of native inputs (with event in onChange
handler) and custom inputs (with value in onChange
handler):
New features
Select, MultiSelect and Autocomplete components now support forcing dropdown position:
DropdownPosition
Highlight component now supports changing highlight styles:
You can change styles of highlighted part if you do not like default styles
Card.Section component now supports changing root element:
Other changes
- Popover component now supports
width
prop to set popover body width without Styles API - Modal component now supports
radius
prop - Modals manager now supports
onClose
prop for all modals, callback is called when modal is closed no matter the reason
3.3.0 – 3.4.0 bug fixes
- Fix missing support for margin props in UnstyledButton component
- Fix incorrect initial month displayed for controlled free form DatePicker
- Fix incorrect use-form
getInputProps
type - Fix incorrect Drawer default z-index property
- Fix incorrect value set n hidden input in Select component
- Fix issue when it was not possible to delete last character in controlled searchable Select component
- Fix items filtering logic for searchable Select – now items state can be fully controlled with filter function
- Fix Group component styles with column direction and apart position
- Fix Select, MultiSelect and Autocomplete dropdowns positioning when components are out of viewport
- Fix Popper component not being unmounted when reference element is removed from the dom
- Fix scrollbars displaying under Modal overlay for modals with outside overflow
- Remove unexpected scrollbar from TransferList, Select and MultiSelect components
Feedback
Your feedback is most valuable contribution to the project, please share how you use Mantine, what features are missing and what is done good
Leave feedback