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

96 lines
3.1 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', () => (
<>
<Container fluid>
<Row style={headerStyle}>
<Col>Page links:</Col>
<Col>Action links:</Col>
</Row>
<Row style={rowStyle}>
<Col>
<Link type="page" color="black" href="https://github.com" isBold={true}>Bold black page link</Link>
</Col>
2019-06-24 14:57:26 +00:00
<Col>
<Link type="action" color="black" isBold={true}>Bold black action link</Link>
</Col>
</Row>
<Row style={rowStyle}>
<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>
</Row>
<Row style={rowStyle}>
<Col>
<Link type="page" color="black" href="https://github.com" isHovered={true}>Black hovered page link</Link>
2019-06-24 14:57:26 +00:00
</Col>
<Col>
<Link type="action" color="black" isHovered={true}>Black hovered action link</Link>
2019-06-24 14:57:26 +00:00
</Col>
</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>
2019-06-24 14:57:26 +00:00
</Col>
<Col>
<Link type="action" color="gray">Gray action link</Link>
2019-06-24 14:57:26 +00:00
</Col>
</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>
2019-06-24 14:57:26 +00:00
</Col>
<Col>
<Link type="action" color="gray" isHovered={true}>Gray hovered action link</Link>
2019-06-24 14:57:26 +00:00
</Col>
</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>
2019-06-24 14:57:26 +00:00
</Col>
<Col>
<Link type="action" color="blue">Blue action link</Link>
2019-06-24 14:57:26 +00:00
</Col>
</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>
2019-06-24 14:57:26 +00:00
</Col>
<Col>
<Link type="action" color="blue" isHovered={true}>Blue hovered action link</Link>
2019-06-24 14:57:26 +00:00
</Col>
</Row>
<Row style={rowStyle}>
<Col>
<Link type="page" color="black" href="https://github.com" isSemitransparent={true}>Semitransparent black page link</Link>
</Col>
<Col>
<Link type="action" color="black" isSemitransparent={true}>Semitransparent black action link</Link>
</Col>
</Row>
</Container>
</>
));