-
Notifications
You must be signed in to change notification settings - Fork 21
fix(deps): update mantine (major) #245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
❌ Deploy Preview for operate-first-cloud failed.
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1573ddf
to
b6994c9
Compare
⚠ Artifact update problemRenovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is. ♻ Renovate will retry this branch, including artifacts, only when one of the following happens:
The artifact failure details are included below: File name: package-lock.json
|
|
This PR contains the following updates:
4.2.12
->8.2.2
4.2.12
->8.2.2
4.2.12
->6.0.22
4.0.0
->5.0.0
Release Notes
mantinedev/mantine (@mantine/core)
v8.2.2
Compare Source
What's Changed
[@mantine/core]
Menu: Fix incorrect overflow handling of submenu (#8123)[@mantine/hooks]
use-merged-ref: Fix incorrect handling of React 19 cleanup ref callback (#8118)[@mantine/dates]
TimePicker: Fix incorrect leading zero handling in 12h format (#8120)[@mantine/dates]
TimePicker: Fix min/max values not being enforced for 12h time format (#8107)[@mantine/core]
HoverCard: Improve outside clicks handling (#8097)[@mantine/dates]
Add month and year switching with keyboard to Calendar-based components (#7959)[@mantine/core]
ScrollArea: AddonOverflowChange
prop support toScrollArea.Autosize
(#7972)[@mantine/core]
MultiSelect: AddclearSearchOnChange
prop support (#8068)[@mantine/core]
Select: Fix caret being visible in Firefox when the component is read only (#8063)New Contributors
Full Changelog: mantinedev/mantine@8.2.0...8.2.2
v8.2.1
Compare Source
v8.2.0
: 🔥Compare Source
View changelog with demos on mantine.dev website
Styles API attributes
You now can pass attributes to inner elements of all components that support Styles API with
attributes
prop.For example, it can be used to add data attributes for testing purposes:
Container grid strategy
Container now supports
strategy="grid"
prop which enables morefeatures.
Differences from the default
strategy="block"
:display: grid
instead ofdisplay: block
max-width
on the root element (uses grid template columns instead)Features supported by
strategy="grid"
:strategy="block"
data-breakout
attribute take the entire width of the container's parent elementdata-container
insidedata-breakout
have the same width as the main grid columnExample of using breakout feature:
Tooltip target
New Tooltip
target
prop is an alternative tochildren
. It accepts a string (selector),an HTML element or a ref object with HTML element. Use
target
prop when you donot render tooltip target as JSX element.
Example of using
target
prop with a string selector:HoverCard.Group
HoverCard now supports delay synchronization between multiple instances using
HoverCard.Group
component:use-selection hook
New use-selection hook:
autoSelectOnBlur prop
Select and Autocomplete components now support
autoSelectOnBlur
prop.Use it to automatically select the highlighted option when the input loses focus.
To see this feature in action: select an option with up/down arrows, then click outside the input:
Source edit mode in RichTextEditor
RichTextEditor now supports source edit mode:
Recharts 3 support
You can now use the latest Recharts 3 version with Mantine charts.
@mantine/charts
package was validated to work with both Recharts 2 and Recharts 3 versions.Note that, there might still be some minor issues with Recharts 3, you are welcome to report issues on GitHub.
Other changes
chevronSize
prop value was changed toauto
to allow using dynamic icon sizeschevronIconSize
prop to configure size of the default chevron icon@mantine/core
packageerrorProps
,labelProps
anddescriptionProps
props of all inputs now have stricter types and better IDE autocompleteTypographyStylesProvider
was renamed to justTypography
to simplify usage.TypographyStylesProvider
name is still available but marked as deprecated – it will be removed in9.0.0
release.v8.1.3
Compare Source
What's Changed
[@mantine/core]
Container: Fix base responsive props value not being handled correctly (#8054)[@mantine/form]
Fix type errors with read only array types (#7950)[@mantine/core]
Fix incorrect disabled border color of Checkbox, Radio and Slider (#8053)[@mantine/core]
Combobox: Fixaria-expanded
attribute not being assigned correctly to combobox target[@mantine/core]
Menu: Fix SubMenu having visual arrow offset when default props are set for Popover on theme (#8027)[@mantine/form]
Fixform.resetField
not updating DOM withmode: 'uncontrolled'
(#8050)[@mantine/form]
Add option to triggerwatch
callbacks when nested field value changes (#8026)[@mantine/hooks]
use-move: Fix React 18 compatibility (#8018)[@mantine/dates]
DateTimePicker: AdddefaultDate
prop support (#8023)[@mantine/dates]
DatePickerInput: Fixsize="xs
being slightly different from other inputs[@mantine/dates]
TimePicker: Fix dropdown being visible even whenwithDropdown={false}
is set[@mantine/core]
Popover: FixonClick
not firing on the child of Popover.Target[@mantine/spotlight]
Fix incorrectquery
prop with empty string handling[@mantine/core]
Text: Fix autocomplete not working forsize
prop[@mantine/hooks]
use-debounced-callback: Fix incorrectleading
behavior (#8021)[@mantine/core]
Collapse: AddkeepMounted
prop support (#8013)[@mantine/date]
TimePicker: Fixdisabled
andreadOnly
props not working (#8011)New Contributors
Full Changelog: mantinedev/mantine@8.1.2...8.1.3
v8.1.2
Compare Source
What's Changed
[@mantine/dates]
DatePickerInput: Fix incorrect presets handling[@mantine/dates]
DatePickerInput: FixonDropdownClose
not being called in some cases[@mantine/hooks]
use-scroll-spy: AddscrollHost
option support (#8003)[@mantine/core]
PinInput: Fix incorrect default size (#7990)[@mantine/core]
Fixbdrs
prop not working (#7996)[@mantine/core]
Fixenv
prop not being available on HeadlessMantineProvider (#7992)[@mantine/core]
Fix placeholder overflowing MultiSelect and TagsInput components[@mantine/core]
Popover: fix autoUpdate triggering extra rerenders withkeepMounted
(#7983)New Contributors
Full Changelog: mantinedev/mantine@8.1.1...8.1.2
v8.1.1
Compare Source
What's Changed
[@mantine/hooks]
use-set: Fixunion
method not working correctly (#7981)[@mantine/core]
Popover: Fix incorrect position handling (#7955, #7953)[@mantine/dates]
TimePicker: Fix incorrect empty string handling (#7927)[@mantine/dates]
DatePickerInput: Fix incorrectonChange
type (#7943)[@mantine/dates]
TimePicker: Fix incorrect handling ofmin
/max
values in some cases (#7904)[@mantine/hooks]
use-hotkeys: Fix Escape key not being handled correctly in some browsers (#7928)[@mantine/core]
Tree: Fix detached DOM nodes memory leak (#7940)[@mantine/hooks]
use-debounced-callback: Addcancel
method support (#7965)[@mantine/dates]
DatePicker: Fix incorrect value type fortype="range" (#​7937)
[@mantine/dates]
DatePicker: FixclassName
andstyle
props not working whenpresets
prop is set (#7960)New Contributors
Full Changelog: mantinedev/mantine@8.1.0...8.1.1
v8.1.0
Compare Source
View changelog with demos on mantine.dev website
DatePicker presets
DatePicker, DatePickerInput and DateTimePicker now support
presets
prop that allows you to add custom date presets. Presets are displayed next to the calendar:Calendar headerControlsOrder
Calendar and other components based on it now support
headerControlsOrder
prop.You can use
headerControlsOrder
prop to change the order of header controls. The prop accepts an array of'next' | 'previous' | 'level
. Note that each control can be used only once in the array.Popover middlewares improvements
Popover component now handles
shift
andflip
Floating UIdifferently. Starting from 8.1.0 version, the popover dropdown position is not
changed when the popover is opened.
shift
andflip
middlewares are used onlyonce to calculate the initial position of the dropdown.
This change fixes incorrect flipping/shifting behavior when there is dynamic content
in the dropdown. For example, searchable Select and DatePickerInput without
consistentWeeks
option.use-long-press hook
New use-long-press hook:
Reference area support in charts
BarChart, AreaChart and LineChart
components now support reference area. Reference area is a rectangular area
that can be used to highlight a specific region of the chart:
use-form resetField handler
use-form now has a
resetField
method that resets field value to its initial value:TagsInput isDuplicate prop
You can now use
isDuplicate
prop in TagsInput componentto control how duplicates are detected. It is a function that receives two arguments:
tag value and current tags. The function must return
true
if the value is duplicate.Example of using
isDuplicate
to allow using the same value with different casing:Slider domain prop
Slider component now support
domain
prop that allows settingthe possible range of values independently of the
min
andmax
values:RangeSlider pushOnOverlap prop
RangeSlider component now supports
pushOnOverlap
prop that defineswhether the slider should push the overlapping thumb when the user drags it.
Hooks types exports
@mantine/hooks
package now exports all types used in hooks options and return values.For example, you can now import use-uncontrolled types like this:
Types exported from the library:
zod v4 with use-form
You can now use zod v4 with use-form. To use zod 4:
mantine-form-zod-resolver
to1.2.1
or later version3.25.0
or laterzod
imports withzod/v4
(only if you havezod@3
in yourpackage.json
)zodResolver
withzod4Resolver
in your codeExample with zod v4:
Documentation updates
flush
andflushOnUnmount
featuresOther changes
bdrs
style prop to set border radius.defaultTimeValue
propautoContrast
prop.React.RefObject
->React.RefCallback
), required to fix incorrect ref handling in several cases. For more information, see the issue on GitHub – #7406.React.MutableRefObject
type was replaced withReact.RefObject
in all packages to better support React 19 types.positionDependencies
prop is now deprecated in Tooltip, Popover and other components based on Popover. The prop is no longer required and can be safely removed.positionDependencies
prop will be removed in 9.0 release.v8.0.2
Compare Source
What's Changed
[@mantine/dates]
DateTimePicker: Fix incorrectonChange
value type[@mantine/core]
ScrollArea: FixonBottomReached
not being called when the container size has sub-pixel value[@mantine/dates]
TimePicker: Improve leading zero input handling[@mantine/dates]
TimePicker: Fix setting value to an empty string not reseting displayed time in some cases[@mantine/form]
Fixform.reorderItem
reordering only the first item (#7892)[@mantine/dates]
DateInput: Fix selected month and year not being highlighted (#7897)[@mantine/hooks]
use-local-storage: AddqueueMicrotask
for dispatching update events to fix multiple hook instances synchonization (#7874)[@mantine/dates]
Fix leftover timezone issues after 8.0 strings migration (#7878)[@mantine/form]
Add zod v4 support (#7871)[@mantine/core]
Popover: FixonOpen
/onClose
being called whendisabled
prop is set (#7868)[@mantine/spotlight]
Fix labels containing single quote passed toSpotlight.ActionGroup
not working (#7865)[@mantine/core]
Collapse: Fixinert
prop not being compatible with React 18 (#7864)[@mantine/core]
List: Fix incorrect types whentype="unordered"
(#7861)[@mantine/core]
AngleSlider: Fix incorrect arrow events handling (#7862)[@mantine/dates]
DateInput: Fix Escape key not closing dropdown (#7857)[@mantine/hooks]
use-shallow-effect: FixNaN
value not being handled correctly (#7851)New Contributors
Full Changelog: mantinedev/mantine@8.0.1...8.0.2
v8.0.1
Compare Source
What's Changed
[@mantine/hooks]
use-debounced-callback: Addleading: true
option support (#7841)[@mantine/core]
Tabs: Fix incorrect Tabs.List styles withgrow
prop enabled[@mantine/core]
MutltiSelect: FixonPaste
prop not being passed to the input element (#7838)[@mantine/dates]
TimePicker: Fix up/down arrows not working correctly withstep
prop (#7784)[@mantine/core]
Button: Fix FileButton breaking Button.Group styles (#7835)[@mantine/core]
Modal Fix incorrect header styles with ScrollArea (#7832)[@mantine/dropzone]
Fix status being stuck in rejected state when a file with incorrect mime type is dropped[@mantine/core]
Switch: Fix incorrect thumb position in RTL layouts (#7822)[@mantine/core]
AngleSlider: Fix incorrect thumb position in RTL layouts (#7822)[@mantine/core]
Menu: Fix default props not working in Menu.Sub (#7820)[@mantine/core]
Disable scaling explicit rem units in rem function (#7821)[@mantine/core]
Slider: Fix incorrect track width (#7464)[@mantine/dates]
TimeInput: Fixstep
prop not working (#7811)[@mantine/core]
Select: FixonSearchChange
being triggered when controlled search value is updated (#7814)[@mantine/dropzone]
Migrate back to react-dropzone from react-dropzone-esm[@mantine/code-highlight]
Fix tooltip being cut off in components with 1-2 lines of code (#7816)[@mantine/core]
Fix inconsistent disabled styles in some components, add CSS variables for disabled colors (#7805)[@mantine/dates]
DatePicker: Add selected date highlight in year and month picker fortype="default"
(#7799)[@mantine/core]
Table: AddscrollAreaProps
support to Table.ScrollContainer (#7798)[@mantine/core]
Fix boolean value not being included indata-*
attributes types (#7810)[@mantine/dates]
DateInput: Fix incorrectonChange
value type (#7796)[@mantine/core]
Stepper: Fix unexpected bottom spacing in vertical orientation (#7794)[@mantine/core]
PasswordInput: Fixaria-describedby
not pointing to error and description elements (#7793)[@mantine/core]
Switch: Fixdiv
element used inside label (#7776)[@mantine/dates]
Add empty string handling as empty value (#7780)[@mantine/core]
Collapse: Fix children with scale animations not working correctly when collapse is opened (#7774)[@mantine/core]
Transition: FixexitDuration
not working correctly for rapid changes (#7773)[@mantine/dates]
TimePicker: Fix00
in dropdown not being reachable with arrow keys when it is outside scroll position (#7788)[@mantine/core]
Stepper: Fix inconsistent border color in horizontal/vertical orientation (#7795)[@mantine/core]
Stepper: Fix inconsistent border color in horizontal/vertical orientation (#7795)New Contributors
Full Changelog: mantinedev/mantine@8.0.0...8.0.1
v8.0.0
: 🌶️Compare Source
View changelog with demos on mantine.dev website
Migration guide
This changelog covers breaking changes and new features in Mantine 8.0.
To migrate your application to Mantine 8.0, follow 7.x → 8.x migration guide.
Granular global styles exports
Global styles are now splitted between 3 files:
baseline.css
– a minimal CSS reset, setsbox-sizing: border-box
and changes font propertiesdefault-css-variables.css
– contains all CSS variables generated from the default themeglobal.css
– global classes used in Mantine componentsIf you previously imported individual styles from
@mantine/core
package, you need to update importsto use new files:
If you imported
@mantine/core/styles.css
, no changes are required –all new files are already included in
styles.css
.Menu with submenus
Menu component now supports submenus:
Popover hideDetached
Popover component now supports
hideDetached
prop to configure how the dropdown behaves when the targetelement is hidden with styles (
display: none
,visibility: hidden
, etc.),removed from the DOM, or when the target element is scrolled out of the viewport.
By default,
hideDetached
is enabled – the dropdown is hidden with the target element.You can change this behavior with
hideDetached={false}
. To see the difference, try to scrollthe root element of the following demo:
Date values as strings
All
@mantine/dates
components now use date strings inYYYY-MM-DD
orYYYY-MM-DD HH:mm:ss
format instead of
Date
objects. This change was made to resolve issues related to timezones– now the output of all
@mantine/dates
components does not include any timezone-specific information.Follow 7.x → 8.x migration guide to learn how to update the code to use new string values.
Example of using DatePicker component with string values:
DatesProvider timezone
DatesProvider
component no longer supportstimezone
option – all@mantine/dates
components now use strings in
YYYY-MM-DD HH:mm:ss
format as values and do not containtimezone information.
If you need to handle timezones in your application, you can use a dedicated dates library
(dayjs, luxon, date-fns)
to update timezone values.
Example of using Mantine components with dayjs:
TimePicker component
New TimePicker component is an alternative to
TimeInput that offers more features. It supports 24-hour and 12-hour formats,
dropdown with hours, minutes and seconds, and more.
DateTimePicker component changes
DateTimePicker component now uses TimePicker under
the hood instead of TimeInput. You can now use all TimePicker
features with DateTimePicker component.
Prop
timeInputProps
is no longer available, to pass props down to the underlying TimePickeryou need to use
timePickerProps
prop.Example of enabling dropdown and setting
12h
format for time picker:TimeValue component
New TimeValue component can be used to display a formatted time string
with similar formatting options to TimePicker component.
TimeGrid component
New TimeGrid component allows to capture time value from the user with a
predefined set of time slots:
Heatmap component
New Heatmap component allows to display data in a calendar heatmap format:
CodeHighlight changes
@mantine/code-highlight package no longer depends on
highlight.js. Instead, it now provides a new API based
on adapters that allows using any syntax highlighter of your choice. Out of the box,
@mantine/code-highlight
provides adapters for shiki andhighlight.js.
To learn about the migration process and how to use the new adapters API, check the
updated CodeHighlight documentation and 7.x → 8.x migration guide.
CodeHighlight with shiki
You can now use CodeHighlight component with shiki.
Shiki library provides the most advanced syntax highlighting
for TypeScript and CSS/Sass code. It uses textmate grammars to highlight code (same as in VSCode).
Shiki adapter is recommended if you need to highlight advanced TypeScript (generics, jsx nested in props) or CSS code (custom syntaxes, newest features).
Shiki adapter is used for all code highlighting in Mantine documentation.
To use shiki adapter, you need to install
shiki
package:Then wrap your app with
CodeHighlightAdapterProvider
and providecreateShikiAdapter
asadapter
prop:After that, you can use
CodeHighlight
component in your application:Carousel changes
@mantine/carousel package was updated to use the latest version of
embla-carousel-react
package. This update includes breaking changes:speed
anddraggable
props were removed – they are no longer supported byembla-carousel-react
embla-carousel
andembla-carousel-react
packages explicitlyuseAnimationOffsetEffect
hook was removed – the issue it addressed was fixed inembla-carousel-react
Embla
type export was removed, you should useEmblaCarouselType
fromembla-carousel
insteademblaOptions
propFollow the 7.x → 8.x migration guide to update your application to use the latest version of
@mantine/carousel
.Switch withThumbIndicator
Switch component styles were updated to include indicator inside the thumb.
You can change it by setting
withThumbIndicator
prop:Theme types augmentation
You can now augment
spacing
,radius
,breakpoints
,fontSizes
,lineHeights
,and
shadows
types. To learn more about this feature, follow this guide.Example of types augmentation for
spacing
andradius
:Other changes
size
proppreserveTime
prop, use different component to capture time valuesdisplay: table
styles on the wrapper element of the content. It also now supportscontent
Styles API selector to apply styles to the content element.flex: 0
styles by defaultConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.