@blocklet/pages-kit-inner-components 0.6.23 → 0.6.25

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.
@@ -2,15 +2,15 @@ import { jsx as e, jsxs as R } from "react/jsx-runtime";
2
2
  import { u as z, c as U, d as re, e as ae, f as se, b as ie } from "./state-DSo43FAB.js";
3
3
  import { useLocaleContext as V } from "@arcblock/ux/lib/Locale/context";
4
4
  import G from "@arcblock/ux/lib/Result";
5
- import { styled as M, useTheme as ce } from "@arcblock/ux/lib/Theme";
6
- import { useHeaderState as le } from "@blocklet/pages-kit/builtin/page/header";
5
+ import { styled as M, useTheme as le } from "@arcblock/ux/lib/Theme";
6
+ import { useHeaderState as ce } from "@blocklet/pages-kit/builtin/page/header";
7
7
  import { useColorConvert as ue } from "@blocklet/pages-kit/contexts/color";
8
8
  import { setPageDataSource as W } from "@blocklet/pages-kit/utils/data-source";
9
9
  import { generateParamCombinations as pe } from "@blocklet/pages-kit/utils/route";
10
10
  import de from "@blocklet/ui-react/lib/Header";
11
11
  import { cx as me } from "@emotion/css";
12
12
  import { Global as q, css as K } from "@emotion/react";
13
- import { Box as C, CircularProgress as ge, useTheme as Y, Button as he, Stack as fe, alpha as D, useMediaQuery as be } from "@mui/material";
13
+ import { Box as k, CircularProgress as ge, useTheme as Y, Button as he, Stack as fe, alpha as D, useMediaQuery as be } from "@mui/material";
14
14
  import { useReactive as J, useScroll as ye } from "ahooks";
15
15
  import ve from "isomorphic-dompurify";
16
16
  import O from "lodash/cloneDeep";
@@ -18,26 +18,26 @@ import xe from "lodash/isEmpty";
18
18
  import Q from "lodash/isEqual";
19
19
  import { useEffect as T, lazy as X, useMemo as P, useRef as Z, Suspense as Pe, useState as we } from "react";
20
20
  import { Helmet as ke } from "react-helmet";
21
- import { useSearchParams as ee, Routes as Se, Route as S, Navigate as Ce, ScrollRestoration as Ie } from "react-router-dom";
21
+ import { useSearchParams as ee, Routes as Se, Route as C, Navigate as Ce, ScrollRestoration as Ie } from "react-router-dom";
22
22
  import { useAsync as te } from "react-use";
23
23
  import { joinURL as w } from "ufo";
24
- import { S as Te, P as je, a as Re, B as Oe, g as Ee } from "./index-BHQcp5eX.js";
24
+ import { S as Te, P as je, a as Re, B as Oe, g as Ee } from "./index-CAKG1D4b.js";
25
25
  import Me from "@blocklet/ui-react/lib/Footer";
26
26
  import "webfontloader";
27
27
  import { u as Ae, a as Be } from "./session-C72Dq8zg.js";
28
- const Le = M(C)`
28
+ const Le = M(k)`
29
29
  display: contents;
30
30
  & > div > div > .MuiContainer-root {
31
31
  max-width: unset;
32
32
  }
33
33
  `;
34
34
  function Fe({ meta: t, ...o }) {
35
- const c = ce();
36
- return /* @__PURE__ */ e(Le, { children: /* @__PURE__ */ e(Me, { ...o, meta: t, theme: c || {} }) });
35
+ const l = le();
36
+ return /* @__PURE__ */ e(Le, { children: /* @__PURE__ */ e(Me, { ...o, meta: t, theme: l || {} }) });
37
37
  }
38
38
  function _e(t) {
39
39
  return /* @__PURE__ */ e(
40
- C,
40
+ k,
41
41
  {
42
42
  ...t,
43
43
  sx: [
@@ -57,7 +57,7 @@ function _e(t) {
57
57
  function $e(t) {
58
58
  return /* @__PURE__ */ e(De, { ...t });
59
59
  }
60
- const De = M(C)`
60
+ const De = M(k)`
61
61
  position: fixed;
62
62
  left: 0;
63
63
  top: 0;
@@ -101,46 +101,46 @@ function N(t) {
101
101
  return t != null;
102
102
  }
103
103
  function wt() {
104
- const [t] = ee(), { session: o } = Ae(), c = Be("owner", "admin", "pagesEditor", "member"), r = P(() => {
104
+ const [t] = ee(), { session: o } = Ae(), l = Be("owner", "admin", "pagesEditor", "member"), r = P(() => {
105
105
  const n = t.get("mode");
106
106
  return Te.includes(n) ? n : "production";
107
- }, [t]), s = r === "production" ? r : o.user ? c ? r : "production" : null;
107
+ }, [t]), s = r === "production" ? r : o.user ? l ? r : "production" : null;
108
108
  return s ? /* @__PURE__ */ e(ze, { mode: s }) : null;
109
109
  }
110
110
  function ze({ mode: t }) {
111
111
  if (t !== "draft") {
112
112
  const o = window.__PAGE_STATE__;
113
- return o ? /* @__PURE__ */ e(F, { mode: t, state: o }) : /* @__PURE__ */ e(Ge, { mode: t, children: ({ state: c }) => /* @__PURE__ */ e(F, { mode: t, state: c }) });
113
+ return o ? /* @__PURE__ */ e(F, { mode: t, state: o }) : /* @__PURE__ */ e(Ge, { mode: t, children: ({ state: l }) => /* @__PURE__ */ e(F, { mode: t, state: l }) });
114
114
  }
115
115
  return /* @__PURE__ */ e(Ve, { children: ({ state: o }) => /* @__PURE__ */ e(F, { mode: t, state: o }) });
116
116
  }
117
- const Ue = X(() => import("./publish-button-CIVPDQb7.js")), Ve = X(() => import("./draft-data-CpCuyq4R.js"));
117
+ const Ue = X(() => import("./publish-button-_fKcOj1f.js")), Ve = X(() => import("./draft-data-CpCuyq4R.js"));
118
118
  function Ge({
119
119
  mode: t,
120
120
  children: o
121
121
  }) {
122
122
  const r = document.querySelector('meta[property="pages:version"]')?.content, s = z(), n = P(() => {
123
123
  if (r === "{{pagesPublishedAt}}") {
124
- const l = localStorage.getItem(ie(s ?? ""));
125
- return Number(l) ? Number(l) : (/* @__PURE__ */ new Date()).getTime();
124
+ const c = localStorage.getItem(ie(s ?? ""));
125
+ return Number(c) ? Number(c) : (/* @__PURE__ */ new Date()).getTime();
126
126
  }
127
127
  return Number(r);
128
128
  }, [r]), { loading: d, value: i } = te(() => Ee({ mode: t, version: n }), [t, n]);
129
129
  return d ? /* @__PURE__ */ e(_e, {}) : i ? o({ state: i }) : null;
130
130
  }
131
131
  function F({ mode: t, state: o }) {
132
- const { t: c, locale: r } = V(), [s] = ee(), n = z(), d = re(), i = s.get("hiddenBadge") === "true", l = s.get("showPublish") === "true", {
133
- pageIds: g,
132
+ const { t: l, locale: r } = V(), [s] = ee(), n = z(), d = re(), i = s.get("hiddenBadge") === "true", c = s.get("showPublish") === "true", {
133
+ pageIds: h,
134
134
  pages: u,
135
135
  routeIds: p,
136
136
  routes: b,
137
137
  supportedLocales: y,
138
138
  config: { defaultLocale: v },
139
- resources: k
140
- } = o, f = U(o), h = P(
139
+ resources: S
140
+ } = o, f = U(o), g = P(
141
141
  () => y?.some((m) => m.locale === r) ? r : void 0,
142
142
  [r, y]
143
- ), I = Object.values(b || {}).find((m) => m?.path === "/") || Object.values(u).find((m) => m?.slug === "/") ? void 0 : Object.values(u)[0], A = P(() => t === "production" ? g.map((m) => {
143
+ ), I = Object.values(b || {}).find((m) => m?.path === "/") || Object.values(u).find((m) => m?.slug === "/") ? void 0 : Object.values(u)[0], A = P(() => t === "production" ? h.map((m) => {
144
144
  const a = u[m];
145
145
  return a && {
146
146
  id: a.id,
@@ -152,12 +152,12 @@ function F({ mode: t, state: o }) {
152
152
  id: a.id,
153
153
  path: w("/", d || n || "", a.path, `?mode=${t}&showPublish=true`)
154
154
  } : null;
155
- }).filter(N), [g, u, t, b, p, n, d]), j = ([...m]) => (t !== "production" && l && m.unshift(
155
+ }).filter(N), [h, u, t, b, p, n, d]), j = ([...m]) => (t !== "production" && c && m.unshift(
156
156
  /* @__PURE__ */ e(Pe, { fallback: /* @__PURE__ */ e("div", {}), children: /* @__PURE__ */ e(Ue, { ref: { current: null }, mode: "production", state: o }) })
157
157
  ), m);
158
158
  return /* @__PURE__ */ R(je, { value: { pages: A }, children: [
159
159
  /* @__PURE__ */ R(Se, { children: [
160
- I && /* @__PURE__ */ e(S, { index: !0, element: /* @__PURE__ */ e(Ce, { to: w("/", h || "", I.slug) }) }),
160
+ I && /* @__PURE__ */ e(C, { index: !0, element: /* @__PURE__ */ e(Ce, { to: w("/", g || "", I.slug) }) }),
161
161
  p?.map((m) => {
162
162
  const a = b?.[m];
163
163
  if (!a || !a.displayTemplateId) return null;
@@ -176,7 +176,7 @@ function F({ mode: t, state: o }) {
176
176
  })?.map((_) => {
177
177
  const $ = _.paramOptionIds.join("-");
178
178
  return /* @__PURE__ */ e(
179
- S,
179
+ C,
180
180
  {
181
181
  path: w(":projectIdOrSlug?", _.path),
182
182
  element: /* @__PURE__ */ e(
@@ -185,11 +185,11 @@ function F({ mode: t, state: o }) {
185
185
  mode: t,
186
186
  components: f,
187
187
  page: B,
188
- locale: h,
188
+ locale: g,
189
189
  defaultLocale: v,
190
190
  headerAddons: j,
191
191
  state: o,
192
- pageData: a.dataSource?.pathDataMappings?.[$]?.dataCache?.[h || v || "en"]
192
+ pageData: a.dataSource?.pathDataMappings?.[$]?.dataCache?.[g || v || "en"]
193
193
  }
194
194
  )
195
195
  },
@@ -197,7 +197,7 @@ function F({ mode: t, state: o }) {
197
197
  );
198
198
  })), L.push(
199
199
  /* @__PURE__ */ e(
200
- S,
200
+ C,
201
201
  {
202
202
  path: w(":projectIdOrSlug?", a.path),
203
203
  element: /* @__PURE__ */ e(
@@ -206,11 +206,11 @@ function F({ mode: t, state: o }) {
206
206
  mode: t,
207
207
  components: f,
208
208
  page: B,
209
- locale: h,
209
+ locale: g,
210
210
  defaultLocale: v,
211
211
  headerAddons: j,
212
212
  state: o,
213
- pageData: a.dataSource?.pathDataMappings?.[a.id]?.dataCache?.[h || v || "en"]
213
+ pageData: a.dataSource?.pathDataMappings?.[a.id]?.dataCache?.[g || v || "en"]
214
214
  }
215
215
  )
216
216
  },
@@ -218,10 +218,10 @@ function F({ mode: t, state: o }) {
218
218
  )
219
219
  ), L;
220
220
  }),
221
- g.map((m) => {
221
+ h.map((m) => {
222
222
  const a = u[m];
223
223
  return a ? /* @__PURE__ */ e(
224
- S,
224
+ C,
225
225
  {
226
226
  path: w(":projectIdOrSlug?", a.slug),
227
227
  element: /* @__PURE__ */ e(
@@ -230,7 +230,7 @@ function F({ mode: t, state: o }) {
230
230
  mode: t,
231
231
  components: f,
232
232
  page: a,
233
- locale: h,
233
+ locale: g,
234
234
  defaultLocale: v,
235
235
  headerAddons: j
236
236
  }
@@ -239,8 +239,8 @@ function F({ mode: t, state: o }) {
239
239
  a.id
240
240
  ) : null;
241
241
  }),
242
- k.pages && Object.values(k.pages).map(({ blockletId: m, page: a }) => /* @__PURE__ */ e(
243
- S,
242
+ S.pages && Object.values(S.pages).map(({ blockletId: m, page: a }) => /* @__PURE__ */ e(
243
+ C,
244
244
  {
245
245
  path: w("/", `@${m}`, a.slug),
246
246
  element: /* @__PURE__ */ e(
@@ -249,7 +249,7 @@ function F({ mode: t, state: o }) {
249
249
  mode: t,
250
250
  components: f,
251
251
  page: a,
252
- locale: h,
252
+ locale: g,
253
253
  defaultLocale: v,
254
254
  headerAddons: j
255
255
  }
@@ -258,11 +258,11 @@ function F({ mode: t, state: o }) {
258
258
  a.id
259
259
  )),
260
260
  /* @__PURE__ */ e(
261
- S,
261
+ C,
262
262
  {
263
263
  path: "*",
264
264
  element: /* @__PURE__ */ e(
265
- C,
265
+ k,
266
266
  {
267
267
  sx: {
268
268
  width: "100vw",
@@ -275,7 +275,7 @@ function F({ mode: t, state: o }) {
275
275
  G,
276
276
  {
277
277
  status: 404,
278
- extra: /* @__PURE__ */ e(ne, { href: "/", children: c("common.back") }),
278
+ extra: /* @__PURE__ */ e(ne, { href: "/", children: l("common.back") }),
279
279
  sx: {
280
280
  bgcolor: "transparent",
281
281
  width: "100%",
@@ -295,29 +295,29 @@ function F({ mode: t, state: o }) {
295
295
  function H({
296
296
  mode: t,
297
297
  pageData: o,
298
- components: c,
298
+ components: l,
299
299
  page: r,
300
300
  locale: s,
301
301
  defaultLocale: n,
302
302
  headerAddons: d,
303
303
  state: i
304
304
  }) {
305
- const l = J({
305
+ const c = J({
306
306
  page: null
307
307
  });
308
308
  T(() => {
309
309
  const u = r || null;
310
- u ? l.page = O(u) : l.page = null;
311
- }, [r, JSON.stringify(r), l]);
312
- const g = Z(void 0);
310
+ u ? c.page = O(u) : c.page = null;
311
+ }, [r, JSON.stringify(r), c]);
312
+ const h = Z(void 0);
313
313
  return T(() => {
314
- Q(o, g.current) || o && l.page && (W(l.page, i, s, o), g.current = O(o));
315
- }, [l.page, o, s, i]), l.page ? /* @__PURE__ */ e(
314
+ Q(o, h.current) || o && c.page && (W(c.page, i, s, o), h.current = O(o));
315
+ }, [c.page, o, s, i]), c.page ? /* @__PURE__ */ e(
316
316
  E,
317
317
  {
318
318
  mode: t,
319
- components: c,
320
- page: l.page,
319
+ components: l,
320
+ page: c.page,
321
321
  locale: s,
322
322
  defaultLocale: n,
323
323
  headerAddons: d
@@ -327,15 +327,15 @@ function H({
327
327
  function kt({
328
328
  mode: t,
329
329
  state: o,
330
- path: c,
330
+ path: l,
331
331
  pageData: r
332
332
  }) {
333
333
  const { t: s, locale: n } = V(), {
334
334
  pages: d,
335
335
  supportedLocales: i,
336
- config: { defaultLocale: l },
337
- resources: g
338
- } = o, u = Object.values(d).find((f) => f?.slug === c), p = Object.values(g.pages || {}).find((f) => f.page.slug === c), b = P(
336
+ config: { defaultLocale: c },
337
+ resources: h
338
+ } = o, u = Object.values(d).find((f) => f?.slug === l), p = Object.values(h.pages || {}).find((f) => f.page.slug === l), b = P(
339
339
  () => i?.some((f) => f.locale === n) ? n : void 0,
340
340
  [n, i]
341
341
  ), y = J({
@@ -350,7 +350,7 @@ function kt({
350
350
  Q(r, v.current) || r && y.page && (W(y.page, o, b, r), v.current = O(r));
351
351
  }, [{}]), !u && !p?.page)
352
352
  return /* @__PURE__ */ e(
353
- C,
353
+ k,
354
354
  {
355
355
  sx: {
356
356
  width: "100vw",
@@ -362,29 +362,29 @@ function kt({
362
362
  children: /* @__PURE__ */ e(G, { style: { background: "inherit" }, status: 404, extra: /* @__PURE__ */ e(ne, { href: "/", children: s("common.back") }) })
363
363
  }
364
364
  );
365
- const k = U(o);
365
+ const S = U(o);
366
366
  return y.page ? /* @__PURE__ */ e(
367
367
  E,
368
368
  {
369
369
  mode: t,
370
- components: k,
370
+ components: S,
371
371
  page: y.page,
372
372
  locale: b,
373
- defaultLocale: l
373
+ defaultLocale: c
374
374
  }
375
375
  ) : null;
376
376
  }
377
377
  function E({
378
378
  mode: t,
379
379
  components: o,
380
- page: c,
380
+ page: l,
381
381
  locale: r,
382
382
  defaultLocale: s,
383
383
  headerAddons: n
384
384
  }) {
385
- const d = ue(), i = c.locales?.[r] ?? c.locales?.[s] ?? {}, l = i.title || window.blocklet?.appName, g = i.description || window.blocklet?.appDescription, u = ae(se(i.image), 540), { logo: p, brand: b, description: y, ...v } = le(), k = P(
386
- () => (h) => {
387
- let x = n?.(h) ?? h;
385
+ const d = ue(), i = l.locales?.[r] ?? l.locales?.[s] ?? {}, c = i.title || window.blocklet?.appName, h = i.description || window.blocklet?.appDescription, u = ae(se(i.image), 540), { logo: p, brand: b, description: y, ...v } = ce(), S = P(
386
+ () => (g) => {
387
+ let x = n?.(g) ?? g;
388
388
  return x = v.addons?.(x) ?? x, x;
389
389
  },
390
390
  [v.addons, n]
@@ -392,7 +392,7 @@ function E({
392
392
  () => i.header?.translucent ? qe : oe,
393
393
  [i.header?.translucent]
394
394
  );
395
- return /* @__PURE__ */ R(Re, { page: c, defaultLocale: s, currentLocale: r, children: [
395
+ return /* @__PURE__ */ R(Re, { page: l, defaultLocale: s, currentLocale: r, children: [
396
396
  /* @__PURE__ */ e(
397
397
  q,
398
398
  {
@@ -415,20 +415,20 @@ function E({
415
415
  ...y ? { description: y } : {},
416
416
  className: me(i.header?.sticky && "sticky", "page-header"),
417
417
  maxWidth: !1,
418
- addons: k
418
+ addons: S
419
419
  }
420
420
  ),
421
421
  /* @__PURE__ */ e(Ie, {}),
422
422
  /* @__PURE__ */ R(ke, { children: [
423
- /* @__PURE__ */ e("title", { children: l }),
424
- /* @__PURE__ */ e("meta", { name: "og:title", content: l }),
425
- /* @__PURE__ */ e("meta", { name: "og:description", content: g }),
423
+ /* @__PURE__ */ e("title", { children: c }),
424
+ /* @__PURE__ */ e("meta", { name: "og:title", content: c }),
425
+ /* @__PURE__ */ e("meta", { name: "og:description", content: h }),
426
426
  /* @__PURE__ */ e("meta", { name: "og:image", content: u }),
427
427
  /* @__PURE__ */ e("meta", { name: "twitter:image:src", content: u }),
428
428
  /* @__PURE__ */ e("meta", { name: "twitter:image", content: u }),
429
- /* @__PURE__ */ e("meta", { property: "twitter:description", content: g }),
430
- /* @__PURE__ */ e("meta", { property: "twitter:title", content: l }),
431
- /* @__PURE__ */ e("meta", { name: "description", content: g })
429
+ /* @__PURE__ */ e("meta", { property: "twitter:description", content: h }),
430
+ /* @__PURE__ */ e("meta", { property: "twitter:title", content: c }),
431
+ /* @__PURE__ */ e("meta", { name: "description", content: h })
432
432
  ] }),
433
433
  /* @__PURE__ */ e(
434
434
  fe,
@@ -441,14 +441,14 @@ function E({
441
441
  pt: "0 !important"
442
442
  }
443
443
  },
444
- children: c.sectionIds.map((h) => {
445
- const x = c.sections[h];
444
+ children: l.sectionIds.map((g) => {
445
+ const x = l.sections[g];
446
446
  if (!x || x.visibility === "hidden") return null;
447
- const I = c.dataSource?.[h]?.[r], A = c.dataSource?.[h]?.[s] ?? {};
448
- return /* @__PURE__ */ e(
447
+ const I = l.dataSource?.[g]?.[r], A = l.dataSource?.[g]?.[s] ?? {};
448
+ return /* @__PURE__ */ e(k, { sx: { position: "relative" }, children: /* @__PURE__ */ e(
449
449
  Oe,
450
450
  {
451
- id: h,
451
+ id: g,
452
452
  type: x.component,
453
453
  mode: t,
454
454
  section: x,
@@ -465,10 +465,10 @@ function E({
465
465
  // 用于 fallback 的 locale
466
466
  }
467
467
  },
468
- page: c
468
+ page: l
469
469
  },
470
- h
471
- );
470
+ g
471
+ ) }, g);
472
472
  })
473
473
  }
474
474
  ),
@@ -482,7 +482,7 @@ const oe = M(de)`
482
482
  }
483
483
  `;
484
484
  function We({ logo: t }) {
485
- const [o, c] = we(), r = be((n) => n.breakpoints.down("sm")), { value: s } = te(() => {
485
+ const [o, l] = we(), r = be((n) => n.breakpoints.down("sm")), { value: s } = te(() => {
486
486
  const n = new URL(
487
487
  r ? window?.blocklet?.appLogo || "/.well-known/service/blocklet/logo" : window?.blocklet?.appLogoRect || "/.well-known/service/blocklet/logo-rect",
488
488
  window.location.origin
@@ -490,17 +490,17 @@ function We({ logo: t }) {
490
490
  n.searchParams.delete("imageFilter"), n.searchParams.delete("f");
491
491
  const d = n.toString();
492
492
  return new Promise((i) => {
493
- fetch(d).then((l) => {
494
- l.headers.get("content-type")?.includes("svg") && l.text().then((u) => {
495
- c(u), i(null);
496
- }), i(l.url);
493
+ fetch(d).then((c) => {
494
+ c.headers.get("content-type")?.includes("svg") && c.text().then((u) => {
495
+ l(u), i(null);
496
+ }), i(c.url);
497
497
  });
498
498
  });
499
499
  }, [r]);
500
500
  if (t)
501
501
  return t;
502
502
  if (o)
503
- return /* @__PURE__ */ e(C, { sx: { filter: "initial !important" }, dangerouslySetInnerHTML: { __html: ve.sanitize(o) } });
503
+ return /* @__PURE__ */ e(k, { sx: { filter: "initial !important" }, dangerouslySetInnerHTML: { __html: ve.sanitize(o) } });
504
504
  if (s) {
505
505
  const n = new URL(s);
506
506
  n.searchParams.set("imageFilter", "convert"), n.searchParams.set("f", "png"), n.searchParams.set("h", "80");
@@ -512,7 +512,7 @@ function We({ logo: t }) {
512
512
  function qe({
513
513
  logo: t,
514
514
  translucentTextColor: o,
515
- ...c
515
+ ...l
516
516
  }) {
517
517
  const s = ye(document.getElementById("app"), (p) => p.top < 1200), n = Y(), d = Math.min(s?.top ?? 0, 800), i = P(() => {
518
518
  let p = Math.min(d / 800, 1), b = "";
@@ -521,12 +521,12 @@ function qe({
521
521
  textColor: b,
522
522
  isReversed: p < 0.7
523
523
  };
524
- }, [d, 800, n.palette.text.primary, o]), { backgroundOpacity: l, textColor: g, isReversed: u } = i;
524
+ }, [d, 800, n.palette.text.primary, o]), { backgroundOpacity: c, textColor: h, isReversed: u } = i;
525
525
  return /* @__PURE__ */ e(
526
526
  oe,
527
527
  {
528
528
  logo: /* @__PURE__ */ e(We, { logo: t }),
529
- ...c,
529
+ ...l,
530
530
  sx: {
531
531
  // 基础布局和定位
532
532
  position: "fixed !important",
@@ -548,8 +548,8 @@ function qe({
548
548
  zIndex: -1,
549
549
  // 置于内容下方
550
550
  // 背景样式(颜色和模糊)是固定的
551
- backgroundColor: D(n.palette.background.default, l),
552
- backdropFilter: l >= 0.6 ? "blur(10px)" : "blur(0px)",
551
+ backgroundColor: D(n.palette.background.default, c),
552
+ backdropFilter: c >= 0.6 ? "blur(10px)" : "blur(0px)",
553
553
  // **性能关键**: 只对 opacity 进行动画
554
554
  // opacity: backgroundOpacity,
555
555
  // 让 CSS 平滑地处理透明度变化
@@ -561,11 +561,11 @@ function qe({
561
561
  transition: "color 0.3s ease-in-out",
562
562
  // 覆盖子组件的颜色,使其继承父级的 `color`
563
563
  ".navmenu-root>.navmenu-sub>span,\n .navmenu-root>.navmenu-item,\n .header-addons>button,\n .header-addons>a,\n .header-addons>div>button": {
564
- color: `${g} !important`
564
+ color: `${h} !important`
565
565
  // 使用 inherit 来同步颜色
566
566
  },
567
567
  ".header-logo": {
568
- color: `${g} !important`
568
+ color: `${h} !important`
569
569
  },
570
570
  "& .navmenu--horizontal": {
571
571
  bgcolor: "transparent !important"