diff --git a/webui2/components.json b/webui2/components.json index 15addee81fadab3e2f43e23425168d57f800bd8f..8438b31cbd5d2f116c632b2f065b008af790bf21 100644 --- a/webui2/components.json +++ b/webui2/components.json @@ -1,12 +1,12 @@ { "$schema": "https://ui.shadcn.com/schema.json", - "style": "base-nova", + "style": "base-vega", "rsc": false, "tsx": true, "tailwind": { "config": "", "css": "src/index.css", - "baseColor": "neutral", + "baseColor": "zinc", "cssVariables": true, "prefix": "" }, @@ -19,7 +19,7 @@ "lib": "@/lib", "hooks": "@/hooks" }, - "menuColor": "default", + "menuColor": "inverted-translucent", "menuAccent": "subtle", "registries": {} } diff --git a/webui2/src/components/code/__snapshots__/file-viewer.test.tsx.snap b/webui2/src/components/code/__snapshots__/file-viewer.test.tsx.snap index f4cd9caaf208f835d7320456619717dda3bee368..a1121b1d970563cc920fb2502a98ccc7a5129a7e 100644 --- a/webui2/src/components/code/__snapshots__/file-viewer.test.tsx.snap +++ b/webui2/src/components/code/__snapshots__/file-viewer.test.tsx.snap @@ -14,7 +14,7 @@ exports[`FileViewer/BinaryFile matches snapshot 1`] = ` 24.0 KB - - - interface User { - id: string; - name: string; - email: string; -} + + + + + interface + + + User + + + { + + + + + + + id + + + : + + + string + + + ; + + + -function greet(user: User): string { - return \`Hello, \${user.name}!\`; -} + + + name + + + : + + + string + + + ; + + + + + + + email + + + : + + + string + + + ; + + + + + + } + + + + + + + + + + function + + + greet + + + ( + + + user + + + : + + + User + + + ) + + + : + + + string + + + { + + + + + + + return + + + \`Hello, \${ + + + user + + + . + + + name + + + }!\` + + + ; + + + + + + + } + + diff --git a/webui2/src/components/shared/__snapshots__/pagination.test.tsx.snap b/webui2/src/components/shared/__snapshots__/pagination.test.tsx.snap index 4c522d1346b3d49609a6e568b17f7350eae450fb..ed28eecc396e6e7bd0346597e6cd4a17fc87f649 100644 --- a/webui2/src/components/shared/__snapshots__/pagination.test.tsx.snap +++ b/webui2/src/components/shared/__snapshots__/pagination.test.tsx.snap @@ -16,7 +16,7 @@ exports[`Pagination/Default matches snapshot 1`] = ` @@ -82,7 +82,7 @@ exports[`Pagination/LastPage matches snapshot 1`] = ` > @@ -113,7 +113,7 @@ exports[`Pagination/LastPage matches snapshot 1`] = ` @@ -178,7 +178,7 @@ exports[`Pagination/MiddlePage matches snapshot 1`] = ` diff --git a/webui2/src/components/shared/__snapshots__/write-preview.test.tsx.snap b/webui2/src/components/shared/__snapshots__/write-preview.test.tsx.snap index b552236a18f6020ce2358fa87125d0180efed6f7..66ebee22f5a7b30c09d702b9a6f77ad1f1d5ded9 100644 --- a/webui2/src/components/shared/__snapshots__/write-preview.test.tsx.snap +++ b/webui2/src/components/shared/__snapshots__/write-preview.test.tsx.snap @@ -21,7 +21,7 @@ exports[`WritePreview/Controlled matches snapshot 1`] = ` @@ -50,7 +50,7 @@ exports[`WritePreview/Empty matches snapshot 1`] = ` @@ -78,7 +78,7 @@ exports[`WritePreview/TabSwitching matches snapshot 1`] = ` @@ -108,7 +108,7 @@ exports[`WritePreview/Uncontrolled matches snapshot 1`] = ` diff --git a/webui2/src/components/ui/__snapshots__/button.test.tsx.snap b/webui2/src/components/ui/__snapshots__/button.test.tsx.snap index 83da365ff2bd293b781820bacd7a5b3df7417193..c0de0166dc0d2d7a35b9dbb02e9f255167e57bae 100644 --- a/webui2/src/components/ui/__snapshots__/button.test.tsx.snap +++ b/webui2/src/components/ui/__snapshots__/button.test.tsx.snap @@ -3,7 +3,7 @@ exports[`Button/Default matches snapshot 1`] = ` @@ -13,7 +13,7 @@ exports[`Textarea/Default matches snapshot 1`] = ` exports[`Textarea/Disabled matches snapshot 1`] = ` This is some content in the textarea. diff --git a/webui2/src/components/ui/button.tsx b/webui2/src/components/ui/button.tsx index f061d1fdc8a90d3ee961ff0e8f46c85872734fbf..1822b7b50cb5004bcf127da19cd7738781e7188a 100644 --- a/webui2/src/components/ui/button.tsx +++ b/webui2/src/components/ui/button.tsx @@ -6,13 +6,13 @@ import { cva, type VariantProps } from "class-variance-authority" import { cn } from "@/lib/utils" const buttonVariants = cva( - "group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", + "group/button inline-flex shrink-0 items-center justify-center rounded-md border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", { variants: { variant: { - default: "bg-primary text-primary-foreground [a]:hover:bg-primary/80", + default: "bg-primary text-primary-foreground hover:bg-primary/80", outline: - "border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50", + "border-border bg-background shadow-xs hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50", secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground", ghost: @@ -23,16 +23,16 @@ const buttonVariants = cva( }, size: { default: - "h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2", - xs: "h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3", - sm: "h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5", - lg: "h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2", - icon: "size-8", + "h-9 gap-1.5 px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2", + xs: "h-6 gap-1 rounded-[min(var(--radius-md),8px)] px-2 text-xs in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3", + sm: "h-8 gap-1 rounded-[min(var(--radius-md),10px)] px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5", + lg: "h-10 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2", + icon: "size-9", "icon-xs": - "size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3", + "size-6 rounded-[min(var(--radius-md),8px)] in-data-[slot=button-group]:rounded-md [&_svg:not([class*='size-'])]:size-3", "icon-sm": - "size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg", - "icon-lg": "size-9", + "size-8 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-md", + "icon-lg": "size-10", }, }, defaultVariants: { diff --git a/webui2/src/components/ui/input.tsx b/webui2/src/components/ui/input.tsx index 7d21babba91655ac1cd6a5ea630eb2ec18d2b52b..82ccce4c9cbc82fe7469cf3a0f65b944f1989843 100644 --- a/webui2/src/components/ui/input.tsx +++ b/webui2/src/components/ui/input.tsx @@ -9,7 +9,7 @@ function Input({ className, type, ...props }: React.ComponentProps<"input">) { type={type} data-slot="input" className={cn( - "h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40", + "h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-2.5 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40", className )} {...props} diff --git a/webui2/src/components/ui/popover.tsx b/webui2/src/components/ui/popover.tsx index 3d4356254ebaa40f20502e9fbe5af337bf2fba8a..4e204ce14674b6d2278913815b02d19e441dfdec 100644 --- a/webui2/src/components/ui/popover.tsx +++ b/webui2/src/components/ui/popover.tsx @@ -35,7 +35,7 @@ function PopoverContent({ ) { return ( ) diff --git a/webui2/src/components/ui/textarea.tsx b/webui2/src/components/ui/textarea.tsx index 04d27f7d17584cd77ba7d6f2377f5be6779f1270..95ed1c44cfb295cdebfaef34f8bb3ffc368af53b 100644 --- a/webui2/src/components/ui/textarea.tsx +++ b/webui2/src/components/ui/textarea.tsx @@ -7,7 +7,7 @@ function Textarea({ className, ...props }: React.ComponentProps<"textarea">) {
- - interface User { - id: string; - name: string; - email: string; -} + + + + + interface + + + User + + + { + + + + + + + id + + + : + + + string + + + ; + + + -function greet(user: User): string { - return \`Hello, \${user.name}!\`; -} + + + name + + + : + + + string + + + ; + + + + + + + email + + + : + + + string + + + ; + + + + + + } + + + + + + + + + + function + + + greet + + + ( + + + user + + + : + + + User + + + ) + + + : + + + string + + + { + + + + + + + return + + + \`Hello, \${ + + + user + + + . + + + name + + + }!\` + + + ; + + + + + + + } + + diff --git a/webui2/src/components/shared/__snapshots__/pagination.test.tsx.snap b/webui2/src/components/shared/__snapshots__/pagination.test.tsx.snap index 4c522d1346b3d49609a6e568b17f7350eae450fb..ed28eecc396e6e7bd0346597e6cd4a17fc87f649 100644 --- a/webui2/src/components/shared/__snapshots__/pagination.test.tsx.snap +++ b/webui2/src/components/shared/__snapshots__/pagination.test.tsx.snap @@ -16,7 +16,7 @@ exports[`Pagination/Default matches snapshot 1`] = ` @@ -82,7 +82,7 @@ exports[`Pagination/LastPage matches snapshot 1`] = ` > @@ -113,7 +113,7 @@ exports[`Pagination/LastPage matches snapshot 1`] = ` @@ -178,7 +178,7 @@ exports[`Pagination/MiddlePage matches snapshot 1`] = ` diff --git a/webui2/src/components/shared/__snapshots__/write-preview.test.tsx.snap b/webui2/src/components/shared/__snapshots__/write-preview.test.tsx.snap index b552236a18f6020ce2358fa87125d0180efed6f7..66ebee22f5a7b30c09d702b9a6f77ad1f1d5ded9 100644 --- a/webui2/src/components/shared/__snapshots__/write-preview.test.tsx.snap +++ b/webui2/src/components/shared/__snapshots__/write-preview.test.tsx.snap @@ -21,7 +21,7 @@ exports[`WritePreview/Controlled matches snapshot 1`] = `
- interface User { - id: string; - name: string; - email: string; -} + + + + + interface + + + User + + + { + + + + + + + id + + + : + + + string + + + ; + + + -function greet(user: User): string { - return \`Hello, \${user.name}!\`; -} + + + name + + + : + + + string + + + ; + + + + + + + email + + + : + + + string + + + ; + + + + + + } + + + + + + + + + + function + + + greet + + + ( + + + user + + + : + + + User + + + ) + + + : + + + string + + + { + + + + + + + return + + + \`Hello, \${ + + + user + + + . + + + name + + + }!\` + + + ; + + + + + + + } + + diff --git a/webui2/src/components/shared/__snapshots__/pagination.test.tsx.snap b/webui2/src/components/shared/__snapshots__/pagination.test.tsx.snap index 4c522d1346b3d49609a6e568b17f7350eae450fb..ed28eecc396e6e7bd0346597e6cd4a17fc87f649 100644 --- a/webui2/src/components/shared/__snapshots__/pagination.test.tsx.snap +++ b/webui2/src/components/shared/__snapshots__/pagination.test.tsx.snap @@ -16,7 +16,7 @@ exports[`Pagination/Default matches snapshot 1`] = ` @@ -82,7 +82,7 @@ exports[`Pagination/LastPage matches snapshot 1`] = ` > @@ -113,7 +113,7 @@ exports[`Pagination/LastPage matches snapshot 1`] = ` @@ -178,7 +178,7 @@ exports[`Pagination/MiddlePage matches snapshot 1`] = ` diff --git a/webui2/src/components/shared/__snapshots__/write-preview.test.tsx.snap b/webui2/src/components/shared/__snapshots__/write-preview.test.tsx.snap index b552236a18f6020ce2358fa87125d0180efed6f7..66ebee22f5a7b30c09d702b9a6f77ad1f1d5ded9 100644 --- a/webui2/src/components/shared/__snapshots__/write-preview.test.tsx.snap +++ b/webui2/src/components/shared/__snapshots__/write-preview.test.tsx.snap @@ -21,7 +21,7 @@ exports[`WritePreview/Controlled matches snapshot 1`] = `
+ + + + interface + + + User + + + { + + + + + + + id + + + : + + + string + + + ; + + + -function greet(user: User): string { - return \`Hello, \${user.name}!\`; -} + + + name + + + : + + + string + + + ; + + + + + + + email + + + : + + + string + + + ; + + + + + + } + + + + + + + + + + function + + + greet + + + ( + + + user + + + : + + + User + + + ) + + + : + + + string + + + { + + + + + + + return + + + \`Hello, \${ + + + user + + + . + + + name + + + }!\` + + + ; + + + + + + + } + +
+ + + interface + + + User + + + { + + + + + + + id + + + : + + + string + + + ; + + + -function greet(user: User): string { - return \`Hello, \${user.name}!\`; -} + + + name + + + : + + + string + + + ; + + + + + + + email + + + : + + + string + + + ; + + + + + + } + + + + + + + + + + function + + + greet + + + ( + + + user + + + : + + + User + + + ) + + + : + + + string + + + { + + + + + + + return + + + \`Hello, \${ + + + user + + + . + + + name + + + }!\` + + + ; + + + + + + + } + +