@govuk-react/input-field
Advanced tools
Comparing version 0.5.0 to 0.5.1
@@ -14,3 +14,2 @@ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
import Input from '@govuk-react/input'; | ||
import { withWhiteSpace } from '@govuk-react/hoc'; | ||
/** | ||
@@ -82,5 +81,7 @@ * | ||
}; | ||
export default withWhiteSpace({ | ||
marginBottom: 0 | ||
})(InputField); | ||
/** Component is not exported withWhitespace because Label | ||
* is also exported withWhitespace and therefore takes precedence. | ||
*/ | ||
export default InputField; | ||
//# sourceMappingURL=index.js.map |
@@ -20,4 +20,2 @@ "use strict"; | ||
var _hoc = require("@govuk-react/hoc"); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -95,8 +93,8 @@ | ||
var _default = (0, _hoc.withWhiteSpace)({ | ||
marginBottom: 0 | ||
})(InputField); | ||
/** Component is not exported withWhitespace because Label | ||
* is also exported withWhitespace and therefore takes precedence. | ||
*/ | ||
var _default = InputField; | ||
exports.default = _default; | ||
module.exports = exports.default; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@govuk-react/input-field", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"dependencies": { | ||
"@govuk-react/constants": "^0.5.0", | ||
"@govuk-react/error-text": "^0.5.0", | ||
"@govuk-react/hint-text": "^0.5.0", | ||
"@govuk-react/hoc": "^0.5.0", | ||
"@govuk-react/input": "^0.5.0", | ||
"@govuk-react/label": "^0.5.0", | ||
"@govuk-react/label-text": "^0.5.0", | ||
"@govuk-react/constants": "^0.5.1", | ||
"@govuk-react/error-text": "^0.5.1", | ||
"@govuk-react/hint-text": "^0.5.1", | ||
"@govuk-react/hoc": "^0.5.1", | ||
"@govuk-react/input": "^0.5.1", | ||
"@govuk-react/label": "^0.5.1", | ||
"@govuk-react/label-text": "^0.5.1", | ||
"govuk-colours": "^1.0.3" | ||
@@ -13,0 +13,0 @@ }, |
@@ -11,3 +11,2 @@ // https://github.com/alphagov/govuk-frontend/blob/master/src/components/input/_input.scss | ||
import Input from '@govuk-react/input'; | ||
import { withWhiteSpace } from '@govuk-react/hoc'; | ||
@@ -104,2 +103,5 @@ /** | ||
export default withWhiteSpace({ marginBottom: 0 })(InputField); | ||
/** Component is not exported withWhitespace because Label | ||
* is also exported withWhitespace and therefore takes precedence. | ||
*/ | ||
export default InputField; |
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
461
38936
18
Updated@govuk-react/hoc@^0.5.1
Updated@govuk-react/input@^0.5.1
Updated@govuk-react/label@^0.5.1