insomnia/packages/insomnia-components/index.js

49 lines
2.2 KiB
JavaScript
Raw Normal View History

2020-04-26 20:33:39 +00:00
import _Breadcrumb from './components/breadcrumb';
import _Button from './components/button';
import _Card from './components/card';
import _CardContainer from './components/card-container';
import _Dropdown from './components/dropdown/dropdown';
import _DropdownDivider from './components/dropdown/dropdown-divider';
import _DropdownItem from './components/dropdown/dropdown-item';
import _GravatarImg from './components/gravatar-img';
import _Header from './components/header';
import _ListGroup from './components/list-group/list-group';
import _ListGroupItem from './components/list-group/list-group-item';
import _UnitTestItem from './components/list-group/unit-test-item';
import _UnitTestResultItem from './components/list-group/unit-test-result-item';
import _MultiSwitch from './components/multi-switch';
2020-04-26 20:33:39 +00:00
import _NoticeTable from './components/notice-table';
import _SvgIcon from './components/svg-icon';
Design sidebar (#2328) * updated lock file * Rolling sidebar from SB into application * Type fix on the method label output * Update packages/insomnia-components/components/sidebar.js Co-authored-by: Opender Singh <opender94@gmail.com> * PR Feedback - Keys, useCallback Hook * stubbing component breakout * PR Feedback - Breaking out most UI elements into components - Filter component in place - Various CSS tweaks * Removing unused file * Updating toggle * Resuable sidebar section (#2359) * Introduce resuable sidebar section * Stop eslint complaining * add react-use * Lint fixes * Make the storybook story less wide * Component development Abstracting out line level components i.e. Section > Header > Filter > Panel > Items Various code fixes * Cleaning up section visibility state * Reverting visibiilty state updater * Adding paths on click for spec scrolling * refreshing package-lock to resolve conflict * PR feedback for sidebar components * Update packages/insomnia-components/components/sidebar/sidebar-header.js Co-authored-by: Opender Singh <opender94@gmail.com> * Including lock * Merge fix * Component structuring, prop clean-up, css updates * Cleaning up components, pr feedback, fixing styling * array index reference clean-up/clarity * Leveraging useToggle rather than manual useState toggling * Cleaning up logs * Hide info section if missing from spec. * Update packages/insomnia-components/components/sidebar/sidebar-responses.js Co-authored-by: Opender Singh <opender94@gmail.com> * Update packages/insomnia-components/components/sidebar/sidebar-schemas.js Co-authored-by: Opender Singh <opender94@gmail.com> * Pull fragment * Destructuring and filter cleanup * Clearing filter value and DOM on section collapse * Merge latest * Merge conflict cleanup Co-authored-by: Opender Singh <opender94@gmail.com>
2020-07-22 13:13:06 +00:00
import _Sidebar from './components/sidebar/';
import _RadioButtonGroup from './components/radio-button-group';
2020-04-26 20:33:39 +00:00
import _Switch from './components/switch';
import _ToggleSwitch from './components/toggle-switch';
2020-04-26 20:33:39 +00:00
import * as table from './components/table';
export const Breadcrumb = _Breadcrumb;
export const Button = _Button;
export const Card = _Card;
export const CardContainer = _CardContainer;
export const Dropdown = _Dropdown;
export const DropdownDivider = _DropdownDivider;
export const DropdownItem = _DropdownItem;
export const GravatarImg = _GravatarImg;
export const Header = _Header;
export const ListGroup = _ListGroup;
export const ListGroupItem = _ListGroupItem;
export const UnitTestItem = _UnitTestItem;
export const UnitTestResultItem = _UnitTestResultItem;
export const MultiSwitch = _MultiSwitch;
2020-04-26 20:33:39 +00:00
export const NoticeTable = _NoticeTable;
export const RadioButtonGroup = _RadioButtonGroup;
2020-04-26 20:33:39 +00:00
export const SvgIcon = _SvgIcon;
export const Switch = _Switch;
export const Sidebar = _Sidebar;
2020-04-26 20:33:39 +00:00
export const Table = table.Table;
export const TableBody = table.TableBody;
export const TableData = table.TableData;
export const TableHead = table.TableHead;
export const TableHeader = table.TableHeader;
export const TableRow = table.TableRow;
export const ToggleSwitch = _ToggleSwitch;