@0xchain/header 1.1.0-beta.74 → 1.1.0-beta.75
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/Products.js +15 -2
- package/package.json +15 -15
package/dist/lib/Products.js
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { jsxs, Fragment
|
|
2
|
+
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
3
3
|
import Translation from "@0xchain/translation";
|
|
4
4
|
import { useLocale } from "@0xchain/i18n/react";
|
|
5
5
|
import { Dropdown } from "antd";
|
|
6
6
|
import { useState } from "react";
|
|
7
|
+
import ImageBar from "@0xchain/image";
|
|
7
8
|
import { Accordion, AccordionItem, AccordionTrigger } from "@0xchain/ui/accordion";
|
|
8
9
|
const PRODUCT_ITEMS = [
|
|
9
10
|
{
|
|
10
11
|
key: "widget",
|
|
11
12
|
href: "/widget",
|
|
13
|
+
iconUrl: `${process.env.NEXT_PUBLIC_CDN_URL}/uploads/2026/09/03/6a98d602a1c18.png`,
|
|
12
14
|
label: /* @__PURE__ */ jsx(Translation, { value: "products.widget", parentKey: "menu" })
|
|
13
15
|
}
|
|
14
16
|
];
|
|
@@ -26,7 +28,18 @@ function Products({
|
|
|
26
28
|
const baseUrl = process.env.NEXT_PUBLIC_APP_URL || "";
|
|
27
29
|
window.location.href = `${baseUrl}/${locale}${href}`;
|
|
28
30
|
};
|
|
29
|
-
const renderItemContent = (item) => /* @__PURE__ */
|
|
31
|
+
const renderItemContent = (item) => /* @__PURE__ */ jsxs("div", { className: "w-full h-full flex items-center gap-2 py-2 cursor-pointer font-medium", children: [
|
|
32
|
+
/* @__PURE__ */ jsx(
|
|
33
|
+
ImageBar,
|
|
34
|
+
{
|
|
35
|
+
src: item.iconUrl,
|
|
36
|
+
className: "w-6 h-6 shrink-0",
|
|
37
|
+
objectFit: "contain",
|
|
38
|
+
alt: ""
|
|
39
|
+
}
|
|
40
|
+
),
|
|
41
|
+
/* @__PURE__ */ jsx("div", { className: "flex-1", children: item.label })
|
|
42
|
+
] });
|
|
30
43
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
31
44
|
/* @__PURE__ */ jsx("div", { className: "hidden md:block", children: /* @__PURE__ */ jsx(
|
|
32
45
|
Dropdown,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@0xchain/header",
|
|
3
|
-
"version": "1.1.0-beta.
|
|
3
|
+
"version": "1.1.0-beta.75",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"react": "19.1.1",
|
|
27
27
|
"react-dom": "19.1.1",
|
|
28
28
|
"tailwind-merge": "3.3.1",
|
|
29
|
-
"@0xchain/with-login": "1.1.0-beta.
|
|
29
|
+
"@0xchain/with-login": "1.1.0-beta.75"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@0xchain/next-themes": "1.0.0",
|
|
@@ -41,21 +41,21 @@
|
|
|
41
41
|
"react-dom": "19.1.1",
|
|
42
42
|
"rollup-plugin-preserve-use-client": "3.0.1",
|
|
43
43
|
"tailwind-merge": "3.3.1",
|
|
44
|
-
"@0xchain/with-login": "1.1.0-beta.
|
|
44
|
+
"@0xchain/with-login": "1.1.0-beta.75"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@0xchain/
|
|
48
|
-
"@0xchain/
|
|
49
|
-
"@0xchain/
|
|
50
|
-
"@0xchain/
|
|
51
|
-
"@0xchain/avatar": "1.1.0-beta.
|
|
52
|
-
"@0xchain/
|
|
53
|
-
"@0xchain/
|
|
54
|
-
"@0xchain/
|
|
55
|
-
"@0xchain/
|
|
56
|
-
"@0xchain/
|
|
57
|
-
"@0xchain/
|
|
58
|
-
"@0xchain/
|
|
47
|
+
"@0xchain/i18n": "1.1.0-beta.75",
|
|
48
|
+
"@0xchain/auth": "1.1.0-beta.75",
|
|
49
|
+
"@0xchain/iconfont": "1.1.0-beta.75",
|
|
50
|
+
"@0xchain/image": "1.1.0-beta.75",
|
|
51
|
+
"@0xchain/avatar": "1.1.0-beta.75",
|
|
52
|
+
"@0xchain/request": "1.1.0-beta.75",
|
|
53
|
+
"@0xchain/theme-toggle": "1.1.0-beta.75",
|
|
54
|
+
"@0xchain/link": "1.1.0-beta.75",
|
|
55
|
+
"@0xchain/tooltip": "1.1.0-beta.75",
|
|
56
|
+
"@0xchain/ui": "1.1.0-beta.75",
|
|
57
|
+
"@0xchain/translation": "1.1.0-beta.75",
|
|
58
|
+
"@0xchain/better-link": "1.1.0-beta.75"
|
|
59
59
|
},
|
|
60
60
|
"nx": {
|
|
61
61
|
"tags": [
|