@govuk-react/search-box
Advanced tools
Comparing version 0.3.1 to 0.4.0
@@ -1,2 +0,2 @@ | ||
function _objectWithoutProperties(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]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } | ||
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; } | ||
@@ -14,3 +14,3 @@ // https://govuk-static.herokuapp.com/component-guide/search | ||
styled('div', { | ||
target: "e4u1u2g0", | ||
target: "e15a2v1p0", | ||
label: "SearchBoxWrapper" | ||
@@ -27,3 +27,3 @@ })({ | ||
styled('input', { | ||
target: "e4u1u2g1", | ||
target: "e15a2v1p1", | ||
label: "InputSearchBox" | ||
@@ -58,3 +58,3 @@ })({ | ||
styled('button', { | ||
target: "e4u1u2g2", | ||
target: "e15a2v1p2", | ||
label: "SearchButton" | ||
@@ -105,3 +105,3 @@ })({ | ||
var placeholder = _ref.placeholder, | ||
props = _objectWithoutProperties(_ref, ["placeholder"]); | ||
props = _objectWithoutPropertiesLoose(_ref, ["placeholder"]); | ||
@@ -108,0 +108,0 @@ return React.createElement(SearchBoxWrapper, props, React.createElement(InputSearchBox, { |
@@ -22,3 +22,3 @@ "use strict"; | ||
function _objectWithoutProperties(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]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } | ||
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; } | ||
@@ -28,3 +28,3 @@ var SearchBoxWrapper = | ||
(0, _reactEmotion.default)('div', { | ||
target: "e4u1u2g0", | ||
target: "e15a2v1p0", | ||
label: "SearchBoxWrapper" | ||
@@ -41,3 +41,3 @@ })({ | ||
(0, _reactEmotion.default)('input', { | ||
target: "e4u1u2g1", | ||
target: "e15a2v1p1", | ||
label: "InputSearchBox" | ||
@@ -72,3 +72,3 @@ })({ | ||
(0, _reactEmotion.default)('button', { | ||
target: "e4u1u2g2", | ||
target: "e15a2v1p2", | ||
label: "SearchButton" | ||
@@ -119,3 +119,3 @@ })({ | ||
var placeholder = _ref.placeholder, | ||
props = _objectWithoutProperties(_ref, ["placeholder"]); | ||
props = _objectWithoutPropertiesLoose(_ref, ["placeholder"]); | ||
@@ -141,3 +141,3 @@ return _react.default.createElement(SearchBoxWrapper, props, _react.default.createElement(InputSearchBox, { | ||
exports.default = _default; | ||
module.exports = exports["default"]; | ||
module.exports = exports.default; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@govuk-react/search-box", | ||
"version": "0.3.1", | ||
"version": "0.4.0", | ||
"dependencies": { | ||
"@govuk-react/constants": "^0.3.1", | ||
"@govuk-react/hoc": "^0.3.1", | ||
"@govuk-react/icons": "^0.3.1", | ||
"@govuk-react/constants": "^0.4.0", | ||
"@govuk-react/hoc": "^0.4.0", | ||
"@govuk-react/icons": "^0.4.0", | ||
"govuk-colours": "^1.0.3" | ||
@@ -12,3 +12,2 @@ }, | ||
"emotion": ">=9", | ||
"prop-types": ">=15", | ||
"react": ">=16.2.0", | ||
@@ -18,5 +17,5 @@ "react-emotion": ">=9" | ||
"scripts": { | ||
"build": "npm run build:lib && npm run build:es", | ||
"build:lib": "rimraf lib && babel src -d lib --source-maps", | ||
"build:es": "rimraf es && cross-env BABEL_ENV=es babel src -d es --source-maps", | ||
"build": "yarn build:lib && yarn build:es", | ||
"build:lib": "rimraf lib && babel src -d lib --source-maps --config-file ../../babel.config.js", | ||
"build:es": "rimraf es && cross-env BABEL_ENV=es babel src -d es --source-maps --config-file ../../babel.config.js", | ||
"docs": "doc-component ./lib/index.js ./README.md" | ||
@@ -28,3 +27,3 @@ }, | ||
"license": "MIT", | ||
"homepage": "https://github.com/UKHomeOffice/govuk-react/tree/master/components/search-box", | ||
"homepage": "https://github.com/govuk-react/govuk-react/tree/master/components/search-box", | ||
"description": "Styled input and button, also accepting placeholder text.", | ||
@@ -31,0 +30,0 @@ "private": false, |
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
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
37617
7
433
+ Added@govuk-react/constants@0.4.0(transitive)
+ Added@govuk-react/hoc@0.4.0(transitive)
+ Added@govuk-react/icons@0.4.0(transitive)
- Removed@govuk-react/constants@0.3.1(transitive)
- Removed@govuk-react/hoc@0.3.1(transitive)
- Removed@govuk-react/icons@0.3.1(transitive)
- Removedobject-assign@4.1.1(transitive)
- Removedprop-types@15.8.1(transitive)
- Removedreact-is@16.13.1(transitive)
Updated@govuk-react/hoc@^0.4.0
Updated@govuk-react/icons@^0.4.0