-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(textbox): change labelHelp type to ReactNode
close FE-3387 fix #3434
- Loading branch information
Showing
16 changed files
with
69 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,46 @@ | ||
import { ChangeEvent } from 'react'; | ||
import { AlignBinaryType } from '../utils/helpers/options-helper/options-helper'; | ||
import { Validator } from '../utils/validations/validation-interface'; | ||
import * as React from "react"; | ||
import { AlignBinaryType } from "../utils/helpers/options-helper/options-helper"; | ||
import { Validator } from "../utils/validations/validation-interface"; | ||
|
||
export interface InputProps { | ||
value?: any; | ||
value?: any; | ||
|
||
/** Timeout length before onChangeDeferred is triggered. */ | ||
deferTimeout?: number; | ||
/** Timeout length before onChangeDeferred is triggered. */ | ||
deferTimeout?: number; | ||
|
||
/** Displays additional information below the input to provide help to the user. */ | ||
fieldHelp?: string; | ||
/** Displays additional information below the input to provide help to the user. */ | ||
fieldHelp?: string; | ||
|
||
/** Displays fieldHelp inline with the checkbox/radio button. */ | ||
fieldHelpInline?: boolean; | ||
/** Displays fieldHelp inline with the checkbox/radio button. */ | ||
fieldHelpInline?: boolean; | ||
|
||
/** An array of info messages to apply to the input. */ | ||
info?: Validator[]; | ||
/** An array of info messages to apply to the input. */ | ||
info?: Validator[]; | ||
|
||
/** A number representing the percentage/ratio of width with the label. Works best with inline labels. */ | ||
inputWidth?: number; | ||
/** A number representing the percentage/ratio of width with the label. Works best with inline labels. */ | ||
inputWidth?: number; | ||
|
||
/** Outputs a label for the input. */ | ||
label?: string; | ||
/** Outputs a label for the input. */ | ||
label?: string; | ||
|
||
/** Align the label either 'left' or 'right'. Only works with inline labels. */ | ||
labelAlign?: AlignBinaryType; | ||
/** Align the label either 'left' or 'right'. Only works with inline labels. */ | ||
labelAlign?: AlignBinaryType; | ||
|
||
/** Output an info icon next to the label to display additional help to the user. */ | ||
labelHelp?: string; | ||
/** Output an info icon next to the label to display additional help to the user. */ | ||
labelHelp?: React.ReactNode; | ||
|
||
/** Displays the label inline with the input. */ | ||
labelInline?: boolean; | ||
/** Displays the label inline with the input. */ | ||
labelInline?: boolean; | ||
|
||
/** A number representing the percentage/ratio of width with the input. Works best with inline labels. */ | ||
labelWidth?: number; | ||
/** A number representing the percentage/ratio of width with the input. Works best with inline labels. */ | ||
labelWidth?: number; | ||
|
||
/** A callback which will trigger after the user has stopped typing for the duration of deferTimeout. */ | ||
onChangeDeferred?: (ev: ChangeEvent<HTMLElement>) => void; | ||
/** A callback which will trigger after the user has stopped typing for the duration of deferTimeout. */ | ||
onChangeDeferred?: (ev: React.ChangeEvent<HTMLElement>) => void; | ||
|
||
/** An array of validations to apply to the input. */ | ||
validations?: Validator[]; | ||
/** An array of validations to apply to the input. */ | ||
validations?: Validator[]; | ||
|
||
/** An array of warnings to apply to the input. */ | ||
warnings?: Validator[]; | ||
/** An array of warnings to apply to the input. */ | ||
warnings?: Validator[]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters