@xsolla/xui-uploader 0.74.0 → 0.75.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.
@@ -0,0 +1,50 @@
1
+ /**
2
+ * Flowtype definitions for index
3
+ * Generated by Flowgen from a Typescript Definition
4
+ * Flowgen v1.21.0
5
+ * @flow
6
+ */
7
+
8
+ import React from "react";
9
+ declare interface UploaderProps {
10
+ /**
11
+ * Label for the uploader
12
+ */
13
+ label?: string;
14
+
15
+ /**
16
+ * Placeholder text when no files are selected
17
+ */
18
+ placeholder?: string;
19
+
20
+ /**
21
+ * Accepted file types (e.g., ".jpg,.png")
22
+ */
23
+ accept?: string;
24
+
25
+ /**
26
+ * Whether multiple files can be selected
27
+ */
28
+ multiple?: boolean;
29
+
30
+ /**
31
+ * Callback when files are selected
32
+ */
33
+ onFilesChange?: (files: File[]) => void;
34
+
35
+ /**
36
+ * Property for disabling the control
37
+ */
38
+ disabled?: boolean;
39
+
40
+ /**
41
+ * Size of the button
42
+ */
43
+ size?: "xl" | "lg" | "md" | "sm" | "xs";
44
+ }
45
+ declare var Uploader: React.ForwardRefExoticComponent<{
46
+ ...UploaderProps,
47
+ ...React.RefAttributes<HTMLInputElement>,
48
+ }>;
49
+ export type { UploaderProps };
50
+ declare export { Uploader };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xsolla/xui-uploader",
3
- "version": "0.74.0",
3
+ "version": "0.75.0",
4
4
  "main": "./web/index.js",
5
5
  "module": "./web/index.mjs",
6
6
  "types": "./web/index.d.ts",
@@ -10,10 +10,10 @@
10
10
  "build:native": "PLATFORM=native tsup"
11
11
  },
12
12
  "dependencies": {
13
- "@xsolla/xui-button": "0.74.0",
14
- "@xsolla/xui-core": "0.74.0",
15
- "@xsolla/xui-icons": "0.74.0",
16
- "@xsolla/xui-primitives-core": "0.74.0"
13
+ "@xsolla/xui-button": "0.75.0",
14
+ "@xsolla/xui-core": "0.75.0",
15
+ "@xsolla/xui-icons": "0.75.0",
16
+ "@xsolla/xui-primitives-core": "0.75.0"
17
17
  },
18
18
  "peerDependencies": {
19
19
  "react": ">=16.8.0"
@@ -0,0 +1,50 @@
1
+ /**
2
+ * Flowtype definitions for index
3
+ * Generated by Flowgen from a Typescript Definition
4
+ * Flowgen v1.21.0
5
+ * @flow
6
+ */
7
+
8
+ import React from "react";
9
+ declare interface UploaderProps {
10
+ /**
11
+ * Label for the uploader
12
+ */
13
+ label?: string;
14
+
15
+ /**
16
+ * Placeholder text when no files are selected
17
+ */
18
+ placeholder?: string;
19
+
20
+ /**
21
+ * Accepted file types (e.g., ".jpg,.png")
22
+ */
23
+ accept?: string;
24
+
25
+ /**
26
+ * Whether multiple files can be selected
27
+ */
28
+ multiple?: boolean;
29
+
30
+ /**
31
+ * Callback when files are selected
32
+ */
33
+ onFilesChange?: (files: File[]) => void;
34
+
35
+ /**
36
+ * Property for disabling the control
37
+ */
38
+ disabled?: boolean;
39
+
40
+ /**
41
+ * Size of the button
42
+ */
43
+ size?: "xl" | "lg" | "md" | "sm" | "xs";
44
+ }
45
+ declare var Uploader: React.ForwardRefExoticComponent<{
46
+ ...UploaderProps,
47
+ ...React.RefAttributes<HTMLInputElement>,
48
+ }>;
49
+ export type { UploaderProps };
50
+ declare export { Uploader };