nextworks 0.2.0-alpha.2 → 0.2.0-alpha.21
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 +280 -228
- package/dist/cli_manifests/blocks_manifest.json +193 -194
- package/dist/commands/blocks.d.ts +3 -0
- package/dist/commands/blocks.d.ts.map +1 -1
- package/dist/commands/blocks.js +128 -19
- package/dist/commands/blocks.js.map +1 -1
- package/dist/commands/doctor.d.ts +136 -0
- package/dist/commands/doctor.d.ts.map +1 -0
- package/dist/commands/doctor.js +696 -0
- package/dist/commands/doctor.js.map +1 -0
- package/dist/commands/remove-blocks.d.ts +4 -1
- package/dist/commands/remove-blocks.d.ts.map +1 -1
- package/dist/commands/remove-blocks.js +24 -6
- package/dist/commands/remove-blocks.js.map +1 -1
- package/dist/index.js +125 -4
- package/dist/index.js.map +1 -1
- package/dist/kits/blocks/.nextworks/docs/BLOCKS_QUICKSTART.md +104 -194
- package/dist/kits/blocks/.nextworks/docs/BLOCKS_README.md +115 -75
- package/dist/kits/blocks/.nextworks/docs/THEME_GUIDE.md +269 -251
- package/dist/kits/blocks/app/templates/digitalagency/PresetThemeVars.tsx +80 -80
- package/dist/kits/blocks/app/templates/digitalagency/README.md +42 -36
- package/dist/kits/blocks/app/templates/digitalagency/components/About.tsx +71 -99
- package/dist/kits/blocks/app/templates/digitalagency/components/CTA.tsx +40 -74
- package/dist/kits/blocks/app/templates/digitalagency/components/Contact.tsx +123 -227
- package/dist/kits/blocks/app/templates/digitalagency/components/Footer.tsx +89 -89
- package/dist/kits/blocks/app/templates/digitalagency/components/Hero.tsx +83 -90
- package/dist/kits/blocks/app/templates/digitalagency/components/Navbar.tsx +121 -168
- package/dist/kits/blocks/app/templates/digitalagency/components/NetworkPattern.tsx +288 -297
- package/dist/kits/blocks/app/templates/digitalagency/components/Portfolio.tsx +157 -157
- package/dist/kits/blocks/app/templates/digitalagency/components/Pricing.tsx +114 -114
- package/dist/kits/blocks/app/templates/digitalagency/components/Process.tsx +59 -59
- package/dist/kits/blocks/app/templates/digitalagency/components/Services.tsx +55 -55
- package/dist/kits/blocks/app/templates/digitalagency/components/Team.tsx +28 -28
- package/dist/kits/blocks/app/templates/digitalagency/components/Testimonials.tsx +65 -65
- package/dist/kits/blocks/app/templates/digitalagency/page.tsx +38 -38
- package/dist/kits/blocks/app/templates/gallery/PresetThemeVars.tsx +130 -85
- package/dist/kits/blocks/app/templates/gallery/page.tsx +357 -303
- package/dist/kits/blocks/app/templates/productlaunch/PresetThemeVars.tsx +75 -74
- package/dist/kits/blocks/app/templates/productlaunch/README.md +62 -55
- package/dist/kits/blocks/app/templates/productlaunch/components/About.tsx +84 -178
- package/dist/kits/blocks/app/templates/productlaunch/components/CTA.tsx +50 -93
- package/dist/kits/blocks/app/templates/productlaunch/components/Contact.tsx +231 -231
- package/dist/kits/blocks/app/templates/productlaunch/components/FAQ.tsx +86 -93
- package/dist/kits/blocks/app/templates/productlaunch/components/Features.tsx +83 -84
- package/dist/kits/blocks/app/templates/productlaunch/components/Footer.tsx +132 -132
- package/dist/kits/blocks/app/templates/productlaunch/components/Hero.tsx +88 -89
- package/dist/kits/blocks/app/templates/productlaunch/components/Navbar.tsx +116 -162
- package/dist/kits/blocks/app/templates/productlaunch/components/Pricing.tsx +106 -106
- package/dist/kits/blocks/app/templates/productlaunch/components/ProcessTimeline.tsx +110 -110
- package/dist/kits/blocks/app/templates/productlaunch/components/ServicesGrid.tsx +68 -68
- package/dist/kits/blocks/app/templates/productlaunch/components/Team.tsx +104 -104
- package/dist/kits/blocks/app/templates/productlaunch/components/Testimonials.tsx +90 -89
- package/dist/kits/blocks/app/templates/productlaunch/components/TrustBadges.tsx +76 -76
- package/dist/kits/blocks/app/templates/productlaunch/page.tsx +43 -43
- package/dist/kits/blocks/app/templates/saasdashboard/PresetThemeVars.tsx +80 -80
- package/dist/kits/blocks/app/templates/saasdashboard/README.md +44 -38
- package/dist/kits/blocks/app/templates/saasdashboard/components/Contact.tsx +129 -176
- package/dist/kits/blocks/app/templates/saasdashboard/components/Dashboard.tsx +293 -293
- package/dist/kits/blocks/app/templates/saasdashboard/components/FAQ.tsx +55 -55
- package/dist/kits/blocks/app/templates/saasdashboard/components/Features.tsx +90 -91
- package/dist/kits/blocks/app/templates/saasdashboard/components/Footer.tsx +77 -77
- package/dist/kits/blocks/app/templates/saasdashboard/components/Hero.tsx +104 -105
- package/dist/kits/blocks/app/templates/saasdashboard/components/Hero_mask.tsx +126 -127
- package/dist/kits/blocks/app/templates/saasdashboard/components/Navbar.tsx +117 -159
- package/dist/kits/blocks/app/templates/saasdashboard/components/Pricing.tsx +90 -90
- package/dist/kits/blocks/app/templates/saasdashboard/components/SmoothScroll.tsx +96 -97
- package/dist/kits/blocks/app/templates/saasdashboard/components/Testimonials.tsx +72 -72
- package/dist/kits/blocks/app/templates/saasdashboard/components/TrustBadges.tsx +53 -53
- package/dist/kits/blocks/app/templates/saasdashboard/page.tsx +39 -39
- package/dist/kits/blocks/components/enhanced-theme-provider.tsx +195 -183
- package/dist/kits/blocks/components/providers/BlocksAppProviders.tsx +27 -27
- package/dist/kits/blocks/components/sections/About.tsx +291 -291
- package/dist/kits/blocks/components/sections/CTA.tsx +257 -258
- package/dist/kits/blocks/components/sections/CommandShowcase.tsx +517 -0
- package/dist/kits/blocks/components/sections/Contact.tsx +267 -267
- package/dist/kits/blocks/components/sections/FAQ.tsx +214 -225
- package/dist/kits/blocks/components/sections/FeaturedProjectShowcase.tsx +687 -0
- package/dist/kits/blocks/components/sections/Features.tsx +268 -270
- package/dist/kits/blocks/components/sections/Footer.tsx +302 -302
- package/dist/kits/blocks/components/sections/HeroMotion.tsx +308 -308
- package/dist/kits/blocks/components/sections/HeroOverlay.tsx +358 -358
- package/dist/kits/blocks/components/sections/HeroProductDemo.tsx +246 -0
- package/dist/kits/blocks/components/sections/HeroSplit.tsx +352 -352
- package/dist/kits/blocks/components/sections/HeroWithVideo.tsx +495 -0
- package/dist/kits/blocks/components/sections/Navbar.tsx +352 -353
- package/dist/kits/blocks/components/sections/PortfolioSimple.tsx +549 -550
- package/dist/kits/blocks/components/sections/Pricing.tsx +264 -264
- package/dist/kits/blocks/components/sections/ProcessTimeline.tsx +325 -325
- package/dist/kits/blocks/components/sections/ProjectDeepDive.tsx +805 -0
- package/dist/kits/blocks/components/sections/SelectedWorkRail.tsx +485 -0
- package/dist/kits/blocks/components/sections/ServicesGrid.tsx +210 -210
- package/dist/kits/blocks/components/sections/Team.tsx +309 -309
- package/dist/kits/blocks/components/sections/Testimonials.tsx +158 -158
- package/dist/kits/blocks/components/sections/TrustBadges.tsx +162 -162
- package/dist/kits/blocks/components/sections/product-demo/ApprovalInboxPanel.tsx +128 -0
- package/dist/kits/blocks/components/sections/product-demo/DemoStage.tsx +519 -0
- package/dist/kits/blocks/components/sections/product-demo/DemoWindow.tsx +140 -0
- package/dist/kits/blocks/components/sections/product-demo/KnowledgePanel.tsx +130 -0
- package/dist/kits/blocks/components/sections/product-demo/RunConsolePanel.tsx +430 -0
- package/dist/kits/blocks/components/sections/product-demo/TaskListPanel.tsx +302 -0
- package/dist/kits/blocks/components/sections/product-demo/WorkflowStudioPanel.tsx +744 -0
- package/dist/kits/blocks/components/sections/product-demo/types.ts +262 -0
- package/dist/kits/blocks/components/theme-provider.tsx +1 -34
- package/dist/kits/blocks/components/ui/alert-dialog.tsx +134 -134
- package/dist/kits/blocks/components/ui/brand-node.tsx +121 -121
- package/dist/kits/blocks/components/ui/button.tsx +122 -122
- package/dist/kits/blocks/components/ui/card.tsx +95 -95
- package/dist/kits/blocks/components/ui/checkbox.tsx +30 -30
- package/dist/kits/blocks/components/ui/cta-button.tsx +125 -125
- package/dist/kits/blocks/components/ui/dropdown-menu.tsx +201 -201
- package/dist/kits/blocks/components/ui/feature-card.tsx +91 -91
- package/dist/kits/blocks/components/ui/input.tsx +27 -27
- package/dist/kits/blocks/components/ui/label.tsx +29 -29
- package/dist/kits/blocks/components/ui/pricing-card.tsx +120 -120
- package/dist/kits/blocks/components/ui/select.tsx +25 -25
- package/dist/kits/blocks/components/ui/skeleton.tsx +13 -13
- package/dist/kits/blocks/components/ui/table.tsx +98 -98
- package/dist/kits/blocks/components/ui/testimonial-card.tsx +108 -108
- package/dist/kits/blocks/components/ui/textarea.tsx +26 -26
- package/dist/kits/blocks/components/ui/theme-selector.tsx +243 -247
- package/dist/kits/blocks/components/ui/theme-toggle.tsx +74 -74
- package/dist/kits/blocks/components/ui/toaster.tsx +7 -7
- package/dist/kits/blocks/lib/themes.ts +400 -400
- package/dist/kits/blocks/lib/utils.ts +6 -9
- package/dist/kits/blocks/package-deps.json +40 -28
- package/dist/kits/blocks/tsconfig.json +11 -0
- package/dist/kits/blocks/tsconfig.tsbuildinfo +1 -0
- package/dist/utils/file-operations.d.ts +3 -1
- package/dist/utils/file-operations.d.ts.map +1 -1
- package/dist/utils/file-operations.js +84 -12
- package/dist/utils/file-operations.js.map +1 -1
- package/dist/utils/installation-tracker.d.ts +2 -2
- package/dist/utils/installation-tracker.d.ts.map +1 -1
- package/dist/utils/installation-tracker.js +11 -11
- package/dist/utils/installation-tracker.js.map +1 -1
- package/dist/utils/package-manager.d.ts +6 -0
- package/dist/utils/package-manager.d.ts.map +1 -0
- package/dist/utils/package-manager.js +58 -0
- package/dist/utils/package-manager.js.map +1 -0
- package/dist/utils/yarn-pnp.d.ts +6 -0
- package/dist/utils/yarn-pnp.d.ts.map +1 -0
- package/dist/utils/yarn-pnp.js +39 -0
- package/dist/utils/yarn-pnp.js.map +1 -0
- package/package.json +5 -2
- package/dist/kits/blocks/notes/THEME_GUIDE.md +0 -29
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import React from "react";
|
|
4
|
+
import Link from "next/link";
|
|
5
|
+
import { Button } from "@/components/ui/button";
|
|
6
|
+
import { cn } from "@/lib/utils";
|
|
7
|
+
import { DemoStage } from "./product-demo/DemoStage";
|
|
8
|
+
import type { ProductDemoScenario } from "./product-demo/types";
|
|
9
|
+
|
|
10
|
+
export interface HeroProductDemoTextContent {
|
|
11
|
+
text?: string;
|
|
12
|
+
className?: string;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface HeroProductDemoCta {
|
|
16
|
+
label?: string;
|
|
17
|
+
href?: string;
|
|
18
|
+
variant?:
|
|
19
|
+
| "default"
|
|
20
|
+
| "destructive"
|
|
21
|
+
| "outline"
|
|
22
|
+
| "secondary"
|
|
23
|
+
| "ghost"
|
|
24
|
+
| "link";
|
|
25
|
+
size?: "default" | "sm" | "lg" | "icon";
|
|
26
|
+
className?: string;
|
|
27
|
+
unstyled?: boolean;
|
|
28
|
+
style?: React.CSSProperties;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface HeroProductDemoStageConfig {
|
|
32
|
+
scenarios?: ProductDemoScenario[];
|
|
33
|
+
initialScenarioIndex?: number;
|
|
34
|
+
activeScenarioKey?: string;
|
|
35
|
+
autoCycle?: boolean;
|
|
36
|
+
cycleIntervalMs?: number;
|
|
37
|
+
className?: string;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export interface HeroProductDemoSlots {
|
|
41
|
+
section?: { className?: string };
|
|
42
|
+
container?: { className?: string };
|
|
43
|
+
textContainer?: { className?: string };
|
|
44
|
+
demoContainer?: { className?: string };
|
|
45
|
+
buttonsContainer?: { className?: string };
|
|
46
|
+
demoBelowText?: boolean;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export interface HeroProductDemoProps extends HeroProductDemoSlots {
|
|
50
|
+
id?: string;
|
|
51
|
+
className?: string;
|
|
52
|
+
heading?: string | HeroProductDemoTextContent;
|
|
53
|
+
subheading?: string | HeroProductDemoTextContent;
|
|
54
|
+
cta1?: HeroProductDemoCta;
|
|
55
|
+
cta2?: HeroProductDemoCta;
|
|
56
|
+
stage?: HeroProductDemoStageConfig;
|
|
57
|
+
demo?: React.ReactNode;
|
|
58
|
+
ariaLabel?: string;
|
|
59
|
+
enableMotion?: boolean;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
function normalizeTextContent(
|
|
63
|
+
value: string | HeroProductDemoTextContent | undefined,
|
|
64
|
+
defaults: Required<HeroProductDemoTextContent>,
|
|
65
|
+
) {
|
|
66
|
+
if (typeof value === "string") {
|
|
67
|
+
return { text: value, className: defaults.className };
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
return {
|
|
71
|
+
text: value?.text ?? defaults.text,
|
|
72
|
+
className: cn(defaults.className, value?.className),
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function HeroProductDemo({
|
|
77
|
+
id,
|
|
78
|
+
className,
|
|
79
|
+
heading,
|
|
80
|
+
subheading,
|
|
81
|
+
cta1,
|
|
82
|
+
cta2,
|
|
83
|
+
stage,
|
|
84
|
+
demo,
|
|
85
|
+
section,
|
|
86
|
+
container,
|
|
87
|
+
textContainer,
|
|
88
|
+
demoContainer,
|
|
89
|
+
buttonsContainer,
|
|
90
|
+
demoBelowText = false,
|
|
91
|
+
ariaLabel = "Product demo hero section",
|
|
92
|
+
enableMotion = true,
|
|
93
|
+
}: HeroProductDemoProps) {
|
|
94
|
+
const defaultHeading = {
|
|
95
|
+
text: "Show your product in motion",
|
|
96
|
+
className:
|
|
97
|
+
"text-4xl font-bold leading-tight tracking-tight text-foreground sm:text-5xl lg:text-6xl",
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
const defaultSubheading = {
|
|
101
|
+
text: "Pair clear positioning with a layered product demo that makes the workflow feel real before anyone clicks.",
|
|
102
|
+
className:
|
|
103
|
+
"mt-4 max-w-2xl text-sm text-muted-foreground sm:text-base lg:text-lg",
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
const normalizedHeading = normalizeTextContent(heading, defaultHeading);
|
|
107
|
+
const normalizedSubheading = normalizeTextContent(
|
|
108
|
+
subheading,
|
|
109
|
+
defaultSubheading,
|
|
110
|
+
);
|
|
111
|
+
|
|
112
|
+
const buttonLift = enableMotion
|
|
113
|
+
? "transition-all duration-200 hover:-translate-y-0.5"
|
|
114
|
+
: "transition-none hover:!translate-y-0";
|
|
115
|
+
|
|
116
|
+
const defaultCta1 = {
|
|
117
|
+
label: "Get Started",
|
|
118
|
+
href: "#contact",
|
|
119
|
+
variant: "default" as const,
|
|
120
|
+
size: "lg" as const,
|
|
121
|
+
className: "shadow-lg hover:shadow-xl",
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
const mergedCta1 = {
|
|
125
|
+
...defaultCta1,
|
|
126
|
+
...(cta1 ?? {}),
|
|
127
|
+
className: cn(defaultCta1.className, cta1?.className, buttonLift),
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
const defaultCta2 = {
|
|
131
|
+
label: "Learn More",
|
|
132
|
+
href: "#",
|
|
133
|
+
variant: "outline" as const,
|
|
134
|
+
size: "lg" as const,
|
|
135
|
+
className: "",
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
const mergedCta2 = cta2
|
|
139
|
+
? {
|
|
140
|
+
...defaultCta2,
|
|
141
|
+
...cta2,
|
|
142
|
+
className: cn(defaultCta2.className, cta2.className, buttonLift),
|
|
143
|
+
}
|
|
144
|
+
: undefined;
|
|
145
|
+
|
|
146
|
+
const renderButtons = (
|
|
147
|
+
<div
|
|
148
|
+
className={cn(
|
|
149
|
+
"mt-4 flex flex-col items-start gap-4 sm:flex-row sm:items-center",
|
|
150
|
+
|
|
151
|
+
buttonsContainer?.className,
|
|
152
|
+
)}
|
|
153
|
+
>
|
|
154
|
+
{mergedCta1.label && (
|
|
155
|
+
<Button
|
|
156
|
+
asChild
|
|
157
|
+
variant={mergedCta1.variant}
|
|
158
|
+
size={mergedCta1.size}
|
|
159
|
+
className={mergedCta1.className}
|
|
160
|
+
unstyled={mergedCta1.unstyled}
|
|
161
|
+
style={mergedCta1.style}
|
|
162
|
+
>
|
|
163
|
+
<Link href={mergedCta1.href || "#"} aria-label={mergedCta1.label}>
|
|
164
|
+
{mergedCta1.label}
|
|
165
|
+
</Link>
|
|
166
|
+
</Button>
|
|
167
|
+
)}
|
|
168
|
+
|
|
169
|
+
{mergedCta2?.label && (
|
|
170
|
+
<Button
|
|
171
|
+
asChild
|
|
172
|
+
variant={mergedCta2.variant}
|
|
173
|
+
size={mergedCta2.size}
|
|
174
|
+
className={mergedCta2.className}
|
|
175
|
+
unstyled={mergedCta2.unstyled}
|
|
176
|
+
style={mergedCta2.style}
|
|
177
|
+
>
|
|
178
|
+
<Link href={mergedCta2.href || "#"} aria-label={mergedCta2.label}>
|
|
179
|
+
{mergedCta2.label}
|
|
180
|
+
</Link>
|
|
181
|
+
</Button>
|
|
182
|
+
)}
|
|
183
|
+
</div>
|
|
184
|
+
);
|
|
185
|
+
|
|
186
|
+
const renderDemo = (
|
|
187
|
+
<div className={cn("relative", demoContainer?.className)}>
|
|
188
|
+
{demo ?? (
|
|
189
|
+
<DemoStage
|
|
190
|
+
scenarios={stage?.scenarios}
|
|
191
|
+
initialScenarioIndex={stage?.initialScenarioIndex}
|
|
192
|
+
activeScenarioKey={stage?.activeScenarioKey}
|
|
193
|
+
autoCycle={stage?.autoCycle}
|
|
194
|
+
cycleIntervalMs={stage?.cycleIntervalMs}
|
|
195
|
+
className={stage?.className}
|
|
196
|
+
enableMotion={enableMotion}
|
|
197
|
+
ariaLabel="Layered product demo"
|
|
198
|
+
/>
|
|
199
|
+
)}
|
|
200
|
+
</div>
|
|
201
|
+
);
|
|
202
|
+
|
|
203
|
+
return (
|
|
204
|
+
<section
|
|
205
|
+
id={id}
|
|
206
|
+
className={cn(
|
|
207
|
+
"relative overflow-hidden px-6 py-12 sm:px-8 lg:px-10 lg:py-18",
|
|
208
|
+
section?.className,
|
|
209
|
+
className,
|
|
210
|
+
)}
|
|
211
|
+
aria-label={ariaLabel}
|
|
212
|
+
>
|
|
213
|
+
<div
|
|
214
|
+
className={cn(
|
|
215
|
+
demoBelowText
|
|
216
|
+
? "mx-auto flex max-w-7xl flex-col gap-6"
|
|
217
|
+
: "mx-auto grid max-w-7xl items-center gap-12 lg:grid-cols-[minmax(0,0.84fr)_minmax(0,1.16fr)] lg:gap-12 xl:grid-cols-[minmax(0,0.8fr)_minmax(0,1.2fr)]",
|
|
218
|
+
container?.className,
|
|
219
|
+
)}
|
|
220
|
+
>
|
|
221
|
+
<div
|
|
222
|
+
className={cn(
|
|
223
|
+
"relative z-10 flex flex-col items-start",
|
|
224
|
+
textContainer?.className,
|
|
225
|
+
)}
|
|
226
|
+
>
|
|
227
|
+
<h1 className={cn(normalizedHeading.className)}>
|
|
228
|
+
{normalizedHeading.text}
|
|
229
|
+
</h1>
|
|
230
|
+
|
|
231
|
+
{normalizedSubheading.text ? (
|
|
232
|
+
<p className={cn(normalizedSubheading.className)}>
|
|
233
|
+
{normalizedSubheading.text}
|
|
234
|
+
</p>
|
|
235
|
+
) : null}
|
|
236
|
+
|
|
237
|
+
{!demoBelowText ? renderButtons : null}
|
|
238
|
+
</div>
|
|
239
|
+
|
|
240
|
+
{renderDemo}
|
|
241
|
+
|
|
242
|
+
{demoBelowText ? renderButtons : null}
|
|
243
|
+
</div>
|
|
244
|
+
</section>
|
|
245
|
+
);
|
|
246
|
+
}
|