@govuk-react/error-text
Advanced tools
Comparing version 0.6.0-alpha.4 to 0.6.0-rc.1
@@ -5,5 +5,4 @@ import styled from 'styled-components'; | ||
import { ERROR_COLOUR } from 'govuk-colours'; | ||
import { withWhiteSpace } from '@govuk-react/hoc'; | ||
import { SPACING_POINTS } from '@govuk-react/constants'; | ||
import { typography } from '@govuk-react/lib'; | ||
import { spacing, typography } from '@govuk-react/lib'; | ||
var StyledError = styled('span')(typography.font({ | ||
@@ -18,3 +17,3 @@ size: 19, | ||
color: ERROR_COLOUR | ||
}); | ||
}, spacing.withWhiteSpace()); | ||
/** | ||
@@ -38,3 +37,3 @@ * | ||
export default withWhiteSpace()(ErrorText); | ||
export default ErrorText; | ||
//# sourceMappingURL=index.js.map |
@@ -14,4 +14,2 @@ "use strict"; | ||
var _hoc = require("@govuk-react/hoc"); | ||
var _constants = require("@govuk-react/constants"); | ||
@@ -32,3 +30,3 @@ | ||
color: _govukColours.ERROR_COLOUR | ||
}); | ||
}, _lib.spacing.withWhiteSpace()); | ||
/** | ||
@@ -52,6 +50,5 @@ * | ||
var _default = (0, _hoc.withWhiteSpace)()(ErrorText); | ||
var _default = ErrorText; | ||
exports.default = _default; | ||
module.exports = exports.default; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@govuk-react/error-text", | ||
"version": "0.6.0-alpha.4", | ||
"version": "0.6.0-rc.1", | ||
"dependencies": { | ||
"@govuk-react/constants": "^0.6.0-alpha.4", | ||
"@govuk-react/hoc": "^0.6.0-alpha.4", | ||
"@govuk-react/lib": "^0.6.0-alpha.4", | ||
"@govuk-react/constants": "^0.6.0-rc.1", | ||
"@govuk-react/lib": "^0.6.0-rc.1", | ||
"govuk-colours": "^1.0.3" | ||
@@ -9,0 +8,0 @@ }, |
@@ -5,5 +5,4 @@ import styled from 'styled-components'; | ||
import { ERROR_COLOUR } from 'govuk-colours'; | ||
import { withWhiteSpace } from '@govuk-react/hoc'; | ||
import { SPACING_POINTS } from '@govuk-react/constants'; | ||
import { typography } from '@govuk-react/lib'; | ||
import { spacing, typography } from '@govuk-react/lib'; | ||
@@ -19,2 +18,3 @@ const StyledError = styled('span')( | ||
}, | ||
spacing.withWhiteSpace(), | ||
); | ||
@@ -42,2 +42,2 @@ | ||
export default withWhiteSpace()(ErrorText); | ||
export default ErrorText; |
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
5
17616
191
- Removed@govuk-react/hoc@^0.6.0-alpha.4
- Removed@govuk-react/hoc@0.6.0(transitive)
- Removed@govuk-react/icons@0.6.0(transitive)
- Removed@govuk-react/link@0.6.0(transitive)
Updated@govuk-react/lib@^0.6.0-rc.1