@doscientos/ui 0.1.30 → 0.1.32

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.d.cts CHANGED
@@ -3,9 +3,24 @@ import { RefCallback, ReactNode, ComponentPropsWithRef } from 'react';
3
3
  import * as class_variance_authority_types from 'class-variance-authority/types';
4
4
  import { ClassValue } from 'clsx';
5
5
  import * as react_aria_components from 'react-aria-components';
6
- import { DisclosureGroupProps, DisclosurePanelProps, DisclosureProps, ButtonProps as ButtonProps$1, LinkProps, Text, Heading, Dialog as Dialog$1, ModalOverlayProps, Breadcrumb as Breadcrumb$1, Link, Breadcrumbs as Breadcrumbs$1, Separator as Separator$1, CheckboxProps as CheckboxProps$1, ComboBoxProps, Key, Popover as Popover$1, InputProps as InputProps$1, ListBoxItemProps, ListBoxProps, Input as Input$1, ListBox, Menu as Menu$1, MenuTrigger as MenuTrigger$1, MenuSectionProps, MenuItemProps, Header, SubmenuTrigger, TextAreaProps, MenuProps, PopoverProps as PopoverProps$1, DialogTriggerProps as DialogTriggerProps$1, DialogTrigger as DialogTrigger$1, NumberFieldProps, SelectProps, SelectValue as SelectValue$1, Modal, SwitchProps as SwitchProps$1, TabPanelProps as TabPanelProps$1, TabProps as TabProps$1, TabsProps as TabsProps$1, TabListProps, TabPanelsProps, Tooltip as Tooltip$1, TooltipTrigger as TooltipTrigger$1 } from 'react-aria-components';
7
- export { ComboBoxProps, ComboBoxValue as ComboboxValue, DialogTriggerProps as PopoverTriggerProps, SelectProps, DialogProps as SheetPrimitiveProps, DialogTriggerProps as SheetTriggerPrimitiveProps } from 'react-aria-components';
6
+ import { DisclosureGroupProps, DisclosurePanelProps, DisclosureProps, ButtonProps as ButtonProps$1, LinkProps, Text, Heading, Dialog as Dialog$1, ModalOverlayProps, Breadcrumb as Breadcrumb$1, Link, Breadcrumbs as Breadcrumbs$1, Separator as Separator$1, CheckboxProps as CheckboxProps$1, ComboBoxProps, Key, InputProps as InputProps$1, Popover as Popover$1, ListBoxItemProps, ListBoxProps, Input as Input$1, ListBox, Modal, DialogProps as DialogProps$1, DialogTriggerProps as DialogTriggerProps$1, Menu as Menu$1, MenuTrigger as MenuTrigger$1, MenuSectionProps, MenuItemProps, Header, SubmenuTrigger, TextAreaProps, MenuProps, PopoverProps as PopoverProps$1, DialogTrigger as DialogTrigger$1, NumberFieldProps, SelectProps, SelectValue as SelectValue$1, SwitchProps as SwitchProps$1, TabPanelProps as TabPanelProps$1, TabProps as TabProps$1, TabsProps as TabsProps$1, TabListProps, TabPanelsProps, Tooltip as Tooltip$1, TooltipTrigger as TooltipTrigger$1 } from 'react-aria-components';
7
+ export { ComboBoxProps, ComboBoxValue as ComboboxValue, DialogProps as DrawerPrimitiveProps, DialogTriggerProps as DrawerTriggerPrimitiveProps, DialogTriggerProps as PopoverTriggerProps, SelectProps } from 'react-aria-components';
8
8
  import { VariantProps } from 'class-variance-authority';
9
+ import { AlertCircle } from 'lucide-react';
10
+
11
+ type AsyncActionStatus = 'idle' | 'pending' | 'success' | 'error';
12
+ /**
13
+ * Runs one async action at a time and exposes its lifecycle to UI components.
14
+ * `run` resolves to `null` if another call is pending or the action fails; inspect `error` for failures.
15
+ */
16
+ declare function useAsyncAction<Args extends unknown[], Result>(action: (...args: Args) => Promise<Result>): {
17
+ data: Result | null;
18
+ error: Error | null;
19
+ isPending: boolean;
20
+ reset: () => void;
21
+ run: (...args: Args) => Promise<Result | null>;
22
+ status: AsyncActionStatus;
23
+ };
9
24
 
10
25
  type AutosaveStatus = 'idle' | 'saving' | 'saved' | 'error';
11
26
  type UseAutosaveOptions<T> = {
@@ -22,6 +37,20 @@ declare function useAutosave<T>({ data, onSave, debounceMs, enabled, serialize,
22
37
  saveNow: () => Promise<void>;
23
38
  };
24
39
 
40
+ type ClipboardStatus = 'idle' | 'copied' | 'error';
41
+ /**
42
+ * Copies text and exposes success/error feedback without imposing a toast or analytics provider.
43
+ * Use `onError` to delegate product-specific feedback.
44
+ */
45
+ declare function useClipboard({ resetMs, onError, }?: {
46
+ resetMs?: number;
47
+ onError?: (error: Error) => void;
48
+ }): {
49
+ copy: (value: string) => Promise<boolean>;
50
+ error: Error | null;
51
+ status: ClipboardStatus;
52
+ };
53
+
25
54
  /** Returns a value only after it has been stable for the supplied delay. */
26
55
  declare function useDebouncedValue<T>(value: T, delay?: number): T;
27
56
 
@@ -43,6 +72,25 @@ declare const actionRipple: (props?: class_variance_authority_types.ClassProp |
43
72
  /** Merges conditional class names, resolving conflicting Tailwind utilities. */
44
73
  declare function cn(...inputs: ClassValue[]): string;
45
74
 
75
+ type SearchParamPrimitive = string | number | boolean;
76
+ type SearchParamValue = SearchParamPrimitive | readonly SearchParamPrimitive[] | null | undefined;
77
+ type SearchParamUpdates = Record<string, SearchParamValue>;
78
+ type SearchParamsRecord = Record<string, string | readonly string[] | undefined>;
79
+ type SearchParamsInput = string | URLSearchParams | SearchParamsRecord | {
80
+ toString(): string;
81
+ };
82
+ /** Normalizes framework-specific query values into a mutable URLSearchParams instance. */
83
+ declare function toSearchParams(input?: SearchParamsInput): URLSearchParams;
84
+ /** Applies filter updates without dropping unrelated query params. Empty values remove their key. */
85
+ declare function updateSearchParams(current: SearchParamsInput, updates: SearchParamUpdates): URLSearchParams;
86
+ declare function readSearchParam(params: SearchParamsInput, key: string, fallback?: string): string;
87
+ declare function readSearchParamArray(params: SearchParamsInput, key: string): string[];
88
+ declare function readSearchParamInt(params: SearchParamsInput, key: string, fallback?: number, options?: {
89
+ min?: number;
90
+ max?: number;
91
+ }): number;
92
+ declare function readSearchParamEnum<Value extends string>(params: SearchParamsInput, key: string, values: readonly Value[], fallback: Value): Value;
93
+
46
94
  type TextMatchPart = {
47
95
  text: string;
48
96
  match: boolean;
@@ -172,18 +220,21 @@ type AlertDialogProps = {
172
220
  };
173
221
  /** Controlled, composable confirmation dialog for domain-specific destructive actions. */
174
222
  declare function AlertDialog({ children, open, onOpenChange }: AlertDialogProps): React$1.JSX.Element;
223
+ /** @deprecated AlertDialogContent already provides the required portal. */
175
224
  declare function AlertDialogPortal({ children }: {
176
225
  children?: React$1.ReactNode;
177
226
  }): React$1.JSX.Element;
178
227
  declare function AlertDialogTrigger({ children, ...props }: Omit<React$1.ComponentProps<typeof Button>, 'onPress'>): React$1.JSX.Element;
228
+ /** @deprecated AlertDialogContent already provides the required overlay. */
179
229
  declare function AlertDialogOverlay({ className, ...props }: Omit<ModalOverlayProps, 'children' | 'className' | 'isOpen' | 'onOpenChange'> & {
180
230
  className?: string;
181
231
  }): React$1.JSX.Element;
182
- declare function AlertDialogContent({ className, size, children, }: {
232
+ type AlertDialogContentProps = {
183
233
  children?: React$1.ReactNode;
184
234
  className?: string;
185
235
  size?: 'default' | 'sm';
186
- }): React$1.JSX.Element;
236
+ };
237
+ declare function AlertDialogContent({ className, size, children, }: AlertDialogContentProps): React$1.JSX.Element;
187
238
  declare function AlertDialogHeader({ className, ...props }: React$1.ComponentProps<'div'>): React$1.JSX.Element;
188
239
  declare function AlertDialogFooter({ className, ...props }: React$1.ComponentProps<'div'>): React$1.JSX.Element;
189
240
  declare function AlertDialogTitle({ className, ...props }: React$1.ComponentProps<typeof DialogTitle>): React$1.JSX.Element;
@@ -192,7 +243,7 @@ declare function AlertDialogAction({ className, ...props }: React$1.ComponentPro
192
243
  declare function AlertDialogCancel({ children, onClick, ...props }: Omit<React$1.ComponentProps<typeof Button>, 'onPress'>): React$1.JSX.Element;
193
244
 
194
245
  declare const alertVariants: (props?: ({
195
- variant?: "default" | "destructive" | "info" | "success" | "warning" | null | undefined;
246
+ variant?: "success" | "default" | "destructive" | "info" | "warning" | null | undefined;
196
247
  } & class_variance_authority_types.ClassProp) | undefined) => string;
197
248
 
198
249
  type AlertProps = React$1.ComponentProps<'div'> & VariantProps<typeof alertVariants> & {
@@ -239,7 +290,7 @@ declare function AvatarGroup({ className, ...props }: React.ComponentProps<'div'
239
290
  declare function AvatarGroupCount({ className, ...props }: React.ComponentProps<'span'>): React$1.JSX.Element;
240
291
 
241
292
  declare const badgeVariants: (props?: ({
242
- variant?: "link" | "default" | "outline" | "secondary" | "ghost" | "destructive" | "info" | "success" | "warning" | "neutral" | "danger" | null | undefined;
293
+ variant?: "success" | "link" | "default" | "outline" | "secondary" | "ghost" | "destructive" | "info" | "warning" | "neutral" | "danger" | null | undefined;
243
294
  } & class_variance_authority_types.ClassProp) | undefined) => string;
244
295
 
245
296
  type BadgeProps = React$1.ComponentProps<'span'> & VariantProps<typeof badgeVariants> & {
@@ -330,7 +381,7 @@ declare function HighlightMatch({ text, query, className, }: {
330
381
  query: string;
331
382
  className?: string;
332
383
  }): React$1.JSX.Element;
333
- type AutocompleteComboboxProps<T extends object> = Omit<ComboBoxProps<T>, 'children' | 'items' | 'inputValue' | 'onInputChange' | 'selectedKey' | 'onSelectionChange' | 'defaultFilter'> & {
384
+ type AutocompleteComboboxProps<T extends object> = Omit<ComboBoxProps<T>, 'children' | 'items' | 'inputValue' | 'onInputChange' | 'selectedKey' | 'onSelectionChange' | 'defaultFilter' | 'onKeyDown'> & {
334
385
  items: readonly T[];
335
386
  getItemKey: (item: T) => Key;
336
387
  getItemLabel: (item: T) => string;
@@ -345,9 +396,11 @@ type AutocompleteComboboxProps<T extends object> = Omit<ComboBoxProps<T>, 'child
345
396
  emptyState?: ReactNode;
346
397
  suggestion?: boolean;
347
398
  placeholder?: string;
399
+ /** Keyboard handler for the underlying text input. */
400
+ onKeyDown?: InputProps$1['onKeyDown'];
348
401
  };
349
402
  /** A safe, keyboard-first autocomplete for users, contracts and other entities. */
350
- declare function AutocompleteCombobox<T extends object>({ items, getItemKey, getItemLabel, renderItem, inputValue: controlledInputValue, onInputChange, selectedKey, onSelectionChange, label, description, errorMessage, emptyState, suggestion, placeholder, className, onKeyDown: _onKeyDown, ...props }: AutocompleteComboboxProps<T>): React$1.JSX.Element;
403
+ declare function AutocompleteCombobox<T extends object>({ items, getItemKey, getItemLabel, renderItem, inputValue: controlledInputValue, onInputChange, selectedKey, onSelectionChange, label, description, errorMessage, emptyState, suggestion, placeholder, className, onKeyDown, ...props }: AutocompleteComboboxProps<T>): React$1.JSX.Element;
351
404
 
352
405
  /** Searchable command palette built from an accessible combobox and option list. */
353
406
  declare function Command<T extends object>({ className, ...props }: ComboBoxProps<T>): React$1.JSX.Element;
@@ -356,6 +409,87 @@ declare function CommandContent({ className, ...props }: React.ComponentProps<ty
356
409
  declare function CommandList<T extends object>({ className, ...props }: React.ComponentProps<typeof ListBox<T>>): React$1.JSX.Element;
357
410
  declare function CommandItem<T extends object>({ className, ...props }: ListBoxItemProps<T>): React$1.JSX.Element;
358
411
 
412
+ declare function DrawerTrigger({ ...props }: DialogTriggerProps$1): React$1.JSX.Element;
413
+ declare function DrawerClose({ className, variant, size, ...props }: ButtonProps): React$1.JSX.Element;
414
+ /** Props for a controlled drawer panel. */
415
+ type DrawerContentProps = Omit<ModalOverlayProps, 'className' | 'children'> & Pick<React$1.ComponentProps<typeof Modal>, 'isDismissable'> & {
416
+ className?: string;
417
+ /** Props applied to the accessible dialog inside the drawer panel. */
418
+ dialogProps?: Omit<DialogProps$1, 'children' | 'className'>;
419
+ children: React$1.ReactNode;
420
+ side?: 'top' | 'right' | 'bottom' | 'left';
421
+ showCloseButton?: boolean;
422
+ };
423
+ /** Dismissable, controlled modal panel that slides in from a screen edge. */
424
+ declare function DrawerContent({ className, children, dialogProps, side, showCloseButton, ...props }: DrawerContentProps): React$1.JSX.Element;
425
+ type TriggerDrawerProps = DrawerContentProps & Pick<DialogTriggerProps$1, 'defaultOpen' | 'isOpen' | 'onOpenChange'> & {
426
+ /** Text for a default button, or an interactive element that opens the drawer. */
427
+ trigger: string | React$1.ReactElement;
428
+ /** Props for the default button rendered when {@link trigger} is text. */
429
+ triggerProps?: Omit<ButtonProps, 'children'>;
430
+ };
431
+ /** Props for a controlled drawer or a drawer with a simple trigger. */
432
+ type DrawerProps = DrawerContentProps | TriggerDrawerProps;
433
+ /**
434
+ * A dismissable modal panel. Pass `trigger` for a simple trigger API, or control it with `isOpen`.
435
+ * Use {@link DrawerTrigger} plus {@link DrawerContent} for advanced composition.
436
+ */
437
+ declare function Drawer(props: DrawerProps): React$1.JSX.Element;
438
+ declare function DrawerHeader({ className, ...props }: React$1.ComponentProps<'div'>): React$1.JSX.Element;
439
+ declare function DrawerFooter({ className, ...props }: React$1.ComponentProps<'div'>): React$1.JSX.Element;
440
+ declare function DrawerTitle({ className, ...props }: Omit<React$1.ComponentProps<typeof Heading>, 'slot'>): React$1.JSX.Element;
441
+ declare function DrawerDescription({ className, ...props }: Omit<React$1.ComponentProps<typeof Text>, 'slot'>): React$1.JSX.Element;
442
+ /** @deprecated Use {@link DrawerContent}. */
443
+ declare const Sheet: typeof DrawerContent;
444
+ /** @deprecated Use {@link DrawerPrimitiveProps}. */
445
+ type SheetPrimitiveProps = DialogProps$1;
446
+ /** @deprecated Use {@link DrawerClose}. */
447
+ declare const SheetClose: typeof DrawerClose;
448
+ /** @deprecated Use {@link DrawerContent}. */
449
+ declare const SheetContent: typeof DrawerContent;
450
+ /** @deprecated Use {@link DrawerDescription}. */
451
+ declare const SheetDescription: typeof DrawerDescription;
452
+ /** @deprecated Use {@link DrawerFooter}. */
453
+ declare const SheetFooter: typeof DrawerFooter;
454
+ /** @deprecated Use {@link DrawerHeader}. */
455
+ declare const SheetHeader: typeof DrawerHeader;
456
+ /** @deprecated Use {@link DrawerTitle}. */
457
+ declare const SheetTitle: typeof DrawerTitle;
458
+ /** @deprecated Use {@link DrawerTrigger}. */
459
+ declare const SheetTrigger: typeof DrawerTrigger;
460
+ /** @deprecated Use {@link DrawerTriggerPrimitiveProps}. */
461
+ type SheetTriggerPrimitiveProps = DialogTriggerProps$1;
462
+
463
+ /** Flexible toolbar container for filter controls and active-filter chips. */
464
+ declare function FilterBar({ className, ...props }: React$1.ComponentProps<'div'>): React$1.JSX.Element;
465
+ declare function FilterGroup({ className, ...props }: React$1.ComponentProps<'div'>): React$1.JSX.Element;
466
+ /** Labels a group of currently active filters for assistive technology. */
467
+ declare function ActiveFilters({ className, ...props }: React$1.ComponentProps<'div'>): React$1.JSX.Element;
468
+ /** An active filter button. `onRemove` must update the application-owned filter state. */
469
+ declare function FilterChip({ children, onRemove, ...props }: Omit<React$1.ComponentProps<typeof Button>, 'children' | 'onPress'> & {
470
+ children: React$1.ReactNode;
471
+ onRemove: () => void;
472
+ }): React$1.JSX.Element;
473
+ /** Announces the selected item count and displays application-owned bulk actions. */
474
+ declare function SelectionToolbar({ count, className, children, ...props }: React$1.ComponentProps<'div'> & {
475
+ count: number;
476
+ }): React$1.JSX.Element;
477
+ /** Responsive semantic list for read-only record details. */
478
+ declare function DescriptionList({ className, ...props }: React$1.ComponentProps<'dl'>): React$1.JSX.Element;
479
+ declare function DescriptionItem({ className, ...props }: React$1.ComponentProps<'div'>): React$1.JSX.Element;
480
+ declare function DescriptionTerm({ className, ...props }: React$1.ComponentProps<'dt'>): React$1.JSX.Element;
481
+ declare function DescriptionDetails({ className, ...props }: React$1.ComponentProps<'dd'>): React$1.JSX.Element;
482
+ /** Composable empty, loading, or recoverable state for a data view. */
483
+ declare function DataViewState({ className, ...props }: React$1.ComponentProps<'section'>): React$1.JSX.Element;
484
+ declare function DataViewStateTitle({ children, className, ...props }: React$1.ComponentProps<'h2'>): React$1.JSX.Element;
485
+ declare function DataViewStateDescription({ className, ...props }: React$1.ComponentProps<'p'>): React$1.JSX.Element;
486
+ declare function DataViewStateActions({ className, ...props }: React$1.ComponentProps<'div'>): React$1.JSX.Element;
487
+ /** Responsive layout container for MetricCard items. */
488
+ declare function MetricGrid({ className, ...props }: React$1.ComponentProps<'div'>): React$1.JSX.Element;
489
+ /** Drawer content frame for record details; compose it inside an open Drawer. */
490
+ declare function DetailDrawer({ children, ...props }: React$1.ComponentProps<typeof DrawerContent>): React$1.JSX.Element;
491
+ declare function DetailDrawerBody({ className, ...props }: React$1.ComponentProps<'div'>): React$1.JSX.Element;
492
+
359
493
  type ConfirmDialogProps = {
360
494
  open: boolean;
361
495
  onOpenChange: (open: boolean) => void;
@@ -370,6 +504,17 @@ type ConfirmDialogProps = {
370
504
  /** Controlled confirmation dialog for irreversible actions. */
371
505
  declare function ConfirmDialog({ open, onOpenChange, title, description, confirmLabel, cancelLabel, destructive, pending, onConfirm, }: ConfirmDialogProps): React$1.JSX.Element;
372
506
 
507
+ type CopyButtonProps = Omit<ButtonProps, 'children' | 'onPress'> & {
508
+ value: string;
509
+ children?: React$1.ReactNode;
510
+ copiedLabel?: string;
511
+ resetMs?: number;
512
+ onCopied?: (value: string) => void;
513
+ onCopyError?: (error: Error) => void;
514
+ };
515
+ /** Copies a value with accessible success feedback and no dependency on a toast provider. */
516
+ declare function CopyButton({ value, children, copiedLabel, resetMs, onCopied, onCopyError, ...props }: CopyButtonProps): React$1.JSX.Element;
517
+
373
518
  type DangerZoneProps = {
374
519
  children: React$1.ReactNode;
375
520
  className?: string;
@@ -440,6 +585,30 @@ declare function EmptyStateTitle({ className, children, ...props }: React$1.Comp
440
585
  declare function EmptyStateDescription({ className, ...props }: React$1.ComponentProps<'p'>): React$1.JSX.Element;
441
586
  declare function EmptyStateContent({ className, ...props }: React$1.ComponentProps<'div'>): React$1.JSX.Element;
442
587
 
588
+ type ErrorFallbackProps = {
589
+ error: Error;
590
+ reset: () => void;
591
+ };
592
+ type ErrorBoundaryProps = {
593
+ children: React$1.ReactNode;
594
+ fallback?: React$1.ReactNode | ((props: ErrorFallbackProps) => React$1.ReactNode);
595
+ onError?: (error: Error, info: React$1.ErrorInfo) => void;
596
+ resetKeys?: readonly unknown[];
597
+ };
598
+ /** Catches rendering errors and renders a supplied or recoverable default fallback. */
599
+ declare function ErrorBoundary(props: ErrorBoundaryProps): React$1.JSX.Element;
600
+ /** Adds a Suspense fallback to ErrorBoundary without coupling loading to a data client. */
601
+ declare function AsyncBoundary({ pending, ...props }: ErrorBoundaryProps & {
602
+ pending?: React$1.ReactNode;
603
+ }): React$1.JSX.Element;
604
+
605
+ /** Presentational, accessible error state that applications can pair with a retry action. */
606
+ declare function ErrorState({ className, ...props }: React$1.ComponentProps<'section'>): React$1.JSX.Element;
607
+ declare function ErrorStateIcon({ className, ...props }: Omit<React$1.ComponentProps<typeof AlertCircle>, 'children'>): React$1.JSX.Element;
608
+ declare function ErrorStateTitle({ className, ...props }: React$1.ComponentProps<'h2'>): React$1.JSX.Element;
609
+ declare function ErrorStateDescription({ className, ...props }: React$1.ComponentProps<'p'>): React$1.JSX.Element;
610
+ declare function ErrorStateActions({ className, ...props }: React$1.ComponentProps<'div'>): React$1.JSX.Element;
611
+
443
612
  /** Accessible label associated with a React Aria form control. */
444
613
  declare const Label: React$1.ForwardRefExoticComponent<Omit<react_aria_components.LabelProps & React$1.RefAttributes<HTMLLabelElement>, "ref"> & React$1.RefAttributes<HTMLLabelElement>>;
445
614
  type LabelProps = ComponentPropsWithRef<typeof Label>;
@@ -629,9 +798,17 @@ type MetricCardProps = Omit<React$1.ComponentProps<typeof Card>, 'children'> & {
629
798
  icon?: React$1.ReactNode;
630
799
  /** Semantic emphasis without coupling the card to a product status. */
631
800
  tone?: 'default' | 'success' | 'warning' | 'danger' | 'info';
801
+ /** Direction of an optional comparison value. */
802
+ trend?: 'up' | 'down' | 'neutral';
803
+ /** Optional comparison with a previous period. */
804
+ delta?: React$1.ReactNode;
805
+ /** Replaces the value with an accessible loading placeholder. */
806
+ loading?: boolean;
807
+ /** Accessible loading label when the metric label is not plain text. */
808
+ loadingLabel?: string;
632
809
  };
633
810
  /** Compact, accessible summary of a labelled metric. */
634
- declare function MetricCard({ className, label, value, description, icon, tone, ...props }: MetricCardProps): React$1.JSX.Element;
811
+ declare function MetricCard({ className, label, value, description, icon, tone, trend, delta, loading, loadingLabel, ...props }: MetricCardProps): React$1.JSX.Element;
635
812
 
636
813
  type CompatibleRef<T> = ((instance: T | null) => unknown) | {
637
814
  readonly current: T | null;
@@ -657,6 +834,12 @@ declare function PageHeaderHeading({ className, ...props }: React$1.ComponentPro
657
834
  declare function PageHeaderTitle({ className, children, ...props }: React$1.ComponentProps<'h1'>): React$1.JSX.Element;
658
835
  declare function PageHeaderDescription({ className, ...props }: React$1.ComponentProps<'p'>): React$1.JSX.Element;
659
836
  declare function PageHeaderActions({ className, ...props }: React$1.ComponentProps<'div'>): React$1.JSX.Element;
837
+ /** Section-level heading layout for panels and cards. */
838
+ declare function SectionHeader({ className, ...props }: React$1.ComponentProps<'div'>): React$1.JSX.Element;
839
+ declare function SectionHeaderHeading({ className, ...props }: React$1.ComponentProps<'div'>): React$1.JSX.Element;
840
+ declare function SectionHeaderTitle({ className, ...props }: React$1.ComponentProps<'h2'>): React$1.JSX.Element;
841
+ declare function SectionHeaderDescription({ className, ...props }: React$1.ComponentProps<'p'>): React$1.JSX.Element;
842
+ declare function SectionHeaderActions({ className, ...props }: React$1.ComponentProps<'div'>): React$1.JSX.Element;
660
843
 
661
844
  type PaginationProps = {
662
845
  /** Currently selected page, starting at one. */
@@ -722,53 +905,13 @@ declare function SelectList<T extends object>({ className, ...props }: ListBoxPr
722
905
  /** Selectable option within a {@link SelectList}. */
723
906
  declare function SelectItem<T extends object>({ className, children, ...props }: ListBoxItemProps<T>): React$1.JSX.Element;
724
907
 
725
- declare function SheetTrigger({ ...props }: DialogTriggerProps$1): React$1.JSX.Element;
726
- declare function SheetClose({ className, variant, size, ...props }: ButtonProps): React$1.JSX.Element;
727
- /** Dismissable modal panel that slides in from a screen edge. */
728
- declare function Sheet({ className, children, side, showCloseButton, ...props }: Omit<ModalOverlayProps, 'className' | 'children'> & Pick<React$1.ComponentProps<typeof Modal>, 'isDismissable'> & {
729
- className?: string;
730
- children: React$1.ReactNode;
731
- side?: 'top' | 'right' | 'bottom' | 'left';
732
- showCloseButton?: boolean;
733
- }): React$1.JSX.Element;
734
- declare function SheetContent({ className, children, side, showCloseButton, ...props }: React$1.ComponentProps<typeof Sheet> & {
735
- side?: 'top' | 'right' | 'bottom' | 'left';
736
- showCloseButton?: boolean;
737
- }): React$1.JSX.Element;
738
- /** Props for the simple {@link Drawer} API. */
739
- type DrawerProps = React$1.ComponentProps<typeof SheetContent> & Pick<DialogTriggerProps$1, 'defaultOpen' | 'isOpen' | 'onOpenChange'> & {
740
- /** Text for a default button, or an interactive element that opens the drawer. */
741
- trigger: string | React$1.ReactElement;
742
- /** Props for the default button rendered when {@link trigger} is text. */
743
- triggerProps?: Omit<ButtonProps, 'children'>;
744
- };
745
- /**
746
- * A dismissable modal panel with a simple trigger API.
747
- * Use {@link DrawerTrigger} plus {@link DrawerContent} for advanced composition.
748
- */
749
- declare function Drawer({ children, trigger, triggerProps, defaultOpen, isOpen, onOpenChange, ...contentProps }: DrawerProps): React$1.JSX.Element;
750
- declare function SheetHeader({ className, ...props }: React$1.ComponentProps<'div'>): React$1.JSX.Element;
751
- declare function SheetFooter({ className, ...props }: React$1.ComponentProps<'div'>): React$1.JSX.Element;
752
- declare function SheetTitle({ className, ...props }: Omit<React$1.ComponentProps<typeof Heading>, 'slot'>): React$1.JSX.Element;
753
- declare function SheetDescription({ className, ...props }: Omit<React$1.ComponentProps<typeof Text>, 'slot'>): React$1.JSX.Element;
754
- /** Explicit advanced-composition name for {@link SheetTrigger}. */
755
- declare const DrawerTrigger: typeof SheetTrigger;
756
- /** Explicit advanced-composition name for {@link Sheet}. */
757
- declare const DrawerContent: typeof SheetContent;
758
- /** Explicit advanced-composition name for {@link SheetClose}. */
759
- declare const DrawerClose: typeof SheetClose;
760
- /** Explicit advanced-composition name for {@link SheetHeader}. */
761
- declare const DrawerHeader: typeof SheetHeader;
762
- /** Explicit advanced-composition name for {@link SheetFooter}. */
763
- declare const DrawerFooter: typeof SheetFooter;
764
- /** Explicit advanced-composition name for {@link SheetTitle}. */
765
- declare const DrawerTitle: typeof SheetTitle;
766
- /** Explicit advanced-composition name for {@link SheetDescription}. */
767
- declare const DrawerDescription: typeof SheetDescription;
768
-
769
908
  /** Provides the expanded or collapsed state required by sidebar components. */
770
- declare function SidebarProvider({ defaultCollapsed, children, }: {
909
+ declare function SidebarProvider({ defaultCollapsed, collapsed: controlledCollapsed, onCollapsedChange, children, }: {
771
910
  defaultCollapsed?: boolean;
911
+ /** Controlled collapsed state for persistence or external navigation. */
912
+ collapsed?: boolean;
913
+ /** Notifies when a user toggles the sidebar. */
914
+ onCollapsedChange?: (collapsed: boolean) => void;
772
915
  children: ReactNode;
773
916
  }): React$1.JSX.Element;
774
917
  /** Primary application navigation; render it within a {@link SidebarProvider}. */
@@ -863,6 +1006,17 @@ declare function TableHead({ className, ...props }: React$1.ComponentProps<'th'>
863
1006
  declare function TableCell({ className, ...props }: React$1.ComponentProps<'td'>): React$1.JSX.Element;
864
1007
  declare function TableCaption({ className, ...props }: React$1.ComponentProps<'caption'>): React$1.JSX.Element;
865
1008
  declare function TableFooter({ className, ...props }: React$1.ComponentProps<'tfoot'>): React$1.JSX.Element;
1009
+ declare function TableToolbar({ className, ...props }: React$1.ComponentProps<'div'>): React$1.JSX.Element;
1010
+ declare function TableEmpty({ colSpan, className, children, }: {
1011
+ colSpan?: number;
1012
+ className?: string;
1013
+ children?: React$1.ReactNode;
1014
+ }): React$1.JSX.Element;
1015
+ declare function TableLoading({ colSpan, className, children, }: {
1016
+ colSpan?: number;
1017
+ className?: string;
1018
+ children?: React$1.ReactNode;
1019
+ }): React$1.JSX.Element;
866
1020
 
867
1021
  type TabsProps = TabsProps$1;
868
1022
  type TabProps = TabProps$1;
@@ -967,4 +1121,4 @@ declare function TooltipContent({ className, placement, offset, crossOffset, chi
967
1121
  children?: React$1.ReactNode;
968
1122
  }): React$1.JSX.Element;
969
1123
 
970
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertAction, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, type AlertDialogProps, AlertDialogTitle, AlertDialogTrigger, type AlertProps, AlertTitle, AppShell, type AppShellBreakpoint, AppShellContent, type AppShellContentProps, AppShellHeader, AppShellMain, AppShellMobileHeader, type AppShellProps, AppShellSidebar, AutocompleteCombobox, type AutocompleteComboboxProps, type AutosaveStatus, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, type AvatarProps, Badge, BadgeLink, type BadgeLinkProps, type BadgeProps, Breadcrumb, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, Breadcrumbs, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, type ButtonProps, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, type CardProps, CardTitle, Checkbox, type CheckboxProps, Collapsible, CollapsibleContent, type CollapsibleContentProps, type CollapsibleProps, CollapsibleTrigger, type CollapsibleTriggerProps, Combobox, ComboboxContent, ComboboxInput, ComboboxItem, ComboboxList, Command, CommandContent, CommandInput, CommandItem, CommandList, ConfirmDialog, type ConfirmDialogProps, DangerZone, type DangerZoneProps, Dialog, DialogClose, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, type DialogProps, DialogRoot, type DialogRootProps, DialogTitle, DialogTrigger, type DialogTriggerProps, DocPreview, type DocPreviewProps, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, type DrawerProps, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, type DropdownMenuProps, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, EmptyStateContent, EmptyStateDescription, EmptyStateHeader, EmptyStateMedia, EmptyStateTitle, Field, FieldContent, FieldDescription, FieldError, type FieldErrorProps, FieldGroup, FieldLabel, FieldLegend, type FieldProps, FieldSeparator, FieldSet, FieldTitle, FormFeedback, type FormFeedbackProps, type FormFeedbackState, FormRow, type FormRowProps, HighlightMatch, IconButton, type IconButtonProps, Input, InputGroup, InputGroupAddon, InputGroupButton, type InputGroupButtonProps, InputGroupInput, InputGroupText, InputGroupTextarea, type InputProps, KanbanColumn, KanbanColumnBody, KanbanColumnHeader, type KanbanColumnSize, KanbanColumnTitle, KanbanEmpty, KanbanViewport, Kbd, KbdGroup, Label, type LabelProps, LinkButton, type LinkButtonProps, LoadingOverlay, Menu, MenuContent, MenuItem, MenuTrigger, MetricCard, type MetricCardProps, OtpInput, type OtpInputProps, PageHeader, PageHeaderActions, PageHeaderDescription, PageHeaderHeading, PageHeaderTitle, Pagination, type PaginationProps, Popover, PopoverContent, type PopoverContentProps, type PopoverProps, PopoverTrigger, QuantityInput, type QuantityInputProps, Select, SelectContent, SelectItem, SelectList, SelectTrigger, SelectValue, Separator, type SeparatorProps, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarContext, type SidebarContextValue, SidebarFooter, SidebarGroup, SidebarHeader, SidebarItem, type SidebarItemProps, SidebarMore, SidebarProvider, SidebarRail, SidebarSearch, SidebarSeparator, SidebarTrigger, Skeleton, SubmitButton, type SubmitButtonProps, Switch, type SwitchProps, type TabPanelProps, type TabProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsPanels, type TabsProps, TabsTrigger, type TextMatchPart, Textarea, type TextareaProps, Toast, type ToastAction, type ToastData, type ToastOptions, type ToastPosition, ToastProvider, type ToastVariant, ToastViewport, Toaster, Toolbar, ToolbarGroup, ToolbarSpacer, Tooltip, TooltipContent, type TooltipProps, TooltipTrigger, type UseAutosaveOptions, type UseFormDirtyResult, actionRipple, alertVariants, badgeVariants, buttonGroupVariants, buttonVariants, cn, emptyStateMediaVariants, fieldVariants, formSnapshot, getTextMatchParts, inputGroupAddonVariants, toast, useAutosave, useDebouncedValue, useFormDirty, useFormFeedback, useSidebar, useToast };
1124
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActiveFilters, Alert, AlertAction, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, type AlertDialogContentProps, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, type AlertDialogProps, AlertDialogTitle, AlertDialogTrigger, type AlertProps, AlertTitle, AppShell, type AppShellBreakpoint, AppShellContent, type AppShellContentProps, AppShellHeader, AppShellMain, AppShellMobileHeader, type AppShellProps, AppShellSidebar, type AsyncActionStatus, AsyncBoundary, AutocompleteCombobox, type AutocompleteComboboxProps, type AutosaveStatus, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, type AvatarProps, Badge, BadgeLink, type BadgeLinkProps, type BadgeProps, Breadcrumb, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, Breadcrumbs, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, type ButtonProps, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, type CardProps, CardTitle, Checkbox, type CheckboxProps, type ClipboardStatus, Collapsible, CollapsibleContent, type CollapsibleContentProps, type CollapsibleProps, CollapsibleTrigger, type CollapsibleTriggerProps, Combobox, ComboboxContent, ComboboxInput, ComboboxItem, ComboboxList, Command, CommandContent, CommandInput, CommandItem, CommandList, ConfirmDialog, type ConfirmDialogProps, CopyButton, type CopyButtonProps, DangerZone, type DangerZoneProps, DataViewState, DataViewStateActions, DataViewStateDescription, DataViewStateTitle, DescriptionDetails, DescriptionItem, DescriptionList, DescriptionTerm, DetailDrawer, DetailDrawerBody, DrawerFooter as DetailDrawerFooter, DrawerHeader as DetailDrawerHeader, Dialog, DialogClose, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, type DialogProps, DialogRoot, type DialogRootProps, DialogTitle, DialogTrigger, type DialogTriggerProps, DocPreview, type DocPreviewProps, Drawer, DrawerClose, DrawerContent, type DrawerContentProps, DrawerDescription, DrawerFooter, DrawerHeader, type DrawerProps, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, type DropdownMenuProps, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, EmptyStateContent, EmptyStateDescription, EmptyStateHeader, EmptyStateMedia, EmptyStateTitle, ErrorBoundary, type ErrorBoundaryProps, type ErrorFallbackProps, ErrorState, ErrorStateActions, ErrorStateDescription, ErrorStateIcon, ErrorStateTitle, Field, FieldContent, FieldDescription, FieldError, type FieldErrorProps, FieldGroup, FieldLabel, FieldLegend, type FieldProps, FieldSeparator, FieldSet, FieldTitle, FilterBar, FilterChip, FilterGroup, FormFeedback, type FormFeedbackProps, type FormFeedbackState, FormRow, type FormRowProps, HighlightMatch, IconButton, type IconButtonProps, Input, InputGroup, InputGroupAddon, InputGroupButton, type InputGroupButtonProps, InputGroupInput, InputGroupText, InputGroupTextarea, type InputProps, KanbanColumn, KanbanColumnBody, KanbanColumnHeader, type KanbanColumnSize, KanbanColumnTitle, KanbanEmpty, KanbanViewport, Kbd, KbdGroup, Label, type LabelProps, LinkButton, type LinkButtonProps, LoadingOverlay, Menu, MenuContent, MenuItem, MenuTrigger, MetricCard, type MetricCardProps, MetricGrid, OtpInput, type OtpInputProps, PageHeader, PageHeaderActions, PageHeaderDescription, PageHeaderHeading, PageHeaderTitle, Pagination, type PaginationProps, Popover, PopoverContent, type PopoverContentProps, type PopoverProps, PopoverTrigger, QuantityInput, type QuantityInputProps, type SearchParamPrimitive, type SearchParamUpdates, type SearchParamValue, type SearchParamsInput, type SearchParamsRecord, SectionHeader, SectionHeaderActions, SectionHeaderDescription, SectionHeaderHeading, SectionHeaderTitle, Select, SelectContent, SelectItem, SelectList, SelectTrigger, SelectValue, SelectionToolbar, Separator, type SeparatorProps, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, type SheetPrimitiveProps, SheetTitle, SheetTrigger, type SheetTriggerPrimitiveProps, Sidebar, SidebarContent, SidebarContext, type SidebarContextValue, SidebarFooter, SidebarGroup, SidebarHeader, SidebarItem, type SidebarItemProps, SidebarMore, SidebarProvider, SidebarRail, SidebarSearch, SidebarSeparator, SidebarTrigger, Skeleton, SubmitButton, type SubmitButtonProps, Switch, type SwitchProps, type TabPanelProps, type TabProps, Table, TableBody, TableCaption, TableCell, TableEmpty, TableFooter, TableHead, TableHeader, TableLoading, TableRow, TableToolbar, Tabs, TabsContent, TabsList, TabsPanels, type TabsProps, TabsTrigger, type TextMatchPart, Textarea, type TextareaProps, Toast, type ToastAction, type ToastData, type ToastOptions, type ToastPosition, ToastProvider, type ToastVariant, ToastViewport, Toaster, Toolbar, ToolbarGroup, ToolbarSpacer, Tooltip, TooltipContent, type TooltipProps, TooltipTrigger, type UseAutosaveOptions, type UseFormDirtyResult, actionRipple, alertVariants, badgeVariants, buttonGroupVariants, buttonVariants, cn, emptyStateMediaVariants, fieldVariants, formSnapshot, getTextMatchParts, inputGroupAddonVariants, readSearchParam, readSearchParamArray, readSearchParamEnum, readSearchParamInt, toSearchParams, toast, updateSearchParams, useAsyncAction, useAutosave, useClipboard, useDebouncedValue, useFormDirty, useFormFeedback, useSidebar, useToast };