import { PropDef, SyElement } from '@sylar_iii/ui'; import { SySeverity } from '@sylar_iii/ui/types'; /** * `solid` filled, `soft` tinted, `outlined` border only, `text` no background, * `neon` glowing outline that lights up (fills) on hover. */ export type SyButtonAppearance = 'solid' | 'soft' | 'outlined' | 'text' | 'neon'; /** Same as a native button: `submit` (default) submits the surrounding form, `reset` resets it. */ export type SyButtonType = 'submit' | 'reset' | 'button'; /** * Button with appearances, tones and a ripple: `Save`. * Form-associated, so it submits or resets its form like a native button. */ export declare class SyButtonElement extends SyElement { static formAssociated: boolean; static shadowOptions: ShadowRootInit; static props: Record; static styles: string; static get observedAttributes(): string[]; appearance: SyButtonAppearance; severity: SySeverity; ripple: boolean; /** Inactive state. Also set by a disabled `
`. */ disabled: boolean; type: SyButtonType; /** Sent with the form data when this button submits it, like a native submit button. */ name: string; value: string; /** Any CSS color. Overrides severity. */ color: string; textColor: string; /** Background on hover. Defaults to a shade of the tone. */ hoverColor: string; /** CSS background-image, e.g. 'linear-gradient(135deg, #6366f1, #ec4899)'. */ gradient: string; padding: string; radius: string; /** CSS box-shadow. */ shadow: string; private readonly _internals; private readonly _button; private _formDisabled; /** The form this button submits or resets, if any. */ get form(): HTMLFormElement | null; attributeChangedCallback(attr: string, old: string | null, value: string | null): void; formDisabledCallback(disabled: boolean): void; protected render(root: ShadowRoot): void; protected update(): void; private _activate; private _addRipple; private _var; } declare global { interface HTMLElementTagNameMap { 'sy-button': SyButtonElement; } }