@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.
Files changed (190) hide show
  1. package/README.md +3 -0
  2. package/dist/app/demo1-shell.js +195 -188
  3. package/dist/app/tweak-panel.d.ts +1 -2
  4. package/dist/app/tweak-panel.js +20 -4
  5. package/dist/index.js +811 -479
  6. package/dist/kit/components/chart/chart/chart.examples.d.ts +24 -0
  7. package/dist/kit/components/chart/chart/chart.examples.js +422 -0
  8. package/dist/kit/components/composite/action-bar/action-bar.examples.d.ts +2 -0
  9. package/dist/kit/components/composite/action-bar/action-bar.examples.js +35 -0
  10. package/dist/kit/components/composite/action-card/action-card.examples.d.ts +2 -0
  11. package/dist/kit/components/composite/action-card/action-card.examples.js +34 -0
  12. package/dist/kit/components/composite/activity-feed/activity-feed.examples.d.ts +2 -0
  13. package/dist/kit/components/composite/activity-feed/activity-feed.examples.js +44 -0
  14. package/dist/kit/components/composite/alert-card/alert-card.examples.d.ts +2 -0
  15. package/dist/kit/components/composite/alert-card/alert-card.examples.js +18 -0
  16. package/dist/kit/components/composite/approval-flow/approval-flow.examples.d.ts +2 -0
  17. package/dist/kit/components/composite/approval-flow/approval-flow.examples.js +70 -0
  18. package/dist/kit/components/composite/auth-shell/auth-shell.examples.d.ts +2 -0
  19. package/dist/kit/components/composite/auth-shell/auth-shell.examples.js +23 -0
  20. package/dist/kit/components/composite/board-toolbar/board-toolbar.examples.d.ts +2 -0
  21. package/dist/kit/components/composite/board-toolbar/board-toolbar.examples.js +32 -0
  22. package/dist/kit/components/composite/chart-card/chart-card.examples.d.ts +3 -0
  23. package/dist/kit/components/composite/chart-card/chart-card.examples.js +58 -0
  24. package/dist/kit/components/composite/chart-toolbar/chart-toolbar.examples.d.ts +2 -0
  25. package/dist/kit/components/composite/chart-toolbar/chart-toolbar.examples.js +39 -0
  26. package/dist/kit/components/composite/data-section/data-section.examples.d.ts +3 -0
  27. package/dist/kit/components/composite/data-section/data-section.examples.js +48 -0
  28. package/dist/kit/components/composite/description-grid/description-grid.examples.d.ts +2 -0
  29. package/dist/kit/components/composite/description-grid/description-grid.examples.js +30 -0
  30. package/dist/kit/components/composite/detail-header/detail-header.examples.d.ts +2 -0
  31. package/dist/kit/components/composite/detail-header/detail-header.examples.js +37 -0
  32. package/dist/kit/components/composite/filter-panel/filter-panel.examples.d.ts +2 -0
  33. package/dist/kit/components/composite/filter-panel/filter-panel.examples.js +63 -0
  34. package/dist/kit/components/composite/filter-toolbar/filter-toolbar.examples.d.ts +2 -0
  35. package/dist/kit/components/composite/filter-toolbar/filter-toolbar.examples.js +39 -0
  36. package/dist/kit/components/composite/forgot-password-form/forgot-password-form.examples.d.ts +2 -0
  37. package/dist/kit/components/composite/forgot-password-form/forgot-password-form.examples.js +19 -0
  38. package/dist/kit/components/composite/form-section/form-section.examples.d.ts +2 -0
  39. package/dist/kit/components/composite/form-section/form-section.examples.js +40 -0
  40. package/dist/kit/components/composite/kanban-board/kanban-board.examples.d.ts +2 -0
  41. package/dist/kit/components/composite/kanban-board/kanban-board.examples.js +72 -0
  42. package/dist/kit/components/composite/login-card/login-card.examples.d.ts +3 -0
  43. package/dist/kit/components/composite/login-card/login-card.examples.js +30 -0
  44. package/dist/kit/components/composite/message-list-card/message-list-card.examples.d.ts +2 -0
  45. package/dist/kit/components/composite/message-list-card/message-list-card.examples.js +56 -0
  46. package/dist/kit/components/composite/metric-card/metric-card.examples.d.ts +2 -0
  47. package/dist/kit/components/composite/metric-card/metric-card.examples.js +50 -0
  48. package/dist/kit/components/composite/milestone-card/milestone-card.examples.d.ts +2 -0
  49. package/dist/kit/components/composite/milestone-card/milestone-card.examples.js +54 -0
  50. package/dist/kit/components/composite/oauth-login-buttons/oauth-login-buttons.examples.d.ts +2 -0
  51. package/dist/kit/components/composite/oauth-login-buttons/oauth-login-buttons.examples.js +24 -0
  52. package/dist/kit/components/composite/page-header/page-header.examples.d.ts +3 -0
  53. package/dist/kit/components/composite/page-header/page-header.examples.js +56 -0
  54. package/dist/kit/components/composite/profile-card/profile-card.examples.d.ts +2 -0
  55. package/dist/kit/components/composite/profile-card/profile-card.examples.js +45 -0
  56. package/dist/kit/components/composite/progress-card/progress-card.examples.d.ts +2 -0
  57. package/dist/kit/components/composite/progress-card/progress-card.examples.js +42 -0
  58. package/dist/kit/components/composite/project-card/project-card.examples.d.ts +2 -0
  59. package/dist/kit/components/composite/project-card/project-card.examples.js +48 -0
  60. package/dist/kit/components/composite/shortcut-card/shortcut-card.examples.d.ts +2 -0
  61. package/dist/kit/components/composite/shortcut-card/shortcut-card.examples.js +18 -0
  62. package/dist/kit/components/composite/sprint-summary/sprint-summary.examples.d.ts +2 -0
  63. package/dist/kit/components/composite/sprint-summary/sprint-summary.examples.js +27 -0
  64. package/dist/kit/components/composite/state-panel/state-panel.examples.d.ts +2 -0
  65. package/dist/kit/components/composite/state-panel/state-panel.examples.js +48 -0
  66. package/dist/kit/components/composite/summary-card/summary-card.examples.d.ts +2 -0
  67. package/dist/kit/components/composite/summary-card/summary-card.examples.js +32 -0
  68. package/dist/kit/components/composite/task-card/task-card.examples.d.ts +2 -0
  69. package/dist/kit/components/composite/task-card/task-card.examples.js +39 -0
  70. package/dist/kit/components/composite/timeline/timeline.examples.d.ts +2 -0
  71. package/dist/kit/components/composite/timeline/timeline.examples.js +75 -0
  72. package/dist/kit/components/composite/todo-card/todo-card.examples.d.ts +2 -0
  73. package/dist/kit/components/composite/todo-card/todo-card.examples.js +42 -0
  74. package/dist/kit/components/data-display/avatar/avatar.examples.d.ts +7 -0
  75. package/dist/kit/components/data-display/avatar/avatar.examples.js +48 -0
  76. package/dist/kit/components/data-display/avatar-group/avatar-group.examples.d.ts +3 -0
  77. package/dist/kit/components/data-display/avatar-group/avatar-group.examples.js +35 -0
  78. package/dist/kit/components/data-display/badge/badge.examples.d.ts +9 -0
  79. package/dist/kit/components/data-display/badge/badge.examples.js +57 -0
  80. package/dist/kit/components/data-display/card/card.examples.d.ts +16 -0
  81. package/dist/kit/components/data-display/card/card.examples.js +72 -0
  82. package/dist/kit/components/data-display/data-grid/data-grid.examples.d.ts +2 -0
  83. package/dist/kit/components/data-display/data-grid/data-grid.examples.js +92 -0
  84. package/dist/kit/components/data-display/kbd/kbd.examples.d.ts +3 -0
  85. package/dist/kit/components/data-display/kbd/kbd.examples.js +43 -0
  86. package/dist/kit/components/data-display/money-amount/money-amount.examples.d.ts +1 -0
  87. package/dist/kit/components/data-display/money-amount/money-amount.examples.js +26 -0
  88. package/dist/kit/components/data-display/progress/progress.examples.d.ts +3 -0
  89. package/dist/kit/components/data-display/progress/progress.examples.js +45 -0
  90. package/dist/kit/components/data-display/skeleton/skeleton.examples.d.ts +3 -0
  91. package/dist/kit/components/data-display/skeleton/skeleton.examples.js +37 -0
  92. package/dist/kit/components/data-display/sliding-number/sliding-number.examples.d.ts +3 -0
  93. package/dist/kit/components/data-display/sliding-number/sliding-number.examples.js +42 -0
  94. package/dist/kit/components/data-display/stepper/stepper.examples.d.ts +2 -0
  95. package/dist/kit/components/data-display/stepper/stepper.examples.js +28 -0
  96. package/dist/kit/components/data-display/table/table.examples.d.ts +4 -0
  97. package/dist/kit/components/data-display/table/table.examples.js +78 -0
  98. package/dist/kit/components/decorative/aurora-background/aurora-background.examples.d.ts +2 -0
  99. package/dist/kit/components/decorative/aurora-background/aurora-background.examples.js +22 -0
  100. package/dist/kit/components/decorative/grid-background/grid-background.examples.d.ts +4 -0
  101. package/dist/kit/components/decorative/grid-background/grid-background.examples.js +42 -0
  102. package/dist/kit/components/decorative/shimmering-text/shimmering-text.examples.d.ts +4 -0
  103. package/dist/kit/components/decorative/shimmering-text/shimmering-text.examples.js +54 -0
  104. package/dist/kit/components/decorative/text-reveal/text-reveal.examples.d.ts +2 -0
  105. package/dist/kit/components/decorative/text-reveal/text-reveal.examples.js +46 -0
  106. package/dist/kit/components/feedback/alert/alert.examples.d.ts +2 -0
  107. package/dist/kit/components/feedback/alert/alert.examples.js +37 -0
  108. package/dist/kit/components/feedback/alert-dialog/alert-dialog.examples.d.ts +2 -0
  109. package/dist/kit/components/feedback/alert-dialog/alert-dialog.examples.js +28 -0
  110. package/dist/kit/components/feedback/context-menu/context-menu.examples.d.ts +2 -0
  111. package/dist/kit/components/feedback/context-menu/context-menu.examples.js +33 -0
  112. package/dist/kit/components/feedback/dialog/dialog.examples.d.ts +2 -0
  113. package/dist/kit/components/feedback/dialog/dialog.examples.js +51 -0
  114. package/dist/kit/components/feedback/drawer/drawer.examples.d.ts +2 -0
  115. package/dist/kit/components/feedback/drawer/drawer.examples.js +29 -0
  116. package/dist/kit/components/feedback/dropdown-menu/dropdown-menu.examples.d.ts +3 -0
  117. package/dist/kit/components/feedback/dropdown-menu/dropdown-menu.examples.js +54 -0
  118. package/dist/kit/components/feedback/hover-card/hover-card.examples.d.ts +2 -0
  119. package/dist/kit/components/feedback/hover-card/hover-card.examples.js +27 -0
  120. package/dist/kit/components/feedback/popover/popover.examples.d.ts +2 -0
  121. package/dist/kit/components/feedback/popover/popover.examples.js +42 -0
  122. package/dist/kit/components/feedback/sheet/sheet.examples.d.ts +2 -0
  123. package/dist/kit/components/feedback/sheet/sheet.examples.js +39 -0
  124. package/dist/kit/components/feedback/sonner/sonner.examples.d.ts +3 -0
  125. package/dist/kit/components/feedback/sonner/sonner.examples.js +49 -0
  126. package/dist/kit/components/feedback/title-help/title-help.examples.d.ts +1 -0
  127. package/dist/kit/components/feedback/title-help/title-help.examples.js +25 -0
  128. package/dist/kit/components/feedback/tooltip/tooltip.examples.d.ts +3 -0
  129. package/dist/kit/components/feedback/tooltip/tooltip.examples.js +44 -0
  130. package/dist/kit/components/form/button/button.examples.d.ts +13 -0
  131. package/dist/kit/components/form/button/button.examples.js +84 -0
  132. package/dist/kit/components/form/calendar/calendar.examples.d.ts +2 -0
  133. package/dist/kit/components/form/calendar/calendar.examples.js +23 -0
  134. package/dist/kit/components/form/checkbox/checkbox.examples.d.ts +4 -0
  135. package/dist/kit/components/form/checkbox/checkbox.examples.js +72 -0
  136. package/dist/kit/components/form/command/command.examples.d.ts +3 -0
  137. package/dist/kit/components/form/command/command.examples.js +52 -0
  138. package/dist/kit/components/form/datefield/datefield.examples.d.ts +2 -0
  139. package/dist/kit/components/form/datefield/datefield.examples.js +19 -0
  140. package/dist/kit/components/form/file-upload/file-upload.examples.d.ts +1 -0
  141. package/dist/kit/components/form/file-upload/file-upload.examples.js +18 -0
  142. package/dist/kit/components/form/form/form.examples.d.ts +2 -0
  143. package/dist/kit/components/form/form/form.examples.js +77 -0
  144. package/dist/kit/components/form/input/input.examples.d.ts +5 -0
  145. package/dist/kit/components/form/input/input.examples.js +64 -0
  146. package/dist/kit/components/form/label/label.examples.d.ts +4 -0
  147. package/dist/kit/components/form/label/label.examples.js +49 -0
  148. package/dist/kit/components/form/radio-group/radio-group.examples.d.ts +3 -0
  149. package/dist/kit/components/form/radio-group/radio-group.examples.js +40 -0
  150. package/dist/kit/components/form/select/select.examples.d.ts +3 -0
  151. package/dist/kit/components/form/select/select.examples.js +58 -0
  152. package/dist/kit/components/form/slider/slider.examples.d.ts +3 -0
  153. package/dist/kit/components/form/slider/slider.examples.js +46 -0
  154. package/dist/kit/components/form/switch/switch.examples.d.ts +3 -0
  155. package/dist/kit/components/form/switch/switch.examples.js +37 -0
  156. package/dist/kit/components/form/textarea/textarea.examples.d.ts +3 -0
  157. package/dist/kit/components/form/textarea/textarea.examples.js +49 -0
  158. package/dist/kit/components/form/toggle/toggle.examples.d.ts +3 -0
  159. package/dist/kit/components/form/toggle/toggle.examples.js +33 -0
  160. package/dist/kit/components/form/toggle-group/toggle-group.examples.d.ts +4 -0
  161. package/dist/kit/components/form/toggle-group/toggle-group.examples.js +46 -0
  162. package/dist/kit/components/index.d.ts +91 -0
  163. package/dist/kit/components/layout/accordion/accordion.examples.d.ts +2 -0
  164. package/dist/kit/components/layout/accordion/accordion.examples.js +34 -0
  165. package/dist/kit/components/layout/aspect-ratio/aspect-ratio.examples.d.ts +3 -0
  166. package/dist/kit/components/layout/aspect-ratio/aspect-ratio.examples.js +29 -0
  167. package/dist/kit/components/layout/collapsible/collapsible.examples.d.ts +2 -0
  168. package/dist/kit/components/layout/collapsible/collapsible.examples.js +28 -0
  169. package/dist/kit/components/layout/resizable/resizable.examples.d.ts +2 -0
  170. package/dist/kit/components/layout/resizable/resizable.examples.js +26 -0
  171. package/dist/kit/components/layout/scroll-area/scroll-area.examples.d.ts +2 -0
  172. package/dist/kit/components/layout/scroll-area/scroll-area.examples.js +16 -0
  173. package/dist/kit/components/layout/separator/separator.examples.d.ts +3 -0
  174. package/dist/kit/components/layout/separator/separator.examples.js +35 -0
  175. package/dist/kit/components/navigation/accordion-menu/accordion-menu.examples.d.ts +2 -0
  176. package/dist/kit/components/navigation/accordion-menu/accordion-menu.examples.js +36 -0
  177. package/dist/kit/components/navigation/breadcrumb/breadcrumb.examples.d.ts +3 -0
  178. package/dist/kit/components/navigation/breadcrumb/breadcrumb.examples.js +39 -0
  179. package/dist/kit/components/navigation/menubar/menubar.examples.d.ts +2 -0
  180. package/dist/kit/components/navigation/menubar/menubar.examples.js +54 -0
  181. package/dist/kit/components/navigation/navigation-menu/navigation-menu.examples.d.ts +2 -0
  182. package/dist/kit/components/navigation/navigation-menu/navigation-menu.examples.js +31 -0
  183. package/dist/kit/components/navigation/pagination/pagination.examples.d.ts +2 -0
  184. package/dist/kit/components/navigation/pagination/pagination.examples.js +42 -0
  185. package/dist/kit/components/navigation/scrollspy/scrollspy.examples.d.ts +2 -0
  186. package/dist/kit/components/navigation/scrollspy/scrollspy.examples.js +68 -0
  187. package/dist/kit/components/navigation/tabs/tabs.examples.d.ts +5 -0
  188. package/dist/kit/components/navigation/tabs/tabs.examples.js +43 -0
  189. package/dist/styles.css +29 -12
  190. 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,2 @@
1
+ export declare function MessageListCardBasic(): import("react/jsx-runtime").JSX.Element;
2
+ export declare function MessageListCardShowcase(): import("react/jsx-runtime").JSX.Element;
@@ -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,2 @@
1
+ export declare function MetricCardGrid(): import("react/jsx-runtime").JSX.Element;
2
+ export declare function MetricCardShowcase(): import("react/jsx-runtime").JSX.Element;
@@ -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,2 @@
1
+ export declare function MilestoneCardList(): import("react/jsx-runtime").JSX.Element;
2
+ export declare function MilestoneCardShowcase(): import("react/jsx-runtime").JSX.Element;
@@ -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,2 @@
1
+ export declare function OauthLoginButtonsBasic(): import("react/jsx-runtime").JSX.Element;
2
+ export declare function OauthLoginButtonsShowcase(): import("react/jsx-runtime").JSX.Element;
@@ -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,3 @@
1
+ export declare function PageHeaderBasic(): import("react/jsx-runtime").JSX.Element;
2
+ export declare function PageHeaderWithMeta(): import("react/jsx-runtime").JSX.Element;
3
+ export declare function PageHeaderShowcase(): import("react/jsx-runtime").JSX.Element;
@@ -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,2 @@
1
+ export declare function ProfileCardBasic(): import("react/jsx-runtime").JSX.Element;
2
+ export declare function ProfileCardShowcase(): import("react/jsx-runtime").JSX.Element;
@@ -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,2 @@
1
+ export declare function ProgressCardBasic(): import("react/jsx-runtime").JSX.Element;
2
+ export declare function ProgressCardShowcase(): import("react/jsx-runtime").JSX.Element;
@@ -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,2 @@
1
+ export declare function ProjectCardGrid(): import("react/jsx-runtime").JSX.Element;
2
+ export declare function ProjectCardShowcase(): import("react/jsx-runtime").JSX.Element;
@@ -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,2 @@
1
+ export declare function ShortcutCardGrid(): import("react/jsx-runtime").JSX.Element;
2
+ export declare function ShortcutCardShowcase(): import("react/jsx-runtime").JSX.Element;
@@ -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,2 @@
1
+ export declare function SprintSummaryBasic(): import("react/jsx-runtime").JSX.Element;
2
+ export declare function SprintSummaryShowcase(): import("react/jsx-runtime").JSX.Element;
@@ -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,2 @@
1
+ export declare function StatePanelGrid(): import("react/jsx-runtime").JSX.Element;
2
+ export declare function StatePanelShowcase(): import("react/jsx-runtime").JSX.Element;
@@ -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,2 @@
1
+ export declare function SummaryCardBasic(): import("react/jsx-runtime").JSX.Element;
2
+ export declare function SummaryCardShowcase(): import("react/jsx-runtime").JSX.Element;
@@ -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,2 @@
1
+ export declare function TaskCardList(): import("react/jsx-runtime").JSX.Element;
2
+ export declare function TaskCardShowcase(): import("react/jsx-runtime").JSX.Element;
@@ -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
+ };
@@ -0,0 +1,2 @@
1
+ export declare function TimelineBasic(): import("react/jsx-runtime").JSX.Element;
2
+ export declare function TimelineShowcase(): import("react/jsx-runtime").JSX.Element;