@luminati-io/uikit 3.5.5 → 3.5.6
Sign up to get free protection for your applications and to get access to all the features.
@@ -36401,20 +36401,23 @@ __webpack_require__.r(__webpack_exports__);
|
|
36401
36401
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
36402
36402
|
/* harmony export */ Link: () => (/* binding */ Link)
|
36403
36403
|
/* harmony export */ });
|
36404
|
-
/* harmony import */ var
|
36405
|
-
/* harmony import */ var
|
36406
|
-
/* harmony import */ var
|
36407
|
-
/* harmony import */ var
|
36408
|
-
/* harmony import */ var
|
36409
|
-
/* harmony import */ var
|
36410
|
-
/* harmony import */ var
|
36411
|
-
/* harmony import */ var
|
36412
|
-
/* harmony import */ var
|
36413
|
-
/* harmony import */ var
|
36404
|
+
/* harmony import */ var lodash_omit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/omit */ "./node_modules/lodash/omit.js");
|
36405
|
+
/* harmony import */ var lodash_omit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_omit__WEBPACK_IMPORTED_MODULE_0__);
|
36406
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "prop-types");
|
36407
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
|
36408
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
|
36409
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
|
36410
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! styled-components */ "styled-components");
|
36411
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_3__);
|
36412
|
+
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../icon */ "./src/icon.js");
|
36413
|
+
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../theme */ "./src/theme.js");
|
36414
|
+
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
|
36415
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
|
36414
36416
|
// LICENSE_CODE ZON
|
36415
36417
|
|
36416
36418
|
|
36417
36419
|
/*jslint react:true*/
|
36420
|
+
|
36418
36421
|
var _excluded = ["isLeft", "isRight"];
|
36419
36422
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
36420
36423
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
@@ -36432,21 +36435,21 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
36432
36435
|
|
36433
36436
|
|
36434
36437
|
|
36435
|
-
var _theme$color =
|
36438
|
+
var _theme$color = _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color,
|
36436
36439
|
blue_10 = _theme$color.blue_10,
|
36437
36440
|
blue_11 = _theme$color.blue_11,
|
36438
36441
|
gray_11_50 = _theme$color.gray_11_50;
|
36439
36442
|
var knownProps = ['text', 'variant', 'size', 'underline', 'icon', 'iconPlacement', 'newTab'];
|
36440
|
-
var Link = /*#__PURE__*/
|
36443
|
+
var Link = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forwardRef(function (props, ref) {
|
36441
36444
|
var text = props.text,
|
36442
36445
|
variant = props.variant,
|
36443
36446
|
size = props.size,
|
36444
36447
|
underline = props.underline;
|
36445
|
-
var linkProps = _objectSpread(_objectSpread({},
|
36446
|
-
if (variant == 'inline') return /*#__PURE__*/
|
36448
|
+
var linkProps = _objectSpread(_objectSpread({}, lodash_omit__WEBPACK_IMPORTED_MODULE_0___default()(props, knownProps)), getLinkProps(props));
|
36449
|
+
if (variant == 'inline') return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(InlineLink, _extends({
|
36447
36450
|
ref: ref
|
36448
36451
|
}, linkProps), text);
|
36449
|
-
var _getIconProps = (0,
|
36452
|
+
var _getIconProps = (0,_utils__WEBPACK_IMPORTED_MODULE_7__.getIconProps)('Link', props),
|
36450
36453
|
isLeft = _getIconProps.isLeft,
|
36451
36454
|
isRight = _getIconProps.isRight,
|
36452
36455
|
iconProps = _objectWithoutProperties(_getIconProps, _excluded);
|
@@ -36459,13 +36462,13 @@ var Link = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(
|
|
36459
36462
|
no_wrap: true,
|
36460
36463
|
'data-label': true
|
36461
36464
|
};
|
36462
|
-
return /*#__PURE__*/
|
36465
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(StyledLink, _extends({
|
36463
36466
|
ref: ref
|
36464
36467
|
}, linkProps, {
|
36465
36468
|
$variant: variant,
|
36466
36469
|
$underline: underline,
|
36467
36470
|
$size: size
|
36468
|
-
}), isLeft && /*#__PURE__*/
|
36471
|
+
}), isLeft && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_4__.Icon, iconProps), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_6__.Label, labelProps), isRight && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_4__.Icon, iconProps));
|
36469
36472
|
});
|
36470
36473
|
Link.displayName = 'Link';
|
36471
36474
|
Link.defaultProps = {
|
@@ -36474,14 +36477,14 @@ Link.defaultProps = {
|
|
36474
36477
|
iconPlacement: 'left'
|
36475
36478
|
};
|
36476
36479
|
Link.propTypes = {
|
36477
|
-
text: (
|
36478
|
-
variant:
|
36479
|
-
size:
|
36480
|
-
icon:
|
36481
|
-
iconPlacement:
|
36482
|
-
href: (
|
36483
|
-
newTab: (
|
36484
|
-
underline: (
|
36480
|
+
text: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node).isRequired,
|
36481
|
+
variant: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['primary', 'secondary', 'inline']),
|
36482
|
+
size: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['sm', 'md', 'lg']),
|
36483
|
+
icon: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_7__.iconNames),
|
36484
|
+
iconPlacement: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['left', 'right']),
|
36485
|
+
href: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
|
36486
|
+
newTab: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
36487
|
+
underline: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool)
|
36485
36488
|
};
|
36486
36489
|
var getLinkProps = function getLinkProps(opt) {
|
36487
36490
|
var as = opt.as,
|
@@ -36501,11 +36504,11 @@ var getLinkProps = function getLinkProps(opt) {
|
|
36501
36504
|
});
|
36502
36505
|
return p;
|
36503
36506
|
};
|
36504
|
-
var StyledLink =
|
36507
|
+
var StyledLink = styled_components__WEBPACK_IMPORTED_MODULE_3___default().a.withConfig({
|
36505
36508
|
displayName: "StyledLink",
|
36506
36509
|
componentId: "sc-1ilmd36-0"
|
36507
36510
|
})(["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) {
|
36508
|
-
return (0,
|
36511
|
+
return (0,_utils__WEBPACK_IMPORTED_MODULE_7__.toPixel)(props.$size == 'lg' ? 8 : 4);
|
36509
36512
|
}, function (props) {
|
36510
36513
|
return props.$variant == 'primary' ? blue_11 : gray_11_50;
|
36511
36514
|
}, function (props) {
|
@@ -36515,7 +36518,7 @@ var StyledLink = styled_components__WEBPACK_IMPORTED_MODULE_2___default().a.with
|
|
36515
36518
|
}, function (props) {
|
36516
36519
|
return props.$underline || props.$variant == 'primary' ? 'underline' : 'none';
|
36517
36520
|
});
|
36518
|
-
var InlineLink =
|
36521
|
+
var InlineLink = styled_components__WEBPACK_IMPORTED_MODULE_3___default().a.withConfig({
|
36519
36522
|
displayName: "InlineLink",
|
36520
36523
|
componentId: "sc-1ilmd36-1"
|
36521
36524
|
})(["justify-content:center;text-decoration:underline;background:0 none;border:0 none;padding:0;cursor:pointer;&:disabled{cursor:not-allowed;}&:hover,:visited,:focus{text-decoration:underline;}"]);
|