@mirror-physics/fractal-ui 0.2.0-next.76 → 0.2.0-next.78
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 +31 -0
- package/dist/chunk-QZX655IA.js +344 -0
- package/dist/chunk-QZX655IA.js.map +1 -0
- package/dist/column-editor.cjs +382 -0
- package/dist/column-editor.cjs.map +1 -0
- package/dist/column-editor.css +36 -0
- package/dist/column-editor.css.map +1 -0
- package/dist/column-editor.d.cts +20 -0
- package/dist/column-editor.d.ts +20 -0
- package/dist/column-editor.js +7 -0
- package/dist/column-editor.js.map +1 -0
- package/dist/index.cjs +854 -293
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +461 -39
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +51 -8
- package/dist/index.d.ts +51 -8
- package/dist/index.js +722 -496
- package/dist/index.js.map +1 -1
- package/dist/tokens.css +34 -0
- package/package.json +10 -3
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { HTMLAttributes, ReactNode, CSSProperties } from 'react';
|
|
3
3
|
import { ClassValue } from 'clsx';
|
|
4
|
+
export { ColumnEditor, ColumnEditorItem, ColumnEditorProps } from './column-editor.cjs';
|
|
4
5
|
|
|
5
6
|
/** Shared density scale for single-line controls and their labels. */
|
|
6
7
|
type ControlSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
@@ -226,13 +227,48 @@ interface ModalProps {
|
|
|
226
227
|
}
|
|
227
228
|
declare function Modal({ open, onClose, title, children, danger, warn, footer, noClose, closeDisabled, size, loading, loadingLabel, scrollable, className }: ModalProps): React.ReactPortal | null;
|
|
228
229
|
|
|
229
|
-
interface
|
|
230
|
+
interface TableOverflowMenuItem {
|
|
231
|
+
value: string;
|
|
232
|
+
label: string;
|
|
233
|
+
icon?: ReactNode;
|
|
234
|
+
disabled?: boolean;
|
|
235
|
+
}
|
|
236
|
+
interface TableOverflowMenuConfig<T> {
|
|
237
|
+
items: (row: T, index: number) => TableOverflowMenuItem[];
|
|
238
|
+
onSelect: (value: string, row: T, index: number) => void;
|
|
239
|
+
getLabel?: (row: T, index: number) => string;
|
|
240
|
+
isDisabled?: (row: T, index: number) => boolean;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
interface TableColumnSizing {
|
|
244
|
+
/** Preferred column width. Percentage widths require layout="fill". */
|
|
245
|
+
width?: string;
|
|
246
|
+
/** Minimum content width, including cell padding. */
|
|
247
|
+
minWidth?: number | string;
|
|
248
|
+
/** Maximum content width, including cell padding. Defaults adapt to the table container. */
|
|
249
|
+
maxWidth?: number | string;
|
|
250
|
+
}
|
|
251
|
+
interface TableLayoutProps {
|
|
252
|
+
/** Defaults to fill: distribute spare width across content-sized columns; overflow at their preferred widths. Content opts out of expansion. */
|
|
253
|
+
layout?: 'content' | 'fill';
|
|
254
|
+
/** Keeps column headers at the top of this table's scroll viewport. */
|
|
255
|
+
stickyHeader?: boolean;
|
|
256
|
+
/** Keeps the first data column (and selection column, if present) visible. */
|
|
257
|
+
stickyFirstColumn?: boolean;
|
|
258
|
+
/** Bounds vertical scrolling. Required for sticky headers during vertical scrolling. */
|
|
259
|
+
maxHeight?: number | string;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
interface DataTableColumn<T> extends TableColumnSizing {
|
|
230
263
|
key: string;
|
|
231
264
|
header: string;
|
|
232
265
|
width?: string;
|
|
233
266
|
render: (row: T, index: number) => ReactNode;
|
|
234
267
|
}
|
|
235
|
-
interface DataTableProps<T> {
|
|
268
|
+
interface DataTableProps<T> extends TableLayoutProps {
|
|
269
|
+
'aria-label'?: string;
|
|
270
|
+
/** Adds a trailing, sticky row-actions column with an overflow menu. */
|
|
271
|
+
overflowMenu?: TableOverflowMenuConfig<T>;
|
|
236
272
|
columns: DataTableColumn<T>[];
|
|
237
273
|
data: T[];
|
|
238
274
|
emptyMessage?: string;
|
|
@@ -240,7 +276,7 @@ interface DataTableProps<T> {
|
|
|
240
276
|
size?: 'sm' | 'md' | 'lg';
|
|
241
277
|
className?: string;
|
|
242
278
|
}
|
|
243
|
-
declare function DataTable<T>({ columns, data, emptyMessage, header, size, className }: DataTableProps<T>): React.JSX.Element;
|
|
279
|
+
declare function DataTable<T>({ columns, data, emptyMessage, header, size, className, overflowMenu, layout, stickyHeader, stickyFirstColumn, maxHeight, 'aria-label': ariaLabel }: DataTableProps<T>): React.JSX.Element;
|
|
244
280
|
|
|
245
281
|
interface DropdownItem {
|
|
246
282
|
value: string;
|
|
@@ -256,7 +292,12 @@ interface DropdownProps {
|
|
|
256
292
|
onSelect: (value: string) => void;
|
|
257
293
|
triggerLabel?: string;
|
|
258
294
|
direction?: 'up' | 'down' | 'left' | 'right';
|
|
295
|
+
/** Preferred alignment; shifted as needed to stay inside visible bounds. */
|
|
259
296
|
align?: 'left' | 'right';
|
|
297
|
+
/** Maximum menu height in pixels, further limited by available space. Default: 320. */
|
|
298
|
+
maxHeight?: number;
|
|
299
|
+
/** Minimum inset from the viewport and clipping ancestors in pixels. Default: 8. */
|
|
300
|
+
collisionPadding?: number;
|
|
260
301
|
/** Arranges the trigger content vertically without rotating the dropdown panel. */
|
|
261
302
|
triggerOrientation?: 'horizontal' | 'vertical';
|
|
262
303
|
triggerContent?: React.ReactNode;
|
|
@@ -277,7 +318,7 @@ interface DropdownProps {
|
|
|
277
318
|
closeOnSelect?: boolean;
|
|
278
319
|
disabled?: boolean;
|
|
279
320
|
}
|
|
280
|
-
declare function Dropdown({ items, selectedValue, onSelect, triggerLabel, direction, align, triggerOrientation, triggerContent, label, iconOnly, noChevron, size: sizeAlias, controlSize, triggerId, triggerVariant, className, triggerClassName, panelClassName, closeOnSelect, disabled, }: DropdownProps): React.JSX.Element | null;
|
|
321
|
+
declare function Dropdown({ items, selectedValue, onSelect, triggerLabel, direction, align, maxHeight, collisionPadding, triggerOrientation, triggerContent, label, iconOnly, noChevron, size: sizeAlias, controlSize, triggerId, triggerVariant, className, triggerClassName, panelClassName, closeOnSelect, disabled, }: DropdownProps): React.JSX.Element | null;
|
|
281
322
|
|
|
282
323
|
type LinkTheme = 'default' | 'muted' | 'accent';
|
|
283
324
|
type LinkSize = 'sm' | 'md' | 'lg';
|
|
@@ -312,7 +353,7 @@ interface SortableTableDefaultSort {
|
|
|
312
353
|
key: string;
|
|
313
354
|
direction: Exclude<SortDirection, null>;
|
|
314
355
|
}
|
|
315
|
-
interface SortableTableColumn<T> {
|
|
356
|
+
interface SortableTableColumn<T> extends TableColumnSizing {
|
|
316
357
|
key: string;
|
|
317
358
|
header: string;
|
|
318
359
|
width?: string;
|
|
@@ -344,7 +385,9 @@ interface SortableTablePagination {
|
|
|
344
385
|
page: number;
|
|
345
386
|
pageSize: number;
|
|
346
387
|
}
|
|
347
|
-
interface SortableTableProps<T> {
|
|
388
|
+
interface SortableTableProps<T> extends TableLayoutProps {
|
|
389
|
+
/** Adds a trailing, sticky row-actions column with an overflow menu. */
|
|
390
|
+
overflowMenu?: TableOverflowMenuConfig<T>;
|
|
348
391
|
columns: SortableTableColumn<T>[];
|
|
349
392
|
data: T[];
|
|
350
393
|
/** Accessible name applied to the underlying table element. */
|
|
@@ -382,7 +425,7 @@ interface SortableTableProps<T> {
|
|
|
382
425
|
/** Directional affordance displayed over the right edge of an interactive row. */
|
|
383
426
|
rowAction?: SortableTableRowAction<T>;
|
|
384
427
|
}
|
|
385
|
-
declare function SortableTable<T>({ columns, data, 'aria-label': ariaLabel, emptyMessage, header, size, embedded, className, defaultSort, defaultSortKey, defaultSortDirection, sortKey: controlledKey, sortDirection: controlledDirection, onSortChange, pagination, highlightRow, selection, isRowDisabled, isRowSelectionDisabled, onRowClick, onRowDoubleClick, rowAction, }: SortableTableProps<T>): React.JSX.Element;
|
|
428
|
+
declare function SortableTable<T>({ columns, data, 'aria-label': ariaLabel, emptyMessage, header, size, embedded, layout, stickyHeader, stickyFirstColumn, maxHeight, overflowMenu, className, defaultSort, defaultSortKey, defaultSortDirection, sortKey: controlledKey, sortDirection: controlledDirection, onSortChange, pagination, highlightRow, selection, isRowDisabled, isRowSelectionDisabled, onRowClick, onRowDoubleClick, rowAction, }: SortableTableProps<T>): React.JSX.Element;
|
|
386
429
|
|
|
387
430
|
interface TabItem {
|
|
388
431
|
id: string;
|
|
@@ -642,4 +685,4 @@ declare function useEscapeDismiss(priority: number, handler: () => void, enabled
|
|
|
642
685
|
|
|
643
686
|
declare function cn(...inputs: ClassValue[]): string;
|
|
644
687
|
|
|
645
|
-
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, type ControlSize, 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, Radio, type RadioProps, type RangeSliderProps, SidePanel, SidePanelGhost, type SidePanelProps, Sidebar, SidebarAccountMenu, type SidebarAccountMenuProps, SidebarBrand, SidebarFooter, SidebarGhost, type SidebarGhostProps, SidebarHeader, SidebarNav, SidebarNavItem, type SidebarNavItemProps, type SidebarProps, SidebarSection, type SingleSliderProps, Slider, type SliderProps, type SortDirection, SortableTable, type SortableTableColumn, type SortableTableDefaultSort, SortableTableGhost, type SortableTablePagination, type SortableTableProps, type SortableTableRowAction, type SortableTableSelection, type SurfaceGhostProps, type TabItem, TableSearch, type TableSearchProps, type TableSearchType, Tabs, TabsGhost, type TabsProps, type TabsVariant, TextButton, TextButtonGhost, type TextButtonIconPosition, type TextButtonProps, type TextButtonSize, type TextButtonTone, Textarea, TextareaGhost, type TextareaProps, Toast, type ToastPosition, type ToastProps, type ToastVariant, ToastViewport, type ToastViewportProps, Toggle, ToggleGhost, type ToggleProps, UILoader, type UILoaderProps, type UILoaderTone, cn, useEscapeDismiss };
|
|
688
|
+
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, type ControlSize, 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, Radio, type RadioProps, type RangeSliderProps, SidePanel, SidePanelGhost, type SidePanelProps, Sidebar, SidebarAccountMenu, type SidebarAccountMenuProps, SidebarBrand, SidebarFooter, SidebarGhost, type SidebarGhostProps, SidebarHeader, SidebarNav, SidebarNavItem, type SidebarNavItemProps, type SidebarProps, SidebarSection, type SingleSliderProps, Slider, type SliderProps, type SortDirection, SortableTable, type SortableTableColumn, type SortableTableDefaultSort, SortableTableGhost, type SortableTablePagination, type SortableTableProps, type SortableTableRowAction, type SortableTableSelection, type SurfaceGhostProps, type TabItem, type TableColumnSizing, type TableLayoutProps, type TableOverflowMenuConfig, type TableOverflowMenuItem, TableSearch, type TableSearchProps, type TableSearchType, Tabs, TabsGhost, type TabsProps, type TabsVariant, TextButton, TextButtonGhost, type TextButtonIconPosition, type TextButtonProps, type TextButtonSize, type TextButtonTone, Textarea, TextareaGhost, type TextareaProps, Toast, type ToastPosition, type ToastProps, type ToastVariant, ToastViewport, type ToastViewportProps, Toggle, ToggleGhost, type ToggleProps, UILoader, type UILoaderProps, type UILoaderTone, cn, useEscapeDismiss };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { HTMLAttributes, ReactNode, CSSProperties } from 'react';
|
|
3
3
|
import { ClassValue } from 'clsx';
|
|
4
|
+
export { ColumnEditor, ColumnEditorItem, ColumnEditorProps } from './column-editor.js';
|
|
4
5
|
|
|
5
6
|
/** Shared density scale for single-line controls and their labels. */
|
|
6
7
|
type ControlSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
@@ -226,13 +227,48 @@ interface ModalProps {
|
|
|
226
227
|
}
|
|
227
228
|
declare function Modal({ open, onClose, title, children, danger, warn, footer, noClose, closeDisabled, size, loading, loadingLabel, scrollable, className }: ModalProps): React.ReactPortal | null;
|
|
228
229
|
|
|
229
|
-
interface
|
|
230
|
+
interface TableOverflowMenuItem {
|
|
231
|
+
value: string;
|
|
232
|
+
label: string;
|
|
233
|
+
icon?: ReactNode;
|
|
234
|
+
disabled?: boolean;
|
|
235
|
+
}
|
|
236
|
+
interface TableOverflowMenuConfig<T> {
|
|
237
|
+
items: (row: T, index: number) => TableOverflowMenuItem[];
|
|
238
|
+
onSelect: (value: string, row: T, index: number) => void;
|
|
239
|
+
getLabel?: (row: T, index: number) => string;
|
|
240
|
+
isDisabled?: (row: T, index: number) => boolean;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
interface TableColumnSizing {
|
|
244
|
+
/** Preferred column width. Percentage widths require layout="fill". */
|
|
245
|
+
width?: string;
|
|
246
|
+
/** Minimum content width, including cell padding. */
|
|
247
|
+
minWidth?: number | string;
|
|
248
|
+
/** Maximum content width, including cell padding. Defaults adapt to the table container. */
|
|
249
|
+
maxWidth?: number | string;
|
|
250
|
+
}
|
|
251
|
+
interface TableLayoutProps {
|
|
252
|
+
/** Defaults to fill: distribute spare width across content-sized columns; overflow at their preferred widths. Content opts out of expansion. */
|
|
253
|
+
layout?: 'content' | 'fill';
|
|
254
|
+
/** Keeps column headers at the top of this table's scroll viewport. */
|
|
255
|
+
stickyHeader?: boolean;
|
|
256
|
+
/** Keeps the first data column (and selection column, if present) visible. */
|
|
257
|
+
stickyFirstColumn?: boolean;
|
|
258
|
+
/** Bounds vertical scrolling. Required for sticky headers during vertical scrolling. */
|
|
259
|
+
maxHeight?: number | string;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
interface DataTableColumn<T> extends TableColumnSizing {
|
|
230
263
|
key: string;
|
|
231
264
|
header: string;
|
|
232
265
|
width?: string;
|
|
233
266
|
render: (row: T, index: number) => ReactNode;
|
|
234
267
|
}
|
|
235
|
-
interface DataTableProps<T> {
|
|
268
|
+
interface DataTableProps<T> extends TableLayoutProps {
|
|
269
|
+
'aria-label'?: string;
|
|
270
|
+
/** Adds a trailing, sticky row-actions column with an overflow menu. */
|
|
271
|
+
overflowMenu?: TableOverflowMenuConfig<T>;
|
|
236
272
|
columns: DataTableColumn<T>[];
|
|
237
273
|
data: T[];
|
|
238
274
|
emptyMessage?: string;
|
|
@@ -240,7 +276,7 @@ interface DataTableProps<T> {
|
|
|
240
276
|
size?: 'sm' | 'md' | 'lg';
|
|
241
277
|
className?: string;
|
|
242
278
|
}
|
|
243
|
-
declare function DataTable<T>({ columns, data, emptyMessage, header, size, className }: DataTableProps<T>): React.JSX.Element;
|
|
279
|
+
declare function DataTable<T>({ columns, data, emptyMessage, header, size, className, overflowMenu, layout, stickyHeader, stickyFirstColumn, maxHeight, 'aria-label': ariaLabel }: DataTableProps<T>): React.JSX.Element;
|
|
244
280
|
|
|
245
281
|
interface DropdownItem {
|
|
246
282
|
value: string;
|
|
@@ -256,7 +292,12 @@ interface DropdownProps {
|
|
|
256
292
|
onSelect: (value: string) => void;
|
|
257
293
|
triggerLabel?: string;
|
|
258
294
|
direction?: 'up' | 'down' | 'left' | 'right';
|
|
295
|
+
/** Preferred alignment; shifted as needed to stay inside visible bounds. */
|
|
259
296
|
align?: 'left' | 'right';
|
|
297
|
+
/** Maximum menu height in pixels, further limited by available space. Default: 320. */
|
|
298
|
+
maxHeight?: number;
|
|
299
|
+
/** Minimum inset from the viewport and clipping ancestors in pixels. Default: 8. */
|
|
300
|
+
collisionPadding?: number;
|
|
260
301
|
/** Arranges the trigger content vertically without rotating the dropdown panel. */
|
|
261
302
|
triggerOrientation?: 'horizontal' | 'vertical';
|
|
262
303
|
triggerContent?: React.ReactNode;
|
|
@@ -277,7 +318,7 @@ interface DropdownProps {
|
|
|
277
318
|
closeOnSelect?: boolean;
|
|
278
319
|
disabled?: boolean;
|
|
279
320
|
}
|
|
280
|
-
declare function Dropdown({ items, selectedValue, onSelect, triggerLabel, direction, align, triggerOrientation, triggerContent, label, iconOnly, noChevron, size: sizeAlias, controlSize, triggerId, triggerVariant, className, triggerClassName, panelClassName, closeOnSelect, disabled, }: DropdownProps): React.JSX.Element | null;
|
|
321
|
+
declare function Dropdown({ items, selectedValue, onSelect, triggerLabel, direction, align, maxHeight, collisionPadding, triggerOrientation, triggerContent, label, iconOnly, noChevron, size: sizeAlias, controlSize, triggerId, triggerVariant, className, triggerClassName, panelClassName, closeOnSelect, disabled, }: DropdownProps): React.JSX.Element | null;
|
|
281
322
|
|
|
282
323
|
type LinkTheme = 'default' | 'muted' | 'accent';
|
|
283
324
|
type LinkSize = 'sm' | 'md' | 'lg';
|
|
@@ -312,7 +353,7 @@ interface SortableTableDefaultSort {
|
|
|
312
353
|
key: string;
|
|
313
354
|
direction: Exclude<SortDirection, null>;
|
|
314
355
|
}
|
|
315
|
-
interface SortableTableColumn<T> {
|
|
356
|
+
interface SortableTableColumn<T> extends TableColumnSizing {
|
|
316
357
|
key: string;
|
|
317
358
|
header: string;
|
|
318
359
|
width?: string;
|
|
@@ -344,7 +385,9 @@ interface SortableTablePagination {
|
|
|
344
385
|
page: number;
|
|
345
386
|
pageSize: number;
|
|
346
387
|
}
|
|
347
|
-
interface SortableTableProps<T> {
|
|
388
|
+
interface SortableTableProps<T> extends TableLayoutProps {
|
|
389
|
+
/** Adds a trailing, sticky row-actions column with an overflow menu. */
|
|
390
|
+
overflowMenu?: TableOverflowMenuConfig<T>;
|
|
348
391
|
columns: SortableTableColumn<T>[];
|
|
349
392
|
data: T[];
|
|
350
393
|
/** Accessible name applied to the underlying table element. */
|
|
@@ -382,7 +425,7 @@ interface SortableTableProps<T> {
|
|
|
382
425
|
/** Directional affordance displayed over the right edge of an interactive row. */
|
|
383
426
|
rowAction?: SortableTableRowAction<T>;
|
|
384
427
|
}
|
|
385
|
-
declare function SortableTable<T>({ columns, data, 'aria-label': ariaLabel, emptyMessage, header, size, embedded, className, defaultSort, defaultSortKey, defaultSortDirection, sortKey: controlledKey, sortDirection: controlledDirection, onSortChange, pagination, highlightRow, selection, isRowDisabled, isRowSelectionDisabled, onRowClick, onRowDoubleClick, rowAction, }: SortableTableProps<T>): React.JSX.Element;
|
|
428
|
+
declare function SortableTable<T>({ columns, data, 'aria-label': ariaLabel, emptyMessage, header, size, embedded, layout, stickyHeader, stickyFirstColumn, maxHeight, overflowMenu, className, defaultSort, defaultSortKey, defaultSortDirection, sortKey: controlledKey, sortDirection: controlledDirection, onSortChange, pagination, highlightRow, selection, isRowDisabled, isRowSelectionDisabled, onRowClick, onRowDoubleClick, rowAction, }: SortableTableProps<T>): React.JSX.Element;
|
|
386
429
|
|
|
387
430
|
interface TabItem {
|
|
388
431
|
id: string;
|
|
@@ -642,4 +685,4 @@ declare function useEscapeDismiss(priority: number, handler: () => void, enabled
|
|
|
642
685
|
|
|
643
686
|
declare function cn(...inputs: ClassValue[]): string;
|
|
644
687
|
|
|
645
|
-
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, type ControlSize, 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, Radio, type RadioProps, type RangeSliderProps, SidePanel, SidePanelGhost, type SidePanelProps, Sidebar, SidebarAccountMenu, type SidebarAccountMenuProps, SidebarBrand, SidebarFooter, SidebarGhost, type SidebarGhostProps, SidebarHeader, SidebarNav, SidebarNavItem, type SidebarNavItemProps, type SidebarProps, SidebarSection, type SingleSliderProps, Slider, type SliderProps, type SortDirection, SortableTable, type SortableTableColumn, type SortableTableDefaultSort, SortableTableGhost, type SortableTablePagination, type SortableTableProps, type SortableTableRowAction, type SortableTableSelection, type SurfaceGhostProps, type TabItem, TableSearch, type TableSearchProps, type TableSearchType, Tabs, TabsGhost, type TabsProps, type TabsVariant, TextButton, TextButtonGhost, type TextButtonIconPosition, type TextButtonProps, type TextButtonSize, type TextButtonTone, Textarea, TextareaGhost, type TextareaProps, Toast, type ToastPosition, type ToastProps, type ToastVariant, ToastViewport, type ToastViewportProps, Toggle, ToggleGhost, type ToggleProps, UILoader, type UILoaderProps, type UILoaderTone, cn, useEscapeDismiss };
|
|
688
|
+
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, type ControlSize, 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, Radio, type RadioProps, type RangeSliderProps, SidePanel, SidePanelGhost, type SidePanelProps, Sidebar, SidebarAccountMenu, type SidebarAccountMenuProps, SidebarBrand, SidebarFooter, SidebarGhost, type SidebarGhostProps, SidebarHeader, SidebarNav, SidebarNavItem, type SidebarNavItemProps, type SidebarProps, SidebarSection, type SingleSliderProps, Slider, type SliderProps, type SortDirection, SortableTable, type SortableTableColumn, type SortableTableDefaultSort, SortableTableGhost, type SortableTablePagination, type SortableTableProps, type SortableTableRowAction, type SortableTableSelection, type SurfaceGhostProps, type TabItem, type TableColumnSizing, type TableLayoutProps, type TableOverflowMenuConfig, type TableOverflowMenuItem, TableSearch, type TableSearchProps, type TableSearchType, Tabs, TabsGhost, type TabsProps, type TabsVariant, TextButton, TextButtonGhost, type TextButtonIconPosition, type TextButtonProps, type TextButtonSize, type TextButtonTone, Textarea, TextareaGhost, type TextareaProps, Toast, type ToastPosition, type ToastProps, type ToastVariant, ToastViewport, type ToastViewportProps, Toggle, ToggleGhost, type ToggleProps, UILoader, type UILoaderProps, type UILoaderTone, cn, useEscapeDismiss };
|