gradio-pr-bot commited on
Commit
a72d98b
·
verified ·
1 Parent(s): dc97d91

Upload folder using huggingface_hub

Browse files
6.2.0/group/Index.svelte ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <script lang="ts">
2
+ import { Gradio } from "@gradio/utils";
3
+
4
+ const props = $props();
5
+
6
+ // Register the component with Gradio
7
+ const _ = new Gradio<{}, {}>(props);
8
+
9
+ const elem_id = $derived(props.elem_id || "");
10
+ const elem_classes = $derived(props.elem_classes || []);
11
+ const visible = $derived(props.visible === undefined ? true : props.visible);
12
+ </script>
13
+
14
+ <div
15
+ id={elem_id}
16
+ class="gr-group {elem_classes.join(' ')}"
17
+ class:hide={!visible}
18
+ >
19
+ <div
20
+ class="styler"
21
+ style:--block-radius="0px"
22
+ style:--block-border-width="0px"
23
+ style:--layout-gap="1px"
24
+ style:--form-gap-width="1px"
25
+ style:--button-border-width="0px"
26
+ style:--button-large-radius="0px"
27
+ style:--button-small-radius="0px"
28
+ >
29
+ <slot />
30
+ </div>
31
+ </div>
32
+
33
+ <style>
34
+ div {
35
+ border: var(--block-border-width) solid var(--border-color-primary);
36
+ background: var(--block-border-color);
37
+ border-radius: var(--block-radius);
38
+ display: flex;
39
+ flex-direction: column;
40
+ gap: var(--form-gap-width);
41
+ overflow: hidden;
42
+ }
43
+ div > :global(*:not(.absolute)) {
44
+ border: none;
45
+ border-radius: 0;
46
+ }
47
+ .hide {
48
+ display: none;
49
+ }
50
+ </style>
6.2.0/group/package.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "@gradio/group",
3
+ "version": "0.3.0",
4
+ "description": "Gradio UI packages",
5
+ "type": "module",
6
+ "author": "",
7
+ "license": "ISC",
8
+ "private": false,
9
+ "main_changeset": true,
10
+ "exports": {
11
+ ".": {
12
+ "gradio": "./Index.svelte",
13
+ "svelte": "./dist/Index.svelte",
14
+ "types": "./dist/Index.svelte.d.ts"
15
+ },
16
+ "./package.json": "./package.json"
17
+ },
18
+ "devDependencies": {
19
+ "@gradio/preview": "workspace:^"
20
+ },
21
+ "peerDependencies": {
22
+ "svelte": "^5.43.4"
23
+ },
24
+ "dependencies": {
25
+ "@gradio/utils": "workspace:^"
26
+ },
27
+ "repository": {
28
+ "type": "git",
29
+ "url": "git+https://github.com/gradio-app/gradio.git",
30
+ "directory": "js/group"
31
+ }
32
+ }