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.
- package/lib/cjs/index.js +10 -2
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/types/Camera/Camera.d.ts +16 -0
- package/lib/cjs/types/Camera/FileStorageDb.d.ts +9 -0
- package/lib/cjs/types/Camera/index.d.ts +1 -0
- package/lib/cjs/types/Camera/useTimer.d.ts +6 -0
- package/lib/cjs/types/index.d.ts +1 -0
- package/lib/esm/index.js +10 -2
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/types/Camera/Camera.d.ts +16 -0
- package/lib/esm/types/Camera/FileStorageDb.d.ts +9 -0
- package/lib/esm/types/Camera/index.d.ts +1 -0
- package/lib/esm/types/Camera/useTimer.d.ts +6 -0
- package/lib/esm/types/index.d.ts +1 -0
- package/lib/index.d.ts +17 -1
- package/lib/styles/Camera/index.scss +217 -0
- package/lib/styles/index.scss +2 -1
- package/package.json +4 -1
|
@@ -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 @@
|
|
|
1
|
+
export { default } from './Camera';
|
package/lib/cjs/types/index.d.ts
CHANGED
|
@@ -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';
|