@ludo.ninja/components 2.3.50 → 2.3.52
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.
|
@@ -34,7 +34,7 @@ const HeaderSearch = ({ showXP = true }) => {
|
|
|
34
34
|
logoLinkComponent: ({ children }) => ((0, jsx_runtime_1.jsx)("a", { href: ludoDomains_1.ludoDomains[NEXT_PUBLIC_ENV_VALUE][isProd() ? "profile" : "app"], children: children })),
|
|
35
35
|
searchInput: ({ setInputFocused }) => {
|
|
36
36
|
// Todo seacrh pages, hide search input from header
|
|
37
|
-
return
|
|
37
|
+
return (0, jsx_runtime_1.jsx)(searchSimpleInput_1.default, { onFocusHandler: setInputFocused });
|
|
38
38
|
},
|
|
39
39
|
}, isSearchStyles: true, isActivatedTheme: true }));
|
|
40
40
|
};
|
|
@@ -35,6 +35,12 @@ const useSidebarData = () => {
|
|
|
35
35
|
},
|
|
36
36
|
...(isAuthorized
|
|
37
37
|
? [
|
|
38
|
+
{
|
|
39
|
+
href: `${ludoDomains_1.ludoDomains[NEXT_PUBLIC_ENV_VALUE]["account"]}/monitoring`,
|
|
40
|
+
title: "Monitoring",
|
|
41
|
+
icon: (0, jsx_runtime_1.jsx)(icons_1.MonitoringIcon, {}),
|
|
42
|
+
isExternalUrl: false,
|
|
43
|
+
},
|
|
38
44
|
{
|
|
39
45
|
href: `${ludoDomains_1.ludoDomains[NEXT_PUBLIC_ENV_VALUE]["app"]}/rewards/${userId}`,
|
|
40
46
|
title: "Rewards",
|
|
@@ -82,26 +88,26 @@ const useSidebarData = () => {
|
|
|
82
88
|
];
|
|
83
89
|
}
|
|
84
90
|
return [
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
+
{
|
|
92
|
+
href: `${ludoDomains_1.ludoDomains[NEXT_PUBLIC_ENV_VALUE]["app"]}/trends`,
|
|
93
|
+
title: "Trends",
|
|
94
|
+
icon: (0, jsx_runtime_1.jsx)(icons_1.LeaderboardsIcon, {}),
|
|
95
|
+
isExternalUrl: false,
|
|
96
|
+
},
|
|
91
97
|
...(isAuthorized
|
|
92
98
|
? [
|
|
99
|
+
{
|
|
100
|
+
href: `${ludoDomains_1.ludoDomains[NEXT_PUBLIC_ENV_VALUE]["account"]}/monitoring`,
|
|
101
|
+
title: "Monitoring",
|
|
102
|
+
icon: (0, jsx_runtime_1.jsx)(icons_1.MonitoringIcon, {}),
|
|
103
|
+
isExternalUrl: false,
|
|
104
|
+
},
|
|
93
105
|
{
|
|
94
106
|
href: `${ludoDomains_1.ludoDomains[NEXT_PUBLIC_ENV_VALUE]["app"]}/rewards/${userId}`,
|
|
95
107
|
title: "Rewards",
|
|
96
108
|
icon: (0, jsx_runtime_1.jsx)(icons_1.RewardsIcon, {}),
|
|
97
109
|
isExternalUrl: false,
|
|
98
110
|
},
|
|
99
|
-
// {
|
|
100
|
-
// href: `${ludoDomains[NEXT_PUBLIC_ENV_VALUE as TEnvValue]["app"]}/leaderboards`,
|
|
101
|
-
// title: "Leaderboards",
|
|
102
|
-
// icon: <LeaderboardsIcon />,
|
|
103
|
-
// isExternalUrl: false,
|
|
104
|
-
// },
|
|
105
111
|
{
|
|
106
112
|
href: `${ludoDomains_1.ludoDomains[NEXT_PUBLIC_ENV_VALUE]["account"]}/referrals`,
|
|
107
113
|
title: "Referral Dashboard",
|
|
@@ -5,5 +5,6 @@ export declare const ExploreIcon: () => import("react/jsx-runtime").JSX.Element;
|
|
|
5
5
|
export declare const MyInvitesIcon: () => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export declare const RewardsIcon: () => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export declare const LeaderboardsIcon: () => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const MonitoringIcon: () => import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
export declare const ReferralDashboardIcon: () => import("react/jsx-runtime").JSX.Element;
|
|
9
10
|
export declare const SubmitNftIcon: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SubmitNftIcon = exports.ReferralDashboardIcon = exports.LeaderboardsIcon = exports.RewardsIcon = exports.MyInvitesIcon = exports.ExploreIcon = exports.ApiIcon = exports.AboutLudoDarkIcon = exports.AboutLudoIcon = void 0;
|
|
3
|
+
exports.SubmitNftIcon = exports.ReferralDashboardIcon = exports.MonitoringIcon = exports.LeaderboardsIcon = exports.RewardsIcon = exports.MyInvitesIcon = exports.ExploreIcon = exports.ApiIcon = exports.AboutLudoDarkIcon = exports.AboutLudoIcon = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const AboutLudoIcon = () => ((0, jsx_runtime_1.jsxs)("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [(0, jsx_runtime_1.jsx)("path", { d: "M3.17457 7.31904C4.09143 6.47859 5.2375 5.65724 6.51729 4.93139C7.75887 4.22465 9.01955 3.65161 10.1847 3.28869C9.7836 2.37183 9.28696 1.74149 8.67572 1.55047C5.82964 1.24485 3.74761 2.31452 2.50603 5.1033C2.0094 6.19207 1.68468 7.62466 1.57007 9.15276C1.95209 8.56062 2.48693 7.94939 3.17457 7.31904Z", fill: "url(#paint0_linear_14706_23755)" }), (0, jsx_runtime_1.jsx)("path", { d: "M10.3948 3.84277C9.24876 4.2057 8.00718 4.75963 6.8038 5.44728C5.58133 6.15402 4.45435 6.95627 3.5757 7.75852C2.73524 8.52257 2.124 9.30572 1.79928 9.97427C1.64647 10.3181 1.57007 10.6237 1.57007 10.9102C1.64647 12.2664 1.95209 13.6417 2.50603 14.8833C2.35322 14.1383 2.79255 13.2024 3.633 12.2282C4.28244 11.4833 5.142 10.7192 6.15436 9.97427C6.89931 9.42033 7.70156 8.9046 8.54202 8.40797C9.38247 7.91133 10.242 7.47201 11.1016 7.10908C10.9488 5.90571 10.7196 4.75963 10.3948 3.84277Z", fill: "url(#paint1_linear_14706_23755)" }), (0, jsx_runtime_1.jsx)("path", { d: "M10.261 16.7545C9.07676 16.3725 7.79698 15.7995 6.51719 15.0545C5.27561 14.3287 4.14864 13.5264 3.26999 12.7051C2.65875 13.5073 2.37223 14.2523 2.50594 14.8826C3.67111 17.4995 5.63854 18.7602 8.67563 18.4545C9.85991 18.3399 11.2734 17.9006 12.6487 17.2321C11.9419 17.1939 11.1397 17.0411 10.261 16.7545Z", fill: "url(#paint2_linear_14706_23755)" }), (0, jsx_runtime_1.jsx)("path", { d: "M3.63257 12.247C4.51122 13.0492 5.6191 13.8515 6.82247 14.5582C8.04495 15.265 9.30563 15.838 10.4326 16.2009C11.5214 16.5448 12.4955 16.6785 13.2405 16.6403C13.6225 16.6021 13.909 16.5066 14.1573 16.3729C15.2843 15.6279 16.3349 14.6728 17.1371 13.5841C16.5641 14.0807 15.5326 14.1762 14.272 13.9279C13.2978 13.7369 12.209 13.374 11.0629 12.8773C10.2034 12.5144 9.36294 12.0751 8.50338 11.5976C7.64383 11.12 6.84157 10.5852 6.09663 10.0312C5.14157 10.738 4.26291 11.502 3.63257 12.247Z", fill: "url(#paint3_linear_14706_23755)" }), (0, jsx_runtime_1.jsx)("path", { d: "M14.8836 5.90549C15.151 7.12797 15.2847 8.52235 15.2847 9.99315C15.2847 11.4257 15.151 12.801 14.8644 13.9853C15.8577 14.0999 16.66 13.9853 17.1184 13.546C18.7993 11.2347 18.9139 8.90438 17.1184 6.42122C16.4307 5.44706 15.342 4.45379 14.0813 3.59424C14.4251 4.22458 14.6925 5.00773 14.8836 5.90549Z", fill: "url(#paint4_linear_14706_23755)" }), (0, jsx_runtime_1.jsx)("path", { d: "M14.2913 13.9088C14.5587 12.7436 14.6924 11.3874 14.6924 9.99304C14.6924 8.57954 14.5587 7.20426 14.3104 6.03908C14.0621 4.93121 13.6992 4.01435 13.2789 3.38401C13.0497 3.07839 12.8396 2.86828 12.5913 2.71547C11.3688 2.12333 10.0317 1.684 8.67554 1.55029C9.40138 1.79861 9.99352 2.63906 10.4137 3.86154C10.7385 4.7975 10.9677 5.92447 11.1014 7.16605C11.216 8.08291 11.2542 9.03797 11.2733 10.0121C11.2924 10.9863 11.2351 11.9605 11.1205 12.8773C12.2284 13.3549 13.3362 13.7178 14.2913 13.9088Z", fill: "url(#paint5_linear_14706_23755)" }), (0, jsx_runtime_1.jsxs)("defs", { children: [(0, jsx_runtime_1.jsxs)("linearGradient", { id: "paint0_linear_14706_23755", x1: "9.63955", y1: "2.16972", x2: "3.4464", y2: "5.568", gradientUnits: "userSpaceOnUse", children: [(0, jsx_runtime_1.jsx)("stop", { stopColor: "#B0B2C0", stopOpacity: "0.6" }), (0, jsx_runtime_1.jsx)("stop", { offset: "0.0444639", stopColor: "#B0B2C0", stopOpacity: "0.6178" }), (0, jsx_runtime_1.jsx)("stop", { offset: "1", stopColor: "#B0B2C0" })] }), (0, jsx_runtime_1.jsxs)("linearGradient", { id: "paint1_linear_14706_23755", x1: "11.8572", y1: "6.21142", x2: "5.66409", y2: "9.60972", gradientUnits: "userSpaceOnUse", children: [(0, jsx_runtime_1.jsx)("stop", { stopColor: "#B0B2C0", stopOpacity: "0.6" }), (0, jsx_runtime_1.jsx)("stop", { offset: "0.0444639", stopColor: "#B0B2C0", stopOpacity: "0.6178" }), (0, jsx_runtime_1.jsx)("stop", { offset: "1", stopColor: "#B0B2C0" })] }), (0, jsx_runtime_1.jsxs)("linearGradient", { id: "paint2_linear_14706_23755", x1: "2.56028", y1: "13.7384", x2: "8.59976", y2: "17.4025", gradientUnits: "userSpaceOnUse", children: [(0, jsx_runtime_1.jsx)("stop", { stopColor: "#B0B2C0", stopOpacity: "0.6" }), (0, jsx_runtime_1.jsx)("stop", { offset: "0.0444639", stopColor: "#B0B2C0", stopOpacity: "0.6178" }), (0, jsx_runtime_1.jsx)("stop", { offset: "1", stopColor: "#B0B2C0" })] }), (0, jsx_runtime_1.jsxs)("linearGradient", { id: "paint3_linear_14706_23755", x1: "4.95109", y1: "9.79742", x2: "10.9906", y2: "13.4615", gradientUnits: "userSpaceOnUse", children: [(0, jsx_runtime_1.jsx)("stop", { stopColor: "#B0B2C0", stopOpacity: "0.6" }), (0, jsx_runtime_1.jsx)("stop", { offset: "0.0444639", stopColor: "#B0B2C0", stopOpacity: "0.6178" }), (0, jsx_runtime_1.jsx)("stop", { offset: "1", stopColor: "#B0B2C0" })] }), (0, jsx_runtime_1.jsxs)("linearGradient", { id: "paint4_linear_14706_23755", x1: "16.1191", y1: "14.0851", x2: "16.2727", y2: "7.02267", gradientUnits: "userSpaceOnUse", children: [(0, jsx_runtime_1.jsx)("stop", { stopColor: "#B0B2C0", stopOpacity: "0.6" }), (0, jsx_runtime_1.jsx)("stop", { offset: "0.0444639", stopColor: "#B0B2C0", stopOpacity: "0.6178" }), (0, jsx_runtime_1.jsx)("stop", { offset: "1", stopColor: "#B0B2C0" })] }), (0, jsx_runtime_1.jsxs)("linearGradient", { id: "paint5_linear_14706_23755", x1: "11.5101", y1: "13.9847", x2: "11.6638", y2: "6.92228", gradientUnits: "userSpaceOnUse", children: [(0, jsx_runtime_1.jsx)("stop", { stopColor: "#B0B2C0", stopOpacity: "0.6" }), (0, jsx_runtime_1.jsx)("stop", { offset: "0.0444639", stopColor: "#B0B2C0", stopOpacity: "0.6178" }), (0, jsx_runtime_1.jsx)("stop", { offset: "1", stopColor: "#B0B2C0" })] })] })] }));
|
|
6
6
|
exports.AboutLudoIcon = AboutLudoIcon;
|
|
@@ -16,6 +16,8 @@ const RewardsIcon = () => ((0, jsx_runtime_1.jsx)("svg", { xmlns: "http://www.w3
|
|
|
16
16
|
exports.RewardsIcon = RewardsIcon;
|
|
17
17
|
const LeaderboardsIcon = () => ((0, jsx_runtime_1.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", children: [(0, jsx_runtime_1.jsx)("path", { d: "M8 10C8 9.44772 8.44772 9 9 9H12C12.5523 9 13 9.44772 13 10V17.0001H8V10Z", fill: "#B0B2C0" }), (0, jsx_runtime_1.jsx)("path", { d: "M14 13.5H17C17.5523 13.5 18 13.9477 18 14.5V16C18 16.5523 17.5523 17 17 17H14V13.5Z", fill: "#B0B2C0" }), (0, jsx_runtime_1.jsx)("path", { d: "M3 12.5C3 11.9477 3.44772 11.5 4 11.5H7V17H3V12.5Z", fill: "#B0B2C0" }), (0, jsx_runtime_1.jsx)("path", { d: "M10.8328 1.39174C10.7859 1.24758 10.6516 1.15 10.5 1.15C10.3484 1.15 10.2141 1.24758 10.1672 1.39174L9.53759 3.32721H7.5C7.34834 3.32721 7.21393 3.42489 7.1671 3.56914C7.12027 3.71339 7.17168 3.87139 7.29442 3.96047L8.94254 5.15656L8.31306 7.09173C8.26616 7.23592 8.31743 7.3939 8.44005 7.48307C8.56267 7.57224 8.72877 7.57232 8.85147 7.48326L10.5 6.28687L12.1485 7.48326C12.2712 7.57232 12.4373 7.57224 12.5599 7.48307C12.6826 7.3939 12.7338 7.23592 12.6869 7.09173L12.0575 5.15656L13.7056 3.96047C13.8283 3.87139 13.8797 3.71339 13.8329 3.56914C13.7861 3.42489 13.6517 3.32721 13.5 3.32721H11.4624L10.8328 1.39174Z", fill: "#B0B2C0", stroke: "#B0B2C0", strokeWidth: "0.7", strokeLinejoin: "round" })] }));
|
|
18
18
|
exports.LeaderboardsIcon = LeaderboardsIcon;
|
|
19
|
+
const MonitoringIcon = () => ((0, jsx_runtime_1.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", children: [(0, jsx_runtime_1.jsx)("path", { d: "M14.1667 9.16667C14.1667 6.40524 11.9281 4.16667 9.16667 4.16667C6.40524 4.16667 4.16667 6.40524 4.16667 9.16667C4.16667 11.9281 6.40524 14.1667 9.16667 14.1667C11.9281 14.1667 14.1667 11.9281 14.1667 9.16667ZM15.8333 9.16667C15.8333 12.8486 12.8486 15.8333 9.16667 15.8333C5.48477 15.8333 2.5 12.8486 2.5 9.16667C2.5 5.48477 5.48477 2.5 9.16667 2.5C12.8486 2.5 15.8333 5.48477 15.8333 9.16667Z", fill: "#B0B2C0" }), (0, jsx_runtime_1.jsx)("path", { d: "M12.7439 12.7441C13.049 12.439 13.5316 12.4201 13.8589 12.6871L13.9223 12.7441L17.2557 16.0774L17.3126 16.1409C17.5795 16.4681 17.5606 16.9507 17.2557 17.2558C16.9504 17.561 16.4673 17.58 16.1399 17.3127L16.0773 17.2558L12.7439 13.9224L12.687 13.859C12.42 13.5317 12.4389 13.0492 12.7439 12.7441Z", fill: "#B0B2C0" }), (0, jsx_runtime_1.jsx)("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.3333 9.16667C13.3333 11.4679 11.4679 13.3333 9.16667 13.3333C6.86548 13.3333 5 11.4679 5 9.16667C5 6.86548 6.86548 5 9.16667 5C10.3388 5 11.3979 5.48399 12.155 6.26302L9.18063 9.23737L7.86919 7.92593L7.81567 7.87702C7.53746 7.6501 7.12725 7.6666 6.86791 7.92593C6.59129 8.20255 6.59129 8.65058 6.86791 8.9272L8.67999 10.7393C8.95662 11.0159 9.40466 11.0159 9.68127 10.7393L12.9663 7.45424C13.2021 7.97661 13.3333 8.55631 13.3333 9.16667Z", fill: "#B0B2C0" })] }));
|
|
20
|
+
exports.MonitoringIcon = MonitoringIcon;
|
|
19
21
|
const ReferralDashboardIcon = () => ((0, jsx_runtime_1.jsxs)("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [(0, jsx_runtime_1.jsx)("rect", { x: "2.5", y: "2.5", width: "6.92308", height: "9.23077", rx: "1", fill: "#B0B2C0" }), (0, jsx_runtime_1.jsx)("rect", { x: "10.5769", y: "8.26953", width: "6.92308", height: "9.23077", rx: "1", fill: "#B0B2C0" }), (0, jsx_runtime_1.jsx)("rect", { x: "10.5769", y: "2.5", width: "6.92308", height: "4.61539", rx: "1", fill: "#B0B2C0" }), (0, jsx_runtime_1.jsx)("rect", { x: "2.5", y: "12.8843", width: "6.92308", height: "4.61539", rx: "1", fill: "#B0B2C0" })] }));
|
|
20
22
|
exports.ReferralDashboardIcon = ReferralDashboardIcon;
|
|
21
23
|
const SubmitNftIcon = () => ((0, jsx_runtime_1.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", children: (0, jsx_runtime_1.jsx)("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M6.51162 1.66992L13.495 1.66992C16.5284 1.66992 18.3367 3.47826 18.3284 6.51159V13.4949C18.3284 16.5283 16.52 18.3366 13.4867 18.3366H6.51162C3.47827 18.3366 1.66992 16.5283 1.66992 13.4866L1.66992 6.51159C1.66992 3.47826 3.47827 1.66992 6.51162 1.66992ZM10.65 6C10.65 5.64101 10.3589 5.35 9.99996 5.35C9.64097 5.35 9.34996 5.64101 9.34996 6V12.1411L7.45956 10.2507C7.20572 9.99684 6.79416 9.99684 6.54032 10.2507C6.28647 10.5045 6.28647 10.9161 6.54032 11.1699L9.54034 14.1699C9.79418 14.4238 10.2057 14.4238 10.4596 14.1699L13.4596 11.1699C13.7134 10.9161 13.7134 10.5045 13.4596 10.2507C13.2058 9.99684 12.7942 9.99684 12.5404 10.2507L10.65 12.1411L10.65 6Z", fill: "#B0B2C0" }) }));
|