Theme based default props
Default props on MantineProvider can now subscribe to theme:
@mantine/form validators
@mantine/form package now exports isNotEmpty, isEmail, matches, isInRange and hasLength functions
to simplify validation of common fields types:
Flagpack extension
New mantine-flagpack extension. It is a set of 4x3 flags as React components based on flagpack. The package is tree shakable – all unused components are not included in the production bundle. All flag components support style props.
Other changes
- ColorPicker component now supports
onColorSwatchClickprop - ColorInput now supports
closeOnColorSwatchClickprop - ColorInput now shows eye dropper in all supported browsers by default
- @mantine/form now exports
TransformedValuestype to get type of transformed values from the form object - RingProgress now supports changing root segment color with
rootColorprop - Text component now supports
truncateprop - Stepper component now supports
allowSelectNextStepsprop - @mantine/form now exports
superstructResolverto allow schema based validation with superstruct - FileInput and FileButton components now support
captureprop