@hanzo/ui 5.3.25 → 5.3.28

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 (326) hide show
  1. package/content/index.ts +26 -0
  2. package/docs/_registry/index.ts +426 -0
  3. package/docs/_registry/layout/docs-min.tsx +197 -0
  4. package/docs/_registry/layout/page-min.tsx +128 -0
  5. package/docs/components/accordion.tsx +118 -0
  6. package/docs/components/banner.tsx +144 -0
  7. package/docs/components/callout.tsx +112 -0
  8. package/docs/components/card.tsx +52 -0
  9. package/docs/components/codeblock.tsx +258 -0
  10. package/docs/components/dialog/search-algolia.tsx +132 -0
  11. package/docs/components/dialog/search-default.tsx +131 -0
  12. package/docs/components/dialog/search-orama.tsx +143 -0
  13. package/docs/components/dialog/search.tsx +529 -0
  14. package/docs/components/dynamic-codeblock.tsx +129 -0
  15. package/docs/components/files.tsx +81 -0
  16. package/docs/components/github-info.tsx +107 -0
  17. package/docs/components/heading.tsx +33 -0
  18. package/docs/components/image-zoom.css +77 -0
  19. package/docs/components/image-zoom.tsx +58 -0
  20. package/docs/components/index.ts +7 -0
  21. package/docs/components/inline-toc.tsx +48 -0
  22. package/docs/components/sidebar/base.tsx +451 -0
  23. package/docs/components/sidebar/link-item.tsx +65 -0
  24. package/docs/components/sidebar/page-tree.tsx +113 -0
  25. package/docs/components/sidebar/tabs/dropdown.tsx +109 -0
  26. package/docs/components/sidebar/tabs/index.tsx +89 -0
  27. package/docs/components/steps.tsx +9 -0
  28. package/docs/components/tabs.tsx +203 -0
  29. package/docs/components/toc/clerk.tsx +173 -0
  30. package/docs/components/toc/default.tsx +57 -0
  31. package/docs/components/toc/index.tsx +136 -0
  32. package/docs/components/type-table.tsx +174 -0
  33. package/docs/components/ui/accordion.tsx +88 -0
  34. package/docs/components/ui/button.tsx +28 -0
  35. package/docs/components/ui/collapsible.tsx +42 -0
  36. package/docs/components/ui/navigation-menu.tsx +83 -0
  37. package/docs/components/ui/popover.tsx +32 -0
  38. package/docs/components/ui/scroll-area.tsx +59 -0
  39. package/docs/components/ui/tabs.tsx +145 -0
  40. package/docs/contexts/i18n.tsx +56 -0
  41. package/docs/contexts/search.tsx +165 -0
  42. package/docs/contexts/tree.tsx +65 -0
  43. package/docs/css/black.css +39 -0
  44. package/docs/css/catppuccin.css +49 -0
  45. package/docs/css/colors/index.css +51 -0
  46. package/docs/css/dusk.css +47 -0
  47. package/docs/css/layouts/docs.css +1 -0
  48. package/docs/css/layouts/home.css +1 -0
  49. package/docs/css/layouts/notebook.css +1 -0
  50. package/docs/css/neutral.css +7 -0
  51. package/docs/css/ocean.css +48 -0
  52. package/docs/css/preset.css +305 -0
  53. package/docs/css/purple.css +39 -0
  54. package/docs/css/shadcn.css +36 -0
  55. package/docs/css/shiki.css +90 -0
  56. package/docs/css/solar.css +75 -0
  57. package/docs/css/style.css +9 -0
  58. package/docs/css/vitepress.css +77 -0
  59. package/docs/i18n.tsx +30 -0
  60. package/docs/icons.tsx +354 -0
  61. package/docs/layouts/docs/client.tsx +129 -0
  62. package/docs/layouts/docs/index.tsx +321 -0
  63. package/docs/layouts/docs/page/client.tsx +376 -0
  64. package/docs/layouts/docs/page/index.tsx +251 -0
  65. package/docs/layouts/docs/sidebar.tsx +265 -0
  66. package/docs/layouts/home/client.tsx +375 -0
  67. package/docs/layouts/home/index.tsx +51 -0
  68. package/docs/layouts/home/navbar.tsx +55 -0
  69. package/docs/layouts/notebook/client.tsx +281 -0
  70. package/docs/layouts/notebook/index.tsx +461 -0
  71. package/docs/layouts/notebook/page/client.tsx +375 -0
  72. package/docs/layouts/notebook/page/index.tsx +251 -0
  73. package/docs/layouts/notebook/sidebar.tsx +248 -0
  74. package/docs/layouts/shared/index.tsx +89 -0
  75. package/docs/layouts/shared/language-toggle.tsx +66 -0
  76. package/docs/layouts/shared/link-item.tsx +119 -0
  77. package/docs/layouts/shared/search-toggle.tsx +78 -0
  78. package/docs/layouts/shared/theme-toggle.tsx +86 -0
  79. package/docs/mdx.server.tsx +37 -0
  80. package/docs/mdx.tsx +97 -0
  81. package/docs/og.tsx +101 -0
  82. package/docs/page.tsx +85 -0
  83. package/docs/provider/base.tsx +173 -0
  84. package/docs/provider/next.tsx +23 -0
  85. package/docs/provider/react-router.tsx +23 -0
  86. package/docs/provider/tanstack.tsx +23 -0
  87. package/docs/provider/waku.tsx +23 -0
  88. package/docs/source.ts +3 -0
  89. package/docs/theme/typography/LICENSE +21 -0
  90. package/docs/theme/typography/index.ts +201 -0
  91. package/docs/theme/typography/styles.ts +449 -0
  92. package/docs/utils/cn.ts +1 -0
  93. package/docs/utils/is-active.ts +23 -0
  94. package/docs/utils/merge-refs.ts +15 -0
  95. package/docs/utils/use-copy-button.ts +39 -0
  96. package/docs/utils/use-footer-items.ts +27 -0
  97. package/docs/utils/use-is-scroll-top.ts +21 -0
  98. package/package.json +8 -2
  99. package/dist/3d/button.js +0 -298
  100. package/dist/3d/button.mjs +0 -273
  101. package/dist/3d/card.js +0 -234
  102. package/dist/3d/card.mjs +0 -207
  103. package/dist/3d/carousel.js +0 -371
  104. package/dist/3d/carousel.mjs +0 -344
  105. package/dist/3d/grid.js +0 -362
  106. package/dist/3d/grid.mjs +0 -337
  107. package/dist/3d/index.js +0 -1518
  108. package/dist/3d/index.mjs +0 -1472
  109. package/dist/3d/marquee.js +0 -352
  110. package/dist/3d/marquee.mjs +0 -327
  111. package/dist/3d/pin.js +0 -46
  112. package/dist/3d/pin.mjs +0 -24
  113. package/dist/accordion.js +0 -80
  114. package/dist/accordion.mjs +0 -55
  115. package/dist/alert-dialog.js +0 -220
  116. package/dist/alert-dialog.mjs +0 -187
  117. package/dist/alert.js +0 -68
  118. package/dist/alert.mjs +0 -64
  119. package/dist/animation/animated-background.js +0 -424
  120. package/dist/animation/animated-background.mjs +0 -418
  121. package/dist/animation/animated-beam.js +0 -119
  122. package/dist/animation/animated-beam.mjs +0 -97
  123. package/dist/animation/animated-cursor.js +0 -275
  124. package/dist/animation/animated-cursor.mjs +0 -270
  125. package/dist/animation/animated-icon.js +0 -357
  126. package/dist/animation/animated-icon.mjs +0 -351
  127. package/dist/animation/animated-list.js +0 -339
  128. package/dist/animation/animated-list.mjs +0 -333
  129. package/dist/animation/animated-number.js +0 -283
  130. package/dist/animation/animated-number.mjs +0 -277
  131. package/dist/animation/animated-testimonials.js +0 -97
  132. package/dist/animation/animated-testimonials.mjs +0 -75
  133. package/dist/animation/animated-tooltip.js +0 -67
  134. package/dist/animation/animated-tooltip.mjs +0 -45
  135. package/dist/animation/apple-cards-carousel.js +0 -308
  136. package/dist/animation/apple-cards-carousel.mjs +0 -285
  137. package/dist/animation/apple-hello-effect.js +0 -60
  138. package/dist/animation/apple-hello-effect.mjs +0 -38
  139. package/dist/animation/index.js +0 -1952
  140. package/dist/animation/index.mjs +0 -1921
  141. package/dist/avatar.js +0 -71
  142. package/dist/avatar.mjs +0 -47
  143. package/dist/badge.js +0 -66
  144. package/dist/badge.mjs +0 -40
  145. package/dist/blocks/index.js +0 -1665
  146. package/dist/blocks/index.mjs +0 -1626
  147. package/dist/breadcrumb.js +0 -107
  148. package/dist/breadcrumb.mjs +0 -99
  149. package/dist/calendar.js +0 -189
  150. package/dist/calendar.mjs +0 -164
  151. package/dist/carousel.js +0 -278
  152. package/dist/carousel.mjs +0 -249
  153. package/dist/checkbox.js +0 -60
  154. package/dist/checkbox.mjs +0 -35
  155. package/dist/code/block.js +0 -226
  156. package/dist/code/block.mjs +0 -203
  157. package/dist/code/compare.js +0 -446
  158. package/dist/code/compare.mjs +0 -423
  159. package/dist/code/diff.js +0 -430
  160. package/dist/code/diff.mjs +0 -407
  161. package/dist/code/editor.js +0 -243
  162. package/dist/code/editor.mjs +0 -218
  163. package/dist/code/explorer.js +0 -291
  164. package/dist/code/explorer.mjs +0 -268
  165. package/dist/code/index.js +0 -2551
  166. package/dist/code/index.mjs +0 -2510
  167. package/dist/code/preview.js +0 -400
  168. package/dist/code/preview.mjs +0 -377
  169. package/dist/code/snippet.js +0 -274
  170. package/dist/code/snippet.mjs +0 -250
  171. package/dist/code/tabs.js +0 -75
  172. package/dist/code/tabs.mjs +0 -53
  173. package/dist/code/terminal.js +0 -437
  174. package/dist/code/terminal.mjs +0 -414
  175. package/dist/collapsible.js +0 -33
  176. package/dist/collapsible.mjs +0 -9
  177. package/dist/command.js +0 -262
  178. package/dist/command.mjs +0 -232
  179. package/dist/context-menu.js +0 -207
  180. package/dist/context-menu.mjs +0 -171
  181. package/dist/device/index.js +0 -3
  182. package/dist/device/index.mjs +0 -2
  183. package/dist/dialog.js +0 -151
  184. package/dist/dialog.mjs +0 -121
  185. package/dist/dock/basic.js +0 -174
  186. package/dist/dock/basic.mjs +0 -151
  187. package/dist/dock/index.js +0 -628
  188. package/dist/dock/index.mjs +0 -601
  189. package/dist/dock/limelight-nav.js +0 -295
  190. package/dist/dock/limelight-nav.mjs +0 -274
  191. package/dist/dock/macos.js +0 -141
  192. package/dist/dock/macos.mjs +0 -118
  193. package/dist/dock/menu.js +0 -70
  194. package/dist/dock/menu.mjs +0 -48
  195. package/dist/dock/message.js +0 -144
  196. package/dist/dock/message.mjs +0 -122
  197. package/dist/drawer.js +0 -115
  198. package/dist/drawer.mjs +0 -103
  199. package/dist/dropdown-menu.js +0 -202
  200. package/dist/dropdown-menu.mjs +0 -166
  201. package/dist/finance/AdvancedChart.js +0 -48
  202. package/dist/finance/AdvancedChart.mjs +0 -46
  203. package/dist/finance/CompanyProfile.js +0 -48
  204. package/dist/finance/CompanyProfile.mjs +0 -46
  205. package/dist/finance/CryptoScreener.js +0 -45
  206. package/dist/finance/CryptoScreener.mjs +0 -43
  207. package/dist/finance/Financials.js +0 -52
  208. package/dist/finance/Financials.mjs +0 -50
  209. package/dist/finance/ForexScreener.js +0 -46
  210. package/dist/finance/ForexScreener.mjs +0 -44
  211. package/dist/finance/MarketOverview.js +0 -104
  212. package/dist/finance/MarketOverview.mjs +0 -102
  213. package/dist/finance/NewsTimeline.js +0 -44
  214. package/dist/finance/NewsTimeline.mjs +0 -42
  215. package/dist/finance/OrderEntry.js +0 -131
  216. package/dist/finance/OrderEntry.mjs +0 -129
  217. package/dist/finance/OrdersHistory.js +0 -64
  218. package/dist/finance/OrdersHistory.mjs +0 -62
  219. package/dist/finance/PositionsList.js +0 -80
  220. package/dist/finance/PositionsList.mjs +0 -78
  221. package/dist/finance/StockScreener.js +0 -46
  222. package/dist/finance/StockScreener.mjs +0 -44
  223. package/dist/finance/SymbolInfo.js +0 -46
  224. package/dist/finance/SymbolInfo.mjs +0 -44
  225. package/dist/finance/TechnicalAnalysis.js +0 -54
  226. package/dist/finance/TechnicalAnalysis.mjs +0 -52
  227. package/dist/finance/TickerTape.js +0 -56
  228. package/dist/finance/TickerTape.mjs +0 -54
  229. package/dist/finance/TradingPanel.js +0 -191
  230. package/dist/finance/TradingPanel.mjs +0 -189
  231. package/dist/finance/index.js +0 -930
  232. package/dist/finance/index.mjs +0 -914
  233. package/dist/form/index.js +0 -155
  234. package/dist/form/index.mjs +0 -125
  235. package/dist/form.js +0 -172
  236. package/dist/form.mjs +0 -142
  237. package/dist/hover-card.js +0 -58
  238. package/dist/hover-card.mjs +0 -34
  239. package/dist/index.js +0 -10179
  240. package/dist/index.mjs +0 -9785
  241. package/dist/input-otp.js +0 -79
  242. package/dist/input-otp.mjs +0 -54
  243. package/dist/lib/utils.js +0 -28
  244. package/dist/lib/utils.mjs +0 -24
  245. package/dist/navigation/index.js +0 -98
  246. package/dist/navigation/index.mjs +0 -79
  247. package/dist/navigation-menu.js +0 -149
  248. package/dist/navigation-menu.mjs +0 -116
  249. package/dist/pattern/grid-pattern.js +0 -333
  250. package/dist/pattern/grid-pattern.mjs +0 -310
  251. package/dist/pattern/index.js +0 -333
  252. package/dist/pattern/index.mjs +0 -310
  253. package/dist/popover.js +0 -63
  254. package/dist/popover.mjs +0 -37
  255. package/dist/primitives/index.js +0 -10179
  256. package/dist/primitives/index.mjs +0 -9785
  257. package/dist/primitives-export.js +0 -10179
  258. package/dist/primitives-export.mjs +0 -9785
  259. package/dist/progress.js +0 -62
  260. package/dist/progress.mjs +0 -37
  261. package/dist/project/gantt.js +0 -65
  262. package/dist/project/gantt.mjs +0 -43
  263. package/dist/project/index.js +0 -636
  264. package/dist/project/index.mjs +0 -611
  265. package/dist/project/kanban.js +0 -597
  266. package/dist/project/kanban.mjs +0 -572
  267. package/dist/project/list.js +0 -35
  268. package/dist/project/list.mjs +0 -12
  269. package/dist/radio-group.js +0 -68
  270. package/dist/radio-group.mjs +0 -45
  271. package/dist/resizable.js +0 -72
  272. package/dist/resizable.mjs +0 -48
  273. package/dist/scroll-area.js +0 -89
  274. package/dist/scroll-area.mjs +0 -66
  275. package/dist/select.js +0 -140
  276. package/dist/select.mjs +0 -111
  277. package/dist/separator.js +0 -59
  278. package/dist/separator.mjs +0 -34
  279. package/dist/sheet.js +0 -148
  280. package/dist/sheet.mjs +0 -117
  281. package/dist/skeleton.js +0 -32
  282. package/dist/skeleton.mjs +0 -27
  283. package/dist/slider.js +0 -99
  284. package/dist/slider.mjs +0 -73
  285. package/dist/sonner.js +0 -34
  286. package/dist/sonner.mjs +0 -29
  287. package/dist/switch.js +0 -62
  288. package/dist/switch.mjs +0 -37
  289. package/dist/table.js +0 -110
  290. package/dist/table.mjs +0 -101
  291. package/dist/tabs.js +0 -82
  292. package/dist/tabs.mjs +0 -57
  293. package/dist/tailwind/index.js +0 -2023
  294. package/dist/tailwind/index.mjs +0 -2011
  295. package/dist/textarea.js +0 -78
  296. package/dist/textarea.mjs +0 -56
  297. package/dist/toggle-group.js +0 -118
  298. package/dist/toggle-group.mjs +0 -93
  299. package/dist/toggle.js +0 -71
  300. package/dist/toggle.mjs +0 -48
  301. package/dist/tooltip.js +0 -67
  302. package/dist/tooltip.mjs +0 -40
  303. package/dist/types/index.js +0 -57
  304. package/dist/types/index.mjs +0 -51
  305. package/dist/ui/announcement.js +0 -129
  306. package/dist/ui/announcement.mjs +0 -107
  307. package/dist/ui/avatar-group.js +0 -88
  308. package/dist/ui/avatar-group.mjs +0 -65
  309. package/dist/ui/banner.js +0 -85
  310. package/dist/ui/banner.mjs +0 -62
  311. package/dist/ui/cursor.js +0 -78
  312. package/dist/ui/cursor.mjs +0 -56
  313. package/dist/ui/index.js +0 -475
  314. package/dist/ui/index.mjs +0 -442
  315. package/dist/ui/marquee.js +0 -74
  316. package/dist/ui/marquee.mjs +0 -52
  317. package/dist/ui/pill.js +0 -85
  318. package/dist/ui/pill.mjs +0 -62
  319. package/dist/ui/spinner.js +0 -28
  320. package/dist/ui/spinner.mjs +0 -26
  321. package/dist/ui/tags.js +0 -101
  322. package/dist/ui/tags.mjs +0 -79
  323. package/dist/ui/ticker.js +0 -73
  324. package/dist/ui/ticker.mjs +0 -51
  325. package/dist/util/index.js +0 -457
  326. package/dist/util/index.mjs +0 -399
package/dist/3d/index.mjs DELETED
@@ -1,1472 +0,0 @@
1
- "use client";
2
- import * as React3 from 'react';
3
- import { cva } from 'class-variance-authority';
4
- import { cn } from '@hanzo/ui/lib/utils';
5
- import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
6
- import { ChevronLeft, ChevronRight } from 'lucide-react';
7
- import { motion } from 'framer-motion';
8
-
9
- var __defProp = Object.defineProperty;
10
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
11
- var button3DVariants = cva(
12
- [
13
- "relative inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium",
14
- "transition-all duration-150 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
15
- "disabled:pointer-events-none disabled:opacity-50 cursor-pointer select-none",
16
- "transform-gpu will-change-transform active:scale-95",
17
- "before:absolute before:inset-0 before:rounded-md before:transition-all before:duration-150",
18
- "after:absolute after:inset-0 after:rounded-md after:transition-all after:duration-150"
19
- ],
20
- {
21
- variants: {
22
- variant: {
23
- default: [
24
- "bg-primary text-primary-foreground shadow-md hover:bg-primary/90",
25
- "before:bg-gradient-to-t before:from-primary/80 before:to-primary before:translate-y-1 before:shadow-lg",
26
- "hover:before:translate-y-0.5 active:before:translate-y-0",
27
- "after:bg-gradient-to-b after:from-white/20 after:to-transparent after:opacity-0",
28
- "hover:after:opacity-100"
29
- ],
30
- destructive: [
31
- "bg-destructive text-destructive-foreground shadow-md hover:bg-destructive/90",
32
- "before:bg-gradient-to-t before:from-destructive/80 before:to-destructive before:translate-y-1 before:shadow-lg",
33
- "hover:before:translate-y-0.5 active:before:translate-y-0",
34
- "after:bg-gradient-to-b after:from-white/20 after:to-transparent after:opacity-0",
35
- "hover:after:opacity-100"
36
- ],
37
- outline: [
38
- "border border-input bg-background text-foreground shadow-sm hover:bg-accent hover:text-accent-foreground",
39
- "before:bg-gradient-to-t before:from-muted/50 before:to-background before:translate-y-1 before:border before:border-input",
40
- "hover:before:translate-y-0.5 active:before:translate-y-0",
41
- "after:bg-gradient-to-b after:from-white/10 after:to-transparent after:opacity-0",
42
- "hover:after:opacity-100"
43
- ],
44
- secondary: [
45
- "bg-secondary text-secondary-foreground shadow-md hover:bg-secondary/80",
46
- "before:bg-gradient-to-t before:from-secondary/80 before:to-secondary before:translate-y-1 before:shadow-lg",
47
- "hover:before:translate-y-0.5 active:before:translate-y-0",
48
- "after:bg-gradient-to-b after:from-white/20 after:to-transparent after:opacity-0",
49
- "hover:after:opacity-100"
50
- ],
51
- ghost: [
52
- "text-foreground hover:bg-accent hover:text-accent-foreground",
53
- "before:bg-gradient-to-t before:from-accent/30 before:to-accent/10 before:translate-y-1 before:opacity-0",
54
- "hover:before:opacity-100 hover:before:translate-y-0.5 active:before:translate-y-0",
55
- "after:bg-gradient-to-b after:from-white/10 after:to-transparent after:opacity-0",
56
- "hover:after:opacity-50"
57
- ],
58
- link: [
59
- "text-primary underline-offset-4 hover:underline",
60
- "before:hidden after:hidden"
61
- ],
62
- neon: [
63
- "bg-gradient-to-r from-purple-500 to-pink-500 text-white shadow-lg",
64
- "before:bg-gradient-to-t before:from-purple-600 before:to-pink-600 before:translate-y-1 before:shadow-lg",
65
- "hover:before:translate-y-0.5 active:before:translate-y-0",
66
- "after:bg-gradient-to-b after:from-white/30 after:to-transparent after:opacity-0",
67
- "hover:after:opacity-100",
68
- "hover:shadow-purple-500/25 hover:shadow-2xl"
69
- ],
70
- glass: [
71
- "bg-white/10 backdrop-blur-md border border-white/20 text-foreground shadow-lg",
72
- "before:bg-gradient-to-t before:from-white/5 before:to-white/20 before:translate-y-1 before:backdrop-blur-md before:border before:border-white/20",
73
- "hover:before:translate-y-0.5 active:before:translate-y-0",
74
- "after:bg-gradient-to-b after:from-white/30 after:to-transparent after:opacity-0",
75
- "hover:after:opacity-100"
76
- ],
77
- gradient: [
78
- "bg-gradient-to-r from-blue-500 via-purple-500 to-pink-500 text-white shadow-lg",
79
- "before:bg-gradient-to-t before:from-blue-600 before:via-purple-600 before:to-pink-600 before:translate-y-1 before:shadow-lg",
80
- "hover:before:translate-y-0.5 active:before:translate-y-0",
81
- "after:bg-gradient-to-b after:from-white/20 after:to-transparent after:opacity-0",
82
- "hover:after:opacity-100",
83
- "hover:bg-gradient-to-r hover:from-blue-400 hover:via-purple-400 hover:to-pink-400"
84
- ]
85
- },
86
- size: {
87
- default: "h-10 px-4 py-2",
88
- sm: "h-9 rounded-md px-3",
89
- lg: "h-11 rounded-md px-8",
90
- xl: "h-12 rounded-lg px-10 text-base",
91
- icon: "h-10 w-10"
92
- },
93
- depth: {
94
- none: "before:translate-y-0",
95
- sm: "before:translate-y-0.5 hover:before:translate-y-0 active:before:translate-y-0",
96
- default: "before:translate-y-1 hover:before:translate-y-0.5 active:before:translate-y-0",
97
- lg: "before:translate-y-1.5 hover:before:translate-y-0.5 active:before:translate-y-0",
98
- xl: "before:translate-y-2 hover:before:translate-y-1 active:before:translate-y-0"
99
- }
100
- },
101
- defaultVariants: {
102
- variant: "default",
103
- size: "default",
104
- depth: "default"
105
- }
106
- }
107
- );
108
- var Button3D = React3.forwardRef(
109
- ({
110
- className,
111
- variant,
112
- size,
113
- depth,
114
- tiltOnHover = false,
115
- glowIntensity = 0,
116
- shadowColor,
117
- pressAnimation = true,
118
- children,
119
- onMouseEnter,
120
- onMouseLeave,
121
- onMouseMove,
122
- onMouseDown,
123
- onMouseUp,
124
- style,
125
- ...props
126
- }, ref) => {
127
- const buttonRef = React3.useRef(null);
128
- const [isHovered, setIsHovered] = React3.useState(false);
129
- const [isPressed, setIsPressed] = React3.useState(false);
130
- const [tiltTransform, setTiltTransform] = React3.useState({ x: 0, y: 0 });
131
- const updateTilt = React3.useCallback(
132
- (e) => {
133
- if (!tiltOnHover || !buttonRef.current) return;
134
- const rect = buttonRef.current.getBoundingClientRect();
135
- const centerX = rect.left + rect.width / 2;
136
- const centerY = rect.top + rect.height / 2;
137
- const deltaX = (e.clientX - centerX) / (rect.width / 2);
138
- const deltaY = (e.clientY - centerY) / (rect.height / 2);
139
- setTiltTransform({
140
- x: deltaY * -10,
141
- // Inverted for more natural feel
142
- y: deltaX * 10
143
- });
144
- },
145
- [tiltOnHover]
146
- );
147
- const resetTilt = React3.useCallback(() => {
148
- setTiltTransform({ x: 0, y: 0 });
149
- }, []);
150
- const handleMouseEnter = React3.useCallback(
151
- (e) => {
152
- setIsHovered(true);
153
- onMouseEnter?.(e);
154
- },
155
- [onMouseEnter]
156
- );
157
- const handleMouseLeave = React3.useCallback(
158
- (e) => {
159
- setIsHovered(false);
160
- resetTilt();
161
- onMouseLeave?.(e);
162
- },
163
- [onMouseLeave, resetTilt]
164
- );
165
- const handleMouseMove = React3.useCallback(
166
- (e) => {
167
- if (tiltOnHover) {
168
- updateTilt(e);
169
- }
170
- onMouseMove?.(e);
171
- },
172
- [onMouseMove, tiltOnHover, updateTilt]
173
- );
174
- const handleMouseDown = React3.useCallback(
175
- (e) => {
176
- if (pressAnimation) {
177
- setIsPressed(true);
178
- }
179
- onMouseDown?.(e);
180
- },
181
- [onMouseDown, pressAnimation]
182
- );
183
- const handleMouseUp = React3.useCallback(
184
- (e) => {
185
- setIsPressed(false);
186
- onMouseUp?.(e);
187
- },
188
- [onMouseUp]
189
- );
190
- React3.useImperativeHandle(ref, () => buttonRef.current);
191
- const buttonStyle = {
192
- ...style,
193
- transform: tiltOnHover ? `perspective(1000px) rotateX(${tiltTransform.x}deg) rotateY(${tiltTransform.y}deg) ${isPressed ? "translateY(1px)" : ""}` : isPressed ? "translateY(1px)" : void 0,
194
- filter: glowIntensity > 0 ? `drop-shadow(0 0 ${glowIntensity * 4}px ${shadowColor || "currentColor"})` : void 0,
195
- transition: "all 150ms cubic-bezier(0.4, 0, 0.2, 1)"
196
- };
197
- return /* @__PURE__ */ jsx(
198
- "button",
199
- {
200
- ref: buttonRef,
201
- className: cn(button3DVariants({ variant, size, depth }), className),
202
- style: buttonStyle,
203
- onMouseEnter: handleMouseEnter,
204
- onMouseLeave: handleMouseLeave,
205
- onMouseMove: handleMouseMove,
206
- onMouseDown: handleMouseDown,
207
- onMouseUp: handleMouseUp,
208
- ...props,
209
- children: /* @__PURE__ */ jsx("span", { className: "relative z-10 flex items-center justify-center gap-2", children })
210
- }
211
- );
212
- }
213
- );
214
- Button3D.displayName = "Button3D";
215
- var Button3DPreset = {
216
- Hero: React3.forwardRef((props, ref) => /* @__PURE__ */ jsx(
217
- Button3D,
218
- {
219
- ref,
220
- variant: "gradient",
221
- size: "xl",
222
- depth: "lg",
223
- tiltOnHover: true,
224
- glowIntensity: 2,
225
- ...props
226
- }
227
- )),
228
- CTA: React3.forwardRef((props, ref) => /* @__PURE__ */ jsx(
229
- Button3D,
230
- {
231
- ref,
232
- variant: "neon",
233
- size: "lg",
234
- depth: "default",
235
- tiltOnHover: true,
236
- glowIntensity: 1,
237
- ...props
238
- }
239
- )),
240
- Glass: React3.forwardRef((props, ref) => /* @__PURE__ */ jsx(
241
- Button3D,
242
- {
243
- ref,
244
- variant: "glass",
245
- size: "default",
246
- depth: "sm",
247
- tiltOnHover: true,
248
- ...props
249
- }
250
- )),
251
- Minimal: React3.forwardRef((props, ref) => /* @__PURE__ */ jsx(Button3D, { ref, variant: "ghost", size: "default", depth: "sm", ...props })),
252
- Danger: React3.forwardRef((props, ref) => /* @__PURE__ */ jsx(
253
- Button3D,
254
- {
255
- ref,
256
- variant: "destructive",
257
- size: "default",
258
- depth: "default",
259
- shadowColor: "rgb(239 68 68)",
260
- ...props
261
- }
262
- ))
263
- };
264
- Button3DPreset.Hero.displayName = "Button3DPreset.Hero";
265
- Button3DPreset.CTA.displayName = "Button3DPreset.CTA";
266
- Button3DPreset.Glass.displayName = "Button3DPreset.Glass";
267
- Button3DPreset.Minimal.displayName = "Button3DPreset.Minimal";
268
- Button3DPreset.Danger.displayName = "Button3DPreset.Danger";
269
- var Button3DLoading = React3.forwardRef(({ loading = false, children, disabled, ...props }, ref) => {
270
- return /* @__PURE__ */ jsxs(Button3D, { ref, disabled: disabled || loading, ...props, children: [
271
- loading && /* @__PURE__ */ jsx("div", { className: "animate-spin rounded-full h-4 w-4 border-2 border-current border-t-transparent" }),
272
- !loading && children
273
- ] });
274
- });
275
- Button3DLoading.displayName = "Button3DLoading";
276
- var Card3D = React3.forwardRef(
277
- ({
278
- children,
279
- maxTilt = 15,
280
- perspective = 1e3,
281
- scale = 1.05,
282
- speed = 400,
283
- glare = true,
284
- glareMaxOpacity = 0.7,
285
- className,
286
- ...props
287
- }, ref) => {
288
- const cardRef = React3.useRef(null);
289
- const glareRef = React3.useRef(null);
290
- const [isHovered, setIsHovered] = React3.useState(false);
291
- const [transforms, setTransforms] = React3.useState({
292
- rotateX: 0,
293
- rotateY: 0,
294
- scale: 1,
295
- glareX: 50,
296
- glareY: 50,
297
- glareOpacity: 0
298
- });
299
- const updateTransforms = React3.useCallback(
300
- (point, rect) => {
301
- if (!point || !rect) {
302
- setTransforms({
303
- rotateX: 0,
304
- rotateY: 0,
305
- scale: 1,
306
- glareX: 50,
307
- glareY: 50,
308
- glareOpacity: 0
309
- });
310
- return;
311
- }
312
- const centerX = rect.left + rect.width / 2;
313
- const centerY = rect.top + rect.height / 2;
314
- const deltaX = (point.x - centerX) / (rect.width / 2);
315
- const deltaY = (point.y - centerY) / (rect.height / 2);
316
- const rotateX = -deltaY * maxTilt;
317
- const rotateY = deltaX * maxTilt;
318
- const glareX = (point.x - rect.left) / rect.width * 100;
319
- const glareY = (point.y - rect.top) / rect.height * 100;
320
- setTransforms({
321
- rotateX,
322
- rotateY,
323
- scale,
324
- glareX,
325
- glareY,
326
- glareOpacity: glare ? glareMaxOpacity : 0
327
- });
328
- },
329
- [maxTilt, scale, glare, glareMaxOpacity]
330
- );
331
- const handleMouseMove = React3.useCallback(
332
- (e) => {
333
- if (!cardRef.current) return;
334
- const rect = cardRef.current.getBoundingClientRect();
335
- const point = { x: e.clientX, y: e.clientY };
336
- updateTransforms(point, rect);
337
- },
338
- [updateTransforms]
339
- );
340
- const handleTouchMove = React3.useCallback(
341
- (e) => {
342
- if (!cardRef.current || e.touches.length === 0) return;
343
- e.preventDefault();
344
- const rect = cardRef.current.getBoundingClientRect();
345
- const touch = e.touches[0];
346
- const point = { x: touch.clientX, y: touch.clientY };
347
- updateTransforms(point, rect);
348
- },
349
- [updateTransforms]
350
- );
351
- const handleMouseEnter = React3.useCallback(() => {
352
- setIsHovered(true);
353
- }, []);
354
- const handleMouseLeave = React3.useCallback(() => {
355
- setIsHovered(false);
356
- updateTransforms(null, null);
357
- }, [updateTransforms]);
358
- const handleTouchStart = React3.useCallback(() => {
359
- setIsHovered(true);
360
- }, []);
361
- const handleTouchEnd = React3.useCallback(() => {
362
- setIsHovered(false);
363
- updateTransforms(null, null);
364
- }, [updateTransforms]);
365
- const cardStyle = {
366
- transform: `perspective(${perspective}px) rotateX(${transforms.rotateX}deg) rotateY(${transforms.rotateY}deg) scale(${transforms.scale})`,
367
- transition: isHovered ? "none" : `transform ${speed}ms cubic-bezier(0.03, 0.98, 0.52, 0.99)`,
368
- transformStyle: "preserve-3d"
369
- };
370
- const glareStyle = {
371
- background: `radial-gradient(circle at ${transforms.glareX}% ${transforms.glareY}%, rgba(255,255,255,${transforms.glareOpacity}) 0%, transparent 50%)`,
372
- transition: isHovered ? "none" : `opacity ${speed}ms ease-out`
373
- };
374
- React3.useImperativeHandle(ref, () => cardRef.current);
375
- return /* @__PURE__ */ jsxs(
376
- "div",
377
- {
378
- ref: cardRef,
379
- className: cn(
380
- "relative rounded-lg border bg-card text-card-foreground shadow-lg cursor-pointer",
381
- "transform-gpu will-change-transform",
382
- className
383
- ),
384
- style: cardStyle,
385
- onMouseMove: handleMouseMove,
386
- onMouseEnter: handleMouseEnter,
387
- onMouseLeave: handleMouseLeave,
388
- onTouchStart: handleTouchStart,
389
- onTouchMove: handleTouchMove,
390
- onTouchEnd: handleTouchEnd,
391
- ...props,
392
- children: [
393
- /* @__PURE__ */ jsx("div", { className: "relative z-10", children }),
394
- glare && /* @__PURE__ */ jsx(
395
- "div",
396
- {
397
- ref: glareRef,
398
- className: "absolute inset-0 rounded-lg pointer-events-none z-20",
399
- style: glareStyle
400
- }
401
- )
402
- ]
403
- }
404
- );
405
- }
406
- );
407
- Card3D.displayName = "Card3D";
408
- var Card3DHeader = React3.forwardRef(({ className, depth = 20, style, ...props }, ref) => /* @__PURE__ */ jsx(
409
- "div",
410
- {
411
- ref,
412
- className: cn("flex flex-col space-y-1.5 p-6", className),
413
- style: {
414
- transform: `translateZ(${depth}px)`,
415
- ...style
416
- },
417
- ...props
418
- }
419
- ));
420
- Card3DHeader.displayName = "Card3DHeader";
421
- var Card3DTitle = React3.forwardRef(({ className, depth = 30, style, ...props }, ref) => /* @__PURE__ */ jsx(
422
- "h3",
423
- {
424
- ref,
425
- className: cn(
426
- "text-2xl font-semibold leading-none tracking-tight",
427
- className
428
- ),
429
- style: {
430
- transform: `translateZ(${depth}px)`,
431
- ...style
432
- },
433
- ...props
434
- }
435
- ));
436
- Card3DTitle.displayName = "Card3DTitle";
437
- var Card3DDescription = React3.forwardRef(({ className, depth = 10, style, ...props }, ref) => /* @__PURE__ */ jsx(
438
- "p",
439
- {
440
- ref,
441
- className: cn("text-sm text-muted-foreground", className),
442
- style: {
443
- transform: `translateZ(${depth}px)`,
444
- ...style
445
- },
446
- ...props
447
- }
448
- ));
449
- Card3DDescription.displayName = "Card3DDescription";
450
- var Card3DContent = React3.forwardRef(({ className, depth = 25, style, ...props }, ref) => /* @__PURE__ */ jsx(
451
- "div",
452
- {
453
- ref,
454
- className: cn("p-6 pt-0", className),
455
- style: {
456
- transform: `translateZ(${depth}px)`,
457
- ...style
458
- },
459
- ...props
460
- }
461
- ));
462
- Card3DContent.displayName = "Card3DContent";
463
- var Card3DFooter = React3.forwardRef(({ className, depth = 15, style, ...props }, ref) => /* @__PURE__ */ jsx(
464
- "div",
465
- {
466
- ref,
467
- className: cn("flex items-center p-6 pt-0", className),
468
- style: {
469
- transform: `translateZ(${depth}px)`,
470
- ...style
471
- },
472
- ...props
473
- }
474
- ));
475
- Card3DFooter.displayName = "Card3DFooter";
476
- var Carousel3D = React3.forwardRef(
477
- ({
478
- items,
479
- itemWidth = 300,
480
- itemHeight = 400,
481
- spacing = 80,
482
- perspective = 1e3,
483
- rotateY = 40,
484
- autoRotate = false,
485
- autoRotateSpeed = 3e3,
486
- showControls = true,
487
- infinite = true,
488
- className,
489
- ...props
490
- }, ref) => {
491
- const containerRef = React3.useRef(null);
492
- const [currentIndex, setCurrentIndex] = React3.useState(0);
493
- const [isHovered, setIsHovered] = React3.useState(false);
494
- const [isDragging, setIsDragging] = React3.useState(false);
495
- const [dragStart, setDragStart] = React3.useState({ x: 0, y: 0 });
496
- const [dragOffset, setDragOffset] = React3.useState(0);
497
- const autoRotateRef = React3.useRef(void 0);
498
- const totalItems = items.length;
499
- const radius = (itemWidth + spacing) / 2 / Math.tan(Math.PI / totalItems);
500
- React3.useEffect(() => {
501
- if (autoRotate && !isHovered && !isDragging) {
502
- autoRotateRef.current = setInterval(() => {
503
- setCurrentIndex((prev) => (prev + 1) % totalItems);
504
- }, autoRotateSpeed);
505
- } else {
506
- if (autoRotateRef.current) {
507
- clearInterval(autoRotateRef.current);
508
- }
509
- }
510
- return () => {
511
- if (autoRotateRef.current) {
512
- clearInterval(autoRotateRef.current);
513
- }
514
- };
515
- }, [autoRotate, isHovered, isDragging, autoRotateSpeed, totalItems]);
516
- const goToPrevious = React3.useCallback(() => {
517
- setCurrentIndex(
518
- (prev) => infinite ? (prev - 1 + totalItems) % totalItems : Math.max(0, prev - 1)
519
- );
520
- }, [infinite, totalItems]);
521
- const goToNext = React3.useCallback(() => {
522
- setCurrentIndex(
523
- (prev) => infinite ? (prev + 1) % totalItems : Math.min(totalItems - 1, prev + 1)
524
- );
525
- }, [infinite, totalItems]);
526
- const goToIndex = React3.useCallback(
527
- (index) => {
528
- setCurrentIndex(Math.max(0, Math.min(totalItems - 1, index)));
529
- },
530
- [totalItems]
531
- );
532
- const handleDragStart = React3.useCallback(
533
- (clientX, clientY) => {
534
- setIsDragging(true);
535
- setDragStart({ x: clientX, y: clientY });
536
- setDragOffset(0);
537
- },
538
- []
539
- );
540
- const handleDragMove = React3.useCallback(
541
- (clientX, clientY) => {
542
- if (!isDragging) return;
543
- const deltaX = clientX - dragStart.x;
544
- const sensitivity = 0.5;
545
- const newOffset = deltaX * sensitivity;
546
- setDragOffset(newOffset);
547
- },
548
- [isDragging, dragStart.x]
549
- );
550
- const handleDragEnd = React3.useCallback(() => {
551
- if (!isDragging) return;
552
- const threshold = 50;
553
- if (Math.abs(dragOffset) > threshold) {
554
- if (dragOffset > 0) {
555
- goToPrevious();
556
- } else {
557
- goToNext();
558
- }
559
- }
560
- setIsDragging(false);
561
- setDragOffset(0);
562
- }, [isDragging, dragOffset, goToPrevious, goToNext]);
563
- const handleMouseDown = React3.useCallback(
564
- (e) => {
565
- e.preventDefault();
566
- handleDragStart(e.clientX, e.clientY);
567
- },
568
- [handleDragStart]
569
- );
570
- const handleMouseMove = React3.useCallback(
571
- (e) => {
572
- handleDragMove(e.clientX, e.clientY);
573
- },
574
- [handleDragMove]
575
- );
576
- const handleMouseUp = React3.useCallback(() => {
577
- handleDragEnd();
578
- }, [handleDragEnd]);
579
- const handleTouchStart = React3.useCallback(
580
- (e) => {
581
- if (e.touches.length === 1) {
582
- const touch = e.touches[0];
583
- handleDragStart(touch.clientX, touch.clientY);
584
- }
585
- },
586
- [handleDragStart]
587
- );
588
- const handleTouchMove = React3.useCallback(
589
- (e) => {
590
- if (e.touches.length === 1) {
591
- e.preventDefault();
592
- const touch = e.touches[0];
593
- handleDragMove(touch.clientX, touch.clientY);
594
- }
595
- },
596
- [handleDragMove]
597
- );
598
- const handleTouchEnd = React3.useCallback(() => {
599
- handleDragEnd();
600
- }, [handleDragEnd]);
601
- React3.useEffect(() => {
602
- const handleKeyDown = /* @__PURE__ */ __name((e) => {
603
- if (e.key === "ArrowLeft") {
604
- e.preventDefault();
605
- goToPrevious();
606
- } else if (e.key === "ArrowRight") {
607
- e.preventDefault();
608
- goToNext();
609
- } else if (e.key >= "1" && e.key <= "9") {
610
- const index = parseInt(e.key) - 1;
611
- if (index < totalItems) {
612
- goToIndex(index);
613
- }
614
- }
615
- }, "handleKeyDown");
616
- if (containerRef.current) {
617
- containerRef.current.addEventListener("keydown", handleKeyDown);
618
- return () => {
619
- containerRef.current?.removeEventListener("keydown", handleKeyDown);
620
- };
621
- }
622
- }, [goToPrevious, goToNext, goToIndex, totalItems]);
623
- React3.useImperativeHandle(ref, () => containerRef.current);
624
- const containerStyle = {
625
- perspective: `${perspective}px`,
626
- height: `${itemHeight + 100}px`
627
- };
628
- const carouselStyle = {
629
- transform: `translateZ(-${radius}px) rotateY(${-currentIndex * (360 / totalItems) + dragOffset / 5}deg)`,
630
- transition: isDragging ? "none" : "transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1)",
631
- transformStyle: "preserve-3d"
632
- };
633
- return /* @__PURE__ */ jsxs(
634
- "div",
635
- {
636
- ref: containerRef,
637
- className: cn(
638
- "relative w-full select-none focus:outline-none",
639
- className
640
- ),
641
- style: containerStyle,
642
- onMouseEnter: () => setIsHovered(true),
643
- onMouseLeave: () => setIsHovered(false),
644
- onMouseDown: handleMouseDown,
645
- onMouseMove: handleMouseMove,
646
- onMouseUp: handleMouseUp,
647
- onTouchStart: handleTouchStart,
648
- onTouchMove: handleTouchMove,
649
- onTouchEnd: handleTouchEnd,
650
- tabIndex: 0,
651
- ...props,
652
- children: [
653
- /* @__PURE__ */ jsx(
654
- "div",
655
- {
656
- className: "relative mx-auto",
657
- style: {
658
- width: `${itemWidth}px`,
659
- height: `${itemHeight}px`,
660
- transformStyle: "preserve-3d"
661
- },
662
- children: /* @__PURE__ */ jsx("div", { className: "absolute inset-0", style: carouselStyle, children: items.map((item, index) => {
663
- const angle = index / totalItems * 360;
664
- const isCurrent = index === currentIndex;
665
- const itemStyle = {
666
- transform: `rotateY(${angle}deg) translateZ(${radius}px)`,
667
- width: `${itemWidth}px`,
668
- height: `${itemHeight}px`,
669
- position: "absolute",
670
- backfaceVisibility: "hidden",
671
- transformStyle: "preserve-3d"
672
- };
673
- return /* @__PURE__ */ jsx(
674
- "div",
675
- {
676
- className: cn(
677
- "rounded-lg border bg-card text-card-foreground shadow-lg cursor-pointer",
678
- "transition-all duration-300 transform-gpu will-change-transform",
679
- isCurrent && "ring-2 ring-primary ring-offset-2"
680
- ),
681
- style: itemStyle,
682
- onClick: () => goToIndex(index),
683
- children: /* @__PURE__ */ jsx("div", { className: "w-full h-full overflow-hidden rounded-lg", children: item.content })
684
- },
685
- item.id
686
- );
687
- }) })
688
- }
689
- ),
690
- showControls && /* @__PURE__ */ jsxs(Fragment, { children: [
691
- /* @__PURE__ */ jsx(
692
- "button",
693
- {
694
- className: cn(
695
- "absolute left-4 top-1/2 -translate-y-1/2 z-10",
696
- "p-2 rounded-full bg-background/80 backdrop-blur-sm",
697
- "border shadow-lg hover:bg-background transition-all",
698
- "disabled:opacity-50 disabled:cursor-not-allowed"
699
- ),
700
- onClick: goToPrevious,
701
- disabled: !infinite && currentIndex === 0,
702
- "aria-label": "Previous item",
703
- children: /* @__PURE__ */ jsx(ChevronLeft, { className: "w-5 h-5" })
704
- }
705
- ),
706
- /* @__PURE__ */ jsx(
707
- "button",
708
- {
709
- className: cn(
710
- "absolute right-4 top-1/2 -translate-y-1/2 z-10",
711
- "p-2 rounded-full bg-background/80 backdrop-blur-sm",
712
- "border shadow-lg hover:bg-background transition-all",
713
- "disabled:opacity-50 disabled:cursor-not-allowed"
714
- ),
715
- onClick: goToNext,
716
- disabled: !infinite && currentIndex === totalItems - 1,
717
- "aria-label": "Next item",
718
- children: /* @__PURE__ */ jsx(ChevronRight, { className: "w-5 h-5" })
719
- }
720
- )
721
- ] }),
722
- /* @__PURE__ */ jsx("div", { className: "absolute bottom-4 left-1/2 -translate-x-1/2 z-10", children: /* @__PURE__ */ jsx("div", { className: "flex space-x-2 p-2 rounded-full bg-background/80 backdrop-blur-sm border shadow-lg", children: items.map((_, index) => /* @__PURE__ */ jsx(
723
- "button",
724
- {
725
- className: cn(
726
- "w-2 h-2 rounded-full transition-all",
727
- index === currentIndex ? "bg-primary scale-125" : "bg-muted-foreground/50 hover:bg-muted-foreground/75"
728
- ),
729
- onClick: () => goToIndex(index),
730
- "aria-label": `Go to item ${index + 1}`
731
- },
732
- index
733
- )) }) }),
734
- autoRotate && /* @__PURE__ */ jsx("div", { className: "absolute top-4 right-4 z-10", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2 p-2 rounded-full bg-background/80 backdrop-blur-sm border shadow-sm", children: [
735
- /* @__PURE__ */ jsx(
736
- "div",
737
- {
738
- className: cn(
739
- "w-2 h-2 rounded-full transition-all",
740
- isHovered || isDragging ? "bg-orange-500" : "bg-green-500 animate-pulse"
741
- )
742
- }
743
- ),
744
- /* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground", children: isHovered || isDragging ? "Paused" : "Auto" })
745
- ] }) })
746
- ]
747
- }
748
- );
749
- }
750
- );
751
- Carousel3D.displayName = "Carousel3D";
752
- var Carousel3DCard = React3.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(
753
- "div",
754
- {
755
- ref,
756
- className: cn(
757
- "w-full h-full flex flex-col bg-gradient-to-br from-background to-muted/20",
758
- "border rounded-lg overflow-hidden group",
759
- className
760
- ),
761
- ...props,
762
- children
763
- }
764
- ));
765
- Carousel3DCard.displayName = "Carousel3DCard";
766
- var Carousel3DCardImage = React3.forwardRef(({ className, alt, ...props }, ref) => /* @__PURE__ */ jsx(
767
- "img",
768
- {
769
- ref,
770
- className: cn(
771
- "w-full h-48 object-cover transition-transform duration-300",
772
- "group-hover:scale-105",
773
- className
774
- ),
775
- alt,
776
- ...props
777
- }
778
- ));
779
- Carousel3DCardImage.displayName = "Carousel3DCardImage";
780
- var Carousel3DCardContent = React3.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(
781
- "div",
782
- {
783
- ref,
784
- className: cn("flex-1 p-4 flex flex-col justify-between", className),
785
- ...props,
786
- children
787
- }
788
- ));
789
- Carousel3DCardContent.displayName = "Carousel3DCardContent";
790
- var Carousel3DCardTitle = React3.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(
791
- "h3",
792
- {
793
- ref,
794
- className: cn("font-semibold text-lg mb-2 line-clamp-2", className),
795
- ...props,
796
- children
797
- }
798
- ));
799
- Carousel3DCardTitle.displayName = "Carousel3DCardTitle";
800
- var Carousel3DCardDescription = React3.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(
801
- "p",
802
- {
803
- ref,
804
- className: cn("text-sm text-muted-foreground line-clamp-3 mb-4", className),
805
- ...props,
806
- children
807
- }
808
- ));
809
- Carousel3DCardDescription.displayName = "Carousel3DCardDescription";
810
- var Grid3D = React3.forwardRef(
811
- ({
812
- items,
813
- columns = 4,
814
- rows = 3,
815
- gap = 16,
816
- perspective = 1e3,
817
- rotateX = 25,
818
- rotateY = 15,
819
- cellHeight = 200,
820
- cellWidth = 200,
821
- isometric = false,
822
- tiltOnHover = true,
823
- staggerAnimation = true,
824
- animationDelay = 100,
825
- elevationOnHover = true,
826
- maxElevation = 50,
827
- className,
828
- ...props
829
- }, ref) => {
830
- const gridRef = React3.useRef(null);
831
- const [hoveredIndex, setHoveredIndex] = React3.useState(null);
832
- const [mousePosition, setMousePosition] = React3.useState({ x: 0, y: 0 });
833
- const [isGridHovered, setIsGridHovered] = React3.useState(false);
834
- const gridTransform = React3.useMemo(() => {
835
- if (isometric) {
836
- return `perspective(${perspective}px) rotateX(45deg) rotateY(45deg)`;
837
- }
838
- return `perspective(${perspective}px) rotateX(${rotateX}deg) rotateY(${rotateY}deg)`;
839
- }, [isometric, perspective, rotateX, rotateY]);
840
- const handleMouseMove = React3.useCallback(
841
- (e) => {
842
- if (!tiltOnHover || !gridRef.current) return;
843
- const rect = gridRef.current.getBoundingClientRect();
844
- const centerX = rect.left + rect.width / 2;
845
- const centerY = rect.top + rect.height / 2;
846
- const mouseX = (e.clientX - centerX) / (rect.width / 2);
847
- const mouseY = (e.clientY - centerY) / (rect.height / 2);
848
- setMousePosition({ x: mouseX * 10, y: mouseY * 10 });
849
- },
850
- [tiltOnHover]
851
- );
852
- const handleMouseEnter = React3.useCallback(() => {
853
- setIsGridHovered(true);
854
- }, []);
855
- const handleMouseLeave = React3.useCallback(() => {
856
- setIsGridHovered(false);
857
- setMousePosition({ x: 0, y: 0 });
858
- setHoveredIndex(null);
859
- }, []);
860
- React3.useImperativeHandle(ref, () => gridRef.current);
861
- const containerStyle = {
862
- perspective: `${perspective}px`,
863
- transformStyle: "preserve-3d"
864
- };
865
- const gridStyle = {
866
- display: "grid",
867
- gridTemplateColumns: `repeat(${columns}, ${cellWidth}px)`,
868
- gridTemplateRows: `repeat(${rows}, ${cellHeight}px)`,
869
- gap: `${gap}px`,
870
- transform: tiltOnHover && isGridHovered ? `${gridTransform} rotateX(${-mousePosition.y}deg) rotateY(${mousePosition.x}deg)` : gridTransform,
871
- transition: "transform 0.3s cubic-bezier(0.4, 0, 0.2, 1)",
872
- transformStyle: "preserve-3d"
873
- };
874
- const getGridPosition = /* @__PURE__ */ __name((index) => {
875
- const x = index % columns;
876
- const y = Math.floor(index / columns);
877
- return { x, y };
878
- }, "getGridPosition");
879
- const getStaggerDelay = /* @__PURE__ */ __name((index) => {
880
- if (!staggerAnimation) return 0;
881
- const { x, y } = getGridPosition(index);
882
- return (x + y) * animationDelay;
883
- }, "getStaggerDelay");
884
- return /* @__PURE__ */ jsxs(
885
- "div",
886
- {
887
- ref: gridRef,
888
- className: cn("w-fit mx-auto", className),
889
- style: containerStyle,
890
- onMouseMove: handleMouseMove,
891
- onMouseEnter: handleMouseEnter,
892
- onMouseLeave: handleMouseLeave,
893
- ...props,
894
- children: [
895
- /* @__PURE__ */ jsx("div", { style: gridStyle, children: items.map((item, index) => {
896
- const isHovered = hoveredIndex === index;
897
- const { x, y } = getGridPosition(index);
898
- const staggerDelay = getStaggerDelay(index);
899
- const itemStyle = {
900
- gridColumn: item.span ? `span ${item.span.x}` : void 0,
901
- gridRow: item.span ? `span ${item.span.y}` : void 0,
902
- transform: `translateZ(${(item.elevation || 0) + (isHovered && elevationOnHover ? maxElevation : 0)}px)`,
903
- transition: "all 0.3s cubic-bezier(0.4, 0, 0.2, 1)",
904
- transformStyle: "preserve-3d",
905
- animationDelay: `${staggerDelay}ms`
906
- };
907
- return /* @__PURE__ */ jsxs(
908
- "div",
909
- {
910
- className: cn(
911
- "relative rounded-lg border bg-card text-card-foreground shadow-lg",
912
- "transform-gpu will-change-transform cursor-pointer",
913
- "transition-all duration-300 hover:shadow-xl",
914
- staggerAnimation && "animate-in fade-in slide-in-from-bottom-4",
915
- isHovered && "ring-2 ring-primary ring-offset-2"
916
- ),
917
- style: itemStyle,
918
- onMouseEnter: () => setHoveredIndex(index),
919
- onMouseLeave: () => setHoveredIndex(null),
920
- children: [
921
- /* @__PURE__ */ jsx("div", { className: "w-full h-full overflow-hidden rounded-lg", children: item.content }),
922
- (item.elevation || 0) > 0 && /* @__PURE__ */ jsx(
923
- "div",
924
- {
925
- className: "absolute inset-0 -z-10 rounded-lg bg-black/20 blur-sm",
926
- style: {
927
- transform: `translateY(${(item.elevation || 0) / 2}px) scale(0.95)`
928
- }
929
- }
930
- )
931
- ]
932
- },
933
- item.id
934
- );
935
- }) }),
936
- isometric && /* @__PURE__ */ jsx("div", { className: "absolute inset-0 pointer-events-none opacity-20", children: /* @__PURE__ */ jsx(
937
- "div",
938
- {
939
- className: "grid border-dashed border-muted-foreground/30",
940
- style: {
941
- gridTemplateColumns: `repeat(${columns}, ${cellWidth}px)`,
942
- gridTemplateRows: `repeat(${rows}, ${cellHeight}px)`,
943
- gap: `${gap}px`,
944
- transform: gridTransform,
945
- transformStyle: "preserve-3d"
946
- },
947
- children: Array.from({ length: columns * rows }).map((_, index) => /* @__PURE__ */ jsx(
948
- "div",
949
- {
950
- className: "border border-dashed border-muted-foreground/20 rounded-lg"
951
- },
952
- index
953
- ))
954
- }
955
- ) })
956
- ]
957
- }
958
- );
959
- }
960
- );
961
- Grid3D.displayName = "Grid3D";
962
- var Grid3DCard = React3.forwardRef(
963
- ({
964
- className,
965
- title,
966
- description,
967
- image,
968
- badge,
969
- elevation = 0,
970
- children,
971
- ...props
972
- }, ref) => /* @__PURE__ */ jsxs(
973
- "div",
974
- {
975
- ref,
976
- className: cn(
977
- "group relative w-full h-full flex flex-col bg-gradient-to-br from-background to-muted/20",
978
- "border rounded-lg overflow-hidden",
979
- className
980
- ),
981
- style: {
982
- transform: `translateZ(${elevation}px)`,
983
- transformStyle: "preserve-3d"
984
- },
985
- ...props,
986
- children: [
987
- image && /* @__PURE__ */ jsxs("div", { className: "relative h-32 overflow-hidden", children: [
988
- /* @__PURE__ */ jsx(
989
- "img",
990
- {
991
- src: image,
992
- alt: title || "",
993
- className: "w-full h-full object-cover transition-transform duration-300 group-hover:scale-110"
994
- }
995
- ),
996
- badge && /* @__PURE__ */ jsx("div", { className: "absolute top-2 right-2 px-2 py-1 text-xs rounded-full bg-primary text-primary-foreground", children: badge })
997
- ] }),
998
- /* @__PURE__ */ jsxs("div", { className: "flex-1 p-4 flex flex-col justify-between", children: [
999
- title && /* @__PURE__ */ jsx("h3", { className: "font-semibold text-lg mb-2 line-clamp-2 group-hover:text-primary transition-colors", children: title }),
1000
- description && /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground line-clamp-3 mb-4", children: description }),
1001
- children && /* @__PURE__ */ jsx("div", { className: "mt-auto", children })
1002
- ] }),
1003
- /* @__PURE__ */ jsx(
1004
- "div",
1005
- {
1006
- className: "absolute inset-0 -z-10 rounded-lg bg-gradient-to-br from-muted/50 to-muted",
1007
- style: {
1008
- transform: "translateZ(-2px) scale(0.98)",
1009
- transformStyle: "preserve-3d"
1010
- }
1011
- }
1012
- )
1013
- ]
1014
- }
1015
- )
1016
- );
1017
- Grid3DCard.displayName = "Grid3DCard";
1018
- var Grid3DPreset = {
1019
- Dashboard: React3.forwardRef(
1020
- ({ children, ...props }, ref) => /* @__PURE__ */ jsx(
1021
- Grid3D,
1022
- {
1023
- ref,
1024
- columns: 4,
1025
- rows: 3,
1026
- cellWidth: 250,
1027
- cellHeight: 200,
1028
- gap: 20,
1029
- perspective: 1200,
1030
- rotateX: 20,
1031
- rotateY: 10,
1032
- tiltOnHover: true,
1033
- elevationOnHover: true,
1034
- maxElevation: 30,
1035
- items: [],
1036
- ...props
1037
- }
1038
- )
1039
- ),
1040
- Isometric: React3.forwardRef(
1041
- ({ children, ...props }, ref) => /* @__PURE__ */ jsx(
1042
- Grid3D,
1043
- {
1044
- ref,
1045
- columns: 3,
1046
- rows: 3,
1047
- cellWidth: 180,
1048
- cellHeight: 180,
1049
- gap: 16,
1050
- isometric: true,
1051
- perspective: 1e3,
1052
- staggerAnimation: true,
1053
- animationDelay: 50,
1054
- items: [],
1055
- ...props
1056
- }
1057
- )
1058
- ),
1059
- Gallery: React3.forwardRef(
1060
- ({ children, ...props }, ref) => /* @__PURE__ */ jsx(
1061
- Grid3D,
1062
- {
1063
- ref,
1064
- columns: 5,
1065
- rows: 2,
1066
- cellWidth: 200,
1067
- cellHeight: 280,
1068
- gap: 24,
1069
- perspective: 1500,
1070
- rotateX: 15,
1071
- rotateY: 5,
1072
- tiltOnHover: true,
1073
- elevationOnHover: true,
1074
- maxElevation: 40,
1075
- items: [],
1076
- ...props
1077
- }
1078
- )
1079
- ),
1080
- Compact: React3.forwardRef(
1081
- ({ children, ...props }, ref) => /* @__PURE__ */ jsx(
1082
- Grid3D,
1083
- {
1084
- ref,
1085
- columns: 6,
1086
- rows: 4,
1087
- cellWidth: 120,
1088
- cellHeight: 120,
1089
- gap: 8,
1090
- perspective: 800,
1091
- rotateX: 30,
1092
- rotateY: 20,
1093
- tiltOnHover: true,
1094
- staggerAnimation: true,
1095
- animationDelay: 30,
1096
- items: [],
1097
- ...props
1098
- }
1099
- )
1100
- )
1101
- };
1102
- Grid3DPreset.Dashboard.displayName = "Grid3DPreset.Dashboard";
1103
- Grid3DPreset.Isometric.displayName = "Grid3DPreset.Isometric";
1104
- Grid3DPreset.Gallery.displayName = "Grid3DPreset.Gallery";
1105
- Grid3DPreset.Compact.displayName = "Grid3DPreset.Compact";
1106
- var Grid3DAuto = React3.forwardRef(
1107
- ({
1108
- items,
1109
- minCellWidth = 200,
1110
- maxCellWidth = 300,
1111
- aspectRatio = 1,
1112
- ...props
1113
- }, ref) => {
1114
- const [dimensions, setDimensions] = React3.useState({ columns: 3, rows: 2 });
1115
- React3.useEffect(() => {
1116
- const itemCount = items.length;
1117
- const columns = Math.ceil(Math.sqrt(itemCount));
1118
- const rows = Math.ceil(itemCount / columns);
1119
- setDimensions({ columns, rows });
1120
- }, [items.length]);
1121
- const cellWidth = Math.min(maxCellWidth, Math.max(minCellWidth, 200));
1122
- const cellHeight = cellWidth / aspectRatio;
1123
- return /* @__PURE__ */ jsx(
1124
- Grid3D,
1125
- {
1126
- ref,
1127
- items,
1128
- columns: dimensions.columns,
1129
- rows: dimensions.rows,
1130
- cellWidth,
1131
- cellHeight,
1132
- ...props
1133
- }
1134
- );
1135
- }
1136
- );
1137
- Grid3DAuto.displayName = "Grid3DAuto";
1138
- var marquee3DVariants = cva(
1139
- [
1140
- "relative overflow-hidden whitespace-nowrap",
1141
- "transform-gpu will-change-transform",
1142
- "[perspective:1000px]"
1143
- ],
1144
- {
1145
- variants: {
1146
- variant: {
1147
- default: [
1148
- "bg-background text-foreground",
1149
- "[&_.marquee-content]:text-current"
1150
- ],
1151
- neon: [
1152
- "bg-black text-cyan-400",
1153
- "[&_.marquee-content]:text-cyan-400",
1154
- "[&_.marquee-content]:drop-shadow-[0_0_10px_currentColor]",
1155
- "[&_.marquee-content]:animate-pulse"
1156
- ],
1157
- rainbow: [
1158
- "bg-black",
1159
- "[&_.marquee-content]:bg-gradient-to-r [&_.marquee-content]:from-red-500 [&_.marquee-content]:via-yellow-500 [&_.marquee-content]:via-green-500 [&_.marquee-content]:via-blue-500 [&_.marquee-content]:to-purple-500",
1160
- "[&_.marquee-content]:bg-clip-text [&_.marquee-content]:text-transparent"
1161
- ],
1162
- metallic: [
1163
- "bg-slate-900",
1164
- "[&_.marquee-content]:bg-gradient-to-b [&_.marquee-content]:from-gray-200 [&_.marquee-content]:via-gray-400 [&_.marquee-content]:to-gray-600",
1165
- "[&_.marquee-content]:bg-clip-text [&_.marquee-content]:text-transparent"
1166
- ],
1167
- fire: [
1168
- "bg-black",
1169
- "[&_.marquee-content]:bg-gradient-to-t [&_.marquee-content]:from-red-600 [&_.marquee-content]:via-orange-500 [&_.marquee-content]:to-yellow-400",
1170
- "[&_.marquee-content]:bg-clip-text [&_.marquee-content]:text-transparent",
1171
- "[&_.marquee-content]:drop-shadow-[0_0_20px_#ff6600]"
1172
- ],
1173
- glass: [
1174
- "bg-white/10 backdrop-blur-sm",
1175
- "[&_.marquee-content]:text-white/90",
1176
- "[&_.marquee-content]:drop-shadow-[0_0_10px_rgba(255,255,255,0.3)]"
1177
- ]
1178
- },
1179
- size: {
1180
- sm: "h-8 text-sm [&_.marquee-content]:py-1",
1181
- default: "h-12 text-base [&_.marquee-content]:py-2",
1182
- lg: "h-16 text-lg [&_.marquee-content]:py-3",
1183
- xl: "h-20 text-xl [&_.marquee-content]:py-4",
1184
- "2xl": "h-24 text-2xl [&_.marquee-content]:py-5",
1185
- "3xl": "h-32 text-3xl [&_.marquee-content]:py-6"
1186
- },
1187
- direction: {
1188
- left: "",
1189
- right: "",
1190
- up: "flex-col",
1191
- down: "flex-col"
1192
- },
1193
- perspective: {
1194
- none: "[perspective:none]",
1195
- sm: "[perspective:500px]",
1196
- default: "[perspective:1000px]",
1197
- lg: "[perspective:1500px]",
1198
- xl: "[perspective:2000px]"
1199
- }
1200
- },
1201
- defaultVariants: {
1202
- variant: "default",
1203
- size: "default",
1204
- direction: "left",
1205
- perspective: "default"
1206
- }
1207
- }
1208
- );
1209
- var Marquee3D = React3.forwardRef(
1210
- ({
1211
- className,
1212
- variant,
1213
- size,
1214
- direction = "left",
1215
- perspective,
1216
- children,
1217
- speed = 50,
1218
- pauseOnHover = false,
1219
- reverse = false,
1220
- repeat = 5,
1221
- gap = 0,
1222
- rotateX = 0,
1223
- rotateY = 0,
1224
- rotateZ = 0,
1225
- autoFill = false,
1226
- gradient = false,
1227
- gradientColor = "#ffffff",
1228
- gradientWidth = 200,
1229
- style,
1230
- ...props
1231
- }, ref) => {
1232
- const [containerWidth, setContainerWidth] = React3.useState(0);
1233
- const [contentWidth, setContentWidth] = React3.useState(0);
1234
- const containerRef = React3.useRef(null);
1235
- const contentRef = React3.useRef(null);
1236
- React3.useEffect(() => {
1237
- const measureDimensions = /* @__PURE__ */ __name(() => {
1238
- if (containerRef.current && contentRef.current) {
1239
- const containerRect = containerRef.current.getBoundingClientRect();
1240
- const contentRect = contentRef.current.getBoundingClientRect();
1241
- if (direction === "left" || direction === "right") {
1242
- setContainerWidth(containerRect.width);
1243
- setContentWidth(contentRect.width);
1244
- } else {
1245
- setContainerWidth(containerRect.height);
1246
- setContentWidth(contentRect.height);
1247
- }
1248
- }
1249
- }, "measureDimensions");
1250
- measureDimensions();
1251
- window.addEventListener("resize", measureDimensions);
1252
- return () => window.removeEventListener("resize", measureDimensions);
1253
- }, [direction, children]);
1254
- const duration = React3.useMemo(() => {
1255
- if (contentWidth === 0) return 20;
1256
- return contentWidth / speed;
1257
- }, [contentWidth, speed]);
1258
- const actualRepeat = React3.useMemo(() => {
1259
- if (autoFill && containerWidth > 0 && contentWidth > 0) {
1260
- return Math.ceil(containerWidth / contentWidth) + 2;
1261
- }
1262
- return repeat;
1263
- }, [autoFill, containerWidth, contentWidth, repeat]);
1264
- const getAnimationProps = /* @__PURE__ */ __name(() => {
1265
- const distance = contentWidth + gap;
1266
- let animateProps = {};
1267
- if (direction === "left") {
1268
- animateProps = {
1269
- x: reverse ? [distance, -distance] : [-distance, distance]
1270
- };
1271
- } else if (direction === "right") {
1272
- animateProps = {
1273
- x: reverse ? [-distance, distance] : [distance, -distance]
1274
- };
1275
- } else if (direction === "up") {
1276
- animateProps = {
1277
- y: reverse ? [distance, -distance] : [-distance, distance]
1278
- };
1279
- } else if (direction === "down") {
1280
- animateProps = {
1281
- y: reverse ? [-distance, distance] : [distance, -distance]
1282
- };
1283
- }
1284
- return {
1285
- animate: animateProps,
1286
- transition: {
1287
- duration,
1288
- ease: "linear",
1289
- repeat: Infinity
1290
- }
1291
- };
1292
- }, "getAnimationProps");
1293
- const transform3D = `perspective(1000px) rotateX(${rotateX}deg) rotateY(${rotateY}deg) rotateZ(${rotateZ}deg)`;
1294
- const gradientMask = gradient ? {
1295
- maskImage: `linear-gradient(to right, transparent, ${gradientColor} ${gradientWidth}px, ${gradientColor} calc(100% - ${gradientWidth}px), transparent)`,
1296
- WebkitMaskImage: `linear-gradient(to right, transparent, ${gradientColor} ${gradientWidth}px, ${gradientColor} calc(100% - ${gradientWidth}px), transparent)`
1297
- } : {};
1298
- return /* @__PURE__ */ jsx(
1299
- "div",
1300
- {
1301
- ref: containerRef,
1302
- className: cn(
1303
- marquee3DVariants({ variant, size, direction, perspective }),
1304
- "flex items-center",
1305
- direction === "up" || direction === "down" ? "flex-col" : "flex-row",
1306
- className
1307
- ),
1308
- style: {
1309
- ...style,
1310
- transform: transform3D,
1311
- ...gradientMask
1312
- },
1313
- ...props,
1314
- children: /* @__PURE__ */ jsx(
1315
- motion.div,
1316
- {
1317
- ref: contentRef,
1318
- className: cn(
1319
- "marquee-content flex shrink-0 font-bold",
1320
- direction === "up" || direction === "down" ? "flex-col" : "flex-row",
1321
- pauseOnHover && "hover:[animation-play-state:paused]"
1322
- ),
1323
- style: {
1324
- gap: `${gap}px`
1325
- },
1326
- ...getAnimationProps(),
1327
- children: Array.from({ length: actualRepeat }).map((_, index) => /* @__PURE__ */ jsxs(React3.Fragment, { children: [
1328
- /* @__PURE__ */ jsx(
1329
- "div",
1330
- {
1331
- className: cn(
1332
- "flex shrink-0 items-center justify-center",
1333
- direction === "up" || direction === "down" ? "flex-col" : "flex-row"
1334
- ),
1335
- style: {
1336
- transform: `rotateX(${rotateX}deg) rotateY(${rotateY}deg) rotateZ(${rotateZ}deg)`,
1337
- transformStyle: "preserve-3d"
1338
- },
1339
- children
1340
- }
1341
- ),
1342
- index < actualRepeat - 1 && gap > 0 && /* @__PURE__ */ jsx(
1343
- "div",
1344
- {
1345
- style: {
1346
- width: direction === "up" || direction === "down" ? "100%" : `${gap}px`,
1347
- height: direction === "up" || direction === "down" ? `${gap}px` : "100%"
1348
- }
1349
- }
1350
- )
1351
- ] }, index))
1352
- }
1353
- )
1354
- }
1355
- );
1356
- }
1357
- );
1358
- Marquee3D.displayName = "Marquee3D";
1359
- var Marquee3DPreset = {
1360
- Hero: React3.forwardRef((props, ref) => /* @__PURE__ */ jsx(
1361
- Marquee3D,
1362
- {
1363
- ref,
1364
- variant: "rainbow",
1365
- size: "3xl",
1366
- speed: 30,
1367
- rotateX: -10,
1368
- gradient: true,
1369
- ...props
1370
- }
1371
- )),
1372
- Neon: React3.forwardRef((props, ref) => /* @__PURE__ */ jsx(
1373
- Marquee3D,
1374
- {
1375
- ref,
1376
- variant: "neon",
1377
- size: "xl",
1378
- speed: 40,
1379
- rotateY: 5,
1380
- pauseOnHover: true,
1381
- ...props
1382
- }
1383
- )),
1384
- Metallic: React3.forwardRef((props, ref) => /* @__PURE__ */ jsx(
1385
- Marquee3D,
1386
- {
1387
- ref,
1388
- variant: "metallic",
1389
- size: "lg",
1390
- speed: 35,
1391
- rotateX: -5,
1392
- rotateY: 2,
1393
- gradient: true,
1394
- gradientColor: "#c4c4c4",
1395
- ...props
1396
- }
1397
- )),
1398
- Fire: React3.forwardRef((props, ref) => /* @__PURE__ */ jsx(
1399
- Marquee3D,
1400
- {
1401
- ref,
1402
- variant: "fire",
1403
- size: "2xl",
1404
- speed: 60,
1405
- rotateZ: 1,
1406
- gradient: true,
1407
- gradientColor: "#ff6600",
1408
- ...props
1409
- }
1410
- )),
1411
- Glass: React3.forwardRef((props, ref) => /* @__PURE__ */ jsx(
1412
- Marquee3D,
1413
- {
1414
- ref,
1415
- variant: "glass",
1416
- size: "lg",
1417
- speed: 25,
1418
- rotateX: -8,
1419
- pauseOnHover: true,
1420
- gradient: true,
1421
- gradientColor: "rgba(255,255,255,0.9)",
1422
- ...props
1423
- }
1424
- ))
1425
- };
1426
- Marquee3DPreset.Hero.displayName = "Marquee3DPreset.Hero";
1427
- Marquee3DPreset.Neon.displayName = "Marquee3DPreset.Neon";
1428
- Marquee3DPreset.Metallic.displayName = "Marquee3DPreset.Metallic";
1429
- Marquee3DPreset.Fire.displayName = "Marquee3DPreset.Fire";
1430
- Marquee3DPreset.Glass.displayName = "Marquee3DPreset.Glass";
1431
- var Marquee3DFloating = React3.forwardRef(({ children, floatIntensity = 10, floatSpeed = 3, ...props }, ref) => {
1432
- const text = typeof children === "string" ? children : "";
1433
- return /* @__PURE__ */ jsx(Marquee3D, { ref, ...props, children: text ? /* @__PURE__ */ jsx("div", { className: "flex space-x-1", children: text.split("").map((char, index) => /* @__PURE__ */ jsx(
1434
- motion.span,
1435
- {
1436
- className: "inline-block",
1437
- animate: {
1438
- y: [0, -floatIntensity, 0],
1439
- rotateX: [0, 5, 0],
1440
- rotateY: [0, 2, 0]
1441
- },
1442
- transition: {
1443
- duration: floatSpeed,
1444
- ease: "easeInOut",
1445
- repeat: Infinity,
1446
- delay: index * 0.1
1447
- },
1448
- children: char === " " ? "\xA0" : char
1449
- },
1450
- index
1451
- )) }) : children });
1452
- });
1453
- Marquee3DFloating.displayName = "Marquee3DFloating";
1454
- var Pin3D = React3.forwardRef(
1455
- ({ className, title, href, children, ...props }, ref) => {
1456
- return /* @__PURE__ */ jsxs(
1457
- "div",
1458
- {
1459
- ref,
1460
- className: cn("group/pin relative cursor-pointer", className),
1461
- ...props,
1462
- children: [
1463
- /* @__PURE__ */ jsx("div", { className: "pointer-events-none absolute inset-0 z-10 flex h-full w-full items-center justify-center opacity-0 transition duration-500 group-hover/pin:opacity-100", children: /* @__PURE__ */ jsx("div", { className: "relative flex h-full w-full items-center justify-center", children: /* @__PURE__ */ jsx("div", { className: "absolute inset-0 bg-white opacity-0 transition duration-500 group-hover/pin:opacity-50" }) }) }),
1464
- /* @__PURE__ */ jsx("div", { className: "transform-gpu transition duration-500 group-hover/pin:scale-95", children })
1465
- ]
1466
- }
1467
- );
1468
- }
1469
- );
1470
- Pin3D.displayName = "Pin3D";
1471
-
1472
- export { Button3D, Button3DLoading, Button3DPreset, Card3D, Card3DContent, Card3DDescription, Card3DFooter, Card3DHeader, Card3DTitle, Carousel3D, Carousel3DCard, Carousel3DCardContent, Carousel3DCardDescription, Carousel3DCardImage, Carousel3DCardTitle, Grid3D, Grid3DAuto, Grid3DCard, Grid3DPreset, Marquee3D, Marquee3DFloating, Marquee3DPreset, Pin3D, button3DVariants, marquee3DVariants };