@tds/core-checkbox
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -6,2 +6,10 @@ # Change Log | ||
<a name="1.1.1"></a> | ||
## [1.1.1](https://github.com/telusdigital/tds/compare/@tds/core-checkbox@1.1.0...@tds/core-checkbox@1.1.1) (2018-12-06) | ||
**Note:** Version bump only for package @tds/core-checkbox | ||
<a name="1.1.0"></a> | ||
@@ -8,0 +16,0 @@ # [1.1.0](https://github.com/telusdigital/tds/compare/@tds/core-checkbox@1.0.5...@tds/core-checkbox@1.1.0) (2018-07-23) |
@@ -7,2 +7,4 @@ ### Minimal usage | ||
For information on how to use disabled Checkboxes, please refer to the [disabled form component](#form-disabled-state) guidelines. | ||
<a href="https://www.nngroup.com/articles/checkboxes-vs-radio-buttons/" target="_blank">Reference</a> | ||
@@ -9,0 +11,0 @@ |
@@ -158,10 +158,7 @@ 'use strict'; | ||
colorClassName = _props.colorClassName, | ||
tag = _props.tag, | ||
children = _props.children; | ||
return React.createElement( | ||
'div', | ||
{ className: colorClassName }, | ||
children | ||
); | ||
return React.createElement(tag, { className: colorClassName }, children); | ||
} | ||
@@ -174,5 +171,10 @@ }]); | ||
colorClassName: PropTypes.string.isRequired, | ||
tag: PropTypes.string, | ||
children: PropTypes.node.isRequired | ||
}; | ||
ColoredTextProvider.defaultProps = { | ||
tag: 'div' | ||
}; | ||
ColoredTextProvider.childContextTypes = { | ||
@@ -179,0 +181,0 @@ inheritColor: PropTypes.bool |
@@ -154,10 +154,7 @@ import React from 'react'; | ||
colorClassName = _props.colorClassName, | ||
tag = _props.tag, | ||
children = _props.children; | ||
return React.createElement( | ||
'div', | ||
{ className: colorClassName }, | ||
children | ||
); | ||
return React.createElement(tag, { className: colorClassName }, children); | ||
} | ||
@@ -170,5 +167,10 @@ }]); | ||
colorClassName: PropTypes.string.isRequired, | ||
tag: PropTypes.string, | ||
children: PropTypes.node.isRequired | ||
}; | ||
ColoredTextProvider.defaultProps = { | ||
tag: 'div' | ||
}; | ||
ColoredTextProvider.childContextTypes = { | ||
@@ -175,0 +177,0 @@ inheritColor: PropTypes.bool |
{ | ||
"name": "@tds/core-checkbox", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"main": "index.cjs.js", | ||
@@ -30,4 +30,4 @@ "module": "index.es.js", | ||
"@tds/core-input-feedback": "^1.0.2", | ||
"@tds/core-paragraph": "^1.0.2", | ||
"@tds/core-text": "^1.0.2", | ||
"@tds/core-paragraph": "^1.0.3", | ||
"@tds/core-text": "^1.0.3", | ||
"prop-types": "^15.5.10" | ||
@@ -37,5 +37,5 @@ }, | ||
"@tds/core-colours": "^1.0.0", | ||
"@tds/shared-choice": "^1.0.6", | ||
"@tds/shared-choice": "^1.0.7", | ||
"core-js": "^2.5.3" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
173009
2160
3
Updated@tds/core-paragraph@^1.0.3
Updated@tds/core-text@^1.0.3