@tds/core-checkbox
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -6,2 +6,10 @@ # Change Log | ||
<a name="1.1.2"></a> | ||
## [1.1.2](https://github.com/telusdigital/tds/compare/@tds/core-checkbox@1.1.1...@tds/core-checkbox@1.1.2) (2018-12-13) | ||
**Note:** Version bump only for package @tds/core-checkbox | ||
<a name="1.1.1"></a> | ||
@@ -8,0 +16,0 @@ ## [1.1.1](https://github.com/telusdigital/tds/compare/@tds/core-checkbox@1.1.0...@tds/core-checkbox@1.1.1) (2018-12-06) |
@@ -786,3 +786,3 @@ 'use strict'; | ||
var styles$1 = { "alignCenter": "TDS_Choice-modules__alignCenter___1M8FG", "alignFlexStart": "TDS_Choice-modules__alignFlexStart___1zDGw", "fakeInput": "TDS_Choice-modules__fakeInput___3I1CX TDS_Borders-modules__thin___1JHOl", "fakeCheckbox": "TDS_Choice-modules__fakeCheckbox___1Buqb TDS_Choice-modules__fakeInput___3I1CX TDS_Borders-modules__thin___1JHOl TDS_Borders-modules__rounded___3df1Q", "fakeRadio": "TDS_Choice-modules__fakeRadio___1H3I- TDS_Choice-modules__fakeInput___3I1CX TDS_Borders-modules__thin___1JHOl TDS_Borders-modules__circular___OppHT", "unchecked": "TDS_Choice-modules__unchecked___3Zyro", "focused": "TDS_Choice-modules__focused___2KPRk", "error": "TDS_Choice-modules__error___1Vlds", "hiddenInput": "TDS_Choice-modules__hiddenInput___3S8As" }; | ||
var styles$1 = { "alignCenter": "TDS_Choice-modules__alignCenter___1M8FG", "alignFlexStart": "TDS_Choice-modules__alignFlexStart___1zDGw", "flexOne": "TDS_Choice-modules__flexOne___1SrBe", "fakeInput": "TDS_Choice-modules__fakeInput___3I1CX TDS_Borders-modules__thin___1JHOl", "fakeCheckbox": "TDS_Choice-modules__fakeCheckbox___1Buqb TDS_Choice-modules__fakeInput___3I1CX TDS_Borders-modules__thin___1JHOl TDS_Borders-modules__rounded___3df1Q", "fakeRadio": "TDS_Choice-modules__fakeRadio___1H3I- TDS_Choice-modules__fakeInput___3I1CX TDS_Borders-modules__thin___1JHOl TDS_Borders-modules__circular___OppHT", "unchecked": "TDS_Choice-modules__unchecked___3Zyro", "focused": "TDS_Choice-modules__focused___2KPRk", "error": "TDS_Choice-modules__error___1Vlds", "hiddenInput": "TDS_Choice-modules__hiddenInput___3S8As" }; | ||
@@ -828,7 +828,16 @@ var messagingStyles = { "default": "TDS_Messaging-modules__default___2B8Di", "success": "TDS_Messaging-modules__success___3kyw2", "error": "TDS_Messaging-modules__error___3NArF", "errorText": "TDS_Messaging-modules__errorText___IDcbb", "disabledText": "TDS_Messaging-modules__disabledText___1bjON" }; | ||
var renderLabel = function renderLabel(label, feedback, checked, disabled) { | ||
var renderLabel = function renderLabel(label, description, feedback, checked, disabled) { | ||
var content = React.createElement( | ||
Text, | ||
{ size: 'medium' }, | ||
label | ||
Box, | ||
{ between: 2, dangerouslyAddClassName: styles$1.flexOne }, | ||
React.createElement( | ||
Text, | ||
{ size: 'medium' }, | ||
label | ||
), | ||
description && React.createElement( | ||
Text, | ||
{ size: 'small' }, | ||
description | ||
) | ||
); | ||
@@ -928,2 +937,3 @@ | ||
value = _props.value, | ||
description = _props.description, | ||
feedback = _props.feedback, | ||
@@ -934,3 +944,3 @@ error = _props.error, | ||
children = _props.children, | ||
rest = objectWithoutProperties(_props, ['label', 'name', 'value', 'feedback', 'error', 'type', 'inputTypeStyles', 'children']); | ||
rest = objectWithoutProperties(_props, ['label', 'name', 'value', 'description', 'feedback', 'error', 'type', 'inputTypeStyles', 'children']); | ||
@@ -971,3 +981,3 @@ | ||
), | ||
renderLabel(label, feedback, this.state.checked, rest.disabled) | ||
renderLabel(label, description, feedback, this.state.checked, rest.disabled) | ||
) | ||
@@ -985,2 +995,3 @@ ) | ||
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired, | ||
description: PropTypes.string, | ||
checked: PropTypes.bool.isRequired, | ||
@@ -998,2 +1009,3 @@ feedback: PropTypes.oneOf(['error']), | ||
Choice.defaultProps = { | ||
description: undefined, | ||
feedback: undefined, | ||
@@ -1000,0 +1012,0 @@ error: undefined, |
@@ -782,3 +782,3 @@ import React from 'react'; | ||
var styles$1 = { "alignCenter": "TDS_Choice-modules__alignCenter___1M8FG", "alignFlexStart": "TDS_Choice-modules__alignFlexStart___1zDGw", "fakeInput": "TDS_Choice-modules__fakeInput___3I1CX TDS_Borders-modules__thin___1JHOl", "fakeCheckbox": "TDS_Choice-modules__fakeCheckbox___1Buqb TDS_Choice-modules__fakeInput___3I1CX TDS_Borders-modules__thin___1JHOl TDS_Borders-modules__rounded___3df1Q", "fakeRadio": "TDS_Choice-modules__fakeRadio___1H3I- TDS_Choice-modules__fakeInput___3I1CX TDS_Borders-modules__thin___1JHOl TDS_Borders-modules__circular___OppHT", "unchecked": "TDS_Choice-modules__unchecked___3Zyro", "focused": "TDS_Choice-modules__focused___2KPRk", "error": "TDS_Choice-modules__error___1Vlds", "hiddenInput": "TDS_Choice-modules__hiddenInput___3S8As" }; | ||
var styles$1 = { "alignCenter": "TDS_Choice-modules__alignCenter___1M8FG", "alignFlexStart": "TDS_Choice-modules__alignFlexStart___1zDGw", "flexOne": "TDS_Choice-modules__flexOne___1SrBe", "fakeInput": "TDS_Choice-modules__fakeInput___3I1CX TDS_Borders-modules__thin___1JHOl", "fakeCheckbox": "TDS_Choice-modules__fakeCheckbox___1Buqb TDS_Choice-modules__fakeInput___3I1CX TDS_Borders-modules__thin___1JHOl TDS_Borders-modules__rounded___3df1Q", "fakeRadio": "TDS_Choice-modules__fakeRadio___1H3I- TDS_Choice-modules__fakeInput___3I1CX TDS_Borders-modules__thin___1JHOl TDS_Borders-modules__circular___OppHT", "unchecked": "TDS_Choice-modules__unchecked___3Zyro", "focused": "TDS_Choice-modules__focused___2KPRk", "error": "TDS_Choice-modules__error___1Vlds", "hiddenInput": "TDS_Choice-modules__hiddenInput___3S8As" }; | ||
@@ -824,7 +824,16 @@ var messagingStyles = { "default": "TDS_Messaging-modules__default___2B8Di", "success": "TDS_Messaging-modules__success___3kyw2", "error": "TDS_Messaging-modules__error___3NArF", "errorText": "TDS_Messaging-modules__errorText___IDcbb", "disabledText": "TDS_Messaging-modules__disabledText___1bjON" }; | ||
var renderLabel = function renderLabel(label, feedback, checked, disabled) { | ||
var renderLabel = function renderLabel(label, description, feedback, checked, disabled) { | ||
var content = React.createElement( | ||
Text, | ||
{ size: 'medium' }, | ||
label | ||
Box, | ||
{ between: 2, dangerouslyAddClassName: styles$1.flexOne }, | ||
React.createElement( | ||
Text, | ||
{ size: 'medium' }, | ||
label | ||
), | ||
description && React.createElement( | ||
Text, | ||
{ size: 'small' }, | ||
description | ||
) | ||
); | ||
@@ -924,2 +933,3 @@ | ||
value = _props.value, | ||
description = _props.description, | ||
feedback = _props.feedback, | ||
@@ -930,3 +940,3 @@ error = _props.error, | ||
children = _props.children, | ||
rest = objectWithoutProperties(_props, ['label', 'name', 'value', 'feedback', 'error', 'type', 'inputTypeStyles', 'children']); | ||
rest = objectWithoutProperties(_props, ['label', 'name', 'value', 'description', 'feedback', 'error', 'type', 'inputTypeStyles', 'children']); | ||
@@ -967,3 +977,3 @@ | ||
), | ||
renderLabel(label, feedback, this.state.checked, rest.disabled) | ||
renderLabel(label, description, feedback, this.state.checked, rest.disabled) | ||
) | ||
@@ -981,2 +991,3 @@ ) | ||
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired, | ||
description: PropTypes.string, | ||
checked: PropTypes.bool.isRequired, | ||
@@ -994,2 +1005,3 @@ feedback: PropTypes.oneOf(['error']), | ||
Choice.defaultProps = { | ||
description: undefined, | ||
feedback: undefined, | ||
@@ -996,0 +1008,0 @@ error: undefined, |
{ | ||
"name": "@tds/core-checkbox", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"main": "index.cjs.js", | ||
@@ -36,5 +36,5 @@ "module": "index.es.js", | ||
"@tds/core-colours": "^1.0.0", | ||
"@tds/shared-choice": "^1.0.7", | ||
"@tds/shared-choice": "^1.1.0", | ||
"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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
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
175382
2190
2