@mirror-physics/fractal-ui 0.2.0-next.5 → 0.2.0-next.51

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
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { ReactNode } from 'react';
2
+ import { HTMLAttributes, ReactNode, CSSProperties } from 'react';
3
3
  import { ClassValue } from 'clsx';
4
4
 
5
5
  type ButtonType = 'primary' | 'secondary' | 'ghost' | 'danger';
@@ -21,6 +21,48 @@ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
21
21
  }
22
22
  declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
23
23
 
24
+ interface CodeBlockProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'onChange'> {
25
+ /** Code or structured text displayed by the component. */
26
+ value: string;
27
+ /** Language name or common alias, such as `json`, `typescript`, `python`, or `bash`. */
28
+ language?: string;
29
+ /** Optional file name. Used for display and language detection when `language` is omitted. */
30
+ fileName?: string;
31
+ /** Optional title shown in the toolbar. */
32
+ label?: ReactNode;
33
+ /** Enables editing. Read-only viewer mode is the default. */
34
+ editable?: boolean;
35
+ /** Called when an editable block changes. */
36
+ onChange?: (value: string) => void;
37
+ /** Shows line numbers and a fold gutter. */
38
+ lineNumbers?: boolean;
39
+ /** Wraps long lines instead of requiring horizontal scrolling. */
40
+ wrap?: boolean;
41
+ /** Shows a copy action in the toolbar. */
42
+ copyable?: boolean;
43
+ /** Accessible name for the editing or viewing surface. */
44
+ ariaLabel?: string;
45
+ /** CodeMirror height constraints. Any valid CSS length is accepted. */
46
+ height?: string;
47
+ minHeight?: string;
48
+ maxHeight?: string;
49
+ placeholder?: string;
50
+ autoFocus?: boolean;
51
+ }
52
+ declare function CodeBlock({ value, language, fileName, label, editable, onChange, lineNumbers, wrap, copyable, ariaLabel, height, minHeight, maxHeight, placeholder, autoFocus, className, ...props }: CodeBlockProps): React.JSX.Element;
53
+
54
+ interface BreadcrumbItem {
55
+ label: React.ReactNode;
56
+ href?: string;
57
+ onClick?: React.MouseEventHandler<HTMLAnchorElement>;
58
+ }
59
+ interface BreadcrumbsProps extends Omit<React.HTMLAttributes<HTMLElement>, 'children'> {
60
+ items: BreadcrumbItem[];
61
+ ariaLabel?: string;
62
+ separator?: React.ReactNode;
63
+ }
64
+ declare function Breadcrumbs({ items, ariaLabel, separator, className, ...props }: BreadcrumbsProps): React.JSX.Element | null;
65
+
24
66
  declare const Card: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
25
67
  declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
26
68
  declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
@@ -60,6 +102,17 @@ interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
60
102
  }
61
103
  declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
62
104
 
105
+ interface NumberInputProps extends Omit<InputProps, 'type'> {
106
+ unit?: string;
107
+ }
108
+ declare function NumberInput({ unit, className, value, defaultValue, disabled, readOnly, min, max, ...props }: NumberInputProps): React.JSX.Element;
109
+
110
+ interface PasswordInputProps extends Omit<InputProps, 'type'> {
111
+ showPasswordLabel?: string;
112
+ hidePasswordLabel?: string;
113
+ }
114
+ declare const PasswordInput: React.ForwardRefExoticComponent<PasswordInputProps & React.RefAttributes<HTMLInputElement>>;
115
+
63
116
  interface LabelProps extends React.LabelHTMLAttributes<HTMLLabelElement> {
64
117
  }
65
118
  declare const Label: React.ForwardRefExoticComponent<LabelProps & React.RefAttributes<HTMLLabelElement>>;
@@ -94,11 +147,18 @@ interface ModalProps {
94
147
  footer?: React.ReactNode;
95
148
  /** When true, prevents closing via overlay click or Escape. */
96
149
  noClose?: boolean;
150
+ /** Keeps the close control visible but disables every dismissal route. */
151
+ closeDisabled?: boolean;
97
152
  /** Modal width: 'sm' (420px), 'md' (756px), 'lg' (near-fullscreen). */
98
153
  size?: 'sm' | 'md' | 'lg';
154
+ /** Replaces the body with a whole-surface loading state while retaining the modal chrome. */
155
+ loading?: boolean;
156
+ loadingLabel?: string;
157
+ /** Constrains the modal to the viewport, scrolls the body, and separates the fixed footer with a full-width divider. */
158
+ scrollable?: boolean;
99
159
  className?: string;
100
160
  }
101
- declare function Modal({ open, onClose, title, children, danger, warn, footer, noClose, size, className }: ModalProps): React.ReactPortal | null;
161
+ declare function Modal({ open, onClose, title, children, danger, warn, footer, noClose, closeDisabled, size, loading, loadingLabel, scrollable, className }: ModalProps): React.ReactPortal | null;
102
162
 
103
163
  interface DataTableColumn<T> {
104
164
  key: string;
@@ -133,6 +193,8 @@ interface DropdownProps {
133
193
  align?: 'left' | 'right';
134
194
  triggerContent?: React.ReactNode;
135
195
  label?: React.ReactNode;
196
+ /** Renders the trigger as a square icon button. Requires an accessible triggerLabel. */
197
+ iconOnly?: boolean;
136
198
  noChevron?: boolean;
137
199
  size?: 'sm' | 'md';
138
200
  triggerVariant?: 'outline' | 'tertiary';
@@ -140,8 +202,9 @@ interface DropdownProps {
140
202
  triggerClassName?: string;
141
203
  panelClassName?: string;
142
204
  closeOnSelect?: boolean;
205
+ disabled?: boolean;
143
206
  }
144
- declare function Dropdown({ items, selectedValue, onSelect, triggerLabel, direction, align, triggerContent, label, noChevron, size, triggerVariant, className, triggerClassName, panelClassName, closeOnSelect, }: DropdownProps): React.JSX.Element | null;
207
+ declare function Dropdown({ items, selectedValue, onSelect, triggerLabel, direction, align, triggerContent, label, iconOnly, noChevron, size, triggerVariant, className, triggerClassName, panelClassName, closeOnSelect, disabled, }: DropdownProps): React.JSX.Element | null;
145
208
 
146
209
  type LinkTheme = 'default' | 'muted' | 'accent';
147
210
  type LinkSize = 'sm' | 'md' | 'lg';
@@ -157,7 +220,18 @@ interface ChipProps extends React.HTMLAttributes<HTMLSpanElement> {
157
220
  }
158
221
  declare const Chip: React.ForwardRefExoticComponent<ChipProps & React.RefAttributes<HTMLSpanElement>>;
159
222
 
223
+ interface CheckboxProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'onChange'> {
224
+ checked: boolean;
225
+ indeterminate?: boolean;
226
+ onCheckedChange: (checked: boolean) => void;
227
+ }
228
+ declare function Checkbox({ checked, indeterminate, onCheckedChange, className, disabled, onClick, onKeyDown, ...props }: CheckboxProps): React.JSX.Element;
229
+
160
230
  type SortDirection = 'asc' | 'desc' | null;
231
+ interface SortableTableDefaultSort {
232
+ key: string;
233
+ direction: Exclude<SortDirection, null>;
234
+ }
161
235
  interface SortableTableColumn<T> {
162
236
  key: string;
163
237
  header: string;
@@ -167,13 +241,22 @@ interface SortableTableColumn<T> {
167
241
  render: (row: T, index: number) => ReactNode;
168
242
  align?: 'left' | 'right';
169
243
  }
244
+ interface SortableTableRowAction<T> {
245
+ label: (row: T, index: number) => string;
246
+ icon: (row: T, index: number) => ReactNode;
247
+ }
170
248
  interface SortableTableProps<T> {
171
249
  columns: SortableTableColumn<T>[];
172
250
  data: T[];
173
251
  emptyMessage?: string;
174
252
  header?: ReactNode;
175
253
  size?: 'sm' | 'md' | 'lg';
254
+ /** Removes the table's outer border and radius for use inside another framed surface. */
255
+ embedded?: boolean;
176
256
  className?: string;
257
+ /** Required baseline row ordering that does not appear as an active user sort. */
258
+ defaultSort: SortableTableDefaultSort;
259
+ /** Initial visible user sort state. */
177
260
  defaultSortKey?: string;
178
261
  defaultSortDirection?: SortDirection;
179
262
  sortKey?: string | null;
@@ -182,8 +265,10 @@ interface SortableTableProps<T> {
182
265
  highlightRow?: (row: T, index: number) => boolean;
183
266
  /** Invoked when a row is selected. Enables pointer and keyboard row activation. */
184
267
  onRowClick?: (row: T, index: number) => void;
268
+ /** Directional affordance displayed over the right edge of an interactive row. */
269
+ rowAction?: SortableTableRowAction<T>;
185
270
  }
186
- declare function SortableTable<T>({ columns, data, emptyMessage, header, size, className, defaultSortKey, defaultSortDirection, sortKey: controlledKey, sortDirection: controlledDirection, onSortChange, highlightRow, onRowClick, }: SortableTableProps<T>): React.JSX.Element;
271
+ declare function SortableTable<T>({ columns, data, emptyMessage, header, size, embedded, className, defaultSort, defaultSortKey, defaultSortDirection, sortKey: controlledKey, sortDirection: controlledDirection, onSortChange, highlightRow, onRowClick, rowAction, }: SortableTableProps<T>): React.JSX.Element;
187
272
 
188
273
  interface TabItem {
189
274
  id: string;
@@ -191,6 +276,7 @@ interface TabItem {
191
276
  content: ReactNode;
192
277
  disabled?: boolean;
193
278
  }
279
+ type TabsVariant = 'line' | 'surface';
194
280
  interface TabsProps {
195
281
  items: TabItem[];
196
282
  defaultValue?: string;
@@ -198,8 +284,27 @@ interface TabsProps {
198
284
  onValueChange?: (id: string) => void;
199
285
  className?: string;
200
286
  ariaLabel?: string;
287
+ /** Extends a subtle divider across the entire tab list. */
288
+ divider?: boolean;
289
+ /** Visual treatment. Surface tabs sit on a full-width secondary surface with the active tab connected to its panel. */
290
+ variant?: TabsVariant;
201
291
  }
202
- declare function Tabs({ items, defaultValue, value: controlledValue, onValueChange, className, ariaLabel, }: TabsProps): React.JSX.Element;
292
+ declare function Tabs({ items, defaultValue, value: controlledValue, onValueChange, className, ariaLabel, divider, variant, }: TabsProps): React.JSX.Element;
293
+
294
+ interface ContentSwitcherItem {
295
+ value: string;
296
+ label: React.ReactNode;
297
+ disabled?: boolean;
298
+ }
299
+ interface ContentSwitcherProps {
300
+ items: ContentSwitcherItem[];
301
+ value: string;
302
+ onValueChange: (value: string) => void;
303
+ ariaLabel: string;
304
+ fullWidth?: boolean;
305
+ className?: string;
306
+ }
307
+ declare function ContentSwitcher({ items, value, onValueChange, ariaLabel, fullWidth, className }: ContentSwitcherProps): React.JSX.Element;
203
308
 
204
309
  interface DisclosureProps {
205
310
  title: ReactNode;
@@ -208,18 +313,136 @@ interface DisclosureProps {
208
313
  defaultOpen?: boolean;
209
314
  open?: boolean;
210
315
  onOpenChange?: (open: boolean) => void;
316
+ disabled?: boolean;
211
317
  className?: string;
212
318
  variant?: 'card' | 'plain';
213
319
  }
214
- declare function Disclosure({ title, meta, children, defaultOpen, open: controlledOpen, onOpenChange, className, variant, }: DisclosureProps): React.JSX.Element;
320
+ declare function Disclosure({ title, meta, children, defaultOpen, open: controlledOpen, onOpenChange, disabled, className, variant, }: DisclosureProps): React.JSX.Element;
321
+
322
+ interface LatticeLoaderProps extends HTMLAttributes<HTMLSpanElement> {
323
+ label?: string;
324
+ }
325
+ declare function LatticeLoader({ className, label, ...props }: LatticeLoaderProps): React.JSX.Element;
326
+
327
+ type UILoaderTone = 'neutral' | 'blue' | 'green';
328
+ interface UILoaderProps {
329
+ /** Visual height. Width follows the mark's aspect ratio. */
330
+ size?: number | string;
331
+ tone?: UILoaderTone;
332
+ className?: string;
333
+ style?: CSSProperties;
334
+ label?: string;
335
+ /** Use when another nearby element already announces loading. */
336
+ ariaHidden?: boolean;
337
+ }
338
+ /** A branded shine loader for whole UI surfaces, not component-level content. */
339
+ declare function UILoader({ size, tone, className, style, label, ariaHidden }: UILoaderProps): React.JSX.Element;
340
+
341
+ type GhostLength = number | string;
342
+ interface GhostProps extends HTMLAttributes<HTMLDivElement> {
343
+ /** Width of the placeholder. Numbers are interpreted as pixels. */
344
+ width?: GhostLength;
345
+ /** Height of the placeholder. Numbers are interpreted as pixels. */
346
+ height?: GhostLength;
347
+ /** Border radius override. */
348
+ radius?: GhostLength;
349
+ }
350
+ interface GhostLineProps extends Omit<GhostProps, 'height'> {
351
+ /** Text-line size. */
352
+ size?: 'sm' | 'md' | 'lg';
353
+ }
354
+ /**
355
+ * An intentionally content-free, shimmering placeholder. Use the composed
356
+ * ghosts below for standard Fractal components; use this primitive for custom
357
+ * product layouts.
358
+ */
359
+ declare function Ghost({ className, width, height, radius, style, ...props }: GhostProps): React.JSX.Element;
360
+ declare function GhostLine({ className, size, width, ...props }: GhostLineProps): React.JSX.Element;
361
+ interface ButtonGhostProps extends Omit<GhostProps, 'height'> {
362
+ size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
363
+ iconOnly?: boolean;
364
+ }
365
+ declare function ButtonGhost({ className, size, iconOnly, width, ...props }: ButtonGhostProps): React.JSX.Element;
366
+ interface CardGhostProps extends HTMLAttributes<HTMLDivElement> {
367
+ lines?: number;
368
+ showHeader?: boolean;
369
+ }
370
+ declare function CardGhost({ className, lines, showHeader, ...props }: CardGhostProps): React.JSX.Element;
371
+ interface DataTableGhostProps extends HTMLAttributes<HTMLDivElement> {
372
+ /** Display placeholder cells for a header that is itself still loading. */
373
+ showHeader?: boolean;
374
+ /** Static header labels to retain while only rows are loading. */
375
+ headers?: ReactNode[];
376
+ /** Number of column placeholders. */
377
+ columns?: number;
378
+ /** Number of data row placeholders. */
379
+ rows?: number;
380
+ /** Optional CSS widths mirroring the eventual table columns. */
381
+ columnWidths?: string[];
382
+ size?: 'sm' | 'md' | 'lg';
383
+ }
384
+ declare function DataTableGhost({ className, showHeader, headers, columns, rows, columnWidths, size, ...props }: DataTableGhostProps): React.JSX.Element;
385
+ interface FormFieldGhostProps extends HTMLAttributes<HTMLDivElement> {
386
+ labelWidth?: GhostLength;
387
+ multiline?: boolean;
388
+ }
389
+ declare function InputGhost({ className, labelWidth, ...props }: FormFieldGhostProps): React.JSX.Element;
390
+ declare function TextareaGhost({ className, labelWidth, ...props }: FormFieldGhostProps): React.JSX.Element;
391
+ declare function LabelGhost({ className, width, ...props }: Omit<GhostLineProps, 'size'>): React.JSX.Element;
392
+ declare function AlertGhost({ className, ...props }: HTMLAttributes<HTMLDivElement>): React.JSX.Element;
393
+ declare function CheckboxGhost({ className, ...props }: HTMLAttributes<HTMLDivElement>): React.JSX.Element;
394
+ declare const ToggleGhost: typeof CheckboxGhost;
395
+ declare function ChipGhost({ className, width, ...props }: Omit<GhostProps, 'height'>): React.JSX.Element;
396
+ declare function LinkGhost({ className, width, ...props }: Omit<GhostLineProps, 'size'>): React.JSX.Element;
397
+ declare const TextButtonGhost: typeof LinkGhost;
398
+ declare function DropdownGhost({ className, ...props }: HTMLAttributes<HTMLDivElement>): React.JSX.Element;
399
+ declare function ContentSwitcherGhost({ className, options, ...props }: HTMLAttributes<HTMLDivElement> & {
400
+ options?: number;
401
+ }): React.JSX.Element;
402
+ declare const TabsGhost: typeof ContentSwitcherGhost;
403
+ declare function DisclosureGhost({ className, ...props }: HTMLAttributes<HTMLDivElement>): React.JSX.Element;
404
+ declare function PaginationGhost({ className, pages, ...props }: HTMLAttributes<HTMLDivElement> & {
405
+ pages?: number;
406
+ }): React.JSX.Element;
407
+ declare function FileDropzoneGhost({ className, ...props }: HTMLAttributes<HTMLDivElement>): React.JSX.Element;
408
+ declare function PromptCardGhost({ className, ...props }: HTMLAttributes<HTMLDivElement>): React.JSX.Element;
409
+ type ConversationGhostProps = HTMLAttributes<HTMLDivElement>;
410
+ declare function ConversationGhost({ className, 'aria-label': ariaLabel, ...props }: ConversationGhostProps): React.JSX.Element;
411
+ declare function SortableTableGhost(props: DataTableGhostProps): React.JSX.Element;
412
+ interface SidebarGhostProps extends HTMLAttributes<HTMLDivElement> {
413
+ items?: number;
414
+ }
415
+ declare function SidebarGhost({ className, items, ...props }: SidebarGhostProps): React.JSX.Element;
416
+ interface SurfaceGhostProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
417
+ title?: ReactNode;
418
+ lines?: number;
419
+ }
420
+ declare function ModalGhost({ className, title, lines, ...props }: SurfaceGhostProps): React.JSX.Element;
421
+ declare function SidePanelGhost({ className, title, lines, ...props }: SurfaceGhostProps): React.JSX.Element;
215
422
 
216
423
  interface SidebarProps extends React.HTMLAttributes<HTMLElement> {
217
424
  /** Fixed sidebar width. Defaults to the standard application width. */
218
425
  width?: string;
426
+ /** Collapses the sidebar to an icon rail until it is hovered or receives focus. */
427
+ compact?: boolean;
219
428
  }
220
429
  declare const Sidebar: React.ForwardRefExoticComponent<SidebarProps & React.RefAttributes<HTMLElement>>;
221
430
  declare const SidebarHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
222
431
  declare const SidebarBrand: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
432
+ interface SidebarAccountMenuProps {
433
+ /** Person or workspace label shown in the sidebar header. */
434
+ name: string;
435
+ /** Available account actions. */
436
+ items: DropdownItem[];
437
+ /** Invoked when an account action is selected. */
438
+ onSelect: (value: string) => void;
439
+ /** Accessible label for the account actions menu. */
440
+ triggerLabel?: string;
441
+ /** Leading profile or workspace mark. */
442
+ icon?: React.ReactNode;
443
+ className?: string;
444
+ }
445
+ declare function SidebarAccountMenu({ name, items, onSelect, triggerLabel, icon, className, }: SidebarAccountMenuProps): React.JSX.Element;
223
446
  declare const SidebarNav: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
224
447
  declare const SidebarSection: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
225
448
  interface SidebarNavItemProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
@@ -233,16 +456,6 @@ interface SidebarNavItemProps extends React.ButtonHTMLAttributes<HTMLButtonEleme
233
456
  declare const SidebarNavItem: React.ForwardRefExoticComponent<SidebarNavItemProps & React.RefAttributes<HTMLButtonElement>>;
234
457
  declare const SidebarFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
235
458
 
236
- interface PageHeaderProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title'> {
237
- /** The page's primary title. */
238
- title: React.ReactNode;
239
- /** Optional supporting context for the page. */
240
- description?: React.ReactNode;
241
- /** Right-aligned action slot. Place secondary actions before the primary action. */
242
- actions?: React.ReactNode;
243
- }
244
- declare const PageHeader: React.ForwardRefExoticComponent<PageHeaderProps & React.RefAttributes<HTMLDivElement>>;
245
-
246
459
  interface SidePanelProps {
247
460
  open: boolean;
248
461
  onClose: () => void;
@@ -250,16 +463,56 @@ interface SidePanelProps {
250
463
  description?: React.ReactNode;
251
464
  children: React.ReactNode;
252
465
  footer?: React.ReactNode;
253
- /** Panel width: sm (420px), md (540px), or lg (680px). */
254
- size?: 'sm' | 'md' | 'lg';
466
+ /** Panel width: sm (420px), md (540px), lg (680px), or xl (960px). */
467
+ size?: 'sm' | 'md' | 'lg' | 'xl';
468
+ /** Replaces the body with a whole-surface loading state while retaining the panel header. */
469
+ loading?: boolean;
470
+ loadingLabel?: string;
255
471
  className?: string;
256
472
  }
257
- declare function SidePanel({ open, onClose, title, description, children, footer, size, className }: SidePanelProps): React.ReactPortal | null;
473
+ declare function SidePanel({ open, onClose, title, description, children, footer, size, loading, loadingLabel, className }: SidePanelProps): React.ReactPortal | null;
258
474
 
259
475
  interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
260
476
  }
261
477
  declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
262
478
 
479
+ type TextButtonSize = 'sm' | 'md';
480
+ type TextButtonIconPosition = 'start' | 'end';
481
+ type TextButtonTone = 'primary' | 'secondary';
482
+ interface TextButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
483
+ icon?: React.ReactNode;
484
+ iconPosition?: TextButtonIconPosition;
485
+ size?: TextButtonSize;
486
+ tone?: TextButtonTone;
487
+ }
488
+ declare const TextButton: React.ForwardRefExoticComponent<TextButtonProps & React.RefAttributes<HTMLButtonElement>>;
489
+
490
+ interface FileDropzoneProps {
491
+ files: File[];
492
+ onFilesChange: (files: File[]) => void;
493
+ accept?: string;
494
+ multiple?: boolean;
495
+ disabled?: boolean;
496
+ title?: React.ReactNode;
497
+ description?: React.ReactNode;
498
+ className?: string;
499
+ }
500
+ declare function FileDropzone({ files, onFilesChange, accept, multiple, disabled, title, description, className, }: FileDropzoneProps): React.JSX.Element;
501
+
502
+ interface PaginationProps {
503
+ /** One-based active page. */
504
+ page: number;
505
+ pageSize: number;
506
+ totalItems: number;
507
+ onPageChange: (page: number) => void;
508
+ /** Optional page sizes, rendered as an unframed selector in the pagination footer. */
509
+ pageSizeOptions?: number[];
510
+ onPageSizeChange?: (pageSize: number) => void;
511
+ ariaLabel?: string;
512
+ className?: string;
513
+ }
514
+ declare function Pagination({ page, pageSize, totalItems, onPageChange, pageSizeOptions, onPageSizeChange, ariaLabel, className, }: PaginationProps): React.JSX.Element;
515
+
263
516
  /**
264
517
  * Register an Escape-key dismiss handler with the global priority stack.
265
518
  *
@@ -271,4 +524,4 @@ declare function useEscapeDismiss(priority: number, handler: () => void, enabled
271
524
 
272
525
  declare function cn(...inputs: ClassValue[]): string;
273
526
 
274
- export { Alert, AlertDescription, AlertTitle, Button, type ButtonColor, type ButtonProps, type ButtonSize, type ButtonType, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Chip, type ChipProps, type ChipTone, DataTable, type DataTableColumn, type DataTableProps, Disclosure, type DisclosureProps, Dropdown, type DropdownItem, type DropdownProps, FeatureCard, type FeatureCardProps, FolderCard, type FolderCardProps, Input, type InputProps, Label, type LabelProps, Link, type LinkProps, type LinkSize, type LinkTheme, Modal, type ModalProps, PageHeader, type PageHeaderProps, PromptCard, type PromptCardProps, type PromptCardTone, PromptGrid, type PromptGridProps, SidePanel, type SidePanelProps, Sidebar, SidebarBrand, SidebarFooter, SidebarHeader, SidebarNav, SidebarNavItem, type SidebarNavItemProps, type SidebarProps, SidebarSection, type SortDirection, SortableTable, type SortableTableColumn, type SortableTableProps, type TabItem, Tabs, type TabsProps, Textarea, type TextareaProps, Toggle, type ToggleProps, cn, useEscapeDismiss };
527
+ export { Alert, AlertDescription, AlertGhost, AlertTitle, type BreadcrumbItem, Breadcrumbs, type BreadcrumbsProps, Button, type ButtonColor, ButtonGhost, type ButtonGhostProps, type ButtonProps, type ButtonSize, type ButtonType, Card, CardContent, CardDescription, CardFooter, CardGhost, type CardGhostProps, CardHeader, CardTitle, Checkbox, CheckboxGhost, type CheckboxProps, Chip, ChipGhost, type ChipProps, type ChipTone, CodeBlock, type CodeBlockProps, ContentSwitcher, ContentSwitcherGhost, type ContentSwitcherItem, type ContentSwitcherProps, ConversationGhost, type ConversationGhostProps, DataTable, type DataTableColumn, DataTableGhost, type DataTableGhostProps, type DataTableProps, Disclosure, DisclosureGhost, type DisclosureProps, Dropdown, DropdownGhost, type DropdownItem, type DropdownProps, FeatureCard, type FeatureCardProps, FileDropzone, FileDropzoneGhost, type FileDropzoneProps, FolderCard, type FolderCardProps, type FormFieldGhostProps, Ghost, GhostLine, type GhostLineProps, type GhostProps, Input, InputGhost, type InputProps, Label, LabelGhost, type LabelProps, LatticeLoader, type LatticeLoaderProps, Link, LinkGhost, type LinkProps, type LinkSize, type LinkTheme, Modal, ModalGhost, type ModalProps, NumberInput, type NumberInputProps, Pagination, PaginationGhost, type PaginationProps, PasswordInput, type PasswordInputProps, PromptCard, PromptCardGhost, type PromptCardProps, type PromptCardTone, PromptGrid, type PromptGridProps, SidePanel, SidePanelGhost, type SidePanelProps, Sidebar, SidebarAccountMenu, type SidebarAccountMenuProps, SidebarBrand, SidebarFooter, SidebarGhost, type SidebarGhostProps, SidebarHeader, SidebarNav, SidebarNavItem, type SidebarNavItemProps, type SidebarProps, SidebarSection, type SortDirection, SortableTable, type SortableTableColumn, type SortableTableDefaultSort, SortableTableGhost, type SortableTableProps, type SortableTableRowAction, type SurfaceGhostProps, type TabItem, Tabs, TabsGhost, type TabsProps, type TabsVariant, TextButton, TextButtonGhost, type TextButtonIconPosition, type TextButtonProps, type TextButtonSize, type TextButtonTone, Textarea, TextareaGhost, type TextareaProps, Toggle, ToggleGhost, type ToggleProps, UILoader, type UILoaderProps, type UILoaderTone, cn, useEscapeDismiss };