From 5dbafd341281ebce731eceeeccea2cae57884bae Mon Sep 17 00:00:00 2001 From: jquense Date: Sat, 14 Nov 2015 12:33:12 -0500 Subject: [PATCH] [changed] Split the Navbar component into sub-components --- docs/examples/.eslintrc | 5 +- docs/examples/CollapsibleNav.js | 24 ---- docs/examples/NavbarBasic.js | 6 +- docs/examples/NavbarCollapsible.js | 37 +++-- docs/examples/NavbarForm.js | 21 +++ docs/examples/NavbarTextLink.js | 20 +++ docs/src/ComponentsPage.js | 83 +++++++---- docs/src/NavMain.js | 19 ++- docs/src/PropTable.js | 2 +- docs/src/ReactPlayground.js | 2 +- docs/src/Samples.js | 3 +- src/Nav.js | 44 +++--- src/NavBrand.js | 40 ++---- src/Navbar.js | 219 ++++++++++++----------------- src/NavbarBrand.js | 32 +++++ src/NavbarCollapse.js | 29 ++++ src/NavbarHeader.js | 24 ++++ src/NavbarToggle.js | 42 ++++++ src/index.js | 1 + test/CollapsibleNavSpec.js | 94 ------------- test/NavBrandSpec.js | 12 +- test/NavbarSpec.js | 170 ++++++++++++---------- 22 files changed, 487 insertions(+), 442 deletions(-) delete mode 100644 docs/examples/CollapsibleNav.js create mode 100644 docs/examples/NavbarForm.js create mode 100644 docs/examples/NavbarTextLink.js create mode 100644 src/NavbarBrand.js create mode 100644 src/NavbarCollapse.js create mode 100644 src/NavbarHeader.js create mode 100644 src/NavbarToggle.js delete mode 100644 test/CollapsibleNavSpec.js diff --git a/docs/examples/.eslintrc b/docs/examples/.eslintrc index 33da9224f3..f6e91e7bc0 100644 --- a/docs/examples/.eslintrc +++ b/docs/examples/.eslintrc @@ -34,7 +34,10 @@ "ListGroup", "ListGroupItem", "Nav", - "NavBrand", + "NavbarBrand", + "NavbarHeader", + "NavbarToggle", + "NavbarCollapse", "Navbar", "NavDropdown", "NavItem", diff --git a/docs/examples/CollapsibleNav.js b/docs/examples/CollapsibleNav.js deleted file mode 100644 index 6cf05235df..0000000000 --- a/docs/examples/CollapsibleNav.js +++ /dev/null @@ -1,24 +0,0 @@ -const navbarInstance = ( - - React-Bootstrap - {/* This is the eventKey referenced */} - - - - -); - -ReactDOM.render(navbarInstance, mountNode); diff --git a/docs/examples/NavbarBasic.js b/docs/examples/NavbarBasic.js index 22180aa984..b85f031484 100644 --- a/docs/examples/NavbarBasic.js +++ b/docs/examples/NavbarBasic.js @@ -1,6 +1,10 @@ const navbarInstance = ( - React-Bootstrap + + + React-Bootstrap + +