From be14d76612f2f9d72cc21b3164f0953315b01d53 Mon Sep 17 00:00:00 2001 From: "Amanda G. Brown" Date: Mon, 5 Jun 2023 15:37:36 -0400 Subject: [PATCH 1/2] refactor(TextInputInnerVisualSlot): moved to internal --- src/TextInput/TextInput.tsx | 2 +- src/TextInputWithTokens/TextInputWithTokens.tsx | 2 +- .../components/TextInputInnerVisualSlot.tsx} | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) rename src/{_TextInputInnerVisualSlot.tsx => internal/components/TextInputInnerVisualSlot.tsx} (92%) diff --git a/src/TextInput/TextInput.tsx b/src/TextInput/TextInput.tsx index a25dff0950d4..d17063e24ac5 100644 --- a/src/TextInput/TextInput.tsx +++ b/src/TextInput/TextInput.tsx @@ -2,7 +2,7 @@ import React, {MouseEventHandler, useCallback, useState} from 'react' import {ForwardRefComponent as PolymorphicForwardRefComponent} from '../utils/polymorphic' import classnames from 'classnames' -import TextInputInnerVisualSlot from '../_TextInputInnerVisualSlot' +import TextInputInnerVisualSlot from '../internal/components/TextInputInnerVisualSlot' import {useProvidedRefOrCreate} from '../hooks' import {Merge} from '../utils/types' import TextInputWrapper, {StyledWrapperProps} from '../_TextInputWrapper' diff --git a/src/TextInputWithTokens/TextInputWithTokens.tsx b/src/TextInputWithTokens/TextInputWithTokens.tsx index f665021ec1b8..73e2041d82f3 100644 --- a/src/TextInputWithTokens/TextInputWithTokens.tsx +++ b/src/TextInputWithTokens/TextInputWithTokens.tsx @@ -9,7 +9,7 @@ import Text from '../Text' import {TextInputProps} from '../TextInput' import Token from '../Token/Token' import {TokenSizeKeys} from '../Token/TokenBase' -import TextInputInnerVisualSlot from '../_TextInputInnerVisualSlot' +import TextInputInnerVisualSlot from '../internal/components/TextInputInnerVisualSlot' import TextInputWrapper, {textInputHorizPadding, TextInputSizes} from '../_TextInputWrapper' import UnstyledTextInput from '../_UnstyledTextInput' diff --git a/src/_TextInputInnerVisualSlot.tsx b/src/internal/components/TextInputInnerVisualSlot.tsx similarity index 92% rename from src/_TextInputInnerVisualSlot.tsx rename to src/internal/components/TextInputInnerVisualSlot.tsx index 90c6635ac11e..60f584144f07 100644 --- a/src/_TextInputInnerVisualSlot.tsx +++ b/src/internal/components/TextInputInnerVisualSlot.tsx @@ -1,7 +1,7 @@ import React from 'react' -import Box from './Box' -import Spinner from './Spinner' -import {TextInputNonPassthroughProps} from './TextInput' +import Box from '../../Box' +import Spinner from '../../Spinner' +import {TextInputNonPassthroughProps} from '../../TextInput' const TextInputInnerVisualSlot: React.FC< React.PropsWithChildren<{ From ebfbc1c927b2cd40a1c3b488d4fe048e986ecf58 Mon Sep 17 00:00:00 2001 From: "Amanda G. Brown" Date: Thu, 8 Jun 2023 15:21:23 -0400 Subject: [PATCH 2/2] fix import --- src/TextInputWithTokens/TextInputWithTokens.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/TextInputWithTokens/TextInputWithTokens.tsx b/src/TextInputWithTokens/TextInputWithTokens.tsx index 43fd0c01f9ef..2c82ee2f4077 100644 --- a/src/TextInputWithTokens/TextInputWithTokens.tsx +++ b/src/TextInputWithTokens/TextInputWithTokens.tsx @@ -9,9 +9,10 @@ import Text from '../Text' import {TextInputProps} from '../TextInput' import Token from '../Token/Token' import {TokenSizeKeys} from '../Token/TokenBase' -import TextInputInnerVisualSlot from '../_TextInputInnerVisualSlot' + import TextInputWrapper, {textInputHorizPadding, TextInputSizes} from '../internal/components/TextInputWrapper' import UnstyledTextInput from '../internal/components/UnstyledTextInput' +import TextInputInnerVisualSlot from '../internal/components/TextInputInnerVisualSlot' // eslint-disable-next-line @typescript-eslint/no-explicit-any type AnyReactComponent = React.ComponentType>