@onesaz/ui 0.3.1 → 0.3.3
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.ts +709 -2
- package/dist/index.js +4152 -624
- package/dist/index.js.map +1 -1
- package/package.json +6 -1
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,9 @@ import { ClassValue } from 'clsx';
|
|
|
5
5
|
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
6
6
|
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
7
7
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
8
|
+
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
9
|
+
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
10
|
+
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
8
11
|
|
|
9
12
|
interface ThemeProviderProps {
|
|
10
13
|
children: React.ReactNode;
|
|
@@ -188,6 +191,15 @@ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
188
191
|
size?: 'default' | 'sm' | 'lg' | 'icon';
|
|
189
192
|
}
|
|
190
193
|
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
194
|
+
interface IconButtonProps extends Omit<ButtonProps, 'size'> {
|
|
195
|
+
/** Size of the icon button */
|
|
196
|
+
size?: 'xs' | 'sm' | 'md' | 'lg';
|
|
197
|
+
/** Whether the button is rounded (circular) */
|
|
198
|
+
rounded?: boolean;
|
|
199
|
+
/** Aria label for accessibility (required for icon-only buttons) */
|
|
200
|
+
'aria-label': string;
|
|
201
|
+
}
|
|
202
|
+
declare const IconButton: React.ForwardRefExoticComponent<IconButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
191
203
|
|
|
192
204
|
interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
193
205
|
/** Input size variant */
|
|
@@ -201,6 +213,37 @@ interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
|
201
213
|
}
|
|
202
214
|
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
203
215
|
|
|
216
|
+
interface InputAdornmentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
217
|
+
/** Position of the adornment */
|
|
218
|
+
position?: 'start' | 'end';
|
|
219
|
+
/** Disable pointer events (useful for icons) */
|
|
220
|
+
disablePointerEvents?: boolean;
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* InputAdornment - A wrapper component for input adornments (icons, text, etc.)
|
|
224
|
+
*
|
|
225
|
+
* Can be used standalone or with Input/TextField components.
|
|
226
|
+
*
|
|
227
|
+
* @example
|
|
228
|
+
* ```tsx
|
|
229
|
+
* <Input
|
|
230
|
+
* startAdornment={
|
|
231
|
+
* <InputAdornment position="start">
|
|
232
|
+
* <SearchIcon className="h-4 w-4" />
|
|
233
|
+
* </InputAdornment>
|
|
234
|
+
* }
|
|
235
|
+
* />
|
|
236
|
+
*
|
|
237
|
+
* // Or with text
|
|
238
|
+
* <Input
|
|
239
|
+
* startAdornment={
|
|
240
|
+
* <InputAdornment position="start">$</InputAdornment>
|
|
241
|
+
* }
|
|
242
|
+
* />
|
|
243
|
+
* ```
|
|
244
|
+
*/
|
|
245
|
+
declare const InputAdornment: React.ForwardRefExoticComponent<InputAdornmentProps & React.RefAttributes<HTMLDivElement>>;
|
|
246
|
+
|
|
204
247
|
interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
205
248
|
}
|
|
206
249
|
declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
@@ -218,6 +261,10 @@ interface TextFieldProps extends Omit<InputProps, 'inputSize' | 'size'> {
|
|
|
218
261
|
size?: 'sm' | 'md' | 'lg';
|
|
219
262
|
/** Full width mode */
|
|
220
263
|
fullWidth?: boolean;
|
|
264
|
+
/** Start adornment (icon, text, etc.) */
|
|
265
|
+
startAdornment?: React.ReactNode;
|
|
266
|
+
/** End adornment (icon, text, etc.) */
|
|
267
|
+
endAdornment?: React.ReactNode;
|
|
221
268
|
}
|
|
222
269
|
declare const TextField: React.ForwardRefExoticComponent<TextFieldProps & React.RefAttributes<HTMLInputElement>>;
|
|
223
270
|
|
|
@@ -380,11 +427,123 @@ declare const DialogNamespace: React.FC<DialogPrimitive.DialogProps> & {
|
|
|
380
427
|
Description: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
381
428
|
};
|
|
382
429
|
|
|
430
|
+
declare const AlertDialog: React.FC<AlertDialogPrimitive.AlertDialogProps>;
|
|
431
|
+
declare const AlertDialogTrigger: React.ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
432
|
+
declare const AlertDialogPortal: React.FC<AlertDialogPrimitive.AlertDialogPortalProps>;
|
|
433
|
+
declare const AlertDialogOverlay: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
434
|
+
interface AlertDialogContentProps extends React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Content> {
|
|
435
|
+
/** Visual variant of the alert dialog */
|
|
436
|
+
variant?: 'default' | 'destructive' | 'success' | 'warning' | 'info';
|
|
437
|
+
/** Whether to show an icon */
|
|
438
|
+
showIcon?: boolean;
|
|
439
|
+
}
|
|
440
|
+
declare const AlertDialogContent: React.ForwardRefExoticComponent<AlertDialogContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
441
|
+
interface AlertDialogHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
442
|
+
}
|
|
443
|
+
declare const AlertDialogHeader: React.ForwardRefExoticComponent<AlertDialogHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
444
|
+
interface AlertDialogFooterProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
445
|
+
}
|
|
446
|
+
declare const AlertDialogFooter: React.ForwardRefExoticComponent<AlertDialogFooterProps & React.RefAttributes<HTMLDivElement>>;
|
|
447
|
+
declare const AlertDialogTitle: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
448
|
+
declare const AlertDialogDescription: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
449
|
+
declare const AlertDialogAction: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
450
|
+
declare const AlertDialogCancel: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
451
|
+
|
|
383
452
|
interface SpinnerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
384
453
|
size?: 'sm' | 'default' | 'lg';
|
|
385
454
|
}
|
|
386
455
|
declare const Spinner: React.ForwardRefExoticComponent<SpinnerProps & React.RefAttributes<HTMLDivElement>>;
|
|
387
456
|
|
|
457
|
+
interface AlertProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
458
|
+
/** The variant/severity of the alert */
|
|
459
|
+
variant?: 'default' | 'info' | 'success' | 'warning' | 'error' | 'destructive';
|
|
460
|
+
/** Whether the alert is dismissible */
|
|
461
|
+
dismissible?: boolean;
|
|
462
|
+
/** Callback when dismissed */
|
|
463
|
+
onDismiss?: () => void;
|
|
464
|
+
/** Icon to show (if undefined, a default icon is used based on variant) */
|
|
465
|
+
icon?: React.ReactNode;
|
|
466
|
+
/** Whether to show the default icon */
|
|
467
|
+
showIcon?: boolean;
|
|
468
|
+
}
|
|
469
|
+
declare const Alert: React.ForwardRefExoticComponent<AlertProps & React.RefAttributes<HTMLDivElement>>;
|
|
470
|
+
interface AlertTitleProps extends React.HTMLAttributes<HTMLHeadingElement> {
|
|
471
|
+
}
|
|
472
|
+
declare const AlertTitle: React.ForwardRefExoticComponent<AlertTitleProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
473
|
+
interface AlertDescriptionProps extends React.HTMLAttributes<HTMLParagraphElement> {
|
|
474
|
+
}
|
|
475
|
+
declare const AlertDescription: React.ForwardRefExoticComponent<AlertDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
476
|
+
|
|
477
|
+
declare const TooltipProvider: React.FC<TooltipPrimitive.TooltipProviderProps>;
|
|
478
|
+
declare const TooltipRoot: React.FC<TooltipPrimitive.TooltipProps>;
|
|
479
|
+
declare const TooltipTrigger: React.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
480
|
+
declare const TooltipPortal: React.FC<TooltipPrimitive.TooltipPortalProps>;
|
|
481
|
+
declare const TooltipArrow: React.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipArrowProps & React.RefAttributes<SVGSVGElement>, "ref"> & React.RefAttributes<SVGSVGElement>>;
|
|
482
|
+
interface TooltipContentProps extends React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content> {
|
|
483
|
+
/** Whether to show an arrow pointing to the trigger */
|
|
484
|
+
showArrow?: boolean;
|
|
485
|
+
}
|
|
486
|
+
declare const TooltipContent: React.ForwardRefExoticComponent<TooltipContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
487
|
+
interface TooltipProps {
|
|
488
|
+
/** The content to show in the tooltip */
|
|
489
|
+
content: React.ReactNode;
|
|
490
|
+
/** The element that triggers the tooltip */
|
|
491
|
+
children: React.ReactNode;
|
|
492
|
+
/** Side where the tooltip appears */
|
|
493
|
+
side?: 'top' | 'right' | 'bottom' | 'left';
|
|
494
|
+
/** Alignment of the tooltip */
|
|
495
|
+
align?: 'start' | 'center' | 'end';
|
|
496
|
+
/** Delay before showing (ms) */
|
|
497
|
+
delayDuration?: number;
|
|
498
|
+
/** Whether the tooltip is open (controlled) */
|
|
499
|
+
open?: boolean;
|
|
500
|
+
/** Callback when open state changes */
|
|
501
|
+
onOpenChange?: (open: boolean) => void;
|
|
502
|
+
/** Whether the tooltip should be disabled */
|
|
503
|
+
disabled?: boolean;
|
|
504
|
+
/** Whether to show an arrow */
|
|
505
|
+
showArrow?: boolean;
|
|
506
|
+
/** Additional className for the content */
|
|
507
|
+
className?: string;
|
|
508
|
+
}
|
|
509
|
+
declare const Tooltip: React.ForwardRefExoticComponent<TooltipProps & React.RefAttributes<HTMLButtonElement>>;
|
|
510
|
+
|
|
511
|
+
interface LinearProgressProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
512
|
+
/** Progress value (0-100). If undefined, shows indeterminate state */
|
|
513
|
+
value?: number;
|
|
514
|
+
/** Color variant */
|
|
515
|
+
variant?: 'default' | 'success' | 'warning' | 'error' | 'info';
|
|
516
|
+
/** Size of the progress bar */
|
|
517
|
+
size?: 'sm' | 'md' | 'lg';
|
|
518
|
+
/** Whether to show the value label */
|
|
519
|
+
showValue?: boolean;
|
|
520
|
+
/** Custom label format */
|
|
521
|
+
formatValue?: (value: number) => string;
|
|
522
|
+
/** Whether to animate (only for determinate progress) */
|
|
523
|
+
animated?: boolean;
|
|
524
|
+
}
|
|
525
|
+
declare const LinearProgress: React.ForwardRefExoticComponent<LinearProgressProps & React.RefAttributes<HTMLDivElement>>;
|
|
526
|
+
interface CircularProgressProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
527
|
+
/** Progress value (0-100). If undefined, shows indeterminate state */
|
|
528
|
+
value?: number;
|
|
529
|
+
/** Color variant */
|
|
530
|
+
variant?: 'default' | 'success' | 'warning' | 'error' | 'info';
|
|
531
|
+
/** Size of the circular progress */
|
|
532
|
+
size?: 'sm' | 'md' | 'lg' | 'xl' | number;
|
|
533
|
+
/** Thickness of the progress ring */
|
|
534
|
+
thickness?: number;
|
|
535
|
+
/** Whether to show the value in the center */
|
|
536
|
+
showValue?: boolean;
|
|
537
|
+
/** Custom label format */
|
|
538
|
+
formatValue?: (value: number) => string;
|
|
539
|
+
/** Content to show in the center */
|
|
540
|
+
children?: React.ReactNode;
|
|
541
|
+
}
|
|
542
|
+
declare const CircularProgress: React.ForwardRefExoticComponent<CircularProgressProps & React.RefAttributes<HTMLDivElement>>;
|
|
543
|
+
interface ProgressProps extends LinearProgressProps {
|
|
544
|
+
}
|
|
545
|
+
declare const Progress: React.ForwardRefExoticComponent<ProgressProps & React.RefAttributes<HTMLDivElement>>;
|
|
546
|
+
|
|
388
547
|
declare const TableHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
389
548
|
declare const TableBody: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
390
549
|
declare const TableFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
@@ -402,6 +561,81 @@ declare const TableNamespace: React.ForwardRefExoticComponent<React.HTMLAttribut
|
|
|
402
561
|
Caption: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableCaptionElement> & React.RefAttributes<HTMLTableCaptionElement>>;
|
|
403
562
|
};
|
|
404
563
|
|
|
564
|
+
interface AvatarProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
565
|
+
/** Image source URL */
|
|
566
|
+
src?: string;
|
|
567
|
+
/** Alt text for the image */
|
|
568
|
+
alt?: string;
|
|
569
|
+
/** Size of the avatar */
|
|
570
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
571
|
+
/** Fallback text (usually initials) when no image */
|
|
572
|
+
fallback?: string;
|
|
573
|
+
/** Shape of the avatar */
|
|
574
|
+
shape?: 'circle' | 'square';
|
|
575
|
+
/** Whether to show a border */
|
|
576
|
+
bordered?: boolean;
|
|
577
|
+
/** Custom fallback element */
|
|
578
|
+
fallbackElement?: React.ReactNode;
|
|
579
|
+
}
|
|
580
|
+
declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLDivElement>>;
|
|
581
|
+
interface AvatarGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
582
|
+
/** Maximum number of avatars to show */
|
|
583
|
+
max?: number;
|
|
584
|
+
/** Size for all avatars in the group */
|
|
585
|
+
size?: AvatarProps['size'];
|
|
586
|
+
/** Children should be Avatar components */
|
|
587
|
+
children: React.ReactNode;
|
|
588
|
+
}
|
|
589
|
+
declare const AvatarGroup: React.ForwardRefExoticComponent<AvatarGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
590
|
+
|
|
591
|
+
interface SkeletonProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
592
|
+
/** Variant of the skeleton shape */
|
|
593
|
+
variant?: 'text' | 'circular' | 'rectangular' | 'rounded';
|
|
594
|
+
/** Width of the skeleton (can be number for px or string for any CSS value) */
|
|
595
|
+
width?: number | string;
|
|
596
|
+
/** Height of the skeleton (can be number for px or string for any CSS value) */
|
|
597
|
+
height?: number | string;
|
|
598
|
+
/** Whether to animate the skeleton */
|
|
599
|
+
animation?: 'pulse' | 'wave' | 'none';
|
|
600
|
+
}
|
|
601
|
+
declare const Skeleton: React.ForwardRefExoticComponent<SkeletonProps & React.RefAttributes<HTMLDivElement>>;
|
|
602
|
+
interface SkeletonTextProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
603
|
+
/** Number of lines */
|
|
604
|
+
lines?: number;
|
|
605
|
+
/** Width of the last line (percentage or 'full') */
|
|
606
|
+
lastLineWidth?: number | 'full';
|
|
607
|
+
/** Gap between lines */
|
|
608
|
+
gap?: 'sm' | 'md' | 'lg';
|
|
609
|
+
/** Animation type */
|
|
610
|
+
animation?: SkeletonProps['animation'];
|
|
611
|
+
}
|
|
612
|
+
declare const SkeletonText: React.ForwardRefExoticComponent<SkeletonTextProps & React.RefAttributes<HTMLDivElement>>;
|
|
613
|
+
interface SkeletonAvatarProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
614
|
+
/** Size of the avatar skeleton */
|
|
615
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
616
|
+
/** Animation type */
|
|
617
|
+
animation?: SkeletonProps['animation'];
|
|
618
|
+
}
|
|
619
|
+
declare const SkeletonAvatar: React.ForwardRefExoticComponent<SkeletonAvatarProps & React.RefAttributes<HTMLDivElement>>;
|
|
620
|
+
interface SkeletonCardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
621
|
+
/** Whether to show an image placeholder */
|
|
622
|
+
hasImage?: boolean;
|
|
623
|
+
/** Image height */
|
|
624
|
+
imageHeight?: number;
|
|
625
|
+
/** Number of text lines */
|
|
626
|
+
lines?: number;
|
|
627
|
+
/** Animation type */
|
|
628
|
+
animation?: SkeletonProps['animation'];
|
|
629
|
+
}
|
|
630
|
+
declare const SkeletonCard: React.ForwardRefExoticComponent<SkeletonCardProps & React.RefAttributes<HTMLDivElement>>;
|
|
631
|
+
interface SkeletonTableRowProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
632
|
+
/** Number of columns */
|
|
633
|
+
columns?: number;
|
|
634
|
+
/** Animation type */
|
|
635
|
+
animation?: SkeletonProps['animation'];
|
|
636
|
+
}
|
|
637
|
+
declare const SkeletonTableRow: React.ForwardRefExoticComponent<SkeletonTableRowProps & React.RefAttributes<HTMLDivElement>>;
|
|
638
|
+
|
|
405
639
|
interface PaginationProps extends React.HTMLAttributes<HTMLElement> {
|
|
406
640
|
}
|
|
407
641
|
declare const PaginationContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLUListElement> & React.RefAttributes<HTMLUListElement>>;
|
|
@@ -427,7 +661,7 @@ interface ComboboxOption {
|
|
|
427
661
|
label: string;
|
|
428
662
|
disabled?: boolean;
|
|
429
663
|
}
|
|
430
|
-
interface
|
|
664
|
+
interface ComboboxSingleProps {
|
|
431
665
|
options: ComboboxOption[];
|
|
432
666
|
value?: string;
|
|
433
667
|
defaultValue?: string;
|
|
@@ -437,9 +671,482 @@ interface ComboboxProps {
|
|
|
437
671
|
emptyMessage?: string;
|
|
438
672
|
disabled?: boolean;
|
|
439
673
|
className?: string;
|
|
674
|
+
multiple?: false;
|
|
440
675
|
}
|
|
676
|
+
interface ComboboxMultipleProps {
|
|
677
|
+
options: ComboboxOption[];
|
|
678
|
+
value?: string[];
|
|
679
|
+
defaultValue?: string[];
|
|
680
|
+
onValueChange?: (value: string[]) => void;
|
|
681
|
+
placeholder?: string;
|
|
682
|
+
searchPlaceholder?: string;
|
|
683
|
+
emptyMessage?: string;
|
|
684
|
+
disabled?: boolean;
|
|
685
|
+
className?: string;
|
|
686
|
+
multiple: true;
|
|
687
|
+
/** Maximum number of items to display as chips before showing "+N more" */
|
|
688
|
+
maxDisplayItems?: number;
|
|
689
|
+
}
|
|
690
|
+
type ComboboxProps = ComboboxSingleProps | ComboboxMultipleProps;
|
|
441
691
|
declare const Combobox: React.ForwardRefExoticComponent<ComboboxProps & React.RefAttributes<HTMLInputElement>>;
|
|
442
692
|
|
|
693
|
+
interface GridColDef<TData = any> {
|
|
694
|
+
field: string;
|
|
695
|
+
headerName?: string;
|
|
696
|
+
width?: number;
|
|
697
|
+
minWidth?: number;
|
|
698
|
+
maxWidth?: number;
|
|
699
|
+
flex?: number;
|
|
700
|
+
sortable?: boolean;
|
|
701
|
+
filterable?: boolean;
|
|
702
|
+
editable?: boolean;
|
|
703
|
+
hide?: boolean;
|
|
704
|
+
hideable?: boolean;
|
|
705
|
+
align?: 'left' | 'center' | 'right';
|
|
706
|
+
headerAlign?: 'left' | 'center' | 'right';
|
|
707
|
+
renderCell?: (params: GridRenderCellParams<TData>) => React.ReactNode;
|
|
708
|
+
renderHeader?: (params: GridRenderHeaderParams) => React.ReactNode;
|
|
709
|
+
valueGetter?: (params: GridValueGetterParams<TData>) => any;
|
|
710
|
+
valueFormatter?: (params: GridValueFormatterParams) => string;
|
|
711
|
+
type?: 'string' | 'number' | 'date' | 'dateTime' | 'boolean';
|
|
712
|
+
wrapText?: boolean;
|
|
713
|
+
cellClassName?: string;
|
|
714
|
+
export?: boolean;
|
|
715
|
+
hideExport?: boolean;
|
|
716
|
+
disableExport?: boolean;
|
|
717
|
+
}
|
|
718
|
+
interface GridRenderCellParams<TData = any> {
|
|
719
|
+
row: TData;
|
|
720
|
+
value: any;
|
|
721
|
+
field: string;
|
|
722
|
+
rowIndex: number;
|
|
723
|
+
}
|
|
724
|
+
interface GridRenderHeaderParams {
|
|
725
|
+
field: string;
|
|
726
|
+
colDef: GridColDef;
|
|
727
|
+
}
|
|
728
|
+
interface GridValueGetterParams<TData = any> {
|
|
729
|
+
row: TData;
|
|
730
|
+
field: string;
|
|
731
|
+
}
|
|
732
|
+
interface GridValueFormatterParams {
|
|
733
|
+
value: any;
|
|
734
|
+
}
|
|
735
|
+
interface PaginationModel {
|
|
736
|
+
page: number;
|
|
737
|
+
pageSize: number;
|
|
738
|
+
}
|
|
739
|
+
interface GridRowSelectionModel {
|
|
740
|
+
[key: string]: boolean;
|
|
741
|
+
}
|
|
742
|
+
interface ColumnVisibilityModel {
|
|
743
|
+
[key: string]: boolean;
|
|
744
|
+
}
|
|
745
|
+
type GridDensity = 'compact' | 'standard' | 'comfortable';
|
|
746
|
+
interface DataGridProps<TData = any> {
|
|
747
|
+
rows: TData[];
|
|
748
|
+
columns: GridColDef<TData>[];
|
|
749
|
+
getRowId?: (row: TData) => string | number;
|
|
750
|
+
loading?: boolean;
|
|
751
|
+
title?: string;
|
|
752
|
+
toolBar?: boolean;
|
|
753
|
+
checkboxSelection?: boolean;
|
|
754
|
+
rowSelectionModel?: GridRowSelectionModel;
|
|
755
|
+
onRowSelectionModelChange?: (model: GridRowSelectionModel) => void;
|
|
756
|
+
disableRowSelectionOnClick?: boolean;
|
|
757
|
+
columnVisibilityModel?: ColumnVisibilityModel;
|
|
758
|
+
onColumnVisibilityModelChange?: (model: ColumnVisibilityModel) => void;
|
|
759
|
+
paginationMode?: 'client' | 'server';
|
|
760
|
+
paginationModel?: PaginationModel;
|
|
761
|
+
onPaginationModelChange?: (model: PaginationModel) => void;
|
|
762
|
+
rowCount?: number;
|
|
763
|
+
pageSizeOptions?: number[];
|
|
764
|
+
sortingMode?: 'client' | 'server';
|
|
765
|
+
filterMode?: 'client' | 'server';
|
|
766
|
+
height?: number | string;
|
|
767
|
+
minHeight?: number | string;
|
|
768
|
+
maxHeight?: number | string;
|
|
769
|
+
density?: GridDensity;
|
|
770
|
+
showCellVerticalBorder?: boolean;
|
|
771
|
+
showColumnVerticalBorder?: boolean;
|
|
772
|
+
hideFooter?: boolean;
|
|
773
|
+
hideFooterPagination?: boolean;
|
|
774
|
+
virtualized?: boolean;
|
|
775
|
+
overscan?: number;
|
|
776
|
+
wrapText?: boolean;
|
|
777
|
+
getRowClassName?: (params: {
|
|
778
|
+
row: TData;
|
|
779
|
+
rowIndex: number;
|
|
780
|
+
}) => string;
|
|
781
|
+
slotProps?: {
|
|
782
|
+
toolbar?: {
|
|
783
|
+
getExportedColumns?: (columns: GridColDef[]) => GridColDef[];
|
|
784
|
+
showQuickFilter?: boolean;
|
|
785
|
+
showColumnSelector?: boolean;
|
|
786
|
+
showExport?: boolean;
|
|
787
|
+
customButtons?: React.ReactNode;
|
|
788
|
+
moreOptions?: {
|
|
789
|
+
label: string;
|
|
790
|
+
onClick: () => void;
|
|
791
|
+
icon?: React.ReactNode;
|
|
792
|
+
}[];
|
|
793
|
+
};
|
|
794
|
+
};
|
|
795
|
+
onExport?: (data: TData[], columns: GridColDef<TData>[]) => void;
|
|
796
|
+
exportFileName?: string;
|
|
797
|
+
resizableColumns?: boolean;
|
|
798
|
+
onColumnResize?: (columnId: string, width: number) => void;
|
|
799
|
+
className?: string;
|
|
800
|
+
sx?: React.CSSProperties;
|
|
801
|
+
actions?: {
|
|
802
|
+
edit?: boolean;
|
|
803
|
+
del?: boolean;
|
|
804
|
+
};
|
|
805
|
+
sensitiveInfo?: boolean;
|
|
806
|
+
autoHeight?: boolean;
|
|
807
|
+
disableColumnMenu?: boolean;
|
|
808
|
+
disableColumnFilter?: boolean;
|
|
809
|
+
disableColumnSelector?: boolean;
|
|
810
|
+
disableDensitySelector?: boolean;
|
|
811
|
+
}
|
|
812
|
+
declare function DataGrid<TData extends Record<string, any>>({ rows, columns, getRowId, loading, title, toolBar, checkboxSelection, rowSelectionModel, onRowSelectionModelChange, disableRowSelectionOnClick, columnVisibilityModel, onColumnVisibilityModelChange, paginationMode, paginationModel, onPaginationModelChange, rowCount, pageSizeOptions, sortingMode, filterMode, height, minHeight, maxHeight, density, showCellVerticalBorder, showColumnVerticalBorder, hideFooter, hideFooterPagination, virtualized, overscan, wrapText, getRowClassName, slotProps, className, sx, autoHeight, disableColumnSelector, onExport, exportFileName, resizableColumns, onColumnResize, }: DataGridProps<TData>): react_jsx_runtime.JSX.Element;
|
|
813
|
+
declare namespace DataGrid {
|
|
814
|
+
var displayName: string;
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
interface ListProps extends React.HTMLAttributes<HTMLUListElement> {
|
|
818
|
+
/** Whether the list has dividers between items */
|
|
819
|
+
dividers?: boolean;
|
|
820
|
+
/** Padding for each list item */
|
|
821
|
+
dense?: boolean;
|
|
822
|
+
/** Whether items are clickable (adds hover styles) */
|
|
823
|
+
clickable?: boolean;
|
|
824
|
+
}
|
|
825
|
+
declare const List: React.ForwardRefExoticComponent<ListProps & React.RefAttributes<HTMLUListElement>>;
|
|
826
|
+
interface ListItemProps extends React.HTMLAttributes<HTMLLIElement> {
|
|
827
|
+
/** Whether this item is selected/active */
|
|
828
|
+
selected?: boolean;
|
|
829
|
+
/** Whether this item is disabled */
|
|
830
|
+
disabled?: boolean;
|
|
831
|
+
/** Whether this item is clickable */
|
|
832
|
+
clickable?: boolean;
|
|
833
|
+
/** Leading element (icon, avatar, etc.) */
|
|
834
|
+
leading?: React.ReactNode;
|
|
835
|
+
/** Trailing element (icon, action, etc.) */
|
|
836
|
+
trailing?: React.ReactNode;
|
|
837
|
+
/** Secondary action element */
|
|
838
|
+
secondaryAction?: React.ReactNode;
|
|
839
|
+
}
|
|
840
|
+
declare const ListItem: React.ForwardRefExoticComponent<ListItemProps & React.RefAttributes<HTMLLIElement>>;
|
|
841
|
+
interface ListItemTextProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
842
|
+
/** Primary text */
|
|
843
|
+
primary?: React.ReactNode;
|
|
844
|
+
/** Secondary text */
|
|
845
|
+
secondary?: React.ReactNode;
|
|
846
|
+
/** Whether to prevent text wrapping */
|
|
847
|
+
noWrap?: boolean;
|
|
848
|
+
}
|
|
849
|
+
declare const ListItemText: React.ForwardRefExoticComponent<ListItemTextProps & React.RefAttributes<HTMLDivElement>>;
|
|
850
|
+
interface ListItemIconProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
851
|
+
}
|
|
852
|
+
declare const ListItemIcon: React.ForwardRefExoticComponent<ListItemIconProps & React.RefAttributes<HTMLDivElement>>;
|
|
853
|
+
interface ListItemAvatarProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
854
|
+
}
|
|
855
|
+
declare const ListItemAvatar: React.ForwardRefExoticComponent<ListItemAvatarProps & React.RefAttributes<HTMLDivElement>>;
|
|
856
|
+
interface ListSubheaderProps extends React.HTMLAttributes<HTMLLIElement> {
|
|
857
|
+
/** Whether the subheader is sticky */
|
|
858
|
+
sticky?: boolean;
|
|
859
|
+
}
|
|
860
|
+
declare const ListSubheader: React.ForwardRefExoticComponent<ListSubheaderProps & React.RefAttributes<HTMLLIElement>>;
|
|
861
|
+
interface ListDividerProps extends React.HTMLAttributes<HTMLLIElement> {
|
|
862
|
+
/** Whether the divider is inset (indented) */
|
|
863
|
+
inset?: boolean;
|
|
864
|
+
}
|
|
865
|
+
declare const ListDivider: React.ForwardRefExoticComponent<ListDividerProps & React.RefAttributes<HTMLLIElement>>;
|
|
866
|
+
|
|
867
|
+
interface BreadcrumbsProps extends React.HTMLAttributes<HTMLElement> {
|
|
868
|
+
/** Custom separator element */
|
|
869
|
+
separator?: React.ReactNode;
|
|
870
|
+
/** Maximum number of items to display before collapsing */
|
|
871
|
+
maxItems?: number;
|
|
872
|
+
/** Number of items to show at the beginning when collapsed */
|
|
873
|
+
itemsBeforeCollapse?: number;
|
|
874
|
+
/** Number of items to show at the end when collapsed */
|
|
875
|
+
itemsAfterCollapse?: number;
|
|
876
|
+
}
|
|
877
|
+
declare const Breadcrumbs: React.ForwardRefExoticComponent<BreadcrumbsProps & React.RefAttributes<HTMLElement>>;
|
|
878
|
+
interface BreadcrumbItemProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
879
|
+
/** Whether this is the current/active page */
|
|
880
|
+
current?: boolean;
|
|
881
|
+
/** Href for the breadcrumb link */
|
|
882
|
+
href?: string;
|
|
883
|
+
/** Click handler */
|
|
884
|
+
onClick?: React.MouseEventHandler<HTMLAnchorElement | HTMLSpanElement>;
|
|
885
|
+
}
|
|
886
|
+
declare const BreadcrumbItem: React.ForwardRefExoticComponent<BreadcrumbItemProps & React.RefAttributes<HTMLSpanElement>>;
|
|
887
|
+
interface BreadcrumbLinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
888
|
+
}
|
|
889
|
+
declare const BreadcrumbLink: React.ForwardRefExoticComponent<BreadcrumbLinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
890
|
+
interface BreadcrumbSeparatorProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
891
|
+
}
|
|
892
|
+
declare const BreadcrumbSeparator: React.ForwardRefExoticComponent<BreadcrumbSeparatorProps & React.RefAttributes<HTMLSpanElement>>;
|
|
893
|
+
interface BreadcrumbEllipsisProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
894
|
+
}
|
|
895
|
+
declare const BreadcrumbEllipsis: React.ForwardRefExoticComponent<BreadcrumbEllipsisProps & React.RefAttributes<HTMLSpanElement>>;
|
|
896
|
+
interface BreadcrumbPageProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
897
|
+
}
|
|
898
|
+
declare const BreadcrumbPage: React.ForwardRefExoticComponent<BreadcrumbPageProps & React.RefAttributes<HTMLSpanElement>>;
|
|
899
|
+
|
|
900
|
+
declare const DropdownMenu: React.FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
|
901
|
+
declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
902
|
+
declare const DropdownMenuGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
903
|
+
declare const DropdownMenuPortal: React.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
|
|
904
|
+
declare const DropdownMenuSub: React.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
|
|
905
|
+
declare const DropdownMenuRadioGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
906
|
+
interface DropdownMenuSubTriggerProps extends React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> {
|
|
907
|
+
inset?: boolean;
|
|
908
|
+
}
|
|
909
|
+
declare const DropdownMenuSubTrigger: React.ForwardRefExoticComponent<DropdownMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>>;
|
|
910
|
+
declare const DropdownMenuSubContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
911
|
+
declare const DropdownMenuContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
912
|
+
interface DropdownMenuItemProps extends React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> {
|
|
913
|
+
inset?: boolean;
|
|
914
|
+
}
|
|
915
|
+
declare const DropdownMenuItem: React.ForwardRefExoticComponent<DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
916
|
+
declare const DropdownMenuCheckboxItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
917
|
+
declare const DropdownMenuRadioItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
918
|
+
interface DropdownMenuLabelProps extends React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label> {
|
|
919
|
+
inset?: boolean;
|
|
920
|
+
}
|
|
921
|
+
declare const DropdownMenuLabel: React.ForwardRefExoticComponent<DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>>;
|
|
922
|
+
declare const DropdownMenuSeparator: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
923
|
+
declare const DropdownMenuShortcut: {
|
|
924
|
+
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
|
|
925
|
+
displayName: string;
|
|
926
|
+
};
|
|
927
|
+
|
|
928
|
+
declare const Drawer: React.FC<DialogPrimitive.DialogProps>;
|
|
929
|
+
declare const DrawerTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
930
|
+
declare const DrawerClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
931
|
+
declare const DrawerPortal: React.FC<DialogPrimitive.DialogPortalProps>;
|
|
932
|
+
declare const DrawerOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
933
|
+
interface DrawerContentProps extends React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content> {
|
|
934
|
+
/** Side from which the drawer slides in */
|
|
935
|
+
side?: 'left' | 'right' | 'top' | 'bottom';
|
|
936
|
+
/** Whether to show the close button */
|
|
937
|
+
showClose?: boolean;
|
|
938
|
+
}
|
|
939
|
+
declare const DrawerContent: React.ForwardRefExoticComponent<DrawerContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
940
|
+
interface DrawerHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
941
|
+
}
|
|
942
|
+
declare const DrawerHeader: React.ForwardRefExoticComponent<DrawerHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
943
|
+
declare const DrawerTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
944
|
+
declare const DrawerDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
945
|
+
interface DrawerBodyProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
946
|
+
}
|
|
947
|
+
declare const DrawerBody: React.ForwardRefExoticComponent<DrawerBodyProps & React.RefAttributes<HTMLDivElement>>;
|
|
948
|
+
interface DrawerFooterProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
949
|
+
}
|
|
950
|
+
declare const DrawerFooter: React.ForwardRefExoticComponent<DrawerFooterProps & React.RefAttributes<HTMLDivElement>>;
|
|
951
|
+
declare const Sheet: React.FC<DialogPrimitive.DialogProps>;
|
|
952
|
+
declare const SheetTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
953
|
+
declare const SheetClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
954
|
+
declare const SheetPortal: React.FC<DialogPrimitive.DialogPortalProps>;
|
|
955
|
+
declare const SheetOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
956
|
+
declare const SheetContent: React.ForwardRefExoticComponent<DrawerContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
957
|
+
declare const SheetHeader: React.ForwardRefExoticComponent<DrawerHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
958
|
+
declare const SheetTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
959
|
+
declare const SheetDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
960
|
+
declare const SheetBody: React.ForwardRefExoticComponent<DrawerBodyProps & React.RefAttributes<HTMLDivElement>>;
|
|
961
|
+
declare const SheetFooter: React.ForwardRefExoticComponent<DrawerFooterProps & React.RefAttributes<HTMLDivElement>>;
|
|
962
|
+
|
|
963
|
+
interface TopBarProps extends React.HTMLAttributes<HTMLElement> {
|
|
964
|
+
/** Whether the topbar has a bottom border */
|
|
965
|
+
bordered?: boolean;
|
|
966
|
+
/** Whether the topbar is sticky at the top */
|
|
967
|
+
sticky?: boolean;
|
|
968
|
+
/** Height variant */
|
|
969
|
+
size?: 'sm' | 'md' | 'lg';
|
|
970
|
+
}
|
|
971
|
+
declare const TopBar: React.ForwardRefExoticComponent<TopBarProps & React.RefAttributes<HTMLElement>>;
|
|
972
|
+
interface TopBarBrandProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
973
|
+
/** Logo element or image */
|
|
974
|
+
logo?: React.ReactNode;
|
|
975
|
+
/** Brand name text */
|
|
976
|
+
name?: string;
|
|
977
|
+
/** Link href for the brand */
|
|
978
|
+
href?: string;
|
|
979
|
+
}
|
|
980
|
+
declare const TopBarBrand: React.ForwardRefExoticComponent<TopBarBrandProps & React.RefAttributes<HTMLDivElement>>;
|
|
981
|
+
interface TopBarNavProps extends React.HTMLAttributes<HTMLElement> {
|
|
982
|
+
}
|
|
983
|
+
declare const TopBarNav: React.ForwardRefExoticComponent<TopBarNavProps & React.RefAttributes<HTMLElement>>;
|
|
984
|
+
interface TopBarNavItemProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
985
|
+
/** Whether this nav item is active */
|
|
986
|
+
active?: boolean;
|
|
987
|
+
}
|
|
988
|
+
declare const TopBarNavItem: React.ForwardRefExoticComponent<TopBarNavItemProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
989
|
+
interface TopBarSectionProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
990
|
+
/** Alignment of the section */
|
|
991
|
+
align?: 'left' | 'center' | 'right';
|
|
992
|
+
}
|
|
993
|
+
declare const TopBarSection: React.ForwardRefExoticComponent<TopBarSectionProps & React.RefAttributes<HTMLDivElement>>;
|
|
994
|
+
interface TopBarDividerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
995
|
+
}
|
|
996
|
+
declare const TopBarDivider: React.ForwardRefExoticComponent<TopBarDividerProps & React.RefAttributes<HTMLDivElement>>;
|
|
997
|
+
|
|
998
|
+
interface SidebarContextValue {
|
|
999
|
+
collapsed: boolean;
|
|
1000
|
+
setCollapsed: (collapsed: boolean) => void;
|
|
1001
|
+
}
|
|
1002
|
+
declare const useSidebar: () => SidebarContextValue;
|
|
1003
|
+
interface SidebarProps extends React.HTMLAttributes<HTMLElement> {
|
|
1004
|
+
/** Whether the sidebar is collapsed */
|
|
1005
|
+
collapsed?: boolean;
|
|
1006
|
+
/** Callback when collapsed state changes */
|
|
1007
|
+
onCollapsedChange?: (collapsed: boolean) => void;
|
|
1008
|
+
/** Default collapsed state (uncontrolled) */
|
|
1009
|
+
defaultCollapsed?: boolean;
|
|
1010
|
+
/** Width when expanded */
|
|
1011
|
+
width?: number | string;
|
|
1012
|
+
/** Width when collapsed */
|
|
1013
|
+
collapsedWidth?: number | string;
|
|
1014
|
+
/** Whether the sidebar has a right border */
|
|
1015
|
+
bordered?: boolean;
|
|
1016
|
+
}
|
|
1017
|
+
declare const Sidebar: React.ForwardRefExoticComponent<SidebarProps & React.RefAttributes<HTMLElement>>;
|
|
1018
|
+
interface SidebarHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
1019
|
+
}
|
|
1020
|
+
declare const SidebarHeader: React.ForwardRefExoticComponent<SidebarHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
1021
|
+
interface SidebarContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
1022
|
+
}
|
|
1023
|
+
declare const SidebarContent: React.ForwardRefExoticComponent<SidebarContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
1024
|
+
interface SidebarFooterProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
1025
|
+
}
|
|
1026
|
+
declare const SidebarFooter: React.ForwardRefExoticComponent<SidebarFooterProps & React.RefAttributes<HTMLDivElement>>;
|
|
1027
|
+
interface SidebarGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
1028
|
+
/** Group label */
|
|
1029
|
+
label?: string;
|
|
1030
|
+
}
|
|
1031
|
+
declare const SidebarGroup: React.ForwardRefExoticComponent<SidebarGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
1032
|
+
interface SidebarItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
1033
|
+
/** Icon element */
|
|
1034
|
+
icon?: React.ReactNode;
|
|
1035
|
+
/** Whether this item is active */
|
|
1036
|
+
active?: boolean;
|
|
1037
|
+
/** Whether this item is disabled */
|
|
1038
|
+
disabled?: boolean;
|
|
1039
|
+
/** Badge or count to show */
|
|
1040
|
+
badge?: React.ReactNode;
|
|
1041
|
+
/** Click handler */
|
|
1042
|
+
onClick?: () => void;
|
|
1043
|
+
/** Link href */
|
|
1044
|
+
href?: string;
|
|
1045
|
+
}
|
|
1046
|
+
declare const SidebarItem: React.ForwardRefExoticComponent<SidebarItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
1047
|
+
interface SidebarSubMenuProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
1048
|
+
/** Icon element */
|
|
1049
|
+
icon?: React.ReactNode;
|
|
1050
|
+
/** Label text */
|
|
1051
|
+
label: string;
|
|
1052
|
+
/** Whether the submenu is open by default */
|
|
1053
|
+
defaultOpen?: boolean;
|
|
1054
|
+
}
|
|
1055
|
+
declare const SidebarSubMenu: React.ForwardRefExoticComponent<SidebarSubMenuProps & React.RefAttributes<HTMLDivElement>>;
|
|
1056
|
+
interface SidebarToggleProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
1057
|
+
}
|
|
1058
|
+
declare const SidebarToggle: React.ForwardRefExoticComponent<SidebarToggleProps & React.RefAttributes<HTMLButtonElement>>;
|
|
1059
|
+
|
|
1060
|
+
interface SidebarRailContextValue {
|
|
1061
|
+
activeRail: string | null;
|
|
1062
|
+
setActiveRail: (rail: string | null) => void;
|
|
1063
|
+
expanded: boolean;
|
|
1064
|
+
setExpanded: (expanded: boolean) => void;
|
|
1065
|
+
hoverExpand: boolean;
|
|
1066
|
+
railExpanded: boolean;
|
|
1067
|
+
setRailExpanded: (expanded: boolean) => void;
|
|
1068
|
+
overlayRail: boolean;
|
|
1069
|
+
expandableRail: boolean;
|
|
1070
|
+
}
|
|
1071
|
+
declare const useSidebarRail: () => SidebarRailContextValue;
|
|
1072
|
+
interface SidebarRailProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
1073
|
+
/** Default active rail */
|
|
1074
|
+
defaultActiveRail?: string | null;
|
|
1075
|
+
/** Controlled active rail */
|
|
1076
|
+
activeRail?: string | null;
|
|
1077
|
+
/** Callback when active rail changes */
|
|
1078
|
+
onActiveRailChange?: (rail: string | null) => void;
|
|
1079
|
+
/** Whether the panel expands on hover (vs click) */
|
|
1080
|
+
hoverExpand?: boolean;
|
|
1081
|
+
/** Width of the icon rail */
|
|
1082
|
+
railWidth?: number;
|
|
1083
|
+
/** Width of the expanded panel */
|
|
1084
|
+
panelWidth?: number;
|
|
1085
|
+
/** Whether the icon rail can expand to show labels */
|
|
1086
|
+
expandableRail?: boolean;
|
|
1087
|
+
/** Default rail expanded state (uncontrolled) */
|
|
1088
|
+
defaultRailExpanded?: boolean;
|
|
1089
|
+
/** Controlled rail expanded state */
|
|
1090
|
+
railExpanded?: boolean;
|
|
1091
|
+
/** Callback when rail expanded state changes */
|
|
1092
|
+
onRailExpandedChange?: (expanded: boolean) => void;
|
|
1093
|
+
/** Width of expanded rail (labels visible) */
|
|
1094
|
+
railExpandedWidth?: number;
|
|
1095
|
+
/** Overlay expanded rail on top of secondary panel instead of taking layout space */
|
|
1096
|
+
overlayRail?: boolean;
|
|
1097
|
+
}
|
|
1098
|
+
declare const SidebarRail: React.ForwardRefExoticComponent<SidebarRailProps & React.RefAttributes<HTMLDivElement>>;
|
|
1099
|
+
interface IconRailProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
1100
|
+
}
|
|
1101
|
+
declare const IconRail: React.ForwardRefExoticComponent<IconRailProps & React.RefAttributes<HTMLDivElement>>;
|
|
1102
|
+
interface IconRailHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
1103
|
+
}
|
|
1104
|
+
declare const IconRailHeader: React.ForwardRefExoticComponent<IconRailHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
1105
|
+
interface IconRailContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
1106
|
+
}
|
|
1107
|
+
declare const IconRailContent: React.ForwardRefExoticComponent<IconRailContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
1108
|
+
interface IconRailFooterProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
1109
|
+
}
|
|
1110
|
+
declare const IconRailFooter: React.ForwardRefExoticComponent<IconRailFooterProps & React.RefAttributes<HTMLDivElement>>;
|
|
1111
|
+
interface IconRailItemProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
1112
|
+
/** Unique identifier for this rail item */
|
|
1113
|
+
railId?: string;
|
|
1114
|
+
/** Icon to display */
|
|
1115
|
+
icon: React.ReactNode;
|
|
1116
|
+
/** Tooltip label */
|
|
1117
|
+
label?: string;
|
|
1118
|
+
/** Whether this is just a button (no panel) */
|
|
1119
|
+
asButton?: boolean;
|
|
1120
|
+
/** Toggle rail expansion when clicked */
|
|
1121
|
+
toggleRail?: boolean;
|
|
1122
|
+
}
|
|
1123
|
+
declare const IconRailItem: React.ForwardRefExoticComponent<IconRailItemProps & React.RefAttributes<HTMLButtonElement>>;
|
|
1124
|
+
interface RailPanelProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
1125
|
+
/** Which rail this panel belongs to */
|
|
1126
|
+
railId: string;
|
|
1127
|
+
/** Panel title */
|
|
1128
|
+
title?: string;
|
|
1129
|
+
}
|
|
1130
|
+
declare const RailPanel: React.ForwardRefExoticComponent<RailPanelProps & React.RefAttributes<HTMLDivElement>>;
|
|
1131
|
+
interface RailPanelGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
1132
|
+
/** Group label */
|
|
1133
|
+
label?: string;
|
|
1134
|
+
}
|
|
1135
|
+
declare const RailPanelGroup: React.ForwardRefExoticComponent<RailPanelGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
1136
|
+
interface RailPanelItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
1137
|
+
/** Icon element */
|
|
1138
|
+
icon?: React.ReactNode;
|
|
1139
|
+
/** Whether this item is active */
|
|
1140
|
+
active?: boolean;
|
|
1141
|
+
/** Whether this item is disabled */
|
|
1142
|
+
disabled?: boolean;
|
|
1143
|
+
/** Badge or count */
|
|
1144
|
+
badge?: React.ReactNode;
|
|
1145
|
+
/** Link href */
|
|
1146
|
+
href?: string;
|
|
1147
|
+
}
|
|
1148
|
+
declare const RailPanelItem: React.ForwardRefExoticComponent<RailPanelItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
1149
|
+
|
|
443
1150
|
declare const Playground: () => react_jsx_runtime.JSX.Element;
|
|
444
1151
|
|
|
445
|
-
export { Badge, type BadgeProps, Box, type BoxProps, Button, type ButtonProps, Caption, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, type CheckboxProps, Combobox, type ComboboxOption, type ComboboxProps, DialogNamespace as Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, FormControl, type FormControlProps, FormGroup, type FormGroupProps, FormHelperText, type FormHelperTextProps, FormLabel, type FormLabelProps, Grid, type GridProps, H1, H2, H3, H4, H5, H6, HStack, Input, type InputProps, Label, type LabelProps, NativeSelect, NativeSelectOption, type NativeSelectOptionProps, type NativeSelectProps, PaginationNamespace as Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, type PaginationLinkProps, PaginationNext, PaginationPrevious, type PaginationProps, Playground, Radio, RadioGroup, RadioGroupItem, type RadioGroupItemProps, type RadioGroupProps, type RadioProps, SelectNamespace as Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, type SeparatorProps, Spinner, type SpinnerProps, Stack, type StackProps, Switch, type SwitchProps, TableNamespace as Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Text, TextField, type TextFieldProps, Textarea, type TextareaProps, ThemeContext, type ThemeContextValue, ThemeProvider, type ThemeProviderProps, Typography, type TypographyProps, VStack, cn, useFormControl, useTheme };
|
|
1152
|
+
export { Alert, AlertDescription, type AlertDescriptionProps, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, type AlertDialogContentProps, AlertDialogDescription, AlertDialogFooter, type AlertDialogFooterProps, AlertDialogHeader, type AlertDialogHeaderProps, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, type AlertProps, AlertTitle, type AlertTitleProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Badge, type BadgeProps, Box, type BoxProps, BreadcrumbEllipsis, type BreadcrumbEllipsisProps, BreadcrumbItem, type BreadcrumbItemProps, BreadcrumbLink, type BreadcrumbLinkProps, BreadcrumbPage, type BreadcrumbPageProps, BreadcrumbSeparator, type BreadcrumbSeparatorProps, Breadcrumbs, type BreadcrumbsProps, Button, type ButtonProps, Caption, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, type CheckboxProps, CircularProgress, type CircularProgressProps, type ColumnVisibilityModel, Combobox, type ComboboxMultipleProps, type ComboboxOption, type ComboboxProps, type ComboboxSingleProps, DataGrid, type DataGridProps, DataGrid as DataGridV0, DialogNamespace as Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerBody, type DrawerBodyProps, DrawerClose, DrawerContent, type DrawerContentProps, DrawerDescription, DrawerFooter, type DrawerFooterProps, DrawerHeader, type DrawerHeaderProps, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, type DropdownMenuLabelProps, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, type DropdownMenuSubTriggerProps, DropdownMenuTrigger, FormControl, type FormControlProps, FormGroup, type FormGroupProps, FormHelperText, type FormHelperTextProps, FormLabel, type FormLabelProps, Grid, type GridColDef, type GridProps, type GridRenderCellParams, type GridRenderHeaderParams, type GridRowSelectionModel, type GridValueFormatterParams, type GridValueGetterParams, H1, H2, H3, H4, H5, H6, HStack, IconButton, type IconButtonProps, IconRail, IconRailContent, type IconRailContentProps, IconRailFooter, type IconRailFooterProps, IconRailHeader, type IconRailHeaderProps, IconRailItem, type IconRailItemProps, type IconRailProps, Input, InputAdornment, type InputAdornmentProps, type InputProps, Label, type LabelProps, LinearProgress, type LinearProgressProps, List, ListDivider, type ListDividerProps, ListItem, ListItemAvatar, type ListItemAvatarProps, ListItemIcon, type ListItemIconProps, type ListItemProps, ListItemText, type ListItemTextProps, type ListProps, ListSubheader, type ListSubheaderProps, NativeSelect, NativeSelectOption, type NativeSelectOptionProps, type NativeSelectProps, PaginationNamespace as Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, type PaginationLinkProps, type PaginationModel, PaginationNext, PaginationPrevious, type PaginationProps, Playground, Progress, type ProgressProps, Radio, RadioGroup, RadioGroupItem, type RadioGroupItemProps, type RadioGroupProps, type RadioProps, RailPanel, RailPanelGroup, type RailPanelGroupProps, RailPanelItem, type RailPanelItemProps, type RailPanelProps, SelectNamespace as Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, type SeparatorProps, Sheet, SheetBody, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, type SidebarContentProps, SidebarFooter, type SidebarFooterProps, SidebarGroup, type SidebarGroupProps, SidebarHeader, type SidebarHeaderProps, SidebarItem, type SidebarItemProps, type SidebarProps, SidebarRail, type SidebarRailProps, SidebarSubMenu, type SidebarSubMenuProps, SidebarToggle, type SidebarToggleProps, Skeleton, SkeletonAvatar, type SkeletonAvatarProps, SkeletonCard, type SkeletonCardProps, type SkeletonProps, SkeletonTableRow, type SkeletonTableRowProps, SkeletonText, type SkeletonTextProps, Spinner, type SpinnerProps, Stack, type StackProps, Switch, type SwitchProps, TableNamespace as Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Text, TextField, type TextFieldProps, Textarea, type TextareaProps, ThemeContext, type ThemeContextValue, ThemeProvider, type ThemeProviderProps, Tooltip, TooltipArrow, TooltipContent, type TooltipContentProps, TooltipPortal, type TooltipProps, TooltipProvider, TooltipRoot, TooltipTrigger, TopBar, TopBarBrand, type TopBarBrandProps, TopBarDivider, type TopBarDividerProps, TopBarNav, TopBarNavItem, type TopBarNavItemProps, type TopBarNavProps, type TopBarProps, TopBarSection, type TopBarSectionProps, Typography, type TypographyProps, VStack, cn, useFormControl, useSidebar, useSidebarRail, useTheme };
|