@gradio/uploadbutton 0.4.2 → 0.4.4
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/CHANGELOG.md +16 -0
- package/Index.svelte +2 -2
- package/UploadButton.stories.svelte +7 -1
- package/package.json +5 -5
- package/shared/UploadButton.svelte +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @gradio/uploadbutton
|
|
2
2
|
|
|
3
|
+
## 0.4.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`572e360`](https://github.com/gradio-app/gradio/commit/572e360fff4a03c335b86e1a7517a44cb6af2bcd), [`68a54a7`](https://github.com/gradio-app/gradio/commit/68a54a7a310d8d7072fdae930bf1cfdf12c45a7f), [`fdd1521`](https://github.com/gradio-app/gradio/commit/fdd15213c24b9cbc58bbc1b6beb4af7c18f48557), [`c3e61e4`](https://github.com/gradio-app/gradio/commit/c3e61e4f70696a71aede67b65d28447eb67daf16)]:
|
|
8
|
+
- @gradio/upload@0.7.1
|
|
9
|
+
- @gradio/client@0.11.0
|
|
10
|
+
- @gradio/utils@0.2.2
|
|
11
|
+
- @gradio/button@0.2.19
|
|
12
|
+
|
|
13
|
+
## 0.4.3
|
|
14
|
+
|
|
15
|
+
### Fixes
|
|
16
|
+
|
|
17
|
+
- [#7126](https://github.com/gradio-app/gradio/pull/7126) [`5727b92`](https://github.com/gradio-app/gradio/commit/5727b92abc8a00a675bfc0a921b38de771af947b) - Allow buttons to take null value. Thanks [@abidlabs](https://github.com/abidlabs)!
|
|
18
|
+
|
|
3
19
|
## 0.4.2
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/Index.svelte
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
export let elem_id = "";
|
|
11
11
|
export let elem_classes: string[] = [];
|
|
12
12
|
export let visible = true;
|
|
13
|
-
export let label: string;
|
|
13
|
+
export let label: string | null;
|
|
14
14
|
export let value: null | FileData | FileData[];
|
|
15
15
|
export let file_count: string;
|
|
16
16
|
export let file_types: string[] = [];
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
on:change={({ detail }) => handle_event(detail, "change")}
|
|
60
60
|
on:upload={({ detail }) => handle_event(detail, "upload")}
|
|
61
61
|
>
|
|
62
|
-
{gradio.i18n(label)}
|
|
62
|
+
{label ? gradio.i18n(label) : ""}
|
|
63
63
|
</UploadButton>
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
scale: {
|
|
46
46
|
options: [null, 0.5, 1, 2],
|
|
47
47
|
description:
|
|
48
|
-
"relative
|
|
48
|
+
"relative size compared to adjacent Components. For example if Components A and B are in a Row, and A has scale=2, and B has scale=1, A will be twice as wide as B. Should be an integer. Only applies in Rows, or top-level Components in Blocks where fill_height=True. ",
|
|
49
49
|
control: { type: "select" }
|
|
50
50
|
}
|
|
51
51
|
}}
|
|
@@ -78,3 +78,9 @@
|
|
|
78
78
|
visible: false
|
|
79
79
|
}}
|
|
80
80
|
/>
|
|
81
|
+
<Story
|
|
82
|
+
name="Button with null label (should be collapsed)"
|
|
83
|
+
args={{
|
|
84
|
+
label: null
|
|
85
|
+
}}
|
|
86
|
+
/>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gradio/uploadbutton",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.4",
|
|
4
4
|
"description": "Gradio UI packages",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "",
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
},
|
|
14
14
|
"main": "./Index.svelte",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@gradio/button": "^0.2.
|
|
17
|
-
"@gradio/
|
|
18
|
-
"@gradio/
|
|
19
|
-
"@gradio/utils": "^0.2.
|
|
16
|
+
"@gradio/button": "^0.2.19",
|
|
17
|
+
"@gradio/upload": "^0.7.1",
|
|
18
|
+
"@gradio/client": "^0.11.0",
|
|
19
|
+
"@gradio/utils": "^0.2.2"
|
|
20
20
|
}
|
|
21
21
|
}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
export let elem_id = "";
|
|
13
13
|
export let elem_classes: string[] = [];
|
|
14
14
|
export let visible = true;
|
|
15
|
-
export let label: string;
|
|
15
|
+
export let label: string | null;
|
|
16
16
|
export let value: null | FileData | FileData[];
|
|
17
17
|
export let file_count: string;
|
|
18
18
|
export let file_types: string[] = [];
|