fix(ui): provide explicit undefined defaults for optional props

Button.onclick, Input.id, Select.id were declared without defaults
(implicitly undefined) which could cause Svelte 5 warnings or incorrect
() destructuring behavior. Set explicit = undefined.
This commit is contained in:
2026-06-03 11:48:08 +03:00
parent 1e6ec34c2b
commit c10cd6b4d5
3 changed files with 3 additions and 3 deletions

View File

@@ -33,7 +33,7 @@
type = /** @type {'button' | 'submit' | 'reset'} */ ('button'),
class: className = '',
children,
onclick,
onclick = undefined,
...rest
} = $props();
// [/SECTION: PROPS]

View File

@@ -30,7 +30,7 @@
error = "",
disabled = false,
type = "text",
id: externalId,
id: externalId = undefined,
class: className = "",
...rest
} = $props();

View File

@@ -25,7 +25,7 @@
value = $bindable(""),
options = [],
disabled = false,
id: externalId,
id: externalId = undefined,
class: className = "",
...rest
} = $props();