-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/develop' into develop
- Loading branch information
Showing
3 changed files
with
103 additions
and
61 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,17 +1,24 @@ | ||
import React, { useState } from 'react'; | ||
import { FlexCell, TextArea } from '@epam/uui'; | ||
import { FlexCell, TextArea, LabeledInput } from '@epam/uui'; | ||
import css from './BasicExample.module.scss'; | ||
|
||
export default function BasicTextAreaExample() { | ||
const [value, onValueChange] = useState(null); | ||
|
||
return ( | ||
<FlexCell cx={ css.container } width={ 350 }> | ||
<TextArea value={ value } onValueChange={ onValueChange } /> | ||
<TextArea value={ value } onValueChange={ onValueChange } placeholder="Placeholder" /> | ||
<TextArea isDisabled value={ value } onValueChange={ onValueChange } placeholder="Disabled" /> | ||
<TextArea isReadonly value={ value } onValueChange={ onValueChange } placeholder="Readonly" /> | ||
<TextArea isInvalid value={ value } onValueChange={ onValueChange } placeholder="Invalid" /> | ||
<LabeledInput label="Label"> | ||
<TextArea value={ value } onValueChange={ onValueChange } placeholder="Type text" /> | ||
</LabeledInput> | ||
<LabeledInput label="Disabled"> | ||
<TextArea isDisabled value={ value } onValueChange={ onValueChange } placeholder="Type text" /> | ||
</LabeledInput> | ||
<LabeledInput label="Readonly"> | ||
<TextArea isReadonly value={ value } onValueChange={ onValueChange } placeholder="Type text" /> | ||
</LabeledInput> | ||
<LabeledInput label="Invalid"> | ||
<TextArea isInvalid value={ value } onValueChange={ onValueChange } placeholder="Type text" /> | ||
</LabeledInput> | ||
</FlexCell> | ||
); | ||
} |
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,21 +1,31 @@ | ||
import React, { useState } from 'react'; | ||
import { FlexCell, TextInput } from '@epam/uui'; | ||
import { FlexCell, LabeledInput, TextInput } from '@epam/uui'; | ||
import css from './BasicExample.module.scss'; | ||
import { ReactComponent as CustomIcon } from '@epam/assets/icons/common/social-network-yammer-18.svg'; | ||
|
||
export default function BasicTextInputExample() { | ||
const [value, onValueChange] = useState(null); | ||
const [valueOpen, onOpenChange] = useState(null); | ||
|
||
return ( | ||
<FlexCell cx={ css.container } width="auto"> | ||
<TextInput value={ value } onValueChange={ onValueChange } placeholder="Please type text" /> | ||
<TextInput isDisabled value={ value } onValueChange={ onValueChange } placeholder="Disabled" /> | ||
<TextInput isReadonly value={ value } onValueChange={ onValueChange } placeholder="Readonly" /> | ||
<TextInput isInvalid value={ value } onValueChange={ onValueChange } placeholder="Invalid" /> | ||
<TextInput icon={ CustomIcon } value={ value } onValueChange={ onValueChange } placeholder="Custom Icon" /> | ||
<TextInput icon={ CustomIcon } iconPosition="right" value={ value } onValueChange={ onValueChange } placeholder="Custom Icon on the right" /> | ||
<TextInput isDropdown value={ value } onValueChange={ onValueChange } placeholder="Dropdown" isOpen={ valueOpen } onClick={ () => onOpenChange(!valueOpen) } /> | ||
<LabeledInput label="Label"> | ||
<TextInput value={ value } onValueChange={ onValueChange } placeholder="Please type text" /> | ||
</LabeledInput> | ||
<LabeledInput label="Disabled"> | ||
<TextInput isDisabled value={ value } onValueChange={ onValueChange } placeholder="Disabled" /> | ||
</LabeledInput> | ||
<LabeledInput label="Readonly"> | ||
<TextInput isReadonly value={ value } onValueChange={ onValueChange } placeholder="Readonly" /> | ||
</LabeledInput> | ||
<LabeledInput label="Invalid"> | ||
<TextInput isInvalid value={ value } onValueChange={ onValueChange } placeholder="Invalid" /> | ||
</LabeledInput> | ||
<LabeledInput label="With icon"> | ||
<TextInput icon={ CustomIcon } value={ value } onValueChange={ onValueChange } placeholder="Custom Icon" /> | ||
</LabeledInput> | ||
<LabeledInput label="With right icon"> | ||
<TextInput icon={ CustomIcon } iconPosition="right" value={ value } onValueChange={ onValueChange } placeholder="Custom Icon on the right" /> | ||
</LabeledInput> | ||
</FlexCell> | ||
); | ||
} |
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