nextworks 0.2.0-alpha.11 → 0.2.0-alpha.13

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 (111) hide show
  1. package/README.md +283 -282
  2. package/dist/cli_manifests/blocks_manifest.json +198 -175
  3. package/dist/kits/blocks/.nextworks/docs/BLOCKS_QUICKSTART.md +101 -100
  4. package/dist/kits/blocks/.nextworks/docs/BLOCKS_README.md +105 -104
  5. package/dist/kits/blocks/.nextworks/docs/THEME_GUIDE.md +1 -1
  6. package/dist/kits/blocks/app/templates/aiworkflow/PresetThemeVars.tsx +58 -0
  7. package/dist/kits/blocks/app/templates/aiworkflow/README.md +46 -0
  8. package/dist/kits/blocks/app/templates/aiworkflow/components/CTA.tsx +44 -0
  9. package/dist/kits/blocks/app/templates/aiworkflow/components/Contact.tsx +105 -0
  10. package/dist/kits/blocks/app/templates/aiworkflow/components/FAQ.tsx +63 -0
  11. package/dist/kits/blocks/app/templates/aiworkflow/components/Features.tsx +65 -0
  12. package/dist/kits/blocks/app/templates/aiworkflow/components/Footer.tsx +109 -0
  13. package/dist/kits/blocks/app/templates/aiworkflow/components/Hero.tsx +636 -0
  14. package/dist/kits/blocks/app/templates/aiworkflow/components/Navbar.tsx +90 -0
  15. package/dist/kits/blocks/app/templates/aiworkflow/components/Pricing.tsx +86 -0
  16. package/dist/kits/blocks/app/templates/aiworkflow/components/ProcessTimeline.tsx +103 -0
  17. package/dist/kits/blocks/app/templates/aiworkflow/components/Testimonials.tsx +56 -0
  18. package/dist/kits/blocks/app/templates/aiworkflow/components/TrustBadges.tsx +59 -0
  19. package/dist/kits/blocks/app/templates/aiworkflow/page.tsx +43 -0
  20. package/dist/kits/blocks/app/templates/digitalagency/PresetThemeVars.tsx +80 -80
  21. package/dist/kits/blocks/app/templates/digitalagency/README.md +42 -42
  22. package/dist/kits/blocks/app/templates/digitalagency/components/Pricing.tsx +114 -114
  23. package/dist/kits/blocks/app/templates/digitalagency/components/Process.tsx +59 -59
  24. package/dist/kits/blocks/app/templates/digitalagency/components/Services.tsx +55 -55
  25. package/dist/kits/blocks/app/templates/digitalagency/components/Team.tsx +28 -28
  26. package/dist/kits/blocks/app/templates/digitalagency/components/Testimonials.tsx +65 -65
  27. package/dist/kits/blocks/app/templates/digitalagency/page.tsx +38 -38
  28. package/dist/kits/blocks/app/templates/gallery/PresetThemeVars.tsx +84 -84
  29. package/dist/kits/blocks/app/templates/productlaunch/PresetThemeVars.tsx +75 -75
  30. package/dist/kits/blocks/app/templates/productlaunch/README.md +62 -62
  31. package/dist/kits/blocks/app/templates/productlaunch/components/About.tsx +84 -84
  32. package/dist/kits/blocks/app/templates/productlaunch/components/CTA.tsx +50 -50
  33. package/dist/kits/blocks/app/templates/productlaunch/components/Contact.tsx +231 -231
  34. package/dist/kits/blocks/app/templates/productlaunch/components/FAQ.tsx +86 -86
  35. package/dist/kits/blocks/app/templates/productlaunch/components/Features.tsx +83 -83
  36. package/dist/kits/blocks/app/templates/productlaunch/components/Footer.tsx +132 -132
  37. package/dist/kits/blocks/app/templates/productlaunch/components/Hero.tsx +88 -88
  38. package/dist/kits/blocks/app/templates/productlaunch/components/Navbar.tsx +116 -116
  39. package/dist/kits/blocks/app/templates/productlaunch/components/Pricing.tsx +106 -106
  40. package/dist/kits/blocks/app/templates/productlaunch/components/ProcessTimeline.tsx +110 -110
  41. package/dist/kits/blocks/app/templates/productlaunch/components/ServicesGrid.tsx +68 -68
  42. package/dist/kits/blocks/app/templates/productlaunch/components/Team.tsx +104 -104
  43. package/dist/kits/blocks/app/templates/productlaunch/components/Testimonials.tsx +90 -90
  44. package/dist/kits/blocks/app/templates/productlaunch/components/TrustBadges.tsx +76 -76
  45. package/dist/kits/blocks/app/templates/productlaunch/page.tsx +43 -43
  46. package/dist/kits/blocks/app/templates/saasdashboard/PresetThemeVars.tsx +80 -80
  47. package/dist/kits/blocks/app/templates/saasdashboard/README.md +44 -44
  48. package/dist/kits/blocks/app/templates/saasdashboard/components/Contact.tsx +129 -129
  49. package/dist/kits/blocks/app/templates/saasdashboard/components/Dashboard.tsx +293 -293
  50. package/dist/kits/blocks/app/templates/saasdashboard/components/FAQ.tsx +55 -55
  51. package/dist/kits/blocks/app/templates/saasdashboard/components/Features.tsx +90 -90
  52. package/dist/kits/blocks/app/templates/saasdashboard/components/Footer.tsx +77 -77
  53. package/dist/kits/blocks/app/templates/saasdashboard/components/Hero.tsx +104 -104
  54. package/dist/kits/blocks/app/templates/saasdashboard/components/Hero_mask.tsx +126 -126
  55. package/dist/kits/blocks/app/templates/saasdashboard/components/Navbar.tsx +117 -117
  56. package/dist/kits/blocks/app/templates/saasdashboard/components/Pricing.tsx +90 -90
  57. package/dist/kits/blocks/app/templates/saasdashboard/components/SmoothScroll.tsx +96 -96
  58. package/dist/kits/blocks/app/templates/saasdashboard/components/Testimonials.tsx +72 -72
  59. package/dist/kits/blocks/app/templates/saasdashboard/components/TrustBadges.tsx +53 -53
  60. package/dist/kits/blocks/app/templates/saasdashboard/page.tsx +39 -39
  61. package/dist/kits/blocks/components/enhanced-theme-provider.tsx +195 -195
  62. package/dist/kits/blocks/components/providers/BlocksAppProviders.tsx +27 -27
  63. package/dist/kits/blocks/components/sections/About.tsx +291 -291
  64. package/dist/kits/blocks/components/sections/CTA.tsx +257 -257
  65. package/dist/kits/blocks/components/sections/Contact.tsx +267 -267
  66. package/dist/kits/blocks/components/sections/FAQ.tsx +214 -214
  67. package/dist/kits/blocks/components/sections/Features.tsx +268 -268
  68. package/dist/kits/blocks/components/sections/Footer.tsx +302 -302
  69. package/dist/kits/blocks/components/sections/HeroMotion.tsx +308 -308
  70. package/dist/kits/blocks/components/sections/HeroOverlay.tsx +358 -358
  71. package/dist/kits/blocks/components/sections/HeroProductDemo.tsx +236 -0
  72. package/dist/kits/blocks/components/sections/HeroSplit.tsx +352 -352
  73. package/dist/kits/blocks/components/sections/Navbar.tsx +350 -350
  74. package/dist/kits/blocks/components/sections/PortfolioSimple.tsx +549 -549
  75. package/dist/kits/blocks/components/sections/Pricing.tsx +264 -264
  76. package/dist/kits/blocks/components/sections/ProcessTimeline.tsx +325 -325
  77. package/dist/kits/blocks/components/sections/ServicesGrid.tsx +210 -210
  78. package/dist/kits/blocks/components/sections/Team.tsx +309 -309
  79. package/dist/kits/blocks/components/sections/Testimonials.tsx +158 -158
  80. package/dist/kits/blocks/components/sections/TrustBadges.tsx +162 -162
  81. package/dist/kits/blocks/components/sections/product-demo/ApprovalInboxPanel.tsx +125 -0
  82. package/dist/kits/blocks/components/sections/product-demo/DemoStage.tsx +397 -0
  83. package/dist/kits/blocks/components/sections/product-demo/DemoWindow.tsx +128 -0
  84. package/dist/kits/blocks/components/sections/product-demo/KnowledgePanel.tsx +127 -0
  85. package/dist/kits/blocks/components/sections/product-demo/RunConsolePanel.tsx +150 -0
  86. package/dist/kits/blocks/components/sections/product-demo/WorkflowStudioPanel.tsx +191 -0
  87. package/dist/kits/blocks/components/sections/product-demo/types.ts +193 -0
  88. package/dist/kits/blocks/components/theme-provider.tsx +1 -1
  89. package/dist/kits/blocks/components/ui/alert-dialog.tsx +134 -134
  90. package/dist/kits/blocks/components/ui/brand-node.tsx +121 -121
  91. package/dist/kits/blocks/components/ui/button.tsx +122 -122
  92. package/dist/kits/blocks/components/ui/card.tsx +95 -95
  93. package/dist/kits/blocks/components/ui/checkbox.tsx +30 -30
  94. package/dist/kits/blocks/components/ui/cta-button.tsx +125 -125
  95. package/dist/kits/blocks/components/ui/dropdown-menu.tsx +201 -201
  96. package/dist/kits/blocks/components/ui/feature-card.tsx +91 -91
  97. package/dist/kits/blocks/components/ui/input.tsx +27 -27
  98. package/dist/kits/blocks/components/ui/label.tsx +29 -29
  99. package/dist/kits/blocks/components/ui/pricing-card.tsx +120 -120
  100. package/dist/kits/blocks/components/ui/select.tsx +25 -25
  101. package/dist/kits/blocks/components/ui/skeleton.tsx +13 -13
  102. package/dist/kits/blocks/components/ui/table.tsx +98 -98
  103. package/dist/kits/blocks/components/ui/testimonial-card.tsx +108 -108
  104. package/dist/kits/blocks/components/ui/textarea.tsx +26 -26
  105. package/dist/kits/blocks/components/ui/theme-selector.tsx +243 -243
  106. package/dist/kits/blocks/components/ui/theme-toggle.tsx +74 -74
  107. package/dist/kits/blocks/components/ui/toaster.tsx +7 -7
  108. package/dist/kits/blocks/lib/themes.ts +400 -400
  109. package/dist/kits/blocks/lib/utils.ts +6 -6
  110. package/dist/kits/blocks/package-deps.json +3 -3
  111. package/package.json +1 -1
@@ -1,210 +1,210 @@
1
- "use client";
2
-
3
- import React from "react";
4
- import { motion } from "motion/react";
5
- import { cn } from "@/lib/utils";
6
-
7
- /**
8
- * Data structure representing a single service card.
9
- */
10
- export interface ServiceCardData {
11
- icon: string;
12
- title: string;
13
- description: string;
14
- }
15
-
16
- /**
17
- * Props to configure the ServicesGrid component (slots + cn).
18
- */
19
- export interface ServicesGridProps {
20
- /** Optional id on root */
21
- id?: string;
22
- /** Root className merged into section slot */
23
- className?: string;
24
- sectionHeading?: string;
25
- servicesData?: ServiceCardData[];
26
- /** When false, disables entrance animations and hover transitions */
27
- enableMotion?: boolean;
28
- /** Styling configuration objects */
29
- section?: {
30
- className?: string;
31
- };
32
- container?: {
33
- className?: string;
34
- };
35
- heading?: {
36
- className?: string;
37
- };
38
- grid?: {
39
- className?: string;
40
- };
41
- card?: {
42
- className?: string;
43
- };
44
- cardContent?: {
45
- className?: string;
46
- };
47
- icon?: {
48
- className?: string;
49
- };
50
- title?: {
51
- className?: string;
52
- };
53
- description?: {
54
- className?: string;
55
- };
56
- /** ARIA label for the services section */
57
- ariaLabel?: string;
58
- }
59
-
60
- /**
61
- * Default services data for digital agency
62
- */
63
- const defaultServicesData: ServiceCardData[] = [
64
- {
65
- icon: "💻",
66
- title: "Web Design & Development",
67
- description:
68
- "Custom websites that capture your brand and convert visitors into customers",
69
- },
70
- {
71
- icon: "📈",
72
- title: "SEO & Digital Marketing",
73
- description:
74
- "Get found on Google and drive qualified traffic to your website",
75
- },
76
- {
77
- icon: "🛒",
78
- title: "E-commerce Solutions",
79
- description: "Online stores that maximize sales and customer experience",
80
- },
81
- {
82
- icon: "🎨",
83
- title: "Brand Identity & Design",
84
- description: "Logo, branding, and visual identity that makes you stand out",
85
- },
86
- ];
87
-
88
- /**
89
- * Responsive services grid with subtle motion and slot-style overrides.
90
- *
91
- * @remarks
92
- * - Motion can be disabled globally with enableMotion.
93
- * - Each card uses simple emoji icons by default; replace with real icons if preferred.
94
- *
95
- * @example
96
- * <ServicesGrid servicesData={[{ icon: '⚙️', title: 'Automation', description: '...' }]} />
97
- */
98
- export function ServicesGrid({
99
- id,
100
- className,
101
- sectionHeading = "Our Services",
102
- servicesData = defaultServicesData,
103
- enableMotion = true,
104
- section = {
105
- className: "py-16 md:py-20 lg:py-24 bg-muted",
106
- },
107
- container = {
108
- className: "max-w-6xl mx-auto px-4 md:px-6 lg:px-8",
109
- },
110
- heading = {
111
- className:
112
- "text-3xl md:text-4xl lg:text-5xl font-bold font-poppins text-foreground text-center mb-8 md:mb-12",
113
- },
114
- grid = {
115
- className: "grid grid-cols-1 md:grid-cols-2 gap-6 md:gap-8 items-stretch",
116
- },
117
- card = {
118
- className:
119
- "bg-card/90 backdrop-blur p-6 md:p-8 rounded-lg border border-border shadow-sm hover:shadow-md transition-all duration-300 bg-[var(--card-bg)] text-[var(--card-fg)] border-[var(--card-border)] shadow-[var(--card-shadow)]",
120
- },
121
- cardContent = {
122
- className: "flex flex-col h-full space-y-4",
123
- },
124
- icon = {
125
- className: "text-4xl",
126
- },
127
- title = {
128
- className:
129
- "text-lg md:text-xl font-semibold font-poppins text-card-foreground leading-tight text-[var(--card-title-fg)]",
130
- },
131
- description = {
132
- className:
133
- "text-sm md:text-base font-inter leading-relaxed flex-1 text-[var(--card-muted-fg)]",
134
- },
135
- ariaLabel = "Services section",
136
- }: ServicesGridProps) {
137
- return (
138
- <section
139
- id={id}
140
- className={cn(section.className, className)}
141
- aria-label={ariaLabel}
142
- >
143
- <div className={container.className}>
144
- {/* Section Heading */}
145
- <h2 className={heading.className}>{sectionHeading}</h2>
146
-
147
- {/* Services Grid */}
148
- <div className={grid.className}>
149
- {servicesData.map((service, index) => (
150
- <motion.div
151
- key={index}
152
- initial={
153
- enableMotion ? { opacity: 0, y: 12 } : { opacity: 1, y: 0 }
154
- }
155
- whileInView={
156
- enableMotion ? { opacity: 1, y: 0 } : { opacity: 1, y: 0 }
157
- }
158
- viewport={
159
- enableMotion
160
- ? { once: true, amount: 0.2 }
161
- : { once: true, amount: 0 }
162
- }
163
- transition={
164
- enableMotion
165
- ? {
166
- type: "spring",
167
- stiffness: 125,
168
- damping: 50,
169
- mass: 1,
170
- delay: 0.12 + index * 0.05,
171
- }
172
- : { type: "tween", duration: 0 }
173
- }
174
- className={cn(
175
- "h-full motion-reduce:transform-none motion-reduce:transition-none",
176
- )}
177
- >
178
- <div
179
- className={cn(
180
- card.className,
181
- "flex h-full flex-col",
182
- enableMotion
183
- ? "transition-transform duration-200 hover:-translate-y-1"
184
- : "transition-none hover:!translate-y-0 hover:shadow-none",
185
- )}
186
- >
187
- <div className={cardContent.className}>
188
- {/* Service Icon */}
189
- <div
190
- className={icon.className}
191
- role="img"
192
- aria-label={service.title}
193
- >
194
- {service.icon}
195
- </div>
196
-
197
- {/* Service Title */}
198
- <h3 className={title.className}>{service.title}</h3>
199
-
200
- {/* Service Description */}
201
- <p className={description.className}>{service.description}</p>
202
- </div>
203
- </div>
204
- </motion.div>
205
- ))}
206
- </div>
207
- </div>
208
- </section>
209
- );
210
- }
1
+ "use client";
2
+
3
+ import React from "react";
4
+ import { motion } from "motion/react";
5
+ import { cn } from "@/lib/utils";
6
+
7
+ /**
8
+ * Data structure representing a single service card.
9
+ */
10
+ export interface ServiceCardData {
11
+ icon: string;
12
+ title: string;
13
+ description: string;
14
+ }
15
+
16
+ /**
17
+ * Props to configure the ServicesGrid component (slots + cn).
18
+ */
19
+ export interface ServicesGridProps {
20
+ /** Optional id on root */
21
+ id?: string;
22
+ /** Root className merged into section slot */
23
+ className?: string;
24
+ sectionHeading?: string;
25
+ servicesData?: ServiceCardData[];
26
+ /** When false, disables entrance animations and hover transitions */
27
+ enableMotion?: boolean;
28
+ /** Styling configuration objects */
29
+ section?: {
30
+ className?: string;
31
+ };
32
+ container?: {
33
+ className?: string;
34
+ };
35
+ heading?: {
36
+ className?: string;
37
+ };
38
+ grid?: {
39
+ className?: string;
40
+ };
41
+ card?: {
42
+ className?: string;
43
+ };
44
+ cardContent?: {
45
+ className?: string;
46
+ };
47
+ icon?: {
48
+ className?: string;
49
+ };
50
+ title?: {
51
+ className?: string;
52
+ };
53
+ description?: {
54
+ className?: string;
55
+ };
56
+ /** ARIA label for the services section */
57
+ ariaLabel?: string;
58
+ }
59
+
60
+ /**
61
+ * Default services data for digital agency
62
+ */
63
+ const defaultServicesData: ServiceCardData[] = [
64
+ {
65
+ icon: "💻",
66
+ title: "Web Design & Development",
67
+ description:
68
+ "Custom websites that capture your brand and convert visitors into customers",
69
+ },
70
+ {
71
+ icon: "📈",
72
+ title: "SEO & Digital Marketing",
73
+ description:
74
+ "Get found on Google and drive qualified traffic to your website",
75
+ },
76
+ {
77
+ icon: "🛒",
78
+ title: "E-commerce Solutions",
79
+ description: "Online stores that maximize sales and customer experience",
80
+ },
81
+ {
82
+ icon: "🎨",
83
+ title: "Brand Identity & Design",
84
+ description: "Logo, branding, and visual identity that makes you stand out",
85
+ },
86
+ ];
87
+
88
+ /**
89
+ * Responsive services grid with subtle motion and slot-style overrides.
90
+ *
91
+ * @remarks
92
+ * - Motion can be disabled globally with enableMotion.
93
+ * - Each card uses simple emoji icons by default; replace with real icons if preferred.
94
+ *
95
+ * @example
96
+ * <ServicesGrid servicesData={[{ icon: '⚙️', title: 'Automation', description: '...' }]} />
97
+ */
98
+ export function ServicesGrid({
99
+ id,
100
+ className,
101
+ sectionHeading = "Our Services",
102
+ servicesData = defaultServicesData,
103
+ enableMotion = true,
104
+ section = {
105
+ className: "py-16 md:py-20 lg:py-24 bg-muted",
106
+ },
107
+ container = {
108
+ className: "max-w-6xl mx-auto px-4 md:px-6 lg:px-8",
109
+ },
110
+ heading = {
111
+ className:
112
+ "text-3xl md:text-4xl lg:text-5xl font-bold font-poppins text-foreground text-center mb-8 md:mb-12",
113
+ },
114
+ grid = {
115
+ className: "grid grid-cols-1 md:grid-cols-2 gap-6 md:gap-8 items-stretch",
116
+ },
117
+ card = {
118
+ className:
119
+ "bg-card/90 backdrop-blur p-6 md:p-8 rounded-lg border border-border shadow-sm hover:shadow-md transition-all duration-300 bg-[var(--card-bg)] text-[var(--card-fg)] border-[var(--card-border)] shadow-[var(--card-shadow)]",
120
+ },
121
+ cardContent = {
122
+ className: "flex flex-col h-full space-y-4",
123
+ },
124
+ icon = {
125
+ className: "text-4xl",
126
+ },
127
+ title = {
128
+ className:
129
+ "text-lg md:text-xl font-semibold font-poppins text-card-foreground leading-tight text-[var(--card-title-fg)]",
130
+ },
131
+ description = {
132
+ className:
133
+ "text-sm md:text-base font-inter leading-relaxed flex-1 text-[var(--card-muted-fg)]",
134
+ },
135
+ ariaLabel = "Services section",
136
+ }: ServicesGridProps) {
137
+ return (
138
+ <section
139
+ id={id}
140
+ className={cn(section.className, className)}
141
+ aria-label={ariaLabel}
142
+ >
143
+ <div className={container.className}>
144
+ {/* Section Heading */}
145
+ <h2 className={heading.className}>{sectionHeading}</h2>
146
+
147
+ {/* Services Grid */}
148
+ <div className={grid.className}>
149
+ {servicesData.map((service, index) => (
150
+ <motion.div
151
+ key={index}
152
+ initial={
153
+ enableMotion ? { opacity: 0, y: 12 } : { opacity: 1, y: 0 }
154
+ }
155
+ whileInView={
156
+ enableMotion ? { opacity: 1, y: 0 } : { opacity: 1, y: 0 }
157
+ }
158
+ viewport={
159
+ enableMotion
160
+ ? { once: true, amount: 0.2 }
161
+ : { once: true, amount: 0 }
162
+ }
163
+ transition={
164
+ enableMotion
165
+ ? {
166
+ type: "spring",
167
+ stiffness: 125,
168
+ damping: 50,
169
+ mass: 1,
170
+ delay: 0.12 + index * 0.05,
171
+ }
172
+ : { type: "tween", duration: 0 }
173
+ }
174
+ className={cn(
175
+ "h-full motion-reduce:transform-none motion-reduce:transition-none",
176
+ )}
177
+ >
178
+ <div
179
+ className={cn(
180
+ card.className,
181
+ "flex h-full flex-col",
182
+ enableMotion
183
+ ? "transition-transform duration-200 hover:-translate-y-1"
184
+ : "transition-none hover:!translate-y-0 hover:shadow-none",
185
+ )}
186
+ >
187
+ <div className={cardContent.className}>
188
+ {/* Service Icon */}
189
+ <div
190
+ className={icon.className}
191
+ role="img"
192
+ aria-label={service.title}
193
+ >
194
+ {service.icon}
195
+ </div>
196
+
197
+ {/* Service Title */}
198
+ <h3 className={title.className}>{service.title}</h3>
199
+
200
+ {/* Service Description */}
201
+ <p className={description.className}>{service.description}</p>
202
+ </div>
203
+ </div>
204
+ </motion.div>
205
+ ))}
206
+ </div>
207
+ </div>
208
+ </section>
209
+ );
210
+ }