From 276d37db62adf7f171b6b04736f1a39e97561467 Mon Sep 17 00:00:00 2001 From: ariflogs Date: Sat, 8 Mar 2025 15:22:20 +0600 Subject: [PATCH] fix: components target path --- .github/workflows/deploy.yml | 4 +- app/(sink)/demo/components/page.tsx | 2 +- components/ui/{Accordions => }/Accordion.tsx | 0 components/ui/Accordions/index.ts | 1 - components/ui/{Alerts => }/Alert.tsx | 0 components/ui/Alerts/index.ts | 1 - components/ui/{Avatars => }/Avatar.tsx | 0 components/ui/Avatars/index.ts | 1 - components/ui/{Badges => }/Badge.tsx | 0 components/ui/Badges/index.ts | 1 - components/ui/{Cards => }/BasicCard.tsx | 0 components/ui/{Buttons => }/Button.tsx | 0 components/ui/Buttons/index.tsx | 1 - components/ui/{Cards => }/Card.tsx | 0 components/ui/Cards/index.ts | 3 -- components/ui/{Form => }/Checkbox.tsx | 0 components/ui/{Dialog => }/Dialog.tsx | 0 components/ui/Dialog/index.tsx | 1 - components/ui/Form/index.tsx | 7 --- components/ui/{Buttons => }/IconButton.tsx | 0 components/ui/{Form => }/Input.tsx | 1 - components/ui/{Form => }/Label.tsx | 0 components/ui/{Login => }/Login.tsx | 0 components/ui/Login/index.ts | 1 - components/ui/{Menu => }/Menu.tsx | 0 components/ui/Menu/index.ts | 1 - components/ui/{Cards => }/ProductCard.tsx | 0 components/ui/{Form => }/Radio.tsx | 0 components/ui/{Form => }/Select.tsx | 0 components/ui/{Form => }/Switch.tsx | 0 components/ui/{Tabs => }/Tab.tsx | 0 components/ui/Tabs/index.ts | 1 - components/ui/{Text => }/Text.tsx | 0 components/ui/Text/index.tsx | 1 - components/ui/{Form => }/Textarea.tsx | 0 components/ui/index.ts | 23 ++++++--- config/components.ts | 28 +++++------ content/docs/components/checkbox.mdx | 2 +- content/docs/components/radio.mdx | 2 +- content/docs/components/select.mdx | 2 +- content/docs/components/switch.mdx | 2 +- content/docs/install/nextjs.mdx | 2 +- public/r/accordion.json | 5 +- public/r/alert.json | 5 +- public/r/avatar.json | 5 +- public/r/badge.json | 5 +- public/r/button.json | 5 +- public/r/card.json | 5 +- public/r/checkbox.json | 5 +- public/r/dialog.json | 7 +-- public/r/input.json | 7 +-- public/r/label.json | 5 +- public/r/menu.json | 5 +- public/r/radio.json | 5 +- public/r/select.json | 5 +- public/r/switch.json | 5 +- public/r/tab.json | 5 +- public/r/text.json | 5 +- public/r/textarea.json | 5 +- registry.json | 51 +++++++++++++------- 60 files changed, 124 insertions(+), 104 deletions(-) rename components/ui/{Accordions => }/Accordion.tsx (100%) delete mode 100644 components/ui/Accordions/index.ts rename components/ui/{Alerts => }/Alert.tsx (100%) delete mode 100644 components/ui/Alerts/index.ts rename components/ui/{Avatars => }/Avatar.tsx (100%) delete mode 100644 components/ui/Avatars/index.ts rename components/ui/{Badges => }/Badge.tsx (100%) delete mode 100644 components/ui/Badges/index.ts rename components/ui/{Cards => }/BasicCard.tsx (100%) rename components/ui/{Buttons => }/Button.tsx (100%) delete mode 100644 components/ui/Buttons/index.tsx rename components/ui/{Cards => }/Card.tsx (100%) delete mode 100644 components/ui/Cards/index.ts rename components/ui/{Form => }/Checkbox.tsx (100%) rename components/ui/{Dialog => }/Dialog.tsx (100%) delete mode 100644 components/ui/Dialog/index.tsx delete mode 100644 components/ui/Form/index.tsx rename components/ui/{Buttons => }/IconButton.tsx (100%) rename components/ui/{Form => }/Input.tsx (96%) rename components/ui/{Form => }/Label.tsx (100%) rename components/ui/{Login => }/Login.tsx (100%) delete mode 100644 components/ui/Login/index.ts rename components/ui/{Menu => }/Menu.tsx (100%) delete mode 100644 components/ui/Menu/index.ts rename components/ui/{Cards => }/ProductCard.tsx (100%) rename components/ui/{Form => }/Radio.tsx (100%) rename components/ui/{Form => }/Select.tsx (100%) rename components/ui/{Form => }/Switch.tsx (100%) rename components/ui/{Tabs => }/Tab.tsx (100%) delete mode 100644 components/ui/Tabs/index.ts rename components/ui/{Text => }/Text.tsx (100%) delete mode 100644 components/ui/Text/index.tsx rename components/ui/{Form => }/Textarea.tsx (100%) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 69e1ec5..e9b4c09 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -24,8 +24,8 @@ jobs: - name: Build and push to DockerHub run: | - docker build -t devarifhossain/retroui:1.1.3 ./ - docker push devarifhossain/retroui:1.1.3 + docker build -t devarifhossain/retroui:1.1.4 ./ + docker push devarifhossain/retroui:1.1.4 # - name: Set up SSH # uses: webfactory/ssh-agent@v0.9.0 diff --git a/app/(sink)/demo/components/page.tsx b/app/(sink)/demo/components/page.tsx index e2dec4c..88269e0 100644 --- a/app/(sink)/demo/components/page.tsx +++ b/app/(sink)/demo/components/page.tsx @@ -17,7 +17,7 @@ import { TabsTriggerList, } from "@/components/ui"; import { Card } from "@/components/ui/Cards/Card"; -import { RadioGroup } from "@/components/ui/Form/Radio"; +import { RadioGroup } from "@/components/ui/Radio"; import BadgeStyleVariants from "@/preview/components/badge-style-variants"; import TestimonialCard from "@/preview/components/card-style-testimonial"; import { CheckCircle } from "lucide-react"; diff --git a/components/ui/Accordions/Accordion.tsx b/components/ui/Accordion.tsx similarity index 100% rename from components/ui/Accordions/Accordion.tsx rename to components/ui/Accordion.tsx diff --git a/components/ui/Accordions/index.ts b/components/ui/Accordions/index.ts deleted file mode 100644 index c836ea7..0000000 --- a/components/ui/Accordions/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./Accordion" \ No newline at end of file diff --git a/components/ui/Alerts/Alert.tsx b/components/ui/Alert.tsx similarity index 100% rename from components/ui/Alerts/Alert.tsx rename to components/ui/Alert.tsx diff --git a/components/ui/Alerts/index.ts b/components/ui/Alerts/index.ts deleted file mode 100644 index b8e17a0..0000000 --- a/components/ui/Alerts/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./Alert"; diff --git a/components/ui/Avatars/Avatar.tsx b/components/ui/Avatar.tsx similarity index 100% rename from components/ui/Avatars/Avatar.tsx rename to components/ui/Avatar.tsx diff --git a/components/ui/Avatars/index.ts b/components/ui/Avatars/index.ts deleted file mode 100644 index 99b435d..0000000 --- a/components/ui/Avatars/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./Avatar" \ No newline at end of file diff --git a/components/ui/Badges/Badge.tsx b/components/ui/Badge.tsx similarity index 100% rename from components/ui/Badges/Badge.tsx rename to components/ui/Badge.tsx diff --git a/components/ui/Badges/index.ts b/components/ui/Badges/index.ts deleted file mode 100644 index f6de35c..0000000 --- a/components/ui/Badges/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./Badge" \ No newline at end of file diff --git a/components/ui/Cards/BasicCard.tsx b/components/ui/BasicCard.tsx similarity index 100% rename from components/ui/Cards/BasicCard.tsx rename to components/ui/BasicCard.tsx diff --git a/components/ui/Buttons/Button.tsx b/components/ui/Button.tsx similarity index 100% rename from components/ui/Buttons/Button.tsx rename to components/ui/Button.tsx diff --git a/components/ui/Buttons/index.tsx b/components/ui/Buttons/index.tsx deleted file mode 100644 index 9c89e23..0000000 --- a/components/ui/Buttons/index.tsx +++ /dev/null @@ -1 +0,0 @@ -export * from "./Button" \ No newline at end of file diff --git a/components/ui/Cards/Card.tsx b/components/ui/Card.tsx similarity index 100% rename from components/ui/Cards/Card.tsx rename to components/ui/Card.tsx diff --git a/components/ui/Cards/index.ts b/components/ui/Cards/index.ts deleted file mode 100644 index 70f655b..0000000 --- a/components/ui/Cards/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from "./Card"; -export * from "./BasicCard"; -export * from "./ProductCard"; diff --git a/components/ui/Form/Checkbox.tsx b/components/ui/Checkbox.tsx similarity index 100% rename from components/ui/Form/Checkbox.tsx rename to components/ui/Checkbox.tsx diff --git a/components/ui/Dialog/Dialog.tsx b/components/ui/Dialog.tsx similarity index 100% rename from components/ui/Dialog/Dialog.tsx rename to components/ui/Dialog.tsx diff --git a/components/ui/Dialog/index.tsx b/components/ui/Dialog/index.tsx deleted file mode 100644 index 24cc75a..0000000 --- a/components/ui/Dialog/index.tsx +++ /dev/null @@ -1 +0,0 @@ -export * from "./Dialog"; diff --git a/components/ui/Form/index.tsx b/components/ui/Form/index.tsx deleted file mode 100644 index 26c998e..0000000 --- a/components/ui/Form/index.tsx +++ /dev/null @@ -1,7 +0,0 @@ -export * from "./Textarea"; -export * from "./Checkbox"; -export * from "./Radio"; -export * from "./Select"; -export * from "./Switch"; -export * from "./Label"; -export * from "./Input"; diff --git a/components/ui/Buttons/IconButton.tsx b/components/ui/IconButton.tsx similarity index 100% rename from components/ui/Buttons/IconButton.tsx rename to components/ui/IconButton.tsx diff --git a/components/ui/Form/Input.tsx b/components/ui/Input.tsx similarity index 96% rename from components/ui/Form/Input.tsx rename to components/ui/Input.tsx index 5882cba..798f84a 100644 --- a/components/ui/Form/Input.tsx +++ b/components/ui/Input.tsx @@ -10,7 +10,6 @@ export const Input: React.FC = ({ className = "", ...props }) => { - console.log(props); return ( diff --git a/content/docs/components/radio.mdx b/content/docs/components/radio.mdx index daf8832..dd8a8f6 100644 --- a/content/docs/components/radio.mdx +++ b/content/docs/components/radio.mdx @@ -4,7 +4,7 @@ description: Sometimes you need to pick multiple options! That's where the Radio lastUpdated: 20 Feb, 2024 links: api_reference: https://www.radix-ui.com/primitives/docs/components/radio-group#api-reference - source: https://github.com/Logging-Stuff/RetroUI/blob/main/components/ui/Form/Radio.tsx + source: https://github.com/Logging-Stuff/RetroUI/blob/main/components/ui/Radio.tsx --- diff --git a/content/docs/components/select.mdx b/content/docs/components/select.mdx index 1818faa..3a35497 100644 --- a/content/docs/components/select.mdx +++ b/content/docs/components/select.mdx @@ -4,7 +4,7 @@ description: Let your users pick what they want. lastUpdated: 1 Mar, 2024 links: api_reference: https://www.radix-ui.com/primitives/docs/components/select#api-reference - source: https://github.com/Logging-Stuff/RetroUI/blob/main/components/ui/Form/Select.tsx + source: https://github.com/Logging-Stuff/RetroUI/blob/main/components/ui/Select.tsx --- diff --git a/content/docs/components/switch.mdx b/content/docs/components/switch.mdx index cfab5c3..99e77a3 100644 --- a/content/docs/components/switch.mdx +++ b/content/docs/components/switch.mdx @@ -4,7 +4,7 @@ description: Let users to turn on or off your marketing emails or notifications. lastUpdated: 20 Feb, 2024 links: api_reference: https://www.radix-ui.com/primitives/docs/components/switch#api-reference - source: https://github.com/Logging-Stuff/RetroUI/blob/main/components/ui/Form/switch.tsx + source: https://github.com/Logging-Stuff/RetroUI/blob/main/components/ui/switch.tsx --- diff --git a/content/docs/install/nextjs.mdx b/content/docs/install/nextjs.mdx index 60ccc44..b8ed1b3 100644 --- a/content/docs/install/nextjs.mdx +++ b/content/docs/install/nextjs.mdx @@ -54,7 +54,7 @@ npm install class-variance-authority After installing the component in your project, you can then simply import it like this: ```tsx -import { Button } from "@/components/ui/Button"; +import { Button } from "@/components/retroui/Button"; export default function ButtonExample() { return ; diff --git a/public/r/accordion.json b/public/r/accordion.json index 2a0d09b..a4c1e43 100644 --- a/public/r/accordion.json +++ b/public/r/accordion.json @@ -10,9 +10,10 @@ ], "files": [ { - "path": "components/ui/Accordions/Accordion.tsx", + "path": "components/ui/Accordion.tsx", "content": "\"use client\";\n\nimport * as React from \"react\";\nimport * as AccordionPrimitive from \"@radix-ui/react-accordion\";\nimport { ChevronDown } from \"lucide-react\";\n\nimport { cn } from \"@/lib/utils\";\n\nconst Accordion = AccordionPrimitive.Root;\n\nconst AccordionItem = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\nAccordionItem.displayName = AccordionPrimitive.Item.displayName;\n\nconst AccordionHeader = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, children, ...props }, ref) => (\n \n svg]:rotate-180\",\n className\n )}\n {...props}\n >\n {children}\n \n \n \n));\nAccordionHeader.displayName = AccordionPrimitive.Header.displayName;\n\nconst AccordionContent = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, children, ...props }, ref) => (\n \n
{children}
\n \n));\n\nAccordionContent.displayName = AccordionPrimitive.Content.displayName;\n\nconst AccordionComponent = Object.assign(Accordion, {\n Item: AccordionItem,\n Header: AccordionHeader,\n Content: AccordionContent,\n});\n\nexport { AccordionComponent as Accordion };\n", - "type": "registry:component" + "type": "registry:component", + "target": "components/retroui/Accordion.tsx" } ] } \ No newline at end of file diff --git a/public/r/alert.json b/public/r/alert.json index d2e4da8..0db8dd7 100644 --- a/public/r/alert.json +++ b/public/r/alert.json @@ -9,9 +9,10 @@ ], "files": [ { - "path": "components/ui/Alerts/Alert.tsx", + "path": "components/ui/Alert.tsx", "content": "import { HtmlHTMLAttributes } from \"react\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\n\nimport { cn } from \"@/lib/utils\";\nimport { Text } from \"@/components/ui/Text\";\n\nconst alertVariants = cva(\"relative w-full border-2 border-black p-4\", {\n variants: {\n variant: {\n default: \"bg-primary-300 text-foreground\",\n solid: \"bg-black text-white\",\n },\n status: {\n error: \"bg-red-300 text-red-800 border-red-800\",\n success: \"bg-green-300 text-green-800 border-green-800\",\n warning: \"bg-yellow-300 text-yellow-800 border-yellow-800\",\n info: \"bg-blue-300 text-blue-800 border-blue-800\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n});\n\ninterface IAlertProps\n extends HtmlHTMLAttributes,\n VariantProps {}\n\nconst Alert = ({ className, variant, status, ...props }: IAlertProps) => (\n \n);\nAlert.displayName = \"Alert\";\n\ninterface IAlertTitleProps extends HtmlHTMLAttributes {}\nconst AlertTitle = ({ className, ...props }: IAlertTitleProps) => (\n \n);\nAlertTitle.displayName = \"AlertTitle\";\n\ninterface IAlertDescriptionProps\n extends HtmlHTMLAttributes {}\nconst AlertDescription = ({ className, ...props }: IAlertDescriptionProps) => (\n
\n);\n\nAlertDescription.displayName = \"AlertDescription\";\n\nconst AlertComponent = Object.assign(Alert, {\n Title: AlertTitle,\n Description: AlertDescription,\n});\n\nexport { AlertComponent as Alert };\n", - "type": "registry:component" + "type": "registry:component", + "target": "components/retroui/Alert.tsx" } ] } \ No newline at end of file diff --git a/public/r/avatar.json b/public/r/avatar.json index ddcd372..1dd3c75 100644 --- a/public/r/avatar.json +++ b/public/r/avatar.json @@ -9,9 +9,10 @@ ], "files": [ { - "path": "components/ui/Avatars/Avatar.tsx", + "path": "components/ui/Avatar.tsx", "content": "import * as React from \"react\";\nimport * as AvatarPrimitive from \"@radix-ui/react-avatar\";\n\nimport { cn } from \"@/lib/utils\";\n\nconst Avatar = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\nAvatar.displayName = \"Avatar\";\n\nconst AvatarImage = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\nAvatarImage.displayName = \"Avatar.Image\";\n\nconst AvatarFallback = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\nAvatarFallback.displayName = \"Avatar.Fallback\";\n\nconst AvatarComponent = Object.assign(Avatar, {\n Image: AvatarImage,\n Fallback: AvatarFallback,\n});\n\nexport { AvatarComponent as Avatar };\n", - "type": "registry:component" + "type": "registry:component", + "target": "components/retroui/Avatar.tsx" } ] } \ No newline at end of file diff --git a/public/r/badge.json b/public/r/badge.json index 281d152..4b5e575 100644 --- a/public/r/badge.json +++ b/public/r/badge.json @@ -9,9 +9,10 @@ ], "files": [ { - "path": "components/ui/Badges/Badge.tsx", + "path": "components/ui/Badge.tsx", "content": "import { cn } from \"@/lib/utils\";\nimport { cva, VariantProps } from \"class-variance-authority\";\nimport React, { HTMLAttributes } from \"react\";\n\nconst badgeVariants = cva(\"font-semibold \", {\n variants: {\n variant: {\n default: \"bg-gray-200 text-gray-700\",\n outline: \"outline outline-2 outline-black text-black\",\n solid: \"bg-black text-white\",\n surface: \"outline outline-2 bg-primary-300 text-black\",\n },\n size: {\n sm: \"px-2 py-1 text-xs\",\n md: \"px-2.5 py-1.5 text-sm\",\n lg: \"px-3 py-2 text-base\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"md\",\n },\n});\n\ninterface ButtonProps\n extends HTMLAttributes,\n VariantProps {}\n\nexport function Badge({\n children,\n size = \"md\",\n variant = \"default\",\n className = \"\",\n ...props\n}: ButtonProps) {\n return (\n \n {children}\n \n );\n}\n", - "type": "registry:component" + "type": "registry:component", + "target": "components/retroui/Badge.tsx" } ] } \ No newline at end of file diff --git a/public/r/button.json b/public/r/button.json index 1b9e2b2..378dc69 100644 --- a/public/r/button.json +++ b/public/r/button.json @@ -9,9 +9,10 @@ ], "files": [ { - "path": "components/ui/Buttons/Button.tsx", + "path": "components/ui/Button.tsx", "content": "import { cn } from \"@/lib/utils\";\nimport { cva, VariantProps } from \"class-variance-authority\";\nimport React, { ButtonHTMLAttributes } from \"react\";\n\nconst buttonVariants = cva(\"font-head transition-all outline-none\", {\n variants: {\n variant: {\n default:\n \"shadow-md hover:shadow-xs bg-primary-400 text-black border-2 border-black hover:bg-primary-500\",\n outline:\n \"shadow-md hover:shadow-xs bg-transparent text-black border-2 border-black\",\n link: \"bg-transparent text-black hover:underline\",\n },\n size: {\n sm: \"px-4 py-1 text-sm\",\n md: \"px-6 py-2 text-base\",\n lg: \"px-8 py-3 text-lg\",\n },\n },\n defaultVariants: {\n size: \"md\",\n variant: \"default\",\n },\n});\n\nexport interface IButtonProps\n extends ButtonHTMLAttributes,\n VariantProps {}\n\nexport const Button = React.forwardRef(\n (\n {\n children,\n size = \"md\",\n className = \"\",\n variant = \"default\",\n ...props\n }: IButtonProps,\n forwardedRef\n ) => (\n \n {children}\n \n )\n);\n\nButton.displayName = \"Button\";\n", - "type": "registry:component" + "type": "registry:component", + "target": "components/retroui/Button.tsx" } ] } \ No newline at end of file diff --git a/public/r/card.json b/public/r/card.json index c9ea440..830c68d 100644 --- a/public/r/card.json +++ b/public/r/card.json @@ -6,9 +6,10 @@ "description": "A customizable card component to visualize your content. 📝", "files": [ { - "path": "components/ui/Cards/Card.tsx", + "path": "components/ui/Card.tsx", "content": "import { cn } from \"@/lib/utils\";\nimport { HTMLAttributes } from \"react\";\nimport { Text } from \"@/components/ui/Text\";\n\ninterface ICardProps extends HTMLAttributes {\n className?: string;\n}\n\nconst Card = ({ className, ...props }: ICardProps) => {\n return (\n \n );\n};\n\nconst CardHeader = ({ className, ...props }: ICardProps) => {\n return (\n \n );\n};\n\nconst CardTitle = ({ className, ...props }: ICardProps) => {\n return ;\n};\n\nconst CardDescription = ({ className, ...props }: ICardProps) => (\n

\n);\n\nconst CardContent = ({ className, ...props }: ICardProps) => {\n return

;\n};\n\nconst CardComponent = Object.assign(Card, {\n Header: CardHeader,\n Title: CardTitle,\n Description: CardDescription,\n Content: CardContent,\n});\n\nexport { CardComponent as Card };\n", - "type": "registry:component" + "type": "registry:component", + "target": "components/retroui/Card.tsx" } ] } \ No newline at end of file diff --git a/public/r/checkbox.json b/public/r/checkbox.json index 2fb9c56..5e49c26 100644 --- a/public/r/checkbox.json +++ b/public/r/checkbox.json @@ -11,9 +11,10 @@ ], "files": [ { - "path": "components/ui/Form/Checkbox.tsx", + "path": "components/ui/Checkbox.tsx", "content": "import { cn } from \"@/lib/utils\";\nimport * as CheckboxPrimitive from \"@radix-ui/react-checkbox\";\nimport { cva, VariantProps } from \"class-variance-authority\";\nimport { Check } from \"lucide-react\";\n\nconst checkboxVariants = cva(\"border-black border-2\", {\n variants: {\n variant: {\n default: \" data-[state=checked]:bg-primary-500\",\n outline: \"\",\n solid: \"data-[state=checked]:bg-black *:text-white\",\n },\n size: {\n sm: \"h-4 w-4\",\n md: \"h-5 w-5\",\n lg: \"h-6 w-6\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"md\",\n },\n});\n\ninterface CheckboxProps\n extends React.ComponentProps,\n VariantProps {}\n\nexport const Checkbox = ({\n className,\n size,\n variant,\n ...props\n}: CheckboxProps) => (\n \n \n \n \n \n);\n", - "type": "registry:component" + "type": "registry:component", + "target": "components/retroui/Checkbox.tsx" } ] } \ No newline at end of file diff --git a/public/r/dialog.json b/public/r/dialog.json index adc8ac2..4b49bbe 100644 --- a/public/r/dialog.json +++ b/public/r/dialog.json @@ -12,9 +12,10 @@ ], "files": [ { - "path": "components/ui/Dialog/Dialog.tsx", - "content": "\"use client\";\n\nimport * as ReactDialog from \"@radix-ui/react-dialog\";\nimport { cn } from \"@/lib/utils\";\nimport { cva, VariantProps } from \"class-variance-authority\";\nimport React, { HTMLAttributes, ReactNode } from \"react\";\nimport { VisuallyHidden } from \"@radix-ui/react-visually-hidden\";\nimport { X } from \"lucide-react\";\n\nconst Dialog = ReactDialog.Root;\nconst DialogTrigger = ReactDialog.Trigger;\n\nconst overlayVariants = cva(\n ` fixed bg-black/80 font-head\n data-[state=open]:fade-in-0\n data-[state=open]:animate-in \n data-[state=closed]:animate-out \n data-[state=closed]:fade-out-0 \n `,\n {\n variants: {\n variant: {\n default: \"inset-0 z-50 bg-black/80\",\n none: \"fixed bg-transparent\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n }\n);\n\ninterface IDialogBackgroupProps\n extends HTMLAttributes,\n VariantProps {}\n\nconst DialogBackdrop = React.forwardRef(\n (inputProps: IDialogBackgroupProps, forwardedRef) => {\n const { variant = \"default\", className, ...props } = inputProps;\n\n return (\n \n );\n }\n);\n\nconst dialogVariants = cva(\n `fixed z-50 left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 \n flex flex-col border-2 border-black shadow-md gap-4 overflow-y-auto bg-white\n w-full h-fit max-h-[80vh] max-w-[97%] duration-300\n data-[state=open]:animate-in \n data-[state=open]:slide-in-from-left-1/2 \n data-[state=open]:slide-in-from-top-[48%]\n data-[state=open]:fade-in-0 \n data-[state=open]:zoom-in-95 \n data-[state=closed]:animate-out \n data-[state=closed]:fade-out-0 \n data-[state=closed]:slide-out-to-top-[48%] \n data-[state=closed]:slide-out-to-left-1/2 \n data-[state=closed]:zoom-out-95`,\n {\n variants: {\n size: {\n auto: \"max-w-fit\",\n sm: \"lg:max-w-[30%]\",\n md: \"lg:max-w-[40%]\",\n lg: \"lg:max-w-[50%]\",\n xl: \"lg:max-w-[60%]\",\n \"2xl\": \"lg:max-w-[70%]\",\n \"3xl\": \"lg:max-w-[80%]\",\n \"4xl\": \"lg:max-w-[90%]\",\n screen: \"max-w-[100%]\",\n },\n },\n defaultVariants: {\n size: \"auto\",\n },\n }\n);\n\ninterface IDialogContentProps\n extends HTMLAttributes,\n VariantProps {\n overlay?: IDialogBackgroupProps;\n}\n\nconst DialogContent = React.forwardRef(\n (inputProps: IDialogContentProps, forwardedRef) => {\n const {\n children,\n size = \"auto\",\n className,\n overlay,\n ...props\n } = inputProps;\n\n return (\n \n \n \n \n \n \n
{children}
\n \n
\n );\n }\n);\n\ninterface IDialogDescriptionProps extends HTMLAttributes {}\nconst DialogDescription = ({\n children,\n className,\n ...props\n}: IDialogDescriptionProps) => {\n return (\n \n {children}\n \n );\n};\n\nconst dialogFooterVariants = cva(\n \"flex items-center justify-end border-t-2 border-black min-h-12 gap-4 px-4 py-2\",\n {\n variants: {\n variant: {\n default: \"bg-white text-black\",\n },\n position: {\n fixed: \"sticky bottom-0\",\n static: \"static\",\n },\n },\n defaultVariants: {\n position: \"fixed\",\n },\n }\n);\n\nexport interface IDialogFooterProps\n extends HTMLAttributes,\n VariantProps {}\n\nconst DialogFooter = ({\n children,\n className,\n position,\n variant,\n ...props\n}: IDialogFooterProps) => {\n return (\n \n {children}\n
\n );\n};\n\nconst dialogHeaderVariants = cva(\n \"flex items-center justify-between border-b-2 border-black px-4 min-h-12\",\n {\n variants: {\n variant: {\n default: \"bg-primary-400 text-black\",\n },\n position: {\n fixed: \"sticky top-0\",\n static: \"static\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n position: \"static\",\n },\n }\n);\n\nconst DialogHeaderDefaultLayout = ({ children }: { children: ReactNode }) => {\n return (\n <>\n {children}\n \n \n \n \n );\n};\n\ninterface IDialogHeaderProps\n extends HTMLAttributes,\n VariantProps,\n ReactDialog.DialogTitleProps {}\n\nconst DialogHeader = ({\n children,\n className,\n position,\n variant,\n asChild,\n ...props\n}: IDialogHeaderProps) => {\n return (\n \n {asChild ? (\n children\n ) : (\n {children}\n )}\n
\n );\n};\n\nconst DialogComponent = Object.assign(Dialog, {\n Trigger: DialogTrigger,\n Header: DialogHeader,\n Content: DialogContent,\n Description: DialogDescription,\n Footer: DialogFooter,\n});\n\nexport { DialogComponent as Dialog };\n", - "type": "registry:component" + "path": "components/ui/Dialog.tsx", + "content": "\"use client\";\n\nimport * as ReactDialog from \"@radix-ui/react-dialog\";\nimport { cn } from \"@/lib/utils\";\nimport { cva, VariantProps } from \"class-variance-authority\";\nimport React, { HTMLAttributes, ReactNode } from \"react\";\nimport { VisuallyHidden } from \"@radix-ui/react-visually-hidden\";\nimport { X } from \"lucide-react\";\n\nconst Dialog = ReactDialog.Root;\nconst DialogTrigger = ReactDialog.Trigger;\n\nconst overlayVariants = cva(\n ` fixed bg-black/80 font-head\n data-[state=open]:fade-in-0\n data-[state=open]:animate-in \n data-[state=closed]:animate-out \n data-[state=closed]:fade-out-0 \n `,\n {\n variants: {\n variant: {\n default: \"inset-0 z-50 bg-black/80\",\n none: \"fixed bg-transparent\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n }\n);\n\ninterface IDialogBackgroupProps\n extends HTMLAttributes,\n VariantProps {}\n\nconst DialogBackdrop = React.forwardRef(\n function DialogBackdrop(inputProps: IDialogBackgroupProps, forwardedRef) {\n const { variant = \"default\", className, ...props } = inputProps;\n\n return (\n \n );\n }\n);\nDialogBackdrop.displayName = \"DialogBackdrop\";\n\nconst dialogVariants = cva(\n `fixed z-50 left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 \n flex flex-col border-2 border-black shadow-md gap-4 overflow-y-auto bg-white\n w-full h-fit max-h-[80vh] max-w-[97%] duration-300\n data-[state=open]:animate-in \n data-[state=open]:slide-in-from-left-1/2 \n data-[state=open]:slide-in-from-top-[48%]\n data-[state=open]:fade-in-0 \n data-[state=open]:zoom-in-95 \n data-[state=closed]:animate-out \n data-[state=closed]:fade-out-0 \n data-[state=closed]:slide-out-to-top-[48%] \n data-[state=closed]:slide-out-to-left-1/2 \n data-[state=closed]:zoom-out-95`,\n {\n variants: {\n size: {\n auto: \"max-w-fit\",\n sm: \"lg:max-w-[30%]\",\n md: \"lg:max-w-[40%]\",\n lg: \"lg:max-w-[50%]\",\n xl: \"lg:max-w-[60%]\",\n \"2xl\": \"lg:max-w-[70%]\",\n \"3xl\": \"lg:max-w-[80%]\",\n \"4xl\": \"lg:max-w-[90%]\",\n screen: \"max-w-[100%]\",\n },\n },\n defaultVariants: {\n size: \"auto\",\n },\n }\n);\n\ninterface IDialogContentProps\n extends HTMLAttributes,\n VariantProps {\n overlay?: IDialogBackgroupProps;\n}\n\nconst DialogContent = React.forwardRef(\n function DialogContent(inputProps: IDialogContentProps, forwardedRef) {\n const {\n children,\n size = \"auto\",\n className,\n overlay,\n ...props\n } = inputProps;\n\n return (\n \n \n \n \n \n \n
{children}
\n \n
\n );\n }\n);\nDialogContent.displayName = \"DialogContent\";\n\ninterface IDialogDescriptionProps extends HTMLAttributes {}\nconst DialogDescription = ({\n children,\n className,\n ...props\n}: IDialogDescriptionProps) => {\n return (\n \n {children}\n \n );\n};\n\nconst dialogFooterVariants = cva(\n \"flex items-center justify-end border-t-2 border-black min-h-12 gap-4 px-4 py-2\",\n {\n variants: {\n variant: {\n default: \"bg-white text-black\",\n },\n position: {\n fixed: \"sticky bottom-0\",\n static: \"static\",\n },\n },\n defaultVariants: {\n position: \"fixed\",\n },\n }\n);\n\nexport interface IDialogFooterProps\n extends HTMLAttributes,\n VariantProps {}\n\nconst DialogFooter = ({\n children,\n className,\n position,\n variant,\n ...props\n}: IDialogFooterProps) => {\n return (\n \n {children}\n \n );\n};\n\nconst dialogHeaderVariants = cva(\n \"flex items-center justify-between border-b-2 border-black px-4 min-h-12\",\n {\n variants: {\n variant: {\n default: \"bg-primary-400 text-black\",\n },\n position: {\n fixed: \"sticky top-0\",\n static: \"static\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n position: \"static\",\n },\n }\n);\n\nconst DialogHeaderDefaultLayout = ({ children }: { children: ReactNode }) => {\n return (\n <>\n {children}\n \n \n \n \n );\n};\n\ninterface IDialogHeaderProps\n extends HTMLAttributes,\n VariantProps,\n ReactDialog.DialogTitleProps {}\n\nconst DialogHeader = ({\n children,\n className,\n position,\n variant,\n asChild,\n ...props\n}: IDialogHeaderProps) => {\n return (\n \n {asChild ? (\n children\n ) : (\n {children}\n )}\n \n );\n};\n\nconst DialogComponent = Object.assign(Dialog, {\n Trigger: DialogTrigger,\n Header: DialogHeader,\n Content: DialogContent,\n Description: DialogDescription,\n Footer: DialogFooter,\n});\n\nexport { DialogComponent as Dialog };\n", + "type": "registry:component", + "target": "components/retroui/Dialog.tsx" } ] } \ No newline at end of file diff --git a/public/r/input.json b/public/r/input.json index 54eb70c..31d7627 100644 --- a/public/r/input.json +++ b/public/r/input.json @@ -6,9 +6,10 @@ "description": "This pretty input makes your users want to type stuff! ⌨️", "files": [ { - "path": "components/ui/Form/Input.tsx", - "content": "import React, { InputHTMLAttributes } from \"react\";\n\ninterface InputProps extends InputHTMLAttributes {\n className?: string;\n}\n\nexport const Input: React.FC = ({\n type = \"text\",\n placeholder = \"Enter text\",\n className = \"\",\n ...props\n}) => {\n console.log(props);\n return (\n \n );\n};\n", - "type": "registry:component" + "path": "components/ui/Input.tsx", + "content": "import React, { InputHTMLAttributes } from \"react\";\n\ninterface InputProps extends InputHTMLAttributes {\n className?: string;\n}\n\nexport const Input: React.FC = ({\n type = \"text\",\n placeholder = \"Enter text\",\n className = \"\",\n ...props\n}) => {\n return (\n \n );\n};\n", + "type": "registry:component", + "target": "components/retroui/Input.tsx" } ] } \ No newline at end of file diff --git a/public/r/label.json b/public/r/label.json index 7308166..ddb0b14 100644 --- a/public/r/label.json +++ b/public/r/label.json @@ -10,9 +10,10 @@ ], "files": [ { - "path": "components/ui/Form/Label.tsx", + "path": "components/ui/Label.tsx", "content": "import * as React from \"react\";\nimport * as LabelPrimitive from \"@radix-ui/react-label\";\nimport { cva } from \"class-variance-authority\";\n\nimport { cn } from \"@/lib/utils\";\n\nconst labelVariants = cva(\n \"leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70\"\n);\n\nconst Label = ({\n className,\n ...props\n}: React.ComponentProps) => (\n \n);\n\nexport { Label };\n", - "type": "registry:component" + "type": "registry:component", + "target": "components/retroui/Label.tsx" } ] } \ No newline at end of file diff --git a/public/r/menu.json b/public/r/menu.json index f96fd7f..874a88e 100644 --- a/public/r/menu.json +++ b/public/r/menu.json @@ -9,9 +9,10 @@ ], "files": [ { - "path": "components/ui/Menu/Menu.tsx", + "path": "components/ui/Menu.tsx", "content": "\"use client\";\n\nimport { cn } from \"@/lib/utils\";\nimport * as DropdownMenu from \"@radix-ui/react-dropdown-menu\";\nimport React, { ComponentPropsWithoutRef } from \"react\";\n\nconst Menu = DropdownMenu.Root;\nconst Trigger = DropdownMenu.Trigger;\n\ninterface IMenuContent\n extends ComponentPropsWithoutRef {}\n\nconst Content = ({ className, ...props }: IMenuContent) => (\n \n \n \n);\n\nconst MenuItem = React.forwardRef<\n HTMLDivElement,\n ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\nMenuItem.displayName = \"MenuItem\";\n\nconst MenuComponent = Object.assign(Menu, {\n Trigger,\n Content,\n Item: MenuItem,\n});\n\nexport { MenuComponent as Menu };\n", - "type": "registry:component" + "type": "registry:component", + "target": "components/retroui/Menu.tsx" } ] } \ No newline at end of file diff --git a/public/r/radio.json b/public/r/radio.json index a97fefe..af6d009 100644 --- a/public/r/radio.json +++ b/public/r/radio.json @@ -10,9 +10,10 @@ ], "files": [ { - "path": "components/ui/Form/Radio.tsx", + "path": "components/ui/Radio.tsx", "content": "import { cn } from \"@/lib/utils\";\nimport * as RadioPrimitive from \"@radix-ui/react-radio-group\";\nimport { cva, VariantProps } from \"class-variance-authority\";\n\nconst radioVariants = cva(\"border-black border-2\", {\n variants: {\n variant: {\n default: \"\",\n outline: \"\",\n solid: \"\",\n },\n size: {\n sm: \"h-4 w-4\",\n md: \"h-5 w-5\",\n lg: \"h-6 w-6\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"md\",\n },\n});\n\nconst radioIndicatorVariants = cva(\"flex \", {\n variants: {\n variant: {\n default: \"bg-primary-500 border-2 border-black\",\n outline: \"border-2 border-black\",\n solid: \"bg-black\",\n },\n size: {\n sm: \"h-2 w-2\",\n md: \"h-2.5 w-2.5\",\n lg: \"h-3.5 w-3.5\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"md\",\n },\n});\n\ninterface RadioGroupProps\n extends React.ComponentProps {}\n\nexport const RadioGroupRoot = ({ className, ...props }: RadioGroupProps) => (\n \n);\n\ninterface RadioProps\n extends React.ComponentProps,\n VariantProps {}\n\nexport const RadioItem = ({\n children,\n className,\n size,\n variant,\n ...props\n}: RadioProps) => (\n \n \n \n \n {children}\n \n);\n\nconst RadioComponent = Object.assign(RadioGroupRoot, {\n Item: RadioItem,\n});\n\nexport { RadioComponent as RadioGroup };\n", - "type": "registry:component" + "type": "registry:component", + "target": "components/retroui/Radio.tsx" } ] } \ No newline at end of file diff --git a/public/r/select.json b/public/r/select.json index 94a4ce3..c4c9e0c 100644 --- a/public/r/select.json +++ b/public/r/select.json @@ -10,9 +10,10 @@ ], "files": [ { - "path": "components/ui/Form/Select.tsx", + "path": "components/ui/Select.tsx", "content": "\"use client\";\n\nimport { cn } from \"@/lib/utils\";\nimport * as SelectPrimitive from \"@radix-ui/react-select\";\nimport { Check, ChevronDown } from \"lucide-react\";\nimport React from \"react\";\n\nconst Select = SelectPrimitive.Root;\n\nconst SelectTrigger = ({\n className,\n children,\n ...props\n}: SelectPrimitive.SelectTriggerProps) => {\n return (\n \n {children}\n \n \n \n \n );\n};\n\nconst SelectValue = SelectPrimitive.Value;\n\nconst SelectIcon = SelectPrimitive.Icon;\n\nconst SelectContent = ({\n className,\n children,\n position = \"popper\",\n ...props\n}: SelectPrimitive.SelectContentProps) => {\n return (\n \n \n \n {children}\n \n \n \n );\n};\n\nconst SelectGroup = SelectPrimitive.Group;\n\nconst SelectItem = ({\n className,\n children,\n ...props\n}: SelectPrimitive.SelectItemProps) => (\n \n {children}\n\n \n \n \n \n \n \n);\nconst SelectLabel = SelectPrimitive.Label;\nconst SelectSeparator = SelectPrimitive.Separator;\n\nconst SelectObj = Object.assign(Select, {\n Trigger: SelectTrigger,\n Value: SelectValue,\n Icon: SelectIcon,\n Content: SelectContent,\n Group: SelectGroup,\n Item: SelectItem,\n Label: SelectLabel,\n Separator: SelectSeparator,\n});\n\nexport { SelectObj as Select };\n", - "type": "registry:component" + "type": "registry:component", + "target": "components/retroui/Select.tsx" } ] } \ No newline at end of file diff --git a/public/r/switch.json b/public/r/switch.json index 27602c6..66059ad 100644 --- a/public/r/switch.json +++ b/public/r/switch.json @@ -9,9 +9,10 @@ ], "files": [ { - "path": "components/ui/Form/Switch.tsx", + "path": "components/ui/Switch.tsx", "content": "\"use client\";\n\nimport * as React from \"react\";\nimport * as SwitchPrimitives from \"@radix-ui/react-switch\";\n\nimport { cn } from \"@/lib/utils\";\n\nconst Switch = ({ className, ...props }: SwitchPrimitives.SwitchProps) => (\n \n \n \n);\n\nexport { Switch };\n", - "type": "registry:component" + "type": "registry:component", + "target": "components/retroui/Switch.tsx" } ] } \ No newline at end of file diff --git a/public/r/tab.json b/public/r/tab.json index 694ba0c..60e3ad2 100644 --- a/public/r/tab.json +++ b/public/r/tab.json @@ -9,9 +9,10 @@ ], "files": [ { - "path": "components/ui/Tabs/Tab.tsx", + "path": "components/ui/Tab.tsx", "content": "import { cn } from \"@/lib/utils\";\nimport {\n Tab,\n TabGroup,\n TabList,\n TabListProps,\n TabPanel,\n TabPanelProps,\n TabPanels,\n TabProps,\n} from \"@headlessui/react\";\n\nconst Tabs = TabGroup;\nconst TabsPanels = TabPanels;\n\ninterface ITabsTriggerList extends TabListProps {\n className?: string;\n}\nconst TabsTriggerList = ({\n children,\n className,\n ...props\n}: ITabsTriggerList) => {\n return (\n \n {children}\n \n );\n};\n\ninterface ITabsTrigger extends TabProps {\n className?: string;\n}\nconst TabsTrigger = ({ children, className, ...props }: ITabsTrigger) => {\n return (\n \n {children}\n \n );\n};\n\ninterface ITabsContent extends TabPanelProps {\n className?: string;\n}\nconst TabsContent = ({ children, className, ...props }: ITabsContent) => {\n return (\n \n {children}\n \n );\n};\n\nexport { Tabs, TabsPanels, TabsTrigger, TabsContent, TabsTriggerList };\n", - "type": "registry:component" + "type": "registry:component", + "target": "components/retroui/Tab.tsx" } ] } \ No newline at end of file diff --git a/public/r/text.json b/public/r/text.json index db541bc..f06824e 100644 --- a/public/r/text.json +++ b/public/r/text.json @@ -9,9 +9,10 @@ ], "files": [ { - "path": "components/ui/Text/Text.tsx", + "path": "components/ui/Text.tsx", "content": "import type { ElementType, HTMLAttributes } from \"react\";\nimport { type VariantProps, cva } from \"class-variance-authority\";\nimport { cn } from \"@/lib/utils\";\n\nconst textVariants = cva(\"font-head\", {\n variants: {\n as: {\n p: \"font-sans text-base\",\n li: \"font-sans text-base\",\n a: \"font-sans text-base hover:underline underline-offset-2 decoration-primary-500\",\n h1: \"text-4xl lg:text-5xl font-bold\",\n h2: \"text-3xl lg:text-4xl font-semibold\",\n h3: \"text-2xl font-medium\",\n h4: \"text-xl font-normal\",\n h5: \"text-lg font-normal\",\n h6: \"text-base font-normal\",\n },\n },\n defaultVariants: {\n as: \"p\",\n },\n});\n\ninterface TextProps\n extends Omit, \"className\">,\n VariantProps {\n className?: string;\n}\n\nexport const Text = (props: TextProps) => {\n const { className, as, ...otherProps } = props;\n const Tag: ElementType = as || \"p\";\n\n return (\n \n );\n};\n", - "type": "registry:component" + "type": "registry:component", + "target": "components/retroui/Text.tsx" } ] } \ No newline at end of file diff --git a/public/r/textarea.json b/public/r/textarea.json index 6ea77f7..db2c815 100644 --- a/public/r/textarea.json +++ b/public/r/textarea.json @@ -6,9 +6,10 @@ "description": "This pretty input makes your users want to type lots of stuff! ⌨️ ⌨", "files": [ { - "path": "components/ui/Form/Textarea.tsx", + "path": "components/ui/Textarea.tsx", "content": "import React from \"react\";\n\nexport function Textarea({\n type = \"text\",\n placeholder = \"Enter text...\",\n className = \"\",\n ...props\n}) {\n return (\n \n );\n}\n", - "type": "registry:component" + "type": "registry:component", + "target": "components/retroui/Textarea.tsx" } ] } \ No newline at end of file diff --git a/registry.json b/registry.json index 3342ffb..25ef466 100644 --- a/registry.json +++ b/registry.json @@ -29,7 +29,8 @@ ], "files": [ { - "path": "components/ui/Accordions/Accordion.tsx", + "path": "components/ui/Accordion.tsx", + "target": "components/retroui/Accordion.tsx", "type": "registry:component" } ] @@ -44,7 +45,8 @@ ], "files": [ { - "path": "components/ui/Alerts/Alert.tsx", + "path": "components/ui/Alert.tsx", + "target": "components/retroui/Alert.tsx", "type": "registry:component" } ] @@ -59,7 +61,8 @@ ], "files": [ { - "path": "components/ui/Avatars/Avatar.tsx", + "path": "components/ui/Avatar.tsx", + "target": "components/retroui/Avatar.tsx", "type": "registry:component" } ] @@ -74,7 +77,8 @@ ], "files": [ { - "path": "components/ui/Badges/Badge.tsx", + "path": "components/ui/Badge.tsx", + "target": "components/retroui/Badge.tsx", "type": "registry:component" } ] @@ -89,7 +93,8 @@ ], "files": [ { - "path": "components/ui/Buttons/Button.tsx", + "path": "components/ui/Button.tsx", + "target": "components/retroui/Button.tsx", "type": "registry:component" } ] @@ -101,7 +106,8 @@ "description": "A customizable card component to visualize your content. 📝", "files": [ { - "path": "components/ui/Cards/Card.tsx", + "path": "components/ui/Card.tsx", + "target": "components/retroui/Card.tsx", "type": "registry:component" } ] @@ -118,7 +124,8 @@ ], "files": [ { - "path": "components/ui/Form/Checkbox.tsx", + "path": "components/ui/Checkbox.tsx", + "target": "components/retroui/Checkbox.tsx", "type": "registry:component" } ] @@ -136,7 +143,8 @@ ], "files": [ { - "path": "components/ui/Dialog/Dialog.tsx", + "path": "components/ui/Dialog.tsx", + "target": "components/retroui/Dialog.tsx", "type": "registry:component" } ] @@ -148,7 +156,8 @@ "description": "This pretty input makes your users want to type stuff! ⌨️", "files": [ { - "path": "components/ui/Form/Input.tsx", + "path": "components/ui/Input.tsx", + "target": "components/retroui/Input.tsx", "type": "registry:component" } ] @@ -164,7 +173,8 @@ ], "files": [ { - "path": "components/ui/Form/Label.tsx", + "path": "components/ui/Label.tsx", + "target": "components/retroui/Label.tsx", "type": "registry:component" } ] @@ -179,7 +189,8 @@ ], "files": [ { - "path": "components/ui/Menu/Menu.tsx", + "path": "components/ui/Menu.tsx", + "target": "components/retroui/Menu.tsx", "type": "registry:component" } ] @@ -195,7 +206,8 @@ ], "files": [ { - "path": "components/ui/Form/Radio.tsx", + "path": "components/ui/Radio.tsx", + "target": "components/retroui/Radio.tsx", "type": "registry:component" } ] @@ -211,7 +223,8 @@ ], "files": [ { - "path": "components/ui/Form/Select.tsx", + "path": "components/ui/Select.tsx", + "target": "components/retroui/Select.tsx", "type": "registry:component" } ] @@ -226,7 +239,8 @@ ], "files": [ { - "path": "components/ui/Form/Switch.tsx", + "path": "components/ui/Switch.tsx", + "target": "components/retroui/Switch.tsx", "type": "registry:component" } ] @@ -241,7 +255,8 @@ ], "files": [ { - "path": "components/ui/Tabs/Tab.tsx", + "path": "components/ui/Tab.tsx", + "target": "components/retroui/Tab.tsx", "type": "registry:component" } ] @@ -256,7 +271,8 @@ ], "files": [ { - "path": "components/ui/Text/Text.tsx", + "path": "components/ui/Text.tsx", + "target": "components/retroui/Text.tsx", "type": "registry:component" } ] @@ -268,7 +284,8 @@ "description": "This pretty input makes your users want to type lots of stuff! ⌨️ ⌨", "files": [ { - "path": "components/ui/Form/Textarea.tsx", + "path": "components/ui/Textarea.tsx", + "target": "components/retroui/Textarea.tsx", "type": "registry:component" } ]