@moontra/moonui-pro 2.2.0 → 2.2.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.mjs +588 -589
- package/package.json +1 -1
- package/src/components/advanced-forms/index.tsx +3 -3
- package/src/components/calendar/index.tsx +1 -1
- package/src/components/dashboard/index.tsx +1 -1
- package/src/components/file-upload/index.tsx +1 -1
- package/src/components/github-stars/index.tsx +2 -2
- package/src/components/health-check/index.tsx +1 -1
- package/src/components/kanban/index.tsx +1 -1
- package/src/components/lazy-component/index.tsx +1 -1
- package/src/components/optimized-image/index.tsx +2 -2
- package/src/components/performance-debugger/index.tsx +1 -1
- package/src/components/performance-monitor/index.tsx +1 -1
- package/src/components/rich-text-editor/index.tsx +1 -1
- package/src/components/timeline/index.tsx +1 -1
- package/src/components/ui/animated-button.tsx +1 -1
- package/src/components/ui/avatar.tsx +15 -12
- package/src/components/ui/badge.tsx +10 -7
- package/src/components/ui/card.tsx +19 -16
- package/src/components/ui/checkbox.tsx +15 -12
- package/src/components/ui/color-picker.tsx +6 -4
- package/src/components/ui/dialog.tsx +31 -29
- package/src/components/ui/dropdown-menu.tsx +44 -42
- package/src/components/ui/hover-card-3d.tsx +1 -1
- package/src/components/ui/input.tsx +9 -6
- package/src/components/ui/label.tsx +8 -5
- package/src/components/ui/magnetic-button.tsx +1 -1
- package/src/components/ui/popover.tsx +18 -16
- package/src/components/ui/progress.tsx +6 -3
- package/src/components/ui/select.tsx +32 -30
- package/src/components/ui/separator.tsx +9 -6
- package/src/components/ui/skeleton.tsx +7 -4
- package/src/components/ui/slider.tsx +8 -5
- package/src/components/ui/spotlight-card.tsx +1 -1
- package/src/components/ui/switch.tsx +7 -4
- package/src/components/ui/tabs.tsx +16 -13
- package/src/components/ui/textarea.tsx +7 -4
- package/src/components/ui/toast.tsx +20 -18
- package/src/components/ui/tooltip.tsx +18 -16
- package/src/use-performance-optimizer.ts +11 -1
package/dist/index.mjs
CHANGED
|
@@ -1879,7 +1879,7 @@ var tapAnimations = {
|
|
|
1879
1879
|
transition: { duration: 0.1 }
|
|
1880
1880
|
}
|
|
1881
1881
|
};
|
|
1882
|
-
|
|
1882
|
+
cva(
|
|
1883
1883
|
"rounded-lg border bg-card text-card-foreground shadow-sm dark:shadow-gray-900/20 dark:border-gray-800 dark:bg-gray-900 dark:text-gray-100 transition-all duration-200",
|
|
1884
1884
|
{
|
|
1885
1885
|
variants: {
|
|
@@ -1916,7 +1916,7 @@ var cardVariants = cva(
|
|
|
1916
1916
|
}
|
|
1917
1917
|
}
|
|
1918
1918
|
);
|
|
1919
|
-
var
|
|
1919
|
+
var MoonUICardPro = React16.forwardRef(
|
|
1920
1920
|
({ className, variant, size, radius, interactive, microInteraction = "lift", ...props }, ref) => {
|
|
1921
1921
|
if (interactive && microInteraction !== "none") {
|
|
1922
1922
|
const interactionProps = {
|
|
@@ -1943,8 +1943,8 @@ var Card = React16.forwardRef(
|
|
|
1943
1943
|
);
|
|
1944
1944
|
}
|
|
1945
1945
|
);
|
|
1946
|
-
|
|
1947
|
-
var
|
|
1946
|
+
MoonUICardPro.displayName = "MoonUICardPro";
|
|
1947
|
+
var MoonUICardHeaderPro = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1948
1948
|
"div",
|
|
1949
1949
|
{
|
|
1950
1950
|
ref,
|
|
@@ -1952,8 +1952,8 @@ var CardHeader = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
1952
1952
|
...props
|
|
1953
1953
|
}
|
|
1954
1954
|
));
|
|
1955
|
-
|
|
1956
|
-
var
|
|
1955
|
+
MoonUICardHeaderPro.displayName = "MoonUICardHeaderPro";
|
|
1956
|
+
var MoonUICardTitlePro = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1957
1957
|
"h3",
|
|
1958
1958
|
{
|
|
1959
1959
|
ref,
|
|
@@ -1961,8 +1961,8 @@ var CardTitle = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
1961
1961
|
...props
|
|
1962
1962
|
}
|
|
1963
1963
|
));
|
|
1964
|
-
|
|
1965
|
-
var
|
|
1964
|
+
MoonUICardTitlePro.displayName = "MoonUICardTitlePro";
|
|
1965
|
+
var MoonUICardDescriptionPro = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1966
1966
|
"p",
|
|
1967
1967
|
{
|
|
1968
1968
|
ref,
|
|
@@ -1970,10 +1970,10 @@ var CardDescription = React16.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
1970
1970
|
...props
|
|
1971
1971
|
}
|
|
1972
1972
|
));
|
|
1973
|
-
|
|
1974
|
-
var
|
|
1975
|
-
|
|
1976
|
-
var
|
|
1973
|
+
MoonUICardDescriptionPro.displayName = "MoonUICardDescriptionPro";
|
|
1974
|
+
var MoonUICardContentPro = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("pt-0", className), ...props }));
|
|
1975
|
+
MoonUICardContentPro.displayName = "MoonUICardContentPro";
|
|
1976
|
+
var MoonUICardFooterPro = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1977
1977
|
"div",
|
|
1978
1978
|
{
|
|
1979
1979
|
ref,
|
|
@@ -1981,7 +1981,7 @@ var CardFooter = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
1981
1981
|
...props
|
|
1982
1982
|
}
|
|
1983
1983
|
));
|
|
1984
|
-
|
|
1984
|
+
MoonUICardFooterPro.displayName = "MoonUICardFooterPro";
|
|
1985
1985
|
var moonUIButtonProVariants = cva(
|
|
1986
1986
|
[
|
|
1987
1987
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap",
|
|
@@ -2131,7 +2131,7 @@ var moonUIButtonProVariants = cva(
|
|
|
2131
2131
|
}
|
|
2132
2132
|
}
|
|
2133
2133
|
);
|
|
2134
|
-
var
|
|
2134
|
+
var MoonUIButtonPro2 = React16.forwardRef(
|
|
2135
2135
|
({
|
|
2136
2136
|
className,
|
|
2137
2137
|
variant,
|
|
@@ -2165,7 +2165,7 @@ var MoonUIButtonPro = React16.forwardRef(
|
|
|
2165
2165
|
);
|
|
2166
2166
|
}
|
|
2167
2167
|
);
|
|
2168
|
-
|
|
2168
|
+
MoonUIButtonPro2.displayName = "MoonUIButtonPro";
|
|
2169
2169
|
|
|
2170
2170
|
// src/hooks/use-subscription.ts
|
|
2171
2171
|
function useSubscription() {
|
|
@@ -2326,12 +2326,12 @@ var AnimatedButton = React16__default.forwardRef(
|
|
|
2326
2326
|
({ className, ...props }, ref) => {
|
|
2327
2327
|
const { hasProAccess, isLoading } = useSubscription();
|
|
2328
2328
|
if (!isLoading && !hasProAccess) {
|
|
2329
|
-
return /* @__PURE__ */ jsx(
|
|
2329
|
+
return /* @__PURE__ */ jsx(MoonUICardPro, { className: cn("w-fit", className), children: /* @__PURE__ */ jsx(MoonUICardContentPro, { className: "py-6 text-center", children: /* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
|
|
2330
2330
|
/* @__PURE__ */ jsx("div", { className: "rounded-full bg-purple-100 dark:bg-purple-900/30 p-3 w-fit mx-auto", children: /* @__PURE__ */ jsx(Lock, { className: "h-6 w-6 text-purple-600 dark:text-purple-400" }) }),
|
|
2331
2331
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
2332
2332
|
/* @__PURE__ */ jsx("h3", { className: "font-semibold text-sm mb-2", children: "Pro Feature" }),
|
|
2333
2333
|
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-xs mb-4", children: "Animated Button is available exclusively to MoonUI Pro subscribers." }),
|
|
2334
|
-
/* @__PURE__ */ jsx("a", { href: "/pricing", children: /* @__PURE__ */ jsxs(
|
|
2334
|
+
/* @__PURE__ */ jsx("a", { href: "/pricing", children: /* @__PURE__ */ jsxs(MoonUIButtonPro2, { size: "sm", children: [
|
|
2335
2335
|
/* @__PURE__ */ jsx(Sparkles, { className: "mr-2 h-4 w-4" }),
|
|
2336
2336
|
"Upgrade to Pro"
|
|
2337
2337
|
] }) })
|
|
@@ -2359,14 +2359,14 @@ var ErrorBoundaryInternal = class extends Component {
|
|
|
2359
2359
|
if (this.props.fallback) {
|
|
2360
2360
|
return this.props.fallback;
|
|
2361
2361
|
}
|
|
2362
|
-
return /* @__PURE__ */ jsx("div", { className: cn("flex items-center justify-center min-h-[200px] p-4", this.props.className), children: /* @__PURE__ */ jsxs(
|
|
2363
|
-
/* @__PURE__ */ jsxs(
|
|
2362
|
+
return /* @__PURE__ */ jsx("div", { className: cn("flex items-center justify-center min-h-[200px] p-4", this.props.className), children: /* @__PURE__ */ jsxs(MoonUICardPro, { className: "w-full max-w-md", children: [
|
|
2363
|
+
/* @__PURE__ */ jsxs(MoonUICardHeaderPro, { className: "text-center", children: [
|
|
2364
2364
|
/* @__PURE__ */ jsx("div", { className: "mx-auto mb-4 flex h-12 w-12 items-center justify-center rounded-full bg-red-100", children: /* @__PURE__ */ jsx(AlertTriangle, { className: "h-6 w-6 text-red-600" }) }),
|
|
2365
|
-
/* @__PURE__ */ jsx(
|
|
2366
|
-
/* @__PURE__ */ jsx(
|
|
2365
|
+
/* @__PURE__ */ jsx(MoonUICardTitlePro, { children: "Something went wrong" }),
|
|
2366
|
+
/* @__PURE__ */ jsx(MoonUICardDescriptionPro, { children: "An error occurred while rendering this component" })
|
|
2367
2367
|
] }),
|
|
2368
|
-
/* @__PURE__ */ jsx(
|
|
2369
|
-
|
|
2368
|
+
/* @__PURE__ */ jsx(MoonUICardContentPro, { className: "text-center", children: /* @__PURE__ */ jsxs(
|
|
2369
|
+
MoonUIButtonPro2,
|
|
2370
2370
|
{
|
|
2371
2371
|
onClick: () => this.setState({ hasError: false, error: void 0 }),
|
|
2372
2372
|
className: "mt-4",
|
|
@@ -2384,12 +2384,12 @@ var ErrorBoundaryInternal = class extends Component {
|
|
|
2384
2384
|
function ErrorBoundaryWrapper(props) {
|
|
2385
2385
|
const { hasProAccess, isLoading } = useSubscription();
|
|
2386
2386
|
if (!isLoading && !hasProAccess) {
|
|
2387
|
-
return /* @__PURE__ */ jsx(
|
|
2387
|
+
return /* @__PURE__ */ jsx(MoonUICardPro, { className: cn("w-fit", props.className), children: /* @__PURE__ */ jsx(MoonUICardContentPro, { className: "py-6 text-center", children: /* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
|
|
2388
2388
|
/* @__PURE__ */ jsx("div", { className: "rounded-full bg-purple-100 dark:bg-purple-900/30 p-3 w-fit mx-auto", children: /* @__PURE__ */ jsx(Lock, { className: "h-6 w-6 text-purple-600 dark:text-purple-400" }) }),
|
|
2389
2389
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
2390
2390
|
/* @__PURE__ */ jsx("h3", { className: "font-semibold text-sm mb-2", children: "Pro Feature" }),
|
|
2391
2391
|
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-xs mb-4", children: "Error Boundary is available exclusively to MoonUI Pro subscribers." }),
|
|
2392
|
-
/* @__PURE__ */ jsx("a", { href: "/pricing", children: /* @__PURE__ */ jsxs(
|
|
2392
|
+
/* @__PURE__ */ jsx("a", { href: "/pricing", children: /* @__PURE__ */ jsxs(MoonUIButtonPro2, { size: "sm", children: [
|
|
2393
2393
|
/* @__PURE__ */ jsx(Sparkles, { className: "mr-2 h-4 w-4" }),
|
|
2394
2394
|
"Upgrade to Pro"
|
|
2395
2395
|
] }) })
|
|
@@ -2534,12 +2534,12 @@ var FloatingActionButton = React16__default.forwardRef(
|
|
|
2534
2534
|
({ className, ...props }, ref) => {
|
|
2535
2535
|
const { hasProAccess, isLoading } = useSubscription();
|
|
2536
2536
|
if (!isLoading && !hasProAccess) {
|
|
2537
|
-
return /* @__PURE__ */ jsx(
|
|
2537
|
+
return /* @__PURE__ */ jsx(MoonUICardPro, { className: cn("w-fit", className), children: /* @__PURE__ */ jsx(MoonUICardContentPro, { className: "py-6 text-center", children: /* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
|
|
2538
2538
|
/* @__PURE__ */ jsx("div", { className: "rounded-full bg-purple-100 dark:bg-purple-900/30 p-3 w-fit mx-auto", children: /* @__PURE__ */ jsx(Lock, { className: "h-6 w-6 text-purple-600 dark:text-purple-400" }) }),
|
|
2539
2539
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
2540
2540
|
/* @__PURE__ */ jsx("h3", { className: "font-semibold text-sm mb-2", children: "Pro Feature" }),
|
|
2541
2541
|
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-xs mb-4", children: "Floating Action Button is available exclusively to MoonUI Pro subscribers." }),
|
|
2542
|
-
/* @__PURE__ */ jsx("a", { href: "/pricing", children: /* @__PURE__ */ jsxs(
|
|
2542
|
+
/* @__PURE__ */ jsx("a", { href: "/pricing", children: /* @__PURE__ */ jsxs(MoonUIButtonPro2, { size: "sm", children: [
|
|
2543
2543
|
/* @__PURE__ */ jsx(Sparkles, { className: "mr-2 h-4 w-4" }),
|
|
2544
2544
|
"Upgrade to Pro"
|
|
2545
2545
|
] }) })
|
|
@@ -2658,12 +2658,12 @@ var HoverCard3D = React16__default.forwardRef(
|
|
|
2658
2658
|
({ className, ...props }, ref) => {
|
|
2659
2659
|
const { hasProAccess, isLoading } = useSubscription();
|
|
2660
2660
|
if (!isLoading && !hasProAccess) {
|
|
2661
|
-
return /* @__PURE__ */ jsx(
|
|
2661
|
+
return /* @__PURE__ */ jsx(MoonUICardPro, { className: cn("w-fit", className), children: /* @__PURE__ */ jsx(MoonUICardContentPro, { className: "py-6 text-center", children: /* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
|
|
2662
2662
|
/* @__PURE__ */ jsx("div", { className: "rounded-full bg-purple-100 dark:bg-purple-900/30 p-3 w-fit mx-auto", children: /* @__PURE__ */ jsx(Lock, { className: "h-6 w-6 text-purple-600 dark:text-purple-400" }) }),
|
|
2663
2663
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
2664
2664
|
/* @__PURE__ */ jsx("h3", { className: "font-semibold text-sm mb-2", children: "Pro Feature" }),
|
|
2665
2665
|
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-xs mb-4", children: "3D Hover Card is available exclusively to MoonUI Pro subscribers." }),
|
|
2666
|
-
/* @__PURE__ */ jsx("a", { href: "/pricing", children: /* @__PURE__ */ jsxs(
|
|
2666
|
+
/* @__PURE__ */ jsx("a", { href: "/pricing", children: /* @__PURE__ */ jsxs(MoonUIButtonPro2, { size: "sm", children: [
|
|
2667
2667
|
/* @__PURE__ */ jsx(Sparkles, { className: "mr-2 h-4 w-4" }),
|
|
2668
2668
|
"Upgrade to Pro"
|
|
2669
2669
|
] }) })
|
|
@@ -2780,12 +2780,12 @@ var MagneticButton = React16__default.forwardRef(
|
|
|
2780
2780
|
({ className, ...props }, ref) => {
|
|
2781
2781
|
const { hasProAccess, isLoading } = useSubscription();
|
|
2782
2782
|
if (!isLoading && !hasProAccess) {
|
|
2783
|
-
return /* @__PURE__ */ jsx(
|
|
2783
|
+
return /* @__PURE__ */ jsx(MoonUICardPro, { className: cn("w-fit", className), children: /* @__PURE__ */ jsx(MoonUICardContentPro, { className: "py-6 text-center", children: /* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
|
|
2784
2784
|
/* @__PURE__ */ jsx("div", { className: "rounded-full bg-purple-100 dark:bg-purple-900/30 p-3 w-fit mx-auto", children: /* @__PURE__ */ jsx(Lock, { className: "h-6 w-6 text-purple-600 dark:text-purple-400" }) }),
|
|
2785
2785
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
2786
2786
|
/* @__PURE__ */ jsx("h3", { className: "font-semibold text-sm mb-2", children: "Pro Feature" }),
|
|
2787
2787
|
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-xs mb-4", children: "Magnetic Button is available exclusively to MoonUI Pro subscribers." }),
|
|
2788
|
-
/* @__PURE__ */ jsx("a", { href: "/pricing", children: /* @__PURE__ */ jsxs(
|
|
2788
|
+
/* @__PURE__ */ jsx("a", { href: "/pricing", children: /* @__PURE__ */ jsxs(MoonUIButtonPro2, { size: "sm", children: [
|
|
2789
2789
|
/* @__PURE__ */ jsx(Sparkles, { className: "mr-2 h-4 w-4" }),
|
|
2790
2790
|
"Upgrade to Pro"
|
|
2791
2791
|
] }) })
|
|
@@ -2901,12 +2901,12 @@ var PinchZoom = React16__default.forwardRef(
|
|
|
2901
2901
|
({ className, ...props }, ref) => {
|
|
2902
2902
|
const { hasProAccess, isLoading } = useSubscription();
|
|
2903
2903
|
if (!isLoading && !hasProAccess) {
|
|
2904
|
-
return /* @__PURE__ */ jsx(
|
|
2904
|
+
return /* @__PURE__ */ jsx(MoonUICardPro, { className: cn("w-fit", className), children: /* @__PURE__ */ jsx(MoonUICardContentPro, { className: "py-6 text-center", children: /* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
|
|
2905
2905
|
/* @__PURE__ */ jsx("div", { className: "rounded-full bg-purple-100 dark:bg-purple-900/30 p-3 w-fit mx-auto", children: /* @__PURE__ */ jsx(Lock, { className: "h-6 w-6 text-purple-600 dark:text-purple-400" }) }),
|
|
2906
2906
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
2907
2907
|
/* @__PURE__ */ jsx("h3", { className: "font-semibold text-sm mb-2", children: "Pro Feature" }),
|
|
2908
2908
|
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-xs mb-4", children: "Pinch Zoom is available exclusively to MoonUI Pro subscribers." }),
|
|
2909
|
-
/* @__PURE__ */ jsx("a", { href: "/pricing", children: /* @__PURE__ */ jsxs(
|
|
2909
|
+
/* @__PURE__ */ jsx("a", { href: "/pricing", children: /* @__PURE__ */ jsxs(MoonUIButtonPro2, { size: "sm", children: [
|
|
2910
2910
|
/* @__PURE__ */ jsx(Sparkles, { className: "mr-2 h-4 w-4" }),
|
|
2911
2911
|
"Upgrade to Pro"
|
|
2912
2912
|
] }) })
|
|
@@ -3050,12 +3050,12 @@ var SpotlightCard = React16__default.forwardRef(
|
|
|
3050
3050
|
({ className, ...props }, ref) => {
|
|
3051
3051
|
const { hasProAccess, isLoading } = useSubscription();
|
|
3052
3052
|
if (!isLoading && !hasProAccess) {
|
|
3053
|
-
return /* @__PURE__ */ jsx(
|
|
3053
|
+
return /* @__PURE__ */ jsx(MoonUICardPro, { className: cn("w-fit", className), children: /* @__PURE__ */ jsx(MoonUICardContentPro, { className: "py-6 text-center", children: /* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
|
|
3054
3054
|
/* @__PURE__ */ jsx("div", { className: "rounded-full bg-purple-100 dark:bg-purple-900/30 p-3 w-fit mx-auto", children: /* @__PURE__ */ jsx(Lock, { className: "h-6 w-6 text-purple-600 dark:text-purple-400" }) }),
|
|
3055
3055
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
3056
3056
|
/* @__PURE__ */ jsx("h3", { className: "font-semibold text-sm mb-2", children: "Pro Feature" }),
|
|
3057
3057
|
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-xs mb-4", children: "Spotlight Card is available exclusively to MoonUI Pro subscribers." }),
|
|
3058
|
-
/* @__PURE__ */ jsx("a", { href: "/pricing", children: /* @__PURE__ */ jsxs(
|
|
3058
|
+
/* @__PURE__ */ jsx("a", { href: "/pricing", children: /* @__PURE__ */ jsxs(MoonUIButtonPro2, { size: "sm", children: [
|
|
3059
3059
|
/* @__PURE__ */ jsx(Sparkles, { className: "mr-2 h-4 w-4" }),
|
|
3060
3060
|
"Upgrade to Pro"
|
|
3061
3061
|
] }) })
|
|
@@ -3066,7 +3066,7 @@ var SpotlightCard = React16__default.forwardRef(
|
|
|
3066
3066
|
}
|
|
3067
3067
|
);
|
|
3068
3068
|
SpotlightCard.displayName = "SpotlightCard";
|
|
3069
|
-
var
|
|
3069
|
+
var moonUIBadgeVariantsPro = cva(
|
|
3070
3070
|
[
|
|
3071
3071
|
"inline-flex items-center gap-1.5",
|
|
3072
3072
|
"font-medium transition-colors duration-200",
|
|
@@ -3152,7 +3152,7 @@ var badgeVariants = cva(
|
|
|
3152
3152
|
}
|
|
3153
3153
|
}
|
|
3154
3154
|
);
|
|
3155
|
-
function
|
|
3155
|
+
function MoonUIBadgePro({
|
|
3156
3156
|
className,
|
|
3157
3157
|
variant,
|
|
3158
3158
|
size,
|
|
@@ -3183,7 +3183,7 @@ function Badge({
|
|
|
3183
3183
|
return /* @__PURE__ */ jsxs(
|
|
3184
3184
|
"div",
|
|
3185
3185
|
{
|
|
3186
|
-
className: cn(
|
|
3186
|
+
className: cn(moonUIBadgeVariantsPro({ variant, size, radius }), className),
|
|
3187
3187
|
"data-removable": removable ? "" : void 0,
|
|
3188
3188
|
...props,
|
|
3189
3189
|
children: [
|
|
@@ -3244,7 +3244,7 @@ var inputWrapperVariants = cva(
|
|
|
3244
3244
|
}
|
|
3245
3245
|
}
|
|
3246
3246
|
);
|
|
3247
|
-
|
|
3247
|
+
cva(
|
|
3248
3248
|
[
|
|
3249
3249
|
"w-full bg-background transition-all duration-200",
|
|
3250
3250
|
"text-foreground placeholder:text-muted-foreground dark:placeholder:text-gray-500",
|
|
@@ -3302,7 +3302,7 @@ var inputVariants = cva(
|
|
|
3302
3302
|
}
|
|
3303
3303
|
}
|
|
3304
3304
|
);
|
|
3305
|
-
var
|
|
3305
|
+
var MoonUIInputPro = React16.forwardRef(
|
|
3306
3306
|
({
|
|
3307
3307
|
className,
|
|
3308
3308
|
wrapperClassName,
|
|
@@ -3372,11 +3372,11 @@ var Input = React16.forwardRef(
|
|
|
3372
3372
|
] });
|
|
3373
3373
|
}
|
|
3374
3374
|
);
|
|
3375
|
-
|
|
3376
|
-
|
|
3375
|
+
MoonUIInputPro.displayName = "MoonUIInputPro";
|
|
3376
|
+
cva(
|
|
3377
3377
|
"text-sm font-medium leading-none text-gray-900 dark:text-gray-200 peer-disabled:cursor-not-allowed peer-disabled:opacity-70 dark:peer-disabled:opacity-60 transition-colors duration-200"
|
|
3378
3378
|
);
|
|
3379
|
-
var
|
|
3379
|
+
var MoonUILabelPro2 = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3380
3380
|
LabelPrimitive.Root,
|
|
3381
3381
|
{
|
|
3382
3382
|
ref,
|
|
@@ -3384,8 +3384,8 @@ var Label = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
3384
3384
|
...props
|
|
3385
3385
|
}
|
|
3386
3386
|
));
|
|
3387
|
-
|
|
3388
|
-
var
|
|
3387
|
+
MoonUILabel.displayName = LabelPrimitive.Root.displayName;
|
|
3388
|
+
var MoonUITextareaPro = React16__default.forwardRef(
|
|
3389
3389
|
({ className, ...props }, ref) => {
|
|
3390
3390
|
return /* @__PURE__ */ jsx(
|
|
3391
3391
|
"textarea",
|
|
@@ -3400,11 +3400,11 @@ var Textarea = React16__default.forwardRef(
|
|
|
3400
3400
|
);
|
|
3401
3401
|
}
|
|
3402
3402
|
);
|
|
3403
|
-
|
|
3404
|
-
var
|
|
3405
|
-
|
|
3406
|
-
var
|
|
3407
|
-
var
|
|
3403
|
+
MoonUITextareaPro.displayName = "MoonUITextareaPro";
|
|
3404
|
+
var MoonUISelectPro = SelectPrimitive.Root;
|
|
3405
|
+
MoonUISelectPro.displayName = "MoonUISelectPro";
|
|
3406
|
+
var MoonUISelectValuePro = SelectPrimitive.Value;
|
|
3407
|
+
var MoonUISelectTriggerPro = React16.forwardRef(({ className, children, variant = "standard", size = "md", error, success, loading, leftIcon, rightIcon, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
3408
3408
|
SelectPrimitive.Trigger,
|
|
3409
3409
|
{
|
|
3410
3410
|
ref,
|
|
@@ -3445,8 +3445,8 @@ var SelectTrigger = React16.forwardRef(({ className, children, variant = "standa
|
|
|
3445
3445
|
]
|
|
3446
3446
|
}
|
|
3447
3447
|
));
|
|
3448
|
-
|
|
3449
|
-
var
|
|
3448
|
+
MoonUISelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
3449
|
+
var MoonUISelectScrollUpButton = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3450
3450
|
SelectPrimitive.ScrollUpButton,
|
|
3451
3451
|
{
|
|
3452
3452
|
ref,
|
|
@@ -3458,8 +3458,8 @@ var SelectScrollUpButton = React16.forwardRef(({ className, ...props }, ref) =>
|
|
|
3458
3458
|
children: /* @__PURE__ */ jsx(ChevronUp, { className: "h-4 w-4" })
|
|
3459
3459
|
}
|
|
3460
3460
|
));
|
|
3461
|
-
|
|
3462
|
-
var
|
|
3461
|
+
MoonUISelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
3462
|
+
var MoonUISelectScrollDownButton = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3463
3463
|
SelectPrimitive.ScrollDownButton,
|
|
3464
3464
|
{
|
|
3465
3465
|
ref,
|
|
@@ -3471,8 +3471,8 @@ var SelectScrollDownButton = React16.forwardRef(({ className, ...props }, ref) =
|
|
|
3471
3471
|
children: /* @__PURE__ */ jsx(ChevronDown, { className: "h-4 w-4" })
|
|
3472
3472
|
}
|
|
3473
3473
|
));
|
|
3474
|
-
|
|
3475
|
-
var
|
|
3474
|
+
MoonUISelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
3475
|
+
var MoonUISelectContentPro = React16.forwardRef(({ className, children, position = "item-aligned", ...props }, ref) => /* @__PURE__ */ jsx(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs(
|
|
3476
3476
|
SelectPrimitive.Content,
|
|
3477
3477
|
{
|
|
3478
3478
|
ref,
|
|
@@ -3508,8 +3508,8 @@ var SelectContent = React16.forwardRef(({ className, children, position = "item-
|
|
|
3508
3508
|
]
|
|
3509
3509
|
}
|
|
3510
3510
|
) }));
|
|
3511
|
-
|
|
3512
|
-
|
|
3511
|
+
MoonUISelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
3512
|
+
React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3513
3513
|
SelectPrimitive.Label,
|
|
3514
3514
|
{
|
|
3515
3515
|
ref,
|
|
@@ -3517,8 +3517,8 @@ var SelectLabel = React16.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
3517
3517
|
...props
|
|
3518
3518
|
}
|
|
3519
3519
|
));
|
|
3520
|
-
|
|
3521
|
-
var
|
|
3520
|
+
MoonUISelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
3521
|
+
var MoonUISelectItemPro = React16.forwardRef(({ className, children, variant = "default", size = "md", rightIcon, customIndicator, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
3522
3522
|
SelectPrimitive.Item,
|
|
3523
3523
|
{
|
|
3524
3524
|
ref,
|
|
@@ -3544,8 +3544,8 @@ var SelectItem = React16.forwardRef(({ className, children, variant = "default",
|
|
|
3544
3544
|
]
|
|
3545
3545
|
}
|
|
3546
3546
|
));
|
|
3547
|
-
|
|
3548
|
-
|
|
3547
|
+
MoonUISelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
3548
|
+
React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3549
3549
|
SelectPrimitive.Separator,
|
|
3550
3550
|
{
|
|
3551
3551
|
ref,
|
|
@@ -3553,10 +3553,9 @@ var SelectSeparator = React16.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
3553
3553
|
...props
|
|
3554
3554
|
}
|
|
3555
3555
|
));
|
|
3556
|
-
|
|
3557
|
-
var
|
|
3558
|
-
var
|
|
3559
|
-
var DialogPortal = DialogPrimitive2.Portal;
|
|
3556
|
+
MoonUISelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
3557
|
+
var MoonUIDialogPro = DialogPrimitive2.Root;
|
|
3558
|
+
var MoonUIDialogTriggerPro = DialogPrimitive2.Trigger;
|
|
3560
3559
|
var overlayVariants = cva(
|
|
3561
3560
|
"fixed inset-0 z-50 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
3562
3561
|
{
|
|
@@ -3579,7 +3578,7 @@ var overlayVariants = cva(
|
|
|
3579
3578
|
}
|
|
3580
3579
|
}
|
|
3581
3580
|
);
|
|
3582
|
-
var
|
|
3581
|
+
var MoonUIDialogOverlay = React16.forwardRef(({ className, variant, animation, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3583
3582
|
DialogPrimitive2.Overlay,
|
|
3584
3583
|
{
|
|
3585
3584
|
ref,
|
|
@@ -3587,7 +3586,7 @@ var DialogOverlay = React16.forwardRef(({ className, variant, animation, ...prop
|
|
|
3587
3586
|
...props
|
|
3588
3587
|
}
|
|
3589
3588
|
));
|
|
3590
|
-
|
|
3589
|
+
MoonUIDialogOverlay.displayName = DialogPrimitive2.Overlay.displayName;
|
|
3591
3590
|
var dialogContentVariants = cva(
|
|
3592
3591
|
"fixed left-[50%] top-[50%] z-50 grid w-full translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background shadow-lg",
|
|
3593
3592
|
{
|
|
@@ -3638,7 +3637,7 @@ var dialogContentVariants = cva(
|
|
|
3638
3637
|
}
|
|
3639
3638
|
}
|
|
3640
3639
|
);
|
|
3641
|
-
var
|
|
3640
|
+
var MoonUIDialogContentPro = React16.forwardRef(
|
|
3642
3641
|
({
|
|
3643
3642
|
className,
|
|
3644
3643
|
children,
|
|
@@ -3722,8 +3721,8 @@ var DialogContent = React16.forwardRef(
|
|
|
3722
3721
|
] });
|
|
3723
3722
|
}
|
|
3724
3723
|
);
|
|
3725
|
-
|
|
3726
|
-
var
|
|
3724
|
+
MoonUIDialogContent.displayName = DialogPrimitive2.Content.displayName;
|
|
3725
|
+
var MoonUIDialogHeaderPro = ({
|
|
3727
3726
|
className,
|
|
3728
3727
|
...props
|
|
3729
3728
|
}) => /* @__PURE__ */ jsx(
|
|
@@ -3736,8 +3735,8 @@ var DialogHeader = ({
|
|
|
3736
3735
|
...props
|
|
3737
3736
|
}
|
|
3738
3737
|
);
|
|
3739
|
-
|
|
3740
|
-
var
|
|
3738
|
+
MoonUIDialogHeaderPro.displayName = "MoonUIDialogHeaderPro";
|
|
3739
|
+
var MoonUIDialogFooterPro = ({
|
|
3741
3740
|
className,
|
|
3742
3741
|
...props
|
|
3743
3742
|
}) => /* @__PURE__ */ jsx(
|
|
@@ -3750,8 +3749,8 @@ var DialogFooter = ({
|
|
|
3750
3749
|
...props
|
|
3751
3750
|
}
|
|
3752
3751
|
);
|
|
3753
|
-
|
|
3754
|
-
var
|
|
3752
|
+
MoonUIDialogFooterPro.displayName = "MoonUIDialogFooterPro";
|
|
3753
|
+
var MoonUIDialogTitlePro = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3755
3754
|
DialogPrimitive2.Title,
|
|
3756
3755
|
{
|
|
3757
3756
|
ref,
|
|
@@ -3762,8 +3761,8 @@ var DialogTitle = React16.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
3762
3761
|
...props
|
|
3763
3762
|
}
|
|
3764
3763
|
));
|
|
3765
|
-
|
|
3766
|
-
var
|
|
3764
|
+
MoonUIDialogTitle.displayName = DialogPrimitive2.Title.displayName;
|
|
3765
|
+
var MoonUIDialogDescriptionPro = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3767
3766
|
DialogPrimitive2.Description,
|
|
3768
3767
|
{
|
|
3769
3768
|
ref,
|
|
@@ -3774,8 +3773,8 @@ var DialogDescription = React16.forwardRef(({ className, ...props }, ref) => /*
|
|
|
3774
3773
|
...props
|
|
3775
3774
|
}
|
|
3776
3775
|
));
|
|
3777
|
-
|
|
3778
|
-
var
|
|
3776
|
+
MoonUIDialogDescription.displayName = DialogPrimitive2.Description.displayName;
|
|
3777
|
+
var MoonUIDialogForm = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3779
3778
|
"form",
|
|
3780
3779
|
{
|
|
3781
3780
|
ref,
|
|
@@ -3783,7 +3782,7 @@ var DialogForm = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
3783
3782
|
...props
|
|
3784
3783
|
}
|
|
3785
3784
|
));
|
|
3786
|
-
|
|
3785
|
+
MoonUIDialogForm.displayName = "DialogForm";
|
|
3787
3786
|
var EVENT_TYPES = [
|
|
3788
3787
|
{ value: "meeting", label: "Meeting", color: "#3b82f6" },
|
|
3789
3788
|
{ value: "task", label: "Task", color: "#10b981" },
|
|
@@ -3915,19 +3914,19 @@ function EventDialog({
|
|
|
3915
3914
|
color: selectedType?.color || prev.color
|
|
3916
3915
|
}));
|
|
3917
3916
|
};
|
|
3918
|
-
return /* @__PURE__ */ jsx(
|
|
3919
|
-
/* @__PURE__ */ jsxs(
|
|
3920
|
-
/* @__PURE__ */ jsxs(
|
|
3917
|
+
return /* @__PURE__ */ jsx(MoonUIDialogPro, { open, onOpenChange, children: /* @__PURE__ */ jsxs(MoonUIDialogContentPro, { className: "sm:max-w-[500px]", children: [
|
|
3918
|
+
/* @__PURE__ */ jsxs(MoonUIDialogHeaderPro, { children: [
|
|
3919
|
+
/* @__PURE__ */ jsxs(MoonUIDialogTitlePro, { className: "flex items-center gap-2", children: [
|
|
3921
3920
|
/* @__PURE__ */ jsx(Calendar, { className: "w-5 h-5" }),
|
|
3922
3921
|
mode === "create" ? "Create Event" : "Edit Event"
|
|
3923
3922
|
] }),
|
|
3924
|
-
/* @__PURE__ */ jsx(
|
|
3923
|
+
/* @__PURE__ */ jsx(MoonUIDialogDescriptionPro, { children: mode === "create" ? "Add a new event to your calendar." : "Edit the event details." })
|
|
3925
3924
|
] }),
|
|
3926
3925
|
/* @__PURE__ */ jsxs("form", { onSubmit: handleSubmit, className: "space-y-4", children: [
|
|
3927
3926
|
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
3928
|
-
/* @__PURE__ */ jsx(
|
|
3927
|
+
/* @__PURE__ */ jsx(MoonUILabelPro2, { htmlFor: "title", children: "Title *" }),
|
|
3929
3928
|
/* @__PURE__ */ jsx(
|
|
3930
|
-
|
|
3929
|
+
MoonUIInputPro,
|
|
3931
3930
|
{
|
|
3932
3931
|
id: "title",
|
|
3933
3932
|
value: formData.title,
|
|
@@ -3939,9 +3938,9 @@ function EventDialog({
|
|
|
3939
3938
|
errors.title && /* @__PURE__ */ jsx("p", { className: "text-sm text-red-500", children: errors.title })
|
|
3940
3939
|
] }),
|
|
3941
3940
|
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
3942
|
-
/* @__PURE__ */ jsx(
|
|
3941
|
+
/* @__PURE__ */ jsx(MoonUILabelPro2, { htmlFor: "description", children: "Description" }),
|
|
3943
3942
|
/* @__PURE__ */ jsx(
|
|
3944
|
-
|
|
3943
|
+
MoonUITextareaPro,
|
|
3945
3944
|
{
|
|
3946
3945
|
id: "description",
|
|
3947
3946
|
value: formData.description,
|
|
@@ -3953,9 +3952,9 @@ function EventDialog({
|
|
|
3953
3952
|
] }),
|
|
3954
3953
|
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-3 gap-4", children: [
|
|
3955
3954
|
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
3956
|
-
/* @__PURE__ */ jsx(
|
|
3955
|
+
/* @__PURE__ */ jsx(MoonUILabelPro2, { htmlFor: "date", children: "Date *" }),
|
|
3957
3956
|
/* @__PURE__ */ jsx(
|
|
3958
|
-
|
|
3957
|
+
MoonUIInputPro,
|
|
3959
3958
|
{
|
|
3960
3959
|
id: "date",
|
|
3961
3960
|
type: "date",
|
|
@@ -3967,9 +3966,9 @@ function EventDialog({
|
|
|
3967
3966
|
errors.date && /* @__PURE__ */ jsx("p", { className: "text-sm text-red-500", children: errors.date })
|
|
3968
3967
|
] }),
|
|
3969
3968
|
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
3970
|
-
/* @__PURE__ */ jsx(
|
|
3969
|
+
/* @__PURE__ */ jsx(MoonUILabelPro2, { htmlFor: "startTime", children: "Start Time" }),
|
|
3971
3970
|
/* @__PURE__ */ jsx(
|
|
3972
|
-
|
|
3971
|
+
MoonUIInputPro,
|
|
3973
3972
|
{
|
|
3974
3973
|
id: "startTime",
|
|
3975
3974
|
type: "time",
|
|
@@ -3980,9 +3979,9 @@ function EventDialog({
|
|
|
3980
3979
|
)
|
|
3981
3980
|
] }),
|
|
3982
3981
|
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
3983
|
-
/* @__PURE__ */ jsx(
|
|
3982
|
+
/* @__PURE__ */ jsx(MoonUILabelPro2, { htmlFor: "endTime", children: "End Time" }),
|
|
3984
3983
|
/* @__PURE__ */ jsx(
|
|
3985
|
-
|
|
3984
|
+
MoonUIInputPro,
|
|
3986
3985
|
{
|
|
3987
3986
|
id: "endTime",
|
|
3988
3987
|
type: "time",
|
|
@@ -3996,12 +3995,12 @@ function EventDialog({
|
|
|
3996
3995
|
] })
|
|
3997
3996
|
] }),
|
|
3998
3997
|
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
3999
|
-
/* @__PURE__ */ jsxs(
|
|
3998
|
+
/* @__PURE__ */ jsxs(MoonUILabelPro2, { htmlFor: "location", className: "flex items-center gap-2", children: [
|
|
4000
3999
|
/* @__PURE__ */ jsx(MapPin, { className: "w-4 h-4" }),
|
|
4001
4000
|
"Location"
|
|
4002
4001
|
] }),
|
|
4003
4002
|
/* @__PURE__ */ jsx(
|
|
4004
|
-
|
|
4003
|
+
MoonUIInputPro,
|
|
4005
4004
|
{
|
|
4006
4005
|
id: "location",
|
|
4007
4006
|
value: formData.location,
|
|
@@ -4012,13 +4011,13 @@ function EventDialog({
|
|
|
4012
4011
|
] }),
|
|
4013
4012
|
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 gap-4", children: [
|
|
4014
4013
|
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
4015
|
-
/* @__PURE__ */ jsxs(
|
|
4014
|
+
/* @__PURE__ */ jsxs(MoonUILabelPro2, { className: "flex items-center gap-2", children: [
|
|
4016
4015
|
/* @__PURE__ */ jsx(Type, { className: "w-4 h-4" }),
|
|
4017
4016
|
"Type"
|
|
4018
4017
|
] }),
|
|
4019
|
-
/* @__PURE__ */ jsxs(
|
|
4020
|
-
/* @__PURE__ */ jsx(
|
|
4021
|
-
/* @__PURE__ */ jsx(
|
|
4018
|
+
/* @__PURE__ */ jsxs(MoonUISelectPro, { value: formData.type, onValueChange: handleTypeChange, children: [
|
|
4019
|
+
/* @__PURE__ */ jsx(MoonUISelectTriggerPro, { children: /* @__PURE__ */ jsx(MoonUISelectValuePro, {}) }),
|
|
4020
|
+
/* @__PURE__ */ jsx(MoonUISelectContentPro, { children: EVENT_TYPES.map((type) => /* @__PURE__ */ jsx(MoonUISelectItemPro, { value: type.value, children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
4022
4021
|
/* @__PURE__ */ jsx(
|
|
4023
4022
|
"div",
|
|
4024
4023
|
{
|
|
@@ -4031,7 +4030,7 @@ function EventDialog({
|
|
|
4031
4030
|
] })
|
|
4032
4031
|
] }),
|
|
4033
4032
|
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
4034
|
-
/* @__PURE__ */ jsxs(
|
|
4033
|
+
/* @__PURE__ */ jsxs(MoonUILabelPro2, { className: "flex items-center gap-2", children: [
|
|
4035
4034
|
/* @__PURE__ */ jsx(Palette, { className: "w-4 h-4" }),
|
|
4036
4035
|
"Color"
|
|
4037
4036
|
] }),
|
|
@@ -4062,9 +4061,9 @@ function EventDialog({
|
|
|
4062
4061
|
] })
|
|
4063
4062
|
] }),
|
|
4064
4063
|
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
4065
|
-
/* @__PURE__ */ jsx(
|
|
4064
|
+
/* @__PURE__ */ jsx(MoonUILabelPro2, { htmlFor: "attendees", children: "Attendees" }),
|
|
4066
4065
|
/* @__PURE__ */ jsx(
|
|
4067
|
-
|
|
4066
|
+
MoonUIInputPro,
|
|
4068
4067
|
{
|
|
4069
4068
|
id: "attendees",
|
|
4070
4069
|
value: formData.attendees,
|
|
@@ -4073,9 +4072,9 @@ function EventDialog({
|
|
|
4073
4072
|
}
|
|
4074
4073
|
)
|
|
4075
4074
|
] }),
|
|
4076
|
-
/* @__PURE__ */ jsxs(
|
|
4075
|
+
/* @__PURE__ */ jsxs(MoonUIDialogFooterPro, { className: "gap-2", children: [
|
|
4077
4076
|
mode === "edit" && onDelete && /* @__PURE__ */ jsx(
|
|
4078
|
-
|
|
4077
|
+
MoonUIButtonPro2,
|
|
4079
4078
|
{
|
|
4080
4079
|
type: "button",
|
|
4081
4080
|
variant: "destructive",
|
|
@@ -4085,7 +4084,7 @@ function EventDialog({
|
|
|
4085
4084
|
}
|
|
4086
4085
|
),
|
|
4087
4086
|
/* @__PURE__ */ jsx(
|
|
4088
|
-
|
|
4087
|
+
MoonUIButtonPro2,
|
|
4089
4088
|
{
|
|
4090
4089
|
type: "button",
|
|
4091
4090
|
variant: "outline",
|
|
@@ -4094,7 +4093,7 @@ function EventDialog({
|
|
|
4094
4093
|
children: "Cancel"
|
|
4095
4094
|
}
|
|
4096
4095
|
),
|
|
4097
|
-
/* @__PURE__ */ jsx(
|
|
4096
|
+
/* @__PURE__ */ jsx(MoonUIButtonPro2, { type: "submit", disabled: isSubmitting, children: isSubmitting ? mode === "create" ? "Creating..." : "Saving..." : mode === "create" ? "Create Event" : "Save Changes" })
|
|
4098
4097
|
] })
|
|
4099
4098
|
] })
|
|
4100
4099
|
] }) });
|
|
@@ -4137,12 +4136,12 @@ function Calendar2({
|
|
|
4137
4136
|
showProUpgrade = false
|
|
4138
4137
|
}) {
|
|
4139
4138
|
if (showProUpgrade) {
|
|
4140
|
-
return /* @__PURE__ */ jsx(
|
|
4139
|
+
return /* @__PURE__ */ jsx(MoonUICardPro, { className: cn("w-full", className), children: /* @__PURE__ */ jsx(MoonUICardContentPro, { className: "py-12 text-center", children: /* @__PURE__ */ jsxs("div", { className: "max-w-md mx-auto space-y-4", children: [
|
|
4141
4140
|
/* @__PURE__ */ jsx("div", { className: "rounded-full bg-purple-100 dark:bg-purple-900/30 p-3 w-fit mx-auto", children: /* @__PURE__ */ jsx(Lock, { className: "h-6 w-6 text-purple-600 dark:text-purple-400" }) }),
|
|
4142
4141
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
4143
4142
|
/* @__PURE__ */ jsx("h3", { className: "font-semibold text-lg mb-2", children: "Pro Feature" }),
|
|
4144
4143
|
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-sm mb-4", children: "Calendar is available exclusively to MoonUI Pro subscribers." }),
|
|
4145
|
-
/* @__PURE__ */ jsx("div", { className: "flex gap-3 justify-center", children: /* @__PURE__ */ jsx("a", { href: "/pricing", children: /* @__PURE__ */ jsxs(
|
|
4144
|
+
/* @__PURE__ */ jsx("div", { className: "flex gap-3 justify-center", children: /* @__PURE__ */ jsx("a", { href: "/pricing", children: /* @__PURE__ */ jsxs(MoonUIButtonPro2, { size: "sm", children: [
|
|
4146
4145
|
/* @__PURE__ */ jsx(Sparkles, { className: "mr-2 h-4 w-4" }),
|
|
4147
4146
|
"Upgrade to Pro"
|
|
4148
4147
|
] }) }) })
|
|
@@ -4286,23 +4285,23 @@ function Calendar2({
|
|
|
4286
4285
|
});
|
|
4287
4286
|
const visibleDaysOfWeek = showWeekends ? DAYS_OF_WEEK : DAYS_OF_WEEK.slice(1, 6);
|
|
4288
4287
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
4289
|
-
/* @__PURE__ */ jsxs(
|
|
4290
|
-
/* @__PURE__ */ jsx(
|
|
4288
|
+
/* @__PURE__ */ jsxs(MoonUICardPro, { className: cn("w-full max-w-full overflow-hidden", className), style: { height: height ? `${height}px` : void 0 }, children: [
|
|
4289
|
+
/* @__PURE__ */ jsx(MoonUICardHeaderPro, { children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
4291
4290
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
4292
|
-
/* @__PURE__ */ jsxs(
|
|
4291
|
+
/* @__PURE__ */ jsxs(MoonUICardTitlePro, { className: "flex items-center gap-2", children: [
|
|
4293
4292
|
/* @__PURE__ */ jsx(Calendar, { className: "h-5 w-5" }),
|
|
4294
4293
|
"Calendar"
|
|
4295
4294
|
] }),
|
|
4296
|
-
/* @__PURE__ */ jsxs(
|
|
4295
|
+
/* @__PURE__ */ jsxs(MoonUICardDescriptionPro, { children: [
|
|
4297
4296
|
MONTHS[currentMonth],
|
|
4298
4297
|
" ",
|
|
4299
4298
|
currentYear
|
|
4300
4299
|
] })
|
|
4301
4300
|
] }),
|
|
4302
4301
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
4303
|
-
/* @__PURE__ */ jsx(
|
|
4302
|
+
/* @__PURE__ */ jsx(MoonUIButtonPro2, { variant: "outline", size: "sm", onClick: goToToday, children: "Today" }),
|
|
4304
4303
|
/* @__PURE__ */ jsx(
|
|
4305
|
-
|
|
4304
|
+
MoonUIButtonPro2,
|
|
4306
4305
|
{
|
|
4307
4306
|
variant: "outline",
|
|
4308
4307
|
size: "sm",
|
|
@@ -4312,7 +4311,7 @@ function Calendar2({
|
|
|
4312
4311
|
}
|
|
4313
4312
|
),
|
|
4314
4313
|
/* @__PURE__ */ jsx(
|
|
4315
|
-
|
|
4314
|
+
MoonUIButtonPro2,
|
|
4316
4315
|
{
|
|
4317
4316
|
variant: "outline",
|
|
4318
4317
|
size: "sm",
|
|
@@ -4323,7 +4322,7 @@ function Calendar2({
|
|
|
4323
4322
|
)
|
|
4324
4323
|
] })
|
|
4325
4324
|
] }) }),
|
|
4326
|
-
/* @__PURE__ */ jsx(
|
|
4325
|
+
/* @__PURE__ */ jsx(MoonUICardContentPro, { className: "overflow-x-auto", children: /* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
|
|
4327
4326
|
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-7 gap-1 w-full", style: { minWidth: "500px" }, children: [
|
|
4328
4327
|
visibleDaysOfWeek.map((day) => /* @__PURE__ */ jsx("div", { className: "p-1 text-center text-xs font-medium text-muted-foreground min-w-[70px]", children: day }, day)),
|
|
4329
4328
|
filteredDays.map((date, index) => {
|
|
@@ -4352,7 +4351,7 @@ function Calendar2({
|
|
|
4352
4351
|
"text-sm font-medium",
|
|
4353
4352
|
isTodayDate && "text-primary font-bold"
|
|
4354
4353
|
), children: date.getDate() }),
|
|
4355
|
-
dayEvents.length > 0 && /* @__PURE__ */ jsx(
|
|
4354
|
+
dayEvents.length > 0 && /* @__PURE__ */ jsx(MoonUIBadgePro, { variant: "secondary", className: "text-xs px-1", children: dayEvents.length })
|
|
4356
4355
|
] }),
|
|
4357
4356
|
/* @__PURE__ */ jsxs("div", { className: "flex-1 space-y-1 overflow-hidden", children: [
|
|
4358
4357
|
dayEvents.slice(0, 3).map((event) => /* @__PURE__ */ jsxs(
|
|
@@ -4374,7 +4373,7 @@ function Calendar2({
|
|
|
4374
4373
|
/* @__PURE__ */ jsx("span", { className: "truncate flex-1", children: event.title }),
|
|
4375
4374
|
showEventDetails && /* @__PURE__ */ jsxs("div", { className: "hidden group-hover:flex items-center gap-1 ml-1", children: [
|
|
4376
4375
|
/* @__PURE__ */ jsx(
|
|
4377
|
-
|
|
4376
|
+
MoonUIButtonPro2,
|
|
4378
4377
|
{
|
|
4379
4378
|
variant: "ghost",
|
|
4380
4379
|
size: "sm",
|
|
@@ -4384,7 +4383,7 @@ function Calendar2({
|
|
|
4384
4383
|
}
|
|
4385
4384
|
),
|
|
4386
4385
|
/* @__PURE__ */ jsx(
|
|
4387
|
-
|
|
4386
|
+
MoonUIButtonPro2,
|
|
4388
4387
|
{
|
|
4389
4388
|
variant: "ghost",
|
|
4390
4389
|
size: "sm",
|
|
@@ -4433,7 +4432,7 @@ function Calendar2({
|
|
|
4433
4432
|
/* @__PURE__ */ jsx("h5", { className: "font-medium", children: event.title }),
|
|
4434
4433
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1", children: [
|
|
4435
4434
|
/* @__PURE__ */ jsx(
|
|
4436
|
-
|
|
4435
|
+
MoonUIButtonPro2,
|
|
4437
4436
|
{
|
|
4438
4437
|
variant: "ghost",
|
|
4439
4438
|
size: "sm",
|
|
@@ -4442,7 +4441,7 @@ function Calendar2({
|
|
|
4442
4441
|
}
|
|
4443
4442
|
),
|
|
4444
4443
|
/* @__PURE__ */ jsx(
|
|
4445
|
-
|
|
4444
|
+
MoonUIButtonPro2,
|
|
4446
4445
|
{
|
|
4447
4446
|
variant: "ghost",
|
|
4448
4447
|
size: "sm",
|
|
@@ -4479,7 +4478,7 @@ function Calendar2({
|
|
|
4479
4478
|
getEventsForDate(selectedDate).length === 0 && /* @__PURE__ */ jsxs("div", { className: "text-center py-4", children: [
|
|
4480
4479
|
/* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground mb-2", children: "No events scheduled for this date" }),
|
|
4481
4480
|
/* @__PURE__ */ jsxs(
|
|
4482
|
-
|
|
4481
|
+
MoonUIButtonPro2,
|
|
4483
4482
|
{
|
|
4484
4483
|
variant: "outline",
|
|
4485
4484
|
size: "sm",
|
|
@@ -4513,7 +4512,7 @@ function Calendar2({
|
|
|
4513
4512
|
)
|
|
4514
4513
|
] });
|
|
4515
4514
|
}
|
|
4516
|
-
|
|
4515
|
+
cva(
|
|
4517
4516
|
"relative flex shrink-0 overflow-hidden",
|
|
4518
4517
|
{
|
|
4519
4518
|
variants: {
|
|
@@ -4547,7 +4546,7 @@ var avatarVariants = cva(
|
|
|
4547
4546
|
}
|
|
4548
4547
|
}
|
|
4549
4548
|
);
|
|
4550
|
-
var
|
|
4549
|
+
var MoonUIAvatarPro = React16.forwardRef(({ className, size, radius, variant, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
4551
4550
|
AvatarPrimitive.Root,
|
|
4552
4551
|
{
|
|
4553
4552
|
ref,
|
|
@@ -4555,8 +4554,8 @@ var Avatar = React16.forwardRef(({ className, size, radius, variant, ...props },
|
|
|
4555
4554
|
...props
|
|
4556
4555
|
}
|
|
4557
4556
|
));
|
|
4558
|
-
|
|
4559
|
-
var
|
|
4557
|
+
MoonUIAvatar.displayName = AvatarPrimitive.Root.displayName;
|
|
4558
|
+
var MoonUIAvatarImagePro = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
4560
4559
|
AvatarPrimitive.Image,
|
|
4561
4560
|
{
|
|
4562
4561
|
ref,
|
|
@@ -4564,8 +4563,8 @@ var AvatarImage = React16.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
4564
4563
|
...props
|
|
4565
4564
|
}
|
|
4566
4565
|
));
|
|
4567
|
-
|
|
4568
|
-
var
|
|
4566
|
+
MoonUIAvatarImage.displayName = AvatarPrimitive.Image.displayName;
|
|
4567
|
+
var MoonUIAvatarFallbackPro = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
4569
4568
|
AvatarPrimitive.Fallback,
|
|
4570
4569
|
{
|
|
4571
4570
|
ref,
|
|
@@ -4576,8 +4575,8 @@ var AvatarFallback = React16.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
4576
4575
|
...props
|
|
4577
4576
|
}
|
|
4578
4577
|
));
|
|
4579
|
-
|
|
4580
|
-
var
|
|
4578
|
+
MoonUIAvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
|
|
4579
|
+
var MoonUIAvatarGroup = React16.forwardRef(
|
|
4581
4580
|
({ className, limit, avatars, overlapOffset = -8, ...props }, ref) => {
|
|
4582
4581
|
const visibleAvatars = limit ? avatars.slice(0, limit) : avatars;
|
|
4583
4582
|
const remainingCount = limit ? Math.max(0, avatars.length - limit) : 0;
|
|
@@ -4616,7 +4615,7 @@ var AvatarGroup = React16.forwardRef(
|
|
|
4616
4615
|
);
|
|
4617
4616
|
}
|
|
4618
4617
|
);
|
|
4619
|
-
|
|
4618
|
+
MoonUIAvatarGroup.displayName = "AvatarGroup";
|
|
4620
4619
|
var PRIORITY_DOTS = {
|
|
4621
4620
|
low: "bg-green-500",
|
|
4622
4621
|
medium: "bg-yellow-500",
|
|
@@ -4638,12 +4637,12 @@ function Kanban({
|
|
|
4638
4637
|
}) {
|
|
4639
4638
|
const { hasProAccess, isLoading } = useSubscription();
|
|
4640
4639
|
if (!isLoading && !hasProAccess) {
|
|
4641
|
-
return /* @__PURE__ */ jsx(
|
|
4640
|
+
return /* @__PURE__ */ jsx(MoonUICardPro, { className: cn("w-full", className), children: /* @__PURE__ */ jsx(MoonUICardContentPro, { className: "py-12 text-center", children: /* @__PURE__ */ jsxs("div", { className: "max-w-md mx-auto space-y-4", children: [
|
|
4642
4641
|
/* @__PURE__ */ jsx("div", { className: "rounded-full bg-purple-100 dark:bg-purple-900/30 p-3 w-fit mx-auto", children: /* @__PURE__ */ jsx(Lock, { className: "h-6 w-6 text-purple-600 dark:text-purple-400" }) }),
|
|
4643
4642
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
4644
4643
|
/* @__PURE__ */ jsx("h3", { className: "font-semibold text-lg mb-2", children: "Pro Feature" }),
|
|
4645
4644
|
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-sm mb-4", children: "Kanban Board is available exclusively to MoonUI Pro subscribers." }),
|
|
4646
|
-
/* @__PURE__ */ jsx("div", { className: "flex gap-3 justify-center", children: /* @__PURE__ */ jsx("a", { href: "/pricing", children: /* @__PURE__ */ jsxs(
|
|
4645
|
+
/* @__PURE__ */ jsx("div", { className: "flex gap-3 justify-center", children: /* @__PURE__ */ jsx("a", { href: "/pricing", children: /* @__PURE__ */ jsxs(MoonUIButtonPro2, { size: "sm", children: [
|
|
4647
4646
|
/* @__PURE__ */ jsx(Sparkles, { className: "mr-2 h-4 w-4" }),
|
|
4648
4647
|
"Upgrade to Pro"
|
|
4649
4648
|
] }) }) })
|
|
@@ -4754,8 +4753,8 @@ function Kanban({
|
|
|
4754
4753
|
onDragEnter: (e) => handleDragEnter(e, column.id),
|
|
4755
4754
|
onDragLeave: (e) => handleDragLeave(e, column.id),
|
|
4756
4755
|
onDrop: (e) => handleDrop(e, column.id),
|
|
4757
|
-
children: /* @__PURE__ */ jsxs(
|
|
4758
|
-
/* @__PURE__ */ jsxs(
|
|
4756
|
+
children: /* @__PURE__ */ jsxs(MoonUICardPro, { className: "h-full", children: [
|
|
4757
|
+
/* @__PURE__ */ jsxs(MoonUICardHeaderPro, { className: "pb-3", children: [
|
|
4759
4758
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
4760
4759
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
4761
4760
|
column.color && /* @__PURE__ */ jsx(
|
|
@@ -4765,17 +4764,17 @@ function Kanban({
|
|
|
4765
4764
|
style: { backgroundColor: column.color }
|
|
4766
4765
|
}
|
|
4767
4766
|
),
|
|
4768
|
-
/* @__PURE__ */ jsx(
|
|
4769
|
-
/* @__PURE__ */ jsx(
|
|
4767
|
+
/* @__PURE__ */ jsx(MoonUICardTitlePro, { className: "text-sm font-medium", children: column.title }),
|
|
4768
|
+
/* @__PURE__ */ jsx(MoonUIBadgePro, { variant: "secondary", className: "text-xs", children: column.cards.length })
|
|
4770
4769
|
] }),
|
|
4771
|
-
/* @__PURE__ */ jsx(
|
|
4770
|
+
/* @__PURE__ */ jsx(MoonUIButtonPro2, { variant: "ghost", size: "sm", children: /* @__PURE__ */ jsx(MoreHorizontal, { className: "h-4 w-4" }) })
|
|
4772
4771
|
] }),
|
|
4773
|
-
column.limit && /* @__PURE__ */ jsx(
|
|
4772
|
+
column.limit && /* @__PURE__ */ jsx(MoonUICardDescriptionPro, { className: cn(
|
|
4774
4773
|
"text-xs",
|
|
4775
4774
|
isOverLimit && "text-destructive"
|
|
4776
4775
|
), children: isOverLimit ? "Over limit" : `${column.cards.length}/${column.limit} cards` })
|
|
4777
4776
|
] }),
|
|
4778
|
-
/* @__PURE__ */ jsxs(
|
|
4777
|
+
/* @__PURE__ */ jsxs(MoonUICardContentPro, { className: "space-y-3", children: [
|
|
4779
4778
|
column.cards.map((card) => /* @__PURE__ */ jsxs(
|
|
4780
4779
|
"div",
|
|
4781
4780
|
{
|
|
@@ -4797,7 +4796,7 @@ function Kanban({
|
|
|
4797
4796
|
] }),
|
|
4798
4797
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1 opacity-0 group-hover:opacity-100 transition-opacity", children: [
|
|
4799
4798
|
/* @__PURE__ */ jsx(
|
|
4800
|
-
|
|
4799
|
+
MoonUIButtonPro2,
|
|
4801
4800
|
{
|
|
4802
4801
|
variant: "ghost",
|
|
4803
4802
|
size: "sm",
|
|
@@ -4807,7 +4806,7 @@ function Kanban({
|
|
|
4807
4806
|
}
|
|
4808
4807
|
),
|
|
4809
4808
|
/* @__PURE__ */ jsx(
|
|
4810
|
-
|
|
4809
|
+
MoonUIButtonPro2,
|
|
4811
4810
|
{
|
|
4812
4811
|
variant: "ghost",
|
|
4813
4812
|
size: "sm",
|
|
@@ -4819,7 +4818,7 @@ function Kanban({
|
|
|
4819
4818
|
/* @__PURE__ */ jsx("div", { className: "cursor-move", children: /* @__PURE__ */ jsx(GripVertical, { className: "h-3 w-3 text-muted-foreground" }) })
|
|
4820
4819
|
] })
|
|
4821
4820
|
] }),
|
|
4822
|
-
card.tags && card.tags.length > 0 && /* @__PURE__ */ jsx("div", { className: "flex flex-wrap gap-1 mb-2", children: card.tags.map((tag, index) => /* @__PURE__ */ jsx(
|
|
4821
|
+
card.tags && card.tags.length > 0 && /* @__PURE__ */ jsx("div", { className: "flex flex-wrap gap-1 mb-2", children: card.tags.map((tag, index) => /* @__PURE__ */ jsx(MoonUIBadgePro, { variant: "outline", className: "text-xs px-1 py-0", children: tag }, index)) }),
|
|
4823
4822
|
showCardDetails && /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between text-xs text-muted-foreground", children: [
|
|
4824
4823
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
4825
4824
|
card.priority && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1", children: [
|
|
@@ -4843,9 +4842,9 @@ function Kanban({
|
|
|
4843
4842
|
/* @__PURE__ */ jsx(Paperclip, { className: "h-3 w-3" }),
|
|
4844
4843
|
/* @__PURE__ */ jsx("span", { children: card.attachments })
|
|
4845
4844
|
] }),
|
|
4846
|
-
card.assignee && /* @__PURE__ */ jsxs(
|
|
4847
|
-
/* @__PURE__ */ jsx(
|
|
4848
|
-
/* @__PURE__ */ jsx(
|
|
4845
|
+
card.assignee && /* @__PURE__ */ jsxs(MoonUIAvatarPro, { className: "h-5 w-5", children: [
|
|
4846
|
+
/* @__PURE__ */ jsx(MoonUIAvatarImagePro, { src: card.assignee.avatar }),
|
|
4847
|
+
/* @__PURE__ */ jsx(MoonUIAvatarFallbackPro, { className: "text-xs", children: getInitials(card.assignee.name) })
|
|
4849
4848
|
] })
|
|
4850
4849
|
] })
|
|
4851
4850
|
] })
|
|
@@ -4854,7 +4853,7 @@ function Kanban({
|
|
|
4854
4853
|
card.id
|
|
4855
4854
|
)),
|
|
4856
4855
|
onAddCard && /* @__PURE__ */ jsxs(
|
|
4857
|
-
|
|
4856
|
+
MoonUIButtonPro2,
|
|
4858
4857
|
{
|
|
4859
4858
|
variant: "ghost",
|
|
4860
4859
|
size: "sm",
|
|
@@ -4874,7 +4873,7 @@ function Kanban({
|
|
|
4874
4873
|
);
|
|
4875
4874
|
}),
|
|
4876
4875
|
showAddColumn && onAddColumn && /* @__PURE__ */ jsx("div", { className: "flex-shrink-0 w-80", children: /* @__PURE__ */ jsxs(
|
|
4877
|
-
|
|
4876
|
+
MoonUIButtonPro2,
|
|
4878
4877
|
{
|
|
4879
4878
|
variant: "outline",
|
|
4880
4879
|
onClick: onAddColumn,
|
|
@@ -43415,9 +43414,9 @@ var SlashCommandsExtension = Extension.create({
|
|
|
43415
43414
|
];
|
|
43416
43415
|
}
|
|
43417
43416
|
});
|
|
43418
|
-
var
|
|
43419
|
-
var
|
|
43420
|
-
|
|
43417
|
+
var MoonUIDropdownMenuPro = DropdownMenuPrimitive.Root;
|
|
43418
|
+
var MoonUIDropdownMenuTriggerPro = DropdownMenuPrimitive.Trigger;
|
|
43419
|
+
React16.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
43421
43420
|
DropdownMenuPrimitive.SubTrigger,
|
|
43422
43421
|
{
|
|
43423
43422
|
ref,
|
|
@@ -43433,8 +43432,8 @@ var DropdownMenuSubTrigger = React16.forwardRef(({ className, inset, children, .
|
|
|
43433
43432
|
]
|
|
43434
43433
|
}
|
|
43435
43434
|
));
|
|
43436
|
-
|
|
43437
|
-
|
|
43435
|
+
MoonUIDropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
43436
|
+
React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
43438
43437
|
DropdownMenuPrimitive.SubContent,
|
|
43439
43438
|
{
|
|
43440
43439
|
ref,
|
|
@@ -43445,8 +43444,8 @@ var DropdownMenuSubContent = React16.forwardRef(({ className, ...props }, ref) =
|
|
|
43445
43444
|
...props
|
|
43446
43445
|
}
|
|
43447
43446
|
));
|
|
43448
|
-
|
|
43449
|
-
var
|
|
43447
|
+
MoonUIDropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
43448
|
+
var MoonUIDropdownMenuContentPro = React16.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
43450
43449
|
DropdownMenuPrimitive.Content,
|
|
43451
43450
|
{
|
|
43452
43451
|
ref,
|
|
@@ -43458,8 +43457,8 @@ var DropdownMenuContent = React16.forwardRef(({ className, sideOffset = 4, ...pr
|
|
|
43458
43457
|
...props
|
|
43459
43458
|
}
|
|
43460
43459
|
) }));
|
|
43461
|
-
|
|
43462
|
-
var
|
|
43460
|
+
MoonUIDropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
43461
|
+
var MoonUIDropdownMenuItemPro = React16.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
43463
43462
|
DropdownMenuPrimitive.Item,
|
|
43464
43463
|
{
|
|
43465
43464
|
ref,
|
|
@@ -43471,8 +43470,8 @@ var DropdownMenuItem = React16.forwardRef(({ className, inset, ...props }, ref)
|
|
|
43471
43470
|
...props
|
|
43472
43471
|
}
|
|
43473
43472
|
));
|
|
43474
|
-
|
|
43475
|
-
|
|
43473
|
+
MoonUIDropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
43474
|
+
React16.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
43476
43475
|
DropdownMenuPrimitive.CheckboxItem,
|
|
43477
43476
|
{
|
|
43478
43477
|
ref,
|
|
@@ -43488,8 +43487,8 @@ var DropdownMenuCheckboxItem = React16.forwardRef(({ className, children, checke
|
|
|
43488
43487
|
]
|
|
43489
43488
|
}
|
|
43490
43489
|
));
|
|
43491
|
-
|
|
43492
|
-
|
|
43490
|
+
MoonUIDropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
43491
|
+
React16.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
43493
43492
|
DropdownMenuPrimitive.RadioItem,
|
|
43494
43493
|
{
|
|
43495
43494
|
ref,
|
|
@@ -43504,8 +43503,8 @@ var DropdownMenuRadioItem = React16.forwardRef(({ className, children, ...props
|
|
|
43504
43503
|
]
|
|
43505
43504
|
}
|
|
43506
43505
|
));
|
|
43507
|
-
|
|
43508
|
-
|
|
43506
|
+
MoonUIDropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
43507
|
+
React16.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
43509
43508
|
DropdownMenuPrimitive.Label,
|
|
43510
43509
|
{
|
|
43511
43510
|
ref,
|
|
@@ -43517,8 +43516,8 @@ var DropdownMenuLabel = React16.forwardRef(({ className, inset, ...props }, ref)
|
|
|
43517
43516
|
...props
|
|
43518
43517
|
}
|
|
43519
43518
|
));
|
|
43520
|
-
|
|
43521
|
-
var
|
|
43519
|
+
MoonUIDropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
43520
|
+
var MoonUIDropdownMenuSeparatorPro = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
43522
43521
|
DropdownMenuPrimitive.Separator,
|
|
43523
43522
|
{
|
|
43524
43523
|
ref,
|
|
@@ -43526,8 +43525,8 @@ var DropdownMenuSeparator = React16.forwardRef(({ className, ...props }, ref) =>
|
|
|
43526
43525
|
...props
|
|
43527
43526
|
}
|
|
43528
43527
|
));
|
|
43529
|
-
|
|
43530
|
-
var
|
|
43528
|
+
MoonUIDropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
|
|
43529
|
+
var MoonUITooltipProviderPro = TooltipPrimitive.Provider;
|
|
43531
43530
|
var tooltipVariants = cva(
|
|
43532
43531
|
"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",
|
|
43533
43532
|
{
|
|
@@ -43552,9 +43551,9 @@ var tooltipVariants = cva(
|
|
|
43552
43551
|
}
|
|
43553
43552
|
}
|
|
43554
43553
|
);
|
|
43555
|
-
var
|
|
43556
|
-
var
|
|
43557
|
-
var
|
|
43554
|
+
var MoonUITooltipPro = TooltipPrimitive.Root;
|
|
43555
|
+
var MoonUITooltipTriggerPro = TooltipPrimitive.Trigger;
|
|
43556
|
+
var MoonUITooltipArrow = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
43558
43557
|
TooltipPrimitive.Arrow,
|
|
43559
43558
|
{
|
|
43560
43559
|
ref,
|
|
@@ -43562,8 +43561,8 @@ var TooltipArrow = React16.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
43562
43561
|
...props
|
|
43563
43562
|
}
|
|
43564
43563
|
));
|
|
43565
|
-
|
|
43566
|
-
var
|
|
43564
|
+
MoonUITooltipArrow.displayName = TooltipPrimitive.Arrow.displayName;
|
|
43565
|
+
var MoonUITooltipContentPro = React16.forwardRef(({ className, variant, size, showArrow = false, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
43567
43566
|
TooltipPrimitive.Content,
|
|
43568
43567
|
{
|
|
43569
43568
|
ref,
|
|
@@ -43576,8 +43575,8 @@ var TooltipContent = React16.forwardRef(({ className, variant, size, showArrow =
|
|
|
43576
43575
|
]
|
|
43577
43576
|
}
|
|
43578
43577
|
));
|
|
43579
|
-
|
|
43580
|
-
var
|
|
43578
|
+
MoonUITooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
|
43579
|
+
var MoonUISimpleTooltip = React16.forwardRef(
|
|
43581
43580
|
({
|
|
43582
43581
|
children,
|
|
43583
43582
|
content,
|
|
@@ -43625,7 +43624,7 @@ var SimpleTooltip = React16.forwardRef(
|
|
|
43625
43624
|
);
|
|
43626
43625
|
}
|
|
43627
43626
|
);
|
|
43628
|
-
|
|
43627
|
+
MoonUISimpleTooltip.displayName = "SimpleTooltip";
|
|
43629
43628
|
var popoverContentVariants = cva(
|
|
43630
43629
|
"z-50 w-72 rounded-md border border-border bg-background p-4 shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",
|
|
43631
43630
|
{
|
|
@@ -43675,9 +43674,9 @@ var popoverContentVariants = cva(
|
|
|
43675
43674
|
}
|
|
43676
43675
|
}
|
|
43677
43676
|
);
|
|
43678
|
-
var
|
|
43679
|
-
var
|
|
43680
|
-
var
|
|
43677
|
+
var MoonUIPopoverPro = PopoverPrimitive.Root;
|
|
43678
|
+
var MoonUIPopoverTriggerPro = PopoverPrimitive.Trigger;
|
|
43679
|
+
var MoonUIPopoverContentPro = React16.forwardRef(({
|
|
43681
43680
|
className,
|
|
43682
43681
|
variant,
|
|
43683
43682
|
size,
|
|
@@ -43719,7 +43718,7 @@ var PopoverContent = React16.forwardRef(({
|
|
|
43719
43718
|
}
|
|
43720
43719
|
)
|
|
43721
43720
|
] }));
|
|
43722
|
-
|
|
43721
|
+
MoonUIPopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
43723
43722
|
var defaultColors = [
|
|
43724
43723
|
"#000000",
|
|
43725
43724
|
"#374151",
|
|
@@ -43738,7 +43737,7 @@ var defaultColors = [
|
|
|
43738
43737
|
"#EC4899",
|
|
43739
43738
|
"#F43F5E"
|
|
43740
43739
|
];
|
|
43741
|
-
var
|
|
43740
|
+
var MoonUIColorPickerPro = ({
|
|
43742
43741
|
value = "#000000",
|
|
43743
43742
|
onChange,
|
|
43744
43743
|
className,
|
|
@@ -43803,7 +43802,7 @@ var ColorPicker = ({
|
|
|
43803
43802
|
)) })
|
|
43804
43803
|
] });
|
|
43805
43804
|
};
|
|
43806
|
-
|
|
43805
|
+
cva(
|
|
43807
43806
|
"relative flex w-full touch-none select-none items-center",
|
|
43808
43807
|
{
|
|
43809
43808
|
variants: {
|
|
@@ -43883,7 +43882,7 @@ var sliderThumbVariants = cva(
|
|
|
43883
43882
|
}
|
|
43884
43883
|
}
|
|
43885
43884
|
);
|
|
43886
|
-
var
|
|
43885
|
+
var MoonUISliderPro = React16.forwardRef(({
|
|
43887
43886
|
className,
|
|
43888
43887
|
size,
|
|
43889
43888
|
trackVariant,
|
|
@@ -44037,8 +44036,8 @@ var Slider = React16.forwardRef(({
|
|
|
44037
44036
|
)
|
|
44038
44037
|
] });
|
|
44039
44038
|
});
|
|
44040
|
-
|
|
44041
|
-
var
|
|
44039
|
+
MoonUISliderPro.displayName = "MoonUISliderPro";
|
|
44040
|
+
var MoonUIToastViewport = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
44042
44041
|
ToastPrimitives.Viewport,
|
|
44043
44042
|
{
|
|
44044
44043
|
ref,
|
|
@@ -44049,8 +44048,8 @@ var ToastViewport = React16.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
44049
44048
|
...props
|
|
44050
44049
|
}
|
|
44051
44050
|
));
|
|
44052
|
-
|
|
44053
|
-
|
|
44051
|
+
MoonUIToastViewport.displayName = ToastPrimitives.Viewport.displayName;
|
|
44052
|
+
cva(
|
|
44054
44053
|
"group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-8 shadow-sm transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",
|
|
44055
44054
|
{
|
|
44056
44055
|
variants: {
|
|
@@ -44067,7 +44066,7 @@ var toastVariants = cva(
|
|
|
44067
44066
|
}
|
|
44068
44067
|
}
|
|
44069
44068
|
);
|
|
44070
|
-
|
|
44069
|
+
React16.forwardRef(({ className, variant, ...props }, ref) => {
|
|
44071
44070
|
return /* @__PURE__ */ jsx(
|
|
44072
44071
|
ToastPrimitives.Root,
|
|
44073
44072
|
{
|
|
@@ -44077,8 +44076,8 @@ var Toast = React16.forwardRef(({ className, variant, ...props }, ref) => {
|
|
|
44077
44076
|
}
|
|
44078
44077
|
);
|
|
44079
44078
|
});
|
|
44080
|
-
|
|
44081
|
-
var
|
|
44079
|
+
MoonUIToast.displayName = ToastPrimitives.Root.displayName;
|
|
44080
|
+
var MoonUIToastAction = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
44082
44081
|
ToastPrimitives.Action,
|
|
44083
44082
|
{
|
|
44084
44083
|
ref,
|
|
@@ -44089,8 +44088,8 @@ var ToastAction = React16.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
44089
44088
|
...props
|
|
44090
44089
|
}
|
|
44091
44090
|
));
|
|
44092
|
-
|
|
44093
|
-
var
|
|
44091
|
+
MoonUIToastAction.displayName = ToastPrimitives.Action.displayName;
|
|
44092
|
+
var MoonUIToastClose = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
44094
44093
|
ToastPrimitives.Close,
|
|
44095
44094
|
{
|
|
44096
44095
|
ref,
|
|
@@ -44103,8 +44102,8 @@ var ToastClose = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
44103
44102
|
children: /* @__PURE__ */ jsx(X, { className: "h-4 w-4" })
|
|
44104
44103
|
}
|
|
44105
44104
|
));
|
|
44106
|
-
|
|
44107
|
-
var
|
|
44105
|
+
MoonUIToastClose.displayName = ToastPrimitives.Close.displayName;
|
|
44106
|
+
var MoonUIToastTitle = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
44108
44107
|
ToastPrimitives.Title,
|
|
44109
44108
|
{
|
|
44110
44109
|
ref,
|
|
@@ -44112,8 +44111,8 @@ var ToastTitle = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
44112
44111
|
...props
|
|
44113
44112
|
}
|
|
44114
44113
|
));
|
|
44115
|
-
|
|
44116
|
-
var
|
|
44114
|
+
MoonUIToastTitle.displayName = ToastPrimitives.Title.displayName;
|
|
44115
|
+
var MoonUIToastDescription = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
44117
44116
|
ToastPrimitives.Description,
|
|
44118
44117
|
{
|
|
44119
44118
|
ref,
|
|
@@ -44121,7 +44120,7 @@ var ToastDescription = React16.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
44121
44120
|
...props
|
|
44122
44121
|
}
|
|
44123
44122
|
));
|
|
44124
|
-
|
|
44123
|
+
MoonUIToastDescription.displayName = ToastPrimitives.Description.displayName;
|
|
44125
44124
|
var TOAST_LIMIT = 5;
|
|
44126
44125
|
var TOAST_REMOVE_DELAY = 1e6;
|
|
44127
44126
|
var toastTimeouts = /* @__PURE__ */ new Map();
|
|
@@ -44282,7 +44281,7 @@ var EditorColorPicker = ({
|
|
|
44282
44281
|
currentColor = "#000000"
|
|
44283
44282
|
}) => {
|
|
44284
44283
|
return /* @__PURE__ */ jsx(
|
|
44285
|
-
|
|
44284
|
+
MoonUIColorPickerPro,
|
|
44286
44285
|
{
|
|
44287
44286
|
value: currentColor,
|
|
44288
44287
|
onChange: onColorSelect,
|
|
@@ -44352,9 +44351,9 @@ var ToolbarButton = ({
|
|
|
44352
44351
|
);
|
|
44353
44352
|
if (!tooltip)
|
|
44354
44353
|
return button;
|
|
44355
|
-
return /* @__PURE__ */ jsxs(
|
|
44356
|
-
/* @__PURE__ */ jsx(
|
|
44357
|
-
/* @__PURE__ */ jsx(
|
|
44354
|
+
return /* @__PURE__ */ jsxs(MoonUITooltipPro, { children: [
|
|
44355
|
+
/* @__PURE__ */ jsx(MoonUITooltipTriggerPro, { asChild: true, children: button }),
|
|
44356
|
+
/* @__PURE__ */ jsx(MoonUITooltipContentPro, { children: /* @__PURE__ */ jsx("p", { children: tooltip }) })
|
|
44358
44357
|
] });
|
|
44359
44358
|
};
|
|
44360
44359
|
function RichTextEditor({
|
|
@@ -44387,12 +44386,12 @@ function RichTextEditor({
|
|
|
44387
44386
|
}) {
|
|
44388
44387
|
const { hasProAccess, isLoading } = useSubscription();
|
|
44389
44388
|
if (!isLoading && !hasProAccess) {
|
|
44390
|
-
return /* @__PURE__ */ jsx(
|
|
44389
|
+
return /* @__PURE__ */ jsx(MoonUICardPro, { className: cn("w-full", className), children: /* @__PURE__ */ jsx(MoonUICardContentPro, { className: "py-12 text-center", children: /* @__PURE__ */ jsxs("div", { className: "max-w-md mx-auto space-y-4", children: [
|
|
44391
44390
|
/* @__PURE__ */ jsx("div", { className: "rounded-full bg-purple-100 dark:bg-purple-900/30 p-3 w-fit mx-auto", children: /* @__PURE__ */ jsx(Lock, { className: "h-6 w-6 text-purple-600 dark:text-purple-400" }) }),
|
|
44392
44391
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
44393
44392
|
/* @__PURE__ */ jsx("h3", { className: "font-semibold text-lg mb-2", children: "Pro Feature" }),
|
|
44394
44393
|
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-sm mb-4", children: "Advanced Rich Text Editor is available exclusively to MoonUI Pro subscribers." }),
|
|
44395
|
-
/* @__PURE__ */ jsx("div", { className: "flex gap-3 justify-center", children: /* @__PURE__ */ jsx("a", { href: "/pricing", children: /* @__PURE__ */ jsxs(
|
|
44394
|
+
/* @__PURE__ */ jsx("div", { className: "flex gap-3 justify-center", children: /* @__PURE__ */ jsx("a", { href: "/pricing", children: /* @__PURE__ */ jsxs(MoonUIButtonPro2, { size: "sm", children: [
|
|
44396
44395
|
/* @__PURE__ */ jsx(Sparkles, { className: "mr-2 h-4 w-4" }),
|
|
44397
44396
|
"Upgrade to Pro"
|
|
44398
44397
|
] }) }) })
|
|
@@ -44762,7 +44761,7 @@ function RichTextEditor({
|
|
|
44762
44761
|
return null;
|
|
44763
44762
|
}
|
|
44764
44763
|
return /* @__PURE__ */ jsxs("div", { className: cn("border rounded-lg overflow-hidden bg-white dark:bg-gray-950", className), children: [
|
|
44765
|
-
/* @__PURE__ */ jsx(
|
|
44764
|
+
/* @__PURE__ */ jsx(MoonUITooltipProviderPro, { children: /* @__PURE__ */ jsx("div", { className: "border-b bg-gray-50 dark:bg-gray-900 p-3", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center flex-wrap gap-1", children: [
|
|
44766
44765
|
(features.bold || features.italic || features.underline || features.strike || features.code) && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1 shrink-0", children: [
|
|
44767
44766
|
features.bold && /* @__PURE__ */ jsx(
|
|
44768
44767
|
ToolbarButton,
|
|
@@ -44817,22 +44816,22 @@ function RichTextEditor({
|
|
|
44817
44816
|
] }),
|
|
44818
44817
|
(features.bold || features.italic || features.underline || features.strike || features.code) && (features.heading || features.align) && /* @__PURE__ */ jsx("div", { className: "w-px h-6 bg-border mx-1 shrink-0" }),
|
|
44819
44818
|
(features.heading || features.align) && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1 shrink-0", children: [
|
|
44820
|
-
features.heading && /* @__PURE__ */ jsxs(
|
|
44821
|
-
/* @__PURE__ */ jsx(
|
|
44819
|
+
features.heading && /* @__PURE__ */ jsxs(MoonUIDropdownMenuPro, { children: [
|
|
44820
|
+
/* @__PURE__ */ jsx(MoonUIDropdownMenuTriggerPro, { asChild: true, children: /* @__PURE__ */ jsxs(MoonUIButtonPro2, { variant: "ghost", size: "sm", className: "h-8 px-2", disabled: isSourceView, children: [
|
|
44822
44821
|
/* @__PURE__ */ jsx(Type, { className: "w-4 h-4 mr-1" }),
|
|
44823
44822
|
/* @__PURE__ */ jsx(ChevronDown, { className: "w-3 h-3" })
|
|
44824
44823
|
] }) }),
|
|
44825
|
-
/* @__PURE__ */ jsxs(
|
|
44826
|
-
/* @__PURE__ */ jsx(
|
|
44827
|
-
/* @__PURE__ */ jsxs(
|
|
44824
|
+
/* @__PURE__ */ jsxs(MoonUIDropdownMenuContentPro, { children: [
|
|
44825
|
+
/* @__PURE__ */ jsx(MoonUIDropdownMenuItemPro, { onClick: () => editor.chain().focus().setParagraph().run(), children: "Paragraph" }),
|
|
44826
|
+
/* @__PURE__ */ jsxs(MoonUIDropdownMenuItemPro, { onClick: () => editor.chain().focus().toggleHeading({ level: 1 }).run(), children: [
|
|
44828
44827
|
/* @__PURE__ */ jsx(Heading1, { className: "w-4 h-4 mr-2" }),
|
|
44829
44828
|
" Heading 1"
|
|
44830
44829
|
] }),
|
|
44831
|
-
/* @__PURE__ */ jsxs(
|
|
44830
|
+
/* @__PURE__ */ jsxs(MoonUIDropdownMenuItemPro, { onClick: () => editor.chain().focus().toggleHeading({ level: 2 }).run(), children: [
|
|
44832
44831
|
/* @__PURE__ */ jsx(Heading2, { className: "w-4 h-4 mr-2" }),
|
|
44833
44832
|
" Heading 2"
|
|
44834
44833
|
] }),
|
|
44835
|
-
/* @__PURE__ */ jsxs(
|
|
44834
|
+
/* @__PURE__ */ jsxs(MoonUIDropdownMenuItemPro, { onClick: () => editor.chain().focus().toggleHeading({ level: 3 }).run(), children: [
|
|
44836
44835
|
/* @__PURE__ */ jsx(Heading3, { className: "w-4 h-4 mr-2" }),
|
|
44837
44836
|
" Heading 3"
|
|
44838
44837
|
] })
|
|
@@ -44928,9 +44927,9 @@ function RichTextEditor({
|
|
|
44928
44927
|
] }),
|
|
44929
44928
|
(features.lists || features.blockquote) && features.color && /* @__PURE__ */ jsx("div", { className: "w-px h-6 bg-border mx-1 shrink-0" }),
|
|
44930
44929
|
features.color && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1 shrink-0", children: [
|
|
44931
|
-
/* @__PURE__ */ jsxs(
|
|
44932
|
-
/* @__PURE__ */ jsx(
|
|
44933
|
-
|
|
44930
|
+
/* @__PURE__ */ jsxs(MoonUIPopoverPro, { children: [
|
|
44931
|
+
/* @__PURE__ */ jsx(MoonUIPopoverTriggerPro, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
44932
|
+
MoonUIButtonPro2,
|
|
44934
44933
|
{
|
|
44935
44934
|
variant: "ghost",
|
|
44936
44935
|
size: "sm",
|
|
@@ -44940,7 +44939,7 @@ function RichTextEditor({
|
|
|
44940
44939
|
children: /* @__PURE__ */ jsx(Palette, { className: "w-4 h-4" })
|
|
44941
44940
|
}
|
|
44942
44941
|
) }),
|
|
44943
|
-
/* @__PURE__ */ jsx(
|
|
44942
|
+
/* @__PURE__ */ jsx(MoonUIPopoverContentPro, { className: "w-auto p-0", children: /* @__PURE__ */ jsx(
|
|
44944
44943
|
EditorColorPicker,
|
|
44945
44944
|
{
|
|
44946
44945
|
currentColor: currentTextColor,
|
|
@@ -44951,9 +44950,9 @@ function RichTextEditor({
|
|
|
44951
44950
|
}
|
|
44952
44951
|
) })
|
|
44953
44952
|
] }),
|
|
44954
|
-
/* @__PURE__ */ jsxs(
|
|
44955
|
-
/* @__PURE__ */ jsx(
|
|
44956
|
-
|
|
44953
|
+
/* @__PURE__ */ jsxs(MoonUIPopoverPro, { children: [
|
|
44954
|
+
/* @__PURE__ */ jsx(MoonUIPopoverTriggerPro, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
44955
|
+
MoonUIButtonPro2,
|
|
44957
44956
|
{
|
|
44958
44957
|
variant: "ghost",
|
|
44959
44958
|
size: "sm",
|
|
@@ -44963,7 +44962,7 @@ function RichTextEditor({
|
|
|
44963
44962
|
children: /* @__PURE__ */ jsx(Highlighter, { className: "w-4 h-4" })
|
|
44964
44963
|
}
|
|
44965
44964
|
) }),
|
|
44966
|
-
/* @__PURE__ */ jsx(
|
|
44965
|
+
/* @__PURE__ */ jsx(MoonUIPopoverContentPro, { className: "w-auto p-0", children: /* @__PURE__ */ jsx(
|
|
44967
44966
|
EditorColorPicker,
|
|
44968
44967
|
{
|
|
44969
44968
|
currentColor: currentBgColor,
|
|
@@ -44977,8 +44976,8 @@ function RichTextEditor({
|
|
|
44977
44976
|
] }),
|
|
44978
44977
|
features.color && (features.link || features.image || features.table) && /* @__PURE__ */ jsx("div", { className: "w-px h-6 bg-border mx-1 shrink-0" }),
|
|
44979
44978
|
(features.link || features.image || features.table) && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1 shrink-0", children: [
|
|
44980
|
-
features.link && /* @__PURE__ */ jsxs(
|
|
44981
|
-
/* @__PURE__ */ jsx(
|
|
44979
|
+
features.link && /* @__PURE__ */ jsxs(MoonUIDialogPro, { open: isLinkDialogOpen, onOpenChange: setIsLinkDialogOpen, children: [
|
|
44980
|
+
/* @__PURE__ */ jsx(MoonUIDialogTriggerPro, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
44982
44981
|
ToolbarButton,
|
|
44983
44982
|
{
|
|
44984
44983
|
active: editor.isActive("link"),
|
|
@@ -44998,15 +44997,15 @@ function RichTextEditor({
|
|
|
44998
44997
|
children: /* @__PURE__ */ jsx(Link2, { className: "w-4 h-4" })
|
|
44999
44998
|
}
|
|
45000
44999
|
) }),
|
|
45001
|
-
/* @__PURE__ */ jsxs(
|
|
45002
|
-
/* @__PURE__ */ jsxs(
|
|
45003
|
-
/* @__PURE__ */ jsx(
|
|
45004
|
-
/* @__PURE__ */ jsx(
|
|
45000
|
+
/* @__PURE__ */ jsxs(MoonUIDialogContentPro, { className: "sm:max-w-[425px]", children: [
|
|
45001
|
+
/* @__PURE__ */ jsxs(MoonUIDialogHeaderPro, { children: [
|
|
45002
|
+
/* @__PURE__ */ jsx(MoonUIDialogTitlePro, { children: "Add Link" }),
|
|
45003
|
+
/* @__PURE__ */ jsx(MoonUIDialogDescriptionPro, { children: "Enter the URL for the link." })
|
|
45005
45004
|
] }),
|
|
45006
45005
|
/* @__PURE__ */ jsx("div", { className: "grid gap-4 py-4", children: /* @__PURE__ */ jsxs("div", { className: "grid gap-2", children: [
|
|
45007
|
-
/* @__PURE__ */ jsx(
|
|
45006
|
+
/* @__PURE__ */ jsx(MoonUILabelPro2, { htmlFor: "url", children: "URL" }),
|
|
45008
45007
|
/* @__PURE__ */ jsx(
|
|
45009
|
-
|
|
45008
|
+
MoonUIInputPro,
|
|
45010
45009
|
{
|
|
45011
45010
|
id: "url",
|
|
45012
45011
|
value: linkUrl,
|
|
@@ -45023,7 +45022,7 @@ function RichTextEditor({
|
|
|
45023
45022
|
] }) }),
|
|
45024
45023
|
/* @__PURE__ */ jsxs("div", { className: "flex justify-between", children: [
|
|
45025
45024
|
editor.isActive("link") && /* @__PURE__ */ jsx(
|
|
45026
|
-
|
|
45025
|
+
MoonUIButtonPro2,
|
|
45027
45026
|
{
|
|
45028
45027
|
variant: "destructive",
|
|
45029
45028
|
onClick: () => {
|
|
@@ -45034,14 +45033,14 @@ function RichTextEditor({
|
|
|
45034
45033
|
}
|
|
45035
45034
|
),
|
|
45036
45035
|
/* @__PURE__ */ jsxs("div", { className: "ml-auto flex gap-2", children: [
|
|
45037
|
-
/* @__PURE__ */ jsx(
|
|
45038
|
-
/* @__PURE__ */ jsx(
|
|
45036
|
+
/* @__PURE__ */ jsx(MoonUIButtonPro2, { variant: "outline", onClick: () => setIsLinkDialogOpen(false), children: "Cancel" }),
|
|
45037
|
+
/* @__PURE__ */ jsx(MoonUIButtonPro2, { onClick: addLink, children: "Add Link" })
|
|
45039
45038
|
] })
|
|
45040
45039
|
] })
|
|
45041
45040
|
] })
|
|
45042
45041
|
] }),
|
|
45043
|
-
features.image && /* @__PURE__ */ jsxs(
|
|
45044
|
-
/* @__PURE__ */ jsx(
|
|
45042
|
+
features.image && /* @__PURE__ */ jsxs(MoonUIDialogPro, { open: isImageDialogOpen, onOpenChange: setIsImageDialogOpen, children: [
|
|
45043
|
+
/* @__PURE__ */ jsx(MoonUIDialogTriggerPro, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
45045
45044
|
ToolbarButton,
|
|
45046
45045
|
{
|
|
45047
45046
|
onClick: () => {
|
|
@@ -45055,15 +45054,15 @@ function RichTextEditor({
|
|
|
45055
45054
|
children: /* @__PURE__ */ jsx(Image$1, { className: "w-4 h-4" })
|
|
45056
45055
|
}
|
|
45057
45056
|
) }),
|
|
45058
|
-
/* @__PURE__ */ jsxs(
|
|
45059
|
-
/* @__PURE__ */ jsxs(
|
|
45060
|
-
/* @__PURE__ */ jsx(
|
|
45061
|
-
/* @__PURE__ */ jsx(
|
|
45057
|
+
/* @__PURE__ */ jsxs(MoonUIDialogContentPro, { className: "sm:max-w-[425px]", children: [
|
|
45058
|
+
/* @__PURE__ */ jsxs(MoonUIDialogHeaderPro, { children: [
|
|
45059
|
+
/* @__PURE__ */ jsx(MoonUIDialogTitlePro, { children: "Add Image" }),
|
|
45060
|
+
/* @__PURE__ */ jsx(MoonUIDialogDescriptionPro, { children: "Enter the URL for the image." })
|
|
45062
45061
|
] }),
|
|
45063
45062
|
/* @__PURE__ */ jsx("div", { className: "grid gap-4 py-4", children: /* @__PURE__ */ jsxs("div", { className: "grid gap-2", children: [
|
|
45064
|
-
/* @__PURE__ */ jsx(
|
|
45063
|
+
/* @__PURE__ */ jsx(MoonUILabelPro2, { htmlFor: "image-url", children: "Image URL" }),
|
|
45065
45064
|
/* @__PURE__ */ jsx(
|
|
45066
|
-
|
|
45065
|
+
MoonUIInputPro,
|
|
45067
45066
|
{
|
|
45068
45067
|
id: "image-url",
|
|
45069
45068
|
value: imageUrl,
|
|
@@ -45079,14 +45078,14 @@ function RichTextEditor({
|
|
|
45079
45078
|
)
|
|
45080
45079
|
] }) }),
|
|
45081
45080
|
/* @__PURE__ */ jsxs("div", { className: "flex justify-end gap-2", children: [
|
|
45082
|
-
/* @__PURE__ */ jsx(
|
|
45083
|
-
/* @__PURE__ */ jsx(
|
|
45081
|
+
/* @__PURE__ */ jsx(MoonUIButtonPro2, { variant: "outline", onClick: () => setIsImageDialogOpen(false), children: "Cancel" }),
|
|
45082
|
+
/* @__PURE__ */ jsx(MoonUIButtonPro2, { onClick: addImage, children: "Add Image" })
|
|
45084
45083
|
] })
|
|
45085
45084
|
] })
|
|
45086
45085
|
] }),
|
|
45087
45086
|
features.table && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
45088
|
-
/* @__PURE__ */ jsxs(
|
|
45089
|
-
/* @__PURE__ */ jsx(
|
|
45087
|
+
/* @__PURE__ */ jsxs(MoonUIDialogPro, { open: isTableDialogOpen, onOpenChange: setIsTableDialogOpen, children: [
|
|
45088
|
+
/* @__PURE__ */ jsx(MoonUIDialogTriggerPro, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
45090
45089
|
ToolbarButton,
|
|
45091
45090
|
{
|
|
45092
45091
|
onClick: () => editor.chain().focus().insertTable({ rows: 3, cols: 3, withHeaderRow: true }).run(),
|
|
@@ -45095,17 +45094,17 @@ function RichTextEditor({
|
|
|
45095
45094
|
children: /* @__PURE__ */ jsx(Table$1, { className: "w-4 h-4" })
|
|
45096
45095
|
}
|
|
45097
45096
|
) }),
|
|
45098
|
-
/* @__PURE__ */ jsxs(
|
|
45099
|
-
/* @__PURE__ */ jsxs(
|
|
45100
|
-
/* @__PURE__ */ jsx(
|
|
45101
|
-
/* @__PURE__ */ jsx(
|
|
45097
|
+
/* @__PURE__ */ jsxs(MoonUIDialogContentPro, { className: "sm:max-w-[425px]", children: [
|
|
45098
|
+
/* @__PURE__ */ jsxs(MoonUIDialogHeaderPro, { children: [
|
|
45099
|
+
/* @__PURE__ */ jsx(MoonUIDialogTitlePro, { children: "Create Table" }),
|
|
45100
|
+
/* @__PURE__ */ jsx(MoonUIDialogDescriptionPro, { children: "Choose the size for your new table." })
|
|
45102
45101
|
] }),
|
|
45103
45102
|
/* @__PURE__ */ jsxs("div", { className: "grid gap-4 py-4", children: [
|
|
45104
45103
|
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 gap-4", children: [
|
|
45105
45104
|
/* @__PURE__ */ jsxs("div", { className: "grid gap-2", children: [
|
|
45106
|
-
/* @__PURE__ */ jsx(
|
|
45105
|
+
/* @__PURE__ */ jsx(MoonUILabelPro2, { htmlFor: "rows", children: "Rows" }),
|
|
45107
45106
|
/* @__PURE__ */ jsx(
|
|
45108
|
-
|
|
45107
|
+
MoonUIInputPro,
|
|
45109
45108
|
{
|
|
45110
45109
|
id: "rows",
|
|
45111
45110
|
type: "number",
|
|
@@ -45117,9 +45116,9 @@ function RichTextEditor({
|
|
|
45117
45116
|
)
|
|
45118
45117
|
] }),
|
|
45119
45118
|
/* @__PURE__ */ jsxs("div", { className: "grid gap-2", children: [
|
|
45120
|
-
/* @__PURE__ */ jsx(
|
|
45119
|
+
/* @__PURE__ */ jsx(MoonUILabelPro2, { htmlFor: "cols", children: "Columns" }),
|
|
45121
45120
|
/* @__PURE__ */ jsx(
|
|
45122
|
-
|
|
45121
|
+
MoonUIInputPro,
|
|
45123
45122
|
{
|
|
45124
45123
|
id: "cols",
|
|
45125
45124
|
type: "number",
|
|
@@ -45141,32 +45140,32 @@ function RichTextEditor({
|
|
|
45141
45140
|
className: "rounded border-gray-300"
|
|
45142
45141
|
}
|
|
45143
45142
|
),
|
|
45144
|
-
/* @__PURE__ */ jsx(
|
|
45143
|
+
/* @__PURE__ */ jsx(MoonUILabelPro2, { htmlFor: "headerRow", className: "text-sm font-normal", children: "Include header row" })
|
|
45145
45144
|
] })
|
|
45146
45145
|
] }),
|
|
45147
45146
|
/* @__PURE__ */ jsxs("div", { className: "flex justify-end gap-2", children: [
|
|
45148
|
-
/* @__PURE__ */ jsx(
|
|
45149
|
-
/* @__PURE__ */ jsx(
|
|
45147
|
+
/* @__PURE__ */ jsx(MoonUIButtonPro2, { variant: "outline", onClick: () => setIsTableDialogOpen(false), children: "Cancel" }),
|
|
45148
|
+
/* @__PURE__ */ jsx(MoonUIButtonPro2, { onClick: createTable2, children: "Create Table" })
|
|
45150
45149
|
] })
|
|
45151
45150
|
] })
|
|
45152
45151
|
] }),
|
|
45153
|
-
/* @__PURE__ */ jsxs(
|
|
45154
|
-
/* @__PURE__ */ jsx(
|
|
45155
|
-
/* @__PURE__ */ jsxs(
|
|
45156
|
-
/* @__PURE__ */ jsx(
|
|
45157
|
-
/* @__PURE__ */ jsx(
|
|
45158
|
-
/* @__PURE__ */ jsx(
|
|
45159
|
-
/* @__PURE__ */ jsx(
|
|
45160
|
-
/* @__PURE__ */ jsx(
|
|
45161
|
-
/* @__PURE__ */ jsx(
|
|
45162
|
-
/* @__PURE__ */ jsx(
|
|
45163
|
-
/* @__PURE__ */ jsx(
|
|
45164
|
-
/* @__PURE__ */ jsxs(
|
|
45152
|
+
/* @__PURE__ */ jsxs(MoonUIDropdownMenuPro, { children: [
|
|
45153
|
+
/* @__PURE__ */ jsx(MoonUIDropdownMenuTriggerPro, { asChild: true, children: /* @__PURE__ */ jsx(MoonUIButtonPro2, { variant: "ghost", size: "sm", className: "h-8 px-1", children: /* @__PURE__ */ jsx(ChevronDown, { className: "w-3 h-3" }) }) }),
|
|
45154
|
+
/* @__PURE__ */ jsxs(MoonUIDropdownMenuContentPro, { children: [
|
|
45155
|
+
/* @__PURE__ */ jsx(MoonUIDropdownMenuItemPro, { onClick: () => editor.chain().focus().addColumnBefore().run(), children: "Add column before" }),
|
|
45156
|
+
/* @__PURE__ */ jsx(MoonUIDropdownMenuItemPro, { onClick: () => editor.chain().focus().addColumnAfter().run(), children: "Add column after" }),
|
|
45157
|
+
/* @__PURE__ */ jsx(MoonUIDropdownMenuItemPro, { onClick: () => editor.chain().focus().deleteColumn().run(), children: "Delete column" }),
|
|
45158
|
+
/* @__PURE__ */ jsx(MoonUIDropdownMenuSeparatorPro, {}),
|
|
45159
|
+
/* @__PURE__ */ jsx(MoonUIDropdownMenuItemPro, { onClick: () => editor.chain().focus().addRowBefore().run(), children: "Add row before" }),
|
|
45160
|
+
/* @__PURE__ */ jsx(MoonUIDropdownMenuItemPro, { onClick: () => editor.chain().focus().addRowAfter().run(), children: "Add row after" }),
|
|
45161
|
+
/* @__PURE__ */ jsx(MoonUIDropdownMenuItemPro, { onClick: () => editor.chain().focus().deleteRow().run(), children: "Delete row" }),
|
|
45162
|
+
/* @__PURE__ */ jsx(MoonUIDropdownMenuSeparatorPro, {}),
|
|
45163
|
+
/* @__PURE__ */ jsxs(MoonUIDropdownMenuItemPro, { onClick: () => setIsTableBorderDialogOpen(true), children: [
|
|
45165
45164
|
/* @__PURE__ */ jsx(Settings, { className: "w-4 h-4 mr-2" }),
|
|
45166
45165
|
"Table Borders"
|
|
45167
45166
|
] }),
|
|
45168
|
-
/* @__PURE__ */ jsx(
|
|
45169
|
-
/* @__PURE__ */ jsx(
|
|
45167
|
+
/* @__PURE__ */ jsx(MoonUIDropdownMenuSeparatorPro, {}),
|
|
45168
|
+
/* @__PURE__ */ jsx(MoonUIDropdownMenuItemPro, { onClick: () => editor.chain().focus().deleteTable().run(), children: "Delete table" })
|
|
45170
45169
|
] })
|
|
45171
45170
|
] })
|
|
45172
45171
|
] })
|
|
@@ -45208,9 +45207,9 @@ function RichTextEditor({
|
|
|
45208
45207
|
}
|
|
45209
45208
|
),
|
|
45210
45209
|
features.ai && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
45211
|
-
/* @__PURE__ */ jsxs(
|
|
45212
|
-
/* @__PURE__ */ jsx(
|
|
45213
|
-
|
|
45210
|
+
/* @__PURE__ */ jsxs(MoonUIDropdownMenuPro, { children: [
|
|
45211
|
+
/* @__PURE__ */ jsx(MoonUIDropdownMenuTriggerPro, { asChild: true, children: /* @__PURE__ */ jsxs(
|
|
45212
|
+
MoonUIButtonPro2,
|
|
45214
45213
|
{
|
|
45215
45214
|
variant: "ghost",
|
|
45216
45215
|
size: "sm",
|
|
@@ -45222,62 +45221,62 @@ function RichTextEditor({
|
|
|
45222
45221
|
]
|
|
45223
45222
|
}
|
|
45224
45223
|
) }),
|
|
45225
|
-
/* @__PURE__ */ jsxs(
|
|
45226
|
-
/* @__PURE__ */ jsxs(
|
|
45224
|
+
/* @__PURE__ */ jsxs(MoonUIDropdownMenuContentPro, { className: "w-56", children: [
|
|
45225
|
+
/* @__PURE__ */ jsxs(MoonUIDropdownMenuItemPro, { onClick: () => handleAIAction("rewrite"), children: [
|
|
45227
45226
|
/* @__PURE__ */ jsx(RefreshCw, { className: "w-4 h-4 mr-2" }),
|
|
45228
45227
|
"Rewrite Selection"
|
|
45229
45228
|
] }),
|
|
45230
|
-
/* @__PURE__ */ jsxs(
|
|
45229
|
+
/* @__PURE__ */ jsxs(MoonUIDropdownMenuItemPro, { onClick: () => handleAIAction("improve"), children: [
|
|
45231
45230
|
/* @__PURE__ */ jsx(Wand2, { className: "w-4 h-4 mr-2" }),
|
|
45232
45231
|
"Improve Writing"
|
|
45233
45232
|
] }),
|
|
45234
|
-
/* @__PURE__ */ jsxs(
|
|
45233
|
+
/* @__PURE__ */ jsxs(MoonUIDropdownMenuItemPro, { onClick: () => handleAIAction("expand"), children: [
|
|
45235
45234
|
/* @__PURE__ */ jsx(Maximize, { className: "w-4 h-4 mr-2" }),
|
|
45236
45235
|
"Expand Text"
|
|
45237
45236
|
] }),
|
|
45238
|
-
/* @__PURE__ */ jsxs(
|
|
45237
|
+
/* @__PURE__ */ jsxs(MoonUIDropdownMenuItemPro, { onClick: () => handleAIAction("summarize"), children: [
|
|
45239
45238
|
/* @__PURE__ */ jsx(FileText, { className: "w-4 h-4 mr-2" }),
|
|
45240
45239
|
"Summarize"
|
|
45241
45240
|
] }),
|
|
45242
|
-
/* @__PURE__ */ jsxs(
|
|
45241
|
+
/* @__PURE__ */ jsxs(MoonUIDropdownMenuItemPro, { onClick: () => handleAIAction("continue"), children: [
|
|
45243
45242
|
/* @__PURE__ */ jsx(Plus, { className: "w-4 h-4 mr-2" }),
|
|
45244
45243
|
"Continue Writing"
|
|
45245
45244
|
] }),
|
|
45246
|
-
/* @__PURE__ */ jsx(
|
|
45247
|
-
/* @__PURE__ */ jsxs(
|
|
45245
|
+
/* @__PURE__ */ jsx(MoonUIDropdownMenuSeparatorPro, {}),
|
|
45246
|
+
/* @__PURE__ */ jsxs(MoonUIDropdownMenuItemPro, { onClick: () => handleAIAction("fix"), children: [
|
|
45248
45247
|
/* @__PURE__ */ jsx(Check, { className: "w-4 h-4 mr-2" }),
|
|
45249
45248
|
"Fix Grammar & Spelling"
|
|
45250
45249
|
] }),
|
|
45251
|
-
/* @__PURE__ */ jsx(
|
|
45252
|
-
/* @__PURE__ */ jsxs(
|
|
45250
|
+
/* @__PURE__ */ jsx(MoonUIDropdownMenuSeparatorPro, {}),
|
|
45251
|
+
/* @__PURE__ */ jsxs(MoonUIDropdownMenuItemPro, { onClick: () => handleAIAction("tone_professional"), children: [
|
|
45253
45252
|
/* @__PURE__ */ jsx(Sparkles, { className: "w-4 h-4 mr-2" }),
|
|
45254
45253
|
"Make Professional"
|
|
45255
45254
|
] }),
|
|
45256
|
-
/* @__PURE__ */ jsxs(
|
|
45255
|
+
/* @__PURE__ */ jsxs(MoonUIDropdownMenuItemPro, { onClick: () => handleAIAction("tone_casual"), children: [
|
|
45257
45256
|
/* @__PURE__ */ jsx(Sparkles, { className: "w-4 h-4 mr-2" }),
|
|
45258
45257
|
"Make Casual"
|
|
45259
45258
|
] }),
|
|
45260
|
-
/* @__PURE__ */ jsxs(
|
|
45259
|
+
/* @__PURE__ */ jsxs(MoonUIDropdownMenuItemPro, { onClick: () => handleAIAction("tone_friendly"), children: [
|
|
45261
45260
|
/* @__PURE__ */ jsx(Sparkles, { className: "w-4 h-4 mr-2" }),
|
|
45262
45261
|
"Make Friendly"
|
|
45263
45262
|
] }),
|
|
45264
|
-
/* @__PURE__ */ jsxs(
|
|
45263
|
+
/* @__PURE__ */ jsxs(MoonUIDropdownMenuItemPro, { onClick: () => handleAIAction("tone_formal"), children: [
|
|
45265
45264
|
/* @__PURE__ */ jsx(Sparkles, { className: "w-4 h-4 mr-2" }),
|
|
45266
45265
|
"Make Formal"
|
|
45267
45266
|
] }),
|
|
45268
|
-
/* @__PURE__ */ jsx(
|
|
45269
|
-
/* @__PURE__ */ jsxs(
|
|
45267
|
+
/* @__PURE__ */ jsx(MoonUIDropdownMenuSeparatorPro, {}),
|
|
45268
|
+
/* @__PURE__ */ jsxs(MoonUIDropdownMenuItemPro, { onClick: () => handleAIAction("translate"), children: [
|
|
45270
45269
|
/* @__PURE__ */ jsx(Languages, { className: "w-4 h-4 mr-2" }),
|
|
45271
45270
|
"Translate to Turkish"
|
|
45272
45271
|
] }),
|
|
45273
|
-
/* @__PURE__ */ jsxs(
|
|
45272
|
+
/* @__PURE__ */ jsxs(MoonUIDropdownMenuItemPro, { onClick: () => handleAIAction("ideas"), children: [
|
|
45274
45273
|
/* @__PURE__ */ jsx(Sparkles, { className: "w-4 h-4 mr-2" }),
|
|
45275
45274
|
"Generate Ideas"
|
|
45276
45275
|
] })
|
|
45277
45276
|
] })
|
|
45278
45277
|
] }),
|
|
45279
|
-
/* @__PURE__ */ jsxs(
|
|
45280
|
-
/* @__PURE__ */ jsx(
|
|
45278
|
+
/* @__PURE__ */ jsxs(MoonUIDialogPro, { open: isAiSettingsOpen, onOpenChange: setIsAiSettingsOpen, children: [
|
|
45279
|
+
/* @__PURE__ */ jsx(MoonUIDialogTriggerPro, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
45281
45280
|
ToolbarButton,
|
|
45282
45281
|
{
|
|
45283
45282
|
onClick: () => setIsAiSettingsOpen(true),
|
|
@@ -45286,35 +45285,35 @@ function RichTextEditor({
|
|
|
45286
45285
|
children: /* @__PURE__ */ jsx(Settings, { className: "w-4 h-4" })
|
|
45287
45286
|
}
|
|
45288
45287
|
) }),
|
|
45289
|
-
/* @__PURE__ */ jsxs(
|
|
45290
|
-
/* @__PURE__ */ jsxs(
|
|
45291
|
-
/* @__PURE__ */ jsx(
|
|
45292
|
-
/* @__PURE__ */ jsx(
|
|
45288
|
+
/* @__PURE__ */ jsxs(MoonUIDialogContentPro, { className: "sm:max-w-[425px]", children: [
|
|
45289
|
+
/* @__PURE__ */ jsxs(MoonUIDialogHeaderPro, { children: [
|
|
45290
|
+
/* @__PURE__ */ jsx(MoonUIDialogTitlePro, { children: "AI Settings" }),
|
|
45291
|
+
/* @__PURE__ */ jsx(MoonUIDialogDescriptionPro, { children: "Configure your AI provider and API settings." })
|
|
45293
45292
|
] }),
|
|
45294
45293
|
/* @__PURE__ */ jsxs("div", { className: "grid gap-4 py-4", children: [
|
|
45295
45294
|
/* @__PURE__ */ jsxs("div", { className: "grid gap-2", children: [
|
|
45296
|
-
/* @__PURE__ */ jsx(
|
|
45295
|
+
/* @__PURE__ */ jsx(MoonUILabelPro2, { htmlFor: "provider", children: "Provider" }),
|
|
45297
45296
|
/* @__PURE__ */ jsxs(
|
|
45298
|
-
|
|
45297
|
+
MoonUISelectPro,
|
|
45299
45298
|
{
|
|
45300
45299
|
value: aiSettings.provider,
|
|
45301
45300
|
onValueChange: (value) => setAiSettings({ ...aiSettings, provider: value }),
|
|
45302
45301
|
children: [
|
|
45303
|
-
/* @__PURE__ */ jsx(
|
|
45304
|
-
/* @__PURE__ */ jsxs(
|
|
45305
|
-
/* @__PURE__ */ jsx(
|
|
45306
|
-
/* @__PURE__ */ jsx(
|
|
45307
|
-
/* @__PURE__ */ jsx(
|
|
45308
|
-
/* @__PURE__ */ jsx(
|
|
45302
|
+
/* @__PURE__ */ jsx(MoonUISelectTriggerPro, { children: /* @__PURE__ */ jsx(MoonUISelectValuePro, {}) }),
|
|
45303
|
+
/* @__PURE__ */ jsxs(MoonUISelectContentPro, { children: [
|
|
45304
|
+
/* @__PURE__ */ jsx(MoonUISelectItemPro, { value: "openai", children: "OpenAI" }),
|
|
45305
|
+
/* @__PURE__ */ jsx(MoonUISelectItemPro, { value: "claude", children: "Claude (Anthropic)" }),
|
|
45306
|
+
/* @__PURE__ */ jsx(MoonUISelectItemPro, { value: "gemini", children: "Gemini (Google)" }),
|
|
45307
|
+
/* @__PURE__ */ jsx(MoonUISelectItemPro, { value: "cohere", children: "Cohere" })
|
|
45309
45308
|
] })
|
|
45310
45309
|
]
|
|
45311
45310
|
}
|
|
45312
45311
|
)
|
|
45313
45312
|
] }),
|
|
45314
45313
|
/* @__PURE__ */ jsxs("div", { className: "grid gap-2", children: [
|
|
45315
|
-
/* @__PURE__ */ jsx(
|
|
45314
|
+
/* @__PURE__ */ jsx(MoonUILabelPro2, { htmlFor: "apiKey", children: "API Key" }),
|
|
45316
45315
|
/* @__PURE__ */ jsx(
|
|
45317
|
-
|
|
45316
|
+
MoonUIInputPro,
|
|
45318
45317
|
{
|
|
45319
45318
|
id: "apiKey",
|
|
45320
45319
|
type: "password",
|
|
@@ -45325,31 +45324,31 @@ function RichTextEditor({
|
|
|
45325
45324
|
)
|
|
45326
45325
|
] }),
|
|
45327
45326
|
/* @__PURE__ */ jsxs("div", { className: "grid gap-2", children: [
|
|
45328
|
-
/* @__PURE__ */ jsx(
|
|
45327
|
+
/* @__PURE__ */ jsx(MoonUILabelPro2, { htmlFor: "model", children: "Model" }),
|
|
45329
45328
|
/* @__PURE__ */ jsxs(
|
|
45330
|
-
|
|
45329
|
+
MoonUISelectPro,
|
|
45331
45330
|
{
|
|
45332
45331
|
value: aiSettings.model,
|
|
45333
45332
|
onValueChange: (value) => setAiSettings({ ...aiSettings, model: value }),
|
|
45334
45333
|
children: [
|
|
45335
|
-
/* @__PURE__ */ jsx(
|
|
45336
|
-
/* @__PURE__ */ jsxs(
|
|
45334
|
+
/* @__PURE__ */ jsx(MoonUISelectTriggerPro, { children: /* @__PURE__ */ jsx(MoonUISelectValuePro, {}) }),
|
|
45335
|
+
/* @__PURE__ */ jsxs(MoonUISelectContentPro, { children: [
|
|
45337
45336
|
aiSettings.provider === "openai" && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
45338
|
-
/* @__PURE__ */ jsx(
|
|
45339
|
-
/* @__PURE__ */ jsx(
|
|
45337
|
+
/* @__PURE__ */ jsx(MoonUISelectItemPro, { value: "gpt-4", children: "GPT-4" }),
|
|
45338
|
+
/* @__PURE__ */ jsx(MoonUISelectItemPro, { value: "gpt-3.5-turbo", children: "GPT-3.5 Turbo" })
|
|
45340
45339
|
] }),
|
|
45341
45340
|
aiSettings.provider === "claude" && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
45342
|
-
/* @__PURE__ */ jsx(
|
|
45343
|
-
/* @__PURE__ */ jsx(
|
|
45344
|
-
/* @__PURE__ */ jsx(
|
|
45341
|
+
/* @__PURE__ */ jsx(MoonUISelectItemPro, { value: "claude-3-opus", children: "Claude 3 Opus" }),
|
|
45342
|
+
/* @__PURE__ */ jsx(MoonUISelectItemPro, { value: "claude-3-sonnet", children: "Claude 3 Sonnet" }),
|
|
45343
|
+
/* @__PURE__ */ jsx(MoonUISelectItemPro, { value: "claude-3-haiku", children: "Claude 3 Haiku" })
|
|
45345
45344
|
] }),
|
|
45346
45345
|
aiSettings.provider === "gemini" && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
45347
|
-
/* @__PURE__ */ jsx(
|
|
45348
|
-
/* @__PURE__ */ jsx(
|
|
45346
|
+
/* @__PURE__ */ jsx(MoonUISelectItemPro, { value: "gemini-pro", children: "Gemini Pro" }),
|
|
45347
|
+
/* @__PURE__ */ jsx(MoonUISelectItemPro, { value: "gemini-pro-vision", children: "Gemini Pro Vision" })
|
|
45349
45348
|
] }),
|
|
45350
45349
|
aiSettings.provider === "cohere" && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
45351
|
-
/* @__PURE__ */ jsx(
|
|
45352
|
-
/* @__PURE__ */ jsx(
|
|
45350
|
+
/* @__PURE__ */ jsx(MoonUISelectItemPro, { value: "command", children: "Command" }),
|
|
45351
|
+
/* @__PURE__ */ jsx(MoonUISelectItemPro, { value: "command-light", children: "Command Light" })
|
|
45353
45352
|
] })
|
|
45354
45353
|
] })
|
|
45355
45354
|
]
|
|
@@ -45358,9 +45357,9 @@ function RichTextEditor({
|
|
|
45358
45357
|
] }),
|
|
45359
45358
|
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 gap-4", children: [
|
|
45360
45359
|
/* @__PURE__ */ jsxs("div", { className: "grid gap-2", children: [
|
|
45361
|
-
/* @__PURE__ */ jsx(
|
|
45360
|
+
/* @__PURE__ */ jsx(MoonUILabelPro2, { htmlFor: "temperature", children: "Temperature" }),
|
|
45362
45361
|
/* @__PURE__ */ jsx(
|
|
45363
|
-
|
|
45362
|
+
MoonUIInputPro,
|
|
45364
45363
|
{
|
|
45365
45364
|
id: "temperature",
|
|
45366
45365
|
type: "number",
|
|
@@ -45373,9 +45372,9 @@ function RichTextEditor({
|
|
|
45373
45372
|
)
|
|
45374
45373
|
] }),
|
|
45375
45374
|
/* @__PURE__ */ jsxs("div", { className: "grid gap-2", children: [
|
|
45376
|
-
/* @__PURE__ */ jsx(
|
|
45375
|
+
/* @__PURE__ */ jsx(MoonUILabelPro2, { htmlFor: "maxTokens", children: "Max Tokens" }),
|
|
45377
45376
|
/* @__PURE__ */ jsx(
|
|
45378
|
-
|
|
45377
|
+
MoonUIInputPro,
|
|
45379
45378
|
{
|
|
45380
45379
|
id: "maxTokens",
|
|
45381
45380
|
type: "number",
|
|
@@ -45388,7 +45387,7 @@ function RichTextEditor({
|
|
|
45388
45387
|
] })
|
|
45389
45388
|
] })
|
|
45390
45389
|
] }),
|
|
45391
|
-
/* @__PURE__ */ jsx("div", { className: "flex justify-end", children: /* @__PURE__ */ jsx(
|
|
45390
|
+
/* @__PURE__ */ jsx("div", { className: "flex justify-end", children: /* @__PURE__ */ jsx(MoonUIButtonPro2, { onClick: () => {
|
|
45392
45391
|
setIsAiSettingsOpen(false);
|
|
45393
45392
|
toast({
|
|
45394
45393
|
title: "Settings saved",
|
|
@@ -45400,17 +45399,17 @@ function RichTextEditor({
|
|
|
45400
45399
|
] })
|
|
45401
45400
|
] })
|
|
45402
45401
|
] }) }) }),
|
|
45403
|
-
/* @__PURE__ */ jsx(
|
|
45404
|
-
/* @__PURE__ */ jsxs(
|
|
45405
|
-
/* @__PURE__ */ jsx(
|
|
45406
|
-
/* @__PURE__ */ jsx(
|
|
45402
|
+
/* @__PURE__ */ jsx(MoonUIDialogPro, { open: isTableBorderDialogOpen, onOpenChange: setIsTableBorderDialogOpen, children: /* @__PURE__ */ jsxs(MoonUIDialogContentPro, { className: "sm:max-w-[425px]", children: [
|
|
45403
|
+
/* @__PURE__ */ jsxs(MoonUIDialogHeaderPro, { children: [
|
|
45404
|
+
/* @__PURE__ */ jsx(MoonUIDialogTitlePro, { children: "Table Border Settings" }),
|
|
45405
|
+
/* @__PURE__ */ jsx(MoonUIDialogDescriptionPro, { children: "Customize the appearance of table borders." })
|
|
45407
45406
|
] }),
|
|
45408
45407
|
/* @__PURE__ */ jsxs("div", { className: "grid gap-6 py-4", children: [
|
|
45409
45408
|
/* @__PURE__ */ jsxs("div", { className: "grid gap-3", children: [
|
|
45410
|
-
/* @__PURE__ */ jsx(
|
|
45409
|
+
/* @__PURE__ */ jsx(MoonUILabelPro2, { htmlFor: "border-width", children: "Border Width" }),
|
|
45411
45410
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-4", children: [
|
|
45412
45411
|
/* @__PURE__ */ jsx(
|
|
45413
|
-
|
|
45412
|
+
MoonUISliderPro,
|
|
45414
45413
|
{
|
|
45415
45414
|
id: "border-width",
|
|
45416
45415
|
min: 0,
|
|
@@ -45428,10 +45427,10 @@ function RichTextEditor({
|
|
|
45428
45427
|
] })
|
|
45429
45428
|
] }),
|
|
45430
45429
|
/* @__PURE__ */ jsxs("div", { className: "grid gap-3", children: [
|
|
45431
|
-
/* @__PURE__ */ jsx(
|
|
45430
|
+
/* @__PURE__ */ jsx(MoonUILabelPro2, { htmlFor: "border-color", children: "Border Color" }),
|
|
45432
45431
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
45433
45432
|
/* @__PURE__ */ jsx(
|
|
45434
|
-
|
|
45433
|
+
MoonUIColorPickerPro,
|
|
45435
45434
|
{
|
|
45436
45435
|
value: tableBorderColor,
|
|
45437
45436
|
onChange: setTableBorderColor,
|
|
@@ -45444,23 +45443,23 @@ function RichTextEditor({
|
|
|
45444
45443
|
] })
|
|
45445
45444
|
] }),
|
|
45446
45445
|
/* @__PURE__ */ jsxs("div", { className: "grid gap-3", children: [
|
|
45447
|
-
/* @__PURE__ */ jsx(
|
|
45448
|
-
/* @__PURE__ */ jsxs(
|
|
45449
|
-
/* @__PURE__ */ jsx(
|
|
45450
|
-
/* @__PURE__ */ jsxs(
|
|
45451
|
-
/* @__PURE__ */ jsx(
|
|
45452
|
-
/* @__PURE__ */ jsx(
|
|
45453
|
-
/* @__PURE__ */ jsx(
|
|
45454
|
-
/* @__PURE__ */ jsx(
|
|
45455
|
-
/* @__PURE__ */ jsx(
|
|
45456
|
-
/* @__PURE__ */ jsx(
|
|
45457
|
-
/* @__PURE__ */ jsx(
|
|
45458
|
-
/* @__PURE__ */ jsx(
|
|
45446
|
+
/* @__PURE__ */ jsx(MoonUILabelPro2, { htmlFor: "border-style", children: "Border Style" }),
|
|
45447
|
+
/* @__PURE__ */ jsxs(MoonUISelectPro, { value: tableBorderStyle, onValueChange: setTableBorderStyle, children: [
|
|
45448
|
+
/* @__PURE__ */ jsx(MoonUISelectTriggerPro, { children: /* @__PURE__ */ jsx(MoonUISelectValuePro, {}) }),
|
|
45449
|
+
/* @__PURE__ */ jsxs(MoonUISelectContentPro, { children: [
|
|
45450
|
+
/* @__PURE__ */ jsx(MoonUISelectItemPro, { value: "solid", children: "Solid" }),
|
|
45451
|
+
/* @__PURE__ */ jsx(MoonUISelectItemPro, { value: "dashed", children: "Dashed" }),
|
|
45452
|
+
/* @__PURE__ */ jsx(MoonUISelectItemPro, { value: "dotted", children: "Dotted" }),
|
|
45453
|
+
/* @__PURE__ */ jsx(MoonUISelectItemPro, { value: "double", children: "Double" }),
|
|
45454
|
+
/* @__PURE__ */ jsx(MoonUISelectItemPro, { value: "groove", children: "Groove" }),
|
|
45455
|
+
/* @__PURE__ */ jsx(MoonUISelectItemPro, { value: "ridge", children: "Ridge" }),
|
|
45456
|
+
/* @__PURE__ */ jsx(MoonUISelectItemPro, { value: "inset", children: "Inset" }),
|
|
45457
|
+
/* @__PURE__ */ jsx(MoonUISelectItemPro, { value: "outset", children: "Outset" })
|
|
45459
45458
|
] })
|
|
45460
45459
|
] })
|
|
45461
45460
|
] }),
|
|
45462
45461
|
/* @__PURE__ */ jsxs("div", { className: "grid gap-3", children: [
|
|
45463
|
-
/* @__PURE__ */ jsx(
|
|
45462
|
+
/* @__PURE__ */ jsx(MoonUILabelPro2, { children: "Preview" }),
|
|
45464
45463
|
/* @__PURE__ */ jsx("div", { className: "p-4 bg-gray-50 dark:bg-gray-900 rounded-lg", children: /* @__PURE__ */ jsxs(
|
|
45465
45464
|
"table",
|
|
45466
45465
|
{
|
|
@@ -45522,8 +45521,8 @@ function RichTextEditor({
|
|
|
45522
45521
|
] })
|
|
45523
45522
|
] }),
|
|
45524
45523
|
/* @__PURE__ */ jsxs("div", { className: "flex justify-end gap-2", children: [
|
|
45525
|
-
/* @__PURE__ */ jsx(
|
|
45526
|
-
/* @__PURE__ */ jsx(
|
|
45524
|
+
/* @__PURE__ */ jsx(MoonUIButtonPro2, { variant: "outline", onClick: () => setIsTableBorderDialogOpen(false), children: "Cancel" }),
|
|
45525
|
+
/* @__PURE__ */ jsx(MoonUIButtonPro2, { onClick: () => {
|
|
45527
45526
|
applyTableBorders(tableBorderWidth, tableBorderColor, tableBorderStyle);
|
|
45528
45527
|
setIsTableBorderDialogOpen(false);
|
|
45529
45528
|
toast({
|
|
@@ -46239,13 +46238,13 @@ function Timeline({
|
|
|
46239
46238
|
] }),
|
|
46240
46239
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 text-xs text-muted-foreground", children: [
|
|
46241
46240
|
showRelativeTime ? /* @__PURE__ */ jsx("span", { children: getRelativeTime(event.date) }) : /* @__PURE__ */ jsx("span", { children: formatTime(event.date) }),
|
|
46242
|
-
/* @__PURE__ */ jsx(
|
|
46241
|
+
/* @__PURE__ */ jsx(MoonUIBadgePro, { variant: "outline", className: cn$1("text-xs", textColor), children: event.type })
|
|
46243
46242
|
] })
|
|
46244
46243
|
] }),
|
|
46245
46244
|
showUserInfo && event.user && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 mb-2", children: [
|
|
46246
|
-
/* @__PURE__ */ jsxs(
|
|
46247
|
-
/* @__PURE__ */ jsx(
|
|
46248
|
-
/* @__PURE__ */ jsx(
|
|
46245
|
+
/* @__PURE__ */ jsxs(MoonUIAvatarPro, { className: "h-6 w-6", children: [
|
|
46246
|
+
/* @__PURE__ */ jsx(MoonUIAvatarImagePro, { src: event.user.avatar }),
|
|
46247
|
+
/* @__PURE__ */ jsx(MoonUIAvatarFallbackPro, { className: "text-xs", children: getInitials(event.user.name) })
|
|
46249
46248
|
] }),
|
|
46250
46249
|
/* @__PURE__ */ jsx("span", { className: "text-sm text-muted-foreground", children: event.user.name })
|
|
46251
46250
|
] }),
|
|
@@ -46271,7 +46270,7 @@ function Timeline({
|
|
|
46271
46270
|
/* @__PURE__ */ jsx("span", { children: "View details" })
|
|
46272
46271
|
] })
|
|
46273
46272
|
] }),
|
|
46274
|
-
event.metadata?.tags && event.metadata.tags.length > 0 && /* @__PURE__ */ jsx("div", { className: "flex flex-wrap gap-1 mt-2", children: event.metadata.tags.map((tag, tagIndex) => /* @__PURE__ */ jsx(
|
|
46273
|
+
event.metadata?.tags && event.metadata.tags.length > 0 && /* @__PURE__ */ jsx("div", { className: "flex flex-wrap gap-1 mt-2", children: event.metadata.tags.map((tag, tagIndex) => /* @__PURE__ */ jsx(MoonUIBadgePro, { variant: "secondary", className: "text-xs", children: tag }, tagIndex)) })
|
|
46275
46274
|
] })
|
|
46276
46275
|
]
|
|
46277
46276
|
},
|
|
@@ -46285,20 +46284,20 @@ function Timeline({
|
|
|
46285
46284
|
events2.map((event, index) => renderEvent(event, index, index === events2.length - 1))
|
|
46286
46285
|
] }, date));
|
|
46287
46286
|
};
|
|
46288
|
-
return /* @__PURE__ */ jsxs(
|
|
46289
|
-
/* @__PURE__ */ jsxs(
|
|
46290
|
-
/* @__PURE__ */ jsxs(
|
|
46287
|
+
return /* @__PURE__ */ jsxs(MoonUICardPro, { className: cn$1("w-full", className), children: [
|
|
46288
|
+
/* @__PURE__ */ jsxs(MoonUICardHeaderPro, { children: [
|
|
46289
|
+
/* @__PURE__ */ jsxs(MoonUICardTitlePro, { className: "flex items-center gap-2", children: [
|
|
46291
46290
|
/* @__PURE__ */ jsx(Clock, { className: "h-5 w-5" }),
|
|
46292
46291
|
"Timeline"
|
|
46293
46292
|
] }),
|
|
46294
|
-
/* @__PURE__ */ jsxs(
|
|
46293
|
+
/* @__PURE__ */ jsxs(MoonUICardDescriptionPro, { children: [
|
|
46295
46294
|
sortedEvents.length,
|
|
46296
46295
|
" event",
|
|
46297
46296
|
sortedEvents.length !== 1 ? "s" : "",
|
|
46298
46297
|
" tracked"
|
|
46299
46298
|
] })
|
|
46300
46299
|
] }),
|
|
46301
|
-
/* @__PURE__ */ jsx(
|
|
46300
|
+
/* @__PURE__ */ jsx(MoonUICardContentPro, { children: sortedEvents.length > 0 ? /* @__PURE__ */ jsx("div", { className: cn$1(
|
|
46302
46301
|
"space-y-0",
|
|
46303
46302
|
orientation === "horizontal" && "flex overflow-x-auto gap-6"
|
|
46304
46303
|
), children: groupByDate ? renderGroupedEvents() : sortedEvents.map(
|
|
@@ -46526,24 +46525,24 @@ function AdvancedChart({
|
|
|
46526
46525
|
}
|
|
46527
46526
|
};
|
|
46528
46527
|
if (loading) {
|
|
46529
|
-
return /* @__PURE__ */ jsx(
|
|
46528
|
+
return /* @__PURE__ */ jsx(MoonUICardPro, { className: cn$1("w-full", className), children: /* @__PURE__ */ jsx(MoonUICardContentPro, { className: "flex items-center justify-center", style: { height }, children: /* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
|
|
46530
46529
|
/* @__PURE__ */ jsx(RefreshCw, { className: "h-4 w-4 animate-spin" }),
|
|
46531
46530
|
/* @__PURE__ */ jsx("span", { children: "Loading chart..." })
|
|
46532
46531
|
] }) }) });
|
|
46533
46532
|
}
|
|
46534
46533
|
if (error) {
|
|
46535
|
-
return /* @__PURE__ */ jsx(
|
|
46534
|
+
return /* @__PURE__ */ jsx(MoonUICardPro, { className: cn$1("w-full", className), children: /* @__PURE__ */ jsx(MoonUICardContentPro, { className: "flex items-center justify-center", style: { height }, children: /* @__PURE__ */ jsxs("div", { className: "text-center", children: [
|
|
46536
46535
|
/* @__PURE__ */ jsx("p", { className: "text-destructive mb-2", children: error }),
|
|
46537
|
-
onRefresh && /* @__PURE__ */ jsxs(
|
|
46536
|
+
onRefresh && /* @__PURE__ */ jsxs(MoonUIButtonPro2, { variant: "outline", onClick: onRefresh, children: [
|
|
46538
46537
|
/* @__PURE__ */ jsx(RefreshCw, { className: "mr-2 h-4 w-4" }),
|
|
46539
46538
|
"Retry"
|
|
46540
46539
|
] })
|
|
46541
46540
|
] }) }) });
|
|
46542
46541
|
}
|
|
46543
|
-
return /* @__PURE__ */ jsxs(
|
|
46544
|
-
/* @__PURE__ */ jsxs(
|
|
46542
|
+
return /* @__PURE__ */ jsxs(MoonUICardPro, { className: cn$1("w-full", className), ref: chartRef, children: [
|
|
46543
|
+
/* @__PURE__ */ jsxs(MoonUICardHeaderPro, { className: "flex flex-row items-center justify-between space-y-0 pb-2", children: [
|
|
46545
46544
|
/* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
|
|
46546
|
-
/* @__PURE__ */ jsxs(
|
|
46545
|
+
/* @__PURE__ */ jsxs(MoonUICardTitlePro, { className: "text-base font-medium", children: [
|
|
46547
46546
|
title,
|
|
46548
46547
|
trend && /* @__PURE__ */ jsxs("span", { className: "ml-2 inline-flex items-center", children: [
|
|
46549
46548
|
trend.direction === "up" && /* @__PURE__ */ jsx(TrendingUp, { className: "h-4 w-4 text-green-500" }),
|
|
@@ -46563,13 +46562,13 @@ function AdvancedChart({
|
|
|
46563
46562
|
subtitle && /* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: subtitle })
|
|
46564
46563
|
] }),
|
|
46565
46564
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-1", children: [
|
|
46566
|
-
onRefresh && /* @__PURE__ */ jsx(
|
|
46567
|
-
/* @__PURE__ */ jsx(
|
|
46568
|
-
onExport && /* @__PURE__ */ jsx(
|
|
46569
|
-
/* @__PURE__ */ jsx(
|
|
46565
|
+
onRefresh && /* @__PURE__ */ jsx(MoonUIButtonPro2, { variant: "ghost", size: "sm", onClick: onRefresh, children: /* @__PURE__ */ jsx(RefreshCw, { className: "h-4 w-4" }) }),
|
|
46566
|
+
/* @__PURE__ */ jsx(MoonUIButtonPro2, { variant: "ghost", size: "sm", children: /* @__PURE__ */ jsx(Settings, { className: "h-4 w-4" }) }),
|
|
46567
|
+
onExport && /* @__PURE__ */ jsx(MoonUIButtonPro2, { variant: "ghost", size: "sm", onClick: () => handleExport("png"), children: /* @__PURE__ */ jsx(Download, { className: "h-4 w-4" }) }),
|
|
46568
|
+
/* @__PURE__ */ jsx(MoonUIButtonPro2, { variant: "ghost", size: "sm", onClick: () => setIsFullscreen(!isFullscreen), children: /* @__PURE__ */ jsx(Maximize2, { className: "h-4 w-4" }) })
|
|
46570
46569
|
] })
|
|
46571
46570
|
] }),
|
|
46572
|
-
/* @__PURE__ */ jsx(
|
|
46571
|
+
/* @__PURE__ */ jsx(MoonUICardContentPro, { children: responsive ? /* @__PURE__ */ jsx(ResponsiveContainer, { width: "100%", height, children: renderChart() }) : /* @__PURE__ */ jsx("div", { style: { width: "100%", height: `${height}px` }, children: renderChart() }) })
|
|
46573
46572
|
] });
|
|
46574
46573
|
}
|
|
46575
46574
|
var METRIC_COLORS = {
|
|
@@ -46643,7 +46642,7 @@ function Dashboard({
|
|
|
46643
46642
|
const renderMetricCard = (metric) => {
|
|
46644
46643
|
const colorClass = metric.color ? METRIC_COLORS[metric.color] : "text-foreground";
|
|
46645
46644
|
return /* @__PURE__ */ jsxs(
|
|
46646
|
-
|
|
46645
|
+
MoonUICardPro,
|
|
46647
46646
|
{
|
|
46648
46647
|
className: cn$1(
|
|
46649
46648
|
"cursor-pointer hover:shadow-md transition-shadow",
|
|
@@ -46651,11 +46650,11 @@ function Dashboard({
|
|
|
46651
46650
|
),
|
|
46652
46651
|
onClick: () => onMetricClick?.(metric),
|
|
46653
46652
|
children: [
|
|
46654
|
-
/* @__PURE__ */ jsxs(
|
|
46655
|
-
/* @__PURE__ */ jsx(
|
|
46653
|
+
/* @__PURE__ */ jsxs(MoonUICardHeaderPro, { className: "flex flex-row items-center justify-between space-y-0 pb-2", children: [
|
|
46654
|
+
/* @__PURE__ */ jsx(MoonUICardTitlePro, { className: "text-sm font-medium", children: metric.title }),
|
|
46656
46655
|
/* @__PURE__ */ jsx("div", { className: cn$1("h-4 w-4", colorClass), children: metric.icon })
|
|
46657
46656
|
] }),
|
|
46658
|
-
/* @__PURE__ */ jsxs(
|
|
46657
|
+
/* @__PURE__ */ jsxs(MoonUICardContentPro, { children: [
|
|
46659
46658
|
/* @__PURE__ */ jsx("div", { className: "text-2xl font-bold", children: formatValue(metric.value) }),
|
|
46660
46659
|
metric.change && /* @__PURE__ */ jsxs("div", { className: cn$1(
|
|
46661
46660
|
"flex items-center text-xs mt-1",
|
|
@@ -46677,14 +46676,14 @@ function Dashboard({
|
|
|
46677
46676
|
};
|
|
46678
46677
|
const renderWidget = (widget) => {
|
|
46679
46678
|
const sizeClass = WIDGET_SIZES[widget.size || "md"];
|
|
46680
|
-
return /* @__PURE__ */ jsxs(
|
|
46681
|
-
/* @__PURE__ */ jsx(
|
|
46679
|
+
return /* @__PURE__ */ jsxs(MoonUICardPro, { className: cn$1("h-fit", sizeClass), children: [
|
|
46680
|
+
/* @__PURE__ */ jsx(MoonUICardHeaderPro, { children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
46682
46681
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
46683
|
-
/* @__PURE__ */ jsx(
|
|
46684
|
-
widget.description && /* @__PURE__ */ jsx(
|
|
46682
|
+
/* @__PURE__ */ jsx(MoonUICardTitlePro, { className: "text-base", children: widget.title }),
|
|
46683
|
+
widget.description && /* @__PURE__ */ jsx(MoonUICardDescriptionPro, { className: "mt-1", children: widget.description })
|
|
46685
46684
|
] }),
|
|
46686
46685
|
/* @__PURE__ */ jsx(
|
|
46687
|
-
|
|
46686
|
+
MoonUIButtonPro2,
|
|
46688
46687
|
{
|
|
46689
46688
|
variant: "ghost",
|
|
46690
46689
|
size: "sm",
|
|
@@ -46693,7 +46692,7 @@ function Dashboard({
|
|
|
46693
46692
|
}
|
|
46694
46693
|
)
|
|
46695
46694
|
] }) }),
|
|
46696
|
-
/* @__PURE__ */ jsx(
|
|
46695
|
+
/* @__PURE__ */ jsx(MoonUICardContentPro, { children: widget.loading ? /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center h-32", children: /* @__PURE__ */ jsx("div", { className: "animate-spin rounded-full h-8 w-8 border-b-2 border-primary" }) }) : widget.error ? /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center h-32 text-destructive", children: /* @__PURE__ */ jsx("p", { className: "text-sm", children: widget.error }) }) : widget.content })
|
|
46697
46696
|
] }, widget.id);
|
|
46698
46697
|
};
|
|
46699
46698
|
const defaultMetrics = [
|
|
@@ -46744,7 +46743,7 @@ function Dashboard({
|
|
|
46744
46743
|
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: description })
|
|
46745
46744
|
] }),
|
|
46746
46745
|
refreshable && /* @__PURE__ */ jsxs(
|
|
46747
|
-
|
|
46746
|
+
MoonUIButtonPro2,
|
|
46748
46747
|
{
|
|
46749
46748
|
variant: "outline",
|
|
46750
46749
|
onClick: handleRefresh,
|
|
@@ -46759,15 +46758,15 @@ function Dashboard({
|
|
|
46759
46758
|
/* @__PURE__ */ jsx("div", { className: "grid gap-4 md:grid-cols-2 lg:grid-cols-4", children: displayMetrics.map(renderMetricCard) }),
|
|
46760
46759
|
widgets.length > 0 && /* @__PURE__ */ jsx("div", { className: "grid gap-4 md:grid-cols-2 lg:grid-cols-4", children: widgets.map(renderWidget) }),
|
|
46761
46760
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 pt-4 border-t", children: [
|
|
46762
|
-
/* @__PURE__ */ jsxs(
|
|
46761
|
+
/* @__PURE__ */ jsxs(MoonUIButtonPro2, { variant: "outline", size: "sm", children: [
|
|
46763
46762
|
/* @__PURE__ */ jsx(Download, { className: "h-4 w-4 mr-2" }),
|
|
46764
46763
|
"Export Data"
|
|
46765
46764
|
] }),
|
|
46766
|
-
/* @__PURE__ */ jsxs(
|
|
46765
|
+
/* @__PURE__ */ jsxs(MoonUIButtonPro2, { variant: "outline", size: "sm", children: [
|
|
46767
46766
|
/* @__PURE__ */ jsx(Calendar, { className: "h-4 w-4 mr-2" }),
|
|
46768
46767
|
"Schedule Report"
|
|
46769
46768
|
] }),
|
|
46770
|
-
/* @__PURE__ */ jsxs(
|
|
46769
|
+
/* @__PURE__ */ jsxs(MoonUIButtonPro2, { variant: "outline", size: "sm", children: [
|
|
46771
46770
|
/* @__PURE__ */ jsx(Star, { className: "h-4 w-4 mr-2" }),
|
|
46772
46771
|
"Save View"
|
|
46773
46772
|
] })
|
|
@@ -46850,7 +46849,7 @@ function DraggableList({
|
|
|
46850
46849
|
}
|
|
46851
46850
|
) });
|
|
46852
46851
|
}
|
|
46853
|
-
|
|
46852
|
+
cva(
|
|
46854
46853
|
"peer shrink-0 border focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:text-primary-foreground",
|
|
46855
46854
|
{
|
|
46856
46855
|
variants: {
|
|
@@ -46888,7 +46887,7 @@ var checkboxVariants = cva(
|
|
|
46888
46887
|
}
|
|
46889
46888
|
}
|
|
46890
46889
|
);
|
|
46891
|
-
var
|
|
46890
|
+
var MoonUICheckboxPro2 = React16.forwardRef(({
|
|
46892
46891
|
className,
|
|
46893
46892
|
variant,
|
|
46894
46893
|
size,
|
|
@@ -46924,8 +46923,8 @@ var Checkbox = React16.forwardRef(({
|
|
|
46924
46923
|
}
|
|
46925
46924
|
);
|
|
46926
46925
|
});
|
|
46927
|
-
|
|
46928
|
-
var
|
|
46926
|
+
MoonUICheckbox.displayName = CheckboxPrimitive.Root.displayName;
|
|
46927
|
+
var MoonUICheckboxGroup = React16.forwardRef(
|
|
46929
46928
|
({ className, orientation = "vertical", spacing = "1rem", children, ...props }, ref) => {
|
|
46930
46929
|
return /* @__PURE__ */ jsx(
|
|
46931
46930
|
"div",
|
|
@@ -46944,8 +46943,8 @@ var CheckboxGroup = React16.forwardRef(
|
|
|
46944
46943
|
);
|
|
46945
46944
|
}
|
|
46946
46945
|
);
|
|
46947
|
-
|
|
46948
|
-
var
|
|
46946
|
+
MoonUICheckboxGroup.displayName = "CheckboxGroup";
|
|
46947
|
+
var MoonUICheckboxLabel = React16.forwardRef(
|
|
46949
46948
|
({ className, htmlFor, children, position = "end", disabled = false, ...props }, ref) => {
|
|
46950
46949
|
return /* @__PURE__ */ jsx(
|
|
46951
46950
|
"label",
|
|
@@ -46964,8 +46963,8 @@ var CheckboxLabel = React16.forwardRef(
|
|
|
46964
46963
|
);
|
|
46965
46964
|
}
|
|
46966
46965
|
);
|
|
46967
|
-
|
|
46968
|
-
var
|
|
46966
|
+
MoonUICheckboxLabel.displayName = "CheckboxLabel";
|
|
46967
|
+
var MoonUICheckboxWithLabel = React16.forwardRef(({
|
|
46969
46968
|
id,
|
|
46970
46969
|
label,
|
|
46971
46970
|
labelPosition = "end",
|
|
@@ -46998,8 +46997,8 @@ var CheckboxWithLabel = React16.forwardRef(({
|
|
|
46998
46997
|
)
|
|
46999
46998
|
] });
|
|
47000
46999
|
});
|
|
47001
|
-
|
|
47002
|
-
var
|
|
47000
|
+
MoonUICheckboxWithLabel.displayName = "CheckboxWithLabel";
|
|
47001
|
+
var MoonUISwitchPro = React16.forwardRef(({ className, size = "md", variant = "primary", loading, leftIcon, rightIcon, description, ...props }, ref) => /* @__PURE__ */ jsxs("div", { className: "inline-flex items-center gap-2", children: [
|
|
47003
47002
|
leftIcon && /* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: leftIcon }),
|
|
47004
47003
|
/* @__PURE__ */ jsxs(
|
|
47005
47004
|
SwitchPrimitives.Root,
|
|
@@ -47045,7 +47044,7 @@ var Switch = React16.forwardRef(({ className, size = "md", variant = "primary",
|
|
|
47045
47044
|
rightIcon && /* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: rightIcon }),
|
|
47046
47045
|
description && /* @__PURE__ */ jsx("span", { className: "text-sm text-muted-foreground", children: description })
|
|
47047
47046
|
] }));
|
|
47048
|
-
|
|
47047
|
+
MoonUISwitch.displayName = SwitchPrimitives.Root.displayName;
|
|
47049
47048
|
var AdvancedFormsInternal = ({
|
|
47050
47049
|
fields,
|
|
47051
47050
|
onSubmit,
|
|
@@ -47124,7 +47123,7 @@ var AdvancedFormsInternal = ({
|
|
|
47124
47123
|
transition: { delay: index * 0.1 },
|
|
47125
47124
|
className: "space-y-2",
|
|
47126
47125
|
children: [
|
|
47127
|
-
/* @__PURE__ */ jsx("div", { className: "flex items-center justify-between", children: /* @__PURE__ */ jsxs(
|
|
47126
|
+
/* @__PURE__ */ jsx("div", { className: "flex items-center justify-between", children: /* @__PURE__ */ jsxs(MoonUILabelPro2, { htmlFor: field.name, className: "flex items-center gap-2", children: [
|
|
47128
47127
|
field.label,
|
|
47129
47128
|
field.required && /* @__PURE__ */ jsx("span", { className: "text-destructive", children: "*" }),
|
|
47130
47129
|
isTouched && !error && /* @__PURE__ */ jsx(CheckCircle, { className: "h-4 w-4 text-green-500" }),
|
|
@@ -47132,7 +47131,7 @@ var AdvancedFormsInternal = ({
|
|
|
47132
47131
|
] }) }),
|
|
47133
47132
|
/* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
47134
47133
|
field.type === "text" || field.type === "email" || field.type === "number" || field.type === "url" || field.type === "tel" && /* @__PURE__ */ jsx(
|
|
47135
|
-
|
|
47134
|
+
MoonUIInputPro,
|
|
47136
47135
|
{
|
|
47137
47136
|
id: field.name,
|
|
47138
47137
|
type: field.type,
|
|
@@ -47158,7 +47157,7 @@ var AdvancedFormsInternal = ({
|
|
|
47158
47157
|
),
|
|
47159
47158
|
field.type === "password" && /* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
47160
47159
|
/* @__PURE__ */ jsx(
|
|
47161
|
-
|
|
47160
|
+
MoonUIInputPro,
|
|
47162
47161
|
{
|
|
47163
47162
|
id: field.name,
|
|
47164
47163
|
type: showPasswords[field.name] ? "text" : "password",
|
|
@@ -47174,7 +47173,7 @@ var AdvancedFormsInternal = ({
|
|
|
47174
47173
|
}
|
|
47175
47174
|
),
|
|
47176
47175
|
/* @__PURE__ */ jsx(
|
|
47177
|
-
|
|
47176
|
+
MoonUIButtonPro2,
|
|
47178
47177
|
{
|
|
47179
47178
|
type: "button",
|
|
47180
47179
|
variant: "ghost",
|
|
@@ -47186,7 +47185,7 @@ var AdvancedFormsInternal = ({
|
|
|
47186
47185
|
)
|
|
47187
47186
|
] }),
|
|
47188
47187
|
field.type === "textarea" && /* @__PURE__ */ jsx(
|
|
47189
|
-
|
|
47188
|
+
MoonUITextareaPro,
|
|
47190
47189
|
{
|
|
47191
47190
|
id: field.name,
|
|
47192
47191
|
placeholder: field.placeholder,
|
|
@@ -47202,37 +47201,37 @@ var AdvancedFormsInternal = ({
|
|
|
47202
47201
|
}
|
|
47203
47202
|
),
|
|
47204
47203
|
field.type === "select" && /* @__PURE__ */ jsxs(
|
|
47205
|
-
|
|
47204
|
+
MoonUISelectPro,
|
|
47206
47205
|
{
|
|
47207
47206
|
onValueChange: (value) => setValue(field.name, value),
|
|
47208
47207
|
defaultValue: field.defaultValue,
|
|
47209
47208
|
children: [
|
|
47210
|
-
/* @__PURE__ */ jsx(
|
|
47211
|
-
/* @__PURE__ */ jsx(
|
|
47209
|
+
/* @__PURE__ */ jsx(MoonUISelectTriggerPro, { className: cn(error && "border-destructive"), children: /* @__PURE__ */ jsx(MoonUISelectValuePro, { placeholder: field.placeholder }) }),
|
|
47210
|
+
/* @__PURE__ */ jsx(MoonUISelectContentPro, { children: field.options?.map((option) => /* @__PURE__ */ jsx(MoonUISelectItemPro, { value: option.value, children: option.label }, option.value)) })
|
|
47212
47211
|
]
|
|
47213
47212
|
}
|
|
47214
47213
|
),
|
|
47215
47214
|
field.type === "checkbox" && /* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
|
|
47216
47215
|
/* @__PURE__ */ jsx(
|
|
47217
|
-
|
|
47216
|
+
MoonUICheckboxPro2,
|
|
47218
47217
|
{
|
|
47219
47218
|
id: field.name,
|
|
47220
47219
|
...register(field.name),
|
|
47221
47220
|
onCheckedChange: (checked) => setValue(field.name, checked)
|
|
47222
47221
|
}
|
|
47223
47222
|
),
|
|
47224
|
-
/* @__PURE__ */ jsx(
|
|
47223
|
+
/* @__PURE__ */ jsx(MoonUILabelPro2, { htmlFor: field.name, className: "text-sm", children: field.placeholder || "Check this option" })
|
|
47225
47224
|
] }),
|
|
47226
47225
|
field.type === "switch" && /* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
|
|
47227
47226
|
/* @__PURE__ */ jsx(
|
|
47228
|
-
|
|
47227
|
+
MoonUISwitchPro,
|
|
47229
47228
|
{
|
|
47230
47229
|
id: field.name,
|
|
47231
47230
|
...register(field.name),
|
|
47232
47231
|
onCheckedChange: (checked) => setValue(field.name, checked)
|
|
47233
47232
|
}
|
|
47234
47233
|
),
|
|
47235
|
-
/* @__PURE__ */ jsx(
|
|
47234
|
+
/* @__PURE__ */ jsx(MoonUILabelPro2, { htmlFor: field.name, className: "text-sm", children: field.placeholder || "Toggle this option" })
|
|
47236
47235
|
] }),
|
|
47237
47236
|
field.type === "file" && /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
47238
47237
|
/* @__PURE__ */ jsx("div", { className: "flex items-center justify-center w-full", children: /* @__PURE__ */ jsxs(
|
|
@@ -47264,7 +47263,7 @@ var AdvancedFormsInternal = ({
|
|
|
47264
47263
|
uploadedFiles[field.name] && uploadedFiles[field.name].length > 0 && /* @__PURE__ */ jsx("div", { className: "space-y-2", children: uploadedFiles[field.name].map((file, index2) => /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between p-2 bg-muted rounded-md", children: [
|
|
47265
47264
|
/* @__PURE__ */ jsx("span", { className: "text-sm truncate", children: file.name }),
|
|
47266
47265
|
/* @__PURE__ */ jsx(
|
|
47267
|
-
|
|
47266
|
+
MoonUIButtonPro2,
|
|
47268
47267
|
{
|
|
47269
47268
|
type: "button",
|
|
47270
47269
|
variant: "ghost",
|
|
@@ -47293,14 +47292,14 @@ var AdvancedFormsInternal = ({
|
|
|
47293
47292
|
);
|
|
47294
47293
|
};
|
|
47295
47294
|
const gridClassName = layout === "grid" ? `grid grid-cols-1 md:grid-cols-${columns} gap-6` : "space-y-6";
|
|
47296
|
-
return /* @__PURE__ */ jsxs(
|
|
47297
|
-
/* @__PURE__ */ jsxs(
|
|
47295
|
+
return /* @__PURE__ */ jsxs(MoonUICardPro, { className: cn("w-full max-w-4xl", className), children: [
|
|
47296
|
+
/* @__PURE__ */ jsxs(MoonUICardHeaderPro, { children: [
|
|
47298
47297
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
47299
47298
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
47300
|
-
/* @__PURE__ */ jsx(
|
|
47301
|
-
description && /* @__PURE__ */ jsx(
|
|
47299
|
+
/* @__PURE__ */ jsx(MoonUICardTitlePro, { children: title }),
|
|
47300
|
+
description && /* @__PURE__ */ jsx(MoonUICardDescriptionPro, { children: description })
|
|
47302
47301
|
] }),
|
|
47303
|
-
/* @__PURE__ */ jsx(
|
|
47302
|
+
/* @__PURE__ */ jsx(MoonUIBadgePro, { variant: "pro", className: "ml-2", children: "PRO" })
|
|
47304
47303
|
] }),
|
|
47305
47304
|
showProgress && /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
47306
47305
|
/* @__PURE__ */ jsxs("div", { className: "flex justify-between text-sm", children: [
|
|
@@ -47321,7 +47320,7 @@ var AdvancedFormsInternal = ({
|
|
|
47321
47320
|
) })
|
|
47322
47321
|
] })
|
|
47323
47322
|
] }),
|
|
47324
|
-
/* @__PURE__ */ jsx(
|
|
47323
|
+
/* @__PURE__ */ jsx(MoonUICardContentPro, { children: /* @__PURE__ */ jsxs("form", { onSubmit: handleSubmit(handleFormSubmit), className: "space-y-6", children: [
|
|
47325
47324
|
/* @__PURE__ */ jsx("div", { className: gridClassName, children: fields.map((field, index) => renderField(field, index)) }),
|
|
47326
47325
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between pt-6", children: [
|
|
47327
47326
|
/* @__PURE__ */ jsxs("div", { className: "text-sm text-muted-foreground", children: [
|
|
@@ -47331,7 +47330,7 @@ var AdvancedFormsInternal = ({
|
|
|
47331
47330
|
" fields completed"
|
|
47332
47331
|
] }),
|
|
47333
47332
|
/* @__PURE__ */ jsx(
|
|
47334
|
-
|
|
47333
|
+
MoonUIButtonPro2,
|
|
47335
47334
|
{
|
|
47336
47335
|
type: "submit",
|
|
47337
47336
|
disabled: isSubmitting || !isValid,
|
|
@@ -47353,12 +47352,12 @@ var AdvancedFormsInternal = ({
|
|
|
47353
47352
|
var AdvancedForms = ({ className, ...props }) => {
|
|
47354
47353
|
const { hasProAccess, isLoading } = useSubscription();
|
|
47355
47354
|
if (!isLoading && !hasProAccess) {
|
|
47356
|
-
return /* @__PURE__ */ jsx(
|
|
47355
|
+
return /* @__PURE__ */ jsx(MoonUICardPro, { className: cn("w-fit", className), children: /* @__PURE__ */ jsx(MoonUICardContentPro, { className: "py-6 text-center", children: /* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
|
|
47357
47356
|
/* @__PURE__ */ jsx("div", { className: "rounded-full bg-purple-100 dark:bg-purple-900/30 p-3 w-fit mx-auto", children: /* @__PURE__ */ jsx(Lock, { className: "h-6 w-6 text-purple-600 dark:text-purple-400" }) }),
|
|
47358
47357
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
47359
47358
|
/* @__PURE__ */ jsx("h3", { className: "font-semibold text-sm mb-2", children: "Pro Feature" }),
|
|
47360
47359
|
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-xs mb-4", children: "Advanced Forms is available exclusively to MoonUI Pro subscribers." }),
|
|
47361
|
-
/* @__PURE__ */ jsx("a", { href: "/pricing", children: /* @__PURE__ */ jsxs(
|
|
47360
|
+
/* @__PURE__ */ jsx("a", { href: "/pricing", children: /* @__PURE__ */ jsxs(MoonUIButtonPro2, { size: "sm", children: [
|
|
47362
47361
|
/* @__PURE__ */ jsx(Sparkles, { className: "mr-2 h-4 w-4" }),
|
|
47363
47362
|
"Upgrade to Pro"
|
|
47364
47363
|
] }) })
|
|
@@ -47547,9 +47546,9 @@ var ColorPickerInternal = ({
|
|
|
47547
47546
|
setInputValue(value);
|
|
47548
47547
|
onChange?.(value);
|
|
47549
47548
|
};
|
|
47550
|
-
return /* @__PURE__ */ jsxs(
|
|
47551
|
-
/* @__PURE__ */ jsx(
|
|
47552
|
-
|
|
47549
|
+
return /* @__PURE__ */ jsxs(MoonUIPopoverPro, { children: [
|
|
47550
|
+
/* @__PURE__ */ jsx(MoonUIPopoverTriggerPro, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
47551
|
+
MoonUIButtonPro2,
|
|
47553
47552
|
{
|
|
47554
47553
|
variant: "outline",
|
|
47555
47554
|
className: cn(
|
|
@@ -47568,9 +47567,9 @@ var ColorPickerInternal = ({
|
|
|
47568
47567
|
)
|
|
47569
47568
|
}
|
|
47570
47569
|
) }),
|
|
47571
|
-
/* @__PURE__ */ jsx(
|
|
47570
|
+
/* @__PURE__ */ jsx(MoonUIPopoverContentPro, { className: "w-80 p-4", side: "bottom", align: "start", children: /* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
|
|
47572
47571
|
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
47573
|
-
/* @__PURE__ */ jsx(
|
|
47572
|
+
/* @__PURE__ */ jsx(MoonUILabelPro2, { children: "Color" }),
|
|
47574
47573
|
/* @__PURE__ */ jsx(
|
|
47575
47574
|
"div",
|
|
47576
47575
|
{
|
|
@@ -47599,7 +47598,7 @@ var ColorPickerInternal = ({
|
|
|
47599
47598
|
)
|
|
47600
47599
|
] }),
|
|
47601
47600
|
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
47602
|
-
/* @__PURE__ */ jsx(
|
|
47601
|
+
/* @__PURE__ */ jsx(MoonUILabelPro2, { children: "Hue" }),
|
|
47603
47602
|
/* @__PURE__ */ jsx(
|
|
47604
47603
|
"div",
|
|
47605
47604
|
{
|
|
@@ -47624,7 +47623,7 @@ var ColorPickerInternal = ({
|
|
|
47624
47623
|
)
|
|
47625
47624
|
] }),
|
|
47626
47625
|
showAlpha && /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
47627
|
-
/* @__PURE__ */ jsx(
|
|
47626
|
+
/* @__PURE__ */ jsx(MoonUILabelPro2, { children: "Opacity" }),
|
|
47628
47627
|
/* @__PURE__ */ jsx(
|
|
47629
47628
|
"div",
|
|
47630
47629
|
{
|
|
@@ -47651,9 +47650,9 @@ var ColorPickerInternal = ({
|
|
|
47651
47650
|
] }),
|
|
47652
47651
|
showInput && /* @__PURE__ */ jsxs("div", { className: "flex gap-2", children: [
|
|
47653
47652
|
/* @__PURE__ */ jsxs("div", { className: "flex-1", children: [
|
|
47654
|
-
/* @__PURE__ */ jsx(
|
|
47653
|
+
/* @__PURE__ */ jsx(MoonUILabelPro2, { htmlFor: "color-input", children: "Hex" }),
|
|
47655
47654
|
/* @__PURE__ */ jsx(
|
|
47656
|
-
|
|
47655
|
+
MoonUIInputPro,
|
|
47657
47656
|
{
|
|
47658
47657
|
id: "color-input",
|
|
47659
47658
|
value: inputValue,
|
|
@@ -47664,9 +47663,9 @@ var ColorPickerInternal = ({
|
|
|
47664
47663
|
)
|
|
47665
47664
|
] }),
|
|
47666
47665
|
showCopy && /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
47667
|
-
/* @__PURE__ */ jsx(
|
|
47666
|
+
/* @__PURE__ */ jsx(MoonUILabelPro2, { children: "\xA0" }),
|
|
47668
47667
|
/* @__PURE__ */ jsx(
|
|
47669
|
-
|
|
47668
|
+
MoonUIButtonPro2,
|
|
47670
47669
|
{
|
|
47671
47670
|
variant: "outline",
|
|
47672
47671
|
size: "sm",
|
|
@@ -47677,9 +47676,9 @@ var ColorPickerInternal = ({
|
|
|
47677
47676
|
)
|
|
47678
47677
|
] }),
|
|
47679
47678
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
47680
|
-
/* @__PURE__ */ jsx(
|
|
47679
|
+
/* @__PURE__ */ jsx(MoonUILabelPro2, { children: "\xA0" }),
|
|
47681
47680
|
/* @__PURE__ */ jsx(
|
|
47682
|
-
|
|
47681
|
+
MoonUIButtonPro2,
|
|
47683
47682
|
{
|
|
47684
47683
|
variant: "outline",
|
|
47685
47684
|
size: "sm",
|
|
@@ -47691,7 +47690,7 @@ var ColorPickerInternal = ({
|
|
|
47691
47690
|
] })
|
|
47692
47691
|
] }),
|
|
47693
47692
|
showPresets && /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
47694
|
-
/* @__PURE__ */ jsx(
|
|
47693
|
+
/* @__PURE__ */ jsx(MoonUILabelPro2, { children: "Presets" }),
|
|
47695
47694
|
/* @__PURE__ */ jsx("div", { className: "grid grid-cols-8 gap-2", children: presetColors.map((color, index) => /* @__PURE__ */ jsx(
|
|
47696
47695
|
motion.button,
|
|
47697
47696
|
{
|
|
@@ -47710,15 +47709,15 @@ var ColorPickerInternal = ({
|
|
|
47710
47709
|
] }) })
|
|
47711
47710
|
] });
|
|
47712
47711
|
};
|
|
47713
|
-
var
|
|
47712
|
+
var ColorPicker = ({ className, ...props }) => {
|
|
47714
47713
|
const { hasProAccess, isLoading } = useSubscription();
|
|
47715
47714
|
if (!isLoading && !hasProAccess) {
|
|
47716
|
-
return /* @__PURE__ */ jsx(
|
|
47715
|
+
return /* @__PURE__ */ jsx(MoonUICardPro, { className: cn("w-fit", className), children: /* @__PURE__ */ jsx(MoonUICardContentPro, { className: "py-6 text-center", children: /* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
|
|
47717
47716
|
/* @__PURE__ */ jsx("div", { className: "rounded-full bg-purple-100 dark:bg-purple-900/30 p-3 w-fit mx-auto", children: /* @__PURE__ */ jsx(Lock, { className: "h-6 w-6 text-purple-600 dark:text-purple-400" }) }),
|
|
47718
47717
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
47719
47718
|
/* @__PURE__ */ jsx("h3", { className: "font-semibold text-sm mb-2", children: "Pro Feature" }),
|
|
47720
47719
|
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-xs mb-4", children: "Color Picker is available exclusively to MoonUI Pro subscribers." }),
|
|
47721
|
-
/* @__PURE__ */ jsx("a", { href: "/pricing", children: /* @__PURE__ */ jsxs(
|
|
47720
|
+
/* @__PURE__ */ jsx("a", { href: "/pricing", children: /* @__PURE__ */ jsxs(MoonUIButtonPro2, { size: "sm", children: [
|
|
47722
47721
|
/* @__PURE__ */ jsx(Sparkles, { className: "mr-2 h-4 w-4" }),
|
|
47723
47722
|
"Upgrade to Pro"
|
|
47724
47723
|
] }) })
|
|
@@ -47727,7 +47726,7 @@ var ColorPicker2 = ({ className, ...props }) => {
|
|
|
47727
47726
|
}
|
|
47728
47727
|
return /* @__PURE__ */ jsx(ColorPickerInternal, { className, ...props });
|
|
47729
47728
|
};
|
|
47730
|
-
function
|
|
47729
|
+
function MoonUISkeleton({
|
|
47731
47730
|
className,
|
|
47732
47731
|
...props
|
|
47733
47732
|
}) {
|
|
@@ -47842,39 +47841,39 @@ var GitHubStarsInternal = ({
|
|
|
47842
47841
|
return colors[language || ""] || "#6b7280";
|
|
47843
47842
|
};
|
|
47844
47843
|
if (loading) {
|
|
47845
|
-
return /* @__PURE__ */ jsx(
|
|
47844
|
+
return /* @__PURE__ */ jsx(MoonUICardPro, { className: cn("w-full", className), children: /* @__PURE__ */ jsx(MoonUICardContentPro, { className: "p-6", children: /* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
|
|
47846
47845
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
47847
|
-
/* @__PURE__ */ jsx(
|
|
47848
|
-
/* @__PURE__ */ jsx(
|
|
47846
|
+
/* @__PURE__ */ jsx(MoonUISkeleton, { className: "h-6 w-48" }),
|
|
47847
|
+
/* @__PURE__ */ jsx(MoonUISkeleton, { className: "h-8 w-20" })
|
|
47849
47848
|
] }),
|
|
47850
47849
|
/* @__PURE__ */ jsx("div", { className: cn(
|
|
47851
47850
|
layout === "grid" ? "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4" : "space-y-4"
|
|
47852
|
-
), children: Array.from({ length: maxItems || 6 }).map((_, index) => /* @__PURE__ */ jsx(
|
|
47853
|
-
/* @__PURE__ */ jsx(
|
|
47854
|
-
/* @__PURE__ */ jsx(
|
|
47855
|
-
/* @__PURE__ */ jsx(
|
|
47851
|
+
), children: Array.from({ length: maxItems || 6 }).map((_, index) => /* @__PURE__ */ jsx(MoonUICardPro, { children: /* @__PURE__ */ jsx(MoonUICardContentPro, { className: "p-4", children: /* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
|
|
47852
|
+
/* @__PURE__ */ jsx(MoonUISkeleton, { className: "h-5 w-3/4" }),
|
|
47853
|
+
/* @__PURE__ */ jsx(MoonUISkeleton, { className: "h-4 w-full" }),
|
|
47854
|
+
/* @__PURE__ */ jsx(MoonUISkeleton, { className: "h-4 w-2/3" }),
|
|
47856
47855
|
/* @__PURE__ */ jsxs("div", { className: "flex gap-2", children: [
|
|
47857
|
-
/* @__PURE__ */ jsx(
|
|
47858
|
-
/* @__PURE__ */ jsx(
|
|
47859
|
-
/* @__PURE__ */ jsx(
|
|
47856
|
+
/* @__PURE__ */ jsx(MoonUISkeleton, { className: "h-6 w-16" }),
|
|
47857
|
+
/* @__PURE__ */ jsx(MoonUISkeleton, { className: "h-6 w-16" }),
|
|
47858
|
+
/* @__PURE__ */ jsx(MoonUISkeleton, { className: "h-6 w-16" })
|
|
47860
47859
|
] })
|
|
47861
47860
|
] }) }) }, index)) })
|
|
47862
47861
|
] }) }) });
|
|
47863
47862
|
}
|
|
47864
47863
|
if (error) {
|
|
47865
|
-
return /* @__PURE__ */ jsx(
|
|
47864
|
+
return /* @__PURE__ */ jsx(MoonUICardPro, { className: cn("w-full", className), children: /* @__PURE__ */ jsx(MoonUICardContentPro, { className: "p-6 text-center", children: /* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
|
|
47866
47865
|
/* @__PURE__ */ jsxs("div", { className: "text-destructive", children: [
|
|
47867
47866
|
/* @__PURE__ */ jsx(Github, { className: "h-12 w-12 mx-auto mb-2" }),
|
|
47868
47867
|
/* @__PURE__ */ jsx("h3", { className: "font-semibold", children: "Failed to load repositories" }),
|
|
47869
47868
|
/* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: error })
|
|
47870
47869
|
] }),
|
|
47871
|
-
/* @__PURE__ */ jsxs(
|
|
47870
|
+
/* @__PURE__ */ jsxs(MoonUIButtonPro2, { onClick: fetchRepositories, variant: "outline", children: [
|
|
47872
47871
|
/* @__PURE__ */ jsx(RefreshCw, { className: "h-4 w-4 mr-2" }),
|
|
47873
47872
|
"Try Again"
|
|
47874
47873
|
] })
|
|
47875
47874
|
] }) }) });
|
|
47876
47875
|
}
|
|
47877
|
-
return /* @__PURE__ */ jsx(
|
|
47876
|
+
return /* @__PURE__ */ jsx(MoonUICardPro, { className: cn("w-full", className), children: /* @__PURE__ */ jsx(MoonUICardContentPro, { className: "p-6", children: /* @__PURE__ */ jsxs("div", { className: "space-y-6", children: [
|
|
47878
47877
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
47879
47878
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
47880
47879
|
/* @__PURE__ */ jsx(Github, { className: "h-6 w-6" }),
|
|
@@ -47890,12 +47889,12 @@ var GitHubStarsInternal = ({
|
|
|
47890
47889
|
] })
|
|
47891
47890
|
] }),
|
|
47892
47891
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
47893
|
-
/* @__PURE__ */ jsxs(
|
|
47892
|
+
/* @__PURE__ */ jsxs(MoonUIBadgePro, { variant: "outline", children: [
|
|
47894
47893
|
repos.length,
|
|
47895
47894
|
" repos"
|
|
47896
47895
|
] }),
|
|
47897
|
-
autoRefresh && /* @__PURE__ */ jsx(
|
|
47898
|
-
/* @__PURE__ */ jsx(
|
|
47896
|
+
autoRefresh && /* @__PURE__ */ jsx(MoonUIBadgePro, { variant: "secondary", children: "Auto-refresh" }),
|
|
47897
|
+
/* @__PURE__ */ jsx(MoonUIButtonPro2, { onClick: fetchRepositories, variant: "outline", size: "sm", children: /* @__PURE__ */ jsx(RefreshCw, { className: "h-4 w-4" }) })
|
|
47899
47898
|
] })
|
|
47900
47899
|
] }),
|
|
47901
47900
|
/* @__PURE__ */ jsx("div", { className: cn(
|
|
@@ -47908,18 +47907,18 @@ var GitHubStarsInternal = ({
|
|
|
47908
47907
|
exit: { opacity: 0, y: -20 },
|
|
47909
47908
|
transition: { delay: index * 0.1 },
|
|
47910
47909
|
children: /* @__PURE__ */ jsx(
|
|
47911
|
-
|
|
47910
|
+
MoonUICardPro,
|
|
47912
47911
|
{
|
|
47913
47912
|
className: "h-full hover:shadow-md transition-shadow cursor-pointer group",
|
|
47914
47913
|
onClick: () => onRepositoryClick?.(repo),
|
|
47915
|
-
children: /* @__PURE__ */ jsx(
|
|
47914
|
+
children: /* @__PURE__ */ jsx(MoonUICardContentPro, { className: "p-4", children: /* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
|
|
47916
47915
|
/* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between", children: [
|
|
47917
47916
|
/* @__PURE__ */ jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
47918
47917
|
/* @__PURE__ */ jsx("h4", { className: "font-semibold text-sm group-hover:text-primary transition-colors", children: repo.name }),
|
|
47919
47918
|
showOwner && /* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground truncate", children: repo.owner.login })
|
|
47920
47919
|
] }),
|
|
47921
47920
|
/* @__PURE__ */ jsx(
|
|
47922
|
-
|
|
47921
|
+
MoonUIButtonPro2,
|
|
47923
47922
|
{
|
|
47924
47923
|
variant: "ghost",
|
|
47925
47924
|
size: "sm",
|
|
@@ -47934,8 +47933,8 @@ var GitHubStarsInternal = ({
|
|
|
47934
47933
|
] }),
|
|
47935
47934
|
showDescription && repo.description && /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground line-clamp-2", children: repo.description }),
|
|
47936
47935
|
showTopics && repo.topics.length > 0 && /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-1", children: [
|
|
47937
|
-
repo.topics.slice(0, 3).map((topic) => /* @__PURE__ */ jsx(
|
|
47938
|
-
repo.topics.length > 3 && /* @__PURE__ */ jsxs(
|
|
47936
|
+
repo.topics.slice(0, 3).map((topic) => /* @__PURE__ */ jsx(MoonUIBadgePro, { variant: "secondary", className: "text-xs", children: topic }, topic)),
|
|
47937
|
+
repo.topics.length > 3 && /* @__PURE__ */ jsxs(MoonUIBadgePro, { variant: "outline", className: "text-xs", children: [
|
|
47939
47938
|
"+",
|
|
47940
47939
|
repo.topics.length - 3
|
|
47941
47940
|
] })
|
|
@@ -47979,12 +47978,12 @@ var GitHubStarsInternal = ({
|
|
|
47979
47978
|
var GitHubStars = ({ className, ...props }) => {
|
|
47980
47979
|
const { hasProAccess, isLoading } = useSubscription();
|
|
47981
47980
|
if (!isLoading && !hasProAccess) {
|
|
47982
|
-
return /* @__PURE__ */ jsx(
|
|
47981
|
+
return /* @__PURE__ */ jsx(MoonUICardPro, { className: cn("w-fit", className), children: /* @__PURE__ */ jsx(MoonUICardContentPro, { className: "py-6 text-center", children: /* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
|
|
47983
47982
|
/* @__PURE__ */ jsx("div", { className: "rounded-full bg-purple-100 dark:bg-purple-900/30 p-3 w-fit mx-auto", children: /* @__PURE__ */ jsx(Lock, { className: "h-6 w-6 text-purple-600 dark:text-purple-400" }) }),
|
|
47984
47983
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
47985
47984
|
/* @__PURE__ */ jsx("h3", { className: "font-semibold text-sm mb-2", children: "Pro Feature" }),
|
|
47986
47985
|
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-xs mb-4", children: "GitHub Stars is available exclusively to MoonUI Pro subscribers." }),
|
|
47987
|
-
/* @__PURE__ */ jsx("a", { href: "/pricing", children: /* @__PURE__ */ jsxs(
|
|
47986
|
+
/* @__PURE__ */ jsx("a", { href: "/pricing", children: /* @__PURE__ */ jsxs(MoonUIButtonPro2, { size: "sm", children: [
|
|
47988
47987
|
/* @__PURE__ */ jsx(Sparkles, { className: "mr-2 h-4 w-4" }),
|
|
47989
47988
|
"Upgrade to Pro"
|
|
47990
47989
|
] }) })
|
|
@@ -48137,16 +48136,16 @@ var HealthCheckInternal = ({
|
|
|
48137
48136
|
const overallStatus = getOverallStatus();
|
|
48138
48137
|
const healthyCount = results.filter((r2) => r2.status === "healthy").length;
|
|
48139
48138
|
const overallUptime = results.length > 0 ? results.reduce((acc, result) => acc + calculateUptime(result.id), 0) / results.length : 0;
|
|
48140
|
-
return /* @__PURE__ */ jsxs(
|
|
48141
|
-
/* @__PURE__ */ jsxs(
|
|
48139
|
+
return /* @__PURE__ */ jsxs(MoonUICardPro, { className: cn("w-full", className), children: [
|
|
48140
|
+
/* @__PURE__ */ jsxs(MoonUICardHeaderPro, { children: [
|
|
48142
48141
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
48143
48142
|
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-3", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
48144
48143
|
/* @__PURE__ */ jsx(Activity, { className: "h-6 w-6" }),
|
|
48145
48144
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
48146
|
-
/* @__PURE__ */ jsxs(
|
|
48145
|
+
/* @__PURE__ */ jsxs(MoonUICardTitlePro, { className: "flex items-center gap-2", children: [
|
|
48147
48146
|
"System Health",
|
|
48148
48147
|
/* @__PURE__ */ jsx(
|
|
48149
|
-
|
|
48148
|
+
MoonUIBadgePro,
|
|
48150
48149
|
{
|
|
48151
48150
|
variant: overallStatus === "healthy" ? "secondary" : "destructive",
|
|
48152
48151
|
className: cn(
|
|
@@ -48159,7 +48158,7 @@ var HealthCheckInternal = ({
|
|
|
48159
48158
|
}
|
|
48160
48159
|
)
|
|
48161
48160
|
] }),
|
|
48162
|
-
lastCheck && /* @__PURE__ */ jsxs(
|
|
48161
|
+
lastCheck && /* @__PURE__ */ jsxs(MoonUICardDescriptionPro, { children: [
|
|
48163
48162
|
"Last checked: ",
|
|
48164
48163
|
lastCheck.toLocaleTimeString()
|
|
48165
48164
|
] })
|
|
@@ -48174,7 +48173,7 @@ var HealthCheckInternal = ({
|
|
|
48174
48173
|
/* @__PURE__ */ jsx("div", { className: "text-xs text-muted-foreground", children: "Uptime" })
|
|
48175
48174
|
] }),
|
|
48176
48175
|
/* @__PURE__ */ jsx(
|
|
48177
|
-
|
|
48176
|
+
MoonUIButtonPro2,
|
|
48178
48177
|
{
|
|
48179
48178
|
onClick: checkAllEndpoints,
|
|
48180
48179
|
disabled: isChecking,
|
|
@@ -48206,7 +48205,7 @@ var HealthCheckInternal = ({
|
|
|
48206
48205
|
] })
|
|
48207
48206
|
] })
|
|
48208
48207
|
] }),
|
|
48209
|
-
/* @__PURE__ */ jsx(
|
|
48208
|
+
/* @__PURE__ */ jsx(MoonUICardContentPro, { children: /* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
|
|
48210
48209
|
/* @__PURE__ */ jsx(AnimatePresence, { children: results.map((result, index) => /* @__PURE__ */ jsx(
|
|
48211
48210
|
motion.div,
|
|
48212
48211
|
{
|
|
@@ -48214,7 +48213,7 @@ var HealthCheckInternal = ({
|
|
|
48214
48213
|
animate: { opacity: 1, x: 0 },
|
|
48215
48214
|
exit: { opacity: 0, x: 20 },
|
|
48216
48215
|
transition: { delay: index * 0.05 },
|
|
48217
|
-
children: /* @__PURE__ */ jsx(
|
|
48216
|
+
children: /* @__PURE__ */ jsx(MoonUICardPro, { children: /* @__PURE__ */ jsxs(MoonUICardContentPro, { className: "p-4", children: [
|
|
48218
48217
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
48219
48218
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
48220
48219
|
getStatusIcon(result.status),
|
|
@@ -48272,12 +48271,12 @@ var HealthCheckInternal = ({
|
|
|
48272
48271
|
var HealthCheck = ({ className, ...props }) => {
|
|
48273
48272
|
const { hasProAccess, isLoading } = useSubscription();
|
|
48274
48273
|
if (!isLoading && !hasProAccess) {
|
|
48275
|
-
return /* @__PURE__ */ jsx(
|
|
48274
|
+
return /* @__PURE__ */ jsx(MoonUICardPro, { className: cn("w-fit", className), children: /* @__PURE__ */ jsx(MoonUICardContentPro, { className: "py-6 text-center", children: /* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
|
|
48276
48275
|
/* @__PURE__ */ jsx("div", { className: "rounded-full bg-purple-100 dark:bg-purple-900/30 p-3 w-fit mx-auto", children: /* @__PURE__ */ jsx(Lock, { className: "h-6 w-6 text-purple-600 dark:text-purple-400" }) }),
|
|
48277
48276
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
48278
48277
|
/* @__PURE__ */ jsx("h3", { className: "font-semibold text-sm mb-2", children: "Pro Feature" }),
|
|
48279
48278
|
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-xs mb-4", children: "Health Check is available exclusively to MoonUI Pro subscribers." }),
|
|
48280
|
-
/* @__PURE__ */ jsx("a", { href: "/pricing", children: /* @__PURE__ */ jsxs(
|
|
48279
|
+
/* @__PURE__ */ jsx("a", { href: "/pricing", children: /* @__PURE__ */ jsxs(MoonUIButtonPro2, { size: "sm", children: [
|
|
48281
48280
|
/* @__PURE__ */ jsx(Sparkles, { className: "mr-2 h-4 w-4" }),
|
|
48282
48281
|
"Upgrade to Pro"
|
|
48283
48282
|
] }) })
|
|
@@ -48366,7 +48365,7 @@ var LazyComponentInternal = ({
|
|
|
48366
48365
|
}
|
|
48367
48366
|
);
|
|
48368
48367
|
}
|
|
48369
|
-
return /* @__PURE__ */ jsx(
|
|
48368
|
+
return /* @__PURE__ */ jsx(MoonUISkeleton, { className: "w-full h-32" });
|
|
48370
48369
|
};
|
|
48371
48370
|
return /* @__PURE__ */ jsx("div", { ref: containerRef, className: cn("w-full", className), children: isLoaded ? /* @__PURE__ */ jsx(
|
|
48372
48371
|
motion.div,
|
|
@@ -48439,7 +48438,7 @@ var LazyImage = ({
|
|
|
48439
48438
|
transition: { duration: 0.3 },
|
|
48440
48439
|
className: "w-full h-full object-cover"
|
|
48441
48440
|
}
|
|
48442
|
-
) : showPlaceholder ? /* @__PURE__ */ jsx(
|
|
48441
|
+
) : showPlaceholder ? /* @__PURE__ */ jsx(MoonUISkeleton, { className: "w-full h-full min-h-32" }) : null,
|
|
48443
48442
|
imageError && !fallbackSrc && /* @__PURE__ */ jsx("div", { className: "absolute inset-0 flex items-center justify-center bg-muted", children: /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: "Failed to load image" }) })
|
|
48444
48443
|
] });
|
|
48445
48444
|
};
|
|
@@ -48493,12 +48492,12 @@ function LazyList({
|
|
|
48493
48492
|
var LazyComponent = ({ className, ...props }) => {
|
|
48494
48493
|
const { hasProAccess, isLoading } = useSubscription();
|
|
48495
48494
|
if (!isLoading && !hasProAccess) {
|
|
48496
|
-
return /* @__PURE__ */ jsx(
|
|
48495
|
+
return /* @__PURE__ */ jsx(MoonUICardPro, { className: cn("w-fit", className), children: /* @__PURE__ */ jsx(MoonUICardContentPro, { className: "py-6 text-center", children: /* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
|
|
48497
48496
|
/* @__PURE__ */ jsx("div", { className: "rounded-full bg-purple-100 dark:bg-purple-900/30 p-3 w-fit mx-auto", children: /* @__PURE__ */ jsx(Lock, { className: "h-6 w-6 text-purple-600 dark:text-purple-400" }) }),
|
|
48498
48497
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
48499
48498
|
/* @__PURE__ */ jsx("h3", { className: "font-semibold text-sm mb-2", children: "Pro Feature" }),
|
|
48500
48499
|
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-xs mb-4", children: "Lazy Component is available exclusively to MoonUI Pro subscribers." }),
|
|
48501
|
-
/* @__PURE__ */ jsx("a", { href: "/pricing", children: /* @__PURE__ */ jsxs(
|
|
48500
|
+
/* @__PURE__ */ jsx("a", { href: "/pricing", children: /* @__PURE__ */ jsxs(MoonUIButtonPro2, { size: "sm", children: [
|
|
48502
48501
|
/* @__PURE__ */ jsx(Sparkles, { className: "mr-2 h-4 w-4" }),
|
|
48503
48502
|
"Upgrade to Pro"
|
|
48504
48503
|
] }) })
|
|
@@ -48615,7 +48614,7 @@ var OptimizedImageInternal = ({
|
|
|
48615
48614
|
initial: { opacity: 0 },
|
|
48616
48615
|
animate: { opacity: 1 },
|
|
48617
48616
|
className: "absolute inset-0 flex items-center justify-center bg-muted",
|
|
48618
|
-
children: blur2 ? /* @__PURE__ */ jsx(
|
|
48617
|
+
children: blur2 ? /* @__PURE__ */ jsx(MoonUISkeleton, { className: "w-full h-full" }) : /* @__PURE__ */ jsxs("div", { className: "text-center", children: [
|
|
48619
48618
|
/* @__PURE__ */ jsx(Loader2, { className: "h-8 w-8 animate-spin text-muted-foreground mx-auto mb-2" }),
|
|
48620
48619
|
/* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: "Loading image..." })
|
|
48621
48620
|
] })
|
|
@@ -48665,7 +48664,7 @@ var OptimizedImageInternal = ({
|
|
|
48665
48664
|
children: [
|
|
48666
48665
|
/* @__PURE__ */ jsxs("div", { className: "absolute top-2 right-2 flex gap-2 opacity-0 group-hover:opacity-100 transition-opacity duration-200", children: [
|
|
48667
48666
|
showInfo && /* @__PURE__ */ jsx(
|
|
48668
|
-
|
|
48667
|
+
MoonUIButtonPro2,
|
|
48669
48668
|
{
|
|
48670
48669
|
size: "sm",
|
|
48671
48670
|
variant: "secondary",
|
|
@@ -48675,7 +48674,7 @@ var OptimizedImageInternal = ({
|
|
|
48675
48674
|
}
|
|
48676
48675
|
),
|
|
48677
48676
|
showDownload && /* @__PURE__ */ jsx(
|
|
48678
|
-
|
|
48677
|
+
MoonUIButtonPro2,
|
|
48679
48678
|
{
|
|
48680
48679
|
size: "sm",
|
|
48681
48680
|
variant: "secondary",
|
|
@@ -48685,7 +48684,7 @@ var OptimizedImageInternal = ({
|
|
|
48685
48684
|
}
|
|
48686
48685
|
),
|
|
48687
48686
|
showPreview && /* @__PURE__ */ jsx(
|
|
48688
|
-
|
|
48687
|
+
MoonUIButtonPro2,
|
|
48689
48688
|
{
|
|
48690
48689
|
size: "sm",
|
|
48691
48690
|
variant: "secondary",
|
|
@@ -48737,7 +48736,7 @@ var OptimizedImageInternal = ({
|
|
|
48737
48736
|
/* @__PURE__ */ jsxs("div", { className: "absolute top-4 right-4 flex gap-2 z-10", children: [
|
|
48738
48737
|
showZoom && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
48739
48738
|
/* @__PURE__ */ jsx(
|
|
48740
|
-
|
|
48739
|
+
MoonUIButtonPro2,
|
|
48741
48740
|
{
|
|
48742
48741
|
size: "sm",
|
|
48743
48742
|
variant: "secondary",
|
|
@@ -48746,12 +48745,12 @@ var OptimizedImageInternal = ({
|
|
|
48746
48745
|
children: /* @__PURE__ */ jsx(ZoomOut, { className: "h-4 w-4" })
|
|
48747
48746
|
}
|
|
48748
48747
|
),
|
|
48749
|
-
/* @__PURE__ */ jsxs(
|
|
48748
|
+
/* @__PURE__ */ jsxs(MoonUIBadgePro, { variant: "secondary", className: "px-2", children: [
|
|
48750
48749
|
Math.round(currentZoom * 100),
|
|
48751
48750
|
"%"
|
|
48752
48751
|
] }),
|
|
48753
48752
|
/* @__PURE__ */ jsx(
|
|
48754
|
-
|
|
48753
|
+
MoonUIButtonPro2,
|
|
48755
48754
|
{
|
|
48756
48755
|
size: "sm",
|
|
48757
48756
|
variant: "secondary",
|
|
@@ -48761,7 +48760,7 @@ var OptimizedImageInternal = ({
|
|
|
48761
48760
|
}
|
|
48762
48761
|
),
|
|
48763
48762
|
/* @__PURE__ */ jsx(
|
|
48764
|
-
|
|
48763
|
+
MoonUIButtonPro2,
|
|
48765
48764
|
{
|
|
48766
48765
|
size: "sm",
|
|
48767
48766
|
variant: "secondary",
|
|
@@ -48771,7 +48770,7 @@ var OptimizedImageInternal = ({
|
|
|
48771
48770
|
)
|
|
48772
48771
|
] }),
|
|
48773
48772
|
/* @__PURE__ */ jsx(
|
|
48774
|
-
|
|
48773
|
+
MoonUIButtonPro2,
|
|
48775
48774
|
{
|
|
48776
48775
|
size: "sm",
|
|
48777
48776
|
variant: "secondary",
|
|
@@ -48804,12 +48803,12 @@ var OptimizedImageInternal = ({
|
|
|
48804
48803
|
var OptimizedImage = ({ className, ...props }) => {
|
|
48805
48804
|
const { hasProAccess, isLoading } = useSubscription();
|
|
48806
48805
|
if (!isLoading && !hasProAccess) {
|
|
48807
|
-
return /* @__PURE__ */ jsx(
|
|
48806
|
+
return /* @__PURE__ */ jsx(MoonUICardPro, { className: cn("w-fit", className), children: /* @__PURE__ */ jsx(MoonUICardContentPro, { className: "py-6 text-center", children: /* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
|
|
48808
48807
|
/* @__PURE__ */ jsx("div", { className: "rounded-full bg-purple-100 dark:bg-purple-900/30 p-3 w-fit mx-auto", children: /* @__PURE__ */ jsx(Lock, { className: "h-6 w-6 text-purple-600 dark:text-purple-400" }) }),
|
|
48809
48808
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
48810
48809
|
/* @__PURE__ */ jsx("h3", { className: "font-semibold text-sm mb-2", children: "Pro Feature" }),
|
|
48811
48810
|
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-xs mb-4", children: "Optimized Image is available exclusively to MoonUI Pro subscribers." }),
|
|
48812
|
-
/* @__PURE__ */ jsx("a", { href: "/pricing", children: /* @__PURE__ */ jsxs(
|
|
48811
|
+
/* @__PURE__ */ jsx("a", { href: "/pricing", children: /* @__PURE__ */ jsxs(MoonUIButtonPro2, { size: "sm", children: [
|
|
48813
48812
|
/* @__PURE__ */ jsx(Sparkles, { className: "mr-2 h-4 w-4" }),
|
|
48814
48813
|
"Upgrade to Pro"
|
|
48815
48814
|
] }) })
|
|
@@ -48996,7 +48995,7 @@ Defaulting to \`null\`.`;
|
|
|
48996
48995
|
}
|
|
48997
48996
|
var Root11 = Progress;
|
|
48998
48997
|
var Indicator2 = ProgressIndicator;
|
|
48999
|
-
var
|
|
48998
|
+
var MoonUIProgressPro = React16.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
49000
48999
|
Root11,
|
|
49001
49000
|
{
|
|
49002
49001
|
ref,
|
|
@@ -49014,8 +49013,8 @@ var Progress2 = React16.forwardRef(({ className, value, ...props }, ref) => /* @
|
|
|
49014
49013
|
)
|
|
49015
49014
|
}
|
|
49016
49015
|
));
|
|
49017
|
-
|
|
49018
|
-
var
|
|
49016
|
+
MoonUIProgress.displayName = Root11.displayName;
|
|
49017
|
+
var MoonUITabsPro = React16.forwardRef(({ vertical = false, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
49019
49018
|
TabsPrimitive.Root,
|
|
49020
49019
|
{
|
|
49021
49020
|
ref,
|
|
@@ -49023,7 +49022,7 @@ var Tabs = React16.forwardRef(({ vertical = false, ...props }, ref) => /* @__PUR
|
|
|
49023
49022
|
...props
|
|
49024
49023
|
}
|
|
49025
49024
|
));
|
|
49026
|
-
|
|
49025
|
+
MoonUITabs.displayName = TabsPrimitive.Root.displayName;
|
|
49027
49026
|
var tabsListVariants = cva(
|
|
49028
49027
|
"flex items-center justify-start transition-all duration-200",
|
|
49029
49028
|
{
|
|
@@ -49050,7 +49049,7 @@ var tabsListVariants = cva(
|
|
|
49050
49049
|
}
|
|
49051
49050
|
}
|
|
49052
49051
|
);
|
|
49053
|
-
var
|
|
49052
|
+
var MoonUITabsListPro = React16.forwardRef(({ className, variant, orientation, fullWidth, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
49054
49053
|
TabsPrimitive.List,
|
|
49055
49054
|
{
|
|
49056
49055
|
ref,
|
|
@@ -49058,7 +49057,7 @@ var TabsList = React16.forwardRef(({ className, variant, orientation, fullWidth,
|
|
|
49058
49057
|
...props
|
|
49059
49058
|
}
|
|
49060
49059
|
));
|
|
49061
|
-
|
|
49060
|
+
MoonUITabsList.displayName = TabsPrimitive.List.displayName;
|
|
49062
49061
|
var tabsTriggerVariants = cva(
|
|
49063
49062
|
"inline-flex items-center justify-center whitespace-nowrap font-medium ring-offset-background transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
|
|
49064
49063
|
{
|
|
@@ -49091,7 +49090,7 @@ var tabsTriggerVariants = cva(
|
|
|
49091
49090
|
}
|
|
49092
49091
|
}
|
|
49093
49092
|
);
|
|
49094
|
-
var
|
|
49093
|
+
var MoonUITabsTriggerPro = React16.forwardRef(({
|
|
49095
49094
|
className,
|
|
49096
49095
|
variant,
|
|
49097
49096
|
size,
|
|
@@ -49121,8 +49120,8 @@ var TabsTrigger = React16.forwardRef(({
|
|
|
49121
49120
|
]
|
|
49122
49121
|
}
|
|
49123
49122
|
));
|
|
49124
|
-
|
|
49125
|
-
var
|
|
49123
|
+
MoonUITabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
49124
|
+
var MoonUITabsContentPro = React16.forwardRef(({ className, animated = false, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
49126
49125
|
TabsPrimitive.Content,
|
|
49127
49126
|
{
|
|
49128
49127
|
ref,
|
|
@@ -49134,7 +49133,7 @@ var TabsContent = React16.forwardRef(({ className, animated = false, ...props },
|
|
|
49134
49133
|
...props
|
|
49135
49134
|
}
|
|
49136
49135
|
));
|
|
49137
|
-
|
|
49136
|
+
MoonUITabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
49138
49137
|
var PerformanceDebuggerInternal = ({
|
|
49139
49138
|
autoCapture = true,
|
|
49140
49139
|
captureInterval = 5e3,
|
|
@@ -49377,7 +49376,7 @@ var PerformanceDebuggerInternal = ({
|
|
|
49377
49376
|
};
|
|
49378
49377
|
if (!isVisible) {
|
|
49379
49378
|
return /* @__PURE__ */ jsxs(
|
|
49380
|
-
|
|
49379
|
+
MoonUIButtonPro2,
|
|
49381
49380
|
{
|
|
49382
49381
|
variant: "outline",
|
|
49383
49382
|
size: "sm",
|
|
@@ -49390,22 +49389,22 @@ var PerformanceDebuggerInternal = ({
|
|
|
49390
49389
|
}
|
|
49391
49390
|
);
|
|
49392
49391
|
}
|
|
49393
|
-
return /* @__PURE__ */ jsxs(
|
|
49394
|
-
/* @__PURE__ */ jsx(
|
|
49392
|
+
return /* @__PURE__ */ jsxs(MoonUICardPro, { className: cn("w-full max-w-4xl", className), children: [
|
|
49393
|
+
/* @__PURE__ */ jsx(MoonUICardHeaderPro, { children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
49395
49394
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
49396
|
-
/* @__PURE__ */ jsxs(
|
|
49395
|
+
/* @__PURE__ */ jsxs(MoonUICardTitlePro, { className: "flex items-center gap-2", children: [
|
|
49397
49396
|
/* @__PURE__ */ jsx(Zap, { className: "h-5 w-5" }),
|
|
49398
49397
|
"Performance Debugger"
|
|
49399
49398
|
] }),
|
|
49400
|
-
/* @__PURE__ */ jsx(
|
|
49399
|
+
/* @__PURE__ */ jsx(MoonUICardDescriptionPro, { children: "Real-time performance monitoring and web vitals tracking" })
|
|
49401
49400
|
] }),
|
|
49402
49401
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
49403
|
-
/* @__PURE__ */ jsxs(
|
|
49402
|
+
/* @__PURE__ */ jsxs(MoonUIBadgePro, { variant: isCapturing ? "secondary" : "secondary", className: "gap-1", children: [
|
|
49404
49403
|
isCapturing ? /* @__PURE__ */ jsx(Activity, { className: "h-3 w-3 animate-pulse" }) : /* @__PURE__ */ jsx(Clock, { className: "h-3 w-3" }),
|
|
49405
49404
|
isCapturing ? "Live" : "Paused"
|
|
49406
49405
|
] }),
|
|
49407
49406
|
/* @__PURE__ */ jsx(
|
|
49408
|
-
|
|
49407
|
+
MoonUIButtonPro2,
|
|
49409
49408
|
{
|
|
49410
49409
|
variant: "outline",
|
|
49411
49410
|
size: "sm",
|
|
@@ -49414,7 +49413,7 @@ var PerformanceDebuggerInternal = ({
|
|
|
49414
49413
|
}
|
|
49415
49414
|
),
|
|
49416
49415
|
/* @__PURE__ */ jsx(
|
|
49417
|
-
|
|
49416
|
+
MoonUIButtonPro2,
|
|
49418
49417
|
{
|
|
49419
49418
|
variant: "outline",
|
|
49420
49419
|
size: "sm",
|
|
@@ -49423,7 +49422,7 @@ var PerformanceDebuggerInternal = ({
|
|
|
49423
49422
|
}
|
|
49424
49423
|
),
|
|
49425
49424
|
/* @__PURE__ */ jsx(
|
|
49426
|
-
|
|
49425
|
+
MoonUIButtonPro2,
|
|
49427
49426
|
{
|
|
49428
49427
|
variant: "outline",
|
|
49429
49428
|
size: "sm",
|
|
@@ -49432,7 +49431,7 @@ var PerformanceDebuggerInternal = ({
|
|
|
49432
49431
|
}
|
|
49433
49432
|
),
|
|
49434
49433
|
/* @__PURE__ */ jsx(
|
|
49435
|
-
|
|
49434
|
+
MoonUIButtonPro2,
|
|
49436
49435
|
{
|
|
49437
49436
|
variant: "ghost",
|
|
49438
49437
|
size: "sm",
|
|
@@ -49442,13 +49441,13 @@ var PerformanceDebuggerInternal = ({
|
|
|
49442
49441
|
)
|
|
49443
49442
|
] })
|
|
49444
49443
|
] }) }),
|
|
49445
|
-
/* @__PURE__ */ jsx(
|
|
49446
|
-
/* @__PURE__ */ jsxs(
|
|
49447
|
-
/* @__PURE__ */ jsx(
|
|
49448
|
-
/* @__PURE__ */ jsx(
|
|
49449
|
-
/* @__PURE__ */ jsx(
|
|
49444
|
+
/* @__PURE__ */ jsx(MoonUICardContentPro, { children: /* @__PURE__ */ jsxs(MoonUITabsPro, { defaultValue: "current", className: "w-full", children: [
|
|
49445
|
+
/* @__PURE__ */ jsxs(MoonUITabsListPro, { className: "grid w-full grid-cols-3", children: [
|
|
49446
|
+
/* @__PURE__ */ jsx(MoonUITabsTriggerPro, { value: "current", children: "Current Metrics" }),
|
|
49447
|
+
/* @__PURE__ */ jsx(MoonUITabsTriggerPro, { value: "history", children: "History" }),
|
|
49448
|
+
/* @__PURE__ */ jsx(MoonUITabsTriggerPro, { value: "vitals", children: "Web Vitals" })
|
|
49450
49449
|
] }),
|
|
49451
|
-
/* @__PURE__ */ jsx(
|
|
49450
|
+
/* @__PURE__ */ jsx(MoonUITabsContentPro, { value: "current", className: "space-y-4", children: /* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4", children: /* @__PURE__ */ jsx(AnimatePresence, { children: currentMetrics.map((metric, index) => {
|
|
49452
49451
|
const status = getMetricStatus(metric);
|
|
49453
49452
|
return /* @__PURE__ */ jsx(
|
|
49454
49453
|
motion.div,
|
|
@@ -49457,7 +49456,7 @@ var PerformanceDebuggerInternal = ({
|
|
|
49457
49456
|
animate: { opacity: 1, y: 0 },
|
|
49458
49457
|
exit: { opacity: 0, y: -20 },
|
|
49459
49458
|
transition: { delay: index * 0.05 },
|
|
49460
|
-
children: /* @__PURE__ */ jsx(
|
|
49459
|
+
children: /* @__PURE__ */ jsx(MoonUICardPro, { children: /* @__PURE__ */ jsxs(MoonUICardContentPro, { className: "p-4", children: [
|
|
49461
49460
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between mb-2", children: [
|
|
49462
49461
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
49463
49462
|
getStatusIcon(status),
|
|
@@ -49467,7 +49466,7 @@ var PerformanceDebuggerInternal = ({
|
|
|
49467
49466
|
] }),
|
|
49468
49467
|
metric.threshold && /* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
|
|
49469
49468
|
/* @__PURE__ */ jsx(
|
|
49470
|
-
|
|
49469
|
+
MoonUIProgressPro,
|
|
49471
49470
|
{
|
|
49472
49471
|
value: Math.min(metric.value / (metric.threshold.needs_improvement * 2) * 100, 100),
|
|
49473
49472
|
className: "h-2"
|
|
@@ -49488,18 +49487,18 @@ var PerformanceDebuggerInternal = ({
|
|
|
49488
49487
|
metric.name
|
|
49489
49488
|
);
|
|
49490
49489
|
}) }) }) }),
|
|
49491
|
-
/* @__PURE__ */ jsxs(
|
|
49490
|
+
/* @__PURE__ */ jsxs(MoonUITabsContentPro, { value: "history", className: "space-y-4", children: [
|
|
49492
49491
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
49493
49492
|
/* @__PURE__ */ jsxs("div", { className: "text-sm text-muted-foreground", children: [
|
|
49494
49493
|
entries.length,
|
|
49495
49494
|
" entries captured"
|
|
49496
49495
|
] }),
|
|
49497
|
-
/* @__PURE__ */ jsx(
|
|
49496
|
+
/* @__PURE__ */ jsx(MoonUIButtonPro2, { variant: "outline", size: "sm", onClick: clearData, children: "Clear History" })
|
|
49498
49497
|
] }),
|
|
49499
|
-
/* @__PURE__ */ jsx("div", { className: "space-y-2 max-h-96 overflow-y-auto", children: entries.map((entry, index) => /* @__PURE__ */ jsx(
|
|
49498
|
+
/* @__PURE__ */ jsx("div", { className: "space-y-2 max-h-96 overflow-y-auto", children: entries.map((entry, index) => /* @__PURE__ */ jsx(MoonUICardPro, { children: /* @__PURE__ */ jsxs(MoonUICardContentPro, { className: "p-4", children: [
|
|
49500
49499
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between mb-2", children: [
|
|
49501
49500
|
/* @__PURE__ */ jsx("span", { className: "text-sm font-medium", children: new Date(entry.timestamp).toLocaleTimeString() }),
|
|
49502
|
-
/* @__PURE__ */ jsxs(
|
|
49501
|
+
/* @__PURE__ */ jsxs(MoonUIBadgePro, { variant: "outline", className: "text-xs", children: [
|
|
49503
49502
|
entry.metrics.length,
|
|
49504
49503
|
" metrics"
|
|
49505
49504
|
] })
|
|
@@ -49513,9 +49512,9 @@ var PerformanceDebuggerInternal = ({
|
|
|
49513
49512
|
] }, metric.name)) })
|
|
49514
49513
|
] }) }, entry.timestamp)) })
|
|
49515
49514
|
] }),
|
|
49516
|
-
/* @__PURE__ */ jsx(
|
|
49515
|
+
/* @__PURE__ */ jsx(MoonUITabsContentPro, { value: "vitals", className: "space-y-4", children: /* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-6", children: currentMetrics.filter((metric) => ["FCP", "LCP", "CLS", "FID", "INP", "TTFB"].includes(metric.name)).map((metric) => {
|
|
49517
49516
|
const status = getMetricStatus(metric);
|
|
49518
|
-
return /* @__PURE__ */ jsx(
|
|
49517
|
+
return /* @__PURE__ */ jsx(MoonUICardPro, { children: /* @__PURE__ */ jsxs(MoonUICardContentPro, { className: "p-6", children: [
|
|
49519
49518
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between mb-4", children: [
|
|
49520
49519
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
49521
49520
|
/* @__PURE__ */ jsx("h3", { className: "font-semibold", children: metric.name }),
|
|
@@ -49526,7 +49525,7 @@ var PerformanceDebuggerInternal = ({
|
|
|
49526
49525
|
/* @__PURE__ */ jsx("div", { className: "text-2xl font-bold mb-2 text-center", children: /* @__PURE__ */ jsx("span", { className: getStatusColor(status), children: formatValue(metric.value, metric.unit) }) }),
|
|
49527
49526
|
metric.threshold && /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
49528
49527
|
/* @__PURE__ */ jsx(
|
|
49529
|
-
|
|
49528
|
+
MoonUIProgressPro,
|
|
49530
49529
|
{
|
|
49531
49530
|
value: Math.min(metric.value / (metric.threshold.needs_improvement * 2) * 100, 100),
|
|
49532
49531
|
className: "h-3"
|
|
@@ -49553,12 +49552,12 @@ var PerformanceDebuggerInternal = ({
|
|
|
49553
49552
|
var PerformanceDebugger = ({ className, ...props }) => {
|
|
49554
49553
|
const { hasProAccess, isLoading } = useSubscription();
|
|
49555
49554
|
if (!isLoading && !hasProAccess) {
|
|
49556
|
-
return /* @__PURE__ */ jsx(
|
|
49555
|
+
return /* @__PURE__ */ jsx(MoonUICardPro, { className: cn("w-fit", className), children: /* @__PURE__ */ jsx(MoonUICardContentPro, { className: "py-6 text-center", children: /* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
|
|
49557
49556
|
/* @__PURE__ */ jsx("div", { className: "rounded-full bg-purple-100 dark:bg-purple-900/30 p-3 w-fit mx-auto", children: /* @__PURE__ */ jsx(Lock, { className: "h-6 w-6 text-purple-600 dark:text-purple-400" }) }),
|
|
49558
49557
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
49559
49558
|
/* @__PURE__ */ jsx("h3", { className: "font-semibold text-sm mb-2", children: "Pro Feature" }),
|
|
49560
49559
|
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-xs mb-4", children: "Performance Debugger is available exclusively to MoonUI Pro subscribers." }),
|
|
49561
|
-
/* @__PURE__ */ jsx("a", { href: "/pricing", children: /* @__PURE__ */ jsxs(
|
|
49560
|
+
/* @__PURE__ */ jsx("a", { href: "/pricing", children: /* @__PURE__ */ jsxs(MoonUIButtonPro2, { size: "sm", children: [
|
|
49562
49561
|
/* @__PURE__ */ jsx(Sparkles, { className: "mr-2 h-4 w-4" }),
|
|
49563
49562
|
"Upgrade to Pro"
|
|
49564
49563
|
] }) })
|
|
@@ -49770,7 +49769,7 @@ var PerformanceMonitorInternal = ({
|
|
|
49770
49769
|
};
|
|
49771
49770
|
if (!isVisible) {
|
|
49772
49771
|
return /* @__PURE__ */ jsxs(
|
|
49773
|
-
|
|
49772
|
+
MoonUIButtonPro2,
|
|
49774
49773
|
{
|
|
49775
49774
|
variant: "outline",
|
|
49776
49775
|
size: "sm",
|
|
@@ -49784,31 +49783,31 @@ var PerformanceMonitorInternal = ({
|
|
|
49784
49783
|
);
|
|
49785
49784
|
}
|
|
49786
49785
|
if (!metrics) {
|
|
49787
|
-
return /* @__PURE__ */ jsx(
|
|
49786
|
+
return /* @__PURE__ */ jsx(MoonUICardPro, { className: cn("w-full max-w-6xl", className), children: /* @__PURE__ */ jsx(MoonUICardContentPro, { className: "p-6", children: /* @__PURE__ */ jsxs("div", { className: "text-center", children: [
|
|
49788
49787
|
/* @__PURE__ */ jsx(Activity, { className: "h-12 w-12 animate-pulse mx-auto mb-4 text-muted-foreground" }),
|
|
49789
49788
|
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: "Loading performance metrics..." })
|
|
49790
49789
|
] }) }) });
|
|
49791
49790
|
}
|
|
49792
|
-
return /* @__PURE__ */ jsxs(
|
|
49793
|
-
/* @__PURE__ */ jsx(
|
|
49791
|
+
return /* @__PURE__ */ jsxs(MoonUICardPro, { className: cn("w-full max-w-6xl", className), children: [
|
|
49792
|
+
/* @__PURE__ */ jsx(MoonUICardHeaderPro, { children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
49794
49793
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
49795
|
-
/* @__PURE__ */ jsxs(
|
|
49794
|
+
/* @__PURE__ */ jsxs(MoonUICardTitlePro, { className: "flex items-center gap-2", children: [
|
|
49796
49795
|
/* @__PURE__ */ jsx(Monitor, { className: "h-5 w-5" }),
|
|
49797
49796
|
"Performance Monitor"
|
|
49798
49797
|
] }),
|
|
49799
|
-
/* @__PURE__ */ jsx(
|
|
49798
|
+
/* @__PURE__ */ jsx(MoonUICardDescriptionPro, { children: "Real-time system performance monitoring and alerts" })
|
|
49800
49799
|
] }),
|
|
49801
49800
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
49802
|
-
/* @__PURE__ */ jsxs(
|
|
49801
|
+
/* @__PURE__ */ jsxs(MoonUIBadgePro, { variant: autoRefresh ? "outline" : "secondary", className: "gap-1", children: [
|
|
49803
49802
|
autoRefresh ? /* @__PURE__ */ jsx(Activity, { className: "h-3 w-3 animate-pulse" }) : /* @__PURE__ */ jsx(Timer, { className: "h-3 w-3" }),
|
|
49804
49803
|
autoRefresh ? "Live" : "Paused"
|
|
49805
49804
|
] }),
|
|
49806
|
-
showAlerts && alerts.length > 0 && /* @__PURE__ */ jsxs(
|
|
49805
|
+
showAlerts && alerts.length > 0 && /* @__PURE__ */ jsxs(MoonUIBadgePro, { variant: "destructive", className: "gap-1", children: [
|
|
49807
49806
|
/* @__PURE__ */ jsx(AlertTriangle, { className: "h-3 w-3" }),
|
|
49808
49807
|
alerts.length
|
|
49809
49808
|
] }),
|
|
49810
49809
|
/* @__PURE__ */ jsx(
|
|
49811
|
-
|
|
49810
|
+
MoonUIButtonPro2,
|
|
49812
49811
|
{
|
|
49813
49812
|
variant: "outline",
|
|
49814
49813
|
size: "sm",
|
|
@@ -49818,7 +49817,7 @@ var PerformanceMonitorInternal = ({
|
|
|
49818
49817
|
}
|
|
49819
49818
|
),
|
|
49820
49819
|
/* @__PURE__ */ jsx(
|
|
49821
|
-
|
|
49820
|
+
MoonUIButtonPro2,
|
|
49822
49821
|
{
|
|
49823
49822
|
variant: "outline",
|
|
49824
49823
|
size: "sm",
|
|
@@ -49827,7 +49826,7 @@ var PerformanceMonitorInternal = ({
|
|
|
49827
49826
|
}
|
|
49828
49827
|
),
|
|
49829
49828
|
/* @__PURE__ */ jsx(
|
|
49830
|
-
|
|
49829
|
+
MoonUIButtonPro2,
|
|
49831
49830
|
{
|
|
49832
49831
|
variant: "ghost",
|
|
49833
49832
|
size: "sm",
|
|
@@ -49837,16 +49836,16 @@ var PerformanceMonitorInternal = ({
|
|
|
49837
49836
|
)
|
|
49838
49837
|
] })
|
|
49839
49838
|
] }) }),
|
|
49840
|
-
/* @__PURE__ */ jsx(
|
|
49841
|
-
/* @__PURE__ */ jsxs(
|
|
49842
|
-
/* @__PURE__ */ jsx(
|
|
49843
|
-
/* @__PURE__ */ jsx(
|
|
49844
|
-
/* @__PURE__ */ jsx(
|
|
49845
|
-
/* @__PURE__ */ jsx(
|
|
49839
|
+
/* @__PURE__ */ jsx(MoonUICardContentPro, { children: /* @__PURE__ */ jsxs(MoonUITabsPro, { defaultValue: "overview", className: "w-full", children: [
|
|
49840
|
+
/* @__PURE__ */ jsxs(MoonUITabsListPro, { className: "grid w-full grid-cols-4", children: [
|
|
49841
|
+
/* @__PURE__ */ jsx(MoonUITabsTriggerPro, { value: "overview", children: "Overview" }),
|
|
49842
|
+
/* @__PURE__ */ jsx(MoonUITabsTriggerPro, { value: "details", children: "Details" }),
|
|
49843
|
+
/* @__PURE__ */ jsx(MoonUITabsTriggerPro, { value: "alerts", children: "Alerts" }),
|
|
49844
|
+
/* @__PURE__ */ jsx(MoonUITabsTriggerPro, { value: "history", children: "History" })
|
|
49846
49845
|
] }),
|
|
49847
|
-
/* @__PURE__ */ jsxs(
|
|
49846
|
+
/* @__PURE__ */ jsxs(MoonUITabsContentPro, { value: "overview", className: "space-y-6", children: [
|
|
49848
49847
|
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 md:grid-cols-4 gap-4", children: [
|
|
49849
|
-
/* @__PURE__ */ jsx(
|
|
49848
|
+
/* @__PURE__ */ jsx(MoonUICardPro, { children: /* @__PURE__ */ jsxs(MoonUICardContentPro, { className: "p-4", children: [
|
|
49850
49849
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
49851
49850
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
49852
49851
|
/* @__PURE__ */ jsx(Cpu, { className: "h-4 w-4 text-blue-500" }),
|
|
@@ -49870,7 +49869,7 @@ var PerformanceMonitorInternal = ({
|
|
|
49870
49869
|
metrics.cpu.temperature && `\u2022 ${metrics.cpu.temperature.toFixed(0)}\xB0C`
|
|
49871
49870
|
] })
|
|
49872
49871
|
] }) }),
|
|
49873
|
-
/* @__PURE__ */ jsx(
|
|
49872
|
+
/* @__PURE__ */ jsx(MoonUICardPro, { children: /* @__PURE__ */ jsxs(MoonUICardContentPro, { className: "p-4", children: [
|
|
49874
49873
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
49875
49874
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
49876
49875
|
/* @__PURE__ */ jsx(MemoryStick, { className: "h-4 w-4 text-green-500" }),
|
|
@@ -49894,7 +49893,7 @@ var PerformanceMonitorInternal = ({
|
|
|
49894
49893
|
formatBytes(metrics.memory.total * 1024 * 1024 * 1024)
|
|
49895
49894
|
] })
|
|
49896
49895
|
] }) }),
|
|
49897
|
-
/* @__PURE__ */ jsx(
|
|
49896
|
+
/* @__PURE__ */ jsx(MoonUICardPro, { children: /* @__PURE__ */ jsxs(MoonUICardContentPro, { className: "p-4", children: [
|
|
49898
49897
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
49899
49898
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
49900
49899
|
/* @__PURE__ */ jsx(HardDrive, { className: "h-4 w-4 text-purple-500" }),
|
|
@@ -49918,7 +49917,7 @@ var PerformanceMonitorInternal = ({
|
|
|
49918
49917
|
formatBytes(metrics.disk.total * 1024 * 1024 * 1024)
|
|
49919
49918
|
] })
|
|
49920
49919
|
] }) }),
|
|
49921
|
-
/* @__PURE__ */ jsx(
|
|
49920
|
+
/* @__PURE__ */ jsx(MoonUICardPro, { children: /* @__PURE__ */ jsxs(MoonUICardContentPro, { className: "p-4", children: [
|
|
49922
49921
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
49923
49922
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
49924
49923
|
/* @__PURE__ */ jsx(Network, { className: "h-4 w-4 text-orange-500" }),
|
|
@@ -49939,9 +49938,9 @@ var PerformanceMonitorInternal = ({
|
|
|
49939
49938
|
] }) })
|
|
49940
49939
|
] }),
|
|
49941
49940
|
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-6", children: [
|
|
49942
|
-
/* @__PURE__ */ jsxs(
|
|
49943
|
-
/* @__PURE__ */ jsx(
|
|
49944
|
-
/* @__PURE__ */ jsxs(
|
|
49941
|
+
/* @__PURE__ */ jsxs(MoonUICardPro, { children: [
|
|
49942
|
+
/* @__PURE__ */ jsx(MoonUICardHeaderPro, { children: /* @__PURE__ */ jsx(MoonUICardTitlePro, { className: "text-base", children: "System Information" }) }),
|
|
49943
|
+
/* @__PURE__ */ jsxs(MoonUICardContentPro, { className: "space-y-3", children: [
|
|
49945
49944
|
/* @__PURE__ */ jsxs("div", { className: "flex justify-between text-sm", children: [
|
|
49946
49945
|
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: "Uptime:" }),
|
|
49947
49946
|
/* @__PURE__ */ jsx("span", { className: "font-medium", children: formatUptime(metrics.system.uptime) })
|
|
@@ -49956,9 +49955,9 @@ var PerformanceMonitorInternal = ({
|
|
|
49956
49955
|
] })
|
|
49957
49956
|
] })
|
|
49958
49957
|
] }),
|
|
49959
|
-
metrics.browser && /* @__PURE__ */ jsxs(
|
|
49960
|
-
/* @__PURE__ */ jsx(
|
|
49961
|
-
/* @__PURE__ */ jsxs(
|
|
49958
|
+
metrics.browser && /* @__PURE__ */ jsxs(MoonUICardPro, { children: [
|
|
49959
|
+
/* @__PURE__ */ jsx(MoonUICardHeaderPro, { children: /* @__PURE__ */ jsx(MoonUICardTitlePro, { className: "text-base", children: "Browser Memory" }) }),
|
|
49960
|
+
/* @__PURE__ */ jsxs(MoonUICardContentPro, { className: "space-y-3", children: [
|
|
49962
49961
|
/* @__PURE__ */ jsxs("div", { className: "flex justify-between text-sm", children: [
|
|
49963
49962
|
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: "JS Heap Used:" }),
|
|
49964
49963
|
/* @__PURE__ */ jsx("span", { className: "font-medium", children: formatBytes(metrics.browser.jsHeapUsed * 1024 * 1024) })
|
|
@@ -49975,13 +49974,13 @@ var PerformanceMonitorInternal = ({
|
|
|
49975
49974
|
] })
|
|
49976
49975
|
] })
|
|
49977
49976
|
] }),
|
|
49978
|
-
/* @__PURE__ */ jsx(
|
|
49979
|
-
/* @__PURE__ */ jsxs(
|
|
49980
|
-
/* @__PURE__ */ jsx(
|
|
49977
|
+
/* @__PURE__ */ jsx(MoonUITabsContentPro, { value: "details", className: "space-y-4", children: /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-6", children: [
|
|
49978
|
+
/* @__PURE__ */ jsxs(MoonUICardPro, { children: [
|
|
49979
|
+
/* @__PURE__ */ jsx(MoonUICardHeaderPro, { children: /* @__PURE__ */ jsxs(MoonUICardTitlePro, { className: "text-base flex items-center gap-2", children: [
|
|
49981
49980
|
/* @__PURE__ */ jsx(Cpu, { className: "h-4 w-4" }),
|
|
49982
49981
|
"CPU Details"
|
|
49983
49982
|
] }) }),
|
|
49984
|
-
/* @__PURE__ */ jsxs(
|
|
49983
|
+
/* @__PURE__ */ jsxs(MoonUICardContentPro, { className: "space-y-4", children: [
|
|
49985
49984
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
49986
49985
|
/* @__PURE__ */ jsxs("div", { className: "flex justify-between text-sm mb-2", children: [
|
|
49987
49986
|
/* @__PURE__ */ jsx("span", { children: "Usage" }),
|
|
@@ -50013,12 +50012,12 @@ var PerformanceMonitorInternal = ({
|
|
|
50013
50012
|
] })
|
|
50014
50013
|
] })
|
|
50015
50014
|
] }),
|
|
50016
|
-
/* @__PURE__ */ jsxs(
|
|
50017
|
-
/* @__PURE__ */ jsx(
|
|
50015
|
+
/* @__PURE__ */ jsxs(MoonUICardPro, { children: [
|
|
50016
|
+
/* @__PURE__ */ jsx(MoonUICardHeaderPro, { children: /* @__PURE__ */ jsxs(MoonUICardTitlePro, { className: "text-base flex items-center gap-2", children: [
|
|
50018
50017
|
/* @__PURE__ */ jsx(MemoryStick, { className: "h-4 w-4" }),
|
|
50019
50018
|
"Memory Details"
|
|
50020
50019
|
] }) }),
|
|
50021
|
-
/* @__PURE__ */ jsxs(
|
|
50020
|
+
/* @__PURE__ */ jsxs(MoonUICardContentPro, { className: "space-y-4", children: [
|
|
50022
50021
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
50023
50022
|
/* @__PURE__ */ jsxs("div", { className: "flex justify-between text-sm mb-2", children: [
|
|
50024
50023
|
/* @__PURE__ */ jsx("span", { children: "Usage" }),
|
|
@@ -50052,14 +50051,14 @@ var PerformanceMonitorInternal = ({
|
|
|
50052
50051
|
] })
|
|
50053
50052
|
] })
|
|
50054
50053
|
] }) }),
|
|
50055
|
-
/* @__PURE__ */ jsxs(
|
|
50054
|
+
/* @__PURE__ */ jsxs(MoonUITabsContentPro, { value: "alerts", className: "space-y-4", children: [
|
|
50056
50055
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
50057
50056
|
/* @__PURE__ */ jsxs("div", { className: "text-sm text-muted-foreground", children: [
|
|
50058
50057
|
alerts.length,
|
|
50059
50058
|
" alerts"
|
|
50060
50059
|
] }),
|
|
50061
50060
|
/* @__PURE__ */ jsx(
|
|
50062
|
-
|
|
50061
|
+
MoonUIButtonPro2,
|
|
50063
50062
|
{
|
|
50064
50063
|
variant: "outline",
|
|
50065
50064
|
size: "sm",
|
|
@@ -50076,7 +50075,7 @@ var PerformanceMonitorInternal = ({
|
|
|
50076
50075
|
animate: { opacity: 1, x: 0 },
|
|
50077
50076
|
exit: { opacity: 0, x: 20 },
|
|
50078
50077
|
transition: { delay: index * 0.05 },
|
|
50079
|
-
children: /* @__PURE__ */ jsx(
|
|
50078
|
+
children: /* @__PURE__ */ jsx(MoonUICardPro, { children: /* @__PURE__ */ jsx(MoonUICardContentPro, { className: "p-4", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
50080
50079
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
50081
50080
|
alert2.type === "critical" ? /* @__PURE__ */ jsx(AlertTriangle, { className: "h-4 w-4 text-red-500" }) : alert2.type === "warning" ? /* @__PURE__ */ jsx(AlertTriangle, { className: "h-4 w-4 text-yellow-500" }) : /* @__PURE__ */ jsx(CheckCircle, { className: "h-4 w-4 text-blue-500" }),
|
|
50082
50081
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
@@ -50100,7 +50099,7 @@ var PerformanceMonitorInternal = ({
|
|
|
50100
50099
|
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: "No alerts - System is running smoothly" })
|
|
50101
50100
|
] })
|
|
50102
50101
|
] }),
|
|
50103
|
-
/* @__PURE__ */ jsxs(
|
|
50102
|
+
/* @__PURE__ */ jsxs(MoonUITabsContentPro, { value: "history", className: "space-y-4", children: [
|
|
50104
50103
|
/* @__PURE__ */ jsxs("div", { className: "text-sm text-muted-foreground", children: [
|
|
50105
50104
|
"Last ",
|
|
50106
50105
|
history2.length,
|
|
@@ -50109,9 +50108,9 @@ var PerformanceMonitorInternal = ({
|
|
|
50109
50108
|
" minutes)"
|
|
50110
50109
|
] }),
|
|
50111
50110
|
showCharts && history2.length > 1 && /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-6", children: [
|
|
50112
|
-
/* @__PURE__ */ jsxs(
|
|
50113
|
-
/* @__PURE__ */ jsx(
|
|
50114
|
-
/* @__PURE__ */ jsxs(
|
|
50111
|
+
/* @__PURE__ */ jsxs(MoonUICardPro, { children: [
|
|
50112
|
+
/* @__PURE__ */ jsx(MoonUICardHeaderPro, { children: /* @__PURE__ */ jsx(MoonUICardTitlePro, { className: "text-base", children: "CPU Usage Trend" }) }),
|
|
50113
|
+
/* @__PURE__ */ jsxs(MoonUICardContentPro, { children: [
|
|
50115
50114
|
/* @__PURE__ */ jsx("div", { className: "h-32 flex items-end justify-between gap-1", children: history2.slice(-20).reverse().map((point, index) => /* @__PURE__ */ jsx(
|
|
50116
50115
|
"div",
|
|
50117
50116
|
{
|
|
@@ -50123,9 +50122,9 @@ var PerformanceMonitorInternal = ({
|
|
|
50123
50122
|
/* @__PURE__ */ jsx("div", { className: "text-xs text-muted-foreground mt-2 text-center", children: "Last 20 readings" })
|
|
50124
50123
|
] })
|
|
50125
50124
|
] }),
|
|
50126
|
-
/* @__PURE__ */ jsxs(
|
|
50127
|
-
/* @__PURE__ */ jsx(
|
|
50128
|
-
/* @__PURE__ */ jsxs(
|
|
50125
|
+
/* @__PURE__ */ jsxs(MoonUICardPro, { children: [
|
|
50126
|
+
/* @__PURE__ */ jsx(MoonUICardHeaderPro, { children: /* @__PURE__ */ jsx(MoonUICardTitlePro, { className: "text-base", children: "Memory Usage Trend" }) }),
|
|
50127
|
+
/* @__PURE__ */ jsxs(MoonUICardContentPro, { children: [
|
|
50129
50128
|
/* @__PURE__ */ jsx("div", { className: "h-32 flex items-end justify-between gap-1", children: history2.slice(-20).reverse().map((point, index) => /* @__PURE__ */ jsx(
|
|
50130
50129
|
"div",
|
|
50131
50130
|
{
|
|
@@ -50149,12 +50148,12 @@ var PerformanceMonitorInternal = ({
|
|
|
50149
50148
|
var PerformanceMonitor = ({ className, ...props }) => {
|
|
50150
50149
|
const { hasProAccess, isLoading } = useSubscription();
|
|
50151
50150
|
if (!isLoading && !hasProAccess) {
|
|
50152
|
-
return /* @__PURE__ */ jsx(
|
|
50151
|
+
return /* @__PURE__ */ jsx(MoonUICardPro, { className: cn("w-fit", className), children: /* @__PURE__ */ jsx(MoonUICardContentPro, { className: "py-6 text-center", children: /* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
|
|
50153
50152
|
/* @__PURE__ */ jsx("div", { className: "rounded-full bg-purple-100 dark:bg-purple-900/30 p-3 w-fit mx-auto", children: /* @__PURE__ */ jsx(Lock, { className: "h-6 w-6 text-purple-600 dark:text-purple-400" }) }),
|
|
50154
50153
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
50155
50154
|
/* @__PURE__ */ jsx("h3", { className: "font-semibold text-sm mb-2", children: "Pro Feature" }),
|
|
50156
50155
|
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-xs mb-4", children: "Performance Monitor is available exclusively to MoonUI Pro subscribers." }),
|
|
50157
|
-
/* @__PURE__ */ jsx("a", { href: "/pricing", children: /* @__PURE__ */ jsxs(
|
|
50156
|
+
/* @__PURE__ */ jsx("a", { href: "/pricing", children: /* @__PURE__ */ jsxs(MoonUIButtonPro2, { size: "sm", children: [
|
|
50158
50157
|
/* @__PURE__ */ jsx(Sparkles, { className: "mr-2 h-4 w-4" }),
|
|
50159
50158
|
"Upgrade to Pro"
|
|
50160
50159
|
] }) })
|
|
@@ -50199,12 +50198,12 @@ function FileUpload({
|
|
|
50199
50198
|
}) {
|
|
50200
50199
|
const { hasProAccess, isLoading } = useSubscription();
|
|
50201
50200
|
if (!isLoading && !hasProAccess) {
|
|
50202
|
-
return /* @__PURE__ */ jsx(
|
|
50201
|
+
return /* @__PURE__ */ jsx(MoonUICardPro, { className: cn("w-full", className), children: /* @__PURE__ */ jsx(MoonUICardContentPro, { className: "py-12 text-center", children: /* @__PURE__ */ jsxs("div", { className: "max-w-md mx-auto space-y-4", children: [
|
|
50203
50202
|
/* @__PURE__ */ jsx("div", { className: "rounded-full bg-purple-100 dark:bg-purple-900/30 p-3 w-fit mx-auto", children: /* @__PURE__ */ jsx(Lock, { className: "h-6 w-6 text-purple-600 dark:text-purple-400" }) }),
|
|
50204
50203
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
50205
50204
|
/* @__PURE__ */ jsx("h3", { className: "font-semibold text-lg mb-2", children: "Pro Feature" }),
|
|
50206
50205
|
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-sm mb-4", children: "File Upload is available exclusively to MoonUI Pro subscribers." }),
|
|
50207
|
-
/* @__PURE__ */ jsx("div", { className: "flex gap-3 justify-center", children: /* @__PURE__ */ jsx("a", { href: "/pricing", children: /* @__PURE__ */ jsxs(
|
|
50206
|
+
/* @__PURE__ */ jsx("div", { className: "flex gap-3 justify-center", children: /* @__PURE__ */ jsx("a", { href: "/pricing", children: /* @__PURE__ */ jsxs(MoonUIButtonPro2, { size: "sm", children: [
|
|
50208
50207
|
/* @__PURE__ */ jsx(Sparkles, { className: "mr-2 h-4 w-4" }),
|
|
50209
50208
|
"Upgrade to Pro"
|
|
50210
50209
|
] }) }) })
|
|
@@ -50306,20 +50305,20 @@ function FileUpload({
|
|
|
50306
50305
|
fileInputRef.current?.click();
|
|
50307
50306
|
}
|
|
50308
50307
|
};
|
|
50309
|
-
return /* @__PURE__ */ jsxs(
|
|
50310
|
-
/* @__PURE__ */ jsxs(
|
|
50311
|
-
/* @__PURE__ */ jsxs(
|
|
50308
|
+
return /* @__PURE__ */ jsxs(MoonUICardPro, { className: cn("w-full", className), children: [
|
|
50309
|
+
/* @__PURE__ */ jsxs(MoonUICardHeaderPro, { children: [
|
|
50310
|
+
/* @__PURE__ */ jsxs(MoonUICardTitlePro, { className: "flex items-center gap-2", children: [
|
|
50312
50311
|
/* @__PURE__ */ jsx(Upload, { className: "h-5 w-5" }),
|
|
50313
50312
|
"File Upload"
|
|
50314
50313
|
] }),
|
|
50315
|
-
/* @__PURE__ */ jsxs(
|
|
50314
|
+
/* @__PURE__ */ jsxs(MoonUICardDescriptionPro, { children: [
|
|
50316
50315
|
multiple ? `Upload up to ${maxFiles} files` : "Upload a file",
|
|
50317
50316
|
" (max ",
|
|
50318
50317
|
maxSize,
|
|
50319
50318
|
"MB each)"
|
|
50320
50319
|
] })
|
|
50321
50320
|
] }),
|
|
50322
|
-
/* @__PURE__ */ jsxs(
|
|
50321
|
+
/* @__PURE__ */ jsxs(MoonUICardContentPro, { className: "space-y-4", children: [
|
|
50323
50322
|
/* @__PURE__ */ jsxs(
|
|
50324
50323
|
"div",
|
|
50325
50324
|
{
|
|
@@ -50362,7 +50361,7 @@ function FileUpload({
|
|
|
50362
50361
|
/* @__PURE__ */ jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
50363
50362
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
50364
50363
|
/* @__PURE__ */ jsx("p", { className: "text-sm font-medium truncate", children: uploadedFile.file.name }),
|
|
50365
|
-
/* @__PURE__ */ jsxs(
|
|
50364
|
+
/* @__PURE__ */ jsxs(MoonUIBadgePro, { variant: uploadedFile.status === "success" ? "success" : uploadedFile.status === "error" ? "destructive" : "secondary", children: [
|
|
50366
50365
|
uploadedFile.status === "uploading" && /* @__PURE__ */ jsx(Loader2, { className: "h-3 w-3 mr-1 animate-spin" }),
|
|
50367
50366
|
uploadedFile.status === "success" && /* @__PURE__ */ jsx(CheckCircle2, { className: "h-3 w-3 mr-1" }),
|
|
50368
50367
|
uploadedFile.status === "error" && /* @__PURE__ */ jsx(AlertCircle, { className: "h-3 w-3 mr-1" }),
|
|
@@ -50386,9 +50385,9 @@ function FileUpload({
|
|
|
50386
50385
|
uploadedFile.error && /* @__PURE__ */ jsx("p", { className: "text-xs text-destructive mt-1", children: uploadedFile.error })
|
|
50387
50386
|
] }),
|
|
50388
50387
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1", children: [
|
|
50389
|
-
uploadedFile.status === "success" && showPreview && uploadedFile.file.type.startsWith("image/") && /* @__PURE__ */ jsx(
|
|
50388
|
+
uploadedFile.status === "success" && showPreview && uploadedFile.file.type.startsWith("image/") && /* @__PURE__ */ jsx(MoonUIButtonPro2, { variant: "ghost", size: "sm", children: /* @__PURE__ */ jsx(Download, { className: "h-4 w-4" }) }),
|
|
50390
50389
|
/* @__PURE__ */ jsx(
|
|
50391
|
-
|
|
50390
|
+
MoonUIButtonPro2,
|
|
50392
50391
|
{
|
|
50393
50392
|
variant: "ghost",
|
|
50394
50393
|
size: "sm",
|
|
@@ -50425,12 +50424,12 @@ function DataTable({
|
|
|
50425
50424
|
}) {
|
|
50426
50425
|
const { hasProAccess, isLoading } = useSubscription();
|
|
50427
50426
|
if (!isLoading && !hasProAccess) {
|
|
50428
|
-
return /* @__PURE__ */ jsx(
|
|
50427
|
+
return /* @__PURE__ */ jsx(MoonUICardPro, { className: cn("w-full", className), children: /* @__PURE__ */ jsx(MoonUICardContentPro, { className: "py-12 text-center", children: /* @__PURE__ */ jsxs("div", { className: "max-w-md mx-auto space-y-4", children: [
|
|
50429
50428
|
/* @__PURE__ */ jsx("div", { className: "rounded-full bg-purple-100 dark:bg-purple-900/30 p-3 w-fit mx-auto", children: /* @__PURE__ */ jsx(Lock, { className: "h-6 w-6 text-purple-600 dark:text-purple-400" }) }),
|
|
50430
50429
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
50431
50430
|
/* @__PURE__ */ jsx("h3", { className: "font-semibold text-lg mb-2", children: "Pro Feature" }),
|
|
50432
50431
|
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-sm mb-4", children: "Data Table is available exclusively to MoonUI Pro subscribers." }),
|
|
50433
|
-
/* @__PURE__ */ jsx("div", { className: "flex gap-3 justify-center", children: /* @__PURE__ */ jsx("a", { href: "/pricing", children: /* @__PURE__ */ jsxs(
|
|
50432
|
+
/* @__PURE__ */ jsx("div", { className: "flex gap-3 justify-center", children: /* @__PURE__ */ jsx("a", { href: "/pricing", children: /* @__PURE__ */ jsxs(MoonUIButtonPro2, { size: "sm", children: [
|
|
50434
50433
|
/* @__PURE__ */ jsx(Sparkles, { className: "mr-2 h-4 w-4" }),
|
|
50435
50434
|
"Upgrade to Pro"
|
|
50436
50435
|
] }) }) })
|
|
@@ -50496,7 +50495,7 @@ function DataTable({
|
|
|
50496
50495
|
searchable && /* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
50497
50496
|
/* @__PURE__ */ jsx(Search, { className: "absolute left-2 top-2.5 h-4 w-4 text-muted-foreground" }),
|
|
50498
50497
|
/* @__PURE__ */ jsx(
|
|
50499
|
-
|
|
50498
|
+
MoonUIInputPro,
|
|
50500
50499
|
{
|
|
50501
50500
|
placeholder: "Search all columns...",
|
|
50502
50501
|
value: globalFilter,
|
|
@@ -50505,17 +50504,17 @@ function DataTable({
|
|
|
50505
50504
|
}
|
|
50506
50505
|
)
|
|
50507
50506
|
] }),
|
|
50508
|
-
filterable && /* @__PURE__ */ jsxs(
|
|
50507
|
+
filterable && /* @__PURE__ */ jsxs(MoonUIButtonPro2, { variant: "outline", size: "sm", children: [
|
|
50509
50508
|
/* @__PURE__ */ jsx(Filter, { className: "mr-2 h-4 w-4" }),
|
|
50510
50509
|
"Filters"
|
|
50511
50510
|
] })
|
|
50512
50511
|
] }),
|
|
50513
50512
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
|
|
50514
|
-
exportable && /* @__PURE__ */ jsxs(
|
|
50513
|
+
exportable && /* @__PURE__ */ jsxs(MoonUIButtonPro2, { variant: "outline", size: "sm", onClick: handleExport, children: [
|
|
50515
50514
|
/* @__PURE__ */ jsx(Download, { className: "mr-2 h-4 w-4" }),
|
|
50516
50515
|
"Export"
|
|
50517
50516
|
] }),
|
|
50518
|
-
/* @__PURE__ */ jsxs(
|
|
50517
|
+
/* @__PURE__ */ jsxs(MoonUIButtonPro2, { variant: "outline", size: "sm", children: [
|
|
50519
50518
|
/* @__PURE__ */ jsx(Settings, { className: "mr-2 h-4 w-4" }),
|
|
50520
50519
|
"Columns"
|
|
50521
50520
|
] })
|
|
@@ -50585,7 +50584,7 @@ function DataTable({
|
|
|
50585
50584
|
] }),
|
|
50586
50585
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
|
|
50587
50586
|
/* @__PURE__ */ jsx(
|
|
50588
|
-
|
|
50587
|
+
MoonUIButtonPro2,
|
|
50589
50588
|
{
|
|
50590
50589
|
variant: "outline",
|
|
50591
50590
|
className: "hidden h-8 w-8 p-0 lg:flex",
|
|
@@ -50595,7 +50594,7 @@ function DataTable({
|
|
|
50595
50594
|
}
|
|
50596
50595
|
),
|
|
50597
50596
|
/* @__PURE__ */ jsx(
|
|
50598
|
-
|
|
50597
|
+
MoonUIButtonPro2,
|
|
50599
50598
|
{
|
|
50600
50599
|
variant: "outline",
|
|
50601
50600
|
className: "h-8 w-8 p-0",
|
|
@@ -50605,7 +50604,7 @@ function DataTable({
|
|
|
50605
50604
|
}
|
|
50606
50605
|
),
|
|
50607
50606
|
/* @__PURE__ */ jsx(
|
|
50608
|
-
|
|
50607
|
+
MoonUIButtonPro2,
|
|
50609
50608
|
{
|
|
50610
50609
|
variant: "outline",
|
|
50611
50610
|
className: "h-8 w-8 p-0",
|
|
@@ -50615,7 +50614,7 @@ function DataTable({
|
|
|
50615
50614
|
}
|
|
50616
50615
|
),
|
|
50617
50616
|
/* @__PURE__ */ jsx(
|
|
50618
|
-
|
|
50617
|
+
MoonUIButtonPro2,
|
|
50619
50618
|
{
|
|
50620
50619
|
variant: "outline",
|
|
50621
50620
|
className: "hidden h-8 w-8 p-0 lg:flex",
|
|
@@ -50639,17 +50638,17 @@ __export(enhanced_exports, {
|
|
|
50639
50638
|
CardProContent: () => CardProContent,
|
|
50640
50639
|
CardProFooter: () => CardProFooter,
|
|
50641
50640
|
CardProHeader: () => CardProHeader,
|
|
50642
|
-
DialogPro: () =>
|
|
50641
|
+
DialogPro: () => Dialog,
|
|
50643
50642
|
DialogProClose: () => DialogClose,
|
|
50644
50643
|
DialogProContent: () => DialogProContent,
|
|
50645
50644
|
DialogProDescription: () => DialogProDescription,
|
|
50646
50645
|
DialogProFooter: () => DialogProFooter,
|
|
50647
50646
|
DialogProHeader: () => DialogProHeader,
|
|
50648
50647
|
DialogProTitle: () => DialogProTitle,
|
|
50649
|
-
DialogProTrigger: () =>
|
|
50648
|
+
DialogProTrigger: () => DialogTrigger,
|
|
50650
50649
|
EnhancedCardDescription: () => EnhancedCardDescription,
|
|
50651
50650
|
EnhancedCardTitle: () => EnhancedCardTitle,
|
|
50652
|
-
badgeVariants: () =>
|
|
50651
|
+
badgeVariants: () => badgeVariants,
|
|
50653
50652
|
enhancedButtonVariants: () => enhancedButtonVariants
|
|
50654
50653
|
});
|
|
50655
50654
|
var enhancedButtonVariants = cva(
|
|
@@ -51178,8 +51177,8 @@ var CardProFooter = React16__default.forwardRef(({ className, ...props }, ref) =
|
|
|
51178
51177
|
}
|
|
51179
51178
|
));
|
|
51180
51179
|
CardProFooter.displayName = "CardProFooter";
|
|
51181
|
-
var
|
|
51182
|
-
var
|
|
51180
|
+
var Dialog = DialogPrimitive2.Root;
|
|
51181
|
+
var DialogTrigger = DialogPrimitive2.Trigger;
|
|
51183
51182
|
var DialogPortal2 = DialogPrimitive2.Portal;
|
|
51184
51183
|
var DialogClose = DialogPrimitive2.Close;
|
|
51185
51184
|
var DialogProOverlay = React16.forwardRef(({ className, blur: blur2 = "md", variant = "default", ...props }, ref) => {
|
|
@@ -51372,7 +51371,7 @@ var DialogProDescription = React16.forwardRef(({ className, ...props }, ref) =>
|
|
|
51372
51371
|
}
|
|
51373
51372
|
));
|
|
51374
51373
|
DialogProDescription.displayName = DialogPrimitive2.Description.displayName;
|
|
51375
|
-
var
|
|
51374
|
+
var badgeVariants = cva(
|
|
51376
51375
|
[
|
|
51377
51376
|
"inline-flex items-center gap-1.5",
|
|
51378
51377
|
"font-medium transition-all duration-200",
|
|
@@ -51466,7 +51465,7 @@ var BadgePro = React16__default.forwardRef(({
|
|
|
51466
51465
|
{
|
|
51467
51466
|
ref,
|
|
51468
51467
|
className: cn(
|
|
51469
|
-
|
|
51468
|
+
badgeVariants({ variant, size }),
|
|
51470
51469
|
enablePulse && "animate-pulse",
|
|
51471
51470
|
enableGlow && "shadow-lg shadow-current/50",
|
|
51472
51471
|
enableShimmer && "relative overflow-hidden",
|
|
@@ -51528,4 +51527,4 @@ var BadgePro = React16__default.forwardRef(({
|
|
|
51528
51527
|
});
|
|
51529
51528
|
BadgePro.displayName = "BadgePro";
|
|
51530
51529
|
|
|
51531
|
-
export { AdvancedChart, AdvancedForms, AnimatedButton, Calendar2 as Calendar,
|
|
51530
|
+
export { AdvancedChart, AdvancedForms, AnimatedButton, Calendar2 as Calendar, ColorPicker, Dashboard, DataTable, DraggableList, enhanced_exports as Enhanced, ErrorBoundary, FileUpload, FloatingActionButton, GitHubStars, HealthCheck, HoverCard3D, Kanban, LazyComponent, LazyImage, LazyList, MagneticButton, MemoryAnalytics, MemoryEfficientData, OptimizedImage, PerformanceDebugger, PerformanceMonitor, PinchZoom, RichTextEditor, SelectableVirtualList, SpotlightCard, SwipeableCard, Timeline, VirtualList, animatedButtonVariants, useStreamingData, useVirtualList };
|