cortex-react-ui 0.1.177 → 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.
@@ -1,9 +1,10 @@
1
1
  import { WebcamProps } from 'react-webcam';
2
- declare const Camera: ({ onCapture, isOffline, mode, ...props }: CameraProps) => JSX.Element;
2
+ declare const Camera: ({ onCapture, isOffline, mode, isShowOffline, ...props }: CameraProps) => JSX.Element;
3
3
  export declare type CameraProps = {
4
4
  onCapture: ({ fileStoreName, fileRowId, file }: TfileCapturedProps) => void;
5
5
  mode?: 'photo' | 'video';
6
6
  isOffline?: boolean;
7
+ isShowOffline?: boolean;
7
8
  } & Partial<WebcamProps>;
8
9
  export declare type TfileCapturedProps = {
9
10
  fileStoreName?: string | null;
package/lib/index.d.ts CHANGED
@@ -99,11 +99,12 @@ declare type ScannerProps = {
99
99
  onScan?: (detectedCodes: IDetectedBarcode[]) => void;
100
100
  } & IScannerProps;
101
101
 
102
- declare const Camera: ({ onCapture, isOffline, mode, ...props }: CameraProps) => JSX.Element;
102
+ declare const Camera: ({ onCapture, isOffline, mode, isShowOffline, ...props }: CameraProps) => JSX.Element;
103
103
  declare type CameraProps = {
104
104
  onCapture: ({ fileStoreName, fileRowId, file }: TfileCapturedProps) => void;
105
105
  mode?: 'photo' | 'video';
106
106
  isOffline?: boolean;
107
+ isShowOffline?: boolean;
107
108
  } & Partial<WebcamProps>;
108
109
  declare type TfileCapturedProps = {
109
110
  fileStoreName?: string | null;
@@ -96,13 +96,11 @@
96
96
 
97
97
  .camera-controls {
98
98
  z-index: 999;
99
- position: absolute;
100
- bottom: 2rem;
101
- left: 0;
102
- right: 0;
103
99
  display: flex;
104
100
  justify-content: center;
105
101
  gap: 1rem;
102
+ margin: 0 auto;
103
+ padding: 1rem;
106
104
  }
107
105
 
108
106
  .video-play-btn {
@@ -136,6 +134,7 @@
136
134
  justify-content: center;
137
135
  align-items: center;
138
136
  gap: 7px;
137
+ min-width: 50px;
139
138
  transition: background-color 0.3s ease;
140
139
 
141
140
  &--capture {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cortex-react-ui",
3
- "version": "0.1.177",
3
+ "version": "0.1.178",
4
4
  "description": "React UI",
5
5
  "author": "Anthony",
6
6
  "license": "MIT",