|
1 | 1 | 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"; |
9 | 3 |
|
10 | 4 | export { |
11 | 5 | ChakraProvider, |
12 | 6 | defaultSystem as chakraDefaultSystem, |
13 | 7 | Box, |
| 8 | + Button, |
| 9 | + Heading, |
| 10 | + Image, |
| 11 | + Text, |
14 | 12 | } from "@chakra-ui/react"; |
15 | 13 |
|
16 | 14 | export type CardProps = { |
@@ -80,38 +78,3 @@ export const Card = ({ |
80 | 78 | </CardRoot> |
81 | 79 | ); |
82 | 80 | }; |
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 | | -}; |
0 commit comments