From 38b1b69a9c0f243836fecc38cae17a237c312313 Mon Sep 17 00:00:00 2001 From: Andrew Jakubowicz Date: Mon, 24 Jul 2023 09:09:37 -0700 Subject: [PATCH] fix(iconbutton)!: rename "lib" directory to "internal" BREAKING CHANGE: Rename `@material/web/iconbutton/lib` to `@material/web/iconbutton/internal`. Prefer not using internal files. PiperOrigin-RevId: 550579461 --- iconbutton/_filled-icon-button.scss | 2 +- iconbutton/_filled-tonal-icon-button.scss | 2 +- iconbutton/_outlined-icon-button.scss | 2 +- iconbutton/_standard-icon-button.scss | 2 +- iconbutton/filled-icon-button.ts | 6 +++--- iconbutton/filled-tonal-icon-button.ts | 6 +++--- iconbutton/harness.ts | 2 +- iconbutton/{lib => internal}/_filled-icon-button.scss | 0 iconbutton/{lib => internal}/_filled-tonal-icon-button.scss | 0 iconbutton/{lib => internal}/_outlined-icon-button.scss | 0 iconbutton/{lib => internal}/_shared.scss | 0 iconbutton/{lib => internal}/_standard-icon-button.scss | 0 iconbutton/{lib => internal}/filled-styles.scss | 0 iconbutton/{lib => internal}/filled-tonal-styles.scss | 0 iconbutton/{lib => internal}/icon-button.ts | 0 iconbutton/{lib => internal}/outlined-styles.scss | 0 iconbutton/{lib => internal}/shared-styles.scss | 0 iconbutton/{lib => internal}/standard-styles.scss | 0 iconbutton/outlined-icon-button.ts | 6 +++--- iconbutton/standard-icon-button.ts | 6 +++--- 20 files changed, 17 insertions(+), 17 deletions(-) rename iconbutton/{lib => internal}/_filled-icon-button.scss (100%) rename iconbutton/{lib => internal}/_filled-tonal-icon-button.scss (100%) rename iconbutton/{lib => internal}/_outlined-icon-button.scss (100%) rename iconbutton/{lib => internal}/_shared.scss (100%) rename iconbutton/{lib => internal}/_standard-icon-button.scss (100%) rename iconbutton/{lib => internal}/filled-styles.scss (100%) rename iconbutton/{lib => internal}/filled-tonal-styles.scss (100%) rename iconbutton/{lib => internal}/icon-button.ts (100%) rename iconbutton/{lib => internal}/outlined-styles.scss (100%) rename iconbutton/{lib => internal}/shared-styles.scss (100%) rename iconbutton/{lib => internal}/standard-styles.scss (100%) diff --git a/iconbutton/_filled-icon-button.scss b/iconbutton/_filled-icon-button.scss index ea9674015b..83acd6dee3 100644 --- a/iconbutton/_filled-icon-button.scss +++ b/iconbutton/_filled-icon-button.scss @@ -3,4 +3,4 @@ // SPDX-License-Identifier: Apache-2.0 // -@forward './lib/filled-icon-button' show theme; +@forward './internal/filled-icon-button' show theme; diff --git a/iconbutton/_filled-tonal-icon-button.scss b/iconbutton/_filled-tonal-icon-button.scss index 5aee1647eb..471b1b34df 100644 --- a/iconbutton/_filled-tonal-icon-button.scss +++ b/iconbutton/_filled-tonal-icon-button.scss @@ -3,4 +3,4 @@ // SPDX-License-Identifier: Apache-2.0 // -@forward './lib/filled-tonal-icon-button' show theme; +@forward './internal/filled-tonal-icon-button' show theme; diff --git a/iconbutton/_outlined-icon-button.scss b/iconbutton/_outlined-icon-button.scss index 87c2bd1845..7bbab7a1a2 100644 --- a/iconbutton/_outlined-icon-button.scss +++ b/iconbutton/_outlined-icon-button.scss @@ -3,4 +3,4 @@ // SPDX-License-Identifier: Apache-2.0 // -@forward './lib/outlined-icon-button' show theme; +@forward './internal/outlined-icon-button' show theme; diff --git a/iconbutton/_standard-icon-button.scss b/iconbutton/_standard-icon-button.scss index cd419c4d75..d9c83ba583 100644 --- a/iconbutton/_standard-icon-button.scss +++ b/iconbutton/_standard-icon-button.scss @@ -3,4 +3,4 @@ // SPDX-License-Identifier: Apache-2.0 // -@forward './lib/standard-icon-button' show theme; +@forward './internal/standard-icon-button' show theme; diff --git a/iconbutton/filled-icon-button.ts b/iconbutton/filled-icon-button.ts index 544ee29003..231f25fedd 100644 --- a/iconbutton/filled-icon-button.ts +++ b/iconbutton/filled-icon-button.ts @@ -6,9 +6,9 @@ import {customElement} from 'lit/decorators.js'; -import {styles} from './lib/filled-styles.css.js'; -import {IconButton} from './lib/icon-button.js'; -import {styles as sharedStyles} from './lib/shared-styles.css.js'; +import {styles} from './internal/filled-styles.css.js'; +import {IconButton} from './internal/icon-button.js'; +import {styles as sharedStyles} from './internal/shared-styles.css.js'; declare global { interface HTMLElementTagNameMap { diff --git a/iconbutton/filled-tonal-icon-button.ts b/iconbutton/filled-tonal-icon-button.ts index 3e4a9c0929..60907a1779 100644 --- a/iconbutton/filled-tonal-icon-button.ts +++ b/iconbutton/filled-tonal-icon-button.ts @@ -6,9 +6,9 @@ import {customElement} from 'lit/decorators.js'; -import {styles} from './lib/filled-tonal-styles.css.js'; -import {IconButton} from './lib/icon-button.js'; -import {styles as sharedStyles} from './lib/shared-styles.css.js'; +import {styles} from './internal/filled-tonal-styles.css.js'; +import {IconButton} from './internal/icon-button.js'; +import {styles as sharedStyles} from './internal/shared-styles.css.js'; declare global { interface HTMLElementTagNameMap { diff --git a/iconbutton/harness.ts b/iconbutton/harness.ts index 4d423dc270..091592c5d4 100644 --- a/iconbutton/harness.ts +++ b/iconbutton/harness.ts @@ -6,7 +6,7 @@ import {Harness} from '../testing/harness.js'; -import {IconButton} from './lib/icon-button.js'; +import {IconButton} from './internal/icon-button.js'; /** * Test harness for icon buttons. diff --git a/iconbutton/lib/_filled-icon-button.scss b/iconbutton/internal/_filled-icon-button.scss similarity index 100% rename from iconbutton/lib/_filled-icon-button.scss rename to iconbutton/internal/_filled-icon-button.scss diff --git a/iconbutton/lib/_filled-tonal-icon-button.scss b/iconbutton/internal/_filled-tonal-icon-button.scss similarity index 100% rename from iconbutton/lib/_filled-tonal-icon-button.scss rename to iconbutton/internal/_filled-tonal-icon-button.scss diff --git a/iconbutton/lib/_outlined-icon-button.scss b/iconbutton/internal/_outlined-icon-button.scss similarity index 100% rename from iconbutton/lib/_outlined-icon-button.scss rename to iconbutton/internal/_outlined-icon-button.scss diff --git a/iconbutton/lib/_shared.scss b/iconbutton/internal/_shared.scss similarity index 100% rename from iconbutton/lib/_shared.scss rename to iconbutton/internal/_shared.scss diff --git a/iconbutton/lib/_standard-icon-button.scss b/iconbutton/internal/_standard-icon-button.scss similarity index 100% rename from iconbutton/lib/_standard-icon-button.scss rename to iconbutton/internal/_standard-icon-button.scss diff --git a/iconbutton/lib/filled-styles.scss b/iconbutton/internal/filled-styles.scss similarity index 100% rename from iconbutton/lib/filled-styles.scss rename to iconbutton/internal/filled-styles.scss diff --git a/iconbutton/lib/filled-tonal-styles.scss b/iconbutton/internal/filled-tonal-styles.scss similarity index 100% rename from iconbutton/lib/filled-tonal-styles.scss rename to iconbutton/internal/filled-tonal-styles.scss diff --git a/iconbutton/lib/icon-button.ts b/iconbutton/internal/icon-button.ts similarity index 100% rename from iconbutton/lib/icon-button.ts rename to iconbutton/internal/icon-button.ts diff --git a/iconbutton/lib/outlined-styles.scss b/iconbutton/internal/outlined-styles.scss similarity index 100% rename from iconbutton/lib/outlined-styles.scss rename to iconbutton/internal/outlined-styles.scss diff --git a/iconbutton/lib/shared-styles.scss b/iconbutton/internal/shared-styles.scss similarity index 100% rename from iconbutton/lib/shared-styles.scss rename to iconbutton/internal/shared-styles.scss diff --git a/iconbutton/lib/standard-styles.scss b/iconbutton/internal/standard-styles.scss similarity index 100% rename from iconbutton/lib/standard-styles.scss rename to iconbutton/internal/standard-styles.scss diff --git a/iconbutton/outlined-icon-button.ts b/iconbutton/outlined-icon-button.ts index c2e7ff9104..e30f9201f6 100644 --- a/iconbutton/outlined-icon-button.ts +++ b/iconbutton/outlined-icon-button.ts @@ -6,9 +6,9 @@ import {customElement} from 'lit/decorators.js'; -import {IconButton} from './lib/icon-button.js'; -import {styles} from './lib/outlined-styles.css.js'; -import {styles as sharedStyles} from './lib/shared-styles.css.js'; +import {IconButton} from './internal/icon-button.js'; +import {styles} from './internal/outlined-styles.css.js'; +import {styles as sharedStyles} from './internal/shared-styles.css.js'; declare global { interface HTMLElementTagNameMap { diff --git a/iconbutton/standard-icon-button.ts b/iconbutton/standard-icon-button.ts index 0a861e6892..bd220316ec 100644 --- a/iconbutton/standard-icon-button.ts +++ b/iconbutton/standard-icon-button.ts @@ -6,9 +6,9 @@ import {customElement} from 'lit/decorators.js'; -import {IconButton} from './lib/icon-button.js'; -import {styles as sharedStyles} from './lib/shared-styles.css.js'; -import {styles} from './lib/standard-styles.css.js'; +import {IconButton} from './internal/icon-button.js'; +import {styles as sharedStyles} from './internal/shared-styles.css.js'; +import {styles} from './internal/standard-styles.css.js'; declare global { interface HTMLElementTagNameMap {