@osmandvc/react-upload-control 0.3.1 → 1.0.0
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/README.md +190 -262
- package/dist/index.d.ts +1 -5
- package/dist/index.js +1 -2
- package/dist/providers/UploadedFilesManager.d.ts +2 -2
- package/dist/providers/UploadedFilesProvider.d.ts +0 -1
- package/dist/providers/index.d.ts +2 -2
- package/dist/types.d.ts +10 -11
- package/package.json +35 -41
- package/dist/FileUploadContainer.d.ts +0 -9
- package/dist/FileUploadControl.d.ts +0 -5
- package/dist/actions/FileDeleteAllButton.d.ts +0 -1
- package/dist/actions/FileItemActions.d.ts +0 -7
- package/dist/actions/FileUploadAllButton.d.ts +0 -1
- package/dist/actions/index.d.ts +0 -3
- package/dist/components/camera/custom-react-webcam.d.ts +0 -58
- package/dist/components/camera/frames/WebcamFrameA4.d.ts +0 -20
- package/dist/components/camera/frames/index.d.ts +0 -1
- package/dist/components/camera/index.d.ts +0 -1
- package/dist/components/camera/use-webcam.d.ts +0 -34
- package/dist/components/file-drop/FileDropArea.d.ts +0 -2
- package/dist/components/file-drop/FileDropLarge.d.ts +0 -6
- package/dist/components/file-drop/FileDropSmall.d.ts +0 -6
- package/dist/components/file-list/FileList.d.ts +0 -2
- package/dist/components/file-list/FileListActions.d.ts +0 -1
- package/dist/components/file-list/FileListContainer.d.ts +0 -6
- package/dist/components/file-list/FileListItem.d.ts +0 -3
- package/dist/components/index.d.ts +0 -6
- package/dist/hooks/index.d.ts +0 -2
- package/dist/hooks/use-mobile-detect.d.ts +0 -9
- package/dist/hooks/use-state-machine.d.ts +0 -21
- package/dist/index.js.LICENSE.txt +0 -33
- package/dist/loaders/FileLoaderActions.d.ts +0 -2
- package/dist/loaders/FileLoaderCamera.d.ts +0 -2
- package/dist/loaders/FileLoaderFileSystem.d.ts +0 -2
- package/dist/loaders/index.d.ts +0 -3
- package/dist/ui/button/Button.d.ts +0 -18
- package/dist/ui/button/index.d.ts +0 -1
- package/dist/ui/card/Card.d.ts +0 -8
- package/dist/ui/card/index.d.ts +0 -1
- package/dist/ui/dialog/Dialog.d.ts +0 -19
- package/dist/ui/dialog/index.d.ts +0 -1
- package/dist/ui/icons/index.d.ts +0 -1
- package/dist/ui/image-zoom/index.d.ts +0 -3
- package/dist/ui/progress/Progress.d.ts +0 -4
- package/dist/ui/progress/index.d.ts +0 -1
- package/dist/ui/select/Select.d.ts +0 -13
- package/dist/ui/select/index.d.ts +0 -1
- package/dist/ui/seperator/Seperator.d.ts +0 -4
- package/dist/ui/seperator/index.d.ts +0 -1
- package/dist/ui/tooltip/Tooltip.d.ts +0 -7
- package/dist/ui/tooltip/index.d.ts +0 -1
- package/dist/utils/api-mocker.d.ts +0 -2
- package/dist/utils/cn.d.ts +0 -2
- package/dist/utils/date/index.d.ts +0 -1
- package/dist/utils/error-handling.d.ts +0 -3
- package/dist/utils/file-types.d.ts +0 -36
- package/dist/utils/image-processing/blob-to-base64.d.ts +0 -1
- package/dist/utils/image-processing/canvas-utils.d.ts +0 -7
- package/dist/utils/image-processing/index.d.ts +0 -3
- package/dist/utils/image-processing/load-image.d.ts +0 -3
- package/dist/utils/index.d.ts +0 -6
- package/dist/utils/is-filedrop-error.d.ts +0 -2
@@ -1,5 +1,5 @@
|
|
1
1
|
import React from "react";
|
2
|
-
import { UploadedFile,
|
2
|
+
import { UploadedFile, UploadedFilesManagerProps } from "../types";
|
3
3
|
export interface ContextProps {
|
4
4
|
files: UploadedFile[];
|
5
5
|
smStatus: string;
|
@@ -9,7 +9,6 @@ export interface ContextProps {
|
|
9
9
|
deleteAllFiles: () => Promise<void>;
|
10
10
|
addFiles: (files: File[]) => void;
|
11
11
|
removeFile: (fileId: string) => void;
|
12
|
-
updateFileStage: (name: string, status: UploadedFileItemStage) => void;
|
13
12
|
getFile: (id: string) => UploadedFile | undefined;
|
14
13
|
smStatusIs: (...args: string[]) => boolean;
|
15
14
|
smStatusIsnt: (...args: string[]) => boolean;
|
@@ -20,6 +19,7 @@ export interface ContextProps {
|
|
20
19
|
maxFileSizeMb: number;
|
21
20
|
};
|
22
21
|
disableSorting: boolean;
|
22
|
+
moveFile: (fileId: string, direction: 1 | -1) => void;
|
23
23
|
}
|
24
24
|
declare const UploadedFilesManager: (props: UploadedFilesManagerProps) => import("react/jsx-runtime").JSX.Element;
|
25
25
|
declare function useUploadFilesProvider(): ContextProps;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export
|
2
|
-
export
|
1
|
+
export { UploadedFilesProvider } from "./UploadedFilesProvider";
|
2
|
+
export { useUploadFilesProvider } from "./UploadedFilesManager";
|
package/dist/types.d.ts
CHANGED
@@ -13,12 +13,14 @@ export interface FileUploadConfig {
|
|
13
13
|
resetOnFinish?: boolean;
|
14
14
|
disableSorting?: boolean;
|
15
15
|
}
|
16
|
+
export type UploadProgressError = {
|
17
|
+
text: string;
|
18
|
+
code: string;
|
19
|
+
};
|
20
|
+
export type OnProgressCallback = (fileId: string, progress: number, error?: UploadProgressError) => void;
|
16
21
|
export interface FileUploadHandlers {
|
17
|
-
onUpload: (files: UploadedFile[], onProgressChange:
|
18
|
-
|
19
|
-
code: string;
|
20
|
-
}) => void) => Promise<UploadFileResult[]>;
|
21
|
-
onDelete?: (files: UploadedFile[]) => Promise<UploadFileResult[]>;
|
22
|
+
onUpload: (files: UploadedFile[], onProgressChange: OnProgressCallback) => Promise<UploadFileResult[]> | UploadFileResult[];
|
23
|
+
onDelete?: (files: UploadedFile[]) => Promise<UploadFileResult[]> | UploadFileResult[];
|
22
24
|
onFinish: (files: UploadedFile[]) => void;
|
23
25
|
onAddFileError?: (error: unknown | FileDropError) => void;
|
24
26
|
preProcessFiles?: FilePreProcessor;
|
@@ -137,17 +139,14 @@ export interface ScaledImage extends FormImage {
|
|
137
139
|
export type FileLoaderActionsProps = {
|
138
140
|
disableCamera?: boolean;
|
139
141
|
disableFileSystem?: boolean;
|
142
|
+
disableClipboard?: boolean;
|
140
143
|
isMinimal?: boolean;
|
141
144
|
disabled?: boolean;
|
142
145
|
};
|
143
|
-
export
|
144
|
-
className?: string;
|
145
|
-
onlyIcon?: boolean;
|
146
|
-
};
|
147
|
-
export type FileLoaderCameraProps = {
|
146
|
+
export interface FileLoaderAction {
|
148
147
|
className?: string;
|
149
148
|
onlyIcon?: boolean;
|
150
|
-
}
|
149
|
+
}
|
151
150
|
export interface ScaledImageBinary extends ScaledImage {
|
152
151
|
uri: string;
|
153
152
|
img: HTMLImageElement;
|
package/package.json
CHANGED
@@ -1,27 +1,26 @@
|
|
1
1
|
{
|
2
2
|
"name": "@osmandvc/react-upload-control",
|
3
|
-
"version": "0.
|
3
|
+
"version": "1.0.0",
|
4
4
|
"description": "A completely free and open-source file uploader library designed for modern react applications. This package focuses on delivering a feature-rich experience while prioritizing an exceptional developer experience (DX). Whether you're handling simple uploads or complex multi-file scenarios, this library offers powerful customization, seamless integration, and a smooth workflow for developers. Perfect for those who need an efficient, flexible, and easy-to-use file uploader solution in their projects.",
|
5
|
-
"main": "dist/index.js",
|
6
|
-
"
|
5
|
+
"main": "./dist/index.js",
|
6
|
+
"module": "./dist/index.js",
|
7
|
+
"types": "./dist/index.d.ts",
|
8
|
+
"sideEffects": false,
|
7
9
|
"repository": {
|
8
10
|
"type": "git",
|
9
11
|
"url": "https://github.com/osmandvc/react-upload-control.git"
|
10
12
|
},
|
11
13
|
"files": [
|
12
14
|
"dist",
|
13
|
-
"dist/**/*.d.ts",
|
14
15
|
"README.md",
|
15
16
|
"LICENSE"
|
16
17
|
],
|
17
18
|
"scripts": {
|
18
|
-
"build": "
|
19
|
-
"start": "
|
19
|
+
"build": "rollup -c",
|
20
|
+
"start": "rollup -c -w",
|
20
21
|
"test": "jest",
|
21
22
|
"lint": "eslint src/**/*.ts src/**/*.tsx",
|
22
|
-
"
|
23
|
-
"build-storybook": "storybook build",
|
24
|
-
"prepublishOnly": "npm run build"
|
23
|
+
"prepublishOnly": "pnpm run build"
|
25
24
|
},
|
26
25
|
"publishConfig": {
|
27
26
|
"access": "public"
|
@@ -45,69 +44,64 @@
|
|
45
44
|
],
|
46
45
|
"author": "Osman Deveci",
|
47
46
|
"license": "MIT",
|
47
|
+
"peerDependencies": {
|
48
|
+
"react": "^18.0.0",
|
49
|
+
"react-dom": "^18.0.0",
|
50
|
+
"sonner": "^1.5.0"
|
51
|
+
},
|
52
|
+
"peerDependenciesMeta": {
|
53
|
+
"react": {
|
54
|
+
"optional": false
|
55
|
+
},
|
56
|
+
"react-dom": {
|
57
|
+
"optional": false
|
58
|
+
},
|
59
|
+
"sonner": {
|
60
|
+
"optional": true
|
61
|
+
}
|
62
|
+
},
|
48
63
|
"dependencies": {
|
49
|
-
"@
|
50
|
-
"@dnd-kit/sortable": "^9.0.0",
|
51
|
-
"@emotion/react": "^11.13.3",
|
52
|
-
"@emotion/styled": "^11.13.0",
|
53
|
-
"@radix-ui/react-dialog": "^1.1.2",
|
54
|
-
"@radix-ui/react-progress": "^1.1.0",
|
55
|
-
"@radix-ui/react-select": "^2.1.2",
|
56
|
-
"@radix-ui/react-separator": "^1.1.0",
|
57
|
-
"@radix-ui/react-slot": "^1.1.0",
|
58
|
-
"@radix-ui/react-tooltip": "^1.1.3",
|
59
|
-
"@storybook/addon-styling": "^1.3.7",
|
60
|
-
"@tabler/icons-react": "^3.19.0",
|
61
|
-
"@types/react": "^18.3.11",
|
62
|
-
"@types/react-dom": "^18.3.1",
|
63
|
-
"class-variance-authority": "^0.7.0",
|
64
|
-
"date-fns": "^4.1.0",
|
65
|
-
"filesize": "^10.1.6",
|
66
|
-
"kleur": "^4.1.5",
|
67
|
-
"nanoid": "^5.0.7",
|
68
|
-
"react": "^18.3.1",
|
69
|
-
"react-intl": "^6.4.0",
|
70
|
-
"react-medium-image-zoom": "^5.2.10",
|
71
|
-
"react-spinners": "^0.14.1",
|
72
|
-
"react-wrap-balancer": "^1.1.1",
|
73
|
-
"sonner": "^1.5.0",
|
74
|
-
"tailwind-merge": "^2.5.4",
|
75
|
-
"tailwindcss-animate": "^1.0.7",
|
76
|
-
"typescript": "^5.6.3",
|
77
|
-
"zod": "^3.23.8"
|
64
|
+
"@osmandvc/react-upload-control-shared": "workspace:*"
|
78
65
|
},
|
79
66
|
"devDependencies": {
|
80
67
|
"@babel/core": "^7.25.8",
|
81
68
|
"@babel/preset-env": "^7.25.8",
|
82
69
|
"@babel/preset-react": "^7.25.7",
|
83
70
|
"@babel/preset-typescript": "^7.25.7",
|
84
|
-
"@
|
71
|
+
"@osmandvc/react-upload-control-processors": "file:../processors/osmandvc-react-upload-control-processors-0.0.1.tgz",
|
72
|
+
"@rollup/plugin-json": "^6.1.0",
|
85
73
|
"@storybook/addon-essentials": "^8.3.6",
|
86
74
|
"@storybook/addon-interactions": "^8.3.6",
|
87
75
|
"@storybook/addon-links": "^8.3.6",
|
88
76
|
"@storybook/addon-onboarding": "^8.3.6",
|
77
|
+
"@storybook/addon-styling": "^1.3.7",
|
89
78
|
"@storybook/addon-webpack5-compiler-swc": "^1.0.5",
|
90
79
|
"@storybook/blocks": "^8.3.6",
|
91
80
|
"@storybook/react": "^8.3.6",
|
92
81
|
"@storybook/react-webpack5": "^8.3.6",
|
93
82
|
"@storybook/test": "^8.3.6",
|
83
|
+
"@types/react": "^18.3.11",
|
84
|
+
"@types/react-dom": "^18.3.1",
|
94
85
|
"autoprefixer": "^10.4.20",
|
95
86
|
"babel-loader": "^9.2.1",
|
96
87
|
"chromatic": "^11.20.2",
|
97
88
|
"css-loader": "^7.1.2",
|
89
|
+
"mini-css-extract-plugin": "^2.9.2",
|
98
90
|
"postcss": "^8.4.47",
|
99
91
|
"postcss-loader": "^8.1.1",
|
100
92
|
"process": "^0.11.10",
|
93
|
+
"rollup-plugin-postcss": "^4.0.2",
|
101
94
|
"storybook": "^8.3.6",
|
102
95
|
"style-loader": "^4.0.0",
|
103
96
|
"tailwind-scrollbar": "^3.1.0",
|
104
97
|
"tailwindcss": "^3.4.14",
|
105
98
|
"ts-loader": "^9.5.1",
|
106
99
|
"tsconfig-paths-webpack-plugin": "^4.1.0",
|
100
|
+
"tslib": "^2.8.1",
|
101
|
+
"typescript": "^5.6.3",
|
107
102
|
"webpack": "^5.95.0",
|
108
103
|
"webpack-bundle-analyzer": "^4.10.2",
|
109
104
|
"webpack-cli": "^5.1.4",
|
110
|
-
"webpack-dev-server": "^5.1.0"
|
111
|
-
"@osmandvc/react-upload-control-processors": "file:../processors/osmandvc-react-upload-control-processors-0.0.1.tgz"
|
105
|
+
"webpack-dev-server": "^5.1.0"
|
112
106
|
}
|
113
107
|
}
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import { PropsWithChildren } from "react";
|
2
|
-
/**
|
3
|
-
* The Default Container for the File Upload Control
|
4
|
-
*/
|
5
|
-
interface ContainerProps extends PropsWithChildren {
|
6
|
-
className?: string;
|
7
|
-
}
|
8
|
-
export declare const FileUploadContainer: ({ className, children, }: ContainerProps) => import("react/jsx-runtime").JSX.Element;
|
9
|
-
export {};
|
@@ -1,5 +0,0 @@
|
|
1
|
-
import { FileUploadControlProps } from "./types";
|
2
|
-
/**
|
3
|
-
* The Default File-Upload-Control Component with a Drop-Area and a List which displays the Files.
|
4
|
-
*/
|
5
|
-
export declare const FileUploadControl: ({ className, children, disableCamera, disableFileSystem, size, }: FileUploadControlProps) => import("react/jsx-runtime").JSX.Element;
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare const FileDeleteAllButton: () => import("react/jsx-runtime").JSX.Element;
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare const FileUploadAllButton: () => import("react/jsx-runtime").JSX.Element;
|
package/dist/actions/index.d.ts
DELETED
@@ -1,58 +0,0 @@
|
|
1
|
-
import React from "react";
|
2
|
-
interface ScreenshotDimensions {
|
3
|
-
width: number;
|
4
|
-
height: number;
|
5
|
-
}
|
6
|
-
interface ChildrenProps {
|
7
|
-
getScreenshot: (screenshotDimensions?: ScreenshotDimensions) => string | null;
|
8
|
-
}
|
9
|
-
export type WebcamProps = Omit<React.HTMLProps<HTMLVideoElement>, "ref"> & {
|
10
|
-
audio: boolean;
|
11
|
-
audioConstraints?: MediaStreamConstraints["audio"];
|
12
|
-
forceScreenshotSourceSize: boolean;
|
13
|
-
imageSmoothing: boolean;
|
14
|
-
mirrored: boolean;
|
15
|
-
minScreenshotHeight?: number;
|
16
|
-
minScreenshotWidth?: number;
|
17
|
-
onUserMedia: (stream: MediaStream) => void;
|
18
|
-
onUserMediaError: (error: string | DOMException) => void;
|
19
|
-
screenshotFormat: "image/webp" | "image/png" | "image/jpeg";
|
20
|
-
screenshotQuality: number;
|
21
|
-
videoConstraints?: MediaStreamConstraints["video"];
|
22
|
-
children?: (childrenProps: ChildrenProps) => JSX.Element;
|
23
|
-
};
|
24
|
-
interface WebcamState {
|
25
|
-
hasUserMedia: boolean;
|
26
|
-
src?: string;
|
27
|
-
}
|
28
|
-
export default class Webcam extends React.Component<WebcamProps, WebcamState> {
|
29
|
-
static defaultProps: {
|
30
|
-
audio: boolean;
|
31
|
-
forceScreenshotSourceSize: boolean;
|
32
|
-
imageSmoothing: boolean;
|
33
|
-
mirrored: boolean;
|
34
|
-
onUserMedia: () => undefined;
|
35
|
-
onUserMediaError: () => undefined;
|
36
|
-
screenshotFormat: string;
|
37
|
-
screenshotQuality: number;
|
38
|
-
};
|
39
|
-
private canvas;
|
40
|
-
private ctx;
|
41
|
-
private requestUserMediaId;
|
42
|
-
private unmounted;
|
43
|
-
private requestedUserMedia;
|
44
|
-
stream: MediaStream | null;
|
45
|
-
video: HTMLVideoElement | null;
|
46
|
-
constructor(props: WebcamProps);
|
47
|
-
componentDidMount(): void;
|
48
|
-
componentDidUpdate(nextProps: WebcamProps): void;
|
49
|
-
componentWillUnmount(): void;
|
50
|
-
private static stopMediaStream;
|
51
|
-
private stopAndCleanup;
|
52
|
-
getScreenshot(screenshotDimensions?: ScreenshotDimensions): string | null;
|
53
|
-
getCanvas(screenshotDimensions?: ScreenshotDimensions): HTMLCanvasElement | null;
|
54
|
-
private requestUserMedia;
|
55
|
-
private handleUserMedia;
|
56
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
57
|
-
}
|
58
|
-
export {};
|
@@ -1,20 +0,0 @@
|
|
1
|
-
interface WebcamFrameProps {
|
2
|
-
width: number;
|
3
|
-
height: number;
|
4
|
-
offset?: {
|
5
|
-
top: number;
|
6
|
-
right: number;
|
7
|
-
bottom: number;
|
8
|
-
left: number;
|
9
|
-
};
|
10
|
-
proportion?: number;
|
11
|
-
}
|
12
|
-
export declare function getFrame(props: WebcamFrameProps): {
|
13
|
-
x: number;
|
14
|
-
y: number;
|
15
|
-
width: number;
|
16
|
-
height: number;
|
17
|
-
orientation: string;
|
18
|
-
};
|
19
|
-
export declare function WebcamFrameA4(props: WebcamFrameProps): import("react/jsx-runtime").JSX.Element;
|
20
|
-
export {};
|
@@ -1 +0,0 @@
|
|
1
|
-
export * from "./WebcamFrameA4";
|
@@ -1 +0,0 @@
|
|
1
|
-
export * from "./use-webcam";
|
@@ -1,34 +0,0 @@
|
|
1
|
-
import React from "react";
|
2
|
-
export type WebcamOutputProps = {
|
3
|
-
imageUriBase64: string | undefined;
|
4
|
-
imageData: ImageData | undefined;
|
5
|
-
};
|
6
|
-
type WebcamProps = {
|
7
|
-
outputImageUriBase64: boolean;
|
8
|
-
outputImageData: boolean;
|
9
|
-
targetWidth: number;
|
10
|
-
targetHeight: number;
|
11
|
-
screenshotFormat: "image/jpeg" | "image/webp" | "image/png" | undefined;
|
12
|
-
screenshotQuality: number;
|
13
|
-
imageSmoothing: boolean;
|
14
|
-
mirrored: boolean;
|
15
|
-
videoConstraints: any;
|
16
|
-
onCapture(img: WebcamOutputProps): void;
|
17
|
-
onUserMediaError(error: string | DOMException): void;
|
18
|
-
onToggleDevice(): void;
|
19
|
-
};
|
20
|
-
export declare function useWebcam(props: Partial<WebcamProps>): {
|
21
|
-
WebcamComponent: () => import("react/jsx-runtime").JSX.Element;
|
22
|
-
userMediaStatus: string;
|
23
|
-
userMediaError: string | Error | undefined;
|
24
|
-
userMediaErrorString: string;
|
25
|
-
getDevices: () => Promise<MediaDeviceInfo[] | undefined>;
|
26
|
-
deviceCount: number | undefined;
|
27
|
-
selectedDeviceId: string | null;
|
28
|
-
setSelectedDeviceId: React.Dispatch<React.SetStateAction<string | null>>;
|
29
|
-
doCaptureImage: () => void;
|
30
|
-
doRotateDevice: () => void;
|
31
|
-
doMirrorDevice: () => void;
|
32
|
-
doNextDevice: () => Promise<void>;
|
33
|
-
};
|
34
|
-
export {};
|
@@ -1,6 +0,0 @@
|
|
1
|
-
import React from "react";
|
2
|
-
import { FileLoaderActionsProps } from "../../types";
|
3
|
-
export declare const FileDropLarge: ({ children, disableCamera, disableFileSystem, className, disabled, }: FileLoaderActionsProps & {
|
4
|
-
children?: React.ReactNode;
|
5
|
-
className?: string;
|
6
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
@@ -1,6 +0,0 @@
|
|
1
|
-
import React from "react";
|
2
|
-
import { FileLoaderActionsProps } from "../../types";
|
3
|
-
export declare const FileDropSmall: ({ children, disableCamera, disableFileSystem, className, }: FileLoaderActionsProps & {
|
4
|
-
children?: React.ReactNode;
|
5
|
-
className?: string;
|
6
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare const FileListActions: () => import("react/jsx-runtime").JSX.Element;
|
@@ -1,3 +0,0 @@
|
|
1
|
-
import React from "react";
|
2
|
-
import { FileListItemProps } from "../../types";
|
3
|
-
export declare const FileListItem: React.MemoExoticComponent<({ size, name, previewImgSrc, id, uploadStatus, order, count, disabled, disableSorting, }: FileListItemProps) => import("react/jsx-runtime").JSX.Element>;
|
package/dist/hooks/index.d.ts
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
export declare enum STATUS {
|
2
|
-
IDLE = "IDLE",
|
3
|
-
LOADING = "LOADING",
|
4
|
-
PROCESSING = "PROCESSING",
|
5
|
-
ERROR = "ERROR",
|
6
|
-
READY = "READY",
|
7
|
-
PENDING = "PENDING"
|
8
|
-
}
|
9
|
-
export declare function useStateMachine(initialStatus?: string, initialValue?: any): {
|
10
|
-
smStatus: string;
|
11
|
-
smStatusIs: (...args: string[]) => boolean;
|
12
|
-
smStatusIsnt: (...args: string[]) => boolean;
|
13
|
-
smIsError: boolean;
|
14
|
-
smError: string | Error | undefined;
|
15
|
-
smErrorString: string;
|
16
|
-
smValue: any;
|
17
|
-
smGetStatus: () => string;
|
18
|
-
smSetStatus: (newStatus: string, error?: string | Error | undefined, value?: any) => void;
|
19
|
-
smResetStatus: (newStatus: string) => void;
|
20
|
-
status: typeof STATUS;
|
21
|
-
};
|
@@ -1,33 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license @tabler/icons-react v3.26.0 - MIT
|
3
|
-
*
|
4
|
-
* This source code is licensed under the MIT license.
|
5
|
-
* See the LICENSE file in the root directory of this source tree.
|
6
|
-
*/
|
7
|
-
|
8
|
-
/**
|
9
|
-
* @license React
|
10
|
-
* react-jsx-runtime.production.min.js
|
11
|
-
*
|
12
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
13
|
-
*
|
14
|
-
* This source code is licensed under the MIT license found in the
|
15
|
-
* LICENSE file in the root directory of this source tree.
|
16
|
-
*/
|
17
|
-
|
18
|
-
/**
|
19
|
-
* filesize
|
20
|
-
*
|
21
|
-
* @copyright 2024 Jason Mulligan <jason.mulligan@avoidwork.com>
|
22
|
-
* @license BSD-3-Clause
|
23
|
-
* @version 10.1.6
|
24
|
-
*/
|
25
|
-
|
26
|
-
/** @license React v16.13.1
|
27
|
-
* react-is.production.min.js
|
28
|
-
*
|
29
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
30
|
-
*
|
31
|
-
* This source code is licensed under the MIT license found in the
|
32
|
-
* LICENSE file in the root directory of this source tree.
|
33
|
-
*/
|
package/dist/loaders/index.d.ts
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
import * as React from "react";
|
2
|
-
import { type VariantProps } from "class-variance-authority";
|
3
|
-
declare const buttonVariants: (props?: ({
|
4
|
-
variant?: "default" | "link" | "success" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
5
|
-
size?: "sm" | "lg" | "default" | "icon" | null | undefined;
|
6
|
-
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
7
|
-
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
8
|
-
asChild?: boolean;
|
9
|
-
startContent?: React.ReactNode;
|
10
|
-
endContent?: React.ReactNode;
|
11
|
-
isIconOnly?: boolean;
|
12
|
-
icon?: string;
|
13
|
-
iconSize?: number;
|
14
|
-
isLoading?: boolean;
|
15
|
-
loadingText?: string;
|
16
|
-
}
|
17
|
-
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
18
|
-
export { Button, buttonVariants };
|
@@ -1 +0,0 @@
|
|
1
|
-
export * from "./Button";
|
package/dist/ui/card/Card.d.ts
DELETED
@@ -1,8 +0,0 @@
|
|
1
|
-
import * as React from "react";
|
2
|
-
declare const Card: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
3
|
-
declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
4
|
-
declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLParagraphElement>>;
|
5
|
-
declare const CardDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
6
|
-
declare const CardContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
7
|
-
declare const CardFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
8
|
-
export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent, };
|
package/dist/ui/card/index.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export * from "./Card";
|
@@ -1,19 +0,0 @@
|
|
1
|
-
import * as React from "react";
|
2
|
-
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
3
|
-
declare const Dialog: React.FC<DialogPrimitive.DialogProps>;
|
4
|
-
declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
5
|
-
declare const DialogPortal: React.FC<DialogPrimitive.DialogPortalProps>;
|
6
|
-
declare const DialogClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
7
|
-
declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
8
|
-
declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
9
|
-
declare const DialogHeader: {
|
10
|
-
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
11
|
-
displayName: string;
|
12
|
-
};
|
13
|
-
declare const DialogFooter: {
|
14
|
-
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
15
|
-
displayName: string;
|
16
|
-
};
|
17
|
-
declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
18
|
-
declare const DialogDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
19
|
-
export { Dialog, DialogPortal, DialogOverlay, DialogTrigger, DialogClose, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription, };
|
@@ -1 +0,0 @@
|
|
1
|
-
export * from "./Dialog";
|
package/dist/ui/icons/index.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export { IconUpload as UploadIcon, IconCamera as CameraIcon, IconCheck as CheckIcon, IconRefresh as ResetIcon, IconX as CancelIcon, IconTrash as DeleteIcon, IconArrowsMove as MoveIcon, IconFolder as FolderIcon, IconFlipVertical as MirrorIcon, IconViewportWide as RotateIcon, IconFile as ImagePlaceholderIcon, IconDotsVertical as MoreIcon, } from "@tabler/icons-react";
|
@@ -1,4 +0,0 @@
|
|
1
|
-
import * as React from "react";
|
2
|
-
import * as ProgressPrimitive from "@radix-ui/react-progress";
|
3
|
-
declare const Progress: React.ForwardRefExoticComponent<Omit<ProgressPrimitive.ProgressProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
4
|
-
export { Progress };
|
@@ -1 +0,0 @@
|
|
1
|
-
export * from "./Progress";
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import * as React from "react";
|
2
|
-
import * as SelectPrimitive from "@radix-ui/react-select";
|
3
|
-
declare const Select: React.FC<SelectPrimitive.SelectProps>;
|
4
|
-
declare const SelectGroup: React.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
|
5
|
-
declare const SelectValue: React.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
|
6
|
-
declare const SelectTrigger: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
7
|
-
declare const SelectScrollUpButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
8
|
-
declare const SelectScrollDownButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
9
|
-
declare const SelectContent: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
10
|
-
declare const SelectLabel: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
11
|
-
declare const SelectItem: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
12
|
-
declare const SelectSeparator: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
13
|
-
export { Select, SelectGroup, SelectValue, SelectTrigger, SelectContent, SelectLabel, SelectItem, SelectSeparator, SelectScrollUpButton, SelectScrollDownButton, };
|
@@ -1 +0,0 @@
|
|
1
|
-
export * from "./Select";
|
@@ -1,4 +0,0 @@
|
|
1
|
-
import * as React from "react";
|
2
|
-
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
3
|
-
declare const Separator: React.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
4
|
-
export { Separator };
|
@@ -1 +0,0 @@
|
|
1
|
-
export * from "./Seperator";
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import * as React from "react";
|
2
|
-
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
3
|
-
declare const TooltipProvider: React.FC<TooltipPrimitive.TooltipProviderProps>;
|
4
|
-
declare const Tooltip: React.FC<TooltipPrimitive.TooltipProps>;
|
5
|
-
declare const TooltipTrigger: React.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
6
|
-
declare const TooltipContent: React.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
7
|
-
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
|
@@ -1 +0,0 @@
|
|
1
|
-
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider, } from "./Tooltip";
|