@biznext-ui/react 0.1.0 → 0.1.2
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/favicon.ico +0 -0
- package/dist/index.es.d.ts +125 -0
- package/dist/index.es.js +10985 -0
- package/dist/index.umd.js +53 -0
- package/dist/style.css +1 -0
- package/package.json +2 -1
package/dist/favicon.ico
ADDED
|
Binary file
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { ForwardRefExoticComponent } from 'react';
|
|
2
|
+
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
3
|
+
import { ReactElement } from 'react';
|
|
4
|
+
import { ReactNode } from 'react';
|
|
5
|
+
import { RefAttributes } from 'react';
|
|
6
|
+
|
|
7
|
+
export declare const BiznextUIProvider: ({ children, toastPosition }: {
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
toastPosition?: IToastPositions;
|
|
10
|
+
}) => JSX_2.Element;
|
|
11
|
+
|
|
12
|
+
export declare function Form(props: {
|
|
13
|
+
children?: ReactNode;
|
|
14
|
+
sx?: object;
|
|
15
|
+
}): JSX_2.Element;
|
|
16
|
+
|
|
17
|
+
export declare namespace Form {
|
|
18
|
+
var Group: (props: {
|
|
19
|
+
children?: ReactNode;
|
|
20
|
+
sx?: object;
|
|
21
|
+
}) => JSX_2.Element;
|
|
22
|
+
var InputGroup: (props: {
|
|
23
|
+
children?: ReactNode;
|
|
24
|
+
sx?: object;
|
|
25
|
+
}) => JSX_2.Element;
|
|
26
|
+
var Label: {
|
|
27
|
+
(props: {
|
|
28
|
+
required?: boolean;
|
|
29
|
+
children?: ReactNode;
|
|
30
|
+
sx?: object;
|
|
31
|
+
}): JSX_2.Element;
|
|
32
|
+
displayName: string;
|
|
33
|
+
};
|
|
34
|
+
var Control: ForwardRefExoticComponent< {
|
|
35
|
+
type: "input" | "select";
|
|
36
|
+
focus?: boolean;
|
|
37
|
+
sx?: object;
|
|
38
|
+
} & RefAttributes<HTMLInputElement>>;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
declare interface IConfirmDialogConfig {
|
|
42
|
+
type: 'default' | 'info' | 'warning' | 'danger' | 'success';
|
|
43
|
+
title: string;
|
|
44
|
+
description: string;
|
|
45
|
+
onConfirm: () => void;
|
|
46
|
+
icon?: ReactElement;
|
|
47
|
+
buttonContent?: {
|
|
48
|
+
onConfirmTitle?: string;
|
|
49
|
+
onCloseTitle?: string;
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
declare interface IModalProps {
|
|
54
|
+
type: 'left' | 'right' | 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right' | 'center' | 'full';
|
|
55
|
+
index?: number;
|
|
56
|
+
height: string;
|
|
57
|
+
width: string;
|
|
58
|
+
draggable?: boolean;
|
|
59
|
+
sx?: object;
|
|
60
|
+
isOpen: boolean;
|
|
61
|
+
onClose: () => void;
|
|
62
|
+
children?: ReactNode;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
declare interface IToastContext {
|
|
66
|
+
success: (title: string, config?: object) => void;
|
|
67
|
+
warning: (title: string, config?: object) => void;
|
|
68
|
+
info: (title: string, config?: object) => void;
|
|
69
|
+
error: (title: string, config?: object) => void;
|
|
70
|
+
removeToast: (id: string) => void;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
declare type IToastPositions = 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right';
|
|
74
|
+
|
|
75
|
+
export declare const Modal: {
|
|
76
|
+
(props: IModalProps): JSX_2.Element;
|
|
77
|
+
Content: ({ children }: {
|
|
78
|
+
children: ReactNode;
|
|
79
|
+
}) => JSX_2.Element;
|
|
80
|
+
Header: ({ children }: {
|
|
81
|
+
children: ReactNode;
|
|
82
|
+
}) => JSX_2.Element;
|
|
83
|
+
Title: ({ children }: {
|
|
84
|
+
children: ReactNode;
|
|
85
|
+
}) => JSX_2.Element;
|
|
86
|
+
Body: ({ children }: {
|
|
87
|
+
children: ReactNode;
|
|
88
|
+
}) => JSX_2.Element;
|
|
89
|
+
Footer: (props: {
|
|
90
|
+
children?: ReactNode;
|
|
91
|
+
closeTitle?: string;
|
|
92
|
+
}) => JSX_2.Element;
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
export declare const useConfirmDialog: () => (config: IConfirmDialogConfig) => void;
|
|
96
|
+
|
|
97
|
+
export declare const useToast: () => IToastContext;
|
|
98
|
+
|
|
99
|
+
export { }
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
declare namespace Form {
|
|
103
|
+
var Group: (props: {
|
|
104
|
+
children?: ReactNode;
|
|
105
|
+
sx?: object;
|
|
106
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
107
|
+
var InputGroup: (props: {
|
|
108
|
+
children?: ReactNode;
|
|
109
|
+
sx?: object;
|
|
110
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
111
|
+
var Label: {
|
|
112
|
+
(props: {
|
|
113
|
+
required?: boolean;
|
|
114
|
+
children?: ReactNode;
|
|
115
|
+
sx?: object;
|
|
116
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
117
|
+
displayName: string;
|
|
118
|
+
};
|
|
119
|
+
var Control: import("react").ForwardRefExoticComponent<{
|
|
120
|
+
type: "input" | "select";
|
|
121
|
+
focus?: boolean;
|
|
122
|
+
sx?: object;
|
|
123
|
+
} & import("react").RefAttributes<HTMLInputElement>>;
|
|
124
|
+
}
|
|
125
|
+
|