Use explicit export

This commit is contained in:
Chi Vinh Le
2018-07-19 20:02:21 -03:00
parent 521af6f0aa
commit 69b459d02b
10 changed files with 15 additions and 16 deletions
@@ -1,2 +1 @@
export * from "./BaseButton";
export { default } from "./BaseButton";
export { default, BaseButtonProps } from "./BaseButton";
+4 -1
View File
@@ -4,6 +4,7 @@ import { StatelessComponent } from "react";
import { pascalCase } from "talk-common/utils";
import { withForwardRef, withStyles } from "talk-ui/hocs";
import { PropTypesOf } from "talk-ui/types";
import * as styles from "./Flex.css";
@@ -75,4 +76,6 @@ Flex.defaultProps = {
alignItems: "center",
};
export default withForwardRef(withStyles(styles)(Flex));
const enhanced = withForwardRef(withStyles(styles)(Flex));
export default enhanced;
export type FlexProps = PropTypesOf<typeof enhanced>;
+1 -2
View File
@@ -1,2 +1 @@
export * from "./Flex";
export { default } from "./Flex";
export { default, FlexProps } from "./Flex";
+1 -2
View File
@@ -1,2 +1 @@
export * from "./Icon";
export { default } from "./Icon";
export { default, IconProps } from "./Icon";
@@ -2,6 +2,8 @@ import React from "react";
import { ReactNode, StatelessComponent } from "react";
import Responsive, { MediaQueryMatchers } from "react-responsive";
import { PropTypesOf } from "talk-ui/types";
import theme from "../../theme/variables";
import UIContext from "../UIContext";
@@ -45,3 +47,4 @@ const MatchMediaWithContext: StatelessComponent<InnerProps> = props => (
);
export default MatchMediaWithContext;
export type MatchMediaProps = PropTypesOf<typeof MatchMediaWithContext>;
@@ -1,2 +1 @@
export * from "./MatchMedia";
export { default } from "./MatchMedia";
export { default, MatchMediaProps } from "./MatchMedia";
@@ -1,2 +1 @@
export * from "./RelativeTime";
export { default } from "./RelativeTime";
export { default, RelativeTimeProps } from "./RelativeTime";
@@ -1,2 +1 @@
export * from "./TrapFocus";
export { default } from "./TrapFocus";
export { default, TrapFocusProps } from "./TrapFocus";
@@ -144,5 +144,5 @@ Typography.defaultProps = {
};
const enhanced = withForwardRef(withStyles(styles)(Typography));
export type CenterProps = PropTypesOf<typeof enhanced>;
export type TypographyProps = PropTypesOf<typeof enhanced>;
export default enhanced;
@@ -1,2 +1 @@
export * from "./Typography";
export { default } from "./Typography";
export { default, TypographyProps } from "./Typography";