@moontra/moonui-pro 2.1.4 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +522 -522
- 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 +1 -1
- package/src/components/health-check/index.tsx +1 -1
- package/src/components/kanban/index.tsx +1 -1
- package/src/components/optimized-image/index.tsx +1 -1
- 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 +10 -7
- package/src/components/ui/badge.tsx +10 -7
- package/src/components/ui/button.tsx +15 -11
- package/src/components/ui/card.tsx +19 -16
- package/src/components/ui/checkbox.tsx +8 -5
- package/src/components/ui/color-picker.tsx +6 -4
- package/src/components/ui/dialog.tsx +23 -21
- package/src/components/ui/dropdown-menu.tsx +36 -34
- package/src/components/ui/hover-card-3d.tsx +1 -1
- package/src/components/ui/input.tsx +9 -6
- package/src/components/ui/label.tsx +7 -4
- package/src/components/ui/magnetic-button.tsx +1 -1
- package/src/components/ui/popover.tsx +11 -9
- package/src/components/ui/progress.tsx +5 -2
- package/src/components/ui/select.tsx +23 -21
- package/src/components/ui/separator.tsx +8 -5
- package/src/components/ui/skeleton.tsx +1 -1
- package/src/components/ui/slider.tsx +8 -5
- package/src/components/ui/spotlight-card.tsx +1 -1
- package/src/components/ui/switch.tsx +6 -3
- package/src/components/ui/tabs.tsx +12 -9
- package/src/components/ui/textarea.tsx +7 -4
- package/src/components/ui/toast.tsx +9 -7
- package/src/components/ui/tooltip.tsx +13 -11
- 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,8 +1981,8 @@ var CardFooter = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
1981
1981
|
...props
|
|
1982
1982
|
}
|
|
1983
1983
|
));
|
|
1984
|
-
|
|
1985
|
-
var
|
|
1984
|
+
MoonUICardFooterPro.displayName = "MoonUICardFooterPro";
|
|
1985
|
+
var moonUIButtonProVariants = cva(
|
|
1986
1986
|
[
|
|
1987
1987
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap",
|
|
1988
1988
|
"font-medium relative",
|
|
@@ -2131,7 +2131,7 @@ var buttonVariants = cva(
|
|
|
2131
2131
|
}
|
|
2132
2132
|
}
|
|
2133
2133
|
);
|
|
2134
|
-
var
|
|
2134
|
+
var MoonUIButtonPro2 = React16.forwardRef(
|
|
2135
2135
|
({
|
|
2136
2136
|
className,
|
|
2137
2137
|
variant,
|
|
@@ -2150,7 +2150,7 @@ var Button = React16.forwardRef(
|
|
|
2150
2150
|
return /* @__PURE__ */ jsxs(
|
|
2151
2151
|
Comp,
|
|
2152
2152
|
{
|
|
2153
|
-
className: cn(
|
|
2153
|
+
className: cn(moonUIButtonProVariants({ variant, size, rounded, fullWidth, className })),
|
|
2154
2154
|
ref,
|
|
2155
2155
|
disabled: disabled || loading,
|
|
2156
2156
|
"data-loading": loading ? "" : void 0,
|
|
@@ -2165,7 +2165,7 @@ var Button = 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,
|
|
@@ -3385,7 +3385,7 @@ var Label = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
3385
3385
|
}
|
|
3386
3386
|
));
|
|
3387
3387
|
Label.displayName = LabelPrimitive.Root.displayName;
|
|
3388
|
-
var
|
|
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,
|
|
@@ -3472,7 +3472,7 @@ var SelectScrollDownButton = React16.forwardRef(({ className, ...props }, ref) =
|
|
|
3472
3472
|
}
|
|
3473
3473
|
));
|
|
3474
3474
|
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
3475
|
-
var
|
|
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,
|
|
@@ -3509,7 +3509,7 @@ var SelectContent = React16.forwardRef(({ className, children, position = "item-
|
|
|
3509
3509
|
}
|
|
3510
3510
|
) }));
|
|
3511
3511
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
3512
|
-
|
|
3512
|
+
React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3513
3513
|
SelectPrimitive.Label,
|
|
3514
3514
|
{
|
|
3515
3515
|
ref,
|
|
@@ -3518,7 +3518,7 @@ var SelectLabel = React16.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
3518
3518
|
}
|
|
3519
3519
|
));
|
|
3520
3520
|
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
3521
|
-
var
|
|
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,
|
|
@@ -3545,7 +3545,7 @@ var SelectItem = React16.forwardRef(({ className, children, variant = "default",
|
|
|
3545
3545
|
}
|
|
3546
3546
|
));
|
|
3547
3547
|
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
3548
|
-
|
|
3548
|
+
React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3549
3549
|
SelectPrimitive.Separator,
|
|
3550
3550
|
{
|
|
3551
3551
|
ref,
|
|
@@ -3554,8 +3554,8 @@ var SelectSeparator = React16.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
3554
3554
|
}
|
|
3555
3555
|
));
|
|
3556
3556
|
SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
3557
|
-
var
|
|
3558
|
-
var
|
|
3557
|
+
var MoonUIDialogPro = DialogPrimitive2.Root;
|
|
3558
|
+
var MoonUIDialogTriggerPro = DialogPrimitive2.Trigger;
|
|
3559
3559
|
var DialogPortal = DialogPrimitive2.Portal;
|
|
3560
3560
|
var overlayVariants = cva(
|
|
3561
3561
|
"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",
|
|
@@ -3638,7 +3638,7 @@ var dialogContentVariants = cva(
|
|
|
3638
3638
|
}
|
|
3639
3639
|
}
|
|
3640
3640
|
);
|
|
3641
|
-
var
|
|
3641
|
+
var MoonUIDialogContentPro = React16.forwardRef(
|
|
3642
3642
|
({
|
|
3643
3643
|
className,
|
|
3644
3644
|
children,
|
|
@@ -3723,7 +3723,7 @@ var DialogContent = React16.forwardRef(
|
|
|
3723
3723
|
}
|
|
3724
3724
|
);
|
|
3725
3725
|
DialogContent.displayName = DialogPrimitive2.Content.displayName;
|
|
3726
|
-
var
|
|
3726
|
+
var MoonUIDialogHeaderPro = ({
|
|
3727
3727
|
className,
|
|
3728
3728
|
...props
|
|
3729
3729
|
}) => /* @__PURE__ */ jsx(
|
|
@@ -3736,8 +3736,8 @@ var DialogHeader = ({
|
|
|
3736
3736
|
...props
|
|
3737
3737
|
}
|
|
3738
3738
|
);
|
|
3739
|
-
|
|
3740
|
-
var
|
|
3739
|
+
MoonUIDialogHeaderPro.displayName = "MoonUIDialogHeaderPro";
|
|
3740
|
+
var MoonUIDialogFooterPro = ({
|
|
3741
3741
|
className,
|
|
3742
3742
|
...props
|
|
3743
3743
|
}) => /* @__PURE__ */ jsx(
|
|
@@ -3750,8 +3750,8 @@ var DialogFooter = ({
|
|
|
3750
3750
|
...props
|
|
3751
3751
|
}
|
|
3752
3752
|
);
|
|
3753
|
-
|
|
3754
|
-
var
|
|
3753
|
+
MoonUIDialogFooterPro.displayName = "MoonUIDialogFooterPro";
|
|
3754
|
+
var MoonUIDialogTitlePro = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3755
3755
|
DialogPrimitive2.Title,
|
|
3756
3756
|
{
|
|
3757
3757
|
ref,
|
|
@@ -3763,7 +3763,7 @@ var DialogTitle = React16.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
3763
3763
|
}
|
|
3764
3764
|
));
|
|
3765
3765
|
DialogTitle.displayName = DialogPrimitive2.Title.displayName;
|
|
3766
|
-
var
|
|
3766
|
+
var MoonUIDialogDescriptionPro = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3767
3767
|
DialogPrimitive2.Description,
|
|
3768
3768
|
{
|
|
3769
3769
|
ref,
|
|
@@ -3915,19 +3915,19 @@ function EventDialog({
|
|
|
3915
3915
|
color: selectedType?.color || prev.color
|
|
3916
3916
|
}));
|
|
3917
3917
|
};
|
|
3918
|
-
return /* @__PURE__ */ jsx(
|
|
3919
|
-
/* @__PURE__ */ jsxs(
|
|
3920
|
-
/* @__PURE__ */ jsxs(
|
|
3918
|
+
return /* @__PURE__ */ jsx(MoonUIDialogPro, { open, onOpenChange, children: /* @__PURE__ */ jsxs(MoonUIDialogContentPro, { className: "sm:max-w-[500px]", children: [
|
|
3919
|
+
/* @__PURE__ */ jsxs(MoonUIDialogHeaderPro, { children: [
|
|
3920
|
+
/* @__PURE__ */ jsxs(MoonUIDialogTitlePro, { className: "flex items-center gap-2", children: [
|
|
3921
3921
|
/* @__PURE__ */ jsx(Calendar, { className: "w-5 h-5" }),
|
|
3922
3922
|
mode === "create" ? "Create Event" : "Edit Event"
|
|
3923
3923
|
] }),
|
|
3924
|
-
/* @__PURE__ */ jsx(
|
|
3924
|
+
/* @__PURE__ */ jsx(MoonUIDialogDescriptionPro, { children: mode === "create" ? "Add a new event to your calendar." : "Edit the event details." })
|
|
3925
3925
|
] }),
|
|
3926
3926
|
/* @__PURE__ */ jsxs("form", { onSubmit: handleSubmit, className: "space-y-4", children: [
|
|
3927
3927
|
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
3928
|
-
/* @__PURE__ */ jsx(
|
|
3928
|
+
/* @__PURE__ */ jsx(MoonUILabelPro2, { htmlFor: "title", children: "Title *" }),
|
|
3929
3929
|
/* @__PURE__ */ jsx(
|
|
3930
|
-
|
|
3930
|
+
MoonUIInputPro,
|
|
3931
3931
|
{
|
|
3932
3932
|
id: "title",
|
|
3933
3933
|
value: formData.title,
|
|
@@ -3939,9 +3939,9 @@ function EventDialog({
|
|
|
3939
3939
|
errors.title && /* @__PURE__ */ jsx("p", { className: "text-sm text-red-500", children: errors.title })
|
|
3940
3940
|
] }),
|
|
3941
3941
|
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
3942
|
-
/* @__PURE__ */ jsx(
|
|
3942
|
+
/* @__PURE__ */ jsx(MoonUILabelPro2, { htmlFor: "description", children: "Description" }),
|
|
3943
3943
|
/* @__PURE__ */ jsx(
|
|
3944
|
-
|
|
3944
|
+
MoonUITextareaPro,
|
|
3945
3945
|
{
|
|
3946
3946
|
id: "description",
|
|
3947
3947
|
value: formData.description,
|
|
@@ -3953,9 +3953,9 @@ function EventDialog({
|
|
|
3953
3953
|
] }),
|
|
3954
3954
|
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-3 gap-4", children: [
|
|
3955
3955
|
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
3956
|
-
/* @__PURE__ */ jsx(
|
|
3956
|
+
/* @__PURE__ */ jsx(MoonUILabelPro2, { htmlFor: "date", children: "Date *" }),
|
|
3957
3957
|
/* @__PURE__ */ jsx(
|
|
3958
|
-
|
|
3958
|
+
MoonUIInputPro,
|
|
3959
3959
|
{
|
|
3960
3960
|
id: "date",
|
|
3961
3961
|
type: "date",
|
|
@@ -3967,9 +3967,9 @@ function EventDialog({
|
|
|
3967
3967
|
errors.date && /* @__PURE__ */ jsx("p", { className: "text-sm text-red-500", children: errors.date })
|
|
3968
3968
|
] }),
|
|
3969
3969
|
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
3970
|
-
/* @__PURE__ */ jsx(
|
|
3970
|
+
/* @__PURE__ */ jsx(MoonUILabelPro2, { htmlFor: "startTime", children: "Start Time" }),
|
|
3971
3971
|
/* @__PURE__ */ jsx(
|
|
3972
|
-
|
|
3972
|
+
MoonUIInputPro,
|
|
3973
3973
|
{
|
|
3974
3974
|
id: "startTime",
|
|
3975
3975
|
type: "time",
|
|
@@ -3980,9 +3980,9 @@ function EventDialog({
|
|
|
3980
3980
|
)
|
|
3981
3981
|
] }),
|
|
3982
3982
|
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
3983
|
-
/* @__PURE__ */ jsx(
|
|
3983
|
+
/* @__PURE__ */ jsx(MoonUILabelPro2, { htmlFor: "endTime", children: "End Time" }),
|
|
3984
3984
|
/* @__PURE__ */ jsx(
|
|
3985
|
-
|
|
3985
|
+
MoonUIInputPro,
|
|
3986
3986
|
{
|
|
3987
3987
|
id: "endTime",
|
|
3988
3988
|
type: "time",
|
|
@@ -3996,12 +3996,12 @@ function EventDialog({
|
|
|
3996
3996
|
] })
|
|
3997
3997
|
] }),
|
|
3998
3998
|
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
3999
|
-
/* @__PURE__ */ jsxs(
|
|
3999
|
+
/* @__PURE__ */ jsxs(MoonUILabelPro2, { htmlFor: "location", className: "flex items-center gap-2", children: [
|
|
4000
4000
|
/* @__PURE__ */ jsx(MapPin, { className: "w-4 h-4" }),
|
|
4001
4001
|
"Location"
|
|
4002
4002
|
] }),
|
|
4003
4003
|
/* @__PURE__ */ jsx(
|
|
4004
|
-
|
|
4004
|
+
MoonUIInputPro,
|
|
4005
4005
|
{
|
|
4006
4006
|
id: "location",
|
|
4007
4007
|
value: formData.location,
|
|
@@ -4012,13 +4012,13 @@ function EventDialog({
|
|
|
4012
4012
|
] }),
|
|
4013
4013
|
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 gap-4", children: [
|
|
4014
4014
|
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
4015
|
-
/* @__PURE__ */ jsxs(
|
|
4015
|
+
/* @__PURE__ */ jsxs(MoonUILabelPro2, { className: "flex items-center gap-2", children: [
|
|
4016
4016
|
/* @__PURE__ */ jsx(Type, { className: "w-4 h-4" }),
|
|
4017
4017
|
"Type"
|
|
4018
4018
|
] }),
|
|
4019
|
-
/* @__PURE__ */ jsxs(
|
|
4020
|
-
/* @__PURE__ */ jsx(
|
|
4021
|
-
/* @__PURE__ */ jsx(
|
|
4019
|
+
/* @__PURE__ */ jsxs(MoonUISelectPro, { value: formData.type, onValueChange: handleTypeChange, children: [
|
|
4020
|
+
/* @__PURE__ */ jsx(MoonUISelectTriggerPro, { children: /* @__PURE__ */ jsx(MoonUISelectValuePro, {}) }),
|
|
4021
|
+
/* @__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
4022
|
/* @__PURE__ */ jsx(
|
|
4023
4023
|
"div",
|
|
4024
4024
|
{
|
|
@@ -4031,7 +4031,7 @@ function EventDialog({
|
|
|
4031
4031
|
] })
|
|
4032
4032
|
] }),
|
|
4033
4033
|
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
4034
|
-
/* @__PURE__ */ jsxs(
|
|
4034
|
+
/* @__PURE__ */ jsxs(MoonUILabelPro2, { className: "flex items-center gap-2", children: [
|
|
4035
4035
|
/* @__PURE__ */ jsx(Palette, { className: "w-4 h-4" }),
|
|
4036
4036
|
"Color"
|
|
4037
4037
|
] }),
|
|
@@ -4062,9 +4062,9 @@ function EventDialog({
|
|
|
4062
4062
|
] })
|
|
4063
4063
|
] }),
|
|
4064
4064
|
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
4065
|
-
/* @__PURE__ */ jsx(
|
|
4065
|
+
/* @__PURE__ */ jsx(MoonUILabelPro2, { htmlFor: "attendees", children: "Attendees" }),
|
|
4066
4066
|
/* @__PURE__ */ jsx(
|
|
4067
|
-
|
|
4067
|
+
MoonUIInputPro,
|
|
4068
4068
|
{
|
|
4069
4069
|
id: "attendees",
|
|
4070
4070
|
value: formData.attendees,
|
|
@@ -4073,9 +4073,9 @@ function EventDialog({
|
|
|
4073
4073
|
}
|
|
4074
4074
|
)
|
|
4075
4075
|
] }),
|
|
4076
|
-
/* @__PURE__ */ jsxs(
|
|
4076
|
+
/* @__PURE__ */ jsxs(MoonUIDialogFooterPro, { className: "gap-2", children: [
|
|
4077
4077
|
mode === "edit" && onDelete && /* @__PURE__ */ jsx(
|
|
4078
|
-
|
|
4078
|
+
MoonUIButtonPro2,
|
|
4079
4079
|
{
|
|
4080
4080
|
type: "button",
|
|
4081
4081
|
variant: "destructive",
|
|
@@ -4085,7 +4085,7 @@ function EventDialog({
|
|
|
4085
4085
|
}
|
|
4086
4086
|
),
|
|
4087
4087
|
/* @__PURE__ */ jsx(
|
|
4088
|
-
|
|
4088
|
+
MoonUIButtonPro2,
|
|
4089
4089
|
{
|
|
4090
4090
|
type: "button",
|
|
4091
4091
|
variant: "outline",
|
|
@@ -4094,7 +4094,7 @@ function EventDialog({
|
|
|
4094
4094
|
children: "Cancel"
|
|
4095
4095
|
}
|
|
4096
4096
|
),
|
|
4097
|
-
/* @__PURE__ */ jsx(
|
|
4097
|
+
/* @__PURE__ */ jsx(MoonUIButtonPro2, { type: "submit", disabled: isSubmitting, children: isSubmitting ? mode === "create" ? "Creating..." : "Saving..." : mode === "create" ? "Create Event" : "Save Changes" })
|
|
4098
4098
|
] })
|
|
4099
4099
|
] })
|
|
4100
4100
|
] }) });
|
|
@@ -4137,12 +4137,12 @@ function Calendar2({
|
|
|
4137
4137
|
showProUpgrade = false
|
|
4138
4138
|
}) {
|
|
4139
4139
|
if (showProUpgrade) {
|
|
4140
|
-
return /* @__PURE__ */ jsx(
|
|
4140
|
+
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
4141
|
/* @__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
4142
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
4143
4143
|
/* @__PURE__ */ jsx("h3", { className: "font-semibold text-lg mb-2", children: "Pro Feature" }),
|
|
4144
4144
|
/* @__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(
|
|
4145
|
+
/* @__PURE__ */ jsx("div", { className: "flex gap-3 justify-center", children: /* @__PURE__ */ jsx("a", { href: "/pricing", children: /* @__PURE__ */ jsxs(MoonUIButtonPro2, { size: "sm", children: [
|
|
4146
4146
|
/* @__PURE__ */ jsx(Sparkles, { className: "mr-2 h-4 w-4" }),
|
|
4147
4147
|
"Upgrade to Pro"
|
|
4148
4148
|
] }) }) })
|
|
@@ -4286,23 +4286,23 @@ function Calendar2({
|
|
|
4286
4286
|
});
|
|
4287
4287
|
const visibleDaysOfWeek = showWeekends ? DAYS_OF_WEEK : DAYS_OF_WEEK.slice(1, 6);
|
|
4288
4288
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
4289
|
-
/* @__PURE__ */ jsxs(
|
|
4290
|
-
/* @__PURE__ */ jsx(
|
|
4289
|
+
/* @__PURE__ */ jsxs(MoonUICardPro, { className: cn("w-full max-w-full overflow-hidden", className), style: { height: height ? `${height}px` : void 0 }, children: [
|
|
4290
|
+
/* @__PURE__ */ jsx(MoonUICardHeaderPro, { children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
4291
4291
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
4292
|
-
/* @__PURE__ */ jsxs(
|
|
4292
|
+
/* @__PURE__ */ jsxs(MoonUICardTitlePro, { className: "flex items-center gap-2", children: [
|
|
4293
4293
|
/* @__PURE__ */ jsx(Calendar, { className: "h-5 w-5" }),
|
|
4294
4294
|
"Calendar"
|
|
4295
4295
|
] }),
|
|
4296
|
-
/* @__PURE__ */ jsxs(
|
|
4296
|
+
/* @__PURE__ */ jsxs(MoonUICardDescriptionPro, { children: [
|
|
4297
4297
|
MONTHS[currentMonth],
|
|
4298
4298
|
" ",
|
|
4299
4299
|
currentYear
|
|
4300
4300
|
] })
|
|
4301
4301
|
] }),
|
|
4302
4302
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
4303
|
-
/* @__PURE__ */ jsx(
|
|
4303
|
+
/* @__PURE__ */ jsx(MoonUIButtonPro2, { variant: "outline", size: "sm", onClick: goToToday, children: "Today" }),
|
|
4304
4304
|
/* @__PURE__ */ jsx(
|
|
4305
|
-
|
|
4305
|
+
MoonUIButtonPro2,
|
|
4306
4306
|
{
|
|
4307
4307
|
variant: "outline",
|
|
4308
4308
|
size: "sm",
|
|
@@ -4312,7 +4312,7 @@ function Calendar2({
|
|
|
4312
4312
|
}
|
|
4313
4313
|
),
|
|
4314
4314
|
/* @__PURE__ */ jsx(
|
|
4315
|
-
|
|
4315
|
+
MoonUIButtonPro2,
|
|
4316
4316
|
{
|
|
4317
4317
|
variant: "outline",
|
|
4318
4318
|
size: "sm",
|
|
@@ -4323,7 +4323,7 @@ function Calendar2({
|
|
|
4323
4323
|
)
|
|
4324
4324
|
] })
|
|
4325
4325
|
] }) }),
|
|
4326
|
-
/* @__PURE__ */ jsx(
|
|
4326
|
+
/* @__PURE__ */ jsx(MoonUICardContentPro, { className: "overflow-x-auto", children: /* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
|
|
4327
4327
|
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-7 gap-1 w-full", style: { minWidth: "500px" }, children: [
|
|
4328
4328
|
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
4329
|
filteredDays.map((date, index) => {
|
|
@@ -4352,7 +4352,7 @@ function Calendar2({
|
|
|
4352
4352
|
"text-sm font-medium",
|
|
4353
4353
|
isTodayDate && "text-primary font-bold"
|
|
4354
4354
|
), children: date.getDate() }),
|
|
4355
|
-
dayEvents.length > 0 && /* @__PURE__ */ jsx(
|
|
4355
|
+
dayEvents.length > 0 && /* @__PURE__ */ jsx(MoonUIBadgePro, { variant: "secondary", className: "text-xs px-1", children: dayEvents.length })
|
|
4356
4356
|
] }),
|
|
4357
4357
|
/* @__PURE__ */ jsxs("div", { className: "flex-1 space-y-1 overflow-hidden", children: [
|
|
4358
4358
|
dayEvents.slice(0, 3).map((event) => /* @__PURE__ */ jsxs(
|
|
@@ -4374,7 +4374,7 @@ function Calendar2({
|
|
|
4374
4374
|
/* @__PURE__ */ jsx("span", { className: "truncate flex-1", children: event.title }),
|
|
4375
4375
|
showEventDetails && /* @__PURE__ */ jsxs("div", { className: "hidden group-hover:flex items-center gap-1 ml-1", children: [
|
|
4376
4376
|
/* @__PURE__ */ jsx(
|
|
4377
|
-
|
|
4377
|
+
MoonUIButtonPro2,
|
|
4378
4378
|
{
|
|
4379
4379
|
variant: "ghost",
|
|
4380
4380
|
size: "sm",
|
|
@@ -4384,7 +4384,7 @@ function Calendar2({
|
|
|
4384
4384
|
}
|
|
4385
4385
|
),
|
|
4386
4386
|
/* @__PURE__ */ jsx(
|
|
4387
|
-
|
|
4387
|
+
MoonUIButtonPro2,
|
|
4388
4388
|
{
|
|
4389
4389
|
variant: "ghost",
|
|
4390
4390
|
size: "sm",
|
|
@@ -4433,7 +4433,7 @@ function Calendar2({
|
|
|
4433
4433
|
/* @__PURE__ */ jsx("h5", { className: "font-medium", children: event.title }),
|
|
4434
4434
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1", children: [
|
|
4435
4435
|
/* @__PURE__ */ jsx(
|
|
4436
|
-
|
|
4436
|
+
MoonUIButtonPro2,
|
|
4437
4437
|
{
|
|
4438
4438
|
variant: "ghost",
|
|
4439
4439
|
size: "sm",
|
|
@@ -4442,7 +4442,7 @@ function Calendar2({
|
|
|
4442
4442
|
}
|
|
4443
4443
|
),
|
|
4444
4444
|
/* @__PURE__ */ jsx(
|
|
4445
|
-
|
|
4445
|
+
MoonUIButtonPro2,
|
|
4446
4446
|
{
|
|
4447
4447
|
variant: "ghost",
|
|
4448
4448
|
size: "sm",
|
|
@@ -4479,7 +4479,7 @@ function Calendar2({
|
|
|
4479
4479
|
getEventsForDate(selectedDate).length === 0 && /* @__PURE__ */ jsxs("div", { className: "text-center py-4", children: [
|
|
4480
4480
|
/* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground mb-2", children: "No events scheduled for this date" }),
|
|
4481
4481
|
/* @__PURE__ */ jsxs(
|
|
4482
|
-
|
|
4482
|
+
MoonUIButtonPro2,
|
|
4483
4483
|
{
|
|
4484
4484
|
variant: "outline",
|
|
4485
4485
|
size: "sm",
|
|
@@ -4513,7 +4513,7 @@ function Calendar2({
|
|
|
4513
4513
|
)
|
|
4514
4514
|
] });
|
|
4515
4515
|
}
|
|
4516
|
-
|
|
4516
|
+
cva(
|
|
4517
4517
|
"relative flex shrink-0 overflow-hidden",
|
|
4518
4518
|
{
|
|
4519
4519
|
variants: {
|
|
@@ -4547,7 +4547,7 @@ var avatarVariants = cva(
|
|
|
4547
4547
|
}
|
|
4548
4548
|
}
|
|
4549
4549
|
);
|
|
4550
|
-
var
|
|
4550
|
+
var MoonUIAvatarPro = React16.forwardRef(({ className, size, radius, variant, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
4551
4551
|
AvatarPrimitive.Root,
|
|
4552
4552
|
{
|
|
4553
4553
|
ref,
|
|
@@ -4556,7 +4556,7 @@ var Avatar = React16.forwardRef(({ className, size, radius, variant, ...props },
|
|
|
4556
4556
|
}
|
|
4557
4557
|
));
|
|
4558
4558
|
Avatar.displayName = AvatarPrimitive.Root.displayName;
|
|
4559
|
-
var
|
|
4559
|
+
var MoonUIAvatarImagePro = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
4560
4560
|
AvatarPrimitive.Image,
|
|
4561
4561
|
{
|
|
4562
4562
|
ref,
|
|
@@ -4565,7 +4565,7 @@ var AvatarImage = React16.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
4565
4565
|
}
|
|
4566
4566
|
));
|
|
4567
4567
|
AvatarImage.displayName = AvatarPrimitive.Image.displayName;
|
|
4568
|
-
var
|
|
4568
|
+
var MoonUIAvatarFallbackPro = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
4569
4569
|
AvatarPrimitive.Fallback,
|
|
4570
4570
|
{
|
|
4571
4571
|
ref,
|
|
@@ -4638,12 +4638,12 @@ function Kanban({
|
|
|
4638
4638
|
}) {
|
|
4639
4639
|
const { hasProAccess, isLoading } = useSubscription();
|
|
4640
4640
|
if (!isLoading && !hasProAccess) {
|
|
4641
|
-
return /* @__PURE__ */ jsx(
|
|
4641
|
+
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
4642
|
/* @__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
4643
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
4644
4644
|
/* @__PURE__ */ jsx("h3", { className: "font-semibold text-lg mb-2", children: "Pro Feature" }),
|
|
4645
4645
|
/* @__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(
|
|
4646
|
+
/* @__PURE__ */ jsx("div", { className: "flex gap-3 justify-center", children: /* @__PURE__ */ jsx("a", { href: "/pricing", children: /* @__PURE__ */ jsxs(MoonUIButtonPro2, { size: "sm", children: [
|
|
4647
4647
|
/* @__PURE__ */ jsx(Sparkles, { className: "mr-2 h-4 w-4" }),
|
|
4648
4648
|
"Upgrade to Pro"
|
|
4649
4649
|
] }) }) })
|
|
@@ -4754,8 +4754,8 @@ function Kanban({
|
|
|
4754
4754
|
onDragEnter: (e) => handleDragEnter(e, column.id),
|
|
4755
4755
|
onDragLeave: (e) => handleDragLeave(e, column.id),
|
|
4756
4756
|
onDrop: (e) => handleDrop(e, column.id),
|
|
4757
|
-
children: /* @__PURE__ */ jsxs(
|
|
4758
|
-
/* @__PURE__ */ jsxs(
|
|
4757
|
+
children: /* @__PURE__ */ jsxs(MoonUICardPro, { className: "h-full", children: [
|
|
4758
|
+
/* @__PURE__ */ jsxs(MoonUICardHeaderPro, { className: "pb-3", children: [
|
|
4759
4759
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
4760
4760
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
4761
4761
|
column.color && /* @__PURE__ */ jsx(
|
|
@@ -4765,17 +4765,17 @@ function Kanban({
|
|
|
4765
4765
|
style: { backgroundColor: column.color }
|
|
4766
4766
|
}
|
|
4767
4767
|
),
|
|
4768
|
-
/* @__PURE__ */ jsx(
|
|
4769
|
-
/* @__PURE__ */ jsx(
|
|
4768
|
+
/* @__PURE__ */ jsx(MoonUICardTitlePro, { className: "text-sm font-medium", children: column.title }),
|
|
4769
|
+
/* @__PURE__ */ jsx(MoonUIBadgePro, { variant: "secondary", className: "text-xs", children: column.cards.length })
|
|
4770
4770
|
] }),
|
|
4771
|
-
/* @__PURE__ */ jsx(
|
|
4771
|
+
/* @__PURE__ */ jsx(MoonUIButtonPro2, { variant: "ghost", size: "sm", children: /* @__PURE__ */ jsx(MoreHorizontal, { className: "h-4 w-4" }) })
|
|
4772
4772
|
] }),
|
|
4773
|
-
column.limit && /* @__PURE__ */ jsx(
|
|
4773
|
+
column.limit && /* @__PURE__ */ jsx(MoonUICardDescriptionPro, { className: cn(
|
|
4774
4774
|
"text-xs",
|
|
4775
4775
|
isOverLimit && "text-destructive"
|
|
4776
4776
|
), children: isOverLimit ? "Over limit" : `${column.cards.length}/${column.limit} cards` })
|
|
4777
4777
|
] }),
|
|
4778
|
-
/* @__PURE__ */ jsxs(
|
|
4778
|
+
/* @__PURE__ */ jsxs(MoonUICardContentPro, { className: "space-y-3", children: [
|
|
4779
4779
|
column.cards.map((card) => /* @__PURE__ */ jsxs(
|
|
4780
4780
|
"div",
|
|
4781
4781
|
{
|
|
@@ -4797,7 +4797,7 @@ function Kanban({
|
|
|
4797
4797
|
] }),
|
|
4798
4798
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1 opacity-0 group-hover:opacity-100 transition-opacity", children: [
|
|
4799
4799
|
/* @__PURE__ */ jsx(
|
|
4800
|
-
|
|
4800
|
+
MoonUIButtonPro2,
|
|
4801
4801
|
{
|
|
4802
4802
|
variant: "ghost",
|
|
4803
4803
|
size: "sm",
|
|
@@ -4807,7 +4807,7 @@ function Kanban({
|
|
|
4807
4807
|
}
|
|
4808
4808
|
),
|
|
4809
4809
|
/* @__PURE__ */ jsx(
|
|
4810
|
-
|
|
4810
|
+
MoonUIButtonPro2,
|
|
4811
4811
|
{
|
|
4812
4812
|
variant: "ghost",
|
|
4813
4813
|
size: "sm",
|
|
@@ -4819,7 +4819,7 @@ function Kanban({
|
|
|
4819
4819
|
/* @__PURE__ */ jsx("div", { className: "cursor-move", children: /* @__PURE__ */ jsx(GripVertical, { className: "h-3 w-3 text-muted-foreground" }) })
|
|
4820
4820
|
] })
|
|
4821
4821
|
] }),
|
|
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(
|
|
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(MoonUIBadgePro, { variant: "outline", className: "text-xs px-1 py-0", children: tag }, index)) }),
|
|
4823
4823
|
showCardDetails && /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between text-xs text-muted-foreground", children: [
|
|
4824
4824
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
4825
4825
|
card.priority && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1", children: [
|
|
@@ -4843,9 +4843,9 @@ function Kanban({
|
|
|
4843
4843
|
/* @__PURE__ */ jsx(Paperclip, { className: "h-3 w-3" }),
|
|
4844
4844
|
/* @__PURE__ */ jsx("span", { children: card.attachments })
|
|
4845
4845
|
] }),
|
|
4846
|
-
card.assignee && /* @__PURE__ */ jsxs(
|
|
4847
|
-
/* @__PURE__ */ jsx(
|
|
4848
|
-
/* @__PURE__ */ jsx(
|
|
4846
|
+
card.assignee && /* @__PURE__ */ jsxs(MoonUIAvatarPro, { className: "h-5 w-5", children: [
|
|
4847
|
+
/* @__PURE__ */ jsx(MoonUIAvatarImagePro, { src: card.assignee.avatar }),
|
|
4848
|
+
/* @__PURE__ */ jsx(MoonUIAvatarFallbackPro, { className: "text-xs", children: getInitials(card.assignee.name) })
|
|
4849
4849
|
] })
|
|
4850
4850
|
] })
|
|
4851
4851
|
] })
|
|
@@ -4854,7 +4854,7 @@ function Kanban({
|
|
|
4854
4854
|
card.id
|
|
4855
4855
|
)),
|
|
4856
4856
|
onAddCard && /* @__PURE__ */ jsxs(
|
|
4857
|
-
|
|
4857
|
+
MoonUIButtonPro2,
|
|
4858
4858
|
{
|
|
4859
4859
|
variant: "ghost",
|
|
4860
4860
|
size: "sm",
|
|
@@ -4874,7 +4874,7 @@ function Kanban({
|
|
|
4874
4874
|
);
|
|
4875
4875
|
}),
|
|
4876
4876
|
showAddColumn && onAddColumn && /* @__PURE__ */ jsx("div", { className: "flex-shrink-0 w-80", children: /* @__PURE__ */ jsxs(
|
|
4877
|
-
|
|
4877
|
+
MoonUIButtonPro2,
|
|
4878
4878
|
{
|
|
4879
4879
|
variant: "outline",
|
|
4880
4880
|
onClick: onAddColumn,
|
|
@@ -43415,9 +43415,9 @@ var SlashCommandsExtension = Extension.create({
|
|
|
43415
43415
|
];
|
|
43416
43416
|
}
|
|
43417
43417
|
});
|
|
43418
|
-
var
|
|
43419
|
-
var
|
|
43420
|
-
|
|
43418
|
+
var MoonUIDropdownMenuPro = DropdownMenuPrimitive.Root;
|
|
43419
|
+
var MoonUIDropdownMenuTriggerPro = DropdownMenuPrimitive.Trigger;
|
|
43420
|
+
React16.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
43421
43421
|
DropdownMenuPrimitive.SubTrigger,
|
|
43422
43422
|
{
|
|
43423
43423
|
ref,
|
|
@@ -43434,7 +43434,7 @@ var DropdownMenuSubTrigger = React16.forwardRef(({ className, inset, children, .
|
|
|
43434
43434
|
}
|
|
43435
43435
|
));
|
|
43436
43436
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
43437
|
-
|
|
43437
|
+
React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
43438
43438
|
DropdownMenuPrimitive.SubContent,
|
|
43439
43439
|
{
|
|
43440
43440
|
ref,
|
|
@@ -43446,7 +43446,7 @@ var DropdownMenuSubContent = React16.forwardRef(({ className, ...props }, ref) =
|
|
|
43446
43446
|
}
|
|
43447
43447
|
));
|
|
43448
43448
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
43449
|
-
var
|
|
43449
|
+
var MoonUIDropdownMenuContentPro = React16.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
43450
43450
|
DropdownMenuPrimitive.Content,
|
|
43451
43451
|
{
|
|
43452
43452
|
ref,
|
|
@@ -43459,7 +43459,7 @@ var DropdownMenuContent = React16.forwardRef(({ className, sideOffset = 4, ...pr
|
|
|
43459
43459
|
}
|
|
43460
43460
|
) }));
|
|
43461
43461
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
43462
|
-
var
|
|
43462
|
+
var MoonUIDropdownMenuItemPro = React16.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
43463
43463
|
DropdownMenuPrimitive.Item,
|
|
43464
43464
|
{
|
|
43465
43465
|
ref,
|
|
@@ -43472,7 +43472,7 @@ var DropdownMenuItem = React16.forwardRef(({ className, inset, ...props }, ref)
|
|
|
43472
43472
|
}
|
|
43473
43473
|
));
|
|
43474
43474
|
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
43475
|
-
|
|
43475
|
+
React16.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
43476
43476
|
DropdownMenuPrimitive.CheckboxItem,
|
|
43477
43477
|
{
|
|
43478
43478
|
ref,
|
|
@@ -43489,7 +43489,7 @@ var DropdownMenuCheckboxItem = React16.forwardRef(({ className, children, checke
|
|
|
43489
43489
|
}
|
|
43490
43490
|
));
|
|
43491
43491
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
43492
|
-
|
|
43492
|
+
React16.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
43493
43493
|
DropdownMenuPrimitive.RadioItem,
|
|
43494
43494
|
{
|
|
43495
43495
|
ref,
|
|
@@ -43505,7 +43505,7 @@ var DropdownMenuRadioItem = React16.forwardRef(({ className, children, ...props
|
|
|
43505
43505
|
}
|
|
43506
43506
|
));
|
|
43507
43507
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
43508
|
-
|
|
43508
|
+
React16.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
43509
43509
|
DropdownMenuPrimitive.Label,
|
|
43510
43510
|
{
|
|
43511
43511
|
ref,
|
|
@@ -43518,7 +43518,7 @@ var DropdownMenuLabel = React16.forwardRef(({ className, inset, ...props }, ref)
|
|
|
43518
43518
|
}
|
|
43519
43519
|
));
|
|
43520
43520
|
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
43521
|
-
var
|
|
43521
|
+
var MoonUIDropdownMenuSeparatorPro = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
43522
43522
|
DropdownMenuPrimitive.Separator,
|
|
43523
43523
|
{
|
|
43524
43524
|
ref,
|
|
@@ -43527,7 +43527,7 @@ var DropdownMenuSeparator = React16.forwardRef(({ className, ...props }, ref) =>
|
|
|
43527
43527
|
}
|
|
43528
43528
|
));
|
|
43529
43529
|
DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
|
|
43530
|
-
var
|
|
43530
|
+
var MoonUITooltipProviderPro = TooltipPrimitive.Provider;
|
|
43531
43531
|
var tooltipVariants = cva(
|
|
43532
43532
|
"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
43533
|
{
|
|
@@ -43552,8 +43552,8 @@ var tooltipVariants = cva(
|
|
|
43552
43552
|
}
|
|
43553
43553
|
}
|
|
43554
43554
|
);
|
|
43555
|
-
var
|
|
43556
|
-
var
|
|
43555
|
+
var MoonUITooltipPro = TooltipPrimitive.Root;
|
|
43556
|
+
var MoonUITooltipTriggerPro = TooltipPrimitive.Trigger;
|
|
43557
43557
|
var TooltipArrow = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
43558
43558
|
TooltipPrimitive.Arrow,
|
|
43559
43559
|
{
|
|
@@ -43563,7 +43563,7 @@ var TooltipArrow = React16.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
43563
43563
|
}
|
|
43564
43564
|
));
|
|
43565
43565
|
TooltipArrow.displayName = TooltipPrimitive.Arrow.displayName;
|
|
43566
|
-
var
|
|
43566
|
+
var MoonUITooltipContentPro = React16.forwardRef(({ className, variant, size, showArrow = false, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
43567
43567
|
TooltipPrimitive.Content,
|
|
43568
43568
|
{
|
|
43569
43569
|
ref,
|
|
@@ -43675,9 +43675,9 @@ var popoverContentVariants = cva(
|
|
|
43675
43675
|
}
|
|
43676
43676
|
}
|
|
43677
43677
|
);
|
|
43678
|
-
var
|
|
43679
|
-
var
|
|
43680
|
-
var
|
|
43678
|
+
var MoonUIPopoverPro = PopoverPrimitive.Root;
|
|
43679
|
+
var MoonUIPopoverTriggerPro = PopoverPrimitive.Trigger;
|
|
43680
|
+
var MoonUIPopoverContentPro = React16.forwardRef(({
|
|
43681
43681
|
className,
|
|
43682
43682
|
variant,
|
|
43683
43683
|
size,
|
|
@@ -43738,7 +43738,7 @@ var defaultColors = [
|
|
|
43738
43738
|
"#EC4899",
|
|
43739
43739
|
"#F43F5E"
|
|
43740
43740
|
];
|
|
43741
|
-
var
|
|
43741
|
+
var MoonUIColorPickerPro = ({
|
|
43742
43742
|
value = "#000000",
|
|
43743
43743
|
onChange,
|
|
43744
43744
|
className,
|
|
@@ -43803,7 +43803,7 @@ var ColorPicker = ({
|
|
|
43803
43803
|
)) })
|
|
43804
43804
|
] });
|
|
43805
43805
|
};
|
|
43806
|
-
|
|
43806
|
+
cva(
|
|
43807
43807
|
"relative flex w-full touch-none select-none items-center",
|
|
43808
43808
|
{
|
|
43809
43809
|
variants: {
|
|
@@ -43883,7 +43883,7 @@ var sliderThumbVariants = cva(
|
|
|
43883
43883
|
}
|
|
43884
43884
|
}
|
|
43885
43885
|
);
|
|
43886
|
-
var
|
|
43886
|
+
var MoonUISliderPro = React16.forwardRef(({
|
|
43887
43887
|
className,
|
|
43888
43888
|
size,
|
|
43889
43889
|
trackVariant,
|
|
@@ -44037,7 +44037,7 @@ var Slider = React16.forwardRef(({
|
|
|
44037
44037
|
)
|
|
44038
44038
|
] });
|
|
44039
44039
|
});
|
|
44040
|
-
|
|
44040
|
+
MoonUISliderPro.displayName = "MoonUISliderPro";
|
|
44041
44041
|
var ToastViewport = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
44042
44042
|
ToastPrimitives.Viewport,
|
|
44043
44043
|
{
|
|
@@ -44050,7 +44050,7 @@ var ToastViewport = React16.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
44050
44050
|
}
|
|
44051
44051
|
));
|
|
44052
44052
|
ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
|
|
44053
|
-
|
|
44053
|
+
cva(
|
|
44054
44054
|
"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
44055
|
{
|
|
44056
44056
|
variants: {
|
|
@@ -44067,7 +44067,7 @@ var toastVariants = cva(
|
|
|
44067
44067
|
}
|
|
44068
44068
|
}
|
|
44069
44069
|
);
|
|
44070
|
-
|
|
44070
|
+
React16.forwardRef(({ className, variant, ...props }, ref) => {
|
|
44071
44071
|
return /* @__PURE__ */ jsx(
|
|
44072
44072
|
ToastPrimitives.Root,
|
|
44073
44073
|
{
|
|
@@ -44282,7 +44282,7 @@ var EditorColorPicker = ({
|
|
|
44282
44282
|
currentColor = "#000000"
|
|
44283
44283
|
}) => {
|
|
44284
44284
|
return /* @__PURE__ */ jsx(
|
|
44285
|
-
|
|
44285
|
+
MoonUIColorPickerPro,
|
|
44286
44286
|
{
|
|
44287
44287
|
value: currentColor,
|
|
44288
44288
|
onChange: onColorSelect,
|
|
@@ -44352,9 +44352,9 @@ var ToolbarButton = ({
|
|
|
44352
44352
|
);
|
|
44353
44353
|
if (!tooltip)
|
|
44354
44354
|
return button;
|
|
44355
|
-
return /* @__PURE__ */ jsxs(
|
|
44356
|
-
/* @__PURE__ */ jsx(
|
|
44357
|
-
/* @__PURE__ */ jsx(
|
|
44355
|
+
return /* @__PURE__ */ jsxs(MoonUITooltipPro, { children: [
|
|
44356
|
+
/* @__PURE__ */ jsx(MoonUITooltipTriggerPro, { asChild: true, children: button }),
|
|
44357
|
+
/* @__PURE__ */ jsx(MoonUITooltipContentPro, { children: /* @__PURE__ */ jsx("p", { children: tooltip }) })
|
|
44358
44358
|
] });
|
|
44359
44359
|
};
|
|
44360
44360
|
function RichTextEditor({
|
|
@@ -44387,12 +44387,12 @@ function RichTextEditor({
|
|
|
44387
44387
|
}) {
|
|
44388
44388
|
const { hasProAccess, isLoading } = useSubscription();
|
|
44389
44389
|
if (!isLoading && !hasProAccess) {
|
|
44390
|
-
return /* @__PURE__ */ jsx(
|
|
44390
|
+
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
44391
|
/* @__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
44392
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
44393
44393
|
/* @__PURE__ */ jsx("h3", { className: "font-semibold text-lg mb-2", children: "Pro Feature" }),
|
|
44394
44394
|
/* @__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(
|
|
44395
|
+
/* @__PURE__ */ jsx("div", { className: "flex gap-3 justify-center", children: /* @__PURE__ */ jsx("a", { href: "/pricing", children: /* @__PURE__ */ jsxs(MoonUIButtonPro2, { size: "sm", children: [
|
|
44396
44396
|
/* @__PURE__ */ jsx(Sparkles, { className: "mr-2 h-4 w-4" }),
|
|
44397
44397
|
"Upgrade to Pro"
|
|
44398
44398
|
] }) }) })
|
|
@@ -44762,7 +44762,7 @@ function RichTextEditor({
|
|
|
44762
44762
|
return null;
|
|
44763
44763
|
}
|
|
44764
44764
|
return /* @__PURE__ */ jsxs("div", { className: cn("border rounded-lg overflow-hidden bg-white dark:bg-gray-950", className), children: [
|
|
44765
|
-
/* @__PURE__ */ jsx(
|
|
44765
|
+
/* @__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
44766
|
(features.bold || features.italic || features.underline || features.strike || features.code) && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1 shrink-0", children: [
|
|
44767
44767
|
features.bold && /* @__PURE__ */ jsx(
|
|
44768
44768
|
ToolbarButton,
|
|
@@ -44817,22 +44817,22 @@ function RichTextEditor({
|
|
|
44817
44817
|
] }),
|
|
44818
44818
|
(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
44819
|
(features.heading || features.align) && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1 shrink-0", children: [
|
|
44820
|
-
features.heading && /* @__PURE__ */ jsxs(
|
|
44821
|
-
/* @__PURE__ */ jsx(
|
|
44820
|
+
features.heading && /* @__PURE__ */ jsxs(MoonUIDropdownMenuPro, { children: [
|
|
44821
|
+
/* @__PURE__ */ jsx(MoonUIDropdownMenuTriggerPro, { asChild: true, children: /* @__PURE__ */ jsxs(MoonUIButtonPro2, { variant: "ghost", size: "sm", className: "h-8 px-2", disabled: isSourceView, children: [
|
|
44822
44822
|
/* @__PURE__ */ jsx(Type, { className: "w-4 h-4 mr-1" }),
|
|
44823
44823
|
/* @__PURE__ */ jsx(ChevronDown, { className: "w-3 h-3" })
|
|
44824
44824
|
] }) }),
|
|
44825
|
-
/* @__PURE__ */ jsxs(
|
|
44826
|
-
/* @__PURE__ */ jsx(
|
|
44827
|
-
/* @__PURE__ */ jsxs(
|
|
44825
|
+
/* @__PURE__ */ jsxs(MoonUIDropdownMenuContentPro, { children: [
|
|
44826
|
+
/* @__PURE__ */ jsx(MoonUIDropdownMenuItemPro, { onClick: () => editor.chain().focus().setParagraph().run(), children: "Paragraph" }),
|
|
44827
|
+
/* @__PURE__ */ jsxs(MoonUIDropdownMenuItemPro, { onClick: () => editor.chain().focus().toggleHeading({ level: 1 }).run(), children: [
|
|
44828
44828
|
/* @__PURE__ */ jsx(Heading1, { className: "w-4 h-4 mr-2" }),
|
|
44829
44829
|
" Heading 1"
|
|
44830
44830
|
] }),
|
|
44831
|
-
/* @__PURE__ */ jsxs(
|
|
44831
|
+
/* @__PURE__ */ jsxs(MoonUIDropdownMenuItemPro, { onClick: () => editor.chain().focus().toggleHeading({ level: 2 }).run(), children: [
|
|
44832
44832
|
/* @__PURE__ */ jsx(Heading2, { className: "w-4 h-4 mr-2" }),
|
|
44833
44833
|
" Heading 2"
|
|
44834
44834
|
] }),
|
|
44835
|
-
/* @__PURE__ */ jsxs(
|
|
44835
|
+
/* @__PURE__ */ jsxs(MoonUIDropdownMenuItemPro, { onClick: () => editor.chain().focus().toggleHeading({ level: 3 }).run(), children: [
|
|
44836
44836
|
/* @__PURE__ */ jsx(Heading3, { className: "w-4 h-4 mr-2" }),
|
|
44837
44837
|
" Heading 3"
|
|
44838
44838
|
] })
|
|
@@ -44928,9 +44928,9 @@ function RichTextEditor({
|
|
|
44928
44928
|
] }),
|
|
44929
44929
|
(features.lists || features.blockquote) && features.color && /* @__PURE__ */ jsx("div", { className: "w-px h-6 bg-border mx-1 shrink-0" }),
|
|
44930
44930
|
features.color && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1 shrink-0", children: [
|
|
44931
|
-
/* @__PURE__ */ jsxs(
|
|
44932
|
-
/* @__PURE__ */ jsx(
|
|
44933
|
-
|
|
44931
|
+
/* @__PURE__ */ jsxs(MoonUIPopoverPro, { children: [
|
|
44932
|
+
/* @__PURE__ */ jsx(MoonUIPopoverTriggerPro, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
44933
|
+
MoonUIButtonPro2,
|
|
44934
44934
|
{
|
|
44935
44935
|
variant: "ghost",
|
|
44936
44936
|
size: "sm",
|
|
@@ -44940,7 +44940,7 @@ function RichTextEditor({
|
|
|
44940
44940
|
children: /* @__PURE__ */ jsx(Palette, { className: "w-4 h-4" })
|
|
44941
44941
|
}
|
|
44942
44942
|
) }),
|
|
44943
|
-
/* @__PURE__ */ jsx(
|
|
44943
|
+
/* @__PURE__ */ jsx(MoonUIPopoverContentPro, { className: "w-auto p-0", children: /* @__PURE__ */ jsx(
|
|
44944
44944
|
EditorColorPicker,
|
|
44945
44945
|
{
|
|
44946
44946
|
currentColor: currentTextColor,
|
|
@@ -44951,9 +44951,9 @@ function RichTextEditor({
|
|
|
44951
44951
|
}
|
|
44952
44952
|
) })
|
|
44953
44953
|
] }),
|
|
44954
|
-
/* @__PURE__ */ jsxs(
|
|
44955
|
-
/* @__PURE__ */ jsx(
|
|
44956
|
-
|
|
44954
|
+
/* @__PURE__ */ jsxs(MoonUIPopoverPro, { children: [
|
|
44955
|
+
/* @__PURE__ */ jsx(MoonUIPopoverTriggerPro, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
44956
|
+
MoonUIButtonPro2,
|
|
44957
44957
|
{
|
|
44958
44958
|
variant: "ghost",
|
|
44959
44959
|
size: "sm",
|
|
@@ -44963,7 +44963,7 @@ function RichTextEditor({
|
|
|
44963
44963
|
children: /* @__PURE__ */ jsx(Highlighter, { className: "w-4 h-4" })
|
|
44964
44964
|
}
|
|
44965
44965
|
) }),
|
|
44966
|
-
/* @__PURE__ */ jsx(
|
|
44966
|
+
/* @__PURE__ */ jsx(MoonUIPopoverContentPro, { className: "w-auto p-0", children: /* @__PURE__ */ jsx(
|
|
44967
44967
|
EditorColorPicker,
|
|
44968
44968
|
{
|
|
44969
44969
|
currentColor: currentBgColor,
|
|
@@ -44977,8 +44977,8 @@ function RichTextEditor({
|
|
|
44977
44977
|
] }),
|
|
44978
44978
|
features.color && (features.link || features.image || features.table) && /* @__PURE__ */ jsx("div", { className: "w-px h-6 bg-border mx-1 shrink-0" }),
|
|
44979
44979
|
(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(
|
|
44980
|
+
features.link && /* @__PURE__ */ jsxs(MoonUIDialogPro, { open: isLinkDialogOpen, onOpenChange: setIsLinkDialogOpen, children: [
|
|
44981
|
+
/* @__PURE__ */ jsx(MoonUIDialogTriggerPro, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
44982
44982
|
ToolbarButton,
|
|
44983
44983
|
{
|
|
44984
44984
|
active: editor.isActive("link"),
|
|
@@ -44998,15 +44998,15 @@ function RichTextEditor({
|
|
|
44998
44998
|
children: /* @__PURE__ */ jsx(Link2, { className: "w-4 h-4" })
|
|
44999
44999
|
}
|
|
45000
45000
|
) }),
|
|
45001
|
-
/* @__PURE__ */ jsxs(
|
|
45002
|
-
/* @__PURE__ */ jsxs(
|
|
45003
|
-
/* @__PURE__ */ jsx(
|
|
45004
|
-
/* @__PURE__ */ jsx(
|
|
45001
|
+
/* @__PURE__ */ jsxs(MoonUIDialogContentPro, { className: "sm:max-w-[425px]", children: [
|
|
45002
|
+
/* @__PURE__ */ jsxs(MoonUIDialogHeaderPro, { children: [
|
|
45003
|
+
/* @__PURE__ */ jsx(MoonUIDialogTitlePro, { children: "Add Link" }),
|
|
45004
|
+
/* @__PURE__ */ jsx(MoonUIDialogDescriptionPro, { children: "Enter the URL for the link." })
|
|
45005
45005
|
] }),
|
|
45006
45006
|
/* @__PURE__ */ jsx("div", { className: "grid gap-4 py-4", children: /* @__PURE__ */ jsxs("div", { className: "grid gap-2", children: [
|
|
45007
|
-
/* @__PURE__ */ jsx(
|
|
45007
|
+
/* @__PURE__ */ jsx(MoonUILabelPro2, { htmlFor: "url", children: "URL" }),
|
|
45008
45008
|
/* @__PURE__ */ jsx(
|
|
45009
|
-
|
|
45009
|
+
MoonUIInputPro,
|
|
45010
45010
|
{
|
|
45011
45011
|
id: "url",
|
|
45012
45012
|
value: linkUrl,
|
|
@@ -45023,7 +45023,7 @@ function RichTextEditor({
|
|
|
45023
45023
|
] }) }),
|
|
45024
45024
|
/* @__PURE__ */ jsxs("div", { className: "flex justify-between", children: [
|
|
45025
45025
|
editor.isActive("link") && /* @__PURE__ */ jsx(
|
|
45026
|
-
|
|
45026
|
+
MoonUIButtonPro2,
|
|
45027
45027
|
{
|
|
45028
45028
|
variant: "destructive",
|
|
45029
45029
|
onClick: () => {
|
|
@@ -45034,14 +45034,14 @@ function RichTextEditor({
|
|
|
45034
45034
|
}
|
|
45035
45035
|
),
|
|
45036
45036
|
/* @__PURE__ */ jsxs("div", { className: "ml-auto flex gap-2", children: [
|
|
45037
|
-
/* @__PURE__ */ jsx(
|
|
45038
|
-
/* @__PURE__ */ jsx(
|
|
45037
|
+
/* @__PURE__ */ jsx(MoonUIButtonPro2, { variant: "outline", onClick: () => setIsLinkDialogOpen(false), children: "Cancel" }),
|
|
45038
|
+
/* @__PURE__ */ jsx(MoonUIButtonPro2, { onClick: addLink, children: "Add Link" })
|
|
45039
45039
|
] })
|
|
45040
45040
|
] })
|
|
45041
45041
|
] })
|
|
45042
45042
|
] }),
|
|
45043
|
-
features.image && /* @__PURE__ */ jsxs(
|
|
45044
|
-
/* @__PURE__ */ jsx(
|
|
45043
|
+
features.image && /* @__PURE__ */ jsxs(MoonUIDialogPro, { open: isImageDialogOpen, onOpenChange: setIsImageDialogOpen, children: [
|
|
45044
|
+
/* @__PURE__ */ jsx(MoonUIDialogTriggerPro, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
45045
45045
|
ToolbarButton,
|
|
45046
45046
|
{
|
|
45047
45047
|
onClick: () => {
|
|
@@ -45055,15 +45055,15 @@ function RichTextEditor({
|
|
|
45055
45055
|
children: /* @__PURE__ */ jsx(Image$1, { className: "w-4 h-4" })
|
|
45056
45056
|
}
|
|
45057
45057
|
) }),
|
|
45058
|
-
/* @__PURE__ */ jsxs(
|
|
45059
|
-
/* @__PURE__ */ jsxs(
|
|
45060
|
-
/* @__PURE__ */ jsx(
|
|
45061
|
-
/* @__PURE__ */ jsx(
|
|
45058
|
+
/* @__PURE__ */ jsxs(MoonUIDialogContentPro, { className: "sm:max-w-[425px]", children: [
|
|
45059
|
+
/* @__PURE__ */ jsxs(MoonUIDialogHeaderPro, { children: [
|
|
45060
|
+
/* @__PURE__ */ jsx(MoonUIDialogTitlePro, { children: "Add Image" }),
|
|
45061
|
+
/* @__PURE__ */ jsx(MoonUIDialogDescriptionPro, { children: "Enter the URL for the image." })
|
|
45062
45062
|
] }),
|
|
45063
45063
|
/* @__PURE__ */ jsx("div", { className: "grid gap-4 py-4", children: /* @__PURE__ */ jsxs("div", { className: "grid gap-2", children: [
|
|
45064
|
-
/* @__PURE__ */ jsx(
|
|
45064
|
+
/* @__PURE__ */ jsx(MoonUILabelPro2, { htmlFor: "image-url", children: "Image URL" }),
|
|
45065
45065
|
/* @__PURE__ */ jsx(
|
|
45066
|
-
|
|
45066
|
+
MoonUIInputPro,
|
|
45067
45067
|
{
|
|
45068
45068
|
id: "image-url",
|
|
45069
45069
|
value: imageUrl,
|
|
@@ -45079,14 +45079,14 @@ function RichTextEditor({
|
|
|
45079
45079
|
)
|
|
45080
45080
|
] }) }),
|
|
45081
45081
|
/* @__PURE__ */ jsxs("div", { className: "flex justify-end gap-2", children: [
|
|
45082
|
-
/* @__PURE__ */ jsx(
|
|
45083
|
-
/* @__PURE__ */ jsx(
|
|
45082
|
+
/* @__PURE__ */ jsx(MoonUIButtonPro2, { variant: "outline", onClick: () => setIsImageDialogOpen(false), children: "Cancel" }),
|
|
45083
|
+
/* @__PURE__ */ jsx(MoonUIButtonPro2, { onClick: addImage, children: "Add Image" })
|
|
45084
45084
|
] })
|
|
45085
45085
|
] })
|
|
45086
45086
|
] }),
|
|
45087
45087
|
features.table && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
45088
|
-
/* @__PURE__ */ jsxs(
|
|
45089
|
-
/* @__PURE__ */ jsx(
|
|
45088
|
+
/* @__PURE__ */ jsxs(MoonUIDialogPro, { open: isTableDialogOpen, onOpenChange: setIsTableDialogOpen, children: [
|
|
45089
|
+
/* @__PURE__ */ jsx(MoonUIDialogTriggerPro, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
45090
45090
|
ToolbarButton,
|
|
45091
45091
|
{
|
|
45092
45092
|
onClick: () => editor.chain().focus().insertTable({ rows: 3, cols: 3, withHeaderRow: true }).run(),
|
|
@@ -45095,17 +45095,17 @@ function RichTextEditor({
|
|
|
45095
45095
|
children: /* @__PURE__ */ jsx(Table$1, { className: "w-4 h-4" })
|
|
45096
45096
|
}
|
|
45097
45097
|
) }),
|
|
45098
|
-
/* @__PURE__ */ jsxs(
|
|
45099
|
-
/* @__PURE__ */ jsxs(
|
|
45100
|
-
/* @__PURE__ */ jsx(
|
|
45101
|
-
/* @__PURE__ */ jsx(
|
|
45098
|
+
/* @__PURE__ */ jsxs(MoonUIDialogContentPro, { className: "sm:max-w-[425px]", children: [
|
|
45099
|
+
/* @__PURE__ */ jsxs(MoonUIDialogHeaderPro, { children: [
|
|
45100
|
+
/* @__PURE__ */ jsx(MoonUIDialogTitlePro, { children: "Create Table" }),
|
|
45101
|
+
/* @__PURE__ */ jsx(MoonUIDialogDescriptionPro, { children: "Choose the size for your new table." })
|
|
45102
45102
|
] }),
|
|
45103
45103
|
/* @__PURE__ */ jsxs("div", { className: "grid gap-4 py-4", children: [
|
|
45104
45104
|
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 gap-4", children: [
|
|
45105
45105
|
/* @__PURE__ */ jsxs("div", { className: "grid gap-2", children: [
|
|
45106
|
-
/* @__PURE__ */ jsx(
|
|
45106
|
+
/* @__PURE__ */ jsx(MoonUILabelPro2, { htmlFor: "rows", children: "Rows" }),
|
|
45107
45107
|
/* @__PURE__ */ jsx(
|
|
45108
|
-
|
|
45108
|
+
MoonUIInputPro,
|
|
45109
45109
|
{
|
|
45110
45110
|
id: "rows",
|
|
45111
45111
|
type: "number",
|
|
@@ -45117,9 +45117,9 @@ function RichTextEditor({
|
|
|
45117
45117
|
)
|
|
45118
45118
|
] }),
|
|
45119
45119
|
/* @__PURE__ */ jsxs("div", { className: "grid gap-2", children: [
|
|
45120
|
-
/* @__PURE__ */ jsx(
|
|
45120
|
+
/* @__PURE__ */ jsx(MoonUILabelPro2, { htmlFor: "cols", children: "Columns" }),
|
|
45121
45121
|
/* @__PURE__ */ jsx(
|
|
45122
|
-
|
|
45122
|
+
MoonUIInputPro,
|
|
45123
45123
|
{
|
|
45124
45124
|
id: "cols",
|
|
45125
45125
|
type: "number",
|
|
@@ -45141,32 +45141,32 @@ function RichTextEditor({
|
|
|
45141
45141
|
className: "rounded border-gray-300"
|
|
45142
45142
|
}
|
|
45143
45143
|
),
|
|
45144
|
-
/* @__PURE__ */ jsx(
|
|
45144
|
+
/* @__PURE__ */ jsx(MoonUILabelPro2, { htmlFor: "headerRow", className: "text-sm font-normal", children: "Include header row" })
|
|
45145
45145
|
] })
|
|
45146
45146
|
] }),
|
|
45147
45147
|
/* @__PURE__ */ jsxs("div", { className: "flex justify-end gap-2", children: [
|
|
45148
|
-
/* @__PURE__ */ jsx(
|
|
45149
|
-
/* @__PURE__ */ jsx(
|
|
45148
|
+
/* @__PURE__ */ jsx(MoonUIButtonPro2, { variant: "outline", onClick: () => setIsTableDialogOpen(false), children: "Cancel" }),
|
|
45149
|
+
/* @__PURE__ */ jsx(MoonUIButtonPro2, { onClick: createTable2, children: "Create Table" })
|
|
45150
45150
|
] })
|
|
45151
45151
|
] })
|
|
45152
45152
|
] }),
|
|
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(
|
|
45153
|
+
/* @__PURE__ */ jsxs(MoonUIDropdownMenuPro, { children: [
|
|
45154
|
+
/* @__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" }) }) }),
|
|
45155
|
+
/* @__PURE__ */ jsxs(MoonUIDropdownMenuContentPro, { children: [
|
|
45156
|
+
/* @__PURE__ */ jsx(MoonUIDropdownMenuItemPro, { onClick: () => editor.chain().focus().addColumnBefore().run(), children: "Add column before" }),
|
|
45157
|
+
/* @__PURE__ */ jsx(MoonUIDropdownMenuItemPro, { onClick: () => editor.chain().focus().addColumnAfter().run(), children: "Add column after" }),
|
|
45158
|
+
/* @__PURE__ */ jsx(MoonUIDropdownMenuItemPro, { onClick: () => editor.chain().focus().deleteColumn().run(), children: "Delete column" }),
|
|
45159
|
+
/* @__PURE__ */ jsx(MoonUIDropdownMenuSeparatorPro, {}),
|
|
45160
|
+
/* @__PURE__ */ jsx(MoonUIDropdownMenuItemPro, { onClick: () => editor.chain().focus().addRowBefore().run(), children: "Add row before" }),
|
|
45161
|
+
/* @__PURE__ */ jsx(MoonUIDropdownMenuItemPro, { onClick: () => editor.chain().focus().addRowAfter().run(), children: "Add row after" }),
|
|
45162
|
+
/* @__PURE__ */ jsx(MoonUIDropdownMenuItemPro, { onClick: () => editor.chain().focus().deleteRow().run(), children: "Delete row" }),
|
|
45163
|
+
/* @__PURE__ */ jsx(MoonUIDropdownMenuSeparatorPro, {}),
|
|
45164
|
+
/* @__PURE__ */ jsxs(MoonUIDropdownMenuItemPro, { onClick: () => setIsTableBorderDialogOpen(true), children: [
|
|
45165
45165
|
/* @__PURE__ */ jsx(Settings, { className: "w-4 h-4 mr-2" }),
|
|
45166
45166
|
"Table Borders"
|
|
45167
45167
|
] }),
|
|
45168
|
-
/* @__PURE__ */ jsx(
|
|
45169
|
-
/* @__PURE__ */ jsx(
|
|
45168
|
+
/* @__PURE__ */ jsx(MoonUIDropdownMenuSeparatorPro, {}),
|
|
45169
|
+
/* @__PURE__ */ jsx(MoonUIDropdownMenuItemPro, { onClick: () => editor.chain().focus().deleteTable().run(), children: "Delete table" })
|
|
45170
45170
|
] })
|
|
45171
45171
|
] })
|
|
45172
45172
|
] })
|
|
@@ -45208,9 +45208,9 @@ function RichTextEditor({
|
|
|
45208
45208
|
}
|
|
45209
45209
|
),
|
|
45210
45210
|
features.ai && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
45211
|
-
/* @__PURE__ */ jsxs(
|
|
45212
|
-
/* @__PURE__ */ jsx(
|
|
45213
|
-
|
|
45211
|
+
/* @__PURE__ */ jsxs(MoonUIDropdownMenuPro, { children: [
|
|
45212
|
+
/* @__PURE__ */ jsx(MoonUIDropdownMenuTriggerPro, { asChild: true, children: /* @__PURE__ */ jsxs(
|
|
45213
|
+
MoonUIButtonPro2,
|
|
45214
45214
|
{
|
|
45215
45215
|
variant: "ghost",
|
|
45216
45216
|
size: "sm",
|
|
@@ -45222,62 +45222,62 @@ function RichTextEditor({
|
|
|
45222
45222
|
]
|
|
45223
45223
|
}
|
|
45224
45224
|
) }),
|
|
45225
|
-
/* @__PURE__ */ jsxs(
|
|
45226
|
-
/* @__PURE__ */ jsxs(
|
|
45225
|
+
/* @__PURE__ */ jsxs(MoonUIDropdownMenuContentPro, { className: "w-56", children: [
|
|
45226
|
+
/* @__PURE__ */ jsxs(MoonUIDropdownMenuItemPro, { onClick: () => handleAIAction("rewrite"), children: [
|
|
45227
45227
|
/* @__PURE__ */ jsx(RefreshCw, { className: "w-4 h-4 mr-2" }),
|
|
45228
45228
|
"Rewrite Selection"
|
|
45229
45229
|
] }),
|
|
45230
|
-
/* @__PURE__ */ jsxs(
|
|
45230
|
+
/* @__PURE__ */ jsxs(MoonUIDropdownMenuItemPro, { onClick: () => handleAIAction("improve"), children: [
|
|
45231
45231
|
/* @__PURE__ */ jsx(Wand2, { className: "w-4 h-4 mr-2" }),
|
|
45232
45232
|
"Improve Writing"
|
|
45233
45233
|
] }),
|
|
45234
|
-
/* @__PURE__ */ jsxs(
|
|
45234
|
+
/* @__PURE__ */ jsxs(MoonUIDropdownMenuItemPro, { onClick: () => handleAIAction("expand"), children: [
|
|
45235
45235
|
/* @__PURE__ */ jsx(Maximize, { className: "w-4 h-4 mr-2" }),
|
|
45236
45236
|
"Expand Text"
|
|
45237
45237
|
] }),
|
|
45238
|
-
/* @__PURE__ */ jsxs(
|
|
45238
|
+
/* @__PURE__ */ jsxs(MoonUIDropdownMenuItemPro, { onClick: () => handleAIAction("summarize"), children: [
|
|
45239
45239
|
/* @__PURE__ */ jsx(FileText, { className: "w-4 h-4 mr-2" }),
|
|
45240
45240
|
"Summarize"
|
|
45241
45241
|
] }),
|
|
45242
|
-
/* @__PURE__ */ jsxs(
|
|
45242
|
+
/* @__PURE__ */ jsxs(MoonUIDropdownMenuItemPro, { onClick: () => handleAIAction("continue"), children: [
|
|
45243
45243
|
/* @__PURE__ */ jsx(Plus, { className: "w-4 h-4 mr-2" }),
|
|
45244
45244
|
"Continue Writing"
|
|
45245
45245
|
] }),
|
|
45246
|
-
/* @__PURE__ */ jsx(
|
|
45247
|
-
/* @__PURE__ */ jsxs(
|
|
45246
|
+
/* @__PURE__ */ jsx(MoonUIDropdownMenuSeparatorPro, {}),
|
|
45247
|
+
/* @__PURE__ */ jsxs(MoonUIDropdownMenuItemPro, { onClick: () => handleAIAction("fix"), children: [
|
|
45248
45248
|
/* @__PURE__ */ jsx(Check, { className: "w-4 h-4 mr-2" }),
|
|
45249
45249
|
"Fix Grammar & Spelling"
|
|
45250
45250
|
] }),
|
|
45251
|
-
/* @__PURE__ */ jsx(
|
|
45252
|
-
/* @__PURE__ */ jsxs(
|
|
45251
|
+
/* @__PURE__ */ jsx(MoonUIDropdownMenuSeparatorPro, {}),
|
|
45252
|
+
/* @__PURE__ */ jsxs(MoonUIDropdownMenuItemPro, { onClick: () => handleAIAction("tone_professional"), children: [
|
|
45253
45253
|
/* @__PURE__ */ jsx(Sparkles, { className: "w-4 h-4 mr-2" }),
|
|
45254
45254
|
"Make Professional"
|
|
45255
45255
|
] }),
|
|
45256
|
-
/* @__PURE__ */ jsxs(
|
|
45256
|
+
/* @__PURE__ */ jsxs(MoonUIDropdownMenuItemPro, { onClick: () => handleAIAction("tone_casual"), children: [
|
|
45257
45257
|
/* @__PURE__ */ jsx(Sparkles, { className: "w-4 h-4 mr-2" }),
|
|
45258
45258
|
"Make Casual"
|
|
45259
45259
|
] }),
|
|
45260
|
-
/* @__PURE__ */ jsxs(
|
|
45260
|
+
/* @__PURE__ */ jsxs(MoonUIDropdownMenuItemPro, { onClick: () => handleAIAction("tone_friendly"), children: [
|
|
45261
45261
|
/* @__PURE__ */ jsx(Sparkles, { className: "w-4 h-4 mr-2" }),
|
|
45262
45262
|
"Make Friendly"
|
|
45263
45263
|
] }),
|
|
45264
|
-
/* @__PURE__ */ jsxs(
|
|
45264
|
+
/* @__PURE__ */ jsxs(MoonUIDropdownMenuItemPro, { onClick: () => handleAIAction("tone_formal"), children: [
|
|
45265
45265
|
/* @__PURE__ */ jsx(Sparkles, { className: "w-4 h-4 mr-2" }),
|
|
45266
45266
|
"Make Formal"
|
|
45267
45267
|
] }),
|
|
45268
|
-
/* @__PURE__ */ jsx(
|
|
45269
|
-
/* @__PURE__ */ jsxs(
|
|
45268
|
+
/* @__PURE__ */ jsx(MoonUIDropdownMenuSeparatorPro, {}),
|
|
45269
|
+
/* @__PURE__ */ jsxs(MoonUIDropdownMenuItemPro, { onClick: () => handleAIAction("translate"), children: [
|
|
45270
45270
|
/* @__PURE__ */ jsx(Languages, { className: "w-4 h-4 mr-2" }),
|
|
45271
45271
|
"Translate to Turkish"
|
|
45272
45272
|
] }),
|
|
45273
|
-
/* @__PURE__ */ jsxs(
|
|
45273
|
+
/* @__PURE__ */ jsxs(MoonUIDropdownMenuItemPro, { onClick: () => handleAIAction("ideas"), children: [
|
|
45274
45274
|
/* @__PURE__ */ jsx(Sparkles, { className: "w-4 h-4 mr-2" }),
|
|
45275
45275
|
"Generate Ideas"
|
|
45276
45276
|
] })
|
|
45277
45277
|
] })
|
|
45278
45278
|
] }),
|
|
45279
|
-
/* @__PURE__ */ jsxs(
|
|
45280
|
-
/* @__PURE__ */ jsx(
|
|
45279
|
+
/* @__PURE__ */ jsxs(MoonUIDialogPro, { open: isAiSettingsOpen, onOpenChange: setIsAiSettingsOpen, children: [
|
|
45280
|
+
/* @__PURE__ */ jsx(MoonUIDialogTriggerPro, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
45281
45281
|
ToolbarButton,
|
|
45282
45282
|
{
|
|
45283
45283
|
onClick: () => setIsAiSettingsOpen(true),
|
|
@@ -45286,35 +45286,35 @@ function RichTextEditor({
|
|
|
45286
45286
|
children: /* @__PURE__ */ jsx(Settings, { className: "w-4 h-4" })
|
|
45287
45287
|
}
|
|
45288
45288
|
) }),
|
|
45289
|
-
/* @__PURE__ */ jsxs(
|
|
45290
|
-
/* @__PURE__ */ jsxs(
|
|
45291
|
-
/* @__PURE__ */ jsx(
|
|
45292
|
-
/* @__PURE__ */ jsx(
|
|
45289
|
+
/* @__PURE__ */ jsxs(MoonUIDialogContentPro, { className: "sm:max-w-[425px]", children: [
|
|
45290
|
+
/* @__PURE__ */ jsxs(MoonUIDialogHeaderPro, { children: [
|
|
45291
|
+
/* @__PURE__ */ jsx(MoonUIDialogTitlePro, { children: "AI Settings" }),
|
|
45292
|
+
/* @__PURE__ */ jsx(MoonUIDialogDescriptionPro, { children: "Configure your AI provider and API settings." })
|
|
45293
45293
|
] }),
|
|
45294
45294
|
/* @__PURE__ */ jsxs("div", { className: "grid gap-4 py-4", children: [
|
|
45295
45295
|
/* @__PURE__ */ jsxs("div", { className: "grid gap-2", children: [
|
|
45296
|
-
/* @__PURE__ */ jsx(
|
|
45296
|
+
/* @__PURE__ */ jsx(MoonUILabelPro2, { htmlFor: "provider", children: "Provider" }),
|
|
45297
45297
|
/* @__PURE__ */ jsxs(
|
|
45298
|
-
|
|
45298
|
+
MoonUISelectPro,
|
|
45299
45299
|
{
|
|
45300
45300
|
value: aiSettings.provider,
|
|
45301
45301
|
onValueChange: (value) => setAiSettings({ ...aiSettings, provider: value }),
|
|
45302
45302
|
children: [
|
|
45303
|
-
/* @__PURE__ */ jsx(
|
|
45304
|
-
/* @__PURE__ */ jsxs(
|
|
45305
|
-
/* @__PURE__ */ jsx(
|
|
45306
|
-
/* @__PURE__ */ jsx(
|
|
45307
|
-
/* @__PURE__ */ jsx(
|
|
45308
|
-
/* @__PURE__ */ jsx(
|
|
45303
|
+
/* @__PURE__ */ jsx(MoonUISelectTriggerPro, { children: /* @__PURE__ */ jsx(MoonUISelectValuePro, {}) }),
|
|
45304
|
+
/* @__PURE__ */ jsxs(MoonUISelectContentPro, { children: [
|
|
45305
|
+
/* @__PURE__ */ jsx(MoonUISelectItemPro, { value: "openai", children: "OpenAI" }),
|
|
45306
|
+
/* @__PURE__ */ jsx(MoonUISelectItemPro, { value: "claude", children: "Claude (Anthropic)" }),
|
|
45307
|
+
/* @__PURE__ */ jsx(MoonUISelectItemPro, { value: "gemini", children: "Gemini (Google)" }),
|
|
45308
|
+
/* @__PURE__ */ jsx(MoonUISelectItemPro, { value: "cohere", children: "Cohere" })
|
|
45309
45309
|
] })
|
|
45310
45310
|
]
|
|
45311
45311
|
}
|
|
45312
45312
|
)
|
|
45313
45313
|
] }),
|
|
45314
45314
|
/* @__PURE__ */ jsxs("div", { className: "grid gap-2", children: [
|
|
45315
|
-
/* @__PURE__ */ jsx(
|
|
45315
|
+
/* @__PURE__ */ jsx(MoonUILabelPro2, { htmlFor: "apiKey", children: "API Key" }),
|
|
45316
45316
|
/* @__PURE__ */ jsx(
|
|
45317
|
-
|
|
45317
|
+
MoonUIInputPro,
|
|
45318
45318
|
{
|
|
45319
45319
|
id: "apiKey",
|
|
45320
45320
|
type: "password",
|
|
@@ -45325,31 +45325,31 @@ function RichTextEditor({
|
|
|
45325
45325
|
)
|
|
45326
45326
|
] }),
|
|
45327
45327
|
/* @__PURE__ */ jsxs("div", { className: "grid gap-2", children: [
|
|
45328
|
-
/* @__PURE__ */ jsx(
|
|
45328
|
+
/* @__PURE__ */ jsx(MoonUILabelPro2, { htmlFor: "model", children: "Model" }),
|
|
45329
45329
|
/* @__PURE__ */ jsxs(
|
|
45330
|
-
|
|
45330
|
+
MoonUISelectPro,
|
|
45331
45331
|
{
|
|
45332
45332
|
value: aiSettings.model,
|
|
45333
45333
|
onValueChange: (value) => setAiSettings({ ...aiSettings, model: value }),
|
|
45334
45334
|
children: [
|
|
45335
|
-
/* @__PURE__ */ jsx(
|
|
45336
|
-
/* @__PURE__ */ jsxs(
|
|
45335
|
+
/* @__PURE__ */ jsx(MoonUISelectTriggerPro, { children: /* @__PURE__ */ jsx(MoonUISelectValuePro, {}) }),
|
|
45336
|
+
/* @__PURE__ */ jsxs(MoonUISelectContentPro, { children: [
|
|
45337
45337
|
aiSettings.provider === "openai" && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
45338
|
-
/* @__PURE__ */ jsx(
|
|
45339
|
-
/* @__PURE__ */ jsx(
|
|
45338
|
+
/* @__PURE__ */ jsx(MoonUISelectItemPro, { value: "gpt-4", children: "GPT-4" }),
|
|
45339
|
+
/* @__PURE__ */ jsx(MoonUISelectItemPro, { value: "gpt-3.5-turbo", children: "GPT-3.5 Turbo" })
|
|
45340
45340
|
] }),
|
|
45341
45341
|
aiSettings.provider === "claude" && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
45342
|
-
/* @__PURE__ */ jsx(
|
|
45343
|
-
/* @__PURE__ */ jsx(
|
|
45344
|
-
/* @__PURE__ */ jsx(
|
|
45342
|
+
/* @__PURE__ */ jsx(MoonUISelectItemPro, { value: "claude-3-opus", children: "Claude 3 Opus" }),
|
|
45343
|
+
/* @__PURE__ */ jsx(MoonUISelectItemPro, { value: "claude-3-sonnet", children: "Claude 3 Sonnet" }),
|
|
45344
|
+
/* @__PURE__ */ jsx(MoonUISelectItemPro, { value: "claude-3-haiku", children: "Claude 3 Haiku" })
|
|
45345
45345
|
] }),
|
|
45346
45346
|
aiSettings.provider === "gemini" && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
45347
|
-
/* @__PURE__ */ jsx(
|
|
45348
|
-
/* @__PURE__ */ jsx(
|
|
45347
|
+
/* @__PURE__ */ jsx(MoonUISelectItemPro, { value: "gemini-pro", children: "Gemini Pro" }),
|
|
45348
|
+
/* @__PURE__ */ jsx(MoonUISelectItemPro, { value: "gemini-pro-vision", children: "Gemini Pro Vision" })
|
|
45349
45349
|
] }),
|
|
45350
45350
|
aiSettings.provider === "cohere" && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
45351
|
-
/* @__PURE__ */ jsx(
|
|
45352
|
-
/* @__PURE__ */ jsx(
|
|
45351
|
+
/* @__PURE__ */ jsx(MoonUISelectItemPro, { value: "command", children: "Command" }),
|
|
45352
|
+
/* @__PURE__ */ jsx(MoonUISelectItemPro, { value: "command-light", children: "Command Light" })
|
|
45353
45353
|
] })
|
|
45354
45354
|
] })
|
|
45355
45355
|
]
|
|
@@ -45358,9 +45358,9 @@ function RichTextEditor({
|
|
|
45358
45358
|
] }),
|
|
45359
45359
|
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 gap-4", children: [
|
|
45360
45360
|
/* @__PURE__ */ jsxs("div", { className: "grid gap-2", children: [
|
|
45361
|
-
/* @__PURE__ */ jsx(
|
|
45361
|
+
/* @__PURE__ */ jsx(MoonUILabelPro2, { htmlFor: "temperature", children: "Temperature" }),
|
|
45362
45362
|
/* @__PURE__ */ jsx(
|
|
45363
|
-
|
|
45363
|
+
MoonUIInputPro,
|
|
45364
45364
|
{
|
|
45365
45365
|
id: "temperature",
|
|
45366
45366
|
type: "number",
|
|
@@ -45373,9 +45373,9 @@ function RichTextEditor({
|
|
|
45373
45373
|
)
|
|
45374
45374
|
] }),
|
|
45375
45375
|
/* @__PURE__ */ jsxs("div", { className: "grid gap-2", children: [
|
|
45376
|
-
/* @__PURE__ */ jsx(
|
|
45376
|
+
/* @__PURE__ */ jsx(MoonUILabelPro2, { htmlFor: "maxTokens", children: "Max Tokens" }),
|
|
45377
45377
|
/* @__PURE__ */ jsx(
|
|
45378
|
-
|
|
45378
|
+
MoonUIInputPro,
|
|
45379
45379
|
{
|
|
45380
45380
|
id: "maxTokens",
|
|
45381
45381
|
type: "number",
|
|
@@ -45388,7 +45388,7 @@ function RichTextEditor({
|
|
|
45388
45388
|
] })
|
|
45389
45389
|
] })
|
|
45390
45390
|
] }),
|
|
45391
|
-
/* @__PURE__ */ jsx("div", { className: "flex justify-end", children: /* @__PURE__ */ jsx(
|
|
45391
|
+
/* @__PURE__ */ jsx("div", { className: "flex justify-end", children: /* @__PURE__ */ jsx(MoonUIButtonPro2, { onClick: () => {
|
|
45392
45392
|
setIsAiSettingsOpen(false);
|
|
45393
45393
|
toast({
|
|
45394
45394
|
title: "Settings saved",
|
|
@@ -45400,17 +45400,17 @@ function RichTextEditor({
|
|
|
45400
45400
|
] })
|
|
45401
45401
|
] })
|
|
45402
45402
|
] }) }) }),
|
|
45403
|
-
/* @__PURE__ */ jsx(
|
|
45404
|
-
/* @__PURE__ */ jsxs(
|
|
45405
|
-
/* @__PURE__ */ jsx(
|
|
45406
|
-
/* @__PURE__ */ jsx(
|
|
45403
|
+
/* @__PURE__ */ jsx(MoonUIDialogPro, { open: isTableBorderDialogOpen, onOpenChange: setIsTableBorderDialogOpen, children: /* @__PURE__ */ jsxs(MoonUIDialogContentPro, { className: "sm:max-w-[425px]", children: [
|
|
45404
|
+
/* @__PURE__ */ jsxs(MoonUIDialogHeaderPro, { children: [
|
|
45405
|
+
/* @__PURE__ */ jsx(MoonUIDialogTitlePro, { children: "Table Border Settings" }),
|
|
45406
|
+
/* @__PURE__ */ jsx(MoonUIDialogDescriptionPro, { children: "Customize the appearance of table borders." })
|
|
45407
45407
|
] }),
|
|
45408
45408
|
/* @__PURE__ */ jsxs("div", { className: "grid gap-6 py-4", children: [
|
|
45409
45409
|
/* @__PURE__ */ jsxs("div", { className: "grid gap-3", children: [
|
|
45410
|
-
/* @__PURE__ */ jsx(
|
|
45410
|
+
/* @__PURE__ */ jsx(MoonUILabelPro2, { htmlFor: "border-width", children: "Border Width" }),
|
|
45411
45411
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-4", children: [
|
|
45412
45412
|
/* @__PURE__ */ jsx(
|
|
45413
|
-
|
|
45413
|
+
MoonUISliderPro,
|
|
45414
45414
|
{
|
|
45415
45415
|
id: "border-width",
|
|
45416
45416
|
min: 0,
|
|
@@ -45428,10 +45428,10 @@ function RichTextEditor({
|
|
|
45428
45428
|
] })
|
|
45429
45429
|
] }),
|
|
45430
45430
|
/* @__PURE__ */ jsxs("div", { className: "grid gap-3", children: [
|
|
45431
|
-
/* @__PURE__ */ jsx(
|
|
45431
|
+
/* @__PURE__ */ jsx(MoonUILabelPro2, { htmlFor: "border-color", children: "Border Color" }),
|
|
45432
45432
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
45433
45433
|
/* @__PURE__ */ jsx(
|
|
45434
|
-
|
|
45434
|
+
MoonUIColorPickerPro,
|
|
45435
45435
|
{
|
|
45436
45436
|
value: tableBorderColor,
|
|
45437
45437
|
onChange: setTableBorderColor,
|
|
@@ -45444,23 +45444,23 @@ function RichTextEditor({
|
|
|
45444
45444
|
] })
|
|
45445
45445
|
] }),
|
|
45446
45446
|
/* @__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(
|
|
45447
|
+
/* @__PURE__ */ jsx(MoonUILabelPro2, { htmlFor: "border-style", children: "Border Style" }),
|
|
45448
|
+
/* @__PURE__ */ jsxs(MoonUISelectPro, { value: tableBorderStyle, onValueChange: setTableBorderStyle, children: [
|
|
45449
|
+
/* @__PURE__ */ jsx(MoonUISelectTriggerPro, { children: /* @__PURE__ */ jsx(MoonUISelectValuePro, {}) }),
|
|
45450
|
+
/* @__PURE__ */ jsxs(MoonUISelectContentPro, { children: [
|
|
45451
|
+
/* @__PURE__ */ jsx(MoonUISelectItemPro, { value: "solid", children: "Solid" }),
|
|
45452
|
+
/* @__PURE__ */ jsx(MoonUISelectItemPro, { value: "dashed", children: "Dashed" }),
|
|
45453
|
+
/* @__PURE__ */ jsx(MoonUISelectItemPro, { value: "dotted", children: "Dotted" }),
|
|
45454
|
+
/* @__PURE__ */ jsx(MoonUISelectItemPro, { value: "double", children: "Double" }),
|
|
45455
|
+
/* @__PURE__ */ jsx(MoonUISelectItemPro, { value: "groove", children: "Groove" }),
|
|
45456
|
+
/* @__PURE__ */ jsx(MoonUISelectItemPro, { value: "ridge", children: "Ridge" }),
|
|
45457
|
+
/* @__PURE__ */ jsx(MoonUISelectItemPro, { value: "inset", children: "Inset" }),
|
|
45458
|
+
/* @__PURE__ */ jsx(MoonUISelectItemPro, { value: "outset", children: "Outset" })
|
|
45459
45459
|
] })
|
|
45460
45460
|
] })
|
|
45461
45461
|
] }),
|
|
45462
45462
|
/* @__PURE__ */ jsxs("div", { className: "grid gap-3", children: [
|
|
45463
|
-
/* @__PURE__ */ jsx(
|
|
45463
|
+
/* @__PURE__ */ jsx(MoonUILabelPro2, { children: "Preview" }),
|
|
45464
45464
|
/* @__PURE__ */ jsx("div", { className: "p-4 bg-gray-50 dark:bg-gray-900 rounded-lg", children: /* @__PURE__ */ jsxs(
|
|
45465
45465
|
"table",
|
|
45466
45466
|
{
|
|
@@ -45522,8 +45522,8 @@ function RichTextEditor({
|
|
|
45522
45522
|
] })
|
|
45523
45523
|
] }),
|
|
45524
45524
|
/* @__PURE__ */ jsxs("div", { className: "flex justify-end gap-2", children: [
|
|
45525
|
-
/* @__PURE__ */ jsx(
|
|
45526
|
-
/* @__PURE__ */ jsx(
|
|
45525
|
+
/* @__PURE__ */ jsx(MoonUIButtonPro2, { variant: "outline", onClick: () => setIsTableBorderDialogOpen(false), children: "Cancel" }),
|
|
45526
|
+
/* @__PURE__ */ jsx(MoonUIButtonPro2, { onClick: () => {
|
|
45527
45527
|
applyTableBorders(tableBorderWidth, tableBorderColor, tableBorderStyle);
|
|
45528
45528
|
setIsTableBorderDialogOpen(false);
|
|
45529
45529
|
toast({
|
|
@@ -46239,13 +46239,13 @@ function Timeline({
|
|
|
46239
46239
|
] }),
|
|
46240
46240
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 text-xs text-muted-foreground", children: [
|
|
46241
46241
|
showRelativeTime ? /* @__PURE__ */ jsx("span", { children: getRelativeTime(event.date) }) : /* @__PURE__ */ jsx("span", { children: formatTime(event.date) }),
|
|
46242
|
-
/* @__PURE__ */ jsx(
|
|
46242
|
+
/* @__PURE__ */ jsx(MoonUIBadgePro, { variant: "outline", className: cn$1("text-xs", textColor), children: event.type })
|
|
46243
46243
|
] })
|
|
46244
46244
|
] }),
|
|
46245
46245
|
showUserInfo && event.user && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 mb-2", children: [
|
|
46246
|
-
/* @__PURE__ */ jsxs(
|
|
46247
|
-
/* @__PURE__ */ jsx(
|
|
46248
|
-
/* @__PURE__ */ jsx(
|
|
46246
|
+
/* @__PURE__ */ jsxs(MoonUIAvatarPro, { className: "h-6 w-6", children: [
|
|
46247
|
+
/* @__PURE__ */ jsx(MoonUIAvatarImagePro, { src: event.user.avatar }),
|
|
46248
|
+
/* @__PURE__ */ jsx(MoonUIAvatarFallbackPro, { className: "text-xs", children: getInitials(event.user.name) })
|
|
46249
46249
|
] }),
|
|
46250
46250
|
/* @__PURE__ */ jsx("span", { className: "text-sm text-muted-foreground", children: event.user.name })
|
|
46251
46251
|
] }),
|
|
@@ -46271,7 +46271,7 @@ function Timeline({
|
|
|
46271
46271
|
/* @__PURE__ */ jsx("span", { children: "View details" })
|
|
46272
46272
|
] })
|
|
46273
46273
|
] }),
|
|
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(
|
|
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(MoonUIBadgePro, { variant: "secondary", className: "text-xs", children: tag }, tagIndex)) })
|
|
46275
46275
|
] })
|
|
46276
46276
|
]
|
|
46277
46277
|
},
|
|
@@ -46285,20 +46285,20 @@ function Timeline({
|
|
|
46285
46285
|
events2.map((event, index) => renderEvent(event, index, index === events2.length - 1))
|
|
46286
46286
|
] }, date));
|
|
46287
46287
|
};
|
|
46288
|
-
return /* @__PURE__ */ jsxs(
|
|
46289
|
-
/* @__PURE__ */ jsxs(
|
|
46290
|
-
/* @__PURE__ */ jsxs(
|
|
46288
|
+
return /* @__PURE__ */ jsxs(MoonUICardPro, { className: cn$1("w-full", className), children: [
|
|
46289
|
+
/* @__PURE__ */ jsxs(MoonUICardHeaderPro, { children: [
|
|
46290
|
+
/* @__PURE__ */ jsxs(MoonUICardTitlePro, { className: "flex items-center gap-2", children: [
|
|
46291
46291
|
/* @__PURE__ */ jsx(Clock, { className: "h-5 w-5" }),
|
|
46292
46292
|
"Timeline"
|
|
46293
46293
|
] }),
|
|
46294
|
-
/* @__PURE__ */ jsxs(
|
|
46294
|
+
/* @__PURE__ */ jsxs(MoonUICardDescriptionPro, { children: [
|
|
46295
46295
|
sortedEvents.length,
|
|
46296
46296
|
" event",
|
|
46297
46297
|
sortedEvents.length !== 1 ? "s" : "",
|
|
46298
46298
|
" tracked"
|
|
46299
46299
|
] })
|
|
46300
46300
|
] }),
|
|
46301
|
-
/* @__PURE__ */ jsx(
|
|
46301
|
+
/* @__PURE__ */ jsx(MoonUICardContentPro, { children: sortedEvents.length > 0 ? /* @__PURE__ */ jsx("div", { className: cn$1(
|
|
46302
46302
|
"space-y-0",
|
|
46303
46303
|
orientation === "horizontal" && "flex overflow-x-auto gap-6"
|
|
46304
46304
|
), children: groupByDate ? renderGroupedEvents() : sortedEvents.map(
|
|
@@ -46526,24 +46526,24 @@ function AdvancedChart({
|
|
|
46526
46526
|
}
|
|
46527
46527
|
};
|
|
46528
46528
|
if (loading) {
|
|
46529
|
-
return /* @__PURE__ */ jsx(
|
|
46529
|
+
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
46530
|
/* @__PURE__ */ jsx(RefreshCw, { className: "h-4 w-4 animate-spin" }),
|
|
46531
46531
|
/* @__PURE__ */ jsx("span", { children: "Loading chart..." })
|
|
46532
46532
|
] }) }) });
|
|
46533
46533
|
}
|
|
46534
46534
|
if (error) {
|
|
46535
|
-
return /* @__PURE__ */ jsx(
|
|
46535
|
+
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
46536
|
/* @__PURE__ */ jsx("p", { className: "text-destructive mb-2", children: error }),
|
|
46537
|
-
onRefresh && /* @__PURE__ */ jsxs(
|
|
46537
|
+
onRefresh && /* @__PURE__ */ jsxs(MoonUIButtonPro2, { variant: "outline", onClick: onRefresh, children: [
|
|
46538
46538
|
/* @__PURE__ */ jsx(RefreshCw, { className: "mr-2 h-4 w-4" }),
|
|
46539
46539
|
"Retry"
|
|
46540
46540
|
] })
|
|
46541
46541
|
] }) }) });
|
|
46542
46542
|
}
|
|
46543
|
-
return /* @__PURE__ */ jsxs(
|
|
46544
|
-
/* @__PURE__ */ jsxs(
|
|
46543
|
+
return /* @__PURE__ */ jsxs(MoonUICardPro, { className: cn$1("w-full", className), ref: chartRef, children: [
|
|
46544
|
+
/* @__PURE__ */ jsxs(MoonUICardHeaderPro, { className: "flex flex-row items-center justify-between space-y-0 pb-2", children: [
|
|
46545
46545
|
/* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
|
|
46546
|
-
/* @__PURE__ */ jsxs(
|
|
46546
|
+
/* @__PURE__ */ jsxs(MoonUICardTitlePro, { className: "text-base font-medium", children: [
|
|
46547
46547
|
title,
|
|
46548
46548
|
trend && /* @__PURE__ */ jsxs("span", { className: "ml-2 inline-flex items-center", children: [
|
|
46549
46549
|
trend.direction === "up" && /* @__PURE__ */ jsx(TrendingUp, { className: "h-4 w-4 text-green-500" }),
|
|
@@ -46563,13 +46563,13 @@ function AdvancedChart({
|
|
|
46563
46563
|
subtitle && /* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: subtitle })
|
|
46564
46564
|
] }),
|
|
46565
46565
|
/* @__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(
|
|
46566
|
+
onRefresh && /* @__PURE__ */ jsx(MoonUIButtonPro2, { variant: "ghost", size: "sm", onClick: onRefresh, children: /* @__PURE__ */ jsx(RefreshCw, { className: "h-4 w-4" }) }),
|
|
46567
|
+
/* @__PURE__ */ jsx(MoonUIButtonPro2, { variant: "ghost", size: "sm", children: /* @__PURE__ */ jsx(Settings, { className: "h-4 w-4" }) }),
|
|
46568
|
+
onExport && /* @__PURE__ */ jsx(MoonUIButtonPro2, { variant: "ghost", size: "sm", onClick: () => handleExport("png"), children: /* @__PURE__ */ jsx(Download, { className: "h-4 w-4" }) }),
|
|
46569
|
+
/* @__PURE__ */ jsx(MoonUIButtonPro2, { variant: "ghost", size: "sm", onClick: () => setIsFullscreen(!isFullscreen), children: /* @__PURE__ */ jsx(Maximize2, { className: "h-4 w-4" }) })
|
|
46570
46570
|
] })
|
|
46571
46571
|
] }),
|
|
46572
|
-
/* @__PURE__ */ jsx(
|
|
46572
|
+
/* @__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
46573
|
] });
|
|
46574
46574
|
}
|
|
46575
46575
|
var METRIC_COLORS = {
|
|
@@ -46643,7 +46643,7 @@ function Dashboard({
|
|
|
46643
46643
|
const renderMetricCard = (metric) => {
|
|
46644
46644
|
const colorClass = metric.color ? METRIC_COLORS[metric.color] : "text-foreground";
|
|
46645
46645
|
return /* @__PURE__ */ jsxs(
|
|
46646
|
-
|
|
46646
|
+
MoonUICardPro,
|
|
46647
46647
|
{
|
|
46648
46648
|
className: cn$1(
|
|
46649
46649
|
"cursor-pointer hover:shadow-md transition-shadow",
|
|
@@ -46651,11 +46651,11 @@ function Dashboard({
|
|
|
46651
46651
|
),
|
|
46652
46652
|
onClick: () => onMetricClick?.(metric),
|
|
46653
46653
|
children: [
|
|
46654
|
-
/* @__PURE__ */ jsxs(
|
|
46655
|
-
/* @__PURE__ */ jsx(
|
|
46654
|
+
/* @__PURE__ */ jsxs(MoonUICardHeaderPro, { className: "flex flex-row items-center justify-between space-y-0 pb-2", children: [
|
|
46655
|
+
/* @__PURE__ */ jsx(MoonUICardTitlePro, { className: "text-sm font-medium", children: metric.title }),
|
|
46656
46656
|
/* @__PURE__ */ jsx("div", { className: cn$1("h-4 w-4", colorClass), children: metric.icon })
|
|
46657
46657
|
] }),
|
|
46658
|
-
/* @__PURE__ */ jsxs(
|
|
46658
|
+
/* @__PURE__ */ jsxs(MoonUICardContentPro, { children: [
|
|
46659
46659
|
/* @__PURE__ */ jsx("div", { className: "text-2xl font-bold", children: formatValue(metric.value) }),
|
|
46660
46660
|
metric.change && /* @__PURE__ */ jsxs("div", { className: cn$1(
|
|
46661
46661
|
"flex items-center text-xs mt-1",
|
|
@@ -46677,14 +46677,14 @@ function Dashboard({
|
|
|
46677
46677
|
};
|
|
46678
46678
|
const renderWidget = (widget) => {
|
|
46679
46679
|
const sizeClass = WIDGET_SIZES[widget.size || "md"];
|
|
46680
|
-
return /* @__PURE__ */ jsxs(
|
|
46681
|
-
/* @__PURE__ */ jsx(
|
|
46680
|
+
return /* @__PURE__ */ jsxs(MoonUICardPro, { className: cn$1("h-fit", sizeClass), children: [
|
|
46681
|
+
/* @__PURE__ */ jsx(MoonUICardHeaderPro, { children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
46682
46682
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
46683
|
-
/* @__PURE__ */ jsx(
|
|
46684
|
-
widget.description && /* @__PURE__ */ jsx(
|
|
46683
|
+
/* @__PURE__ */ jsx(MoonUICardTitlePro, { className: "text-base", children: widget.title }),
|
|
46684
|
+
widget.description && /* @__PURE__ */ jsx(MoonUICardDescriptionPro, { className: "mt-1", children: widget.description })
|
|
46685
46685
|
] }),
|
|
46686
46686
|
/* @__PURE__ */ jsx(
|
|
46687
|
-
|
|
46687
|
+
MoonUIButtonPro2,
|
|
46688
46688
|
{
|
|
46689
46689
|
variant: "ghost",
|
|
46690
46690
|
size: "sm",
|
|
@@ -46693,7 +46693,7 @@ function Dashboard({
|
|
|
46693
46693
|
}
|
|
46694
46694
|
)
|
|
46695
46695
|
] }) }),
|
|
46696
|
-
/* @__PURE__ */ jsx(
|
|
46696
|
+
/* @__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
46697
|
] }, widget.id);
|
|
46698
46698
|
};
|
|
46699
46699
|
const defaultMetrics = [
|
|
@@ -46744,7 +46744,7 @@ function Dashboard({
|
|
|
46744
46744
|
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: description })
|
|
46745
46745
|
] }),
|
|
46746
46746
|
refreshable && /* @__PURE__ */ jsxs(
|
|
46747
|
-
|
|
46747
|
+
MoonUIButtonPro2,
|
|
46748
46748
|
{
|
|
46749
46749
|
variant: "outline",
|
|
46750
46750
|
onClick: handleRefresh,
|
|
@@ -46759,15 +46759,15 @@ function Dashboard({
|
|
|
46759
46759
|
/* @__PURE__ */ jsx("div", { className: "grid gap-4 md:grid-cols-2 lg:grid-cols-4", children: displayMetrics.map(renderMetricCard) }),
|
|
46760
46760
|
widgets.length > 0 && /* @__PURE__ */ jsx("div", { className: "grid gap-4 md:grid-cols-2 lg:grid-cols-4", children: widgets.map(renderWidget) }),
|
|
46761
46761
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 pt-4 border-t", children: [
|
|
46762
|
-
/* @__PURE__ */ jsxs(
|
|
46762
|
+
/* @__PURE__ */ jsxs(MoonUIButtonPro2, { variant: "outline", size: "sm", children: [
|
|
46763
46763
|
/* @__PURE__ */ jsx(Download, { className: "h-4 w-4 mr-2" }),
|
|
46764
46764
|
"Export Data"
|
|
46765
46765
|
] }),
|
|
46766
|
-
/* @__PURE__ */ jsxs(
|
|
46766
|
+
/* @__PURE__ */ jsxs(MoonUIButtonPro2, { variant: "outline", size: "sm", children: [
|
|
46767
46767
|
/* @__PURE__ */ jsx(Calendar, { className: "h-4 w-4 mr-2" }),
|
|
46768
46768
|
"Schedule Report"
|
|
46769
46769
|
] }),
|
|
46770
|
-
/* @__PURE__ */ jsxs(
|
|
46770
|
+
/* @__PURE__ */ jsxs(MoonUIButtonPro2, { variant: "outline", size: "sm", children: [
|
|
46771
46771
|
/* @__PURE__ */ jsx(Star, { className: "h-4 w-4 mr-2" }),
|
|
46772
46772
|
"Save View"
|
|
46773
46773
|
] })
|
|
@@ -46850,7 +46850,7 @@ function DraggableList({
|
|
|
46850
46850
|
}
|
|
46851
46851
|
) });
|
|
46852
46852
|
}
|
|
46853
|
-
|
|
46853
|
+
cva(
|
|
46854
46854
|
"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
46855
|
{
|
|
46856
46856
|
variants: {
|
|
@@ -46888,7 +46888,7 @@ var checkboxVariants = cva(
|
|
|
46888
46888
|
}
|
|
46889
46889
|
}
|
|
46890
46890
|
);
|
|
46891
|
-
var
|
|
46891
|
+
var MoonUICheckboxPro2 = React16.forwardRef(({
|
|
46892
46892
|
className,
|
|
46893
46893
|
variant,
|
|
46894
46894
|
size,
|
|
@@ -46999,7 +46999,7 @@ var CheckboxWithLabel = React16.forwardRef(({
|
|
|
46999
46999
|
] });
|
|
47000
47000
|
});
|
|
47001
47001
|
CheckboxWithLabel.displayName = "CheckboxWithLabel";
|
|
47002
|
-
var
|
|
47002
|
+
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
47003
|
leftIcon && /* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: leftIcon }),
|
|
47004
47004
|
/* @__PURE__ */ jsxs(
|
|
47005
47005
|
SwitchPrimitives.Root,
|
|
@@ -47124,7 +47124,7 @@ var AdvancedFormsInternal = ({
|
|
|
47124
47124
|
transition: { delay: index * 0.1 },
|
|
47125
47125
|
className: "space-y-2",
|
|
47126
47126
|
children: [
|
|
47127
|
-
/* @__PURE__ */ jsx("div", { className: "flex items-center justify-between", children: /* @__PURE__ */ jsxs(
|
|
47127
|
+
/* @__PURE__ */ jsx("div", { className: "flex items-center justify-between", children: /* @__PURE__ */ jsxs(MoonUILabelPro2, { htmlFor: field.name, className: "flex items-center gap-2", children: [
|
|
47128
47128
|
field.label,
|
|
47129
47129
|
field.required && /* @__PURE__ */ jsx("span", { className: "text-destructive", children: "*" }),
|
|
47130
47130
|
isTouched && !error && /* @__PURE__ */ jsx(CheckCircle, { className: "h-4 w-4 text-green-500" }),
|
|
@@ -47132,7 +47132,7 @@ var AdvancedFormsInternal = ({
|
|
|
47132
47132
|
] }) }),
|
|
47133
47133
|
/* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
47134
47134
|
field.type === "text" || field.type === "email" || field.type === "number" || field.type === "url" || field.type === "tel" && /* @__PURE__ */ jsx(
|
|
47135
|
-
|
|
47135
|
+
MoonUIInputPro,
|
|
47136
47136
|
{
|
|
47137
47137
|
id: field.name,
|
|
47138
47138
|
type: field.type,
|
|
@@ -47158,7 +47158,7 @@ var AdvancedFormsInternal = ({
|
|
|
47158
47158
|
),
|
|
47159
47159
|
field.type === "password" && /* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
47160
47160
|
/* @__PURE__ */ jsx(
|
|
47161
|
-
|
|
47161
|
+
MoonUIInputPro,
|
|
47162
47162
|
{
|
|
47163
47163
|
id: field.name,
|
|
47164
47164
|
type: showPasswords[field.name] ? "text" : "password",
|
|
@@ -47174,7 +47174,7 @@ var AdvancedFormsInternal = ({
|
|
|
47174
47174
|
}
|
|
47175
47175
|
),
|
|
47176
47176
|
/* @__PURE__ */ jsx(
|
|
47177
|
-
|
|
47177
|
+
MoonUIButtonPro2,
|
|
47178
47178
|
{
|
|
47179
47179
|
type: "button",
|
|
47180
47180
|
variant: "ghost",
|
|
@@ -47186,7 +47186,7 @@ var AdvancedFormsInternal = ({
|
|
|
47186
47186
|
)
|
|
47187
47187
|
] }),
|
|
47188
47188
|
field.type === "textarea" && /* @__PURE__ */ jsx(
|
|
47189
|
-
|
|
47189
|
+
MoonUITextareaPro,
|
|
47190
47190
|
{
|
|
47191
47191
|
id: field.name,
|
|
47192
47192
|
placeholder: field.placeholder,
|
|
@@ -47202,37 +47202,37 @@ var AdvancedFormsInternal = ({
|
|
|
47202
47202
|
}
|
|
47203
47203
|
),
|
|
47204
47204
|
field.type === "select" && /* @__PURE__ */ jsxs(
|
|
47205
|
-
|
|
47205
|
+
MoonUISelectPro,
|
|
47206
47206
|
{
|
|
47207
47207
|
onValueChange: (value) => setValue(field.name, value),
|
|
47208
47208
|
defaultValue: field.defaultValue,
|
|
47209
47209
|
children: [
|
|
47210
|
-
/* @__PURE__ */ jsx(
|
|
47211
|
-
/* @__PURE__ */ jsx(
|
|
47210
|
+
/* @__PURE__ */ jsx(MoonUISelectTriggerPro, { className: cn(error && "border-destructive"), children: /* @__PURE__ */ jsx(MoonUISelectValuePro, { placeholder: field.placeholder }) }),
|
|
47211
|
+
/* @__PURE__ */ jsx(MoonUISelectContentPro, { children: field.options?.map((option) => /* @__PURE__ */ jsx(MoonUISelectItemPro, { value: option.value, children: option.label }, option.value)) })
|
|
47212
47212
|
]
|
|
47213
47213
|
}
|
|
47214
47214
|
),
|
|
47215
47215
|
field.type === "checkbox" && /* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
|
|
47216
47216
|
/* @__PURE__ */ jsx(
|
|
47217
|
-
|
|
47217
|
+
MoonUICheckboxPro2,
|
|
47218
47218
|
{
|
|
47219
47219
|
id: field.name,
|
|
47220
47220
|
...register(field.name),
|
|
47221
47221
|
onCheckedChange: (checked) => setValue(field.name, checked)
|
|
47222
47222
|
}
|
|
47223
47223
|
),
|
|
47224
|
-
/* @__PURE__ */ jsx(
|
|
47224
|
+
/* @__PURE__ */ jsx(MoonUILabelPro2, { htmlFor: field.name, className: "text-sm", children: field.placeholder || "Check this option" })
|
|
47225
47225
|
] }),
|
|
47226
47226
|
field.type === "switch" && /* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
|
|
47227
47227
|
/* @__PURE__ */ jsx(
|
|
47228
|
-
|
|
47228
|
+
MoonUISwitchPro,
|
|
47229
47229
|
{
|
|
47230
47230
|
id: field.name,
|
|
47231
47231
|
...register(field.name),
|
|
47232
47232
|
onCheckedChange: (checked) => setValue(field.name, checked)
|
|
47233
47233
|
}
|
|
47234
47234
|
),
|
|
47235
|
-
/* @__PURE__ */ jsx(
|
|
47235
|
+
/* @__PURE__ */ jsx(MoonUILabelPro2, { htmlFor: field.name, className: "text-sm", children: field.placeholder || "Toggle this option" })
|
|
47236
47236
|
] }),
|
|
47237
47237
|
field.type === "file" && /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
47238
47238
|
/* @__PURE__ */ jsx("div", { className: "flex items-center justify-center w-full", children: /* @__PURE__ */ jsxs(
|
|
@@ -47264,7 +47264,7 @@ var AdvancedFormsInternal = ({
|
|
|
47264
47264
|
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
47265
|
/* @__PURE__ */ jsx("span", { className: "text-sm truncate", children: file.name }),
|
|
47266
47266
|
/* @__PURE__ */ jsx(
|
|
47267
|
-
|
|
47267
|
+
MoonUIButtonPro2,
|
|
47268
47268
|
{
|
|
47269
47269
|
type: "button",
|
|
47270
47270
|
variant: "ghost",
|
|
@@ -47293,14 +47293,14 @@ var AdvancedFormsInternal = ({
|
|
|
47293
47293
|
);
|
|
47294
47294
|
};
|
|
47295
47295
|
const gridClassName = layout === "grid" ? `grid grid-cols-1 md:grid-cols-${columns} gap-6` : "space-y-6";
|
|
47296
|
-
return /* @__PURE__ */ jsxs(
|
|
47297
|
-
/* @__PURE__ */ jsxs(
|
|
47296
|
+
return /* @__PURE__ */ jsxs(MoonUICardPro, { className: cn("w-full max-w-4xl", className), children: [
|
|
47297
|
+
/* @__PURE__ */ jsxs(MoonUICardHeaderPro, { children: [
|
|
47298
47298
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
47299
47299
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
47300
|
-
/* @__PURE__ */ jsx(
|
|
47301
|
-
description && /* @__PURE__ */ jsx(
|
|
47300
|
+
/* @__PURE__ */ jsx(MoonUICardTitlePro, { children: title }),
|
|
47301
|
+
description && /* @__PURE__ */ jsx(MoonUICardDescriptionPro, { children: description })
|
|
47302
47302
|
] }),
|
|
47303
|
-
/* @__PURE__ */ jsx(
|
|
47303
|
+
/* @__PURE__ */ jsx(MoonUIBadgePro, { variant: "pro", className: "ml-2", children: "PRO" })
|
|
47304
47304
|
] }),
|
|
47305
47305
|
showProgress && /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
47306
47306
|
/* @__PURE__ */ jsxs("div", { className: "flex justify-between text-sm", children: [
|
|
@@ -47321,7 +47321,7 @@ var AdvancedFormsInternal = ({
|
|
|
47321
47321
|
) })
|
|
47322
47322
|
] })
|
|
47323
47323
|
] }),
|
|
47324
|
-
/* @__PURE__ */ jsx(
|
|
47324
|
+
/* @__PURE__ */ jsx(MoonUICardContentPro, { children: /* @__PURE__ */ jsxs("form", { onSubmit: handleSubmit(handleFormSubmit), className: "space-y-6", children: [
|
|
47325
47325
|
/* @__PURE__ */ jsx("div", { className: gridClassName, children: fields.map((field, index) => renderField(field, index)) }),
|
|
47326
47326
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between pt-6", children: [
|
|
47327
47327
|
/* @__PURE__ */ jsxs("div", { className: "text-sm text-muted-foreground", children: [
|
|
@@ -47331,7 +47331,7 @@ var AdvancedFormsInternal = ({
|
|
|
47331
47331
|
" fields completed"
|
|
47332
47332
|
] }),
|
|
47333
47333
|
/* @__PURE__ */ jsx(
|
|
47334
|
-
|
|
47334
|
+
MoonUIButtonPro2,
|
|
47335
47335
|
{
|
|
47336
47336
|
type: "submit",
|
|
47337
47337
|
disabled: isSubmitting || !isValid,
|
|
@@ -47353,12 +47353,12 @@ var AdvancedFormsInternal = ({
|
|
|
47353
47353
|
var AdvancedForms = ({ className, ...props }) => {
|
|
47354
47354
|
const { hasProAccess, isLoading } = useSubscription();
|
|
47355
47355
|
if (!isLoading && !hasProAccess) {
|
|
47356
|
-
return /* @__PURE__ */ jsx(
|
|
47356
|
+
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
47357
|
/* @__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
47358
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
47359
47359
|
/* @__PURE__ */ jsx("h3", { className: "font-semibold text-sm mb-2", children: "Pro Feature" }),
|
|
47360
47360
|
/* @__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(
|
|
47361
|
+
/* @__PURE__ */ jsx("a", { href: "/pricing", children: /* @__PURE__ */ jsxs(MoonUIButtonPro2, { size: "sm", children: [
|
|
47362
47362
|
/* @__PURE__ */ jsx(Sparkles, { className: "mr-2 h-4 w-4" }),
|
|
47363
47363
|
"Upgrade to Pro"
|
|
47364
47364
|
] }) })
|
|
@@ -47547,9 +47547,9 @@ var ColorPickerInternal = ({
|
|
|
47547
47547
|
setInputValue(value);
|
|
47548
47548
|
onChange?.(value);
|
|
47549
47549
|
};
|
|
47550
|
-
return /* @__PURE__ */ jsxs(
|
|
47551
|
-
/* @__PURE__ */ jsx(
|
|
47552
|
-
|
|
47550
|
+
return /* @__PURE__ */ jsxs(MoonUIPopoverPro, { children: [
|
|
47551
|
+
/* @__PURE__ */ jsx(MoonUIPopoverTriggerPro, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
47552
|
+
MoonUIButtonPro2,
|
|
47553
47553
|
{
|
|
47554
47554
|
variant: "outline",
|
|
47555
47555
|
className: cn(
|
|
@@ -47568,9 +47568,9 @@ var ColorPickerInternal = ({
|
|
|
47568
47568
|
)
|
|
47569
47569
|
}
|
|
47570
47570
|
) }),
|
|
47571
|
-
/* @__PURE__ */ jsx(
|
|
47571
|
+
/* @__PURE__ */ jsx(MoonUIPopoverContentPro, { className: "w-80 p-4", side: "bottom", align: "start", children: /* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
|
|
47572
47572
|
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
47573
|
-
/* @__PURE__ */ jsx(
|
|
47573
|
+
/* @__PURE__ */ jsx(MoonUILabelPro2, { children: "Color" }),
|
|
47574
47574
|
/* @__PURE__ */ jsx(
|
|
47575
47575
|
"div",
|
|
47576
47576
|
{
|
|
@@ -47599,7 +47599,7 @@ var ColorPickerInternal = ({
|
|
|
47599
47599
|
)
|
|
47600
47600
|
] }),
|
|
47601
47601
|
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
47602
|
-
/* @__PURE__ */ jsx(
|
|
47602
|
+
/* @__PURE__ */ jsx(MoonUILabelPro2, { children: "Hue" }),
|
|
47603
47603
|
/* @__PURE__ */ jsx(
|
|
47604
47604
|
"div",
|
|
47605
47605
|
{
|
|
@@ -47624,7 +47624,7 @@ var ColorPickerInternal = ({
|
|
|
47624
47624
|
)
|
|
47625
47625
|
] }),
|
|
47626
47626
|
showAlpha && /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
47627
|
-
/* @__PURE__ */ jsx(
|
|
47627
|
+
/* @__PURE__ */ jsx(MoonUILabelPro2, { children: "Opacity" }),
|
|
47628
47628
|
/* @__PURE__ */ jsx(
|
|
47629
47629
|
"div",
|
|
47630
47630
|
{
|
|
@@ -47651,9 +47651,9 @@ var ColorPickerInternal = ({
|
|
|
47651
47651
|
] }),
|
|
47652
47652
|
showInput && /* @__PURE__ */ jsxs("div", { className: "flex gap-2", children: [
|
|
47653
47653
|
/* @__PURE__ */ jsxs("div", { className: "flex-1", children: [
|
|
47654
|
-
/* @__PURE__ */ jsx(
|
|
47654
|
+
/* @__PURE__ */ jsx(MoonUILabelPro2, { htmlFor: "color-input", children: "Hex" }),
|
|
47655
47655
|
/* @__PURE__ */ jsx(
|
|
47656
|
-
|
|
47656
|
+
MoonUIInputPro,
|
|
47657
47657
|
{
|
|
47658
47658
|
id: "color-input",
|
|
47659
47659
|
value: inputValue,
|
|
@@ -47664,9 +47664,9 @@ var ColorPickerInternal = ({
|
|
|
47664
47664
|
)
|
|
47665
47665
|
] }),
|
|
47666
47666
|
showCopy && /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
47667
|
-
/* @__PURE__ */ jsx(
|
|
47667
|
+
/* @__PURE__ */ jsx(MoonUILabelPro2, { children: "\xA0" }),
|
|
47668
47668
|
/* @__PURE__ */ jsx(
|
|
47669
|
-
|
|
47669
|
+
MoonUIButtonPro2,
|
|
47670
47670
|
{
|
|
47671
47671
|
variant: "outline",
|
|
47672
47672
|
size: "sm",
|
|
@@ -47677,9 +47677,9 @@ var ColorPickerInternal = ({
|
|
|
47677
47677
|
)
|
|
47678
47678
|
] }),
|
|
47679
47679
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
47680
|
-
/* @__PURE__ */ jsx(
|
|
47680
|
+
/* @__PURE__ */ jsx(MoonUILabelPro2, { children: "\xA0" }),
|
|
47681
47681
|
/* @__PURE__ */ jsx(
|
|
47682
|
-
|
|
47682
|
+
MoonUIButtonPro2,
|
|
47683
47683
|
{
|
|
47684
47684
|
variant: "outline",
|
|
47685
47685
|
size: "sm",
|
|
@@ -47691,7 +47691,7 @@ var ColorPickerInternal = ({
|
|
|
47691
47691
|
] })
|
|
47692
47692
|
] }),
|
|
47693
47693
|
showPresets && /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
47694
|
-
/* @__PURE__ */ jsx(
|
|
47694
|
+
/* @__PURE__ */ jsx(MoonUILabelPro2, { children: "Presets" }),
|
|
47695
47695
|
/* @__PURE__ */ jsx("div", { className: "grid grid-cols-8 gap-2", children: presetColors.map((color, index) => /* @__PURE__ */ jsx(
|
|
47696
47696
|
motion.button,
|
|
47697
47697
|
{
|
|
@@ -47710,15 +47710,15 @@ var ColorPickerInternal = ({
|
|
|
47710
47710
|
] }) })
|
|
47711
47711
|
] });
|
|
47712
47712
|
};
|
|
47713
|
-
var
|
|
47713
|
+
var ColorPicker = ({ className, ...props }) => {
|
|
47714
47714
|
const { hasProAccess, isLoading } = useSubscription();
|
|
47715
47715
|
if (!isLoading && !hasProAccess) {
|
|
47716
|
-
return /* @__PURE__ */ jsx(
|
|
47716
|
+
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
47717
|
/* @__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
47718
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
47719
47719
|
/* @__PURE__ */ jsx("h3", { className: "font-semibold text-sm mb-2", children: "Pro Feature" }),
|
|
47720
47720
|
/* @__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(
|
|
47721
|
+
/* @__PURE__ */ jsx("a", { href: "/pricing", children: /* @__PURE__ */ jsxs(MoonUIButtonPro2, { size: "sm", children: [
|
|
47722
47722
|
/* @__PURE__ */ jsx(Sparkles, { className: "mr-2 h-4 w-4" }),
|
|
47723
47723
|
"Upgrade to Pro"
|
|
47724
47724
|
] }) })
|
|
@@ -47842,14 +47842,14 @@ var GitHubStarsInternal = ({
|
|
|
47842
47842
|
return colors[language || ""] || "#6b7280";
|
|
47843
47843
|
};
|
|
47844
47844
|
if (loading) {
|
|
47845
|
-
return /* @__PURE__ */ jsx(
|
|
47845
|
+
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
47846
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
47847
47847
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-6 w-48" }),
|
|
47848
47848
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-8 w-20" })
|
|
47849
47849
|
] }),
|
|
47850
47850
|
/* @__PURE__ */ jsx("div", { className: cn(
|
|
47851
47851
|
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(
|
|
47852
|
+
), 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: [
|
|
47853
47853
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-3/4" }),
|
|
47854
47854
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-full" }),
|
|
47855
47855
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-2/3" }),
|
|
@@ -47862,19 +47862,19 @@ var GitHubStarsInternal = ({
|
|
|
47862
47862
|
] }) }) });
|
|
47863
47863
|
}
|
|
47864
47864
|
if (error) {
|
|
47865
|
-
return /* @__PURE__ */ jsx(
|
|
47865
|
+
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
47866
|
/* @__PURE__ */ jsxs("div", { className: "text-destructive", children: [
|
|
47867
47867
|
/* @__PURE__ */ jsx(Github, { className: "h-12 w-12 mx-auto mb-2" }),
|
|
47868
47868
|
/* @__PURE__ */ jsx("h3", { className: "font-semibold", children: "Failed to load repositories" }),
|
|
47869
47869
|
/* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: error })
|
|
47870
47870
|
] }),
|
|
47871
|
-
/* @__PURE__ */ jsxs(
|
|
47871
|
+
/* @__PURE__ */ jsxs(MoonUIButtonPro2, { onClick: fetchRepositories, variant: "outline", children: [
|
|
47872
47872
|
/* @__PURE__ */ jsx(RefreshCw, { className: "h-4 w-4 mr-2" }),
|
|
47873
47873
|
"Try Again"
|
|
47874
47874
|
] })
|
|
47875
47875
|
] }) }) });
|
|
47876
47876
|
}
|
|
47877
|
-
return /* @__PURE__ */ jsx(
|
|
47877
|
+
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
47878
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
47879
47879
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
47880
47880
|
/* @__PURE__ */ jsx(Github, { className: "h-6 w-6" }),
|
|
@@ -47890,12 +47890,12 @@ var GitHubStarsInternal = ({
|
|
|
47890
47890
|
] })
|
|
47891
47891
|
] }),
|
|
47892
47892
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
47893
|
-
/* @__PURE__ */ jsxs(
|
|
47893
|
+
/* @__PURE__ */ jsxs(MoonUIBadgePro, { variant: "outline", children: [
|
|
47894
47894
|
repos.length,
|
|
47895
47895
|
" repos"
|
|
47896
47896
|
] }),
|
|
47897
|
-
autoRefresh && /* @__PURE__ */ jsx(
|
|
47898
|
-
/* @__PURE__ */ jsx(
|
|
47897
|
+
autoRefresh && /* @__PURE__ */ jsx(MoonUIBadgePro, { variant: "secondary", children: "Auto-refresh" }),
|
|
47898
|
+
/* @__PURE__ */ jsx(MoonUIButtonPro2, { onClick: fetchRepositories, variant: "outline", size: "sm", children: /* @__PURE__ */ jsx(RefreshCw, { className: "h-4 w-4" }) })
|
|
47899
47899
|
] })
|
|
47900
47900
|
] }),
|
|
47901
47901
|
/* @__PURE__ */ jsx("div", { className: cn(
|
|
@@ -47908,18 +47908,18 @@ var GitHubStarsInternal = ({
|
|
|
47908
47908
|
exit: { opacity: 0, y: -20 },
|
|
47909
47909
|
transition: { delay: index * 0.1 },
|
|
47910
47910
|
children: /* @__PURE__ */ jsx(
|
|
47911
|
-
|
|
47911
|
+
MoonUICardPro,
|
|
47912
47912
|
{
|
|
47913
47913
|
className: "h-full hover:shadow-md transition-shadow cursor-pointer group",
|
|
47914
47914
|
onClick: () => onRepositoryClick?.(repo),
|
|
47915
|
-
children: /* @__PURE__ */ jsx(
|
|
47915
|
+
children: /* @__PURE__ */ jsx(MoonUICardContentPro, { className: "p-4", children: /* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
|
|
47916
47916
|
/* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between", children: [
|
|
47917
47917
|
/* @__PURE__ */ jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
47918
47918
|
/* @__PURE__ */ jsx("h4", { className: "font-semibold text-sm group-hover:text-primary transition-colors", children: repo.name }),
|
|
47919
47919
|
showOwner && /* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground truncate", children: repo.owner.login })
|
|
47920
47920
|
] }),
|
|
47921
47921
|
/* @__PURE__ */ jsx(
|
|
47922
|
-
|
|
47922
|
+
MoonUIButtonPro2,
|
|
47923
47923
|
{
|
|
47924
47924
|
variant: "ghost",
|
|
47925
47925
|
size: "sm",
|
|
@@ -47934,8 +47934,8 @@ var GitHubStarsInternal = ({
|
|
|
47934
47934
|
] }),
|
|
47935
47935
|
showDescription && repo.description && /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground line-clamp-2", children: repo.description }),
|
|
47936
47936
|
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(
|
|
47937
|
+
repo.topics.slice(0, 3).map((topic) => /* @__PURE__ */ jsx(MoonUIBadgePro, { variant: "secondary", className: "text-xs", children: topic }, topic)),
|
|
47938
|
+
repo.topics.length > 3 && /* @__PURE__ */ jsxs(MoonUIBadgePro, { variant: "outline", className: "text-xs", children: [
|
|
47939
47939
|
"+",
|
|
47940
47940
|
repo.topics.length - 3
|
|
47941
47941
|
] })
|
|
@@ -47979,12 +47979,12 @@ var GitHubStarsInternal = ({
|
|
|
47979
47979
|
var GitHubStars = ({ className, ...props }) => {
|
|
47980
47980
|
const { hasProAccess, isLoading } = useSubscription();
|
|
47981
47981
|
if (!isLoading && !hasProAccess) {
|
|
47982
|
-
return /* @__PURE__ */ jsx(
|
|
47982
|
+
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
47983
|
/* @__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
47984
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
47985
47985
|
/* @__PURE__ */ jsx("h3", { className: "font-semibold text-sm mb-2", children: "Pro Feature" }),
|
|
47986
47986
|
/* @__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(
|
|
47987
|
+
/* @__PURE__ */ jsx("a", { href: "/pricing", children: /* @__PURE__ */ jsxs(MoonUIButtonPro2, { size: "sm", children: [
|
|
47988
47988
|
/* @__PURE__ */ jsx(Sparkles, { className: "mr-2 h-4 w-4" }),
|
|
47989
47989
|
"Upgrade to Pro"
|
|
47990
47990
|
] }) })
|
|
@@ -48137,16 +48137,16 @@ var HealthCheckInternal = ({
|
|
|
48137
48137
|
const overallStatus = getOverallStatus();
|
|
48138
48138
|
const healthyCount = results.filter((r2) => r2.status === "healthy").length;
|
|
48139
48139
|
const overallUptime = results.length > 0 ? results.reduce((acc, result) => acc + calculateUptime(result.id), 0) / results.length : 0;
|
|
48140
|
-
return /* @__PURE__ */ jsxs(
|
|
48141
|
-
/* @__PURE__ */ jsxs(
|
|
48140
|
+
return /* @__PURE__ */ jsxs(MoonUICardPro, { className: cn("w-full", className), children: [
|
|
48141
|
+
/* @__PURE__ */ jsxs(MoonUICardHeaderPro, { children: [
|
|
48142
48142
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
48143
48143
|
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-3", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
48144
48144
|
/* @__PURE__ */ jsx(Activity, { className: "h-6 w-6" }),
|
|
48145
48145
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
48146
|
-
/* @__PURE__ */ jsxs(
|
|
48146
|
+
/* @__PURE__ */ jsxs(MoonUICardTitlePro, { className: "flex items-center gap-2", children: [
|
|
48147
48147
|
"System Health",
|
|
48148
48148
|
/* @__PURE__ */ jsx(
|
|
48149
|
-
|
|
48149
|
+
MoonUIBadgePro,
|
|
48150
48150
|
{
|
|
48151
48151
|
variant: overallStatus === "healthy" ? "secondary" : "destructive",
|
|
48152
48152
|
className: cn(
|
|
@@ -48159,7 +48159,7 @@ var HealthCheckInternal = ({
|
|
|
48159
48159
|
}
|
|
48160
48160
|
)
|
|
48161
48161
|
] }),
|
|
48162
|
-
lastCheck && /* @__PURE__ */ jsxs(
|
|
48162
|
+
lastCheck && /* @__PURE__ */ jsxs(MoonUICardDescriptionPro, { children: [
|
|
48163
48163
|
"Last checked: ",
|
|
48164
48164
|
lastCheck.toLocaleTimeString()
|
|
48165
48165
|
] })
|
|
@@ -48174,7 +48174,7 @@ var HealthCheckInternal = ({
|
|
|
48174
48174
|
/* @__PURE__ */ jsx("div", { className: "text-xs text-muted-foreground", children: "Uptime" })
|
|
48175
48175
|
] }),
|
|
48176
48176
|
/* @__PURE__ */ jsx(
|
|
48177
|
-
|
|
48177
|
+
MoonUIButtonPro2,
|
|
48178
48178
|
{
|
|
48179
48179
|
onClick: checkAllEndpoints,
|
|
48180
48180
|
disabled: isChecking,
|
|
@@ -48206,7 +48206,7 @@ var HealthCheckInternal = ({
|
|
|
48206
48206
|
] })
|
|
48207
48207
|
] })
|
|
48208
48208
|
] }),
|
|
48209
|
-
/* @__PURE__ */ jsx(
|
|
48209
|
+
/* @__PURE__ */ jsx(MoonUICardContentPro, { children: /* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
|
|
48210
48210
|
/* @__PURE__ */ jsx(AnimatePresence, { children: results.map((result, index) => /* @__PURE__ */ jsx(
|
|
48211
48211
|
motion.div,
|
|
48212
48212
|
{
|
|
@@ -48214,7 +48214,7 @@ var HealthCheckInternal = ({
|
|
|
48214
48214
|
animate: { opacity: 1, x: 0 },
|
|
48215
48215
|
exit: { opacity: 0, x: 20 },
|
|
48216
48216
|
transition: { delay: index * 0.05 },
|
|
48217
|
-
children: /* @__PURE__ */ jsx(
|
|
48217
|
+
children: /* @__PURE__ */ jsx(MoonUICardPro, { children: /* @__PURE__ */ jsxs(MoonUICardContentPro, { className: "p-4", children: [
|
|
48218
48218
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
48219
48219
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
48220
48220
|
getStatusIcon(result.status),
|
|
@@ -48272,12 +48272,12 @@ var HealthCheckInternal = ({
|
|
|
48272
48272
|
var HealthCheck = ({ className, ...props }) => {
|
|
48273
48273
|
const { hasProAccess, isLoading } = useSubscription();
|
|
48274
48274
|
if (!isLoading && !hasProAccess) {
|
|
48275
|
-
return /* @__PURE__ */ jsx(
|
|
48275
|
+
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
48276
|
/* @__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
48277
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
48278
48278
|
/* @__PURE__ */ jsx("h3", { className: "font-semibold text-sm mb-2", children: "Pro Feature" }),
|
|
48279
48279
|
/* @__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(
|
|
48280
|
+
/* @__PURE__ */ jsx("a", { href: "/pricing", children: /* @__PURE__ */ jsxs(MoonUIButtonPro2, { size: "sm", children: [
|
|
48281
48281
|
/* @__PURE__ */ jsx(Sparkles, { className: "mr-2 h-4 w-4" }),
|
|
48282
48282
|
"Upgrade to Pro"
|
|
48283
48283
|
] }) })
|
|
@@ -48493,12 +48493,12 @@ function LazyList({
|
|
|
48493
48493
|
var LazyComponent = ({ className, ...props }) => {
|
|
48494
48494
|
const { hasProAccess, isLoading } = useSubscription();
|
|
48495
48495
|
if (!isLoading && !hasProAccess) {
|
|
48496
|
-
return /* @__PURE__ */ jsx(
|
|
48496
|
+
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
48497
|
/* @__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
48498
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
48499
48499
|
/* @__PURE__ */ jsx("h3", { className: "font-semibold text-sm mb-2", children: "Pro Feature" }),
|
|
48500
48500
|
/* @__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(
|
|
48501
|
+
/* @__PURE__ */ jsx("a", { href: "/pricing", children: /* @__PURE__ */ jsxs(MoonUIButtonPro2, { size: "sm", children: [
|
|
48502
48502
|
/* @__PURE__ */ jsx(Sparkles, { className: "mr-2 h-4 w-4" }),
|
|
48503
48503
|
"Upgrade to Pro"
|
|
48504
48504
|
] }) })
|
|
@@ -48665,7 +48665,7 @@ var OptimizedImageInternal = ({
|
|
|
48665
48665
|
children: [
|
|
48666
48666
|
/* @__PURE__ */ jsxs("div", { className: "absolute top-2 right-2 flex gap-2 opacity-0 group-hover:opacity-100 transition-opacity duration-200", children: [
|
|
48667
48667
|
showInfo && /* @__PURE__ */ jsx(
|
|
48668
|
-
|
|
48668
|
+
MoonUIButtonPro2,
|
|
48669
48669
|
{
|
|
48670
48670
|
size: "sm",
|
|
48671
48671
|
variant: "secondary",
|
|
@@ -48675,7 +48675,7 @@ var OptimizedImageInternal = ({
|
|
|
48675
48675
|
}
|
|
48676
48676
|
),
|
|
48677
48677
|
showDownload && /* @__PURE__ */ jsx(
|
|
48678
|
-
|
|
48678
|
+
MoonUIButtonPro2,
|
|
48679
48679
|
{
|
|
48680
48680
|
size: "sm",
|
|
48681
48681
|
variant: "secondary",
|
|
@@ -48685,7 +48685,7 @@ var OptimizedImageInternal = ({
|
|
|
48685
48685
|
}
|
|
48686
48686
|
),
|
|
48687
48687
|
showPreview && /* @__PURE__ */ jsx(
|
|
48688
|
-
|
|
48688
|
+
MoonUIButtonPro2,
|
|
48689
48689
|
{
|
|
48690
48690
|
size: "sm",
|
|
48691
48691
|
variant: "secondary",
|
|
@@ -48737,7 +48737,7 @@ var OptimizedImageInternal = ({
|
|
|
48737
48737
|
/* @__PURE__ */ jsxs("div", { className: "absolute top-4 right-4 flex gap-2 z-10", children: [
|
|
48738
48738
|
showZoom && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
48739
48739
|
/* @__PURE__ */ jsx(
|
|
48740
|
-
|
|
48740
|
+
MoonUIButtonPro2,
|
|
48741
48741
|
{
|
|
48742
48742
|
size: "sm",
|
|
48743
48743
|
variant: "secondary",
|
|
@@ -48746,12 +48746,12 @@ var OptimizedImageInternal = ({
|
|
|
48746
48746
|
children: /* @__PURE__ */ jsx(ZoomOut, { className: "h-4 w-4" })
|
|
48747
48747
|
}
|
|
48748
48748
|
),
|
|
48749
|
-
/* @__PURE__ */ jsxs(
|
|
48749
|
+
/* @__PURE__ */ jsxs(MoonUIBadgePro, { variant: "secondary", className: "px-2", children: [
|
|
48750
48750
|
Math.round(currentZoom * 100),
|
|
48751
48751
|
"%"
|
|
48752
48752
|
] }),
|
|
48753
48753
|
/* @__PURE__ */ jsx(
|
|
48754
|
-
|
|
48754
|
+
MoonUIButtonPro2,
|
|
48755
48755
|
{
|
|
48756
48756
|
size: "sm",
|
|
48757
48757
|
variant: "secondary",
|
|
@@ -48761,7 +48761,7 @@ var OptimizedImageInternal = ({
|
|
|
48761
48761
|
}
|
|
48762
48762
|
),
|
|
48763
48763
|
/* @__PURE__ */ jsx(
|
|
48764
|
-
|
|
48764
|
+
MoonUIButtonPro2,
|
|
48765
48765
|
{
|
|
48766
48766
|
size: "sm",
|
|
48767
48767
|
variant: "secondary",
|
|
@@ -48771,7 +48771,7 @@ var OptimizedImageInternal = ({
|
|
|
48771
48771
|
)
|
|
48772
48772
|
] }),
|
|
48773
48773
|
/* @__PURE__ */ jsx(
|
|
48774
|
-
|
|
48774
|
+
MoonUIButtonPro2,
|
|
48775
48775
|
{
|
|
48776
48776
|
size: "sm",
|
|
48777
48777
|
variant: "secondary",
|
|
@@ -48804,12 +48804,12 @@ var OptimizedImageInternal = ({
|
|
|
48804
48804
|
var OptimizedImage = ({ className, ...props }) => {
|
|
48805
48805
|
const { hasProAccess, isLoading } = useSubscription();
|
|
48806
48806
|
if (!isLoading && !hasProAccess) {
|
|
48807
|
-
return /* @__PURE__ */ jsx(
|
|
48807
|
+
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
48808
|
/* @__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
48809
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
48810
48810
|
/* @__PURE__ */ jsx("h3", { className: "font-semibold text-sm mb-2", children: "Pro Feature" }),
|
|
48811
48811
|
/* @__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(
|
|
48812
|
+
/* @__PURE__ */ jsx("a", { href: "/pricing", children: /* @__PURE__ */ jsxs(MoonUIButtonPro2, { size: "sm", children: [
|
|
48813
48813
|
/* @__PURE__ */ jsx(Sparkles, { className: "mr-2 h-4 w-4" }),
|
|
48814
48814
|
"Upgrade to Pro"
|
|
48815
48815
|
] }) })
|
|
@@ -48914,7 +48914,7 @@ var PROGRESS_NAME = "Progress";
|
|
|
48914
48914
|
var DEFAULT_MAX = 100;
|
|
48915
48915
|
var [createProgressContext, createProgressScope] = createContextScope(PROGRESS_NAME);
|
|
48916
48916
|
var [ProgressProvider, useProgressContext] = createProgressContext(PROGRESS_NAME);
|
|
48917
|
-
var
|
|
48917
|
+
var Progress2 = React16.forwardRef(
|
|
48918
48918
|
(props, forwardedRef) => {
|
|
48919
48919
|
const {
|
|
48920
48920
|
__scopeProgress,
|
|
@@ -48949,7 +48949,7 @@ var Progress = React16.forwardRef(
|
|
|
48949
48949
|
) });
|
|
48950
48950
|
}
|
|
48951
48951
|
);
|
|
48952
|
-
|
|
48952
|
+
Progress2.displayName = PROGRESS_NAME;
|
|
48953
48953
|
var INDICATOR_NAME = "ProgressIndicator";
|
|
48954
48954
|
var ProgressIndicator = React16.forwardRef(
|
|
48955
48955
|
(props, forwardedRef) => {
|
|
@@ -48994,9 +48994,9 @@ function getInvalidValueError(propValue, componentName) {
|
|
|
48994
48994
|
|
|
48995
48995
|
Defaulting to \`null\`.`;
|
|
48996
48996
|
}
|
|
48997
|
-
var Root11 =
|
|
48997
|
+
var Root11 = Progress2;
|
|
48998
48998
|
var Indicator2 = ProgressIndicator;
|
|
48999
|
-
var
|
|
48999
|
+
var MoonUIProgressPro = React16.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
49000
49000
|
Root11,
|
|
49001
49001
|
{
|
|
49002
49002
|
ref,
|
|
@@ -49014,8 +49014,8 @@ var Progress2 = React16.forwardRef(({ className, value, ...props }, ref) => /* @
|
|
|
49014
49014
|
)
|
|
49015
49015
|
}
|
|
49016
49016
|
));
|
|
49017
|
-
|
|
49018
|
-
var
|
|
49017
|
+
Progress.displayName = Root11.displayName;
|
|
49018
|
+
var MoonUITabsPro = React16.forwardRef(({ vertical = false, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
49019
49019
|
TabsPrimitive.Root,
|
|
49020
49020
|
{
|
|
49021
49021
|
ref,
|
|
@@ -49050,7 +49050,7 @@ var tabsListVariants = cva(
|
|
|
49050
49050
|
}
|
|
49051
49051
|
}
|
|
49052
49052
|
);
|
|
49053
|
-
var
|
|
49053
|
+
var MoonUITabsListPro = React16.forwardRef(({ className, variant, orientation, fullWidth, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
49054
49054
|
TabsPrimitive.List,
|
|
49055
49055
|
{
|
|
49056
49056
|
ref,
|
|
@@ -49091,7 +49091,7 @@ var tabsTriggerVariants = cva(
|
|
|
49091
49091
|
}
|
|
49092
49092
|
}
|
|
49093
49093
|
);
|
|
49094
|
-
var
|
|
49094
|
+
var MoonUITabsTriggerPro = React16.forwardRef(({
|
|
49095
49095
|
className,
|
|
49096
49096
|
variant,
|
|
49097
49097
|
size,
|
|
@@ -49122,7 +49122,7 @@ var TabsTrigger = React16.forwardRef(({
|
|
|
49122
49122
|
}
|
|
49123
49123
|
));
|
|
49124
49124
|
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
49125
|
-
var
|
|
49125
|
+
var MoonUITabsContentPro = React16.forwardRef(({ className, animated = false, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
49126
49126
|
TabsPrimitive.Content,
|
|
49127
49127
|
{
|
|
49128
49128
|
ref,
|
|
@@ -49377,7 +49377,7 @@ var PerformanceDebuggerInternal = ({
|
|
|
49377
49377
|
};
|
|
49378
49378
|
if (!isVisible) {
|
|
49379
49379
|
return /* @__PURE__ */ jsxs(
|
|
49380
|
-
|
|
49380
|
+
MoonUIButtonPro2,
|
|
49381
49381
|
{
|
|
49382
49382
|
variant: "outline",
|
|
49383
49383
|
size: "sm",
|
|
@@ -49390,22 +49390,22 @@ var PerformanceDebuggerInternal = ({
|
|
|
49390
49390
|
}
|
|
49391
49391
|
);
|
|
49392
49392
|
}
|
|
49393
|
-
return /* @__PURE__ */ jsxs(
|
|
49394
|
-
/* @__PURE__ */ jsx(
|
|
49393
|
+
return /* @__PURE__ */ jsxs(MoonUICardPro, { className: cn("w-full max-w-4xl", className), children: [
|
|
49394
|
+
/* @__PURE__ */ jsx(MoonUICardHeaderPro, { children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
49395
49395
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
49396
|
-
/* @__PURE__ */ jsxs(
|
|
49396
|
+
/* @__PURE__ */ jsxs(MoonUICardTitlePro, { className: "flex items-center gap-2", children: [
|
|
49397
49397
|
/* @__PURE__ */ jsx(Zap, { className: "h-5 w-5" }),
|
|
49398
49398
|
"Performance Debugger"
|
|
49399
49399
|
] }),
|
|
49400
|
-
/* @__PURE__ */ jsx(
|
|
49400
|
+
/* @__PURE__ */ jsx(MoonUICardDescriptionPro, { children: "Real-time performance monitoring and web vitals tracking" })
|
|
49401
49401
|
] }),
|
|
49402
49402
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
49403
|
-
/* @__PURE__ */ jsxs(
|
|
49403
|
+
/* @__PURE__ */ jsxs(MoonUIBadgePro, { variant: isCapturing ? "secondary" : "secondary", className: "gap-1", children: [
|
|
49404
49404
|
isCapturing ? /* @__PURE__ */ jsx(Activity, { className: "h-3 w-3 animate-pulse" }) : /* @__PURE__ */ jsx(Clock, { className: "h-3 w-3" }),
|
|
49405
49405
|
isCapturing ? "Live" : "Paused"
|
|
49406
49406
|
] }),
|
|
49407
49407
|
/* @__PURE__ */ jsx(
|
|
49408
|
-
|
|
49408
|
+
MoonUIButtonPro2,
|
|
49409
49409
|
{
|
|
49410
49410
|
variant: "outline",
|
|
49411
49411
|
size: "sm",
|
|
@@ -49414,7 +49414,7 @@ var PerformanceDebuggerInternal = ({
|
|
|
49414
49414
|
}
|
|
49415
49415
|
),
|
|
49416
49416
|
/* @__PURE__ */ jsx(
|
|
49417
|
-
|
|
49417
|
+
MoonUIButtonPro2,
|
|
49418
49418
|
{
|
|
49419
49419
|
variant: "outline",
|
|
49420
49420
|
size: "sm",
|
|
@@ -49423,7 +49423,7 @@ var PerformanceDebuggerInternal = ({
|
|
|
49423
49423
|
}
|
|
49424
49424
|
),
|
|
49425
49425
|
/* @__PURE__ */ jsx(
|
|
49426
|
-
|
|
49426
|
+
MoonUIButtonPro2,
|
|
49427
49427
|
{
|
|
49428
49428
|
variant: "outline",
|
|
49429
49429
|
size: "sm",
|
|
@@ -49432,7 +49432,7 @@ var PerformanceDebuggerInternal = ({
|
|
|
49432
49432
|
}
|
|
49433
49433
|
),
|
|
49434
49434
|
/* @__PURE__ */ jsx(
|
|
49435
|
-
|
|
49435
|
+
MoonUIButtonPro2,
|
|
49436
49436
|
{
|
|
49437
49437
|
variant: "ghost",
|
|
49438
49438
|
size: "sm",
|
|
@@ -49442,13 +49442,13 @@ var PerformanceDebuggerInternal = ({
|
|
|
49442
49442
|
)
|
|
49443
49443
|
] })
|
|
49444
49444
|
] }) }),
|
|
49445
|
-
/* @__PURE__ */ jsx(
|
|
49446
|
-
/* @__PURE__ */ jsxs(
|
|
49447
|
-
/* @__PURE__ */ jsx(
|
|
49448
|
-
/* @__PURE__ */ jsx(
|
|
49449
|
-
/* @__PURE__ */ jsx(
|
|
49445
|
+
/* @__PURE__ */ jsx(MoonUICardContentPro, { children: /* @__PURE__ */ jsxs(MoonUITabsPro, { defaultValue: "current", className: "w-full", children: [
|
|
49446
|
+
/* @__PURE__ */ jsxs(MoonUITabsListPro, { className: "grid w-full grid-cols-3", children: [
|
|
49447
|
+
/* @__PURE__ */ jsx(MoonUITabsTriggerPro, { value: "current", children: "Current Metrics" }),
|
|
49448
|
+
/* @__PURE__ */ jsx(MoonUITabsTriggerPro, { value: "history", children: "History" }),
|
|
49449
|
+
/* @__PURE__ */ jsx(MoonUITabsTriggerPro, { value: "vitals", children: "Web Vitals" })
|
|
49450
49450
|
] }),
|
|
49451
|
-
/* @__PURE__ */ jsx(
|
|
49451
|
+
/* @__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
49452
|
const status = getMetricStatus(metric);
|
|
49453
49453
|
return /* @__PURE__ */ jsx(
|
|
49454
49454
|
motion.div,
|
|
@@ -49457,7 +49457,7 @@ var PerformanceDebuggerInternal = ({
|
|
|
49457
49457
|
animate: { opacity: 1, y: 0 },
|
|
49458
49458
|
exit: { opacity: 0, y: -20 },
|
|
49459
49459
|
transition: { delay: index * 0.05 },
|
|
49460
|
-
children: /* @__PURE__ */ jsx(
|
|
49460
|
+
children: /* @__PURE__ */ jsx(MoonUICardPro, { children: /* @__PURE__ */ jsxs(MoonUICardContentPro, { className: "p-4", children: [
|
|
49461
49461
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between mb-2", children: [
|
|
49462
49462
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
49463
49463
|
getStatusIcon(status),
|
|
@@ -49467,7 +49467,7 @@ var PerformanceDebuggerInternal = ({
|
|
|
49467
49467
|
] }),
|
|
49468
49468
|
metric.threshold && /* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
|
|
49469
49469
|
/* @__PURE__ */ jsx(
|
|
49470
|
-
|
|
49470
|
+
MoonUIProgressPro,
|
|
49471
49471
|
{
|
|
49472
49472
|
value: Math.min(metric.value / (metric.threshold.needs_improvement * 2) * 100, 100),
|
|
49473
49473
|
className: "h-2"
|
|
@@ -49488,18 +49488,18 @@ var PerformanceDebuggerInternal = ({
|
|
|
49488
49488
|
metric.name
|
|
49489
49489
|
);
|
|
49490
49490
|
}) }) }) }),
|
|
49491
|
-
/* @__PURE__ */ jsxs(
|
|
49491
|
+
/* @__PURE__ */ jsxs(MoonUITabsContentPro, { value: "history", className: "space-y-4", children: [
|
|
49492
49492
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
49493
49493
|
/* @__PURE__ */ jsxs("div", { className: "text-sm text-muted-foreground", children: [
|
|
49494
49494
|
entries.length,
|
|
49495
49495
|
" entries captured"
|
|
49496
49496
|
] }),
|
|
49497
|
-
/* @__PURE__ */ jsx(
|
|
49497
|
+
/* @__PURE__ */ jsx(MoonUIButtonPro2, { variant: "outline", size: "sm", onClick: clearData, children: "Clear History" })
|
|
49498
49498
|
] }),
|
|
49499
|
-
/* @__PURE__ */ jsx("div", { className: "space-y-2 max-h-96 overflow-y-auto", children: entries.map((entry, index) => /* @__PURE__ */ jsx(
|
|
49499
|
+
/* @__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
49500
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between mb-2", children: [
|
|
49501
49501
|
/* @__PURE__ */ jsx("span", { className: "text-sm font-medium", children: new Date(entry.timestamp).toLocaleTimeString() }),
|
|
49502
|
-
/* @__PURE__ */ jsxs(
|
|
49502
|
+
/* @__PURE__ */ jsxs(MoonUIBadgePro, { variant: "outline", className: "text-xs", children: [
|
|
49503
49503
|
entry.metrics.length,
|
|
49504
49504
|
" metrics"
|
|
49505
49505
|
] })
|
|
@@ -49513,9 +49513,9 @@ var PerformanceDebuggerInternal = ({
|
|
|
49513
49513
|
] }, metric.name)) })
|
|
49514
49514
|
] }) }, entry.timestamp)) })
|
|
49515
49515
|
] }),
|
|
49516
|
-
/* @__PURE__ */ jsx(
|
|
49516
|
+
/* @__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
49517
|
const status = getMetricStatus(metric);
|
|
49518
|
-
return /* @__PURE__ */ jsx(
|
|
49518
|
+
return /* @__PURE__ */ jsx(MoonUICardPro, { children: /* @__PURE__ */ jsxs(MoonUICardContentPro, { className: "p-6", children: [
|
|
49519
49519
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between mb-4", children: [
|
|
49520
49520
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
49521
49521
|
/* @__PURE__ */ jsx("h3", { className: "font-semibold", children: metric.name }),
|
|
@@ -49526,7 +49526,7 @@ var PerformanceDebuggerInternal = ({
|
|
|
49526
49526
|
/* @__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
49527
|
metric.threshold && /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
49528
49528
|
/* @__PURE__ */ jsx(
|
|
49529
|
-
|
|
49529
|
+
MoonUIProgressPro,
|
|
49530
49530
|
{
|
|
49531
49531
|
value: Math.min(metric.value / (metric.threshold.needs_improvement * 2) * 100, 100),
|
|
49532
49532
|
className: "h-3"
|
|
@@ -49553,12 +49553,12 @@ var PerformanceDebuggerInternal = ({
|
|
|
49553
49553
|
var PerformanceDebugger = ({ className, ...props }) => {
|
|
49554
49554
|
const { hasProAccess, isLoading } = useSubscription();
|
|
49555
49555
|
if (!isLoading && !hasProAccess) {
|
|
49556
|
-
return /* @__PURE__ */ jsx(
|
|
49556
|
+
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
49557
|
/* @__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
49558
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
49559
49559
|
/* @__PURE__ */ jsx("h3", { className: "font-semibold text-sm mb-2", children: "Pro Feature" }),
|
|
49560
49560
|
/* @__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(
|
|
49561
|
+
/* @__PURE__ */ jsx("a", { href: "/pricing", children: /* @__PURE__ */ jsxs(MoonUIButtonPro2, { size: "sm", children: [
|
|
49562
49562
|
/* @__PURE__ */ jsx(Sparkles, { className: "mr-2 h-4 w-4" }),
|
|
49563
49563
|
"Upgrade to Pro"
|
|
49564
49564
|
] }) })
|
|
@@ -49770,7 +49770,7 @@ var PerformanceMonitorInternal = ({
|
|
|
49770
49770
|
};
|
|
49771
49771
|
if (!isVisible) {
|
|
49772
49772
|
return /* @__PURE__ */ jsxs(
|
|
49773
|
-
|
|
49773
|
+
MoonUIButtonPro2,
|
|
49774
49774
|
{
|
|
49775
49775
|
variant: "outline",
|
|
49776
49776
|
size: "sm",
|
|
@@ -49784,31 +49784,31 @@ var PerformanceMonitorInternal = ({
|
|
|
49784
49784
|
);
|
|
49785
49785
|
}
|
|
49786
49786
|
if (!metrics) {
|
|
49787
|
-
return /* @__PURE__ */ jsx(
|
|
49787
|
+
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
49788
|
/* @__PURE__ */ jsx(Activity, { className: "h-12 w-12 animate-pulse mx-auto mb-4 text-muted-foreground" }),
|
|
49789
49789
|
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: "Loading performance metrics..." })
|
|
49790
49790
|
] }) }) });
|
|
49791
49791
|
}
|
|
49792
|
-
return /* @__PURE__ */ jsxs(
|
|
49793
|
-
/* @__PURE__ */ jsx(
|
|
49792
|
+
return /* @__PURE__ */ jsxs(MoonUICardPro, { className: cn("w-full max-w-6xl", className), children: [
|
|
49793
|
+
/* @__PURE__ */ jsx(MoonUICardHeaderPro, { children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
49794
49794
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
49795
|
-
/* @__PURE__ */ jsxs(
|
|
49795
|
+
/* @__PURE__ */ jsxs(MoonUICardTitlePro, { className: "flex items-center gap-2", children: [
|
|
49796
49796
|
/* @__PURE__ */ jsx(Monitor, { className: "h-5 w-5" }),
|
|
49797
49797
|
"Performance Monitor"
|
|
49798
49798
|
] }),
|
|
49799
|
-
/* @__PURE__ */ jsx(
|
|
49799
|
+
/* @__PURE__ */ jsx(MoonUICardDescriptionPro, { children: "Real-time system performance monitoring and alerts" })
|
|
49800
49800
|
] }),
|
|
49801
49801
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
49802
|
-
/* @__PURE__ */ jsxs(
|
|
49802
|
+
/* @__PURE__ */ jsxs(MoonUIBadgePro, { variant: autoRefresh ? "outline" : "secondary", className: "gap-1", children: [
|
|
49803
49803
|
autoRefresh ? /* @__PURE__ */ jsx(Activity, { className: "h-3 w-3 animate-pulse" }) : /* @__PURE__ */ jsx(Timer, { className: "h-3 w-3" }),
|
|
49804
49804
|
autoRefresh ? "Live" : "Paused"
|
|
49805
49805
|
] }),
|
|
49806
|
-
showAlerts && alerts.length > 0 && /* @__PURE__ */ jsxs(
|
|
49806
|
+
showAlerts && alerts.length > 0 && /* @__PURE__ */ jsxs(MoonUIBadgePro, { variant: "destructive", className: "gap-1", children: [
|
|
49807
49807
|
/* @__PURE__ */ jsx(AlertTriangle, { className: "h-3 w-3" }),
|
|
49808
49808
|
alerts.length
|
|
49809
49809
|
] }),
|
|
49810
49810
|
/* @__PURE__ */ jsx(
|
|
49811
|
-
|
|
49811
|
+
MoonUIButtonPro2,
|
|
49812
49812
|
{
|
|
49813
49813
|
variant: "outline",
|
|
49814
49814
|
size: "sm",
|
|
@@ -49818,7 +49818,7 @@ var PerformanceMonitorInternal = ({
|
|
|
49818
49818
|
}
|
|
49819
49819
|
),
|
|
49820
49820
|
/* @__PURE__ */ jsx(
|
|
49821
|
-
|
|
49821
|
+
MoonUIButtonPro2,
|
|
49822
49822
|
{
|
|
49823
49823
|
variant: "outline",
|
|
49824
49824
|
size: "sm",
|
|
@@ -49827,7 +49827,7 @@ var PerformanceMonitorInternal = ({
|
|
|
49827
49827
|
}
|
|
49828
49828
|
),
|
|
49829
49829
|
/* @__PURE__ */ jsx(
|
|
49830
|
-
|
|
49830
|
+
MoonUIButtonPro2,
|
|
49831
49831
|
{
|
|
49832
49832
|
variant: "ghost",
|
|
49833
49833
|
size: "sm",
|
|
@@ -49837,16 +49837,16 @@ var PerformanceMonitorInternal = ({
|
|
|
49837
49837
|
)
|
|
49838
49838
|
] })
|
|
49839
49839
|
] }) }),
|
|
49840
|
-
/* @__PURE__ */ jsx(
|
|
49841
|
-
/* @__PURE__ */ jsxs(
|
|
49842
|
-
/* @__PURE__ */ jsx(
|
|
49843
|
-
/* @__PURE__ */ jsx(
|
|
49844
|
-
/* @__PURE__ */ jsx(
|
|
49845
|
-
/* @__PURE__ */ jsx(
|
|
49840
|
+
/* @__PURE__ */ jsx(MoonUICardContentPro, { children: /* @__PURE__ */ jsxs(MoonUITabsPro, { defaultValue: "overview", className: "w-full", children: [
|
|
49841
|
+
/* @__PURE__ */ jsxs(MoonUITabsListPro, { className: "grid w-full grid-cols-4", children: [
|
|
49842
|
+
/* @__PURE__ */ jsx(MoonUITabsTriggerPro, { value: "overview", children: "Overview" }),
|
|
49843
|
+
/* @__PURE__ */ jsx(MoonUITabsTriggerPro, { value: "details", children: "Details" }),
|
|
49844
|
+
/* @__PURE__ */ jsx(MoonUITabsTriggerPro, { value: "alerts", children: "Alerts" }),
|
|
49845
|
+
/* @__PURE__ */ jsx(MoonUITabsTriggerPro, { value: "history", children: "History" })
|
|
49846
49846
|
] }),
|
|
49847
|
-
/* @__PURE__ */ jsxs(
|
|
49847
|
+
/* @__PURE__ */ jsxs(MoonUITabsContentPro, { value: "overview", className: "space-y-6", children: [
|
|
49848
49848
|
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 md:grid-cols-4 gap-4", children: [
|
|
49849
|
-
/* @__PURE__ */ jsx(
|
|
49849
|
+
/* @__PURE__ */ jsx(MoonUICardPro, { children: /* @__PURE__ */ jsxs(MoonUICardContentPro, { className: "p-4", children: [
|
|
49850
49850
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
49851
49851
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
49852
49852
|
/* @__PURE__ */ jsx(Cpu, { className: "h-4 w-4 text-blue-500" }),
|
|
@@ -49870,7 +49870,7 @@ var PerformanceMonitorInternal = ({
|
|
|
49870
49870
|
metrics.cpu.temperature && `\u2022 ${metrics.cpu.temperature.toFixed(0)}\xB0C`
|
|
49871
49871
|
] })
|
|
49872
49872
|
] }) }),
|
|
49873
|
-
/* @__PURE__ */ jsx(
|
|
49873
|
+
/* @__PURE__ */ jsx(MoonUICardPro, { children: /* @__PURE__ */ jsxs(MoonUICardContentPro, { className: "p-4", children: [
|
|
49874
49874
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
49875
49875
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
49876
49876
|
/* @__PURE__ */ jsx(MemoryStick, { className: "h-4 w-4 text-green-500" }),
|
|
@@ -49894,7 +49894,7 @@ var PerformanceMonitorInternal = ({
|
|
|
49894
49894
|
formatBytes(metrics.memory.total * 1024 * 1024 * 1024)
|
|
49895
49895
|
] })
|
|
49896
49896
|
] }) }),
|
|
49897
|
-
/* @__PURE__ */ jsx(
|
|
49897
|
+
/* @__PURE__ */ jsx(MoonUICardPro, { children: /* @__PURE__ */ jsxs(MoonUICardContentPro, { className: "p-4", children: [
|
|
49898
49898
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
49899
49899
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
49900
49900
|
/* @__PURE__ */ jsx(HardDrive, { className: "h-4 w-4 text-purple-500" }),
|
|
@@ -49918,7 +49918,7 @@ var PerformanceMonitorInternal = ({
|
|
|
49918
49918
|
formatBytes(metrics.disk.total * 1024 * 1024 * 1024)
|
|
49919
49919
|
] })
|
|
49920
49920
|
] }) }),
|
|
49921
|
-
/* @__PURE__ */ jsx(
|
|
49921
|
+
/* @__PURE__ */ jsx(MoonUICardPro, { children: /* @__PURE__ */ jsxs(MoonUICardContentPro, { className: "p-4", children: [
|
|
49922
49922
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
49923
49923
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
49924
49924
|
/* @__PURE__ */ jsx(Network, { className: "h-4 w-4 text-orange-500" }),
|
|
@@ -49939,9 +49939,9 @@ var PerformanceMonitorInternal = ({
|
|
|
49939
49939
|
] }) })
|
|
49940
49940
|
] }),
|
|
49941
49941
|
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-6", children: [
|
|
49942
|
-
/* @__PURE__ */ jsxs(
|
|
49943
|
-
/* @__PURE__ */ jsx(
|
|
49944
|
-
/* @__PURE__ */ jsxs(
|
|
49942
|
+
/* @__PURE__ */ jsxs(MoonUICardPro, { children: [
|
|
49943
|
+
/* @__PURE__ */ jsx(MoonUICardHeaderPro, { children: /* @__PURE__ */ jsx(MoonUICardTitlePro, { className: "text-base", children: "System Information" }) }),
|
|
49944
|
+
/* @__PURE__ */ jsxs(MoonUICardContentPro, { className: "space-y-3", children: [
|
|
49945
49945
|
/* @__PURE__ */ jsxs("div", { className: "flex justify-between text-sm", children: [
|
|
49946
49946
|
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: "Uptime:" }),
|
|
49947
49947
|
/* @__PURE__ */ jsx("span", { className: "font-medium", children: formatUptime(metrics.system.uptime) })
|
|
@@ -49956,9 +49956,9 @@ var PerformanceMonitorInternal = ({
|
|
|
49956
49956
|
] })
|
|
49957
49957
|
] })
|
|
49958
49958
|
] }),
|
|
49959
|
-
metrics.browser && /* @__PURE__ */ jsxs(
|
|
49960
|
-
/* @__PURE__ */ jsx(
|
|
49961
|
-
/* @__PURE__ */ jsxs(
|
|
49959
|
+
metrics.browser && /* @__PURE__ */ jsxs(MoonUICardPro, { children: [
|
|
49960
|
+
/* @__PURE__ */ jsx(MoonUICardHeaderPro, { children: /* @__PURE__ */ jsx(MoonUICardTitlePro, { className: "text-base", children: "Browser Memory" }) }),
|
|
49961
|
+
/* @__PURE__ */ jsxs(MoonUICardContentPro, { className: "space-y-3", children: [
|
|
49962
49962
|
/* @__PURE__ */ jsxs("div", { className: "flex justify-between text-sm", children: [
|
|
49963
49963
|
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: "JS Heap Used:" }),
|
|
49964
49964
|
/* @__PURE__ */ jsx("span", { className: "font-medium", children: formatBytes(metrics.browser.jsHeapUsed * 1024 * 1024) })
|
|
@@ -49975,13 +49975,13 @@ var PerformanceMonitorInternal = ({
|
|
|
49975
49975
|
] })
|
|
49976
49976
|
] })
|
|
49977
49977
|
] }),
|
|
49978
|
-
/* @__PURE__ */ jsx(
|
|
49979
|
-
/* @__PURE__ */ jsxs(
|
|
49980
|
-
/* @__PURE__ */ jsx(
|
|
49978
|
+
/* @__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: [
|
|
49979
|
+
/* @__PURE__ */ jsxs(MoonUICardPro, { children: [
|
|
49980
|
+
/* @__PURE__ */ jsx(MoonUICardHeaderPro, { children: /* @__PURE__ */ jsxs(MoonUICardTitlePro, { className: "text-base flex items-center gap-2", children: [
|
|
49981
49981
|
/* @__PURE__ */ jsx(Cpu, { className: "h-4 w-4" }),
|
|
49982
49982
|
"CPU Details"
|
|
49983
49983
|
] }) }),
|
|
49984
|
-
/* @__PURE__ */ jsxs(
|
|
49984
|
+
/* @__PURE__ */ jsxs(MoonUICardContentPro, { className: "space-y-4", children: [
|
|
49985
49985
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
49986
49986
|
/* @__PURE__ */ jsxs("div", { className: "flex justify-between text-sm mb-2", children: [
|
|
49987
49987
|
/* @__PURE__ */ jsx("span", { children: "Usage" }),
|
|
@@ -50013,12 +50013,12 @@ var PerformanceMonitorInternal = ({
|
|
|
50013
50013
|
] })
|
|
50014
50014
|
] })
|
|
50015
50015
|
] }),
|
|
50016
|
-
/* @__PURE__ */ jsxs(
|
|
50017
|
-
/* @__PURE__ */ jsx(
|
|
50016
|
+
/* @__PURE__ */ jsxs(MoonUICardPro, { children: [
|
|
50017
|
+
/* @__PURE__ */ jsx(MoonUICardHeaderPro, { children: /* @__PURE__ */ jsxs(MoonUICardTitlePro, { className: "text-base flex items-center gap-2", children: [
|
|
50018
50018
|
/* @__PURE__ */ jsx(MemoryStick, { className: "h-4 w-4" }),
|
|
50019
50019
|
"Memory Details"
|
|
50020
50020
|
] }) }),
|
|
50021
|
-
/* @__PURE__ */ jsxs(
|
|
50021
|
+
/* @__PURE__ */ jsxs(MoonUICardContentPro, { className: "space-y-4", children: [
|
|
50022
50022
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
50023
50023
|
/* @__PURE__ */ jsxs("div", { className: "flex justify-between text-sm mb-2", children: [
|
|
50024
50024
|
/* @__PURE__ */ jsx("span", { children: "Usage" }),
|
|
@@ -50052,14 +50052,14 @@ var PerformanceMonitorInternal = ({
|
|
|
50052
50052
|
] })
|
|
50053
50053
|
] })
|
|
50054
50054
|
] }) }),
|
|
50055
|
-
/* @__PURE__ */ jsxs(
|
|
50055
|
+
/* @__PURE__ */ jsxs(MoonUITabsContentPro, { value: "alerts", className: "space-y-4", children: [
|
|
50056
50056
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
50057
50057
|
/* @__PURE__ */ jsxs("div", { className: "text-sm text-muted-foreground", children: [
|
|
50058
50058
|
alerts.length,
|
|
50059
50059
|
" alerts"
|
|
50060
50060
|
] }),
|
|
50061
50061
|
/* @__PURE__ */ jsx(
|
|
50062
|
-
|
|
50062
|
+
MoonUIButtonPro2,
|
|
50063
50063
|
{
|
|
50064
50064
|
variant: "outline",
|
|
50065
50065
|
size: "sm",
|
|
@@ -50076,7 +50076,7 @@ var PerformanceMonitorInternal = ({
|
|
|
50076
50076
|
animate: { opacity: 1, x: 0 },
|
|
50077
50077
|
exit: { opacity: 0, x: 20 },
|
|
50078
50078
|
transition: { delay: index * 0.05 },
|
|
50079
|
-
children: /* @__PURE__ */ jsx(
|
|
50079
|
+
children: /* @__PURE__ */ jsx(MoonUICardPro, { children: /* @__PURE__ */ jsx(MoonUICardContentPro, { className: "p-4", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
50080
50080
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
50081
50081
|
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
50082
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
@@ -50100,7 +50100,7 @@ var PerformanceMonitorInternal = ({
|
|
|
50100
50100
|
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: "No alerts - System is running smoothly" })
|
|
50101
50101
|
] })
|
|
50102
50102
|
] }),
|
|
50103
|
-
/* @__PURE__ */ jsxs(
|
|
50103
|
+
/* @__PURE__ */ jsxs(MoonUITabsContentPro, { value: "history", className: "space-y-4", children: [
|
|
50104
50104
|
/* @__PURE__ */ jsxs("div", { className: "text-sm text-muted-foreground", children: [
|
|
50105
50105
|
"Last ",
|
|
50106
50106
|
history2.length,
|
|
@@ -50109,9 +50109,9 @@ var PerformanceMonitorInternal = ({
|
|
|
50109
50109
|
" minutes)"
|
|
50110
50110
|
] }),
|
|
50111
50111
|
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(
|
|
50112
|
+
/* @__PURE__ */ jsxs(MoonUICardPro, { children: [
|
|
50113
|
+
/* @__PURE__ */ jsx(MoonUICardHeaderPro, { children: /* @__PURE__ */ jsx(MoonUICardTitlePro, { className: "text-base", children: "CPU Usage Trend" }) }),
|
|
50114
|
+
/* @__PURE__ */ jsxs(MoonUICardContentPro, { children: [
|
|
50115
50115
|
/* @__PURE__ */ jsx("div", { className: "h-32 flex items-end justify-between gap-1", children: history2.slice(-20).reverse().map((point, index) => /* @__PURE__ */ jsx(
|
|
50116
50116
|
"div",
|
|
50117
50117
|
{
|
|
@@ -50123,9 +50123,9 @@ var PerformanceMonitorInternal = ({
|
|
|
50123
50123
|
/* @__PURE__ */ jsx("div", { className: "text-xs text-muted-foreground mt-2 text-center", children: "Last 20 readings" })
|
|
50124
50124
|
] })
|
|
50125
50125
|
] }),
|
|
50126
|
-
/* @__PURE__ */ jsxs(
|
|
50127
|
-
/* @__PURE__ */ jsx(
|
|
50128
|
-
/* @__PURE__ */ jsxs(
|
|
50126
|
+
/* @__PURE__ */ jsxs(MoonUICardPro, { children: [
|
|
50127
|
+
/* @__PURE__ */ jsx(MoonUICardHeaderPro, { children: /* @__PURE__ */ jsx(MoonUICardTitlePro, { className: "text-base", children: "Memory Usage Trend" }) }),
|
|
50128
|
+
/* @__PURE__ */ jsxs(MoonUICardContentPro, { children: [
|
|
50129
50129
|
/* @__PURE__ */ jsx("div", { className: "h-32 flex items-end justify-between gap-1", children: history2.slice(-20).reverse().map((point, index) => /* @__PURE__ */ jsx(
|
|
50130
50130
|
"div",
|
|
50131
50131
|
{
|
|
@@ -50149,12 +50149,12 @@ var PerformanceMonitorInternal = ({
|
|
|
50149
50149
|
var PerformanceMonitor = ({ className, ...props }) => {
|
|
50150
50150
|
const { hasProAccess, isLoading } = useSubscription();
|
|
50151
50151
|
if (!isLoading && !hasProAccess) {
|
|
50152
|
-
return /* @__PURE__ */ jsx(
|
|
50152
|
+
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
50153
|
/* @__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
50154
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
50155
50155
|
/* @__PURE__ */ jsx("h3", { className: "font-semibold text-sm mb-2", children: "Pro Feature" }),
|
|
50156
50156
|
/* @__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(
|
|
50157
|
+
/* @__PURE__ */ jsx("a", { href: "/pricing", children: /* @__PURE__ */ jsxs(MoonUIButtonPro2, { size: "sm", children: [
|
|
50158
50158
|
/* @__PURE__ */ jsx(Sparkles, { className: "mr-2 h-4 w-4" }),
|
|
50159
50159
|
"Upgrade to Pro"
|
|
50160
50160
|
] }) })
|
|
@@ -50199,12 +50199,12 @@ function FileUpload({
|
|
|
50199
50199
|
}) {
|
|
50200
50200
|
const { hasProAccess, isLoading } = useSubscription();
|
|
50201
50201
|
if (!isLoading && !hasProAccess) {
|
|
50202
|
-
return /* @__PURE__ */ jsx(
|
|
50202
|
+
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
50203
|
/* @__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
50204
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
50205
50205
|
/* @__PURE__ */ jsx("h3", { className: "font-semibold text-lg mb-2", children: "Pro Feature" }),
|
|
50206
50206
|
/* @__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(
|
|
50207
|
+
/* @__PURE__ */ jsx("div", { className: "flex gap-3 justify-center", children: /* @__PURE__ */ jsx("a", { href: "/pricing", children: /* @__PURE__ */ jsxs(MoonUIButtonPro2, { size: "sm", children: [
|
|
50208
50208
|
/* @__PURE__ */ jsx(Sparkles, { className: "mr-2 h-4 w-4" }),
|
|
50209
50209
|
"Upgrade to Pro"
|
|
50210
50210
|
] }) }) })
|
|
@@ -50306,20 +50306,20 @@ function FileUpload({
|
|
|
50306
50306
|
fileInputRef.current?.click();
|
|
50307
50307
|
}
|
|
50308
50308
|
};
|
|
50309
|
-
return /* @__PURE__ */ jsxs(
|
|
50310
|
-
/* @__PURE__ */ jsxs(
|
|
50311
|
-
/* @__PURE__ */ jsxs(
|
|
50309
|
+
return /* @__PURE__ */ jsxs(MoonUICardPro, { className: cn("w-full", className), children: [
|
|
50310
|
+
/* @__PURE__ */ jsxs(MoonUICardHeaderPro, { children: [
|
|
50311
|
+
/* @__PURE__ */ jsxs(MoonUICardTitlePro, { className: "flex items-center gap-2", children: [
|
|
50312
50312
|
/* @__PURE__ */ jsx(Upload, { className: "h-5 w-5" }),
|
|
50313
50313
|
"File Upload"
|
|
50314
50314
|
] }),
|
|
50315
|
-
/* @__PURE__ */ jsxs(
|
|
50315
|
+
/* @__PURE__ */ jsxs(MoonUICardDescriptionPro, { children: [
|
|
50316
50316
|
multiple ? `Upload up to ${maxFiles} files` : "Upload a file",
|
|
50317
50317
|
" (max ",
|
|
50318
50318
|
maxSize,
|
|
50319
50319
|
"MB each)"
|
|
50320
50320
|
] })
|
|
50321
50321
|
] }),
|
|
50322
|
-
/* @__PURE__ */ jsxs(
|
|
50322
|
+
/* @__PURE__ */ jsxs(MoonUICardContentPro, { className: "space-y-4", children: [
|
|
50323
50323
|
/* @__PURE__ */ jsxs(
|
|
50324
50324
|
"div",
|
|
50325
50325
|
{
|
|
@@ -50362,7 +50362,7 @@ function FileUpload({
|
|
|
50362
50362
|
/* @__PURE__ */ jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
50363
50363
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
50364
50364
|
/* @__PURE__ */ jsx("p", { className: "text-sm font-medium truncate", children: uploadedFile.file.name }),
|
|
50365
|
-
/* @__PURE__ */ jsxs(
|
|
50365
|
+
/* @__PURE__ */ jsxs(MoonUIBadgePro, { variant: uploadedFile.status === "success" ? "success" : uploadedFile.status === "error" ? "destructive" : "secondary", children: [
|
|
50366
50366
|
uploadedFile.status === "uploading" && /* @__PURE__ */ jsx(Loader2, { className: "h-3 w-3 mr-1 animate-spin" }),
|
|
50367
50367
|
uploadedFile.status === "success" && /* @__PURE__ */ jsx(CheckCircle2, { className: "h-3 w-3 mr-1" }),
|
|
50368
50368
|
uploadedFile.status === "error" && /* @__PURE__ */ jsx(AlertCircle, { className: "h-3 w-3 mr-1" }),
|
|
@@ -50386,9 +50386,9 @@ function FileUpload({
|
|
|
50386
50386
|
uploadedFile.error && /* @__PURE__ */ jsx("p", { className: "text-xs text-destructive mt-1", children: uploadedFile.error })
|
|
50387
50387
|
] }),
|
|
50388
50388
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1", children: [
|
|
50389
|
-
uploadedFile.status === "success" && showPreview && uploadedFile.file.type.startsWith("image/") && /* @__PURE__ */ jsx(
|
|
50389
|
+
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
50390
|
/* @__PURE__ */ jsx(
|
|
50391
|
-
|
|
50391
|
+
MoonUIButtonPro2,
|
|
50392
50392
|
{
|
|
50393
50393
|
variant: "ghost",
|
|
50394
50394
|
size: "sm",
|
|
@@ -50425,12 +50425,12 @@ function DataTable({
|
|
|
50425
50425
|
}) {
|
|
50426
50426
|
const { hasProAccess, isLoading } = useSubscription();
|
|
50427
50427
|
if (!isLoading && !hasProAccess) {
|
|
50428
|
-
return /* @__PURE__ */ jsx(
|
|
50428
|
+
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
50429
|
/* @__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
50430
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
50431
50431
|
/* @__PURE__ */ jsx("h3", { className: "font-semibold text-lg mb-2", children: "Pro Feature" }),
|
|
50432
50432
|
/* @__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(
|
|
50433
|
+
/* @__PURE__ */ jsx("div", { className: "flex gap-3 justify-center", children: /* @__PURE__ */ jsx("a", { href: "/pricing", children: /* @__PURE__ */ jsxs(MoonUIButtonPro2, { size: "sm", children: [
|
|
50434
50434
|
/* @__PURE__ */ jsx(Sparkles, { className: "mr-2 h-4 w-4" }),
|
|
50435
50435
|
"Upgrade to Pro"
|
|
50436
50436
|
] }) }) })
|
|
@@ -50496,7 +50496,7 @@ function DataTable({
|
|
|
50496
50496
|
searchable && /* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
50497
50497
|
/* @__PURE__ */ jsx(Search, { className: "absolute left-2 top-2.5 h-4 w-4 text-muted-foreground" }),
|
|
50498
50498
|
/* @__PURE__ */ jsx(
|
|
50499
|
-
|
|
50499
|
+
MoonUIInputPro,
|
|
50500
50500
|
{
|
|
50501
50501
|
placeholder: "Search all columns...",
|
|
50502
50502
|
value: globalFilter,
|
|
@@ -50505,17 +50505,17 @@ function DataTable({
|
|
|
50505
50505
|
}
|
|
50506
50506
|
)
|
|
50507
50507
|
] }),
|
|
50508
|
-
filterable && /* @__PURE__ */ jsxs(
|
|
50508
|
+
filterable && /* @__PURE__ */ jsxs(MoonUIButtonPro2, { variant: "outline", size: "sm", children: [
|
|
50509
50509
|
/* @__PURE__ */ jsx(Filter, { className: "mr-2 h-4 w-4" }),
|
|
50510
50510
|
"Filters"
|
|
50511
50511
|
] })
|
|
50512
50512
|
] }),
|
|
50513
50513
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
|
|
50514
|
-
exportable && /* @__PURE__ */ jsxs(
|
|
50514
|
+
exportable && /* @__PURE__ */ jsxs(MoonUIButtonPro2, { variant: "outline", size: "sm", onClick: handleExport, children: [
|
|
50515
50515
|
/* @__PURE__ */ jsx(Download, { className: "mr-2 h-4 w-4" }),
|
|
50516
50516
|
"Export"
|
|
50517
50517
|
] }),
|
|
50518
|
-
/* @__PURE__ */ jsxs(
|
|
50518
|
+
/* @__PURE__ */ jsxs(MoonUIButtonPro2, { variant: "outline", size: "sm", children: [
|
|
50519
50519
|
/* @__PURE__ */ jsx(Settings, { className: "mr-2 h-4 w-4" }),
|
|
50520
50520
|
"Columns"
|
|
50521
50521
|
] })
|
|
@@ -50585,7 +50585,7 @@ function DataTable({
|
|
|
50585
50585
|
] }),
|
|
50586
50586
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
|
|
50587
50587
|
/* @__PURE__ */ jsx(
|
|
50588
|
-
|
|
50588
|
+
MoonUIButtonPro2,
|
|
50589
50589
|
{
|
|
50590
50590
|
variant: "outline",
|
|
50591
50591
|
className: "hidden h-8 w-8 p-0 lg:flex",
|
|
@@ -50595,7 +50595,7 @@ function DataTable({
|
|
|
50595
50595
|
}
|
|
50596
50596
|
),
|
|
50597
50597
|
/* @__PURE__ */ jsx(
|
|
50598
|
-
|
|
50598
|
+
MoonUIButtonPro2,
|
|
50599
50599
|
{
|
|
50600
50600
|
variant: "outline",
|
|
50601
50601
|
className: "h-8 w-8 p-0",
|
|
@@ -50605,7 +50605,7 @@ function DataTable({
|
|
|
50605
50605
|
}
|
|
50606
50606
|
),
|
|
50607
50607
|
/* @__PURE__ */ jsx(
|
|
50608
|
-
|
|
50608
|
+
MoonUIButtonPro2,
|
|
50609
50609
|
{
|
|
50610
50610
|
variant: "outline",
|
|
50611
50611
|
className: "h-8 w-8 p-0",
|
|
@@ -50615,7 +50615,7 @@ function DataTable({
|
|
|
50615
50615
|
}
|
|
50616
50616
|
),
|
|
50617
50617
|
/* @__PURE__ */ jsx(
|
|
50618
|
-
|
|
50618
|
+
MoonUIButtonPro2,
|
|
50619
50619
|
{
|
|
50620
50620
|
variant: "outline",
|
|
50621
50621
|
className: "hidden h-8 w-8 p-0 lg:flex",
|
|
@@ -50639,17 +50639,17 @@ __export(enhanced_exports, {
|
|
|
50639
50639
|
CardProContent: () => CardProContent,
|
|
50640
50640
|
CardProFooter: () => CardProFooter,
|
|
50641
50641
|
CardProHeader: () => CardProHeader,
|
|
50642
|
-
DialogPro: () =>
|
|
50642
|
+
DialogPro: () => Dialog,
|
|
50643
50643
|
DialogProClose: () => DialogClose,
|
|
50644
50644
|
DialogProContent: () => DialogProContent,
|
|
50645
50645
|
DialogProDescription: () => DialogProDescription,
|
|
50646
50646
|
DialogProFooter: () => DialogProFooter,
|
|
50647
50647
|
DialogProHeader: () => DialogProHeader,
|
|
50648
50648
|
DialogProTitle: () => DialogProTitle,
|
|
50649
|
-
DialogProTrigger: () =>
|
|
50649
|
+
DialogProTrigger: () => DialogTrigger,
|
|
50650
50650
|
EnhancedCardDescription: () => EnhancedCardDescription,
|
|
50651
50651
|
EnhancedCardTitle: () => EnhancedCardTitle,
|
|
50652
|
-
badgeVariants: () =>
|
|
50652
|
+
badgeVariants: () => badgeVariants,
|
|
50653
50653
|
enhancedButtonVariants: () => enhancedButtonVariants
|
|
50654
50654
|
});
|
|
50655
50655
|
var enhancedButtonVariants = cva(
|
|
@@ -51178,8 +51178,8 @@ var CardProFooter = React16__default.forwardRef(({ className, ...props }, ref) =
|
|
|
51178
51178
|
}
|
|
51179
51179
|
));
|
|
51180
51180
|
CardProFooter.displayName = "CardProFooter";
|
|
51181
|
-
var
|
|
51182
|
-
var
|
|
51181
|
+
var Dialog = DialogPrimitive2.Root;
|
|
51182
|
+
var DialogTrigger = DialogPrimitive2.Trigger;
|
|
51183
51183
|
var DialogPortal2 = DialogPrimitive2.Portal;
|
|
51184
51184
|
var DialogClose = DialogPrimitive2.Close;
|
|
51185
51185
|
var DialogProOverlay = React16.forwardRef(({ className, blur: blur2 = "md", variant = "default", ...props }, ref) => {
|
|
@@ -51372,7 +51372,7 @@ var DialogProDescription = React16.forwardRef(({ className, ...props }, ref) =>
|
|
|
51372
51372
|
}
|
|
51373
51373
|
));
|
|
51374
51374
|
DialogProDescription.displayName = DialogPrimitive2.Description.displayName;
|
|
51375
|
-
var
|
|
51375
|
+
var badgeVariants = cva(
|
|
51376
51376
|
[
|
|
51377
51377
|
"inline-flex items-center gap-1.5",
|
|
51378
51378
|
"font-medium transition-all duration-200",
|
|
@@ -51466,7 +51466,7 @@ var BadgePro = React16__default.forwardRef(({
|
|
|
51466
51466
|
{
|
|
51467
51467
|
ref,
|
|
51468
51468
|
className: cn(
|
|
51469
|
-
|
|
51469
|
+
badgeVariants({ variant, size }),
|
|
51470
51470
|
enablePulse && "animate-pulse",
|
|
51471
51471
|
enableGlow && "shadow-lg shadow-current/50",
|
|
51472
51472
|
enableShimmer && "relative overflow-hidden",
|
|
@@ -51528,4 +51528,4 @@ var BadgePro = React16__default.forwardRef(({
|
|
|
51528
51528
|
});
|
|
51529
51529
|
BadgePro.displayName = "BadgePro";
|
|
51530
51530
|
|
|
51531
|
-
export { AdvancedChart, AdvancedForms, AnimatedButton, Calendar2 as Calendar,
|
|
51531
|
+
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 };
|