@janiscommerce/ui-web 0.2.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.umd.js +2 -5
- package/index.umd.js.map +1 -1
- package/package.json +1 -1
package/index.umd.js
CHANGED
|
@@ -22466,19 +22466,16 @@
|
|
|
22466
22466
|
icon = _ref.icon,
|
|
22467
22467
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
22468
22468
|
|
|
22469
|
-
if (href.startsWith('/')) return;
|
|
22470
|
-
|
|
22471
22469
|
var renderIcon = function renderIcon() {
|
|
22472
22470
|
return icon ? /*#__PURE__*/React__default["default"].createElement(styled.StyledIcon, {
|
|
22473
22471
|
name: icon
|
|
22474
22472
|
}) : null;
|
|
22475
22473
|
};
|
|
22476
22474
|
|
|
22477
|
-
var validHref = href.startsWith('http') ? href : "https://".concat(href);
|
|
22478
22475
|
return /*#__PURE__*/React__default["default"].createElement(styled.LinkWrapper, props, renderIcon(), /*#__PURE__*/React__default["default"].createElement("a", {
|
|
22479
|
-
href:
|
|
22476
|
+
href: href,
|
|
22480
22477
|
target: target
|
|
22481
|
-
}, children ||
|
|
22478
|
+
}, children || href));
|
|
22482
22479
|
};
|
|
22483
22480
|
|
|
22484
22481
|
Link.defaultProps = {
|