gradio-pr-bot commited on
Commit
537fcc7
·
verified ·
1 Parent(s): 0367bd4

Upload folder using huggingface_hub

Browse files
6.13.1/group/Index.svelte ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <script lang="ts">
2
+ import { Gradio } from "@gradio/utils";
3
+
4
+ const props = $props();
5
+ const gradio = new Gradio<{}, {}>(props);
6
+ </script>
7
+
8
+ <div
9
+ id={gradio.shared.elem_id}
10
+ class="gr-group {gradio.shared.elem_classes?.join(' ') || ''}"
11
+ class:hide={gradio.shared.visible === "hidden"}
12
+ >
13
+ <div
14
+ id={gradio.shared.elem_id}
15
+ class="gr-group {gradio.shared.elem_classes?.join(' ') || ''}"
16
+ class:hide={gradio.shared.visible === "hidden"}
17
+ >
18
+ <div
19
+ class="styler"
20
+ style:--block-radius="0px"
21
+ style:--block-border-width="0px"
22
+ style:--layout-gap="1px"
23
+ style:--form-gap-width="1px"
24
+ style:--button-border-width="0px"
25
+ style:--button-large-radius="0px"
26
+ style:--button-small-radius="0px"
27
+ >
28
+ <slot />
29
+ </div>
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.13.1/group/WithChild.svelte ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ <script lang="ts">
2
+ import Group from "./Index.svelte";
3
+ let props = $props();
4
+ </script>
5
+
6
+ <Group {...props}>
7
+ <div data-testid="slot-content">test child</div>
8
+ </Group>
6.13.1/group/package.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "@gradio/group",
3
+ "version": "0.3.5",
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.48.0"
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
+ }