@ichaingo/header 1.5.4 → 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.
Files changed (2) hide show
  1. package/dist/lib/User/Pc.js +10 -10
  2. package/package.json +14 -14
@@ -1,25 +1,25 @@
1
1
  'use client';
2
- import { jsx as l, jsxs as a } from "react/jsx-runtime";
2
+ import { jsx as l, jsxs as r } from "react/jsx-runtime";
3
3
  import d from "@ichaingo/link";
4
- import i from "@ichaingo/translation";
4
+ import o from "@ichaingo/translation";
5
5
  import m from "./MainTrigger.js";
6
6
  import c from "./Logout.js";
7
- import s from "@ichaingo/avatar";
8
- import n from "@ichaingo/tooltip";
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: o
12
+ onClick: i
13
13
  }) {
14
- return /* @__PURE__ */ l(n, { trigger: /* @__PURE__ */ l(m, { userInfo: e }), arrowClassName: "fill-module", contentClassName: "text-title w-75 p-0 border-transparent outline-none border border-stroke", children: /* @__PURE__ */ a("div", { className: "flex flex-col gap-2 p-3 bg-module rounded-md text-sm", children: [
15
- /* @__PURE__ */ l("div", { className: "flex flex-col gap-3 w-full bg-background rounded-lg p-2", children: /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
16
- /* @__PURE__ */ l(s, { userInfo: e, className: "w-8 h-8" }),
17
- /* @__PURE__ */ a("div", { className: "flex flex-col overflow-hidden", children: [
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((r) => /* @__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: r.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: `/${r.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: o, children: /* @__PURE__ */ l(i, { value: r.name, parentKey: "account" }) }) }) }, r.name))
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.4",
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/auth": "1.5.4",
36
- "@ichaingo/avatar": "1.5.4",
37
- "@ichaingo/image": "1.5.4",
38
- "@ichaingo/better-link": "1.5.4",
39
- "@ichaingo/link": "1.5.4",
40
- "@ichaingo/translation": "1.5.4",
41
- "@ichaingo/ui": "1.5.4",
42
- "@ichaingo/iconfont": "1.5.4",
43
- "@ichaingo/request": "1.5.4",
44
- "@ichaingo/theme-toggle": "1.5.4",
45
- "@ichaingo/tooltip": "1.5.4",
46
- "@ichaingo/with-login": "1.5.4",
47
- "@ichaingo/token": "1.5.4"
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
  }