@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,24 @@
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 interface ChartFunnelStage {
12
+ label: string;
13
+ value: number;
14
+ }
15
+ export interface ChartFunnelProps {
16
+ stages?: ChartFunnelStage[];
17
+ height?: number;
18
+ seriesName?: string;
19
+ unit?: string;
20
+ valueFormatter?: (value: number, stage: ChartFunnelStage) => string;
21
+ }
22
+ export declare function ChartFunnel({ stages, height, seriesName, unit, valueFormatter, }?: ChartFunnelProps): import("react/jsx-runtime").JSX.Element;
23
+ export declare function ChartTimeline(): import("react/jsx-runtime").JSX.Element;
24
+ export declare function ChartShowcase(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,422 @@
1
+ import { jsxs as a, jsx as e } from "react/jsx-runtime";
2
+ import { Suspense as g, lazy as y } from "react";
3
+ import { useChartPalette as c } from "../../../tokens/chart-palette.js";
4
+ const v = y(async () => {
5
+ const o = (await import("react-apexcharts")).default, t = o && typeof o == "object" && "default" in o ? o.default : o;
6
+ if (!t)
7
+ throw new Error("react-apexcharts default export is unavailable");
8
+ return { default: t };
9
+ });
10
+ function d(r) {
11
+ return /* @__PURE__ */ e(
12
+ g,
13
+ {
14
+ fallback: /* @__PURE__ */ e(
15
+ "div",
16
+ {
17
+ className: "flex items-center justify-center rounded-md bg-muted/20 text-xs text-muted-foreground",
18
+ style: { height: r.height, width: r.width },
19
+ children: "加载图表..."
20
+ }
21
+ ),
22
+ children: /* @__PURE__ */ e(v, { ...r })
23
+ }
24
+ );
25
+ }
26
+ function u({ items: r }) {
27
+ return /* @__PURE__ */ e("div", { className: "flex flex-wrap gap-x-4 gap-y-1 text-sm mt-2", children: r.map((o) => /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
28
+ /* @__PURE__ */ e("span", { className: "size-2 rounded-full shrink-0", style: { background: o.color } }),
29
+ /* @__PURE__ */ e("span", { children: o.name })
30
+ ] }, o.name)) });
31
+ }
32
+ function w() {
33
+ const r = c(), o = ["文档模板", "检查单", "评审规范", "其他"], t = [40, 24, 18, 18], n = o.map((s, m) => r[m % r.length]);
34
+ return /* @__PURE__ */ a("div", { className: "flex items-center gap-6", children: [
35
+ /* @__PURE__ */ e(d, { options: {
36
+ chart: { type: "donut" },
37
+ labels: o,
38
+ colors: n,
39
+ stroke: { width: 2, colors: ["var(--color-card)"] },
40
+ legend: { show: !1 },
41
+ dataLabels: { enabled: !1 },
42
+ plotOptions: {
43
+ pie: {
44
+ donut: {
45
+ size: "70%",
46
+ labels: {
47
+ show: !0,
48
+ name: { show: !0, fontSize: "12px" },
49
+ value: { show: !0, fontSize: "22px", fontWeight: 600 },
50
+ total: { show: !0, label: "总占比", formatter: () => "100%" }
51
+ }
52
+ }
53
+ }
54
+ }
55
+ }, series: t, type: "donut", height: 200, width: 200 }),
56
+ /* @__PURE__ */ e("div", { className: "grid grid-cols-1 gap-2 text-sm", children: o.map((s, m) => /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
57
+ /* @__PURE__ */ e("span", { className: "size-2 rounded-full shrink-0", style: { background: n[m] } }),
58
+ /* @__PURE__ */ e("span", { className: "flex-1", children: s }),
59
+ /* @__PURE__ */ a("span", { className: "font-mono text-xs text-muted-foreground", children: [
60
+ t[m],
61
+ "%"
62
+ ] })
63
+ ] }, s)) })
64
+ ] });
65
+ }
66
+ function k() {
67
+ const r = c(), o = {
68
+ chart: { type: "area", sparkline: { enabled: !0 } },
69
+ stroke: { curve: "smooth", width: 2, colors: [r[0]] },
70
+ fill: { type: "gradient", gradient: { opacityFrom: 0.35, opacityTo: 0 } },
71
+ colors: [r[0]],
72
+ tooltip: { enabled: !1 }
73
+ };
74
+ return /* @__PURE__ */ a("div", { className: "flex items-center gap-6", children: [
75
+ /* @__PURE__ */ a("div", { children: [
76
+ /* @__PURE__ */ e("div", { className: "text-xs text-muted-foreground", children: "本周流程" }),
77
+ /* @__PURE__ */ e("div", { className: "text-2xl font-semibold", children: "14" })
78
+ ] }),
79
+ /* @__PURE__ */ e(d, { options: o, series: [{ data: [8, 10, 9, 11, 13, 12, 14] }], type: "area", height: 42, width: 120 })
80
+ ] });
81
+ }
82
+ function N() {
83
+ const r = c(), o = [
84
+ { name: "2024", data: [44, 55, 57, 56] },
85
+ { name: "2025", data: [76, 85, 101, 98] }
86
+ ], t = r.slice(0, 2);
87
+ return /* @__PURE__ */ a("div", { children: [
88
+ /* @__PURE__ */ e(d, { options: {
89
+ chart: { type: "bar", toolbar: { show: !1 } },
90
+ plotOptions: { bar: { horizontal: !1, columnWidth: "50%", borderRadius: 4, borderRadiusApplication: "end" } },
91
+ dataLabels: { enabled: !1 },
92
+ stroke: { show: !0, width: 2, colors: ["transparent"] },
93
+ xaxis: { categories: ["Q1", "Q2", "Q3", "Q4"], axisBorder: { color: "var(--color-border)" }, axisTicks: { color: "var(--color-border)" } },
94
+ yaxis: { labels: { style: { colors: "var(--color-muted-foreground)" } } },
95
+ colors: t,
96
+ fill: { opacity: 1 },
97
+ tooltip: { y: { formatter: (l) => `${l} 万` } },
98
+ legend: { show: !1 },
99
+ grid: { borderColor: "var(--color-border)", strokeDashArray: 3 }
100
+ }, series: o, type: "bar", height: 260 }),
101
+ /* @__PURE__ */ e(u, { items: o.map((l, s) => ({ name: l.name, color: t[s] })) })
102
+ ] });
103
+ }
104
+ function C() {
105
+ const r = c(), o = ["研发部", "产品部", "设计部", "运营部", "市场部", "行政部"], t = [44, 55, 57, 56, 61, 58], n = {
106
+ chart: { type: "bar", toolbar: { show: !1 } },
107
+ plotOptions: { bar: { horizontal: !0, borderRadius: 4, borderRadiusApplication: "end", barHeight: "60%" } },
108
+ dataLabels: { enabled: !0, style: { colors: ["var(--color-card)"], fontSize: "11px", fontWeight: 600 } },
109
+ xaxis: { categories: o, axisBorder: { color: "var(--color-border)" }, axisTicks: { color: "var(--color-border)" }, labels: { style: { colors: "var(--color-muted-foreground)" } } },
110
+ yaxis: { labels: { style: { colors: "var(--color-muted-foreground)" } } },
111
+ colors: [r[0]],
112
+ grid: { borderColor: "var(--color-border)", strokeDashArray: 3 },
113
+ legend: { show: !1 },
114
+ tooltip: { y: { formatter: (l) => `${l} 人` } }
115
+ };
116
+ return /* @__PURE__ */ e(d, { options: n, series: [{ name: "人员数", data: t }], type: "bar", height: 280 });
117
+ }
118
+ function z() {
119
+ const r = c(), o = [
120
+ { name: "申报量", data: [31, 40, 28, 51, 42, 109] },
121
+ { name: "通过数", data: [11, 32, 45, 32, 34, 52] },
122
+ { name: "驳回数", data: [4, 8, 6, 10, 7, 9] }
123
+ ], t = r.slice(0, 3);
124
+ return /* @__PURE__ */ a("div", { children: [
125
+ /* @__PURE__ */ e(d, { options: {
126
+ chart: { type: "line", toolbar: { show: !1 }, zoom: { enabled: !1 } },
127
+ stroke: { curve: "smooth", width: 2 },
128
+ markers: { size: 0, hover: { size: 5 } },
129
+ 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)" } } },
130
+ yaxis: { labels: { style: { colors: "var(--color-muted-foreground)" } } },
131
+ colors: t,
132
+ legend: { show: !1 },
133
+ grid: { borderColor: "var(--color-border)", strokeDashArray: 3 },
134
+ tooltip: { shared: !0, intersect: !1 }
135
+ }, series: o, type: "line", height: 260 }),
136
+ /* @__PURE__ */ e(u, { items: o.map((l, s) => ({ name: l.name, color: t[s] })) })
137
+ ] });
138
+ }
139
+ function T() {
140
+ const r = c(), o = [
141
+ { name: "研发", data: [31, 40, 28, 51, 42, 20, 15] },
142
+ { name: "设计", data: [11, 32, 45, 32, 34, 18, 12] },
143
+ { name: "测试", data: [14, 18, 22, 28, 26, 15, 10] }
144
+ ], t = r.slice(0, 3);
145
+ return /* @__PURE__ */ a("div", { children: [
146
+ /* @__PURE__ */ e(d, { options: {
147
+ chart: { type: "area", stacked: !0, toolbar: { show: !1 }, zoom: { enabled: !1 } },
148
+ stroke: { curve: "smooth", width: 2, colors: ["var(--color-card)"] },
149
+ fill: { type: "gradient", gradient: { opacityFrom: 0.7, opacityTo: 0.2 } },
150
+ xaxis: { categories: ["周一", "周二", "周三", "周四", "周五", "周六", "周日"], axisBorder: { color: "var(--color-border)" }, axisTicks: { color: "var(--color-border)" }, labels: { style: { colors: "var(--color-muted-foreground)" } } },
151
+ yaxis: { labels: { style: { colors: "var(--color-muted-foreground)" } } },
152
+ colors: t,
153
+ legend: { show: !1 },
154
+ grid: { borderColor: "var(--color-border)", strokeDashArray: 3 },
155
+ dataLabels: { enabled: !1 },
156
+ tooltip: { shared: !0 }
157
+ }, series: o, type: "area", height: 260 }),
158
+ /* @__PURE__ */ e(u, { items: o.map((l, s) => ({ name: l.name, color: t[s] })) })
159
+ ] });
160
+ }
161
+ function B() {
162
+ const r = c(), o = [r[0], r[2]];
163
+ return /* @__PURE__ */ a("div", { children: [
164
+ /* @__PURE__ */ e(d, { options: {
165
+ chart: { toolbar: { show: !1 } },
166
+ stroke: { width: [0, 3], curve: "smooth" },
167
+ plotOptions: { bar: { columnWidth: "40%", borderRadius: 4, borderRadiusApplication: "end" } },
168
+ dataLabels: { enabled: !1 },
169
+ 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)" } } },
170
+ yaxis: [
171
+ { seriesName: "营收", title: { text: "营收 (万)", style: { color: "var(--color-muted-foreground)" } }, labels: { style: { colors: "var(--color-muted-foreground)" } } },
172
+ { seriesName: "增长率", opposite: !0, title: { text: "增长率 (%)", style: { color: "var(--color-muted-foreground)" } }, labels: { style: { colors: "var(--color-muted-foreground)" } } }
173
+ ],
174
+ colors: o,
175
+ grid: { borderColor: "var(--color-border)", strokeDashArray: 3 },
176
+ legend: { show: !1 },
177
+ tooltip: { shared: !0, intersect: !1 }
178
+ }, series: [
179
+ { name: "营收", type: "column", data: [120, 132, 108, 145, 168, 155] },
180
+ { name: "增长率", type: "line", data: [12, 14, -8, 15, 18, 10] }
181
+ ], type: "line", height: 260 }),
182
+ /* @__PURE__ */ e(u, { items: [{ name: "营收", color: o[0] }, { name: "增长率", color: o[1] }] })
183
+ ] });
184
+ }
185
+ function D() {
186
+ const r = c(), o = {
187
+ chart: { type: "radialBar" },
188
+ plotOptions: {
189
+ radialBar: {
190
+ hollow: { size: "62%" },
191
+ track: { background: "var(--color-muted)", strokeWidth: "100%" },
192
+ dataLabels: {
193
+ name: { show: !0, fontSize: "12px", color: "var(--color-muted-foreground)", offsetY: -4 },
194
+ value: { show: !0, fontSize: "26px", fontWeight: 600, color: "var(--color-foreground)", offsetY: 6, formatter: (t) => `${t}%` }
195
+ }
196
+ }
197
+ },
198
+ colors: [r[0]],
199
+ stroke: { lineCap: "round" },
200
+ labels: ["达成率"]
201
+ };
202
+ return /* @__PURE__ */ a("div", { className: "flex items-center gap-6", children: [
203
+ /* @__PURE__ */ e(d, { options: o, series: [72], type: "radialBar", height: 200, width: 200 }),
204
+ /* @__PURE__ */ a("div", { className: "grid grid-cols-1 gap-2 text-sm", children: [
205
+ /* @__PURE__ */ e("div", { className: "text-muted-foreground text-xs", children: "季度目标" }),
206
+ /* @__PURE__ */ a("div", { children: [
207
+ /* @__PURE__ */ e("span", { className: "text-2xl font-semibold font-mono", children: "72" }),
208
+ /* @__PURE__ */ e("span", { className: "text-muted-foreground text-sm", children: " / 100" })
209
+ ] }),
210
+ /* @__PURE__ */ e("div", { className: "text-xs text-muted-foreground", children: "剩余 28 个工作日" })
211
+ ] })
212
+ ] });
213
+ }
214
+ function A() {
215
+ const r = c(), o = [
216
+ { name: "当前版本", data: [80, 65, 70, 88, 75, 82] },
217
+ { name: "上一版本", data: [65, 55, 60, 70, 68, 72] }
218
+ ], t = r.slice(0, 2), n = {
219
+ chart: { type: "radar", toolbar: { show: !1 } },
220
+ xaxis: { categories: ["响应", "稳定", "扩展", "安全", "易用", "性能"], labels: { style: { colors: Array(6).fill("var(--color-muted-foreground)") } } },
221
+ yaxis: { show: !1 },
222
+ colors: t,
223
+ stroke: { width: 2 },
224
+ fill: { opacity: 0.2 },
225
+ markers: { size: 3, strokeColors: t },
226
+ legend: { show: !1 },
227
+ plotOptions: { radar: { polygons: { strokeColors: "var(--color-border)", connectorColors: "var(--color-border)" } } }
228
+ };
229
+ return /* @__PURE__ */ a("div", { children: [
230
+ /* @__PURE__ */ e(d, { options: n, series: o, type: "radar", height: 280 }),
231
+ /* @__PURE__ */ e(u, { items: o.map((l, s) => ({ name: l.name, color: t[s] })) })
232
+ ] });
233
+ }
234
+ function L() {
235
+ const r = c(), o = ["0", "3", "6", "9", "12", "15", "18", "21"], t = ["周一", "周二", "周三", "周四", "周五", "周六", "周日"], n = [
236
+ [5, 2, 12, 58, 72, 64, 48, 22],
237
+ [7, 3, 15, 62, 78, 70, 52, 25],
238
+ [6, 2, 14, 60, 80, 74, 55, 28],
239
+ [8, 4, 16, 65, 82, 76, 58, 30],
240
+ [10, 5, 18, 68, 85, 80, 62, 35],
241
+ [12, 8, 22, 45, 55, 50, 42, 28],
242
+ [15, 10, 20, 38, 42, 40, 35, 22]
243
+ ], l = t.map((p, f) => ({
244
+ name: p,
245
+ data: o.map((x, i) => ({ x: `${x}时`, y: n[f][i] }))
246
+ })), s = r[0], m = [r[0], r[2], r[4]], b = {
247
+ chart: { type: "heatmap", toolbar: { show: !1 } },
248
+ dataLabels: { enabled: !1 },
249
+ colors: [s],
250
+ plotOptions: {
251
+ heatmap: {
252
+ shadeIntensity: 0.5,
253
+ radius: 2,
254
+ useFillColorAsStroke: !1,
255
+ colorScale: {
256
+ ranges: [
257
+ { from: 0, to: 20, color: m[0], name: "冷" },
258
+ { from: 21, to: 50, color: m[1], name: "中" },
259
+ { from: 51, to: 100, color: m[2], name: "热" }
260
+ ]
261
+ }
262
+ }
263
+ },
264
+ stroke: { width: 1, colors: ["var(--color-card)"] },
265
+ xaxis: { axisBorder: { color: "var(--color-border)" }, axisTicks: { color: "var(--color-border)" }, labels: { style: { colors: "var(--color-muted-foreground)" } } },
266
+ yaxis: { labels: { style: { colors: "var(--color-muted-foreground)" } } },
267
+ grid: { borderColor: "var(--color-border)" },
268
+ legend: { show: !1 }
269
+ };
270
+ return /* @__PURE__ */ e(d, { options: b, series: l, type: "heatmap", height: 280 });
271
+ }
272
+ const S = [
273
+ { label: "访问", value: 5200 },
274
+ { label: "注册", value: 3120 },
275
+ { label: "激活", value: 1580 },
276
+ { label: "付费", value: 620 },
277
+ { label: "续费", value: 380 }
278
+ ];
279
+ function R({
280
+ stages: r = S,
281
+ height: o = 280,
282
+ seriesName: t = "用户",
283
+ unit: n = "人",
284
+ valueFormatter: l
285
+ } = {}) {
286
+ const s = c(), m = r.map((i) => i.label), b = r.map((i) => i.value), p = r.map((i, h) => s[h % s.length]), f = l ?? ((i) => `${new Intl.NumberFormat("zh-CN", {
287
+ maximumFractionDigits: 1
288
+ }).format(i)} ${n}`);
289
+ return /* @__PURE__ */ a("div", { children: [
290
+ /* @__PURE__ */ e(d, { options: {
291
+ chart: { type: "bar", toolbar: { show: !1 } },
292
+ plotOptions: {
293
+ bar: {
294
+ horizontal: !0,
295
+ barHeight: "75%",
296
+ distributed: !0,
297
+ borderRadius: 0,
298
+ isFunnel: !0
299
+ }
300
+ },
301
+ dataLabels: {
302
+ enabled: !0,
303
+ formatter: (i, h) => m[h.dataPointIndex],
304
+ style: { colors: ["var(--color-card)"], fontWeight: 600, fontSize: "12px" },
305
+ dropShadow: { enabled: !1 }
306
+ },
307
+ xaxis: { categories: m, labels: { show: !1 } },
308
+ yaxis: { labels: { show: !1 } },
309
+ colors: p,
310
+ legend: { show: !1 },
311
+ grid: { show: !1, padding: { left: 0, right: 0 } },
312
+ tooltip: {
313
+ y: {
314
+ formatter: (i, h) => f(i, r[h.dataPointIndex])
315
+ }
316
+ }
317
+ }, series: [{ name: t, data: b }], type: "bar", height: o }),
318
+ /* @__PURE__ */ e(
319
+ u,
320
+ {
321
+ items: r.map((i, h) => ({
322
+ name: `${i.label} · ${f(i.value, i)}`,
323
+ color: p[h]
324
+ }))
325
+ }
326
+ )
327
+ ] });
328
+ }
329
+ function F() {
330
+ const o = c().slice(0, 4), t = [
331
+ {
332
+ data: [
333
+ { x: "需求分析", y: [(/* @__PURE__ */ new Date("2025-03-01")).getTime(), (/* @__PURE__ */ new Date("2025-03-05")).getTime()], fillColor: o[0] },
334
+ { x: "原型设计", y: [(/* @__PURE__ */ new Date("2025-03-04")).getTime(), (/* @__PURE__ */ new Date("2025-03-10")).getTime()], fillColor: o[1] },
335
+ { x: "开发实现", y: [(/* @__PURE__ */ new Date("2025-03-09")).getTime(), (/* @__PURE__ */ new Date("2025-03-20")).getTime()], fillColor: o[2] },
336
+ { x: "测试验收", y: [(/* @__PURE__ */ new Date("2025-03-18")).getTime(), (/* @__PURE__ */ new Date("2025-03-25")).getTime()], fillColor: o[3] }
337
+ ]
338
+ }
339
+ ];
340
+ return /* @__PURE__ */ a("div", { children: [
341
+ /* @__PURE__ */ e(d, { options: {
342
+ chart: { type: "rangeBar", toolbar: { show: !1 } },
343
+ plotOptions: { bar: { horizontal: !0, barHeight: "55%", rangeBarGroupRows: !0, borderRadius: 4 } },
344
+ xaxis: { type: "datetime", axisBorder: { color: "var(--color-border)" }, axisTicks: { color: "var(--color-border)" }, labels: { style: { colors: "var(--color-muted-foreground)" } } },
345
+ yaxis: { labels: { style: { colors: "var(--color-muted-foreground)" } } },
346
+ stroke: { width: 1, colors: ["var(--color-card)"] },
347
+ fill: { type: "solid", opacity: 0.85 },
348
+ dataLabels: { enabled: !1 },
349
+ grid: { borderColor: "var(--color-border)", strokeDashArray: 3 },
350
+ legend: { show: !1 },
351
+ tooltip: { x: { format: "yyyy-MM-dd" } }
352
+ }, series: t, type: "rangeBar", height: 260 }),
353
+ /* @__PURE__ */ e(u, { items: ["需求分析", "原型设计", "开发实现", "测试验收"].map((l, s) => ({ name: l, color: o[s] })) })
354
+ ] });
355
+ }
356
+ function E() {
357
+ return /* @__PURE__ */ a("div", { className: "flex flex-col gap-10", children: [
358
+ /* @__PURE__ */ a("section", { children: [
359
+ /* @__PURE__ */ e("h3", { className: "text-sm font-semibold mb-3", children: "Donut(占比环)" }),
360
+ /* @__PURE__ */ e(w, {})
361
+ ] }),
362
+ /* @__PURE__ */ a("section", { children: [
363
+ /* @__PURE__ */ e("h3", { className: "text-sm font-semibold mb-3", children: "Sparkline(KPI 迷你图)" }),
364
+ /* @__PURE__ */ e(k, {})
365
+ ] }),
366
+ /* @__PURE__ */ a("section", { children: [
367
+ /* @__PURE__ */ e("h3", { className: "text-sm font-semibold mb-3", children: "Column(纵向柱状 · 分组对比)" }),
368
+ /* @__PURE__ */ e(N, {})
369
+ ] }),
370
+ /* @__PURE__ */ a("section", { children: [
371
+ /* @__PURE__ */ e("h3", { className: "text-sm font-semibold mb-3", children: "Bar(横向条形 · 排行)" }),
372
+ /* @__PURE__ */ e(C, {})
373
+ ] }),
374
+ /* @__PURE__ */ a("section", { children: [
375
+ /* @__PURE__ */ e("h3", { className: "text-sm font-semibold mb-3", children: "Line(多序列折线 · 时间趋势)" }),
376
+ /* @__PURE__ */ e(z, {})
377
+ ] }),
378
+ /* @__PURE__ */ a("section", { children: [
379
+ /* @__PURE__ */ e("h3", { className: "text-sm font-semibold mb-3", children: "Area(堆叠面积)" }),
380
+ /* @__PURE__ */ e(T, {})
381
+ ] }),
382
+ /* @__PURE__ */ a("section", { children: [
383
+ /* @__PURE__ */ e("h3", { className: "text-sm font-semibold mb-3", children: "Mixed(柱线组合 · 双轴)" }),
384
+ /* @__PURE__ */ e(B, {})
385
+ ] }),
386
+ /* @__PURE__ */ a("section", { children: [
387
+ /* @__PURE__ */ e("h3", { className: "text-sm font-semibold mb-3", children: "RadialBar(径向进度)" }),
388
+ /* @__PURE__ */ e(D, {})
389
+ ] }),
390
+ /* @__PURE__ */ a("section", { children: [
391
+ /* @__PURE__ */ e("h3", { className: "text-sm font-semibold mb-3", children: "Radar(雷达 · 多维能力)" }),
392
+ /* @__PURE__ */ e(A, {})
393
+ ] }),
394
+ /* @__PURE__ */ a("section", { children: [
395
+ /* @__PURE__ */ e("h3", { className: "text-sm font-semibold mb-3", children: "Heatmap(热力 · 时段密度)" }),
396
+ /* @__PURE__ */ e(L, {})
397
+ ] }),
398
+ /* @__PURE__ */ a("section", { children: [
399
+ /* @__PURE__ */ e("h3", { className: "text-sm font-semibold mb-3", children: "Funnel(转化漏斗)" }),
400
+ /* @__PURE__ */ e(R, {})
401
+ ] }),
402
+ /* @__PURE__ */ a("section", { children: [
403
+ /* @__PURE__ */ e("h3", { className: "text-sm font-semibold mb-3", children: "Timeline(甘特排期 · RangeBar)" }),
404
+ /* @__PURE__ */ e(F, {})
405
+ ] })
406
+ ] });
407
+ }
408
+ export {
409
+ T as ChartArea,
410
+ C as ChartBar,
411
+ N as ChartColumn,
412
+ w as ChartDonut,
413
+ R as ChartFunnel,
414
+ L as ChartHeatmap,
415
+ z as ChartLine,
416
+ B as ChartMixed,
417
+ A as ChartRadar,
418
+ D as ChartRadialBar,
419
+ E as ChartShowcase,
420
+ k as ChartSparkline,
421
+ F as ChartTimeline
422
+ };
@@ -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;