@gradio/button 0.2.0-beta.4 → 0.2.0-beta.5
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
CHANGED
package/CHANGELOG.md
CHANGED
@@ -1,40 +1,39 @@
|
|
1
1
|
# @gradio/button
|
2
2
|
|
3
|
-
## 0.2.0-beta.
|
3
|
+
## 0.2.0-beta.5
|
4
4
|
|
5
5
|
### Features
|
6
6
|
|
7
|
-
- [#
|
7
|
+
- [#5960](https://github.com/gradio-app/gradio/pull/5960) [`319c30f3f`](https://github.com/gradio-app/gradio/commit/319c30f3fccf23bfe1da6c9b132a6a99d59652f7) - rererefactor frontend files. Thanks [@pngwn](https://github.com/pngwn)!
|
8
|
+
- [#5938](https://github.com/gradio-app/gradio/pull/5938) [`13ed8a485`](https://github.com/gradio-app/gradio/commit/13ed8a485d5e31d7d75af87fe8654b661edcca93) - V4: Use beta release versions for '@gradio' packages. Thanks [@freddyaboulton](https://github.com/freddyaboulton)!
|
8
9
|
|
9
|
-
## 0.2.
|
10
|
+
## 0.2.3
|
10
11
|
|
11
12
|
### Patch Changes
|
12
13
|
|
13
|
-
- Updated dependencies [
|
14
|
-
- @gradio/
|
15
|
-
- @gradio/upload@0.3.0-beta.3
|
14
|
+
- Updated dependencies []:
|
15
|
+
- @gradio/upload@0.3.3
|
16
16
|
|
17
|
-
## 0.2.
|
17
|
+
## 0.2.2
|
18
18
|
|
19
19
|
### Patch Changes
|
20
20
|
|
21
|
-
- Updated dependencies [
|
22
|
-
- @gradio/utils@0.
|
23
|
-
- @gradio/upload@0.3.
|
21
|
+
- Updated dependencies []:
|
22
|
+
- @gradio/utils@0.1.2
|
23
|
+
- @gradio/upload@0.3.2
|
24
24
|
|
25
|
-
## 0.2.
|
25
|
+
## 0.2.1
|
26
26
|
|
27
27
|
### Patch Changes
|
28
28
|
|
29
29
|
- Updated dependencies []:
|
30
|
-
- @gradio/
|
31
|
-
- @gradio/upload@0.3.0-beta.1
|
30
|
+
- @gradio/upload@0.3.1
|
32
31
|
|
33
|
-
## 0.2.0
|
32
|
+
## 0.2.0
|
34
33
|
|
35
34
|
### Features
|
36
35
|
|
37
|
-
- [#
|
36
|
+
- [#5554](https://github.com/gradio-app/gradio/pull/5554) [`75ddeb390`](https://github.com/gradio-app/gradio/commit/75ddeb390d665d4484667390a97442081b49a423) - Accessibility Improvements. Thanks [@hannahblair](https://github.com/hannahblair)!
|
38
37
|
|
39
38
|
## 0.1.3
|
40
39
|
|
@@ -1,14 +1,18 @@
|
|
1
|
+
<script context="module" lang="ts">
|
2
|
+
export { default as BaseButton } from "./shared/Button.svelte";
|
3
|
+
</script>
|
4
|
+
|
1
5
|
<script lang="ts">
|
2
6
|
import type { Gradio, ShareData } from "@gradio/utils";
|
3
7
|
|
4
|
-
import Button from "./Button.svelte";
|
8
|
+
import Button from "./shared/Button.svelte";
|
5
9
|
|
6
10
|
export let elem_id = "";
|
7
11
|
export let elem_classes: string[] = [];
|
8
12
|
export let visible = true;
|
9
13
|
export let value: string;
|
10
14
|
export let variant: "primary" | "secondary" | "stop" = "secondary";
|
11
|
-
export let mode: "static" | "
|
15
|
+
export let mode: "static" | "interactive" = "interactive";
|
12
16
|
export let size: "sm" | "lg" = "lg";
|
13
17
|
export let scale: number | null = null;
|
14
18
|
export let icon: string | null = null;
|
package/package.json
CHANGED
@@ -1,22 +1,18 @@
|
|
1
1
|
{
|
2
2
|
"name": "@gradio/button",
|
3
|
-
"version": "0.2.0-beta.
|
3
|
+
"version": "0.2.0-beta.5",
|
4
4
|
"description": "Gradio UI packages",
|
5
5
|
"type": "module",
|
6
|
-
"main": "./static/index.ts",
|
7
6
|
"author": "",
|
8
7
|
"license": "ISC",
|
9
8
|
"private": false,
|
10
9
|
"dependencies": {
|
11
|
-
"@gradio/upload": "^0.3.0-beta.
|
12
|
-
"@gradio/utils": "^0.2.0-beta.
|
10
|
+
"@gradio/upload": "^0.3.0-beta.4",
|
11
|
+
"@gradio/utils": "^0.2.0-beta.4"
|
13
12
|
},
|
14
13
|
"main_changeset": true,
|
15
14
|
"exports": {
|
16
|
-
".": "./
|
17
|
-
"./package.json": "./package.json"
|
18
|
-
"./interactive": "./interactive/index.ts",
|
19
|
-
"./static": "./static/index.ts",
|
20
|
-
"./example": "./example/index.ts"
|
15
|
+
".": "./Index.svelte",
|
16
|
+
"./package.json": "./package.json"
|
21
17
|
}
|
22
18
|
}
|
@@ -34,7 +34,7 @@
|
|
34
34
|
id={elem_id}
|
35
35
|
>
|
36
36
|
{#if icon}
|
37
|
-
<img class="button-icon" src={icon_path} alt={`${value}
|
37
|
+
<img class="button-icon" src={icon_path} alt={`${value} icon`} />
|
38
38
|
{/if}
|
39
39
|
<slot />
|
40
40
|
</a>
|
@@ -52,7 +52,7 @@
|
|
52
52
|
{disabled}
|
53
53
|
>
|
54
54
|
{#if icon}
|
55
|
-
<img class="button-icon" src={icon_path} alt={`${value}
|
55
|
+
<img class="button-icon" src={icon_path} alt={`${value} icon`} />
|
56
56
|
{/if}
|
57
57
|
<slot />
|
58
58
|
</button>
|
package/static/index.ts
DELETED