@underverse-ui/underverse 2.0.3 → 2.0.5
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 +9 -2
- package/dist/{chunk-Y7SQKJ7X.js → chunk-2UQ7H5GR.js} +3 -3
- package/dist/{chunk-Z6WE65J2.js → chunk-JXE7JBQV.js} +24 -6
- package/dist/chunk-JXE7JBQV.js.map +1 -0
- package/dist/{chunk-UNDGI6ZI.js → chunk-OZH3EDGZ.js} +2 -2
- package/dist/index.cjs +206 -88
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +76 -21
- package/dist/index.d.ts +76 -21
- package/dist/index.js +186 -86
- package/dist/index.js.map +1 -1
- package/dist/{menu-bar-AAD3LQTN.js → menu-bar-6HZDCX44.js} +3 -3
- package/dist/ueditor.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-Z6WE65J2.js.map +0 -1
- /package/dist/{chunk-Y7SQKJ7X.js.map → chunk-2UQ7H5GR.js.map} +0 -0
- /package/dist/{chunk-UNDGI6ZI.js.map → chunk-OZH3EDGZ.js.map} +0 -0
- /package/dist/{menu-bar-AAD3LQTN.js.map → menu-bar-6HZDCX44.js.map} +0 -0
package/dist/index.d.cts
CHANGED
|
@@ -24,9 +24,11 @@ declare const VARIANT_STYLES_BTN: {
|
|
|
24
24
|
gradient: string;
|
|
25
25
|
};
|
|
26
26
|
declare const SIZE_STYLES_BTN: {
|
|
27
|
+
xs: string;
|
|
27
28
|
sm: string;
|
|
28
29
|
md: string;
|
|
29
30
|
lg: string;
|
|
31
|
+
xl: string;
|
|
30
32
|
smx: string;
|
|
31
33
|
icon: string;
|
|
32
34
|
};
|
|
@@ -165,6 +167,55 @@ interface CheckboxProps extends React$1.InputHTMLAttributes<HTMLInputElement> {
|
|
|
165
167
|
}
|
|
166
168
|
declare const Checkbox: React$1.ForwardRefExoticComponent<CheckboxProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
167
169
|
|
|
170
|
+
declare const formControlSizeStyles: {
|
|
171
|
+
readonly xs: {
|
|
172
|
+
readonly control: "h-6 px-2 text-xs leading-none";
|
|
173
|
+
readonly compactControl: "h-6 px-2 text-xs leading-none";
|
|
174
|
+
readonly input: "h-6 px-2 text-xs leading-none";
|
|
175
|
+
readonly label: "text-xs";
|
|
176
|
+
readonly icon: "h-3.5 w-3.5";
|
|
177
|
+
readonly iconButton: "h-6 w-6";
|
|
178
|
+
readonly tag: "h-4 max-w-20 px-1.5 text-[10px] leading-none";
|
|
179
|
+
};
|
|
180
|
+
readonly sm: {
|
|
181
|
+
readonly control: "h-8 px-3 text-sm leading-none";
|
|
182
|
+
readonly compactControl: "h-8 px-2.5 text-sm leading-none";
|
|
183
|
+
readonly input: "h-8 px-3 text-sm leading-none";
|
|
184
|
+
readonly label: "text-xs";
|
|
185
|
+
readonly icon: "h-4 w-4 md:h-3.5 md:w-3.5";
|
|
186
|
+
readonly iconButton: "h-7 w-7 md:h-6 md:w-6";
|
|
187
|
+
readonly tag: "h-5 max-w-24 px-2 text-[10px] leading-none";
|
|
188
|
+
};
|
|
189
|
+
readonly md: {
|
|
190
|
+
readonly control: "h-10 px-4 text-sm leading-none";
|
|
191
|
+
readonly compactControl: "h-10 px-3 text-sm leading-none";
|
|
192
|
+
readonly input: "h-10 px-4 text-sm leading-none";
|
|
193
|
+
readonly label: "text-sm";
|
|
194
|
+
readonly icon: "h-4 w-4";
|
|
195
|
+
readonly iconButton: "h-8 w-8";
|
|
196
|
+
readonly tag: "h-6 max-w-28 px-2 text-xs leading-none";
|
|
197
|
+
};
|
|
198
|
+
readonly lg: {
|
|
199
|
+
readonly control: "h-12 px-6 text-base leading-none";
|
|
200
|
+
readonly compactControl: "h-12 px-4 text-base leading-none";
|
|
201
|
+
readonly input: "h-12 px-5 text-base leading-none";
|
|
202
|
+
readonly label: "text-base";
|
|
203
|
+
readonly icon: "h-5 w-5";
|
|
204
|
+
readonly iconButton: "h-10 w-10";
|
|
205
|
+
readonly tag: "h-7 max-w-32 px-2.5 text-sm leading-none";
|
|
206
|
+
};
|
|
207
|
+
readonly xl: {
|
|
208
|
+
readonly control: "h-14 px-8 text-base leading-none";
|
|
209
|
+
readonly compactControl: "h-14 px-5 text-base leading-none";
|
|
210
|
+
readonly input: "h-14 px-6 text-base leading-none";
|
|
211
|
+
readonly label: "text-base";
|
|
212
|
+
readonly icon: "h-5 w-5";
|
|
213
|
+
readonly iconButton: "h-12 w-12";
|
|
214
|
+
readonly tag: "h-8 max-w-36 px-3 text-sm leading-none";
|
|
215
|
+
};
|
|
216
|
+
};
|
|
217
|
+
type FormControlSize = keyof typeof formControlSizeStyles;
|
|
218
|
+
|
|
168
219
|
/** Public props for the `Input` component. */
|
|
169
220
|
interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size"> {
|
|
170
221
|
label?: string;
|
|
@@ -173,7 +224,7 @@ interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size">
|
|
|
173
224
|
error?: string;
|
|
174
225
|
description?: string;
|
|
175
226
|
variant?: "default" | "filled" | "outlined" | "minimal";
|
|
176
|
-
size?:
|
|
227
|
+
size?: FormControlSize;
|
|
177
228
|
borderMode?: BorderMode;
|
|
178
229
|
leftIcon?: React__default.ComponentType<{
|
|
179
230
|
className?: string;
|
|
@@ -322,7 +373,7 @@ interface TagInputProps {
|
|
|
322
373
|
/** Custom class cho container */
|
|
323
374
|
className?: string;
|
|
324
375
|
/** Size: 'sm' | 'md' | 'lg' */
|
|
325
|
-
size?:
|
|
376
|
+
size?: FormControlSize;
|
|
326
377
|
/** Disabled state */
|
|
327
378
|
disabled?: boolean;
|
|
328
379
|
/** Loading state - hiển thị spinner trên nút Search */
|
|
@@ -778,8 +829,6 @@ interface VerticalTabsProps extends TabsProps {
|
|
|
778
829
|
}
|
|
779
830
|
declare const VerticalTabs: React$1.FC<VerticalTabsProps>;
|
|
780
831
|
|
|
781
|
-
type FormControlSize = "sm" | "md" | "lg";
|
|
782
|
-
|
|
783
832
|
/** Public props for the `DropdownMenu` component. */
|
|
784
833
|
interface DropdownMenuProps {
|
|
785
834
|
trigger: React__default.ReactElement;
|
|
@@ -963,7 +1012,7 @@ interface DatePickerProps {
|
|
|
963
1012
|
placeholder?: string;
|
|
964
1013
|
className?: string;
|
|
965
1014
|
disabled?: boolean;
|
|
966
|
-
size?:
|
|
1015
|
+
size?: FormControlSize;
|
|
967
1016
|
label?: string;
|
|
968
1017
|
/** Custom class for label */
|
|
969
1018
|
labelClassName?: string;
|
|
@@ -998,7 +1047,7 @@ interface DateRangePickerProps {
|
|
|
998
1047
|
/** Maximum selectable date (inclusive). Compared by day in local timezone. */
|
|
999
1048
|
maxDate?: Date;
|
|
1000
1049
|
/** Size variant */
|
|
1001
|
-
size?:
|
|
1050
|
+
size?: FormControlSize;
|
|
1002
1051
|
disabled?: boolean;
|
|
1003
1052
|
borderMode?: BorderMode;
|
|
1004
1053
|
}
|
|
@@ -1064,7 +1113,7 @@ interface LunarDatePickerProps {
|
|
|
1064
1113
|
placeholder?: string;
|
|
1065
1114
|
className?: string;
|
|
1066
1115
|
disabled?: boolean;
|
|
1067
|
-
size?:
|
|
1116
|
+
size?: FormControlSize;
|
|
1068
1117
|
label?: string;
|
|
1069
1118
|
/** Custom class for label */
|
|
1070
1119
|
labelClassName?: string;
|
|
@@ -1094,7 +1143,7 @@ interface LunarDateRangePickerProps {
|
|
|
1094
1143
|
disablePastDates?: boolean;
|
|
1095
1144
|
minDate?: LunarPickerValue;
|
|
1096
1145
|
maxDate?: LunarPickerValue;
|
|
1097
|
-
size?:
|
|
1146
|
+
size?: FormControlSize;
|
|
1098
1147
|
disabled?: boolean;
|
|
1099
1148
|
borderMode?: BorderMode;
|
|
1100
1149
|
}
|
|
@@ -1121,7 +1170,7 @@ interface DateTimePickerProps {
|
|
|
1121
1170
|
/** Label for the "Clear" button */
|
|
1122
1171
|
clearLabel?: string;
|
|
1123
1172
|
/** Size variant */
|
|
1124
|
-
size?:
|
|
1173
|
+
size?: FormControlSize;
|
|
1125
1174
|
borderMode?: BorderMode;
|
|
1126
1175
|
}
|
|
1127
1176
|
declare const DateTimePicker: React$1.FC<DateTimePickerProps>;
|
|
@@ -1135,7 +1184,7 @@ interface TimePickerProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "
|
|
|
1135
1184
|
onChange?: (value: string | undefined) => void;
|
|
1136
1185
|
placeholder?: string;
|
|
1137
1186
|
disabled?: boolean;
|
|
1138
|
-
size?:
|
|
1187
|
+
size?: FormControlSize;
|
|
1139
1188
|
label?: string;
|
|
1140
1189
|
required?: boolean;
|
|
1141
1190
|
format?: TimeFormat;
|
|
@@ -1182,10 +1231,9 @@ interface TimePickerProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "
|
|
|
1182
1231
|
onClose?: () => void;
|
|
1183
1232
|
borderMode?: BorderMode;
|
|
1184
1233
|
}
|
|
1185
|
-
declare function TimePicker({ value, defaultValue, onChange, placeholder, disabled, size, label, required, format, includeSeconds, minuteStep, secondStep, clearable, variant, matchTriggerWidth, showNow, showPresets, allowManualInput, customPresets, min, max, minTime, maxTime, disabledTimes, error, success, helperText, animate, onOpen, onClose, className, borderMode, ...rest }: TimePickerProps): react_jsx_runtime.JSX.Element;
|
|
1234
|
+
declare function TimePicker({ value, defaultValue, onChange, placeholder, disabled, size: requestedSize, label, required, format, includeSeconds, minuteStep, secondStep, clearable, variant, matchTriggerWidth, showNow, showPresets, allowManualInput, customPresets, min, max, minTime, maxTime, disabledTimes, error, success, helperText, animate, onOpen, onClose, className, borderMode, ...rest }: TimePickerProps): react_jsx_runtime.JSX.Element;
|
|
1186
1235
|
|
|
1187
1236
|
type MonthYearPickerVariant = "default" | "compact" | "inline";
|
|
1188
|
-
type PickerSize = "sm" | "md" | "lg";
|
|
1189
1237
|
/** Public props for the `MonthYearPicker` component. */
|
|
1190
1238
|
interface MonthYearPickerProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "onChange" | "value" | "defaultValue"> {
|
|
1191
1239
|
/** Current value as Date or {month, year} */
|
|
@@ -1209,7 +1257,7 @@ interface MonthYearPickerProps extends Omit<React$1.HTMLAttributes<HTMLDivElemen
|
|
|
1209
1257
|
/** Disabled state */
|
|
1210
1258
|
disabled?: boolean;
|
|
1211
1259
|
/** Size variant */
|
|
1212
|
-
size?:
|
|
1260
|
+
size?: FormControlSize;
|
|
1213
1261
|
/** Label text */
|
|
1214
1262
|
label?: string;
|
|
1215
1263
|
/** Custom class for label */
|
|
@@ -1255,7 +1303,7 @@ interface MonthYearPickerProps extends Omit<React$1.HTMLAttributes<HTMLDivElemen
|
|
|
1255
1303
|
};
|
|
1256
1304
|
borderMode?: BorderMode;
|
|
1257
1305
|
}
|
|
1258
|
-
declare function MonthYearPicker({ value, defaultValue, onChange, placeholder, disabled, size, label, labelClassName, required, clearable, variant, matchTriggerWidth, monthNames, shortMonthNames, minYear, maxYear, minDate, maxDate, error, success, helperText, animate, onOpen, onClose, showThisMonth, columnLabels, className, borderMode, ...rest }: MonthYearPickerProps): react_jsx_runtime.JSX.Element;
|
|
1306
|
+
declare function MonthYearPicker({ value, defaultValue, onChange, placeholder, disabled, size: requestedSize, label, labelClassName, required, clearable, variant, matchTriggerWidth, monthNames, shortMonthNames, minYear, maxYear, minDate, maxDate, error, success, helperText, animate, onOpen, onClose, showThisMonth, columnLabels, className, borderMode, ...rest }: MonthYearPickerProps): react_jsx_runtime.JSX.Element;
|
|
1259
1307
|
|
|
1260
1308
|
type SelectMode = "single" | "multiple" | "range";
|
|
1261
1309
|
type Variant$3 = "default" | "bordered" | "card" | "minimal";
|
|
@@ -1747,7 +1795,7 @@ interface ComboboxProps {
|
|
|
1747
1795
|
placeholder?: string;
|
|
1748
1796
|
className?: string;
|
|
1749
1797
|
disabled?: boolean;
|
|
1750
|
-
size?:
|
|
1798
|
+
size?: FormControlSize;
|
|
1751
1799
|
variant?: "default" | "outline" | "ghost" | "filled";
|
|
1752
1800
|
allowClear?: boolean;
|
|
1753
1801
|
searchPlaceholder?: string;
|
|
@@ -1817,7 +1865,7 @@ interface MultiComboboxProps {
|
|
|
1817
1865
|
showClear?: boolean;
|
|
1818
1866
|
className?: string;
|
|
1819
1867
|
disabled?: boolean;
|
|
1820
|
-
size?:
|
|
1868
|
+
size?: FormControlSize;
|
|
1821
1869
|
variant?: "default" | "outline" | "ghost";
|
|
1822
1870
|
label?: string;
|
|
1823
1871
|
/** Custom class for label */
|
|
@@ -2064,7 +2112,7 @@ interface CategoryTreeSelectBaseProps {
|
|
|
2064
2112
|
/** Participate in form-required validation. */
|
|
2065
2113
|
required?: boolean;
|
|
2066
2114
|
/** Visual size of the trigger. */
|
|
2067
|
-
size?:
|
|
2115
|
+
size?: FormControlSize;
|
|
2068
2116
|
/** Visual style of the trigger. */
|
|
2069
2117
|
variant?: "default" | "outline" | "ghost" | "filled";
|
|
2070
2118
|
/** Show a clear button when a selection exists. */
|
|
@@ -2574,7 +2622,7 @@ declare const Timeline: React$1.ForwardRefExoticComponent<TimelineProps & React$
|
|
|
2574
2622
|
};
|
|
2575
2623
|
|
|
2576
2624
|
type OutputFormat = "hex" | "rgba" | "hsl" | "hsla";
|
|
2577
|
-
type ColorPickerSize =
|
|
2625
|
+
type ColorPickerSize = FormControlSize;
|
|
2578
2626
|
type ColorPickerVariant = "default" | "compact" | "full" | "minimal";
|
|
2579
2627
|
/** Public props for the `ColorPicker` component. */
|
|
2580
2628
|
interface ColorPickerProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "onChange"> {
|
|
@@ -2769,6 +2817,7 @@ type FilterType = "text" | "select" | "date";
|
|
|
2769
2817
|
type DataTableSize = "sm" | "md" | "lg";
|
|
2770
2818
|
type DataTableDensity = "compact" | "normal" | "comfortable";
|
|
2771
2819
|
type DataTableHorizontalMode = "auto" | "scroll" | "fit";
|
|
2820
|
+
type DataTablePaginationAlign = "left" | "center" | "right";
|
|
2772
2821
|
type DataTableColumn<T> = {
|
|
2773
2822
|
key: string;
|
|
2774
2823
|
title: React__default.ReactNode;
|
|
@@ -2863,6 +2912,8 @@ interface DataTableProps<T> {
|
|
|
2863
2912
|
onQueryChange?: (q: DataTableQuery) => void;
|
|
2864
2913
|
caption?: React__default.ReactNode;
|
|
2865
2914
|
toolbar?: React__default.ReactNode;
|
|
2915
|
+
/** Show the toolbar row above the table. Default: true */
|
|
2916
|
+
showToolbar?: boolean;
|
|
2866
2917
|
/**
|
|
2867
2918
|
* Define color groups for the column visibility dropdown legend.
|
|
2868
2919
|
* Key = color value used in column's `colorTag` (e.g. "#1e40af").
|
|
@@ -2874,6 +2925,8 @@ interface DataTableProps<T> {
|
|
|
2874
2925
|
enableColumnVisibilityToggle?: boolean;
|
|
2875
2926
|
enableDensityToggle?: boolean;
|
|
2876
2927
|
enableHeaderAlignToggle?: boolean;
|
|
2928
|
+
/** Uppercase all text displayed in table headers. Default: false */
|
|
2929
|
+
uppercaseHeader?: boolean;
|
|
2877
2930
|
striped?: boolean;
|
|
2878
2931
|
/** Hiển thị đường kẻ dọc ngăn cách giữa các cột */
|
|
2879
2932
|
columnDividers?: boolean;
|
|
@@ -2901,13 +2954,15 @@ interface DataTableProps<T> {
|
|
|
2901
2954
|
estimatedRowHeight?: number;
|
|
2902
2955
|
/** Number of extra rows rendered above and below the visible range. Default: 8 */
|
|
2903
2956
|
overscan?: number;
|
|
2957
|
+
/** Alignment of the page navigation controls. Default: "right" */
|
|
2958
|
+
paginationAlign?: DataTablePaginationAlign;
|
|
2904
2959
|
/** Double-click leaf headers to auto-fit column width based on visible content. Default: true */
|
|
2905
2960
|
enableHeaderAutoFit?: boolean;
|
|
2906
2961
|
labels?: DataTableLabels;
|
|
2907
2962
|
borderMode?: BorderMode;
|
|
2908
2963
|
}
|
|
2909
2964
|
|
|
2910
|
-
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, virtualizedRows, estimatedRowHeight, overscan, enableHeaderAutoFit, labels, columnColorGroups, borderMode, }: DataTableProps<T>): react_jsx_runtime.JSX.Element;
|
|
2965
|
+
declare function DataTable<T extends Record<string, any>>({ columns, data, rowKey, loading, total, page, pageSize, pageSizeOptions, onQueryChange, caption, toolbar, showToolbar, size, enableColumnVisibilityToggle, enableDensityToggle, enableHeaderAlignToggle, uppercaseHeader, striped, columnDividers, className, storageKey, stickyHeader, maxHeight, horizontalMode, overflowHidden, useOverlayScrollbar, virtualizedRows, estimatedRowHeight, overscan, paginationAlign, enableHeaderAutoFit, labels, columnColorGroups, borderMode, }: DataTableProps<T>): react_jsx_runtime.JSX.Element;
|
|
2911
2966
|
|
|
2912
2967
|
/** Public props for the `Table` component. */
|
|
2913
2968
|
interface TableProps extends React__default.HTMLAttributes<HTMLTableElement> {
|
|
@@ -2937,7 +2992,7 @@ interface FormWrapperProps<T extends FieldValues = FieldValues> {
|
|
|
2937
2992
|
initialValues?: Partial<T>;
|
|
2938
2993
|
validationSchema?: Record<string, any>;
|
|
2939
2994
|
className?: string;
|
|
2940
|
-
size?:
|
|
2995
|
+
size?: FormControlSize;
|
|
2941
2996
|
}
|
|
2942
2997
|
declare const Form: <T extends FieldValues = FieldValues>({ children, onSubmit, initialValues, validationSchema, className, size, ...props }: FormWrapperProps<T>) => react_jsx_runtime.JSX.Element;
|
|
2943
2998
|
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => react_jsx_runtime.JSX.Element;
|
|
@@ -7145,4 +7200,4 @@ declare function getUnderverseMessages(locale?: UnderverseLocale): {
|
|
|
7145
7200
|
};
|
|
7146
7201
|
};
|
|
7147
7202
|
|
|
7148
|
-
export { AccessDenied, type AccessDeniedProps, Alert, Avatar, Badge, Badge as BadgeBase, BatteryProgress, BottomSheet, type BottomSheetProps, 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, type DrawerProps, DropdownMenu, DropdownMenuItem, DropdownMenuSeparator, EmojiPicker, type EmojiPickerProps, FallingIcons, FileUpload, type FileUploadProps, type FilterType, ForceInternalTranslationsProvider, Form, FormActions, FormCheckbox, FormControl, FormDescription, FormField, FormInput, FormItem, FormLabel, FormMessage, FormSubmitButton, type GlobalI18nConfig, 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, LunarDatePicker, type LunarDatePickerProps, LunarDateRangePicker, type LunarDateRangePickerProps, type LunarDateValue, type LunarPickerValue, lunar as LunarUtils, 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, RadioButtonGroup, RadioGroup, RadioGroupItem, SIZE_STYLES_BTN, ScrollArea, type ScrollAreaProps, SearchInput, type SearchInputProps, Section, SegmentedControl, SegmentedProgress, SelectDropdown, Sheet, type SheetProps, SidebarSheet, type SidebarSheetProps, SimplePagination, type SimplePaginationProps, SimpleRadioGroup, SimpleTabs, Skeleton, SkeletonAvatar, SkeletonButton, SkeletonCard, SkeletonList, SkeletonMessage, SkeletonPost, SkeletonTable, SkeletonText, SlideOver, type SlideOverProps, Slider, type SliderProps, SmartImage, type Song, type Sorter, StatusBadge, StepProgress, type StickerAssetVariant, type StickerImageUrlOptions, StickerPicker, type StickerPickerProps, 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, ToggleGroup, Tooltip, TranslationProvider, type TranslationProviderProps, type Translations, UnderverseConfigProvider, type UnderverseConfigProviderProps, type UnderverseLocale, UnderverseNextIntlProvider, UnderverseProvider, type UnderverseProviderProps, type UnderverseUIConfig, type UploadedFile, type UploadedImage, type UseOverlayScrollbarTargetOptions, VARIANT_STYLES_ALERT, VARIANT_STYLES_BTN, VIETNAM_HOLIDAYS, VerticalTabs, Watermark, type WatermarkProps, cn, cn as cnLocal, getAnimationStyles, getEmojiImageUrl, getEmojiUnifiedCode, getStickerImageUrl, getUnderverseMessages, injectAnimationStyles, loading, setEmojiBaseUrl, setStickerBaseUrl, shadcnAnimationStyles, underverseMessages, useFormField, useGlobalI18n, useOverlayScrollbarTarget, useShadCNAnimations, useSmartLocale, useSmartTranslations, useToast, useTranslations as useUnderverseI18n, useLocale as useUnderverseI18nLocale, useUnderverseLocale, useUnderverseTranslations, useUnderverseUIConfig };
|
|
7203
|
+
export { AccessDenied, type AccessDeniedProps, Alert, Avatar, Badge, Badge as BadgeBase, BatteryProgress, BottomSheet, type BottomSheetProps, 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 DataTablePaginationAlign, type DataTableProps, type DataTableQuery, type DataTableSize, DatePicker, type DatePickerProps, DateRangePicker, type DateRangePickerProps, DateTimePicker, type DateTimePickerProps, date as DateUtils, Drawer, type DrawerProps, DropdownMenu, DropdownMenuItem, DropdownMenuSeparator, EmojiPicker, type EmojiPickerProps, FallingIcons, FileUpload, type FileUploadProps, type FilterType, ForceInternalTranslationsProvider, Form, FormActions, FormCheckbox, FormControl, FormDescription, FormField, FormInput, FormItem, FormLabel, FormMessage, FormSubmitButton, type GlobalI18nConfig, 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, LunarDatePicker, type LunarDatePickerProps, LunarDateRangePicker, type LunarDateRangePickerProps, type LunarDateValue, type LunarPickerValue, lunar as LunarUtils, 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, RadioButtonGroup, RadioGroup, RadioGroupItem, SIZE_STYLES_BTN, ScrollArea, type ScrollAreaProps, SearchInput, type SearchInputProps, Section, SegmentedControl, SegmentedProgress, SelectDropdown, Sheet, type SheetProps, SidebarSheet, type SidebarSheetProps, SimplePagination, type SimplePaginationProps, SimpleRadioGroup, SimpleTabs, Skeleton, SkeletonAvatar, SkeletonButton, SkeletonCard, SkeletonList, SkeletonMessage, SkeletonPost, SkeletonTable, SkeletonText, SlideOver, type SlideOverProps, Slider, type SliderProps, SmartImage, type Song, type Sorter, StatusBadge, StepProgress, type StickerAssetVariant, type StickerImageUrlOptions, StickerPicker, type StickerPickerProps, 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, ToggleGroup, Tooltip, TranslationProvider, type TranslationProviderProps, type Translations, UnderverseConfigProvider, type UnderverseConfigProviderProps, type UnderverseLocale, UnderverseNextIntlProvider, UnderverseProvider, type UnderverseProviderProps, type UnderverseUIConfig, type UploadedFile, type UploadedImage, type UseOverlayScrollbarTargetOptions, VARIANT_STYLES_ALERT, VARIANT_STYLES_BTN, VIETNAM_HOLIDAYS, VerticalTabs, Watermark, type WatermarkProps, cn, cn as cnLocal, getAnimationStyles, getEmojiImageUrl, getEmojiUnifiedCode, getStickerImageUrl, getUnderverseMessages, injectAnimationStyles, loading, setEmojiBaseUrl, setStickerBaseUrl, shadcnAnimationStyles, underverseMessages, useFormField, useGlobalI18n, useOverlayScrollbarTarget, useShadCNAnimations, useSmartLocale, useSmartTranslations, useToast, useTranslations as useUnderverseI18n, useLocale as useUnderverseI18nLocale, useUnderverseLocale, useUnderverseTranslations, useUnderverseUIConfig };
|
package/dist/index.d.ts
CHANGED
|
@@ -24,9 +24,11 @@ declare const VARIANT_STYLES_BTN: {
|
|
|
24
24
|
gradient: string;
|
|
25
25
|
};
|
|
26
26
|
declare const SIZE_STYLES_BTN: {
|
|
27
|
+
xs: string;
|
|
27
28
|
sm: string;
|
|
28
29
|
md: string;
|
|
29
30
|
lg: string;
|
|
31
|
+
xl: string;
|
|
30
32
|
smx: string;
|
|
31
33
|
icon: string;
|
|
32
34
|
};
|
|
@@ -165,6 +167,55 @@ interface CheckboxProps extends React$1.InputHTMLAttributes<HTMLInputElement> {
|
|
|
165
167
|
}
|
|
166
168
|
declare const Checkbox: React$1.ForwardRefExoticComponent<CheckboxProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
167
169
|
|
|
170
|
+
declare const formControlSizeStyles: {
|
|
171
|
+
readonly xs: {
|
|
172
|
+
readonly control: "h-6 px-2 text-xs leading-none";
|
|
173
|
+
readonly compactControl: "h-6 px-2 text-xs leading-none";
|
|
174
|
+
readonly input: "h-6 px-2 text-xs leading-none";
|
|
175
|
+
readonly label: "text-xs";
|
|
176
|
+
readonly icon: "h-3.5 w-3.5";
|
|
177
|
+
readonly iconButton: "h-6 w-6";
|
|
178
|
+
readonly tag: "h-4 max-w-20 px-1.5 text-[10px] leading-none";
|
|
179
|
+
};
|
|
180
|
+
readonly sm: {
|
|
181
|
+
readonly control: "h-8 px-3 text-sm leading-none";
|
|
182
|
+
readonly compactControl: "h-8 px-2.5 text-sm leading-none";
|
|
183
|
+
readonly input: "h-8 px-3 text-sm leading-none";
|
|
184
|
+
readonly label: "text-xs";
|
|
185
|
+
readonly icon: "h-4 w-4 md:h-3.5 md:w-3.5";
|
|
186
|
+
readonly iconButton: "h-7 w-7 md:h-6 md:w-6";
|
|
187
|
+
readonly tag: "h-5 max-w-24 px-2 text-[10px] leading-none";
|
|
188
|
+
};
|
|
189
|
+
readonly md: {
|
|
190
|
+
readonly control: "h-10 px-4 text-sm leading-none";
|
|
191
|
+
readonly compactControl: "h-10 px-3 text-sm leading-none";
|
|
192
|
+
readonly input: "h-10 px-4 text-sm leading-none";
|
|
193
|
+
readonly label: "text-sm";
|
|
194
|
+
readonly icon: "h-4 w-4";
|
|
195
|
+
readonly iconButton: "h-8 w-8";
|
|
196
|
+
readonly tag: "h-6 max-w-28 px-2 text-xs leading-none";
|
|
197
|
+
};
|
|
198
|
+
readonly lg: {
|
|
199
|
+
readonly control: "h-12 px-6 text-base leading-none";
|
|
200
|
+
readonly compactControl: "h-12 px-4 text-base leading-none";
|
|
201
|
+
readonly input: "h-12 px-5 text-base leading-none";
|
|
202
|
+
readonly label: "text-base";
|
|
203
|
+
readonly icon: "h-5 w-5";
|
|
204
|
+
readonly iconButton: "h-10 w-10";
|
|
205
|
+
readonly tag: "h-7 max-w-32 px-2.5 text-sm leading-none";
|
|
206
|
+
};
|
|
207
|
+
readonly xl: {
|
|
208
|
+
readonly control: "h-14 px-8 text-base leading-none";
|
|
209
|
+
readonly compactControl: "h-14 px-5 text-base leading-none";
|
|
210
|
+
readonly input: "h-14 px-6 text-base leading-none";
|
|
211
|
+
readonly label: "text-base";
|
|
212
|
+
readonly icon: "h-5 w-5";
|
|
213
|
+
readonly iconButton: "h-12 w-12";
|
|
214
|
+
readonly tag: "h-8 max-w-36 px-3 text-sm leading-none";
|
|
215
|
+
};
|
|
216
|
+
};
|
|
217
|
+
type FormControlSize = keyof typeof formControlSizeStyles;
|
|
218
|
+
|
|
168
219
|
/** Public props for the `Input` component. */
|
|
169
220
|
interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size"> {
|
|
170
221
|
label?: string;
|
|
@@ -173,7 +224,7 @@ interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size">
|
|
|
173
224
|
error?: string;
|
|
174
225
|
description?: string;
|
|
175
226
|
variant?: "default" | "filled" | "outlined" | "minimal";
|
|
176
|
-
size?:
|
|
227
|
+
size?: FormControlSize;
|
|
177
228
|
borderMode?: BorderMode;
|
|
178
229
|
leftIcon?: React__default.ComponentType<{
|
|
179
230
|
className?: string;
|
|
@@ -322,7 +373,7 @@ interface TagInputProps {
|
|
|
322
373
|
/** Custom class cho container */
|
|
323
374
|
className?: string;
|
|
324
375
|
/** Size: 'sm' | 'md' | 'lg' */
|
|
325
|
-
size?:
|
|
376
|
+
size?: FormControlSize;
|
|
326
377
|
/** Disabled state */
|
|
327
378
|
disabled?: boolean;
|
|
328
379
|
/** Loading state - hiển thị spinner trên nút Search */
|
|
@@ -778,8 +829,6 @@ interface VerticalTabsProps extends TabsProps {
|
|
|
778
829
|
}
|
|
779
830
|
declare const VerticalTabs: React$1.FC<VerticalTabsProps>;
|
|
780
831
|
|
|
781
|
-
type FormControlSize = "sm" | "md" | "lg";
|
|
782
|
-
|
|
783
832
|
/** Public props for the `DropdownMenu` component. */
|
|
784
833
|
interface DropdownMenuProps {
|
|
785
834
|
trigger: React__default.ReactElement;
|
|
@@ -963,7 +1012,7 @@ interface DatePickerProps {
|
|
|
963
1012
|
placeholder?: string;
|
|
964
1013
|
className?: string;
|
|
965
1014
|
disabled?: boolean;
|
|
966
|
-
size?:
|
|
1015
|
+
size?: FormControlSize;
|
|
967
1016
|
label?: string;
|
|
968
1017
|
/** Custom class for label */
|
|
969
1018
|
labelClassName?: string;
|
|
@@ -998,7 +1047,7 @@ interface DateRangePickerProps {
|
|
|
998
1047
|
/** Maximum selectable date (inclusive). Compared by day in local timezone. */
|
|
999
1048
|
maxDate?: Date;
|
|
1000
1049
|
/** Size variant */
|
|
1001
|
-
size?:
|
|
1050
|
+
size?: FormControlSize;
|
|
1002
1051
|
disabled?: boolean;
|
|
1003
1052
|
borderMode?: BorderMode;
|
|
1004
1053
|
}
|
|
@@ -1064,7 +1113,7 @@ interface LunarDatePickerProps {
|
|
|
1064
1113
|
placeholder?: string;
|
|
1065
1114
|
className?: string;
|
|
1066
1115
|
disabled?: boolean;
|
|
1067
|
-
size?:
|
|
1116
|
+
size?: FormControlSize;
|
|
1068
1117
|
label?: string;
|
|
1069
1118
|
/** Custom class for label */
|
|
1070
1119
|
labelClassName?: string;
|
|
@@ -1094,7 +1143,7 @@ interface LunarDateRangePickerProps {
|
|
|
1094
1143
|
disablePastDates?: boolean;
|
|
1095
1144
|
minDate?: LunarPickerValue;
|
|
1096
1145
|
maxDate?: LunarPickerValue;
|
|
1097
|
-
size?:
|
|
1146
|
+
size?: FormControlSize;
|
|
1098
1147
|
disabled?: boolean;
|
|
1099
1148
|
borderMode?: BorderMode;
|
|
1100
1149
|
}
|
|
@@ -1121,7 +1170,7 @@ interface DateTimePickerProps {
|
|
|
1121
1170
|
/** Label for the "Clear" button */
|
|
1122
1171
|
clearLabel?: string;
|
|
1123
1172
|
/** Size variant */
|
|
1124
|
-
size?:
|
|
1173
|
+
size?: FormControlSize;
|
|
1125
1174
|
borderMode?: BorderMode;
|
|
1126
1175
|
}
|
|
1127
1176
|
declare const DateTimePicker: React$1.FC<DateTimePickerProps>;
|
|
@@ -1135,7 +1184,7 @@ interface TimePickerProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "
|
|
|
1135
1184
|
onChange?: (value: string | undefined) => void;
|
|
1136
1185
|
placeholder?: string;
|
|
1137
1186
|
disabled?: boolean;
|
|
1138
|
-
size?:
|
|
1187
|
+
size?: FormControlSize;
|
|
1139
1188
|
label?: string;
|
|
1140
1189
|
required?: boolean;
|
|
1141
1190
|
format?: TimeFormat;
|
|
@@ -1182,10 +1231,9 @@ interface TimePickerProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "
|
|
|
1182
1231
|
onClose?: () => void;
|
|
1183
1232
|
borderMode?: BorderMode;
|
|
1184
1233
|
}
|
|
1185
|
-
declare function TimePicker({ value, defaultValue, onChange, placeholder, disabled, size, label, required, format, includeSeconds, minuteStep, secondStep, clearable, variant, matchTriggerWidth, showNow, showPresets, allowManualInput, customPresets, min, max, minTime, maxTime, disabledTimes, error, success, helperText, animate, onOpen, onClose, className, borderMode, ...rest }: TimePickerProps): react_jsx_runtime.JSX.Element;
|
|
1234
|
+
declare function TimePicker({ value, defaultValue, onChange, placeholder, disabled, size: requestedSize, label, required, format, includeSeconds, minuteStep, secondStep, clearable, variant, matchTriggerWidth, showNow, showPresets, allowManualInput, customPresets, min, max, minTime, maxTime, disabledTimes, error, success, helperText, animate, onOpen, onClose, className, borderMode, ...rest }: TimePickerProps): react_jsx_runtime.JSX.Element;
|
|
1186
1235
|
|
|
1187
1236
|
type MonthYearPickerVariant = "default" | "compact" | "inline";
|
|
1188
|
-
type PickerSize = "sm" | "md" | "lg";
|
|
1189
1237
|
/** Public props for the `MonthYearPicker` component. */
|
|
1190
1238
|
interface MonthYearPickerProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "onChange" | "value" | "defaultValue"> {
|
|
1191
1239
|
/** Current value as Date or {month, year} */
|
|
@@ -1209,7 +1257,7 @@ interface MonthYearPickerProps extends Omit<React$1.HTMLAttributes<HTMLDivElemen
|
|
|
1209
1257
|
/** Disabled state */
|
|
1210
1258
|
disabled?: boolean;
|
|
1211
1259
|
/** Size variant */
|
|
1212
|
-
size?:
|
|
1260
|
+
size?: FormControlSize;
|
|
1213
1261
|
/** Label text */
|
|
1214
1262
|
label?: string;
|
|
1215
1263
|
/** Custom class for label */
|
|
@@ -1255,7 +1303,7 @@ interface MonthYearPickerProps extends Omit<React$1.HTMLAttributes<HTMLDivElemen
|
|
|
1255
1303
|
};
|
|
1256
1304
|
borderMode?: BorderMode;
|
|
1257
1305
|
}
|
|
1258
|
-
declare function MonthYearPicker({ value, defaultValue, onChange, placeholder, disabled, size, label, labelClassName, required, clearable, variant, matchTriggerWidth, monthNames, shortMonthNames, minYear, maxYear, minDate, maxDate, error, success, helperText, animate, onOpen, onClose, showThisMonth, columnLabels, className, borderMode, ...rest }: MonthYearPickerProps): react_jsx_runtime.JSX.Element;
|
|
1306
|
+
declare function MonthYearPicker({ value, defaultValue, onChange, placeholder, disabled, size: requestedSize, label, labelClassName, required, clearable, variant, matchTriggerWidth, monthNames, shortMonthNames, minYear, maxYear, minDate, maxDate, error, success, helperText, animate, onOpen, onClose, showThisMonth, columnLabels, className, borderMode, ...rest }: MonthYearPickerProps): react_jsx_runtime.JSX.Element;
|
|
1259
1307
|
|
|
1260
1308
|
type SelectMode = "single" | "multiple" | "range";
|
|
1261
1309
|
type Variant$3 = "default" | "bordered" | "card" | "minimal";
|
|
@@ -1747,7 +1795,7 @@ interface ComboboxProps {
|
|
|
1747
1795
|
placeholder?: string;
|
|
1748
1796
|
className?: string;
|
|
1749
1797
|
disabled?: boolean;
|
|
1750
|
-
size?:
|
|
1798
|
+
size?: FormControlSize;
|
|
1751
1799
|
variant?: "default" | "outline" | "ghost" | "filled";
|
|
1752
1800
|
allowClear?: boolean;
|
|
1753
1801
|
searchPlaceholder?: string;
|
|
@@ -1817,7 +1865,7 @@ interface MultiComboboxProps {
|
|
|
1817
1865
|
showClear?: boolean;
|
|
1818
1866
|
className?: string;
|
|
1819
1867
|
disabled?: boolean;
|
|
1820
|
-
size?:
|
|
1868
|
+
size?: FormControlSize;
|
|
1821
1869
|
variant?: "default" | "outline" | "ghost";
|
|
1822
1870
|
label?: string;
|
|
1823
1871
|
/** Custom class for label */
|
|
@@ -2064,7 +2112,7 @@ interface CategoryTreeSelectBaseProps {
|
|
|
2064
2112
|
/** Participate in form-required validation. */
|
|
2065
2113
|
required?: boolean;
|
|
2066
2114
|
/** Visual size of the trigger. */
|
|
2067
|
-
size?:
|
|
2115
|
+
size?: FormControlSize;
|
|
2068
2116
|
/** Visual style of the trigger. */
|
|
2069
2117
|
variant?: "default" | "outline" | "ghost" | "filled";
|
|
2070
2118
|
/** Show a clear button when a selection exists. */
|
|
@@ -2574,7 +2622,7 @@ declare const Timeline: React$1.ForwardRefExoticComponent<TimelineProps & React$
|
|
|
2574
2622
|
};
|
|
2575
2623
|
|
|
2576
2624
|
type OutputFormat = "hex" | "rgba" | "hsl" | "hsla";
|
|
2577
|
-
type ColorPickerSize =
|
|
2625
|
+
type ColorPickerSize = FormControlSize;
|
|
2578
2626
|
type ColorPickerVariant = "default" | "compact" | "full" | "minimal";
|
|
2579
2627
|
/** Public props for the `ColorPicker` component. */
|
|
2580
2628
|
interface ColorPickerProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "onChange"> {
|
|
@@ -2769,6 +2817,7 @@ type FilterType = "text" | "select" | "date";
|
|
|
2769
2817
|
type DataTableSize = "sm" | "md" | "lg";
|
|
2770
2818
|
type DataTableDensity = "compact" | "normal" | "comfortable";
|
|
2771
2819
|
type DataTableHorizontalMode = "auto" | "scroll" | "fit";
|
|
2820
|
+
type DataTablePaginationAlign = "left" | "center" | "right";
|
|
2772
2821
|
type DataTableColumn<T> = {
|
|
2773
2822
|
key: string;
|
|
2774
2823
|
title: React__default.ReactNode;
|
|
@@ -2863,6 +2912,8 @@ interface DataTableProps<T> {
|
|
|
2863
2912
|
onQueryChange?: (q: DataTableQuery) => void;
|
|
2864
2913
|
caption?: React__default.ReactNode;
|
|
2865
2914
|
toolbar?: React__default.ReactNode;
|
|
2915
|
+
/** Show the toolbar row above the table. Default: true */
|
|
2916
|
+
showToolbar?: boolean;
|
|
2866
2917
|
/**
|
|
2867
2918
|
* Define color groups for the column visibility dropdown legend.
|
|
2868
2919
|
* Key = color value used in column's `colorTag` (e.g. "#1e40af").
|
|
@@ -2874,6 +2925,8 @@ interface DataTableProps<T> {
|
|
|
2874
2925
|
enableColumnVisibilityToggle?: boolean;
|
|
2875
2926
|
enableDensityToggle?: boolean;
|
|
2876
2927
|
enableHeaderAlignToggle?: boolean;
|
|
2928
|
+
/** Uppercase all text displayed in table headers. Default: false */
|
|
2929
|
+
uppercaseHeader?: boolean;
|
|
2877
2930
|
striped?: boolean;
|
|
2878
2931
|
/** Hiển thị đường kẻ dọc ngăn cách giữa các cột */
|
|
2879
2932
|
columnDividers?: boolean;
|
|
@@ -2901,13 +2954,15 @@ interface DataTableProps<T> {
|
|
|
2901
2954
|
estimatedRowHeight?: number;
|
|
2902
2955
|
/** Number of extra rows rendered above and below the visible range. Default: 8 */
|
|
2903
2956
|
overscan?: number;
|
|
2957
|
+
/** Alignment of the page navigation controls. Default: "right" */
|
|
2958
|
+
paginationAlign?: DataTablePaginationAlign;
|
|
2904
2959
|
/** Double-click leaf headers to auto-fit column width based on visible content. Default: true */
|
|
2905
2960
|
enableHeaderAutoFit?: boolean;
|
|
2906
2961
|
labels?: DataTableLabels;
|
|
2907
2962
|
borderMode?: BorderMode;
|
|
2908
2963
|
}
|
|
2909
2964
|
|
|
2910
|
-
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, virtualizedRows, estimatedRowHeight, overscan, enableHeaderAutoFit, labels, columnColorGroups, borderMode, }: DataTableProps<T>): react_jsx_runtime.JSX.Element;
|
|
2965
|
+
declare function DataTable<T extends Record<string, any>>({ columns, data, rowKey, loading, total, page, pageSize, pageSizeOptions, onQueryChange, caption, toolbar, showToolbar, size, enableColumnVisibilityToggle, enableDensityToggle, enableHeaderAlignToggle, uppercaseHeader, striped, columnDividers, className, storageKey, stickyHeader, maxHeight, horizontalMode, overflowHidden, useOverlayScrollbar, virtualizedRows, estimatedRowHeight, overscan, paginationAlign, enableHeaderAutoFit, labels, columnColorGroups, borderMode, }: DataTableProps<T>): react_jsx_runtime.JSX.Element;
|
|
2911
2966
|
|
|
2912
2967
|
/** Public props for the `Table` component. */
|
|
2913
2968
|
interface TableProps extends React__default.HTMLAttributes<HTMLTableElement> {
|
|
@@ -2937,7 +2992,7 @@ interface FormWrapperProps<T extends FieldValues = FieldValues> {
|
|
|
2937
2992
|
initialValues?: Partial<T>;
|
|
2938
2993
|
validationSchema?: Record<string, any>;
|
|
2939
2994
|
className?: string;
|
|
2940
|
-
size?:
|
|
2995
|
+
size?: FormControlSize;
|
|
2941
2996
|
}
|
|
2942
2997
|
declare const Form: <T extends FieldValues = FieldValues>({ children, onSubmit, initialValues, validationSchema, className, size, ...props }: FormWrapperProps<T>) => react_jsx_runtime.JSX.Element;
|
|
2943
2998
|
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => react_jsx_runtime.JSX.Element;
|
|
@@ -7145,4 +7200,4 @@ declare function getUnderverseMessages(locale?: UnderverseLocale): {
|
|
|
7145
7200
|
};
|
|
7146
7201
|
};
|
|
7147
7202
|
|
|
7148
|
-
export { AccessDenied, type AccessDeniedProps, Alert, Avatar, Badge, Badge as BadgeBase, BatteryProgress, BottomSheet, type BottomSheetProps, 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, type DrawerProps, DropdownMenu, DropdownMenuItem, DropdownMenuSeparator, EmojiPicker, type EmojiPickerProps, FallingIcons, FileUpload, type FileUploadProps, type FilterType, ForceInternalTranslationsProvider, Form, FormActions, FormCheckbox, FormControl, FormDescription, FormField, FormInput, FormItem, FormLabel, FormMessage, FormSubmitButton, type GlobalI18nConfig, 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, LunarDatePicker, type LunarDatePickerProps, LunarDateRangePicker, type LunarDateRangePickerProps, type LunarDateValue, type LunarPickerValue, lunar as LunarUtils, 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, RadioButtonGroup, RadioGroup, RadioGroupItem, SIZE_STYLES_BTN, ScrollArea, type ScrollAreaProps, SearchInput, type SearchInputProps, Section, SegmentedControl, SegmentedProgress, SelectDropdown, Sheet, type SheetProps, SidebarSheet, type SidebarSheetProps, SimplePagination, type SimplePaginationProps, SimpleRadioGroup, SimpleTabs, Skeleton, SkeletonAvatar, SkeletonButton, SkeletonCard, SkeletonList, SkeletonMessage, SkeletonPost, SkeletonTable, SkeletonText, SlideOver, type SlideOverProps, Slider, type SliderProps, SmartImage, type Song, type Sorter, StatusBadge, StepProgress, type StickerAssetVariant, type StickerImageUrlOptions, StickerPicker, type StickerPickerProps, 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, ToggleGroup, Tooltip, TranslationProvider, type TranslationProviderProps, type Translations, UnderverseConfigProvider, type UnderverseConfigProviderProps, type UnderverseLocale, UnderverseNextIntlProvider, UnderverseProvider, type UnderverseProviderProps, type UnderverseUIConfig, type UploadedFile, type UploadedImage, type UseOverlayScrollbarTargetOptions, VARIANT_STYLES_ALERT, VARIANT_STYLES_BTN, VIETNAM_HOLIDAYS, VerticalTabs, Watermark, type WatermarkProps, cn, cn as cnLocal, getAnimationStyles, getEmojiImageUrl, getEmojiUnifiedCode, getStickerImageUrl, getUnderverseMessages, injectAnimationStyles, loading, setEmojiBaseUrl, setStickerBaseUrl, shadcnAnimationStyles, underverseMessages, useFormField, useGlobalI18n, useOverlayScrollbarTarget, useShadCNAnimations, useSmartLocale, useSmartTranslations, useToast, useTranslations as useUnderverseI18n, useLocale as useUnderverseI18nLocale, useUnderverseLocale, useUnderverseTranslations, useUnderverseUIConfig };
|
|
7203
|
+
export { AccessDenied, type AccessDeniedProps, Alert, Avatar, Badge, Badge as BadgeBase, BatteryProgress, BottomSheet, type BottomSheetProps, 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 DataTablePaginationAlign, type DataTableProps, type DataTableQuery, type DataTableSize, DatePicker, type DatePickerProps, DateRangePicker, type DateRangePickerProps, DateTimePicker, type DateTimePickerProps, date as DateUtils, Drawer, type DrawerProps, DropdownMenu, DropdownMenuItem, DropdownMenuSeparator, EmojiPicker, type EmojiPickerProps, FallingIcons, FileUpload, type FileUploadProps, type FilterType, ForceInternalTranslationsProvider, Form, FormActions, FormCheckbox, FormControl, FormDescription, FormField, FormInput, FormItem, FormLabel, FormMessage, FormSubmitButton, type GlobalI18nConfig, 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, LunarDatePicker, type LunarDatePickerProps, LunarDateRangePicker, type LunarDateRangePickerProps, type LunarDateValue, type LunarPickerValue, lunar as LunarUtils, 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, RadioButtonGroup, RadioGroup, RadioGroupItem, SIZE_STYLES_BTN, ScrollArea, type ScrollAreaProps, SearchInput, type SearchInputProps, Section, SegmentedControl, SegmentedProgress, SelectDropdown, Sheet, type SheetProps, SidebarSheet, type SidebarSheetProps, SimplePagination, type SimplePaginationProps, SimpleRadioGroup, SimpleTabs, Skeleton, SkeletonAvatar, SkeletonButton, SkeletonCard, SkeletonList, SkeletonMessage, SkeletonPost, SkeletonTable, SkeletonText, SlideOver, type SlideOverProps, Slider, type SliderProps, SmartImage, type Song, type Sorter, StatusBadge, StepProgress, type StickerAssetVariant, type StickerImageUrlOptions, StickerPicker, type StickerPickerProps, 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, ToggleGroup, Tooltip, TranslationProvider, type TranslationProviderProps, type Translations, UnderverseConfigProvider, type UnderverseConfigProviderProps, type UnderverseLocale, UnderverseNextIntlProvider, UnderverseProvider, type UnderverseProviderProps, type UnderverseUIConfig, type UploadedFile, type UploadedImage, type UseOverlayScrollbarTargetOptions, VARIANT_STYLES_ALERT, VARIANT_STYLES_BTN, VIETNAM_HOLIDAYS, VerticalTabs, Watermark, type WatermarkProps, cn, cn as cnLocal, getAnimationStyles, getEmojiImageUrl, getEmojiUnifiedCode, getStickerImageUrl, getUnderverseMessages, injectAnimationStyles, loading, setEmojiBaseUrl, setStickerBaseUrl, shadcnAnimationStyles, underverseMessages, useFormField, useGlobalI18n, useOverlayScrollbarTarget, useShadCNAnimations, useSmartLocale, useSmartTranslations, useToast, useTranslations as useUnderverseI18n, useLocale as useUnderverseI18nLocale, useUnderverseLocale, useUnderverseTranslations, useUnderverseUIConfig };
|