@hilum/ui 3.6.10 → 3.6.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +11 -2
- package/dist/index.js +239 -203
- package/dist/index.js.map +1 -1
- package/llms.txt +4 -3
- package/package.json +1 -1
- package/src/components/card.tsx +2 -0
- 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
|
{
|
|
@@ -3657,6 +3657,8 @@ var cardVariants = cva(["rounded-xl", motionClasses], {
|
|
|
3657
3657
|
variants: {
|
|
3658
3658
|
variant: {
|
|
3659
3659
|
default: "bg-card shadow-natural",
|
|
3660
|
+
outlined: "border border-border bg-card shadow-natural",
|
|
3661
|
+
elevated: "border border-border bg-card shadow-elevated",
|
|
3660
3662
|
muted: "bg-muted shadow-natural",
|
|
3661
3663
|
ghost: "bg-transparent",
|
|
3662
3664
|
responsive: "border border-border bg-card p-5 shadow-natural sm:rounded-xl max-sm:rounded-none max-sm:border-x-0 max-sm:border-y max-sm:bg-transparent max-sm:px-0 max-sm:py-5 max-sm:shadow-none"
|
|
@@ -3666,7 +3668,7 @@ var cardVariants = cva(["rounded-xl", motionClasses], {
|
|
|
3666
3668
|
variant: "default"
|
|
3667
3669
|
}
|
|
3668
3670
|
});
|
|
3669
|
-
var Card =
|
|
3671
|
+
var Card = React17.forwardRef(
|
|
3670
3672
|
({ className, variant, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3671
3673
|
"div",
|
|
3672
3674
|
{
|
|
@@ -3678,7 +3680,7 @@ var Card = React16.forwardRef(
|
|
|
3678
3680
|
)
|
|
3679
3681
|
);
|
|
3680
3682
|
Card.displayName = "Card";
|
|
3681
|
-
var CardHeader =
|
|
3683
|
+
var CardHeader = React17.forwardRef(
|
|
3682
3684
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3683
3685
|
"div",
|
|
3684
3686
|
{
|
|
@@ -3690,7 +3692,7 @@ var CardHeader = React16.forwardRef(
|
|
|
3690
3692
|
)
|
|
3691
3693
|
);
|
|
3692
3694
|
CardHeader.displayName = "CardHeader";
|
|
3693
|
-
var CardTitle =
|
|
3695
|
+
var CardTitle = React17.forwardRef(
|
|
3694
3696
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3695
3697
|
"h3",
|
|
3696
3698
|
{
|
|
@@ -3702,7 +3704,7 @@ var CardTitle = React16.forwardRef(
|
|
|
3702
3704
|
)
|
|
3703
3705
|
);
|
|
3704
3706
|
CardTitle.displayName = "CardTitle";
|
|
3705
|
-
var CardDescription =
|
|
3707
|
+
var CardDescription = React17.forwardRef(
|
|
3706
3708
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3707
3709
|
"p",
|
|
3708
3710
|
{
|
|
@@ -3714,11 +3716,11 @@ var CardDescription = React16.forwardRef(
|
|
|
3714
3716
|
)
|
|
3715
3717
|
);
|
|
3716
3718
|
CardDescription.displayName = "CardDescription";
|
|
3717
|
-
var CardContent =
|
|
3719
|
+
var CardContent = React17.forwardRef(
|
|
3718
3720
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, "data-slot": "card-content", className: cn("p-5 pt-0", className), ...props })
|
|
3719
3721
|
);
|
|
3720
3722
|
CardContent.displayName = "CardContent";
|
|
3721
|
-
var CardFooter =
|
|
3723
|
+
var CardFooter = React17.forwardRef(
|
|
3722
3724
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3723
3725
|
"div",
|
|
3724
3726
|
{
|
|
@@ -3730,7 +3732,7 @@ var CardFooter = React16.forwardRef(
|
|
|
3730
3732
|
)
|
|
3731
3733
|
);
|
|
3732
3734
|
CardFooter.displayName = "CardFooter";
|
|
3733
|
-
var CardAction =
|
|
3735
|
+
var CardAction = React17.forwardRef(
|
|
3734
3736
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3735
3737
|
"div",
|
|
3736
3738
|
{
|
|
@@ -3742,7 +3744,7 @@ var CardAction = React16.forwardRef(
|
|
|
3742
3744
|
)
|
|
3743
3745
|
);
|
|
3744
3746
|
CardAction.displayName = "CardAction";
|
|
3745
|
-
var CardMedia =
|
|
3747
|
+
var CardMedia = React17.forwardRef(
|
|
3746
3748
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3747
3749
|
"div",
|
|
3748
3750
|
{
|
|
@@ -3754,9 +3756,9 @@ var CardMedia = React16.forwardRef(
|
|
|
3754
3756
|
)
|
|
3755
3757
|
);
|
|
3756
3758
|
CardMedia.displayName = "CardMedia";
|
|
3757
|
-
var CarouselContext =
|
|
3759
|
+
var CarouselContext = React17.createContext(null);
|
|
3758
3760
|
function useCarousel() {
|
|
3759
|
-
const context =
|
|
3761
|
+
const context = React17.useContext(CarouselContext);
|
|
3760
3762
|
if (!context) throw new Error("useCarousel must be used within a <Carousel />");
|
|
3761
3763
|
return context;
|
|
3762
3764
|
}
|
|
@@ -3776,20 +3778,20 @@ function Carousel({
|
|
|
3776
3778
|
},
|
|
3777
3779
|
plugins
|
|
3778
3780
|
);
|
|
3779
|
-
const [canScrollPrev, setCanScrollPrev] =
|
|
3780
|
-
const [canScrollNext, setCanScrollNext] =
|
|
3781
|
-
const onSelect =
|
|
3781
|
+
const [canScrollPrev, setCanScrollPrev] = React17.useState(false);
|
|
3782
|
+
const [canScrollNext, setCanScrollNext] = React17.useState(false);
|
|
3783
|
+
const onSelect = React17.useCallback((api) => {
|
|
3782
3784
|
if (!api) return;
|
|
3783
3785
|
setCanScrollPrev(api.canScrollPrev());
|
|
3784
3786
|
setCanScrollNext(api.canScrollNext());
|
|
3785
3787
|
}, []);
|
|
3786
|
-
const scrollPrev =
|
|
3788
|
+
const scrollPrev = React17.useCallback(() => {
|
|
3787
3789
|
emblaApi?.scrollPrev();
|
|
3788
3790
|
}, [emblaApi]);
|
|
3789
|
-
const scrollNext =
|
|
3791
|
+
const scrollNext = React17.useCallback(() => {
|
|
3790
3792
|
emblaApi?.scrollNext();
|
|
3791
3793
|
}, [emblaApi]);
|
|
3792
|
-
const handleKeyDown =
|
|
3794
|
+
const handleKeyDown = React17.useCallback(
|
|
3793
3795
|
(event) => {
|
|
3794
3796
|
if (event.key === "ArrowLeft") {
|
|
3795
3797
|
event.preventDefault();
|
|
@@ -3801,7 +3803,7 @@ function Carousel({
|
|
|
3801
3803
|
},
|
|
3802
3804
|
[scrollPrev, scrollNext]
|
|
3803
3805
|
);
|
|
3804
|
-
|
|
3806
|
+
React17.useEffect(() => {
|
|
3805
3807
|
if (!emblaApi) return;
|
|
3806
3808
|
onSelect(emblaApi);
|
|
3807
3809
|
emblaApi.on("reInit", onSelect);
|
|
@@ -3811,7 +3813,7 @@ function Carousel({
|
|
|
3811
3813
|
emblaApi.off("select", onSelect);
|
|
3812
3814
|
};
|
|
3813
3815
|
}, [emblaApi, onSelect]);
|
|
3814
|
-
|
|
3816
|
+
React17.useEffect(() => {
|
|
3815
3817
|
if (!emblaApi || !setApi) return;
|
|
3816
3818
|
setApi(emblaApi);
|
|
3817
3819
|
}, [emblaApi, setApi]);
|
|
@@ -3931,9 +3933,9 @@ var CHART_COLORS = {
|
|
|
3931
3933
|
dark: tokens.semantic.light.foreground
|
|
3932
3934
|
};
|
|
3933
3935
|
var THEMES = { light: "", dark: ".dark" };
|
|
3934
|
-
var ChartContext =
|
|
3936
|
+
var ChartContext = React17.createContext(null);
|
|
3935
3937
|
function useChart() {
|
|
3936
|
-
const context =
|
|
3938
|
+
const context = React17.useContext(ChartContext);
|
|
3937
3939
|
if (!context) {
|
|
3938
3940
|
throw new Error("useChart must be used within a <ChartContainer />");
|
|
3939
3941
|
}
|
|
@@ -3948,16 +3950,16 @@ function ChartContainer({
|
|
|
3948
3950
|
style,
|
|
3949
3951
|
...props
|
|
3950
3952
|
}) {
|
|
3951
|
-
const uniqueId =
|
|
3953
|
+
const uniqueId = React17.useId();
|
|
3952
3954
|
const chartId = `chart-${id || uniqueId.replace(/:/g, "")}`;
|
|
3953
|
-
const containerRef =
|
|
3954
|
-
const [canRenderChart, setCanRenderChart] =
|
|
3955
|
-
const initialDimension =
|
|
3955
|
+
const containerRef = React17.useRef(null);
|
|
3956
|
+
const [canRenderChart, setCanRenderChart] = React17.useState(false);
|
|
3957
|
+
const initialDimension = React17.useMemo(
|
|
3956
3958
|
() => ({ width: 800, height: typeof height === "number" ? height : 450 }),
|
|
3957
3959
|
[height]
|
|
3958
3960
|
);
|
|
3959
3961
|
const resolvedStyle = height === void 0 ? style : { ...style, height };
|
|
3960
|
-
|
|
3962
|
+
React17.useEffect(() => {
|
|
3961
3963
|
const element = containerRef.current;
|
|
3962
3964
|
if (!element) {
|
|
3963
3965
|
return;
|
|
@@ -4067,9 +4069,9 @@ function ChartTooltipContent({
|
|
|
4067
4069
|
nameKey,
|
|
4068
4070
|
labelKey
|
|
4069
4071
|
}) {
|
|
4070
|
-
const chartContext =
|
|
4072
|
+
const chartContext = React17.useContext(ChartContext);
|
|
4071
4073
|
const config = chartContext?.config ?? {};
|
|
4072
|
-
const tooltipLabel =
|
|
4074
|
+
const tooltipLabel = React17.useMemo(() => {
|
|
4073
4075
|
if (hideLabel || !payload?.length) {
|
|
4074
4076
|
return null;
|
|
4075
4077
|
}
|
|
@@ -4406,7 +4408,7 @@ var ChatMessage = forwardRef(
|
|
|
4406
4408
|
}
|
|
4407
4409
|
);
|
|
4408
4410
|
ChatMessage.displayName = "ChatMessage";
|
|
4409
|
-
var CheckboxRoot =
|
|
4411
|
+
var CheckboxRoot = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
4410
4412
|
Checkbox.Root,
|
|
4411
4413
|
{
|
|
4412
4414
|
ref,
|
|
@@ -4426,6 +4428,40 @@ var CheckboxRoot = React16.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
4426
4428
|
}
|
|
4427
4429
|
));
|
|
4428
4430
|
CheckboxRoot.displayName = "Checkbox";
|
|
4431
|
+
var CheckboxCard = React17.forwardRef(
|
|
4432
|
+
({ checked, disabled, label, description, onCheckedChange, className, children, ...props }, ref) => {
|
|
4433
|
+
const checkboxProps = {
|
|
4434
|
+
...checked !== void 0 ? { checked } : {},
|
|
4435
|
+
...disabled !== void 0 ? { disabled } : {},
|
|
4436
|
+
...onCheckedChange ? { onCheckedChange } : {}
|
|
4437
|
+
};
|
|
4438
|
+
return /* @__PURE__ */ jsxs(
|
|
4439
|
+
"label",
|
|
4440
|
+
{
|
|
4441
|
+
ref,
|
|
4442
|
+
"aria-disabled": disabled || void 0,
|
|
4443
|
+
className: cn(
|
|
4444
|
+
"group flex min-w-0 items-start gap-3 rounded-lg border border-border bg-card p-3",
|
|
4445
|
+
"text-sm text-foreground shadow-natural transition-[background-color,border-color,box-shadow,opacity,scale]",
|
|
4446
|
+
"hover:bg-muted/40 active:scale-[0.98]",
|
|
4447
|
+
"has-[:focus-visible]:ring-1 has-[:focus-visible]:ring-[#6B97FF]",
|
|
4448
|
+
"has-[:disabled]:cursor-not-allowed has-[:disabled]:opacity-50",
|
|
4449
|
+
className
|
|
4450
|
+
),
|
|
4451
|
+
...props,
|
|
4452
|
+
children: [
|
|
4453
|
+
/* @__PURE__ */ jsx(CheckboxRoot, { ...checkboxProps, className: "mt-0.5" }),
|
|
4454
|
+
/* @__PURE__ */ jsxs("span", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
|
|
4455
|
+
/* @__PURE__ */ jsx("span", { className: "font-medium leading-5 text-foreground", children: label }),
|
|
4456
|
+
description ? /* @__PURE__ */ jsx("span", { className: "text-[12px] leading-4 text-muted-foreground", children: description }) : null,
|
|
4457
|
+
children
|
|
4458
|
+
] })
|
|
4459
|
+
]
|
|
4460
|
+
}
|
|
4461
|
+
);
|
|
4462
|
+
}
|
|
4463
|
+
);
|
|
4464
|
+
CheckboxCard.displayName = "CheckboxCard";
|
|
4429
4465
|
var CheckboxGroupContext = createContext(null);
|
|
4430
4466
|
function useCheckboxGroup() {
|
|
4431
4467
|
const ctx = useContext(CheckboxGroupContext);
|
|
@@ -7966,8 +8002,8 @@ function ColorInput2({
|
|
|
7966
8002
|
presets
|
|
7967
8003
|
}) {
|
|
7968
8004
|
const shape3 = useShape();
|
|
7969
|
-
const [hex, setHex] =
|
|
7970
|
-
|
|
8005
|
+
const [hex, setHex] = React17.useState(value);
|
|
8006
|
+
React17.useEffect(() => {
|
|
7971
8007
|
setHex(value);
|
|
7972
8008
|
}, [value]);
|
|
7973
8009
|
const commitHex = (next) => {
|
|
@@ -8040,20 +8076,20 @@ function Combobox({
|
|
|
8040
8076
|
className
|
|
8041
8077
|
}) {
|
|
8042
8078
|
const shape3 = useShape();
|
|
8043
|
-
const [open, setOpen] =
|
|
8044
|
-
const [query, setQuery] =
|
|
8045
|
-
const [activeIndex, setActiveIndex] =
|
|
8046
|
-
const containerRef =
|
|
8047
|
-
const inputRef =
|
|
8048
|
-
const listboxId =
|
|
8079
|
+
const [open, setOpen] = React17.useState(false);
|
|
8080
|
+
const [query, setQuery] = React17.useState("");
|
|
8081
|
+
const [activeIndex, setActiveIndex] = React17.useState(-1);
|
|
8082
|
+
const containerRef = React17.useRef(null);
|
|
8083
|
+
const inputRef = React17.useRef(null);
|
|
8084
|
+
const listboxId = React17.useId();
|
|
8049
8085
|
const selectedOption = options.find((o) => o.value === value);
|
|
8050
8086
|
const filtered = query === "" ? options : options.filter(
|
|
8051
8087
|
(o) => o.label.toLowerCase().includes(query.toLowerCase()) || o.description?.toLowerCase().includes(query.toLowerCase())
|
|
8052
8088
|
);
|
|
8053
|
-
|
|
8089
|
+
React17.useEffect(() => {
|
|
8054
8090
|
setActiveIndex(-1);
|
|
8055
8091
|
}, [filtered.length, open]);
|
|
8056
|
-
|
|
8092
|
+
React17.useEffect(() => {
|
|
8057
8093
|
function onMouseDown(e) {
|
|
8058
8094
|
if (containerRef.current && !containerRef.current.contains(e.target)) {
|
|
8059
8095
|
setOpen(false);
|
|
@@ -8373,9 +8409,9 @@ function CommandPalette({
|
|
|
8373
8409
|
placeholder = "Search...",
|
|
8374
8410
|
emptyText = "No results found."
|
|
8375
8411
|
}) {
|
|
8376
|
-
const [query, setQuery] =
|
|
8377
|
-
const inputRef =
|
|
8378
|
-
|
|
8412
|
+
const [query, setQuery] = React17.useState("");
|
|
8413
|
+
const inputRef = React17.useRef(null);
|
|
8414
|
+
React17.useEffect(() => {
|
|
8379
8415
|
if (open) {
|
|
8380
8416
|
setTimeout(() => inputRef.current?.focus(), 50);
|
|
8381
8417
|
setQuery("");
|
|
@@ -8442,19 +8478,19 @@ function CommandPalette({
|
|
|
8442
8478
|
] }) });
|
|
8443
8479
|
}
|
|
8444
8480
|
CommandPalette.displayName = "CommandPalette";
|
|
8445
|
-
var CommandCtx =
|
|
8481
|
+
var CommandCtx = React17.createContext({
|
|
8446
8482
|
query: "",
|
|
8447
8483
|
setQuery: () => {
|
|
8448
8484
|
},
|
|
8449
8485
|
reportVisible: () => {
|
|
8450
8486
|
}
|
|
8451
8487
|
});
|
|
8452
|
-
var CommandVisibleCtx =
|
|
8488
|
+
var CommandVisibleCtx = React17.createContext(0);
|
|
8453
8489
|
function Command({ className, children, onSelect, ...props }) {
|
|
8454
|
-
const [query, setQuery] =
|
|
8455
|
-
const visibleIds =
|
|
8456
|
-
const [visibleCount, setVisibleCount] =
|
|
8457
|
-
const reportVisible =
|
|
8490
|
+
const [query, setQuery] = React17.useState("");
|
|
8491
|
+
const visibleIds = React17.useRef(/* @__PURE__ */ new Set());
|
|
8492
|
+
const [visibleCount, setVisibleCount] = React17.useState(0);
|
|
8493
|
+
const reportVisible = React17.useCallback((id, visible) => {
|
|
8458
8494
|
const had = visibleIds.current.has(id);
|
|
8459
8495
|
if (visible && !had) {
|
|
8460
8496
|
visibleIds.current.add(id);
|
|
@@ -8482,8 +8518,8 @@ function Command({ className, children, onSelect, ...props }) {
|
|
|
8482
8518
|
}
|
|
8483
8519
|
);
|
|
8484
8520
|
}
|
|
8485
|
-
var CommandInput =
|
|
8486
|
-
const { query, setQuery } =
|
|
8521
|
+
var CommandInput = React17.forwardRef(({ className, ...props }, ref) => {
|
|
8522
|
+
const { query, setQuery } = React17.useContext(CommandCtx);
|
|
8487
8523
|
return /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 border-b border-border px-3", children: [
|
|
8488
8524
|
/* @__PURE__ */ jsx(Search, { size: 14, className: "shrink-0 text-muted-foreground" }),
|
|
8489
8525
|
/* @__PURE__ */ jsx(
|
|
@@ -8507,10 +8543,10 @@ var CommandInput = React16.forwardRef(({ className, ...props }, ref) => {
|
|
|
8507
8543
|
] });
|
|
8508
8544
|
});
|
|
8509
8545
|
CommandInput.displayName = "CommandInput";
|
|
8510
|
-
var CommandList =
|
|
8546
|
+
var CommandList = React17.forwardRef(
|
|
8511
8547
|
({ className, ...props }, ref) => {
|
|
8512
|
-
const listRef =
|
|
8513
|
-
const combinedRef =
|
|
8548
|
+
const listRef = React17.useRef(null);
|
|
8549
|
+
const combinedRef = React17.useCallback(
|
|
8514
8550
|
(el) => {
|
|
8515
8551
|
listRef.current = el;
|
|
8516
8552
|
if (typeof ref === "function") ref(el);
|
|
@@ -8545,9 +8581,9 @@ var CommandList = React16.forwardRef(
|
|
|
8545
8581
|
}
|
|
8546
8582
|
);
|
|
8547
8583
|
CommandList.displayName = "CommandList";
|
|
8548
|
-
var CommandEmpty =
|
|
8584
|
+
var CommandEmpty = React17.forwardRef(
|
|
8549
8585
|
({ className, children = "No results found.", ...props }, ref) => {
|
|
8550
|
-
const visibleCount =
|
|
8586
|
+
const visibleCount = React17.useContext(CommandVisibleCtx);
|
|
8551
8587
|
if (visibleCount > 0) return null;
|
|
8552
8588
|
return /* @__PURE__ */ jsx(
|
|
8553
8589
|
"div",
|
|
@@ -8561,20 +8597,20 @@ var CommandEmpty = React16.forwardRef(
|
|
|
8561
8597
|
}
|
|
8562
8598
|
);
|
|
8563
8599
|
CommandEmpty.displayName = "CommandEmpty";
|
|
8564
|
-
var CommandGroup =
|
|
8600
|
+
var CommandGroup = React17.forwardRef(
|
|
8565
8601
|
({ className, heading, children, ...props }, ref) => /* @__PURE__ */ jsxs("div", { ref, role: "group", className: cn("py-1", className), ...props, children: [
|
|
8566
8602
|
heading && /* @__PURE__ */ jsx("p", { className: "px-3 pb-1 pt-0.5 label text-muted-foreground", children: heading }),
|
|
8567
8603
|
children
|
|
8568
8604
|
] })
|
|
8569
8605
|
);
|
|
8570
8606
|
CommandGroup.displayName = "CommandGroup";
|
|
8571
|
-
var CommandItem =
|
|
8607
|
+
var CommandItem = React17.forwardRef(
|
|
8572
8608
|
({ className, value = "", keywords, disabled, onSelect, children, ...props }, ref) => {
|
|
8573
|
-
const { query, onSelect: ctxOnSelect, reportVisible } =
|
|
8574
|
-
const id =
|
|
8609
|
+
const { query, onSelect: ctxOnSelect, reportVisible } = React17.useContext(CommandCtx);
|
|
8610
|
+
const id = React17.useId();
|
|
8575
8611
|
const searchText = (keywords ?? [value]).join(" ").toLowerCase();
|
|
8576
8612
|
const isVisible = !query || searchText.includes(query.toLowerCase());
|
|
8577
|
-
|
|
8613
|
+
React17.useLayoutEffect(() => {
|
|
8578
8614
|
reportVisible(id, isVisible && !disabled);
|
|
8579
8615
|
return () => reportVisible(id, false);
|
|
8580
8616
|
}, [id, isVisible, disabled, reportVisible]);
|
|
@@ -8615,7 +8651,7 @@ var CommandItem = React16.forwardRef(
|
|
|
8615
8651
|
}
|
|
8616
8652
|
);
|
|
8617
8653
|
CommandItem.displayName = "CommandItem";
|
|
8618
|
-
var CommandSeparator =
|
|
8654
|
+
var CommandSeparator = React17.forwardRef(
|
|
8619
8655
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("my-1 h-px bg-muted", className), ...props })
|
|
8620
8656
|
);
|
|
8621
8657
|
CommandSeparator.displayName = "CommandSeparator";
|
|
@@ -8652,7 +8688,7 @@ var ContextMenuGroup = ContextMenu.Group;
|
|
|
8652
8688
|
var ContextMenuPortal = ContextMenu.Portal;
|
|
8653
8689
|
var ContextMenuSub = ContextMenu.Sub;
|
|
8654
8690
|
var ContextMenuRadioGroup = ContextMenu.RadioGroup;
|
|
8655
|
-
var ContextMenuContent =
|
|
8691
|
+
var ContextMenuContent = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
8656
8692
|
/* @__PURE__ */ jsx("style", { children: mobilePopperSheetStyle }),
|
|
8657
8693
|
/* @__PURE__ */ jsx(ContextMenu.Portal, { children: /* @__PURE__ */ jsx(
|
|
8658
8694
|
ContextMenu.Content,
|
|
@@ -8677,7 +8713,7 @@ var ContextMenuContent = React16.forwardRef(({ className, ...props }, ref) => /*
|
|
|
8677
8713
|
) })
|
|
8678
8714
|
] }));
|
|
8679
8715
|
ContextMenuContent.displayName = "ContextMenuContent";
|
|
8680
|
-
var ContextMenuItem =
|
|
8716
|
+
var ContextMenuItem = React17.forwardRef(({ className, inset, destructive, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
8681
8717
|
ContextMenu.Item,
|
|
8682
8718
|
{
|
|
8683
8719
|
ref,
|
|
@@ -8693,7 +8729,7 @@ var ContextMenuItem = React16.forwardRef(({ className, inset, destructive, ...pr
|
|
|
8693
8729
|
}
|
|
8694
8730
|
));
|
|
8695
8731
|
ContextMenuItem.displayName = "ContextMenuItem";
|
|
8696
|
-
var ContextMenuCheckboxItem =
|
|
8732
|
+
var ContextMenuCheckboxItem = React17.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
8697
8733
|
ContextMenu.CheckboxItem,
|
|
8698
8734
|
{
|
|
8699
8735
|
ref,
|
|
@@ -8712,7 +8748,7 @@ var ContextMenuCheckboxItem = React16.forwardRef(({ className, children, ...prop
|
|
|
8712
8748
|
}
|
|
8713
8749
|
));
|
|
8714
8750
|
ContextMenuCheckboxItem.displayName = "ContextMenuCheckboxItem";
|
|
8715
|
-
var ContextMenuRadioItem =
|
|
8751
|
+
var ContextMenuRadioItem = React17.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
8716
8752
|
ContextMenu.RadioItem,
|
|
8717
8753
|
{
|
|
8718
8754
|
ref,
|
|
@@ -8731,7 +8767,7 @@ var ContextMenuRadioItem = React16.forwardRef(({ className, children, ...props }
|
|
|
8731
8767
|
}
|
|
8732
8768
|
));
|
|
8733
8769
|
ContextMenuRadioItem.displayName = "ContextMenuRadioItem";
|
|
8734
|
-
var ContextMenuLabel =
|
|
8770
|
+
var ContextMenuLabel = React17.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
8735
8771
|
ContextMenu.Label,
|
|
8736
8772
|
{
|
|
8737
8773
|
ref,
|
|
@@ -8740,7 +8776,7 @@ var ContextMenuLabel = React16.forwardRef(({ className, inset, ...props }, ref)
|
|
|
8740
8776
|
}
|
|
8741
8777
|
));
|
|
8742
8778
|
ContextMenuLabel.displayName = "ContextMenuLabel";
|
|
8743
|
-
var ContextMenuSeparator =
|
|
8779
|
+
var ContextMenuSeparator = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
8744
8780
|
ContextMenu.Separator,
|
|
8745
8781
|
{
|
|
8746
8782
|
ref,
|
|
@@ -8749,7 +8785,7 @@ var ContextMenuSeparator = React16.forwardRef(({ className, ...props }, ref) =>
|
|
|
8749
8785
|
}
|
|
8750
8786
|
));
|
|
8751
8787
|
ContextMenuSeparator.displayName = "ContextMenuSeparator";
|
|
8752
|
-
var ContextMenuSubTrigger =
|
|
8788
|
+
var ContextMenuSubTrigger = React17.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
8753
8789
|
ContextMenu.SubTrigger,
|
|
8754
8790
|
{
|
|
8755
8791
|
ref,
|
|
@@ -8768,7 +8804,7 @@ var ContextMenuSubTrigger = React16.forwardRef(({ className, inset, children, ..
|
|
|
8768
8804
|
}
|
|
8769
8805
|
));
|
|
8770
8806
|
ContextMenuSubTrigger.displayName = "ContextMenuSubTrigger";
|
|
8771
|
-
var ContextMenuSubContent =
|
|
8807
|
+
var ContextMenuSubContent = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
8772
8808
|
/* @__PURE__ */ jsx("style", { children: mobilePopperSheetStyle }),
|
|
8773
8809
|
/* @__PURE__ */ jsx(
|
|
8774
8810
|
ContextMenu.SubContent,
|
|
@@ -8965,8 +9001,8 @@ function DataTable({
|
|
|
8965
9001
|
pageSize = 10,
|
|
8966
9002
|
showPagination = true
|
|
8967
9003
|
}) {
|
|
8968
|
-
const [sorting, setSorting] =
|
|
8969
|
-
const [columnFilters, setColumnFilters] =
|
|
9004
|
+
const [sorting, setSorting] = React17.useState([]);
|
|
9005
|
+
const [columnFilters, setColumnFilters] = React17.useState([]);
|
|
8970
9006
|
const table = useReactTable({
|
|
8971
9007
|
data,
|
|
8972
9008
|
columns,
|
|
@@ -9819,7 +9855,7 @@ DataTransferControls.displayName = "DataTransferControls";
|
|
|
9819
9855
|
var PopoverRoot = Popover.Root;
|
|
9820
9856
|
var PopoverTrigger = Popover.Trigger;
|
|
9821
9857
|
var PopoverClose = Popover.Close;
|
|
9822
|
-
var PopoverContent =
|
|
9858
|
+
var PopoverContent = React17.forwardRef(({ className, align = "center", sideOffset = 6, ...props }, ref) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
9823
9859
|
/* @__PURE__ */ jsx("style", { children: mobilePopperSheetStyle }),
|
|
9824
9860
|
/* @__PURE__ */ jsx(Popover.Portal, { children: /* @__PURE__ */ jsx(
|
|
9825
9861
|
Popover.Content,
|
|
@@ -9927,7 +9963,7 @@ var DrawerRoot = Drawer.Root;
|
|
|
9927
9963
|
var DrawerTrigger = Drawer.Trigger;
|
|
9928
9964
|
var DrawerPortal = Drawer.Portal;
|
|
9929
9965
|
var DrawerClose = Drawer.Close;
|
|
9930
|
-
var DrawerOverlay =
|
|
9966
|
+
var DrawerOverlay = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
9931
9967
|
Drawer.Overlay,
|
|
9932
9968
|
{
|
|
9933
9969
|
ref,
|
|
@@ -9936,7 +9972,7 @@ var DrawerOverlay = React16.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
9936
9972
|
}
|
|
9937
9973
|
));
|
|
9938
9974
|
DrawerOverlay.displayName = "DrawerOverlay";
|
|
9939
|
-
var DrawerContent =
|
|
9975
|
+
var DrawerContent = React17.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(DrawerPortal, { children: [
|
|
9940
9976
|
/* @__PURE__ */ jsx(DrawerOverlay, {}),
|
|
9941
9977
|
/* @__PURE__ */ jsxs(
|
|
9942
9978
|
Drawer.Content,
|
|
@@ -9959,7 +9995,7 @@ var DrawerHeader = ({ className, ...props }) => /* @__PURE__ */ jsx("div", { cla
|
|
|
9959
9995
|
DrawerHeader.displayName = "DrawerHeader";
|
|
9960
9996
|
var DrawerFooter = ({ className, ...props }) => /* @__PURE__ */ jsx("div", { className: cn("mt-auto flex flex-col gap-2 px-6 pb-6", className), ...props });
|
|
9961
9997
|
DrawerFooter.displayName = "DrawerFooter";
|
|
9962
|
-
var DrawerTitle =
|
|
9998
|
+
var DrawerTitle = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
9963
9999
|
Drawer.Title,
|
|
9964
10000
|
{
|
|
9965
10001
|
ref,
|
|
@@ -9968,7 +10004,7 @@ var DrawerTitle = React16.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
9968
10004
|
}
|
|
9969
10005
|
));
|
|
9970
10006
|
DrawerTitle.displayName = "DrawerTitle";
|
|
9971
|
-
var DrawerDescription =
|
|
10007
|
+
var DrawerDescription = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
9972
10008
|
Drawer.Description,
|
|
9973
10009
|
{
|
|
9974
10010
|
ref,
|
|
@@ -9988,7 +10024,7 @@ function EmptyState({ icon, title, description, action, className }) {
|
|
|
9988
10024
|
] });
|
|
9989
10025
|
}
|
|
9990
10026
|
EmptyState.displayName = "EmptyState";
|
|
9991
|
-
var Label =
|
|
10027
|
+
var Label = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
9992
10028
|
Label$1.Root,
|
|
9993
10029
|
{
|
|
9994
10030
|
ref,
|
|
@@ -10089,12 +10125,12 @@ function FileDropzone({
|
|
|
10089
10125
|
onClick,
|
|
10090
10126
|
...props
|
|
10091
10127
|
}) {
|
|
10092
|
-
const [isDragging, setIsDragging] =
|
|
10093
|
-
const inputId =
|
|
10128
|
+
const [isDragging, setIsDragging] = React17.useState(false);
|
|
10129
|
+
const inputId = React17.useId();
|
|
10094
10130
|
const resolvedId = id ?? inputId;
|
|
10095
10131
|
const fileSummary = getFileSummary(selectedFiles ?? []);
|
|
10096
10132
|
const isUnavailable = Boolean(disabled || loading);
|
|
10097
|
-
const emitFiles =
|
|
10133
|
+
const emitFiles = React17.useCallback(
|
|
10098
10134
|
(fileList) => {
|
|
10099
10135
|
if (!fileList || isUnavailable) return;
|
|
10100
10136
|
onFilesSelected?.(Array.from(fileList));
|
|
@@ -10293,11 +10329,11 @@ function HelpTooltip({
|
|
|
10293
10329
|
className,
|
|
10294
10330
|
contentClassName
|
|
10295
10331
|
}) {
|
|
10296
|
-
const [open, setOpen] =
|
|
10297
|
-
const rootRef =
|
|
10332
|
+
const [open, setOpen] = React17.useState(false);
|
|
10333
|
+
const rootRef = React17.useRef(null);
|
|
10298
10334
|
const url = learnMoreUrl ?? learnMoreURL;
|
|
10299
10335
|
const body = text.length > 120 ? `${text.slice(0, 117)}...` : text;
|
|
10300
|
-
|
|
10336
|
+
React17.useEffect(() => {
|
|
10301
10337
|
if (!open) return;
|
|
10302
10338
|
const onPointerDown = (event) => {
|
|
10303
10339
|
if (!rootRef.current?.contains(event.target)) {
|
|
@@ -10352,7 +10388,7 @@ function HelpTooltip({
|
|
|
10352
10388
|
HelpTooltip.displayName = "HelpTooltip";
|
|
10353
10389
|
var HoverCardRoot = HoverCard.Root;
|
|
10354
10390
|
var HoverCardTrigger = HoverCard.Trigger;
|
|
10355
|
-
var HoverCardContent =
|
|
10391
|
+
var HoverCardContent = React17.forwardRef(({ className, align = "center", sideOffset = 6, ...props }, ref) => /* @__PURE__ */ jsx(HoverCard.Portal, { children: /* @__PURE__ */ jsx(
|
|
10356
10392
|
HoverCard.Content,
|
|
10357
10393
|
{
|
|
10358
10394
|
ref,
|
|
@@ -11455,7 +11491,7 @@ var InputMessage = forwardRef(
|
|
|
11455
11491
|
}
|
|
11456
11492
|
);
|
|
11457
11493
|
InputMessage.displayName = "InputMessage";
|
|
11458
|
-
var InputNumber =
|
|
11494
|
+
var InputNumber = React17.forwardRef(
|
|
11459
11495
|
({
|
|
11460
11496
|
value,
|
|
11461
11497
|
onChange,
|
|
@@ -11475,16 +11511,16 @@ var InputNumber = React16.forwardRef(
|
|
|
11475
11511
|
...rest
|
|
11476
11512
|
}, ref) => {
|
|
11477
11513
|
const shape3 = useShape();
|
|
11478
|
-
const formatValue =
|
|
11514
|
+
const formatValue = React17.useCallback(
|
|
11479
11515
|
(next) => next === null ? mixedLabel : next.toFixed(precision),
|
|
11480
11516
|
[mixedLabel, precision]
|
|
11481
11517
|
);
|
|
11482
|
-
const [text, setText] =
|
|
11483
|
-
|
|
11518
|
+
const [text, setText] = React17.useState(formatValue(value));
|
|
11519
|
+
React17.useEffect(() => {
|
|
11484
11520
|
setText(formatValue(value));
|
|
11485
11521
|
}, [formatValue, value]);
|
|
11486
|
-
const clamp =
|
|
11487
|
-
const parseAndClamp =
|
|
11522
|
+
const clamp = React17.useCallback((n) => Math.min(max, Math.max(min, n)), [min, max]);
|
|
11523
|
+
const parseAndClamp = React17.useCallback(
|
|
11488
11524
|
(raw) => {
|
|
11489
11525
|
const n = parseFloat(raw);
|
|
11490
11526
|
if (Number.isFinite(n)) {
|
|
@@ -11604,7 +11640,7 @@ var InputNumber = React16.forwardRef(
|
|
|
11604
11640
|
}
|
|
11605
11641
|
);
|
|
11606
11642
|
InputNumber.displayName = "InputNumber";
|
|
11607
|
-
var InputOTP =
|
|
11643
|
+
var InputOTP = React17.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
11608
11644
|
OTPInput,
|
|
11609
11645
|
{
|
|
11610
11646
|
ref,
|
|
@@ -11614,12 +11650,12 @@ var InputOTP = React16.forwardRef(({ className, containerClassName, ...props },
|
|
|
11614
11650
|
}
|
|
11615
11651
|
));
|
|
11616
11652
|
InputOTP.displayName = "InputOTP";
|
|
11617
|
-
var InputOTPGroup =
|
|
11653
|
+
var InputOTPGroup = React17.forwardRef(
|
|
11618
11654
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("flex items-center", className), ...props })
|
|
11619
11655
|
);
|
|
11620
11656
|
InputOTPGroup.displayName = "InputOTPGroup";
|
|
11621
|
-
var InputOTPSlot =
|
|
11622
|
-
const inputOTPContext =
|
|
11657
|
+
var InputOTPSlot = React17.forwardRef(({ index, className, ...props }, ref) => {
|
|
11658
|
+
const inputOTPContext = React17.useContext(OTPInputContext);
|
|
11623
11659
|
const { char, hasFakeCaret, isActive } = inputOTPContext?.slots[index] ?? {};
|
|
11624
11660
|
return /* @__PURE__ */ jsxs(
|
|
11625
11661
|
"div",
|
|
@@ -11642,11 +11678,11 @@ var InputOTPSlot = React16.forwardRef(({ index, className, ...props }, ref) => {
|
|
|
11642
11678
|
);
|
|
11643
11679
|
});
|
|
11644
11680
|
InputOTPSlot.displayName = "InputOTPSlot";
|
|
11645
|
-
var InputOTPSeparator =
|
|
11681
|
+
var InputOTPSeparator = React17.forwardRef(
|
|
11646
11682
|
({ ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, role: "separator", ...props, children: /* @__PURE__ */ jsx(Minus, { size: 14, className: "text-muted-foreground" }) })
|
|
11647
11683
|
);
|
|
11648
11684
|
InputOTPSeparator.displayName = "InputOTPSeparator";
|
|
11649
|
-
var Kbd =
|
|
11685
|
+
var Kbd = React17.forwardRef(
|
|
11650
11686
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
11651
11687
|
"kbd",
|
|
11652
11688
|
{
|
|
@@ -11932,7 +11968,7 @@ var MenuItem = forwardRef(
|
|
|
11932
11968
|
}
|
|
11933
11969
|
);
|
|
11934
11970
|
MenuItem.displayName = "MenuItem";
|
|
11935
|
-
var MenubarRoot =
|
|
11971
|
+
var MenubarRoot = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
11936
11972
|
Menubar.Root,
|
|
11937
11973
|
{
|
|
11938
11974
|
ref,
|
|
@@ -11948,7 +11984,7 @@ var MenubarMenu = Menubar.Menu;
|
|
|
11948
11984
|
var MenubarGroup = Menubar.Group;
|
|
11949
11985
|
var MenubarSub = Menubar.Sub;
|
|
11950
11986
|
var MenubarRadioGroup = Menubar.RadioGroup;
|
|
11951
|
-
var MenubarTrigger =
|
|
11987
|
+
var MenubarTrigger = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
11952
11988
|
Menubar.Trigger,
|
|
11953
11989
|
{
|
|
11954
11990
|
ref,
|
|
@@ -11963,7 +11999,7 @@ var MenubarTrigger = React16.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
11963
11999
|
}
|
|
11964
12000
|
));
|
|
11965
12001
|
MenubarTrigger.displayName = "MenubarTrigger";
|
|
11966
|
-
var MenubarContent =
|
|
12002
|
+
var MenubarContent = React17.forwardRef(({ className, align = "start", alignOffset = -4, sideOffset = 8, ...props }, ref) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
11967
12003
|
/* @__PURE__ */ jsx("style", { children: mobilePopperSheetStyle }),
|
|
11968
12004
|
/* @__PURE__ */ jsx(Menubar.Portal, { children: /* @__PURE__ */ jsx(
|
|
11969
12005
|
Menubar.Content,
|
|
@@ -11991,7 +12027,7 @@ var MenubarContent = React16.forwardRef(({ className, align = "start", alignOffs
|
|
|
11991
12027
|
) })
|
|
11992
12028
|
] }));
|
|
11993
12029
|
MenubarContent.displayName = "MenubarContent";
|
|
11994
|
-
var MenubarItem =
|
|
12030
|
+
var MenubarItem = React17.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
11995
12031
|
Menubar.Item,
|
|
11996
12032
|
{
|
|
11997
12033
|
ref,
|
|
@@ -12007,7 +12043,7 @@ var MenubarItem = React16.forwardRef(({ className, inset, ...props }, ref) => /*
|
|
|
12007
12043
|
}
|
|
12008
12044
|
));
|
|
12009
12045
|
MenubarItem.displayName = "MenubarItem";
|
|
12010
|
-
var MenubarCheckboxItem =
|
|
12046
|
+
var MenubarCheckboxItem = React17.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
12011
12047
|
Menubar.CheckboxItem,
|
|
12012
12048
|
{
|
|
12013
12049
|
ref,
|
|
@@ -12026,7 +12062,7 @@ var MenubarCheckboxItem = React16.forwardRef(({ className, children, ...props },
|
|
|
12026
12062
|
}
|
|
12027
12063
|
));
|
|
12028
12064
|
MenubarCheckboxItem.displayName = "MenubarCheckboxItem";
|
|
12029
|
-
var MenubarRadioItem =
|
|
12065
|
+
var MenubarRadioItem = React17.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
12030
12066
|
Menubar.RadioItem,
|
|
12031
12067
|
{
|
|
12032
12068
|
ref,
|
|
@@ -12045,7 +12081,7 @@ var MenubarRadioItem = React16.forwardRef(({ className, children, ...props }, re
|
|
|
12045
12081
|
}
|
|
12046
12082
|
));
|
|
12047
12083
|
MenubarRadioItem.displayName = "MenubarRadioItem";
|
|
12048
|
-
var MenubarLabel =
|
|
12084
|
+
var MenubarLabel = React17.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
12049
12085
|
Menubar.Label,
|
|
12050
12086
|
{
|
|
12051
12087
|
ref,
|
|
@@ -12054,9 +12090,9 @@ var MenubarLabel = React16.forwardRef(({ className, inset, ...props }, ref) => /
|
|
|
12054
12090
|
}
|
|
12055
12091
|
));
|
|
12056
12092
|
MenubarLabel.displayName = "MenubarLabel";
|
|
12057
|
-
var MenubarSeparator =
|
|
12093
|
+
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
12094
|
MenubarSeparator.displayName = "MenubarSeparator";
|
|
12059
|
-
var MenubarSubTrigger =
|
|
12095
|
+
var MenubarSubTrigger = React17.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
12060
12096
|
Menubar.SubTrigger,
|
|
12061
12097
|
{
|
|
12062
12098
|
ref,
|
|
@@ -12075,7 +12111,7 @@ var MenubarSubTrigger = React16.forwardRef(({ className, inset, children, ...pro
|
|
|
12075
12111
|
}
|
|
12076
12112
|
));
|
|
12077
12113
|
MenubarSubTrigger.displayName = "MenubarSubTrigger";
|
|
12078
|
-
var MenubarSubContent =
|
|
12114
|
+
var MenubarSubContent = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
12079
12115
|
/* @__PURE__ */ jsx("style", { children: mobilePopperSheetStyle }),
|
|
12080
12116
|
/* @__PURE__ */ jsx(
|
|
12081
12117
|
Menubar.SubContent,
|
|
@@ -12106,7 +12142,7 @@ MenubarShortcut.displayName = "MenubarShortcut";
|
|
|
12106
12142
|
var SheetRoot = Dialog$1.Root;
|
|
12107
12143
|
var SheetTrigger = Dialog$1.Trigger;
|
|
12108
12144
|
var SheetClose = Dialog$1.Close;
|
|
12109
|
-
var SheetOverlay =
|
|
12145
|
+
var SheetOverlay = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
12110
12146
|
Dialog$1.Overlay,
|
|
12111
12147
|
{
|
|
12112
12148
|
ref,
|
|
@@ -12141,7 +12177,7 @@ var sheetContentVariants = cva(
|
|
|
12141
12177
|
}
|
|
12142
12178
|
}
|
|
12143
12179
|
);
|
|
12144
|
-
var SheetContent =
|
|
12180
|
+
var SheetContent = React17.forwardRef(
|
|
12145
12181
|
({ className, children, side = "right", ...props }, ref) => /* @__PURE__ */ jsxs(Dialog$1.Portal, { children: [
|
|
12146
12182
|
/* @__PURE__ */ jsx(SheetOverlay, {}),
|
|
12147
12183
|
/* @__PURE__ */ jsxs(
|
|
@@ -12181,7 +12217,7 @@ function SheetFooter({ className, ...props }) {
|
|
|
12181
12217
|
return /* @__PURE__ */ jsx("div", { className: cn("flex items-center justify-end gap-2 mt-6", className), ...props });
|
|
12182
12218
|
}
|
|
12183
12219
|
SheetFooter.displayName = "SheetFooter";
|
|
12184
|
-
var SheetTitle =
|
|
12220
|
+
var SheetTitle = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
12185
12221
|
Dialog$1.Title,
|
|
12186
12222
|
{
|
|
12187
12223
|
ref,
|
|
@@ -12190,7 +12226,7 @@ var SheetTitle = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
12190
12226
|
}
|
|
12191
12227
|
));
|
|
12192
12228
|
SheetTitle.displayName = "SheetTitle";
|
|
12193
|
-
var SheetDescription =
|
|
12229
|
+
var SheetDescription = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
12194
12230
|
Dialog$1.Description,
|
|
12195
12231
|
{
|
|
12196
12232
|
ref,
|
|
@@ -12218,7 +12254,7 @@ function MobileDrawer({
|
|
|
12218
12254
|
] });
|
|
12219
12255
|
}
|
|
12220
12256
|
MobileDrawer.displayName = "MobileDrawer";
|
|
12221
|
-
var NativeSelect =
|
|
12257
|
+
var NativeSelect = React17.forwardRef(({ className, children, ...props }, ref) => {
|
|
12222
12258
|
const shape3 = useShape();
|
|
12223
12259
|
return /* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
12224
12260
|
/* @__PURE__ */ jsx(
|
|
@@ -12248,11 +12284,11 @@ var NativeSelect = React16.forwardRef(({ className, children, ...props }, ref) =
|
|
|
12248
12284
|
] });
|
|
12249
12285
|
});
|
|
12250
12286
|
NativeSelect.displayName = "NativeSelect";
|
|
12251
|
-
var NativeSelectOption =
|
|
12287
|
+
var NativeSelectOption = React17.forwardRef((props, ref) => /* @__PURE__ */ jsx("option", { ref, ...props }));
|
|
12252
12288
|
NativeSelectOption.displayName = "NativeSelectOption";
|
|
12253
|
-
var NativeSelectOptGroup =
|
|
12289
|
+
var NativeSelectOptGroup = React17.forwardRef((props, ref) => /* @__PURE__ */ jsx("optgroup", { ref, ...props }));
|
|
12254
12290
|
NativeSelectOptGroup.displayName = "NativeSelectOptGroup";
|
|
12255
|
-
var NavItem =
|
|
12291
|
+
var NavItem = React17.forwardRef(
|
|
12256
12292
|
({ icon, active, trailing, className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
12257
12293
|
"a",
|
|
12258
12294
|
{
|
|
@@ -12302,7 +12338,7 @@ function NavMenu({ items, className, ...props }) {
|
|
|
12302
12338
|
);
|
|
12303
12339
|
}
|
|
12304
12340
|
NavMenu.displayName = "NavMenu";
|
|
12305
|
-
var NavigationMenuRoot =
|
|
12341
|
+
var NavigationMenuRoot = React17.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
12306
12342
|
NavigationMenu.Root,
|
|
12307
12343
|
{
|
|
12308
12344
|
ref,
|
|
@@ -12312,7 +12348,7 @@ var NavigationMenuRoot = React16.forwardRef(({ className, children, ...props },
|
|
|
12312
12348
|
}
|
|
12313
12349
|
));
|
|
12314
12350
|
NavigationMenuRoot.displayName = "NavigationMenu";
|
|
12315
|
-
var NavigationMenuList =
|
|
12351
|
+
var NavigationMenuList = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
12316
12352
|
NavigationMenu.List,
|
|
12317
12353
|
{
|
|
12318
12354
|
ref,
|
|
@@ -12322,7 +12358,7 @@ var NavigationMenuList = React16.forwardRef(({ className, ...props }, ref) => /*
|
|
|
12322
12358
|
));
|
|
12323
12359
|
NavigationMenuList.displayName = "NavigationMenuList";
|
|
12324
12360
|
var NavigationMenuItem = NavigationMenu.Item;
|
|
12325
|
-
var NavigationMenuTrigger =
|
|
12361
|
+
var NavigationMenuTrigger = React17.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
12326
12362
|
NavigationMenu.Trigger,
|
|
12327
12363
|
{
|
|
12328
12364
|
ref,
|
|
@@ -12349,7 +12385,7 @@ var NavigationMenuTrigger = React16.forwardRef(({ className, children, ...props
|
|
|
12349
12385
|
}
|
|
12350
12386
|
));
|
|
12351
12387
|
NavigationMenuTrigger.displayName = "NavigationMenuTrigger";
|
|
12352
|
-
var NavigationMenuContent =
|
|
12388
|
+
var NavigationMenuContent = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
12353
12389
|
NavigationMenu.Content,
|
|
12354
12390
|
{
|
|
12355
12391
|
ref,
|
|
@@ -12366,7 +12402,7 @@ var NavigationMenuContent = React16.forwardRef(({ className, ...props }, ref) =>
|
|
|
12366
12402
|
}
|
|
12367
12403
|
));
|
|
12368
12404
|
NavigationMenuContent.displayName = "NavigationMenuContent";
|
|
12369
|
-
var NavigationMenuLink =
|
|
12405
|
+
var NavigationMenuLink = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
12370
12406
|
NavigationMenu.Link,
|
|
12371
12407
|
{
|
|
12372
12408
|
ref,
|
|
@@ -12380,7 +12416,7 @@ var NavigationMenuLink = React16.forwardRef(({ className, ...props }, ref) => /*
|
|
|
12380
12416
|
}
|
|
12381
12417
|
));
|
|
12382
12418
|
NavigationMenuLink.displayName = "NavigationMenuLink";
|
|
12383
|
-
var NavigationMenuViewport =
|
|
12419
|
+
var NavigationMenuViewport = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { className: "absolute left-0 top-full flex justify-center", children: /* @__PURE__ */ jsx(
|
|
12384
12420
|
NavigationMenu.Viewport,
|
|
12385
12421
|
{
|
|
12386
12422
|
ref,
|
|
@@ -12395,7 +12431,7 @@ var NavigationMenuViewport = React16.forwardRef(({ className, ...props }, ref) =
|
|
|
12395
12431
|
}
|
|
12396
12432
|
) }));
|
|
12397
12433
|
NavigationMenuViewport.displayName = "NavigationMenuViewport";
|
|
12398
|
-
var NavigationMenuIndicator =
|
|
12434
|
+
var NavigationMenuIndicator = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
12399
12435
|
NavigationMenu.Indicator,
|
|
12400
12436
|
{
|
|
12401
12437
|
ref,
|
|
@@ -12497,7 +12533,7 @@ function PageHeading({
|
|
|
12497
12533
|
className
|
|
12498
12534
|
}) {
|
|
12499
12535
|
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(
|
|
12536
|
+
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
12537
|
i > 0 && /* @__PURE__ */ jsx(ChevronRight, { size: 12, className: "text-muted-foreground shrink-0" }),
|
|
12502
12538
|
crumb.href ? /* @__PURE__ */ jsx(
|
|
12503
12539
|
"a",
|
|
@@ -12554,11 +12590,11 @@ var Pagination = ({ className, ...props }) => /* @__PURE__ */ jsx(
|
|
|
12554
12590
|
}
|
|
12555
12591
|
);
|
|
12556
12592
|
Pagination.displayName = "Pagination";
|
|
12557
|
-
var PaginationContent =
|
|
12593
|
+
var PaginationContent = React17.forwardRef(
|
|
12558
12594
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx("ul", { ref, className: cn("flex flex-row items-center gap-1", className), ...props })
|
|
12559
12595
|
);
|
|
12560
12596
|
PaginationContent.displayName = "PaginationContent";
|
|
12561
|
-
var PaginationItem =
|
|
12597
|
+
var PaginationItem = React17.forwardRef(
|
|
12562
12598
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx("li", { ref, className: cn("", className), ...props })
|
|
12563
12599
|
);
|
|
12564
12600
|
PaginationItem.displayName = "PaginationItem";
|
|
@@ -12614,7 +12650,7 @@ var PaginationEllipsis = ({ className, ...props }) => /* @__PURE__ */ jsx(
|
|
|
12614
12650
|
}
|
|
12615
12651
|
);
|
|
12616
12652
|
PaginationEllipsis.displayName = "PaginationEllipsis";
|
|
12617
|
-
var ProgressRoot =
|
|
12653
|
+
var ProgressRoot = React17.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
12618
12654
|
Progress.Root,
|
|
12619
12655
|
{
|
|
12620
12656
|
ref,
|
|
@@ -13077,7 +13113,7 @@ function ResizableHandle({ className, withHandle = true, ...props }) {
|
|
|
13077
13113
|
);
|
|
13078
13114
|
}
|
|
13079
13115
|
ResizableHandle.displayName = "ResizableHandle";
|
|
13080
|
-
var Separator2 =
|
|
13116
|
+
var Separator2 = React17.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
13081
13117
|
Separator.Root,
|
|
13082
13118
|
{
|
|
13083
13119
|
ref,
|
|
@@ -13190,25 +13226,25 @@ function RichTextEditor({
|
|
|
13190
13226
|
toolbarClassName,
|
|
13191
13227
|
onRequestImageUrl
|
|
13192
13228
|
}) {
|
|
13193
|
-
const editorRef =
|
|
13194
|
-
const savedRangeRef =
|
|
13195
|
-
const [showLinkInput, setShowLinkInput] =
|
|
13196
|
-
const [linkUrl, setLinkUrl] =
|
|
13197
|
-
|
|
13229
|
+
const editorRef = React17.useRef(null);
|
|
13230
|
+
const savedRangeRef = React17.useRef(null);
|
|
13231
|
+
const [showLinkInput, setShowLinkInput] = React17.useState(false);
|
|
13232
|
+
const [linkUrl, setLinkUrl] = React17.useState("");
|
|
13233
|
+
React17.useEffect(() => {
|
|
13198
13234
|
const editor = editorRef.current;
|
|
13199
13235
|
if (!editor || document.activeElement === editor || editor.innerHTML === value) return;
|
|
13200
13236
|
editor.innerHTML = value;
|
|
13201
13237
|
}, [value]);
|
|
13202
|
-
const emitChange =
|
|
13238
|
+
const emitChange = React17.useCallback(() => {
|
|
13203
13239
|
if (editorRef.current) onChange(editorRef.current.innerHTML);
|
|
13204
13240
|
}, [onChange]);
|
|
13205
|
-
const saveSelection =
|
|
13241
|
+
const saveSelection = React17.useCallback(() => {
|
|
13206
13242
|
const selection = window.getSelection();
|
|
13207
13243
|
if (selection && selection.rangeCount > 0) {
|
|
13208
13244
|
savedRangeRef.current = selection.getRangeAt(0).cloneRange();
|
|
13209
13245
|
}
|
|
13210
13246
|
}, []);
|
|
13211
|
-
const restoreSelection =
|
|
13247
|
+
const restoreSelection = React17.useCallback(() => {
|
|
13212
13248
|
const range = savedRangeRef.current;
|
|
13213
13249
|
const selection = window.getSelection();
|
|
13214
13250
|
if (!range || !selection) return;
|
|
@@ -13216,7 +13252,7 @@ function RichTextEditor({
|
|
|
13216
13252
|
selection.addRange(range);
|
|
13217
13253
|
savedRangeRef.current = null;
|
|
13218
13254
|
}, []);
|
|
13219
|
-
const runCommand =
|
|
13255
|
+
const runCommand = React17.useCallback(
|
|
13220
13256
|
(command, commandValue) => {
|
|
13221
13257
|
editorRef.current?.focus();
|
|
13222
13258
|
switch (command) {
|
|
@@ -13252,7 +13288,7 @@ function RichTextEditor({
|
|
|
13252
13288
|
},
|
|
13253
13289
|
[emitChange]
|
|
13254
13290
|
);
|
|
13255
|
-
const insertLink =
|
|
13291
|
+
const insertLink = React17.useCallback(() => {
|
|
13256
13292
|
const url = linkUrl.trim();
|
|
13257
13293
|
if (!url) return;
|
|
13258
13294
|
restoreSelection();
|
|
@@ -13262,7 +13298,7 @@ function RichTextEditor({
|
|
|
13262
13298
|
setShowLinkInput(false);
|
|
13263
13299
|
emitChange();
|
|
13264
13300
|
}, [emitChange, linkUrl, restoreSelection]);
|
|
13265
|
-
const insertImage =
|
|
13301
|
+
const insertImage = React17.useCallback(async () => {
|
|
13266
13302
|
const url = await onRequestImageUrl?.() ?? (typeof window !== "undefined" ? window.prompt("Image URL:") : null);
|
|
13267
13303
|
if (!url) return;
|
|
13268
13304
|
const image = document.createElement("img");
|
|
@@ -13333,7 +13369,7 @@ function RichTextEditor({
|
|
|
13333
13369
|
role: "toolbar",
|
|
13334
13370
|
"aria-label": "Text formatting",
|
|
13335
13371
|
children: [
|
|
13336
|
-
toolbarGroups.map((group, index) => /* @__PURE__ */ jsxs(
|
|
13372
|
+
toolbarGroups.map((group, index) => /* @__PURE__ */ jsxs(React17.Fragment, { children: [
|
|
13337
13373
|
index > 0 && /* @__PURE__ */ jsx(Separator2, { orientation: "vertical", className: "mx-1 h-6" }),
|
|
13338
13374
|
group.map(renderToolbarButton)
|
|
13339
13375
|
] }, `toolbar-group-${index}`)),
|
|
@@ -13458,14 +13494,14 @@ function RichTextEditor({
|
|
|
13458
13494
|
);
|
|
13459
13495
|
}
|
|
13460
13496
|
RichTextEditor.displayName = "RichTextEditor";
|
|
13461
|
-
var ScrollAreaRoot =
|
|
13497
|
+
var ScrollAreaRoot = React17.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(ScrollArea.Root, { ref, className: cn("relative overflow-hidden", className), ...props, children: [
|
|
13462
13498
|
/* @__PURE__ */ jsx(ScrollArea.Viewport, { className: "h-full w-full rounded-[inherit]", children }),
|
|
13463
13499
|
/* @__PURE__ */ jsx(ScrollAreaScrollbar, { orientation: "vertical" }),
|
|
13464
13500
|
/* @__PURE__ */ jsx(ScrollAreaScrollbar, { orientation: "horizontal" }),
|
|
13465
13501
|
/* @__PURE__ */ jsx(ScrollArea.Corner, {})
|
|
13466
13502
|
] }));
|
|
13467
13503
|
ScrollAreaRoot.displayName = "ScrollArea";
|
|
13468
|
-
var ScrollAreaScrollbar =
|
|
13504
|
+
var ScrollAreaScrollbar = React17.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
13469
13505
|
ScrollArea.Scrollbar,
|
|
13470
13506
|
{
|
|
13471
13507
|
ref,
|
|
@@ -13607,14 +13643,14 @@ function SearchableTable({
|
|
|
13607
13643
|
tableClassName,
|
|
13608
13644
|
pagination
|
|
13609
13645
|
}) {
|
|
13610
|
-
const [sort, setSort] =
|
|
13611
|
-
const rows =
|
|
13646
|
+
const [sort, setSort] = React17.useState(null);
|
|
13647
|
+
const rows = React17.useMemo(() => Array.isArray(data) ? data : [], [data]);
|
|
13612
13648
|
const normalizedSearchTerm = searchTerm.trim().toLowerCase();
|
|
13613
|
-
const filteredRows =
|
|
13649
|
+
const filteredRows = React17.useMemo(() => {
|
|
13614
13650
|
if (!normalizedSearchTerm) return rows;
|
|
13615
13651
|
return rows.filter((item) => getSearchableText(item).includes(normalizedSearchTerm));
|
|
13616
13652
|
}, [normalizedSearchTerm, rows]);
|
|
13617
|
-
const sortedData =
|
|
13653
|
+
const sortedData = React17.useMemo(() => {
|
|
13618
13654
|
if (!sort) return filteredRows;
|
|
13619
13655
|
const column = columns.find((candidate) => candidate.key === sort.key);
|
|
13620
13656
|
if (!column || !column.sortable && !column.sortAccessor) return filteredRows;
|
|
@@ -13795,8 +13831,8 @@ var SIDEBAR_WIDTH_ICON = "3.5rem";
|
|
|
13795
13831
|
var SIDEBAR_KEYBOARD_SHORTCUT = "b";
|
|
13796
13832
|
var MOBILE_BREAKPOINT = 768;
|
|
13797
13833
|
function useIsMobile() {
|
|
13798
|
-
const [isMobile, setIsMobile] =
|
|
13799
|
-
|
|
13834
|
+
const [isMobile, setIsMobile] = React17.useState(false);
|
|
13835
|
+
React17.useEffect(() => {
|
|
13800
13836
|
const mediaQuery = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
|
|
13801
13837
|
const onChange = () => setIsMobile(mediaQuery.matches);
|
|
13802
13838
|
onChange();
|
|
@@ -13805,14 +13841,14 @@ function useIsMobile() {
|
|
|
13805
13841
|
}, []);
|
|
13806
13842
|
return isMobile;
|
|
13807
13843
|
}
|
|
13808
|
-
var SidebarContext =
|
|
13844
|
+
var SidebarContext = React17.createContext(null);
|
|
13809
13845
|
function useSidebar() {
|
|
13810
|
-
const ctx =
|
|
13846
|
+
const ctx = React17.useContext(SidebarContext);
|
|
13811
13847
|
if (!ctx) throw new Error("useSidebar must be used inside SidebarProvider");
|
|
13812
13848
|
return ctx;
|
|
13813
13849
|
}
|
|
13814
13850
|
function useOptionalSidebar() {
|
|
13815
|
-
return
|
|
13851
|
+
return React17.useContext(SidebarContext);
|
|
13816
13852
|
}
|
|
13817
13853
|
function SidebarProvider({
|
|
13818
13854
|
defaultOpen = true,
|
|
@@ -13824,10 +13860,10 @@ function SidebarProvider({
|
|
|
13824
13860
|
...props
|
|
13825
13861
|
}) {
|
|
13826
13862
|
const isMobile = useIsMobile();
|
|
13827
|
-
const [openMobile, setOpenMobile] =
|
|
13828
|
-
const [_open, _setOpen] =
|
|
13863
|
+
const [openMobile, setOpenMobile] = React17.useState(false);
|
|
13864
|
+
const [_open, _setOpen] = React17.useState(defaultOpen);
|
|
13829
13865
|
const open = openProp !== void 0 ? openProp : _open;
|
|
13830
|
-
const setOpen =
|
|
13866
|
+
const setOpen = React17.useCallback(
|
|
13831
13867
|
(value) => {
|
|
13832
13868
|
const nextOpen = typeof value === "function" ? value(open) : value;
|
|
13833
13869
|
if (onOpenChange) {
|
|
@@ -13839,14 +13875,14 @@ function SidebarProvider({
|
|
|
13839
13875
|
},
|
|
13840
13876
|
[onOpenChange, open]
|
|
13841
13877
|
);
|
|
13842
|
-
const toggleSidebar =
|
|
13878
|
+
const toggleSidebar = React17.useCallback(() => {
|
|
13843
13879
|
if (isMobile) {
|
|
13844
13880
|
setOpenMobile((currentOpen) => !currentOpen);
|
|
13845
13881
|
return;
|
|
13846
13882
|
}
|
|
13847
13883
|
setOpen((currentOpen) => !currentOpen);
|
|
13848
13884
|
}, [isMobile, setOpen]);
|
|
13849
|
-
|
|
13885
|
+
React17.useEffect(() => {
|
|
13850
13886
|
function handleKeyDown(event) {
|
|
13851
13887
|
if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
|
|
13852
13888
|
event.preventDefault();
|
|
@@ -13857,7 +13893,7 @@ function SidebarProvider({
|
|
|
13857
13893
|
return () => window.removeEventListener("keydown", handleKeyDown);
|
|
13858
13894
|
}, [toggleSidebar]);
|
|
13859
13895
|
const state = open ? "expanded" : "collapsed";
|
|
13860
|
-
const contextValue =
|
|
13896
|
+
const contextValue = React17.useMemo(
|
|
13861
13897
|
() => ({
|
|
13862
13898
|
state,
|
|
13863
13899
|
open,
|
|
@@ -14256,7 +14292,7 @@ function SidebarMenuSkeleton({
|
|
|
14256
14292
|
showIcon = false,
|
|
14257
14293
|
...props
|
|
14258
14294
|
}) {
|
|
14259
|
-
const width =
|
|
14295
|
+
const width = React17.useMemo(() => {
|
|
14260
14296
|
return `${Math.floor(Math.random() * 40) + 50}%`;
|
|
14261
14297
|
}, []);
|
|
14262
14298
|
return /* @__PURE__ */ jsxs(
|
|
@@ -14442,7 +14478,7 @@ function StatCardGrid({
|
|
|
14442
14478
|
className,
|
|
14443
14479
|
showEmptySlots = false
|
|
14444
14480
|
}) {
|
|
14445
|
-
const childrenArray =
|
|
14481
|
+
const childrenArray = React17.Children.toArray(children);
|
|
14446
14482
|
const emptySlots = showEmptySlots ? Math.max(0, maxSlots - childrenArray.length) : 0;
|
|
14447
14483
|
return /* @__PURE__ */ jsxs(
|
|
14448
14484
|
"div",
|
|
@@ -16059,7 +16095,7 @@ var toggleVariants = cva(
|
|
|
16059
16095
|
}
|
|
16060
16096
|
}
|
|
16061
16097
|
);
|
|
16062
|
-
var ToggleRoot =
|
|
16098
|
+
var ToggleRoot = React17.forwardRef(
|
|
16063
16099
|
({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
16064
16100
|
Toggle.Root,
|
|
16065
16101
|
{
|
|
@@ -16070,11 +16106,11 @@ var ToggleRoot = React16.forwardRef(
|
|
|
16070
16106
|
)
|
|
16071
16107
|
);
|
|
16072
16108
|
ToggleRoot.displayName = "Toggle";
|
|
16073
|
-
var ToggleGroupContext =
|
|
16109
|
+
var ToggleGroupContext = React17.createContext({
|
|
16074
16110
|
size: "default",
|
|
16075
16111
|
variant: "default"
|
|
16076
16112
|
});
|
|
16077
|
-
var ToggleGroupRoot =
|
|
16113
|
+
var ToggleGroupRoot = React17.forwardRef(({ className, variant, size, children, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
16078
16114
|
ToggleGroup.Root,
|
|
16079
16115
|
{
|
|
16080
16116
|
ref,
|
|
@@ -16084,8 +16120,8 @@ var ToggleGroupRoot = React16.forwardRef(({ className, variant, size, children,
|
|
|
16084
16120
|
}
|
|
16085
16121
|
));
|
|
16086
16122
|
ToggleGroupRoot.displayName = "ToggleGroup";
|
|
16087
|
-
var ToggleGroupItem =
|
|
16088
|
-
const context =
|
|
16123
|
+
var ToggleGroupItem = React17.forwardRef(({ className, variant, size, ...props }, ref) => {
|
|
16124
|
+
const context = React17.useContext(ToggleGroupContext);
|
|
16089
16125
|
return /* @__PURE__ */ jsx(
|
|
16090
16126
|
ToggleGroup.Item,
|
|
16091
16127
|
{
|
|
@@ -16223,6 +16259,6 @@ function UsageBar({
|
|
|
16223
16259
|
] });
|
|
16224
16260
|
}
|
|
16225
16261
|
|
|
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 };
|
|
16262
|
+
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
16263
|
//# sourceMappingURL=index.js.map
|
|
16228
16264
|
//# sourceMappingURL=index.js.map
|