Skip to content

Commit f7b543f

Browse files
authored
refactor(components, app): move LargeButton to components and add helix styling (#15929)
closes AUTH-622
1 parent 807dd49 commit f7b543f

File tree

13 files changed

+99
-71
lines changed

13 files changed

+99
-71
lines changed

app/src/atoms/buttons/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
export { BackButton } from './BackButton'
22
export { FloatingActionButton } from './FloatingActionButton'
3-
export { LargeButton } from './LargeButton'
43
export { MediumButton } from './MediumButton'
54
export { QuaternaryButton } from './QuaternaryButton'
65
export { SmallButton } from './SmallButton'

app/src/organisms/ErrorRecoveryFlows/RunPausedSplash.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ import {
2121
JUSTIFY_END,
2222
PrimaryButton,
2323
SecondaryButton,
24+
LargeButton,
2425
} from '@opentrons/components'
2526

2627
import { useErrorName } from './hooks'
2728
import { getErrorKind } from './utils'
28-
import { LargeButton } from '../../atoms/buttons'
2929
import { RECOVERY_MAP } from './constants'
3030
import {
3131
RecoveryInterventionModal,

app/src/organisms/QuickTransferFlow/QuickTransferAdvancedSettings/AirGap.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import {
88
POSITION_FIXED,
99
COLORS,
1010
ALIGN_CENTER,
11+
LargeButton,
1112
} from '@opentrons/components'
1213
import { getTopPortalEl } from '../../../App/portal'
13-
import { LargeButton } from '../../../atoms/buttons'
1414
import { ChildNavigation } from '../../ChildNavigation'
1515
import { InputField } from '../../../atoms/InputField'
1616
import { ACTIONS } from '../constants'

app/src/organisms/QuickTransferFlow/QuickTransferAdvancedSettings/BlowOut.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import {
66
SPACING,
77
DIRECTION_COLUMN,
88
POSITION_FIXED,
9+
LargeButton,
910
COLORS,
1011
} from '@opentrons/components'
1112
import {
@@ -14,7 +15,6 @@ import {
1415
TRASH_BIN_ADAPTER_FIXTURE,
1516
} from '@opentrons/shared-data'
1617
import { getTopPortalEl } from '../../../App/portal'
17-
import { LargeButton } from '../../../atoms/buttons'
1818
import { useNotifyDeckConfigurationQuery } from '../../../resources/deck_configuration'
1919
import { ChildNavigation } from '../../ChildNavigation'
2020
import { ACTIONS } from '../constants'

app/src/organisms/QuickTransferFlow/QuickTransferAdvancedSettings/Delay.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import {
88
POSITION_FIXED,
99
COLORS,
1010
ALIGN_CENTER,
11+
LargeButton,
1112
} from '@opentrons/components'
1213
import { getTopPortalEl } from '../../../App/portal'
13-
import { LargeButton } from '../../../atoms/buttons'
1414
import { ChildNavigation } from '../../ChildNavigation'
1515
import { InputField } from '../../../atoms/InputField'
1616
import { ACTIONS } from '../constants'

app/src/organisms/QuickTransferFlow/QuickTransferAdvancedSettings/Mix.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ import {
77
DIRECTION_COLUMN,
88
POSITION_FIXED,
99
COLORS,
10+
LargeButton,
1011
ALIGN_CENTER,
1112
} from '@opentrons/components'
1213
import { getTopPortalEl } from '../../../App/portal'
13-
import { LargeButton } from '../../../atoms/buttons'
1414
import { ChildNavigation } from '../../ChildNavigation'
1515
import { InputField } from '../../../atoms/InputField'
1616
import { ACTIONS } from '../constants'

app/src/organisms/QuickTransferFlow/QuickTransferAdvancedSettings/PipettePath.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ import {
77
DIRECTION_COLUMN,
88
POSITION_FIXED,
99
COLORS,
10+
LargeButton,
1011
ALIGN_CENTER,
1112
} from '@opentrons/components'
1213
import { useNotifyDeckConfigurationQuery } from '../../../resources/deck_configuration'
1314
import { getTopPortalEl } from '../../../App/portal'
14-
import { LargeButton } from '../../../atoms/buttons'
1515
import { ChildNavigation } from '../../ChildNavigation'
1616
import { useBlowOutLocationOptions } from './BlowOut'
1717
import { getVolumeRange } from '../utils'

app/src/organisms/QuickTransferFlow/QuickTransferAdvancedSettings/TouchTip.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import {
88
POSITION_FIXED,
99
COLORS,
1010
ALIGN_CENTER,
11+
LargeButton,
1112
} from '@opentrons/components'
1213
import { getTopPortalEl } from '../../../App/portal'
13-
import { LargeButton } from '../../../atoms/buttons'
1414
import { ChildNavigation } from '../../ChildNavigation'
1515
import { InputField } from '../../../atoms/InputField'
1616
import { ACTIONS } from '../constants'

app/src/pages/RunSummary/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import {
2626
POSITION_RELATIVE,
2727
SPACING,
2828
TYPOGRAPHY,
29+
LargeButton,
2930
WRAP,
3031
} from '@opentrons/components'
3132
import {
@@ -40,7 +41,6 @@ import {
4041
useDeleteRunMutation,
4142
} from '@opentrons/react-api-client'
4243

43-
import { LargeButton } from '../../atoms/buttons'
4444
import {
4545
useRunTimestamps,
4646
useRunControls,

app/src/atoms/buttons/LargeButton.stories.tsx renamed to components/src/atoms/buttons/LargeButton.stories.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
import * as React from 'react'
2-
import { Box, COLORS, SPACING, ICON_DATA_BY_NAME } from '@opentrons/components'
3-
import { LargeButton } from './'
2+
3+
import { ICON_DATA_BY_NAME } from '../../icons'
4+
import { SPACING } from '../../ui-style-constants'
5+
import { Box } from '../../primitives'
6+
import { COLORS } from '../../helix-design-system'
7+
import { LargeButton } from './LargeButton'
48

59
import type { Meta, StoryObj } from '@storybook/react'
610

711
const meta: Meta<typeof LargeButton> = {
8-
title: 'ODD/Atoms/Buttons/LargeButton',
12+
title: 'Library/Atoms/Buttons/LargeButton',
913
component: LargeButton,
1014
argTypes: {
1115
onClick: { action: 'clicked' },

0 commit comments

Comments
 (0)