@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.
@@ -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
- };