@gradio/button 0.2.17 → 0.2.19
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/Button.stories.svelte +1 -1
- package/CHANGELOG.md +15 -0
- package/Index.svelte +2 -2
- package/package.json +4 -4
package/Button.stories.svelte
CHANGED
@@ -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
|
}}
|
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,20 @@
|
|
1
1
|
# @gradio/button
|
2
2
|
|
3
|
+
## 0.2.19
|
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
|
+
|
12
|
+
## 0.2.18
|
13
|
+
|
14
|
+
### Fixes
|
15
|
+
|
16
|
+
- [#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)!
|
17
|
+
|
3
18
|
## 0.2.17
|
4
19
|
|
5
20
|
### 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 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,15 +1,15 @@
|
|
1
1
|
{
|
2
2
|
"name": "@gradio/button",
|
3
|
-
"version": "0.2.
|
3
|
+
"version": "0.2.19",
|
4
4
|
"description": "Gradio UI packages",
|
5
5
|
"type": "module",
|
6
6
|
"author": "",
|
7
7
|
"license": "ISC",
|
8
8
|
"private": false,
|
9
9
|
"dependencies": {
|
10
|
-
"@gradio/client": "^0.
|
11
|
-
"@gradio/upload": "^0.
|
12
|
-
"@gradio/utils": "^0.2.
|
10
|
+
"@gradio/client": "^0.11.0",
|
11
|
+
"@gradio/upload": "^0.7.1",
|
12
|
+
"@gradio/utils": "^0.2.2"
|
13
13
|
},
|
14
14
|
"main": "./Index.svelte",
|
15
15
|
"main_changeset": true,
|