diff --git a/packages/ui/package.json b/packages/ui/package.json index ff28f5a4..b034dfb0 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -3,9 +3,8 @@ "private": true, "version": "0.0.0", "type": "module", - "main": "./dist/index.js", - "module": "./dist/index.js", - "types": "./dist/index.d.ts", + "main": "src/index.ts", + "module": "src/index.ts", "files": [ "dist" ], diff --git a/packages/ui/src/Typography/Typography.tsx b/packages/ui/src/Typography/Typography.tsx index 98f5c529..808129d0 100644 --- a/packages/ui/src/Typography/Typography.tsx +++ b/packages/ui/src/Typography/Typography.tsx @@ -31,8 +31,10 @@ declare module "@mui/material/Typography" { } } -export type TypographyProps = MuiTypographyProps; +export type TypographyProps = MuiTypographyProps & { + children?: React.ReactNode; +}; export const Typography: React.FC = (props) => { - return ; + return {props.children}; }; diff --git a/packages/ui/src/Typography/index.ts b/packages/ui/src/Typography/index.ts new file mode 100644 index 00000000..922c2521 --- /dev/null +++ b/packages/ui/src/Typography/index.ts @@ -0,0 +1 @@ +export * from "./Typography"; diff --git a/packages/ui/src/index.ts b/packages/ui/src/index.ts index a6e43412..4471a9dc 100644 --- a/packages/ui/src/index.ts +++ b/packages/ui/src/index.ts @@ -1,4 +1,5 @@ export * from "./Button"; +export * from "./Typography"; export { ThemeProvider } from "./theme"; export { Color, ColorDark, ColorDynamic } from "./color"; export { useColorScheme } from "./useColorScheme"; diff --git a/packages/ui/tsconfig.app.json b/packages/ui/tsconfig.app.json index 227a6c67..b4f73365 100644 --- a/packages/ui/tsconfig.app.json +++ b/packages/ui/tsconfig.app.json @@ -7,7 +7,6 @@ "module": "ESNext", "skipLibCheck": true, - /* Bundler mode */ "moduleResolution": "bundler", "allowImportingTsExtensions": true, "verbatimModuleSyntax": true, @@ -15,7 +14,6 @@ "noEmit": true, "jsx": "react-jsx", - /* Linting */ "strict": true, "noUnusedLocals": true, "noUnusedParameters": true, diff --git a/packages/ui/tsconfig.node.json b/packages/ui/tsconfig.node.json index 16b7d964..9b2106d1 100644 --- a/packages/ui/tsconfig.node.json +++ b/packages/ui/tsconfig.node.json @@ -3,24 +3,22 @@ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo", "target": "ES2023", "lib": ["ES2023"], - "module": "ESNext", + "module": "NodeNext", "skipLibCheck": true, - /* Node mode for config files */ - "moduleResolution": "node", + "moduleResolution": "nodenext", "types": ["node"], "allowImportingTsExtensions": true, "verbatimModuleSyntax": true, "moduleDetection": "force", "noEmit": true, - /* Linting */ "strict": true, "noUnusedLocals": true, "noUnusedParameters": true, "erasableSyntaxOnly": true, "noFallthroughCasesInSwitch": true, - "noUncheckedSideEffectImports": true, + "noUncheckedSideEffectImports": true }, "include": ["vite.config.ts"] }