diff --git a/packages/mdc-select/foundation.ts b/packages/mdc-select/foundation.ts index b3b5aa93051..4121f5245c9 100644 --- a/packages/mdc-select/foundation.ts +++ b/packages/mdc-select/foundation.ts @@ -25,9 +25,9 @@ import {MDCFoundation} from '@material/base/foundation'; import {MDCSelectAdapter} from './adapter'; import {cssClasses, numbers, strings} from './constants'; -import {FoundationMapType} from './types'; import {MDCSelectHelperTextFoundation} from './helper-text/index'; import {MDCSelectIconFoundation} from './icon/index'; +import {FoundationMapType} from './types'; class MDCSelectFoundation extends MDCFoundation { static get cssClasses() { diff --git a/packages/mdc-select/index.ts b/packages/mdc-select/index.ts index f2ba3552cbc..0a591525f00 100644 --- a/packages/mdc-select/index.ts +++ b/packages/mdc-select/index.ts @@ -36,8 +36,7 @@ import {MDCSelectHelperText} from './helper-text'; import {MDCSelectIcon} from './icon'; import { FoundationMapType, - HelperTextFactory, - IconFactory, + HelperTextFactory, IconFactory, LabelFactory, LineRippleFactory, MenuFactory, OutlineFactory, SelectEventDetail, diff --git a/packages/mdc-select/package.json b/packages/mdc-select/package.json index 8b1aea69fae..dc04d97d69f 100644 --- a/packages/mdc-select/package.json +++ b/packages/mdc-select/package.json @@ -25,6 +25,7 @@ "@material/ripple": "^0.44.0", "@material/rtl": "^0.42.0", "@material/shape": "^0.43.0", + "@material/textfield": "^0.44.0", "@material/theme": "^0.43.0", "@material/typography": "^0.44.0" } diff --git a/packages/mdc-select/types.ts b/packages/mdc-select/types.ts index 977087c54f7..fc260d8764d 100644 --- a/packages/mdc-select/types.ts +++ b/packages/mdc-select/types.ts @@ -25,17 +25,15 @@ import {MDCFloatingLabel} from '@material/floating-label/index'; import {MDCLineRipple} from '@material/line-ripple/index'; import {MDCMenu} from '@material/menu/index'; import {MDCNotchedOutline} from '@material/notched-outline/index'; -import {MDCSelectHelperTextFoundation} from './helper-text/index'; -import {MDCSelectIconFoundation} from './icon/index'; +import {MDCSelectHelperText, MDCSelectHelperTextFoundation} from './helper-text/index'; +import {MDCSelectIcon, MDCSelectIconFoundation} from './icon/index'; export interface FoundationMapType { leadingIcon: MDCSelectIconFoundation; helperText: MDCSelectHelperTextFoundation; } -export interface SelectEvent extends Event { - detail: SelectEventDetail; -} +export type SelectEvent = CustomEvent; export interface SelectEventDetail { value: string; @@ -44,8 +42,8 @@ export interface SelectEventDetail { // TODO(acdvorak): Every component should export its own factory and event types. export type LineRippleFactory = (el: Element) => MDCLineRipple; -export type HelperTextFactory = (el: Element) => MDCTextFieldHelperText; +export type HelperTextFactory = (el: Element) => MDCSelectHelperText; export type MenuFactory = (el: Element) => MDCMenu; -export type IconFactory = (el: Element) => MDCTextFieldIcon; +export type IconFactory = (el: Element) => MDCSelectIcon; export type LabelFactory = (el: Element) => MDCFloatingLabel; export type OutlineFactory = (el: Element) => MDCNotchedOutline;