HEL-842: restore approved library and model connection controls

Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
2026-10-25 00:35:31 +08:00
co-authored by multica-agent
parent 7fbcfad29e
commit 27613336ff
13 changed files with 791 additions and 74 deletions
@@ -9,6 +9,9 @@
size?: 'sm' | 'md' | 'lg';
/** Stretch to the container width (e.g. a panel's main action). */
block?: boolean;
iconOnly?: boolean;
'aria-label'?: string;
'aria-pressed'?: boolean;
disabled?: boolean;
loading?: boolean;
type?: 'button' | 'submit' | 'reset';
@@ -21,6 +24,9 @@
variant = 'secondary',
size = 'md',
block = false,
iconOnly = false,
'aria-label': ariaLabel,
'aria-pressed': ariaPressed,
disabled = false,
loading = false,
type = 'button',
@@ -35,6 +41,9 @@
class="a-btn btn {variant}"
class:sm={size === 'sm'}
class:lg={size === 'lg'}
class:icon-only={iconOnly}
aria-label={ariaLabel ?? (iconOnly ? title : undefined)}
aria-pressed={ariaPressed}
class:block
class:loading
disabled={disabled || loading}
@@ -56,6 +65,13 @@
.btn {
position: relative;
}
.btn.icon-only {
width: var(--button-height, 34px);
padding: 0;
}
.btn.icon-only.sm {
width: var(--button-sm-height, 28px);
}
.btn:disabled {
pointer-events: none;
}