@luminati-io/uikit 3.5.4 → 3.5.5
Sign up to get free protection for your applications and to get access to all the features.
@@ -36410,8 +36410,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
36410
36410
|
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../icon */ "./src/icon.js");
|
36411
36411
|
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../theme */ "./src/theme.js");
|
36412
36412
|
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
|
36413
|
-
/* harmony import */ var
|
36414
|
-
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
|
36413
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
|
36415
36414
|
// LICENSE_CODE ZON
|
36416
36415
|
|
36417
36416
|
|
@@ -36433,21 +36432,21 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
36433
36432
|
|
36434
36433
|
|
36435
36434
|
|
36436
|
-
|
36437
36435
|
var _theme$color = _theme__WEBPACK_IMPORTED_MODULE_4__["default"].color,
|
36438
36436
|
blue_10 = _theme$color.blue_10,
|
36439
36437
|
blue_11 = _theme$color.blue_11,
|
36440
36438
|
gray_11_50 = _theme$color.gray_11_50;
|
36439
|
+
var knownProps = ['text', 'variant', 'size', 'underline', 'icon', 'iconPlacement', 'newTab'];
|
36441
36440
|
var Link = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (props, ref) {
|
36442
36441
|
var text = props.text,
|
36443
36442
|
variant = props.variant,
|
36444
36443
|
size = props.size,
|
36445
36444
|
underline = props.underline;
|
36446
|
-
var linkProps = _objectSpread(_objectSpread({}, (
|
36445
|
+
var linkProps = _objectSpread(_objectSpread({}, omit(props, knownProps)), getLinkProps(props));
|
36447
36446
|
if (variant == 'inline') return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(InlineLink, _extends({
|
36448
36447
|
ref: ref
|
36449
36448
|
}, linkProps), text);
|
36450
|
-
var _getIconProps = (0,
|
36449
|
+
var _getIconProps = (0,_utils__WEBPACK_IMPORTED_MODULE_6__.getIconProps)('Link', props),
|
36451
36450
|
isLeft = _getIconProps.isLeft,
|
36452
36451
|
isRight = _getIconProps.isRight,
|
36453
36452
|
iconProps = _objectWithoutProperties(_getIconProps, _excluded);
|
@@ -36478,7 +36477,7 @@ Link.propTypes = {
|
|
36478
36477
|
text: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node).isRequired,
|
36479
36478
|
variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['primary', 'secondary', 'inline']),
|
36480
36479
|
size: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['sm', 'md', 'lg']),
|
36481
|
-
icon: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(
|
36480
|
+
icon: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_6__.iconNames),
|
36482
36481
|
iconPlacement: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['left', 'right']),
|
36483
36482
|
href: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
36484
36483
|
newTab: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
@@ -36506,7 +36505,7 @@ var StyledLink = styled_components__WEBPACK_IMPORTED_MODULE_2___default().a.with
|
|
36506
36505
|
displayName: "StyledLink",
|
36507
36506
|
componentId: "sc-1ilmd36-0"
|
36508
36507
|
})(["display:inline-flex;align-items:center;justify-content:center;text-decoration:none;background:0 none;border:0 none;padding:0;gap:", ";color:", ";[data-label]{text-decoration:", ";}cursor:pointer;&:disabled{cursor:not-allowed;}&:hover:not(:disabled){color:", ";[data-label]{text-decoration:", ";}}&:hover,:visited,:focus{text-decoration:none;}"], function (props) {
|
36509
|
-
return (0,
|
36508
|
+
return (0,_utils__WEBPACK_IMPORTED_MODULE_6__.toPixel)(props.$size == 'lg' ? 8 : 4);
|
36510
36509
|
}, function (props) {
|
36511
36510
|
return props.$variant == 'primary' ? blue_11 : gray_11_50;
|
36512
36511
|
}, function (props) {
|