nextworks 0.2.0-alpha.7 → 0.2.0-alpha.9
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 +23 -22
- package/dist/cli_manifests/blocks_manifest.json +13 -32
- package/dist/commands/blocks.d.ts +1 -0
- package/dist/commands/blocks.d.ts.map +1 -1
- package/dist/commands/blocks.js +536 -9
- package/dist/commands/blocks.js.map +1 -1
- package/dist/commands/remove-blocks.js +2 -2
- package/dist/commands/remove-blocks.js.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/kits/blocks/.nextworks/docs/BLOCKS_QUICKSTART.md +1 -1
- package/dist/kits/blocks/.nextworks/docs/BLOCKS_README.md +2 -3
- package/dist/kits/blocks/.nextworks/docs/THEME_GUIDE.md +269 -269
- 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/gallery/PresetThemeVars.tsx +1 -2
- package/dist/kits/blocks/app/templates/gallery/page.tsx +300 -303
- package/dist/kits/blocks/app/templates/productlaunch/PresetThemeVars.tsx +1 -0
- package/dist/kits/blocks/app/templates/productlaunch/components/About.tsx +0 -94
- package/dist/kits/blocks/app/templates/productlaunch/components/CTA.tsx +2 -45
- package/dist/kits/blocks/app/templates/productlaunch/components/FAQ.tsx +4 -11
- package/dist/kits/blocks/app/templates/productlaunch/components/Features.tsx +1 -2
- package/dist/kits/blocks/app/templates/productlaunch/components/Footer.tsx +1 -1
- package/dist/kits/blocks/app/templates/productlaunch/components/Hero.tsx +6 -7
- package/dist/kits/blocks/app/templates/productlaunch/components/Navbar.tsx +8 -54
- package/dist/kits/blocks/app/templates/productlaunch/components/Pricing.tsx +1 -1
- package/dist/kits/blocks/app/templates/productlaunch/components/ProcessTimeline.tsx +1 -1
- package/dist/kits/blocks/app/templates/productlaunch/components/ServicesGrid.tsx +1 -1
- package/dist/kits/blocks/app/templates/productlaunch/components/Team.tsx +1 -1
- package/dist/kits/blocks/app/templates/productlaunch/components/Testimonials.tsx +2 -1
- package/dist/kits/blocks/app/templates/productlaunch/components/TrustBadges.tsx +1 -1
- package/dist/kits/blocks/app/templates/saasdashboard/README.md +1 -1
- package/dist/kits/blocks/app/templates/saasdashboard/components/Contact.tsx +0 -47
- package/dist/kits/blocks/app/templates/saasdashboard/components/Dashboard.tsx +2 -2
- package/dist/kits/blocks/app/templates/saasdashboard/components/Features.tsx +0 -1
- package/dist/kits/blocks/app/templates/saasdashboard/components/Hero.tsx +0 -1
- package/dist/kits/blocks/app/templates/saasdashboard/components/Hero_mask.tsx +0 -1
- package/dist/kits/blocks/app/templates/saasdashboard/components/Navbar.tsx +4 -46
- package/dist/kits/blocks/app/templates/saasdashboard/components/SmoothScroll.tsx +3 -4
- package/dist/kits/blocks/app/templates/saasdashboard/components/Testimonials.tsx +1 -1
- package/dist/kits/blocks/components/enhanced-theme-provider.tsx +17 -5
- package/dist/kits/blocks/components/sections/CTA.tsx +0 -1
- package/dist/kits/blocks/components/sections/FAQ.tsx +0 -11
- package/dist/kits/blocks/components/sections/Features.tsx +2 -4
- package/dist/kits/blocks/components/sections/HeroMotion.tsx +1 -1
- package/dist/kits/blocks/components/sections/HeroOverlay.tsx +2 -2
- package/dist/kits/blocks/components/sections/HeroSplit.tsx +1 -1
- package/dist/kits/blocks/components/sections/Navbar.tsx +1 -4
- package/dist/kits/blocks/components/sections/PortfolioSimple.tsx +0 -1
- package/dist/kits/blocks/components/sections/ServicesGrid.tsx +1 -1
- package/dist/kits/blocks/components/theme-provider.tsx +0 -33
- package/dist/kits/blocks/components/ui/theme-selector.tsx +0 -4
- package/dist/kits/blocks/lib/utils.ts +0 -3
- package/dist/kits/blocks/package-deps.json +40 -40
- 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.js +1 -1
- package/dist/utils/package-manager.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
## 90-second install demo (silent)
|
|
4
4
|
|
|
5
|
-
Fresh `create-next-app` + `npx nextworks add blocks --
|
|
5
|
+
Fresh `create-next-app` + `npx nextworks add blocks --templates`, plus a quick browser tour of the gallery + templates:
|
|
6
6
|
|
|
7
7
|
[](https://www.youtube.com/watch?v=7YKmGFmFY5c)
|
|
8
8
|
|
|
@@ -35,28 +35,28 @@ Nextworks is a CLI that installs **modular Next.js building blocks** into your a
|
|
|
35
35
|
> 2. From your app root, install **Blocks**:
|
|
36
36
|
>
|
|
37
37
|
> ```bash
|
|
38
|
-
> npx nextworks@latest add blocks --
|
|
38
|
+
> npx nextworks@latest add blocks --templates
|
|
39
39
|
> ```
|
|
40
40
|
>
|
|
41
41
|
> pnpm / yarn equivalents:
|
|
42
42
|
>
|
|
43
43
|
> ```bash
|
|
44
|
-
> pnpm dlx nextworks@latest add blocks --
|
|
45
|
-
> yarn dlx nextworks@latest add blocks --
|
|
44
|
+
> pnpm dlx nextworks@latest add blocks --templates
|
|
45
|
+
> yarn dlx nextworks@latest add blocks --templates
|
|
46
46
|
> ```
|
|
47
47
|
>
|
|
48
48
|
> Non-interactive / CI-friendly:
|
|
49
49
|
>
|
|
50
50
|
> ```bash
|
|
51
|
-
> npx nextworks@latest add blocks --
|
|
51
|
+
> npx nextworks@latest add blocks --templates --yes
|
|
52
52
|
> ```
|
|
53
53
|
>
|
|
54
54
|
> Force a specific package manager (overrides lockfile detection):
|
|
55
55
|
>
|
|
56
56
|
> ```bash
|
|
57
|
-
> npx nextworks@latest add blocks --
|
|
58
|
-
> npx nextworks@latest add blocks --
|
|
59
|
-
> npx nextworks@latest add blocks --
|
|
57
|
+
> npx nextworks@latest add blocks --templates --pm pnpm
|
|
58
|
+
> npx nextworks@latest add blocks --templates --pm yarn
|
|
59
|
+
> npx nextworks@latest add blocks --templates --pm npm
|
|
60
60
|
> ```
|
|
61
61
|
>
|
|
62
62
|
> 3. Optionally, adjust flags to install only what you want (UI-only, sections, templates).
|
|
@@ -133,14 +133,14 @@ yarn dlx nextworks@latest --help
|
|
|
133
133
|
Example commands:
|
|
134
134
|
|
|
135
135
|
```bash
|
|
136
|
-
npx nextworks@latest add blocks
|
|
137
|
-
pnpm dlx nextworks@latest add blocks --
|
|
138
|
-
yarn dlx nextworks@latest add blocks --
|
|
136
|
+
npx nextworks@latest add blocks --templates
|
|
137
|
+
pnpm dlx nextworks@latest add blocks --templates
|
|
138
|
+
yarn dlx nextworks@latest add blocks --templates
|
|
139
139
|
|
|
140
|
-
npx nextworks@latest add blocks --
|
|
140
|
+
npx nextworks@latest add blocks --templates --yes # non-interactive / CI
|
|
141
141
|
|
|
142
142
|
# Force a specific package manager (overrides lockfile detection)
|
|
143
|
-
npx nextworks@latest add blocks --
|
|
143
|
+
npx nextworks@latest add blocks --templates --pm pnpm
|
|
144
144
|
```
|
|
145
145
|
|
|
146
146
|
---
|
|
@@ -160,7 +160,7 @@ From your app root:
|
|
|
160
160
|
Non-interactive / CI-friendly (auto-accept defaults where possible):
|
|
161
161
|
|
|
162
162
|
```bash
|
|
163
|
-
npx nextworks@latest add blocks --
|
|
163
|
+
npx nextworks@latest add blocks --templates --yes
|
|
164
164
|
```
|
|
165
165
|
|
|
166
166
|
> **Turbopack / Next 16 note (fonts + AppProviders)**
|
|
@@ -175,7 +175,7 @@ npx nextworks@latest add blocks --sections --templates --yes
|
|
|
175
175
|
> If you ever see a font-related Turbopack error after upgrades or manual edits, re-run:
|
|
176
176
|
>
|
|
177
177
|
> ```bash
|
|
178
|
-
> npx nextworks@latest add blocks --
|
|
178
|
+
> npx nextworks@latest add blocks --templates
|
|
179
179
|
> ```
|
|
180
180
|
>
|
|
181
181
|
> to re-apply the patch, and ensure your router entrypoint contains a valid
|
|
@@ -185,9 +185,11 @@ npx nextworks@latest add blocks --sections --templates --yes
|
|
|
185
185
|
> - Pages Router: `pages/_app.tsx`
|
|
186
186
|
|
|
187
187
|
```bash
|
|
188
|
-
npx nextworks@latest add blocks --
|
|
188
|
+
npx nextworks@latest add blocks --templates
|
|
189
189
|
```
|
|
190
190
|
|
|
191
|
+
> Note: Older docs (and the demo video) may show `--sections --templates`. It still works, but `--sections` is no longer needed.
|
|
192
|
+
|
|
191
193
|
This copies:
|
|
192
194
|
|
|
193
195
|
- `components/ui/*` (core UI primitives)
|
|
@@ -211,21 +213,20 @@ After this step you should be able to start your dev server and visit:
|
|
|
211
213
|
For a full UI kit including core primitives, sections, and templates, use:
|
|
212
214
|
|
|
213
215
|
```bash
|
|
214
|
-
npx nextworks@latest add blocks --
|
|
216
|
+
npx nextworks@latest add blocks --templates
|
|
215
217
|
```
|
|
216
218
|
|
|
217
219
|
Non-interactive / CI-friendly:
|
|
218
220
|
|
|
219
221
|
```bash
|
|
220
|
-
npx nextworks@latest add blocks --
|
|
222
|
+
npx nextworks@latest add blocks --templates --yes
|
|
221
223
|
```
|
|
222
224
|
|
|
223
225
|
If you want finer control:
|
|
224
226
|
|
|
225
227
|
- `npx nextworks@latest add blocks --ui-only` – install core UI primitives only (no sections/templates).
|
|
226
228
|
- `npx nextworks@latest add blocks --sections` – install core + sections only.
|
|
227
|
-
- `npx nextworks@latest add blocks --templates` – install core + templates
|
|
228
|
-
- `npx nextworks@latest add blocks --sections --templates` – install core + sections + templates.
|
|
229
|
+
- `npx nextworks@latest add blocks --templates` – install core + sections + templates.
|
|
229
230
|
|
|
230
231
|
---
|
|
231
232
|
|
|
@@ -238,11 +239,11 @@ You can add a short “Nextworks setup” section to your app README:
|
|
|
238
239
|
|
|
239
240
|
1. Install and run the CLI from your Next.js app root:
|
|
240
241
|
|
|
241
|
-
npx nextworks@latest add blocks --
|
|
242
|
+
npx nextworks@latest add blocks --templates
|
|
242
243
|
|
|
243
244
|
# CI / non-interactive:
|
|
244
245
|
|
|
245
|
-
npx nextworks@latest add blocks --
|
|
246
|
+
npx nextworks@latest add blocks --templates --yes
|
|
246
247
|
|
|
247
248
|
2. Start dev server:
|
|
248
249
|
|
|
@@ -68,38 +68,6 @@
|
|
|
68
68
|
"templates": {
|
|
69
69
|
"description": "Full page templates (Product Launch, SaaS Dashboard, Digital Agency, Gallery)",
|
|
70
70
|
"files": [
|
|
71
|
-
"components/ui/alert-dialog.tsx",
|
|
72
|
-
"components/ui/brand-node.tsx",
|
|
73
|
-
"components/ui/button.tsx",
|
|
74
|
-
"components/ui/card.tsx",
|
|
75
|
-
"components/ui/checkbox.tsx",
|
|
76
|
-
"components/ui/cta-button.tsx",
|
|
77
|
-
"components/ui/dropdown-menu.tsx",
|
|
78
|
-
"components/ui/feature-card.tsx",
|
|
79
|
-
"components/ui/input.tsx",
|
|
80
|
-
"components/ui/label.tsx",
|
|
81
|
-
"components/ui/pricing-card.tsx",
|
|
82
|
-
"components/ui/select.tsx",
|
|
83
|
-
"components/ui/skeleton.tsx",
|
|
84
|
-
"components/ui/switch.tsx",
|
|
85
|
-
"components/ui/table.tsx",
|
|
86
|
-
"components/ui/testimonial-card.tsx",
|
|
87
|
-
"components/ui/textarea.tsx",
|
|
88
|
-
"components/ui/theme-selector.tsx",
|
|
89
|
-
"components/ui/theme-toggle.tsx",
|
|
90
|
-
"components/ui/toaster.tsx",
|
|
91
|
-
"components/enhanced-theme-provider.tsx",
|
|
92
|
-
"components/providers/BlocksAppProviders.tsx",
|
|
93
|
-
"components/app-providers.tsx",
|
|
94
|
-
"components/app-providers.app.tsx",
|
|
95
|
-
"components/app-providers.pages.tsx",
|
|
96
|
-
"components/theme-provider.tsx",
|
|
97
|
-
"lib/themes.ts",
|
|
98
|
-
"lib/utils.ts",
|
|
99
|
-
"app/globals.css",
|
|
100
|
-
"app/tw-animate.css",
|
|
101
|
-
"next.config.ts",
|
|
102
|
-
|
|
103
71
|
"app/templates/productlaunch/page.tsx",
|
|
104
72
|
"app/templates/productlaunch/PresetThemeVars.tsx",
|
|
105
73
|
"app/templates/productlaunch/README.md",
|
|
@@ -168,8 +136,21 @@
|
|
|
168
136
|
"public/placeholders/saas_dashboard/projectBoard.png",
|
|
169
137
|
".nextworks/docs/THEME_GUIDE.md"
|
|
170
138
|
]
|
|
139
|
+
},
|
|
140
|
+
"gallery": {
|
|
141
|
+
"description": "Gallery of marketing sections (Hero, CTA, Pricing, etc.)",
|
|
142
|
+
"files": [
|
|
143
|
+
"app/templates/gallery/page.tsx",
|
|
144
|
+
"app/templates/gallery/PresetThemeVars.tsx",
|
|
145
|
+
"public/placeholders/gallery/hero-pexels-broken-9945014.avif",
|
|
146
|
+
"public/placeholders/gallery/pexels-googledeepmind-25626431.jpg",
|
|
147
|
+
"public/placeholders/gallery/pexels-googledeepmind-25626432.jpg",
|
|
148
|
+
"public/placeholders/gallery/pexels-googledeepmind-25626434.jpg",
|
|
149
|
+
"public/placeholders/gallery/pexels-googledeepmind-25626436.jpg"
|
|
150
|
+
]
|
|
171
151
|
}
|
|
172
152
|
},
|
|
153
|
+
|
|
173
154
|
"files": [
|
|
174
155
|
"public/placeholders/gallery/hero-pexels-broken-9945014.avif",
|
|
175
156
|
"public/placeholders/gallery/pexels-googledeepmind-25626431.jpg",
|
|
@@ -7,6 +7,7 @@ export interface AddBlocksOptions {
|
|
|
7
7
|
yes?: boolean;
|
|
8
8
|
/** Force package manager (overrides lockfile detection). */
|
|
9
9
|
pm?: import("../utils/package-manager").PackageManager;
|
|
10
|
+
dryRun?: boolean;
|
|
10
11
|
}
|
|
11
12
|
export declare function addBlocks(options?: AddBlocksOptions): Promise<void>;
|
|
12
13
|
//# sourceMappingURL=blocks.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blocks.d.ts","sourceRoot":"","sources":["../../src/commands/blocks.ts"],"names":[],"mappings":"AAgCA,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,oDAAoD;IACpD,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,4DAA4D;IAC5D,EAAE,CAAC,EAAE,OAAO,0BAA0B,EAAE,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"blocks.d.ts","sourceRoot":"","sources":["../../src/commands/blocks.ts"],"names":[],"mappings":"AAgCA,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,oDAAoD;IACpD,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,4DAA4D;IAC5D,EAAE,CAAC,EAAE,OAAO,0BAA0B,EAAE,cAAc,CAAC;IACvD,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,wBAAsB,SAAS,CAAC,OAAO,GAAE,gBAAqB,GAAG,OAAO,CAAC,IAAI,CAAC,CAqkB7E"}
|