@gradio/button 0.2.17 → 0.2.18
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 +7 -1
- package/Index.svelte +2 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# @gradio/button
|
2
2
|
|
3
|
+
## 0.2.18
|
4
|
+
|
5
|
+
### Fixes
|
6
|
+
|
7
|
+
- [#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)!
|
8
|
+
|
3
9
|
## 0.2.17
|
4
10
|
|
5
11
|
### Patch Changes
|
@@ -241,4 +247,4 @@ Thanks [@pngwn](https://github.com/pngwn)!
|
|
241
247
|
### Patch Changes
|
242
248
|
|
243
249
|
- Updated dependencies []:
|
244
|
-
- @gradio/utils@0.0.2
|
250
|
+
- @gradio/utils@0.0.2
|
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 value: string;
|
13
|
+
export let value: string | null;
|
14
14
|
export let variant: "primary" | "secondary" | "stop" = "secondary";
|
15
15
|
export let interactive: boolean;
|
16
16
|
export let size: "sm" | "lg" = "lg";
|
@@ -41,5 +41,5 @@
|
|
41
41
|
disabled={!interactive}
|
42
42
|
on:click={() => gradio.dispatch("click")}
|
43
43
|
>
|
44
|
-
{gradio.i18n(value)}
|
44
|
+
{value ? gradio.i18n(value) : ""}
|
45
45
|
</Button>
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@gradio/button",
|
3
|
-
"version": "0.2.
|
3
|
+
"version": "0.2.18",
|
4
4
|
"description": "Gradio UI packages",
|
5
5
|
"type": "module",
|
6
6
|
"author": "",
|
@@ -8,8 +8,8 @@
|
|
8
8
|
"private": false,
|
9
9
|
"dependencies": {
|
10
10
|
"@gradio/client": "^0.10.1",
|
11
|
-
"@gradio/
|
12
|
-
"@gradio/
|
11
|
+
"@gradio/utils": "^0.2.1",
|
12
|
+
"@gradio/upload": "^0.7.0"
|
13
13
|
},
|
14
14
|
"main": "./Index.svelte",
|
15
15
|
"main_changeset": true,
|