@moontra/moonui 2.1.4 → 2.1.5
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.js +180 -219
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +174 -192
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/ui/avatar.tsx +13 -13
- package/src/components/ui/badge.tsx +1 -1
- package/src/components/ui/checkbox.tsx +7 -7
- package/src/components/ui/collapsible.tsx +2 -2
- package/src/components/ui/command.tsx +7 -7
- package/src/components/ui/dialog.tsx +8 -8
- package/src/components/ui/dropdown-menu.tsx +8 -8
- package/src/components/ui/label.tsx +1 -1
- package/src/components/ui/pagination.tsx +12 -12
- package/src/components/ui/popover.tsx +7 -7
- package/src/components/ui/radio-group.tsx +4 -4
- package/src/components/ui/select.tsx +9 -9
- package/src/components/ui/separator.tsx +1 -1
- package/src/components/ui/skeleton.tsx +6 -6
- package/src/components/ui/switch.tsx +1 -1
- package/src/components/ui/tabs.tsx +4 -4
- package/src/components/ui/toast.tsx +11 -11
- package/src/components/ui/toggle.tsx +1 -1
- package/src/components/ui/tooltip.tsx +5 -5
package/dist/index.mjs
CHANGED
|
@@ -248,7 +248,7 @@ var MoonUIAspectRatio = t.forwardRef(({ className, variant, radius, ratio = 16 /
|
|
|
248
248
|
}
|
|
249
249
|
));
|
|
250
250
|
MoonUIAspectRatio.displayName = "MoonUIAspectRatio";
|
|
251
|
-
cva(
|
|
251
|
+
var moonUIAvatarVariants = cva(
|
|
252
252
|
"relative flex shrink-0 overflow-hidden",
|
|
253
253
|
{
|
|
254
254
|
variants: {
|
|
@@ -286,11 +286,11 @@ var MoonUIAvatar = t.forwardRef(({ className, size, radius, variant, ...props },
|
|
|
286
286
|
AvatarPrimitive.Root,
|
|
287
287
|
{
|
|
288
288
|
ref,
|
|
289
|
-
className: cn(
|
|
289
|
+
className: cn(moonUIAvatarVariants({ size, radius, variant }), className),
|
|
290
290
|
...props
|
|
291
291
|
}
|
|
292
292
|
));
|
|
293
|
-
|
|
293
|
+
MoonUIAvatar.displayName = AvatarPrimitive.Root.displayName;
|
|
294
294
|
var MoonUIAvatarImage = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
295
295
|
AvatarPrimitive.Image,
|
|
296
296
|
{
|
|
@@ -299,7 +299,7 @@ var MoonUIAvatarImage = t.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
299
299
|
...props
|
|
300
300
|
}
|
|
301
301
|
));
|
|
302
|
-
|
|
302
|
+
MoonUIAvatarImage.displayName = AvatarPrimitive.Image.displayName;
|
|
303
303
|
var MoonUIAvatarFallback = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
304
304
|
AvatarPrimitive.Fallback,
|
|
305
305
|
{
|
|
@@ -311,8 +311,8 @@ var MoonUIAvatarFallback = t.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
311
311
|
...props
|
|
312
312
|
}
|
|
313
313
|
));
|
|
314
|
-
|
|
315
|
-
var
|
|
314
|
+
MoonUIAvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
|
|
315
|
+
var MoonUIAvatarGroup = t.forwardRef(
|
|
316
316
|
({ className, limit, avatars, overlapOffset = -8, ...props }, ref) => {
|
|
317
317
|
const visibleAvatars = limit ? avatars.slice(0, limit) : avatars;
|
|
318
318
|
const remainingCount = limit ? Math.max(0, avatars.length - limit) : 0;
|
|
@@ -340,7 +340,7 @@ var AvatarGroup = t.forwardRef(
|
|
|
340
340
|
{
|
|
341
341
|
className: "relative z-0",
|
|
342
342
|
style: { marginLeft: `${overlapOffset}px` },
|
|
343
|
-
children: /* @__PURE__ */ jsx(
|
|
343
|
+
children: /* @__PURE__ */ jsx(MoonUIAvatar, { variant: "border", children: /* @__PURE__ */ jsxs(MoonUIAvatarFallback, { children: [
|
|
344
344
|
"+",
|
|
345
345
|
remainingCount
|
|
346
346
|
] }) })
|
|
@@ -351,7 +351,7 @@ var AvatarGroup = t.forwardRef(
|
|
|
351
351
|
);
|
|
352
352
|
}
|
|
353
353
|
);
|
|
354
|
-
|
|
354
|
+
MoonUIAvatarGroup.displayName = "AvatarGroup";
|
|
355
355
|
var moonUIBadgeVariants = cva(
|
|
356
356
|
[
|
|
357
357
|
"inline-flex items-center gap-1.5",
|
|
@@ -438,6 +438,83 @@ var moonUIBadgeVariants = cva(
|
|
|
438
438
|
}
|
|
439
439
|
}
|
|
440
440
|
);
|
|
441
|
+
function MoonUIBadge({
|
|
442
|
+
className,
|
|
443
|
+
variant,
|
|
444
|
+
size,
|
|
445
|
+
radius,
|
|
446
|
+
withDot,
|
|
447
|
+
dotColor,
|
|
448
|
+
removable,
|
|
449
|
+
onRemove,
|
|
450
|
+
leftIcon,
|
|
451
|
+
rightIcon,
|
|
452
|
+
children,
|
|
453
|
+
...props
|
|
454
|
+
}) {
|
|
455
|
+
let autoLeftIcon = leftIcon;
|
|
456
|
+
let autoChildren = children;
|
|
457
|
+
if (variant === "pro") {
|
|
458
|
+
autoLeftIcon = leftIcon || /* @__PURE__ */ jsxs("svg", { width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: "w-3 h-3", children: [
|
|
459
|
+
/* @__PURE__ */ jsx("path", { d: "M12 0L13.09 8.26L22 9L13.09 9.74L12 18L10.91 9.74L2 9L10.91 8.26L12 0Z", fill: "currentColor" }),
|
|
460
|
+
/* @__PURE__ */ jsx("path", { d: "M19 5L19.5 7L21 7.5L19.5 8L19 10L18.5 8L17 7.5L18.5 7L19 5Z", fill: "currentColor" }),
|
|
461
|
+
/* @__PURE__ */ jsx("path", { d: "M19 15L19.5 17L21 17.5L19.5 18L19 20L18.5 18L17 17.5L18.5 17L19 15Z", fill: "currentColor" })
|
|
462
|
+
] });
|
|
463
|
+
autoChildren = children || "Pro";
|
|
464
|
+
}
|
|
465
|
+
if (variant === "admin") {
|
|
466
|
+
autoLeftIcon = leftIcon || /* @__PURE__ */ jsx("svg", { width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: "w-3 h-3", children: /* @__PURE__ */ jsx("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z", fill: "currentColor" }) });
|
|
467
|
+
autoChildren = children || "Admin Pro";
|
|
468
|
+
}
|
|
469
|
+
return /* @__PURE__ */ jsxs(
|
|
470
|
+
"div",
|
|
471
|
+
{
|
|
472
|
+
className: cn(badgeVariants({ variant, size, radius }), className),
|
|
473
|
+
"data-removable": removable ? "" : void 0,
|
|
474
|
+
...props,
|
|
475
|
+
children: [
|
|
476
|
+
withDot && /* @__PURE__ */ jsx(
|
|
477
|
+
"span",
|
|
478
|
+
{
|
|
479
|
+
className: cn(
|
|
480
|
+
"h-2 w-2 rounded-full",
|
|
481
|
+
dotColor || (variant === "destructive" ? "bg-white" : variant === "success" ? "bg-white" : variant === "warning" ? "bg-white" : variant === "secondary" ? "bg-secondary-foreground" : variant === "outline" ? "bg-foreground" : variant === "ghost" ? "bg-foreground" : variant === "pro" ? "bg-white" : variant === "admin" ? "bg-white" : "bg-primary-foreground")
|
|
482
|
+
),
|
|
483
|
+
"aria-hidden": "true"
|
|
484
|
+
}
|
|
485
|
+
),
|
|
486
|
+
autoLeftIcon && /* @__PURE__ */ jsx("span", { className: "inline-flex shrink-0", children: autoLeftIcon }),
|
|
487
|
+
/* @__PURE__ */ jsx("span", { className: "truncate", children: autoChildren }),
|
|
488
|
+
rightIcon && /* @__PURE__ */ jsx("span", { className: "inline-flex shrink-0", children: rightIcon }),
|
|
489
|
+
removable && onRemove && /* @__PURE__ */ jsx(
|
|
490
|
+
"button",
|
|
491
|
+
{
|
|
492
|
+
type: "button",
|
|
493
|
+
className: "ml-1 -mr-1 h-3.5 w-3.5 rounded-full inline-flex items-center justify-center hover:bg-black/10 dark:hover:bg-white/10",
|
|
494
|
+
onClick: (e) => {
|
|
495
|
+
e.stopPropagation();
|
|
496
|
+
onRemove();
|
|
497
|
+
},
|
|
498
|
+
"aria-label": "Remove badge",
|
|
499
|
+
children: /* @__PURE__ */ jsx(
|
|
500
|
+
"svg",
|
|
501
|
+
{
|
|
502
|
+
width: "8",
|
|
503
|
+
height: "8",
|
|
504
|
+
viewBox: "0 0 8 8",
|
|
505
|
+
fill: "none",
|
|
506
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
507
|
+
className: "opacity-70",
|
|
508
|
+
"aria-hidden": "true",
|
|
509
|
+
children: /* @__PURE__ */ jsx("path", { d: "M0.799988 7.19999L7.19999 0.799988M0.799988 0.799988L7.19999 7.19999", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
510
|
+
}
|
|
511
|
+
)
|
|
512
|
+
}
|
|
513
|
+
)
|
|
514
|
+
]
|
|
515
|
+
}
|
|
516
|
+
);
|
|
517
|
+
}
|
|
441
518
|
var breadcrumbVariants = cva(
|
|
442
519
|
"flex items-center gap-1.5 text-sm",
|
|
443
520
|
{
|
|
@@ -1296,8 +1373,8 @@ var MoonUICheckbox2 = t.forwardRef(({
|
|
|
1296
1373
|
}
|
|
1297
1374
|
);
|
|
1298
1375
|
});
|
|
1299
|
-
|
|
1300
|
-
var
|
|
1376
|
+
MoonUICheckbox2.displayName = CheckboxPrimitive.Root.displayName;
|
|
1377
|
+
var MoonUICheckboxGroup = t.forwardRef(
|
|
1301
1378
|
({ className, orientation = "vertical", spacing = "1rem", children, ...props }, ref) => {
|
|
1302
1379
|
return /* @__PURE__ */ jsx(
|
|
1303
1380
|
"div",
|
|
@@ -1316,8 +1393,8 @@ var CheckboxGroup = t.forwardRef(
|
|
|
1316
1393
|
);
|
|
1317
1394
|
}
|
|
1318
1395
|
);
|
|
1319
|
-
|
|
1320
|
-
var
|
|
1396
|
+
MoonUICheckboxGroup.displayName = "CheckboxGroup";
|
|
1397
|
+
var MoonUICheckboxLabel = t.forwardRef(
|
|
1321
1398
|
({ className, htmlFor, children, position = "end", disabled = false, ...props }, ref) => {
|
|
1322
1399
|
return /* @__PURE__ */ jsx(
|
|
1323
1400
|
"label",
|
|
@@ -1336,8 +1413,8 @@ var CheckboxLabel = t.forwardRef(
|
|
|
1336
1413
|
);
|
|
1337
1414
|
}
|
|
1338
1415
|
);
|
|
1339
|
-
|
|
1340
|
-
var
|
|
1416
|
+
MoonUICheckboxLabel.displayName = "CheckboxLabel";
|
|
1417
|
+
var MoonUICheckboxWithLabel = t.forwardRef(({
|
|
1341
1418
|
id,
|
|
1342
1419
|
label,
|
|
1343
1420
|
labelPosition = "end",
|
|
@@ -1370,7 +1447,7 @@ var CheckboxWithLabel = t.forwardRef(({
|
|
|
1370
1447
|
)
|
|
1371
1448
|
] });
|
|
1372
1449
|
});
|
|
1373
|
-
|
|
1450
|
+
MoonUICheckboxWithLabel.displayName = "CheckboxWithLabel";
|
|
1374
1451
|
|
|
1375
1452
|
// node_modules/@radix-ui/primitive/dist/index.mjs
|
|
1376
1453
|
function composeEventHandlers(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {
|
|
@@ -1747,7 +1824,7 @@ var Collapsible = t.forwardRef(
|
|
|
1747
1824
|
);
|
|
1748
1825
|
Collapsible.displayName = COLLAPSIBLE_NAME;
|
|
1749
1826
|
var TRIGGER_NAME = "CollapsibleTrigger";
|
|
1750
|
-
var
|
|
1827
|
+
var CollapsibleTrigger = t.forwardRef(
|
|
1751
1828
|
(props, forwardedRef) => {
|
|
1752
1829
|
const { __scopeCollapsible, ...triggerProps } = props;
|
|
1753
1830
|
const context = useCollapsibleContext(TRIGGER_NAME, __scopeCollapsible);
|
|
@@ -1767,16 +1844,16 @@ var CollapsibleTrigger2 = t.forwardRef(
|
|
|
1767
1844
|
);
|
|
1768
1845
|
}
|
|
1769
1846
|
);
|
|
1770
|
-
|
|
1847
|
+
CollapsibleTrigger.displayName = TRIGGER_NAME;
|
|
1771
1848
|
var CONTENT_NAME = "CollapsibleContent";
|
|
1772
|
-
var
|
|
1849
|
+
var CollapsibleContent = t.forwardRef(
|
|
1773
1850
|
(props, forwardedRef) => {
|
|
1774
1851
|
const { forceMount, ...contentProps } = props;
|
|
1775
1852
|
const context = useCollapsibleContext(CONTENT_NAME, props.__scopeCollapsible);
|
|
1776
1853
|
return /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: ({ present }) => /* @__PURE__ */ jsx(CollapsibleContentImpl, { ...contentProps, ref: forwardedRef, present }) });
|
|
1777
1854
|
}
|
|
1778
1855
|
);
|
|
1779
|
-
|
|
1856
|
+
CollapsibleContent.displayName = CONTENT_NAME;
|
|
1780
1857
|
var CollapsibleContentImpl = t.forwardRef((props, forwardedRef) => {
|
|
1781
1858
|
const { __scopeCollapsible, present, children, ...contentProps } = props;
|
|
1782
1859
|
const context = useCollapsibleContext(CONTENT_NAME, __scopeCollapsible);
|
|
@@ -1835,8 +1912,8 @@ function getState(open) {
|
|
|
1835
1912
|
return open ? "open" : "closed";
|
|
1836
1913
|
}
|
|
1837
1914
|
var Root4 = Collapsible;
|
|
1838
|
-
var Trigger2 =
|
|
1839
|
-
var Content2 =
|
|
1915
|
+
var Trigger2 = CollapsibleTrigger;
|
|
1916
|
+
var Content2 = CollapsibleContent;
|
|
1840
1917
|
var MoonUICollapsible = Root4;
|
|
1841
1918
|
var collapsibleTriggerVariants = cva(
|
|
1842
1919
|
"flex w-full items-center justify-between transition-all",
|
|
@@ -1886,7 +1963,7 @@ var MoonUICollapsibleTrigger = t.forwardRef(({ className, children, variant, siz
|
|
|
1886
1963
|
}
|
|
1887
1964
|
);
|
|
1888
1965
|
});
|
|
1889
|
-
|
|
1966
|
+
MoonUICollapsibleTrigger.displayName = Trigger2.displayName;
|
|
1890
1967
|
var collapsibleContentVariants = cva(
|
|
1891
1968
|
"overflow-hidden transition-all data-[state=closed]:animate-collapse-up data-[state=open]:animate-collapse-down",
|
|
1892
1969
|
{
|
|
@@ -1918,7 +1995,7 @@ var MoonUICollapsibleContent = t.forwardRef(({ className, children, variant, siz
|
|
|
1918
1995
|
children: /* @__PURE__ */ jsx("div", { className: "p-4", children })
|
|
1919
1996
|
}
|
|
1920
1997
|
));
|
|
1921
|
-
|
|
1998
|
+
MoonUICollapsibleContent.displayName = Content2.displayName;
|
|
1922
1999
|
|
|
1923
2000
|
// ../../node_modules/cmdk/dist/chunk-NZJY6EH4.mjs
|
|
1924
2001
|
var U = 1;
|
|
@@ -2357,7 +2434,6 @@ function B2({ asChild: r, children: o }, n) {
|
|
|
2357
2434
|
var Te = { position: "absolute", width: "1px", height: "1px", padding: "0", margin: "-1px", overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0" };
|
|
2358
2435
|
var MoonUIDialog2 = DialogPrimitive.Root;
|
|
2359
2436
|
var MoonUIDialogTrigger = DialogPrimitive.Trigger;
|
|
2360
|
-
var DialogPortal = DialogPrimitive.Portal;
|
|
2361
2437
|
var MoonUIDialogClose = DialogPrimitive.Close;
|
|
2362
2438
|
var overlayVariants = cva(
|
|
2363
2439
|
"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",
|
|
@@ -2381,7 +2457,7 @@ var overlayVariants = cva(
|
|
|
2381
2457
|
}
|
|
2382
2458
|
}
|
|
2383
2459
|
);
|
|
2384
|
-
var
|
|
2460
|
+
var MoonUIDialogOverlay = t.forwardRef(({ className, variant, animation, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2385
2461
|
DialogPrimitive.Overlay,
|
|
2386
2462
|
{
|
|
2387
2463
|
ref,
|
|
@@ -2389,7 +2465,7 @@ var DialogOverlay = t.forwardRef(({ className, variant, animation, ...props }, r
|
|
|
2389
2465
|
...props
|
|
2390
2466
|
}
|
|
2391
2467
|
));
|
|
2392
|
-
|
|
2468
|
+
MoonUIDialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
2393
2469
|
var dialogContentVariants = cva(
|
|
2394
2470
|
"fixed left-[50%] top-[50%] z-50 grid w-full translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background shadow-lg",
|
|
2395
2471
|
{
|
|
@@ -2524,7 +2600,7 @@ var MoonUIDialogContent = t.forwardRef(
|
|
|
2524
2600
|
] });
|
|
2525
2601
|
}
|
|
2526
2602
|
);
|
|
2527
|
-
|
|
2603
|
+
MoonUIDialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
2528
2604
|
var MoonUIDialogHeader = ({
|
|
2529
2605
|
className,
|
|
2530
2606
|
...props
|
|
@@ -2564,7 +2640,7 @@ var MoonUIDialogTitle = t.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
2564
2640
|
...props
|
|
2565
2641
|
}
|
|
2566
2642
|
));
|
|
2567
|
-
|
|
2643
|
+
MoonUIDialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
2568
2644
|
var MoonUIDialogDescription = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2569
2645
|
DialogPrimitive.Description,
|
|
2570
2646
|
{
|
|
@@ -2576,8 +2652,8 @@ var MoonUIDialogDescription = t.forwardRef(({ className, ...props }, ref) => /*
|
|
|
2576
2652
|
...props
|
|
2577
2653
|
}
|
|
2578
2654
|
));
|
|
2579
|
-
|
|
2580
|
-
var
|
|
2655
|
+
MoonUIDialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
2656
|
+
var MoonUIDialogForm = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2581
2657
|
"form",
|
|
2582
2658
|
{
|
|
2583
2659
|
ref,
|
|
@@ -2585,7 +2661,7 @@ var DialogForm = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
2585
2661
|
...props
|
|
2586
2662
|
}
|
|
2587
2663
|
));
|
|
2588
|
-
|
|
2664
|
+
MoonUIDialogForm.displayName = "DialogForm";
|
|
2589
2665
|
var commandVariants = cva(
|
|
2590
2666
|
"flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",
|
|
2591
2667
|
{
|
|
@@ -2615,7 +2691,7 @@ var MoonUICommand = t.forwardRef(({ className, variant, size, ...props }, ref) =
|
|
|
2615
2691
|
...props
|
|
2616
2692
|
}
|
|
2617
2693
|
));
|
|
2618
|
-
|
|
2694
|
+
MoonUICommand.displayName = _e.displayName;
|
|
2619
2695
|
var CommandDialog = ({
|
|
2620
2696
|
children,
|
|
2621
2697
|
commandClassName,
|
|
@@ -2643,7 +2719,7 @@ var MoonUICommandInput = t.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
2643
2719
|
}
|
|
2644
2720
|
)
|
|
2645
2721
|
] }));
|
|
2646
|
-
|
|
2722
|
+
MoonUICommandInput.displayName = _e.Input.displayName;
|
|
2647
2723
|
var MoonUICommandList = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2648
2724
|
_e.List,
|
|
2649
2725
|
{
|
|
@@ -2652,7 +2728,7 @@ var MoonUICommandList = t.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
2652
2728
|
...props
|
|
2653
2729
|
}
|
|
2654
2730
|
));
|
|
2655
|
-
|
|
2731
|
+
MoonUICommandList.displayName = _e.List.displayName;
|
|
2656
2732
|
var MoonUICommandEmpty = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2657
2733
|
_e.Empty,
|
|
2658
2734
|
{
|
|
@@ -2661,7 +2737,7 @@ var MoonUICommandEmpty = t.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
2661
2737
|
...props
|
|
2662
2738
|
}
|
|
2663
2739
|
));
|
|
2664
|
-
|
|
2740
|
+
MoonUICommandEmpty.displayName = _e.Empty.displayName;
|
|
2665
2741
|
var MoonUICommandGroup = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2666
2742
|
_e.Group,
|
|
2667
2743
|
{
|
|
@@ -2673,7 +2749,7 @@ var MoonUICommandGroup = t.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
2673
2749
|
...props
|
|
2674
2750
|
}
|
|
2675
2751
|
));
|
|
2676
|
-
|
|
2752
|
+
MoonUICommandGroup.displayName = _e.Group.displayName;
|
|
2677
2753
|
var MoonUICommandSeparator = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2678
2754
|
_e.Separator,
|
|
2679
2755
|
{
|
|
@@ -2682,7 +2758,7 @@ var MoonUICommandSeparator = t.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
2682
2758
|
...props
|
|
2683
2759
|
}
|
|
2684
2760
|
));
|
|
2685
|
-
|
|
2761
|
+
MoonUICommandSeparator.displayName = _e.Separator.displayName;
|
|
2686
2762
|
var MoonUICommandItem = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2687
2763
|
_e.Item,
|
|
2688
2764
|
{
|
|
@@ -2694,7 +2770,7 @@ var MoonUICommandItem = t.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
2694
2770
|
...props
|
|
2695
2771
|
}
|
|
2696
2772
|
));
|
|
2697
|
-
|
|
2773
|
+
MoonUICommandItem.displayName = _e.Item.displayName;
|
|
2698
2774
|
var MoonUICommandShortcut = ({
|
|
2699
2775
|
className,
|
|
2700
2776
|
...props
|
|
@@ -2805,32 +2881,8 @@ var MoonUIPopoverContent = t.forwardRef(({
|
|
|
2805
2881
|
}
|
|
2806
2882
|
)
|
|
2807
2883
|
] }));
|
|
2808
|
-
|
|
2884
|
+
MoonUIPopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
2809
2885
|
var PopoverClose = PopoverPrimitive.Close;
|
|
2810
|
-
var PopoverSeparator = ({ className, ...props }) => /* @__PURE__ */ jsx(
|
|
2811
|
-
"div",
|
|
2812
|
-
{
|
|
2813
|
-
className: cn("my-2 h-px bg-border", className),
|
|
2814
|
-
...props
|
|
2815
|
-
}
|
|
2816
|
-
);
|
|
2817
|
-
PopoverSeparator.displayName = "PopoverSeparator";
|
|
2818
|
-
var PopoverHeader = ({ className, ...props }) => /* @__PURE__ */ jsx(
|
|
2819
|
-
"div",
|
|
2820
|
-
{
|
|
2821
|
-
className: cn("-mx-4 -mt-4 mb-3 px-4 pt-4 pb-3 border-b border-border", className),
|
|
2822
|
-
...props
|
|
2823
|
-
}
|
|
2824
|
-
);
|
|
2825
|
-
PopoverHeader.displayName = "PopoverHeader";
|
|
2826
|
-
var PopoverFooter = ({ className, ...props }) => /* @__PURE__ */ jsx(
|
|
2827
|
-
"div",
|
|
2828
|
-
{
|
|
2829
|
-
className: cn("-mx-4 -mb-4 mt-3 px-4 pt-3 pb-4 border-t border-border", className),
|
|
2830
|
-
...props
|
|
2831
|
-
}
|
|
2832
|
-
);
|
|
2833
|
-
PopoverFooter.displayName = "PopoverFooter";
|
|
2834
2886
|
var datePickerVariants = cva(
|
|
2835
2887
|
"w-full justify-start text-left font-normal",
|
|
2836
2888
|
{
|
|
@@ -3301,7 +3353,7 @@ var MoonUIDropdownMenuSubTrigger = t.forwardRef(({ className, inset, children, .
|
|
|
3301
3353
|
]
|
|
3302
3354
|
}
|
|
3303
3355
|
));
|
|
3304
|
-
|
|
3356
|
+
MoonUIDropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
3305
3357
|
var MoonUIDropdownMenuSubContent = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3306
3358
|
DropdownMenuPrimitive.SubContent,
|
|
3307
3359
|
{
|
|
@@ -3313,7 +3365,7 @@ var MoonUIDropdownMenuSubContent = t.forwardRef(({ className, ...props }, ref) =
|
|
|
3313
3365
|
...props
|
|
3314
3366
|
}
|
|
3315
3367
|
));
|
|
3316
|
-
|
|
3368
|
+
MoonUIDropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
3317
3369
|
var MoonUIDropdownMenuContent = t.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
3318
3370
|
DropdownMenuPrimitive.Content,
|
|
3319
3371
|
{
|
|
@@ -3326,7 +3378,7 @@ var MoonUIDropdownMenuContent = t.forwardRef(({ className, sideOffset = 4, ...pr
|
|
|
3326
3378
|
...props
|
|
3327
3379
|
}
|
|
3328
3380
|
) }));
|
|
3329
|
-
|
|
3381
|
+
MoonUIDropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
3330
3382
|
var MoonUIDropdownMenuItem = t.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3331
3383
|
DropdownMenuPrimitive.Item,
|
|
3332
3384
|
{
|
|
@@ -3339,7 +3391,7 @@ var MoonUIDropdownMenuItem = t.forwardRef(({ className, inset, ...props }, ref)
|
|
|
3339
3391
|
...props
|
|
3340
3392
|
}
|
|
3341
3393
|
));
|
|
3342
|
-
|
|
3394
|
+
MoonUIDropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
3343
3395
|
var MoonUIDropdownMenuCheckboxItem = t.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
3344
3396
|
DropdownMenuPrimitive.CheckboxItem,
|
|
3345
3397
|
{
|
|
@@ -3356,7 +3408,7 @@ var MoonUIDropdownMenuCheckboxItem = t.forwardRef(({ className, children, checke
|
|
|
3356
3408
|
]
|
|
3357
3409
|
}
|
|
3358
3410
|
));
|
|
3359
|
-
|
|
3411
|
+
MoonUIDropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
3360
3412
|
var MoonUIDropdownMenuRadioItem = t.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
3361
3413
|
DropdownMenuPrimitive.RadioItem,
|
|
3362
3414
|
{
|
|
@@ -3372,7 +3424,7 @@ var MoonUIDropdownMenuRadioItem = t.forwardRef(({ className, children, ...props
|
|
|
3372
3424
|
]
|
|
3373
3425
|
}
|
|
3374
3426
|
));
|
|
3375
|
-
|
|
3427
|
+
MoonUIDropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
3376
3428
|
var MoonUIDropdownMenuLabel = t.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3377
3429
|
DropdownMenuPrimitive.Label,
|
|
3378
3430
|
{
|
|
@@ -3385,7 +3437,7 @@ var MoonUIDropdownMenuLabel = t.forwardRef(({ className, inset, ...props }, ref)
|
|
|
3385
3437
|
...props
|
|
3386
3438
|
}
|
|
3387
3439
|
));
|
|
3388
|
-
|
|
3440
|
+
MoonUIDropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
3389
3441
|
var MoonUIDropdownMenuSeparator = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3390
3442
|
DropdownMenuPrimitive.Separator,
|
|
3391
3443
|
{
|
|
@@ -3394,7 +3446,7 @@ var MoonUIDropdownMenuSeparator = t.forwardRef(({ className, ...props }, ref) =>
|
|
|
3394
3446
|
...props
|
|
3395
3447
|
}
|
|
3396
3448
|
));
|
|
3397
|
-
|
|
3449
|
+
MoonUIDropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
|
|
3398
3450
|
var MoonUIDropdownMenuShortcut = ({
|
|
3399
3451
|
className,
|
|
3400
3452
|
...props
|
|
@@ -3563,7 +3615,7 @@ var MoonUILabel2 = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
3563
3615
|
...props
|
|
3564
3616
|
}
|
|
3565
3617
|
));
|
|
3566
|
-
|
|
3618
|
+
MoonUILabel2.displayName = LabelPrimitive.Root.displayName;
|
|
3567
3619
|
var MoonUIPagination = ({ className, ...props }) => /* @__PURE__ */ jsx(
|
|
3568
3620
|
"nav",
|
|
3569
3621
|
{
|
|
@@ -3574,7 +3626,7 @@ var MoonUIPagination = ({ className, ...props }) => /* @__PURE__ */ jsx(
|
|
|
3574
3626
|
}
|
|
3575
3627
|
);
|
|
3576
3628
|
MoonUIPagination.displayName = "MoonUIPagination";
|
|
3577
|
-
var
|
|
3629
|
+
var MoonUIPaginationContent = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3578
3630
|
"ul",
|
|
3579
3631
|
{
|
|
3580
3632
|
ref,
|
|
@@ -3582,79 +3634,9 @@ var PaginationContent = t.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
3582
3634
|
...props
|
|
3583
3635
|
}
|
|
3584
3636
|
));
|
|
3585
|
-
|
|
3586
|
-
var
|
|
3587
|
-
|
|
3588
|
-
var PaginationLink = ({
|
|
3589
|
-
className,
|
|
3590
|
-
isActive,
|
|
3591
|
-
size = "icon",
|
|
3592
|
-
...props
|
|
3593
|
-
}) => /* @__PURE__ */ jsx(
|
|
3594
|
-
"a",
|
|
3595
|
-
{
|
|
3596
|
-
"aria-current": isActive ? "page" : void 0,
|
|
3597
|
-
className: cn(
|
|
3598
|
-
moonUIButtonVariants({
|
|
3599
|
-
variant: isActive ? "outline" : "ghost",
|
|
3600
|
-
size
|
|
3601
|
-
}),
|
|
3602
|
-
className
|
|
3603
|
-
),
|
|
3604
|
-
...props
|
|
3605
|
-
}
|
|
3606
|
-
);
|
|
3607
|
-
PaginationLink.displayName = "PaginationLink";
|
|
3608
|
-
var PaginationPrevious = ({
|
|
3609
|
-
className,
|
|
3610
|
-
...props
|
|
3611
|
-
}) => /* @__PURE__ */ jsxs(
|
|
3612
|
-
PaginationLink,
|
|
3613
|
-
{
|
|
3614
|
-
"aria-label": "Go to previous page",
|
|
3615
|
-
size: "default",
|
|
3616
|
-
className: cn("gap-1 pl-2.5", className),
|
|
3617
|
-
...props,
|
|
3618
|
-
children: [
|
|
3619
|
-
/* @__PURE__ */ jsx(ChevronLeft, { className: "h-4 w-4" }),
|
|
3620
|
-
/* @__PURE__ */ jsx("span", { children: "Previous" })
|
|
3621
|
-
]
|
|
3622
|
-
}
|
|
3623
|
-
);
|
|
3624
|
-
PaginationPrevious.displayName = "PaginationPrevious";
|
|
3625
|
-
var PaginationNext = ({
|
|
3626
|
-
className,
|
|
3627
|
-
...props
|
|
3628
|
-
}) => /* @__PURE__ */ jsxs(
|
|
3629
|
-
PaginationLink,
|
|
3630
|
-
{
|
|
3631
|
-
"aria-label": "Go to next page",
|
|
3632
|
-
size: "default",
|
|
3633
|
-
className: cn("gap-1 pr-2.5", className),
|
|
3634
|
-
...props,
|
|
3635
|
-
children: [
|
|
3636
|
-
/* @__PURE__ */ jsx("span", { children: "Next" }),
|
|
3637
|
-
/* @__PURE__ */ jsx(ChevronRight, { className: "h-4 w-4" })
|
|
3638
|
-
]
|
|
3639
|
-
}
|
|
3640
|
-
);
|
|
3641
|
-
PaginationNext.displayName = "PaginationNext";
|
|
3642
|
-
var PaginationEllipsis = ({
|
|
3643
|
-
className,
|
|
3644
|
-
...props
|
|
3645
|
-
}) => /* @__PURE__ */ jsxs(
|
|
3646
|
-
"span",
|
|
3647
|
-
{
|
|
3648
|
-
"aria-hidden": true,
|
|
3649
|
-
className: cn("flex h-9 w-9 items-center justify-center", className),
|
|
3650
|
-
...props,
|
|
3651
|
-
children: [
|
|
3652
|
-
/* @__PURE__ */ jsx(MoreHorizontal, { className: "h-4 w-4" }),
|
|
3653
|
-
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "More pages" })
|
|
3654
|
-
]
|
|
3655
|
-
}
|
|
3656
|
-
);
|
|
3657
|
-
PaginationEllipsis.displayName = "PaginationEllipsis";
|
|
3637
|
+
MoonUIPaginationContent.displayName = "PaginationContent";
|
|
3638
|
+
var MoonUIPaginationItem = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("li", { ref, className: cn("", className), ...props }));
|
|
3639
|
+
MoonUIPaginationItem.displayName = "PaginationItem";
|
|
3658
3640
|
var moonUIProgressVariants = cva(
|
|
3659
3641
|
"relative overflow-hidden bg-muted",
|
|
3660
3642
|
{
|
|
@@ -3863,7 +3845,7 @@ var MoonUIRadioGroupItem = t.forwardRef(({ className, variant, size, indicator,
|
|
|
3863
3845
|
] });
|
|
3864
3846
|
});
|
|
3865
3847
|
MoonUIRadioGroupItem.displayName = "MoonUIRadioGroupItem";
|
|
3866
|
-
var
|
|
3848
|
+
var MoonUIRadioLabel = t.forwardRef(
|
|
3867
3849
|
({ className, htmlFor, children, disabled = false, ...props }, ref) => {
|
|
3868
3850
|
return /* @__PURE__ */ jsx(
|
|
3869
3851
|
"label",
|
|
@@ -3881,8 +3863,8 @@ var RadioLabel = t.forwardRef(
|
|
|
3881
3863
|
);
|
|
3882
3864
|
}
|
|
3883
3865
|
);
|
|
3884
|
-
|
|
3885
|
-
var
|
|
3866
|
+
MoonUIRadioLabel.displayName = "RadioLabel";
|
|
3867
|
+
var MoonUIRadioItemWithLabel = t.forwardRef(({
|
|
3886
3868
|
id,
|
|
3887
3869
|
label,
|
|
3888
3870
|
labelClassName,
|
|
@@ -3903,7 +3885,7 @@ var RadioItemWithLabel = t.forwardRef(({
|
|
|
3903
3885
|
)
|
|
3904
3886
|
] });
|
|
3905
3887
|
});
|
|
3906
|
-
|
|
3888
|
+
MoonUIRadioItemWithLabel.displayName = "RadioItemWithLabel";
|
|
3907
3889
|
var MoonUISelect = SelectPrimitive.Root;
|
|
3908
3890
|
MoonUISelect.displayName = "MoonUISelect";
|
|
3909
3891
|
var MoonUISelectGroup = SelectPrimitive.Group;
|
|
@@ -3949,8 +3931,8 @@ var MoonUISelectTrigger = t.forwardRef(({ className, children, variant = "standa
|
|
|
3949
3931
|
]
|
|
3950
3932
|
}
|
|
3951
3933
|
));
|
|
3952
|
-
|
|
3953
|
-
var
|
|
3934
|
+
MoonUISelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
3935
|
+
var MoonUISelectScrollUpButton = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3954
3936
|
SelectPrimitive.ScrollUpButton,
|
|
3955
3937
|
{
|
|
3956
3938
|
ref,
|
|
@@ -3962,8 +3944,8 @@ var SelectScrollUpButton = t.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
3962
3944
|
children: /* @__PURE__ */ jsx(ChevronUp, { className: "h-4 w-4" })
|
|
3963
3945
|
}
|
|
3964
3946
|
));
|
|
3965
|
-
|
|
3966
|
-
var
|
|
3947
|
+
MoonUISelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
3948
|
+
var MoonUISelectScrollDownButton = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3967
3949
|
SelectPrimitive.ScrollDownButton,
|
|
3968
3950
|
{
|
|
3969
3951
|
ref,
|
|
@@ -3975,7 +3957,7 @@ var SelectScrollDownButton = t.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
3975
3957
|
children: /* @__PURE__ */ jsx(ChevronDown, { className: "h-4 w-4" })
|
|
3976
3958
|
}
|
|
3977
3959
|
));
|
|
3978
|
-
|
|
3960
|
+
MoonUISelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
3979
3961
|
var MoonUISelectContent = t.forwardRef(({ className, children, position = "item-aligned", ...props }, ref) => /* @__PURE__ */ jsx(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs(
|
|
3980
3962
|
SelectPrimitive.Content,
|
|
3981
3963
|
{
|
|
@@ -4012,7 +3994,7 @@ var MoonUISelectContent = t.forwardRef(({ className, children, position = "item-
|
|
|
4012
3994
|
]
|
|
4013
3995
|
}
|
|
4014
3996
|
) }));
|
|
4015
|
-
|
|
3997
|
+
MoonUISelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
4016
3998
|
var MoonUISelectLabel = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
4017
3999
|
SelectPrimitive.Label,
|
|
4018
4000
|
{
|
|
@@ -4021,7 +4003,7 @@ var MoonUISelectLabel = t.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
4021
4003
|
...props
|
|
4022
4004
|
}
|
|
4023
4005
|
));
|
|
4024
|
-
|
|
4006
|
+
MoonUISelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
4025
4007
|
var MoonUISelectItem = t.forwardRef(({ className, children, variant = "default", size = "md", rightIcon, customIndicator, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
4026
4008
|
SelectPrimitive.Item,
|
|
4027
4009
|
{
|
|
@@ -4048,7 +4030,7 @@ var MoonUISelectItem = t.forwardRef(({ className, children, variant = "default",
|
|
|
4048
4030
|
]
|
|
4049
4031
|
}
|
|
4050
4032
|
));
|
|
4051
|
-
|
|
4033
|
+
MoonUISelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
4052
4034
|
var MoonUISelectSeparator = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
4053
4035
|
SelectPrimitive.Separator,
|
|
4054
4036
|
{
|
|
@@ -4057,7 +4039,7 @@ var MoonUISelectSeparator = t.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
4057
4039
|
...props
|
|
4058
4040
|
}
|
|
4059
4041
|
));
|
|
4060
|
-
|
|
4042
|
+
MoonUISelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
4061
4043
|
var moonUISeparatorVariants = cva(
|
|
4062
4044
|
"shrink-0 bg-border",
|
|
4063
4045
|
{
|
|
@@ -4177,7 +4159,7 @@ var MoonUISeparator2 = t.forwardRef(
|
|
|
4177
4159
|
}
|
|
4178
4160
|
)
|
|
4179
4161
|
);
|
|
4180
|
-
|
|
4162
|
+
MoonUISeparator2.displayName = SeparatorPrimitive.Root.displayName;
|
|
4181
4163
|
var moonUISkeletonVariants = cva(
|
|
4182
4164
|
"animate-pulse rounded-md",
|
|
4183
4165
|
{
|
|
@@ -4286,7 +4268,7 @@ var MoonUISkeleton = t.forwardRef(
|
|
|
4286
4268
|
}
|
|
4287
4269
|
);
|
|
4288
4270
|
MoonUISkeleton.displayName = "MoonUISkeleton";
|
|
4289
|
-
var
|
|
4271
|
+
var MoonUISkeletonText = t.forwardRef(
|
|
4290
4272
|
({
|
|
4291
4273
|
className,
|
|
4292
4274
|
lines = 3,
|
|
@@ -4326,8 +4308,8 @@ var SkeletonText = t.forwardRef(
|
|
|
4326
4308
|
);
|
|
4327
4309
|
}
|
|
4328
4310
|
);
|
|
4329
|
-
|
|
4330
|
-
var
|
|
4311
|
+
MoonUISkeletonText.displayName = "SkeletonText";
|
|
4312
|
+
var MoonUISkeletonAvatar = t.forwardRef(
|
|
4331
4313
|
({
|
|
4332
4314
|
className,
|
|
4333
4315
|
size = "2.5rem",
|
|
@@ -4352,8 +4334,8 @@ var SkeletonAvatar = t.forwardRef(
|
|
|
4352
4334
|
);
|
|
4353
4335
|
}
|
|
4354
4336
|
);
|
|
4355
|
-
|
|
4356
|
-
var
|
|
4337
|
+
MoonUISkeletonAvatar.displayName = "SkeletonAvatar";
|
|
4338
|
+
var MoonUISkeletonCard = t.forwardRef(
|
|
4357
4339
|
({
|
|
4358
4340
|
className,
|
|
4359
4341
|
showHeader = true,
|
|
@@ -4426,7 +4408,7 @@ var SkeletonCard = t.forwardRef(
|
|
|
4426
4408
|
);
|
|
4427
4409
|
}
|
|
4428
4410
|
);
|
|
4429
|
-
|
|
4411
|
+
MoonUISkeletonCard.displayName = "SkeletonCard";
|
|
4430
4412
|
cva(
|
|
4431
4413
|
"relative flex w-full touch-none select-none items-center",
|
|
4432
4414
|
{
|
|
@@ -4708,7 +4690,7 @@ var MoonUISwitch = t.forwardRef(({ className, size = "md", variant = "primary",
|
|
|
4708
4690
|
rightIcon && /* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: rightIcon }),
|
|
4709
4691
|
description && /* @__PURE__ */ jsx("span", { className: "text-sm text-muted-foreground", children: description })
|
|
4710
4692
|
] }));
|
|
4711
|
-
|
|
4693
|
+
MoonUISwitch.displayName = SwitchPrimitives.Root.displayName;
|
|
4712
4694
|
var tableVariants = cva(
|
|
4713
4695
|
"w-full caption-bottom text-sm",
|
|
4714
4696
|
{
|
|
@@ -4921,7 +4903,7 @@ var MoonUITabs = t.forwardRef(({ vertical = false, ...props }, ref) => /* @__PUR
|
|
|
4921
4903
|
...props
|
|
4922
4904
|
}
|
|
4923
4905
|
));
|
|
4924
|
-
|
|
4906
|
+
MoonUITabs.displayName = TabsPrimitive.Root.displayName;
|
|
4925
4907
|
var tabsListVariants = cva(
|
|
4926
4908
|
"flex items-center justify-start transition-all duration-200",
|
|
4927
4909
|
{
|
|
@@ -4956,7 +4938,7 @@ var MoonUITabsList = t.forwardRef(({ className, variant, orientation, fullWidth,
|
|
|
4956
4938
|
...props
|
|
4957
4939
|
}
|
|
4958
4940
|
));
|
|
4959
|
-
|
|
4941
|
+
MoonUITabsList.displayName = TabsPrimitive.List.displayName;
|
|
4960
4942
|
var tabsTriggerVariants = cva(
|
|
4961
4943
|
"inline-flex items-center justify-center whitespace-nowrap font-medium ring-offset-background transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
|
|
4962
4944
|
{
|
|
@@ -5019,7 +5001,7 @@ var MoonUITabsTrigger = t.forwardRef(({
|
|
|
5019
5001
|
]
|
|
5020
5002
|
}
|
|
5021
5003
|
));
|
|
5022
|
-
|
|
5004
|
+
MoonUITabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
5023
5005
|
var MoonUITabsContent = t.forwardRef(({ className, animated = false, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
5024
5006
|
TabsPrimitive.Content,
|
|
5025
5007
|
{
|
|
@@ -5032,7 +5014,7 @@ var MoonUITabsContent = t.forwardRef(({ className, animated = false, ...props },
|
|
|
5032
5014
|
...props
|
|
5033
5015
|
}
|
|
5034
5016
|
));
|
|
5035
|
-
|
|
5017
|
+
MoonUITabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
5036
5018
|
var MoonUITextarea = t.forwardRef(
|
|
5037
5019
|
({
|
|
5038
5020
|
className,
|
|
@@ -5062,7 +5044,7 @@ var MoonUITextarea = t.forwardRef(
|
|
|
5062
5044
|
);
|
|
5063
5045
|
MoonUITextarea.displayName = "MoonUITextarea";
|
|
5064
5046
|
var ToastProvider = ToastPrimitives.Provider;
|
|
5065
|
-
var
|
|
5047
|
+
var MoonUIToastViewport = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
5066
5048
|
ToastPrimitives.Viewport,
|
|
5067
5049
|
{
|
|
5068
5050
|
ref,
|
|
@@ -5073,7 +5055,7 @@ var ToastViewport = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
5073
5055
|
...props
|
|
5074
5056
|
}
|
|
5075
5057
|
));
|
|
5076
|
-
|
|
5058
|
+
MoonUIToastViewport.displayName = ToastPrimitives.Viewport.displayName;
|
|
5077
5059
|
cva(
|
|
5078
5060
|
"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",
|
|
5079
5061
|
{
|
|
@@ -5101,8 +5083,8 @@ var MoonUIToast = t.forwardRef(({ className, variant, ...props }, ref) => {
|
|
|
5101
5083
|
}
|
|
5102
5084
|
);
|
|
5103
5085
|
});
|
|
5104
|
-
|
|
5105
|
-
var
|
|
5086
|
+
MoonUIToast.displayName = ToastPrimitives.Root.displayName;
|
|
5087
|
+
var MoonUIToastAction = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
5106
5088
|
ToastPrimitives.Action,
|
|
5107
5089
|
{
|
|
5108
5090
|
ref,
|
|
@@ -5113,8 +5095,8 @@ var ToastAction = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
5113
5095
|
...props
|
|
5114
5096
|
}
|
|
5115
5097
|
));
|
|
5116
|
-
|
|
5117
|
-
var
|
|
5098
|
+
MoonUIToastAction.displayName = ToastPrimitives.Action.displayName;
|
|
5099
|
+
var MoonUIToastClose = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
5118
5100
|
ToastPrimitives.Close,
|
|
5119
5101
|
{
|
|
5120
5102
|
ref,
|
|
@@ -5127,8 +5109,8 @@ var ToastClose = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
5127
5109
|
children: /* @__PURE__ */ jsx(X, { className: "h-4 w-4" })
|
|
5128
5110
|
}
|
|
5129
5111
|
));
|
|
5130
|
-
|
|
5131
|
-
var
|
|
5112
|
+
MoonUIToastClose.displayName = ToastPrimitives.Close.displayName;
|
|
5113
|
+
var MoonUIToastTitle = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
5132
5114
|
ToastPrimitives.Title,
|
|
5133
5115
|
{
|
|
5134
5116
|
ref,
|
|
@@ -5136,8 +5118,8 @@ var ToastTitle = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
5136
5118
|
...props
|
|
5137
5119
|
}
|
|
5138
5120
|
));
|
|
5139
|
-
|
|
5140
|
-
var
|
|
5121
|
+
MoonUIToastTitle.displayName = ToastPrimitives.Title.displayName;
|
|
5122
|
+
var MoonUIToastDescription = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
5141
5123
|
ToastPrimitives.Description,
|
|
5142
5124
|
{
|
|
5143
5125
|
ref,
|
|
@@ -5145,7 +5127,7 @@ var ToastDescription = t.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
5145
5127
|
...props
|
|
5146
5128
|
}
|
|
5147
5129
|
));
|
|
5148
|
-
|
|
5130
|
+
MoonUIToastDescription.displayName = ToastPrimitives.Description.displayName;
|
|
5149
5131
|
var TOAST_LIMIT = 5;
|
|
5150
5132
|
var TOAST_REMOVE_DELAY = 1e6;
|
|
5151
5133
|
var toastTimeouts = /* @__PURE__ */ new Map();
|
|
@@ -5350,7 +5332,7 @@ function isFunction2(value) {
|
|
|
5350
5332
|
return typeof value === "function";
|
|
5351
5333
|
}
|
|
5352
5334
|
var NAME = "Toggle";
|
|
5353
|
-
var
|
|
5335
|
+
var Toggle = t.forwardRef((props, forwardedRef) => {
|
|
5354
5336
|
const { pressed: pressedProp, defaultPressed, onPressedChange, ...buttonProps } = props;
|
|
5355
5337
|
const [pressed, setPressed] = useControllableState2({
|
|
5356
5338
|
prop: pressedProp,
|
|
@@ -5375,8 +5357,8 @@ var Toggle2 = t.forwardRef((props, forwardedRef) => {
|
|
|
5375
5357
|
}
|
|
5376
5358
|
);
|
|
5377
5359
|
});
|
|
5378
|
-
|
|
5379
|
-
var Root15 =
|
|
5360
|
+
Toggle.displayName = NAME;
|
|
5361
|
+
var Root15 = Toggle;
|
|
5380
5362
|
var moonUIToggleVariants = cva(
|
|
5381
5363
|
"inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",
|
|
5382
5364
|
{
|
|
@@ -5405,7 +5387,7 @@ var MoonUIToggle = t.forwardRef(({ className, variant, size, ...props }, ref) =>
|
|
|
5405
5387
|
...props
|
|
5406
5388
|
}
|
|
5407
5389
|
));
|
|
5408
|
-
|
|
5390
|
+
MoonUIToggle.displayName = Root15.displayName;
|
|
5409
5391
|
var MoonUITooltipProvider = TooltipPrimitive.Provider;
|
|
5410
5392
|
var tooltipVariants = cva(
|
|
5411
5393
|
"z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
@@ -5433,7 +5415,7 @@ var tooltipVariants = cva(
|
|
|
5433
5415
|
);
|
|
5434
5416
|
var MoonUITooltip = TooltipPrimitive.Root;
|
|
5435
5417
|
var MoonUITooltipTrigger = TooltipPrimitive.Trigger;
|
|
5436
|
-
var
|
|
5418
|
+
var MoonUITooltipArrow = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
5437
5419
|
TooltipPrimitive.Arrow,
|
|
5438
5420
|
{
|
|
5439
5421
|
ref,
|
|
@@ -5441,7 +5423,7 @@ var TooltipArrow = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
5441
5423
|
...props
|
|
5442
5424
|
}
|
|
5443
5425
|
));
|
|
5444
|
-
|
|
5426
|
+
MoonUITooltipArrow.displayName = TooltipPrimitive.Arrow.displayName;
|
|
5445
5427
|
var MoonUITooltipContent = t.forwardRef(({ className, variant, size, showArrow = false, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
5446
5428
|
TooltipPrimitive.Content,
|
|
5447
5429
|
{
|
|
@@ -5455,8 +5437,8 @@ var MoonUITooltipContent = t.forwardRef(({ className, variant, size, showArrow =
|
|
|
5455
5437
|
]
|
|
5456
5438
|
}
|
|
5457
5439
|
));
|
|
5458
|
-
|
|
5459
|
-
var
|
|
5440
|
+
MoonUITooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
|
5441
|
+
var MoonUISimpleTooltip = t.forwardRef(
|
|
5460
5442
|
({
|
|
5461
5443
|
children,
|
|
5462
5444
|
content,
|
|
@@ -5504,8 +5486,8 @@ var SimpleTooltip = t.forwardRef(
|
|
|
5504
5486
|
);
|
|
5505
5487
|
}
|
|
5506
5488
|
);
|
|
5507
|
-
|
|
5489
|
+
MoonUISimpleTooltip.displayName = "SimpleTooltip";
|
|
5508
5490
|
|
|
5509
|
-
export { MoonUIAccordion as Accordion, MoonUIAccordionContent as AccordionContent, MoonUIAccordionItem as AccordionItem, MoonUIAccordionTrigger as AccordionTrigger, MoonUIAlert as Alert, MoonUIAlertDescription as AlertDescription, MoonUIAlertTitle as AlertTitle, MoonUIAspectRatio as AspectRatio, MoonUIAvatar as Avatar, MoonUIAvatarFallback as AvatarFallback, AvatarGroup, MoonUIAvatarImage as AvatarImage, MoonUIBreadcrumb as Breadcrumb, MoonUIBreadcrumbEllipsis as BreadcrumbEllipsis, MoonUIBreadcrumbItem as BreadcrumbItem, MoonUIBreadcrumbLink as BreadcrumbLink, MoonUIBreadcrumbList as BreadcrumbList, MoonUIBreadcrumbPage as BreadcrumbPage, MoonUIBreadcrumbSeparator as BreadcrumbSeparator, MoonUIButton2 as Button, MoonUICalendar as Calendar, MoonUICard as Card, MoonUICardContent as CardContent, MoonUICardDescription as CardDescription, MoonUICardFooter as CardFooter, MoonUICardHeader as CardHeader, MoonUICardTitle as CardTitle, MoonUICheckbox2 as Checkbox,
|
|
5491
|
+
export { MoonUIAccordion as Accordion, MoonUIAccordionContent as AccordionContent, MoonUIAccordionItem as AccordionItem, MoonUIAccordionTrigger as AccordionTrigger, MoonUIAlert as Alert, MoonUIAlertDescription as AlertDescription, MoonUIAlertTitle as AlertTitle, MoonUIAspectRatio as AspectRatio, MoonUIAvatar as Avatar, MoonUIAvatarFallback as AvatarFallback, MoonUIAvatarGroup as AvatarGroup, MoonUIAvatarImage as AvatarImage, MoonUIBadge as Badge, MoonUIBreadcrumb as Breadcrumb, MoonUIBreadcrumbEllipsis as BreadcrumbEllipsis, MoonUIBreadcrumbItem as BreadcrumbItem, MoonUIBreadcrumbLink as BreadcrumbLink, MoonUIBreadcrumbList as BreadcrumbList, MoonUIBreadcrumbPage as BreadcrumbPage, MoonUIBreadcrumbSeparator as BreadcrumbSeparator, MoonUIButton2 as Button, MoonUICalendar as Calendar, MoonUICard as Card, MoonUICardContent as CardContent, MoonUICardDescription as CardDescription, MoonUICardFooter as CardFooter, MoonUICardHeader as CardHeader, MoonUICardTitle as CardTitle, MoonUICheckbox2 as Checkbox, MoonUICollapsible as Collapsible, MoonUICollapsibleContent as CollapsibleContent, MoonUICollapsibleTrigger as CollapsibleTrigger, MoonUICommand as Command, CommandDialog, MoonUICommandEmpty as CommandEmpty, MoonUICommandGroup as CommandGroup, MoonUICommandInput as CommandInput, MoonUICommandItem as CommandItem, MoonUICommandList as CommandList, MoonUICommandSeparator as CommandSeparator, MoonUICommandShortcut as CommandShortcut, DatePicker, DateRangePicker, DateTimePicker, MoonUIDialog2 as Dialog, MoonUIDialogClose as DialogClose, MoonUIDialogContent as DialogContent, MoonUIDialogDescription as DialogDescription, MoonUIDialogFooter as DialogFooter, MoonUIDialogHeader as DialogHeader, MoonUIDialogTitle as DialogTitle, MoonUIDialogTrigger as DialogTrigger, MoonUIDropdownMenu as DropdownMenu, MoonUIDropdownMenuCheckboxItem as DropdownMenuCheckboxItem, MoonUIDropdownMenuContent as DropdownMenuContent, MoonUIDropdownMenuGroup as DropdownMenuGroup, MoonUIDropdownMenuItem as DropdownMenuItem, MoonUIDropdownMenuLabel as DropdownMenuLabel, MoonUIDropdownMenuPortal as DropdownMenuPortal, MoonUIDropdownMenuRadioGroup as DropdownMenuRadioGroup, MoonUIDropdownMenuRadioItem as DropdownMenuRadioItem, MoonUIDropdownMenuSeparator as DropdownMenuSeparator, MoonUIDropdownMenuShortcut as DropdownMenuShortcut, MoonUIDropdownMenuSub as DropdownMenuSub, MoonUIDropdownMenuSubContent as DropdownMenuSubContent, MoonUIDropdownMenuSubTrigger as DropdownMenuSubTrigger, MoonUIDropdownMenuTrigger as DropdownMenuTrigger, MoonUIInput2 as Input, MoonUILabel2 as Label, MonthPicker, MoonUIAccordion, MoonUIAccordionContent, MoonUIAccordionItem, MoonUIAccordionTrigger, MoonUIAlert, MoonUIAlertDescription, MoonUIAlertTitle, MoonUIAspectRatio, MoonUIAvatar, MoonUIAvatarFallback, MoonUIAvatarGroup, MoonUIAvatarImage, MoonUIBadge, MoonUIBreadcrumb, MoonUIBreadcrumbEllipsis, MoonUIBreadcrumbItem, MoonUIBreadcrumbLink, MoonUIBreadcrumbList, MoonUIBreadcrumbPage, MoonUIBreadcrumbSeparator, MoonUIButton2 as MoonUIButton, MoonUICalendar, MoonUICard, MoonUICardContent, MoonUICardDescription, MoonUICardFooter, MoonUICardHeader, MoonUICardTitle, MoonUICheckbox2 as MoonUICheckbox, MoonUICollapsible, MoonUICollapsibleContent, MoonUICollapsibleTrigger, MoonUICommand, MoonUICommandEmpty, MoonUICommandGroup, MoonUICommandInput, MoonUICommandItem, MoonUICommandList, MoonUICommandSeparator, MoonUICommandShortcut, MoonUIDialog2 as MoonUIDialog, MoonUIDialogClose, MoonUIDialogContent, MoonUIDialogDescription, MoonUIDialogFooter, MoonUIDialogHeader, MoonUIDialogTitle, MoonUIDialogTrigger, MoonUIDropdownMenu, MoonUIDropdownMenuCheckboxItem, MoonUIDropdownMenuContent, MoonUIDropdownMenuGroup, MoonUIDropdownMenuItem, MoonUIDropdownMenuLabel, MoonUIDropdownMenuPortal, MoonUIDropdownMenuRadioGroup, MoonUIDropdownMenuRadioItem, MoonUIDropdownMenuSeparator, MoonUIDropdownMenuShortcut, MoonUIDropdownMenuSub, MoonUIDropdownMenuSubContent, MoonUIDropdownMenuSubTrigger, MoonUIDropdownMenuTrigger, MoonUIInput2 as MoonUIInput, MoonUILabel2 as MoonUILabel, MoonUIPagination, MoonUIPopover, MoonUIPopoverContent, MoonUIPopoverTrigger, MoonUIProgress, MoonUIRadioGroup2 as MoonUIRadioGroup, MoonUIRadioGroupItem, MoonUISelect, MoonUISelectContent, MoonUISelectGroup, MoonUISelectItem, MoonUISelectLabel, MoonUISelectSeparator, MoonUISelectTrigger, MoonUISelectValue, MoonUISeparator2 as MoonUISeparator, MoonUISkeleton, MoonUISkeletonAvatar, MoonUISkeletonCard, MoonUISkeletonText, MoonUISlider, MoonUISwitch, MoonUITable, MoonUITableBody, MoonUITableCaption, MoonUITableCell, MoonUITableFooter, MoonUITableHead, MoonUITableHeader, MoonUITableRow, MoonUITabs, MoonUITabsContent, MoonUITabsList, MoonUITabsTrigger, MoonUITextarea, MoonUIToast, MoonUIToggle, MoonUITooltip, MoonUITooltipContent, MoonUITooltipProvider, MoonUITooltipTrigger, MoonUIPagination as Pagination, MoonUIPopover as Popover, PopoverAnchor, PopoverClose, MoonUIPopoverContent as PopoverContent, MoonUIPopoverTrigger as PopoverTrigger, MoonUIProgress as Progress, MoonUIRadioGroup2 as RadioGroup, MoonUIRadioGroupItem as RadioGroupItem, MoonUISelect as Select, MoonUISelectContent as SelectContent, MoonUISelectGroup as SelectGroup, MoonUISelectItem as SelectItem, MoonUISelectLabel as SelectLabel, MoonUISelectSeparator as SelectSeparator, MoonUISelectTrigger as SelectTrigger, MoonUISelectValue as SelectValue, MoonUISeparator2 as Separator, MoonUISlider as Slider, MoonUISwitch as Switch, MoonUITable as Table, MoonUITableBody as TableBody, MoonUITableCaption as TableCaption, MoonUITableCell as TableCell, MoonUITableFooter as TableFooter, MoonUITableHead as TableHead, MoonUITableHeader as TableHeader, MoonUITableRow as TableRow, MoonUITabs as Tabs, MoonUITabsContent as TabsContent, MoonUITabsList as TabsList, MoonUITabsTrigger as TabsTrigger, MoonUITextarea as Textarea, MoonUIToast as Toast, ToastProvider, Toaster, MoonUIToggle as Toggle, MoonUITooltip as Tooltip, MoonUITooltipContent as TooltipContent, MoonUITooltipProvider as TooltipProvider, MoonUITooltipTrigger as TooltipTrigger, moonUIAspectRatioVariants as aspectRatioVariants, moonUIBadgeVariants as badgeVariants, moonUIButtonVariants as buttonVariants, cn, collapsibleContentVariants, collapsibleTriggerVariants, formatCurrency, formatDate, generateId, getClientIP, moonUIAspectRatioVariants, moonUIBadgeVariants, moonUIButtonVariants, moonUIProgressVariants, moonUISeparatorVariants, moonUISkeletonVariants, moonUIToggleVariants, popoverContentVariants, moonUIProgressVariants as progressVariants, moonUISeparatorVariants as separatorVariants, moonUISkeletonVariants as skeletonVariants, toast, moonUIToggleVariants as toggleVariants, tooltipVariants, truncateText, useToast };
|
|
5510
5492
|
//# sourceMappingURL=out.js.map
|
|
5511
5493
|
//# sourceMappingURL=index.mjs.map
|