@ichaingo/header 1.4.49 → 1.4.50
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/Mobile.js +4 -4
- package/dist/lib/User/SignIn.js +17 -15
- package/package.json +15 -15
package/dist/lib/User/Mobile.js
CHANGED
|
@@ -4,7 +4,7 @@ import i from "@ichaingo/link";
|
|
|
4
4
|
import { Accordion as d, AccordionItem as m, AccordionTrigger as n, AccordionContent as s } from "@ichaingo/ui/accordion";
|
|
5
5
|
import o from "@ichaingo/translation";
|
|
6
6
|
import p from "@ichaingo/avatar";
|
|
7
|
-
function
|
|
7
|
+
function u({
|
|
8
8
|
list: c,
|
|
9
9
|
userInfo: l,
|
|
10
10
|
onClick: t
|
|
@@ -24,8 +24,8 @@ function b({
|
|
|
24
24
|
/* @__PURE__ */ e("div", { className: "text-xs text-muted-foreground w-full truncate", children: (l == null ? void 0 : l.email) || (l == null ? void 0 : l.walletAddress) })
|
|
25
25
|
] })
|
|
26
26
|
] }) }) }),
|
|
27
|
-
/* @__PURE__ */ e(s, { className: "flex text-sm flex-col text-balance bg-background rounded-lg p-3 gap-3 mt-[10px]", children: /* @__PURE__ */ e("
|
|
28
|
-
"
|
|
27
|
+
/* @__PURE__ */ e(s, { className: "flex text-sm flex-col text-balance bg-background rounded-lg p-3 gap-3 mt-[10px]", children: /* @__PURE__ */ e("ul", { children: c.map((a) => /* @__PURE__ */ e(
|
|
28
|
+
"li",
|
|
29
29
|
{
|
|
30
30
|
className: "flex justify-start items-center gap-2 py-2",
|
|
31
31
|
children: /* @__PURE__ */ e(i, { href: `/${a.href}`, className: "flex-1 py-2", onClick: t, suppressHydrationWarning: !0, baseUrl: process.env.NEXT_PUBLIC_AUTH_URL, children: /* @__PURE__ */ e(o, { value: a.name, parentKey: "account" }) })
|
|
@@ -37,5 +37,5 @@ function b({
|
|
|
37
37
|
);
|
|
38
38
|
}
|
|
39
39
|
export {
|
|
40
|
-
|
|
40
|
+
u as default
|
|
41
41
|
};
|
package/dist/lib/User/SignIn.js
CHANGED
|
@@ -1,29 +1,31 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import p from "@ichaingo/translation";
|
|
3
|
-
import { twMerge as
|
|
4
|
-
import { useLogin as
|
|
5
|
-
import { useCallback as
|
|
6
|
-
function
|
|
7
|
-
}, className:
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
},
|
|
11
|
-
|
|
3
|
+
import { twMerge as c } from "tailwind-merge";
|
|
4
|
+
import { useLogin as l, OpenLoginType as m } from "@ichaingo/with-login";
|
|
5
|
+
import { useCallback as u } from "react";
|
|
6
|
+
function L({ onClick: o = () => {
|
|
7
|
+
}, className: n }) {
|
|
8
|
+
const t = async () => {
|
|
9
|
+
window.location.reload();
|
|
10
|
+
}, { openLogin: r, LoginModal: i } = l({ loginSuccessCallback: t }), s = u(() => {
|
|
11
|
+
r(m.LOGIN), o == null || o();
|
|
12
|
+
}, [r, o]);
|
|
13
|
+
return /* @__PURE__ */ a(
|
|
12
14
|
"div",
|
|
13
15
|
{
|
|
14
|
-
onClick:
|
|
16
|
+
onClick: s,
|
|
15
17
|
style: { cursor: "pointer" },
|
|
16
|
-
className:
|
|
18
|
+
className: c(
|
|
17
19
|
"cursor-pointer text-sm text-white bg-primary py-2 px-3 rounded-lg",
|
|
18
|
-
|
|
20
|
+
n
|
|
19
21
|
),
|
|
20
22
|
children: [
|
|
21
23
|
/* @__PURE__ */ e(p, { value: "signIn", parentKey: "account" }),
|
|
22
|
-
/* @__PURE__ */ e(
|
|
24
|
+
/* @__PURE__ */ e(i, {})
|
|
23
25
|
]
|
|
24
26
|
}
|
|
25
27
|
);
|
|
26
28
|
}
|
|
27
29
|
export {
|
|
28
|
-
|
|
30
|
+
L as default
|
|
29
31
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ichaingo/header",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.50",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -29,20 +29,20 @@
|
|
|
29
29
|
"rollup-plugin-preserve-use-client": "^1.0.0",
|
|
30
30
|
"tailwind-merge": "^2.5.5",
|
|
31
31
|
"next": "15.1.6",
|
|
32
|
-
"@ichaingo/auth": "1.4.
|
|
33
|
-
"@ichaingo/
|
|
34
|
-
"@ichaingo/better-link": "1.4.
|
|
35
|
-
"@ichaingo/
|
|
36
|
-
"@ichaingo/translation": "1.4.
|
|
37
|
-
"@ichaingo/link": "1.4.
|
|
38
|
-
"@ichaingo/
|
|
39
|
-
"@ichaingo/
|
|
40
|
-
"@ichaingo/request": "1.4.
|
|
41
|
-
"@ichaingo/
|
|
42
|
-
"@ichaingo/
|
|
43
|
-
"@ichaingo/
|
|
44
|
-
"@ichaingo/
|
|
45
|
-
"@ichaingo/
|
|
32
|
+
"@ichaingo/auth": "1.4.50",
|
|
33
|
+
"@ichaingo/image": "1.4.50",
|
|
34
|
+
"@ichaingo/better-link": "1.4.50",
|
|
35
|
+
"@ichaingo/avatar": "1.4.50",
|
|
36
|
+
"@ichaingo/translation": "1.4.50",
|
|
37
|
+
"@ichaingo/link": "1.4.50",
|
|
38
|
+
"@ichaingo/theme-toggle": "1.4.50",
|
|
39
|
+
"@ichaingo/ui": "1.4.50",
|
|
40
|
+
"@ichaingo/request": "1.4.50",
|
|
41
|
+
"@ichaingo/providers": "1.4.50",
|
|
42
|
+
"@ichaingo/iconfont": "1.4.50",
|
|
43
|
+
"@ichaingo/i18n": "1.4.50",
|
|
44
|
+
"@ichaingo/with-login": "1.4.50",
|
|
45
|
+
"@ichaingo/tooltip": "1.4.50"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/js-cookie": "^3.0.6"
|