@demokit-ui/demokit 0.1.0 → 0.1.2
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/README.md +3 -0
- package/dist/app/demo1-shell.js +195 -188
- package/dist/app/tweak-panel.d.ts +1 -2
- package/dist/app/tweak-panel.js +20 -4
- package/dist/index.js +811 -479
- package/dist/kit/components/chart/chart/chart.examples.d.ts +24 -0
- package/dist/kit/components/chart/chart/chart.examples.js +422 -0
- package/dist/kit/components/composite/action-bar/action-bar.examples.d.ts +2 -0
- package/dist/kit/components/composite/action-bar/action-bar.examples.js +35 -0
- package/dist/kit/components/composite/action-card/action-card.examples.d.ts +2 -0
- package/dist/kit/components/composite/action-card/action-card.examples.js +34 -0
- package/dist/kit/components/composite/activity-feed/activity-feed.examples.d.ts +2 -0
- package/dist/kit/components/composite/activity-feed/activity-feed.examples.js +44 -0
- package/dist/kit/components/composite/alert-card/alert-card.examples.d.ts +2 -0
- package/dist/kit/components/composite/alert-card/alert-card.examples.js +18 -0
- package/dist/kit/components/composite/approval-flow/approval-flow.examples.d.ts +2 -0
- package/dist/kit/components/composite/approval-flow/approval-flow.examples.js +70 -0
- package/dist/kit/components/composite/auth-shell/auth-shell.examples.d.ts +2 -0
- package/dist/kit/components/composite/auth-shell/auth-shell.examples.js +23 -0
- package/dist/kit/components/composite/board-toolbar/board-toolbar.examples.d.ts +2 -0
- package/dist/kit/components/composite/board-toolbar/board-toolbar.examples.js +32 -0
- package/dist/kit/components/composite/chart-card/chart-card.examples.d.ts +3 -0
- package/dist/kit/components/composite/chart-card/chart-card.examples.js +58 -0
- package/dist/kit/components/composite/chart-toolbar/chart-toolbar.examples.d.ts +2 -0
- package/dist/kit/components/composite/chart-toolbar/chart-toolbar.examples.js +39 -0
- package/dist/kit/components/composite/data-section/data-section.examples.d.ts +3 -0
- package/dist/kit/components/composite/data-section/data-section.examples.js +48 -0
- package/dist/kit/components/composite/description-grid/description-grid.examples.d.ts +2 -0
- package/dist/kit/components/composite/description-grid/description-grid.examples.js +30 -0
- package/dist/kit/components/composite/detail-header/detail-header.examples.d.ts +2 -0
- package/dist/kit/components/composite/detail-header/detail-header.examples.js +37 -0
- package/dist/kit/components/composite/filter-panel/filter-panel.examples.d.ts +2 -0
- package/dist/kit/components/composite/filter-panel/filter-panel.examples.js +63 -0
- package/dist/kit/components/composite/filter-toolbar/filter-toolbar.examples.d.ts +2 -0
- package/dist/kit/components/composite/filter-toolbar/filter-toolbar.examples.js +39 -0
- package/dist/kit/components/composite/forgot-password-form/forgot-password-form.examples.d.ts +2 -0
- package/dist/kit/components/composite/forgot-password-form/forgot-password-form.examples.js +19 -0
- package/dist/kit/components/composite/form-section/form-section.examples.d.ts +2 -0
- package/dist/kit/components/composite/form-section/form-section.examples.js +40 -0
- package/dist/kit/components/composite/kanban-board/kanban-board.examples.d.ts +2 -0
- package/dist/kit/components/composite/kanban-board/kanban-board.examples.js +72 -0
- package/dist/kit/components/composite/login-card/login-card.examples.d.ts +3 -0
- package/dist/kit/components/composite/login-card/login-card.examples.js +30 -0
- package/dist/kit/components/composite/message-list-card/message-list-card.examples.d.ts +2 -0
- package/dist/kit/components/composite/message-list-card/message-list-card.examples.js +56 -0
- package/dist/kit/components/composite/metric-card/metric-card.examples.d.ts +2 -0
- package/dist/kit/components/composite/metric-card/metric-card.examples.js +50 -0
- package/dist/kit/components/composite/milestone-card/milestone-card.examples.d.ts +2 -0
- package/dist/kit/components/composite/milestone-card/milestone-card.examples.js +54 -0
- package/dist/kit/components/composite/oauth-login-buttons/oauth-login-buttons.examples.d.ts +2 -0
- package/dist/kit/components/composite/oauth-login-buttons/oauth-login-buttons.examples.js +24 -0
- package/dist/kit/components/composite/page-header/page-header.examples.d.ts +3 -0
- package/dist/kit/components/composite/page-header/page-header.examples.js +56 -0
- package/dist/kit/components/composite/profile-card/profile-card.examples.d.ts +2 -0
- package/dist/kit/components/composite/profile-card/profile-card.examples.js +45 -0
- package/dist/kit/components/composite/progress-card/progress-card.examples.d.ts +2 -0
- package/dist/kit/components/composite/progress-card/progress-card.examples.js +42 -0
- package/dist/kit/components/composite/project-card/project-card.examples.d.ts +2 -0
- package/dist/kit/components/composite/project-card/project-card.examples.js +48 -0
- package/dist/kit/components/composite/shortcut-card/shortcut-card.examples.d.ts +2 -0
- package/dist/kit/components/composite/shortcut-card/shortcut-card.examples.js +18 -0
- package/dist/kit/components/composite/sprint-summary/sprint-summary.examples.d.ts +2 -0
- package/dist/kit/components/composite/sprint-summary/sprint-summary.examples.js +27 -0
- package/dist/kit/components/composite/state-panel/state-panel.examples.d.ts +2 -0
- package/dist/kit/components/composite/state-panel/state-panel.examples.js +48 -0
- package/dist/kit/components/composite/summary-card/summary-card.examples.d.ts +2 -0
- package/dist/kit/components/composite/summary-card/summary-card.examples.js +32 -0
- package/dist/kit/components/composite/task-card/task-card.examples.d.ts +2 -0
- package/dist/kit/components/composite/task-card/task-card.examples.js +39 -0
- package/dist/kit/components/composite/timeline/timeline.examples.d.ts +2 -0
- package/dist/kit/components/composite/timeline/timeline.examples.js +75 -0
- package/dist/kit/components/composite/todo-card/todo-card.examples.d.ts +2 -0
- package/dist/kit/components/composite/todo-card/todo-card.examples.js +42 -0
- package/dist/kit/components/data-display/avatar/avatar.examples.d.ts +7 -0
- package/dist/kit/components/data-display/avatar/avatar.examples.js +48 -0
- package/dist/kit/components/data-display/avatar-group/avatar-group.examples.d.ts +3 -0
- package/dist/kit/components/data-display/avatar-group/avatar-group.examples.js +35 -0
- package/dist/kit/components/data-display/badge/badge.examples.d.ts +9 -0
- package/dist/kit/components/data-display/badge/badge.examples.js +57 -0
- package/dist/kit/components/data-display/card/card.examples.d.ts +16 -0
- package/dist/kit/components/data-display/card/card.examples.js +72 -0
- package/dist/kit/components/data-display/data-grid/data-grid.examples.d.ts +2 -0
- package/dist/kit/components/data-display/data-grid/data-grid.examples.js +92 -0
- package/dist/kit/components/data-display/kbd/kbd.examples.d.ts +3 -0
- package/dist/kit/components/data-display/kbd/kbd.examples.js +43 -0
- package/dist/kit/components/data-display/money-amount/money-amount.examples.d.ts +1 -0
- package/dist/kit/components/data-display/money-amount/money-amount.examples.js +26 -0
- package/dist/kit/components/data-display/progress/progress.examples.d.ts +3 -0
- package/dist/kit/components/data-display/progress/progress.examples.js +45 -0
- package/dist/kit/components/data-display/skeleton/skeleton.examples.d.ts +3 -0
- package/dist/kit/components/data-display/skeleton/skeleton.examples.js +37 -0
- package/dist/kit/components/data-display/sliding-number/sliding-number.examples.d.ts +3 -0
- package/dist/kit/components/data-display/sliding-number/sliding-number.examples.js +42 -0
- package/dist/kit/components/data-display/stepper/stepper.examples.d.ts +2 -0
- package/dist/kit/components/data-display/stepper/stepper.examples.js +28 -0
- package/dist/kit/components/data-display/table/table.examples.d.ts +4 -0
- package/dist/kit/components/data-display/table/table.examples.js +78 -0
- package/dist/kit/components/decorative/aurora-background/aurora-background.examples.d.ts +2 -0
- package/dist/kit/components/decorative/aurora-background/aurora-background.examples.js +22 -0
- package/dist/kit/components/decorative/grid-background/grid-background.examples.d.ts +4 -0
- package/dist/kit/components/decorative/grid-background/grid-background.examples.js +42 -0
- package/dist/kit/components/decorative/shimmering-text/shimmering-text.examples.d.ts +4 -0
- package/dist/kit/components/decorative/shimmering-text/shimmering-text.examples.js +54 -0
- package/dist/kit/components/decorative/text-reveal/text-reveal.examples.d.ts +2 -0
- package/dist/kit/components/decorative/text-reveal/text-reveal.examples.js +46 -0
- package/dist/kit/components/feedback/alert/alert.examples.d.ts +2 -0
- package/dist/kit/components/feedback/alert/alert.examples.js +37 -0
- package/dist/kit/components/feedback/alert-dialog/alert-dialog.examples.d.ts +2 -0
- package/dist/kit/components/feedback/alert-dialog/alert-dialog.examples.js +28 -0
- package/dist/kit/components/feedback/context-menu/context-menu.examples.d.ts +2 -0
- package/dist/kit/components/feedback/context-menu/context-menu.examples.js +33 -0
- package/dist/kit/components/feedback/dialog/dialog.examples.d.ts +2 -0
- package/dist/kit/components/feedback/dialog/dialog.examples.js +51 -0
- package/dist/kit/components/feedback/drawer/drawer.examples.d.ts +2 -0
- package/dist/kit/components/feedback/drawer/drawer.examples.js +29 -0
- package/dist/kit/components/feedback/dropdown-menu/dropdown-menu.examples.d.ts +3 -0
- package/dist/kit/components/feedback/dropdown-menu/dropdown-menu.examples.js +54 -0
- package/dist/kit/components/feedback/hover-card/hover-card.examples.d.ts +2 -0
- package/dist/kit/components/feedback/hover-card/hover-card.examples.js +27 -0
- package/dist/kit/components/feedback/popover/popover.examples.d.ts +2 -0
- package/dist/kit/components/feedback/popover/popover.examples.js +42 -0
- package/dist/kit/components/feedback/sheet/sheet.examples.d.ts +2 -0
- package/dist/kit/components/feedback/sheet/sheet.examples.js +39 -0
- package/dist/kit/components/feedback/sonner/sonner.examples.d.ts +3 -0
- package/dist/kit/components/feedback/sonner/sonner.examples.js +49 -0
- package/dist/kit/components/feedback/title-help/title-help.examples.d.ts +1 -0
- package/dist/kit/components/feedback/title-help/title-help.examples.js +25 -0
- package/dist/kit/components/feedback/tooltip/tooltip.examples.d.ts +3 -0
- package/dist/kit/components/feedback/tooltip/tooltip.examples.js +44 -0
- package/dist/kit/components/form/button/button.examples.d.ts +13 -0
- package/dist/kit/components/form/button/button.examples.js +84 -0
- package/dist/kit/components/form/calendar/calendar.examples.d.ts +2 -0
- package/dist/kit/components/form/calendar/calendar.examples.js +23 -0
- package/dist/kit/components/form/checkbox/checkbox.examples.d.ts +4 -0
- package/dist/kit/components/form/checkbox/checkbox.examples.js +72 -0
- package/dist/kit/components/form/command/command.examples.d.ts +3 -0
- package/dist/kit/components/form/command/command.examples.js +52 -0
- package/dist/kit/components/form/datefield/datefield.examples.d.ts +2 -0
- package/dist/kit/components/form/datefield/datefield.examples.js +19 -0
- package/dist/kit/components/form/file-upload/file-upload.examples.d.ts +1 -0
- package/dist/kit/components/form/file-upload/file-upload.examples.js +18 -0
- package/dist/kit/components/form/form/form.examples.d.ts +2 -0
- package/dist/kit/components/form/form/form.examples.js +77 -0
- package/dist/kit/components/form/input/input.examples.d.ts +5 -0
- package/dist/kit/components/form/input/input.examples.js +64 -0
- package/dist/kit/components/form/label/label.examples.d.ts +4 -0
- package/dist/kit/components/form/label/label.examples.js +49 -0
- package/dist/kit/components/form/radio-group/radio-group.examples.d.ts +3 -0
- package/dist/kit/components/form/radio-group/radio-group.examples.js +40 -0
- package/dist/kit/components/form/select/select.examples.d.ts +3 -0
- package/dist/kit/components/form/select/select.examples.js +58 -0
- package/dist/kit/components/form/slider/slider.examples.d.ts +3 -0
- package/dist/kit/components/form/slider/slider.examples.js +46 -0
- package/dist/kit/components/form/switch/switch.examples.d.ts +3 -0
- package/dist/kit/components/form/switch/switch.examples.js +37 -0
- package/dist/kit/components/form/textarea/textarea.examples.d.ts +3 -0
- package/dist/kit/components/form/textarea/textarea.examples.js +49 -0
- package/dist/kit/components/form/toggle/toggle.examples.d.ts +3 -0
- package/dist/kit/components/form/toggle/toggle.examples.js +33 -0
- package/dist/kit/components/form/toggle-group/toggle-group.examples.d.ts +4 -0
- package/dist/kit/components/form/toggle-group/toggle-group.examples.js +46 -0
- package/dist/kit/components/index.d.ts +91 -0
- package/dist/kit/components/layout/accordion/accordion.examples.d.ts +2 -0
- package/dist/kit/components/layout/accordion/accordion.examples.js +34 -0
- package/dist/kit/components/layout/aspect-ratio/aspect-ratio.examples.d.ts +3 -0
- package/dist/kit/components/layout/aspect-ratio/aspect-ratio.examples.js +29 -0
- package/dist/kit/components/layout/collapsible/collapsible.examples.d.ts +2 -0
- package/dist/kit/components/layout/collapsible/collapsible.examples.js +28 -0
- package/dist/kit/components/layout/resizable/resizable.examples.d.ts +2 -0
- package/dist/kit/components/layout/resizable/resizable.examples.js +26 -0
- package/dist/kit/components/layout/scroll-area/scroll-area.examples.d.ts +2 -0
- package/dist/kit/components/layout/scroll-area/scroll-area.examples.js +16 -0
- package/dist/kit/components/layout/separator/separator.examples.d.ts +3 -0
- package/dist/kit/components/layout/separator/separator.examples.js +35 -0
- package/dist/kit/components/navigation/accordion-menu/accordion-menu.examples.d.ts +2 -0
- package/dist/kit/components/navigation/accordion-menu/accordion-menu.examples.js +36 -0
- package/dist/kit/components/navigation/breadcrumb/breadcrumb.examples.d.ts +3 -0
- package/dist/kit/components/navigation/breadcrumb/breadcrumb.examples.js +39 -0
- package/dist/kit/components/navigation/menubar/menubar.examples.d.ts +2 -0
- package/dist/kit/components/navigation/menubar/menubar.examples.js +54 -0
- package/dist/kit/components/navigation/navigation-menu/navigation-menu.examples.d.ts +2 -0
- package/dist/kit/components/navigation/navigation-menu/navigation-menu.examples.js +31 -0
- package/dist/kit/components/navigation/pagination/pagination.examples.d.ts +2 -0
- package/dist/kit/components/navigation/pagination/pagination.examples.js +42 -0
- package/dist/kit/components/navigation/scrollspy/scrollspy.examples.d.ts +2 -0
- package/dist/kit/components/navigation/scrollspy/scrollspy.examples.js +68 -0
- package/dist/kit/components/navigation/tabs/tabs.examples.d.ts +5 -0
- package/dist/kit/components/navigation/tabs/tabs.examples.js +43 -0
- package/dist/styles.css +29 -12
- package/package.json +7 -2
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { LoginCard as r, MfaVerifyForm as n, TenantSelector as t, AuthMethodTabs as s, SsoLoginPanel as a, QrCodeLoginPanel as d, SmsLoginForm as l, PasswordLoginForm as m } from "./login-card.js";
|
|
3
|
+
function c() {
|
|
4
|
+
return /* @__PURE__ */ e(r, { title: "登录 DemoKit", description: "多登录方式组合示例", footer: "支持账号、短信、扫码和 SSO。", children: /* @__PURE__ */ e(
|
|
5
|
+
s,
|
|
6
|
+
{
|
|
7
|
+
password: /* @__PURE__ */ e(m, { onSubmit: (o) => o.preventDefault() }),
|
|
8
|
+
sms: /* @__PURE__ */ e(l, { onSubmit: (o) => o.preventDefault() }),
|
|
9
|
+
qrcode: /* @__PURE__ */ e(d, {}),
|
|
10
|
+
sso: /* @__PURE__ */ e(a, {})
|
|
11
|
+
}
|
|
12
|
+
) });
|
|
13
|
+
}
|
|
14
|
+
function u() {
|
|
15
|
+
return /* @__PURE__ */ i("div", { className: "grid gap-4 md:grid-cols-2", children: [
|
|
16
|
+
/* @__PURE__ */ e(r, { title: "二次验证", children: /* @__PURE__ */ e(n, { onSubmit: (o) => o.preventDefault() }) }),
|
|
17
|
+
/* @__PURE__ */ e(r, { title: "选择组织", children: /* @__PURE__ */ e(t, {}) })
|
|
18
|
+
] });
|
|
19
|
+
}
|
|
20
|
+
function h() {
|
|
21
|
+
return /* @__PURE__ */ i("div", { className: "space-y-5", children: [
|
|
22
|
+
/* @__PURE__ */ e("div", { className: "max-w-md", children: /* @__PURE__ */ e(c, {}) }),
|
|
23
|
+
/* @__PURE__ */ e(u, {})
|
|
24
|
+
] });
|
|
25
|
+
}
|
|
26
|
+
export {
|
|
27
|
+
u as LoginCardExtraFlows,
|
|
28
|
+
c as LoginCardMethods,
|
|
29
|
+
h as LoginCardShowcase
|
|
30
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { MessageListCard as e } from "./message-list-card.js";
|
|
3
|
+
const i = [
|
|
4
|
+
{
|
|
5
|
+
id: 1,
|
|
6
|
+
type: "类型",
|
|
7
|
+
tone: "primary",
|
|
8
|
+
title: "涨了,本月起发放!一图看懂养老金怎么调",
|
|
9
|
+
date: "11-12"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
id: 2,
|
|
13
|
+
type: "类型",
|
|
14
|
+
tone: "warning",
|
|
15
|
+
title: "七、八十年代风靡全国的“的确良”是什么面料,为何突然消失了?",
|
|
16
|
+
date: "11-12"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
id: 3,
|
|
20
|
+
type: "类型",
|
|
21
|
+
tone: "success",
|
|
22
|
+
title: "进北大每人交10800元,研学还是打劫?",
|
|
23
|
+
date: "11-12"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
id: 4,
|
|
27
|
+
type: "类型",
|
|
28
|
+
tone: "primary",
|
|
29
|
+
title: "在以学铸魂上下功夫见实效(专题深思)",
|
|
30
|
+
date: "11-12"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
id: 5,
|
|
34
|
+
type: "类型",
|
|
35
|
+
tone: "info",
|
|
36
|
+
title: "福建文化遗产,你知道多少?",
|
|
37
|
+
date: "11-12"
|
|
38
|
+
}
|
|
39
|
+
];
|
|
40
|
+
function s() {
|
|
41
|
+
return /* @__PURE__ */ t(
|
|
42
|
+
e,
|
|
43
|
+
{
|
|
44
|
+
className: "w-[459px] max-w-full",
|
|
45
|
+
title: "消息中心",
|
|
46
|
+
items: i
|
|
47
|
+
}
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
function n() {
|
|
51
|
+
return /* @__PURE__ */ t(s, {});
|
|
52
|
+
}
|
|
53
|
+
export {
|
|
54
|
+
s as MessageListCardBasic,
|
|
55
|
+
n as MessageListCardShowcase
|
|
56
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { CircleDollarSign as i, FolderKanban as a, Clock3 as o, ShieldAlert as n } from "lucide-react";
|
|
3
|
+
import { MetricCard as l } from "./metric-card.js";
|
|
4
|
+
function d() {
|
|
5
|
+
return /* @__PURE__ */ r("div", { className: "grid gap-4 md:grid-cols-2 xl:grid-cols-4", children: [
|
|
6
|
+
/* @__PURE__ */ e(
|
|
7
|
+
l,
|
|
8
|
+
{
|
|
9
|
+
label: "本月收入",
|
|
10
|
+
value: "¥ 2.48M",
|
|
11
|
+
icon: i,
|
|
12
|
+
trend: { value: "+12.4%", direction: "up", label: "较上月" }
|
|
13
|
+
}
|
|
14
|
+
),
|
|
15
|
+
/* @__PURE__ */ e(
|
|
16
|
+
l,
|
|
17
|
+
{
|
|
18
|
+
label: "活跃项目",
|
|
19
|
+
value: "38",
|
|
20
|
+
icon: a,
|
|
21
|
+
trend: { value: "+6", direction: "up", label: "本周新增" }
|
|
22
|
+
}
|
|
23
|
+
),
|
|
24
|
+
/* @__PURE__ */ e(
|
|
25
|
+
l,
|
|
26
|
+
{
|
|
27
|
+
label: "超时任务",
|
|
28
|
+
value: "7",
|
|
29
|
+
icon: o,
|
|
30
|
+
trend: { value: "-3", direction: "down", label: "较昨日" }
|
|
31
|
+
}
|
|
32
|
+
),
|
|
33
|
+
/* @__PURE__ */ e(
|
|
34
|
+
l,
|
|
35
|
+
{
|
|
36
|
+
label: "高风险项",
|
|
37
|
+
value: "2",
|
|
38
|
+
icon: n,
|
|
39
|
+
trend: { value: "持平", direction: "flat", label: "待复核" }
|
|
40
|
+
}
|
|
41
|
+
)
|
|
42
|
+
] });
|
|
43
|
+
}
|
|
44
|
+
function b() {
|
|
45
|
+
return /* @__PURE__ */ e(d, {});
|
|
46
|
+
}
|
|
47
|
+
export {
|
|
48
|
+
d as MetricCardGrid,
|
|
49
|
+
b as MetricCardShowcase
|
|
50
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { jsxs as r, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { MilestoneCard as e } from "./milestone-card.js";
|
|
3
|
+
function s() {
|
|
4
|
+
return /* @__PURE__ */ r("div", { className: "grid gap-4 md:grid-cols-2", children: [
|
|
5
|
+
/* @__PURE__ */ t(
|
|
6
|
+
e,
|
|
7
|
+
{
|
|
8
|
+
title: "需求冻结",
|
|
9
|
+
description: "确认项目范围、数据源和验收标准。",
|
|
10
|
+
date: "04-02",
|
|
11
|
+
status: "done",
|
|
12
|
+
progress: 100,
|
|
13
|
+
owner: "林青"
|
|
14
|
+
}
|
|
15
|
+
),
|
|
16
|
+
/* @__PURE__ */ t(
|
|
17
|
+
e,
|
|
18
|
+
{
|
|
19
|
+
title: "规则联调",
|
|
20
|
+
description: "主数据质量规则接入调度平台。",
|
|
21
|
+
date: "04-28",
|
|
22
|
+
status: "current",
|
|
23
|
+
progress: 68,
|
|
24
|
+
owner: "周然"
|
|
25
|
+
}
|
|
26
|
+
),
|
|
27
|
+
/* @__PURE__ */ t(
|
|
28
|
+
e,
|
|
29
|
+
{
|
|
30
|
+
title: "业务验收",
|
|
31
|
+
description: "业务部门完成抽样验收和问题确认。",
|
|
32
|
+
date: "05-12",
|
|
33
|
+
status: "pending"
|
|
34
|
+
}
|
|
35
|
+
),
|
|
36
|
+
/* @__PURE__ */ t(
|
|
37
|
+
e,
|
|
38
|
+
{
|
|
39
|
+
title: "生产发布",
|
|
40
|
+
description: "第三方接口依赖仍有延期风险。",
|
|
41
|
+
date: "06-01",
|
|
42
|
+
status: "risk",
|
|
43
|
+
progress: 24
|
|
44
|
+
}
|
|
45
|
+
)
|
|
46
|
+
] });
|
|
47
|
+
}
|
|
48
|
+
function n() {
|
|
49
|
+
return /* @__PURE__ */ t(s, {});
|
|
50
|
+
}
|
|
51
|
+
export {
|
|
52
|
+
s as MilestoneCardList,
|
|
53
|
+
n as MilestoneCardShowcase
|
|
54
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { Building2 as o, Github as s, Mail as t } from "lucide-react";
|
|
3
|
+
import { OAuthLoginButtons as a } from "./oauth-login-buttons.js";
|
|
4
|
+
function e() {
|
|
5
|
+
return /* @__PURE__ */ i(
|
|
6
|
+
a,
|
|
7
|
+
{
|
|
8
|
+
columns: 2,
|
|
9
|
+
providers: [
|
|
10
|
+
{ id: "sso", label: "企业 SSO", icon: /* @__PURE__ */ i(o, { className: "size-4" }) },
|
|
11
|
+
{ id: "github", label: "GitHub", icon: /* @__PURE__ */ i(s, { className: "size-4" }) },
|
|
12
|
+
{ id: "email", label: "邮箱链接", icon: /* @__PURE__ */ i(t, { className: "size-4" }) },
|
|
13
|
+
{ id: "wechat", label: "企业微信" }
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
);
|
|
17
|
+
}
|
|
18
|
+
function c() {
|
|
19
|
+
return /* @__PURE__ */ i("div", { className: "max-w-md", children: /* @__PURE__ */ i(e, {}) });
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
e as OauthLoginButtonsBasic,
|
|
23
|
+
c as OauthLoginButtonsShowcase
|
|
24
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { jsx as r, jsxs as e, Fragment as c } from "react/jsx-runtime";
|
|
2
|
+
import { Download as t, Plus as d } from "lucide-react";
|
|
3
|
+
import { PageHeader as n } from "./page-header.js";
|
|
4
|
+
import { Button as a } from "../../form/button/button.js";
|
|
5
|
+
import { Badge as o } from "../../data-display/badge/badge.js";
|
|
6
|
+
import { Breadcrumb as m, BreadcrumbList as l, BreadcrumbItem as i, BreadcrumbLink as s, BreadcrumbSeparator as h, BreadcrumbPage as u } from "../../navigation/breadcrumb/breadcrumb.js";
|
|
7
|
+
function p() {
|
|
8
|
+
return /* @__PURE__ */ r(
|
|
9
|
+
n,
|
|
10
|
+
{
|
|
11
|
+
title: "项目总览",
|
|
12
|
+
description: "集中查看项目进度、风险和关键里程碑。",
|
|
13
|
+
actions: /* @__PURE__ */ e(c, { children: [
|
|
14
|
+
/* @__PURE__ */ e(a, { variant: "outline", children: [
|
|
15
|
+
/* @__PURE__ */ r(t, {}),
|
|
16
|
+
"导出"
|
|
17
|
+
] }),
|
|
18
|
+
/* @__PURE__ */ e(a, { children: [
|
|
19
|
+
/* @__PURE__ */ r(d, {}),
|
|
20
|
+
"新建项目"
|
|
21
|
+
] })
|
|
22
|
+
] })
|
|
23
|
+
}
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
function f() {
|
|
27
|
+
return /* @__PURE__ */ r(
|
|
28
|
+
n,
|
|
29
|
+
{
|
|
30
|
+
eyebrow: "Project workspace",
|
|
31
|
+
title: "华东数据治理专项",
|
|
32
|
+
description: "跨部门协作项目,覆盖主数据、资产盘点和数据质量闭环。",
|
|
33
|
+
breadcrumbs: /* @__PURE__ */ r(m, { children: /* @__PURE__ */ e(l, { children: [
|
|
34
|
+
/* @__PURE__ */ r(i, { children: /* @__PURE__ */ r(s, { href: "#", children: "工作台" }) }),
|
|
35
|
+
/* @__PURE__ */ r(h, {}),
|
|
36
|
+
/* @__PURE__ */ r(i, { children: /* @__PURE__ */ r(u, { children: "项目详情" }) })
|
|
37
|
+
] }) }),
|
|
38
|
+
meta: /* @__PURE__ */ e(c, { children: [
|
|
39
|
+
/* @__PURE__ */ r(o, { variant: "success", appearance: "light", children: "进行中" }),
|
|
40
|
+
/* @__PURE__ */ r("span", { children: "负责人:林青" }),
|
|
41
|
+
/* @__PURE__ */ r("span", { children: "更新于 10:32" })
|
|
42
|
+
] })
|
|
43
|
+
}
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
function j() {
|
|
47
|
+
return /* @__PURE__ */ e("div", { className: "space-y-8", children: [
|
|
48
|
+
/* @__PURE__ */ r(p, {}),
|
|
49
|
+
/* @__PURE__ */ r(f, {})
|
|
50
|
+
] });
|
|
51
|
+
}
|
|
52
|
+
export {
|
|
53
|
+
p as PageHeaderBasic,
|
|
54
|
+
j as PageHeaderShowcase,
|
|
55
|
+
f as PageHeaderWithMeta
|
|
56
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { jsxs as i, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { Mail as r, Settings as t } from "lucide-react";
|
|
3
|
+
import { ProfileCard as e } from "./profile-card.js";
|
|
4
|
+
import { Button as l } from "../../form/button/button.js";
|
|
5
|
+
function o() {
|
|
6
|
+
return /* @__PURE__ */ i("div", { className: "grid gap-4 md:grid-cols-2", children: [
|
|
7
|
+
/* @__PURE__ */ a(
|
|
8
|
+
e,
|
|
9
|
+
{
|
|
10
|
+
name: "林青",
|
|
11
|
+
description: "项目负责人 / 数据治理 PM",
|
|
12
|
+
fallback: "LQ",
|
|
13
|
+
meta: "最近活跃:10:32",
|
|
14
|
+
stats: [
|
|
15
|
+
{ label: "项目", value: 8 },
|
|
16
|
+
{ label: "待办", value: 14 },
|
|
17
|
+
{ label: "完成率", value: "92%" }
|
|
18
|
+
],
|
|
19
|
+
actions: /* @__PURE__ */ a(l, { variant: "outline", size: "icon", children: /* @__PURE__ */ a(r, {}) })
|
|
20
|
+
}
|
|
21
|
+
),
|
|
22
|
+
/* @__PURE__ */ a(
|
|
23
|
+
e,
|
|
24
|
+
{
|
|
25
|
+
name: "数据治理小组",
|
|
26
|
+
description: "跨部门专项协作组织",
|
|
27
|
+
fallback: "DG",
|
|
28
|
+
meta: "12 名成员",
|
|
29
|
+
stats: [
|
|
30
|
+
{ label: "里程碑", value: 6 },
|
|
31
|
+
{ label: "风险", value: 2 },
|
|
32
|
+
{ label: "文档", value: 38 }
|
|
33
|
+
],
|
|
34
|
+
actions: /* @__PURE__ */ a(l, { variant: "outline", size: "icon", children: /* @__PURE__ */ a(t, {}) })
|
|
35
|
+
}
|
|
36
|
+
)
|
|
37
|
+
] });
|
|
38
|
+
}
|
|
39
|
+
function u() {
|
|
40
|
+
return /* @__PURE__ */ a(o, {});
|
|
41
|
+
}
|
|
42
|
+
export {
|
|
43
|
+
o as ProfileCardBasic,
|
|
44
|
+
u as ProfileCardShowcase
|
|
45
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { ProgressCard as l } from "./progress-card.js";
|
|
3
|
+
function r() {
|
|
4
|
+
return /* @__PURE__ */ a("div", { className: "grid gap-4 md:grid-cols-2", children: [
|
|
5
|
+
/* @__PURE__ */ e(
|
|
6
|
+
l,
|
|
7
|
+
{
|
|
8
|
+
title: "数据治理专项",
|
|
9
|
+
description: "整体交付进度",
|
|
10
|
+
value: 68,
|
|
11
|
+
steps: [
|
|
12
|
+
{ label: "需求", value: "已完成" },
|
|
13
|
+
{ label: "开发", value: "68%" },
|
|
14
|
+
{ label: "验收", value: "待开始" }
|
|
15
|
+
],
|
|
16
|
+
footer: "预计 6 月 30 日完成"
|
|
17
|
+
}
|
|
18
|
+
),
|
|
19
|
+
/* @__PURE__ */ e(
|
|
20
|
+
l,
|
|
21
|
+
{
|
|
22
|
+
title: "本周迭代",
|
|
23
|
+
description: "任务完成率",
|
|
24
|
+
value: 17,
|
|
25
|
+
max: 24,
|
|
26
|
+
label: "17 / 24",
|
|
27
|
+
steps: [
|
|
28
|
+
{ label: "完成", value: 17 },
|
|
29
|
+
{ label: "进行中", value: 5 },
|
|
30
|
+
{ label: "阻塞", value: 2 }
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
)
|
|
34
|
+
] });
|
|
35
|
+
}
|
|
36
|
+
function t() {
|
|
37
|
+
return /* @__PURE__ */ e(r, {});
|
|
38
|
+
}
|
|
39
|
+
export {
|
|
40
|
+
r as ProgressCardBasic,
|
|
41
|
+
t as ProgressCardShowcase
|
|
42
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { MoreHorizontal as a } from "lucide-react";
|
|
3
|
+
import { ProjectCard as r } from "./project-card.js";
|
|
4
|
+
import { Button as o } from "../../form/button/button.js";
|
|
5
|
+
function l() {
|
|
6
|
+
return /* @__PURE__ */ t("div", { className: "grid gap-4 md:grid-cols-2", children: [
|
|
7
|
+
/* @__PURE__ */ e(
|
|
8
|
+
r,
|
|
9
|
+
{
|
|
10
|
+
title: "数据治理专项",
|
|
11
|
+
description: "主数据、指标口径和质量规则的跨部门治理项目。",
|
|
12
|
+
status: "进行中",
|
|
13
|
+
owner: "林青",
|
|
14
|
+
dateRange: "04-01 至 06-30",
|
|
15
|
+
progress: 68,
|
|
16
|
+
meta: [
|
|
17
|
+
{ label: "任务", value: 42 },
|
|
18
|
+
{ label: "风险", value: 2 },
|
|
19
|
+
{ label: "预算", value: "86%" }
|
|
20
|
+
],
|
|
21
|
+
actions: /* @__PURE__ */ e(o, { variant: "ghost", size: "icon", children: /* @__PURE__ */ e(a, {}) })
|
|
22
|
+
}
|
|
23
|
+
),
|
|
24
|
+
/* @__PURE__ */ e(
|
|
25
|
+
r,
|
|
26
|
+
{
|
|
27
|
+
title: "审批平台升级",
|
|
28
|
+
description: "统一审批流程、通知和审计记录。",
|
|
29
|
+
status: "待评审",
|
|
30
|
+
owner: "周然",
|
|
31
|
+
dateRange: "04-18 至 05-20",
|
|
32
|
+
progress: 35,
|
|
33
|
+
meta: [
|
|
34
|
+
{ label: "任务", value: 18 },
|
|
35
|
+
{ label: "阻塞", value: 1 },
|
|
36
|
+
{ label: "成员", value: 6 }
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
)
|
|
40
|
+
] });
|
|
41
|
+
}
|
|
42
|
+
function d() {
|
|
43
|
+
return /* @__PURE__ */ e(l, {});
|
|
44
|
+
}
|
|
45
|
+
export {
|
|
46
|
+
l as ProjectCardGrid,
|
|
47
|
+
d as ProjectCardShowcase
|
|
48
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsxs as r, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { FilePlus2 as o, FolderInput as e, UsersRound as n, Settings2 as c } from "lucide-react";
|
|
3
|
+
import { ShortcutCard as i } from "./shortcut-card.js";
|
|
4
|
+
function d() {
|
|
5
|
+
return /* @__PURE__ */ r("div", { className: "grid gap-4 md:grid-cols-2", children: [
|
|
6
|
+
/* @__PURE__ */ t(i, { icon: o, title: "新建项目", description: "创建项目空间、配置成员和里程碑。", badge: "常用" }),
|
|
7
|
+
/* @__PURE__ */ t(i, { icon: e, title: "批量导入", description: "导入资产、客户、任务等结构化数据。" }),
|
|
8
|
+
/* @__PURE__ */ t(i, { icon: n, title: "邀请成员", description: "按角色快速邀请协作者加入空间。" }),
|
|
9
|
+
/* @__PURE__ */ t(i, { icon: c, title: "系统配置", description: "进入参数、字典、权限和通知配置。", meta: "管理员可见" })
|
|
10
|
+
] });
|
|
11
|
+
}
|
|
12
|
+
function u() {
|
|
13
|
+
return /* @__PURE__ */ t(d, {});
|
|
14
|
+
}
|
|
15
|
+
export {
|
|
16
|
+
d as ShortcutCardGrid,
|
|
17
|
+
u as ShortcutCardShowcase
|
|
18
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { SprintSummary as r } from "./sprint-summary.js";
|
|
3
|
+
import { Button as t } from "../../form/button/button.js";
|
|
4
|
+
function i() {
|
|
5
|
+
return /* @__PURE__ */ e(
|
|
6
|
+
r,
|
|
7
|
+
{
|
|
8
|
+
title: "第 8 迭代",
|
|
9
|
+
description: "04-22 至 05-06,聚焦质量规则、审批流和看板筛选。",
|
|
10
|
+
progress: 71,
|
|
11
|
+
actions: /* @__PURE__ */ e(t, { variant: "outline", size: "sm", children: "查看燃尽图" }),
|
|
12
|
+
items: [
|
|
13
|
+
{ label: "总任务", value: 34 },
|
|
14
|
+
{ label: "已完成", value: 24, tone: "success" },
|
|
15
|
+
{ label: "进行中", value: 8, tone: "primary" },
|
|
16
|
+
{ label: "阻塞", value: 2, tone: "destructive" }
|
|
17
|
+
]
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
function l() {
|
|
22
|
+
return /* @__PURE__ */ e(i, {});
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
i as SprintSummaryBasic,
|
|
26
|
+
l as SprintSummaryShowcase
|
|
27
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { jsxs as r, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { RefreshCw as n, Settings as a } from "lucide-react";
|
|
3
|
+
import { StatePanel as t } from "./state-panel.js";
|
|
4
|
+
import { Button as e } from "../../form/button/button.js";
|
|
5
|
+
function o() {
|
|
6
|
+
return /* @__PURE__ */ r("div", { className: "grid gap-4 md:grid-cols-2", children: [
|
|
7
|
+
/* @__PURE__ */ i(
|
|
8
|
+
t,
|
|
9
|
+
{
|
|
10
|
+
variant: "empty",
|
|
11
|
+
title: "暂无项目",
|
|
12
|
+
description: "创建第一个项目后,项目进度和风险会显示在这里。",
|
|
13
|
+
action: /* @__PURE__ */ i(e, { size: "sm", children: "新建项目" })
|
|
14
|
+
}
|
|
15
|
+
),
|
|
16
|
+
/* @__PURE__ */ i(t, { variant: "loading" }),
|
|
17
|
+
/* @__PURE__ */ i(
|
|
18
|
+
t,
|
|
19
|
+
{
|
|
20
|
+
variant: "error",
|
|
21
|
+
description: "接口请求超时,请刷新后重试。",
|
|
22
|
+
action: /* @__PURE__ */ r(e, { size: "sm", variant: "outline", children: [
|
|
23
|
+
/* @__PURE__ */ i(n, {}),
|
|
24
|
+
"重试"
|
|
25
|
+
] })
|
|
26
|
+
}
|
|
27
|
+
),
|
|
28
|
+
/* @__PURE__ */ i(
|
|
29
|
+
t,
|
|
30
|
+
{
|
|
31
|
+
variant: "success",
|
|
32
|
+
title: "配置已完成",
|
|
33
|
+
description: "通知规则已启用,后续状态变更会自动推送。",
|
|
34
|
+
action: /* @__PURE__ */ r(e, { size: "sm", variant: "outline", children: [
|
|
35
|
+
/* @__PURE__ */ i(a, {}),
|
|
36
|
+
"查看配置"
|
|
37
|
+
] })
|
|
38
|
+
}
|
|
39
|
+
)
|
|
40
|
+
] });
|
|
41
|
+
}
|
|
42
|
+
function d() {
|
|
43
|
+
return /* @__PURE__ */ i(o, {});
|
|
44
|
+
}
|
|
45
|
+
export {
|
|
46
|
+
o as StatePanelGrid,
|
|
47
|
+
d as StatePanelShowcase
|
|
48
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsx as r, jsxs as a } from "react/jsx-runtime";
|
|
2
|
+
import { Edit3 as t } from "lucide-react";
|
|
3
|
+
import { SummaryCard as e } from "./summary-card.js";
|
|
4
|
+
import { Button as i } from "../../form/button/button.js";
|
|
5
|
+
function l() {
|
|
6
|
+
return /* @__PURE__ */ r(
|
|
7
|
+
e,
|
|
8
|
+
{
|
|
9
|
+
title: "华东数据治理专项",
|
|
10
|
+
description: "面向集团主数据、指标体系和质量规则的专项治理项目。",
|
|
11
|
+
status: "进行中",
|
|
12
|
+
actions: /* @__PURE__ */ a(i, { variant: "outline", size: "sm", children: [
|
|
13
|
+
/* @__PURE__ */ r(t, {}),
|
|
14
|
+
"编辑"
|
|
15
|
+
] }),
|
|
16
|
+
fields: [
|
|
17
|
+
{ label: "负责人", value: "林青" },
|
|
18
|
+
{ label: "进度", value: "68%" },
|
|
19
|
+
{ label: "预算", value: "¥860,000" },
|
|
20
|
+
{ label: "风险", value: "中" }
|
|
21
|
+
],
|
|
22
|
+
tags: ["数据治理", "跨部门", "Q2 重点"]
|
|
23
|
+
}
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
function n() {
|
|
27
|
+
return /* @__PURE__ */ r(l, {});
|
|
28
|
+
}
|
|
29
|
+
export {
|
|
30
|
+
l as SummaryCardBasic,
|
|
31
|
+
n as SummaryCardShowcase
|
|
32
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { jsxs as i, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { MoreHorizontal as s } from "lucide-react";
|
|
3
|
+
import { TaskCard as r } from "./task-card.js";
|
|
4
|
+
import { Button as e } from "../../form/button/button.js";
|
|
5
|
+
function o() {
|
|
6
|
+
return /* @__PURE__ */ i("div", { className: "space-y-3", children: [
|
|
7
|
+
/* @__PURE__ */ t(
|
|
8
|
+
r,
|
|
9
|
+
{
|
|
10
|
+
title: "确认指标口径",
|
|
11
|
+
description: "与财务和运营确认收入、成本、毛利口径。",
|
|
12
|
+
status: "进行中",
|
|
13
|
+
priority: "P1",
|
|
14
|
+
due: "今天 18:00",
|
|
15
|
+
assignee: "林青",
|
|
16
|
+
tags: ["指标", "财务"],
|
|
17
|
+
actions: /* @__PURE__ */ t(e, { variant: "ghost", size: "icon", children: /* @__PURE__ */ t(s, {}) })
|
|
18
|
+
}
|
|
19
|
+
),
|
|
20
|
+
/* @__PURE__ */ t(
|
|
21
|
+
r,
|
|
22
|
+
{
|
|
23
|
+
checked: !0,
|
|
24
|
+
title: "整理导入模板",
|
|
25
|
+
description: "项目、任务、资产三类模板已完成。",
|
|
26
|
+
status: "已完成",
|
|
27
|
+
due: "昨天",
|
|
28
|
+
assignee: "王砚"
|
|
29
|
+
}
|
|
30
|
+
)
|
|
31
|
+
] });
|
|
32
|
+
}
|
|
33
|
+
function u() {
|
|
34
|
+
return /* @__PURE__ */ t(o, {});
|
|
35
|
+
}
|
|
36
|
+
export {
|
|
37
|
+
o as TaskCardList,
|
|
38
|
+
u as TaskCardShowcase
|
|
39
|
+
};
|