Skip to content

Commit

Permalink
Release v1.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sawyerh committed Jan 17, 2018
1 parent b8e9808 commit 0581f38
Show file tree
Hide file tree
Showing 11 changed files with 34 additions and 17 deletions.
7 changes: 5 additions & 2 deletions lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
}
},
"npmClient": "yarn",
"packages": ["packages/*", "packages/themes/*"],
"version": "1.9.0"
"packages": [
"packages/*",
"packages/themes/*"
],
"version": "1.10.0"
}
5 changes: 4 additions & 1 deletion packages/core/dist/components/Button/Button.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,10 @@ Button.propTypes = {
* Button [`type`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-type) attribute
*/
type: _propTypes2.default.oneOf(['button', 'submit']),
variation: _propTypes2.default.oneOf(['primary', 'danger', 'success', 'transparent'])
/**
* A string corresponding to the button-component variation classes (`primary`, `danger`, `success`, `transparent`)
*/
variation: _propTypes2.default.string
};

exports.default = Button;
13 changes: 12 additions & 1 deletion packages/core/dist/components/FormLabel/FormLabel.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,22 @@ var FormLabel = exports.FormLabel = function (_React$PureComponent) {
'ds-c-field__hint--inverse': this.props.inversed
});

if (requirementLabel && hint) {
if (typeof requirementLabel === 'string') {
// Remove any existing spacing and punctuation
requirementLabel = requirementLabel.trim().replace(/\.$/, '');
// Add punctuation after the requirementLabel so it doesn't run into the hint
requirementLabel = requirementLabel + '.';
}

// Add space between hint and preceding requirementLabel
hint = ' ' + hint;
}

return _react2.default.createElement(
'span',
{ className: classes },
requirementLabel,
requirementLabel && hint && ' ',
hint
);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/core/dist/components/StepList/StepList.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/core/dist/components/TextField/TextField.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/core/dist/index.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cmsgov/design-system-core",
"version": "1.9.0",
"version": "1.10.0",
"publishConfig": {
"access": "public"
},
Expand All @@ -9,7 +9,7 @@
"license": "SEE LICENSE IN LICENSE.md",
"main": "dist/index.js",
"dependencies": {
"@cmsgov/design-system-support": "^1.9.0",
"@cmsgov/design-system-support": "^1.10.0",
"classnames": "^2.2.5",
"core-js": "^2.5.1",
"downshift": "^1.22.5",
Expand Down
8 changes: 4 additions & 4 deletions packages/docs/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "@cmsgov/design-system-docs",
"version": "1.9.0",
"version": "1.10.0",
"private": true,
"description": "Design system's documentation website",
"repository": "CMSgov/design-system",
"dependencies": {
"@cmsgov/design-system-core": "^1.9.0",
"@cmsgov/design-system-layout": "^1.9.0",
"@cmsgov/design-system-support": "^1.9.0",
"@cmsgov/design-system-core": "^1.10.0",
"@cmsgov/design-system-layout": "^1.10.0",
"@cmsgov/design-system-support": "^1.10.0",
"classnames": "^2.2.5",
"core-js": "^2.5.3",
"lodash": "^4.17.4",
Expand Down
Loading

0 comments on commit 0581f38

Please sign in to comment.