@moontra/moonui-pro 2.20.1 → 2.20.3

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 (162) hide show
  1. package/dist/index.d.ts +691 -261
  2. package/dist/index.mjs +7418 -4934
  3. package/package.json +11 -5
  4. package/plugin/index.d.ts +86 -0
  5. package/plugin/index.js +308 -0
  6. package/scripts/postbuild.js +27 -0
  7. package/scripts/postinstall.js +176 -23
  8. package/src/__tests__/use-intersection-observer.test.tsx +0 -216
  9. package/src/__tests__/use-local-storage.test.tsx +0 -174
  10. package/src/__tests__/use-pro-access.test.tsx +0 -183
  11. package/src/components/advanced-chart/advanced-chart.test.tsx +0 -281
  12. package/src/components/advanced-chart/index.tsx +0 -1242
  13. package/src/components/advanced-forms/index.tsx +0 -426
  14. package/src/components/animated-button/index.tsx +0 -385
  15. package/src/components/calendar/event-dialog.tsx +0 -372
  16. package/src/components/calendar/index.tsx +0 -1073
  17. package/src/components/calendar-pro/index.tsx +0 -1697
  18. package/src/components/color-picker/index.tsx +0 -432
  19. package/src/components/credit-card-input/index.tsx +0 -406
  20. package/src/components/dashboard/dashboard-grid.tsx +0 -462
  21. package/src/components/dashboard/demo.tsx +0 -425
  22. package/src/components/dashboard/index.tsx +0 -1046
  23. package/src/components/dashboard/time-range-picker.tsx +0 -336
  24. package/src/components/dashboard/types.ts +0 -222
  25. package/src/components/dashboard/widgets/activity-feed.tsx +0 -344
  26. package/src/components/dashboard/widgets/chart-widget.tsx +0 -418
  27. package/src/components/dashboard/widgets/metric-card.tsx +0 -343
  28. package/src/components/data-table/data-table-bulk-actions.tsx +0 -204
  29. package/src/components/data-table/data-table-column-toggle.tsx +0 -169
  30. package/src/components/data-table/data-table-export.ts +0 -156
  31. package/src/components/data-table/data-table-filter-drawer.tsx +0 -448
  32. package/src/components/data-table/data-table.test.tsx +0 -187
  33. package/src/components/data-table/index.tsx +0 -845
  34. package/src/components/draggable-list/index.tsx +0 -100
  35. package/src/components/enhanced/badge.tsx +0 -191
  36. package/src/components/enhanced/button.tsx +0 -362
  37. package/src/components/enhanced/card.tsx +0 -266
  38. package/src/components/enhanced/dialog.tsx +0 -246
  39. package/src/components/enhanced/index.ts +0 -4
  40. package/src/components/error-boundary/index.tsx +0 -109
  41. package/src/components/file-upload/file-upload.test.tsx +0 -243
  42. package/src/components/file-upload/index.tsx +0 -1660
  43. package/src/components/floating-action-button/index.tsx +0 -206
  44. package/src/components/form-wizard/form-wizard-context.tsx +0 -307
  45. package/src/components/form-wizard/form-wizard-navigation.tsx +0 -118
  46. package/src/components/form-wizard/form-wizard-progress.tsx +0 -298
  47. package/src/components/form-wizard/form-wizard-step.tsx +0 -111
  48. package/src/components/form-wizard/index.tsx +0 -102
  49. package/src/components/form-wizard/types.ts +0 -76
  50. package/src/components/gesture-drawer/index.tsx +0 -551
  51. package/src/components/github-stars/github-api.ts +0 -426
  52. package/src/components/github-stars/hooks.ts +0 -516
  53. package/src/components/github-stars/index.tsx +0 -375
  54. package/src/components/github-stars/types.ts +0 -148
  55. package/src/components/github-stars/variants.tsx +0 -513
  56. package/src/components/health-check/index.tsx +0 -439
  57. package/src/components/hover-card-3d/index.tsx +0 -530
  58. package/src/components/index.ts +0 -128
  59. package/src/components/internal/index.ts +0 -78
  60. package/src/components/kanban/add-card-modal.tsx +0 -502
  61. package/src/components/kanban/card-detail-modal.tsx +0 -761
  62. package/src/components/kanban/index.ts +0 -13
  63. package/src/components/kanban/kanban.tsx +0 -1684
  64. package/src/components/kanban/types.ts +0 -168
  65. package/src/components/lazy-component/index.tsx +0 -823
  66. package/src/components/license-error/index.tsx +0 -29
  67. package/src/components/magnetic-button/index.tsx +0 -167
  68. package/src/components/memory-efficient-data/index.tsx +0 -1016
  69. package/src/components/moonui-quiz-form/index.tsx +0 -817
  70. package/src/components/optimized-image/index.tsx +0 -425
  71. package/src/components/performance-debugger/index.tsx +0 -589
  72. package/src/components/performance-monitor/index.tsx +0 -794
  73. package/src/components/phone-number-input/index.tsx +0 -338
  74. package/src/components/pinch-zoom/index.tsx +0 -566
  75. package/src/components/quiz-form/index.tsx +0 -479
  76. package/src/components/rich-text-editor/index-old-backup.tsx +0 -437
  77. package/src/components/rich-text-editor/index.tsx +0 -2324
  78. package/src/components/rich-text-editor/slash-commands-extension.ts +0 -220
  79. package/src/components/rich-text-editor/slash-commands.css +0 -35
  80. package/src/components/rich-text-editor/table-styles.css +0 -65
  81. package/src/components/sidebar/index.tsx +0 -865
  82. package/src/components/spotlight-card/index.tsx +0 -191
  83. package/src/components/swipeable-card/index.tsx +0 -100
  84. package/src/components/timeline/index.tsx +0 -1148
  85. package/src/components/ui/accordion.tsx +0 -73
  86. package/src/components/ui/alert-dialog.tsx +0 -141
  87. package/src/components/ui/alert.tsx +0 -141
  88. package/src/components/ui/aspect-ratio.tsx +0 -245
  89. package/src/components/ui/avatar.tsx +0 -153
  90. package/src/components/ui/badge.tsx +0 -228
  91. package/src/components/ui/breadcrumb.tsx +0 -214
  92. package/src/components/ui/button.tsx +0 -222
  93. package/src/components/ui/calendar.tsx +0 -387
  94. package/src/components/ui/card.tsx +0 -214
  95. package/src/components/ui/checkbox.tsx +0 -259
  96. package/src/components/ui/collapsible.tsx +0 -135
  97. package/src/components/ui/color-picker.tsx +0 -97
  98. package/src/components/ui/command.tsx +0 -225
  99. package/src/components/ui/dialog.tsx +0 -334
  100. package/src/components/ui/dropdown-menu.tsx +0 -218
  101. package/src/components/ui/gesture-drawer.tsx +0 -11
  102. package/src/components/ui/hover-card.tsx +0 -29
  103. package/src/components/ui/index.ts +0 -190
  104. package/src/components/ui/input.tsx +0 -222
  105. package/src/components/ui/label.tsx +0 -29
  106. package/src/components/ui/lightbox.tsx +0 -606
  107. package/src/components/ui/magnetic-button.tsx +0 -129
  108. package/src/components/ui/media-gallery.tsx +0 -612
  109. package/src/components/ui/pagination.tsx +0 -123
  110. package/src/components/ui/popover.tsx +0 -185
  111. package/src/components/ui/progress.tsx +0 -30
  112. package/src/components/ui/radio-group.tsx +0 -257
  113. package/src/components/ui/scroll-area.tsx +0 -47
  114. package/src/components/ui/select.tsx +0 -374
  115. package/src/components/ui/separator.tsx +0 -145
  116. package/src/components/ui/sheet.tsx +0 -139
  117. package/src/components/ui/skeleton.tsx +0 -20
  118. package/src/components/ui/slider.tsx +0 -354
  119. package/src/components/ui/spotlight-card.tsx +0 -119
  120. package/src/components/ui/switch.tsx +0 -86
  121. package/src/components/ui/table.tsx +0 -329
  122. package/src/components/ui/tabs.tsx +0 -198
  123. package/src/components/ui/textarea.tsx +0 -28
  124. package/src/components/ui/toast.tsx +0 -317
  125. package/src/components/ui/toggle.tsx +0 -119
  126. package/src/components/ui/tooltip.tsx +0 -151
  127. package/src/components/virtual-list/index.tsx +0 -668
  128. package/src/hooks/use-chart.ts +0 -205
  129. package/src/hooks/use-data-table.ts +0 -182
  130. package/src/hooks/use-docs-pro-access.ts +0 -13
  131. package/src/hooks/use-license-check.ts +0 -65
  132. package/src/hooks/use-subscription.ts +0 -19
  133. package/src/hooks/use-toast.ts +0 -15
  134. package/src/index.ts +0 -14
  135. package/src/lib/ai-providers.ts +0 -377
  136. package/src/lib/component-metadata.ts +0 -18
  137. package/src/lib/micro-interactions.ts +0 -255
  138. package/src/lib/paddle.ts +0 -17
  139. package/src/lib/utils.ts +0 -6
  140. package/src/patterns/login-form/index.tsx +0 -276
  141. package/src/patterns/login-form/types.ts +0 -67
  142. package/src/setupTests.ts +0 -41
  143. package/src/styles/advanced-chart.css +0 -239
  144. package/src/styles/calendar.css +0 -35
  145. package/src/styles/design-system.css +0 -363
  146. package/src/styles/index.css +0 -85
  147. package/src/styles/tailwind.css +0 -7
  148. package/src/styles/tokens.css +0 -455
  149. package/src/types/moonui.d.ts +0 -22
  150. package/src/types/next-auth.d.ts +0 -21
  151. package/src/use-intersection-observer.tsx +0 -154
  152. package/src/use-local-storage.tsx +0 -71
  153. package/src/use-paddle.ts +0 -138
  154. package/src/use-performance-optimizer.ts +0 -389
  155. package/src/use-pro-access.ts +0 -141
  156. package/src/use-scroll-animation.ts +0 -219
  157. package/src/use-subscription.ts +0 -37
  158. package/src/use-toast.ts +0 -32
  159. package/src/utils/chart-helpers.ts +0 -357
  160. package/src/utils/cn.ts +0 -6
  161. package/src/utils/data-processing.ts +0 -151
  162. package/src/utils/license-validator.tsx +0 -183
@@ -1,530 +0,0 @@
1
- "use client"
2
-
3
- import React, { useRef, useState, useCallback, useEffect, useMemo } from "react"
4
- import { motion, useMotionValue, useSpring, useTransform } from "framer-motion"
5
- import { cn } from "../../lib/utils"
6
- import { Card, CardContent } from "../ui/card"
7
- import { Button } from "../ui/button"
8
- import { Lock, Sparkles } from "lucide-react"
9
- import { useSubscription } from "../../hooks/use-subscription"
10
- import { cva, type VariantProps } from "class-variance-authority"
11
-
12
- const hoverCard3DVariants = cva(
13
- "relative rounded-lg border bg-card text-card-foreground shadow-sm transition-all duration-200",
14
- {
15
- variants: {
16
- variant: {
17
- subtle: "hover:bg-card/95",
18
- dramatic: "hover:bg-gradient-to-br hover:from-card hover:to-card/80",
19
- gaming: "hover:border-primary/50 hover:shadow-lg hover:shadow-primary/25",
20
- elegant: "hover:border-border/50 hover:bg-gradient-to-br hover:from-card hover:via-card/95 hover:to-card/90",
21
- neon: "hover:border-primary hover:shadow-[0_0_30px_rgba(var(--primary),0.3)]"
22
- },
23
- shadowIntensity: {
24
- none: "",
25
- light: "hover:shadow-md",
26
- medium: "hover:shadow-lg",
27
- heavy: "hover:shadow-xl",
28
- extreme: "hover:shadow-2xl"
29
- },
30
- glowEffect: {
31
- none: "",
32
- subtle: "",
33
- vibrant: "",
34
- neon: ""
35
- }
36
- },
37
- defaultVariants: {
38
- variant: "subtle",
39
- shadowIntensity: "medium",
40
- glowEffect: "none"
41
- }
42
- }
43
- )
44
-
45
- export interface SpringConfig {
46
- stiffness?: number
47
- damping?: number
48
- mass?: number
49
- velocity?: number
50
- restSpeed?: number
51
- restDelta?: number
52
- }
53
-
54
- export type OverlayRenderProp = (props: {
55
- isHovered: boolean
56
- rotateX: number
57
- rotateY: number
58
- }) => React.ReactNode
59
-
60
- export interface HoverCard3DProps
61
- extends React.HTMLAttributes<HTMLDivElement>,
62
- VariantProps<typeof hoverCard3DVariants> {
63
- /**
64
- * The perspective value for 3D transformation
65
- * @default 1000
66
- */
67
- perspective?: number
68
-
69
- /**
70
- * Maximum rotation angle in degrees
71
- * @default 15
72
- */
73
- maxRotation?: number
74
-
75
- /**
76
- * @deprecated Use maxRotation instead
77
- */
78
- rotationIntensity?: number
79
-
80
- /**
81
- * Scale factor when hovered
82
- * @default 1.05
83
- */
84
- scale?: number
85
-
86
- /**
87
- * Spring animation configuration
88
- */
89
- springConfig?: SpringConfig
90
-
91
- /**
92
- * Animation speed multiplier (0-1)
93
- * @default 1
94
- */
95
- animationSpeed?: number
96
-
97
- /**
98
- * Static or dynamic overlay content
99
- */
100
- overlay?: React.ReactNode | OverlayRenderProp
101
-
102
- /**
103
- * Show overlay even when not hovered
104
- * @default false
105
- */
106
- overlayAlwaysVisible?: boolean
107
-
108
- /**
109
- * Glow color (CSS color value)
110
- */
111
- glowColor?: string
112
-
113
- /**
114
- * Glow blur amount in pixels
115
- * @default 20
116
- */
117
- glowBlur?: number
118
-
119
- /**
120
- * Glow spread amount
121
- * @default 1.2
122
- */
123
- glowSpread?: number
124
-
125
- /**
126
- * Enable touch support for mobile devices
127
- * @default true
128
- */
129
- enableTouch?: boolean
130
-
131
- /**
132
- * Enable keyboard navigation
133
- * @default true
134
- */
135
- enableKeyboard?: boolean
136
-
137
- /**
138
- * Callback when hover starts
139
- */
140
- onHoverStart?: () => void
141
-
142
- /**
143
- * Callback when hover ends
144
- */
145
- onHoverEnd?: () => void
146
-
147
- /**
148
- * Callback when rotation changes
149
- */
150
- onRotationChange?: (rotateX: number, rotateY: number) => void
151
-
152
- /**
153
- * Animation delay in ms
154
- * @default 0
155
- */
156
- animationDelay?: number
157
-
158
- /**
159
- * ARIA label for accessibility
160
- */
161
- ariaLabel?: string
162
-
163
- /**
164
- * Auto focus on mount
165
- * @default false
166
- */
167
- autoFocus?: boolean
168
-
169
- /**
170
- * Control which axes can rotate
171
- * @default { x: true, y: true }
172
- */
173
- rotateAxes?: {
174
- x?: boolean
175
- y?: boolean
176
- }
177
- }
178
-
179
- const HoverCard3DInternal = React.forwardRef<HTMLDivElement, HoverCard3DProps>(
180
- ({
181
- children,
182
- className,
183
- variant,
184
- shadowIntensity,
185
- glowEffect,
186
- perspective = 1000,
187
- maxRotation = 15,
188
- rotationIntensity,
189
- scale = 1.05,
190
- springConfig = {
191
- stiffness: 200,
192
- damping: 15,
193
- mass: 1,
194
- velocity: 0
195
- },
196
- animationSpeed = 1,
197
- overlay,
198
- overlayAlwaysVisible = false,
199
- glowColor = "rgb(var(--primary))",
200
- glowBlur = 20,
201
- glowSpread = 1.2,
202
- enableTouch = true,
203
- enableKeyboard = true,
204
- onHoverStart,
205
- onHoverEnd,
206
- onRotationChange,
207
- animationDelay = 0,
208
- ariaLabel,
209
- autoFocus = false,
210
- rotateAxes = { x: true, y: true },
211
- ...restProps
212
- }, ref) => {
213
- // Filter out drag and animation event handlers to avoid conflicts with Framer Motion
214
- const { onDrag, onDragStart, onDragEnd, onDragOver, onDrop, onAnimationStart, onAnimationEnd, onAnimationIteration, ...props } = restProps
215
- const cardRef = useRef<HTMLDivElement>(null)
216
- const [isHovered, setIsHovered] = useState(false)
217
- const [isFocused, setIsFocused] = useState(false)
218
-
219
- // Use maxRotation, fallback to rotationIntensity for backwards compatibility
220
- const rotation = maxRotation || rotationIntensity || 15
221
-
222
- const x = useMotionValue(0)
223
- const y = useMotionValue(0)
224
-
225
- const springX = useSpring(x, {
226
- ...springConfig,
227
- stiffness: springConfig.stiffness! * animationSpeed,
228
- damping: springConfig.damping! / animationSpeed
229
- })
230
- const springY = useSpring(y, {
231
- ...springConfig,
232
- stiffness: springConfig.stiffness! * animationSpeed,
233
- damping: springConfig.damping! / animationSpeed
234
- })
235
-
236
- const rotateX = useTransform(
237
- springY,
238
- [-1, 1],
239
- rotateAxes.x ? [rotation, -rotation] : [0, 0]
240
- )
241
- const rotateY = useTransform(
242
- springX,
243
- [-1, 1],
244
- rotateAxes.y ? [-rotation, rotation] : [0, 0]
245
- )
246
-
247
- const handleMouseMove = useCallback((e: React.MouseEvent | React.TouchEvent) => {
248
- if (!cardRef.current) return
249
-
250
- const rect = cardRef.current.getBoundingClientRect()
251
- const centerX = rect.left + rect.width / 2
252
- const centerY = rect.top + rect.height / 2
253
-
254
- let clientX: number, clientY: number
255
-
256
- if ('touches' in e && enableTouch) {
257
- clientX = e.touches[0].clientX
258
- clientY = e.touches[0].clientY
259
- } else if ('clientX' in e) {
260
- clientX = e.clientX
261
- clientY = e.clientY
262
- } else {
263
- return
264
- }
265
-
266
- const rotateXValue = (clientY - centerY) / (rect.height / 2)
267
- const rotateYValue = (clientX - centerX) / (rect.width / 2)
268
-
269
- x.set(rotateYValue)
270
- y.set(rotateXValue)
271
-
272
- if (onRotationChange) {
273
- onRotationChange(rotateX.get(), rotateY.get())
274
- }
275
- }, [enableTouch, x, y, rotateX, rotateY, onRotationChange])
276
-
277
- const handleMouseEnter = useCallback(() => {
278
- setIsHovered(true)
279
- onHoverStart?.()
280
- }, [onHoverStart])
281
-
282
- const handleMouseLeave = useCallback(() => {
283
- setIsHovered(false)
284
- x.set(0)
285
- y.set(0)
286
- onHoverEnd?.()
287
- }, [x, y, onHoverEnd])
288
-
289
- const handleKeyDown = useCallback((e: React.KeyboardEvent) => {
290
- if (!enableKeyboard || !isFocused) return
291
-
292
- const step = 0.1
293
- let newX = x.get()
294
- let newY = y.get()
295
-
296
- switch (e.key) {
297
- case 'ArrowUp':
298
- newY = Math.max(-0.5, newY - step)
299
- y.set(newY)
300
- e.preventDefault()
301
- break
302
- case 'ArrowDown':
303
- newY = Math.min(0.5, newY + step)
304
- y.set(newY)
305
- e.preventDefault()
306
- break
307
- case 'ArrowLeft':
308
- newX = Math.max(-0.5, newX - step)
309
- x.set(newX)
310
- e.preventDefault()
311
- break
312
- case 'ArrowRight':
313
- newX = Math.min(0.5, newX + step)
314
- x.set(newX)
315
- e.preventDefault()
316
- break
317
- case 'Enter':
318
- case ' ':
319
- setIsHovered(!isHovered)
320
- if (!isHovered) {
321
- onHoverStart?.()
322
- } else {
323
- onHoverEnd?.()
324
- }
325
- e.preventDefault()
326
- break
327
- case 'Escape':
328
- x.set(0)
329
- y.set(0)
330
- setIsHovered(false)
331
- onHoverEnd?.()
332
- e.preventDefault()
333
- break
334
- }
335
-
336
- if (onRotationChange) {
337
- onRotationChange(rotateX.get(), rotateY.get())
338
- }
339
- }, [enableKeyboard, isFocused, x, y, isHovered, onHoverStart, onHoverEnd, rotateX, rotateY, onRotationChange])
340
-
341
- useEffect(() => {
342
- if (autoFocus && cardRef.current) {
343
- cardRef.current.focus()
344
- }
345
- }, [autoFocus])
346
-
347
- const overlayContent = useMemo(() => {
348
- if (!overlay) return null
349
-
350
- if (typeof overlay === 'function') {
351
- return overlay({
352
- isHovered,
353
- rotateX: rotateX.get(),
354
- rotateY: rotateY.get()
355
- })
356
- }
357
-
358
- return overlay
359
- }, [overlay, isHovered, rotateX, rotateY])
360
-
361
- const glowStyle = useMemo(() => {
362
- if (glowEffect === 'none') return {}
363
-
364
- let opacity = 0
365
- let blur = glowBlur
366
- let spread = glowSpread
367
-
368
- switch (glowEffect) {
369
- case 'subtle':
370
- opacity = isHovered ? 0.3 : 0
371
- break
372
- case 'vibrant':
373
- opacity = isHovered ? 0.6 : 0
374
- blur = glowBlur * 1.5
375
- break
376
- case 'neon':
377
- opacity = isHovered ? 0.8 : 0
378
- blur = glowBlur * 2
379
- spread = glowSpread * 1.3
380
- break
381
- }
382
-
383
- return {
384
- opacity,
385
- filter: `blur(${blur}px)`,
386
- scale: spread,
387
- backgroundColor: glowColor
388
- }
389
- }, [glowEffect, isHovered, glowBlur, glowSpread, glowColor])
390
-
391
- return (
392
- <div style={{ perspective: `${perspective}px` }}>
393
- <motion.div
394
- ref={(node) => {
395
- cardRef.current = node
396
- if (typeof ref === "function") {
397
- ref(node)
398
- } else if (ref) {
399
- ref.current = node
400
- }
401
- }}
402
- className={cn(
403
- hoverCard3DVariants({ variant, shadowIntensity, glowEffect }),
404
- "focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
405
- className
406
- )}
407
- onMouseMove={handleMouseMove}
408
- onMouseEnter={handleMouseEnter}
409
- onMouseLeave={handleMouseLeave}
410
- onTouchMove={enableTouch ? handleMouseMove : undefined}
411
- onTouchStart={enableTouch ? handleMouseEnter : undefined}
412
- onTouchEnd={enableTouch ? handleMouseLeave : undefined}
413
- onKeyDown={handleKeyDown}
414
- onFocus={() => setIsFocused(true)}
415
- onBlur={() => setIsFocused(false)}
416
- style={{
417
- transformStyle: "preserve-3d",
418
- transformOrigin: "center center",
419
- rotateX: isHovered || isFocused ? rotateX : 0,
420
- rotateY: isHovered || isFocused ? rotateY : 0,
421
- scale: isHovered || isFocused ? scale : 1,
422
- }}
423
- transition={{
424
- type: "spring",
425
- stiffness: springConfig.stiffness,
426
- damping: springConfig.damping,
427
- duration: 0.15 * (1 / animationSpeed),
428
- delay: animationDelay / 1000
429
- }}
430
- tabIndex={enableKeyboard ? 0 : undefined}
431
- role={enableKeyboard ? "button" : undefined}
432
- aria-label={ariaLabel}
433
- {...props}
434
- >
435
- <motion.div
436
- className="relative z-10"
437
- animate={{
438
- z: isHovered || isFocused ? 20 : 0,
439
- }}
440
- transition={{ duration: 0.2 * (1 / animationSpeed) }}
441
- >
442
- {children}
443
- </motion.div>
444
-
445
- {/* Overlay */}
446
- {overlayContent && (
447
- <motion.div
448
- className="absolute inset-0 rounded-lg pointer-events-none z-20"
449
- animate={{
450
- opacity: overlayAlwaysVisible ? 1 : (isHovered || isFocused ? 1 : 0),
451
- }}
452
- transition={{ duration: 0.3 * (1 / animationSpeed) }}
453
- >
454
- {overlayContent}
455
- </motion.div>
456
- )}
457
-
458
- {/* Gradient overlay */}
459
- {variant !== 'subtle' && (
460
- <motion.div
461
- className={cn(
462
- "absolute inset-0 rounded-lg pointer-events-none",
463
- variant === 'dramatic' && "bg-gradient-to-br from-white/10 via-transparent to-black/10",
464
- variant === 'gaming' && "bg-gradient-to-br from-primary/10 via-transparent to-primary/5",
465
- variant === 'elegant' && "bg-gradient-to-br from-white/5 via-transparent to-black/5",
466
- variant === 'neon' && "bg-gradient-to-br from-primary/20 via-transparent to-primary/10"
467
- )}
468
- animate={{
469
- opacity: isHovered || isFocused ? 1 : 0,
470
- }}
471
- transition={{ duration: 0.3 * (1 / animationSpeed) }}
472
- />
473
- )}
474
-
475
- {/* Glow effect */}
476
- {glowEffect !== 'none' && (
477
- <motion.div
478
- className="absolute inset-0 rounded-lg pointer-events-none"
479
- animate={glowStyle}
480
- transition={{ duration: 0.3 * (1 / animationSpeed) }}
481
- style={{ zIndex: -1 }}
482
- />
483
- )}
484
- </motion.div>
485
- </div>
486
- )
487
- }
488
- )
489
-
490
- HoverCard3DInternal.displayName = "HoverCard3DInternal"
491
-
492
- export const HoverCard3D = React.forwardRef<HTMLDivElement, HoverCard3DProps>(
493
- (props, ref) => {
494
- // Pro package - always show component
495
- const { hasProAccess, isLoading } = useSubscription()
496
-
497
- // Show upgrade prompt if no pro access
498
- if (!isLoading && !hasProAccess) {
499
- return (
500
- <Card className={cn("w-fit", props.className)}>
501
- <CardContent className="py-6 text-center">
502
- <div className="space-y-4">
503
- <div className="rounded-full bg-purple-100 dark:bg-purple-900/30 p-3 w-fit mx-auto">
504
- <Lock className="h-6 w-6 text-purple-600 dark:text-purple-400" />
505
- </div>
506
- <div>
507
- <h3 className="font-semibold text-sm mb-2">Pro Feature</h3>
508
- <p className="text-muted-foreground text-xs mb-4">
509
- 3D Hover Card is available exclusively to MoonUI Pro subscribers.
510
- </p>
511
- <a href="/pricing">
512
- <Button size="sm">
513
- <Sparkles className="mr-2 h-4 w-4" />
514
- Upgrade to Pro
515
- </Button>
516
- </a>
517
- </div>
518
- </div>
519
- </CardContent>
520
- </Card>
521
- )
522
- }
523
-
524
- return <HoverCard3DInternal {...props} ref={ref} />
525
- }
526
- )
527
-
528
- HoverCard3D.displayName = "HoverCard3D"
529
-
530
- export { hoverCard3DVariants }
@@ -1,128 +0,0 @@
1
- // Pro Components Export - Source of Truth: packages/moonui-pro
2
-
3
- // UI Components (Enhanced versions with Pro suffix)
4
- export * from "./ui"
5
-
6
- // Animated Button
7
- export {
8
- MoonUIAnimatedButtonPro,
9
- moonUIAnimatedButtonProVariants,
10
- type MoonUIAnimatedButtonProProps
11
- } from "./animated-button"
12
-
13
- // Error Boundary
14
- export * from "./error-boundary"
15
-
16
- // Floating Action Button
17
- export * from "./floating-action-button"
18
-
19
- // Hover Card 3D
20
- export * from "./hover-card-3d"
21
-
22
- // Magnetic Button
23
- export * from "./magnetic-button"
24
-
25
- // Pinch Zoom
26
- export * from "./pinch-zoom"
27
-
28
- // Spotlight Card
29
- export * from "./spotlight-card"
30
-
31
- // Calendar component (Advanced version with events)
32
- export { Calendar as AdvancedCalendar } from "./calendar"
33
-
34
- // Calendar Pro - Full-featured event management calendar
35
- export * from "./calendar-pro"
36
-
37
- // Kanban
38
- export { Kanban } from "./kanban"
39
- export type { KanbanCard, KanbanColumn, KanbanProps, KanbanAssignee, KanbanLabel } from "./kanban"
40
-
41
- // Rich Text Editor
42
- export * from "./rich-text-editor"
43
-
44
- // Memory Efficient Data
45
- export * from "./memory-efficient-data"
46
-
47
- // Virtual List
48
- export * from "./virtual-list"
49
-
50
- // Swipeable Card
51
- export * from "./swipeable-card"
52
-
53
- // Timeline
54
- export * from "./timeline"
55
-
56
- // Advanced Chart
57
- export * from "./advanced-chart"
58
-
59
- // Dashboard
60
- export * from "./dashboard"
61
-
62
- // Draggable List
63
- export * from "./draggable-list"
64
-
65
- // Advanced Forms
66
- export * from "./advanced-forms"
67
-
68
- // Note: ColorPicker is available in UI components
69
-
70
- // GitHub Stars
71
- export * from "./github-stars"
72
-
73
- // Health Check
74
- export * from "./health-check"
75
-
76
- // Lazy Component
77
- export * from "./lazy-component"
78
-
79
- // Optimized Image
80
- export * from "./optimized-image"
81
-
82
- // Performance Debugger
83
- export * from "./performance-debugger"
84
-
85
- // Performance Monitor
86
- export * from "./performance-monitor"
87
-
88
- // File Upload
89
- export * from "./file-upload"
90
-
91
- // Data Table
92
- export * from "./data-table"
93
-
94
- // Sidebar
95
- export * from "./sidebar"
96
-
97
- // Form Wizard
98
- export * from "./form-wizard"
99
-
100
-
101
- // Quiz Form
102
- export * from "./quiz-form"
103
-
104
- // Credit Card Input
105
- export * from "./credit-card-input"
106
-
107
- // Phone Number Input
108
- export * from "./phone-number-input"
109
-
110
- // MoonUI Quiz Form (Advanced)
111
- export {
112
- MoonUIQuizFormPro,
113
- type MoonUIQuizFormProProps,
114
- type Question as MoonUIQuestion,
115
- type QuestionType as MoonUIQuestionType,
116
- type QuizSettings as MoonUIQuizSettings,
117
- type UserAnswer as MoonUIUserAnswer,
118
- type QuizResult as MoonUIQuizResult
119
- } from "./moonui-quiz-form"
120
-
121
- // Gesture Drawer
122
- export {
123
- MoonUIGestureDrawerPro,
124
- GestureDrawer,
125
- type MoonUIGestureDrawerProProps,
126
- type GestureDrawerProps,
127
- moonUIGestureDrawerProVariants
128
- } from "./gesture-drawer"