@govuk-react/icons
Advanced tools
Comparing version 0.10.5 to 0.10.6
import * as React from 'react'; | ||
import { SVGProps } from '../SVGBase/index'; | ||
import { SVGProps } from "../SVGBase/index.js"; | ||
interface ArrowLeftProps extends SVGProps { | ||
@@ -4,0 +4,0 @@ title?: string; |
import * as React from 'react'; | ||
import { SVGProps } from '../SVGBase/index'; | ||
import { SVGProps } from "../SVGBase/index.js"; | ||
interface ArrowRightProps extends SVGProps { | ||
@@ -4,0 +4,0 @@ title?: string; |
import * as React from 'react'; | ||
import { SVGProps } from '../SVGBase/index'; | ||
import { SVGProps } from "../SVGBase/index.js"; | ||
interface ButtonArrowProps extends SVGProps { | ||
@@ -4,0 +4,0 @@ title?: string; |
import * as React from 'react'; | ||
import { SVGProps } from '../SVGBase/index'; | ||
import { SVGProps } from "../SVGBase/index.js"; | ||
interface IconImportantProps extends SVGProps { | ||
@@ -4,0 +4,0 @@ title?: string; |
@@ -1,8 +0,8 @@ | ||
import ArrowLeft from './ArrowLeft'; | ||
import ArrowRight from './ArrowRight'; | ||
import IconImportant from './IconImportant'; | ||
import Search from './Search'; | ||
import Spinner from './Spinner'; | ||
import ButtonArrow from './ButtonArrow'; | ||
import SVGBase from './SVGBase'; | ||
import ArrowLeft from "./ArrowLeft/index.js"; | ||
import ArrowRight from "./ArrowRight/index.js"; | ||
import IconImportant from "./IconImportant/index.js"; | ||
import Search from "./Search/index.js"; | ||
import Spinner from "./Spinner/index.js"; | ||
import ButtonArrow from "./ButtonArrow/index.js"; | ||
import SVGBase from "./SVGBase/index.js"; | ||
export { ArrowLeft, ArrowRight, IconImportant, Search, Spinner, ButtonArrow, SVGBase }; |
import * as React from 'react'; | ||
import { SVGProps } from '../SVGBase/index'; | ||
import { SVGProps } from "../SVGBase/index.js"; | ||
interface SearchProps extends SVGProps { | ||
@@ -4,0 +4,0 @@ title?: string; |
import * as React from 'react'; | ||
import { SVGProps } from '../SVGBase/index'; | ||
import { SVGProps } from "../SVGBase/index.js"; | ||
interface SpinnerProps extends SVGProps { | ||
@@ -4,0 +4,0 @@ className?: string; |
export * from "./declarations/src/index"; | ||
//# sourceMappingURL=govuk-react-icons.cjs.d.ts.map |
@@ -32,6 +32,5 @@ 'use strict'; | ||
function _extends() { | ||
_extends = Object.assign || function (target) { | ||
_extends = Object.assign ? Object.assign.bind() : function (target) { | ||
for (var i = 1; i < arguments.length; i++) { | ||
var source = arguments[i]; | ||
for (var key in source) { | ||
@@ -43,45 +42,9 @@ if (Object.prototype.hasOwnProperty.call(source, key)) { | ||
} | ||
return target; | ||
}; | ||
return _extends.apply(this, arguments); | ||
} | ||
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; | ||
} | ||
function _objectWithoutProperties(source, excluded) { | ||
if (source == null) return {}; | ||
var target = _objectWithoutPropertiesLoose(source, excluded); | ||
var key, i; | ||
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; | ||
} | ||
var _excluded$6 = ["children", "title"]; | ||
var StyledSvg = styled__default["default"]('svg').withConfig({ | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
const StyledSvg = styled__default["default"]('svg').withConfig({ | ||
displayName: "SVGBase__StyledSvg", | ||
@@ -92,8 +55,8 @@ componentId: "sc-16k4s64-0" | ||
}); | ||
var SVG = function SVG(_ref) { | ||
var children = _ref.children, | ||
title = _ref.title, | ||
rest = _objectWithoutProperties(_ref, _excluded$6); | ||
const SVG = _ref => { | ||
let { | ||
children, | ||
title, | ||
...rest | ||
} = _ref; | ||
return /*#__PURE__*/React__namespace["default"].createElement(StyledSvg, _extends({ | ||
@@ -104,3 +67,2 @@ version: "1.1", | ||
}; | ||
SVG.defaultProps = { | ||
@@ -113,9 +75,8 @@ children: undefined, | ||
var _excluded$5 = ["fill", "title"]; | ||
var ArrowLeft = function ArrowLeft(_ref) { | ||
var fill = _ref.fill, | ||
title = _ref.title, | ||
rest = _objectWithoutProperties(_ref, _excluded$5); | ||
const ArrowLeft = _ref => { | ||
let { | ||
fill, | ||
title, | ||
...rest | ||
} = _ref; | ||
return /*#__PURE__*/React__namespace.createElement(SVG, _extends({ | ||
@@ -129,3 +90,2 @@ viewBox: "-0.2 0 17 14", | ||
}; | ||
ArrowLeft.defaultProps = { | ||
@@ -136,9 +96,8 @@ title: 'arrow left', | ||
var _excluded$4 = ["fill", "title"]; | ||
var ArrowRight = function ArrowRight(_ref) { | ||
var fill = _ref.fill, | ||
title = _ref.title, | ||
rest = _objectWithoutProperties(_ref, _excluded$4); | ||
const ArrowRight = _ref => { | ||
let { | ||
fill, | ||
title, | ||
...rest | ||
} = _ref; | ||
return /*#__PURE__*/React__namespace.createElement(SVG, _extends({ | ||
@@ -152,3 +111,2 @@ viewBox: "0 0 17 14", | ||
}; | ||
ArrowRight.defaultProps = { | ||
@@ -159,9 +117,8 @@ title: 'arrow right', | ||
var _excluded$3 = ["fill", "title"]; | ||
var IconImportant = function IconImportant(_ref) { | ||
var fill = _ref.fill, | ||
title = _ref.title, | ||
rest = _objectWithoutProperties(_ref, _excluded$3); | ||
const IconImportant = _ref => { | ||
let { | ||
fill, | ||
title, | ||
...rest | ||
} = _ref; | ||
return /*#__PURE__*/React__namespace.createElement(SVG, _extends({ | ||
@@ -178,3 +135,2 @@ viewBox: "0 0 35.000000 35.000000", | ||
}; | ||
IconImportant.defaultProps = { | ||
@@ -185,9 +141,8 @@ title: 'icon important', | ||
var _excluded$2 = ["fill", "title"]; | ||
var Search = function Search(_ref) { | ||
var fill = _ref.fill, | ||
title = _ref.title, | ||
rest = _objectWithoutProperties(_ref, _excluded$2); | ||
const Search = _ref => { | ||
let { | ||
fill, | ||
title, | ||
...rest | ||
} = _ref; | ||
return /*#__PURE__*/React__namespace.createElement(SVG, _extends({ | ||
@@ -201,3 +156,2 @@ viewBox: "0 0 57 57", | ||
}; | ||
Search.defaultProps = { | ||
@@ -208,17 +162,14 @@ title: 'Search', | ||
var _excluded$1 = ["className", "fill", "title"]; | ||
var fadeInOut = styled.keyframes(["0%{opacity:0.250075;}0.01%{opacity:0.25;}0.03%{opacity:1;}100%{opacity:0.250075;}"]); | ||
var Rect = styled__default["default"].rect.withConfig({ | ||
const fadeInOut = styled.keyframes(["0%{opacity:0.250075;}0.01%{opacity:0.25;}0.03%{opacity:1;}100%{opacity:0.250075;}"]); | ||
const Rect = styled__default["default"].rect.withConfig({ | ||
displayName: "Spinner__Rect", | ||
componentId: "sc-1f5b0zr-0" | ||
})(["animation:", " 1s infinite linear;animation-delay:", "ms;"], fadeInOut, function (props) { | ||
return props.animationDelay * 83; | ||
}); | ||
var Spinner = function Spinner(_ref) { | ||
var className = _ref.className, | ||
fill = _ref.fill, | ||
title = _ref.title, | ||
rest = _objectWithoutProperties(_ref, _excluded$1); | ||
})(["animation:", " 1s infinite linear;animation-delay:", "ms;"], fadeInOut, props => props.animationDelay * 83); | ||
const Spinner = _ref => { | ||
let { | ||
className, | ||
fill, | ||
title, | ||
...rest | ||
} = _ref; | ||
return /*#__PURE__*/React__namespace.createElement(SVG, _extends({ | ||
@@ -230,19 +181,15 @@ className: className, | ||
fill: fill | ||
}, rest), Array(12).fill(1).map(function (el, i) { | ||
return /*#__PURE__*/React__namespace.createElement(Rect, { | ||
fill: fill, | ||
width: "12", | ||
height: "5", | ||
rx: "2.5", | ||
ry: "2.5", | ||
animationDelay: i, | ||
transform: "rotate(".concat(i * 30, ", 0, 2) translate(10 0)"), | ||
opacity: "0" | ||
/* eslint-disable-next-line react/no-array-index-key */ | ||
, | ||
key: i | ||
}); | ||
})); | ||
}, rest), Array(12).fill(1).map((el, i) => /*#__PURE__*/React__namespace.createElement(Rect, { | ||
fill: fill, | ||
width: "12", | ||
height: "5", | ||
rx: "2.5", | ||
ry: "2.5", | ||
animationDelay: i, | ||
transform: `rotate(${i * 30}, 0, 2) translate(10 0)`, | ||
opacity: "0" | ||
/* eslint-disable-next-line react/no-array-index-key */, | ||
key: i | ||
}))); | ||
}; | ||
Spinner.defaultProps = { | ||
@@ -254,9 +201,8 @@ className: 'icon-spinner', | ||
var _excluded = ["fill", "title"]; | ||
var ButtonArrow = function ButtonArrow(_ref) { | ||
var fill = _ref.fill, | ||
title = _ref.title, | ||
rest = _objectWithoutProperties(_ref, _excluded); | ||
const ButtonArrow = _ref => { | ||
let { | ||
fill, | ||
title, | ||
...rest | ||
} = _ref; | ||
return /*#__PURE__*/React__namespace.createElement(SVG, _extends({ | ||
@@ -273,3 +219,2 @@ viewBox: "0 0 706 860", | ||
}; | ||
ButtonArrow.defaultProps = { | ||
@@ -276,0 +221,0 @@ title: 'ButtonArrow', |
@@ -32,6 +32,5 @@ 'use strict'; | ||
function _extends() { | ||
_extends = Object.assign || function (target) { | ||
_extends = Object.assign ? Object.assign.bind() : function (target) { | ||
for (var i = 1; i < arguments.length; i++) { | ||
var source = arguments[i]; | ||
for (var key in source) { | ||
@@ -43,45 +42,9 @@ if (Object.prototype.hasOwnProperty.call(source, key)) { | ||
} | ||
return target; | ||
}; | ||
return _extends.apply(this, arguments); | ||
} | ||
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; | ||
} | ||
function _objectWithoutProperties(source, excluded) { | ||
if (source == null) return {}; | ||
var target = _objectWithoutPropertiesLoose(source, excluded); | ||
var key, i; | ||
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; | ||
} | ||
var _excluded$6 = ["children", "title"]; | ||
var StyledSvg = styled__default["default"]('svg').withConfig({ | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
const StyledSvg = styled__default["default"]('svg').withConfig({ | ||
displayName: "SVGBase__StyledSvg", | ||
@@ -92,8 +55,8 @@ componentId: "sc-16k4s64-0" | ||
}); | ||
var SVG = function SVG(_ref) { | ||
var children = _ref.children, | ||
title = _ref.title, | ||
rest = _objectWithoutProperties(_ref, _excluded$6); | ||
const SVG = _ref => { | ||
let { | ||
children, | ||
title, | ||
...rest | ||
} = _ref; | ||
return /*#__PURE__*/React__namespace["default"].createElement(StyledSvg, _extends({ | ||
@@ -104,3 +67,2 @@ version: "1.1", | ||
}; | ||
SVG.defaultProps = { | ||
@@ -113,9 +75,8 @@ children: undefined, | ||
var _excluded$5 = ["fill", "title"]; | ||
var ArrowLeft = function ArrowLeft(_ref) { | ||
var fill = _ref.fill, | ||
title = _ref.title, | ||
rest = _objectWithoutProperties(_ref, _excluded$5); | ||
const ArrowLeft = _ref => { | ||
let { | ||
fill, | ||
title, | ||
...rest | ||
} = _ref; | ||
return /*#__PURE__*/React__namespace.createElement(SVG, _extends({ | ||
@@ -129,3 +90,2 @@ viewBox: "-0.2 0 17 14", | ||
}; | ||
ArrowLeft.defaultProps = { | ||
@@ -136,9 +96,8 @@ title: 'arrow left', | ||
var _excluded$4 = ["fill", "title"]; | ||
var ArrowRight = function ArrowRight(_ref) { | ||
var fill = _ref.fill, | ||
title = _ref.title, | ||
rest = _objectWithoutProperties(_ref, _excluded$4); | ||
const ArrowRight = _ref => { | ||
let { | ||
fill, | ||
title, | ||
...rest | ||
} = _ref; | ||
return /*#__PURE__*/React__namespace.createElement(SVG, _extends({ | ||
@@ -152,3 +111,2 @@ viewBox: "0 0 17 14", | ||
}; | ||
ArrowRight.defaultProps = { | ||
@@ -159,9 +117,8 @@ title: 'arrow right', | ||
var _excluded$3 = ["fill", "title"]; | ||
var IconImportant = function IconImportant(_ref) { | ||
var fill = _ref.fill, | ||
title = _ref.title, | ||
rest = _objectWithoutProperties(_ref, _excluded$3); | ||
const IconImportant = _ref => { | ||
let { | ||
fill, | ||
title, | ||
...rest | ||
} = _ref; | ||
return /*#__PURE__*/React__namespace.createElement(SVG, _extends({ | ||
@@ -178,3 +135,2 @@ viewBox: "0 0 35.000000 35.000000", | ||
}; | ||
IconImportant.defaultProps = { | ||
@@ -185,9 +141,8 @@ title: 'icon important', | ||
var _excluded$2 = ["fill", "title"]; | ||
var Search = function Search(_ref) { | ||
var fill = _ref.fill, | ||
title = _ref.title, | ||
rest = _objectWithoutProperties(_ref, _excluded$2); | ||
const Search = _ref => { | ||
let { | ||
fill, | ||
title, | ||
...rest | ||
} = _ref; | ||
return /*#__PURE__*/React__namespace.createElement(SVG, _extends({ | ||
@@ -201,3 +156,2 @@ viewBox: "0 0 57 57", | ||
}; | ||
Search.defaultProps = { | ||
@@ -208,17 +162,14 @@ title: 'Search', | ||
var _excluded$1 = ["className", "fill", "title"]; | ||
var fadeInOut = styled.keyframes(["0%{opacity:0.250075;}0.01%{opacity:0.25;}0.03%{opacity:1;}100%{opacity:0.250075;}"]); | ||
var Rect = styled__default["default"].rect.withConfig({ | ||
const fadeInOut = styled.keyframes(["0%{opacity:0.250075;}0.01%{opacity:0.25;}0.03%{opacity:1;}100%{opacity:0.250075;}"]); | ||
const Rect = styled__default["default"].rect.withConfig({ | ||
displayName: "Spinner__Rect", | ||
componentId: "sc-1f5b0zr-0" | ||
})(["animation:", " 1s infinite linear;animation-delay:", "ms;"], fadeInOut, function (props) { | ||
return props.animationDelay * 83; | ||
}); | ||
var Spinner = function Spinner(_ref) { | ||
var className = _ref.className, | ||
fill = _ref.fill, | ||
title = _ref.title, | ||
rest = _objectWithoutProperties(_ref, _excluded$1); | ||
})(["animation:", " 1s infinite linear;animation-delay:", "ms;"], fadeInOut, props => props.animationDelay * 83); | ||
const Spinner = _ref => { | ||
let { | ||
className, | ||
fill, | ||
title, | ||
...rest | ||
} = _ref; | ||
return /*#__PURE__*/React__namespace.createElement(SVG, _extends({ | ||
@@ -230,19 +181,15 @@ className: className, | ||
fill: fill | ||
}, rest), Array(12).fill(1).map(function (el, i) { | ||
return /*#__PURE__*/React__namespace.createElement(Rect, { | ||
fill: fill, | ||
width: "12", | ||
height: "5", | ||
rx: "2.5", | ||
ry: "2.5", | ||
animationDelay: i, | ||
transform: "rotate(".concat(i * 30, ", 0, 2) translate(10 0)"), | ||
opacity: "0" | ||
/* eslint-disable-next-line react/no-array-index-key */ | ||
, | ||
key: i | ||
}); | ||
})); | ||
}, rest), Array(12).fill(1).map((el, i) => /*#__PURE__*/React__namespace.createElement(Rect, { | ||
fill: fill, | ||
width: "12", | ||
height: "5", | ||
rx: "2.5", | ||
ry: "2.5", | ||
animationDelay: i, | ||
transform: `rotate(${i * 30}, 0, 2) translate(10 0)`, | ||
opacity: "0" | ||
/* eslint-disable-next-line react/no-array-index-key */, | ||
key: i | ||
}))); | ||
}; | ||
Spinner.defaultProps = { | ||
@@ -254,9 +201,8 @@ className: 'icon-spinner', | ||
var _excluded = ["fill", "title"]; | ||
var ButtonArrow = function ButtonArrow(_ref) { | ||
var fill = _ref.fill, | ||
title = _ref.title, | ||
rest = _objectWithoutProperties(_ref, _excluded); | ||
const ButtonArrow = _ref => { | ||
let { | ||
fill, | ||
title, | ||
...rest | ||
} = _ref; | ||
return /*#__PURE__*/React__namespace.createElement(SVG, _extends({ | ||
@@ -273,3 +219,2 @@ viewBox: "0 0 706 860", | ||
}; | ||
ButtonArrow.defaultProps = { | ||
@@ -276,0 +221,0 @@ title: 'ButtonArrow', |
@@ -6,6 +6,5 @@ import * as React from 'react'; | ||
function _extends() { | ||
_extends = Object.assign || function (target) { | ||
_extends = Object.assign ? Object.assign.bind() : function (target) { | ||
for (var i = 1; i < arguments.length; i++) { | ||
var source = arguments[i]; | ||
for (var key in source) { | ||
@@ -17,45 +16,9 @@ if (Object.prototype.hasOwnProperty.call(source, key)) { | ||
} | ||
return target; | ||
}; | ||
return _extends.apply(this, arguments); | ||
} | ||
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; | ||
} | ||
function _objectWithoutProperties(source, excluded) { | ||
if (source == null) return {}; | ||
var target = _objectWithoutPropertiesLoose(source, excluded); | ||
var key, i; | ||
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; | ||
} | ||
var _excluded$6 = ["children", "title"]; | ||
var StyledSvg = styled('svg').withConfig({ | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
const StyledSvg = styled('svg').withConfig({ | ||
displayName: "SVGBase__StyledSvg", | ||
@@ -66,8 +29,8 @@ componentId: "sc-16k4s64-0" | ||
}); | ||
var SVG = function SVG(_ref) { | ||
var children = _ref.children, | ||
title = _ref.title, | ||
rest = _objectWithoutProperties(_ref, _excluded$6); | ||
const SVG = _ref => { | ||
let { | ||
children, | ||
title, | ||
...rest | ||
} = _ref; | ||
return /*#__PURE__*/React__default.createElement(StyledSvg, _extends({ | ||
@@ -78,3 +41,2 @@ version: "1.1", | ||
}; | ||
SVG.defaultProps = { | ||
@@ -87,9 +49,8 @@ children: undefined, | ||
var _excluded$5 = ["fill", "title"]; | ||
var ArrowLeft = function ArrowLeft(_ref) { | ||
var fill = _ref.fill, | ||
title = _ref.title, | ||
rest = _objectWithoutProperties(_ref, _excluded$5); | ||
const ArrowLeft = _ref => { | ||
let { | ||
fill, | ||
title, | ||
...rest | ||
} = _ref; | ||
return /*#__PURE__*/React.createElement(SVG, _extends({ | ||
@@ -103,3 +64,2 @@ viewBox: "-0.2 0 17 14", | ||
}; | ||
ArrowLeft.defaultProps = { | ||
@@ -110,9 +70,8 @@ title: 'arrow left', | ||
var _excluded$4 = ["fill", "title"]; | ||
var ArrowRight = function ArrowRight(_ref) { | ||
var fill = _ref.fill, | ||
title = _ref.title, | ||
rest = _objectWithoutProperties(_ref, _excluded$4); | ||
const ArrowRight = _ref => { | ||
let { | ||
fill, | ||
title, | ||
...rest | ||
} = _ref; | ||
return /*#__PURE__*/React.createElement(SVG, _extends({ | ||
@@ -126,3 +85,2 @@ viewBox: "0 0 17 14", | ||
}; | ||
ArrowRight.defaultProps = { | ||
@@ -133,9 +91,8 @@ title: 'arrow right', | ||
var _excluded$3 = ["fill", "title"]; | ||
var IconImportant = function IconImportant(_ref) { | ||
var fill = _ref.fill, | ||
title = _ref.title, | ||
rest = _objectWithoutProperties(_ref, _excluded$3); | ||
const IconImportant = _ref => { | ||
let { | ||
fill, | ||
title, | ||
...rest | ||
} = _ref; | ||
return /*#__PURE__*/React.createElement(SVG, _extends({ | ||
@@ -152,3 +109,2 @@ viewBox: "0 0 35.000000 35.000000", | ||
}; | ||
IconImportant.defaultProps = { | ||
@@ -159,9 +115,8 @@ title: 'icon important', | ||
var _excluded$2 = ["fill", "title"]; | ||
var Search = function Search(_ref) { | ||
var fill = _ref.fill, | ||
title = _ref.title, | ||
rest = _objectWithoutProperties(_ref, _excluded$2); | ||
const Search = _ref => { | ||
let { | ||
fill, | ||
title, | ||
...rest | ||
} = _ref; | ||
return /*#__PURE__*/React.createElement(SVG, _extends({ | ||
@@ -175,3 +130,2 @@ viewBox: "0 0 57 57", | ||
}; | ||
Search.defaultProps = { | ||
@@ -182,17 +136,14 @@ title: 'Search', | ||
var _excluded$1 = ["className", "fill", "title"]; | ||
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({ | ||
const fadeInOut = keyframes(["0%{opacity:0.250075;}0.01%{opacity:0.25;}0.03%{opacity:1;}100%{opacity:0.250075;}"]); | ||
const Rect = styled.rect.withConfig({ | ||
displayName: "Spinner__Rect", | ||
componentId: "sc-1f5b0zr-0" | ||
})(["animation:", " 1s infinite linear;animation-delay:", "ms;"], fadeInOut, function (props) { | ||
return props.animationDelay * 83; | ||
}); | ||
var Spinner = function Spinner(_ref) { | ||
var className = _ref.className, | ||
fill = _ref.fill, | ||
title = _ref.title, | ||
rest = _objectWithoutProperties(_ref, _excluded$1); | ||
})(["animation:", " 1s infinite linear;animation-delay:", "ms;"], fadeInOut, props => props.animationDelay * 83); | ||
const Spinner = _ref => { | ||
let { | ||
className, | ||
fill, | ||
title, | ||
...rest | ||
} = _ref; | ||
return /*#__PURE__*/React.createElement(SVG, _extends({ | ||
@@ -204,19 +155,15 @@ className: className, | ||
fill: fill | ||
}, rest), Array(12).fill(1).map(function (el, i) { | ||
return /*#__PURE__*/React.createElement(Rect, { | ||
fill: fill, | ||
width: "12", | ||
height: "5", | ||
rx: "2.5", | ||
ry: "2.5", | ||
animationDelay: i, | ||
transform: "rotate(".concat(i * 30, ", 0, 2) translate(10 0)"), | ||
opacity: "0" | ||
/* eslint-disable-next-line react/no-array-index-key */ | ||
, | ||
key: i | ||
}); | ||
})); | ||
}, rest), Array(12).fill(1).map((el, i) => /*#__PURE__*/React.createElement(Rect, { | ||
fill: fill, | ||
width: "12", | ||
height: "5", | ||
rx: "2.5", | ||
ry: "2.5", | ||
animationDelay: i, | ||
transform: `rotate(${i * 30}, 0, 2) translate(10 0)`, | ||
opacity: "0" | ||
/* eslint-disable-next-line react/no-array-index-key */, | ||
key: i | ||
}))); | ||
}; | ||
Spinner.defaultProps = { | ||
@@ -228,9 +175,8 @@ className: 'icon-spinner', | ||
var _excluded = ["fill", "title"]; | ||
var ButtonArrow = function ButtonArrow(_ref) { | ||
var fill = _ref.fill, | ||
title = _ref.title, | ||
rest = _objectWithoutProperties(_ref, _excluded); | ||
const ButtonArrow = _ref => { | ||
let { | ||
fill, | ||
title, | ||
...rest | ||
} = _ref; | ||
return /*#__PURE__*/React.createElement(SVG, _extends({ | ||
@@ -247,3 +193,2 @@ viewBox: "0 0 706 860", | ||
}; | ||
ButtonArrow.defaultProps = { | ||
@@ -250,0 +195,0 @@ title: 'ButtonArrow', |
{ | ||
"name": "@govuk-react/icons", | ||
"version": "0.10.5", | ||
"version": "0.10.6", | ||
"dependencies": { | ||
"@govuk-react/constants": "^0.10.5", | ||
"@govuk-react/constants": "^0.10.6", | ||
"govuk-colours": "^1.1.0" | ||
@@ -7,0 +7,0 @@ }, |
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
34128
38
1060
+ Addednanoid@3.3.7(transitive)
- Removednanoid@3.3.8(transitive)