@underverse-ui/underverse 1.0.97 → 1.0.99
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 +14 -15
- package/api-reference.json +7 -7
- package/dist/index.cjs +202 -83
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +181 -15
- package/dist/index.d.ts +181 -15
- package/dist/index.js +202 -83
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -29,6 +29,7 @@ declare const SIZE_STYLES_BTN: {
|
|
|
29
29
|
icon: string;
|
|
30
30
|
};
|
|
31
31
|
|
|
32
|
+
/** Public props for the `Button` component. */
|
|
32
33
|
interface ButtonProps extends React__default.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
33
34
|
onClick?: (event: React__default.MouseEvent<HTMLButtonElement>) => void;
|
|
34
35
|
children?: React__default.ReactNode;
|
|
@@ -61,6 +62,7 @@ interface ButtonProps extends React__default.ButtonHTMLAttributes<HTMLButtonElem
|
|
|
61
62
|
}
|
|
62
63
|
declare const Button: React__default.ForwardRefExoticComponent<ButtonProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
63
64
|
|
|
65
|
+
/** Public props for the `Badge` component. */
|
|
64
66
|
interface BadgeProps {
|
|
65
67
|
children?: React$1.ReactNode;
|
|
66
68
|
variant?: "default" | "primary" | "secondary" | "success" | "warning" | "danger" | "destructive" | "info" | "outline" | "ghost" | "transparent" | "gradient";
|
|
@@ -80,6 +82,7 @@ interface BadgeProps {
|
|
|
80
82
|
onClick?: () => void;
|
|
81
83
|
}
|
|
82
84
|
declare const Badge: React$1.FC<BadgeProps>;
|
|
85
|
+
/** Public props for the `NotificationBadge` component. */
|
|
83
86
|
interface NotificationBadgeProps {
|
|
84
87
|
children: React$1.ReactNode;
|
|
85
88
|
count?: number;
|
|
@@ -94,31 +97,37 @@ interface NotificationBadgeProps {
|
|
|
94
97
|
pulse?: boolean;
|
|
95
98
|
}
|
|
96
99
|
declare const NotificationBadge: React$1.FC<NotificationBadgeProps>;
|
|
100
|
+
/** Public props for the `StatusBadge` component. */
|
|
97
101
|
interface StatusBadgeProps extends Omit<BadgeProps, "variant"> {
|
|
98
102
|
status?: "online" | "offline" | "busy" | "away" | "idle";
|
|
99
103
|
}
|
|
100
104
|
declare const StatusBadge: React$1.FC<StatusBadgeProps>;
|
|
105
|
+
/** Public props for the `TagBadge` component. */
|
|
101
106
|
interface TagBadgeProps extends Omit<BadgeProps, "removable"> {
|
|
102
107
|
tags?: string[];
|
|
103
108
|
onTagRemove?: (tag: string) => void;
|
|
104
109
|
maxTags?: number;
|
|
105
110
|
}
|
|
106
111
|
declare const TagBadge: React$1.FC<TagBadgeProps>;
|
|
112
|
+
/** Public props for the `InteractiveBadge` component. */
|
|
107
113
|
interface InteractiveBadgeProps extends BadgeProps {
|
|
108
114
|
active?: boolean;
|
|
109
115
|
disabled?: boolean;
|
|
110
116
|
}
|
|
111
117
|
declare const InteractiveBadge: React$1.FC<InteractiveBadgeProps>;
|
|
118
|
+
/** Public props for the `GradientBadge` component. */
|
|
112
119
|
interface GradientBadgeProps extends Omit<BadgeProps, "variant"> {
|
|
113
120
|
from?: string;
|
|
114
121
|
to?: string;
|
|
115
122
|
}
|
|
116
123
|
declare const GradientBadge: React$1.FC<GradientBadgeProps>;
|
|
124
|
+
/** Public props for the `PulseBadge` component. */
|
|
117
125
|
interface PulseBadgeProps extends BadgeProps {
|
|
118
126
|
speed?: "slow" | "normal" | "fast";
|
|
119
127
|
}
|
|
120
128
|
declare const PulseBadge: React$1.FC<PulseBadgeProps>;
|
|
121
129
|
|
|
130
|
+
/** Public props for the `Card` component. */
|
|
122
131
|
interface CardProps extends Omit<React__default.HTMLAttributes<HTMLDivElement>, "title"> {
|
|
123
132
|
title?: React__default.ReactNode;
|
|
124
133
|
description?: React__default.ReactNode;
|
|
@@ -135,6 +144,7 @@ interface CardProps extends Omit<React__default.HTMLAttributes<HTMLDivElement>,
|
|
|
135
144
|
}
|
|
136
145
|
declare const Card: React__default.ForwardRefExoticComponent<CardProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
137
146
|
|
|
147
|
+
/** Public props for the `Checkbox` component. */
|
|
138
148
|
interface CheckboxProps extends React$1.InputHTMLAttributes<HTMLInputElement> {
|
|
139
149
|
label?: React$1.ReactNode;
|
|
140
150
|
labelClassName?: string;
|
|
@@ -142,6 +152,7 @@ interface CheckboxProps extends React$1.InputHTMLAttributes<HTMLInputElement> {
|
|
|
142
152
|
}
|
|
143
153
|
declare const Checkbox: React$1.ForwardRefExoticComponent<CheckboxProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
144
154
|
|
|
155
|
+
/** Public props for the `Input` component. */
|
|
145
156
|
interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size"> {
|
|
146
157
|
label?: string;
|
|
147
158
|
/** Custom class for label */
|
|
@@ -167,16 +178,19 @@ interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size">
|
|
|
167
178
|
rightAddon?: React__default.ReactNode;
|
|
168
179
|
}
|
|
169
180
|
declare const Input: React__default.ForwardRefExoticComponent<InputProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
181
|
+
/** Public props for the `SearchInput` component. */
|
|
170
182
|
interface SearchInputProps extends Omit<InputProps, "leftIcon" | "type"> {
|
|
171
183
|
onSearch?: (value: string) => void;
|
|
172
184
|
searchDelay?: number;
|
|
173
185
|
}
|
|
174
186
|
declare const SearchInput: React__default.ForwardRefExoticComponent<SearchInputProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
187
|
+
/** Public props for the `PasswordInput` component. */
|
|
175
188
|
interface PasswordInputProps extends Omit<InputProps, "type"> {
|
|
176
189
|
showStrength?: boolean;
|
|
177
190
|
strengthLabels?: string[];
|
|
178
191
|
}
|
|
179
192
|
declare const PasswordInput: React__default.ForwardRefExoticComponent<PasswordInputProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
193
|
+
/** Public props for the `NumberInput` component. */
|
|
180
194
|
interface NumberInputProps extends Omit<InputProps, "type" | "value" | "onChange"> {
|
|
181
195
|
min?: number;
|
|
182
196
|
max?: number;
|
|
@@ -190,6 +204,7 @@ interface NumberInputProps extends Omit<InputProps, "type" | "value" | "onChange
|
|
|
190
204
|
onChange?: React__default.ChangeEventHandler<HTMLInputElement>;
|
|
191
205
|
}
|
|
192
206
|
declare const NumberInput: React__default.ForwardRefExoticComponent<NumberInputProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
207
|
+
/** Public props for the `Textarea` component. */
|
|
193
208
|
interface TextareaProps extends React__default.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
194
209
|
label?: string;
|
|
195
210
|
/** Custom class for label */
|
|
@@ -205,6 +220,7 @@ interface TextareaProps extends React__default.TextareaHTMLAttributes<HTMLTextAr
|
|
|
205
220
|
}
|
|
206
221
|
declare const Textarea: React__default.ForwardRefExoticComponent<TextareaProps & React__default.RefAttributes<HTMLTextAreaElement>>;
|
|
207
222
|
|
|
223
|
+
/** Public props for the `EmojiPicker` component. */
|
|
208
224
|
interface EmojiPickerProps {
|
|
209
225
|
onEmojiSelect: (emoji: string) => void;
|
|
210
226
|
className?: string;
|
|
@@ -219,6 +235,7 @@ interface EmojiPickerProps {
|
|
|
219
235
|
}
|
|
220
236
|
declare const EmojiPicker: React__default.FC<EmojiPickerProps>;
|
|
221
237
|
|
|
238
|
+
/** Public props for the `TagInput` component. */
|
|
222
239
|
interface TagInputProps {
|
|
223
240
|
/** Danh sách tags hiện tại */
|
|
224
241
|
value: string[];
|
|
@@ -263,6 +280,7 @@ interface TagInputProps {
|
|
|
263
280
|
}
|
|
264
281
|
declare const TagInput: React__default.ForwardRefExoticComponent<TagInputProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
265
282
|
|
|
283
|
+
/** Public props for the `Switch` component. */
|
|
266
284
|
interface SwitchProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "size"> {
|
|
267
285
|
checked: boolean;
|
|
268
286
|
onCheckedChange: (checked: boolean) => void;
|
|
@@ -278,6 +296,7 @@ declare const Switch: React$1.FC<SwitchProps>;
|
|
|
278
296
|
declare const Label: React$1.ForwardRefExoticComponent<React$1.LabelHTMLAttributes<HTMLLabelElement> & VariantProps<(props?: class_variance_authority_types.ClassProp | undefined) => string> & React$1.RefAttributes<HTMLLabelElement>>;
|
|
279
297
|
|
|
280
298
|
type StatusType = "online" | "offline" | "busy" | "away" | "none";
|
|
299
|
+
/** Public props for the `Avatar` component. */
|
|
281
300
|
interface AvatarProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
282
301
|
src?: string;
|
|
283
302
|
alt?: string;
|
|
@@ -293,6 +312,7 @@ interface AvatarProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
|
293
312
|
}
|
|
294
313
|
declare const Avatar: ({ src, alt, fallback, size, showStatus, status, hideStatusOnHover, className, onClick, ...props }: AvatarProps) => react_jsx_runtime.JSX.Element;
|
|
295
314
|
|
|
315
|
+
/** Public props for the `Skeleton` component. */
|
|
296
316
|
interface SkeletonProps {
|
|
297
317
|
className?: string;
|
|
298
318
|
width?: string | number;
|
|
@@ -342,6 +362,7 @@ declare const SkeletonTable: React__default.FC<{
|
|
|
342
362
|
className?: string;
|
|
343
363
|
}>;
|
|
344
364
|
|
|
365
|
+
/** Public props for the `Progress` component. */
|
|
345
366
|
interface ProgressProps {
|
|
346
367
|
value: number;
|
|
347
368
|
max?: number;
|
|
@@ -357,6 +378,7 @@ interface ProgressProps {
|
|
|
357
378
|
status?: "normal" | "error" | "complete";
|
|
358
379
|
}
|
|
359
380
|
declare const Progress: React__default.FC<ProgressProps>;
|
|
381
|
+
/** Public props for the `CircularProgress` component. */
|
|
360
382
|
interface CircularProgressProps {
|
|
361
383
|
value: number;
|
|
362
384
|
max?: number;
|
|
@@ -371,6 +393,7 @@ interface CircularProgressProps {
|
|
|
371
393
|
trackColor?: string;
|
|
372
394
|
}
|
|
373
395
|
declare const CircularProgress: React__default.FC<CircularProgressProps>;
|
|
396
|
+
/** Public props for the `StepProgress` component. */
|
|
374
397
|
interface StepProgressProps {
|
|
375
398
|
steps: string[];
|
|
376
399
|
currentStep: number;
|
|
@@ -379,6 +402,7 @@ interface StepProgressProps {
|
|
|
379
402
|
size?: "sm" | "md" | "lg";
|
|
380
403
|
}
|
|
381
404
|
declare const StepProgress: React__default.FC<StepProgressProps>;
|
|
405
|
+
/** Public props for the `MiniProgress` component. */
|
|
382
406
|
interface MiniProgressProps {
|
|
383
407
|
value: number;
|
|
384
408
|
max?: number;
|
|
@@ -387,6 +411,7 @@ interface MiniProgressProps {
|
|
|
387
411
|
showValue?: boolean;
|
|
388
412
|
}
|
|
389
413
|
declare const MiniProgress: React__default.FC<MiniProgressProps>;
|
|
414
|
+
/** Public props for the `BatteryProgress` component. */
|
|
390
415
|
interface BatteryProgressProps {
|
|
391
416
|
value: number;
|
|
392
417
|
max?: number;
|
|
@@ -395,6 +420,7 @@ interface BatteryProgressProps {
|
|
|
395
420
|
showValue?: boolean;
|
|
396
421
|
}
|
|
397
422
|
declare const BatteryProgress: React__default.FC<BatteryProgressProps>;
|
|
423
|
+
/** Public props for the `SegmentedProgress` component. */
|
|
398
424
|
interface SegmentedProgressProps {
|
|
399
425
|
segments: number;
|
|
400
426
|
activeSegments: number;
|
|
@@ -403,6 +429,7 @@ interface SegmentedProgressProps {
|
|
|
403
429
|
size?: "sm" | "md" | "lg";
|
|
404
430
|
}
|
|
405
431
|
declare const SegmentedProgress: React__default.FC<SegmentedProgressProps>;
|
|
432
|
+
/** Public props for the `LoadingProgress` component. */
|
|
406
433
|
interface LoadingProgressProps {
|
|
407
434
|
value: number;
|
|
408
435
|
max?: number;
|
|
@@ -415,6 +442,7 @@ interface LoadingProgressProps {
|
|
|
415
442
|
}
|
|
416
443
|
declare const LoadingProgress: React__default.FC<LoadingProgressProps>;
|
|
417
444
|
|
|
445
|
+
/** Public props for the `Modal` component. */
|
|
418
446
|
interface ModalProps {
|
|
419
447
|
isOpen: boolean;
|
|
420
448
|
onClose: () => void;
|
|
@@ -456,6 +484,7 @@ interface ToastContextType {
|
|
|
456
484
|
toasts: Toast[];
|
|
457
485
|
}
|
|
458
486
|
declare const useToast: () => ToastContextType;
|
|
487
|
+
/** Public props for the `ToastProvider` component. */
|
|
459
488
|
interface ToastProviderProps {
|
|
460
489
|
children: React__default.ReactNode;
|
|
461
490
|
position?: ToastPosition;
|
|
@@ -481,6 +510,7 @@ declare const Tooltip: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttrib
|
|
|
481
510
|
} & React$1.RefAttributes<HTMLElement>>;
|
|
482
511
|
|
|
483
512
|
type PopoverPlacement = "top" | "bottom" | "left" | "right" | "top-start" | "bottom-start" | "top-end" | "bottom-end";
|
|
513
|
+
/** Public props for the `Popover` component. */
|
|
484
514
|
interface PopoverProps {
|
|
485
515
|
trigger: React$1.ReactElement;
|
|
486
516
|
children: React$1.ReactNode;
|
|
@@ -498,6 +528,7 @@ interface PopoverProps {
|
|
|
498
528
|
}
|
|
499
529
|
declare const Popover: React$1.FC<PopoverProps>;
|
|
500
530
|
|
|
531
|
+
/** Public props for the `Sheet` component. */
|
|
501
532
|
interface SheetProps {
|
|
502
533
|
open: boolean;
|
|
503
534
|
onOpenChange: (open: boolean) => void;
|
|
@@ -516,24 +547,29 @@ interface SheetProps {
|
|
|
516
547
|
overlayOpacity?: number;
|
|
517
548
|
}
|
|
518
549
|
declare const Sheet: React$1.FC<SheetProps>;
|
|
550
|
+
/** Public props for the `Drawer` component. */
|
|
519
551
|
interface DrawerProps extends Omit<SheetProps, "side"> {
|
|
520
552
|
placement?: "left" | "right";
|
|
521
553
|
}
|
|
522
554
|
declare const Drawer: React$1.FC<DrawerProps>;
|
|
555
|
+
/** Public props for the `SlideOver` component. */
|
|
523
556
|
interface SlideOverProps extends Omit<SheetProps, "side" | "variant"> {
|
|
524
557
|
}
|
|
525
558
|
declare const SlideOver: React$1.FC<SlideOverProps>;
|
|
559
|
+
/** Public props for the `BottomSheet` component. */
|
|
526
560
|
interface BottomSheetProps extends Omit<SheetProps, "side"> {
|
|
527
561
|
snapPoints?: string[];
|
|
528
562
|
defaultSnap?: number;
|
|
529
563
|
}
|
|
530
564
|
declare const BottomSheet: React$1.FC<BottomSheetProps>;
|
|
565
|
+
/** Public props for the `SidebarSheet` component. */
|
|
531
566
|
interface SidebarSheetProps extends Omit<SheetProps, "side" | "variant"> {
|
|
532
567
|
navigation?: React$1.ReactNode;
|
|
533
568
|
}
|
|
534
569
|
declare const SidebarSheet: React$1.FC<SidebarSheetProps>;
|
|
535
570
|
|
|
536
571
|
type AlertVariant = "default" | "info" | "success" | "warning" | "error";
|
|
572
|
+
/** Public props for the `Alert` component. */
|
|
537
573
|
interface AlertProps {
|
|
538
574
|
title?: string;
|
|
539
575
|
description?: ReactNode;
|
|
@@ -548,6 +584,7 @@ interface AlertProps {
|
|
|
548
584
|
}
|
|
549
585
|
declare const Alert: ({ title, description, variant, className, icon, dismissible, onClose, actions, closeAriaLabel, overflowHidden, }: AlertProps) => react_jsx_runtime.JSX.Element | null;
|
|
550
586
|
|
|
587
|
+
/** Public props for the `GlobalLoading` component. */
|
|
551
588
|
interface GlobalLoadingProps {
|
|
552
589
|
className?: string;
|
|
553
590
|
backdrop?: boolean;
|
|
@@ -559,11 +596,13 @@ interface GlobalLoadingProps {
|
|
|
559
596
|
* Chỉ cần gắn 1 lần ở root của app
|
|
560
597
|
*/
|
|
561
598
|
declare const GlobalLoading: React__default.FC<GlobalLoadingProps>;
|
|
599
|
+
/** Public props for the `PageLoading` component. */
|
|
562
600
|
interface PageLoadingProps {
|
|
563
601
|
message?: string;
|
|
564
602
|
className?: string;
|
|
565
603
|
}
|
|
566
604
|
declare const PageLoading: React__default.FC<PageLoadingProps>;
|
|
605
|
+
/** Public props for the `InlineLoading` component. */
|
|
567
606
|
interface InlineLoadingProps {
|
|
568
607
|
isLoading: boolean;
|
|
569
608
|
text?: string;
|
|
@@ -571,6 +610,7 @@ interface InlineLoadingProps {
|
|
|
571
610
|
size?: "sm" | "md" | "lg";
|
|
572
611
|
}
|
|
573
612
|
declare const InlineLoading: React__default.FC<InlineLoadingProps>;
|
|
613
|
+
/** Public props for the `ButtonLoading` component. */
|
|
574
614
|
interface ButtonLoadingProps {
|
|
575
615
|
isLoading: boolean;
|
|
576
616
|
children: React__default.ReactNode;
|
|
@@ -588,6 +628,7 @@ interface BreadcrumbItem {
|
|
|
588
628
|
}>;
|
|
589
629
|
disabled?: boolean;
|
|
590
630
|
}
|
|
631
|
+
/** Public props for the `Breadcrumb` component. */
|
|
591
632
|
interface BreadcrumbProps {
|
|
592
633
|
items: BreadcrumbItem[];
|
|
593
634
|
className?: string;
|
|
@@ -615,6 +656,7 @@ interface Tab {
|
|
|
615
656
|
target?: React$1.HTMLAttributeAnchorTarget;
|
|
616
657
|
rel?: string;
|
|
617
658
|
}
|
|
659
|
+
/** Public props for the `Tabs` component. */
|
|
618
660
|
interface TabsProps {
|
|
619
661
|
id?: string;
|
|
620
662
|
tabs: Tab[];
|
|
@@ -631,6 +673,7 @@ interface TabsProps {
|
|
|
631
673
|
animateContent?: boolean;
|
|
632
674
|
}
|
|
633
675
|
declare const Tabs: React$1.FC<TabsProps>;
|
|
676
|
+
/** Public props for the `SimpleTabs` component. */
|
|
634
677
|
interface SimpleTabsProps {
|
|
635
678
|
tabs: Array<{
|
|
636
679
|
label: string;
|
|
@@ -641,15 +684,18 @@ interface SimpleTabsProps {
|
|
|
641
684
|
className?: string;
|
|
642
685
|
}
|
|
643
686
|
declare const SimpleTabs: React$1.FC<SimpleTabsProps>;
|
|
687
|
+
/** Public props for the `PillTabs` component. */
|
|
644
688
|
interface PillTabsProps extends TabsProps {
|
|
645
689
|
contained?: boolean;
|
|
646
690
|
}
|
|
647
691
|
declare const PillTabs: React$1.FC<PillTabsProps>;
|
|
692
|
+
/** Public props for the `VerticalTabs` component. */
|
|
648
693
|
interface VerticalTabsProps extends TabsProps {
|
|
649
694
|
sidebarWidth?: string;
|
|
650
695
|
}
|
|
651
696
|
declare const VerticalTabs: React$1.FC<VerticalTabsProps>;
|
|
652
697
|
|
|
698
|
+
/** Public props for the `DropdownMenu` component. */
|
|
653
699
|
interface DropdownMenuProps {
|
|
654
700
|
trigger: React__default.ReactElement;
|
|
655
701
|
children?: React__default.ReactNode;
|
|
@@ -669,6 +715,7 @@ interface DropdownMenuProps {
|
|
|
669
715
|
}>;
|
|
670
716
|
}
|
|
671
717
|
declare const DropdownMenu: React__default.FC<DropdownMenuProps>;
|
|
718
|
+
/** Public props for the `DropdownMenuItem` component. */
|
|
672
719
|
interface DropdownMenuItemProps {
|
|
673
720
|
children?: React__default.ReactNode;
|
|
674
721
|
label?: string;
|
|
@@ -695,6 +742,7 @@ declare const SelectDropdown: React__default.FC<{
|
|
|
695
742
|
className?: string;
|
|
696
743
|
}>;
|
|
697
744
|
|
|
745
|
+
/** Public props for the `Pagination` component. */
|
|
698
746
|
interface PaginationProps {
|
|
699
747
|
page: number;
|
|
700
748
|
totalPages: number;
|
|
@@ -720,6 +768,7 @@ interface PaginationProps {
|
|
|
720
768
|
};
|
|
721
769
|
}
|
|
722
770
|
declare const Pagination: React$1.FC<PaginationProps>;
|
|
771
|
+
/** Public props for the `SimplePagination` component. */
|
|
723
772
|
interface SimplePaginationProps {
|
|
724
773
|
page: number;
|
|
725
774
|
totalPages: number;
|
|
@@ -732,6 +781,7 @@ interface SimplePaginationProps {
|
|
|
732
781
|
pageSize?: number;
|
|
733
782
|
}
|
|
734
783
|
declare const SimplePagination: React$1.FC<SimplePaginationProps>;
|
|
784
|
+
/** Public props for the `CompactPagination` component. */
|
|
735
785
|
interface CompactPaginationProps {
|
|
736
786
|
page: number;
|
|
737
787
|
totalPages: number;
|
|
@@ -742,6 +792,7 @@ interface CompactPaginationProps {
|
|
|
742
792
|
declare const CompactPagination: React$1.FC<CompactPaginationProps>;
|
|
743
793
|
|
|
744
794
|
type GradientDirection = "to-r" | "to-l" | "to-b" | "to-t" | "to-br" | "to-bl" | "to-tr" | "to-tl";
|
|
795
|
+
/** Public props for the `Section` component. */
|
|
745
796
|
interface SectionProps extends React__default.HTMLAttributes<HTMLElement> {
|
|
746
797
|
children: React__default.ReactNode;
|
|
747
798
|
className?: string;
|
|
@@ -767,6 +818,7 @@ interface SectionProps extends React__default.HTMLAttributes<HTMLElement> {
|
|
|
767
818
|
}
|
|
768
819
|
declare const Section: React__default.ForwardRefExoticComponent<SectionProps & React__default.RefAttributes<HTMLElement>>;
|
|
769
820
|
|
|
821
|
+
/** Public props for the `ScrollArea` component. */
|
|
770
822
|
interface ScrollAreaProps extends HTMLAttributes<HTMLDivElement> {
|
|
771
823
|
className?: string;
|
|
772
824
|
contentClassName?: string;
|
|
@@ -790,6 +842,7 @@ interface OverlayScrollbarBehavior {
|
|
|
790
842
|
exclude: string;
|
|
791
843
|
}
|
|
792
844
|
|
|
845
|
+
/** Public props for the `OverlayScrollbarProvider` component. */
|
|
793
846
|
interface OverlayScrollbarProviderProps extends Partial<OverlayScrollbarBehavior> {
|
|
794
847
|
children?: React__default.ReactNode;
|
|
795
848
|
/** @deprecated Global selector scanning is removed. Kept only for backward compatibility. */
|
|
@@ -800,6 +853,7 @@ interface UseOverlayScrollbarTargetOptions extends Partial<OverlayScrollbarBehav
|
|
|
800
853
|
declare function OverlayScrollbarProvider({ enabled, theme, visibility, autoHide, autoHideDelay, dragScroll, clickScroll, overflowX, overflowY, exclude, selector, children, }?: OverlayScrollbarProviderProps): react_jsx_runtime.JSX.Element;
|
|
801
854
|
declare function useOverlayScrollbarTarget<T extends HTMLElement>(targetRef: React__default.RefObject<T | null>, options?: UseOverlayScrollbarTargetOptions): void;
|
|
802
855
|
|
|
856
|
+
/** Public props for the `OverlayScrollArea` component. */
|
|
803
857
|
interface OverlayScrollAreaProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
804
858
|
viewportClassName?: string;
|
|
805
859
|
viewportProps?: React__default.HTMLAttributes<HTMLDivElement>;
|
|
@@ -809,6 +863,7 @@ interface OverlayScrollAreaProps extends React__default.HTMLAttributes<HTMLDivEl
|
|
|
809
863
|
}
|
|
810
864
|
declare const OverlayScrollArea: React__default.ForwardRefExoticComponent<OverlayScrollAreaProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
811
865
|
|
|
866
|
+
/** Public props for the `DatePicker` component. */
|
|
812
867
|
interface DatePickerProps {
|
|
813
868
|
id?: string;
|
|
814
869
|
value?: Date;
|
|
@@ -832,6 +887,7 @@ interface DatePickerProps {
|
|
|
832
887
|
maxDate?: Date;
|
|
833
888
|
}
|
|
834
889
|
declare const DatePicker: React$1.FC<DatePickerProps>;
|
|
890
|
+
/** Public props for the `DateRangePicker` component. */
|
|
835
891
|
interface DateRangePickerProps {
|
|
836
892
|
id?: string;
|
|
837
893
|
startDate?: Date;
|
|
@@ -858,6 +914,7 @@ declare const CompactDatePicker: React$1.FC<{
|
|
|
858
914
|
className?: string;
|
|
859
915
|
}>;
|
|
860
916
|
|
|
917
|
+
/** Public props for the `DateTimePicker` component. */
|
|
861
918
|
interface DateTimePickerProps {
|
|
862
919
|
value?: Date;
|
|
863
920
|
onChange: (date: Date | undefined) => void;
|
|
@@ -884,6 +941,7 @@ declare const DateTimePicker: React$1.FC<DateTimePickerProps>;
|
|
|
884
941
|
|
|
885
942
|
type TimeFormat = "24" | "12";
|
|
886
943
|
type TimePickerVariant = "default" | "compact" | "inline";
|
|
944
|
+
/** Public props for the `TimePicker` component. */
|
|
887
945
|
interface TimePickerProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "onChange"> {
|
|
888
946
|
value?: string;
|
|
889
947
|
defaultValue?: string;
|
|
@@ -940,6 +998,7 @@ declare function TimePicker({ value, defaultValue, onChange, placeholder, disabl
|
|
|
940
998
|
|
|
941
999
|
type MonthYearPickerVariant = "default" | "compact" | "inline";
|
|
942
1000
|
type PickerSize = "sm" | "md" | "lg";
|
|
1001
|
+
/** Public props for the `MonthYearPicker` component. */
|
|
943
1002
|
interface MonthYearPickerProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "onChange" | "value" | "defaultValue"> {
|
|
944
1003
|
/** Current value as Date or {month, year} */
|
|
945
1004
|
value?: Date | {
|
|
@@ -1027,6 +1086,7 @@ interface CalendarEvent {
|
|
|
1027
1086
|
color?: string;
|
|
1028
1087
|
badge?: string;
|
|
1029
1088
|
}
|
|
1089
|
+
/** Public props for the `Calendar` component. */
|
|
1030
1090
|
interface CalendarProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "defaultValue" | "value" | "onSelect"> {
|
|
1031
1091
|
month?: Date;
|
|
1032
1092
|
defaultMonth?: Date;
|
|
@@ -1260,6 +1320,7 @@ type CalendarTimelineAdaptiveSlotWidths = boolean | {
|
|
|
1260
1320
|
*/
|
|
1261
1321
|
fillDistribute?: "event" | "all";
|
|
1262
1322
|
};
|
|
1323
|
+
/** Public props for the `CalendarTimeline` component. */
|
|
1263
1324
|
interface CalendarTimelineProps<TResourceMeta = unknown, TEventMeta = unknown> extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "onChange"> {
|
|
1264
1325
|
resources: CalendarTimelineResource<TResourceMeta>[];
|
|
1265
1326
|
events: CalendarTimelineEvent<TEventMeta>[];
|
|
@@ -1488,6 +1549,7 @@ type ComboboxOption = string | {
|
|
|
1488
1549
|
description?: string;
|
|
1489
1550
|
disabled?: boolean;
|
|
1490
1551
|
};
|
|
1552
|
+
/** Public props for the `Combobox` component. */
|
|
1491
1553
|
interface ComboboxProps {
|
|
1492
1554
|
id?: string;
|
|
1493
1555
|
options: ComboboxOption[];
|
|
@@ -1529,6 +1591,7 @@ interface MultiComboboxOption {
|
|
|
1529
1591
|
disabled?: boolean;
|
|
1530
1592
|
group?: string;
|
|
1531
1593
|
}
|
|
1594
|
+
/** Public props for the `MultiCombobox` component. */
|
|
1532
1595
|
interface MultiComboboxProps {
|
|
1533
1596
|
id?: string;
|
|
1534
1597
|
options: Array<string | MultiComboboxOption>;
|
|
@@ -1566,6 +1629,7 @@ interface MultiComboboxProps {
|
|
|
1566
1629
|
}
|
|
1567
1630
|
declare const MultiCombobox: React$1.FC<MultiComboboxProps>;
|
|
1568
1631
|
|
|
1632
|
+
/** Public props for the `RadioGroup` component. */
|
|
1569
1633
|
interface RadioGroupProps {
|
|
1570
1634
|
value?: string;
|
|
1571
1635
|
defaultValue?: string;
|
|
@@ -1582,6 +1646,7 @@ interface RadioGroupProps {
|
|
|
1582
1646
|
errorMessage?: string;
|
|
1583
1647
|
}
|
|
1584
1648
|
declare const RadioGroup: React$1.ForwardRefExoticComponent<RadioGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1649
|
+
/** Public props for the `RadioGroupItem` component. */
|
|
1585
1650
|
interface RadioGroupItemProps {
|
|
1586
1651
|
value: string;
|
|
1587
1652
|
id?: string;
|
|
@@ -1598,6 +1663,7 @@ interface RadioGroupItemProps {
|
|
|
1598
1663
|
}
|
|
1599
1664
|
declare const RadioGroupItem: React$1.ForwardRefExoticComponent<RadioGroupItemProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1600
1665
|
|
|
1666
|
+
/** Public props for the `Slider` component. */
|
|
1601
1667
|
interface SliderProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "onChange" | "size"> {
|
|
1602
1668
|
mode?: "single" | "range";
|
|
1603
1669
|
value?: number;
|
|
@@ -1631,6 +1697,7 @@ interface SliderProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>
|
|
|
1631
1697
|
}
|
|
1632
1698
|
declare const Slider: React$1.ForwardRefExoticComponent<SliderProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
1633
1699
|
|
|
1700
|
+
/** Public props for the `OverlayControls` component. */
|
|
1634
1701
|
interface OverlayControlsProps {
|
|
1635
1702
|
mode: "live" | "review";
|
|
1636
1703
|
value: number;
|
|
@@ -1661,70 +1728,140 @@ interface OverlayControlsProps {
|
|
|
1661
1728
|
declare function OverlayControls({ mode, value, max, step, onChange, onCommit, playing, onTogglePlay, onGoLive, volume, muted, onVolumeChange, onToggleMute, rate, onChangeRate, onToggleFullscreen, showOnHover, className, showTime, skipSeconds, onSkip, onSeekPreview, autoHide, autoHideDelay, enableKeyboardShortcuts, }: OverlayControlsProps): react_jsx_runtime.JSX.Element;
|
|
1662
1729
|
|
|
1663
1730
|
interface Category {
|
|
1731
|
+
/** Unique category id used for selection and tree relationships. */
|
|
1664
1732
|
id: number;
|
|
1733
|
+
/** Visible label rendered for this node. */
|
|
1665
1734
|
name: string;
|
|
1735
|
+
/** Parent category id. Omit or set `null` for a root node. */
|
|
1666
1736
|
parent_id?: number | null;
|
|
1737
|
+
/** Optional custom icon rendered before the category label. */
|
|
1667
1738
|
icon?: React__default.ReactNode;
|
|
1668
1739
|
}
|
|
1740
|
+
/**
|
|
1741
|
+
* Override the built-in copy used by {@link CategoryTreeSelect}.
|
|
1742
|
+
* Useful for i18n or product-specific wording.
|
|
1743
|
+
*/
|
|
1669
1744
|
interface CategoryTreeSelectLabels {
|
|
1670
|
-
/** Text shown when no categories available */
|
|
1745
|
+
/** Text shown when no categories are available. */
|
|
1671
1746
|
emptyText?: string;
|
|
1672
|
-
/** Text shown when categories are selected
|
|
1747
|
+
/** Text shown when categories are selected. Receives the selected count. */
|
|
1673
1748
|
selectedText?: (count: number) => string;
|
|
1674
|
-
/** Placeholder text for search input
|
|
1749
|
+
/** Placeholder text for the search input when search is enabled. */
|
|
1675
1750
|
searchPlaceholder?: string;
|
|
1676
|
-
/** Text shown when search yields no results */
|
|
1751
|
+
/** Text shown when search yields no results. */
|
|
1677
1752
|
noResultsText?: string;
|
|
1678
1753
|
}
|
|
1754
|
+
/**
|
|
1755
|
+
* Shared props for both single-select and multi-select modes.
|
|
1756
|
+
*
|
|
1757
|
+
* @remarks
|
|
1758
|
+
* Use `defaultExpanded`, `defaultExpandedIds`, or `expandToId` for initial
|
|
1759
|
+
* uncontrolled expand state. If you need to fully control the expanded tree
|
|
1760
|
+
* from the outside, use `expandedIds` together with `onExpandedChange`.
|
|
1761
|
+
*/
|
|
1679
1762
|
interface CategoryTreeSelectBaseProps {
|
|
1680
1763
|
id?: string;
|
|
1764
|
+
/** Optional field label rendered above the control. */
|
|
1681
1765
|
label?: string;
|
|
1766
|
+
/** Extra classes for the label element. */
|
|
1682
1767
|
labelClassName?: string;
|
|
1768
|
+
/** Flat category list. Parent/child relationships are resolved via `parent_id`. */
|
|
1683
1769
|
categories: Category[];
|
|
1770
|
+
/** Placeholder text when no category is selected. */
|
|
1684
1771
|
placeholder?: string;
|
|
1772
|
+
/** Disables interaction and fades the control. */
|
|
1685
1773
|
disabled?: boolean;
|
|
1774
|
+
/** Participate in form-required validation. */
|
|
1686
1775
|
required?: boolean;
|
|
1776
|
+
/** Visual size of the trigger. */
|
|
1687
1777
|
size?: "sm" | "md" | "lg";
|
|
1778
|
+
/** Visual style of the trigger. */
|
|
1688
1779
|
variant?: "default" | "outline" | "ghost" | "filled";
|
|
1780
|
+
/** Show a clear button when a selection exists. */
|
|
1689
1781
|
allowClear?: boolean;
|
|
1782
|
+
/** External error message. Takes precedence over helper text. */
|
|
1690
1783
|
error?: string;
|
|
1784
|
+
/** Helper text shown below the field when there is no error. */
|
|
1691
1785
|
helperText?: string;
|
|
1692
|
-
/** When true, renders as a read-only tree view without
|
|
1786
|
+
/** When true, renders as a read-only tree view without selection behavior. */
|
|
1693
1787
|
viewOnly?: boolean;
|
|
1694
|
-
/**
|
|
1788
|
+
/**
|
|
1789
|
+
* Expand every parent node by default.
|
|
1790
|
+
*
|
|
1791
|
+
* @remarks
|
|
1792
|
+
* This applies to `inline` and `viewOnly` trees. In dropdown mode, branches
|
|
1793
|
+
* still start collapsed unless expanded by other props.
|
|
1794
|
+
*/
|
|
1695
1795
|
defaultExpanded?: boolean;
|
|
1796
|
+
/** Explicit branch ids that should start expanded in uncontrolled mode. */
|
|
1797
|
+
defaultExpandedIds?: number[];
|
|
1798
|
+
/**
|
|
1799
|
+
* Expand the ancestor path so a specific node is visible by default.
|
|
1800
|
+
*
|
|
1801
|
+
* @remarks
|
|
1802
|
+
* The node id itself is also added to the expanded set, which is useful when
|
|
1803
|
+
* `expandToId` points to a parent category.
|
|
1804
|
+
*/
|
|
1805
|
+
expandToId?: number | null;
|
|
1806
|
+
/** Controlled expanded branch ids. */
|
|
1807
|
+
expandedIds?: number[];
|
|
1808
|
+
/** Called whenever expand/collapse changes the expanded branch ids. */
|
|
1809
|
+
onExpandedChange?: (expandedIds: number[]) => void;
|
|
1696
1810
|
/**
|
|
1697
1811
|
* Enable search input for filtering categories.
|
|
1698
1812
|
* Default: auto-enabled when `categories.length > 10` (similar to MultiCombobox).
|
|
1699
1813
|
*/
|
|
1700
1814
|
enableSearch?: boolean;
|
|
1701
|
-
/**
|
|
1815
|
+
/** Replace built-in labels for localization or custom wording. */
|
|
1702
1816
|
labels?: CategoryTreeSelectLabels;
|
|
1703
|
-
/**
|
|
1817
|
+
/** Render the tree directly instead of inside a dropdown trigger. */
|
|
1704
1818
|
inline?: boolean;
|
|
1705
|
-
/**
|
|
1819
|
+
/** Called when a node row is clicked. Useful for navigation flows. */
|
|
1706
1820
|
onNodeClick?: (node: Category) => void;
|
|
1707
|
-
/** Custom class for the tree container */
|
|
1821
|
+
/** Custom class for the outer tree container. */
|
|
1708
1822
|
className?: string;
|
|
1709
|
-
/** Enable OverlayScrollbars for dropdown tree viewport. Default: false */
|
|
1823
|
+
/** Enable OverlayScrollbars for the dropdown tree viewport. Default: `false`. */
|
|
1710
1824
|
useOverlayScrollbar?: boolean;
|
|
1711
|
-
/** When true, only leaf nodes can be selected; parent nodes only expand/collapse */
|
|
1825
|
+
/** When true, only leaf nodes can be selected; parent nodes only expand/collapse. */
|
|
1712
1826
|
leafOnlySelect?: boolean;
|
|
1713
1827
|
}
|
|
1828
|
+
/** Multi-select mode. This is the default when `singleSelect` is omitted. */
|
|
1714
1829
|
interface CategoryTreeSelectMultiProps extends CategoryTreeSelectBaseProps {
|
|
1715
1830
|
singleSelect?: false;
|
|
1831
|
+
/** Selected category ids. */
|
|
1716
1832
|
value?: number[];
|
|
1833
|
+
/** Called with the full selected id list. */
|
|
1717
1834
|
onChange?: (selectedIds: number[]) => void;
|
|
1718
1835
|
}
|
|
1836
|
+
/** Single-select mode. */
|
|
1719
1837
|
interface CategoryTreeSelectSingleProps extends CategoryTreeSelectBaseProps {
|
|
1720
1838
|
singleSelect: true;
|
|
1839
|
+
/** Selected category id or `null` when nothing is selected. */
|
|
1721
1840
|
value?: number | null;
|
|
1841
|
+
/** Called with the selected id or `null`. */
|
|
1722
1842
|
onChange?: (selectedId: number | null) => void;
|
|
1723
1843
|
}
|
|
1844
|
+
/** Union of the single-select and multi-select prop shapes. */
|
|
1724
1845
|
type CategoryTreeSelectProps = CategoryTreeSelectMultiProps | CategoryTreeSelectSingleProps;
|
|
1846
|
+
/**
|
|
1847
|
+
* Tree-based category picker with single-select, multi-select, inline, and
|
|
1848
|
+
* read-only modes.
|
|
1849
|
+
*
|
|
1850
|
+
* @example
|
|
1851
|
+
* ```tsx
|
|
1852
|
+
* <CategoryTreeSelect
|
|
1853
|
+
* categories={categories}
|
|
1854
|
+
* value={selectedIds}
|
|
1855
|
+
* onChange={setSelectedIds}
|
|
1856
|
+
* label="Categories"
|
|
1857
|
+
* allowClear
|
|
1858
|
+
* />
|
|
1859
|
+
* ```
|
|
1860
|
+
*/
|
|
1725
1861
|
declare function CategoryTreeSelect(props: CategoryTreeSelectProps): react_jsx_runtime.JSX.Element;
|
|
1726
1862
|
|
|
1727
1863
|
type Fit = "cover" | "contain";
|
|
1864
|
+
/** Public props for the `SmartImage` component. */
|
|
1728
1865
|
interface SmartImageProps {
|
|
1729
1866
|
src: string | undefined | null;
|
|
1730
1867
|
alt: string;
|
|
@@ -1767,6 +1904,7 @@ interface UploadedImage {
|
|
|
1767
1904
|
height?: number;
|
|
1768
1905
|
formattedSize?: string;
|
|
1769
1906
|
}
|
|
1907
|
+
/** Public props for the `ImageUpload` component. */
|
|
1770
1908
|
interface ImageUploadProps {
|
|
1771
1909
|
onUpload?: (image: UploadedImage) => void;
|
|
1772
1910
|
onRemove?: (imageId: string) => void;
|
|
@@ -1796,6 +1934,7 @@ interface UploadedFile {
|
|
|
1796
1934
|
error?: string;
|
|
1797
1935
|
formattedSize?: string;
|
|
1798
1936
|
}
|
|
1937
|
+
/** Public props for the `FileUpload` component. */
|
|
1799
1938
|
interface FileUploadProps {
|
|
1800
1939
|
/** Callback when a file is uploaded */
|
|
1801
1940
|
onUpload?: (file: UploadedFile) => void;
|
|
@@ -1855,6 +1994,7 @@ interface CarouselEffectOptions {
|
|
|
1855
1994
|
stackOffset?: number;
|
|
1856
1995
|
stackLift?: number;
|
|
1857
1996
|
}
|
|
1997
|
+
/** Public props for the `Carousel` component. */
|
|
1858
1998
|
interface CarouselProps {
|
|
1859
1999
|
children: React$1.ReactNode;
|
|
1860
2000
|
autoScroll?: boolean;
|
|
@@ -1882,6 +2022,7 @@ declare function Carousel({ children, autoScroll, autoScrollInterval, animation,
|
|
|
1882
2022
|
type IconComponent = React__default.ComponentType<{
|
|
1883
2023
|
className?: string;
|
|
1884
2024
|
}>;
|
|
2025
|
+
/** Public props for the `FallingIcons` component. */
|
|
1885
2026
|
interface FallingIconsProps {
|
|
1886
2027
|
icon?: IconComponent;
|
|
1887
2028
|
imageUrl?: string;
|
|
@@ -1913,6 +2054,7 @@ declare function FallingIcons({ icon: Icon, imageUrl, count, className, areaClas
|
|
|
1913
2054
|
|
|
1914
2055
|
type Variant$2 = "plain" | "outlined" | "soft" | "bordered" | "card" | "flush" | "striped";
|
|
1915
2056
|
type Size$1 = "xs" | "sm" | "md" | "lg";
|
|
2057
|
+
/** Public props for the `List` component. */
|
|
1916
2058
|
interface ListProps extends React$1.HTMLAttributes<HTMLUListElement> {
|
|
1917
2059
|
as?: "ul" | "ol" | "div";
|
|
1918
2060
|
ordered?: boolean;
|
|
@@ -1934,6 +2076,7 @@ interface ListProps extends React$1.HTMLAttributes<HTMLUListElement> {
|
|
|
1934
2076
|
/** Clip overflow on the outer list wrapper. Mainly relevant for striped/card-like variants. */
|
|
1935
2077
|
overflowHidden?: boolean;
|
|
1936
2078
|
}
|
|
2079
|
+
/** Public props for the `ListItem` component. */
|
|
1937
2080
|
interface ListItemProps extends React$1.HTMLAttributes<HTMLLIElement> {
|
|
1938
2081
|
as?: "li" | "div" | "a" | "button";
|
|
1939
2082
|
selected?: boolean;
|
|
@@ -1974,6 +2117,7 @@ declare const List: React$1.ForwardRefExoticComponent<ListProps & React$1.RefAtt
|
|
|
1974
2117
|
type WatermarkPreset = "confidential" | "draft" | "sample" | "copyright" | "doNotCopy" | "internal";
|
|
1975
2118
|
type WatermarkPattern = "diagonal" | "grid" | "straight";
|
|
1976
2119
|
type AnimationVariant = "fade" | "slide" | "scale" | "pulse" | "none";
|
|
2120
|
+
/** Public props for the `Watermark` component. */
|
|
1977
2121
|
interface WatermarkProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
1978
2122
|
text?: string | string[];
|
|
1979
2123
|
image?: string;
|
|
@@ -2026,6 +2170,7 @@ type Variant$1 = "default" | "outlined" | "card" | "minimal" | "modern" | "gradi
|
|
|
2026
2170
|
type Size = "sm" | "md" | "lg" | "xl";
|
|
2027
2171
|
type Mode = "vertical" | "horizontal";
|
|
2028
2172
|
type LineStyle = "solid" | "dashed" | "dotted";
|
|
2173
|
+
/** Public props for the `Timeline` component. */
|
|
2029
2174
|
interface TimelineProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
2030
2175
|
align?: Align;
|
|
2031
2176
|
variant?: Variant$1;
|
|
@@ -2042,6 +2187,7 @@ interface TimelineProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
|
2042
2187
|
/** Show connecting line */
|
|
2043
2188
|
showLine?: boolean;
|
|
2044
2189
|
}
|
|
2190
|
+
/** Public props for the `TimelineItem` component. */
|
|
2045
2191
|
interface TimelineItemProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "title"> {
|
|
2046
2192
|
title?: React$1.ReactNode;
|
|
2047
2193
|
description?: React$1.ReactNode;
|
|
@@ -2073,6 +2219,7 @@ declare const Timeline: React$1.ForwardRefExoticComponent<TimelineProps & React$
|
|
|
2073
2219
|
type OutputFormat = "hex" | "rgba" | "hsl" | "hsla";
|
|
2074
2220
|
type ColorPickerSize = "sm" | "md" | "lg";
|
|
2075
2221
|
type ColorPickerVariant = "default" | "compact" | "full" | "minimal";
|
|
2222
|
+
/** Public props for the `ColorPicker` component. */
|
|
2076
2223
|
interface ColorPickerProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "onChange"> {
|
|
2077
2224
|
value?: string;
|
|
2078
2225
|
defaultValue?: string;
|
|
@@ -2111,6 +2258,7 @@ interface Song {
|
|
|
2111
2258
|
startTime?: number;
|
|
2112
2259
|
endTime?: number;
|
|
2113
2260
|
}
|
|
2261
|
+
/** Public props for the `MusicPlayer` component. */
|
|
2114
2262
|
interface MusicPlayerProps {
|
|
2115
2263
|
playlist?: Song[];
|
|
2116
2264
|
autoPlay?: boolean;
|
|
@@ -2131,6 +2279,7 @@ type ResponsiveConfig = Partial<{
|
|
|
2131
2279
|
}>;
|
|
2132
2280
|
type GridVariant = "default" | "bordered" | "card" | "flat" | "glass";
|
|
2133
2281
|
type GridAutoFlow = "row" | "column" | "row dense" | "column dense";
|
|
2282
|
+
/** Public props for the `Grid` component. */
|
|
2134
2283
|
interface GridProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
2135
2284
|
/** Number of columns or full template string. Default: 12 (1fr each). */
|
|
2136
2285
|
columns?: number | string;
|
|
@@ -2167,6 +2316,7 @@ interface GridProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
|
2167
2316
|
/** Apply Card-like outline (rounded + border + bg-card). @deprecated Use variant="card" instead */
|
|
2168
2317
|
outlined?: boolean;
|
|
2169
2318
|
}
|
|
2319
|
+
/** Public props for the `GridItem` component. */
|
|
2170
2320
|
interface GridItemProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
2171
2321
|
/** Column span (e.g., 3 => span 3). */
|
|
2172
2322
|
colSpan?: number | string;
|
|
@@ -2197,23 +2347,27 @@ declare const Grid: React__default.ForwardRefExoticComponent<GridProps & React__
|
|
|
2197
2347
|
Item: React__default.ForwardRefExoticComponent<GridItemProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
2198
2348
|
};
|
|
2199
2349
|
|
|
2350
|
+
/** Public props for the `ClientOnly` component. */
|
|
2200
2351
|
interface ClientOnlyProps {
|
|
2201
2352
|
children: React.ReactNode;
|
|
2202
2353
|
fallback?: React.ReactNode;
|
|
2203
2354
|
}
|
|
2204
2355
|
declare function ClientOnly({ children, fallback }: ClientOnlyProps): react_jsx_runtime.JSX.Element;
|
|
2205
2356
|
|
|
2357
|
+
/** Public props for the `LoadingSpinner` component. */
|
|
2206
2358
|
interface LoadingSpinnerProps {
|
|
2207
2359
|
size?: 'sm' | 'md' | 'lg';
|
|
2208
2360
|
className?: string;
|
|
2209
2361
|
color?: 'primary' | 'foreground' | 'muted';
|
|
2210
2362
|
}
|
|
2211
2363
|
declare const LoadingSpinner: React__default.FC<LoadingSpinnerProps>;
|
|
2364
|
+
/** Public props for the `LoadingDots` component. */
|
|
2212
2365
|
interface LoadingDotsProps {
|
|
2213
2366
|
className?: string;
|
|
2214
2367
|
color?: 'primary' | 'foreground' | 'muted';
|
|
2215
2368
|
}
|
|
2216
2369
|
declare const LoadingDots: React__default.FC<LoadingDotsProps>;
|
|
2370
|
+
/** Public props for the `LoadingBar` component. */
|
|
2217
2371
|
interface LoadingBarProps {
|
|
2218
2372
|
progress?: number;
|
|
2219
2373
|
className?: string;
|
|
@@ -2305,6 +2459,7 @@ type DataTableLabels = {
|
|
|
2305
2459
|
alignRight?: string;
|
|
2306
2460
|
noData?: string;
|
|
2307
2461
|
};
|
|
2462
|
+
/** Public props for the `DataTable` component. */
|
|
2308
2463
|
interface DataTableProps<T> {
|
|
2309
2464
|
columns: DataTableColumn<T>[];
|
|
2310
2465
|
data: T[];
|
|
@@ -2350,6 +2505,7 @@ interface DataTableProps<T> {
|
|
|
2350
2505
|
|
|
2351
2506
|
declare function DataTable<T extends Record<string, any>>({ columns, data, rowKey, loading, total, page, pageSize, pageSizeOptions, onQueryChange, caption, toolbar, size, enableColumnVisibilityToggle, enableDensityToggle, enableHeaderAlignToggle, striped, columnDividers, className, storageKey, stickyHeader, maxHeight, horizontalMode, overflowHidden, useOverlayScrollbar, enableHeaderAutoFit, labels, }: DataTableProps<T>): react_jsx_runtime.JSX.Element;
|
|
2352
2507
|
|
|
2508
|
+
/** Public props for the `Table` component. */
|
|
2353
2509
|
interface TableProps extends React__default.HTMLAttributes<HTMLTableElement> {
|
|
2354
2510
|
containerClassName?: string;
|
|
2355
2511
|
disableContainer?: boolean;
|
|
@@ -2357,6 +2513,7 @@ interface TableProps extends React__default.HTMLAttributes<HTMLTableElement> {
|
|
|
2357
2513
|
useOverlayScrollbar?: boolean;
|
|
2358
2514
|
}
|
|
2359
2515
|
declare const Table: React__default.ForwardRefExoticComponent<TableProps & React__default.RefAttributes<HTMLTableElement>>;
|
|
2516
|
+
/** Public props for the `TableHeader` component. */
|
|
2360
2517
|
interface TableHeaderProps extends React__default.HTMLAttributes<HTMLTableSectionElement> {
|
|
2361
2518
|
filterRow?: React__default.ReactNode;
|
|
2362
2519
|
}
|
|
@@ -2368,6 +2525,7 @@ declare const TableHead: React__default.ForwardRefExoticComponent<React__default
|
|
|
2368
2525
|
declare const TableCell: React__default.ForwardRefExoticComponent<React__default.TdHTMLAttributes<HTMLTableCellElement> & React__default.RefAttributes<HTMLTableCellElement>>;
|
|
2369
2526
|
declare const TableCaption: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLTableCaptionElement> & React__default.RefAttributes<HTMLTableCaptionElement>>;
|
|
2370
2527
|
|
|
2528
|
+
/** Public props for the `FormWrapper` component. */
|
|
2371
2529
|
interface FormWrapperProps<T extends FieldValues = FieldValues> {
|
|
2372
2530
|
children: React$1.ReactNode;
|
|
2373
2531
|
onSubmit: SubmitHandler<T>;
|
|
@@ -2417,6 +2575,7 @@ interface NotificationItem {
|
|
|
2417
2575
|
created_at: string;
|
|
2418
2576
|
metadata?: any;
|
|
2419
2577
|
}
|
|
2578
|
+
/** Public props for the `NotificationModal` component. */
|
|
2420
2579
|
interface NotificationModalProps {
|
|
2421
2580
|
isOpen: boolean;
|
|
2422
2581
|
onClose: () => void;
|
|
@@ -2428,6 +2587,7 @@ interface NotificationModalProps {
|
|
|
2428
2587
|
declare function NotificationModal({ isOpen, onClose, notification, titleText, openLinkText, closeText }: NotificationModalProps): react_jsx_runtime.JSX.Element | null;
|
|
2429
2588
|
|
|
2430
2589
|
type Variant = "destructive" | "warning" | "info";
|
|
2590
|
+
/** Public props for the `AccessDenied` component. */
|
|
2431
2591
|
interface AccessDeniedProps {
|
|
2432
2592
|
title?: string;
|
|
2433
2593
|
description?: string;
|
|
@@ -2442,6 +2602,7 @@ interface AccessDeniedProps {
|
|
|
2442
2602
|
declare function AccessDenied({ title, description, variant, icon: Icon, className, children, overflowHidden, }: AccessDeniedProps): react_jsx_runtime.JSX.Element;
|
|
2443
2603
|
|
|
2444
2604
|
type ThemeMode = "light" | "dark" | "system";
|
|
2605
|
+
/** Public props for the `ThemeToggleHeadless` component. */
|
|
2445
2606
|
interface ThemeToggleHeadlessProps {
|
|
2446
2607
|
theme: ThemeMode;
|
|
2447
2608
|
onChange: (theme: ThemeMode) => void;
|
|
@@ -2460,6 +2621,7 @@ interface LanguageOption {
|
|
|
2460
2621
|
name: string;
|
|
2461
2622
|
flag?: string;
|
|
2462
2623
|
}
|
|
2624
|
+
/** Public props for the `LanguageSwitcherHeadless` component. */
|
|
2463
2625
|
interface LanguageSwitcherHeadlessProps {
|
|
2464
2626
|
locales: LanguageOption[];
|
|
2465
2627
|
currentLocale: string;
|
|
@@ -2471,8 +2633,6 @@ interface LanguageSwitcherHeadlessProps {
|
|
|
2471
2633
|
}
|
|
2472
2634
|
declare function LanguageSwitcherHeadless({ locales, currentLocale, onSwitch, labels, className, }: LanguageSwitcherHeadlessProps): react_jsx_runtime.JSX.Element;
|
|
2473
2635
|
|
|
2474
|
-
declare function cn$1(...inputs: ClassValue[]): string;
|
|
2475
|
-
|
|
2476
2636
|
/**
|
|
2477
2637
|
* Utility function to merge Tailwind CSS classes.
|
|
2478
2638
|
* Combines clsx for conditional classes and tailwind-merge for deduplication.
|
|
@@ -2636,6 +2796,7 @@ declare const VARIANT_STYLES_ALERT: {
|
|
|
2636
2796
|
|
|
2637
2797
|
type Locale = "en" | "vi" | "ko" | "ja";
|
|
2638
2798
|
type Translations = Record<string, Record<string, string | Record<string, string>>>;
|
|
2799
|
+
/** Public props for the `TranslationProvider` component. */
|
|
2639
2800
|
interface TranslationProviderProps {
|
|
2640
2801
|
children: React$1.ReactNode;
|
|
2641
2802
|
/** Current locale. Defaults to "en" */
|
|
@@ -2690,6 +2851,7 @@ declare const useUnderverseTranslations: (namespace: string) => (key: string) =>
|
|
|
2690
2851
|
*/
|
|
2691
2852
|
declare const useUnderverseLocale: () => Locale;
|
|
2692
2853
|
|
|
2854
|
+
/** Public props for the `NextIntlAdapter` component. */
|
|
2693
2855
|
interface NextIntlAdapterProps {
|
|
2694
2856
|
children: React$1.ReactNode;
|
|
2695
2857
|
locale?: string | null;
|
|
@@ -2785,6 +2947,7 @@ type UEditorLetterSpacingOption = {
|
|
|
2785
2947
|
label: string;
|
|
2786
2948
|
value: string;
|
|
2787
2949
|
};
|
|
2950
|
+
/** Public props for the `UEditor` component. */
|
|
2788
2951
|
interface UEditorProps {
|
|
2789
2952
|
content?: string;
|
|
2790
2953
|
onChange?: (content: string) => void;
|
|
@@ -2825,6 +2988,8 @@ declare function prepareUEditorContentForSave({ html, uploadImageForSave, }: {
|
|
|
2825
2988
|
uploadImageForSave?: UEditorUploadImageForSave;
|
|
2826
2989
|
}): Promise<UEditorPrepareContentForSaveResult>;
|
|
2827
2990
|
|
|
2991
|
+
/** Button component for actions, icon buttons, loading states, and submit flows. */
|
|
2992
|
+
|
|
2828
2993
|
declare const underverseMessages: {
|
|
2829
2994
|
readonly en: {
|
|
2830
2995
|
Common: {
|
|
@@ -3877,6 +4042,7 @@ declare const underverseMessages: {
|
|
|
3877
4042
|
};
|
|
3878
4043
|
};
|
|
3879
4044
|
};
|
|
4045
|
+
/** Supported locale keys available in `underverseMessages`. */
|
|
3880
4046
|
type UnderverseLocale = keyof typeof underverseMessages;
|
|
3881
4047
|
declare function getUnderverseMessages(locale?: UnderverseLocale): {
|
|
3882
4048
|
Common: {
|
|
@@ -4926,4 +5092,4 @@ declare function getUnderverseMessages(locale?: UnderverseLocale): {
|
|
|
4926
5092
|
};
|
|
4927
5093
|
};
|
|
4928
5094
|
|
|
4929
|
-
export { AccessDenied, type AccessDeniedProps, Alert, Avatar, Badge, Badge as BadgeBase, BatteryProgress, BottomSheet, Breadcrumb, Button, ButtonLoading, type ButtonProps, Calendar, type CalendarEvent, type CalendarHoliday, type CalendarProps, CalendarTimeline, type CalendarTimelineDateInput, type CalendarTimelineDayRangeMode, type CalendarTimelineEvent, type CalendarTimelineFormatters, type CalendarTimelineGroup, type CalendarTimelineInteractions, type CalendarTimelineLabels, type CalendarTimelineProps, type CalendarTimelineResource, type CalendarTimelineSize, type CalendarTimelineView, type CalendarTimelineVirtualization, Card, type CardProps, Carousel, type CarouselEffectOptions, type CarouselEffectPreset, type Category, CategoryTreeSelect, type CategoryTreeSelectBaseProps, type CategoryTreeSelectLabels, type CategoryTreeSelectMultiProps, type CategoryTreeSelectProps, type CategoryTreeSelectSingleProps, Checkbox, type CheckboxProps, CircularProgress, ClientOnly, ColorPicker, type ColorPickerProps, Combobox, type ComboboxOption, type ComboboxProps, CompactDatePicker, CompactPagination, type CompactPaginationProps, DataTable, type DataTableColumn, type DataTableDensity, type DataTableLabels, type DataTableProps, type DataTableQuery, type DataTableSize, DatePicker, type DatePickerProps, DateRangePicker, type DateRangePickerProps, DateTimePicker, type DateTimePickerProps, date as DateUtils, Drawer, DropdownMenu, DropdownMenuItem, DropdownMenuSeparator, EmojiPicker, type EmojiPickerProps, FallingIcons, FileUpload, type FileUploadProps, type FilterType, ForceInternalTranslationsProvider, Form, FormActions, FormCheckbox, FormControl, FormDescription, FormField, FormInput, FormItem, FormLabel, FormMessage, FormSubmitButton, GlobalLoading, GradientBadge, Grid, GridItem, type GridItemProps, type GridProps, ImageUpload, type ImageUploadProps, InlineLoading, Input, type InputProps, InteractiveBadge, Label, type LanguageOption, LanguageSwitcherHeadless as LanguageSwitcher, LanguageSwitcherHeadless, type LanguageSwitcherHeadlessProps, type LanguageSwitcherHeadlessProps as LanguageSwitcherProps, List, ListItem, LoadingBar, LoadingDots, LoadingProgress, LoadingSpinner, type LoadingState, type Locale, MiniProgress, Modal, MonthYearPicker, MonthYearPicker as MonthYearPickerBase, type MonthYearPickerProps, MultiCombobox, type MultiComboboxOption, type MultiComboboxProps, MusicPlayer, MusicPlayer as MusicPlayerDefault, type MusicPlayerProps, NextIntlAdapter, NotificationBadge, NotificationModal, NumberInput, type NumberInputProps, OverlayControls, type OverlayControlsProps, OverlayScrollArea, type OverlayScrollAreaProps, OverlayScrollbarProvider, type OverlayScrollbarProviderProps, PageLoading, Pagination, type PaginationProps, PasswordInput, type PasswordInputProps, PillTabs, Popover, Progress, PulseBadge, RadioGroup, RadioGroupItem, SIZE_STYLES_BTN, ScrollArea, type ScrollAreaProps, SearchInput, type SearchInputProps, Section, SegmentedProgress, SelectDropdown, Sheet, SidebarSheet, SimplePagination, type SimplePaginationProps, SimpleTabs, Skeleton, SkeletonAvatar, SkeletonButton, SkeletonCard, SkeletonList, SkeletonMessage, SkeletonPost, SkeletonTable, SkeletonText, SlideOver, Slider, type SliderProps, SmartImage, type Song, type Sorter, StatusBadge, StepProgress, type SupportedLocale, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, type TableHeaderProps, type TableProps, TableRow, Tabs, TagBadge, TagInput, TagInput as TagInputBase, type TagInputProps, Textarea, type TextareaProps, type ThemeMode, ThemeToggleHeadless as ThemeToggle, ThemeToggleHeadless, type ThemeToggleHeadlessProps, type ThemeToggleHeadlessProps as ThemeToggleProps, TimePicker, type TimePickerProps, Timeline, TimelineItem, ToastProvider, Tooltip, TranslationProvider, type TranslationProviderProps, type Translations, UEditor, type UEditorFontFamilyOption, type UEditorFontSizeOption, type UEditorInlineUploadedItem, type UEditorLetterSpacingOption, type UEditorLineHeightOption, UEditorPrepareContentForSaveError, type UEditorPrepareContentForSaveOptions, type UEditorPrepareContentForSaveResult, type UEditorProps, type UEditorRef, type UEditorUploadImageForSave, type UEditorUploadImageForSaveResult, type UEditorVariant, type UnderverseLocale, UnderverseNextIntlProvider, UnderverseProvider, type UnderverseProviderProps, type UploadedFile, type UploadedImage, type UseOverlayScrollbarTargetOptions, VARIANT_STYLES_ALERT, VARIANT_STYLES_BTN, VIETNAM_HOLIDAYS, VerticalTabs, Watermark, type WatermarkProps, cn
|
|
5095
|
+
export { AccessDenied, type AccessDeniedProps, Alert, Avatar, Badge, Badge as BadgeBase, BatteryProgress, BottomSheet, Breadcrumb, Button, ButtonLoading, type ButtonProps, Calendar, type CalendarEvent, type CalendarHoliday, type CalendarProps, CalendarTimeline, type CalendarTimelineDateInput, type CalendarTimelineDayRangeMode, type CalendarTimelineEvent, type CalendarTimelineFormatters, type CalendarTimelineGroup, type CalendarTimelineInteractions, type CalendarTimelineLabels, type CalendarTimelineProps, type CalendarTimelineResource, type CalendarTimelineSize, type CalendarTimelineView, type CalendarTimelineVirtualization, Card, type CardProps, Carousel, type CarouselEffectOptions, type CarouselEffectPreset, type Category, CategoryTreeSelect, type CategoryTreeSelectBaseProps, type CategoryTreeSelectLabels, type CategoryTreeSelectMultiProps, type CategoryTreeSelectProps, type CategoryTreeSelectSingleProps, Checkbox, type CheckboxProps, CircularProgress, ClientOnly, ColorPicker, type ColorPickerProps, Combobox, type ComboboxOption, type ComboboxProps, CompactDatePicker, CompactPagination, type CompactPaginationProps, DataTable, type DataTableColumn, type DataTableDensity, type DataTableLabels, type DataTableProps, type DataTableQuery, type DataTableSize, DatePicker, type DatePickerProps, DateRangePicker, type DateRangePickerProps, DateTimePicker, type DateTimePickerProps, date as DateUtils, Drawer, DropdownMenu, DropdownMenuItem, DropdownMenuSeparator, EmojiPicker, type EmojiPickerProps, FallingIcons, FileUpload, type FileUploadProps, type FilterType, ForceInternalTranslationsProvider, Form, FormActions, FormCheckbox, FormControl, FormDescription, FormField, FormInput, FormItem, FormLabel, FormMessage, FormSubmitButton, GlobalLoading, GradientBadge, Grid, GridItem, type GridItemProps, type GridProps, ImageUpload, type ImageUploadProps, InlineLoading, Input, type InputProps, InteractiveBadge, Label, type LanguageOption, LanguageSwitcherHeadless as LanguageSwitcher, LanguageSwitcherHeadless, type LanguageSwitcherHeadlessProps, type LanguageSwitcherHeadlessProps as LanguageSwitcherProps, List, ListItem, LoadingBar, LoadingDots, LoadingProgress, LoadingSpinner, type LoadingState, type Locale, MiniProgress, Modal, MonthYearPicker, MonthYearPicker as MonthYearPickerBase, type MonthYearPickerProps, MultiCombobox, type MultiComboboxOption, type MultiComboboxProps, MusicPlayer, MusicPlayer as MusicPlayerDefault, type MusicPlayerProps, NextIntlAdapter, NotificationBadge, NotificationModal, NumberInput, type NumberInputProps, OverlayControls, type OverlayControlsProps, OverlayScrollArea, type OverlayScrollAreaProps, OverlayScrollbarProvider, type OverlayScrollbarProviderProps, PageLoading, Pagination, type PaginationProps, PasswordInput, type PasswordInputProps, PillTabs, Popover, Progress, PulseBadge, RadioGroup, RadioGroupItem, SIZE_STYLES_BTN, ScrollArea, type ScrollAreaProps, SearchInput, type SearchInputProps, Section, SegmentedProgress, SelectDropdown, Sheet, SidebarSheet, SimplePagination, type SimplePaginationProps, SimpleTabs, Skeleton, SkeletonAvatar, SkeletonButton, SkeletonCard, SkeletonList, SkeletonMessage, SkeletonPost, SkeletonTable, SkeletonText, SlideOver, Slider, type SliderProps, SmartImage, type Song, type Sorter, StatusBadge, StepProgress, type SupportedLocale, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, type TableHeaderProps, type TableProps, TableRow, Tabs, TagBadge, TagInput, TagInput as TagInputBase, type TagInputProps, Textarea, type TextareaProps, type ThemeMode, ThemeToggleHeadless as ThemeToggle, ThemeToggleHeadless, type ThemeToggleHeadlessProps, type ThemeToggleHeadlessProps as ThemeToggleProps, TimePicker, type TimePickerProps, Timeline, TimelineItem, ToastProvider, Tooltip, TranslationProvider, type TranslationProviderProps, type Translations, UEditor, type UEditorFontFamilyOption, type UEditorFontSizeOption, type UEditorInlineUploadedItem, type UEditorLetterSpacingOption, type UEditorLineHeightOption, UEditorPrepareContentForSaveError, type UEditorPrepareContentForSaveOptions, type UEditorPrepareContentForSaveResult, type UEditorProps, type UEditorRef, type UEditorUploadImageForSave, type UEditorUploadImageForSaveResult, type UEditorVariant, type UnderverseLocale, UnderverseNextIntlProvider, UnderverseProvider, type UnderverseProviderProps, type UploadedFile, type UploadedImage, type UseOverlayScrollbarTargetOptions, VARIANT_STYLES_ALERT, VARIANT_STYLES_BTN, VIETNAM_HOLIDAYS, VerticalTabs, Watermark, type WatermarkProps, cn, cn as cnLocal, extractImageSrcsFromHtml, getAnimationStyles, getUnderverseMessages, injectAnimationStyles, loading, normalizeImageUrl, prepareUEditorContentForSave, shadcnAnimationStyles, underverseMessages, useFormField, useOverlayScrollbarTarget, useShadCNAnimations, useSmartLocale, useSmartTranslations, useToast, useTranslations as useUnderverseI18n, useLocale as useUnderverseI18nLocale, useUnderverseLocale, useUnderverseTranslations };
|