Skip to content

Commit

Permalink
Rename components folder to UI
Browse files Browse the repository at this point in the history
  • Loading branch information
josepjaume committed May 25, 2024
1 parent 1c50d0c commit 59877d0
Show file tree
Hide file tree
Showing 36 changed files with 30 additions and 30 deletions.
2 changes: 1 addition & 1 deletion components.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"aliases": {
"components": "@/components",
"ui": "@/shadcn",
"ui": "@/ui",
"utils": "@/lib/utils"
}
}
2 changes: 1 addition & 1 deletion lib/components/Actions/Button/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Button as ShadcnButton } from "@/shadcn/button"
import { Button as ShadcnButton } from "@/ui/button"
import { ComponentProps } from "react"

const Button: React.FC<
Expand Down
2 changes: 1 addition & 1 deletion lib/components/Blocks/Card/index.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Meta, StoryObj } from "@storybook/react"

import { Button } from "@/shadcn/button"
import { Button } from "@/ui/button"

import {
Card,
Expand Down
2 changes: 1 addition & 1 deletion lib/components/Blocks/Card/index.tsx
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "@/shadcn/card"
export * from "@/ui/card"
2 changes: 1 addition & 1 deletion lib/components/Forms/Calendar/index.tsx
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "@/shadcn/calendar"
export * from "@/ui/calendar"
2 changes: 1 addition & 1 deletion lib/components/Forms/Input/index.tsx
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "@/shadcn/input"
export * from "@/ui/input"
2 changes: 1 addition & 1 deletion lib/components/Forms/Select/index.tsx
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "@/shadcn/select"
export * from "@/ui/select"
2 changes: 1 addition & 1 deletion lib/components/Information/Avatar/index.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Meta, StoryObj } from "@storybook/react"

import { Avatar, AvatarFallback, AvatarImage, sizes } from "@/shadcn/avatar"
import { Avatar, AvatarFallback, AvatarImage, sizes } from "@/ui/avatar"

const meta = {
component: Avatar,
Expand Down
2 changes: 1 addition & 1 deletion lib/components/Information/Avatar/index.tsx
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "@/shadcn/avatar"
export * from "@/ui/avatar"
2 changes: 1 addition & 1 deletion lib/components/Information/Badge/index.tsx
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "@/shadcn/badge"
export * from "@/ui/badge"
2 changes: 1 addition & 1 deletion lib/components/Navigation/Tabs/index.tsx
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "@/shadcn/tabs"
export * from "@/ui/tabs"
6 changes: 3 additions & 3 deletions lib/components/Overlays/Dialog/index.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import type { Meta, StoryObj } from "@storybook/react"
import { Folder } from "lucide-react"

import { Button } from "@/shadcn/button"
import { Input } from "@/shadcn/input"
import { Label } from "@/shadcn/label"
import { Button } from "@/ui/button"
import { Input } from "@/ui/input"
import { Label } from "@/ui/label"
import {
Dialog,
DialogClose,
Expand Down
2 changes: 1 addition & 1 deletion lib/components/Overlays/Dialog/index.tsx
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "@/shadcn/dialog"
export * from "@/ui/dialog"
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion lib/shadcn/calendar.tsx → lib/ui/calendar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { ChevronLeft, ChevronRight } from "lucide-react"
import * as React from "react"
import { DayPicker } from "react-day-picker"

import { buttonVariants } from "@/shadcn/button"
import { buttonVariants } from "@/ui/button"

export type CalendarProps = React.ComponentProps<typeof DayPicker>

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion lib/shadcn/form.tsx → lib/ui/form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
useFormContext,
} from "react-hook-form"

import { Label } from "@/shadcn/label"
import { Label } from "@/ui/label"

const Form = FormProvider

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions src/examples/layout/application.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ import React from "react"

import { Card, CardContent, CardHeader, CardTitle } from "@/components"
import { AutoGrid } from "@/primitives"
import { Button } from "@/shadcn/button"
import { Popover, PopoverContent, PopoverTrigger } from "@/shadcn/popover"
import { ScrollArea } from "@/shadcn/scrollarea"
import { Button } from "@/ui/button"
import { Popover, PopoverContent, PopoverTrigger } from "@/ui/popover"
import { ScrollArea } from "@/ui/scrollarea"

const Title: React.FC<{ title: string }> = ({ title }) => (
<div className="flex h-14 items-center gap-2 px-3 font-medium text-secondary-foreground">
Expand Down
4 changes: 2 additions & 2 deletions src/examples/themes/theme-switcher.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { useTheme } from "@/lib/theme-provider"
import { Moon, Sun } from "lucide-react"

import { Button } from "@/shadcn/button"
import { Button } from "@/ui/button"
import {
DropdownMenu,
DropdownMenuContent,
DropdownMenuItem,
DropdownMenuTrigger,
} from "@/shadcn/dropdown-menu"
} from "@/ui/dropdown-menu"

export function ThemeSwitcher() {
const { setTheme } = useTheme()
Expand Down
6 changes: 3 additions & 3 deletions src/experiments/application/new/employees.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ import { useLayoutType } from "./layout-type"
import { cn } from "@/lib/utils"
import { useState } from "react"

import { Badge } from "@/shadcn/badge"
import { Badge } from "@/ui/badge"

import { Avatar, AvatarFallback, AvatarImage } from "@/shadcn/avatar"
import { Avatar, AvatarFallback, AvatarImage } from "@/ui/avatar"
import {
Table,
TableBody,
TableCell,
TableHead,
TableHeader,
TableRow,
} from "@/shadcn/table"
} from "@/ui/table"

export const Employees = [
{
Expand Down
8 changes: 4 additions & 4 deletions src/experiments/application/new/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import { useState } from "react"

import { LayoutTypeContext } from "./layout-type"

import { ScrollArea, ScrollBar } from "@/shadcn/scrollarea"
import { ScrollArea, ScrollBar } from "@/ui/scrollarea"

import { Avatar, AvatarFallback, AvatarImage } from "@/shadcn/avatar"
import { Avatar, AvatarFallback, AvatarImage } from "@/ui/avatar"

import { Skeleton } from "@/shadcn/skeleton"
import { Skeleton } from "@/ui/skeleton"

import { Employees } from "./employees"

Expand All @@ -16,7 +16,7 @@ import {
TooltipContent,
TooltipProvider,
TooltipTrigger,
} from "@/shadcn/tooltip"
} from "@/ui/tooltip"

import { Page, Pages, SubItem } from "./pages"

Expand Down
2 changes: 1 addition & 1 deletion src/experiments/application/new/pages.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {

import { PageEmployees } from "./employees"

import { Skeleton } from "@/shadcn/skeleton"
import { Skeleton } from "@/ui/skeleton"

const PageDummy: React.FC = () => {
return (
Expand Down

0 comments on commit 59877d0

Please sign in to comment.