-
Notifications
You must be signed in to change notification settings - Fork 185
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Button, Textarea, Link, FixedTabs, View
Button: removed list type, added cell type Textarea: added font-family ListItem: changed indicator prop type View: removed useless preventDefault in onMove () Link: new component doc: spell checking
- Loading branch information
1 parent
41e82c4
commit 59466ee
Showing
13 changed files
with
54 additions
and
45 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
Кнопки бывают двух типов: *default* (default) и *list*. За тип отвечает свойство **type**. | ||
Кнопки бывают двух типов: *default* (default) и *cell*. За тип отвечает свойство **type**. | ||
|
||
Далее идут уровни (**level**). Возможные варианты значения **level** зависят от **type**: | ||
|
||
* type="default": ['1' (default), '2', '3', 'sell', 'buy'] | ||
|
||
* type="list": ['primary' (default), 'danger'] | ||
* type="cell": ['primary' (default), 'danger'] | ||
|
||
Свойства **size** (*m* по-дефолту) и **stretched** (*false* по-дефолту) актуальные только для type="default" |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.Link { | ||
color: map(colors, accentBlue); | ||
text-decoration: none; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import React from 'react'; | ||
import getClassName from '../../helpers/getClassName'; | ||
import classnames from '../../lib/classnames'; | ||
import PropTypes from 'prop-types'; | ||
import './Link.css'; | ||
|
||
const baseClassName = getClassName('Link'); | ||
|
||
const Link = ({children, className, Component, ...restProps}) => ( | ||
<Component className={classnames(baseClassName, className)} {...restProps}> | ||
{children} | ||
</Component> | ||
); | ||
|
||
Link.propTypes = { | ||
children: PropTypes.node, | ||
className: PropTypes.string, | ||
Component: PropTypes.any | ||
}; | ||
|
||
Link.defaultProps = { | ||
Component: 'a' | ||
}; | ||
|
||
export default Link; |
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