Skip to content

Commit

Permalink
fix(fab)!: rename "lib" directory to "internal"
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Rename `@material/web/fab/lib` to `@material/web/fab/internal`. Prefer not using internal files.

PiperOrigin-RevId: 550038346
  • Loading branch information
AndrewJakubowicz authored and copybara-github committed Jul 21, 2023
1 parent aaa672b commit 5618b5e
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions fab/_fab.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
10 changes: 5 additions & 5 deletions fab/branded-fab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
12 changes: 6 additions & 6 deletions fab/fab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion fab/harness.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 5618b5e

Please sign in to comment.