Skip to content

Commit 63d7db9

Browse files
committed
chore: ajustes de ui e build
1 parent f4e975b commit 63d7db9

16 files changed

Lines changed: 167 additions & 938 deletions

frontend/bun.lock

Lines changed: 113 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/next.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
import path from "path";
12
import type { NextConfig } from "next";
23

34
const nextConfig: NextConfig = {
45
reactStrictMode: true,
6+
// App vive em frontend/; há outro package-lock na raiz do repo — definir raiz do tracing evita o warning.
7+
outputFileTracingRoot: path.join(__dirname),
58
};
69

710
export default nextConfig;

frontend/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"clsx": "^2.1.1",
2020
"lucide-react": "^0.554.0",
2121
"next": "^15.1.0",
22+
"radix-ui": "^1.4.3",
2223
"react": "^19.0.0",
2324
"react-dom": "^19.0.0",
2425
"recharts": "^2.14.1",

frontend/src/components/ui/animated-shiny-text.tsx

Lines changed: 0 additions & 39 deletions
This file was deleted.

frontend/src/components/ui/blur-fade.tsx

Lines changed: 0 additions & 73 deletions
This file was deleted.
Lines changed: 31 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,64 @@
1-
import { cn } from '@/lib/utils';
1+
import * as React from "react"
2+
import { cva, type VariantProps } from "class-variance-authority"
3+
import { Slot } from "radix-ui"
24

3-
import * as React from 'react';
4-
5-
import { Slot } from '@radix-ui/react-slot';
6-
import { type VariantProps, cva } from 'class-variance-authority';
5+
import { cn } from "@/lib/utils"
76

87
const buttonVariants = cva(
9-
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-accent focus-visible:ring-accent/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
8+
"inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
109
{
1110
variants: {
1211
variant: {
13-
default:
14-
'bg-primary text-primary-foreground shadow-xs hover:bg-primary/90',
12+
default: "bg-primary text-primary-foreground hover:bg-primary/90",
1513
destructive:
16-
'bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60',
14+
"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",
1715
outline:
18-
'border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50',
16+
"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",
1917
secondary:
20-
'bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80',
18+
"bg-secondary text-secondary-foreground hover:bg-secondary/80",
2119
ghost:
22-
'hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50',
23-
link: 'text-primary underline-offset-4 hover:underline',
20+
"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
21+
link: "text-primary underline-offset-4 hover:underline",
2422
},
2523
size: {
26-
default: 'h-9 px-4 py-2 has-[>svg]:px-3',
27-
sm: 'h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5',
28-
lg: 'h-10 rounded-md px-6 has-[>svg]:px-4',
29-
icon: 'size-9',
24+
default: "h-9 px-4 py-2 has-[>svg]:px-3",
25+
xs: "h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",
26+
sm: "h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",
27+
lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
28+
icon: "size-9",
29+
"icon-xs": "size-6 rounded-md [&_svg:not([class*='size-'])]:size-3",
30+
"icon-sm": "size-8",
31+
"icon-lg": "size-10",
3032
},
3133
},
3234
defaultVariants: {
33-
variant: 'default',
34-
size: 'default',
35+
variant: "default",
36+
size: "default",
3537
},
3638
}
37-
);
39+
)
3840

3941
function Button({
4042
className,
41-
variant,
42-
size,
43+
variant = "default",
44+
size = "default",
4345
asChild = false,
4446
...props
45-
}: React.ComponentProps<'button'> &
47+
}: React.ComponentProps<"button"> &
4648
VariantProps<typeof buttonVariants> & {
47-
asChild?: boolean;
49+
asChild?: boolean
4850
}) {
49-
const Comp = asChild ? Slot : 'button';
51+
const Comp = asChild ? Slot.Root : "button"
5052

5153
return (
5254
<Comp
5355
data-slot="button"
56+
data-variant={variant}
57+
data-size={size}
5458
className={cn(buttonVariants({ variant, size, className }))}
5559
{...props}
5660
/>
57-
);
61+
)
5862
}
5963

60-
export { Button, buttonVariants };
64+
export { Button, buttonVariants }

frontend/src/components/ui/card.tsx

Lines changed: 0 additions & 92 deletions
This file was deleted.

frontend/src/components/ui/collapsible.tsx

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)