Skip to content

Commit

Permalink
fix remaining import issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mjhuff committed Mar 14, 2024
1 parent 58cadaf commit a4f293d
Show file tree
Hide file tree
Showing 18 changed files with 31 additions and 35 deletions.
4 changes: 2 additions & 2 deletions components/src/atoms/buttons/AlertPrimaryButton.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import styled from 'styled-components'
import { BORDERS, TYPOGRAPHY, SPACING } from '../../ui-style-constants'
import { COLORS } from '../../helix-design-system'
import { TYPOGRAPHY, SPACING } from '../../ui-style-constants'
import { BORDERS, COLORS } from '../../helix-design-system'
import { NewAlertPrimaryBtn, styleProps } from '../../primitives'

export const AlertPrimaryButton = styled(NewAlertPrimaryBtn)`
Expand Down
4 changes: 2 additions & 2 deletions components/src/atoms/buttons/PrimaryButton.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import styled from 'styled-components'
import { BORDERS, TYPOGRAPHY, SPACING } from '../../ui-style-constants'
import { COLORS } from '../../helix-design-system'
import { TYPOGRAPHY, SPACING } from '../../ui-style-constants'
import { BORDERS, COLORS } from '../../helix-design-system'
import { NewPrimaryBtn, styleProps } from '../../primitives'

export const PrimaryButton = styled(NewPrimaryBtn)`
Expand Down
6 changes: 4 additions & 2 deletions components/src/atoms/buttons/SecondaryButton.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import styled from 'styled-components'
import { BORDERS, TYPOGRAPHY, SPACING } from '../../ui-style-constants'

import { TYPOGRAPHY, SPACING } from '../../ui-style-constants'
import { isntStyleProp, styleProps } from '../../primitives'
import { COLORS } from '../../helix-design-system'
import { BORDERS, COLORS } from '../../helix-design-system'

import type { StyleProps } from '../../index'

interface SecondaryButtonProps extends StyleProps {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { describe, it, beforeEach, expect } from 'vitest'
import { screen } from '@testing-library/react'
import '@testing-library/jest-dom/vitest'
import { renderWithProviders } from '../../../testing/utils'
import { COLORS } from '../../../helix-design-system'
import { BORDERS, TYPOGRAPHY, SPACING } from '../../../ui-style-constants'
import { BORDERS, COLORS } from '../../../helix-design-system'
import { TYPOGRAPHY, SPACING } from '../../../ui-style-constants'

import { AlertPrimaryButton } from '../AlertPrimaryButton'

Expand Down
4 changes: 2 additions & 2 deletions components/src/atoms/buttons/__tests__/PrimaryButton.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { describe, it, beforeEach, expect } from 'vitest'
import { fireEvent, screen } from '@testing-library/react'
import '@testing-library/jest-dom/vitest'
import { renderWithProviders } from '../../../testing/utils'
import { COLORS } from '../../../helix-design-system'
import { BORDERS, TYPOGRAPHY, SPACING } from '../../../ui-style-constants'
import { BORDERS, COLORS } from '../../../helix-design-system'
import { TYPOGRAPHY, SPACING } from '../../../ui-style-constants'
import { PrimaryButton } from '../PrimaryButton'

const render = (props: React.ComponentProps<typeof PrimaryButton>) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { describe, it, beforeEach, expect } from 'vitest'
import { screen } from '@testing-library/react'
import '@testing-library/jest-dom/vitest'
import { renderWithProviders } from '../../../testing/utils'
import { BORDERS, TYPOGRAPHY, SPACING } from '../../../ui-style-constants'
import { COLORS } from '../../../helix-design-system'
import { TYPOGRAPHY, SPACING } from '../../../ui-style-constants'
import { BORDERS, COLORS } from '../../../helix-design-system'

import { SecondaryButton } from '../SecondaryButton'

Expand Down
4 changes: 2 additions & 2 deletions components/src/hardware-sim/Deck/FlexTrash.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import {
import { Icon } from '../../icons'
import { Flex, Text } from '../../primitives'
import { ALIGN_CENTER, JUSTIFY_CENTER } from '../../styles'
import { BORDERS, SPACING, TYPOGRAPHY } from '../../ui-style-constants'
import { COLORS } from '../../helix-design-system'
import { SPACING, TYPOGRAPHY } from '../../ui-style-constants'
import { COLORS, BORDERS } from '../../helix-design-system'
import { RobotCoordsForeignObject } from './RobotCoordsForeignObject'

import type { RobotType } from '@opentrons/shared-data'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { css } from 'styled-components'
import { Icon } from '../../icons'
import { Btn } from '../../primitives'
import { ALIGN_CENTER, DISPLAY_FLEX, JUSTIFY_CENTER } from '../../styles'
import { BORDERS, RESPONSIVENESS } from '../../ui-style-constants'
import { COLORS } from '../../helix-design-system'
import { RESPONSIVENESS } from '../../ui-style-constants'
import { BORDERS, COLORS } from '../../helix-design-system'
import { RobotCoordsForeignObject } from '../Deck/RobotCoordsForeignObject'
import {
COLUMN_1_X_ADJUSTMENT,
Expand Down
4 changes: 2 additions & 2 deletions components/src/hardware-sim/DeckConfigurator/constants.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { css } from 'styled-components'

import { COLORS } from '../../helix-design-system'
import { BORDERS, COLORS } from '../../helix-design-system'
import { ALIGN_CENTER, DISPLAY_FLEX, JUSTIFY_CENTER } from '../../styles'
import { BORDERS, RESPONSIVENESS, SPACING } from '../../ui-style-constants'
import { RESPONSIVENESS, SPACING } from '../../ui-style-constants'

/**
* These are Flex deck configurator-only values to position a foreign object
Expand Down
3 changes: 1 addition & 2 deletions components/src/hardware-sim/Module/Thermocycler/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ import {
} from '@opentrons/shared-data'

import { C_MED_LIGHT_GRAY } from '../../../styles'
import { BORDERS } from '../../../ui-style-constants'
import { COLORS } from '../../../helix-design-system'
import { COLORS, BORDERS } from '../../../helix-design-system'

import { RobotCoordsForeignDiv } from '../../Deck'
import { ThermocyclerGEN1 } from './ThermocyclerGEN1'
Expand Down
2 changes: 0 additions & 2 deletions components/src/helix-design-system/borders.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { css } from 'styled-components'

import { COLORS } from '.'

/**
Expand Down
1 change: 0 additions & 1 deletion components/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ export * from './ui-style-constants'

// helix design system
export * from './helix-design-system'
export { BORDERS } from './helix-design-system'

// Pure Types
export * from './robot-types'
Expand Down
4 changes: 2 additions & 2 deletions components/src/modals/ModalShell.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react'
import styled from 'styled-components'
import { BORDERS, SPACING } from '../ui-style-constants'
import { COLORS } from '../helix-design-system'
import { SPACING } from '../ui-style-constants'
import { BORDERS, COLORS } from '../helix-design-system'
import { StyleProps, styleProps } from '../primitives'
import {
POSITION_FIXED,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import * as React from 'react'
import { describe, it, beforeEach, expect } from 'vitest'
import { renderWithProviders } from '../../../testing/utils'
import { screen } from '@testing-library/react'
import { BORDERS, SPACING } from '../../../ui-style-constants'
import { COLORS } from '../../../helix-design-system'
import { SPACING } from '../../../ui-style-constants'
import { BORDERS, COLORS } from '../../../helix-design-system'

import { LocationIcon } from '..'

Expand Down
4 changes: 2 additions & 2 deletions components/src/molecules/LocationIcon/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { css } from 'styled-components'
import { Icon } from '../../icons'
import { Flex, Text } from '../../primitives'
import { ALIGN_CENTER } from '../../styles'
import { BORDERS, SPACING, TYPOGRAPHY } from '../../ui-style-constants'
import { COLORS } from '../../helix-design-system'
import { SPACING, TYPOGRAPHY } from '../../ui-style-constants'
import { BORDERS, COLORS } from '../../helix-design-system'

import type { IconName } from '../../icons'
import type { StyleProps } from '../../primitives'
Expand Down
4 changes: 2 additions & 2 deletions components/src/molecules/RoundTab.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react'
import { css } from 'styled-components'
import { TYPOGRAPHY, BORDERS, SPACING } from '../ui-style-constants'
import { COLORS } from '../helix-design-system'
import { TYPOGRAPHY, SPACING } from '../ui-style-constants'
import { COLORS, BORDERS } from '../helix-design-system'
import { POSITION_RELATIVE } from '../styles'
import { Btn } from '../primitives'

Expand Down
5 changes: 2 additions & 3 deletions components/src/tooltips/Tooltip.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import * as React from 'react'
import { css } from 'styled-components'

import { borderRadius4 } from '../ui-style-constants/borders'
import { BORDERS, COLORS } from '../helix-design-system'
import { fontSizeH4 } from '../ui-style-constants/typography'
import { spacing8 } from '../ui-style-constants/spacing'
import { ARROW_SIZE_PX } from './styles'
import { Box } from '../primitives'
import { COLORS } from '../helix-design-system'

import type { CSSProperties } from 'react'
import type { FlattenSimpleInterpolation } from 'styled-components'
Expand Down Expand Up @@ -63,7 +62,7 @@ export const Tooltip = React.forwardRef(function TooltipComponent(
filter: drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.2));
cursor: pointer;
font-size: ${fontSize};
border-radius: ${borderRadius4};
border-radius: ${BORDERS.borderRadius4};
`

return visible ? (
Expand Down
1 change: 0 additions & 1 deletion components/src/ui-style-constants/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export * as BORDERS from './borders'
export * as RESPONSIVENESS from './responsiveness'
export * as TYPOGRAPHY from './typography'
export * as SPACING from './spacing'

0 comments on commit a4f293d

Please sign in to comment.