@veniceswap/uikit 0.65.11 → 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 +17 -14
- package/dist/index.esm.js +17 -14
- 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) {
|
@@ -4753,18 +4756,18 @@ var socials = [
|
|
4753
4756
|
];
|
4754
4757
|
var privacyLinks = [
|
4755
4758
|
{ label: "\u00A9 ".concat(new Date().getFullYear(), " Venice."), href: "" },
|
4756
|
-
{
|
4757
|
-
|
4758
|
-
|
4759
|
-
},
|
4760
|
-
{
|
4761
|
-
|
4762
|
-
|
4763
|
-
},
|
4764
|
-
{
|
4765
|
-
|
4766
|
-
|
4767
|
-
},
|
4759
|
+
// {
|
4760
|
+
// label: "Privacy",
|
4761
|
+
// href: "https://venice.finance",
|
4762
|
+
// },
|
4763
|
+
// {
|
4764
|
+
// label: "Policy",
|
4765
|
+
// href: "https://venice.finance",
|
4766
|
+
// },
|
4767
|
+
// {
|
4768
|
+
// label: "Terms of Use ",
|
4769
|
+
// href: "https://venice.finance",
|
4770
|
+
// },
|
4768
4771
|
{
|
4769
4772
|
label: "Findora Network ",
|
4770
4773
|
href: "https://findora.org/",
|
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) {
|
@@ -4721,18 +4724,18 @@ var socials = [
|
|
4721
4724
|
];
|
4722
4725
|
var privacyLinks = [
|
4723
4726
|
{ label: "\u00A9 ".concat(new Date().getFullYear(), " Venice."), href: "" },
|
4724
|
-
{
|
4725
|
-
|
4726
|
-
|
4727
|
-
},
|
4728
|
-
{
|
4729
|
-
|
4730
|
-
|
4731
|
-
},
|
4732
|
-
{
|
4733
|
-
|
4734
|
-
|
4735
|
-
},
|
4727
|
+
// {
|
4728
|
+
// label: "Privacy",
|
4729
|
+
// href: "https://venice.finance",
|
4730
|
+
// },
|
4731
|
+
// {
|
4732
|
+
// label: "Policy",
|
4733
|
+
// href: "https://venice.finance",
|
4734
|
+
// },
|
4735
|
+
// {
|
4736
|
+
// label: "Terms of Use ",
|
4737
|
+
// href: "https://venice.finance",
|
4738
|
+
// },
|
4736
4739
|
{
|
4737
4740
|
label: "Findora Network ",
|
4738
4741
|
href: "https://findora.org/",
|