@veniceswap/uikit 0.65.12 → 0.65.13
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/dist/index.cjs.js +5 -2
- package/dist/index.esm.js +5 -2
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
@@ -3241,8 +3241,11 @@ var templateObject_1$q, templateObject_2$h;
|
|
3241
3241
|
|
3242
3242
|
var MenuItem$1 = function (_a) {
|
3243
3243
|
var children = _a.children, href = _a.href, _b = _a.isActive, isActive = _b === void 0 ? false : _b, _c = _a.variant, variant = _c === void 0 ? "default" : _c, statusColor = _a.statusColor, props = __rest(_a, ["children", "href", "isActive", "variant", "statusColor"]);
|
3244
|
-
|
3245
|
-
|
3244
|
+
var isExternal = /https|http/.test(href || '');
|
3245
|
+
return (React__default["default"].createElement(StyledMenuItemContainer, { "$isActive": isActive, "$variant": variant }, isExternal ? (React__default["default"].createElement(StyledMenuItem, __assign({ href: href, target: "_blank", "$isActive": isActive, "$variant": variant, "$statusColor": statusColor }, props), children)) : (href ?
|
3246
|
+
React__default["default"].createElement(StyledMenuItem, __assign({ as: reactRouterDom.Link, to: href || '', "$isActive": isActive, "$variant": variant, "$statusColor": statusColor }, props), children)
|
3247
|
+
:
|
3248
|
+
React__default["default"].createElement(StyledMenuItem, __assign({ as: 'div', "$variant": variant, "$statusColor": statusColor }, props), children))));
|
3246
3249
|
};
|
3247
3250
|
|
3248
3251
|
var StyledSubMenuItems = styled__default["default"](Flex)(templateObject_1$p || (templateObject_1$p = __makeTemplateObject(["\n background-color: ", ";\n box-shadow: inset 0px -2px 0px -8px rgba(133, 133, 133, 0.1);\n overflow-x: scroll;\n scrollbar-width: none;\n -ms-overflow-style: none;\n &::-webkit-scrollbar {\n display: none;\n }\n"], ["\n background-color: ", ";\n box-shadow: inset 0px -2px 0px -8px rgba(133, 133, 133, 0.1);\n overflow-x: scroll;\n scrollbar-width: none;\n -ms-overflow-style: none;\n &::-webkit-scrollbar {\n display: none;\n }\n"])), function (_a) {
|
package/dist/index.esm.js
CHANGED
@@ -3209,8 +3209,11 @@ var templateObject_1$q, templateObject_2$h;
|
|
3209
3209
|
|
3210
3210
|
var MenuItem$1 = function (_a) {
|
3211
3211
|
var children = _a.children, href = _a.href, _b = _a.isActive, isActive = _b === void 0 ? false : _b, _c = _a.variant, variant = _c === void 0 ? "default" : _c, statusColor = _a.statusColor, props = __rest(_a, ["children", "href", "isActive", "variant", "statusColor"]);
|
3212
|
-
|
3213
|
-
|
3212
|
+
var isExternal = /https|http/.test(href || '');
|
3213
|
+
return (React__default.createElement(StyledMenuItemContainer, { "$isActive": isActive, "$variant": variant }, isExternal ? (React__default.createElement(StyledMenuItem, __assign({ href: href, target: "_blank", "$isActive": isActive, "$variant": variant, "$statusColor": statusColor }, props), children)) : (href ?
|
3214
|
+
React__default.createElement(StyledMenuItem, __assign({ as: Link$1, to: href || '', "$isActive": isActive, "$variant": variant, "$statusColor": statusColor }, props), children)
|
3215
|
+
:
|
3216
|
+
React__default.createElement(StyledMenuItem, __assign({ as: 'div', "$variant": variant, "$statusColor": statusColor }, props), children))));
|
3214
3217
|
};
|
3215
3218
|
|
3216
3219
|
var StyledSubMenuItems = styled(Flex)(templateObject_1$p || (templateObject_1$p = __makeTemplateObject(["\n background-color: ", ";\n box-shadow: inset 0px -2px 0px -8px rgba(133, 133, 133, 0.1);\n overflow-x: scroll;\n scrollbar-width: none;\n -ms-overflow-style: none;\n &::-webkit-scrollbar {\n display: none;\n }\n"], ["\n background-color: ", ";\n box-shadow: inset 0px -2px 0px -8px rgba(133, 133, 133, 0.1);\n overflow-x: scroll;\n scrollbar-width: none;\n -ms-overflow-style: none;\n &::-webkit-scrollbar {\n display: none;\n }\n"])), function (_a) {
|