@moontra/moonui-pro 2.2.10 → 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 +133 -139
- 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 +18 -25
- 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,14 +2223,14 @@ 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
|
-
t.Children.toArray(props.children).filter(Boolean);
|
|
2230
|
-
|
|
2231
|
-
if (collapsed &&
|
|
2232
|
-
|
|
2233
|
-
|
|
2229
|
+
const MoonUIchildrenArrayPro = t.Children.toArray(props.children).filter(Boolean);
|
|
2230
|
+
const MoonUIchildCountPro = MoonUIchildrenArrayPro.length;
|
|
2231
|
+
if (collapsed && MoonUIchildCountPro > collapsedWidth) {
|
|
2232
|
+
const MoonUIfirstItemPro = MoonUIchildrenArrayPro[0];
|
|
2233
|
+
const MoonUIlastTwoItemsPro = MoonUIchildrenArrayPro.slice(-2);
|
|
2234
2234
|
return /* @__PURE__ */ jsxs(
|
|
2235
2235
|
"ol",
|
|
2236
2236
|
{
|
|
@@ -2241,9 +2241,9 @@ var MoonUIBreadcrumbListPro = t.forwardRef(
|
|
|
2241
2241
|
),
|
|
2242
2242
|
...props,
|
|
2243
2243
|
children: [
|
|
2244
|
-
|
|
2244
|
+
MoonUIfirstItemPro,
|
|
2245
2245
|
/* @__PURE__ */ jsx(BreadcrumbEllipsis, {}),
|
|
2246
|
-
|
|
2246
|
+
MoonUIlastTwoItemsPro
|
|
2247
2247
|
]
|
|
2248
2248
|
}
|
|
2249
2249
|
);
|
|
@@ -2261,9 +2261,11 @@ 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
|
+
const MoonUICompPro = asChild ? t.Fragment : href ? "a" : "span";
|
|
2268
|
+
const MoonUIitemPropsPro = asChild ? {} : href ? { href } : {};
|
|
2267
2269
|
return /* @__PURE__ */ jsx(
|
|
2268
2270
|
"li",
|
|
2269
2271
|
{
|
|
@@ -2272,13 +2274,13 @@ var MoonUIBreadcrumbItemPro = t.forwardRef(
|
|
|
2272
2274
|
"aria-current": isCurrent ? "page" : void 0,
|
|
2273
2275
|
...props,
|
|
2274
2276
|
children: /* @__PURE__ */ jsx(
|
|
2275
|
-
|
|
2277
|
+
MoonUICompPro,
|
|
2276
2278
|
{
|
|
2277
2279
|
className: cn(
|
|
2278
2280
|
"transition-colors duration-200 hover:text-foreground",
|
|
2279
2281
|
isCurrent ? "font-medium text-foreground dark:text-white dark:text-opacity-95" : "text-muted-foreground hover:text-foreground dark:text-gray-400 dark:hover:text-gray-200 dark:hover:text-opacity-95 hover:underline hover:underline-offset-4 hover:decoration-gray-300/30"
|
|
2280
2282
|
),
|
|
2281
|
-
...
|
|
2283
|
+
...MoonUIitemPropsPro,
|
|
2282
2284
|
children: props.children
|
|
2283
2285
|
}
|
|
2284
2286
|
)
|
|
@@ -2286,7 +2288,7 @@ var MoonUIBreadcrumbItemPro = t.forwardRef(
|
|
|
2286
2288
|
);
|
|
2287
2289
|
}
|
|
2288
2290
|
);
|
|
2289
|
-
|
|
2291
|
+
MoonUIBreadcrumbItem.displayName = "BreadcrumbItemPro";
|
|
2290
2292
|
var MoonUIBreadcrumbSeparatorPro = ({
|
|
2291
2293
|
children,
|
|
2292
2294
|
className,
|
|
@@ -2301,7 +2303,7 @@ var MoonUIBreadcrumbSeparatorPro = ({
|
|
|
2301
2303
|
children: children || /* @__PURE__ */ jsx(ChevronRight, { className: "h-3.5 w-3.5" })
|
|
2302
2304
|
}
|
|
2303
2305
|
);
|
|
2304
|
-
|
|
2306
|
+
MoonUIBreadcrumbSeparator.displayName = "BreadcrumbSeparatorPro";
|
|
2305
2307
|
var MoonUIBreadcrumbEllipsisPro = ({
|
|
2306
2308
|
className,
|
|
2307
2309
|
...props
|
|
@@ -2318,7 +2320,7 @@ var MoonUIBreadcrumbEllipsisPro = ({
|
|
|
2318
2320
|
]
|
|
2319
2321
|
}
|
|
2320
2322
|
);
|
|
2321
|
-
|
|
2323
|
+
MoonUIBreadcrumbEllipsis.displayName = "BreadcrumbEllipsisPro";
|
|
2322
2324
|
var MoonUIBreadcrumbLinkPro = t.forwardRef(
|
|
2323
2325
|
({ className, href, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2324
2326
|
"a",
|
|
@@ -2333,7 +2335,7 @@ var MoonUIBreadcrumbLinkPro = t.forwardRef(
|
|
|
2333
2335
|
}
|
|
2334
2336
|
)
|
|
2335
2337
|
);
|
|
2336
|
-
|
|
2338
|
+
MoonUIBreadcrumbLink.displayName = "BreadcrumbLinkPro";
|
|
2337
2339
|
var MoonUIBreadcrumbPagePro = t.forwardRef(
|
|
2338
2340
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2339
2341
|
"span",
|
|
@@ -2347,14 +2349,7 @@ var MoonUIBreadcrumbPagePro = t.forwardRef(
|
|
|
2347
2349
|
}
|
|
2348
2350
|
)
|
|
2349
2351
|
);
|
|
2350
|
-
|
|
2351
|
-
MoonUIchildrenArrayPro;
|
|
2352
|
-
MoonUIchildCountPro;
|
|
2353
|
-
MoonUIfirstItemPro;
|
|
2354
|
-
MoonUImiddleItemsPro;
|
|
2355
|
-
MoonUIlastTwoItemsPro;
|
|
2356
|
-
MoonUICompPro;
|
|
2357
|
-
MoonUIitemPropsPro;
|
|
2352
|
+
MoonUIBreadcrumbPage.displayName = "BreadcrumbPagePro";
|
|
2358
2353
|
var moonUIButtonProVariants = cva(
|
|
2359
2354
|
[
|
|
2360
2355
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap",
|
|
@@ -2519,9 +2514,9 @@ var MoonUIButtonPro = t.forwardRef(
|
|
|
2519
2514
|
disabled,
|
|
2520
2515
|
...props
|
|
2521
2516
|
}, ref) => {
|
|
2522
|
-
const
|
|
2517
|
+
const Comp = asChild ? "button" : "button";
|
|
2523
2518
|
return /* @__PURE__ */ jsxs(
|
|
2524
|
-
|
|
2519
|
+
Comp,
|
|
2525
2520
|
{
|
|
2526
2521
|
className: cn(moonUIButtonProVariants({ variant, size, rounded, fullWidth, className })),
|
|
2527
2522
|
ref,
|
|
@@ -2538,7 +2533,7 @@ var MoonUIButtonPro = t.forwardRef(
|
|
|
2538
2533
|
);
|
|
2539
2534
|
}
|
|
2540
2535
|
);
|
|
2541
|
-
|
|
2536
|
+
MoonUIButton.displayName = "MoonUIButtonPro";
|
|
2542
2537
|
cva("", {
|
|
2543
2538
|
variants: {
|
|
2544
2539
|
hover: {
|
|
@@ -2734,7 +2729,7 @@ var MoonUICardPro = t.forwardRef(
|
|
|
2734
2729
|
);
|
|
2735
2730
|
}
|
|
2736
2731
|
);
|
|
2737
|
-
|
|
2732
|
+
MoonUICard.displayName = "MoonUICardPro";
|
|
2738
2733
|
var MoonUICardHeaderPro = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2739
2734
|
"div",
|
|
2740
2735
|
{
|
|
@@ -2743,7 +2738,7 @@ var MoonUICardHeaderPro = t.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
2743
2738
|
...props
|
|
2744
2739
|
}
|
|
2745
2740
|
));
|
|
2746
|
-
|
|
2741
|
+
MoonUICardHeader.displayName = "MoonUICardHeaderPro";
|
|
2747
2742
|
var MoonUICardTitlePro = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2748
2743
|
"h3",
|
|
2749
2744
|
{
|
|
@@ -2752,7 +2747,7 @@ var MoonUICardTitlePro = t.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
2752
2747
|
...props
|
|
2753
2748
|
}
|
|
2754
2749
|
));
|
|
2755
|
-
|
|
2750
|
+
MoonUICardTitle.displayName = "MoonUICardTitlePro";
|
|
2756
2751
|
var MoonUICardDescriptionPro = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2757
2752
|
"p",
|
|
2758
2753
|
{
|
|
@@ -2761,9 +2756,9 @@ var MoonUICardDescriptionPro = t.forwardRef(({ className, ...props }, ref) => /*
|
|
|
2761
2756
|
...props
|
|
2762
2757
|
}
|
|
2763
2758
|
));
|
|
2764
|
-
|
|
2759
|
+
MoonUICardDescription.displayName = "MoonUICardDescriptionPro";
|
|
2765
2760
|
var MoonUICardContentPro = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("pt-0", className), ...props }));
|
|
2766
|
-
|
|
2761
|
+
MoonUICardContent.displayName = "MoonUICardContentPro";
|
|
2767
2762
|
var MoonUICardFooterPro = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2768
2763
|
"div",
|
|
2769
2764
|
{
|
|
@@ -2772,8 +2767,8 @@ var MoonUICardFooterPro = t.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
2772
2767
|
...props
|
|
2773
2768
|
}
|
|
2774
2769
|
));
|
|
2775
|
-
|
|
2776
|
-
cva(
|
|
2770
|
+
MoonUICardFooter.displayName = "MoonUICardFooterPro";
|
|
2771
|
+
var moonUICheckboxVariantsPro = cva(
|
|
2777
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",
|
|
2778
2773
|
{
|
|
2779
2774
|
variants: {
|
|
@@ -2832,7 +2827,7 @@ var MoonUICheckboxPro = t.forwardRef(({
|
|
|
2832
2827
|
{
|
|
2833
2828
|
ref,
|
|
2834
2829
|
checked: effectiveChecked,
|
|
2835
|
-
className: cn(
|
|
2830
|
+
className: cn(moonUICheckboxVariantsPro({ variant, size, radius, animation }), className),
|
|
2836
2831
|
...props,
|
|
2837
2832
|
children: /* @__PURE__ */ jsx(
|
|
2838
2833
|
CheckboxPrimitive.Indicator,
|
|
@@ -2895,11 +2890,11 @@ var MoonUICheckboxWithLabel = t.forwardRef(({
|
|
|
2895
2890
|
labelClassName,
|
|
2896
2891
|
...checkboxProps
|
|
2897
2892
|
}, ref) => {
|
|
2898
|
-
const
|
|
2899
|
-
const checkboxId = id ||
|
|
2893
|
+
const generatedId = t.useId();
|
|
2894
|
+
const checkboxId = id || generatedId;
|
|
2900
2895
|
return /* @__PURE__ */ jsxs("div", { className: "flex items-center", children: [
|
|
2901
2896
|
labelPosition === "start" && /* @__PURE__ */ jsx(
|
|
2902
|
-
|
|
2897
|
+
MoonUICheckboxLabel,
|
|
2903
2898
|
{
|
|
2904
2899
|
htmlFor: checkboxId,
|
|
2905
2900
|
position: "start",
|
|
@@ -2908,9 +2903,9 @@ var MoonUICheckboxWithLabel = t.forwardRef(({
|
|
|
2908
2903
|
children: label
|
|
2909
2904
|
}
|
|
2910
2905
|
),
|
|
2911
|
-
/* @__PURE__ */ jsx(
|
|
2906
|
+
/* @__PURE__ */ jsx(MoonUICheckboxPro, { ref, id: checkboxId, ...checkboxProps }),
|
|
2912
2907
|
labelPosition === "end" && /* @__PURE__ */ jsx(
|
|
2913
|
-
|
|
2908
|
+
MoonUICheckboxLabel,
|
|
2914
2909
|
{
|
|
2915
2910
|
htmlFor: checkboxId,
|
|
2916
2911
|
position: "end",
|
|
@@ -3115,11 +3110,11 @@ var Primitive = NODES.reduce((primitive, node) => {
|
|
|
3115
3110
|
const Slot = createSlot(`Primitive.${node}`);
|
|
3116
3111
|
const Node2 = t.forwardRef((props, forwardedRef) => {
|
|
3117
3112
|
const { asChild, ...primitiveProps } = props;
|
|
3118
|
-
const
|
|
3113
|
+
const Comp = asChild ? Slot : node;
|
|
3119
3114
|
if (typeof window !== "undefined") {
|
|
3120
3115
|
window[Symbol.for("radix-ui")] = true;
|
|
3121
3116
|
}
|
|
3122
|
-
return /* @__PURE__ */ jsx(
|
|
3117
|
+
return /* @__PURE__ */ jsx(Comp, { ...primitiveProps, ref: forwardedRef });
|
|
3123
3118
|
});
|
|
3124
3119
|
Node2.displayName = `Primitive.${node}`;
|
|
3125
3120
|
return { ...primitive, [node]: Node2 };
|
|
@@ -3606,11 +3601,11 @@ var Primitive2 = NODES2.reduce((primitive, node) => {
|
|
|
3606
3601
|
const Slot = createSlot(`Primitive.${node}`);
|
|
3607
3602
|
const Node2 = t.forwardRef((props, forwardedRef) => {
|
|
3608
3603
|
const { asChild, ...primitiveProps } = props;
|
|
3609
|
-
const
|
|
3604
|
+
const Comp = asChild ? Slot : node;
|
|
3610
3605
|
if (typeof window !== "undefined") {
|
|
3611
3606
|
window[Symbol.for("radix-ui")] = true;
|
|
3612
3607
|
}
|
|
3613
|
-
return /* @__PURE__ */ jsx(
|
|
3608
|
+
return /* @__PURE__ */ jsx(Comp, { ...primitiveProps, ref: forwardedRef });
|
|
3614
3609
|
});
|
|
3615
3610
|
Node2.displayName = `Primitive.${node}`;
|
|
3616
3611
|
return { ...primitive, [node]: Node2 };
|
|
@@ -3918,7 +3913,7 @@ var Ce = t.forwardRef((r2, o) => {
|
|
|
3918
3913
|
});
|
|
3919
3914
|
var xe = t.forwardRef((r2, o) => {
|
|
3920
3915
|
let { open: n, onOpenChange: u2, overlayClassName: c2, contentClassName: d, container: f, ...p2 } = r2;
|
|
3921
|
-
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 }))));
|
|
3922
3917
|
});
|
|
3923
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);
|
|
3924
3919
|
var Pe = t.forwardRef((r2, o) => {
|
|
@@ -3989,9 +3984,10 @@ function B2({ asChild: r2, children: o }, n) {
|
|
|
3989
3984
|
return r2 && t.isValidElement(o) ? t.cloneElement(Me(o), { ref: o.ref }, n(o.props.children)) : n(o);
|
|
3990
3985
|
}
|
|
3991
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" };
|
|
3992
|
-
var MoonUIDialogPro =
|
|
3993
|
-
var MoonUIDialogTriggerPro =
|
|
3994
|
-
var
|
|
3987
|
+
var MoonUIDialogPro = DialogPrimitive.Root;
|
|
3988
|
+
var MoonUIDialogTriggerPro = DialogPrimitive.Trigger;
|
|
3989
|
+
var MoonUIDialogPortal = DialogPrimitive.Portal;
|
|
3990
|
+
var MoonUIDialogClosePro = DialogPrimitive.Close;
|
|
3995
3991
|
var overlayVariants = cva(
|
|
3996
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",
|
|
3997
3993
|
{
|
|
@@ -4015,14 +4011,14 @@ var overlayVariants = cva(
|
|
|
4015
4011
|
}
|
|
4016
4012
|
);
|
|
4017
4013
|
var MoonUIDialogOverlay = t.forwardRef(({ className, variant, animation, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
4018
|
-
|
|
4014
|
+
DialogPrimitive.Overlay,
|
|
4019
4015
|
{
|
|
4020
4016
|
ref,
|
|
4021
4017
|
className: cn(overlayVariants({ variant, animation }), className),
|
|
4022
4018
|
...props
|
|
4023
4019
|
}
|
|
4024
4020
|
));
|
|
4025
|
-
MoonUIDialogOverlay.displayName =
|
|
4021
|
+
MoonUIDialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
4026
4022
|
var dialogContentVariants = cva(
|
|
4027
4023
|
"fixed left-[50%] top-[50%] z-50 grid w-full translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background shadow-lg",
|
|
4028
4024
|
{
|
|
@@ -4098,9 +4094,9 @@ var MoonUIDialogContentPro = t.forwardRef(
|
|
|
4098
4094
|
onClose();
|
|
4099
4095
|
}
|
|
4100
4096
|
};
|
|
4101
|
-
return /* @__PURE__ */ jsxs(
|
|
4097
|
+
return /* @__PURE__ */ jsxs(MoonUIDialogPortal, { children: [
|
|
4102
4098
|
/* @__PURE__ */ jsx(
|
|
4103
|
-
|
|
4099
|
+
MoonUIDialogOverlay,
|
|
4104
4100
|
{
|
|
4105
4101
|
variant: overlayVariant,
|
|
4106
4102
|
animation: overlayAnimation,
|
|
@@ -4108,7 +4104,7 @@ var MoonUIDialogContentPro = t.forwardRef(
|
|
|
4108
4104
|
}
|
|
4109
4105
|
),
|
|
4110
4106
|
/* @__PURE__ */ jsxs(
|
|
4111
|
-
|
|
4107
|
+
DialogPrimitive.Content,
|
|
4112
4108
|
{
|
|
4113
4109
|
ref,
|
|
4114
4110
|
onEscapeKeyDown: hideCloseButton ? void 0 : handleClose,
|
|
@@ -4128,20 +4124,20 @@ var MoonUIDialogContentPro = t.forwardRef(
|
|
|
4128
4124
|
),
|
|
4129
4125
|
...props,
|
|
4130
4126
|
children: [
|
|
4131
|
-
(title || description || icon) && /* @__PURE__ */ jsxs(
|
|
4127
|
+
(title || description || icon) && /* @__PURE__ */ jsxs(MoonUIDialogHeaderPro, { className: "flex gap-4", children: [
|
|
4132
4128
|
(icon || loading || success) && /* @__PURE__ */ jsxs("div", { className: "flex shrink-0 items-center justify-center", children: [
|
|
4133
4129
|
loading && /* @__PURE__ */ jsx(Loader2, { className: "h-5 w-5 animate-spin text-primary" }),
|
|
4134
4130
|
success && /* @__PURE__ */ jsx(Check, { className: "h-5 w-5 text-success" }),
|
|
4135
4131
|
!loading && !success && icon && /* @__PURE__ */ jsx("span", { className: "text-primary", children: icon })
|
|
4136
4132
|
] }),
|
|
4137
4133
|
/* @__PURE__ */ jsxs("div", { className: "flex-1", children: [
|
|
4138
|
-
title && /* @__PURE__ */ jsx(
|
|
4139
|
-
description && /* @__PURE__ */ jsx(
|
|
4134
|
+
title && /* @__PURE__ */ jsx(MoonUIDialogTitlePro, { children: title }),
|
|
4135
|
+
description && /* @__PURE__ */ jsx(MoonUIDialogDescriptionPro, { children: description })
|
|
4140
4136
|
] })
|
|
4141
4137
|
] }),
|
|
4142
4138
|
children,
|
|
4143
4139
|
!hideCloseButton && /* @__PURE__ */ jsxs(
|
|
4144
|
-
|
|
4140
|
+
DialogPrimitive.Close,
|
|
4145
4141
|
{
|
|
4146
4142
|
onClick: handleClose,
|
|
4147
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",
|
|
@@ -4157,7 +4153,7 @@ var MoonUIDialogContentPro = t.forwardRef(
|
|
|
4157
4153
|
] });
|
|
4158
4154
|
}
|
|
4159
4155
|
);
|
|
4160
|
-
MoonUIDialogContent.displayName =
|
|
4156
|
+
MoonUIDialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
4161
4157
|
var MoonUIDialogHeaderPro = ({
|
|
4162
4158
|
className,
|
|
4163
4159
|
...props
|
|
@@ -4171,7 +4167,7 @@ var MoonUIDialogHeaderPro = ({
|
|
|
4171
4167
|
...props
|
|
4172
4168
|
}
|
|
4173
4169
|
);
|
|
4174
|
-
|
|
4170
|
+
MoonUIDialogHeader.displayName = "MoonUIDialogHeaderPro";
|
|
4175
4171
|
var MoonUIDialogFooterPro = ({
|
|
4176
4172
|
className,
|
|
4177
4173
|
...props
|
|
@@ -4185,9 +4181,9 @@ var MoonUIDialogFooterPro = ({
|
|
|
4185
4181
|
...props
|
|
4186
4182
|
}
|
|
4187
4183
|
);
|
|
4188
|
-
|
|
4184
|
+
MoonUIDialogFooter.displayName = "MoonUIDialogFooterPro";
|
|
4189
4185
|
var MoonUIDialogTitlePro = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
4190
|
-
|
|
4186
|
+
DialogPrimitive.Title,
|
|
4191
4187
|
{
|
|
4192
4188
|
ref,
|
|
4193
4189
|
className: cn(
|
|
@@ -4197,9 +4193,9 @@ var MoonUIDialogTitlePro = t.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
4197
4193
|
...props
|
|
4198
4194
|
}
|
|
4199
4195
|
));
|
|
4200
|
-
MoonUIDialogTitle.displayName =
|
|
4196
|
+
MoonUIDialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
4201
4197
|
var MoonUIDialogDescriptionPro = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
4202
|
-
|
|
4198
|
+
DialogPrimitive.Description,
|
|
4203
4199
|
{
|
|
4204
4200
|
ref,
|
|
4205
4201
|
className: cn(
|
|
@@ -4209,7 +4205,7 @@ var MoonUIDialogDescriptionPro = t.forwardRef(({ className, ...props }, ref) =>
|
|
|
4209
4205
|
...props
|
|
4210
4206
|
}
|
|
4211
4207
|
));
|
|
4212
|
-
MoonUIDialogDescription.displayName =
|
|
4208
|
+
MoonUIDialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
4213
4209
|
var MoonUIDialogForm = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
4214
4210
|
"form",
|
|
4215
4211
|
{
|
|
@@ -4378,7 +4374,7 @@ var MoonUIDropdownMenuSubContentPro = t.forwardRef(({ className, ...props }, ref
|
|
|
4378
4374
|
...props
|
|
4379
4375
|
}
|
|
4380
4376
|
));
|
|
4381
|
-
|
|
4377
|
+
MoonUIDropdownMenuSubContentPro.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
4382
4378
|
var MoonUIDropdownMenuContentPro = t.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
4383
4379
|
DropdownMenuPrimitive.Content,
|
|
4384
4380
|
{
|
|
@@ -4391,7 +4387,7 @@ var MoonUIDropdownMenuContentPro = t.forwardRef(({ className, sideOffset = 4, ..
|
|
|
4391
4387
|
...props
|
|
4392
4388
|
}
|
|
4393
4389
|
) }));
|
|
4394
|
-
|
|
4390
|
+
MoonUIDropdownMenuContentPro.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
4395
4391
|
var MoonUIDropdownMenuItemPro = t.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
4396
4392
|
DropdownMenuPrimitive.Item,
|
|
4397
4393
|
{
|
|
@@ -4404,7 +4400,7 @@ var MoonUIDropdownMenuItemPro = t.forwardRef(({ className, inset, ...props }, re
|
|
|
4404
4400
|
...props
|
|
4405
4401
|
}
|
|
4406
4402
|
));
|
|
4407
|
-
|
|
4403
|
+
MoonUIDropdownMenuItemPro.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
4408
4404
|
var MoonUIDropdownMenuCheckboxItemPro = t.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
4409
4405
|
DropdownMenuPrimitive.CheckboxItem,
|
|
4410
4406
|
{
|
|
@@ -4421,7 +4417,7 @@ var MoonUIDropdownMenuCheckboxItemPro = t.forwardRef(({ className, children, che
|
|
|
4421
4417
|
]
|
|
4422
4418
|
}
|
|
4423
4419
|
));
|
|
4424
|
-
|
|
4420
|
+
MoonUIDropdownMenuCheckboxItemPro.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
4425
4421
|
var MoonUIDropdownMenuRadioItemPro = t.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
4426
4422
|
DropdownMenuPrimitive.RadioItem,
|
|
4427
4423
|
{
|
|
@@ -4437,7 +4433,7 @@ var MoonUIDropdownMenuRadioItemPro = t.forwardRef(({ className, children, ...pro
|
|
|
4437
4433
|
]
|
|
4438
4434
|
}
|
|
4439
4435
|
));
|
|
4440
|
-
|
|
4436
|
+
MoonUIDropdownMenuRadioItemPro.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
4441
4437
|
var MoonUIDropdownMenuLabelPro = t.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
4442
4438
|
DropdownMenuPrimitive.Label,
|
|
4443
4439
|
{
|
|
@@ -4450,7 +4446,7 @@ var MoonUIDropdownMenuLabelPro = t.forwardRef(({ className, inset, ...props }, r
|
|
|
4450
4446
|
...props
|
|
4451
4447
|
}
|
|
4452
4448
|
));
|
|
4453
|
-
|
|
4449
|
+
MoonUIDropdownMenuLabelPro.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
4454
4450
|
var MoonUIDropdownMenuSeparatorPro = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
4455
4451
|
DropdownMenuPrimitive.Separator,
|
|
4456
4452
|
{
|
|
@@ -4459,7 +4455,7 @@ var MoonUIDropdownMenuSeparatorPro = t.forwardRef(({ className, ...props }, ref)
|
|
|
4459
4455
|
...props
|
|
4460
4456
|
}
|
|
4461
4457
|
));
|
|
4462
|
-
|
|
4458
|
+
MoonUIDropdownMenuSeparatorPro.displayName = DropdownMenuPrimitive.Separator.displayName;
|
|
4463
4459
|
var MoonUIDropdownMenuShortcutPro = ({
|
|
4464
4460
|
className,
|
|
4465
4461
|
...props
|
|
@@ -4616,7 +4612,7 @@ var MoonUIInputPro = t.forwardRef(
|
|
|
4616
4612
|
] });
|
|
4617
4613
|
}
|
|
4618
4614
|
);
|
|
4619
|
-
|
|
4615
|
+
MoonUIInput.displayName = "MoonUIInputPro";
|
|
4620
4616
|
var moonUILabelVariantsPro = cva(
|
|
4621
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"
|
|
4622
4618
|
);
|
|
@@ -4628,7 +4624,7 @@ var MoonUILabelPro = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
4628
4624
|
...props
|
|
4629
4625
|
}
|
|
4630
4626
|
));
|
|
4631
|
-
|
|
4627
|
+
MoonUILabel.displayName = LabelPrimitive.Root.displayName;
|
|
4632
4628
|
var MoonUIPaginationPro = ({ className, ...props }) => /* @__PURE__ */ jsx(
|
|
4633
4629
|
"nav",
|
|
4634
4630
|
{
|
|
@@ -4813,7 +4809,7 @@ var MoonUIPopoverContentPro = t.forwardRef(({
|
|
|
4813
4809
|
}
|
|
4814
4810
|
)
|
|
4815
4811
|
] }));
|
|
4816
|
-
|
|
4812
|
+
MoonUIPopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
4817
4813
|
function createContextScope2(scopeName, createContextScopeDeps = []) {
|
|
4818
4814
|
let defaultContexts = [];
|
|
4819
4815
|
function createContext32(rootComponentName, defaultContext) {
|
|
@@ -5004,7 +5000,7 @@ var MoonUIradioGroupItemVariantsPro = cva(
|
|
|
5004
5000
|
var MoonUIRadioGroupContextPro = t.createContext({});
|
|
5005
5001
|
var MoonUIRadioGroupPro = t.forwardRef(
|
|
5006
5002
|
({ className, value, onValueChange, disabled, name, ...props }, ref) => {
|
|
5007
|
-
return /* @__PURE__ */ jsx(
|
|
5003
|
+
return /* @__PURE__ */ jsx(MoonUIRadioGroupContextPro.Provider, { value: { value, onValueChange, disabled, name }, children: /* @__PURE__ */ jsx(
|
|
5008
5004
|
"div",
|
|
5009
5005
|
{
|
|
5010
5006
|
ref,
|
|
@@ -5015,12 +5011,20 @@ var MoonUIRadioGroupPro = t.forwardRef(
|
|
|
5015
5011
|
) });
|
|
5016
5012
|
}
|
|
5017
5013
|
);
|
|
5018
|
-
|
|
5014
|
+
MoonUIRadioGroup.displayName = "RadioGroupPro";
|
|
5019
5015
|
var MoonUIRadioGroupItemPro = t.forwardRef(({ className, variant, size, indicator, id, value, disabled, ...props }, ref) => {
|
|
5020
|
-
t.useContext(
|
|
5021
|
-
t.useId();
|
|
5022
|
-
id || generatedId;
|
|
5023
|
-
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
|
+
};
|
|
5024
5028
|
return /* @__PURE__ */ jsxs("div", { className: "relative flex items-center", children: [
|
|
5025
5029
|
/* @__PURE__ */ jsx(
|
|
5026
5030
|
"input",
|
|
@@ -5042,7 +5046,7 @@ var MoonUIRadioGroupItemPro = t.forwardRef(({ className, variant, size, indicato
|
|
|
5042
5046
|
{
|
|
5043
5047
|
htmlFor: radioId,
|
|
5044
5048
|
className: cn(
|
|
5045
|
-
|
|
5049
|
+
MoonUIradioGroupItemVariantsPro({ variant, size }),
|
|
5046
5050
|
"rounded-full",
|
|
5047
5051
|
"focus-visible:ring-primary/50",
|
|
5048
5052
|
"relative inline-flex shrink-0 cursor-pointer items-center justify-center overflow-hidden",
|
|
@@ -5057,7 +5061,7 @@ var MoonUIRadioGroupItemPro = t.forwardRef(({ className, variant, size, indicato
|
|
|
5057
5061
|
)
|
|
5058
5062
|
] });
|
|
5059
5063
|
});
|
|
5060
|
-
|
|
5064
|
+
MoonUIRadioGroupItem.displayName = "RadioGroupItemPro";
|
|
5061
5065
|
var MoonUIRadioLabelPro = t.forwardRef(
|
|
5062
5066
|
({ className, htmlFor, children, disabled = false, ...props }, ref) => {
|
|
5063
5067
|
return /* @__PURE__ */ jsx(
|
|
@@ -5076,19 +5080,19 @@ var MoonUIRadioLabelPro = t.forwardRef(
|
|
|
5076
5080
|
);
|
|
5077
5081
|
}
|
|
5078
5082
|
);
|
|
5079
|
-
|
|
5083
|
+
MoonUIRadioLabel.displayName = "RadioLabelPro";
|
|
5080
5084
|
var MoonUIRadioItemWithLabelPro = t.forwardRef(({
|
|
5081
5085
|
id,
|
|
5082
5086
|
label,
|
|
5083
5087
|
labelClassName,
|
|
5084
5088
|
...radioProps
|
|
5085
5089
|
}, ref) => {
|
|
5086
|
-
t.useId();
|
|
5087
|
-
id || generatedId;
|
|
5090
|
+
const generatedId = t.useId();
|
|
5091
|
+
const radioId = id || generatedId;
|
|
5088
5092
|
return /* @__PURE__ */ jsxs("div", { className: "flex items-center", children: [
|
|
5089
|
-
/* @__PURE__ */ jsx(
|
|
5093
|
+
/* @__PURE__ */ jsx(MoonUIRadioGroupItemPro, { ref, id: radioId, ...radioProps }),
|
|
5090
5094
|
/* @__PURE__ */ jsx(
|
|
5091
|
-
|
|
5095
|
+
MoonUIRadioLabelPro,
|
|
5092
5096
|
{
|
|
5093
5097
|
htmlFor: radioId,
|
|
5094
5098
|
disabled: radioProps.disabled,
|
|
@@ -5098,14 +5102,9 @@ var MoonUIRadioItemWithLabelPro = t.forwardRef(({
|
|
|
5098
5102
|
)
|
|
5099
5103
|
] });
|
|
5100
5104
|
});
|
|
5101
|
-
|
|
5102
|
-
MoonUIradioGroupPro;
|
|
5103
|
-
MoonUIgeneratedIdPro;
|
|
5104
|
-
MoonUIradioIdPro;
|
|
5105
|
-
MoonUIisCheckedPro;
|
|
5106
|
-
MoonUIhandleChangePro;
|
|
5105
|
+
MoonUIRadioItemWithLabel.displayName = "RadioItemWithLabelPro";
|
|
5107
5106
|
var MoonUISelectPro = SelectPrimitive.Root;
|
|
5108
|
-
|
|
5107
|
+
MoonUISelect.displayName = "MoonUISelectPro";
|
|
5109
5108
|
var MoonUISelectGroupPro = SelectPrimitive.Group;
|
|
5110
5109
|
var MoonUISelectValuePro = SelectPrimitive.Value;
|
|
5111
5110
|
var MoonUISelectTriggerPro = t.forwardRef(({ className, children, variant = "standard", size = "md", error, success, loading, leftIcon, rightIcon, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
@@ -5197,7 +5196,7 @@ var MoonUISelectContentPro = t.forwardRef(({ className, children, position = "it
|
|
|
5197
5196
|
position,
|
|
5198
5197
|
...props,
|
|
5199
5198
|
children: [
|
|
5200
|
-
/* @__PURE__ */ jsx(
|
|
5199
|
+
/* @__PURE__ */ jsx(MoonUISelectScrollUpButton, {}),
|
|
5201
5200
|
/* @__PURE__ */ jsx(
|
|
5202
5201
|
SelectPrimitive.Viewport,
|
|
5203
5202
|
{
|
|
@@ -5208,11 +5207,11 @@ var MoonUISelectContentPro = t.forwardRef(({ className, children, position = "it
|
|
|
5208
5207
|
children
|
|
5209
5208
|
}
|
|
5210
5209
|
),
|
|
5211
|
-
/* @__PURE__ */ jsx(
|
|
5210
|
+
/* @__PURE__ */ jsx(MoonUISelectScrollDownButton, {})
|
|
5212
5211
|
]
|
|
5213
5212
|
}
|
|
5214
5213
|
) }));
|
|
5215
|
-
|
|
5214
|
+
MoonUISelectContentPro.displayName = SelectPrimitive.Content.displayName;
|
|
5216
5215
|
var MoonUISelectLabelPro = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
5217
5216
|
SelectPrimitive.Label,
|
|
5218
5217
|
{
|
|
@@ -5221,7 +5220,7 @@ var MoonUISelectLabelPro = t.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
5221
5220
|
...props
|
|
5222
5221
|
}
|
|
5223
5222
|
));
|
|
5224
|
-
|
|
5223
|
+
MoonUISelectLabelPro.displayName = SelectPrimitive.Label.displayName;
|
|
5225
5224
|
var MoonUISelectItemPro = t.forwardRef(({ className, children, variant = "default", size = "md", rightIcon, customIndicator, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
5226
5225
|
SelectPrimitive.Item,
|
|
5227
5226
|
{
|
|
@@ -5257,7 +5256,7 @@ var MoonUISelectSeparatorPro = t.forwardRef(({ className, ...props }, ref) => /*
|
|
|
5257
5256
|
...props
|
|
5258
5257
|
}
|
|
5259
5258
|
));
|
|
5260
|
-
|
|
5259
|
+
MoonUISelectSeparatorPro.displayName = SelectPrimitive.Separator.displayName;
|
|
5261
5260
|
var moonUISeparatorVariantsPro = cva(
|
|
5262
5261
|
"shrink-0 bg-border",
|
|
5263
5262
|
{
|
|
@@ -5624,7 +5623,7 @@ var MoonUISliderPro = t.forwardRef(({
|
|
|
5624
5623
|
)
|
|
5625
5624
|
] });
|
|
5626
5625
|
});
|
|
5627
|
-
|
|
5626
|
+
MoonUISlider.displayName = "MoonUISliderPro";
|
|
5628
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: [
|
|
5629
5628
|
leftIcon && /* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: leftIcon }),
|
|
5630
5629
|
/* @__PURE__ */ jsxs(
|
|
@@ -5739,9 +5738,9 @@ var MoonUITablePro = t.forwardRef(({
|
|
|
5739
5738
|
)
|
|
5740
5739
|
] });
|
|
5741
5740
|
});
|
|
5742
|
-
|
|
5741
|
+
MoonUITable.displayName = "TablePro";
|
|
5743
5742
|
var MoonUITableHeaderPro = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("thead", { ref, className: cn("[&_tr]:border-b", className), ...props }));
|
|
5744
|
-
|
|
5743
|
+
MoonUITableHeader.displayName = "TableHeaderPro";
|
|
5745
5744
|
var MoonUITableBodyPro = t.forwardRef(({ className, emptyContent, emptyMessage = "No data available", children, ...props }, ref) => {
|
|
5746
5745
|
t.Children.count(children) > 0;
|
|
5747
5746
|
return /* @__PURE__ */ jsx(
|
|
@@ -5754,7 +5753,7 @@ var MoonUITableBodyPro = t.forwardRef(({ className, emptyContent, emptyMessage =
|
|
|
5754
5753
|
}
|
|
5755
5754
|
);
|
|
5756
5755
|
});
|
|
5757
|
-
|
|
5756
|
+
MoonUITableBody.displayName = "TableBodyPro";
|
|
5758
5757
|
var MoonUITableFooterPro = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
5759
5758
|
"tfoot",
|
|
5760
5759
|
{
|
|
@@ -5763,7 +5762,7 @@ var MoonUITableFooterPro = t.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
5763
5762
|
...props
|
|
5764
5763
|
}
|
|
5765
5764
|
));
|
|
5766
|
-
|
|
5765
|
+
MoonUITableFooter.displayName = "TableFooterPro";
|
|
5767
5766
|
var MoonUITableRowPro = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
5768
5767
|
"tr",
|
|
5769
5768
|
{
|
|
@@ -5775,7 +5774,7 @@ var MoonUITableRowPro = t.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
5775
5774
|
...props
|
|
5776
5775
|
}
|
|
5777
5776
|
));
|
|
5778
|
-
|
|
5777
|
+
MoonUITableRow.displayName = "TableRowPro";
|
|
5779
5778
|
var MoonUITableHeadPro = t.forwardRef(
|
|
5780
5779
|
({ className, sortable, sorted, onSort, children, ...props }, ref) => {
|
|
5781
5780
|
return /* @__PURE__ */ jsx(
|
|
@@ -5797,7 +5796,7 @@ var MoonUITableHeadPro = t.forwardRef(
|
|
|
5797
5796
|
);
|
|
5798
5797
|
}
|
|
5799
5798
|
);
|
|
5800
|
-
|
|
5799
|
+
MoonUITableHead.displayName = "TableHeadPro";
|
|
5801
5800
|
var MoonUITableCellPro = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
5802
5801
|
"td",
|
|
5803
5802
|
{
|
|
@@ -5806,7 +5805,7 @@ var MoonUITableCellPro = t.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
5806
5805
|
...props
|
|
5807
5806
|
}
|
|
5808
5807
|
));
|
|
5809
|
-
|
|
5808
|
+
MoonUITableCell.displayName = "TableCellPro";
|
|
5810
5809
|
var MoonUITableCaptionPro = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
5811
5810
|
"caption",
|
|
5812
5811
|
{
|
|
@@ -5815,12 +5814,7 @@ var MoonUITableCaptionPro = t.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
5815
5814
|
...props
|
|
5816
5815
|
}
|
|
5817
5816
|
));
|
|
5818
|
-
|
|
5819
|
-
MoonUIstripedPro;
|
|
5820
|
-
MoonUIchildrenWithPropsPro;
|
|
5821
|
-
MoonUItbodyPropsPro;
|
|
5822
|
-
MoonUIhasChildrenPro;
|
|
5823
|
-
MoonUIrenderSortIconPro;
|
|
5817
|
+
MoonUITableCaption.displayName = "TableCaptionPro";
|
|
5824
5818
|
var MoonUITabsPro = t.forwardRef(({ vertical = false, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
5825
5819
|
TabsPrimitive.Root,
|
|
5826
5820
|
{
|
|
@@ -5956,7 +5950,7 @@ var MoonUITextareaPro = t__default.forwardRef(
|
|
|
5956
5950
|
);
|
|
5957
5951
|
}
|
|
5958
5952
|
);
|
|
5959
|
-
|
|
5953
|
+
MoonUITextarea.displayName = "MoonUITextareaPro";
|
|
5960
5954
|
var MoonUIToastViewport = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
5961
5955
|
ToastPrimitives.Viewport,
|
|
5962
5956
|
{
|
|
@@ -5969,7 +5963,7 @@ var MoonUIToastViewport = t.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
5969
5963
|
}
|
|
5970
5964
|
));
|
|
5971
5965
|
MoonUIToastViewport.displayName = ToastPrimitives.Viewport.displayName;
|
|
5972
|
-
cva(
|
|
5966
|
+
var moonUIToastVariantsPro = cva(
|
|
5973
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",
|
|
5974
5968
|
{
|
|
5975
5969
|
variants: {
|
|
@@ -5991,7 +5985,7 @@ var MoonUIToastPro = t.forwardRef(({ className, variant, ...props }, ref) => {
|
|
|
5991
5985
|
ToastPrimitives.Root,
|
|
5992
5986
|
{
|
|
5993
5987
|
ref,
|
|
5994
|
-
className: cn(
|
|
5988
|
+
className: cn(moonUIToastVariantsPro({ variant }), className),
|
|
5995
5989
|
...props
|
|
5996
5990
|
}
|
|
5997
5991
|
);
|
|
@@ -6317,8 +6311,8 @@ var MoonUITooltipContentPro = t.forwardRef(({ className, variant, size, showArro
|
|
|
6317
6311
|
]
|
|
6318
6312
|
}
|
|
6319
6313
|
));
|
|
6320
|
-
|
|
6321
|
-
|
|
6314
|
+
MoonUITooltipContentPro.displayName = TooltipPrimitive.Content.displayName;
|
|
6315
|
+
t.forwardRef(
|
|
6322
6316
|
({
|
|
6323
6317
|
children,
|
|
6324
6318
|
content,
|
|
@@ -6366,7 +6360,7 @@ var MoonUISimpleTooltip = t.forwardRef(
|
|
|
6366
6360
|
);
|
|
6367
6361
|
}
|
|
6368
6362
|
);
|
|
6369
|
-
|
|
6363
|
+
MoonUISimpleTooltipPro.displayName = "SimpleTooltip";
|
|
6370
6364
|
|
|
6371
6365
|
// src/hooks/use-subscription.ts
|
|
6372
6366
|
function useSubscription() {
|
|
@@ -52869,10 +52863,10 @@ var CardProFooter = t__default.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
52869
52863
|
}
|
|
52870
52864
|
));
|
|
52871
52865
|
CardProFooter.displayName = "CardProFooter";
|
|
52872
|
-
var Dialog =
|
|
52873
|
-
var DialogTrigger =
|
|
52874
|
-
var
|
|
52875
|
-
var DialogClose =
|
|
52866
|
+
var Dialog = DialogPrimitive.Root;
|
|
52867
|
+
var DialogTrigger = DialogPrimitive.Trigger;
|
|
52868
|
+
var DialogPortal = DialogPrimitive.Portal;
|
|
52869
|
+
var DialogClose = DialogPrimitive.Close;
|
|
52876
52870
|
var DialogProOverlay = t.forwardRef(({ className, blur: blur2 = "md", variant = "default", ...props }, ref) => {
|
|
52877
52871
|
const blurClasses = {
|
|
52878
52872
|
none: "",
|
|
@@ -52888,7 +52882,7 @@ var DialogProOverlay = t.forwardRef(({ className, blur: blur2 = "md", variant =
|
|
|
52888
52882
|
gradient: "bg-gradient-to-br from-black/80 via-gray-900/80 to-black/80"
|
|
52889
52883
|
};
|
|
52890
52884
|
return /* @__PURE__ */ jsx(
|
|
52891
|
-
|
|
52885
|
+
DialogPrimitive.Overlay,
|
|
52892
52886
|
{
|
|
52893
52887
|
ref,
|
|
52894
52888
|
className: cn(
|
|
@@ -52901,7 +52895,7 @@ var DialogProOverlay = t.forwardRef(({ className, blur: blur2 = "md", variant =
|
|
|
52901
52895
|
}
|
|
52902
52896
|
);
|
|
52903
52897
|
});
|
|
52904
|
-
DialogProOverlay.displayName =
|
|
52898
|
+
DialogProOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
52905
52899
|
var DialogProContent = t.forwardRef(({
|
|
52906
52900
|
className,
|
|
52907
52901
|
children,
|
|
@@ -52947,7 +52941,7 @@ var DialogProContent = t.forwardRef(({
|
|
|
52947
52941
|
exit: { opacity: 0, scale: 0.5, y: -50 }
|
|
52948
52942
|
}
|
|
52949
52943
|
};
|
|
52950
|
-
return /* @__PURE__ */ jsx(AnimatePresence, { children: /* @__PURE__ */ jsxs(
|
|
52944
|
+
return /* @__PURE__ */ jsx(AnimatePresence, { children: /* @__PURE__ */ jsxs(DialogPortal, { children: [
|
|
52951
52945
|
overlay && /* @__PURE__ */ jsx(
|
|
52952
52946
|
motion.div,
|
|
52953
52947
|
{
|
|
@@ -52966,7 +52960,7 @@ var DialogProContent = t.forwardRef(({
|
|
|
52966
52960
|
animate: { opacity: 1 },
|
|
52967
52961
|
exit: { opacity: 0 },
|
|
52968
52962
|
children: /* @__PURE__ */ jsx(
|
|
52969
|
-
|
|
52963
|
+
DialogPrimitive.Content,
|
|
52970
52964
|
{
|
|
52971
52965
|
ref,
|
|
52972
52966
|
asChild: true,
|
|
@@ -52996,7 +52990,7 @@ var DialogProContent = t.forwardRef(({
|
|
|
52996
52990
|
children: [
|
|
52997
52991
|
/* @__PURE__ */ jsx("div", { className: "absolute inset-0 rounded-lg bg-gradient-to-br from-white/5 to-white/0 pointer-events-none" }),
|
|
52998
52992
|
/* @__PURE__ */ jsx("div", { className: "relative p-6", children }),
|
|
52999
|
-
/* @__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: [
|
|
53000
52994
|
/* @__PURE__ */ jsx(X, { className: "h-4 w-4" }),
|
|
53001
52995
|
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
|
|
53002
52996
|
] })
|
|
@@ -53009,7 +53003,7 @@ var DialogProContent = t.forwardRef(({
|
|
|
53009
53003
|
)
|
|
53010
53004
|
] }) });
|
|
53011
53005
|
});
|
|
53012
|
-
DialogProContent.displayName =
|
|
53006
|
+
DialogProContent.displayName = DialogPrimitive.Content.displayName;
|
|
53013
53007
|
var DialogProHeader = ({
|
|
53014
53008
|
className,
|
|
53015
53009
|
...props
|
|
@@ -53043,7 +53037,7 @@ var DialogProFooter = ({
|
|
|
53043
53037
|
);
|
|
53044
53038
|
DialogProFooter.displayName = "DialogProFooter";
|
|
53045
53039
|
var DialogProTitle = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
53046
|
-
|
|
53040
|
+
DialogPrimitive.Title,
|
|
53047
53041
|
{
|
|
53048
53042
|
ref,
|
|
53049
53043
|
className: cn(
|
|
@@ -53053,16 +53047,16 @@ var DialogProTitle = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
53053
53047
|
...props
|
|
53054
53048
|
}
|
|
53055
53049
|
));
|
|
53056
|
-
DialogProTitle.displayName =
|
|
53050
|
+
DialogProTitle.displayName = DialogPrimitive.Title.displayName;
|
|
53057
53051
|
var DialogProDescription = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
53058
|
-
|
|
53052
|
+
DialogPrimitive.Description,
|
|
53059
53053
|
{
|
|
53060
53054
|
ref,
|
|
53061
53055
|
className: cn("text-sm text-muted-foreground", className),
|
|
53062
53056
|
...props
|
|
53063
53057
|
}
|
|
53064
53058
|
));
|
|
53065
|
-
DialogProDescription.displayName =
|
|
53059
|
+
DialogProDescription.displayName = DialogPrimitive.Description.displayName;
|
|
53066
53060
|
var badgeVariants = cva(
|
|
53067
53061
|
[
|
|
53068
53062
|
"inline-flex items-center gap-1.5",
|