@biznext-ui/react 0.4.8 → 0.5.0

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.
@@ -1,41 +1,44 @@
1
- import { default as default_2 } from 'react';
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
7
  export declare const BiznextUIProvider: ({ children, toastPosition }: {
5
- children: default_2.ReactNode;
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?: default_2.ReactNode;
14
+ children?: ReactNode;
12
15
  sx?: object;
13
16
  [x: string]: any;
14
17
  }): JSX_2.Element;
15
18
  Group: (props: {
16
- children?: default_2.ReactNode;
19
+ children?: ReactNode;
17
20
  sx?: object;
18
21
  [x: string]: any;
19
22
  }) => JSX_2.Element;
20
23
  InputGroup: (props: {
21
- children?: default_2.ReactNode;
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?: default_2.ReactNode;
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: default_2.ForwardRefExoticComponent<Omit<any, "ref"> & default_2.RefAttributes<unknown>>;
37
+ Control: ForwardRefExoticComponent<Omit<any, "ref"> & RefAttributes<unknown>>;
35
38
  ErrorMessage: {
36
39
  (props: {
37
- children?: default_2.ReactNode;
38
- }): default_2.ReactNode;
40
+ children?: ReactNode;
41
+ }): ReactNode;
39
42
  displayName: string;
40
43
  };
41
44
  };
@@ -45,7 +48,7 @@ declare interface IConfirmDialogConfig {
45
48
  title: string;
46
49
  description: string;
47
50
  onConfirm: () => void;
48
- icon?: default_2.ReactElement;
51
+ icon?: ReactElement;
49
52
  buttonContent?: {
50
53
  onConfirmTitle?: string;
51
54
  onCloseTitle?: string;
@@ -61,7 +64,7 @@ declare interface IModalProps {
61
64
  sx?: object;
62
65
  isOpen: boolean;
63
66
  onClose: () => void;
64
- children?: default_2.ReactNode;
67
+ children?: ReactNode;
65
68
  }
66
69
 
67
70
  declare interface IToastContext {
@@ -77,19 +80,19 @@ declare type IToastPositions = 'top-left' | 'top-center' | 'top-right' | 'bottom
77
80
  export declare const Modal: {
78
81
  (props: IModalProps): JSX_2.Element;
79
82
  Content: ({ children }: {
80
- children: default_2.ReactNode;
83
+ children: ReactNode;
81
84
  }) => JSX_2.Element;
82
85
  Header: ({ children }: {
83
- children: default_2.ReactNode;
86
+ children: ReactNode;
84
87
  }) => JSX_2.Element;
85
88
  Title: ({ children }: {
86
- children: default_2.ReactNode;
89
+ children: ReactNode;
87
90
  }) => JSX_2.Element;
88
91
  Body: ({ children }: {
89
- children: default_2.ReactNode;
92
+ children: ReactNode;
90
93
  }) => JSX_2.Element;
91
94
  Footer: (props: {
92
- children?: default_2.ReactNode;
95
+ children?: ReactNode;
93
96
  closeTitle?: string;
94
97
  }) => JSX_2.Element;
95
98
  };