@overmap-ai/forms 2.0.0 → 2.0.1-camera.1

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,4 @@
1
+ export interface CameraProps {
2
+ onCapture?: (file: File) => void;
3
+ }
4
+ export declare const Camera: import('react').MemoExoticComponent<(props: CameraProps) => import("react/jsx-runtime").JSX.Element>;
@@ -0,0 +1,7 @@
1
+ import { Overlay } from '@overmap-ai/blocks';
2
+ import { ComponentProps, ReactElement } from 'react';
3
+ export interface ImageCapturerProps extends ComponentProps<typeof Overlay.Root> {
4
+ children?: ReactElement;
5
+ onConfirm?: (files: File[]) => void;
6
+ }
7
+ export declare const ImageCapturer: import('react').MemoExoticComponent<(props: ImageCapturerProps) => import("react/jsx-runtime").JSX.Element>;
@@ -0,0 +1,2 @@
1
+ import { PropsWithChildren } from 'react';
2
+ export declare const ImageCapturerProvider: import('react').MemoExoticComponent<(props: PropsWithChildren) => import("react/jsx-runtime").JSX.Element>;
@@ -0,0 +1,8 @@
1
+ import { Overlay } from '@overmap-ai/blocks';
2
+ import { ComponentProps } from 'react';
3
+ interface ImagesViewerProps extends ComponentProps<typeof Overlay.Root> {
4
+ files: File[];
5
+ onDelete?: (file: File) => void;
6
+ }
7
+ export declare const ImagesViewer: import('react').MemoExoticComponent<(props: ImagesViewerProps) => import("react/jsx-runtime").JSX.Element>;
8
+ export {};
@@ -0,0 +1,3 @@
1
+ import { ImageCapturerConfig } from './typings';
2
+ export type ImageCapturerContextType = (func: (close: () => void) => ImageCapturerConfig) => void;
3
+ export declare const ImageCapturerContext: import('react').Context<ImageCapturerContextType>;
@@ -0,0 +1 @@
1
+ export declare const useImageCapturer: () => import('./context').ImageCapturerContextType;
@@ -0,0 +1,4 @@
1
+ export * from './hooks';
2
+ export * from './ImageCapturer';
3
+ export * from './ImageCapturerProvider';
4
+ export type * from './typings';
@@ -0,0 +1,4 @@
1
+ import { ImageCapturerProps } from './ImageCapturer';
2
+ export interface ImageCapturerConfig extends Pick<ImageCapturerProps, "onConfirm" | "modal"> {
3
+ onClose?: () => void;
4
+ }