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.
Files changed (145) hide show
  1. package/README.md +280 -228
  2. package/dist/cli_manifests/blocks_manifest.json +193 -194
  3. package/dist/commands/blocks.d.ts +3 -0
  4. package/dist/commands/blocks.d.ts.map +1 -1
  5. package/dist/commands/blocks.js +128 -19
  6. package/dist/commands/blocks.js.map +1 -1
  7. package/dist/commands/doctor.d.ts +136 -0
  8. package/dist/commands/doctor.d.ts.map +1 -0
  9. package/dist/commands/doctor.js +696 -0
  10. package/dist/commands/doctor.js.map +1 -0
  11. package/dist/commands/remove-blocks.d.ts +4 -1
  12. package/dist/commands/remove-blocks.d.ts.map +1 -1
  13. package/dist/commands/remove-blocks.js +24 -6
  14. package/dist/commands/remove-blocks.js.map +1 -1
  15. package/dist/index.js +125 -4
  16. package/dist/index.js.map +1 -1
  17. package/dist/kits/blocks/.nextworks/docs/BLOCKS_QUICKSTART.md +104 -194
  18. package/dist/kits/blocks/.nextworks/docs/BLOCKS_README.md +115 -75
  19. package/dist/kits/blocks/.nextworks/docs/THEME_GUIDE.md +269 -251
  20. package/dist/kits/blocks/app/templates/digitalagency/PresetThemeVars.tsx +80 -80
  21. package/dist/kits/blocks/app/templates/digitalagency/README.md +42 -36
  22. package/dist/kits/blocks/app/templates/digitalagency/components/About.tsx +71 -99
  23. package/dist/kits/blocks/app/templates/digitalagency/components/CTA.tsx +40 -74
  24. package/dist/kits/blocks/app/templates/digitalagency/components/Contact.tsx +123 -227
  25. package/dist/kits/blocks/app/templates/digitalagency/components/Footer.tsx +89 -89
  26. package/dist/kits/blocks/app/templates/digitalagency/components/Hero.tsx +83 -90
  27. package/dist/kits/blocks/app/templates/digitalagency/components/Navbar.tsx +121 -168
  28. package/dist/kits/blocks/app/templates/digitalagency/components/NetworkPattern.tsx +288 -297
  29. package/dist/kits/blocks/app/templates/digitalagency/components/Portfolio.tsx +157 -157
  30. package/dist/kits/blocks/app/templates/digitalagency/components/Pricing.tsx +114 -114
  31. package/dist/kits/blocks/app/templates/digitalagency/components/Process.tsx +59 -59
  32. package/dist/kits/blocks/app/templates/digitalagency/components/Services.tsx +55 -55
  33. package/dist/kits/blocks/app/templates/digitalagency/components/Team.tsx +28 -28
  34. package/dist/kits/blocks/app/templates/digitalagency/components/Testimonials.tsx +65 -65
  35. package/dist/kits/blocks/app/templates/digitalagency/page.tsx +38 -38
  36. package/dist/kits/blocks/app/templates/gallery/PresetThemeVars.tsx +130 -85
  37. package/dist/kits/blocks/app/templates/gallery/page.tsx +357 -303
  38. package/dist/kits/blocks/app/templates/productlaunch/PresetThemeVars.tsx +75 -74
  39. package/dist/kits/blocks/app/templates/productlaunch/README.md +62 -55
  40. package/dist/kits/blocks/app/templates/productlaunch/components/About.tsx +84 -178
  41. package/dist/kits/blocks/app/templates/productlaunch/components/CTA.tsx +50 -93
  42. package/dist/kits/blocks/app/templates/productlaunch/components/Contact.tsx +231 -231
  43. package/dist/kits/blocks/app/templates/productlaunch/components/FAQ.tsx +86 -93
  44. package/dist/kits/blocks/app/templates/productlaunch/components/Features.tsx +83 -84
  45. package/dist/kits/blocks/app/templates/productlaunch/components/Footer.tsx +132 -132
  46. package/dist/kits/blocks/app/templates/productlaunch/components/Hero.tsx +88 -89
  47. package/dist/kits/blocks/app/templates/productlaunch/components/Navbar.tsx +116 -162
  48. package/dist/kits/blocks/app/templates/productlaunch/components/Pricing.tsx +106 -106
  49. package/dist/kits/blocks/app/templates/productlaunch/components/ProcessTimeline.tsx +110 -110
  50. package/dist/kits/blocks/app/templates/productlaunch/components/ServicesGrid.tsx +68 -68
  51. package/dist/kits/blocks/app/templates/productlaunch/components/Team.tsx +104 -104
  52. package/dist/kits/blocks/app/templates/productlaunch/components/Testimonials.tsx +90 -89
  53. package/dist/kits/blocks/app/templates/productlaunch/components/TrustBadges.tsx +76 -76
  54. package/dist/kits/blocks/app/templates/productlaunch/page.tsx +43 -43
  55. package/dist/kits/blocks/app/templates/saasdashboard/PresetThemeVars.tsx +80 -80
  56. package/dist/kits/blocks/app/templates/saasdashboard/README.md +44 -38
  57. package/dist/kits/blocks/app/templates/saasdashboard/components/Contact.tsx +129 -176
  58. package/dist/kits/blocks/app/templates/saasdashboard/components/Dashboard.tsx +293 -293
  59. package/dist/kits/blocks/app/templates/saasdashboard/components/FAQ.tsx +55 -55
  60. package/dist/kits/blocks/app/templates/saasdashboard/components/Features.tsx +90 -91
  61. package/dist/kits/blocks/app/templates/saasdashboard/components/Footer.tsx +77 -77
  62. package/dist/kits/blocks/app/templates/saasdashboard/components/Hero.tsx +104 -105
  63. package/dist/kits/blocks/app/templates/saasdashboard/components/Hero_mask.tsx +126 -127
  64. package/dist/kits/blocks/app/templates/saasdashboard/components/Navbar.tsx +117 -159
  65. package/dist/kits/blocks/app/templates/saasdashboard/components/Pricing.tsx +90 -90
  66. package/dist/kits/blocks/app/templates/saasdashboard/components/SmoothScroll.tsx +96 -97
  67. package/dist/kits/blocks/app/templates/saasdashboard/components/Testimonials.tsx +72 -72
  68. package/dist/kits/blocks/app/templates/saasdashboard/components/TrustBadges.tsx +53 -53
  69. package/dist/kits/blocks/app/templates/saasdashboard/page.tsx +39 -39
  70. package/dist/kits/blocks/components/enhanced-theme-provider.tsx +195 -183
  71. package/dist/kits/blocks/components/providers/BlocksAppProviders.tsx +27 -27
  72. package/dist/kits/blocks/components/sections/About.tsx +291 -291
  73. package/dist/kits/blocks/components/sections/CTA.tsx +257 -258
  74. package/dist/kits/blocks/components/sections/CommandShowcase.tsx +517 -0
  75. package/dist/kits/blocks/components/sections/Contact.tsx +267 -267
  76. package/dist/kits/blocks/components/sections/FAQ.tsx +214 -225
  77. package/dist/kits/blocks/components/sections/FeaturedProjectShowcase.tsx +687 -0
  78. package/dist/kits/blocks/components/sections/Features.tsx +268 -270
  79. package/dist/kits/blocks/components/sections/Footer.tsx +302 -302
  80. package/dist/kits/blocks/components/sections/HeroMotion.tsx +308 -308
  81. package/dist/kits/blocks/components/sections/HeroOverlay.tsx +358 -358
  82. package/dist/kits/blocks/components/sections/HeroProductDemo.tsx +246 -0
  83. package/dist/kits/blocks/components/sections/HeroSplit.tsx +352 -352
  84. package/dist/kits/blocks/components/sections/HeroWithVideo.tsx +495 -0
  85. package/dist/kits/blocks/components/sections/Navbar.tsx +352 -353
  86. package/dist/kits/blocks/components/sections/PortfolioSimple.tsx +549 -550
  87. package/dist/kits/blocks/components/sections/Pricing.tsx +264 -264
  88. package/dist/kits/blocks/components/sections/ProcessTimeline.tsx +325 -325
  89. package/dist/kits/blocks/components/sections/ProjectDeepDive.tsx +805 -0
  90. package/dist/kits/blocks/components/sections/SelectedWorkRail.tsx +485 -0
  91. package/dist/kits/blocks/components/sections/ServicesGrid.tsx +210 -210
  92. package/dist/kits/blocks/components/sections/Team.tsx +309 -309
  93. package/dist/kits/blocks/components/sections/Testimonials.tsx +158 -158
  94. package/dist/kits/blocks/components/sections/TrustBadges.tsx +162 -162
  95. package/dist/kits/blocks/components/sections/product-demo/ApprovalInboxPanel.tsx +128 -0
  96. package/dist/kits/blocks/components/sections/product-demo/DemoStage.tsx +519 -0
  97. package/dist/kits/blocks/components/sections/product-demo/DemoWindow.tsx +140 -0
  98. package/dist/kits/blocks/components/sections/product-demo/KnowledgePanel.tsx +130 -0
  99. package/dist/kits/blocks/components/sections/product-demo/RunConsolePanel.tsx +430 -0
  100. package/dist/kits/blocks/components/sections/product-demo/TaskListPanel.tsx +302 -0
  101. package/dist/kits/blocks/components/sections/product-demo/WorkflowStudioPanel.tsx +744 -0
  102. package/dist/kits/blocks/components/sections/product-demo/types.ts +262 -0
  103. package/dist/kits/blocks/components/theme-provider.tsx +1 -34
  104. package/dist/kits/blocks/components/ui/alert-dialog.tsx +134 -134
  105. package/dist/kits/blocks/components/ui/brand-node.tsx +121 -121
  106. package/dist/kits/blocks/components/ui/button.tsx +122 -122
  107. package/dist/kits/blocks/components/ui/card.tsx +95 -95
  108. package/dist/kits/blocks/components/ui/checkbox.tsx +30 -30
  109. package/dist/kits/blocks/components/ui/cta-button.tsx +125 -125
  110. package/dist/kits/blocks/components/ui/dropdown-menu.tsx +201 -201
  111. package/dist/kits/blocks/components/ui/feature-card.tsx +91 -91
  112. package/dist/kits/blocks/components/ui/input.tsx +27 -27
  113. package/dist/kits/blocks/components/ui/label.tsx +29 -29
  114. package/dist/kits/blocks/components/ui/pricing-card.tsx +120 -120
  115. package/dist/kits/blocks/components/ui/select.tsx +25 -25
  116. package/dist/kits/blocks/components/ui/skeleton.tsx +13 -13
  117. package/dist/kits/blocks/components/ui/table.tsx +98 -98
  118. package/dist/kits/blocks/components/ui/testimonial-card.tsx +108 -108
  119. package/dist/kits/blocks/components/ui/textarea.tsx +26 -26
  120. package/dist/kits/blocks/components/ui/theme-selector.tsx +243 -247
  121. package/dist/kits/blocks/components/ui/theme-toggle.tsx +74 -74
  122. package/dist/kits/blocks/components/ui/toaster.tsx +7 -7
  123. package/dist/kits/blocks/lib/themes.ts +400 -400
  124. package/dist/kits/blocks/lib/utils.ts +6 -9
  125. package/dist/kits/blocks/package-deps.json +40 -28
  126. package/dist/kits/blocks/tsconfig.json +11 -0
  127. package/dist/kits/blocks/tsconfig.tsbuildinfo +1 -0
  128. package/dist/utils/file-operations.d.ts +3 -1
  129. package/dist/utils/file-operations.d.ts.map +1 -1
  130. package/dist/utils/file-operations.js +84 -12
  131. package/dist/utils/file-operations.js.map +1 -1
  132. package/dist/utils/installation-tracker.d.ts +2 -2
  133. package/dist/utils/installation-tracker.d.ts.map +1 -1
  134. package/dist/utils/installation-tracker.js +11 -11
  135. package/dist/utils/installation-tracker.js.map +1 -1
  136. package/dist/utils/package-manager.d.ts +6 -0
  137. package/dist/utils/package-manager.d.ts.map +1 -0
  138. package/dist/utils/package-manager.js +58 -0
  139. package/dist/utils/package-manager.js.map +1 -0
  140. package/dist/utils/yarn-pnp.d.ts +6 -0
  141. package/dist/utils/yarn-pnp.d.ts.map +1 -0
  142. package/dist/utils/yarn-pnp.js +39 -0
  143. package/dist/utils/yarn-pnp.js.map +1 -0
  144. package/package.json +5 -2
  145. package/dist/kits/blocks/notes/THEME_GUIDE.md +0 -29
@@ -1,302 +1,302 @@
1
- "use client";
2
-
3
- import React from "react";
4
- import Link from "next/link";
5
- import { cn } from "@/lib/utils";
6
- import { Facebook, Twitter, Instagram, Linkedin } from "lucide-react";
7
-
8
- /**
9
- * Navigation link item interface representing a single link in the footer.
10
- */
11
- export interface NavLinkItem {
12
- /** Display name of the link */
13
- name: string;
14
- /** URL or anchor for the navigation link */
15
- href: string;
16
- /** Whether the link should open in a new tab */
17
- external?: boolean;
18
- }
19
-
20
- /**
21
- * Grouping for navigation link items under a section heading.
22
- */
23
- export interface NavLinkGroup {
24
- /** Section heading/title */
25
- heading: string;
26
- /** Collection of links under this section */
27
- links: NavLinkItem[];
28
- }
29
-
30
- /**
31
- * Social media link interface for footer social icons.
32
- */
33
- /**
34
- * Social media link interface for footer social icons.
35
- * @public
36
- */
37
- export interface SocialLink {
38
- /** Name of the social media platform */
39
- name: string;
40
- /** SVG icon component (e.g., Lucide). Should respect currentColor. */
41
- icon: React.ComponentType<React.SVGProps<SVGSVGElement>>;
42
- /** URL to the social profile */
43
- url: string;
44
- /** Optional aria-label for accessibility */
45
- label?: string;
46
- /** Whether the link should open in a new tab */
47
- external?: boolean;
48
- }
49
-
50
- /**
51
- * Props for the Footer component.
52
- *
53
- * @remarks
54
- * Exposes slot-style className overrides for layout and typography. External
55
- * links automatically receive target and rel attributes for security.
56
- *
57
- * @public
58
- */
59
- export interface FooterProps {
60
- /** Optional id to attach to the root footer element */
61
- id?: string;
62
-
63
- /** Brand name or logo text displayed in the footer */
64
- footerBrandName?: string;
65
- /** Optional custom brand node (e.g., logo). Rendered left of brand text */
66
- brandNode?: React.ReactNode;
67
- /** Optional link for the brand (wraps brand text) */
68
- brandHref?: string;
69
-
70
- /** Navigation link groups shown in the footer */
71
- footerNavLinks?: NavLinkGroup[];
72
- /** Social media links and icons shown in the footer */
73
- footerSocialLinks?: SocialLink[];
74
-
75
- /** Optional top-level class to override the footer root */
76
- className?: string;
77
-
78
- /** Styling configuration objects (slot-based API) */
79
- section?: { className?: string };
80
- container?: { className?: string };
81
- brand?: { className?: string };
82
- brandWrapper?: { className?: string };
83
- navSection?: { className?: string };
84
- navGroup?: { className?: string };
85
- navHeading?: { className?: string };
86
- navLink?: { className?: string };
87
- linksList?: { className?: string };
88
- socialSection?: { className?: string };
89
- socialLink?: { className?: string };
90
- socialIcon?: { className?: string };
91
- copyright?: { className?: string };
92
-
93
- /** Optional overrides for copyright */
94
- copyrightYear?: number;
95
- copyrightOverride?: React.ReactNode;
96
-
97
- /** ARIA label for the footer section */
98
- ariaLabel?: string;
99
- }
100
-
101
- /**
102
- * Default navigation link groups with common footer sections
103
- */
104
- const defaultNavLinks: NavLinkGroup[] = [
105
- {
106
- heading: "Product",
107
- links: [
108
- { name: "Features", href: "#features" },
109
- { name: "Pricing", href: "#pricing" },
110
- { name: "Documentation", href: "#documentation" },
111
- { name: "FAQ", href: "#faq" },
112
- ],
113
- },
114
- {
115
- heading: "Company",
116
- links: [
117
- { name: "About", href: "#about" },
118
- { name: "Careers", href: "#careers" },
119
- { name: "Blog", href: "#blog" },
120
- { name: "Contact", href: "#contact" },
121
- ],
122
- },
123
- {
124
- heading: "Resources",
125
- links: [
126
- { name: "Help Center", href: "#help" },
127
- { name: "Terms of Service", href: "#terms" },
128
- { name: "Privacy Policy", href: "#privacy" },
129
- { name: "Status", href: "#status" },
130
- ],
131
- },
132
- ];
133
-
134
- /**
135
- * Default social media links shown in the footer
136
- */
137
- const defaultSocialLinks: SocialLink[] = [
138
- {
139
- name: "Facebook",
140
- icon: Facebook,
141
- url: "https://facebook.com",
142
- external: true,
143
- },
144
- {
145
- name: "Twitter",
146
- icon: Twitter,
147
- url: "https://twitter.com",
148
- external: true,
149
- },
150
- {
151
- name: "Instagram",
152
- icon: Instagram,
153
- url: "https://instagram.com",
154
- external: true,
155
- },
156
- {
157
- name: "LinkedIn",
158
- icon: Linkedin,
159
- url: "https://linkedin.com",
160
- external: true,
161
- },
162
- ];
163
-
164
- /**
165
- * Site footer with brand, grouped navigation links, social icons, and copyright.
166
- *
167
- * @remarks
168
- * - Styling: slot-style className overrides are merged after defaults via cn().
169
- * - Accessibility: renders a semantic <footer> with aria-label and clear link
170
- * names; external links open in a new tab with rel security attributes.
171
- *
172
- * @example
173
- * <Footer footerBrandName="Acme" />
174
- */
175
- export function Footer({
176
- id,
177
- footerBrandName = "Brand Name",
178
- brandNode,
179
- brandHref,
180
- footerNavLinks = defaultNavLinks,
181
- footerSocialLinks = defaultSocialLinks,
182
- className,
183
- section = {
184
- className:
185
- "w-full bg-muted text-foreground bg-[var(--footer-bg)] text-[var(--footer-fg)]",
186
- },
187
- container = { className: "max-w-7xl mx-auto px-6" },
188
- brand = { className: "text-lg font-bold font-poppins text-foreground" },
189
- brandWrapper = {
190
- className: "flex flex-col items-center lg:items-start lg:pr-8",
191
- },
192
- navSection = {
193
- className:
194
- "flex flex-col lg:flex-row items-start justify-center gap-8 lg:gap-12 pt-6.5 pb-8",
195
- },
196
- navGroup = {
197
- className:
198
- "flex flex-col items-center lg:items-start text-center lg:text-left pt-1.5",
199
- },
200
- navHeading = {
201
- className:
202
- "font-bold font-poppins text-foreground mb-3 text-sm uppercase tracking-wider text-[var(--footer-heading-fg)]",
203
- },
204
- navLink = {
205
- className:
206
- "text-muted-foreground hover:text-primary transition-colors duration-200 text-sm mb-2 block font-inter text-[var(--footer-link-fg)] hover:text-[var(--footer-link-hover-fg)]",
207
- },
208
- linksList = { className: "space-y-2" },
209
- socialSection = { className: "flex items-center justify-center gap-4 py-4" },
210
- socialLink = {
211
- className:
212
- "text-muted-foreground hover:text-primary transition-colors duration-200 p-2 rounded-md hover:bg-accent text-[var(--footer-link-fg)] hover:text-[var(--footer-link-hover-fg)] hover:bg-[var(--footer-link-hover-bg)]",
213
- },
214
- socialIcon = { className: "h-5 w-5" },
215
- copyright = {
216
- className:
217
- "text-center text-xs text-muted-foreground py-4 border-t border-border font-inter text-[var(--footer-muted-fg)] border-[var(--footer-border)]",
218
- },
219
- copyrightYear,
220
- copyrightOverride,
221
- ariaLabel = "Footer section",
222
- }: FooterProps) {
223
- const year = copyrightYear ?? new Date().getFullYear();
224
-
225
- return (
226
- <footer
227
- id={id}
228
- className={cn("w-full", section.className, className)}
229
- aria-label={ariaLabel}
230
- >
231
- <div className={cn(container.className)}>
232
- {/* Navigation link sections */}
233
- <div className={cn(navSection.className)}>
234
- {/* Brand name displayed in footer */}
235
- <div className={cn(brandWrapper.className)}>
236
- {brandNode}
237
- {footerBrandName &&
238
- (brandHref ? (
239
- <Link
240
- href={brandHref}
241
- className={cn(brand.className)}
242
- aria-label={footerBrandName}
243
- >
244
- {footerBrandName}
245
- </Link>
246
- ) : (
247
- <h3 className={cn(brand.className)}>{footerBrandName}</h3>
248
- ))}
249
- </div>
250
-
251
- {/* Iterate over nav link groups */}
252
- {footerNavLinks.map((group) => (
253
- <div key={group.heading} className={cn(navGroup.className)}>
254
- <h3 className={cn(navHeading.className)}>{group.heading}</h3>
255
- <div className={cn(linksList.className)}>
256
- {group.links.map((link) => (
257
- <Link
258
- key={link.name}
259
- href={link.href}
260
- target={link.external ? "_blank" : undefined}
261
- rel={link.external ? "noopener noreferrer" : undefined}
262
- className={cn(navLink.className)}
263
- >
264
- {link.name}
265
- </Link>
266
- ))}
267
- </div>
268
- </div>
269
- ))}
270
- </div>
271
-
272
- {/* Social media icon links */}
273
- <div className={cn(socialSection.className)}>
274
- {footerSocialLinks.map((social) => {
275
- const IconComponent = social.icon;
276
- return (
277
- <Link
278
- key={social.name}
279
- href={social.url}
280
- target={social.external ? "_blank" : undefined}
281
- rel={social.external ? "noopener noreferrer" : undefined}
282
- aria-label={social.label || social.name}
283
- className={cn(socialLink.className)}
284
- >
285
- <IconComponent className={cn(socialIcon.className)} />
286
- </Link>
287
- );
288
- })}
289
- </div>
290
-
291
- {/* Copyright notice */}
292
- <div className={cn(copyright.className)}>
293
- {copyrightOverride ?? (
294
- <>
295
- © {year} {footerBrandName}. All rights reserved.
296
- </>
297
- )}
298
- </div>
299
- </div>
300
- </footer>
301
- );
302
- }
1
+ "use client";
2
+
3
+ import React from "react";
4
+ import Link from "next/link";
5
+ import { cn } from "@/lib/utils";
6
+ import { Facebook, Twitter, Instagram, Linkedin } from "lucide-react";
7
+
8
+ /**
9
+ * Navigation link item interface representing a single link in the footer.
10
+ */
11
+ export interface NavLinkItem {
12
+ /** Display name of the link */
13
+ name: string;
14
+ /** URL or anchor for the navigation link */
15
+ href: string;
16
+ /** Whether the link should open in a new tab */
17
+ external?: boolean;
18
+ }
19
+
20
+ /**
21
+ * Grouping for navigation link items under a section heading.
22
+ */
23
+ export interface NavLinkGroup {
24
+ /** Section heading/title */
25
+ heading: string;
26
+ /** Collection of links under this section */
27
+ links: NavLinkItem[];
28
+ }
29
+
30
+ /**
31
+ * Social media link interface for footer social icons.
32
+ */
33
+ /**
34
+ * Social media link interface for footer social icons.
35
+ * @public
36
+ */
37
+ export interface SocialLink {
38
+ /** Name of the social media platform */
39
+ name: string;
40
+ /** SVG icon component (e.g., Lucide). Should respect currentColor. */
41
+ icon: React.ComponentType<React.SVGProps<SVGSVGElement>>;
42
+ /** URL to the social profile */
43
+ url: string;
44
+ /** Optional aria-label for accessibility */
45
+ label?: string;
46
+ /** Whether the link should open in a new tab */
47
+ external?: boolean;
48
+ }
49
+
50
+ /**
51
+ * Props for the Footer component.
52
+ *
53
+ * @remarks
54
+ * Exposes slot-style className overrides for layout and typography. External
55
+ * links automatically receive target and rel attributes for security.
56
+ *
57
+ * @public
58
+ */
59
+ export interface FooterProps {
60
+ /** Optional id to attach to the root footer element */
61
+ id?: string;
62
+
63
+ /** Brand name or logo text displayed in the footer */
64
+ footerBrandName?: string;
65
+ /** Optional custom brand node (e.g., logo). Rendered left of brand text */
66
+ brandNode?: React.ReactNode;
67
+ /** Optional link for the brand (wraps brand text) */
68
+ brandHref?: string;
69
+
70
+ /** Navigation link groups shown in the footer */
71
+ footerNavLinks?: NavLinkGroup[];
72
+ /** Social media links and icons shown in the footer */
73
+ footerSocialLinks?: SocialLink[];
74
+
75
+ /** Optional top-level class to override the footer root */
76
+ className?: string;
77
+
78
+ /** Styling configuration objects (slot-based API) */
79
+ section?: { className?: string };
80
+ container?: { className?: string };
81
+ brand?: { className?: string };
82
+ brandWrapper?: { className?: string };
83
+ navSection?: { className?: string };
84
+ navGroup?: { className?: string };
85
+ navHeading?: { className?: string };
86
+ navLink?: { className?: string };
87
+ linksList?: { className?: string };
88
+ socialSection?: { className?: string };
89
+ socialLink?: { className?: string };
90
+ socialIcon?: { className?: string };
91
+ copyright?: { className?: string };
92
+
93
+ /** Optional overrides for copyright */
94
+ copyrightYear?: number;
95
+ copyrightOverride?: React.ReactNode;
96
+
97
+ /** ARIA label for the footer section */
98
+ ariaLabel?: string;
99
+ }
100
+
101
+ /**
102
+ * Default navigation link groups with common footer sections
103
+ */
104
+ const defaultNavLinks: NavLinkGroup[] = [
105
+ {
106
+ heading: "Product",
107
+ links: [
108
+ { name: "Features", href: "#features" },
109
+ { name: "Pricing", href: "#pricing" },
110
+ { name: "Documentation", href: "#documentation" },
111
+ { name: "FAQ", href: "#faq" },
112
+ ],
113
+ },
114
+ {
115
+ heading: "Company",
116
+ links: [
117
+ { name: "About", href: "#about" },
118
+ { name: "Careers", href: "#careers" },
119
+ { name: "Blog", href: "#blog" },
120
+ { name: "Contact", href: "#contact" },
121
+ ],
122
+ },
123
+ {
124
+ heading: "Resources",
125
+ links: [
126
+ { name: "Help Center", href: "#help" },
127
+ { name: "Terms of Service", href: "#terms" },
128
+ { name: "Privacy Policy", href: "#privacy" },
129
+ { name: "Status", href: "#status" },
130
+ ],
131
+ },
132
+ ];
133
+
134
+ /**
135
+ * Default social media links shown in the footer
136
+ */
137
+ const defaultSocialLinks: SocialLink[] = [
138
+ {
139
+ name: "Facebook",
140
+ icon: Facebook,
141
+ url: "https://facebook.com",
142
+ external: true,
143
+ },
144
+ {
145
+ name: "Twitter",
146
+ icon: Twitter,
147
+ url: "https://twitter.com",
148
+ external: true,
149
+ },
150
+ {
151
+ name: "Instagram",
152
+ icon: Instagram,
153
+ url: "https://instagram.com",
154
+ external: true,
155
+ },
156
+ {
157
+ name: "LinkedIn",
158
+ icon: Linkedin,
159
+ url: "https://linkedin.com",
160
+ external: true,
161
+ },
162
+ ];
163
+
164
+ /**
165
+ * Site footer with brand, grouped navigation links, social icons, and copyright.
166
+ *
167
+ * @remarks
168
+ * - Styling: slot-style className overrides are merged after defaults via cn().
169
+ * - Accessibility: renders a semantic <footer> with aria-label and clear link
170
+ * names; external links open in a new tab with rel security attributes.
171
+ *
172
+ * @example
173
+ * <Footer footerBrandName="Acme" />
174
+ */
175
+ export function Footer({
176
+ id,
177
+ footerBrandName = "Brand Name",
178
+ brandNode,
179
+ brandHref,
180
+ footerNavLinks = defaultNavLinks,
181
+ footerSocialLinks = defaultSocialLinks,
182
+ className,
183
+ section = {
184
+ className:
185
+ "w-full bg-muted text-foreground bg-[var(--footer-bg)] text-[var(--footer-fg)]",
186
+ },
187
+ container = { className: "max-w-7xl mx-auto px-6" },
188
+ brand = { className: "text-lg font-bold font-poppins text-foreground" },
189
+ brandWrapper = {
190
+ className: "flex flex-col items-center lg:items-start lg:pr-8",
191
+ },
192
+ navSection = {
193
+ className:
194
+ "flex flex-col lg:flex-row items-start justify-center gap-8 lg:gap-12 pt-6.5 pb-8",
195
+ },
196
+ navGroup = {
197
+ className:
198
+ "flex flex-col items-center lg:items-start text-center lg:text-left pt-1.5",
199
+ },
200
+ navHeading = {
201
+ className:
202
+ "font-bold font-poppins text-foreground mb-3 text-sm uppercase tracking-wider text-[var(--footer-heading-fg)]",
203
+ },
204
+ navLink = {
205
+ className:
206
+ "text-muted-foreground hover:text-primary transition-colors duration-200 text-sm mb-2 block font-inter text-[var(--footer-link-fg)] hover:text-[var(--footer-link-hover-fg)]",
207
+ },
208
+ linksList = { className: "space-y-2" },
209
+ socialSection = { className: "flex items-center justify-center gap-4 py-4" },
210
+ socialLink = {
211
+ className:
212
+ "text-muted-foreground hover:text-primary transition-colors duration-200 p-2 rounded-md hover:bg-accent text-[var(--footer-link-fg)] hover:text-[var(--footer-link-hover-fg)] hover:bg-[var(--footer-link-hover-bg)]",
213
+ },
214
+ socialIcon = { className: "h-5 w-5" },
215
+ copyright = {
216
+ className:
217
+ "text-center text-xs text-muted-foreground py-4 border-t border-border font-inter text-[var(--footer-muted-fg)] border-[var(--footer-border)]",
218
+ },
219
+ copyrightYear,
220
+ copyrightOverride,
221
+ ariaLabel = "Footer section",
222
+ }: FooterProps) {
223
+ const year = copyrightYear ?? new Date().getFullYear();
224
+
225
+ return (
226
+ <footer
227
+ id={id}
228
+ className={cn("w-full", section.className, className)}
229
+ aria-label={ariaLabel}
230
+ >
231
+ <div className={cn(container.className)}>
232
+ {/* Navigation link sections */}
233
+ <div className={cn(navSection.className)}>
234
+ {/* Brand name displayed in footer */}
235
+ <div className={cn(brandWrapper.className)}>
236
+ {brandNode}
237
+ {footerBrandName &&
238
+ (brandHref ? (
239
+ <Link
240
+ href={brandHref}
241
+ className={cn(brand.className)}
242
+ aria-label={footerBrandName}
243
+ >
244
+ {footerBrandName}
245
+ </Link>
246
+ ) : (
247
+ <h3 className={cn(brand.className)}>{footerBrandName}</h3>
248
+ ))}
249
+ </div>
250
+
251
+ {/* Iterate over nav link groups */}
252
+ {footerNavLinks.map((group) => (
253
+ <div key={group.heading} className={cn(navGroup.className)}>
254
+ <h3 className={cn(navHeading.className)}>{group.heading}</h3>
255
+ <div className={cn(linksList.className)}>
256
+ {group.links.map((link) => (
257
+ <Link
258
+ key={link.name}
259
+ href={link.href}
260
+ target={link.external ? "_blank" : undefined}
261
+ rel={link.external ? "noopener noreferrer" : undefined}
262
+ className={cn(navLink.className)}
263
+ >
264
+ {link.name}
265
+ </Link>
266
+ ))}
267
+ </div>
268
+ </div>
269
+ ))}
270
+ </div>
271
+
272
+ {/* Social media icon links */}
273
+ <div className={cn(socialSection.className)}>
274
+ {footerSocialLinks.map((social) => {
275
+ const IconComponent = social.icon;
276
+ return (
277
+ <Link
278
+ key={social.name}
279
+ href={social.url}
280
+ target={social.external ? "_blank" : undefined}
281
+ rel={social.external ? "noopener noreferrer" : undefined}
282
+ aria-label={social.label || social.name}
283
+ className={cn(socialLink.className)}
284
+ >
285
+ <IconComponent className={cn(socialIcon.className)} />
286
+ </Link>
287
+ );
288
+ })}
289
+ </div>
290
+
291
+ {/* Copyright notice */}
292
+ <div className={cn(copyright.className)}>
293
+ {copyrightOverride ?? (
294
+ <>
295
+ © {year} {footerBrandName}. All rights reserved.
296
+ </>
297
+ )}
298
+ </div>
299
+ </div>
300
+ </footer>
301
+ );
302
+ }