Skip to content

Commit

Permalink
feat: prep select, textarea, and inputfeedback for release
Browse files Browse the repository at this point in the history
- add or adjust badges in docs
- add new components to package
  • Loading branch information
theetrain committed Jan 4, 2018
1 parent 81ea604 commit cbc5862
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 14 deletions.
11 changes: 4 additions & 7 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 = ['Select', 'Textarea', 'FlexGrid', 'InputFeedback']
const enabledInStaging = ['FlexGrid']

/* eslint-disable no-unused-vars */
const toggleByEnv = (component, toggledOffValue, toggledOnValue) => {
Expand Down Expand Up @@ -265,12 +265,9 @@ module.exports = {
path.resolve('src/components/Input/Input.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')),
toggleByEnv(
'InputFeedback',
path.resolve('src/components/InputFeedback/InputFeedback.jsx')
),
path.resolve('src/components/Select/Select.jsx'),
path.resolve('src/components/Textarea/Textarea.jsx'),
path.resolve('src/components/InputFeedback/InputFeedback.jsx'),
path.resolve('src/components/Tooltip/Tooltip.jsx'),
path.resolve('src/old-components/SelectorCounter/SelectorCounter.jsx'),
])
Expand Down
2 changes: 0 additions & 2 deletions src/components/Box/Box.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ const getBetweenClasses = (scale, inline, desktop) => {

/**
* Apply spacing within or around components.
*
* <span class="docs--badge__new">new!</span> <span class="docs--badge__version">v0.29.0</span>
*/
const Box = ({
tag,
Expand Down
2 changes: 1 addition & 1 deletion src/components/Checkbox/Checkbox.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import styles from './Checkbox.modules.scss'

/**
*
* <span class="docs--badge__new">new</span> <span class="docs--badge__version">v0.32.0</span>
* <span class="docs--badge__version">v0.32.0</span>
*/
const Checkbox = props => (
<Choice {...props} type="checkbox" inputTypeStyles={styles}>
Expand Down
2 changes: 1 addition & 1 deletion src/components/ExpandCollapse/Accordion/Accordion.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import Panel from '../Panel/Panel'
/**
* A specialized `ExpandCollapse` in which only one panel can be open at a time.
*
* <span class="docs--badge__new">new!</span> <span class="docs--badge__version">v0.30.0</span>
* <span class="docs--badge__version">v0.30.0</span>
*/
class Accordion extends React.Component {
constructor(props) {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Image/Image.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import borderStyles from '../Borders.modules.scss'

/**
*
* <span class="docs--badge__new">new</span> <span class="docs--badge__version">v0.32.0</span>
* <span class="docs--badge__version">v0.32.0</span>
*/
const Image = ({ src, width, height, alt, rounded, ...rest }) => {
const isCircle = rounded === 'circle'
Expand Down
3 changes: 3 additions & 0 deletions src/components/Input/Input.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ import positionStyles from '../Position.modules.scss'
import formStyles from '../Forms.modules.scss'
import styles from './Input.modules.scss'

/**
* <span class="docs--badge__updated">updated</span> <span class="docs--badge__version">v0.33.0</span>
*/
const Input = props => (
<FormField {...props}>
{({ className, ...inputProps }, showFeedbackIcon, feedback) => (
Expand Down
2 changes: 1 addition & 1 deletion src/components/Radio/Radio.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import styles from './Radio.modules.scss'

/**
*
* <span class="docs--badge__new">new</span> <span class="docs--badge__version">v0.32.0</span>
* <span class="docs--badge__version">v0.32.0</span>
*/
const Radio = props => (
<Choice {...props} type="radio" inputTypeStyles={styles}>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Responsive/Responsive.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +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>
* <span class="docs--badge__version">v0.31.0</span>
*/
const Responsive = ({ minWidth, maxWidth, query, children, ...rest }) => {
if (!minWidth && !maxWidth) {
Expand Down
3 changes: 3 additions & 0 deletions src/components/Select/Select.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ import addRightPadding from '../FormField/addRightPadding'
import styles from './Select.modules.scss'
import iconWrapperStyles from '../Icons/IconWrapper.modules.scss'

/**
* <span class="docs--badge__new">new</span> <span class="docs--badge__version">v0.33.0</span>
*/
const Select = ({ options, placeholder, ...props }) => (
<FormField {...props}>
{({ className, ...selectProps }, showFeedbackIcon, feedback) => (
Expand Down
3 changes: 3 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,22 @@ 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 InputFeedback } from './components/InputFeedback/InputFeedback'
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 Select } from './components/Select/Select'
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'
export { default as StandaloneIcon } from './components/Icons/StandaloneIcon/StandaloneIcon'
export { default as Steps } from './old-components/StepTracker/Steps/Steps'
export { default as Strong } from './components/Typography/Strong/Strong'
export { default as Text } from './components/Typography/Text/Text'
export { default as TextArea } from './components/Textarea/Textarea'
export { default as Tooltip } from './components/Tooltip/Tooltip'
export { default as UnorderedList } from './components/Lists/UnorderedList/UnorderedList'
export { default as WaveDivider } from './components/Dividers/WaveDivider/WaveDivider'

0 comments on commit cbc5862

Please sign in to comment.