@govuk-react/input
Advanced tools
Comparing version 0.6.0-alpha.4 to 0.6.0-rc.1
@@ -9,5 +9,4 @@ 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 { BLACK, ERROR_COLOUR } from 'govuk-colours'; | ||
import { withWhiteSpace } from '@govuk-react/hoc'; | ||
import { BORDER_WIDTH_FORM_ELEMENT, BORDER_WIDTH_FORM_ELEMENT_ERROR, FOCUSABLE, SPACING_POINTS } from '@govuk-react/constants'; | ||
import { typography } from '@govuk-react/lib'; | ||
import { spacing, typography } from '@govuk-react/lib'; | ||
export var StyledInput = styled('input')(typography.font({ | ||
@@ -38,3 +37,5 @@ size: 19 | ||
}; | ||
}); | ||
}, spacing.withWhiteSpace({ | ||
marginBottom: 0 | ||
})); | ||
/** | ||
@@ -68,5 +69,3 @@ * | ||
}; | ||
export default withWhiteSpace({ | ||
marginBottom: 0 | ||
})(Input); | ||
export default Input; | ||
//# sourceMappingURL=index.js.map |
@@ -14,4 +14,2 @@ "use strict"; | ||
var _hoc = require("@govuk-react/hoc"); | ||
var _constants = require("@govuk-react/constants"); | ||
@@ -52,3 +50,5 @@ | ||
}; | ||
}); | ||
}, _lib.spacing.withWhiteSpace({ | ||
marginBottom: 0 | ||
})); | ||
/** | ||
@@ -84,8 +84,4 @@ * | ||
}; | ||
var _default = (0, _hoc.withWhiteSpace)({ | ||
marginBottom: 0 | ||
})(Input); | ||
var _default = Input; | ||
exports.default = _default; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@govuk-react/input", | ||
"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 @@ }, |
@@ -6,3 +6,2 @@ import React from 'react'; | ||
import { BLACK, ERROR_COLOUR } from 'govuk-colours'; | ||
import { withWhiteSpace } from '@govuk-react/hoc'; | ||
import { | ||
@@ -14,3 +13,3 @@ BORDER_WIDTH_FORM_ELEMENT, | ||
} from '@govuk-react/constants'; | ||
import { typography } from '@govuk-react/lib'; | ||
import { spacing, typography } from '@govuk-react/lib'; | ||
@@ -45,2 +44,3 @@ export const StyledInput = styled('input')( | ||
}), | ||
spacing.withWhiteSpace({ marginBottom: 0 }), | ||
); | ||
@@ -76,2 +76,2 @@ | ||
export default withWhiteSpace({ marginBottom: 0 })(Input); | ||
export default Input; |
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
32603
307
- 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