@regulaforensics/ui-components 0.0.9 → 0.0.11

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.ts CHANGED
@@ -1,9 +1,12 @@
1
1
  import { eCheckResult } from '@regulaforensics/document-reader-typings';
2
2
  import { FC } from 'react';
3
+ import { ForwardRefExoticComponent } from 'react';
3
4
  import { HTMLAttributes } from 'react';
4
5
  import { JSX as JSX_2 } from 'react/jsx-runtime';
6
+ import { JSX as JSX_3 } from 'react';
5
7
  import { ProcessResponse } from '@regulaforensics/document-reader-typings';
6
8
  import { ReactNode } from 'react';
9
+ import { RefAttributes } from 'react';
7
10
 
8
11
  declare const Arrow: FC<IArrowProps>;
9
12
 
@@ -32,10 +35,9 @@ declare interface IArrowProps extends HTMLAttributes<HTMLSpanElement> {
32
35
  fillColor?: string;
33
36
  }
34
37
 
35
- declare interface IBlockProps {
38
+ declare interface IBlockProps extends HTMLAttributes<HTMLDivElement> {
36
39
  width?: number | string;
37
40
  height?: number | string;
38
- isRound?: boolean;
39
41
  borderRadius?: number;
40
42
  }
41
43
 
@@ -50,8 +52,8 @@ declare interface IClosedEyeProps extends HTMLAttributes<HTMLSpanElement> {
50
52
  }
51
53
 
52
54
  export declare interface ICollapseProps extends HTMLAttributes<HTMLDivElement> {
53
- name: string | number;
54
- value?: string | number;
55
+ name: string | number | JSX_3.Element;
56
+ value?: string | number | JSX_3.Element;
55
57
  status?: eCheckResult;
56
58
  children: ReactNode;
57
59
  shift?: number;
@@ -60,7 +62,7 @@ export declare interface ICollapseProps extends HTMLAttributes<HTMLDivElement> {
60
62
 
61
63
  export declare const Icon: IIcon;
62
64
 
63
- declare const Icon_2: FC<HTMLAttributes<HTMLSpanElement>>;
65
+ declare const Icon_2: ForwardRefExoticComponent<HTMLAttributes<HTMLSpanElement> & RefAttributes<HTMLSpanElement>>;
64
66
 
65
67
  declare interface IContainer extends FC {
66
68
  Icon: typeof Icon_2;
@@ -138,7 +140,7 @@ declare interface IMenuProps extends HTMLAttributes<HTMLSpanElement> {
138
140
  fillColor?: string;
139
141
  }
140
142
 
141
- export declare const Info: () => JSX_2.Element;
143
+ export declare const Info: () => JSX_2.Element | null;
142
144
 
143
145
  declare interface INotVerifiedProps extends HTMLAttributes<HTMLSpanElement> {
144
146
  size?: number;
@@ -163,6 +165,13 @@ export declare interface ISkeleton extends FC {
163
165
  Block: typeof Block;
164
166
  }
165
167
 
168
+ declare interface IStatusProps {
169
+ additionalFields?: Array<{
170
+ name: string;
171
+ value: string | number;
172
+ }>;
173
+ }
174
+
166
175
  export declare interface ITableProps extends HTMLAttributes<HTMLTableElement> {
167
176
  dataSource: Array<Record<string, ReactNode>>;
168
177
  columns: Array<{
@@ -177,6 +186,7 @@ export declare interface ITabsProps extends HTMLAttributes<HTMLDivElement> {
177
186
  children: ReactNode;
178
187
  }>;
179
188
  type?: 'line' | 'card';
189
+ onTabChange?: (tabIndex: number) => void;
180
190
  }
181
191
 
182
192
  export declare interface ITextProps extends HTMLAttributes<HTMLSpanElement> {
@@ -217,11 +227,11 @@ declare const NotVerified: FC<INotVerifiedProps>;
217
227
 
218
228
  export declare const Popover: FC<IPopoverProps>;
219
229
 
220
- declare const Question: FC<IQuestionProps>;
230
+ declare const Question: ForwardRefExoticComponent<IQuestionProps & RefAttributes<HTMLSpanElement>>;
221
231
 
222
232
  declare const Refresh: FC<IRefreshProps>;
223
233
 
224
- export declare const RequestViewer: () => JSX_2.Element | null;
234
+ export declare const RequestViewer: () => JSX_2.Element;
225
235
 
226
236
  export declare const ResponseViewer: () => JSX_2.Element | null;
227
237
 
@@ -231,7 +241,9 @@ declare type Size = '20x135' | '18x135' | '16x100' | '14x135' | '12x160' | '12x1
231
241
 
232
242
  export declare const Skeleton: ISkeleton;
233
243
 
234
- export declare const Status: FC;
244
+ export declare const Status: FC<IStatusProps>;
245
+
246
+ export declare const StatusLoader: () => JSX_2.Element;
235
247
 
236
248
  export declare const Table: FC<ITableProps>;
237
249