@doscientos/ui 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +83 -0
- package/dist/index.cjs +674 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +222 -0
- package/dist/index.d.ts +222 -0
- package/dist/index.js +617 -0
- package/dist/index.js.map +1 -0
- package/dist/styles.css +2 -0
- package/package.json +69 -0
|
@@ -0,0 +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/cn.ts","../src/lib/text-match.ts","../src/ui/badge.tsx","../src/ui/button.tsx","../src/ui/card.tsx","../src/ui/checkbox.tsx","../src/ui/combobox.tsx","../src/ui/dialog.tsx","../src/ui/confirm-dialog.tsx","../src/ui/empty-state.tsx","../src/ui/label.tsx","../src/ui/field.tsx","../src/ui/input.tsx","../src/ui/kbd.tsx","../src/ui/menu.tsx","../src/ui/popover.tsx","../src/ui/search-field.tsx","../src/ui/select.tsx","../src/ui/separator.tsx","../src/ui/skeleton.tsx","../src/ui/switch.tsx","../src/ui/table.tsx","../src/ui/tabs.tsx","../src/ui/textarea.tsx","../src/ui/tooltip.tsx"],"sourcesContent":["export * from \"./hooks/use-autosave\";\nexport * from \"./hooks/use-debounced-value\";\nexport * from \"./hooks/use-form-dirty\";\nexport * from \"./lib/cn\";\nexport * from \"./lib/text-match\";\nexport * from \"./ui/badge\";\nexport * from \"./ui/button\";\nexport * from \"./ui/card\";\nexport * from \"./ui/checkbox\";\nexport * from \"./ui/combobox\";\nexport * from \"./ui/confirm-dialog\";\nexport * from \"./ui/dialog\";\nexport * from \"./ui/empty-state\";\nexport * from \"./ui/field\";\nexport * from \"./ui/input\";\nexport * from \"./ui/kbd\";\nexport * from \"./ui/label\";\nexport * from \"./ui/menu\";\nexport * from \"./ui/popover\";\nexport * from \"./ui/search-field\";\nexport * from \"./ui/select\";\nexport * from \"./ui/separator\";\nexport * from \"./ui/skeleton\";\nexport * from \"./ui/switch\";\nexport * from \"./ui/table\";\nexport * from \"./ui/tabs\";\nexport * from \"./ui/textarea\";\nexport * from \"./ui/tooltip\";\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 = 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 { 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","import { cva, type VariantProps } from \"class-variance-authority\";\nimport type * as React from \"react\";\nimport { cn } from \"../lib/cn\";\n\nexport const badgeVariants = cva(\"inline-flex w-fit items-center gap-1 rounded-full px-2 py-0.5 text-xs font-medium\", {\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 destructive: \"bg-destructive/10 text-destructive\",\n outline: \"border border-border text-foreground\",\n },\n },\n defaultVariants: { variant: \"default\" },\n});\n\nexport type BadgeProps = React.ComponentProps<\"span\"> & VariantProps<typeof badgeVariants>;\n\nexport function Badge({ className, variant, ...props }: BadgeProps) {\n return <span data-slot=\"badge\" className={cn(badgeVariants({ variant }), className)} {...props} />;\n}\n","import { cva, type VariantProps } from \"class-variance-authority\";\nimport { Button as AriaButton, type ButtonProps as AriaButtonProps } from \"react-aria-components\";\nimport { cn } from \"../lib/cn\";\n\nexport const buttonVariants = cva(\n \"inline-flex shrink-0 items-center justify-center gap-1.5 rounded-lg border border-transparent text-sm font-medium whitespace-nowrap transition-colors outline-none focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n {\n variants: {\n variant: {\n default: \"bg-primary text-primary-foreground hover:bg-primary/85\",\n secondary: \"bg-secondary text-secondary-foreground hover:bg-secondary/80\",\n outline: \"border-border bg-background text-foreground hover:bg-muted\",\n ghost: \"text-foreground hover:bg-muted\",\n destructive: \"bg-destructive/10 text-destructive hover:bg-destructive/20\",\n link: \"text-primary underline-offset-4 hover:underline\",\n },\n size: {\n xs: \"h-6 px-2 text-xs\",\n sm: \"h-7 px-2.5 text-xs\",\n default: \"h-8 px-3\",\n lg: \"h-10 px-4\",\n icon: \"size-8 p-0\",\n },\n },\n defaultVariants: { variant: \"default\", size: \"default\" },\n },\n);\n\nexport type ButtonProps = AriaButtonProps & VariantProps<typeof buttonVariants>;\n\nexport function Button({ className, variant, size, ...props }: ButtonProps) {\n return <AriaButton data-slot=\"button\" className={cn(buttonVariants({ variant, size }), className)} {...props} />;\n}\n","import type * as React from \"react\";\nimport { cn } from \"../lib/cn\";\n\nexport function Card({ className, ...props }: React.ComponentProps<\"section\">) {\n return <section data-slot=\"card\" className={cn(\"rounded-xl border border-border bg-card text-foreground shadow-sm\", className)} {...props} />;\n}\n\nexport function CardHeader({ className, ...props }: React.ComponentProps<\"header\">) {\n return <header data-slot=\"card-header\" className={cn(\"flex flex-col gap-1.5 p-5\", className)} {...props} />;\n}\n\nexport function CardTitle({ className, ...props }: React.ComponentProps<\"h2\">) {\n return <h2 data-slot=\"card-title\" className={cn(\"text-base font-semibold\", className)} {...props} />;\n}\n\nexport function CardDescription({ className, ...props }: React.ComponentProps<\"p\">) {\n return <p data-slot=\"card-description\" className={cn(\"text-sm text-muted-foreground\", className)} {...props} />;\n}\n\nexport function CardContent({ className, ...props }: React.ComponentProps<\"div\">) {\n return <div data-slot=\"card-content\" className={cn(\"p-5 pt-0\", className)} {...props} />;\n}\n\nexport function CardFooter({ className, ...props }: React.ComponentProps<\"footer\">) {\n return <footer data-slot=\"card-footer\" className={cn(\"flex items-center gap-2 border-t border-border p-5\", className)} {...props} />;\n}","import {\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 <AriaCheckbox data-slot=\"checkbox\" className={cn(\"group inline-flex items-center gap-2 text-sm text-foreground data-disabled:cursor-not-allowed data-disabled:opacity-50\", className)} {...props}>\n {(state) => <><span aria-hidden=\"true\" className=\"grid size-4 place-items-center rounded border border-border bg-background text-xs text-primary-foreground group-data-selected:border-primary group-data-selected:bg-primary group-data-focus-visible:ring-3 group-data-focus-visible:ring-ring/50\">✓</span>{typeof children === \"function\" ? children(state) : children}</>}\n </AriaCheckbox>;\n}\n","import { Fragment } from \"react\";\nimport {\n ComboBox as AriaComboBox,\n ComboBoxValue,\n Input,\n ListBox,\n ListBoxItem,\n Popover,\n type ComboBoxProps,\n type InputProps,\n type ListBoxItemProps,\n type ListBoxProps,\n} from \"react-aria-components\";\nimport { cn } from \"../lib/cn\";\nimport { getTextMatchParts } from \"../lib/text-match\";\n\nexport const Combobox = AriaComboBox;\nexport { ComboBoxValue as ComboboxValue };\n\nexport type { ComboBoxProps };\n\nexport function ComboboxInput({ className, ...props }: InputProps) {\n return <Input data-slot=\"combobox-input\" className={cn(\"h-8 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} />;\n}\n\nexport function ComboboxContent({ className, ...props }: React.ComponentProps<typeof Popover>) {\n 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\", className)} {...props} />;\n}\n\nexport function ComboboxList<T extends object>({ className, emptyState, ...props }: ListBoxProps<T> & { emptyState?: React.ReactNode }) {\n return <ListBox data-slot=\"combobox-list\" className={cn(\"max-h-64 overflow-y-auto\", className)} renderEmptyState={emptyState ? () => emptyState : undefined} {...props} />;\n}\n\nexport function ComboboxItem<T extends object>({ className, children, ...props }: ListBoxItemProps<T>) {\n return <ListBoxItem data-slot=\"combobox-item\" className={cn(\"flex w-full cursor-default items-center justify-between 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 {children}\n </ListBoxItem>;\n}\n\n/** Accent-insensitive visual highlighting for suggestion labels. */\nexport function HighlightMatch({ text, query, className }: { text: string; query: string; className?: string }) {\n 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}\n","import { createContext, useContext } from \"react\";\nimport {\n Dialog as AriaDialog,\n Heading,\n Modal,\n ModalOverlay,\n Text,\n type DialogProps as AriaDialogProps,\n type ModalOverlayProps,\n} from \"react-aria-components\";\nimport { cn } from \"../lib/cn\";\nimport { Button } from \"./button\";\n\nconst DialogCloseContext = createContext<(() => void) | null>(null);\n\nexport type DialogProps = Omit<ModalOverlayProps, \"children\" | \"className\" | \"isOpen\"> & {\n children: React.ReactNode;\n open: boolean;\n};\n\n/** Controlled overlay root. Use `DialogContent` for its accessible surface. */\nexport function Dialog({ open, children, ...props }: DialogProps) {\n return <ModalOverlay isOpen={open} className=\"fixed inset-0 z-50 grid place-items-center bg-black/20 p-4 backdrop-blur-[1px]\" {...props}>\n {children}\n </ModalOverlay>;\n}\n\nexport function DialogClose({ onPress, ...props }: React.ComponentProps<typeof Button>) {\n const close = useContext(DialogCloseContext);\n return <Button onPress={(event) => { onPress?.(event); close?.(); }} {...props} />;\n}\n\nexport function DialogContent({ className, children, showCloseButton = true, ...props }: AriaDialogProps & { showCloseButton?: boolean }) {\n return <Modal className=\"w-full max-w-md outline-none\">\n <AriaDialog data-slot=\"dialog-content\" className={cn(\"relative grid max-h-[calc(100dvh-2rem)] gap-4 overflow-y-auto rounded-xl bg-background p-5 text-foreground shadow-xl outline-none\", className)} {...props}>\n {({ close }) => <DialogCloseContext.Provider value={close}>\n {typeof children === \"function\" ? children({ close }) : children}\n {showCloseButton && <DialogClose aria-label=\"Cerrar diálogo\" variant=\"ghost\" size=\"icon\" className=\"absolute top-2 right-2\">×</DialogClose>}\n </DialogCloseContext.Provider>}\n </AriaDialog>\n </Modal>;\n}\n\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}\nexport function DialogFooter({ className, ...props }: React.ComponentProps<\"div\">) {\n return <div data-slot=\"dialog-footer\" className={cn(\"flex flex-col-reverse gap-2 sm:flex-row sm:justify-end\", className)} {...props} />;\n}\nexport function DialogTitle({ className, ...props }: React.ComponentProps<typeof Heading>) {\n return <Heading slot=\"title\" className={cn(\"text-base font-semibold\", className)} {...props} />;\n}\nexport function DialogDescription({ className, ...props }: React.ComponentProps<typeof Text>) {\n return <Text slot=\"description\" className={cn(\"text-sm text-muted-foreground\", className)} {...props} />;\n}\n","import type * as React from \"react\";\nimport { Button } from \"./button\";\nimport { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle } from \"./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({ open, onOpenChange, title, description, confirmLabel = \"Confirmar\", cancelLabel = \"Cancelar\", destructive = false, pending = false, onConfirm }: ConfirmDialogProps) {\n return <Dialog open={open} onOpenChange={onOpenChange}>\n <DialogContent showCloseButton={false}>\n <DialogHeader><DialogTitle>{title}</DialogTitle>{description && <DialogDescription>{description}</DialogDescription>}</DialogHeader>\n <DialogFooter>\n <Button variant=\"outline\" isDisabled={pending} onPress={() => onOpenChange(false)}>{cancelLabel}</Button>\n <Button variant={destructive ? \"destructive\" : \"default\"} isDisabled={pending} onPress={onConfirm}>{confirmLabel}</Button>\n </DialogFooter>\n </DialogContent>\n </Dialog>;\n}\n","import type * as React from \"react\";\nimport { cn } from \"../lib/cn\";\n\nexport function EmptyState({ className, ...props }: React.ComponentProps<\"div\">) {\n return <div data-slot=\"empty-state\" className={cn(\"flex min-h-44 w-full flex-col items-center justify-center gap-3 rounded-xl border border-dashed border-border p-6 text-center\", className)} {...props} />;\n}\n\nexport function EmptyStateTitle({ className, ...props }: React.ComponentProps<\"h3\">) {\n return <h3 data-slot=\"empty-state-title\" className={cn(\"text-sm font-medium text-foreground\", className)} {...props} />;\n}\n\nexport function EmptyStateDescription({ className, ...props }: React.ComponentProps<\"p\">) {\n return <p data-slot=\"empty-state-description\" className={cn(\"max-w-sm text-sm text-muted-foreground\", className)} {...props} />;\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 type * as React from \"react\";\nimport { cn } from \"../lib/cn\";\nimport { Label } from \"./label\";\n\nexport function Field({ className, ...props }: React.ComponentProps<\"div\">) {\n return <div data-slot=\"field\" className={cn(\"flex w-full flex-col gap-2\", className)} {...props} />;\n}\n\nexport function FieldLabel({ className, ...props }: React.ComponentProps<typeof Label>) {\n return <Label data-slot=\"field-label\" className={cn(\"text-foreground\", className)} {...props} />;\n}\n\nexport function FieldDescription({ className, ...props }: React.ComponentProps<\"p\">) {\n return <p data-slot=\"field-description\" className={cn(\"text-sm text-muted-foreground\", className)} {...props} />;\n}\n\nexport function FieldError({ className, children, ...props }: React.ComponentProps<\"p\">) {\n if (!children) return null;\n return <p role=\"alert\" data-slot=\"field-error\" className={cn(\"text-sm text-destructive\", className)} {...props}>{children}</p>;\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 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}","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\", 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}","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 data-entering:animate-in data-entering:fade-in-0 data-entering:zoom-in-95 data-exiting:animate-out data-exiting:fade-out-0 data-exiting:zoom-out-95\", className)} {...props} />;\n}\n\nexport const PopoverContent = Popover;","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 { 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 = \"×\", ...props }: Omit<ButtonProps, \"className\"> & { className?: string }) {\n return <Button slot=\"clear\" data-slot=\"search-clear\" className={cn(\"absolute top-1/2 right-1 -translate-y-1/2 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 { 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(\"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}<span aria-hidden=\"true\" className=\"ml-auto text-muted-foreground\">⌄</span></>}</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\", 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","import { Separator as AriaSeparator, type SeparatorProps as AriaSeparatorProps } from \"react-aria-components\";\nimport { cn } from \"../lib/cn\";\n\nexport type SeparatorProps = Omit<AriaSeparatorProps, \"className\"> & { className?: string };\n\nexport function Separator({ className, orientation = \"horizontal\", ...props }: SeparatorProps) {\n return <AriaSeparator data-slot=\"separator\" orientation={orientation} className={cn(\"shrink-0 bg-border data-horizontal:h-px data-horizontal:w-full data-vertical:w-px data-vertical:self-stretch\", className)} {...props} />;\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}","import {\n Switch as AriaSwitch,\n type SwitchProps as AriaSwitchProps,\n} from \"react-aria-components\";\nimport { cn } from \"../lib/cn\";\n\nexport type SwitchProps = Omit<AriaSwitchProps, \"className\"> & { className?: string };\n\nexport function Switch({ className, children, ...props }: SwitchProps) {\n return <AriaSwitch data-slot=\"switch\" className={cn(\"group inline-flex items-center gap-2 text-sm text-foreground data-disabled:cursor-not-allowed data-disabled:opacity-50\", className)} {...props}>\n {(state) => <><span aria-hidden=\"true\" className=\"flex h-5 w-9 items-center rounded-full bg-muted p-0.5 transition-colors group-data-selected:bg-primary group-data-focus-visible:ring-3 group-data-focus-visible:ring-ring/50\"><span className=\"size-4 rounded-full bg-background shadow-sm transition-transform group-data-selected:translate-x-4\" /></span>{typeof children === \"function\" ? children(state) : children}</>}\n </AriaSwitch>;\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 <div data-slot=\"table-container\" className=\"relative w-full overflow-x-auto\"><table data-slot=\"table\" className={cn(\"w-full caption-bottom text-sm\", className)} {...props} /></div>;\n}\n\nexport function TableHeader({ className, ...props }: React.ComponentProps<\"thead\">) {\n return <thead data-slot=\"table-header\" className={cn(\"border-b border-border\", className)} {...props} />;\n}\nexport function TableBody({ className, ...props }: React.ComponentProps<\"tbody\">) {\n return <tbody data-slot=\"table-body\" className={cn(\"[&_tr:last-child]:border-0\", className)} {...props} />;\n}\nexport function TableRow({ className, ...props }: React.ComponentProps<\"tr\">) {\n return <tr data-slot=\"table-row\" className={cn(\"border-b border-border transition-colors hover:bg-muted/50\", className)} {...props} />;\n}\nexport function TableHead({ className, ...props }: React.ComponentProps<\"th\">) {\n return <th data-slot=\"table-head\" className={cn(\"h-10 px-3 text-left align-middle text-xs font-medium text-muted-foreground\", className)} {...props} />;\n}\nexport function TableCell({ className, ...props }: React.ComponentProps<\"td\">) {\n return <td data-slot=\"table-cell\" className={cn(\"p-3 align-middle\", className)} {...props} />;\n}\nexport function TableCaption({ className, ...props }: React.ComponentProps<\"caption\">) {\n return <caption data-slot=\"table-caption\" className={cn(\"mt-4 text-sm text-muted-foreground\", className)} {...props} />;\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}","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 {\n Tooltip as AriaTooltip,\n TooltipTrigger as AriaTooltipTrigger,\n type TooltipProps as AriaTooltipProps,\n type TooltipTriggerComponentProps,\n} from \"react-aria-components\";\nimport { cn } from \"../lib/cn\";\n\nexport type TooltipProps = Omit<AriaTooltipProps, \"className\"> & { className?: string };\nexport type { TooltipTriggerComponentProps };\n\nexport const TooltipTrigger = AriaTooltipTrigger;\n\nexport function Tooltip({ className, ...props }: TooltipProps) {\n return <AriaTooltip data-slot=\"tooltip\" offset={6} className={cn(\"max-w-xs rounded-md bg-foreground px-2.5 py-1.5 text-xs text-background shadow-md outline-none data-entering:animate-in data-entering:fade-in-0 data-entering:zoom-in-95 data-exiting:animate-out data-exiting:fade-out-0 data-exiting:zoom-out-95\", className)} {...props} />;\n}\n\nexport const TooltipContent = Tooltip;"],"mappings":";;;;;;;;;;;;;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AC,+BAAAC,SAAA,EAAY,aAAU,WAAU,QAAQ,GAAG,WAAW,GAAG,sPAAsP,SAAS,GAAI,GAAG,OAAO;AAChV;AAEO,IAAM,iBAAiB;","names":["Input","Popover","Textarea","import_react","import_react","import_class_variance_authority","import_jsx_runtime","AriaButton","import_jsx_runtime","import_react_aria_components","import_jsx_runtime","AriaCheckbox","import_react","import_react_aria_components","import_jsx_runtime","AriaComboBox","import_react","import_react_aria_components","import_jsx_runtime","AriaDialog","import_jsx_runtime","import_jsx_runtime","import_react","import_react_aria_components","import_jsx_runtime","Label","LabelPrimitive","import_jsx_runtime","import_react","import_react_aria_components","import_jsx_runtime","Input","AriaInput","import_jsx_runtime","import_react_aria_components","import_jsx_runtime","AriaMenuTrigger","AriaMenu","AriaMenuItem","import_react_aria_components","import_jsx_runtime","AriaDialogTrigger","Popover","AriaPopover","import_react_aria_components","import_jsx_runtime","AriaSearchField","import_react_aria_components","import_jsx_runtime","AriaSelect","AriaButton","AriaSelectValue","import_react_aria_components","import_jsx_runtime","AriaSeparator","import_jsx_runtime","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_react_aria_components","import_jsx_runtime","AriaTextArea","Textarea","import_react_aria_components","import_jsx_runtime","AriaTooltipTrigger","AriaTooltip"]}
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
import * as React$1 from 'react';
|
|
2
|
+
import { RefCallback, ComponentPropsWithRef } from 'react';
|
|
3
|
+
import { ClassValue } from 'clsx';
|
|
4
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
5
|
+
import { VariantProps } from 'class-variance-authority';
|
|
6
|
+
import * as react_aria_components from 'react-aria-components';
|
|
7
|
+
import { ButtonProps as ButtonProps$1, CheckboxProps as CheckboxProps$1, ComboBoxProps, Popover as Popover$1, InputProps as InputProps$1, ListBoxItemProps, ListBoxProps, ModalOverlayProps, DialogProps as DialogProps$1, Text, Heading, MenuProps, MenuItemProps, MenuTrigger as MenuTrigger$1, PopoverProps as PopoverProps$1, DialogTrigger, SearchFieldProps, SelectProps, SelectValue as SelectValue$1, SeparatorProps as SeparatorProps$1, SwitchProps as SwitchProps$1, TabPanelProps as TabPanelProps$1, TabProps as TabProps$1, TabsProps as TabsProps$1, TabListProps, TabPanelsProps, TextAreaProps, TooltipProps as TooltipProps$1, TooltipTrigger as TooltipTrigger$1 } from 'react-aria-components';
|
|
8
|
+
export { ComboBoxProps, ComboBoxValue as ComboboxValue, DialogTriggerProps as PopoverTriggerProps, SearchFieldProps, SelectProps, TooltipTriggerComponentProps } from 'react-aria-components';
|
|
9
|
+
|
|
10
|
+
type AutosaveStatus = "idle" | "saving" | "saved" | "error";
|
|
11
|
+
type UseAutosaveOptions<T> = {
|
|
12
|
+
data: T;
|
|
13
|
+
onSave: (data: T) => Promise<void>;
|
|
14
|
+
debounceMs?: number;
|
|
15
|
+
enabled?: boolean;
|
|
16
|
+
serialize?: (data: T) => string;
|
|
17
|
+
};
|
|
18
|
+
/** Debounced autosave with stale-value protection and an explicit `saveNow`. */
|
|
19
|
+
declare function useAutosave<T>({ data, onSave, debounceMs, enabled, serialize, }: UseAutosaveOptions<T>): {
|
|
20
|
+
status: AutosaveStatus;
|
|
21
|
+
error: Error | null;
|
|
22
|
+
saveNow: () => Promise<void>;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/** Returns a value only after it has been stable for the supplied delay. */
|
|
26
|
+
declare function useDebouncedValue<T>(value: T, delay?: number): T;
|
|
27
|
+
|
|
28
|
+
declare function formSnapshot(form: HTMLFormElement): string;
|
|
29
|
+
interface UseFormDirtyResult<T extends HTMLFormElement = HTMLFormElement> {
|
|
30
|
+
formRef: RefCallback<T | null>;
|
|
31
|
+
isDirty: boolean;
|
|
32
|
+
markDirty: () => void;
|
|
33
|
+
reset: () => void;
|
|
34
|
+
}
|
|
35
|
+
/** Tracks changes in native form controls and supports controlled fields. */
|
|
36
|
+
declare function useFormDirty<T extends HTMLFormElement = HTMLFormElement>(): UseFormDirtyResult<T>;
|
|
37
|
+
|
|
38
|
+
/** Merges conditional class names, resolving conflicting Tailwind utilities. */
|
|
39
|
+
declare function cn(...inputs: ClassValue[]): string;
|
|
40
|
+
|
|
41
|
+
type TextMatchPart = {
|
|
42
|
+
text: string;
|
|
43
|
+
match: boolean;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* Splits text into matching and non-matching chunks. Matching is case- and
|
|
47
|
+
* accent-insensitive while preserving the original text for rendering.
|
|
48
|
+
*/
|
|
49
|
+
declare function getTextMatchParts(text: string, query: string): TextMatchPart[];
|
|
50
|
+
|
|
51
|
+
declare const badgeVariants: (props?: ({
|
|
52
|
+
variant?: "default" | "secondary" | "neutral" | "success" | "warning" | "destructive" | "outline" | null | undefined;
|
|
53
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
54
|
+
type BadgeProps = React$1.ComponentProps<"span"> & VariantProps<typeof badgeVariants>;
|
|
55
|
+
declare function Badge({ className, variant, ...props }: BadgeProps): React$1.JSX.Element;
|
|
56
|
+
|
|
57
|
+
declare const buttonVariants: (props?: ({
|
|
58
|
+
variant?: "default" | "secondary" | "destructive" | "outline" | "link" | "ghost" | null | undefined;
|
|
59
|
+
size?: "default" | "xs" | "sm" | "lg" | "icon" | null | undefined;
|
|
60
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
61
|
+
type ButtonProps = ButtonProps$1 & VariantProps<typeof buttonVariants>;
|
|
62
|
+
declare function Button({ className, variant, size, ...props }: ButtonProps): React$1.JSX.Element;
|
|
63
|
+
|
|
64
|
+
declare function Card({ className, ...props }: React$1.ComponentProps<"section">): React$1.JSX.Element;
|
|
65
|
+
declare function CardHeader({ className, ...props }: React$1.ComponentProps<"header">): React$1.JSX.Element;
|
|
66
|
+
declare function CardTitle({ className, ...props }: React$1.ComponentProps<"h2">): React$1.JSX.Element;
|
|
67
|
+
declare function CardDescription({ className, ...props }: React$1.ComponentProps<"p">): React$1.JSX.Element;
|
|
68
|
+
declare function CardContent({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
69
|
+
declare function CardFooter({ className, ...props }: React$1.ComponentProps<"footer">): React$1.JSX.Element;
|
|
70
|
+
|
|
71
|
+
type CheckboxProps = Omit<CheckboxProps$1, "className"> & {
|
|
72
|
+
className?: string;
|
|
73
|
+
};
|
|
74
|
+
declare function Checkbox({ className, children, ...props }: CheckboxProps): React$1.JSX.Element;
|
|
75
|
+
|
|
76
|
+
declare const Combobox: <T, M extends "multiple" | "single" = "single">(props: ComboBoxProps<T, M> & React.RefAttributes<HTMLDivElement>) => React$1.ReactElement<unknown, string | React.JSXElementConstructor<any>> | null;
|
|
77
|
+
|
|
78
|
+
declare function ComboboxInput({ className, ...props }: InputProps$1): React$1.JSX.Element;
|
|
79
|
+
declare function ComboboxContent({ className, ...props }: React.ComponentProps<typeof Popover$1>): React$1.JSX.Element;
|
|
80
|
+
declare function ComboboxList<T extends object>({ className, emptyState, ...props }: ListBoxProps<T> & {
|
|
81
|
+
emptyState?: React.ReactNode;
|
|
82
|
+
}): React$1.JSX.Element;
|
|
83
|
+
declare function ComboboxItem<T extends object>({ className, children, ...props }: ListBoxItemProps<T>): React$1.JSX.Element;
|
|
84
|
+
/** Accent-insensitive visual highlighting for suggestion labels. */
|
|
85
|
+
declare function HighlightMatch({ text, query, className }: {
|
|
86
|
+
text: string;
|
|
87
|
+
query: string;
|
|
88
|
+
className?: string;
|
|
89
|
+
}): React$1.JSX.Element;
|
|
90
|
+
|
|
91
|
+
type ConfirmDialogProps = {
|
|
92
|
+
open: boolean;
|
|
93
|
+
onOpenChange: (open: boolean) => void;
|
|
94
|
+
title: string;
|
|
95
|
+
description?: React$1.ReactNode;
|
|
96
|
+
confirmLabel?: string;
|
|
97
|
+
cancelLabel?: string;
|
|
98
|
+
destructive?: boolean;
|
|
99
|
+
pending?: boolean;
|
|
100
|
+
onConfirm: () => void;
|
|
101
|
+
};
|
|
102
|
+
/** Controlled confirmation dialog for irreversible actions. */
|
|
103
|
+
declare function ConfirmDialog({ open, onOpenChange, title, description, confirmLabel, cancelLabel, destructive, pending, onConfirm }: ConfirmDialogProps): React$1.JSX.Element;
|
|
104
|
+
|
|
105
|
+
type DialogProps = Omit<ModalOverlayProps, "children" | "className" | "isOpen"> & {
|
|
106
|
+
children: React.ReactNode;
|
|
107
|
+
open: boolean;
|
|
108
|
+
};
|
|
109
|
+
/** Controlled overlay root. Use `DialogContent` for its accessible surface. */
|
|
110
|
+
declare function Dialog({ open, children, ...props }: DialogProps): React$1.JSX.Element;
|
|
111
|
+
declare function DialogClose({ onPress, ...props }: React.ComponentProps<typeof Button>): React$1.JSX.Element;
|
|
112
|
+
declare function DialogContent({ className, children, showCloseButton, ...props }: DialogProps$1 & {
|
|
113
|
+
showCloseButton?: boolean;
|
|
114
|
+
}): React$1.JSX.Element;
|
|
115
|
+
declare function DialogHeader({ className, ...props }: React.ComponentProps<"div">): React$1.JSX.Element;
|
|
116
|
+
declare function DialogFooter({ className, ...props }: React.ComponentProps<"div">): React$1.JSX.Element;
|
|
117
|
+
declare function DialogTitle({ className, ...props }: React.ComponentProps<typeof Heading>): React$1.JSX.Element;
|
|
118
|
+
declare function DialogDescription({ className, ...props }: React.ComponentProps<typeof Text>): React$1.JSX.Element;
|
|
119
|
+
|
|
120
|
+
declare function EmptyState({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
121
|
+
declare function EmptyStateTitle({ className, ...props }: React$1.ComponentProps<"h3">): React$1.JSX.Element;
|
|
122
|
+
declare function EmptyStateDescription({ className, ...props }: React$1.ComponentProps<"p">): React$1.JSX.Element;
|
|
123
|
+
|
|
124
|
+
declare const Label: React$1.ForwardRefExoticComponent<Omit<react_aria_components.LabelProps & React$1.RefAttributes<HTMLLabelElement>, "ref"> & React$1.RefAttributes<HTMLLabelElement>>;
|
|
125
|
+
type LabelProps = ComponentPropsWithRef<typeof Label>;
|
|
126
|
+
|
|
127
|
+
declare function Field({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
128
|
+
declare function FieldLabel({ className, ...props }: React$1.ComponentProps<typeof Label>): React$1.JSX.Element;
|
|
129
|
+
declare function FieldDescription({ className, ...props }: React$1.ComponentProps<"p">): React$1.JSX.Element;
|
|
130
|
+
declare function FieldError({ className, children, ...props }: React$1.ComponentProps<"p">): React$1.JSX.Element | null;
|
|
131
|
+
|
|
132
|
+
type CompatibleRef$1<T> = ((instance: T | null) => unknown) | {
|
|
133
|
+
readonly current: T | null;
|
|
134
|
+
} | null;
|
|
135
|
+
type InputProps = Omit<InputProps$1, "ref"> & {
|
|
136
|
+
ref?: CompatibleRef$1<HTMLInputElement>;
|
|
137
|
+
};
|
|
138
|
+
declare const InputImpl: React$1.ForwardRefExoticComponent<InputProps$1 & React$1.RefAttributes<HTMLInputElement>>;
|
|
139
|
+
/** Forward-ref component with a ref type compatible across React 19 type releases. */
|
|
140
|
+
declare const Input: (props: InputProps) => ReturnType<typeof InputImpl>;
|
|
141
|
+
|
|
142
|
+
declare function Kbd({ className, ...props }: React$1.ComponentProps<"kbd">): React$1.JSX.Element;
|
|
143
|
+
declare function KbdGroup({ className, ...props }: React$1.ComponentProps<"span">): React$1.JSX.Element;
|
|
144
|
+
|
|
145
|
+
declare const MenuTrigger: typeof MenuTrigger$1;
|
|
146
|
+
declare function MenuContent({ className, ...props }: React.ComponentProps<typeof Popover$1>): React$1.JSX.Element;
|
|
147
|
+
declare function Menu<T extends object>({ className, ...props }: MenuProps<T>): React$1.JSX.Element;
|
|
148
|
+
declare function MenuItem<T extends object>({ className, children, ...props }: MenuItemProps<T>): React$1.JSX.Element;
|
|
149
|
+
|
|
150
|
+
type PopoverProps = Omit<PopoverProps$1, "className"> & {
|
|
151
|
+
className?: string;
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
/** Wrap a trigger and Popover surface; React Aria handles focus and positioning. */
|
|
155
|
+
declare const PopoverTrigger: typeof DialogTrigger;
|
|
156
|
+
declare function Popover({ className, ...props }: PopoverProps): React$1.JSX.Element;
|
|
157
|
+
declare const PopoverContent: typeof Popover;
|
|
158
|
+
|
|
159
|
+
declare const SearchField: (props: SearchFieldProps & React.RefAttributes<HTMLDivElement>) => React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | null;
|
|
160
|
+
|
|
161
|
+
declare function SearchInput({ className, ...props }: InputProps$1): React$1.JSX.Element;
|
|
162
|
+
declare function SearchClearButton({ className, children, ...props }: Omit<ButtonProps$1, "className"> & {
|
|
163
|
+
className?: string;
|
|
164
|
+
}): React$1.JSX.Element;
|
|
165
|
+
|
|
166
|
+
declare const Select: <T, M extends "multiple" | "single" = "single">(props: SelectProps<T, M> & React.RefAttributes<HTMLDivElement>) => React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | null;
|
|
167
|
+
|
|
168
|
+
declare function SelectTrigger({ className, children, ...props }: ButtonProps$1): React$1.JSX.Element;
|
|
169
|
+
declare function SelectValue({ className, ...props }: React.ComponentProps<typeof SelectValue$1>): React$1.JSX.Element;
|
|
170
|
+
declare function SelectContent({ className, ...props }: React.ComponentProps<typeof Popover$1>): React$1.JSX.Element;
|
|
171
|
+
declare function SelectList<T extends object>({ className, ...props }: ListBoxProps<T>): React$1.JSX.Element;
|
|
172
|
+
declare function SelectItem<T extends object>({ className, children, ...props }: ListBoxItemProps<T>): React$1.JSX.Element;
|
|
173
|
+
|
|
174
|
+
type SeparatorProps = Omit<SeparatorProps$1, "className"> & {
|
|
175
|
+
className?: string;
|
|
176
|
+
};
|
|
177
|
+
declare function Separator({ className, orientation, ...props }: SeparatorProps): React$1.JSX.Element;
|
|
178
|
+
|
|
179
|
+
declare function Skeleton({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
180
|
+
|
|
181
|
+
type SwitchProps = Omit<SwitchProps$1, "className"> & {
|
|
182
|
+
className?: string;
|
|
183
|
+
};
|
|
184
|
+
declare function Switch({ className, children, ...props }: SwitchProps): React$1.JSX.Element;
|
|
185
|
+
|
|
186
|
+
/** Presentational table primitives. Sorting, pagination and data state stay in the application. */
|
|
187
|
+
declare function Table({ className, ...props }: React$1.ComponentProps<"table">): React$1.JSX.Element;
|
|
188
|
+
declare function TableHeader({ className, ...props }: React$1.ComponentProps<"thead">): React$1.JSX.Element;
|
|
189
|
+
declare function TableBody({ className, ...props }: React$1.ComponentProps<"tbody">): React$1.JSX.Element;
|
|
190
|
+
declare function TableRow({ className, ...props }: React$1.ComponentProps<"tr">): React$1.JSX.Element;
|
|
191
|
+
declare function TableHead({ className, ...props }: React$1.ComponentProps<"th">): React$1.JSX.Element;
|
|
192
|
+
declare function TableCell({ className, ...props }: React$1.ComponentProps<"td">): React$1.JSX.Element;
|
|
193
|
+
declare function TableCaption({ className, ...props }: React$1.ComponentProps<"caption">): React$1.JSX.Element;
|
|
194
|
+
|
|
195
|
+
type TabsProps = TabsProps$1;
|
|
196
|
+
type TabProps = TabProps$1;
|
|
197
|
+
type TabPanelProps = TabPanelProps$1;
|
|
198
|
+
declare function Tabs({ className, ...props }: TabsProps$1): React$1.JSX.Element;
|
|
199
|
+
declare function TabsList<T extends object>({ className, ...props }: TabListProps<T>): React$1.JSX.Element;
|
|
200
|
+
declare function TabsTrigger({ className, ...props }: TabProps$1): React$1.JSX.Element;
|
|
201
|
+
declare function TabsPanels<T extends object>({ className, ...props }: TabPanelsProps<T>): React$1.JSX.Element;
|
|
202
|
+
declare function TabsContent({ className, ...props }: TabPanelProps$1): React$1.JSX.Element;
|
|
203
|
+
|
|
204
|
+
type CompatibleRef<T> = ((instance: T | null) => unknown) | {
|
|
205
|
+
readonly current: T | null;
|
|
206
|
+
} | null;
|
|
207
|
+
type TextareaProps = Omit<TextAreaProps, "ref"> & {
|
|
208
|
+
ref?: CompatibleRef<HTMLTextAreaElement>;
|
|
209
|
+
};
|
|
210
|
+
declare const TextareaImpl: React$1.ForwardRefExoticComponent<TextAreaProps & React$1.RefAttributes<HTMLTextAreaElement>>;
|
|
211
|
+
/** Forward-ref component with a ref type compatible across React 19 type releases. */
|
|
212
|
+
declare const Textarea: (props: TextareaProps) => ReturnType<typeof TextareaImpl>;
|
|
213
|
+
|
|
214
|
+
type TooltipProps = Omit<TooltipProps$1, "className"> & {
|
|
215
|
+
className?: string;
|
|
216
|
+
};
|
|
217
|
+
|
|
218
|
+
declare const TooltipTrigger: typeof TooltipTrigger$1;
|
|
219
|
+
declare function Tooltip({ className, ...props }: TooltipProps): React$1.JSX.Element;
|
|
220
|
+
declare const TooltipContent: typeof Tooltip;
|
|
221
|
+
|
|
222
|
+
export { type AutosaveStatus, Badge, type BadgeProps, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, type CheckboxProps, Combobox, ComboboxContent, ComboboxInput, ComboboxItem, ComboboxList, ConfirmDialog, type ConfirmDialogProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, type DialogProps, DialogTitle, EmptyState, EmptyStateDescription, EmptyStateTitle, Field, FieldDescription, FieldError, FieldLabel, HighlightMatch, Input, type InputProps, Kbd, KbdGroup, Label, type LabelProps, Menu, MenuContent, MenuItem, MenuTrigger, Popover, PopoverContent, type PopoverProps, PopoverTrigger, SearchClearButton, SearchField, SearchInput, Select, SelectContent, SelectItem, SelectList, SelectTrigger, SelectValue, Separator, type SeparatorProps, Skeleton, Switch, type SwitchProps, type TabPanelProps, type TabProps, Table, TableBody, TableCaption, TableCell, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsPanels, type TabsProps, TabsTrigger, type TextMatchPart, Textarea, type TextareaProps, Tooltip, TooltipContent, type TooltipProps, TooltipTrigger, type UseAutosaveOptions, type UseFormDirtyResult, badgeVariants, buttonVariants, cn, formSnapshot, getTextMatchParts, useAutosave, useDebouncedValue, useFormDirty };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
import * as React$1 from 'react';
|
|
2
|
+
import { RefCallback, ComponentPropsWithRef } from 'react';
|
|
3
|
+
import { ClassValue } from 'clsx';
|
|
4
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
5
|
+
import { VariantProps } from 'class-variance-authority';
|
|
6
|
+
import * as react_aria_components from 'react-aria-components';
|
|
7
|
+
import { ButtonProps as ButtonProps$1, CheckboxProps as CheckboxProps$1, ComboBoxProps, Popover as Popover$1, InputProps as InputProps$1, ListBoxItemProps, ListBoxProps, ModalOverlayProps, DialogProps as DialogProps$1, Text, Heading, MenuProps, MenuItemProps, MenuTrigger as MenuTrigger$1, PopoverProps as PopoverProps$1, DialogTrigger, SearchFieldProps, SelectProps, SelectValue as SelectValue$1, SeparatorProps as SeparatorProps$1, SwitchProps as SwitchProps$1, TabPanelProps as TabPanelProps$1, TabProps as TabProps$1, TabsProps as TabsProps$1, TabListProps, TabPanelsProps, TextAreaProps, TooltipProps as TooltipProps$1, TooltipTrigger as TooltipTrigger$1 } from 'react-aria-components';
|
|
8
|
+
export { ComboBoxProps, ComboBoxValue as ComboboxValue, DialogTriggerProps as PopoverTriggerProps, SearchFieldProps, SelectProps, TooltipTriggerComponentProps } from 'react-aria-components';
|
|
9
|
+
|
|
10
|
+
type AutosaveStatus = "idle" | "saving" | "saved" | "error";
|
|
11
|
+
type UseAutosaveOptions<T> = {
|
|
12
|
+
data: T;
|
|
13
|
+
onSave: (data: T) => Promise<void>;
|
|
14
|
+
debounceMs?: number;
|
|
15
|
+
enabled?: boolean;
|
|
16
|
+
serialize?: (data: T) => string;
|
|
17
|
+
};
|
|
18
|
+
/** Debounced autosave with stale-value protection and an explicit `saveNow`. */
|
|
19
|
+
declare function useAutosave<T>({ data, onSave, debounceMs, enabled, serialize, }: UseAutosaveOptions<T>): {
|
|
20
|
+
status: AutosaveStatus;
|
|
21
|
+
error: Error | null;
|
|
22
|
+
saveNow: () => Promise<void>;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/** Returns a value only after it has been stable for the supplied delay. */
|
|
26
|
+
declare function useDebouncedValue<T>(value: T, delay?: number): T;
|
|
27
|
+
|
|
28
|
+
declare function formSnapshot(form: HTMLFormElement): string;
|
|
29
|
+
interface UseFormDirtyResult<T extends HTMLFormElement = HTMLFormElement> {
|
|
30
|
+
formRef: RefCallback<T | null>;
|
|
31
|
+
isDirty: boolean;
|
|
32
|
+
markDirty: () => void;
|
|
33
|
+
reset: () => void;
|
|
34
|
+
}
|
|
35
|
+
/** Tracks changes in native form controls and supports controlled fields. */
|
|
36
|
+
declare function useFormDirty<T extends HTMLFormElement = HTMLFormElement>(): UseFormDirtyResult<T>;
|
|
37
|
+
|
|
38
|
+
/** Merges conditional class names, resolving conflicting Tailwind utilities. */
|
|
39
|
+
declare function cn(...inputs: ClassValue[]): string;
|
|
40
|
+
|
|
41
|
+
type TextMatchPart = {
|
|
42
|
+
text: string;
|
|
43
|
+
match: boolean;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* Splits text into matching and non-matching chunks. Matching is case- and
|
|
47
|
+
* accent-insensitive while preserving the original text for rendering.
|
|
48
|
+
*/
|
|
49
|
+
declare function getTextMatchParts(text: string, query: string): TextMatchPart[];
|
|
50
|
+
|
|
51
|
+
declare const badgeVariants: (props?: ({
|
|
52
|
+
variant?: "default" | "secondary" | "neutral" | "success" | "warning" | "destructive" | "outline" | null | undefined;
|
|
53
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
54
|
+
type BadgeProps = React$1.ComponentProps<"span"> & VariantProps<typeof badgeVariants>;
|
|
55
|
+
declare function Badge({ className, variant, ...props }: BadgeProps): React$1.JSX.Element;
|
|
56
|
+
|
|
57
|
+
declare const buttonVariants: (props?: ({
|
|
58
|
+
variant?: "default" | "secondary" | "destructive" | "outline" | "link" | "ghost" | null | undefined;
|
|
59
|
+
size?: "default" | "xs" | "sm" | "lg" | "icon" | null | undefined;
|
|
60
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
61
|
+
type ButtonProps = ButtonProps$1 & VariantProps<typeof buttonVariants>;
|
|
62
|
+
declare function Button({ className, variant, size, ...props }: ButtonProps): React$1.JSX.Element;
|
|
63
|
+
|
|
64
|
+
declare function Card({ className, ...props }: React$1.ComponentProps<"section">): React$1.JSX.Element;
|
|
65
|
+
declare function CardHeader({ className, ...props }: React$1.ComponentProps<"header">): React$1.JSX.Element;
|
|
66
|
+
declare function CardTitle({ className, ...props }: React$1.ComponentProps<"h2">): React$1.JSX.Element;
|
|
67
|
+
declare function CardDescription({ className, ...props }: React$1.ComponentProps<"p">): React$1.JSX.Element;
|
|
68
|
+
declare function CardContent({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
69
|
+
declare function CardFooter({ className, ...props }: React$1.ComponentProps<"footer">): React$1.JSX.Element;
|
|
70
|
+
|
|
71
|
+
type CheckboxProps = Omit<CheckboxProps$1, "className"> & {
|
|
72
|
+
className?: string;
|
|
73
|
+
};
|
|
74
|
+
declare function Checkbox({ className, children, ...props }: CheckboxProps): React$1.JSX.Element;
|
|
75
|
+
|
|
76
|
+
declare const Combobox: <T, M extends "multiple" | "single" = "single">(props: ComboBoxProps<T, M> & React.RefAttributes<HTMLDivElement>) => React$1.ReactElement<unknown, string | React.JSXElementConstructor<any>> | null;
|
|
77
|
+
|
|
78
|
+
declare function ComboboxInput({ className, ...props }: InputProps$1): React$1.JSX.Element;
|
|
79
|
+
declare function ComboboxContent({ className, ...props }: React.ComponentProps<typeof Popover$1>): React$1.JSX.Element;
|
|
80
|
+
declare function ComboboxList<T extends object>({ className, emptyState, ...props }: ListBoxProps<T> & {
|
|
81
|
+
emptyState?: React.ReactNode;
|
|
82
|
+
}): React$1.JSX.Element;
|
|
83
|
+
declare function ComboboxItem<T extends object>({ className, children, ...props }: ListBoxItemProps<T>): React$1.JSX.Element;
|
|
84
|
+
/** Accent-insensitive visual highlighting for suggestion labels. */
|
|
85
|
+
declare function HighlightMatch({ text, query, className }: {
|
|
86
|
+
text: string;
|
|
87
|
+
query: string;
|
|
88
|
+
className?: string;
|
|
89
|
+
}): React$1.JSX.Element;
|
|
90
|
+
|
|
91
|
+
type ConfirmDialogProps = {
|
|
92
|
+
open: boolean;
|
|
93
|
+
onOpenChange: (open: boolean) => void;
|
|
94
|
+
title: string;
|
|
95
|
+
description?: React$1.ReactNode;
|
|
96
|
+
confirmLabel?: string;
|
|
97
|
+
cancelLabel?: string;
|
|
98
|
+
destructive?: boolean;
|
|
99
|
+
pending?: boolean;
|
|
100
|
+
onConfirm: () => void;
|
|
101
|
+
};
|
|
102
|
+
/** Controlled confirmation dialog for irreversible actions. */
|
|
103
|
+
declare function ConfirmDialog({ open, onOpenChange, title, description, confirmLabel, cancelLabel, destructive, pending, onConfirm }: ConfirmDialogProps): React$1.JSX.Element;
|
|
104
|
+
|
|
105
|
+
type DialogProps = Omit<ModalOverlayProps, "children" | "className" | "isOpen"> & {
|
|
106
|
+
children: React.ReactNode;
|
|
107
|
+
open: boolean;
|
|
108
|
+
};
|
|
109
|
+
/** Controlled overlay root. Use `DialogContent` for its accessible surface. */
|
|
110
|
+
declare function Dialog({ open, children, ...props }: DialogProps): React$1.JSX.Element;
|
|
111
|
+
declare function DialogClose({ onPress, ...props }: React.ComponentProps<typeof Button>): React$1.JSX.Element;
|
|
112
|
+
declare function DialogContent({ className, children, showCloseButton, ...props }: DialogProps$1 & {
|
|
113
|
+
showCloseButton?: boolean;
|
|
114
|
+
}): React$1.JSX.Element;
|
|
115
|
+
declare function DialogHeader({ className, ...props }: React.ComponentProps<"div">): React$1.JSX.Element;
|
|
116
|
+
declare function DialogFooter({ className, ...props }: React.ComponentProps<"div">): React$1.JSX.Element;
|
|
117
|
+
declare function DialogTitle({ className, ...props }: React.ComponentProps<typeof Heading>): React$1.JSX.Element;
|
|
118
|
+
declare function DialogDescription({ className, ...props }: React.ComponentProps<typeof Text>): React$1.JSX.Element;
|
|
119
|
+
|
|
120
|
+
declare function EmptyState({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
121
|
+
declare function EmptyStateTitle({ className, ...props }: React$1.ComponentProps<"h3">): React$1.JSX.Element;
|
|
122
|
+
declare function EmptyStateDescription({ className, ...props }: React$1.ComponentProps<"p">): React$1.JSX.Element;
|
|
123
|
+
|
|
124
|
+
declare const Label: React$1.ForwardRefExoticComponent<Omit<react_aria_components.LabelProps & React$1.RefAttributes<HTMLLabelElement>, "ref"> & React$1.RefAttributes<HTMLLabelElement>>;
|
|
125
|
+
type LabelProps = ComponentPropsWithRef<typeof Label>;
|
|
126
|
+
|
|
127
|
+
declare function Field({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
128
|
+
declare function FieldLabel({ className, ...props }: React$1.ComponentProps<typeof Label>): React$1.JSX.Element;
|
|
129
|
+
declare function FieldDescription({ className, ...props }: React$1.ComponentProps<"p">): React$1.JSX.Element;
|
|
130
|
+
declare function FieldError({ className, children, ...props }: React$1.ComponentProps<"p">): React$1.JSX.Element | null;
|
|
131
|
+
|
|
132
|
+
type CompatibleRef$1<T> = ((instance: T | null) => unknown) | {
|
|
133
|
+
readonly current: T | null;
|
|
134
|
+
} | null;
|
|
135
|
+
type InputProps = Omit<InputProps$1, "ref"> & {
|
|
136
|
+
ref?: CompatibleRef$1<HTMLInputElement>;
|
|
137
|
+
};
|
|
138
|
+
declare const InputImpl: React$1.ForwardRefExoticComponent<InputProps$1 & React$1.RefAttributes<HTMLInputElement>>;
|
|
139
|
+
/** Forward-ref component with a ref type compatible across React 19 type releases. */
|
|
140
|
+
declare const Input: (props: InputProps) => ReturnType<typeof InputImpl>;
|
|
141
|
+
|
|
142
|
+
declare function Kbd({ className, ...props }: React$1.ComponentProps<"kbd">): React$1.JSX.Element;
|
|
143
|
+
declare function KbdGroup({ className, ...props }: React$1.ComponentProps<"span">): React$1.JSX.Element;
|
|
144
|
+
|
|
145
|
+
declare const MenuTrigger: typeof MenuTrigger$1;
|
|
146
|
+
declare function MenuContent({ className, ...props }: React.ComponentProps<typeof Popover$1>): React$1.JSX.Element;
|
|
147
|
+
declare function Menu<T extends object>({ className, ...props }: MenuProps<T>): React$1.JSX.Element;
|
|
148
|
+
declare function MenuItem<T extends object>({ className, children, ...props }: MenuItemProps<T>): React$1.JSX.Element;
|
|
149
|
+
|
|
150
|
+
type PopoverProps = Omit<PopoverProps$1, "className"> & {
|
|
151
|
+
className?: string;
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
/** Wrap a trigger and Popover surface; React Aria handles focus and positioning. */
|
|
155
|
+
declare const PopoverTrigger: typeof DialogTrigger;
|
|
156
|
+
declare function Popover({ className, ...props }: PopoverProps): React$1.JSX.Element;
|
|
157
|
+
declare const PopoverContent: typeof Popover;
|
|
158
|
+
|
|
159
|
+
declare const SearchField: (props: SearchFieldProps & React.RefAttributes<HTMLDivElement>) => React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | null;
|
|
160
|
+
|
|
161
|
+
declare function SearchInput({ className, ...props }: InputProps$1): React$1.JSX.Element;
|
|
162
|
+
declare function SearchClearButton({ className, children, ...props }: Omit<ButtonProps$1, "className"> & {
|
|
163
|
+
className?: string;
|
|
164
|
+
}): React$1.JSX.Element;
|
|
165
|
+
|
|
166
|
+
declare const Select: <T, M extends "multiple" | "single" = "single">(props: SelectProps<T, M> & React.RefAttributes<HTMLDivElement>) => React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | null;
|
|
167
|
+
|
|
168
|
+
declare function SelectTrigger({ className, children, ...props }: ButtonProps$1): React$1.JSX.Element;
|
|
169
|
+
declare function SelectValue({ className, ...props }: React.ComponentProps<typeof SelectValue$1>): React$1.JSX.Element;
|
|
170
|
+
declare function SelectContent({ className, ...props }: React.ComponentProps<typeof Popover$1>): React$1.JSX.Element;
|
|
171
|
+
declare function SelectList<T extends object>({ className, ...props }: ListBoxProps<T>): React$1.JSX.Element;
|
|
172
|
+
declare function SelectItem<T extends object>({ className, children, ...props }: ListBoxItemProps<T>): React$1.JSX.Element;
|
|
173
|
+
|
|
174
|
+
type SeparatorProps = Omit<SeparatorProps$1, "className"> & {
|
|
175
|
+
className?: string;
|
|
176
|
+
};
|
|
177
|
+
declare function Separator({ className, orientation, ...props }: SeparatorProps): React$1.JSX.Element;
|
|
178
|
+
|
|
179
|
+
declare function Skeleton({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
180
|
+
|
|
181
|
+
type SwitchProps = Omit<SwitchProps$1, "className"> & {
|
|
182
|
+
className?: string;
|
|
183
|
+
};
|
|
184
|
+
declare function Switch({ className, children, ...props }: SwitchProps): React$1.JSX.Element;
|
|
185
|
+
|
|
186
|
+
/** Presentational table primitives. Sorting, pagination and data state stay in the application. */
|
|
187
|
+
declare function Table({ className, ...props }: React$1.ComponentProps<"table">): React$1.JSX.Element;
|
|
188
|
+
declare function TableHeader({ className, ...props }: React$1.ComponentProps<"thead">): React$1.JSX.Element;
|
|
189
|
+
declare function TableBody({ className, ...props }: React$1.ComponentProps<"tbody">): React$1.JSX.Element;
|
|
190
|
+
declare function TableRow({ className, ...props }: React$1.ComponentProps<"tr">): React$1.JSX.Element;
|
|
191
|
+
declare function TableHead({ className, ...props }: React$1.ComponentProps<"th">): React$1.JSX.Element;
|
|
192
|
+
declare function TableCell({ className, ...props }: React$1.ComponentProps<"td">): React$1.JSX.Element;
|
|
193
|
+
declare function TableCaption({ className, ...props }: React$1.ComponentProps<"caption">): React$1.JSX.Element;
|
|
194
|
+
|
|
195
|
+
type TabsProps = TabsProps$1;
|
|
196
|
+
type TabProps = TabProps$1;
|
|
197
|
+
type TabPanelProps = TabPanelProps$1;
|
|
198
|
+
declare function Tabs({ className, ...props }: TabsProps$1): React$1.JSX.Element;
|
|
199
|
+
declare function TabsList<T extends object>({ className, ...props }: TabListProps<T>): React$1.JSX.Element;
|
|
200
|
+
declare function TabsTrigger({ className, ...props }: TabProps$1): React$1.JSX.Element;
|
|
201
|
+
declare function TabsPanels<T extends object>({ className, ...props }: TabPanelsProps<T>): React$1.JSX.Element;
|
|
202
|
+
declare function TabsContent({ className, ...props }: TabPanelProps$1): React$1.JSX.Element;
|
|
203
|
+
|
|
204
|
+
type CompatibleRef<T> = ((instance: T | null) => unknown) | {
|
|
205
|
+
readonly current: T | null;
|
|
206
|
+
} | null;
|
|
207
|
+
type TextareaProps = Omit<TextAreaProps, "ref"> & {
|
|
208
|
+
ref?: CompatibleRef<HTMLTextAreaElement>;
|
|
209
|
+
};
|
|
210
|
+
declare const TextareaImpl: React$1.ForwardRefExoticComponent<TextAreaProps & React$1.RefAttributes<HTMLTextAreaElement>>;
|
|
211
|
+
/** Forward-ref component with a ref type compatible across React 19 type releases. */
|
|
212
|
+
declare const Textarea: (props: TextareaProps) => ReturnType<typeof TextareaImpl>;
|
|
213
|
+
|
|
214
|
+
type TooltipProps = Omit<TooltipProps$1, "className"> & {
|
|
215
|
+
className?: string;
|
|
216
|
+
};
|
|
217
|
+
|
|
218
|
+
declare const TooltipTrigger: typeof TooltipTrigger$1;
|
|
219
|
+
declare function Tooltip({ className, ...props }: TooltipProps): React$1.JSX.Element;
|
|
220
|
+
declare const TooltipContent: typeof Tooltip;
|
|
221
|
+
|
|
222
|
+
export { type AutosaveStatus, Badge, type BadgeProps, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, type CheckboxProps, Combobox, ComboboxContent, ComboboxInput, ComboboxItem, ComboboxList, ConfirmDialog, type ConfirmDialogProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, type DialogProps, DialogTitle, EmptyState, EmptyStateDescription, EmptyStateTitle, Field, FieldDescription, FieldError, FieldLabel, HighlightMatch, Input, type InputProps, Kbd, KbdGroup, Label, type LabelProps, Menu, MenuContent, MenuItem, MenuTrigger, Popover, PopoverContent, type PopoverProps, PopoverTrigger, SearchClearButton, SearchField, SearchInput, Select, SelectContent, SelectItem, SelectList, SelectTrigger, SelectValue, Separator, type SeparatorProps, Skeleton, Switch, type SwitchProps, type TabPanelProps, type TabProps, Table, TableBody, TableCaption, TableCell, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsPanels, type TabsProps, TabsTrigger, type TextMatchPart, Textarea, type TextareaProps, Tooltip, TooltipContent, type TooltipProps, TooltipTrigger, type UseAutosaveOptions, type UseFormDirtyResult, badgeVariants, buttonVariants, cn, formSnapshot, getTextMatchParts, useAutosave, useDebouncedValue, useFormDirty };
|