fix(deps): update dependency @mantine/hooks to v7.17.8 #3171
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:
7.11.2->7.17.8Release Notes
mantinedev/mantine (@mantine/hooks)
v7.17.8Compare Source
What's Changed
[@mantine/hooks]use-idle: Fix timeout not being cancelled when the parent component unmounts (#7914)[@mantine/core]Collapse: Fixinertattribute being incompatible with React 18 (#7911)[@mantine/core]Overlay: Fix blur not working in older browsers (#7907)[@mantine/core]FixtoRgbafunction incorrectly handling values with zero transparency (#7906)[@mantine/core]ScrollArea: FixonBottomReachednot being called when the container size has sub-pixel value[@mantine/form]Fixform.reorderItemreordering only the first item (#7892)[@mantine/core]Popover: FixonOpen/onClosebeing called whendisabledprop is set (#7868)[@mantine/spotlight]Fix labels containing single quote passed toSpotlight.ActionGroupnot working (#7865)[@mantine/core]Collapse: Fixinertprop 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: FixNaNvalue not being handled correctly (#7851)[@mantine/core]MutltiSelect: FixonPasteprop not being passed to the input element (#7838)[@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]AngleSlider: Fix incorrect thumb position in RTL layouts (#7822)[@mantine/core]Select: FixonSearchChangebeing triggered when controlled search value is updated (#7814)[@mantine/dates]TimeInput: Fixstepprop not working (#7811)[@mantine/core]Table: AddscrollAreaPropssupport to Table.ScrollContainer (#7798)[@mantine/core]Stepper: Fix unexpected bottom spacing in vertical orientation (#7794)[@mantine/core]PasswordInput: Fixaria-describedbynot pointing to error and description elements (#7793)[@mantine/core]Switch: Fixdivelement used inside label (#7776)[@mantine/core]Collapse: Fix children with scale animations not working correctly when collapse is opened (#7774)[@mantine/core]Transition: FixexitDurationnot working correctly for rapid changes (#7773)[@mantine/core]Stepper: Fix inconsistent border color in horizontal/vertical orientation (#7795)New Contributors
Full Changelog: mantinedev/mantine@8.0.2...7.17.8
v7.17.7Compare Source
v7.17.6: 7.17.7Compare Source
What's Changed
[@mantine/core]Table: FixstickyHeaderprop having impact onthselector specificity (#7767)[@mantine.core]NumberInput: Fixmaxprop 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: FixusePhysicalKeysoption 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 defineddefaultValuebeing ignored withdataupdates (#7742)[@mantine/core]ScrollArea: Fix content overflowing the viewport in some cases (#7748)[@mantine/charts]RadarChart: Add tooltip and dots support (#7749)[@mantine/modals]FixconfirmPropsnot available inupdateModalfunction (#7750)[@mantine/hooks]use-debounced-callback: FixflushOnUnmountnot working (#7745)[@mantine/core]Table: Add missing TableScrollContainerProps exportNew Contributors
Full Changelog: mantinedev/mantine@7.17.5...7.17.6
v7.17.5Compare Source
What's Changed
[@mantine/form]Addform.getInitialValueshandler[@mantine/core]RangeSlider: Fix first thumb not being focused when the component root is clicked (#7731)[@mantine/core]PillsInput: Remove lefovermultilineprop 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: Fixwheelevent not being tracked (#7669)[@mantine/core]Table: AddmaxHeightprop support toTable.ScrollContainer(#7713)[@mantine/core]Modal: Fix incorrect Escape key handling during IME composition (#7700)[@mantine/form]AdddefaultCheckedtoform.getInputPropsreturn 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.4Compare Source
What's Changed
[@mantine/hooks]use-orientation: Add option to customize initial values (#7657)[@mantine/core]FixselectFirstOptionOnChangenot 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: FixstickyHeaderprop affecting border rendering (#7658)[@mantine/core]Slider: FixonChangeEndusing stale external state (#7660)New Contributors
Full Changelog: mantinedev/mantine@7.17.3...7.17.4
v7.17.3Compare Source
What's Changed
[@mantine/core]Pill: Fix incorrectremoveButtonPropstype[@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 whendatais 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.2Compare Source
What's Changed
[@mantine/core]Menu: Fix missingwithPropsfunction[@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: AddloaderPropsto pass props down to Loader component (#7577)[@mantine/core]Tooltip: Fixrefprop 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.1Compare Source
What's Changed
[@mantine/core]Select: Fix caret displayed when the readonly input is clicked (#7476)[@mantine/charts]Fix incorrect types ofclassNamesprop of PieChart and DonutChart components (#7475)[@mantine/charts]BubbleChart: Fix broken layout whenlabelprop is used with React 19[@mantine/form]Fix missingisJSONStringexport (#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 forcreateStylesclasses (#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.xseries. The next release will be8.0with 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.0yarnornpm installImportant notes:
Portal reuseTargetNode prop
Portal component now supports
reuseTargetNodeprop 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.0major 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
formRootRuleis 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
isJSONStringandisNotEmptyHTMLform validators:isNotEmptyHTMLchecks that form value is not an empty HTML string. Empty string, string with only HTML tags and whitespace are considered to be empty.isJSONStringchecks that form value is a valid JSON string.Popover onDismiss
Popover now supports
onDismissprop, which makes it easierto subscribe to outside clicks and escape key presses to close popover:
MantineProvider env
MantineProvider component now supports
envprop.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
envtotest: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
middlewaresoverscrollBehaviorproptheme.spacingvalues forpositionpropunderline="not-hover"option to display underline only when the link is not hoveredv7.16.3Compare Source
What's Changed
[@mantine/core]Removeuse clientfromisLightColorfunction[@mantine/core]TextInput: Fix autocomplete forvariantprop 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]Fix0gradientdegvalue 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.2Compare Source
What's Changed
[@mantine/core]Tooltip: Migrate from deprecateduseDelayGroupContexthook touseDelayGroup[@mantine/core]Tabs: FixtabIndex={0}set onTabs.Tabbeing 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.1Compare Source
What's Changed
[@mantine/core]Menu: AddwithInitialFocusPlaceholderprop support[@mantine/core]Slider: FixonChangeEndbeing called whendisabledprop is set[@mantine/core]Add option to customize chevron color withchevronColorprop in Select and MultiSelect components[@mantine/core]Fix incorrect styles of nested tables (#7354)[@mantine/core]: NumberInput: FixonChangebeing called inonBlurif the value has not been changed (#7383)[@mantine/core]Menu: Adddata-disabledprop handling to Menu.Item component (#7377)[@mantine/form]Fix incorrect values handling inform.resetDirty(#7373)[@mantine/chart]AreaChart: FixgridColorandtextColorprops 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.matchMediapolyfill 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.
TableOfContents component
New TableOfContents component is built on top of
use-scroll-spyhookand can be used to create table of contents components like the one on the right side of mantine.dev
documentation sidebar:
Input.ClearButton component
New
Input.ClearButtoncomponent can be used to add clear button to custom inputsbased on
Inputcomponent.sizeof the clear button is automaticallyinherited from the input:
Popover with overlay
Popover and other components based on it now support
withOverlayprop:Container queries in Carousel
You can now use container queries
in Carousel component. With container queries, all responsive values
are adjusted based on the container width, not the viewport width.
Example of using container queries. To see how the grid changes, resize the root element
of the demo with the resize handle located at the bottom right corner of the demo:
RangeSlider restrictToMarks
RangeSlider component now supports
restrictToMarksprop:Pagination withPages prop
Pagination component now supports
withPagesprop which allows hiding pagescontrols and displaying only previous and next buttons:
useForm touchTrigger option
use-form hook now supports
touchTriggeroption that allows customizing events that change touched state.It accepts two options:
change(default) – field will be considered touched when its value changes or it has been focusedfocus– field will be considered touched only when it has been focusedExample of using
focustrigger:Help Center updates
Other changes
clearablepropsyncoption which allows disabling synchronization between browser tabsv7.15.3Compare Source
What's Changed
[@mantine/charts]BarChart: FixtextColorprop being passed down as attribute to the DOM node[@mantine/core]TypographyStylesProvider: Fix incorrect top and bottom margins of first and last elements (#7334)[@mantine/core]Transition: Fix some transitions being incompatible with headless mode (#7306)[@mantine/dates]DateTimePicker: Set milliseconds to 0 on the result date object (#7328)[@mantine/dates]FixhasNextLevelprop type leak to DateTimePicker component (#7319)[@mantine/core]Avatar: Change initials function to use the full name to generate color (#7322)[@mantine/hooks]use-merged-ref: Add support for ref cleanup function in React 19 (#7304)[@mantine/hooks]use-debounced-callback: Addflushmethod to returned callback (#7272)[@mantine/dates]Improve compatibility with dayjs plugins in all components (#7302)[@mantine/core]Update peer dependencies to support React 19 (#7321)New Contributors
Full Changelog: mantinedev/mantine@7.15.2...7.15.3
v7.15.2Compare Source
What's Changed
[@mantine/dates]DatePicker: Fix incorrect handling of receiving partial value whentype="range"(#7278)[@mantine/hooks]use-local-storage: Fix value not being updated whenkeychanges (#7286)[@mantine/charts]FixgridColorprop being passed down as attribute to html element (#7288)[@mantine/core]Update react-textarea-autosize to support React 19 (#7297)[@mantine/core]TypographyStylesProvider: Fix margin removal affecting non-typography elements (#7290)[@mantine/core]Tooltip: Addmiddlewaresprop support (#7281)[@mantine/core]FloatingIndicator: Fix incorrect position calculations when the parent element has border (#7267)[@mantine/core]ScrollArea: Fix scrollbar not changing with the scroll position on first render (#7257, #7260)[@mantine/tiptap]Fix incorrect paragraph styles inside lists (#7255)[@mantine/hooks]Fix incorrect ref types in use-move, use-radial-move, use-in-viewport and use-scroll-into-view (#7252)[@mantine/form]Fix incorrect validators types (#7242)New Contributors
Full Changelog: mantinedev/mantine@7.15.1...7.15.2
v7.15.1Compare Source
What's Changed
[@mantine/dates]Improve focus behavior of DatePickerInput, DateInput and other components[@mantine/form]AddtouchTriggeroption support[@mantine/hooks]Add option to specify prefix inrandonIdfunction[@mantine/core]FixwithPropsfunction requiring all component props instead of partial[@mantine/core]AdduseModalStackContextanduseDrawerStackContexthooks exports[@mantine/core]ActionIcon: Addinput-*autocomplete forsizeprop[@mantine/core]AppShell: Fix incorrect defaultoffsetScrollbarsvalue forlayout="alt"[@mantine/core]FixvirtualColorfunction not working in server components (#7184)[@mantine/core]Checkbox: Fix incorrect Checkbox.Card behavior inside Checkbox.Group (#7187)[@mantine/core]Checkbox: Fix incorrect Checkbox.Card behavior inside Checkbox.Group (#7187)[@mantine/core]Slider: Add option to pass attributes down to thumb withthumbProps(#7214)[@mantine/core]Switch: Add data-checked attribute to the input (#7228)[@mantine/dates]FixhasNextLevelprop type leak to DatePicker component (#7229)[@mantine/dates]Fix timezone not being applied to the formatted value (#7162)[@mantine/modals]FixmodalIdbeing passed to the DOM node as attribute (#7189)[@mantine/core]TypographyStylesProvider: Fix incorrect paragraphs inside lists styles (#7226)[@mantine/core]Slider: Fix icon used as thumb child not being visible with the dark color scheme (#7231, #7232)[@mantine/tiptap]Fix missing border in custom controls (#7239)New Contributors
Full Changelog: mantinedev/mantine@7.15.0...7.15.1
v7.15.0: 💋Compare Source
View changelog with demos on mantine.dev website
Support Mantine development
You can now sponsor Mantine development with OpenCollective.
All funds will be used to improve Mantine and create new features and components.
use-radial-move hook
New use-radial-move hook can be used to create custom radial sliders:
BarChart color based on value
BarChart component now supports
getBarColorprop to assign color based on value.getBarColorfunction is called with two arguments: value and series object. It should return a colorstring (theme color reference or any valid CSS color value).
Button.GroupSection and ActionIcon.GroupSection
ActionIcon.GroupSectionandButton.GroupSectionare new components thatcan be used in
ActionIcon.Group/Button.Groupto create sections that arenot
ActionIcon/Buttoncomponents: