@luminati-io/uikit 3.5.4 → 3.5.6
Sign up to get free protection for your applications and to get access to all the features.
@@ -36401,21 +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");
|
36414
36415
|
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
|
36415
36416
|
// LICENSE_CODE ZON
|
36416
36417
|
|
36417
36418
|
|
36418
36419
|
/*jslint react:true*/
|
36420
|
+
|
36419
36421
|
var _excluded = ["isLeft", "isRight"];
|
36420
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); }
|
36421
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; }
|
@@ -36433,18 +36435,18 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
36433
36435
|
|
36434
36436
|
|
36435
36437
|
|
36436
|
-
|
36437
|
-
var _theme$color = _theme__WEBPACK_IMPORTED_MODULE_4__["default"].color,
|
36438
|
+
var _theme$color = _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color,
|
36438
36439
|
blue_10 = _theme$color.blue_10,
|
36439
36440
|
blue_11 = _theme$color.blue_11,
|
36440
36441
|
gray_11_50 = _theme$color.gray_11_50;
|
36441
|
-
var
|
36442
|
+
var knownProps = ['text', 'variant', 'size', 'underline', 'icon', 'iconPlacement', 'newTab'];
|
36443
|
+
var Link = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forwardRef(function (props, ref) {
|
36442
36444
|
var text = props.text,
|
36443
36445
|
variant = props.variant,
|
36444
36446
|
size = props.size,
|
36445
36447
|
underline = props.underline;
|
36446
|
-
var linkProps = _objectSpread(_objectSpread({}, (
|
36447
|
-
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({
|
36448
36450
|
ref: ref
|
36449
36451
|
}, linkProps), text);
|
36450
36452
|
var _getIconProps = (0,_utils__WEBPACK_IMPORTED_MODULE_7__.getIconProps)('Link', props),
|
@@ -36460,13 +36462,13 @@ var Link = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(
|
|
36460
36462
|
no_wrap: true,
|
36461
36463
|
'data-label': true
|
36462
36464
|
};
|
36463
|
-
return /*#__PURE__*/
|
36465
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(StyledLink, _extends({
|
36464
36466
|
ref: ref
|
36465
36467
|
}, linkProps, {
|
36466
36468
|
$variant: variant,
|
36467
36469
|
$underline: underline,
|
36468
36470
|
$size: size
|
36469
|
-
}), 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));
|
36470
36472
|
});
|
36471
36473
|
Link.displayName = 'Link';
|
36472
36474
|
Link.defaultProps = {
|
@@ -36475,14 +36477,14 @@ Link.defaultProps = {
|
|
36475
36477
|
iconPlacement: 'left'
|
36476
36478
|
};
|
36477
36479
|
Link.propTypes = {
|
36478
|
-
text: (
|
36479
|
-
variant:
|
36480
|
-
size:
|
36481
|
-
icon:
|
36482
|
-
iconPlacement:
|
36483
|
-
href: (
|
36484
|
-
newTab: (
|
36485
|
-
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)
|
36486
36488
|
};
|
36487
36489
|
var getLinkProps = function getLinkProps(opt) {
|
36488
36490
|
var as = opt.as,
|
@@ -36502,7 +36504,7 @@ var getLinkProps = function getLinkProps(opt) {
|
|
36502
36504
|
});
|
36503
36505
|
return p;
|
36504
36506
|
};
|
36505
|
-
var StyledLink =
|
36507
|
+
var StyledLink = styled_components__WEBPACK_IMPORTED_MODULE_3___default().a.withConfig({
|
36506
36508
|
displayName: "StyledLink",
|
36507
36509
|
componentId: "sc-1ilmd36-0"
|
36508
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) {
|
@@ -36516,7 +36518,7 @@ var StyledLink = styled_components__WEBPACK_IMPORTED_MODULE_2___default().a.with
|
|
36516
36518
|
}, function (props) {
|
36517
36519
|
return props.$underline || props.$variant == 'primary' ? 'underline' : 'none';
|
36518
36520
|
});
|
36519
|
-
var InlineLink =
|
36521
|
+
var InlineLink = styled_components__WEBPACK_IMPORTED_MODULE_3___default().a.withConfig({
|
36520
36522
|
displayName: "InlineLink",
|
36521
36523
|
componentId: "sc-1ilmd36-1"
|
36522
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;}"]);
|