Skip to content

Commit

Permalink
docs(v0.31.0): Prep: add badge and update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
lzcabrera committed Dec 6, 2017
1 parent 433899e commit 73b96d3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/styleguide.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const { version } = require('../package.json')
const styleguidistEnv = process.env.STYLEGUIDIST_ENV || 'dev' // dev, staging, production

// Append strings to this array to enable components in staging, e.g. `['Box', 'ExpandCollapse']`
const enabledInStaging = ['Responsive', 'Image', 'Checkbox', 'Radio', 'Select', 'Textarea']
const enabledInStaging = ['Image', 'Checkbox', 'Radio', 'Select', 'Textarea']

/* eslint-disable no-unused-vars */
const toggleByEnv = (component, toggledOffValue, toggledOnValue) => {
Expand Down Expand Up @@ -122,7 +122,7 @@ module.exports = {
return compact([
toggleByEnv('FlexGrid', path.resolve('src/components/FlexGrid/FlexGrid.jsx')),
path.resolve('src/components/Box/Box.jsx'),
toggleByEnv('Responsive', path.resolve('src/components/Responsive/Responsive.jsx')),
path.resolve('src/components/Responsive/Responsive.jsx'),
])
},
sections: [
Expand Down
1 change: 1 addition & 0 deletions src/components/Responsive/Responsive.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const breakpoints = {
/**
* Respond to device features, most commonly the browser viewport size.
*
* <span class="docs--badge__new">new</span> <span class="docs--badge__version">v0.31.0</span>
*/
const Responsive = ({ minWidth, maxWidth, query, children, ...rest }) => {
if (!minWidth && !maxWidth) {
Expand Down
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export { default as Link } from './components/Link/Link'
export { default as Notification } from './components/Notification/Notification'
export { default as OrderedList } from './components/Lists/OrderedList/OrderedList'
export { default as Paragraph } from './components/Typography/Paragraph/Paragraph'
export { default as Responsive } from './components/Responsive/Responsive'
export { default as SelectorCounter } from './old-components/SelectorCounter/SelectorCounter'
export { default as Small } from './components/Typography/Small/Small'
export { default as Spinner } from './old-components/Spinner/Spinner'
Expand Down

0 comments on commit 73b96d3

Please sign in to comment.