Upload folder using huggingface_hub
Browse files
6.1.0/button/Index.svelte
CHANGED
|
@@ -28,6 +28,7 @@
|
|
| 28 |
min_width={gradio.shared.min_width}
|
| 29 |
visible={gradio.shared.visible}
|
| 30 |
disabled={!gradio.shared.interactive}
|
|
|
|
| 31 |
on:click={handle_click}
|
| 32 |
>
|
| 33 |
{gradio.props.value ?? ""}
|
|
|
|
| 28 |
min_width={gradio.shared.min_width}
|
| 29 |
visible={gradio.shared.visible}
|
| 30 |
disabled={!gradio.shared.interactive}
|
| 31 |
+
link_target={gradio.props.link_target}
|
| 32 |
on:click={handle_click}
|
| 33 |
>
|
| 34 |
{gradio.props.value ?? ""}
|
6.1.0/button/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
{
|
| 2 |
"name": "@gradio/button",
|
| 3 |
-
"version": "0.
|
| 4 |
"description": "Gradio UI packages",
|
| 5 |
"type": "module",
|
| 6 |
"author": "",
|
|
|
|
| 1 |
{
|
| 2 |
"name": "@gradio/button",
|
| 3 |
+
"version": "0.6.0",
|
| 4 |
"description": "Gradio UI packages",
|
| 5 |
"type": "module",
|
| 6 |
"author": "",
|
6.1.0/button/shared/Button.svelte
CHANGED
|
@@ -10,6 +10,7 @@
|
|
| 10 |
export let size: "sm" | "md" | "lg" = "lg";
|
| 11 |
export let value: string | null = null;
|
| 12 |
export let link: string | null = null;
|
|
|
|
| 13 |
export let icon: FileData | null = null;
|
| 14 |
export let disabled = false;
|
| 15 |
export let scale: number | null = null;
|
|
@@ -19,7 +20,8 @@
|
|
| 19 |
{#if link && link.length > 0}
|
| 20 |
<a
|
| 21 |
href={link}
|
| 22 |
-
|
|
|
|
| 23 |
class:hidden={visible === false || visible === "hidden"}
|
| 24 |
class:disabled
|
| 25 |
aria-disabled={disabled}
|
|
|
|
| 10 |
export let size: "sm" | "md" | "lg" = "lg";
|
| 11 |
export let value: string | null = null;
|
| 12 |
export let link: string | null = null;
|
| 13 |
+
export let link_target: "_self" | "_blank" | "_parent" | "_top" = "_self";
|
| 14 |
export let icon: FileData | null = null;
|
| 15 |
export let disabled = false;
|
| 16 |
export let scale: number | null = null;
|
|
|
|
| 20 |
{#if link && link.length > 0}
|
| 21 |
<a
|
| 22 |
href={link}
|
| 23 |
+
target={link_target}
|
| 24 |
+
rel={link_target === "_blank" ? "noopener noreferrer" : undefined}
|
| 25 |
class:hidden={visible === false || visible === "hidden"}
|
| 26 |
class:disabled
|
| 27 |
aria-disabled={disabled}
|