/** * Copyright 2026 Adobe. All rights reserved. * This file is licensed to you under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. You may obtain a copy * of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS * OF ANY KIND, either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ import { CSSResultArray, PropertyValues, TemplateResult } from '@spectrum-web-components/base'; import { PendingStateController } from '@spectrum-web-components/reactive-controllers/src/PendingState.js'; import { ButtonBase } from './ButtonBase.js'; /** * @deprecated The `DeprecatedButtonVariants` type export is deprecated and will * be removed in a future release. */ export type DeprecatedButtonVariants = 'cta' | 'overBackground'; /** * @deprecated The `ButtonStaticColors` type export is deprecated and will be * removed in a future release. */ export type ButtonStaticColors = 'white' | 'black'; /** * @deprecated The `ButtonVariants` type export is deprecated and will be * removed in a future release. */ export type ButtonVariants = 'accent' | 'primary' | 'secondary' | 'negative' | ButtonStaticColors | DeprecatedButtonVariants; /** * @deprecated The `VALID_VARIANTS` export is deprecated and will be removed * in a future release. */ export declare const VALID_VARIANTS: string[]; /** * @deprecated The `VALID_STATIC_COLORS` export is deprecated and will be * removed in a future release. */ export declare const VALID_STATIC_COLORS: string[]; /** * @deprecated The `ButtonTreatments` type export is deprecated and will be * removed in a future release. */ export type ButtonTreatments = 'fill' | 'outline'; declare const Button_base: typeof ButtonBase & import("@spectrum-web-components/base").Constructor & import("@spectrum-web-components/base").SizedElementConstructor; /** * @element sp-button * * @slot - text label of the Button * @slot icon - The icon to use for Button */ export declare class Button extends Button_base { static get styles(): CSSResultArray; pendingLabel: string; pending: boolean; pendingStateController: PendingStateController; /** * Initializes the `PendingStateController` for the Button component. * The `PendingStateController` manages the pending state of the Button. */ constructor(); click(): void; /** * The visual variant to apply to this button. */ get variant(): ButtonVariants; set variant(variant: ButtonVariants); private _variant; /** * The static color variant to use for this button. */ staticColor?: 'black' | 'white'; /** * The visual treatment to apply to this button. * * @deprecated The `treatment` property is deprecated and will be replaced by * `fill-style` in a future release. */ treatment: ButtonTreatments; /** * Style this button to be less obvious. * * @deprecated The `quiet` property is deprecated and will be removed in a * future release. */ set quiet(quiet: boolean); /** * Disables text wrapping within the button component's label. * Please note that this option is not a part of the design specification * and should be used carefully, with consideration of this overflow behavior * and the readability of the button's content. * * @deprecated The `no-wrap` attribute is deprecated and will be replaced by * `truncate` in a future release. */ set noWrap(value: boolean); get noWrap(): boolean; private _noWrap; get quiet(): boolean; protected firstUpdated(changes: PropertyValues): void; protected renderButton(): TemplateResult; } export {};