@kaspersky/components
Version:
Kaspersky Design System UI Kit
25 lines (24 loc) • 1.88 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.TextWrapper = exports.StyledLink = exports.IconWrapper = void 0;
var _styledComponents = _interopRequireDefault(require("styled-components"));
var _theme = require("../../design-system/theme/index.js");
var _getFromProps = require("../../helpers/getFromProps.js");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
const fromProps = (0, _getFromProps.getFromProps)();
const TextWrapper = exports.TextWrapper = _styledComponents.default.span.withConfig({
displayName: "linkCss__TextWrapper",
componentId: "sc-1ppj7gs-0"
})([""]);
const IconWrapper = exports.IconWrapper = _styledComponents.default.span.withConfig({
displayName: "linkCss__IconWrapper",
componentId: "sc-1ppj7gs-1"
})(["vertical-align:text-top;"]);
const StyledLink = exports.StyledLink = _styledComponents.default.a.withConfig({
shouldForwardProp: prop => !['cssConfig'].includes(prop)
}).withConfig({
displayName: "linkCss__StyledLink",
componentId: "sc-1ppj7gs-2"
})(["text-decoration:none;font-family:", ";font-size:", ";line-height:", ";font-style:", ";font-weight:", ";&,&:not(.kl-components-link_visited):visited{color:", ";outline:none;border:none;}&&:focus-visible{box-shadow:", ";outline:none;border-radius:", ";}&.kl-components-link_visited:visited{color:", ";}&&:hover{color:", ";}&&:active{color:", ";}&&.kl-components-link_disabled{color:", ";outline:none;cursor:default;}& >:not(:first-child){margin-left:", "px;}"], fromProps('fontFamily'), fromProps('fontSize'), fromProps('lineHeight'), fromProps('fontStyle'), fromProps('fontWeight'), fromProps('normal.color'), fromProps('focus.boxShadow'), fromProps('borderRadius'), fromProps('visited.color'), fromProps('hover.color'), fromProps('active.color'), fromProps('disabled.color'), _theme.SPACES[2]);