@moontra/moonui-pro 2.2.11 → 2.2.12
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 +116 -117
- package/package.json +1 -1
- package/src/components/ui/alert.tsx +3 -3
- package/src/components/ui/avatar.tsx +4 -4
- package/src/components/ui/breadcrumb.tsx +7 -7
- package/src/components/ui/button.tsx +1 -1
- package/src/components/ui/card.tsx +6 -6
- package/src/components/ui/checkbox.tsx +9 -9
- package/src/components/ui/dialog.tsx +12 -12
- package/src/components/ui/dropdown-menu.tsx +7 -7
- package/src/components/ui/input.tsx +1 -1
- package/src/components/ui/label.tsx +1 -1
- package/src/components/ui/popover.tsx +1 -1
- package/src/components/ui/radio-group.tsx +21 -25
- package/src/components/ui/select.tsx +10 -10
- package/src/components/ui/slider.tsx +1 -1
- package/src/components/ui/table.tsx +10 -15
- package/src/components/ui/textarea.tsx +1 -1
- package/src/components/ui/toast.tsx +12 -12
- package/src/components/ui/tooltip.tsx +2 -2
package/dist/index.mjs
CHANGED
|
@@ -11,7 +11,7 @@ import { motion, AnimatePresence, useMotionValue, useSpring, useTransform, anima
|
|
|
11
11
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
12
12
|
import ReactDOM3 from 'react-dom';
|
|
13
13
|
import { createSlot } from '@radix-ui/react-slot';
|
|
14
|
-
import * as
|
|
14
|
+
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
15
15
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
16
16
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
17
17
|
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
@@ -1867,7 +1867,7 @@ var MoonUIAlertPro = t.forwardRef(
|
|
|
1867
1867
|
);
|
|
1868
1868
|
}
|
|
1869
1869
|
);
|
|
1870
|
-
|
|
1870
|
+
MoonUIAlert.displayName = "AlertPro";
|
|
1871
1871
|
var MoonUIAlertTitlePro = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1872
1872
|
"h5",
|
|
1873
1873
|
{
|
|
@@ -1876,7 +1876,7 @@ var MoonUIAlertTitlePro = t.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
1876
1876
|
...props
|
|
1877
1877
|
}
|
|
1878
1878
|
));
|
|
1879
|
-
|
|
1879
|
+
MoonUIAlertTitle.displayName = "AlertTitlePro";
|
|
1880
1880
|
var MoonUIAlertDescriptionPro = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1881
1881
|
"div",
|
|
1882
1882
|
{
|
|
@@ -1885,7 +1885,7 @@ var MoonUIAlertDescriptionPro = t.forwardRef(({ className, ...props }, ref) => /
|
|
|
1885
1885
|
...props
|
|
1886
1886
|
}
|
|
1887
1887
|
));
|
|
1888
|
-
|
|
1888
|
+
MoonUIAlertDescription.displayName = "AlertDescriptionPro";
|
|
1889
1889
|
var MoonUIaspectRatioVariantsPro = cva(
|
|
1890
1890
|
"relative overflow-hidden",
|
|
1891
1891
|
{
|
|
@@ -1966,7 +1966,7 @@ var MoonUIAvatarPro = t.forwardRef(({ className, size, radius, variant, ...props
|
|
|
1966
1966
|
...props
|
|
1967
1967
|
}
|
|
1968
1968
|
));
|
|
1969
|
-
|
|
1969
|
+
MoonUIAvatar.displayName = AvatarPrimitive.Root.displayName;
|
|
1970
1970
|
var MoonUIAvatarImagePro = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1971
1971
|
AvatarPrimitive.Image,
|
|
1972
1972
|
{
|
|
@@ -1975,7 +1975,7 @@ var MoonUIAvatarImagePro = t.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
1975
1975
|
...props
|
|
1976
1976
|
}
|
|
1977
1977
|
));
|
|
1978
|
-
|
|
1978
|
+
MoonUIAvatarImage.displayName = AvatarPrimitive.Image.displayName;
|
|
1979
1979
|
var MoonUIAvatarFallbackPro = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1980
1980
|
AvatarPrimitive.Fallback,
|
|
1981
1981
|
{
|
|
@@ -1987,7 +1987,7 @@ var MoonUIAvatarFallbackPro = t.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1987
1987
|
...props
|
|
1988
1988
|
}
|
|
1989
1989
|
));
|
|
1990
|
-
|
|
1990
|
+
MoonUIAvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
|
|
1991
1991
|
var MoonUIAvatarGroup = t.forwardRef(
|
|
1992
1992
|
({ className, limit, avatars, overlapOffset = -8, ...props }, ref) => {
|
|
1993
1993
|
const visibleAvatars = limit ? avatars.slice(0, limit) : avatars;
|
|
@@ -2223,7 +2223,7 @@ var MoonUIBreadcrumbPro = t.forwardRef(
|
|
|
2223
2223
|
}
|
|
2224
2224
|
)
|
|
2225
2225
|
);
|
|
2226
|
-
|
|
2226
|
+
MoonUIBreadcrumb.displayName = "BreadcrumbPro";
|
|
2227
2227
|
var MoonUIBreadcrumbListPro = t.forwardRef(
|
|
2228
2228
|
({ className, collapsed, collapsedWidth = 3, ...props }, ref) => {
|
|
2229
2229
|
const MoonUIchildrenArrayPro = t.Children.toArray(props.children).filter(Boolean);
|
|
@@ -2261,7 +2261,7 @@ var MoonUIBreadcrumbListPro = t.forwardRef(
|
|
|
2261
2261
|
);
|
|
2262
2262
|
}
|
|
2263
2263
|
);
|
|
2264
|
-
|
|
2264
|
+
MoonUIBreadcrumbList.displayName = "BreadcrumbListPro";
|
|
2265
2265
|
var MoonUIBreadcrumbItemPro = t.forwardRef(
|
|
2266
2266
|
({ className, isCurrent, href, asChild = false, ...props }, ref) => {
|
|
2267
2267
|
const MoonUICompPro = asChild ? t.Fragment : href ? "a" : "span";
|
|
@@ -2288,7 +2288,7 @@ var MoonUIBreadcrumbItemPro = t.forwardRef(
|
|
|
2288
2288
|
);
|
|
2289
2289
|
}
|
|
2290
2290
|
);
|
|
2291
|
-
|
|
2291
|
+
MoonUIBreadcrumbItem.displayName = "BreadcrumbItemPro";
|
|
2292
2292
|
var MoonUIBreadcrumbSeparatorPro = ({
|
|
2293
2293
|
children,
|
|
2294
2294
|
className,
|
|
@@ -2303,7 +2303,7 @@ var MoonUIBreadcrumbSeparatorPro = ({
|
|
|
2303
2303
|
children: children || /* @__PURE__ */ jsx(ChevronRight, { className: "h-3.5 w-3.5" })
|
|
2304
2304
|
}
|
|
2305
2305
|
);
|
|
2306
|
-
|
|
2306
|
+
MoonUIBreadcrumbSeparator.displayName = "BreadcrumbSeparatorPro";
|
|
2307
2307
|
var MoonUIBreadcrumbEllipsisPro = ({
|
|
2308
2308
|
className,
|
|
2309
2309
|
...props
|
|
@@ -2320,7 +2320,7 @@ var MoonUIBreadcrumbEllipsisPro = ({
|
|
|
2320
2320
|
]
|
|
2321
2321
|
}
|
|
2322
2322
|
);
|
|
2323
|
-
|
|
2323
|
+
MoonUIBreadcrumbEllipsis.displayName = "BreadcrumbEllipsisPro";
|
|
2324
2324
|
var MoonUIBreadcrumbLinkPro = t.forwardRef(
|
|
2325
2325
|
({ className, href, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2326
2326
|
"a",
|
|
@@ -2335,7 +2335,7 @@ var MoonUIBreadcrumbLinkPro = t.forwardRef(
|
|
|
2335
2335
|
}
|
|
2336
2336
|
)
|
|
2337
2337
|
);
|
|
2338
|
-
|
|
2338
|
+
MoonUIBreadcrumbLink.displayName = "BreadcrumbLinkPro";
|
|
2339
2339
|
var MoonUIBreadcrumbPagePro = t.forwardRef(
|
|
2340
2340
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2341
2341
|
"span",
|
|
@@ -2349,7 +2349,7 @@ var MoonUIBreadcrumbPagePro = t.forwardRef(
|
|
|
2349
2349
|
}
|
|
2350
2350
|
)
|
|
2351
2351
|
);
|
|
2352
|
-
|
|
2352
|
+
MoonUIBreadcrumbPage.displayName = "BreadcrumbPagePro";
|
|
2353
2353
|
var moonUIButtonProVariants = cva(
|
|
2354
2354
|
[
|
|
2355
2355
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap",
|
|
@@ -2533,7 +2533,7 @@ var MoonUIButtonPro = t.forwardRef(
|
|
|
2533
2533
|
);
|
|
2534
2534
|
}
|
|
2535
2535
|
);
|
|
2536
|
-
|
|
2536
|
+
MoonUIButton.displayName = "MoonUIButtonPro";
|
|
2537
2537
|
cva("", {
|
|
2538
2538
|
variants: {
|
|
2539
2539
|
hover: {
|
|
@@ -2729,7 +2729,7 @@ var MoonUICardPro = t.forwardRef(
|
|
|
2729
2729
|
);
|
|
2730
2730
|
}
|
|
2731
2731
|
);
|
|
2732
|
-
|
|
2732
|
+
MoonUICard.displayName = "MoonUICardPro";
|
|
2733
2733
|
var MoonUICardHeaderPro = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2734
2734
|
"div",
|
|
2735
2735
|
{
|
|
@@ -2738,7 +2738,7 @@ var MoonUICardHeaderPro = t.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
2738
2738
|
...props
|
|
2739
2739
|
}
|
|
2740
2740
|
));
|
|
2741
|
-
|
|
2741
|
+
MoonUICardHeader.displayName = "MoonUICardHeaderPro";
|
|
2742
2742
|
var MoonUICardTitlePro = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2743
2743
|
"h3",
|
|
2744
2744
|
{
|
|
@@ -2747,7 +2747,7 @@ var MoonUICardTitlePro = t.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
2747
2747
|
...props
|
|
2748
2748
|
}
|
|
2749
2749
|
));
|
|
2750
|
-
|
|
2750
|
+
MoonUICardTitle.displayName = "MoonUICardTitlePro";
|
|
2751
2751
|
var MoonUICardDescriptionPro = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2752
2752
|
"p",
|
|
2753
2753
|
{
|
|
@@ -2756,9 +2756,9 @@ var MoonUICardDescriptionPro = t.forwardRef(({ className, ...props }, ref) => /*
|
|
|
2756
2756
|
...props
|
|
2757
2757
|
}
|
|
2758
2758
|
));
|
|
2759
|
-
|
|
2759
|
+
MoonUICardDescription.displayName = "MoonUICardDescriptionPro";
|
|
2760
2760
|
var MoonUICardContentPro = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("pt-0", className), ...props }));
|
|
2761
|
-
|
|
2761
|
+
MoonUICardContent.displayName = "MoonUICardContentPro";
|
|
2762
2762
|
var MoonUICardFooterPro = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2763
2763
|
"div",
|
|
2764
2764
|
{
|
|
@@ -2767,8 +2767,8 @@ var MoonUICardFooterPro = t.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
2767
2767
|
...props
|
|
2768
2768
|
}
|
|
2769
2769
|
));
|
|
2770
|
-
|
|
2771
|
-
cva(
|
|
2770
|
+
MoonUICardFooter.displayName = "MoonUICardFooterPro";
|
|
2771
|
+
var moonUICheckboxVariantsPro = cva(
|
|
2772
2772
|
"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",
|
|
2773
2773
|
{
|
|
2774
2774
|
variants: {
|
|
@@ -2827,7 +2827,7 @@ var MoonUICheckboxPro = t.forwardRef(({
|
|
|
2827
2827
|
{
|
|
2828
2828
|
ref,
|
|
2829
2829
|
checked: effectiveChecked,
|
|
2830
|
-
className: cn(
|
|
2830
|
+
className: cn(moonUICheckboxVariantsPro({ variant, size, radius, animation }), className),
|
|
2831
2831
|
...props,
|
|
2832
2832
|
children: /* @__PURE__ */ jsx(
|
|
2833
2833
|
CheckboxPrimitive.Indicator,
|
|
@@ -2890,11 +2890,11 @@ var MoonUICheckboxWithLabel = t.forwardRef(({
|
|
|
2890
2890
|
labelClassName,
|
|
2891
2891
|
...checkboxProps
|
|
2892
2892
|
}, ref) => {
|
|
2893
|
-
const
|
|
2894
|
-
const checkboxId = id ||
|
|
2893
|
+
const generatedId = t.useId();
|
|
2894
|
+
const checkboxId = id || generatedId;
|
|
2895
2895
|
return /* @__PURE__ */ jsxs("div", { className: "flex items-center", children: [
|
|
2896
2896
|
labelPosition === "start" && /* @__PURE__ */ jsx(
|
|
2897
|
-
|
|
2897
|
+
MoonUICheckboxLabel,
|
|
2898
2898
|
{
|
|
2899
2899
|
htmlFor: checkboxId,
|
|
2900
2900
|
position: "start",
|
|
@@ -2903,9 +2903,9 @@ var MoonUICheckboxWithLabel = t.forwardRef(({
|
|
|
2903
2903
|
children: label
|
|
2904
2904
|
}
|
|
2905
2905
|
),
|
|
2906
|
-
/* @__PURE__ */ jsx(
|
|
2906
|
+
/* @__PURE__ */ jsx(MoonUICheckboxPro, { ref, id: checkboxId, ...checkboxProps }),
|
|
2907
2907
|
labelPosition === "end" && /* @__PURE__ */ jsx(
|
|
2908
|
-
|
|
2908
|
+
MoonUICheckboxLabel,
|
|
2909
2909
|
{
|
|
2910
2910
|
htmlFor: checkboxId,
|
|
2911
2911
|
position: "end",
|
|
@@ -3913,7 +3913,7 @@ var Ce = t.forwardRef((r2, o) => {
|
|
|
3913
3913
|
});
|
|
3914
3914
|
var xe = t.forwardRef((r2, o) => {
|
|
3915
3915
|
let { open: n, onOpenChange: u2, overlayClassName: c2, contentClassName: d, container: f, ...p2 } = r2;
|
|
3916
|
-
return t.createElement(
|
|
3916
|
+
return t.createElement(DialogPrimitive.Root, { open: n, onOpenChange: u2 }, t.createElement(DialogPrimitive.Portal, { container: f }, t.createElement(DialogPrimitive.Overlay, { "cmdk-overlay": "", className: c2 }), t.createElement(DialogPrimitive.Content, { "aria-label": r2.label, "cmdk-dialog": "", className: d }, t.createElement(me, { ref: o, ...p2 }))));
|
|
3917
3917
|
});
|
|
3918
3918
|
var Ie = t.forwardRef((r2, o) => P((u2) => u2.filtered.count === 0) ? t.createElement(Primitive2.div, { ref: o, ...r2, "cmdk-empty": "", role: "presentation" }) : null);
|
|
3919
3919
|
var Pe = t.forwardRef((r2, o) => {
|
|
@@ -3984,9 +3984,10 @@ function B2({ asChild: r2, children: o }, n) {
|
|
|
3984
3984
|
return r2 && t.isValidElement(o) ? t.cloneElement(Me(o), { ref: o.ref }, n(o.props.children)) : n(o);
|
|
3985
3985
|
}
|
|
3986
3986
|
var Te = { position: "absolute", width: "1px", height: "1px", padding: "0", margin: "-1px", overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0" };
|
|
3987
|
-
var MoonUIDialogPro =
|
|
3988
|
-
var MoonUIDialogTriggerPro =
|
|
3989
|
-
var
|
|
3987
|
+
var MoonUIDialogPro = DialogPrimitive.Root;
|
|
3988
|
+
var MoonUIDialogTriggerPro = DialogPrimitive.Trigger;
|
|
3989
|
+
var MoonUIDialogPortal = DialogPrimitive.Portal;
|
|
3990
|
+
var MoonUIDialogClosePro = DialogPrimitive.Close;
|
|
3990
3991
|
var overlayVariants = cva(
|
|
3991
3992
|
"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",
|
|
3992
3993
|
{
|
|
@@ -4010,14 +4011,14 @@ var overlayVariants = cva(
|
|
|
4010
4011
|
}
|
|
4011
4012
|
);
|
|
4012
4013
|
var MoonUIDialogOverlay = t.forwardRef(({ className, variant, animation, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
4013
|
-
|
|
4014
|
+
DialogPrimitive.Overlay,
|
|
4014
4015
|
{
|
|
4015
4016
|
ref,
|
|
4016
4017
|
className: cn(overlayVariants({ variant, animation }), className),
|
|
4017
4018
|
...props
|
|
4018
4019
|
}
|
|
4019
4020
|
));
|
|
4020
|
-
MoonUIDialogOverlay.displayName =
|
|
4021
|
+
MoonUIDialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
4021
4022
|
var dialogContentVariants = cva(
|
|
4022
4023
|
"fixed left-[50%] top-[50%] z-50 grid w-full translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background shadow-lg",
|
|
4023
4024
|
{
|
|
@@ -4093,9 +4094,9 @@ var MoonUIDialogContentPro = t.forwardRef(
|
|
|
4093
4094
|
onClose();
|
|
4094
4095
|
}
|
|
4095
4096
|
};
|
|
4096
|
-
return /* @__PURE__ */ jsxs(
|
|
4097
|
+
return /* @__PURE__ */ jsxs(MoonUIDialogPortal, { children: [
|
|
4097
4098
|
/* @__PURE__ */ jsx(
|
|
4098
|
-
|
|
4099
|
+
MoonUIDialogOverlay,
|
|
4099
4100
|
{
|
|
4100
4101
|
variant: overlayVariant,
|
|
4101
4102
|
animation: overlayAnimation,
|
|
@@ -4103,7 +4104,7 @@ var MoonUIDialogContentPro = t.forwardRef(
|
|
|
4103
4104
|
}
|
|
4104
4105
|
),
|
|
4105
4106
|
/* @__PURE__ */ jsxs(
|
|
4106
|
-
|
|
4107
|
+
DialogPrimitive.Content,
|
|
4107
4108
|
{
|
|
4108
4109
|
ref,
|
|
4109
4110
|
onEscapeKeyDown: hideCloseButton ? void 0 : handleClose,
|
|
@@ -4123,20 +4124,20 @@ var MoonUIDialogContentPro = t.forwardRef(
|
|
|
4123
4124
|
),
|
|
4124
4125
|
...props,
|
|
4125
4126
|
children: [
|
|
4126
|
-
(title || description || icon) && /* @__PURE__ */ jsxs(
|
|
4127
|
+
(title || description || icon) && /* @__PURE__ */ jsxs(MoonUIDialogHeaderPro, { className: "flex gap-4", children: [
|
|
4127
4128
|
(icon || loading || success) && /* @__PURE__ */ jsxs("div", { className: "flex shrink-0 items-center justify-center", children: [
|
|
4128
4129
|
loading && /* @__PURE__ */ jsx(Loader2, { className: "h-5 w-5 animate-spin text-primary" }),
|
|
4129
4130
|
success && /* @__PURE__ */ jsx(Check, { className: "h-5 w-5 text-success" }),
|
|
4130
4131
|
!loading && !success && icon && /* @__PURE__ */ jsx("span", { className: "text-primary", children: icon })
|
|
4131
4132
|
] }),
|
|
4132
4133
|
/* @__PURE__ */ jsxs("div", { className: "flex-1", children: [
|
|
4133
|
-
title && /* @__PURE__ */ jsx(
|
|
4134
|
-
description && /* @__PURE__ */ jsx(
|
|
4134
|
+
title && /* @__PURE__ */ jsx(MoonUIDialogTitlePro, { children: title }),
|
|
4135
|
+
description && /* @__PURE__ */ jsx(MoonUIDialogDescriptionPro, { children: description })
|
|
4135
4136
|
] })
|
|
4136
4137
|
] }),
|
|
4137
4138
|
children,
|
|
4138
4139
|
!hideCloseButton && /* @__PURE__ */ jsxs(
|
|
4139
|
-
|
|
4140
|
+
DialogPrimitive.Close,
|
|
4140
4141
|
{
|
|
4141
4142
|
onClick: handleClose,
|
|
4142
4143
|
className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-primary/30 focus:ring-offset-2 disabled:pointer-events-none dark:text-gray-300 dark:hover:text-white",
|
|
@@ -4152,7 +4153,7 @@ var MoonUIDialogContentPro = t.forwardRef(
|
|
|
4152
4153
|
] });
|
|
4153
4154
|
}
|
|
4154
4155
|
);
|
|
4155
|
-
MoonUIDialogContent.displayName =
|
|
4156
|
+
MoonUIDialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
4156
4157
|
var MoonUIDialogHeaderPro = ({
|
|
4157
4158
|
className,
|
|
4158
4159
|
...props
|
|
@@ -4166,7 +4167,7 @@ var MoonUIDialogHeaderPro = ({
|
|
|
4166
4167
|
...props
|
|
4167
4168
|
}
|
|
4168
4169
|
);
|
|
4169
|
-
|
|
4170
|
+
MoonUIDialogHeader.displayName = "MoonUIDialogHeaderPro";
|
|
4170
4171
|
var MoonUIDialogFooterPro = ({
|
|
4171
4172
|
className,
|
|
4172
4173
|
...props
|
|
@@ -4180,9 +4181,9 @@ var MoonUIDialogFooterPro = ({
|
|
|
4180
4181
|
...props
|
|
4181
4182
|
}
|
|
4182
4183
|
);
|
|
4183
|
-
|
|
4184
|
+
MoonUIDialogFooter.displayName = "MoonUIDialogFooterPro";
|
|
4184
4185
|
var MoonUIDialogTitlePro = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
4185
|
-
|
|
4186
|
+
DialogPrimitive.Title,
|
|
4186
4187
|
{
|
|
4187
4188
|
ref,
|
|
4188
4189
|
className: cn(
|
|
@@ -4192,9 +4193,9 @@ var MoonUIDialogTitlePro = t.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
4192
4193
|
...props
|
|
4193
4194
|
}
|
|
4194
4195
|
));
|
|
4195
|
-
MoonUIDialogTitle.displayName =
|
|
4196
|
+
MoonUIDialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
4196
4197
|
var MoonUIDialogDescriptionPro = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
4197
|
-
|
|
4198
|
+
DialogPrimitive.Description,
|
|
4198
4199
|
{
|
|
4199
4200
|
ref,
|
|
4200
4201
|
className: cn(
|
|
@@ -4204,7 +4205,7 @@ var MoonUIDialogDescriptionPro = t.forwardRef(({ className, ...props }, ref) =>
|
|
|
4204
4205
|
...props
|
|
4205
4206
|
}
|
|
4206
4207
|
));
|
|
4207
|
-
MoonUIDialogDescription.displayName =
|
|
4208
|
+
MoonUIDialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
4208
4209
|
var MoonUIDialogForm = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
4209
4210
|
"form",
|
|
4210
4211
|
{
|
|
@@ -4373,7 +4374,7 @@ var MoonUIDropdownMenuSubContentPro = t.forwardRef(({ className, ...props }, ref
|
|
|
4373
4374
|
...props
|
|
4374
4375
|
}
|
|
4375
4376
|
));
|
|
4376
|
-
|
|
4377
|
+
MoonUIDropdownMenuSubContentPro.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
4377
4378
|
var MoonUIDropdownMenuContentPro = t.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
4378
4379
|
DropdownMenuPrimitive.Content,
|
|
4379
4380
|
{
|
|
@@ -4386,7 +4387,7 @@ var MoonUIDropdownMenuContentPro = t.forwardRef(({ className, sideOffset = 4, ..
|
|
|
4386
4387
|
...props
|
|
4387
4388
|
}
|
|
4388
4389
|
) }));
|
|
4389
|
-
|
|
4390
|
+
MoonUIDropdownMenuContentPro.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
4390
4391
|
var MoonUIDropdownMenuItemPro = t.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
4391
4392
|
DropdownMenuPrimitive.Item,
|
|
4392
4393
|
{
|
|
@@ -4399,7 +4400,7 @@ var MoonUIDropdownMenuItemPro = t.forwardRef(({ className, inset, ...props }, re
|
|
|
4399
4400
|
...props
|
|
4400
4401
|
}
|
|
4401
4402
|
));
|
|
4402
|
-
|
|
4403
|
+
MoonUIDropdownMenuItemPro.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
4403
4404
|
var MoonUIDropdownMenuCheckboxItemPro = t.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
4404
4405
|
DropdownMenuPrimitive.CheckboxItem,
|
|
4405
4406
|
{
|
|
@@ -4416,7 +4417,7 @@ var MoonUIDropdownMenuCheckboxItemPro = t.forwardRef(({ className, children, che
|
|
|
4416
4417
|
]
|
|
4417
4418
|
}
|
|
4418
4419
|
));
|
|
4419
|
-
|
|
4420
|
+
MoonUIDropdownMenuCheckboxItemPro.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
4420
4421
|
var MoonUIDropdownMenuRadioItemPro = t.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
4421
4422
|
DropdownMenuPrimitive.RadioItem,
|
|
4422
4423
|
{
|
|
@@ -4432,7 +4433,7 @@ var MoonUIDropdownMenuRadioItemPro = t.forwardRef(({ className, children, ...pro
|
|
|
4432
4433
|
]
|
|
4433
4434
|
}
|
|
4434
4435
|
));
|
|
4435
|
-
|
|
4436
|
+
MoonUIDropdownMenuRadioItemPro.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
4436
4437
|
var MoonUIDropdownMenuLabelPro = t.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
4437
4438
|
DropdownMenuPrimitive.Label,
|
|
4438
4439
|
{
|
|
@@ -4445,7 +4446,7 @@ var MoonUIDropdownMenuLabelPro = t.forwardRef(({ className, inset, ...props }, r
|
|
|
4445
4446
|
...props
|
|
4446
4447
|
}
|
|
4447
4448
|
));
|
|
4448
|
-
|
|
4449
|
+
MoonUIDropdownMenuLabelPro.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
4449
4450
|
var MoonUIDropdownMenuSeparatorPro = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
4450
4451
|
DropdownMenuPrimitive.Separator,
|
|
4451
4452
|
{
|
|
@@ -4454,7 +4455,7 @@ var MoonUIDropdownMenuSeparatorPro = t.forwardRef(({ className, ...props }, ref)
|
|
|
4454
4455
|
...props
|
|
4455
4456
|
}
|
|
4456
4457
|
));
|
|
4457
|
-
|
|
4458
|
+
MoonUIDropdownMenuSeparatorPro.displayName = DropdownMenuPrimitive.Separator.displayName;
|
|
4458
4459
|
var MoonUIDropdownMenuShortcutPro = ({
|
|
4459
4460
|
className,
|
|
4460
4461
|
...props
|
|
@@ -4611,7 +4612,7 @@ var MoonUIInputPro = t.forwardRef(
|
|
|
4611
4612
|
] });
|
|
4612
4613
|
}
|
|
4613
4614
|
);
|
|
4614
|
-
|
|
4615
|
+
MoonUIInput.displayName = "MoonUIInputPro";
|
|
4615
4616
|
var moonUILabelVariantsPro = cva(
|
|
4616
4617
|
"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"
|
|
4617
4618
|
);
|
|
@@ -4623,7 +4624,7 @@ var MoonUILabelPro = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
4623
4624
|
...props
|
|
4624
4625
|
}
|
|
4625
4626
|
));
|
|
4626
|
-
|
|
4627
|
+
MoonUILabel.displayName = LabelPrimitive.Root.displayName;
|
|
4627
4628
|
var MoonUIPaginationPro = ({ className, ...props }) => /* @__PURE__ */ jsx(
|
|
4628
4629
|
"nav",
|
|
4629
4630
|
{
|
|
@@ -4808,7 +4809,7 @@ var MoonUIPopoverContentPro = t.forwardRef(({
|
|
|
4808
4809
|
}
|
|
4809
4810
|
)
|
|
4810
4811
|
] }));
|
|
4811
|
-
|
|
4812
|
+
MoonUIPopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
4812
4813
|
function createContextScope2(scopeName, createContextScopeDeps = []) {
|
|
4813
4814
|
let defaultContexts = [];
|
|
4814
4815
|
function createContext32(rootComponentName, defaultContext) {
|
|
@@ -4999,7 +5000,7 @@ var MoonUIradioGroupItemVariantsPro = cva(
|
|
|
4999
5000
|
var MoonUIRadioGroupContextPro = t.createContext({});
|
|
5000
5001
|
var MoonUIRadioGroupPro = t.forwardRef(
|
|
5001
5002
|
({ className, value, onValueChange, disabled, name, ...props }, ref) => {
|
|
5002
|
-
return /* @__PURE__ */ jsx(
|
|
5003
|
+
return /* @__PURE__ */ jsx(MoonUIRadioGroupContextPro.Provider, { value: { value, onValueChange, disabled, name }, children: /* @__PURE__ */ jsx(
|
|
5003
5004
|
"div",
|
|
5004
5005
|
{
|
|
5005
5006
|
ref,
|
|
@@ -5010,12 +5011,20 @@ var MoonUIRadioGroupPro = t.forwardRef(
|
|
|
5010
5011
|
) });
|
|
5011
5012
|
}
|
|
5012
5013
|
);
|
|
5013
|
-
|
|
5014
|
+
MoonUIRadioGroup.displayName = "RadioGroupPro";
|
|
5014
5015
|
var MoonUIRadioGroupItemPro = t.forwardRef(({ className, variant, size, indicator, id, value, disabled, ...props }, ref) => {
|
|
5015
|
-
t.useContext(
|
|
5016
|
-
t.useId();
|
|
5017
|
-
id || generatedId;
|
|
5018
|
-
radioGroup.value === value;
|
|
5016
|
+
const radioGroup = t.useContext(MoonUIRadioGroupContextPro);
|
|
5017
|
+
const generatedId = t.useId();
|
|
5018
|
+
const radioId = id || generatedId;
|
|
5019
|
+
const isChecked = radioGroup.value === value;
|
|
5020
|
+
const handleChange = (e) => {
|
|
5021
|
+
if (radioGroup.onValueChange) {
|
|
5022
|
+
radioGroup.onValueChange(e.target.value);
|
|
5023
|
+
}
|
|
5024
|
+
if (props.onChange) {
|
|
5025
|
+
props.onChange(e);
|
|
5026
|
+
}
|
|
5027
|
+
};
|
|
5019
5028
|
return /* @__PURE__ */ jsxs("div", { className: "relative flex items-center", children: [
|
|
5020
5029
|
/* @__PURE__ */ jsx(
|
|
5021
5030
|
"input",
|
|
@@ -5037,7 +5046,7 @@ var MoonUIRadioGroupItemPro = t.forwardRef(({ className, variant, size, indicato
|
|
|
5037
5046
|
{
|
|
5038
5047
|
htmlFor: radioId,
|
|
5039
5048
|
className: cn(
|
|
5040
|
-
|
|
5049
|
+
MoonUIradioGroupItemVariantsPro({ variant, size }),
|
|
5041
5050
|
"rounded-full",
|
|
5042
5051
|
"focus-visible:ring-primary/50",
|
|
5043
5052
|
"relative inline-flex shrink-0 cursor-pointer items-center justify-center overflow-hidden",
|
|
@@ -5052,7 +5061,7 @@ var MoonUIRadioGroupItemPro = t.forwardRef(({ className, variant, size, indicato
|
|
|
5052
5061
|
)
|
|
5053
5062
|
] });
|
|
5054
5063
|
});
|
|
5055
|
-
|
|
5064
|
+
MoonUIRadioGroupItem.displayName = "RadioGroupItemPro";
|
|
5056
5065
|
var MoonUIRadioLabelPro = t.forwardRef(
|
|
5057
5066
|
({ className, htmlFor, children, disabled = false, ...props }, ref) => {
|
|
5058
5067
|
return /* @__PURE__ */ jsx(
|
|
@@ -5071,19 +5080,19 @@ var MoonUIRadioLabelPro = t.forwardRef(
|
|
|
5071
5080
|
);
|
|
5072
5081
|
}
|
|
5073
5082
|
);
|
|
5074
|
-
|
|
5083
|
+
MoonUIRadioLabel.displayName = "RadioLabelPro";
|
|
5075
5084
|
var MoonUIRadioItemWithLabelPro = t.forwardRef(({
|
|
5076
5085
|
id,
|
|
5077
5086
|
label,
|
|
5078
5087
|
labelClassName,
|
|
5079
5088
|
...radioProps
|
|
5080
5089
|
}, ref) => {
|
|
5081
|
-
t.useId();
|
|
5082
|
-
id || generatedId;
|
|
5090
|
+
const generatedId = t.useId();
|
|
5091
|
+
const radioId = id || generatedId;
|
|
5083
5092
|
return /* @__PURE__ */ jsxs("div", { className: "flex items-center", children: [
|
|
5084
|
-
/* @__PURE__ */ jsx(
|
|
5093
|
+
/* @__PURE__ */ jsx(MoonUIRadioGroupItemPro, { ref, id: radioId, ...radioProps }),
|
|
5085
5094
|
/* @__PURE__ */ jsx(
|
|
5086
|
-
|
|
5095
|
+
MoonUIRadioLabelPro,
|
|
5087
5096
|
{
|
|
5088
5097
|
htmlFor: radioId,
|
|
5089
5098
|
disabled: radioProps.disabled,
|
|
@@ -5093,14 +5102,9 @@ var MoonUIRadioItemWithLabelPro = t.forwardRef(({
|
|
|
5093
5102
|
)
|
|
5094
5103
|
] });
|
|
5095
5104
|
});
|
|
5096
|
-
|
|
5097
|
-
MoonUIradioGroupPro;
|
|
5098
|
-
MoonUIgeneratedIdPro;
|
|
5099
|
-
MoonUIradioIdPro;
|
|
5100
|
-
MoonUIisCheckedPro;
|
|
5101
|
-
MoonUIhandleChangePro;
|
|
5105
|
+
MoonUIRadioItemWithLabel.displayName = "RadioItemWithLabelPro";
|
|
5102
5106
|
var MoonUISelectPro = SelectPrimitive.Root;
|
|
5103
|
-
|
|
5107
|
+
MoonUISelect.displayName = "MoonUISelectPro";
|
|
5104
5108
|
var MoonUISelectGroupPro = SelectPrimitive.Group;
|
|
5105
5109
|
var MoonUISelectValuePro = SelectPrimitive.Value;
|
|
5106
5110
|
var MoonUISelectTriggerPro = t.forwardRef(({ className, children, variant = "standard", size = "md", error, success, loading, leftIcon, rightIcon, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
@@ -5192,7 +5196,7 @@ var MoonUISelectContentPro = t.forwardRef(({ className, children, position = "it
|
|
|
5192
5196
|
position,
|
|
5193
5197
|
...props,
|
|
5194
5198
|
children: [
|
|
5195
|
-
/* @__PURE__ */ jsx(
|
|
5199
|
+
/* @__PURE__ */ jsx(MoonUISelectScrollUpButton, {}),
|
|
5196
5200
|
/* @__PURE__ */ jsx(
|
|
5197
5201
|
SelectPrimitive.Viewport,
|
|
5198
5202
|
{
|
|
@@ -5203,11 +5207,11 @@ var MoonUISelectContentPro = t.forwardRef(({ className, children, position = "it
|
|
|
5203
5207
|
children
|
|
5204
5208
|
}
|
|
5205
5209
|
),
|
|
5206
|
-
/* @__PURE__ */ jsx(
|
|
5210
|
+
/* @__PURE__ */ jsx(MoonUISelectScrollDownButton, {})
|
|
5207
5211
|
]
|
|
5208
5212
|
}
|
|
5209
5213
|
) }));
|
|
5210
|
-
|
|
5214
|
+
MoonUISelectContentPro.displayName = SelectPrimitive.Content.displayName;
|
|
5211
5215
|
var MoonUISelectLabelPro = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
5212
5216
|
SelectPrimitive.Label,
|
|
5213
5217
|
{
|
|
@@ -5216,7 +5220,7 @@ var MoonUISelectLabelPro = t.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
5216
5220
|
...props
|
|
5217
5221
|
}
|
|
5218
5222
|
));
|
|
5219
|
-
|
|
5223
|
+
MoonUISelectLabelPro.displayName = SelectPrimitive.Label.displayName;
|
|
5220
5224
|
var MoonUISelectItemPro = t.forwardRef(({ className, children, variant = "default", size = "md", rightIcon, customIndicator, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
5221
5225
|
SelectPrimitive.Item,
|
|
5222
5226
|
{
|
|
@@ -5252,7 +5256,7 @@ var MoonUISelectSeparatorPro = t.forwardRef(({ className, ...props }, ref) => /*
|
|
|
5252
5256
|
...props
|
|
5253
5257
|
}
|
|
5254
5258
|
));
|
|
5255
|
-
|
|
5259
|
+
MoonUISelectSeparatorPro.displayName = SelectPrimitive.Separator.displayName;
|
|
5256
5260
|
var moonUISeparatorVariantsPro = cva(
|
|
5257
5261
|
"shrink-0 bg-border",
|
|
5258
5262
|
{
|
|
@@ -5619,7 +5623,7 @@ var MoonUISliderPro = t.forwardRef(({
|
|
|
5619
5623
|
)
|
|
5620
5624
|
] });
|
|
5621
5625
|
});
|
|
5622
|
-
|
|
5626
|
+
MoonUISlider.displayName = "MoonUISliderPro";
|
|
5623
5627
|
var MoonUISwitchPro = t.forwardRef(({ className, size = "md", variant = "primary", loading, leftIcon, rightIcon, description, ...props }, ref) => /* @__PURE__ */ jsxs("div", { className: "inline-flex items-center gap-2", children: [
|
|
5624
5628
|
leftIcon && /* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: leftIcon }),
|
|
5625
5629
|
/* @__PURE__ */ jsxs(
|
|
@@ -5734,9 +5738,9 @@ var MoonUITablePro = t.forwardRef(({
|
|
|
5734
5738
|
)
|
|
5735
5739
|
] });
|
|
5736
5740
|
});
|
|
5737
|
-
|
|
5741
|
+
MoonUITable.displayName = "TablePro";
|
|
5738
5742
|
var MoonUITableHeaderPro = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("thead", { ref, className: cn("[&_tr]:border-b", className), ...props }));
|
|
5739
|
-
|
|
5743
|
+
MoonUITableHeader.displayName = "TableHeaderPro";
|
|
5740
5744
|
var MoonUITableBodyPro = t.forwardRef(({ className, emptyContent, emptyMessage = "No data available", children, ...props }, ref) => {
|
|
5741
5745
|
t.Children.count(children) > 0;
|
|
5742
5746
|
return /* @__PURE__ */ jsx(
|
|
@@ -5749,7 +5753,7 @@ var MoonUITableBodyPro = t.forwardRef(({ className, emptyContent, emptyMessage =
|
|
|
5749
5753
|
}
|
|
5750
5754
|
);
|
|
5751
5755
|
});
|
|
5752
|
-
|
|
5756
|
+
MoonUITableBody.displayName = "TableBodyPro";
|
|
5753
5757
|
var MoonUITableFooterPro = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
5754
5758
|
"tfoot",
|
|
5755
5759
|
{
|
|
@@ -5758,7 +5762,7 @@ var MoonUITableFooterPro = t.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
5758
5762
|
...props
|
|
5759
5763
|
}
|
|
5760
5764
|
));
|
|
5761
|
-
|
|
5765
|
+
MoonUITableFooter.displayName = "TableFooterPro";
|
|
5762
5766
|
var MoonUITableRowPro = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
5763
5767
|
"tr",
|
|
5764
5768
|
{
|
|
@@ -5770,7 +5774,7 @@ var MoonUITableRowPro = t.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
5770
5774
|
...props
|
|
5771
5775
|
}
|
|
5772
5776
|
));
|
|
5773
|
-
|
|
5777
|
+
MoonUITableRow.displayName = "TableRowPro";
|
|
5774
5778
|
var MoonUITableHeadPro = t.forwardRef(
|
|
5775
5779
|
({ className, sortable, sorted, onSort, children, ...props }, ref) => {
|
|
5776
5780
|
return /* @__PURE__ */ jsx(
|
|
@@ -5792,7 +5796,7 @@ var MoonUITableHeadPro = t.forwardRef(
|
|
|
5792
5796
|
);
|
|
5793
5797
|
}
|
|
5794
5798
|
);
|
|
5795
|
-
|
|
5799
|
+
MoonUITableHead.displayName = "TableHeadPro";
|
|
5796
5800
|
var MoonUITableCellPro = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
5797
5801
|
"td",
|
|
5798
5802
|
{
|
|
@@ -5801,7 +5805,7 @@ var MoonUITableCellPro = t.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
5801
5805
|
...props
|
|
5802
5806
|
}
|
|
5803
5807
|
));
|
|
5804
|
-
|
|
5808
|
+
MoonUITableCell.displayName = "TableCellPro";
|
|
5805
5809
|
var MoonUITableCaptionPro = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
5806
5810
|
"caption",
|
|
5807
5811
|
{
|
|
@@ -5810,12 +5814,7 @@ var MoonUITableCaptionPro = t.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
5810
5814
|
...props
|
|
5811
5815
|
}
|
|
5812
5816
|
));
|
|
5813
|
-
|
|
5814
|
-
MoonUIstripedPro;
|
|
5815
|
-
MoonUIchildrenWithPropsPro;
|
|
5816
|
-
MoonUItbodyPropsPro;
|
|
5817
|
-
MoonUIhasChildrenPro;
|
|
5818
|
-
MoonUIrenderSortIconPro;
|
|
5817
|
+
MoonUITableCaption.displayName = "TableCaptionPro";
|
|
5819
5818
|
var MoonUITabsPro = t.forwardRef(({ vertical = false, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
5820
5819
|
TabsPrimitive.Root,
|
|
5821
5820
|
{
|
|
@@ -5951,7 +5950,7 @@ var MoonUITextareaPro = t__default.forwardRef(
|
|
|
5951
5950
|
);
|
|
5952
5951
|
}
|
|
5953
5952
|
);
|
|
5954
|
-
|
|
5953
|
+
MoonUITextarea.displayName = "MoonUITextareaPro";
|
|
5955
5954
|
var MoonUIToastViewport = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
5956
5955
|
ToastPrimitives.Viewport,
|
|
5957
5956
|
{
|
|
@@ -5964,7 +5963,7 @@ var MoonUIToastViewport = t.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
5964
5963
|
}
|
|
5965
5964
|
));
|
|
5966
5965
|
MoonUIToastViewport.displayName = ToastPrimitives.Viewport.displayName;
|
|
5967
|
-
cva(
|
|
5966
|
+
var moonUIToastVariantsPro = cva(
|
|
5968
5967
|
"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",
|
|
5969
5968
|
{
|
|
5970
5969
|
variants: {
|
|
@@ -5986,7 +5985,7 @@ var MoonUIToastPro = t.forwardRef(({ className, variant, ...props }, ref) => {
|
|
|
5986
5985
|
ToastPrimitives.Root,
|
|
5987
5986
|
{
|
|
5988
5987
|
ref,
|
|
5989
|
-
className: cn(
|
|
5988
|
+
className: cn(moonUIToastVariantsPro({ variant }), className),
|
|
5990
5989
|
...props
|
|
5991
5990
|
}
|
|
5992
5991
|
);
|
|
@@ -6312,8 +6311,8 @@ var MoonUITooltipContentPro = t.forwardRef(({ className, variant, size, showArro
|
|
|
6312
6311
|
]
|
|
6313
6312
|
}
|
|
6314
6313
|
));
|
|
6315
|
-
|
|
6316
|
-
|
|
6314
|
+
MoonUITooltipContentPro.displayName = TooltipPrimitive.Content.displayName;
|
|
6315
|
+
t.forwardRef(
|
|
6317
6316
|
({
|
|
6318
6317
|
children,
|
|
6319
6318
|
content,
|
|
@@ -6361,7 +6360,7 @@ var MoonUISimpleTooltip = t.forwardRef(
|
|
|
6361
6360
|
);
|
|
6362
6361
|
}
|
|
6363
6362
|
);
|
|
6364
|
-
|
|
6363
|
+
MoonUISimpleTooltipPro.displayName = "SimpleTooltip";
|
|
6365
6364
|
|
|
6366
6365
|
// src/hooks/use-subscription.ts
|
|
6367
6366
|
function useSubscription() {
|
|
@@ -52864,10 +52863,10 @@ var CardProFooter = t__default.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
52864
52863
|
}
|
|
52865
52864
|
));
|
|
52866
52865
|
CardProFooter.displayName = "CardProFooter";
|
|
52867
|
-
var Dialog =
|
|
52868
|
-
var DialogTrigger =
|
|
52869
|
-
var
|
|
52870
|
-
var DialogClose =
|
|
52866
|
+
var Dialog = DialogPrimitive.Root;
|
|
52867
|
+
var DialogTrigger = DialogPrimitive.Trigger;
|
|
52868
|
+
var DialogPortal = DialogPrimitive.Portal;
|
|
52869
|
+
var DialogClose = DialogPrimitive.Close;
|
|
52871
52870
|
var DialogProOverlay = t.forwardRef(({ className, blur: blur2 = "md", variant = "default", ...props }, ref) => {
|
|
52872
52871
|
const blurClasses = {
|
|
52873
52872
|
none: "",
|
|
@@ -52883,7 +52882,7 @@ var DialogProOverlay = t.forwardRef(({ className, blur: blur2 = "md", variant =
|
|
|
52883
52882
|
gradient: "bg-gradient-to-br from-black/80 via-gray-900/80 to-black/80"
|
|
52884
52883
|
};
|
|
52885
52884
|
return /* @__PURE__ */ jsx(
|
|
52886
|
-
|
|
52885
|
+
DialogPrimitive.Overlay,
|
|
52887
52886
|
{
|
|
52888
52887
|
ref,
|
|
52889
52888
|
className: cn(
|
|
@@ -52896,7 +52895,7 @@ var DialogProOverlay = t.forwardRef(({ className, blur: blur2 = "md", variant =
|
|
|
52896
52895
|
}
|
|
52897
52896
|
);
|
|
52898
52897
|
});
|
|
52899
|
-
DialogProOverlay.displayName =
|
|
52898
|
+
DialogProOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
52900
52899
|
var DialogProContent = t.forwardRef(({
|
|
52901
52900
|
className,
|
|
52902
52901
|
children,
|
|
@@ -52942,7 +52941,7 @@ var DialogProContent = t.forwardRef(({
|
|
|
52942
52941
|
exit: { opacity: 0, scale: 0.5, y: -50 }
|
|
52943
52942
|
}
|
|
52944
52943
|
};
|
|
52945
|
-
return /* @__PURE__ */ jsx(AnimatePresence, { children: /* @__PURE__ */ jsxs(
|
|
52944
|
+
return /* @__PURE__ */ jsx(AnimatePresence, { children: /* @__PURE__ */ jsxs(DialogPortal, { children: [
|
|
52946
52945
|
overlay && /* @__PURE__ */ jsx(
|
|
52947
52946
|
motion.div,
|
|
52948
52947
|
{
|
|
@@ -52961,7 +52960,7 @@ var DialogProContent = t.forwardRef(({
|
|
|
52961
52960
|
animate: { opacity: 1 },
|
|
52962
52961
|
exit: { opacity: 0 },
|
|
52963
52962
|
children: /* @__PURE__ */ jsx(
|
|
52964
|
-
|
|
52963
|
+
DialogPrimitive.Content,
|
|
52965
52964
|
{
|
|
52966
52965
|
ref,
|
|
52967
52966
|
asChild: true,
|
|
@@ -52991,7 +52990,7 @@ var DialogProContent = t.forwardRef(({
|
|
|
52991
52990
|
children: [
|
|
52992
52991
|
/* @__PURE__ */ jsx("div", { className: "absolute inset-0 rounded-lg bg-gradient-to-br from-white/5 to-white/0 pointer-events-none" }),
|
|
52993
52992
|
/* @__PURE__ */ jsx("div", { className: "relative p-6", children }),
|
|
52994
|
-
/* @__PURE__ */ jsxs(
|
|
52993
|
+
/* @__PURE__ */ jsxs(DialogPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-all hover:opacity-100 hover:rotate-90 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
|
|
52995
52994
|
/* @__PURE__ */ jsx(X, { className: "h-4 w-4" }),
|
|
52996
52995
|
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
|
|
52997
52996
|
] })
|
|
@@ -53004,7 +53003,7 @@ var DialogProContent = t.forwardRef(({
|
|
|
53004
53003
|
)
|
|
53005
53004
|
] }) });
|
|
53006
53005
|
});
|
|
53007
|
-
DialogProContent.displayName =
|
|
53006
|
+
DialogProContent.displayName = DialogPrimitive.Content.displayName;
|
|
53008
53007
|
var DialogProHeader = ({
|
|
53009
53008
|
className,
|
|
53010
53009
|
...props
|
|
@@ -53038,7 +53037,7 @@ var DialogProFooter = ({
|
|
|
53038
53037
|
);
|
|
53039
53038
|
DialogProFooter.displayName = "DialogProFooter";
|
|
53040
53039
|
var DialogProTitle = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
53041
|
-
|
|
53040
|
+
DialogPrimitive.Title,
|
|
53042
53041
|
{
|
|
53043
53042
|
ref,
|
|
53044
53043
|
className: cn(
|
|
@@ -53048,16 +53047,16 @@ var DialogProTitle = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
53048
53047
|
...props
|
|
53049
53048
|
}
|
|
53050
53049
|
));
|
|
53051
|
-
DialogProTitle.displayName =
|
|
53050
|
+
DialogProTitle.displayName = DialogPrimitive.Title.displayName;
|
|
53052
53051
|
var DialogProDescription = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
53053
|
-
|
|
53052
|
+
DialogPrimitive.Description,
|
|
53054
53053
|
{
|
|
53055
53054
|
ref,
|
|
53056
53055
|
className: cn("text-sm text-muted-foreground", className),
|
|
53057
53056
|
...props
|
|
53058
53057
|
}
|
|
53059
53058
|
));
|
|
53060
|
-
DialogProDescription.displayName =
|
|
53059
|
+
DialogProDescription.displayName = DialogPrimitive.Description.displayName;
|
|
53061
53060
|
var badgeVariants = cva(
|
|
53062
53061
|
[
|
|
53063
53062
|
"inline-flex items-center gap-1.5",
|