Skip to content

Commit

Permalink
Merge pull request #2851 from bryceosterhaus/2846
Browse files Browse the repository at this point in the history
chore: go back to using esModuleInterop since it is causing issues for a developer environment for storybook
  • Loading branch information
bryceosterhaus authored Jan 14, 2020
2 parents 67d6a79 + e655dba commit fb9bb2f
Show file tree
Hide file tree
Showing 231 changed files with 268 additions and 268 deletions.
2 changes: 1 addition & 1 deletion packages/clay-alert/src/ToastContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

import classNames from 'classnames';
import * as React from 'react';
import React from 'react';

import {IClayAlertProps} from './index';

Expand Down
4 changes: 2 additions & 2 deletions packages/clay-alert/src/__tests__/ClayAlert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
*/

import ClayAlert from '..';
import * as React from 'react';
import * as TestRenderer from 'react-test-renderer';
import React from 'react';
import TestRenderer from 'react-test-renderer';

describe('ClayAlert', () => {
it('renders', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/clay-alert/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import Icon from '@clayui/icon';
import classNames from 'classnames';
import * as React from 'react';
import React from 'react';

import ToastContainer from './ToastContainer';

Expand Down
2 changes: 1 addition & 1 deletion packages/clay-alert/stories/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import '@clayui/css/lib/css/atlas.css';
const spritemap = require('@clayui/css/lib/images/icons/icons.svg');
import {boolean, select, text} from '@storybook/addon-knobs';
import {storiesOf} from '@storybook/react';
import * as React from 'react';
import React from 'react';

import ClayAlert, {DisplayType} from '../src';

Expand Down
2 changes: 1 addition & 1 deletion packages/clay-autocomplete/src/Context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: BSD-3-Clause
*/

import * as React from 'react';
import React from 'react';

interface IContext {
/**
Expand Down
2 changes: 1 addition & 1 deletion packages/clay-autocomplete/src/DropDown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

import ClayDropDown from '@clayui/drop-down';
import * as React from 'react';
import React from 'react';

import Context from './Context';

Expand Down
2 changes: 1 addition & 1 deletion packages/clay-autocomplete/src/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

import {ClayInput} from '@clayui/form';
import * as React from 'react';
import React from 'react';

import Context from './Context';

Expand Down
4 changes: 2 additions & 2 deletions packages/clay-autocomplete/src/Item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
*/

import ClayDropDown from '@clayui/drop-down';
import * as fuzzy from 'fuzzy';
import * as React from 'react';
import fuzzy from 'fuzzy';
import React from 'react';

export interface IProps extends React.ComponentProps<typeof ClayDropDown.Item> {
innerRef?: React.Ref<HTMLAnchorElement>;
Expand Down
2 changes: 1 addition & 1 deletion packages/clay-autocomplete/src/LoadingIndicator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import {ClayInput} from '@clayui/form';
import ClayLoadingIndicator from '@clayui/loading-indicator';
import * as React from 'react';
import React from 'react';

import Context from './Context';

Expand Down
2 changes: 1 addition & 1 deletion packages/clay-autocomplete/src/__tests__/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import ClayAutocomplete from '..';
import {cleanup, render} from '@testing-library/react';
import * as React from 'react';
import React from 'react';

import Context from '../Context';

Expand Down
2 changes: 1 addition & 1 deletion packages/clay-autocomplete/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

import {ClayInput} from '@clayui/form';
import * as React from 'react';
import React from 'react';

import Context from './Context';
import DropDown from './DropDown';
Expand Down
2 changes: 1 addition & 1 deletion packages/clay-autocomplete/stories/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {FetchPolicy, NetworkStatus} from '@clayui/data-provider/src/types';
import ClayDropDown from '@clayui/drop-down';
import {FocusScope, useDebounce} from '@clayui/shared';
import {storiesOf} from '@storybook/react';
import * as React from 'react';
import React from 'react';

import ClayAutocomplete from '../src';

Expand Down
4 changes: 2 additions & 2 deletions packages/clay-badge/src/__tests__/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
*/

import ClayBadge from '..';
import * as React from 'react';
import * as TestRenderer from 'react-test-renderer';
import React from 'react';
import TestRenderer from 'react-test-renderer';

describe('ClayBadge', () => {
it('renders', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/clay-badge/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

import classNames from 'classnames';
import * as React from 'react';
import React from 'react';

type DisplayType =
| 'primary'
Expand Down
2 changes: 1 addition & 1 deletion packages/clay-badge/stories/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import '@clayui/css/lib/css/atlas.css';
import {select, text} from '@storybook/addon-knobs';
import {storiesOf} from '@storybook/react';
import * as React from 'react';
import React from 'react';

import ClayBadge from '../src';

Expand Down
2 changes: 1 addition & 1 deletion packages/clay-breadcrumb/src/Ellipsis.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import ClayButton from '@clayui/button';
import ClayDropDown from '@clayui/drop-down';
import ClayIcon from '@clayui/icon';
import * as React from 'react';
import React from 'react';

import Item from './Item';

Expand Down
2 changes: 1 addition & 1 deletion packages/clay-breadcrumb/src/Item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import ClayButton from '@clayui/button';
import classNames from 'classnames';
import * as React from 'react';
import React from 'react';

interface IItem extends React.HTMLAttributes<HTMLLIElement> {
/**
Expand Down
2 changes: 1 addition & 1 deletion packages/clay-breadcrumb/src/__tests__/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import ClayBreadcrumb from '..';
import {cleanup, fireEvent, render} from '@testing-library/react';
import * as React from 'react';
import React from 'react';

describe('ClayBreadcrumb', () => {
afterEach(() => cleanup());
Expand Down
4 changes: 2 additions & 2 deletions packages/clay-breadcrumb/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

import {getEllipsisItems} from '@clayui/shared';
import classNames from 'classnames';
import * as React from 'react';
import * as warning from 'warning';
import React from 'react';
import warning from 'warning';

import Ellipsis from './Ellipsis';
import Item from './Item';
Expand Down
2 changes: 1 addition & 1 deletion packages/clay-breadcrumb/stories/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import '@clayui/css/lib/css/atlas.css';
const spritemap = require('@clayui/css/lib/images/icons/icons.svg');
import {number} from '@storybook/addon-knobs';
import {storiesOf} from '@storybook/react';
import * as React from 'react';
import React from 'react';

import ClayBreadcrumb from '../src';

Expand Down
2 changes: 1 addition & 1 deletion packages/clay-button/src/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

import classNames from 'classnames';
import * as React from 'react';
import React from 'react';

import ButtonGroup from './Group';

Expand Down
2 changes: 1 addition & 1 deletion packages/clay-button/src/ButtonWithIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

import ClayIcon from '@clayui/icon';
import * as React from 'react';
import React from 'react';

import ClayButton from './Button';

Expand Down
2 changes: 1 addition & 1 deletion packages/clay-button/src/Group.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

import classNames from 'classnames';
import * as React from 'react';
import React from 'react';

export interface IButtonGroupProps
extends React.HTMLAttributes<HTMLDivElement> {
Expand Down
4 changes: 2 additions & 2 deletions packages/clay-button/src/__tests__/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
*/

import ClayButton, {ClayButtonWithIcon} from '..';
import * as React from 'react';
import * as TestRenderer from 'react-test-renderer';
import React from 'react';
import TestRenderer from 'react-test-renderer';

describe('ClayButton', () => {
it('renders', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/clay-button/stories/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import '@clayui/css/lib/css/atlas.css';
const spritemap = require('@clayui/css/lib/images/icons/icons.svg');
import {boolean, select, text} from '@storybook/addon-knobs';
import {storiesOf} from '@storybook/react';
import * as React from 'react';
import React from 'react';

import ClayButton, {ClayButtonWithIcon} from '../src';

Expand Down
2 changes: 1 addition & 1 deletion packages/clay-card/src/AspectRatio.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

import classNames from 'classnames';
import * as React from 'react';
import React from 'react';

import Context from './Context';

Expand Down
2 changes: 1 addition & 1 deletion packages/clay-card/src/Body.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

import classNames from 'classnames';
import * as React from 'react';
import React from 'react';

import Context from './Context';

Expand Down
2 changes: 1 addition & 1 deletion packages/clay-card/src/Caption.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

import classNames from 'classnames';
import * as React from 'react';
import React from 'react';

import Context from './Context';

Expand Down
2 changes: 1 addition & 1 deletion packages/clay-card/src/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

import classNames from 'classnames';
import * as React from 'react';
import React from 'react';

import AspectRatio from './AspectRatio';
import Body from './Body';
Expand Down
2 changes: 1 addition & 1 deletion packages/clay-card/src/CardWithHorizontal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {ClayDropDownWithItems} from '@clayui/drop-down';
import {ClayCheckbox} from '@clayui/form';
import ClayIcon from '@clayui/icon';
import ClaySticker from '@clayui/sticker';
import * as React from 'react';
import React from 'react';

import ClayCard from './Card';

Expand Down
2 changes: 1 addition & 1 deletion packages/clay-card/src/CardWithInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import ClayIcon from '@clayui/icon';
import ClayLabel from '@clayui/label';
import ClaySticker from '@clayui/sticker';
import classNames from 'classnames';
import * as React from 'react';
import React from 'react';

import ClayCard from './Card';

Expand Down
2 changes: 1 addition & 1 deletion packages/clay-card/src/CardWithNavigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import ClayIcon from '@clayui/icon';
import ClaySticker from '@clayui/sticker';
import * as React from 'react';
import React from 'react';

import ClayCard from './Card';

Expand Down
2 changes: 1 addition & 1 deletion packages/clay-card/src/CardWithUser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {ClayCheckbox} from '@clayui/form';
import ClayIcon from '@clayui/icon';
import ClayLabel from '@clayui/label';
import ClaySticker, {DisplayType as StickerDisplayType} from '@clayui/sticker';
import * as React from 'react';
import React from 'react';

import ClayCard from './Card';

Expand Down
2 changes: 1 addition & 1 deletion packages/clay-card/src/Context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: BSD-3-Clause
*/

import * as React from 'react';
import React from 'react';

export interface IContext {
/**
Expand Down
2 changes: 1 addition & 1 deletion packages/clay-card/src/Description.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

import classNames from 'classnames';
import * as React from 'react';
import React from 'react';

type CardDescriptionDisplayType = 'text' | 'title' | 'subtitle';

Expand Down
2 changes: 1 addition & 1 deletion packages/clay-card/src/Group.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

import classNames from 'classnames';
import * as React from 'react';
import React from 'react';

interface ICardGroupProps extends React.HTMLAttributes<HTMLUListElement> {
/**
Expand Down
2 changes: 1 addition & 1 deletion packages/clay-card/src/Row.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

import classNames from 'classnames';
import * as React from 'react';
import React from 'react';

import Context from './Context';

Expand Down
2 changes: 1 addition & 1 deletion packages/clay-card/src/__tests__/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import ClayIcon from '@clayui/icon';
import ClayLabel from '@clayui/label';
import ClaySticker from '@clayui/sticker';
import {cleanup, fireEvent, render} from '@testing-library/react';
import * as React from 'react';
import React from 'react';

import ClayCard, {
ClayCardWithHorizontal,
Expand Down
2 changes: 1 addition & 1 deletion packages/clay-card/stories/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import ClayLabel from '@clayui/label';
import ClaySticker from '@clayui/sticker';
import {boolean} from '@storybook/addon-knobs';
import {storiesOf} from '@storybook/react';
import * as React from 'react';
import React from 'react';

import ClayCard, {
ClayCardWithHorizontal,
Expand Down
2 changes: 1 addition & 1 deletion packages/clay-charts/src/BillboardWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

import {bb, ChartOptions} from 'billboard.js';
import * as React from 'react';
import React from 'react';

interface IProps extends ChartOptions {
forwardRef: React.MutableRefObject<any>;
Expand Down
4 changes: 2 additions & 2 deletions packages/clay-charts/src/GeoMap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

import {Grid, PointOptions} from 'billboard.js';
import * as d3 from 'd3';
import d3 from 'd3';

// eslint-disable-next-line liferay/no-duplicate-imports
import {
Expand All @@ -17,7 +17,7 @@ import {
ValueFn,
} from 'd3';
import {FeatureCollection} from 'geojson';
import * as React from 'react';
import React from 'react';

const DEFAULT_COLOR = {
range: {
Expand Down
2 changes: 1 addition & 1 deletion packages/clay-charts/src/Predictive.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

import {Data} from 'billboard.js';
import * as React from 'react';
import React from 'react';

import BillboardWrapper from './BillboardWrapper';

Expand Down
Loading

0 comments on commit fb9bb2f

Please sign in to comment.