@hilum/ui 3.6.10 → 3.6.11
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.d.ts +10 -1
- package/dist/index.js +237 -203
- package/dist/index.js.map +1 -1
- package/llms.txt +4 -3
- package/package.json +1 -1
- package/src/components/checkbox-card.tsx +52 -0
- package/src/index.ts +1 -0
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { tokens } from './chunk-RI6QJR2L.js';
|
|
2
2
|
import { clsx } from 'clsx';
|
|
3
3
|
import { twMerge } from 'tailwind-merge';
|
|
4
|
-
import * as
|
|
4
|
+
import * as React17 from 'react';
|
|
5
5
|
import { createContext, forwardRef, useRef, useState, useCallback, useEffect, useContext, isValidElement, cloneElement, useMemo, useId, Children, useLayoutEffect, createElement } from 'react';
|
|
6
6
|
import { Check, Circle, ChevronRight, Minus, Search, X, ChevronDown, CornerDownRight, SkipForward, Pencil, Inbox, MessageCircle, Home, Pause, Play, RotateCcw, Link, ImageIcon, User, Globe, Brain, Paintbrush, Heart, Rocket, Lightbulb, Palette, Shield, Bell, Mail, Lock, Users, Loader, ArrowUp, ArrowRight, ArrowLeft, Plus, Settings, Star, Clock, SquareLibrary, RectangleHorizontal, Moon, Sun, Monitor, Dot, Menu, Copy, Pipette, MoreHorizontal, ChevronLeft, ChevronsUpDown, ChevronUp, CalendarIcon, Upload, File, CircleHelp, Info, AlertTriangle, AlertCircle, CheckCircle, GripVertical, Bold, Italic, Underline, Strikethrough, Heading1, Heading2, Heading3, List as List$1, ListOrdered, AlignLeft, FileText, Image as Image$1, Filter, ArrowDown, PanelLeft, TrendingDown, TrendingUp, Download, XCircle, Loader2 } from 'lucide-react';
|
|
7
7
|
import { IconCornerDownRight, IconPlayerSkipForward, IconPencil, IconInbox, IconMessageCircle, IconHome, IconPlayerPause, IconPlayerPlay, IconRotate2, IconCheck, IconLink, IconPhoto, IconUser, IconGlobe, IconBrain, IconBrush, IconHeart, IconRocket, IconBulb, IconPalette, IconShield, IconBell, IconMail, IconLock, IconUsers, IconLoader2, IconSearch, IconArrowUp, IconArrowRight, IconArrowLeft, IconPlus, IconSettings, IconStar, IconClock, IconLibrary, IconCircle, IconSquare, IconMoon, IconSun, IconDeviceDesktop, IconPoint, IconMenu2, IconCopy, IconX, IconColorPicker, IconChevronDown, IconChevronRight } from '@tabler/icons-react';
|
|
@@ -526,15 +526,15 @@ var controlSurfaceClasses = "border border-border bg-background hover:border-gro
|
|
|
526
526
|
var menuItemClasses = "relative flex min-h-10 cursor-default select-none items-center gap-2 rounded-md px-2.5 py-2 body outline-none transition-[background-color,color,box-shadow] duration-150 ease-out";
|
|
527
527
|
var menuItemActiveClasses = "focus:bg-muted focus:text-foreground data-[highlighted]:bg-muted";
|
|
528
528
|
function useProximityIndex(axis = "y") {
|
|
529
|
-
const containerRef =
|
|
530
|
-
const itemRefs =
|
|
531
|
-
const frameRef =
|
|
532
|
-
const [activeIndex, setActiveIndex] =
|
|
533
|
-
const registerItem =
|
|
529
|
+
const containerRef = React17.useRef(null);
|
|
530
|
+
const itemRefs = React17.useRef(/* @__PURE__ */ new Map());
|
|
531
|
+
const frameRef = React17.useRef(null);
|
|
532
|
+
const [activeIndex, setActiveIndex] = React17.useState(null);
|
|
533
|
+
const registerItem = React17.useCallback((index, node) => {
|
|
534
534
|
if (node) itemRefs.current.set(index, node);
|
|
535
535
|
else itemRefs.current.delete(index);
|
|
536
536
|
}, []);
|
|
537
|
-
const onPointerMove =
|
|
537
|
+
const onPointerMove = React17.useCallback(
|
|
538
538
|
(event) => {
|
|
539
539
|
if (frameRef.current !== null) cancelAnimationFrame(frameRef.current);
|
|
540
540
|
const pointer = axis === "x" ? event.clientX : event.clientY;
|
|
@@ -558,14 +558,14 @@ function useProximityIndex(axis = "y") {
|
|
|
558
558
|
},
|
|
559
559
|
[axis]
|
|
560
560
|
);
|
|
561
|
-
const clearActiveIndex =
|
|
561
|
+
const clearActiveIndex = React17.useCallback(() => {
|
|
562
562
|
if (frameRef.current !== null) {
|
|
563
563
|
cancelAnimationFrame(frameRef.current);
|
|
564
564
|
frameRef.current = null;
|
|
565
565
|
}
|
|
566
566
|
setActiveIndex(null);
|
|
567
567
|
}, []);
|
|
568
|
-
|
|
568
|
+
React17.useEffect(
|
|
569
569
|
() => () => {
|
|
570
570
|
if (frameRef.current !== null) cancelAnimationFrame(frameRef.current);
|
|
571
571
|
},
|
|
@@ -679,7 +679,7 @@ var DropdownMenuGroup = DropdownMenu.Group;
|
|
|
679
679
|
var DropdownMenuPortal = DropdownMenu.Portal;
|
|
680
680
|
var DropdownMenuSub = DropdownMenu.Sub;
|
|
681
681
|
var DropdownMenuRadioGroup = DropdownMenu.RadioGroup;
|
|
682
|
-
var DropdownMenuContent =
|
|
682
|
+
var DropdownMenuContent = React17.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
683
683
|
/* @__PURE__ */ jsx("style", { children: mobilePopperSheetStyle }),
|
|
684
684
|
/* @__PURE__ */ jsx(DropdownMenu.Portal, { children: /* @__PURE__ */ jsx(
|
|
685
685
|
DropdownMenu.Content,
|
|
@@ -705,7 +705,7 @@ var DropdownMenuContent = React16.forwardRef(({ className, sideOffset = 4, ...pr
|
|
|
705
705
|
) })
|
|
706
706
|
] }));
|
|
707
707
|
DropdownMenuContent.displayName = "DropdownMenuContent";
|
|
708
|
-
var DropdownMenuItem =
|
|
708
|
+
var DropdownMenuItem = React17.forwardRef(({ className, inset, destructive, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
709
709
|
DropdownMenu.Item,
|
|
710
710
|
{
|
|
711
711
|
ref,
|
|
@@ -723,7 +723,7 @@ var DropdownMenuItem = React16.forwardRef(({ className, inset, destructive, ...p
|
|
|
723
723
|
}
|
|
724
724
|
));
|
|
725
725
|
DropdownMenuItem.displayName = "DropdownMenuItem";
|
|
726
|
-
var DropdownMenuCheckboxItem =
|
|
726
|
+
var DropdownMenuCheckboxItem = React17.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
727
727
|
DropdownMenu.CheckboxItem,
|
|
728
728
|
{
|
|
729
729
|
ref,
|
|
@@ -742,7 +742,7 @@ var DropdownMenuCheckboxItem = React16.forwardRef(({ className, children, ...pro
|
|
|
742
742
|
}
|
|
743
743
|
));
|
|
744
744
|
DropdownMenuCheckboxItem.displayName = "DropdownMenuCheckboxItem";
|
|
745
|
-
var DropdownMenuRadioItem =
|
|
745
|
+
var DropdownMenuRadioItem = React17.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
746
746
|
DropdownMenu.RadioItem,
|
|
747
747
|
{
|
|
748
748
|
ref,
|
|
@@ -761,7 +761,7 @@ var DropdownMenuRadioItem = React16.forwardRef(({ className, children, ...props
|
|
|
761
761
|
}
|
|
762
762
|
));
|
|
763
763
|
DropdownMenuRadioItem.displayName = "DropdownMenuRadioItem";
|
|
764
|
-
var DropdownMenuLabel =
|
|
764
|
+
var DropdownMenuLabel = React17.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
765
765
|
DropdownMenu.Label,
|
|
766
766
|
{
|
|
767
767
|
ref,
|
|
@@ -770,7 +770,7 @@ var DropdownMenuLabel = React16.forwardRef(({ className, inset, ...props }, ref)
|
|
|
770
770
|
}
|
|
771
771
|
));
|
|
772
772
|
DropdownMenuLabel.displayName = "DropdownMenuLabel";
|
|
773
|
-
var DropdownMenuSeparator =
|
|
773
|
+
var DropdownMenuSeparator = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
774
774
|
DropdownMenu.Separator,
|
|
775
775
|
{
|
|
776
776
|
ref,
|
|
@@ -779,7 +779,7 @@ var DropdownMenuSeparator = React16.forwardRef(({ className, ...props }, ref) =>
|
|
|
779
779
|
}
|
|
780
780
|
));
|
|
781
781
|
DropdownMenuSeparator.displayName = "DropdownMenuSeparator";
|
|
782
|
-
var DropdownMenuSubTrigger =
|
|
782
|
+
var DropdownMenuSubTrigger = React17.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
783
783
|
DropdownMenu.SubTrigger,
|
|
784
784
|
{
|
|
785
785
|
ref,
|
|
@@ -798,7 +798,7 @@ var DropdownMenuSubTrigger = React16.forwardRef(({ className, inset, children, .
|
|
|
798
798
|
}
|
|
799
799
|
));
|
|
800
800
|
DropdownMenuSubTrigger.displayName = "DropdownMenuSubTrigger";
|
|
801
|
-
var DropdownMenuSubContent =
|
|
801
|
+
var DropdownMenuSubContent = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
802
802
|
/* @__PURE__ */ jsx("style", { children: mobilePopperSheetStyle }),
|
|
803
803
|
/* @__PURE__ */ jsx(
|
|
804
804
|
DropdownMenu.SubContent,
|
|
@@ -833,7 +833,7 @@ var sizeMap = {
|
|
|
833
833
|
lg: "size-10 body-lg",
|
|
834
834
|
xl: "size-12 subheading"
|
|
835
835
|
};
|
|
836
|
-
var Avatar =
|
|
836
|
+
var Avatar = React17.forwardRef(
|
|
837
837
|
({ className, size = "md", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
838
838
|
Avatar$1.Root,
|
|
839
839
|
{
|
|
@@ -848,7 +848,7 @@ var Avatar = React16.forwardRef(
|
|
|
848
848
|
)
|
|
849
849
|
);
|
|
850
850
|
Avatar.displayName = "Avatar";
|
|
851
|
-
var AvatarImage =
|
|
851
|
+
var AvatarImage = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
852
852
|
Avatar$1.Image,
|
|
853
853
|
{
|
|
854
854
|
ref,
|
|
@@ -860,7 +860,7 @@ var AvatarImage = React16.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
860
860
|
}
|
|
861
861
|
));
|
|
862
862
|
AvatarImage.displayName = "AvatarImage";
|
|
863
|
-
var AvatarFallback =
|
|
863
|
+
var AvatarFallback = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
864
864
|
Avatar$1.Fallback,
|
|
865
865
|
{
|
|
866
866
|
ref,
|
|
@@ -885,7 +885,7 @@ var statusSizeMap = {
|
|
|
885
885
|
lg: "size-3 ring-2",
|
|
886
886
|
xl: "size-3.5 ring-2"
|
|
887
887
|
};
|
|
888
|
-
var AvatarWithStatus =
|
|
888
|
+
var AvatarWithStatus = React17.forwardRef(({ status, size = "md", className, children, ...props }, ref) => /* @__PURE__ */ jsxs("div", { className: "relative inline-flex shrink-0", children: [
|
|
889
889
|
/* @__PURE__ */ jsx(Avatar, { ref, size, className, ...props, children }),
|
|
890
890
|
status && /* @__PURE__ */ jsx(
|
|
891
891
|
"span",
|
|
@@ -899,7 +899,7 @@ var AvatarWithStatus = React16.forwardRef(({ status, size = "md", className, chi
|
|
|
899
899
|
)
|
|
900
900
|
] }));
|
|
901
901
|
AvatarWithStatus.displayName = "AvatarWithStatus";
|
|
902
|
-
var AccountMenuContent =
|
|
902
|
+
var AccountMenuContent = React17.forwardRef(({ className, sideOffset = 8, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
903
903
|
DropdownMenuContent,
|
|
904
904
|
{
|
|
905
905
|
ref,
|
|
@@ -912,7 +912,7 @@ var AccountMenuContent = React16.forwardRef(({ className, sideOffset = 8, ...pro
|
|
|
912
912
|
}
|
|
913
913
|
));
|
|
914
914
|
AccountMenuContent.displayName = "AccountMenuContent";
|
|
915
|
-
var AccountMenuHeader =
|
|
915
|
+
var AccountMenuHeader = React17.forwardRef(
|
|
916
916
|
({ name, email, avatarSrc, avatarAlt, fallback, className, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
917
917
|
"div",
|
|
918
918
|
{
|
|
@@ -931,11 +931,11 @@ var AccountMenuHeader = React16.forwardRef(
|
|
|
931
931
|
)
|
|
932
932
|
);
|
|
933
933
|
AccountMenuHeader.displayName = "AccountMenuHeader";
|
|
934
|
-
var AccountMenuSection =
|
|
934
|
+
var AccountMenuSection = React17.forwardRef(
|
|
935
935
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("p-2", className), ...props })
|
|
936
936
|
);
|
|
937
937
|
AccountMenuSection.displayName = "AccountMenuSection";
|
|
938
|
-
var AccountMenuItem =
|
|
938
|
+
var AccountMenuItem = React17.forwardRef(({ icon, trailing, description, destructive, children, className, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
939
939
|
DropdownMenuItem,
|
|
940
940
|
{
|
|
941
941
|
ref,
|
|
@@ -959,7 +959,7 @@ var AccountMenuItem = React16.forwardRef(({ icon, trailing, description, destruc
|
|
|
959
959
|
}
|
|
960
960
|
));
|
|
961
961
|
AccountMenuItem.displayName = "AccountMenuItem";
|
|
962
|
-
var AccountMenuSeparator =
|
|
962
|
+
var AccountMenuSeparator = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(DropdownMenuSeparator, { ref, className: cn("m-0 bg-border", className), ...props }));
|
|
963
963
|
AccountMenuSeparator.displayName = "AccountMenuSeparator";
|
|
964
964
|
|
|
965
965
|
// src/lib/springs.ts
|
|
@@ -1949,7 +1949,7 @@ ActivityFeed.displayName = "ActivityFeed";
|
|
|
1949
1949
|
var AlertDialogRoot = AlertDialog.Root;
|
|
1950
1950
|
var AlertDialogTrigger = AlertDialog.Trigger;
|
|
1951
1951
|
var AlertDialogPortal = AlertDialog.Portal;
|
|
1952
|
-
var AlertDialogOverlay =
|
|
1952
|
+
var AlertDialogOverlay = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1953
1953
|
AlertDialog.Overlay,
|
|
1954
1954
|
{
|
|
1955
1955
|
ref,
|
|
@@ -1964,7 +1964,7 @@ var AlertDialogOverlay = React16.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1964
1964
|
}
|
|
1965
1965
|
));
|
|
1966
1966
|
AlertDialogOverlay.displayName = "AlertDialogOverlay";
|
|
1967
|
-
var AlertDialogContent =
|
|
1967
|
+
var AlertDialogContent = React17.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(AlertDialog.Portal, { children: [
|
|
1968
1968
|
/* @__PURE__ */ jsx("style", { children: mobileDialogSheetStyle }),
|
|
1969
1969
|
/* @__PURE__ */ jsx(AlertDialogOverlay, {}),
|
|
1970
1970
|
/* @__PURE__ */ jsx(
|
|
@@ -2003,7 +2003,7 @@ function AlertDialogFooter({ className, ...props }) {
|
|
|
2003
2003
|
);
|
|
2004
2004
|
}
|
|
2005
2005
|
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
2006
|
-
var AlertDialogTitle =
|
|
2006
|
+
var AlertDialogTitle = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2007
2007
|
AlertDialog.Title,
|
|
2008
2008
|
{
|
|
2009
2009
|
ref,
|
|
@@ -2012,7 +2012,7 @@ var AlertDialogTitle = React16.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
2012
2012
|
}
|
|
2013
2013
|
));
|
|
2014
2014
|
AlertDialogTitle.displayName = "AlertDialogTitle";
|
|
2015
|
-
var AlertDialogDescription =
|
|
2015
|
+
var AlertDialogDescription = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2016
2016
|
AlertDialog.Description,
|
|
2017
2017
|
{
|
|
2018
2018
|
ref,
|
|
@@ -2021,7 +2021,7 @@ var AlertDialogDescription = React16.forwardRef(({ className, ...props }, ref) =
|
|
|
2021
2021
|
}
|
|
2022
2022
|
));
|
|
2023
2023
|
AlertDialogDescription.displayName = "AlertDialogDescription";
|
|
2024
|
-
var AlertDialogAction =
|
|
2024
|
+
var AlertDialogAction = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2025
2025
|
AlertDialog.Action,
|
|
2026
2026
|
{
|
|
2027
2027
|
ref,
|
|
@@ -2039,7 +2039,7 @@ var AlertDialogAction = React16.forwardRef(({ className, ...props }, ref) => /*
|
|
|
2039
2039
|
}
|
|
2040
2040
|
));
|
|
2041
2041
|
AlertDialogAction.displayName = "AlertDialogAction";
|
|
2042
|
-
var AlertDialogCancel =
|
|
2042
|
+
var AlertDialogCancel = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2043
2043
|
AlertDialog.Cancel,
|
|
2044
2044
|
{
|
|
2045
2045
|
ref,
|
|
@@ -2072,11 +2072,11 @@ var alertVariants = cva(
|
|
|
2072
2072
|
defaultVariants: { variant: "default" }
|
|
2073
2073
|
}
|
|
2074
2074
|
);
|
|
2075
|
-
var Alert =
|
|
2075
|
+
var Alert = React17.forwardRef(
|
|
2076
2076
|
({ className, variant, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, role: "alert", className: cn(alertVariants({ variant }), className), ...props })
|
|
2077
2077
|
);
|
|
2078
2078
|
Alert.displayName = "Alert";
|
|
2079
|
-
var AlertTitle =
|
|
2079
|
+
var AlertTitle = React17.forwardRef(
|
|
2080
2080
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2081
2081
|
"p",
|
|
2082
2082
|
{
|
|
@@ -2087,11 +2087,11 @@ var AlertTitle = React16.forwardRef(
|
|
|
2087
2087
|
)
|
|
2088
2088
|
);
|
|
2089
2089
|
AlertTitle.displayName = "AlertTitle";
|
|
2090
|
-
var AlertDescription =
|
|
2090
|
+
var AlertDescription = React17.forwardRef(
|
|
2091
2091
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx("p", { ref, className: cn("body text-pretty opacity-90", className), ...props })
|
|
2092
2092
|
);
|
|
2093
2093
|
AlertDescription.displayName = "AlertDescription";
|
|
2094
|
-
var AspectRatioRoot =
|
|
2094
|
+
var AspectRatioRoot = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2095
2095
|
AspectRatio.Root,
|
|
2096
2096
|
{
|
|
2097
2097
|
ref,
|
|
@@ -3414,9 +3414,9 @@ var Badge = forwardRef(
|
|
|
3414
3414
|
}
|
|
3415
3415
|
);
|
|
3416
3416
|
Badge.displayName = "Badge";
|
|
3417
|
-
var Breadcrumb =
|
|
3417
|
+
var Breadcrumb = React17.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx("nav", { ref, "aria-label": "breadcrumb", ...props }));
|
|
3418
3418
|
Breadcrumb.displayName = "Breadcrumb";
|
|
3419
|
-
var BreadcrumbList =
|
|
3419
|
+
var BreadcrumbList = React17.forwardRef(
|
|
3420
3420
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3421
3421
|
"ol",
|
|
3422
3422
|
{
|
|
@@ -3427,15 +3427,15 @@ var BreadcrumbList = React16.forwardRef(
|
|
|
3427
3427
|
)
|
|
3428
3428
|
);
|
|
3429
3429
|
BreadcrumbList.displayName = "BreadcrumbList";
|
|
3430
|
-
var BreadcrumbItem =
|
|
3430
|
+
var BreadcrumbItem = React17.forwardRef(
|
|
3431
3431
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx("li", { ref, className: cn("inline-flex items-center gap-1.5", className), ...props })
|
|
3432
3432
|
);
|
|
3433
3433
|
BreadcrumbItem.displayName = "BreadcrumbItem";
|
|
3434
|
-
var BreadcrumbLink =
|
|
3434
|
+
var BreadcrumbLink = React17.forwardRef(
|
|
3435
3435
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx("a", { ref, className: cn("transition-colors hover:text-foreground", className), ...props })
|
|
3436
3436
|
);
|
|
3437
3437
|
BreadcrumbLink.displayName = "BreadcrumbLink";
|
|
3438
|
-
var BreadcrumbPage =
|
|
3438
|
+
var BreadcrumbPage = React17.forwardRef(
|
|
3439
3439
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3440
3440
|
"span",
|
|
3441
3441
|
{
|
|
@@ -3666,7 +3666,7 @@ var cardVariants = cva(["rounded-xl", motionClasses], {
|
|
|
3666
3666
|
variant: "default"
|
|
3667
3667
|
}
|
|
3668
3668
|
});
|
|
3669
|
-
var Card =
|
|
3669
|
+
var Card = React17.forwardRef(
|
|
3670
3670
|
({ className, variant, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3671
3671
|
"div",
|
|
3672
3672
|
{
|
|
@@ -3678,7 +3678,7 @@ var Card = React16.forwardRef(
|
|
|
3678
3678
|
)
|
|
3679
3679
|
);
|
|
3680
3680
|
Card.displayName = "Card";
|
|
3681
|
-
var CardHeader =
|
|
3681
|
+
var CardHeader = React17.forwardRef(
|
|
3682
3682
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3683
3683
|
"div",
|
|
3684
3684
|
{
|
|
@@ -3690,7 +3690,7 @@ var CardHeader = React16.forwardRef(
|
|
|
3690
3690
|
)
|
|
3691
3691
|
);
|
|
3692
3692
|
CardHeader.displayName = "CardHeader";
|
|
3693
|
-
var CardTitle =
|
|
3693
|
+
var CardTitle = React17.forwardRef(
|
|
3694
3694
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3695
3695
|
"h3",
|
|
3696
3696
|
{
|
|
@@ -3702,7 +3702,7 @@ var CardTitle = React16.forwardRef(
|
|
|
3702
3702
|
)
|
|
3703
3703
|
);
|
|
3704
3704
|
CardTitle.displayName = "CardTitle";
|
|
3705
|
-
var CardDescription =
|
|
3705
|
+
var CardDescription = React17.forwardRef(
|
|
3706
3706
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3707
3707
|
"p",
|
|
3708
3708
|
{
|
|
@@ -3714,11 +3714,11 @@ var CardDescription = React16.forwardRef(
|
|
|
3714
3714
|
)
|
|
3715
3715
|
);
|
|
3716
3716
|
CardDescription.displayName = "CardDescription";
|
|
3717
|
-
var CardContent =
|
|
3717
|
+
var CardContent = React17.forwardRef(
|
|
3718
3718
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, "data-slot": "card-content", className: cn("p-5 pt-0", className), ...props })
|
|
3719
3719
|
);
|
|
3720
3720
|
CardContent.displayName = "CardContent";
|
|
3721
|
-
var CardFooter =
|
|
3721
|
+
var CardFooter = React17.forwardRef(
|
|
3722
3722
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3723
3723
|
"div",
|
|
3724
3724
|
{
|
|
@@ -3730,7 +3730,7 @@ var CardFooter = React16.forwardRef(
|
|
|
3730
3730
|
)
|
|
3731
3731
|
);
|
|
3732
3732
|
CardFooter.displayName = "CardFooter";
|
|
3733
|
-
var CardAction =
|
|
3733
|
+
var CardAction = React17.forwardRef(
|
|
3734
3734
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3735
3735
|
"div",
|
|
3736
3736
|
{
|
|
@@ -3742,7 +3742,7 @@ var CardAction = React16.forwardRef(
|
|
|
3742
3742
|
)
|
|
3743
3743
|
);
|
|
3744
3744
|
CardAction.displayName = "CardAction";
|
|
3745
|
-
var CardMedia =
|
|
3745
|
+
var CardMedia = React17.forwardRef(
|
|
3746
3746
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3747
3747
|
"div",
|
|
3748
3748
|
{
|
|
@@ -3754,9 +3754,9 @@ var CardMedia = React16.forwardRef(
|
|
|
3754
3754
|
)
|
|
3755
3755
|
);
|
|
3756
3756
|
CardMedia.displayName = "CardMedia";
|
|
3757
|
-
var CarouselContext =
|
|
3757
|
+
var CarouselContext = React17.createContext(null);
|
|
3758
3758
|
function useCarousel() {
|
|
3759
|
-
const context =
|
|
3759
|
+
const context = React17.useContext(CarouselContext);
|
|
3760
3760
|
if (!context) throw new Error("useCarousel must be used within a <Carousel />");
|
|
3761
3761
|
return context;
|
|
3762
3762
|
}
|
|
@@ -3776,20 +3776,20 @@ function Carousel({
|
|
|
3776
3776
|
},
|
|
3777
3777
|
plugins
|
|
3778
3778
|
);
|
|
3779
|
-
const [canScrollPrev, setCanScrollPrev] =
|
|
3780
|
-
const [canScrollNext, setCanScrollNext] =
|
|
3781
|
-
const onSelect =
|
|
3779
|
+
const [canScrollPrev, setCanScrollPrev] = React17.useState(false);
|
|
3780
|
+
const [canScrollNext, setCanScrollNext] = React17.useState(false);
|
|
3781
|
+
const onSelect = React17.useCallback((api) => {
|
|
3782
3782
|
if (!api) return;
|
|
3783
3783
|
setCanScrollPrev(api.canScrollPrev());
|
|
3784
3784
|
setCanScrollNext(api.canScrollNext());
|
|
3785
3785
|
}, []);
|
|
3786
|
-
const scrollPrev =
|
|
3786
|
+
const scrollPrev = React17.useCallback(() => {
|
|
3787
3787
|
emblaApi?.scrollPrev();
|
|
3788
3788
|
}, [emblaApi]);
|
|
3789
|
-
const scrollNext =
|
|
3789
|
+
const scrollNext = React17.useCallback(() => {
|
|
3790
3790
|
emblaApi?.scrollNext();
|
|
3791
3791
|
}, [emblaApi]);
|
|
3792
|
-
const handleKeyDown =
|
|
3792
|
+
const handleKeyDown = React17.useCallback(
|
|
3793
3793
|
(event) => {
|
|
3794
3794
|
if (event.key === "ArrowLeft") {
|
|
3795
3795
|
event.preventDefault();
|
|
@@ -3801,7 +3801,7 @@ function Carousel({
|
|
|
3801
3801
|
},
|
|
3802
3802
|
[scrollPrev, scrollNext]
|
|
3803
3803
|
);
|
|
3804
|
-
|
|
3804
|
+
React17.useEffect(() => {
|
|
3805
3805
|
if (!emblaApi) return;
|
|
3806
3806
|
onSelect(emblaApi);
|
|
3807
3807
|
emblaApi.on("reInit", onSelect);
|
|
@@ -3811,7 +3811,7 @@ function Carousel({
|
|
|
3811
3811
|
emblaApi.off("select", onSelect);
|
|
3812
3812
|
};
|
|
3813
3813
|
}, [emblaApi, onSelect]);
|
|
3814
|
-
|
|
3814
|
+
React17.useEffect(() => {
|
|
3815
3815
|
if (!emblaApi || !setApi) return;
|
|
3816
3816
|
setApi(emblaApi);
|
|
3817
3817
|
}, [emblaApi, setApi]);
|
|
@@ -3931,9 +3931,9 @@ var CHART_COLORS = {
|
|
|
3931
3931
|
dark: tokens.semantic.light.foreground
|
|
3932
3932
|
};
|
|
3933
3933
|
var THEMES = { light: "", dark: ".dark" };
|
|
3934
|
-
var ChartContext =
|
|
3934
|
+
var ChartContext = React17.createContext(null);
|
|
3935
3935
|
function useChart() {
|
|
3936
|
-
const context =
|
|
3936
|
+
const context = React17.useContext(ChartContext);
|
|
3937
3937
|
if (!context) {
|
|
3938
3938
|
throw new Error("useChart must be used within a <ChartContainer />");
|
|
3939
3939
|
}
|
|
@@ -3948,16 +3948,16 @@ function ChartContainer({
|
|
|
3948
3948
|
style,
|
|
3949
3949
|
...props
|
|
3950
3950
|
}) {
|
|
3951
|
-
const uniqueId =
|
|
3951
|
+
const uniqueId = React17.useId();
|
|
3952
3952
|
const chartId = `chart-${id || uniqueId.replace(/:/g, "")}`;
|
|
3953
|
-
const containerRef =
|
|
3954
|
-
const [canRenderChart, setCanRenderChart] =
|
|
3955
|
-
const initialDimension =
|
|
3953
|
+
const containerRef = React17.useRef(null);
|
|
3954
|
+
const [canRenderChart, setCanRenderChart] = React17.useState(false);
|
|
3955
|
+
const initialDimension = React17.useMemo(
|
|
3956
3956
|
() => ({ width: 800, height: typeof height === "number" ? height : 450 }),
|
|
3957
3957
|
[height]
|
|
3958
3958
|
);
|
|
3959
3959
|
const resolvedStyle = height === void 0 ? style : { ...style, height };
|
|
3960
|
-
|
|
3960
|
+
React17.useEffect(() => {
|
|
3961
3961
|
const element = containerRef.current;
|
|
3962
3962
|
if (!element) {
|
|
3963
3963
|
return;
|
|
@@ -4067,9 +4067,9 @@ function ChartTooltipContent({
|
|
|
4067
4067
|
nameKey,
|
|
4068
4068
|
labelKey
|
|
4069
4069
|
}) {
|
|
4070
|
-
const chartContext =
|
|
4070
|
+
const chartContext = React17.useContext(ChartContext);
|
|
4071
4071
|
const config = chartContext?.config ?? {};
|
|
4072
|
-
const tooltipLabel =
|
|
4072
|
+
const tooltipLabel = React17.useMemo(() => {
|
|
4073
4073
|
if (hideLabel || !payload?.length) {
|
|
4074
4074
|
return null;
|
|
4075
4075
|
}
|
|
@@ -4406,7 +4406,7 @@ var ChatMessage = forwardRef(
|
|
|
4406
4406
|
}
|
|
4407
4407
|
);
|
|
4408
4408
|
ChatMessage.displayName = "ChatMessage";
|
|
4409
|
-
var CheckboxRoot =
|
|
4409
|
+
var CheckboxRoot = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
4410
4410
|
Checkbox.Root,
|
|
4411
4411
|
{
|
|
4412
4412
|
ref,
|
|
@@ -4426,6 +4426,40 @@ var CheckboxRoot = React16.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
4426
4426
|
}
|
|
4427
4427
|
));
|
|
4428
4428
|
CheckboxRoot.displayName = "Checkbox";
|
|
4429
|
+
var CheckboxCard = React17.forwardRef(
|
|
4430
|
+
({ checked, disabled, label, description, onCheckedChange, className, children, ...props }, ref) => {
|
|
4431
|
+
const checkboxProps = {
|
|
4432
|
+
...checked !== void 0 ? { checked } : {},
|
|
4433
|
+
...disabled !== void 0 ? { disabled } : {},
|
|
4434
|
+
...onCheckedChange ? { onCheckedChange } : {}
|
|
4435
|
+
};
|
|
4436
|
+
return /* @__PURE__ */ jsxs(
|
|
4437
|
+
"label",
|
|
4438
|
+
{
|
|
4439
|
+
ref,
|
|
4440
|
+
"aria-disabled": disabled || void 0,
|
|
4441
|
+
className: cn(
|
|
4442
|
+
"group flex min-w-0 items-start gap-3 rounded-lg border border-border bg-card p-3",
|
|
4443
|
+
"text-sm text-foreground shadow-natural transition-[background-color,border-color,box-shadow,opacity,scale]",
|
|
4444
|
+
"hover:bg-muted/40 active:scale-[0.98]",
|
|
4445
|
+
"has-[:focus-visible]:ring-1 has-[:focus-visible]:ring-[#6B97FF]",
|
|
4446
|
+
"has-[:disabled]:cursor-not-allowed has-[:disabled]:opacity-50",
|
|
4447
|
+
className
|
|
4448
|
+
),
|
|
4449
|
+
...props,
|
|
4450
|
+
children: [
|
|
4451
|
+
/* @__PURE__ */ jsx(CheckboxRoot, { ...checkboxProps, className: "mt-0.5" }),
|
|
4452
|
+
/* @__PURE__ */ jsxs("span", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
|
|
4453
|
+
/* @__PURE__ */ jsx("span", { className: "font-medium leading-5 text-foreground", children: label }),
|
|
4454
|
+
description ? /* @__PURE__ */ jsx("span", { className: "text-[12px] leading-4 text-muted-foreground", children: description }) : null,
|
|
4455
|
+
children
|
|
4456
|
+
] })
|
|
4457
|
+
]
|
|
4458
|
+
}
|
|
4459
|
+
);
|
|
4460
|
+
}
|
|
4461
|
+
);
|
|
4462
|
+
CheckboxCard.displayName = "CheckboxCard";
|
|
4429
4463
|
var CheckboxGroupContext = createContext(null);
|
|
4430
4464
|
function useCheckboxGroup() {
|
|
4431
4465
|
const ctx = useContext(CheckboxGroupContext);
|
|
@@ -7966,8 +8000,8 @@ function ColorInput2({
|
|
|
7966
8000
|
presets
|
|
7967
8001
|
}) {
|
|
7968
8002
|
const shape3 = useShape();
|
|
7969
|
-
const [hex, setHex] =
|
|
7970
|
-
|
|
8003
|
+
const [hex, setHex] = React17.useState(value);
|
|
8004
|
+
React17.useEffect(() => {
|
|
7971
8005
|
setHex(value);
|
|
7972
8006
|
}, [value]);
|
|
7973
8007
|
const commitHex = (next) => {
|
|
@@ -8040,20 +8074,20 @@ function Combobox({
|
|
|
8040
8074
|
className
|
|
8041
8075
|
}) {
|
|
8042
8076
|
const shape3 = useShape();
|
|
8043
|
-
const [open, setOpen] =
|
|
8044
|
-
const [query, setQuery] =
|
|
8045
|
-
const [activeIndex, setActiveIndex] =
|
|
8046
|
-
const containerRef =
|
|
8047
|
-
const inputRef =
|
|
8048
|
-
const listboxId =
|
|
8077
|
+
const [open, setOpen] = React17.useState(false);
|
|
8078
|
+
const [query, setQuery] = React17.useState("");
|
|
8079
|
+
const [activeIndex, setActiveIndex] = React17.useState(-1);
|
|
8080
|
+
const containerRef = React17.useRef(null);
|
|
8081
|
+
const inputRef = React17.useRef(null);
|
|
8082
|
+
const listboxId = React17.useId();
|
|
8049
8083
|
const selectedOption = options.find((o) => o.value === value);
|
|
8050
8084
|
const filtered = query === "" ? options : options.filter(
|
|
8051
8085
|
(o) => o.label.toLowerCase().includes(query.toLowerCase()) || o.description?.toLowerCase().includes(query.toLowerCase())
|
|
8052
8086
|
);
|
|
8053
|
-
|
|
8087
|
+
React17.useEffect(() => {
|
|
8054
8088
|
setActiveIndex(-1);
|
|
8055
8089
|
}, [filtered.length, open]);
|
|
8056
|
-
|
|
8090
|
+
React17.useEffect(() => {
|
|
8057
8091
|
function onMouseDown(e) {
|
|
8058
8092
|
if (containerRef.current && !containerRef.current.contains(e.target)) {
|
|
8059
8093
|
setOpen(false);
|
|
@@ -8373,9 +8407,9 @@ function CommandPalette({
|
|
|
8373
8407
|
placeholder = "Search...",
|
|
8374
8408
|
emptyText = "No results found."
|
|
8375
8409
|
}) {
|
|
8376
|
-
const [query, setQuery] =
|
|
8377
|
-
const inputRef =
|
|
8378
|
-
|
|
8410
|
+
const [query, setQuery] = React17.useState("");
|
|
8411
|
+
const inputRef = React17.useRef(null);
|
|
8412
|
+
React17.useEffect(() => {
|
|
8379
8413
|
if (open) {
|
|
8380
8414
|
setTimeout(() => inputRef.current?.focus(), 50);
|
|
8381
8415
|
setQuery("");
|
|
@@ -8442,19 +8476,19 @@ function CommandPalette({
|
|
|
8442
8476
|
] }) });
|
|
8443
8477
|
}
|
|
8444
8478
|
CommandPalette.displayName = "CommandPalette";
|
|
8445
|
-
var CommandCtx =
|
|
8479
|
+
var CommandCtx = React17.createContext({
|
|
8446
8480
|
query: "",
|
|
8447
8481
|
setQuery: () => {
|
|
8448
8482
|
},
|
|
8449
8483
|
reportVisible: () => {
|
|
8450
8484
|
}
|
|
8451
8485
|
});
|
|
8452
|
-
var CommandVisibleCtx =
|
|
8486
|
+
var CommandVisibleCtx = React17.createContext(0);
|
|
8453
8487
|
function Command({ className, children, onSelect, ...props }) {
|
|
8454
|
-
const [query, setQuery] =
|
|
8455
|
-
const visibleIds =
|
|
8456
|
-
const [visibleCount, setVisibleCount] =
|
|
8457
|
-
const reportVisible =
|
|
8488
|
+
const [query, setQuery] = React17.useState("");
|
|
8489
|
+
const visibleIds = React17.useRef(/* @__PURE__ */ new Set());
|
|
8490
|
+
const [visibleCount, setVisibleCount] = React17.useState(0);
|
|
8491
|
+
const reportVisible = React17.useCallback((id, visible) => {
|
|
8458
8492
|
const had = visibleIds.current.has(id);
|
|
8459
8493
|
if (visible && !had) {
|
|
8460
8494
|
visibleIds.current.add(id);
|
|
@@ -8482,8 +8516,8 @@ function Command({ className, children, onSelect, ...props }) {
|
|
|
8482
8516
|
}
|
|
8483
8517
|
);
|
|
8484
8518
|
}
|
|
8485
|
-
var CommandInput =
|
|
8486
|
-
const { query, setQuery } =
|
|
8519
|
+
var CommandInput = React17.forwardRef(({ className, ...props }, ref) => {
|
|
8520
|
+
const { query, setQuery } = React17.useContext(CommandCtx);
|
|
8487
8521
|
return /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 border-b border-border px-3", children: [
|
|
8488
8522
|
/* @__PURE__ */ jsx(Search, { size: 14, className: "shrink-0 text-muted-foreground" }),
|
|
8489
8523
|
/* @__PURE__ */ jsx(
|
|
@@ -8507,10 +8541,10 @@ var CommandInput = React16.forwardRef(({ className, ...props }, ref) => {
|
|
|
8507
8541
|
] });
|
|
8508
8542
|
});
|
|
8509
8543
|
CommandInput.displayName = "CommandInput";
|
|
8510
|
-
var CommandList =
|
|
8544
|
+
var CommandList = React17.forwardRef(
|
|
8511
8545
|
({ className, ...props }, ref) => {
|
|
8512
|
-
const listRef =
|
|
8513
|
-
const combinedRef =
|
|
8546
|
+
const listRef = React17.useRef(null);
|
|
8547
|
+
const combinedRef = React17.useCallback(
|
|
8514
8548
|
(el) => {
|
|
8515
8549
|
listRef.current = el;
|
|
8516
8550
|
if (typeof ref === "function") ref(el);
|
|
@@ -8545,9 +8579,9 @@ var CommandList = React16.forwardRef(
|
|
|
8545
8579
|
}
|
|
8546
8580
|
);
|
|
8547
8581
|
CommandList.displayName = "CommandList";
|
|
8548
|
-
var CommandEmpty =
|
|
8582
|
+
var CommandEmpty = React17.forwardRef(
|
|
8549
8583
|
({ className, children = "No results found.", ...props }, ref) => {
|
|
8550
|
-
const visibleCount =
|
|
8584
|
+
const visibleCount = React17.useContext(CommandVisibleCtx);
|
|
8551
8585
|
if (visibleCount > 0) return null;
|
|
8552
8586
|
return /* @__PURE__ */ jsx(
|
|
8553
8587
|
"div",
|
|
@@ -8561,20 +8595,20 @@ var CommandEmpty = React16.forwardRef(
|
|
|
8561
8595
|
}
|
|
8562
8596
|
);
|
|
8563
8597
|
CommandEmpty.displayName = "CommandEmpty";
|
|
8564
|
-
var CommandGroup =
|
|
8598
|
+
var CommandGroup = React17.forwardRef(
|
|
8565
8599
|
({ className, heading, children, ...props }, ref) => /* @__PURE__ */ jsxs("div", { ref, role: "group", className: cn("py-1", className), ...props, children: [
|
|
8566
8600
|
heading && /* @__PURE__ */ jsx("p", { className: "px-3 pb-1 pt-0.5 label text-muted-foreground", children: heading }),
|
|
8567
8601
|
children
|
|
8568
8602
|
] })
|
|
8569
8603
|
);
|
|
8570
8604
|
CommandGroup.displayName = "CommandGroup";
|
|
8571
|
-
var CommandItem =
|
|
8605
|
+
var CommandItem = React17.forwardRef(
|
|
8572
8606
|
({ className, value = "", keywords, disabled, onSelect, children, ...props }, ref) => {
|
|
8573
|
-
const { query, onSelect: ctxOnSelect, reportVisible } =
|
|
8574
|
-
const id =
|
|
8607
|
+
const { query, onSelect: ctxOnSelect, reportVisible } = React17.useContext(CommandCtx);
|
|
8608
|
+
const id = React17.useId();
|
|
8575
8609
|
const searchText = (keywords ?? [value]).join(" ").toLowerCase();
|
|
8576
8610
|
const isVisible = !query || searchText.includes(query.toLowerCase());
|
|
8577
|
-
|
|
8611
|
+
React17.useLayoutEffect(() => {
|
|
8578
8612
|
reportVisible(id, isVisible && !disabled);
|
|
8579
8613
|
return () => reportVisible(id, false);
|
|
8580
8614
|
}, [id, isVisible, disabled, reportVisible]);
|
|
@@ -8615,7 +8649,7 @@ var CommandItem = React16.forwardRef(
|
|
|
8615
8649
|
}
|
|
8616
8650
|
);
|
|
8617
8651
|
CommandItem.displayName = "CommandItem";
|
|
8618
|
-
var CommandSeparator =
|
|
8652
|
+
var CommandSeparator = React17.forwardRef(
|
|
8619
8653
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("my-1 h-px bg-muted", className), ...props })
|
|
8620
8654
|
);
|
|
8621
8655
|
CommandSeparator.displayName = "CommandSeparator";
|
|
@@ -8652,7 +8686,7 @@ var ContextMenuGroup = ContextMenu.Group;
|
|
|
8652
8686
|
var ContextMenuPortal = ContextMenu.Portal;
|
|
8653
8687
|
var ContextMenuSub = ContextMenu.Sub;
|
|
8654
8688
|
var ContextMenuRadioGroup = ContextMenu.RadioGroup;
|
|
8655
|
-
var ContextMenuContent =
|
|
8689
|
+
var ContextMenuContent = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
8656
8690
|
/* @__PURE__ */ jsx("style", { children: mobilePopperSheetStyle }),
|
|
8657
8691
|
/* @__PURE__ */ jsx(ContextMenu.Portal, { children: /* @__PURE__ */ jsx(
|
|
8658
8692
|
ContextMenu.Content,
|
|
@@ -8677,7 +8711,7 @@ var ContextMenuContent = React16.forwardRef(({ className, ...props }, ref) => /*
|
|
|
8677
8711
|
) })
|
|
8678
8712
|
] }));
|
|
8679
8713
|
ContextMenuContent.displayName = "ContextMenuContent";
|
|
8680
|
-
var ContextMenuItem =
|
|
8714
|
+
var ContextMenuItem = React17.forwardRef(({ className, inset, destructive, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
8681
8715
|
ContextMenu.Item,
|
|
8682
8716
|
{
|
|
8683
8717
|
ref,
|
|
@@ -8693,7 +8727,7 @@ var ContextMenuItem = React16.forwardRef(({ className, inset, destructive, ...pr
|
|
|
8693
8727
|
}
|
|
8694
8728
|
));
|
|
8695
8729
|
ContextMenuItem.displayName = "ContextMenuItem";
|
|
8696
|
-
var ContextMenuCheckboxItem =
|
|
8730
|
+
var ContextMenuCheckboxItem = React17.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
8697
8731
|
ContextMenu.CheckboxItem,
|
|
8698
8732
|
{
|
|
8699
8733
|
ref,
|
|
@@ -8712,7 +8746,7 @@ var ContextMenuCheckboxItem = React16.forwardRef(({ className, children, ...prop
|
|
|
8712
8746
|
}
|
|
8713
8747
|
));
|
|
8714
8748
|
ContextMenuCheckboxItem.displayName = "ContextMenuCheckboxItem";
|
|
8715
|
-
var ContextMenuRadioItem =
|
|
8749
|
+
var ContextMenuRadioItem = React17.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
8716
8750
|
ContextMenu.RadioItem,
|
|
8717
8751
|
{
|
|
8718
8752
|
ref,
|
|
@@ -8731,7 +8765,7 @@ var ContextMenuRadioItem = React16.forwardRef(({ className, children, ...props }
|
|
|
8731
8765
|
}
|
|
8732
8766
|
));
|
|
8733
8767
|
ContextMenuRadioItem.displayName = "ContextMenuRadioItem";
|
|
8734
|
-
var ContextMenuLabel =
|
|
8768
|
+
var ContextMenuLabel = React17.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
8735
8769
|
ContextMenu.Label,
|
|
8736
8770
|
{
|
|
8737
8771
|
ref,
|
|
@@ -8740,7 +8774,7 @@ var ContextMenuLabel = React16.forwardRef(({ className, inset, ...props }, ref)
|
|
|
8740
8774
|
}
|
|
8741
8775
|
));
|
|
8742
8776
|
ContextMenuLabel.displayName = "ContextMenuLabel";
|
|
8743
|
-
var ContextMenuSeparator =
|
|
8777
|
+
var ContextMenuSeparator = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
8744
8778
|
ContextMenu.Separator,
|
|
8745
8779
|
{
|
|
8746
8780
|
ref,
|
|
@@ -8749,7 +8783,7 @@ var ContextMenuSeparator = React16.forwardRef(({ className, ...props }, ref) =>
|
|
|
8749
8783
|
}
|
|
8750
8784
|
));
|
|
8751
8785
|
ContextMenuSeparator.displayName = "ContextMenuSeparator";
|
|
8752
|
-
var ContextMenuSubTrigger =
|
|
8786
|
+
var ContextMenuSubTrigger = React17.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
8753
8787
|
ContextMenu.SubTrigger,
|
|
8754
8788
|
{
|
|
8755
8789
|
ref,
|
|
@@ -8768,7 +8802,7 @@ var ContextMenuSubTrigger = React16.forwardRef(({ className, inset, children, ..
|
|
|
8768
8802
|
}
|
|
8769
8803
|
));
|
|
8770
8804
|
ContextMenuSubTrigger.displayName = "ContextMenuSubTrigger";
|
|
8771
|
-
var ContextMenuSubContent =
|
|
8805
|
+
var ContextMenuSubContent = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
8772
8806
|
/* @__PURE__ */ jsx("style", { children: mobilePopperSheetStyle }),
|
|
8773
8807
|
/* @__PURE__ */ jsx(
|
|
8774
8808
|
ContextMenu.SubContent,
|
|
@@ -8965,8 +8999,8 @@ function DataTable({
|
|
|
8965
8999
|
pageSize = 10,
|
|
8966
9000
|
showPagination = true
|
|
8967
9001
|
}) {
|
|
8968
|
-
const [sorting, setSorting] =
|
|
8969
|
-
const [columnFilters, setColumnFilters] =
|
|
9002
|
+
const [sorting, setSorting] = React17.useState([]);
|
|
9003
|
+
const [columnFilters, setColumnFilters] = React17.useState([]);
|
|
8970
9004
|
const table = useReactTable({
|
|
8971
9005
|
data,
|
|
8972
9006
|
columns,
|
|
@@ -9819,7 +9853,7 @@ DataTransferControls.displayName = "DataTransferControls";
|
|
|
9819
9853
|
var PopoverRoot = Popover.Root;
|
|
9820
9854
|
var PopoverTrigger = Popover.Trigger;
|
|
9821
9855
|
var PopoverClose = Popover.Close;
|
|
9822
|
-
var PopoverContent =
|
|
9856
|
+
var PopoverContent = React17.forwardRef(({ className, align = "center", sideOffset = 6, ...props }, ref) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
9823
9857
|
/* @__PURE__ */ jsx("style", { children: mobilePopperSheetStyle }),
|
|
9824
9858
|
/* @__PURE__ */ jsx(Popover.Portal, { children: /* @__PURE__ */ jsx(
|
|
9825
9859
|
Popover.Content,
|
|
@@ -9927,7 +9961,7 @@ var DrawerRoot = Drawer.Root;
|
|
|
9927
9961
|
var DrawerTrigger = Drawer.Trigger;
|
|
9928
9962
|
var DrawerPortal = Drawer.Portal;
|
|
9929
9963
|
var DrawerClose = Drawer.Close;
|
|
9930
|
-
var DrawerOverlay =
|
|
9964
|
+
var DrawerOverlay = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
9931
9965
|
Drawer.Overlay,
|
|
9932
9966
|
{
|
|
9933
9967
|
ref,
|
|
@@ -9936,7 +9970,7 @@ var DrawerOverlay = React16.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
9936
9970
|
}
|
|
9937
9971
|
));
|
|
9938
9972
|
DrawerOverlay.displayName = "DrawerOverlay";
|
|
9939
|
-
var DrawerContent =
|
|
9973
|
+
var DrawerContent = React17.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(DrawerPortal, { children: [
|
|
9940
9974
|
/* @__PURE__ */ jsx(DrawerOverlay, {}),
|
|
9941
9975
|
/* @__PURE__ */ jsxs(
|
|
9942
9976
|
Drawer.Content,
|
|
@@ -9959,7 +9993,7 @@ var DrawerHeader = ({ className, ...props }) => /* @__PURE__ */ jsx("div", { cla
|
|
|
9959
9993
|
DrawerHeader.displayName = "DrawerHeader";
|
|
9960
9994
|
var DrawerFooter = ({ className, ...props }) => /* @__PURE__ */ jsx("div", { className: cn("mt-auto flex flex-col gap-2 px-6 pb-6", className), ...props });
|
|
9961
9995
|
DrawerFooter.displayName = "DrawerFooter";
|
|
9962
|
-
var DrawerTitle =
|
|
9996
|
+
var DrawerTitle = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
9963
9997
|
Drawer.Title,
|
|
9964
9998
|
{
|
|
9965
9999
|
ref,
|
|
@@ -9968,7 +10002,7 @@ var DrawerTitle = React16.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
9968
10002
|
}
|
|
9969
10003
|
));
|
|
9970
10004
|
DrawerTitle.displayName = "DrawerTitle";
|
|
9971
|
-
var DrawerDescription =
|
|
10005
|
+
var DrawerDescription = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
9972
10006
|
Drawer.Description,
|
|
9973
10007
|
{
|
|
9974
10008
|
ref,
|
|
@@ -9988,7 +10022,7 @@ function EmptyState({ icon, title, description, action, className }) {
|
|
|
9988
10022
|
] });
|
|
9989
10023
|
}
|
|
9990
10024
|
EmptyState.displayName = "EmptyState";
|
|
9991
|
-
var Label =
|
|
10025
|
+
var Label = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
9992
10026
|
Label$1.Root,
|
|
9993
10027
|
{
|
|
9994
10028
|
ref,
|
|
@@ -10089,12 +10123,12 @@ function FileDropzone({
|
|
|
10089
10123
|
onClick,
|
|
10090
10124
|
...props
|
|
10091
10125
|
}) {
|
|
10092
|
-
const [isDragging, setIsDragging] =
|
|
10093
|
-
const inputId =
|
|
10126
|
+
const [isDragging, setIsDragging] = React17.useState(false);
|
|
10127
|
+
const inputId = React17.useId();
|
|
10094
10128
|
const resolvedId = id ?? inputId;
|
|
10095
10129
|
const fileSummary = getFileSummary(selectedFiles ?? []);
|
|
10096
10130
|
const isUnavailable = Boolean(disabled || loading);
|
|
10097
|
-
const emitFiles =
|
|
10131
|
+
const emitFiles = React17.useCallback(
|
|
10098
10132
|
(fileList) => {
|
|
10099
10133
|
if (!fileList || isUnavailable) return;
|
|
10100
10134
|
onFilesSelected?.(Array.from(fileList));
|
|
@@ -10293,11 +10327,11 @@ function HelpTooltip({
|
|
|
10293
10327
|
className,
|
|
10294
10328
|
contentClassName
|
|
10295
10329
|
}) {
|
|
10296
|
-
const [open, setOpen] =
|
|
10297
|
-
const rootRef =
|
|
10330
|
+
const [open, setOpen] = React17.useState(false);
|
|
10331
|
+
const rootRef = React17.useRef(null);
|
|
10298
10332
|
const url = learnMoreUrl ?? learnMoreURL;
|
|
10299
10333
|
const body = text.length > 120 ? `${text.slice(0, 117)}...` : text;
|
|
10300
|
-
|
|
10334
|
+
React17.useEffect(() => {
|
|
10301
10335
|
if (!open) return;
|
|
10302
10336
|
const onPointerDown = (event) => {
|
|
10303
10337
|
if (!rootRef.current?.contains(event.target)) {
|
|
@@ -10352,7 +10386,7 @@ function HelpTooltip({
|
|
|
10352
10386
|
HelpTooltip.displayName = "HelpTooltip";
|
|
10353
10387
|
var HoverCardRoot = HoverCard.Root;
|
|
10354
10388
|
var HoverCardTrigger = HoverCard.Trigger;
|
|
10355
|
-
var HoverCardContent =
|
|
10389
|
+
var HoverCardContent = React17.forwardRef(({ className, align = "center", sideOffset = 6, ...props }, ref) => /* @__PURE__ */ jsx(HoverCard.Portal, { children: /* @__PURE__ */ jsx(
|
|
10356
10390
|
HoverCard.Content,
|
|
10357
10391
|
{
|
|
10358
10392
|
ref,
|
|
@@ -11455,7 +11489,7 @@ var InputMessage = forwardRef(
|
|
|
11455
11489
|
}
|
|
11456
11490
|
);
|
|
11457
11491
|
InputMessage.displayName = "InputMessage";
|
|
11458
|
-
var InputNumber =
|
|
11492
|
+
var InputNumber = React17.forwardRef(
|
|
11459
11493
|
({
|
|
11460
11494
|
value,
|
|
11461
11495
|
onChange,
|
|
@@ -11475,16 +11509,16 @@ var InputNumber = React16.forwardRef(
|
|
|
11475
11509
|
...rest
|
|
11476
11510
|
}, ref) => {
|
|
11477
11511
|
const shape3 = useShape();
|
|
11478
|
-
const formatValue =
|
|
11512
|
+
const formatValue = React17.useCallback(
|
|
11479
11513
|
(next) => next === null ? mixedLabel : next.toFixed(precision),
|
|
11480
11514
|
[mixedLabel, precision]
|
|
11481
11515
|
);
|
|
11482
|
-
const [text, setText] =
|
|
11483
|
-
|
|
11516
|
+
const [text, setText] = React17.useState(formatValue(value));
|
|
11517
|
+
React17.useEffect(() => {
|
|
11484
11518
|
setText(formatValue(value));
|
|
11485
11519
|
}, [formatValue, value]);
|
|
11486
|
-
const clamp =
|
|
11487
|
-
const parseAndClamp =
|
|
11520
|
+
const clamp = React17.useCallback((n) => Math.min(max, Math.max(min, n)), [min, max]);
|
|
11521
|
+
const parseAndClamp = React17.useCallback(
|
|
11488
11522
|
(raw) => {
|
|
11489
11523
|
const n = parseFloat(raw);
|
|
11490
11524
|
if (Number.isFinite(n)) {
|
|
@@ -11604,7 +11638,7 @@ var InputNumber = React16.forwardRef(
|
|
|
11604
11638
|
}
|
|
11605
11639
|
);
|
|
11606
11640
|
InputNumber.displayName = "InputNumber";
|
|
11607
|
-
var InputOTP =
|
|
11641
|
+
var InputOTP = React17.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
11608
11642
|
OTPInput,
|
|
11609
11643
|
{
|
|
11610
11644
|
ref,
|
|
@@ -11614,12 +11648,12 @@ var InputOTP = React16.forwardRef(({ className, containerClassName, ...props },
|
|
|
11614
11648
|
}
|
|
11615
11649
|
));
|
|
11616
11650
|
InputOTP.displayName = "InputOTP";
|
|
11617
|
-
var InputOTPGroup =
|
|
11651
|
+
var InputOTPGroup = React17.forwardRef(
|
|
11618
11652
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("flex items-center", className), ...props })
|
|
11619
11653
|
);
|
|
11620
11654
|
InputOTPGroup.displayName = "InputOTPGroup";
|
|
11621
|
-
var InputOTPSlot =
|
|
11622
|
-
const inputOTPContext =
|
|
11655
|
+
var InputOTPSlot = React17.forwardRef(({ index, className, ...props }, ref) => {
|
|
11656
|
+
const inputOTPContext = React17.useContext(OTPInputContext);
|
|
11623
11657
|
const { char, hasFakeCaret, isActive } = inputOTPContext?.slots[index] ?? {};
|
|
11624
11658
|
return /* @__PURE__ */ jsxs(
|
|
11625
11659
|
"div",
|
|
@@ -11642,11 +11676,11 @@ var InputOTPSlot = React16.forwardRef(({ index, className, ...props }, ref) => {
|
|
|
11642
11676
|
);
|
|
11643
11677
|
});
|
|
11644
11678
|
InputOTPSlot.displayName = "InputOTPSlot";
|
|
11645
|
-
var InputOTPSeparator =
|
|
11679
|
+
var InputOTPSeparator = React17.forwardRef(
|
|
11646
11680
|
({ ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, role: "separator", ...props, children: /* @__PURE__ */ jsx(Minus, { size: 14, className: "text-muted-foreground" }) })
|
|
11647
11681
|
);
|
|
11648
11682
|
InputOTPSeparator.displayName = "InputOTPSeparator";
|
|
11649
|
-
var Kbd =
|
|
11683
|
+
var Kbd = React17.forwardRef(
|
|
11650
11684
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
11651
11685
|
"kbd",
|
|
11652
11686
|
{
|
|
@@ -11932,7 +11966,7 @@ var MenuItem = forwardRef(
|
|
|
11932
11966
|
}
|
|
11933
11967
|
);
|
|
11934
11968
|
MenuItem.displayName = "MenuItem";
|
|
11935
|
-
var MenubarRoot =
|
|
11969
|
+
var MenubarRoot = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
11936
11970
|
Menubar.Root,
|
|
11937
11971
|
{
|
|
11938
11972
|
ref,
|
|
@@ -11948,7 +11982,7 @@ var MenubarMenu = Menubar.Menu;
|
|
|
11948
11982
|
var MenubarGroup = Menubar.Group;
|
|
11949
11983
|
var MenubarSub = Menubar.Sub;
|
|
11950
11984
|
var MenubarRadioGroup = Menubar.RadioGroup;
|
|
11951
|
-
var MenubarTrigger =
|
|
11985
|
+
var MenubarTrigger = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
11952
11986
|
Menubar.Trigger,
|
|
11953
11987
|
{
|
|
11954
11988
|
ref,
|
|
@@ -11963,7 +11997,7 @@ var MenubarTrigger = React16.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
11963
11997
|
}
|
|
11964
11998
|
));
|
|
11965
11999
|
MenubarTrigger.displayName = "MenubarTrigger";
|
|
11966
|
-
var MenubarContent =
|
|
12000
|
+
var MenubarContent = React17.forwardRef(({ className, align = "start", alignOffset = -4, sideOffset = 8, ...props }, ref) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
11967
12001
|
/* @__PURE__ */ jsx("style", { children: mobilePopperSheetStyle }),
|
|
11968
12002
|
/* @__PURE__ */ jsx(Menubar.Portal, { children: /* @__PURE__ */ jsx(
|
|
11969
12003
|
Menubar.Content,
|
|
@@ -11991,7 +12025,7 @@ var MenubarContent = React16.forwardRef(({ className, align = "start", alignOffs
|
|
|
11991
12025
|
) })
|
|
11992
12026
|
] }));
|
|
11993
12027
|
MenubarContent.displayName = "MenubarContent";
|
|
11994
|
-
var MenubarItem =
|
|
12028
|
+
var MenubarItem = React17.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
11995
12029
|
Menubar.Item,
|
|
11996
12030
|
{
|
|
11997
12031
|
ref,
|
|
@@ -12007,7 +12041,7 @@ var MenubarItem = React16.forwardRef(({ className, inset, ...props }, ref) => /*
|
|
|
12007
12041
|
}
|
|
12008
12042
|
));
|
|
12009
12043
|
MenubarItem.displayName = "MenubarItem";
|
|
12010
|
-
var MenubarCheckboxItem =
|
|
12044
|
+
var MenubarCheckboxItem = React17.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
12011
12045
|
Menubar.CheckboxItem,
|
|
12012
12046
|
{
|
|
12013
12047
|
ref,
|
|
@@ -12026,7 +12060,7 @@ var MenubarCheckboxItem = React16.forwardRef(({ className, children, ...props },
|
|
|
12026
12060
|
}
|
|
12027
12061
|
));
|
|
12028
12062
|
MenubarCheckboxItem.displayName = "MenubarCheckboxItem";
|
|
12029
|
-
var MenubarRadioItem =
|
|
12063
|
+
var MenubarRadioItem = React17.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
12030
12064
|
Menubar.RadioItem,
|
|
12031
12065
|
{
|
|
12032
12066
|
ref,
|
|
@@ -12045,7 +12079,7 @@ var MenubarRadioItem = React16.forwardRef(({ className, children, ...props }, re
|
|
|
12045
12079
|
}
|
|
12046
12080
|
));
|
|
12047
12081
|
MenubarRadioItem.displayName = "MenubarRadioItem";
|
|
12048
|
-
var MenubarLabel =
|
|
12082
|
+
var MenubarLabel = React17.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
12049
12083
|
Menubar.Label,
|
|
12050
12084
|
{
|
|
12051
12085
|
ref,
|
|
@@ -12054,9 +12088,9 @@ var MenubarLabel = React16.forwardRef(({ className, inset, ...props }, ref) => /
|
|
|
12054
12088
|
}
|
|
12055
12089
|
));
|
|
12056
12090
|
MenubarLabel.displayName = "MenubarLabel";
|
|
12057
|
-
var MenubarSeparator =
|
|
12091
|
+
var MenubarSeparator = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(Menubar.Separator, { ref, className: cn("mx-1 my-1 h-px bg-muted", className), ...props }));
|
|
12058
12092
|
MenubarSeparator.displayName = "MenubarSeparator";
|
|
12059
|
-
var MenubarSubTrigger =
|
|
12093
|
+
var MenubarSubTrigger = React17.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
12060
12094
|
Menubar.SubTrigger,
|
|
12061
12095
|
{
|
|
12062
12096
|
ref,
|
|
@@ -12075,7 +12109,7 @@ var MenubarSubTrigger = React16.forwardRef(({ className, inset, children, ...pro
|
|
|
12075
12109
|
}
|
|
12076
12110
|
));
|
|
12077
12111
|
MenubarSubTrigger.displayName = "MenubarSubTrigger";
|
|
12078
|
-
var MenubarSubContent =
|
|
12112
|
+
var MenubarSubContent = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
12079
12113
|
/* @__PURE__ */ jsx("style", { children: mobilePopperSheetStyle }),
|
|
12080
12114
|
/* @__PURE__ */ jsx(
|
|
12081
12115
|
Menubar.SubContent,
|
|
@@ -12106,7 +12140,7 @@ MenubarShortcut.displayName = "MenubarShortcut";
|
|
|
12106
12140
|
var SheetRoot = Dialog$1.Root;
|
|
12107
12141
|
var SheetTrigger = Dialog$1.Trigger;
|
|
12108
12142
|
var SheetClose = Dialog$1.Close;
|
|
12109
|
-
var SheetOverlay =
|
|
12143
|
+
var SheetOverlay = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
12110
12144
|
Dialog$1.Overlay,
|
|
12111
12145
|
{
|
|
12112
12146
|
ref,
|
|
@@ -12141,7 +12175,7 @@ var sheetContentVariants = cva(
|
|
|
12141
12175
|
}
|
|
12142
12176
|
}
|
|
12143
12177
|
);
|
|
12144
|
-
var SheetContent =
|
|
12178
|
+
var SheetContent = React17.forwardRef(
|
|
12145
12179
|
({ className, children, side = "right", ...props }, ref) => /* @__PURE__ */ jsxs(Dialog$1.Portal, { children: [
|
|
12146
12180
|
/* @__PURE__ */ jsx(SheetOverlay, {}),
|
|
12147
12181
|
/* @__PURE__ */ jsxs(
|
|
@@ -12181,7 +12215,7 @@ function SheetFooter({ className, ...props }) {
|
|
|
12181
12215
|
return /* @__PURE__ */ jsx("div", { className: cn("flex items-center justify-end gap-2 mt-6", className), ...props });
|
|
12182
12216
|
}
|
|
12183
12217
|
SheetFooter.displayName = "SheetFooter";
|
|
12184
|
-
var SheetTitle =
|
|
12218
|
+
var SheetTitle = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
12185
12219
|
Dialog$1.Title,
|
|
12186
12220
|
{
|
|
12187
12221
|
ref,
|
|
@@ -12190,7 +12224,7 @@ var SheetTitle = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
12190
12224
|
}
|
|
12191
12225
|
));
|
|
12192
12226
|
SheetTitle.displayName = "SheetTitle";
|
|
12193
|
-
var SheetDescription =
|
|
12227
|
+
var SheetDescription = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
12194
12228
|
Dialog$1.Description,
|
|
12195
12229
|
{
|
|
12196
12230
|
ref,
|
|
@@ -12218,7 +12252,7 @@ function MobileDrawer({
|
|
|
12218
12252
|
] });
|
|
12219
12253
|
}
|
|
12220
12254
|
MobileDrawer.displayName = "MobileDrawer";
|
|
12221
|
-
var NativeSelect =
|
|
12255
|
+
var NativeSelect = React17.forwardRef(({ className, children, ...props }, ref) => {
|
|
12222
12256
|
const shape3 = useShape();
|
|
12223
12257
|
return /* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
12224
12258
|
/* @__PURE__ */ jsx(
|
|
@@ -12248,11 +12282,11 @@ var NativeSelect = React16.forwardRef(({ className, children, ...props }, ref) =
|
|
|
12248
12282
|
] });
|
|
12249
12283
|
});
|
|
12250
12284
|
NativeSelect.displayName = "NativeSelect";
|
|
12251
|
-
var NativeSelectOption =
|
|
12285
|
+
var NativeSelectOption = React17.forwardRef((props, ref) => /* @__PURE__ */ jsx("option", { ref, ...props }));
|
|
12252
12286
|
NativeSelectOption.displayName = "NativeSelectOption";
|
|
12253
|
-
var NativeSelectOptGroup =
|
|
12287
|
+
var NativeSelectOptGroup = React17.forwardRef((props, ref) => /* @__PURE__ */ jsx("optgroup", { ref, ...props }));
|
|
12254
12288
|
NativeSelectOptGroup.displayName = "NativeSelectOptGroup";
|
|
12255
|
-
var NavItem =
|
|
12289
|
+
var NavItem = React17.forwardRef(
|
|
12256
12290
|
({ icon, active, trailing, className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
12257
12291
|
"a",
|
|
12258
12292
|
{
|
|
@@ -12302,7 +12336,7 @@ function NavMenu({ items, className, ...props }) {
|
|
|
12302
12336
|
);
|
|
12303
12337
|
}
|
|
12304
12338
|
NavMenu.displayName = "NavMenu";
|
|
12305
|
-
var NavigationMenuRoot =
|
|
12339
|
+
var NavigationMenuRoot = React17.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
12306
12340
|
NavigationMenu.Root,
|
|
12307
12341
|
{
|
|
12308
12342
|
ref,
|
|
@@ -12312,7 +12346,7 @@ var NavigationMenuRoot = React16.forwardRef(({ className, children, ...props },
|
|
|
12312
12346
|
}
|
|
12313
12347
|
));
|
|
12314
12348
|
NavigationMenuRoot.displayName = "NavigationMenu";
|
|
12315
|
-
var NavigationMenuList =
|
|
12349
|
+
var NavigationMenuList = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
12316
12350
|
NavigationMenu.List,
|
|
12317
12351
|
{
|
|
12318
12352
|
ref,
|
|
@@ -12322,7 +12356,7 @@ var NavigationMenuList = React16.forwardRef(({ className, ...props }, ref) => /*
|
|
|
12322
12356
|
));
|
|
12323
12357
|
NavigationMenuList.displayName = "NavigationMenuList";
|
|
12324
12358
|
var NavigationMenuItem = NavigationMenu.Item;
|
|
12325
|
-
var NavigationMenuTrigger =
|
|
12359
|
+
var NavigationMenuTrigger = React17.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
12326
12360
|
NavigationMenu.Trigger,
|
|
12327
12361
|
{
|
|
12328
12362
|
ref,
|
|
@@ -12349,7 +12383,7 @@ var NavigationMenuTrigger = React16.forwardRef(({ className, children, ...props
|
|
|
12349
12383
|
}
|
|
12350
12384
|
));
|
|
12351
12385
|
NavigationMenuTrigger.displayName = "NavigationMenuTrigger";
|
|
12352
|
-
var NavigationMenuContent =
|
|
12386
|
+
var NavigationMenuContent = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
12353
12387
|
NavigationMenu.Content,
|
|
12354
12388
|
{
|
|
12355
12389
|
ref,
|
|
@@ -12366,7 +12400,7 @@ var NavigationMenuContent = React16.forwardRef(({ className, ...props }, ref) =>
|
|
|
12366
12400
|
}
|
|
12367
12401
|
));
|
|
12368
12402
|
NavigationMenuContent.displayName = "NavigationMenuContent";
|
|
12369
|
-
var NavigationMenuLink =
|
|
12403
|
+
var NavigationMenuLink = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
12370
12404
|
NavigationMenu.Link,
|
|
12371
12405
|
{
|
|
12372
12406
|
ref,
|
|
@@ -12380,7 +12414,7 @@ var NavigationMenuLink = React16.forwardRef(({ className, ...props }, ref) => /*
|
|
|
12380
12414
|
}
|
|
12381
12415
|
));
|
|
12382
12416
|
NavigationMenuLink.displayName = "NavigationMenuLink";
|
|
12383
|
-
var NavigationMenuViewport =
|
|
12417
|
+
var NavigationMenuViewport = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { className: "absolute left-0 top-full flex justify-center", children: /* @__PURE__ */ jsx(
|
|
12384
12418
|
NavigationMenu.Viewport,
|
|
12385
12419
|
{
|
|
12386
12420
|
ref,
|
|
@@ -12395,7 +12429,7 @@ var NavigationMenuViewport = React16.forwardRef(({ className, ...props }, ref) =
|
|
|
12395
12429
|
}
|
|
12396
12430
|
) }));
|
|
12397
12431
|
NavigationMenuViewport.displayName = "NavigationMenuViewport";
|
|
12398
|
-
var NavigationMenuIndicator =
|
|
12432
|
+
var NavigationMenuIndicator = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
12399
12433
|
NavigationMenu.Indicator,
|
|
12400
12434
|
{
|
|
12401
12435
|
ref,
|
|
@@ -12497,7 +12531,7 @@ function PageHeading({
|
|
|
12497
12531
|
className
|
|
12498
12532
|
}) {
|
|
12499
12533
|
return /* @__PURE__ */ jsxs("div", { className: cn("border-b border-border pb-6", className), children: [
|
|
12500
|
-
breadcrumbs && breadcrumbs.length > 0 && /* @__PURE__ */ jsx("nav", { className: "mb-3 flex items-center gap-1.5", "aria-label": "Breadcrumb", children: breadcrumbs.map((crumb, i) => /* @__PURE__ */ jsxs(
|
|
12534
|
+
breadcrumbs && breadcrumbs.length > 0 && /* @__PURE__ */ jsx("nav", { className: "mb-3 flex items-center gap-1.5", "aria-label": "Breadcrumb", children: breadcrumbs.map((crumb, i) => /* @__PURE__ */ jsxs(React17.Fragment, { children: [
|
|
12501
12535
|
i > 0 && /* @__PURE__ */ jsx(ChevronRight, { size: 12, className: "text-muted-foreground shrink-0" }),
|
|
12502
12536
|
crumb.href ? /* @__PURE__ */ jsx(
|
|
12503
12537
|
"a",
|
|
@@ -12554,11 +12588,11 @@ var Pagination = ({ className, ...props }) => /* @__PURE__ */ jsx(
|
|
|
12554
12588
|
}
|
|
12555
12589
|
);
|
|
12556
12590
|
Pagination.displayName = "Pagination";
|
|
12557
|
-
var PaginationContent =
|
|
12591
|
+
var PaginationContent = React17.forwardRef(
|
|
12558
12592
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx("ul", { ref, className: cn("flex flex-row items-center gap-1", className), ...props })
|
|
12559
12593
|
);
|
|
12560
12594
|
PaginationContent.displayName = "PaginationContent";
|
|
12561
|
-
var PaginationItem =
|
|
12595
|
+
var PaginationItem = React17.forwardRef(
|
|
12562
12596
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx("li", { ref, className: cn("", className), ...props })
|
|
12563
12597
|
);
|
|
12564
12598
|
PaginationItem.displayName = "PaginationItem";
|
|
@@ -12614,7 +12648,7 @@ var PaginationEllipsis = ({ className, ...props }) => /* @__PURE__ */ jsx(
|
|
|
12614
12648
|
}
|
|
12615
12649
|
);
|
|
12616
12650
|
PaginationEllipsis.displayName = "PaginationEllipsis";
|
|
12617
|
-
var ProgressRoot =
|
|
12651
|
+
var ProgressRoot = React17.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
12618
12652
|
Progress.Root,
|
|
12619
12653
|
{
|
|
12620
12654
|
ref,
|
|
@@ -13077,7 +13111,7 @@ function ResizableHandle({ className, withHandle = true, ...props }) {
|
|
|
13077
13111
|
);
|
|
13078
13112
|
}
|
|
13079
13113
|
ResizableHandle.displayName = "ResizableHandle";
|
|
13080
|
-
var Separator2 =
|
|
13114
|
+
var Separator2 = React17.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
13081
13115
|
Separator.Root,
|
|
13082
13116
|
{
|
|
13083
13117
|
ref,
|
|
@@ -13190,25 +13224,25 @@ function RichTextEditor({
|
|
|
13190
13224
|
toolbarClassName,
|
|
13191
13225
|
onRequestImageUrl
|
|
13192
13226
|
}) {
|
|
13193
|
-
const editorRef =
|
|
13194
|
-
const savedRangeRef =
|
|
13195
|
-
const [showLinkInput, setShowLinkInput] =
|
|
13196
|
-
const [linkUrl, setLinkUrl] =
|
|
13197
|
-
|
|
13227
|
+
const editorRef = React17.useRef(null);
|
|
13228
|
+
const savedRangeRef = React17.useRef(null);
|
|
13229
|
+
const [showLinkInput, setShowLinkInput] = React17.useState(false);
|
|
13230
|
+
const [linkUrl, setLinkUrl] = React17.useState("");
|
|
13231
|
+
React17.useEffect(() => {
|
|
13198
13232
|
const editor = editorRef.current;
|
|
13199
13233
|
if (!editor || document.activeElement === editor || editor.innerHTML === value) return;
|
|
13200
13234
|
editor.innerHTML = value;
|
|
13201
13235
|
}, [value]);
|
|
13202
|
-
const emitChange =
|
|
13236
|
+
const emitChange = React17.useCallback(() => {
|
|
13203
13237
|
if (editorRef.current) onChange(editorRef.current.innerHTML);
|
|
13204
13238
|
}, [onChange]);
|
|
13205
|
-
const saveSelection =
|
|
13239
|
+
const saveSelection = React17.useCallback(() => {
|
|
13206
13240
|
const selection = window.getSelection();
|
|
13207
13241
|
if (selection && selection.rangeCount > 0) {
|
|
13208
13242
|
savedRangeRef.current = selection.getRangeAt(0).cloneRange();
|
|
13209
13243
|
}
|
|
13210
13244
|
}, []);
|
|
13211
|
-
const restoreSelection =
|
|
13245
|
+
const restoreSelection = React17.useCallback(() => {
|
|
13212
13246
|
const range = savedRangeRef.current;
|
|
13213
13247
|
const selection = window.getSelection();
|
|
13214
13248
|
if (!range || !selection) return;
|
|
@@ -13216,7 +13250,7 @@ function RichTextEditor({
|
|
|
13216
13250
|
selection.addRange(range);
|
|
13217
13251
|
savedRangeRef.current = null;
|
|
13218
13252
|
}, []);
|
|
13219
|
-
const runCommand =
|
|
13253
|
+
const runCommand = React17.useCallback(
|
|
13220
13254
|
(command, commandValue) => {
|
|
13221
13255
|
editorRef.current?.focus();
|
|
13222
13256
|
switch (command) {
|
|
@@ -13252,7 +13286,7 @@ function RichTextEditor({
|
|
|
13252
13286
|
},
|
|
13253
13287
|
[emitChange]
|
|
13254
13288
|
);
|
|
13255
|
-
const insertLink =
|
|
13289
|
+
const insertLink = React17.useCallback(() => {
|
|
13256
13290
|
const url = linkUrl.trim();
|
|
13257
13291
|
if (!url) return;
|
|
13258
13292
|
restoreSelection();
|
|
@@ -13262,7 +13296,7 @@ function RichTextEditor({
|
|
|
13262
13296
|
setShowLinkInput(false);
|
|
13263
13297
|
emitChange();
|
|
13264
13298
|
}, [emitChange, linkUrl, restoreSelection]);
|
|
13265
|
-
const insertImage =
|
|
13299
|
+
const insertImage = React17.useCallback(async () => {
|
|
13266
13300
|
const url = await onRequestImageUrl?.() ?? (typeof window !== "undefined" ? window.prompt("Image URL:") : null);
|
|
13267
13301
|
if (!url) return;
|
|
13268
13302
|
const image = document.createElement("img");
|
|
@@ -13333,7 +13367,7 @@ function RichTextEditor({
|
|
|
13333
13367
|
role: "toolbar",
|
|
13334
13368
|
"aria-label": "Text formatting",
|
|
13335
13369
|
children: [
|
|
13336
|
-
toolbarGroups.map((group, index) => /* @__PURE__ */ jsxs(
|
|
13370
|
+
toolbarGroups.map((group, index) => /* @__PURE__ */ jsxs(React17.Fragment, { children: [
|
|
13337
13371
|
index > 0 && /* @__PURE__ */ jsx(Separator2, { orientation: "vertical", className: "mx-1 h-6" }),
|
|
13338
13372
|
group.map(renderToolbarButton)
|
|
13339
13373
|
] }, `toolbar-group-${index}`)),
|
|
@@ -13458,14 +13492,14 @@ function RichTextEditor({
|
|
|
13458
13492
|
);
|
|
13459
13493
|
}
|
|
13460
13494
|
RichTextEditor.displayName = "RichTextEditor";
|
|
13461
|
-
var ScrollAreaRoot =
|
|
13495
|
+
var ScrollAreaRoot = React17.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(ScrollArea.Root, { ref, className: cn("relative overflow-hidden", className), ...props, children: [
|
|
13462
13496
|
/* @__PURE__ */ jsx(ScrollArea.Viewport, { className: "h-full w-full rounded-[inherit]", children }),
|
|
13463
13497
|
/* @__PURE__ */ jsx(ScrollAreaScrollbar, { orientation: "vertical" }),
|
|
13464
13498
|
/* @__PURE__ */ jsx(ScrollAreaScrollbar, { orientation: "horizontal" }),
|
|
13465
13499
|
/* @__PURE__ */ jsx(ScrollArea.Corner, {})
|
|
13466
13500
|
] }));
|
|
13467
13501
|
ScrollAreaRoot.displayName = "ScrollArea";
|
|
13468
|
-
var ScrollAreaScrollbar =
|
|
13502
|
+
var ScrollAreaScrollbar = React17.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
13469
13503
|
ScrollArea.Scrollbar,
|
|
13470
13504
|
{
|
|
13471
13505
|
ref,
|
|
@@ -13607,14 +13641,14 @@ function SearchableTable({
|
|
|
13607
13641
|
tableClassName,
|
|
13608
13642
|
pagination
|
|
13609
13643
|
}) {
|
|
13610
|
-
const [sort, setSort] =
|
|
13611
|
-
const rows =
|
|
13644
|
+
const [sort, setSort] = React17.useState(null);
|
|
13645
|
+
const rows = React17.useMemo(() => Array.isArray(data) ? data : [], [data]);
|
|
13612
13646
|
const normalizedSearchTerm = searchTerm.trim().toLowerCase();
|
|
13613
|
-
const filteredRows =
|
|
13647
|
+
const filteredRows = React17.useMemo(() => {
|
|
13614
13648
|
if (!normalizedSearchTerm) return rows;
|
|
13615
13649
|
return rows.filter((item) => getSearchableText(item).includes(normalizedSearchTerm));
|
|
13616
13650
|
}, [normalizedSearchTerm, rows]);
|
|
13617
|
-
const sortedData =
|
|
13651
|
+
const sortedData = React17.useMemo(() => {
|
|
13618
13652
|
if (!sort) return filteredRows;
|
|
13619
13653
|
const column = columns.find((candidate) => candidate.key === sort.key);
|
|
13620
13654
|
if (!column || !column.sortable && !column.sortAccessor) return filteredRows;
|
|
@@ -13795,8 +13829,8 @@ var SIDEBAR_WIDTH_ICON = "3.5rem";
|
|
|
13795
13829
|
var SIDEBAR_KEYBOARD_SHORTCUT = "b";
|
|
13796
13830
|
var MOBILE_BREAKPOINT = 768;
|
|
13797
13831
|
function useIsMobile() {
|
|
13798
|
-
const [isMobile, setIsMobile] =
|
|
13799
|
-
|
|
13832
|
+
const [isMobile, setIsMobile] = React17.useState(false);
|
|
13833
|
+
React17.useEffect(() => {
|
|
13800
13834
|
const mediaQuery = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
|
|
13801
13835
|
const onChange = () => setIsMobile(mediaQuery.matches);
|
|
13802
13836
|
onChange();
|
|
@@ -13805,14 +13839,14 @@ function useIsMobile() {
|
|
|
13805
13839
|
}, []);
|
|
13806
13840
|
return isMobile;
|
|
13807
13841
|
}
|
|
13808
|
-
var SidebarContext =
|
|
13842
|
+
var SidebarContext = React17.createContext(null);
|
|
13809
13843
|
function useSidebar() {
|
|
13810
|
-
const ctx =
|
|
13844
|
+
const ctx = React17.useContext(SidebarContext);
|
|
13811
13845
|
if (!ctx) throw new Error("useSidebar must be used inside SidebarProvider");
|
|
13812
13846
|
return ctx;
|
|
13813
13847
|
}
|
|
13814
13848
|
function useOptionalSidebar() {
|
|
13815
|
-
return
|
|
13849
|
+
return React17.useContext(SidebarContext);
|
|
13816
13850
|
}
|
|
13817
13851
|
function SidebarProvider({
|
|
13818
13852
|
defaultOpen = true,
|
|
@@ -13824,10 +13858,10 @@ function SidebarProvider({
|
|
|
13824
13858
|
...props
|
|
13825
13859
|
}) {
|
|
13826
13860
|
const isMobile = useIsMobile();
|
|
13827
|
-
const [openMobile, setOpenMobile] =
|
|
13828
|
-
const [_open, _setOpen] =
|
|
13861
|
+
const [openMobile, setOpenMobile] = React17.useState(false);
|
|
13862
|
+
const [_open, _setOpen] = React17.useState(defaultOpen);
|
|
13829
13863
|
const open = openProp !== void 0 ? openProp : _open;
|
|
13830
|
-
const setOpen =
|
|
13864
|
+
const setOpen = React17.useCallback(
|
|
13831
13865
|
(value) => {
|
|
13832
13866
|
const nextOpen = typeof value === "function" ? value(open) : value;
|
|
13833
13867
|
if (onOpenChange) {
|
|
@@ -13839,14 +13873,14 @@ function SidebarProvider({
|
|
|
13839
13873
|
},
|
|
13840
13874
|
[onOpenChange, open]
|
|
13841
13875
|
);
|
|
13842
|
-
const toggleSidebar =
|
|
13876
|
+
const toggleSidebar = React17.useCallback(() => {
|
|
13843
13877
|
if (isMobile) {
|
|
13844
13878
|
setOpenMobile((currentOpen) => !currentOpen);
|
|
13845
13879
|
return;
|
|
13846
13880
|
}
|
|
13847
13881
|
setOpen((currentOpen) => !currentOpen);
|
|
13848
13882
|
}, [isMobile, setOpen]);
|
|
13849
|
-
|
|
13883
|
+
React17.useEffect(() => {
|
|
13850
13884
|
function handleKeyDown(event) {
|
|
13851
13885
|
if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
|
|
13852
13886
|
event.preventDefault();
|
|
@@ -13857,7 +13891,7 @@ function SidebarProvider({
|
|
|
13857
13891
|
return () => window.removeEventListener("keydown", handleKeyDown);
|
|
13858
13892
|
}, [toggleSidebar]);
|
|
13859
13893
|
const state = open ? "expanded" : "collapsed";
|
|
13860
|
-
const contextValue =
|
|
13894
|
+
const contextValue = React17.useMemo(
|
|
13861
13895
|
() => ({
|
|
13862
13896
|
state,
|
|
13863
13897
|
open,
|
|
@@ -14256,7 +14290,7 @@ function SidebarMenuSkeleton({
|
|
|
14256
14290
|
showIcon = false,
|
|
14257
14291
|
...props
|
|
14258
14292
|
}) {
|
|
14259
|
-
const width =
|
|
14293
|
+
const width = React17.useMemo(() => {
|
|
14260
14294
|
return `${Math.floor(Math.random() * 40) + 50}%`;
|
|
14261
14295
|
}, []);
|
|
14262
14296
|
return /* @__PURE__ */ jsxs(
|
|
@@ -14442,7 +14476,7 @@ function StatCardGrid({
|
|
|
14442
14476
|
className,
|
|
14443
14477
|
showEmptySlots = false
|
|
14444
14478
|
}) {
|
|
14445
|
-
const childrenArray =
|
|
14479
|
+
const childrenArray = React17.Children.toArray(children);
|
|
14446
14480
|
const emptySlots = showEmptySlots ? Math.max(0, maxSlots - childrenArray.length) : 0;
|
|
14447
14481
|
return /* @__PURE__ */ jsxs(
|
|
14448
14482
|
"div",
|
|
@@ -16059,7 +16093,7 @@ var toggleVariants = cva(
|
|
|
16059
16093
|
}
|
|
16060
16094
|
}
|
|
16061
16095
|
);
|
|
16062
|
-
var ToggleRoot =
|
|
16096
|
+
var ToggleRoot = React17.forwardRef(
|
|
16063
16097
|
({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
16064
16098
|
Toggle.Root,
|
|
16065
16099
|
{
|
|
@@ -16070,11 +16104,11 @@ var ToggleRoot = React16.forwardRef(
|
|
|
16070
16104
|
)
|
|
16071
16105
|
);
|
|
16072
16106
|
ToggleRoot.displayName = "Toggle";
|
|
16073
|
-
var ToggleGroupContext =
|
|
16107
|
+
var ToggleGroupContext = React17.createContext({
|
|
16074
16108
|
size: "default",
|
|
16075
16109
|
variant: "default"
|
|
16076
16110
|
});
|
|
16077
|
-
var ToggleGroupRoot =
|
|
16111
|
+
var ToggleGroupRoot = React17.forwardRef(({ className, variant, size, children, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
16078
16112
|
ToggleGroup.Root,
|
|
16079
16113
|
{
|
|
16080
16114
|
ref,
|
|
@@ -16084,8 +16118,8 @@ var ToggleGroupRoot = React16.forwardRef(({ className, variant, size, children,
|
|
|
16084
16118
|
}
|
|
16085
16119
|
));
|
|
16086
16120
|
ToggleGroupRoot.displayName = "ToggleGroup";
|
|
16087
|
-
var ToggleGroupItem =
|
|
16088
|
-
const context =
|
|
16121
|
+
var ToggleGroupItem = React17.forwardRef(({ className, variant, size, ...props }, ref) => {
|
|
16122
|
+
const context = React17.useContext(ToggleGroupContext);
|
|
16089
16123
|
return /* @__PURE__ */ jsx(
|
|
16090
16124
|
ToggleGroup.Item,
|
|
16091
16125
|
{
|
|
@@ -16223,6 +16257,6 @@ function UsageBar({
|
|
|
16223
16257
|
] });
|
|
16224
16258
|
}
|
|
16225
16259
|
|
|
16226
|
-
export { Accordion, AccordionContent, AccordionGroup, AccordionItem, AccordionTrigger, AccountMenuContent, AccountMenuHeader, AccountMenuItem, AccountMenuSection, AccountMenuSeparator, ActionPanel, ActivityFeed, Alert, AlertDescription, AlertDialogRoot as AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AskUserQuestions, AspectRatioRoot as AspectRatio, Avatar, AvatarFallback, AvatarImage, AvatarStack, AvatarWithStatus, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, ButtonGroupItem, CHART_COLORS, Calendar, Callout, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardHeading, CardMedia, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, ChatMessage, CheckboxRoot as Checkbox, CheckboxGroup, CheckboxItem, CollapsibleRoot as Collapsible, CollapsibleContent, CollapsibleTrigger, ColorInput2 as ColorInput, ColorPicker, ColorPickerPopover, ColorPickerPortalContainer, ColorSwatch, ColorTile, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandPalette, CommandSeparator, CommandShortcut, ContextMenuRoot as ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, DataTable, DataTransferControls, DatePicker, DescriptionList, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DrawerRoot as Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, Dropdown, DropdownLabel, DropdownMenuRoot as DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, DropdownSeparator, EmptyState, Field, FileDropzone, FileThumbnail, GridList, GridListAccentCard, GridListCard, HelpTooltip, HoverCardRoot as HoverCard, HoverCardContent, HoverCardTrigger, IconProvider, Input, InputCopy, InputField, InputGroup, InputMessage, InputNumber, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Kbd, Label, MediaAssetCard, MediaAssetGrid, MediaAssetGridItem, MediaObject, MenuItem, MenubarRoot as Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, MobileDrawer, NativeSelect, NativeSelectOptGroup, NativeSelectOption, NavItem, NavMenu, NavigationMenuRoot as NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Notification, PageHeading, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PopoverRoot as Popover, PopoverClose, PopoverContent, PopoverTrigger, ProgressRoot as Progress, PropertyRow, RadioCards, RadioGroup, RadioGroupItem, RadioItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, RichTextEditor, SIDEBAR_COOKIE_MAX_AGE, SIDEBAR_COOKIE_NAME, SIDEBAR_KEYBOARD_SHORTCUT, SIDEBAR_WIDTH, SIDEBAR_WIDTH_ICON, SIDEBAR_WIDTH_MOBILE, ScrollAreaRoot as ScrollArea, SearchableTable, SectionHeading, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue, Separator2 as Separator, ShapeProvider, SheetRoot as Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, SliderComfortable, SliderControl, Spinner, StackedList, StackedListItem, StatCard, StatCardGrid, StatCardSlot, StatusBadge, StatusTile, StatusTileGrid, Steps, SummaryTile, SummaryTileGrid, SurfaceProvider, Switch, TabItem, TabPanel, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsSubtle, TabsSubtleItem, TabsSubtlePanel, TabsTrigger, Textarea, ThinkingIndicator, ThinkingStep, ThinkingStepDetails, ThinkingStepImage, ThinkingStepSource, ThinkingStepSources, ThinkingSteps, ThinkingStepsContent, ThinkingStepsHeader, TitledCard, Toaster, ToggleRoot as Toggle, ToggleGroupRoot as ToggleGroup, ToggleGroupItem, Tooltip3 as Tooltip, TooltipContent, TooltipPortalContainer, TooltipProvider, TooltipRoot, TooltipTrigger, UrlRedirectPrompt, UsageBar, badgeColors, badgeVariants, buildParsed, buttonVariants, cardVariants, cn, formatDate, formatFileSize, hasUrlHandleChanged, iconLibraryLabels, iconLibraryOrder, loadPdfjs, navigationMenuTriggerStyle, normalizeUrlHandle, parseColor, renderPdfFirstPage, shapeMap, spinnerVariants, statusBadgeVariantFor, statusLabel, toggleVariants, triggerVariants, urlResourcePath, useDropdown, useIcon, useIconLibrary, useIcons, useOptionalSidebar, useShape, useShapeContext, useSidebar, useSurface };
|
|
16260
|
+
export { Accordion, AccordionContent, AccordionGroup, AccordionItem, AccordionTrigger, AccountMenuContent, AccountMenuHeader, AccountMenuItem, AccountMenuSection, AccountMenuSeparator, ActionPanel, ActivityFeed, Alert, AlertDescription, AlertDialogRoot as AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AskUserQuestions, AspectRatioRoot as AspectRatio, Avatar, AvatarFallback, AvatarImage, AvatarStack, AvatarWithStatus, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, ButtonGroupItem, CHART_COLORS, Calendar, Callout, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardHeading, CardMedia, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, ChatMessage, CheckboxRoot as Checkbox, CheckboxCard, CheckboxGroup, CheckboxItem, CollapsibleRoot as Collapsible, CollapsibleContent, CollapsibleTrigger, ColorInput2 as ColorInput, ColorPicker, ColorPickerPopover, ColorPickerPortalContainer, ColorSwatch, ColorTile, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandPalette, CommandSeparator, CommandShortcut, ContextMenuRoot as ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, DataTable, DataTransferControls, DatePicker, DescriptionList, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DrawerRoot as Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, Dropdown, DropdownLabel, DropdownMenuRoot as DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, DropdownSeparator, EmptyState, Field, FileDropzone, FileThumbnail, GridList, GridListAccentCard, GridListCard, HelpTooltip, HoverCardRoot as HoverCard, HoverCardContent, HoverCardTrigger, IconProvider, Input, InputCopy, InputField, InputGroup, InputMessage, InputNumber, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Kbd, Label, MediaAssetCard, MediaAssetGrid, MediaAssetGridItem, MediaObject, MenuItem, MenubarRoot as Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, MobileDrawer, NativeSelect, NativeSelectOptGroup, NativeSelectOption, NavItem, NavMenu, NavigationMenuRoot as NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Notification, PageHeading, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PopoverRoot as Popover, PopoverClose, PopoverContent, PopoverTrigger, ProgressRoot as Progress, PropertyRow, RadioCards, RadioGroup, RadioGroupItem, RadioItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, RichTextEditor, SIDEBAR_COOKIE_MAX_AGE, SIDEBAR_COOKIE_NAME, SIDEBAR_KEYBOARD_SHORTCUT, SIDEBAR_WIDTH, SIDEBAR_WIDTH_ICON, SIDEBAR_WIDTH_MOBILE, ScrollAreaRoot as ScrollArea, SearchableTable, SectionHeading, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue, Separator2 as Separator, ShapeProvider, SheetRoot as Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, SliderComfortable, SliderControl, Spinner, StackedList, StackedListItem, StatCard, StatCardGrid, StatCardSlot, StatusBadge, StatusTile, StatusTileGrid, Steps, SummaryTile, SummaryTileGrid, SurfaceProvider, Switch, TabItem, TabPanel, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsSubtle, TabsSubtleItem, TabsSubtlePanel, TabsTrigger, Textarea, ThinkingIndicator, ThinkingStep, ThinkingStepDetails, ThinkingStepImage, ThinkingStepSource, ThinkingStepSources, ThinkingSteps, ThinkingStepsContent, ThinkingStepsHeader, TitledCard, Toaster, ToggleRoot as Toggle, ToggleGroupRoot as ToggleGroup, ToggleGroupItem, Tooltip3 as Tooltip, TooltipContent, TooltipPortalContainer, TooltipProvider, TooltipRoot, TooltipTrigger, UrlRedirectPrompt, UsageBar, badgeColors, badgeVariants, buildParsed, buttonVariants, cardVariants, cn, formatDate, formatFileSize, hasUrlHandleChanged, iconLibraryLabels, iconLibraryOrder, loadPdfjs, navigationMenuTriggerStyle, normalizeUrlHandle, parseColor, renderPdfFirstPage, shapeMap, spinnerVariants, statusBadgeVariantFor, statusLabel, toggleVariants, triggerVariants, urlResourcePath, useDropdown, useIcon, useIconLibrary, useIcons, useOptionalSidebar, useShape, useShapeContext, useSidebar, useSurface };
|
|
16227
16261
|
//# sourceMappingURL=index.js.map
|
|
16228
16262
|
//# sourceMappingURL=index.js.map
|