@ichaingo/header 1.4.51 → 1.4.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.
- package/dist/lib/User/SignIn.js +26 -27
- package/package.json +15 -15
package/dist/lib/User/SignIn.js
CHANGED
|
@@ -1,31 +1,30 @@
|
|
|
1
|
-
import { jsxs as a, jsx as
|
|
2
|
-
import
|
|
1
|
+
import { jsxs as a, Fragment as s, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import l from "@ichaingo/translation";
|
|
3
3
|
import { twMerge as c } from "tailwind-merge";
|
|
4
|
-
import { useLogin as
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
);
|
|
4
|
+
import { useLogin as p, OpenLoginType as d } from "@ichaingo/with-login";
|
|
5
|
+
function x({ onClick: n = () => {
|
|
6
|
+
}, className: e }) {
|
|
7
|
+
const r = async () => {
|
|
8
|
+
n == null || n(), window.location.reload();
|
|
9
|
+
}, { openLogin: t, LoginModal: i } = p({ loginSuccessCallback: r });
|
|
10
|
+
return /* @__PURE__ */ a(s, { children: [
|
|
11
|
+
/* @__PURE__ */ o(
|
|
12
|
+
"div",
|
|
13
|
+
{
|
|
14
|
+
onClick: () => {
|
|
15
|
+
t(d.LOGIN);
|
|
16
|
+
},
|
|
17
|
+
style: { cursor: "pointer" },
|
|
18
|
+
className: c(
|
|
19
|
+
"cursor-pointer text-sm text-white bg-primary py-2 px-3 rounded-lg",
|
|
20
|
+
e
|
|
21
|
+
),
|
|
22
|
+
children: /* @__PURE__ */ o(l, { value: "signIn", parentKey: "account" })
|
|
23
|
+
}
|
|
24
|
+
),
|
|
25
|
+
/* @__PURE__ */ o(i, {})
|
|
26
|
+
] });
|
|
28
27
|
}
|
|
29
28
|
export {
|
|
30
|
-
|
|
29
|
+
x as default
|
|
31
30
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ichaingo/header",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.52",
|
|
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/
|
|
33
|
-
"@ichaingo/
|
|
34
|
-
"@ichaingo/
|
|
35
|
-
"@ichaingo/
|
|
36
|
-
"@ichaingo/
|
|
37
|
-
"@ichaingo/
|
|
38
|
-
"@ichaingo/
|
|
39
|
-
"@ichaingo/
|
|
40
|
-
"@ichaingo/
|
|
41
|
-
"@ichaingo/
|
|
42
|
-
"@ichaingo/
|
|
43
|
-
"@ichaingo/
|
|
44
|
-
"@ichaingo/
|
|
45
|
-
"@ichaingo/
|
|
32
|
+
"@ichaingo/better-link": "1.4.52",
|
|
33
|
+
"@ichaingo/auth": "1.4.52",
|
|
34
|
+
"@ichaingo/avatar": "1.4.52",
|
|
35
|
+
"@ichaingo/link": "1.4.52",
|
|
36
|
+
"@ichaingo/i18n": "1.4.52",
|
|
37
|
+
"@ichaingo/ui": "1.4.52",
|
|
38
|
+
"@ichaingo/image": "1.4.52",
|
|
39
|
+
"@ichaingo/translation": "1.4.52",
|
|
40
|
+
"@ichaingo/with-login": "1.4.52",
|
|
41
|
+
"@ichaingo/theme-toggle": "1.4.52",
|
|
42
|
+
"@ichaingo/iconfont": "1.4.52",
|
|
43
|
+
"@ichaingo/providers": "1.4.52",
|
|
44
|
+
"@ichaingo/request": "1.4.52",
|
|
45
|
+
"@ichaingo/tooltip": "1.4.52"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/js-cookie": "^3.0.6"
|