Skip to content

Commit

Permalink
Commit hard-coded import
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljaltamirano committed Oct 27, 2020
1 parent adccc6f commit 9713df2
Show file tree
Hide file tree
Showing 50 changed files with 64 additions and 64 deletions.
2 changes: 1 addition & 1 deletion .storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { addDecorator, addParameters } from '@storybook/react';
import { INITIAL_VIEWPORTS } from '@storybook/addon-viewport';
import addons from '@storybook/addons';
import { Global, css } from '@emotion/core';
import { ThemeProvider } from 'emotion-theming';
import { ThemeProvider } from 'src/utils/theming/emotionTheming';
import Theme from './theme';
import {
resetStyles,
Expand Down
2 changes: 1 addition & 1 deletion src/shared-components/accordion/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import PropTypes from 'prop-types';
import React, { useEffect, useState, useRef } from 'react';
import ChevronIcon from 'src/svgs/icons/chevron-icon.svg';
import { useTheme } from 'emotion-theming';
import { useTheme } from 'src/utils/theming/emotionTheming';

import Thumbnails from './thumbnails';
import {
Expand Down
2 changes: 1 addition & 1 deletion src/shared-components/accordion/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
ANIMATION, BREAKPOINTS, BOX_SHADOWS, SPACER,
} from 'src/constants';
import { ThemeType } from 'src/constants/themes/types';
import styled from '@emotion/styled';
import styled from 'src/utils/theming/styled';

export const Content = styled.div`
padding: ${SPACER.medium};
Expand Down
2 changes: 1 addition & 1 deletion src/shared-components/accordion/test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import renderer from 'react-test-renderer';
import { shallow } from 'enzyme';
import { ThemeProvider } from 'emotion-theming';
import { ThemeProvider } from 'src/utils/theming/emotionTheming';
import { primaryTheme } from 'src/constants/themes';

import { Accordion } from './index';
Expand Down
2 changes: 1 addition & 1 deletion src/shared-components/accordion/thumbnails/style.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import styled from '@emotion/styled';
import styled from 'src/utils/theming/styled';
import { css } from '@emotion/core';
import { style as TYPOGRAPHY_STYLE } from 'src/shared-components/typography';
import { COLORS, SPACER } from 'src/constants';
Expand Down
2 changes: 1 addition & 1 deletion src/shared-components/alert/style.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import styled from '@emotion/styled';
import styled from 'src/utils/theming/styled';
import { css, keyframes } from '@emotion/core';

import {
Expand Down
2 changes: 1 addition & 1 deletion src/shared-components/avatar/style.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import styled from '@emotion/styled';
import styled from 'src/utils/theming/styled';

import { COLORS } from '../../constants';

Expand Down
2 changes: 1 addition & 1 deletion src/shared-components/banner/style.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import styled from '@emotion/styled';
import styled from 'src/utils/theming/styled';
import { css } from '@emotion/core';
import { buttonReset } from 'src/utils/styles/buttonReset';

Expand Down
4 changes: 2 additions & 2 deletions src/shared-components/button/components/roundButton/style.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import styled from '@emotion/styled';
import styled from 'src/utils/theming/styled';
import { css } from '@emotion/core';
import tinycolor from 'tinycolor2';

Expand Down Expand Up @@ -58,7 +58,7 @@ export const roundButtonLoader = (disabled: boolean) => css`
margin: -3px -3px 0 0;
${disabled &&
`
`
& span {
background-color: ${COLORS.white};
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import styled from '@emotion/styled';
import styled from 'src/utils/theming/styled';

import { BOX_SHADOWS, COLORS, SPACER } from '../../../../constants';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import PropTypes from 'prop-types';
import styled from '@emotion/styled';
import styled from 'src/utils/theming/styled';
import { css } from '@emotion/core';

import { MEDIA_QUERIES, SPACER } from '../../../../constants';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import styled from '@emotion/styled';
import styled from 'src/utils/theming/styled';
import tinycolor from 'tinycolor2';
import { css, keyframes } from '@emotion/core';

Expand Down
2 changes: 1 addition & 1 deletion src/shared-components/button/style.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import styled from '@emotion/styled';
import styled from 'src/utils/theming/styled';
import { css } from '@emotion/core';
import tinycolor from 'tinycolor2';

Expand Down
2 changes: 1 addition & 1 deletion src/shared-components/callout/style.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import styled from '@emotion/styled';
import styled from 'src/utils/theming/styled';

import { COLORS, SPACER, TYPOGRAPHY_CONSTANTS } from '../../constants';

Expand Down
2 changes: 1 addition & 1 deletion src/shared-components/carousel/arrow/style.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import styled from '@emotion/styled';
import styled from 'src/utils/theming/styled';
import { css } from '@emotion/core';

import { COLORS, SPACER, Z_SCALE } from '../../../constants';
Expand Down
2 changes: 1 addition & 1 deletion src/shared-components/carousel/style.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import styled from '@emotion/styled';
import styled from 'src/utils/theming/styled';
import { css } from '@emotion/core';

import { SPACER, COLORS } from '../../constants';
Expand Down
2 changes: 1 addition & 1 deletion src/shared-components/chip/style.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import styled from '@emotion/styled';
import styled from 'src/utils/theming/styled';
import { css } from '@emotion/core';

import { style as TYPOGRAPHY_STYLE } from '../typography';
Expand Down
2 changes: 1 addition & 1 deletion src/shared-components/dialogModal/style.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import styled from '@emotion/styled';
import styled from 'src/utils/theming/styled';

import Typography from '../typography';
import {
Expand Down
2 changes: 1 addition & 1 deletion src/shared-components/dropdown/style.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import styled from '@emotion/styled';
import styled from 'src/utils/theming/styled';
import { css } from '@emotion/core';

import {
Expand Down
2 changes: 1 addition & 1 deletion src/shared-components/field/style.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import styled from '@emotion/styled';
import styled from 'src/utils/theming/styled';
import { css } from '@emotion/core';

import { style as TYPOGRAPHY_STYLE } from '../typography';
Expand Down
2 changes: 1 addition & 1 deletion src/shared-components/immersiveModal/style.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import styled from '@emotion/styled';
import styled from 'src/utils/theming/styled';
import { css } from '@emotion/core';
import { buttonReset } from 'src/utils/styles/buttonReset';

Expand Down
2 changes: 1 addition & 1 deletion src/shared-components/indicator/style.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import styled from '@emotion/styled';
import styled from 'src/utils/theming/styled';

import { style as TYPOGRAPHY_STYLE } from '../typography';
import { COLORS, SPACER, TYPOGRAPHY_CONSTANTS } from '../../constants';
Expand Down
20 changes: 10 additions & 10 deletions src/shared-components/loadingSpinner/style.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import styled from '@emotion/styled';
import styled from 'src/utils/theming/styled';
import { keyframes } from '@emotion/core';

const appPreloader = (translateX: string) => keyframes`
Expand All @@ -18,7 +18,7 @@ export const LoadingSpinnerContainer = styled.div<{ bgColor: string }>`
bottom: 0;
right: 0;
background-color: ${props => props.bgColor};
background-color: ${(props) => props.bgColor};
`;

export const Overlay = styled.div`
Expand All @@ -36,27 +36,27 @@ export const Dot = styled.span<{
size: string;
}>`
display: block;
height: ${props => props.size};
width: ${props => props.size};
height: ${(props) => props.size};
width: ${(props) => props.size};
background-color: ${props => props.color};
background-color: ${(props) => props.color};
border-radius: 50%;
opacity: 0;
animation-name: ${props => appPreloader(props.translateX)};
animation-duration: ${props => props.duration}s;
animation-name: ${(props) => appPreloader(props.translateX)};
animation-duration: ${(props) => props.duration}s;
animation-iteration-count: infinite;
animation-timing-function: ease-in-out;
&:nth-of-type(1) {
animation-delay: ${props => (-props.duration * 3) / 4}s;
animation-delay: ${(props) => (-props.duration * 3) / 4}s;
}
&:nth-of-type(2) {
animation-delay: ${props => -props.duration / 2}s;
animation-delay: ${(props) => -props.duration / 2}s;
}
&:nth-of-type(3) {
animation-delay: ${props => -props.duration / 4}s;
animation-delay: ${(props) => -props.duration / 4}s;
}
`;
2 changes: 1 addition & 1 deletion src/shared-components/optionButton/style.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import styled from '@emotion/styled';
import styled from 'src/utils/theming/styled';
import { css } from '@emotion/core';

import { style as TYPOGRAPHY_STYLE } from '../typography';
Expand Down
10 changes: 5 additions & 5 deletions src/shared-components/progressBar/style.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import styled from '@emotion/styled';
import styled from 'src/utils/theming/styled';
import { css, keyframes } from '@emotion/core';

import { COLORS, ANIMATION, PROGRESS_BAR_STATUS } from '../../constants';
Expand All @@ -19,12 +19,12 @@ export const OuterContainer = styled.div<{
top: 0;
left: 0;
right: 0;
background: ${props => props.backgroundColor};
background: ${(props) => props.backgroundColor};
overflow: hidden;
transition: opacity ${ANIMATION.defaultTiming} ease-in-out 500ms;
width: 100%;
z-index: 2;
height: ${props => `${props.height}px`};
height: ${(props) => `${props.height}px`};
${({ status }) =>
(status === PROGRESS_BAR_STATUS.success ||
Expand Down Expand Up @@ -59,8 +59,8 @@ export const InnerBar = styled.div<{
}>`
position: absolute;
width: 100%;
height: ${props => `${props.height}px`};
background-color: ${props => props.barColor};
height: ${(props) => `${props.height}px`};
background-color: ${(props) => props.barColor};
animation: ${loadingProgression} ${({ loadingTime }) => loadingTime} ease-in;
transform: translateX(-5%);
transition: transform ${ANIMATION.defaultTiming} ease-in-out;
Expand Down
2 changes: 1 addition & 1 deletion src/shared-components/selectorButton/style.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import styled from '@emotion/styled';
import styled from 'src/utils/theming/styled';
import { css } from '@emotion/core';

import {
Expand Down
2 changes: 1 addition & 1 deletion src/shared-components/tabs/style.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import styled from '@emotion/styled';
import styled from 'src/utils/theming/styled';
import { buttonReset } from 'src/utils/styles/buttonReset';

import { style as TYPOGRAPHY_STYLE } from '../typography';
Expand Down
2 changes: 1 addition & 1 deletion src/shared-components/toggle/style.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import styled from '@emotion/styled';
import styled from 'src/utils/theming/styled';

import { BOX_SHADOWS, COLORS, SPACER } from '../../constants';

Expand Down
2 changes: 1 addition & 1 deletion src/shared-components/tooltip/style.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import styled from '@emotion/styled';
import styled from 'src/utils/theming/styled';
import { css } from '@emotion/core';

import { COLORS, SPACER, TYPOGRAPHY_CONSTANTS } from '../../constants';
Expand Down
2 changes: 1 addition & 1 deletion src/shared-components/transitions/style.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import styled from '@emotion/styled';
import styled from 'src/utils/theming/styled';
import { css, keyframes } from '@emotion/core';

import { ANIMATION } from '../../constants';
Expand Down
2 changes: 1 addition & 1 deletion src/shared-components/typography/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { css } from '@emotion/core';
import styled from '@emotion/styled';
import styled from 'src/utils/theming/styled';
import round from 'lodash.round';

import { withDeprecationWarning } from '../../utils';
Expand Down
2 changes: 1 addition & 1 deletion src/shared-components/verificationMessages/style.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import styled from '@emotion/styled';
import styled from 'src/utils/theming/styled';

import { style as TYPOGRAPHY_STYLE } from '../typography';
import { SPACER } from '../../constants';
Expand Down
2 changes: 1 addition & 1 deletion src/utils/icons/style.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import styled from '@emotion/styled';
import styled from 'src/utils/theming/styled';

export const Icons = styled.div`
display: flex;
Expand Down
2 changes: 1 addition & 1 deletion stories/accordion/subcomponents/index.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
Canvas,
Story,
} from '@storybook/addon-docs/blocks';
import styled from '@emotion/styled';
import styled from 'src/utils/theming/styled';
import { SPACER } from 'src/constants';
import accountImage from 'shared/account.png';
import personImage from 'shared/person.jpg';
Expand Down
2 changes: 1 addition & 1 deletion stories/button/roundButton/index.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
import { text, select, boolean } from '@storybook/addon-knobs';
import { action } from '@storybook/addon-actions';
import { RoundButton } from 'src/shared-components';
import styled from '@emotion/styled';
import styled from 'src/utils/theming/styled';
import { COLORS, SPACER } from 'src/constants';
import type { Meta } from '@storybook/react';
import {
Expand Down
2 changes: 1 addition & 1 deletion stories/carousel/index.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import styled from '@emotion/styled';
import styled from 'src/utils/theming/styled';
import {
ArgsTable,
Description,
Expand Down
2 changes: 1 addition & 1 deletion stories/chip/index.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import styled from '@emotion/styled';
import styled from 'src/utils/theming/styled';
import {
ArgsTable,
Description,
Expand Down
2 changes: 1 addition & 1 deletion stories/constants/boxShadows.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { css } from '@emotion/core';
import styled from '@emotion/styled';
import styled from 'src/utils/theming/styled';
import { SPACER } from 'src/constants';
import * as BOX_SHADOWS from 'src/constants/boxShadows';
import { Container, Typography } from 'src/shared-components';
Expand Down
2 changes: 1 addition & 1 deletion stories/constants/color.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import PropTypes from 'prop-types';
import styled from '@emotion/styled';
import styled from 'src/utils/theming/styled';

const ColorContainer = styled.div`
display: flex;
Expand Down
2 changes: 1 addition & 1 deletion stories/constants/colors.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import styled from '@emotion/styled';
import styled from 'src/utils/theming/styled';
import { SPACER } from 'src/constants';
import { Typography } from 'src/shared-components';
import * as ALL_COLORS from 'src/constants/colors';
Expand Down
2 changes: 1 addition & 1 deletion stories/dropdown/index.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useState } from 'react';
import styled from '@emotion/styled';
import styled from 'src/utils/theming/styled';
import {
ArgsTable,
Description,
Expand Down
2 changes: 1 addition & 1 deletion stories/field/index.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import styled from '@emotion/styled';
import styled from 'src/utils/theming/styled';
import { text, select, boolean } from '@storybook/addon-knobs';
import { Field } from 'src/shared-components';
import {
Expand Down
2 changes: 1 addition & 1 deletion stories/icons/style.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import styled from '@emotion/styled';
import styled from 'src/utils/theming/styled';

const Icons = styled.div`
display: flex;
Expand Down
2 changes: 1 addition & 1 deletion stories/loadingSpinner/index.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import styled from '@emotion/styled';
import styled from 'src/utils/theming/styled';
import { text, number } from '@storybook/addon-knobs';
import { LoadingSpinner } from 'src/shared-components';
import { BREAKPOINTS, COLORS } from 'src/constants';
Expand Down
2 changes: 1 addition & 1 deletion stories/optionButton/index.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import MinusIcon from 'src/svgs/icons/minus-icon.svg';
import AcneGlyph from 'src/svgs/glyphs/acne-glyph.svg';
import PlusIcon from 'src/svgs/icons/plus-icon.svg';
import { OptionButton } from 'src/shared-components';
import styled from '@emotion/styled';
import styled from 'src/utils/theming/styled';
import {
ArgsTable,
Description,
Expand Down
2 changes: 1 addition & 1 deletion stories/progressBar/index.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { text, select, number, color } from '@storybook/addon-knobs';
import styled from '@emotion/styled';
import styled from 'src/utils/theming/styled';
import { css } from '@emotion/core';
import { ProgressBar } from 'src/shared-components';
import { ANIMATION, COLORS, PROGRESS_BAR_STATUS } from 'src/constants';
Expand Down
2 changes: 1 addition & 1 deletion stories/toggle/index.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import styled from '@emotion/styled';
import styled from 'src/utils/theming/styled';
import { Toggle } from 'src/shared-components';
import { SPACER } from 'src/constants';
import {
Expand Down
Loading

0 comments on commit 9713df2

Please sign in to comment.