@ta-interaktiv/contentbricks
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -5,2 +5,8 @@ # Change Log | ||
## [1.0.3](https://gitlab.com/ta-interaktiv/packages/compare/@ta-interaktiv/contentbricks@1.0.2...@ta-interaktiv/contentbricks@1.0.3) (2020-04-08) | ||
### Bug Fixes | ||
- contentbricks | Link, disco style is default ([2f86ee0](https://gitlab.com/ta-interaktiv/packages/commit/2f86ee0f5d9d38ea70667685a8040aa092a73691)) | ||
## [1.0.2](https://gitlab.com/ta-interaktiv/packages/compare/@ta-interaktiv/contentbricks@1.0.1...@ta-interaktiv/contentbricks@1.0.2) (2020-04-02) | ||
@@ -7,0 +13,0 @@ |
@@ -73,7 +73,7 @@ 'use strict'; | ||
var css_248z = "@font-face {\n font-family: 'custom_icons';\n src: url(\"https://interaktiv.tagesanzeiger.ch/static/fonts/contenbricks-icons/icomoon.eot?5kiojs\");\n src: url(\"https://interaktiv.tagesanzeiger.ch/static/fonts/contenbricks-icons/icomoon.eot?5kiojs#iefix\") format(\"embedded-opentype\"), url(\"https://interaktiv.tagesanzeiger.ch/static/fonts/contenbricks-icons/icomoon.ttf?5kiojs\") format(\"truetype\"), url(\"https://interaktiv.tagesanzeiger.ch/static/fonts/contenbricks-icons/icomoon.woff?5kiojs\") format(\"woff\"), url(\"https://interaktiv.tagesanzeiger.ch/static/fonts/contenbricks-icons/icomoon.svg?5kiojs#icomoon\") format(\"svg\");\n font-weight: normal;\n font-style: normal; }\n\n@font-face {\n font-family: 'custom_icons';\n src: url(\"https://interaktiv.tagesanzeiger.ch/static/fonts/contenbricks-icons/icomoon.eot?5kiojs\");\n src: url(\"https://interaktiv.tagesanzeiger.ch/static/fonts/contenbricks-icons/icomoon.eot?5kiojs#iefix\") format(\"embedded-opentype\"), url(\"https://interaktiv.tagesanzeiger.ch/static/fonts/contenbricks-icons/icomoon.ttf?5kiojs\") format(\"truetype\"), url(\"https://interaktiv.tagesanzeiger.ch/static/fonts/contenbricks-icons/icomoon.woff?5kiojs\") format(\"woff\"), url(\"https://interaktiv.tagesanzeiger.ch/static/fonts/contenbricks-icons/icomoon.svg?5kiojs#icomoon\") format(\"svg\");\n font-weight: normal;\n font-style: italic; }\n\n.external-link:before {\n font-family: 'custom_icons';\n content: '\\e900';\n margin-right: 0.25em; }\n\na.disco:hover,\na.disco:link,\na.disco:active,\na.disco:visited {\n background-image: -webkit-gradient(linear, left top, right top, from(#ffe462), to(#ffe462));\n background-image: -webkit-linear-gradient(left, #ffe462, #ffe462);\n background-image: linear-gradient(90deg, #ffe462, #ffe462);\n background-repeat: repeat-x;\n background-position: bottom;\n -webkit-background-size: 100% 20%;\n background-size: 100% 20%;\n -webkit-transition: all 0.1s ease-in-out;\n transition: all 0.1s ease-in-out;\n color: #202346;\n -webkit-background-origin: content-box;\n background-origin: content-box; }\n\na.disco:hover {\n -webkit-background-size: 100% 100%;\n background-size: 100% 100%; }\n"; | ||
var css_248z = "@font-face {\n font-family: 'custom_icons';\n src: url(\"https://interaktiv.tagesanzeiger.ch/static/fonts/contenbricks-icons/icomoon.eot?5kiojs\");\n src: url(\"https://interaktiv.tagesanzeiger.ch/static/fonts/contenbricks-icons/icomoon.eot?5kiojs#iefix\") format(\"embedded-opentype\"), url(\"https://interaktiv.tagesanzeiger.ch/static/fonts/contenbricks-icons/icomoon.ttf?5kiojs\") format(\"truetype\"), url(\"https://interaktiv.tagesanzeiger.ch/static/fonts/contenbricks-icons/icomoon.woff?5kiojs\") format(\"woff\"), url(\"https://interaktiv.tagesanzeiger.ch/static/fonts/contenbricks-icons/icomoon.svg?5kiojs#icomoon\") format(\"svg\");\n font-weight: normal;\n font-style: normal; }\n\n@font-face {\n font-family: 'custom_icons';\n src: url(\"https://interaktiv.tagesanzeiger.ch/static/fonts/contenbricks-icons/icomoon.eot?5kiojs\");\n src: url(\"https://interaktiv.tagesanzeiger.ch/static/fonts/contenbricks-icons/icomoon.eot?5kiojs#iefix\") format(\"embedded-opentype\"), url(\"https://interaktiv.tagesanzeiger.ch/static/fonts/contenbricks-icons/icomoon.ttf?5kiojs\") format(\"truetype\"), url(\"https://interaktiv.tagesanzeiger.ch/static/fonts/contenbricks-icons/icomoon.woff?5kiojs\") format(\"woff\"), url(\"https://interaktiv.tagesanzeiger.ch/static/fonts/contenbricks-icons/icomoon.svg?5kiojs#icomoon\") format(\"svg\");\n font-weight: normal;\n font-style: italic; }\n\n.external-link:before {\n font-family: 'custom_icons';\n content: '\\e900';\n margin-right: 0.25em; }\n\na.cB:hover,\na.cB:link,\na.cB:active,\na.cB:visited {\n background-image: -webkit-gradient(linear, left top, right top, from(#ffe462), to(#ffe462));\n background-image: -webkit-linear-gradient(left, #ffe462, #ffe462);\n background-image: linear-gradient(90deg, #ffe462, #ffe462);\n background-repeat: repeat-x;\n background-position: bottom;\n -webkit-background-size: 100% 20%;\n background-size: 100% 20%;\n -webkit-transition: all 0.1s ease-in-out;\n transition: all 0.1s ease-in-out;\n color: #202346;\n -webkit-background-origin: content-box;\n background-origin: content-box; }\n\na.cB:hover {\n -webkit-background-size: 100% 100%;\n background-size: 100% 100%; }\n"; | ||
styleInject(css_248z); | ||
var Link = function (_a) { | ||
var _b = _a.href, href = _b === void 0 ? '' : _b, _c = _a.icon, icon = _c === void 0 ? 'icon-external-link' : _c, _d = _a.hideIcon, hideIcon = _d === void 0 ? false : _d, _e = _a.target, target = _e === void 0 ? ['_parent', '_blank'] : _e, _f = _a.className, className = _f === void 0 ? 'cbLink' : _f, _g = _a.style, style = _g === void 0 ? { whiteSpace: 'nowrap' } : _g, _h = _a.children, children = _h === void 0 ? 'Link' : _h, _j = _a.allowWordWrap, allowWordWrap = _j === void 0 ? false : _j, _k = _a.disco, disco = _k === void 0 ? false : _k, props = __rest(_a, ["href", "icon", "hideIcon", "target", "className", "style", "children", "allowWordWrap", "disco"]); | ||
var _b = _a.href, href = _b === void 0 ? '' : _b, _c = _a.icon, icon = _c === void 0 ? 'icon-external-link' : _c, _d = _a.hideIcon, hideIcon = _d === void 0 ? false : _d, _e = _a.target, target = _e === void 0 ? ['_parent', '_blank'] : _e, _f = _a.className, className = _f === void 0 ? 'cbLink' : _f, _g = _a.style, style = _g === void 0 ? { whiteSpace: 'nowrap' } : _g, _h = _a.children, children = _h === void 0 ? 'Link' : _h, _j = _a.allowWordWrap, allowWordWrap = _j === void 0 ? false : _j, props = __rest(_a, ["href", "icon", "hideIcon", "target", "className", "style", "children", "allowWordWrap"]); | ||
if (children === 'Link' && href) | ||
@@ -92,3 +92,3 @@ children = href; | ||
} | ||
return (React__default.createElement("a", __assign({ href: href, target: openIn, className: disco ? className + ' disco' : className, style: __assign(__assign(__assign({}, style), noWrap), (placeholderMode ? { color: placeholderColor } : {})) }, props), | ||
return (React__default.createElement("a", __assign({ href: href, target: openIn, className: className + ' cB', style: __assign(__assign(__assign({}, style), noWrap), (placeholderMode ? { color: placeholderColor } : {})) }, props), | ||
!hideIcon && (React__default.createElement("i", { className: 'icon ' + icon, style: { fontSize: '.8em' } })), | ||
@@ -95,0 +95,0 @@ children)); |
@@ -12,7 +12,6 @@ import React, { CSSProperties } from 'react'; | ||
allowWordWrap?: boolean; | ||
disco?: boolean; | ||
[key: string]: any; | ||
} | ||
export declare const Link: { | ||
({ href, icon, hideIcon, target, className, style, children, allowWordWrap, disco, ...props }: LinkProps): JSX.Element; | ||
({ href, icon, hideIcon, target, className, style, children, allowWordWrap, ...props }: LinkProps): JSX.Element; | ||
defaultProps: { | ||
@@ -19,0 +18,0 @@ href: string; |
@@ -66,7 +66,7 @@ import React, { useState, useEffect, useLayoutEffect, useRef } from 'react'; | ||
var css_248z = "@font-face {\n font-family: 'custom_icons';\n src: url(\"https://interaktiv.tagesanzeiger.ch/static/fonts/contenbricks-icons/icomoon.eot?5kiojs\");\n src: url(\"https://interaktiv.tagesanzeiger.ch/static/fonts/contenbricks-icons/icomoon.eot?5kiojs#iefix\") format(\"embedded-opentype\"), url(\"https://interaktiv.tagesanzeiger.ch/static/fonts/contenbricks-icons/icomoon.ttf?5kiojs\") format(\"truetype\"), url(\"https://interaktiv.tagesanzeiger.ch/static/fonts/contenbricks-icons/icomoon.woff?5kiojs\") format(\"woff\"), url(\"https://interaktiv.tagesanzeiger.ch/static/fonts/contenbricks-icons/icomoon.svg?5kiojs#icomoon\") format(\"svg\");\n font-weight: normal;\n font-style: normal; }\n\n@font-face {\n font-family: 'custom_icons';\n src: url(\"https://interaktiv.tagesanzeiger.ch/static/fonts/contenbricks-icons/icomoon.eot?5kiojs\");\n src: url(\"https://interaktiv.tagesanzeiger.ch/static/fonts/contenbricks-icons/icomoon.eot?5kiojs#iefix\") format(\"embedded-opentype\"), url(\"https://interaktiv.tagesanzeiger.ch/static/fonts/contenbricks-icons/icomoon.ttf?5kiojs\") format(\"truetype\"), url(\"https://interaktiv.tagesanzeiger.ch/static/fonts/contenbricks-icons/icomoon.woff?5kiojs\") format(\"woff\"), url(\"https://interaktiv.tagesanzeiger.ch/static/fonts/contenbricks-icons/icomoon.svg?5kiojs#icomoon\") format(\"svg\");\n font-weight: normal;\n font-style: italic; }\n\n.external-link:before {\n font-family: 'custom_icons';\n content: '\\e900';\n margin-right: 0.25em; }\n\na.disco:hover,\na.disco:link,\na.disco:active,\na.disco:visited {\n background-image: -webkit-gradient(linear, left top, right top, from(#ffe462), to(#ffe462));\n background-image: -webkit-linear-gradient(left, #ffe462, #ffe462);\n background-image: linear-gradient(90deg, #ffe462, #ffe462);\n background-repeat: repeat-x;\n background-position: bottom;\n -webkit-background-size: 100% 20%;\n background-size: 100% 20%;\n -webkit-transition: all 0.1s ease-in-out;\n transition: all 0.1s ease-in-out;\n color: #202346;\n -webkit-background-origin: content-box;\n background-origin: content-box; }\n\na.disco:hover {\n -webkit-background-size: 100% 100%;\n background-size: 100% 100%; }\n"; | ||
var css_248z = "@font-face {\n font-family: 'custom_icons';\n src: url(\"https://interaktiv.tagesanzeiger.ch/static/fonts/contenbricks-icons/icomoon.eot?5kiojs\");\n src: url(\"https://interaktiv.tagesanzeiger.ch/static/fonts/contenbricks-icons/icomoon.eot?5kiojs#iefix\") format(\"embedded-opentype\"), url(\"https://interaktiv.tagesanzeiger.ch/static/fonts/contenbricks-icons/icomoon.ttf?5kiojs\") format(\"truetype\"), url(\"https://interaktiv.tagesanzeiger.ch/static/fonts/contenbricks-icons/icomoon.woff?5kiojs\") format(\"woff\"), url(\"https://interaktiv.tagesanzeiger.ch/static/fonts/contenbricks-icons/icomoon.svg?5kiojs#icomoon\") format(\"svg\");\n font-weight: normal;\n font-style: normal; }\n\n@font-face {\n font-family: 'custom_icons';\n src: url(\"https://interaktiv.tagesanzeiger.ch/static/fonts/contenbricks-icons/icomoon.eot?5kiojs\");\n src: url(\"https://interaktiv.tagesanzeiger.ch/static/fonts/contenbricks-icons/icomoon.eot?5kiojs#iefix\") format(\"embedded-opentype\"), url(\"https://interaktiv.tagesanzeiger.ch/static/fonts/contenbricks-icons/icomoon.ttf?5kiojs\") format(\"truetype\"), url(\"https://interaktiv.tagesanzeiger.ch/static/fonts/contenbricks-icons/icomoon.woff?5kiojs\") format(\"woff\"), url(\"https://interaktiv.tagesanzeiger.ch/static/fonts/contenbricks-icons/icomoon.svg?5kiojs#icomoon\") format(\"svg\");\n font-weight: normal;\n font-style: italic; }\n\n.external-link:before {\n font-family: 'custom_icons';\n content: '\\e900';\n margin-right: 0.25em; }\n\na.cB:hover,\na.cB:link,\na.cB:active,\na.cB:visited {\n background-image: -webkit-gradient(linear, left top, right top, from(#ffe462), to(#ffe462));\n background-image: -webkit-linear-gradient(left, #ffe462, #ffe462);\n background-image: linear-gradient(90deg, #ffe462, #ffe462);\n background-repeat: repeat-x;\n background-position: bottom;\n -webkit-background-size: 100% 20%;\n background-size: 100% 20%;\n -webkit-transition: all 0.1s ease-in-out;\n transition: all 0.1s ease-in-out;\n color: #202346;\n -webkit-background-origin: content-box;\n background-origin: content-box; }\n\na.cB:hover {\n -webkit-background-size: 100% 100%;\n background-size: 100% 100%; }\n"; | ||
styleInject(css_248z); | ||
var Link = function (_a) { | ||
var _b = _a.href, href = _b === void 0 ? '' : _b, _c = _a.icon, icon = _c === void 0 ? 'icon-external-link' : _c, _d = _a.hideIcon, hideIcon = _d === void 0 ? false : _d, _e = _a.target, target = _e === void 0 ? ['_parent', '_blank'] : _e, _f = _a.className, className = _f === void 0 ? 'cbLink' : _f, _g = _a.style, style = _g === void 0 ? { whiteSpace: 'nowrap' } : _g, _h = _a.children, children = _h === void 0 ? 'Link' : _h, _j = _a.allowWordWrap, allowWordWrap = _j === void 0 ? false : _j, _k = _a.disco, disco = _k === void 0 ? false : _k, props = __rest(_a, ["href", "icon", "hideIcon", "target", "className", "style", "children", "allowWordWrap", "disco"]); | ||
var _b = _a.href, href = _b === void 0 ? '' : _b, _c = _a.icon, icon = _c === void 0 ? 'icon-external-link' : _c, _d = _a.hideIcon, hideIcon = _d === void 0 ? false : _d, _e = _a.target, target = _e === void 0 ? ['_parent', '_blank'] : _e, _f = _a.className, className = _f === void 0 ? 'cbLink' : _f, _g = _a.style, style = _g === void 0 ? { whiteSpace: 'nowrap' } : _g, _h = _a.children, children = _h === void 0 ? 'Link' : _h, _j = _a.allowWordWrap, allowWordWrap = _j === void 0 ? false : _j, props = __rest(_a, ["href", "icon", "hideIcon", "target", "className", "style", "children", "allowWordWrap"]); | ||
if (children === 'Link' && href) | ||
@@ -85,3 +85,3 @@ children = href; | ||
} | ||
return (React.createElement("a", __assign({ href: href, target: openIn, className: disco ? className + ' disco' : className, style: __assign(__assign(__assign({}, style), noWrap), (placeholderMode ? { color: placeholderColor } : {})) }, props), | ||
return (React.createElement("a", __assign({ href: href, target: openIn, className: className + ' cB', style: __assign(__assign(__assign({}, style), noWrap), (placeholderMode ? { color: placeholderColor } : {})) }, props), | ||
!hideIcon && (React.createElement("i", { className: 'icon ' + icon, style: { fontSize: '.8em' } })), | ||
@@ -88,0 +88,0 @@ children)); |
@@ -12,7 +12,6 @@ import React, { CSSProperties } from 'react'; | ||
allowWordWrap?: boolean; | ||
disco?: boolean; | ||
[key: string]: any; | ||
} | ||
export declare const Link: { | ||
({ href, icon, hideIcon, target, className, style, children, allowWordWrap, disco, ...props }: LinkProps): JSX.Element; | ||
({ href, icon, hideIcon, target, className, style, children, allowWordWrap, ...props }: LinkProps): JSX.Element; | ||
defaultProps: { | ||
@@ -19,0 +18,0 @@ href: string; |
{ | ||
"name": "@ta-interaktiv/contentbricks", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "> TODO: description", | ||
@@ -52,3 +52,3 @@ "author": "Sebastian Broschinski <sebastian.broschinski@tamedia.ch>", | ||
}, | ||
"gitHead": "86fc7b8d4fa31b5dca8ad4b53e30cac7546ef6de" | ||
"gitHead": "ef457550f967218be85a4e1d2718af2198458805" | ||
} |
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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
3
446027
3240