Skip to content

Commit

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

PiperOrigin-RevId: 550633216
  • Loading branch information
AndrewJakubowicz authored and copybara-github committed Jul 24, 2023
1 parent d49f9b8 commit 6ec3f06
Show file tree
Hide file tree
Showing 147 changed files with 94 additions and 94 deletions.
2 changes: 1 addition & 1 deletion docs/components/icon.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ Token | Default value
`--md-icon-size` | `24px`
`--md-icon-weight` | `400`
* [All tokens](https://github.com/material-components/material-web/blob/main/icon/lib/_md-comp-icon.scss)
* [All tokens](https://github.com/material-components/material-web/blob/main/icon/internal/_md-comp-icon.scss)
<!-- {.external} -->
### Example
Expand Down
2 changes: 1 addition & 1 deletion labs/badge/_badge.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
// SPDX-License-Identifier: Apache-2.0
//

@forward './lib/badge' show theme;
@forward './internal/badge' show theme;
4 changes: 2 additions & 2 deletions labs/badge/badge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

import {customElement} from 'lit/decorators.js';

import {Badge} from './lib/badge.js';
import {styles} from './lib/badge-styles.css.js';
import {Badge} from './internal/badge.js';
import {styles} from './internal/badge-styles.css.js';

declare global {
interface HTMLElementTagNameMap {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion labs/navigationbar/_navigation-bar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
// SPDX-License-Identifier: Apache-2.0
//

@forward './lib/navigation-bar' show theme;
@forward './internal/navigation-bar' show theme;
2 changes: 1 addition & 1 deletion labs/navigationbar/harness.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import {Harness} from '../../testing/harness.js';
import {NavigationTabHarness} from '../navigationtab/harness.js';

import {NavigationBar} from './lib/navigation-bar.js';
import {NavigationBar} from './internal/navigation-bar.js';

/**
* Test harness for navigation bars.
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

import {NavigationTabState} from '../../navigationtab/lib/state.js';
import {NavigationTabState} from '../../navigationtab/internal/state.js';

/**
* MDCNavigationTabInteractionEventDetail provides details for the interaction
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {property, queryAssignedElements} from 'lit/decorators.js';
import {ARIAMixinStrict} from '../../../internal/aria/aria.js';
import {requestUpdateOnAriaChange} from '../../../internal/aria/delegate.js';
import {isRtl} from '../../../internal/controller/is-rtl.js';
import {NavigationTab} from '../../navigationtab/lib/navigation-tab.js';
import {NavigationTab} from '../../navigationtab/internal/navigation-tab.js';

import {NavigationTabInteractionEvent} from './constants.js';
import {NavigationBarState} from './state.js';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

import {NavigationTabState} from '../../navigationtab/lib/state.js';
import {NavigationTabState} from '../../navigationtab/internal/state.js';

/**
* The state of a navigation Bar.
Expand Down
4 changes: 2 additions & 2 deletions labs/navigationbar/navigation-bar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

import {customElement} from 'lit/decorators.js';

import {NavigationBar} from './lib/navigation-bar.js';
import {styles} from './lib/navigation-bar-styles.css.js';
import {NavigationBar} from './internal/navigation-bar.js';
import {styles} from './internal/navigation-bar-styles.css.js';

declare global {
interface HTMLElementTagNameMap {
Expand Down
2 changes: 1 addition & 1 deletion labs/navigationdrawer/_navigation-drawer-modal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
// SPDX-License-Identifier: Apache-2.0
//

@forward './lib/navigation-drawer-modal' show theme;
@forward './internal/navigation-drawer-modal' show theme;
2 changes: 1 addition & 1 deletion labs/navigationdrawer/_navigation-drawer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
// SPDX-License-Identifier: Apache-2.0
//

@forward './lib/navigation-drawer' show theme;
@forward './internal/navigation-drawer' show theme;
File renamed without changes.
6 changes: 3 additions & 3 deletions labs/navigationdrawer/navigation-drawer-modal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

import {customElement} from 'lit/decorators.js';

import {NavigationDrawerModal} from './lib/navigation-drawer-modal.js';
import {styles} from './lib/navigation-drawer-modal-styles.css.js';
import {styles as sharedStyles} from './lib/shared-styles.css.js';
import {NavigationDrawerModal} from './internal/navigation-drawer-modal.js';
import {styles} from './internal/navigation-drawer-modal-styles.css.js';
import {styles as sharedStyles} from './internal/shared-styles.css.js';

declare global {
interface HTMLElementTagNameMap {
Expand Down
6 changes: 3 additions & 3 deletions labs/navigationdrawer/navigation-drawer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

import {customElement} from 'lit/decorators.js';

import {NavigationDrawer} from './lib/navigation-drawer.js';
import {styles} from './lib/navigation-drawer-styles.css.js';
import {styles as sharedStyles} from './lib/shared-styles.css.js';
import {NavigationDrawer} from './internal/navigation-drawer.js';
import {styles} from './internal/navigation-drawer-styles.css.js';
import {styles as sharedStyles} from './internal/shared-styles.css.js';

declare global {
interface HTMLElementTagNameMap {
Expand Down
2 changes: 1 addition & 1 deletion labs/navigationtab/_navigation-tab.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
// SPDX-License-Identifier: Apache-2.0
//

@forward './lib/navigation-tab' show theme;
@forward './internal/navigation-tab' show theme;
2 changes: 1 addition & 1 deletion labs/navigationtab/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 {NavigationTab} from './lib/navigation-tab.js';
import {NavigationTab} from './internal/navigation-tab.js';

/**
* Test harness for navigation tab elements.
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions labs/navigationtab/navigation-tab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

import {customElement} from 'lit/decorators.js';

import {NavigationTab} from './lib/navigation-tab.js';
import {styles} from './lib/navigation-tab-styles.css.js';
import {NavigationTab} from './internal/navigation-tab.js';
import {styles} from './internal/navigation-tab-styles.css.js';

declare global {
interface HTMLElementTagNameMap {
Expand Down
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions labs/segmentedbutton/outlined-segmented-button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

import {customElement} from 'lit/decorators.js';

import {OutlinedSegmentedButton} from './lib/outlined-segmented-button.js';
import {styles as outlinedStyles} from './lib/outlined-styles.css.js';
import {styles as sharedStyles} from './lib/shared-styles.css.js';
import {OutlinedSegmentedButton} from './internal/outlined-segmented-button.js';
import {styles as outlinedStyles} from './internal/outlined-styles.css.js';
import {styles as sharedStyles} from './internal/shared-styles.css.js';

declare global {
interface HTMLElementTagNameMap {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {property, queryAssignedElements} from 'lit/decorators.js';

import {ARIAMixinStrict} from '../../../internal/aria/aria.js';
import {requestUpdateOnAriaChange} from '../../../internal/aria/delegate.js';
import {SegmentedButton} from '../../segmentedbutton/lib/segmented-button.js';
import {SegmentedButton} from '../../segmentedbutton/internal/segmented-button.js';

/**
* SegmentedButtonSet is the parent component for two or more
Expand Down
6 changes: 3 additions & 3 deletions labs/segmentedbuttonset/outlined-segmented-button-set.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

import {customElement} from 'lit/decorators.js';

import {OutlinedSegmentedButtonSet} from './lib/outlined-segmented-button-set.js';
import {styles as outlinedStyles} from './lib/outlined-styles.css.js';
import {styles as sharedStyles} from './lib/shared-styles.css.js';
import {OutlinedSegmentedButtonSet} from './internal/outlined-segmented-button-set.js';
import {styles as outlinedStyles} from './internal/outlined-styles.css.js';
import {styles as sharedStyles} from './internal/shared-styles.css.js';

declare global {
interface HTMLElementTagNameMap {
Expand Down
2 changes: 1 addition & 1 deletion progress/_circular-progress.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
// SPDX-License-Identifier: Apache-2.0
//

@forward './lib/circular-progress' show theme;
@forward './internal/circular-progress' show theme;
2 changes: 1 addition & 1 deletion progress/_linear-progress.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
// SPDX-License-Identifier: Apache-2.0
//

@forward './lib/linear-progress' show theme;
@forward './internal/linear-progress' show theme;
4 changes: 2 additions & 2 deletions progress/circular-progress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

import {customElement} from 'lit/decorators.js';

import {CircularProgress} from './lib/circular-progress.js';
import {styles} from './lib/circular-progress-styles.css.js';
import {CircularProgress} from './internal/circular-progress.js';
import {styles} from './internal/circular-progress-styles.css.js';

declare global {
interface HTMLElementTagNameMap {
Expand Down
4 changes: 2 additions & 2 deletions progress/harness.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

import {Harness} from '../testing/harness.js';

import {CircularProgress} from './lib/circular-progress.js';
import {LinearProgress} from './lib/linear-progress.js';
import {CircularProgress} from './internal/circular-progress.js';
import {LinearProgress} from './internal/linear-progress.js';

/**
* Test harness for linear-progress.
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.
4 changes: 2 additions & 2 deletions progress/linear-progress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

import {customElement} from 'lit/decorators.js';

import {LinearProgress} from './lib/linear-progress.js';
import {styles} from './lib/linear-progress-styles.css.js';
import {LinearProgress} from './internal/linear-progress.js';
import {styles} from './internal/linear-progress-styles.css.js';

declare global {
interface HTMLElementTagNameMap {
Expand Down
2 changes: 1 addition & 1 deletion radio/_radio.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
// SPDX-License-Identifier: Apache-2.0
//

@forward './lib/radio' show theme;
@forward './internal/radio' show theme;
2 changes: 1 addition & 1 deletion radio/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 {Radio} from './lib/radio.js';
import {Radio} from './internal/radio.js';

/**
* Test harness for radio.
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions radio/radio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

import {customElement} from 'lit/decorators.js';

import {styles as forcedColorsStyles} from './lib/forced-colors-styles.css.js';
import {Radio} from './lib/radio.js';
import {styles} from './lib/radio-styles.css.js';
import {styles as forcedColorsStyles} from './internal/forced-colors-styles.css.js';
import {Radio} from './internal/radio.js';
import {styles} from './internal/radio-styles.css.js';

declare global {
interface HTMLElementTagNameMap {
Expand Down
2 changes: 1 addition & 1 deletion ripple/_ripple.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
// SPDX-License-Identifier: Apache-2.0
//

@forward './lib/ripple' show theme;
@forward './internal/ripple' show theme;
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions ripple/ripple.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

import {customElement} from 'lit/decorators.js';

import {Ripple} from './lib/ripple.js';
import {styles} from './lib/ripple-styles.css.js';
import {Ripple} from './internal/ripple.js';
import {styles} from './internal/ripple-styles.css.js';

declare global {
interface HTMLElementTagNameMap {
Expand Down
2 changes: 1 addition & 1 deletion select/_filled-select.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
// SPDX-License-Identifier: Apache-2.0
//

@forward './lib/filled-select' show theme;
@forward './internal/filled-select' show theme;
2 changes: 1 addition & 1 deletion select/_outlined-select.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
// SPDX-License-Identifier: Apache-2.0
//

@forward './lib/outlined-select' show theme;
@forward './internal/outlined-select' show theme;
8 changes: 4 additions & 4 deletions select/filled-select.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

import {customElement} from 'lit/decorators.js';

import {styles as filledForcedColorsStyles} from './lib/filled-forced-colors-styles.css.js';
import {FilledSelect} from './lib/filled-select.js';
import {styles} from './lib/filled-select-styles.css.js';
import {styles as sharedStyles} from './lib/shared-styles.css.js';
import {styles as filledForcedColorsStyles} from './internal/filled-forced-colors-styles.css.js';
import {FilledSelect} from './internal/filled-select.js';
import {styles} from './internal/filled-select-styles.css.js';
import {styles as sharedStyles} from './internal/shared-styles.css.js';

declare global {
interface HTMLElementTagNameMap {
Expand Down
4 changes: 2 additions & 2 deletions select/harness.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import {FieldHarness} from '../field/harness.js';
import {Field} from '../field/internal/field.js';
import {Harness} from '../testing/harness.js';

import {Select} from './lib/select.js';
import {SelectOptionHarness} from './lib/selectoption/harness.js';
import {Select} from './internal/select.js';
import {SelectOptionHarness} from './internal/selectoption/harness.js';

/**
* Test harness for menu.
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.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions select/outlined-select.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

import {customElement} from 'lit/decorators.js';

import {styles as outlinedForcedColorsStyles} from './lib/outlined-forced-colors-styles.css.js';
import {OutlinedSelect} from './lib/outlined-select.js';
import {styles} from './lib/outlined-select-styles.css.js';
import {styles as sharedStyles} from './lib/shared-styles.css.js';
import {styles as outlinedForcedColorsStyles} from './internal/outlined-forced-colors-styles.css.js';
import {OutlinedSelect} from './internal/outlined-select.js';
import {styles} from './internal/outlined-select-styles.css.js';
import {styles as sharedStyles} from './internal/shared-styles.css.js';

declare global {
interface HTMLElementTagNameMap {
Expand Down
2 changes: 1 addition & 1 deletion select/select-option.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {styles as forcedColorsStyles} from '../menu/internal/menuitem/forced-col
import {styles} from '../menu/internal/menuitem/menu-item-styles.css.js';

// TODO(b/236285090): update with HCM best practices
import {SelectOptionEl} from './lib/selectoption/select-option.js';
import {SelectOptionEl} from './internal/selectoption/select-option.js';

declare global {
interface HTMLElementTagNameMap {
Expand Down
2 changes: 1 addition & 1 deletion slider/_slider.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
// SPDX-License-Identifier: Apache-2.0
//

@forward './lib/slider' show theme;
@forward './internal/slider' show theme;
2 changes: 1 addition & 1 deletion slider/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 {Slider} from './lib/slider.js';
import {Slider} from './internal/slider.js';

/**
* Test harness for slider.
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions slider/slider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

import {customElement} from 'lit/decorators.js';

import {styles as forcedColorsStyles} from './lib/forced-colors-styles.css.js';
import {Slider} from './lib/slider.js';
import {styles} from './lib/slider-styles.css.js';
import {styles as forcedColorsStyles} from './internal/forced-colors-styles.css.js';
import {Slider} from './internal/slider.js';
import {styles} from './internal/slider-styles.css.js';

declare global {
interface HTMLElementTagNameMap {
Expand Down
2 changes: 1 addition & 1 deletion switch/_switch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
// SPDX-License-Identifier: Apache-2.0
//

@forward './lib/switch' show theme;
@forward './internal/switch' show theme;
2 changes: 1 addition & 1 deletion switch/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 {Switch} from './lib/switch.js';
import {Switch} from './internal/switch.js';

/**
* Test harness for switch elements.
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.
6 changes: 3 additions & 3 deletions switch/switch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

import {customElement} from 'lit/decorators.js';

import {styles as forcedColorsStyles} from './lib/forced-colors-styles.css.js';
import {Switch} from './lib/switch.js';
import {styles} from './lib/switch-styles.css.js';
import {styles as forcedColorsStyles} from './internal/forced-colors-styles.css.js';
import {Switch} from './internal/switch.js';
import {styles} from './internal/switch-styles.css.js';

declare global {
interface HTMLElementTagNameMap {
Expand Down
2 changes: 1 addition & 1 deletion tabs/_tab.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
// SPDX-License-Identifier: Apache-2.0
//

@forward './lib/tab' show theme;
@forward './internal/tab' show theme;
Loading

0 comments on commit 6ec3f06

Please sign in to comment.