Skip to content

Commit d6d76ad

Browse files
committed
Update to mantine 9.0
1 parent 58078dd commit d6d76ad

11 files changed

Lines changed: 80 additions & 78 deletions

File tree

components/ComponentCanvas/CanvasHeader/CanvasHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export function CanvasHeader({
2929
<div className={classes.header} {...others}>
3030
<Group>
3131
<Box id={slug} style={{ visibility: 'hidden', position: 'absolute', top: -75 }} />
32-
<Text fw={500} mr="md" component="a" href={`#${slug}`}>
32+
<Text fw={500} mr="md" component="a" c="bright" href={`#${slug}`}>
3333
{attributes.title}
3434
</Text>
3535

lib/CardWithStats/CardWithStats.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const stats = [
1010
export function CardWithStats() {
1111
const items = stats.map((stat) => (
1212
<div key={stat.title}>
13-
<Text size="xs" color="dimmed">
13+
<Text size="xs" c="dimmed">
1414
{stat.title}
1515
</Text>
1616
<Text fw={500} size="sm">

lib/CommentHtml/CommentHtml.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Avatar, Group, Paper, Text, TypographyStylesProvider } from '@mantine/core';
1+
import { Avatar, Group, Paper, Text, Typography } from '@mantine/core';
22
import classes from './CommentHtml.module.css';
33

44
export function CommentHtml() {
@@ -17,15 +17,15 @@ export function CommentHtml() {
1717
</Text>
1818
</div>
1919
</Group>
20-
<TypographyStylesProvider className={classes.body}>
20+
<Typography className={classes.body}>
2121
<div
2222
className={classes.content}
2323
dangerouslySetInnerHTML={{
2424
__html:
2525
'<p>I use <a href="https://heroku.com/" rel="noopener noreferrer" target="_blank">Heroku</a> to host my Node.js application, but MongoDB add-on appears to be too <strong>expensive</strong>. I consider switching to <a href="https://www.digitalocean.com/" rel="noopener noreferrer" target="_blank">Digital Ocean</a> VPS to save some cash.</p>',
2626
}}
2727
/>
28-
</TypographyStylesProvider>
28+
</Typography>
2929
</Paper>
3030
);
3131
}

lib/FaqWithImage/FaqWithImage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export function FaqWithImage() {
99
return (
1010
<div className={classes.wrapper}>
1111
<Container size="lg">
12-
<Grid id="faq-grid" gutter={50}>
12+
<Grid id="faq-grid" gap={50}>
1313
<Grid.Col span={{ base: 12, md: 6 }}>
1414
<Image src={image.src} alt="Frequently Asked Questions" />
1515
</Grid.Col>

lib/FeaturesTitle/FeaturesTitle.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export function FeaturesTitle() {
4949

5050
return (
5151
<div className={classes.wrapper}>
52-
<Grid gutter={80}>
52+
<Grid gap={80}>
5353
<Grid.Col span={{ base: 12, md: 5 }}>
5454
<Title className={classes.title} order={2}>
5555
A fully featured React components library for your next project

lib/HeaderMegaMenu/HeaderMegaMenu.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ export function HeaderMegaMenu() {
181181
<IconChevronDown size={16} color={theme.colors.blue[6]} />
182182
</Center>
183183
</UnstyledButton>
184-
<Collapse in={linksOpened}>{links}</Collapse>
184+
<Collapse expanded={linksOpened}>{links}</Collapse>
185185
<a href="#" className={classes.link}>
186186
Learn
187187
</a>

lib/HeroTitle/HeroTitle.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export function HeroTitle() {
1414
React components and hooks library
1515
</h1>
1616

17-
<Text className={classes.description} color="dimmed">
17+
<Text className={classes.description} c="dimmed">
1818
Build fully functional accessible web applications with ease – Mantine includes more than
1919
100 customizable components and hooks to cover you in any situation
2020
</Text>

lib/LeadGrid/LeadGrid.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export function LeadGrid() {
99
<Container my="md">
1010
<SimpleGrid cols={{ base: 1, sm: 2 }} spacing="md">
1111
<Skeleton height={PRIMARY_COL_HEIGHT} radius="md" animate={false} />
12-
<Grid gutter="md">
12+
<Grid gap="md">
1313
<Grid.Col>
1414
<Skeleton height={SECONDARY_COL_HEIGHT} radius="md" animate={false} />
1515
</Grid.Col>

lib/NavbarLinksGroup/NavbarLinksGroup.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export function LinksGroup({ icon: Icon, label, initiallyOpened, links }: LinksG
4545
)}
4646
</Group>
4747
</UnstyledButton>
48-
{hasLinks ? <Collapse in={opened}>{items}</Collapse> : null}
48+
{hasLinks ? <Collapse expanded={opened}>{items}</Collapse> : null}
4949
</>
5050
);
5151
}

package.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,21 @@
2222
"@dnd-kit/core": "^6.3.1",
2323
"@dnd-kit/sortable": "^10.0.0",
2424
"@dnd-kit/utilities": "^3.2.2",
25-
"@mantine/carousel": "8.3.14",
26-
"@mantine/code-highlight": "8.3.14",
27-
"@mantine/core": "8.3.14",
28-
"@mantine/dropzone": "8.3.14",
29-
"@mantine/form": "8.3.14",
30-
"@mantine/hooks": "8.3.14",
31-
"@mantine/spotlight": "8.3.14",
25+
"@mantine/carousel": "9.0.0-alpha.2",
26+
"@mantine/code-highlight": "9.0.0-alpha.2",
27+
"@mantine/core": "9.0.0-alpha.2",
28+
"@mantine/dropzone": "9.0.0-alpha.2",
29+
"@mantine/form": "9.0.0-alpha.2",
30+
"@mantine/hooks": "9.0.0-alpha.2",
31+
"@mantine/spotlight": "9.0.0-alpha.2",
3232
"@mantinex/dev-icons": "^2.0.0",
3333
"@mantinex/mantine-header": "^2.0.0",
3434
"@mantinex/mantine-logo": "^2.0.0",
3535
"@mantinex/mantine-meta": "^2.0.0",
3636
"@next/bundle-analyzer": "^16.1.5",
3737
"@tabler/icons-react": "^3.36.1",
3838
"dayjs": "^1.11.19",
39+
"embla-carousel": "^8.6.0",
3940
"embla-carousel-react": "^8.6.0",
4041
"next": "16.1.6",
4142
"react": "19.2.4",

0 commit comments

Comments
 (0)