@24city/web-console 0.3.7 → 0.3.8
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/CHANGELOG.md +27 -0
- package/GUIDELINES.md +15 -0
- package/README.md +3 -3
- package/dist/account/account-api.d.ts +7 -0
- package/dist/account/index.d.ts +1 -0
- package/dist/account/index.js +60 -59
- package/dist/account/use-show-once.d.ts +26 -0
- package/dist/chunks/{auth-provider-CqiyTeOt.js → auth-provider-7FOj7Y84.js} +1 -1
- package/dist/chunks/{console-layout-Os4sQzMP.js → console-layout-B4OlW1IZ.js} +1 -1
- package/dist/chunks/logout-signal-CLdquzzn.js +378 -0
- package/dist/chunks/{stale-build-DG-Tb2RA.js → stale-build-DwUlkKYm.js} +2 -2
- package/dist/chunks/text-link-WWzQqJ14.js +196 -0
- package/dist/chunks/use-show-once-Bz1ojVqb.js +768 -0
- package/dist/chunks/{wallet-badge-Dt8fv-Du.js → wallet-badge-COpdEDYI.js} +1 -1
- package/dist/index.js +190 -188
- package/dist/layout/index.js +1 -1
- package/dist/page/guide-modal.d.ts +37 -0
- package/dist/page/index.d.ts +1 -0
- package/dist/page/index.js +22 -21
- package/dist/runtime/index.js +2 -2
- package/dist/styles.css +167 -0
- package/dist/testing/fixtures.js +33 -27
- package/package.json +1 -1
- package/dist/chunks/logout-signal-CiD_zY5M.js +0 -365
- package/dist/chunks/text-link-Bb5f1eLW.js +0 -106
- package/dist/chunks/upgrade-modal-DyPkV9OB.js +0 -713
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import { jsxs as _, jsx as e, Fragment as j } from "react/jsx-runtime";
|
|
2
|
-
import { Button as b, Typography as p } from "@douyinfe/semi-ui";
|
|
3
|
-
import { IconClose as P } from "@douyinfe/semi-icons";
|
|
4
|
-
import { useNavigate as I } from "react-router";
|
|
5
|
-
import { b as O } from "./context-CaVim6ZO.js";
|
|
6
|
-
import { F as f, e as g } from "./page-YBG0dEN1.js";
|
|
7
|
-
import { useId as z, cloneElement as B, forwardRef as E } from "react";
|
|
8
|
-
const L = "_title_euw1b_10", R = "_medium_euw1b_21", H = "_small_euw1b_26", $ = "_index_euw1b_31", M = "_hero_euw1b_43", q = "_head_euw1b_49", A = "_withSheet_euw1b_60", D = "_bar_euw1b_64", G = "_toolbar_euw1b_75", J = "_close_euw1b_82", Q = "_heroTitle_euw1b_87", U = "_description_euw1b_96", V = "_subject_euw1b_103", W = "_sheet_euw1b_110", X = "_modalContent_euw1b_118", n = {
|
|
9
|
-
title: L,
|
|
10
|
-
medium: R,
|
|
11
|
-
small: H,
|
|
12
|
-
index: $,
|
|
13
|
-
hero: M,
|
|
14
|
-
head: q,
|
|
15
|
-
withSheet: A,
|
|
16
|
-
bar: D,
|
|
17
|
-
toolbar: G,
|
|
18
|
-
close: J,
|
|
19
|
-
heroTitle: Q,
|
|
20
|
-
description: U,
|
|
21
|
-
subject: V,
|
|
22
|
-
sheet: W,
|
|
23
|
-
modalContent: X
|
|
24
|
-
}, w = (...s) => s.filter(Boolean).join(" "), Y = ({ children: s, size: t = "large", level: o = 2, className: a }) => /* @__PURE__ */ e(p.Title, { heading: o, className: w(n.title, t === "large" ? void 0 : n[t], a), children: s }), ue = ({ value: s, className: t }) => /* @__PURE__ */ e("span", { className: w(n.index, t), "aria-hidden": "true", children: String(s).padStart(2, "0") }), me = ({ title: s, description: t, toolbar: o, onClose: a, closeLabel: h = "关闭", subject: i, level: d = 2, className: u, children: r }) => {
|
|
25
|
-
const l = r != null && r !== !1;
|
|
26
|
-
return /* @__PURE__ */ _("div", { className: w(n.hero, l ? n.withSheet : void 0, u), children: [
|
|
27
|
-
/* @__PURE__ */ _("div", { className: n.head, children: [
|
|
28
|
-
o || a ? /* @__PURE__ */ _("div", { className: n.bar, children: [
|
|
29
|
-
/* @__PURE__ */ e("div", { className: n.toolbar, children: o }),
|
|
30
|
-
a ? /* @__PURE__ */ e(b, { theme: "borderless", type: "tertiary", className: n.close, icon: /* @__PURE__ */ e(P, {}), "aria-label": h, onClick: a }) : null
|
|
31
|
-
] }) : null,
|
|
32
|
-
/* @__PURE__ */ e(Y, { level: d, className: n.heroTitle, children: s }),
|
|
33
|
-
t ? /* @__PURE__ */ e(p.Paragraph, { className: n.description, children: t }) : null,
|
|
34
|
-
i ? /* @__PURE__ */ e("div", { className: n.subject, children: i }) : null
|
|
35
|
-
] }),
|
|
36
|
-
l ? /* @__PURE__ */ e("div", { className: n.sheet, children: r }) : null
|
|
37
|
-
] });
|
|
38
|
-
}, he = {
|
|
39
|
-
header: null,
|
|
40
|
-
footer: null,
|
|
41
|
-
closable: !1,
|
|
42
|
-
bodyStyle: { padding: 0 },
|
|
43
|
-
modalContentClass: n.modalContent
|
|
44
|
-
}, be = () => {
|
|
45
|
-
const { config: s } = O(), t = I();
|
|
46
|
-
return /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(
|
|
47
|
-
g,
|
|
48
|
-
{
|
|
49
|
-
status: "not-found",
|
|
50
|
-
title: "页面不存在",
|
|
51
|
-
description: "请检查地址,或返回产品首页继续。",
|
|
52
|
-
extra: /* @__PURE__ */ e(b, { theme: "solid", type: "primary", onClick: () => t(s.routes.publicHome), children: "返回首页" })
|
|
53
|
-
}
|
|
54
|
-
) });
|
|
55
|
-
}, Z = "_srOnly_1mfs8_2", K = {
|
|
56
|
-
srOnly: Z
|
|
57
|
-
}, pe = ({ label: s, children: t }) => {
|
|
58
|
-
const o = z();
|
|
59
|
-
return /* @__PURE__ */ _(j, { children: [
|
|
60
|
-
/* @__PURE__ */ e("span", { id: o, className: K.srOnly, children: s }),
|
|
61
|
-
B(t, { "aria-labelledby": o })
|
|
62
|
-
] });
|
|
63
|
-
}, we = () => /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e("div", { role: "alert", children: /* @__PURE__ */ e(
|
|
64
|
-
g,
|
|
65
|
-
{
|
|
66
|
-
status: "error",
|
|
67
|
-
title: "应用配置暂时无法加载",
|
|
68
|
-
description: "启动检查未通过。请检查运行时配置和网络连接后重新加载。",
|
|
69
|
-
extra: /* @__PURE__ */ e(b, { theme: "solid", type: "primary", onClick: () => window.location.reload(), children: "重新加载" })
|
|
70
|
-
}
|
|
71
|
-
) }) }), ee = "_link_1mzr6_2", te = "_danger_1mzr6_28", ne = "_warning_1mzr6_33", se = "_icon_1mzr6_38", m = {
|
|
72
|
-
link: ee,
|
|
73
|
-
danger: te,
|
|
74
|
-
warning: ne,
|
|
75
|
-
icon: se
|
|
76
|
-
}, fe = E(function({ href: t, target: o, rel: a, download: h, onClick: i, onKeyDown: d, icon: u, status: r, disabled: l = !1, className: y, style: N, role: x, tabIndex: v, children: k, ...S }, T) {
|
|
77
|
-
const C = [m.link, r === "danger" ? m.danger : r === "warning" ? m.warning : "", y ?? ""].filter(Boolean).join(" "), F = {
|
|
78
|
-
...S,
|
|
79
|
-
ref: T,
|
|
80
|
-
href: t,
|
|
81
|
-
target: o,
|
|
82
|
-
rel: o === "_blank" ? a ?? "noreferrer" : a,
|
|
83
|
-
download: h,
|
|
84
|
-
onClick: l ? void 0 : i,
|
|
85
|
-
onKeyDown: (c) => {
|
|
86
|
-
d == null || d(c), !(c.defaultPrevented || t || l || !i) && (c.key === "Enter" || c.key === " ") && (c.preventDefault(), i(c));
|
|
87
|
-
},
|
|
88
|
-
role: x ?? (t ? void 0 : "button"),
|
|
89
|
-
tabIndex: v ?? (t || l ? void 0 : 0),
|
|
90
|
-
"aria-disabled": l || void 0
|
|
91
|
-
};
|
|
92
|
-
return /* @__PURE__ */ _(p.Text, { link: F, disabled: l, className: C, style: N, children: [
|
|
93
|
-
u ? /* @__PURE__ */ e("span", { className: m.icon, children: u }) : null,
|
|
94
|
-
k
|
|
95
|
-
] });
|
|
96
|
-
});
|
|
97
|
-
export {
|
|
98
|
-
me as F,
|
|
99
|
-
be as N,
|
|
100
|
-
pe as S,
|
|
101
|
-
fe as T,
|
|
102
|
-
ue as a,
|
|
103
|
-
Y as b,
|
|
104
|
-
we as c,
|
|
105
|
-
he as f
|
|
106
|
-
};
|