Skip to content

Releases: mantinedev/mantine

4.2.9

12 Jun 07:15
Compare
Choose a tag to compare
  • Add option to customize weekend days with weekendDays prop in all @mantine/dates components that use Month 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 and type 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 to false (#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

05 Jun 10:06
Compare
Choose a tag to compare
  • Fix multiple intervals started when interval.start() function is called with use-interval (#1498)
  • Change ServerStyles return type to avoid TypeScript strict mode issues with Next.js (#1569)
  • Fix error not clearing when field value changes after validation with schema in use-form hook

4.2.7

29 May 10:01
Compare
Choose a tag to compare
  • 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

22 May 06:39
Compare
Choose a tag to compare
  • 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

15 May 08:58
Compare
Choose a tag to compare
  • Fix multiple RichTextEditor errors and visual bugs
  • Add missing accessible role to Pagination (#1432)
  • Use style instead of sx 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

08 May 07:13
Compare
Choose a tag to compare
  • 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 and removeSpotlightActions not working correctly in @mantine/spotlight (#1396)
  • Fix Enter key not submitting form in Autocomplete component (#1364)

4.2.2

01 May 08:19
Compare
Choose a tag to compare
  • 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

27 Apr 16:28
Compare
Choose a tag to compare

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

4.1.5

24 Apr 13:47
Compare
Choose a tag to compare
  • 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

17 Apr 08:37
Compare
Choose a tag to compare
  • 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 and onChange 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