@regulaforensics/ui-components 0.0.3 → 0.0.5

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/README.md CHANGED
@@ -1,17 +1,3 @@
1
1
  # Regula React UI components
2
2
 
3
3
  This package contains React UI components for Regula products.
4
-
5
- ## Installing
6
- You should complete next steps:
7
-
8
- 1. Use command line and run command `npm install`
9
-
10
- ## Develop mode
11
-
12
- 1. use `npm run storybook`
13
- 2. you can develop all local files with started HMR mode
14
-
15
- ## Build package
16
-
17
- 1. use `npm run build-package`
package/dist/index.d.ts CHANGED
@@ -1,10 +1,249 @@
1
+ import { eCheckResult } from '@regulaforensics/document-reader-typings';
1
2
  import { FC } from 'react';
3
+ import { HTMLAttributes } from 'react';
4
+ import { JSX as JSX_2 } from 'react/jsx-runtime';
2
5
  import { ProcessResponse } from '@regulaforensics/document-reader-typings';
6
+ import { ReactNode } from 'react';
3
7
 
4
- declare interface IProcessingResults {
8
+ declare const Arrow: FC<IArrowProps>;
9
+
10
+ declare const Block: FC<IBlockProps>;
11
+
12
+ declare const Brackets: FC<IBracketsProps>;
13
+
14
+ declare const ClosedEye: FC<IClosedEyeProps>;
15
+
16
+ export declare const Collapse: FC<ICollapseProps>;
17
+
18
+ export declare const Container: IContainer;
19
+
20
+ declare const Copy: FC<ICopyProps>;
21
+
22
+ declare const Download: FC<IDownloadProps>;
23
+
24
+ declare const Eye: FC<IEyeProps>;
25
+
26
+ export declare const Graphics: () => JSX_2.Element | null;
27
+
28
+ declare interface IArrowProps extends HTMLAttributes<HTMLSpanElement> {
29
+ size?: number;
30
+ fillColor?: string;
31
+ }
32
+
33
+ declare interface IBlockProps {
34
+ width?: number | string;
35
+ height?: number | string;
36
+ isRound?: boolean;
37
+ borderRadius?: number;
38
+ }
39
+
40
+ declare interface IBracketsProps extends HTMLAttributes<HTMLSpanElement> {
41
+ size?: number;
42
+ fillColor?: string;
43
+ }
44
+
45
+ declare interface IClosedEyeProps extends HTMLAttributes<HTMLSpanElement> {
46
+ size?: number;
47
+ fillColor?: string;
48
+ }
49
+
50
+ export declare interface ICollapseProps extends HTMLAttributes<HTMLDivElement> {
51
+ name: string;
52
+ value?: string;
53
+ status: eCheckResult;
54
+ children: ReactNode;
55
+ shift?: number;
56
+ nested?: boolean;
57
+ }
58
+
59
+ export declare const Icon: IIcon;
60
+
61
+ declare const Icon_2: FC<HTMLAttributes<HTMLSpanElement>>;
62
+
63
+ declare interface IContainer extends FC {
64
+ Icon: typeof Icon_2;
65
+ }
66
+
67
+ declare interface ICopyProps extends HTMLAttributes<HTMLSpanElement> {
68
+ size?: number;
69
+ fillColor?: string;
70
+ }
71
+
72
+ declare interface IDownloadProps extends HTMLAttributes<HTMLSpanElement> {
73
+ size?: number;
74
+ fillColor?: string;
75
+ }
76
+
77
+ declare interface IEyeProps extends HTMLAttributes<HTMLSpanElement> {
78
+ size?: number;
79
+ fillColor?: string;
80
+ }
81
+
82
+ export declare interface IH1Props extends HTMLAttributes<HTMLTitleElement> {
83
+ textAlign?: 'center' | 'right' | 'left';
84
+ uppercase?: boolean;
85
+ children?: ReactNode;
86
+ level?: 1 | 2;
87
+ }
88
+
89
+ declare interface IIcon extends FC {
90
+ Verified: typeof Verified;
91
+ NotVerified: typeof NotVerified;
92
+ Unknown: typeof Unknown;
93
+ Warning: typeof Warning;
94
+ ClosedEye: typeof ClosedEye;
95
+ Eye: typeof Eye;
96
+ Menu: typeof Menu;
97
+ Arrow: typeof Arrow;
98
+ Question: typeof Question;
99
+ Refresh: typeof Refresh;
100
+ Copy: typeof Copy;
101
+ Brackets: typeof Brackets;
102
+ Zip: typeof Zip;
103
+ Magnifier: typeof Magnifier;
104
+ Download: typeof Download;
105
+ }
106
+
107
+ declare interface IImageProps extends HTMLAttributes<HTMLDivElement> {
108
+ src: string;
109
+ alt: string;
110
+ download?: boolean;
111
+ magnifier?: boolean;
112
+ zoomLevel?: number;
113
+ magnifierWidth?: number;
114
+ magnifierHeight?: number;
115
+ }
116
+
117
+ declare interface IJsonViewerProps {
118
+ data: any;
119
+ }
120
+
121
+ declare const Image_2: FC<IImageProps>;
122
+ export { Image_2 as Image }
123
+
124
+ declare interface IMagnifierProps extends HTMLAttributes<HTMLSpanElement> {
125
+ size?: number;
126
+ fillColor?: string;
127
+ }
128
+
129
+ declare interface IMenuProps extends HTMLAttributes<HTMLSpanElement> {
130
+ size?: number;
131
+ fillColor?: string;
132
+ }
133
+
134
+ export declare const Info: () => JSX_2.Element | null;
135
+
136
+ declare interface INotVerifiedProps extends HTMLAttributes<HTMLSpanElement> {
137
+ size?: number;
138
+ fillColor?: string;
139
+ }
140
+
141
+ export declare interface IPopoverProps extends HTMLAttributes<HTMLDivElement> {
142
+ modal: ReactNode;
143
+ }
144
+
145
+ declare interface IQuestionProps extends HTMLAttributes<HTMLSpanElement> {
146
+ size?: number;
147
+ fillColor?: string;
148
+ }
149
+
150
+ declare interface IRefreshProps extends HTMLAttributes<HTMLSpanElement> {
151
+ size?: number;
152
+ fillColor?: string;
153
+ }
154
+
155
+ declare interface IResponseContainerProps extends HTMLAttributes<HTMLElement> {
5
156
  response: ProcessResponse;
6
157
  }
7
158
 
8
- export declare const ProcessingResults: FC<IProcessingResults>;
159
+ export declare interface ISkeleton extends FC {
160
+ Block: typeof Block;
161
+ }
162
+
163
+ export declare interface ITableProps extends HTMLAttributes<HTMLTableElement> {
164
+ dataSource: Array<Record<string, ReactNode>>;
165
+ columns: Array<{
166
+ title: string;
167
+ dataIndex: string;
168
+ }>;
169
+ }
170
+
171
+ export declare interface ITabsProps extends HTMLAttributes<HTMLDivElement> {
172
+ items: Array<{
173
+ label: string;
174
+ children: ReactNode;
175
+ }>;
176
+ type?: 'line' | 'card';
177
+ }
178
+
179
+ export declare interface ITextProps extends HTMLAttributes<HTMLSpanElement> {
180
+ textAlign?: 'center' | 'right' | 'left';
181
+ uppercase?: boolean;
182
+ children?: ReactNode;
183
+ size?: Size;
184
+ }
185
+
186
+ declare interface IUnknownProps extends HTMLAttributes<HTMLSpanElement> {
187
+ size?: number;
188
+ fillColor?: string;
189
+ }
190
+
191
+ declare interface IVerifiedProps extends HTMLAttributes<HTMLSpanElement> {
192
+ size?: number;
193
+ fillColor?: string;
194
+ }
195
+
196
+ declare interface IWarningProps extends HTMLAttributes<HTMLSpanElement> {
197
+ size?: number;
198
+ fillColor?: string;
199
+ }
200
+
201
+ declare interface IZipProps extends HTMLAttributes<HTMLSpanElement> {
202
+ size?: number;
203
+ fillColor?: string;
204
+ }
205
+
206
+ export declare const JsonViewer: FC<IJsonViewerProps>;
207
+
208
+ declare const Magnifier: FC<IMagnifierProps>;
209
+
210
+ declare const Menu: FC<IMenuProps>;
211
+
212
+ declare const NotVerified: FC<INotVerifiedProps>;
213
+
214
+ export declare const Popover: FC<IPopoverProps>;
215
+
216
+ declare const Question: FC<IQuestionProps>;
217
+
218
+ declare const Refresh: FC<IRefreshProps>;
219
+
220
+ export declare const ResponseContainer: FC<IResponseContainerProps>;
221
+
222
+ export declare const ResponseViewer: () => JSX_2.Element | null;
223
+
224
+ export declare const Rfid: () => JSX_2.Element | null;
225
+
226
+ declare type Size = '20x135' | '18x135' | '16x100' | '14x135' | '12x160' | '12x140' | '15x135' | '10x140';
227
+
228
+ export declare const Skeleton: ISkeleton;
229
+
230
+ export declare const Status: FC;
231
+
232
+ export declare const Table: FC<ITableProps>;
233
+
234
+ export declare const Tabs: FC<ITabsProps>;
235
+
236
+ declare const Text_2: FC<ITextProps>;
237
+ export { Text_2 as Text }
238
+
239
+ export declare const Title: FC<IH1Props>;
240
+
241
+ declare const Unknown: FC<IUnknownProps>;
242
+
243
+ declare const Verified: FC<IVerifiedProps>;
244
+
245
+ declare const Warning: FC<IWarningProps>;
246
+
247
+ declare const Zip: FC<IZipProps>;
9
248
 
10
249
  export { }