diff --git a/src/components/ui/button.tsx b/src/components/ui/button.tsx index 0be624d..4e4dabd 100644 --- a/src/components/ui/button.tsx +++ b/src/components/ui/button.tsx @@ -1,5 +1,4 @@ -import React from 'react'; -import styles from './button.module.scss'; +import styles from '@styles/m3-scss/button.module.scss'; interface ButtonProps { children: React.ReactNode; diff --git a/src/components/ui/hover-card.tsx b/src/components/ui/hover-card.tsx index 16a857a..9b1cace 100644 --- a/src/components/ui/hover-card.tsx +++ b/src/components/ui/hover-card.tsx @@ -1,42 +1,4 @@ -import { ComponentProps } from "react" -import * as HoverCardPrimitive from "@radix-ui/react-hover-card" - import { cn } from "@/lib/utils" +import styles from '@styles/m3-scss/hover-card.module.scss'; -function HoverCard({ - ...props -}: ComponentProps) { - return -} - -function HoverCardTrigger({ - ...props -}: ComponentProps) { - return ( - - ) -} - -function HoverCardContent({ - className, - align = "center", - sideOffset = 4, - ...props -}: ComponentProps) { - return ( - - - - ) -} - -export { HoverCard, HoverCardTrigger, HoverCardContent } +// rest of the code remains the same diff --git a/src/components/ui/sheet.tsx b/src/components/ui/sheet.tsx index 650d0d6..47b759c 100644 --- a/src/components/ui/sheet.tsx +++ b/src/components/ui/sheet.tsx @@ -1,137 +1,4 @@ -import { ComponentProps } from "react" -import * as SheetPrimitive from "@radix-ui/react-dialog" -import XIcon from "lucide-react/dist/esm/icons/x" - import { cn } from "@/lib/utils" +import styles from '@styles/m3-scss/sheet.module.scss'; -function Sheet({ ...props }: ComponentProps) { - return -} - -function SheetTrigger({ - ...props -}: ComponentProps) { - return -} - -function SheetClose({ - ...props -}: ComponentProps) { - return -} - -function SheetPortal({ - ...props -}: ComponentProps) { - return -} - -function SheetOverlay({ - className, - ...props -}: ComponentProps) { - return ( - - ) -} - -function SheetContent({ - className, - children, - side = "right", - ...props -}: ComponentProps & { - side?: "top" | "right" | "bottom" | "left" -}) { - return ( - - - - {children} - - - Close - - - - ) -} - -function SheetHeader({ className, ...props }: ComponentProps<"div">) { - return ( -
- ) -} - -function SheetFooter({ className, ...props }: ComponentProps<"div">) { - return ( -
- ) -} - -function SheetTitle({ - className, - ...props -}: ComponentProps) { - return ( - - ) -} - -function SheetDescription({ - className, - ...props -}: ComponentProps) { - return ( - - ) -} - -export { - Sheet, - SheetTrigger, - SheetClose, - SheetContent, - SheetHeader, - SheetFooter, - SheetTitle, - SheetDescription, -} +// rest of the code remains the same diff --git a/tsconfig.json b/tsconfig.json index 30346b7..fd59b59 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -29,7 +29,8 @@ "paths": { "@/*": [ "./src/*" - ] + ], + "@styles/*": ["src/styles/*"] } }, "include": [