@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.
@@ -1,6 +1,6 @@
1
1
  <script>
2
2
  import { Meta, Template, Story } from "@storybook/addon-svelte-csf";
3
- import Button from "./static/";
3
+ import Button from "./Index.svelte";
4
4
  </script>
5
5
 
6
6
  <Meta
package/CHANGELOG.md CHANGED
@@ -1,40 +1,39 @@
1
1
  # @gradio/button
2
2
 
3
- ## 0.2.0-beta.4
3
+ ## 0.2.0-beta.5
4
4
 
5
5
  ### Features
6
6
 
7
- - [#5648](https://github.com/gradio-app/gradio/pull/5648) [`c573e2339`](https://github.com/gradio-app/gradio/commit/c573e2339b86c85b378dc349de5e9223a3c3b04a) - Publish all components to npm. Thanks [@freddyaboulton](https://github.com/freddyaboulton)!
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.0-beta.3
10
+ ## 0.2.3
10
11
 
11
12
  ### Patch Changes
12
13
 
13
- - Updated dependencies [[`0b4fd5b6d`](https://github.com/gradio-app/gradio/commit/0b4fd5b6db96fc95a155e5e935e17e1ab11d1161)]:
14
- - @gradio/utils@0.2.0-beta.3
15
- - @gradio/upload@0.3.0-beta.3
14
+ - Updated dependencies []:
15
+ - @gradio/upload@0.3.3
16
16
 
17
- ## 0.2.0-beta.2
17
+ ## 0.2.2
18
18
 
19
19
  ### Patch Changes
20
20
 
21
- - Updated dependencies [[`14fc612d8`](https://github.com/gradio-app/gradio/commit/14fc612d84bf6b1408eccd3a40fab41f25477571)]:
22
- - @gradio/utils@0.2.0-beta.2
23
- - @gradio/upload@0.3.0-beta.2
21
+ - Updated dependencies []:
22
+ - @gradio/utils@0.1.2
23
+ - @gradio/upload@0.3.2
24
24
 
25
- ## 0.2.0-beta.1
25
+ ## 0.2.1
26
26
 
27
27
  ### Patch Changes
28
28
 
29
29
  - Updated dependencies []:
30
- - @gradio/utils@0.2.0-beta.1
31
- - @gradio/upload@0.3.0-beta.1
30
+ - @gradio/upload@0.3.1
32
31
 
33
- ## 0.2.0-beta.0
32
+ ## 0.2.0
34
33
 
35
34
  ### Features
36
35
 
37
- - [#5507](https://github.com/gradio-app/gradio/pull/5507) [`1385dc688`](https://github.com/gradio-app/gradio/commit/1385dc6881f2d8ae7a41106ec21d33e2ef04d6a9) - Custom components. Thanks [@pngwn](https://github.com/pngwn)!
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" | "dynamic" = "dynamic";
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.4",
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.3",
12
- "@gradio/utils": "^0.2.0-beta.3"
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
- ".": "./static/index.ts",
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}-icon`} />
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}-icon`} />
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
@@ -1,2 +0,0 @@
1
- export { default } from "./StaticButton.svelte";
2
- export { default as BaseButton } from "./Button.svelte";