-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(TextArea|TextInput): add note prop into TextArea and TextInput (#…
…895) Co-authored-by: Sergey Zveroboev <[email protected]> Co-authored-by: Mr.Dr.Professor Patrick <[email protected]>
- Loading branch information
1 parent
e191c0b
commit ad959e4
Showing
11 changed files
with
143 additions
and
38 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
.idea | ||
.vscode | ||
.history | ||
.DS_Store | ||
*.log | ||
|
||
|
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,30 +1,31 @@ | ||
| Property | Type | Default | Description | | ||
| :----------- | :-------------------------------------------- | :-------------- | :--------------------------------------------------------------------------------------------------- | | ||
| autoComplete | `boolean \| string` | `-` | The control's `autocomplete` attribute | | ||
| autoFocus | `boolean` | `-` | The control's `autofocus` attribute | | ||
| className | `string` | `-` | The control's wrapper class name | | ||
| controlProps | `React.InputHTMLAttributes<HTMLInputElement>` | `-` | The control's html attributes | | ||
| controlRef | `React.Ref<HTMLInputElement>` | `-` | React ref provided to the control | | ||
| defaultValue | `string` | `-` | The control's default value. Use when the component is not controlled | | ||
| disabled | `boolean` | `false` | Indicates that the user cannot interact with the control | | ||
| error | `boolean \| string` | `-` | Shows error state and optional message if property identified as a string | | ||
| hasClear | `boolean` | `false` | Shows icon for clearing control's value | | ||
| id | `string` | `-` | The control's `id` attribute | | ||
| label | `string` | `-` | Help text rendered to the left of the input node | | ||
| leftContent | `React.ReactNode` | `-` | User`s node rendered before label and input | | ||
| name | `string` | `-` | The control's `name` attribute. Will be autogenerated if not specified | | ||
| onBlur | `function` | `-` | Fires when the control lost focus. Provides focus event as an callback's argument | | ||
| onChange | `function` | `-` | Fires when the input’s value is changed by the user. Provides change event as an callback's argument | | ||
| onFocus | `function` | `-` | Fires when the control gets focus. Provides focus event as an callback's argument | | ||
| onKeyDown | `function` | `-` | Fires when a key is pressed. Provides keyboard event as an callback's argument | | ||
| onKeyUp | `function` | `-` | Fires when a key is released. Provides keyboard event as an callback's argument | | ||
| onUpdate | `function` | `-` | Fires when the input’s value is changed by the user. Provides new value as an callback's argument | | ||
| pin | `string` | `'round-round'` | The control's border view. `'round-round'` by default | | ||
| placeholder | `string` | `-` | Text that appears in the control when it has no value set | | ||
| qa | `string` | `-` | Test id attribute (`data-qa`) | | ||
| rightContent | `React.ReactNode` | `-` | User`s node rendered after input node and clear button | | ||
| size | `'s' \| 'm' \| 'l' \| 'xl'` | `'m'` | The control's size. `'m'` by default | | ||
| tabIndex | `string` | `-` | The control's `tabindex` attribute | | ||
| type | `string` | `-` | The control's type | | ||
| value | `string` | `-` | The control's value | | ||
| view | `'normal' \| 'clear'` | `'normal'` | The control's view. `'normal'` by default | | ||
| Property | Type | Default | Description | | ||
| :----------- | :-------------------------------------------- | :-------------- | :----------------------------------------------------------------------------------------------------------------------- | | ||
| autoComplete | `boolean \| string` | `-` | The control's `autocomplete` attribute | | ||
| autoFocus | `boolean` | `-` | The control's `autofocus` attribute | | ||
| className | `string` | `-` | The control's wrapper class name | | ||
| controlProps | `React.InputHTMLAttributes<HTMLInputElement>` | `-` | The control's html attributes | | ||
| controlRef | `React.Ref<HTMLInputElement>` | `-` | React ref provided to the control | | ||
| defaultValue | `string` | `-` | The control's default value. Use when the component is not controlled | | ||
| disabled | `boolean` | `false` | Indicates that the user cannot interact with the control | | ||
| error | `boolean \| string` | `-` | Shows error state and optional message if property identified as a string | | ||
| hasClear | `boolean` | `false` | Shows icon for clearing control's value | | ||
| id | `string` | `-` | The control's `id` attribute | | ||
| label | `string` | `-` | Help text rendered to the left of the input node | | ||
| leftContent | `React.ReactNode` | `-` | User`s node rendered before label and input | | ||
| name | `string` | `-` | The control's `name` attribute. Will be autogenerated if not specified | | ||
| onBlur | `function` | `-` | Fires when the control lost focus. Provides focus event as an callback's argument | | ||
| onChange | `function` | `-` | Fires when the input’s value is changed by the user. Provides change event as an callback's argument | | ||
| onFocus | `function` | `-` | Fires when the control gets focus. Provides focus event as an callback's argument | | ||
| onKeyDown | `function` | `-` | Fires when a key is pressed. Provides keyboard event as an callback's argument | | ||
| onKeyUp | `function` | `-` | Fires when a key is released. Provides keyboard event as an callback's argument | | ||
| onUpdate | `function` | `-` | Fires when the input’s value is changed by the user. Provides new value as an callback's argument | | ||
| pin | `string` | `'round-round'` | The control's border view. `'round-round'` by default | | ||
| placeholder | `string` | `-` | Text that appears in the control when it has no value set | | ||
| qa | `string` | `-` | Test id attribute (`data-qa`) | | ||
| rightContent | `React.ReactNode` | `-` | User`s node rendered after input node and clear button | | ||
| size | `'s' \| 'm' \| 'l' \| 'xl'` | `'m'` | The control's size. `'m'` by default | | ||
| tabIndex | `string` | `-` | The control's `tabindex` attribute | | ||
| type | `string` | `-` | The control's type | | ||
| value | `string` | `-` | The control's value | | ||
| view | `'normal' \| 'clear'` | `'normal'` | The control's view. `'normal'` by default | | ||
| note | `React.ReactNode` | `-` | An optional element displayed under the lower right corner of the control and sharing the place with the error container | |
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
Oops, something went wrong.