@moontra/moonui-pro 2.1.4 → 2.2.0
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 +103 -103
- package/package.json +1 -1
- package/src/components/ui/button.tsx +15 -11
package/dist/index.mjs
CHANGED
|
@@ -1982,7 +1982,7 @@ var CardFooter = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
1982
1982
|
}
|
|
1983
1983
|
));
|
|
1984
1984
|
CardFooter.displayName = "CardFooter";
|
|
1985
|
-
var
|
|
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 MoonUIButtonPro = 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
|
+
MoonUIButtonPro.displayName = "MoonUIButtonPro";
|
|
2169
2169
|
|
|
2170
2170
|
// src/hooks/use-subscription.ts
|
|
2171
2171
|
function useSubscription() {
|
|
@@ -2331,7 +2331,7 @@ var AnimatedButton = React16__default.forwardRef(
|
|
|
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(MoonUIButtonPro, { size: "sm", children: [
|
|
2335
2335
|
/* @__PURE__ */ jsx(Sparkles, { className: "mr-2 h-4 w-4" }),
|
|
2336
2336
|
"Upgrade to Pro"
|
|
2337
2337
|
] }) })
|
|
@@ -2366,7 +2366,7 @@ var ErrorBoundaryInternal = class extends Component {
|
|
|
2366
2366
|
/* @__PURE__ */ jsx(CardDescription, { children: "An error occurred while rendering this component" })
|
|
2367
2367
|
] }),
|
|
2368
2368
|
/* @__PURE__ */ jsx(CardContent, { className: "text-center", children: /* @__PURE__ */ jsxs(
|
|
2369
|
-
|
|
2369
|
+
MoonUIButtonPro,
|
|
2370
2370
|
{
|
|
2371
2371
|
onClick: () => this.setState({ hasError: false, error: void 0 }),
|
|
2372
2372
|
className: "mt-4",
|
|
@@ -2389,7 +2389,7 @@ function ErrorBoundaryWrapper(props) {
|
|
|
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(MoonUIButtonPro, { size: "sm", children: [
|
|
2393
2393
|
/* @__PURE__ */ jsx(Sparkles, { className: "mr-2 h-4 w-4" }),
|
|
2394
2394
|
"Upgrade to Pro"
|
|
2395
2395
|
] }) })
|
|
@@ -2539,7 +2539,7 @@ var FloatingActionButton = React16__default.forwardRef(
|
|
|
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(MoonUIButtonPro, { size: "sm", children: [
|
|
2543
2543
|
/* @__PURE__ */ jsx(Sparkles, { className: "mr-2 h-4 w-4" }),
|
|
2544
2544
|
"Upgrade to Pro"
|
|
2545
2545
|
] }) })
|
|
@@ -2663,7 +2663,7 @@ var HoverCard3D = React16__default.forwardRef(
|
|
|
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(MoonUIButtonPro, { size: "sm", children: [
|
|
2667
2667
|
/* @__PURE__ */ jsx(Sparkles, { className: "mr-2 h-4 w-4" }),
|
|
2668
2668
|
"Upgrade to Pro"
|
|
2669
2669
|
] }) })
|
|
@@ -2785,7 +2785,7 @@ var MagneticButton = React16__default.forwardRef(
|
|
|
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(MoonUIButtonPro, { size: "sm", children: [
|
|
2789
2789
|
/* @__PURE__ */ jsx(Sparkles, { className: "mr-2 h-4 w-4" }),
|
|
2790
2790
|
"Upgrade to Pro"
|
|
2791
2791
|
] }) })
|
|
@@ -2906,7 +2906,7 @@ var PinchZoom = React16__default.forwardRef(
|
|
|
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(MoonUIButtonPro, { size: "sm", children: [
|
|
2910
2910
|
/* @__PURE__ */ jsx(Sparkles, { className: "mr-2 h-4 w-4" }),
|
|
2911
2911
|
"Upgrade to Pro"
|
|
2912
2912
|
] }) })
|
|
@@ -3055,7 +3055,7 @@ var SpotlightCard = React16__default.forwardRef(
|
|
|
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(MoonUIButtonPro, { size: "sm", children: [
|
|
3059
3059
|
/* @__PURE__ */ jsx(Sparkles, { className: "mr-2 h-4 w-4" }),
|
|
3060
3060
|
"Upgrade to Pro"
|
|
3061
3061
|
] }) })
|
|
@@ -4075,7 +4075,7 @@ function EventDialog({
|
|
|
4075
4075
|
] }),
|
|
4076
4076
|
/* @__PURE__ */ jsxs(DialogFooter, { className: "gap-2", children: [
|
|
4077
4077
|
mode === "edit" && onDelete && /* @__PURE__ */ jsx(
|
|
4078
|
-
|
|
4078
|
+
MoonUIButtonPro,
|
|
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
|
+
MoonUIButtonPro,
|
|
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(MoonUIButtonPro, { type: "submit", disabled: isSubmitting, children: isSubmitting ? mode === "create" ? "Creating..." : "Saving..." : mode === "create" ? "Create Event" : "Save Changes" })
|
|
4098
4098
|
] })
|
|
4099
4099
|
] })
|
|
4100
4100
|
] }) });
|
|
@@ -4142,7 +4142,7 @@ function Calendar2({
|
|
|
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(MoonUIButtonPro, { size: "sm", children: [
|
|
4146
4146
|
/* @__PURE__ */ jsx(Sparkles, { className: "mr-2 h-4 w-4" }),
|
|
4147
4147
|
"Upgrade to Pro"
|
|
4148
4148
|
] }) }) })
|
|
@@ -4300,9 +4300,9 @@ function Calendar2({
|
|
|
4300
4300
|
] })
|
|
4301
4301
|
] }),
|
|
4302
4302
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
4303
|
-
/* @__PURE__ */ jsx(
|
|
4303
|
+
/* @__PURE__ */ jsx(MoonUIButtonPro, { variant: "outline", size: "sm", onClick: goToToday, children: "Today" }),
|
|
4304
4304
|
/* @__PURE__ */ jsx(
|
|
4305
|
-
|
|
4305
|
+
MoonUIButtonPro,
|
|
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
|
+
MoonUIButtonPro,
|
|
4316
4316
|
{
|
|
4317
4317
|
variant: "outline",
|
|
4318
4318
|
size: "sm",
|
|
@@ -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
|
+
MoonUIButtonPro,
|
|
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
|
+
MoonUIButtonPro,
|
|
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
|
+
MoonUIButtonPro,
|
|
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
|
+
MoonUIButtonPro,
|
|
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
|
+
MoonUIButtonPro,
|
|
4483
4483
|
{
|
|
4484
4484
|
variant: "outline",
|
|
4485
4485
|
size: "sm",
|
|
@@ -4643,7 +4643,7 @@ function Kanban({
|
|
|
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(MoonUIButtonPro, { size: "sm", children: [
|
|
4647
4647
|
/* @__PURE__ */ jsx(Sparkles, { className: "mr-2 h-4 w-4" }),
|
|
4648
4648
|
"Upgrade to Pro"
|
|
4649
4649
|
] }) }) })
|
|
@@ -4768,7 +4768,7 @@ function Kanban({
|
|
|
4768
4768
|
/* @__PURE__ */ jsx(CardTitle, { className: "text-sm font-medium", children: column.title }),
|
|
4769
4769
|
/* @__PURE__ */ jsx(Badge, { variant: "secondary", className: "text-xs", children: column.cards.length })
|
|
4770
4770
|
] }),
|
|
4771
|
-
/* @__PURE__ */ jsx(
|
|
4771
|
+
/* @__PURE__ */ jsx(MoonUIButtonPro, { variant: "ghost", size: "sm", children: /* @__PURE__ */ jsx(MoreHorizontal, { className: "h-4 w-4" }) })
|
|
4772
4772
|
] }),
|
|
4773
4773
|
column.limit && /* @__PURE__ */ jsx(CardDescription, { className: cn(
|
|
4774
4774
|
"text-xs",
|
|
@@ -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
|
+
MoonUIButtonPro,
|
|
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
|
+
MoonUIButtonPro,
|
|
4811
4811
|
{
|
|
4812
4812
|
variant: "ghost",
|
|
4813
4813
|
size: "sm",
|
|
@@ -4854,7 +4854,7 @@ function Kanban({
|
|
|
4854
4854
|
card.id
|
|
4855
4855
|
)),
|
|
4856
4856
|
onAddCard && /* @__PURE__ */ jsxs(
|
|
4857
|
-
|
|
4857
|
+
MoonUIButtonPro,
|
|
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
|
+
MoonUIButtonPro,
|
|
4878
4878
|
{
|
|
4879
4879
|
variant: "outline",
|
|
4880
4880
|
onClick: onAddColumn,
|
|
@@ -44392,7 +44392,7 @@ function RichTextEditor({
|
|
|
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(MoonUIButtonPro, { size: "sm", children: [
|
|
44396
44396
|
/* @__PURE__ */ jsx(Sparkles, { className: "mr-2 h-4 w-4" }),
|
|
44397
44397
|
"Upgrade to Pro"
|
|
44398
44398
|
] }) }) })
|
|
@@ -44818,7 +44818,7 @@ function RichTextEditor({
|
|
|
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
44820
|
features.heading && /* @__PURE__ */ jsxs(DropdownMenu, { children: [
|
|
44821
|
-
/* @__PURE__ */ jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(
|
|
44821
|
+
/* @__PURE__ */ jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(MoonUIButtonPro, { 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
|
] }) }),
|
|
@@ -44930,7 +44930,7 @@ function RichTextEditor({
|
|
|
44930
44930
|
features.color && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1 shrink-0", children: [
|
|
44931
44931
|
/* @__PURE__ */ jsxs(Popover, { children: [
|
|
44932
44932
|
/* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
44933
|
-
|
|
44933
|
+
MoonUIButtonPro,
|
|
44934
44934
|
{
|
|
44935
44935
|
variant: "ghost",
|
|
44936
44936
|
size: "sm",
|
|
@@ -44953,7 +44953,7 @@ function RichTextEditor({
|
|
|
44953
44953
|
] }),
|
|
44954
44954
|
/* @__PURE__ */ jsxs(Popover, { children: [
|
|
44955
44955
|
/* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
44956
|
-
|
|
44956
|
+
MoonUIButtonPro,
|
|
44957
44957
|
{
|
|
44958
44958
|
variant: "ghost",
|
|
44959
44959
|
size: "sm",
|
|
@@ -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
|
+
MoonUIButtonPro,
|
|
45027
45027
|
{
|
|
45028
45028
|
variant: "destructive",
|
|
45029
45029
|
onClick: () => {
|
|
@@ -45034,8 +45034,8 @@ 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(MoonUIButtonPro, { variant: "outline", onClick: () => setIsLinkDialogOpen(false), children: "Cancel" }),
|
|
45038
|
+
/* @__PURE__ */ jsx(MoonUIButtonPro, { onClick: addLink, children: "Add Link" })
|
|
45039
45039
|
] })
|
|
45040
45040
|
] })
|
|
45041
45041
|
] })
|
|
@@ -45079,8 +45079,8 @@ 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(MoonUIButtonPro, { variant: "outline", onClick: () => setIsImageDialogOpen(false), children: "Cancel" }),
|
|
45083
|
+
/* @__PURE__ */ jsx(MoonUIButtonPro, { onClick: addImage, children: "Add Image" })
|
|
45084
45084
|
] })
|
|
45085
45085
|
] })
|
|
45086
45086
|
] }),
|
|
@@ -45145,13 +45145,13 @@ function RichTextEditor({
|
|
|
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(MoonUIButtonPro, { variant: "outline", onClick: () => setIsTableDialogOpen(false), children: "Cancel" }),
|
|
45149
|
+
/* @__PURE__ */ jsx(MoonUIButtonPro, { onClick: createTable2, children: "Create Table" })
|
|
45150
45150
|
] })
|
|
45151
45151
|
] })
|
|
45152
45152
|
] }),
|
|
45153
45153
|
/* @__PURE__ */ jsxs(DropdownMenu, { children: [
|
|
45154
|
-
/* @__PURE__ */ jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
45154
|
+
/* @__PURE__ */ jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsx(MoonUIButtonPro, { variant: "ghost", size: "sm", className: "h-8 px-1", children: /* @__PURE__ */ jsx(ChevronDown, { className: "w-3 h-3" }) }) }),
|
|
45155
45155
|
/* @__PURE__ */ jsxs(DropdownMenuContent, { children: [
|
|
45156
45156
|
/* @__PURE__ */ jsx(DropdownMenuItem, { onClick: () => editor.chain().focus().addColumnBefore().run(), children: "Add column before" }),
|
|
45157
45157
|
/* @__PURE__ */ jsx(DropdownMenuItem, { onClick: () => editor.chain().focus().addColumnAfter().run(), children: "Add column after" }),
|
|
@@ -45210,7 +45210,7 @@ function RichTextEditor({
|
|
|
45210
45210
|
features.ai && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
45211
45211
|
/* @__PURE__ */ jsxs(DropdownMenu, { children: [
|
|
45212
45212
|
/* @__PURE__ */ jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(
|
|
45213
|
-
|
|
45213
|
+
MoonUIButtonPro,
|
|
45214
45214
|
{
|
|
45215
45215
|
variant: "ghost",
|
|
45216
45216
|
size: "sm",
|
|
@@ -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(MoonUIButtonPro, { onClick: () => {
|
|
45392
45392
|
setIsAiSettingsOpen(false);
|
|
45393
45393
|
toast({
|
|
45394
45394
|
title: "Settings saved",
|
|
@@ -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(MoonUIButtonPro, { variant: "outline", onClick: () => setIsTableBorderDialogOpen(false), children: "Cancel" }),
|
|
45526
|
+
/* @__PURE__ */ jsx(MoonUIButtonPro, { onClick: () => {
|
|
45527
45527
|
applyTableBorders(tableBorderWidth, tableBorderColor, tableBorderStyle);
|
|
45528
45528
|
setIsTableBorderDialogOpen(false);
|
|
45529
45529
|
toast({
|
|
@@ -46534,7 +46534,7 @@ function AdvancedChart({
|
|
|
46534
46534
|
if (error) {
|
|
46535
46535
|
return /* @__PURE__ */ jsx(Card, { className: cn$1("w-full", className), children: /* @__PURE__ */ jsx(CardContent, { 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(MoonUIButtonPro, { variant: "outline", onClick: onRefresh, children: [
|
|
46538
46538
|
/* @__PURE__ */ jsx(RefreshCw, { className: "mr-2 h-4 w-4" }),
|
|
46539
46539
|
"Retry"
|
|
46540
46540
|
] })
|
|
@@ -46563,10 +46563,10 @@ 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(MoonUIButtonPro, { variant: "ghost", size: "sm", onClick: onRefresh, children: /* @__PURE__ */ jsx(RefreshCw, { className: "h-4 w-4" }) }),
|
|
46567
|
+
/* @__PURE__ */ jsx(MoonUIButtonPro, { variant: "ghost", size: "sm", children: /* @__PURE__ */ jsx(Settings, { className: "h-4 w-4" }) }),
|
|
46568
|
+
onExport && /* @__PURE__ */ jsx(MoonUIButtonPro, { variant: "ghost", size: "sm", onClick: () => handleExport("png"), children: /* @__PURE__ */ jsx(Download, { className: "h-4 w-4" }) }),
|
|
46569
|
+
/* @__PURE__ */ jsx(MoonUIButtonPro, { variant: "ghost", size: "sm", onClick: () => setIsFullscreen(!isFullscreen), children: /* @__PURE__ */ jsx(Maximize2, { className: "h-4 w-4" }) })
|
|
46570
46570
|
] })
|
|
46571
46571
|
] }),
|
|
46572
46572
|
/* @__PURE__ */ jsx(CardContent, { children: responsive ? /* @__PURE__ */ jsx(ResponsiveContainer, { width: "100%", height, children: renderChart() }) : /* @__PURE__ */ jsx("div", { style: { width: "100%", height: `${height}px` }, children: renderChart() }) })
|
|
@@ -46684,7 +46684,7 @@ function Dashboard({
|
|
|
46684
46684
|
widget.description && /* @__PURE__ */ jsx(CardDescription, { className: "mt-1", children: widget.description })
|
|
46685
46685
|
] }),
|
|
46686
46686
|
/* @__PURE__ */ jsx(
|
|
46687
|
-
|
|
46687
|
+
MoonUIButtonPro,
|
|
46688
46688
|
{
|
|
46689
46689
|
variant: "ghost",
|
|
46690
46690
|
size: "sm",
|
|
@@ -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
|
+
MoonUIButtonPro,
|
|
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(MoonUIButtonPro, { 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(MoonUIButtonPro, { 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(MoonUIButtonPro, { variant: "outline", size: "sm", children: [
|
|
46771
46771
|
/* @__PURE__ */ jsx(Star, { className: "h-4 w-4 mr-2" }),
|
|
46772
46772
|
"Save View"
|
|
46773
46773
|
] })
|
|
@@ -47174,7 +47174,7 @@ var AdvancedFormsInternal = ({
|
|
|
47174
47174
|
}
|
|
47175
47175
|
),
|
|
47176
47176
|
/* @__PURE__ */ jsx(
|
|
47177
|
-
|
|
47177
|
+
MoonUIButtonPro,
|
|
47178
47178
|
{
|
|
47179
47179
|
type: "button",
|
|
47180
47180
|
variant: "ghost",
|
|
@@ -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
|
+
MoonUIButtonPro,
|
|
47268
47268
|
{
|
|
47269
47269
|
type: "button",
|
|
47270
47270
|
variant: "ghost",
|
|
@@ -47331,7 +47331,7 @@ var AdvancedFormsInternal = ({
|
|
|
47331
47331
|
" fields completed"
|
|
47332
47332
|
] }),
|
|
47333
47333
|
/* @__PURE__ */ jsx(
|
|
47334
|
-
|
|
47334
|
+
MoonUIButtonPro,
|
|
47335
47335
|
{
|
|
47336
47336
|
type: "submit",
|
|
47337
47337
|
disabled: isSubmitting || !isValid,
|
|
@@ -47358,7 +47358,7 @@ var AdvancedForms = ({ className, ...props }) => {
|
|
|
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(MoonUIButtonPro, { size: "sm", children: [
|
|
47362
47362
|
/* @__PURE__ */ jsx(Sparkles, { className: "mr-2 h-4 w-4" }),
|
|
47363
47363
|
"Upgrade to Pro"
|
|
47364
47364
|
] }) })
|
|
@@ -47549,7 +47549,7 @@ var ColorPickerInternal = ({
|
|
|
47549
47549
|
};
|
|
47550
47550
|
return /* @__PURE__ */ jsxs(Popover, { children: [
|
|
47551
47551
|
/* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
47552
|
-
|
|
47552
|
+
MoonUIButtonPro,
|
|
47553
47553
|
{
|
|
47554
47554
|
variant: "outline",
|
|
47555
47555
|
className: cn(
|
|
@@ -47666,7 +47666,7 @@ var ColorPickerInternal = ({
|
|
|
47666
47666
|
showCopy && /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
47667
47667
|
/* @__PURE__ */ jsx(Label, { children: "\xA0" }),
|
|
47668
47668
|
/* @__PURE__ */ jsx(
|
|
47669
|
-
|
|
47669
|
+
MoonUIButtonPro,
|
|
47670
47670
|
{
|
|
47671
47671
|
variant: "outline",
|
|
47672
47672
|
size: "sm",
|
|
@@ -47679,7 +47679,7 @@ var ColorPickerInternal = ({
|
|
|
47679
47679
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
47680
47680
|
/* @__PURE__ */ jsx(Label, { children: "\xA0" }),
|
|
47681
47681
|
/* @__PURE__ */ jsx(
|
|
47682
|
-
|
|
47682
|
+
MoonUIButtonPro,
|
|
47683
47683
|
{
|
|
47684
47684
|
variant: "outline",
|
|
47685
47685
|
size: "sm",
|
|
@@ -47718,7 +47718,7 @@ var ColorPicker2 = ({ className, ...props }) => {
|
|
|
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(MoonUIButtonPro, { size: "sm", children: [
|
|
47722
47722
|
/* @__PURE__ */ jsx(Sparkles, { className: "mr-2 h-4 w-4" }),
|
|
47723
47723
|
"Upgrade to Pro"
|
|
47724
47724
|
] }) })
|
|
@@ -47868,7 +47868,7 @@ var GitHubStarsInternal = ({
|
|
|
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(MoonUIButtonPro, { onClick: fetchRepositories, variant: "outline", children: [
|
|
47872
47872
|
/* @__PURE__ */ jsx(RefreshCw, { className: "h-4 w-4 mr-2" }),
|
|
47873
47873
|
"Try Again"
|
|
47874
47874
|
] })
|
|
@@ -47895,7 +47895,7 @@ var GitHubStarsInternal = ({
|
|
|
47895
47895
|
" repos"
|
|
47896
47896
|
] }),
|
|
47897
47897
|
autoRefresh && /* @__PURE__ */ jsx(Badge, { variant: "secondary", children: "Auto-refresh" }),
|
|
47898
|
-
/* @__PURE__ */ jsx(
|
|
47898
|
+
/* @__PURE__ */ jsx(MoonUIButtonPro, { 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(
|
|
@@ -47919,7 +47919,7 @@ var GitHubStarsInternal = ({
|
|
|
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
|
+
MoonUIButtonPro,
|
|
47923
47923
|
{
|
|
47924
47924
|
variant: "ghost",
|
|
47925
47925
|
size: "sm",
|
|
@@ -47984,7 +47984,7 @@ var GitHubStars = ({ className, ...props }) => {
|
|
|
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(MoonUIButtonPro, { size: "sm", children: [
|
|
47988
47988
|
/* @__PURE__ */ jsx(Sparkles, { className: "mr-2 h-4 w-4" }),
|
|
47989
47989
|
"Upgrade to Pro"
|
|
47990
47990
|
] }) })
|
|
@@ -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
|
+
MoonUIButtonPro,
|
|
48178
48178
|
{
|
|
48179
48179
|
onClick: checkAllEndpoints,
|
|
48180
48180
|
disabled: isChecking,
|
|
@@ -48277,7 +48277,7 @@ var HealthCheck = ({ className, ...props }) => {
|
|
|
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(MoonUIButtonPro, { size: "sm", children: [
|
|
48281
48281
|
/* @__PURE__ */ jsx(Sparkles, { className: "mr-2 h-4 w-4" }),
|
|
48282
48282
|
"Upgrade to Pro"
|
|
48283
48283
|
] }) })
|
|
@@ -48498,7 +48498,7 @@ var LazyComponent = ({ className, ...props }) => {
|
|
|
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(MoonUIButtonPro, { 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
|
+
MoonUIButtonPro,
|
|
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
|
+
MoonUIButtonPro,
|
|
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
|
+
MoonUIButtonPro,
|
|
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
|
+
MoonUIButtonPro,
|
|
48741
48741
|
{
|
|
48742
48742
|
size: "sm",
|
|
48743
48743
|
variant: "secondary",
|
|
@@ -48751,7 +48751,7 @@ var OptimizedImageInternal = ({
|
|
|
48751
48751
|
"%"
|
|
48752
48752
|
] }),
|
|
48753
48753
|
/* @__PURE__ */ jsx(
|
|
48754
|
-
|
|
48754
|
+
MoonUIButtonPro,
|
|
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
|
+
MoonUIButtonPro,
|
|
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
|
+
MoonUIButtonPro,
|
|
48775
48775
|
{
|
|
48776
48776
|
size: "sm",
|
|
48777
48777
|
variant: "secondary",
|
|
@@ -48809,7 +48809,7 @@ var OptimizedImage = ({ className, ...props }) => {
|
|
|
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(MoonUIButtonPro, { size: "sm", children: [
|
|
48813
48813
|
/* @__PURE__ */ jsx(Sparkles, { className: "mr-2 h-4 w-4" }),
|
|
48814
48814
|
"Upgrade to Pro"
|
|
48815
48815
|
] }) })
|
|
@@ -49377,7 +49377,7 @@ var PerformanceDebuggerInternal = ({
|
|
|
49377
49377
|
};
|
|
49378
49378
|
if (!isVisible) {
|
|
49379
49379
|
return /* @__PURE__ */ jsxs(
|
|
49380
|
-
|
|
49380
|
+
MoonUIButtonPro,
|
|
49381
49381
|
{
|
|
49382
49382
|
variant: "outline",
|
|
49383
49383
|
size: "sm",
|
|
@@ -49405,7 +49405,7 @@ var PerformanceDebuggerInternal = ({
|
|
|
49405
49405
|
isCapturing ? "Live" : "Paused"
|
|
49406
49406
|
] }),
|
|
49407
49407
|
/* @__PURE__ */ jsx(
|
|
49408
|
-
|
|
49408
|
+
MoonUIButtonPro,
|
|
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
|
+
MoonUIButtonPro,
|
|
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
|
+
MoonUIButtonPro,
|
|
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
|
+
MoonUIButtonPro,
|
|
49436
49436
|
{
|
|
49437
49437
|
variant: "ghost",
|
|
49438
49438
|
size: "sm",
|
|
@@ -49494,7 +49494,7 @@ var PerformanceDebuggerInternal = ({
|
|
|
49494
49494
|
entries.length,
|
|
49495
49495
|
" entries captured"
|
|
49496
49496
|
] }),
|
|
49497
|
-
/* @__PURE__ */ jsx(
|
|
49497
|
+
/* @__PURE__ */ jsx(MoonUIButtonPro, { variant: "outline", size: "sm", onClick: clearData, children: "Clear History" })
|
|
49498
49498
|
] }),
|
|
49499
49499
|
/* @__PURE__ */ jsx("div", { className: "space-y-2 max-h-96 overflow-y-auto", children: entries.map((entry, index) => /* @__PURE__ */ jsx(Card, { children: /* @__PURE__ */ jsxs(CardContent, { className: "p-4", children: [
|
|
49500
49500
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between mb-2", children: [
|
|
@@ -49558,7 +49558,7 @@ var PerformanceDebugger = ({ className, ...props }) => {
|
|
|
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(MoonUIButtonPro, { 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
|
+
MoonUIButtonPro,
|
|
49774
49774
|
{
|
|
49775
49775
|
variant: "outline",
|
|
49776
49776
|
size: "sm",
|
|
@@ -49808,7 +49808,7 @@ var PerformanceMonitorInternal = ({
|
|
|
49808
49808
|
alerts.length
|
|
49809
49809
|
] }),
|
|
49810
49810
|
/* @__PURE__ */ jsx(
|
|
49811
|
-
|
|
49811
|
+
MoonUIButtonPro,
|
|
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
|
+
MoonUIButtonPro,
|
|
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
|
+
MoonUIButtonPro,
|
|
49831
49831
|
{
|
|
49832
49832
|
variant: "ghost",
|
|
49833
49833
|
size: "sm",
|
|
@@ -50059,7 +50059,7 @@ var PerformanceMonitorInternal = ({
|
|
|
50059
50059
|
" alerts"
|
|
50060
50060
|
] }),
|
|
50061
50061
|
/* @__PURE__ */ jsx(
|
|
50062
|
-
|
|
50062
|
+
MoonUIButtonPro,
|
|
50063
50063
|
{
|
|
50064
50064
|
variant: "outline",
|
|
50065
50065
|
size: "sm",
|
|
@@ -50154,7 +50154,7 @@ var PerformanceMonitor = ({ className, ...props }) => {
|
|
|
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(MoonUIButtonPro, { size: "sm", children: [
|
|
50158
50158
|
/* @__PURE__ */ jsx(Sparkles, { className: "mr-2 h-4 w-4" }),
|
|
50159
50159
|
"Upgrade to Pro"
|
|
50160
50160
|
] }) })
|
|
@@ -50204,7 +50204,7 @@ function FileUpload({
|
|
|
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(MoonUIButtonPro, { size: "sm", children: [
|
|
50208
50208
|
/* @__PURE__ */ jsx(Sparkles, { className: "mr-2 h-4 w-4" }),
|
|
50209
50209
|
"Upgrade to Pro"
|
|
50210
50210
|
] }) }) })
|
|
@@ -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(MoonUIButtonPro, { variant: "ghost", size: "sm", children: /* @__PURE__ */ jsx(Download, { className: "h-4 w-4" }) }),
|
|
50390
50390
|
/* @__PURE__ */ jsx(
|
|
50391
|
-
|
|
50391
|
+
MoonUIButtonPro,
|
|
50392
50392
|
{
|
|
50393
50393
|
variant: "ghost",
|
|
50394
50394
|
size: "sm",
|
|
@@ -50430,7 +50430,7 @@ function DataTable({
|
|
|
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(MoonUIButtonPro, { size: "sm", children: [
|
|
50434
50434
|
/* @__PURE__ */ jsx(Sparkles, { className: "mr-2 h-4 w-4" }),
|
|
50435
50435
|
"Upgrade to Pro"
|
|
50436
50436
|
] }) }) })
|
|
@@ -50505,17 +50505,17 @@ function DataTable({
|
|
|
50505
50505
|
}
|
|
50506
50506
|
)
|
|
50507
50507
|
] }),
|
|
50508
|
-
filterable && /* @__PURE__ */ jsxs(
|
|
50508
|
+
filterable && /* @__PURE__ */ jsxs(MoonUIButtonPro, { 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(MoonUIButtonPro, { 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(MoonUIButtonPro, { 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
|
+
MoonUIButtonPro,
|
|
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
|
+
MoonUIButtonPro,
|
|
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
|
+
MoonUIButtonPro,
|
|
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
|
+
MoonUIButtonPro,
|
|
50619
50619
|
{
|
|
50620
50620
|
variant: "outline",
|
|
50621
50621
|
className: "hidden h-8 w-8 p-0 lg:flex",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moontra/moonui-pro",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "Premium React components for MoonUI - Advanced UI library with 50+ pro components including performance, interactive, and gesture components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.mjs",
|
|
@@ -4,12 +4,12 @@ import { cn } from "../../lib/utils";
|
|
|
4
4
|
import { Loader2 } from "lucide-react";
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* MoonUI Button Pro Component
|
|
8
8
|
*
|
|
9
9
|
* A world-class, accessible, and versatile button component.
|
|
10
10
|
* Pixel-perfect design with extensive variants and states.
|
|
11
11
|
*/
|
|
12
|
-
const
|
|
12
|
+
const moonUIButtonProVariants = cva(
|
|
13
13
|
["inline-flex items-center justify-center gap-2 whitespace-nowrap",
|
|
14
14
|
"font-medium relative",
|
|
15
15
|
"transition-all duration-200 ease-out",
|
|
@@ -156,10 +156,10 @@ const buttonVariants = cva(
|
|
|
156
156
|
}
|
|
157
157
|
);
|
|
158
158
|
|
|
159
|
-
// Button component props
|
|
160
|
-
export interface
|
|
159
|
+
// MoonUI Button Pro component props
|
|
160
|
+
export interface MoonUIButtonProProps
|
|
161
161
|
extends React.ButtonHTMLAttributes<HTMLButtonElement>,
|
|
162
|
-
VariantProps<typeof
|
|
162
|
+
VariantProps<typeof moonUIButtonProVariants> {
|
|
163
163
|
asChild?: boolean;
|
|
164
164
|
loading?: boolean;
|
|
165
165
|
leftIcon?: React.ReactNode;
|
|
@@ -167,9 +167,9 @@ export interface ButtonProps
|
|
|
167
167
|
}
|
|
168
168
|
|
|
169
169
|
/**
|
|
170
|
-
*
|
|
170
|
+
* MoonUI Button Pro Component
|
|
171
171
|
*
|
|
172
|
-
* @param props - Button component properties
|
|
172
|
+
* @param props - MoonUI Button Pro component properties
|
|
173
173
|
* @param props.variant - Visual variant (primary, secondary, ghost, etc.)
|
|
174
174
|
* @param props.size - Button size (xs, sm, md, lg, xl)
|
|
175
175
|
* @param props.loading - Loading state display
|
|
@@ -179,7 +179,7 @@ export interface ButtonProps
|
|
|
179
179
|
* @param props.rounded - Corner rounding style (default, full, none)
|
|
180
180
|
* @param props.asChild - For Radix UI polymorphic component
|
|
181
181
|
*/
|
|
182
|
-
const
|
|
182
|
+
const MoonUIButtonPro = React.forwardRef<HTMLButtonElement, MoonUIButtonProProps>(
|
|
183
183
|
({
|
|
184
184
|
className,
|
|
185
185
|
variant,
|
|
@@ -199,7 +199,7 @@ const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
|
|
|
199
199
|
|
|
200
200
|
return (
|
|
201
201
|
<Comp
|
|
202
|
-
className={cn(
|
|
202
|
+
className={cn(moonUIButtonProVariants({ variant, size, rounded, fullWidth, className }))}
|
|
203
203
|
ref={ref}
|
|
204
204
|
disabled={disabled || loading}
|
|
205
205
|
data-loading={loading ? "" : undefined}
|
|
@@ -216,6 +216,10 @@ const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
|
|
|
216
216
|
}
|
|
217
217
|
);
|
|
218
218
|
|
|
219
|
-
|
|
219
|
+
MoonUIButtonPro.displayName = "MoonUIButtonPro";
|
|
220
220
|
|
|
221
|
-
export {
|
|
221
|
+
export { MoonUIButtonPro, moonUIButtonProVariants };
|
|
222
|
+
|
|
223
|
+
// Backward compatibility exports
|
|
224
|
+
export { MoonUIButtonPro as Button, moonUIButtonProVariants as buttonVariants };
|
|
225
|
+
export type { MoonUIButtonProProps as ButtonProps };
|