@memelabui/ui 0.2.0 → 0.4.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 +34 -5
- package/dist/index.cjs +1704 -204
- package/dist/index.d.cts +223 -2
- package/dist/index.d.ts +223 -2
- package/dist/index.js +1561 -89
- package/dist/styles/index.css +404 -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'> & {
|
|
@@ -135,6 +158,7 @@ type ToggleProps = {
|
|
|
135
158
|
checked: boolean;
|
|
136
159
|
onChange: (checked: boolean) => void;
|
|
137
160
|
disabled?: boolean;
|
|
161
|
+
busy?: boolean;
|
|
138
162
|
label?: string;
|
|
139
163
|
size?: ToggleSize;
|
|
140
164
|
id?: string;
|
|
@@ -142,6 +166,29 @@ type ToggleProps = {
|
|
|
142
166
|
};
|
|
143
167
|
declare const Toggle: react.ForwardRefExoticComponent<ToggleProps & react.RefAttributes<HTMLButtonElement>>;
|
|
144
168
|
|
|
169
|
+
type SliderProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'onChange'> & {
|
|
170
|
+
label?: string;
|
|
171
|
+
showValue?: boolean;
|
|
172
|
+
formatValue?: (value: number) => string;
|
|
173
|
+
onChange?: (value: number) => void;
|
|
174
|
+
};
|
|
175
|
+
declare const Slider: react.ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "onChange"> & {
|
|
176
|
+
label?: string;
|
|
177
|
+
showValue?: boolean;
|
|
178
|
+
formatValue?: (value: number) => string;
|
|
179
|
+
onChange?: (value: number) => void;
|
|
180
|
+
} & react.RefAttributes<HTMLInputElement>>;
|
|
181
|
+
|
|
182
|
+
type ColorInputProps = {
|
|
183
|
+
value: string;
|
|
184
|
+
onChange: (color: string) => void;
|
|
185
|
+
label?: string;
|
|
186
|
+
disabled?: boolean;
|
|
187
|
+
className?: string;
|
|
188
|
+
id?: string;
|
|
189
|
+
};
|
|
190
|
+
declare const ColorInput: react.ForwardRefExoticComponent<ColorInputProps & react.RefAttributes<HTMLInputElement>>;
|
|
191
|
+
|
|
145
192
|
type CheckboxProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'type'> & {
|
|
146
193
|
label?: string;
|
|
147
194
|
error?: string;
|
|
@@ -332,6 +379,151 @@ type DropZoneProps = {
|
|
|
332
379
|
};
|
|
333
380
|
declare function DropZone({ onFilesDropped, accept, maxFiles, maxSize, disabled, children, className, 'aria-label': ariaLabel, }: DropZoneProps): react_jsx_runtime.JSX.Element;
|
|
334
381
|
|
|
382
|
+
type FormFieldProps = {
|
|
383
|
+
label?: string;
|
|
384
|
+
error?: string;
|
|
385
|
+
helperText?: string;
|
|
386
|
+
children: ReactElement;
|
|
387
|
+
className?: string;
|
|
388
|
+
id?: string;
|
|
389
|
+
};
|
|
390
|
+
declare function FormField({ label, error, helperText, children, className, id: idProp }: FormFieldProps): react_jsx_runtime.JSX.Element;
|
|
391
|
+
|
|
392
|
+
type DividerProps = {
|
|
393
|
+
orientation?: 'horizontal' | 'vertical';
|
|
394
|
+
label?: string;
|
|
395
|
+
className?: string;
|
|
396
|
+
};
|
|
397
|
+
declare function Divider({ orientation, label, className }: DividerProps): react_jsx_runtime.JSX.Element;
|
|
398
|
+
|
|
399
|
+
type TableProps = {
|
|
400
|
+
children: ReactNode;
|
|
401
|
+
className?: string;
|
|
402
|
+
};
|
|
403
|
+
type TableHeaderProps = {
|
|
404
|
+
children: ReactNode;
|
|
405
|
+
className?: string;
|
|
406
|
+
};
|
|
407
|
+
type TableBodyProps = {
|
|
408
|
+
children: ReactNode;
|
|
409
|
+
className?: string;
|
|
410
|
+
};
|
|
411
|
+
type TableRowProps = {
|
|
412
|
+
children: ReactNode;
|
|
413
|
+
className?: string;
|
|
414
|
+
hoverable?: boolean;
|
|
415
|
+
};
|
|
416
|
+
type TableHeadProps = {
|
|
417
|
+
children: ReactNode;
|
|
418
|
+
className?: string;
|
|
419
|
+
};
|
|
420
|
+
type TableCellProps = {
|
|
421
|
+
children: ReactNode;
|
|
422
|
+
className?: string;
|
|
423
|
+
align?: 'left' | 'center' | 'right';
|
|
424
|
+
};
|
|
425
|
+
declare const Table: react.ForwardRefExoticComponent<TableProps & react.RefAttributes<HTMLTableElement>>;
|
|
426
|
+
declare const TableHeader: react.ForwardRefExoticComponent<TableHeaderProps & react.RefAttributes<HTMLTableSectionElement>>;
|
|
427
|
+
declare const TableBody: react.ForwardRefExoticComponent<TableBodyProps & react.RefAttributes<HTMLTableSectionElement>>;
|
|
428
|
+
declare const TableRow: react.ForwardRefExoticComponent<TableRowProps & react.RefAttributes<HTMLTableRowElement>>;
|
|
429
|
+
declare const TableHead: react.ForwardRefExoticComponent<TableHeadProps & react.RefAttributes<HTMLTableCellElement>>;
|
|
430
|
+
declare const TableCell: react.ForwardRefExoticComponent<TableCellProps & react.RefAttributes<HTMLTableCellElement>>;
|
|
431
|
+
|
|
432
|
+
type StatCardTrend = {
|
|
433
|
+
value: number;
|
|
434
|
+
label?: string;
|
|
435
|
+
};
|
|
436
|
+
type StatCardProps = {
|
|
437
|
+
value: string | number;
|
|
438
|
+
label: string;
|
|
439
|
+
icon?: ReactNode;
|
|
440
|
+
trend?: StatCardTrend;
|
|
441
|
+
className?: string;
|
|
442
|
+
};
|
|
443
|
+
declare function StatCard({ value, label, icon, trend, className }: StatCardProps): react_jsx_runtime.JSX.Element;
|
|
444
|
+
|
|
445
|
+
type PaginationProps = {
|
|
446
|
+
page: number;
|
|
447
|
+
totalPages: number;
|
|
448
|
+
onPageChange: (page: number) => void;
|
|
449
|
+
siblingCount?: number;
|
|
450
|
+
className?: string;
|
|
451
|
+
};
|
|
452
|
+
declare function Pagination({ page, totalPages, onPageChange, siblingCount, className, }: PaginationProps): react_jsx_runtime.JSX.Element | null;
|
|
453
|
+
|
|
454
|
+
type Step = {
|
|
455
|
+
label: string;
|
|
456
|
+
description?: string;
|
|
457
|
+
};
|
|
458
|
+
type StepperProps = {
|
|
459
|
+
steps: Step[];
|
|
460
|
+
activeStep: number;
|
|
461
|
+
className?: string;
|
|
462
|
+
};
|
|
463
|
+
declare function Stepper({ steps, activeStep, className }: StepperProps): react_jsx_runtime.JSX.Element;
|
|
464
|
+
|
|
465
|
+
type ProgressBarVariant = 'primary' | 'success' | 'warning' | 'danger';
|
|
466
|
+
type ProgressBarProps = {
|
|
467
|
+
value: number;
|
|
468
|
+
max?: number;
|
|
469
|
+
variant?: ProgressBarVariant;
|
|
470
|
+
label?: string;
|
|
471
|
+
showValue?: boolean;
|
|
472
|
+
size?: 'sm' | 'md' | 'lg';
|
|
473
|
+
className?: string;
|
|
474
|
+
};
|
|
475
|
+
declare function ProgressBar({ value, max, variant, label, showValue, size, className, }: ProgressBarProps): react_jsx_runtime.JSX.Element;
|
|
476
|
+
|
|
477
|
+
type CooldownRingSize = 'sm' | 'md' | 'lg';
|
|
478
|
+
type CooldownRingProps = {
|
|
479
|
+
duration: number;
|
|
480
|
+
remaining: number;
|
|
481
|
+
onTick?: () => void;
|
|
482
|
+
onComplete?: () => void;
|
|
483
|
+
size?: CooldownRingSize;
|
|
484
|
+
className?: string;
|
|
485
|
+
};
|
|
486
|
+
declare function CooldownRing({ duration, remaining, size, className, }: CooldownRingProps): react_jsx_runtime.JSX.Element;
|
|
487
|
+
|
|
488
|
+
type StageProgressProps = {
|
|
489
|
+
stages: string[];
|
|
490
|
+
activeStage: number;
|
|
491
|
+
className?: string;
|
|
492
|
+
};
|
|
493
|
+
declare function StageProgress({ stages, activeStage, className }: StageProgressProps): react_jsx_runtime.JSX.Element;
|
|
494
|
+
|
|
495
|
+
type DotIndicatorProps = {
|
|
496
|
+
remaining: number;
|
|
497
|
+
max: number;
|
|
498
|
+
showLabel?: boolean;
|
|
499
|
+
labelFormat?: (remaining: number, max: number) => string;
|
|
500
|
+
className?: string;
|
|
501
|
+
};
|
|
502
|
+
declare function DotIndicator({ remaining, max, showLabel, labelFormat, className, }: DotIndicatorProps): react_jsx_runtime.JSX.Element;
|
|
503
|
+
|
|
504
|
+
type FilterPill = {
|
|
505
|
+
key: string;
|
|
506
|
+
label: string;
|
|
507
|
+
};
|
|
508
|
+
type ActiveFilterPillsProps = {
|
|
509
|
+
filters: FilterPill[];
|
|
510
|
+
onRemove: (key: string) => void;
|
|
511
|
+
onClearAll?: () => void;
|
|
512
|
+
clearAllLabel?: string;
|
|
513
|
+
className?: string;
|
|
514
|
+
};
|
|
515
|
+
declare function ActiveFilterPills({ filters, onRemove, onClearAll, clearAllLabel, className, }: ActiveFilterPillsProps): react_jsx_runtime.JSX.Element | null;
|
|
516
|
+
|
|
517
|
+
type SectionCardProps = {
|
|
518
|
+
title: string;
|
|
519
|
+
description?: string;
|
|
520
|
+
right?: ReactNode;
|
|
521
|
+
overlay?: ReactNode;
|
|
522
|
+
children: ReactNode;
|
|
523
|
+
className?: string;
|
|
524
|
+
};
|
|
525
|
+
declare function SectionCard({ title, description, right, overlay, children, className, }: SectionCardProps): react_jsx_runtime.JSX.Element;
|
|
526
|
+
|
|
335
527
|
type PageShellVariant = 'plain' | 'glass' | 'minimal';
|
|
336
528
|
type PageShellProps = {
|
|
337
529
|
header?: ReactNode;
|
|
@@ -372,6 +564,25 @@ type DashboardLayoutProps = {
|
|
|
372
564
|
};
|
|
373
565
|
declare function DashboardLayout({ children, navbar, sidebar, className, mainClassName, maxWidth }: DashboardLayoutProps): react_jsx_runtime.JSX.Element;
|
|
374
566
|
|
|
567
|
+
type AlertVariant = 'info' | 'success' | 'warning' | 'error';
|
|
568
|
+
type AlertProps = {
|
|
569
|
+
variant?: AlertVariant;
|
|
570
|
+
title?: string;
|
|
571
|
+
children: ReactNode;
|
|
572
|
+
onDismiss?: () => void;
|
|
573
|
+
className?: string;
|
|
574
|
+
};
|
|
575
|
+
declare function Alert({ variant, title, children, onDismiss, className }: AlertProps): react_jsx_runtime.JSX.Element;
|
|
576
|
+
|
|
577
|
+
type CopyFieldProps = {
|
|
578
|
+
value: string;
|
|
579
|
+
label?: string;
|
|
580
|
+
masked?: boolean;
|
|
581
|
+
className?: string;
|
|
582
|
+
id?: string;
|
|
583
|
+
};
|
|
584
|
+
declare function CopyField({ value, label, masked, className, id: externalId }: CopyFieldProps): react_jsx_runtime.JSX.Element;
|
|
585
|
+
|
|
375
586
|
type ProgressButtonProps = Omit<ButtonProps, 'leftIcon' | 'rightIcon' | 'loading'> & {
|
|
376
587
|
isLoading?: boolean;
|
|
377
588
|
loadingText?: ReactNode;
|
|
@@ -409,4 +620,14 @@ type ToastContextValue = {
|
|
|
409
620
|
declare function ToastProvider({ children, position, maxToasts }: ToastProviderProps): react_jsx_runtime.JSX.Element;
|
|
410
621
|
declare function useToast(): ToastContextValue;
|
|
411
622
|
|
|
412
|
-
|
|
623
|
+
type MutationOverlayStatus = 'idle' | 'saving' | 'saved' | 'error';
|
|
624
|
+
type MutationOverlayProps = {
|
|
625
|
+
status: MutationOverlayStatus;
|
|
626
|
+
savingText?: string;
|
|
627
|
+
savedText?: string;
|
|
628
|
+
errorText?: string;
|
|
629
|
+
className?: string;
|
|
630
|
+
};
|
|
631
|
+
declare function MutationOverlay({ status, savingText, savedText, errorText, className, }: MutationOverlayProps): react_jsx_runtime.JSX.Element | null;
|
|
632
|
+
|
|
633
|
+
export { ActiveFilterPills, type ActiveFilterPillsProps, 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, CooldownRing, type CooldownRingProps, type CooldownRingSize, CopyField, type CopyFieldProps, DashboardLayout, type DashboardLayoutProps, Divider, type DividerProps, DotIndicator, type DotIndicatorProps, DropZone, type DropZoneProps, Dropdown, DropdownItem, type DropdownItemProps, DropdownMenu, type DropdownMenuProps, type DropdownProps, DropdownSeparator, type DropdownSeparatorProps, DropdownTrigger, type DropdownTriggerProps, EmptyState, type EmptyStateProps, type FilterPill, FormField, type FormFieldProps, IconButton, type IconButtonProps, Input, type InputProps, Modal, type ModalProps, MutationOverlay, type MutationOverlayProps, type MutationOverlayStatus, 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, SectionCard, type SectionCardProps, Select, type SelectProps, Sidebar, type SidebarProps, type Size, Skeleton, type SkeletonProps, Slider, type SliderProps, Spinner, type SpinnerProps, type SpinnerSize, StageProgress, type StageProgressProps, 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'> & {
|
|
@@ -135,6 +158,7 @@ type ToggleProps = {
|
|
|
135
158
|
checked: boolean;
|
|
136
159
|
onChange: (checked: boolean) => void;
|
|
137
160
|
disabled?: boolean;
|
|
161
|
+
busy?: boolean;
|
|
138
162
|
label?: string;
|
|
139
163
|
size?: ToggleSize;
|
|
140
164
|
id?: string;
|
|
@@ -142,6 +166,29 @@ type ToggleProps = {
|
|
|
142
166
|
};
|
|
143
167
|
declare const Toggle: react.ForwardRefExoticComponent<ToggleProps & react.RefAttributes<HTMLButtonElement>>;
|
|
144
168
|
|
|
169
|
+
type SliderProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'onChange'> & {
|
|
170
|
+
label?: string;
|
|
171
|
+
showValue?: boolean;
|
|
172
|
+
formatValue?: (value: number) => string;
|
|
173
|
+
onChange?: (value: number) => void;
|
|
174
|
+
};
|
|
175
|
+
declare const Slider: react.ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "onChange"> & {
|
|
176
|
+
label?: string;
|
|
177
|
+
showValue?: boolean;
|
|
178
|
+
formatValue?: (value: number) => string;
|
|
179
|
+
onChange?: (value: number) => void;
|
|
180
|
+
} & react.RefAttributes<HTMLInputElement>>;
|
|
181
|
+
|
|
182
|
+
type ColorInputProps = {
|
|
183
|
+
value: string;
|
|
184
|
+
onChange: (color: string) => void;
|
|
185
|
+
label?: string;
|
|
186
|
+
disabled?: boolean;
|
|
187
|
+
className?: string;
|
|
188
|
+
id?: string;
|
|
189
|
+
};
|
|
190
|
+
declare const ColorInput: react.ForwardRefExoticComponent<ColorInputProps & react.RefAttributes<HTMLInputElement>>;
|
|
191
|
+
|
|
145
192
|
type CheckboxProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'type'> & {
|
|
146
193
|
label?: string;
|
|
147
194
|
error?: string;
|
|
@@ -332,6 +379,151 @@ type DropZoneProps = {
|
|
|
332
379
|
};
|
|
333
380
|
declare function DropZone({ onFilesDropped, accept, maxFiles, maxSize, disabled, children, className, 'aria-label': ariaLabel, }: DropZoneProps): react_jsx_runtime.JSX.Element;
|
|
334
381
|
|
|
382
|
+
type FormFieldProps = {
|
|
383
|
+
label?: string;
|
|
384
|
+
error?: string;
|
|
385
|
+
helperText?: string;
|
|
386
|
+
children: ReactElement;
|
|
387
|
+
className?: string;
|
|
388
|
+
id?: string;
|
|
389
|
+
};
|
|
390
|
+
declare function FormField({ label, error, helperText, children, className, id: idProp }: FormFieldProps): react_jsx_runtime.JSX.Element;
|
|
391
|
+
|
|
392
|
+
type DividerProps = {
|
|
393
|
+
orientation?: 'horizontal' | 'vertical';
|
|
394
|
+
label?: string;
|
|
395
|
+
className?: string;
|
|
396
|
+
};
|
|
397
|
+
declare function Divider({ orientation, label, className }: DividerProps): react_jsx_runtime.JSX.Element;
|
|
398
|
+
|
|
399
|
+
type TableProps = {
|
|
400
|
+
children: ReactNode;
|
|
401
|
+
className?: string;
|
|
402
|
+
};
|
|
403
|
+
type TableHeaderProps = {
|
|
404
|
+
children: ReactNode;
|
|
405
|
+
className?: string;
|
|
406
|
+
};
|
|
407
|
+
type TableBodyProps = {
|
|
408
|
+
children: ReactNode;
|
|
409
|
+
className?: string;
|
|
410
|
+
};
|
|
411
|
+
type TableRowProps = {
|
|
412
|
+
children: ReactNode;
|
|
413
|
+
className?: string;
|
|
414
|
+
hoverable?: boolean;
|
|
415
|
+
};
|
|
416
|
+
type TableHeadProps = {
|
|
417
|
+
children: ReactNode;
|
|
418
|
+
className?: string;
|
|
419
|
+
};
|
|
420
|
+
type TableCellProps = {
|
|
421
|
+
children: ReactNode;
|
|
422
|
+
className?: string;
|
|
423
|
+
align?: 'left' | 'center' | 'right';
|
|
424
|
+
};
|
|
425
|
+
declare const Table: react.ForwardRefExoticComponent<TableProps & react.RefAttributes<HTMLTableElement>>;
|
|
426
|
+
declare const TableHeader: react.ForwardRefExoticComponent<TableHeaderProps & react.RefAttributes<HTMLTableSectionElement>>;
|
|
427
|
+
declare const TableBody: react.ForwardRefExoticComponent<TableBodyProps & react.RefAttributes<HTMLTableSectionElement>>;
|
|
428
|
+
declare const TableRow: react.ForwardRefExoticComponent<TableRowProps & react.RefAttributes<HTMLTableRowElement>>;
|
|
429
|
+
declare const TableHead: react.ForwardRefExoticComponent<TableHeadProps & react.RefAttributes<HTMLTableCellElement>>;
|
|
430
|
+
declare const TableCell: react.ForwardRefExoticComponent<TableCellProps & react.RefAttributes<HTMLTableCellElement>>;
|
|
431
|
+
|
|
432
|
+
type StatCardTrend = {
|
|
433
|
+
value: number;
|
|
434
|
+
label?: string;
|
|
435
|
+
};
|
|
436
|
+
type StatCardProps = {
|
|
437
|
+
value: string | number;
|
|
438
|
+
label: string;
|
|
439
|
+
icon?: ReactNode;
|
|
440
|
+
trend?: StatCardTrend;
|
|
441
|
+
className?: string;
|
|
442
|
+
};
|
|
443
|
+
declare function StatCard({ value, label, icon, trend, className }: StatCardProps): react_jsx_runtime.JSX.Element;
|
|
444
|
+
|
|
445
|
+
type PaginationProps = {
|
|
446
|
+
page: number;
|
|
447
|
+
totalPages: number;
|
|
448
|
+
onPageChange: (page: number) => void;
|
|
449
|
+
siblingCount?: number;
|
|
450
|
+
className?: string;
|
|
451
|
+
};
|
|
452
|
+
declare function Pagination({ page, totalPages, onPageChange, siblingCount, className, }: PaginationProps): react_jsx_runtime.JSX.Element | null;
|
|
453
|
+
|
|
454
|
+
type Step = {
|
|
455
|
+
label: string;
|
|
456
|
+
description?: string;
|
|
457
|
+
};
|
|
458
|
+
type StepperProps = {
|
|
459
|
+
steps: Step[];
|
|
460
|
+
activeStep: number;
|
|
461
|
+
className?: string;
|
|
462
|
+
};
|
|
463
|
+
declare function Stepper({ steps, activeStep, className }: StepperProps): react_jsx_runtime.JSX.Element;
|
|
464
|
+
|
|
465
|
+
type ProgressBarVariant = 'primary' | 'success' | 'warning' | 'danger';
|
|
466
|
+
type ProgressBarProps = {
|
|
467
|
+
value: number;
|
|
468
|
+
max?: number;
|
|
469
|
+
variant?: ProgressBarVariant;
|
|
470
|
+
label?: string;
|
|
471
|
+
showValue?: boolean;
|
|
472
|
+
size?: 'sm' | 'md' | 'lg';
|
|
473
|
+
className?: string;
|
|
474
|
+
};
|
|
475
|
+
declare function ProgressBar({ value, max, variant, label, showValue, size, className, }: ProgressBarProps): react_jsx_runtime.JSX.Element;
|
|
476
|
+
|
|
477
|
+
type CooldownRingSize = 'sm' | 'md' | 'lg';
|
|
478
|
+
type CooldownRingProps = {
|
|
479
|
+
duration: number;
|
|
480
|
+
remaining: number;
|
|
481
|
+
onTick?: () => void;
|
|
482
|
+
onComplete?: () => void;
|
|
483
|
+
size?: CooldownRingSize;
|
|
484
|
+
className?: string;
|
|
485
|
+
};
|
|
486
|
+
declare function CooldownRing({ duration, remaining, size, className, }: CooldownRingProps): react_jsx_runtime.JSX.Element;
|
|
487
|
+
|
|
488
|
+
type StageProgressProps = {
|
|
489
|
+
stages: string[];
|
|
490
|
+
activeStage: number;
|
|
491
|
+
className?: string;
|
|
492
|
+
};
|
|
493
|
+
declare function StageProgress({ stages, activeStage, className }: StageProgressProps): react_jsx_runtime.JSX.Element;
|
|
494
|
+
|
|
495
|
+
type DotIndicatorProps = {
|
|
496
|
+
remaining: number;
|
|
497
|
+
max: number;
|
|
498
|
+
showLabel?: boolean;
|
|
499
|
+
labelFormat?: (remaining: number, max: number) => string;
|
|
500
|
+
className?: string;
|
|
501
|
+
};
|
|
502
|
+
declare function DotIndicator({ remaining, max, showLabel, labelFormat, className, }: DotIndicatorProps): react_jsx_runtime.JSX.Element;
|
|
503
|
+
|
|
504
|
+
type FilterPill = {
|
|
505
|
+
key: string;
|
|
506
|
+
label: string;
|
|
507
|
+
};
|
|
508
|
+
type ActiveFilterPillsProps = {
|
|
509
|
+
filters: FilterPill[];
|
|
510
|
+
onRemove: (key: string) => void;
|
|
511
|
+
onClearAll?: () => void;
|
|
512
|
+
clearAllLabel?: string;
|
|
513
|
+
className?: string;
|
|
514
|
+
};
|
|
515
|
+
declare function ActiveFilterPills({ filters, onRemove, onClearAll, clearAllLabel, className, }: ActiveFilterPillsProps): react_jsx_runtime.JSX.Element | null;
|
|
516
|
+
|
|
517
|
+
type SectionCardProps = {
|
|
518
|
+
title: string;
|
|
519
|
+
description?: string;
|
|
520
|
+
right?: ReactNode;
|
|
521
|
+
overlay?: ReactNode;
|
|
522
|
+
children: ReactNode;
|
|
523
|
+
className?: string;
|
|
524
|
+
};
|
|
525
|
+
declare function SectionCard({ title, description, right, overlay, children, className, }: SectionCardProps): react_jsx_runtime.JSX.Element;
|
|
526
|
+
|
|
335
527
|
type PageShellVariant = 'plain' | 'glass' | 'minimal';
|
|
336
528
|
type PageShellProps = {
|
|
337
529
|
header?: ReactNode;
|
|
@@ -372,6 +564,25 @@ type DashboardLayoutProps = {
|
|
|
372
564
|
};
|
|
373
565
|
declare function DashboardLayout({ children, navbar, sidebar, className, mainClassName, maxWidth }: DashboardLayoutProps): react_jsx_runtime.JSX.Element;
|
|
374
566
|
|
|
567
|
+
type AlertVariant = 'info' | 'success' | 'warning' | 'error';
|
|
568
|
+
type AlertProps = {
|
|
569
|
+
variant?: AlertVariant;
|
|
570
|
+
title?: string;
|
|
571
|
+
children: ReactNode;
|
|
572
|
+
onDismiss?: () => void;
|
|
573
|
+
className?: string;
|
|
574
|
+
};
|
|
575
|
+
declare function Alert({ variant, title, children, onDismiss, className }: AlertProps): react_jsx_runtime.JSX.Element;
|
|
576
|
+
|
|
577
|
+
type CopyFieldProps = {
|
|
578
|
+
value: string;
|
|
579
|
+
label?: string;
|
|
580
|
+
masked?: boolean;
|
|
581
|
+
className?: string;
|
|
582
|
+
id?: string;
|
|
583
|
+
};
|
|
584
|
+
declare function CopyField({ value, label, masked, className, id: externalId }: CopyFieldProps): react_jsx_runtime.JSX.Element;
|
|
585
|
+
|
|
375
586
|
type ProgressButtonProps = Omit<ButtonProps, 'leftIcon' | 'rightIcon' | 'loading'> & {
|
|
376
587
|
isLoading?: boolean;
|
|
377
588
|
loadingText?: ReactNode;
|
|
@@ -409,4 +620,14 @@ type ToastContextValue = {
|
|
|
409
620
|
declare function ToastProvider({ children, position, maxToasts }: ToastProviderProps): react_jsx_runtime.JSX.Element;
|
|
410
621
|
declare function useToast(): ToastContextValue;
|
|
411
622
|
|
|
412
|
-
|
|
623
|
+
type MutationOverlayStatus = 'idle' | 'saving' | 'saved' | 'error';
|
|
624
|
+
type MutationOverlayProps = {
|
|
625
|
+
status: MutationOverlayStatus;
|
|
626
|
+
savingText?: string;
|
|
627
|
+
savedText?: string;
|
|
628
|
+
errorText?: string;
|
|
629
|
+
className?: string;
|
|
630
|
+
};
|
|
631
|
+
declare function MutationOverlay({ status, savingText, savedText, errorText, className, }: MutationOverlayProps): react_jsx_runtime.JSX.Element | null;
|
|
632
|
+
|
|
633
|
+
export { ActiveFilterPills, type ActiveFilterPillsProps, 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, CooldownRing, type CooldownRingProps, type CooldownRingSize, CopyField, type CopyFieldProps, DashboardLayout, type DashboardLayoutProps, Divider, type DividerProps, DotIndicator, type DotIndicatorProps, DropZone, type DropZoneProps, Dropdown, DropdownItem, type DropdownItemProps, DropdownMenu, type DropdownMenuProps, type DropdownProps, DropdownSeparator, type DropdownSeparatorProps, DropdownTrigger, type DropdownTriggerProps, EmptyState, type EmptyStateProps, type FilterPill, FormField, type FormFieldProps, IconButton, type IconButtonProps, Input, type InputProps, Modal, type ModalProps, MutationOverlay, type MutationOverlayProps, type MutationOverlayStatus, 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, SectionCard, type SectionCardProps, Select, type SelectProps, Sidebar, type SidebarProps, type Size, Skeleton, type SkeletonProps, Slider, type SliderProps, Spinner, type SpinnerProps, type SpinnerSize, StageProgress, type StageProgressProps, 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 };
|