@underverse-ui/underverse 1.0.96 → 1.0.98
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/api-reference.json +1 -1
- package/dist/index.cjs +64 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +181 -12
- package/dist/index.d.ts +181 -12
- package/dist/index.js +75 -25
- 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,7 +656,9 @@ 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 {
|
|
661
|
+
id?: string;
|
|
619
662
|
tabs: Tab[];
|
|
620
663
|
defaultValue?: string;
|
|
621
664
|
className?: string;
|
|
@@ -630,6 +673,7 @@ interface TabsProps {
|
|
|
630
673
|
animateContent?: boolean;
|
|
631
674
|
}
|
|
632
675
|
declare const Tabs: React$1.FC<TabsProps>;
|
|
676
|
+
/** Public props for the `SimpleTabs` component. */
|
|
633
677
|
interface SimpleTabsProps {
|
|
634
678
|
tabs: Array<{
|
|
635
679
|
label: string;
|
|
@@ -640,15 +684,18 @@ interface SimpleTabsProps {
|
|
|
640
684
|
className?: string;
|
|
641
685
|
}
|
|
642
686
|
declare const SimpleTabs: React$1.FC<SimpleTabsProps>;
|
|
687
|
+
/** Public props for the `PillTabs` component. */
|
|
643
688
|
interface PillTabsProps extends TabsProps {
|
|
644
689
|
contained?: boolean;
|
|
645
690
|
}
|
|
646
691
|
declare const PillTabs: React$1.FC<PillTabsProps>;
|
|
692
|
+
/** Public props for the `VerticalTabs` component. */
|
|
647
693
|
interface VerticalTabsProps extends TabsProps {
|
|
648
694
|
sidebarWidth?: string;
|
|
649
695
|
}
|
|
650
696
|
declare const VerticalTabs: React$1.FC<VerticalTabsProps>;
|
|
651
697
|
|
|
698
|
+
/** Public props for the `DropdownMenu` component. */
|
|
652
699
|
interface DropdownMenuProps {
|
|
653
700
|
trigger: React__default.ReactElement;
|
|
654
701
|
children?: React__default.ReactNode;
|
|
@@ -668,6 +715,7 @@ interface DropdownMenuProps {
|
|
|
668
715
|
}>;
|
|
669
716
|
}
|
|
670
717
|
declare const DropdownMenu: React__default.FC<DropdownMenuProps>;
|
|
718
|
+
/** Public props for the `DropdownMenuItem` component. */
|
|
671
719
|
interface DropdownMenuItemProps {
|
|
672
720
|
children?: React__default.ReactNode;
|
|
673
721
|
label?: string;
|
|
@@ -694,6 +742,7 @@ declare const SelectDropdown: React__default.FC<{
|
|
|
694
742
|
className?: string;
|
|
695
743
|
}>;
|
|
696
744
|
|
|
745
|
+
/** Public props for the `Pagination` component. */
|
|
697
746
|
interface PaginationProps {
|
|
698
747
|
page: number;
|
|
699
748
|
totalPages: number;
|
|
@@ -719,6 +768,7 @@ interface PaginationProps {
|
|
|
719
768
|
};
|
|
720
769
|
}
|
|
721
770
|
declare const Pagination: React$1.FC<PaginationProps>;
|
|
771
|
+
/** Public props for the `SimplePagination` component. */
|
|
722
772
|
interface SimplePaginationProps {
|
|
723
773
|
page: number;
|
|
724
774
|
totalPages: number;
|
|
@@ -731,6 +781,7 @@ interface SimplePaginationProps {
|
|
|
731
781
|
pageSize?: number;
|
|
732
782
|
}
|
|
733
783
|
declare const SimplePagination: React$1.FC<SimplePaginationProps>;
|
|
784
|
+
/** Public props for the `CompactPagination` component. */
|
|
734
785
|
interface CompactPaginationProps {
|
|
735
786
|
page: number;
|
|
736
787
|
totalPages: number;
|
|
@@ -741,6 +792,7 @@ interface CompactPaginationProps {
|
|
|
741
792
|
declare const CompactPagination: React$1.FC<CompactPaginationProps>;
|
|
742
793
|
|
|
743
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. */
|
|
744
796
|
interface SectionProps extends React__default.HTMLAttributes<HTMLElement> {
|
|
745
797
|
children: React__default.ReactNode;
|
|
746
798
|
className?: string;
|
|
@@ -766,6 +818,7 @@ interface SectionProps extends React__default.HTMLAttributes<HTMLElement> {
|
|
|
766
818
|
}
|
|
767
819
|
declare const Section: React__default.ForwardRefExoticComponent<SectionProps & React__default.RefAttributes<HTMLElement>>;
|
|
768
820
|
|
|
821
|
+
/** Public props for the `ScrollArea` component. */
|
|
769
822
|
interface ScrollAreaProps extends HTMLAttributes<HTMLDivElement> {
|
|
770
823
|
className?: string;
|
|
771
824
|
contentClassName?: string;
|
|
@@ -789,6 +842,7 @@ interface OverlayScrollbarBehavior {
|
|
|
789
842
|
exclude: string;
|
|
790
843
|
}
|
|
791
844
|
|
|
845
|
+
/** Public props for the `OverlayScrollbarProvider` component. */
|
|
792
846
|
interface OverlayScrollbarProviderProps extends Partial<OverlayScrollbarBehavior> {
|
|
793
847
|
children?: React__default.ReactNode;
|
|
794
848
|
/** @deprecated Global selector scanning is removed. Kept only for backward compatibility. */
|
|
@@ -799,6 +853,7 @@ interface UseOverlayScrollbarTargetOptions extends Partial<OverlayScrollbarBehav
|
|
|
799
853
|
declare function OverlayScrollbarProvider({ enabled, theme, visibility, autoHide, autoHideDelay, dragScroll, clickScroll, overflowX, overflowY, exclude, selector, children, }?: OverlayScrollbarProviderProps): react_jsx_runtime.JSX.Element;
|
|
800
854
|
declare function useOverlayScrollbarTarget<T extends HTMLElement>(targetRef: React__default.RefObject<T | null>, options?: UseOverlayScrollbarTargetOptions): void;
|
|
801
855
|
|
|
856
|
+
/** Public props for the `OverlayScrollArea` component. */
|
|
802
857
|
interface OverlayScrollAreaProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
803
858
|
viewportClassName?: string;
|
|
804
859
|
viewportProps?: React__default.HTMLAttributes<HTMLDivElement>;
|
|
@@ -808,6 +863,7 @@ interface OverlayScrollAreaProps extends React__default.HTMLAttributes<HTMLDivEl
|
|
|
808
863
|
}
|
|
809
864
|
declare const OverlayScrollArea: React__default.ForwardRefExoticComponent<OverlayScrollAreaProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
810
865
|
|
|
866
|
+
/** Public props for the `DatePicker` component. */
|
|
811
867
|
interface DatePickerProps {
|
|
812
868
|
id?: string;
|
|
813
869
|
value?: Date;
|
|
@@ -831,6 +887,7 @@ interface DatePickerProps {
|
|
|
831
887
|
maxDate?: Date;
|
|
832
888
|
}
|
|
833
889
|
declare const DatePicker: React$1.FC<DatePickerProps>;
|
|
890
|
+
/** Public props for the `DateRangePicker` component. */
|
|
834
891
|
interface DateRangePickerProps {
|
|
835
892
|
id?: string;
|
|
836
893
|
startDate?: Date;
|
|
@@ -857,6 +914,7 @@ declare const CompactDatePicker: React$1.FC<{
|
|
|
857
914
|
className?: string;
|
|
858
915
|
}>;
|
|
859
916
|
|
|
917
|
+
/** Public props for the `DateTimePicker` component. */
|
|
860
918
|
interface DateTimePickerProps {
|
|
861
919
|
value?: Date;
|
|
862
920
|
onChange: (date: Date | undefined) => void;
|
|
@@ -883,6 +941,7 @@ declare const DateTimePicker: React$1.FC<DateTimePickerProps>;
|
|
|
883
941
|
|
|
884
942
|
type TimeFormat = "24" | "12";
|
|
885
943
|
type TimePickerVariant = "default" | "compact" | "inline";
|
|
944
|
+
/** Public props for the `TimePicker` component. */
|
|
886
945
|
interface TimePickerProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "onChange"> {
|
|
887
946
|
value?: string;
|
|
888
947
|
defaultValue?: string;
|
|
@@ -939,6 +998,7 @@ declare function TimePicker({ value, defaultValue, onChange, placeholder, disabl
|
|
|
939
998
|
|
|
940
999
|
type MonthYearPickerVariant = "default" | "compact" | "inline";
|
|
941
1000
|
type PickerSize = "sm" | "md" | "lg";
|
|
1001
|
+
/** Public props for the `MonthYearPicker` component. */
|
|
942
1002
|
interface MonthYearPickerProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "onChange" | "value" | "defaultValue"> {
|
|
943
1003
|
/** Current value as Date or {month, year} */
|
|
944
1004
|
value?: Date | {
|
|
@@ -1026,6 +1086,7 @@ interface CalendarEvent {
|
|
|
1026
1086
|
color?: string;
|
|
1027
1087
|
badge?: string;
|
|
1028
1088
|
}
|
|
1089
|
+
/** Public props for the `Calendar` component. */
|
|
1029
1090
|
interface CalendarProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "defaultValue" | "value" | "onSelect"> {
|
|
1030
1091
|
month?: Date;
|
|
1031
1092
|
defaultMonth?: Date;
|
|
@@ -1259,6 +1320,7 @@ type CalendarTimelineAdaptiveSlotWidths = boolean | {
|
|
|
1259
1320
|
*/
|
|
1260
1321
|
fillDistribute?: "event" | "all";
|
|
1261
1322
|
};
|
|
1323
|
+
/** Public props for the `CalendarTimeline` component. */
|
|
1262
1324
|
interface CalendarTimelineProps<TResourceMeta = unknown, TEventMeta = unknown> extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "onChange"> {
|
|
1263
1325
|
resources: CalendarTimelineResource<TResourceMeta>[];
|
|
1264
1326
|
events: CalendarTimelineEvent<TEventMeta>[];
|
|
@@ -1487,6 +1549,7 @@ type ComboboxOption = string | {
|
|
|
1487
1549
|
description?: string;
|
|
1488
1550
|
disabled?: boolean;
|
|
1489
1551
|
};
|
|
1552
|
+
/** Public props for the `Combobox` component. */
|
|
1490
1553
|
interface ComboboxProps {
|
|
1491
1554
|
id?: string;
|
|
1492
1555
|
options: ComboboxOption[];
|
|
@@ -1528,6 +1591,7 @@ interface MultiComboboxOption {
|
|
|
1528
1591
|
disabled?: boolean;
|
|
1529
1592
|
group?: string;
|
|
1530
1593
|
}
|
|
1594
|
+
/** Public props for the `MultiCombobox` component. */
|
|
1531
1595
|
interface MultiComboboxProps {
|
|
1532
1596
|
id?: string;
|
|
1533
1597
|
options: Array<string | MultiComboboxOption>;
|
|
@@ -1565,6 +1629,7 @@ interface MultiComboboxProps {
|
|
|
1565
1629
|
}
|
|
1566
1630
|
declare const MultiCombobox: React$1.FC<MultiComboboxProps>;
|
|
1567
1631
|
|
|
1632
|
+
/** Public props for the `RadioGroup` component. */
|
|
1568
1633
|
interface RadioGroupProps {
|
|
1569
1634
|
value?: string;
|
|
1570
1635
|
defaultValue?: string;
|
|
@@ -1581,6 +1646,7 @@ interface RadioGroupProps {
|
|
|
1581
1646
|
errorMessage?: string;
|
|
1582
1647
|
}
|
|
1583
1648
|
declare const RadioGroup: React$1.ForwardRefExoticComponent<RadioGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1649
|
+
/** Public props for the `RadioGroupItem` component. */
|
|
1584
1650
|
interface RadioGroupItemProps {
|
|
1585
1651
|
value: string;
|
|
1586
1652
|
id?: string;
|
|
@@ -1597,6 +1663,7 @@ interface RadioGroupItemProps {
|
|
|
1597
1663
|
}
|
|
1598
1664
|
declare const RadioGroupItem: React$1.ForwardRefExoticComponent<RadioGroupItemProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1599
1665
|
|
|
1666
|
+
/** Public props for the `Slider` component. */
|
|
1600
1667
|
interface SliderProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "onChange" | "size"> {
|
|
1601
1668
|
mode?: "single" | "range";
|
|
1602
1669
|
value?: number;
|
|
@@ -1630,6 +1697,7 @@ interface SliderProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>
|
|
|
1630
1697
|
}
|
|
1631
1698
|
declare const Slider: React$1.ForwardRefExoticComponent<SliderProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
1632
1699
|
|
|
1700
|
+
/** Public props for the `OverlayControls` component. */
|
|
1633
1701
|
interface OverlayControlsProps {
|
|
1634
1702
|
mode: "live" | "review";
|
|
1635
1703
|
value: number;
|
|
@@ -1660,70 +1728,140 @@ interface OverlayControlsProps {
|
|
|
1660
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;
|
|
1661
1729
|
|
|
1662
1730
|
interface Category {
|
|
1731
|
+
/** Unique category id used for selection and tree relationships. */
|
|
1663
1732
|
id: number;
|
|
1733
|
+
/** Visible label rendered for this node. */
|
|
1664
1734
|
name: string;
|
|
1735
|
+
/** Parent category id. Omit or set `null` for a root node. */
|
|
1665
1736
|
parent_id?: number | null;
|
|
1737
|
+
/** Optional custom icon rendered before the category label. */
|
|
1666
1738
|
icon?: React__default.ReactNode;
|
|
1667
1739
|
}
|
|
1740
|
+
/**
|
|
1741
|
+
* Override the built-in copy used by {@link CategoryTreeSelect}.
|
|
1742
|
+
* Useful for i18n or product-specific wording.
|
|
1743
|
+
*/
|
|
1668
1744
|
interface CategoryTreeSelectLabels {
|
|
1669
|
-
/** Text shown when no categories available */
|
|
1745
|
+
/** Text shown when no categories are available. */
|
|
1670
1746
|
emptyText?: string;
|
|
1671
|
-
/** Text shown when categories are selected
|
|
1747
|
+
/** Text shown when categories are selected. Receives the selected count. */
|
|
1672
1748
|
selectedText?: (count: number) => string;
|
|
1673
|
-
/** Placeholder text for search input
|
|
1749
|
+
/** Placeholder text for the search input when search is enabled. */
|
|
1674
1750
|
searchPlaceholder?: string;
|
|
1675
|
-
/** Text shown when search yields no results */
|
|
1751
|
+
/** Text shown when search yields no results. */
|
|
1676
1752
|
noResultsText?: string;
|
|
1677
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
|
+
*/
|
|
1678
1762
|
interface CategoryTreeSelectBaseProps {
|
|
1679
1763
|
id?: string;
|
|
1764
|
+
/** Optional field label rendered above the control. */
|
|
1680
1765
|
label?: string;
|
|
1766
|
+
/** Extra classes for the label element. */
|
|
1681
1767
|
labelClassName?: string;
|
|
1768
|
+
/** Flat category list. Parent/child relationships are resolved via `parent_id`. */
|
|
1682
1769
|
categories: Category[];
|
|
1770
|
+
/** Placeholder text when no category is selected. */
|
|
1683
1771
|
placeholder?: string;
|
|
1772
|
+
/** Disables interaction and fades the control. */
|
|
1684
1773
|
disabled?: boolean;
|
|
1774
|
+
/** Participate in form-required validation. */
|
|
1685
1775
|
required?: boolean;
|
|
1776
|
+
/** Visual size of the trigger. */
|
|
1686
1777
|
size?: "sm" | "md" | "lg";
|
|
1778
|
+
/** Visual style of the trigger. */
|
|
1687
1779
|
variant?: "default" | "outline" | "ghost" | "filled";
|
|
1780
|
+
/** Show a clear button when a selection exists. */
|
|
1688
1781
|
allowClear?: boolean;
|
|
1782
|
+
/** External error message. Takes precedence over helper text. */
|
|
1689
1783
|
error?: string;
|
|
1784
|
+
/** Helper text shown below the field when there is no error. */
|
|
1690
1785
|
helperText?: string;
|
|
1691
|
-
/** When true, renders as a read-only tree view without
|
|
1786
|
+
/** When true, renders as a read-only tree view without selection behavior. */
|
|
1692
1787
|
viewOnly?: boolean;
|
|
1693
|
-
/**
|
|
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
|
+
*/
|
|
1694
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;
|
|
1695
1810
|
/**
|
|
1696
1811
|
* Enable search input for filtering categories.
|
|
1697
1812
|
* Default: auto-enabled when `categories.length > 10` (similar to MultiCombobox).
|
|
1698
1813
|
*/
|
|
1699
1814
|
enableSearch?: boolean;
|
|
1700
|
-
/**
|
|
1815
|
+
/** Replace built-in labels for localization or custom wording. */
|
|
1701
1816
|
labels?: CategoryTreeSelectLabels;
|
|
1702
|
-
/**
|
|
1817
|
+
/** Render the tree directly instead of inside a dropdown trigger. */
|
|
1703
1818
|
inline?: boolean;
|
|
1704
|
-
/**
|
|
1819
|
+
/** Called when a node row is clicked. Useful for navigation flows. */
|
|
1705
1820
|
onNodeClick?: (node: Category) => void;
|
|
1706
|
-
/** Custom class for the tree container */
|
|
1821
|
+
/** Custom class for the outer tree container. */
|
|
1707
1822
|
className?: string;
|
|
1708
|
-
/** Enable OverlayScrollbars for dropdown tree viewport. Default: false */
|
|
1823
|
+
/** Enable OverlayScrollbars for the dropdown tree viewport. Default: `false`. */
|
|
1709
1824
|
useOverlayScrollbar?: boolean;
|
|
1710
|
-
/** 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. */
|
|
1711
1826
|
leafOnlySelect?: boolean;
|
|
1712
1827
|
}
|
|
1828
|
+
/** Multi-select mode. This is the default when `singleSelect` is omitted. */
|
|
1713
1829
|
interface CategoryTreeSelectMultiProps extends CategoryTreeSelectBaseProps {
|
|
1714
1830
|
singleSelect?: false;
|
|
1831
|
+
/** Selected category ids. */
|
|
1715
1832
|
value?: number[];
|
|
1833
|
+
/** Called with the full selected id list. */
|
|
1716
1834
|
onChange?: (selectedIds: number[]) => void;
|
|
1717
1835
|
}
|
|
1836
|
+
/** Single-select mode. */
|
|
1718
1837
|
interface CategoryTreeSelectSingleProps extends CategoryTreeSelectBaseProps {
|
|
1719
1838
|
singleSelect: true;
|
|
1839
|
+
/** Selected category id or `null` when nothing is selected. */
|
|
1720
1840
|
value?: number | null;
|
|
1841
|
+
/** Called with the selected id or `null`. */
|
|
1721
1842
|
onChange?: (selectedId: number | null) => void;
|
|
1722
1843
|
}
|
|
1844
|
+
/** Union of the single-select and multi-select prop shapes. */
|
|
1723
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
|
+
*/
|
|
1724
1861
|
declare function CategoryTreeSelect(props: CategoryTreeSelectProps): react_jsx_runtime.JSX.Element;
|
|
1725
1862
|
|
|
1726
1863
|
type Fit = "cover" | "contain";
|
|
1864
|
+
/** Public props for the `SmartImage` component. */
|
|
1727
1865
|
interface SmartImageProps {
|
|
1728
1866
|
src: string | undefined | null;
|
|
1729
1867
|
alt: string;
|
|
@@ -1766,6 +1904,7 @@ interface UploadedImage {
|
|
|
1766
1904
|
height?: number;
|
|
1767
1905
|
formattedSize?: string;
|
|
1768
1906
|
}
|
|
1907
|
+
/** Public props for the `ImageUpload` component. */
|
|
1769
1908
|
interface ImageUploadProps {
|
|
1770
1909
|
onUpload?: (image: UploadedImage) => void;
|
|
1771
1910
|
onRemove?: (imageId: string) => void;
|
|
@@ -1795,6 +1934,7 @@ interface UploadedFile {
|
|
|
1795
1934
|
error?: string;
|
|
1796
1935
|
formattedSize?: string;
|
|
1797
1936
|
}
|
|
1937
|
+
/** Public props for the `FileUpload` component. */
|
|
1798
1938
|
interface FileUploadProps {
|
|
1799
1939
|
/** Callback when a file is uploaded */
|
|
1800
1940
|
onUpload?: (file: UploadedFile) => void;
|
|
@@ -1854,6 +1994,7 @@ interface CarouselEffectOptions {
|
|
|
1854
1994
|
stackOffset?: number;
|
|
1855
1995
|
stackLift?: number;
|
|
1856
1996
|
}
|
|
1997
|
+
/** Public props for the `Carousel` component. */
|
|
1857
1998
|
interface CarouselProps {
|
|
1858
1999
|
children: React$1.ReactNode;
|
|
1859
2000
|
autoScroll?: boolean;
|
|
@@ -1881,6 +2022,7 @@ declare function Carousel({ children, autoScroll, autoScrollInterval, animation,
|
|
|
1881
2022
|
type IconComponent = React__default.ComponentType<{
|
|
1882
2023
|
className?: string;
|
|
1883
2024
|
}>;
|
|
2025
|
+
/** Public props for the `FallingIcons` component. */
|
|
1884
2026
|
interface FallingIconsProps {
|
|
1885
2027
|
icon?: IconComponent;
|
|
1886
2028
|
imageUrl?: string;
|
|
@@ -1912,6 +2054,7 @@ declare function FallingIcons({ icon: Icon, imageUrl, count, className, areaClas
|
|
|
1912
2054
|
|
|
1913
2055
|
type Variant$2 = "plain" | "outlined" | "soft" | "bordered" | "card" | "flush" | "striped";
|
|
1914
2056
|
type Size$1 = "xs" | "sm" | "md" | "lg";
|
|
2057
|
+
/** Public props for the `List` component. */
|
|
1915
2058
|
interface ListProps extends React$1.HTMLAttributes<HTMLUListElement> {
|
|
1916
2059
|
as?: "ul" | "ol" | "div";
|
|
1917
2060
|
ordered?: boolean;
|
|
@@ -1933,6 +2076,7 @@ interface ListProps extends React$1.HTMLAttributes<HTMLUListElement> {
|
|
|
1933
2076
|
/** Clip overflow on the outer list wrapper. Mainly relevant for striped/card-like variants. */
|
|
1934
2077
|
overflowHidden?: boolean;
|
|
1935
2078
|
}
|
|
2079
|
+
/** Public props for the `ListItem` component. */
|
|
1936
2080
|
interface ListItemProps extends React$1.HTMLAttributes<HTMLLIElement> {
|
|
1937
2081
|
as?: "li" | "div" | "a" | "button";
|
|
1938
2082
|
selected?: boolean;
|
|
@@ -1973,6 +2117,7 @@ declare const List: React$1.ForwardRefExoticComponent<ListProps & React$1.RefAtt
|
|
|
1973
2117
|
type WatermarkPreset = "confidential" | "draft" | "sample" | "copyright" | "doNotCopy" | "internal";
|
|
1974
2118
|
type WatermarkPattern = "diagonal" | "grid" | "straight";
|
|
1975
2119
|
type AnimationVariant = "fade" | "slide" | "scale" | "pulse" | "none";
|
|
2120
|
+
/** Public props for the `Watermark` component. */
|
|
1976
2121
|
interface WatermarkProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
1977
2122
|
text?: string | string[];
|
|
1978
2123
|
image?: string;
|
|
@@ -2025,6 +2170,7 @@ type Variant$1 = "default" | "outlined" | "card" | "minimal" | "modern" | "gradi
|
|
|
2025
2170
|
type Size = "sm" | "md" | "lg" | "xl";
|
|
2026
2171
|
type Mode = "vertical" | "horizontal";
|
|
2027
2172
|
type LineStyle = "solid" | "dashed" | "dotted";
|
|
2173
|
+
/** Public props for the `Timeline` component. */
|
|
2028
2174
|
interface TimelineProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
2029
2175
|
align?: Align;
|
|
2030
2176
|
variant?: Variant$1;
|
|
@@ -2041,6 +2187,7 @@ interface TimelineProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
|
2041
2187
|
/** Show connecting line */
|
|
2042
2188
|
showLine?: boolean;
|
|
2043
2189
|
}
|
|
2190
|
+
/** Public props for the `TimelineItem` component. */
|
|
2044
2191
|
interface TimelineItemProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "title"> {
|
|
2045
2192
|
title?: React$1.ReactNode;
|
|
2046
2193
|
description?: React$1.ReactNode;
|
|
@@ -2072,6 +2219,7 @@ declare const Timeline: React$1.ForwardRefExoticComponent<TimelineProps & React$
|
|
|
2072
2219
|
type OutputFormat = "hex" | "rgba" | "hsl" | "hsla";
|
|
2073
2220
|
type ColorPickerSize = "sm" | "md" | "lg";
|
|
2074
2221
|
type ColorPickerVariant = "default" | "compact" | "full" | "minimal";
|
|
2222
|
+
/** Public props for the `ColorPicker` component. */
|
|
2075
2223
|
interface ColorPickerProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "onChange"> {
|
|
2076
2224
|
value?: string;
|
|
2077
2225
|
defaultValue?: string;
|
|
@@ -2110,6 +2258,7 @@ interface Song {
|
|
|
2110
2258
|
startTime?: number;
|
|
2111
2259
|
endTime?: number;
|
|
2112
2260
|
}
|
|
2261
|
+
/** Public props for the `MusicPlayer` component. */
|
|
2113
2262
|
interface MusicPlayerProps {
|
|
2114
2263
|
playlist?: Song[];
|
|
2115
2264
|
autoPlay?: boolean;
|
|
@@ -2130,6 +2279,7 @@ type ResponsiveConfig = Partial<{
|
|
|
2130
2279
|
}>;
|
|
2131
2280
|
type GridVariant = "default" | "bordered" | "card" | "flat" | "glass";
|
|
2132
2281
|
type GridAutoFlow = "row" | "column" | "row dense" | "column dense";
|
|
2282
|
+
/** Public props for the `Grid` component. */
|
|
2133
2283
|
interface GridProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
2134
2284
|
/** Number of columns or full template string. Default: 12 (1fr each). */
|
|
2135
2285
|
columns?: number | string;
|
|
@@ -2166,6 +2316,7 @@ interface GridProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
|
2166
2316
|
/** Apply Card-like outline (rounded + border + bg-card). @deprecated Use variant="card" instead */
|
|
2167
2317
|
outlined?: boolean;
|
|
2168
2318
|
}
|
|
2319
|
+
/** Public props for the `GridItem` component. */
|
|
2169
2320
|
interface GridItemProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
2170
2321
|
/** Column span (e.g., 3 => span 3). */
|
|
2171
2322
|
colSpan?: number | string;
|
|
@@ -2196,23 +2347,27 @@ declare const Grid: React__default.ForwardRefExoticComponent<GridProps & React__
|
|
|
2196
2347
|
Item: React__default.ForwardRefExoticComponent<GridItemProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
2197
2348
|
};
|
|
2198
2349
|
|
|
2350
|
+
/** Public props for the `ClientOnly` component. */
|
|
2199
2351
|
interface ClientOnlyProps {
|
|
2200
2352
|
children: React.ReactNode;
|
|
2201
2353
|
fallback?: React.ReactNode;
|
|
2202
2354
|
}
|
|
2203
2355
|
declare function ClientOnly({ children, fallback }: ClientOnlyProps): react_jsx_runtime.JSX.Element;
|
|
2204
2356
|
|
|
2357
|
+
/** Public props for the `LoadingSpinner` component. */
|
|
2205
2358
|
interface LoadingSpinnerProps {
|
|
2206
2359
|
size?: 'sm' | 'md' | 'lg';
|
|
2207
2360
|
className?: string;
|
|
2208
2361
|
color?: 'primary' | 'foreground' | 'muted';
|
|
2209
2362
|
}
|
|
2210
2363
|
declare const LoadingSpinner: React__default.FC<LoadingSpinnerProps>;
|
|
2364
|
+
/** Public props for the `LoadingDots` component. */
|
|
2211
2365
|
interface LoadingDotsProps {
|
|
2212
2366
|
className?: string;
|
|
2213
2367
|
color?: 'primary' | 'foreground' | 'muted';
|
|
2214
2368
|
}
|
|
2215
2369
|
declare const LoadingDots: React__default.FC<LoadingDotsProps>;
|
|
2370
|
+
/** Public props for the `LoadingBar` component. */
|
|
2216
2371
|
interface LoadingBarProps {
|
|
2217
2372
|
progress?: number;
|
|
2218
2373
|
className?: string;
|
|
@@ -2304,6 +2459,7 @@ type DataTableLabels = {
|
|
|
2304
2459
|
alignRight?: string;
|
|
2305
2460
|
noData?: string;
|
|
2306
2461
|
};
|
|
2462
|
+
/** Public props for the `DataTable` component. */
|
|
2307
2463
|
interface DataTableProps<T> {
|
|
2308
2464
|
columns: DataTableColumn<T>[];
|
|
2309
2465
|
data: T[];
|
|
@@ -2349,6 +2505,7 @@ interface DataTableProps<T> {
|
|
|
2349
2505
|
|
|
2350
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;
|
|
2351
2507
|
|
|
2508
|
+
/** Public props for the `Table` component. */
|
|
2352
2509
|
interface TableProps extends React__default.HTMLAttributes<HTMLTableElement> {
|
|
2353
2510
|
containerClassName?: string;
|
|
2354
2511
|
disableContainer?: boolean;
|
|
@@ -2356,6 +2513,7 @@ interface TableProps extends React__default.HTMLAttributes<HTMLTableElement> {
|
|
|
2356
2513
|
useOverlayScrollbar?: boolean;
|
|
2357
2514
|
}
|
|
2358
2515
|
declare const Table: React__default.ForwardRefExoticComponent<TableProps & React__default.RefAttributes<HTMLTableElement>>;
|
|
2516
|
+
/** Public props for the `TableHeader` component. */
|
|
2359
2517
|
interface TableHeaderProps extends React__default.HTMLAttributes<HTMLTableSectionElement> {
|
|
2360
2518
|
filterRow?: React__default.ReactNode;
|
|
2361
2519
|
}
|
|
@@ -2367,6 +2525,7 @@ declare const TableHead: React__default.ForwardRefExoticComponent<React__default
|
|
|
2367
2525
|
declare const TableCell: React__default.ForwardRefExoticComponent<React__default.TdHTMLAttributes<HTMLTableCellElement> & React__default.RefAttributes<HTMLTableCellElement>>;
|
|
2368
2526
|
declare const TableCaption: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLTableCaptionElement> & React__default.RefAttributes<HTMLTableCaptionElement>>;
|
|
2369
2527
|
|
|
2528
|
+
/** Public props for the `FormWrapper` component. */
|
|
2370
2529
|
interface FormWrapperProps<T extends FieldValues = FieldValues> {
|
|
2371
2530
|
children: React$1.ReactNode;
|
|
2372
2531
|
onSubmit: SubmitHandler<T>;
|
|
@@ -2416,6 +2575,7 @@ interface NotificationItem {
|
|
|
2416
2575
|
created_at: string;
|
|
2417
2576
|
metadata?: any;
|
|
2418
2577
|
}
|
|
2578
|
+
/** Public props for the `NotificationModal` component. */
|
|
2419
2579
|
interface NotificationModalProps {
|
|
2420
2580
|
isOpen: boolean;
|
|
2421
2581
|
onClose: () => void;
|
|
@@ -2427,6 +2587,7 @@ interface NotificationModalProps {
|
|
|
2427
2587
|
declare function NotificationModal({ isOpen, onClose, notification, titleText, openLinkText, closeText }: NotificationModalProps): react_jsx_runtime.JSX.Element | null;
|
|
2428
2588
|
|
|
2429
2589
|
type Variant = "destructive" | "warning" | "info";
|
|
2590
|
+
/** Public props for the `AccessDenied` component. */
|
|
2430
2591
|
interface AccessDeniedProps {
|
|
2431
2592
|
title?: string;
|
|
2432
2593
|
description?: string;
|
|
@@ -2441,6 +2602,7 @@ interface AccessDeniedProps {
|
|
|
2441
2602
|
declare function AccessDenied({ title, description, variant, icon: Icon, className, children, overflowHidden, }: AccessDeniedProps): react_jsx_runtime.JSX.Element;
|
|
2442
2603
|
|
|
2443
2604
|
type ThemeMode = "light" | "dark" | "system";
|
|
2605
|
+
/** Public props for the `ThemeToggleHeadless` component. */
|
|
2444
2606
|
interface ThemeToggleHeadlessProps {
|
|
2445
2607
|
theme: ThemeMode;
|
|
2446
2608
|
onChange: (theme: ThemeMode) => void;
|
|
@@ -2459,6 +2621,7 @@ interface LanguageOption {
|
|
|
2459
2621
|
name: string;
|
|
2460
2622
|
flag?: string;
|
|
2461
2623
|
}
|
|
2624
|
+
/** Public props for the `LanguageSwitcherHeadless` component. */
|
|
2462
2625
|
interface LanguageSwitcherHeadlessProps {
|
|
2463
2626
|
locales: LanguageOption[];
|
|
2464
2627
|
currentLocale: string;
|
|
@@ -2635,6 +2798,7 @@ declare const VARIANT_STYLES_ALERT: {
|
|
|
2635
2798
|
|
|
2636
2799
|
type Locale = "en" | "vi" | "ko" | "ja";
|
|
2637
2800
|
type Translations = Record<string, Record<string, string | Record<string, string>>>;
|
|
2801
|
+
/** Public props for the `TranslationProvider` component. */
|
|
2638
2802
|
interface TranslationProviderProps {
|
|
2639
2803
|
children: React$1.ReactNode;
|
|
2640
2804
|
/** Current locale. Defaults to "en" */
|
|
@@ -2689,6 +2853,7 @@ declare const useUnderverseTranslations: (namespace: string) => (key: string) =>
|
|
|
2689
2853
|
*/
|
|
2690
2854
|
declare const useUnderverseLocale: () => Locale;
|
|
2691
2855
|
|
|
2856
|
+
/** Public props for the `NextIntlAdapter` component. */
|
|
2692
2857
|
interface NextIntlAdapterProps {
|
|
2693
2858
|
children: React$1.ReactNode;
|
|
2694
2859
|
locale?: string | null;
|
|
@@ -2784,6 +2949,7 @@ type UEditorLetterSpacingOption = {
|
|
|
2784
2949
|
label: string;
|
|
2785
2950
|
value: string;
|
|
2786
2951
|
};
|
|
2952
|
+
/** Public props for the `UEditor` component. */
|
|
2787
2953
|
interface UEditorProps {
|
|
2788
2954
|
content?: string;
|
|
2789
2955
|
onChange?: (content: string) => void;
|
|
@@ -2824,6 +2990,8 @@ declare function prepareUEditorContentForSave({ html, uploadImageForSave, }: {
|
|
|
2824
2990
|
uploadImageForSave?: UEditorUploadImageForSave;
|
|
2825
2991
|
}): Promise<UEditorPrepareContentForSaveResult>;
|
|
2826
2992
|
|
|
2993
|
+
/** Button component for actions, icon buttons, loading states, and submit flows. */
|
|
2994
|
+
|
|
2827
2995
|
declare const underverseMessages: {
|
|
2828
2996
|
readonly en: {
|
|
2829
2997
|
Common: {
|
|
@@ -3876,6 +4044,7 @@ declare const underverseMessages: {
|
|
|
3876
4044
|
};
|
|
3877
4045
|
};
|
|
3878
4046
|
};
|
|
4047
|
+
/** Supported locale keys available in `underverseMessages`. */
|
|
3879
4048
|
type UnderverseLocale = keyof typeof underverseMessages;
|
|
3880
4049
|
declare function getUnderverseMessages(locale?: UnderverseLocale): {
|
|
3881
4050
|
Common: {
|