@ichaingo/header 1.5.5 → 1.5.6
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/lib/User/Pc.js +10 -10
- package/package.json +14 -14
package/dist/lib/User/Pc.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { jsx as l, jsxs as
|
|
2
|
+
import { jsx as l, jsxs as r } from "react/jsx-runtime";
|
|
3
3
|
import d from "@ichaingo/link";
|
|
4
|
-
import
|
|
4
|
+
import o from "@ichaingo/translation";
|
|
5
5
|
import m from "./MainTrigger.js";
|
|
6
6
|
import c from "./Logout.js";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
7
|
+
import n from "@ichaingo/avatar";
|
|
8
|
+
import s from "@ichaingo/tooltip";
|
|
9
9
|
function u({
|
|
10
10
|
list: t,
|
|
11
11
|
userInfo: e,
|
|
12
|
-
onClick:
|
|
12
|
+
onClick: i
|
|
13
13
|
}) {
|
|
14
|
-
return /* @__PURE__ */ l(
|
|
15
|
-
/* @__PURE__ */ l("div", { className: "flex flex-col gap-3 w-full bg-background rounded-lg p-2", children: /* @__PURE__ */
|
|
16
|
-
/* @__PURE__ */ l(
|
|
17
|
-
/* @__PURE__ */
|
|
14
|
+
return /* @__PURE__ */ l(s, { trigger: /* @__PURE__ */ l(m, { userInfo: e }), arrowClassName: "fill-module", contentClassName: "text-title w-75 p-0 border-transparent outline-none ", children: /* @__PURE__ */ r("div", { className: "flex flex-col gap-2 p-3 bg-module rounded-md", children: [
|
|
15
|
+
/* @__PURE__ */ l("div", { className: "flex flex-col gap-3 w-full bg-background rounded-lg p-2", children: /* @__PURE__ */ r("div", { className: "flex items-center gap-2", children: [
|
|
16
|
+
/* @__PURE__ */ l(n, { userInfo: e, className: "w-8 h-8" }),
|
|
17
|
+
/* @__PURE__ */ r("div", { className: "flex flex-col overflow-hidden", children: [
|
|
18
18
|
/* @__PURE__ */ l("div", { className: "text-sm font-medium", children: (e == null ? void 0 : e.username) || "--" }),
|
|
19
19
|
/* @__PURE__ */ l("div", { className: "text-xs text-muted-foreground w-full truncate", children: (e == null ? void 0 : e.email) || (e == null ? void 0 : e.walletAddress) })
|
|
20
20
|
] })
|
|
21
21
|
] }) }),
|
|
22
|
-
t.map((
|
|
22
|
+
t.map((a) => /* @__PURE__ */ l("div", { className: "px-0 py-0 focus-visible:border-none focus-visible:outline-none", children: /* @__PURE__ */ l("div", { className: "flex items-center gap-2 w-full", children: a.name === "logout" ? /* @__PURE__ */ l(c, { className: "flex-1 flex py-3 border-t border-stroke w-full px-2 hover:bg-background" }) : /* @__PURE__ */ l(d, { href: `/${a.href}`, baseUrl: process.env.NEXT_PUBLIC_AUTH_URL, className: "flex-1 flex py-3 h-full w-full px-2 hover:bg-background hover:text-primary rounded-lg ", onClick: i, children: /* @__PURE__ */ l(o, { value: a.name, parentKey: "account" }) }) }) }, a.name))
|
|
23
23
|
] }) });
|
|
24
24
|
}
|
|
25
25
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ichaingo/header",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -32,18 +32,18 @@
|
|
|
32
32
|
"tailwind-merge": "3.3.1",
|
|
33
33
|
"next": "15.5.6",
|
|
34
34
|
"antd": "6.1.1",
|
|
35
|
-
"@ichaingo/
|
|
36
|
-
"@ichaingo/
|
|
37
|
-
"@ichaingo/image": "1.5.
|
|
38
|
-
"@ichaingo/
|
|
39
|
-
"@ichaingo/
|
|
40
|
-
"@ichaingo/
|
|
41
|
-
"@ichaingo/
|
|
42
|
-
"@ichaingo/with-login": "1.5.
|
|
43
|
-
"@ichaingo/
|
|
44
|
-
"@ichaingo/
|
|
45
|
-
"@ichaingo/
|
|
46
|
-
"@ichaingo/
|
|
47
|
-
"@ichaingo/
|
|
35
|
+
"@ichaingo/avatar": "1.5.6",
|
|
36
|
+
"@ichaingo/better-link": "1.5.6",
|
|
37
|
+
"@ichaingo/image": "1.5.6",
|
|
38
|
+
"@ichaingo/auth": "1.5.6",
|
|
39
|
+
"@ichaingo/translation": "1.5.6",
|
|
40
|
+
"@ichaingo/iconfont": "1.5.6",
|
|
41
|
+
"@ichaingo/request": "1.5.6",
|
|
42
|
+
"@ichaingo/with-login": "1.5.6",
|
|
43
|
+
"@ichaingo/tooltip": "1.5.6",
|
|
44
|
+
"@ichaingo/link": "1.5.6",
|
|
45
|
+
"@ichaingo/ui": "1.5.6",
|
|
46
|
+
"@ichaingo/token": "1.5.6",
|
|
47
|
+
"@ichaingo/theme-toggle": "1.5.6"
|
|
48
48
|
}
|
|
49
49
|
}
|