-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ add check action button to work with Add damage part select
- Loading branch information
1 parent
d79b825
commit 3119a7a
Showing
19 changed files
with
500 additions
and
214 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
73 changes: 73 additions & 0 deletions
73
...b/src/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDButtons/PhotoCaptureHUDButtons.model.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
import { IconName } from '@monkvision/common-ui-web'; | ||
|
||
/** | ||
* Photo capture action button props. | ||
*/ | ||
export interface ActionButtonProps { | ||
/** | ||
* Type of the action button to display. If the value is 'close', the button will display a close icon. | ||
* | ||
* @default 'close' | ||
*/ | ||
action?: ('close' | 'check') & IconName; | ||
/** | ||
* Boolean indicating if the action button is disabled. | ||
* | ||
* @default false | ||
*/ | ||
actionDisabled?: boolean; | ||
/** | ||
* Boolean indicating if the action button should be displayed in the HUD on top of the Camera preview. | ||
* | ||
* @default false | ||
*/ | ||
showActionButton?: boolean; | ||
/** | ||
* Callback called when the user clicks on the action button. If this callback is not provided, the action button will | ||
* not be displayed on the screen. | ||
*/ | ||
onAction?: () => void; | ||
} | ||
|
||
/** | ||
* Props of the PhotoCaptureHUDButtons component. | ||
*/ | ||
export type PhotoCaptureHUDButtonsProps = ActionButtonProps & { | ||
/** | ||
* URI of the picture displayed in the gallery button icon. Usually, this is the last picture taken by the user. If no | ||
* picture is provided, a gallery icon will be displayed instead. | ||
*/ | ||
galleryPreview?: string; | ||
/** | ||
* Callback called when the user clicks on the take picture button. | ||
*/ | ||
onTakePicture?: () => void; | ||
/** | ||
* Callback called when the user clicks on the gallery button. | ||
*/ | ||
onOpenGallery?: () => void; | ||
/** | ||
* Boolean indicating if the gallery button is disabled. | ||
* | ||
* @default false | ||
*/ | ||
galleryDisabled?: boolean; | ||
/** | ||
* Boolean indicating if the take picture button is disabled. | ||
* | ||
* @default false | ||
*/ | ||
takePictureDisabled?: boolean; | ||
/** | ||
* Boolean indicating if the little notification badge on top of the gallery button should be displayed. | ||
* | ||
* @default false | ||
*/ | ||
showGalleryBadge?: boolean; | ||
/** | ||
* Total number of sights to retake | ||
* | ||
* @default 0 | ||
*/ | ||
retakeCount?: number; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
...s/inspection-capture-web/src/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDButtons/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
export { PhotoCaptureHUDButtons, type PhotoCaptureHUDButtonsProps } from './PhotoCaptureHUDButtons'; | ||
export { PhotoCaptureHUDButtons } from './PhotoCaptureHUDButtons'; | ||
export { type PhotoCaptureHUDButtonsProps } from './PhotoCaptureHUDButtons.model'; |
Oops, something went wrong.