Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@govuk-react/search-box

Package Overview
Dependencies
Maintainers
5
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@govuk-react/search-box - npm Package Compare versions

Comparing version 0.3.1 to 0.4.0

10

es/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc