Skip to content

Commit

Permalink
WIP: Fix compiler errors
Browse files Browse the repository at this point in the history
  • Loading branch information
acdvorak committed Feb 9, 2019
1 parent 135e09d commit bc8bf0d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/mdc-select/foundation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<MDCSelectAdapter> {
static get cssClasses() {
Expand Down
3 changes: 1 addition & 2 deletions packages/mdc-select/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ import {MDCSelectHelperText} from './helper-text';
import {MDCSelectIcon} from './icon';
import {
FoundationMapType,
HelperTextFactory,
IconFactory,
HelperTextFactory, IconFactory,
LabelFactory,
LineRippleFactory, MenuFactory,
OutlineFactory, SelectEventDetail,
Expand Down
1 change: 1 addition & 0 deletions packages/mdc-select/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
12 changes: 5 additions & 7 deletions packages/mdc-select/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<SelectEventDetail>;

export interface SelectEventDetail {
value: string;
Expand All @@ -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;

0 comments on commit bc8bf0d

Please sign in to comment.