cortex-react-ui 0.1.176 → 0.1.178

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.
@@ -0,0 +1,16 @@
1
+ import { WebcamProps } from 'react-webcam';
2
+ declare const Camera: ({ onCapture, isOffline, mode, isShowOffline, ...props }: CameraProps) => JSX.Element;
3
+ export declare type CameraProps = {
4
+ onCapture: ({ fileStoreName, fileRowId, file }: TfileCapturedProps) => void;
5
+ mode?: 'photo' | 'video';
6
+ isOffline?: boolean;
7
+ isShowOffline?: boolean;
8
+ } & Partial<WebcamProps>;
9
+ export declare type TfileCapturedProps = {
10
+ fileStoreName?: string | null;
11
+ fileRowId?: number | null;
12
+ file?: File | null;
13
+ imageSrc?: string | null;
14
+ videoSrc?: string | null;
15
+ };
16
+ export default Camera;
@@ -0,0 +1,9 @@
1
+ declare class FileStorageDB {
2
+ private dbName;
3
+ private storeName;
4
+ private db;
5
+ openDatabase(): Promise<IDBDatabase>;
6
+ storeFile(file: File): Promise<number>;
7
+ retrieveFile(id: number): Promise<File | null>;
8
+ }
9
+ export default FileStorageDB;
@@ -0,0 +1 @@
1
+ export { default } from './Camera';
@@ -0,0 +1,6 @@
1
+ export declare const useTimer: () => {
2
+ formatTime: (totalSeconds: number) => string;
3
+ startTimer: () => void;
4
+ stopTimer: () => void;
5
+ formatedTime: string;
6
+ };
@@ -5,6 +5,7 @@ export { default as BarLoader } from './BarLoader';
5
5
  export { default as Selected } from './Selected';
6
6
  export { default as Button } from './Button';
7
7
  export { default as Scanner } from './Scanner';
8
+ export { default as Camera } from './Camera';
8
9
  export { default as ToggleButton } from './ToggleButton';
9
10
  export { default as Tooltip } from './Tooltip';
10
11
  export { default as TagInput } from './TagInput';