@biznext-ui/react 0.4.6 → 0.4.7
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.es.d.ts +21 -27
- package/dist/index.es.js +5939 -5924
- package/dist/index.umd.js +8 -8
- package/package.json +1 -1
package/dist/index.es.d.ts
CHANGED
|
@@ -1,50 +1,44 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ForwardRefExoticComponent } from 'react';
|
|
2
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';
|
|
3
6
|
|
|
4
|
-
export declare
|
|
5
|
-
children:
|
|
7
|
+
export declare const BiznextUIProvider: ({ children, toastPosition }: {
|
|
8
|
+
children: ReactNode;
|
|
6
9
|
toastPosition?: IToastPositions;
|
|
7
|
-
})
|
|
10
|
+
}) => JSX_2.Element;
|
|
8
11
|
|
|
9
12
|
export declare const Form: {
|
|
10
13
|
(props: {
|
|
11
|
-
children?:
|
|
14
|
+
children?: ReactNode;
|
|
12
15
|
sx?: object;
|
|
13
16
|
[x: string]: any;
|
|
14
17
|
}): JSX_2.Element;
|
|
15
18
|
Group: (props: {
|
|
16
|
-
children?:
|
|
19
|
+
children?: ReactNode;
|
|
17
20
|
sx?: object;
|
|
18
21
|
[x: string]: any;
|
|
19
22
|
}) => JSX_2.Element;
|
|
20
23
|
InputGroup: (props: {
|
|
21
|
-
children?:
|
|
24
|
+
children?: ReactNode;
|
|
22
25
|
sx?: object;
|
|
23
26
|
[x: string]: any;
|
|
24
27
|
}) => JSX_2.Element;
|
|
25
28
|
Label: {
|
|
26
29
|
(props: {
|
|
27
30
|
required?: boolean;
|
|
28
|
-
children?:
|
|
31
|
+
children?: ReactNode;
|
|
29
32
|
sx?: object;
|
|
30
33
|
[x: string]: any;
|
|
31
34
|
}): JSX_2.Element;
|
|
32
35
|
displayName: string;
|
|
33
36
|
};
|
|
34
|
-
Control:
|
|
35
|
-
[x: string]: any;
|
|
36
|
-
controlType: "input" | "select" | "textarea";
|
|
37
|
-
focus?: boolean;
|
|
38
|
-
onFocus?: boolean;
|
|
39
|
-
sx?: object;
|
|
40
|
-
placeholder?: string;
|
|
41
|
-
isSearchable?: boolean;
|
|
42
|
-
isClearable: boolean;
|
|
43
|
-
}, "ref"> & default_2.RefAttributes<unknown>>;
|
|
37
|
+
Control: ForwardRefExoticComponent<Omit<any, "ref"> & RefAttributes<unknown>>;
|
|
44
38
|
ErrorMessage: {
|
|
45
39
|
(props: {
|
|
46
|
-
children?:
|
|
47
|
-
}):
|
|
40
|
+
children?: ReactNode;
|
|
41
|
+
}): ReactNode;
|
|
48
42
|
displayName: string;
|
|
49
43
|
};
|
|
50
44
|
};
|
|
@@ -54,7 +48,7 @@ declare interface IConfirmDialogConfig {
|
|
|
54
48
|
title: string;
|
|
55
49
|
description: string;
|
|
56
50
|
onConfirm: () => void;
|
|
57
|
-
icon?:
|
|
51
|
+
icon?: ReactElement;
|
|
58
52
|
buttonContent?: {
|
|
59
53
|
onConfirmTitle?: string;
|
|
60
54
|
onCloseTitle?: string;
|
|
@@ -70,7 +64,7 @@ declare interface IModalProps {
|
|
|
70
64
|
sx?: object;
|
|
71
65
|
isOpen: boolean;
|
|
72
66
|
onClose: () => void;
|
|
73
|
-
children?:
|
|
67
|
+
children?: ReactNode;
|
|
74
68
|
}
|
|
75
69
|
|
|
76
70
|
declare interface IToastContext {
|
|
@@ -86,19 +80,19 @@ declare type IToastPositions = 'top-left' | 'top-center' | 'top-right' | 'bottom
|
|
|
86
80
|
export declare const Modal: {
|
|
87
81
|
(props: IModalProps): JSX_2.Element;
|
|
88
82
|
Content: ({ children }: {
|
|
89
|
-
children:
|
|
83
|
+
children: ReactNode;
|
|
90
84
|
}) => JSX_2.Element;
|
|
91
85
|
Header: ({ children }: {
|
|
92
|
-
children:
|
|
86
|
+
children: ReactNode;
|
|
93
87
|
}) => JSX_2.Element;
|
|
94
88
|
Title: ({ children }: {
|
|
95
|
-
children:
|
|
89
|
+
children: ReactNode;
|
|
96
90
|
}) => JSX_2.Element;
|
|
97
91
|
Body: ({ children }: {
|
|
98
|
-
children:
|
|
92
|
+
children: ReactNode;
|
|
99
93
|
}) => JSX_2.Element;
|
|
100
94
|
Footer: (props: {
|
|
101
|
-
children?:
|
|
95
|
+
children?: ReactNode;
|
|
102
96
|
closeTitle?: string;
|
|
103
97
|
}) => JSX_2.Element;
|
|
104
98
|
};
|