Skip to content

Commit

Permalink
3230 Refactor internal components - TextInputInnerVisualSlot (#3373)
Browse files Browse the repository at this point in the history
* refactor(TextInputInnerVisualSlot): moved to internal

* fix import
  • Loading branch information
green6erry authored Jun 8, 2023
1 parent b154bdc commit 58b118f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/TextInput/TextInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 '../internal/components/TextInputWrapper'
Expand Down
3 changes: 2 additions & 1 deletion src/TextInputWithTokens/TextInputWithTokens.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<React.PropsWithChildren<any>>
Expand Down
Original file line number Diff line number Diff line change
@@ -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<{
Expand Down

0 comments on commit 58b118f

Please sign in to comment.