Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
Merge branch 'feat/typescript--select' of github.com:material-compone…
Browse files Browse the repository at this point in the history
…nts/material-components-web into feat/typescript--select
  • Loading branch information
acdvorak committed Feb 9, 2019
2 parents fb0b996 + bc8bf0d commit 7a7d960
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
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 7a7d960

Please sign in to comment.