@moontra/moonui-pro 2.20.1 → 2.20.2

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 (76) hide show
  1. package/dist/index.d.ts +691 -261
  2. package/dist/index.mjs +7418 -4934
  3. package/package.json +4 -3
  4. package/scripts/postbuild.js +27 -0
  5. package/src/components/advanced-chart/index.tsx +5 -1
  6. package/src/components/advanced-forms/index.tsx +175 -16
  7. package/src/components/calendar/event-dialog.tsx +18 -13
  8. package/src/components/calendar/index.tsx +197 -50
  9. package/src/components/dashboard/dashboard-grid.tsx +21 -3
  10. package/src/components/dashboard/types.ts +3 -0
  11. package/src/components/dashboard/widgets/activity-feed.tsx +6 -1
  12. package/src/components/dashboard/widgets/comparison-widget.tsx +177 -0
  13. package/src/components/dashboard/widgets/index.ts +5 -0
  14. package/src/components/dashboard/widgets/metric-card.tsx +21 -1
  15. package/src/components/dashboard/widgets/progress-widget.tsx +113 -0
  16. package/src/components/error-boundary/index.tsx +160 -37
  17. package/src/components/form-wizard/form-wizard-context.tsx +54 -26
  18. package/src/components/form-wizard/form-wizard-progress.tsx +33 -2
  19. package/src/components/form-wizard/types.ts +2 -1
  20. package/src/components/github-stars/hooks.ts +1 -0
  21. package/src/components/github-stars/variants.tsx +3 -1
  22. package/src/components/health-check/index.tsx +14 -14
  23. package/src/components/hover-card-3d/index.tsx +2 -3
  24. package/src/components/index.ts +5 -3
  25. package/src/components/kanban/kanban.tsx +23 -18
  26. package/src/components/license-error/index.tsx +2 -0
  27. package/src/components/magnetic-button/index.tsx +56 -7
  28. package/src/components/memory-efficient-data/index.tsx +117 -115
  29. package/src/components/navbar/index.tsx +781 -0
  30. package/src/components/performance-debugger/index.tsx +62 -38
  31. package/src/components/performance-monitor/index.tsx +47 -33
  32. package/src/components/phone-number-input/index.tsx +32 -27
  33. package/src/components/phone-number-input/phone-number-input-simple.tsx +167 -0
  34. package/src/components/rich-text-editor/index.tsx +26 -28
  35. package/src/components/rich-text-editor/slash-commands-extension.ts +15 -5
  36. package/src/components/sidebar/index.tsx +32 -13
  37. package/src/components/timeline/index.tsx +84 -49
  38. package/src/components/ui/accordion.tsx +550 -42
  39. package/src/components/ui/avatar.tsx +2 -0
  40. package/src/components/ui/badge.tsx +2 -0
  41. package/src/components/ui/breadcrumb.tsx +2 -0
  42. package/src/components/ui/button.tsx +39 -33
  43. package/src/components/ui/card.tsx +2 -0
  44. package/src/components/ui/collapsible.tsx +546 -50
  45. package/src/components/ui/command.tsx +790 -67
  46. package/src/components/ui/dialog.tsx +510 -92
  47. package/src/components/ui/dropdown-menu.tsx +540 -52
  48. package/src/components/ui/index.ts +37 -5
  49. package/src/components/ui/input.tsx +2 -0
  50. package/src/components/ui/magnetic-button.tsx +1 -1
  51. package/src/components/ui/media-gallery.tsx +1 -2
  52. package/src/components/ui/navigation-menu.tsx +130 -0
  53. package/src/components/ui/pagination.tsx +2 -0
  54. package/src/components/ui/select.tsx +6 -2
  55. package/src/components/ui/spotlight-card.tsx +1 -1
  56. package/src/components/ui/table.tsx +2 -0
  57. package/src/components/ui/tabs-pro.tsx +542 -0
  58. package/src/components/ui/tabs.tsx +23 -167
  59. package/src/components/ui/toggle.tsx +12 -12
  60. package/src/index.ts +11 -3
  61. package/src/styles/index.css +596 -0
  62. package/src/use-performance-optimizer.ts +1 -1
  63. package/src/utils/chart-helpers.ts +1 -1
  64. package/src/__tests__/use-intersection-observer.test.tsx +0 -216
  65. package/src/__tests__/use-local-storage.test.tsx +0 -174
  66. package/src/__tests__/use-pro-access.test.tsx +0 -183
  67. package/src/components/advanced-chart/advanced-chart.test.tsx +0 -281
  68. package/src/components/data-table/data-table.test.tsx +0 -187
  69. package/src/components/enhanced/badge.tsx +0 -191
  70. package/src/components/enhanced/button.tsx +0 -362
  71. package/src/components/enhanced/card.tsx +0 -266
  72. package/src/components/enhanced/dialog.tsx +0 -246
  73. package/src/components/enhanced/index.ts +0 -4
  74. package/src/components/file-upload/file-upload.test.tsx +0 -243
  75. package/src/components/rich-text-editor/index-old-backup.tsx +0 -437
  76. package/src/types/moonui.d.ts +0 -22
@@ -1,3 +1,5 @@
1
+ "use client"
2
+
1
3
  import * as React from "react";
2
4
  import { cva, type VariantProps } from "class-variance-authority";
3
5
  import { cn } from "../../lib/utils";
@@ -29,11 +31,11 @@ const moonUIButtonProVariants = cva(
29
31
  "transition-all duration-200",
30
32
  ],
31
33
  secondary: [
32
- "bg-muted text-muted-foreground",
33
- "dark:bg-muted dark:text-muted-foreground",
34
- "hover:bg-muted/80 dark:hover:bg-muted/80",
35
- "active:bg-muted/70 dark:active:bg-muted/70",
36
- "border border-input dark:border-input",
34
+ "bg-gray-100 text-gray-900",
35
+ "dark:bg-gray-800 dark:text-gray-100",
36
+ "hover:bg-gray-200 dark:hover:bg-gray-700",
37
+ "active:bg-gray-300 dark:active:bg-gray-600",
38
+ "border border-gray-200 dark:border-gray-700",
37
39
  "focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
38
40
  "shadow-sm hover:shadow-md",
39
41
  ],
@@ -47,10 +49,10 @@ const moonUIButtonProVariants = cva(
47
49
  "transition-all duration-200",
48
50
  ],
49
51
  ghost: [
50
- "text-foreground",
51
- "dark:text-foreground",
52
- "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent dark:hover:text-accent-foreground",
53
- "active:bg-accent/80 dark:active:bg-accent/80",
52
+ "text-gray-700",
53
+ "dark:text-gray-300",
54
+ "hover:bg-gray-100 hover:text-gray-900 dark:hover:bg-gray-800 dark:hover:text-gray-100",
55
+ "active:bg-gray-200 dark:active:bg-gray-700",
54
56
  "focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
55
57
  "transition-all duration-200",
56
58
  ],
@@ -80,19 +82,21 @@ const moonUIButtonProVariants = cva(
80
82
  "transition-colors duration-200",
81
83
  ],
82
84
  gradient: [
83
- "bg-gradient-to-r from-blue-600 to-purple-600 text-white",
84
- "hover:from-blue-700 hover:to-purple-700",
85
- "active:from-blue-800 active:to-purple-800",
86
- "shadow-lg shadow-purple-500/25",
85
+ "bg-gradient-to-r from-purple-500 to-pink-500 text-white",
86
+ "hover:from-purple-600 hover:to-pink-600",
87
+ "active:from-purple-700 active:to-pink-700",
88
+ "shadow-xl shadow-purple-500/40",
89
+ "hover:shadow-2xl hover:shadow-purple-500/50",
87
90
  "focus-visible:ring-purple-500/50",
88
91
  "transition-all duration-300",
89
92
  ],
90
93
  glow: [
91
- "bg-primary text-primary-foreground",
92
- "shadow-lg shadow-primary/50",
93
- "hover:shadow-xl hover:shadow-primary/60",
94
- "active:shadow-md active:shadow-primary/40",
95
- "focus-visible:ring-primary/50",
94
+ "bg-blue-500 text-white",
95
+ "shadow-[0_0_30px_rgba(59,130,246,0.5)]",
96
+ "hover:shadow-[0_0_40px_rgba(59,130,246,0.7)]",
97
+ "active:shadow-[0_0_20px_rgba(59,130,246,0.4)]",
98
+ "hover:bg-blue-600",
99
+ "focus-visible:ring-blue-500/50",
96
100
  "transition-all duration-300",
97
101
  ],
98
102
  soft: [
@@ -116,29 +120,31 @@ const moonUIButtonProVariants = cva(
116
120
  "transition-all duration-200",
117
121
  ],
118
122
  neon: [
119
- "bg-transparent text-primary",
120
- "border-2 border-primary",
121
- "hover:bg-primary hover:text-primary-foreground",
122
- "hover:shadow-[0_0_20px_rgba(var(--primary),0.5)]",
123
- "active:shadow-[0_0_10px_rgba(var(--primary),0.3)]",
124
- "focus-visible:ring-primary/50",
123
+ "bg-transparent text-green-400",
124
+ "border-2 border-green-400",
125
+ "hover:bg-green-400 hover:text-gray-900",
126
+ "hover:shadow-[0_0_30px_rgba(74,222,128,0.6)]",
127
+ "active:shadow-[0_0_15px_rgba(74,222,128,0.4)]",
128
+ "focus-visible:ring-green-400/50",
125
129
  "transition-all duration-300",
126
130
  ],
127
131
  },
128
132
  size: {
129
- xs: "h-7 px-2.5 text-xs rounded-md",
130
- sm: "h-8 px-3 text-sm rounded-md",
131
- md: "h-10 px-4 text-base rounded-lg",
132
- lg: "h-12 px-6 text-lg rounded-lg",
133
- xl: "h-14 px-8 text-xl rounded-xl",
134
- icon: "h-10 w-10 p-2 rounded-lg",
135
- "icon-sm": "h-8 w-8 p-1.5 rounded-md",
136
- "icon-lg": "h-12 w-12 p-3 rounded-xl",
133
+ xs: "h-7 px-2.5 text-xs",
134
+ sm: "h-8 px-3 text-sm",
135
+ md: "h-10 px-4 text-base",
136
+ lg: "h-12 px-6 text-lg",
137
+ xl: "h-14 px-8 text-xl",
138
+ icon: "h-10 w-10 p-2",
139
+ "icon-sm": "h-8 w-8 p-1.5",
140
+ "icon-lg": "h-12 w-12 p-3",
137
141
  },
138
142
  rounded: {
139
- default: "",
143
+ default: "rounded-xl",
140
144
  full: "rounded-full",
141
145
  none: "rounded-none",
146
+ sm: "rounded-lg",
147
+ lg: "rounded-2xl",
142
148
  },
143
149
  fullWidth: {
144
150
  true: "w-full",
@@ -1,3 +1,5 @@
1
+ "use client"
2
+
1
3
  import * as React from "react";
2
4
  import { cva, type VariantProps } from "class-variance-authority";
3
5
  import { motion } from "framer-motion";