@arkyn/types 1.3.142 → 1.3.143

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,39 @@
1
+ type ImageUploadProps = {
2
+ name: string;
3
+ defaultValue?: string | null;
4
+ label?: string;
5
+ showAsterisk?: boolean;
6
+ changeImageButtonText?: string;
7
+ selectImageButtonText?: string;
8
+ dropImageText?: string;
9
+ action: string;
10
+ method?: string;
11
+ fileName?: string;
12
+ fileResponseName?: string;
13
+ acceptImage?: string;
14
+ onUpload?: (url?: string) => void;
15
+ };
16
+ type NoFileContentProps = {
17
+ acceptImage: string;
18
+ isLoading: boolean;
19
+ selectImageButtonText: string;
20
+ dropImageText: string;
21
+ handleSelectFile: (file: File) => void;
22
+ };
23
+ type ImageUploadLabelProps = {
24
+ label: string;
25
+ showAsterisk?: boolean;
26
+ };
27
+ type ImageUploadErrorProps = {
28
+ error: string;
29
+ };
30
+ type HasFileContentProps = {
31
+ acceptImage: string;
32
+ isLoading: boolean;
33
+ changeImageButtonText: string;
34
+ filePath: string;
35
+ reSendImage?: () => void;
36
+ handleSelectFile: (file: File) => void;
37
+ };
38
+ export type { HasFileContentProps, ImageUploadErrorProps, ImageUploadLabelProps, ImageUploadProps, NoFileContentProps, };
39
+ //# sourceMappingURL=ImageUploadProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ImageUploadProps.d.ts","sourceRoot":"","sources":["../../src/components/ImageUploadProps.ts"],"names":[],"mappings":"AAAA,KAAK,gBAAgB,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,QAAQ,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC,CAAC;AAEF,KAAK,kBAAkB,GAAG;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;CACxC,CAAC;AAEF,KAAK,qBAAqB,GAAG;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,KAAK,qBAAqB,GAAG;IAC3B,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,KAAK,mBAAmB,GAAG;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,gBAAgB,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;CACxC,CAAC;AAEF,YAAY,EACV,mBAAmB,EACnB,qBAAqB,EACrB,qBAAqB,EACrB,gBAAgB,EAChB,kBAAkB,GACnB,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
package/dist/index.d.ts CHANGED
@@ -21,6 +21,7 @@ export * from "./components/GoogleMapProps";
21
21
  export * from "./components/GoogleProviderProps";
22
22
  export * from "./components/GoogleSearchPlacesProps";
23
23
  export * from "./components/IconButtonProps";
24
+ export * from "./components/ImageUploadProps";
24
25
  export * from "./components/InputProps";
25
26
  export * from "./components/ModalProps";
26
27
  export * from "./components/P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Ac,sCAAsC,CAAC"}
package/dist/index.js CHANGED
@@ -23,6 +23,7 @@ export * from "./components/GoogleMapProps";
23
23
  export * from "./components/GoogleProviderProps";
24
24
  export * from "./components/GoogleSearchPlacesProps";
25
25
  export * from "./components/IconButtonProps";
26
+ export * from "./components/ImageUploadProps";
26
27
  export * from "./components/InputProps";
27
28
  export * from "./components/ModalProps";
28
29
  export * from "./components/PaginationProps";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arkyn/types",
3
- "version": "1.3.142",
3
+ "version": "1.3.143",
4
4
  "main": "./dist/bundle.js",
5
5
  "module": "./src/index.ts",
6
6
  "type": "module",
@@ -0,0 +1,53 @@
1
+ type ImageUploadProps = {
2
+ name: string;
3
+ defaultValue?: string | null;
4
+
5
+ label?: string;
6
+ showAsterisk?: boolean;
7
+
8
+ changeImageButtonText?: string;
9
+ selectImageButtonText?: string;
10
+ dropImageText?: string;
11
+
12
+ action: string;
13
+ method?: string;
14
+ fileName?: string;
15
+ fileResponseName?: string;
16
+ acceptImage?: string;
17
+
18
+ onUpload?: (url?: string) => void;
19
+ };
20
+
21
+ type NoFileContentProps = {
22
+ acceptImage: string;
23
+ isLoading: boolean;
24
+ selectImageButtonText: string;
25
+ dropImageText: string;
26
+ handleSelectFile: (file: File) => void;
27
+ };
28
+
29
+ type ImageUploadLabelProps = {
30
+ label: string;
31
+ showAsterisk?: boolean;
32
+ };
33
+
34
+ type ImageUploadErrorProps = {
35
+ error: string;
36
+ };
37
+
38
+ type HasFileContentProps = {
39
+ acceptImage: string;
40
+ isLoading: boolean;
41
+ changeImageButtonText: string;
42
+ filePath: string;
43
+ reSendImage?: () => void;
44
+ handleSelectFile: (file: File) => void;
45
+ };
46
+
47
+ export type {
48
+ HasFileContentProps,
49
+ ImageUploadErrorProps,
50
+ ImageUploadLabelProps,
51
+ ImageUploadProps,
52
+ NoFileContentProps,
53
+ };
package/src/index.ts CHANGED
@@ -24,6 +24,7 @@ export * from "./components/GoogleMapProps";
24
24
  export * from "./components/GoogleProviderProps";
25
25
  export * from "./components/GoogleSearchPlacesProps";
26
26
  export * from "./components/IconButtonProps";
27
+ export * from "./components/ImageUploadProps";
27
28
  export * from "./components/InputProps";
28
29
  export * from "./components/ModalProps";
29
30
  export * from "./components/PaginationProps";