diff --git a/button/_elevated-button.scss b/button/_elevated-button.scss index 355e9140b0..7a6a1c011f 100644 --- a/button/_elevated-button.scss +++ b/button/_elevated-button.scss @@ -3,4 +3,4 @@ // SPDX-License-Identifier: Apache-2.0 // -@forward './internal/elevated-button' show theme; +@forward '../components/button/elevated-button'; diff --git a/button/_filled-button.scss b/button/_filled-button.scss index 30a41885fa..1c68cfdb33 100644 --- a/button/_filled-button.scss +++ b/button/_filled-button.scss @@ -3,4 +3,4 @@ // SPDX-License-Identifier: Apache-2.0 // -@forward './internal/filled-button' show theme; +@forward '../components/button/filled-button'; diff --git a/button/_filled-tonal-button.scss b/button/_filled-tonal-button.scss index e3a7100982..d1f8505364 100644 --- a/button/_filled-tonal-button.scss +++ b/button/_filled-tonal-button.scss @@ -3,4 +3,4 @@ // SPDX-License-Identifier: Apache-2.0 // -@forward './internal/filled-tonal-button' show theme; +@forward '../components/button/filled-tonal-button'; diff --git a/button/_outlined-button.scss b/button/_outlined-button.scss index c88dd6f35c..0524be27c3 100644 --- a/button/_outlined-button.scss +++ b/button/_outlined-button.scss @@ -3,4 +3,4 @@ // SPDX-License-Identifier: Apache-2.0 // -@forward './internal/outlined-button' show theme; +@forward '../components/button/outlined-button'; diff --git a/button/_text-button.scss b/button/_text-button.scss index 52947c3f6c..941c65448c 100644 --- a/button/_text-button.scss +++ b/button/_text-button.scss @@ -3,4 +3,4 @@ // SPDX-License-Identifier: Apache-2.0 // -@forward './internal/text-button' show theme; +@forward '../components/button/text-button'; diff --git a/button/elevated-button.ts b/button/elevated-button.ts index bde0945696..3300393a1a 100644 --- a/button/elevated-button.ts +++ b/button/elevated-button.ts @@ -4,47 +4,4 @@ * SPDX-License-Identifier: Apache-2.0 */ -import {CSSResultOrNative} from 'lit'; -import {customElement} from 'lit/decorators.js'; - -import {ElevatedButton} from './internal/elevated-button.js'; -import {styles as elevatedStyles} from './internal/elevated-styles.js'; -import {styles as sharedElevationStyles} from './internal/shared-elevation-styles.js'; -import {styles as sharedStyles} from './internal/shared-styles.js'; - -declare global { - interface HTMLElementTagNameMap { - 'md-elevated-button': MdElevatedButton; - } -} - -/** - * @summary Buttons help people take action, such as sending an email, sharing a - * document, or liking a comment. - * - * @description - * __Emphasis:__ Medium emphasis – For important actions that don’t distract - * from other onscreen elements. - * - * __Rationale:__ Elevated buttons are essentially filled buttons with a lighter - * background color and a shadow. To prevent shadow creep, only use them when - * absolutely necessary, such as when the button requires visual separation from - * a patterned background. - * - * __Example usages:__ - * - Reply - * - View all - * - Add to cart - * - Take out of trash - * - * @final - * @suppress {visibility} - */ -@customElement('md-elevated-button') -export class MdElevatedButton extends ElevatedButton { - static override styles: CSSResultOrNative[] = [ - sharedStyles, - sharedElevationStyles, - elevatedStyles, - ]; -} +export * from '../components/button/elevated-button.js'; diff --git a/button/filled-button.ts b/button/filled-button.ts index 6bc04686e8..b19eaf6014 100644 --- a/button/filled-button.ts +++ b/button/filled-button.ts @@ -4,45 +4,4 @@ * SPDX-License-Identifier: Apache-2.0 */ -import {CSSResultOrNative} from 'lit'; -import {customElement} from 'lit/decorators.js'; - -import {FilledButton} from './internal/filled-button.js'; -import {styles as filledStyles} from './internal/filled-styles.js'; -import {styles as sharedElevationStyles} from './internal/shared-elevation-styles.js'; -import {styles as sharedStyles} from './internal/shared-styles.js'; - -declare global { - interface HTMLElementTagNameMap { - 'md-filled-button': MdFilledButton; - } -} - -/** - * @summary Buttons help people take action, such as sending an email, sharing a - * document, or liking a comment. - * - * @description - * __Emphasis:__ High emphasis – For the primary, most important, or most common - * action on a screen - * - * __Rationale:__ The filled button’s contrasting surface color makes it the - * most prominent button after the FAB. It’s used for final or unblocking - * actions in a flow. - * - * __Example usages:__ - * - Save - * - Confirm - * - Done - * - * @final - * @suppress {visibility} - */ -@customElement('md-filled-button') -export class MdFilledButton extends FilledButton { - static override styles: CSSResultOrNative[] = [ - sharedStyles, - sharedElevationStyles, - filledStyles, - ]; -} +export * from '../components/button/filled-button.js'; diff --git a/button/filled-tonal-button.ts b/button/filled-tonal-button.ts index fe71e14fb9..933495c2fa 100644 --- a/button/filled-tonal-button.ts +++ b/button/filled-tonal-button.ts @@ -4,46 +4,4 @@ * SPDX-License-Identifier: Apache-2.0 */ -import {CSSResultOrNative} from 'lit'; -import {customElement} from 'lit/decorators.js'; - -import {FilledTonalButton} from './internal/filled-tonal-button.js'; -import {styles as tonalStyles} from './internal/filled-tonal-styles.js'; -import {styles as sharedElevationStyles} from './internal/shared-elevation-styles.js'; -import {styles as sharedStyles} from './internal/shared-styles.js'; - -declare global { - interface HTMLElementTagNameMap { - 'md-filled-tonal-button': MdFilledTonalButton; - } -} - -/** - * @summary Buttons help people take action, such as sending an email, sharing a - * document, or liking a comment. - * - * @description - * __Emphasis:__ Medium emphasis – For important actions that don’t distract - * from other onscreen elements. - * - * __Rationale:__ Filled tonal buttons have a lighter background color and - * darker label color, making them less visually prominent than a regular, - * filled button. They’re still used for final or unblocking actions in a flow, - * but do so with less emphasis. - * - * __Example usages:__ - * - Save - * - Confirm - * - Done - * - * @final - * @suppress {visibility} - */ -@customElement('md-filled-tonal-button') -export class MdFilledTonalButton extends FilledTonalButton { - static override styles: CSSResultOrNative[] = [ - sharedStyles, - sharedElevationStyles, - tonalStyles, - ]; -} +export * from '../components/button/filled-tonal-button.js'; diff --git a/button/harness.ts b/button/harness.ts index d7268aeb16..64fca792c8 100644 --- a/button/harness.ts +++ b/button/harness.ts @@ -4,16 +4,4 @@ * SPDX-License-Identifier: Apache-2.0 */ -import {Harness} from '../testing/harness.js'; - -import {Button} from './internal/button.js'; - -/** - * Test harness for buttons. - */ -export class ButtonHarness extends Harness