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

@govuk-react/icons

Package Overview
Dependencies
Maintainers
5
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@govuk-react/icons - npm Package Compare versions

Comparing version 0.5.1 to 0.6.0-alpha.0

2

es/ArrowLeft/test.js

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

var wrapper = React.createElement(ArrowRight, null, "Example");
describe(ArrowRight, function () {
describe('ArrowRight', function () {
it('renders without crashing', function () {

@@ -9,0 +9,0 @@ var div = document.createElement('div');

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

var wrapper = React.createElement(ArrowRight, null, "Example");
describe(ArrowRight, function () {
describe('ArrowRight', function () {
it('renders without crashing', function () {

@@ -9,0 +9,0 @@ var div = document.createElement('div');

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

var wrapper = React.createElement(ButtonArrow, null, "Example");
describe(ButtonArrow, function () {
describe('ButtonArrow', function () {
it('renders without crashing', function () {

@@ -9,0 +9,0 @@ var div = document.createElement('div');

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

var wrapper = React.createElement(IconImportant, null, "Example");
describe(IconImportant, function () {
describe('IconImportant', function () {
it('renders without crashing', function () {

@@ -9,0 +9,0 @@ var div = document.createElement('div');

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

var wrapper = React.createElement(Search, null, "Example");
describe(Search, function () {
describe('Search', function () {
it('renders without crashing', function () {

@@ -9,0 +9,0 @@ var div = document.createElement('div');

@@ -8,35 +8,10 @@ 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 PropTypes from 'prop-types';
import styled from 'react-emotion';
import { keyframes } from 'emotion';
import styled, { keyframes } from 'styled-components';
import SVG from '../SVGBase/index';
var fadeInOut = keyframes(["0%{opacity:0.250075;}0.01%{opacity:0.25;}0.03%{opacity:1;}100%{opacity:0.250075;}"]);
var Rect = styled.rect.withConfig({
displayName: "Spinner__Rect",
componentId: "sc-1pm4zwa-0"
})(["animation:", " 1s infinite linear;"], fadeInOut);
var animationStyles = function animationStyles() {
var fadeInOut =
/*#__PURE__*/
keyframes({
'0%': {
opacity: '0.250075'
},
'0.01%': {
opacity: '0.25'
},
'0.03%': {
opacity: '1'
},
'100%': {
opacity: '0.250075'
}
}, "label:fadeInOut;");
return {
animation: fadeInOut + " 1s infinite linear"
};
};
var Rect =
/*#__PURE__*/
styled('rect', {
target: "elgrh6d0",
label: "Rect"
})(animationStyles);
var Spinner = function Spinner(_ref) {

@@ -43,0 +18,0 @@ var className = _ref.className,

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

}, "Example");
describe(Spinner, function () {
describe('Spinner', function () {
it('renders without crashing', function () {

@@ -13,0 +13,0 @@ var div = document.createElement('div');

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

var wrapper = React.createElement(SVG, null, "Example");
describe(SVG, function () {
describe('SVG', function () {
it('renders without crashing', function () {

@@ -9,0 +9,0 @@ var div = document.createElement('div');

@@ -15,3 +15,3 @@ "use strict";

describe(_.default, function () {
describe('ArrowRight', function () {
it('renders without crashing', function () {

@@ -18,0 +18,0 @@ var div = document.createElement('div');

@@ -15,3 +15,3 @@ "use strict";

describe(_.default, function () {
describe('ArrowRight', function () {
it('renders without crashing', function () {

@@ -18,0 +18,0 @@ var div = document.createElement('div');

@@ -15,3 +15,3 @@ "use strict";

describe(_.default, function () {
describe('ButtonArrow', function () {
it('renders without crashing', function () {

@@ -18,0 +18,0 @@ var div = document.createElement('div');

@@ -15,3 +15,3 @@ "use strict";

describe(_.default, function () {
describe('IconImportant', function () {
it('renders without crashing', function () {

@@ -18,0 +18,0 @@ var div = document.createElement('div');

@@ -15,3 +15,3 @@ "use strict";

describe(_.default, function () {
describe('Search', function () {
it('renders without crashing', function () {

@@ -18,0 +18,0 @@ var div = document.createElement('div');

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

var _reactEmotion = _interopRequireDefault(require("react-emotion"));
var _styledComponents = _interopRequireWildcard(require("styled-components"));
var _emotion = require("emotion");
var _index = _interopRequireDefault(require("../SVGBase/index"));
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -23,30 +23,8 @@

var animationStyles = function animationStyles() {
var fadeInOut =
/*#__PURE__*/
(0, _emotion.keyframes)({
'0%': {
opacity: '0.250075'
},
'0.01%': {
opacity: '0.25'
},
'0.03%': {
opacity: '1'
},
'100%': {
opacity: '0.250075'
}
}, "label:fadeInOut;");
return {
animation: fadeInOut + " 1s infinite linear"
};
};
var fadeInOut = (0, _styledComponents.keyframes)(["0%{opacity:0.250075;}0.01%{opacity:0.25;}0.03%{opacity:1;}100%{opacity:0.250075;}"]);
var Rect =
/*#__PURE__*/
(0, _reactEmotion.default)('rect', {
target: "elgrh6d0",
label: "Rect"
})(animationStyles);
var Rect = _styledComponents.default.rect.withConfig({
displayName: "Spinner__Rect",
componentId: "sc-1pm4zwa-0"
})(["animation:", " 1s infinite linear;"], fadeInOut);

@@ -53,0 +31,0 @@ var Spinner = function Spinner(_ref) {

@@ -19,3 +19,3 @@ "use strict";

describe(_.default, function () {
describe('Spinner', function () {
it('renders without crashing', function () {

@@ -22,0 +22,0 @@ var div = document.createElement('div');

@@ -15,3 +15,3 @@ "use strict";

describe(_.default, function () {
describe('SVG', function () {
it('renders without crashing', function () {

@@ -18,0 +18,0 @@ var div = document.createElement('div');

{
"name": "@govuk-react/icons",
"version": "0.5.1",
"version": "0.6.0-alpha.0",
"dependencies": {
"@govuk-react/constants": "^0.5.1",
"@govuk-react/constants": "^0.6.0-alpha.0",
"govuk-colours": "^1.0.3"
},
"peerDependencies": {
"emotion": ">=9",
"react": ">=16.2.0",
"react-emotion": ">=9"
"styled-components": ">=4"
},

@@ -23,3 +22,3 @@ "scripts": {

"homepage": "https://github.com/govuk-react/govuk-react#readme",
"description": "govuk-react: A port of the govuk-frontend components for React using Emotion.",
"description": "govuk-react: A port of the govuk-frontend components for React using styled-components.",
"private": false,

@@ -26,0 +25,0 @@ "publishConfig": {

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

describe(ArrowRight, () => {
describe('ArrowRight', () => {
it('renders without crashing', () => {

@@ -11,0 +11,0 @@ const div = document.createElement('div');

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

describe(ArrowRight, () => {
describe('ArrowRight', () => {
it('renders without crashing', () => {

@@ -11,0 +11,0 @@ const div = document.createElement('div');

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

describe(ButtonArrow, () => {
describe('ButtonArrow', () => {
it('renders without crashing', () => {

@@ -11,0 +11,0 @@ const div = document.createElement('div');

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

describe(IconImportant, () => {
describe('IconImportant', () => {
it('renders without crashing', () => {

@@ -11,0 +11,0 @@ const div = document.createElement('div');

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

describe(Search, () => {
describe('Search', () => {
it('renders without crashing', () => {

@@ -11,0 +11,0 @@ const div = document.createElement('div');

@@ -5,18 +5,16 @@ // https://govuk-loader-prototype.herokuapp.com/components/loader

import PropTypes from 'prop-types';
import styled from 'react-emotion';
import { keyframes } from 'emotion';
import styled, { keyframes } from 'styled-components';
import SVG from '../SVGBase/index';
const animationStyles = () => {
const fadeInOut = keyframes({
'0%': { opacity: '0.250075' },
'0.01%': { opacity: '0.25' },
'0.03%': { opacity: '1' },
'100%': { opacity: '0.250075' },
});
return { animation: `${fadeInOut} 1s infinite linear` };
};
const fadeInOut = keyframes`
0% { opacity: 0.250075; }
0.01% { opacity: 0.25; }
0.03% { opacity: 1; }
100% { opacity: 0.250075; }
`;
const Rect = styled('rect')(animationStyles);
const Rect = styled.rect`
animation: ${fadeInOut} 1s infinite linear;
`;

@@ -23,0 +21,0 @@ const Spinner = ({

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

describe(Spinner, () => {
describe('Spinner', () => {
it('renders without crashing', () => {

@@ -11,0 +11,0 @@ const div = document.createElement('div');

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

describe(SVG, () => {
describe('SVG', () => {
it('renders without crashing', () => {

@@ -11,0 +11,0 @@ const div = document.createElement('div');

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

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

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