desktop: Extend shared form components

`Checkbox` reports changes, `SegmentedSwitch` options can show an icon and
a label together, `TextInput` takes a `maxlength`, and a new `Select` is a
styled dropdown that also works inside a popover, where a nested `Popover`
would close its parent.

Co-authored-by: Brandon Oxendine <brandon.oxendine@gmail.com>
This commit is contained in:
Rūdolfs Ošiņš
2026-11-06 18:21:33 +01:00
co-authored by Brandon Oxendine
parent c13c7fa5d9
commit e29def0dda
4 changed files with 221 additions and 3 deletions
+3
View File
@@ -12,6 +12,7 @@
disabled?: boolean;
keyShortcuts?: string;
left?: Snippet;
maxlength?: number;
// Lets shortcuts with Mod through while focused, for fields like filters
// that hold nothing worth protecting.
modShortcuts?: boolean;
@@ -37,6 +38,7 @@
disabled = false,
keyShortcuts,
left,
maxlength,
modShortcuts = false,
name,
onDismiss,
@@ -157,6 +159,7 @@
{type}
{name}
{placeholder}
{maxlength}
{disabled}
bind:value
autocomplete="off"