@humu-tech/ui 0.1.16 → 0.1.17
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.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +617 -632
- package/dist/index.mjs +488 -503
- package/package.json +2 -1
package/dist/index.d.mts
CHANGED
|
@@ -16,7 +16,6 @@ import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
|
16
16
|
import * as SwitchPrimitive from '@radix-ui/react-switch';
|
|
17
17
|
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
18
18
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
19
|
-
import * as ToastPrimitive from '@radix-ui/react-toast';
|
|
20
19
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
21
20
|
|
|
22
21
|
declare function cn(...args: ClassValue[]): string;
|
|
@@ -897,12 +896,15 @@ declare const Tooltip: react.ForwardRefExoticComponent<TooltipProps & Omit<Omit<
|
|
|
897
896
|
Content: react.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
898
897
|
};
|
|
899
898
|
|
|
899
|
+
type SonnerPosition = 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right';
|
|
900
900
|
type ToasterProps = {
|
|
901
901
|
duration?: number;
|
|
902
|
-
|
|
903
|
-
|
|
902
|
+
visibleToasts?: number;
|
|
903
|
+
expand?: boolean;
|
|
904
|
+
position?: SonnerPosition;
|
|
905
|
+
className?: string;
|
|
904
906
|
};
|
|
905
|
-
declare function Toaster({ duration,
|
|
907
|
+
declare function Toaster({ duration, visibleToasts, expand, position, className, }: ToasterProps): react.JSX.Element;
|
|
906
908
|
|
|
907
909
|
type ToastVariant = 'default' | 'success' | 'warning' | 'danger' | 'info';
|
|
908
910
|
type ToastOptions = {
|
|
@@ -914,9 +916,7 @@ type ToastOptions = {
|
|
|
914
916
|
};
|
|
915
917
|
type ToastRecord = ToastOptions & {
|
|
916
918
|
id: string;
|
|
917
|
-
open: boolean;
|
|
918
919
|
};
|
|
919
|
-
declare function dismissToast(id: string): void;
|
|
920
920
|
type ToastFn = {
|
|
921
921
|
(input: string | ToastOptions): string;
|
|
922
922
|
success: (input: string | ToastOptions) => string;
|
|
@@ -925,8 +925,8 @@ type ToastFn = {
|
|
|
925
925
|
info: (input: string | ToastOptions) => string;
|
|
926
926
|
};
|
|
927
927
|
declare const toast: ToastFn;
|
|
928
|
+
declare function dismissToast(id: string): void;
|
|
928
929
|
declare function useToast(): {
|
|
929
|
-
toasts: ToastRecord[];
|
|
930
930
|
toast: ToastFn;
|
|
931
931
|
dismiss: (id: string) => void;
|
|
932
932
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -16,7 +16,6 @@ import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
|
16
16
|
import * as SwitchPrimitive from '@radix-ui/react-switch';
|
|
17
17
|
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
18
18
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
19
|
-
import * as ToastPrimitive from '@radix-ui/react-toast';
|
|
20
19
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
21
20
|
|
|
22
21
|
declare function cn(...args: ClassValue[]): string;
|
|
@@ -897,12 +896,15 @@ declare const Tooltip: react.ForwardRefExoticComponent<TooltipProps & Omit<Omit<
|
|
|
897
896
|
Content: react.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
898
897
|
};
|
|
899
898
|
|
|
899
|
+
type SonnerPosition = 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right';
|
|
900
900
|
type ToasterProps = {
|
|
901
901
|
duration?: number;
|
|
902
|
-
|
|
903
|
-
|
|
902
|
+
visibleToasts?: number;
|
|
903
|
+
expand?: boolean;
|
|
904
|
+
position?: SonnerPosition;
|
|
905
|
+
className?: string;
|
|
904
906
|
};
|
|
905
|
-
declare function Toaster({ duration,
|
|
907
|
+
declare function Toaster({ duration, visibleToasts, expand, position, className, }: ToasterProps): react.JSX.Element;
|
|
906
908
|
|
|
907
909
|
type ToastVariant = 'default' | 'success' | 'warning' | 'danger' | 'info';
|
|
908
910
|
type ToastOptions = {
|
|
@@ -914,9 +916,7 @@ type ToastOptions = {
|
|
|
914
916
|
};
|
|
915
917
|
type ToastRecord = ToastOptions & {
|
|
916
918
|
id: string;
|
|
917
|
-
open: boolean;
|
|
918
919
|
};
|
|
919
|
-
declare function dismissToast(id: string): void;
|
|
920
920
|
type ToastFn = {
|
|
921
921
|
(input: string | ToastOptions): string;
|
|
922
922
|
success: (input: string | ToastOptions) => string;
|
|
@@ -925,8 +925,8 @@ type ToastFn = {
|
|
|
925
925
|
info: (input: string | ToastOptions) => string;
|
|
926
926
|
};
|
|
927
927
|
declare const toast: ToastFn;
|
|
928
|
+
declare function dismissToast(id: string): void;
|
|
928
929
|
declare function useToast(): {
|
|
929
|
-
toasts: ToastRecord[];
|
|
930
930
|
toast: ToastFn;
|
|
931
931
|
dismiss: (id: string) => void;
|
|
932
932
|
};
|