-
Notifications
You must be signed in to change notification settings - Fork 22
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.0.1
4.2.12
->8.0.1
4.2.12
->6.0.22
4.0.0
->5.0.0
Release Notes
mantinedev/mantine (@mantine/core)
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 defaultwrapperProps
prop in all components that support it (Checkbox
,Radio
,Chip
, most inputs) was changed to more strict typereuseTargetNode
prop enabled by defaultsetFieldValue
handler types are now stricterdata-hovered
attribute, use:hover
and:focus
selectors instead to apply styleschromeos
value in the unionNew Contributors
Full Changelog: mantinedev/mantine@7.17.6...8.0.0
v7.17.7
Compare Source
v7.17.6
: 7.17.7Compare Source
What's Changed
[@mantine/core]
Table: FixstickyHeader
prop having impact onth
selector specificity (#7767)[@mantine.core]
NumberInput: Fixmax
prop not reseting value on blur if the value is larger than Number.MAX_SAFE_INTEGER (#7766)[@mantine.hook]
use-resize-observer: Fix width/height not being calculated correctly for elements withbox-sizing: content-box
(#7764)[@mantine/core]
NavLink: FixrightSection={null}
not disabling chevron[@mantine.hook]
use-hotkeys: FixusePhysicalKeys
option not working with spacial keys (#7761)[@mantine/core]
Modal: Fix scrollarea used inside the modal affecting the position of the close button (#7738)[@mantine/core]
Select: Fix defineddefaultValue
being ignored withdata
updates (#7742)[@mantine/core]
ScrollArea: Fix content overflowing the viewport in some cases (#7748)[@mantine/charts]
RadarChart: Add tooltip and dots support (#7749)[@mantine/modals]
FixconfirmProps
not available inupdateModal
function (#7750)[@mantine/hooks]
use-debounced-callback: FixflushOnUnmount
not working (#7745)[@mantine/core]
Table: Add missing TableScrollContainerProps exportNew Contributors
Full Changelog: mantinedev/mantine@7.17.5...7.17.6
v7.17.5
Compare Source
What's Changed
[@mantine/form]
Addform.getInitialValues
handler[@mantine/core]
RangeSlider: Fix first thumb not being focused when the component root is clicked (#7731)[@mantine/core]
PillsInput: Remove lefovermultiline
prop types (#7727)[@mantine/charts]
CompositeChart: Fixtype="stacked"
being confused with BarChart behavior[@mantine/core]
Notification: Allow changing role attribute on the root element (#7682)[@mantine/hooks]
use-idle: Fixwheel
event not being tracked (#7669)[@mantine/core]
Table: AddmaxHeight
prop support toTable.ScrollContainer
(#7713)[@mantine/core]
Modal: Fix incorrect Escape key handling during IME composition (#7700)[@mantine/form]
AdddefaultChecked
toform.getInputProps
return type (#7702)[@mantine/hooks]
use-hotkeys: Update matching logic to include both physical and layout keys (#7708)[@mantine/dates]
Fix day.js isSame function not working correctly for non-Gregorian calendars (#7712)[@mantine.core]
SegmentedControl: Fix animation not working with controlled value (#7721)New Contributors
Full Changelog: mantinedev/mantine@7.17.4...7.17.5
v7.17.4
Compare Source
What's Changed
[@mantine/hooks]
use-orientation: Add option to customize initial values (#7657)[@mantine/core]
FixselectFirstOptionOnChange
not working correctly (#7583)[@mantine/core]
Fix error thrown when Textarea was used on cloudflare workers (#7637)[@mantine/core]
Allow spacing, radius and font-size types augmentation (#7644)[@mantine/core]
ScrollArea: Fix scrollbars being invisible whenoffsetScrollbars='present'
is not set (#7647)[@mantine/core]
TypographyStylesProvider: Fix headings font-family not matching the value defined on the theme (#7651)[@mantine/core]
Paper: Add CSS variable for border-color for easier overrides (#7654)[@mantine/core]
Table: FixstickyHeader
prop affecting border rendering (#7658)[@mantine/core]
Slider: FixonChangeEnd
using stale external state (#7660)New Contributors
Full Changelog: mantinedev/mantine@7.17.3...7.17.4
v7.17.3
Compare Source
What's Changed
[@mantine/core]
Pill: Fix incorrectremoveButtonProps
type[@mantine/modals]
Fixdata-*
attributes not being included in types for confirm and cancel button props[@mantine/core]
Fix incorrect selected option position handling when search changes in Select, MultiSelect, Autocomplete and TagsInput (#7583)[@mantine/core]
SegmentedControl: Fix incorrect indicator position whendata
is updated (#7615)[@mantine/core]
ScrollArea: Fix scrollbars being revealed on hover when hidden withoffsetScrollbars="present"
(#7599)[@mantine/core]
AppShell: Fix disabled prop not removing aside and footer margins (#7609)[@mantine/modals]
Fix incorrect esm exports paths (#7603)[@mantine/core]
Checkbox: Set indeterminate attribute on the DOM node (#7608, #7613)New Contributors
Full Changelog: mantinedev/mantine@7.17.2...7.17.3
v7.17.2
Compare Source
What's Changed
[@mantine/core]
Menu: Fix missingwithProps
function[@mantine/core]
Transition: Fix 1px child elements shift in Chrome for animations with scaling[@mantine/core]
ScrollArea: AddoffsetScrollbars="present"
option support (#7527)[@mantine/core]
Notification: AddloaderProps
to pass props down to Loader component (#7577)[@mantine/core]
Tooltip: Fixref
prop not working correctly on the child element of the tooltip (#7578)[@mantine/core]
Select: Fix dropdown not openning in Firefox (#7539)New Contributors
Full Changelog: mantinedev/mantine@7.17.1...7.17.2
v7.17.1
Compare Source
What's Changed
[@mantine/core]
Select: Fix caret displayed when the readonly input is clicked (#7476)[@mantine/charts]
Fix incorrect types ofclassNames
prop of PieChart and DonutChart components (#7475)[@mantine/charts]
BubbleChart: Fix broken layout whenlabel
prop is used with React 19[@mantine/form]
Fix missingisJSONString
export (#7508)[@mantine/core]
Fix MultiSelect and TagsInputs dropdowns still being opened on click when components were used inside disabled fieldset (#7528)[@mantine/code-highlight]
Fallback unsupported code to plaintext (#7497)[@mantine/emotion]
Improve "Go to definition" support forcreateStyles
classes (#7526)New Contributors
Full Changelog: mantinedev/mantine@7.17.0...7.17.1
v7.17.0
: 🌶️Compare Source
View changelog with demos on mantine.dev website
Last 7.x minor release
This is the last minor release in the
7.x
series. The next release will be8.0
with breaking changes and new features.You are welcome to review the changelog/code and provide feedback and bug reports in Discord or GitHub discussions:
How to update your project dependencies to the new alpha version:
package.json
@mantine/
packages@mantine/
packages to8.0.0-alpha.0
yarn
ornpm install
Important notes:
Portal reuseTargetNode prop
Portal component now supports
reuseTargetNode
prop which allows to reuse the same target node for all instances.This option is more performant than the previous behavior, it is recommended to be enabled.
This option will be enabled by default in the
8.0
major release.To enable reuseTargetNode option in all components that depend on Portal, add the following code
to your theme:
Example usage. In the following example, all three paragraphs will be rendered in the same target node:
use-form formRootRule
formRootRule
is a special rule path that can be used to validate objects and arraysalongside with their nested fields. For example, it is useful when you want to capture
a list of values, validate each value individually and then validate the list itself
to not be empty:
Another example is to validate an object fields combination:
isJSONString and isNotEmptyHTML form validators
New
isJSONString
andisNotEmptyHTML
form validators:isNotEmptyHTML
checks that form value is not an empty HTML string. Empty string, string with only HTML tags and whitespace are considered to be empty.isJSONString
checks that form value is a valid JSON string.Popover onDismiss
Popover now supports
onDismiss
prop, which makes it easierto subscribe to outside clicks and escape key presses to close popover:
MantineProvider env
MantineProvider component now supports
env
prop.It can be used in test environment to disable some features that
might impact tests and/or make it harder to test components:
To enable test environment, set
env
totest
:use-file-dialog hook
New use-file-dialog allows capturing one or more files from the user
without file input element:
Remix deprecation
Remix is deprecated, the documentation related to Remix integration
was removed, use React Router instead. To simplify maintenance,
Remix/React Router templates were archived and will not be updated.
Help center updates
Other changes
middlewares
overscrollBehavior
proptheme.spacing
values forposition
propunderline="not-hover"
option to display underline only when the link is not hoveredv7.16.3
Compare Source
What's Changed
[@mantine/core]
Removeuse client
fromisLightColor
function[@mantine/core]
TextInput: Fix autocomplete forvariant
prop not working[@mantine/carousel]
Fix aria-hidden warning displayed in Chrome console when indicator is clicked (#7414)[@mantine/core]
Fix clear button overlaying input content in Autocomplete and other similar components (#7431)[@mantine/core]
Combobox: Fix incorrect dropdown padding when used with ScrollArea (#7450)[@mantine/core]
Fix0
gradientdeg
value not working correctly (#7444)[@mantine/core]
ScrollArea: Fix user-select being left as none after interaction with scrollbar in some edge cases (#7423)[@mantine/dates]
DateInput: Fix infinite loop in Safari (#7442)New Contributors
Full Changelog: mantinedev/mantine@7.16.2...7.16.3
v7.16.2
Compare Source
What's Changed
[@mantine/core]
Tooltip: Migrate from deprecateduseDelayGroupContext
hook touseDelayGroup
[@mantine/core]
Tabs: FixtabIndex={0}
set onTabs.Tab
being ignored (#7407)[@mantine/core]
Fix chevron icon not being clickable in Select and MultiSelect components (#7395)[@mantine/dates]
MonthPicker: Fix infinite useEffect with use-form in some cases (#7389)[@mantine/hooks]
use-hotkeys: Add better support for non-QUERTY keyboards (#7390)[@mantine/dates]
DateTimePicker: Fix timezone conversion being applied twice (#7400)[@mantine/hooks]
Fix potential dangerous access of ref value in useEffect cleanup (#7404)New Contributors
Full Changelog: mantinedev/mantine@7.16.1...7.16.2
v7.16.1
Compare Source
What's Changed
[@mantine/core]
Menu: AddwithInitialFocusPlaceholder
prop support[@mantine/core]
Slider: FixonChangeEnd
being called whendisabled
prop is set[@mantine/core]
Add option to customize chevron color withchevronColor
prop in Select and MultiSelect components[@mantine/core]
Fix incorrect styles of nested tables (#7354)[@mantine/core]
: NumberInput: FixonChange
being called inonBlur
if the value has not been changed (#7383)[@mantine/core]
Menu: Adddata-disabled
prop handling to Menu.Item component (#7377)[@mantine/form]
Fix incorrect values handling inform.resetDirty
(#7373)[@mantine/chart]
AreaChart: FixgridColor
andtextColor
props being passed as attributes to the DOM node (#7378)[@mantine/hooks]
use-in-viewport: Fix tracking being stopped when used with a dnd library (#7359)[@mantine/core]
MantineProvider: Fix jest tests not running in case there is incorrectwindow.matchMedia
polyfill implementation (#7360)[@mantine/core]
Modal: Fix Escape key not working in old Safari versions (#7358)New Contributors
Full Changelog: mantinedev/mantine@7.16.0...7.16.1
v7.16.0
: 🌶️Compare Source
View changelog with demos on mantine.dev website
use-scroll-spy hook
New use-scroll-spy hook tracks scroll position and returns index of the
element that is currently in the viewport. It is useful for creating
table of contents components (like in mantine.dev sidebar on the right side)
and similar features.