mirror of
https://github.com/material-components/material-web.git
synced 2024-08-16 17:10:22 +03:00
fix(list)!: rename "lib" directory to "internal"
BREAKING CHANGE: Rename `@material/web/list/lib` to `@material/web/list/internal`. Prefer not using internal files. PiperOrigin-RevId: 550585246
This commit is contained in:
parent
77110d7c8e
commit
c6e6f65445
@ -3,4 +3,4 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
|
||||
@forward './lib/listitem/list-item' show theme;
|
||||
@forward './internal/listitem/list-item' show theme;
|
||||
|
@ -3,4 +3,4 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
|
||||
@forward './lib/list' show theme;
|
||||
@forward './internal/list' show theme;
|
||||
|
@ -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',
|
||||
|
@ -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 {
|
||||
|
@ -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 {
|
||||
|
@ -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 {
|
||||
|
@ -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';
|
||||
|
@ -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.
|
||||
|
@ -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}
|
||||
|
@ -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';
|
||||
|
||||
/**
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
@ -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';
|
||||
|
@ -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';
|
||||
|
||||
|
||||
|
@ -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 {
|
||||
|
@ -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';
|
||||
|
||||
|
@ -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 {
|
||||
|
@ -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';
|
||||
|
@ -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.
|
||||
|
@ -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';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user