@gemeente-denhaag/link
Advanced tools
Comparing version 0.2.3-alpha.22 to 0.2.3-alpha.23
@@ -101,3 +101,3 @@ import React from'react';/*! ***************************************************************************** | ||
} | ||
}var css_248z = ".denhaag-link{color:var(--denhaag-link-color);padding-block-start:var(--denhaag-link-padding);padding-block-end:var(--denhaag-link-padding);font-family:inherit;font-weight:inherit;font-size:inherit;line-height:inherit;text-decoration:underline}.denhaag-link--with-icon{text-decoration:none}.denhaag-link--focus,.denhaag-link:focus{color:var(--denhaag-link-focus-color);outline:var(--denhaag-link-focus-outline)}.denhaag-link--hover,.denhaag-link:hover{cursor:pointer;color:var(--denhaag-link-hover-color)}.denhaag-link--disabled{cursor:none;pointer-events:none}.denhaag-link--disabled,.denhaag-link--disabled--hover,.denhaag-link--disabled:hover{color:var(--denhaag-link-disabled-color)}.denhaag-link__icon{display:inline-flex;justify-content:center;align-items:center;vertical-align:text-top;height:var(--denhaag-link-icon-size);width:var(--denhaag-link-icon-size)}.denhaag-link__icon>:first-child{width:inherit;height:inherit}.denhaag-link__icon--start{margin-inline-end:var(--denhaag-link-icon-margin-start)}.denhaag-link__icon--end{margin-inline-start:var(--denhaag-link-icon-margin-end)}"; | ||
}var css_248z = ".denhaag-link{position:relative;color:var(--denhaag-link-color);padding-block-start:var(--denhaag-link-padding);padding-block-end:var(--denhaag-link-padding);font-family:inherit;font-weight:inherit;font-size:inherit;line-height:inherit;text-decoration:underline}.denhaag-link--with-icon{text-decoration:none}.denhaag-link--with-icon-start{padding-inline-start:calc(var(--denhaag-link-icon-size) + var(--denhaag-link-icon-margin-start))}.denhaag-link--with-icon-end{padding-inline-end:calc(var(--denhaag-link-icon-size) + var(--denhaag-link-icon-margin-end))}.denhaag-link--focus,.denhaag-link:focus{color:var(--denhaag-link-focus-color);outline:var(--denhaag-link-focus-outline)}.denhaag-link--hover,.denhaag-link:hover{cursor:pointer;color:var(--denhaag-link-hover-color)}.denhaag-link--disabled{cursor:none;pointer-events:none}.denhaag-link--disabled,.denhaag-link--disabled--hover,.denhaag-link--disabled:hover{color:var(--denhaag-link-disabled-color)}.denhaag-link__icon{position:absolute;top:0;display:inline-flex;justify-content:center;align-items:center;vertical-align:text-top;width:var(--denhaag-link-icon-size);height:100%}.denhaag-link--with-icon-start .denhaag-link__icon{left:0}.denhaag-link--with-icon-end .denhaag-link__icon{right:0}.denhaag-link__icon>:first-child{width:inherit;height:var(--denhaag-link-icon-size);font-size:inherit}"; | ||
styleInject(css_248z);/** | ||
@@ -113,12 +113,11 @@ * An easily customizable anchor element. | ||
'denhaag-link--with-icon': icon !== undefined, | ||
'denhaag-link--with-icon-start': icon !== undefined && iconAlign === 'start', | ||
'denhaag-link--with-icon-end': icon !== undefined && iconAlign === 'end', | ||
}, props.className); | ||
var iconClassName = clsx('denhaag-link__icon', { | ||
'denhaag-link__icon--start': iconAlign === 'start', | ||
'denhaag-link__icon--end': iconAlign === 'end', | ||
}); | ||
var iconClassName = clsx('denhaag-link__icon'); | ||
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 : '', | ||
children, | ||
React.createElement("span", null, children), | ||
icon !== undefined && iconAlign === 'end' ? iconWrapped : '')); | ||
};export default Link;export{Link}; |
{ | ||
"name": "@gemeente-denhaag/link", | ||
"version": "0.2.3-alpha.22", | ||
"version": "0.2.3-alpha.23", | ||
"description": "A Link component", | ||
@@ -25,7 +25,7 @@ "bugs": "https://github.com/nl-design-system/denhaag/issues", | ||
"dependencies": { | ||
"@gemeente-denhaag/baseprops": "^0.2.3-alpha.22", | ||
"@gemeente-denhaag/icons": "^0.2.3-alpha.22" | ||
"@gemeente-denhaag/baseprops": "^0.2.3-alpha.23", | ||
"@gemeente-denhaag/icons": "^0.2.3-alpha.23" | ||
}, | ||
"devDependencies": { | ||
"@gemeente-denhaag/typography": "^0.2.3-alpha.22" | ||
"@gemeente-denhaag/typography": "^0.2.3-alpha.23" | ||
}, | ||
@@ -35,3 +35,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "920a005fdc18cb31f974bc8efe20457120acf31c" | ||
"gitHead": "7fb3e47d7af53d3566a263cf59f76d6b4eaf84c0" | ||
} |
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
59950