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

chore: export constants from index #4593

Merged
merged 18 commits into from
May 15, 2019
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/mdc-checkbox/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@

export * from './adapter';
export * from './component';
export * from './constants';
abhiomkar marked this conversation as resolved.
Show resolved Hide resolved
export * from './foundation';
4 changes: 4 additions & 0 deletions packages/mdc-chips/chip-set/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,8 @@

export * from './adapter';
export * from './component';
export {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another idea would be for all of them do something like: export * as chipSetConstants from './constants';. That way you don't have to rename all the individual symbols.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah I like that idea...I"ll try that out :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think that syntax actually works.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh interesting looks like you're right. I assumed it would since that style syntax works for import. In that case I think you could accomplish the same thing like this:

import * as chipSetConstants from './constants';
export {chipSetConstants};

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah - I did try that but I forgot the *...Not as clean as your original, but better than manually naming everything.

strings as chipSetStrings,
cssClasses as chipSetCssClasses,
} from './constants';
export * from './foundation';
4 changes: 4 additions & 0 deletions packages/mdc-chips/chip/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,9 @@

export * from './adapter';
export * from './component';
export {
strings as chipStrings,
cssClasses as chipCssClasses,
} from './constants';
export * from './foundation';
export * from './types';
1 change: 1 addition & 0 deletions packages/mdc-dialog/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@ import * as util from './util';
export {util};
export * from './adapter';
export * from './component';
export * from './constants';
export * from './foundation';
export * from './types';
1 change: 1 addition & 0 deletions packages/mdc-drawer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@ import * as util from './util';
export {util};
export * from './adapter';
export * from './component';
export * from './constants';
export * from './dismissible/foundation';
export * from './modal/foundation';
1 change: 1 addition & 0 deletions packages/mdc-floating-label/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@

export * from './adapter';
export * from './component';
export * from './constants';
export * from './foundation';
1 change: 1 addition & 0 deletions packages/mdc-form-field/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@

export * from './adapter';
export * from './component';
export * from './constants';
export * from './foundation';
1 change: 1 addition & 0 deletions packages/mdc-grid-list/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@

export * from './adapter';
export * from './component';
export * from './constants';
export * from './foundation';
1 change: 1 addition & 0 deletions packages/mdc-icon-button/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@

export * from './adapter';
export * from './component';
export * from './constants';
export * from './foundation';
export * from './types';
1 change: 1 addition & 0 deletions packages/mdc-line-ripple/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@

export * from './adapter';
export * from './component';
export * from './constants';
export * from './foundation';
1 change: 1 addition & 0 deletions packages/mdc-linear-progress/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@

export * from './adapter';
export * from './component';
export * from './constants';
export * from './foundation';
1 change: 1 addition & 0 deletions packages/mdc-list/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@

export * from './adapter';
export * from './component';
export * from './constants';
export * from './foundation';
export * from './types';
1 change: 1 addition & 0 deletions packages/mdc-menu-surface/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@ export {Corner, CornerBit} from './constants';
export {util};
export * from './adapter';
export * from './component';
export * from './constants';
export * from './foundation';
export * from './types';
1 change: 1 addition & 0 deletions packages/mdc-menu/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@
export {Corner} from '@material/menu-surface/constants'; // for backward compatibility
export * from './adapter';
export * from './component';
export * from './constants';
export * from './foundation';
export * from './types';
1 change: 1 addition & 0 deletions packages/mdc-notched-outline/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@

export * from './adapter';
export * from './component';
export * from './constants';
export * from './foundation';
1 change: 1 addition & 0 deletions packages/mdc-radio/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@

export * from './adapter';
export * from './component';
export * from './constants';
export * from './foundation';
1 change: 1 addition & 0 deletions packages/mdc-ripple/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@ import * as util from './util';
export {util};
export * from './adapter';
export * from './component';
export * from './constants';
export * from './foundation';
export * from './types';
4 changes: 4 additions & 0 deletions packages/mdc-select/helper-text/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,8 @@

export * from './adapter';
export * from './component';
export {
strings as helperTextStrings,
cssClasses as helperTextCssClasses,
} from './constants';
export * from './foundation';
3 changes: 3 additions & 0 deletions packages/mdc-select/icon/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,7 @@

export * from './adapter';
export * from './component';
export {
strings as iconStrings,
} from './constants';
export * from './foundation';
5 changes: 5 additions & 0 deletions packages/mdc-select/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@

export * from './adapter';
export * from './component';
export {
strings as selectStrings,
cssClasses as selectCssClasses,
numbers as selectNumbers,
} from './constants';
export * from './foundation';
export * from './types';
export * from './helper-text/index';
Expand Down
1 change: 1 addition & 0 deletions packages/mdc-slider/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@

export * from './adapter';
export * from './component';
export * from './constants';
export * from './foundation';
1 change: 1 addition & 0 deletions packages/mdc-snackbar/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@ import * as util from './util';
export {util};
export * from './adapter';
export * from './component';
export * from './constants';
export * from './foundation';
export * from './types';
1 change: 1 addition & 0 deletions packages/mdc-switch/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@

export * from './adapter';
export * from './component';
export * from './constants';
export * from './foundation';
1 change: 1 addition & 0 deletions packages/mdc-tab-bar/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@

export * from './adapter';
export * from './component';
export * from './constants';
export * from './foundation';
export * from './types';
1 change: 1 addition & 0 deletions packages/mdc-tab-indicator/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

export * from './adapter';
export * from './component';
export * from './constants';
export * from './foundation';
export * from './fading-foundation';
export * from './sliding-foundation';
1 change: 1 addition & 0 deletions packages/mdc-tab-scroller/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@ import * as util from './util';
export {util};
export * from './adapter';
export * from './component';
export * from './constants';
export * from './foundation';
export * from './types';
1 change: 1 addition & 0 deletions packages/mdc-tab/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@

export * from './adapter';
export * from './component';
export * from './constants';
export * from './foundation';
export * from './types';
4 changes: 4 additions & 0 deletions packages/mdc-tabs/tab-bar-scroller/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,8 @@

export * from './adapter';
export * from './component';
export {
strings as tabScrollerStrings,
cssClasses as tabScrollerCssClasses,
} from './constants';
export * from './foundation';
4 changes: 4 additions & 0 deletions packages/mdc-tabs/tab-bar/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,9 @@

export * from './adapter';
export * from './component';
export {
strings as tabBartrings,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tabBarStrings

cssClasses as tabBarCssClasses,
} from './constants';
export * from './foundation';
export * from './types';
4 changes: 4 additions & 0 deletions packages/mdc-tabs/tab/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,8 @@

export * from './adapter';
export * from './component';
export {
strings as tabStrings,
cssClasses as tabCssClasses,
} from './constants';
export * from './foundation';
4 changes: 4 additions & 0 deletions packages/mdc-textfield/character-counter/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,8 @@

export * from './adapter';
export * from './component';
export {
strings as characterCountStrings,
cssClasses as characterCountCssClasses,
} from './constants';
export * from './foundation';
4 changes: 4 additions & 0 deletions packages/mdc-textfield/helper-text/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,8 @@

export * from './adapter';
export * from './component';
export {
strings as helperTextStrings,
cssClasses as helperTextCssClasses,
} from './constants';
export * from './foundation';
3 changes: 3 additions & 0 deletions packages/mdc-textfield/icon/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,7 @@

export * from './adapter';
export * from './component';
export {
strings as iconStrings,
} from './constants';
export * from './foundation';
5 changes: 5 additions & 0 deletions packages/mdc-textfield/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@

export * from './adapter';
export * from './component';
export {
strings as textFieldStrings,
cssClasses as textFieldCssClasses,
numbers as textFieldNumbers,
} from './constants';
export * from './foundation';
export * from './types';
export * from './character-counter/index';
Expand Down
1 change: 1 addition & 0 deletions packages/mdc-toolbar/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@

export * from './adapter';
export * from './component';
export * from './constants';
export * from './foundation';
export * from './types';
1 change: 1 addition & 0 deletions packages/mdc-top-app-bar/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

export * from './adapter';
export * from './component';
export * from './constants';
export * from './foundation';
export * from './fixed/foundation';
export * from './short/foundation';
Expand Down