Skip to content

Commit 9cbf092

Browse files
authored
Merge pull request #92 from odefun/feat/web-ui-click-fix-274679
fix: restore web UI interactions and bump version to 0.0.63
2 parents ac86f1e + a60f6b1 commit 9cbf092

File tree

6 files changed

+32
-2
lines changed

6 files changed

+32
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ode",
3-
"version": "0.0.62",
3+
"version": "0.0.63",
44
"description": "Coding anywhere with your coding agents connected",
55
"module": "packages/core/index.ts",
66
"type": "module",

packages/web-ui/src/app.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,4 +93,10 @@
9393
color: hsl(var(--foreground));
9494
font-family: var(--font-sans);
9595
}
96+
97+
button:not(:disabled),
98+
[role="button"]:not([aria-disabled="true"]),
99+
summary {
100+
cursor: pointer;
101+
}
96102
}

packages/web-ui/src/lib/components/ui/button.svelte

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@
3535
export let className = "";
3636
</script>
3737

38-
<button class={cn(buttonVariants({ variant, size }), className)} {...$$restProps}>
38+
<button
39+
class={cn(buttonVariants({ variant, size }), className)}
40+
on:click
41+
on:keydown
42+
on:keyup
43+
on:focus
44+
on:blur
45+
{...$$restProps}
46+
>
3947
<slot />
4048
</button>

packages/web-ui/src/lib/components/ui/input.svelte

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,11 @@
99
"flex h-10 w-full rounded-md border bg-[hsl(var(--background))] px-3 py-2 text-sm ring-offset-[hsl(var(--background))] file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-[hsl(var(--muted-foreground))] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[hsl(var(--ring))] focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
1010
className
1111
)}
12+
on:input
13+
on:change
14+
on:focus
15+
on:blur
16+
on:keydown
17+
on:keyup
1218
{...$$restProps}
1319
/>

packages/web-ui/src/lib/components/ui/select.svelte

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
"flex h-10 w-full rounded-md border bg-[hsl(var(--background))] px-3 py-2 text-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[hsl(var(--ring))] focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
1010
className
1111
)}
12+
on:change
13+
on:input
14+
on:focus
15+
on:blur
1216
{...$$restProps}
1317
>
1418
<slot />

packages/web-ui/src/lib/components/ui/textarea.svelte

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,11 @@
99
"flex min-h-[96px] w-full rounded-md border bg-[hsl(var(--background))] px-3 py-2 text-sm ring-offset-[hsl(var(--background))] placeholder:text-[hsl(var(--muted-foreground))] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[hsl(var(--ring))] focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
1010
className
1111
)}
12+
on:input
13+
on:change
14+
on:focus
15+
on:blur
16+
on:keydown
17+
on:keyup
1218
{...$$restProps}
1319
></textarea>

0 commit comments

Comments
 (0)