) => {
+const render = (props: ComponentProps
) => {
return renderWithProviders()
}
describe('SendButton', () => {
- let props: React.ComponentProps
+ let props: ComponentProps
beforeEach(() => {
props = {
diff --git a/opentrons-ai-client/src/atoms/TextAreaField/index.tsx b/opentrons-ai-client/src/atoms/TextAreaField/index.tsx
index d1c1f0d8c17..1335196971f 100644
--- a/opentrons-ai-client/src/atoms/TextAreaField/index.tsx
+++ b/opentrons-ai-client/src/atoms/TextAreaField/index.tsx
@@ -1,22 +1,30 @@
+import { forwardRef } from 'react'
+import styled, { css } from 'styled-components'
import {
- TYPOGRAPHY,
- useHoverTooltip,
- RESPONSIVENESS,
- SPACING,
- COLORS,
- BORDERS,
- Flex,
ALIGN_CENTER,
+ BORDERS,
+ COLORS,
DIRECTION_COLUMN,
DIRECTION_ROW,
- StyledText,
+ Flex,
Icon,
- Tooltip,
+ RESPONSIVENESS,
+ SPACING,
+ StyledText,
TEXT_ALIGN_RIGHT,
+ Tooltip,
+ TYPOGRAPHY,
+ useHoverTooltip,
} from '@opentrons/components'
+
+import type {
+ ChangeEventHandler,
+ FocusEvent,
+ MouseEvent,
+ MutableRefObject,
+ ReactNode,
+} from 'react'
import type { IconName } from '@opentrons/components'
-import * as React from 'react'
-import styled, { css } from 'styled-components'
export const INPUT_TYPE_NUMBER = 'number' as const
export const LEGACY_INPUT_TYPE_TEXT = 'text' as const
@@ -27,7 +35,7 @@ export interface TextAreaFieldProps {
/** field is disabled if value is true */
disabled?: boolean
/** change handler */
- onChange?: React.ChangeEventHandler
+ onChange?: ChangeEventHandler
/** name of field in form */
name?: string
/** optional ID of