Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion .storybook/BaseDecorator.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* This decorator acts as a base decorator for all stories.
*/
import React from 'react'
import * as React from 'react'

export default (Story) => Story()
2 changes: 1 addition & 1 deletion src/components/color-picker/color-picker.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react'
import * as React from 'react'

import { ColorPicker, ColorItem } from './color-picker'
import { render, screen } from '@testing-library/react'
Expand Down
2 changes: 1 addition & 1 deletion src/components/color-picker/color-picker.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react'
import * as React from 'react'
import classnames from 'classnames'

import DeprecatedDropdown from '../deprecated-dropdown'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react'
import * as React from 'react'
import userEvent from '@testing-library/user-event'
import { render, screen } from '@testing-library/react'

Expand Down
2 changes: 1 addition & 1 deletion src/components/deprecated-button/deprecated-button.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react'
import * as React from 'react'
import classNames from 'classnames'

import { Tooltip } from '../tooltip'
Expand Down
2 changes: 1 addition & 1 deletion src/components/deprecated-dropdown/dropdown.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react'
import * as React from 'react'

import { Dropdown } from './dropdown'
import { render, screen } from '@testing-library/react'
Expand Down
2 changes: 1 addition & 1 deletion src/components/deprecated-dropdown/dropdown.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react'
import * as React from 'react'
import ReactDOM from 'react-dom'
import classNames from 'classnames'

Expand Down
2 changes: 1 addition & 1 deletion src/components/deprecated-input/input.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react'
import * as React from 'react'

import { Input } from './input'
import { render, screen } from '@testing-library/react'
Expand Down
2 changes: 1 addition & 1 deletion src/components/deprecated-input/input.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react'
import * as React from 'react'
import classNames from 'classnames'

import './input.less'
Expand Down
2 changes: 1 addition & 1 deletion src/components/deprecated-select/select.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react'
import * as React from 'react'

import { Select } from './select'
import { render, screen } from '@testing-library/react'
Expand Down
2 changes: 1 addition & 1 deletion src/components/deprecated-select/select.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react'
import * as React from 'react'
import classNames from 'classnames'

import './select.less'
Expand Down
2 changes: 1 addition & 1 deletion src/components/icons/CloseIcon.svg.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react'
import * as React from 'react'

const CloseIcon = () => (
<svg width="24" height="24" viewBox="0 0 24 24">
Expand Down
2 changes: 1 addition & 1 deletion src/components/icons/ThinQuestionMarkIcon.svg.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react'
import * as React from 'react'

const ThinQuestionMark = () => (
<svg width="18px" height="18px" viewBox="0 0 18 18">
Expand Down
2 changes: 1 addition & 1 deletion src/components/icons/ThreeDotsIcon.svg.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react'
import * as React from 'react'
import PropTypes from 'prop-types'

const ThreeDotsIcon = ({ color = '#A5A5A5' }) => (
Expand Down
2 changes: 1 addition & 1 deletion src/components/icons/__tests__/CloseIcon.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react'
import * as React from 'react'
import { render } from '@testing-library/react'

import CloseIcon from '../CloseIcon.svg'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react'
import * as React from 'react'
import { render } from '@testing-library/react'

import ThinQuestionMarkIcon from '../ThinQuestionMarkIcon.svg'
Expand Down
2 changes: 1 addition & 1 deletion src/components/icons/__tests__/ThreeDotsIcon.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react'
import * as React from 'react'
import { render } from '@testing-library/react'

import ThreeDotsIcon from '../ThreeDotsIcon.svg'
Expand Down
2 changes: 1 addition & 1 deletion src/components/menu/menu.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react'
import * as React from 'react'
import { action } from '@storybook/addon-actions'
import KeyboardShortcut from '../keyboard-shortcut'
import { Button } from '../../new-components/button'
Expand Down
2 changes: 1 addition & 1 deletion src/components/notification/notification.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react'
import * as React from 'react'
import classNames from 'classnames'
import CloseIcon from '../icons/CloseIcon.svg'
import './notification.less'
Expand Down
2 changes: 1 addition & 1 deletion src/components/progress-bar/progress-bar.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react'
import * as React from 'react'
import { render, screen } from '@testing-library/react'
import { axe } from 'jest-axe'
import { ProgressBar } from './progress-bar'
Expand Down
2 changes: 1 addition & 1 deletion src/components/progress-bar/progress-bar.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react'
import * as React from 'react'
import { HiddenVisually } from '../../new-components/hidden-visually'
import classNames from 'classnames'

Expand Down
2 changes: 1 addition & 1 deletion src/components/time/time.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import dayjs from 'dayjs'
import React from 'react'
import * as React from 'react'
import { render, screen, waitFor } from '@testing-library/react'
import { axe } from 'jest-axe'

Expand Down
2 changes: 1 addition & 1 deletion src/components/time/time.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react'
import * as React from 'react'

import { Tooltip } from '../tooltip'
import { TimeUtils, TimeConfig } from './time-utils'
Expand Down
2 changes: 1 addition & 1 deletion src/components/tooltip/tooltip.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react'
import * as React from 'react'
import { render, screen, act } from '@testing-library/react'
import { axe } from 'jest-axe'
import userEvent from '@testing-library/user-event'
Expand Down
2 changes: 1 addition & 1 deletion src/components/tooltip/tooltip.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react'
import * as React from 'react'
import classNames from 'classnames'

import {
Expand Down
2 changes: 1 addition & 1 deletion src/new-components/avatar/avatar.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { render, screen } from '@testing-library/react'
import React from 'react'
import * as React from 'react'

import { Avatar } from './avatar'

Expand Down
2 changes: 1 addition & 1 deletion src/new-components/avatar/avatar.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react'
import * as React from 'react'

import { getInitials, emailToIndex } from './utils'

Expand Down
2 changes: 1 addition & 1 deletion src/new-components/heading/heading.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react'
import * as React from 'react'

import { Stack } from '../stack'
import { Heading } from './heading'
Expand Down
2 changes: 1 addition & 1 deletion src/new-components/loading/loading.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react'
import * as React from 'react'
import { Box } from '../box'
import { Spinner } from '../spinner'

Expand Down
2 changes: 1 addition & 1 deletion src/new-components/text/text.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react'
import * as React from 'react'

import { Stack } from '../stack'
import { Text } from './text'
Expand Down
2 changes: 1 addition & 1 deletion stories/components/Avatar.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import './styles/avatar_story.less'

import React from 'react'
import * as React from 'react'
import { withKnobs } from '@storybook/addon-knobs'

import { Avatar, Box, Inline } from '../../src'
Expand Down
2 changes: 1 addition & 1 deletion stories/components/Dropdown.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react'
import * as React from 'react'

import Button from '../../src/components/deprecated-button'
import Dropdown from '../../src/components/deprecated-dropdown'
Expand Down
2 changes: 1 addition & 1 deletion stories/components/Input.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react'
import * as React from 'react'

import Input from '../../src/components/deprecated-input'
import { Alert } from '../../src/new-components/alert'
Expand Down
2 changes: 1 addition & 1 deletion stories/components/KeyboardShortcut.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react'
import * as React from 'react'
import { text } from '@storybook/addon-knobs'

import '../../src/components/keyboard-shortcut/keyboard-shortcut.less'
Expand Down
2 changes: 1 addition & 1 deletion stories/components/Notification.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react'
import * as React from 'react'
import { action } from '@storybook/addon-actions'

import { Box } from '../../src/new-components/box'
Expand Down
2 changes: 1 addition & 1 deletion stories/components/ProgressBar.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import './styles/progressbar_story.less'

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

import ProgressBar from '../../src/components/progress-bar'

Expand Down
2 changes: 1 addition & 1 deletion stories/components/Time.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import './styles/time_story.less'

import React from 'react'
import * as React from 'react'
import dayjs from 'dayjs'

import Time from '../../src/components/time'
Expand Down
2 changes: 1 addition & 1 deletion stories/components/Tooltip.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import './styles/tooltip_story.less'

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

import { Tooltip, TooltipProps } from '../../src/components/tooltip'
import Button from '../../src/components/deprecated-button'
Expand Down
2 changes: 1 addition & 1 deletion stories/components/color.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react'
import * as React from 'react'

import { Columns, Column } from '../../src/new-components/columns'
import { Stack } from '../../src/new-components/stack'
Expand Down