mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 14:49:53 +00:00
4f39486eb7
* Migrating dimensions, latest SVG, stubbing sidebar * Revert "Migrating dimensions, latest SVG, stubbing sidebar" This reverts commit5014a68f52
. * Revert "Revert "Migrating dimensions, latest SVG, stubbing sidebar"" This reverts commit28c130c8d8
. * 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
139 lines
5.0 KiB
JavaScript
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>
|
|
);
|