react-building-blocks
Advanced tools
Comparing version 0.4.2 to 0.5.2
'use strict'; | ||
module.exports = { | ||
PageSubtitle: require('./components/PageSubtitle/PageSubtitle'), | ||
PageTitle: require('./components/PageTitle/PageTitle'), | ||
@@ -5,0 +6,0 @@ Sidebar: require('./components/Sidebar/Sidebar'), |
@@ -21,2 +21,3 @@ // npm modules | ||
<ul> | ||
<li><Link to='/components/page-subtitle'>PageSubtitle</Link></li> | ||
<li><Link to='/components/page-title'>PageTitle</Link></li> | ||
@@ -23,0 +24,0 @@ </ul> |
import React, { Component } from 'react'; | ||
import { PageTitle } from 'react-building-blocks'; | ||
import { PageSubtitle, PageTitle } from 'react-building-blocks'; | ||
@@ -11,3 +11,4 @@ class PageTitleDocs extends Component { | ||
<PageTitle>Lorem Ipsum</PageTitle> | ||
<PageTitle>Most Earthquake Damage Is Caused By Shaking</PageTitle> | ||
<PageSubtitle>The shocking truth that will shake you to your core</PageSubtitle> | ||
@@ -14,0 +15,0 @@ <h2>Usage</h2> |
import React, { Component } from 'react'; | ||
import { Link } from 'react-router'; | ||
@@ -8,3 +9,6 @@ class SidebarHeaderDocs extends Component { | ||
<h1>SidebarHeader</h1> | ||
<h2>Demo</h2> | ||
<Link to="/components/sidebar">See the Sidebar demo</Link> | ||
<h2>Usage</h2> | ||
@@ -11,0 +15,0 @@ <h2>Example</h2> |
@@ -1,6 +0,4 @@ | ||
// npm modules | ||
import React, { Component } from 'react'; | ||
import { Link } from 'react-router'; | ||
// app modules | ||
class SidebarModuleDocs extends Component { | ||
@@ -11,3 +9,6 @@ render() { | ||
<h1>SidebarModule</h1> | ||
<h2>Demo</h2> | ||
<Link to="/components/sidebar">See the Sidebar demo</Link> | ||
<h2>Usage</h2> | ||
@@ -14,0 +15,0 @@ <h2>Example</h2> |
@@ -1,6 +0,4 @@ | ||
// npm modules | ||
import React, { Component } from 'react'; | ||
import { Link } from 'react-router'; | ||
// app modules | ||
class SidebarModuleHeaderDocs extends Component { | ||
@@ -11,3 +9,6 @@ render() { | ||
<h1>SidebarModuleHeader</h1> | ||
<h2>Demo</h2> | ||
<Link to="/components/sidebar">See the Sidebar demo</Link> | ||
<h2>Usage</h2> | ||
@@ -14,0 +15,0 @@ <h2>Example</h2> |
@@ -9,2 +9,3 @@ // npm modules | ||
import Home from 'components/Home'; | ||
import PageSubtitle from 'components/PageSubtitleDocs'; | ||
import PageTitle from 'components/PageTitleDocs'; | ||
@@ -31,2 +32,3 @@ import Sidebar from 'components/SidebarDocs'; | ||
<Route component={Components} path='components'> | ||
<Route component={PageSubtitle} path='page-subtitle' /> | ||
<Route component={PageTitle} path='page-title' /> | ||
@@ -33,0 +35,0 @@ <Route component={Sidebar} path='sidebar' /> |
@@ -8,3 +8,3 @@ { | ||
}, | ||
"version": "0.4.2", | ||
"version": "0.5.2", | ||
"scripts": { | ||
@@ -11,0 +11,0 @@ "dev": "cd docs && npm install && open 'http://localhost:8080' && NODE_ENV=development webpack-dev-server --inline --hot", |
module.exports = { | ||
PageSubtitle: require('./components/PageSubtitle/PageSubtitle'), | ||
PageTitle: require('./components/PageTitle/PageTitle'), | ||
@@ -3,0 +4,0 @@ Sidebar: require('./components/Sidebar/Sidebar'), |
Sorry, the diff of this file is too big to display
268609
41
1767