From 5618b5e23f8dc6ad3e9b4625d7172d6f3f4a1bfd Mon Sep 17 00:00:00 2001 From: Andrew Jakubowicz Date: Fri, 21 Jul 2023 13:39:54 -0700 Subject: [PATCH] fix(fab)!: rename "lib" directory to "internal" BREAKING CHANGE: Rename `@material/web/fab/lib` to `@material/web/fab/internal`. Prefer not using internal files. PiperOrigin-RevId: 550038346 --- fab/_fab.scss | 4 ++-- fab/branded-fab.ts | 10 +++++----- fab/fab.ts | 12 ++++++------ fab/harness.ts | 2 +- fab/{lib => internal}/_fab-branded.scss | 0 fab/{lib => internal}/_fab.scss | 0 fab/{lib => internal}/_shared.scss | 0 fab/{lib => internal}/fab-branded-styles.scss | 0 fab/{lib => internal}/fab-styles.scss | 0 fab/{lib => internal}/fab.ts | 0 fab/{lib => internal}/forced-colors-styles.scss | 0 fab/{lib => internal}/shared-styles.scss | 0 fab/{lib => internal}/shared.ts | 0 13 files changed, 14 insertions(+), 14 deletions(-) rename fab/{lib => internal}/_fab-branded.scss (100%) rename fab/{lib => internal}/_fab.scss (100%) rename fab/{lib => internal}/_shared.scss (100%) rename fab/{lib => internal}/fab-branded-styles.scss (100%) rename fab/{lib => internal}/fab-styles.scss (100%) rename fab/{lib => internal}/fab.ts (100%) rename fab/{lib => internal}/forced-colors-styles.scss (100%) rename fab/{lib => internal}/shared-styles.scss (100%) rename fab/{lib => internal}/shared.ts (100%) diff --git a/fab/_fab.scss b/fab/_fab.scss index 7637f01234..ecfc1e5f4b 100644 --- a/fab/_fab.scss +++ b/fab/_fab.scss @@ -3,5 +3,5 @@ // SPDX-License-Identifier: Apache-2.0 // -@forward './lib/fab-branded' as branded-* show branded-theme; -@forward './lib/fab' show theme; +@forward './internal/fab-branded' as branded-* show branded-theme; +@forward './internal/fab' show theme; diff --git a/fab/branded-fab.ts b/fab/branded-fab.ts index 343a53afef..9f87feee26 100644 --- a/fab/branded-fab.ts +++ b/fab/branded-fab.ts @@ -6,12 +6,12 @@ import {customElement} from 'lit/decorators.js'; -import {Fab, FabVariant} from './lib/fab.js'; -import {styles} from './lib/fab-branded-styles.css.js'; -import {styles as forcedColors} from './lib/forced-colors-styles.css.js'; -import {styles as sharedStyles} from './lib/shared-styles.css.js'; +import {Fab, FabVariant} from './internal/fab.js'; +import {styles} from './internal/fab-branded-styles.css.js'; +import {styles as forcedColors} from './internal/forced-colors-styles.css.js'; +import {styles as sharedStyles} from './internal/shared-styles.css.js'; -export {FabSize} from './lib/shared.js'; +export {FabSize} from './internal/shared.js'; declare global { interface HTMLElementTagNameMap { diff --git a/fab/fab.ts b/fab/fab.ts index b1f20fd1de..62410bc5fd 100644 --- a/fab/fab.ts +++ b/fab/fab.ts @@ -6,13 +6,13 @@ import {customElement} from 'lit/decorators.js'; -import {Fab} from './lib/fab.js'; -import {styles} from './lib/fab-styles.css.js'; -import {styles as forcedColors} from './lib/forced-colors-styles.css.js'; -import {styles as sharedStyles} from './lib/shared-styles.css.js'; +import {Fab} from './internal/fab.js'; +import {styles} from './internal/fab-styles.css.js'; +import {styles as forcedColors} from './internal/forced-colors-styles.css.js'; +import {styles as sharedStyles} from './internal/shared-styles.css.js'; -export {FabVariant} from './lib/fab.js'; -export {FabSize} from './lib/shared.js'; +export {FabVariant} from './internal/fab.js'; +export {FabSize} from './internal/shared.js'; declare global { interface HTMLElementTagNameMap { diff --git a/fab/harness.ts b/fab/harness.ts index 268874d801..1999647133 100644 --- a/fab/harness.ts +++ b/fab/harness.ts @@ -6,7 +6,7 @@ import {Harness} from '../testing/harness.js'; -import {Fab} from './lib/fab.js'; +import {Fab} from './internal/fab.js'; /** * Test harness for floating action buttons. diff --git a/fab/lib/_fab-branded.scss b/fab/internal/_fab-branded.scss similarity index 100% rename from fab/lib/_fab-branded.scss rename to fab/internal/_fab-branded.scss diff --git a/fab/lib/_fab.scss b/fab/internal/_fab.scss similarity index 100% rename from fab/lib/_fab.scss rename to fab/internal/_fab.scss diff --git a/fab/lib/_shared.scss b/fab/internal/_shared.scss similarity index 100% rename from fab/lib/_shared.scss rename to fab/internal/_shared.scss diff --git a/fab/lib/fab-branded-styles.scss b/fab/internal/fab-branded-styles.scss similarity index 100% rename from fab/lib/fab-branded-styles.scss rename to fab/internal/fab-branded-styles.scss diff --git a/fab/lib/fab-styles.scss b/fab/internal/fab-styles.scss similarity index 100% rename from fab/lib/fab-styles.scss rename to fab/internal/fab-styles.scss diff --git a/fab/lib/fab.ts b/fab/internal/fab.ts similarity index 100% rename from fab/lib/fab.ts rename to fab/internal/fab.ts diff --git a/fab/lib/forced-colors-styles.scss b/fab/internal/forced-colors-styles.scss similarity index 100% rename from fab/lib/forced-colors-styles.scss rename to fab/internal/forced-colors-styles.scss diff --git a/fab/lib/shared-styles.scss b/fab/internal/shared-styles.scss similarity index 100% rename from fab/lib/shared-styles.scss rename to fab/internal/shared-styles.scss diff --git a/fab/lib/shared.ts b/fab/internal/shared.ts similarity index 100% rename from fab/lib/shared.ts rename to fab/internal/shared.ts