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

94 lines
3.3 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} text = 'Bold black page link' />
2019-06-24 14:57:26 +00:00
</Col>
<Col>
<Link type = "action" color = "black" isBold = {true} text = 'Bold black action link' />
2019-06-24 14:57:26 +00:00
</Col>
<Col><Link type = "action" color = "black" dropdownType = 'alwaysDotted' text = 'Simple dropdown' /></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" text = 'Black page link' />
2019-06-24 14:57:26 +00:00
</Col>
<Col>
<Link type = "action" color = "black" text = 'Black action link' />
2019-06-24 14:57:26 +00:00
</Col>
<Col> <Link type = "action" color = "gray" dropdownType = 'appearDottedAfterHover' text = 'Gray dropdown and dotted appear after hover' /></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} text = 'Black hovered page link' />
2019-06-24 14:57:26 +00:00
</Col>
<Col>
<Link type = "action" color = "black" isHovered = {true} text = 'Black hovered action link' />
2019-06-24 14:57:26 +00:00
</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" text = 'Gray page link' />
2019-06-24 14:57:26 +00:00
</Col>
<Col>
<Link type = "action" color = "gray" text = 'Gray action link' />
2019-06-24 14:57:26 +00:00
</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} text = 'Gray hovered page link' />
2019-06-24 14:57:26 +00:00
</Col>
<Col>
<Link type = "action" color = "gray" isHovered = {true} text = 'Gray hovered action link' />
2019-06-24 14:57:26 +00:00
</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" text = 'Blue page link' />
2019-06-24 14:57:26 +00:00
</Col>
<Col>
<Link type = "action" color = "blue" text = 'Blue action link' />
2019-06-24 14:57:26 +00:00
</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} text = 'Blue hovered page link' />
2019-06-24 14:57:26 +00:00
</Col>
<Col>
<Link type = "action" color = "blue" isHovered = {true} text = 'Blue hovered action link' />
2019-06-24 14:57:26 +00:00
</Col>
<Col></Col>
</Row>
2019-06-21 16:02:16 +00:00
</Container>
</>
));