@gemeente-denhaag/link
Advanced tools
Comparing version 0.2.3-alpha.357 to 0.2.3-alpha.358
import { AnchorHTMLAttributes } from 'react'; | ||
export type CustomLink = (props: AnchorHTMLAttributes<HTMLAnchorElement>) => JSX.Element; | ||
export default CustomLink; |
@@ -0,0 +0,0 @@ import React from 'react'; |
@@ -1,2 +0,2 @@ | ||
'use strict';Object.defineProperty(exports,'__esModule',{value:true});var React=require('react');function _interopDefaultLegacy(e){return e&&typeof e==='object'&&'default'in e?e:{'default':e}}var React__default=/*#__PURE__*/_interopDefaultLegacy(React);/****************************************************************************** | ||
'use strict';Object.defineProperty(exports,'__esModule',{value:true});var React=require('react');/****************************************************************************** | ||
Copyright (c) Microsoft Corporation. | ||
@@ -15,29 +15,31 @@ | ||
***************************************************************************** */ | ||
/* global Reflect, Promise, SuppressedError, Symbol */ | ||
var __assign = function() { | ||
__assign = Object.assign || function __assign(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
return __assign.apply(this, arguments); | ||
__assign = Object.assign || function __assign(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
return __assign.apply(this, arguments); | ||
}; | ||
function __rest(s, e) { | ||
var t = {}; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) | ||
t[p] = s[p]; | ||
if (s != null && typeof Object.getOwnPropertySymbols === "function") | ||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { | ||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) | ||
t[p[i]] = s[p[i]]; | ||
} | ||
return t; | ||
var t = {}; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) | ||
t[p] = s[p]; | ||
if (s != null && typeof Object.getOwnPropertySymbols === "function") | ||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { | ||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) | ||
t[p[i]] = s[p[i]]; | ||
} | ||
return t; | ||
} | ||
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) { | ||
var e = new Error(message); | ||
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; | ||
var e = new Error(message); | ||
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; | ||
};function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function clsx(){for(var e,t,f=0,n="";f<arguments.length;)(e=arguments[f++])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}function styleInject(css, ref) { | ||
@@ -83,7 +85,7 @@ if ( ref === void 0 ) ref = {}; | ||
var iconClassName = clsx('denhaag-link__icon'); | ||
var iconWrapped = React__default["default"].createElement("span", { className: iconClassName }, icon); | ||
return (React__default["default"].createElement("a", __assign({ id: id, href: href, tabIndex: disabled ? -1 : tabIndex }, props, { className: rootClassNames }), | ||
var iconWrapped = React.createElement("span", { className: iconClassName }, icon); | ||
return (React.createElement("a", __assign({ id: id, href: href, tabIndex: disabled ? -1 : tabIndex }, props, { className: rootClassNames }), | ||
icon !== undefined && iconAlign === 'start' ? iconWrapped : '', | ||
React__default["default"].createElement("span", null, children), | ||
React.createElement("span", null, children), | ||
icon !== undefined && iconAlign === 'end' ? iconWrapped : '')); | ||
};exports.Link=Link;exports["default"]=Link; | ||
};exports.Link=Link;exports.default=Link; |
import { AnchorHTMLAttributes } from 'react'; | ||
export type CustomLink = (props: AnchorHTMLAttributes<HTMLAnchorElement>) => JSX.Element; | ||
export default CustomLink; |
@@ -0,0 +0,0 @@ import React from 'react'; |
@@ -15,29 +15,31 @@ import React from'react';/****************************************************************************** | ||
***************************************************************************** */ | ||
/* global Reflect, Promise, SuppressedError, Symbol */ | ||
var __assign = function() { | ||
__assign = Object.assign || function __assign(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
return __assign.apply(this, arguments); | ||
__assign = Object.assign || function __assign(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
return __assign.apply(this, arguments); | ||
}; | ||
function __rest(s, e) { | ||
var t = {}; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) | ||
t[p] = s[p]; | ||
if (s != null && typeof Object.getOwnPropertySymbols === "function") | ||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { | ||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) | ||
t[p[i]] = s[p[i]]; | ||
} | ||
return t; | ||
var t = {}; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) | ||
t[p] = s[p]; | ||
if (s != null && typeof Object.getOwnPropertySymbols === "function") | ||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { | ||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) | ||
t[p[i]] = s[p[i]]; | ||
} | ||
return t; | ||
} | ||
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) { | ||
var e = new Error(message); | ||
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; | ||
var e = new Error(message); | ||
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; | ||
};function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function clsx(){for(var e,t,f=0,n="";f<arguments.length;)(e=arguments[f++])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}function styleInject(css, ref) { | ||
@@ -44,0 +46,0 @@ if ( ref === void 0 ) ref = {}; |
{ | ||
"name": "@gemeente-denhaag/link", | ||
"version": "0.2.3-alpha.357", | ||
"version": "0.2.3-alpha.358", | ||
"description": "A Link component", | ||
@@ -29,11 +29,12 @@ "bugs": "https://github.com/nl-design-system/denhaag/issues", | ||
"build": "rollup -c ../../rollup.config.mjs", | ||
"clean": "rimraf dist tsconfig.tsbuildinfo" | ||
"clean": "rimraf dist tsconfig.tsbuildinfo", | ||
"watch:components": "chokidar --silent --follow-symlinks \"src/**/*\" -c \"pnpm run build\"" | ||
}, | ||
"dependencies": { | ||
"@gemeente-denhaag/icons": "0.2.3-alpha.357" | ||
"@gemeente-denhaag/icons": "0.2.3-alpha.358" | ||
}, | ||
"peerDependencies": { | ||
"react": "^17.0.0 || ^18.0.0" | ||
"react": "^18.0.0" | ||
}, | ||
"gitHead": "b3b390c174202f681ff4070c671c7b5a85041270" | ||
"gitHead": "643bf10c93681ac6e00bdbcb22e2dd8cbc294cdc" | ||
} |
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
473
41793
+ Added@gemeente-denhaag/icons@0.2.3-alpha.358(transitive)
- Removed@gemeente-denhaag/icons@0.2.3-alpha.357(transitive)