Skip to content

Commit

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

PiperOrigin-RevId: 550585246
  • Loading branch information
AndrewJakubowicz authored and copybara-github committed Jul 24, 2023
1 parent 77110d7 commit c6e6f65
Show file tree
Hide file tree
Showing 31 changed files with 37 additions and 37 deletions.
2 changes: 1 addition & 1 deletion list/_list-item.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/listitem/list-item' show theme;
@forward './internal/listitem/list-item' show theme;
2 changes: 1 addition & 1 deletion list/_list.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/list' show theme;
@forward './internal/list' show theme;
8 changes: 4 additions & 4 deletions list/harness.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@

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

import {List} from './lib/list.js';
import {ListItemHarness} from './lib/listitem/harness.js';
import {ListItemEl} from './lib/listitem/list-item.js';
import {List} from './internal/list.js';
import {ListItemHarness} from './internal/listitem/harness.js';
import {ListItemEl} from './internal/listitem/list-item.js';

export {ListItemHarness} from './lib/listitem/harness.js';
export {ListItemHarness} from './internal/listitem/harness.js';

const NAVIGABLE_KEYS = {
'ArrowDown': 'ArrowDown',
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.
6 changes: 3 additions & 3 deletions list/list-item-link.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 forcedColors} from './lib/listitem/forced-colors-styles.css.js';
import {styles} from './lib/listitem/list-item-styles.css.js';
import {ListItemLinkOnly as ListItemLink} from './lib/listitemlink/list-item-link-only.js';
import {styles as forcedColors} from './internal/listitem/forced-colors-styles.css.js';
import {styles} from './internal/listitem/list-item-styles.css.js';
import {ListItemLinkOnly as ListItemLink} from './internal/listitemlink/list-item-link-only.js';

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

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

import {styles as forcedColors} from './lib/listitem/forced-colors-styles.css.js';
import {ListItemOnly as ListItem} from './lib/listitem/list-item-only.js';
import {styles} from './lib/listitem/list-item-styles.css.js';
import {styles as forcedColors} from './internal/listitem/forced-colors-styles.css.js';
import {ListItemOnly as ListItem} from './internal/listitem/list-item-only.js';
import {styles} from './internal/listitem/list-item-styles.css.js';

export {ListItemRole} from './lib/listitem/list-item.js';
export {ListItemRole} from './internal/listitem/list-item.js';

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

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

import {List} from './lib/list.js';
import {styles} from './lib/list-styles.css.js';
import {List} from './internal/list.js';
import {styles} from './internal/list-styles.css.js';

declare global {
interface HTMLElementTagNameMap {
Expand Down
2 changes: 1 addition & 1 deletion menu/lib/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {styleMap} from 'lit/directives/style-map.js';
import {ARIAMixinStrict, ARIARole} from '../../internal/aria/aria.js';
import {requestUpdateOnAriaChange} from '../../internal/aria/delegate.js';
import {createAnimationSignal, EASING} from '../../internal/motion/animation.js';
import {List} from '../../list/lib/list.js';
import {List} from '../../list/internal/list.js';

import {ActivateTypeaheadEvent, DeactivateTypeaheadEvent, isClosableKey, isElementInSubtree, MenuItem} from './shared.js';
import {Corner, SurfacePositionController, SurfacePositionTarget} from './surfacePositionController.js';
Expand Down
2 changes: 1 addition & 1 deletion menu/lib/menuitem/harness.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

import {ListItemHarness} from '../../../list/lib/listitem/harness.js';
import {ListItemHarness} from '../../../list/internal/listitem/harness.js';

/**
* Test harness for menu item.
Expand Down
4 changes: 2 additions & 2 deletions menu/lib/menuitem/menu-item.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

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

import {ListItemEl, ListItemRole} from '../../../list/lib/listitem/list-item.js';
import {ListItemEl, ListItemRole} from '../../../list/internal/listitem/list-item.js';
import {CLOSE_REASON, DefaultCloseMenuEvent, isClosableKey, MenuItem} from '../shared.js';

export {ListItemRole} from '../../../list/lib/listitem/list-item.js';
export {ListItemRole} from '../../../list/internal/listitem/list-item.js';

/**
* @fires close-menu {CloseMenuEvent}
Expand Down
2 changes: 1 addition & 1 deletion menu/lib/menuitemlink/menu-item-link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

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

import {ListItemLink} from '../../../list/lib/listitemlink/list-item-link.js';
import {ListItemLink} from '../../../list/internal/listitemlink/list-item-link.js';
import {CLOSE_REASON, DefaultCloseMenuEvent, isClosableKey, MenuItem, SELECTION_KEY} from '../shared.js';

/**
Expand Down
2 changes: 1 addition & 1 deletion menu/lib/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

import {ListItem} from '../../list/lib/listitem/list-item.js';
import {ListItem} from '../../list/internal/listitem/list-item.js';

/**
* Interface specific to menu item and not list item.
Expand Down
2 changes: 1 addition & 1 deletion menu/lib/submenuitem/harness.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

import {ListItemHarness} from '../../../list/lib/listitem/harness.js';
import {ListItemHarness} from '../../../list/internal/listitem/harness.js';

/**
* Test harness for menu item.
Expand Down
2 changes: 1 addition & 1 deletion menu/lib/submenuitem/sub-menu-item.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import {html} from 'lit';
import {property, queryAssignedElements} from 'lit/decorators.js';

import {List} from '../../../list/lib/list.js';
import {List} from '../../../list/internal/list.js';
import {Corner, Menu} from '../menu.js';
import {MenuItemEl} from '../menuitem/menu-item.js';
import {ActivateTypeaheadEvent, CLOSE_REASON, CloseMenuEvent, CloseOnFocusoutEvent, DeactivateItemsEvent, DeactivateTypeaheadEvent, KEYDOWN_CLOSE_KEYS, NAVIGABLE_KEY, SELECTION_KEY, StayOpenOnFocusoutEvent} from '../shared.js';
Expand Down
6 changes: 3 additions & 3 deletions menu/menu-item-link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@

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

import {styles as listItemForcedColorsStyles} from '../list/lib/listitem/forced-colors-styles.css.js';
import {styles as listItemStyles} from '../list/lib/listitem/list-item-styles.css.js';
import {styles as listItemForcedColorsStyles} from '../list/internal/listitem/forced-colors-styles.css.js';
import {styles as listItemStyles} from '../list/internal/listitem/list-item-styles.css.js';

import {styles as forcedColorsStyles} from './lib/menuitem/forced-colors-styles.css.js';
import {styles} from './lib/menuitem/menu-item-styles.css.js';
import {MenuItemLink} from './lib/menuitemlink/menu-item-link.js';

export {ListItem} from '../list/lib/listitem/list-item.js';
export {ListItem} from '../list/internal/listitem/list-item.js';
export {CloseMenuEvent, DeactivateItemsEvent, MenuItem} from './lib/shared.js';


Expand Down
6 changes: 3 additions & 3 deletions menu/menu-item.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@

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

import {styles as listItemForcedColorsStyles} from '../list/lib/listitem/forced-colors-styles.css.js';
import {styles as listItemStyles} from '../list/lib/listitem/list-item-styles.css.js';
import {styles as listItemForcedColorsStyles} from '../list/internal/listitem/forced-colors-styles.css.js';
import {styles as listItemStyles} from '../list/internal/listitem/list-item-styles.css.js';

import {styles as forcedColorsStyles} from './lib/menuitem/forced-colors-styles.css.js';
import {MenuItemEl} from './lib/menuitem/menu-item.js';
import {styles} from './lib/menuitem/menu-item-styles.css.js';

export {ListItem} from '../list/lib/listitem/list-item.js';
export {ListItem} from '../list/internal/listitem/list-item.js';
export {CloseMenuEvent, DeactivateItemsEvent, MenuItem} from './lib/shared.js';

declare global {
Expand Down
2 changes: 1 addition & 1 deletion menu/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {styles as forcedColors} from './lib/forced-colors-styles.css.js';
import {Menu} from './lib/menu.js';
import {styles} from './lib/menu-styles.css.js';

export {ListItem} from '../list/lib/listitem/list-item.js';
export {ListItem} from '../list/internal/listitem/list-item.js';
export {Corner, DefaultFocusState} from './lib/menu.js';
export {CloseMenuEvent, DeactivateItemsEvent, MenuItem} from './lib/shared.js';

Expand Down
6 changes: 3 additions & 3 deletions menu/sub-menu-item.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@

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

import {styles as listItemForcedColorsStyles} from '../list/lib/listitem/forced-colors-styles.css.js';
import {styles as listItemStyles} from '../list/lib/listitem/list-item-styles.css.js';
import {styles as listItemForcedColorsStyles} from '../list/internal/listitem/forced-colors-styles.css.js';
import {styles as listItemStyles} from '../list/internal/listitem/list-item-styles.css.js';

import {styles as forcedColorsStyles} from './lib/menuitem/forced-colors-styles.css.js';
import {styles} from './lib/menuitem/menu-item-styles.css.js';
import {SubMenuItem} from './lib/submenuitem/sub-menu-item.js';

export {ListItem} from '../list/lib/listitem/list-item.js';
export {ListItem} from '../list/internal/listitem/list-item.js';
export {CloseMenuEvent, DeactivateItemsEvent, MenuItem} from './lib/shared.js';

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

import {Field} from '../../field/internal/field.js';
import {List} from '../../list/lib/list.js';
import {List} from '../../list/internal/list.js';
import {DEFAULT_TYPEAHEAD_BUFFER_TIME, Menu} from '../../menu/lib/menu.js';
import {DefaultCloseMenuEvent, isElementInSubtree, isSelectableKey} from '../../menu/lib/shared.js';
import {TYPEAHEAD_RECORD} from '../../menu/lib/typeaheadController.js';
Expand Down
2 changes: 1 addition & 1 deletion select/lib/selectoption/harness.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

import {ListItemHarness} from '../../../list/lib/listitem/harness.js';
import {ListItemHarness} from '../../../list/internal/listitem/harness.js';

/**
* Test harness for menu item.
Expand Down
4 changes: 2 additions & 2 deletions select/select-option.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

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

import {styles as listItemForcedColorsStyles} from '../list/lib/listitem/forced-colors-styles.css.js';
import {styles as listItemStyles} from '../list/lib/listitem/list-item-styles.css.js';
import {styles as listItemForcedColorsStyles} from '../list/internal/listitem/forced-colors-styles.css.js';
import {styles as listItemStyles} from '../list/internal/listitem/list-item-styles.css.js';
import {styles as forcedColorsStyles} from '../menu/lib/menuitem/forced-colors-styles.css.js';
import {styles} from '../menu/lib/menuitem/menu-item-styles.css.js';

Expand Down

0 comments on commit c6e6f65

Please sign in to comment.