Spaces:
Running

axeronis commited on
Commit
50089a4
·
1 Parent(s): 455a5d9

fix(frontend): Add missing shadcn components and dependencies

Browse files
frontend/components/Sidebar.tsx CHANGED
@@ -6,7 +6,7 @@ import { LayoutDashboard, MessageSquare, Database, DollarSign, Send, LogOut, Bra
6
  import { useAuth } from '@/contexts/AuthContext'
7
  import { motion, AnimatePresence } from 'framer-motion'
8
  import { cn } from '@/lib/utils'
9
- import { cn } from '@/lib/utils'
10
 
11
  export function Sidebar() {
12
  const pathname = usePathname()
 
6
  import { useAuth } from '@/contexts/AuthContext'
7
  import { motion, AnimatePresence } from 'framer-motion'
8
  import { cn } from '@/lib/utils'
9
+
10
 
11
  export function Sidebar() {
12
  const pathname = usePathname()
frontend/components/ui/Button.tsx CHANGED
@@ -1,35 +1,56 @@
1
- import { ButtonHTMLAttributes, forwardRef } from 'react'
2
- import { cn } from '@/lib/utils'
 
3
 
4
- export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
5
- variant?: 'default' | 'ghost' | 'outline'
6
- size?: 'sm' | 'md' | 'lg'
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
  }
8
 
9
- export const Button = forwardRef<HTMLButtonElement, ButtonProps>(
10
- ({ className, variant = 'default', size = 'md', ...props }, ref) => {
 
11
  return (
12
- <button
 
13
  ref={ref}
14
- className={cn(
15
- 'inline-flex items-center justify-center font-medium transition-all duration-200 rounded-lg',
16
- 'disabled:opacity-50 disabled:cursor-not-allowed',
17
- {
18
- 'bg-indigo-600 text-white hover:bg-indigo-700': variant === 'default',
19
- 'bg-transparent hover:bg-gray-100': variant === 'ghost',
20
- 'border border-gray-300 bg-white hover:bg-gray-50': variant === 'outline',
21
- },
22
- {
23
- 'px-3 py-1.5 text-sm': size === 'sm',
24
- 'px-4 py-2 text-sm': size === 'md',
25
- 'px-6 py-3 text-base': size === 'lg',
26
- },
27
- className
28
- )}
29
  {...props}
30
  />
31
  )
32
  }
33
  )
 
34
 
35
- Button.displayName = 'Button'
 
1
+ import * as React from "react"
2
+ import { Slot } from "@radix-ui/react-slot"
3
+ import { cva, type VariantProps } from "class-variance-authority"
4
 
5
+ import { cn } from "@/lib/utils"
6
+
7
+ const buttonVariants = cva(
8
+ "inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
9
+ {
10
+ variants: {
11
+ variant: {
12
+ default: "bg-primary text-primary-foreground hover:bg-primary/90",
13
+ destructive:
14
+ "bg-destructive text-destructive-foreground hover:bg-destructive/90",
15
+ outline:
16
+ "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
17
+ secondary:
18
+ "bg-secondary text-secondary-foreground hover:bg-secondary/80",
19
+ ghost: "hover:bg-accent hover:text-accent-foreground",
20
+ link: "text-primary underline-offset-4 hover:underline",
21
+ },
22
+ size: {
23
+ default: "h-10 px-4 py-2",
24
+ sm: "h-9 rounded-md px-3",
25
+ lg: "h-11 rounded-md px-8",
26
+ icon: "h-10 w-10",
27
+ },
28
+ },
29
+ defaultVariants: {
30
+ variant: "default",
31
+ size: "default",
32
+ },
33
+ }
34
+ )
35
+
36
+ export interface ButtonProps
37
+ extends React.ButtonHTMLAttributes<HTMLButtonElement>,
38
+ VariantProps<typeof buttonVariants> {
39
+ asChild?: boolean
40
  }
41
 
42
+ const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
43
+ ({ className, variant, size, asChild = false, ...props }, ref) => {
44
+ const Comp = asChild ? Slot : "button"
45
  return (
46
+ <Comp
47
+ className={cn(buttonVariants({ variant, size, className }))}
48
  ref={ref}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
49
  {...props}
50
  />
51
  )
52
  }
53
  )
54
+ Button.displayName = "Button"
55
 
56
+ export { Button, buttonVariants }
frontend/components/ui/alert.tsx ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import * as React from "react"
2
+ import { cva, type VariantProps } from "class-variance-authority"
3
+
4
+ import { cn } from "@/lib/utils"
5
+
6
+ const alertVariants = cva(
7
+ "relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",
8
+ {
9
+ variants: {
10
+ variant: {
11
+ default: "bg-background text-foreground",
12
+ destructive:
13
+ "border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive",
14
+ },
15
+ },
16
+ defaultVariants: {
17
+ variant: "default",
18
+ },
19
+ }
20
+ )
21
+
22
+ const Alert = React.forwardRef<
23
+ HTMLDivElement,
24
+ React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof alertVariants>
25
+ >(({ className, variant, ...props }, ref) => (
26
+ <div
27
+ ref={ref}
28
+ role="alert"
29
+ className={cn(alertVariants({ variant }), className)}
30
+ {...props}
31
+ />
32
+ ))
33
+ Alert.displayName = "Alert"
34
+
35
+ const AlertTitle = React.forwardRef<
36
+ HTMLParagraphElement,
37
+ React.HTMLAttributes<HTMLHeadingElement>
38
+ >(({ className, ...props }, ref) => (
39
+ <h5
40
+ ref={ref}
41
+ className={cn("mb-1 font-medium leading-none tracking-tight", className)}
42
+ {...props}
43
+ />
44
+ ))
45
+ AlertTitle.displayName = "AlertTitle"
46
+
47
+ const AlertDescription = React.forwardRef<
48
+ HTMLParagraphElement,
49
+ React.HTMLAttributes<HTMLParagraphElement>
50
+ >(({ className, ...props }, ref) => (
51
+ <div
52
+ ref={ref}
53
+ className={cn("text-sm [&_p]:leading-relaxed", className)}
54
+ {...props}
55
+ />
56
+ ))
57
+ AlertDescription.displayName = "AlertDescription"
58
+
59
+ export { Alert, AlertTitle, AlertDescription }
frontend/components/ui/card.tsx ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import * as React from "react"
2
+
3
+ import { cn } from "@/lib/utils"
4
+
5
+ const Card = React.forwardRef<
6
+ HTMLDivElement,
7
+ React.HTMLAttributes<HTMLDivElement>
8
+ >(({ className, ...props }, ref) => (
9
+ <div
10
+ ref={ref}
11
+ className={cn(
12
+ "rounded-lg border bg-card text-card-foreground shadow-sm",
13
+ className
14
+ )}
15
+ {...props}
16
+ />
17
+ ))
18
+ Card.displayName = "Card"
19
+
20
+ const CardHeader = React.forwardRef<
21
+ HTMLDivElement,
22
+ React.HTMLAttributes<HTMLDivElement>
23
+ >(({ className, ...props }, ref) => (
24
+ <div
25
+ ref={ref}
26
+ className={cn("flex flex-col space-y-1.5 p-6", className)}
27
+ {...props}
28
+ />
29
+ ))
30
+ CardHeader.displayName = "CardHeader"
31
+
32
+ const CardTitle = React.forwardRef<
33
+ HTMLParagraphElement,
34
+ React.HTMLAttributes<HTMLHeadingElement>
35
+ >(({ className, ...props }, ref) => (
36
+ <h3
37
+ ref={ref}
38
+ className={cn(
39
+ "text-2xl font-semibold leading-none tracking-tight",
40
+ className
41
+ )}
42
+ {...props}
43
+ />
44
+ ))
45
+ CardTitle.displayName = "CardTitle"
46
+
47
+ const CardDescription = React.forwardRef<
48
+ HTMLParagraphElement,
49
+ React.HTMLAttributes<HTMLParagraphElement>
50
+ >(({ className, ...props }, ref) => (
51
+ <p
52
+ ref={ref}
53
+ className={cn("text-sm text-muted-foreground", className)}
54
+ {...props}
55
+ />
56
+ ))
57
+ CardDescription.displayName = "CardDescription"
58
+
59
+ const CardContent = React.forwardRef<
60
+ HTMLDivElement,
61
+ React.HTMLAttributes<HTMLDivElement>
62
+ >(({ className, ...props }, ref) => (
63
+ <div ref={ref} className={cn("p-6 pt-0", className)} {...props} />
64
+ ))
65
+ CardContent.displayName = "CardContent"
66
+
67
+ const CardFooter = React.forwardRef<
68
+ HTMLDivElement,
69
+ React.HTMLAttributes<HTMLDivElement>
70
+ >(({ className, ...props }, ref) => (
71
+ <div
72
+ ref={ref}
73
+ className={cn("flex items-center p-6 pt-0", className)}
74
+ {...props}
75
+ />
76
+ ))
77
+ CardFooter.displayName = "CardFooter"
78
+
79
+ export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent }
frontend/components/ui/input.tsx ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import * as React from "react"
2
+
3
+ import { cn } from "@/lib/utils"
4
+
5
+ export interface InputProps
6
+ extends React.InputHTMLAttributes<HTMLInputElement> { }
7
+
8
+ const Input = React.forwardRef<HTMLInputElement, InputProps>(
9
+ ({ className, type, ...props }, ref) => {
10
+ return (
11
+ <input
12
+ type={type}
13
+ className={cn(
14
+ "flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
15
+ className
16
+ )}
17
+ ref={ref}
18
+ {...props}
19
+ />
20
+ )
21
+ }
22
+ )
23
+ Input.displayName = "Input"
24
+
25
+ export { Input }
frontend/components/ui/label.tsx ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use client"
2
+
3
+ import * as React from "react"
4
+ import * as LabelPrimitive from "@radix-ui/react-label"
5
+ import { cva, type VariantProps } from "class-variance-authority"
6
+
7
+ import { cn } from "@/lib/utils"
8
+
9
+ const labelVariants = cva(
10
+ "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
11
+ )
12
+
13
+ const Label = React.forwardRef<
14
+ React.ElementRef<typeof LabelPrimitive.Root>,
15
+ React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> &
16
+ VariantProps<typeof labelVariants>
17
+ >(({ className, ...props }, ref) => (
18
+ <LabelPrimitive.Root
19
+ ref={ref}
20
+ className={cn(labelVariants(), className)}
21
+ {...props}
22
+ />
23
+ ))
24
+ Label.displayName = LabelPrimitive.Root.displayName
25
+
26
+ export { Label }
frontend/components/ui/switch.tsx ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use client"
2
+
3
+ import * as React from "react"
4
+ import * as SwitchPrimitive from "@radix-ui/react-switch"
5
+
6
+ import { cn } from "@/lib/utils"
7
+
8
+ const Switch = React.forwardRef<
9
+ React.ElementRef<typeof SwitchPrimitive.Root>,
10
+ React.ComponentPropsWithoutRef<typeof SwitchPrimitive.Root>
11
+ >(({ className, ...props }, ref) => (
12
+ <SwitchPrimitive.Root
13
+ className={cn(
14
+ "peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",
15
+ className
16
+ )}
17
+ {...props}
18
+ ref={ref}
19
+ >
20
+ <SwitchPrimitive.Thumb
21
+ className={cn(
22
+ "pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0"
23
+ )}
24
+ />
25
+ </SwitchPrimitive.Root>
26
+ ))
27
+ Switch.displayName = SwitchPrimitive.Root.displayName
28
+
29
+ export { Switch }
frontend/package-lock.json CHANGED
@@ -8,10 +8,14 @@
8
  "name": "frontend",
9
  "version": "0.1.0",
10
  "dependencies": {
 
 
 
11
  "@react-oauth/google": "^0.12.2",
12
  "@supabase/supabase-js": "^2.84.0",
13
  "@tanstack/react-query": "^5.90.10",
14
  "axios": "^1.13.2",
 
15
  "clsx": "^2.1.1",
16
  "date-fns": "^4.1.0",
17
  "framer-motion": "^12.23.24",
@@ -1238,6 +1242,261 @@
1238
  "node": ">=12.4.0"
1239
  }
1240
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1241
  "node_modules/@react-oauth/google": {
1242
  "version": "0.12.2",
1243
  "resolved": "https://registry.npmjs.org/@react-oauth/google/-/google-0.12.2.tgz",
@@ -1803,8 +2062,9 @@
1803
  "version": "19.2.3",
1804
  "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.2.3.tgz",
1805
  "integrity": "sha512-jp2L/eY6fn+KgVVQAOqYItbF0VY/YApe5Mz2F0aykSO8gx31bYCZyvSeYxCHKvzHG5eZjc+zyaS5BrBWya2+kQ==",
1806
- "dev": true,
1807
  "license": "MIT",
 
1808
  "peerDependencies": {
1809
  "@types/react": "^19.2.0"
1810
  }
@@ -2880,6 +3140,18 @@
2880
  "url": "https://github.com/chalk/chalk?sponsor=1"
2881
  }
2882
  },
 
 
 
 
 
 
 
 
 
 
 
 
2883
  "node_modules/client-only": {
2884
  "version": "0.0.1",
2885
  "resolved": "https://registry.npmjs.org/client-only/-/client-only-0.0.1.tgz",
 
8
  "name": "frontend",
9
  "version": "0.1.0",
10
  "dependencies": {
11
+ "@radix-ui/react-label": "^2.1.8",
12
+ "@radix-ui/react-slot": "^1.2.4",
13
+ "@radix-ui/react-switch": "^1.2.6",
14
  "@react-oauth/google": "^0.12.2",
15
  "@supabase/supabase-js": "^2.84.0",
16
  "@tanstack/react-query": "^5.90.10",
17
  "axios": "^1.13.2",
18
+ "class-variance-authority": "^0.7.1",
19
  "clsx": "^2.1.1",
20
  "date-fns": "^4.1.0",
21
  "framer-motion": "^12.23.24",
 
1242
  "node": ">=12.4.0"
1243
  }
1244
  },
1245
+ "node_modules/@radix-ui/primitive": {
1246
+ "version": "1.1.3",
1247
+ "resolved": "https://registry.npmjs.org/@radix-ui/primitive/-/primitive-1.1.3.tgz",
1248
+ "integrity": "sha512-JTF99U/6XIjCBo0wqkU5sK10glYe27MRRsfwoiq5zzOEZLHU3A3KCMa5X/azekYRCJ0HlwI0crAXS/5dEHTzDg==",
1249
+ "license": "MIT"
1250
+ },
1251
+ "node_modules/@radix-ui/react-compose-refs": {
1252
+ "version": "1.1.2",
1253
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-compose-refs/-/react-compose-refs-1.1.2.tgz",
1254
+ "integrity": "sha512-z4eqJvfiNnFMHIIvXP3CY57y2WJs5g2v3X0zm9mEJkrkNv4rDxu+sg9Jh8EkXyeqBkB7SOcboo9dMVqhyrACIg==",
1255
+ "license": "MIT",
1256
+ "peerDependencies": {
1257
+ "@types/react": "*",
1258
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
1259
+ },
1260
+ "peerDependenciesMeta": {
1261
+ "@types/react": {
1262
+ "optional": true
1263
+ }
1264
+ }
1265
+ },
1266
+ "node_modules/@radix-ui/react-context": {
1267
+ "version": "1.1.2",
1268
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-context/-/react-context-1.1.2.tgz",
1269
+ "integrity": "sha512-jCi/QKUM2r1Ju5a3J64TH2A5SpKAgh0LpknyqdQ4m6DCV0xJ2HG1xARRwNGPQfi1SLdLWZ1OJz6F4OMBBNiGJA==",
1270
+ "license": "MIT",
1271
+ "peerDependencies": {
1272
+ "@types/react": "*",
1273
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
1274
+ },
1275
+ "peerDependenciesMeta": {
1276
+ "@types/react": {
1277
+ "optional": true
1278
+ }
1279
+ }
1280
+ },
1281
+ "node_modules/@radix-ui/react-label": {
1282
+ "version": "2.1.8",
1283
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-label/-/react-label-2.1.8.tgz",
1284
+ "integrity": "sha512-FmXs37I6hSBVDlO4y764TNz1rLgKwjJMQ0EGte6F3Cb3f4bIuHB/iLa/8I9VKkmOy+gNHq8rql3j686ACVV21A==",
1285
+ "license": "MIT",
1286
+ "dependencies": {
1287
+ "@radix-ui/react-primitive": "2.1.4"
1288
+ },
1289
+ "peerDependencies": {
1290
+ "@types/react": "*",
1291
+ "@types/react-dom": "*",
1292
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
1293
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
1294
+ },
1295
+ "peerDependenciesMeta": {
1296
+ "@types/react": {
1297
+ "optional": true
1298
+ },
1299
+ "@types/react-dom": {
1300
+ "optional": true
1301
+ }
1302
+ }
1303
+ },
1304
+ "node_modules/@radix-ui/react-primitive": {
1305
+ "version": "2.1.4",
1306
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.1.4.tgz",
1307
+ "integrity": "sha512-9hQc4+GNVtJAIEPEqlYqW5RiYdrr8ea5XQ0ZOnD6fgru+83kqT15mq2OCcbe8KnjRZl5vF3ks69AKz3kh1jrhg==",
1308
+ "license": "MIT",
1309
+ "dependencies": {
1310
+ "@radix-ui/react-slot": "1.2.4"
1311
+ },
1312
+ "peerDependencies": {
1313
+ "@types/react": "*",
1314
+ "@types/react-dom": "*",
1315
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
1316
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
1317
+ },
1318
+ "peerDependenciesMeta": {
1319
+ "@types/react": {
1320
+ "optional": true
1321
+ },
1322
+ "@types/react-dom": {
1323
+ "optional": true
1324
+ }
1325
+ }
1326
+ },
1327
+ "node_modules/@radix-ui/react-slot": {
1328
+ "version": "1.2.4",
1329
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.2.4.tgz",
1330
+ "integrity": "sha512-Jl+bCv8HxKnlTLVrcDE8zTMJ09R9/ukw4qBs/oZClOfoQk/cOTbDn+NceXfV7j09YPVQUryJPHurafcSg6EVKA==",
1331
+ "license": "MIT",
1332
+ "dependencies": {
1333
+ "@radix-ui/react-compose-refs": "1.1.2"
1334
+ },
1335
+ "peerDependencies": {
1336
+ "@types/react": "*",
1337
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
1338
+ },
1339
+ "peerDependenciesMeta": {
1340
+ "@types/react": {
1341
+ "optional": true
1342
+ }
1343
+ }
1344
+ },
1345
+ "node_modules/@radix-ui/react-switch": {
1346
+ "version": "1.2.6",
1347
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-switch/-/react-switch-1.2.6.tgz",
1348
+ "integrity": "sha512-bByzr1+ep1zk4VubeEVViV592vu2lHE2BZY5OnzehZqOOgogN80+mNtCqPkhn2gklJqOpxWgPoYTSnhBCqpOXQ==",
1349
+ "license": "MIT",
1350
+ "dependencies": {
1351
+ "@radix-ui/primitive": "1.1.3",
1352
+ "@radix-ui/react-compose-refs": "1.1.2",
1353
+ "@radix-ui/react-context": "1.1.2",
1354
+ "@radix-ui/react-primitive": "2.1.3",
1355
+ "@radix-ui/react-use-controllable-state": "1.2.2",
1356
+ "@radix-ui/react-use-previous": "1.1.1",
1357
+ "@radix-ui/react-use-size": "1.1.1"
1358
+ },
1359
+ "peerDependencies": {
1360
+ "@types/react": "*",
1361
+ "@types/react-dom": "*",
1362
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
1363
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
1364
+ },
1365
+ "peerDependenciesMeta": {
1366
+ "@types/react": {
1367
+ "optional": true
1368
+ },
1369
+ "@types/react-dom": {
1370
+ "optional": true
1371
+ }
1372
+ }
1373
+ },
1374
+ "node_modules/@radix-ui/react-switch/node_modules/@radix-ui/react-primitive": {
1375
+ "version": "2.1.3",
1376
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.1.3.tgz",
1377
+ "integrity": "sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ==",
1378
+ "license": "MIT",
1379
+ "dependencies": {
1380
+ "@radix-ui/react-slot": "1.2.3"
1381
+ },
1382
+ "peerDependencies": {
1383
+ "@types/react": "*",
1384
+ "@types/react-dom": "*",
1385
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
1386
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
1387
+ },
1388
+ "peerDependenciesMeta": {
1389
+ "@types/react": {
1390
+ "optional": true
1391
+ },
1392
+ "@types/react-dom": {
1393
+ "optional": true
1394
+ }
1395
+ }
1396
+ },
1397
+ "node_modules/@radix-ui/react-switch/node_modules/@radix-ui/react-slot": {
1398
+ "version": "1.2.3",
1399
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.2.3.tgz",
1400
+ "integrity": "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A==",
1401
+ "license": "MIT",
1402
+ "dependencies": {
1403
+ "@radix-ui/react-compose-refs": "1.1.2"
1404
+ },
1405
+ "peerDependencies": {
1406
+ "@types/react": "*",
1407
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
1408
+ },
1409
+ "peerDependenciesMeta": {
1410
+ "@types/react": {
1411
+ "optional": true
1412
+ }
1413
+ }
1414
+ },
1415
+ "node_modules/@radix-ui/react-use-controllable-state": {
1416
+ "version": "1.2.2",
1417
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-controllable-state/-/react-use-controllable-state-1.2.2.tgz",
1418
+ "integrity": "sha512-BjasUjixPFdS+NKkypcyyN5Pmg83Olst0+c6vGov0diwTEo6mgdqVR6hxcEgFuh4QrAs7Rc+9KuGJ9TVCj0Zzg==",
1419
+ "license": "MIT",
1420
+ "dependencies": {
1421
+ "@radix-ui/react-use-effect-event": "0.0.2",
1422
+ "@radix-ui/react-use-layout-effect": "1.1.1"
1423
+ },
1424
+ "peerDependencies": {
1425
+ "@types/react": "*",
1426
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
1427
+ },
1428
+ "peerDependenciesMeta": {
1429
+ "@types/react": {
1430
+ "optional": true
1431
+ }
1432
+ }
1433
+ },
1434
+ "node_modules/@radix-ui/react-use-effect-event": {
1435
+ "version": "0.0.2",
1436
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-effect-event/-/react-use-effect-event-0.0.2.tgz",
1437
+ "integrity": "sha512-Qp8WbZOBe+blgpuUT+lw2xheLP8q0oatc9UpmiemEICxGvFLYmHm9QowVZGHtJlGbS6A6yJ3iViad/2cVjnOiA==",
1438
+ "license": "MIT",
1439
+ "dependencies": {
1440
+ "@radix-ui/react-use-layout-effect": "1.1.1"
1441
+ },
1442
+ "peerDependencies": {
1443
+ "@types/react": "*",
1444
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
1445
+ },
1446
+ "peerDependenciesMeta": {
1447
+ "@types/react": {
1448
+ "optional": true
1449
+ }
1450
+ }
1451
+ },
1452
+ "node_modules/@radix-ui/react-use-layout-effect": {
1453
+ "version": "1.1.1",
1454
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-layout-effect/-/react-use-layout-effect-1.1.1.tgz",
1455
+ "integrity": "sha512-RbJRS4UWQFkzHTTwVymMTUv8EqYhOp8dOOviLj2ugtTiXRaRQS7GLGxZTLL1jWhMeoSCf5zmcZkqTl9IiYfXcQ==",
1456
+ "license": "MIT",
1457
+ "peerDependencies": {
1458
+ "@types/react": "*",
1459
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
1460
+ },
1461
+ "peerDependenciesMeta": {
1462
+ "@types/react": {
1463
+ "optional": true
1464
+ }
1465
+ }
1466
+ },
1467
+ "node_modules/@radix-ui/react-use-previous": {
1468
+ "version": "1.1.1",
1469
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-previous/-/react-use-previous-1.1.1.tgz",
1470
+ "integrity": "sha512-2dHfToCj/pzca2Ck724OZ5L0EVrr3eHRNsG/b3xQJLA2hZpVCS99bLAX+hm1IHXDEnzU6by5z/5MIY794/a8NQ==",
1471
+ "license": "MIT",
1472
+ "peerDependencies": {
1473
+ "@types/react": "*",
1474
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
1475
+ },
1476
+ "peerDependenciesMeta": {
1477
+ "@types/react": {
1478
+ "optional": true
1479
+ }
1480
+ }
1481
+ },
1482
+ "node_modules/@radix-ui/react-use-size": {
1483
+ "version": "1.1.1",
1484
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-size/-/react-use-size-1.1.1.tgz",
1485
+ "integrity": "sha512-ewrXRDTAqAXlkl6t/fkXWNAhFX9I+CkKlw6zjEwk86RSPKwZr3xpBRso655aqYafwtnbpHLj6toFzmd6xdVptQ==",
1486
+ "license": "MIT",
1487
+ "dependencies": {
1488
+ "@radix-ui/react-use-layout-effect": "1.1.1"
1489
+ },
1490
+ "peerDependencies": {
1491
+ "@types/react": "*",
1492
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
1493
+ },
1494
+ "peerDependenciesMeta": {
1495
+ "@types/react": {
1496
+ "optional": true
1497
+ }
1498
+ }
1499
+ },
1500
  "node_modules/@react-oauth/google": {
1501
  "version": "0.12.2",
1502
  "resolved": "https://registry.npmjs.org/@react-oauth/google/-/google-0.12.2.tgz",
 
2062
  "version": "19.2.3",
2063
  "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.2.3.tgz",
2064
  "integrity": "sha512-jp2L/eY6fn+KgVVQAOqYItbF0VY/YApe5Mz2F0aykSO8gx31bYCZyvSeYxCHKvzHG5eZjc+zyaS5BrBWya2+kQ==",
2065
+ "devOptional": true,
2066
  "license": "MIT",
2067
+ "peer": true,
2068
  "peerDependencies": {
2069
  "@types/react": "^19.2.0"
2070
  }
 
3140
  "url": "https://github.com/chalk/chalk?sponsor=1"
3141
  }
3142
  },
3143
+ "node_modules/class-variance-authority": {
3144
+ "version": "0.7.1",
3145
+ "resolved": "https://registry.npmjs.org/class-variance-authority/-/class-variance-authority-0.7.1.tgz",
3146
+ "integrity": "sha512-Ka+9Trutv7G8M6WT6SeiRWz792K5qEqIGEGzXKhAE6xOWAY6pPH8U+9IY3oCMv6kqTmLsv7Xh/2w2RigkePMsg==",
3147
+ "license": "Apache-2.0",
3148
+ "dependencies": {
3149
+ "clsx": "^2.1.1"
3150
+ },
3151
+ "funding": {
3152
+ "url": "https://polar.sh/cva"
3153
+ }
3154
+ },
3155
  "node_modules/client-only": {
3156
  "version": "0.0.1",
3157
  "resolved": "https://registry.npmjs.org/client-only/-/client-only-0.0.1.tgz",
frontend/package.json CHANGED
@@ -9,10 +9,14 @@
9
  "lint": "eslint"
10
  },
11
  "dependencies": {
 
 
 
12
  "@react-oauth/google": "^0.12.2",
13
  "@supabase/supabase-js": "^2.84.0",
14
  "@tanstack/react-query": "^5.90.10",
15
  "axios": "^1.13.2",
 
16
  "clsx": "^2.1.1",
17
  "date-fns": "^4.1.0",
18
  "framer-motion": "^12.23.24",
 
9
  "lint": "eslint"
10
  },
11
  "dependencies": {
12
+ "@radix-ui/react-label": "^2.1.8",
13
+ "@radix-ui/react-slot": "^1.2.4",
14
+ "@radix-ui/react-switch": "^1.2.6",
15
  "@react-oauth/google": "^0.12.2",
16
  "@supabase/supabase-js": "^2.84.0",
17
  "@tanstack/react-query": "^5.90.10",
18
  "axios": "^1.13.2",
19
+ "class-variance-authority": "^0.7.1",
20
  "clsx": "^2.1.1",
21
  "date-fns": "^4.1.0",
22
  "framer-motion": "^12.23.24",