@ichaingo/header 1.5.25 → 1.5.27

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,14 +1,18 @@
1
- import { jsxs as t, jsx as e } from "react/jsx-runtime";
2
- import d from "@ichaingo/iconfont";
3
- import i from "@ichaingo/tooltip";
4
- import r from "./SettingBody.js";
5
- function a({ onClick: o = () => {
1
+ import { jsxs as n, jsx as e } from "react/jsx-runtime";
2
+ import i from "@ichaingo/iconfont";
3
+ import l from "@ichaingo/tooltip";
4
+ import o from "./SettingBody.js";
5
+ function g({ onClick: r = () => {
6
6
  } }) {
7
- return /* @__PURE__ */ t("div", { className: "w-full md:w-auto order-3 md:order-0", children: [
8
- /* @__PURE__ */ e("div", { className: "hidden md:flex items-center bg-module hover:bg-stroke rounded-lg p-1.5 cursor-pointer", children: /* @__PURE__ */ e(i, { side: "bottom", needClick: !0, contentClassName: "bg-module w-70 rounded-lg bg-module text-title border border-stroke", trigger: /* @__PURE__ */ e(d, { type: "icon-centersetup", className: "text-2xl" }), arrowClassName: "fill-module", children: /* @__PURE__ */ e(r, { onClick: o }) }) }),
9
- /* @__PURE__ */ e("div", { className: "md:hidden", children: /* @__PURE__ */ e(r, {}) })
7
+ return /* @__PURE__ */ n("div", { className: "w-full md:w-auto order-3 md:order-0", children: [
8
+ /* @__PURE__ */ e("div", { className: "hidden md:flex items-center bg-module hover:bg-stroke rounded-lg p-1.5 cursor-pointer", children: /* @__PURE__ */ e(l, { side: "bottom", onChange: (t) => {
9
+ document.querySelectorAll("iframe").forEach((d) => {
10
+ d.style.pointerEvents = t ? "none" : "auto";
11
+ });
12
+ }, needClick: !0, contentClassName: "bg-module w-70 rounded-lg bg-module text-title border border-stroke", trigger: /* @__PURE__ */ e(i, { type: "icon-centersetup", className: "text-2xl" }), arrowClassName: "fill-module", children: /* @__PURE__ */ e(o, { onClick: r }) }) }),
13
+ /* @__PURE__ */ e("div", { className: "md:hidden", children: /* @__PURE__ */ e(o, {}) })
10
14
  ] });
11
15
  }
12
16
  export {
13
- a as default
17
+ g as default
14
18
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ichaingo/header",
3
- "version": "1.5.25",
3
+ "version": "1.5.27",
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.25",
36
- "@ichaingo/better-link": "1.5.25",
37
- "@ichaingo/image": "1.5.25",
38
- "@ichaingo/translation": "1.5.25",
39
- "@ichaingo/request": "1.5.25",
40
- "@ichaingo/with-login": "1.5.25",
41
- "@ichaingo/tooltip": "1.5.25",
42
- "@ichaingo/token": "1.5.25",
43
- "@ichaingo/iconfont": "1.5.25",
44
- "@ichaingo/ui": "1.5.25",
45
- "@ichaingo/avatar": "1.5.25",
46
- "@ichaingo/link": "1.5.25",
47
- "@ichaingo/theme-toggle": "1.5.25"
35
+ "@ichaingo/auth": "1.5.27",
36
+ "@ichaingo/avatar": "1.5.27",
37
+ "@ichaingo/image": "1.5.27",
38
+ "@ichaingo/link": "1.5.27",
39
+ "@ichaingo/better-link": "1.5.27",
40
+ "@ichaingo/theme-toggle": "1.5.27",
41
+ "@ichaingo/ui": "1.5.27",
42
+ "@ichaingo/with-login": "1.5.27",
43
+ "@ichaingo/translation": "1.5.27",
44
+ "@ichaingo/request": "1.5.27",
45
+ "@ichaingo/tooltip": "1.5.27",
46
+ "@ichaingo/iconfont": "1.5.27",
47
+ "@ichaingo/token": "1.5.27"
48
48
  }
49
49
  }