@@ -5,34 +5,34 @@ import {
55} from '@cjdev/visual-stack/lib/components/PageHeader' ;
66import PageContent from '@cjdev/visual-stack/lib/components/PageContent' ;
77// 1. add an import for your demo
8+ import AlertDocs from './alert' ;
9+ import BadgeDocs from './badge' ;
810import BlankSlateDocs from './blankslate' ;
911import BoxDocs from './box' ;
10- import ButtonWithDropdownDocs from './button-with-dropdown' ;
1112import ButtonDocs from './button' ;
12- import AlertDocs from './alert' ;
13+ import ButtonWithDropdownDocs from './button-with-dropdown' ;
14+ import CardDocs from './card' ;
15+ import CollapsiblePanelDocs from './collapsiblepanel' ;
1316import DatePickerDocs from './datepicker' ;
17+ import DrawerDocs from './drawer' ;
18+ import ExpandingInputButtonDocs from './expanding-input-button' ;
1419import FormDocs from './form' ;
1520import ListDocs from './list' ;
21+ import ListViewDocs from './listview' ;
22+ import LoadingAnimationDocs from './loading-animation' ;
1623import ModalDocs from './modal' ;
17- import PanelDocs from './panel' ;
1824import PageHeaderDocs from './pageheader' ;
25+ import PaginationDocs from './pagination' ;
26+ import PanelDocs from './panel' ;
27+ import PercentSliderDocs from './percentslider' ;
28+ import PopoverDocs from './popover' ;
1929import SelectDocs from './select' ;
2030import SideNavDocs from './sidenav' ;
2131import SlidingPanelDocs from './slidingpanel' ;
2232import SpinnerDocs from './spinner' ;
23- import TableDocs from './table' ;
2433import TabLayoutDocs from './tablayout' ;
25- import CardDocs from './card' ;
26- import BadgeDocs from './badge' ;
27- import ListViewDocs from './listview' ;
28- import ExpandingInputButtonDocs from './expanding-input-button' ;
29- import LoadingAnimationDocs from './loading-animation' ;
30- import PopoverDocs from './popover' ;
31-
32- import CollapsiblePanelDocs from './collapsiblepanel' ;
33- import PaginationDocs from './pagination' ;
34- import PercentSliderDocs from './percentslider' ;
35- import TopNavDocs from "./topnav" ;
34+ import TableDocs from './table' ;
35+ import TopNavDocs from './topnav' ;
3636
3737const routeComponentMap = { } ;
3838
@@ -41,6 +41,8 @@ const addComponentRoute = (path, linkName, component) => {
4141} ;
4242
4343// 2. add your demo to the routeComponentMap
44+ addComponentRoute ( 'alert' , 'Alert' , < AlertDocs /> ) ;
45+ addComponentRoute ( 'badge' , 'Badge' , < BadgeDocs /> ) ;
4446addComponentRoute ( 'blankslate' , 'Blank Slate' , < BlankSlateDocs /> ) ;
4547addComponentRoute ( 'box' , 'Box' , < BoxDocs /> ) ;
4648addComponentRoute ( 'button' , 'Button' , < ButtonDocs /> ) ;
@@ -49,46 +51,40 @@ addComponentRoute(
4951 'Button With Dropdown' ,
5052 < ButtonWithDropdownDocs />
5153) ;
52- addComponentRoute ( 'alert' , 'Alert' , < AlertDocs /> ) ;
54+ addComponentRoute ( 'card' , 'Card' , < CardDocs /> ) ;
55+ addComponentRoute (
56+ 'collapsiblepanel' ,
57+ 'Collapsible Panel' ,
58+ < CollapsiblePanelDocs />
59+ ) ;
60+ addComponentRoute (
61+ 'expanding-input-button' ,
62+ 'Expanding Input Button' ,
63+ < ExpandingInputButtonDocs />
64+ ) ;
65+ addComponentRoute ( 'datepicker' , 'Date Picker' , < DatePickerDocs /> ) ;
66+ addComponentRoute ( 'drawer' , 'Drawer' , < DrawerDocs /> ) ;
5367addComponentRoute ( 'form' , 'Form' , < FormDocs /> ) ;
5468addComponentRoute ( 'list' , 'List' , < ListDocs /> ) ;
55- addComponentRoute ( 'modal' , 'Modal' , < ModalDocs /> ) ;
56- addComponentRoute ( 'panel' , 'Panel' , < PanelDocs /> ) ;
57- addComponentRoute ( 'pageheader' , 'Page Header' , < PageHeaderDocs /> ) ;
58- addComponentRoute ( 'percentslider' , 'Percent Slider' , < PercentSliderDocs /> ) ;
59- addComponentRoute ( 'select' , 'Select' , < SelectDocs /> ) ;
60- addComponentRoute ( 'sidenav' , 'SideNav' , < SideNavDocs /> ) ;
61- addComponentRoute ( 'topnav' , 'TopNav' , < TopNavDocs /> ) ;
62- addComponentRoute ( 'slidingpanel' , 'Sliding Panel' , < SlidingPanelDocs /> ) ;
69+ addComponentRoute ( 'listview' , 'List View' , < ListViewDocs /> ) ;
6370addComponentRoute (
6471 'loading-animation' ,
6572 'Loading Animation' ,
6673 < LoadingAnimationDocs />
6774) ;
75+ addComponentRoute ( 'modal' , 'Modal' , < ModalDocs /> ) ;
76+ addComponentRoute ( 'pageheader' , 'Page Header' , < PageHeaderDocs /> ) ;
77+ addComponentRoute ( 'pagination' , 'Pagination' , < PaginationDocs /> ) ;
78+ addComponentRoute ( 'panel' , 'Panel' , < PanelDocs /> ) ;
79+ addComponentRoute ( 'percentslider' , 'Percent Slider' , < PercentSliderDocs /> ) ;
6880addComponentRoute ( 'popover' , 'Popover' , < PopoverDocs /> ) ;
81+ addComponentRoute ( 'select' , 'Select' , < SelectDocs /> ) ;
82+ addComponentRoute ( 'sidenav' , 'SideNav' , < SideNavDocs /> ) ;
83+ addComponentRoute ( 'slidingpanel' , 'Sliding Panel' , < SlidingPanelDocs /> ) ;
6984addComponentRoute ( 'spinner' , 'Spinner' , < SpinnerDocs /> ) ;
70- addComponentRoute ( 'table' , 'Table' , < TableDocs /> ) ;
7185addComponentRoute ( 'tablayout' , 'TabLayout' , < TabLayoutDocs /> ) ;
72- addComponentRoute ( 'card' , 'Card' , < CardDocs /> ) ;
73- addComponentRoute ( 'badge' , 'Badge' , < BadgeDocs /> ) ;
74- addComponentRoute ( 'listview' , 'List View' , < ListViewDocs /> ) ;
75- addComponentRoute ( 'pagination' , 'Pagination' , < PaginationDocs /> ) ;
76- addComponentRoute (
77- 'expanding-input-button' ,
78- 'Expanding Input Button' ,
79- < ExpandingInputButtonDocs />
80- ) ;
81- addComponentRoute (
82- 'collapsiblepanel' ,
83- 'Collapsible Panel' ,
84- < CollapsiblePanelDocs />
85- ) ;
86- addComponentRoute (
87- 'button-with-dropdown' ,
88- 'Button With Dropdown' ,
89- < ButtonWithDropdownDocs />
90- ) ;
91- addComponentRoute ( 'datepicker' , 'Date Picker' , < DatePickerDocs /> ) ;
86+ addComponentRoute ( 'table' , 'Table' , < TableDocs /> ) ;
87+ addComponentRoute ( 'topnav' , 'TopNav' , < TopNavDocs /> ) ;
9288
9389const ComponentDocs = ( { params } ) => {
9490 const routeData = routeComponentMap [ params . componentName ] ;
0 commit comments