nextworks 0.2.0-alpha.13 → 0.2.0-alpha.14
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 -1
- package/dist/kits/blocks/.nextworks/docs/BLOCKS_QUICKSTART.md +2 -0
- package/dist/kits/blocks/.nextworks/docs/BLOCKS_README.md +2 -0
- package/dist/kits/blocks/app/templates/aiworkflow/PresetThemeVars.tsx +1 -58
- package/dist/kits/blocks/app/templates/aiworkflow/README.md +2 -0
- package/dist/kits/blocks/app/templates/aiworkflow/components/CTA.tsx +9 -9
- package/dist/kits/blocks/app/templates/aiworkflow/components/Contact.tsx +12 -13
- package/dist/kits/blocks/app/templates/aiworkflow/components/FAQ.tsx +22 -19
- package/dist/kits/blocks/app/templates/aiworkflow/components/FeatureMockups.tsx +562 -0
- package/dist/kits/blocks/app/templates/aiworkflow/components/Features.tsx +18 -16
- package/dist/kits/blocks/app/templates/aiworkflow/components/Footer.tsx +13 -9
- package/dist/kits/blocks/app/templates/aiworkflow/components/Hero.tsx +883 -636
- package/dist/kits/blocks/app/templates/aiworkflow/components/Navbar.tsx +14 -15
- package/dist/kits/blocks/app/templates/aiworkflow/components/Pricing.tsx +27 -22
- package/dist/kits/blocks/app/templates/aiworkflow/components/ProcessTimeline.tsx +20 -21
- package/dist/kits/blocks/app/templates/aiworkflow/components/Testimonials.tsx +17 -13
- package/dist/kits/blocks/app/templates/aiworkflow/components/TrustBadges.tsx +15 -12
- package/dist/kits/blocks/app/templates/aiworkflow/themes/animation.tsx +151 -0
- package/dist/kits/blocks/app/templates/aiworkflow/themes/default.tsx +158 -0
- package/dist/kits/blocks/app/templates/aiworkflow/themes/test.tsx +163 -0
- package/dist/kits/blocks/app/templates/gallery/PresetThemeVars.tsx +46 -0
- package/dist/kits/blocks/app/templates/gallery/page.tsx +550 -161
- package/dist/kits/blocks/components/sections/HeroProductDemo.tsx +74 -64
- package/dist/kits/blocks/components/sections/Navbar.tsx +2 -0
- package/dist/kits/blocks/components/sections/product-demo/ApprovalInboxPanel.tsx +16 -13
- package/dist/kits/blocks/components/sections/product-demo/DemoStage.tsx +283 -162
- package/dist/kits/blocks/components/sections/product-demo/DemoWindow.tsx +65 -53
- package/dist/kits/blocks/components/sections/product-demo/KnowledgePanel.tsx +20 -17
- package/dist/kits/blocks/components/sections/product-demo/RunConsolePanel.tsx +208 -127
- package/dist/kits/blocks/components/sections/product-demo/TaskListPanel.tsx +95 -0
- package/dist/kits/blocks/components/sections/product-demo/WorkflowStudioPanel.tsx +714 -161
- package/dist/kits/blocks/components/sections/product-demo/types.ts +69 -0
- package/dist/kits/blocks/components/ui/theme-selector.tsx +1 -1
- package/dist/kits/blocks/package-deps.json +3 -3
- package/dist/kits/blocks/public/placeholders/aiworkflow/live.svg +92 -0
- package/dist/kits/blocks/public/placeholders/aiworkflow/review.svg +80 -0
- package/dist/kits/blocks/public/placeholders/aiworkflow/task.svg +71 -0
- package/dist/kits/blocks/tsconfig.json +13 -0
- package/dist/utils/file-operations.d.ts.map +1 -1
- package/dist/utils/file-operations.js +6 -1
- package/dist/utils/file-operations.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
import { cn } from "@/lib/utils";
|
|
4
|
+
import type { ProductDemoTaskListState } from "./types";
|
|
5
|
+
|
|
6
|
+
export interface TaskListPanelProps {
|
|
7
|
+
state: ProductDemoTaskListState;
|
|
8
|
+
onSelect?: (taskId: string) => void;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export function TaskListPanel({ state, onSelect }: TaskListPanelProps) {
|
|
12
|
+
return (
|
|
13
|
+
<div className="flex h-full min-h-0 flex-col bg-[var(--demo-panel-muted-bg)] text-[var(--demo-fg)]">
|
|
14
|
+
<div className="border-b border-[var(--demo-border)] px-3 py-2.5">
|
|
15
|
+
<div className="text-[10px] uppercase tracking-[0.18em] text-[var(--demo-subtle-fg)]">
|
|
16
|
+
Task navigator
|
|
17
|
+
</div>
|
|
18
|
+
<div className="mt-1 text-[11px] text-[var(--demo-muted-fg)]">
|
|
19
|
+
Choose a task to inspect and run.
|
|
20
|
+
</div>
|
|
21
|
+
</div>
|
|
22
|
+
|
|
23
|
+
<div className="space-y-0 overflow-hidden">
|
|
24
|
+
{state.items.map((item, index) => {
|
|
25
|
+
const isActive = item.id === state.activeItemId;
|
|
26
|
+
|
|
27
|
+
return (
|
|
28
|
+
<button
|
|
29
|
+
key={item.id}
|
|
30
|
+
type="button"
|
|
31
|
+
onClick={() => onSelect?.(item.id)}
|
|
32
|
+
className={cn(
|
|
33
|
+
"relative isolate w-full overflow-hidden rounded-none border-x-0 border-y border-b-0 px-3 py-3 text-left transition-colors duration-200 first:border-t-0",
|
|
34
|
+
"border-[var(--demo-border)] bg-[var(--demo-panel-bg)] hover:border-[var(--demo-border-strong)] hover:bg-[var(--demo-shell-strong-bg)]",
|
|
35
|
+
isActive &&
|
|
36
|
+
"border-[var(--demo-border-strong)] bg-[var(--demo-shell-strong-bg)]",
|
|
37
|
+
)}
|
|
38
|
+
>
|
|
39
|
+
{isActive ? (
|
|
40
|
+
<span
|
|
41
|
+
aria-hidden="true"
|
|
42
|
+
className="pointer-events-none absolute inset-y-0 left-0 w-px bg-[var(--demo-accent)]"
|
|
43
|
+
/>
|
|
44
|
+
) : null}
|
|
45
|
+
|
|
46
|
+
<div className="relative z-10 flex items-start gap-3">
|
|
47
|
+
<span
|
|
48
|
+
className={cn(
|
|
49
|
+
"mt-0.5 flex h-5 w-5 shrink-0 items-center justify-center rounded-full border text-[10px] font-semibold",
|
|
50
|
+
isActive
|
|
51
|
+
? "border-[var(--demo-border-strong)] bg-[var(--demo-shell-strong-bg)] text-[var(--demo-fg)]"
|
|
52
|
+
: "border-[var(--demo-border)] bg-[var(--demo-panel-subtle-bg)] text-[var(--demo-muted-fg)]",
|
|
53
|
+
)}
|
|
54
|
+
>
|
|
55
|
+
{index + 1}
|
|
56
|
+
</span>
|
|
57
|
+
|
|
58
|
+
<div className="min-w-0 flex-1">
|
|
59
|
+
<div className="flex items-start justify-between gap-3">
|
|
60
|
+
<div className="min-w-0">
|
|
61
|
+
<div className="text-sm font-semibold text-[var(--demo-fg)]">
|
|
62
|
+
{item.title}
|
|
63
|
+
</div>
|
|
64
|
+
</div>
|
|
65
|
+
<div
|
|
66
|
+
className={cn(
|
|
67
|
+
"flex h-5 w-[4.5rem] shrink-0 items-center justify-end text-[9px] uppercase tracking-[0.14em]",
|
|
68
|
+
isActive
|
|
69
|
+
? "text-[var(--demo-muted-fg)]"
|
|
70
|
+
: "text-[var(--demo-subtle-fg)]",
|
|
71
|
+
)}
|
|
72
|
+
>
|
|
73
|
+
{isActive ? "Open" : "Queued"}
|
|
74
|
+
</div>
|
|
75
|
+
</div>
|
|
76
|
+
{item.description && (
|
|
77
|
+
<p className="mt-1.5 max-w-[22ch] text-xs leading-relaxed text-[var(--demo-muted-fg)]">
|
|
78
|
+
{item.description}
|
|
79
|
+
</p>
|
|
80
|
+
)}
|
|
81
|
+
{item.meta && (
|
|
82
|
+
<div className="mt-2.5 flex items-center gap-2 text-[11px] text-[var(--demo-muted-fg)]">
|
|
83
|
+
<span className="h-1 w-1 rounded-full bg-[var(--demo-border-strong)]" />
|
|
84
|
+
<span>{item.meta}</span>
|
|
85
|
+
</div>
|
|
86
|
+
)}
|
|
87
|
+
</div>
|
|
88
|
+
</div>
|
|
89
|
+
</button>
|
|
90
|
+
);
|
|
91
|
+
})}
|
|
92
|
+
</div>
|
|
93
|
+
</div>
|
|
94
|
+
);
|
|
95
|
+
}
|