@govuk-react/search-box
Advanced tools
Comparing version 0.6.0-alpha.4 to 0.6.0-rc.1
@@ -10,3 +10,3 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } | ||
import { Search } from '@govuk-react/icons'; | ||
import { withWhiteSpace } from '@govuk-react/hoc'; | ||
import { spacing } from '@govuk-react/lib'; | ||
var SearchBoxWrapper = styled('div')({ | ||
@@ -17,3 +17,5 @@ boxSizing: 'border-box', | ||
background: WHITE | ||
}); // css normalize is hiding the input:search clear SearchButton | ||
}, spacing.withWhiteSpace({ | ||
marginBottom: 0 | ||
})); // css normalize is hiding the input:search clear SearchButton | ||
@@ -104,5 +106,3 @@ var InputSearchBox = styled('input')({ | ||
}; | ||
export default withWhiteSpace({ | ||
marginBottom: 0 | ||
})(SearchBox); | ||
export default SearchBox; | ||
//# sourceMappingURL=index.js.map |
@@ -18,3 +18,3 @@ "use strict"; | ||
var _hoc = require("@govuk-react/hoc"); | ||
var _lib = require("@govuk-react/lib"); | ||
@@ -30,3 +30,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
background: _govukColours.WHITE | ||
}); // css normalize is hiding the input:search clear SearchButton | ||
}, _lib.spacing.withWhiteSpace({ | ||
marginBottom: 0 | ||
})); // css normalize is hiding the input:search clear SearchButton | ||
@@ -117,9 +119,5 @@ var InputSearchBox = (0, _styledComponents.default)('input')({ | ||
}; | ||
var _default = (0, _hoc.withWhiteSpace)({ | ||
marginBottom: 0 | ||
})(SearchBox); | ||
var _default = SearchBox; | ||
exports.default = _default; | ||
module.exports = exports.default; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@govuk-react/search-box", | ||
"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/icons": "^0.6.0-alpha.4", | ||
"@govuk-react/constants": "^0.6.0-rc.1", | ||
"@govuk-react/icons": "^0.6.0-rc.1", | ||
"@govuk-react/lib": "^0.6.0-rc.1", | ||
"govuk-colours": "^1.0.3" | ||
@@ -9,0 +9,0 @@ }, |
@@ -10,10 +10,13 @@ // https://govuk-static.herokuapp.com/component-guide/search | ||
import { Search } from '@govuk-react/icons'; | ||
import { withWhiteSpace } from '@govuk-react/hoc'; | ||
import { spacing } from '@govuk-react/lib'; | ||
const SearchBoxWrapper = styled('div')({ | ||
boxSizing: 'border-box', | ||
display: 'flex', | ||
width: '100%', | ||
background: WHITE, | ||
}); | ||
const SearchBoxWrapper = styled('div')( | ||
{ | ||
boxSizing: 'border-box', | ||
display: 'flex', | ||
width: '100%', | ||
background: WHITE, | ||
}, | ||
spacing.withWhiteSpace({ marginBottom: 0 }), | ||
); | ||
@@ -106,2 +109,2 @@ // css normalize is hiding the input:search clear SearchButton | ||
export default withWhiteSpace({ marginBottom: 0 })(SearchBox); | ||
export default SearchBox; |
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
406
36198
+ Added@govuk-react/lib@^0.6.0-rc.1
- Removed@govuk-react/hoc@^0.6.0-alpha.4
- Removed@govuk-react/hoc@0.6.0(transitive)
- Removed@govuk-react/link@0.6.0(transitive)