migrate: switch to svelte 5 events system for everything

This commit is contained in:
James Xylight committed 2025-02-05 19:29:54 -08:00
1 parent 43a857ed66
commit 53cb0e4f20
27 files changed
+248 -303

No files matched your search

+16 -13
View File
@@ -12,20 +12,7 @@
sm: 'shadow-sm',
none: 'shadow-none',
}
</script>
<script lang="ts">
import type {
HTMLInputAttributes,
HTMLInputTypeAttribute,
} from 'svelte/elements'
import Label from '../forms/Label.svelte'
import { generateID } from '../forms/helper.js'
const borderClass = `
border border-slate-200 border-b-slate-300 dark:border-zinc-900 dark:border-t-zinc-800
`
interface Props extends Omit<HTMLInputAttributes, 'size' | 'prefix'> {
label?: string | undefined
value?: string
@@ -44,6 +31,22 @@
children?: import('svelte').Snippet
}
export type { Props as TextInputProps }
</script>
<script lang="ts">
import type {
HTMLInputAttributes,
HTMLInputTypeAttribute,
} from 'svelte/elements'
import Label from '../forms/Label.svelte'
import { generateID } from '../forms/helper.js'
const borderClass = `
border border-slate-200 border-b-slate-300 dark:border-zinc-900 dark:border-t-zinc-800
`
let {
label = undefined,
value = $bindable(''),