@regulaforensics/ui-components 7.6.290-nightly → 7.6.293-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 +150 -18
  2. package/dist/index.js +20076 -20601
  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
 
@@ -272,6 +334,7 @@ declare interface iIRVisibilityStatusProps {
272
334
  }
273
335
 
274
336
  declare interface IJsonViewerProps {
337
+ /** Input data. */
275
338
  data: any;
276
339
  }
277
340
 
@@ -284,15 +347,22 @@ declare interface iLightsLabelProps {
284
347
  }
285
348
 
286
349
  declare interface ILinkArrowProps extends HTMLAttributes<HTMLSpanElement> {
287
- size?: number;
350
+ /** Icon fill color. */
288
351
  fillColor?: string;
352
+ /** Icon size. */
353
+ size?: number;
289
354
  }
290
355
 
291
356
  declare interface ILinkProps extends HTMLAttributes<HTMLDivElement> {
357
+ /** Link address. */
292
358
  href: string;
359
+ /** specifies where to open the linked document. */
293
360
  target?: string;
361
+ /** Link label. */
362
+ children: ReactNode;
294
363
  }
295
364
 
365
+ /** An image wrapper that adds various utilities. */
296
366
  declare const Image_2: ForwardRefExoticComponent<IImageProps & RefAttributes<HTMLDivElement>>;
297
367
  export { Image_2 as Image }
298
368
 
@@ -301,8 +371,10 @@ declare const ImageQualityCheckTypeLabel: FC<iImageQualityCheckTypeLabelProps>;
301
371
  declare type ImageType = 'photo' | 'passport' | 'id-card';
302
372
 
303
373
  declare interface IMagnifierProps extends HTMLAttributes<HTMLSpanElement> {
304
- size?: number;
374
+ /** Icon fill color. */
305
375
  fillColor?: string;
376
+ /** Icon size. */
377
+ size?: number;
306
378
  }
307
379
 
308
380
  declare interface IMatch extends FC {
@@ -355,15 +427,20 @@ declare interface IMatch extends FC {
355
427
  }
356
428
 
357
429
  declare interface IMenuProps extends HTMLAttributes<HTMLSpanElement> {
358
- size?: number;
430
+ /** Icon fill color. */
359
431
  fillColor?: string;
432
+ /** Icon size. */
433
+ size?: number;
360
434
  }
361
435
 
436
+ /** Document images and document processing results. */
362
437
  export declare const Info: () => JSX_2.Element | null;
363
438
 
364
439
  declare interface INotVerifiedProps extends HTMLAttributes<HTMLSpanElement> {
365
- size?: number;
440
+ /** Icon fill color. */
366
441
  fillColor?: string;
442
+ /** Icon size. */
443
+ size?: number;
367
444
  }
368
445
 
369
446
  declare interface iOpticalStatusFieldProps {
@@ -371,12 +448,17 @@ declare interface iOpticalStatusFieldProps {
371
448
  }
372
449
 
373
450
  declare interface IPersonInfoProps {
451
+ /** Portrait display. */
374
452
  showPortrait?: boolean;
453
+ /** Component class name. */
375
454
  className?: string;
376
455
  }
377
456
 
378
457
  export declare interface IPopoverProps extends HTMLAttributes<HTMLDivElement> {
458
+ /** Hint content. */
379
459
  modal: ReactNode;
460
+ /** Text label. */
461
+ children: ReactNode;
380
462
  }
381
463
 
382
464
  declare interface iPortraitComparisonSourceProps {
@@ -384,16 +466,21 @@ declare interface iPortraitComparisonSourceProps {
384
466
  }
385
467
 
386
468
  declare interface IQuestionProps extends HTMLAttributes<HTMLSpanElement> {
387
- size?: number;
469
+ /** Icon fill color. */
388
470
  fillColor?: string;
471
+ /** Icon size. */
472
+ size?: number;
389
473
  }
390
474
 
391
475
  declare interface IRefreshProps extends HTMLAttributes<HTMLSpanElement> {
392
- size?: number;
476
+ /** Icon fill color. */
393
477
  fillColor?: string;
478
+ /** Icon size. */
479
+ size?: number;
394
480
  }
395
481
 
396
482
  declare interface IRequestViewerProps {
483
+ /** Section title. */
397
484
  title?: string;
398
485
  }
399
486
 
@@ -416,7 +503,10 @@ declare interface iRfidDataFileTypeProps {
416
503
  declare const IRVisibilityStatus: FC<iIRVisibilityStatusProps>;
417
504
 
418
505
  declare interface IScrollProps extends HTMLAttributes<HTMLDivElement> {
506
+ /** The maximum height of the content after which the scroll appears. */
419
507
  maxHeight?: number;
508
+ /** Content. */
509
+ children: ReactNode;
420
510
  }
421
511
 
422
512
  declare interface iSecurityFeatureTypeLabelProps {
@@ -440,6 +530,7 @@ declare interface iSourceProps {
440
530
  }
441
531
 
442
532
  declare interface IStatusProps {
533
+ /** Additional fields. */
443
534
  additionalFields?: Array<{
444
535
  name: string;
445
536
  value: string | number;
@@ -447,7 +538,9 @@ declare interface IStatusProps {
447
538
  }
448
539
 
449
540
  export declare interface ITableProps extends HTMLAttributes<HTMLTableElement> {
541
+ /** Rows content. */
450
542
  dataSource: Array<Record<string, ReactNode>>;
543
+ /** Columns. */
451
544
  columns: Array<{
452
545
  title: string;
453
546
  dataIndex: string;
@@ -455,13 +548,17 @@ export declare interface ITableProps extends HTMLAttributes<HTMLTableElement> {
455
548
  }
456
549
 
457
550
  export declare interface ITabsProps extends HTMLAttributes<HTMLDivElement> {
551
+ /** Tabs content. */
458
552
  items: Array<{
459
553
  id: string | number;
460
554
  label: string;
461
555
  children: ReactNode;
462
556
  }>;
557
+ /** The ID of the initial tab. */
463
558
  initialTab?: string | number;
559
+ /** Component style type. */
464
560
  type?: 'line' | 'card';
561
+ /** the callback function that is triggered when switching tabs. */
465
562
  onTabChange?: (tabIndex: number | string) => void;
466
563
  }
467
564
 
@@ -473,17 +570,22 @@ export declare interface ITextProps extends HTMLAttributes<HTMLSpanElement> {
473
570
  }
474
571
 
475
572
  declare interface IUnknownProps extends HTMLAttributes<HTMLSpanElement> {
476
- size?: number;
573
+ /** Icon fill color. */
477
574
  fillColor?: string;
575
+ /** Icon size. */
576
+ size?: number;
478
577
  }
479
578
 
480
579
  declare interface IVerificationsProps {
481
- type?: 'collapse';
580
+ /** Component style type. */
581
+ type?: 'list' | 'collapse';
482
582
  }
483
583
 
484
584
  declare interface IVerifiedProps extends HTMLAttributes<HTMLSpanElement> {
485
- size?: number;
585
+ /** Icon fill color. */
486
586
  fillColor?: string;
587
+ /** Icon size. */
588
+ size?: number;
487
589
  }
488
590
 
489
591
  declare interface iVisualFieldTypeProps {
@@ -491,55 +593,75 @@ declare interface iVisualFieldTypeProps {
491
593
  }
492
594
 
493
595
  declare interface IWarningProps extends HTMLAttributes<HTMLSpanElement> {
494
- size?: number;
596
+ /** Icon fill color. */
495
597
  fillColor?: string;
598
+ /** Icon size. */
599
+ size?: number;
496
600
  }
497
601
 
498
602
  declare interface IZipProps extends HTMLAttributes<HTMLSpanElement> {
499
- size?: number;
603
+ /** Icon fill color. */
500
604
  fillColor?: string;
605
+ /** Icon size. */
606
+ size?: number;
501
607
  }
502
608
 
609
+ /** A component for displaying any objects. */
503
610
  export declare const JsonViewer: FC<IJsonViewerProps>;
504
611
 
505
612
  declare const LCID: FC<iLcidProps>;
506
613
 
507
614
  declare const LightsLabel: FC<iLightsLabelProps>;
508
615
 
616
+ /** The link component. */
509
617
  export declare const Link: FC<ILinkProps>;
510
618
 
619
+ /** LinkArrow icon. */
511
620
  declare const LinkArrow: FC<ILinkArrowProps>;
512
621
 
622
+ /** Logs of document processing. */
513
623
  export declare const Logs: () => JSX_2.Element | null;
514
624
 
625
+ /** Magnifier icon. */
515
626
  declare const Magnifier: FC<IMagnifierProps>;
516
627
 
517
628
  export declare const Match: IMatch;
518
629
 
630
+ /** Menu icon. */
519
631
  declare const Menu: FC<IMenuProps>;
520
632
 
633
+ /** NotVerified icon. */
521
634
  declare const NotVerified: FC<INotVerifiedProps>;
522
635
 
523
636
  declare const OpticalStatusField: FC<iOpticalStatusFieldProps>;
524
637
 
638
+ /** Document processing status. */
525
639
  export declare const Overall: () => JSX_2.Element | null;
526
640
 
641
+ /** Personal data. */
527
642
  export declare const PersonInfo: FC<IPersonInfoProps>;
528
643
 
644
+ /** Text with a hint. */
529
645
  export declare const Popover: FC<IPopoverProps>;
530
646
 
531
647
  declare const PortraitComparisonSource: FC<iPortraitComparisonSourceProps>;
532
648
 
649
+ /** Portraits comparison. */
533
650
  export declare const PortraitsComparison: () => JSX_2.Element | null;
534
651
 
652
+ /** Question icon. */
535
653
  declare const Question: ForwardRefExoticComponent<IQuestionProps & RefAttributes<HTMLSpanElement>>;
536
654
 
655
+ /** Refresh icon. */
537
656
  declare const Refresh: FC<IRefreshProps>;
538
657
 
658
+ /** Processing request object. */
539
659
  export declare const RequestViewer: FC<IRequestViewerProps>;
540
660
 
661
+ /** Processing response object. */
541
662
  export declare const ResponseViewer: () => JSX_2.Element | null;
542
663
 
664
+ /** RFID data. */
543
665
  export declare const Rfid: () => JSX_2.Element | null;
544
666
 
545
667
  declare const RfidApplicationDescription: FC<iRfidApplicationDescriptionProps>;
@@ -550,6 +672,7 @@ declare const RfidCertificateType: FC<iRfidCertificateTypeProps>;
550
672
 
551
673
  declare const RfidDataFileType: FC<iRfidDataFileTypeProps>;
552
674
 
675
+ /** Custom scroll. */
553
676
  export declare const Scroll: FC<IScrollProps>;
554
677
 
555
678
  declare const SecurityFeatureTypeLabel: FC<iSecurityFeatureTypeLabelProps>;
@@ -564,12 +687,16 @@ declare const Source: FC<iSourceProps>;
564
687
 
565
688
  declare const SourceDescription: FC<iSourceDescriptionProps>;
566
689
 
690
+ /** Includes Overall, Verifications, PersonInfo and About components. */
567
691
  export declare const Status: FC<IStatusProps>;
568
692
 
693
+ /** Status skeleton. */
569
694
  export declare const StatusLoader: () => JSX_2.Element;
570
695
 
696
+ /** Tables display sets of data. */
571
697
  export declare const Table: FC<ITableProps>;
572
698
 
699
+ /** The Tab component allows users to switch between multiple content panels. */
573
700
  export declare const Tabs: FC<ITabsProps>;
574
701
 
575
702
  declare const Text_2: FC<ITextProps>;
@@ -577,16 +704,21 @@ export { Text_2 as Text }
577
704
 
578
705
  export declare const Title: FC<IH1Props>;
579
706
 
707
+ /** Unknown icon. */
580
708
  declare const Unknown: FC<IUnknownProps>;
581
709
 
710
+ /** List of verifications. */
582
711
  export declare const Verifications: FC<IVerificationsProps>;
583
712
 
713
+ /** Verified icon. */
584
714
  declare const Verified: FC<IVerifiedProps>;
585
715
 
586
716
  declare const VisualFieldType: FC<iVisualFieldTypeProps>;
587
717
 
718
+ /** Warning icon. */
588
719
  declare const Warning: FC<IWarningProps>;
589
720
 
721
+ /** Zip icon. */
590
722
  declare const Zip: FC<IZipProps>;
591
723
 
592
724
  export { }