@24city/web-console 0.3.1 → 0.3.3
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 +50 -0
- package/GUIDELINES.md +22 -3
- package/dist/account/index.js +1 -1
- package/dist/chunks/link-button-PqZcqU6s.js +17 -0
- package/dist/chunks/text-link-Ch_4QIkx.js +65 -0
- package/dist/chunks/upgrade-modal-DyPkV9OB.js +713 -0
- package/dist/index.js +3 -3
- package/dist/page/index.js +2 -2
- package/dist/page/link-button.d.ts +6 -4
- package/dist/page/text-link.d.ts +7 -4
- package/dist/semi.js +9 -4
- package/dist/styles.css +131 -49
- package/dist/testing/guard.js +54 -48
- package/package.json +1 -1
- package/dist/chunks/link-button-giJEcTmG.js +0 -42
- package/dist/chunks/text-link-BAKoHe5o.js +0 -64
- package/dist/chunks/upgrade-modal-BWnNve0z.js +0 -696
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { jsx as c, jsxs as p } from "react/jsx-runtime";
|
|
2
|
-
const v = "_linkButton_1i3vf_2", d = "_icon_1i3vf_15", B = "_contentReverse_1i3vf_25", n = {
|
|
3
|
-
linkButton: v,
|
|
4
|
-
icon: d,
|
|
5
|
-
contentReverse: B
|
|
6
|
-
}, $ = ({
|
|
7
|
-
href: r,
|
|
8
|
-
target: e,
|
|
9
|
-
rel: s,
|
|
10
|
-
download: a,
|
|
11
|
-
theme: u = "light",
|
|
12
|
-
type: f = "tertiary",
|
|
13
|
-
size: o = "default",
|
|
14
|
-
block: b = !1,
|
|
15
|
-
icon: i,
|
|
16
|
-
iconPosition: m = "left",
|
|
17
|
-
className: l,
|
|
18
|
-
onClick: _,
|
|
19
|
-
children: h,
|
|
20
|
-
...k
|
|
21
|
-
}) => {
|
|
22
|
-
const t = ["semi-button", `semi-button-${f}`, `semi-button-${u}`, n.linkButton];
|
|
23
|
-
return o !== "default" && t.push(`semi-button-size-${o}`), b && t.push("semi-button-block"), l && t.push(l), /* @__PURE__ */ c(
|
|
24
|
-
"a",
|
|
25
|
-
{
|
|
26
|
-
className: t.join(" "),
|
|
27
|
-
href: r,
|
|
28
|
-
target: e,
|
|
29
|
-
rel: e === "_blank" ? s ?? "noreferrer" : s,
|
|
30
|
-
download: a,
|
|
31
|
-
onClick: _,
|
|
32
|
-
"aria-label": k["aria-label"],
|
|
33
|
-
children: /* @__PURE__ */ p("span", { className: m === "right" ? `semi-button-content ${n.contentReverse}` : "semi-button-content", children: [
|
|
34
|
-
i ? /* @__PURE__ */ c("span", { className: n.icon, children: i }) : null,
|
|
35
|
-
h
|
|
36
|
-
] })
|
|
37
|
-
}
|
|
38
|
-
);
|
|
39
|
-
};
|
|
40
|
-
export {
|
|
41
|
-
$ as L
|
|
42
|
-
};
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { jsx as n, jsxs as m, Fragment as w } from "react/jsx-runtime";
|
|
2
|
-
import { Button as d, Typography as x } from "@douyinfe/semi-ui";
|
|
3
|
-
import { useNavigate as b } from "react-router";
|
|
4
|
-
import { b as N } from "./context-CaVim6ZO.js";
|
|
5
|
-
import { F as u, e as p } from "./page-YBG0dEN1.js";
|
|
6
|
-
import { useId as v, cloneElement as z } from "react";
|
|
7
|
-
const R = () => {
|
|
8
|
-
const { config: r } = N(), o = b();
|
|
9
|
-
return /* @__PURE__ */ n(u, { children: /* @__PURE__ */ n(
|
|
10
|
-
p,
|
|
11
|
-
{
|
|
12
|
-
status: "not-found",
|
|
13
|
-
title: "页面不存在",
|
|
14
|
-
description: "请检查地址,或返回产品首页继续。",
|
|
15
|
-
extra: /* @__PURE__ */ n(d, { theme: "solid", type: "primary", onClick: () => o(r.routes.publicHome), children: "返回首页" })
|
|
16
|
-
}
|
|
17
|
-
) });
|
|
18
|
-
}, F = "_srOnly_1mfs8_2", O = {
|
|
19
|
-
srOnly: F
|
|
20
|
-
}, H = ({ label: r, children: o }) => {
|
|
21
|
-
const e = v();
|
|
22
|
-
return /* @__PURE__ */ m(w, { children: [
|
|
23
|
-
/* @__PURE__ */ n("span", { id: e, className: O.srOnly, children: r }),
|
|
24
|
-
z(o, { "aria-labelledby": e })
|
|
25
|
-
] });
|
|
26
|
-
}, $ = () => /* @__PURE__ */ n(u, { children: /* @__PURE__ */ n("div", { role: "alert", children: /* @__PURE__ */ n(
|
|
27
|
-
p,
|
|
28
|
-
{
|
|
29
|
-
status: "error",
|
|
30
|
-
title: "应用配置暂时无法加载",
|
|
31
|
-
description: "启动检查未通过。请检查运行时配置和网络连接后重新加载。",
|
|
32
|
-
extra: /* @__PURE__ */ n(d, { theme: "solid", type: "primary", onClick: () => window.location.reload(), children: "重新加载" })
|
|
33
|
-
}
|
|
34
|
-
) }) }), S = "_link_1mzr6_2", T = "_danger_1mzr6_28", j = "_warning_1mzr6_33", D = "_icon_1mzr6_38", i = {
|
|
35
|
-
link: S,
|
|
36
|
-
danger: T,
|
|
37
|
-
warning: j,
|
|
38
|
-
icon: D
|
|
39
|
-
}, q = ({ href: r, target: o, rel: e, download: y, onClick: s, icon: l, status: c, disabled: t = !1, className: g, children: _, ...f }) => {
|
|
40
|
-
const k = [i.link, c === "danger" ? i.danger : c === "warning" ? i.warning : "", g ?? ""].filter(Boolean).join(" "), h = {
|
|
41
|
-
href: r,
|
|
42
|
-
target: o,
|
|
43
|
-
rel: o === "_blank" ? e ?? "noreferrer" : e,
|
|
44
|
-
download: y,
|
|
45
|
-
onClick: t ? void 0 : s,
|
|
46
|
-
onKeyDown: (a) => {
|
|
47
|
-
r || t || !s || (a.key === "Enter" || a.key === " ") && (a.preventDefault(), s(a));
|
|
48
|
-
},
|
|
49
|
-
role: r ? void 0 : "button",
|
|
50
|
-
tabIndex: r || t ? void 0 : 0,
|
|
51
|
-
"aria-disabled": t || void 0,
|
|
52
|
-
"aria-label": f["aria-label"]
|
|
53
|
-
};
|
|
54
|
-
return /* @__PURE__ */ m(x.Text, { link: h, disabled: t, className: k, children: [
|
|
55
|
-
l ? /* @__PURE__ */ n("span", { className: i.icon, children: l }) : null,
|
|
56
|
-
_
|
|
57
|
-
] });
|
|
58
|
-
};
|
|
59
|
-
export {
|
|
60
|
-
R as N,
|
|
61
|
-
H as S,
|
|
62
|
-
q as T,
|
|
63
|
-
$ as a
|
|
64
|
-
};
|