insomnia/packages/insomnia-components/components/card.stories.js
Mike Ellan 4f39486eb7
Storybook Sidebar Provisioning & WIP Implementation (#2125)
* Migrating dimensions, latest SVG, stubbing sidebar

* Revert "Migrating dimensions, latest SVG, stubbing sidebar"

This reverts commit 5014a68f52.

* Revert "Revert "Migrating dimensions, latest SVG, stubbing sidebar""

This reverts commit 28c130c8d8.

* Post merge bootstrap & build

* Linting

* Updating Story Heirarchy

* Migrating legacy tooltip component

* Reverting spacing integration into core dimensions

* Cleaning up comments, tweaking CSS var usage

* Removing static height

* Cleaning up static CSS values, re-organizing sliding panel, fixing search icon

* adding flow def for autobind in new SB instance

* PR feedback, removing new vars/updating markup

* Fixing lint > flow error on type
2020-05-14 14:00:29 -04:00

139 lines
5.0 KiB
JavaScript

import React from 'react';
import Card from './card';
import CardContainer from './card-container';
import { boolean, text, withKnobs } from '@storybook/addon-knobs';
import { SvgIcon } from '../index';
import { IconEnum } from './svg-icon';
export default {
title: '1st Party | Card',
decorators: [withKnobs],
};
export const _default = () => (
<Card
tagLabel={text('Label', 'OpenAPI 3.0')}
docTitle={text('Title', 'Cloud OS Login')}
docVersion={text('Version', 'v2.8.4')}
docBranch={text('Branch', 'feat/small-changes')}
docLog={text('Log', '2 hours ago by gschier')}
docMenu={<SvgIcon icon={IconEnum.ellipsis} />}
/>
);
export const _selectable = () => (
<Card
tagLabel={text('Label', 'OpenAPI 3.0')}
docTitle={text('Title', 'Cloud OS Login')}
docVersion={text('Version', 'v2.8.4')}
docBranch={text('Branch', 'feat/small-changes')}
docLog={text('Log', '2 hours ago by gschier')}
docMenu={<SvgIcon icon={IconEnum.ellipsis} />}
selectable
/>
);
export const _deck = () => (
<CardContainer>
<Card
tagLabel={text('Label', 'OpenAPI 3.0')}
docTitle={text('Title', 'Cloud OS Login')}
docVersion={text('Version', 'v2.8.4')}
docBranch={text('Branch', 'feat/small-changes')}
docLog={text('Log', '2 hours ago by gschier')}
docMenu={<SvgIcon icon={IconEnum.ellipsis} />}
selectable={boolean('Selectable?', false)}
/>
<Card
tagLabel={text('Label', 'OpenAPI 3.0')}
docTitle={text('Title', 'Cloud OS Login')}
docVersion={text('Version', 'v2.8.4')}
docBranch={text('Branch', 'feat/small-changes')}
docLog={text('Log', '2 hours ago by gschier')}
docMenu={<SvgIcon icon={IconEnum.ellipsis} />}
selectable={boolean('Selectable?', false)}
/>
<Card
tagLabel={text('Label', 'OpenAPI 3.0')}
docTitle={text('Title', 'Cloud OS Login')}
docVersion={text('Version', 'v2.8.4')}
docBranch={text('Branch', 'feat/small-changes')}
docLog={text('Log', '2 hours ago by gschier')}
docMenu={<SvgIcon icon={IconEnum.ellipsis} />}
selectable={boolean('Selectable?', false)}
/>
<Card
tagLabel={text('Label', 'OpenAPI 3.0')}
docTitle={text('Title', 'Cloud OS Login')}
docVersion={text('Version', 'v2.8.4')}
docBranch={text('Branch', 'feat/small-changes')}
docLog={text('Log', '2 hours ago by gschier')}
docMenu={<SvgIcon icon={IconEnum.ellipsis} />}
selectable={boolean('Selectable?', false)}
/>
<Card
tagLabel={text('Label', 'OpenAPI 3.0')}
docTitle={text('Title', 'Cloud OS Login')}
docVersion={text('Version', 'v2.8.4')}
docBranch={text('Branch', 'feat/small-changes')}
docLog={text('Log', '2 hours ago by gschier')}
docMenu={<SvgIcon icon={IconEnum.ellipsis} />}
selectable={boolean('Selectable?', false)}
/>
<Card
tagLabel={text('Label', 'OpenAPI 3.0')}
docTitle={text('Title', 'Cloud OS Login')}
docVersion={text('Version', 'v2.8.4')}
docBranch={text('Branch', 'feat/small-changes')}
docLog={text('Log', '2 hours ago by gschier')}
docMenu={<SvgIcon icon={IconEnum.ellipsis} />}
selectable={boolean('Selectable?', false)}
/>
<Card
tagLabel={text('Label', 'OpenAPI 3.0')}
docTitle={text('Title', 'Cloud OS Login')}
docVersion={text('Version', 'v2.8.4')}
docBranch={text('Branch', 'feat/small-changes')}
docLog={text('Log', '2 hours ago by gschier')}
docMenu={<SvgIcon icon={IconEnum.ellipsis} />}
selectable={boolean('Selectable?', false)}
/>
<Card
tagLabel={text('Label', 'OpenAPI 3.0')}
docTitle={text('Title', 'Cloud OS Login')}
docVersion={text('Version', 'v2.8.4')}
docBranch={text('Branch', 'feat/small-changes')}
docLog={text('Log', '2 hours ago by gschier')}
docMenu={<SvgIcon icon={IconEnum.ellipsis} />}
selectable={boolean('Selectable?', false)}
/>
<Card
tagLabel={text('Label', 'OpenAPI 3.0')}
docTitle={text('Title', 'Cloud OS Login')}
docVersion={text('Version', 'v2.8.4')}
docBranch={text('Branch', 'feat/small-changes')}
docLog={text('Log', '2 hours ago by gschier')}
docMenu={<SvgIcon icon={IconEnum.ellipsis} />}
selectable={boolean('Selectable?', false)}
/>
<Card
tagLabel={text('Label', 'OpenAPI 3.0')}
docTitle={text('Title', 'Cloud OS Login')}
docVersion={text('Version', 'v2.8.4')}
docBranch={text('Branch', 'feat/small-changes')}
docLog={text('Log', '2 hours ago by gschier')}
docMenu={<SvgIcon icon={IconEnum.ellipsis} />}
selectable={boolean('Selectable?', false)}
/>
<Card
tagLabel={text('Label', 'OpenAPI 3.0')}
docTitle={text('Title', 'Cloud OS Login')}
docVersion={text('Version', 'v2.8.4')}
docBranch={text('Branch', 'feat/small-changes')}
docLog={text('Log', '2 hours ago by gschier')}
docMenu={<SvgIcon icon={IconEnum.ellipsis} />}
selectable={boolean('Selectable?', false)}
/>
</CardContainer>
);