@regulaforensics/ui-components 7.6.291-nightly → 7.6.294-nightly

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.
Files changed (3) hide show
  1. package/dist/index.d.ts +157 -20
  2. package/dist/index.js +17874 -18366
  3. package/package.json +10 -11
package/dist/index.d.ts CHANGED
@@ -7,36 +7,49 @@ import { ReactNode } from 'react';
7
7
  import { RefAttributes } from 'react';
8
8
  import { TDetectResponse } from '@regulaforensics/facesdk-webclient';
9
9
 
10
+ /** Displays the document processing time and additional fields. */
10
11
  export declare const About: FC<IAboutProps>;
11
12
 
13
+ /** Arrow icon */
12
14
  declare const Arrow: FC<IArrowProps>;
13
15
 
14
16
  declare const AuthenticityLabel: FC<iAuthenticityLabelProps>;
15
17
 
16
18
  declare const AuthenticityTextCheckReference: FC<iAuthenticityTextCheckReferenceProps>;
17
19
 
20
+ /** Skeleton. */
18
21
  declare const Block: FC<IBlockProps>;
19
22
 
23
+ /** Brackets icon. */
20
24
  declare const Brackets: FC<IBracketsProps>;
21
25
 
22
26
  declare const CheckDiagnose: FC<iCheckDiagnoseProps>;
23
27
 
24
28
  declare const CheckResultVerification: FC<iCheckResultVerificationProps>;
25
29
 
30
+ /** ClosedEye icon. */
26
31
  declare const ClosedEye: FC<IClosedEyeProps>;
27
32
 
33
+ /** A content area which can be collapsed and expanded. */
28
34
  export declare const Collapse: FC<ICollapseProps>;
29
35
 
30
36
  export declare const Container: IContainer;
31
37
 
38
+ /** Copy icon. */
32
39
  declare const Copy: FC<ICopyProps>;
33
40
 
41
+ /** Cross icon. */
34
42
  declare const Cross: FC<ICrossProps>;
35
43
 
44
+ /** Icon for missing images. */
36
45
  export declare const DefaultImage: FC<IDefaultImageProps>;
37
46
 
47
+ /** Context provider component. Provides all child components with response, request, and selected language.
48
+ * The components used to display the results of document processing must be wrapped with it.
49
+ */
38
50
  export declare const DocReaderContainer: FC<IDocReaderContainerProps>;
39
51
 
52
+ /** Download icon. */
40
53
  declare const Download: FC<IDownloadProps>;
41
54
 
42
55
  export declare enum eInfoTabID {
@@ -46,12 +59,17 @@ export declare enum eInfoTabID {
46
59
  IDENTIFICATION = "IDENTIFICATION"
47
60
  }
48
61
 
62
+ /** Eye icon. */
49
63
  declare const Eye: FC<IEyeProps>;
50
64
 
65
+ /** Context provider component. Provides all child components with face image quality data and selected language.
66
+ * The components used to display the results of face image quality must be wrapped with it.
67
+ */
51
68
  export declare const FaceContainer: FC<IFaceContainerProps>;
52
69
 
53
70
  declare const FaceImageQualityCheckLabel: FC<iFaceImageQualityCheckLabelProps>;
54
71
 
72
+ /** Face image quality data. */
55
73
  export declare const FaceImageQualityData: () => JSX_2.Element | null;
56
74
 
57
75
  declare const FaceImageQualityLabel: FC<iFaceImageQualityLabelProps>;
@@ -104,11 +122,13 @@ declare const getVisualFieldType: (input: any) => string | number;
104
122
 
105
123
  declare const GraphicFieldType: FC<iGraphicFieldTypeProps>;
106
124
 
125
+ /** The images contained in the response. */
107
126
  export declare const Graphics: () => JSX_2.Element | null;
108
127
 
109
128
  declare const GroupDescription: FC<iGroupDescriptionProps>;
110
129
 
111
130
  declare interface IAboutProps {
131
+ /** Additional fields. */
112
132
  additionalFields?: Array<{
113
133
  name: string;
114
134
  value: string | number;
@@ -116,8 +136,10 @@ declare interface IAboutProps {
116
136
  }
117
137
 
118
138
  declare interface IArrowProps extends HTMLAttributes<HTMLSpanElement> {
119
- size?: number;
139
+ /** Icon fill color. */
120
140
  fillColor?: string;
141
+ /** Icon size. */
142
+ size?: number;
121
143
  }
122
144
 
123
145
  declare interface iAuthenticityLabelProps {
@@ -129,14 +151,19 @@ declare interface iAuthenticityTextCheckReferenceProps {
129
151
  }
130
152
 
131
153
  declare interface IBlockProps extends HTMLAttributes<HTMLDivElement> {
154
+ /** Skeleton width. */
132
155
  width?: number | string;
156
+ /** Skeleton height. */
133
157
  height?: number | string;
158
+ /** Skeleton border radius. */
134
159
  borderRadius?: number;
135
160
  }
136
161
 
137
162
  declare interface IBracketsProps extends HTMLAttributes<HTMLSpanElement> {
138
- size?: number;
163
+ /** Icon fill color. */
139
164
  fillColor?: string;
165
+ /** Icon size. */
166
+ size?: number;
140
167
  }
141
168
 
142
169
  declare interface iCheckDiagnoseProps {
@@ -148,16 +175,24 @@ declare interface iCheckResultVerificationProps {
148
175
  }
149
176
 
150
177
  declare interface IClosedEyeProps extends HTMLAttributes<HTMLSpanElement> {
151
- size?: number;
178
+ /** Icon fill color. */
152
179
  fillColor?: string;
180
+ /** Icon size. */
181
+ size?: number;
153
182
  }
154
183
 
155
184
  export declare interface ICollapseProps extends HTMLAttributes<HTMLDivElement> {
185
+ /** Title of the content. */
156
186
  head: ReactNode;
187
+ /** The ability to collapse and expand content. */
157
188
  collapse?: boolean;
189
+ /** The initial state of the hidden content, expanded or collapsed. */
158
190
  open?: boolean;
191
+ /** Collapsed content. */
159
192
  children: ReactNode;
193
+ /** Component style type. */
160
194
  type?: 'nested' | 'rounded';
195
+ /** The callback function that is triggered when the content is collapsed or expanded. */
161
196
  onOpen?: (isOpen: boolean) => void;
162
197
  }
163
198
 
@@ -170,37 +205,51 @@ declare interface IContainer extends FC {
170
205
  }
171
206
 
172
207
  declare interface ICopyProps extends HTMLAttributes<HTMLSpanElement> {
173
- size?: number;
208
+ /** Icon fill color. */
174
209
  fillColor?: string;
210
+ /** Icon size. */
211
+ size?: number;
175
212
  }
176
213
 
177
214
  declare interface ICrossProps extends HTMLAttributes<HTMLSpanElement> {
178
- size?: number;
215
+ /** Icon fill color. */
179
216
  fillColor?: string;
217
+ /** Icon size. */
218
+ size?: number;
180
219
  }
181
220
 
182
221
  declare interface IDefaultImageProps extends HTMLAttributes<HTMLDivElement> {
222
+ /** Icon type. */
183
223
  type?: ImageType;
184
224
  }
185
225
 
186
226
  declare interface IDocReaderContainerProps extends HTMLAttributes<HTMLElement> {
227
+ /** Processing response object. */
187
228
  response: unknown;
229
+ /** Request object. */
188
230
  request?: any;
231
+ /** Selected language. */
189
232
  language?: string;
190
233
  }
191
234
 
192
235
  declare interface IDownloadProps extends HTMLAttributes<HTMLSpanElement> {
193
- size?: number;
236
+ /** Icon fill color. */
194
237
  fillColor?: string;
238
+ /** Icon size. */
239
+ size?: number;
195
240
  }
196
241
 
197
242
  declare interface IEyeProps extends HTMLAttributes<HTMLSpanElement> {
198
- size?: number;
243
+ /** Icon fill color. */
199
244
  fillColor?: string;
245
+ /** Icon size. */
246
+ size?: number;
200
247
  }
201
248
 
202
249
  declare interface IFaceContainerProps extends HTMLAttributes<HTMLElement> {
250
+ /** Image quality data. */
203
251
  quality: TDetectResponse;
252
+ /** Selected language. */
204
253
  language?: string;
205
254
  }
206
255
 
@@ -248,18 +297,31 @@ declare interface IIcon extends FC {
248
297
  }
249
298
 
250
299
  declare interface IImageProps extends HTMLAttributes<HTMLDivElement> {
300
+ /** Path to the image. */
251
301
  src: string;
302
+ /** Specifies an alternate text for an image, if the image cannot be displayed. */
252
303
  alt: string;
304
+ /** Indicates whether the element can be dragged. */
253
305
  draggable?: boolean;
306
+ /** Displaying a button for downloading an image. */
254
307
  download?: boolean;
308
+ /** Magnifier display. */
255
309
  magnifier?: boolean;
310
+ /** Full-screen image display. */
256
311
  viewer?: boolean;
312
+ /** Zoom level of the magnifier. */
257
313
  zoomLevel?: number;
314
+ /** Magnifier width. */
258
315
  magnifierWidth?: number;
316
+ /** Magnifier height. */
259
317
  magnifierHeight?: number;
318
+ /** Path to the magnifier image. Default magnifierImg === src */
260
319
  magnifierImg?: string;
320
+ /** Path to the preview image. Default previewImg === src */
261
321
  previewImg?: string;
322
+ /** Path to the image to download. Default downloadImg === src */
262
323
  downloadImg?: string;
324
+ /** Magnifier image border radius. */
263
325
  magnifierImgBorderRadius?: number;
264
326
  }
265
327
 
@@ -267,11 +329,17 @@ declare interface iImageQualityCheckTypeLabelProps {
267
329
  children: ReactNode;
268
330
  }
269
331
 
332
+ declare interface IInfoProps {
333
+ /** Additional content above the results */
334
+ additionalResultsContent?: ReactNode;
335
+ }
336
+
270
337
  declare interface iIRVisibilityStatusProps {
271
338
  children: ReactNode;
272
339
  }
273
340
 
274
341
  declare interface IJsonViewerProps {
342
+ /** Input data. */
275
343
  data: any;
276
344
  }
277
345
 
@@ -284,15 +352,22 @@ declare interface iLightsLabelProps {
284
352
  }
285
353
 
286
354
  declare interface ILinkArrowProps extends HTMLAttributes<HTMLSpanElement> {
287
- size?: number;
355
+ /** Icon fill color. */
288
356
  fillColor?: string;
357
+ /** Icon size. */
358
+ size?: number;
289
359
  }
290
360
 
291
361
  declare interface ILinkProps extends HTMLAttributes<HTMLDivElement> {
362
+ /** Link address. */
292
363
  href: string;
364
+ /** specifies where to open the linked document. */
293
365
  target?: string;
366
+ /** Link label. */
367
+ children: ReactNode;
294
368
  }
295
369
 
370
+ /** An image wrapper that adds various utilities. */
296
371
  declare const Image_2: ForwardRefExoticComponent<IImageProps & RefAttributes<HTMLDivElement>>;
297
372
  export { Image_2 as Image }
298
373
 
@@ -301,8 +376,10 @@ declare const ImageQualityCheckTypeLabel: FC<iImageQualityCheckTypeLabelProps>;
301
376
  declare type ImageType = 'photo' | 'passport' | 'id-card';
302
377
 
303
378
  declare interface IMagnifierProps extends HTMLAttributes<HTMLSpanElement> {
304
- size?: number;
379
+ /** Icon fill color. */
305
380
  fillColor?: string;
381
+ /** Icon size. */
382
+ size?: number;
306
383
  }
307
384
 
308
385
  declare interface IMatch extends FC {
@@ -355,15 +432,20 @@ declare interface IMatch extends FC {
355
432
  }
356
433
 
357
434
  declare interface IMenuProps extends HTMLAttributes<HTMLSpanElement> {
358
- size?: number;
435
+ /** Icon fill color. */
359
436
  fillColor?: string;
437
+ /** Icon size. */
438
+ size?: number;
360
439
  }
361
440
 
362
- export declare const Info: () => JSX_2.Element | null;
441
+ /** Document images and document processing results. */
442
+ export declare const Info: FC<IInfoProps>;
363
443
 
364
444
  declare interface INotVerifiedProps extends HTMLAttributes<HTMLSpanElement> {
365
- size?: number;
445
+ /** Icon fill color. */
366
446
  fillColor?: string;
447
+ /** Icon size. */
448
+ size?: number;
367
449
  }
368
450
 
369
451
  declare interface iOpticalStatusFieldProps {
@@ -371,12 +453,17 @@ declare interface iOpticalStatusFieldProps {
371
453
  }
372
454
 
373
455
  declare interface IPersonInfoProps {
456
+ /** Portrait display. */
374
457
  showPortrait?: boolean;
458
+ /** Component class name. */
375
459
  className?: string;
376
460
  }
377
461
 
378
462
  export declare interface IPopoverProps extends HTMLAttributes<HTMLDivElement> {
463
+ /** Hint content. */
379
464
  modal: ReactNode;
465
+ /** Text label. */
466
+ children: ReactNode;
380
467
  }
381
468
 
382
469
  declare interface iPortraitComparisonSourceProps {
@@ -384,16 +471,21 @@ declare interface iPortraitComparisonSourceProps {
384
471
  }
385
472
 
386
473
  declare interface IQuestionProps extends HTMLAttributes<HTMLSpanElement> {
387
- size?: number;
474
+ /** Icon fill color. */
388
475
  fillColor?: string;
476
+ /** Icon size. */
477
+ size?: number;
389
478
  }
390
479
 
391
480
  declare interface IRefreshProps extends HTMLAttributes<HTMLSpanElement> {
392
- size?: number;
481
+ /** Icon fill color. */
393
482
  fillColor?: string;
483
+ /** Icon size. */
484
+ size?: number;
394
485
  }
395
486
 
396
487
  declare interface IRequestViewerProps {
488
+ /** Section title. */
397
489
  title?: string;
398
490
  }
399
491
 
@@ -416,7 +508,10 @@ declare interface iRfidDataFileTypeProps {
416
508
  declare const IRVisibilityStatus: FC<iIRVisibilityStatusProps>;
417
509
 
418
510
  declare interface IScrollProps extends HTMLAttributes<HTMLDivElement> {
511
+ /** The maximum height of the content after which the scroll appears. */
419
512
  maxHeight?: number;
513
+ /** Content. */
514
+ children: ReactNode;
420
515
  }
421
516
 
422
517
  declare interface iSecurityFeatureTypeLabelProps {
@@ -440,6 +535,7 @@ declare interface iSourceProps {
440
535
  }
441
536
 
442
537
  declare interface IStatusProps {
538
+ /** Additional fields. */
443
539
  additionalFields?: Array<{
444
540
  name: string;
445
541
  value: string | number;
@@ -447,7 +543,9 @@ declare interface IStatusProps {
447
543
  }
448
544
 
449
545
  export declare interface ITableProps extends HTMLAttributes<HTMLTableElement> {
546
+ /** Rows content. */
450
547
  dataSource: Array<Record<string, ReactNode>>;
548
+ /** Columns. */
451
549
  columns: Array<{
452
550
  title: string;
453
551
  dataIndex: string;
@@ -455,13 +553,17 @@ export declare interface ITableProps extends HTMLAttributes<HTMLTableElement> {
455
553
  }
456
554
 
457
555
  export declare interface ITabsProps extends HTMLAttributes<HTMLDivElement> {
556
+ /** Tabs content. */
458
557
  items: Array<{
459
558
  id: string | number;
460
559
  label: string;
461
560
  children: ReactNode;
462
561
  }>;
562
+ /** The ID of the initial tab. */
463
563
  initialTab?: string | number;
564
+ /** Component style type. */
464
565
  type?: 'line' | 'card';
566
+ /** the callback function that is triggered when switching tabs. */
465
567
  onTabChange?: (tabIndex: number | string) => void;
466
568
  }
467
569
 
@@ -473,17 +575,22 @@ export declare interface ITextProps extends HTMLAttributes<HTMLSpanElement> {
473
575
  }
474
576
 
475
577
  declare interface IUnknownProps extends HTMLAttributes<HTMLSpanElement> {
476
- size?: number;
578
+ /** Icon fill color. */
477
579
  fillColor?: string;
580
+ /** Icon size. */
581
+ size?: number;
478
582
  }
479
583
 
480
- declare interface IVerificationsProps {
481
- type?: 'collapse';
584
+ declare interface IVerificationsProps extends HTMLAttributes<HTMLDivElement> {
585
+ /** Component style type. */
586
+ type?: 'list' | 'collapse';
482
587
  }
483
588
 
484
589
  declare interface IVerifiedProps extends HTMLAttributes<HTMLSpanElement> {
485
- size?: number;
590
+ /** Icon fill color. */
486
591
  fillColor?: string;
592
+ /** Icon size. */
593
+ size?: number;
487
594
  }
488
595
 
489
596
  declare interface iVisualFieldTypeProps {
@@ -491,55 +598,75 @@ declare interface iVisualFieldTypeProps {
491
598
  }
492
599
 
493
600
  declare interface IWarningProps extends HTMLAttributes<HTMLSpanElement> {
494
- size?: number;
601
+ /** Icon fill color. */
495
602
  fillColor?: string;
603
+ /** Icon size. */
604
+ size?: number;
496
605
  }
497
606
 
498
607
  declare interface IZipProps extends HTMLAttributes<HTMLSpanElement> {
499
- size?: number;
608
+ /** Icon fill color. */
500
609
  fillColor?: string;
610
+ /** Icon size. */
611
+ size?: number;
501
612
  }
502
613
 
614
+ /** A component for displaying any objects. */
503
615
  export declare const JsonViewer: FC<IJsonViewerProps>;
504
616
 
505
617
  declare const LCID: FC<iLcidProps>;
506
618
 
507
619
  declare const LightsLabel: FC<iLightsLabelProps>;
508
620
 
621
+ /** The link component. */
509
622
  export declare const Link: FC<ILinkProps>;
510
623
 
624
+ /** LinkArrow icon. */
511
625
  declare const LinkArrow: FC<ILinkArrowProps>;
512
626
 
627
+ /** Logs of document processing. */
513
628
  export declare const Logs: () => JSX_2.Element | null;
514
629
 
630
+ /** Magnifier icon. */
515
631
  declare const Magnifier: FC<IMagnifierProps>;
516
632
 
517
633
  export declare const Match: IMatch;
518
634
 
635
+ /** Menu icon. */
519
636
  declare const Menu: FC<IMenuProps>;
520
637
 
638
+ /** NotVerified icon. */
521
639
  declare const NotVerified: FC<INotVerifiedProps>;
522
640
 
523
641
  declare const OpticalStatusField: FC<iOpticalStatusFieldProps>;
524
642
 
643
+ /** Document processing status. */
525
644
  export declare const Overall: () => JSX_2.Element | null;
526
645
 
646
+ /** Personal data. */
527
647
  export declare const PersonInfo: FC<IPersonInfoProps>;
528
648
 
649
+ /** Text with a hint. */
529
650
  export declare const Popover: FC<IPopoverProps>;
530
651
 
531
652
  declare const PortraitComparisonSource: FC<iPortraitComparisonSourceProps>;
532
653
 
654
+ /** Portraits comparison. */
533
655
  export declare const PortraitsComparison: () => JSX_2.Element | null;
534
656
 
657
+ /** Question icon. */
535
658
  declare const Question: ForwardRefExoticComponent<IQuestionProps & RefAttributes<HTMLSpanElement>>;
536
659
 
660
+ /** Refresh icon. */
537
661
  declare const Refresh: FC<IRefreshProps>;
538
662
 
663
+ /** Processing request object. */
539
664
  export declare const RequestViewer: FC<IRequestViewerProps>;
540
665
 
666
+ /** Processing response object. */
541
667
  export declare const ResponseViewer: () => JSX_2.Element | null;
542
668
 
669
+ /** RFID data. */
543
670
  export declare const Rfid: () => JSX_2.Element | null;
544
671
 
545
672
  declare const RfidApplicationDescription: FC<iRfidApplicationDescriptionProps>;
@@ -550,6 +677,7 @@ declare const RfidCertificateType: FC<iRfidCertificateTypeProps>;
550
677
 
551
678
  declare const RfidDataFileType: FC<iRfidDataFileTypeProps>;
552
679
 
680
+ /** Custom scroll. */
553
681
  export declare const Scroll: FC<IScrollProps>;
554
682
 
555
683
  declare const SecurityFeatureTypeLabel: FC<iSecurityFeatureTypeLabelProps>;
@@ -564,12 +692,16 @@ declare const Source: FC<iSourceProps>;
564
692
 
565
693
  declare const SourceDescription: FC<iSourceDescriptionProps>;
566
694
 
695
+ /** Includes Overall, Verifications, PersonInfo and About components. */
567
696
  export declare const Status: FC<IStatusProps>;
568
697
 
698
+ /** Status skeleton. */
569
699
  export declare const StatusLoader: () => JSX_2.Element;
570
700
 
701
+ /** Tables display sets of data. */
571
702
  export declare const Table: FC<ITableProps>;
572
703
 
704
+ /** The Tab component allows users to switch between multiple content panels. */
573
705
  export declare const Tabs: FC<ITabsProps>;
574
706
 
575
707
  declare const Text_2: FC<ITextProps>;
@@ -577,16 +709,21 @@ export { Text_2 as Text }
577
709
 
578
710
  export declare const Title: FC<IH1Props>;
579
711
 
712
+ /** Unknown icon. */
580
713
  declare const Unknown: FC<IUnknownProps>;
581
714
 
715
+ /** List of verifications. */
582
716
  export declare const Verifications: FC<IVerificationsProps>;
583
717
 
718
+ /** Verified icon. */
584
719
  declare const Verified: FC<IVerifiedProps>;
585
720
 
586
721
  declare const VisualFieldType: FC<iVisualFieldTypeProps>;
587
722
 
723
+ /** Warning icon. */
588
724
  declare const Warning: FC<IWarningProps>;
589
725
 
726
+ /** Zip icon. */
590
727
  declare const Zip: FC<IZipProps>;
591
728
 
592
729
  export { }