@regulaforensics/ui-components 8.1.462-nightly → 8.1.464-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.
package/dist/index.d.ts CHANGED
@@ -207,8 +207,10 @@ export declare interface ICollapseProps extends HTMLAttributes<HTMLDivElement> {
207
207
  head: ReactNode;
208
208
  /** The ability to collapse and expand content. */
209
209
  collapse?: boolean;
210
- /** The initial state of the hidden content, expanded or collapsed. */
210
+ /** State of the hidden content, expanded or collapsed. */
211
211
  open?: boolean;
212
+ /** The initial state of the hidden content, expanded or collapsed. */
213
+ defaultOpen?: boolean;
212
214
  /** Collapsed content. */
213
215
  children: ReactNode;
214
216
  /** Component style type. */
@@ -262,11 +264,21 @@ declare interface IDocReaderContainerProps extends HTMLAttributes<HTMLElement> {
262
264
  declare interface iDocumentImagesProps {
263
265
  imageViewer?: boolean;
264
266
  className?: string;
267
+ initialPageIndex?: number;
268
+ initialLight?: number;
269
+ onPageChanged?: (page: number) => void;
270
+ onLightChanged?: (light: number) => void;
265
271
  }
266
272
 
267
273
  declare interface iDocumentTabsProps {
268
274
  imageViewer?: boolean;
269
275
  className?: string;
276
+ initialTab?: eInfoTabID;
277
+ onTabChange?: (tab: eInfoTabID) => void;
278
+ initialScrollPosition?: Partial<TTabScrollState>;
279
+ onScrollTop?: (position: TTabScrollState) => void;
280
+ openFields?: Partial<TOpenFieldsState>;
281
+ onOpenFieldsChange?: (fields: TOpenFieldsState) => void;
270
282
  }
271
283
 
272
284
  declare interface iDocumentTypeProps {
@@ -568,6 +580,10 @@ declare interface IScrollProps extends HTMLAttributes<HTMLDivElement> {
568
580
  extendedScrollDelay?: number;
569
581
  /** Auto scroll offset */
570
582
  extendedScrollOffset?: number;
583
+ /** Scroll start position. */
584
+ initialScrollPosition?: number;
585
+ /** Scroll top listener. */
586
+ onScrollTop?: (position: number) => void;
571
587
  /** Content. */
572
588
  children: ReactNode;
573
589
  }
@@ -630,6 +646,8 @@ export declare interface ITableProps extends HTMLAttributes<HTMLTableElement> {
630
646
  export declare interface iTabsProps extends HTMLAttributes<HTMLDivElement> {
631
647
  /** Tabs content. */
632
648
  items: iTabItem[];
649
+ /** The ID of the tab. */
650
+ tab?: string | number;
633
651
  /** The ID of the initial tab. */
634
652
  initialTab?: string | number;
635
653
  /** Component style type. */
@@ -713,6 +731,8 @@ declare const Menu: FC<IMenuProps>;
713
731
  /** NotVerified icon. */
714
732
  declare const NotVerified: FC<INotVerifiedProps>;
715
733
 
734
+ declare type OpenFieldsTabName = 'textData' | 'authenticity' | 'imageQuality' | 'identification';
735
+
716
736
  declare const OpticalStatusField: FC<iOpticalStatusFieldProps>;
717
737
 
718
738
  /** Document processing status. */
@@ -755,6 +775,8 @@ declare const RfidDataFileType: FC<iRfidDataFileTypeProps>;
755
775
  /** Custom scroll. */
756
776
  export declare const Scroll: FC<IScrollProps>;
757
777
 
778
+ declare type ScrollTabName = 'textData' | 'authenticity' | 'imageQuality' | 'identification';
779
+
758
780
  declare const SecurityFeatureTypeLabel: FC<iSecurityFeatureTypeLabelProps>;
759
781
 
760
782
  declare const Sex: FC<iSexProps>;
@@ -784,6 +806,10 @@ export { Text_2 as Text }
784
806
 
785
807
  export declare const Title: FC<IH1Props>;
786
808
 
809
+ declare type TOpenFieldsState = Record<OpenFieldsTabName, Set<string>>;
810
+
811
+ declare type TTabScrollState = Record<ScrollTabName, number>;
812
+
787
813
  /** Unknown icon. */
788
814
  declare const Unknown: FC<IUnknownProps>;
789
815