Skip to content

Commit 31ca109

Browse files
committed
fix: design system bundling issues
1 parent dbcca22 commit 31ca109

File tree

7 files changed

+1493
-1214
lines changed

7 files changed

+1493
-1214
lines changed

hosts/web/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"@types/react": "19.0.10",
1919
"@types/react-dom": "19.0.4",
2020
"@vitejs/plugin-react-swc": "3.8.0",
21-
"typescript": "5.7.3",
22-
"vite": "6.1.1"
21+
"typescript": "5.8.2",
22+
"vite": "6.2.0"
2323
}
2424
}

hosts/web/vite.config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import { defineConfig } from "vite";
22
import react from "@vitejs/plugin-react-swc";
33

4-
// https://vite.dev/config/
54
export default defineConfig({
65
plugins: [react()],
6+
server: {
7+
open: true,
8+
},
79
});

modules/catalog/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@
3737
"devDependencies": {
3838
"@clean-architecture/shared-kernel": "workspace:*",
3939
"@types/react": "19.0.10",
40-
"quickbundle": "2.9.0",
40+
"quickbundle": "2.10.0",
4141
"react": "19.0.0",
42-
"vitest": "3.0.6"
42+
"vitest": "3.0.8"
4343
},
4444
"peerDependencies": {
4545
"@clean-architecture/shared-kernel": "^0.0.0",

modules/shared-kernel/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@
3535
"watch": "quickbundle watch"
3636
},
3737
"dependencies": {
38-
"@chakra-ui/react": "^3.8.1",
38+
"@chakra-ui/react": "^3.9.0",
3939
"@emotion/react": "^11.14.0",
4040
"@open-vanilla/result": "^3.0.0"
4141
},
4242
"devDependencies": {
43-
"quickbundle": "2.9.0",
43+
"quickbundle": "2.10.0",
4444
"react": "19.0.0",
45-
"vitest": "3.0.6"
45+
"vitest": "3.0.8"
4646
},
4747
"peerDependencies": {
4848
"react": "^18.0.0 || ^19.0.0"

modules/shared-kernel/src/frameworks/designSystem.tsx

Lines changed: 5 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
import type { FunctionComponent, PropsWithChildren, ReactElement } from "react";
2-
import {
3-
Button as ChakraButton,
4-
Card as ChakraCard,
5-
Heading as ChakraHeading,
6-
Image as ChakraImage,
7-
Text as ChakraText,
8-
} from "@chakra-ui/react";
2+
import { Card as ChakraCard, Image } from "@chakra-ui/react";
93

104
export {
115
ChakraProvider,
126
defaultSystem as chakraDefaultSystem,
137
Box,
8+
Button,
9+
Heading,
10+
Image,
11+
Text,
1412
} from "@chakra-ui/react";
1513

1614
export type CardProps = {
@@ -80,38 +78,3 @@ export const Card = ({
8078
</CardRoot>
8179
);
8280
};
83-
84-
export const Button: FunctionComponent<{
85-
readonly children: string;
86-
readonly onClick: () => void;
87-
readonly variant?: "outline" | "solid";
88-
}> = (props) => <ChakraButton {...props} />;
89-
90-
export const Heading: FunctionComponent<{
91-
readonly children: string;
92-
readonly size?:
93-
| "2xl"
94-
| "3xl"
95-
| "4xl"
96-
| "5xl"
97-
| "6xl"
98-
| "7xl"
99-
| "lg"
100-
| "md"
101-
| "sm"
102-
| "xl"
103-
| "xs";
104-
}> = (props) => <ChakraHeading {...props} />;
105-
106-
export const Image: FunctionComponent<{
107-
readonly alt?: string;
108-
readonly rounded?: "md";
109-
readonly src?: string;
110-
}> = (props) => <ChakraImage {...props} />;
111-
112-
export const Text: FunctionComponent<{
113-
readonly children: string;
114-
readonly color?: string;
115-
}> = (props) => {
116-
return <ChakraText {...props} />;
117-
};

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
},
1919
"prettier": "@adbayb/stack/prettier",
2020
"devDependencies": {
21-
"@adbayb/stack": "2.19.0"
21+
"@adbayb/stack": "2.20.0"
2222
},
23-
"packageManager": "pnpm@10.4.1",
23+
"packageManager": "pnpm@10.6.0",
2424
"engines": {
2525
"node": ">=22.0.0",
2626
"npm": "please-use-pnpm",

0 commit comments

Comments
 (0)