chore(deps): update dependency @mantine/next to v6 #342
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^5.10.2
->^6.0.0
Release Notes
mantinedev/mantine (@mantine/next)
v6.0.21
Compare Source
Last 6.x patch
This is the last patch for 6.x (at least for a while), next version that will be released is 7.0.0. If you haven't checked v7 yet, you can review it here – https://v7.mantine.dev/
What's Changed
[@mantine/core]
Fix Radio and Checkbox components do not receive padding when a value of 0 is passed into the label prop (#4755)[@mantine/dates]
Fix incorrect accessible name set on DatePickerInput and other similar components (#4750)New Contributors
Full Changelog: mantinedev/mantine@6.0.20...6.0.21
v6.0.20
Compare Source
What's Changed
[@mantine/dates]
Calendar: Fix incorrecthasNextLevel
prop type (#4682)[@mantine/core]
PasswordInput: Setautocomplete="off"
to prevent passwords logging in console (#4564)[@mantine/core]
BackgroundImage: Fix image not loading if given image url contains whitespace (#4715)[@mantine/dates]
Fix: DatePickerInput and DateTimePicker label click does not focusing the input (#4634)[@mantine/core]
PinInput: Fix OTP paste not working from Google Keyboard on Android (#4641)[@mantine/core]
Grid: Fixid
prop not being passed to the root element (#4666)[@mantine/tiptap]
Fix incorrect color displayed in ColorPickerControl (#4667)[@mantine/core]
Anchor: Fix incorrect inherited types from Text (#4695)New Contributors
Full Changelog: mantinedev/mantine@6.0.19...6.0.20
v6.0.19
Compare Source
What's Changed
[@mantine/dates]
DateTimePicker: Add option to get time input ref withtimeInputProps
[@mantine/hooks]
Fix unexpected breaking change introduced inuseResizeObserver
in the previous patch (#4632)[@mantine/dates]
Fix incorrect Calendar prop types definition (#4638)New Contributors
Full Changelog: mantinedev/mantine@6.0.18...6.0.19
v6.0.18
Compare Source
What's Changed
[@mantine/core]
Spoiler: Fix control button flickering on rerender (#4512)[@mantine/tiptap]
Fix incorrect color displayed in color control in dark color scheme (#4560)[@mantine/core]
Pagination: Fix incorrect disabled styles when control node is changed to link (#4578)[@mantine/core]
Modal: Make body's zIndex same as overlay's to allow modals stacking (#4587)[@mantine/core]
Avatar: Fix incorrect placeholder icon dimensions (#4600)[@mantine/dates]
FixdefaultDate
overridingvalue
prop (#4624)New Contributors
Full Changelog: mantinedev/mantine@6.0.17...6.0.18
v6.0.17
Compare Source
What's Changed
[@mantine/carousel]
Remove x.clickAllowed to support embla 8.x (#4357, #4174)[@mantine/core]
PasswordInput: Remove rightSection associated props to avoid confusion (#4436)[@mantine/core]
Menu: Fix up and down keys not working when first Menu.Item is disabled (#4411)[@mantine/spotlight]
Fixtarget
prop not working (#4494)[@mantine/core]
Switch: Fix incorrect label styles in RTL (#4515)[@mantine/core]
Slider: Fix decimal step without precision prop not working (#4538)[@mantine/core]
Rating: FixreadOnly
prop not working withdefaultValue
(#4525)[@mantine/core]
Modal: Migrate to dvh units to fix incorrect styles in mobile Safari (#4517)[@mantine/dates]
DateInput: Decoupleclearable
andallowDeselect
logic, allow disablingallowDeselect
ifclearable
is set (#4527)[@mantine/dates]
DatePickerInput: FixdefaultDate
prop not working (#4532)New Contributors
Full Changelog: mantinedev/mantine@6.0.16...6.0.17
v6.0.16
Compare Source
What's Changed
[@mantine/dates]
DatePicker: FixonMonthSelect
not passed down to Calendar component (#4441)[@mantine/prism]
Fix unexpected code margin when used withinTypographyStylesProvider
(#4452)[@mantine/dates]
DateTimePicker: FixonClick
function fromsubmitButtonProps
overriding default behavior (#4465)[@mantine/dates]
Fix date pickers placeholders not having correct color when parent input has error (#4469)[@mantine/core]
MultiSelect: FixportalProps
prop not working (#4485)[@mantine/core]
Fix rem units errors with svg elements in all components (#4491)[@mantine/dates]
DateInput: Fix stale calendar UI after clear button was clicked (#4486)[@mantine/core]
Slider: FixonChange
prop updates being ignored (#4497)New Contributors
Full Changelog: mantinedev/mantine@6.0.15...6.0.16
v6.0.15
Compare Source
What's Changed
[@mantine/core]
Alert: Fix incorrect close button styles in filled variant[@mantine/core]
Fix incorrect Slider and RangeSlider precision with keyboard events[@mantine/core]
PinInput: Fix incorrect focus behavior whenBackspace
key is pressed (#4438)[@mantine/core]
Table: FixwithColumnBorders
prop not working (#4443)[@mantine/spotlight]
Improve search performance for large actions lists (#4457)New Contributors
Full Changelog: mantinedev/mantine@6.0.14...6.0.15
v6.0.14
Compare Source
What's Changed
[@mantine/hooks]
use-window-event: Improve events type (#4423)[@mantine/core]
MultiSelect: FixhoverOnSearchChange
not working correctly whencreatable
prop is set (#4344)[@mantine/tiptap]
Add option to configure initial state of external link control (#4373)[@mantine/core]
PinInput: Fix incorrect Backspace key handling (#4379)[@mantine/core]
Table: Fix table styles applied to the nested table elements, for example in dropdowns (#4393)[@mantine/core]
Image: Fix image alt overflow in Firefox (#4410)New Contributors
Full Changelog: mantinedev/mantine@6.0.13...6.0.14
v6.0.13
What's Changed
[@mantine/dates]
FixnextIcon
andpreviousIcon
props not passed to Calendar component (#4273)[@mantine/core]
AppShell: Fix wrong padding whennavbarOffsetBreakpoint
andasideOffsetBreakpoint
have the same value (#4281)[@mantine/core]
Select: Fix unexpected horizontal scrollbar in items with long text (#4296)[@mantine/core]
NumberInput: Fix missing disabled controls styles (#4314)[@mantine/core]
Fix Select/MultiSelect scrolling page whentransitionProps
are set (#4327)[@mantine/core]
Chip: Fix unexpected line break when children are not a plain string (#4328)New Contributors
Full Changelog: mantinedev/mantine@6.0.11...6.0.13
v6.0.11
Compare Source
What's Changed
[@mantine/core]
Improve inputs disabled styles handling insidefieldset
elements (#4152)[@mantine/core]
Badge: ExposeBadgeVariant
type (#4215)[@mantine/core]
ThemeIcon: ExposeThemeIconVariant
type (#4216)[@mantine/core]
ColorInput: Add option to set eye dropper aria-label though prop (#4227)[@mantine/core]
ColorPicker: Fix inaccurate numbers rounding in rgba and hex colors converters (#4238)[@mantine/core]
MultiSelect: Fix layout shifts in Safari when input is focused (#4249)[@mantine/core]
Rating: Add CSS color values support incolor
prop (#4251)[@mantine/dates]
Add missingnextIcon
/previousIcon
types to all components (#4180)New Contributors
Full Changelog: mantinedev/mantine@6.0.10...6.0.11
v6.0.10
Compare Source
What's Changed
[@mantine/core]
Remove invalidautocomplete
attribute from JsonInput and ColorInput (#4140)[@mantine/core]
Tabs: Fixaria-controls
set to id of panel that does not exist (#4142)[@mantine/core]
Input: Add icon offset to unstyled input variant (#4119)[@mantine/core]
Popover: Fix incorrectcloseOnClickOutside
logic (#4148)[@mantine/dates]
Add callback function support toweekdayFormat
prop (#4156)[@mantine/core]
MultiSelect: Fix incorrect hovered item index whendisableSelectedItemFiltering
is set and last item is selected (#4168)New Contributors
Full Changelog: mantinedev/mantine@6.0.9...6.0.10
v6.0.9
Compare Source
What's Changed
[@mantine/core]
MutiSelect: Fix error placeholder not respectingtheme.primaryShade
(#4113)[@mantine/core]
Preserve whitespace in Select, MultiSelect and Autocomplete items (#4094)[@mantine/core]
Menu: Fix incorrect click outside logic (#4114)[@mantine/core]
Slider: Fix incorrecttrackContainer
height (#4116)[@mantine/hooks]
use-focus-trap: Fix aria hider not being released when multiple focus traps being used at the same time (#4118)[@mantine/dates]
FixnextIcon
andpreviousIcon
props not working in Calendar based components (#4126)[@mantine/hooks]
use-local-storage: Add dynamic local storagekey
support (#4127)New Contributors
Full Changelog: mantinedev/mantine@6.0.8...6.0.9
v6.0.8
Compare Source
What's Changed
[@mantine/core]
Accordion: Fix chevron width being defined in px instead of rem (#3935)[@mantine/core]
Modal: Add missingsx
prop (#4058)[@mantine/core]
Dialog: Fix viewport overflowing on small screens (#4090)[@mantine/core]
MultiSelect: Add option to get value index inValueCopmonent
(#3928)[@mantine/dates]
DatePickerInput: FixwithCellSpacing
not working (#3993)[@mantine/core]
Menu: Fix incorrect logic foronChange
,onOpen
andonClose
callbacks (#4030)[@mantine/core]
Sorttheme.breakpoints
during theme override merging on MantineProvider (#4051)[@mantine/core]
Notification: Fix incorrect border styles (#4054)[@mantine/dropzone]
ReexportFileRejection
type fromreact-dropzone
(#4065)[@mantine/core]
Slider: Fix slider track not respecting parent container width (#4083)New Contributors
Full Changelog: mantinedev/mantine@6.0.7...6.0.8
v6.0.7
Compare Source
What's Changed
[@mantine/core]
FixportalProps
types and override order in all components (#4009)[@mantine/core]
ColorInput: FixonChange()
executed afteronBlur()
(#4012)[@mantine/dates]
DatePickerInput: fixtype
field always displaying generic value in autocomplete (#4017)[@mantine/core]
Notification: AddwithBorder
prop (#4022)[@mantine/dates]
Fix dates range displayed incorrectly when given dates have time that is close to the next day (#4028)[@mantine/core]
ColorInput: FixonChangeEnd
not being called when color is picked with eyedropper (#4031)[@mantine/core]
Slider: Fix incorrect marks click behavior (#4000)New Contributors
Full Changelog: mantinedev/mantine@6.0.6...6.0.7
v6.0.6
Compare Source
What's Changed
[@mantine/core]
MultiSelect: Fix incorrect default value max-width (#3958)[@mantine/dates]
FixonNextDecade
,onPreviousDecade
and similar handlers not working on some components (#3946)[@mantine/core]
Modal: Fix incorrect close button position when there is no title (#3939)[@mantine/core]
Image: Fix imageProps overrding component props (#3985)[@mantine/form]
Rollbackform.reset
type change (#3956)[@mantine/dates]
Fix page scrolling on ArrowUp/ArrowDown keyboard navigation (#3925)[@mantine/dates]
DateInput: FixdefaultDate
not working (#3950)[@mantine/dates]
Add missing props from DatePicker (#3951)[@mantine/dates]
Fix weekday labeling whendayjs.locale
is used (#3954)[@mantine/core]
MultiSelect: Fix broken styles in Safari (#3980)[@mantine/core]
NumberInput: FixonChange
not being called correctly (#3984)[@mantine/dates]
DatePicker: Fix component throwing error whentype
changes (#3989)[@mantine/core]
NumberInput: AddthousandsSeparator
(#3990)[@mantine/core]
ColorPicker: Fix color picker state not being updated when component is uncontrolled and color swatch is clickedNew Contributors
Full Changelog: mantinedev/mantine@6.0.5...6.0.6
v6.0.5
What's Changed
[@mantine/core]
Change Modal and Drawer to use native scrollbars by default, remove excessive markup (#3854)[@mantine/core]
Drawer: Fix styles api on MantineProvider not working[@mantine/core]
Button: Fix hover styles not overwritten with&:hover
selector (#3920)[@mantine/dates]
Change tab order behavior to match native date pickers (#3876)[@mantine/dates]
Fix tab order withhideOutsideDates
prop (#3849)[@mantine/form]
Fix incorrect form errors behavior withform.resorderListItem
andform.insertListItem
handlers (#3828)[@mantine/core]
Popover: Add option to change offset for each axis individually (#3775)[@mantine/core]
MultiSelect: FixdisableSelectedItemFiltering
prop not working withsearchable
option (#3894)[@mantine/core]
Autocomplete: Fix incorrectaria-
attributes on input element (#3900)[@mantine/core]
TypographyStylesProvider: Fix incorrect breakpoints used in styles (#3902)[@mantine/form]
Allow to specify values partial inform.resetDirty
(#3906)[@mantine/core]
Slider: Fix incorrect behavior when slider is disabled and marks are clicked (#3856)New Contributors
Full Changelog: mantinedev/mantine@6.0.3...6.0.5
v6.0.3
: 6.0.4Compare Source
What's Changed
[@mantine/dates]
Calendar: Improve tab navigation order in decade/year/month views (#3728)[@mantine/core]
Fix NumberInput precision formatting (#3756)[@mantine/hooks]
use-timeout: Memoizeclear
andstart
functions (#3801)[@mantine/core]
Modal: Fix unexpected attributes added to root dom node (#3802)[@mantine/dates]
DatePickerInput: Fix unexpected attributevalueFormat
being added to root dom node (#3804)[@mantine/form]
Fix some object being incorrectly cloned inform.setFieldValue
handler (#3805)[@mantine/tiptap]
Update installation instructions to include tiptap/pm package (#3806)[@mantine/core]
Accordion: Fix parts of lowercase letters being cut off by overflow: hidden (#3812)[@mantine/styles]
Expose theme breakpoints as css variables (#3824)[@mantine/core]
Fix Modal/Drawer content scrolling over header (#3829)[@mantine/core]
Pagination: Fix incorrect chevron icons in RTL (#3809)[@mantine/core]
Select: Fixshadow
prop not working (#3807)[@mantine/core]
Pagination: Fixspacing={0}
nor working[@mantine/form]
Make isEmail validation simpler to allow usage of dots and plus signsNew Contributors
Full Changelog: mantinedev/mantine@6.0.2...6.0.3
v6.0.2
Compare Source
What's Changed
[@mantine/hooks]
use-hash: Fix incorrect hash set fromhashchange
event (#3773)[@mantine/core]
PinInput: FixonComplete
prop firing incorrectly (#3715)[@mantine/core]
Popover: AddonClose
andonOpen
events supports for uncontrolled popovers (#3716)[@mantine/core]
Select: Fix focus loss when pressing tab inside input element (#3744)[@mantine/core]
Anchor: Fixundelrine
prop not working for hover state (#3748)[@mantine/core]
Switch: Fix body scrolling when input is focused (#3752)[@mantine/core]
Popover: Fix incorrect dropdown position whenposition
prop changes (#3753)[@mantine/core]
ScrollArea: Add missingviewportProps
prop to ScrollArea.Autosize (#3760)[@mantine/core]
JsonInput: Fix incorrect serialization logic (#3769)[@mantine/core]
Drawer: Fix incorrect static selector (#3730)New Contributors
Full Changelog: mantinedev/mantine@6.0.1...6.0.2
v6.0.1
Compare Source
What's Changed
[@mantine/core]
SegmentedControl: Fix incorrect border styles in vertical orientation (#3670)[@mantine/core]
Fix incorrect error messages in Popover, HoverCard and Menu components (#3638)[@mantine/core]
Button: Fix incorrect Button.Group styles that contain only one Button (#3667)[@mantine/dates]
Remove disabled level change button from tab order (#3648)[@mantine/core]
Transition: Fix exit duration not working (#3664)[@mantine/core]
Anchor: Fix dimmed color not working (#3668)[@mantine/core]
Alert: Fix content overlap with no title and with close button (#3681)[@mantine/core]
AppShell: Fix incorrect CSS variables (#3687)[@mantine/notifications]
Add static methods to Notifications (#3689)[@mantine/core]
Title: Fix Text props not working (#3690)[@mantine/styles]
Fix incorrect CSS variables parsing in theme functions (#3695)[@mantine/dates]
DateTimePicker: Fix TimeInput now showing when dropdown was closed with month/year picker (#3710)[@mantine/core]
Portal: AddportalProps
prop support (#3696)[@mantine/core]
Tooltip: Fix incorrect arrow border styles (#3693)New Contributors
Full Changelog: mantinedev/mantine@6.0.0...6.0.1
v6.0.0
Compare Source
View changelog with demos on mantine.dev website
Breaking changes
The following changes are breaking. Note that although
we've tried to include all breaking changes with migration guides in the list you still may
experience undocumented changes. If you think that these changes worth including in this list,
let us know by opening an issue on GitHub.
Migration to rem/em units
All Mantine components now use rem units.
1rem
is considered to be16px
with medium text size selected by user, all components will scale based on settings specified in browser.
theme.spacing
,theme.radius
,theme.fontSizes
and other theme properties overridesare now expected to be defined in rem.
theme.breakpoints
are expected to be defined inem
units:You can no longer use addition, subtraction, division, multiplication and other math operations
with theme values in createStyles and sx prop,
use
calc
instead:Automatic px to rem conversion
If you use numbers in Mantine components props, they will be treated as
px
and converted torem
,for example:
The same logic is applied to style props available
in every component:
createStyles breaking changes
createStyles function no longer receives
getRef
as a third argument. Use
getStylesRef
exported from@mantine/core
package instead:@mantine/notifications breaking changes
@mantine/notifications package no longer exports
NotificationsProvider
component. Instead you should addNotifications
component to anypart of your application. This change allows to avoid unnecessary rerenders of child components
when notifications state change. Also
useNotifications
hook is no longer exported from the package.@mantine/rte package deprecation
@mantine/rte
package is deprecated – it will no longer receive updates (last version will remain 5.x)and it may no longer be compatible with
@mantine/core
and@mantine/hooks
packages (6.x and later versions).Migrate to @mantine/tiptap as soon as possible.
@mantine/dates breaking changes
All components from
@mantine/dates
package were rebuilt from scratch.Note that the following list is not full as it is difficult to include all breaking changes
after a full package revamp – follow documentation of component that you use to find out about
all breaking changes.
DatePicker
component was renamed toDatePickerInput
Calendar
component was renamed toDatePicker
TimeInput
component was migrated to nativeinput[type="time"]
as it provides better UX in most browsersTimeRangeInput
component was removed – it is no longer exported from the packageDateRangePicker
andRangeCalendar
components were removed – you can now setup dates range picking in DatePicker and DatePickerInputamountOfMonths
prop was renamed tonumberOfColumns
in all componentsDatePickerInput
(previouslyDatePicker
) component no longer supportsallowFreeInput
prop – use DateInput component insteadDatePicker
(previouslyCalendar
) component no longer supportsdayClassName
anddayStyle
props – usegetDayProps
insteadTheme object changes
You can no longer define
dateFormat
anddatesLocale
in theme,use components prop to specify format instead:
Modal and Drawer breaking changes
Modal and Drawer components
props were renamed:
withFocusReturn
→returnFocus
overflow
→scrollAreaComponent
(scroll now is always handled inside modal/drawer)overlayBlur
→overlayProps.blur
overlayColor
→overlayProps.color
overlayOpacity
→overlayProps.opacity
exitTransitionDuration
→transitionProps.exitDuration
transition
→transitionProps.transition
transitionDuration
→transitionProps.duration
transitionTimingFunction
→transitionProps.timingFunction
Modal
styles API changes:modal
selector was renamed tocontent
Drawer
styles API changes:drawer
selector was renamed tocontent
NumberInput breaking changes
NumberInput component types for
value
,defaultValue
and
onChange
props were changed. It now expects value to benumber | ''
(number or empty string) insteadof
number | undefined
. This change was made to address multiple bugs that happened because it wasnot possible to differentiate controlled and uncontrolled
NumberInput
.Pagination breaking changes
itemComponent
– removed, usegetItemProps
or static components insteadgetItemAriaLabel
– removed, usegetItemProps
prop insteadinitialPage
→defaultValue
page
→value
@mantine/spotlight breaking changes
Spotlight component was migrated to use Modal
under the hood. Its Styles API selectors and some props names were changed – it now supports all Modal component props.
Renamed props:
overlayBlur
→overlayProps.blur
overlayColor
→overlayProps.color
overlayOpacity
→overlayProps.opacity
exitTransitionDuration
→transitionProps.exitDuration
transition
→transitionProps.transition
transitionDuration
→transitionProps.transition
transitionTimingFunction
→transitionProps.timingFunction
Spotlight actions are now fully controlled:
actions
prop no longer accept a callback function, only a list of actionsOther breaking changes
variant="link"
, use Anchor insteaddisabled
,invalid
andwithIcon
selectors are no longer available, they were migrated todata-disabled
,data-invalid
anddata-with-icon
attributesinvalid
andwithIcon
selectors are no longer available, usedata-invalid
anddata-with-icon
attributes withinnerInput
selectorinvalid
prop was renamed toerror
in Input componentclearButtonLabel
andclearButtonTabIndex
props, useclearButtonProps
instead to add any extra props to the clear button@mantine/next
package no longer exportsNextLink
componentorientation
,offset
andspacing
props are no longer supported. This change gives you more freedom on how to organize inputs layout.Group
– you need to manage layout on your sidewithIcon
selector, usedata-with-icon
attribute insteadwithFocusReturn
prop was renamed toreturnFocus
in Modal and Drawer componentspadding
prop instead ofp
to offsetCard.Section
components@tabler/icons-react
(>=2.1.0
) package instead of@tabler/icons
@mantine/core
package no longer exportsGroupedTransition
component, use multiple Transition components insteaduse-scroll-lock
hook is deprecated, all Mantine components now use react-remove-scrollmaxHeight
is removed, it is replaced withmah
style proplabelActive
anddisabled
selectors were removed (replaced withdata-active
anddata-disabled
attributes onlabel
selector),active
selector was renamed toindicator
disallowClose
prop was renamed towithCloseButton
, it also was changed in notifications systemtransition
andtransitionDuration
were renamed totransitionProps
transition
,transitionDuration
andexitTransitionDuration
props were renamed totransitionProps
dot
,showZero
andoverflowCount
. Usedisabled
andlabel
instead to recreate the previous behavior.Variants and sizes on MantineProvider
You can now use MantineProvider to add variants to all Mantine components that support Styles API
and sizes to components that support
size
prop.Variants: