@underverse-ui/underverse 0.1.2 → 0.1.4
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 +2705 -2191
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -12
- package/dist/index.d.ts +13 -12
- package/dist/index.js +2668 -2154
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
2
|
import React__default, { InputHTMLAttributes, TextareaHTMLAttributes, ReactNode, HTMLAttributes } from 'react';
|
|
3
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
4
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
4
5
|
import { VariantProps } from 'class-variance-authority';
|
|
5
6
|
import { ClassValue } from 'clsx';
|
|
@@ -125,7 +126,7 @@ interface CardProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
|
125
126
|
contentClassName?: string;
|
|
126
127
|
noPadding?: boolean;
|
|
127
128
|
}
|
|
128
|
-
declare const Card: ({ title, description, children, footer, className, hoverable, clickable, innerClassName, contentClassName, noPadding, onClick, ...rest }: CardProps) =>
|
|
129
|
+
declare const Card: ({ title, description, children, footer, className, hoverable, clickable, innerClassName, contentClassName, noPadding, onClick, ...rest }: CardProps) => react_jsx_runtime.JSX.Element;
|
|
129
130
|
|
|
130
131
|
interface CheckboxProps extends React$1.InputHTMLAttributes<HTMLInputElement> {
|
|
131
132
|
label?: React$1.ReactNode;
|
|
@@ -184,7 +185,7 @@ interface AvatarProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
|
184
185
|
size?: "sm" | "md" | "lg";
|
|
185
186
|
onClick?: () => void;
|
|
186
187
|
}
|
|
187
|
-
declare const Avatar: ({ src, alt, fallback, size, className, onClick, ...props }: AvatarProps) =>
|
|
188
|
+
declare const Avatar: ({ src, alt, fallback, size, className, onClick, ...props }: AvatarProps) => react_jsx_runtime.JSX.Element;
|
|
188
189
|
|
|
189
190
|
interface SkeletonProps {
|
|
190
191
|
className?: string;
|
|
@@ -328,7 +329,7 @@ interface AlertProps {
|
|
|
328
329
|
onClose?: () => void;
|
|
329
330
|
actions?: ReactNode;
|
|
330
331
|
}
|
|
331
|
-
declare const Alert: ({ title, description, variant, className, icon, dismissible, onClose, actions }: AlertProps) =>
|
|
332
|
+
declare const Alert: ({ title, description, variant, className, icon, dismissible, onClose, actions }: AlertProps) => react_jsx_runtime.JSX.Element | null;
|
|
332
333
|
|
|
333
334
|
interface GlobalLoadingProps {
|
|
334
335
|
className?: string;
|
|
@@ -583,7 +584,7 @@ interface CategoryTreeSelectProps {
|
|
|
583
584
|
placeholder?: string;
|
|
584
585
|
disabled?: boolean;
|
|
585
586
|
}
|
|
586
|
-
declare function CategoryTreeSelect({ categories, value, onChange, placeholder, disabled }: CategoryTreeSelectProps):
|
|
587
|
+
declare function CategoryTreeSelect({ categories, value, onChange, placeholder, disabled }: CategoryTreeSelectProps): react_jsx_runtime.JSX.Element;
|
|
587
588
|
|
|
588
589
|
type Fit = "cover" | "contain";
|
|
589
590
|
interface SmartImageProps {
|
|
@@ -612,7 +613,7 @@ interface SmartImageProps {
|
|
|
612
613
|
/** Optional fallback src if original fails. */
|
|
613
614
|
fallbackSrc?: string;
|
|
614
615
|
}
|
|
615
|
-
declare function SmartImage({ src, alt, className, ratioClass, roundedClass, fill, width, height, sizes, priority, quality, fit, fallbackSrc, }: SmartImageProps):
|
|
616
|
+
declare function SmartImage({ src, alt, className, ratioClass, roundedClass, fill, width, height, sizes, priority, quality, fit, fallbackSrc, }: SmartImageProps): react_jsx_runtime.JSX.Element;
|
|
616
617
|
|
|
617
618
|
interface UploadedImage {
|
|
618
619
|
id: number;
|
|
@@ -640,7 +641,7 @@ interface ImageUploadProps {
|
|
|
640
641
|
supportedFormatsText?: string;
|
|
641
642
|
}
|
|
642
643
|
declare function ImageUpload({ onUpload, onRemove, maxSize, // Convert bytes to MB
|
|
643
|
-
accept, multiple, disabled, className, showPreview, previewSize, dragDropText, browseText, supportedFormatsText }: ImageUploadProps):
|
|
644
|
+
accept, multiple, disabled, className, showPreview, previewSize, dragDropText, browseText, supportedFormatsText }: ImageUploadProps): react_jsx_runtime.JSX.Element;
|
|
644
645
|
|
|
645
646
|
interface ProductImageUploadProps {
|
|
646
647
|
value?: string;
|
|
@@ -655,13 +656,13 @@ interface CarouselProps {
|
|
|
655
656
|
autoScroll?: boolean;
|
|
656
657
|
autoScrollInterval?: number;
|
|
657
658
|
}
|
|
658
|
-
declare function Carousel({ children, autoScroll, autoScrollInterval }: CarouselProps):
|
|
659
|
+
declare function Carousel({ children, autoScroll, autoScrollInterval }: CarouselProps): react_jsx_runtime.JSX.Element;
|
|
659
660
|
|
|
660
661
|
interface ClientOnlyProps {
|
|
661
662
|
children: React.ReactNode;
|
|
662
663
|
fallback?: React.ReactNode;
|
|
663
664
|
}
|
|
664
|
-
declare function ClientOnly({ children, fallback }: ClientOnlyProps):
|
|
665
|
+
declare function ClientOnly({ children, fallback }: ClientOnlyProps): react_jsx_runtime.JSX.Element;
|
|
665
666
|
|
|
666
667
|
interface LoadingSpinnerProps {
|
|
667
668
|
size?: 'sm' | 'md' | 'lg';
|
|
@@ -725,7 +726,7 @@ interface DataTableProps<T> {
|
|
|
725
726
|
className?: string;
|
|
726
727
|
}
|
|
727
728
|
declare function DataTable<T extends Record<string, any>>({ columns, data, rowKey, loading, total, page, pageSize, onQueryChange, caption, toolbar, enableColumnVisibilityToggle, enableDensityToggle, striped, // Mặc định bật màu nền sẽn kẽ cho các dòng
|
|
728
|
-
className, }: DataTableProps<T>):
|
|
729
|
+
className, }: DataTableProps<T>): react_jsx_runtime.JSX.Element;
|
|
729
730
|
|
|
730
731
|
interface TableProps extends React__default.HTMLAttributes<HTMLTableElement> {
|
|
731
732
|
containerClassName?: string;
|
|
@@ -756,12 +757,12 @@ interface NotificationModalProps {
|
|
|
756
757
|
onClose: () => void;
|
|
757
758
|
notification: NotificationItem | null;
|
|
758
759
|
}
|
|
759
|
-
declare function NotificationModal({ isOpen, onClose, notification }: NotificationModalProps):
|
|
760
|
+
declare function NotificationModal({ isOpen, onClose, notification }: NotificationModalProps): react_jsx_runtime.JSX.Element | null;
|
|
760
761
|
|
|
761
762
|
interface FloatingContactsProps {
|
|
762
763
|
className?: string;
|
|
763
764
|
}
|
|
764
|
-
declare function FloatingContacts({ className }: FloatingContactsProps):
|
|
765
|
+
declare function FloatingContacts({ className }: FloatingContactsProps): react_jsx_runtime.JSX.Element | null;
|
|
765
766
|
|
|
766
767
|
type Variant = "destructive" | "warning" | "info";
|
|
767
768
|
interface AccessDeniedProps {
|
|
@@ -774,7 +775,7 @@ interface AccessDeniedProps {
|
|
|
774
775
|
className?: string;
|
|
775
776
|
children?: React__default.ReactNode;
|
|
776
777
|
}
|
|
777
|
-
declare function AccessDenied({ title, description, variant, icon: Icon, className, children, }: AccessDeniedProps):
|
|
778
|
+
declare function AccessDenied({ title, description, variant, icon: Icon, className, children, }: AccessDeniedProps): react_jsx_runtime.JSX.Element;
|
|
778
779
|
|
|
779
780
|
declare function cn(...inputs: ClassValue[]): string;
|
|
780
781
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
2
|
import React__default, { InputHTMLAttributes, TextareaHTMLAttributes, ReactNode, HTMLAttributes } from 'react';
|
|
3
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
4
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
4
5
|
import { VariantProps } from 'class-variance-authority';
|
|
5
6
|
import { ClassValue } from 'clsx';
|
|
@@ -125,7 +126,7 @@ interface CardProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
|
125
126
|
contentClassName?: string;
|
|
126
127
|
noPadding?: boolean;
|
|
127
128
|
}
|
|
128
|
-
declare const Card: ({ title, description, children, footer, className, hoverable, clickable, innerClassName, contentClassName, noPadding, onClick, ...rest }: CardProps) =>
|
|
129
|
+
declare const Card: ({ title, description, children, footer, className, hoverable, clickable, innerClassName, contentClassName, noPadding, onClick, ...rest }: CardProps) => react_jsx_runtime.JSX.Element;
|
|
129
130
|
|
|
130
131
|
interface CheckboxProps extends React$1.InputHTMLAttributes<HTMLInputElement> {
|
|
131
132
|
label?: React$1.ReactNode;
|
|
@@ -184,7 +185,7 @@ interface AvatarProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
|
184
185
|
size?: "sm" | "md" | "lg";
|
|
185
186
|
onClick?: () => void;
|
|
186
187
|
}
|
|
187
|
-
declare const Avatar: ({ src, alt, fallback, size, className, onClick, ...props }: AvatarProps) =>
|
|
188
|
+
declare const Avatar: ({ src, alt, fallback, size, className, onClick, ...props }: AvatarProps) => react_jsx_runtime.JSX.Element;
|
|
188
189
|
|
|
189
190
|
interface SkeletonProps {
|
|
190
191
|
className?: string;
|
|
@@ -328,7 +329,7 @@ interface AlertProps {
|
|
|
328
329
|
onClose?: () => void;
|
|
329
330
|
actions?: ReactNode;
|
|
330
331
|
}
|
|
331
|
-
declare const Alert: ({ title, description, variant, className, icon, dismissible, onClose, actions }: AlertProps) =>
|
|
332
|
+
declare const Alert: ({ title, description, variant, className, icon, dismissible, onClose, actions }: AlertProps) => react_jsx_runtime.JSX.Element | null;
|
|
332
333
|
|
|
333
334
|
interface GlobalLoadingProps {
|
|
334
335
|
className?: string;
|
|
@@ -583,7 +584,7 @@ interface CategoryTreeSelectProps {
|
|
|
583
584
|
placeholder?: string;
|
|
584
585
|
disabled?: boolean;
|
|
585
586
|
}
|
|
586
|
-
declare function CategoryTreeSelect({ categories, value, onChange, placeholder, disabled }: CategoryTreeSelectProps):
|
|
587
|
+
declare function CategoryTreeSelect({ categories, value, onChange, placeholder, disabled }: CategoryTreeSelectProps): react_jsx_runtime.JSX.Element;
|
|
587
588
|
|
|
588
589
|
type Fit = "cover" | "contain";
|
|
589
590
|
interface SmartImageProps {
|
|
@@ -612,7 +613,7 @@ interface SmartImageProps {
|
|
|
612
613
|
/** Optional fallback src if original fails. */
|
|
613
614
|
fallbackSrc?: string;
|
|
614
615
|
}
|
|
615
|
-
declare function SmartImage({ src, alt, className, ratioClass, roundedClass, fill, width, height, sizes, priority, quality, fit, fallbackSrc, }: SmartImageProps):
|
|
616
|
+
declare function SmartImage({ src, alt, className, ratioClass, roundedClass, fill, width, height, sizes, priority, quality, fit, fallbackSrc, }: SmartImageProps): react_jsx_runtime.JSX.Element;
|
|
616
617
|
|
|
617
618
|
interface UploadedImage {
|
|
618
619
|
id: number;
|
|
@@ -640,7 +641,7 @@ interface ImageUploadProps {
|
|
|
640
641
|
supportedFormatsText?: string;
|
|
641
642
|
}
|
|
642
643
|
declare function ImageUpload({ onUpload, onRemove, maxSize, // Convert bytes to MB
|
|
643
|
-
accept, multiple, disabled, className, showPreview, previewSize, dragDropText, browseText, supportedFormatsText }: ImageUploadProps):
|
|
644
|
+
accept, multiple, disabled, className, showPreview, previewSize, dragDropText, browseText, supportedFormatsText }: ImageUploadProps): react_jsx_runtime.JSX.Element;
|
|
644
645
|
|
|
645
646
|
interface ProductImageUploadProps {
|
|
646
647
|
value?: string;
|
|
@@ -655,13 +656,13 @@ interface CarouselProps {
|
|
|
655
656
|
autoScroll?: boolean;
|
|
656
657
|
autoScrollInterval?: number;
|
|
657
658
|
}
|
|
658
|
-
declare function Carousel({ children, autoScroll, autoScrollInterval }: CarouselProps):
|
|
659
|
+
declare function Carousel({ children, autoScroll, autoScrollInterval }: CarouselProps): react_jsx_runtime.JSX.Element;
|
|
659
660
|
|
|
660
661
|
interface ClientOnlyProps {
|
|
661
662
|
children: React.ReactNode;
|
|
662
663
|
fallback?: React.ReactNode;
|
|
663
664
|
}
|
|
664
|
-
declare function ClientOnly({ children, fallback }: ClientOnlyProps):
|
|
665
|
+
declare function ClientOnly({ children, fallback }: ClientOnlyProps): react_jsx_runtime.JSX.Element;
|
|
665
666
|
|
|
666
667
|
interface LoadingSpinnerProps {
|
|
667
668
|
size?: 'sm' | 'md' | 'lg';
|
|
@@ -725,7 +726,7 @@ interface DataTableProps<T> {
|
|
|
725
726
|
className?: string;
|
|
726
727
|
}
|
|
727
728
|
declare function DataTable<T extends Record<string, any>>({ columns, data, rowKey, loading, total, page, pageSize, onQueryChange, caption, toolbar, enableColumnVisibilityToggle, enableDensityToggle, striped, // Mặc định bật màu nền sẽn kẽ cho các dòng
|
|
728
|
-
className, }: DataTableProps<T>):
|
|
729
|
+
className, }: DataTableProps<T>): react_jsx_runtime.JSX.Element;
|
|
729
730
|
|
|
730
731
|
interface TableProps extends React__default.HTMLAttributes<HTMLTableElement> {
|
|
731
732
|
containerClassName?: string;
|
|
@@ -756,12 +757,12 @@ interface NotificationModalProps {
|
|
|
756
757
|
onClose: () => void;
|
|
757
758
|
notification: NotificationItem | null;
|
|
758
759
|
}
|
|
759
|
-
declare function NotificationModal({ isOpen, onClose, notification }: NotificationModalProps):
|
|
760
|
+
declare function NotificationModal({ isOpen, onClose, notification }: NotificationModalProps): react_jsx_runtime.JSX.Element | null;
|
|
760
761
|
|
|
761
762
|
interface FloatingContactsProps {
|
|
762
763
|
className?: string;
|
|
763
764
|
}
|
|
764
|
-
declare function FloatingContacts({ className }: FloatingContactsProps):
|
|
765
|
+
declare function FloatingContacts({ className }: FloatingContactsProps): react_jsx_runtime.JSX.Element | null;
|
|
765
766
|
|
|
766
767
|
type Variant = "destructive" | "warning" | "info";
|
|
767
768
|
interface AccessDeniedProps {
|
|
@@ -774,7 +775,7 @@ interface AccessDeniedProps {
|
|
|
774
775
|
className?: string;
|
|
775
776
|
children?: React__default.ReactNode;
|
|
776
777
|
}
|
|
777
|
-
declare function AccessDenied({ title, description, variant, icon: Icon, className, children, }: AccessDeniedProps):
|
|
778
|
+
declare function AccessDenied({ title, description, variant, icon: Icon, className, children, }: AccessDeniedProps): react_jsx_runtime.JSX.Element;
|
|
778
779
|
|
|
779
780
|
declare function cn(...inputs: ClassValue[]): string;
|
|
780
781
|
|