diff --git a/gradio/package-lock.json b/gradio/package-lock.json deleted file mode 100644 index a36400fa8a..0000000000 --- a/gradio/package-lock.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "gradio", - "lockfileVersion": 2, - "requires": true, - "packages": {} -} diff --git a/gradio/templates/frontend/index.html b/gradio/templates/frontend/index.html index ae177678ca..6e12ceb7b5 100644 --- a/gradio/templates/frontend/index.html +++ b/gradio/templates/frontend/index.html @@ -45,10 +45,9 @@ Gradio - - - - + + + diff --git a/ui/packages/app/package.json b/ui/packages/app/package.json index 9e2fc42e72..58ef62d3e0 100644 --- a/ui/packages/app/package.json +++ b/ui/packages/app/package.json @@ -25,6 +25,7 @@ "@gradio/json": "workspace:^0.0.1", "@gradio/label": "workspace:^0.0.1", "@gradio/table": "workspace:^0.0.1", + "@gradio/tabs": "workspace:^0.0.1", "@gradio/theme": "workspace:^0.0.1", "@gradio/upload": "workspace:^0.0.1", "@gradio/video": "workspace:^0.0.1", diff --git a/ui/packages/app/postcss.config.js b/ui/packages/app/postcss.config.js index 315846afcb..9d6d6c3d61 100644 --- a/ui/packages/app/postcss.config.js +++ b/ui/packages/app/postcss.config.js @@ -3,6 +3,5 @@ module.exports = { plugins: [ require("tailwindcss/nesting"), require("tailwindcss"), - require("autoprefixer") ] }; diff --git a/ui/packages/app/src/Blocks.svelte b/ui/packages/app/src/Blocks.svelte index dd7765207b..fe86efdab6 100644 --- a/ui/packages/app/src/Blocks.svelte +++ b/ui/packages/app/src/Blocks.svelte @@ -1,13 +1,110 @@
- + {#if tree} + {#each tree as { component, id, props, children, has_modes }} + handle_destroy(detail)} + /> + {/each} + {/if}
diff --git a/ui/packages/app/src/ExampleSet.svelte b/ui/packages/app/src/ExampleSet.svelte index 317a70c033..18305181b8 100644 --- a/ui/packages/app/src/ExampleSet.svelte +++ b/ui/packages/app/src/ExampleSet.svelte @@ -1,5 +1,5 @@ + diff --git a/ui/packages/app/src/Interface.svelte b/ui/packages/app/src/Interface.svelte index 864daa0ab5..807af3fee4 100644 --- a/ui/packages/app/src/Interface.svelte +++ b/ui/packages/app/src/Interface.svelte @@ -1,8 +1,4 @@ + + + {#if children.length} + {#each children as { component, id, props, children, has_modes }} + + {/each} + {/if} + diff --git a/ui/packages/app/src/components/Audio/Audio.svelte b/ui/packages/app/src/components/Audio/Audio.svelte index 111aa87046..d71e1c1a90 100644 --- a/ui/packages/app/src/components/Audio/Audio.svelte +++ b/ui/packages/app/src/components/Audio/Audio.svelte @@ -2,14 +2,14 @@ import { Audio } from "@gradio/audio"; import type { FileData } from "@gradio/upload"; - export let is_static: boolean; - export let value: null | FileData; + export let mode: "static" | "dynamic"; + export let value: null | FileData = null; export let theme: string; export let name: string; export let source: "microphone" | "upload"; -{#if is_static} +{#if mode === "static"}