DocSpace-buildtools/web/ASC.Web.Components/example/stories/link/all/all.link.stories.js

83 lines
3.6 KiB
JavaScript

import React from 'react';
import { storiesOf } from '@storybook/react';
import { Link } from 'asc-web-components';
import { Container, Row } from 'reactstrap';
const rowStyle = {
marginTop: 8,
paddingLeft: 20,
fontSize: 12
};
storiesOf('Components|Link', module)
.addParameters({ viewport: { defaultViewport: 'responsive' } })
.addParameters({ options: { showAddonPanel: false } })
.add('all', () => (
<>
<Container fluid>
<Row style={rowStyle}>
<Link type = "page" color = "black" href="https://github.com" >Page link</Link>
</Row>
<Row style={rowStyle}>
<Link type = "page" color = "black" href="https://github.com" isHovered = {true}>Page link hovered</Link>
</Row>
<Row style={rowStyle}>
<Link type = "page" color = "black" href="https://github.com" isBold = {true}>Bold page link</Link>
</Row>
<Row style={rowStyle}>
<Link type = "page" color = "gray">Page link</Link>
</Row>
<Row style={rowStyle}>
<Link type = "page" color = "gray" href="https://github.com" isHovered = {true}>Page link hovered</Link>
</Row>
<Row style={rowStyle}>
<Link type = "page" color = "blue" href="https://github.com" >Page link</Link>
</Row>
<Row style={rowStyle}>
<Link type = "page" color = "blue" href="https://github.com" isHovered = {true}>Page link hovered</Link>
</Row>
<Row style={rowStyle}>
<Link type = "action" color = "black" isHoverDotted = {true}>Action link</Link>
</Row>
<Row style={rowStyle}>
<Link type = "action" color = "black" isHovered = {true} isHoverDotted = {true}>Action link hovered</Link>
</Row>
<Row style={rowStyle}>
<Link type = "action" color = "black" isDotted = {true} isHoverDotted = {true}>Action link dotted</Link>
</Row>
<Row style={rowStyle}>
<Link type = "action" color = "gray" isHoverDotted = {true}>Action link</Link>
</Row>
<Row style={rowStyle}>
<Link type = "action" color = "gray" isHovered = {true} isHoverDotted = {true}>Action link hovered</Link>
</Row>
<Row style={rowStyle}>
<Link type = "action" color = "gray" isDotted = {true} isHoverDotted = {true}>Action link dotted</Link>
</Row>
<Row style={rowStyle}>
<Link type = "action" color = "blue" isHoverDotted = {true}>Action link</Link>
</Row>
<Row style={rowStyle}>
<Link type = "action" color = "blue" isHovered = {true} isHoverDotted = {true}>Action link hovered</Link>
</Row>
<Row style={rowStyle}>
<Link type = "action" color = "blue" isDotted = {true} isHoverDotted = {true}>Action link dotted</Link>
</Row>
<Row style={rowStyle}>
Sorting:&nbsp;<Link type = "action" color = "black" isDotted = {true} isDropdown = {true} dropdownColor = 'sorting' isHoverDotted = {true}>Last name</Link>
</Row>
<Row style={rowStyle}>
<Link type = "action" color = "profile" isDropdown = {true} dropdownColor = 'profile' isHoverDotted = {true}>My profile</Link>
</Row>
<Row style={rowStyle}>
Show on page:&nbsp;<Link type = "action" color = "black" isDotted = {true} isDropdown = {true} dropdownColor = 'number'>25</Link>
</Row>
<Row style={rowStyle}>
<Link type = "action" color = "black" isDropdown = {true} dropdownColor = 'email' displayDropdownAfterHover = {true}>Dropdown appear after hover</Link>
</Row>
<Row style={rowStyle}>
<Link type = "action" color = "filter" isDropdown = {true} dropdownColor = 'filter' isDropdown = {true} isDotted = {true}>Some group filter</Link>
</Row>
</Container>
</>
));