-
Notifications
You must be signed in to change notification settings - Fork 18
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
Update idea-frontend (major) - autoclosed #1271
Closed
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
renovate
bot
force-pushed
the
renovate-major-idea-frontend
branch
from
April 18, 2023 16:17
07181d3
to
fdf8abd
Compare
renovate
bot
force-pushed
the
renovate-major-idea-frontend
branch
from
April 19, 2023 09:21
fdf8abd
to
4ba391e
Compare
renovate
bot
force-pushed
the
renovate-major-idea-frontend
branch
from
April 19, 2023 09:24
4ba391e
to
8e623f7
Compare
renovate
bot
force-pushed
the
renovate-major-idea-frontend
branch
from
April 19, 2023 17:28
8e623f7
to
ec66014
Compare
renovate
bot
force-pushed
the
renovate-major-idea-frontend
branch
7 times, most recently
from
September 21, 2023 13:32
b54f538
to
a11ee99
Compare
renovate
bot
force-pushed
the
renovate-major-idea-frontend
branch
6 times, most recently
from
September 27, 2023 16:28
5a94420
to
63d8864
Compare
renovate
bot
force-pushed
the
renovate-major-idea-frontend
branch
11 times, most recently
from
October 5, 2023 19:27
c61eb0f
to
f5aa76b
Compare
renovate
bot
force-pushed
the
renovate-major-idea-frontend
branch
from
October 9, 2023 11:50
f5aa76b
to
c4d707b
Compare
renovate
bot
force-pushed
the
renovate-major-idea-frontend
branch
from
October 9, 2023 12:54
c4d707b
to
9f92f55
Compare
renovate
bot
changed the title
Update idea-frontend (major)
Update idea-frontend (major) - autoclosed
Oct 11, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
None yet
0 participants
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.4.0
->^7.0.0
2.9.14
->3.6.3
^5.16.5
->^6.0.0
^13.3.0
->^14.0.0
^13.5.0
->^14.0.0
^27.5.2
->^29.0.0
^16.11.54
->^18.0.0
^5.34.0
->^6.0.0
^5.34.0
->^6.0.0
^1.2.1
->^2.0.0
^8.5.0
->^9.0.0
^0.31.1
->^1.0.0
^0.45.0
->^1.0.0
^4.9.3
->^5.0.0
^2.4.1
->^3.0.0
^4.7.4
->^5.0.0
^2.1.4
->^3.0.0
^0.32.11
->^1.0.0
Release Notes
mantinedev/mantine (@mantine/form)
v7.0.0
: 🎉Compare Source
Migration to native CSS
Mantine no longer depends on Emotion for styles generation. All
@mantine/*
packages are now shipped with native CSS files which can be imported from
@mantine/{package}/styles.css
,for example:
This change improves performance, reduces bundle size of the library and allows using Mantine
in environments where CSS-in-JS is not supported (or supported with limitations), for example,
Next.js app directory.
Important breaking changes:
createStyles
function is no longer available, use CSS modules or any other styling solution of your choice insteadsx
prop. You can useclassName
orstyle
props instead.styles
prop no longer supports nested selectorsIt is now recommended to use CSS modules to style Mantine components.
To update your project to CSS modules, follow the 6.x → 7.x migration guide.
Vanilla extract integration
If you prefer CSS-in-JS syntax for styling, you can use Vanilla extract
as a TypeScript CSS preprocessor. You will be able to use most of Mantine styling features
with Vanilla extract.
System color scheme support
All components now support system color scheme – when
colorScheme
value isauto
,components will use
prefers-color-scheme
media query to determine if the user prefers light or dark color scheme.Note that
auto
is not the default value. You need to set it manually to enable system color scheme supportboth on MantineProvider and in ColorSchemeScript:
Built-in color scheme manager
MantineProvider now comes with a built-in color scheme manager.
It is no longer required to use any other components to set up color scheme logic.
Color scheme can be changed with useMantineColorScheme hook:
CSS modules and PostCSS preset
CSS modules is now the recommended way to style Mantine components,
although it is not required – you can choose any other styling solution of your choice.
It is also recommended to use postcss-preset-mantine. It includes
mixins and functions to simplify styling of Mantine components. postcss-preset-mantine
is included in all templates.
Global styles
Mantine no longer includes normalize.css. Instead, it uses a bare minimum set of global styles.
These styles are part of the
@mantine/core
package and are applied automatically when you import@mantine/core/styles.css
in your application. Note that these styles cannot be decoupled from therest of the library.
Mantine as a headless UI library
You can now use Mantine as a headless library. To achieve that, just do not import
@mantine/*/styles.css
in your application. Then you will be able to apply styles withStyles API.
createTheme function
createTheme
function is a replacement forMantineThemeOverride
type. Use it to create a themeoverride, it will give you autocomplete for all theme properties:
Components extend functions
All components that support default props or Styles API now have a static
extend
function which allows getting autocomplete when customizingdefaultProps, classNames and styles of the component
on theme:
classNames based on component props
You can now get component props in classNames and styles to conditionally apply styles.
This feature is a more powerful replacement for styles params.
Components CSS variables
You can now customize components CSS variables to change component styles based on its props.
For example, it can be used to add new sizes:
New variants system
All components now have
data-variant
attribute on the root element, even if the component does not have any predefined variants.You can use it to apply styles to all components of the same type on theme:
New sizes system
There are multiple ways to customize component sizes:
data-size
attributeExample of customizing Button size with
data-size
attribute:theme.variantColorResolver
Button, Badge, ActionIcon, ThemeIcon and other
components now support custom variants with variantColorResolver
– it supports both changing colors of existing variants and adding new variants.
rem units scaling
It is now possible to scale rem units. It is useful when you want to change
font-size of
html
/:root
element and preserve Mantine components sizes. For example, if you would like to sethtml
font-size to10px
and scale Mantine components accordingly, you needto set
scale
to1 / (10 / 16)
(16 – default font-size) =1 / 0.625
=1.6
:color prop improvements
All components that support
color
prop now support the following color values:theme.colors
, for example,blue
theme.colors
index reference, for example,blue.5
#fff
,rgba(0, 0, 0, 0.5)
,hsl(0, 0%, 100%)
Components classes
Classes of each component are now available in
Component.classes
object. For example, you canfind Button classes in
Button.classes
.You can use these classes to create components with the same styles as Mantine components:
Theme object changes
theme.lineHeight
is nowtheme.lineHeights
– it is now possible to specify multiple line heights.theme.lineHeights
values are used in the Text component.theme.colorScheme
is no longer available, use useMantineColorScheme to get color scheme valuetheme.dir
is no longer needed, direction is now managed by DirectionProvidertheme.loader
was removed, you can now configure default loader with default props of Loader componenttheme.transitionTimingFunction
was removedtheme.focusRingStyles
was replaced withtheme.focusClassName
theme.activeStyles
was replaced withtheme.activeClassName
theme.globalStyles
was removedtheme.fn
functions were removed, some of the functions are available as standalone utilitiestheme.fontSmoothing
property determines whether font smoothing styles should be applied to the body elementColors generator
New @mantine/colors-generator package is now available to generate
color palettes based on single color value. It is also available as online tool.
Note that it is usually better to generate colors in advance to avoid contrast issues.
New setup for RTL
@mantine/core
package now exports DirectionProvider component, which should be used to configure the direction of the application.useDirection
hook can be used to toggle direction. All components now include RTL styles by default, it is nolonger required to set up additional plugins. See RTL documentation to learn more.
React 18+ only
Starting from version 7.0 Mantine no longer supports older React versions. The minimum supported version is now React 18.
It is required because Mantine components now use useId and useSyncExternalStore
hooks, which are available only in React 18.
left and right section
Components that previously had
rightSection
andicon
props, now useleftSection
instead oficon
.Example of Button sections:
NumberInput changes
NumberInput was migrated to react-number-format.
It now supports more features and has improvements in cursor position management.
Due to migration, some of the props were renamed – follow the documentation to learn about the changes.
Loader changes
Loader component is now built with CSS only. This change improves performance and reduces
HTML output of the component.
Theme object no longer supports
theme.loader
property –it is also now possible to add custom loaders on theme with default props.
Specified Loader will be used in all components that use it under the hood (LoadingOverlay, Button, ActionIcon, Stepper, etc.).
Progress changes
Progress component now supports compound components pattern.
Advanced features that were previously implemented in Progress are now supposed to be implemented with
compound components instead.
Table changes
Table component changes:
Table.Tr
,Table.Td
, etc.borderColor
,withRowBorders
,stripedColor
,highlightOnHoverColor
withBorder
prop was renamed towithTableBorder
fontSize
prop was removed, usefz
style prop insteadTable.ScrollContainer
component to create scrollable tableGroup changes
Group component changes:
position
prop was renamed tojustify
– it now supports alljustify-content
valuesnoWrap
prop was replaced withwrap="nowrap"
,wrap
prop now supports allflex-wrap
valuesspacing
prop was replaced withgap
Group
now supports newpreventGrowOverflow
prop which allows customizing how group items will behave when they grow larger than their dedicated spaceTabs changes
tabsList
renamed tolist
TabProps
type was renamed toTabsTabProps
onTabChange
prop was renamed toonChange
Tabs.List
position
prop was renamed tojustify
, it now supports alljustify-content
valuesButton changes
compact
prop was removed, usesize="compact-XXX"
insteadleftIcon
andrightIcon
props were renamed toleftSection
andrightSection
uppercase
prop was removed, usett
style prop insteadloaderPosition
prop was removed, Loader is now always rendered in the center to prevent layout shiftsAppShell changes
AppShell component was completely rewritten, it now supports more features:
AppShell
now uses compound components pattern:Navbar
,Aside
,Header
andFooter
are no longer exported from@mantine/core
package. Instead, useAppShell.Navbar
,AppShell.Aside
, etc.AppShell
now supports animations when navbar/aside are opened/closedAppShell
no longer supportsfixed
prop – all components haveposition: fixed
styles, static positioning is no longer supportedSimpleGrid changes
SimpleGrid now uses object format to define grid breakpoints and spacing,
it works the same way as style props.
Grid changes
Grid now uses object format in
gutter
,offset
,span
and order props,all props now work the same way as style props.
Image changes
Image component changes:
Image
component no longer includesfigure
and other associated elementscaption
prop is no longer availablewidth
andheight
props are replaced withw
andh
style propsSpotlight changes
Spotlight changes:
SpotlightProvider
was renamed toSpotlight
useSpotlight
hook was removed, usespotlight
object insteadactions
prop now uses a different data formatSpotlight
component now uses compound components pattern for advanced customizationCarousel changes
Carousel now uses object format for responsive values in
slideSize
andslideGap
props instead ofbreakpoints
prop:@mantine/prism deprecation
@mantine/prism
package was deprecated in favor of@mantine/code-highlight
package. The new package uses highlight.js instead of Prism.Fieldset component
New Fieldset component:
Combobox component
The new Combobox component allows building custom select, autocomplete, tags input, multiselect and other
similar components. It is used as a base for updated Autocomplete, Select,
TagsInput and MultiSelect components.
Combobox is very flexible and allows you to have full control over the component rendering and logic.
Advanced features that were previously implemented in Autocomplete, Select
and MultiSelect are now supposed to be implemented with Combobox instead.
You can find 50+
Combobox
examples on this page.TagsInput component
New TagsInput component based on Combobox component.
The component is similar to MultiSelect but allows entering custom values.
withErrorStyles prop
All inputs now support
withErrorStyles
prop, which allows removing error styles from the input.It can be used to apply custom error styles without override, or use other techniques to
indicate error state. For example, it can be used to render an icon in the right section:
hiddenFrom and visibleFrom props
All Mantine components now support
hiddenFrom
andvisibleFrom
props.These props accept breakpoint (
xs
,sm
,md
,lg
,xl
) and hide the component whenviewport width is less than or greater than the specified breakpoint:
Other changes
theme.respectReducedMotion
is now set tofalse
by default – it caused a lot of confusion for users who did not know about itnotifications.updateState
function to update notifications state with a given callbackseparatorMargin
propmainAxis
andcrossAxis
offset configurationradius
prop now affects thumb as well as trackchildren
and options groupsunderline
prop which lets you configure how link will be underlined:hover
(default),always
ornever
target
prop, useportalProps
insteadsizes
prop, use CSS variables to customize sizes on theme insteaduseComponentDefaultProps
hook was renamed to usePropswithinPortal
prop is now true by default in all overlay components (Popover, HoverCard, Tooltip, etc.)AlphaSlider
andHueSlider
components are no longer available, they can be used only as a part of ColorPicker<p />
MediaQuery
component was removed – use CSS modules to apply responsive styleshighlightColor
was renamed tocolor
width
prop, usew
style prop insteadspacing
prop was renamed togap
Input
based componentsicon
prop was renamed toleftSection
variant
prop was renamed totype
@mantine/core
package no longer depends on Radix UI ScrollArea, ScrollArea component is now a native Mantine component – it reduces bundle size, allows setting CSP for styles and improves performance (all styles are now applied with classes instead of inline<style />
tags)opacity
prop was renamed tobackgroundOpacity
to avoid collision withopacity
style propunderline
,color
,strikethrough
,italic
,transform
,align
andweight
prop – use style props insteadinnerRef
prop was renamed toref
x
andy
values inoffsetScrollbars
propTransferList
component is no longer available as a part of@mantine/core
package, instead you can implement it with Combobox component (example)visibilityToggleLabel
andtoggleTabIndex
props, usevisibilityToggleButtonProps
prop insteadbreakpoint
prop, you can apply responsive styles with Styles APIdropdownZIndex
,transitionProps
,withinPortal
,portalProps
andshadow
props, you can now pass these props withpopoverProps
propoverlayProps
,loaderProps
andtransitionProps
now replace props that were previously passed toLoadingOverlay
directlypadding
prop, usep
style prop insteadtransitionDuration
,transition
and other transition related props were replaced withtransitionProps
rootRef
prop which allows using them with Tooltip and other similar componentsv6.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
Configuration
📅 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 has been generated by Mend Renovate. View repository job log here.