@moontra/moonui-pro 2.2.0 → 2.2.1

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 (39) hide show
  1. package/dist/index.mjs +520 -520
  2. package/package.json +1 -1
  3. package/src/components/advanced-forms/index.tsx +3 -3
  4. package/src/components/calendar/index.tsx +1 -1
  5. package/src/components/dashboard/index.tsx +1 -1
  6. package/src/components/file-upload/index.tsx +1 -1
  7. package/src/components/github-stars/index.tsx +1 -1
  8. package/src/components/health-check/index.tsx +1 -1
  9. package/src/components/kanban/index.tsx +1 -1
  10. package/src/components/optimized-image/index.tsx +1 -1
  11. package/src/components/performance-debugger/index.tsx +1 -1
  12. package/src/components/performance-monitor/index.tsx +1 -1
  13. package/src/components/rich-text-editor/index.tsx +1 -1
  14. package/src/components/timeline/index.tsx +1 -1
  15. package/src/components/ui/animated-button.tsx +1 -1
  16. package/src/components/ui/avatar.tsx +10 -7
  17. package/src/components/ui/badge.tsx +10 -7
  18. package/src/components/ui/card.tsx +19 -16
  19. package/src/components/ui/checkbox.tsx +8 -5
  20. package/src/components/ui/color-picker.tsx +6 -4
  21. package/src/components/ui/dialog.tsx +23 -21
  22. package/src/components/ui/dropdown-menu.tsx +36 -34
  23. package/src/components/ui/hover-card-3d.tsx +1 -1
  24. package/src/components/ui/input.tsx +9 -6
  25. package/src/components/ui/label.tsx +7 -4
  26. package/src/components/ui/magnetic-button.tsx +1 -1
  27. package/src/components/ui/popover.tsx +11 -9
  28. package/src/components/ui/progress.tsx +5 -2
  29. package/src/components/ui/select.tsx +23 -21
  30. package/src/components/ui/separator.tsx +8 -5
  31. package/src/components/ui/skeleton.tsx +1 -1
  32. package/src/components/ui/slider.tsx +8 -5
  33. package/src/components/ui/spotlight-card.tsx +1 -1
  34. package/src/components/ui/switch.tsx +6 -3
  35. package/src/components/ui/tabs.tsx +12 -9
  36. package/src/components/ui/textarea.tsx +7 -4
  37. package/src/components/ui/toast.tsx +9 -7
  38. package/src/components/ui/tooltip.tsx +13 -11
  39. package/src/use-performance-optimizer.ts +11 -1
@@ -6,7 +6,7 @@ import { cva, type VariantProps } from "class-variance-authority"
6
6
 
7
7
  import { cn } from "../../lib/utils"
8
8
 
9
- const TooltipProvider = TooltipPrimitive.Provider
9
+ const MoonUITooltipProviderPro = TooltipPrimitive.Provider
10
10
 
11
11
  const tooltipVariants = cva(
12
12
  "z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
@@ -33,9 +33,9 @@ const tooltipVariants = cva(
33
33
  }
34
34
  )
35
35
 
36
- const Tooltip = TooltipPrimitive.Root
36
+ const MoonUITooltipPro = TooltipPrimitive.Root
37
37
 
38
- const TooltipTrigger = TooltipPrimitive.Trigger
38
+ const MoonUITooltipTriggerPro = TooltipPrimitive.Trigger
39
39
 
40
40
  const TooltipArrow = React.forwardRef<
41
41
  React.ElementRef<typeof TooltipPrimitive.Arrow>,
@@ -49,13 +49,13 @@ const TooltipArrow = React.forwardRef<
49
49
  ))
50
50
  TooltipArrow.displayName = TooltipPrimitive.Arrow.displayName
51
51
 
52
- export interface TooltipContentProps
52
+ export interface MoonUITooltipContentProProps
53
53
  extends React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>,
54
54
  VariantProps<typeof tooltipVariants> {
55
55
  showArrow?: boolean
56
56
  }
57
57
 
58
- const TooltipContent = React.forwardRef<
58
+ const MoonUITooltipContentPro = React.forwardRef<
59
59
  React.ElementRef<typeof TooltipPrimitive.Content>,
60
60
  TooltipContentProps
61
61
  >(({ className, variant, size, showArrow = false, sideOffset = 4, ...props }, ref) => (
@@ -141,12 +141,14 @@ const SimpleTooltip = React.forwardRef<
141
141
  )
142
142
  SimpleTooltip.displayName = "SimpleTooltip"
143
143
 
144
- export {
145
- Tooltip,
146
- TooltipProvider,
147
- TooltipTrigger,
148
- TooltipContent,
144
+ export { MoonUITooltipPro,
145
+ MoonUITooltipProviderPro,
146
+ MoonUITooltipTriggerPro,
147
+ MoonUITooltipContentPro,
149
148
  TooltipArrow,
150
149
  SimpleTooltip,
151
150
  tooltipVariants,
152
- }
151
+ };
152
+
153
+ // Backward compatibility exports
154
+ export { MoonUITooltipPro as Tooltip, MoonUITooltipTriggerPro as TooltipTrigger, MoonUITooltipContentPro as TooltipContent, MoonUITooltipProviderPro as TooltipProvider }
@@ -1,7 +1,17 @@
1
1
  "use client";
2
2
 
3
3
  import * as React from "react";
4
- import { performanceProfiler } from "@/lib/performance-profiler";
4
+ // Performance profiler implementation
5
+ const performanceProfiler = {
6
+ getPerformanceSummary: () => ({}),
7
+ getMeasurements: (type: string) => [] as any[],
8
+ measureComponent: (name: string, callback: () => void) => {
9
+ const start = performance.now();
10
+ callback();
11
+ const duration = performance.now() - start;
12
+ return { name, duration };
13
+ }
14
+ };
5
15
 
6
16
  // Performance optimization hooks
7
17
  export function usePerformanceOptimizer() {