@demokit-ui/demokit 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/dist/app/demo1-shell.js +195 -188
- package/dist/app/tweak-panel.d.ts +1 -2
- package/dist/app/tweak-panel.js +20 -4
- package/dist/index.js +811 -479
- package/dist/kit/components/chart/chart/chart.examples.d.ts +24 -0
- package/dist/kit/components/chart/chart/chart.examples.js +422 -0
- package/dist/kit/components/composite/action-bar/action-bar.examples.d.ts +2 -0
- package/dist/kit/components/composite/action-bar/action-bar.examples.js +35 -0
- package/dist/kit/components/composite/action-card/action-card.examples.d.ts +2 -0
- package/dist/kit/components/composite/action-card/action-card.examples.js +34 -0
- package/dist/kit/components/composite/activity-feed/activity-feed.examples.d.ts +2 -0
- package/dist/kit/components/composite/activity-feed/activity-feed.examples.js +44 -0
- package/dist/kit/components/composite/alert-card/alert-card.examples.d.ts +2 -0
- package/dist/kit/components/composite/alert-card/alert-card.examples.js +18 -0
- package/dist/kit/components/composite/approval-flow/approval-flow.examples.d.ts +2 -0
- package/dist/kit/components/composite/approval-flow/approval-flow.examples.js +70 -0
- package/dist/kit/components/composite/auth-shell/auth-shell.examples.d.ts +2 -0
- package/dist/kit/components/composite/auth-shell/auth-shell.examples.js +23 -0
- package/dist/kit/components/composite/board-toolbar/board-toolbar.examples.d.ts +2 -0
- package/dist/kit/components/composite/board-toolbar/board-toolbar.examples.js +32 -0
- package/dist/kit/components/composite/chart-card/chart-card.examples.d.ts +3 -0
- package/dist/kit/components/composite/chart-card/chart-card.examples.js +58 -0
- package/dist/kit/components/composite/chart-toolbar/chart-toolbar.examples.d.ts +2 -0
- package/dist/kit/components/composite/chart-toolbar/chart-toolbar.examples.js +39 -0
- package/dist/kit/components/composite/data-section/data-section.examples.d.ts +3 -0
- package/dist/kit/components/composite/data-section/data-section.examples.js +48 -0
- package/dist/kit/components/composite/description-grid/description-grid.examples.d.ts +2 -0
- package/dist/kit/components/composite/description-grid/description-grid.examples.js +30 -0
- package/dist/kit/components/composite/detail-header/detail-header.examples.d.ts +2 -0
- package/dist/kit/components/composite/detail-header/detail-header.examples.js +37 -0
- package/dist/kit/components/composite/filter-panel/filter-panel.examples.d.ts +2 -0
- package/dist/kit/components/composite/filter-panel/filter-panel.examples.js +63 -0
- package/dist/kit/components/composite/filter-toolbar/filter-toolbar.examples.d.ts +2 -0
- package/dist/kit/components/composite/filter-toolbar/filter-toolbar.examples.js +39 -0
- package/dist/kit/components/composite/forgot-password-form/forgot-password-form.examples.d.ts +2 -0
- package/dist/kit/components/composite/forgot-password-form/forgot-password-form.examples.js +19 -0
- package/dist/kit/components/composite/form-section/form-section.examples.d.ts +2 -0
- package/dist/kit/components/composite/form-section/form-section.examples.js +40 -0
- package/dist/kit/components/composite/kanban-board/kanban-board.examples.d.ts +2 -0
- package/dist/kit/components/composite/kanban-board/kanban-board.examples.js +72 -0
- package/dist/kit/components/composite/login-card/login-card.examples.d.ts +3 -0
- package/dist/kit/components/composite/login-card/login-card.examples.js +30 -0
- package/dist/kit/components/composite/message-list-card/message-list-card.examples.d.ts +2 -0
- package/dist/kit/components/composite/message-list-card/message-list-card.examples.js +56 -0
- package/dist/kit/components/composite/metric-card/metric-card.examples.d.ts +2 -0
- package/dist/kit/components/composite/metric-card/metric-card.examples.js +50 -0
- package/dist/kit/components/composite/milestone-card/milestone-card.examples.d.ts +2 -0
- package/dist/kit/components/composite/milestone-card/milestone-card.examples.js +54 -0
- package/dist/kit/components/composite/oauth-login-buttons/oauth-login-buttons.examples.d.ts +2 -0
- package/dist/kit/components/composite/oauth-login-buttons/oauth-login-buttons.examples.js +24 -0
- package/dist/kit/components/composite/page-header/page-header.examples.d.ts +3 -0
- package/dist/kit/components/composite/page-header/page-header.examples.js +56 -0
- package/dist/kit/components/composite/profile-card/profile-card.examples.d.ts +2 -0
- package/dist/kit/components/composite/profile-card/profile-card.examples.js +45 -0
- package/dist/kit/components/composite/progress-card/progress-card.examples.d.ts +2 -0
- package/dist/kit/components/composite/progress-card/progress-card.examples.js +42 -0
- package/dist/kit/components/composite/project-card/project-card.examples.d.ts +2 -0
- package/dist/kit/components/composite/project-card/project-card.examples.js +48 -0
- package/dist/kit/components/composite/shortcut-card/shortcut-card.examples.d.ts +2 -0
- package/dist/kit/components/composite/shortcut-card/shortcut-card.examples.js +18 -0
- package/dist/kit/components/composite/sprint-summary/sprint-summary.examples.d.ts +2 -0
- package/dist/kit/components/composite/sprint-summary/sprint-summary.examples.js +27 -0
- package/dist/kit/components/composite/state-panel/state-panel.examples.d.ts +2 -0
- package/dist/kit/components/composite/state-panel/state-panel.examples.js +48 -0
- package/dist/kit/components/composite/summary-card/summary-card.examples.d.ts +2 -0
- package/dist/kit/components/composite/summary-card/summary-card.examples.js +32 -0
- package/dist/kit/components/composite/task-card/task-card.examples.d.ts +2 -0
- package/dist/kit/components/composite/task-card/task-card.examples.js +39 -0
- package/dist/kit/components/composite/timeline/timeline.examples.d.ts +2 -0
- package/dist/kit/components/composite/timeline/timeline.examples.js +75 -0
- package/dist/kit/components/composite/todo-card/todo-card.examples.d.ts +2 -0
- package/dist/kit/components/composite/todo-card/todo-card.examples.js +42 -0
- package/dist/kit/components/data-display/avatar/avatar.examples.d.ts +7 -0
- package/dist/kit/components/data-display/avatar/avatar.examples.js +48 -0
- package/dist/kit/components/data-display/avatar-group/avatar-group.examples.d.ts +3 -0
- package/dist/kit/components/data-display/avatar-group/avatar-group.examples.js +35 -0
- package/dist/kit/components/data-display/badge/badge.examples.d.ts +9 -0
- package/dist/kit/components/data-display/badge/badge.examples.js +57 -0
- package/dist/kit/components/data-display/card/card.examples.d.ts +16 -0
- package/dist/kit/components/data-display/card/card.examples.js +72 -0
- package/dist/kit/components/data-display/data-grid/data-grid.examples.d.ts +2 -0
- package/dist/kit/components/data-display/data-grid/data-grid.examples.js +92 -0
- package/dist/kit/components/data-display/kbd/kbd.examples.d.ts +3 -0
- package/dist/kit/components/data-display/kbd/kbd.examples.js +43 -0
- package/dist/kit/components/data-display/money-amount/money-amount.examples.d.ts +1 -0
- package/dist/kit/components/data-display/money-amount/money-amount.examples.js +26 -0
- package/dist/kit/components/data-display/progress/progress.examples.d.ts +3 -0
- package/dist/kit/components/data-display/progress/progress.examples.js +45 -0
- package/dist/kit/components/data-display/skeleton/skeleton.examples.d.ts +3 -0
- package/dist/kit/components/data-display/skeleton/skeleton.examples.js +37 -0
- package/dist/kit/components/data-display/sliding-number/sliding-number.examples.d.ts +3 -0
- package/dist/kit/components/data-display/sliding-number/sliding-number.examples.js +42 -0
- package/dist/kit/components/data-display/stepper/stepper.examples.d.ts +2 -0
- package/dist/kit/components/data-display/stepper/stepper.examples.js +28 -0
- package/dist/kit/components/data-display/table/table.examples.d.ts +4 -0
- package/dist/kit/components/data-display/table/table.examples.js +78 -0
- package/dist/kit/components/decorative/aurora-background/aurora-background.examples.d.ts +2 -0
- package/dist/kit/components/decorative/aurora-background/aurora-background.examples.js +22 -0
- package/dist/kit/components/decorative/grid-background/grid-background.examples.d.ts +4 -0
- package/dist/kit/components/decorative/grid-background/grid-background.examples.js +42 -0
- package/dist/kit/components/decorative/shimmering-text/shimmering-text.examples.d.ts +4 -0
- package/dist/kit/components/decorative/shimmering-text/shimmering-text.examples.js +54 -0
- package/dist/kit/components/decorative/text-reveal/text-reveal.examples.d.ts +2 -0
- package/dist/kit/components/decorative/text-reveal/text-reveal.examples.js +46 -0
- package/dist/kit/components/feedback/alert/alert.examples.d.ts +2 -0
- package/dist/kit/components/feedback/alert/alert.examples.js +37 -0
- package/dist/kit/components/feedback/alert-dialog/alert-dialog.examples.d.ts +2 -0
- package/dist/kit/components/feedback/alert-dialog/alert-dialog.examples.js +28 -0
- package/dist/kit/components/feedback/context-menu/context-menu.examples.d.ts +2 -0
- package/dist/kit/components/feedback/context-menu/context-menu.examples.js +33 -0
- package/dist/kit/components/feedback/dialog/dialog.examples.d.ts +2 -0
- package/dist/kit/components/feedback/dialog/dialog.examples.js +51 -0
- package/dist/kit/components/feedback/drawer/drawer.examples.d.ts +2 -0
- package/dist/kit/components/feedback/drawer/drawer.examples.js +29 -0
- package/dist/kit/components/feedback/dropdown-menu/dropdown-menu.examples.d.ts +3 -0
- package/dist/kit/components/feedback/dropdown-menu/dropdown-menu.examples.js +54 -0
- package/dist/kit/components/feedback/hover-card/hover-card.examples.d.ts +2 -0
- package/dist/kit/components/feedback/hover-card/hover-card.examples.js +27 -0
- package/dist/kit/components/feedback/popover/popover.examples.d.ts +2 -0
- package/dist/kit/components/feedback/popover/popover.examples.js +42 -0
- package/dist/kit/components/feedback/sheet/sheet.examples.d.ts +2 -0
- package/dist/kit/components/feedback/sheet/sheet.examples.js +39 -0
- package/dist/kit/components/feedback/sonner/sonner.examples.d.ts +3 -0
- package/dist/kit/components/feedback/sonner/sonner.examples.js +49 -0
- package/dist/kit/components/feedback/title-help/title-help.examples.d.ts +1 -0
- package/dist/kit/components/feedback/title-help/title-help.examples.js +25 -0
- package/dist/kit/components/feedback/tooltip/tooltip.examples.d.ts +3 -0
- package/dist/kit/components/feedback/tooltip/tooltip.examples.js +44 -0
- package/dist/kit/components/form/button/button.examples.d.ts +13 -0
- package/dist/kit/components/form/button/button.examples.js +84 -0
- package/dist/kit/components/form/calendar/calendar.examples.d.ts +2 -0
- package/dist/kit/components/form/calendar/calendar.examples.js +23 -0
- package/dist/kit/components/form/checkbox/checkbox.examples.d.ts +4 -0
- package/dist/kit/components/form/checkbox/checkbox.examples.js +72 -0
- package/dist/kit/components/form/command/command.examples.d.ts +3 -0
- package/dist/kit/components/form/command/command.examples.js +52 -0
- package/dist/kit/components/form/datefield/datefield.examples.d.ts +2 -0
- package/dist/kit/components/form/datefield/datefield.examples.js +19 -0
- package/dist/kit/components/form/file-upload/file-upload.examples.d.ts +1 -0
- package/dist/kit/components/form/file-upload/file-upload.examples.js +18 -0
- package/dist/kit/components/form/form/form.examples.d.ts +2 -0
- package/dist/kit/components/form/form/form.examples.js +77 -0
- package/dist/kit/components/form/input/input.examples.d.ts +5 -0
- package/dist/kit/components/form/input/input.examples.js +64 -0
- package/dist/kit/components/form/label/label.examples.d.ts +4 -0
- package/dist/kit/components/form/label/label.examples.js +49 -0
- package/dist/kit/components/form/radio-group/radio-group.examples.d.ts +3 -0
- package/dist/kit/components/form/radio-group/radio-group.examples.js +40 -0
- package/dist/kit/components/form/select/select.examples.d.ts +3 -0
- package/dist/kit/components/form/select/select.examples.js +58 -0
- package/dist/kit/components/form/slider/slider.examples.d.ts +3 -0
- package/dist/kit/components/form/slider/slider.examples.js +46 -0
- package/dist/kit/components/form/switch/switch.examples.d.ts +3 -0
- package/dist/kit/components/form/switch/switch.examples.js +37 -0
- package/dist/kit/components/form/textarea/textarea.examples.d.ts +3 -0
- package/dist/kit/components/form/textarea/textarea.examples.js +49 -0
- package/dist/kit/components/form/toggle/toggle.examples.d.ts +3 -0
- package/dist/kit/components/form/toggle/toggle.examples.js +33 -0
- package/dist/kit/components/form/toggle-group/toggle-group.examples.d.ts +4 -0
- package/dist/kit/components/form/toggle-group/toggle-group.examples.js +46 -0
- package/dist/kit/components/index.d.ts +91 -0
- package/dist/kit/components/layout/accordion/accordion.examples.d.ts +2 -0
- package/dist/kit/components/layout/accordion/accordion.examples.js +34 -0
- package/dist/kit/components/layout/aspect-ratio/aspect-ratio.examples.d.ts +3 -0
- package/dist/kit/components/layout/aspect-ratio/aspect-ratio.examples.js +29 -0
- package/dist/kit/components/layout/collapsible/collapsible.examples.d.ts +2 -0
- package/dist/kit/components/layout/collapsible/collapsible.examples.js +28 -0
- package/dist/kit/components/layout/resizable/resizable.examples.d.ts +2 -0
- package/dist/kit/components/layout/resizable/resizable.examples.js +26 -0
- package/dist/kit/components/layout/scroll-area/scroll-area.examples.d.ts +2 -0
- package/dist/kit/components/layout/scroll-area/scroll-area.examples.js +16 -0
- package/dist/kit/components/layout/separator/separator.examples.d.ts +3 -0
- package/dist/kit/components/layout/separator/separator.examples.js +35 -0
- package/dist/kit/components/navigation/accordion-menu/accordion-menu.examples.d.ts +2 -0
- package/dist/kit/components/navigation/accordion-menu/accordion-menu.examples.js +36 -0
- package/dist/kit/components/navigation/breadcrumb/breadcrumb.examples.d.ts +3 -0
- package/dist/kit/components/navigation/breadcrumb/breadcrumb.examples.js +39 -0
- package/dist/kit/components/navigation/menubar/menubar.examples.d.ts +2 -0
- package/dist/kit/components/navigation/menubar/menubar.examples.js +54 -0
- package/dist/kit/components/navigation/navigation-menu/navigation-menu.examples.d.ts +2 -0
- package/dist/kit/components/navigation/navigation-menu/navigation-menu.examples.js +31 -0
- package/dist/kit/components/navigation/pagination/pagination.examples.d.ts +2 -0
- package/dist/kit/components/navigation/pagination/pagination.examples.js +42 -0
- package/dist/kit/components/navigation/scrollspy/scrollspy.examples.d.ts +2 -0
- package/dist/kit/components/navigation/scrollspy/scrollspy.examples.js +68 -0
- package/dist/kit/components/navigation/tabs/tabs.examples.d.ts +5 -0
- package/dist/kit/components/navigation/tabs/tabs.examples.js +43 -0
- package/dist/styles.css +29 -12
- package/package.json +7 -2
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Skeleton as s } from "./skeleton.js";
|
|
3
|
+
function c() {
|
|
4
|
+
return /* @__PURE__ */ l("div", { className: "card-surface rounded-xl p-5 w-80", children: [
|
|
5
|
+
/* @__PURE__ */ e(s, { className: "h-5 w-40 mb-3" }),
|
|
6
|
+
/* @__PURE__ */ e(s, { className: "h-4 w-full mb-2" }),
|
|
7
|
+
/* @__PURE__ */ e(s, { className: "h-4 w-5/6 mb-2" }),
|
|
8
|
+
/* @__PURE__ */ e(s, { className: "h-4 w-2/3" })
|
|
9
|
+
] });
|
|
10
|
+
}
|
|
11
|
+
function m() {
|
|
12
|
+
return /* @__PURE__ */ e("div", { className: "space-y-2 w-96", children: [1, 2, 3].map((a) => /* @__PURE__ */ l("div", { className: "flex items-center gap-3", children: [
|
|
13
|
+
/* @__PURE__ */ e(s, { className: "size-10 rounded-full" }),
|
|
14
|
+
/* @__PURE__ */ l("div", { className: "flex-1 space-y-1.5", children: [
|
|
15
|
+
/* @__PURE__ */ e(s, { className: "h-4 w-32" }),
|
|
16
|
+
/* @__PURE__ */ e(s, { className: "h-3 w-48" })
|
|
17
|
+
] }),
|
|
18
|
+
/* @__PURE__ */ e(s, { className: "h-7 w-14" })
|
|
19
|
+
] }, a)) });
|
|
20
|
+
}
|
|
21
|
+
function i() {
|
|
22
|
+
return /* @__PURE__ */ l("div", { className: "flex flex-col gap-6", children: [
|
|
23
|
+
/* @__PURE__ */ l("section", { children: [
|
|
24
|
+
/* @__PURE__ */ e("h3", { className: "text-sm font-semibold mb-3", children: "卡片骨架" }),
|
|
25
|
+
/* @__PURE__ */ e(c, {})
|
|
26
|
+
] }),
|
|
27
|
+
/* @__PURE__ */ l("section", { children: [
|
|
28
|
+
/* @__PURE__ */ e("h3", { className: "text-sm font-semibold mb-3", children: "列表行骨架" }),
|
|
29
|
+
/* @__PURE__ */ e(m, {})
|
|
30
|
+
] })
|
|
31
|
+
] });
|
|
32
|
+
}
|
|
33
|
+
export {
|
|
34
|
+
c as SkeletonCard,
|
|
35
|
+
m as SkeletonRow,
|
|
36
|
+
i as SkeletonShowcase
|
|
37
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { jsxs as n, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useState as s, useEffect as m } from "react";
|
|
3
|
+
import { SlidingNumber as c } from "./sliding-number.js";
|
|
4
|
+
import { Button as l } from "../../form/button/button.js";
|
|
5
|
+
function a() {
|
|
6
|
+
const [r, t] = s(1234);
|
|
7
|
+
return /* @__PURE__ */ n("div", { className: "flex items-center gap-4", children: [
|
|
8
|
+
/* @__PURE__ */ e("div", { className: "text-3xl font-semibold tracking-tight", children: /* @__PURE__ */ e(c, { number: r }) }),
|
|
9
|
+
/* @__PURE__ */ n("div", { className: "flex gap-2", children: [
|
|
10
|
+
/* @__PURE__ */ e(l, { size: "sm", variant: "outline", onClick: () => t((i) => i - 100), children: "-100" }),
|
|
11
|
+
/* @__PURE__ */ e(l, { size: "sm", variant: "outline", onClick: () => t((i) => i + 100), children: "+100" }),
|
|
12
|
+
/* @__PURE__ */ e(l, { size: "sm", variant: "outline", onClick: () => t(Math.floor(Math.random() * 1e4)), children: "随机" })
|
|
13
|
+
] })
|
|
14
|
+
] });
|
|
15
|
+
}
|
|
16
|
+
function d() {
|
|
17
|
+
const [r, t] = s(0);
|
|
18
|
+
return m(() => {
|
|
19
|
+
const i = setInterval(() => t((o) => o + 1), 900);
|
|
20
|
+
return () => clearInterval(i);
|
|
21
|
+
}, []), /* @__PURE__ */ n("div", { className: "text-2xl font-semibold", children: [
|
|
22
|
+
"计数:",
|
|
23
|
+
/* @__PURE__ */ e(c, { number: r })
|
|
24
|
+
] });
|
|
25
|
+
}
|
|
26
|
+
function N() {
|
|
27
|
+
return /* @__PURE__ */ n("div", { className: "flex flex-col gap-6", children: [
|
|
28
|
+
/* @__PURE__ */ n("section", { children: [
|
|
29
|
+
/* @__PURE__ */ e("h3", { className: "text-sm font-semibold mb-3", children: "手动控制" }),
|
|
30
|
+
/* @__PURE__ */ e(a, {})
|
|
31
|
+
] }),
|
|
32
|
+
/* @__PURE__ */ n("section", { children: [
|
|
33
|
+
/* @__PURE__ */ e("h3", { className: "text-sm font-semibold mb-3", children: "自动递增" }),
|
|
34
|
+
/* @__PURE__ */ e(d, {})
|
|
35
|
+
] })
|
|
36
|
+
] });
|
|
37
|
+
}
|
|
38
|
+
export {
|
|
39
|
+
d as SlidingNumberAutoIncrement,
|
|
40
|
+
a as SlidingNumberBasic,
|
|
41
|
+
N as SlidingNumberShowcase
|
|
42
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx as e, jsxs as r } from "react/jsx-runtime";
|
|
2
|
+
import { Fragment as i } from "react";
|
|
3
|
+
import { Stepper as c, StepperItem as s, StepperTrigger as n, StepperIndicator as a, StepperTitle as m, StepperSeparator as o } from "./stepper.js";
|
|
4
|
+
const l = [
|
|
5
|
+
{ step: 1, title: "提交" },
|
|
6
|
+
{ step: 2, title: "审核" },
|
|
7
|
+
{ step: 3, title: "批准" },
|
|
8
|
+
{ step: 4, title: "发布" }
|
|
9
|
+
];
|
|
10
|
+
function d() {
|
|
11
|
+
return /* @__PURE__ */ e(c, { defaultValue: 2, className: "w-full max-w-xl", children: l.map((t, p) => /* @__PURE__ */ r(i, { children: [
|
|
12
|
+
/* @__PURE__ */ e(s, { step: t.step, children: /* @__PURE__ */ r(n, { className: "flex flex-col items-center gap-1", children: [
|
|
13
|
+
/* @__PURE__ */ e(a, { children: t.step }),
|
|
14
|
+
/* @__PURE__ */ e(m, { children: t.title })
|
|
15
|
+
] }) }),
|
|
16
|
+
p < l.length - 1 && /* @__PURE__ */ e(o, {})
|
|
17
|
+
] }, t.step)) });
|
|
18
|
+
}
|
|
19
|
+
function x() {
|
|
20
|
+
return /* @__PURE__ */ e("div", { className: "flex flex-col gap-6", children: /* @__PURE__ */ r("section", { children: [
|
|
21
|
+
/* @__PURE__ */ e("h3", { className: "text-sm font-semibold mb-3", children: "任务审批流(第 2 步进行中)" }),
|
|
22
|
+
/* @__PURE__ */ e(d, {})
|
|
23
|
+
] }) });
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
d as StepperBasic,
|
|
27
|
+
x as StepperShowcase
|
|
28
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** Minimal — 3 columns, no styling quirks. */
|
|
2
|
+
export declare function TableMinimal(): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare function TableFlowCenter(): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare function TableShowcase(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { jsxs as n, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { cn as m } from "../../../../lib/utils.js";
|
|
3
|
+
import { Table as a, TableHeader as c, TableRow as d, TableHead as t, TableBody as s, TableCell as r } from "./table.js";
|
|
4
|
+
import { Badge as l } from "../badge/badge.js";
|
|
5
|
+
import { Tooltip as o, TooltipTrigger as h, TooltipContent as u } from "../../feedback/tooltip/tooltip.js";
|
|
6
|
+
import { Avatar as f, AvatarFallback as p } from "../avatar/avatar.js";
|
|
7
|
+
import { Button as x } from "../../form/button/button.js";
|
|
8
|
+
function g() {
|
|
9
|
+
return /* @__PURE__ */ n(a, { children: [
|
|
10
|
+
/* @__PURE__ */ e(c, { children: /* @__PURE__ */ n(d, { children: [
|
|
11
|
+
/* @__PURE__ */ e(t, { children: "名称" }),
|
|
12
|
+
/* @__PURE__ */ e(t, { children: "类型" }),
|
|
13
|
+
/* @__PURE__ */ e(t, { className: "text-right", children: "大小" })
|
|
14
|
+
] }) }),
|
|
15
|
+
/* @__PURE__ */ n(s, { children: [
|
|
16
|
+
/* @__PURE__ */ n(d, { children: [
|
|
17
|
+
/* @__PURE__ */ e(r, { children: "readme.md" }),
|
|
18
|
+
/* @__PURE__ */ e(r, { children: "文档" }),
|
|
19
|
+
/* @__PURE__ */ e(r, { className: "text-right font-mono", children: "4.2 KB" })
|
|
20
|
+
] }),
|
|
21
|
+
/* @__PURE__ */ n(d, { children: [
|
|
22
|
+
/* @__PURE__ */ e(r, { children: "config.json" }),
|
|
23
|
+
/* @__PURE__ */ e(r, { children: "配置" }),
|
|
24
|
+
/* @__PURE__ */ e(r, { className: "text-right font-mono", children: "1.1 KB" })
|
|
25
|
+
] })
|
|
26
|
+
] })
|
|
27
|
+
] });
|
|
28
|
+
}
|
|
29
|
+
const N = [
|
|
30
|
+
{ id: "TASK-20260418-001", kind: "Feature", kindVariant: "primary", from: "Alice Chen", deadline: "2h", urgent: !0 },
|
|
31
|
+
{ id: "TASK-20260414-001", kind: "Bug", kindVariant: "warning", from: "Dave Smith", deadline: "超时", overdue: !0 },
|
|
32
|
+
{ id: "TASK-20260413-005", kind: "Release", kindVariant: "success", from: "Carol Johnson", deadline: "5d" }
|
|
33
|
+
];
|
|
34
|
+
function v() {
|
|
35
|
+
return /* @__PURE__ */ n(a, { children: [
|
|
36
|
+
/* @__PURE__ */ e(c, { children: /* @__PURE__ */ n(d, { children: [
|
|
37
|
+
/* @__PURE__ */ e(t, { className: "ps-5", children: "任务编号" }),
|
|
38
|
+
/* @__PURE__ */ e(t, { className: "text-center", children: "类型" }),
|
|
39
|
+
/* @__PURE__ */ e(t, { children: "发起人" }),
|
|
40
|
+
/* @__PURE__ */ e(t, { className: "text-right", children: "时限" }),
|
|
41
|
+
/* @__PURE__ */ e(t, { className: "pe-5 text-center", children: "操作" })
|
|
42
|
+
] }) }),
|
|
43
|
+
/* @__PURE__ */ e(s, { children: N.map((i) => /* @__PURE__ */ n(
|
|
44
|
+
d,
|
|
45
|
+
{
|
|
46
|
+
className: m(i.overdue && "bg-destructive/5"),
|
|
47
|
+
children: [
|
|
48
|
+
/* @__PURE__ */ e(r, { className: "ps-5 font-mono text-[12.5px] text-foreground", children: i.id }),
|
|
49
|
+
/* @__PURE__ */ e(r, { className: "text-center", children: /* @__PURE__ */ e(l, { variant: i.kindVariant, appearance: "light", size: "sm", children: i.kind }) }),
|
|
50
|
+
/* @__PURE__ */ e(r, { children: /* @__PURE__ */ n(o, { children: [
|
|
51
|
+
/* @__PURE__ */ e(h, { asChild: !0, children: /* @__PURE__ */ e(f, { className: "size-7", children: /* @__PURE__ */ e(p, { className: "text-[11px] bg-muted text-muted-foreground", children: i.from.slice(0, 2).toUpperCase() }) }) }),
|
|
52
|
+
/* @__PURE__ */ e(u, { children: i.from })
|
|
53
|
+
] }) }),
|
|
54
|
+
/* @__PURE__ */ e(r, { className: "text-right", children: i.overdue ? /* @__PURE__ */ e(l, { variant: "destructive", appearance: "light", size: "sm", children: "超时" }) : i.urgent ? /* @__PURE__ */ e("span", { className: "text-destructive font-medium font-mono", children: i.deadline }) : /* @__PURE__ */ e("span", { className: "text-muted-foreground font-mono", children: i.deadline }) }),
|
|
55
|
+
/* @__PURE__ */ e(r, { className: "pe-5 text-center", children: /* @__PURE__ */ e(x, { size: "sm", variant: "outline", children: "审批" }) })
|
|
56
|
+
]
|
|
57
|
+
},
|
|
58
|
+
i.id
|
|
59
|
+
)) })
|
|
60
|
+
] });
|
|
61
|
+
}
|
|
62
|
+
function S() {
|
|
63
|
+
return /* @__PURE__ */ n("div", { className: "flex flex-col gap-6", children: [
|
|
64
|
+
/* @__PURE__ */ n("div", { children: [
|
|
65
|
+
/* @__PURE__ */ e("div", { className: "text-sm text-muted-foreground mb-2", children: "1. 最简形态" }),
|
|
66
|
+
/* @__PURE__ */ e(g, {})
|
|
67
|
+
] }),
|
|
68
|
+
/* @__PURE__ */ n("div", { children: [
|
|
69
|
+
/* @__PURE__ */ e("div", { className: "text-sm text-muted-foreground mb-2", children: "2. 流程中心样板(徽章 / 头像 / 异常行 / 操作)" }),
|
|
70
|
+
/* @__PURE__ */ e(v, {})
|
|
71
|
+
] })
|
|
72
|
+
] });
|
|
73
|
+
}
|
|
74
|
+
export {
|
|
75
|
+
v as TableFlowCenter,
|
|
76
|
+
g as TableMinimal,
|
|
77
|
+
S as TableShowcase
|
|
78
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { AuroraBackground as o } from "./aurora-background.js";
|
|
3
|
+
import { Card as d, CardContent as a } from "../../data-display/card/card.js";
|
|
4
|
+
function c() {
|
|
5
|
+
return /* @__PURE__ */ r("div", { className: "relative h-80 rounded-xl overflow-hidden border border-border bg-background", children: [
|
|
6
|
+
/* @__PURE__ */ e(o, {}),
|
|
7
|
+
/* @__PURE__ */ e("div", { className: "relative z-10 h-full flex items-center justify-center", children: /* @__PURE__ */ e(d, { className: "w-[260px] bg-card/80 backdrop-blur-xl shadow-lg", children: /* @__PURE__ */ r(a, { className: "p-6 text-center", children: [
|
|
8
|
+
/* @__PURE__ */ e("div", { className: "font-semibold text-foreground mb-1", children: "欢迎回来" }),
|
|
9
|
+
/* @__PURE__ */ e("div", { className: "text-xs text-muted-foreground", children: "毛玻璃卡片透出背后的彩色氛围" })
|
|
10
|
+
] }) }) })
|
|
11
|
+
] });
|
|
12
|
+
}
|
|
13
|
+
function s() {
|
|
14
|
+
return /* @__PURE__ */ e("div", { className: "flex flex-col gap-6", children: /* @__PURE__ */ r("section", { children: [
|
|
15
|
+
/* @__PURE__ */ e("h3", { className: "text-sm font-semibold mb-3", children: "基础用法" }),
|
|
16
|
+
/* @__PURE__ */ e(c, {})
|
|
17
|
+
] }) });
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
c as AuroraBackgroundBasic,
|
|
21
|
+
s as AuroraBackgroundShowcase
|
|
22
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare function GridBackgroundBottom(): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function GridBackgroundRadial(): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare function GridBackgroundCustom(): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare function GridBackgroundShowcase(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { GridBackground as d } from "./grid-background.js";
|
|
3
|
+
function t() {
|
|
4
|
+
return /* @__PURE__ */ r("div", { className: "relative h-64 rounded-xl overflow-hidden bg-blue-50 border border-border", children: [
|
|
5
|
+
/* @__PURE__ */ e(d, {}),
|
|
6
|
+
/* @__PURE__ */ e("div", { className: "relative z-10 h-full flex items-center justify-center text-sm text-muted-foreground", children: "默认:顶部实、底部渐隐" })
|
|
7
|
+
] });
|
|
8
|
+
}
|
|
9
|
+
function i() {
|
|
10
|
+
return /* @__PURE__ */ r("div", { className: "relative h-64 rounded-xl overflow-hidden bg-muted/40 border border-border", children: [
|
|
11
|
+
/* @__PURE__ */ e(d, { fade: "radial" }),
|
|
12
|
+
/* @__PURE__ */ e("div", { className: "relative z-10 h-full flex items-center justify-center text-sm text-muted-foreground", children: 'fade="radial":中心清、四周淡' })
|
|
13
|
+
] });
|
|
14
|
+
}
|
|
15
|
+
function l() {
|
|
16
|
+
return /* @__PURE__ */ r("div", { className: "relative h-64 rounded-xl overflow-hidden bg-slate-900 border border-border", children: [
|
|
17
|
+
/* @__PURE__ */ e(d, { color: "rgba(255,255,255,0.08)", size: 32 }),
|
|
18
|
+
/* @__PURE__ */ e("div", { className: "relative z-10 h-full flex items-center justify-center text-sm text-white/80", children: "深底 + 自定义颜色 / 格距" })
|
|
19
|
+
] });
|
|
20
|
+
}
|
|
21
|
+
function a() {
|
|
22
|
+
return /* @__PURE__ */ r("div", { className: "flex flex-col gap-6", children: [
|
|
23
|
+
/* @__PURE__ */ r("section", { children: [
|
|
24
|
+
/* @__PURE__ */ e("h3", { className: "text-sm font-semibold mb-3", children: "bottom fade(默认)" }),
|
|
25
|
+
/* @__PURE__ */ e(t, {})
|
|
26
|
+
] }),
|
|
27
|
+
/* @__PURE__ */ r("section", { children: [
|
|
28
|
+
/* @__PURE__ */ e("h3", { className: "text-sm font-semibold mb-3", children: "radial fade" }),
|
|
29
|
+
/* @__PURE__ */ e(i, {})
|
|
30
|
+
] }),
|
|
31
|
+
/* @__PURE__ */ r("section", { children: [
|
|
32
|
+
/* @__PURE__ */ e("h3", { className: "text-sm font-semibold mb-3", children: "自定义 color / size" }),
|
|
33
|
+
/* @__PURE__ */ e(l, {})
|
|
34
|
+
] })
|
|
35
|
+
] });
|
|
36
|
+
}
|
|
37
|
+
export {
|
|
38
|
+
t as GridBackgroundBottom,
|
|
39
|
+
l as GridBackgroundCustom,
|
|
40
|
+
i as GridBackgroundRadial,
|
|
41
|
+
a as GridBackgroundShowcase
|
|
42
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare function ShimmeringTextBasic(): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function ShimmeringTextHero(): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare function ShimmeringTextColored(): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare function ShimmeringTextShowcase(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
2
|
+
import { ShimmeringText as i } from "./shimmering-text.js";
|
|
3
|
+
function r() {
|
|
4
|
+
return /* @__PURE__ */ e("div", { className: "text-3xl font-semibold tracking-tight", children: /* @__PURE__ */ e(i, { text: "加入我们,开启新旅程" }) });
|
|
5
|
+
}
|
|
6
|
+
function n() {
|
|
7
|
+
return /* @__PURE__ */ t("div", { className: "p-10 rounded-xl border border-border bg-card text-center", children: [
|
|
8
|
+
/* @__PURE__ */ e("div", { className: "text-4xl font-bold tracking-tight", children: /* @__PURE__ */ e(i, { text: "Engineering Excellence" }) }),
|
|
9
|
+
/* @__PURE__ */ e("div", { className: "text-sm text-muted-foreground mt-3", children: "A platform for configuration management at scale." })
|
|
10
|
+
] });
|
|
11
|
+
}
|
|
12
|
+
function l() {
|
|
13
|
+
return /* @__PURE__ */ t("div", { className: "flex flex-col gap-4", children: [
|
|
14
|
+
/* @__PURE__ */ e("div", { className: "text-2xl font-semibold", children: /* @__PURE__ */ e(
|
|
15
|
+
i,
|
|
16
|
+
{
|
|
17
|
+
text: "限时优惠,立即开通",
|
|
18
|
+
color: "#94a3b8",
|
|
19
|
+
shimmerColor: "#2563eb"
|
|
20
|
+
}
|
|
21
|
+
) }),
|
|
22
|
+
/* @__PURE__ */ e("div", { className: "text-2xl font-semibold", children: /* @__PURE__ */ e(
|
|
23
|
+
i,
|
|
24
|
+
{
|
|
25
|
+
text: "加载中...",
|
|
26
|
+
color: "#64748b",
|
|
27
|
+
shimmerColor: "#0f172a",
|
|
28
|
+
duration: 1.2
|
|
29
|
+
}
|
|
30
|
+
) })
|
|
31
|
+
] });
|
|
32
|
+
}
|
|
33
|
+
function c() {
|
|
34
|
+
return /* @__PURE__ */ t("div", { className: "flex flex-col gap-8", children: [
|
|
35
|
+
/* @__PURE__ */ t("section", { children: [
|
|
36
|
+
/* @__PURE__ */ e("h3", { className: "text-sm font-semibold mb-3", children: "基础(默认色)" }),
|
|
37
|
+
/* @__PURE__ */ e(r, {})
|
|
38
|
+
] }),
|
|
39
|
+
/* @__PURE__ */ t("section", { children: [
|
|
40
|
+
/* @__PURE__ */ e("h3", { className: "text-sm font-semibold mb-3", children: "Hero 标题" }),
|
|
41
|
+
/* @__PURE__ */ e(n, {})
|
|
42
|
+
] }),
|
|
43
|
+
/* @__PURE__ */ t("section", { children: [
|
|
44
|
+
/* @__PURE__ */ e("h3", { className: "text-sm font-semibold mb-3", children: "自定义颜色" }),
|
|
45
|
+
/* @__PURE__ */ e(l, {})
|
|
46
|
+
] })
|
|
47
|
+
] });
|
|
48
|
+
}
|
|
49
|
+
export {
|
|
50
|
+
r as ShimmeringTextBasic,
|
|
51
|
+
l as ShimmeringTextColored,
|
|
52
|
+
n as ShimmeringTextHero,
|
|
53
|
+
c as ShimmeringTextShowcase
|
|
54
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { jsx as e, jsxs as a } from "react/jsx-runtime";
|
|
2
|
+
import { useState as i } from "react";
|
|
3
|
+
import { Button as c } from "../../form/button/button.js";
|
|
4
|
+
import { TextReveal as d } from "./text-reveal.js";
|
|
5
|
+
const m = [
|
|
6
|
+
"fade",
|
|
7
|
+
"slideUp",
|
|
8
|
+
"slideDown",
|
|
9
|
+
"slideLeft",
|
|
10
|
+
"slideRight",
|
|
11
|
+
"scale",
|
|
12
|
+
"blur",
|
|
13
|
+
"typewriter",
|
|
14
|
+
"wave",
|
|
15
|
+
"stagger",
|
|
16
|
+
"rotate",
|
|
17
|
+
"elastic"
|
|
18
|
+
];
|
|
19
|
+
function f() {
|
|
20
|
+
const [r, l] = i("slideUp"), [s, n] = i(0);
|
|
21
|
+
return /* @__PURE__ */ a("div", { className: "space-y-4", children: [
|
|
22
|
+
/* @__PURE__ */ e("div", { className: "flex flex-wrap gap-1.5", children: m.map((t) => /* @__PURE__ */ e(
|
|
23
|
+
c,
|
|
24
|
+
{
|
|
25
|
+
size: "sm",
|
|
26
|
+
variant: t === r ? "primary" : "outline",
|
|
27
|
+
onClick: () => {
|
|
28
|
+
l(t), n((o) => o + 1);
|
|
29
|
+
},
|
|
30
|
+
children: t
|
|
31
|
+
},
|
|
32
|
+
t
|
|
33
|
+
)) }),
|
|
34
|
+
/* @__PURE__ */ e("div", { className: "py-12 px-6 rounded-xl border border-border bg-card text-center", children: /* @__PURE__ */ e("div", { className: "text-3xl font-bold tracking-tight text-foreground", children: /* @__PURE__ */ e(d, { variant: r, startOnView: !1, children: "在每一次 Demo 中,关键体验都值得被看见。" }, s) }) })
|
|
35
|
+
] });
|
|
36
|
+
}
|
|
37
|
+
function u() {
|
|
38
|
+
return /* @__PURE__ */ e("div", { className: "flex flex-col gap-6", children: /* @__PURE__ */ a("section", { children: [
|
|
39
|
+
/* @__PURE__ */ e("h3", { className: "text-sm font-semibold mb-3", children: "点击切换动画类型" }),
|
|
40
|
+
/* @__PURE__ */ e(f, {})
|
|
41
|
+
] }) });
|
|
42
|
+
}
|
|
43
|
+
export {
|
|
44
|
+
u as TextRevealShowcase,
|
|
45
|
+
f as TextRevealVariantSwitcher
|
|
46
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
2
|
+
import { RiInformationLine as t, RiCheckboxCircleLine as a, RiAlertLine as d, RiErrorWarningLine as h } from "@remixicon/react";
|
|
3
|
+
import { Alert as e, AlertIcon as n, AlertTitle as l, AlertDescription as c } from "./alert.js";
|
|
4
|
+
function o() {
|
|
5
|
+
return /* @__PURE__ */ i("div", { className: "space-y-3 max-w-xl", children: [
|
|
6
|
+
/* @__PURE__ */ i(e, { variant: "primary", children: [
|
|
7
|
+
/* @__PURE__ */ r(n, { children: /* @__PURE__ */ r(t, {}) }),
|
|
8
|
+
/* @__PURE__ */ r(l, { children: "系统通知" }),
|
|
9
|
+
/* @__PURE__ */ r(c, { children: "本周计划维护时间:周五 22:00-23:00。" })
|
|
10
|
+
] }),
|
|
11
|
+
/* @__PURE__ */ i(e, { variant: "success", children: [
|
|
12
|
+
/* @__PURE__ */ r(n, { children: /* @__PURE__ */ r(a, {}) }),
|
|
13
|
+
/* @__PURE__ */ r(l, { children: "提交成功" }),
|
|
14
|
+
/* @__PURE__ */ r(c, { children: "你的变更已进入审批流程。" })
|
|
15
|
+
] }),
|
|
16
|
+
/* @__PURE__ */ i(e, { variant: "warning", children: [
|
|
17
|
+
/* @__PURE__ */ r(n, { children: /* @__PURE__ */ r(d, {}) }),
|
|
18
|
+
/* @__PURE__ */ r(l, { children: "未保存的修改" }),
|
|
19
|
+
/* @__PURE__ */ r(c, { children: "离开前请先保存。" })
|
|
20
|
+
] }),
|
|
21
|
+
/* @__PURE__ */ i(e, { variant: "destructive", children: [
|
|
22
|
+
/* @__PURE__ */ r(n, { children: /* @__PURE__ */ r(h, {}) }),
|
|
23
|
+
/* @__PURE__ */ r(l, { children: "提交失败" }),
|
|
24
|
+
/* @__PURE__ */ r(c, { children: "请检查 3 个必填字段。" })
|
|
25
|
+
] })
|
|
26
|
+
] });
|
|
27
|
+
}
|
|
28
|
+
function x() {
|
|
29
|
+
return /* @__PURE__ */ r("div", { className: "flex flex-col gap-6", children: /* @__PURE__ */ i("section", { children: [
|
|
30
|
+
/* @__PURE__ */ r("h3", { className: "text-sm font-semibold mb-3", children: "Variant 全览" }),
|
|
31
|
+
/* @__PURE__ */ r(o, {})
|
|
32
|
+
] }) });
|
|
33
|
+
}
|
|
34
|
+
export {
|
|
35
|
+
x as AlertShowcase,
|
|
36
|
+
o as AlertVariants
|
|
37
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { AlertDialog as r, AlertDialogTrigger as i, AlertDialogContent as t, AlertDialogHeader as o, AlertDialogTitle as n, AlertDialogDescription as c, AlertDialogFooter as a, AlertDialogCancel as d, AlertDialogAction as h } from "./alert-dialog.js";
|
|
3
|
+
import { Button as s } from "../../form/button/button.js";
|
|
4
|
+
function g() {
|
|
5
|
+
return /* @__PURE__ */ l(r, { children: [
|
|
6
|
+
/* @__PURE__ */ e(i, { asChild: !0, children: /* @__PURE__ */ e(s, { variant: "destructive", children: "删除项目" }) }),
|
|
7
|
+
/* @__PURE__ */ l(t, { children: [
|
|
8
|
+
/* @__PURE__ */ l(o, { children: [
|
|
9
|
+
/* @__PURE__ */ e(n, { children: "确认删除该项目?" }),
|
|
10
|
+
/* @__PURE__ */ e(c, { children: "此操作不可撤销。相关评论与历史记录会保留,但主数据将从列表中移除。" })
|
|
11
|
+
] }),
|
|
12
|
+
/* @__PURE__ */ l(a, { children: [
|
|
13
|
+
/* @__PURE__ */ e(d, { children: "取消" }),
|
|
14
|
+
/* @__PURE__ */ e(h, { children: "删除" })
|
|
15
|
+
] })
|
|
16
|
+
] })
|
|
17
|
+
] });
|
|
18
|
+
}
|
|
19
|
+
function f() {
|
|
20
|
+
return /* @__PURE__ */ e("div", { className: "flex flex-col gap-6", children: /* @__PURE__ */ l("section", { children: [
|
|
21
|
+
/* @__PURE__ */ e("h3", { className: "text-sm font-semibold mb-3", children: "危险操作确认" }),
|
|
22
|
+
/* @__PURE__ */ e(g, {})
|
|
23
|
+
] }) });
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
g as AlertDialogBasic,
|
|
27
|
+
f as AlertDialogShowcase
|
|
28
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { ContextMenu as o, ContextMenuTrigger as c, ContextMenuContent as d, ContextMenuItem as n, ContextMenuShortcut as r, ContextMenuSeparator as i } from "./context-menu.js";
|
|
3
|
+
function s() {
|
|
4
|
+
return /* @__PURE__ */ t(o, { children: [
|
|
5
|
+
/* @__PURE__ */ e(c, { className: "flex items-center justify-center w-80 h-32 border-2 border-dashed border-border rounded-md text-sm text-muted-foreground", children: "在此区域内右键" }),
|
|
6
|
+
/* @__PURE__ */ t(d, { children: [
|
|
7
|
+
/* @__PURE__ */ t(n, { children: [
|
|
8
|
+
"剪切 ",
|
|
9
|
+
/* @__PURE__ */ e(r, { children: "⌘X" })
|
|
10
|
+
] }),
|
|
11
|
+
/* @__PURE__ */ t(n, { children: [
|
|
12
|
+
"复制 ",
|
|
13
|
+
/* @__PURE__ */ e(r, { children: "⌘C" })
|
|
14
|
+
] }),
|
|
15
|
+
/* @__PURE__ */ t(n, { children: [
|
|
16
|
+
"粘贴 ",
|
|
17
|
+
/* @__PURE__ */ e(r, { children: "⌘V" })
|
|
18
|
+
] }),
|
|
19
|
+
/* @__PURE__ */ e(i, {}),
|
|
20
|
+
/* @__PURE__ */ e(n, { className: "text-destructive focus:text-destructive", children: "删除" })
|
|
21
|
+
] })
|
|
22
|
+
] });
|
|
23
|
+
}
|
|
24
|
+
function x() {
|
|
25
|
+
return /* @__PURE__ */ e("div", { className: "flex flex-col gap-6", children: /* @__PURE__ */ t("section", { children: [
|
|
26
|
+
/* @__PURE__ */ e("h3", { className: "text-sm font-semibold mb-3", children: "基础右键菜单" }),
|
|
27
|
+
/* @__PURE__ */ e(s, {})
|
|
28
|
+
] }) });
|
|
29
|
+
}
|
|
30
|
+
export {
|
|
31
|
+
s as ContextMenuBasic,
|
|
32
|
+
x as ContextMenuShowcase
|
|
33
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Dialog as n, DialogTrigger as a, DialogContent as o, DialogHeader as d, DialogTitle as t, DialogDescription as h, DialogFooter as s, DialogClose as m } from "./dialog.js";
|
|
3
|
+
import { Button as i } from "../../form/button/button.js";
|
|
4
|
+
import { Label as c } from "../../form/label/label.js";
|
|
5
|
+
import { Input as g } from "../../form/input/input.js";
|
|
6
|
+
import { Select as p, SelectTrigger as u, SelectValue as D, SelectContent as f, SelectItem as r } from "../../form/select/select.js";
|
|
7
|
+
function v() {
|
|
8
|
+
return /* @__PURE__ */ l(n, { children: [
|
|
9
|
+
/* @__PURE__ */ e(a, { asChild: !0, children: /* @__PURE__ */ e(i, { children: "新建项目" }) }),
|
|
10
|
+
/* @__PURE__ */ l(o, { children: [
|
|
11
|
+
/* @__PURE__ */ l(d, { children: [
|
|
12
|
+
/* @__PURE__ */ e(t, { children: "新建项目" }),
|
|
13
|
+
/* @__PURE__ */ e(h, { children: "填写基本信息即可创建。" })
|
|
14
|
+
] }),
|
|
15
|
+
/* @__PURE__ */ l("div", { className: "space-y-4 py-2", children: [
|
|
16
|
+
/* @__PURE__ */ l("div", { className: "space-y-1.5", children: [
|
|
17
|
+
/* @__PURE__ */ l(c, { htmlFor: "d-name", children: [
|
|
18
|
+
"项目名称 ",
|
|
19
|
+
/* @__PURE__ */ e("span", { className: "text-destructive", children: "*" })
|
|
20
|
+
] }),
|
|
21
|
+
/* @__PURE__ */ e(g, { id: "d-name", placeholder: "例:Acme Dashboard" })
|
|
22
|
+
] }),
|
|
23
|
+
/* @__PURE__ */ l("div", { className: "space-y-1.5", children: [
|
|
24
|
+
/* @__PURE__ */ e(c, { children: "优先级" }),
|
|
25
|
+
/* @__PURE__ */ l(p, { children: [
|
|
26
|
+
/* @__PURE__ */ e(u, { children: /* @__PURE__ */ e(D, { placeholder: "请选择" }) }),
|
|
27
|
+
/* @__PURE__ */ l(f, { children: [
|
|
28
|
+
/* @__PURE__ */ e(r, { value: "high", children: "High" }),
|
|
29
|
+
/* @__PURE__ */ e(r, { value: "medium", children: "Medium" }),
|
|
30
|
+
/* @__PURE__ */ e(r, { value: "low", children: "Low" })
|
|
31
|
+
] })
|
|
32
|
+
] })
|
|
33
|
+
] })
|
|
34
|
+
] }),
|
|
35
|
+
/* @__PURE__ */ l(s, { children: [
|
|
36
|
+
/* @__PURE__ */ e(m, { asChild: !0, children: /* @__PURE__ */ e(i, { variant: "outline", children: "取消" }) }),
|
|
37
|
+
/* @__PURE__ */ e(i, { children: "保存" })
|
|
38
|
+
] })
|
|
39
|
+
] })
|
|
40
|
+
] });
|
|
41
|
+
}
|
|
42
|
+
function w() {
|
|
43
|
+
return /* @__PURE__ */ e("div", { className: "flex flex-col gap-6", children: /* @__PURE__ */ l("section", { children: [
|
|
44
|
+
/* @__PURE__ */ e("h3", { className: "text-sm font-semibold mb-3", children: "短表单对话框" }),
|
|
45
|
+
/* @__PURE__ */ e(v, {})
|
|
46
|
+
] }) });
|
|
47
|
+
}
|
|
48
|
+
export {
|
|
49
|
+
v as DialogBasic,
|
|
50
|
+
w as DialogShowcase
|
|
51
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { jsxs as e, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { Drawer as n, DrawerTrigger as t, DrawerContent as l, DrawerHeader as a, DrawerTitle as c, DrawerDescription as o, DrawerFooter as d, DrawerClose as h } from "./drawer.js";
|
|
3
|
+
import { Button as i } from "../../form/button/button.js";
|
|
4
|
+
function s() {
|
|
5
|
+
return /* @__PURE__ */ e(n, { children: [
|
|
6
|
+
/* @__PURE__ */ r(t, { asChild: !0, children: /* @__PURE__ */ r(i, { variant: "outline", children: "打开筛选" }) }),
|
|
7
|
+
/* @__PURE__ */ e(l, { children: [
|
|
8
|
+
/* @__PURE__ */ e(a, { children: [
|
|
9
|
+
/* @__PURE__ */ r(c, { children: "筛选条件" }),
|
|
10
|
+
/* @__PURE__ */ r(o, { children: "根据条件过滤列表。" })
|
|
11
|
+
] }),
|
|
12
|
+
/* @__PURE__ */ r("div", { className: "p-4 text-sm text-muted-foreground", children: "……(真实业务放筛选表单)" }),
|
|
13
|
+
/* @__PURE__ */ e(d, { children: [
|
|
14
|
+
/* @__PURE__ */ r(i, { children: "应用" }),
|
|
15
|
+
/* @__PURE__ */ r(h, { asChild: !0, children: /* @__PURE__ */ r(i, { variant: "outline", children: "取消" }) })
|
|
16
|
+
] })
|
|
17
|
+
] })
|
|
18
|
+
] });
|
|
19
|
+
}
|
|
20
|
+
function D() {
|
|
21
|
+
return /* @__PURE__ */ r("div", { className: "flex flex-col gap-6", children: /* @__PURE__ */ e("section", { children: [
|
|
22
|
+
/* @__PURE__ */ r("h3", { className: "text-sm font-semibold mb-3", children: "底部抽屉" }),
|
|
23
|
+
/* @__PURE__ */ r(s, {})
|
|
24
|
+
] }) });
|
|
25
|
+
}
|
|
26
|
+
export {
|
|
27
|
+
s as DrawerBasic,
|
|
28
|
+
D as DrawerShowcase
|
|
29
|
+
};
|