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
onColorSwatchClick
prop - ColorInput now supports
closeOnColorSwatchClick
prop - ColorInput now shows eye dropper in all supported browsers by default
- @mantine/form now exports
TransformedValues
type to get type of transformed values from the form object - RingProgress now supports changing root segment color with
rootColor
prop - Text component now supports
truncate
prop - Stepper component now supports
allowSelectNextSteps
prop - @mantine/form now exports
superstructResolver
to allow schema based validation with superstruct - FileInput and FileButton components now support
capture
prop