@ichaingo/header 1.4.57 → 1.4.60

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.
@@ -1,25 +1,25 @@
1
- import { jsx as n, Fragment as e } from "react/jsx-runtime";
2
- import i from "@ichaingo/translation";
3
- import { twMerge as t } from "tailwind-merge";
4
- import { useLogin as c, OpenLoginType as l } from "@ichaingo/with-login";
5
- function u({ onClick: p = () => {
6
- }, className: o }) {
7
- const { openLogin: r } = c();
8
- return /* @__PURE__ */ n(e, { children: /* @__PURE__ */ n(
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import o from "@ichaingo/translation";
3
+ import { twMerge as i } from "tailwind-merge";
4
+ import { useLogin as p, OpenLoginType as s } from "@ichaingo/with-login";
5
+ function g({ onClick: r = () => {
6
+ }, className: t }) {
7
+ const { openLogin: n } = p();
8
+ return /* @__PURE__ */ e(
9
9
  "div",
10
10
  {
11
11
  onClick: () => {
12
- r(l.LOGIN);
12
+ r == null || r(), n(s.LOGIN);
13
13
  },
14
14
  style: { cursor: "pointer" },
15
- className: t(
15
+ className: i(
16
16
  "cursor-pointer text-sm text-white bg-primary py-2 px-3 rounded-lg",
17
- o
17
+ t
18
18
  ),
19
- children: /* @__PURE__ */ n(i, { value: "signIn", parentKey: "account" })
19
+ children: /* @__PURE__ */ e(o, { value: "signIn", parentKey: "account" })
20
20
  }
21
- ) });
21
+ );
22
22
  }
23
23
  export {
24
- u as default
24
+ g as default
25
25
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ichaingo/header",
3
- "version": "1.4.57",
3
+ "version": "1.4.60",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -17,8 +17,7 @@
17
17
  "dist",
18
18
  "!**/*.tsbuildinfo"
19
19
  ],
20
- "dependencies": {
21
- "@radix-ui/react-popover": "^1.1.4",
20
+ "peerDependencies": {
22
21
  "js-cookie": "^3.0.5",
23
22
  "lucide-react": "^0.539.0",
24
23
  "next-intl": "^4.5.6",
@@ -26,25 +25,23 @@
26
25
  "rc-drawer": "^1.0.1",
27
26
  "react": "^19.1.0",
28
27
  "react-dom": "^19.1.0",
29
- "rollup-plugin-preserve-use-client": "^1.0.0",
30
28
  "tailwind-merge": "^2.5.5",
31
29
  "next": "15.1.6",
32
- "@ichaingo/auth": "1.4.57",
33
- "@ichaingo/better-link": "1.4.57",
34
- "@ichaingo/image": "1.4.57",
35
- "@ichaingo/avatar": "1.4.57",
36
- "@ichaingo/translation": "1.4.57",
37
- "@ichaingo/ui": "1.4.57",
38
- "@ichaingo/link": "1.4.57",
39
- "@ichaingo/theme-toggle": "1.4.57",
40
- "@ichaingo/i18n": "1.4.57",
41
- "@ichaingo/iconfont": "1.4.57",
42
- "@ichaingo/providers": "1.4.57",
43
- "@ichaingo/request": "1.4.57",
44
- "@ichaingo/with-login": "1.4.57",
45
- "@ichaingo/tooltip": "1.4.57"
30
+ "@ichaingo/auth": "1.4.60",
31
+ "@ichaingo/image": "1.4.60",
32
+ "@ichaingo/avatar": "1.4.60",
33
+ "@ichaingo/better-link": "1.4.60",
34
+ "@ichaingo/ui": "1.4.60",
35
+ "@ichaingo/link": "1.4.60",
36
+ "@ichaingo/iconfont": "1.4.60",
37
+ "@ichaingo/request": "1.4.60",
38
+ "@ichaingo/with-login": "1.4.60",
39
+ "@ichaingo/theme-toggle": "1.4.60",
40
+ "@ichaingo/translation": "1.4.60",
41
+ "@ichaingo/tooltip": "1.4.60"
46
42
  },
47
43
  "devDependencies": {
44
+ "rollup-plugin-preserve-use-client": "^1.0.0",
48
45
  "@types/js-cookie": "^3.0.6"
49
46
  }
50
47
  }