@memelabui/ui 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -4
- package/dist/index.cjs +1196 -127
- package/dist/index.d.cts +162 -2
- package/dist/index.d.ts +162 -2
- package/dist/index.js +1060 -13
- package/dist/styles/index.css +269 -0
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -33,6 +33,16 @@ declare function useDebounce<T>(value: T, delayMs?: number): T;
|
|
|
33
33
|
|
|
34
34
|
type Size = 'sm' | 'md' | 'lg';
|
|
35
35
|
|
|
36
|
+
type AvatarSize = 'sm' | 'md' | 'lg' | 'xl';
|
|
37
|
+
type AvatarProps = {
|
|
38
|
+
src?: string;
|
|
39
|
+
alt?: string;
|
|
40
|
+
name?: string;
|
|
41
|
+
size?: AvatarSize;
|
|
42
|
+
className?: string;
|
|
43
|
+
};
|
|
44
|
+
declare const Avatar: react.ForwardRefExoticComponent<AvatarProps & react.RefAttributes<HTMLDivElement>>;
|
|
45
|
+
|
|
36
46
|
type ButtonVariant = 'primary' | 'success' | 'warning' | 'danger' | 'secondary' | 'ghost';
|
|
37
47
|
type ButtonSize = 'sm' | 'md' | 'lg';
|
|
38
48
|
type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
@@ -56,7 +66,7 @@ type IconButtonProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children'
|
|
|
56
66
|
size?: 'sm' | 'md' | 'lg';
|
|
57
67
|
'aria-label': string;
|
|
58
68
|
};
|
|
59
|
-
declare const IconButton: react.ForwardRefExoticComponent<Omit<ButtonHTMLAttributes<HTMLButtonElement>, "
|
|
69
|
+
declare const IconButton: react.ForwardRefExoticComponent<Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children" | "aria-label"> & {
|
|
60
70
|
icon: ReactNode;
|
|
61
71
|
variant?: "primary" | "success" | "warning" | "danger" | "secondary" | "ghost";
|
|
62
72
|
size?: "sm" | "md" | "lg";
|
|
@@ -111,6 +121,19 @@ declare const Textarea: react.ForwardRefExoticComponent<TextareaHTMLAttributes<H
|
|
|
111
121
|
helperText?: string;
|
|
112
122
|
} & react.RefAttributes<HTMLTextAreaElement>>;
|
|
113
123
|
|
|
124
|
+
type TagInputProps = {
|
|
125
|
+
value: string[];
|
|
126
|
+
onChange: (tags: string[]) => void;
|
|
127
|
+
placeholder?: string;
|
|
128
|
+
disabled?: boolean;
|
|
129
|
+
label?: string;
|
|
130
|
+
error?: string;
|
|
131
|
+
maxTags?: number;
|
|
132
|
+
className?: string;
|
|
133
|
+
id?: string;
|
|
134
|
+
};
|
|
135
|
+
declare function TagInput({ value, onChange, placeholder, disabled, label, error, maxTags, className, id: externalId, }: TagInputProps): react_jsx_runtime.JSX.Element;
|
|
136
|
+
|
|
114
137
|
type BadgeVariant = 'neutral' | 'primary' | 'success' | 'successSolid' | 'warning' | 'danger' | 'dangerSolid' | 'accent';
|
|
115
138
|
type BadgeSize = 'sm' | 'md';
|
|
116
139
|
type BadgeProps = Omit<HTMLAttributes<HTMLSpanElement>, 'children'> & {
|
|
@@ -142,6 +165,29 @@ type ToggleProps = {
|
|
|
142
165
|
};
|
|
143
166
|
declare const Toggle: react.ForwardRefExoticComponent<ToggleProps & react.RefAttributes<HTMLButtonElement>>;
|
|
144
167
|
|
|
168
|
+
type SliderProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'onChange'> & {
|
|
169
|
+
label?: string;
|
|
170
|
+
showValue?: boolean;
|
|
171
|
+
formatValue?: (value: number) => string;
|
|
172
|
+
onChange?: (value: number) => void;
|
|
173
|
+
};
|
|
174
|
+
declare const Slider: react.ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "onChange"> & {
|
|
175
|
+
label?: string;
|
|
176
|
+
showValue?: boolean;
|
|
177
|
+
formatValue?: (value: number) => string;
|
|
178
|
+
onChange?: (value: number) => void;
|
|
179
|
+
} & react.RefAttributes<HTMLInputElement>>;
|
|
180
|
+
|
|
181
|
+
type ColorInputProps = {
|
|
182
|
+
value: string;
|
|
183
|
+
onChange: (color: string) => void;
|
|
184
|
+
label?: string;
|
|
185
|
+
disabled?: boolean;
|
|
186
|
+
className?: string;
|
|
187
|
+
id?: string;
|
|
188
|
+
};
|
|
189
|
+
declare const ColorInput: react.ForwardRefExoticComponent<ColorInputProps & react.RefAttributes<HTMLInputElement>>;
|
|
190
|
+
|
|
145
191
|
type CheckboxProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'type'> & {
|
|
146
192
|
label?: string;
|
|
147
193
|
error?: string;
|
|
@@ -332,6 +378,101 @@ type DropZoneProps = {
|
|
|
332
378
|
};
|
|
333
379
|
declare function DropZone({ onFilesDropped, accept, maxFiles, maxSize, disabled, children, className, 'aria-label': ariaLabel, }: DropZoneProps): react_jsx_runtime.JSX.Element;
|
|
334
380
|
|
|
381
|
+
type FormFieldProps = {
|
|
382
|
+
label?: string;
|
|
383
|
+
error?: string;
|
|
384
|
+
helperText?: string;
|
|
385
|
+
children: ReactElement;
|
|
386
|
+
className?: string;
|
|
387
|
+
id?: string;
|
|
388
|
+
};
|
|
389
|
+
declare function FormField({ label, error, helperText, children, className, id: idProp }: FormFieldProps): react_jsx_runtime.JSX.Element;
|
|
390
|
+
|
|
391
|
+
type DividerProps = {
|
|
392
|
+
orientation?: 'horizontal' | 'vertical';
|
|
393
|
+
label?: string;
|
|
394
|
+
className?: string;
|
|
395
|
+
};
|
|
396
|
+
declare function Divider({ orientation, label, className }: DividerProps): react_jsx_runtime.JSX.Element;
|
|
397
|
+
|
|
398
|
+
type TableProps = {
|
|
399
|
+
children: ReactNode;
|
|
400
|
+
className?: string;
|
|
401
|
+
};
|
|
402
|
+
type TableHeaderProps = {
|
|
403
|
+
children: ReactNode;
|
|
404
|
+
className?: string;
|
|
405
|
+
};
|
|
406
|
+
type TableBodyProps = {
|
|
407
|
+
children: ReactNode;
|
|
408
|
+
className?: string;
|
|
409
|
+
};
|
|
410
|
+
type TableRowProps = {
|
|
411
|
+
children: ReactNode;
|
|
412
|
+
className?: string;
|
|
413
|
+
hoverable?: boolean;
|
|
414
|
+
};
|
|
415
|
+
type TableHeadProps = {
|
|
416
|
+
children: ReactNode;
|
|
417
|
+
className?: string;
|
|
418
|
+
};
|
|
419
|
+
type TableCellProps = {
|
|
420
|
+
children: ReactNode;
|
|
421
|
+
className?: string;
|
|
422
|
+
align?: 'left' | 'center' | 'right';
|
|
423
|
+
};
|
|
424
|
+
declare const Table: react.ForwardRefExoticComponent<TableProps & react.RefAttributes<HTMLTableElement>>;
|
|
425
|
+
declare const TableHeader: react.ForwardRefExoticComponent<TableHeaderProps & react.RefAttributes<HTMLTableSectionElement>>;
|
|
426
|
+
declare const TableBody: react.ForwardRefExoticComponent<TableBodyProps & react.RefAttributes<HTMLTableSectionElement>>;
|
|
427
|
+
declare const TableRow: react.ForwardRefExoticComponent<TableRowProps & react.RefAttributes<HTMLTableRowElement>>;
|
|
428
|
+
declare const TableHead: react.ForwardRefExoticComponent<TableHeadProps & react.RefAttributes<HTMLTableCellElement>>;
|
|
429
|
+
declare const TableCell: react.ForwardRefExoticComponent<TableCellProps & react.RefAttributes<HTMLTableCellElement>>;
|
|
430
|
+
|
|
431
|
+
type StatCardTrend = {
|
|
432
|
+
value: number;
|
|
433
|
+
label?: string;
|
|
434
|
+
};
|
|
435
|
+
type StatCardProps = {
|
|
436
|
+
value: string | number;
|
|
437
|
+
label: string;
|
|
438
|
+
icon?: ReactNode;
|
|
439
|
+
trend?: StatCardTrend;
|
|
440
|
+
className?: string;
|
|
441
|
+
};
|
|
442
|
+
declare function StatCard({ value, label, icon, trend, className }: StatCardProps): react_jsx_runtime.JSX.Element;
|
|
443
|
+
|
|
444
|
+
type PaginationProps = {
|
|
445
|
+
page: number;
|
|
446
|
+
totalPages: number;
|
|
447
|
+
onPageChange: (page: number) => void;
|
|
448
|
+
siblingCount?: number;
|
|
449
|
+
className?: string;
|
|
450
|
+
};
|
|
451
|
+
declare function Pagination({ page, totalPages, onPageChange, siblingCount, className, }: PaginationProps): react_jsx_runtime.JSX.Element | null;
|
|
452
|
+
|
|
453
|
+
type Step = {
|
|
454
|
+
label: string;
|
|
455
|
+
description?: string;
|
|
456
|
+
};
|
|
457
|
+
type StepperProps = {
|
|
458
|
+
steps: Step[];
|
|
459
|
+
activeStep: number;
|
|
460
|
+
className?: string;
|
|
461
|
+
};
|
|
462
|
+
declare function Stepper({ steps, activeStep, className }: StepperProps): react_jsx_runtime.JSX.Element;
|
|
463
|
+
|
|
464
|
+
type ProgressBarVariant = 'primary' | 'success' | 'warning' | 'danger';
|
|
465
|
+
type ProgressBarProps = {
|
|
466
|
+
value: number;
|
|
467
|
+
max?: number;
|
|
468
|
+
variant?: ProgressBarVariant;
|
|
469
|
+
label?: string;
|
|
470
|
+
showValue?: boolean;
|
|
471
|
+
size?: 'sm' | 'md' | 'lg';
|
|
472
|
+
className?: string;
|
|
473
|
+
};
|
|
474
|
+
declare function ProgressBar({ value, max, variant, label, showValue, size, className, }: ProgressBarProps): react_jsx_runtime.JSX.Element;
|
|
475
|
+
|
|
335
476
|
type PageShellVariant = 'plain' | 'glass' | 'minimal';
|
|
336
477
|
type PageShellProps = {
|
|
337
478
|
header?: ReactNode;
|
|
@@ -372,6 +513,25 @@ type DashboardLayoutProps = {
|
|
|
372
513
|
};
|
|
373
514
|
declare function DashboardLayout({ children, navbar, sidebar, className, mainClassName, maxWidth }: DashboardLayoutProps): react_jsx_runtime.JSX.Element;
|
|
374
515
|
|
|
516
|
+
type AlertVariant = 'info' | 'success' | 'warning' | 'error';
|
|
517
|
+
type AlertProps = {
|
|
518
|
+
variant?: AlertVariant;
|
|
519
|
+
title?: string;
|
|
520
|
+
children: ReactNode;
|
|
521
|
+
onDismiss?: () => void;
|
|
522
|
+
className?: string;
|
|
523
|
+
};
|
|
524
|
+
declare function Alert({ variant, title, children, onDismiss, className }: AlertProps): react_jsx_runtime.JSX.Element;
|
|
525
|
+
|
|
526
|
+
type CopyFieldProps = {
|
|
527
|
+
value: string;
|
|
528
|
+
label?: string;
|
|
529
|
+
masked?: boolean;
|
|
530
|
+
className?: string;
|
|
531
|
+
id?: string;
|
|
532
|
+
};
|
|
533
|
+
declare function CopyField({ value, label, masked, className, id: externalId }: CopyFieldProps): react_jsx_runtime.JSX.Element;
|
|
534
|
+
|
|
375
535
|
type ProgressButtonProps = Omit<ButtonProps, 'leftIcon' | 'rightIcon' | 'loading'> & {
|
|
376
536
|
isLoading?: boolean;
|
|
377
537
|
loadingText?: ReactNode;
|
|
@@ -409,4 +569,4 @@ type ToastContextValue = {
|
|
|
409
569
|
declare function ToastProvider({ children, position, maxToasts }: ToastProviderProps): react_jsx_runtime.JSX.Element;
|
|
410
570
|
declare function useToast(): ToastContextValue;
|
|
411
571
|
|
|
412
|
-
export { Badge, type BadgeProps, type BadgeSize, type BadgeVariant, Button, type ButtonProps, type ButtonSize, type ButtonVariant, Card, type CardProps, type CardVariant, Checkbox, type CheckboxProps, CollapsibleSection, type CollapsibleSectionProps, ConfirmDialog, type ConfirmDialogProps, type ConfirmDialogVariant, DashboardLayout, type DashboardLayoutProps, DropZone, type DropZoneProps, Dropdown, DropdownItem, type DropdownItemProps, DropdownMenu, type DropdownMenuProps, type DropdownProps, DropdownSeparator, type DropdownSeparatorProps, DropdownTrigger, type DropdownTriggerProps, EmptyState, type EmptyStateProps, IconButton, type IconButtonProps, Input, type InputProps, Modal, type ModalProps, Navbar, type NavbarProps, PageShell, type PageShellProps, type PageShellVariant, Pill, ProgressButton, type ProgressButtonProps, RadioGroup, type RadioGroupProps, RadioItem, type RadioItemProps, SearchInput, type SearchInputProps, Select, type SelectProps, Sidebar, type SidebarProps, type Size, Skeleton, type SkeletonProps, Spinner, type SpinnerProps, type SpinnerSize, Tab, TabList, type TabListProps, TabPanel, type TabPanelProps, type TabProps, Tabs, type TabsProps, type TabsVariant, Textarea, type TextareaProps, type ToastData, type ToastPosition, ToastProvider, type ToastProviderProps, type ToastVariant, Toggle, type ToggleProps, type ToggleSize, Tooltip, type TooltipPlacement, type TooltipProps, type UseClipboardReturn, type UseDisclosureReturn, cn, focusSafely, getFocusableElements, useClipboard, useDebounce, useDisclosure, useMediaQuery, useToast };
|
|
572
|
+
export { Alert, type AlertProps, type AlertVariant, Avatar, type AvatarProps, type AvatarSize, Badge, type BadgeProps, type BadgeSize, type BadgeVariant, Button, type ButtonProps, type ButtonSize, type ButtonVariant, Card, type CardProps, type CardVariant, Checkbox, type CheckboxProps, CollapsibleSection, type CollapsibleSectionProps, ColorInput, type ColorInputProps, ConfirmDialog, type ConfirmDialogProps, type ConfirmDialogVariant, CopyField, type CopyFieldProps, DashboardLayout, type DashboardLayoutProps, Divider, type DividerProps, DropZone, type DropZoneProps, Dropdown, DropdownItem, type DropdownItemProps, DropdownMenu, type DropdownMenuProps, type DropdownProps, DropdownSeparator, type DropdownSeparatorProps, DropdownTrigger, type DropdownTriggerProps, EmptyState, type EmptyStateProps, FormField, type FormFieldProps, IconButton, type IconButtonProps, Input, type InputProps, Modal, type ModalProps, Navbar, type NavbarProps, PageShell, type PageShellProps, type PageShellVariant, Pagination, type PaginationProps, Pill, ProgressBar, type ProgressBarProps, type ProgressBarVariant, ProgressButton, type ProgressButtonProps, RadioGroup, type RadioGroupProps, RadioItem, type RadioItemProps, SearchInput, type SearchInputProps, Select, type SelectProps, Sidebar, type SidebarProps, type Size, Skeleton, type SkeletonProps, Slider, type SliderProps, Spinner, type SpinnerProps, type SpinnerSize, StatCard, type StatCardProps, type StatCardTrend, type Step, Stepper, type StepperProps, Tab, TabList, type TabListProps, TabPanel, type TabPanelProps, type TabProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, type TableProps, TableRow, type TableRowProps, Tabs, type TabsProps, type TabsVariant, TagInput, type TagInputProps, Textarea, type TextareaProps, type ToastData, type ToastPosition, ToastProvider, type ToastProviderProps, type ToastVariant, Toggle, type ToggleProps, type ToggleSize, Tooltip, type TooltipPlacement, type TooltipProps, type UseClipboardReturn, type UseDisclosureReturn, cn, focusSafely, getFocusableElements, useClipboard, useDebounce, useDisclosure, useMediaQuery, useToast };
|
package/dist/index.d.ts
CHANGED
|
@@ -33,6 +33,16 @@ declare function useDebounce<T>(value: T, delayMs?: number): T;
|
|
|
33
33
|
|
|
34
34
|
type Size = 'sm' | 'md' | 'lg';
|
|
35
35
|
|
|
36
|
+
type AvatarSize = 'sm' | 'md' | 'lg' | 'xl';
|
|
37
|
+
type AvatarProps = {
|
|
38
|
+
src?: string;
|
|
39
|
+
alt?: string;
|
|
40
|
+
name?: string;
|
|
41
|
+
size?: AvatarSize;
|
|
42
|
+
className?: string;
|
|
43
|
+
};
|
|
44
|
+
declare const Avatar: react.ForwardRefExoticComponent<AvatarProps & react.RefAttributes<HTMLDivElement>>;
|
|
45
|
+
|
|
36
46
|
type ButtonVariant = 'primary' | 'success' | 'warning' | 'danger' | 'secondary' | 'ghost';
|
|
37
47
|
type ButtonSize = 'sm' | 'md' | 'lg';
|
|
38
48
|
type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
@@ -56,7 +66,7 @@ type IconButtonProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children'
|
|
|
56
66
|
size?: 'sm' | 'md' | 'lg';
|
|
57
67
|
'aria-label': string;
|
|
58
68
|
};
|
|
59
|
-
declare const IconButton: react.ForwardRefExoticComponent<Omit<ButtonHTMLAttributes<HTMLButtonElement>, "
|
|
69
|
+
declare const IconButton: react.ForwardRefExoticComponent<Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children" | "aria-label"> & {
|
|
60
70
|
icon: ReactNode;
|
|
61
71
|
variant?: "primary" | "success" | "warning" | "danger" | "secondary" | "ghost";
|
|
62
72
|
size?: "sm" | "md" | "lg";
|
|
@@ -111,6 +121,19 @@ declare const Textarea: react.ForwardRefExoticComponent<TextareaHTMLAttributes<H
|
|
|
111
121
|
helperText?: string;
|
|
112
122
|
} & react.RefAttributes<HTMLTextAreaElement>>;
|
|
113
123
|
|
|
124
|
+
type TagInputProps = {
|
|
125
|
+
value: string[];
|
|
126
|
+
onChange: (tags: string[]) => void;
|
|
127
|
+
placeholder?: string;
|
|
128
|
+
disabled?: boolean;
|
|
129
|
+
label?: string;
|
|
130
|
+
error?: string;
|
|
131
|
+
maxTags?: number;
|
|
132
|
+
className?: string;
|
|
133
|
+
id?: string;
|
|
134
|
+
};
|
|
135
|
+
declare function TagInput({ value, onChange, placeholder, disabled, label, error, maxTags, className, id: externalId, }: TagInputProps): react_jsx_runtime.JSX.Element;
|
|
136
|
+
|
|
114
137
|
type BadgeVariant = 'neutral' | 'primary' | 'success' | 'successSolid' | 'warning' | 'danger' | 'dangerSolid' | 'accent';
|
|
115
138
|
type BadgeSize = 'sm' | 'md';
|
|
116
139
|
type BadgeProps = Omit<HTMLAttributes<HTMLSpanElement>, 'children'> & {
|
|
@@ -142,6 +165,29 @@ type ToggleProps = {
|
|
|
142
165
|
};
|
|
143
166
|
declare const Toggle: react.ForwardRefExoticComponent<ToggleProps & react.RefAttributes<HTMLButtonElement>>;
|
|
144
167
|
|
|
168
|
+
type SliderProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'onChange'> & {
|
|
169
|
+
label?: string;
|
|
170
|
+
showValue?: boolean;
|
|
171
|
+
formatValue?: (value: number) => string;
|
|
172
|
+
onChange?: (value: number) => void;
|
|
173
|
+
};
|
|
174
|
+
declare const Slider: react.ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "onChange"> & {
|
|
175
|
+
label?: string;
|
|
176
|
+
showValue?: boolean;
|
|
177
|
+
formatValue?: (value: number) => string;
|
|
178
|
+
onChange?: (value: number) => void;
|
|
179
|
+
} & react.RefAttributes<HTMLInputElement>>;
|
|
180
|
+
|
|
181
|
+
type ColorInputProps = {
|
|
182
|
+
value: string;
|
|
183
|
+
onChange: (color: string) => void;
|
|
184
|
+
label?: string;
|
|
185
|
+
disabled?: boolean;
|
|
186
|
+
className?: string;
|
|
187
|
+
id?: string;
|
|
188
|
+
};
|
|
189
|
+
declare const ColorInput: react.ForwardRefExoticComponent<ColorInputProps & react.RefAttributes<HTMLInputElement>>;
|
|
190
|
+
|
|
145
191
|
type CheckboxProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'type'> & {
|
|
146
192
|
label?: string;
|
|
147
193
|
error?: string;
|
|
@@ -332,6 +378,101 @@ type DropZoneProps = {
|
|
|
332
378
|
};
|
|
333
379
|
declare function DropZone({ onFilesDropped, accept, maxFiles, maxSize, disabled, children, className, 'aria-label': ariaLabel, }: DropZoneProps): react_jsx_runtime.JSX.Element;
|
|
334
380
|
|
|
381
|
+
type FormFieldProps = {
|
|
382
|
+
label?: string;
|
|
383
|
+
error?: string;
|
|
384
|
+
helperText?: string;
|
|
385
|
+
children: ReactElement;
|
|
386
|
+
className?: string;
|
|
387
|
+
id?: string;
|
|
388
|
+
};
|
|
389
|
+
declare function FormField({ label, error, helperText, children, className, id: idProp }: FormFieldProps): react_jsx_runtime.JSX.Element;
|
|
390
|
+
|
|
391
|
+
type DividerProps = {
|
|
392
|
+
orientation?: 'horizontal' | 'vertical';
|
|
393
|
+
label?: string;
|
|
394
|
+
className?: string;
|
|
395
|
+
};
|
|
396
|
+
declare function Divider({ orientation, label, className }: DividerProps): react_jsx_runtime.JSX.Element;
|
|
397
|
+
|
|
398
|
+
type TableProps = {
|
|
399
|
+
children: ReactNode;
|
|
400
|
+
className?: string;
|
|
401
|
+
};
|
|
402
|
+
type TableHeaderProps = {
|
|
403
|
+
children: ReactNode;
|
|
404
|
+
className?: string;
|
|
405
|
+
};
|
|
406
|
+
type TableBodyProps = {
|
|
407
|
+
children: ReactNode;
|
|
408
|
+
className?: string;
|
|
409
|
+
};
|
|
410
|
+
type TableRowProps = {
|
|
411
|
+
children: ReactNode;
|
|
412
|
+
className?: string;
|
|
413
|
+
hoverable?: boolean;
|
|
414
|
+
};
|
|
415
|
+
type TableHeadProps = {
|
|
416
|
+
children: ReactNode;
|
|
417
|
+
className?: string;
|
|
418
|
+
};
|
|
419
|
+
type TableCellProps = {
|
|
420
|
+
children: ReactNode;
|
|
421
|
+
className?: string;
|
|
422
|
+
align?: 'left' | 'center' | 'right';
|
|
423
|
+
};
|
|
424
|
+
declare const Table: react.ForwardRefExoticComponent<TableProps & react.RefAttributes<HTMLTableElement>>;
|
|
425
|
+
declare const TableHeader: react.ForwardRefExoticComponent<TableHeaderProps & react.RefAttributes<HTMLTableSectionElement>>;
|
|
426
|
+
declare const TableBody: react.ForwardRefExoticComponent<TableBodyProps & react.RefAttributes<HTMLTableSectionElement>>;
|
|
427
|
+
declare const TableRow: react.ForwardRefExoticComponent<TableRowProps & react.RefAttributes<HTMLTableRowElement>>;
|
|
428
|
+
declare const TableHead: react.ForwardRefExoticComponent<TableHeadProps & react.RefAttributes<HTMLTableCellElement>>;
|
|
429
|
+
declare const TableCell: react.ForwardRefExoticComponent<TableCellProps & react.RefAttributes<HTMLTableCellElement>>;
|
|
430
|
+
|
|
431
|
+
type StatCardTrend = {
|
|
432
|
+
value: number;
|
|
433
|
+
label?: string;
|
|
434
|
+
};
|
|
435
|
+
type StatCardProps = {
|
|
436
|
+
value: string | number;
|
|
437
|
+
label: string;
|
|
438
|
+
icon?: ReactNode;
|
|
439
|
+
trend?: StatCardTrend;
|
|
440
|
+
className?: string;
|
|
441
|
+
};
|
|
442
|
+
declare function StatCard({ value, label, icon, trend, className }: StatCardProps): react_jsx_runtime.JSX.Element;
|
|
443
|
+
|
|
444
|
+
type PaginationProps = {
|
|
445
|
+
page: number;
|
|
446
|
+
totalPages: number;
|
|
447
|
+
onPageChange: (page: number) => void;
|
|
448
|
+
siblingCount?: number;
|
|
449
|
+
className?: string;
|
|
450
|
+
};
|
|
451
|
+
declare function Pagination({ page, totalPages, onPageChange, siblingCount, className, }: PaginationProps): react_jsx_runtime.JSX.Element | null;
|
|
452
|
+
|
|
453
|
+
type Step = {
|
|
454
|
+
label: string;
|
|
455
|
+
description?: string;
|
|
456
|
+
};
|
|
457
|
+
type StepperProps = {
|
|
458
|
+
steps: Step[];
|
|
459
|
+
activeStep: number;
|
|
460
|
+
className?: string;
|
|
461
|
+
};
|
|
462
|
+
declare function Stepper({ steps, activeStep, className }: StepperProps): react_jsx_runtime.JSX.Element;
|
|
463
|
+
|
|
464
|
+
type ProgressBarVariant = 'primary' | 'success' | 'warning' | 'danger';
|
|
465
|
+
type ProgressBarProps = {
|
|
466
|
+
value: number;
|
|
467
|
+
max?: number;
|
|
468
|
+
variant?: ProgressBarVariant;
|
|
469
|
+
label?: string;
|
|
470
|
+
showValue?: boolean;
|
|
471
|
+
size?: 'sm' | 'md' | 'lg';
|
|
472
|
+
className?: string;
|
|
473
|
+
};
|
|
474
|
+
declare function ProgressBar({ value, max, variant, label, showValue, size, className, }: ProgressBarProps): react_jsx_runtime.JSX.Element;
|
|
475
|
+
|
|
335
476
|
type PageShellVariant = 'plain' | 'glass' | 'minimal';
|
|
336
477
|
type PageShellProps = {
|
|
337
478
|
header?: ReactNode;
|
|
@@ -372,6 +513,25 @@ type DashboardLayoutProps = {
|
|
|
372
513
|
};
|
|
373
514
|
declare function DashboardLayout({ children, navbar, sidebar, className, mainClassName, maxWidth }: DashboardLayoutProps): react_jsx_runtime.JSX.Element;
|
|
374
515
|
|
|
516
|
+
type AlertVariant = 'info' | 'success' | 'warning' | 'error';
|
|
517
|
+
type AlertProps = {
|
|
518
|
+
variant?: AlertVariant;
|
|
519
|
+
title?: string;
|
|
520
|
+
children: ReactNode;
|
|
521
|
+
onDismiss?: () => void;
|
|
522
|
+
className?: string;
|
|
523
|
+
};
|
|
524
|
+
declare function Alert({ variant, title, children, onDismiss, className }: AlertProps): react_jsx_runtime.JSX.Element;
|
|
525
|
+
|
|
526
|
+
type CopyFieldProps = {
|
|
527
|
+
value: string;
|
|
528
|
+
label?: string;
|
|
529
|
+
masked?: boolean;
|
|
530
|
+
className?: string;
|
|
531
|
+
id?: string;
|
|
532
|
+
};
|
|
533
|
+
declare function CopyField({ value, label, masked, className, id: externalId }: CopyFieldProps): react_jsx_runtime.JSX.Element;
|
|
534
|
+
|
|
375
535
|
type ProgressButtonProps = Omit<ButtonProps, 'leftIcon' | 'rightIcon' | 'loading'> & {
|
|
376
536
|
isLoading?: boolean;
|
|
377
537
|
loadingText?: ReactNode;
|
|
@@ -409,4 +569,4 @@ type ToastContextValue = {
|
|
|
409
569
|
declare function ToastProvider({ children, position, maxToasts }: ToastProviderProps): react_jsx_runtime.JSX.Element;
|
|
410
570
|
declare function useToast(): ToastContextValue;
|
|
411
571
|
|
|
412
|
-
export { Badge, type BadgeProps, type BadgeSize, type BadgeVariant, Button, type ButtonProps, type ButtonSize, type ButtonVariant, Card, type CardProps, type CardVariant, Checkbox, type CheckboxProps, CollapsibleSection, type CollapsibleSectionProps, ConfirmDialog, type ConfirmDialogProps, type ConfirmDialogVariant, DashboardLayout, type DashboardLayoutProps, DropZone, type DropZoneProps, Dropdown, DropdownItem, type DropdownItemProps, DropdownMenu, type DropdownMenuProps, type DropdownProps, DropdownSeparator, type DropdownSeparatorProps, DropdownTrigger, type DropdownTriggerProps, EmptyState, type EmptyStateProps, IconButton, type IconButtonProps, Input, type InputProps, Modal, type ModalProps, Navbar, type NavbarProps, PageShell, type PageShellProps, type PageShellVariant, Pill, ProgressButton, type ProgressButtonProps, RadioGroup, type RadioGroupProps, RadioItem, type RadioItemProps, SearchInput, type SearchInputProps, Select, type SelectProps, Sidebar, type SidebarProps, type Size, Skeleton, type SkeletonProps, Spinner, type SpinnerProps, type SpinnerSize, Tab, TabList, type TabListProps, TabPanel, type TabPanelProps, type TabProps, Tabs, type TabsProps, type TabsVariant, Textarea, type TextareaProps, type ToastData, type ToastPosition, ToastProvider, type ToastProviderProps, type ToastVariant, Toggle, type ToggleProps, type ToggleSize, Tooltip, type TooltipPlacement, type TooltipProps, type UseClipboardReturn, type UseDisclosureReturn, cn, focusSafely, getFocusableElements, useClipboard, useDebounce, useDisclosure, useMediaQuery, useToast };
|
|
572
|
+
export { Alert, type AlertProps, type AlertVariant, Avatar, type AvatarProps, type AvatarSize, Badge, type BadgeProps, type BadgeSize, type BadgeVariant, Button, type ButtonProps, type ButtonSize, type ButtonVariant, Card, type CardProps, type CardVariant, Checkbox, type CheckboxProps, CollapsibleSection, type CollapsibleSectionProps, ColorInput, type ColorInputProps, ConfirmDialog, type ConfirmDialogProps, type ConfirmDialogVariant, CopyField, type CopyFieldProps, DashboardLayout, type DashboardLayoutProps, Divider, type DividerProps, DropZone, type DropZoneProps, Dropdown, DropdownItem, type DropdownItemProps, DropdownMenu, type DropdownMenuProps, type DropdownProps, DropdownSeparator, type DropdownSeparatorProps, DropdownTrigger, type DropdownTriggerProps, EmptyState, type EmptyStateProps, FormField, type FormFieldProps, IconButton, type IconButtonProps, Input, type InputProps, Modal, type ModalProps, Navbar, type NavbarProps, PageShell, type PageShellProps, type PageShellVariant, Pagination, type PaginationProps, Pill, ProgressBar, type ProgressBarProps, type ProgressBarVariant, ProgressButton, type ProgressButtonProps, RadioGroup, type RadioGroupProps, RadioItem, type RadioItemProps, SearchInput, type SearchInputProps, Select, type SelectProps, Sidebar, type SidebarProps, type Size, Skeleton, type SkeletonProps, Slider, type SliderProps, Spinner, type SpinnerProps, type SpinnerSize, StatCard, type StatCardProps, type StatCardTrend, type Step, Stepper, type StepperProps, Tab, TabList, type TabListProps, TabPanel, type TabPanelProps, type TabProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, type TableProps, TableRow, type TableRowProps, Tabs, type TabsProps, type TabsVariant, TagInput, type TagInputProps, Textarea, type TextareaProps, type ToastData, type ToastPosition, ToastProvider, type ToastProviderProps, type ToastVariant, Toggle, type ToggleProps, type ToggleSize, Tooltip, type TooltipPlacement, type TooltipProps, type UseClipboardReturn, type UseDisclosureReturn, cn, focusSafely, getFocusableElements, useClipboard, useDebounce, useDisclosure, useMediaQuery, useToast };
|