@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.
- package/dist/index.d.ts +691 -261
- package/dist/index.mjs +7418 -4934
- package/package.json +4 -3
- package/scripts/postbuild.js +27 -0
- package/src/components/advanced-chart/index.tsx +5 -1
- package/src/components/advanced-forms/index.tsx +175 -16
- package/src/components/calendar/event-dialog.tsx +18 -13
- package/src/components/calendar/index.tsx +197 -50
- package/src/components/dashboard/dashboard-grid.tsx +21 -3
- package/src/components/dashboard/types.ts +3 -0
- package/src/components/dashboard/widgets/activity-feed.tsx +6 -1
- package/src/components/dashboard/widgets/comparison-widget.tsx +177 -0
- package/src/components/dashboard/widgets/index.ts +5 -0
- package/src/components/dashboard/widgets/metric-card.tsx +21 -1
- package/src/components/dashboard/widgets/progress-widget.tsx +113 -0
- package/src/components/error-boundary/index.tsx +160 -37
- package/src/components/form-wizard/form-wizard-context.tsx +54 -26
- package/src/components/form-wizard/form-wizard-progress.tsx +33 -2
- package/src/components/form-wizard/types.ts +2 -1
- package/src/components/github-stars/hooks.ts +1 -0
- package/src/components/github-stars/variants.tsx +3 -1
- package/src/components/health-check/index.tsx +14 -14
- package/src/components/hover-card-3d/index.tsx +2 -3
- package/src/components/index.ts +5 -3
- package/src/components/kanban/kanban.tsx +23 -18
- package/src/components/license-error/index.tsx +2 -0
- package/src/components/magnetic-button/index.tsx +56 -7
- package/src/components/memory-efficient-data/index.tsx +117 -115
- package/src/components/navbar/index.tsx +781 -0
- package/src/components/performance-debugger/index.tsx +62 -38
- package/src/components/performance-monitor/index.tsx +47 -33
- package/src/components/phone-number-input/index.tsx +32 -27
- package/src/components/phone-number-input/phone-number-input-simple.tsx +167 -0
- package/src/components/rich-text-editor/index.tsx +26 -28
- package/src/components/rich-text-editor/slash-commands-extension.ts +15 -5
- package/src/components/sidebar/index.tsx +32 -13
- package/src/components/timeline/index.tsx +84 -49
- package/src/components/ui/accordion.tsx +550 -42
- package/src/components/ui/avatar.tsx +2 -0
- package/src/components/ui/badge.tsx +2 -0
- package/src/components/ui/breadcrumb.tsx +2 -0
- package/src/components/ui/button.tsx +39 -33
- package/src/components/ui/card.tsx +2 -0
- package/src/components/ui/collapsible.tsx +546 -50
- package/src/components/ui/command.tsx +790 -67
- package/src/components/ui/dialog.tsx +510 -92
- package/src/components/ui/dropdown-menu.tsx +540 -52
- package/src/components/ui/index.ts +37 -5
- package/src/components/ui/input.tsx +2 -0
- package/src/components/ui/magnetic-button.tsx +1 -1
- package/src/components/ui/media-gallery.tsx +1 -2
- package/src/components/ui/navigation-menu.tsx +130 -0
- package/src/components/ui/pagination.tsx +2 -0
- package/src/components/ui/select.tsx +6 -2
- package/src/components/ui/spotlight-card.tsx +1 -1
- package/src/components/ui/table.tsx +2 -0
- package/src/components/ui/tabs-pro.tsx +542 -0
- package/src/components/ui/tabs.tsx +23 -167
- package/src/components/ui/toggle.tsx +12 -12
- package/src/index.ts +11 -3
- package/src/styles/index.css +596 -0
- package/src/use-performance-optimizer.ts +1 -1
- package/src/utils/chart-helpers.ts +1 -1
- package/src/__tests__/use-intersection-observer.test.tsx +0 -216
- package/src/__tests__/use-local-storage.test.tsx +0 -174
- package/src/__tests__/use-pro-access.test.tsx +0 -183
- package/src/components/advanced-chart/advanced-chart.test.tsx +0 -281
- package/src/components/data-table/data-table.test.tsx +0 -187
- package/src/components/enhanced/badge.tsx +0 -191
- package/src/components/enhanced/button.tsx +0 -362
- package/src/components/enhanced/card.tsx +0 -266
- package/src/components/enhanced/dialog.tsx +0 -246
- package/src/components/enhanced/index.ts +0 -4
- package/src/components/file-upload/file-upload.test.tsx +0 -243
- package/src/components/rich-text-editor/index-old-backup.tsx +0 -437
- 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-
|
|
33
|
-
"dark:bg-
|
|
34
|
-
"hover:bg-
|
|
35
|
-
"active:bg-
|
|
36
|
-
"border border-
|
|
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-
|
|
51
|
-
"dark:text-
|
|
52
|
-
"hover:bg-
|
|
53
|
-
"active:bg-
|
|
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-
|
|
84
|
-
"hover:from-
|
|
85
|
-
"active:from-
|
|
86
|
-
"shadow-
|
|
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-
|
|
92
|
-
"shadow-
|
|
93
|
-
"hover:shadow-
|
|
94
|
-
"active:shadow-
|
|
95
|
-
"
|
|
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-
|
|
120
|
-
"border-2 border-
|
|
121
|
-
"hover:bg-
|
|
122
|
-
"hover:shadow-[
|
|
123
|
-
"active:shadow-[
|
|
124
|
-
"focus-visible:ring-
|
|
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
|
|
130
|
-
sm: "h-8 px-3 text-sm
|
|
131
|
-
md: "h-10 px-4 text-base
|
|
132
|
-
lg: "h-12 px-6 text-lg
|
|
133
|
-
xl: "h-14 px-8 text-xl
|
|
134
|
-
icon: "h-10 w-10 p-2
|
|
135
|
-
"icon-sm": "h-8 w-8 p-1.5
|
|
136
|
-
"icon-lg": "h-12 w-12 p-3
|
|
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",
|