Skip to content

Commit

Permalink
docs(v0.32.0): release prep
Browse files Browse the repository at this point in the history
  • Loading branch information
lzcabrera committed Dec 15, 2017
1 parent aaad3b3 commit 4e847f5
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 4 deletions.
8 changes: 4 additions & 4 deletions config/styleguide.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const getStyleguideDir = () => {
}

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

/* eslint-disable no-unused-vars */
const toggleByEnv = (component, toggledOffValue, toggledOnValue) => {
Expand Down Expand Up @@ -158,7 +158,7 @@ module.exports = {
components() {
return compact([
path.resolve('src/components/Card/Card.jsx'),
toggleByEnv('Image', path.resolve('src/components/Image/Image.jsx')),
path.resolve('src/components/Image/Image.jsx'),
])
},
sections: compact([
Expand Down Expand Up @@ -263,8 +263,8 @@ module.exports = {
return compact([
path.resolve('src/components/Button/Button.jsx'),
path.resolve('src/components/Input/Input.jsx'),
toggleByEnv('Checkbox', path.resolve('src/components/Checkbox/Checkbox.jsx')),
toggleByEnv('Radio', path.resolve('src/components/Radio/Radio.jsx')),
path.resolve('src/components/Checkbox/Checkbox.jsx'),
path.resolve('src/components/Radio/Radio.jsx'),
toggleByEnv('Select', path.resolve('src/components/Select/Select.jsx')),
toggleByEnv('Textarea', path.resolve('src/components/Textarea/Textarea.jsx')),
path.resolve('src/components/Tooltip/Tooltip.jsx'),
Expand Down
4 changes: 4 additions & 0 deletions src/components/Checkbox/Checkbox.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ import Choice from '../Choice/Choice'

import styles from './Checkbox.modules.scss'

/**
*
* <span class="docs--badge__new">new</span> <span class="docs--badge__version">v0.32.0</span>
*/
const Checkbox = props => (
<Choice {...props} type="checkbox" inputTypeStyles={styles}>
{checked => {
Expand Down
4 changes: 4 additions & 0 deletions src/components/Image/Image.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ import safeRest from '../../utils/safeRest'
import styles from './Image.modules.scss'
import borderStyles from '../Borders.modules.scss'

/**
*
* <span class="docs--badge__new">new</span> <span class="docs--badge__version">v0.32.0</span>
*/
const Image = ({ src, width, height, alt, rounded, ...rest }) => {
const isCircle = rounded === 'circle'
const isSquare = width === height
Expand Down
4 changes: 4 additions & 0 deletions src/components/Radio/Radio.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ import Choice from '../Choice/Choice'

import styles from './Radio.modules.scss'

/**
*
* <span class="docs--badge__new">new</span> <span class="docs--badge__version">v0.32.0</span>
*/
const Radio = props => (
<Choice {...props} type="radio" inputTypeStyles={styles}>
{(checked, disabled) => {
Expand Down
3 changes: 3 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export { default as Box } from './components/Box/Box'
export { default as Button } from './components/Button/Button'
export { default as ButtonLink } from './components/Link/ButtonLink/ButtonLink'
export { default as Card } from './components/Card/Card'
export { default as Checkbox } from './components/Checkbox/Checkbox'
export { default as ChevronLink } from './components/Link/ChevronLink/ChevronLink'
export { default as DecorativeIcon } from './components/Icons/DecorativeIcon/DecorativeIcon'
export { default as DimpleDivider } from './components/Dividers/DimpleDivider/DimpleDivider'
Expand All @@ -14,11 +15,13 @@ export { default as Grid } from './old-components/Grid/Grid'
export { default as HairlineDivider } from './components/Dividers/HairlineDivider/HairlineDivider'
export { default as Heading } from './components/Typography/Heading/Heading'
export { default as Icon } from './old-components/Icon/Icon'
export { default as Image } from './components/Image/Image'
export { default as Input } from './components/Input/Input'
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 Radio } from './components/Radio/Radio'
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'
Expand Down

0 comments on commit 4e847f5

Please sign in to comment.