Skip to content

Commit

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

PiperOrigin-RevId: 550049784
  • Loading branch information
AndrewJakubowicz authored and copybara-github committed Jul 21, 2023
1 parent 7fc17c9 commit dac3639
Show file tree
Hide file tree
Showing 21 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion field/_filled-field.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-field' show theme;
@forward './internal/filled-field' show theme;
2 changes: 1 addition & 1 deletion field/_outlined-field.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-field' show theme;
@forward './internal/outlined-field' show theme;
6 changes: 3 additions & 3 deletions field/filled-field.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

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

import {FilledField} from './lib/filled-field.js';
import {styles as filledStyles} from './lib/filled-styles.css.js';
import {styles as sharedStyles} from './lib/shared-styles.css.js';
import {FilledField} from './internal/filled-field.js';
import {styles as filledStyles} from './internal/filled-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 field/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 {Field} from './lib/field.js';
import {Field} from './internal/field.js';

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

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

import {OutlinedField} from './lib/outlined-field.js';
import {styles as outlinedStyles} from './lib/outlined-styles.css.js';
import {styles as sharedStyles} from './lib/shared-styles.css.js';
import {OutlinedField} from './internal/outlined-field.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 select/harness.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import {LitElement} from 'lit';

import {FieldHarness} from '../field/harness.js';
import {Field} from '../field/lib/field.js';
import {Field} from '../field/internal/field.js';
import {Harness} from '../testing/harness.js';

import {Select} from './lib/select.js';
Expand Down
2 changes: 1 addition & 1 deletion select/lib/select.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {property, query, queryAssignedElements, state} from 'lit/decorators.js';
import {classMap} from 'lit/directives/class-map.js';
import {html as staticHtml, StaticValue} from 'lit/static-html.js';

import {Field} from '../../field/lib/field.js';
import {Field} from '../../field/internal/field.js';
import {List} from '../../list/lib/list.js';
import {DEFAULT_TYPEAHEAD_BUFFER_TIME, Menu} from '../../menu/lib/menu.js';
import {DefaultCloseMenuEvent, isElementInSubtree, isSelectableKey} from '../../menu/lib/shared.js';
Expand Down
2 changes: 1 addition & 1 deletion textfield/lib/text-field.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {live} from 'lit/directives/live.js';
import {styleMap} from 'lit/directives/style-map.js';
import {html as staticHtml, StaticValue} from 'lit/static-html.js';

import {Field} from '../../field/lib/field.js';
import {Field} from '../../field/internal/field.js';
import {ARIAMixinStrict} from '../../internal/aria/aria.js';
import {requestUpdateOnAriaChange} from '../../internal/aria/delegate.js';
import {redispatchEvent} from '../../internal/controller/events.js';
Expand Down

0 comments on commit dac3639

Please sign in to comment.