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

@govuk-react/link

Package Overview
Dependencies
Maintainers
5
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@govuk-react/link - npm Package Compare versions

Comparing version 0.10.5 to 0.10.6

dist/govuk-react-link.cjs.d.ts.map

1

dist/govuk-react-link.cjs.d.ts
export * from "./declarations/src/index";
export { default } from "./declarations/src/index";
//# sourceMappingURL=govuk-react-link.cjs.d.ts.map

64

dist/govuk-react-link.cjs.dev.js

@@ -12,36 +12,8 @@ 'use strict';

function _arrayLikeToArray(arr, len) {
if (len == null || len > arr.length) len = arr.length;
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
return arr2;
}
function _arrayWithoutHoles(arr) {
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
}
function _iterableToArray(iter) {
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
}
function _unsupportedIterableToArray(o, minLen) {
if (!o) return;
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
var n = Object.prototype.toString.call(o).slice(8, -1);
if (n === "Object" && o.constructor) n = o.constructor.name;
if (n === "Map" || n === "Set") return Array.from(o);
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
}
function _nonIterableSpread() {
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
function _toConsumableArray(arr) {
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
}
/**
* ### References
*
* - https://github.com/alphagov/govuk-frontend/blob/main/src/govuk/core/_links.scss
*/
/**
* Link/Anchor element.

@@ -52,18 +24,22 @@ *

*/
var Link = styled__default["default"]('a').withConfig({
shouldForwardProp: function shouldForwardProp(prop) {
return !['noVisitedState', 'textColour', 'muted'].includes(prop);
},
const Link = styled__default["default"]('a').withConfig({
shouldForwardProp: prop => !['noVisitedState', 'textColour', 'muted'].includes(prop),
displayName: "src__Link",
componentId: "sc-1loawqx-0"
}).apply(void 0, _toConsumableArray(lib.link.common()).concat([lib.link.styleDefault, lib.link.printFriendly, function (_ref) {
var muted = _ref.muted;
})(...lib.link.common(), lib.link.styleDefault, lib.link.printFriendly, _ref => {
let {
muted
} = _ref;
return muted ? lib.link.styleMuted : undefined;
}, function (_ref2) {
var textColour = _ref2.textColour;
}, _ref2 => {
let {
textColour
} = _ref2;
return textColour ? lib.link.styleText : undefined;
}, function (_ref3) {
var noVisitedState = _ref3.noVisitedState;
}, _ref3 => {
let {
noVisitedState
} = _ref3;
return noVisitedState ? lib.link.styleNoVisitedState : undefined;
}]));
});
Link.defaultProps = {

@@ -70,0 +46,0 @@ muted: false,

@@ -12,36 +12,8 @@ 'use strict';

function _arrayLikeToArray(arr, len) {
if (len == null || len > arr.length) len = arr.length;
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
return arr2;
}
function _arrayWithoutHoles(arr) {
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
}
function _iterableToArray(iter) {
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
}
function _unsupportedIterableToArray(o, minLen) {
if (!o) return;
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
var n = Object.prototype.toString.call(o).slice(8, -1);
if (n === "Object" && o.constructor) n = o.constructor.name;
if (n === "Map" || n === "Set") return Array.from(o);
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
}
function _nonIterableSpread() {
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
function _toConsumableArray(arr) {
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
}
/**
* ### References
*
* - https://github.com/alphagov/govuk-frontend/blob/main/src/govuk/core/_links.scss
*/
/**
* Link/Anchor element.

@@ -52,18 +24,22 @@ *

*/
var Link = styled__default["default"]('a').withConfig({
shouldForwardProp: function shouldForwardProp(prop) {
return !['noVisitedState', 'textColour', 'muted'].includes(prop);
},
const Link = styled__default["default"]('a').withConfig({
shouldForwardProp: prop => !['noVisitedState', 'textColour', 'muted'].includes(prop),
displayName: "src__Link",
componentId: "sc-1loawqx-0"
}).apply(void 0, _toConsumableArray(lib.link.common()).concat([lib.link.styleDefault, lib.link.printFriendly, function (_ref) {
var muted = _ref.muted;
})(...lib.link.common(), lib.link.styleDefault, lib.link.printFriendly, _ref => {
let {
muted
} = _ref;
return muted ? lib.link.styleMuted : undefined;
}, function (_ref2) {
var textColour = _ref2.textColour;
}, _ref2 => {
let {
textColour
} = _ref2;
return textColour ? lib.link.styleText : undefined;
}, function (_ref3) {
var noVisitedState = _ref3.noVisitedState;
}, _ref3 => {
let {
noVisitedState
} = _ref3;
return noVisitedState ? lib.link.styleNoVisitedState : undefined;
}]));
});
Link.defaultProps = {

@@ -70,0 +46,0 @@ muted: false,

import styled from 'styled-components';
import { link } from '@govuk-react/lib';
function _arrayLikeToArray(arr, len) {
if (len == null || len > arr.length) len = arr.length;
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
return arr2;
}
function _arrayWithoutHoles(arr) {
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
}
function _iterableToArray(iter) {
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
}
function _unsupportedIterableToArray(o, minLen) {
if (!o) return;
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
var n = Object.prototype.toString.call(o).slice(8, -1);
if (n === "Object" && o.constructor) n = o.constructor.name;
if (n === "Map" || n === "Set") return Array.from(o);
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
}
function _nonIterableSpread() {
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
function _toConsumableArray(arr) {
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
}
/**
* ### References
*
* - https://github.com/alphagov/govuk-frontend/blob/main/src/govuk/core/_links.scss
*/
/**
* Link/Anchor element.

@@ -43,18 +15,22 @@ *

*/
var Link = styled('a').withConfig({
shouldForwardProp: function shouldForwardProp(prop) {
return !['noVisitedState', 'textColour', 'muted'].includes(prop);
},
const Link = styled('a').withConfig({
shouldForwardProp: prop => !['noVisitedState', 'textColour', 'muted'].includes(prop),
displayName: "src__Link",
componentId: "sc-1loawqx-0"
}).apply(void 0, _toConsumableArray(link.common()).concat([link.styleDefault, link.printFriendly, function (_ref) {
var muted = _ref.muted;
})(...link.common(), link.styleDefault, link.printFriendly, _ref => {
let {
muted
} = _ref;
return muted ? link.styleMuted : undefined;
}, function (_ref2) {
var textColour = _ref2.textColour;
}, _ref2 => {
let {
textColour
} = _ref2;
return textColour ? link.styleText : undefined;
}, function (_ref3) {
var noVisitedState = _ref3.noVisitedState;
}, _ref3 => {
let {
noVisitedState
} = _ref3;
return noVisitedState ? link.styleNoVisitedState : undefined;
}]));
});
Link.defaultProps = {

@@ -61,0 +37,0 @@ muted: false,

{
"name": "@govuk-react/link",
"version": "0.10.5",
"version": "0.10.6",
"dependencies": {
"@govuk-react/lib": "^0.10.5",
"@govuk-react/lib": "^0.10.6",
"govuk-colours": "^1.1.0"

@@ -7,0 +7,0 @@ },

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