@arcblock/ux 3.0.39 → 3.0.41

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,40 +1,42 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import { useRef as u } from "react";
3
- import { Link as t } from "react-router-dom";
4
- import { useMemoizedFn as w, useCreation as k } from "ahooks";
5
- import { Box as g, useTheme as h, Grid as l } from "@mui/material";
6
- import f from "./sub-item-group.js";
7
- import { Item as S } from "./nav-menu.js";
8
- import { styled as v } from "../Theme/index.js";
9
- import { useNavMenuContext as y } from "./nav-menu-context.js";
10
- import { translate as $ } from "../Locale/util.js";
11
- import { useLocaleContext as _ } from "../Locale/context.js";
12
- import A from "./images/ai-kit.svg.js";
13
- import I from "./images/nft-studio.svg.js";
14
- import N from "./images/creator-studio.svg.js";
15
- import x from "./images/aigne.svg.js";
16
- import C from "./images/arcsphere.svg.js";
17
- import D from "./images/aistro.svg.js";
18
- import K from "./images/blocklet-launcher.svg.js";
19
- import B from "./images/blocklet-store.svg.js";
2
+ import { useRef as f } from "react";
3
+ import { Link as o } from "react-router-dom";
4
+ import { useMemoizedFn as k, useCreation as S } from "ahooks";
5
+ import { Box as m, useTheme as v, Grid as d } from "@mui/material";
6
+ import A from "./sub-item-group.js";
7
+ import { Item as I } from "./nav-menu.js";
8
+ import { styled as y } from "../Theme/index.js";
9
+ import { useNavMenuContext as C } from "./nav-menu-context.js";
10
+ import { translate as _ } from "../Locale/util.js";
11
+ import { useLocaleContext as N } from "../Locale/context.js";
12
+ import G from "./images/ai-kit.svg.js";
13
+ import D from "./images/nft-studio.svg.js";
14
+ import $ from "./images/creator-studio.svg.js";
15
+ import x from "./images/blocklet-launcher.svg.js";
16
+ import K from "./images/blocklet-store.svg.js";
20
17
  import W from "./images/web3-kit.svg.js";
21
- import F from "./images/blocklet-framework.svg.js";
22
- import G from "./images/abt-network.svg.js";
23
- import L from "./images/blocklet-server.svg.js";
24
- import M from "./images/OCAP.svg.js";
25
- import d from "./images/did.svg.js";
18
+ import B from "./images/blocklet-framework.svg.js";
19
+ import F from "./images/abt-network.svg.js";
20
+ import E from "./images/blocklet-server.svg.js";
21
+ import L from "./images/OCAP.svg.js";
22
+ import s from "./images/did.svg.js";
26
23
  import P from "./images/did-wallet.svg.js";
27
24
  import T from "./images/did-name-service.svg.js";
28
- import z from "./images/vc.svg.js";
25
+ import M from "./images/vc.svg.js";
29
26
  import O from "./images/did-connect.svg.js";
30
- import V from "./images/payment-kit.png";
31
- const E = {
27
+ import H from "./images/payment-kit.png";
28
+ import R from "./images/aigne.svg.js";
29
+ import b from "./images/arcsphere.svg.js";
30
+ import z from "./images/aistro.png";
31
+ const V = {
32
32
  en: {
33
33
  groups: {
34
34
  applications: "Applications",
35
35
  components: "Components",
36
36
  computeStorage: "Compute/Storage",
37
- identity: "Identity"
37
+ identity: "Identity",
38
+ frameworkTools: "Framework & tools",
39
+ modelsAdapters: "Models adapters"
38
40
  },
39
41
  products: {
40
42
  nftStudio: {
@@ -44,7 +46,7 @@ const E = {
44
46
  description: "All-in-one creator tool"
45
47
  },
46
48
  aigne: {
47
- description: "Your AI assistant"
49
+ description: "The Agentic Ecosystem for AI Apps"
48
50
  },
49
51
  arcsphere: {
50
52
  description: "AI native browser"
@@ -96,6 +98,30 @@ const E = {
96
98
  },
97
99
  didConnect: {
98
100
  description: "Passwordless login"
101
+ },
102
+ aigneCodeSmith: {
103
+ description: "Review and improve your code with AI"
104
+ },
105
+ aigneDocSmith: {
106
+ description: "Generate and update docs with AI"
107
+ },
108
+ aigneWebSmith: {
109
+ description: "Build and deploy AI-powered web apps"
110
+ },
111
+ aigneCLI: {
112
+ description: "Develop agents from the command line"
113
+ },
114
+ aigneObservability: {
115
+ description: "Understand and inspect agent behavior"
116
+ },
117
+ aigneStudio: {
118
+ description: "Create agents visually, no code needed"
119
+ },
120
+ aigneFramework: {
121
+ description: "The functional core of agentic AI"
122
+ },
123
+ aigneHub: {
124
+ description: "One API. Any Model"
99
125
  }
100
126
  }
101
127
  },
@@ -104,7 +130,9 @@ const E = {
104
130
  applications: "应用",
105
131
  components: "组件",
106
132
  computeStorage: "计算/存储",
107
- identity: "身份"
133
+ identity: "身份",
134
+ frameworkTools: "框架与工具",
135
+ modelsAdapters: "模型适配器"
108
136
  },
109
137
  products: {
110
138
  nftStudio: {
@@ -114,7 +142,7 @@ const E = {
114
142
  description: "一体化创作工具"
115
143
  },
116
144
  aigne: {
117
- description: "您的人工智能助手"
145
+ description: "AI 应用的代理生态系统"
118
146
  },
119
147
  arcsphere: {
120
148
  description: "AI 原生浏览器"
@@ -166,14 +194,38 @@ const E = {
166
194
  },
167
195
  didConnect: {
168
196
  description: "无密码登录"
197
+ },
198
+ aigneCodeSmith: {
199
+ description: "使用 AI 审查并优化你的代码"
200
+ },
201
+ aigneDocSmith: {
202
+ description: "用 AI 生成和更新项目文档"
203
+ },
204
+ aigneWebSmith: {
205
+ description: "构建并部署 AI 驱动的 Web 应用"
206
+ },
207
+ aigneCLI: {
208
+ description: "通过命令行开发 Agent"
209
+ },
210
+ aigneObservability: {
211
+ description: "理解并分析 Agent 的行为"
212
+ },
213
+ aigneStudio: {
214
+ description: "零代码构建 Agent"
215
+ },
216
+ aigneFramework: {
217
+ description: "Agent AI 的功能核心框架"
218
+ },
219
+ aigneHub: {
220
+ description: "一套 API,连接所有模型"
169
221
  }
170
222
  }
171
223
  }
172
- }, R = v(g)`
224
+ }, j = y(m)`
173
225
  width: 80vw;
174
226
  max-width: 900px;
175
227
  padding: 8px;
176
- background: ${({ theme: c }) => c.palette.grey[100]};
228
+ background: ${({ theme: n }) => n.palette.grey[100]};
177
229
  border-radius: 8px;
178
230
 
179
231
  &.is-inline {
@@ -193,44 +245,56 @@ const E = {
193
245
  margin-top: 0px;
194
246
  }
195
247
  `;
196
- function ye({ className: c, isOpen: j = void 0, ...s }) {
197
- const { mode: a } = y(), { palette: p } = h(), m = u(null), { locale: o = "en" } = _() || {}, r = w((i, n = {}) => $(E, i, o, "en", n)), b = k(() => [
248
+ function i({ color: n = "black", backgroundColor: l = "transparent" }) {
249
+ return /* @__PURE__ */ e(
250
+ m,
251
+ {
252
+ component: "span",
253
+ sx: {
254
+ display: "inline-flex",
255
+ alignItems: "center",
256
+ justifyContent: "center",
257
+ color: n,
258
+ backgroundColor: l,
259
+ borderRadius: "4px"
260
+ },
261
+ children: /* @__PURE__ */ e(R, {})
262
+ }
263
+ );
264
+ }
265
+ function Ie({ className: n, type: l, ...g }) {
266
+ const { mode: u } = C(), { palette: a } = v(), w = f(null), { locale: t = "en" } = N() || {}, r = k((c, p = {}) => _(V, c, t, "en", p)), h = S(() => l === "ARCBLOCK" ? [
198
267
  {
199
268
  type: "Group",
200
269
  label: r("groups.applications"),
201
270
  children: [
202
271
  {
203
- label: /* @__PURE__ */ e(t, { to: `https://www.nftstudio.rocks/${o}`, target: "_blank", rel: "noreferrer noopener", children: "NFT Studio" }),
272
+ label: /* @__PURE__ */ e(o, { to: `https://www.nftstudio.rocks/${t}`, target: "_blank", rel: "noreferrer noopener", children: "NFT Studio" }),
204
273
  description: r("products.nftStudio.description"),
205
- icon: /* @__PURE__ */ e(I, {})
274
+ icon: /* @__PURE__ */ e(D, {})
206
275
  },
207
276
  {
208
277
  label: /* @__PURE__ */ e(
209
- t,
278
+ o,
210
279
  {
211
- to: `https://www.arcblock.io/content/collections/${o}/creator-studio`,
280
+ to: `https://www.arcblock.io/content/collections/${t}/creator-studio`,
212
281
  target: "_blank",
213
282
  rel: "noreferrer noopener",
214
283
  children: "Creator Studio"
215
284
  }
216
285
  ),
217
286
  description: r("products.creatorStudio.description"),
218
- icon: /* @__PURE__ */ e(N, {})
287
+ icon: /* @__PURE__ */ e($, {})
219
288
  },
220
289
  {
221
- label: /* @__PURE__ */ e(t, { to: `https://www.aistro.io/${o}`, target: "_blank", rel: "noreferrer noopener", children: "Aistro" }),
222
- description: r("products.aistro.description"),
223
- icon: /* @__PURE__ */ e(D, {})
224
- },
225
- {
226
- label: /* @__PURE__ */ e(t, { to: "https://www.aigne.io/", target: "_blank", rel: "noreferrer noopener", children: "AIGNE" }),
290
+ label: /* @__PURE__ */ e(o, { to: "https://www.aigne.io/", target: "_blank", rel: "noreferrer noopener", children: "AIGNE" }),
227
291
  description: r("products.aigne.description"),
228
- icon: /* @__PURE__ */ e(x, { style: { filter: p.mode === "dark" ? "invert(1)" : "none" } })
292
+ icon: /* @__PURE__ */ e(i, { color: a.mode === "dark" ? "white" : "black" })
229
293
  },
230
294
  {
231
- label: /* @__PURE__ */ e(t, { to: `https://www.arcsphere.io/${o}`, target: "_blank", rel: "noreferrer noopener", children: "ArcSphere" }),
295
+ label: /* @__PURE__ */ e(o, { to: `https://www.arcsphere.io/${t}`, target: "_blank", rel: "noreferrer noopener", children: "ArcSphere" }),
232
296
  description: r("products.arcsphere.description"),
233
- icon: /* @__PURE__ */ e(C, {})
297
+ icon: /* @__PURE__ */ e(b, {})
234
298
  }
235
299
  ]
236
300
  },
@@ -239,27 +303,27 @@ function ye({ className: c, isOpen: j = void 0, ...s }) {
239
303
  label: r("groups.components"),
240
304
  children: [
241
305
  {
242
- label: /* @__PURE__ */ e(t, { to: `https://launcher.arcblock.io/${o}`, target: "_blank", rel: "noreferrer noopener", children: "Blocklet Launcher" }),
306
+ label: /* @__PURE__ */ e(o, { to: `https://launcher.arcblock.io/${t}`, target: "_blank", rel: "noreferrer noopener", children: "Blocklet Launcher" }),
243
307
  description: r("products.blockletLauncher.description"),
244
- icon: /* @__PURE__ */ e(K, {})
308
+ icon: /* @__PURE__ */ e(x, {})
245
309
  },
246
310
  {
247
- label: /* @__PURE__ */ e(t, { to: `https://www.aikit.rocks/${o}`, target: "_blank", rel: "noreferrer noopener", children: "AI Kit" }),
311
+ label: /* @__PURE__ */ e(o, { to: "https://www.aigne.io/hub", target: "_blank", rel: "noreferrer noopener", children: "AI Kit" }),
248
312
  description: r("products.aiKit.description"),
249
- icon: /* @__PURE__ */ e(A, {})
313
+ icon: /* @__PURE__ */ e(G, {})
250
314
  },
251
315
  {
252
- label: /* @__PURE__ */ e(t, { to: `https://www.blocklet.io/${o}/payment-kit`, target: "_blank", rel: "noreferrer noopener", children: "Payment Kit" }),
316
+ label: /* @__PURE__ */ e(o, { to: `https://www.blocklet.io/${t}/payment-kit`, target: "_blank", rel: "noreferrer noopener", children: "Payment Kit" }),
253
317
  description: r("products.paymentKit.description"),
254
- icon: /* @__PURE__ */ e("img", { src: V, alt: "Payment Kit" })
318
+ icon: /* @__PURE__ */ e("img", { src: H, alt: "Payment Kit" })
255
319
  },
256
320
  {
257
- label: /* @__PURE__ */ e(t, { to: `https://store.blocklet.dev/?locale=${o}`, target: "_blank", rel: "noreferrer noopener", children: "Blocklet Store" }),
321
+ label: /* @__PURE__ */ e(o, { to: `https://store.blocklet.dev/?locale=${t}`, target: "_blank", rel: "noreferrer noopener", children: "Blocklet Store" }),
258
322
  description: r("products.blockletStore.description"),
259
- icon: /* @__PURE__ */ e(B, {})
323
+ icon: /* @__PURE__ */ e(K, {})
260
324
  },
261
325
  {
262
- label: /* @__PURE__ */ e(t, { to: `https://www.web3kit.rocks/${o}`, target: "_blank", rel: "noreferrer noopener", children: "Web3 Kit" }),
326
+ label: /* @__PURE__ */ e(o, { to: `https://www.web3kit.rocks/${t}`, target: "_blank", rel: "noreferrer noopener", children: "Web3 Kit" }),
263
327
  description: r("products.web3Kit.description"),
264
328
  icon: /* @__PURE__ */ e(W, {})
265
329
  }
@@ -271,44 +335,52 @@ function ye({ className: c, isOpen: j = void 0, ...s }) {
271
335
  children: [
272
336
  {
273
337
  label: /* @__PURE__ */ e(
274
- t,
338
+ o,
275
339
  {
276
- to: `https://www.arcblock.io/content/collections/${o}/blocklet`,
340
+ to: `https://www.arcblock.io/content/collections/${t}/blocklet`,
277
341
  target: "_blank",
278
342
  rel: "noreferrer noopener",
279
343
  children: "Blocklet Framework"
280
344
  }
281
345
  ),
282
346
  description: r("products.blockletFramework.description"),
283
- icon: /* @__PURE__ */ e(F, {})
347
+ icon: /* @__PURE__ */ e(B, {})
284
348
  },
285
349
  {
286
- label: /* @__PURE__ */ e(t, { to: `https://www.didspaces.com/${o}`, target: "_blank", rel: "noreferrer noopener", children: "DID Spaces" }),
350
+ label: /* @__PURE__ */ e(o, { to: `https://www.didspaces.com/${t}`, target: "_blank", rel: "noreferrer noopener", children: "DID Spaces" }),
287
351
  description: r("products.didSpaces.description"),
288
- icon: /* @__PURE__ */ e(d, {})
352
+ icon: /* @__PURE__ */ e(s, {})
289
353
  },
290
354
  {
291
- label: /* @__PURE__ */ e(t, { to: "https://main.abtnetwork.io/", target: "_blank", rel: "noreferrer noopener", children: "ABT Network" }),
355
+ label: /* @__PURE__ */ e(o, { to: "https://main.abtnetwork.io/", target: "_blank", rel: "noreferrer noopener", children: "ABT Network" }),
292
356
  description: r("products.abtNetwork.description"),
293
- icon: /* @__PURE__ */ e(G, {})
357
+ icon: /* @__PURE__ */ e(F, {})
294
358
  },
295
359
  {
296
- label: /* @__PURE__ */ e(t, { to: `https://www.blocklet.io/${o}/blocklet-server`, target: "_blank", rel: "noreferrer noopener", children: "Blocklet Server" }),
360
+ label: /* @__PURE__ */ e(
361
+ o,
362
+ {
363
+ to: `https://www.blocklet.io/${t}/blocklet-server`,
364
+ target: "_blank",
365
+ rel: "noreferrer noopener",
366
+ children: "Blocklet Server"
367
+ }
368
+ ),
297
369
  description: r("products.blockletServer.description"),
298
- icon: /* @__PURE__ */ e(L, {})
370
+ icon: /* @__PURE__ */ e(E, {})
299
371
  },
300
372
  {
301
373
  label: /* @__PURE__ */ e(
302
- t,
374
+ o,
303
375
  {
304
- to: `https://www.arcblock.io/content/collections/${o}/ocap`,
376
+ to: `https://www.arcblock.io/content/collections/${t}/ocap`,
305
377
  target: "_blank",
306
378
  rel: "noreferrer noopener",
307
379
  children: "ОСАР"
308
380
  }
309
381
  ),
310
382
  description: r("products.ocap.description"),
311
- icon: /* @__PURE__ */ e(M, {})
383
+ icon: /* @__PURE__ */ e(L, {})
312
384
  }
313
385
  ]
314
386
  },
@@ -318,61 +390,130 @@ function ye({ className: c, isOpen: j = void 0, ...s }) {
318
390
  children: [
319
391
  {
320
392
  label: /* @__PURE__ */ e(
321
- t,
393
+ o,
322
394
  {
323
- to: `https://www.arcblock.io/content/collections/${o}/did`,
395
+ to: `https://www.arcblock.io/content/collections/${t}/did`,
324
396
  target: "_blank",
325
397
  rel: "noreferrer noopener",
326
398
  children: "DID"
327
399
  }
328
400
  ),
329
401
  description: r("products.did.description"),
330
- icon: /* @__PURE__ */ e(d, {})
402
+ icon: /* @__PURE__ */ e(s, {})
331
403
  },
332
404
  {
333
- label: /* @__PURE__ */ e(t, { to: `https://www.didwallet.io/${o}`, target: "_blank", rel: "noreferrer noopener", children: "DID Wallet" }),
405
+ label: /* @__PURE__ */ e(o, { to: `https://www.didwallet.io/${t}`, target: "_blank", rel: "noreferrer noopener", children: "DID Wallet" }),
334
406
  description: r("products.didWallet.description"),
335
407
  icon: /* @__PURE__ */ e(P, {})
336
408
  },
337
409
  {
338
- label: /* @__PURE__ */ e(t, { to: `https://www.didnames.io/${o}`, target: "_blank", rel: "noreferrer noopener", children: "DID Names" }),
410
+ label: /* @__PURE__ */ e(o, { to: `https://www.didnames.io/${t}`, target: "_blank", rel: "noreferrer noopener", children: "DID Names" }),
339
411
  description: r("products.didNameService.description"),
340
412
  icon: /* @__PURE__ */ e(T, {})
341
413
  },
342
414
  {
343
415
  label: /* @__PURE__ */ e(
344
- t,
416
+ o,
345
417
  {
346
- to: `https://www.arcblock.io/content/collections/${o}/verifiable-credential`,
418
+ to: `https://www.arcblock.io/content/collections/${t}/verifiable-credential`,
347
419
  target: "_blank",
348
420
  rel: "noreferrer noopener",
349
421
  children: "VC"
350
422
  }
351
423
  ),
352
424
  description: r("products.vc.description"),
353
- icon: /* @__PURE__ */ e(z, {})
425
+ icon: /* @__PURE__ */ e(M, {})
354
426
  },
355
427
  {
356
- label: /* @__PURE__ */ e(t, { to: `https://www.didconnect.io/${o}`, target: "_blank", rel: "noreferrer noopener", children: "DID Connect" }),
428
+ label: /* @__PURE__ */ e(o, { to: `https://www.didconnect.io/${t}`, target: "_blank", rel: "noreferrer noopener", children: "DID Connect" }),
357
429
  description: r("products.didConnect.description"),
358
430
  icon: /* @__PURE__ */ e(O, {})
359
431
  }
360
432
  ]
361
433
  }
362
- ], [r, o, p]);
363
- return /* @__PURE__ */ e(R, { ref: m, className: `is-${a} ${c}`, ...s, children: b.map((i) => /* @__PURE__ */ e(f, { label: i.label, children: /* @__PURE__ */ e(l, { container: !0, columnSpacing: 1, rowSpacing: 1, children: i.children.map((n) => /* @__PURE__ */ e(
364
- l,
434
+ ] : l === "AIGNE" ? [
435
+ {
436
+ type: "Group",
437
+ label: r("groups.applications"),
438
+ children: [
439
+ {
440
+ label: /* @__PURE__ */ e(o, { to: `https://www.arcsphere.io/${t}`, target: "_blank", rel: "noreferrer noopener", children: "ArcSphere" }),
441
+ description: r("products.arcsphere.description"),
442
+ icon: /* @__PURE__ */ e(b, {})
443
+ },
444
+ {
445
+ label: /* @__PURE__ */ e(o, { to: `https://www.aistro.io/${t}`, target: "_blank", rel: "noreferrer noopener", children: "Aistro" }),
446
+ description: r("products.aistro.description"),
447
+ icon: /* @__PURE__ */ e("img", { src: z, alt: "Aistro" })
448
+ },
449
+ {
450
+ label: /* @__PURE__ */ e(o, { to: "https://www.aigne.io/doc-smith", target: "_blank", rel: "noreferrer noopener", children: "AIGNE CodeSmith" }),
451
+ description: r("products.aigneCodeSmith.description"),
452
+ icon: /* @__PURE__ */ e(i, { color: "#56a596", backgroundColor: "#e9fcf6" })
453
+ },
454
+ {
455
+ label: /* @__PURE__ */ e(o, { to: "https://www.aigne.io/code-smith", target: "_blank", rel: "noreferrer noopener", children: "AIGNE DocSmith" }),
456
+ description: r("products.aigneDocSmith.description"),
457
+ icon: /* @__PURE__ */ e(i, { color: "#e46f38", backgroundColor: "#f7e0d7" })
458
+ },
459
+ {
460
+ label: /* @__PURE__ */ e(o, { to: "https://www.aigne.io/web-smith", target: "_blank", rel: "noreferrer noopener", children: "AIGNE WebSmith" }),
461
+ description: r("products.aigneWebSmith.description"),
462
+ icon: /* @__PURE__ */ e(i, { color: "#7c45eb", backgroundColor: "#f0e9ff" })
463
+ }
464
+ ]
465
+ },
466
+ {
467
+ type: "Group",
468
+ label: r("groups.frameworkTools"),
469
+ children: [
470
+ {
471
+ label: /* @__PURE__ */ e(o, { to: "https://www.aigne.io/cli", target: "_blank", rel: "noreferrer noopener", children: "AIGNE CLI" }),
472
+ description: r("products.aigneCLI.description"),
473
+ icon: /* @__PURE__ */ e(i, { color: "#d05d4e", backgroundColor: "#faeaea" })
474
+ },
475
+ {
476
+ label: /* @__PURE__ */ e(o, { to: "https://www.aigne.io/observability", target: "_blank", rel: "noreferrer noopener", children: "AIGNE Observability" }),
477
+ description: r("products.aigneObservability.description"),
478
+ icon: /* @__PURE__ */ e(i, { color: "#6ba456", backgroundColor: "#edfae8" })
479
+ },
480
+ {
481
+ label: /* @__PURE__ */ e(o, { to: "https://www.aigne.io/studio", target: "_blank", rel: "noreferrer noopener", children: "AIGNE Studio" }),
482
+ description: r("products.aigneStudio.description"),
483
+ icon: /* @__PURE__ */ e(i, { color: "#676cbf", backgroundColor: "#edeeff" })
484
+ },
485
+ {
486
+ label: /* @__PURE__ */ e(o, { to: "https://www.aigne.io/framework", target: "_blank", rel: "noreferrer noopener", children: "AIGNE Framework" }),
487
+ description: r("products.aigneFramework.description"),
488
+ icon: /* @__PURE__ */ e(i, { color: "#5086d0", backgroundColor: "#eef4ff" })
489
+ }
490
+ ]
491
+ },
492
+ {
493
+ type: "Group",
494
+ label: r("groups.modelsAdapters"),
495
+ children: [
496
+ {
497
+ label: /* @__PURE__ */ e(o, { to: "https://www.aigne.io/hub", target: "_blank", rel: "noreferrer noopener", children: "AIGNE Hub" }),
498
+ description: r("products.aigneHub.description"),
499
+ icon: /* @__PURE__ */ e(i, { color: "#e4930b", backgroundColor: "#fbf4d4" })
500
+ }
501
+ ]
502
+ }
503
+ ] : [], [r, t, a]);
504
+ return /* @__PURE__ */ e(j, { ref: w, className: `is-${u} ${n}`, ...g, children: h.map((c) => /* @__PURE__ */ e(A, { label: c.label, children: /* @__PURE__ */ e(d, { container: !0, columnSpacing: 1, rowSpacing: 1, children: c.children.map((p) => /* @__PURE__ */ e(
505
+ d,
365
506
  {
366
507
  size: {
367
508
  xs: 12,
368
509
  md: 6,
369
510
  lg: 4
370
511
  },
371
- children: /* @__PURE__ */ e(S, { variant: "panel", style: { padding: "8px" }, ...n })
512
+ children: /* @__PURE__ */ e(I, { variant: "panel", style: { padding: "8px" }, ...p })
372
513
  },
373
- n.description
374
- )) }) }, i.label)) });
514
+ p.description
515
+ )) }) }, c.label)) });
375
516
  }
376
517
  export {
377
- ye as default
518
+ Ie as default
378
519
  };
@@ -23,7 +23,7 @@ const o = i("nav", {
23
23
  flexDirection: "column",
24
24
  alignItems: "stretch"
25
25
  }
26
- })), a = i("li", {
26
+ })), e = i("li", {
27
27
  shouldForwardProp: (n) => n !== "$activeTextColor"
28
28
  })(({ $activeTextColor: n, theme: t }) => ({
29
29
  display: "flex",
@@ -67,7 +67,7 @@ const o = i("nav", {
67
67
  justifyContent: "center",
68
68
  marginRight: "4px",
69
69
  "& > *": {
70
- width: "auto",
70
+ width: "22px",
71
71
  height: "22px",
72
72
  maxHeight: "22px",
73
73
  fontSize: "1.5em"
@@ -110,6 +110,7 @@ const o = i("nav", {
110
110
  padding: "8px 16px",
111
111
  borderRadius: "8px",
112
112
  ".navmenu-item__icon": {
113
+ flexShrink: 0,
113
114
  width: "32px",
114
115
  height: "32px",
115
116
  marginRight: "16px",
@@ -155,7 +156,7 @@ const o = i("nav", {
155
156
  lineHeight: "48px",
156
157
  flexWrap: "wrap"
157
158
  }
158
- })), s = i(a)(({ theme: n }) => ({
159
+ })), s = i(e)(({ theme: n }) => ({
159
160
  ".navmenu-item": {
160
161
  marginLeft: 0,
161
162
  overflow: "hidden"
@@ -229,7 +230,7 @@ const o = i("nav", {
229
230
  }
230
231
  }));
231
232
  export {
232
- a as NavMenuItem,
233
+ e as NavMenuItem,
233
234
  r as NavMenuRoot,
234
235
  o as NavMenuStyled,
235
236
  s as NavMenuSub,
@@ -25,11 +25,15 @@ function B(e) {
25
25
  const n = P(() => {
26
26
  if (!i)
27
27
  return null;
28
- const { avatar: a = "", ...d } = i, h = a.split("?")[1];
29
- return a && !h ? {
30
- ...d,
31
- avatar: `${a}?imageFilter=resize&w=48&h=48`
32
- } : i;
28
+ const { avatar: a = "", ...d } = i;
29
+ if (a) {
30
+ const h = a.split("?")[1] || "";
31
+ return {
32
+ ...d,
33
+ avatar: h ? a : `${a}?imageFilter=resize&w=48&h=48`
34
+ };
35
+ }
36
+ return i;
33
37
  }, [i]);
34
38
  if (!n)
35
39
  return /* @__PURE__ */ t(w, { did: e.did, size: e.avatarSize, useProxyFallback: !0, ...e.avatarProps });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcblock/ux",
3
- "version": "3.0.39",
3
+ "version": "3.0.41",
4
4
  "description": "Common used react components for arcblock products",
5
5
  "keywords": [
6
6
  "react",
@@ -60,16 +60,16 @@
60
60
  "react": "^19.0.0",
61
61
  "react-router-dom": "^6.22.3"
62
62
  },
63
- "gitHead": "0b0937b6a161c7332622ae0001849a7d3b2904f1",
63
+ "gitHead": "e4bf7c421b39bfc7b969653e580047629e5338b5",
64
64
  "dependencies": {
65
- "@arcblock/bridge": "3.0.39",
65
+ "@arcblock/bridge": "3.0.41",
66
66
  "@arcblock/did": "^1.21.0",
67
67
  "@arcblock/did-motif": "^1.1.14",
68
- "@arcblock/icons": "3.0.39",
69
- "@arcblock/nft-display": "3.0.39",
70
- "@arcblock/react-hooks": "3.0.39",
68
+ "@arcblock/icons": "3.0.41",
69
+ "@arcblock/nft-display": "3.0.41",
70
+ "@arcblock/react-hooks": "3.0.41",
71
71
  "@blocklet/js-sdk": "^1.16.46",
72
- "@blocklet/theme": "3.0.39",
72
+ "@blocklet/theme": "3.0.41",
73
73
  "@fontsource/roboto": "~5.1.1",
74
74
  "@fontsource/ubuntu-mono": "^5.2.6",
75
75
  "@iconify-icons/logos": "^1.2.36",
@@ -59,6 +59,8 @@ export interface DashboardProps extends React.HTMLAttributes<HTMLDivElement> {
59
59
  dense?: 'auto' | boolean;
60
60
  footerProps?: FooterProps;
61
61
  sx?: SxProps;
62
+ /** 是否隐藏 html title, 默认不隐藏, 避免重复导致 html title 失效 */
63
+ hideHtmlTitle?: boolean;
62
64
  }
63
65
 
64
66
  function Dashboard({
@@ -71,6 +73,7 @@ function Dashboard({
71
73
  footerProps = {},
72
74
  sx = {},
73
75
  children,
76
+ hideHtmlTitle = false,
74
77
  ...rest
75
78
  }: DashboardProps) {
76
79
  const theme = useTheme();
@@ -96,7 +99,7 @@ function Dashboard({
96
99
 
97
100
  return (
98
101
  <Wrapper sx={sx} {...rest} className={classes} sidebarWidth={sidebarWidth}>
99
- <Helmet title={title} key={title} />
102
+ {!hideHtmlTitle && <Helmet title={title} key={title} />}
100
103
  {headerVisible && (
101
104
  <StyledUxHeader {..._headerProps} className="dashboard-header">
102
105
  {links?.length
@@ -1,8 +1,6 @@
1
- <svg width="120" height="120" viewBox="0 0 120 120" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <mask id="mask0_2456_413" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="120" height="120">
3
- <rect width="119.883" height="119.883" fill="white"></rect>
4
- </mask>
5
- <g mask="url(#mask0_2456_413)">
6
- <path fill-rule="evenodd" clip-rule="evenodd" d="M21.2632 28.4408H98.4079C102.728 28.4408 106.23 31.943 106.23 36.2632V83.7368C106.23 88.057 102.728 91.5592 98.4079 91.5592H21.2632C16.943 91.5592 13.4408 88.057 13.4408 83.7368V36.2632C13.4408 31.943 16.943 28.4408 21.2632 28.4408ZM4 36.2632C4 26.729 11.729 19 21.2632 19H98.4079C107.942 19 115.671 26.729 115.671 36.2632V83.7368C115.671 93.271 107.942 101 98.4079 101H21.2632C11.729 101 4 93.271 4 83.7368V36.2632ZM50.2836 59.8795C50.2836 67.5608 46.7456 73.7878 42.3812 73.7878C38.0168 73.7878 34.4787 67.5608 34.4787 59.8795C34.4787 52.1981 38.0168 45.9712 42.3812 45.9712C46.7456 45.9712 50.2836 52.1981 50.2836 59.8795ZM85.0609 59.8795C85.0609 67.5608 81.5228 73.7878 77.1584 73.7878C72.794 73.7878 69.256 67.5608 69.256 59.8795C69.256 52.1981 72.794 45.9712 77.1584 45.9712C81.5228 45.9712 85.0609 52.1981 85.0609 59.8795Z" fill="black"></path>
7
- </g>
8
- </svg>
1
+ <svg viewBox="0 0 400 400" xmlns="http://www.w3.org/2000/svg">
2
+ <rect x="73.1603" y="109.16" width="253.435" height="181.679" rx="36.6412" fill="none" stroke="currentColor"
3
+ stroke-width="18.3206" />
4
+ <ellipse cx="164" cy="199.618" rx="16.0305" ry="28.626" fill="currentColor" />
5
+ <ellipse cx="234.991" cy="199.618" rx="16.0305" ry="28.626" fill="currentColor" />
6
+ </svg>
Binary file
@@ -1,3 +1,3 @@
1
1
  // eslint-disable-next-line no-restricted-exports
2
2
  export { default } from './nav-menu';
3
- export { default as Products } from './products';
3
+ export { default as Products, type ProductsType, type ProductsProps } from './products';