An AI-powered search engine with a generative UI
TypeScript generative-aigenerative-uinextjsollamareactsearxngshadcn-uitailwindcsstavilytypescriptupstashvercel-ai-sdk
Polish interface motion
Yoshiki Miura285c0730a7b3
diff --git a/app/globals.css b/app/globals.cssindex 0ab89a89..7b7d09eb 100644--- a/app/globals.css+++ b/app/globals.css@@ -55,6 +55,9 @@--shadow-2xl: 0px 1px 2px 0px hsl(0 0% 0% / 0.45);--tracking-normal: 0em;--spacing: 0.25rem;+ --motion-ease-out: cubic-bezier(0.23, 1, 0.32, 1);+ --motion-ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);+ --motion-ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);}.dark {@@ -161,13 +164,13 @@--shadow-xl: var(--shadow-xl);--shadow-2xl: var(--shadow-2xl);- --animate-accordion-down: accordion-down 0.2s ease-out;- --animate-accordion-up: accordion-up 0.2s ease-out;- --animate-collapse-down: collapse-down 0.1s ease-in-out;- --animate-collapse-up: collapse-up 0.1s ease-in-out;- --animate-slide-in-right: slide-in-right 0.3s ease-out;- --animate-slide-out-right: slide-out-right 0.3s ease-out;- --animate-fade-in: fade-in 0.3s ease-out;+ --animate-accordion-down: accordion-down 180ms var(--motion-ease-out);+ --animate-accordion-up: accordion-up 140ms var(--motion-ease-out);+ --animate-collapse-down: collapse-down 160ms var(--motion-ease-out);+ --animate-collapse-up: collapse-up 120ms var(--motion-ease-out);+ --animate-slide-in-right: slide-in-right 220ms var(--motion-ease-drawer);+ --animate-slide-out-right: slide-out-right 160ms var(--motion-ease-out);+ --animate-fade-in: fade-in 180ms var(--motion-ease-out);@keyframes accordion-down {from {@@ -247,32 +250,36 @@100% {transform: translateX(0);}- 25% {- transform: translateX(10px);+ 18%,+ 30% {+ transform: translateX(6px);}- 50% {- transform: translateX(0);+ 48%,+ 60% {+ transform: translateX(-6px);}- 75% {- transform: translateX(-10px);+ 78% {+ transform: translateX(0);}}}@utility animate-blink {- animation: blink 0.2s ease-in-out;+ animation: blink 180ms var(--motion-ease-in-out);}/* Animation utilities for dropdown menu */@utility animate-in {animation-name: enter;- animation-duration: 150ms;+ animation-duration: var(--tw-duration, 160ms);+ animation-timing-function: var(--tw-ease, var(--motion-ease-out));animation-fill-mode: both;}@utility animate-out {animation-name: exit;- animation-duration: 150ms;+ animation-duration: var(--tw-duration, 120ms);+ animation-timing-function: var(--tw-ease, var(--motion-ease-out));animation-fill-mode: both;}@@ -308,6 +315,38 @@--enter-translate-x: 0.5rem;}+@utility slide-in-from-top {+ --enter-translate-y: -100%;+}++@utility slide-in-from-bottom {+ --enter-translate-y: 100%;+}++@utility slide-in-from-left {+ --enter-translate-x: -100%;+}++@utility slide-in-from-right {+ --enter-translate-x: 100%;+}++@utility slide-out-to-top {+ --exit-translate-y: -100%;+}++@utility slide-out-to-bottom {+ --exit-translate-y: 100%;+}++@utility slide-out-to-left {+ --exit-translate-x: -100%;+}++@utility slide-out-to-right {+ --exit-translate-x: 100%;+}+@keyframes enter {from {opacity: var(--enter-opacity, 1);@@ -335,6 +374,30 @@}}+@media (prefers-reduced-motion: reduce) {+ @keyframes enter {+ from {+ opacity: var(--enter-opacity, 1);+ transform: translate(0, 0) scale(1);+ }+ to {+ opacity: 1;+ transform: translate(0, 0) scale(1);+ }+ }++ @keyframes exit {+ from {+ opacity: 1;+ transform: translate(0, 0) scale(1);+ }+ to {+ opacity: var(--exit-opacity, 1);+ transform: translate(0, 0) scale(1);+ }+ }+}+@utility container {margin-inline: auto;padding-inline: 2rem;diff --git a/components/action-buttons.tsx b/components/action-buttons.tsxindex 895c4f81..eae5fe15 100644--- a/components/action-buttons.tsx+++ b/components/action-buttons.tsx@@ -174,7 +174,7 @@ export function ActionButtons({{/* Action buttons */}<divclassName={cn(- 'absolute inset-0 flex items-start justify-center pt-2 transition-opacity duration-300',+ 'absolute inset-0 flex items-start justify-center pt-2 transition-opacity duration-[180ms] ease-[var(--motion-ease-out)]',activeCategory ? 'opacity-0 pointer-events-none' : 'opacity-100')}>@@ -204,7 +204,7 @@ export function ActionButtons({{/* Prompt samples */}<divclassName={cn(- 'absolute inset-0 py-1 space-y-1 overflow-y-auto transition-opacity duration-300',+ 'absolute inset-0 space-y-1 overflow-y-auto py-1 transition-opacity duration-[180ms] ease-[var(--motion-ease-out)]',!activeCategory ? 'opacity-0 pointer-events-none' : 'opacity-100')}>@@ -214,8 +214,8 @@ export function ActionButtons({key={index}type="button"className={cn(- 'w-full text-left px-3 py-2 rounded-md text-sm',- 'hover:bg-muted transition-colors',+ 'w-full rounded-md px-3 py-2 text-left text-sm',+ 'transition-colors duration-[140ms] ease-[var(--motion-ease-out)] hover:bg-muted','flex items-center gap-2 group')}onClick={() => handlePromptClick(prompt)}diff --git a/components/artifact/artifact-context.tsx b/components/artifact/artifact-context.tsxindex 11346896..a2158708 100644--- a/components/artifact/artifact-context.tsx+++ b/components/artifact/artifact-context.tsx@@ -13,8 +13,8 @@ import type { Part } from '@/lib/types/ai'import { useSidebar } from '../ui/sidebar'-// Animation duration should match CSS transition duration-const ANIMATION_DURATION = 300+// Animation duration should match the inspector panel exit transition.+const ANIMATION_DURATION = 260interface ArtifactState {part: Part | nulldiff --git a/components/artifact/chat-artifact-container.tsx b/components/artifact/chat-artifact-container.tsxindex b9ce5dfd..dbd068ed 100644--- a/components/artifact/chat-artifact-container.tsx+++ b/components/artifact/chat-artifact-container.tsx@@ -132,7 +132,7 @@ export function ChatArtifactContainer({return (<div className="flex-1 min-h-0 min-w-0 h-full flex">- <div className="absolute p-4 z-50 transition-opacity duration-1000">+ <div className="absolute z-50 p-4 transition-opacity duration-[180ms] ease-[var(--motion-ease-out)]">{hasUser && (!open || isMobileSidebar) && (<SidebarTrigger className="animate-fade-in" />)}@@ -164,7 +164,8 @@ export function ChatArtifactContainer({className={cn('bg-background overflow-hidden',state.isOpen && state.part ? 'opacity-100' : 'w-0 opacity-0',- !isResizing && 'transition-all duration-300 ease-out'+ !isResizing &&+ 'transition-[opacity,width] duration-[260ms] ease-[var(--motion-ease-in-out)]')}style={{width: state.isOpen && state.part ? `${width}px` : '0px'diff --git a/components/chat-panel.tsx b/components/chat-panel.tsxindex 57f1ec3b..436ce1e5 100644--- a/components/chat-panel.tsx+++ b/components/chat-panel.tsx@@ -269,7 +269,7 @@ export function ChatPanel({{messages.length > 0 && (<divclassName={cn(- 'transition-opacity duration-100',+ 'transition-opacity duration-[120ms] ease-[var(--motion-ease-out)]',showScrollToBottomButton? 'opacity-100': 'pointer-events-none opacity-0'@@ -291,7 +291,7 @@ export function ChatPanel({{sections.length > 0 && (<divclassName={cn(- 'transition-opacity duration-100',+ 'transition-opacity duration-[120ms] ease-[var(--motion-ease-out)]',!showScrollToBottomButton && status === 'ready'? 'opacity-100': 'pointer-events-none opacity-0'@@ -303,7 +303,7 @@ export function ChatPanel({<divclassName={cn(- 'relative flex flex-col w-full gap-2 bg-muted rounded-3xl border border-input transition-shadow',+ 'relative flex w-full flex-col gap-2 rounded-3xl border border-input bg-muted transition-[box-shadow] duration-[140ms] ease-[var(--motion-ease-out)]',isInputFocused &&'ring-1 ring-ring/20 ring-offset-1 ring-offset-background/50')}@@ -441,7 +441,7 @@ export function ChatPanel({type="button"disabled={isLoading}>- <MessageCirclePlus className="size-4 group-hover:rotate-12 transition-all" />+ <MessageCirclePlus className="size-4 transition-transform duration-[140ms] ease-[var(--motion-ease-out)] group-hover:rotate-12" /></Button>)}<Buttondiff --git a/components/model-selector-client.tsx b/components/model-selector-client.tsxindex dc779278..29bff39e 100644--- a/components/model-selector-client.tsx+++ b/components/model-selector-client.tsx@@ -99,7 +99,7 @@ export function ModelSelectorClient({ data }: ModelSelectorClientProps) {return (<Buttonvariant="outline"- className="text-sm rounded-full shadow-none gap-1 transition-all px-3 py-2 h-auto bg-muted border-none"+ className="h-auto gap-1 rounded-full border-none bg-muted px-3 py-2 text-sm shadow-none transition-[background-color,color,box-shadow,transform]"disabledtitle="No enabled models are available">@@ -121,7 +121,7 @@ export function ModelSelectorClient({ data }: ModelSelectorClientProps) {variant="outline"role="combobox"aria-expanded={open}- className="text-sm rounded-full shadow-none gap-1 transition-all px-3 py-2 h-auto bg-muted border-none"+ className="h-auto gap-1 rounded-full border-none bg-muted px-3 py-2 text-sm shadow-none transition-[background-color,color,box-shadow,transform]"><ProviderLogo providerId={selectedModel.providerId} /><span className="truncate max-w-40 text-xs font-medium">@@ -129,7 +129,7 @@ export function ModelSelectorClient({ data }: ModelSelectorClientProps) {</span><ChevronDownclassName={cn(- 'h-3 w-3 ml-0.5 opacity-50 transition-transform duration-200',+ 'ml-0.5 h-3 w-3 opacity-50 transition-transform duration-[160ms] ease-[var(--motion-ease-out)]',open && 'rotate-180')}/>diff --git a/components/search-mode-selector.tsx b/components/search-mode-selector.tsxindex 6977d73f..9d895e05 100644--- a/components/search-mode-selector.tsx+++ b/components/search-mode-selector.tsx@@ -105,7 +105,7 @@ export function SearchModeSelector({<Buttonvariant="outline"size="sm"- className="text-xs rounded-full shadow-none gap-1 transition-all"+ className="gap-1 rounded-full text-xs shadow-none transition-[background-color,color,box-shadow,transform]">{SelectedIcon && (<SelectedIcon@@ -118,7 +118,7 @@ export function SearchModeSelector({<span className="text-xs font-medium">{selectedMode?.label}</span><ChevronDownclassName={cn(- 'size-3 ml-0.5 opacity-50 transition-transform duration-200',+ 'ml-0.5 size-3 opacity-50 transition-transform duration-[160ms] ease-[var(--motion-ease-out)]',dropdownOpen && 'rotate-180')}/>@@ -160,7 +160,7 @@ export function SearchModeSelector({<div className="relative inline-flex items-center rounded-full bg-background border p-1">{/* Animated background indicator */}<div- className="absolute inset-1 rounded-full bg-muted transition-all duration-200 ease-out"+ className="absolute inset-1 rounded-full bg-muted transition-[transform,width] duration-[180ms] ease-[var(--motion-ease-in-out)]"style={{width: `calc(${100 / modeCount}% - 4px)`,transform: `translateX(${selectedIndex * 100}%)`@@ -190,7 +190,7 @@ export function SearchModeSelector({type="button"onClick={() => handleModeSelect(config.value)}className={cn(- 'relative z-10 flex-1 items-center justify-center rounded-full px-3 py-2 transition-colors duration-200',+ 'relative z-10 flex-1 items-center justify-center rounded-full px-3 py-2 transition-colors duration-[140ms] ease-[var(--motion-ease-out)]',isSelected? 'text-foreground': 'text-muted-foreground hover:text-foreground/80'diff --git a/components/ui/alert-dialog.tsx b/components/ui/alert-dialog.tsxindex cf7ddcaa..80d068c0 100644--- a/components/ui/alert-dialog.tsx+++ b/components/ui/alert-dialog.tsx@@ -20,7 +20,7 @@ const AlertDialogOverlay = React.forwardRef<>(({ className, ...props }, ref) => (<AlertDialogPrimitive.OverlayclassName={cn(- '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',+ 'fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=open]:duration-[180ms] data-[state=closed]:duration-[120ms] data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0',className)}{...props}@@ -38,7 +38,7 @@ const AlertDialogContent = React.forwardRef<<AlertDialogPrimitive.Contentref={ref}className={cn(- '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 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg',+ 'fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg origin-center translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=open]:duration-[180ms] data-[state=closed]:duration-[120ms] 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',className)}{...props}diff --git a/components/ui/animated-logo.tsx b/components/ui/animated-logo.tsxindex 47c2c882..c9a45935 100644--- a/components/ui/animated-logo.tsx+++ b/components/ui/animated-logo.tsx@@ -57,7 +57,8 @@ export function AnimatedLogo({<gclassName={cn('origin-center',- animate && 'animate-[lookAround_2s_ease-in-out_infinite]'+ animate &&+ 'animate-[lookAround_2.8s_var(--motion-ease-in-out)_infinite] will-change-transform motion-reduce:animate-none motion-reduce:will-change-auto')}><ellipsediff --git a/components/ui/button.tsx b/components/ui/button.tsxindex 274b1ec1..f3d5418b 100644--- a/components/ui/button.tsx+++ b/components/ui/button.tsx@@ -6,7 +6,7 @@ import { cva, type VariantProps } from 'class-variance-authority'import { cn } from '@/lib/utils/index'const buttonVariants = cva(- 'inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50',+ 'inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-[background-color,border-color,color,box-shadow,transform] duration-[140ms] ease-[var(--motion-ease-out)] active:scale-[0.98] focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50',{variants: {variant: {diff --git a/components/ui/dialog.tsx b/components/ui/dialog.tsxindex d826c169..3921c208 100644--- a/components/ui/dialog.tsx+++ b/components/ui/dialog.tsx@@ -22,7 +22,7 @@ const DialogOverlay = React.forwardRef<<DialogPrimitive.Overlayref={ref}className={cn(- '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',+ 'fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=open]:duration-[180ms] data-[state=closed]:duration-[120ms] data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0',className)}{...props}@@ -39,7 +39,7 @@ const DialogContent = React.forwardRef<<DialogPrimitive.Contentref={ref}className={cn(- '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 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg',+ 'fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg origin-center translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=open]:duration-[180ms] data-[state=closed]:duration-[120ms] 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',className)}{...props}diff --git a/components/ui/dropdown-menu.tsx b/components/ui/dropdown-menu.tsxindex 846a72f3..1c7c0aae 100644--- a/components/ui/dropdown-menu.tsx+++ b/components/ui/dropdown-menu.tsx@@ -47,7 +47,7 @@ function DropdownMenuContent({data-slot="dropdown-menu-content"sideOffset={sideOffset}className={cn(- 'bg-popover text-popover-foreground 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 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 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md',+ 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=open]:duration-[150ms] data-[state=closed]:duration-[100ms] data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=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 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md',className)}{...props}@@ -236,7 +236,7 @@ function DropdownMenuSubContent({<DropdownMenuPrimitive.SubContentdata-slot="dropdown-menu-sub-content"className={cn(- 'bg-popover text-popover-foreground 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 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 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg',+ 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=open]:duration-[150ms] data-[state=closed]:duration-[100ms] data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=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 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg',className)}{...props}diff --git a/components/ui/hover-card.tsx b/components/ui/hover-card.tsxindex b7934c67..db2b5a9e 100644--- a/components/ui/hover-card.tsx+++ b/components/ui/hover-card.tsx@@ -20,13 +20,13 @@ const HoverCardContent = React.forwardRef<align={align}sideOffset={sideOffset}className={cn(- 'z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none',+ 'z-50 w-64 origin-(--radix-hover-card-content-transform-origin) rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none','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','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',- 'data-[state=open]:duration-150 data-[state=closed]:duration-100',+ 'data-[state=open]:duration-[140ms] data-[state=closed]:duration-[90ms]',className)}{...props}diff --git a/components/ui/popover.tsx b/components/ui/popover.tsxindex cdecb3e3..c6239c66 100644--- a/components/ui/popover.tsx+++ b/components/ui/popover.tsx@@ -20,7 +20,7 @@ const PopoverContent = React.forwardRef<align={align}sideOffset={sideOffset}className={cn(- 'z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden 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 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',+ 'z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=open]:duration-[160ms] data-[state=closed]:duration-[110ms] data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=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',className)}{...props}diff --git a/components/ui/select.tsx b/components/ui/select.tsxindex 9480531f..d56d5703 100644--- a/components/ui/select.tsx+++ b/components/ui/select.tsx@@ -80,7 +80,7 @@ const SelectContent = React.forwardRef<<SelectPrimitive.Contentref={ref}className={cn(- 'relative z-50 max-h-96 min-w-32 overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md 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 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',+ 'relative z-50 max-h-96 min-w-32 origin-(--radix-select-content-transform-origin) overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=open]:duration-[160ms] data-[state=closed]:duration-[110ms] data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=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',position === 'popper' &&'data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1',classNamediff --git a/components/ui/sheet.tsx b/components/ui/sheet.tsxindex acadf25b..f33b7597 100644--- a/components/ui/sheet.tsx+++ b/components/ui/sheet.tsx@@ -22,7 +22,7 @@ const SheetOverlay = React.forwardRef<>(({ className, ...props }, ref) => (<SheetPrimitive.OverlayclassName={cn(- 'fixed inset-0 z-50 bg-black/30 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0',+ 'fixed inset-0 z-50 bg-black/30 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=open]:duration-[120ms] data-[state=closed]:duration-[90ms] data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0',className)}{...props}@@ -32,7 +32,7 @@ const SheetOverlay = React.forwardRef<SheetOverlay.displayName = SheetPrimitive.Overlay.displayNameconst sheetVariants = cva(- 'fixed z-50 gap-4 bg-background p-4 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500',+ 'fixed z-50 gap-4 bg-background p-4 shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=open]:duration-[160ms] data-[state=closed]:duration-[110ms] data-[state=open]:ease-[var(--motion-ease-drawer)] data-[state=closed]:ease-[var(--motion-ease-out)]',{variants: {side: {diff --git a/components/ui/sidebar.tsx b/components/ui/sidebar.tsxindex 023c6864..f8173e27 100644--- a/components/ui/sidebar.tsx+++ b/components/ui/sidebar.tsx@@ -250,7 +250,7 @@ const Sidebar = React.forwardRef<{/* This is what handles the sidebar gap on desktop */}<divclassName={cn(- 'relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear',+ 'relative w-(--sidebar-width) bg-transparent transition-[width] duration-[120ms] ease-[var(--motion-ease-out)]','group-data-[collapsible=offcanvas]:w-0','group-data-[side=right]:rotate-180',variant === 'floating' || variant === 'inset'@@ -260,7 +260,7 @@ const Sidebar = React.forwardRef</><divclassName={cn(- 'fixed inset-y-0 z-10 hidden h-[100dvh] w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex',+ 'fixed inset-y-0 z-10 hidden h-[100dvh] w-(--sidebar-width) transition-[left,right,width] duration-[120ms] ease-[var(--motion-ease-out)] md:flex',side === 'left'? 'left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]': 'right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]',@@ -328,7 +328,7 @@ const SidebarRail = React.forwardRef<onClick={toggleSidebar}title="Toggle Sidebar"className={cn(- 'absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex',+ 'absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-[background-color,transform] duration-[140ms] ease-[var(--motion-ease-out)] after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex','in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize','[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize','group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full hover:group-data-[collapsible=offcanvas]:bg-sidebar',@@ -467,7 +467,7 @@ const SidebarGroupLabel = React.forwardRef<ref={ref}data-sidebar="group-label"className={cn(- 'flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-hidden ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0',+ 'flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-hidden ring-sidebar-ring transition-[margin,opacity] duration-[120ms] ease-[var(--motion-ease-out)] focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0','group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0',className)}@@ -540,7 +540,7 @@ const SidebarMenuItem = React.forwardRef<SidebarMenuItem.displayName = 'SidebarMenuItem'const sidebarMenuButtonVariants = cva(- 'peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0',+ 'peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] duration-[120ms] ease-[var(--motion-ease-out)] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0',{variants: {variant: {diff --git a/components/ui/tooltip.tsx b/components/ui/tooltip.tsxindex 7d4feea1..8fe8bf40 100644--- a/components/ui/tooltip.tsx+++ b/components/ui/tooltip.tsx@@ -20,7 +20,7 @@ const TooltipContent = React.forwardRef<ref={ref}sideOffset={sideOffset}className={cn(- 'z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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',+ 'z-50 origin-(--radix-tooltip-content-transform-origin) overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in duration-[120ms] fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:duration-[90ms] data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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',className)}{...props}