Skip to content

Commit e9c80ab

Browse files
authored
Merge pull request #48 from bartstc/chore/migrate-chakra-v2-to-v3
chore: migrate Chakra UI packages from v2 to v3
2 parents c25f226 + e6811ad commit e9c80ab

54 files changed

Lines changed: 2590 additions & 3029 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.mcp.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"mcpServers": {
3+
"chakra-ui": {
4+
"type": "stdio",
5+
"command": "pnpm",
6+
"args": ["dlx", "@chakra-ui/react-mcp"],
7+
"env": {}
8+
}
9+
}
10+
}

.storybook/preview.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { ChakraProvider, theme } from "@chakra-ui/react";
21
import { initialize, mswLoader } from "msw-storybook-addon";
32
import { createElement } from "react";
43

4+
import { DesignProvider } from "@/app/design/DesignProvider";
55
import { getUserHandler } from "@/test-lib/handlers/get-user-handler";
66
import { withAuth } from "@/test-lib/storybook/with-auth";
77
import { withI18Next } from "@/test-lib/storybook/with-i18next";
@@ -38,7 +38,7 @@ initialize(
3838

3939
export const decorators = [
4040
// eslint-disable-next-line react/no-children-prop, @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-explicit-any
41-
(story: any) => createElement(ChakraProvider, { children: story(), theme }),
41+
(story: any) => createElement(DesignProvider, { children: story() }),
4242
withI18Next,
4343
withReactQuery,
4444
withAuth,

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,13 @@
2626
"storybook": "storybook dev -p 6006"
2727
},
2828
"dependencies": {
29-
"@chakra-ui/icons": "2.1.1",
30-
"@chakra-ui/react": "2.8.2",
29+
"@chakra-ui/react": "3.34.0",
3130
"@emotion/react": "11.13.0",
32-
"@emotion/styled": "11.13.0",
3331
"@fontsource/inter": "4.5.15",
3432
"@tanstack/react-query": "5.90.16",
3533
"@xstate/react": "6.0.0",
36-
"framer-motion": "9.1.7",
34+
"lucide-react": "0.511.0",
35+
"next-themes": "0.4.4",
3736
"i18next": "25.7.4",
3837
"i18next-chained-backend": "4.6.3",
3938
"i18next-http-backend": "3.0.2",

0 commit comments

Comments
 (0)