@hanzo/ui 5.3.28 → 5.3.29

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