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

94 lines
3.2 KiB
JavaScript
Raw Normal View History

2019-06-21 16:02:16 +00:00
import React from 'react';
import { storiesOf } from '@storybook/react';
import { Link } from 'asc-web-components';
2019-06-24 14:57:26 +00:00
import { Container, Row, Col } from 'reactstrap';
2019-06-21 16:02:16 +00:00
const rowStyle = {
marginTop: 8,
paddingLeft: 20,
fontSize: 12
};
2019-06-24 14:57:26 +00:00
const headerStyle = {
marginTop: 8,
paddingLeft: 20,
fontSize: 16,
};
2019-06-21 16:02:16 +00:00
storiesOf('Components|Link', module)
.addParameters({ viewport: { defaultViewport: 'responsive' } })
.addParameters({ options: { showAddonPanel: false } })
2019-06-21 16:02:16 +00:00
.add('all', () => (
<>
2019-06-21 16:02:16 +00:00
<Container fluid>
2019-06-24 14:57:26 +00:00
<Row style={headerStyle}>
<Col>Page links:</Col>
<Col>Action links:</Col>
<Col>Another using of action links:</Col>
2019-06-21 16:02:16 +00:00
</Row>
<Row style={rowStyle}>
2019-06-24 14:57:26 +00:00
<Col>
<Link type = "page" color = "black" href="https://github.com" isBold = {true}>Bold black page link</Link>
</Col>
<Col>
<Link type = "action" color = "black" isBold = {true}>Bold black action link</Link>
</Col>
<Col><Link type = "action" color = "black" dropdownType = 'alwaysDotted'>Simple dropdown</Link></Col>
2019-06-21 16:02:16 +00:00
</Row>
<Row style={rowStyle}>
2019-06-24 14:57:26 +00:00
<Col>
<Link type = "page" color = "black" href="https://github.com">Black page link</Link>
</Col>
<Col>
<Link type = "action" color = "black">Black action link</Link>
</Col>
<Col> <Link type = "action" color = "gray" dropdownType = 'appearDottedAfterHover'>Gray dropdown and dotted appear after hover</Link></Col>
2019-06-21 16:02:16 +00:00
</Row>
<Row style={rowStyle}>
2019-06-24 14:57:26 +00:00
<Col>
<Link type = "page" color = "black" href="https://github.com" isHovered = {true}>Black hovered page link</Link>
</Col>
<Col>
<Link type = "action" color = "black" isHovered = {true}>Black hovered action link</Link>
</Col>
<Col></Col>
2019-06-21 16:02:16 +00:00
</Row>
<Row style={rowStyle}>
2019-06-24 14:57:26 +00:00
<Col>
<Link type = "page" color = "gray" href="https://github.com">Gray page link</Link>
</Col>
<Col>
<Link type = "action" color = "gray">Gray action link</Link>
</Col>
<Col></Col>
2019-06-21 16:02:16 +00:00
</Row>
<Row style={rowStyle}>
2019-06-24 14:57:26 +00:00
<Col>
<Link type = "page" color = "gray" href="https://github.com" isHovered = {true}>Gray hovered page link</Link>
</Col>
<Col>
<Link type = "action" color = "gray" isHovered = {true}>Gray hovered action link</Link>
</Col>
<Col></Col>
2019-06-21 16:02:16 +00:00
</Row>
<Row style={rowStyle}>
2019-06-24 14:57:26 +00:00
<Col>
<Link type = "page" color = "blue" href="https://github.com">Blue page link</Link>
</Col>
<Col>
<Link type = "action" color = "blue">Blue action link</Link>
</Col>
<Col></Col>
2019-06-21 16:02:16 +00:00
</Row>
<Row style={rowStyle}>
2019-06-24 14:57:26 +00:00
<Col>
<Link type = "page" color = "blue" href="https://github.com" isHovered = {true}>Blue hovered page link</Link>
</Col>
<Col>
<Link type = "action" color = "blue" isHovered = {true}>Blue hovered action link</Link>
</Col>
<Col></Col>
</Row>
2019-06-21 16:02:16 +00:00
</Container>
</>
));