@ttoss/components 2.14.19 → 2.14.20
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttoss/components",
|
|
3
|
-
"version": "2.14.
|
|
3
|
+
"version": "2.14.20",
|
|
4
4
|
"description": "React components for ttoss ecosystem.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"React",
|
|
@@ -134,20 +134,20 @@
|
|
|
134
134
|
"react": "^19.2.4",
|
|
135
135
|
"tsup": "^8.5.1",
|
|
136
136
|
"tsx": "^4.21.0",
|
|
137
|
-
"@ttoss/config": "^1.37.
|
|
138
|
-
"@ttoss/i18n-cli": "^0.8.
|
|
139
|
-
"@ttoss/react-hooks": "^2.3.
|
|
140
|
-
"@ttoss/react-
|
|
141
|
-
"@ttoss/react-
|
|
142
|
-
"@ttoss/test-utils": "^4.2.
|
|
143
|
-
"@ttoss/ui": "^6.9.
|
|
137
|
+
"@ttoss/config": "^1.37.12",
|
|
138
|
+
"@ttoss/i18n-cli": "^0.8.12",
|
|
139
|
+
"@ttoss/react-hooks": "^2.3.12",
|
|
140
|
+
"@ttoss/react-i18n": "^2.2.13",
|
|
141
|
+
"@ttoss/react-icons": "^0.7.13",
|
|
142
|
+
"@ttoss/test-utils": "^4.2.12",
|
|
143
|
+
"@ttoss/ui": "^6.9.19"
|
|
144
144
|
},
|
|
145
145
|
"peerDependencies": {
|
|
146
146
|
"react": ">=16.8.0",
|
|
147
|
-
"@ttoss/react-hooks": "^2.3.
|
|
148
|
-
"@ttoss/react-icons": "^0.7.
|
|
149
|
-
"@ttoss/
|
|
150
|
-
"@ttoss/
|
|
147
|
+
"@ttoss/react-hooks": "^2.3.12",
|
|
148
|
+
"@ttoss/react-icons": "^0.7.13",
|
|
149
|
+
"@ttoss/ui": "^6.9.19",
|
|
150
|
+
"@ttoss/react-i18n": "^2.2.13"
|
|
151
151
|
},
|
|
152
152
|
"publishConfig": {
|
|
153
153
|
"access": "public",
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
|
|
4
|
-
type UploadResult = {
|
|
5
|
-
url: string;
|
|
6
|
-
id: string | number;
|
|
7
|
-
};
|
|
8
|
-
type FileUploadState = {
|
|
9
|
-
file: File;
|
|
10
|
-
status: 'pending' | 'uploading' | 'completed' | 'error';
|
|
11
|
-
progress?: number;
|
|
12
|
-
result?: UploadResult;
|
|
13
|
-
error?: Error;
|
|
14
|
-
};
|
|
15
|
-
type OnUpload = (file: File, onProgress?: (progress: number) => void) => Promise<UploadResult>;
|
|
16
|
-
type OnUploadStart = (file: File) => void;
|
|
17
|
-
type OnUploadProgress = (file: File, progress: number) => void;
|
|
18
|
-
type OnUploadComplete = (file: File, result: UploadResult) => void;
|
|
19
|
-
type OnUploadError = (file: File, error: Error) => void;
|
|
20
|
-
type OnFilesChange = (files: FileUploadState[]) => void;
|
|
21
|
-
type OnRemove = (file: UploadedFile, index: number) => void;
|
|
22
|
-
type UploadedFile = {
|
|
23
|
-
id: string | number;
|
|
24
|
-
name: string;
|
|
25
|
-
imageUrl?: string;
|
|
26
|
-
url: string;
|
|
27
|
-
};
|
|
28
|
-
type FileUploaderProps = {
|
|
29
|
-
onUpload: OnUpload;
|
|
30
|
-
onUploadStart?: OnUploadStart;
|
|
31
|
-
onUploadProgress?: OnUploadProgress;
|
|
32
|
-
onUploadComplete?: OnUploadComplete;
|
|
33
|
-
onUploadError?: OnUploadError;
|
|
34
|
-
onFilesChange?: OnFilesChange;
|
|
35
|
-
onRemove?: OnRemove;
|
|
36
|
-
accept?: string;
|
|
37
|
-
multiple?: boolean;
|
|
38
|
-
maxSize?: number;
|
|
39
|
-
maxFiles?: number;
|
|
40
|
-
disabled?: boolean;
|
|
41
|
-
autoUpload?: boolean;
|
|
42
|
-
retryAttempts?: number;
|
|
43
|
-
placeholder?: string;
|
|
44
|
-
error?: string;
|
|
45
|
-
children?: React.ReactNode;
|
|
46
|
-
showFileList?: boolean;
|
|
47
|
-
FileListComponent?: (props: {
|
|
48
|
-
files: UploadedFile[];
|
|
49
|
-
onRemove: (index: number) => void;
|
|
50
|
-
}) => React.ReactNode;
|
|
51
|
-
files?: UploadedFile[];
|
|
52
|
-
};
|
|
53
|
-
declare const FileUploader: ({ onUpload, onUploadStart, onUploadProgress, onUploadComplete, onUploadError, onFilesChange, onRemove, accept, multiple, maxSize, maxFiles, disabled, autoUpload, retryAttempts, placeholder, error, children, showFileList, FileListComponent, files: uploadedFiles, }: FileUploaderProps) => react_jsx_runtime.JSX.Element;
|
|
54
|
-
|
|
55
|
-
export { type FileUploadState, FileUploader, type FileUploaderProps, type OnFilesChange, type OnRemove, type OnUpload, type OnUploadComplete, type OnUploadError, type OnUploadProgress, type OnUploadStart, type UploadResult, type UploadedFile };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
|
|
4
|
-
type InstallPwaUiProps = {
|
|
5
|
-
onInstall: React.MouseEventHandler<HTMLButtonElement>;
|
|
6
|
-
};
|
|
7
|
-
declare const InstallPwaUi: ({ onInstall }: InstallPwaUiProps) => react_jsx_runtime.JSX.Element;
|
|
8
|
-
declare const InstallPwa: () => react_jsx_runtime.JSX.Element | null;
|
|
9
|
-
|
|
10
|
-
export { InstallPwa, InstallPwaUi, type InstallPwaUiProps };
|
package/dist/JsonView/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { JsonView } from 'react-json-view-lite';
|