@demokit-ui/demokit 0.1.0 → 0.1.1

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 (189) hide show
  1. package/README.md +3 -0
  2. package/dist/app/demo1-shell.js +195 -188
  3. package/dist/app/tweak-panel.js +20 -4
  4. package/dist/index.js +811 -479
  5. package/dist/kit/components/chart/chart/chart.examples.d.ts +13 -0
  6. package/dist/kit/components/chart/chart/chart.examples.js +390 -0
  7. package/dist/kit/components/composite/action-bar/action-bar.examples.d.ts +2 -0
  8. package/dist/kit/components/composite/action-bar/action-bar.examples.js +35 -0
  9. package/dist/kit/components/composite/action-card/action-card.examples.d.ts +2 -0
  10. package/dist/kit/components/composite/action-card/action-card.examples.js +34 -0
  11. package/dist/kit/components/composite/activity-feed/activity-feed.examples.d.ts +2 -0
  12. package/dist/kit/components/composite/activity-feed/activity-feed.examples.js +44 -0
  13. package/dist/kit/components/composite/alert-card/alert-card.examples.d.ts +2 -0
  14. package/dist/kit/components/composite/alert-card/alert-card.examples.js +18 -0
  15. package/dist/kit/components/composite/approval-flow/approval-flow.examples.d.ts +2 -0
  16. package/dist/kit/components/composite/approval-flow/approval-flow.examples.js +70 -0
  17. package/dist/kit/components/composite/auth-shell/auth-shell.examples.d.ts +2 -0
  18. package/dist/kit/components/composite/auth-shell/auth-shell.examples.js +23 -0
  19. package/dist/kit/components/composite/board-toolbar/board-toolbar.examples.d.ts +2 -0
  20. package/dist/kit/components/composite/board-toolbar/board-toolbar.examples.js +32 -0
  21. package/dist/kit/components/composite/chart-card/chart-card.examples.d.ts +3 -0
  22. package/dist/kit/components/composite/chart-card/chart-card.examples.js +58 -0
  23. package/dist/kit/components/composite/chart-toolbar/chart-toolbar.examples.d.ts +2 -0
  24. package/dist/kit/components/composite/chart-toolbar/chart-toolbar.examples.js +39 -0
  25. package/dist/kit/components/composite/data-section/data-section.examples.d.ts +3 -0
  26. package/dist/kit/components/composite/data-section/data-section.examples.js +48 -0
  27. package/dist/kit/components/composite/description-grid/description-grid.examples.d.ts +2 -0
  28. package/dist/kit/components/composite/description-grid/description-grid.examples.js +30 -0
  29. package/dist/kit/components/composite/detail-header/detail-header.examples.d.ts +2 -0
  30. package/dist/kit/components/composite/detail-header/detail-header.examples.js +37 -0
  31. package/dist/kit/components/composite/filter-panel/filter-panel.examples.d.ts +2 -0
  32. package/dist/kit/components/composite/filter-panel/filter-panel.examples.js +63 -0
  33. package/dist/kit/components/composite/filter-toolbar/filter-toolbar.examples.d.ts +2 -0
  34. package/dist/kit/components/composite/filter-toolbar/filter-toolbar.examples.js +39 -0
  35. package/dist/kit/components/composite/forgot-password-form/forgot-password-form.examples.d.ts +2 -0
  36. package/dist/kit/components/composite/forgot-password-form/forgot-password-form.examples.js +19 -0
  37. package/dist/kit/components/composite/form-section/form-section.examples.d.ts +2 -0
  38. package/dist/kit/components/composite/form-section/form-section.examples.js +40 -0
  39. package/dist/kit/components/composite/kanban-board/kanban-board.examples.d.ts +2 -0
  40. package/dist/kit/components/composite/kanban-board/kanban-board.examples.js +72 -0
  41. package/dist/kit/components/composite/login-card/login-card.examples.d.ts +3 -0
  42. package/dist/kit/components/composite/login-card/login-card.examples.js +30 -0
  43. package/dist/kit/components/composite/message-list-card/message-list-card.examples.d.ts +2 -0
  44. package/dist/kit/components/composite/message-list-card/message-list-card.examples.js +56 -0
  45. package/dist/kit/components/composite/metric-card/metric-card.examples.d.ts +2 -0
  46. package/dist/kit/components/composite/metric-card/metric-card.examples.js +50 -0
  47. package/dist/kit/components/composite/milestone-card/milestone-card.examples.d.ts +2 -0
  48. package/dist/kit/components/composite/milestone-card/milestone-card.examples.js +54 -0
  49. package/dist/kit/components/composite/oauth-login-buttons/oauth-login-buttons.examples.d.ts +2 -0
  50. package/dist/kit/components/composite/oauth-login-buttons/oauth-login-buttons.examples.js +24 -0
  51. package/dist/kit/components/composite/page-header/page-header.examples.d.ts +3 -0
  52. package/dist/kit/components/composite/page-header/page-header.examples.js +56 -0
  53. package/dist/kit/components/composite/profile-card/profile-card.examples.d.ts +2 -0
  54. package/dist/kit/components/composite/profile-card/profile-card.examples.js +45 -0
  55. package/dist/kit/components/composite/progress-card/progress-card.examples.d.ts +2 -0
  56. package/dist/kit/components/composite/progress-card/progress-card.examples.js +42 -0
  57. package/dist/kit/components/composite/project-card/project-card.examples.d.ts +2 -0
  58. package/dist/kit/components/composite/project-card/project-card.examples.js +48 -0
  59. package/dist/kit/components/composite/shortcut-card/shortcut-card.examples.d.ts +2 -0
  60. package/dist/kit/components/composite/shortcut-card/shortcut-card.examples.js +18 -0
  61. package/dist/kit/components/composite/sprint-summary/sprint-summary.examples.d.ts +2 -0
  62. package/dist/kit/components/composite/sprint-summary/sprint-summary.examples.js +27 -0
  63. package/dist/kit/components/composite/state-panel/state-panel.examples.d.ts +2 -0
  64. package/dist/kit/components/composite/state-panel/state-panel.examples.js +48 -0
  65. package/dist/kit/components/composite/summary-card/summary-card.examples.d.ts +2 -0
  66. package/dist/kit/components/composite/summary-card/summary-card.examples.js +32 -0
  67. package/dist/kit/components/composite/task-card/task-card.examples.d.ts +2 -0
  68. package/dist/kit/components/composite/task-card/task-card.examples.js +39 -0
  69. package/dist/kit/components/composite/timeline/timeline.examples.d.ts +2 -0
  70. package/dist/kit/components/composite/timeline/timeline.examples.js +75 -0
  71. package/dist/kit/components/composite/todo-card/todo-card.examples.d.ts +2 -0
  72. package/dist/kit/components/composite/todo-card/todo-card.examples.js +42 -0
  73. package/dist/kit/components/data-display/avatar/avatar.examples.d.ts +7 -0
  74. package/dist/kit/components/data-display/avatar/avatar.examples.js +48 -0
  75. package/dist/kit/components/data-display/avatar-group/avatar-group.examples.d.ts +3 -0
  76. package/dist/kit/components/data-display/avatar-group/avatar-group.examples.js +35 -0
  77. package/dist/kit/components/data-display/badge/badge.examples.d.ts +9 -0
  78. package/dist/kit/components/data-display/badge/badge.examples.js +57 -0
  79. package/dist/kit/components/data-display/card/card.examples.d.ts +16 -0
  80. package/dist/kit/components/data-display/card/card.examples.js +72 -0
  81. package/dist/kit/components/data-display/data-grid/data-grid.examples.d.ts +2 -0
  82. package/dist/kit/components/data-display/data-grid/data-grid.examples.js +92 -0
  83. package/dist/kit/components/data-display/kbd/kbd.examples.d.ts +3 -0
  84. package/dist/kit/components/data-display/kbd/kbd.examples.js +43 -0
  85. package/dist/kit/components/data-display/money-amount/money-amount.examples.d.ts +1 -0
  86. package/dist/kit/components/data-display/money-amount/money-amount.examples.js +26 -0
  87. package/dist/kit/components/data-display/progress/progress.examples.d.ts +3 -0
  88. package/dist/kit/components/data-display/progress/progress.examples.js +45 -0
  89. package/dist/kit/components/data-display/skeleton/skeleton.examples.d.ts +3 -0
  90. package/dist/kit/components/data-display/skeleton/skeleton.examples.js +37 -0
  91. package/dist/kit/components/data-display/sliding-number/sliding-number.examples.d.ts +3 -0
  92. package/dist/kit/components/data-display/sliding-number/sliding-number.examples.js +42 -0
  93. package/dist/kit/components/data-display/stepper/stepper.examples.d.ts +2 -0
  94. package/dist/kit/components/data-display/stepper/stepper.examples.js +28 -0
  95. package/dist/kit/components/data-display/table/table.examples.d.ts +4 -0
  96. package/dist/kit/components/data-display/table/table.examples.js +78 -0
  97. package/dist/kit/components/decorative/aurora-background/aurora-background.examples.d.ts +2 -0
  98. package/dist/kit/components/decorative/aurora-background/aurora-background.examples.js +22 -0
  99. package/dist/kit/components/decorative/grid-background/grid-background.examples.d.ts +4 -0
  100. package/dist/kit/components/decorative/grid-background/grid-background.examples.js +42 -0
  101. package/dist/kit/components/decorative/shimmering-text/shimmering-text.examples.d.ts +4 -0
  102. package/dist/kit/components/decorative/shimmering-text/shimmering-text.examples.js +54 -0
  103. package/dist/kit/components/decorative/text-reveal/text-reveal.examples.d.ts +2 -0
  104. package/dist/kit/components/decorative/text-reveal/text-reveal.examples.js +46 -0
  105. package/dist/kit/components/feedback/alert/alert.examples.d.ts +2 -0
  106. package/dist/kit/components/feedback/alert/alert.examples.js +37 -0
  107. package/dist/kit/components/feedback/alert-dialog/alert-dialog.examples.d.ts +2 -0
  108. package/dist/kit/components/feedback/alert-dialog/alert-dialog.examples.js +28 -0
  109. package/dist/kit/components/feedback/context-menu/context-menu.examples.d.ts +2 -0
  110. package/dist/kit/components/feedback/context-menu/context-menu.examples.js +33 -0
  111. package/dist/kit/components/feedback/dialog/dialog.examples.d.ts +2 -0
  112. package/dist/kit/components/feedback/dialog/dialog.examples.js +51 -0
  113. package/dist/kit/components/feedback/drawer/drawer.examples.d.ts +2 -0
  114. package/dist/kit/components/feedback/drawer/drawer.examples.js +29 -0
  115. package/dist/kit/components/feedback/dropdown-menu/dropdown-menu.examples.d.ts +3 -0
  116. package/dist/kit/components/feedback/dropdown-menu/dropdown-menu.examples.js +54 -0
  117. package/dist/kit/components/feedback/hover-card/hover-card.examples.d.ts +2 -0
  118. package/dist/kit/components/feedback/hover-card/hover-card.examples.js +27 -0
  119. package/dist/kit/components/feedback/popover/popover.examples.d.ts +2 -0
  120. package/dist/kit/components/feedback/popover/popover.examples.js +42 -0
  121. package/dist/kit/components/feedback/sheet/sheet.examples.d.ts +2 -0
  122. package/dist/kit/components/feedback/sheet/sheet.examples.js +39 -0
  123. package/dist/kit/components/feedback/sonner/sonner.examples.d.ts +3 -0
  124. package/dist/kit/components/feedback/sonner/sonner.examples.js +49 -0
  125. package/dist/kit/components/feedback/title-help/title-help.examples.d.ts +1 -0
  126. package/dist/kit/components/feedback/title-help/title-help.examples.js +25 -0
  127. package/dist/kit/components/feedback/tooltip/tooltip.examples.d.ts +3 -0
  128. package/dist/kit/components/feedback/tooltip/tooltip.examples.js +44 -0
  129. package/dist/kit/components/form/button/button.examples.d.ts +13 -0
  130. package/dist/kit/components/form/button/button.examples.js +84 -0
  131. package/dist/kit/components/form/calendar/calendar.examples.d.ts +2 -0
  132. package/dist/kit/components/form/calendar/calendar.examples.js +23 -0
  133. package/dist/kit/components/form/checkbox/checkbox.examples.d.ts +4 -0
  134. package/dist/kit/components/form/checkbox/checkbox.examples.js +72 -0
  135. package/dist/kit/components/form/command/command.examples.d.ts +3 -0
  136. package/dist/kit/components/form/command/command.examples.js +52 -0
  137. package/dist/kit/components/form/datefield/datefield.examples.d.ts +2 -0
  138. package/dist/kit/components/form/datefield/datefield.examples.js +19 -0
  139. package/dist/kit/components/form/file-upload/file-upload.examples.d.ts +1 -0
  140. package/dist/kit/components/form/file-upload/file-upload.examples.js +18 -0
  141. package/dist/kit/components/form/form/form.examples.d.ts +2 -0
  142. package/dist/kit/components/form/form/form.examples.js +77 -0
  143. package/dist/kit/components/form/input/input.examples.d.ts +5 -0
  144. package/dist/kit/components/form/input/input.examples.js +64 -0
  145. package/dist/kit/components/form/label/label.examples.d.ts +4 -0
  146. package/dist/kit/components/form/label/label.examples.js +49 -0
  147. package/dist/kit/components/form/radio-group/radio-group.examples.d.ts +3 -0
  148. package/dist/kit/components/form/radio-group/radio-group.examples.js +40 -0
  149. package/dist/kit/components/form/select/select.examples.d.ts +3 -0
  150. package/dist/kit/components/form/select/select.examples.js +58 -0
  151. package/dist/kit/components/form/slider/slider.examples.d.ts +3 -0
  152. package/dist/kit/components/form/slider/slider.examples.js +46 -0
  153. package/dist/kit/components/form/switch/switch.examples.d.ts +3 -0
  154. package/dist/kit/components/form/switch/switch.examples.js +37 -0
  155. package/dist/kit/components/form/textarea/textarea.examples.d.ts +3 -0
  156. package/dist/kit/components/form/textarea/textarea.examples.js +49 -0
  157. package/dist/kit/components/form/toggle/toggle.examples.d.ts +3 -0
  158. package/dist/kit/components/form/toggle/toggle.examples.js +33 -0
  159. package/dist/kit/components/form/toggle-group/toggle-group.examples.d.ts +4 -0
  160. package/dist/kit/components/form/toggle-group/toggle-group.examples.js +46 -0
  161. package/dist/kit/components/index.d.ts +91 -0
  162. package/dist/kit/components/layout/accordion/accordion.examples.d.ts +2 -0
  163. package/dist/kit/components/layout/accordion/accordion.examples.js +34 -0
  164. package/dist/kit/components/layout/aspect-ratio/aspect-ratio.examples.d.ts +3 -0
  165. package/dist/kit/components/layout/aspect-ratio/aspect-ratio.examples.js +29 -0
  166. package/dist/kit/components/layout/collapsible/collapsible.examples.d.ts +2 -0
  167. package/dist/kit/components/layout/collapsible/collapsible.examples.js +28 -0
  168. package/dist/kit/components/layout/resizable/resizable.examples.d.ts +2 -0
  169. package/dist/kit/components/layout/resizable/resizable.examples.js +26 -0
  170. package/dist/kit/components/layout/scroll-area/scroll-area.examples.d.ts +2 -0
  171. package/dist/kit/components/layout/scroll-area/scroll-area.examples.js +16 -0
  172. package/dist/kit/components/layout/separator/separator.examples.d.ts +3 -0
  173. package/dist/kit/components/layout/separator/separator.examples.js +35 -0
  174. package/dist/kit/components/navigation/accordion-menu/accordion-menu.examples.d.ts +2 -0
  175. package/dist/kit/components/navigation/accordion-menu/accordion-menu.examples.js +36 -0
  176. package/dist/kit/components/navigation/breadcrumb/breadcrumb.examples.d.ts +3 -0
  177. package/dist/kit/components/navigation/breadcrumb/breadcrumb.examples.js +39 -0
  178. package/dist/kit/components/navigation/menubar/menubar.examples.d.ts +2 -0
  179. package/dist/kit/components/navigation/menubar/menubar.examples.js +54 -0
  180. package/dist/kit/components/navigation/navigation-menu/navigation-menu.examples.d.ts +2 -0
  181. package/dist/kit/components/navigation/navigation-menu/navigation-menu.examples.js +31 -0
  182. package/dist/kit/components/navigation/pagination/pagination.examples.d.ts +2 -0
  183. package/dist/kit/components/navigation/pagination/pagination.examples.js +42 -0
  184. package/dist/kit/components/navigation/scrollspy/scrollspy.examples.d.ts +2 -0
  185. package/dist/kit/components/navigation/scrollspy/scrollspy.examples.js +68 -0
  186. package/dist/kit/components/navigation/tabs/tabs.examples.d.ts +5 -0
  187. package/dist/kit/components/navigation/tabs/tabs.examples.js +43 -0
  188. package/dist/styles.css +29 -12
  189. package/package.json +1 -1
@@ -0,0 +1,13 @@
1
+ export declare function ChartDonut(): import("react/jsx-runtime").JSX.Element;
2
+ export declare function ChartSparkline(): import("react/jsx-runtime").JSX.Element;
3
+ export declare function ChartColumn(): import("react/jsx-runtime").JSX.Element;
4
+ export declare function ChartBar(): import("react/jsx-runtime").JSX.Element;
5
+ export declare function ChartLine(): import("react/jsx-runtime").JSX.Element;
6
+ export declare function ChartArea(): import("react/jsx-runtime").JSX.Element;
7
+ export declare function ChartMixed(): import("react/jsx-runtime").JSX.Element;
8
+ export declare function ChartRadialBar(): import("react/jsx-runtime").JSX.Element;
9
+ export declare function ChartRadar(): import("react/jsx-runtime").JSX.Element;
10
+ export declare function ChartHeatmap(): import("react/jsx-runtime").JSX.Element;
11
+ export declare function ChartFunnel(): import("react/jsx-runtime").JSX.Element;
12
+ export declare function ChartTimeline(): import("react/jsx-runtime").JSX.Element;
13
+ export declare function ChartShowcase(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,390 @@
1
+ import { jsxs as t, jsx as e } from "react/jsx-runtime";
2
+ import { Suspense as g, lazy as x } from "react";
3
+ import { useChartPalette as c } from "../../../tokens/chart-palette.js";
4
+ const y = x(() => import("react-apexcharts"));
5
+ function d(r) {
6
+ return /* @__PURE__ */ e(
7
+ g,
8
+ {
9
+ fallback: /* @__PURE__ */ e(
10
+ "div",
11
+ {
12
+ className: "flex items-center justify-center rounded-md bg-muted/20 text-xs text-muted-foreground",
13
+ style: { height: r.height, width: r.width },
14
+ children: "加载图表..."
15
+ }
16
+ ),
17
+ children: /* @__PURE__ */ e(y, { ...r })
18
+ }
19
+ );
20
+ }
21
+ function m({ items: r }) {
22
+ return /* @__PURE__ */ e("div", { className: "flex flex-wrap gap-x-4 gap-y-1 text-sm mt-2", children: r.map((o) => /* @__PURE__ */ t("div", { className: "flex items-center gap-2", children: [
23
+ /* @__PURE__ */ e("span", { className: "size-2 rounded-full shrink-0", style: { background: o.color } }),
24
+ /* @__PURE__ */ e("span", { children: o.name })
25
+ ] }, o.name)) });
26
+ }
27
+ function v() {
28
+ const r = c(), o = ["文档模板", "检查单", "评审规范", "其他"], a = [40, 24, 18, 18], n = o.map((s, i) => r[i % r.length]);
29
+ return /* @__PURE__ */ t("div", { className: "flex items-center gap-6", children: [
30
+ /* @__PURE__ */ e(d, { options: {
31
+ chart: { type: "donut" },
32
+ labels: o,
33
+ colors: n,
34
+ stroke: { width: 2, colors: ["var(--color-card)"] },
35
+ legend: { show: !1 },
36
+ dataLabels: { enabled: !1 },
37
+ plotOptions: {
38
+ pie: {
39
+ donut: {
40
+ size: "70%",
41
+ labels: {
42
+ show: !0,
43
+ name: { show: !0, fontSize: "12px" },
44
+ value: { show: !0, fontSize: "22px", fontWeight: 600 },
45
+ total: { show: !0, label: "总占比", formatter: () => "100%" }
46
+ }
47
+ }
48
+ }
49
+ }
50
+ }, series: a, type: "donut", height: 200, width: 200 }),
51
+ /* @__PURE__ */ e("div", { className: "grid grid-cols-1 gap-2 text-sm", children: o.map((s, i) => /* @__PURE__ */ t("div", { className: "flex items-center gap-2", children: [
52
+ /* @__PURE__ */ e("span", { className: "size-2 rounded-full shrink-0", style: { background: n[i] } }),
53
+ /* @__PURE__ */ e("span", { className: "flex-1", children: s }),
54
+ /* @__PURE__ */ t("span", { className: "font-mono text-xs text-muted-foreground", children: [
55
+ a[i],
56
+ "%"
57
+ ] })
58
+ ] }, s)) })
59
+ ] });
60
+ }
61
+ function w() {
62
+ const r = c(), o = {
63
+ chart: { type: "area", sparkline: { enabled: !0 } },
64
+ stroke: { curve: "smooth", width: 2, colors: [r[0]] },
65
+ fill: { type: "gradient", gradient: { opacityFrom: 0.35, opacityTo: 0 } },
66
+ colors: [r[0]],
67
+ tooltip: { enabled: !1 }
68
+ };
69
+ return /* @__PURE__ */ t("div", { className: "flex items-center gap-6", children: [
70
+ /* @__PURE__ */ t("div", { children: [
71
+ /* @__PURE__ */ e("div", { className: "text-xs text-muted-foreground", children: "本周流程" }),
72
+ /* @__PURE__ */ e("div", { className: "text-2xl font-semibold", children: "14" })
73
+ ] }),
74
+ /* @__PURE__ */ e(d, { options: o, series: [{ data: [8, 10, 9, 11, 13, 12, 14] }], type: "area", height: 42, width: 120 })
75
+ ] });
76
+ }
77
+ function k() {
78
+ const r = c(), o = [
79
+ { name: "2024", data: [44, 55, 57, 56] },
80
+ { name: "2025", data: [76, 85, 101, 98] }
81
+ ], a = r.slice(0, 2);
82
+ return /* @__PURE__ */ t("div", { children: [
83
+ /* @__PURE__ */ e(d, { options: {
84
+ chart: { type: "bar", toolbar: { show: !1 } },
85
+ plotOptions: { bar: { horizontal: !1, columnWidth: "50%", borderRadius: 4, borderRadiusApplication: "end" } },
86
+ dataLabels: { enabled: !1 },
87
+ stroke: { show: !0, width: 2, colors: ["transparent"] },
88
+ xaxis: { categories: ["Q1", "Q2", "Q3", "Q4"], axisBorder: { color: "var(--color-border)" }, axisTicks: { color: "var(--color-border)" } },
89
+ yaxis: { labels: { style: { colors: "var(--color-muted-foreground)" } } },
90
+ colors: a,
91
+ fill: { opacity: 1 },
92
+ tooltip: { y: { formatter: (l) => `${l} 万` } },
93
+ legend: { show: !1 },
94
+ grid: { borderColor: "var(--color-border)", strokeDashArray: 3 }
95
+ }, series: o, type: "bar", height: 260 }),
96
+ /* @__PURE__ */ e(m, { items: o.map((l, s) => ({ name: l.name, color: a[s] })) })
97
+ ] });
98
+ }
99
+ function C() {
100
+ const r = c(), o = ["研发部", "产品部", "设计部", "运营部", "市场部", "行政部"], a = [44, 55, 57, 56, 61, 58], n = {
101
+ chart: { type: "bar", toolbar: { show: !1 } },
102
+ plotOptions: { bar: { horizontal: !0, borderRadius: 4, borderRadiusApplication: "end", barHeight: "60%" } },
103
+ dataLabels: { enabled: !0, style: { colors: ["var(--color-card)"], fontSize: "11px", fontWeight: 600 } },
104
+ xaxis: { categories: o, axisBorder: { color: "var(--color-border)" }, axisTicks: { color: "var(--color-border)" }, labels: { style: { colors: "var(--color-muted-foreground)" } } },
105
+ yaxis: { labels: { style: { colors: "var(--color-muted-foreground)" } } },
106
+ colors: [r[0]],
107
+ grid: { borderColor: "var(--color-border)", strokeDashArray: 3 },
108
+ legend: { show: !1 },
109
+ tooltip: { y: { formatter: (l) => `${l} 人` } }
110
+ };
111
+ return /* @__PURE__ */ e(d, { options: n, series: [{ name: "人员数", data: a }], type: "bar", height: 280 });
112
+ }
113
+ function N() {
114
+ const r = c(), o = [
115
+ { name: "申报量", data: [31, 40, 28, 51, 42, 109] },
116
+ { name: "通过数", data: [11, 32, 45, 32, 34, 52] },
117
+ { name: "驳回数", data: [4, 8, 6, 10, 7, 9] }
118
+ ], a = r.slice(0, 3);
119
+ return /* @__PURE__ */ t("div", { children: [
120
+ /* @__PURE__ */ e(d, { options: {
121
+ chart: { type: "line", toolbar: { show: !1 }, zoom: { enabled: !1 } },
122
+ stroke: { curve: "smooth", width: 2 },
123
+ markers: { size: 0, hover: { size: 5 } },
124
+ xaxis: { categories: ["1月", "2月", "3月", "4月", "5月", "6月"], axisBorder: { color: "var(--color-border)" }, axisTicks: { color: "var(--color-border)" }, labels: { style: { colors: "var(--color-muted-foreground)" } } },
125
+ yaxis: { labels: { style: { colors: "var(--color-muted-foreground)" } } },
126
+ colors: a,
127
+ legend: { show: !1 },
128
+ grid: { borderColor: "var(--color-border)", strokeDashArray: 3 },
129
+ tooltip: { shared: !0, intersect: !1 }
130
+ }, series: o, type: "line", height: 260 }),
131
+ /* @__PURE__ */ e(m, { items: o.map((l, s) => ({ name: l.name, color: a[s] })) })
132
+ ] });
133
+ }
134
+ function z() {
135
+ const r = c(), o = [
136
+ { name: "研发", data: [31, 40, 28, 51, 42, 20, 15] },
137
+ { name: "设计", data: [11, 32, 45, 32, 34, 18, 12] },
138
+ { name: "测试", data: [14, 18, 22, 28, 26, 15, 10] }
139
+ ], a = r.slice(0, 3);
140
+ return /* @__PURE__ */ t("div", { children: [
141
+ /* @__PURE__ */ e(d, { options: {
142
+ chart: { type: "area", stacked: !0, toolbar: { show: !1 }, zoom: { enabled: !1 } },
143
+ stroke: { curve: "smooth", width: 2, colors: ["var(--color-card)"] },
144
+ fill: { type: "gradient", gradient: { opacityFrom: 0.7, opacityTo: 0.2 } },
145
+ xaxis: { categories: ["周一", "周二", "周三", "周四", "周五", "周六", "周日"], axisBorder: { color: "var(--color-border)" }, axisTicks: { color: "var(--color-border)" }, labels: { style: { colors: "var(--color-muted-foreground)" } } },
146
+ yaxis: { labels: { style: { colors: "var(--color-muted-foreground)" } } },
147
+ colors: a,
148
+ legend: { show: !1 },
149
+ grid: { borderColor: "var(--color-border)", strokeDashArray: 3 },
150
+ dataLabels: { enabled: !1 },
151
+ tooltip: { shared: !0 }
152
+ }, series: o, type: "area", height: 260 }),
153
+ /* @__PURE__ */ e(m, { items: o.map((l, s) => ({ name: l.name, color: a[s] })) })
154
+ ] });
155
+ }
156
+ function T() {
157
+ const r = c(), o = [r[0], r[2]];
158
+ return /* @__PURE__ */ t("div", { children: [
159
+ /* @__PURE__ */ e(d, { options: {
160
+ chart: { toolbar: { show: !1 } },
161
+ stroke: { width: [0, 3], curve: "smooth" },
162
+ plotOptions: { bar: { columnWidth: "40%", borderRadius: 4, borderRadiusApplication: "end" } },
163
+ dataLabels: { enabled: !1 },
164
+ xaxis: { categories: ["1月", "2月", "3月", "4月", "5月", "6月"], axisBorder: { color: "var(--color-border)" }, axisTicks: { color: "var(--color-border)" }, labels: { style: { colors: "var(--color-muted-foreground)" } } },
165
+ yaxis: [
166
+ { seriesName: "营收", title: { text: "营收 (万)", style: { color: "var(--color-muted-foreground)" } }, labels: { style: { colors: "var(--color-muted-foreground)" } } },
167
+ { seriesName: "增长率", opposite: !0, title: { text: "增长率 (%)", style: { color: "var(--color-muted-foreground)" } }, labels: { style: { colors: "var(--color-muted-foreground)" } } }
168
+ ],
169
+ colors: o,
170
+ grid: { borderColor: "var(--color-border)", strokeDashArray: 3 },
171
+ legend: { show: !1 },
172
+ tooltip: { shared: !0, intersect: !1 }
173
+ }, series: [
174
+ { name: "营收", type: "column", data: [120, 132, 108, 145, 168, 155] },
175
+ { name: "增长率", type: "line", data: [12, 14, -8, 15, 18, 10] }
176
+ ], type: "line", height: 260 }),
177
+ /* @__PURE__ */ e(m, { items: [{ name: "营收", color: o[0] }, { name: "增长率", color: o[1] }] })
178
+ ] });
179
+ }
180
+ function B() {
181
+ const r = c(), o = {
182
+ chart: { type: "radialBar" },
183
+ plotOptions: {
184
+ radialBar: {
185
+ hollow: { size: "62%" },
186
+ track: { background: "var(--color-muted)", strokeWidth: "100%" },
187
+ dataLabels: {
188
+ name: { show: !0, fontSize: "12px", color: "var(--color-muted-foreground)", offsetY: -4 },
189
+ value: { show: !0, fontSize: "26px", fontWeight: 600, color: "var(--color-foreground)", offsetY: 6, formatter: (a) => `${a}%` }
190
+ }
191
+ }
192
+ },
193
+ colors: [r[0]],
194
+ stroke: { lineCap: "round" },
195
+ labels: ["达成率"]
196
+ };
197
+ return /* @__PURE__ */ t("div", { className: "flex items-center gap-6", children: [
198
+ /* @__PURE__ */ e(d, { options: o, series: [72], type: "radialBar", height: 200, width: 200 }),
199
+ /* @__PURE__ */ t("div", { className: "grid grid-cols-1 gap-2 text-sm", children: [
200
+ /* @__PURE__ */ e("div", { className: "text-muted-foreground text-xs", children: "季度目标" }),
201
+ /* @__PURE__ */ t("div", { children: [
202
+ /* @__PURE__ */ e("span", { className: "text-2xl font-semibold font-mono", children: "72" }),
203
+ /* @__PURE__ */ e("span", { className: "text-muted-foreground text-sm", children: " / 100" })
204
+ ] }),
205
+ /* @__PURE__ */ e("div", { className: "text-xs text-muted-foreground", children: "剩余 28 个工作日" })
206
+ ] })
207
+ ] });
208
+ }
209
+ function D() {
210
+ const r = c(), o = [
211
+ { name: "当前版本", data: [80, 65, 70, 88, 75, 82] },
212
+ { name: "上一版本", data: [65, 55, 60, 70, 68, 72] }
213
+ ], a = r.slice(0, 2), n = {
214
+ chart: { type: "radar", toolbar: { show: !1 } },
215
+ xaxis: { categories: ["响应", "稳定", "扩展", "安全", "易用", "性能"], labels: { style: { colors: Array(6).fill("var(--color-muted-foreground)") } } },
216
+ yaxis: { show: !1 },
217
+ colors: a,
218
+ stroke: { width: 2 },
219
+ fill: { opacity: 0.2 },
220
+ markers: { size: 3, strokeColors: a },
221
+ legend: { show: !1 },
222
+ plotOptions: { radar: { polygons: { strokeColors: "var(--color-border)", connectorColors: "var(--color-border)" } } }
223
+ };
224
+ return /* @__PURE__ */ t("div", { children: [
225
+ /* @__PURE__ */ e(d, { options: n, series: o, type: "radar", height: 280 }),
226
+ /* @__PURE__ */ e(m, { items: o.map((l, s) => ({ name: l.name, color: a[s] })) })
227
+ ] });
228
+ }
229
+ function A() {
230
+ const r = c(), o = ["0", "3", "6", "9", "12", "15", "18", "21"], a = ["周一", "周二", "周三", "周四", "周五", "周六", "周日"], n = [
231
+ [5, 2, 12, 58, 72, 64, 48, 22],
232
+ [7, 3, 15, 62, 78, 70, 52, 25],
233
+ [6, 2, 14, 60, 80, 74, 55, 28],
234
+ [8, 4, 16, 65, 82, 76, 58, 30],
235
+ [10, 5, 18, 68, 85, 80, 62, 35],
236
+ [12, 8, 22, 45, 55, 50, 42, 28],
237
+ [15, 10, 20, 38, 42, 40, 35, 22]
238
+ ], l = a.map((p, u) => ({
239
+ name: p,
240
+ data: o.map((f, b) => ({ x: `${f}时`, y: n[u][b] }))
241
+ })), s = r[0], i = [r[0], r[2], r[4]], h = {
242
+ chart: { type: "heatmap", toolbar: { show: !1 } },
243
+ dataLabels: { enabled: !1 },
244
+ colors: [s],
245
+ plotOptions: {
246
+ heatmap: {
247
+ shadeIntensity: 0.5,
248
+ radius: 2,
249
+ useFillColorAsStroke: !1,
250
+ colorScale: {
251
+ ranges: [
252
+ { from: 0, to: 20, color: i[0], name: "冷" },
253
+ { from: 21, to: 50, color: i[1], name: "中" },
254
+ { from: 51, to: 100, color: i[2], name: "热" }
255
+ ]
256
+ }
257
+ }
258
+ },
259
+ stroke: { width: 1, colors: ["var(--color-card)"] },
260
+ xaxis: { axisBorder: { color: "var(--color-border)" }, axisTicks: { color: "var(--color-border)" }, labels: { style: { colors: "var(--color-muted-foreground)" } } },
261
+ yaxis: { labels: { style: { colors: "var(--color-muted-foreground)" } } },
262
+ grid: { borderColor: "var(--color-border)" },
263
+ legend: { show: !1 }
264
+ };
265
+ return /* @__PURE__ */ e(d, { options: h, series: l, type: "heatmap", height: 280 });
266
+ }
267
+ function R() {
268
+ const r = c(), o = ["访问", "注册", "激活", "付费", "续费"], a = [5200, 3120, 1580, 620, 380], n = o.map((s, i) => r[i % r.length]);
269
+ return /* @__PURE__ */ t("div", { children: [
270
+ /* @__PURE__ */ e(d, { options: {
271
+ chart: { type: "bar", toolbar: { show: !1 } },
272
+ plotOptions: {
273
+ bar: {
274
+ horizontal: !0,
275
+ barHeight: "75%",
276
+ distributed: !0,
277
+ borderRadius: 0,
278
+ isFunnel: !0
279
+ }
280
+ },
281
+ dataLabels: {
282
+ enabled: !0,
283
+ formatter: (s, i) => o[i.dataPointIndex],
284
+ style: { colors: ["var(--color-card)"], fontWeight: 600, fontSize: "12px" },
285
+ dropShadow: { enabled: !1 }
286
+ },
287
+ xaxis: { categories: o, labels: { show: !1 } },
288
+ yaxis: { labels: { show: !1 } },
289
+ colors: n,
290
+ legend: { show: !1 },
291
+ grid: { show: !1, padding: { left: 0, right: 0 } },
292
+ tooltip: { y: { formatter: (s) => `${s} 人` } }
293
+ }, series: [{ name: "用户", data: a }], type: "bar", height: 280 }),
294
+ /* @__PURE__ */ e(m, { items: o.map((s, i) => ({ name: `${s} · ${a[i]}`, color: n[i] })) })
295
+ ] });
296
+ }
297
+ function L() {
298
+ const o = c().slice(0, 4), a = [
299
+ {
300
+ data: [
301
+ { x: "需求分析", y: [(/* @__PURE__ */ new Date("2025-03-01")).getTime(), (/* @__PURE__ */ new Date("2025-03-05")).getTime()], fillColor: o[0] },
302
+ { x: "原型设计", y: [(/* @__PURE__ */ new Date("2025-03-04")).getTime(), (/* @__PURE__ */ new Date("2025-03-10")).getTime()], fillColor: o[1] },
303
+ { x: "开发实现", y: [(/* @__PURE__ */ new Date("2025-03-09")).getTime(), (/* @__PURE__ */ new Date("2025-03-20")).getTime()], fillColor: o[2] },
304
+ { x: "测试验收", y: [(/* @__PURE__ */ new Date("2025-03-18")).getTime(), (/* @__PURE__ */ new Date("2025-03-25")).getTime()], fillColor: o[3] }
305
+ ]
306
+ }
307
+ ];
308
+ return /* @__PURE__ */ t("div", { children: [
309
+ /* @__PURE__ */ e(d, { options: {
310
+ chart: { type: "rangeBar", toolbar: { show: !1 } },
311
+ plotOptions: { bar: { horizontal: !0, barHeight: "55%", rangeBarGroupRows: !0, borderRadius: 4 } },
312
+ xaxis: { type: "datetime", axisBorder: { color: "var(--color-border)" }, axisTicks: { color: "var(--color-border)" }, labels: { style: { colors: "var(--color-muted-foreground)" } } },
313
+ yaxis: { labels: { style: { colors: "var(--color-muted-foreground)" } } },
314
+ stroke: { width: 1, colors: ["var(--color-card)"] },
315
+ fill: { type: "solid", opacity: 0.85 },
316
+ dataLabels: { enabled: !1 },
317
+ grid: { borderColor: "var(--color-border)", strokeDashArray: 3 },
318
+ legend: { show: !1 },
319
+ tooltip: { x: { format: "yyyy-MM-dd" } }
320
+ }, series: a, type: "rangeBar", height: 260 }),
321
+ /* @__PURE__ */ e(m, { items: ["需求分析", "原型设计", "开发实现", "测试验收"].map((l, s) => ({ name: l, color: o[s] })) })
322
+ ] });
323
+ }
324
+ function $() {
325
+ return /* @__PURE__ */ t("div", { className: "flex flex-col gap-10", children: [
326
+ /* @__PURE__ */ t("section", { children: [
327
+ /* @__PURE__ */ e("h3", { className: "text-sm font-semibold mb-3", children: "Donut(占比环)" }),
328
+ /* @__PURE__ */ e(v, {})
329
+ ] }),
330
+ /* @__PURE__ */ t("section", { children: [
331
+ /* @__PURE__ */ e("h3", { className: "text-sm font-semibold mb-3", children: "Sparkline(KPI 迷你图)" }),
332
+ /* @__PURE__ */ e(w, {})
333
+ ] }),
334
+ /* @__PURE__ */ t("section", { children: [
335
+ /* @__PURE__ */ e("h3", { className: "text-sm font-semibold mb-3", children: "Column(纵向柱状 · 分组对比)" }),
336
+ /* @__PURE__ */ e(k, {})
337
+ ] }),
338
+ /* @__PURE__ */ t("section", { children: [
339
+ /* @__PURE__ */ e("h3", { className: "text-sm font-semibold mb-3", children: "Bar(横向条形 · 排行)" }),
340
+ /* @__PURE__ */ e(C, {})
341
+ ] }),
342
+ /* @__PURE__ */ t("section", { children: [
343
+ /* @__PURE__ */ e("h3", { className: "text-sm font-semibold mb-3", children: "Line(多序列折线 · 时间趋势)" }),
344
+ /* @__PURE__ */ e(N, {})
345
+ ] }),
346
+ /* @__PURE__ */ t("section", { children: [
347
+ /* @__PURE__ */ e("h3", { className: "text-sm font-semibold mb-3", children: "Area(堆叠面积)" }),
348
+ /* @__PURE__ */ e(z, {})
349
+ ] }),
350
+ /* @__PURE__ */ t("section", { children: [
351
+ /* @__PURE__ */ e("h3", { className: "text-sm font-semibold mb-3", children: "Mixed(柱线组合 · 双轴)" }),
352
+ /* @__PURE__ */ e(T, {})
353
+ ] }),
354
+ /* @__PURE__ */ t("section", { children: [
355
+ /* @__PURE__ */ e("h3", { className: "text-sm font-semibold mb-3", children: "RadialBar(径向进度)" }),
356
+ /* @__PURE__ */ e(B, {})
357
+ ] }),
358
+ /* @__PURE__ */ t("section", { children: [
359
+ /* @__PURE__ */ e("h3", { className: "text-sm font-semibold mb-3", children: "Radar(雷达 · 多维能力)" }),
360
+ /* @__PURE__ */ e(D, {})
361
+ ] }),
362
+ /* @__PURE__ */ t("section", { children: [
363
+ /* @__PURE__ */ e("h3", { className: "text-sm font-semibold mb-3", children: "Heatmap(热力 · 时段密度)" }),
364
+ /* @__PURE__ */ e(A, {})
365
+ ] }),
366
+ /* @__PURE__ */ t("section", { children: [
367
+ /* @__PURE__ */ e("h3", { className: "text-sm font-semibold mb-3", children: "Funnel(转化漏斗)" }),
368
+ /* @__PURE__ */ e(R, {})
369
+ ] }),
370
+ /* @__PURE__ */ t("section", { children: [
371
+ /* @__PURE__ */ e("h3", { className: "text-sm font-semibold mb-3", children: "Timeline(甘特排期 · RangeBar)" }),
372
+ /* @__PURE__ */ e(L, {})
373
+ ] })
374
+ ] });
375
+ }
376
+ export {
377
+ z as ChartArea,
378
+ C as ChartBar,
379
+ k as ChartColumn,
380
+ v as ChartDonut,
381
+ R as ChartFunnel,
382
+ A as ChartHeatmap,
383
+ N as ChartLine,
384
+ T as ChartMixed,
385
+ D as ChartRadar,
386
+ B as ChartRadialBar,
387
+ $ as ChartShowcase,
388
+ w as ChartSparkline,
389
+ L as ChartTimeline
390
+ };
@@ -0,0 +1,2 @@
1
+ export declare function ActionBarBasic(): import("react/jsx-runtime").JSX.Element;
2
+ export declare function ActionBarShowcase(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,35 @@
1
+ import { jsx as r, jsxs as n, Fragment as i } from "react/jsx-runtime";
2
+ import { Save as t, Send as a } from "lucide-react";
3
+ import { ActionBar as o } from "./action-bar.js";
4
+ import { Button as e } from "../../form/button/button.js";
5
+ import { Badge as c } from "../../data-display/badge/badge.js";
6
+ function m() {
7
+ return /* @__PURE__ */ r(
8
+ o,
9
+ {
10
+ summary: /* @__PURE__ */ n("span", { className: "flex flex-wrap items-center gap-2", children: [
11
+ "已选择 ",
12
+ /* @__PURE__ */ r(c, { appearance: "light", children: "6 项" }),
13
+ "可批量分配负责人或导出结果。"
14
+ ] }),
15
+ secondaryActions: /* @__PURE__ */ r(e, { variant: "outline", children: "取消" }),
16
+ actions: /* @__PURE__ */ n(i, { children: [
17
+ /* @__PURE__ */ n(e, { variant: "outline", children: [
18
+ /* @__PURE__ */ r(t, {}),
19
+ "保存草稿"
20
+ ] }),
21
+ /* @__PURE__ */ n(e, { children: [
22
+ /* @__PURE__ */ r(a, {}),
23
+ "提交"
24
+ ] })
25
+ ] })
26
+ }
27
+ );
28
+ }
29
+ function h() {
30
+ return /* @__PURE__ */ r(m, {});
31
+ }
32
+ export {
33
+ m as ActionBarBasic,
34
+ h as ActionBarShowcase
35
+ };
@@ -0,0 +1,2 @@
1
+ export declare function ActionCardBasic(): import("react/jsx-runtime").JSX.Element;
2
+ export declare function ActionCardShowcase(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,34 @@
1
+ import { jsxs as r, jsx as i } from "react/jsx-runtime";
2
+ import { UploadCloud as n } from "lucide-react";
3
+ import { ActionCard as t } from "./action-card.js";
4
+ import { Button as o } from "../../form/button/button.js";
5
+ function c() {
6
+ return /* @__PURE__ */ r("div", { className: "space-y-4", children: [
7
+ /* @__PURE__ */ i(
8
+ t,
9
+ {
10
+ icon: n,
11
+ title: "导入项目数据",
12
+ description: "上传 Excel 或 CSV 文件,系统会自动识别字段并生成导入预览。",
13
+ action: /* @__PURE__ */ i(o, { children: "开始导入" }),
14
+ secondaryAction: /* @__PURE__ */ i(o, { variant: "outline", children: "下载模板" }),
15
+ tone: "primary"
16
+ }
17
+ ),
18
+ /* @__PURE__ */ i(
19
+ t,
20
+ {
21
+ title: "配置通知规则",
22
+ description: "为关键项目节点开启站内信、邮件或企业 IM 通知。",
23
+ action: /* @__PURE__ */ i(o, { variant: "outline", children: "去配置" })
24
+ }
25
+ )
26
+ ] });
27
+ }
28
+ function s() {
29
+ return /* @__PURE__ */ i(c, {});
30
+ }
31
+ export {
32
+ c as ActionCardBasic,
33
+ s as ActionCardShowcase
34
+ };
@@ -0,0 +1,2 @@
1
+ export declare function ActivityFeedBasic(): import("react/jsx-runtime").JSX.Element;
2
+ export declare function ActivityFeedShowcase(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,44 @@
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import { ActivityFeed as t } from "./activity-feed.js";
3
+ import { Badge as a } from "../../data-display/badge/badge.js";
4
+ function r() {
5
+ return /* @__PURE__ */ i(
6
+ t,
7
+ {
8
+ items: [
9
+ {
10
+ id: 1,
11
+ actor: "林青",
12
+ action: "提交了预算审批",
13
+ time: "10:32",
14
+ description: "预算从 ¥720,000 调整为 ¥860,000。",
15
+ avatarFallback: "LQ",
16
+ meta: /* @__PURE__ */ i(a, { variant: "warning", appearance: "light", size: "sm", children: "待审批" })
17
+ },
18
+ {
19
+ id: 2,
20
+ actor: "周然",
21
+ action: "完成了质量规则联调",
22
+ time: "09:18",
23
+ description: "主数据规则命中率已恢复到阈值以上。",
24
+ avatarFallback: "ZR"
25
+ },
26
+ {
27
+ id: 3,
28
+ actor: "陈序",
29
+ action: "更新了项目里程碑",
30
+ time: "昨天",
31
+ description: "验收时间调整到 05-12。",
32
+ avatarFallback: "CX"
33
+ }
34
+ ]
35
+ }
36
+ );
37
+ }
38
+ function n() {
39
+ return /* @__PURE__ */ i(r, {});
40
+ }
41
+ export {
42
+ r as ActivityFeedBasic,
43
+ n as ActivityFeedShowcase
44
+ };
@@ -0,0 +1,2 @@
1
+ export declare function AlertCardList(): import("react/jsx-runtime").JSX.Element;
2
+ export declare function AlertCardShowcase(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,18 @@
1
+ import { jsxs as i, jsx as t } from "react/jsx-runtime";
2
+ import { AlertCard as e } from "./alert-card.js";
3
+ import { Button as r } from "../../form/button/button.js";
4
+ function s() {
5
+ return /* @__PURE__ */ i("div", { className: "space-y-3", children: [
6
+ /* @__PURE__ */ t(e, { title: "同步完成", description: "12 个项目指标已完成同步。", severity: "success" }),
7
+ /* @__PURE__ */ t(e, { title: "预算即将超限", description: "当前项目预算使用率已达到 86%。", severity: "warning", actions: /* @__PURE__ */ t(r, { size: "sm", variant: "outline", children: "查看" }) }),
8
+ /* @__PURE__ */ t(e, { title: "接口调用失败", description: "审批系统连接超时,请检查集成配置。", severity: "destructive" }),
9
+ /* @__PURE__ */ t(e, { title: "版本提示", description: "复合组件可用于后台页面的高频反馈场景。", severity: "info" })
10
+ ] });
11
+ }
12
+ function a() {
13
+ return /* @__PURE__ */ t(s, {});
14
+ }
15
+ export {
16
+ s as AlertCardList,
17
+ a as AlertCardShowcase
18
+ };
@@ -0,0 +1,2 @@
1
+ export declare function ApprovalFlowBasic(): import("react/jsx-runtime").JSX.Element;
2
+ export declare function ApprovalFlowShowcase(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,70 @@
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import { ApprovalFlow as t } from "./approval-flow.js";
3
+ const r = [
4
+ {
5
+ id: 1,
6
+ actor: "范米花儿",
7
+ time: "2024/09/15 09:00",
8
+ status: "started",
9
+ avatarSrc: "/avatar.png",
10
+ avatarFallback: "范"
11
+ },
12
+ {
13
+ id: 2,
14
+ actor: "范米花儿",
15
+ time: "2024/09/15 09:00",
16
+ status: "approved",
17
+ avatarSrc: "/avatar.png",
18
+ avatarFallback: "范"
19
+ },
20
+ {
21
+ id: 3,
22
+ actor: "范米花儿",
23
+ time: "2024/09/15 09:00",
24
+ status: "approved",
25
+ avatarFallback: "F",
26
+ comment: "这里是评论内容,这里是评论内容这里是评论内容这里是评论内容"
27
+ },
28
+ {
29
+ id: 4,
30
+ actor: "范米花儿",
31
+ time: "2024/09/15 09:00",
32
+ status: "processing",
33
+ avatarSrc: "/avatar.png",
34
+ avatarFallback: "范",
35
+ rule: "1人通过即可",
36
+ participants: [
37
+ { id: "a", name: "李四", avatarSrc: "/avatar.png", avatarFallback: "李" },
38
+ { id: "b", name: "李四", avatarSrc: "/avatar.png", avatarFallback: "李" },
39
+ { id: "c", name: "李四", avatarSrc: "/avatar.png", avatarFallback: "李" }
40
+ ]
41
+ },
42
+ {
43
+ id: 5,
44
+ actor: "范米花儿",
45
+ time: "2024/09/15 09:00",
46
+ status: "pending",
47
+ avatarSrc: "/avatar.png",
48
+ avatarFallback: "范"
49
+ }
50
+ ];
51
+ function l() {
52
+ return /* @__PURE__ */ a(
53
+ t,
54
+ {
55
+ tabs: [
56
+ { value: "flow", label: "审批流程" },
57
+ { value: "comments", label: "评论" }
58
+ ],
59
+ defaultActiveTab: "flow",
60
+ items: r
61
+ }
62
+ );
63
+ }
64
+ function e() {
65
+ return /* @__PURE__ */ a("div", { className: "w-full", children: /* @__PURE__ */ a(l, {}) });
66
+ }
67
+ export {
68
+ l as ApprovalFlowBasic,
69
+ e as ApprovalFlowShowcase
70
+ };
@@ -0,0 +1,2 @@
1
+ export declare function AuthShellBasic(): import("react/jsx-runtime").JSX.Element;
2
+ export declare function AuthShellShowcase(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,23 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { AuthShell as o } from "./auth-shell.js";
3
+ import { LoginCard as t, PasswordLoginForm as i } from "../login-card/login-card.js";
4
+ function d() {
5
+ return /* @__PURE__ */ r(
6
+ o,
7
+ {
8
+ brand: "DemoKit Cloud",
9
+ title: "统一身份入口",
10
+ description: "适合管理后台、SaaS 控制台和企业内部系统的登录页外壳。",
11
+ aside: /* @__PURE__ */ r("div", { className: "rounded-xl border border-border bg-card/80 p-4 text-sm text-muted-foreground", children: "今日已有 328 位成员通过统一身份入口访问工作台。" }),
12
+ footer: "登录即表示你同意安全策略和隐私条款。",
13
+ children: /* @__PURE__ */ r(t, { title: "欢迎回来", description: "使用账号密码登录", children: /* @__PURE__ */ r(i, { onSubmit: (e) => e.preventDefault() }) })
14
+ }
15
+ );
16
+ }
17
+ function a() {
18
+ return /* @__PURE__ */ r(d, {});
19
+ }
20
+ export {
21
+ d as AuthShellBasic,
22
+ a as AuthShellShowcase
23
+ };
@@ -0,0 +1,2 @@
1
+ export declare function BoardToolbarBasic(): import("react/jsx-runtime").JSX.Element;
2
+ export declare function BoardToolbarShowcase(): import("react/jsx-runtime").JSX.Element;