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

@govuk-react/input

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/input - npm Package Compare versions

Comparing version 0.7.1 to 0.8.0

7

es/index.js

@@ -11,3 +11,6 @@ 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 { spacing, typography } from '@govuk-react/lib';
export var StyledInput = styled('input')(typography.font({
export var StyledInput = styled('input').withConfig({
displayName: "src__StyledInput",
componentId: "u8exb4-0"
})(typography.font({
size: 19

@@ -60,3 +63,3 @@ }), FOCUSABLE, {

return React.createElement(StyledInput, _extends({
return /*#__PURE__*/React.createElement(StyledInput, _extends({
type: type

@@ -63,0 +66,0 @@ }, props));

@@ -9,3 +9,3 @@ import React from 'react';

stories.add('Component default', function () {
return React.createElement(Input, {
return /*#__PURE__*/React.createElement(Input, {
type: "text"

@@ -12,0 +12,0 @@ });

@@ -6,10 +6,10 @@ import React from 'react';

describe('Input', function () {
var wrapper = React.createElement(Input, {
var wrapper = /*#__PURE__*/React.createElement(Input, {
type: "text"
});
var withError = React.createElement(Input, {
var withError = /*#__PURE__*/React.createElement(Input, {
type: "text",
error: "example"
});
var withColouredError = React.createElement(Input, {
var withColouredError = /*#__PURE__*/React.createElement(Input, {
type: "text",

@@ -16,0 +16,0 @@ errorColor: ORANGE,

"use strict";
exports.__esModule = true;
exports.default = exports.StyledInput = void 0;
exports["default"] = exports.StyledInput = void 0;

@@ -18,3 +18,3 @@ var _react = _interopRequireDefault(require("react"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

@@ -25,3 +25,6 @@ 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); }

var StyledInput = (0, _styledComponents.default)('input')(_lib.typography.font({
var StyledInput = (0, _styledComponents["default"])('input').withConfig({
displayName: "src__StyledInput",
componentId: "u8exb4-0"
})(_lib.typography.font({
size: 19

@@ -76,3 +79,3 @@ }), _constants.FOCUSABLE, {

return _react.default.createElement(StyledInput, _extends({
return /*#__PURE__*/_react["default"].createElement(StyledInput, _extends({
type: type

@@ -86,3 +89,3 @@ }, props));

var _default = Input;
exports.default = _default;
exports["default"] = _default;
//# sourceMappingURL=index.js.map

@@ -13,8 +13,8 @@ "use strict";

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
var stories = (0, _react2.storiesOf)('Form/Input', module);
stories.addDecorator((0, _storybookComponents.withDocsCustom)(_README.default));
stories.addDecorator((0, _storybookComponents.withDocsCustom)(_README["default"]));
stories.add('Component default', function () {
return _react.default.createElement(_.default, {
return /*#__PURE__*/_react["default"].createElement(_["default"], {
type: "text"

@@ -21,0 +21,0 @@ });

@@ -11,10 +11,10 @@ "use strict";

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
describe('Input', function () {
var wrapper = _react.default.createElement(_.default, {
var wrapper = /*#__PURE__*/_react["default"].createElement(_["default"], {
type: "text"
});
var withError = _react.default.createElement(_.default, {
var withError = /*#__PURE__*/_react["default"].createElement(_["default"], {
type: "text",

@@ -24,3 +24,3 @@ error: "example"

var withColouredError = _react.default.createElement(_.default, {
var withColouredError = /*#__PURE__*/_react["default"].createElement(_["default"], {
type: "text",

@@ -27,0 +27,0 @@ errorColor: _govukColours.ORANGE,

{
"name": "@govuk-react/input",
"version": "0.7.1",
"version": "0.8.0",
"dependencies": {
"@govuk-react/constants": "^0.7.1",
"@govuk-react/lib": "^0.7.1",
"govuk-colours": "^1.0.3"
"@govuk-react/constants": "^0.8.0",
"@govuk-react/lib": "^0.8.0",
"govuk-colours": "^1.1.0"
},
"peerDependencies": {
"react": ">=16.2.0",
"styled-components": ">=4"
"styled-components": ">=5.1"
},

@@ -13,0 +13,0 @@ "scripts": {

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

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