[Snyk] Upgrade @mantine/notifications from 7.12.2 to 7.13.0 - #18
Open
sam-morin wants to merge 1 commit into
Open
[Snyk] Upgrade @mantine/notifications from 7.12.2 to 7.13.0#18sam-morin wants to merge 1 commit into
sam-morin wants to merge 1 commit into
Conversation
Snyk has created this PR to upgrade @mantine/notifications from 7.12.2 to 7.13.0. See this package in npm: https://www.npmjs.com/package/@mantine/notifications See this project in Snyk: https://app.snyk.io/org/sam-morin/project/9fd9e4ed-6ba3-4c48-a884-691d7ff52205?utm_source=github&utm_medium=referral&page=upgrade-pr
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Snyk has created this PR to upgrade @mantine/notifications from 7.12.2 to 7.13.0.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
Release notes
Package name: @mantine/notifications
-
7.13.0 - 2024-09-25
import { Grid } from '@ mantine/core';
import { CompositeChart } from '@ mantine/charts';
import { LineChart } from '@ mantine/charts';
import { ScatterChart } from '@ mantine/charts';
import { BarChart } from '@ mantine/charts';
import { BarChart } from '@ mantine/charts';
- New How to integrate custom input with use-form hook? question
- New Can I remove MultiSelect placeholder when the component has selected values? question
- New How can I load fonts in Remix? question
- New My styles are overridden by Mantine components styles, what should I do? question
- New Why I cannot use one polymorphic component in component prop of another polymorphic component? question
- New Can I use an array of strings as a list in use-form? question
- New demo has been added to Chip component with an example of how to deselect radio chip
- BarChart now supports
-
7.12.2 - 2024-08-30
from @mantine/notifications GitHub release notesView changelog with demos on mantine.dev website
Container queries support in Grid
You can now use container queries
in Grid 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:
function Demo() {
return (
// Wrapper div is added for demonstration purposes only,
// it is not required in real projects
<div style={{ resize: 'horizontal', overflow: 'hidden', maxWidth: '100%' }}>
<Grid
type="container"
breakpoints={{ xs: '100px', sm: '200px', md: '300px', lg: '400px', xl: '500px' }}
>
<Col span={{ base: 12, md: 6, lg: 3 }}>1</Col>
<Col span={{ base: 12, md: 6, lg: 3 }}>2</Col>
<Col span={{ base: 12, md: 6, lg: 3 }}>3</Col>
<Col span={{ base: 12, md: 6, lg: 3 }}>4</Col>
</Grid>
</div>
);
}
CompositeChart component
New CompositeChart component allows using
Line,AreaandBarcharts together in a single chart:import { data } from './data';
function Demo() {
return (
<CompositeChart
h={300}
data={data}
dataKey="date"
unit="$"
maxBarWidth={30}
series={[
{ name: 'Tomatoes', color: 'rgba(18, 120, 255, 0.2)', type: 'bar' },
{ name: 'Apples', color: 'red.8', type: 'line' },
{ name: 'Oranges', color: 'yellow.8', type: 'area' },
]}
/>
);
}
Points labels
LineChart and AreaChart now support
withPointLabelsprop to display labels on data points:import { data } from './data';
function Demo() {
return (
<LineChart
h={300}
data={data}
dataKey="date"
withLegend
withPointLabels
series={[
{ name: 'Apples', color: 'indigo.6' },
{ name: 'Oranges', color: 'blue.6' },
]}
/>
);
}
ScatterChart also supports point labels, but also allows to control which axis should display labels with
pointLabelsprop:import { data } from './data';
function Demo() {
return (
<ScatterChart
h={350}
data={data}
dataKey={{ x: 'age', y: 'BMI' }}
xAxisLabel="Age"
yAxisLabel="BMI"
pointLabels="x"
/>
);
}
BarChart: Mixed stacks
You can now control how BarChart series are stacked by setting
stackIdproperty in series object:import { data } from './data';
function Demo() {
return (
<BarChart
h={300}
data={data}
dataKey="month"
series={[
{ name: 'Smartphones', color: 'violet.6', stackId: 'a' },
{ name: 'Laptops', color: 'blue.6', stackId: 'b' },
{ name: 'Tablets', color: 'teal.6', stackId: 'b' },
]}
/>
);
}
BarChart: Minimum bar size
BarChart now supports
minBarSizeprop to set the minimum size of the bar in px:import { data } from './data';
function Demo() {
return (
<BarChart
h={300}
data={data}
dataKey="month"
withLegend
series={[
{ name: 'Smartphones', color: 'violet.6' },
{ name: 'Laptops', color: 'blue.6' },
{ name: 'Tablets', color: 'teal.6' },
]}
/>
);
}
Help Center updates
Other changes
maxBarWidthprop to set the maximum width of each bar in pxRead more
Commit messages
Package name: @mantine/notifications
Compare
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs