@snow-labs/brutal-ui 0.1.0 → 0.2.0

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 (282) hide show
  1. package/dist/components/brutal/cta-section.d.ts +7 -2
  2. package/dist/components/brutal/cta-section.js +253 -4
  3. package/dist/components/brutal/cta-section.js.map +1 -1
  4. package/dist/components/brutal/faq.d.ts +16 -0
  5. package/dist/components/brutal/faq.js +166 -0
  6. package/dist/components/brutal/faq.js.map +1 -0
  7. package/dist/components/brutal/feature-grid.d.ts +5 -1
  8. package/dist/components/brutal/feature-grid.js +238 -4
  9. package/dist/components/brutal/feature-grid.js.map +1 -1
  10. package/dist/components/brutal/footer.d.ts +14 -1
  11. package/dist/components/brutal/footer.js +215 -2
  12. package/dist/components/brutal/footer.js.map +1 -1
  13. package/dist/components/brutal/hero.d.ts +8 -1
  14. package/dist/components/brutal/hero.js +197 -4
  15. package/dist/components/brutal/hero.js.map +1 -1
  16. package/dist/components/brutal/index.d.ts +7 -2
  17. package/dist/components/brutal/index.js +1393 -12
  18. package/dist/components/brutal/index.js.map +1 -1
  19. package/dist/components/brutal/integration-grid.js +105 -3
  20. package/dist/components/brutal/integration-grid.js.map +1 -1
  21. package/dist/components/brutal/logo-cloud.d.ts +17 -0
  22. package/dist/components/brutal/logo-cloud.js +96 -0
  23. package/dist/components/brutal/logo-cloud.js.map +1 -0
  24. package/dist/components/brutal/nav.d.ts +3 -1
  25. package/dist/components/brutal/nav.js +258 -3
  26. package/dist/components/brutal/nav.js.map +1 -1
  27. package/dist/components/brutal/newsletter.d.ts +14 -0
  28. package/dist/components/brutal/newsletter.js +172 -0
  29. package/dist/components/brutal/newsletter.js.map +1 -0
  30. package/dist/components/brutal/pricing-table.d.ts +27 -0
  31. package/dist/components/brutal/pricing-table.js +254 -0
  32. package/dist/components/brutal/pricing-table.js.map +1 -0
  33. package/dist/components/brutal/section-divider.d.ts +14 -0
  34. package/dist/components/brutal/section-divider.js +70 -0
  35. package/dist/components/brutal/section-divider.js.map +1 -0
  36. package/dist/components/brutal/section.d.ts +6 -2
  37. package/dist/components/brutal/section.js +67 -2
  38. package/dist/components/brutal/section.js.map +1 -1
  39. package/dist/components/brutal/stats-bar.d.ts +16 -0
  40. package/dist/components/brutal/stats-bar.js +130 -0
  41. package/dist/components/brutal/stats-bar.js.map +1 -0
  42. package/dist/components/brutal/testimonials.d.ts +11 -3
  43. package/dist/components/brutal/testimonials.js +192 -3
  44. package/dist/components/brutal/testimonials.js.map +1 -1
  45. package/dist/components/brutal/wave-divider.d.ts +2 -12
  46. package/dist/components/brutal/wave-divider.js +68 -1
  47. package/dist/components/brutal/wave-divider.js.map +1 -1
  48. package/dist/components/dashboard/activity-feed.d.ts +18 -0
  49. package/dist/components/dashboard/activity-feed.js +105 -0
  50. package/dist/components/dashboard/activity-feed.js.map +1 -0
  51. package/dist/components/dashboard/app-shell.d.ts +19 -0
  52. package/dist/components/dashboard/app-shell.js +206 -0
  53. package/dist/components/dashboard/app-shell.js.map +1 -0
  54. package/dist/components/dashboard/empty-state.d.ts +14 -0
  55. package/dist/{chunk-CY2FOBOD.js → components/dashboard/empty-state.js} +36 -5
  56. package/dist/components/dashboard/empty-state.js.map +1 -0
  57. package/dist/components/dashboard/file-upload.d.ts +12 -0
  58. package/dist/components/dashboard/file-upload.js +86 -0
  59. package/dist/components/dashboard/file-upload.js.map +1 -0
  60. package/dist/components/dashboard/index.d.ts +10 -0
  61. package/dist/components/dashboard/index.js +755 -0
  62. package/dist/components/dashboard/index.js.map +1 -0
  63. package/dist/components/dashboard/search-bar.d.ts +12 -0
  64. package/dist/components/dashboard/search-bar.js +49 -0
  65. package/dist/components/dashboard/search-bar.js.map +1 -0
  66. package/dist/components/dashboard/sidebar.d.ts +23 -0
  67. package/dist/components/dashboard/sidebar.js +113 -0
  68. package/dist/components/dashboard/sidebar.js.map +1 -0
  69. package/dist/components/dashboard/stat-card.d.ts +13 -0
  70. package/dist/components/dashboard/stat-card.js +55 -0
  71. package/dist/components/dashboard/stat-card.js.map +1 -0
  72. package/dist/components/dashboard/user-menu.d.ts +16 -0
  73. package/dist/components/dashboard/user-menu.js +179 -0
  74. package/dist/components/dashboard/user-menu.js.map +1 -0
  75. package/dist/components/dashboard/view-switcher.d.ts +12 -0
  76. package/dist/{chunk-OCSYB6YE.js → components/dashboard/view-switcher.js} +57 -5
  77. package/dist/components/dashboard/view-switcher.js.map +1 -0
  78. package/dist/components/ui/accordion.js +78 -2
  79. package/dist/components/ui/accordion.js.map +1 -1
  80. package/dist/components/ui/alert.js +80 -2
  81. package/dist/components/ui/alert.js.map +1 -1
  82. package/dist/components/ui/avatar.js +103 -2
  83. package/dist/components/ui/avatar.js.map +1 -1
  84. package/dist/components/ui/badge.d.ts +1 -1
  85. package/dist/components/ui/badge.js +55 -2
  86. package/dist/components/ui/badge.js.map +1 -1
  87. package/dist/components/ui/breadcrumb.js +122 -2
  88. package/dist/components/ui/breadcrumb.js.map +1 -1
  89. package/dist/components/ui/button.d.ts +1 -1
  90. package/dist/components/ui/button.js +68 -2
  91. package/dist/components/ui/button.js.map +1 -1
  92. package/dist/components/ui/card.js +90 -2
  93. package/dist/components/ui/card.js.map +1 -1
  94. package/dist/components/ui/checkbox.js +36 -2
  95. package/dist/components/ui/checkbox.js.map +1 -1
  96. package/dist/components/ui/collapsible.js +15 -1
  97. package/dist/components/ui/collapsible.js.map +1 -1
  98. package/dist/components/ui/command.js +399 -7
  99. package/dist/components/ui/command.js.map +1 -1
  100. package/dist/components/ui/context-menu.js +232 -2
  101. package/dist/components/ui/context-menu.js.map +1 -1
  102. package/dist/components/ui/dialog.js +201 -3
  103. package/dist/components/ui/dialog.js.map +1 -1
  104. package/dist/components/ui/drawer.js +118 -2
  105. package/dist/components/ui/drawer.js.map +1 -1
  106. package/dist/components/ui/dropdown-menu.js +242 -2
  107. package/dist/components/ui/dropdown-menu.js.map +1 -1
  108. package/dist/components/ui/hover-card.js +47 -2
  109. package/dist/components/ui/hover-card.js.map +1 -1
  110. package/dist/components/ui/input-group.js +226 -5
  111. package/dist/components/ui/input-group.js.map +1 -1
  112. package/dist/components/ui/input.js +26 -2
  113. package/dist/components/ui/input.js.map +1 -1
  114. package/dist/components/ui/label.js +23 -2
  115. package/dist/components/ui/label.js.map +1 -1
  116. package/dist/components/ui/menubar.js +398 -3
  117. package/dist/components/ui/menubar.js.map +1 -1
  118. package/dist/components/ui/navigation-menu.js +160 -2
  119. package/dist/components/ui/navigation-menu.js.map +1 -1
  120. package/dist/components/ui/pagination.js +185 -3
  121. package/dist/components/ui/pagination.js.map +1 -1
  122. package/dist/components/ui/popover.js +80 -2
  123. package/dist/components/ui/popover.js.map +1 -1
  124. package/dist/components/ui/progress.js +80 -2
  125. package/dist/components/ui/progress.js.map +1 -1
  126. package/dist/components/ui/radio-group.js +43 -2
  127. package/dist/components/ui/radio-group.js.map +1 -1
  128. package/dist/components/ui/scroll-area.js +63 -2
  129. package/dist/components/ui/scroll-area.js.map +1 -1
  130. package/dist/components/ui/select.js +190 -2
  131. package/dist/components/ui/select.js.map +1 -1
  132. package/dist/components/ui/separator.js +29 -2
  133. package/dist/components/ui/separator.js.map +1 -1
  134. package/dist/components/ui/sheet.js +185 -3
  135. package/dist/components/ui/sheet.js.map +1 -1
  136. package/dist/components/ui/skeleton.js +21 -2
  137. package/dist/components/ui/skeleton.js.map +1 -1
  138. package/dist/components/ui/slider.js +62 -2
  139. package/dist/components/ui/slider.js.map +1 -1
  140. package/dist/components/ui/switch.js +36 -2
  141. package/dist/components/ui/switch.js.map +1 -1
  142. package/dist/components/ui/tabs.d.ts +1 -1
  143. package/dist/components/ui/tabs.js +85 -2
  144. package/dist/components/ui/tabs.js.map +1 -1
  145. package/dist/components/ui/textarea.js +24 -2
  146. package/dist/components/ui/textarea.js.map +1 -1
  147. package/dist/components/ui/toggle-group.js +101 -3
  148. package/dist/components/ui/toggle-group.js.map +1 -1
  149. package/dist/components/ui/toggle.js +47 -2
  150. package/dist/components/ui/toggle.js.map +1 -1
  151. package/dist/components/ui/tooltip.js +65 -2
  152. package/dist/components/ui/tooltip.js.map +1 -1
  153. package/dist/components/views/calendar-view.d.ts +17 -0
  154. package/dist/components/views/calendar-view.js +182 -0
  155. package/dist/components/views/calendar-view.js.map +1 -0
  156. package/dist/components/views/data-table.d.ts +15 -0
  157. package/dist/components/views/data-table.js +204 -0
  158. package/dist/components/views/data-table.js.map +1 -0
  159. package/dist/components/views/grid-view.d.ts +11 -0
  160. package/dist/components/views/grid-view.js +31 -0
  161. package/dist/components/views/grid-view.js.map +1 -0
  162. package/dist/components/views/index.d.ts +7 -0
  163. package/dist/components/views/index.js +542 -0
  164. package/dist/components/views/index.js.map +1 -0
  165. package/dist/components/views/kanban-board.d.ts +21 -0
  166. package/dist/components/views/kanban-board.js +153 -0
  167. package/dist/components/views/kanban-board.js.map +1 -0
  168. package/dist/components/views/list-view.d.ts +19 -0
  169. package/dist/components/views/list-view.js +96 -0
  170. package/dist/components/views/list-view.js.map +1 -0
  171. package/dist/index.d.ts +27 -3
  172. package/dist/index.js +4957 -46
  173. package/dist/index.js.map +1 -1
  174. package/dist/lib/animations.d.ts +68 -0
  175. package/dist/lib/animations.js +44 -0
  176. package/dist/lib/animations.js.map +1 -0
  177. package/dist/lib/utils.js +10 -1
  178. package/dist/lib/utils.js.map +1 -1
  179. package/dist/templates/dashboard.d.ts +40 -0
  180. package/dist/templates/dashboard.js +658 -0
  181. package/dist/templates/dashboard.js.map +1 -0
  182. package/dist/templates/index.d.ts +4 -0
  183. package/dist/templates/index.js +2031 -0
  184. package/dist/templates/index.js.map +1 -0
  185. package/dist/templates/saas-launch.d.ts +113 -0
  186. package/dist/templates/saas-launch.js +1424 -0
  187. package/dist/templates/saas-launch.js.map +1 -0
  188. package/dist/templates/studio.d.ts +72 -0
  189. package/dist/templates/studio.js +1129 -0
  190. package/dist/templates/studio.js.map +1 -0
  191. package/dist/theme.css +53 -0
  192. package/package.json +48 -2
  193. package/dist/chunk-3HN3QP23.js +0 -44
  194. package/dist/chunk-3HN3QP23.js.map +0 -1
  195. package/dist/chunk-4A3EQV6F.js +0 -76
  196. package/dist/chunk-4A3EQV6F.js.map +0 -1
  197. package/dist/chunk-53KZXLG4.js +0 -100
  198. package/dist/chunk-53KZXLG4.js.map +0 -1
  199. package/dist/chunk-5JCN6EQG.js +0 -60
  200. package/dist/chunk-5JCN6EQG.js.map +0 -1
  201. package/dist/chunk-5JEBZUEI.js +0 -20
  202. package/dist/chunk-5JEBZUEI.js.map +0 -1
  203. package/dist/chunk-6APJMAO7.js +0 -44
  204. package/dist/chunk-6APJMAO7.js.map +0 -1
  205. package/dist/chunk-6UKMYVHC.js +0 -187
  206. package/dist/chunk-6UKMYVHC.js.map +0 -1
  207. package/dist/chunk-7FVJ36BQ.js +0 -239
  208. package/dist/chunk-7FVJ36BQ.js.map +0 -1
  209. package/dist/chunk-7I7XYB7H.js +0 -44
  210. package/dist/chunk-7I7XYB7H.js.map +0 -1
  211. package/dist/chunk-A5KONGTJ.js +0 -49
  212. package/dist/chunk-A5KONGTJ.js.map +0 -1
  213. package/dist/chunk-AHUC5AID.js +0 -40
  214. package/dist/chunk-AHUC5AID.js.map +0 -1
  215. package/dist/chunk-B6UM5GHF.js +0 -20
  216. package/dist/chunk-B6UM5GHF.js.map +0 -1
  217. package/dist/chunk-BAUUM52T.js +0 -234
  218. package/dist/chunk-BAUUM52T.js.map +0 -1
  219. package/dist/chunk-BDWCMMEI.js +0 -82
  220. package/dist/chunk-BDWCMMEI.js.map +0 -1
  221. package/dist/chunk-BSVJVM2L.js +0 -52
  222. package/dist/chunk-BSVJVM2L.js.map +0 -1
  223. package/dist/chunk-CPVH3LD5.js +0 -86
  224. package/dist/chunk-CPVH3LD5.js.map +0 -1
  225. package/dist/chunk-CY2FOBOD.js.map +0 -1
  226. package/dist/chunk-DJTTNICL.js +0 -40
  227. package/dist/chunk-DJTTNICL.js.map +0 -1
  228. package/dist/chunk-F2E32OOJ.js +0 -38
  229. package/dist/chunk-F2E32OOJ.js.map +0 -1
  230. package/dist/chunk-F7YWBVP6.js +0 -141
  231. package/dist/chunk-F7YWBVP6.js.map +0 -1
  232. package/dist/chunk-G7JMADLU.js +0 -167
  233. package/dist/chunk-G7JMADLU.js.map +0 -1
  234. package/dist/chunk-GKCLNHVQ.js +0 -124
  235. package/dist/chunk-GKCLNHVQ.js.map +0 -1
  236. package/dist/chunk-GQBWKH72.js +0 -33
  237. package/dist/chunk-GQBWKH72.js.map +0 -1
  238. package/dist/chunk-H6SOU4UG.js +0 -10
  239. package/dist/chunk-H6SOU4UG.js.map +0 -1
  240. package/dist/chunk-HKJJHYFX.js +0 -115
  241. package/dist/chunk-HKJJHYFX.js.map +0 -1
  242. package/dist/chunk-IQ5WXHRB.js +0 -16
  243. package/dist/chunk-IQ5WXHRB.js.map +0 -1
  244. package/dist/chunk-ISZQ5TSG.js +0 -26
  245. package/dist/chunk-ISZQ5TSG.js.map +0 -1
  246. package/dist/chunk-JSYGVDO6.js +0 -41
  247. package/dist/chunk-JSYGVDO6.js.map +0 -1
  248. package/dist/chunk-KY6GKED2.js +0 -229
  249. package/dist/chunk-KY6GKED2.js.map +0 -1
  250. package/dist/chunk-L5OPCX6F.js +0 -33
  251. package/dist/chunk-L5OPCX6F.js.map +0 -1
  252. package/dist/chunk-LLMBKOKT.js +0 -44
  253. package/dist/chunk-LLMBKOKT.js.map +0 -1
  254. package/dist/chunk-MKBO4S2O.js +0 -48
  255. package/dist/chunk-MKBO4S2O.js.map +0 -1
  256. package/dist/chunk-NMQRI5G5.js +0 -48
  257. package/dist/chunk-NMQRI5G5.js.map +0 -1
  258. package/dist/chunk-OCSYB6YE.js.map +0 -1
  259. package/dist/chunk-OILW3ESA.js +0 -62
  260. package/dist/chunk-OILW3ESA.js.map +0 -1
  261. package/dist/chunk-PCVJLIUU.js +0 -125
  262. package/dist/chunk-PCVJLIUU.js.map +0 -1
  263. package/dist/chunk-RXSDAOF7.js +0 -45
  264. package/dist/chunk-RXSDAOF7.js.map +0 -1
  265. package/dist/chunk-RZD2P2BD.js +0 -77
  266. package/dist/chunk-RZD2P2BD.js.map +0 -1
  267. package/dist/chunk-UL52C2UU.js +0 -22
  268. package/dist/chunk-UL52C2UU.js.map +0 -1
  269. package/dist/chunk-USFQYYSE.js +0 -118
  270. package/dist/chunk-USFQYYSE.js.map +0 -1
  271. package/dist/chunk-UW3CSNPH.js +0 -77
  272. package/dist/chunk-UW3CSNPH.js.map +0 -1
  273. package/dist/chunk-V2ORCFEN.js +0 -156
  274. package/dist/chunk-V2ORCFEN.js.map +0 -1
  275. package/dist/chunk-WQO7NSII.js +0 -141
  276. package/dist/chunk-WQO7NSII.js.map +0 -1
  277. package/dist/chunk-WXHK2EIV.js +0 -75
  278. package/dist/chunk-WXHK2EIV.js.map +0 -1
  279. package/dist/chunk-Y6W3YC3K.js +0 -17
  280. package/dist/chunk-Y6W3YC3K.js.map +0 -1
  281. package/dist/chunk-ZRVEDPQA.js +0 -59
  282. package/dist/chunk-ZRVEDPQA.js.map +0 -1
@@ -0,0 +1,1424 @@
1
+ "use client";
2
+ import { useState, useEffect, useRef } from 'react';
3
+ import { clsx } from 'clsx';
4
+ import { twMerge } from 'tailwind-merge';
5
+ import { Button as Button$1 } from '@base-ui/react/button';
6
+ import { cva } from 'class-variance-authority';
7
+ import { jsxs, jsx } from 'react/jsx-runtime';
8
+ import { Dialog } from '@base-ui/react/dialog';
9
+ import { Menu, XIcon, ChevronDownIcon, ChevronUpIcon } from 'lucide-react';
10
+ import { mergeProps } from '@base-ui/react/merge-props';
11
+ import { useRender } from '@base-ui/react/use-render';
12
+ import { Accordion as Accordion$1 } from '@base-ui/react/accordion';
13
+ import { Input as Input$1 } from '@base-ui/react/input';
14
+
15
+ // src/components/brutal/nav.tsx
16
+ function cn(...inputs) {
17
+ return twMerge(clsx(inputs));
18
+ }
19
+ var buttonVariants = cva(
20
+ "group/button inline-flex shrink-0 items-center justify-center rounded-lg whitespace-nowrap font-bold transition-all duration-150 select-none outline-none disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
21
+ {
22
+ variants: {
23
+ variant: {
24
+ // Primary: Black bg, white text, offset shadow
25
+ default: "border-brutal border-foreground bg-primary text-primary-foreground shadow-brutal hover:-translate-x-0.5 hover:-translate-y-0.5 hover:shadow-brutal-lg active:translate-x-px active:translate-y-px active:shadow-brutal-sm",
26
+ // CTA: Mint green bg — the Bannerbear signature
27
+ cta: "border-brutal border-foreground bg-cta text-cta-foreground shadow-brutal hover:-translate-x-0.5 hover:-translate-y-0.5 hover:shadow-brutal-lg active:translate-x-px active:translate-y-px active:shadow-brutal-sm",
28
+ // Brand: Dynamic brand color bg
29
+ brand: "border-brutal border-foreground bg-brand text-brand-foreground shadow-brutal hover:-translate-x-0.5 hover:-translate-y-0.5 hover:shadow-brutal-lg active:translate-x-px active:translate-y-px active:shadow-brutal-sm",
30
+ // Outline: White bg, black border, offset shadow
31
+ outline: "border-brutal border-foreground bg-background text-foreground shadow-brutal hover:-translate-x-0.5 hover:-translate-y-0.5 hover:shadow-brutal-lg active:translate-x-px active:translate-y-px active:shadow-brutal-sm",
32
+ // Secondary: Light bg, border, smaller shadow
33
+ secondary: "border-brutal border-foreground bg-secondary text-secondary-foreground shadow-brutal-sm hover:-translate-x-0.5 hover:-translate-y-0.5 hover:shadow-brutal active:translate-x-px active:translate-y-px active:shadow-none",
34
+ // Ghost: No border/shadow, subtle hover
35
+ ghost: "hover:bg-secondary hover:text-foreground",
36
+ // Link: Text only
37
+ link: "text-foreground underline-offset-4 hover:underline",
38
+ // Destructive
39
+ destructive: "border-brutal border-destructive bg-destructive text-destructive-foreground shadow-brutal hover:-translate-x-0.5 hover:-translate-y-0.5 hover:shadow-brutal-lg active:translate-x-px active:translate-y-px active:shadow-brutal-sm",
40
+ // Nav: Thin border, no shadow (for nav Sign In buttons)
41
+ nav: "border border-foreground bg-background text-foreground hover:bg-foreground hover:text-background"
42
+ },
43
+ size: {
44
+ xs: "h-7 gap-1 px-2.5 text-xs",
45
+ sm: "h-8 gap-1.5 px-3 text-sm",
46
+ default: "h-10 gap-2 px-5 text-sm",
47
+ lg: "h-12 gap-2 px-7 text-base",
48
+ xl: "h-14 gap-2.5 px-9 text-lg",
49
+ icon: "size-10",
50
+ "icon-sm": "size-8",
51
+ "icon-lg": "size-12"
52
+ }
53
+ },
54
+ defaultVariants: {
55
+ variant: "default",
56
+ size: "default"
57
+ }
58
+ }
59
+ );
60
+ function Button({
61
+ className,
62
+ variant = "default",
63
+ size = "default",
64
+ ...props
65
+ }) {
66
+ return /* @__PURE__ */ jsx(
67
+ Button$1,
68
+ {
69
+ "data-slot": "button",
70
+ className: cn(buttonVariants({ variant, size, className })),
71
+ ...props
72
+ }
73
+ );
74
+ }
75
+ function Sheet({ ...props }) {
76
+ return /* @__PURE__ */ jsx(Dialog.Root, { "data-slot": "sheet", ...props });
77
+ }
78
+ function SheetTrigger({ ...props }) {
79
+ return /* @__PURE__ */ jsx(Dialog.Trigger, { "data-slot": "sheet-trigger", ...props });
80
+ }
81
+ function SheetPortal({ ...props }) {
82
+ return /* @__PURE__ */ jsx(Dialog.Portal, { "data-slot": "sheet-portal", ...props });
83
+ }
84
+ function SheetOverlay({ className, ...props }) {
85
+ return /* @__PURE__ */ jsx(
86
+ Dialog.Backdrop,
87
+ {
88
+ "data-slot": "sheet-overlay",
89
+ className: cn(
90
+ "fixed inset-0 z-50 bg-black/60 transition-opacity duration-150 data-ending-style:opacity-0 data-starting-style:opacity-0",
91
+ className
92
+ ),
93
+ ...props
94
+ }
95
+ );
96
+ }
97
+ function SheetContent({
98
+ className,
99
+ children,
100
+ side = "right",
101
+ showCloseButton = true,
102
+ ...props
103
+ }) {
104
+ return /* @__PURE__ */ jsxs(SheetPortal, { children: [
105
+ /* @__PURE__ */ jsx(SheetOverlay, {}),
106
+ /* @__PURE__ */ jsxs(
107
+ Dialog.Popup,
108
+ {
109
+ "data-slot": "sheet-content",
110
+ "data-side": side,
111
+ className: cn(
112
+ "fixed z-50 flex flex-col gap-4 border-brutal border-foreground bg-background bg-clip-padding text-sm shadow-brutal-lg transition duration-200 ease-in-out data-ending-style:opacity-0 data-starting-style:opacity-0 data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:data-ending-style:translate-y-[2.5rem] data-[side=bottom]:data-starting-style:translate-y-[2.5rem] data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:data-ending-style:translate-x-[-2.5rem] data-[side=left]:data-starting-style:translate-x-[-2.5rem] data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:data-ending-style:translate-x-[2.5rem] data-[side=right]:data-starting-style:translate-x-[2.5rem] data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:data-ending-style:translate-y-[-2.5rem] data-[side=top]:data-starting-style:translate-y-[-2.5rem] data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm",
113
+ className
114
+ ),
115
+ ...props,
116
+ children: [
117
+ children,
118
+ showCloseButton && /* @__PURE__ */ jsxs(
119
+ Dialog.Close,
120
+ {
121
+ "data-slot": "sheet-close",
122
+ render: /* @__PURE__ */ jsx(
123
+ Button,
124
+ {
125
+ variant: "ghost",
126
+ className: "absolute top-3 right-3",
127
+ size: "icon-sm"
128
+ }
129
+ ),
130
+ children: [
131
+ /* @__PURE__ */ jsx(
132
+ XIcon,
133
+ {}
134
+ ),
135
+ /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
136
+ ]
137
+ }
138
+ )
139
+ ]
140
+ }
141
+ )
142
+ ] });
143
+ }
144
+ function SheetTitle({ className, ...props }) {
145
+ return /* @__PURE__ */ jsx(
146
+ Dialog.Title,
147
+ {
148
+ "data-slot": "sheet-title",
149
+ className: cn("text-base font-bold text-foreground", className),
150
+ ...props
151
+ }
152
+ );
153
+ }
154
+ function BrutalNav({
155
+ logo,
156
+ links,
157
+ ctaText = "Sign In",
158
+ ctaHref = "/admin",
159
+ variant = "solid",
160
+ className
161
+ }) {
162
+ const [mobileOpen, setMobileOpen] = useState(false);
163
+ const [isScrolled, setIsScrolled] = useState(false);
164
+ useEffect(() => {
165
+ if (variant !== "transparent") return;
166
+ const onScroll = () => setIsScrolled(window.scrollY > 20);
167
+ onScroll();
168
+ window.addEventListener("scroll", onScroll, { passive: true });
169
+ return () => window.removeEventListener("scroll", onScroll);
170
+ }, [variant]);
171
+ const variantStyles = {
172
+ solid: "sticky top-0 z-50 w-full border-b-brutal border-foreground bg-brand",
173
+ transparent: cn(
174
+ "fixed top-0 left-0 right-0 z-50 w-full transition-all duration-200",
175
+ isScrolled ? "bg-background/80 text-foreground backdrop-blur-md border-b border-foreground/10" : "bg-transparent text-white"
176
+ ),
177
+ "floating-pill": "fixed top-0 left-0 right-0 z-50 mx-4 mt-4 rounded-full border-brutal border-foreground bg-background shadow-brutal"
178
+ };
179
+ return /* @__PURE__ */ jsx("header", { className: cn(variantStyles[variant], className), children: /* @__PURE__ */ jsxs(
180
+ "div",
181
+ {
182
+ className: cn(
183
+ "flex h-14 items-center justify-between px-6",
184
+ variant === "floating-pill" ? "mx-auto max-w-7xl" : "brutal-container"
185
+ ),
186
+ children: [
187
+ /* @__PURE__ */ jsx("a", { href: "/", className: "flex items-center gap-2 text-lg font-black", children: logo }),
188
+ /* @__PURE__ */ jsx("nav", { className: "hidden items-center gap-1 md:flex", children: links.map((link) => /* @__PURE__ */ jsxs(
189
+ "a",
190
+ {
191
+ href: link.href,
192
+ className: cn(
193
+ "relative rounded-md px-3 py-1.5 text-sm font-bold transition-colors hover:opacity-70",
194
+ link.active && "bg-foreground/10"
195
+ ),
196
+ children: [
197
+ link.label,
198
+ link.badge && /* @__PURE__ */ jsx("span", { className: "absolute -top-1 -right-1 border border-foreground bg-background px-1 font-mono text-[9px] font-bold uppercase text-foreground", children: link.badge })
199
+ ]
200
+ },
201
+ link.href
202
+ )) }),
203
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
204
+ /* @__PURE__ */ jsx(
205
+ Button,
206
+ {
207
+ variant: "nav",
208
+ size: "sm",
209
+ render: /* @__PURE__ */ jsx("a", { href: ctaHref }),
210
+ className: "hidden md:inline-flex",
211
+ children: ctaText
212
+ }
213
+ ),
214
+ /* @__PURE__ */ jsxs(Sheet, { open: mobileOpen, onOpenChange: setMobileOpen, children: [
215
+ /* @__PURE__ */ jsxs(
216
+ SheetTrigger,
217
+ {
218
+ render: /* @__PURE__ */ jsx(Button, { variant: "ghost", size: "icon-sm", className: "md:hidden" }),
219
+ children: [
220
+ /* @__PURE__ */ jsx(Menu, { className: "size-5" }),
221
+ /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Menu" })
222
+ ]
223
+ }
224
+ ),
225
+ /* @__PURE__ */ jsxs(SheetContent, { side: "right", showCloseButton: true, children: [
226
+ /* @__PURE__ */ jsx(SheetTitle, { children: "Navigation" }),
227
+ /* @__PURE__ */ jsxs("nav", { className: "flex flex-col gap-1 px-2 pt-4", children: [
228
+ links.map((link) => /* @__PURE__ */ jsxs(
229
+ "a",
230
+ {
231
+ href: link.href,
232
+ onClick: () => setMobileOpen(false),
233
+ className: cn(
234
+ "flex items-center gap-2 rounded-md px-3 py-2.5 text-sm font-bold transition-colors hover:bg-foreground/5",
235
+ link.active && "bg-foreground/10"
236
+ ),
237
+ children: [
238
+ link.label,
239
+ link.badge && /* @__PURE__ */ jsx("span", { className: "border border-foreground bg-background px-1 font-mono text-[9px] font-bold uppercase text-foreground", children: link.badge })
240
+ ]
241
+ },
242
+ link.href
243
+ )),
244
+ /* @__PURE__ */ jsx("div", { className: "mt-4 border-t border-foreground/10 pt-4", children: /* @__PURE__ */ jsx(
245
+ Button,
246
+ {
247
+ variant: "default",
248
+ size: "default",
249
+ render: /* @__PURE__ */ jsx("a", { href: ctaHref }),
250
+ className: "w-full",
251
+ children: ctaText
252
+ }
253
+ ) })
254
+ ] })
255
+ ] })
256
+ ] })
257
+ ] })
258
+ ]
259
+ }
260
+ ) });
261
+ }
262
+ var colorMap = {
263
+ white: "bg-background text-foreground",
264
+ brand: "bg-brand",
265
+ "brand-muted": "bg-brand-muted text-foreground",
266
+ blue: "bg-section-blue",
267
+ gray: "bg-section-gray text-foreground",
268
+ cream: "bg-section-cream text-foreground",
269
+ black: "bg-foreground text-background",
270
+ cta: "bg-cta"
271
+ };
272
+ var containerMap = {
273
+ sm: "brutal-container-sm",
274
+ default: "brutal-container",
275
+ lg: "brutal-container-lg"
276
+ };
277
+ var paddingMap = {
278
+ sm: "brutal-section-sm",
279
+ default: "brutal-section",
280
+ lg: "brutal-section py-28 sm:py-36 md:py-44"
281
+ };
282
+ var patternMap = {
283
+ dots: "brutal-dots",
284
+ stripes: "brutal-stripes",
285
+ noise: "brutal-noise",
286
+ grain: "brutal-grain",
287
+ crosshatch: "brutal-crosshatch",
288
+ "grid-dots": "brutal-grid-dots",
289
+ "gradient-mesh": "brutal-gradient-mesh",
290
+ none: ""
291
+ };
292
+ function BrutalSection({
293
+ children,
294
+ color = "white",
295
+ className,
296
+ containerSize = "default",
297
+ padding = "default",
298
+ pattern,
299
+ dots = false,
300
+ stripes = false,
301
+ id
302
+ }) {
303
+ const resolvedPattern = pattern ?? (dots ? "dots" : void 0) ?? (stripes ? "stripes" : void 0) ?? "none";
304
+ return /* @__PURE__ */ jsx(
305
+ "section",
306
+ {
307
+ id,
308
+ className: cn(
309
+ paddingMap[padding],
310
+ colorMap[color],
311
+ patternMap[resolvedPattern],
312
+ className
313
+ ),
314
+ children: /* @__PURE__ */ jsx("div", { className: containerMap[containerSize], children })
315
+ }
316
+ );
317
+ }
318
+ function BrutalHero({
319
+ variant = "split",
320
+ badge,
321
+ badgePosition = "above",
322
+ headline,
323
+ description,
324
+ ctaText,
325
+ ctaHref = "#",
326
+ ctaVariant = "cta",
327
+ secondaryText,
328
+ secondaryHref,
329
+ visual,
330
+ color = "brand",
331
+ pattern,
332
+ proof,
333
+ className
334
+ }) {
335
+ const badgeElement = badge && /* @__PURE__ */ jsx(
336
+ "div",
337
+ {
338
+ className: cn(
339
+ "inline-flex w-fit border-brutal border-foreground bg-background px-3 py-1 font-mono text-xs font-bold uppercase tracking-widest text-foreground shadow-brutal-sm",
340
+ badgePosition === "floating" && "absolute -top-3 left-6 z-10"
341
+ ),
342
+ children: badge
343
+ }
344
+ );
345
+ const textContent = /* @__PURE__ */ jsxs("div", { className: cn(
346
+ "flex flex-col gap-6",
347
+ variant === "centered" && "items-center text-center"
348
+ ), children: [
349
+ badgePosition === "above" && badgeElement,
350
+ /* @__PURE__ */ jsxs("h1", { className: cn(
351
+ "brutal-display text-balance",
352
+ variant === "centered" && "mx-auto max-w-4xl"
353
+ ), children: [
354
+ badgePosition === "inline" && badgeElement,
355
+ headline
356
+ ] }),
357
+ /* @__PURE__ */ jsx("p", { className: cn(
358
+ "brutal-body-lg max-w-lg opacity-80",
359
+ variant === "centered" && "mx-auto"
360
+ ), children: description }),
361
+ /* @__PURE__ */ jsxs("div", { className: cn(
362
+ "flex flex-wrap gap-4",
363
+ variant === "centered" && "justify-center"
364
+ ), children: [
365
+ /* @__PURE__ */ jsx(Button, { variant: ctaVariant, size: "xl", render: /* @__PURE__ */ jsx("a", { href: ctaHref }), children: ctaText }),
366
+ secondaryText && /* @__PURE__ */ jsx(Button, { variant: "outline", size: "xl", render: /* @__PURE__ */ jsx("a", { href: secondaryHref || "#" }), children: secondaryText })
367
+ ] }),
368
+ proof && /* @__PURE__ */ jsxs("p", { className: "flex items-center gap-2 text-sm font-medium opacity-70", children: [
369
+ /* @__PURE__ */ jsx("span", { className: "inline-flex size-5 items-center justify-center border border-current text-xs", children: "\u2713" }),
370
+ proof
371
+ ] })
372
+ ] });
373
+ const layoutClass = {
374
+ split: "grid items-center gap-12 lg:grid-cols-2 lg:gap-16",
375
+ centered: "flex flex-col items-center gap-12",
376
+ overlap: "relative",
377
+ asymmetric: "grid items-center gap-12 lg:grid-cols-[3fr_2fr] lg:gap-16"
378
+ }[variant];
379
+ return /* @__PURE__ */ jsxs(BrutalSection, { color, padding: "lg", pattern, className: cn("relative", className), children: [
380
+ badgePosition === "floating" && badgeElement,
381
+ /* @__PURE__ */ jsxs("div", { className: layoutClass, children: [
382
+ textContent,
383
+ visual && variant === "overlap" ? /* @__PURE__ */ jsx("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center opacity-20", children: visual }) : visual ? /* @__PURE__ */ jsx("div", { className: cn(
384
+ "flex items-center justify-center",
385
+ variant === "asymmetric" && "-rotate-2 transform"
386
+ ), children: visual }) : null
387
+ ] })
388
+ ] });
389
+ }
390
+ var paths = {
391
+ wave: "M0,64 C160,128 320,0 480,64 C640,128 800,0 960,64 L960,160 L0,160 Z",
392
+ jagged: "M0,80 L80,40 L160,80 L240,20 L320,80 L400,40 L480,80 L560,20 L640,80 L720,40 L800,80 L880,20 L960,80 L960,160 L0,160 Z",
393
+ curve: "M0,128 Q480,-32 960,128 L960,160 L0,160 Z",
394
+ castle: "M0,80 L0,60 L80,60 L80,80 L120,80 L120,40 L200,40 L200,80 L240,80 L240,60 L320,60 L320,80 L360,80 L360,40 L440,40 L440,80 L480,80 L480,60 L560,60 L560,80 L600,80 L600,40 L680,40 L680,80 L720,80 L720,60 L800,60 L800,80 L840,80 L840,40 L920,40 L920,80 L960,80 L960,160 L0,160 Z",
395
+ "torn-paper": "M0,70 C30,65 45,85 80,72 C115,59 130,90 170,78 C210,66 225,88 270,75 C315,62 340,92 380,79 C420,66 445,86 490,73 C535,60 560,88 600,76 C640,64 665,90 710,77 C755,64 780,84 830,71 C875,58 900,86 960,80 L960,160 L0,160 Z",
396
+ "brush-stroke": "M0,90 C80,50 120,100 200,60 C280,20 360,110 480,70 C600,30 640,100 720,80 C800,60 880,100 960,70 L960,160 L0,160 Z",
397
+ geometric: "M0,100 L120,60 L240,80 L360,40 L480,90 L600,50 L720,70 L840,30 L960,80 L960,160 L0,160 Z",
398
+ blob: "M0,80 C80,120 160,40 280,80 C400,120 440,30 560,70 C680,110 760,40 960,80 L960,160 L0,160 Z",
399
+ diagonal: "M0,160 L960,60 L960,160 Z",
400
+ zigzag: "M0,80 L60,40 L120,80 L180,40 L240,80 L300,40 L360,80 L420,40 L480,80 L540,40 L600,80 L660,40 L720,80 L780,40 L840,80 L900,40 L960,80 L960,160 L0,160 Z",
401
+ "hand-drawn": "M0,72 C20,68 35,82 60,75 C85,68 95,84 125,76 C155,68 170,85 200,77 C230,69 245,83 275,75 C305,67 320,86 350,78 C380,70 395,82 425,74 C455,66 470,84 500,76 C530,68 545,83 575,75 C605,67 620,85 650,77 C680,69 695,82 725,74 C755,66 770,84 800,76 C830,68 845,83 875,75 C905,67 920,82 960,74 L960,160 L0,160 Z"
402
+ };
403
+ function SectionDivider({
404
+ from = "hsl(var(--background))",
405
+ to = "hsl(var(--background))",
406
+ flip = false,
407
+ className = "",
408
+ variant = "wave",
409
+ layers = false
410
+ }) {
411
+ return /* @__PURE__ */ jsxs(
412
+ "div",
413
+ {
414
+ className: cn("relative -my-px w-full overflow-hidden", className),
415
+ style: { backgroundColor: from },
416
+ children: [
417
+ layers && /* @__PURE__ */ jsx(
418
+ "svg",
419
+ {
420
+ viewBox: "0 0 960 160",
421
+ preserveAspectRatio: "none",
422
+ className: "absolute inset-0 block w-full opacity-30",
423
+ style: {
424
+ height: "clamp(40px, 6vw, 80px)",
425
+ transform: flip ? "scaleY(-1) translateY(4px)" : "translateY(-4px)"
426
+ },
427
+ children: /* @__PURE__ */ jsx("path", { d: paths[variant], fill: to })
428
+ }
429
+ ),
430
+ /* @__PURE__ */ jsx(
431
+ "svg",
432
+ {
433
+ viewBox: "0 0 960 160",
434
+ preserveAspectRatio: "none",
435
+ className: "relative block w-full",
436
+ style: {
437
+ height: "clamp(40px, 6vw, 80px)",
438
+ transform: flip ? "scaleY(-1)" : void 0
439
+ },
440
+ children: /* @__PURE__ */ jsx("path", { d: paths[variant], fill: to })
441
+ }
442
+ )
443
+ ]
444
+ }
445
+ );
446
+ }
447
+ function LogoCloud({
448
+ title,
449
+ logos,
450
+ marquee = false,
451
+ color = "white",
452
+ className
453
+ }) {
454
+ const logoElements = logos.map((logo) => {
455
+ const img = /* @__PURE__ */ jsx(
456
+ "img",
457
+ {
458
+ src: logo.src,
459
+ alt: logo.alt,
460
+ className: "h-8 max-w-[120px] object-contain opacity-50 grayscale transition-all duration-200 hover:opacity-100 hover:grayscale-0"
461
+ },
462
+ logo.alt
463
+ );
464
+ return logo.href ? /* @__PURE__ */ jsx("a", { href: logo.href, className: "flex items-center px-6", children: img }, logo.alt) : /* @__PURE__ */ jsx("div", { className: "flex items-center px-6", children: img }, logo.alt);
465
+ });
466
+ return /* @__PURE__ */ jsxs(BrutalSection, { color, padding: "sm", className, children: [
467
+ title && /* @__PURE__ */ jsx("p", { className: "brutal-label mb-6 text-center text-muted-foreground", children: title }),
468
+ marquee ? /* @__PURE__ */ jsx("div", { className: "relative overflow-hidden", children: /* @__PURE__ */ jsxs("div", { className: "flex animate-marquee", children: [
469
+ logoElements,
470
+ logoElements
471
+ ] }) }) : /* @__PURE__ */ jsx("div", { className: "flex flex-wrap items-center justify-center gap-8", children: logoElements })
472
+ ] });
473
+ }
474
+ function Card({
475
+ className,
476
+ ...props
477
+ }) {
478
+ return /* @__PURE__ */ jsx(
479
+ "div",
480
+ {
481
+ "data-slot": "card",
482
+ className: cn(
483
+ "group/card flex flex-col gap-4 rounded-lg border-brutal border-foreground bg-card p-5 text-card-foreground shadow-brutal transition-all duration-150 hover:-translate-x-0.5 hover:-translate-y-0.5 hover:shadow-brutal-lg",
484
+ className
485
+ ),
486
+ ...props
487
+ }
488
+ );
489
+ }
490
+ function CardHeader({ className, ...props }) {
491
+ return /* @__PURE__ */ jsx(
492
+ "div",
493
+ {
494
+ "data-slot": "card-header",
495
+ className: cn("flex flex-col gap-1", className),
496
+ ...props
497
+ }
498
+ );
499
+ }
500
+ function CardTitle({ className, ...props }) {
501
+ return /* @__PURE__ */ jsx(
502
+ "div",
503
+ {
504
+ "data-slot": "card-title",
505
+ className: cn("text-lg font-bold leading-snug", className),
506
+ ...props
507
+ }
508
+ );
509
+ }
510
+ function CardDescription({ className, ...props }) {
511
+ return /* @__PURE__ */ jsx(
512
+ "div",
513
+ {
514
+ "data-slot": "card-description",
515
+ className: cn("text-sm text-muted-foreground", className),
516
+ ...props
517
+ }
518
+ );
519
+ }
520
+ function CardContent({ className, ...props }) {
521
+ return /* @__PURE__ */ jsx(
522
+ "div",
523
+ {
524
+ "data-slot": "card-content",
525
+ className: cn("", className),
526
+ ...props
527
+ }
528
+ );
529
+ }
530
+ var accentColors = [
531
+ "hsl(var(--brand))",
532
+ "hsl(var(--cta))",
533
+ "hsl(var(--section-blue))",
534
+ "hsl(12 85% 62%)",
535
+ "hsl(260 55% 68%)",
536
+ "hsl(25 75% 48%)"
537
+ ];
538
+ var colMap = {
539
+ 2: "sm:grid-cols-2",
540
+ 3: "sm:grid-cols-2 lg:grid-cols-3",
541
+ 4: "sm:grid-cols-2 lg:grid-cols-4"
542
+ };
543
+ function BrutalFeatureGrid({
544
+ variant = "icon-top",
545
+ badge,
546
+ headline,
547
+ description,
548
+ features,
549
+ columns = 3,
550
+ color = "white",
551
+ className
552
+ }) {
553
+ return /* @__PURE__ */ jsxs(BrutalSection, { color, className, children: [
554
+ /* @__PURE__ */ jsxs("div", { className: "mb-12 max-w-2xl", children: [
555
+ badge && /* @__PURE__ */ jsx("p", { className: "brutal-label mb-4 text-muted-foreground", children: badge }),
556
+ /* @__PURE__ */ jsx("h2", { className: "brutal-h2 mb-4", children: headline }),
557
+ description && /* @__PURE__ */ jsx("p", { className: "brutal-body text-muted-foreground", children: description })
558
+ ] }),
559
+ /* @__PURE__ */ jsx(
560
+ "div",
561
+ {
562
+ className: cn(
563
+ "grid gap-6",
564
+ variant === "bento" ? "sm:grid-cols-2 lg:grid-cols-3" : colMap[columns]
565
+ ),
566
+ children: features.map((feature, i) => /* @__PURE__ */ jsx(
567
+ FeatureCard,
568
+ {
569
+ feature,
570
+ variant,
571
+ index: i,
572
+ accentColor: accentColors[i % accentColors.length]
573
+ },
574
+ feature.title
575
+ ))
576
+ }
577
+ )
578
+ ] });
579
+ }
580
+ function FeatureCard({
581
+ feature,
582
+ variant,
583
+ index,
584
+ accentColor
585
+ }) {
586
+ const isBentoFeatured = variant === "bento" && feature.featured;
587
+ if (variant === "icon-left") {
588
+ return /* @__PURE__ */ jsxs(
589
+ "div",
590
+ {
591
+ className: "flex gap-4 border-brutal border-foreground bg-background p-5 shadow-brutal transition-all duration-150 hover:-translate-x-0.5 hover:-translate-y-0.5 hover:shadow-brutal-lg",
592
+ style: { borderLeftColor: accentColor, borderLeftWidth: "4px" },
593
+ children: [
594
+ feature.icon && /* @__PURE__ */ jsx("div", { className: "flex size-12 shrink-0 items-center justify-center border-brutal border-foreground bg-brand-muted text-2xl shadow-brutal-sm", children: feature.icon }),
595
+ /* @__PURE__ */ jsxs("div", { children: [
596
+ feature.stat && /* @__PURE__ */ jsx("p", { className: "brutal-label mb-1 text-brand", children: feature.stat }),
597
+ /* @__PURE__ */ jsx("h3", { className: "brutal-h4 mb-1", children: feature.title }),
598
+ /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: feature.description })
599
+ ] })
600
+ ]
601
+ }
602
+ );
603
+ }
604
+ if (variant === "numbered") {
605
+ return /* @__PURE__ */ jsxs(Card, { children: [
606
+ /* @__PURE__ */ jsxs(CardHeader, { children: [
607
+ /* @__PURE__ */ jsx(
608
+ "span",
609
+ {
610
+ className: "brutal-display mb-2 block opacity-15",
611
+ style: { color: accentColor },
612
+ children: String(index + 1).padStart(2, "0")
613
+ }
614
+ ),
615
+ feature.stat && /* @__PURE__ */ jsx("p", { className: "brutal-label mb-1 text-brand", children: feature.stat }),
616
+ /* @__PURE__ */ jsx(CardTitle, { children: feature.title })
617
+ ] }),
618
+ /* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsx(CardDescription, { children: feature.description }) })
619
+ ] });
620
+ }
621
+ return /* @__PURE__ */ jsxs(
622
+ Card,
623
+ {
624
+ className: cn(
625
+ isBentoFeatured && "sm:col-span-2 bg-brand-muted"
626
+ ),
627
+ children: [
628
+ /* @__PURE__ */ jsxs(CardHeader, { children: [
629
+ feature.icon && /* @__PURE__ */ jsx(
630
+ "div",
631
+ {
632
+ className: "mb-2 inline-flex size-12 items-center justify-center border-brutal border-foreground bg-brand-muted text-2xl shadow-brutal-sm",
633
+ style: { borderBottomColor: accentColor },
634
+ children: feature.icon
635
+ }
636
+ ),
637
+ feature.stat && /* @__PURE__ */ jsx("p", { className: "brutal-label mb-1 text-brand", children: feature.stat }),
638
+ /* @__PURE__ */ jsx(CardTitle, { children: feature.title })
639
+ ] }),
640
+ /* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsx(CardDescription, { children: feature.description }) })
641
+ ]
642
+ }
643
+ );
644
+ }
645
+ function useCountUp(target, inView) {
646
+ const [count, setCount] = useState(0);
647
+ useEffect(() => {
648
+ if (!inView) return;
649
+ let frame;
650
+ const duration = 1500;
651
+ const start = performance.now();
652
+ function animate(now) {
653
+ const elapsed = now - start;
654
+ const progress = Math.min(elapsed / duration, 1);
655
+ const eased = 1 - Math.pow(1 - progress, 3);
656
+ setCount(Math.round(eased * target));
657
+ if (progress < 1) frame = requestAnimationFrame(animate);
658
+ }
659
+ frame = requestAnimationFrame(animate);
660
+ return () => cancelAnimationFrame(frame);
661
+ }, [target, inView]);
662
+ return count;
663
+ }
664
+ function StatItem({ stat, inView }) {
665
+ const count = useCountUp(stat.value, inView);
666
+ return /* @__PURE__ */ jsxs("div", { className: "text-center", children: [
667
+ /* @__PURE__ */ jsxs("p", { className: "brutal-display", children: [
668
+ stat.prefix,
669
+ count.toLocaleString(),
670
+ stat.suffix
671
+ ] }),
672
+ /* @__PURE__ */ jsx("p", { className: "brutal-label mt-2 text-muted-foreground", children: stat.label })
673
+ ] });
674
+ }
675
+ function StatsBar({ stats, color = "white", className }) {
676
+ const ref = useRef(null);
677
+ const [inView, setInView] = useState(false);
678
+ useEffect(() => {
679
+ if (!ref.current) return;
680
+ const observer = new IntersectionObserver(
681
+ ([entry]) => {
682
+ if (entry.isIntersecting) {
683
+ setInView(true);
684
+ observer.disconnect();
685
+ }
686
+ },
687
+ { threshold: 0.3 }
688
+ );
689
+ observer.observe(ref.current);
690
+ return () => observer.disconnect();
691
+ }, []);
692
+ return /* @__PURE__ */ jsx(BrutalSection, { color, padding: "sm", className, children: /* @__PURE__ */ jsx(
693
+ "div",
694
+ {
695
+ ref,
696
+ className: cn(
697
+ "grid gap-8",
698
+ stats.length === 2 && "grid-cols-2",
699
+ stats.length === 3 && "grid-cols-3",
700
+ stats.length >= 4 && "grid-cols-2 sm:grid-cols-4"
701
+ ),
702
+ children: stats.map((stat) => /* @__PURE__ */ jsx(StatItem, { stat, inView }, stat.label))
703
+ }
704
+ ) });
705
+ }
706
+ function StarRating({ rating }) {
707
+ return /* @__PURE__ */ jsx("div", { className: "flex gap-0.5", children: Array.from({ length: 5 }, (_, i) => /* @__PURE__ */ jsx(
708
+ "span",
709
+ {
710
+ className: cn(
711
+ "text-sm",
712
+ i < rating ? "text-amber-500" : "text-foreground/20"
713
+ ),
714
+ children: "\u2605"
715
+ },
716
+ i
717
+ )) });
718
+ }
719
+ function TestimonialCard({
720
+ t,
721
+ className
722
+ }) {
723
+ return /* @__PURE__ */ jsxs(
724
+ "div",
725
+ {
726
+ className: cn(
727
+ "relative break-inside-avoid border-brutal border-foreground bg-background p-5 text-foreground shadow-brutal transition-all duration-150 hover:-translate-x-0.5 hover:-translate-y-0.5 hover:shadow-brutal-lg",
728
+ className
729
+ ),
730
+ children: [
731
+ /* @__PURE__ */ jsx("span", { className: "pointer-events-none absolute top-3 right-4 select-none font-serif text-5xl leading-none text-foreground/[0.06]", children: "\u201C" }),
732
+ t.rating && /* @__PURE__ */ jsx("div", { className: "mb-3", children: /* @__PURE__ */ jsx(StarRating, { rating: t.rating }) }),
733
+ /* @__PURE__ */ jsx("p", { className: "relative mb-4 text-sm leading-relaxed", children: t.text }),
734
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
735
+ t.avatar ? /* @__PURE__ */ jsx(
736
+ "img",
737
+ {
738
+ src: t.avatar,
739
+ alt: t.name,
740
+ className: "size-9 border-2 object-cover",
741
+ style: { borderColor: "hsl(var(--brand))" }
742
+ }
743
+ ) : /* @__PURE__ */ jsx(
744
+ "div",
745
+ {
746
+ className: "flex size-9 items-center justify-center border-2 font-bold text-brand-foreground",
747
+ style: {
748
+ borderColor: "hsl(var(--brand))",
749
+ backgroundColor: "hsl(var(--brand))"
750
+ },
751
+ children: t.name[0]
752
+ }
753
+ ),
754
+ /* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
755
+ /* @__PURE__ */ jsx("p", { className: "text-sm font-bold", children: t.name }),
756
+ (t.role || t.company) && /* @__PURE__ */ jsxs("p", { className: "truncate text-xs text-muted-foreground", children: [
757
+ t.role,
758
+ t.role && t.company && " \xB7 ",
759
+ t.company
760
+ ] }),
761
+ !t.role && !t.company && t.handle && /* @__PURE__ */ jsx("p", { className: "font-mono text-xs text-muted-foreground", children: t.handle })
762
+ ] }),
763
+ t.companyLogo && /* @__PURE__ */ jsx(
764
+ "img",
765
+ {
766
+ src: t.companyLogo,
767
+ alt: t.company || "",
768
+ className: "h-5 object-contain opacity-60"
769
+ }
770
+ )
771
+ ] })
772
+ ]
773
+ }
774
+ );
775
+ }
776
+ function MasonryLayout({ testimonials }) {
777
+ return /* @__PURE__ */ jsx("div", { className: "columns-1 gap-6 sm:columns-2 lg:columns-3", children: testimonials.map((t, i) => /* @__PURE__ */ jsx(TestimonialCard, { t, className: "mb-6" }, i)) });
778
+ }
779
+ function FeaturedGridLayout({
780
+ testimonials
781
+ }) {
782
+ const featured = testimonials.find((t) => t.featured) || testimonials[0];
783
+ const rest = testimonials.filter((t) => t !== featured);
784
+ return /* @__PURE__ */ jsxs("div", { className: "grid gap-6 lg:grid-cols-2", children: [
785
+ featured && /* @__PURE__ */ jsx(
786
+ TestimonialCard,
787
+ {
788
+ t: featured,
789
+ className: "flex flex-col justify-between p-8 lg:row-span-2"
790
+ }
791
+ ),
792
+ rest.map((t, i) => /* @__PURE__ */ jsx(TestimonialCard, { t }, i))
793
+ ] });
794
+ }
795
+ function CarouselLayout({ testimonials }) {
796
+ return /* @__PURE__ */ jsx("div", { className: "-mx-6 flex snap-x snap-mandatory gap-6 overflow-x-auto px-6 pb-4", children: testimonials.map((t, i) => /* @__PURE__ */ jsx(
797
+ TestimonialCard,
798
+ {
799
+ t,
800
+ className: "w-80 flex-none snap-center"
801
+ },
802
+ i
803
+ )) });
804
+ }
805
+ function WallOfLoveLayout({ testimonials }) {
806
+ return /* @__PURE__ */ jsxs("div", { className: "relative max-h-[600px] overflow-hidden", children: [
807
+ /* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4", children: testimonials.map((t, i) => /* @__PURE__ */ jsx(TestimonialCard, { t }, i)) }),
808
+ /* @__PURE__ */ jsx("div", { className: "pointer-events-none absolute inset-x-0 bottom-0 h-32 bg-gradient-to-t from-background to-transparent" })
809
+ ] });
810
+ }
811
+ function BrutalTestimonials({
812
+ badge,
813
+ headline,
814
+ testimonials,
815
+ variant = "masonry",
816
+ color = "blue",
817
+ pattern,
818
+ className
819
+ }) {
820
+ return /* @__PURE__ */ jsxs(BrutalSection, { color, pattern, className, children: [
821
+ (headline || badge) && /* @__PURE__ */ jsxs("div", { className: "mb-12 text-center", children: [
822
+ badge && /* @__PURE__ */ jsx("p", { className: "brutal-label mb-4 opacity-70", children: badge }),
823
+ headline && /* @__PURE__ */ jsx("h2", { className: "brutal-h2", children: headline })
824
+ ] }),
825
+ variant === "masonry" && /* @__PURE__ */ jsx(MasonryLayout, { testimonials }),
826
+ variant === "featured-grid" && /* @__PURE__ */ jsx(FeaturedGridLayout, { testimonials }),
827
+ variant === "carousel" && /* @__PURE__ */ jsx(CarouselLayout, { testimonials }),
828
+ variant === "wall-of-love" && /* @__PURE__ */ jsx(WallOfLoveLayout, { testimonials })
829
+ ] });
830
+ }
831
+ var badgeVariants = cva(
832
+ "group/badge inline-flex w-fit shrink-0 items-center justify-center gap-1 rounded-md whitespace-nowrap font-bold transition-all [&>svg]:pointer-events-none [&>svg]:size-3!",
833
+ {
834
+ variants: {
835
+ variant: {
836
+ default: "border-brutal border-foreground bg-primary px-3 py-1 text-xs text-primary-foreground shadow-brutal-sm",
837
+ secondary: "border-brutal border-foreground bg-secondary px-3 py-1 text-xs text-secondary-foreground shadow-brutal-sm",
838
+ brand: "border-brutal border-foreground bg-brand px-3 py-1 text-xs text-brand-foreground shadow-brutal-sm",
839
+ cta: "border-brutal border-foreground bg-cta px-3 py-1 text-xs text-cta-foreground shadow-brutal-sm",
840
+ outline: "border-brutal border-foreground bg-background px-3 py-1 text-xs text-foreground",
841
+ destructive: "border-brutal border-destructive bg-destructive/10 px-3 py-1 text-xs text-destructive",
842
+ ghost: "px-2 py-0.5 text-xs text-muted-foreground"
843
+ }
844
+ },
845
+ defaultVariants: {
846
+ variant: "default"
847
+ }
848
+ }
849
+ );
850
+ function Badge({
851
+ className,
852
+ variant = "default",
853
+ render,
854
+ ...props
855
+ }) {
856
+ return useRender({
857
+ defaultTagName: "span",
858
+ props: mergeProps(
859
+ {
860
+ className: cn(badgeVariants({ variant }), className)
861
+ },
862
+ props
863
+ ),
864
+ render,
865
+ state: {
866
+ slot: "badge",
867
+ variant
868
+ }
869
+ });
870
+ }
871
+ function PricingTable({
872
+ badge,
873
+ headline,
874
+ description,
875
+ tiers,
876
+ popularIndex,
877
+ billingToggle = true,
878
+ color = "white",
879
+ className
880
+ }) {
881
+ const [annual, setAnnual] = useState(false);
882
+ return /* @__PURE__ */ jsxs(BrutalSection, { color, className, children: [
883
+ (headline || badge) && /* @__PURE__ */ jsxs("div", { className: "mb-8 text-center", children: [
884
+ badge && /* @__PURE__ */ jsx("p", { className: "brutal-label mb-4 text-muted-foreground", children: badge }),
885
+ headline && /* @__PURE__ */ jsx("h2", { className: "brutal-h2 mb-4", children: headline }),
886
+ description && /* @__PURE__ */ jsx("p", { className: "brutal-body mx-auto max-w-lg text-muted-foreground", children: description })
887
+ ] }),
888
+ billingToggle && /* @__PURE__ */ jsxs("div", { className: "mb-10 flex items-center justify-center gap-3", children: [
889
+ /* @__PURE__ */ jsx("span", { className: cn("text-sm font-bold", !annual && "text-brand"), children: "Monthly" }),
890
+ /* @__PURE__ */ jsx(
891
+ "button",
892
+ {
893
+ onClick: () => setAnnual(!annual),
894
+ className: cn(
895
+ "relative h-8 w-14 border-brutal border-foreground transition-colors",
896
+ annual ? "bg-brand" : "bg-secondary"
897
+ ),
898
+ children: /* @__PURE__ */ jsx(
899
+ "span",
900
+ {
901
+ className: cn(
902
+ "absolute top-1 size-6 border border-foreground bg-background transition-transform",
903
+ annual ? "left-7" : "left-1"
904
+ )
905
+ }
906
+ )
907
+ }
908
+ ),
909
+ /* @__PURE__ */ jsx("span", { className: cn("text-sm font-bold", annual && "text-brand"), children: "Annual" }),
910
+ annual && /* @__PURE__ */ jsx(Badge, { variant: "cta", children: "Save 20%" })
911
+ ] }),
912
+ /* @__PURE__ */ jsx("div", { className: cn(
913
+ "grid gap-6",
914
+ tiers.length === 2 && "mx-auto max-w-2xl sm:grid-cols-2",
915
+ tiers.length === 3 && "lg:grid-cols-3",
916
+ tiers.length >= 4 && "sm:grid-cols-2 lg:grid-cols-4"
917
+ ), children: tiers.map((tier, i) => {
918
+ const isPopular = i === popularIndex;
919
+ const price = annual ? tier.price.annual : tier.price.monthly;
920
+ return /* @__PURE__ */ jsxs(
921
+ "div",
922
+ {
923
+ className: cn(
924
+ "relative flex flex-col border-brutal border-foreground bg-background p-6 shadow-brutal",
925
+ isPopular && "border-brand shadow-brutal-lg ring-2 ring-brand z-10 scale-105"
926
+ ),
927
+ children: [
928
+ isPopular && /* @__PURE__ */ jsx(Badge, { variant: "brand", className: "absolute -top-3 left-1/2 -translate-x-1/2", children: "Popular" }),
929
+ /* @__PURE__ */ jsx("h3", { className: "brutal-h4 mb-1", children: tier.name }),
930
+ tier.description && /* @__PURE__ */ jsx("p", { className: "mb-4 text-sm text-muted-foreground", children: tier.description }),
931
+ /* @__PURE__ */ jsxs("div", { className: "mb-6", children: [
932
+ /* @__PURE__ */ jsx("span", { className: "brutal-h1", children: typeof price === "number" ? `$${price}` : price }),
933
+ typeof price === "number" && /* @__PURE__ */ jsx("span", { className: "text-sm text-muted-foreground", children: "/mo" })
934
+ ] }),
935
+ /* @__PURE__ */ jsx("ul", { className: "mb-8 flex flex-1 flex-col gap-2", children: tier.features.map((feature) => /* @__PURE__ */ jsxs("li", { className: "flex items-start gap-2 text-sm", children: [
936
+ /* @__PURE__ */ jsx("span", { className: "mt-0.5 text-brand", children: "\u2713" }),
937
+ feature
938
+ ] }, feature)) }),
939
+ /* @__PURE__ */ jsx(
940
+ Button,
941
+ {
942
+ variant: tier.ctaVariant || (isPopular ? "cta" : "outline"),
943
+ size: "lg",
944
+ className: "w-full",
945
+ render: tier.ctaHref ? /* @__PURE__ */ jsx("a", { href: tier.ctaHref }) : void 0,
946
+ children: tier.ctaText
947
+ }
948
+ )
949
+ ]
950
+ },
951
+ tier.name
952
+ );
953
+ }) })
954
+ ] });
955
+ }
956
+ function Accordion({ className, ...props }) {
957
+ return /* @__PURE__ */ jsx(
958
+ Accordion$1.Root,
959
+ {
960
+ "data-slot": "accordion",
961
+ className: cn("flex w-full flex-col", className),
962
+ ...props
963
+ }
964
+ );
965
+ }
966
+ function AccordionItem({ className, ...props }) {
967
+ return /* @__PURE__ */ jsx(
968
+ Accordion$1.Item,
969
+ {
970
+ "data-slot": "accordion-item",
971
+ className: cn("border-brutal border-foreground rounded-lg mb-2 px-3", className),
972
+ ...props
973
+ }
974
+ );
975
+ }
976
+ function AccordionTrigger({
977
+ className,
978
+ children,
979
+ ...props
980
+ }) {
981
+ return /* @__PURE__ */ jsx(Accordion$1.Header, { className: "flex", children: /* @__PURE__ */ jsxs(
982
+ Accordion$1.Trigger,
983
+ {
984
+ "data-slot": "accordion-trigger",
985
+ className: cn(
986
+ "group/accordion-trigger relative flex flex-1 items-start justify-between rounded-lg border border-transparent py-2.5 text-left text-sm font-bold transition-all outline-none hover:underline focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 aria-disabled:pointer-events-none aria-disabled:opacity-50 **:data-[slot=accordion-trigger-icon]:ml-auto **:data-[slot=accordion-trigger-icon]:size-4 **:data-[slot=accordion-trigger-icon]:text-muted-foreground",
987
+ className
988
+ ),
989
+ ...props,
990
+ children: [
991
+ children,
992
+ /* @__PURE__ */ jsx(ChevronDownIcon, { "data-slot": "accordion-trigger-icon", className: "pointer-events-none shrink-0 group-aria-expanded/accordion-trigger:hidden" }),
993
+ /* @__PURE__ */ jsx(ChevronUpIcon, { "data-slot": "accordion-trigger-icon", className: "pointer-events-none hidden shrink-0 group-aria-expanded/accordion-trigger:inline" })
994
+ ]
995
+ }
996
+ ) });
997
+ }
998
+ function AccordionContent({
999
+ className,
1000
+ children,
1001
+ ...props
1002
+ }) {
1003
+ return /* @__PURE__ */ jsx(
1004
+ Accordion$1.Panel,
1005
+ {
1006
+ "data-slot": "accordion-content",
1007
+ className: "overflow-hidden text-sm data-open:animate-accordion-down data-closed:animate-accordion-up",
1008
+ ...props,
1009
+ children: /* @__PURE__ */ jsx(
1010
+ "div",
1011
+ {
1012
+ className: cn(
1013
+ "h-(--accordion-panel-height) pt-0 pb-2.5 data-ending-style:h-0 data-starting-style:h-0 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4",
1014
+ className
1015
+ ),
1016
+ children
1017
+ }
1018
+ )
1019
+ }
1020
+ );
1021
+ }
1022
+ function FAQ({
1023
+ badge,
1024
+ headline,
1025
+ items,
1026
+ color = "white",
1027
+ className
1028
+ }) {
1029
+ return /* @__PURE__ */ jsxs(BrutalSection, { color, className, children: [
1030
+ (headline || badge) && /* @__PURE__ */ jsxs("div", { className: "mb-10 max-w-2xl", children: [
1031
+ badge && /* @__PURE__ */ jsx("p", { className: "brutal-label mb-4 text-muted-foreground", children: badge }),
1032
+ headline && /* @__PURE__ */ jsx("h2", { className: "brutal-h2", children: headline })
1033
+ ] }),
1034
+ /* @__PURE__ */ jsx(Accordion, { className: "mx-auto max-w-2xl", children: items.map((item, i) => /* @__PURE__ */ jsxs(
1035
+ AccordionItem,
1036
+ {
1037
+ value: `faq-${i}`,
1038
+ className: cn(
1039
+ "border-brutal border-foreground mb-3 px-5",
1040
+ i % 2 === 0 ? "bg-background" : "bg-secondary"
1041
+ ),
1042
+ children: [
1043
+ /* @__PURE__ */ jsx(AccordionTrigger, { className: "brutal-h4 py-4 text-left", children: item.question }),
1044
+ /* @__PURE__ */ jsx(AccordionContent, { className: "brutal-body pb-4 text-muted-foreground", children: item.answer })
1045
+ ]
1046
+ },
1047
+ i
1048
+ )) })
1049
+ ] });
1050
+ }
1051
+ function CTAButtons({
1052
+ ctaText,
1053
+ ctaHref = "#",
1054
+ ctaVariant = "cta",
1055
+ secondaryText,
1056
+ secondaryHref
1057
+ }) {
1058
+ return /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center justify-center gap-4", children: [
1059
+ /* @__PURE__ */ jsx(
1060
+ Button,
1061
+ {
1062
+ variant: ctaVariant,
1063
+ size: "xl",
1064
+ render: /* @__PURE__ */ jsx("a", { href: ctaHref }),
1065
+ children: ctaText
1066
+ }
1067
+ ),
1068
+ secondaryText && /* @__PURE__ */ jsx(
1069
+ Button,
1070
+ {
1071
+ variant: "outline",
1072
+ size: "lg",
1073
+ render: /* @__PURE__ */ jsx("a", { href: secondaryHref || "#" }),
1074
+ children: secondaryText
1075
+ }
1076
+ )
1077
+ ] });
1078
+ }
1079
+ function CenteredCTA(props) {
1080
+ return /* @__PURE__ */ jsxs("div", { className: "mx-auto max-w-2xl text-center", children: [
1081
+ /* @__PURE__ */ jsx("h2", { className: "brutal-h1 mb-6", children: props.headline }),
1082
+ props.description && /* @__PURE__ */ jsx("p", { className: "brutal-body mb-4 opacity-80", children: props.description }),
1083
+ props.stats && /* @__PURE__ */ jsx("p", { className: "brutal-label mb-8 opacity-60", children: props.stats }),
1084
+ /* @__PURE__ */ jsx(
1085
+ CTAButtons,
1086
+ {
1087
+ ctaText: props.ctaText,
1088
+ ctaHref: props.ctaHref,
1089
+ ctaVariant: props.ctaVariant,
1090
+ secondaryText: props.secondaryText,
1091
+ secondaryHref: props.secondaryHref
1092
+ }
1093
+ )
1094
+ ] });
1095
+ }
1096
+ function SplitCTA(props) {
1097
+ return /* @__PURE__ */ jsxs("div", { className: "grid items-center gap-12 lg:grid-cols-2", children: [
1098
+ /* @__PURE__ */ jsxs("div", { children: [
1099
+ /* @__PURE__ */ jsx("h2", { className: "brutal-h1 mb-6", children: props.headline }),
1100
+ props.description && /* @__PURE__ */ jsx("p", { className: "brutal-body mb-4 opacity-80", children: props.description }),
1101
+ props.stats && /* @__PURE__ */ jsx("p", { className: "brutal-label mb-8 opacity-60", children: props.stats }),
1102
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-4", children: [
1103
+ /* @__PURE__ */ jsx(
1104
+ Button,
1105
+ {
1106
+ variant: props.ctaVariant || "cta",
1107
+ size: "xl",
1108
+ render: /* @__PURE__ */ jsx("a", { href: props.ctaHref || "#" }),
1109
+ children: props.ctaText
1110
+ }
1111
+ ),
1112
+ props.secondaryText && /* @__PURE__ */ jsx(
1113
+ Button,
1114
+ {
1115
+ variant: "outline",
1116
+ size: "lg",
1117
+ render: /* @__PURE__ */ jsx("a", { href: props.secondaryHref || "#" }),
1118
+ children: props.secondaryText
1119
+ }
1120
+ )
1121
+ ] })
1122
+ ] }),
1123
+ props.visual && /* @__PURE__ */ jsx("div", { children: props.visual })
1124
+ ] });
1125
+ }
1126
+ function WithVisualCTA(props) {
1127
+ return /* @__PURE__ */ jsxs("div", { className: "relative", children: [
1128
+ props.visual && /* @__PURE__ */ jsx("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center opacity-10", children: props.visual }),
1129
+ /* @__PURE__ */ jsxs("div", { className: "relative mx-auto max-w-2xl text-center", children: [
1130
+ /* @__PURE__ */ jsx("h2", { className: "brutal-h1 mb-6", children: props.headline }),
1131
+ props.description && /* @__PURE__ */ jsx("p", { className: "brutal-body mb-4 opacity-80", children: props.description }),
1132
+ props.stats && /* @__PURE__ */ jsx("p", { className: "brutal-label mb-8 opacity-60", children: props.stats }),
1133
+ /* @__PURE__ */ jsx(
1134
+ CTAButtons,
1135
+ {
1136
+ ctaText: props.ctaText,
1137
+ ctaHref: props.ctaHref,
1138
+ ctaVariant: props.ctaVariant,
1139
+ secondaryText: props.secondaryText,
1140
+ secondaryHref: props.secondaryHref
1141
+ }
1142
+ )
1143
+ ] })
1144
+ ] });
1145
+ }
1146
+ function FloatingCardCTA(props) {
1147
+ return /* @__PURE__ */ jsx("div", { className: "relative z-10 -mt-16", children: /* @__PURE__ */ jsxs("div", { className: "mx-auto max-w-2xl border-brutal border-foreground bg-background p-8 text-center text-foreground shadow-brutal-lg", children: [
1148
+ /* @__PURE__ */ jsx("h2", { className: "brutal-h1 mb-6", children: props.headline }),
1149
+ props.description && /* @__PURE__ */ jsx("p", { className: "brutal-body mb-4 opacity-80", children: props.description }),
1150
+ props.stats && /* @__PURE__ */ jsx("p", { className: "brutal-label mb-8 opacity-60", children: props.stats }),
1151
+ /* @__PURE__ */ jsx(
1152
+ CTAButtons,
1153
+ {
1154
+ ctaText: props.ctaText,
1155
+ ctaHref: props.ctaHref,
1156
+ ctaVariant: props.ctaVariant,
1157
+ secondaryText: props.secondaryText,
1158
+ secondaryHref: props.secondaryHref
1159
+ }
1160
+ )
1161
+ ] }) });
1162
+ }
1163
+ function BrutalCTA({
1164
+ variant = "centered",
1165
+ color = "black",
1166
+ className,
1167
+ pattern,
1168
+ ...props
1169
+ }) {
1170
+ if (variant === "floating-card") {
1171
+ return /* @__PURE__ */ jsx("div", { className: cn("brutal-container px-6", className), children: /* @__PURE__ */ jsx(FloatingCardCTA, { ...props, variant, color }) });
1172
+ }
1173
+ return /* @__PURE__ */ jsxs(BrutalSection, { color, pattern, className, children: [
1174
+ variant === "centered" && /* @__PURE__ */ jsx(CenteredCTA, { ...props, variant, color }),
1175
+ variant === "split" && /* @__PURE__ */ jsx(SplitCTA, { ...props, variant, color }),
1176
+ variant === "with-visual" && /* @__PURE__ */ jsx(WithVisualCTA, { ...props, variant, color })
1177
+ ] });
1178
+ }
1179
+ function Input({ className, type, ...props }) {
1180
+ return /* @__PURE__ */ jsx(
1181
+ Input$1,
1182
+ {
1183
+ type,
1184
+ "data-slot": "input",
1185
+ className: cn(
1186
+ "h-10 w-full min-w-0 rounded-lg border-brutal border-foreground bg-background px-3 py-2 text-base font-medium shadow-brutal-sm transition-all outline-none placeholder:text-muted-foreground focus:shadow-brutal focus:-translate-x-0.5 focus:-translate-y-0.5 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive md:text-sm",
1187
+ className
1188
+ ),
1189
+ ...props
1190
+ }
1191
+ );
1192
+ }
1193
+ function SocialsRow({
1194
+ socials
1195
+ }) {
1196
+ const items = [
1197
+ { key: "twitter", label: "Twitter", url: socials.twitter },
1198
+ { key: "github", label: "GitHub", url: socials.github },
1199
+ { key: "linkedin", label: "LinkedIn", url: socials.linkedin },
1200
+ { key: "discord", label: "Discord", url: socials.discord }
1201
+ ].filter((s) => s.url);
1202
+ if (items.length === 0) return null;
1203
+ return /* @__PURE__ */ jsx("div", { className: "flex items-center gap-4", children: items.map((s) => /* @__PURE__ */ jsx(
1204
+ "a",
1205
+ {
1206
+ href: s.url,
1207
+ target: "_blank",
1208
+ rel: "noopener noreferrer",
1209
+ className: "text-sm font-bold transition-colors hover:text-muted-foreground",
1210
+ children: s.label
1211
+ },
1212
+ s.key
1213
+ )) });
1214
+ }
1215
+ function NewsletterSection({
1216
+ newsletter
1217
+ }) {
1218
+ return /* @__PURE__ */ jsx("div", { className: "mb-10 border-b-brutal border-foreground pb-10", children: /* @__PURE__ */ jsxs("div", { className: "mx-auto max-w-lg text-center", children: [
1219
+ /* @__PURE__ */ jsx("h3", { className: "brutal-h4 mb-2", children: newsletter.headline || "Stay in the loop" }),
1220
+ newsletter.description && /* @__PURE__ */ jsx("p", { className: "brutal-caption mb-4", children: newsletter.description }),
1221
+ /* @__PURE__ */ jsxs(
1222
+ "form",
1223
+ {
1224
+ onSubmit: (e) => e.preventDefault(),
1225
+ className: "flex gap-2",
1226
+ children: [
1227
+ /* @__PURE__ */ jsx(
1228
+ Input,
1229
+ {
1230
+ type: "email",
1231
+ placeholder: newsletter.placeholder || "you@email.com",
1232
+ className: "flex-1"
1233
+ }
1234
+ ),
1235
+ /* @__PURE__ */ jsx(Button, { variant: "default", size: "default", type: "submit", children: newsletter.buttonText || "Subscribe" })
1236
+ ]
1237
+ }
1238
+ )
1239
+ ] }) });
1240
+ }
1241
+ function MegaContent({
1242
+ logo,
1243
+ tagline,
1244
+ columns,
1245
+ socials
1246
+ }) {
1247
+ return /* @__PURE__ */ jsxs("div", { className: "mb-10 flex flex-col gap-8 sm:flex-row sm:items-start sm:justify-between", children: [
1248
+ /* @__PURE__ */ jsxs("div", { className: "max-w-xs", children: [
1249
+ /* @__PURE__ */ jsx("div", { className: "mb-2 text-xl font-black", children: logo }),
1250
+ tagline && /* @__PURE__ */ jsx("p", { className: "mb-4 text-sm text-muted-foreground", children: tagline }),
1251
+ socials && /* @__PURE__ */ jsx(SocialsRow, { socials })
1252
+ ] }),
1253
+ /* @__PURE__ */ jsx("div", { className: "grid grid-cols-2 gap-8 sm:grid-cols-3 md:gap-12", children: columns.map((col) => /* @__PURE__ */ jsxs("div", { children: [
1254
+ /* @__PURE__ */ jsx("h3", { className: "brutal-label mb-3 text-muted-foreground", children: col.title }),
1255
+ /* @__PURE__ */ jsx("ul", { className: "flex flex-col gap-2", children: col.links.map((link) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
1256
+ "a",
1257
+ {
1258
+ href: link.href,
1259
+ className: "text-sm font-medium transition-colors hover:text-muted-foreground",
1260
+ children: link.label
1261
+ }
1262
+ ) }, link.href)) })
1263
+ ] }, col.title)) })
1264
+ ] });
1265
+ }
1266
+ function MinimalContent({
1267
+ logo,
1268
+ columns,
1269
+ socials
1270
+ }) {
1271
+ const allLinks = columns.flatMap((col) => col.links);
1272
+ return /* @__PURE__ */ jsxs("div", { className: "mb-6 flex flex-col items-center gap-4 sm:flex-row sm:justify-between", children: [
1273
+ /* @__PURE__ */ jsx("div", { className: "text-xl font-black", children: logo }),
1274
+ /* @__PURE__ */ jsx("nav", { className: "flex flex-wrap items-center justify-center gap-x-6 gap-y-2", children: allLinks.map((link) => /* @__PURE__ */ jsx(
1275
+ "a",
1276
+ {
1277
+ href: link.href,
1278
+ className: "text-sm font-medium transition-colors hover:text-muted-foreground",
1279
+ children: link.label
1280
+ },
1281
+ link.href
1282
+ )) }),
1283
+ socials && /* @__PURE__ */ jsx(SocialsRow, { socials })
1284
+ ] });
1285
+ }
1286
+ function BrutalFooter({
1287
+ logo,
1288
+ tagline,
1289
+ columns,
1290
+ bottomLeft,
1291
+ bottomRight,
1292
+ variant = "mega",
1293
+ socials,
1294
+ newsletter,
1295
+ className
1296
+ }) {
1297
+ return /* @__PURE__ */ jsx(
1298
+ "footer",
1299
+ {
1300
+ className: cn(
1301
+ "w-full border-t-4 bg-background px-6 py-12 text-foreground",
1302
+ className
1303
+ ),
1304
+ style: { borderTopColor: "hsl(var(--brand))" },
1305
+ children: /* @__PURE__ */ jsxs("div", { className: "brutal-container", children: [
1306
+ variant === "newsletter" && newsletter && /* @__PURE__ */ jsx(NewsletterSection, { newsletter }),
1307
+ variant === "minimal" ? /* @__PURE__ */ jsx(MinimalContent, { logo, columns, socials }) : /* @__PURE__ */ jsx(
1308
+ MegaContent,
1309
+ {
1310
+ logo,
1311
+ tagline,
1312
+ columns,
1313
+ socials
1314
+ }
1315
+ ),
1316
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between border-t-brutal border-foreground pt-6 font-mono text-xs uppercase tracking-widest text-muted-foreground", children: [
1317
+ /* @__PURE__ */ jsx("span", { children: bottomLeft || "Built with care" }),
1318
+ /* @__PURE__ */ jsx("span", { children: bottomRight || (/* @__PURE__ */ new Date()).getFullYear() })
1319
+ ] })
1320
+ ] })
1321
+ }
1322
+ );
1323
+ }
1324
+ function SaaSLaunchTemplate({
1325
+ brand,
1326
+ logo,
1327
+ nav,
1328
+ hero,
1329
+ logos,
1330
+ features,
1331
+ stats,
1332
+ testimonials,
1333
+ pricing,
1334
+ faq,
1335
+ cta,
1336
+ footer
1337
+ }) {
1338
+ return /* @__PURE__ */ jsxs("div", { children: [
1339
+ /* @__PURE__ */ jsx(BrutalNav, { logo, links: nav.links, ctaText: nav.ctaText, ctaHref: nav.ctaHref, variant: "solid" }),
1340
+ /* @__PURE__ */ jsx(
1341
+ BrutalHero,
1342
+ {
1343
+ variant: "split",
1344
+ badge: hero.badge,
1345
+ headline: hero.headline,
1346
+ description: hero.description,
1347
+ ctaText: hero.ctaText,
1348
+ ctaHref: hero.ctaHref,
1349
+ secondaryText: hero.secondaryText,
1350
+ secondaryHref: hero.secondaryHref,
1351
+ visual: hero.visual,
1352
+ proof: hero.proof,
1353
+ color: "brand",
1354
+ pattern: "noise"
1355
+ }
1356
+ ),
1357
+ /* @__PURE__ */ jsx(SectionDivider, { from: "hsl(var(--brand))", to: "hsl(var(--background))", variant: "wave" }),
1358
+ logos && logos.length > 0 && /* @__PURE__ */ jsx(LogoCloud, { logos, marquee: true, title: "Trusted by teams everywhere" }),
1359
+ /* @__PURE__ */ jsx(
1360
+ BrutalFeatureGrid,
1361
+ {
1362
+ variant: "bento",
1363
+ badge: features.badge,
1364
+ headline: features.headline,
1365
+ description: features.description,
1366
+ features: features.items,
1367
+ color: "white"
1368
+ }
1369
+ ),
1370
+ stats && stats.length > 0 && /* @__PURE__ */ jsx(StatsBar, { stats, color: "brand" }),
1371
+ /* @__PURE__ */ jsx(SectionDivider, { from: "hsl(var(--brand))", to: "hsl(var(--section-blue))", variant: "torn-paper" }),
1372
+ /* @__PURE__ */ jsx(
1373
+ BrutalTestimonials,
1374
+ {
1375
+ variant: "wall-of-love",
1376
+ badge: testimonials.badge,
1377
+ headline: testimonials.headline,
1378
+ testimonials: testimonials.items,
1379
+ color: "blue"
1380
+ }
1381
+ ),
1382
+ /* @__PURE__ */ jsx(SectionDivider, { from: "hsl(var(--section-blue))", to: "hsl(var(--background))", variant: "wave" }),
1383
+ pricing && /* @__PURE__ */ jsx(
1384
+ PricingTable,
1385
+ {
1386
+ badge: pricing.badge,
1387
+ headline: pricing.headline,
1388
+ description: pricing.description,
1389
+ tiers: pricing.tiers,
1390
+ popularIndex: pricing.popularIndex,
1391
+ color: "white"
1392
+ }
1393
+ ),
1394
+ faq && faq.length > 0 && /* @__PURE__ */ jsx(FAQ, { badge: "FAQ", headline: "Common Questions", items: faq, color: "gray" }),
1395
+ /* @__PURE__ */ jsx(
1396
+ BrutalCTA,
1397
+ {
1398
+ variant: "with-visual",
1399
+ headline: cta.headline,
1400
+ description: cta.description,
1401
+ ctaText: cta.ctaText,
1402
+ ctaHref: cta.ctaHref,
1403
+ secondaryText: cta.secondaryText,
1404
+ secondaryHref: cta.secondaryHref,
1405
+ color: "black",
1406
+ pattern: "gradient-mesh"
1407
+ }
1408
+ ),
1409
+ /* @__PURE__ */ jsx(
1410
+ BrutalFooter,
1411
+ {
1412
+ variant: "mega",
1413
+ logo,
1414
+ tagline: footer.tagline,
1415
+ columns: footer.columns,
1416
+ socials: footer.socials
1417
+ }
1418
+ )
1419
+ ] });
1420
+ }
1421
+
1422
+ export { SaaSLaunchTemplate };
1423
+ //# sourceMappingURL=saas-launch.js.map
1424
+ //# sourceMappingURL=saas-launch.js.map