File tree Expand file tree Collapse file tree 7 files changed +12
-6
lines changed Expand file tree Collapse file tree 7 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -150,12 +150,17 @@ All Fields except `<Info />` accept an `attr` property to bind them to a key in
150150* ` <ColorPicker /> ` : renders as a popup color-picker, useful for CSS color hex value strings
151151* ` <Flaglist /> ` : renders as a list of checkboxes, useful for ` + ` -joined flag lists like ` data[].mode `
152152* ` <MultiFormatTextEditor /> ` : renders as a WYSIWYG editor, useful for text like ` layout.title `
153- * ` <Button/> ` : simple button component, useful when combined with ` <SingleSidebarItem/> ` to add as menu item
154153
155154<p align =" center " >
156155 <img src =" examples/components.png " alt =" Components " width =" 432 " height =" 692 " border =" 1 " >
157156</p >
158157
158+ ### Widgets
159+
160+ Simple component that takes in props and renders.
161+
162+ * ` <Button/> ` : simple button component, useful when combined with ` <SingleSidebarItem/> ` to add as menu item
163+
159164### Special-Purpose Containers
160165
161166* ` <TraceAccordion /> ` : ` <Panel /> ` whose children are replicated into ` <Folds /> ` connected to traces via ` connectTraceToPlot() ` .
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import PropTypes from 'prop-types';
22import React , { cloneElement , Component } from 'react' ;
33import SidebarGroup from './sidebar/SidebarGroup' ;
44import { bem } from 'lib' ;
5- import SingleSidebarItem from './sidebar /SingleSidebarItem' ;
5+ import SingleSidebarItem from './containers /SingleSidebarItem' ;
66
77class PanelsWithSidebar extends Component {
88 constructor ( props ) {
File renamed without changes.
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import TraceAccordion from './TraceAccordion';
77import TraceMarkerSection from './TraceMarkerSection' ;
88import { LayoutPanel , AxesFold } from './derived' ;
99import TraceRequiredPanel from './TraceRequiredPanel' ;
10- import SingleSidebarItem from '../sidebar /SingleSidebarItem' ;
10+ import SingleSidebarItem from './SingleSidebarItem' ;
1111
1212export {
1313 AnnotationAccordion ,
Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ import {
2020 LayoutNumericFractionInverse ,
2121} from './derived' ;
2222import { LineDashSelector , LineShapeSelector } from './lineSelectors' ;
23- import Button from '../widgets/Button' ;
2423
2524export {
2625 AnnotationArrowRef ,
@@ -44,5 +43,4 @@ export {
4443 Numeric ,
4544 SymbolSelector ,
4645 TraceSelector ,
47- Button ,
4846} ;
Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ import {
2020 Numeric ,
2121 SymbolSelector ,
2222 TraceSelector ,
23- Button ,
2423} from './fields' ;
2524
2625import {
@@ -37,6 +36,8 @@ import {
3736 SingleSidebarItem ,
3837} from './containers' ;
3938
39+ import { Button } from './widgets' ;
40+
4041import PanelMenuWrapper from './PanelMenuWrapper' ;
4142
4243export {
Original file line number Diff line number Diff line change 1+ import Button from './Button' ;
2+ export { Button } ;
You can’t perform that action at this time.
0 commit comments