@underverse-ui/underverse 0.1.31 → 0.1.33
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/dist/index.cjs +1222 -1197
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -6
- package/dist/index.d.ts +12 -6
- package/dist/index.js +1133 -1108
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -138,7 +138,7 @@ interface CheckboxProps extends React$1.InputHTMLAttributes<HTMLInputElement> {
|
|
|
138
138
|
}
|
|
139
139
|
declare const Checkbox: React$1.ForwardRefExoticComponent<CheckboxProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
140
140
|
|
|
141
|
-
interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>,
|
|
141
|
+
interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size"> {
|
|
142
142
|
label?: string;
|
|
143
143
|
error?: string;
|
|
144
144
|
description?: string;
|
|
@@ -159,17 +159,17 @@ interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size'>
|
|
|
159
159
|
maxLength?: number;
|
|
160
160
|
}
|
|
161
161
|
declare const Input: React__default.ForwardRefExoticComponent<InputProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
162
|
-
interface SearchInputProps extends Omit<InputProps,
|
|
162
|
+
interface SearchInputProps extends Omit<InputProps, "leftIcon" | "type"> {
|
|
163
163
|
onSearch?: (value: string) => void;
|
|
164
164
|
searchDelay?: number;
|
|
165
165
|
}
|
|
166
166
|
declare const SearchInput: React__default.ForwardRefExoticComponent<SearchInputProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
167
|
-
interface PasswordInputProps extends Omit<InputProps,
|
|
167
|
+
interface PasswordInputProps extends Omit<InputProps, "type"> {
|
|
168
168
|
showStrength?: boolean;
|
|
169
169
|
strengthLabels?: string[];
|
|
170
170
|
}
|
|
171
171
|
declare const PasswordInput: React__default.ForwardRefExoticComponent<PasswordInputProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
172
|
-
interface NumberInputProps extends Omit<InputProps,
|
|
172
|
+
interface NumberInputProps extends Omit<InputProps, "type" | "value" | "onChange"> {
|
|
173
173
|
min?: number;
|
|
174
174
|
max?: number;
|
|
175
175
|
step?: number;
|
|
@@ -650,6 +650,8 @@ interface SectionProps extends React__default.HTMLAttributes<HTMLElement> {
|
|
|
650
650
|
variant?: "default" | "muted" | "primary" | "accent";
|
|
651
651
|
spacing?: "sm" | "md" | "lg" | "xl";
|
|
652
652
|
fullWidth?: boolean;
|
|
653
|
+
/** Hiển thị viền mỏng xám nhạt giống Card */
|
|
654
|
+
outlined?: boolean;
|
|
653
655
|
}
|
|
654
656
|
declare const Section: React__default.ForwardRefExoticComponent<SectionProps & React__default.RefAttributes<HTMLElement>>;
|
|
655
657
|
|
|
@@ -851,10 +853,12 @@ interface SmartImageProps {
|
|
|
851
853
|
priority?: boolean;
|
|
852
854
|
quality?: number;
|
|
853
855
|
fit?: Fit;
|
|
856
|
+
/** Control object position, e.g. 'center', 'top', 'left', '50% 50%'. */
|
|
857
|
+
objectPosition?: React__default.CSSProperties["objectPosition"];
|
|
854
858
|
/** Optional fallback src if original fails. */
|
|
855
859
|
fallbackSrc?: string;
|
|
856
860
|
}
|
|
857
|
-
declare function SmartImage({ src, alt, className, ratioClass, roundedClass, fill, width, height, sizes, priority, quality, fit, fallbackSrc, }: SmartImageProps): react_jsx_runtime.JSX.Element;
|
|
861
|
+
declare function SmartImage({ src, alt, className, ratioClass, roundedClass, fill, width, height, sizes, priority, quality, fit, objectPosition, fallbackSrc, }: SmartImageProps): react_jsx_runtime.JSX.Element;
|
|
858
862
|
|
|
859
863
|
interface UploadedImage {
|
|
860
864
|
id: number;
|
|
@@ -957,6 +961,8 @@ interface DataTableProps<T> {
|
|
|
957
961
|
enableColumnVisibilityToggle?: boolean;
|
|
958
962
|
enableDensityToggle?: boolean;
|
|
959
963
|
striped?: boolean;
|
|
964
|
+
/** Hiển thị đường kẻ dọc ngăn cách giữa các cột */
|
|
965
|
+
columnDividers?: boolean;
|
|
960
966
|
className?: string;
|
|
961
967
|
labels?: {
|
|
962
968
|
density?: string;
|
|
@@ -967,7 +973,7 @@ interface DataTableProps<T> {
|
|
|
967
973
|
};
|
|
968
974
|
}
|
|
969
975
|
declare function DataTable<T extends Record<string, any>>({ columns, data, rowKey, loading, total, page, pageSize, pageSizeOptions, onQueryChange, caption, toolbar, enableColumnVisibilityToggle, enableDensityToggle, striped, // Mặc định bật màu nền sẽn kẽ cho các dòng
|
|
970
|
-
className, labels, }: DataTableProps<T>): react_jsx_runtime.JSX.Element;
|
|
976
|
+
columnDividers, className, labels, }: DataTableProps<T>): react_jsx_runtime.JSX.Element;
|
|
971
977
|
|
|
972
978
|
interface TableProps extends React__default.HTMLAttributes<HTMLTableElement> {
|
|
973
979
|
containerClassName?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -138,7 +138,7 @@ interface CheckboxProps extends React$1.InputHTMLAttributes<HTMLInputElement> {
|
|
|
138
138
|
}
|
|
139
139
|
declare const Checkbox: React$1.ForwardRefExoticComponent<CheckboxProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
140
140
|
|
|
141
|
-
interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>,
|
|
141
|
+
interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size"> {
|
|
142
142
|
label?: string;
|
|
143
143
|
error?: string;
|
|
144
144
|
description?: string;
|
|
@@ -159,17 +159,17 @@ interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size'>
|
|
|
159
159
|
maxLength?: number;
|
|
160
160
|
}
|
|
161
161
|
declare const Input: React__default.ForwardRefExoticComponent<InputProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
162
|
-
interface SearchInputProps extends Omit<InputProps,
|
|
162
|
+
interface SearchInputProps extends Omit<InputProps, "leftIcon" | "type"> {
|
|
163
163
|
onSearch?: (value: string) => void;
|
|
164
164
|
searchDelay?: number;
|
|
165
165
|
}
|
|
166
166
|
declare const SearchInput: React__default.ForwardRefExoticComponent<SearchInputProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
167
|
-
interface PasswordInputProps extends Omit<InputProps,
|
|
167
|
+
interface PasswordInputProps extends Omit<InputProps, "type"> {
|
|
168
168
|
showStrength?: boolean;
|
|
169
169
|
strengthLabels?: string[];
|
|
170
170
|
}
|
|
171
171
|
declare const PasswordInput: React__default.ForwardRefExoticComponent<PasswordInputProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
172
|
-
interface NumberInputProps extends Omit<InputProps,
|
|
172
|
+
interface NumberInputProps extends Omit<InputProps, "type" | "value" | "onChange"> {
|
|
173
173
|
min?: number;
|
|
174
174
|
max?: number;
|
|
175
175
|
step?: number;
|
|
@@ -650,6 +650,8 @@ interface SectionProps extends React__default.HTMLAttributes<HTMLElement> {
|
|
|
650
650
|
variant?: "default" | "muted" | "primary" | "accent";
|
|
651
651
|
spacing?: "sm" | "md" | "lg" | "xl";
|
|
652
652
|
fullWidth?: boolean;
|
|
653
|
+
/** Hiển thị viền mỏng xám nhạt giống Card */
|
|
654
|
+
outlined?: boolean;
|
|
653
655
|
}
|
|
654
656
|
declare const Section: React__default.ForwardRefExoticComponent<SectionProps & React__default.RefAttributes<HTMLElement>>;
|
|
655
657
|
|
|
@@ -851,10 +853,12 @@ interface SmartImageProps {
|
|
|
851
853
|
priority?: boolean;
|
|
852
854
|
quality?: number;
|
|
853
855
|
fit?: Fit;
|
|
856
|
+
/** Control object position, e.g. 'center', 'top', 'left', '50% 50%'. */
|
|
857
|
+
objectPosition?: React__default.CSSProperties["objectPosition"];
|
|
854
858
|
/** Optional fallback src if original fails. */
|
|
855
859
|
fallbackSrc?: string;
|
|
856
860
|
}
|
|
857
|
-
declare function SmartImage({ src, alt, className, ratioClass, roundedClass, fill, width, height, sizes, priority, quality, fit, fallbackSrc, }: SmartImageProps): react_jsx_runtime.JSX.Element;
|
|
861
|
+
declare function SmartImage({ src, alt, className, ratioClass, roundedClass, fill, width, height, sizes, priority, quality, fit, objectPosition, fallbackSrc, }: SmartImageProps): react_jsx_runtime.JSX.Element;
|
|
858
862
|
|
|
859
863
|
interface UploadedImage {
|
|
860
864
|
id: number;
|
|
@@ -957,6 +961,8 @@ interface DataTableProps<T> {
|
|
|
957
961
|
enableColumnVisibilityToggle?: boolean;
|
|
958
962
|
enableDensityToggle?: boolean;
|
|
959
963
|
striped?: boolean;
|
|
964
|
+
/** Hiển thị đường kẻ dọc ngăn cách giữa các cột */
|
|
965
|
+
columnDividers?: boolean;
|
|
960
966
|
className?: string;
|
|
961
967
|
labels?: {
|
|
962
968
|
density?: string;
|
|
@@ -967,7 +973,7 @@ interface DataTableProps<T> {
|
|
|
967
973
|
};
|
|
968
974
|
}
|
|
969
975
|
declare function DataTable<T extends Record<string, any>>({ columns, data, rowKey, loading, total, page, pageSize, pageSizeOptions, onQueryChange, caption, toolbar, enableColumnVisibilityToggle, enableDensityToggle, striped, // Mặc định bật màu nền sẽn kẽ cho các dòng
|
|
970
|
-
className, labels, }: DataTableProps<T>): react_jsx_runtime.JSX.Element;
|
|
976
|
+
columnDividers, className, labels, }: DataTableProps<T>): react_jsx_runtime.JSX.Element;
|
|
971
977
|
|
|
972
978
|
interface TableProps extends React__default.HTMLAttributes<HTMLTableElement> {
|
|
973
979
|
containerClassName?: string;
|