nextworks 0.0.1 → 0.1.0-alpha.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 (277) hide show
  1. package/README.md +209 -30
  2. package/dist/.gitkeep +0 -0
  3. package/dist/cli_manifests/auth_manifest.json +86 -0
  4. package/dist/cli_manifests/blocks_manifest.json +185 -0
  5. package/dist/cli_manifests/data_manifest.json +51 -0
  6. package/dist/cli_manifests/forms_manifest.json +61 -0
  7. package/dist/commands/admin-posts.d.ts +2 -0
  8. package/dist/commands/admin-posts.d.ts.map +1 -0
  9. package/dist/commands/admin-posts.js +15 -0
  10. package/dist/commands/admin-posts.js.map +1 -0
  11. package/dist/commands/admin-users.d.ts +2 -0
  12. package/dist/commands/admin-users.d.ts.map +1 -0
  13. package/dist/commands/admin-users.js +15 -0
  14. package/dist/commands/admin-users.js.map +1 -0
  15. package/dist/commands/auth-core.d.ts +2 -0
  16. package/dist/commands/auth-core.d.ts.map +1 -0
  17. package/dist/commands/auth-core.js +83 -0
  18. package/dist/commands/auth-core.js.map +1 -0
  19. package/dist/commands/auth-forms.d.ts +2 -0
  20. package/dist/commands/auth-forms.d.ts.map +1 -0
  21. package/dist/commands/auth-forms.js +15 -0
  22. package/dist/commands/auth-forms.js.map +1 -0
  23. package/dist/commands/blocks-options.d.ts +7 -0
  24. package/dist/commands/blocks-options.d.ts.map +1 -0
  25. package/dist/commands/blocks-options.js +19 -0
  26. package/dist/commands/blocks-options.js.map +1 -0
  27. package/dist/commands/blocks.d.ts +7 -0
  28. package/dist/commands/blocks.d.ts.map +1 -0
  29. package/dist/commands/blocks.js +140 -0
  30. package/dist/commands/blocks.js.map +1 -0
  31. package/dist/commands/data.d.ts +3 -0
  32. package/dist/commands/data.d.ts.map +1 -0
  33. package/dist/commands/data.js +88 -0
  34. package/dist/commands/data.js.map +1 -0
  35. package/dist/commands/forms.d.ts +6 -0
  36. package/dist/commands/forms.d.ts.map +1 -0
  37. package/dist/commands/forms.js +107 -0
  38. package/dist/commands/forms.js.map +1 -0
  39. package/dist/commands/remove-auth-core.d.ts +2 -0
  40. package/dist/commands/remove-auth-core.d.ts.map +1 -0
  41. package/dist/commands/remove-auth-core.js +69 -0
  42. package/dist/commands/remove-auth-core.js.map +1 -0
  43. package/dist/commands/remove-blocks.d.ts +2 -0
  44. package/dist/commands/remove-blocks.d.ts.map +1 -0
  45. package/dist/commands/remove-blocks.js +36 -0
  46. package/dist/commands/remove-blocks.js.map +1 -0
  47. package/dist/index.d.ts +3 -0
  48. package/dist/index.d.ts.map +1 -0
  49. package/dist/index.js +109 -0
  50. package/dist/index.js.map +1 -0
  51. package/dist/kits/auth-core/README.md +82 -0
  52. package/dist/kits/auth-core/app/(protected)/dashboard/page.tsx +8 -0
  53. package/dist/kits/auth-core/app/(protected)/layout.tsx +18 -0
  54. package/dist/kits/auth-core/app/(protected)/settings/profile/page.tsx +15 -0
  55. package/dist/kits/auth-core/app/(protected)/settings/profile/profile-form.tsx +114 -0
  56. package/dist/kits/auth-core/app/api/auth/[...nextauth]/route.ts +1 -0
  57. package/dist/kits/auth-core/app/api/auth/forgot-password/route.ts +114 -0
  58. package/dist/kits/auth-core/app/api/auth/providers/route.ts +6 -0
  59. package/dist/kits/auth-core/app/api/auth/reset-password/route.ts +63 -0
  60. package/dist/kits/auth-core/app/api/auth/send-verify-email/route.ts +6 -0
  61. package/dist/kits/auth-core/app/api/signup/route.ts +41 -0
  62. package/dist/kits/auth-core/app/auth/forgot-password/page.tsx +21 -0
  63. package/dist/kits/auth-core/app/auth/login/page.tsx +5 -0
  64. package/dist/kits/auth-core/app/auth/reset-password/page.tsx +187 -0
  65. package/dist/kits/auth-core/app/auth/signup/page.tsx +5 -0
  66. package/dist/kits/auth-core/app/auth/verify-email/page.tsx +11 -0
  67. package/dist/kits/auth-core/components/admin/admin-header.tsx +57 -0
  68. package/dist/kits/auth-core/components/auth/dashboard.tsx +237 -0
  69. package/dist/kits/auth-core/components/auth/forgot-password-form.tsx +90 -0
  70. package/dist/kits/auth-core/components/auth/login-form.tsx +467 -0
  71. package/dist/kits/auth-core/components/auth/logout-button.tsx +50 -0
  72. package/dist/kits/auth-core/components/auth/minimal-logout-button.tsx +40 -0
  73. package/dist/kits/auth-core/components/auth/signup-form.tsx +468 -0
  74. package/dist/kits/auth-core/components/require-auth.tsx +59 -0
  75. package/dist/kits/auth-core/components/session-provider.tsx +11 -0
  76. package/dist/kits/auth-core/components/ui/README.txt +1 -0
  77. package/dist/kits/auth-core/components/ui/button.tsx +55 -0
  78. package/dist/kits/auth-core/components/ui/input.tsx +25 -0
  79. package/dist/kits/auth-core/components/ui/label.tsx +23 -0
  80. package/dist/kits/auth-core/lib/api/errors.ts +14 -0
  81. package/dist/kits/auth-core/lib/auth-helpers.ts +29 -0
  82. package/dist/kits/auth-core/lib/auth.ts +142 -0
  83. package/dist/kits/auth-core/lib/email/dev-transport.ts +42 -0
  84. package/dist/kits/auth-core/lib/email/index.ts +28 -0
  85. package/dist/kits/auth-core/lib/email/provider-smtp.ts +36 -0
  86. package/dist/kits/auth-core/lib/forms/map-errors.ts +11 -0
  87. package/dist/kits/auth-core/lib/hash.ts +6 -0
  88. package/dist/kits/auth-core/lib/prisma.ts +15 -0
  89. package/dist/kits/auth-core/lib/server/result.ts +45 -0
  90. package/dist/kits/auth-core/lib/utils.ts +6 -0
  91. package/dist/kits/auth-core/lib/validation/forms.ts +88 -0
  92. package/dist/kits/auth-core/package-deps.json +19 -0
  93. package/dist/kits/auth-core/prisma/auth-models.prisma +81 -0
  94. package/dist/kits/auth-core/prisma/schema.prisma +81 -0
  95. package/dist/kits/auth-core/scripts/populate-tokenhash.mjs +26 -0
  96. package/dist/kits/auth-core/scripts/promote-admin.mjs +33 -0
  97. package/dist/kits/auth-core/scripts/seed-demo.mjs +40 -0
  98. package/dist/kits/auth-core/types/next-auth.d.ts +25 -0
  99. package/dist/kits/blocks/README.md +53 -0
  100. package/dist/kits/blocks/app/globals.css +175 -0
  101. package/dist/kits/blocks/app/templates/digitalagency/PresetThemeVars.tsx +80 -0
  102. package/dist/kits/blocks/app/templates/digitalagency/README.md +36 -0
  103. package/dist/kits/blocks/app/templates/digitalagency/components/About.tsx +99 -0
  104. package/dist/kits/blocks/app/templates/digitalagency/components/CTA.tsx +74 -0
  105. package/dist/kits/blocks/app/templates/digitalagency/components/Contact.tsx +227 -0
  106. package/dist/kits/blocks/app/templates/digitalagency/components/Footer.tsx +89 -0
  107. package/dist/kits/blocks/app/templates/digitalagency/components/Hero.tsx +90 -0
  108. package/dist/kits/blocks/app/templates/digitalagency/components/Navbar.tsx +168 -0
  109. package/dist/kits/blocks/app/templates/digitalagency/components/NetworkPattern.tsx +297 -0
  110. package/dist/kits/blocks/app/templates/digitalagency/components/Portfolio.tsx +157 -0
  111. package/dist/kits/blocks/app/templates/digitalagency/components/Pricing.tsx +114 -0
  112. package/dist/kits/blocks/app/templates/digitalagency/components/Process.tsx +59 -0
  113. package/dist/kits/blocks/app/templates/digitalagency/components/Services.tsx +55 -0
  114. package/dist/kits/blocks/app/templates/digitalagency/components/Team.tsx +28 -0
  115. package/dist/kits/blocks/app/templates/digitalagency/components/Testimonials.tsx +65 -0
  116. package/dist/kits/blocks/app/templates/digitalagency/page.tsx +38 -0
  117. package/dist/kits/blocks/app/templates/gallery/PresetThemeVars.tsx +85 -0
  118. package/dist/kits/blocks/app/templates/gallery/page.tsx +303 -0
  119. package/dist/kits/blocks/app/templates/productlaunch/PresetThemeVars.tsx +74 -0
  120. package/dist/kits/blocks/app/templates/productlaunch/README.md +55 -0
  121. package/dist/kits/blocks/app/templates/productlaunch/components/About.tsx +178 -0
  122. package/dist/kits/blocks/app/templates/productlaunch/components/CTA.tsx +93 -0
  123. package/dist/kits/blocks/app/templates/productlaunch/components/Contact.tsx +231 -0
  124. package/dist/kits/blocks/app/templates/productlaunch/components/FAQ.tsx +93 -0
  125. package/dist/kits/blocks/app/templates/productlaunch/components/Features.tsx +84 -0
  126. package/dist/kits/blocks/app/templates/productlaunch/components/Footer.tsx +132 -0
  127. package/dist/kits/blocks/app/templates/productlaunch/components/Hero.tsx +89 -0
  128. package/dist/kits/blocks/app/templates/productlaunch/components/Navbar.tsx +162 -0
  129. package/dist/kits/blocks/app/templates/productlaunch/components/Pricing.tsx +106 -0
  130. package/dist/kits/blocks/app/templates/productlaunch/components/ProcessTimeline.tsx +110 -0
  131. package/dist/kits/blocks/app/templates/productlaunch/components/ServicesGrid.tsx +68 -0
  132. package/dist/kits/blocks/app/templates/productlaunch/components/Team.tsx +104 -0
  133. package/dist/kits/blocks/app/templates/productlaunch/components/Testimonials.tsx +89 -0
  134. package/dist/kits/blocks/app/templates/productlaunch/components/TrustBadges.tsx +76 -0
  135. package/dist/kits/blocks/app/templates/productlaunch/page.tsx +45 -0
  136. package/dist/kits/blocks/app/templates/saasdashboard/PresetThemeVars.tsx +80 -0
  137. package/dist/kits/blocks/app/templates/saasdashboard/README.md +38 -0
  138. package/dist/kits/blocks/app/templates/saasdashboard/components/Contact.tsx +176 -0
  139. package/dist/kits/blocks/app/templates/saasdashboard/components/Dashboard.tsx +293 -0
  140. package/dist/kits/blocks/app/templates/saasdashboard/components/FAQ.tsx +55 -0
  141. package/dist/kits/blocks/app/templates/saasdashboard/components/Features.tsx +91 -0
  142. package/dist/kits/blocks/app/templates/saasdashboard/components/Footer.tsx +77 -0
  143. package/dist/kits/blocks/app/templates/saasdashboard/components/Hero.tsx +105 -0
  144. package/dist/kits/blocks/app/templates/saasdashboard/components/Hero_mask.tsx +127 -0
  145. package/dist/kits/blocks/app/templates/saasdashboard/components/Navbar.tsx +159 -0
  146. package/dist/kits/blocks/app/templates/saasdashboard/components/Pricing.tsx +90 -0
  147. package/dist/kits/blocks/app/templates/saasdashboard/components/SmoothScroll.tsx +97 -0
  148. package/dist/kits/blocks/app/templates/saasdashboard/components/Testimonials.tsx +72 -0
  149. package/dist/kits/blocks/app/templates/saasdashboard/components/TrustBadges.tsx +53 -0
  150. package/dist/kits/blocks/app/templates/saasdashboard/page.tsx +39 -0
  151. package/dist/kits/blocks/components/app-providers.tsx +1 -0
  152. package/dist/kits/blocks/components/enhanced-theme-provider.tsx +195 -0
  153. package/dist/kits/blocks/components/sections/About.tsx +291 -0
  154. package/dist/kits/blocks/components/sections/CTA.tsx +258 -0
  155. package/dist/kits/blocks/components/sections/Contact.tsx +267 -0
  156. package/dist/kits/blocks/components/sections/FAQ.tsx +226 -0
  157. package/dist/kits/blocks/components/sections/Features.tsx +269 -0
  158. package/dist/kits/blocks/components/sections/Footer.tsx +302 -0
  159. package/dist/kits/blocks/components/sections/HeroMotion.tsx +307 -0
  160. package/dist/kits/blocks/components/sections/HeroOverlay.tsx +358 -0
  161. package/dist/kits/blocks/components/sections/HeroSplit.tsx +352 -0
  162. package/dist/kits/blocks/components/sections/Navbar.tsx +353 -0
  163. package/dist/kits/blocks/components/sections/Newsletter.tsx +156 -0
  164. package/dist/kits/blocks/components/sections/PortfolioSimple.tsx +550 -0
  165. package/dist/kits/blocks/components/sections/Pricing.tsx +264 -0
  166. package/dist/kits/blocks/components/sections/ProcessTimeline.tsx +325 -0
  167. package/dist/kits/blocks/components/sections/ServicesGrid.tsx +210 -0
  168. package/dist/kits/blocks/components/sections/Team.tsx +309 -0
  169. package/dist/kits/blocks/components/sections/Testimonials.tsx +158 -0
  170. package/dist/kits/blocks/components/sections/TrustBadges.tsx +162 -0
  171. package/dist/kits/blocks/components/theme-provider.tsx +34 -0
  172. package/dist/kits/blocks/components/ui/alert-dialog.tsx +134 -0
  173. package/dist/kits/blocks/components/ui/brand-node.tsx +121 -0
  174. package/dist/kits/blocks/components/ui/button.tsx +122 -0
  175. package/dist/kits/blocks/components/ui/button_bck.tsx +93 -0
  176. package/dist/kits/blocks/components/ui/card.tsx +95 -0
  177. package/dist/kits/blocks/components/ui/checkbox.tsx +30 -0
  178. package/dist/kits/blocks/components/ui/cta-button.tsx +125 -0
  179. package/dist/kits/blocks/components/ui/dropdown-menu.tsx +201 -0
  180. package/dist/kits/blocks/components/ui/feature-card.tsx +91 -0
  181. package/dist/kits/blocks/components/ui/input.tsx +27 -0
  182. package/dist/kits/blocks/components/ui/label.tsx +29 -0
  183. package/dist/kits/blocks/components/ui/pricing-card.tsx +120 -0
  184. package/dist/kits/blocks/components/ui/select.tsx +25 -0
  185. package/dist/kits/blocks/components/ui/skeleton.tsx +13 -0
  186. package/dist/kits/blocks/components/ui/switch.tsx +78 -0
  187. package/dist/kits/blocks/components/ui/table.tsx +98 -0
  188. package/dist/kits/blocks/components/ui/testimonial-card.tsx +108 -0
  189. package/dist/kits/blocks/components/ui/textarea.tsx +26 -0
  190. package/dist/kits/blocks/components/ui/theme-selector.tsx +247 -0
  191. package/dist/kits/blocks/components/ui/theme-toggle.tsx +74 -0
  192. package/dist/kits/blocks/components/ui/toaster.tsx +7 -0
  193. package/dist/kits/blocks/lib/themes.ts +399 -0
  194. package/dist/kits/blocks/lib/themes_old.ts +37 -0
  195. package/dist/kits/blocks/lib/utils.ts +9 -0
  196. package/dist/kits/blocks/next.config.ts +11 -0
  197. package/dist/kits/blocks/notes/THEME_GUIDE.md +29 -0
  198. package/dist/kits/blocks/notes/THEMING_CONVERSION_SUMMARY.md +14 -0
  199. package/dist/kits/blocks/package-deps.json +22 -0
  200. package/dist/kits/blocks/public/placeholders/gallery/hero-pexels-broken-9945014.avif +0 -0
  201. package/dist/kits/blocks/public/placeholders/gallery/pexels-googledeepmind-25626431.jpg +0 -0
  202. package/dist/kits/blocks/public/placeholders/gallery/pexels-googledeepmind-25626432.jpg +0 -0
  203. package/dist/kits/blocks/public/placeholders/gallery/pexels-googledeepmind-25626434.jpg +0 -0
  204. package/dist/kits/blocks/public/placeholders/gallery/pexels-googledeepmind-25626436.jpg +0 -0
  205. package/dist/kits/blocks/public/placeholders/product_launch/feature_1.png +0 -0
  206. package/dist/kits/blocks/public/placeholders/product_launch/feature_2.png +0 -0
  207. package/dist/kits/blocks/public/placeholders/product_launch/feature_3.png +0 -0
  208. package/dist/kits/blocks/public/placeholders/product_launch/feature_4.png +0 -0
  209. package/dist/kits/blocks/public/placeholders/product_launch/hero.png +0 -0
  210. package/dist/kits/blocks/public/placeholders/saas_dashboard/analytics.png +0 -0
  211. package/dist/kits/blocks/public/placeholders/saas_dashboard/chat.png +0 -0
  212. package/dist/kits/blocks/public/placeholders/saas_dashboard/projectBoard.png +0 -0
  213. package/dist/kits/data/.gitkeep +0 -0
  214. package/dist/kits/data/README.md +80 -0
  215. package/dist/kits/data/app/(protected)/admin/posts/page.tsx +5 -0
  216. package/dist/kits/data/app/(protected)/admin/users/page.tsx +5 -0
  217. package/dist/kits/data/app/api/posts/[id]/route.ts +83 -0
  218. package/dist/kits/data/app/api/posts/route.ts +138 -0
  219. package/dist/kits/data/app/api/seed-demo/route.ts +45 -0
  220. package/dist/kits/data/app/api/users/[id]/route.ts +127 -0
  221. package/dist/kits/data/app/api/users/check-email/route.ts +18 -0
  222. package/dist/kits/data/app/api/users/check-unique/route.ts +27 -0
  223. package/dist/kits/data/app/api/users/route.ts +79 -0
  224. package/dist/kits/data/app/examples/demo/README.md +4 -0
  225. package/dist/kits/data/app/examples/demo/create-post-form.tsx +106 -0
  226. package/dist/kits/data/app/examples/demo/page.tsx +118 -0
  227. package/dist/kits/data/app/examples/demo/seed-demo-button.tsx +37 -0
  228. package/dist/kits/data/components/admin/posts-manager.tsx +719 -0
  229. package/dist/kits/data/components/admin/users-manager.tsx +432 -0
  230. package/dist/kits/data/lib/prisma.ts +15 -0
  231. package/dist/kits/data/lib/server/result.ts +90 -0
  232. package/dist/kits/data/package-deps.json +11 -0
  233. package/dist/kits/data/scripts/seed-demo.mjs +41 -0
  234. package/dist/kits/forms/.gitkeep +0 -0
  235. package/dist/kits/forms/README.md +49 -0
  236. package/dist/kits/forms/app/.gitkeep +0 -0
  237. package/dist/kits/forms/app/api/wizard/route.ts +71 -0
  238. package/dist/kits/forms/app/examples/forms/basic/page.tsx +124 -0
  239. package/dist/kits/forms/app/examples/forms/server-action/form-client.tsx +28 -0
  240. package/dist/kits/forms/app/examples/forms/server-action/page.tsx +71 -0
  241. package/dist/kits/forms/app/examples/forms/wizard/page.tsx +15 -0
  242. package/dist/kits/forms/app/examples/forms/wizard/wizard-client.tsx +2 -0
  243. package/dist/kits/forms/components/.gitkeep +0 -0
  244. package/dist/kits/forms/components/examples/wizard-client.tsx +231 -0
  245. package/dist/kits/forms/components/hooks/useCheckUnique.ts +79 -0
  246. package/dist/kits/forms/components/ui/button.tsx +122 -0
  247. package/dist/kits/forms/components/ui/checkbox.tsx +30 -0
  248. package/dist/kits/forms/components/ui/form/context.ts +33 -0
  249. package/dist/kits/forms/components/ui/form/form-control.tsx +28 -0
  250. package/dist/kits/forms/components/ui/form/form-description.tsx +22 -0
  251. package/dist/kits/forms/components/ui/form/form-field.tsx +36 -0
  252. package/dist/kits/forms/components/ui/form/form-item.tsx +21 -0
  253. package/dist/kits/forms/components/ui/form/form-label.tsx +24 -0
  254. package/dist/kits/forms/components/ui/form/form-message.tsx +29 -0
  255. package/dist/kits/forms/components/ui/form/form.tsx +26 -0
  256. package/dist/kits/forms/components/ui/input.tsx +27 -0
  257. package/dist/kits/forms/components/ui/label.tsx +29 -0
  258. package/dist/kits/forms/components/ui/select.tsx +25 -0
  259. package/dist/kits/forms/components/ui/switch.tsx +78 -0
  260. package/dist/kits/forms/components/ui/textarea.tsx +26 -0
  261. package/dist/kits/forms/lib/.gitkeep +0 -0
  262. package/dist/kits/forms/lib/forms/map-errors.ts +29 -0
  263. package/dist/kits/forms/lib/prisma.ts +16 -0
  264. package/dist/kits/forms/lib/utils.ts +9 -0
  265. package/dist/kits/forms/lib/validation/forms.ts +88 -0
  266. package/dist/kits/forms/lib/validation/wizard.ts +32 -0
  267. package/dist/kits/forms/package-deps.json +17 -0
  268. package/dist/utils/file-operations.d.ts +18 -0
  269. package/dist/utils/file-operations.d.ts.map +1 -0
  270. package/dist/utils/file-operations.js +327 -0
  271. package/dist/utils/file-operations.js.map +1 -0
  272. package/dist/utils/installation-tracker.d.ts +26 -0
  273. package/dist/utils/installation-tracker.d.ts.map +1 -0
  274. package/dist/utils/installation-tracker.js +98 -0
  275. package/dist/utils/installation-tracker.js.map +1 -0
  276. package/package.json +51 -21
  277. package/index.js +0 -1
@@ -0,0 +1,120 @@
1
+ "use client";
2
+
3
+ import React from "react";
4
+ import Link from "next/link";
5
+ import { Button } from "@/components/ui/button";
6
+ import { Card } from "@/components/ui/card";
7
+ import { cn } from "@/lib/utils";
8
+ import { Check } from "lucide-react";
9
+
10
+ export interface PricingCardProps {
11
+ /** Optional id and root className */
12
+ id?: string;
13
+ className?: string;
14
+
15
+ /** Header text/title of the pricing plan */
16
+ pricingCardTitle?: string;
17
+ /** Price text for the pricing plan */
18
+ pricingCardPrice?: string;
19
+ /** Array of features included in the pricing plan */
20
+ pricingCardFeatures?: string[];
21
+ /** Label text for the pricing call-to-action button */
22
+ pricingCardCTALabel?: string;
23
+ /** URL/href for the pricing call-to-action button */
24
+ pricingCardCTAHref?: string;
25
+ /** Whether this is the featured/popular plan */
26
+ isPopular?: boolean;
27
+
28
+ /** Styling configuration objects */
29
+ card?: { className?: string };
30
+ header?: { className?: string };
31
+ title?: { className?: string };
32
+ price?: { className?: string };
33
+ features?: { className?: string };
34
+ featureItem?: { className?: string };
35
+ cta?: {
36
+ variant?:
37
+ | "default"
38
+ | "destructive"
39
+ | "outline"
40
+ | "secondary"
41
+ | "ghost"
42
+ | "link";
43
+ size?: "default" | "sm" | "lg" | "icon";
44
+ className?: string;
45
+ /** Forward-through escape hatch matching Button */
46
+ unstyled?: boolean;
47
+ style?: React.CSSProperties;
48
+ };
49
+ popularBadge?: { className?: string };
50
+ }
51
+
52
+ export function PricingCard({
53
+ id,
54
+ className,
55
+ pricingCardTitle = "Basic Plan",
56
+ pricingCardPrice = "$9.99",
57
+ pricingCardFeatures = ["Feature 1", "Feature 2", "Feature 3"],
58
+ pricingCardCTALabel = "Select Plan",
59
+ pricingCardCTAHref = "#contact",
60
+ isPopular = false,
61
+ card = {
62
+ className:
63
+ "relative bg-card text-card-foreground border border-border rounded-lg shadow-md hover:shadow-lg transition-shadow duration-200",
64
+ },
65
+ header = { className: "p-6 text-center border-b border-border" },
66
+ title = { className: "text-xl font-bold text-foreground mb-2" },
67
+ price = { className: "text-3xl font-bold text-foreground mb-4" },
68
+ features = { className: "p-6 space-y-3" },
69
+ featureItem = {
70
+ className: "flex items-center text-muted-foreground text-sm",
71
+ },
72
+ cta = {
73
+ variant: "default",
74
+ size: "lg",
75
+ className:
76
+ "w-full bg-primary text-primary-foreground hover:bg-primary/90 font-medium shadow-md hover:shadow-lg transition-all duration-200 hover:-translate-y-0.5",
77
+ },
78
+ popularBadge = {
79
+ className:
80
+ "absolute -top-3 left-1/2 transform -translate-x-1/2 bg-primary text-primary-foreground px-4 py-1 rounded-full text-sm font-medium",
81
+ },
82
+ }: PricingCardProps) {
83
+ return (
84
+ <Card id={id} className={cn(card.className, className, "rounded-lg")}>
85
+ {isPopular && <div className={popularBadge.className}>Most Popular</div>}
86
+
87
+ <div className={header.className}>
88
+ <h3 className={title.className}>{pricingCardTitle}</h3>
89
+ <div className={price.className}>{pricingCardPrice}</div>
90
+ </div>
91
+
92
+ <div className={features.className}>
93
+ {pricingCardFeatures?.map((feature, index) => (
94
+ <div key={index} className={featureItem.className}>
95
+ <Check className="mr-3 h-4 w-4 flex-shrink-0 text-green-500" />
96
+ <span>{feature}</span>
97
+ </div>
98
+ ))}
99
+ </div>
100
+
101
+ <div className="p-6 pt-0">
102
+ <Button
103
+ asChild
104
+ variant={cta.variant}
105
+ size={cta.size}
106
+ className={cn(
107
+ // Allow presets to take over with var hooks from Button
108
+ "border-[var(--btn-border)] focus-visible:ring-[var(--btn-ring)]",
109
+ cta.className,
110
+ "hover:animate-none motion-safe:animate-none",
111
+ )}
112
+ {...(cta.unstyled ? { unstyled: true } : {})}
113
+ style={cta.style}
114
+ >
115
+ <Link href={pricingCardCTAHref || "#"}>{pricingCardCTALabel}</Link>
116
+ </Button>
117
+ </div>
118
+ </Card>
119
+ );
120
+ }
@@ -0,0 +1,25 @@
1
+ import * as React from "react";
2
+ import { cn } from "@/lib/utils";
3
+
4
+ export type SelectProps = React.SelectHTMLAttributes<HTMLSelectElement>;
5
+
6
+ const Select = React.forwardRef<HTMLSelectElement, SelectProps>(
7
+ ({ className, children, ...props }, ref) => {
8
+ return (
9
+ <select
10
+ ref={ref}
11
+ className={cn(
12
+ "border-input bg-background ring-offset-background placeholder:text-muted-foreground focus-visible:ring-ring aria-invalid:border-destructive aria-invalid:focus-visible:ring-destructive/30 dark:aria-invalid:focus-visible:ring-destructive/40 flex h-10 w-full rounded-md border px-3 py-2 text-sm focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",
13
+ "bg-[var(--input-bg)] text-[var(--input-fg)]",
14
+ className,
15
+ )}
16
+ {...props}
17
+ >
18
+ {children}
19
+ </select>
20
+ );
21
+ },
22
+ );
23
+ Select.displayName = "Select";
24
+
25
+ export { Select };
@@ -0,0 +1,13 @@
1
+ import { cn } from "@/lib/utils";
2
+
3
+ export function Skeleton({
4
+ className,
5
+ ...props
6
+ }: React.HTMLAttributes<HTMLDivElement>) {
7
+ return (
8
+ <div
9
+ className={cn("bg-muted animate-pulse rounded-md", className)}
10
+ {...props}
11
+ />
12
+ );
13
+ }
@@ -0,0 +1,78 @@
1
+ import * as React from "react";
2
+ import { cn } from "@/lib/utils";
3
+
4
+ export type SwitchProps = React.InputHTMLAttributes<HTMLInputElement> & {
5
+ isLoading?: boolean;
6
+ };
7
+
8
+ const Switch = React.forwardRef<HTMLInputElement, SwitchProps>(
9
+ ({ className, isLoading, disabled, ...props }, ref) => {
10
+ const checked = !!(props as any).checked;
11
+ const isDisabled = !!disabled || !!isLoading;
12
+ return (
13
+ <label
14
+ className={cn(
15
+ "focus-within:ring-offset-background inline-flex items-center rounded-full focus-within:ring-2 focus-within:ring-[var(--ring)] focus-within:ring-offset-2",
16
+ isDisabled ? "cursor-not-allowed opacity-80" : "cursor-pointer",
17
+ className,
18
+ )}
19
+ >
20
+ <input
21
+ type="checkbox"
22
+ role="switch"
23
+ ref={ref}
24
+ className="sr-only"
25
+ disabled={isDisabled}
26
+ aria-busy={isLoading ? "true" : undefined}
27
+ {...(props as any)}
28
+ />
29
+ <span
30
+ aria-hidden
31
+ className={cn(
32
+ "relative inline-flex h-6 w-11 flex-shrink-0 rounded-full transition-colors duration-200",
33
+ checked ? "bg-[var(--primary)]" : "bg-[var(--primary)]/80",
34
+ )}
35
+ >
36
+ <span
37
+ className={cn(
38
+ // Thumb should adjust for theme to guarantee contrast
39
+ "absolute top-0.5 left-0.5 h-5 w-5 transform rounded-full bg-[var(--switch-thumb)] shadow-md transition-transform duration-200 ease-in-out",
40
+ checked ? "translate-x-5" : "translate-x-0",
41
+ )}
42
+ />
43
+
44
+ {/* Loading indicator centered inside the switch when isLoading */}
45
+ {isLoading && (
46
+ <span className="absolute inset-0 flex items-center justify-center">
47
+ <svg
48
+ className="h-4 w-4 animate-spin text-white"
49
+ xmlns="http://www.w3.org/2000/svg"
50
+ fill="none"
51
+ viewBox="0 0 24 24"
52
+ aria-hidden
53
+ >
54
+ <circle
55
+ className="opacity-25"
56
+ cx="12"
57
+ cy="12"
58
+ r="10"
59
+ stroke="currentColor"
60
+ strokeWidth="4"
61
+ />
62
+ <path
63
+ className="opacity-75"
64
+ fill="currentColor"
65
+ d="M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"
66
+ />
67
+ </svg>
68
+ </span>
69
+ )}
70
+ </span>
71
+ </label>
72
+ );
73
+ },
74
+ );
75
+
76
+ Switch.displayName = "Switch";
77
+
78
+ export { Switch };
@@ -0,0 +1,98 @@
1
+ import * as React from "react";
2
+ import { cn } from "@/lib/utils";
3
+
4
+ export function Table({
5
+ className,
6
+ ...props
7
+ }: React.HTMLAttributes<HTMLTableElement>) {
8
+ return (
9
+ <div className="relative w-full overflow-auto">
10
+ <table
11
+ className={cn(
12
+ "w-full caption-bottom text-sm",
13
+ // Optional fg override
14
+ "text-[var(--table-fg)]",
15
+ className,
16
+ )}
17
+ {...props}
18
+ />
19
+ </div>
20
+ );
21
+ }
22
+
23
+ export function TableHeader(
24
+ props: React.HTMLAttributes<HTMLTableSectionElement>,
25
+ ) {
26
+ return (
27
+ <thead
28
+ className={cn(
29
+ "[&_tr]:border-b",
30
+ // Variable hooks for border color and head text
31
+ "text-[var(--table-head-fg)] [&_tr]:border-[var(--table-border)]",
32
+ )}
33
+ {...props}
34
+ />
35
+ );
36
+ }
37
+
38
+ export function TableBody(
39
+ props: React.HTMLAttributes<HTMLTableSectionElement>,
40
+ ) {
41
+ return (
42
+ <tbody
43
+ className={cn(
44
+ "[&_tr:last-child]:border-0",
45
+ "[&_tr]:border-[var(--table-border)]",
46
+ )}
47
+ {...props}
48
+ />
49
+ );
50
+ }
51
+
52
+ export function TableRow(props: React.HTMLAttributes<HTMLTableRowElement>) {
53
+ return (
54
+ <tr
55
+ className={cn(
56
+ "hover:bg-muted/50 border-b transition-colors",
57
+ "border-[var(--table-border)] hover:bg-[var(--table-row-hover-bg)]",
58
+ )}
59
+ {...props}
60
+ />
61
+ );
62
+ }
63
+
64
+ export function TableHead(props: React.ThHTMLAttributes<HTMLTableCellElement>) {
65
+ return (
66
+ <th
67
+ className={cn(
68
+ "text-muted-foreground h-10 px-4 text-left align-middle font-medium [&:has([role=checkbox])]:pr-0",
69
+ "text-[var(--table-head-fg)]",
70
+ )}
71
+ {...props}
72
+ />
73
+ );
74
+ }
75
+
76
+ export function TableCell(props: React.TdHTMLAttributes<HTMLTableCellElement>) {
77
+ return (
78
+ <td
79
+ className={cn(
80
+ "p-4 align-middle [&:has([role=checkbox])]:pr-0",
81
+ "text-[var(--table-fg)]",
82
+ )}
83
+ {...props}
84
+ />
85
+ );
86
+ }
87
+
88
+ export function TableCaption(props: React.HTMLAttributes<HTMLElement>) {
89
+ return (
90
+ <caption
91
+ className={cn(
92
+ "text-muted-foreground mt-4 text-sm",
93
+ "text-[var(--table-muted-fg)]",
94
+ )}
95
+ {...props}
96
+ />
97
+ );
98
+ }
@@ -0,0 +1,108 @@
1
+ "use client";
2
+
3
+ import React from "react";
4
+ import { cn } from "@/lib/utils";
5
+
6
+ export interface TestimonialCardProps {
7
+ /** Optional id for root card */
8
+ id?: string;
9
+ /** Optional root className merged with card.className */
10
+ className?: string;
11
+
12
+ /** Legacy props (kept for backward compatibility) */
13
+ testimonialText?: string;
14
+ testimonialAuthor?: string;
15
+ testimonialAuthorInitials?: string;
16
+
17
+ /** New props to align with upgraded sections */
18
+ quote?: string;
19
+ name?: string;
20
+ role?: string;
21
+
22
+ /** Styling configuration objects */
23
+ card?: {
24
+ className?: string;
25
+ };
26
+ content?: {
27
+ className?: string;
28
+ };
29
+ text?: {
30
+ className?: string;
31
+ };
32
+ author?: {
33
+ className?: string;
34
+ };
35
+ avatar?: {
36
+ className?: string;
37
+ };
38
+ avatarText?: {
39
+ className?: string;
40
+ };
41
+ }
42
+
43
+ function getInitials(from?: string) {
44
+ if (!from) return undefined;
45
+ const parts = from.trim().split(/\s+/);
46
+ const first = parts[0]?.[0] || "";
47
+ const last = parts.length > 1 ? parts[parts.length - 1]?.[0] || "" : "";
48
+ const res = `${first}${last}`.toUpperCase();
49
+ return res || undefined;
50
+ }
51
+
52
+ export function TestimonialCard({
53
+ id,
54
+ className,
55
+ // legacy defaults
56
+ testimonialText = "Lorem ipsum dolor sit amet! Consectetur adipiscing elit.",
57
+ testimonialAuthor = " - Cillum Dolore",
58
+ testimonialAuthorInitials = "JD",
59
+ // new props (no defaults, we derive below)
60
+ quote,
61
+ name,
62
+ role,
63
+ card = {
64
+ className:
65
+ "bg-card text-card-foreground p-6 rounded-lg border border-border shadow-md transition-transform duration-200 hover:-translate-y-1 bg-[var(--card-bg)] text-[var(--card-fg)] border-[var(--card-border)] shadow-[var(--card-shadow)]",
66
+ },
67
+ content = {
68
+ className: "flex flex-col space-y-4",
69
+ },
70
+ text = {
71
+ className:
72
+ "text-muted-foreground text-base leading-relaxed italic text-[var(--card-fg)]",
73
+ },
74
+ author = {
75
+ className:
76
+ "text-muted-foreground text-sm font-medium text-[var(--card-muted-fg)]",
77
+ },
78
+ avatar = {
79
+ className:
80
+ "w-12 h-12 bg-primary text-primary-foreground rounded-full flex items-center justify-center text-lg font-bold bg-[var(--badge-bg)] text-[var(--badge-fg)] border-[var(--badge-border)]",
81
+ },
82
+ avatarText = {
83
+ className: "text-white font-bold",
84
+ },
85
+ }: TestimonialCardProps) {
86
+ const displayText = quote ?? testimonialText;
87
+ const computedAuthor =
88
+ testimonialAuthor ??
89
+ (name ? ` - ${name}${role ? `, ${role}` : ""}` : " - Cillum Dolore");
90
+ const initials = testimonialAuthorInitials ?? getInitials(name) ?? "JD";
91
+
92
+ return (
93
+ <div id={id} className={cn(card.className, className)}>
94
+ <div className={content.className}>
95
+ {/* Avatar */}
96
+ <div className={avatar.className}>
97
+ <span className={avatarText.className}>{initials}</span>
98
+ </div>
99
+
100
+ {/* Testimonial Text */}
101
+ <p className={text.className}>&ldquo;{displayText}&rdquo;</p>
102
+
103
+ {/* Author */}
104
+ <p className={author.className}>{computedAuthor}</p>
105
+ </div>
106
+ </div>
107
+ );
108
+ }
@@ -0,0 +1,26 @@
1
+ import * as React from "react";
2
+
3
+ import { cn } from "@/lib/utils";
4
+
5
+ export type TextareaProps = React.TextareaHTMLAttributes<HTMLTextAreaElement>;
6
+
7
+ const Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(
8
+ ({ className, ...props }, ref) => {
9
+ return (
10
+ <textarea
11
+ className={cn(
12
+ // Base structural + token fallbacks
13
+ "border-input bg-background ring-offset-background placeholder:text-muted-foreground focus-visible:ring-ring aria-invalid:border-destructive aria-invalid:focus-visible:ring-destructive/30 dark:aria-invalid:focus-visible:ring-destructive/40 flex min-h-[80px] w-full rounded-md border px-3 py-2 text-sm focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",
14
+ // CSS variable hooks (preset-first). When vars are unset, tokens above apply.
15
+ "border-[var(--input-border)] bg-[var(--input-bg)] text-[var(--input-fg)] placeholder:text-[var(--input-placeholder)] focus-visible:ring-[var(--input-focus-ring)] focus-visible:ring-offset-[var(--input-ring-offset)]",
16
+ className,
17
+ )}
18
+ ref={ref}
19
+ {...props}
20
+ />
21
+ );
22
+ },
23
+ );
24
+ Textarea.displayName = "Textarea";
25
+
26
+ export { Textarea };