nipponboardspt 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/.lovable/plan/nippon-boards-landing-page-2026-09-22.md +27 -0
  2. package/.lovable/project.json +5 -0
  3. package/.prettierignore +8 -0
  4. package/.prettierrc +6 -0
  5. package/AGENTS.md +10 -0
  6. package/README.md +134 -0
  7. package/bun.lock +1048 -0
  8. package/bunfig.toml +7 -0
  9. package/components.json +22 -0
  10. package/eslint.config.js +40 -0
  11. package/package.json +91 -0
  12. package/public/favicon.svg +7 -0
  13. package/public/robots.txt +14 -0
  14. package/roadmap.md +6 -0
  15. package/src/assets/nippon-ecu-bench.jpg +0 -0
  16. package/src/assets/nippon-hero-lab.jpg +0 -0
  17. package/src/assets/nippon-microsolder.jpg +0 -0
  18. package/src/components/Button.tsx +37 -0
  19. package/src/components/ui/accordion.tsx +51 -0
  20. package/src/components/ui/alert-dialog.tsx +115 -0
  21. package/src/components/ui/alert.tsx +49 -0
  22. package/src/components/ui/aspect-ratio.tsx +5 -0
  23. package/src/components/ui/avatar.tsx +47 -0
  24. package/src/components/ui/badge.tsx +32 -0
  25. package/src/components/ui/breadcrumb.tsx +101 -0
  26. package/src/components/ui/button.tsx +49 -0
  27. package/src/components/ui/calendar.tsx +177 -0
  28. package/src/components/ui/card.tsx +55 -0
  29. package/src/components/ui/carousel.tsx +240 -0
  30. package/src/components/ui/chart.tsx +331 -0
  31. package/src/components/ui/checkbox.tsx +26 -0
  32. package/src/components/ui/collapsible.tsx +11 -0
  33. package/src/components/ui/command.tsx +143 -0
  34. package/src/components/ui/context-menu.tsx +186 -0
  35. package/src/components/ui/dialog.tsx +104 -0
  36. package/src/components/ui/drawer.tsx +98 -0
  37. package/src/components/ui/dropdown-menu.tsx +187 -0
  38. package/src/components/ui/form.tsx +171 -0
  39. package/src/components/ui/hover-card.tsx +27 -0
  40. package/src/components/ui/input-otp.tsx +73 -0
  41. package/src/components/ui/input.tsx +22 -0
  42. package/src/components/ui/label.tsx +21 -0
  43. package/src/components/ui/menubar.tsx +228 -0
  44. package/src/components/ui/navigation-menu.tsx +120 -0
  45. package/src/components/ui/pagination.tsx +98 -0
  46. package/src/components/ui/popover.tsx +31 -0
  47. package/src/components/ui/progress.tsx +25 -0
  48. package/src/components/ui/radio-group.tsx +36 -0
  49. package/src/components/ui/resizable.tsx +37 -0
  50. package/src/components/ui/scroll-area.tsx +44 -0
  51. package/src/components/ui/select.tsx +152 -0
  52. package/src/components/ui/separator.tsx +24 -0
  53. package/src/components/ui/sheet.tsx +122 -0
  54. package/src/components/ui/sidebar.tsx +744 -0
  55. package/src/components/ui/skeleton.tsx +7 -0
  56. package/src/components/ui/slider.tsx +23 -0
  57. package/src/components/ui/sonner.tsx +23 -0
  58. package/src/components/ui/switch.tsx +27 -0
  59. package/src/components/ui/table.tsx +94 -0
  60. package/src/components/ui/tabs.tsx +53 -0
  61. package/src/components/ui/textarea.tsx +21 -0
  62. package/src/components/ui/toggle-group.tsx +57 -0
  63. package/src/components/ui/toggle.tsx +42 -0
  64. package/src/components/ui/tooltip.tsx +32 -0
  65. package/src/hooks/use-mobile.tsx +19 -0
  66. package/src/lib/error-capture.ts +81 -0
  67. package/src/lib/error-page.ts +30 -0
  68. package/src/lib/lovable-error-reporting.ts +59 -0
  69. package/src/lib/utils.ts +6 -0
  70. package/src/routeTree.gen.ts +69 -0
  71. package/src/router.tsx +16 -0
  72. package/src/routes/README.md +21 -0
  73. package/src/routes/__root.tsx +123 -0
  74. package/src/routes/index.tsx +314 -0
  75. package/src/server.ts +61 -0
  76. package/src/start.ts +29 -0
  77. package/src/styles.css +259 -0
  78. package/tsconfig.json +30 -0
  79. package/vite.config.ts +15 -0
package/bunfig.toml ADDED
@@ -0,0 +1,7 @@
1
+ [install]
2
+ saveTextLockfile = true
3
+ # 24h supply-chain guard: skip package versions published less than a day ago.
4
+ minimumReleaseAge = 86400
5
+ # Each entry bypasses the 24h guard for one package — confirm with the user
6
+ # before adding any.
7
+ minimumReleaseAgeExcludes = ["@lovable.dev/vite-tanstack-config", "@lovable.dev/mcp-js", "@lovable.dev/email-js", "@lovable.dev/webhooks-js"]
@@ -0,0 +1,22 @@
1
+ {
2
+ "$schema": "https://ui.shadcn.com/schema.json",
3
+ "style": "new-york",
4
+ "rsc": false,
5
+ "tsx": true,
6
+ "tailwind": {
7
+ "css": "src/styles.css",
8
+ "baseColor": "slate",
9
+ "cssVariables": true,
10
+ "prefix": ""
11
+ },
12
+ "iconLibrary": "lucide",
13
+ "rtl": false,
14
+ "aliases": {
15
+ "components": "@/components",
16
+ "utils": "@/lib/utils",
17
+ "ui": "@/components/ui",
18
+ "lib": "@/lib",
19
+ "hooks": "@/hooks"
20
+ },
21
+ "registries": {}
22
+ }
@@ -0,0 +1,40 @@
1
+ import js from "@eslint/js";
2
+ import eslintPluginPrettier from "eslint-plugin-prettier/recommended";
3
+ import globals from "globals";
4
+ import reactHooks from "eslint-plugin-react-hooks";
5
+ import reactRefresh from "eslint-plugin-react-refresh";
6
+ import tseslint from "typescript-eslint";
7
+
8
+ export default tseslint.config(
9
+ { ignores: ["dist", ".output", ".vinxi"] },
10
+ {
11
+ extends: [js.configs.recommended, ...tseslint.configs.recommended],
12
+ files: ["**/*.{ts,tsx}"],
13
+ languageOptions: {
14
+ ecmaVersion: 2020,
15
+ globals: globals.browser,
16
+ },
17
+ plugins: {
18
+ "react-hooks": reactHooks,
19
+ "react-refresh": reactRefresh,
20
+ },
21
+ rules: {
22
+ ...reactHooks.configs.recommended.rules,
23
+ "no-restricted-imports": [
24
+ "error",
25
+ {
26
+ paths: [
27
+ {
28
+ name: "server-only",
29
+ message:
30
+ "TanStack Start does not use the Next.js `server-only` package. Rename the module to `*.server.ts` or mark it with `@tanstack/react-start/server-only`.",
31
+ },
32
+ ],
33
+ },
34
+ ],
35
+ "react-refresh/only-export-components": ["warn", { allowConstantExport: true }],
36
+ "@typescript-eslint/no-unused-vars": "off",
37
+ },
38
+ },
39
+ eslintPluginPrettier,
40
+ );
package/package.json ADDED
@@ -0,0 +1,91 @@
1
+ {
2
+ "name": "nipponboardspt",
3
+ "version": "2.0.0",
4
+ "private": false,
5
+ "sideEffects": false,
6
+ "type": "module",
7
+ "scripts": {
8
+ "dev": "vite dev",
9
+ "build": "vite build",
10
+ "build:dev": "vite build --mode development",
11
+ "preview": "vite preview",
12
+ "lint": "eslint .",
13
+ "format": "prettier --write ."
14
+ },
15
+ "overrides": {
16
+ "rolldown": "1.2.1"
17
+ },
18
+ "dependencies": {
19
+ "@hookform/resolvers": "^5.2.2",
20
+ "@radix-ui/react-accordion": "^1.2.12",
21
+ "@radix-ui/react-alert-dialog": "^1.1.15",
22
+ "@radix-ui/react-aspect-ratio": "^1.1.8",
23
+ "@radix-ui/react-avatar": "^1.1.11",
24
+ "@radix-ui/react-checkbox": "^1.3.3",
25
+ "@radix-ui/react-collapsible": "^1.1.12",
26
+ "@radix-ui/react-context-menu": "^2.2.16",
27
+ "@radix-ui/react-dialog": "^1.1.15",
28
+ "@radix-ui/react-dropdown-menu": "^2.1.16",
29
+ "@radix-ui/react-hover-card": "^1.1.15",
30
+ "@radix-ui/react-label": "^2.1.8",
31
+ "@radix-ui/react-menubar": "^1.1.16",
32
+ "@radix-ui/react-navigation-menu": "^1.2.14",
33
+ "@radix-ui/react-popover": "^1.1.15",
34
+ "@radix-ui/react-progress": "^1.1.8",
35
+ "@radix-ui/react-radio-group": "^1.3.8",
36
+ "@radix-ui/react-scroll-area": "^1.2.10",
37
+ "@radix-ui/react-select": "^2.2.6",
38
+ "@radix-ui/react-separator": "^1.1.8",
39
+ "@radix-ui/react-slider": "^1.3.6",
40
+ "@radix-ui/react-slot": "^1.2.4",
41
+ "@radix-ui/react-switch": "^1.2.6",
42
+ "@radix-ui/react-tabs": "^1.1.13",
43
+ "@radix-ui/react-toggle": "^1.1.10",
44
+ "@radix-ui/react-toggle-group": "^1.1.11",
45
+ "@radix-ui/react-tooltip": "^1.2.8",
46
+ "@tailwindcss/vite": "^4.2.1",
47
+ "@tanstack/react-query": "^5.101.1",
48
+ "@tanstack/react-router": "1.170.18",
49
+ "@tanstack/react-start": "1.168.32",
50
+ "@tanstack/router-plugin": "1.168.23",
51
+ "class-variance-authority": "^0.7.1",
52
+ "clsx": "^2.1.1",
53
+ "cmdk": "^1.1.1",
54
+ "date-fns": "^4.1.0",
55
+ "embla-carousel-react": "^8.6.0",
56
+ "input-otp": "^1.4.2",
57
+ "lucide-react": "^0.575.0",
58
+ "react": "^19.2.0",
59
+ "react-day-picker": "^9.14.0",
60
+ "react-dom": "^19.2.0",
61
+ "react-hook-form": "^7.71.2",
62
+ "react-resizable-panels": "^4.6.5",
63
+ "recharts": "^2.15.4",
64
+ "sonner": "^2.0.7",
65
+ "tailwind-merge": "^3.5.0",
66
+ "tailwindcss": "^4.2.1",
67
+ "tw-animate-css": "^1.3.4",
68
+ "vaul": "^1.1.2",
69
+ "vite-tsconfig-paths": "^6.0.2",
70
+ "zod": "^3.25.76"
71
+ },
72
+ "devDependencies": {
73
+ "@eslint/js": "^9.32.0",
74
+ "@lovable.dev/vite-tanstack-config": "^2.23.1",
75
+ "@types/node": "^22.16.5",
76
+ "@types/react": "^19.2.0",
77
+ "@types/react-dom": "^19.2.0",
78
+ "@vitejs/plugin-react": "^5.2.0",
79
+ "eslint": "^9.32.0",
80
+ "eslint-config-prettier": "^10.1.1",
81
+ "eslint-plugin-prettier": "^5.2.6",
82
+ "eslint-plugin-react-hooks": "^5.2.0",
83
+ "eslint-plugin-react-refresh": "^0.4.20",
84
+ "globals": "^15.15.0",
85
+ "nitro": "3.0.260603-beta",
86
+ "prettier": "^3.7.3",
87
+ "typescript": "^5.8.3",
88
+ "typescript-eslint": "^8.56.1",
89
+ "vite": "8.1.5"
90
+ }
91
+ }
@@ -0,0 +1,7 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">
2
+ <rect width="64" height="64" rx="8" fill="#202020"/>
3
+ <circle cx="21" cy="32" r="11" fill="#d6262b"/>
4
+ <circle cx="43" cy="32" r="11" fill="#d6262b"/>
5
+ <circle cx="21" cy="32" r="4" fill="#202020"/>
6
+ <circle cx="43" cy="32" r="4" fill="#202020"/>
7
+ </svg>
@@ -0,0 +1,14 @@
1
+ User-agent: Googlebot
2
+ Allow: /
3
+
4
+ User-agent: Bingbot
5
+ Allow: /
6
+
7
+ User-agent: Twitterbot
8
+ Allow: /
9
+
10
+ User-agent: facebookexternalhit
11
+ Allow: /
12
+
13
+ User-agent: *
14
+ Allow: /
package/roadmap.md ADDED
@@ -0,0 +1,6 @@
1
+ # Roadmap
2
+
3
+ - [x] Definir direção visual e estrutura
4
+ - [x] Gerar imagens técnicas de bancada
5
+ - [x] Construir página completa
6
+ - [x] Validar em computador e telemóvel
Binary file
Binary file
@@ -0,0 +1,37 @@
1
+ import { Slot } from "@radix-ui/react-slot";
2
+ import type { ButtonHTMLAttributes, ReactNode } from "react";
3
+
4
+ type ButtonVariant = "primary" | "outline" | "dark";
5
+
6
+ type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
7
+ asChild?: boolean;
8
+ children: ReactNode;
9
+ variant?: ButtonVariant;
10
+ };
11
+
12
+ const variants: Record<ButtonVariant, string> = {
13
+ primary:
14
+ "bg-primary text-primary-foreground hover:bg-primary-bright border border-primary shadow-action",
15
+ outline:
16
+ "border border-hero-foreground/40 bg-hero-foreground/5 text-hero-foreground hover:border-hero-foreground hover:bg-hero-foreground/10",
17
+ dark: "border border-foreground bg-foreground text-background hover:bg-foreground/90",
18
+ };
19
+
20
+ export function Button({
21
+ asChild = false,
22
+ children,
23
+ className = "",
24
+ variant = "primary",
25
+ ...props
26
+ }: ButtonProps) {
27
+ const Comp = asChild ? Slot : "button";
28
+
29
+ return (
30
+ <Comp
31
+ className={`inline-flex min-h-12 items-center justify-center gap-2 rounded-sm px-5 py-3 text-sm font-semibold uppercase 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 ${variants[variant]} ${className}`}
32
+ {...props}
33
+ >
34
+ {children}
35
+ </Comp>
36
+ );
37
+ }
@@ -0,0 +1,51 @@
1
+ import * as React from "react";
2
+ import * as AccordionPrimitive from "@radix-ui/react-accordion";
3
+ import { ChevronDown } from "lucide-react";
4
+
5
+ import { cn } from "@/lib/utils";
6
+
7
+ const Accordion = AccordionPrimitive.Root;
8
+
9
+ const AccordionItem = React.forwardRef<
10
+ React.ElementRef<typeof AccordionPrimitive.Item>,
11
+ React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Item>
12
+ >(({ className, ...props }, ref) => (
13
+ <AccordionPrimitive.Item ref={ref} className={cn("border-b", className)} {...props} />
14
+ ));
15
+ AccordionItem.displayName = "AccordionItem";
16
+
17
+ const AccordionTrigger = React.forwardRef<
18
+ React.ElementRef<typeof AccordionPrimitive.Trigger>,
19
+ React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Trigger>
20
+ >(({ className, children, ...props }, ref) => (
21
+ <AccordionPrimitive.Header className="flex">
22
+ <AccordionPrimitive.Trigger
23
+ ref={ref}
24
+ className={cn(
25
+ "flex flex-1 items-center justify-between py-4 text-sm font-medium cursor-pointer transition-all hover:underline text-left [&[data-state=open]>svg]:rotate-180",
26
+ className,
27
+ )}
28
+ {...props}
29
+ >
30
+ {children}
31
+ <ChevronDown className="h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200" />
32
+ </AccordionPrimitive.Trigger>
33
+ </AccordionPrimitive.Header>
34
+ ));
35
+ AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
36
+
37
+ const AccordionContent = React.forwardRef<
38
+ React.ElementRef<typeof AccordionPrimitive.Content>,
39
+ React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Content>
40
+ >(({ className, children, ...props }, ref) => (
41
+ <AccordionPrimitive.Content
42
+ ref={ref}
43
+ className="overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down"
44
+ {...props}
45
+ >
46
+ <div className={cn("pb-4 pt-0", className)}>{children}</div>
47
+ </AccordionPrimitive.Content>
48
+ ));
49
+ AccordionContent.displayName = AccordionPrimitive.Content.displayName;
50
+
51
+ export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
@@ -0,0 +1,115 @@
1
+ import * as React from "react";
2
+ import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
3
+
4
+ import { cn } from "@/lib/utils";
5
+ import { buttonVariants } from "@/components/ui/button";
6
+
7
+ const AlertDialog = AlertDialogPrimitive.Root;
8
+
9
+ const AlertDialogTrigger = AlertDialogPrimitive.Trigger;
10
+
11
+ const AlertDialogPortal = AlertDialogPrimitive.Portal;
12
+
13
+ const AlertDialogOverlay = React.forwardRef<
14
+ React.ElementRef<typeof AlertDialogPrimitive.Overlay>,
15
+ React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Overlay>
16
+ >(({ className, ...props }, ref) => (
17
+ <AlertDialogPrimitive.Overlay
18
+ className={cn(
19
+ "fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
20
+ className,
21
+ )}
22
+ {...props}
23
+ ref={ref}
24
+ />
25
+ ));
26
+ AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
27
+
28
+ const AlertDialogContent = React.forwardRef<
29
+ React.ElementRef<typeof AlertDialogPrimitive.Content>,
30
+ React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Content>
31
+ >(({ className, ...props }, ref) => (
32
+ <AlertDialogPortal>
33
+ <AlertDialogOverlay />
34
+ <AlertDialogPrimitive.Content
35
+ ref={ref}
36
+ className={cn(
37
+ "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 sm:rounded-lg",
38
+ className,
39
+ )}
40
+ {...props}
41
+ />
42
+ </AlertDialogPortal>
43
+ ));
44
+ AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;
45
+
46
+ const AlertDialogHeader = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (
47
+ <div className={cn("flex flex-col space-y-2 text-center sm:text-left", className)} {...props} />
48
+ );
49
+ AlertDialogHeader.displayName = "AlertDialogHeader";
50
+
51
+ const AlertDialogFooter = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (
52
+ <div
53
+ className={cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className)}
54
+ {...props}
55
+ />
56
+ );
57
+ AlertDialogFooter.displayName = "AlertDialogFooter";
58
+
59
+ const AlertDialogTitle = React.forwardRef<
60
+ React.ElementRef<typeof AlertDialogPrimitive.Title>,
61
+ React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Title>
62
+ >(({ className, ...props }, ref) => (
63
+ <AlertDialogPrimitive.Title
64
+ ref={ref}
65
+ className={cn("text-lg font-semibold", className)}
66
+ {...props}
67
+ />
68
+ ));
69
+ AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
70
+
71
+ const AlertDialogDescription = React.forwardRef<
72
+ React.ElementRef<typeof AlertDialogPrimitive.Description>,
73
+ React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Description>
74
+ >(({ className, ...props }, ref) => (
75
+ <AlertDialogPrimitive.Description
76
+ ref={ref}
77
+ className={cn("text-sm text-muted-foreground", className)}
78
+ {...props}
79
+ />
80
+ ));
81
+ AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
82
+
83
+ const AlertDialogAction = React.forwardRef<
84
+ React.ElementRef<typeof AlertDialogPrimitive.Action>,
85
+ React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Action>
86
+ >(({ className, ...props }, ref) => (
87
+ <AlertDialogPrimitive.Action ref={ref} className={cn(buttonVariants(), className)} {...props} />
88
+ ));
89
+ AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
90
+
91
+ const AlertDialogCancel = React.forwardRef<
92
+ React.ElementRef<typeof AlertDialogPrimitive.Cancel>,
93
+ React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Cancel>
94
+ >(({ className, ...props }, ref) => (
95
+ <AlertDialogPrimitive.Cancel
96
+ ref={ref}
97
+ className={cn(buttonVariants({ variant: "outline" }), "mt-2 sm:mt-0", className)}
98
+ {...props}
99
+ />
100
+ ));
101
+ AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
102
+
103
+ export {
104
+ AlertDialog,
105
+ AlertDialogPortal,
106
+ AlertDialogOverlay,
107
+ AlertDialogTrigger,
108
+ AlertDialogContent,
109
+ AlertDialogHeader,
110
+ AlertDialogFooter,
111
+ AlertDialogTitle,
112
+ AlertDialogDescription,
113
+ AlertDialogAction,
114
+ AlertDialogCancel,
115
+ };
@@ -0,0 +1,49 @@
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 px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",
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 ref={ref} role="alert" className={cn(alertVariants({ variant }), className)} {...props} />
27
+ ));
28
+ Alert.displayName = "Alert";
29
+
30
+ const AlertTitle = React.forwardRef<HTMLParagraphElement, React.HTMLAttributes<HTMLHeadingElement>>(
31
+ ({ className, ...props }, ref) => (
32
+ <h5
33
+ ref={ref}
34
+ className={cn("mb-1 font-medium leading-none tracking-tight", className)}
35
+ {...props}
36
+ />
37
+ ),
38
+ );
39
+ AlertTitle.displayName = "AlertTitle";
40
+
41
+ const AlertDescription = React.forwardRef<
42
+ HTMLParagraphElement,
43
+ React.HTMLAttributes<HTMLParagraphElement>
44
+ >(({ className, ...props }, ref) => (
45
+ <div ref={ref} className={cn("text-sm [&_p]:leading-relaxed", className)} {...props} />
46
+ ));
47
+ AlertDescription.displayName = "AlertDescription";
48
+
49
+ export { Alert, AlertTitle, AlertDescription };
@@ -0,0 +1,5 @@
1
+ import * as AspectRatioPrimitive from "@radix-ui/react-aspect-ratio";
2
+
3
+ const AspectRatio = AspectRatioPrimitive.Root;
4
+
5
+ export { AspectRatio };
@@ -0,0 +1,47 @@
1
+ "use client";
2
+
3
+ import * as React from "react";
4
+ import * as AvatarPrimitive from "@radix-ui/react-avatar";
5
+
6
+ import { cn } from "@/lib/utils";
7
+
8
+ const Avatar = React.forwardRef<
9
+ React.ElementRef<typeof AvatarPrimitive.Root>,
10
+ React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>
11
+ >(({ className, ...props }, ref) => (
12
+ <AvatarPrimitive.Root
13
+ ref={ref}
14
+ className={cn("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full", className)}
15
+ {...props}
16
+ />
17
+ ));
18
+ Avatar.displayName = AvatarPrimitive.Root.displayName;
19
+
20
+ const AvatarImage = React.forwardRef<
21
+ React.ElementRef<typeof AvatarPrimitive.Image>,
22
+ React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Image>
23
+ >(({ className, ...props }, ref) => (
24
+ <AvatarPrimitive.Image
25
+ ref={ref}
26
+ className={cn("aspect-square h-full w-full", className)}
27
+ {...props}
28
+ />
29
+ ));
30
+ AvatarImage.displayName = AvatarPrimitive.Image.displayName;
31
+
32
+ const AvatarFallback = React.forwardRef<
33
+ React.ElementRef<typeof AvatarPrimitive.Fallback>,
34
+ React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Fallback>
35
+ >(({ className, ...props }, ref) => (
36
+ <AvatarPrimitive.Fallback
37
+ ref={ref}
38
+ className={cn(
39
+ "flex h-full w-full items-center justify-center rounded-full bg-muted",
40
+ className,
41
+ )}
42
+ {...props}
43
+ />
44
+ ));
45
+ AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
46
+
47
+ export { Avatar, AvatarImage, AvatarFallback };
@@ -0,0 +1,32 @@
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 badgeVariants = cva(
7
+ "inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
8
+ {
9
+ variants: {
10
+ variant: {
11
+ default: "border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",
12
+ secondary:
13
+ "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
14
+ destructive:
15
+ "border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",
16
+ outline: "text-foreground",
17
+ },
18
+ },
19
+ defaultVariants: {
20
+ variant: "default",
21
+ },
22
+ },
23
+ );
24
+
25
+ export interface BadgeProps
26
+ extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {}
27
+
28
+ function Badge({ className, variant, ...props }: BadgeProps) {
29
+ return <div className={cn(badgeVariants({ variant }), className)} {...props} />;
30
+ }
31
+
32
+ export { Badge, badgeVariants };
@@ -0,0 +1,101 @@
1
+ import * as React from "react";
2
+ import { Slot } from "@radix-ui/react-slot";
3
+ import { ChevronRight, MoreHorizontal } from "lucide-react";
4
+
5
+ import { cn } from "@/lib/utils";
6
+
7
+ const Breadcrumb = React.forwardRef<
8
+ HTMLElement,
9
+ React.ComponentPropsWithoutRef<"nav"> & {
10
+ separator?: React.ReactNode;
11
+ }
12
+ >(({ ...props }, ref) => <nav ref={ref} aria-label="breadcrumb" {...props} />);
13
+ Breadcrumb.displayName = "Breadcrumb";
14
+
15
+ const BreadcrumbList = React.forwardRef<HTMLOListElement, React.ComponentPropsWithoutRef<"ol">>(
16
+ ({ className, ...props }, ref) => (
17
+ <ol
18
+ ref={ref}
19
+ className={cn(
20
+ "flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",
21
+ className,
22
+ )}
23
+ {...props}
24
+ />
25
+ ),
26
+ );
27
+ BreadcrumbList.displayName = "BreadcrumbList";
28
+
29
+ const BreadcrumbItem = React.forwardRef<HTMLLIElement, React.ComponentPropsWithoutRef<"li">>(
30
+ ({ className, ...props }, ref) => (
31
+ <li ref={ref} className={cn("inline-flex items-center gap-1.5", className)} {...props} />
32
+ ),
33
+ );
34
+ BreadcrumbItem.displayName = "BreadcrumbItem";
35
+
36
+ const BreadcrumbLink = React.forwardRef<
37
+ HTMLAnchorElement,
38
+ React.ComponentPropsWithoutRef<"a"> & {
39
+ asChild?: boolean;
40
+ }
41
+ >(({ asChild, className, ...props }, ref) => {
42
+ const Comp = asChild ? Slot : "a";
43
+
44
+ return (
45
+ <Comp
46
+ ref={ref}
47
+ className={cn("transition-colors hover:text-foreground", className)}
48
+ {...props}
49
+ />
50
+ );
51
+ });
52
+ BreadcrumbLink.displayName = "BreadcrumbLink";
53
+
54
+ const BreadcrumbPage = React.forwardRef<HTMLSpanElement, React.ComponentPropsWithoutRef<"span">>(
55
+ ({ className, ...props }, ref) => (
56
+ <span
57
+ ref={ref}
58
+ role="link"
59
+ aria-disabled="true"
60
+ aria-current="page"
61
+ className={cn("font-normal text-foreground", className)}
62
+ {...props}
63
+ />
64
+ ),
65
+ );
66
+ BreadcrumbPage.displayName = "BreadcrumbPage";
67
+
68
+ const BreadcrumbSeparator = ({ children, className, ...props }: React.ComponentProps<"li">) => (
69
+ <li
70
+ role="presentation"
71
+ aria-hidden="true"
72
+ className={cn("[&>svg]:w-3.5 [&>svg]:h-3.5", className)}
73
+ {...props}
74
+ >
75
+ {children ?? <ChevronRight />}
76
+ </li>
77
+ );
78
+ BreadcrumbSeparator.displayName = "BreadcrumbSeparator";
79
+
80
+ const BreadcrumbEllipsis = ({ className, ...props }: React.ComponentProps<"span">) => (
81
+ <span
82
+ role="presentation"
83
+ aria-hidden="true"
84
+ className={cn("flex h-9 w-9 items-center justify-center", className)}
85
+ {...props}
86
+ >
87
+ <MoreHorizontal className="h-4 w-4" />
88
+ <span className="sr-only">More</span>
89
+ </span>
90
+ );
91
+ BreadcrumbEllipsis.displayName = "BreadcrumbElipssis";
92
+
93
+ export {
94
+ Breadcrumb,
95
+ BreadcrumbList,
96
+ BreadcrumbItem,
97
+ BreadcrumbLink,
98
+ BreadcrumbPage,
99
+ BreadcrumbSeparator,
100
+ BreadcrumbEllipsis,
101
+ };