@jobber/components 2.84.4-pre.11 → 2.84.4-pre.13
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,31 @@
|
|
|
1
|
+
import { IconNames } from "../Icon";
|
|
2
|
+
import { FileUpload } from "../InputFile";
|
|
3
|
+
export declare type Sizes = "small" | "base" | "large" | "extraLarge";
|
|
4
|
+
export declare type FileIconsNames = Extract<IconNames, "file" | "excel" | "pdf" | "video" | "word">;
|
|
5
|
+
export interface GalleryProps {
|
|
6
|
+
/**
|
|
7
|
+
* The size of the files and their spacing in the gallery
|
|
8
|
+
* @default "base"
|
|
9
|
+
*/
|
|
10
|
+
size?: "base" | "large";
|
|
11
|
+
/**
|
|
12
|
+
* The files for the Gallery to display
|
|
13
|
+
*/
|
|
14
|
+
files: File[];
|
|
15
|
+
/**
|
|
16
|
+
* The max number of thumbnails before no more thumbnails are displayed
|
|
17
|
+
* unless the user clicks an action to display the rest
|
|
18
|
+
*/
|
|
19
|
+
max?: number;
|
|
20
|
+
/**
|
|
21
|
+
* onDelete callback - this function will be called when the delete action is
|
|
22
|
+
* triggered on a Gallery image
|
|
23
|
+
*/
|
|
24
|
+
onDelete?(file: File): void;
|
|
25
|
+
}
|
|
26
|
+
export interface File extends Pick<FileUpload, "key" | "name" | "type" | "size" | "progress"> {
|
|
27
|
+
/**
|
|
28
|
+
* The data url of the file.
|
|
29
|
+
*/
|
|
30
|
+
readonly src: string;
|
|
31
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jobber/components",
|
|
3
|
-
"version": "2.84.4-pre.
|
|
3
|
+
"version": "2.84.4-pre.13+c21468d4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
"> 1%",
|
|
86
86
|
"IE 10"
|
|
87
87
|
],
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "c21468d4ead94caf27a1cbc0c90e876c83eb668f"
|
|
89
89
|
}
|