@biznext-ui/react 0.1.0 → 0.1.1

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.
Binary file
@@ -0,0 +1,94 @@
1
+ import { JSX as JSX_2 } from 'react/jsx-runtime';
2
+ import { ReactElement } from 'react';
3
+ import { ReactNode } from 'react';
4
+
5
+ export declare const BiznextUIProvider: ({ children, toastPosition }: {
6
+ children: ReactNode;
7
+ toastPosition?: IToastPositions;
8
+ }) => JSX_2.Element;
9
+
10
+ declare interface IConfirmDialogConfig {
11
+ type: 'default' | 'info' | 'warning' | 'danger' | 'success';
12
+ title: string;
13
+ description: string;
14
+ onConfirm: () => void;
15
+ icon?: ReactElement;
16
+ buttonContent?: {
17
+ onConfirmTitle?: string;
18
+ onCloseTitle?: string;
19
+ };
20
+ }
21
+
22
+ declare interface IModalProps {
23
+ type: 'left' | 'right' | 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right' | 'center' | 'full';
24
+ index?: number;
25
+ height: string;
26
+ width: string;
27
+ draggable?: boolean;
28
+ sx?: object;
29
+ isOpen: boolean;
30
+ onClose: () => void;
31
+ children?: ReactNode;
32
+ }
33
+
34
+ declare interface IToastContext {
35
+ success: (title: string, config?: object) => void;
36
+ warning: (title: string, config?: object) => void;
37
+ info: (title: string, config?: object) => void;
38
+ error: (title: string, config?: object) => void;
39
+ removeToast: (id: string) => void;
40
+ }
41
+
42
+ declare type IToastPositions = 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right';
43
+
44
+ export declare const Modal: {
45
+ (props: IModalProps): JSX_2.Element;
46
+ Content: ({ children }: {
47
+ children: ReactNode;
48
+ }) => JSX_2.Element;
49
+ Header: ({ children }: {
50
+ children: ReactNode;
51
+ }) => JSX_2.Element;
52
+ Title: ({ children }: {
53
+ children: ReactNode;
54
+ }) => JSX_2.Element;
55
+ Body: ({ children }: {
56
+ children: ReactNode;
57
+ }) => JSX_2.Element;
58
+ Footer: (props: {
59
+ children?: ReactNode;
60
+ closeTitle?: string;
61
+ }) => JSX_2.Element;
62
+ };
63
+
64
+ export declare const useConfirmDialog: () => (config: IConfirmDialogConfig) => void;
65
+
66
+ export declare const useToast: () => IToastContext;
67
+
68
+ export { }
69
+
70
+
71
+ declare namespace Form {
72
+ var Group: (props: {
73
+ children?: ReactNode;
74
+ sx?: object;
75
+ }) => import("react/jsx-runtime").JSX.Element;
76
+ var InputGroup: (props: {
77
+ children?: ReactNode;
78
+ sx?: object;
79
+ }) => import("react/jsx-runtime").JSX.Element;
80
+ var Label: {
81
+ (props: {
82
+ required?: boolean;
83
+ children?: ReactNode;
84
+ sx?: object;
85
+ }): import("react/jsx-runtime").JSX.Element;
86
+ displayName: string;
87
+ };
88
+ var Control: import("react").ForwardRefExoticComponent<{
89
+ type: "input" | "select";
90
+ focus?: boolean;
91
+ sx?: object;
92
+ } & import("react").RefAttributes<HTMLInputElement>>;
93
+ }
94
+