@gradio/button 0.2.0-beta.5 → 0.2.0-beta.7
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 +14 -0
- package/Index.svelte +2 -2
- package/README.md +21 -5
- package/package.json +5 -3
- package/shared/Button.svelte +1 -1
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,19 @@
|
|
1
1
|
# @gradio/button
|
2
2
|
|
3
|
+
## 0.2.0-beta.7
|
4
|
+
|
5
|
+
### Features
|
6
|
+
|
7
|
+
- [#6143](https://github.com/gradio-app/gradio/pull/6143) [`e4f7b4b40`](https://github.com/gradio-app/gradio/commit/e4f7b4b409323b01aa01b39e15ce6139e29aa073) - fix circular dependency with client + upload. Thanks [@pngwn](https://github.com/pngwn)!
|
8
|
+
- [#6136](https://github.com/gradio-app/gradio/pull/6136) [`667802a6c`](https://github.com/gradio-app/gradio/commit/667802a6cdbfb2ce454a3be5a78e0990b194548a) - JS Component Documentation. Thanks [@freddyaboulton](https://github.com/freddyaboulton)!
|
9
|
+
- [#6149](https://github.com/gradio-app/gradio/pull/6149) [`90318b1dd`](https://github.com/gradio-app/gradio/commit/90318b1dd118ae08a695a50e7c556226234ab6dc) - swap `mode` on the frontned to `interactive` to match the backend. Thanks [@pngwn](https://github.com/pngwn)!
|
10
|
+
|
11
|
+
## 0.2.0-beta.6
|
12
|
+
|
13
|
+
### Fixes
|
14
|
+
|
15
|
+
- [#6046](https://github.com/gradio-app/gradio/pull/6046) [`dbb7de5e0`](https://github.com/gradio-app/gradio/commit/dbb7de5e02c53fee05889d696d764d212cb96c74) - fix tests. Thanks [@pngwn](https://github.com/pngwn)!
|
16
|
+
|
3
17
|
## 0.2.0-beta.5
|
4
18
|
|
5
19
|
### Features
|
package/Index.svelte
CHANGED
@@ -12,7 +12,7 @@
|
|
12
12
|
export let visible = true;
|
13
13
|
export let value: string;
|
14
14
|
export let variant: "primary" | "secondary" | "stop" = "secondary";
|
15
|
-
export let
|
15
|
+
export let interactive: boolean;
|
16
16
|
export let size: "sm" | "lg" = "lg";
|
17
17
|
export let scale: number | null = null;
|
18
18
|
export let icon: string | null = null;
|
@@ -38,7 +38,7 @@
|
|
38
38
|
{visible}
|
39
39
|
{root}
|
40
40
|
{root_url}
|
41
|
-
disabled={
|
41
|
+
disabled={!interactive}
|
42
42
|
on:click={() => gradio.dispatch("click")}
|
43
43
|
>
|
44
44
|
{gradio.i18n(value)}
|
package/README.md
CHANGED
@@ -1,11 +1,27 @@
|
|
1
1
|
# `@gradio/button`
|
2
2
|
|
3
|
-
```
|
3
|
+
```javascript
|
4
4
|
<script>
|
5
|
-
import {
|
5
|
+
import { BaseButton } from "@gradio/button";
|
6
|
+
import { createEventDispatcher, tick, getContext } from "svelte";
|
7
|
+
const dispatch = createEventDispatcher();
|
6
8
|
</script>
|
7
9
|
|
8
|
-
<
|
9
|
-
|
10
|
-
|
10
|
+
<BaseButton
|
11
|
+
{value}
|
12
|
+
{variant}
|
13
|
+
{elem_id}
|
14
|
+
{elem_classes}
|
15
|
+
{size}
|
16
|
+
{scale}
|
17
|
+
{link}
|
18
|
+
{icon}
|
19
|
+
{min_width}
|
20
|
+
{visible}
|
21
|
+
{root}
|
22
|
+
{root_url}
|
23
|
+
on:click={() => dispatch("click")}
|
24
|
+
>
|
25
|
+
{"My Button"}
|
26
|
+
</Button>
|
11
27
|
```
|
package/package.json
CHANGED
@@ -1,15 +1,17 @@
|
|
1
1
|
{
|
2
2
|
"name": "@gradio/button",
|
3
|
-
"version": "0.2.0-beta.
|
3
|
+
"version": "0.2.0-beta.7",
|
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/
|
11
|
-
"@gradio/
|
10
|
+
"@gradio/client": "^0.7.0-beta.1",
|
11
|
+
"@gradio/upload": "^0.3.0-beta.6",
|
12
|
+
"@gradio/utils": "^0.2.0-beta.6"
|
12
13
|
},
|
14
|
+
"main": "./Index.svelte",
|
13
15
|
"main_changeset": true,
|
14
16
|
"exports": {
|
15
17
|
".": "./Index.svelte",
|
package/shared/Button.svelte
CHANGED