File tree Expand file tree Collapse file tree 4 files changed +7
-24
lines changed Expand file tree Collapse file tree 4 files changed +7
-24
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ const CustomInput = ({
49
49
labelTooltipConfig,
50
50
...props
51
51
} : CustomInputProps ) => {
52
- const inputRef = useRef < HTMLInputElement > ( )
52
+ const inputRef = useRef < HTMLInputElement > ( null )
53
53
54
54
useEffect ( ( ) => {
55
55
setTimeout ( ( ) => {
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ export interface CustomInputProps
30
30
*/
31
31
shouldTrim ?: boolean
32
32
/**
33
- * Size of the textarea
33
+ * Size of the input
34
34
*
35
35
* @default ComponentSizeType.large
36
36
*/
Original file line number Diff line number Diff line change 14
14
* limitations under the License.
15
15
*/
16
16
17
- import { ReactComponent as ICHelpOutline } from '@Icons/ic-help-outline.svg'
18
- import { ReactComponent as ICHelp } from '@Icons/ic-help.svg'
19
- import { TippyCustomized } from '@Common/TippyCustomized'
20
- import { TippyTheme } from '@Common/Types'
21
17
import { ConditionalWrap } from '@Common/Helper'
22
18
import { ReactElement } from 'react'
23
19
import { Tooltip , TooltipProps } from '@Common/Tooltip'
24
20
import { getFormLabelElementId } from './utils'
25
21
import { FormFieldLabelProps } from './types'
22
+ import { InfoIconTippy } from '..'
26
23
27
24
const FormFieldLabel = ( {
28
25
label,
@@ -74,21 +71,7 @@ const FormFieldLabel = ({
74
71
{ required && < span > </ span > }
75
72
</ div >
76
73
{ ! isRowLayout && labelTippyCustomizedConfig && (
77
- < TippyCustomized
78
- theme = { TippyTheme . white }
79
- className = "w-300 dc__align-left"
80
- placement = "bottom-start"
81
- Icon = { ICHelp }
82
- iconClass = "fcv-5"
83
- showCloseButton
84
- trigger = "click"
85
- interactive
86
- { ...labelTippyCustomizedConfig }
87
- >
88
- < div className = "flex cursor" >
89
- < ICHelpOutline className = "fcn-7 icon-dim-16 dc__no-shrink" />
90
- </ div >
91
- </ TippyCustomized >
74
+ < InfoIconTippy placement = "bottom-start" iconClass = "fcv-5" { ...labelTippyCustomizedConfig } />
92
75
) }
93
76
</ div >
94
77
)
Original file line number Diff line number Diff line change 16
16
17
17
import { ReactElement , ReactNode } from 'react'
18
18
import { TooltipProps } from '@Common/Tooltip'
19
- import { TippyCustomizedProps } from '@Common/Types'
19
+ import { InfoIconTippyProps } from '@Common/Types'
20
20
import { BorderConfigType , ComponentLayoutType } from '@Shared/types'
21
21
22
22
export type LabelOrAriaLabelType =
@@ -55,8 +55,8 @@ export type FormFieldLabelProps<Layout extends ComponentLayoutType = ComponentLa
55
55
/**
56
56
* Tippy configuration for the label in column layout
57
57
*/
58
- labelTippyCustomizedConfig ?: Required < Pick < TippyCustomizedProps , 'heading' | 'infoText' > > &
59
- Pick < TippyCustomizedProps , 'documentationLink' | 'documentationLinkText' >
58
+ labelTippyCustomizedConfig ?: Required < Pick < InfoIconTippyProps , 'heading' | 'infoText' > > &
59
+ Pick < InfoIconTippyProps , 'documentationLink' | 'documentationLinkText' >
60
60
} )
61
61
62
62
export interface FormFieldInfoProps extends Pick < FormFieldLabelProps , 'inputId' > {
You can’t perform that action at this time.
0 commit comments