xonecas.io
5414
Sa

sat / commit f0b78a1

feat: basic ui using shadcn

xonecas2026-01-13 f0b78a182e518f90c52394866ce58078010010d7 parent 3d597c4

28 files changed

This diff is too big to show in full. The first 1000 lines are below, and every file is listed with its counts.

biome.json+3−0
@@ -20,6 +20,9 @@
2020 "recommended": true,
2121 "suspicious": {
2222 "noUnknownAtRules": "off"
23+ },
24+ "correctness": {
25+ "useExhaustiveDependencies": "info"
2326 }
2427 },
2528 "domains": {
next.config.ts+1−0
@@ -2,6 +2,7 @@ import type { NextConfig } from "next";
22
33 const nextConfig: NextConfig = {
44 /* config options here */
5+ devIndicators: false,
56 };
67
78 export default nextConfig;
src/app/favicon.ico+0−0
Binary file, not shown.
src/app/favicon.svg+17−0
@@ -0,0 +1,17 @@
1+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="32" height="32">
2+ <!-- Magnifying glass circle -->
3+ <circle cx="14" cy="14" r="7.5" fill="none" stroke="#000000" stroke-width="2.5"/>
4+
5+ <!-- Magnifying glass handle -->
6+ <line x1="20.5" y1="20.5" x2="26" y2="26" stroke="#000000" stroke-width="2.5" stroke-linecap="round"/>
7+
8+ <!-- Bowtie centered in the magnifying glass -->
9+ <g transform="translate(14, 14)">
10+ <!-- Left triangle -->
11+ <path d="M -5,-2.5 L -5,2.5 L 0,0 Z" fill="#000000"/>
12+ <!-- Right triangle -->
13+ <path d="M 5,-2.5 L 5,2.5 L 0,0 Z" fill="#000000"/>
14+ <!-- Center knot -->
15+ <circle cx="0" cy="0" r="1.2" fill="#000000"/>
16+ </g>
17+</svg>
src/app/globals.css+105−105
@@ -5,121 +5,121 @@
55 @custom-variant dark (&:is(.dark *));
66
77 :root {
8- --background: oklch(1 0 0);
9- --foreground: oklch(0.141 0.005 285.823);
10- --card: oklch(1 0 0);
11- --card-foreground: oklch(0.141 0.005 285.823);
12- --popover: oklch(1 0 0);
13- --popover-foreground: oklch(0.141 0.005 285.823);
14- --primary: oklch(0.65 0.18 132);
15- --primary-foreground: oklch(0.99 0.03 121);
16- --secondary: oklch(0.967 0.001 286.375);
17- --secondary-foreground: oklch(0.21 0.006 285.885);
18- --muted: oklch(0.967 0.001 286.375);
19- --muted-foreground: oklch(0.552 0.016 285.938);
20- --accent: oklch(0.967 0.001 286.375);
21- --accent-foreground: oklch(0.21 0.006 285.885);
22- --destructive: oklch(0.577 0.245 27.325);
23- --border: oklch(0.92 0.004 286.32);
24- --input: oklch(0.92 0.004 286.32);
25- --ring: oklch(0.705 0.015 286.067);
26- --chart-1: oklch(0.90 0.18 127);
27- --chart-2: oklch(0.85 0.21 129);
28- --chart-3: oklch(0.77 0.20 131);
29- --chart-4: oklch(0.65 0.18 132);
30- --chart-5: oklch(0.53 0.14 132);
31- --radius: 0.875rem;
32- --sidebar: oklch(0.985 0 0);
33- --sidebar-foreground: oklch(0.141 0.005 285.823);
34- --sidebar-primary: oklch(0.65 0.18 132);
35- --sidebar-primary-foreground: oklch(0.99 0.03 121);
36- --sidebar-accent: oklch(0.967 0.001 286.375);
37- --sidebar-accent-foreground: oklch(0.21 0.006 285.885);
38- --sidebar-border: oklch(0.92 0.004 286.32);
39- --sidebar-ring: oklch(0.705 0.015 286.067);
8+ --background: oklch(1 0 0);
9+ --foreground: oklch(0.141 0.005 285.823);
10+ --card: oklch(1 0 0);
11+ --card-foreground: oklch(0.141 0.005 285.823);
12+ --popover: oklch(1 0 0);
13+ --popover-foreground: oklch(0.141 0.005 285.823);
14+ --primary: oklch(0.65 0.18 132);
15+ --primary-foreground: oklch(0.99 0.03 121);
16+ --secondary: oklch(0.967 0.001 286.375);
17+ --secondary-foreground: oklch(0.21 0.006 285.885);
18+ --muted: oklch(0.967 0.001 286.375);
19+ --muted-foreground: oklch(0.552 0.016 285.938);
20+ --accent: oklch(0.967 0.001 286.375);
21+ --accent-foreground: oklch(0.21 0.006 285.885);
22+ --destructive: oklch(0.577 0.245 27.325);
23+ --border: oklch(0.92 0.004 286.32);
24+ --input: oklch(0.92 0.004 286.32);
25+ --ring: oklch(0.705 0.015 286.067);
26+ --chart-1: oklch(0.9 0.18 127);
27+ --chart-2: oklch(0.85 0.21 129);
28+ --chart-3: oklch(0.77 0.2 131);
29+ --chart-4: oklch(0.65 0.18 132);
30+ --chart-5: oklch(0.53 0.14 132);
31+ --radius: 0.875rem;
32+ --sidebar: oklch(0.985 0 0);
33+ --sidebar-foreground: oklch(0.141 0.005 285.823);
34+ --sidebar-primary: oklch(0.65 0.18 132);
35+ --sidebar-primary-foreground: oklch(0.99 0.03 121);
36+ --sidebar-accent: oklch(0.967 0.001 286.375);
37+ --sidebar-accent-foreground: oklch(0.21 0.006 285.885);
38+ --sidebar-border: oklch(0.92 0.004 286.32);
39+ --sidebar-ring: oklch(0.705 0.015 286.067);
4040 }
4141
4242 .dark {
43- --background: oklch(0.141 0.005 285.823);
44- --foreground: oklch(0.985 0 0);
45- --card: oklch(0.21 0.006 285.885);
46- --card-foreground: oklch(0.985 0 0);
47- --popover: oklch(0.21 0.006 285.885);
48- --popover-foreground: oklch(0.985 0 0);
49- --primary: oklch(0.77 0.20 131);
50- --primary-foreground: oklch(0.27 0.07 132);
51- --secondary: oklch(0.274 0.006 286.033);
52- --secondary-foreground: oklch(0.985 0 0);
53- --muted: oklch(0.274 0.006 286.033);
54- --muted-foreground: oklch(0.705 0.015 286.067);
55- --accent: oklch(0.274 0.006 286.033);
56- --accent-foreground: oklch(0.985 0 0);
57- --destructive: oklch(0.704 0.191 22.216);
58- --border: oklch(1 0 0 / 10%);
59- --input: oklch(1 0 0 / 15%);
60- --ring: oklch(0.552 0.016 285.938);
61- --chart-1: oklch(0.90 0.18 127);
62- --chart-2: oklch(0.85 0.21 129);
63- --chart-3: oklch(0.77 0.20 131);
64- --chart-4: oklch(0.65 0.18 132);
65- --chart-5: oklch(0.53 0.14 132);
66- --sidebar: oklch(0.21 0.006 285.885);
67- --sidebar-foreground: oklch(0.985 0 0);
68- --sidebar-primary: oklch(0.85 0.21 129);
69- --sidebar-primary-foreground: oklch(0.27 0.07 132);
70- --sidebar-accent: oklch(0.274 0.006 286.033);
71- --sidebar-accent-foreground: oklch(0.985 0 0);
72- --sidebar-border: oklch(1 0 0 / 10%);
73- --sidebar-ring: oklch(0.552 0.016 285.938);
43+ --background: oklch(0.141 0.005 285.823);
44+ --foreground: oklch(0.985 0 0);
45+ --card: oklch(0.21 0.006 285.885);
46+ --card-foreground: oklch(0.985 0 0);
47+ --popover: oklch(0.21 0.006 285.885);
48+ --popover-foreground: oklch(0.985 0 0);
49+ --primary: oklch(0.77 0.2 131);
50+ --primary-foreground: oklch(0.27 0.07 132);
51+ --secondary: oklch(0.274 0.006 286.033);
52+ --secondary-foreground: oklch(0.985 0 0);
53+ --muted: oklch(0.274 0.006 286.033);
54+ --muted-foreground: oklch(0.705 0.015 286.067);
55+ --accent: oklch(0.274 0.006 286.033);
56+ --accent-foreground: oklch(0.985 0 0);
57+ --destructive: oklch(0.704 0.191 22.216);
58+ --border: oklch(1 0 0 / 10%);
59+ --input: oklch(1 0 0 / 15%);
60+ --ring: oklch(0.552 0.016 285.938);
61+ --chart-1: oklch(0.9 0.18 127);
62+ --chart-2: oklch(0.85 0.21 129);
63+ --chart-3: oklch(0.77 0.2 131);
64+ --chart-4: oklch(0.65 0.18 132);
65+ --chart-5: oklch(0.53 0.14 132);
66+ --sidebar: oklch(0.21 0.006 285.885);
67+ --sidebar-foreground: oklch(0.985 0 0);
68+ --sidebar-primary: oklch(0.85 0.21 129);
69+ --sidebar-primary-foreground: oklch(0.27 0.07 132);
70+ --sidebar-accent: oklch(0.274 0.006 286.033);
71+ --sidebar-accent-foreground: oklch(0.985 0 0);
72+ --sidebar-border: oklch(1 0 0 / 10%);
73+ --sidebar-ring: oklch(0.552 0.016 285.938);
7474 }
7575
7676 @theme inline {
77- --font-sans: var(--font-sans);
78- --color-sidebar-ring: var(--sidebar-ring);
79- --color-sidebar-border: var(--sidebar-border);
80- --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
81- --color-sidebar-accent: var(--sidebar-accent);
82- --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
83- --color-sidebar-primary: var(--sidebar-primary);
84- --color-sidebar-foreground: var(--sidebar-foreground);
85- --color-sidebar: var(--sidebar);
86- --color-chart-5: var(--chart-5);
87- --color-chart-4: var(--chart-4);
88- --color-chart-3: var(--chart-3);
89- --color-chart-2: var(--chart-2);
90- --color-chart-1: var(--chart-1);
91- --color-ring: var(--ring);
92- --color-input: var(--input);
93- --color-border: var(--border);
94- --color-destructive: var(--destructive);
95- --color-accent-foreground: var(--accent-foreground);
96- --color-accent: var(--accent);
97- --color-muted-foreground: var(--muted-foreground);
98- --color-muted: var(--muted);
99- --color-secondary-foreground: var(--secondary-foreground);
100- --color-secondary: var(--secondary);
101- --color-primary-foreground: var(--primary-foreground);
102- --color-primary: var(--primary);
103- --color-popover-foreground: var(--popover-foreground);
104- --color-popover: var(--popover);
105- --color-card-foreground: var(--card-foreground);
106- --color-card: var(--card);
107- --color-foreground: var(--foreground);
108- --color-background: var(--background);
109- --radius-sm: calc(var(--radius) - 4px);
110- --radius-md: calc(var(--radius) - 2px);
111- --radius-lg: var(--radius);
112- --radius-xl: calc(var(--radius) + 4px);
113- --radius-2xl: calc(var(--radius) + 8px);
114- --radius-3xl: calc(var(--radius) + 12px);
115- --radius-4xl: calc(var(--radius) + 16px);
77+ --font-sans: var(--font-sans);
78+ --color-sidebar-ring: var(--sidebar-ring);
79+ --color-sidebar-border: var(--sidebar-border);
80+ --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
81+ --color-sidebar-accent: var(--sidebar-accent);
82+ --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
83+ --color-sidebar-primary: var(--sidebar-primary);
84+ --color-sidebar-foreground: var(--sidebar-foreground);
85+ --color-sidebar: var(--sidebar);
86+ --color-chart-5: var(--chart-5);
87+ --color-chart-4: var(--chart-4);
88+ --color-chart-3: var(--chart-3);
89+ --color-chart-2: var(--chart-2);
90+ --color-chart-1: var(--chart-1);
91+ --color-ring: var(--ring);
92+ --color-input: var(--input);
93+ --color-border: var(--border);
94+ --color-destructive: var(--destructive);
95+ --color-accent-foreground: var(--accent-foreground);
96+ --color-accent: var(--accent);
97+ --color-muted-foreground: var(--muted-foreground);
98+ --color-muted: var(--muted);
99+ --color-secondary-foreground: var(--secondary-foreground);
100+ --color-secondary: var(--secondary);
101+ --color-primary-foreground: var(--primary-foreground);
102+ --color-primary: var(--primary);
103+ --color-popover-foreground: var(--popover-foreground);
104+ --color-popover: var(--popover);
105+ --color-card-foreground: var(--card-foreground);
106+ --color-card: var(--card);
107+ --color-foreground: var(--foreground);
108+ --color-background: var(--background);
109+ --radius-sm: calc(var(--radius) - 4px);
110+ --radius-md: calc(var(--radius) - 2px);
111+ --radius-lg: var(--radius);
112+ --radius-xl: calc(var(--radius) + 4px);
113+ --radius-2xl: calc(var(--radius) + 8px);
114+ --radius-3xl: calc(var(--radius) + 12px);
115+ --radius-4xl: calc(var(--radius) + 16px);
116116 }
117117
118118 @layer base {
119119 * {
120120 @apply border-border outline-ring/50;
121- }
121+ }
122122 body {
123123 @apply bg-background text-foreground;
124- }
125-}
124+ }
125+}
src/app/layout.tsx+10−7
@@ -1,15 +1,12 @@
11 import type { Metadata } from "next";
2-import { Noto_Sans, Open_Sans } from "next/font/google";
2+import { Noto_Sans } from "next/font/google";
3+import { AppSidebar } from "@/components/app-sidebar";
34 import { ThemeProvider } from "@/components/theme-provider";
5+import { SidebarProvider, SidebarTrigger } from "@/components/ui/sidebar";
46 import "./globals.css";
57
68 const notoSans = Noto_Sans({ variable: "--font-sans" });
79
8-const openSans = Open_Sans({
9- variable: "--font-open-sans",
10- subsets: ["latin"],
11-});
12-
1310 export const metadata: Metadata = {
1411 title: "Search Agent thingy (SAT)",
1512 description: "Generated by create next app",
@@ -29,7 +26,13 @@ export default function RootLayout({
2926 enableSystem
3027 disableTransitionOnChange
3128 >
32- {children}
29+ <SidebarProvider>
30+ <AppSidebar />
31+ <main>
32+ <SidebarTrigger />
33+ {children}
34+ </main>
35+ </SidebarProvider>
3336 </ThemeProvider>
3437 </body>
3538 </html>
src/app/page.tsx+1−7
@@ -1,9 +1,3 @@
1-import { ModeToggle } from "@/components/mode-toggle";
2-
31 export default function Page() {
4- return (
5- <div>
6- <ModeToggle />
7- </div>
8- );
2+ return <div>{/* Page content */}</div>;
93 }
src/components/app-sidebar.tsx+22−0
@@ -0,0 +1,22 @@
1+import { Brand } from "@/components/brand";
2+import { ModeToggle } from "@/components/mode-toggle";
3+import {
4+ Sidebar,
5+ SidebarContent,
6+ SidebarFooter,
7+ SidebarHeader,
8+} from "@/components/ui/sidebar";
9+
10+export function AppSidebar() {
11+ return (
12+ <Sidebar>
13+ <SidebarHeader className="flex items-center justify-center">
14+ <Brand />
15+ </SidebarHeader>
16+ <SidebarContent>{/* Sidebar content will go here */}</SidebarContent>
17+ <SidebarFooter>
18+ <ModeToggle />
19+ </SidebarFooter>
20+ </Sidebar>
21+ );
22+}
src/components/brand.tsx+19−0
@@ -0,0 +1,19 @@
1+import Image from "next/image";
2+import Logo from "@/app/favicon.svg";
3+
4+export function Brand() {
5+ return (
6+ <div className="p-8">
7+ <div className="bg-foreground rounded-full p-1 drop-shadow-sm">
8+ <Image
9+ src={Logo}
10+ alt="Logo"
11+ width={32}
12+ height={32}
13+ className="invert dark:invert-0"
14+ />
15+ </div>
16+ <h1 className="text-2xl font-bold pt-4">SAT</h1>
17+ </div>
18+ );
19+}
src/components/theme-provider.tsx+4−4
@@ -1,11 +1,11 @@
1-"use client"
1+"use client";
22
3-import type { ComponentProps } from "react"
4-import { ThemeProvider as NextThemesProvider } from "next-themes"
3+import type { ComponentProps } from "react";
4+import { ThemeProvider as NextThemesProvider } from "next-themes";
55
66 export function ThemeProvider({
77 children,
88 ...props
99 }: ComponentProps<typeof NextThemesProvider>) {
10- return <NextThemesProvider {...props}>{children}</NextThemesProvider>
10+ return <NextThemesProvider {...props}>{children}</NextThemesProvider>;
1111 }
src/components/ui/alert-dialog.tsx+41−26
@@ -1,15 +1,15 @@
1-"use client"
1+"use client";
22
3-import * as React from "react"
4-import { AlertDialog as AlertDialogPrimitive } from "radix-ui"
3+import * as React from "react";
4+import { AlertDialog as AlertDialogPrimitive } from "radix-ui";
55
6-import { cn } from "@/lib/utils"
7-import { Button } from "@/components/ui/button"
6+import { cn } from "@/lib/utils";
7+import { Button } from "@/components/ui/button";
88
99 function AlertDialog({
1010 ...props
1111 }: React.ComponentProps<typeof AlertDialogPrimitive.Root>) {
12- return <AlertDialogPrimitive.Root data-slot="alert-dialog" {...props} />
12+ return <AlertDialogPrimitive.Root data-slot="alert-dialog" {...props} />;
1313 }
1414
1515 function AlertDialogTrigger({
@@ -17,7 +17,7 @@ function AlertDialogTrigger({
1717 }: React.ComponentProps<typeof AlertDialogPrimitive.Trigger>) {
1818 return (
1919 <AlertDialogPrimitive.Trigger data-slot="alert-dialog-trigger" {...props} />
20- )
20+ );
2121 }
2222
2323 function AlertDialogPortal({
@@ -25,7 +25,7 @@ function AlertDialogPortal({
2525 }: React.ComponentProps<typeof AlertDialogPrimitive.Portal>) {
2626 return (
2727 <AlertDialogPrimitive.Portal data-slot="alert-dialog-portal" {...props} />
28- )
28+ );
2929 }
3030
3131 function AlertDialogOverlay({
@@ -35,10 +35,13 @@ function AlertDialogOverlay({
3535 return (
3636 <AlertDialogPrimitive.Overlay
3737 data-slot="alert-dialog-overlay"
38- className={cn("data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/80 duration-100 supports-backdrop-filter:backdrop-blur-xs fixed inset-0 z-50", className)}
38+ className={cn(
39+ "data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/80 duration-100 supports-backdrop-filter:backdrop-blur-xs fixed inset-0 z-50",
40+ className,
41+ )}
3942 {...props}
4043 />
41- )
44+ );
4245 }
4346
4447 function AlertDialogContent({
@@ -46,7 +49,7 @@ function AlertDialogContent({
4649 size = "default",
4750 ...props
4851 }: React.ComponentProps<typeof AlertDialogPrimitive.Content> & {
49- size?: "default" | "sm"
52+ size?: "default" | "sm";
5053 }) {
5154 return (
5255 <AlertDialogPortal>
@@ -56,12 +59,12 @@ function AlertDialogContent({
5659 data-size={size}
5760 className={cn(
5861 "data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 bg-background ring-foreground/5 gap-6 rounded-4xl p-6 ring-1 duration-100 data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-md group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 outline-none",
59- className
62+ className,
6063 )}
6164 {...props}
6265 />
6366 </AlertDialogPortal>
64- )
67+ );
6568 }
6669
6770 function AlertDialogHeader({
@@ -71,10 +74,13 @@ function AlertDialogHeader({
7174 return (
7275 <div
7376 data-slot="alert-dialog-header"
74- className={cn("grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-6 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]", className)}
77+ className={cn(
78+ "grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-6 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]",
79+ className,
80+ )}
7581 {...props}
7682 />
77- )
83+ );
7884 }
7985
8086 function AlertDialogFooter({
@@ -86,11 +92,11 @@ function AlertDialogFooter({
8692 data-slot="alert-dialog-footer"
8793 className={cn(
8894 "flex flex-col-reverse gap-2 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end",
89- className
95+ className,
9096 )}
9197 {...props}
9298 />
93- )
99+ );
94100 }
95101
96102 function AlertDialogMedia({
@@ -100,10 +106,13 @@ function AlertDialogMedia({
100106 return (
101107 <div
102108 data-slot="alert-dialog-media"
103- className={cn("bg-muted mb-2 inline-flex size-16 items-center justify-center rounded-full sm:group-data-[size=default]/alert-dialog-content:row-span-2 *:[svg:not([class*='size-'])]:size-8", className)}
109+ className={cn(
110+ "bg-muted mb-2 inline-flex size-16 items-center justify-center rounded-full sm:group-data-[size=default]/alert-dialog-content:row-span-2 *:[svg:not([class*='size-'])]:size-8",
111+ className,
112+ )}
104113 {...props}
105114 />
106- )
115+ );
107116 }
108117
109118 function AlertDialogTitle({
@@ -113,10 +122,13 @@ function AlertDialogTitle({
113122 return (
114123 <AlertDialogPrimitive.Title
115124 data-slot="alert-dialog-title"
116- className={cn("text-lg font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2", className)}
125+ className={cn(
126+ "text-lg font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2",
127+ className,
128+ )}
117129 {...props}
118130 />
119- )
131+ );
120132 }
121133
122134 function AlertDialogDescription({
@@ -126,10 +138,13 @@ function AlertDialogDescription({
126138 return (
127139 <AlertDialogPrimitive.Description
128140 data-slot="alert-dialog-description"
129- className={cn("text-muted-foreground *:[a]:hover:text-foreground text-sm text-balance md:text-pretty *:[a]:underline *:[a]:underline-offset-3", className)}
141+ className={cn(
142+ "text-muted-foreground *:[a]:hover:text-foreground text-sm text-balance md:text-pretty *:[a]:underline *:[a]:underline-offset-3",
143+ className,
144+ )}
130145 {...props}
131146 />
132- )
147+ );
133148 }
134149
135150 function AlertDialogAction({
@@ -147,7 +162,7 @@ function AlertDialogAction({
147162 {...props}
148163 />
149164 </Button>
150- )
165+ );
151166 }
152167
153168 function AlertDialogCancel({
@@ -165,7 +180,7 @@ function AlertDialogCancel({
165180 {...props}
166181 />
167182 </Button>
168- )
183+ );
169184 }
170185
171186 export {
@@ -181,4 +196,4 @@ export {
181196 AlertDialogPortal,
182197 AlertDialogTitle,
183198 AlertDialogTrigger,
184-}
199+};
src/components/ui/badge.tsx+17−13
@@ -1,8 +1,8 @@
1-import * as React from "react"
2-import { cva, type VariantProps } from "class-variance-authority"
3-import { Slot } from "radix-ui"
1+import * as React from "react";
2+import { cva, type VariantProps } from "class-variance-authority";
3+import { Slot } from "radix-ui";
44
5-import { cn } from "@/lib/utils"
5+import { cn } from "@/lib/utils";
66
77 const badgeVariants = cva(
88 "h-5 gap-1 rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium transition-all has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&>svg]:size-3! inline-flex items-center justify-center w-fit whitespace-nowrap shrink-0 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-colors overflow-hidden …
@@ -10,18 +10,22 @@ const badgeVariants = cva(
1010 variants: {
1111 variant: {
1212 default: "bg-primary text-primary-foreground [a]:hover:bg-primary/80",
13- secondary: "bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",
14- destructive: "bg-destructive/10 [a]:hover:bg-destructive/20 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 text-destructive dark:bg-destructive/20",
15- outline: "border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground bg-input/30",
16- ghost: "hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",
13+ secondary:
14+ "bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",
15+ destructive:
16+ "bg-destructive/10 [a]:hover:bg-destructive/20 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 text-destructive dark:bg-destructive/20",
17+ outline:
18+ "border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground bg-input/30",
19+ ghost:
20+ "hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",
1721 link: "text-primary underline-offset-4 hover:underline",
1822 },
1923 },
2024 defaultVariants: {
2125 variant: "default",
2226 },
23- }
24-)
27+ },
28+);
2529
2630 function Badge({
2731 className,
@@ -30,7 +34,7 @@ function Badge({
3034 ...props
3135 }: React.ComponentProps<"span"> &
3236 VariantProps<typeof badgeVariants> & { asChild?: boolean }) {
33- const Comp = asChild ? Slot.Root : "span"
37+ const Comp = asChild ? Slot.Root : "span";
3438
3539 return (
3640 <Comp
@@ -39,7 +43,7 @@ function Badge({
3943 className={cn(badgeVariants({ variant }), className)}
4044 {...props}
4145 />
42- )
46+ );
4347 }
4448
45-export { Badge, badgeVariants }
49+export { Badge, badgeVariants };
src/components/ui/button.tsx+20−15
@@ -1,8 +1,8 @@
1-import * as React from "react"
2-import { cva, type VariantProps } from "class-variance-authority"
3-import { Slot } from "radix-ui"
1+import * as React from "react";
2+import { cva, type VariantProps } from "class-variance-authority";
3+import { Slot } from "radix-ui";
44
5-import { cn } from "@/lib/utils"
5+import { cn } from "@/lib/utils";
66
77 const buttonVariants = cva(
88 "focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 rounded-4xl border border-transparent bg-clip-padding text-sm font-medium focus-visible:ring-[3px] aria-invalid:ring-[3px] [&_svg:not([class*='size-'])]:size-4 inline-flex items-center justify-center whitespace-nowrap transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-eve …
@@ -10,14 +10,19 @@ const buttonVariants = cva(
1010 variants: {
1111 variant: {
1212 default: "bg-primary text-primary-foreground hover:bg-primary/80",
13- outline: "border-border bg-input/30 hover:bg-input/50 hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground",
14- secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",
15- ghost: "hover:bg-muted hover:text-foreground dark:hover:bg-muted/50 aria-expanded:bg-muted aria-expanded:text-foreground",
16- destructive: "bg-destructive/10 hover:bg-destructive/20 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/20 text-destructive focus-visible:border-destructive/40 dark:hover:bg-destructive/30",
13+ outline:
14+ "border-border bg-input/30 hover:bg-input/50 hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground",
15+ secondary:
16+ "bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",
17+ ghost:
18+ "hover:bg-muted hover:text-foreground dark:hover:bg-muted/50 aria-expanded:bg-muted aria-expanded:text-foreground",
19+ destructive:
20+ "bg-destructive/10 hover:bg-destructive/20 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/20 text-destructive focus-visible:border-destructive/40 dark:hover:bg-destructive/30",
1721 link: "text-primary underline-offset-4 hover:underline",
1822 },
1923 size: {
20- default: "h-9 gap-1.5 px-3 has-data-[icon=inline-end]:pr-2.5 has-data-[icon=inline-start]:pl-2.5",
24+ default:
25+ "h-9 gap-1.5 px-3 has-data-[icon=inline-end]:pr-2.5 has-data-[icon=inline-start]:pl-2.5",
2126 xs: "h-6 gap-1 px-2.5 text-xs has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2 [&_svg:not([class*='size-'])]:size-3",
2227 sm: "h-8 gap-1 px-3 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
2328 lg: "h-10 gap-1.5 px-4 has-data-[icon=inline-end]:pr-3 has-data-[icon=inline-start]:pl-3",
@@ -31,8 +36,8 @@ const buttonVariants = cva(
3136 variant: "default",
3237 size: "default",
3338 },
34- }
35-)
39+ },
40+);
3641
3742 function Button({
3843 className,
@@ -42,9 +47,9 @@ function Button({
4247 ...props
4348 }: React.ComponentProps<"button"> &
4449 VariantProps<typeof buttonVariants> & {
45- asChild?: boolean
50+ asChild?: boolean;
4651 }) {
47- const Comp = asChild ? Slot.Root : "button"
52+ const Comp = asChild ? Slot.Root : "button";
4853
4954 return (
5055 <Comp
@@ -54,7 +59,7 @@ function Button({
5459 className={cn(buttonVariants({ variant, size, className }))}
5560 {...props}
5661 />
57- )
62+ );
5863 }
5964
60-export { Button, buttonVariants }
65+export { Button, buttonVariants };
src/components/ui/card.tsx+20−14
@@ -1,6 +1,6 @@
1-import * as React from "react"
1+import * as React from "react";
22
3-import { cn } from "@/lib/utils"
3+import { cn } from "@/lib/utils";
44
55 function Card({
66 className,
@@ -11,10 +11,13 @@ function Card({
1111 <div
1212 data-slot="card"
1313 data-size={size}
14- className={cn("ring-foreground/10 bg-card text-card-foreground gap-6 overflow-hidden rounded-2xl py-6 text-sm ring-1 has-[>img:first-child]:pt-0 data-[size=sm]:gap-4 data-[size=sm]:py-4 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl group/card flex flex-col", className)}
14+ className={cn(
15+ "ring-foreground/10 bg-card text-card-foreground gap-6 overflow-hidden rounded-2xl py-6 text-sm ring-1 has-[>img:first-child]:pt-0 data-[size=sm]:gap-4 data-[size=sm]:py-4 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl group/card flex flex-col",
16+ className,
17+ )}
1518 {...props}
1619 />
17- )
20+ );
1821 }
1922
2023 function CardHeader({ className, ...props }: React.ComponentProps<"div">) {
@@ -23,11 +26,11 @@ function CardHeader({ className, ...props }: React.ComponentProps<"div">) {
2326 data-slot="card-header"
2427 className={cn(
2528 "gap-2 rounded-t-xl px-6 group-data-[size=sm]/card:px-4 [.border-b]:pb-6 group-data-[size=sm]/card:[.border-b]:pb-4 group/card-header @container/card-header grid auto-rows-min items-start has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto]",
26- className
29+ className,
2730 )}
2831 {...props}
2932 />
30- )
33+ );
3134 }
3235
3336 function CardTitle({ className, ...props }: React.ComponentProps<"div">) {
@@ -37,7 +40,7 @@ function CardTitle({ className, ...props }: React.ComponentProps<"div">) {
3740 className={cn("text-base font-medium", className)}
3841 {...props}
3942 />
40- )
43+ );
4144 }
4245
4346 function CardDescription({ className, ...props }: React.ComponentProps<"div">) {
@@ -47,7 +50,7 @@ function CardDescription({ className, ...props }: React.ComponentProps<"div">) {
4750 className={cn("text-muted-foreground text-sm", className)}
4851 {...props}
4952 />
50- )
53+ );
5154 }
5255
5356 function CardAction({ className, ...props }: React.ComponentProps<"div">) {
@@ -56,11 +59,11 @@ function CardAction({ className, ...props }: React.ComponentProps<"div">) {
5659 data-slot="card-action"
5760 className={cn(
5861 "col-start-2 row-span-2 row-start-1 self-start justify-self-end",
59- className
62+ className,
6063 )}
6164 {...props}
6265 />
63- )
66+ );
6467 }
6568
6669 function CardContent({ className, ...props }: React.ComponentProps<"div">) {
@@ -70,17 +73,20 @@ function CardContent({ className, ...props }: React.ComponentProps<"div">) {
7073 className={cn("px-6 group-data-[size=sm]/card:px-4", className)}
7174 {...props}
7275 />
73- )
76+ );
7477 }
7578
7679 function CardFooter({ className, ...props }: React.ComponentProps<"div">) {
7780 return (
7881 <div
7982 data-slot="card-footer"
80- className={cn("rounded-b-xl px-6 group-data-[size=sm]/card:px-4 [.border-t]:pt-6 group-data-[size=sm]/card:[.border-t]:pt-4 flex items-center", className)}
83+ className={cn(
84+ "rounded-b-xl px-6 group-data-[size=sm]/card:px-4 [.border-t]:pt-6 group-data-[size=sm]/card:[.border-t]:pt-4 flex items-center",
85+ className,
86+ )}
8187 {...props}
8288 />
83- )
89+ );
8490 }
8591
8692 export {
@@ -91,4 +97,4 @@ export {
9197 CardAction,
9298 CardDescription,
9399 CardContent,
94-}
100+};
src/components/ui/combobox.tsx+47−39
@@ -1,22 +1,22 @@
1-"use client"
1+"use client";
22
3-import * as React from "react"
4-import { Combobox as ComboboxPrimitive } from "@base-ui/react"
3+import * as React from "react";
4+import { Combobox as ComboboxPrimitive } from "@base-ui/react";
55
6-import { cn } from "@/lib/utils"
7-import { Button } from "@/components/ui/button"
6+import { cn } from "@/lib/utils";
7+import { Button } from "@/components/ui/button";
88 import {
99 InputGroup,
1010 InputGroupAddon,
1111 InputGroupButton,
1212 InputGroupInput,
13-} from "@/components/ui/input-group"
14-import { ChevronDownIcon, XIcon, CheckIcon } from "lucide-react"
13+} from "@/components/ui/input-group";
14+import { ChevronDownIcon, XIcon, CheckIcon } from "lucide-react";
1515
16-const Combobox = ComboboxPrimitive.Root
16+const Combobox = ComboboxPrimitive.Root;
1717
1818 function ComboboxValue({ ...props }: ComboboxPrimitive.Value.Props) {
19- return <ComboboxPrimitive.Value data-slot="combobox-value" {...props} />
19+ return <ComboboxPrimitive.Value data-slot="combobox-value" {...props} />;
2020 }
2121
2222 function ComboboxTrigger({
@@ -33,7 +33,7 @@ function ComboboxTrigger({
3333 {children}
3434 <ChevronDownIcon className="text-muted-foreground size-4 pointer-events-none" />
3535 </ComboboxPrimitive.Trigger>
36- )
36+ );
3737 }
3838
3939 function ComboboxClear({ className, ...props }: ComboboxPrimitive.Clear.Props) {
@@ -46,7 +46,7 @@ function ComboboxClear({ className, ...props }: ComboboxPrimitive.Clear.Props) {
4646 >
4747 <XIcon className="pointer-events-none" />
4848 </ComboboxPrimitive.Clear>
49- )
49+ );
5050 }
5151
5252 function ComboboxInput({
@@ -57,8 +57,8 @@ function ComboboxInput({
5757 showClear = false,
5858 ...props
5959 }: ComboboxPrimitive.Input.Props & {
60- showTrigger?: boolean
61- showClear?: boolean
60+ showTrigger?: boolean;
61+ showClear?: boolean;
6262 }) {
6363 return (
6464 <InputGroup className={cn("w-auto", className)}>
@@ -83,7 +83,7 @@ function ComboboxInput({
8383 </InputGroupAddon>
8484 {children}
8585 </InputGroup>
86- )
86+ );
8787 }
8888
8989 function ComboboxContent({
@@ -112,12 +112,15 @@ function ComboboxContent({
112112 <ComboboxPrimitive.Popup
113113 data-slot="combobox-content"
114114 data-chips={!!anchor}
115- className={cn("bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/5 *:data-[slot=input-group]:bg-input/30 max-h-72 min-w-36 overflow-hidden rounded-2xl shadow-2xl ring-1 duration-100 *:data-[slot=input …
115+ className={cn(
116+ "bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/5 *:data-[slot=input-group]:bg-input/30 max-h-72 min-w-36 overflow-hidden rounded-2xl shadow-2xl ring-1 duration-100 *:data-[slot=input-group]:m-1 …
117+ className,
118+ )}
116119 {...props}
117120 />
118121 </ComboboxPrimitive.Positioner>
119122 </ComboboxPrimitive.Portal>
120- )
123+ );
121124 }
122125
123126 function ComboboxList({ className, ...props }: ComboboxPrimitive.List.Props) {
@@ -126,11 +129,11 @@ function ComboboxList({ className, ...props }: ComboboxPrimitive.List.Props) {
126129 data-slot="combobox-list"
127130 className={cn(
128131 "no-scrollbar max-h-[min(calc(--spacing(72)---spacing(9)),calc(var(--available-height)---spacing(9)))] scroll-py-1 overflow-y-auto p-1 data-empty:p-0 overflow-y-auto overscroll-contain",
129- className
132+ className,
130133 )}
131134 {...props}
132135 />
133- )
136+ );
134137 }
135138
136139 function ComboboxItem({
@@ -143,18 +146,20 @@ function ComboboxItem({
143146 data-slot="combobox-item"
144147 className={cn(
145148 "data-highlighted:bg-accent data-highlighted:text-accent-foreground not-data-[variant=destructive]:data-highlighted:**:text-accent-foreground gap-2.5 rounded-xl py-2 pr-8 pl-3 text-sm [&_svg:not([class*='size-'])]:size-4 relative flex w-full cursor-default items-center outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",
146- className
149+ className,
147150 )}
148151 {...props}
149152 >
150153 {children}
151154 <ComboboxPrimitive.ItemIndicator
152- render={<span className="pointer-events-none absolute right-2 flex size-4 items-center justify-center" />}
155+ render={
156+ <span className="pointer-events-none absolute right-2 flex size-4 items-center justify-center" />
157+ }
153158 >
154159 <CheckIcon className="pointer-events-none" />
155160 </ComboboxPrimitive.ItemIndicator>
156161 </ComboboxPrimitive.Item>
157- )
162+ );
158163 }
159164
160165 function ComboboxGroup({ className, ...props }: ComboboxPrimitive.Group.Props) {
@@ -164,7 +169,7 @@ function ComboboxGroup({ className, ...props }: ComboboxPrimitive.Group.Props) {
164169 className={cn(className)}
165170 {...props}
166171 />
167- )
172+ );
168173 }
169174
170175 function ComboboxLabel({
@@ -177,23 +182,26 @@ function ComboboxLabel({
177182 className={cn("text-muted-foreground px-3.5 py-2.5 text-xs", className)}
178183 {...props}
179184 />
180- )
185+ );
181186 }
182187
183188 function ComboboxCollection({ ...props }: ComboboxPrimitive.Collection.Props) {
184189 return (
185190 <ComboboxPrimitive.Collection data-slot="combobox-collection" {...props} />
186- )
191+ );
187192 }
188193
189194 function ComboboxEmpty({ className, ...props }: ComboboxPrimitive.Empty.Props) {
190195 return (
191196 <ComboboxPrimitive.Empty
192197 data-slot="combobox-empty"
193- className={cn("text-muted-foreground hidden w-full justify-center py-2 text-center text-sm group-data-empty/combobox-content:flex", className)}
198+ className={cn(
199+ "text-muted-foreground hidden w-full justify-center py-2 text-center text-sm group-data-empty/combobox-content:flex",
200+ className,
201+ )}
194202 {...props}
195203 />
196- )
204+ );
197205 }
198206
199207 function ComboboxSeparator({
@@ -206,7 +214,7 @@ function ComboboxSeparator({
206214 className={cn("bg-border/50 -mx-1 my-1 h-px", className)}
207215 {...props}
208216 />
209- )
217+ );
210218 }
211219
212220 function ComboboxChips({
@@ -217,10 +225,13 @@ function ComboboxChips({
217225 return (
218226 <ComboboxPrimitive.Chips
219227 data-slot="combobox-chips"
220- className={cn("bg-input/30 border-input focus-within:border-ring focus-within:ring-ring/50 has-aria-invalid:ring-destructive/20 dark:has-aria-invalid:ring-destructive/40 has-aria-invalid:border-destructive dark:has-aria-invalid:border-destructive/50 flex min-h-9 flex-wrap items-center gap-1.5 rounded-4xl border bg-clip-padding px-2.5 py-1.5 text-sm transition-colors focus-within:ring-[3px] has-aria-invalid:ring-[3px] has-data-[slot=combobox-chip]:px-1.5", className)}
228+ className={cn(
229+ "bg-input/30 border-input focus-within:border-ring focus-within:ring-ring/50 has-aria-invalid:ring-destructive/20 dark:has-aria-invalid:ring-destructive/40 has-aria-invalid:border-destructive dark:has-aria-invalid:border-destructive/50 flex min-h-9 flex-wrap items-center gap-1.5 rounded-4xl border bg-clip-padding px-2.5 py-1.5 text-sm transition-colors focus-within:ring-[3px] has-aria-invalid:ring-[3px] has-data-[slot=combobox-chip]:px-1.5",
230+ className,
231+ )}
221232 {...props}
222233 />
223- )
234+ );
224235 }
225236
226237 function ComboboxChip({
@@ -229,14 +240,14 @@ function ComboboxChip({
229240 showRemove = true,
230241 ...props
231242 }: ComboboxPrimitive.Chip.Props & {
232- showRemove?: boolean
243+ showRemove?: boolean;
233244 }) {
234245 return (
235246 <ComboboxPrimitive.Chip
236247 data-slot="combobox-chip"
237248 className={cn(
238249 "bg-muted-foreground/10 text-foreground flex h-[calc(--spacing(5.5))] w-fit items-center justify-center gap-1 rounded-4xl px-2 text-xs font-medium whitespace-nowrap has-data-[slot=combobox-chip-remove]:pr-0 has-disabled:pointer-events-none has-disabled:cursor-not-allowed has-disabled:opacity-50",
239- className
250+ className,
240251 )}
241252 {...props}
242253 >
@@ -251,7 +262,7 @@ function ComboboxChip({
251262 </ComboboxPrimitive.ChipRemove>
252263 )}
253264 </ComboboxPrimitive.Chip>
254- )
265+ );
255266 }
256267
257268 function ComboboxChipsInput({
@@ -261,17 +272,14 @@ function ComboboxChipsInput({
Cut short: this commit's diff is over 1000 lines.
src/components/ui/dropdown-menu.tsx+47−37
Cut short: this commit's diff is over 1000 lines.
src/components/ui/field.tsx+59−48
Cut short: this commit's diff is over 1000 lines.
src/components/ui/input-group.tsx+34−26
Cut short: this commit's diff is over 1000 lines.
src/components/ui/input.tsx+5−5
Cut short: this commit's diff is over 1000 lines.
src/components/ui/label.tsx+7−7
Cut short: this commit's diff is over 1000 lines.
src/components/ui/select.tsx+40−28
Cut short: this commit's diff is over 1000 lines.
src/components/ui/separator.tsx+7−7
Cut short: this commit's diff is over 1000 lines.
src/components/ui/sheet.tsx+143−0
Cut short: this commit's diff is over 1000 lines.
src/components/ui/sidebar.tsx+701−0
Cut short: this commit's diff is over 1000 lines.
src/components/ui/skeleton.tsx+13−0
Cut short: this commit's diff is over 1000 lines.
src/components/ui/textarea.tsx+5−5
Cut short: this commit's diff is over 1000 lines.
src/components/ui/tooltip.tsx+61−0
Cut short: this commit's diff is over 1000 lines.
src/hooks/use-mobile.ts+21−0
Cut short: this commit's diff is over 1000 lines.