@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,1129 @@
1
+ "use client";
2
+ import { useState, useEffect } 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, Fragment } from 'react/jsx-runtime';
8
+ import { Dialog } from '@base-ui/react/dialog';
9
+ import { Menu, XIcon } from 'lucide-react';
10
+ import { Input as Input$1 } from '@base-ui/react/input';
11
+
12
+ // src/components/brutal/nav.tsx
13
+ function cn(...inputs) {
14
+ return twMerge(clsx(inputs));
15
+ }
16
+ var buttonVariants = cva(
17
+ "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",
18
+ {
19
+ variants: {
20
+ variant: {
21
+ // Primary: Black bg, white text, offset shadow
22
+ 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",
23
+ // CTA: Mint green bg — the Bannerbear signature
24
+ 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",
25
+ // Brand: Dynamic brand color bg
26
+ 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",
27
+ // Outline: White bg, black border, offset shadow
28
+ 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",
29
+ // Secondary: Light bg, border, smaller shadow
30
+ 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",
31
+ // Ghost: No border/shadow, subtle hover
32
+ ghost: "hover:bg-secondary hover:text-foreground",
33
+ // Link: Text only
34
+ link: "text-foreground underline-offset-4 hover:underline",
35
+ // Destructive
36
+ 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",
37
+ // Nav: Thin border, no shadow (for nav Sign In buttons)
38
+ nav: "border border-foreground bg-background text-foreground hover:bg-foreground hover:text-background"
39
+ },
40
+ size: {
41
+ xs: "h-7 gap-1 px-2.5 text-xs",
42
+ sm: "h-8 gap-1.5 px-3 text-sm",
43
+ default: "h-10 gap-2 px-5 text-sm",
44
+ lg: "h-12 gap-2 px-7 text-base",
45
+ xl: "h-14 gap-2.5 px-9 text-lg",
46
+ icon: "size-10",
47
+ "icon-sm": "size-8",
48
+ "icon-lg": "size-12"
49
+ }
50
+ },
51
+ defaultVariants: {
52
+ variant: "default",
53
+ size: "default"
54
+ }
55
+ }
56
+ );
57
+ function Button({
58
+ className,
59
+ variant = "default",
60
+ size = "default",
61
+ ...props
62
+ }) {
63
+ return /* @__PURE__ */ jsx(
64
+ Button$1,
65
+ {
66
+ "data-slot": "button",
67
+ className: cn(buttonVariants({ variant, size, className })),
68
+ ...props
69
+ }
70
+ );
71
+ }
72
+ function Sheet({ ...props }) {
73
+ return /* @__PURE__ */ jsx(Dialog.Root, { "data-slot": "sheet", ...props });
74
+ }
75
+ function SheetTrigger({ ...props }) {
76
+ return /* @__PURE__ */ jsx(Dialog.Trigger, { "data-slot": "sheet-trigger", ...props });
77
+ }
78
+ function SheetPortal({ ...props }) {
79
+ return /* @__PURE__ */ jsx(Dialog.Portal, { "data-slot": "sheet-portal", ...props });
80
+ }
81
+ function SheetOverlay({ className, ...props }) {
82
+ return /* @__PURE__ */ jsx(
83
+ Dialog.Backdrop,
84
+ {
85
+ "data-slot": "sheet-overlay",
86
+ className: cn(
87
+ "fixed inset-0 z-50 bg-black/60 transition-opacity duration-150 data-ending-style:opacity-0 data-starting-style:opacity-0",
88
+ className
89
+ ),
90
+ ...props
91
+ }
92
+ );
93
+ }
94
+ function SheetContent({
95
+ className,
96
+ children,
97
+ side = "right",
98
+ showCloseButton = true,
99
+ ...props
100
+ }) {
101
+ return /* @__PURE__ */ jsxs(SheetPortal, { children: [
102
+ /* @__PURE__ */ jsx(SheetOverlay, {}),
103
+ /* @__PURE__ */ jsxs(
104
+ Dialog.Popup,
105
+ {
106
+ "data-slot": "sheet-content",
107
+ "data-side": side,
108
+ className: cn(
109
+ "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",
110
+ className
111
+ ),
112
+ ...props,
113
+ children: [
114
+ children,
115
+ showCloseButton && /* @__PURE__ */ jsxs(
116
+ Dialog.Close,
117
+ {
118
+ "data-slot": "sheet-close",
119
+ render: /* @__PURE__ */ jsx(
120
+ Button,
121
+ {
122
+ variant: "ghost",
123
+ className: "absolute top-3 right-3",
124
+ size: "icon-sm"
125
+ }
126
+ ),
127
+ children: [
128
+ /* @__PURE__ */ jsx(
129
+ XIcon,
130
+ {}
131
+ ),
132
+ /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
133
+ ]
134
+ }
135
+ )
136
+ ]
137
+ }
138
+ )
139
+ ] });
140
+ }
141
+ function SheetTitle({ className, ...props }) {
142
+ return /* @__PURE__ */ jsx(
143
+ Dialog.Title,
144
+ {
145
+ "data-slot": "sheet-title",
146
+ className: cn("text-base font-bold text-foreground", className),
147
+ ...props
148
+ }
149
+ );
150
+ }
151
+ function BrutalNav({
152
+ logo,
153
+ links,
154
+ ctaText = "Sign In",
155
+ ctaHref = "/admin",
156
+ variant = "solid",
157
+ className
158
+ }) {
159
+ const [mobileOpen, setMobileOpen] = useState(false);
160
+ const [isScrolled, setIsScrolled] = useState(false);
161
+ useEffect(() => {
162
+ if (variant !== "transparent") return;
163
+ const onScroll = () => setIsScrolled(window.scrollY > 20);
164
+ onScroll();
165
+ window.addEventListener("scroll", onScroll, { passive: true });
166
+ return () => window.removeEventListener("scroll", onScroll);
167
+ }, [variant]);
168
+ const variantStyles = {
169
+ solid: "sticky top-0 z-50 w-full border-b-brutal border-foreground bg-brand",
170
+ transparent: cn(
171
+ "fixed top-0 left-0 right-0 z-50 w-full transition-all duration-200",
172
+ isScrolled ? "bg-background/80 text-foreground backdrop-blur-md border-b border-foreground/10" : "bg-transparent text-white"
173
+ ),
174
+ "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"
175
+ };
176
+ return /* @__PURE__ */ jsx("header", { className: cn(variantStyles[variant], className), children: /* @__PURE__ */ jsxs(
177
+ "div",
178
+ {
179
+ className: cn(
180
+ "flex h-14 items-center justify-between px-6",
181
+ variant === "floating-pill" ? "mx-auto max-w-7xl" : "brutal-container"
182
+ ),
183
+ children: [
184
+ /* @__PURE__ */ jsx("a", { href: "/", className: "flex items-center gap-2 text-lg font-black", children: logo }),
185
+ /* @__PURE__ */ jsx("nav", { className: "hidden items-center gap-1 md:flex", children: links.map((link) => /* @__PURE__ */ jsxs(
186
+ "a",
187
+ {
188
+ href: link.href,
189
+ className: cn(
190
+ "relative rounded-md px-3 py-1.5 text-sm font-bold transition-colors hover:opacity-70",
191
+ link.active && "bg-foreground/10"
192
+ ),
193
+ children: [
194
+ link.label,
195
+ 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 })
196
+ ]
197
+ },
198
+ link.href
199
+ )) }),
200
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
201
+ /* @__PURE__ */ jsx(
202
+ Button,
203
+ {
204
+ variant: "nav",
205
+ size: "sm",
206
+ render: /* @__PURE__ */ jsx("a", { href: ctaHref }),
207
+ className: "hidden md:inline-flex",
208
+ children: ctaText
209
+ }
210
+ ),
211
+ /* @__PURE__ */ jsxs(Sheet, { open: mobileOpen, onOpenChange: setMobileOpen, children: [
212
+ /* @__PURE__ */ jsxs(
213
+ SheetTrigger,
214
+ {
215
+ render: /* @__PURE__ */ jsx(Button, { variant: "ghost", size: "icon-sm", className: "md:hidden" }),
216
+ children: [
217
+ /* @__PURE__ */ jsx(Menu, { className: "size-5" }),
218
+ /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Menu" })
219
+ ]
220
+ }
221
+ ),
222
+ /* @__PURE__ */ jsxs(SheetContent, { side: "right", showCloseButton: true, children: [
223
+ /* @__PURE__ */ jsx(SheetTitle, { children: "Navigation" }),
224
+ /* @__PURE__ */ jsxs("nav", { className: "flex flex-col gap-1 px-2 pt-4", children: [
225
+ links.map((link) => /* @__PURE__ */ jsxs(
226
+ "a",
227
+ {
228
+ href: link.href,
229
+ onClick: () => setMobileOpen(false),
230
+ className: cn(
231
+ "flex items-center gap-2 rounded-md px-3 py-2.5 text-sm font-bold transition-colors hover:bg-foreground/5",
232
+ link.active && "bg-foreground/10"
233
+ ),
234
+ children: [
235
+ link.label,
236
+ 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 })
237
+ ]
238
+ },
239
+ link.href
240
+ )),
241
+ /* @__PURE__ */ jsx("div", { className: "mt-4 border-t border-foreground/10 pt-4", children: /* @__PURE__ */ jsx(
242
+ Button,
243
+ {
244
+ variant: "default",
245
+ size: "default",
246
+ render: /* @__PURE__ */ jsx("a", { href: ctaHref }),
247
+ className: "w-full",
248
+ children: ctaText
249
+ }
250
+ ) })
251
+ ] })
252
+ ] })
253
+ ] })
254
+ ] })
255
+ ]
256
+ }
257
+ ) });
258
+ }
259
+ var colorMap = {
260
+ white: "bg-background text-foreground",
261
+ brand: "bg-brand",
262
+ "brand-muted": "bg-brand-muted text-foreground",
263
+ blue: "bg-section-blue",
264
+ gray: "bg-section-gray text-foreground",
265
+ cream: "bg-section-cream text-foreground",
266
+ black: "bg-foreground text-background",
267
+ cta: "bg-cta"
268
+ };
269
+ var containerMap = {
270
+ sm: "brutal-container-sm",
271
+ default: "brutal-container",
272
+ lg: "brutal-container-lg"
273
+ };
274
+ var paddingMap = {
275
+ sm: "brutal-section-sm",
276
+ default: "brutal-section",
277
+ lg: "brutal-section py-28 sm:py-36 md:py-44"
278
+ };
279
+ var patternMap = {
280
+ dots: "brutal-dots",
281
+ stripes: "brutal-stripes",
282
+ noise: "brutal-noise",
283
+ grain: "brutal-grain",
284
+ crosshatch: "brutal-crosshatch",
285
+ "grid-dots": "brutal-grid-dots",
286
+ "gradient-mesh": "brutal-gradient-mesh",
287
+ none: ""
288
+ };
289
+ function BrutalSection({
290
+ children,
291
+ color = "white",
292
+ className,
293
+ containerSize = "default",
294
+ padding = "default",
295
+ pattern,
296
+ dots = false,
297
+ stripes = false,
298
+ id
299
+ }) {
300
+ const resolvedPattern = pattern ?? (dots ? "dots" : void 0) ?? (stripes ? "stripes" : void 0) ?? "none";
301
+ return /* @__PURE__ */ jsx(
302
+ "section",
303
+ {
304
+ id,
305
+ className: cn(
306
+ paddingMap[padding],
307
+ colorMap[color],
308
+ patternMap[resolvedPattern],
309
+ className
310
+ ),
311
+ children: /* @__PURE__ */ jsx("div", { className: containerMap[containerSize], children })
312
+ }
313
+ );
314
+ }
315
+ function BrutalHero({
316
+ variant = "split",
317
+ badge,
318
+ badgePosition = "above",
319
+ headline,
320
+ description,
321
+ ctaText,
322
+ ctaHref = "#",
323
+ ctaVariant = "cta",
324
+ secondaryText,
325
+ secondaryHref,
326
+ visual,
327
+ color = "brand",
328
+ pattern,
329
+ proof,
330
+ className
331
+ }) {
332
+ const badgeElement = badge && /* @__PURE__ */ jsx(
333
+ "div",
334
+ {
335
+ className: cn(
336
+ "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",
337
+ badgePosition === "floating" && "absolute -top-3 left-6 z-10"
338
+ ),
339
+ children: badge
340
+ }
341
+ );
342
+ const textContent = /* @__PURE__ */ jsxs("div", { className: cn(
343
+ "flex flex-col gap-6",
344
+ variant === "centered" && "items-center text-center"
345
+ ), children: [
346
+ badgePosition === "above" && badgeElement,
347
+ /* @__PURE__ */ jsxs("h1", { className: cn(
348
+ "brutal-display text-balance",
349
+ variant === "centered" && "mx-auto max-w-4xl"
350
+ ), children: [
351
+ badgePosition === "inline" && badgeElement,
352
+ headline
353
+ ] }),
354
+ /* @__PURE__ */ jsx("p", { className: cn(
355
+ "brutal-body-lg max-w-lg opacity-80",
356
+ variant === "centered" && "mx-auto"
357
+ ), children: description }),
358
+ /* @__PURE__ */ jsxs("div", { className: cn(
359
+ "flex flex-wrap gap-4",
360
+ variant === "centered" && "justify-center"
361
+ ), children: [
362
+ /* @__PURE__ */ jsx(Button, { variant: ctaVariant, size: "xl", render: /* @__PURE__ */ jsx("a", { href: ctaHref }), children: ctaText }),
363
+ secondaryText && /* @__PURE__ */ jsx(Button, { variant: "outline", size: "xl", render: /* @__PURE__ */ jsx("a", { href: secondaryHref || "#" }), children: secondaryText })
364
+ ] }),
365
+ proof && /* @__PURE__ */ jsxs("p", { className: "flex items-center gap-2 text-sm font-medium opacity-70", children: [
366
+ /* @__PURE__ */ jsx("span", { className: "inline-flex size-5 items-center justify-center border border-current text-xs", children: "\u2713" }),
367
+ proof
368
+ ] })
369
+ ] });
370
+ const layoutClass = {
371
+ split: "grid items-center gap-12 lg:grid-cols-2 lg:gap-16",
372
+ centered: "flex flex-col items-center gap-12",
373
+ overlap: "relative",
374
+ asymmetric: "grid items-center gap-12 lg:grid-cols-[3fr_2fr] lg:gap-16"
375
+ }[variant];
376
+ return /* @__PURE__ */ jsxs(BrutalSection, { color, padding: "lg", pattern, className: cn("relative", className), children: [
377
+ badgePosition === "floating" && badgeElement,
378
+ /* @__PURE__ */ jsxs("div", { className: layoutClass, children: [
379
+ textContent,
380
+ 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(
381
+ "flex items-center justify-center",
382
+ variant === "asymmetric" && "-rotate-2 transform"
383
+ ), children: visual }) : null
384
+ ] })
385
+ ] });
386
+ }
387
+ var paths = {
388
+ wave: "M0,64 C160,128 320,0 480,64 C640,128 800,0 960,64 L960,160 L0,160 Z",
389
+ 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",
390
+ curve: "M0,128 Q480,-32 960,128 L960,160 L0,160 Z",
391
+ 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",
392
+ "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",
393
+ "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",
394
+ geometric: "M0,100 L120,60 L240,80 L360,40 L480,90 L600,50 L720,70 L840,30 L960,80 L960,160 L0,160 Z",
395
+ 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",
396
+ diagonal: "M0,160 L960,60 L960,160 Z",
397
+ 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",
398
+ "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"
399
+ };
400
+ function SectionDivider({
401
+ from = "hsl(var(--background))",
402
+ to = "hsl(var(--background))",
403
+ flip = false,
404
+ className = "",
405
+ variant = "wave",
406
+ layers = false
407
+ }) {
408
+ return /* @__PURE__ */ jsxs(
409
+ "div",
410
+ {
411
+ className: cn("relative -my-px w-full overflow-hidden", className),
412
+ style: { backgroundColor: from },
413
+ children: [
414
+ layers && /* @__PURE__ */ jsx(
415
+ "svg",
416
+ {
417
+ viewBox: "0 0 960 160",
418
+ preserveAspectRatio: "none",
419
+ className: "absolute inset-0 block w-full opacity-30",
420
+ style: {
421
+ height: "clamp(40px, 6vw, 80px)",
422
+ transform: flip ? "scaleY(-1) translateY(4px)" : "translateY(-4px)"
423
+ },
424
+ children: /* @__PURE__ */ jsx("path", { d: paths[variant], fill: to })
425
+ }
426
+ ),
427
+ /* @__PURE__ */ jsx(
428
+ "svg",
429
+ {
430
+ viewBox: "0 0 960 160",
431
+ preserveAspectRatio: "none",
432
+ className: "relative block w-full",
433
+ style: {
434
+ height: "clamp(40px, 6vw, 80px)",
435
+ transform: flip ? "scaleY(-1)" : void 0
436
+ },
437
+ children: /* @__PURE__ */ jsx("path", { d: paths[variant], fill: to })
438
+ }
439
+ )
440
+ ]
441
+ }
442
+ );
443
+ }
444
+ function Card({
445
+ className,
446
+ ...props
447
+ }) {
448
+ return /* @__PURE__ */ jsx(
449
+ "div",
450
+ {
451
+ "data-slot": "card",
452
+ className: cn(
453
+ "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",
454
+ className
455
+ ),
456
+ ...props
457
+ }
458
+ );
459
+ }
460
+ function CardHeader({ className, ...props }) {
461
+ return /* @__PURE__ */ jsx(
462
+ "div",
463
+ {
464
+ "data-slot": "card-header",
465
+ className: cn("flex flex-col gap-1", className),
466
+ ...props
467
+ }
468
+ );
469
+ }
470
+ function CardTitle({ className, ...props }) {
471
+ return /* @__PURE__ */ jsx(
472
+ "div",
473
+ {
474
+ "data-slot": "card-title",
475
+ className: cn("text-lg font-bold leading-snug", className),
476
+ ...props
477
+ }
478
+ );
479
+ }
480
+ function CardDescription({ className, ...props }) {
481
+ return /* @__PURE__ */ jsx(
482
+ "div",
483
+ {
484
+ "data-slot": "card-description",
485
+ className: cn("text-sm text-muted-foreground", className),
486
+ ...props
487
+ }
488
+ );
489
+ }
490
+ function CardContent({ className, ...props }) {
491
+ return /* @__PURE__ */ jsx(
492
+ "div",
493
+ {
494
+ "data-slot": "card-content",
495
+ className: cn("", className),
496
+ ...props
497
+ }
498
+ );
499
+ }
500
+ var accentColors = [
501
+ "hsl(var(--brand))",
502
+ "hsl(var(--cta))",
503
+ "hsl(var(--section-blue))",
504
+ "hsl(12 85% 62%)",
505
+ "hsl(260 55% 68%)",
506
+ "hsl(25 75% 48%)"
507
+ ];
508
+ var colMap = {
509
+ 2: "sm:grid-cols-2",
510
+ 3: "sm:grid-cols-2 lg:grid-cols-3",
511
+ 4: "sm:grid-cols-2 lg:grid-cols-4"
512
+ };
513
+ function BrutalFeatureGrid({
514
+ variant = "icon-top",
515
+ badge,
516
+ headline,
517
+ description,
518
+ features,
519
+ columns = 3,
520
+ color = "white",
521
+ className
522
+ }) {
523
+ return /* @__PURE__ */ jsxs(BrutalSection, { color, className, children: [
524
+ /* @__PURE__ */ jsxs("div", { className: "mb-12 max-w-2xl", children: [
525
+ badge && /* @__PURE__ */ jsx("p", { className: "brutal-label mb-4 text-muted-foreground", children: badge }),
526
+ /* @__PURE__ */ jsx("h2", { className: "brutal-h2 mb-4", children: headline }),
527
+ description && /* @__PURE__ */ jsx("p", { className: "brutal-body text-muted-foreground", children: description })
528
+ ] }),
529
+ /* @__PURE__ */ jsx(
530
+ "div",
531
+ {
532
+ className: cn(
533
+ "grid gap-6",
534
+ variant === "bento" ? "sm:grid-cols-2 lg:grid-cols-3" : colMap[columns]
535
+ ),
536
+ children: features.map((feature, i) => /* @__PURE__ */ jsx(
537
+ FeatureCard,
538
+ {
539
+ feature,
540
+ variant,
541
+ index: i,
542
+ accentColor: accentColors[i % accentColors.length]
543
+ },
544
+ feature.title
545
+ ))
546
+ }
547
+ )
548
+ ] });
549
+ }
550
+ function FeatureCard({
551
+ feature,
552
+ variant,
553
+ index,
554
+ accentColor
555
+ }) {
556
+ const isBentoFeatured = variant === "bento" && feature.featured;
557
+ if (variant === "icon-left") {
558
+ return /* @__PURE__ */ jsxs(
559
+ "div",
560
+ {
561
+ 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",
562
+ style: { borderLeftColor: accentColor, borderLeftWidth: "4px" },
563
+ children: [
564
+ 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 }),
565
+ /* @__PURE__ */ jsxs("div", { children: [
566
+ feature.stat && /* @__PURE__ */ jsx("p", { className: "brutal-label mb-1 text-brand", children: feature.stat }),
567
+ /* @__PURE__ */ jsx("h3", { className: "brutal-h4 mb-1", children: feature.title }),
568
+ /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: feature.description })
569
+ ] })
570
+ ]
571
+ }
572
+ );
573
+ }
574
+ if (variant === "numbered") {
575
+ return /* @__PURE__ */ jsxs(Card, { children: [
576
+ /* @__PURE__ */ jsxs(CardHeader, { children: [
577
+ /* @__PURE__ */ jsx(
578
+ "span",
579
+ {
580
+ className: "brutal-display mb-2 block opacity-15",
581
+ style: { color: accentColor },
582
+ children: String(index + 1).padStart(2, "0")
583
+ }
584
+ ),
585
+ feature.stat && /* @__PURE__ */ jsx("p", { className: "brutal-label mb-1 text-brand", children: feature.stat }),
586
+ /* @__PURE__ */ jsx(CardTitle, { children: feature.title })
587
+ ] }),
588
+ /* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsx(CardDescription, { children: feature.description }) })
589
+ ] });
590
+ }
591
+ return /* @__PURE__ */ jsxs(
592
+ Card,
593
+ {
594
+ className: cn(
595
+ isBentoFeatured && "sm:col-span-2 bg-brand-muted"
596
+ ),
597
+ children: [
598
+ /* @__PURE__ */ jsxs(CardHeader, { children: [
599
+ feature.icon && /* @__PURE__ */ jsx(
600
+ "div",
601
+ {
602
+ className: "mb-2 inline-flex size-12 items-center justify-center border-brutal border-foreground bg-brand-muted text-2xl shadow-brutal-sm",
603
+ style: { borderBottomColor: accentColor },
604
+ children: feature.icon
605
+ }
606
+ ),
607
+ feature.stat && /* @__PURE__ */ jsx("p", { className: "brutal-label mb-1 text-brand", children: feature.stat }),
608
+ /* @__PURE__ */ jsx(CardTitle, { children: feature.title })
609
+ ] }),
610
+ /* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsx(CardDescription, { children: feature.description }) })
611
+ ]
612
+ }
613
+ );
614
+ }
615
+ function StarRating({ rating }) {
616
+ return /* @__PURE__ */ jsx("div", { className: "flex gap-0.5", children: Array.from({ length: 5 }, (_, i) => /* @__PURE__ */ jsx(
617
+ "span",
618
+ {
619
+ className: cn(
620
+ "text-sm",
621
+ i < rating ? "text-amber-500" : "text-foreground/20"
622
+ ),
623
+ children: "\u2605"
624
+ },
625
+ i
626
+ )) });
627
+ }
628
+ function TestimonialCard({
629
+ t,
630
+ className
631
+ }) {
632
+ return /* @__PURE__ */ jsxs(
633
+ "div",
634
+ {
635
+ className: cn(
636
+ "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",
637
+ className
638
+ ),
639
+ children: [
640
+ /* @__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" }),
641
+ t.rating && /* @__PURE__ */ jsx("div", { className: "mb-3", children: /* @__PURE__ */ jsx(StarRating, { rating: t.rating }) }),
642
+ /* @__PURE__ */ jsx("p", { className: "relative mb-4 text-sm leading-relaxed", children: t.text }),
643
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
644
+ t.avatar ? /* @__PURE__ */ jsx(
645
+ "img",
646
+ {
647
+ src: t.avatar,
648
+ alt: t.name,
649
+ className: "size-9 border-2 object-cover",
650
+ style: { borderColor: "hsl(var(--brand))" }
651
+ }
652
+ ) : /* @__PURE__ */ jsx(
653
+ "div",
654
+ {
655
+ className: "flex size-9 items-center justify-center border-2 font-bold text-brand-foreground",
656
+ style: {
657
+ borderColor: "hsl(var(--brand))",
658
+ backgroundColor: "hsl(var(--brand))"
659
+ },
660
+ children: t.name[0]
661
+ }
662
+ ),
663
+ /* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
664
+ /* @__PURE__ */ jsx("p", { className: "text-sm font-bold", children: t.name }),
665
+ (t.role || t.company) && /* @__PURE__ */ jsxs("p", { className: "truncate text-xs text-muted-foreground", children: [
666
+ t.role,
667
+ t.role && t.company && " \xB7 ",
668
+ t.company
669
+ ] }),
670
+ !t.role && !t.company && t.handle && /* @__PURE__ */ jsx("p", { className: "font-mono text-xs text-muted-foreground", children: t.handle })
671
+ ] }),
672
+ t.companyLogo && /* @__PURE__ */ jsx(
673
+ "img",
674
+ {
675
+ src: t.companyLogo,
676
+ alt: t.company || "",
677
+ className: "h-5 object-contain opacity-60"
678
+ }
679
+ )
680
+ ] })
681
+ ]
682
+ }
683
+ );
684
+ }
685
+ function MasonryLayout({ testimonials }) {
686
+ 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)) });
687
+ }
688
+ function FeaturedGridLayout({
689
+ testimonials
690
+ }) {
691
+ const featured = testimonials.find((t) => t.featured) || testimonials[0];
692
+ const rest = testimonials.filter((t) => t !== featured);
693
+ return /* @__PURE__ */ jsxs("div", { className: "grid gap-6 lg:grid-cols-2", children: [
694
+ featured && /* @__PURE__ */ jsx(
695
+ TestimonialCard,
696
+ {
697
+ t: featured,
698
+ className: "flex flex-col justify-between p-8 lg:row-span-2"
699
+ }
700
+ ),
701
+ rest.map((t, i) => /* @__PURE__ */ jsx(TestimonialCard, { t }, i))
702
+ ] });
703
+ }
704
+ function CarouselLayout({ testimonials }) {
705
+ 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(
706
+ TestimonialCard,
707
+ {
708
+ t,
709
+ className: "w-80 flex-none snap-center"
710
+ },
711
+ i
712
+ )) });
713
+ }
714
+ function WallOfLoveLayout({ testimonials }) {
715
+ return /* @__PURE__ */ jsxs("div", { className: "relative max-h-[600px] overflow-hidden", children: [
716
+ /* @__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)) }),
717
+ /* @__PURE__ */ jsx("div", { className: "pointer-events-none absolute inset-x-0 bottom-0 h-32 bg-gradient-to-t from-background to-transparent" })
718
+ ] });
719
+ }
720
+ function BrutalTestimonials({
721
+ badge,
722
+ headline,
723
+ testimonials,
724
+ variant = "masonry",
725
+ color = "blue",
726
+ pattern,
727
+ className
728
+ }) {
729
+ return /* @__PURE__ */ jsxs(BrutalSection, { color, pattern, className, children: [
730
+ (headline || badge) && /* @__PURE__ */ jsxs("div", { className: "mb-12 text-center", children: [
731
+ badge && /* @__PURE__ */ jsx("p", { className: "brutal-label mb-4 opacity-70", children: badge }),
732
+ headline && /* @__PURE__ */ jsx("h2", { className: "brutal-h2", children: headline })
733
+ ] }),
734
+ variant === "masonry" && /* @__PURE__ */ jsx(MasonryLayout, { testimonials }),
735
+ variant === "featured-grid" && /* @__PURE__ */ jsx(FeaturedGridLayout, { testimonials }),
736
+ variant === "carousel" && /* @__PURE__ */ jsx(CarouselLayout, { testimonials }),
737
+ variant === "wall-of-love" && /* @__PURE__ */ jsx(WallOfLoveLayout, { testimonials })
738
+ ] });
739
+ }
740
+ function Input({ className, type, ...props }) {
741
+ return /* @__PURE__ */ jsx(
742
+ Input$1,
743
+ {
744
+ type,
745
+ "data-slot": "input",
746
+ className: cn(
747
+ "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",
748
+ className
749
+ ),
750
+ ...props
751
+ }
752
+ );
753
+ }
754
+ function Newsletter({
755
+ headline = "Stay in the loop",
756
+ description,
757
+ placeholder = "you@example.com",
758
+ buttonText = "Subscribe",
759
+ onSubmit,
760
+ color = "white",
761
+ className
762
+ }) {
763
+ return /* @__PURE__ */ jsx(BrutalSection, { color, padding: "sm", className, children: /* @__PURE__ */ jsxs("div", { className: "mx-auto max-w-md border-brutal border-foreground bg-background p-8 text-foreground shadow-brutal-lg", children: [
764
+ /* @__PURE__ */ jsx("h3", { className: "brutal-h3 mb-2", children: headline }),
765
+ description && /* @__PURE__ */ jsx("p", { className: "brutal-body mb-6 text-muted-foreground", children: description }),
766
+ /* @__PURE__ */ jsxs(
767
+ "form",
768
+ {
769
+ onSubmit: (e) => {
770
+ e.preventDefault();
771
+ const form = e.target;
772
+ const email = new FormData(form).get("email");
773
+ onSubmit?.(email);
774
+ },
775
+ className: "flex gap-3",
776
+ children: [
777
+ /* @__PURE__ */ jsx(Input, { type: "email", name: "email", placeholder, required: true, className: "flex-1" }),
778
+ /* @__PURE__ */ jsx(Button, { type: "submit", variant: "cta", children: buttonText })
779
+ ]
780
+ }
781
+ )
782
+ ] }) });
783
+ }
784
+ function CTAButtons({
785
+ ctaText,
786
+ ctaHref = "#",
787
+ ctaVariant = "cta",
788
+ secondaryText,
789
+ secondaryHref
790
+ }) {
791
+ return /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center justify-center gap-4", children: [
792
+ /* @__PURE__ */ jsx(
793
+ Button,
794
+ {
795
+ variant: ctaVariant,
796
+ size: "xl",
797
+ render: /* @__PURE__ */ jsx("a", { href: ctaHref }),
798
+ children: ctaText
799
+ }
800
+ ),
801
+ secondaryText && /* @__PURE__ */ jsx(
802
+ Button,
803
+ {
804
+ variant: "outline",
805
+ size: "lg",
806
+ render: /* @__PURE__ */ jsx("a", { href: secondaryHref || "#" }),
807
+ children: secondaryText
808
+ }
809
+ )
810
+ ] });
811
+ }
812
+ function CenteredCTA(props) {
813
+ return /* @__PURE__ */ jsxs("div", { className: "mx-auto max-w-2xl text-center", children: [
814
+ /* @__PURE__ */ jsx("h2", { className: "brutal-h1 mb-6", children: props.headline }),
815
+ props.description && /* @__PURE__ */ jsx("p", { className: "brutal-body mb-4 opacity-80", children: props.description }),
816
+ props.stats && /* @__PURE__ */ jsx("p", { className: "brutal-label mb-8 opacity-60", children: props.stats }),
817
+ /* @__PURE__ */ jsx(
818
+ CTAButtons,
819
+ {
820
+ ctaText: props.ctaText,
821
+ ctaHref: props.ctaHref,
822
+ ctaVariant: props.ctaVariant,
823
+ secondaryText: props.secondaryText,
824
+ secondaryHref: props.secondaryHref
825
+ }
826
+ )
827
+ ] });
828
+ }
829
+ function SplitCTA(props) {
830
+ return /* @__PURE__ */ jsxs("div", { className: "grid items-center gap-12 lg:grid-cols-2", children: [
831
+ /* @__PURE__ */ jsxs("div", { children: [
832
+ /* @__PURE__ */ jsx("h2", { className: "brutal-h1 mb-6", children: props.headline }),
833
+ props.description && /* @__PURE__ */ jsx("p", { className: "brutal-body mb-4 opacity-80", children: props.description }),
834
+ props.stats && /* @__PURE__ */ jsx("p", { className: "brutal-label mb-8 opacity-60", children: props.stats }),
835
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-4", children: [
836
+ /* @__PURE__ */ jsx(
837
+ Button,
838
+ {
839
+ variant: props.ctaVariant || "cta",
840
+ size: "xl",
841
+ render: /* @__PURE__ */ jsx("a", { href: props.ctaHref || "#" }),
842
+ children: props.ctaText
843
+ }
844
+ ),
845
+ props.secondaryText && /* @__PURE__ */ jsx(
846
+ Button,
847
+ {
848
+ variant: "outline",
849
+ size: "lg",
850
+ render: /* @__PURE__ */ jsx("a", { href: props.secondaryHref || "#" }),
851
+ children: props.secondaryText
852
+ }
853
+ )
854
+ ] })
855
+ ] }),
856
+ props.visual && /* @__PURE__ */ jsx("div", { children: props.visual })
857
+ ] });
858
+ }
859
+ function WithVisualCTA(props) {
860
+ return /* @__PURE__ */ jsxs("div", { className: "relative", children: [
861
+ props.visual && /* @__PURE__ */ jsx("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center opacity-10", children: props.visual }),
862
+ /* @__PURE__ */ jsxs("div", { className: "relative mx-auto max-w-2xl text-center", children: [
863
+ /* @__PURE__ */ jsx("h2", { className: "brutal-h1 mb-6", children: props.headline }),
864
+ props.description && /* @__PURE__ */ jsx("p", { className: "brutal-body mb-4 opacity-80", children: props.description }),
865
+ props.stats && /* @__PURE__ */ jsx("p", { className: "brutal-label mb-8 opacity-60", children: props.stats }),
866
+ /* @__PURE__ */ jsx(
867
+ CTAButtons,
868
+ {
869
+ ctaText: props.ctaText,
870
+ ctaHref: props.ctaHref,
871
+ ctaVariant: props.ctaVariant,
872
+ secondaryText: props.secondaryText,
873
+ secondaryHref: props.secondaryHref
874
+ }
875
+ )
876
+ ] })
877
+ ] });
878
+ }
879
+ function FloatingCardCTA(props) {
880
+ 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: [
881
+ /* @__PURE__ */ jsx("h2", { className: "brutal-h1 mb-6", children: props.headline }),
882
+ props.description && /* @__PURE__ */ jsx("p", { className: "brutal-body mb-4 opacity-80", children: props.description }),
883
+ props.stats && /* @__PURE__ */ jsx("p", { className: "brutal-label mb-8 opacity-60", children: props.stats }),
884
+ /* @__PURE__ */ jsx(
885
+ CTAButtons,
886
+ {
887
+ ctaText: props.ctaText,
888
+ ctaHref: props.ctaHref,
889
+ ctaVariant: props.ctaVariant,
890
+ secondaryText: props.secondaryText,
891
+ secondaryHref: props.secondaryHref
892
+ }
893
+ )
894
+ ] }) });
895
+ }
896
+ function BrutalCTA({
897
+ variant = "centered",
898
+ color = "black",
899
+ className,
900
+ pattern,
901
+ ...props
902
+ }) {
903
+ if (variant === "floating-card") {
904
+ return /* @__PURE__ */ jsx("div", { className: cn("brutal-container px-6", className), children: /* @__PURE__ */ jsx(FloatingCardCTA, { ...props, variant, color }) });
905
+ }
906
+ return /* @__PURE__ */ jsxs(BrutalSection, { color, pattern, className, children: [
907
+ variant === "centered" && /* @__PURE__ */ jsx(CenteredCTA, { ...props, variant, color }),
908
+ variant === "split" && /* @__PURE__ */ jsx(SplitCTA, { ...props, variant, color }),
909
+ variant === "with-visual" && /* @__PURE__ */ jsx(WithVisualCTA, { ...props, variant, color })
910
+ ] });
911
+ }
912
+ function SocialsRow({
913
+ socials
914
+ }) {
915
+ const items = [
916
+ { key: "twitter", label: "Twitter", url: socials.twitter },
917
+ { key: "github", label: "GitHub", url: socials.github },
918
+ { key: "linkedin", label: "LinkedIn", url: socials.linkedin },
919
+ { key: "discord", label: "Discord", url: socials.discord }
920
+ ].filter((s) => s.url);
921
+ if (items.length === 0) return null;
922
+ return /* @__PURE__ */ jsx("div", { className: "flex items-center gap-4", children: items.map((s) => /* @__PURE__ */ jsx(
923
+ "a",
924
+ {
925
+ href: s.url,
926
+ target: "_blank",
927
+ rel: "noopener noreferrer",
928
+ className: "text-sm font-bold transition-colors hover:text-muted-foreground",
929
+ children: s.label
930
+ },
931
+ s.key
932
+ )) });
933
+ }
934
+ function NewsletterSection({
935
+ newsletter
936
+ }) {
937
+ 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: [
938
+ /* @__PURE__ */ jsx("h3", { className: "brutal-h4 mb-2", children: newsletter.headline || "Stay in the loop" }),
939
+ newsletter.description && /* @__PURE__ */ jsx("p", { className: "brutal-caption mb-4", children: newsletter.description }),
940
+ /* @__PURE__ */ jsxs(
941
+ "form",
942
+ {
943
+ onSubmit: (e) => e.preventDefault(),
944
+ className: "flex gap-2",
945
+ children: [
946
+ /* @__PURE__ */ jsx(
947
+ Input,
948
+ {
949
+ type: "email",
950
+ placeholder: newsletter.placeholder || "you@email.com",
951
+ className: "flex-1"
952
+ }
953
+ ),
954
+ /* @__PURE__ */ jsx(Button, { variant: "default", size: "default", type: "submit", children: newsletter.buttonText || "Subscribe" })
955
+ ]
956
+ }
957
+ )
958
+ ] }) });
959
+ }
960
+ function MegaContent({
961
+ logo,
962
+ tagline,
963
+ columns,
964
+ socials
965
+ }) {
966
+ return /* @__PURE__ */ jsxs("div", { className: "mb-10 flex flex-col gap-8 sm:flex-row sm:items-start sm:justify-between", children: [
967
+ /* @__PURE__ */ jsxs("div", { className: "max-w-xs", children: [
968
+ /* @__PURE__ */ jsx("div", { className: "mb-2 text-xl font-black", children: logo }),
969
+ tagline && /* @__PURE__ */ jsx("p", { className: "mb-4 text-sm text-muted-foreground", children: tagline }),
970
+ socials && /* @__PURE__ */ jsx(SocialsRow, { socials })
971
+ ] }),
972
+ /* @__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: [
973
+ /* @__PURE__ */ jsx("h3", { className: "brutal-label mb-3 text-muted-foreground", children: col.title }),
974
+ /* @__PURE__ */ jsx("ul", { className: "flex flex-col gap-2", children: col.links.map((link) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
975
+ "a",
976
+ {
977
+ href: link.href,
978
+ className: "text-sm font-medium transition-colors hover:text-muted-foreground",
979
+ children: link.label
980
+ }
981
+ ) }, link.href)) })
982
+ ] }, col.title)) })
983
+ ] });
984
+ }
985
+ function MinimalContent({
986
+ logo,
987
+ columns,
988
+ socials
989
+ }) {
990
+ const allLinks = columns.flatMap((col) => col.links);
991
+ return /* @__PURE__ */ jsxs("div", { className: "mb-6 flex flex-col items-center gap-4 sm:flex-row sm:justify-between", children: [
992
+ /* @__PURE__ */ jsx("div", { className: "text-xl font-black", children: logo }),
993
+ /* @__PURE__ */ jsx("nav", { className: "flex flex-wrap items-center justify-center gap-x-6 gap-y-2", children: allLinks.map((link) => /* @__PURE__ */ jsx(
994
+ "a",
995
+ {
996
+ href: link.href,
997
+ className: "text-sm font-medium transition-colors hover:text-muted-foreground",
998
+ children: link.label
999
+ },
1000
+ link.href
1001
+ )) }),
1002
+ socials && /* @__PURE__ */ jsx(SocialsRow, { socials })
1003
+ ] });
1004
+ }
1005
+ function BrutalFooter({
1006
+ logo,
1007
+ tagline,
1008
+ columns,
1009
+ bottomLeft,
1010
+ bottomRight,
1011
+ variant = "mega",
1012
+ socials,
1013
+ newsletter,
1014
+ className
1015
+ }) {
1016
+ return /* @__PURE__ */ jsx(
1017
+ "footer",
1018
+ {
1019
+ className: cn(
1020
+ "w-full border-t-4 bg-background px-6 py-12 text-foreground",
1021
+ className
1022
+ ),
1023
+ style: { borderTopColor: "hsl(var(--brand))" },
1024
+ children: /* @__PURE__ */ jsxs("div", { className: "brutal-container", children: [
1025
+ variant === "newsletter" && newsletter && /* @__PURE__ */ jsx(NewsletterSection, { newsletter }),
1026
+ variant === "minimal" ? /* @__PURE__ */ jsx(MinimalContent, { logo, columns, socials }) : /* @__PURE__ */ jsx(
1027
+ MegaContent,
1028
+ {
1029
+ logo,
1030
+ tagline,
1031
+ columns,
1032
+ socials
1033
+ }
1034
+ ),
1035
+ /* @__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: [
1036
+ /* @__PURE__ */ jsx("span", { children: bottomLeft || "Built with care" }),
1037
+ /* @__PURE__ */ jsx("span", { children: bottomRight || (/* @__PURE__ */ new Date()).getFullYear() })
1038
+ ] })
1039
+ ] })
1040
+ }
1041
+ );
1042
+ }
1043
+ function StudioTemplate({
1044
+ logo,
1045
+ nav,
1046
+ hero,
1047
+ features,
1048
+ testimonials,
1049
+ newsletter,
1050
+ cta,
1051
+ footer
1052
+ }) {
1053
+ return /* @__PURE__ */ jsxs("div", { children: [
1054
+ /* @__PURE__ */ jsx(BrutalNav, { logo, links: nav.links, ctaText: nav.ctaText, ctaHref: nav.ctaHref, variant: "floating-pill" }),
1055
+ /* @__PURE__ */ jsx(
1056
+ BrutalHero,
1057
+ {
1058
+ variant: "asymmetric",
1059
+ badge: hero.badge,
1060
+ headline: hero.headline,
1061
+ description: hero.description,
1062
+ ctaText: hero.ctaText,
1063
+ ctaHref: hero.ctaHref,
1064
+ visual: hero.visual,
1065
+ proof: hero.proof,
1066
+ color: "brand",
1067
+ pattern: "grain"
1068
+ }
1069
+ ),
1070
+ /* @__PURE__ */ jsx(SectionDivider, { from: "hsl(var(--brand))", to: "hsl(var(--background))", variant: "brush-stroke" }),
1071
+ /* @__PURE__ */ jsx(
1072
+ BrutalFeatureGrid,
1073
+ {
1074
+ variant: "numbered",
1075
+ badge: features.badge,
1076
+ headline: features.headline,
1077
+ description: features.description,
1078
+ features: features.items,
1079
+ color: "white"
1080
+ }
1081
+ ),
1082
+ testimonials && /* @__PURE__ */ jsxs(Fragment, { children: [
1083
+ /* @__PURE__ */ jsx(SectionDivider, { from: "hsl(var(--background))", to: "hsl(var(--section-gray))", variant: "diagonal" }),
1084
+ /* @__PURE__ */ jsx(
1085
+ BrutalTestimonials,
1086
+ {
1087
+ variant: "featured-grid",
1088
+ badge: testimonials.badge,
1089
+ headline: testimonials.headline,
1090
+ testimonials: testimonials.items,
1091
+ color: "gray"
1092
+ }
1093
+ ),
1094
+ /* @__PURE__ */ jsx(SectionDivider, { from: "hsl(var(--section-gray))", to: "hsl(var(--background))", variant: "diagonal", flip: true })
1095
+ ] }),
1096
+ newsletter && /* @__PURE__ */ jsx(
1097
+ Newsletter,
1098
+ {
1099
+ headline: newsletter.headline,
1100
+ description: newsletter.description,
1101
+ onSubmit: newsletter.onSubmit
1102
+ }
1103
+ ),
1104
+ /* @__PURE__ */ jsx(
1105
+ BrutalCTA,
1106
+ {
1107
+ variant: "floating-card",
1108
+ headline: cta.headline,
1109
+ description: cta.description,
1110
+ ctaText: cta.ctaText,
1111
+ ctaHref: cta.ctaHref,
1112
+ color: "brand"
1113
+ }
1114
+ ),
1115
+ /* @__PURE__ */ jsx(
1116
+ BrutalFooter,
1117
+ {
1118
+ variant: "minimal",
1119
+ logo,
1120
+ tagline: footer.tagline,
1121
+ columns: footer.columns
1122
+ }
1123
+ )
1124
+ ] });
1125
+ }
1126
+
1127
+ export { StudioTemplate };
1128
+ //# sourceMappingURL=studio.js.map
1129
+ //# sourceMappingURL=studio.js.map