@doscientos/ui 0.1.23 → 0.1.26
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.
- package/dist/index.cjs +762 -528
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +221 -32
- package/dist/index.d.ts +221 -32
- package/dist/index.js +728 -504
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +4 -2
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts","../src/hooks/use-autosave.ts","../src/hooks/use-debounced-value.ts","../src/hooks/use-form-dirty.ts","../src/lib/action-ripple.ts","../src/lib/cn.ts","../src/lib/text-match.ts","../src/ui/accordion/accordion.tsx","../src/ui/alert/alert.tsx","../src/ui/app-shell/app-shell.tsx","../src/ui/avatar/avatar.tsx","../src/ui/badge/badge.tsx","../src/ui/breadcrumb/breadcrumb.tsx","../src/ui/button-group/button-group.tsx","../src/ui/separator/separator.tsx","../src/ui/button/button.tsx","../src/ui/card/card.tsx","../src/ui/checkbox/checkbox.tsx","../src/ui/combobox/combobox.tsx","../src/ui/command/command.tsx","../src/ui/modal-dialog/modal-dialog.tsx","../src/ui/confirm-dialog/confirm-dialog.tsx","../src/ui/danger-zone/danger-zone.tsx","../src/ui/dialog/dialog.tsx","../src/ui/doc-preview/doc-preview.tsx","../src/ui/drawer/drawer.tsx","../src/ui/dropdown-menu/dropdown-menu.tsx","../src/ui/empty-state/empty-state.tsx","../src/ui/field/field.tsx","../src/ui/label/label.tsx","../src/ui/form-feedback/form-feedback.tsx","../src/ui/form-row/form-row.tsx","../src/ui/icon-button/icon-button.tsx","../src/ui/tooltip/tooltip.tsx","../src/ui/input-group/input-group.tsx","../src/ui/input/input.tsx","../src/ui/textarea/textarea.tsx","../src/ui/kbd/kbd.tsx","../src/ui/loading-overlay/loading-overlay.tsx","../src/ui/menu/menu.tsx","../src/ui/otp-input/otp-input.tsx","../src/ui/page-header/page-header.tsx","../src/ui/pagination/pagination.tsx","../src/ui/popover/popover.tsx","../src/ui/quantity-input/quantity-input.tsx","../src/ui/search-field/search-field.tsx","../src/ui/select/select.tsx","../src/ui/sheet/sheet.tsx","../src/ui/sidebar/sidebar.tsx","../src/ui/skeleton/skeleton.tsx","../src/ui/submit-button/submit-button.tsx","../src/ui/switch/switch.tsx","../src/ui/table/table.tsx","../src/ui/tabs/tabs.tsx","../src/ui/toast/toast.tsx","../src/ui/toolbar/toolbar.tsx"],"sourcesContent":["export * from \"./hooks/use-autosave\";\nexport * from \"./hooks/use-debounced-value\";\nexport * from \"./hooks/use-form-dirty\";\nexport * from \"./lib/action-ripple\";\nexport * from \"./lib/cn\";\nexport * from \"./lib/text-match\";\nexport * from \"./ui/accordion/accordion\";\nexport * from \"./ui/alert/alert\";\nexport * from \"./ui/app-shell/app-shell\";\nexport * from \"./ui/avatar/avatar\";\nexport * from \"./ui/badge/badge\";\nexport * from \"./ui/breadcrumb/breadcrumb\";\nexport * from \"./ui/button-group/button-group\";\nexport * from \"./ui/button/button\";\nexport * from \"./ui/card/card\";\nexport * from \"./ui/checkbox/checkbox\";\nexport * from \"./ui/combobox/combobox\";\nexport * from \"./ui/command/command\";\nexport * from \"./ui/confirm-dialog/confirm-dialog\";\nexport * from \"./ui/danger-zone/danger-zone\";\nexport * from \"./ui/dialog/dialog\";\nexport * from \"./ui/doc-preview/doc-preview\";\nexport * from \"./ui/drawer/drawer\";\nexport * from \"./ui/dropdown-menu/dropdown-menu\";\nexport * from \"./ui/empty-state/empty-state\";\nexport * from \"./ui/field/field\";\nexport * from \"./ui/form-feedback/form-feedback\";\nexport * from \"./ui/form-row/form-row\";\nexport * from \"./ui/icon-button/icon-button\";\nexport * from \"./ui/input-group/input-group\";\nexport * from \"./ui/input/input\";\nexport * from \"./ui/kbd/kbd\";\nexport * from \"./ui/label/label\";\nexport * from \"./ui/loading-overlay/loading-overlay\";\nexport * from \"./ui/menu/menu\";\nexport * from \"./ui/modal-dialog/modal-dialog\";\nexport * from \"./ui/otp-input/otp-input\";\nexport * from \"./ui/page-header/page-header\";\nexport * from \"./ui/pagination/pagination\";\nexport * from \"./ui/popover/popover\";\nexport * from \"./ui/quantity-input/quantity-input\";\nexport * from \"./ui/search-field/search-field\";\nexport * from \"./ui/select/select\";\nexport * from \"./ui/separator/separator\";\nexport * from \"./ui/sheet/sheet\";\nexport * from \"./ui/sidebar/sidebar\";\nexport * from \"./ui/skeleton/skeleton\";\nexport * from \"./ui/submit-button/submit-button\";\nexport * from \"./ui/switch/switch\";\nexport * from \"./ui/table/table\";\nexport * from \"./ui/tabs/tabs\";\nexport * from \"./ui/textarea/textarea\";\nexport * from \"./ui/toast/toast\";\nexport * from \"./ui/toolbar/toolbar\";\nexport * from \"./ui/tooltip/tooltip\";\n\n","import { useCallback, useEffect, useRef, useState } from \"react\";\n\nexport type AutosaveStatus = \"idle\" | \"saving\" | \"saved\" | \"error\";\n\nexport type UseAutosaveOptions<T> = {\n data: T;\n onSave: (data: T) => Promise<void>;\n debounceMs?: number;\n enabled?: boolean;\n serialize?: (data: T) => string;\n};\n\n/** Debounced autosave with stale-value protection and an explicit `saveNow`. */\nexport function useAutosave<T>({\n data,\n onSave,\n debounceMs = 1_000,\n enabled = true,\n serialize = JSON.stringify,\n}: UseAutosaveOptions<T>) {\n const [status, setStatus] = useState<AutosaveStatus>(\"idle\");\n const [error, setError] = useState<Error | null>(null);\n const lastSaved = useRef<string | null>(null);\n const saveRef = useRef(onSave);\n const serializeRef = useRef(serialize);\n\n useEffect(() => {\n saveRef.current = onSave;\n serializeRef.current = serialize;\n }, [onSave, serialize]);\n\n const save = useCallback(async (value: T) => {\n setStatus(\"saving\");\n setError(null);\n try {\n await saveRef.current(value);\n lastSaved.current = serializeRef.current(value);\n setStatus(\"saved\");\n } catch (cause) {\n setError(cause instanceof Error ? cause : new Error(\"No se pudo guardar.\"));\n setStatus(\"error\");\n }\n }, []);\n\n useEffect(() => {\n if (!enabled) return;\n const snapshot = serializeRef.current(data);\n if (lastSaved.current === null) {\n lastSaved.current = snapshot;\n return;\n }\n if (snapshot === lastSaved.current) return;\n const timeout = window.setTimeout(() => void save(data), debounceMs);\n return () => window.clearTimeout(timeout);\n }, [data, debounceMs, enabled, save]);\n\n return { status, error, saveNow: () => save(data) };\n}","import { useEffect, useState } from \"react\";\n\n/** Returns a value only after it has been stable for the supplied delay. */\nexport function useDebouncedValue<T>(value: T, delay: number = 250) {\n const [debouncedValue, setDebouncedValue] = useState(value);\n\n useEffect(() => {\n const timeout = window.setTimeout(() => setDebouncedValue(value), delay);\n return () => window.clearTimeout(timeout);\n }, [delay, value]);\n\n return debouncedValue;\n}","import { type RefCallback, useCallback, useRef, useState } from \"react\";\n\nexport function formSnapshot(form: HTMLFormElement): string {\n const entries: Array<[string, string]> = Array.from(new FormData(form), ([key, value]) => [key, typeof value === \"string\" ? value : value.name]);\n entries.sort(([left], [right]) => left.localeCompare(right));\n return JSON.stringify(entries);\n}\n\nexport interface UseFormDirtyResult<T extends HTMLFormElement = HTMLFormElement> {\n formRef: RefCallback<T | null>;\n isDirty: boolean;\n markDirty: () => void;\n reset: () => void;\n}\n\n/** Tracks changes in native form controls and supports controlled fields. */\nexport function useFormDirty<T extends HTMLFormElement = HTMLFormElement>(): UseFormDirtyResult<T> {\n const formElement = useRef<T | null>(null);\n const baseline = useRef<string | null>(null);\n const [isDirty, setIsDirty] = useState(false);\n\n const recompute = useCallback(() => {\n if (formElement.current && baseline.current !== null) {\n setIsDirty(formSnapshot(formElement.current) !== baseline.current);\n }\n }, []);\n\n const reset = useCallback(() => {\n if (formElement.current) {\n baseline.current = formSnapshot(formElement.current);\n setIsDirty(false);\n }\n }, []);\n\n const formRef = useCallback<RefCallback<T | null>>((form) => {\n if (formElement.current) {\n formElement.current.removeEventListener(\"input\", recompute);\n formElement.current.removeEventListener(\"change\", recompute);\n formElement.current.removeEventListener(\"reset\", recompute);\n }\n formElement.current = form;\n if (form) {\n baseline.current = formSnapshot(form);\n setIsDirty(false);\n form.addEventListener(\"input\", recompute);\n form.addEventListener(\"change\", recompute);\n form.addEventListener(\"reset\", recompute);\n }\n }, [recompute]);\n\n return { formRef, isDirty, markDirty: () => setIsDirty(true), reset };\n}\n","import { cva } from \"class-variance-authority\";\n\n/**\n * Provides the clipping and stacking context for a transient action ripple.\n */\nexport const actionRipple = cva(\n \"relative isolate overflow-hidden\",\n);\n","import { type ClassValue, clsx } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\n/** Merges conditional class names, resolving conflicting Tailwind utilities. */\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}","export type TextMatchPart = {\n text: string;\n match: boolean;\n};\n\nfunction normalize(value: string) {\n return value.normalize(\"NFD\").replace(/[\\u0300-\\u036f]/g, \"\").toLocaleLowerCase();\n}\n\nfunction normalizedTextWithRanges(value: string) {\n const ranges: Array<{ start: number; end: number }> = [];\n let normalized = \"\";\n let sourceIndex = 0;\n\n for (const character of value) {\n const start = sourceIndex;\n sourceIndex += character.length;\n const normalizedCharacter = normalize(character);\n normalized += normalizedCharacter;\n for (let index = 0; index < normalizedCharacter.length; index += 1) {\n ranges.push({ start, end: sourceIndex });\n }\n }\n\n return { normalized, ranges };\n}\n\n/**\n * Splits text into matching and non-matching chunks. Matching is case- and\n * accent-insensitive while preserving the original text for rendering.\n */\nexport function getTextMatchParts(text: string, query: string): TextMatchPart[] {\n const term = normalize(query.trim());\n if (!term) return [{ text, match: false }];\n\n const { normalized, ranges } = normalizedTextWithRanges(text);\n const parts: TextMatchPart[] = [];\n let sourceCursor = 0;\n let index = normalized.indexOf(term);\n\n while (index !== -1) {\n const rangeStart = ranges[index]?.start;\n const rangeEnd = ranges[index + term.length - 1]?.end;\n if (rangeStart === undefined || rangeEnd === undefined) break;\n if (rangeStart > sourceCursor) parts.push({ text: text.slice(sourceCursor, rangeStart), match: false });\n parts.push({ text: text.slice(rangeStart, rangeEnd), match: true });\n sourceCursor = rangeEnd;\n index = normalized.indexOf(term, index + term.length);\n }\n\n if (sourceCursor < text.length) parts.push({ text: text.slice(sourceCursor), match: false });\n return parts.length ? parts : [{ text, match: false }];\n}\n","\"use client\"\n\nimport * as React from \"react\"\nimport { ChevronDownIcon, ChevronUpIcon } from \"lucide-react\"\nimport {\n DisclosurePanel as AccordionContentPrimitive,\n Heading as AccordionHeaderPrimitive,\n Disclosure as AccordionItemPrimitive,\n DisclosureGroup as AccordionPrimitive,\n Button as AccordionTriggerPrimitive,\n type ButtonProps,\n type DisclosureGroupProps,\n type DisclosurePanelProps,\n type DisclosureProps,\n} from \"react-aria-components\"\nimport { cn } from \"../../lib/cn\"\n\n\nfunction Accordion({ className, ...props }: DisclosureGroupProps) {\n return (\n <AccordionPrimitive\n data-slot=\"accordion\"\n className={cn(\"flex w-full flex-col text-foreground\", className)}\n {...props}\n />\n )\n}\n\nfunction AccordionItem({ className, ...props }: DisclosureProps) {\n return (\n <AccordionItemPrimitive\n data-slot=\"accordion-item\"\n className={cn(\"border-border not-last:border-b\", className)}\n {...props}\n />\n )\n}\n\nfunction AccordionTrigger({\n className,\n children,\n ...props\n}: Omit<ButtonProps, \"children\"> & { children: React.ReactNode }) {\n return (\n <AccordionHeaderPrimitive className=\"flex\">\n <AccordionTriggerPrimitive\n slot=\"trigger\"\n data-slot=\"accordion-trigger\"\n className={cn(\n \"group/accordion-trigger relative flex flex-1 items-start justify-between gap-3 rounded-lg border border-transparent px-2.5 py-2.5 text-left text-sm font-medium text-foreground transition-colors outline-none hover:bg-muted/50 aria-expanded:bg-muted/50 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 **:data-[slot=accordion-trigger-icon]:ml-auto **:data-[slot=accordion-trigger-icon]:size-4 **:data-[slot=accordion-trigger-icon]:text-muted-foreground\",\n className\n )}\n {...props}\n >\n {children}\n <ChevronDownIcon\n data-slot=\"accordion-trigger-icon\"\n className=\"pointer-events-none shrink-0 group-aria-expanded/accordion-trigger:hidden\"\n />\n <ChevronUpIcon\n data-slot=\"accordion-trigger-icon\"\n className=\"pointer-events-none hidden shrink-0 group-aria-expanded/accordion-trigger:inline\"\n />\n </AccordionTriggerPrimitive>\n </AccordionHeaderPrimitive>\n )\n}\n\nfunction AccordionContent({\n className,\n children,\n ...props\n}: DisclosurePanelProps) {\n return (\n <AccordionContentPrimitive\n data-slot=\"accordion-content\"\n className=\"h-(--disclosure-panel-height) overflow-clip text-sm text-muted-foreground transition-[height] data-open:animate-accordion-down data-closed:animate-accordion-up\"\n {...props}\n >\n <div\n className={cn(\n \"px-2.5 pt-0 pb-3 [&_a]:text-foreground [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-primary [&_p:not(:last-child)]:mb-4\",\n className\n )}\n >\n {children}\n </div>\n </AccordionContentPrimitive>\n )\n}\n\nexport { Accordion, AccordionItem, AccordionTrigger, AccordionContent }\n","import { cva, type VariantProps } from \"class-variance-authority\";\nimport type * as React from \"react\";\n\nimport { cn } from \"../../lib/cn\";\n\nconst alertVariants = cva(\n \"group/alert relative grid w-full gap-0.5 rounded-lg border border-border px-2.5 py-2 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4\",\n {\n variants: {\n variant: {\n default: \"bg-card text-card-foreground\",\n info: \"border-info/30 bg-info/5 text-info\",\n success: \"border-success/30 bg-success/5 text-success\",\n warning: \"border-warning/30 bg-warning/5 text-warning\",\n destructive:\n \"border-destructive/30 bg-destructive/5 text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n },\n);\n\nexport type AlertProps = React.ComponentProps<\"div\"> & VariantProps<typeof alertVariants>;\n\nfunction Alert({ className, variant, ...props }: AlertProps) {\n return (\n <div\n data-slot=\"alert\"\n role=\"alert\"\n className={cn(alertVariants({ variant }), className)}\n {...props}\n />\n );\n}\n\nfunction AlertTitle({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"alert-title\"\n className={cn(\n \"font-medium group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction AlertDescription({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"alert-description\"\n className={cn(\n \"text-sm text-balance text-muted-foreground md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction AlertAction({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div data-slot=\"alert-action\" className={cn(\"absolute top-2 right-2\", className)} {...props} />\n );\n}\n\nexport { Alert, AlertAction, AlertDescription, AlertTitle, alertVariants };\n","import type * as React from \"react\";\nimport { cn } from \"../../lib/cn\";\n\nexport type AppShellBreakpoint = \"sm\" | \"md\" | \"lg\";\n\nexport type AppShellProps = React.ComponentProps<\"div\"> & {\n /** Breakpoint at which the persistent sidebar replaces the mobile header. */\n sidebarBreakpoint?: AppShellBreakpoint;\n};\n\nexport function AppShell({\n className,\n sidebarBreakpoint = \"md\",\n ...props\n}: AppShellProps) {\n return (\n <div\n data-slot=\"app-shell\"\n data-sidebar-breakpoint={sidebarBreakpoint}\n className={cn(\"bg-background text-foreground\", className)}\n {...props}\n />\n );\n}\n\nexport function AppShellSidebar({ className, ...props }: React.ComponentProps<\"aside\">) {\n return (\n <aside\n data-slot=\"app-shell-sidebar\"\n className={cn(\"w-56 shrink-0 border-r border-border bg-card text-foreground\", className)}\n {...props}\n />\n );\n}\n\nexport function AppShellMain({ className, ...props }: React.ComponentProps<\"main\">) {\n return <main data-slot=\"app-shell-main\" className={cn(\"bg-background\", className)} {...props} />;\n}\n\nexport function AppShellHeader({ className, ...props }: React.ComponentProps<\"header\">) {\n return (\n <header\n data-slot=\"app-shell-header\"\n className={cn(\"border-b border-border bg-background px-4\", className)}\n {...props}\n />\n );\n}\n\nexport function AppShellMobileHeader({\n className,\n ...props\n}: React.ComponentProps<\"header\">) {\n return (\n <header\n data-slot=\"app-shell-mobile-header\"\n className={cn(\"h-14 shrink-0 items-center gap-2 border-b border-border bg-background px-3\", className)}\n {...props}\n />\n );\n}\n\nexport type AppShellContentProps = React.ComponentProps<\"div\"> & {\n /** Maximum content width. Use `full` for dense application screens. */\n size?: \"default\" | \"wide\" | \"full\";\n /** Adds the standard responsive content padding. */\n padded?: boolean;\n /** Lets this region scroll while the surrounding shell remains fixed. */\n scrollable?: boolean;\n};\n\nexport function AppShellContent({\n className,\n size = \"wide\",\n padded = true,\n scrollable = true,\n ...props\n}: AppShellContentProps) {\n return (\n <div\n data-slot=\"app-shell-content\"\n data-size={size}\n data-padded={padded || undefined}\n data-scrollable={scrollable || undefined}\n className={className}\n {...props}\n />\n );\n}\n","import { createContext, useContext, useEffect, useState } from \"react\";\nimport { cn } from \"../../lib/cn\";\n\nexport type AvatarProps = React.ComponentProps<\"div\"> & { size?: \"xs\" | \"sm\" | \"default\" | \"lg\" };\n\nconst sizes = { xs: \"size-5 text-[10px]\", sm: \"size-6 text-xs\", default: \"size-8 text-sm\", lg: \"size-10 text-base\" };\n\ntype AvatarStatus = \"idle\" | \"loading\" | \"loaded\" | \"error\";\nconst AvatarContext = createContext<{\n status: AvatarStatus;\n setStatus: (status: AvatarStatus) => void;\n} | null>(null);\n\nexport function Avatar({ className, size = \"default\", children, ...props }: AvatarProps) {\n const [status, setStatus] = useState<AvatarStatus>(\"idle\");\n return <AvatarContext.Provider value={{ status, setStatus }}><div data-slot=\"avatar\" data-size={size} className={cn(\"group/avatar relative flex shrink-0 overflow-hidden rounded-full bg-muted text-muted-foreground\", sizes[size], className)} {...props}>{children}</div></AvatarContext.Provider>;\n}\n\nexport function AvatarImage({ className, src, onError, onLoad, ...props }: React.ComponentProps<\"img\">) {\n const avatar = useContext(AvatarContext);\n const [failed, setFailed] = useState(false);\n\n useEffect(() => {\n setFailed(false);\n avatar?.setStatus(src ? \"loading\" : \"idle\");\n }, [avatar?.setStatus, src]);\n\n if (failed || avatar?.status === \"error\") return null;\n return <img data-slot=\"avatar-image\" src={src} className={cn(\"aspect-square size-full object-cover\", className)} onLoad={(event) => { avatar?.setStatus(\"loaded\"); onLoad?.(event); }} onError={(event) => { setFailed(true); avatar?.setStatus(\"error\"); onError?.(event); }} {...props} />;\n}\n\nexport function AvatarFallback({ className, ...props }: React.ComponentProps<\"span\">) {\n const avatar = useContext(AvatarContext);\n if (avatar?.status === \"loaded\") return null;\n return <span data-slot=\"avatar-fallback\" className={cn(\"flex size-full items-center justify-center font-medium\", className)} {...props} />;\n}\n\nexport function AvatarBadge({ className, ...props }: React.ComponentProps<\"span\">) {\n return <span data-slot=\"avatar-badge\" className={cn(\"absolute right-0 bottom-0 size-2.5 rounded-full bg-success ring-2 ring-background\", className)} {...props} />;\n}\n\nexport function AvatarGroup({ className, ...props }: React.ComponentProps<\"div\">) {\n return <div data-slot=\"avatar-group\" className={cn(\"flex -space-x-2 [&>[data-slot=avatar]]:ring-2 [&>[data-slot=avatar]]:ring-background\", className)} {...props} />;\n}\n\nexport function AvatarGroupCount({ className, ...props }: React.ComponentProps<\"span\">) {\n return <span data-slot=\"avatar-group-count\" className={cn(\"flex size-8 items-center justify-center rounded-full bg-muted text-xs font-medium text-muted-foreground ring-2 ring-background\", className)} {...props} />;\n}\n","import { cva, type VariantProps } from \"class-variance-authority\";\nimport type * as React from \"react\";\nimport { Link, type LinkProps } from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\n\nexport const badgeVariants = cva(\n \"inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 [&>svg]:pointer-events-none [&>svg]:size-3\",\n {\n variants: {\n variant: {\n default: \"bg-primary text-primary-foreground\",\n secondary: \"bg-secondary text-secondary-foreground\",\n neutral: \"bg-muted text-muted-foreground\",\n success: \"bg-success/10 text-success\",\n warning: \"bg-warning/10 text-warning\",\n info: \"bg-info/10 text-info\",\n danger: \"bg-destructive/10 text-destructive\",\n destructive: \"bg-destructive text-destructive-foreground\",\n outline: \"border border-border text-foreground\",\n ghost: \"text-foreground hover:bg-muted\",\n link: \"text-primary underline-offset-4 hover:underline\",\n },\n },\n defaultVariants: { variant: \"default\" },\n },\n);\n\nexport type BadgeProps = React.ComponentProps<\"span\"> & VariantProps<typeof badgeVariants>;\n\nexport function Badge({ className, variant, ...props }: BadgeProps) {\n return (\n <span\n data-slot=\"badge\"\n data-variant={variant ?? \"default\"}\n className={cn(badgeVariants({ variant }), className)}\n {...props}\n />\n );\n}\n\nexport type BadgeLinkProps = Omit<LinkProps, \"className\"> &\n VariantProps<typeof badgeVariants> & { className?: string };\n\nexport function BadgeLink({ className, variant, ...props }: BadgeLinkProps) {\n return (\n <Link\n data-slot=\"badge\"\n data-variant={variant ?? \"default\"}\n className={cn(badgeVariants({ variant }), className)}\n {...props}\n />\n );\n}\n","import { Breadcrumb as AriaBreadcrumb, Breadcrumbs as AriaBreadcrumbs, Link as AriaLink } from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\n\nexport function Breadcrumbs({ className, ...props }: React.ComponentProps<typeof AriaBreadcrumbs>) {\n return <AriaBreadcrumbs data-slot=\"breadcrumbs\" className={cn(\"flex flex-wrap items-center gap-1.5 text-sm text-muted-foreground\", className)} {...props} />;\n}\n\nexport function Breadcrumb({ className, ...props }: React.ComponentProps<typeof AriaBreadcrumb>) {\n return <AriaBreadcrumb data-slot=\"breadcrumb\" className={cn(\"inline-flex items-center gap-1.5\", className)} {...props} />;\n}\n\nexport function BreadcrumbLink({ className, ...props }: React.ComponentProps<typeof AriaLink>) {\n return <AriaLink data-slot=\"breadcrumb-link\" className={cn(\"transition-colors hover:text-foreground\", className)} {...props} />;\n}\n\nexport function BreadcrumbPage({ className, ...props }: React.ComponentProps<\"span\">) {\n return <span data-slot=\"breadcrumb-page\" aria-current=\"page\" className={cn(\"font-medium text-foreground\", className)} {...props} />;\n}\n\nexport function BreadcrumbSeparator({ children = \"/\", className, ...props }: React.ComponentProps<\"span\">) {\n return <span data-slot=\"breadcrumb-separator\" aria-hidden=\"true\" className={cn(\"text-muted-foreground/60\", className)} {...props}>{children}</span>;\n}\n","import { cva, type VariantProps } from \"class-variance-authority\";\nimport type * as React from \"react\";\n\nimport { cn } from \"../../lib/cn\";\nimport { Separator } from \"../separator/separator\";\n\nconst buttonGroupVariants = cva(\n \"flex w-fit items-stretch *:focus-visible:relative *:focus-visible:z-10 has-[>[data-slot=button-group]]:gap-2 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-lg [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1\",\n {\n variants: {\n orientation: {\n horizontal:\n \"**:data-slot:rounded-r-none [&_[data-slot]~[data-slot]]:rounded-l-none [&_[data-slot]~[data-slot]]:border-l-0 [&>[data-slot]:not(:has(~[data-slot]))]:rounded-r-lg!\",\n vertical:\n \"flex-col **:data-slot:rounded-b-none [&_[data-slot]~[data-slot]]:rounded-t-none [&_[data-slot]~[data-slot]]:border-t-0 [&>[data-slot]:not(:has(~[data-slot]))]:rounded-b-lg!\",\n },\n },\n defaultVariants: {\n orientation: \"horizontal\",\n },\n },\n);\n\nfunction ButtonGroup({\n className,\n orientation,\n ...props\n}: React.ComponentProps<\"div\"> & VariantProps<typeof buttonGroupVariants>) {\n return (\n // biome-ignore lint/a11y/useSemanticElements: fieldset would impose form semantics on a generic action group.\n <div\n role=\"group\"\n data-slot=\"button-group\"\n data-orientation={orientation}\n className={cn(buttonGroupVariants({ orientation }), className)}\n {...props}\n />\n );\n}\n\nfunction ButtonGroupText({\n className,\n render,\n ...props\n}: React.ComponentProps<\"div\"> & {\n render?: (props: React.HTMLAttributes<HTMLElement>) => React.ReactNode;\n}) {\n if (render) {\n const renderProps = {\n \"data-slot\": \"button-group-text\",\n className: cn(\n \"flex items-center gap-2 rounded-lg border border-border bg-muted px-2.5 text-sm font-medium [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4\",\n className,\n ),\n ...props,\n };\n\n return render(renderProps);\n }\n\n return (\n <div\n data-slot=\"button-group-text\"\n className={cn(\n \"flex items-center gap-2 rounded-lg border border-border bg-muted px-2.5 text-sm font-medium [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction ButtonGroupSeparator({\n className,\n orientation = \"vertical\",\n ...props\n}: React.ComponentProps<typeof Separator>) {\n return (\n <Separator\n data-slot=\"button-group-separator\"\n orientation={orientation}\n className={cn(\n \"relative self-stretch bg-input data-horizontal:mx-px data-horizontal:w-auto data-vertical:my-px data-vertical:h-auto\",\n className,\n )}\n {...props}\n />\n );\n}\n\nexport { ButtonGroup, ButtonGroupSeparator, ButtonGroupText, buttonGroupVariants };\n","\"use client\";\n\nimport { Separator as SeparatorPrimitive } from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\n\nexport type SeparatorProps = React.ComponentProps<typeof SeparatorPrimitive>;\n\nfunction Separator({ className, orientation = \"horizontal\", ...props }: SeparatorProps) {\n return (\n <SeparatorPrimitive\n data-slot=\"separator\"\n orientation={orientation}\n className={cn(\n \"block shrink-0 border-0 bg-border aria-[orientation=horizontal]:h-px aria-[orientation=horizontal]:w-full aria-[orientation=vertical]:w-px aria-[orientation=vertical]:self-stretch [:is(hr)]:h-px [:is(hr)]:w-full\",\n className,\n )}\n {...props}\n />\n );\n}\n\nexport { Separator };\n","\"use client\";\n\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport { useState } from \"react\";\nimport type * as React from \"react\";\nimport {\n Button as ButtonPrimitive,\n type ButtonProps as ButtonPrimitiveProps,\n Link as LinkPrimitive,\n type LinkProps as LinkPrimitiveProps,\n} from \"react-aria-components\";\n\nimport { actionRipple } from \"../../lib/action-ripple\";\nimport { cn } from \"../../lib/cn\";\n\nfunction useActionRipple(enabled: boolean) {\n const [rippleId, setRippleId] = useState(0);\n\n function triggerRipple() {\n if (enabled) setRippleId((currentId) => currentId + 1);\n }\n\n const ripple = rippleId ? (\n <span\n key={rippleId}\n aria-hidden=\"true\"\n data-slot=\"button-ripple\"\n className=\"pointer-events-none absolute top-1/2 left-1/2 aspect-square w-full rounded-full bg-current animate-ui-ripple motion-reduce:hidden\"\n onAnimationEnd={() => setRippleId(0)}\n />\n ) : null;\n\n return { ripple, triggerRipple };\n}\n\nconst buttonVariants = cva(\n cn(\n \"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 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\",\n actionRipple(),\n ),\n {\n variants: {\n variant: {\n default: \"bg-primary text-primary-foreground hover:bg-primary/80\",\n outline:\n \"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\",\n secondary:\n \"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground\",\n ghost:\n \"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50\",\n destructive:\n \"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40\",\n link: \"text-primary underline-offset-4 hover:underline after:hidden\",\n },\n size: {\n default:\n \"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2\",\n 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\",\n 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\",\n lg: \"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2\",\n icon: \"size-8\",\n \"icon-xs\":\n \"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3\",\n \"icon-sm\":\n \"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg\",\n \"icon-lg\": \"size-9\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"default\",\n },\n },\n);\n\nexport type ButtonProps = Omit<ButtonPrimitiveProps, \"className\"> &\n React.RefAttributes<HTMLButtonElement> &\n VariantProps<typeof buttonVariants> & {\n className?: string;\n };\n\nfunction Button({ className, variant = \"default\", size = \"default\", onClick, children, ...props }: ButtonProps) {\n const { ripple, triggerRipple } = useActionRipple(variant !== \"link\");\n\n return (\n <ButtonPrimitive\n data-slot=\"button\"\n data-variant={variant}\n data-size={size}\n className={cn(buttonVariants({ variant, size, className }))}\n onClick={(event) => {\n onClick?.(event);\n triggerRipple();\n }}\n {...props}\n >\n {(renderProps) => (\n <>\n {typeof children === \"function\" ? children(renderProps) : children}\n {ripple}\n </>\n )}\n </ButtonPrimitive>\n );\n}\n\nexport type LinkButtonProps = Omit<LinkPrimitiveProps, \"className\"> &\n VariantProps<typeof buttonVariants> & {\n className?: string;\n };\n\nfunction LinkButton({\n className,\n variant = \"default\",\n size = \"default\",\n onClick,\n children,\n ...props\n}: LinkButtonProps) {\n const { ripple, triggerRipple } = useActionRipple(variant !== \"link\");\n\n return (\n <LinkPrimitive\n data-slot=\"button\"\n data-variant={variant}\n data-size={size}\n className={cn(buttonVariants({ variant, size, className }))}\n onClick={(event) => {\n onClick?.(event);\n triggerRipple();\n }}\n {...props}\n >\n {(renderProps) => (\n <>\n {typeof children === \"function\" ? children(renderProps) : children}\n {ripple}\n </>\n )}\n </LinkPrimitive>\n );\n}\n\nexport { Button, buttonVariants, LinkButton };\n","import type * as React from \"react\";\n\nimport { cn } from \"../../lib/cn\";\n\nexport type CardProps = React.ComponentProps<\"div\"> & { size?: \"default\" | \"sm\" };\n\nfunction Card({ className, size = \"default\", ...props }: CardProps) {\n return (\n <div\n data-slot=\"card\"\n data-size={size}\n className={cn(\n \"group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl border border-border bg-card py-(--card-spacing) text-sm text-card-foreground shadow-sm [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction CardHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card-header\"\n className={cn(\n \"group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-(--card-spacing) has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-(--card-spacing)\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction CardTitle({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card-title\"\n className={cn(\n \"text-base leading-snug font-medium group-data-[size=sm]/card:text-sm\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction CardDescription({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card-description\"\n className={cn(\"text-sm text-muted-foreground\", className)}\n {...props}\n />\n );\n}\n\nfunction CardAction({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card-action\"\n className={cn(\"col-start-2 row-span-2 row-start-1 self-start justify-self-end\", className)}\n {...props}\n />\n );\n}\n\nfunction CardContent({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div data-slot=\"card-content\" className={cn(\"px-(--card-spacing)\", className)} {...props} />\n );\n}\n\nfunction CardFooter({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card-footer\"\n className={cn(\n \"flex items-center rounded-b-xl border-t border-border bg-muted/50 p-(--card-spacing)\",\n className,\n )}\n {...props}\n />\n );\n}\n\nexport { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle };\n","import { Check } from \"lucide-react\";\nimport {\n Checkbox as AriaCheckbox,\n type CheckboxProps as AriaCheckboxProps,\n} from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\n\nexport type CheckboxProps = Omit<AriaCheckboxProps, \"className\"> & { className?: string };\n\nexport function Checkbox({ className, children, ...props }: CheckboxProps) {\n return (\n <AriaCheckbox\n data-slot=\"checkbox\"\n className={cn(\n \"group inline-flex items-center gap-2 text-sm text-foreground data-disabled:cursor-not-allowed data-disabled:opacity-50\",\n className,\n )}\n {...props}\n >\n {(state) => (\n <>\n <span\n aria-hidden=\"true\"\n className=\"grid size-4 place-items-center rounded border border-border bg-background text-primary-foreground transition-colors group-data-selected:border-primary group-data-selected:bg-primary group-data-focus-visible:ring-3 group-data-focus-visible:ring-ring/50\"\n >\n <Check className=\"size-3 opacity-0 transition-opacity group-data-selected:opacity-100 motion-reduce:transition-none\" />\n </span>\n {typeof children === \"function\" ? children(state) : children}\n </>\n )}\n </AriaCheckbox>\n );\n}\n","import { Fragment, useMemo, useState, type ReactNode } from \"react\";\nimport { ComboBox as AriaComboBox, ComboBoxValue, FieldError, Input, Label, ListBox, ListBoxItem, Popover, Text, type ComboBoxProps, type InputProps, type ListBoxItemProps, type ListBoxProps } from \"react-aria-components\";\nimport type { Key } from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\nimport { getTextMatchParts } from \"../../lib/text-match\";\n\nexport const Combobox = AriaComboBox;\nexport { ComboBoxValue as ComboboxValue };\nexport type { ComboBoxProps };\n\nexport function ComboboxInput({ className, ...props }: InputProps) { return <Input data-slot=\"combobox-input\" className={cn(\"h-9 w-full rounded-lg border border-border bg-background px-2.5 text-sm text-foreground outline-none placeholder:text-muted-foreground focus-visible:ring-3 focus-visible:ring-ring/50\", className)} {...props} />; }\nexport function ComboboxContent({ className, ...props }: React.ComponentProps<typeof Popover>) { return <Popover data-slot=\"combobox-content\" className={cn(\"max-h-72 w-(--trigger-width) overflow-hidden rounded-xl border border-border bg-background p-1.5 text-foreground shadow-lg motion-safe:data-entering:animate-ui-surface-in motion-safe:data-exiting:animate-ui-surface-out\", className)} {...props} />; }\nexport function ComboboxList<T extends object>({ className, emptyState, ...props }: ListBoxProps<T> & { emptyState?: React.ReactNode }) { return <ListBox data-slot=\"combobox-list\" className={cn(\"max-h-64 overflow-y-auto\", className)} renderEmptyState={emptyState ? () => emptyState : undefined} {...props} />; }\nexport function ComboboxItem<T extends object>({ className, children, ...props }: ListBoxItemProps<T>) { return <ListBoxItem data-slot=\"combobox-item\" className={cn(\"flex w-full cursor-default items-center justify-between rounded-md px-2 py-2 text-sm outline-none transition-colors data-focused:bg-muted data-focused:text-foreground data-hovered:bg-muted data-disabled:pointer-events-none data-disabled:opacity-50\", className)} {...props}>{children}</ListBoxItem>; }\nexport function HighlightMatch({ text, query, className }: { text: string; query: string; className?: string }) { return <span className={className}>{getTextMatchParts(text, query).map((part, index) => part.match ? <mark key={`${part.text}-${index}`} className=\"rounded bg-accent px-0.5 text-accent-foreground\">{part.text}</mark> : <Fragment key={`${part.text}-${index}`}>{part.text}</Fragment>)}</span>; }\n\nexport type AutocompleteComboboxProps<T extends object> = Omit<ComboBoxProps<T>, \"children\" | \"items\" | \"inputValue\" | \"onInputChange\" | \"selectedKey\" | \"onSelectionChange\" | \"defaultFilter\"> & { items: readonly T[]; getItemKey: (item: T) => Key; getItemLabel: (item: T) => string; renderItem?: (item: T, query: string) => ReactNode; inputValue?: string; onInputChange?: (value: string) => void; selectedKey?: Key | null; onSelectionChange?: (key: Key | null, item?: T) => void; label?: ReactNode; description?: ReactNode; errorMessage?: ReactNode; emptyState?: ReactNode; suggestion?: boolean; placeholder?: string };\n\n/** A safe, keyboard-first autocomplete for users, contracts and other entities. */\nexport function AutocompleteCombobox<T extends object>({ items, getItemKey, getItemLabel, renderItem, inputValue: controlledInputValue, onInputChange, selectedKey, onSelectionChange, label, description, errorMessage, emptyState = <p className=\"px-3 py-7 text-center text-sm text-muted-foreground\">No hay resultados.</p>, suggestion = true, placeholder, className, onKeyDown: _onKeyDown, ...props }: AutocompleteComboboxProps<T>) {\n const [internalInputValue, setInternalInputValue] = useState(\"\");\n const inputValue = controlledInputValue ?? internalInputValue;\n const setInputValue = (value: string) => { setInternalInputValue(value); onInputChange?.(value); };\n const normalizedQuery = inputValue.trim().toLocaleLowerCase();\n const filteredItems = useMemo(() => normalizedQuery ? items.filter((item) => getItemLabel(item).toLocaleLowerCase().includes(normalizedQuery)) : [...items], [getItemLabel, items, normalizedQuery]);\n const suggestedItem = useMemo(() => !suggestion || !normalizedQuery ? undefined : items.find((item) => getItemLabel(item).toLocaleLowerCase().startsWith(normalizedQuery) && getItemLabel(item).length > inputValue.length), [getItemLabel, inputValue.length, items, normalizedQuery, suggestion]);\n const suggestionLabel = suggestedItem ? getItemLabel(suggestedItem) : undefined;\n const acceptSuggestion = () => { if (!suggestedItem || !suggestionLabel) return false; setInputValue(suggestionLabel); onSelectionChange?.(getItemKey(suggestedItem), suggestedItem); return true; };\n const handleKeyDown = (event: Parameters<NonNullable<InputProps[\"onKeyDown\"]>>[0]) => { if ((event.key === \"Tab\" || event.key === \"Enter\") && acceptSuggestion()) event.preventDefault(); };\n return <AriaComboBox<T> {...props} className={cn(\"group/combobox flex w-full flex-col gap-1.5\", className)} items={filteredItems} selectedKey={selectedKey} inputValue={inputValue} onInputChange={setInputValue} onSelectionChange={(key) => { const item = filteredItems.find((candidate) => String(getItemKey(candidate)) === String(key)); if (item) setInputValue(getItemLabel(item)); onSelectionChange?.(key, item); }}>\n {label && <Label className=\"text-sm font-medium text-foreground\">{label}</Label>}\n <div className=\"relative\">{suggestionLabel && <span aria-hidden=\"true\" className=\"pointer-events-none absolute inset-y-0 left-2.5 z-0 flex items-center whitespace-pre text-sm text-muted-foreground/60\"><span className=\"text-transparent\">{inputValue}</span>{suggestionLabel.slice(inputValue.length)}</span>}<ComboboxInput aria-autocomplete={suggestionLabel ? \"both\" : \"list\"} placeholder={placeholder} onKeyDown={handleKeyDown} className=\"relative z-10 bg-transparent\" /></div>\n {description && <Text slot=\"description\" className=\"text-xs text-muted-foreground\">{description}</Text>}\n {errorMessage && <FieldError className=\"text-xs text-destructive\">{errorMessage}</FieldError>}\n <ComboboxContent><ComboboxList<T> emptyState={emptyState}>{(item) => <ComboboxItem id={getItemKey(item)} textValue={getItemLabel(item)}>{renderItem ? renderItem(item, inputValue) : <HighlightMatch text={getItemLabel(item)} query={inputValue} />}</ComboboxItem>}</ComboboxList></ComboboxContent>\n </AriaComboBox>;\n}\n","import { ComboBox as AriaComboBox, Input as AriaInput, ListBox, ListBoxItem, Popover, type ComboBoxProps, type ListBoxItemProps } from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\n\nexport function Command<T extends object>({ className, ...props }: ComboBoxProps<T>) {\n return <AriaComboBox data-slot=\"command\" className={cn(\"w-full\", className)} {...props} />;\n}\n\nexport function CommandInput({ className, ...props }: React.ComponentProps<typeof AriaInput>) {\n return <AriaInput data-slot=\"command-input\" className={cn(\"h-9 w-full border-0 bg-transparent px-3 text-sm text-foreground outline-none placeholder:text-muted-foreground\", className)} {...props} />;\n}\n\nexport function CommandContent({ className, ...props }: React.ComponentProps<typeof Popover>) {\n return <Popover data-slot=\"command-content\" className={cn(\"w-(--trigger-width) overflow-hidden rounded-xl border border-border bg-background p-1.5 shadow-lg outline-none\", className)} {...props} />;\n}\n\nexport function CommandList<T extends object>({ className, ...props }: React.ComponentProps<typeof ListBox<T>>) {\n return <ListBox data-slot=\"command-list\" className={cn(\"max-h-72 overflow-y-auto\", className)} {...props} />;\n}\n\nexport function CommandItem<T extends object>({ className, ...props }: ListBoxItemProps<T>) {\n return <ListBoxItem data-slot=\"command-item\" className={cn(\"flex cursor-default items-center rounded-md px-2 py-1.5 text-sm outline-none data-focused:bg-muted data-disabled:pointer-events-none data-disabled:opacity-50\", className)} {...props} />;\n}\n","import type * as React from \"react\";\nimport { X } from \"lucide-react\";\nimport {\n Dialog as AriaDialog,\n Heading,\n Modal,\n ModalOverlay,\n Text,\n type ModalOverlayProps,\n} from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\nimport { Button } from \"../button/button\";\n\nconst sizeClasses = {\n sm: \"w-[min(calc(100dvw-2rem),24rem)]\",\n md: \"w-[min(calc(100dvw-2rem),28rem)]\",\n lg: \"w-[min(calc(100dvw-2rem),36rem)]\",\n} as const;\n\nexport type ModalDialogProps = Omit<\n ModalOverlayProps,\n \"children\" | \"className\" | \"isOpen\" | \"onOpenChange\"\n> & {\n open: boolean;\n onOpenChange: (open: boolean) => void;\n title: React.ReactNode;\n description?: React.ReactNode;\n children?: React.ReactNode;\n footer?: React.ReactNode;\n size?: keyof typeof sizeClasses;\n showCloseButton?: boolean;\n className?: string;\n footerClassName?: string;\n};\n\n/**\n * Accessible modal with a consistent title, optional description, body and footer.\n * Its width is self-contained so consumer CSS cannot override it with max-width utilities.\n */\nexport function ModalDialog({\n open,\n onOpenChange,\n title,\n description,\n children,\n footer,\n size = \"sm\",\n showCloseButton = true,\n className,\n footerClassName,\n ...props\n}: ModalDialogProps) {\n const layoutClass = children\n ? footer\n ? \"grid-rows-[auto_minmax(0,1fr)_auto]\"\n : \"grid-rows-[auto_minmax(0,1fr)]\"\n : \"grid-rows-[auto_auto]\";\n\n return (\n <ModalOverlay\n isOpen={open}\n onOpenChange={onOpenChange}\n className=\"fixed inset-0 z-50 grid place-items-center bg-black/20 p-4 backdrop-blur-[1px] motion-safe:data-entering:animate-ui-overlay-in motion-safe:data-exiting:animate-ui-overlay-out\"\n {...props}\n >\n <Modal\n className={cn(\n \"max-h-[calc(100dvh-2rem)] outline-none motion-safe:data-entering:animate-ui-surface-in motion-safe:data-exiting:animate-ui-surface-out\",\n sizeClasses[size],\n className,\n )}\n >\n <AriaDialog\n className={cn(\n \"grid max-h-[calc(100dvh-2rem)] overflow-hidden rounded-xl bg-background text-foreground shadow-xl outline-none\",\n layoutClass,\n )}\n >\n {({ close }) => (\n <>\n <header data-slot=\"modal-dialog-header\" className=\"flex items-start gap-3 border-b border-border px-5 py-4\">\n <div className=\"min-w-0 flex-1\">\n <Heading slot=\"title\" className=\"font-heading text-base leading-none font-medium\">\n {title}\n </Heading>\n {description ? (\n <Text slot=\"description\" className=\"mt-2 text-sm text-muted-foreground\">\n {description}\n </Text>\n ) : null}\n </div>\n {showCloseButton ? (\n <Button\n aria-label=\"Cerrar diálogo\"\n variant=\"ghost\"\n size=\"icon\"\n className=\"-mr-2 -mt-1\"\n onPress={close}\n >\n <X aria-hidden=\"true\" className=\"size-4\" />\n </Button>\n ) : null}\n </header>\n {children ? (\n <div data-slot=\"modal-dialog-body\" className=\"min-h-0 overflow-y-auto px-5 py-4\">\n {children}\n </div>\n ) : null}\n {footer ? (\n <footer\n data-slot=\"modal-dialog-footer\"\n className={cn(\n \"flex flex-col-reverse gap-2 border-t border-border bg-muted/50 px-5 py-4 sm:flex-row sm:flex-wrap sm:justify-end\",\n footerClassName,\n )}\n >\n {footer}\n </footer>\n ) : null}\n </>\n )}\n </AriaDialog>\n </Modal>\n </ModalOverlay>\n );\n}\n","import type * as React from \"react\";\nimport { Button } from \"../button/button\";\nimport { ModalDialog } from \"../modal-dialog/modal-dialog\";\n\nexport type ConfirmDialogProps = {\n open: boolean;\n onOpenChange: (open: boolean) => void;\n title: string;\n description?: React.ReactNode;\n confirmLabel?: string;\n cancelLabel?: string;\n destructive?: boolean;\n pending?: boolean;\n onConfirm: () => void;\n};\n\n/** Controlled confirmation dialog for irreversible actions. */\nexport function ConfirmDialog({\n open,\n onOpenChange,\n title,\n description,\n confirmLabel = \"Confirmar\",\n cancelLabel = \"Cancelar\",\n destructive = false,\n pending = false,\n onConfirm,\n}: ConfirmDialogProps) {\n return (\n <ModalDialog\n open={open}\n onOpenChange={onOpenChange}\n title={title}\n description={description}\n showCloseButton={false}\n footer={\n <>\n <Button variant=\"outline\" isDisabled={pending} onPress={() => onOpenChange(false)}>\n {cancelLabel}\n </Button>\n <Button variant={destructive ? \"destructive\" : \"default\"} isDisabled={pending} onPress={onConfirm}>\n {confirmLabel}\n </Button>\n </>\n }\n />\n );\n}\n","\"use client\";\n\nimport { ChevronDown, ShieldAlert } from \"lucide-react\";\nimport type * as React from \"react\";\nimport {\n Button as DisclosureButton,\n Disclosure,\n DisclosurePanel,\n Heading,\n} from \"react-aria-components\";\n\nimport { cn } from \"../../lib/cn\";\nimport { Card, CardContent } from \"../card/card\";\n\nexport type DangerZoneProps = {\n children: React.ReactNode;\n className?: string;\n defaultOpen?: boolean;\n description?: string;\n title?: string;\n};\n\n/** Collapsed-by-default container for actions that are hard to reverse. */\nexport function DangerZone({\n title = \"Zona de peligro\",\n description = \"Acciones irreversibles. Ábrela solo si estás seguro.\",\n defaultOpen = false,\n className,\n children,\n}: DangerZoneProps) {\n return (\n <Disclosure defaultExpanded={defaultOpen}>\n <Card className={cn(\"border-destructive/30\", className)}>\n <Heading className=\"flex\">\n <DisclosureButton\n slot=\"trigger\"\n data-slot=\"danger-zone-trigger\"\n className=\"group/danger flex w-full items-center gap-3 px-4 text-left outline-none focus-visible:ring-3 focus-visible:ring-ring/50\"\n >\n <ShieldAlert className=\"size-4 shrink-0 text-destructive\" />\n <span className=\"flex flex-1 flex-col gap-0.5\">\n <span className=\"font-heading text-base leading-snug font-medium text-destructive\">{title}</span>\n <span className=\"text-xs text-muted-foreground\">{description}</span>\n </span>\n <ChevronDown className=\"size-4 shrink-0 text-muted-foreground transition-transform group-aria-expanded/danger:rotate-180\" />\n </DisclosureButton>\n </Heading>\n <DisclosurePanel data-slot=\"danger-zone-content\">\n <CardContent>{children}</CardContent>\n </DisclosurePanel>\n </Card>\n </Disclosure>\n );\n}","\"use client\";\n\nimport { XIcon } from \"lucide-react\";\nimport * as React from \"react\";\nimport {\n Dialog as AriaDialog,\n Heading,\n Modal,\n ModalOverlay,\n type ModalOverlayProps,\n Text,\n} from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\nimport { Button } from \"../button/button\";\n\ntype DialogContextValue = { open: boolean; setOpen: (open: boolean) => void };\ntype SlottableProps = React.HTMLAttributes<HTMLElement> & { \"data-slot\"?: string };\nconst DialogContext = React.createContext<DialogContextValue | null>(null);\n\nfunction useDialogContext() {\n const context = React.useContext(DialogContext);\n if (!context) throw new Error(\"Dialog components must be rendered within Dialog.\");\n return context;\n}\n\ntype DialogProps = {\n children: React.ReactNode;\n defaultOpen?: boolean;\n onOpenChange?: (open: boolean) => void;\n open?: boolean;\n};\n\nfunction Dialog({ children, defaultOpen = false, onOpenChange, open: controlledOpen }: DialogProps) {\n const [uncontrolledOpen, setUncontrolledOpen] = React.useState(defaultOpen);\n const open = controlledOpen ?? uncontrolledOpen;\n const setOpen = React.useCallback(\n (nextOpen: boolean) => {\n if (controlledOpen === undefined) setUncontrolledOpen(nextOpen);\n onOpenChange?.(nextOpen);\n },\n [controlledOpen, onOpenChange],\n );\n\n return <DialogContext.Provider value={{ open, setOpen }}>{children}</DialogContext.Provider>;\n}\n\ntype DialogTriggerProps = Omit<React.ComponentProps<typeof Button>, \"onPress\"> & { asChild?: boolean };\n\nfunction DialogTrigger({ asChild = false, children, onClick, ...props }: DialogTriggerProps) {\n const { setOpen } = useDialogContext();\n const handleClick: React.MouseEventHandler<HTMLElement> = (event) => {\n onClick?.(event as React.MouseEvent<HTMLButtonElement>);\n if (!event.defaultPrevented) setOpen(true);\n };\n\n if (asChild && React.isValidElement<SlottableProps>(children)) {\n const child = children as React.ReactElement<SlottableProps>;\n return React.cloneElement(child, {\n ...(props as React.HTMLAttributes<HTMLElement>),\n \"data-slot\": \"dialog-trigger\",\n onClick: (event: React.MouseEvent<HTMLElement>) => {\n child.props.onClick?.(event);\n handleClick(event);\n },\n });\n }\n\n return (\n <Button data-slot=\"dialog-trigger\" onPress={() => setOpen(true)} {...props}>\n {children}\n </Button>\n );\n}\n\nfunction DialogPortal({ children }: { children?: React.ReactNode }) {\n return <>{children}</>;\n}\n\ntype DialogOverlayProps = Omit<ModalOverlayProps, \"children\" | \"className\" | \"isOpen\" | \"onOpenChange\"> & {\n children?: React.ReactNode;\n className?: string;\n};\n\nfunction DialogOverlay({ children, className, ...props }: DialogOverlayProps) {\n const { open, setOpen } = useDialogContext();\n if (!open) return null;\n\n return (\n <ModalOverlay\n data-slot=\"dialog-overlay\"\n isDismissable\n isOpen={open}\n onOpenChange={setOpen}\n className={cn(\n \"fixed inset-0 isolate z-50 grid place-items-center bg-black/10 p-4 duration-100 supports-backdrop-filter:backdrop-blur-xs data-entering:animate-ui-overlay-in data-exiting:animate-ui-overlay-out\",\n className,\n )}\n {...props}\n >\n {children}\n </ModalOverlay>\n );\n}\n\ntype DialogContentProps = Omit<React.ComponentProps<typeof AriaDialog>, \"children\" | \"className\"> & {\n children?: React.ReactNode;\n className?: string;\n onOverlayClick?: React.MouseEventHandler<HTMLDivElement>;\n showCloseButton?: boolean;\n};\n\nfunction DialogContent({\n children,\n className,\n onOverlayClick,\n showCloseButton = true,\n ...props\n}: DialogContentProps) {\n const { setOpen } = useDialogContext();\n\n return (\n <DialogPortal>\n <DialogOverlay\n onClick={(event) => {\n if (event.target === event.currentTarget) onOverlayClick?.(event);\n }}\n >\n <Modal\n className={cn(\n \"w-full max-w-[calc(100%-2rem)] max-h-[calc(100dvh-2rem)] outline-none sm:max-w-sm\",\n className,\n )}\n >\n <AriaDialog\n data-slot=\"dialog-content\"\n className={cn(\n \"grid max-h-[calc(100dvh-2rem)] gap-4 overflow-y-auto rounded-xl bg-background p-4 text-sm text-foreground ring-1 ring-foreground/10 outline-none\",\n className,\n )}\n {...props}\n >\n {children}\n {showCloseButton ? (\n <Button\n aria-label=\"Cerrar diálogo\"\n data-slot=\"dialog-close\"\n variant=\"ghost\"\n className=\"absolute top-2 right-2\"\n size=\"icon-sm\"\n onPress={() => setOpen(false)}\n >\n <XIcon />\n </Button>\n ) : null}\n </AriaDialog>\n </Modal>\n </DialogOverlay>\n </DialogPortal>\n );\n}\n\ntype DialogCloseProps = Omit<React.ComponentProps<typeof Button>, \"onPress\"> & { asChild?: boolean };\n\nfunction DialogClose({ asChild = false, children, onClick, ...props }: DialogCloseProps) {\n const { setOpen } = useDialogContext();\n if (asChild && React.isValidElement<SlottableProps>(children)) {\n const child = children as React.ReactElement<SlottableProps>;\n return React.cloneElement(child, {\n ...(props as React.HTMLAttributes<HTMLElement>),\n \"data-slot\": \"dialog-close\",\n onClick: (event: React.MouseEvent<HTMLElement>) => {\n child.props.onClick?.(event);\n if (!event.defaultPrevented) setOpen(false);\n },\n });\n }\n\n return (\n <Button data-slot=\"dialog-close\" onPress={() => setOpen(false)} {...props}>\n {children}\n </Button>\n );\n}\n\nfunction DialogHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return <div data-slot=\"dialog-header\" className={cn(\"flex flex-col gap-2\", className)} {...props} />;\n}\n\nfunction DialogFooter({ className, showCloseButton = false, children, ...props }: React.ComponentProps<\"div\"> & { showCloseButton?: boolean }) {\n return (\n <div data-slot=\"dialog-footer\" className={cn(\"-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:flex-wrap sm:justify-end\", className)} {...props}>\n {children}\n {showCloseButton ? <DialogClose variant=\"outline\">Cerrar</DialogClose> : null}\n </div>\n );\n}\n\nfunction DialogTitle({ className, ...props }: Omit<React.ComponentProps<typeof Heading>, \"slot\">) {\n return <Heading slot=\"title\" data-slot=\"dialog-title\" className={cn(\"font-heading text-base leading-none font-medium\", className)} {...props} />;\n}\n\nfunction DialogDescription({ className, ...props }: Omit<React.ComponentProps<typeof Text>, \"slot\">) {\n return <Text slot=\"description\" data-slot=\"dialog-description\" className={cn(\"text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground\", className)} {...props} />;\n}\n\nexport { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger };\n","\"use client\";\n\nimport { FileText, Image } from \"lucide-react\";\n\nexport type DocPreviewProps = {\n /** Signed storage URL, generated by the consuming application. */\n mimeType: string | null;\n name: string;\n url: string | null;\n};\n\nexport function DocPreview({ url, mimeType, name }: DocPreviewProps) {\n if (!url) return <Fallback mimeType={mimeType} reason=\"no-url\" />;\n\n if (mimeType === \"application/pdf\" || mimeType === \"text/plain\" || mimeType === \"text/csv\") {\n return (\n <iframe\n src={url}\n title={name}\n className=\"w-full rounded-sm border-0\"\n style={{ height: \"75vh\", minHeight: 400 }}\n />\n );\n }\n\n if (mimeType?.startsWith(\"image/\")) {\n return (\n <div className=\"flex justify-center rounded-sm bg-muted/30 p-6\">\n {/* biome-ignore lint/performance/noImgElement: preview URLs are supplied by consuming applications. */}\n <img src={url} alt={name} className=\"max-h-[75vh] max-w-full rounded object-contain\" />\n </div>\n );\n }\n\n return <Fallback mimeType={mimeType} reason=\"unsupported\" />;\n}\n\nfunction Fallback({ mimeType, reason }: { mimeType: string | null; reason: \"no-url\" | \"unsupported\" }) {\n const Icon = mimeType?.startsWith(\"image/\") ? Image : FileText;\n const message =\n reason === \"no-url\"\n ? \"No se pudo generar la URL de preview.\"\n : \"Preview no disponible para este tipo de archivo.\";\n\n return (\n <div className=\"flex flex-col items-center justify-center gap-2 py-14 text-muted-foreground\">\n <Icon className=\"size-9 opacity-30\" />\n <p className=\"text-sm\">{message}</p>\n {mimeType ? <p className=\"font-mono text-xs opacity-50\">{mimeType}</p> : null}\n <p className=\"text-xs opacity-50\">Usa el botón Descargar para abrir el archivo.</p>\n </div>\n );\n}","import { Dialog as AriaDialog, Modal, ModalOverlay, type ModalOverlayProps } from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\n\nexport interface DrawerProps extends Omit<ModalOverlayProps, \"children\" | \"className\"> { children: React.ReactNode; side?: \"left\" | \"right\" | \"bottom\"; className?: string; }\n\nconst sideStyles = { left: \"inset-y-0 left-0 h-full w-[min(22rem,calc(100%-2rem))] data-entering:animate-ui-surface-in\", right: \"inset-y-0 right-0 h-full w-[min(22rem,calc(100%-2rem))] data-entering:animate-ui-surface-in\", bottom: \"inset-x-0 bottom-0 max-h-[85vh] w-full data-entering:animate-ui-surface-in\" };\n\nexport function Drawer({ children, side = \"right\", className, ...props }: DrawerProps) {\n return <ModalOverlay isDismissable className=\"fixed inset-0 z-50 bg-black/20 backdrop-blur-[1px] motion-safe:data-entering:animate-ui-overlay-in motion-safe:data-exiting:animate-ui-overlay-out\" {...props}><Modal className={cn(\"absolute grid gap-4 overflow-y-auto rounded-xl border border-border bg-background p-5 text-foreground shadow-xl outline-none\", sideStyles[side], className)}><AriaDialog data-slot=\"drawer\" className=\"outline-none\">{children}</AriaDialog></Modal></ModalOverlay>;\n}\n\nexport function DrawerHeader({ className, ...props }: React.ComponentProps<\"div\">) { return <div data-slot=\"drawer-header\" className={cn(\"flex flex-col gap-1.5\", className)} {...props} />; }\nexport function DrawerFooter({ className, ...props }: React.ComponentProps<\"div\">) { return <div data-slot=\"drawer-footer\" className={cn(\"mt-auto flex flex-col-reverse gap-2 pt-4 sm:flex-row sm:justify-end\", className)} {...props} />; }\nexport function DrawerTitle({ className, ...props }: React.ComponentProps<\"h2\">) { return <h2 data-slot=\"drawer-title\" className={cn(\"text-base font-semibold\", className)} {...props} />; }\nexport function DrawerDescription({ className, ...props }: React.ComponentProps<\"p\">) { return <p data-slot=\"drawer-description\" className={cn(\"text-sm text-muted-foreground\", className)} {...props} />; }\n","\"use client\"\n\nimport * as React from \"react\"\nimport { cva } from \"class-variance-authority\"\nimport { CheckIcon, ChevronRightIcon } from \"lucide-react\"\nimport {\n composeRenderProps,\n Header as HeaderPrimitive,\n MenuItem as MenuItemPrimitive,\n Menu as MenuPrimitive,\n MenuSection as MenuSectionPrimitive,\n MenuTrigger as MenuTriggerPrimitive,\n Popover as PopoverPrimitive,\n Separator as SeparatorPrimitive,\n SubmenuTrigger as SubmenuTriggerPrimitive,\n type MenuItemProps as MenuItemPrimitiveProps,\n type MenuSectionProps as MenuSectionPrimitiveProps,\n} from \"react-aria-components\"\nimport { cn } from \"../../lib/cn\"\n\n\nfunction DropdownMenuTrigger({\n ...props\n}: React.ComponentProps<typeof MenuTriggerPrimitive>) {\n return <MenuTriggerPrimitive data-slot=\"dropdown-menu-trigger\" {...props} />\n}\n\nfunction DropdownMenu({\n \"data-slot\": dataSlot = \"dropdown-menu-content\",\n placement = \"bottom start\",\n offset = 4,\n crossOffset = 0,\n className,\n children,\n ...props\n}: Omit<\n React.ComponentProps<typeof MenuPrimitive<object>>,\n \"children\" | \"className\"\n> &\n Pick<\n React.ComponentProps<typeof PopoverPrimitive>,\n \"placement\" | \"offset\" | \"crossOffset\"\n > & {\n \"data-slot\"?: string\n className?: string\n children?: React.ReactNode\n }) {\n return (\n <PopoverPrimitive\n data-slot={dataSlot}\n placement={placement}\n offset={offset}\n crossOffset={crossOffset}\n className={cn(\"z-50 w-(--trigger-width) min-w-32 origin-(--trigger-anchor-point) overflow-x-hidden overflow-y-auto rounded-lg border border-border bg-popover p-1 text-popover-foreground shadow-lg outline-none motion-safe:data-entering:animate-ui-surface-in motion-safe:data-exiting:animate-ui-surface-out\", className)}\n >\n <MenuPrimitive\n className=\"max-h-[inherit] overflow-x-hidden overflow-y-auto outline-hidden\"\n {...props}\n >\n {children}\n </MenuPrimitive>\n </PopoverPrimitive>\n )\n}\n\nfunction DropdownMenuGroup({\n ...props\n}: Omit<MenuSectionPrimitiveProps<object>, \"children\"> & {\n children?: React.ReactNode\n}) {\n return <MenuSectionPrimitive data-slot=\"dropdown-menu-group\" {...props} />\n}\n\nfunction DropdownMenuLabel({\n className,\n inset,\n ...props\n}: React.ComponentProps<typeof HeaderPrimitive> & {\n inset?: boolean\n}) {\n return (\n <HeaderPrimitive\n data-slot=\"dropdown-menu-label\"\n data-inset={inset}\n className={cn(\n \"px-1.5 py-1 text-xs font-medium text-muted-foreground data-inset:pl-7\",\n className\n )}\n {...props}\n />\n )\n}\n\nconst dropdownMenuItemVariants = cva(\n \"group/dropdown-menu-item relative flex cursor-default items-center outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n {\n variants: {\n selectionMode: {\n none: \"gap-1.5 rounded-md px-1.5 py-1 text-sm focus:bg-muted focus:text-foreground not-data-[variant=destructive]:focus:**:text-foreground data-inset:pl-7 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive\",\n single:\n \"gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm focus:bg-muted focus:text-foreground focus:**:text-foreground data-inset:pl-7 [&_svg:not([class*='size-'])]:size-4\",\n multiple:\n \"gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm focus:bg-muted focus:text-foreground focus:**:text-foreground data-inset:pl-7 [&_svg:not([class*='size-'])]:size-4\",\n },\n },\n }\n)\n\nfunction DropdownMenuItem({\n className,\n inset,\n variant = \"default\",\n children,\n ...props\n}: MenuItemPrimitiveProps<object> & {\n inset?: boolean\n variant?: \"default\" | \"destructive\"\n}) {\n return (\n <MenuItemPrimitive\n data-slot=\"dropdown-menu-item\"\n data-inset={inset}\n data-variant={variant}\n textValue={typeof children === \"string\" ? children : props.textValue}\n className={composeRenderProps(className, (className, { selectionMode }) =>\n cn(dropdownMenuItemVariants({ selectionMode }), className)\n )}\n {...props}\n >\n {composeRenderProps(\n children,\n (children, { isSelected, selectionMode }) => (\n <>\n {selectionMode !== \"none\" ? (\n <span\n className=\"pointer-events-none absolute right-2 flex items-center justify-center\"\n data-slot={\n selectionMode === \"single\"\n ? \"dropdown-menu-radio-item-indicator\"\n : \"dropdown-menu-checkbox-item-indicator\"\n }\n >\n {isSelected ? <CheckIcon /> : null}\n </span>\n ) : null}\n {children}\n </>\n )\n )}\n </MenuItemPrimitive>\n )\n}\n\nfunction DropdownMenuSub({\n ...props\n}: React.ComponentProps<typeof SubmenuTriggerPrimitive>) {\n return <SubmenuTriggerPrimitive data-slot=\"dropdown-menu-sub\" {...props} />\n}\n\nfunction DropdownMenuSubTrigger({\n className,\n inset,\n children,\n ...props\n}: MenuItemPrimitiveProps<object> & {\n inset?: boolean\n}) {\n return (\n <MenuItemPrimitive\n data-slot=\"dropdown-menu-sub-trigger\"\n data-inset={inset}\n textValue={typeof children === \"string\" ? children : props.textValue}\n className={cn(\n \"flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none focus:bg-muted focus:text-foreground focus:**:text-foreground data-inset:pl-7 data-open:bg-muted data-open:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n className\n )}\n {...props}\n >\n {composeRenderProps(children, (children) => (\n <>\n {children}\n <ChevronRightIcon className=\"cn-rtl-flip ml-auto\" />\n </>\n ))}\n </MenuItemPrimitive>\n )\n}\n\nfunction DropdownMenuSubContent({\n placement = \"end top\",\n crossOffset = -3,\n offset = 0,\n className,\n ...props\n}: React.ComponentProps<typeof DropdownMenu>) {\n return (\n <DropdownMenu\n data-slot=\"dropdown-menu-sub-content\"\n className={cn(\"w-auto min-w-24 rounded-lg border border-border bg-popover p-1 text-popover-foreground shadow-lg\", className)}\n placement={placement}\n crossOffset={crossOffset}\n offset={offset}\n {...props}\n />\n )\n}\n\nfunction DropdownMenuSeparator({\n className,\n ...props\n}: React.ComponentProps<typeof SeparatorPrimitive>) {\n return (\n <SeparatorPrimitive\n data-slot=\"dropdown-menu-separator\"\n className={cn(\"-mx-1 my-1 h-px bg-border\", className)}\n {...props}\n />\n )\n}\n\nfunction DropdownMenuShortcut({\n className,\n ...props\n}: React.ComponentProps<\"span\">) {\n return (\n <span\n data-slot=\"dropdown-menu-shortcut\"\n className={cn(\n \"ml-auto text-xs tracking-widest text-muted-foreground group-focus/dropdown-menu-item:text-foreground\",\n className\n )}\n {...props}\n />\n )\n}\n\nexport {\n DropdownMenuTrigger,\n DropdownMenu,\n DropdownMenuGroup,\n DropdownMenuLabel,\n DropdownMenuItem,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuSub,\n DropdownMenuSubTrigger,\n DropdownMenuSubContent,\n}\n","import { cva, type VariantProps } from \"class-variance-authority\";\nimport type * as React from \"react\";\nimport { cn } from \"../../lib/cn\";\n\nexport function EmptyState({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"empty-state\"\n className={cn(\n \"flex min-h-44 w-full min-w-0 flex-1 flex-col items-center justify-center gap-4 rounded-xl border border-dashed border-border p-6 text-center text-balance\",\n className,\n )}\n {...props}\n />\n );\n}\n\nexport function EmptyStateHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"empty-state-header\"\n className={cn(\"flex max-w-sm flex-col items-center gap-2\", className)}\n {...props}\n />\n );\n}\n\nexport const emptyStateMediaVariants = cva(\n \"mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n {\n variants: {\n variant: {\n default: \"bg-transparent\",\n icon: \"size-8 rounded-lg bg-muted text-foreground [&_svg:not([class*='size-'])]:size-4\",\n },\n },\n defaultVariants: { variant: \"default\" },\n },\n);\n\nexport function EmptyStateMedia({\n className,\n variant = \"default\",\n ...props\n}: React.ComponentProps<\"div\"> & VariantProps<typeof emptyStateMediaVariants>) {\n return (\n <div\n data-slot=\"empty-state-media\"\n data-variant={variant}\n className={cn(emptyStateMediaVariants({ variant }), className)}\n {...props}\n />\n );\n}\n\nexport function EmptyStateTitle({ className, ...props }: React.ComponentProps<\"h3\">) {\n return (\n <h3\n data-slot=\"empty-state-title\"\n className={cn(\"text-sm font-medium tracking-tight text-foreground\", className)}\n {...props}\n />\n );\n}\n\nexport function EmptyStateDescription({ className, ...props }: React.ComponentProps<\"p\">) {\n return (\n <p\n data-slot=\"empty-state-description\"\n className={cn(\n \"max-w-sm text-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary\",\n className,\n )}\n {...props}\n />\n );\n}\n\nexport function EmptyStateContent({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"empty-state-content\"\n className={cn(\n \"flex w-full max-w-sm min-w-0 flex-col items-center gap-2.5 text-sm\",\n className,\n )}\n {...props}\n />\n );\n}\n","import { cva, type VariantProps } from \"class-variance-authority\";\nimport type * as React from \"react\";\nimport { cn } from \"../../lib/cn\";\nimport { Label } from \"../label/label\";\nimport { Separator } from \"../separator/separator\";\n\nexport function FieldSet({ className, ...props }: React.ComponentProps<\"fieldset\">) {\n return (\n <fieldset data-slot=\"field-set\" className={cn(\"flex flex-col gap-4\", className)} {...props} />\n );\n}\n\nexport function FieldLegend({\n className,\n variant = \"legend\",\n ...props\n}: React.ComponentProps<\"legend\"> & { variant?: \"legend\" | \"label\" }) {\n return (\n <legend\n data-slot=\"field-legend\"\n data-variant={variant}\n className={cn(\n \"mb-1.5 font-medium data-[variant=label]:text-sm data-[variant=legend]:text-base\",\n className,\n )}\n {...props}\n />\n );\n}\n\nexport function FieldGroup({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"field-group\"\n className={cn(\n \"group/field-group @container/field-group flex w-full flex-col gap-5\",\n className,\n )}\n {...props}\n />\n );\n}\n\nexport const fieldVariants = cva(\n \"group/field flex w-full gap-2 data-[invalid=true]:text-destructive\",\n {\n variants: {\n orientation: {\n vertical: \"flex-col *:w-full [&>.sr-only]:w-auto\",\n horizontal:\n \"flex-row items-center has-[>[data-slot=field-content]]:items-start *:data-[slot=field-label]:flex-auto\",\n responsive:\n \"flex-col *:w-full @md/field-group:flex-row @md/field-group:items-center @md/field-group:*:w-auto @md/field-group:*:data-[slot=field-label]:flex-auto\",\n },\n },\n defaultVariants: { orientation: \"vertical\" },\n },\n);\n\nexport type FieldProps = React.ComponentProps<\"div\"> & VariantProps<typeof fieldVariants>;\n\nexport function Field({ className, orientation = \"vertical\", ...props }: FieldProps) {\n return (\n // biome-ignore lint/a11y/useSemanticElements: FieldSet provides native fieldset semantics when they are appropriate.\n <div\n role=\"group\"\n data-slot=\"field\"\n data-orientation={orientation}\n className={cn(fieldVariants({ orientation }), className)}\n {...props}\n />\n );\n}\n\nexport function FieldContent({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"field-content\"\n className={cn(\"flex flex-1 flex-col gap-0.5 leading-snug\", className)}\n {...props}\n />\n );\n}\n\nexport function FieldLabel({ className, ...props }: React.ComponentProps<typeof Label>) {\n return (\n <Label\n data-slot=\"field-label\"\n className={cn(\n \"flex w-fit gap-2 leading-snug text-foreground group-data-[disabled=true]/field:opacity-50\",\n className,\n )}\n {...props}\n />\n );\n}\n\nexport function FieldTitle({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"field-title\"\n className={cn(\"flex w-fit items-center gap-2 text-sm font-medium\", className)}\n {...props}\n />\n );\n}\n\nexport function FieldDescription({ className, ...props }: React.ComponentProps<\"p\">) {\n return (\n <p\n data-slot=\"field-description\"\n className={cn(\n \"text-left text-sm leading-normal text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary\",\n className,\n )}\n {...props}\n />\n );\n}\n\nexport function FieldSeparator({ className, children, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"field-separator\"\n data-content={Boolean(children) || undefined}\n className={cn(\"relative -my-2 h-5 text-sm\", className)}\n {...props}\n >\n <Separator className=\"absolute inset-0 top-1/2\" />\n {children ? (\n <span\n data-slot=\"field-separator-content\"\n className=\"relative mx-auto block w-fit bg-background px-2 text-muted-foreground\"\n >\n {children}\n </span>\n ) : null}\n </div>\n );\n}\n\nexport type FieldErrorProps = React.ComponentProps<\"div\"> & {\n errors?: Array<{ message?: string } | undefined>;\n};\n\nexport function FieldError({ className, children, errors, ...props }: FieldErrorProps) {\n const messages = [...new Set(errors?.flatMap((error) => error?.message ?? []) ?? [])];\n const content =\n children ??\n (messages.length === 1 ? (\n messages[0]\n ) : messages.length > 1 ? (\n <ul className=\"ml-4 list-disc\">\n {messages.map((message) => (\n <li key={message}>{message}</li>\n ))}\n </ul>\n ) : null);\n if (!content) return null;\n return (\n <div\n role=\"alert\"\n data-slot=\"field-error\"\n className={cn(\"text-sm text-destructive\", className)}\n {...props}\n >\n {content}\n </div>\n );\n}\n","import { forwardRef, type ComponentPropsWithRef } from \"react\";\nimport { Label as LabelPrimitive } from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\n\nexport const Label = forwardRef<HTMLLabelElement, ComponentPropsWithRef<typeof LabelPrimitive>>(function Label({ className, ...props }, ref) {\n return <LabelPrimitive ref={ref} data-slot=\"label\" className={cn(\"flex items-center gap-2 text-sm font-medium leading-none select-none\", className)} {...props} />;\n});\n\nexport type LabelProps = ComponentPropsWithRef<typeof Label>;\n","import { useCallback, useEffect, useRef, useState } from \"react\";\nimport { CheckCircle, LoaderCircle, CircleAlert } from \"lucide-react\";\nimport { cn } from \"../../lib/cn\";\n\nexport type FormFeedbackState = { status: \"idle\" } | { status: \"pending\" } | { status: \"success\"; message?: string } | { status: \"error\"; message: string };\n\nexport function useFormFeedback(options?: { successResetMs?: number }) {\n const resetMs = options?.successResetMs ?? 2500;\n const [state, setState] = useState<FormFeedbackState>({ status: \"idle\" });\n const timer = useRef<ReturnType<typeof setTimeout> | null>(null);\n const clearTimer = useCallback(() => { if (timer.current) clearTimeout(timer.current); timer.current = null; }, []);\n useEffect(() => () => clearTimer(), [clearTimer]);\n const setPending = useCallback(() => { clearTimer(); setState({ status: \"pending\" }); }, [clearTimer]);\n const setSuccess = useCallback((message?: string) => { clearTimer(); setState({ status: \"success\", message }); if (resetMs > 0) timer.current = setTimeout(() => setState({ status: \"idle\" }), resetMs); }, [clearTimer, resetMs]);\n const setError = useCallback((message: string) => { clearTimer(); setState({ status: \"error\", message }); }, [clearTimer]);\n const reset = useCallback(() => { clearTimer(); setState({ status: \"idle\" }); }, [clearTimer]);\n return { state, pending: state.status === \"pending\", setPending, setSuccess, setError, reset };\n}\n\nexport interface FormFeedbackProps { state: FormFeedbackState; className?: string; pendingLabel?: string; successLabel?: string; }\n\nexport function FormFeedback({ state, className, pendingLabel = \"Guardando…\", successLabel = \"Guardado\" }: FormFeedbackProps) {\n if (state.status === \"idle\") return <span aria-hidden=\"true\" className={cn(\"inline-flex h-5 items-center\", className)} />;\n const error = state.status === \"error\";\n const success = state.status === \"success\";\n return <span role={error ? \"alert\" : \"status\"} aria-live=\"polite\" className={cn(\"inline-flex h-5 items-center gap-1.5 text-xs\", error && \"text-destructive\", success && \"text-success\", state.status === \"pending\" && \"text-muted-foreground\", className)}>\n {state.status === \"pending\" && <LoaderCircle aria-hidden=\"true\" className=\"size-3.5 animate-spin\" />}\n {success && <CheckCircle aria-hidden=\"true\" className=\"size-3.5\" />}\n {error && <CircleAlert aria-hidden=\"true\" className=\"size-3.5\" />}\n <span>{state.status === \"pending\" ? pendingLabel : success ? state.message ?? successLabel : state.message}</span>\n </span>;\n}\n","import type { ReactNode } from \"react\";\nimport { cn } from \"../../lib/cn\";\n\nexport interface FormRowProps {\n label: ReactNode;\n htmlFor: string;\n required?: boolean;\n hint?: ReactNode;\n error?: ReactNode;\n className?: string;\n children: ReactNode;\n}\n\nexport function FormRow({ label, htmlFor, required, hint, error, className, children }: FormRowProps) {\n const hintId = hint ? `${htmlFor}-hint` : undefined;\n const errorId = error ? `${htmlFor}-error` : undefined;\n return <div data-slot=\"form-row\" className={cn(\"flex flex-col gap-1.5\", className)}>\n <label htmlFor={htmlFor} className=\"text-sm font-medium text-foreground\">{label}{required && <><span aria-hidden=\"true\" className=\"ml-0.5 text-destructive\">*</span><span className=\"sr-only\"> (obligatorio)</span></>}</label>\n {children}\n {hint && <p id={hintId} className=\"text-xs text-muted-foreground\">{hint}</p>}\n {error && <p id={errorId} role=\"alert\" className=\"text-xs font-medium text-destructive\">{error}</p>}\n </div>;\n}\n","import type { ReactNode } from \"react\";\nimport { Link } from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\nimport { Button, type ButtonProps, buttonVariants } from \"../button/button\";\nimport { Tooltip, TooltipTrigger } from \"../tooltip/tooltip\";\n\nexport type IconButtonProps = Omit<ButtonProps, \"children\"> & {\n\t/** Accessible name and text shown in the tooltip. */\n\tlabel: string;\n\t/** Optional href for rendering the action as an accessible link. */\n\thref?: string;\n\tchildren?: ReactNode;\n};\n\n/** A consistently sized icon-only action with an accessible tooltip. */\nexport function IconButton({\n\tlabel,\n\tchildren,\n\thref,\n\tclassName,\n\tvariant,\n\t...props\n}: IconButtonProps) {\n\tconst linkClassName = cn(\n\t\tbuttonVariants({ variant, size: \"icon\" }),\n\t\tclassName,\n\t);\n\n\treturn (\n\t\t<TooltipTrigger>\n\t\t\t{href ? (\n\t\t\t\t<Link\n\t\t\t\t\tdata-slot=\"icon-button\"\n\t\t\t\t\taria-label={label}\n\t\t\t\t\thref={href}\n\t\t\t\t\tclassName={linkClassName}\n\t\t\t\t>\n\t\t\t\t\t{children}\n\t\t\t\t</Link>\n\t\t\t) : (\n\t\t\t\t<Button\n\t\t\t\t\tdata-slot=\"icon-button\"\n\t\t\t\t\taria-label={label}\n\t\t\t\t\tvariant={variant}\n\t\t\t\t\tsize=\"icon\"\n\t\t\t\t\tclassName={className}\n\t\t\t\t\t{...props}\n\t\t\t\t>\n\t\t\t\t\t{children}\n\t\t\t\t</Button>\n\t\t\t)}\n\t\t\t<Tooltip>{label}</Tooltip>\n\t\t</TooltipTrigger>\n\t);\n}\n","\"use client\"\n\nimport * as React from \"react\"\nimport {\n Focusable,\n OverlayArrow,\n Tooltip as TooltipPrimitive,\n TooltipTrigger as TooltipTriggerPrimitive,\n} from \"react-aria-components\"\nimport { cn } from \"../../lib/cn\"\n\n\nfunction TooltipTrigger({\n delay = 0,\n children,\n ...props\n}: React.ComponentProps<typeof TooltipTriggerPrimitive>) {\n const [trigger, tooltip] = React.Children.toArray(children)\n\n return (\n <TooltipTriggerPrimitive\n data-slot=\"tooltip-trigger\"\n delay={delay}\n {...props}\n >\n <Focusable>\n {trigger as React.ComponentProps<typeof Focusable>[\"children\"]}\n </Focusable>\n {tooltip}\n </TooltipTriggerPrimitive>\n )\n}\n\nfunction Tooltip({\n className,\n placement = \"top\",\n offset = 4,\n crossOffset = 0,\n children,\n ...props\n}: Omit<\n React.ComponentProps<typeof TooltipPrimitive>,\n \"children\" | \"className\"\n> & {\n className?: string\n children?: React.ReactNode\n}) {\n return (\n <TooltipPrimitive\n data-slot=\"tooltip-content\"\n placement={placement}\n offset={offset}\n crossOffset={crossOffset}\n className={cn(\n \"z-50 inline-flex w-fit max-w-xs origin-(--trigger-anchor-point) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background shadow-md outline-none motion-safe:data-entering:animate-ui-surface-in motion-safe:data-exiting:animate-ui-surface-out has-data-[slot=kbd]:pr-1.5 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm\",\n className\n )}\n {...props}\n >\n {children}\n <OverlayArrow\n className=\"z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-xs bg-foreground fill-foreground\"\n style={({ placement, defaultStyle }) => ({\n ...defaultStyle,\n rotate: \"0deg\",\n translate: \"0 0\",\n transform:\n placement === \"bottom\"\n ? \"translate(-50%, calc(50% + 2px)) rotate(45deg)\"\n : placement === \"top\"\n ? \"translate(-50%, calc(-50% - 2px)) rotate(45deg)\"\n : placement === \"left\"\n ? \"translate(calc(-50% - 2px), -50%) rotate(45deg)\"\n : \"translate(calc(50% + 2px), -50%) rotate(45deg)\",\n })}\n />\n </TooltipPrimitive>\n )\n}\n\nexport { Tooltip, TooltipTrigger }\n","import { cva, type VariantProps } from \"class-variance-authority\";\nimport { cn } from \"../../lib/cn\";\nimport { Button, type ButtonProps } from \"../button/button\";\nimport { Input } from \"../input/input\";\nimport { Textarea } from \"../textarea/textarea\";\n\nexport function InputGroup({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n // biome-ignore lint/a11y/useSemanticElements: fieldset cannot preserve this inline control composition.\n <div\n role=\"group\"\n data-slot=\"input-group\"\n className={cn(\n \"group/input-group relative flex min-h-8 w-full min-w-0 items-center rounded-lg border border-border transition-colors outline-none has-disabled:bg-muted/50 has-disabled:opacity-50 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[>[data-align^=block]]:h-auto has-[>[data-align^=block]]:flex-col\",\n className,\n )}\n {...props}\n />\n );\n}\n\nexport const inputGroupAddonVariants = cva(\n \"flex cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none [&_svg:not([class*='size-'])]:size-4\",\n {\n variants: {\n align: {\n \"inline-start\": \"order-first pl-2\",\n \"inline-end\": \"order-last pr-2\",\n \"block-start\": \"order-first w-full justify-start px-2.5 pt-2\",\n \"block-end\": \"order-last w-full justify-start px-2.5 pb-2\",\n },\n },\n defaultVariants: { align: \"inline-start\" },\n },\n);\nexport function InputGroupAddon({\n className,\n align = \"inline-start\",\n onClick,\n ...props\n}: React.ComponentProps<\"div\"> & VariantProps<typeof inputGroupAddonVariants>) {\n return (\n // biome-ignore lint/a11y/useSemanticElements: this addon delegates focus to its associated input.\n <div\n role=\"group\"\n data-slot=\"input-group-addon\"\n data-align={align}\n className={cn(inputGroupAddonVariants({ align }), className)}\n onClick={(event) => {\n onClick?.(event);\n if (!event.defaultPrevented && !(event.target as HTMLElement).closest(\"button\"))\n event.currentTarget.parentElement?.querySelector<HTMLElement>(\"input, textarea\")?.focus();\n }}\n {...props}\n />\n );\n}\n\nconst inputGroupButtonVariants = cva(\"shrink-0 shadow-none\", {\n variants: {\n size: { xs: \"h-6 px-1.5 text-xs\", sm: \"h-7 px-2\", \"icon-xs\": \"size-6\", \"icon-sm\": \"size-7\" },\n },\n defaultVariants: { size: \"xs\" },\n});\nexport type InputGroupButtonProps = Omit<ButtonProps, \"size\"> &\n VariantProps<typeof inputGroupButtonVariants>;\nexport function InputGroupButton({\n className,\n type = \"button\",\n variant = \"ghost\",\n size = \"xs\",\n ...props\n}: InputGroupButtonProps) {\n const buttonSize = size === \"icon-xs\" || size === \"icon-sm\" ? size : size;\n return (\n <Button\n data-slot=\"input-group-button\"\n type={type}\n size={buttonSize}\n variant={variant}\n className={cn(inputGroupButtonVariants({ size }), className)}\n {...props}\n />\n );\n}\n\nexport function InputGroupText({ className, ...props }: React.ComponentProps<\"span\">) {\n return (\n <span\n data-slot=\"input-group-text\"\n className={cn(\n \"flex items-center gap-2 text-sm text-muted-foreground [&_svg:not([class*='size-'])]:size-4\",\n className,\n )}\n {...props}\n />\n );\n}\n\nexport function InputGroupInput({ className, ...props }: React.ComponentProps<typeof Input>) {\n return (\n <Input\n data-slot=\"input-group-control\"\n className={cn(\n \"flex-1 rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 disabled:bg-transparent aria-invalid:ring-0\",\n className,\n )}\n {...props}\n />\n );\n}\n\nexport function InputGroupTextarea({ className, ...props }: React.ComponentProps<typeof Textarea>) {\n return (\n <Textarea\n data-slot=\"input-group-control\"\n className={cn(\n \"flex-1 resize-none rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0\",\n className,\n )}\n {...props}\n />\n );\n}\n","import { forwardRef } from \"react\";\nimport { Input as AriaInput, type InputProps as AriaInputProps } from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\n\ntype CompatibleRef<T> = ((instance: T | null) => unknown) | { readonly current: T | null } | null;\n\nexport type InputProps = Omit<AriaInputProps, \"ref\"> & { ref?: CompatibleRef<HTMLInputElement> };\n\nconst InputImpl = forwardRef<HTMLInputElement, AriaInputProps>(function Input({ className, type, ...props }, ref) {\n return <AriaInput ref={ref} type={type} data-slot=\"input\" className={cn(\"h-8 w-full min-w-0 rounded-lg border border-border bg-background px-2.5 py-1 text-sm text-foreground outline-none placeholder:text-muted-foreground focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive\", className)} {...props} />;\n});\n\n/** Forward-ref component with a ref type compatible across React 19 type releases. */\nexport const Input = InputImpl as unknown as (props: InputProps) => ReturnType<typeof InputImpl>;\n","import { forwardRef } from \"react\";\nimport { TextArea as AriaTextArea, type TextAreaProps as AriaTextAreaProps } from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\n\ntype CompatibleRef<T> = ((instance: T | null) => unknown) | { readonly current: T | null } | null;\n\nexport type TextareaProps = Omit<AriaTextAreaProps, \"ref\"> & { ref?: CompatibleRef<HTMLTextAreaElement> };\n\nconst TextareaImpl = forwardRef<HTMLTextAreaElement, AriaTextAreaProps>(function Textarea({ className, ...props }, ref) {\n return <AriaTextArea ref={ref} data-slot=\"textarea\" className={cn(\"min-h-20 w-full rounded-lg border border-border bg-background px-2.5 py-2 text-sm text-foreground outline-none placeholder:text-muted-foreground focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive\", className)} {...props} />;\n});\n\n/** Forward-ref component with a ref type compatible across React 19 type releases. */\nexport const Textarea = TextareaImpl as unknown as (props: TextareaProps) => ReturnType<typeof TextareaImpl>;\n","import type * as React from \"react\";\nimport { cn } from \"../../lib/cn\";\n\nexport function Kbd({ className, ...props }: React.ComponentProps<\"kbd\">) {\n return <kbd data-slot=\"kbd\" className={cn(\"pointer-events-none inline-flex h-5 min-w-5 items-center justify-center gap-1 rounded-sm bg-muted px-1 font-sans text-xs font-medium text-muted-foreground select-none\", className)} {...props} />;\n}\n\nexport function KbdGroup({ className, ...props }: React.ComponentProps<\"span\">) {\n return <span data-slot=\"kbd-group\" className={cn(\"inline-flex items-center gap-1\", className)} {...props} />;\n}\n","import type * as React from \"react\";\nimport { LoaderCircle } from \"lucide-react\";\nimport { cn } from \"../../lib/cn\";\nexport function LoadingOverlay({ label = \"Cargando\", className, ...props }: React.ComponentProps<\"div\"> & { label?: string }) { return <div role=\"status\" aria-live=\"polite\" className={cn(\"absolute inset-0 z-10 flex items-center justify-center bg-background/70 backdrop-blur-[2px]\", className)} {...props}><div className=\"flex items-center gap-2 rounded-lg border border-border bg-background px-3 py-2 text-sm shadow-sm\"><LoaderCircle className=\"animate-spin\" aria-hidden=\"true\" /><span>{label}</span></div></div>; }\n","import {\n Menu as AriaMenu,\n MenuItem as AriaMenuItem,\n MenuTrigger as AriaMenuTrigger,\n Popover,\n type MenuItemProps,\n type MenuProps,\n} from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\n\nexport const MenuTrigger = AriaMenuTrigger;\n\nexport function MenuContent({ className, ...props }: React.ComponentProps<typeof Popover>) {\n return <Popover data-slot=\"menu-content\" className={cn(\"min-w-40 overflow-hidden rounded-xl border border-border bg-background p-1.5 text-foreground shadow-lg motion-safe:data-entering:animate-ui-surface-in motion-safe:data-exiting:animate-ui-surface-out\", className)} {...props} />;\n}\n\nexport function Menu<T extends object>({ className, ...props }: MenuProps<T>) {\n return <AriaMenu data-slot=\"menu\" className={cn(\"outline-none\", className)} {...props} />;\n}\n\nexport function MenuItem<T extends object>({ className, children, ...props }: MenuItemProps<T>) {\n return <AriaMenuItem data-slot=\"menu-item\" className={cn(\"flex cursor-default items-center gap-2 rounded-md px-2 py-1.5 text-sm outline-none data-focused:bg-muted data-disabled:pointer-events-none data-disabled:opacity-50\", className)} {...props}>{children}</AriaMenuItem>;\n}\n","import {\n forwardRef,\n type PointerEvent as ReactPointerEvent,\n useImperativeHandle,\n useRef,\n useState,\n} from \"react\";\nimport { Input as AriaInput, type InputProps as AriaInputProps } from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\n\ntype CompatibleRef<T> = ((instance: T | null) => unknown) | { readonly current: T | null } | null;\n\nexport type OtpInputProps = Omit<\n AriaInputProps,\n \"children\" | \"className\" | \"defaultValue\" | \"maxLength\" | \"onChange\" | \"type\" | \"value\"\n> & {\n /** Number of numeric characters in the code. */\n length?: number;\n value?: string;\n defaultValue?: string;\n onChange?: (value: string) => void;\n onComplete?: (value: string) => void;\n className?: string;\n inputClassName?: string;\n ref?: CompatibleRef<HTMLInputElement>;\n};\n\nfunction normalizeOtp(value: string, length: number) {\n return value.replace(/[^0-9]/g, \"\").slice(0, length);\n}\n\nconst OtpInputImpl = forwardRef<HTMLInputElement, OtpInputProps>(function OtpInput(\n {\n length = 6,\n value,\n defaultValue = \"\",\n onChange,\n onComplete,\n className,\n inputClassName,\n disabled,\n onBlur,\n onFocus,\n onKeyUp,\n onSelect,\n ...props\n },\n forwardedRef,\n) {\n const slotCount = Math.max(1, Math.floor(length));\n const controlled = value !== undefined;\n const [internalValue, setInternalValue] = useState(() => normalizeOtp(defaultValue, slotCount));\n const code = normalizeOtp(controlled ? value : internalValue, slotCount);\n const slots = Array.from({ length: slotCount }, (_, index) => `otp-slot-${index + 1}`);\n const inputRef = useRef<HTMLInputElement>(null);\n const [focused, setFocused] = useState(false);\n const [selectionStart, setSelectionStart] = useState(0);\n const invalid = props[\"aria-invalid\"] === true || props[\"aria-invalid\"] === \"true\";\n const activeIndex =\n code.length === slotCount\n ? slotCount - 1\n : Math.min(selectionStart, code.length, slotCount - 1);\n\n useImperativeHandle(forwardedRef, () => inputRef.current as HTMLInputElement);\n\n function updateSelection(input: HTMLInputElement) {\n setSelectionStart(input.selectionStart ?? code.length);\n }\n\n function commitValue(rawValue: string) {\n const nextValue = normalizeOtp(rawValue, slotCount);\n if (!controlled) setInternalValue(nextValue);\n if (nextValue === code) return;\n onChange?.(nextValue);\n if (nextValue.length === slotCount) onComplete?.(nextValue);\n }\n\n function handlePointerDown(event: ReactPointerEvent<HTMLDivElement>) {\n if (disabled) return;\n event.preventDefault();\n const input = inputRef.current;\n if (!input) return;\n const bounds = event.currentTarget.getBoundingClientRect();\n const offset = bounds.width > 0 ? (event.clientX - bounds.left) / bounds.width : 1;\n const position = Math.min(Math.max(Math.floor(offset * slotCount), 0), code.length);\n input.focus();\n input.setSelectionRange(position, position);\n setSelectionStart(position);\n }\n\n return (\n <div\n data-slot=\"otp-input\"\n data-disabled={disabled || undefined}\n data-invalid={invalid || undefined}\n className={cn(\"relative inline-grid max-w-full gap-2\", className)}\n style={{ gridTemplateColumns: `repeat(${slotCount}, minmax(0, 2.5rem))` }}\n onPointerDown={handlePointerDown}\n >\n <AriaInput\n {...props}\n ref={inputRef}\n type=\"text\"\n inputMode={props.inputMode ?? \"numeric\"}\n autoComplete={props.autoComplete ?? \"one-time-code\"}\n pattern={props.pattern ?? \"[0-9]*\"}\n maxLength={slotCount}\n value={code}\n disabled={disabled}\n data-slot=\"otp-input-control\"\n className={cn(\n \"absolute inset-0 z-10 size-full cursor-text appearance-none rounded-lg border-0 bg-transparent text-base text-transparent caret-transparent outline-none selection:bg-transparent disabled:cursor-not-allowed\",\n inputClassName,\n )}\n onChange={(event) => {\n commitValue(event.currentTarget.value);\n updateSelection(event.currentTarget);\n }}\n onFocus={(event) => {\n setFocused(true);\n updateSelection(event.currentTarget);\n onFocus?.(event);\n }}\n onBlur={(event) => {\n setFocused(false);\n onBlur?.(event);\n }}\n onSelect={(event) => {\n updateSelection(event.currentTarget);\n onSelect?.(event);\n }}\n onKeyUp={(event) => {\n updateSelection(event.currentTarget);\n onKeyUp?.(event);\n }}\n />\n {slots.map((slot, index) => (\n <span\n key={slot}\n aria-hidden=\"true\"\n data-slot=\"otp-input-slot\"\n data-active={(focused && index === activeIndex) || undefined}\n className={cn(\n \"pointer-events-none grid size-10 place-items-center rounded-lg border border-border bg-background text-base font-medium tabular-nums text-foreground transition-[border-color,box-shadow]\",\n focused && index === activeIndex && \"border-ring ring-3 ring-ring/50\",\n invalid && \"border-destructive\",\n disabled && \"opacity-50\",\n )}\n >\n {code[index] ?? \"\"}\n </span>\n ))}\n </div>\n );\n});\n\n/** A single accessible input visually split into slots for numeric one-time codes. */\nexport const OtpInput = OtpInputImpl as unknown as (\n props: OtpInputProps,\n) => ReturnType<typeof OtpInputImpl>;\n","import type * as React from \"react\";\nimport { cn } from \"../../lib/cn\";\n\nexport function PageHeader({ className, ...props }: React.ComponentProps<\"header\">) {\n return <header data-slot=\"page-header\" className={cn(\"flex flex-col gap-4 py-2 sm:flex-row sm:items-center sm:justify-between\", className)} {...props} />;\n}\nexport function PageHeaderHeading({ className, ...props }: React.ComponentProps<\"div\">) {\n return <div data-slot=\"page-header-heading\" className={cn(\"min-w-0\", className)} {...props} />;\n}\nexport function PageHeaderTitle({ className, ...props }: React.ComponentProps<\"h1\">) {\n return <h1 data-slot=\"page-header-title\" className={cn(\"truncate text-xl font-semibold tracking-tight md:text-2xl\", className)} {...props} />;\n}\nexport function PageHeaderDescription({ className, ...props }: React.ComponentProps<\"p\">) {\n return <p data-slot=\"page-header-description\" className={cn(\"mt-1 text-sm text-muted-foreground\", className)} {...props} />;\n}\nexport function PageHeaderActions({ className, ...props }: React.ComponentProps<\"div\">) {\n return <div data-slot=\"page-header-actions\" className={cn(\"flex shrink-0 items-center gap-2\", className)} {...props} />;\n}\n","import { ChevronLeft, ChevronRight } from \"lucide-react\";\nimport { Button } from \"../button/button\";\nimport { cn } from \"../../lib/cn\";\nexport type PaginationProps = { page: number; pageCount: number; onPageChange: (page: number) => void; className?: string };\nexport function Pagination({ page, pageCount, onPageChange, className }: PaginationProps) {\n const pages = Array.from({ length: pageCount }, (_, index) => index + 1);\n return <nav aria-label=\"Paginación\" className={cn(\"flex items-center justify-between gap-4\", className)}><p className=\"text-sm text-muted-foreground\">Página {page} de {pageCount}</p><div className=\"flex items-center gap-1\"><Button aria-label=\"Página anterior\" isDisabled={page <= 1} onPress={() => onPageChange(page - 1)} size=\"icon\" variant=\"ghost\"><ChevronLeft /></Button>{pages.map((item) => <Button key={item} aria-current={item === page ? \"page\" : undefined} aria-label={`Página ${item}`} onPress={() => onPageChange(item)} size=\"icon\" variant={item === page ? \"secondary\" : \"ghost\"}>{item}</Button>)}<Button aria-label=\"Página siguiente\" isDisabled={page >= pageCount} onPress={() => onPageChange(page + 1)} size=\"icon\" variant=\"ghost\"><ChevronRight /></Button></div></nav>;\n}\n","import {\n DialogTrigger as AriaDialogTrigger,\n Popover as AriaPopover,\n type DialogTriggerProps,\n type PopoverProps as AriaPopoverProps,\n} from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\n\nexport type PopoverProps = Omit<AriaPopoverProps, \"className\"> & { className?: string };\nexport type { DialogTriggerProps as PopoverTriggerProps };\n\n/** Wrap a trigger and Popover surface; React Aria handles focus and positioning. */\nexport const PopoverTrigger = AriaDialogTrigger;\n\nexport function Popover({ className, ...props }: PopoverProps) {\n return <AriaPopover data-slot=\"popover\" offset={6} className={cn(\"min-w-48 rounded-xl border border-border bg-background p-1.5 text-foreground shadow-lg outline-none motion-safe:data-entering:animate-ui-surface-in motion-safe:data-exiting:animate-ui-surface-out\", className)} {...props} />;\n}\n\nexport const PopoverContent = Popover;\n","import { Minus, Plus } from \"lucide-react\";\nimport {\n Button as AriaButton,\n Group as AriaGroup,\n Input as AriaInput,\n NumberField as AriaNumberField,\n type NumberFieldProps as AriaNumberFieldProps,\n} from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\n\nexport type QuantityInputProps = Omit<AriaNumberFieldProps, \"children\" | \"className\"> & {\n className?: string;\n inputClassName?: string;\n decrementAriaLabel?: string;\n incrementAriaLabel?: string;\n};\n\n/** A compact quantity control with accessible stepper buttons and numeric keyboard support. */\nexport function QuantityInput({\n className,\n inputClassName,\n decrementAriaLabel = \"Disminuir cantidad\",\n incrementAriaLabel = \"Aumentar cantidad\",\n minValue = 0,\n step = 1,\n ...props\n}: QuantityInputProps) {\n return (\n <AriaNumberField\n {...props}\n minValue={minValue}\n step={step}\n data-slot=\"quantity-input\"\n className={cn(\"group/quantity-input inline-flex min-w-0 data-disabled:cursor-not-allowed data-disabled:opacity-50\", className)}\n >\n <AriaGroup\n data-slot=\"quantity-input-group\"\n className=\"flex h-8 min-w-0 items-stretch overflow-hidden rounded-lg border border-border bg-background text-foreground transition-[border-color,box-shadow] focus-within:border-ring focus-within:ring-3 focus-within:ring-ring/50 group-data-invalid/quantity-input:border-destructive\"\n >\n <AriaButton slot=\"decrement\" aria-label={decrementAriaLabel} data-slot=\"quantity-input-decrement\" className=\"flex size-8 shrink-0 cursor-pointer items-center justify-center border-r border-border text-muted-foreground outline-none transition-colors hover:bg-muted hover:text-foreground data-focus-visible:bg-muted data-pressed:bg-muted data-disabled:pointer-events-none\">\n <Minus aria-hidden=\"true\" className=\"size-4\" />\n </AriaButton>\n <AriaInput data-slot=\"quantity-input-value\" className={cn(\"w-14 min-w-0 bg-transparent px-1 text-center text-sm tabular-nums outline-none\", inputClassName)} />\n <AriaButton slot=\"increment\" aria-label={incrementAriaLabel} data-slot=\"quantity-input-increment\" className=\"flex size-8 shrink-0 cursor-pointer items-center justify-center border-l border-border text-muted-foreground outline-none transition-colors hover:bg-muted hover:text-foreground data-focus-visible:bg-muted data-pressed:bg-muted data-disabled:pointer-events-none\">\n <Plus aria-hidden=\"true\" className=\"size-4\" />\n </AriaButton>\n </AriaGroup>\n </AriaNumberField>\n );\n}","import {\n SearchField as AriaSearchField,\n Button,\n Input,\n type SearchFieldProps as AriaSearchFieldProps,\n type ButtonProps,\n type InputProps,\n} from \"react-aria-components\";\nimport { X } from \"lucide-react\";\nimport { cn } from \"../../lib/cn\";\n\nexport const SearchField = AriaSearchField;\nexport type { AriaSearchFieldProps as SearchFieldProps };\n\nexport function SearchInput({ className, ...props }: InputProps) {\n return <Input data-slot=\"search-input\" className={cn(\"h-8 w-full min-w-0 rounded-lg border border-border bg-background px-2.5 py-1 text-sm text-foreground outline-none placeholder:text-muted-foreground focus-visible:ring-3 focus-visible:ring-ring/50\", className)} {...props} />;\n}\n\nexport function SearchClearButton({ className, children = <X aria-hidden=\"true\" className=\"size-4\" />, ...props }: Omit<ButtonProps, \"className\"> & { className?: string }) {\n return <Button slot=\"clear\" data-slot=\"search-clear\" className={cn(\"absolute top-1/2 right-1 rounded p-1 text-muted-foreground outline-none hover:bg-muted data-focus-visible:ring-2 data-focus-visible:ring-ring\", className)} {...props}>{children}</Button>;\n}\n","import {\n Button as AriaButton,\n Select as AriaSelect,\n SelectValue as AriaSelectValue,\n ListBox,\n ListBoxItem,\n Popover,\n type SelectProps as AriaSelectProps,\n type ButtonProps,\n type ListBoxItemProps,\n type ListBoxProps,\n} from \"react-aria-components\";\nimport { ChevronDown } from \"lucide-react\";\nimport { cn } from \"../../lib/cn\";\n\nexport const Select = AriaSelect;\nexport type { AriaSelectProps as SelectProps };\n\nexport function SelectTrigger({ className, children, ...props }: ButtonProps) {\n return <AriaButton data-slot=\"select-trigger\" className={cn(\"group/select-trigger flex h-8 w-full min-w-36 items-center gap-2 rounded-lg border border-border bg-background px-2.5 text-left text-sm text-foreground outline-none data-focus-visible:ring-3 data-focus-visible:ring-ring/50 data-disabled:cursor-not-allowed data-disabled:opacity-50\", className)} {...props}>{(state) => <>{typeof children === \"function\" ? children(state) : children}<ChevronDown aria-hidden=\"true\" className=\"ml-auto size-4 text-muted-foreground transition-transform group-data-pressed/select-trigger:rotate-180 motion-reduce:transition-none\" /></>}</AriaButton>;\n}\n\nexport function SelectValue({ className, ...props }: React.ComponentProps<typeof AriaSelectValue>) {\n return <AriaSelectValue data-slot=\"select-value\" className={cn(\"flex-1 truncate data-placeholder:text-muted-foreground\", className)} {...props} />;\n}\n\nexport function SelectContent({ className, ...props }: React.ComponentProps<typeof Popover>) {\n return <Popover data-slot=\"select-content\" className={cn(\"w-(--trigger-width) overflow-hidden rounded-xl border border-border bg-background p-1.5 text-foreground shadow-lg motion-safe:data-entering:animate-ui-surface-in motion-safe:data-exiting:animate-ui-surface-out\", className)} {...props} />;\n}\n\nexport function SelectList<T extends object>({ className, ...props }: ListBoxProps<T>) {\n return <ListBox data-slot=\"select-list\" className={cn(\"max-h-64 overflow-y-auto\", className)} {...props} />;\n}\n\nexport function SelectItem<T extends object>({ className, children, ...props }: ListBoxItemProps<T>) {\n return <ListBoxItem data-slot=\"select-item\" className={cn(\"flex cursor-default items-center gap-2 rounded-md px-2 py-1.5 text-sm outline-none data-focused:bg-muted data-selected:bg-muted data-disabled:pointer-events-none data-disabled:opacity-50\", className)} {...props}>{children}</ListBoxItem>;\n}\n","\"use client\";\n\nimport { XIcon } from \"lucide-react\";\nimport type * as React from \"react\";\nimport {\n Heading,\n ModalOverlay as ModalOverlayPrimitive,\n type ModalOverlayProps as ModalOverlayPrimitiveProps,\n Modal as ModalPrimitive,\n Dialog as SheetPrimitive,\n type DialogProps as SheetPrimitiveProps,\n DialogTrigger as SheetTriggerPrimitive,\n type DialogTriggerProps as SheetTriggerPrimitiveProps,\n Text,\n} from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\nimport { Button, type ButtonProps } from \"../button/button\";\n\nfunction SheetTrigger({ ...props }: SheetTriggerPrimitiveProps) {\n return <SheetTriggerPrimitive data-slot=\"sheet-trigger\" {...props} />;\n}\n\nfunction SheetClose({ className, variant = \"outline\", size = \"default\", ...props }: ButtonProps) {\n return (\n <Button\n slot=\"close\"\n data-slot=\"sheet-close\"\n variant={variant}\n size={size}\n className={cn(className)}\n {...props}\n />\n );\n}\n\nfunction SheetOverlay({\n className,\n children,\n ...props\n}: Omit<ModalOverlayPrimitiveProps, \"className\" | \"children\"> & {\n className?: string;\n children: React.ReactNode;\n}) {\n return (\n <ModalOverlayPrimitive\n data-slot=\"sheet-overlay\"\n isDismissable\n className={cn(\n \"fixed inset-0 z-50 bg-black/10 transition-opacity duration-150 data-entering:opacity-0 data-exiting:opacity-0 supports-backdrop-filter:backdrop-blur-xs\",\n className,\n )}\n {...props}\n >\n {children}\n </ModalOverlayPrimitive>\n );\n}\n\nfunction Sheet({\n className,\n children,\n side = \"right\",\n showCloseButton = true,\n ...props\n}: Omit<ModalOverlayPrimitiveProps, \"className\" | \"children\"> &\n Pick<React.ComponentProps<typeof ModalPrimitive>, \"isDismissable\"> & {\n className?: string;\n children: React.ReactNode;\n side?: \"top\" | \"right\" | \"bottom\" | \"left\";\n showCloseButton?: boolean;\n }) {\n return (\n <SheetOverlay {...props}>\n <ModalPrimitive\n data-slot=\"sheet-content\"\n data-side={side}\n className={cn(\n \"fixed z-50 flex flex-col gap-4 border-border bg-popover bg-clip-padding text-sm text-popover-foreground shadow-lg transition duration-200 ease-in-out data-entering:opacity-0 data-exiting:opacity-0 data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=bottom]:data-entering:translate-y-10 data-[side=bottom]:data-exiting:translate-y-10 data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=left]:data-entering:-translate-x-10 data-[side=left]:data-exiting:-translate-x-10 data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=right]:data-entering:translate-x-10 data-[side=right]:data-exiting:translate-x-10 data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=top]:data-entering:-translate-y-10 data-[side=top]:data-exiting:-translate-y-10 data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm\",\n className,\n )}\n >\n <SheetPrimitive\n data-slot=\"sheet\"\n className=\"[display:inherit] h-full max-h-[inherit] [flex-direction:inherit] gap-[inherit] outline-none\"\n >\n {children}\n {showCloseButton && (\n <SheetClose variant=\"ghost\" className=\"absolute top-3 right-3\" size=\"icon-sm\">\n <XIcon />\n <span className=\"sr-only\">Cerrar</span>\n </SheetClose>\n )}\n </SheetPrimitive>\n </ModalPrimitive>\n </SheetOverlay>\n );\n}\n\nfunction SheetContent({\n className,\n children,\n side = \"right\",\n showCloseButton = true,\n ...props\n}: React.ComponentProps<typeof Sheet> & {\n side?: \"top\" | \"right\" | \"bottom\" | \"left\";\n showCloseButton?: boolean;\n}) {\n return (\n <Sheet className={className} side={side} showCloseButton={showCloseButton} {...props}>\n {children}\n </Sheet>\n );\n}\n\nfunction SheetHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"sheet-header\"\n className={cn(\"flex flex-col gap-0.5 p-4\", className)}\n {...props}\n />\n );\n}\n\nfunction SheetFooter({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"sheet-footer\"\n className={cn(\"mt-auto flex flex-col gap-2 p-4\", className)}\n {...props}\n />\n );\n}\n\nfunction SheetTitle({ className, ...props }: Omit<React.ComponentProps<typeof Heading>, \"slot\">) {\n return (\n <Heading\n slot=\"title\"\n data-slot=\"sheet-title\"\n className={cn(\"text-base font-medium text-foreground\", className)}\n {...props}\n />\n );\n}\n\nfunction SheetDescription({\n className,\n ...props\n}: Omit<React.ComponentProps<typeof Text>, \"slot\">) {\n return (\n <Text\n slot=\"description\"\n data-slot=\"sheet-description\"\n className={cn(\"text-sm text-muted-foreground\", className)}\n {...props}\n />\n );\n}\n\nexport {\n Sheet,\n SheetClose,\n SheetContent,\n SheetDescription,\n SheetFooter,\n SheetHeader,\n type SheetPrimitiveProps,\n SheetTitle,\n SheetTrigger,\n type SheetTriggerPrimitiveProps,\n};\n","import {\n\tChevronLeft,\n\tChevronRight,\n\tEllipsis,\n\tSearch,\n} from \"lucide-react\";\nimport {\n\tcreateContext,\n\ttype ReactNode,\n\tuseContext,\n\tuseMemo,\n\tuseState,\n} from \"react\";\nimport { Link, type LinkProps } from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\nimport { Button, type ButtonProps } from \"../button/button\";\n\ntype SidebarContextValue = {\n\tcollapsed: boolean;\n\tsetCollapsed: (value: boolean) => void;\n\ttoggle: () => void;\n};\nconst SidebarContext = createContext<SidebarContextValue | null>(null);\n\nexport function useSidebar() {\n\tconst context = useContext(SidebarContext);\n\tif (!context)\n\t\tthrow new Error(\"useSidebar must be used inside SidebarProvider\");\n\treturn context;\n}\n\nexport function SidebarProvider({\n\tdefaultCollapsed = false,\n\tchildren,\n}: {\n\tdefaultCollapsed?: boolean;\n\tchildren: ReactNode;\n}) {\n\tconst [collapsed, setCollapsed] = useState(defaultCollapsed);\n\tconst value = useMemo(\n\t\t() => ({\n\t\t\tcollapsed,\n\t\t\tsetCollapsed,\n\t\t\ttoggle: () => setCollapsed((current) => !current),\n\t\t}),\n\t\t[collapsed],\n\t);\n\treturn (\n\t\t<SidebarContext.Provider value={value}>{children}</SidebarContext.Provider>\n\t);\n}\n\nexport function Sidebar({\n\tclassName,\n\t...props\n}: React.ComponentProps<\"aside\">) {\n\tconst { collapsed } = useSidebar();\n\treturn (\n\t\t<aside\n\t\t\tdata-slot=\"sidebar\"\n\t\t\tdata-collapsed={collapsed || undefined}\n\t\t\tclassName={cn(\n\t\t\t\t\"group/sidebar flex h-full w-56 shrink-0 flex-col border-r border-border bg-card text-foreground transition-[width] duration-200 ease-out motion-reduce:transition-none data-[collapsed]:w-16\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nexport function SidebarHeader({\n\tclassName,\n\t...props\n}: React.ComponentProps<\"div\">) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot=\"sidebar-header\"\n\t\t\tclassName={cn(\"flex items-center gap-2 px-4 py-5\", className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nexport function SidebarSearch({\n\tlabel = \"Buscar…\",\n\tshortcut = \"⌘K\",\n\tclassName,\n\t...props\n}: React.ComponentProps<\"button\"> & { label?: string; shortcut?: string }) {\n\treturn (\n\t\t<button\n\t\t\ttype=\"button\"\n\t\t\tdata-slot=\"sidebar-search\"\n\t\t\tclassName={cn(\n\t\t\t\t\"group flex w-full items-center gap-2 rounded-md border border-border bg-background px-2.5 py-1.5 text-sm text-muted-foreground transition-colors hover:border-primary/40 hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t>\n\t\t\t<Search className=\"size-4 shrink-0\" />\n\t\t\t<span className=\"flex-1 text-left\">{label}</span>\n\t\t\t<kbd className=\"rounded bg-secondary px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground\">\n\t\t\t\t{shortcut}\n\t\t\t</kbd>\n\t\t</button>\n\t);\n}\n\nexport function SidebarContent({\n\tclassName,\n\t...props\n}: React.ComponentProps<\"nav\">) {\n\treturn (\n\t\t<nav\n\t\t\tdata-slot=\"sidebar-content\"\n\t\t\taria-label=\"Navegación principal\"\n\t\t\tclassName={cn(\"min-h-0 flex-1 overflow-y-auto px-2 py-1\", className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nexport function SidebarFooter({\n\tclassName,\n\t...props\n}: React.ComponentProps<\"div\">) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot=\"sidebar-footer\"\n\t\t\tclassName={cn(\n\t\t\t\t\"mt-auto flex flex-col gap-2 border-t border-border p-2\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nexport function SidebarGroup({\n\tlabel,\n\tclassName,\n\tchildren,\n\t...props\n}: React.ComponentProps<\"section\"> & { label?: string }) {\n\tconst { collapsed } = useSidebar();\n\treturn (\n\t\t<section\n\t\t\tdata-slot=\"sidebar-group\"\n\t\t\tclassName={cn(\"mb-4 last:mb-0\", className)}\n\t\t\t{...props}\n\t\t>\n\t\t\t{label && (\n\t\t\t\t<h2\n\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t\"mb-1 px-3 text-[11px] font-semibold uppercase tracking-wider text-muted-foreground\",\n\t\t\t\t\t\tcollapsed && \"sr-only\",\n\t\t\t\t\t)}\n\t\t\t\t>\n\t\t\t\t\t{label}\n\t\t\t\t</h2>\n\t\t\t)}\n\t\t\t{children}\n\t\t</section>\n\t);\n}\n\nexport type SidebarItemProps = LinkProps & {\n\ticon?: ReactNode;\n\tactive?: boolean;\n\tbadge?: ReactNode;\n\tlabel?: string;\n};\nexport function SidebarItem({\n\ticon,\n\tactive,\n\tbadge,\n\tlabel,\n\tchildren,\n\tclassName,\n\t...props\n}: SidebarItemProps) {\n\tconst { collapsed } = useSidebar();\n\tconst content = typeof children === \"function\" ? label : (children ?? label);\n\treturn (\n\t\t<Link\n\t\t\tdata-slot=\"sidebar-item\"\n\t\t\taria-current={active ? \"page\" : undefined}\n\t\t\taria-label={collapsed && label ? label : undefined}\n\t\t\tclassName={cn(\n\t\t\t\t\"group/item relative flex min-h-9 items-center gap-2.5 rounded-md px-2.5 py-2 text-sm text-muted-foreground outline-none transition-[background-color,color,transform] duration-150 hover:bg-secondary/60 hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring/40 data-[current=page]:bg-secondary data-[current=page]:font-medium data-[current=page]:text-foreground data-pressed:scale-[0.98] motion-reduce:transition-none\",\n\t\t\t\tcollapsed && \"justify-center px-0\",\n\t\t\t\ttypeof className === \"function\" ? className : className,\n\t\t\t)}\n\t\t\t{...props}\n\t\t>\n\t\t\t{(values) => (\n\t\t\t\t<>\n\t\t\t\t\t<span className=\"flex size-4 shrink-0 items-center justify-center\">\n\t\t\t\t\t\t{icon}\n\t\t\t\t\t</span>\n\t\t\t\t\t<span\n\t\t\t\t\t\tclassName={cn(\"min-w-0 flex-1 truncate\", collapsed && \"sr-only\")}\n\t\t\t\t\t>\n\t\t\t\t\t\t{typeof children === \"function\" ? children(values) : content}\n\t\t\t\t\t</span>\n\t\t\t\t\t{badge && !collapsed && (\n\t\t\t\t\t\t<span className=\"text-xs text-muted-foreground\">{badge}</span>\n\t\t\t\t\t)}\n\t\t\t\t</>\n\t\t\t)}\n\t\t</Link>\n\t);\n}\n\nexport function SidebarSeparator({\n\tclassName,\n\t...props\n}: React.ComponentProps<\"hr\">) {\n\treturn (\n\t\t<hr\n\t\t\tdata-slot=\"sidebar-separator\"\n\t\t\tclassName={cn(\"my-2 h-px border-0 bg-border\", className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nexport function SidebarTrigger({ className, ...props }: ButtonProps) {\n\tconst { collapsed, toggle } = useSidebar();\n\treturn (\n\t\t<Button\n\t\t\taria-label={collapsed ? \"Expandir navegación\" : \"Colapsar navegación\"}\n\t\t\tonPress={toggle}\n\t\t\tsize=\"icon\"\n\t\t\tvariant=\"ghost\"\n\t\t\tclassName={cn(\"ml-auto\", className)}\n\t\t\t{...props}\n\t\t>\n\t\t\t{collapsed ? <ChevronRight /> : <ChevronLeft />}\n\t\t</Button>\n\t);\n}\n\nexport function SidebarRail({\n\tclassName,\n\t...props\n}: React.ComponentProps<\"button\">) {\n\tconst { toggle } = useSidebar();\n\treturn (\n\t\t<button\n\t\t\ttype=\"button\"\n\t\t\taria-label=\"Alternar navegación\"\n\t\t\tonClick={toggle}\n\t\t\tclassName={cn(\n\t\t\t\t\"absolute inset-y-0 right-0 z-20 hidden w-1 -translate-x-1/2 cursor-ew-resize bg-transparent transition-colors hover:bg-border lg:block\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nexport function SidebarMore({ className, ...props }: ButtonProps) {\n\treturn (\n\t\t<Button\n\t\t\taria-label=\"Más opciones\"\n\t\t\tsize=\"icon\"\n\t\t\tvariant=\"ghost\"\n\t\t\tclassName={cn(\"size-7\", className)}\n\t\t\t{...props}\n\t\t>\n\t\t\t<Ellipsis />\n\t\t</Button>\n\t);\n}\n","import type * as React from \"react\";\nimport { cn } from \"../../lib/cn\";\n\nexport function Skeleton({ className, ...props }: React.ComponentProps<\"div\">) {\n return <div aria-hidden=\"true\" data-slot=\"skeleton\" className={cn(\"animate-pulse rounded-md bg-muted\", className)} {...props} />;\n}\n","import { useFormStatus } from \"react-dom\";\nimport { LoaderCircle } from \"lucide-react\";\nimport { Button, type ButtonProps } from \"../button/button\";\n\nexport interface SubmitButtonProps extends Omit<ButtonProps, \"type\"> { pendingLabel?: string; loading?: boolean; children: React.ReactNode; }\n\nexport function SubmitButton({ pendingLabel = \"Guardando…\", loading = false, children, isDisabled, size = \"sm\", ...props }: SubmitButtonProps) {\n const { pending } = useFormStatus();\n const busy = pending || loading;\n return <Button type=\"submit\" size={size} isDisabled={busy || isDisabled} aria-busy={busy || undefined} {...props}>{busy ? <><LoaderCircle aria-hidden=\"true\" className=\"size-3.5 animate-spin\" />{pendingLabel}</> : children}</Button>;\n}\n","\"use client\";\n\nimport { useEffect, useRef, type ReactNode } from \"react\";\nimport {\n Switch as AriaSwitch,\n type SwitchProps as AriaSwitchProps,\n} from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\n\nconst switchSizes = {\n sm: {\n control: \"h-4 w-[1.875rem] p-0.5\",\n thumb: \"h-3\",\n idleWidth: \"0.75rem\",\n activeWidth: \"1rem\",\n selectedOffset: \"0.875rem\",\n activeSelectedOffset: \"0.625rem\",\n },\n md: {\n control: \"h-5 w-9 p-0.5\",\n thumb: \"h-4\",\n idleWidth: \"1rem\",\n activeWidth: \"1.25rem\",\n selectedOffset: \"1rem\",\n activeSelectedOffset: \"0.75rem\",\n },\n lg: {\n control: \"h-6 w-11 p-0.5\",\n thumb: \"h-5\",\n idleWidth: \"1.25rem\",\n activeWidth: \"1.5rem\",\n selectedOffset: \"1.25rem\",\n activeSelectedOffset: \"1rem\",\n },\n} as const;\n\nexport type SwitchProps = Omit<AriaSwitchProps, \"className\"> & {\n className?: string;\n size?: keyof typeof switchSizes;\n description?: ReactNode;\n icon?: ReactNode;\n selectedIcon?: ReactNode;\n};\n\n/** Accessible React Aria switch with semantic tokens and a compact capsule thumb. */\nexport function Switch({\n className,\n children,\n description,\n icon,\n inputRef,\n isDisabled,\n isReadOnly,\n selectedIcon,\n size = \"sm\",\n ...props\n}: SwitchProps) {\n const styles = switchSizes[size];\n const fallbackInputRef = useRef<HTMLInputElement>(null);\n const resolvedInputRef = inputRef ?? fallbackInputRef;\n\n useEffect(() => {\n const input = resolvedInputRef.current;\n if (!input) return;\n\n const handleDirectionalKey = (event: KeyboardEvent) => {\n if (\n event.target !== input || event.defaultPrevented || isDisabled || isReadOnly ||\n event.altKey || event.ctrlKey || event.metaKey || event.shiftKey\n ) return;\n\n const nextSelected = event.key === \"ArrowRight\" ? true : event.key === \"ArrowLeft\" ? false : null;\n if (nextSelected === null) return;\n\n event.preventDefault();\n if (input.checked !== nextSelected) input.click();\n };\n\n const ownerDocument = input.ownerDocument;\n ownerDocument.addEventListener(\"keydown\", handleDirectionalKey);\n return () => ownerDocument.removeEventListener(\"keydown\", handleDirectionalKey);\n }, [isDisabled, isReadOnly, resolvedInputRef]);\n\n return (\n <AriaSwitch\n data-slot=\"switch\"\n data-size={size}\n inputRef={resolvedInputRef}\n isDisabled={isDisabled}\n isReadOnly={isReadOnly}\n className={cn(\n \"group/switch inline-flex cursor-pointer items-center gap-3 text-sm text-foreground outline-none select-none\",\n \"data-disabled:cursor-not-allowed data-disabled:opacity-50\",\n className,\n )}\n {...props}\n >\n {(state) => {\n const isThumbActive = state.isHovered || state.isPressed;\n const thumbOffset = state.isSelected\n ? isThumbActive ? styles.activeSelectedOffset : styles.selectedOffset\n : \"0\";\n\n return <>\n <span\n aria-hidden=\"true\"\n data-slot=\"switch-control\"\n className={cn(\n \"relative inline-flex shrink-0 items-center overflow-hidden rounded-full border border-border bg-input shadow-inner\",\n \"transition-[background-color,border-color,box-shadow] duration-200 ease-out motion-reduce:transition-none\",\n \"group-data-hovered/switch:bg-muted-foreground/25\",\n \"group-data-selected/switch:border-primary group-data-selected/switch:bg-primary\",\n \"group-data-selected/switch:group-data-hovered/switch:bg-primary/85\",\n \"group-data-focus-visible/switch:ring-3 group-data-focus-visible/switch:ring-ring/50\",\n styles.control,\n )}\n >\n <span\n data-slot=\"switch-thumb\"\n style={{\n transform: `translate3d(${thumbOffset}, 0, 0)`,\n width: isThumbActive ? styles.activeWidth : styles.idleWidth,\n }}\n className={cn(\n \"grid shrink-0 place-items-center rounded-full border border-border/60 bg-background text-[0.625rem] text-muted-foreground shadow-sm\",\n \"will-change-[transform,width] transition-[transform,width,background-color,color,border-color] duration-[240ms] ease-[cubic-bezier(0.2,0.8,0.2,1)] motion-reduce:transition-none\",\n \"group-data-selected/switch:border-primary-foreground/20\",\n \"group-data-selected/switch:bg-primary-foreground group-data-selected/switch:text-primary\",\n styles.thumb,\n )}\n >\n {state.isSelected ? (selectedIcon ?? icon) : icon}\n </span>\n </span>\n {children || description ? (\n <span className=\"grid gap-0.5 leading-tight\">\n {children ? <span data-slot=\"switch-label\" className=\"font-medium\">{typeof children === \"function\" ? children(state) : children}</span> : null}\n {description ? <span data-slot=\"switch-description\" className=\"text-xs font-normal text-muted-foreground\">{description}</span> : null}\n </span>\n ) : null}\n </>;\n }}\n </AriaSwitch>\n );\n}\n","import type * as React from \"react\";\nimport { cn } from \"../../lib/cn\";\n\n/** Presentational table primitives. Sorting, pagination and data state stay in the application. */\nexport function Table({ className, ...props }: React.ComponentProps<\"table\">) {\n return (\n <div data-slot=\"table-container\" className=\"relative w-full overflow-x-auto\">\n <table\n data-slot=\"table\"\n className={cn(\"w-full caption-bottom text-sm\", className)}\n {...props}\n />\n </div>\n );\n}\n\nexport function TableHeader({ className, ...props }: React.ComponentProps<\"thead\">) {\n return <thead data-slot=\"table-header\" className={cn(\"[&_tr]:border-b\", className)} {...props} />;\n}\nexport function TableBody({ className, ...props }: React.ComponentProps<\"tbody\">) {\n return (\n <tbody\n data-slot=\"table-body\"\n className={cn(\"[&_tr:last-child]:border-0\", className)}\n {...props}\n />\n );\n}\nexport function TableRow({ className, ...props }: React.ComponentProps<\"tr\">) {\n return (\n <tr\n data-slot=\"table-row\"\n className={cn(\n \"border-b border-border transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted\",\n className,\n )}\n {...props}\n />\n );\n}\nexport function TableHead({ className, ...props }: React.ComponentProps<\"th\">) {\n return (\n <th\n data-slot=\"table-head\"\n className={cn(\n \"h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0\",\n className,\n )}\n {...props}\n />\n );\n}\nexport function TableCell({ className, ...props }: React.ComponentProps<\"td\">) {\n return (\n <td\n data-slot=\"table-cell\"\n className={cn(\"p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0\", className)}\n {...props}\n />\n );\n}\nexport function TableCaption({ className, ...props }: React.ComponentProps<\"caption\">) {\n return (\n <caption\n data-slot=\"table-caption\"\n className={cn(\"mt-4 text-sm text-muted-foreground\", className)}\n {...props}\n />\n );\n}\n\nexport function TableFooter({ className, ...props }: React.ComponentProps<\"tfoot\">) {\n return (\n <tfoot\n data-slot=\"table-footer\"\n className={cn(\"border-t border-border bg-muted/50 font-medium [&>tr]:last:border-b-0\", className)}\n {...props}\n />\n );\n}\n","import {\n Tab as AriaTab,\n TabList as AriaTabList,\n TabPanel as AriaTabPanel,\n TabPanels as AriaTabPanels,\n Tabs as AriaTabs,\n composeRenderProps,\n type TabListProps as AriaTabListProps,\n type TabPanelProps as AriaTabPanelProps,\n type TabPanelsProps as AriaTabPanelsProps,\n type TabProps as AriaTabProps,\n type TabsProps as AriaTabsProps,\n} from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\n\nexport type TabsProps = AriaTabsProps;\nexport type TabProps = AriaTabProps;\nexport type TabPanelProps = AriaTabPanelProps;\n\nexport function Tabs({ className, ...props }: AriaTabsProps) {\n return <AriaTabs data-slot=\"tabs\" className={composeRenderProps(className, (value) => cn(\"flex flex-col gap-2\", value))} {...props} />;\n}\n\nexport function TabsList<T extends object>({ className, ...props }: AriaTabListProps<T>) {\n return <AriaTabList data-slot=\"tabs-list\" className={composeRenderProps(className, (value) => cn(\"inline-flex w-fit items-center gap-1 rounded-lg bg-muted p-1 text-muted-foreground\", value))} {...props} />;\n}\n\nexport function TabsTrigger({ className, ...props }: AriaTabProps) {\n return <AriaTab data-slot=\"tabs-trigger\" className={composeRenderProps(className, (value) => cn(\"inline-flex h-7 items-center justify-center gap-1.5 rounded-md px-2.5 text-sm font-medium outline-none transition-colors data-hovered:text-foreground data-selected:bg-background data-selected:text-foreground data-selected:shadow-sm data-focus-visible:ring-3 data-focus-visible:ring-ring/50 data-disabled:cursor-not-allowed data-disabled:opacity-50\", value))} {...props} />;\n}\n\nexport function TabsPanels<T extends object>({ className, ...props }: AriaTabPanelsProps<T>) {\n return <AriaTabPanels data-slot=\"tabs-panels\" className={cn(\"min-w-0\", className)} {...props} />;\n}\n\nexport function TabsContent({ className, ...props }: AriaTabPanelProps) {\n return <AriaTabPanel data-slot=\"tabs-content\" className={composeRenderProps(className, (value) => cn(\"text-sm outline-none data-focus-visible:ring-3 data-focus-visible:ring-ring/50\", value))} {...props} />;\n}\n","import { useEffect, type ReactNode } from \"react\";\nimport { sileo, Toaster as SileoToaster } from \"sileo\";\n\nexport type ToastVariant = \"default\" | \"success\" | \"error\" | \"warning\" | \"info\";\nexport type ToastPosition = \"top-left\" | \"top-center\" | \"top-right\" | \"bottom-left\" | \"bottom-center\" | \"bottom-right\";\nexport type ToastAction = { label: string; onPress: () => void };\nexport type ToastOptions = { title: string; description?: string; variant?: ToastVariant; duration?: number; position?: ToastPosition; action?: ToastAction };\nexport type ToastData = ToastOptions & { id: string; state: \"open\" | \"closing\" };\ntype ToastPromiseOptions<T> = { loading: string; success: string | ((value: T) => string); error: string | ((error: unknown) => string); description?: string; position?: ToastPosition };\n\nfunction toSileoOptions({ title, description, duration, position, action }: ToastOptions) {\n return {\n title,\n description,\n duration: duration === 0 ? null : duration,\n position,\n button: action ? { title: action.label, onClick: action.onPress } : undefined,\n };\n}\n\nfunction create(options: ToastOptions) {\n const sileoOptions = toSileoOptions(options);\n if (options.action) return sileo.action(sileoOptions);\n if (options.variant === \"success\") return sileo.success(sileoOptions);\n if (options.variant === \"error\") return sileo.error(sileoOptions);\n if (options.variant === \"warning\") return sileo.warning(sileoOptions);\n if (options.variant === \"info\") return sileo.info(sileoOptions);\n return sileo.show(sileoOptions);\n}\n\nexport const toast = Object.assign((options: ToastOptions) => create(options), {\n success: (title: string, options?: Omit<ToastOptions, \"title\" | \"variant\">) => create({ ...options, title, variant: \"success\" }),\n error: (title: string, options?: Omit<ToastOptions, \"title\" | \"variant\">) => create({ ...options, title, variant: \"error\" }),\n warning: (title: string, options?: Omit<ToastOptions, \"title\" | \"variant\">) => create({ ...options, title, variant: \"warning\" }),\n info: (title: string, options?: Omit<ToastOptions, \"title\" | \"variant\">) => create({ ...options, title, variant: \"info\" }),\n dismiss: (id: string) => sileo.dismiss(id),\n promise: <T,>(promise: Promise<T>, options: ToastPromiseOptions<T>) => {\n const shared = { description: options.description, position: options.position };\n return sileo.promise(promise, {\n loading: { ...shared, title: options.loading },\n success: (value) => ({ ...shared, title: typeof options.success === \"function\" ? options.success(value) : options.success }),\n error: (error) => ({ ...shared, title: typeof options.error === \"function\" ? options.error(error) : options.error }),\n position: options.position,\n });\n },\n});\n\nexport function useToast() { return toast; }\nexport function ToastProvider({ children }: { children: ReactNode }) { return <>{children}<Toaster /></>; }\n\nexport function Toaster({ position }: { position?: ToastPosition }) {\n return <SileoToaster position={position} options={{ fill: \"var(--ui-secondary)\" }} />;\n}\n\nexport function ToastViewport({ position, visiblePosition, className }: { position: ToastPosition; visiblePosition?: ToastPosition; className?: string }) {\n void className;\n if (visiblePosition && visiblePosition !== position) return null;\n return <Toaster position={position} />;\n}\n\nexport function Toast({ id, title, description, variant = \"default\", action, state = \"open\", duration = 0, position, onDismiss }: ToastData & { onDismiss?: () => void }) {\n useEffect(() => {\n if (state !== \"open\") return;\n const toastId = create({ title, description, variant, action, duration, position });\n return () => {\n sileo.dismiss(toastId);\n onDismiss?.();\n };\n }, [action, description, duration, id, onDismiss, position, state, title, variant]);\n return null;\n}\n","import type * as React from \"react\";\nimport { cn } from \"../../lib/cn\";\nexport function Toolbar({ className, ...props }: React.ComponentProps<\"div\">) { return <div role=\"toolbar\" data-slot=\"toolbar\" className={cn(\"flex flex-wrap items-center gap-2\", className)} {...props} />; }\nexport function ToolbarGroup({ className, ...props }: React.ComponentProps<\"div\">) { return <div data-slot=\"toolbar-group\" className={cn(\"flex items-center gap-2\", className)} {...props} />; }\nexport function ToolbarSpacer({ className, ...props }: React.ComponentProps<\"div\">) { return <div aria-hidden=\"true\" className={cn(\"hidden flex-1 sm:block\", className)} {...props} />; }\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;A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UAAU,WAAW,QAAQ,QAAQ,QAAQ,WAAW,GAAG,UAAU,UAAU,GAA2C;AACxK,gCAAU,MAAM;AACd,QAAI,UAAU,OAAQ;AACtB,UAAM,UAAU,OAAO,EAAE,OAAO,aAAa,SAAS,QAAQ,UAAU,SAAS,CAAC;AAClF,WAAO,MAAM;AACX,yBAAM,QAAQ,OAAO;AACrB,kBAAY;AAAA,IACd;AAAA,EACF,GAAG,CAAC,QAAQ,aAAa,UAAU,IAAI,WAAW,UAAU,OAAO,OAAO,OAAO,CAAC;AAClF,SAAO;AACT;;;ACpEuF,IAAAC,uBAAA;AAAhF,SAAS,QAAQ,EAAE,WAAW,GAAG,MAAM,GAAgC;AAAE,SAAO,8CAAC,SAAI,MAAK,WAAU,aAAU,WAAU,WAAW,GAAG,qCAAqC,SAAS,GAAI,GAAG,OAAO;AAAI;AACtM,SAAS,aAAa,EAAE,WAAW,GAAG,MAAM,GAAgC;AAAE,SAAO,8CAAC,SAAI,aAAU,iBAAgB,WAAW,GAAG,2BAA2B,SAAS,GAAI,GAAG,OAAO;AAAI;AACxL,SAAS,cAAc,EAAE,WAAW,GAAG,MAAM,GAAgC;AAAE,SAAO,8CAAC,SAAI,eAAY,QAAO,WAAW,GAAG,0BAA0B,SAAS,GAAI,GAAG,OAAO;AAAI;","names":["FieldError","Input","Label","OtpInput","Popover","Textarea","import_react","import_react","AccordionPrimitive","AccordionItemPrimitive","AccordionHeaderPrimitive","AccordionTriggerPrimitive","AccordionContentPrimitive","import_class_variance_authority","import_jsx_runtime","import_jsx_runtime","import_react","import_jsx_runtime","import_class_variance_authority","import_react_aria_components","import_jsx_runtime","import_react_aria_components","import_jsx_runtime","AriaBreadcrumbs","AriaBreadcrumb","AriaLink","import_class_variance_authority","import_react_aria_components","import_jsx_runtime","SeparatorPrimitive","import_jsx_runtime","import_class_variance_authority","import_react","import_react_aria_components","import_jsx_runtime","ButtonPrimitive","LinkPrimitive","import_jsx_runtime","import_lucide_react","import_react_aria_components","import_jsx_runtime","AriaCheckbox","import_react","import_react_aria_components","import_jsx_runtime","AriaComboBox","AriaComboBox","import_react_aria_components","import_jsx_runtime","AriaComboBox","AriaInput","import_lucide_react","import_react_aria_components","import_jsx_runtime","AriaDialog","import_jsx_runtime","import_lucide_react","import_react_aria_components","import_jsx_runtime","DisclosureButton","import_lucide_react","React","import_react_aria_components","import_jsx_runtime","AriaDialog","import_lucide_react","import_jsx_runtime","import_react_aria_components","import_jsx_runtime","AriaDialog","React","import_class_variance_authority","import_lucide_react","import_react_aria_components","import_jsx_runtime","MenuTriggerPrimitive","PopoverPrimitive","MenuPrimitive","MenuSectionPrimitive","HeaderPrimitive","MenuItemPrimitive","className","children","SubmenuTriggerPrimitive","SeparatorPrimitive","import_class_variance_authority","import_jsx_runtime","import_class_variance_authority","import_react","import_react_aria_components","import_jsx_runtime","Label","LabelPrimitive","import_jsx_runtime","Label","FieldError","import_react","import_lucide_react","import_jsx_runtime","import_jsx_runtime","import_react_aria_components","React","import_react_aria_components","import_jsx_runtime","TooltipTriggerPrimitive","TooltipPrimitive","placement","import_jsx_runtime","import_class_variance_authority","import_react","import_react_aria_components","import_jsx_runtime","Input","AriaInput","import_react","import_react_aria_components","import_jsx_runtime","AriaTextArea","Textarea","import_jsx_runtime","Input","Textarea","import_jsx_runtime","import_lucide_react","import_jsx_runtime","import_react_aria_components","import_jsx_runtime","AriaMenuTrigger","AriaMenu","AriaMenuItem","import_react","import_react_aria_components","import_jsx_runtime","AriaInput","OtpInput","import_jsx_runtime","import_lucide_react","import_jsx_runtime","import_react_aria_components","import_jsx_runtime","AriaDialogTrigger","Popover","AriaPopover","import_lucide_react","import_react_aria_components","import_jsx_runtime","AriaNumberField","AriaGroup","AriaButton","AriaInput","import_react_aria_components","import_lucide_react","import_jsx_runtime","AriaSearchField","import_react_aria_components","import_lucide_react","import_jsx_runtime","AriaSelect","AriaButton","AriaSelectValue","import_lucide_react","import_react_aria_components","import_jsx_runtime","SheetTriggerPrimitive","ModalOverlayPrimitive","ModalPrimitive","SheetPrimitive","import_lucide_react","import_react","import_react_aria_components","import_jsx_runtime","import_jsx_runtime","import_lucide_react","import_jsx_runtime","import_react","import_react_aria_components","import_jsx_runtime","AriaSwitch","import_jsx_runtime","import_react_aria_components","import_jsx_runtime","AriaTabs","AriaTabList","AriaTab","AriaTabPanels","AriaTabPanel","import_react","import_jsx_runtime","SileoToaster","import_jsx_runtime"]}
|
|
1
|
+
{"version":3,"sources":["../src/index.ts","../src/hooks/use-autosave.ts","../src/hooks/use-debounced-value.ts","../src/hooks/use-form-dirty.ts","../src/lib/action-ripple.ts","../src/lib/cn.ts","../src/lib/text-match.ts","../src/ui/accordion/accordion.tsx","../src/ui/alert-dialog/alert-dialog.tsx","../src/ui/button/button.tsx","../src/ui/alert/alert.tsx","../src/ui/app-shell/app-shell.tsx","../src/ui/avatar/avatar.tsx","../src/ui/badge/badge.tsx","../src/ui/breadcrumb/breadcrumb.tsx","../src/ui/button-group/button-group.tsx","../src/ui/separator/separator.tsx","../src/ui/card/card.tsx","../src/ui/checkbox/checkbox.tsx","../src/ui/collapsible/collapsible.tsx","../src/ui/combobox/combobox.tsx","../src/ui/command/command.tsx","../src/ui/modal-dialog/modal-dialog.tsx","../src/ui/confirm-dialog/confirm-dialog.tsx","../src/ui/danger-zone/danger-zone.tsx","../src/ui/dialog/dialog.tsx","../src/ui/doc-preview/doc-preview.tsx","../src/ui/drawer/drawer.tsx","../src/ui/dropdown-menu/dropdown-menu.tsx","../src/ui/empty-state/empty-state.tsx","../src/ui/field/field.tsx","../src/ui/label/label.tsx","../src/ui/form-feedback/form-feedback.tsx","../src/ui/form-row/form-row.tsx","../src/ui/icon-button/icon-button.tsx","../src/ui/tooltip/tooltip.tsx","../src/ui/input-group/input-group.tsx","../src/ui/input/input.tsx","../src/ui/textarea/textarea.tsx","../src/ui/kbd/kbd.tsx","../src/ui/loading-overlay/loading-overlay.tsx","../src/ui/menu/menu.tsx","../src/ui/metric-card/metric-card.tsx","../src/ui/otp-input/otp-input.tsx","../src/ui/page-header/page-header.tsx","../src/ui/pagination/pagination.tsx","../src/ui/popover/popover.tsx","../src/ui/quantity-input/quantity-input.tsx","../src/ui/select/select.tsx","../src/ui/sheet/sheet.tsx","../src/ui/sidebar/sidebar.tsx","../src/ui/skeleton/skeleton.tsx","../src/ui/submit-button/submit-button.tsx","../src/ui/switch/switch.tsx","../src/ui/table/table.tsx","../src/ui/tabs/tabs.tsx","../src/ui/toast/toast.tsx","../src/ui/toolbar/toolbar.tsx"],"sourcesContent":["export * from \"./hooks/use-autosave\";\nexport * from \"./hooks/use-debounced-value\";\nexport * from \"./hooks/use-form-dirty\";\nexport * from \"./lib/action-ripple\";\nexport * from \"./lib/cn\";\nexport * from \"./lib/text-match\";\nexport * from \"./ui/accordion/accordion\";\nexport * from \"./ui/alert-dialog/alert-dialog\";\nexport * from \"./ui/alert/alert\";\nexport * from \"./ui/app-shell/app-shell\";\nexport * from \"./ui/avatar/avatar\";\nexport * from \"./ui/badge/badge\";\nexport * from \"./ui/breadcrumb/breadcrumb\";\nexport * from \"./ui/button-group/button-group\";\nexport * from \"./ui/button/button\";\nexport * from \"./ui/card/card\";\nexport * from \"./ui/checkbox/checkbox\";\nexport * from \"./ui/collapsible/collapsible\";\nexport * from \"./ui/combobox/combobox\";\nexport * from \"./ui/command/command\";\nexport * from \"./ui/confirm-dialog/confirm-dialog\";\nexport * from \"./ui/danger-zone/danger-zone\";\nexport * from \"./ui/dialog/dialog\";\nexport * from \"./ui/doc-preview/doc-preview\";\nexport * from \"./ui/drawer/drawer\";\nexport * from \"./ui/dropdown-menu/dropdown-menu\";\nexport * from \"./ui/empty-state/empty-state\";\nexport * from \"./ui/field/field\";\nexport * from \"./ui/form-feedback/form-feedback\";\nexport * from \"./ui/form-row/form-row\";\nexport * from \"./ui/icon-button/icon-button\";\nexport * from \"./ui/input-group/input-group\";\nexport * from \"./ui/input/input\";\nexport * from \"./ui/kbd/kbd\";\nexport * from \"./ui/label/label\";\nexport * from \"./ui/loading-overlay/loading-overlay\";\nexport * from \"./ui/menu/menu\";\nexport * from \"./ui/metric-card/metric-card\";\nexport * from \"./ui/modal-dialog/modal-dialog\";\nexport * from \"./ui/otp-input/otp-input\";\nexport * from \"./ui/page-header/page-header\";\nexport * from \"./ui/pagination/pagination\";\nexport * from \"./ui/popover/popover\";\nexport * from \"./ui/quantity-input/quantity-input\";\nexport * from \"./ui/select/select\";\nexport * from \"./ui/separator/separator\";\nexport * from \"./ui/sheet/sheet\";\nexport * from \"./ui/sidebar/sidebar\";\nexport * from \"./ui/skeleton/skeleton\";\nexport * from \"./ui/submit-button/submit-button\";\nexport * from \"./ui/switch/switch\";\nexport * from \"./ui/table/table\";\nexport * from \"./ui/tabs/tabs\";\nexport * from \"./ui/textarea/textarea\";\nexport * from \"./ui/toast/toast\";\nexport * from \"./ui/toolbar/toolbar\";\nexport * from \"./ui/tooltip/tooltip\";\n\n","import { useCallback, useEffect, useRef, useState } from \"react\";\n\nexport type AutosaveStatus = \"idle\" | \"saving\" | \"saved\" | \"error\";\n\nexport type UseAutosaveOptions<T> = {\n data: T;\n onSave: (data: T) => Promise<void>;\n debounceMs?: number;\n enabled?: boolean;\n serialize?: (data: T) => string;\n};\n\n/** Debounced autosave with stale-value protection and an explicit `saveNow`. */\nexport function useAutosave<T>({\n data,\n onSave,\n debounceMs = 1_000,\n enabled = true,\n serialize = JSON.stringify,\n}: UseAutosaveOptions<T>) {\n const [status, setStatus] = useState<AutosaveStatus>(\"idle\");\n const [error, setError] = useState<Error | null>(null);\n const lastSaved = useRef<string | null>(null);\n const saveRef = useRef(onSave);\n const serializeRef = useRef(serialize);\n\n useEffect(() => {\n saveRef.current = onSave;\n serializeRef.current = serialize;\n }, [onSave, serialize]);\n\n const save = useCallback(async (value: T) => {\n setStatus(\"saving\");\n setError(null);\n try {\n await saveRef.current(value);\n lastSaved.current = serializeRef.current(value);\n setStatus(\"saved\");\n } catch (cause) {\n setError(cause instanceof Error ? cause : new Error(\"No se pudo guardar.\"));\n setStatus(\"error\");\n }\n }, []);\n\n useEffect(() => {\n if (!enabled) return;\n const snapshot = serializeRef.current(data);\n if (lastSaved.current === null) {\n lastSaved.current = snapshot;\n return;\n }\n if (snapshot === lastSaved.current) return;\n const timeout = window.setTimeout(() => void save(data), debounceMs);\n return () => window.clearTimeout(timeout);\n }, [data, debounceMs, enabled, save]);\n\n return { status, error, saveNow: () => save(data) };\n}","import { useEffect, useState } from \"react\";\n\n/** Returns a value only after it has been stable for the supplied delay. */\nexport function useDebouncedValue<T>(value: T, delay: number = 250) {\n const [debouncedValue, setDebouncedValue] = useState(value);\n\n useEffect(() => {\n const timeout = window.setTimeout(() => setDebouncedValue(value), delay);\n return () => window.clearTimeout(timeout);\n }, [delay, value]);\n\n return debouncedValue;\n}","import { type RefCallback, useCallback, useRef, useState } from \"react\";\n\nexport function formSnapshot(form: HTMLFormElement): string {\n const entries: Array<[string, string]> = Array.from(new FormData(form), ([key, value]) => [key, typeof value === \"string\" ? value : value.name]);\n entries.sort(([left], [right]) => left.localeCompare(right));\n return JSON.stringify(entries);\n}\n\nexport interface UseFormDirtyResult<T extends HTMLFormElement = HTMLFormElement> {\n formRef: RefCallback<T | null>;\n isDirty: boolean;\n markDirty: () => void;\n reset: () => void;\n}\n\n/** Tracks changes in native form controls and supports controlled fields. */\nexport function useFormDirty<T extends HTMLFormElement = HTMLFormElement>(): UseFormDirtyResult<T> {\n const formElement = useRef<T | null>(null);\n const baseline = useRef<string | null>(null);\n const [isDirty, setIsDirty] = useState(false);\n\n const recompute = useCallback(() => {\n if (formElement.current && baseline.current !== null) {\n setIsDirty(formSnapshot(formElement.current) !== baseline.current);\n }\n }, []);\n\n const reset = useCallback(() => {\n if (formElement.current) {\n baseline.current = formSnapshot(formElement.current);\n setIsDirty(false);\n }\n }, []);\n\n const formRef = useCallback<RefCallback<T | null>>((form) => {\n if (formElement.current) {\n formElement.current.removeEventListener(\"input\", recompute);\n formElement.current.removeEventListener(\"change\", recompute);\n formElement.current.removeEventListener(\"reset\", recompute);\n }\n formElement.current = form;\n if (form) {\n baseline.current = formSnapshot(form);\n setIsDirty(false);\n form.addEventListener(\"input\", recompute);\n form.addEventListener(\"change\", recompute);\n form.addEventListener(\"reset\", recompute);\n }\n }, [recompute]);\n\n return { formRef, isDirty, markDirty: () => setIsDirty(true), reset };\n}\n","import { cva } from \"class-variance-authority\";\n\n/**\n * Provides the clipping and stacking context for a transient action ripple.\n */\nexport const actionRipple = cva(\n \"relative isolate overflow-hidden\",\n);\n","import { type ClassValue, clsx } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\n/** Merges conditional class names, resolving conflicting Tailwind utilities. */\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}","export type TextMatchPart = {\n text: string;\n match: boolean;\n};\n\nfunction normalize(value: string) {\n return value.normalize(\"NFD\").replace(/[\\u0300-\\u036f]/g, \"\").toLocaleLowerCase();\n}\n\nfunction normalizedTextWithRanges(value: string) {\n const ranges: Array<{ start: number; end: number }> = [];\n let normalized = \"\";\n let sourceIndex = 0;\n\n for (const character of value) {\n const start = sourceIndex;\n sourceIndex += character.length;\n const normalizedCharacter = normalize(character);\n normalized += normalizedCharacter;\n for (let index = 0; index < normalizedCharacter.length; index += 1) {\n ranges.push({ start, end: sourceIndex });\n }\n }\n\n return { normalized, ranges };\n}\n\n/**\n * Splits text into matching and non-matching chunks. Matching is case- and\n * accent-insensitive while preserving the original text for rendering.\n */\nexport function getTextMatchParts(text: string, query: string): TextMatchPart[] {\n const term = normalize(query.trim());\n if (!term) return [{ text, match: false }];\n\n const { normalized, ranges } = normalizedTextWithRanges(text);\n const parts: TextMatchPart[] = [];\n let sourceCursor = 0;\n let index = normalized.indexOf(term);\n\n while (index !== -1) {\n const rangeStart = ranges[index]?.start;\n const rangeEnd = ranges[index + term.length - 1]?.end;\n if (rangeStart === undefined || rangeEnd === undefined) break;\n if (rangeStart > sourceCursor) parts.push({ text: text.slice(sourceCursor, rangeStart), match: false });\n parts.push({ text: text.slice(rangeStart, rangeEnd), match: true });\n sourceCursor = rangeEnd;\n index = normalized.indexOf(term, index + term.length);\n }\n\n if (sourceCursor < text.length) parts.push({ text: text.slice(sourceCursor), match: false });\n return parts.length ? parts : [{ text, match: false }];\n}\n","\"use client\"\n\nimport * as React from \"react\"\nimport { ChevronDownIcon, ChevronUpIcon } from \"lucide-react\"\nimport {\n DisclosurePanel as AccordionContentPrimitive,\n Heading as AccordionHeaderPrimitive,\n Disclosure as AccordionItemPrimitive,\n DisclosureGroup as AccordionPrimitive,\n Button as AccordionTriggerPrimitive,\n type ButtonProps,\n type DisclosureGroupProps,\n type DisclosurePanelProps,\n type DisclosureProps,\n} from \"react-aria-components\"\nimport { cn } from \"../../lib/cn\"\n\n/** Groups related expandable sections and manages their expanded state. */\nexport function Accordion({ className, ...props }: DisclosureGroupProps) {\n return (\n <AccordionPrimitive\n data-slot=\"accordion\"\n className={cn(\"flex w-full flex-col text-foreground\", className)}\n {...props}\n />\n )\n}\n\n/** A single expandable section within an {@link Accordion}. */\nexport function AccordionItem({ className, ...props }: DisclosureProps) {\n return (\n <AccordionItemPrimitive\n data-slot=\"accordion-item\"\n className={cn(\"border-border not-last:border-b\", className)}\n {...props}\n />\n )\n}\n\n/** Accessible heading button that expands or collapses its {@link AccordionItem}. */\nexport function AccordionTrigger({\n className,\n children,\n ...props\n}: Omit<ButtonProps, \"children\"> & { children: React.ReactNode }) {\n return (\n <AccordionHeaderPrimitive className=\"flex\">\n <AccordionTriggerPrimitive\n slot=\"trigger\"\n data-slot=\"accordion-trigger\"\n className={cn(\n \"group/accordion-trigger relative flex flex-1 items-start justify-between gap-3 rounded-lg border border-transparent px-2.5 py-2.5 text-left text-sm font-medium text-foreground transition-colors outline-none hover:bg-muted/50 aria-expanded:bg-muted/50 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 **:data-[slot=accordion-trigger-icon]:ml-auto **:data-[slot=accordion-trigger-icon]:size-4 **:data-[slot=accordion-trigger-icon]:text-muted-foreground\",\n className\n )}\n {...props}\n >\n {children}\n <ChevronDownIcon\n data-slot=\"accordion-trigger-icon\"\n className=\"pointer-events-none shrink-0 group-aria-expanded/accordion-trigger:hidden\"\n />\n <ChevronUpIcon\n data-slot=\"accordion-trigger-icon\"\n className=\"pointer-events-none hidden shrink-0 group-aria-expanded/accordion-trigger:inline\"\n />\n </AccordionTriggerPrimitive>\n </AccordionHeaderPrimitive>\n )\n}\n\n/** Panel revealed when its parent {@link AccordionItem} is expanded. */\nexport function AccordionContent({\n className,\n children,\n ...props\n}: DisclosurePanelProps) {\n return (\n <AccordionContentPrimitive\n data-slot=\"accordion-content\"\n className=\"h-(--disclosure-panel-height) overflow-clip text-sm text-muted-foreground transition-[height] data-open:animate-accordion-down data-closed:animate-accordion-up\"\n {...props}\n >\n <div\n className={cn(\n \"px-2.5 pt-0 pb-3 [&_a]:text-foreground [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-primary [&_p:not(:last-child)]:mb-4\",\n className\n )}\n >\n {children}\n </div>\n </AccordionContentPrimitive>\n )\n}\n","import * as React from \"react\";\nimport {\n Dialog as AriaDialog,\n Heading,\n Modal,\n ModalOverlay,\n Text,\n type ModalOverlayProps,\n} from \"react-aria-components\";\n\nimport { cn } from \"../../lib/cn\";\nimport { Button } from \"../button/button\";\n\ntype AlertDialogContextValue = { open: boolean; setOpen: (open: boolean) => void };\nconst AlertDialogContext = React.createContext<AlertDialogContextValue | null>(null);\n\nfunction useAlertDialogContext() {\n const context = React.useContext(AlertDialogContext);\n if (!context) throw new Error(\"AlertDialog components must be rendered within AlertDialog.\");\n return context;\n}\n\nexport type AlertDialogProps = {\n children: React.ReactNode;\n open: boolean;\n onOpenChange: (open: boolean) => void;\n};\n\n/** Controlled, composable confirmation dialog for domain-specific destructive actions. */\nexport function AlertDialog({ children, open, onOpenChange }: AlertDialogProps) {\n return <AlertDialogContext.Provider value={{ open, setOpen: onOpenChange }}>{children}</AlertDialogContext.Provider>;\n}\n\nexport function AlertDialogPortal({ children }: { children?: React.ReactNode }) {\n return <>{children}</>;\n}\n\nexport function AlertDialogTrigger({ children, ...props }: Omit<React.ComponentProps<typeof Button>, \"onPress\">) {\n const { setOpen } = useAlertDialogContext();\n return <Button data-slot=\"alert-dialog-trigger\" onPress={() => setOpen(true)} {...props}>{children}</Button>;\n}\n\nexport function AlertDialogOverlay({ className, ...props }: Omit<ModalOverlayProps, \"children\" | \"className\" | \"isOpen\" | \"onOpenChange\"> & { className?: string }) {\n const { open, setOpen } = useAlertDialogContext();\n if (!open) return null;\n return <ModalOverlay data-slot=\"alert-dialog-overlay\" isDismissable isOpen={open} onOpenChange={setOpen} className={cn(\"fixed inset-0 isolate z-50 grid place-items-center bg-black/10 p-4 backdrop-blur-[1px]\", className)} {...props} />;\n}\n\nexport function AlertDialogContent({ className, size = \"default\", children }: { children?: React.ReactNode; className?: string; size?: \"default\" | \"sm\" }) {\n const { open, setOpen } = useAlertDialogContext();\n if (!open) return null;\n return <AlertDialogPortal><ModalOverlay isDismissable isOpen={open} onOpenChange={setOpen} className=\"fixed inset-0 isolate z-50 grid place-items-center bg-black/10 p-4 backdrop-blur-[1px]\"><Modal className={cn(\"w-full max-w-[calc(100%-2rem)] outline-none\", size === \"sm\" ? \"sm:max-w-xs\" : \"sm:max-w-sm\", className)}><AriaDialog role=\"alertdialog\" data-slot=\"alert-dialog-content\" className=\"grid gap-4 rounded-xl bg-background p-4 text-sm text-foreground ring-1 ring-foreground/10 outline-none\">{children}</AriaDialog></Modal></ModalOverlay></AlertDialogPortal>;\n}\n\nexport function AlertDialogHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return <div data-slot=\"alert-dialog-header\" className={cn(\"flex flex-col gap-2 text-center sm:text-left\", className)} {...props} />;\n}\n\nexport function AlertDialogFooter({ className, ...props }: React.ComponentProps<\"div\">) {\n return <div data-slot=\"alert-dialog-footer\" className={cn(\"-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end\", className)} {...props} />;\n}\n\nexport function AlertDialogTitle({ className, ...props }: Omit<React.ComponentProps<typeof Heading>, \"slot\">) {\n return <Heading slot=\"title\" data-slot=\"alert-dialog-title\" className={cn(\"font-heading text-base font-medium\", className)} {...props} />;\n}\n\nexport function AlertDialogDescription({ className, ...props }: Omit<React.ComponentProps<typeof Text>, \"slot\">) {\n return <Text slot=\"description\" data-slot=\"alert-dialog-description\" className={cn(\"text-sm text-muted-foreground\", className)} {...props} />;\n}\n\nexport function AlertDialogAction({ className, ...props }: React.ComponentProps<typeof Button>) {\n return <Button data-slot=\"alert-dialog-action\" className={cn(className)} {...props} />;\n}\n\nexport function AlertDialogCancel({ children = \"Cancelar\", onClick, ...props }: Omit<React.ComponentProps<typeof Button>, \"onPress\">) {\n const { setOpen } = useAlertDialogContext();\n return <Button data-slot=\"alert-dialog-cancel\" variant=\"outline\" onClick={onClick} onPress={() => setOpen(false)} {...props}>{children}</Button>;\n}\n","\"use client\";\n\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport { useState } from \"react\";\nimport type * as React from \"react\";\nimport {\n Button as ButtonPrimitive,\n type ButtonProps as ButtonPrimitiveProps,\n Link as LinkPrimitive,\n type LinkProps as LinkPrimitiveProps,\n} from \"react-aria-components\";\n\nimport { actionRipple } from \"../../lib/action-ripple\";\nimport { cn } from \"../../lib/cn\";\n\ntype RipplePosition = {\n x: string;\n y: string;\n};\n\ntype Ripple = {\n id: number;\n position: RipplePosition;\n};\n\nconst centeredRipplePosition: RipplePosition = { x: \"50%\", y: \"50%\" };\n\ntype RippleEvent = {\n pointerType?: string;\n target: EventTarget | null;\n x?: number;\n y?: number;\n};\n\nfunction getRipplePosition(event: RippleEvent): RipplePosition {\n if (event.pointerType === \"keyboard\" || event.pointerType === \"virtual\") {\n return centeredRipplePosition;\n }\n\n if (!(event.target instanceof Element) || event.x === undefined || event.y === undefined) {\n return centeredRipplePosition;\n }\n\n const bounds = event.target.getBoundingClientRect();\n return {\n x: `${event.x - bounds.left}px`,\n y: `${event.y - bounds.top}px`,\n };\n}\n\nfunction useActionRipple(enabled: boolean) {\n const [ripple, setRipple] = useState<Ripple | null>(null);\n\n function triggerRipple(event: RippleEvent) {\n if (!enabled) return;\n\n const position = getRipplePosition(event);\n setRipple((currentRipple) => ({\n id: (currentRipple?.id ?? 0) + 1,\n position,\n }));\n }\n\n const rippleElement = ripple ? (\n <span\n key={ripple.id}\n aria-hidden=\"true\"\n data-slot=\"button-ripple\"\n className=\"pointer-events-none absolute aspect-square w-full rounded-full bg-current animate-ui-ripple motion-reduce:hidden\"\n style={{ left: ripple.position.x, top: ripple.position.y }}\n onAnimationEnd={() =>\n setRipple((currentRipple) => (currentRipple?.id === ripple.id ? null : currentRipple))\n }\n />\n ) : null;\n\n return { ripple: rippleElement, triggerRipple };\n}\n\nconst buttonVariants = cva(\n cn(\n \"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 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\",\n actionRipple(),\n ),\n {\n variants: {\n variant: {\n default: \"bg-primary text-primary-foreground hover:bg-primary/80\",\n outline:\n \"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\",\n secondary:\n \"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground\",\n ghost:\n \"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50\",\n destructive:\n \"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40\",\n link: \"text-primary underline-offset-4 hover:underline after:hidden\",\n },\n size: {\n default:\n \"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2\",\n 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\",\n 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\",\n lg: \"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2\",\n icon: \"size-8\",\n \"icon-xs\":\n \"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3\",\n \"icon-sm\":\n \"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg\",\n \"icon-lg\": \"size-9\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"default\",\n },\n },\n);\n\n/** Props for a button that triggers an in-page action. */\nexport type ButtonProps = Omit<ButtonPrimitiveProps, \"className\"> &\n React.RefAttributes<HTMLButtonElement> &\n VariantProps<typeof buttonVariants> & {\n /** HTML-compatible alias for `isDisabled`. */\n disabled?: boolean;\n /** Visual treatment for the action's priority and intent. */\n variant?: VariantProps<typeof buttonVariants>[\"variant\"];\n /** Preset height, spacing and icon dimensions. */\n size?: VariantProps<typeof buttonVariants>[\"size\"];\n className?: string;\n };\n\n/**\n * Accessible button with visual variants and a press ripple.\n * Provide an `aria-label` when it contains only an icon.\n */\nexport function Button({ className, variant = \"default\", size = \"default\", children, disabled, isDisabled, onClick, onPress, ...props }: ButtonProps) {\n const { ripple, triggerRipple } = useActionRipple(variant !== \"link\");\n\n return (\n <ButtonPrimitive\n data-slot=\"button\"\n data-variant={variant}\n data-size={size}\n className={cn(buttonVariants({ variant, size, className }))}\n onClick={onClick}\n isDisabled={isDisabled ?? disabled}\n onPress={(event) => {\n onPress?.(event);\n triggerRipple(event);\n }}\n {...props}\n >\n {(renderProps) => (\n <>\n {typeof children === \"function\" ? children(renderProps) : children}\n {ripple}\n </>\n )}\n </ButtonPrimitive>\n );\n}\n\n/** Props for a link styled consistently with {@link Button}. */\nexport type LinkButtonProps = Omit<LinkPrimitiveProps, \"className\"> &\n VariantProps<typeof buttonVariants> & {\n /** Visual treatment for the navigation action's priority and intent. */\n variant?: VariantProps<typeof buttonVariants>[\"variant\"];\n /** Preset height, spacing and icon dimensions. */\n size?: VariantProps<typeof buttonVariants>[\"size\"];\n className?: string;\n };\n\n/**\n * Navigation link styled as a {@link Button}.\n * Provide an `aria-label` when it contains only an icon.\n */\nexport function LinkButton({\n className,\n variant = \"default\",\n size = \"default\",\n children,\n onClick,\n onPress,\n ...props\n}: LinkButtonProps) {\n const { ripple, triggerRipple } = useActionRipple(variant !== \"link\");\n\n return (\n <LinkPrimitive\n data-slot=\"button\"\n data-variant={variant}\n data-size={size}\n className={cn(buttonVariants({ variant, size, className }))}\n onClick={onClick}\n onPress={(event) => {\n onPress?.(event);\n triggerRipple(event);\n }}\n {...props}\n >\n {(renderProps) => (\n <>\n {typeof children === \"function\" ? children(renderProps) : children}\n {ripple}\n </>\n )}\n </LinkPrimitive>\n );\n}\n\nexport { buttonVariants };\n","import { cva, type VariantProps } from \"class-variance-authority\";\nimport type * as React from \"react\";\n\nimport { cn } from \"../../lib/cn\";\n\nconst alertVariants = cva(\n \"group/alert relative grid w-full gap-0.5 rounded-lg border border-border px-2.5 py-2 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4\",\n {\n variants: {\n variant: {\n default: \"bg-card text-card-foreground\",\n info: \"border-info/30 bg-info/5 text-info\",\n success: \"border-success/30 bg-success/5 text-success\",\n warning: \"border-warning/30 bg-warning/5 text-warning\",\n destructive:\n \"border-destructive/30 bg-destructive/5 text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n },\n);\n\nexport type AlertProps = React.ComponentProps<\"div\"> &\n VariantProps<typeof alertVariants> & {\n /** Communicates the alert's semantic intent. */\n variant?: VariantProps<typeof alertVariants>[\"variant\"];\n };\n\n/** Announces a concise status, warning or error message. */\nfunction Alert({ className, variant, ...props }: AlertProps) {\n return (\n <div\n data-slot=\"alert\"\n role=\"alert\"\n className={cn(alertVariants({ variant }), className)}\n {...props}\n />\n );\n}\n\nfunction AlertTitle({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"alert-title\"\n className={cn(\n \"font-medium group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction AlertDescription({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"alert-description\"\n className={cn(\n \"text-sm text-balance text-muted-foreground md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction AlertAction({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div data-slot=\"alert-action\" className={cn(\"absolute top-2 right-2\", className)} {...props} />\n );\n}\n\nexport { Alert, AlertAction, AlertDescription, AlertTitle, alertVariants };\n","import type * as React from \"react\";\nimport { cn } from \"../../lib/cn\";\n\nexport type AppShellBreakpoint = \"sm\" | \"md\" | \"lg\";\n\nexport type AppShellProps = React.ComponentProps<\"div\"> & {\n /** Breakpoint at which the persistent sidebar replaces the mobile header. */\n sidebarBreakpoint?: AppShellBreakpoint;\n};\n\n/** Application layout foundation for a responsive sidebar, header and content area. */\nexport function AppShell({\n className,\n sidebarBreakpoint = \"md\",\n ...props\n}: AppShellProps) {\n return (\n <div\n data-slot=\"app-shell\"\n data-sidebar-breakpoint={sidebarBreakpoint}\n className={cn(\"bg-background text-foreground\", className)}\n {...props}\n />\n );\n}\n\nexport function AppShellSidebar({ className, ...props }: React.ComponentProps<\"aside\">) {\n return (\n <aside\n data-slot=\"app-shell-sidebar\"\n className={cn(\"w-56 shrink-0 border-r border-border bg-card text-foreground\", className)}\n {...props}\n />\n );\n}\n\nexport function AppShellMain({ className, ...props }: React.ComponentProps<\"main\">) {\n return <main data-slot=\"app-shell-main\" className={cn(\"bg-background\", className)} {...props} />;\n}\n\nexport function AppShellHeader({ className, ...props }: React.ComponentProps<\"header\">) {\n return (\n <header\n data-slot=\"app-shell-header\"\n className={cn(\"border-b border-border bg-background px-4\", className)}\n {...props}\n />\n );\n}\n\nexport function AppShellMobileHeader({\n className,\n ...props\n}: React.ComponentProps<\"header\">) {\n return (\n <header\n data-slot=\"app-shell-mobile-header\"\n className={cn(\"h-14 shrink-0 items-center gap-2 border-b border-border bg-background px-3\", className)}\n {...props}\n />\n );\n}\n\nexport type AppShellContentProps = React.ComponentProps<\"div\"> & {\n /** Maximum content width. Use `full` for dense application screens. */\n size?: \"default\" | \"wide\" | \"full\";\n /** Adds the standard responsive content padding. */\n padded?: boolean;\n /** Lets this region scroll while the surrounding shell remains fixed. */\n scrollable?: boolean;\n};\n\nexport function AppShellContent({\n className,\n size = \"wide\",\n padded = true,\n scrollable = true,\n ...props\n}: AppShellContentProps) {\n return (\n <div\n data-slot=\"app-shell-content\"\n data-size={size}\n data-padded={padded || undefined}\n data-scrollable={scrollable || undefined}\n className={className}\n {...props}\n />\n );\n}\n","import { createContext, useContext, useEffect, useState } from \"react\";\nimport { cn } from \"../../lib/cn\";\n\nexport type AvatarProps = React.ComponentProps<\"div\"> & {\n /** Avatar dimensions and fallback text size. */\n size?: \"xs\" | \"sm\" | \"default\" | \"lg\";\n};\n\nconst sizes = { xs: \"size-5 text-[10px]\", sm: \"size-6 text-xs\", default: \"size-8 text-sm\", lg: \"size-10 text-base\" };\n\ntype AvatarStatus = \"idle\" | \"loading\" | \"loaded\" | \"error\";\nconst AvatarContext = createContext<{\n status: AvatarStatus;\n setStatus: (status: AvatarStatus) => void;\n} | null>(null);\n\n/** Displays an image or fallback content for a person, organisation or entity. */\nexport function Avatar({ className, size = \"default\", children, ...props }: AvatarProps) {\n const [status, setStatus] = useState<AvatarStatus>(\"idle\");\n return <AvatarContext.Provider value={{ status, setStatus }}><div data-slot=\"avatar\" data-size={size} className={cn(\"group/avatar relative flex shrink-0 overflow-hidden rounded-full bg-muted text-muted-foreground\", sizes[size], className)} {...props}>{children}</div></AvatarContext.Provider>;\n}\n\nexport function AvatarImage({ className, src, onError, onLoad, ...props }: React.ComponentProps<\"img\">) {\n const avatar = useContext(AvatarContext);\n const [failed, setFailed] = useState(false);\n\n useEffect(() => {\n setFailed(false);\n avatar?.setStatus(src ? \"loading\" : \"idle\");\n }, [avatar?.setStatus, src]);\n\n if (failed || avatar?.status === \"error\") return null;\n return <img data-slot=\"avatar-image\" src={src} className={cn(\"aspect-square size-full object-cover\", className)} onLoad={(event) => { avatar?.setStatus(\"loaded\"); onLoad?.(event); }} onError={(event) => { setFailed(true); avatar?.setStatus(\"error\"); onError?.(event); }} {...props} />;\n}\n\nexport function AvatarFallback({ className, ...props }: React.ComponentProps<\"span\">) {\n const avatar = useContext(AvatarContext);\n if (avatar?.status === \"loaded\") return null;\n return <span data-slot=\"avatar-fallback\" className={cn(\"flex size-full items-center justify-center font-medium\", className)} {...props} />;\n}\n\nexport function AvatarBadge({ className, ...props }: React.ComponentProps<\"span\">) {\n return <span data-slot=\"avatar-badge\" className={cn(\"absolute right-0 bottom-0 size-2.5 rounded-full bg-success ring-2 ring-background\", className)} {...props} />;\n}\n\nexport function AvatarGroup({ className, ...props }: React.ComponentProps<\"div\">) {\n return <div data-slot=\"avatar-group\" className={cn(\"flex -space-x-2 [&>[data-slot=avatar]]:ring-2 [&>[data-slot=avatar]]:ring-background\", className)} {...props} />;\n}\n\nexport function AvatarGroupCount({ className, ...props }: React.ComponentProps<\"span\">) {\n return <span data-slot=\"avatar-group-count\" className={cn(\"flex size-8 items-center justify-center rounded-full bg-muted text-xs font-medium text-muted-foreground ring-2 ring-background\", className)} {...props} />;\n}\n","import { cva, type VariantProps } from \"class-variance-authority\";\nimport type * as React from \"react\";\nimport { Link, type LinkProps } from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\n\nexport const badgeVariants = cva(\n \"inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 [&>svg]:pointer-events-none [&>svg]:size-3\",\n {\n variants: {\n variant: {\n default: \"bg-primary text-primary-foreground\",\n secondary: \"bg-secondary text-secondary-foreground\",\n neutral: \"bg-muted text-muted-foreground\",\n success: \"bg-success/10 text-success\",\n warning: \"bg-warning/10 text-warning\",\n info: \"bg-info/10 text-info\",\n danger: \"bg-destructive/10 text-destructive\",\n destructive: \"bg-destructive text-destructive-foreground\",\n outline: \"border border-border text-foreground\",\n ghost: \"text-foreground hover:bg-muted\",\n link: \"text-primary underline-offset-4 hover:underline\",\n },\n },\n defaultVariants: { variant: \"default\" },\n },\n);\n\nexport type BadgeProps = React.ComponentProps<\"span\"> &\n VariantProps<typeof badgeVariants> & {\n /** Visual intent for a compact status or category label. */\n variant?: VariantProps<typeof badgeVariants>[\"variant\"];\n };\n\n/** Compact label for statuses, categories and small counts. */\nexport function Badge({ className, variant, ...props }: BadgeProps) {\n return (\n <span\n data-slot=\"badge\"\n data-variant={variant ?? \"default\"}\n className={cn(badgeVariants({ variant }), className)}\n {...props}\n />\n );\n}\n\nexport type BadgeLinkProps = Omit<LinkProps, \"className\"> &\n VariantProps<typeof badgeVariants> & { className?: string };\n\nexport function BadgeLink({ className, variant, ...props }: BadgeLinkProps) {\n return (\n <Link\n data-slot=\"badge\"\n data-variant={variant ?? \"default\"}\n className={cn(badgeVariants({ variant }), className)}\n {...props}\n />\n );\n}\n","import { Breadcrumb as AriaBreadcrumb, Breadcrumbs as AriaBreadcrumbs, Link as AriaLink } from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\n\n/** Accessible navigation trail showing the current page's hierarchy. */\nexport function Breadcrumbs({ className, ...props }: React.ComponentProps<typeof AriaBreadcrumbs>) {\n return <AriaBreadcrumbs data-slot=\"breadcrumbs\" className={cn(\"flex flex-wrap items-center gap-1.5 text-sm text-muted-foreground\", className)} {...props} />;\n}\n\nexport function Breadcrumb({ className, ...props }: React.ComponentProps<typeof AriaBreadcrumb>) {\n return <AriaBreadcrumb data-slot=\"breadcrumb\" className={cn(\"inline-flex items-center gap-1.5\", className)} {...props} />;\n}\n\nexport function BreadcrumbLink({ className, ...props }: React.ComponentProps<typeof AriaLink>) {\n return <AriaLink data-slot=\"breadcrumb-link\" className={cn(\"transition-colors hover:text-foreground\", className)} {...props} />;\n}\n\nexport function BreadcrumbPage({ className, ...props }: React.ComponentProps<\"span\">) {\n return <span data-slot=\"breadcrumb-page\" aria-current=\"page\" className={cn(\"font-medium text-foreground\", className)} {...props} />;\n}\n\nexport function BreadcrumbSeparator({ children = \"/\", className, ...props }: React.ComponentProps<\"span\">) {\n return <span data-slot=\"breadcrumb-separator\" aria-hidden=\"true\" className={cn(\"text-muted-foreground/60\", className)} {...props}>{children}</span>;\n}\n","import { cva, type VariantProps } from \"class-variance-authority\";\nimport type * as React from \"react\";\n\nimport { cn } from \"../../lib/cn\";\nimport { Separator } from \"../separator/separator\";\n\nconst buttonGroupVariants = cva(\n \"flex w-fit items-stretch *:focus-visible:relative *:focus-visible:z-10 has-[>[data-slot=button-group]]:gap-2 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-lg [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1\",\n {\n variants: {\n orientation: {\n horizontal:\n \"**:data-slot:rounded-r-none [&_[data-slot]~[data-slot]]:rounded-l-none [&_[data-slot]~[data-slot]]:border-l-0 [&>[data-slot]:not(:has(~[data-slot]))]:rounded-r-lg!\",\n vertical:\n \"flex-col **:data-slot:rounded-b-none [&_[data-slot]~[data-slot]]:rounded-t-none [&_[data-slot]~[data-slot]]:border-t-0 [&>[data-slot]:not(:has(~[data-slot]))]:rounded-b-lg!\",\n },\n },\n defaultVariants: {\n orientation: \"horizontal\",\n },\n },\n);\n\n/** Groups adjacent actions into a single connected control. */\nfunction ButtonGroup({\n className,\n orientation,\n ...props\n}: React.ComponentProps<\"div\"> & VariantProps<typeof buttonGroupVariants>) {\n return (\n // biome-ignore lint/a11y/useSemanticElements: fieldset would impose form semantics on a generic action group.\n <div\n role=\"group\"\n data-slot=\"button-group\"\n data-orientation={orientation}\n className={cn(buttonGroupVariants({ orientation }), className)}\n {...props}\n />\n );\n}\n\nfunction ButtonGroupText({\n className,\n render,\n ...props\n}: React.ComponentProps<\"div\"> & {\n render?: (props: React.HTMLAttributes<HTMLElement>) => React.ReactNode;\n}) {\n if (render) {\n const renderProps = {\n \"data-slot\": \"button-group-text\",\n className: cn(\n \"flex items-center gap-2 rounded-lg border border-border bg-muted px-2.5 text-sm font-medium [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4\",\n className,\n ),\n ...props,\n };\n\n return render(renderProps);\n }\n\n return (\n <div\n data-slot=\"button-group-text\"\n className={cn(\n \"flex items-center gap-2 rounded-lg border border-border bg-muted px-2.5 text-sm font-medium [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction ButtonGroupSeparator({\n className,\n orientation = \"vertical\",\n ...props\n}: React.ComponentProps<typeof Separator>) {\n return (\n <Separator\n data-slot=\"button-group-separator\"\n orientation={orientation}\n className={cn(\n \"relative self-stretch bg-input data-horizontal:mx-px data-horizontal:w-auto data-vertical:my-px data-vertical:h-auto\",\n className,\n )}\n {...props}\n />\n );\n}\n\nexport { ButtonGroup, ButtonGroupSeparator, ButtonGroupText, buttonGroupVariants };\n","\"use client\";\n\nimport { Separator as SeparatorPrimitive } from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\n\nexport type SeparatorProps = React.ComponentProps<typeof SeparatorPrimitive>;\n\n/** Semantic horizontal or vertical divider between related content. */\nfunction Separator({ className, orientation = \"horizontal\", ...props }: SeparatorProps) {\n return (\n <SeparatorPrimitive\n data-slot=\"separator\"\n orientation={orientation}\n className={cn(\n \"block shrink-0 border-0 bg-border aria-[orientation=horizontal]:h-px aria-[orientation=horizontal]:w-full aria-[orientation=vertical]:w-px aria-[orientation=vertical]:self-stretch [:is(hr)]:h-px [:is(hr)]:w-full\",\n className,\n )}\n {...props}\n />\n );\n}\n\nexport { Separator };\n","import type * as React from \"react\";\n\nimport { cn } from \"../../lib/cn\";\n\nexport type CardProps = React.ComponentProps<\"div\"> & {\n /** Spacing preset for standard or compact content. */\n size?: \"default\" | \"sm\";\n};\n\n/** Surface for related content with optional header, body, action and footer regions. */\nfunction Card({ className, size = \"default\", ...props }: CardProps) {\n return (\n <div\n data-slot=\"card\"\n data-size={size}\n className={cn(\n \"group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl border border-border bg-card py-(--card-spacing) text-sm text-card-foreground shadow-sm [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction CardHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card-header\"\n className={cn(\n \"group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-(--card-spacing) has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-(--card-spacing)\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction CardTitle({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card-title\"\n className={cn(\n \"text-base leading-snug font-medium group-data-[size=sm]/card:text-sm\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction CardDescription({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card-description\"\n className={cn(\"text-sm text-muted-foreground\", className)}\n {...props}\n />\n );\n}\n\nfunction CardAction({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card-action\"\n className={cn(\"col-start-2 row-span-2 row-start-1 self-start justify-self-end\", className)}\n {...props}\n />\n );\n}\n\nfunction CardContent({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div data-slot=\"card-content\" className={cn(\"px-(--card-spacing)\", className)} {...props} />\n );\n}\n\nfunction CardFooter({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card-footer\"\n className={cn(\n \"flex items-center rounded-b-xl border-t border-border bg-muted/50 p-(--card-spacing)\",\n className,\n )}\n {...props}\n />\n );\n}\n\nexport { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle };\n","import { Check } from \"lucide-react\";\nimport {\n Checkbox as AriaCheckbox,\n type CheckboxProps as AriaCheckboxProps,\n} from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\n\n/** Props for an accessible boolean form control. */\nexport type CheckboxProps = Omit<AriaCheckboxProps, \"className\"> & { className?: string };\n\n/** Checkbox that supports controlled and uncontrolled selection. */\nexport function Checkbox({ className, children, ...props }: CheckboxProps) {\n return (\n <AriaCheckbox\n data-slot=\"checkbox\"\n className={cn(\n \"group inline-flex items-center gap-2 text-sm text-foreground data-disabled:cursor-not-allowed data-disabled:opacity-50\",\n className,\n )}\n {...props}\n >\n {(state) => (\n <>\n <span\n aria-hidden=\"true\"\n className=\"grid size-4 place-items-center rounded border border-border bg-background text-primary-foreground transition-colors group-data-selected:border-primary group-data-selected:bg-primary group-data-focus-visible:ring-3 group-data-focus-visible:ring-ring/50\"\n >\n <Check className=\"size-3 opacity-0 transition-opacity group-data-selected:opacity-100 motion-reduce:transition-none\" />\n </span>\n {typeof children === \"function\" ? children(state) : children}\n </>\n )}\n </AriaCheckbox>\n );\n}\n","\"use client\";\n\nimport * as React from \"react\";\n\ntype CollapsibleContextValue = {\n contentId: string;\n open: boolean;\n setOpen: (open: boolean) => void;\n};\ntype SlottableProps = React.HTMLAttributes<HTMLElement> & {\n \"data-slot\"?: string;\n \"data-state\"?: \"closed\" | \"open\";\n};\nconst CollapsibleContext = React.createContext<CollapsibleContextValue | null>(null);\n\nfunction useCollapsibleContext() {\n const context = React.useContext(CollapsibleContext);\n if (!context) throw new Error(\"Collapsible components must be rendered within Collapsible.\");\n return context;\n}\n\n/** Props for the collapsible state container. */\nexport type CollapsibleProps = React.ComponentProps<\"div\"> & {\n /** Initial state when the component is uncontrolled. */\n defaultOpen?: boolean;\n /** Called after the expanded state changes. */\n onOpenChange?: (open: boolean) => void;\n /** Controlled expanded state. Use with {@link onOpenChange}. */\n open?: boolean;\n};\n\n/** Groups a trigger and conditional content in a controlled or uncontrolled disclosure. */\nexport function Collapsible({\n children,\n defaultOpen = false,\n onOpenChange,\n open: controlledOpen,\n ...props\n}: CollapsibleProps) {\n const [uncontrolledOpen, setUncontrolledOpen] = React.useState(defaultOpen);\n const contentId = React.useId();\n const open = controlledOpen ?? uncontrolledOpen;\n const setOpen = React.useCallback(\n (nextOpen: boolean) => {\n if (controlledOpen === undefined) setUncontrolledOpen(nextOpen);\n onOpenChange?.(nextOpen);\n },\n [controlledOpen, onOpenChange],\n );\n\n return (\n <CollapsibleContext.Provider value={{ contentId, open, setOpen }}>\n <div data-slot=\"collapsible\" data-state={open ? \"open\" : \"closed\"} {...props}>\n {children}\n </div>\n </CollapsibleContext.Provider>\n );\n}\n\n/** Props for the control that toggles a {@link Collapsible}. */\nexport type CollapsibleTriggerProps = React.ComponentProps<\"button\"> & {\n /** Renders and augments the single child element instead of a native button. */\n asChild?: boolean;\n};\n\n/** Button that toggles its parent {@link Collapsible} and exposes `aria-expanded`. */\nexport function CollapsibleTrigger({ asChild = false, children, onClick, ...props }: CollapsibleTriggerProps) {\n const { contentId, open, setOpen } = useCollapsibleContext();\n const handleClick: React.MouseEventHandler<HTMLElement> = (event) => {\n onClick?.(event as React.MouseEvent<HTMLButtonElement>);\n if (!event.defaultPrevented) setOpen(!open);\n };\n\n if (asChild && React.isValidElement<SlottableProps>(children)) {\n const child = children as React.ReactElement<SlottableProps>;\n return React.cloneElement(child, {\n ...(props as React.HTMLAttributes<HTMLElement>),\n \"aria-controls\": contentId,\n \"aria-expanded\": open,\n \"data-slot\": \"collapsible-trigger\",\n \"data-state\": open ? \"open\" : \"closed\",\n onClick: (event: React.MouseEvent<HTMLElement>) => {\n child.props.onClick?.(event);\n handleClick(event);\n },\n });\n }\n\n return (\n <button\n type=\"button\"\n data-slot=\"collapsible-trigger\"\n data-state={open ? \"open\" : \"closed\"}\n aria-controls={contentId}\n aria-expanded={open}\n onClick={handleClick}\n {...props}\n >\n {children}\n </button>\n );\n}\n\nexport type CollapsibleContentProps = React.ComponentProps<\"div\">;\n\n/** Content that is mounted only while its parent {@link Collapsible} is open. */\nexport function CollapsibleContent({ children, ...props }: CollapsibleContentProps) {\n const { contentId, open } = useCollapsibleContext();\n if (!open) return null;\n\n return <div id={contentId} data-slot=\"collapsible-content\" data-state=\"open\" {...props}>{children}</div>;\n}\n","import { Fragment, useMemo, useState, type ReactNode } from \"react\";\nimport { ComboBox as AriaComboBox, ComboBoxValue, FieldError, Input, Label, ListBox, ListBoxItem, Popover, Text, type ComboBoxProps, type InputProps, type ListBoxItemProps, type ListBoxProps } from \"react-aria-components\";\nimport type { Key } from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\nimport { getTextMatchParts } from \"../../lib/text-match\";\n\nexport const Combobox = AriaComboBox;\nexport { ComboBoxValue as ComboboxValue };\nexport type { ComboBoxProps };\n\nexport function ComboboxInput({ className, ...props }: InputProps) { return <Input data-slot=\"combobox-input\" className={cn(\"h-9 w-full rounded-lg border border-border bg-background px-2.5 text-sm text-foreground outline-none placeholder:text-muted-foreground focus-visible:ring-3 focus-visible:ring-ring/50\", className)} {...props} />; }\nexport function ComboboxContent({ className, ...props }: React.ComponentProps<typeof Popover>) { return <Popover data-slot=\"combobox-content\" className={cn(\"max-h-72 w-(--trigger-width) overflow-hidden rounded-xl border border-border bg-background p-1.5 text-foreground shadow-lg motion-safe:data-entering:animate-ui-surface-in motion-safe:data-exiting:animate-ui-surface-out\", className)} {...props} />; }\nexport function ComboboxList<T extends object>({ className, emptyState, ...props }: ListBoxProps<T> & { emptyState?: React.ReactNode }) { return <ListBox data-slot=\"combobox-list\" className={cn(\"max-h-64 overflow-y-auto\", className)} renderEmptyState={emptyState ? () => emptyState : undefined} {...props} />; }\nexport function ComboboxItem<T extends object>({ className, children, ...props }: ListBoxItemProps<T>) { return <ListBoxItem data-slot=\"combobox-item\" className={cn(\"flex w-full cursor-default items-center justify-between rounded-md px-2 py-2 text-sm outline-none transition-colors data-focused:bg-muted data-focused:text-foreground data-hovered:bg-muted data-disabled:pointer-events-none data-disabled:opacity-50\", className)} {...props}>{children}</ListBoxItem>; }\nexport function HighlightMatch({ text, query, className }: { text: string; query: string; className?: string }) { return <span className={className}>{getTextMatchParts(text, query).map((part, index) => part.match ? <mark key={`${part.text}-${index}`} className=\"rounded bg-accent px-0.5 text-accent-foreground\">{part.text}</mark> : <Fragment key={`${part.text}-${index}`}>{part.text}</Fragment>)}</span>; }\n\nexport type AutocompleteComboboxProps<T extends object> = Omit<ComboBoxProps<T>, \"children\" | \"items\" | \"inputValue\" | \"onInputChange\" | \"selectedKey\" | \"onSelectionChange\" | \"defaultFilter\"> & { items: readonly T[]; getItemKey: (item: T) => Key; getItemLabel: (item: T) => string; renderItem?: (item: T, query: string) => ReactNode; inputValue?: string; onInputChange?: (value: string) => void; selectedKey?: Key | null; onSelectionChange?: (key: Key | null, item?: T) => void; label?: ReactNode; description?: ReactNode; errorMessage?: ReactNode; emptyState?: ReactNode; suggestion?: boolean; placeholder?: string };\n\n/** A safe, keyboard-first autocomplete for users, contracts and other entities. */\nexport function AutocompleteCombobox<T extends object>({ items, getItemKey, getItemLabel, renderItem, inputValue: controlledInputValue, onInputChange, selectedKey, onSelectionChange, label, description, errorMessage, emptyState = <p className=\"px-3 py-7 text-center text-sm text-muted-foreground\">No hay resultados.</p>, suggestion = true, placeholder, className, onKeyDown: _onKeyDown, ...props }: AutocompleteComboboxProps<T>) {\n const [internalInputValue, setInternalInputValue] = useState(\"\");\n const inputValue = controlledInputValue ?? internalInputValue;\n const setInputValue = (value: string) => { setInternalInputValue(value); onInputChange?.(value); };\n const normalizedQuery = inputValue.trim().toLocaleLowerCase();\n const filteredItems = useMemo(() => normalizedQuery ? items.filter((item) => getItemLabel(item).toLocaleLowerCase().includes(normalizedQuery)) : [...items], [getItemLabel, items, normalizedQuery]);\n const suggestedItem = useMemo(() => !suggestion || !normalizedQuery ? undefined : items.find((item) => getItemLabel(item).toLocaleLowerCase().startsWith(normalizedQuery) && getItemLabel(item).length > inputValue.length), [getItemLabel, inputValue.length, items, normalizedQuery, suggestion]);\n const suggestionLabel = suggestedItem ? getItemLabel(suggestedItem) : undefined;\n const acceptSuggestion = () => { if (!suggestedItem || !suggestionLabel) return false; setInputValue(suggestionLabel); onSelectionChange?.(getItemKey(suggestedItem), suggestedItem); return true; };\n const handleKeyDown = (event: Parameters<NonNullable<InputProps[\"onKeyDown\"]>>[0]) => { if ((event.key === \"Tab\" || event.key === \"Enter\") && acceptSuggestion()) event.preventDefault(); };\n return <AriaComboBox<T> {...props} className={cn(\"group/combobox flex w-full flex-col gap-1.5\", className)} items={filteredItems} selectedKey={selectedKey} inputValue={inputValue} onInputChange={setInputValue} onSelectionChange={(key) => { const item = filteredItems.find((candidate) => String(getItemKey(candidate)) === String(key)); if (item) setInputValue(getItemLabel(item)); onSelectionChange?.(key, item); }}>\n {label && <Label className=\"text-sm font-medium text-foreground\">{label}</Label>}\n <div className=\"relative\">{suggestionLabel && <span aria-hidden=\"true\" className=\"pointer-events-none absolute inset-y-0 left-2.5 z-0 flex items-center whitespace-pre text-sm text-muted-foreground/60\"><span className=\"text-transparent\">{inputValue}</span>{suggestionLabel.slice(inputValue.length)}</span>}<ComboboxInput aria-autocomplete={suggestionLabel ? \"both\" : \"list\"} placeholder={placeholder} onKeyDown={handleKeyDown} className=\"relative z-10 bg-transparent\" /></div>\n {description && <Text slot=\"description\" className=\"text-xs text-muted-foreground\">{description}</Text>}\n {errorMessage && <FieldError className=\"text-xs text-destructive\">{errorMessage}</FieldError>}\n <ComboboxContent><ComboboxList<T> emptyState={emptyState}>{(item) => <ComboboxItem id={getItemKey(item)} textValue={getItemLabel(item)}>{renderItem ? renderItem(item, inputValue) : <HighlightMatch text={getItemLabel(item)} query={inputValue} />}</ComboboxItem>}</ComboboxList></ComboboxContent>\n </AriaComboBox>;\n}\n","import { ComboBox as AriaComboBox, Input as AriaInput, ListBox, ListBoxItem, Popover, type ComboBoxProps, type ListBoxItemProps } from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\n\n/** Searchable command palette built from an accessible combobox and option list. */\nexport function Command<T extends object>({ className, ...props }: ComboBoxProps<T>) {\n return <AriaComboBox data-slot=\"command\" className={cn(\"w-full\", className)} {...props} />;\n}\n\nexport function CommandInput({ className, ...props }: React.ComponentProps<typeof AriaInput>) {\n return <AriaInput data-slot=\"command-input\" className={cn(\"h-9 w-full border-0 bg-transparent px-3 text-sm text-foreground outline-none placeholder:text-muted-foreground\", className)} {...props} />;\n}\n\nexport function CommandContent({ className, ...props }: React.ComponentProps<typeof Popover>) {\n return <Popover data-slot=\"command-content\" className={cn(\"w-(--trigger-width) overflow-hidden rounded-xl border border-border bg-background p-1.5 shadow-lg outline-none\", className)} {...props} />;\n}\n\nexport function CommandList<T extends object>({ className, ...props }: React.ComponentProps<typeof ListBox<T>>) {\n return <ListBox data-slot=\"command-list\" className={cn(\"max-h-72 overflow-y-auto\", className)} {...props} />;\n}\n\nexport function CommandItem<T extends object>({ className, ...props }: ListBoxItemProps<T>) {\n return <ListBoxItem data-slot=\"command-item\" className={cn(\"flex cursor-default items-center rounded-md px-2 py-1.5 text-sm outline-none data-focused:bg-muted data-disabled:pointer-events-none data-disabled:opacity-50\", className)} {...props} />;\n}\n","import type * as React from \"react\";\nimport { X } from \"lucide-react\";\nimport {\n Dialog as AriaDialog,\n Heading,\n Modal,\n ModalOverlay,\n Text,\n type ModalOverlayProps,\n} from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\nimport { Button } from \"../button/button\";\n\nconst sizeClasses = {\n sm: \"w-[min(calc(100dvw-2rem),24rem)]\",\n md: \"w-[min(calc(100dvw-2rem),28rem)]\",\n lg: \"w-[min(calc(100dvw-2rem),36rem)]\",\n} as const;\n\nexport type ModalDialogProps = Omit<\n ModalOverlayProps,\n \"children\" | \"className\" | \"isOpen\" | \"onOpenChange\"\n> & {\n open: boolean;\n onOpenChange: (open: boolean) => void;\n title: React.ReactNode;\n description?: React.ReactNode;\n children?: React.ReactNode;\n footer?: React.ReactNode;\n size?: keyof typeof sizeClasses;\n showCloseButton?: boolean;\n className?: string;\n footerClassName?: string;\n};\n\n/**\n * Accessible modal with a consistent title, optional description, body and footer.\n * Its width is self-contained so consumer CSS cannot override it with max-width utilities.\n */\nexport function ModalDialog({\n open,\n onOpenChange,\n title,\n description,\n children,\n footer,\n size = \"sm\",\n showCloseButton = true,\n className,\n footerClassName,\n ...props\n}: ModalDialogProps) {\n const layoutClass = children\n ? footer\n ? \"grid-rows-[auto_minmax(0,1fr)_auto]\"\n : \"grid-rows-[auto_minmax(0,1fr)]\"\n : \"grid-rows-[auto_auto]\";\n\n return (\n <ModalOverlay\n isOpen={open}\n onOpenChange={onOpenChange}\n className=\"fixed inset-0 z-50 grid place-items-center bg-black/20 p-4 backdrop-blur-[1px] motion-safe:data-entering:animate-ui-overlay-in motion-safe:data-exiting:animate-ui-overlay-out\"\n {...props}\n >\n <Modal\n className={cn(\n \"max-h-[calc(100dvh-2rem)] outline-none motion-safe:data-entering:animate-ui-surface-in motion-safe:data-exiting:animate-ui-surface-out\",\n sizeClasses[size],\n className,\n )}\n >\n <AriaDialog\n className={cn(\n \"grid max-h-[calc(100dvh-2rem)] overflow-hidden rounded-xl bg-background text-foreground shadow-xl outline-none\",\n layoutClass,\n )}\n >\n {({ close }) => (\n <>\n <header data-slot=\"modal-dialog-header\" className=\"flex items-start gap-3 border-b border-border px-5 py-4\">\n <div className=\"min-w-0 flex-1\">\n <Heading slot=\"title\" className=\"font-heading text-base leading-none font-medium\">\n {title}\n </Heading>\n {description ? (\n <Text slot=\"description\" className=\"mt-2 text-sm text-muted-foreground\">\n {description}\n </Text>\n ) : null}\n </div>\n {showCloseButton ? (\n <Button\n aria-label=\"Cerrar diálogo\"\n variant=\"ghost\"\n size=\"icon\"\n className=\"-mr-2 -mt-1\"\n onPress={close}\n >\n <X aria-hidden=\"true\" className=\"size-4\" />\n </Button>\n ) : null}\n </header>\n {children ? (\n <div data-slot=\"modal-dialog-body\" className=\"min-h-0 overflow-y-auto px-5 py-4\">\n {children}\n </div>\n ) : null}\n {footer ? (\n <footer\n data-slot=\"modal-dialog-footer\"\n className={cn(\n \"flex flex-col-reverse gap-2 border-t border-border bg-muted/50 px-5 py-4 sm:flex-row sm:flex-wrap sm:justify-end\",\n footerClassName,\n )}\n >\n {footer}\n </footer>\n ) : null}\n </>\n )}\n </AriaDialog>\n </Modal>\n </ModalOverlay>\n );\n}\n","import type * as React from \"react\";\nimport { Button } from \"../button/button\";\nimport { ModalDialog } from \"../modal-dialog/modal-dialog\";\n\nexport type ConfirmDialogProps = {\n open: boolean;\n onOpenChange: (open: boolean) => void;\n title: string;\n description?: React.ReactNode;\n confirmLabel?: string;\n cancelLabel?: string;\n destructive?: boolean;\n pending?: boolean;\n onConfirm: () => void;\n};\n\n/** Controlled confirmation dialog for irreversible actions. */\nexport function ConfirmDialog({\n open,\n onOpenChange,\n title,\n description,\n confirmLabel = \"Confirmar\",\n cancelLabel = \"Cancelar\",\n destructive = false,\n pending = false,\n onConfirm,\n}: ConfirmDialogProps) {\n return (\n <ModalDialog\n open={open}\n onOpenChange={onOpenChange}\n title={title}\n description={description}\n showCloseButton={false}\n footer={\n <>\n <Button variant=\"outline\" isDisabled={pending} onPress={() => onOpenChange(false)}>\n {cancelLabel}\n </Button>\n <Button variant={destructive ? \"destructive\" : \"default\"} isDisabled={pending} onPress={onConfirm}>\n {confirmLabel}\n </Button>\n </>\n }\n />\n );\n}\n","\"use client\";\n\nimport { ChevronDown, ShieldAlert } from \"lucide-react\";\nimport type * as React from \"react\";\nimport {\n Button as DisclosureButton,\n Disclosure,\n DisclosurePanel,\n Heading,\n} from \"react-aria-components\";\n\nimport { cn } from \"../../lib/cn\";\nimport { Card, CardContent } from \"../card/card\";\n\nexport type DangerZoneProps = {\n children: React.ReactNode;\n className?: string;\n defaultOpen?: boolean;\n description?: string;\n title?: string;\n};\n\n/** Collapsed-by-default container for actions that are hard to reverse. */\nexport function DangerZone({\n title = \"Zona de peligro\",\n description = \"Acciones irreversibles. Ábrela solo si estás seguro.\",\n defaultOpen = false,\n className,\n children,\n}: DangerZoneProps) {\n return (\n <Disclosure defaultExpanded={defaultOpen}>\n <Card className={cn(\"border-destructive/30\", className)}>\n <Heading className=\"flex\">\n <DisclosureButton\n slot=\"trigger\"\n data-slot=\"danger-zone-trigger\"\n className=\"group/danger flex w-full items-center gap-3 px-4 text-left outline-none focus-visible:ring-3 focus-visible:ring-ring/50\"\n >\n <ShieldAlert className=\"size-4 shrink-0 text-destructive\" />\n <span className=\"flex flex-1 flex-col gap-0.5\">\n <span className=\"font-heading text-base leading-snug font-medium text-destructive\">{title}</span>\n <span className=\"text-xs text-muted-foreground\">{description}</span>\n </span>\n <ChevronDown className=\"size-4 shrink-0 text-muted-foreground transition-transform group-aria-expanded/danger:rotate-180\" />\n </DisclosureButton>\n </Heading>\n <DisclosurePanel data-slot=\"danger-zone-content\">\n <CardContent>{children}</CardContent>\n </DisclosurePanel>\n </Card>\n </Disclosure>\n );\n}","\"use client\";\n\nimport { XIcon } from \"lucide-react\";\nimport * as React from \"react\";\nimport {\n Dialog as AriaDialog,\n Heading,\n Modal,\n ModalOverlay,\n type ModalOverlayProps,\n Text,\n} from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\nimport { Button } from \"../button/button\";\n\ntype DialogContextValue = { open: boolean; setOpen: (open: boolean) => void };\ntype SlottableProps = React.HTMLAttributes<HTMLElement> & { \"data-slot\"?: string };\nconst DialogContext = React.createContext<DialogContextValue | null>(null);\n\nfunction useDialogContext() {\n const context = React.useContext(DialogContext);\n if (!context) throw new Error(\"Dialog components must be rendered within Dialog.\");\n return context;\n}\n\n/** Props for a controlled or uncontrolled dialog state container. */\ntype DialogProps = {\n children: React.ReactNode;\n /** Initial state when the dialog is uncontrolled. */\n defaultOpen?: boolean;\n /** Called after the open state changes. */\n onOpenChange?: (open: boolean) => void;\n /** Controlled open state. Use with {@link onOpenChange}. */\n open?: boolean;\n};\n\n/** Coordinates the trigger, overlay and content of a modal dialog. */\nexport function Dialog({ children, defaultOpen = false, onOpenChange, open: controlledOpen }: DialogProps) {\n const [uncontrolledOpen, setUncontrolledOpen] = React.useState(defaultOpen);\n const open = controlledOpen ?? uncontrolledOpen;\n const setOpen = React.useCallback(\n (nextOpen: boolean) => {\n if (controlledOpen === undefined) setUncontrolledOpen(nextOpen);\n onOpenChange?.(nextOpen);\n },\n [controlledOpen, onOpenChange],\n );\n\n return <DialogContext.Provider value={{ open, setOpen }}>{children}</DialogContext.Provider>;\n}\n\ntype DialogTriggerProps = Omit<React.ComponentProps<typeof Button>, \"onPress\"> & {\n /** Renders and augments the single child instead of rendering a {@link Button}. */\n asChild?: boolean;\n};\n\n/** Opens the parent {@link Dialog}. */\nexport function DialogTrigger({ asChild = false, children, onClick, ...props }: DialogTriggerProps) {\n const { setOpen } = useDialogContext();\n const handleClick: React.MouseEventHandler<HTMLElement> = (event) => {\n onClick?.(event as React.MouseEvent<HTMLButtonElement>);\n if (!event.defaultPrevented) setOpen(true);\n };\n\n if (asChild && React.isValidElement<SlottableProps>(children)) {\n const child = children as React.ReactElement<SlottableProps>;\n return React.cloneElement(child, {\n ...(props as React.HTMLAttributes<HTMLElement>),\n \"data-slot\": \"dialog-trigger\",\n onClick: (event: React.MouseEvent<HTMLElement>) => {\n child.props.onClick?.(event);\n handleClick(event);\n },\n });\n }\n\n return (\n <Button data-slot=\"dialog-trigger\" onPress={() => setOpen(true)} {...props}>\n {children}\n </Button>\n );\n}\n\n/** Groups dialog content rendered in the overlay layer. */\nexport function DialogPortal({ children }: { children?: React.ReactNode }) {\n return <>{children}</>;\n}\n\ntype DialogOverlayProps = Omit<ModalOverlayProps, \"children\" | \"className\" | \"isOpen\" | \"onOpenChange\"> & {\n children?: React.ReactNode;\n className?: string;\n};\n\n/** Dismissable backdrop displayed while the parent {@link Dialog} is open. */\nexport function DialogOverlay({ children, className, ...props }: DialogOverlayProps) {\n const { open, setOpen } = useDialogContext();\n if (!open) return null;\n\n return (\n <ModalOverlay\n data-slot=\"dialog-overlay\"\n isDismissable\n isOpen={open}\n onOpenChange={setOpen}\n className={cn(\n \"fixed inset-0 isolate z-50 grid place-items-center bg-black/10 p-4 duration-100 supports-backdrop-filter:backdrop-blur-xs data-entering:animate-ui-overlay-in data-exiting:animate-ui-overlay-out\",\n className,\n )}\n {...props}\n >\n {children}\n </ModalOverlay>\n );\n}\n\ntype DialogContentProps = Omit<React.ComponentProps<typeof AriaDialog>, \"children\" | \"className\"> & {\n children?: React.ReactNode;\n className?: string;\n onOverlayClick?: React.MouseEventHandler<HTMLDivElement>;\n showCloseButton?: boolean;\n};\n\n/** Focus-managed modal content. Include a {@link DialogTitle} to give it an accessible name. */\nexport function DialogContent({\n children,\n className,\n onOverlayClick,\n showCloseButton = true,\n ...props\n}: DialogContentProps) {\n const { setOpen } = useDialogContext();\n\n return (\n <DialogPortal>\n <DialogOverlay\n onClick={(event) => {\n if (event.target === event.currentTarget) onOverlayClick?.(event);\n }}\n >\n <Modal\n className={cn(\n \"w-full max-w-[calc(100%-2rem)] max-h-[calc(100dvh-2rem)] outline-none sm:max-w-sm\",\n className,\n )}\n >\n <AriaDialog\n data-slot=\"dialog-content\"\n className={cn(\n \"grid max-h-[calc(100dvh-2rem)] gap-4 overflow-y-auto rounded-xl bg-background p-4 text-sm text-foreground ring-1 ring-foreground/10 outline-none\",\n className,\n )}\n {...props}\n >\n {children}\n {showCloseButton ? (\n <Button\n aria-label=\"Cerrar diálogo\"\n data-slot=\"dialog-close\"\n variant=\"ghost\"\n className=\"absolute top-2 right-2\"\n size=\"icon-sm\"\n onPress={() => setOpen(false)}\n >\n <XIcon />\n </Button>\n ) : null}\n </AriaDialog>\n </Modal>\n </DialogOverlay>\n </DialogPortal>\n );\n}\n\ntype DialogCloseProps = Omit<React.ComponentProps<typeof Button>, \"onPress\"> & {\n /** Renders and augments the single child instead of rendering a {@link Button}. */\n asChild?: boolean;\n};\n\n/** Closes the parent {@link Dialog}. */\nexport function DialogClose({ asChild = false, children, onClick, ...props }: DialogCloseProps) {\n const { setOpen } = useDialogContext();\n if (asChild && React.isValidElement<SlottableProps>(children)) {\n const child = children as React.ReactElement<SlottableProps>;\n return React.cloneElement(child, {\n ...(props as React.HTMLAttributes<HTMLElement>),\n \"data-slot\": \"dialog-close\",\n onClick: (event: React.MouseEvent<HTMLElement>) => {\n child.props.onClick?.(event);\n if (!event.defaultPrevented) setOpen(false);\n },\n });\n }\n\n return (\n <Button data-slot=\"dialog-close\" onPress={() => setOpen(false)} {...props}>\n {children}\n </Button>\n );\n}\n\n/** Groups the title and description at the top of a dialog. */\nexport function DialogHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return <div data-slot=\"dialog-header\" className={cn(\"flex flex-col gap-2\", className)} {...props} />;\n}\n\n/** Groups dialog actions and can add a secondary close action. */\nexport function DialogFooter({ className, showCloseButton = false, children, ...props }: React.ComponentProps<\"div\"> & { showCloseButton?: boolean }) {\n return (\n <div data-slot=\"dialog-footer\" className={cn(\"-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:flex-wrap sm:justify-end\", className)} {...props}>\n {children}\n {showCloseButton ? <DialogClose variant=\"outline\">Cerrar</DialogClose> : null}\n </div>\n );\n}\n\n/** Title used to give the parent {@link DialogContent} an accessible name. */\nexport function DialogTitle({ className, ...props }: Omit<React.ComponentProps<typeof Heading>, \"slot\">) {\n return <Heading slot=\"title\" data-slot=\"dialog-title\" className={cn(\"font-heading text-base leading-none font-medium\", className)} {...props} />;\n}\n\n/** Supporting text announced alongside the parent {@link DialogTitle}. */\nexport function DialogDescription({ className, ...props }: Omit<React.ComponentProps<typeof Text>, \"slot\">) {\n return <Text slot=\"description\" data-slot=\"dialog-description\" className={cn(\"text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground\", className)} {...props} />;\n}\n","\"use client\";\n\nimport { FileText, Image } from \"lucide-react\";\n\nexport type DocPreviewProps = {\n /** Signed storage URL, generated by the consuming application. */\n mimeType: string | null;\n name: string;\n url: string | null;\n};\n\nexport function DocPreview({ url, mimeType, name }: DocPreviewProps) {\n if (!url) return <Fallback mimeType={mimeType} reason=\"no-url\" />;\n\n if (mimeType === \"application/pdf\" || mimeType === \"text/plain\" || mimeType === \"text/csv\") {\n return (\n <iframe\n src={url}\n title={name}\n className=\"w-full rounded-sm border-0\"\n style={{ height: \"75vh\", minHeight: 400 }}\n />\n );\n }\n\n if (mimeType?.startsWith(\"image/\")) {\n return (\n <div className=\"flex justify-center rounded-sm bg-muted/30 p-6\">\n {/* biome-ignore lint/performance/noImgElement: preview URLs are supplied by consuming applications. */}\n <img src={url} alt={name} className=\"max-h-[75vh] max-w-full rounded object-contain\" />\n </div>\n );\n }\n\n return <Fallback mimeType={mimeType} reason=\"unsupported\" />;\n}\n\nfunction Fallback({ mimeType, reason }: { mimeType: string | null; reason: \"no-url\" | \"unsupported\" }) {\n const Icon = mimeType?.startsWith(\"image/\") ? Image : FileText;\n const message =\n reason === \"no-url\"\n ? \"No se pudo generar la URL de preview.\"\n : \"Preview no disponible para este tipo de archivo.\";\n\n return (\n <div className=\"flex flex-col items-center justify-center gap-2 py-14 text-muted-foreground\">\n <Icon className=\"size-9 opacity-30\" />\n <p className=\"text-sm\">{message}</p>\n {mimeType ? <p className=\"font-mono text-xs opacity-50\">{mimeType}</p> : null}\n <p className=\"text-xs opacity-50\">Usa el botón Descargar para abrir el archivo.</p>\n </div>\n );\n}","import { Dialog as AriaDialog, Heading, Modal, ModalOverlay, type ModalOverlayProps } from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\n\nexport interface DrawerProps extends Omit<ModalOverlayProps, \"children\" | \"className\"> {\n children: React.ReactNode;\n /** Screen edge from which the drawer enters. */\n side?: \"left\" | \"right\" | \"bottom\";\n className?: string;\n}\n\nconst sideStyles = { left: \"inset-y-0 left-0 h-full w-[min(22rem,calc(100%-2rem))] data-entering:animate-ui-surface-in\", right: \"inset-y-0 right-0 h-full w-[min(22rem,calc(100%-2rem))] data-entering:animate-ui-surface-in\", bottom: \"inset-x-0 bottom-0 max-h-[85vh] w-full data-entering:animate-ui-surface-in\" };\n\n/** Dismissable modal panel anchored to an edge of the viewport. */\nexport function Drawer({ children, side = \"right\", className, ...props }: DrawerProps) {\n return <ModalOverlay isDismissable className=\"fixed inset-0 z-50 bg-black/20 backdrop-blur-[1px] motion-safe:data-entering:animate-ui-overlay-in motion-safe:data-exiting:animate-ui-overlay-out\" {...props}><Modal className={cn(\"absolute grid gap-4 overflow-y-auto rounded-xl border border-border bg-background p-5 text-foreground shadow-xl outline-none\", sideStyles[side], className)}><AriaDialog data-slot=\"drawer\" className=\"outline-none\">{children}</AriaDialog></Modal></ModalOverlay>;\n}\n\nexport function DrawerHeader({ className, ...props }: React.ComponentProps<\"div\">) { return <div data-slot=\"drawer-header\" className={cn(\"flex flex-col gap-1.5\", className)} {...props} />; }\nexport function DrawerFooter({ className, ...props }: React.ComponentProps<\"div\">) { return <div data-slot=\"drawer-footer\" className={cn(\"mt-auto flex flex-col-reverse gap-2 pt-4 sm:flex-row sm:justify-end\", className)} {...props} />; }\nexport function DrawerTitle({ className, ...props }: Omit<React.ComponentProps<typeof Heading>, \"slot\">) { return <Heading slot=\"title\" data-slot=\"drawer-title\" className={cn(\"text-base font-semibold\", className)} {...props} />; }\nexport function DrawerDescription({ className, ...props }: React.ComponentProps<\"p\">) { return <p data-slot=\"drawer-description\" className={cn(\"text-sm text-muted-foreground\", className)} {...props} />; }\n","\"use client\"\n\nimport * as React from \"react\"\nimport { cva } from \"class-variance-authority\"\nimport { CheckIcon, ChevronRightIcon } from \"lucide-react\"\nimport {\n composeRenderProps,\n Header as HeaderPrimitive,\n MenuItem as MenuItemPrimitive,\n Menu as MenuPrimitive,\n MenuSection as MenuSectionPrimitive,\n MenuTrigger as MenuTriggerPrimitive,\n Popover as PopoverPrimitive,\n Separator as SeparatorPrimitive,\n SubmenuTrigger as SubmenuTriggerPrimitive,\n type MenuItemProps as MenuItemPrimitiveProps,\n type MenuSectionProps as MenuSectionPrimitiveProps,\n} from \"react-aria-components\"\nimport { cn } from \"../../lib/cn\"\n\n\nfunction DropdownMenuTrigger({\n ...props\n}: React.ComponentProps<typeof MenuTriggerPrimitive>) {\n return <MenuTriggerPrimitive data-slot=\"dropdown-menu-trigger\" {...props} />\n}\n\n/** Floating menu of actions or selections opened by a {@link DropdownMenuTrigger}. */\nfunction DropdownMenu({\n \"data-slot\": dataSlot = \"dropdown-menu-content\",\n placement = \"bottom start\",\n offset = 4,\n crossOffset = 0,\n className,\n children,\n ...props\n}: Omit<\n React.ComponentProps<typeof MenuPrimitive<object>>,\n \"children\" | \"className\"\n> &\n Pick<\n React.ComponentProps<typeof PopoverPrimitive>,\n \"placement\" | \"offset\" | \"crossOffset\"\n > & {\n \"data-slot\"?: string\n className?: string\n children?: React.ReactNode\n }) {\n return (\n <PopoverPrimitive\n data-slot={dataSlot}\n placement={placement}\n offset={offset}\n crossOffset={crossOffset}\n className={cn(\"z-50 w-(--trigger-width) min-w-32 origin-(--trigger-anchor-point) overflow-x-hidden overflow-y-auto rounded-lg border border-border bg-popover p-1 text-popover-foreground shadow-lg outline-none motion-safe:data-entering:animate-ui-surface-in motion-safe:data-exiting:animate-ui-surface-out\", className)}\n >\n <MenuPrimitive\n className=\"max-h-[inherit] overflow-x-hidden overflow-y-auto outline-hidden\"\n {...props}\n >\n {children}\n </MenuPrimitive>\n </PopoverPrimitive>\n )\n}\n\nfunction DropdownMenuGroup({\n ...props\n}: Omit<MenuSectionPrimitiveProps<object>, \"children\"> & {\n children?: React.ReactNode\n}) {\n return <MenuSectionPrimitive data-slot=\"dropdown-menu-group\" {...props} />\n}\n\nfunction DropdownMenuLabel({\n className,\n inset,\n ...props\n}: React.ComponentProps<typeof HeaderPrimitive> & {\n inset?: boolean\n}) {\n return (\n <HeaderPrimitive\n data-slot=\"dropdown-menu-label\"\n data-inset={inset}\n className={cn(\n \"px-1.5 py-1 text-xs font-medium text-muted-foreground data-inset:pl-7\",\n className\n )}\n {...props}\n />\n )\n}\n\nconst dropdownMenuItemVariants = cva(\n \"group/dropdown-menu-item relative flex cursor-default items-center outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n {\n variants: {\n selectionMode: {\n none: \"gap-1.5 rounded-md px-1.5 py-1 text-sm focus:bg-muted focus:text-foreground not-data-[variant=destructive]:focus:**:text-foreground data-inset:pl-7 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive\",\n single:\n \"gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm focus:bg-muted focus:text-foreground focus:**:text-foreground data-inset:pl-7 [&_svg:not([class*='size-'])]:size-4\",\n multiple:\n \"gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm focus:bg-muted focus:text-foreground focus:**:text-foreground data-inset:pl-7 [&_svg:not([class*='size-'])]:size-4\",\n },\n },\n }\n)\n\nfunction DropdownMenuItem({\n className,\n inset,\n variant = \"default\",\n children,\n ...props\n}: MenuItemPrimitiveProps<object> & {\n inset?: boolean\n variant?: \"default\" | \"destructive\"\n}) {\n return (\n <MenuItemPrimitive\n data-slot=\"dropdown-menu-item\"\n data-inset={inset}\n data-variant={variant}\n textValue={typeof children === \"string\" ? children : props.textValue}\n className={composeRenderProps(className, (className, { selectionMode }) =>\n cn(dropdownMenuItemVariants({ selectionMode }), className)\n )}\n {...props}\n >\n {composeRenderProps(\n children,\n (children, { isSelected, selectionMode }) => (\n <>\n {selectionMode !== \"none\" ? (\n <span\n className=\"pointer-events-none absolute right-2 flex items-center justify-center\"\n data-slot={\n selectionMode === \"single\"\n ? \"dropdown-menu-radio-item-indicator\"\n : \"dropdown-menu-checkbox-item-indicator\"\n }\n >\n {isSelected ? <CheckIcon /> : null}\n </span>\n ) : null}\n {children}\n </>\n )\n )}\n </MenuItemPrimitive>\n )\n}\n\nfunction DropdownMenuSub({\n ...props\n}: React.ComponentProps<typeof SubmenuTriggerPrimitive>) {\n return <SubmenuTriggerPrimitive data-slot=\"dropdown-menu-sub\" {...props} />\n}\n\nfunction DropdownMenuSubTrigger({\n className,\n inset,\n children,\n ...props\n}: MenuItemPrimitiveProps<object> & {\n inset?: boolean\n}) {\n return (\n <MenuItemPrimitive\n data-slot=\"dropdown-menu-sub-trigger\"\n data-inset={inset}\n textValue={typeof children === \"string\" ? children : props.textValue}\n className={cn(\n \"flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none focus:bg-muted focus:text-foreground focus:**:text-foreground data-inset:pl-7 data-open:bg-muted data-open:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n className\n )}\n {...props}\n >\n {composeRenderProps(children, (children) => (\n <>\n {children}\n <ChevronRightIcon className=\"cn-rtl-flip ml-auto\" />\n </>\n ))}\n </MenuItemPrimitive>\n )\n}\n\nfunction DropdownMenuSubContent({\n placement = \"end top\",\n crossOffset = -3,\n offset = 0,\n className,\n ...props\n}: React.ComponentProps<typeof DropdownMenu>) {\n return (\n <DropdownMenu\n data-slot=\"dropdown-menu-sub-content\"\n className={cn(\"w-auto min-w-24 rounded-lg border border-border bg-popover p-1 text-popover-foreground shadow-lg\", className)}\n placement={placement}\n crossOffset={crossOffset}\n offset={offset}\n {...props}\n />\n )\n}\n\nfunction DropdownMenuSeparator({\n className,\n ...props\n}: React.ComponentProps<typeof SeparatorPrimitive>) {\n return (\n <SeparatorPrimitive\n data-slot=\"dropdown-menu-separator\"\n className={cn(\"-mx-1 my-1 h-px bg-border\", className)}\n {...props}\n />\n )\n}\n\nfunction DropdownMenuShortcut({\n className,\n ...props\n}: React.ComponentProps<\"span\">) {\n return (\n <span\n data-slot=\"dropdown-menu-shortcut\"\n className={cn(\n \"ml-auto text-xs tracking-widest text-muted-foreground group-focus/dropdown-menu-item:text-foreground\",\n className\n )}\n {...props}\n />\n )\n}\n\nexport {\n DropdownMenuTrigger,\n DropdownMenu,\n DropdownMenuGroup,\n DropdownMenuLabel,\n DropdownMenuItem,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuSub,\n DropdownMenuSubTrigger,\n DropdownMenuSubContent,\n}\n","import { cva, type VariantProps } from \"class-variance-authority\";\nimport type * as React from \"react\";\nimport { cn } from \"../../lib/cn\";\n\n/** Composes an informative empty result with optional media and a recovery action. */\nexport function EmptyState({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"empty-state\"\n className={cn(\n \"flex min-h-44 w-full min-w-0 flex-1 flex-col items-center justify-center gap-4 rounded-xl border border-dashed border-border p-6 text-center text-balance\",\n className,\n )}\n {...props}\n />\n );\n}\n\nexport function EmptyStateHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"empty-state-header\"\n className={cn(\"flex max-w-sm flex-col items-center gap-2\", className)}\n {...props}\n />\n );\n}\n\nexport const emptyStateMediaVariants = cva(\n \"mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n {\n variants: {\n variant: {\n default: \"bg-transparent\",\n icon: \"size-8 rounded-lg bg-muted text-foreground [&_svg:not([class*='size-'])]:size-4\",\n },\n },\n defaultVariants: { variant: \"default\" },\n },\n);\n\nexport function EmptyStateMedia({\n className,\n variant = \"default\",\n ...props\n}: React.ComponentProps<\"div\"> & VariantProps<typeof emptyStateMediaVariants>) {\n return (\n <div\n data-slot=\"empty-state-media\"\n data-variant={variant}\n className={cn(emptyStateMediaVariants({ variant }), className)}\n {...props}\n />\n );\n}\n\nexport function EmptyStateTitle({ className, ...props }: React.ComponentProps<\"h3\">) {\n return (\n <h3\n data-slot=\"empty-state-title\"\n className={cn(\"text-sm font-medium tracking-tight text-foreground\", className)}\n {...props}\n />\n );\n}\n\nexport function EmptyStateDescription({ className, ...props }: React.ComponentProps<\"p\">) {\n return (\n <p\n data-slot=\"empty-state-description\"\n className={cn(\n \"max-w-sm text-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary\",\n className,\n )}\n {...props}\n />\n );\n}\n\nexport function EmptyStateContent({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"empty-state-content\"\n className={cn(\n \"flex w-full max-w-sm min-w-0 flex-col items-center gap-2.5 text-sm\",\n className,\n )}\n {...props}\n />\n );\n}\n","import { cva, type VariantProps } from \"class-variance-authority\";\nimport type * as React from \"react\";\nimport { cn } from \"../../lib/cn\";\nimport { Label } from \"../label/label\";\nimport { Separator } from \"../separator/separator\";\n\n/** Semantic fieldset for controls that share a {@link FieldLegend}. */\nexport function FieldSet({ className, ...props }: React.ComponentProps<\"fieldset\">) {\n return (\n <fieldset data-slot=\"field-set\" className={cn(\"flex flex-col gap-4\", className)} {...props} />\n );\n}\n\n/** Label for a {@link FieldSet}, with heading or label styling. */\nexport function FieldLegend({\n className,\n variant = \"legend\",\n ...props\n}: React.ComponentProps<\"legend\"> & { variant?: \"legend\" | \"label\" }) {\n return (\n <legend\n data-slot=\"field-legend\"\n data-variant={variant}\n className={cn(\n \"mb-1.5 font-medium data-[variant=label]:text-sm data-[variant=legend]:text-base\",\n className,\n )}\n {...props}\n />\n );\n}\n\n/** Responsive vertical stack for related {@link Field} components. */\nexport function FieldGroup({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"field-group\"\n className={cn(\n \"group/field-group @container/field-group flex w-full flex-col gap-5\",\n className,\n )}\n {...props}\n />\n );\n}\n\nexport const fieldVariants = cva(\n \"group/field flex w-full gap-2 data-[invalid=true]:text-destructive\",\n {\n variants: {\n orientation: {\n vertical: \"flex-col *:w-full [&>.sr-only]:w-auto\",\n horizontal:\n \"flex-row items-center has-[>[data-slot=field-content]]:items-start *:data-[slot=field-label]:flex-auto\",\n responsive:\n \"flex-col *:w-full @md/field-group:flex-row @md/field-group:items-center @md/field-group:*:w-auto @md/field-group:*:data-[slot=field-label]:flex-auto\",\n },\n },\n defaultVariants: { orientation: \"vertical\" },\n },\n);\n\n/** Props for the layout wrapper of a labelled form control. */\nexport type FieldProps = React.ComponentProps<\"div\"> &\n VariantProps<typeof fieldVariants> & {\n /** Layout of the label and control; `responsive` changes at the field-group container breakpoint. */\n orientation?: VariantProps<typeof fieldVariants>[\"orientation\"];\n };\n\n/** Groups a form control, its label and descriptive or error text. */\nexport function Field({ className, orientation = \"vertical\", ...props }: FieldProps) {\n return (\n // biome-ignore lint/a11y/useSemanticElements: FieldSet provides native fieldset semantics when they are appropriate.\n <div\n role=\"group\"\n data-slot=\"field\"\n data-orientation={orientation}\n className={cn(fieldVariants({ orientation }), className)}\n {...props}\n />\n );\n}\n\n/** Stacks the label, description and validation message for a {@link Field}. */\nexport function FieldContent({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"field-content\"\n className={cn(\"flex flex-1 flex-col gap-0.5 leading-snug\", className)}\n {...props}\n />\n );\n}\n\n/** Label associated with the control inside a {@link Field}. */\nexport function FieldLabel({ className, ...props }: React.ComponentProps<typeof Label>) {\n return (\n <Label\n data-slot=\"field-label\"\n className={cn(\n \"flex w-fit gap-2 leading-snug text-foreground group-data-[disabled=true]/field:opacity-50\",\n className,\n )}\n {...props}\n />\n );\n}\n\n/** Short visible title for a {@link Field} that is not a native label. */\nexport function FieldTitle({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"field-title\"\n className={cn(\"flex w-fit items-center gap-2 text-sm font-medium\", className)}\n {...props}\n />\n );\n}\n\n/** Helper text that clarifies how to complete a {@link Field}. */\nexport function FieldDescription({ className, ...props }: React.ComponentProps<\"p\">) {\n return (\n <p\n data-slot=\"field-description\"\n className={cn(\n \"text-left text-sm leading-normal text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary\",\n className,\n )}\n {...props}\n />\n );\n}\n\n/** Visual divider between groups of fields, optionally with a text label. */\nexport function FieldSeparator({ className, children, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"field-separator\"\n data-content={Boolean(children) || undefined}\n className={cn(\"relative -my-2 h-5 text-sm\", className)}\n {...props}\n >\n <Separator className=\"absolute inset-0 top-1/2\" />\n {children ? (\n <span\n data-slot=\"field-separator-content\"\n className=\"relative mx-auto block w-fit bg-background px-2 text-muted-foreground\"\n >\n {children}\n </span>\n ) : null}\n </div>\n );\n}\n\n/** Props for a validation message rendered by {@link FieldError}. */\nexport type FieldErrorProps = React.ComponentProps<\"div\"> & {\n /** Validation errors whose unique messages are rendered when no children are supplied. */\n errors?: Array<{ message?: string } | undefined>;\n};\n\n/** Announced validation message for a {@link Field}. */\nexport function FieldError({ className, children, errors, ...props }: FieldErrorProps) {\n const messages = [...new Set(errors?.flatMap((error) => error?.message ?? []) ?? [])];\n const content =\n children ??\n (messages.length === 1 ? (\n messages[0]\n ) : messages.length > 1 ? (\n <ul className=\"ml-4 list-disc\">\n {messages.map((message) => (\n <li key={message}>{message}</li>\n ))}\n </ul>\n ) : null);\n if (!content) return null;\n return (\n <div\n role=\"alert\"\n data-slot=\"field-error\"\n className={cn(\"text-sm text-destructive\", className)}\n {...props}\n >\n {content}\n </div>\n );\n}\n","import { forwardRef, type ComponentPropsWithRef } from \"react\";\nimport { Label as LabelPrimitive } from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\n\n/** Accessible label associated with a React Aria form control. */\nexport const Label = forwardRef<HTMLLabelElement, ComponentPropsWithRef<typeof LabelPrimitive>>(function Label({ className, ...props }, ref) {\n return <LabelPrimitive ref={ref} data-slot=\"label\" className={cn(\"flex items-center gap-2 text-sm font-medium leading-none select-none\", className)} {...props} />;\n});\n\nexport type LabelProps = ComponentPropsWithRef<typeof Label>;\n","import { useCallback, useEffect, useRef, useState } from \"react\";\nimport { CheckCircle, LoaderCircle, CircleAlert } from \"lucide-react\";\nimport { cn } from \"../../lib/cn\";\n\nexport type FormFeedbackState = { status: \"idle\" } | { status: \"pending\" } | { status: \"success\"; message?: string } | { status: \"error\"; message: string };\n\nexport function useFormFeedback(options?: { successResetMs?: number }) {\n const resetMs = options?.successResetMs ?? 2500;\n const [state, setState] = useState<FormFeedbackState>({ status: \"idle\" });\n const timer = useRef<ReturnType<typeof setTimeout> | null>(null);\n const clearTimer = useCallback(() => { if (timer.current) clearTimeout(timer.current); timer.current = null; }, []);\n useEffect(() => () => clearTimer(), [clearTimer]);\n const setPending = useCallback(() => { clearTimer(); setState({ status: \"pending\" }); }, [clearTimer]);\n const setSuccess = useCallback((message?: string) => { clearTimer(); setState({ status: \"success\", message }); if (resetMs > 0) timer.current = setTimeout(() => setState({ status: \"idle\" }), resetMs); }, [clearTimer, resetMs]);\n const setError = useCallback((message: string) => { clearTimer(); setState({ status: \"error\", message }); }, [clearTimer]);\n const reset = useCallback(() => { clearTimer(); setState({ status: \"idle\" }); }, [clearTimer]);\n return { state, pending: state.status === \"pending\", setPending, setSuccess, setError, reset };\n}\n\nexport interface FormFeedbackProps {\n /** Current submission state and optional user-facing result message. */\n state: FormFeedbackState;\n className?: string;\n /** Text announced while the form submission is pending. */\n pendingLabel?: string;\n /** Fallback text used when a successful state has no message. */\n successLabel?: string;\n}\n\n/** Live status message for pending, successful and failed form submissions. */\nexport function FormFeedback({ state, className, pendingLabel = \"Guardando…\", successLabel = \"Guardado\" }: FormFeedbackProps) {\n if (state.status === \"idle\") return <span aria-hidden=\"true\" className={cn(\"inline-flex h-5 items-center\", className)} />;\n const error = state.status === \"error\";\n const success = state.status === \"success\";\n return <span role={error ? \"alert\" : \"status\"} aria-live=\"polite\" className={cn(\"inline-flex h-5 items-center gap-1.5 text-xs\", error && \"text-destructive\", success && \"text-success\", state.status === \"pending\" && \"text-muted-foreground\", className)}>\n {state.status === \"pending\" && <LoaderCircle aria-hidden=\"true\" className=\"size-3.5 animate-spin\" />}\n {success && <CheckCircle aria-hidden=\"true\" className=\"size-3.5\" />}\n {error && <CircleAlert aria-hidden=\"true\" className=\"size-3.5\" />}\n <span>{state.status === \"pending\" ? pendingLabel : success ? state.message ?? successLabel : state.message}</span>\n </span>;\n}\n","import type { ReactNode } from \"react\";\nimport { cn } from \"../../lib/cn\";\n\nexport interface FormRowProps {\n /** Visible label associated with the form control. */\n label: ReactNode;\n /** Identifier of the labelled form control. */\n htmlFor: string;\n /** Marks the label as required for assistive technology. */\n required?: boolean;\n /** Supplementary guidance displayed below the control. */\n hint?: ReactNode;\n /** Validation message announced to the user. */\n error?: ReactNode;\n className?: string;\n children: ReactNode;\n}\n\n/** Labelled form-control row with optional help text and validation feedback. */\nexport function FormRow({ label, htmlFor, required, hint, error, className, children }: FormRowProps) {\n const hintId = hint ? `${htmlFor}-hint` : undefined;\n const errorId = error ? `${htmlFor}-error` : undefined;\n return <div data-slot=\"form-row\" className={cn(\"flex flex-col gap-1.5\", className)}>\n <label htmlFor={htmlFor} className=\"text-sm font-medium text-foreground\">{label}{required && <><span aria-hidden=\"true\" className=\"ml-0.5 text-destructive\">*</span><span className=\"sr-only\"> (obligatorio)</span></>}</label>\n {children}\n {hint && <p id={hintId} className=\"text-xs text-muted-foreground\">{hint}</p>}\n {error && <p id={errorId} role=\"alert\" className=\"text-xs font-medium text-destructive\">{error}</p>}\n </div>;\n}\n","import type { ReactNode } from \"react\";\nimport { Link } from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\nimport { Button, type ButtonProps, buttonVariants } from \"../button/button\";\nimport { Tooltip, TooltipTrigger } from \"../tooltip/tooltip\";\n\nexport type IconButtonProps = Omit<ButtonProps, \"children\"> & {\n\t/** Accessible name and text shown in the tooltip. */\n\tlabel: string;\n\t/** Optional href for rendering the action as an accessible link. */\n\thref?: string;\n\tchildren?: ReactNode;\n};\n\n/** A consistently sized icon-only action with an accessible tooltip. */\nexport function IconButton({\n\tlabel,\n\tchildren,\n\thref,\n\tclassName,\n\tvariant,\n\t...props\n}: IconButtonProps) {\n\tconst linkClassName = cn(\n\t\tbuttonVariants({ variant, size: \"icon\" }),\n\t\tclassName,\n\t);\n\n\treturn (\n\t\t<TooltipTrigger>\n\t\t\t{href ? (\n\t\t\t\t<Link\n\t\t\t\t\tdata-slot=\"icon-button\"\n\t\t\t\t\taria-label={label}\n\t\t\t\t\thref={href}\n\t\t\t\t\tclassName={linkClassName}\n\t\t\t\t>\n\t\t\t\t\t{children}\n\t\t\t\t</Link>\n\t\t\t) : (\n\t\t\t\t<Button\n\t\t\t\t\tdata-slot=\"icon-button\"\n\t\t\t\t\taria-label={label}\n\t\t\t\t\tvariant={variant}\n\t\t\t\t\tsize=\"icon\"\n\t\t\t\t\tclassName={className}\n\t\t\t\t\t{...props}\n\t\t\t\t>\n\t\t\t\t\t{children}\n\t\t\t\t</Button>\n\t\t\t)}\n\t\t\t<Tooltip>{label}</Tooltip>\n\t\t</TooltipTrigger>\n\t);\n}\n","\"use client\"\n\nimport * as React from \"react\"\nimport {\n Focusable,\n OverlayArrow,\n Tooltip as TooltipPrimitive,\n TooltipTrigger as TooltipTriggerPrimitive,\n} from \"react-aria-components\"\nimport { cn } from \"../../lib/cn\"\n\n/** Couples a focusable trigger with its {@link Tooltip} content. */\nexport function TooltipTrigger({\n delay = 0,\n children,\n ...props\n}: React.ComponentProps<typeof TooltipTriggerPrimitive>) {\n const [trigger, tooltip] = React.Children.toArray(children)\n\n return (\n <TooltipTriggerPrimitive\n data-slot=\"tooltip-trigger\"\n delay={delay}\n {...props}\n >\n <Focusable>\n {trigger as React.ComponentProps<typeof Focusable>[\"children\"]}\n </Focusable>\n {tooltip}\n </TooltipTriggerPrimitive>\n )\n}\n\n/**\n * Brief contextual information revealed from a {@link TooltipTrigger}.\n * Do not use it as the only label or as essential content.\n */\nexport function Tooltip({\n className,\n placement = \"top\",\n offset = 4,\n crossOffset = 0,\n children,\n ...props\n}: Omit<\n React.ComponentProps<typeof TooltipPrimitive>,\n \"children\" | \"className\"\n> & {\n className?: string\n children?: React.ReactNode\n}) {\n return (\n <TooltipPrimitive\n data-slot=\"tooltip-content\"\n placement={placement}\n offset={offset}\n crossOffset={crossOffset}\n className={cn(\n \"z-50 inline-flex w-fit max-w-xs origin-(--trigger-anchor-point) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background shadow-md outline-none motion-safe:data-entering:animate-ui-surface-in motion-safe:data-exiting:animate-ui-surface-out has-data-[slot=kbd]:pr-1.5 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm\",\n className\n )}\n {...props}\n >\n {children}\n <OverlayArrow\n className=\"z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-xs bg-foreground fill-foreground\"\n style={({ placement, defaultStyle }) => ({\n ...defaultStyle,\n rotate: \"0deg\",\n translate: \"0 0\",\n transform:\n placement === \"bottom\"\n ? \"translate(-50%, calc(50% + 2px)) rotate(45deg)\"\n : placement === \"top\"\n ? \"translate(-50%, calc(-50% - 2px)) rotate(45deg)\"\n : placement === \"left\"\n ? \"translate(calc(-50% - 2px), -50%) rotate(45deg)\"\n : \"translate(calc(50% + 2px), -50%) rotate(45deg)\",\n })}\n />\n </TooltipPrimitive>\n )\n}\n","import { cva, type VariantProps } from \"class-variance-authority\";\nimport { cn } from \"../../lib/cn\";\nimport { Button, type ButtonProps } from \"../button/button\";\nimport { Input } from \"../input/input\";\nimport { Textarea } from \"../textarea/textarea\";\n\n/** Visually joins an input or textarea with contextual text and actions. */\nexport function InputGroup({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n // biome-ignore lint/a11y/useSemanticElements: fieldset cannot preserve this inline control composition.\n <div\n role=\"group\"\n data-slot=\"input-group\"\n className={cn(\n \"group/input-group relative flex min-h-8 w-full min-w-0 items-center rounded-lg border border-border transition-colors outline-none has-disabled:bg-muted/50 has-disabled:opacity-50 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[>[data-align^=block]]:h-auto has-[>[data-align^=block]]:flex-col\",\n className,\n )}\n {...props}\n />\n );\n}\n\nexport const inputGroupAddonVariants = cva(\n \"flex cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none [&_svg:not([class*='size-'])]:size-4\",\n {\n variants: {\n align: {\n \"inline-start\": \"order-first pl-2\",\n \"inline-end\": \"order-last pr-2\",\n \"block-start\": \"order-first w-full justify-start px-2.5 pt-2\",\n \"block-end\": \"order-last w-full justify-start px-2.5 pb-2\",\n },\n },\n defaultVariants: { align: \"inline-start\" },\n },\n);\nexport function InputGroupAddon({\n className,\n align = \"inline-start\",\n onClick,\n ...props\n}: React.ComponentProps<\"div\"> & VariantProps<typeof inputGroupAddonVariants>) {\n return (\n // biome-ignore lint/a11y/useSemanticElements: this addon delegates focus to its associated input.\n <div\n role=\"group\"\n data-slot=\"input-group-addon\"\n data-align={align}\n className={cn(inputGroupAddonVariants({ align }), className)}\n onClick={(event) => {\n onClick?.(event);\n if (!event.defaultPrevented && !(event.target as HTMLElement).closest(\"button\"))\n event.currentTarget.parentElement?.querySelector<HTMLElement>(\"input, textarea\")?.focus();\n }}\n {...props}\n />\n );\n}\n\nconst inputGroupButtonVariants = cva(\"shrink-0 shadow-none\", {\n variants: {\n size: { xs: \"h-6 px-1.5 text-xs\", sm: \"h-7 px-2\", \"icon-xs\": \"size-6\", \"icon-sm\": \"size-7\" },\n },\n defaultVariants: { size: \"xs\" },\n});\nexport type InputGroupButtonProps = Omit<ButtonProps, \"size\"> &\n VariantProps<typeof inputGroupButtonVariants>;\nexport function InputGroupButton({\n className,\n type = \"button\",\n variant = \"ghost\",\n size = \"xs\",\n ...props\n}: InputGroupButtonProps) {\n const buttonSize = size === \"icon-xs\" || size === \"icon-sm\" ? size : size;\n return (\n <Button\n data-slot=\"input-group-button\"\n type={type}\n size={buttonSize}\n variant={variant}\n className={cn(inputGroupButtonVariants({ size }), className)}\n {...props}\n />\n );\n}\n\nexport function InputGroupText({ className, ...props }: React.ComponentProps<\"span\">) {\n return (\n <span\n data-slot=\"input-group-text\"\n className={cn(\n \"flex items-center gap-2 text-sm text-muted-foreground [&_svg:not([class*='size-'])]:size-4\",\n className,\n )}\n {...props}\n />\n );\n}\n\nexport function InputGroupInput({ className, ...props }: React.ComponentProps<typeof Input>) {\n return (\n <Input\n data-slot=\"input-group-control\"\n className={cn(\n \"flex-1 rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 disabled:bg-transparent aria-invalid:ring-0\",\n className,\n )}\n {...props}\n />\n );\n}\n\nexport function InputGroupTextarea({ className, ...props }: React.ComponentProps<typeof Textarea>) {\n return (\n <Textarea\n data-slot=\"input-group-control\"\n className={cn(\n \"flex-1 resize-none rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0\",\n className,\n )}\n {...props}\n />\n );\n}\n","import { forwardRef } from \"react\";\nimport { Input as AriaInput, type InputProps as AriaInputProps } from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\n\ntype CompatibleRef<T> = ((instance: T | null) => unknown) | { readonly current: T | null } | null;\n\n/** Props for a single-line text input. */\nexport type InputProps = Omit<AriaInputProps, \"ref\"> & {\n /** Ref compatible with all supported React 19 type releases. */\n ref?: CompatibleRef<HTMLInputElement>;\n};\n\nconst InputImpl = forwardRef<HTMLInputElement, AriaInputProps>(function Input({ className, type, ...props }, ref) {\n return <AriaInput ref={ref} type={type} data-slot=\"input\" className={cn(\"h-8 w-full min-w-0 rounded-lg border border-border bg-background px-2.5 py-1 text-sm text-foreground outline-none placeholder:text-muted-foreground focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive\", className)} {...props} />;\n});\n\n/** Accessible single-line input with a ref type compatible across React 19 type releases. */\nexport const Input = InputImpl as unknown as (props: InputProps) => ReturnType<typeof InputImpl>;\n","import { forwardRef } from \"react\";\nimport { TextArea as AriaTextArea, type TextAreaProps as AriaTextAreaProps } from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\n\ntype CompatibleRef<T> = ((instance: T | null) => unknown) | { readonly current: T | null } | null;\n\nexport type TextareaProps = Omit<AriaTextAreaProps, \"ref\"> & { ref?: CompatibleRef<HTMLTextAreaElement> };\n\nconst TextareaImpl = forwardRef<HTMLTextAreaElement, AriaTextAreaProps>(function Textarea({ className, ...props }, ref) {\n return <AriaTextArea ref={ref} data-slot=\"textarea\" className={cn(\"min-h-20 w-full rounded-lg border border-border bg-background px-2.5 py-2 text-sm text-foreground outline-none placeholder:text-muted-foreground focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive\", className)} {...props} />;\n});\n\n/** Forward-ref component with a ref type compatible across React 19 type releases. */\nexport const Textarea = TextareaImpl as unknown as (props: TextareaProps) => ReturnType<typeof TextareaImpl>;\n","import type * as React from \"react\";\nimport { cn } from \"../../lib/cn\";\n\n/** Formats a keyboard key or shortcut with semantic `kbd` markup. */\nexport function Kbd({ className, ...props }: React.ComponentProps<\"kbd\">) {\n return <kbd data-slot=\"kbd\" className={cn(\"pointer-events-none inline-flex h-5 min-w-5 items-center justify-center gap-1 rounded-sm bg-muted px-1 font-sans text-xs font-medium text-muted-foreground select-none\", className)} {...props} />;\n}\n\nexport function KbdGroup({ className, ...props }: React.ComponentProps<\"span\">) {\n return <span data-slot=\"kbd-group\" className={cn(\"inline-flex items-center gap-1\", className)} {...props} />;\n}\n","import type * as React from \"react\";\nimport { LoaderCircle } from \"lucide-react\";\nimport { cn } from \"../../lib/cn\";\n\n/** Busy overlay that keeps the loading state available to assistive technology. */\nexport function LoadingOverlay({ label = \"Cargando\", className, ...props }: React.ComponentProps<\"div\"> & { label?: string }) { return <div role=\"status\" aria-live=\"polite\" className={cn(\"absolute inset-0 z-10 flex items-center justify-center bg-background/70 backdrop-blur-[2px]\", className)} {...props}><div className=\"flex items-center gap-2 rounded-lg border border-border bg-background px-3 py-2 text-sm shadow-sm\"><LoaderCircle className=\"animate-spin\" aria-hidden=\"true\" /><span>{label}</span></div></div>; }\n","import {\n Menu as AriaMenu,\n MenuItem as AriaMenuItem,\n MenuTrigger as AriaMenuTrigger,\n Popover,\n type MenuItemProps,\n type MenuProps,\n} from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\n\nexport const MenuTrigger = AriaMenuTrigger;\n\nexport function MenuContent({ className, ...props }: React.ComponentProps<typeof Popover>) {\n return <Popover data-slot=\"menu-content\" className={cn(\"min-w-40 overflow-hidden rounded-xl border border-border bg-background p-1.5 text-foreground shadow-lg motion-safe:data-entering:animate-ui-surface-in motion-safe:data-exiting:animate-ui-surface-out\", className)} {...props} />;\n}\n\n/** Accessible collection of actions or options within a {@link MenuTrigger}. */\nexport function Menu<T extends object>({ className, ...props }: MenuProps<T>) {\n return <AriaMenu data-slot=\"menu\" className={cn(\"outline-none\", className)} {...props} />;\n}\n\nexport function MenuItem<T extends object>({ className, children, ...props }: MenuItemProps<T>) {\n return <AriaMenuItem data-slot=\"menu-item\" className={cn(\"flex cursor-default items-center gap-2 rounded-md px-2 py-1.5 text-sm outline-none data-focused:bg-muted data-disabled:pointer-events-none data-disabled:opacity-50\", className)} {...props}>{children}</AriaMenuItem>;\n}\n","import type * as React from \"react\";\n\nimport { cn } from \"../../lib/cn\";\nimport { Card, CardContent } from \"../card/card\";\n\nexport type MetricCardProps = Omit<React.ComponentProps<typeof Card>, \"children\"> & {\n /** Short name of the metric. */\n label: React.ReactNode;\n /** Primary metric value. */\n value: React.ReactNode;\n /** Optional supporting information, such as freshness or comparison. */\n description?: React.ReactNode;\n /** Decorative or labelled visual accompanying the metric. */\n icon?: React.ReactNode;\n /** Semantic emphasis without coupling the card to a product status. */\n tone?: \"default\" | \"success\" | \"warning\" | \"danger\" | \"info\";\n};\n\n/** Compact, accessible summary of a labelled metric. */\nexport function MetricCard({\n className,\n label,\n value,\n description,\n icon,\n tone = \"default\",\n ...props\n}: MetricCardProps) {\n return (\n <Card data-slot=\"metric-card\" data-tone={tone} className={cn(\"min-w-0\", className)} {...props}>\n <CardContent className=\"flex items-start gap-3\">\n {icon ? <div data-slot=\"metric-card-icon\" className=\"shrink-0 text-muted-foreground\">{icon}</div> : null}\n <div className=\"min-w-0\">\n <p data-slot=\"metric-card-label\" className=\"text-sm text-muted-foreground\">{label}</p>\n <strong data-slot=\"metric-card-value\" className=\"mt-1 block text-2xl font-semibold tracking-tight\">{value}</strong>\n {description ? <p data-slot=\"metric-card-description\" className=\"mt-1 text-xs text-muted-foreground\">{description}</p> : null}\n </div>\n </CardContent>\n </Card>\n );\n}","import {\n forwardRef,\n type PointerEvent as ReactPointerEvent,\n useImperativeHandle,\n useRef,\n useState,\n} from \"react\";\nimport { Input as AriaInput, type InputProps as AriaInputProps } from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\n\ntype CompatibleRef<T> = ((instance: T | null) => unknown) | { readonly current: T | null } | null;\n\nexport type OtpInputProps = Omit<\n AriaInputProps,\n \"children\" | \"className\" | \"defaultValue\" | \"maxLength\" | \"onChange\" | \"type\" | \"value\"\n> & {\n /** Number of numeric characters in the code. */\n length?: number;\n value?: string;\n defaultValue?: string;\n onChange?: (value: string) => void;\n onComplete?: (value: string) => void;\n className?: string;\n inputClassName?: string;\n ref?: CompatibleRef<HTMLInputElement>;\n};\n\nfunction normalizeOtp(value: string, length: number) {\n return value.replace(/[^0-9]/g, \"\").slice(0, length);\n}\n\nconst OtpInputImpl = forwardRef<HTMLInputElement, OtpInputProps>(function OtpInput(\n {\n length = 6,\n value,\n defaultValue = \"\",\n onChange,\n onComplete,\n className,\n inputClassName,\n disabled,\n onBlur,\n onFocus,\n onKeyUp,\n onSelect,\n ...props\n },\n forwardedRef,\n) {\n const slotCount = Math.max(1, Math.floor(length));\n const controlled = value !== undefined;\n const [internalValue, setInternalValue] = useState(() => normalizeOtp(defaultValue, slotCount));\n const code = normalizeOtp(controlled ? value : internalValue, slotCount);\n const slots = Array.from({ length: slotCount }, (_, index) => `otp-slot-${index + 1}`);\n const inputRef = useRef<HTMLInputElement>(null);\n const [focused, setFocused] = useState(false);\n const [selectionStart, setSelectionStart] = useState(0);\n const invalid = props[\"aria-invalid\"] === true || props[\"aria-invalid\"] === \"true\";\n const activeIndex =\n code.length === slotCount\n ? slotCount - 1\n : Math.min(selectionStart, code.length, slotCount - 1);\n\n useImperativeHandle(forwardedRef, () => inputRef.current as HTMLInputElement);\n\n function updateSelection(input: HTMLInputElement) {\n setSelectionStart(input.selectionStart ?? code.length);\n }\n\n function commitValue(rawValue: string) {\n const nextValue = normalizeOtp(rawValue, slotCount);\n if (!controlled) setInternalValue(nextValue);\n if (nextValue === code) return;\n onChange?.(nextValue);\n if (nextValue.length === slotCount) onComplete?.(nextValue);\n }\n\n function handlePointerDown(event: ReactPointerEvent<HTMLDivElement>) {\n if (disabled) return;\n event.preventDefault();\n const input = inputRef.current;\n if (!input) return;\n const bounds = event.currentTarget.getBoundingClientRect();\n const offset = bounds.width > 0 ? (event.clientX - bounds.left) / bounds.width : 1;\n const position = Math.min(Math.max(Math.floor(offset * slotCount), 0), code.length);\n input.focus();\n input.setSelectionRange(position, position);\n setSelectionStart(position);\n }\n\n return (\n <div\n data-slot=\"otp-input\"\n data-disabled={disabled || undefined}\n data-invalid={invalid || undefined}\n className={cn(\"relative inline-grid max-w-full gap-2\", className)}\n style={{ gridTemplateColumns: `repeat(${slotCount}, minmax(0, 2.5rem))` }}\n onPointerDown={handlePointerDown}\n >\n <AriaInput\n {...props}\n ref={inputRef}\n type=\"text\"\n inputMode={props.inputMode ?? \"numeric\"}\n autoComplete={props.autoComplete ?? \"one-time-code\"}\n pattern={props.pattern ?? \"[0-9]*\"}\n maxLength={slotCount}\n value={code}\n disabled={disabled}\n data-slot=\"otp-input-control\"\n className={cn(\n \"absolute inset-0 z-10 size-full cursor-text appearance-none rounded-lg border-0 bg-transparent text-base text-transparent caret-transparent outline-none selection:bg-transparent disabled:cursor-not-allowed\",\n inputClassName,\n )}\n onChange={(event) => {\n commitValue(event.currentTarget.value);\n updateSelection(event.currentTarget);\n }}\n onFocus={(event) => {\n setFocused(true);\n updateSelection(event.currentTarget);\n onFocus?.(event);\n }}\n onBlur={(event) => {\n setFocused(false);\n onBlur?.(event);\n }}\n onSelect={(event) => {\n updateSelection(event.currentTarget);\n onSelect?.(event);\n }}\n onKeyUp={(event) => {\n updateSelection(event.currentTarget);\n onKeyUp?.(event);\n }}\n />\n {slots.map((slot, index) => (\n <span\n key={slot}\n aria-hidden=\"true\"\n data-slot=\"otp-input-slot\"\n data-active={(focused && index === activeIndex) || undefined}\n className={cn(\n \"pointer-events-none grid size-10 place-items-center rounded-lg border border-border bg-background text-base font-medium tabular-nums text-foreground transition-[border-color,box-shadow]\",\n focused && index === activeIndex && \"border-ring ring-3 ring-ring/50\",\n invalid && \"border-destructive\",\n disabled && \"opacity-50\",\n )}\n >\n {code[index] ?? \"\"}\n </span>\n ))}\n </div>\n );\n});\n\n/** A single accessible input visually split into slots for numeric one-time codes. */\nexport const OtpInput = OtpInputImpl as unknown as (\n props: OtpInputProps,\n) => ReturnType<typeof OtpInputImpl>;\n","import type * as React from \"react\";\nimport { cn } from \"../../lib/cn\";\n\n/** Page-level heading layout with optional description and actions. */\nexport function PageHeader({ className, ...props }: React.ComponentProps<\"header\">) {\n return <header data-slot=\"page-header\" className={cn(\"flex flex-col gap-4 py-2 sm:flex-row sm:items-center sm:justify-between\", className)} {...props} />;\n}\nexport function PageHeaderHeading({ className, ...props }: React.ComponentProps<\"div\">) {\n return <div data-slot=\"page-header-heading\" className={cn(\"min-w-0\", className)} {...props} />;\n}\nexport function PageHeaderTitle({ className, ...props }: React.ComponentProps<\"h1\">) {\n return <h1 data-slot=\"page-header-title\" className={cn(\"truncate text-xl font-semibold tracking-tight md:text-2xl\", className)} {...props} />;\n}\nexport function PageHeaderDescription({ className, ...props }: React.ComponentProps<\"p\">) {\n return <p data-slot=\"page-header-description\" className={cn(\"mt-1 text-sm text-muted-foreground\", className)} {...props} />;\n}\nexport function PageHeaderActions({ className, ...props }: React.ComponentProps<\"div\">) {\n return <div data-slot=\"page-header-actions\" className={cn(\"flex shrink-0 items-center gap-2\", className)} {...props} />;\n}\n","import { ChevronLeft, ChevronRight } from \"lucide-react\";\nimport * as React from \"react\";\n\nimport { Button } from \"../button/button\";\nimport { cn } from \"../../lib/cn\";\n\nexport type PaginationProps = {\n /** Currently selected page, starting at one. */\n page: number;\n /** Total number of pages available. */\n pageCount: number;\n /** Called with the page selected by the user. */\n onPageChange: (page: number) => void;\n /** Accessible name for the page navigation landmark. */\n ariaLabel?: string;\n /** Optional description of the slice of results currently visible. */\n summary?: React.ReactNode;\n /** Number of neighbouring pages shown around the current page. */\n siblingCount?: number;\n className?: string;\n};\n\nfunction visiblePages(page: number, pageCount: number, siblingCount: number) {\n return [\n ...new Set([\n 1,\n ...Array.from({ length: siblingCount * 2 + 1 }, (_, index) => page - siblingCount + index),\n pageCount,\n ]),\n ]\n .filter((item) => item >= 1 && item <= pageCount)\n .sort((left, right) => left - right);\n}\n\n/** Navigation control for a known number of result pages. */\nexport function Pagination({\n page,\n pageCount,\n onPageChange,\n ariaLabel = \"Paginación\",\n summary,\n siblingCount = 1,\n className,\n}: PaginationProps) {\n if (pageCount <= 1) return null;\n const pages = visiblePages(page, pageCount, siblingCount);\n\n return (\n <nav\n aria-label={ariaLabel}\n className={cn(\"flex flex-wrap items-center justify-between gap-4\", className)}\n >\n <p className=\"text-sm text-muted-foreground\">{summary ?? `Página ${page} de ${pageCount}`}</p>\n <div className=\"flex items-center gap-1\">\n <Button\n aria-label=\"Página anterior\"\n isDisabled={page <= 1}\n onPress={() => onPageChange(page - 1)}\n size=\"icon\"\n variant=\"ghost\"\n >\n <ChevronLeft />\n </Button>\n {pages.map((item, index) => {\n const previousPage = pages[index - 1];\n return (\n <React.Fragment key={item}>\n {previousPage !== undefined && item > previousPage + 1 ? (\n <span aria-hidden=\"true\" className=\"px-1 text-muted-foreground\">\n …\n </span>\n ) : null}\n <Button\n aria-current={item === page ? \"page\" : undefined}\n aria-label={`Página ${item}`}\n onPress={() => onPageChange(item)}\n size=\"icon\"\n variant={item === page ? \"secondary\" : \"ghost\"}\n >\n {item}\n </Button>\n </React.Fragment>\n );\n })}\n <Button\n aria-label=\"Página siguiente\"\n isDisabled={page >= pageCount}\n onPress={() => onPageChange(page + 1)}\n size=\"icon\"\n variant=\"ghost\"\n >\n <ChevronRight />\n </Button>\n </div>\n </nav>\n );\n}\n","import {\n DialogTrigger as AriaDialogTrigger,\n Popover as AriaPopover,\n type DialogTriggerProps,\n type PopoverProps as AriaPopoverProps,\n} from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\n\nexport type PopoverProps = Omit<AriaPopoverProps, \"className\"> & { className?: string };\nexport type { DialogTriggerProps as PopoverTriggerProps };\n\n/** Wrap a trigger and Popover surface; React Aria handles focus and positioning. */\nexport const PopoverTrigger = AriaDialogTrigger;\n\nexport function Popover({ className, ...props }: PopoverProps) {\n return <AriaPopover data-slot=\"popover\" offset={6} className={cn(\"min-w-48 rounded-xl border border-border bg-background p-1.5 text-foreground shadow-lg outline-none motion-safe:data-entering:animate-ui-surface-in motion-safe:data-exiting:animate-ui-surface-out\", className)} {...props} />;\n}\n\n/** Floating content positioned and focus-managed by {@link PopoverTrigger}. */\nexport const PopoverContent = Popover;\n","import { Minus, Plus } from \"lucide-react\";\nimport {\n Button as AriaButton,\n Group as AriaGroup,\n Input as AriaInput,\n NumberField as AriaNumberField,\n type NumberFieldProps as AriaNumberFieldProps,\n} from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\n\nexport type QuantityInputProps = Omit<AriaNumberFieldProps, \"children\" | \"className\"> & {\n className?: string;\n inputClassName?: string;\n decrementAriaLabel?: string;\n incrementAriaLabel?: string;\n};\n\n/** A compact quantity control with accessible stepper buttons and numeric keyboard support. */\nexport function QuantityInput({\n className,\n inputClassName,\n decrementAriaLabel = \"Disminuir cantidad\",\n incrementAriaLabel = \"Aumentar cantidad\",\n minValue = 0,\n step = 1,\n ...props\n}: QuantityInputProps) {\n return (\n <AriaNumberField\n {...props}\n minValue={minValue}\n step={step}\n data-slot=\"quantity-input\"\n className={cn(\"group/quantity-input inline-flex min-w-0 data-disabled:cursor-not-allowed data-disabled:opacity-50\", className)}\n >\n <AriaGroup\n data-slot=\"quantity-input-group\"\n className=\"flex h-8 min-w-0 items-stretch overflow-hidden rounded-lg border border-border bg-background text-foreground transition-[border-color,box-shadow] focus-within:border-ring focus-within:ring-3 focus-within:ring-ring/50 group-data-invalid/quantity-input:border-destructive\"\n >\n <AriaButton slot=\"decrement\" aria-label={decrementAriaLabel} data-slot=\"quantity-input-decrement\" className=\"flex size-8 shrink-0 cursor-pointer items-center justify-center border-r border-border text-muted-foreground outline-none transition-colors hover:bg-muted hover:text-foreground data-focus-visible:bg-muted data-pressed:bg-muted data-disabled:pointer-events-none\">\n <Minus aria-hidden=\"true\" className=\"size-4\" />\n </AriaButton>\n <AriaInput data-slot=\"quantity-input-value\" className={cn(\"w-14 min-w-0 bg-transparent px-1 text-center text-sm tabular-nums outline-none\", inputClassName)} />\n <AriaButton slot=\"increment\" aria-label={incrementAriaLabel} data-slot=\"quantity-input-increment\" className=\"flex size-8 shrink-0 cursor-pointer items-center justify-center border-l border-border text-muted-foreground outline-none transition-colors hover:bg-muted hover:text-foreground data-focus-visible:bg-muted data-pressed:bg-muted data-disabled:pointer-events-none\">\n <Plus aria-hidden=\"true\" className=\"size-4\" />\n </AriaButton>\n </AriaGroup>\n </AriaNumberField>\n );\n}","import {\n Button as AriaButton,\n Select as AriaSelect,\n SelectValue as AriaSelectValue,\n ListBox,\n ListBoxItem,\n Popover,\n type SelectProps as AriaSelectProps,\n type ButtonProps,\n type ListBoxItemProps,\n type ListBoxProps,\n} from \"react-aria-components\";\nimport { ChevronDown } from \"lucide-react\";\nimport { cn } from \"../../lib/cn\";\n\n/** State container for an accessible select control and its option collection. */\nexport const Select = AriaSelect;\nexport type { AriaSelectProps as SelectProps };\n\n/** Button that opens the option list of its parent {@link Select}. */\nexport function SelectTrigger({ className, children, ...props }: ButtonProps) {\n return <AriaButton data-slot=\"select-trigger\" className={cn(\"group/select-trigger flex h-8 w-full min-w-36 items-center gap-2 rounded-lg border border-border bg-background px-2.5 text-left text-sm text-foreground outline-none data-focus-visible:ring-3 data-focus-visible:ring-ring/50 data-disabled:cursor-not-allowed data-disabled:opacity-50\", className)} {...props}>{(state) => <>{typeof children === \"function\" ? children(state) : children}<ChevronDown aria-hidden=\"true\" className=\"ml-auto size-4 text-muted-foreground transition-transform group-data-pressed/select-trigger:rotate-180 motion-reduce:transition-none\" /></>}</AriaButton>;\n}\n\n/** Displays the selected option or its placeholder. */\nexport function SelectValue({ className, ...props }: React.ComponentProps<typeof AriaSelectValue>) {\n return <AriaSelectValue data-slot=\"select-value\" className={cn(\"flex-1 truncate data-placeholder:text-muted-foreground\", className)} {...props} />;\n}\n\n/** Floating surface that contains a {@link SelectList}. */\nexport function SelectContent({ className, ...props }: React.ComponentProps<typeof Popover>) {\n return <Popover data-slot=\"select-content\" className={cn(\"w-(--trigger-width) overflow-hidden rounded-xl border border-border bg-background p-1.5 text-foreground shadow-lg motion-safe:data-entering:animate-ui-surface-in motion-safe:data-exiting:animate-ui-surface-out\", className)} {...props} />;\n}\n\n/** Scrollable list of {@link SelectItem} options. */\nexport function SelectList<T extends object>({ className, ...props }: ListBoxProps<T>) {\n return <ListBox data-slot=\"select-list\" className={cn(\"max-h-64 overflow-y-auto\", className)} {...props} />;\n}\n\n/** Selectable option within a {@link SelectList}. */\nexport function SelectItem<T extends object>({ className, children, ...props }: ListBoxItemProps<T>) {\n return <ListBoxItem data-slot=\"select-item\" className={cn(\"flex cursor-default items-center gap-2 rounded-md px-2 py-1.5 text-sm outline-none data-focused:bg-muted data-selected:bg-muted data-disabled:pointer-events-none data-disabled:opacity-50\", className)} {...props}>{children}</ListBoxItem>;\n}\n","\"use client\";\n\nimport { XIcon } from \"lucide-react\";\nimport type * as React from \"react\";\nimport {\n Heading,\n ModalOverlay as ModalOverlayPrimitive,\n type ModalOverlayProps as ModalOverlayPrimitiveProps,\n Modal as ModalPrimitive,\n Dialog as SheetPrimitive,\n type DialogProps as SheetPrimitiveProps,\n DialogTrigger as SheetTriggerPrimitive,\n type DialogTriggerProps as SheetTriggerPrimitiveProps,\n Text,\n} from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\nimport { Button, type ButtonProps } from \"../button/button\";\n\nfunction SheetTrigger({ ...props }: SheetTriggerPrimitiveProps) {\n return <SheetTriggerPrimitive data-slot=\"sheet-trigger\" {...props} />;\n}\n\nfunction SheetClose({ className, variant = \"outline\", size = \"default\", ...props }: ButtonProps) {\n return (\n <Button\n slot=\"close\"\n data-slot=\"sheet-close\"\n variant={variant}\n size={size}\n className={cn(className)}\n {...props}\n />\n );\n}\n\nfunction SheetOverlay({\n className,\n children,\n ...props\n}: Omit<ModalOverlayPrimitiveProps, \"className\" | \"children\"> & {\n className?: string;\n children: React.ReactNode;\n}) {\n return (\n <ModalOverlayPrimitive\n data-slot=\"sheet-overlay\"\n isDismissable\n className={cn(\n \"fixed inset-0 z-50 bg-black/10 transition-opacity duration-150 data-entering:opacity-0 data-exiting:opacity-0 supports-backdrop-filter:backdrop-blur-xs\",\n className,\n )}\n {...props}\n >\n {children}\n </ModalOverlayPrimitive>\n );\n}\n\n/** Dismissable modal panel that slides in from a screen edge. */\nfunction Sheet({\n className,\n children,\n side = \"right\",\n showCloseButton = true,\n ...props\n}: Omit<ModalOverlayPrimitiveProps, \"className\" | \"children\"> &\n Pick<React.ComponentProps<typeof ModalPrimitive>, \"isDismissable\"> & {\n className?: string;\n children: React.ReactNode;\n side?: \"top\" | \"right\" | \"bottom\" | \"left\";\n showCloseButton?: boolean;\n }) {\n return (\n <SheetOverlay {...props}>\n <ModalPrimitive\n data-slot=\"sheet-content\"\n data-side={side}\n className={cn(\n \"fixed z-50 flex flex-col gap-4 border-border bg-popover bg-clip-padding text-sm text-popover-foreground shadow-lg transition duration-200 ease-in-out data-entering:opacity-0 data-exiting:opacity-0 data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=bottom]:data-entering:translate-y-10 data-[side=bottom]:data-exiting:translate-y-10 data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=left]:data-entering:-translate-x-10 data-[side=left]:data-exiting:-translate-x-10 data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=right]:data-entering:translate-x-10 data-[side=right]:data-exiting:translate-x-10 data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=top]:data-entering:-translate-y-10 data-[side=top]:data-exiting:-translate-y-10 data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm\",\n className,\n )}\n >\n <SheetPrimitive\n data-slot=\"sheet\"\n className=\"[display:inherit] h-full max-h-[inherit] [flex-direction:inherit] gap-[inherit] outline-none\"\n >\n {children}\n {showCloseButton && (\n <SheetClose variant=\"ghost\" className=\"absolute top-3 right-3\" size=\"icon-sm\">\n <XIcon />\n <span className=\"sr-only\">Cerrar</span>\n </SheetClose>\n )}\n </SheetPrimitive>\n </ModalPrimitive>\n </SheetOverlay>\n );\n}\n\nfunction SheetContent({\n className,\n children,\n side = \"right\",\n showCloseButton = true,\n ...props\n}: React.ComponentProps<typeof Sheet> & {\n side?: \"top\" | \"right\" | \"bottom\" | \"left\";\n showCloseButton?: boolean;\n}) {\n return (\n <Sheet className={className} side={side} showCloseButton={showCloseButton} {...props}>\n {children}\n </Sheet>\n );\n}\n\nfunction SheetHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"sheet-header\"\n className={cn(\"flex flex-col gap-0.5 p-4\", className)}\n {...props}\n />\n );\n}\n\nfunction SheetFooter({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"sheet-footer\"\n className={cn(\"mt-auto flex flex-col gap-2 p-4\", className)}\n {...props}\n />\n );\n}\n\nfunction SheetTitle({ className, ...props }: Omit<React.ComponentProps<typeof Heading>, \"slot\">) {\n return (\n <Heading\n slot=\"title\"\n data-slot=\"sheet-title\"\n className={cn(\"text-base font-medium text-foreground\", className)}\n {...props}\n />\n );\n}\n\nfunction SheetDescription({\n className,\n ...props\n}: Omit<React.ComponentProps<typeof Text>, \"slot\">) {\n return (\n <Text\n slot=\"description\"\n data-slot=\"sheet-description\"\n className={cn(\"text-sm text-muted-foreground\", className)}\n {...props}\n />\n );\n}\n\nexport {\n Sheet,\n SheetClose,\n SheetContent,\n SheetDescription,\n SheetFooter,\n SheetHeader,\n type SheetPrimitiveProps,\n SheetTitle,\n SheetTrigger,\n type SheetTriggerPrimitiveProps,\n};\n","import {\n ChevronLeft,\n ChevronRight,\n Ellipsis,\n Search,\n} from \"lucide-react\";\nimport {\n createContext,\n type ReactNode,\n useContext,\n useMemo,\n useState,\n} from \"react\";\nimport { Link, type LinkProps } from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\nimport { Button, type ButtonProps } from \"../button/button\";\n\ntype SidebarContextValue = {\n collapsed: boolean;\n setCollapsed: (value: boolean) => void;\n toggle: () => void;\n};\nconst SidebarContext = createContext<SidebarContextValue | null>(null);\n\nexport function useSidebar() {\n const context = useContext(SidebarContext);\n if (!context)\n throw new Error(\"useSidebar must be used inside SidebarProvider\");\n return context;\n}\n\n/** Provides the expanded or collapsed state required by sidebar components. */\nexport function SidebarProvider({\n defaultCollapsed = false,\n children,\n}: {\n defaultCollapsed?: boolean;\n children: ReactNode;\n}) {\n const [collapsed, setCollapsed] = useState(defaultCollapsed);\n const value = useMemo(\n () => ({\n collapsed,\n setCollapsed,\n toggle: () => setCollapsed((current) => !current),\n }),\n [collapsed],\n );\n return (\n <SidebarContext.Provider value={value}>{children}</SidebarContext.Provider>\n );\n}\n\n/** Primary application navigation; render it within a {@link SidebarProvider}. */\nexport function Sidebar({\n className,\n ...props\n}: React.ComponentProps<\"aside\">) {\n const { collapsed } = useSidebar();\n return (\n <aside\n data-slot=\"sidebar\"\n data-collapsed={collapsed || undefined}\n className={cn(\n \"group/sidebar flex h-full w-56 shrink-0 flex-col border-r border-border bg-card text-foreground transition-[width] duration-200 ease-out motion-reduce:transition-none data-[collapsed]:w-16\",\n className,\n )}\n {...props}\n />\n );\n}\n\nexport function SidebarHeader({\n className,\n ...props\n}: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"sidebar-header\"\n className={cn(\"flex items-center gap-2 px-4 py-5\", className)}\n {...props}\n />\n );\n}\n\nexport function SidebarSearch({\n label = \"Buscar…\",\n shortcut = \"⌘K\",\n className,\n ...props\n}: React.ComponentProps<\"button\"> & { label?: string; shortcut?: string }) {\n return (\n <button\n type=\"button\"\n data-slot=\"sidebar-search\"\n className={cn(\n \"group flex w-full items-center gap-2 rounded-md border border-border bg-background px-2.5 py-1.5 text-sm text-muted-foreground transition-colors hover:border-primary/40 hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring\",\n className,\n )}\n {...props}\n >\n <Search className=\"size-4 shrink-0\" />\n <span className=\"flex-1 text-left\">{label}</span>\n <kbd className=\"rounded bg-secondary px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground\">\n {shortcut}\n </kbd>\n </button>\n );\n}\n\nexport function SidebarContent({\n className,\n ...props\n}: React.ComponentProps<\"nav\">) {\n return (\n <nav\n data-slot=\"sidebar-content\"\n aria-label=\"Navegación principal\"\n className={cn(\"min-h-0 flex-1 overflow-y-auto px-2 py-1\", className)}\n {...props}\n />\n );\n}\n\nexport function SidebarFooter({\n className,\n ...props\n}: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"sidebar-footer\"\n className={cn(\n \"mt-auto flex flex-col gap-2 border-t border-border p-2\",\n className,\n )}\n {...props}\n />\n );\n}\n\nexport function SidebarGroup({\n label,\n className,\n children,\n ...props\n}: React.ComponentProps<\"section\"> & { label?: string }) {\n const { collapsed } = useSidebar();\n return (\n <section\n data-slot=\"sidebar-group\"\n className={cn(\"mb-4 last:mb-0\", className)}\n {...props}\n >\n {label && (\n <h2\n className={cn(\n \"mb-1 px-3 text-[11px] font-semibold uppercase tracking-wider text-muted-foreground\",\n collapsed && \"sr-only\",\n )}\n >\n {label}\n </h2>\n )}\n {children}\n </section>\n );\n}\n\nexport type SidebarItemProps = LinkProps & {\n icon?: ReactNode;\n active?: boolean;\n badge?: ReactNode;\n label?: string;\n};\nexport function SidebarItem({\n icon,\n active,\n badge,\n label,\n children,\n className,\n ...props\n}: SidebarItemProps) {\n const { collapsed } = useSidebar();\n const content = typeof children === \"function\" ? label : (children ?? label);\n return (\n <Link\n data-slot=\"sidebar-item\"\n aria-current={active ? \"page\" : undefined}\n aria-label={collapsed && label ? label : undefined}\n className={cn(\n \"group/item relative flex min-h-9 items-center gap-2.5 rounded-md px-2.5 py-2 text-sm text-muted-foreground outline-none transition-[background-color,color,transform] duration-150 hover:bg-secondary/60 hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring/40 data-[current=page]:bg-secondary data-[current=page]:font-medium data-[current=page]:text-foreground data-pressed:scale-[0.98] motion-reduce:transition-none\",\n collapsed && \"justify-center px-0\",\n typeof className === \"function\" ? className : className,\n )}\n {...props}\n >\n {(values) => (\n <>\n <span className=\"flex size-4 shrink-0 items-center justify-center\">\n {icon}\n </span>\n <span\n className={cn(\"min-w-0 flex-1 truncate\", collapsed && \"sr-only\")}\n >\n {typeof children === \"function\" ? children(values) : content}\n </span>\n {badge && !collapsed && (\n <span className=\"text-xs text-muted-foreground\">{badge}</span>\n )}\n </>\n )}\n </Link>\n );\n}\n\nexport function SidebarSeparator({\n className,\n ...props\n}: React.ComponentProps<\"hr\">) {\n return (\n <hr\n data-slot=\"sidebar-separator\"\n className={cn(\"my-2 h-px border-0 bg-border\", className)}\n {...props}\n />\n );\n}\n\nexport function SidebarTrigger({ className, ...props }: ButtonProps) {\n const { collapsed, toggle } = useSidebar();\n return (\n <Button\n aria-label={collapsed ? \"Expandir navegación\" : \"Colapsar navegación\"}\n onPress={toggle}\n size=\"icon\"\n variant=\"ghost\"\n className={cn(\"ml-auto\", className)}\n {...props}\n >\n {collapsed ? <ChevronRight /> : <ChevronLeft />}\n </Button>\n );\n}\n\nexport function SidebarRail({\n className,\n ...props\n}: React.ComponentProps<\"button\">) {\n const { toggle } = useSidebar();\n return (\n <button\n type=\"button\"\n aria-label=\"Alternar navegación\"\n onClick={toggle}\n className={cn(\n \"absolute inset-y-0 right-0 z-20 hidden w-1 -translate-x-1/2 cursor-ew-resize bg-transparent transition-colors hover:bg-border lg:block\",\n className,\n )}\n {...props}\n />\n );\n}\n\nexport function SidebarMore({ className, ...props }: ButtonProps) {\n return (\n <Button\n aria-label=\"Más opciones\"\n size=\"icon\"\n variant=\"ghost\"\n className={cn(\"size-7\", className)}\n {...props}\n >\n <Ellipsis />\n </Button>\n );\n}\n","import type * as React from \"react\";\nimport { cn } from \"../../lib/cn\";\n\n/** Decorative placeholder displayed while content is loading. */\nexport function Skeleton({ className, ...props }: React.ComponentProps<\"div\">) {\n return <div aria-hidden=\"true\" data-slot=\"skeleton\" className={cn(\"animate-pulse rounded-md bg-muted\", className)} {...props} />;\n}\n","import { useFormStatus } from \"react-dom\";\nimport { LoaderCircle } from \"lucide-react\";\nimport { Button, type ButtonProps } from \"../button/button\";\n\nexport interface SubmitButtonProps extends Omit<ButtonProps, \"type\"> {\n /** Text displayed while the parent form is submitting or loading is set. */\n pendingLabel?: string;\n /** Explicit loading state in addition to the parent form status. */\n loading?: boolean;\n children: React.ReactNode;\n}\n\n/** Submit button that disables itself and announces progress while a form is pending. */\nexport function SubmitButton({ pendingLabel = \"Guardando…\", loading = false, children, isDisabled, size = \"sm\", ...props }: SubmitButtonProps) {\n const { pending } = useFormStatus();\n const busy = pending || loading;\n return <Button type=\"submit\" size={size} isDisabled={busy || isDisabled} aria-busy={busy || undefined} {...props}>{busy ? <><LoaderCircle aria-hidden=\"true\" className=\"size-3.5 animate-spin\" />{pendingLabel}</> : children}</Button>;\n}\n","\"use client\";\n\nimport { useEffect, useRef, type ReactNode } from \"react\";\nimport {\n Switch as AriaSwitch,\n type SwitchProps as AriaSwitchProps,\n} from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\n\nconst switchSizes = {\n sm: {\n control: \"h-4 w-[1.875rem] p-0.5\",\n thumb: \"h-3\",\n idleWidth: \"0.75rem\",\n activeWidth: \"1rem\",\n selectedOffset: \"0.875rem\",\n activeSelectedOffset: \"0.625rem\",\n },\n md: {\n control: \"h-5 w-9 p-0.5\",\n thumb: \"h-4\",\n idleWidth: \"1rem\",\n activeWidth: \"1.25rem\",\n selectedOffset: \"1rem\",\n activeSelectedOffset: \"0.75rem\",\n },\n lg: {\n control: \"h-6 w-11 p-0.5\",\n thumb: \"h-5\",\n idleWidth: \"1.25rem\",\n activeWidth: \"1.5rem\",\n selectedOffset: \"1.25rem\",\n activeSelectedOffset: \"1rem\",\n },\n} as const;\n\nexport type SwitchProps = Omit<AriaSwitchProps, \"className\"> & {\n className?: string;\n size?: keyof typeof switchSizes;\n description?: ReactNode;\n icon?: ReactNode;\n selectedIcon?: ReactNode;\n};\n\n/** Accessible React Aria switch with semantic tokens and a compact capsule thumb. */\nexport function Switch({\n className,\n children,\n description,\n icon,\n inputRef,\n isDisabled,\n isReadOnly,\n selectedIcon,\n size = \"sm\",\n ...props\n}: SwitchProps) {\n const styles = switchSizes[size];\n const fallbackInputRef = useRef<HTMLInputElement>(null);\n const resolvedInputRef = inputRef ?? fallbackInputRef;\n\n useEffect(() => {\n const input = resolvedInputRef.current;\n if (!input) return;\n\n const handleDirectionalKey = (event: KeyboardEvent) => {\n if (\n event.target !== input || event.defaultPrevented || isDisabled || isReadOnly ||\n event.altKey || event.ctrlKey || event.metaKey || event.shiftKey\n ) return;\n\n const nextSelected = event.key === \"ArrowRight\" ? true : event.key === \"ArrowLeft\" ? false : null;\n if (nextSelected === null) return;\n\n event.preventDefault();\n if (input.checked !== nextSelected) input.click();\n };\n\n const ownerDocument = input.ownerDocument;\n ownerDocument.addEventListener(\"keydown\", handleDirectionalKey);\n return () => ownerDocument.removeEventListener(\"keydown\", handleDirectionalKey);\n }, [isDisabled, isReadOnly, resolvedInputRef]);\n\n return (\n <AriaSwitch\n data-slot=\"switch\"\n data-size={size}\n inputRef={resolvedInputRef}\n isDisabled={isDisabled}\n isReadOnly={isReadOnly}\n className={cn(\n \"group/switch inline-flex cursor-pointer items-center gap-3 text-sm text-foreground outline-none select-none\",\n \"data-disabled:cursor-not-allowed data-disabled:opacity-50\",\n className,\n )}\n {...props}\n >\n {(state) => {\n const isThumbActive = state.isHovered || state.isPressed;\n const thumbOffset = state.isSelected\n ? isThumbActive ? styles.activeSelectedOffset : styles.selectedOffset\n : \"0\";\n\n return <>\n <span\n aria-hidden=\"true\"\n data-slot=\"switch-control\"\n className={cn(\n \"relative inline-flex shrink-0 items-center overflow-hidden rounded-full border border-border bg-input shadow-inner\",\n \"transition-[background-color,border-color,box-shadow] duration-200 ease-out motion-reduce:transition-none\",\n \"group-data-hovered/switch:bg-muted-foreground/25\",\n \"group-data-selected/switch:border-primary group-data-selected/switch:bg-primary\",\n \"group-data-selected/switch:group-data-hovered/switch:bg-primary/85\",\n \"group-data-focus-visible/switch:ring-3 group-data-focus-visible/switch:ring-ring/50\",\n styles.control,\n )}\n >\n <span\n data-slot=\"switch-thumb\"\n style={{\n transform: `translate3d(${thumbOffset}, 0, 0)`,\n width: isThumbActive ? styles.activeWidth : styles.idleWidth,\n }}\n className={cn(\n \"grid shrink-0 place-items-center rounded-full border border-border/60 bg-background text-[0.625rem] text-muted-foreground shadow-sm\",\n \"will-change-[transform,width] transition-[transform,width,background-color,color,border-color] duration-[240ms] ease-[cubic-bezier(0.2,0.8,0.2,1)] motion-reduce:transition-none\",\n \"group-data-selected/switch:border-primary-foreground/20\",\n \"group-data-selected/switch:bg-primary-foreground group-data-selected/switch:text-primary\",\n styles.thumb,\n )}\n >\n {state.isSelected ? (selectedIcon ?? icon) : icon}\n </span>\n </span>\n {children || description ? (\n <span className=\"grid gap-0.5 leading-tight\">\n {children ? <span data-slot=\"switch-label\" className=\"font-medium\">{typeof children === \"function\" ? children(state) : children}</span> : null}\n {description ? <span data-slot=\"switch-description\" className=\"text-xs font-normal text-muted-foreground\">{description}</span> : null}\n </span>\n ) : null}\n </>;\n }}\n </AriaSwitch>\n );\n}\n","import type * as React from \"react\";\nimport { cn } from \"../../lib/cn\";\n\n/** Presentational table primitives. Sorting, pagination and data state stay in the application. */\nexport function Table({ className, ...props }: React.ComponentProps<\"table\">) {\n return (\n <div data-slot=\"table-container\" className=\"relative w-full overflow-x-auto\">\n <table\n data-slot=\"table\"\n className={cn(\"w-full caption-bottom text-sm\", className)}\n {...props}\n />\n </div>\n );\n}\n\nexport function TableHeader({ className, ...props }: React.ComponentProps<\"thead\">) {\n return <thead data-slot=\"table-header\" className={cn(\"[&_tr]:border-b\", className)} {...props} />;\n}\nexport function TableBody({ className, ...props }: React.ComponentProps<\"tbody\">) {\n return (\n <tbody\n data-slot=\"table-body\"\n className={cn(\"[&_tr:last-child]:border-0\", className)}\n {...props}\n />\n );\n}\nexport function TableRow({ className, ...props }: React.ComponentProps<\"tr\">) {\n return (\n <tr\n data-slot=\"table-row\"\n className={cn(\n \"border-b border-border transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted\",\n className,\n )}\n {...props}\n />\n );\n}\nexport function TableHead({ className, ...props }: React.ComponentProps<\"th\">) {\n return (\n <th\n data-slot=\"table-head\"\n className={cn(\n \"h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0\",\n className,\n )}\n {...props}\n />\n );\n}\nexport function TableCell({ className, ...props }: React.ComponentProps<\"td\">) {\n return (\n <td\n data-slot=\"table-cell\"\n className={cn(\"p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0\", className)}\n {...props}\n />\n );\n}\nexport function TableCaption({ className, ...props }: React.ComponentProps<\"caption\">) {\n return (\n <caption\n data-slot=\"table-caption\"\n className={cn(\"mt-4 text-sm text-muted-foreground\", className)}\n {...props}\n />\n );\n}\n\nexport function TableFooter({ className, ...props }: React.ComponentProps<\"tfoot\">) {\n return (\n <tfoot\n data-slot=\"table-footer\"\n className={cn(\"border-t border-border bg-muted/50 font-medium [&>tr]:last:border-b-0\", className)}\n {...props}\n />\n );\n}\n","import {\n Tab as AriaTab,\n TabList as AriaTabList,\n TabPanel as AriaTabPanel,\n TabPanels as AriaTabPanels,\n Tabs as AriaTabs,\n composeRenderProps,\n type TabListProps as AriaTabListProps,\n type TabPanelProps as AriaTabPanelProps,\n type TabPanelsProps as AriaTabPanelsProps,\n type TabProps as AriaTabProps,\n type TabsProps as AriaTabsProps,\n} from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\n\nexport type TabsProps = AriaTabsProps;\nexport type TabProps = AriaTabProps;\nexport type TabPanelProps = AriaTabPanelProps;\n\n/** State container that coordinates a tab list with its associated panels. */\nexport function Tabs({ className, ...props }: AriaTabsProps) {\n return <AriaTabs data-slot=\"tabs\" className={composeRenderProps(className, (value) => cn(\"flex flex-col gap-2\", value))} {...props} />;\n}\n\n/** Container for the selectable {@link TabsTrigger} elements. */\nexport function TabsList<T extends object>({ className, ...props }: AriaTabListProps<T>) {\n return <AriaTabList data-slot=\"tabs-list\" className={composeRenderProps(className, (value) => cn(\"inline-flex w-fit items-center gap-1 rounded-lg bg-muted p-1 text-muted-foreground\", value))} {...props} />;\n}\n\n/** Tab control that selects the {@link TabsContent} with the same identifier. */\nexport function TabsTrigger({ className, ...props }: AriaTabProps) {\n return <AriaTab data-slot=\"tabs-trigger\" className={composeRenderProps(className, (value) => cn(\"inline-flex h-7 items-center justify-center gap-1.5 rounded-md px-2.5 text-sm font-medium outline-none transition-colors data-hovered:text-foreground data-selected:bg-background data-selected:text-foreground data-selected:shadow-sm data-focus-visible:ring-3 data-focus-visible:ring-ring/50 data-disabled:cursor-not-allowed data-disabled:opacity-50\", value))} {...props} />;\n}\n\n/** Container for the panels associated with a {@link TabsList}. */\nexport function TabsPanels<T extends object>({ className, ...props }: AriaTabPanelsProps<T>) {\n return <AriaTabPanels data-slot=\"tabs-panels\" className={cn(\"min-w-0\", className)} {...props} />;\n}\n\n/** Content panel displayed for the selected {@link TabsTrigger}. */\nexport function TabsContent({ className, ...props }: AriaTabPanelProps) {\n return <AriaTabPanel data-slot=\"tabs-content\" className={composeRenderProps(className, (value) => cn(\"text-sm outline-none data-focus-visible:ring-3 data-focus-visible:ring-ring/50\", value))} {...props} />;\n}\n","import { useEffect, type ReactNode } from \"react\";\nimport { sileo, Toaster as SileoToaster } from \"sileo\";\n\nexport type ToastVariant = \"default\" | \"success\" | \"error\" | \"warning\" | \"info\";\nexport type ToastPosition = \"top-left\" | \"top-center\" | \"top-right\" | \"bottom-left\" | \"bottom-center\" | \"bottom-right\";\nexport type ToastAction = { label: string; onPress: () => void };\nexport type ToastOptions = { title: string; description?: string; variant?: ToastVariant; duration?: number; position?: ToastPosition; action?: ToastAction };\nexport type ToastData = ToastOptions & { id: string; state: \"open\" | \"closing\" };\ntype ToastPromiseOptions<T> = { loading: string; success: string | ((value: T) => string); error: string | ((error: unknown) => string); description?: string; position?: ToastPosition };\n\nfunction toSileoOptions({ title, description, duration, position, action }: ToastOptions) {\n return {\n title,\n description,\n duration: duration === 0 ? null : duration,\n position,\n button: action ? { title: action.label, onClick: action.onPress } : undefined,\n };\n}\n\nfunction create(options: ToastOptions) {\n const sileoOptions = toSileoOptions(options);\n if (options.action) return sileo.action(sileoOptions);\n if (options.variant === \"success\") return sileo.success(sileoOptions);\n if (options.variant === \"error\") return sileo.error(sileoOptions);\n if (options.variant === \"warning\") return sileo.warning(sileoOptions);\n if (options.variant === \"info\") return sileo.info(sileoOptions);\n return sileo.show(sileoOptions);\n}\n\nexport const toast = Object.assign((options: ToastOptions) => create(options), {\n success: (title: string, options?: Omit<ToastOptions, \"title\" | \"variant\">) => create({ ...options, title, variant: \"success\" }),\n error: (title: string, options?: Omit<ToastOptions, \"title\" | \"variant\">) => create({ ...options, title, variant: \"error\" }),\n warning: (title: string, options?: Omit<ToastOptions, \"title\" | \"variant\">) => create({ ...options, title, variant: \"warning\" }),\n info: (title: string, options?: Omit<ToastOptions, \"title\" | \"variant\">) => create({ ...options, title, variant: \"info\" }),\n dismiss: (id: string) => sileo.dismiss(id),\n promise: <T,>(promise: Promise<T>, options: ToastPromiseOptions<T>) => {\n const shared = { description: options.description, position: options.position };\n return sileo.promise(promise, {\n loading: { ...shared, title: options.loading },\n success: (value) => ({ ...shared, title: typeof options.success === \"function\" ? options.success(value) : options.success }),\n error: (error) => ({ ...shared, title: typeof options.error === \"function\" ? options.error(error) : options.error }),\n position: options.position,\n });\n },\n});\n\nexport function useToast() { return toast; }\nexport function ToastProvider({ children }: { children: ReactNode }) { return <>{children}<Toaster /></>; }\n\n/** Viewport that renders notifications created with {@link toast}. */\nexport function Toaster({ position }: { position?: ToastPosition }) {\n return <SileoToaster position={position} options={{ fill: \"var(--ui-secondary)\" }} />;\n}\n\nexport function ToastViewport({ position, visiblePosition, className }: { position: ToastPosition; visiblePosition?: ToastPosition; className?: string }) {\n void className;\n if (visiblePosition && visiblePosition !== position) return null;\n return <Toaster position={position} />;\n}\n\nexport function Toast({ id, title, description, variant = \"default\", action, state = \"open\", duration = 0, position, onDismiss }: ToastData & { onDismiss?: () => void }) {\n useEffect(() => {\n if (state !== \"open\") return;\n const toastId = create({ title, description, variant, action, duration, position });\n return () => {\n sileo.dismiss(toastId);\n onDismiss?.();\n };\n }, [action, description, duration, id, onDismiss, position, state, title, variant]);\n return null;\n}\n","import type * as React from \"react\";\nimport { cn } from \"../../lib/cn\";\n/** Groups related actions with the toolbar semantic role. */\nexport function Toolbar({ className, ...props }: React.ComponentProps<\"div\">) { return <div role=\"toolbar\" data-slot=\"toolbar\" className={cn(\"flex flex-wrap items-center gap-2\", className)} {...props} />; }\nexport function ToolbarGroup({ className, ...props }: React.ComponentProps<\"div\">) { return <div data-slot=\"toolbar-group\" className={cn(\"flex items-center gap-2\", className)} {...props} />; }\nexport function ToolbarSpacer({ className, ...props }: React.ComponentProps<\"div\">) { return <div aria-hidden=\"true\" className={cn(\"hidden flex-1 sm:block\", className)} {...props} />; }\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAAAA;AAAA,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,eAAAC;AAAA,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,eAAAC;AAAA,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAAC;AAAA,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAAAC;AAAA,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;A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AU,iBAAiB,UAAU,GAAqF;AACxJ,OAAK;AACL,MAAI,mBAAmB,oBAAoB,SAAU,QAAO;AAC5D,SAAO,8CAAC,WAAQ,UAAoB;AACtC;AAEO,SAAS,MAAM,EAAE,IAAI,OAAO,aAAa,UAAU,WAAW,QAAQ,QAAQ,QAAQ,WAAW,GAAG,UAAU,UAAU,GAA2C;AACxK,gCAAU,MAAM;AACd,QAAI,UAAU,OAAQ;AACtB,UAAM,UAAU,OAAO,EAAE,OAAO,aAAa,SAAS,QAAQ,UAAU,SAAS,CAAC;AAClF,WAAO,MAAM;AACX,yBAAM,QAAQ,OAAO;AACrB,kBAAY;AAAA,IACd;AAAA,EACF,GAAG,CAAC,QAAQ,aAAa,UAAU,IAAI,WAAW,UAAU,OAAO,OAAO,OAAO,CAAC;AAClF,SAAO;AACT;;;ACpEuF,IAAAC,uBAAA;AAAhF,SAAS,QAAQ,EAAE,WAAW,GAAG,MAAM,GAAgC;AAAE,SAAO,8CAAC,SAAI,MAAK,WAAU,aAAU,WAAU,WAAW,GAAG,qCAAqC,SAAS,GAAI,GAAG,OAAO;AAAI;AACtM,SAAS,aAAa,EAAE,WAAW,GAAG,MAAM,GAAgC;AAAE,SAAO,8CAAC,SAAI,aAAU,iBAAgB,WAAW,GAAG,2BAA2B,SAAS,GAAI,GAAG,OAAO;AAAI;AACxL,SAAS,cAAc,EAAE,WAAW,GAAG,MAAM,GAAgC;AAAE,SAAO,8CAAC,SAAI,eAAY,QAAO,WAAW,GAAG,0BAA0B,SAAS,GAAI,GAAG,OAAO;AAAI;","names":["FieldError","Input","Label","OtpInput","Popover","Textarea","import_react","import_react","AccordionPrimitive","AccordionItemPrimitive","AccordionHeaderPrimitive","AccordionTriggerPrimitive","AccordionContentPrimitive","React","import_react_aria_components","import_class_variance_authority","import_react","import_react_aria_components","import_jsx_runtime","ButtonPrimitive","LinkPrimitive","import_jsx_runtime","AriaDialog","import_class_variance_authority","import_jsx_runtime","import_jsx_runtime","import_react","import_jsx_runtime","import_class_variance_authority","import_react_aria_components","import_jsx_runtime","import_react_aria_components","import_jsx_runtime","AriaBreadcrumbs","AriaBreadcrumb","AriaLink","import_class_variance_authority","import_react_aria_components","import_jsx_runtime","SeparatorPrimitive","import_jsx_runtime","import_jsx_runtime","import_lucide_react","import_react_aria_components","import_jsx_runtime","AriaCheckbox","React","import_jsx_runtime","import_react","import_react_aria_components","import_jsx_runtime","AriaComboBox","AriaComboBox","import_react_aria_components","import_jsx_runtime","AriaComboBox","AriaInput","import_lucide_react","import_react_aria_components","import_jsx_runtime","AriaDialog","import_jsx_runtime","import_lucide_react","import_react_aria_components","import_jsx_runtime","DisclosureButton","import_lucide_react","React","import_react_aria_components","import_jsx_runtime","AriaDialog","import_lucide_react","import_jsx_runtime","import_react_aria_components","import_jsx_runtime","AriaDialog","React","import_class_variance_authority","import_lucide_react","import_react_aria_components","import_jsx_runtime","MenuTriggerPrimitive","PopoverPrimitive","MenuPrimitive","MenuSectionPrimitive","HeaderPrimitive","MenuItemPrimitive","className","children","SubmenuTriggerPrimitive","SeparatorPrimitive","import_class_variance_authority","import_jsx_runtime","import_class_variance_authority","import_react","import_react_aria_components","import_jsx_runtime","Label","LabelPrimitive","import_jsx_runtime","Label","FieldError","import_react","import_lucide_react","import_jsx_runtime","import_jsx_runtime","import_react_aria_components","React","import_react_aria_components","import_jsx_runtime","TooltipTriggerPrimitive","TooltipPrimitive","placement","import_jsx_runtime","import_class_variance_authority","import_react","import_react_aria_components","import_jsx_runtime","Input","AriaInput","import_react","import_react_aria_components","import_jsx_runtime","AriaTextArea","Textarea","import_jsx_runtime","Input","Textarea","import_jsx_runtime","import_lucide_react","import_jsx_runtime","import_react_aria_components","import_jsx_runtime","AriaMenuTrigger","AriaMenu","AriaMenuItem","import_jsx_runtime","import_react","import_react_aria_components","import_jsx_runtime","AriaInput","OtpInput","import_jsx_runtime","import_lucide_react","React","import_jsx_runtime","import_react_aria_components","import_jsx_runtime","AriaDialogTrigger","Popover","AriaPopover","import_lucide_react","import_react_aria_components","import_jsx_runtime","AriaNumberField","AriaGroup","AriaButton","AriaInput","import_react_aria_components","import_lucide_react","import_jsx_runtime","AriaSelect","AriaButton","AriaSelectValue","import_lucide_react","import_react_aria_components","import_jsx_runtime","SheetTriggerPrimitive","ModalOverlayPrimitive","ModalPrimitive","SheetPrimitive","import_lucide_react","import_react","import_react_aria_components","import_jsx_runtime","import_jsx_runtime","import_lucide_react","import_jsx_runtime","import_react","import_react_aria_components","import_jsx_runtime","AriaSwitch","import_jsx_runtime","import_react_aria_components","import_jsx_runtime","AriaTabs","AriaTabList","AriaTab","AriaTabPanels","AriaTabPanel","import_react","import_jsx_runtime","SileoToaster","import_jsx_runtime"]}
|