@olwiba/cn 0.1.27 → 0.1.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { clsx } from 'clsx';
2
2
  import { twMerge } from 'tailwind-merge';
3
- import * as React37 from 'react';
3
+ import * as React38 from 'react';
4
4
  import { useMemo, useCallback, useRef, useState, useEffect } from 'react';
5
5
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
6
6
  import * as AccordionPrimitive from '@radix-ui/react-accordion';
@@ -35,7 +35,6 @@ import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
35
35
  import * as SelectPrimitive from '@radix-ui/react-select';
36
36
  import * as TooltipPrimitive from '@radix-ui/react-tooltip';
37
37
  import * as SliderPrimitive from '@radix-ui/react-slider';
38
- import { useTheme } from 'next-themes';
39
38
  import { Toaster as Toaster$1 } from 'sonner';
40
39
  import * as SwitchPrimitives from '@radix-ui/react-switch';
41
40
  import * as TabsPrimitive from '@radix-ui/react-tabs';
@@ -46,7 +45,7 @@ import confetti from 'canvas-confetti';
46
45
  function cn(...inputs) {
47
46
  return twMerge(clsx(inputs));
48
47
  }
49
- var UIVariantContext = React37.createContext(void 0);
48
+ var UIVariantContext = React38.createContext(void 0);
50
49
  function UIVariantProvider({
51
50
  mode,
52
51
  children
@@ -54,17 +53,17 @@ function UIVariantProvider({
54
53
  return /* @__PURE__ */ jsx(UIVariantContext.Provider, { value: mode, children });
55
54
  }
56
55
  function useUIVariant() {
57
- return React37.useContext(UIVariantContext);
56
+ return React38.useContext(UIVariantContext);
58
57
  }
59
- var AccordionContext = React37.createContext({});
60
- var Accordion = React37.forwardRef(({ mode: modeProp, size, ...props }, ref) => {
58
+ var AccordionContext = React38.createContext({});
59
+ var Accordion = React38.forwardRef(({ mode: modeProp, size, ...props }, ref) => {
61
60
  const inheritedMode = useUIVariant();
62
61
  const mode = modeProp ?? inheritedMode;
63
62
  return /* @__PURE__ */ jsx(AccordionContext.Provider, { value: { mode, size }, children: /* @__PURE__ */ jsx(AccordionPrimitive.Root, { ref, ...props }) });
64
63
  });
65
64
  Accordion.displayName = "Accordion";
66
- var AccordionItem = React37.forwardRef(({ className, ...props }, ref) => {
67
- const { mode } = React37.useContext(AccordionContext);
65
+ var AccordionItem = React38.forwardRef(({ className, ...props }, ref) => {
66
+ const { mode } = React38.useContext(AccordionContext);
68
67
  return /* @__PURE__ */ jsx(
69
68
  AccordionPrimitive.Item,
70
69
  {
@@ -81,8 +80,8 @@ var AccordionItem = React37.forwardRef(({ className, ...props }, ref) => {
81
80
  );
82
81
  });
83
82
  AccordionItem.displayName = "AccordionItem";
84
- var AccordionTrigger = React37.forwardRef(({ className, children, ...props }, ref) => {
85
- const { mode, size } = React37.useContext(AccordionContext);
83
+ var AccordionTrigger = React38.forwardRef(({ className, children, ...props }, ref) => {
84
+ const { mode, size } = React38.useContext(AccordionContext);
86
85
  return /* @__PURE__ */ jsx(AccordionPrimitive.Header, { className: "flex", children: /* @__PURE__ */ jsxs(
87
86
  AccordionPrimitive.Trigger,
88
87
  {
@@ -107,8 +106,8 @@ var AccordionTrigger = React37.forwardRef(({ className, children, ...props }, re
107
106
  ) });
108
107
  });
109
108
  AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
110
- var AccordionContent = React37.forwardRef(({ className, children, ...props }, ref) => {
111
- const { mode, size } = React37.useContext(AccordionContext);
109
+ var AccordionContent = React38.forwardRef(({ className, children, ...props }, ref) => {
110
+ const { mode, size } = React38.useContext(AccordionContext);
112
111
  return /* @__PURE__ */ jsx(
113
112
  AccordionPrimitive.Content,
114
113
  {
@@ -142,7 +141,7 @@ var alertVariants = cva(
142
141
  }
143
142
  }
144
143
  );
145
- var Alert = React37.forwardRef(({ className, variant, mode: modeProp, size, disabled, ...props }, ref) => {
144
+ var Alert = React38.forwardRef(({ className, variant, mode: modeProp, size, disabled, ...props }, ref) => {
146
145
  const mode = modeProp ?? useUIVariant();
147
146
  return /* @__PURE__ */ jsx(
148
147
  "div",
@@ -163,7 +162,7 @@ var Alert = React37.forwardRef(({ className, variant, mode: modeProp, size, disa
163
162
  );
164
163
  });
165
164
  Alert.displayName = "Alert";
166
- var AlertTitle = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
165
+ var AlertTitle = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
167
166
  "h5",
168
167
  {
169
168
  ref,
@@ -172,7 +171,7 @@ var AlertTitle = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE
172
171
  }
173
172
  ));
174
173
  AlertTitle.displayName = "AlertTitle";
175
- var AlertDescription = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
174
+ var AlertDescription = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
176
175
  "div",
177
176
  {
178
177
  ref,
@@ -218,7 +217,7 @@ var glassButtonBg = {
218
217
  outline: "bg-background/40 hover:bg-background/60",
219
218
  secondary: "bg-secondary/50 hover:bg-secondary/40"
220
219
  };
221
- var Button = React37.forwardRef(
220
+ var Button = React38.forwardRef(
222
221
  ({ className, variant, size, asChild = false, mode: modeProp, ...props }, ref) => {
223
222
  const mode = modeProp ?? useUIVariant();
224
223
  const Comp = asChild ? Slot : "button";
@@ -274,7 +273,7 @@ Button.displayName = "Button";
274
273
  var AlertDialog = AlertDialogPrimitive.Root;
275
274
  var AlertDialogTrigger = AlertDialogPrimitive.Trigger;
276
275
  var AlertDialogPortal = AlertDialogPrimitive.Portal;
277
- var AlertDialogOverlay = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
276
+ var AlertDialogOverlay = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
278
277
  AlertDialogPrimitive.Overlay,
279
278
  {
280
279
  className: cn(
@@ -286,7 +285,7 @@ var AlertDialogOverlay = React37.forwardRef(({ className, ...props }, ref) => /*
286
285
  }
287
286
  ));
288
287
  AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
289
- var AlertDialogContent = React37.forwardRef(({ className, mode: modeProp, children, ...props }, ref) => {
288
+ var AlertDialogContent = React38.forwardRef(({ className, mode: modeProp, children, ...props }, ref) => {
290
289
  const mode = modeProp ?? useUIVariant();
291
290
  return /* @__PURE__ */ jsxs(AlertDialogPortal, { children: [
292
291
  /* @__PURE__ */ jsx(AlertDialogOverlay, {}),
@@ -336,7 +335,7 @@ var AlertDialogFooter = ({
336
335
  }
337
336
  );
338
337
  AlertDialogFooter.displayName = "AlertDialogFooter";
339
- var AlertDialogTitle = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
338
+ var AlertDialogTitle = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
340
339
  AlertDialogPrimitive.Title,
341
340
  {
342
341
  ref,
@@ -345,7 +344,7 @@ var AlertDialogTitle = React37.forwardRef(({ className, ...props }, ref) => /* @
345
344
  }
346
345
  ));
347
346
  AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
348
- var AlertDialogDescription = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
347
+ var AlertDialogDescription = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
349
348
  AlertDialogPrimitive.Description,
350
349
  {
351
350
  ref,
@@ -354,12 +353,12 @@ var AlertDialogDescription = React37.forwardRef(({ className, ...props }, ref) =
354
353
  }
355
354
  ));
356
355
  AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
357
- var AlertDialogAction = React37.forwardRef(({ children, ...props }, ref) => /* @__PURE__ */ jsx(AlertDialogPrimitive.Action, { ref, asChild: true, ...props, children: /* @__PURE__ */ jsx(Button, { children }) }));
356
+ var AlertDialogAction = React38.forwardRef(({ children, ...props }, ref) => /* @__PURE__ */ jsx(AlertDialogPrimitive.Action, { ref, asChild: true, ...props, children: /* @__PURE__ */ jsx(Button, { children }) }));
358
357
  AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
359
- var AlertDialogCancel = React37.forwardRef(({ children, ...props }, ref) => /* @__PURE__ */ jsx(AlertDialogPrimitive.Cancel, { ref, asChild: true, ...props, children: /* @__PURE__ */ jsx(Button, { variant: "outline", className: "mt-2 sm:mt-0", children }) }));
358
+ var AlertDialogCancel = React38.forwardRef(({ children, ...props }, ref) => /* @__PURE__ */ jsx(AlertDialogPrimitive.Cancel, { ref, asChild: true, ...props, children: /* @__PURE__ */ jsx(Button, { variant: "outline", className: "mt-2 sm:mt-0", children }) }));
360
359
  AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
361
360
  var AspectRatio = AspectRatioPrimitive.Root;
362
- var AvatarContext = React37.createContext({});
361
+ var AvatarContext = React38.createContext({});
363
362
  var sizeClasses = {
364
363
  sm: "h-8 w-8",
365
364
  default: "h-10 w-10",
@@ -396,7 +395,7 @@ var blobKeyframes = `
396
395
  100% { border-radius: 51% 49% 50% 50% / 52% 48% 51% 49%; transform: rotate(360deg) scale(0.83); }
397
396
  }
398
397
  `;
399
- var Avatar = React37.forwardRef(({ className, mode: modeProp, size = "default", disabled, ...props }, ref) => {
398
+ var Avatar = React38.forwardRef(({ className, mode: modeProp, size = "default", disabled, ...props }, ref) => {
400
399
  const mode = modeProp ?? useUIVariant();
401
400
  if (mode === "playful") {
402
401
  return /* @__PURE__ */ jsx(AvatarContext.Provider, { value: { mode }, children: /* @__PURE__ */ jsxs("div", { className: cn("relative overflow-visible", sizeClasses[size], disabled && "opacity-50 pointer-events-none"), children: [
@@ -452,7 +451,7 @@ var Avatar = React37.forwardRef(({ className, mode: modeProp, size = "default",
452
451
  ) });
453
452
  });
454
453
  Avatar.displayName = AvatarPrimitive.Root.displayName;
455
- var AvatarImage = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
454
+ var AvatarImage = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
456
455
  AvatarPrimitive.Image,
457
456
  {
458
457
  ref,
@@ -461,8 +460,8 @@ var AvatarImage = React37.forwardRef(({ className, ...props }, ref) => /* @__PUR
461
460
  }
462
461
  ));
463
462
  AvatarImage.displayName = AvatarPrimitive.Image.displayName;
464
- var AvatarFallback = React37.forwardRef(({ className, ...props }, ref) => {
465
- const { mode } = React37.useContext(AvatarContext);
463
+ var AvatarFallback = React38.forwardRef(({ className, ...props }, ref) => {
464
+ const { mode } = React38.useContext(AvatarContext);
466
465
  return /* @__PURE__ */ jsx(
467
466
  AvatarPrimitive.Fallback,
468
467
  {
@@ -549,14 +548,14 @@ function Badge({ className, variant, size, disabled = false, mode: modeProp, ...
549
548
  }
550
549
  );
551
550
  }
552
- var Breadcrumb = React37.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx("nav", { ref, "aria-label": "breadcrumb", ...props }));
551
+ var Breadcrumb = React38.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx("nav", { ref, "aria-label": "breadcrumb", ...props }));
553
552
  Breadcrumb.displayName = "Breadcrumb";
554
553
  var breadcrumbListSizeClasses = {
555
554
  sm: "gap-1 text-xs sm:gap-1.5",
556
555
  default: "gap-1.5 text-sm sm:gap-2.5",
557
556
  lg: "gap-2 text-base sm:gap-3"
558
557
  };
559
- var BreadcrumbList = React37.forwardRef(({ className, size = "default", ...props }, ref) => /* @__PURE__ */ jsx(
558
+ var BreadcrumbList = React38.forwardRef(({ className, size = "default", ...props }, ref) => /* @__PURE__ */ jsx(
560
559
  "ol",
561
560
  {
562
561
  ref,
@@ -569,7 +568,7 @@ var BreadcrumbList = React37.forwardRef(({ className, size = "default", ...props
569
568
  }
570
569
  ));
571
570
  BreadcrumbList.displayName = "BreadcrumbList";
572
- var BreadcrumbItem = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
571
+ var BreadcrumbItem = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
573
572
  "li",
574
573
  {
575
574
  ref,
@@ -578,7 +577,7 @@ var BreadcrumbItem = React37.forwardRef(({ className, ...props }, ref) => /* @__
578
577
  }
579
578
  ));
580
579
  BreadcrumbItem.displayName = "BreadcrumbItem";
581
- var BreadcrumbLink = React37.forwardRef(({ asChild, className, disabled, ...props }, ref) => {
580
+ var BreadcrumbLink = React38.forwardRef(({ asChild, className, disabled, ...props }, ref) => {
582
581
  const Comp = asChild ? Slot : "a";
583
582
  return /* @__PURE__ */ jsx(
584
583
  Comp,
@@ -594,7 +593,7 @@ var BreadcrumbLink = React37.forwardRef(({ asChild, className, disabled, ...prop
594
593
  );
595
594
  });
596
595
  BreadcrumbLink.displayName = "BreadcrumbLink";
597
- var BreadcrumbPage = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
596
+ var BreadcrumbPage = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
598
597
  "span",
599
598
  {
600
599
  ref,
@@ -638,7 +637,7 @@ var BreadcrumbEllipsis = ({
638
637
  }
639
638
  );
640
639
  BreadcrumbEllipsis.displayName = "BreadcrumbElipssis";
641
- var Separator = React37.forwardRef(
640
+ var Separator = React38.forwardRef(
642
641
  ({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx(
643
642
  SeparatorPrimitive.Root,
644
643
  {
@@ -725,7 +724,7 @@ var calendarCellSizes = {
725
724
  default: "2rem",
726
725
  lg: "2.5rem"
727
726
  };
728
- var CalendarUIContext = React37.createContext({});
727
+ var CalendarUIContext = React38.createContext({});
729
728
  function Calendar({
730
729
  className,
731
730
  classNames,
@@ -889,10 +888,10 @@ function CalendarDayButton({
889
888
  modifiers,
890
889
  ...props
891
890
  }) {
892
- const { uiMode } = React37.useContext(CalendarUIContext);
891
+ const { uiMode } = React38.useContext(CalendarUIContext);
893
892
  const defaultClassNames = getDefaultClassNames();
894
- const ref = React37.useRef(null);
895
- React37.useEffect(() => {
893
+ const ref = React38.useRef(null);
894
+ React38.useEffect(() => {
896
895
  if (modifiers.focused) ref.current?.focus();
897
896
  }, [modifiers.focused]);
898
897
  const isSelectedSingle = modifiers.selected && !modifiers.range_start && !modifiers.range_end && !modifiers.range_middle;
@@ -932,7 +931,7 @@ function CalendarDayButton({
932
931
  }
933
932
  return button;
934
933
  }
935
- var Card = React37.forwardRef(
934
+ var Card = React38.forwardRef(
936
935
  ({ className, mode: modeProp, ...props }, ref) => {
937
936
  const mode = modeProp ?? useUIVariant();
938
937
  if (mode === "playful") {
@@ -973,7 +972,7 @@ var Card = React37.forwardRef(
973
972
  }
974
973
  );
975
974
  Card.displayName = "Card";
976
- var CardHeader = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
975
+ var CardHeader = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
977
976
  "div",
978
977
  {
979
978
  ref,
@@ -982,7 +981,7 @@ var CardHeader = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE
982
981
  }
983
982
  ));
984
983
  CardHeader.displayName = "CardHeader";
985
- var CardTitle = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
984
+ var CardTitle = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
986
985
  "div",
987
986
  {
988
987
  ref,
@@ -994,7 +993,7 @@ var CardTitle = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE_
994
993
  }
995
994
  ));
996
995
  CardTitle.displayName = "CardTitle";
997
- var CardDescription = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
996
+ var CardDescription = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
998
997
  "div",
999
998
  {
1000
999
  ref,
@@ -1003,9 +1002,9 @@ var CardDescription = React37.forwardRef(({ className, ...props }, ref) => /* @_
1003
1002
  }
1004
1003
  ));
1005
1004
  CardDescription.displayName = "CardDescription";
1006
- var CardContent = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("p-6 pt-0", className), ...props }));
1005
+ var CardContent = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("p-6 pt-0", className), ...props }));
1007
1006
  CardContent.displayName = "CardContent";
1008
- var CardFooter = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1007
+ var CardFooter = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1009
1008
  "div",
1010
1009
  {
1011
1010
  ref,
@@ -1024,13 +1023,13 @@ var navOffset = {
1024
1023
  default: { prevH: "-left-12", nextH: "-right-12", prevV: "-top-12", nextV: "-bottom-12" },
1025
1024
  lg: { prevH: "-left-14", nextH: "-right-14", prevV: "-top-14", nextV: "-bottom-14" }
1026
1025
  };
1027
- var CarouselContext = React37.createContext(null);
1026
+ var CarouselContext = React38.createContext(null);
1028
1027
  function useCarousel() {
1029
- const context = React37.useContext(CarouselContext);
1028
+ const context = React38.useContext(CarouselContext);
1030
1029
  if (!context) throw new Error("useCarousel must be used within a <Carousel />");
1031
1030
  return context;
1032
1031
  }
1033
- var Carousel = React37.forwardRef(
1032
+ var Carousel = React38.forwardRef(
1034
1033
  ({
1035
1034
  orientation = "horizontal",
1036
1035
  opts,
@@ -1048,20 +1047,20 @@ var Carousel = React37.forwardRef(
1048
1047
  { ...opts, axis: orientation === "horizontal" ? "x" : "y" },
1049
1048
  plugins
1050
1049
  );
1051
- const [canScrollPrev, setCanScrollPrev] = React37.useState(false);
1052
- const [canScrollNext, setCanScrollNext] = React37.useState(false);
1053
- const onSelect = React37.useCallback((api2) => {
1050
+ const [canScrollPrev, setCanScrollPrev] = React38.useState(false);
1051
+ const [canScrollNext, setCanScrollNext] = React38.useState(false);
1052
+ const onSelect = React38.useCallback((api2) => {
1054
1053
  if (!api2) return;
1055
1054
  setCanScrollPrev(api2.canScrollPrev());
1056
1055
  setCanScrollNext(api2.canScrollNext());
1057
1056
  }, []);
1058
- const scrollPrev = React37.useCallback(() => {
1057
+ const scrollPrev = React38.useCallback(() => {
1059
1058
  api?.scrollPrev();
1060
1059
  }, [api]);
1061
- const scrollNext = React37.useCallback(() => {
1060
+ const scrollNext = React38.useCallback(() => {
1062
1061
  api?.scrollNext();
1063
1062
  }, [api]);
1064
- const handleKeyDown = React37.useCallback(
1063
+ const handleKeyDown = React38.useCallback(
1065
1064
  (event) => {
1066
1065
  if (event.key === "ArrowLeft") {
1067
1066
  event.preventDefault();
@@ -1073,11 +1072,11 @@ var Carousel = React37.forwardRef(
1073
1072
  },
1074
1073
  [scrollPrev, scrollNext]
1075
1074
  );
1076
- React37.useEffect(() => {
1075
+ React38.useEffect(() => {
1077
1076
  if (!api || !setApi) return;
1078
1077
  setApi(api);
1079
1078
  }, [api, setApi]);
1080
- React37.useEffect(() => {
1079
+ React38.useEffect(() => {
1081
1080
  if (!api) return;
1082
1081
  onSelect(api);
1083
1082
  api.on("reInit", onSelect);
@@ -1119,7 +1118,7 @@ var Carousel = React37.forwardRef(
1119
1118
  }
1120
1119
  );
1121
1120
  Carousel.displayName = "Carousel";
1122
- var CarouselContent = React37.forwardRef(({ className, ...props }, ref) => {
1121
+ var CarouselContent = React38.forwardRef(({ className, ...props }, ref) => {
1123
1122
  const { carouselRef, orientation } = useCarousel();
1124
1123
  return /* @__PURE__ */ jsx("div", { ref: carouselRef, className: "overflow-hidden", children: /* @__PURE__ */ jsx(
1125
1124
  "div",
@@ -1131,7 +1130,7 @@ var CarouselContent = React37.forwardRef(({ className, ...props }, ref) => {
1131
1130
  ) });
1132
1131
  });
1133
1132
  CarouselContent.displayName = "CarouselContent";
1134
- var CarouselItem = React37.forwardRef(({ className, ...props }, ref) => {
1133
+ var CarouselItem = React38.forwardRef(({ className, ...props }, ref) => {
1135
1134
  const { orientation } = useCarousel();
1136
1135
  return /* @__PURE__ */ jsx(
1137
1136
  "div",
@@ -1149,7 +1148,7 @@ var CarouselItem = React37.forwardRef(({ className, ...props }, ref) => {
1149
1148
  );
1150
1149
  });
1151
1150
  CarouselItem.displayName = "CarouselItem";
1152
- var CarouselPrevious = React37.forwardRef(({ className, variant = "outline", size = "icon", ...props }, ref) => {
1151
+ var CarouselPrevious = React38.forwardRef(({ className, variant = "outline", size = "icon", ...props }, ref) => {
1153
1152
  const { orientation, scrollPrev, canScrollPrev, mode, carouselSize } = useCarousel();
1154
1153
  const dim = navDim[carouselSize];
1155
1154
  const posH = `${navOffset[carouselSize].prevH} top-1/2 -translate-y-1/2`;
@@ -1207,7 +1206,7 @@ var CarouselPrevious = React37.forwardRef(({ className, variant = "outline", siz
1207
1206
  );
1208
1207
  });
1209
1208
  CarouselPrevious.displayName = "CarouselPrevious";
1210
- var CarouselNext = React37.forwardRef(({ className, variant = "outline", size = "icon", ...props }, ref) => {
1209
+ var CarouselNext = React38.forwardRef(({ className, variant = "outline", size = "icon", ...props }, ref) => {
1211
1210
  const { orientation, scrollNext, canScrollNext, mode, carouselSize } = useCarousel();
1212
1211
  const dim = navDim[carouselSize];
1213
1212
  const posH = `${navOffset[carouselSize].nextH} top-1/2 -translate-y-1/2`;
@@ -1266,16 +1265,16 @@ var CarouselNext = React37.forwardRef(({ className, variant = "outline", size =
1266
1265
  });
1267
1266
  CarouselNext.displayName = "CarouselNext";
1268
1267
  var THEMES = { light: "", dark: ".dark" };
1269
- var ChartContext = React37.createContext(null);
1268
+ var ChartContext = React38.createContext(null);
1270
1269
  function useChart() {
1271
- const context = React37.useContext(ChartContext);
1270
+ const context = React38.useContext(ChartContext);
1272
1271
  if (!context) {
1273
1272
  throw new Error("useChart must be used within a <ChartContainer />");
1274
1273
  }
1275
1274
  return context;
1276
1275
  }
1277
- var ChartContainer = React37.forwardRef(({ id, className, children, config, disabled = false, ...props }, ref) => {
1278
- const uniqueId = React37.useId();
1276
+ var ChartContainer = React38.forwardRef(({ id, className, children, config, disabled = false, ...props }, ref) => {
1277
+ const uniqueId = React38.useId();
1279
1278
  const chartId = `chart-${id || uniqueId.replace(/:/g, "")}`;
1280
1279
  return /* @__PURE__ */ jsx(ChartContext.Provider, { value: { config }, children: /* @__PURE__ */ jsxs(
1281
1280
  "div",
@@ -1322,7 +1321,7 @@ ${colorConfig.map(([key, itemConfig]) => {
1322
1321
  );
1323
1322
  };
1324
1323
  var ChartTooltip = RechartsPrimitive.Tooltip;
1325
- var ChartTooltipContent = React37.forwardRef(
1324
+ var ChartTooltipContent = React38.forwardRef(
1326
1325
  ({
1327
1326
  active,
1328
1327
  payload,
@@ -1339,7 +1338,7 @@ var ChartTooltipContent = React37.forwardRef(
1339
1338
  labelKey
1340
1339
  }, ref) => {
1341
1340
  const { config } = useChart();
1342
- const tooltipLabel = React37.useMemo(() => {
1341
+ const tooltipLabel = React38.useMemo(() => {
1343
1342
  if (hideLabel || !payload?.length) {
1344
1343
  return null;
1345
1344
  }
@@ -1435,7 +1434,7 @@ var ChartTooltipContent = React37.forwardRef(
1435
1434
  );
1436
1435
  ChartTooltipContent.displayName = "ChartTooltip";
1437
1436
  var ChartLegend = RechartsPrimitive.Legend;
1438
- var ChartLegendContent = React37.forwardRef(
1437
+ var ChartLegendContent = React38.forwardRef(
1439
1438
  ({ className, hideIcon = false, payload, verticalAlign = "bottom", nameKey }, ref) => {
1440
1439
  const { config } = useChart();
1441
1440
  if (!payload?.length) {
@@ -1493,7 +1492,7 @@ function getPayloadConfigFromPayload(config, payload, key) {
1493
1492
  }
1494
1493
  return configLabelKey in config ? config[configLabelKey] : config[key];
1495
1494
  }
1496
- var Checkbox = React37.forwardRef(({ className, mode: modeProp, ...props }, ref) => {
1495
+ var Checkbox = React38.forwardRef(({ className, mode: modeProp, ...props }, ref) => {
1497
1496
  const mode = modeProp ?? useUIVariant();
1498
1497
  if (mode === "playful") {
1499
1498
  return /* @__PURE__ */ jsxs("span", { className: "group/playful relative inline-flex", children: [
@@ -1540,7 +1539,7 @@ var Dialog = DialogPrimitive.Root;
1540
1539
  var DialogTrigger = DialogPrimitive.Trigger;
1541
1540
  var DialogPortal = DialogPrimitive.Portal;
1542
1541
  var DialogClose = DialogPrimitive.Close;
1543
- var DialogOverlay = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1542
+ var DialogOverlay = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1544
1543
  DialogPrimitive.Overlay,
1545
1544
  {
1546
1545
  ref,
@@ -1552,7 +1551,7 @@ var DialogOverlay = React37.forwardRef(({ className, ...props }, ref) => /* @__P
1552
1551
  }
1553
1552
  ));
1554
1553
  DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
1555
- var DialogContent = React37.forwardRef(({ className, mode: modeProp, children, ...props }, ref) => {
1554
+ var DialogContent = React38.forwardRef(({ className, mode: modeProp, children, ...props }, ref) => {
1556
1555
  const mode = modeProp ?? useUIVariant();
1557
1556
  return /* @__PURE__ */ jsxs(DialogPortal, { children: [
1558
1557
  /* @__PURE__ */ jsx(DialogOverlay, { className: mode === "glass" ? "bg-black/40" : void 0 }),
@@ -1609,7 +1608,7 @@ var DialogFooter = ({
1609
1608
  }
1610
1609
  );
1611
1610
  DialogFooter.displayName = "DialogFooter";
1612
- var DialogTitle = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1611
+ var DialogTitle = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1613
1612
  DialogPrimitive.Title,
1614
1613
  {
1615
1614
  ref,
@@ -1621,7 +1620,7 @@ var DialogTitle = React37.forwardRef(({ className, ...props }, ref) => /* @__PUR
1621
1620
  }
1622
1621
  ));
1623
1622
  DialogTitle.displayName = DialogPrimitive.Title.displayName;
1624
- var DialogDescription = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1623
+ var DialogDescription = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1625
1624
  DialogPrimitive.Description,
1626
1625
  {
1627
1626
  ref,
@@ -1664,15 +1663,15 @@ function formatShortcut(shortcut, isMac) {
1664
1663
  return key ? `${modStr}+${key}` : `${modStr}+`;
1665
1664
  }
1666
1665
  function useIsMac() {
1667
- const [isMac, setIsMac] = React37.useState(false);
1668
- React37.useEffect(() => {
1666
+ const [isMac, setIsMac] = React38.useState(false);
1667
+ React38.useEffect(() => {
1669
1668
  setIsMac(
1670
1669
  typeof navigator !== "undefined" && navigator.platform.toUpperCase().includes("MAC")
1671
1670
  );
1672
1671
  }, []);
1673
1672
  return isMac;
1674
1673
  }
1675
- var Hotkey = React37.forwardRef(
1674
+ var Hotkey = React38.forwardRef(
1676
1675
  ({ shortcut, asKbd = false, mode: modeProp, className, ...props }, ref) => {
1677
1676
  const isMac = useIsMac();
1678
1677
  const content = formatShortcut(shortcut, isMac);
@@ -1721,7 +1720,7 @@ var Hotkey = React37.forwardRef(
1721
1720
  }
1722
1721
  );
1723
1722
  Hotkey.displayName = "Hotkey";
1724
- var Command = React37.forwardRef(({ className, mode, disabled, ...props }, ref) => {
1723
+ var Command = React38.forwardRef(({ className, mode, disabled, ...props }, ref) => {
1725
1724
  const inner = /* @__PURE__ */ jsx(UIVariantProvider, { mode, children: /* @__PURE__ */ jsx(
1726
1725
  Command$1,
1727
1726
  {
@@ -1755,7 +1754,7 @@ Command.displayName = Command$1.displayName;
1755
1754
  var CommandDialog = ({ children, ...props }) => {
1756
1755
  return /* @__PURE__ */ jsx(Dialog, { ...props, children: /* @__PURE__ */ jsx(DialogContent, { className: "overflow-hidden p-0 shadow-lg", children: /* @__PURE__ */ jsx(Command, { className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children }) }) });
1757
1756
  };
1758
- var CommandInput = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
1757
+ var CommandInput = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
1759
1758
  /* @__PURE__ */ jsx(Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
1760
1759
  /* @__PURE__ */ jsx(
1761
1760
  Command$1.Input,
@@ -1770,7 +1769,7 @@ var CommandInput = React37.forwardRef(({ className, ...props }, ref) => /* @__PU
1770
1769
  )
1771
1770
  ] }));
1772
1771
  CommandInput.displayName = Command$1.Input.displayName;
1773
- var CommandList = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1772
+ var CommandList = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1774
1773
  Command$1.List,
1775
1774
  {
1776
1775
  ref,
@@ -1779,7 +1778,7 @@ var CommandList = React37.forwardRef(({ className, ...props }, ref) => /* @__PUR
1779
1778
  }
1780
1779
  ));
1781
1780
  CommandList.displayName = Command$1.List.displayName;
1782
- var CommandEmpty = React37.forwardRef((props, ref) => /* @__PURE__ */ jsx(
1781
+ var CommandEmpty = React38.forwardRef((props, ref) => /* @__PURE__ */ jsx(
1783
1782
  Command$1.Empty,
1784
1783
  {
1785
1784
  ref,
@@ -1788,7 +1787,7 @@ var CommandEmpty = React37.forwardRef((props, ref) => /* @__PURE__ */ jsx(
1788
1787
  }
1789
1788
  ));
1790
1789
  CommandEmpty.displayName = Command$1.Empty.displayName;
1791
- var CommandGroup = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1790
+ var CommandGroup = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1792
1791
  Command$1.Group,
1793
1792
  {
1794
1793
  ref,
@@ -1800,7 +1799,7 @@ var CommandGroup = React37.forwardRef(({ className, ...props }, ref) => /* @__PU
1800
1799
  }
1801
1800
  ));
1802
1801
  CommandGroup.displayName = Command$1.Group.displayName;
1803
- var CommandSeparator = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1802
+ var CommandSeparator = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1804
1803
  Command$1.Separator,
1805
1804
  {
1806
1805
  ref,
@@ -1809,7 +1808,7 @@ var CommandSeparator = React37.forwardRef(({ className, ...props }, ref) => /* @
1809
1808
  }
1810
1809
  ));
1811
1810
  CommandSeparator.displayName = Command$1.Separator.displayName;
1812
- var CommandItem = React37.forwardRef(({ className, ...props }, ref) => {
1811
+ var CommandItem = React38.forwardRef(({ className, ...props }, ref) => {
1813
1812
  const mode = useUIVariant();
1814
1813
  return /* @__PURE__ */ jsx(
1815
1814
  Command$1.Item,
@@ -1852,7 +1851,7 @@ var ContextMenuGroup = ContextMenuPrimitive.Group;
1852
1851
  var ContextMenuPortal = ContextMenuPrimitive.Portal;
1853
1852
  var ContextMenuSub = ContextMenuPrimitive.Sub;
1854
1853
  var ContextMenuRadioGroup = ContextMenuPrimitive.RadioGroup;
1855
- var ContextMenuSubTrigger = React37.forwardRef(({ className, inset, children, ...props }, ref) => {
1854
+ var ContextMenuSubTrigger = React38.forwardRef(({ className, inset, children, ...props }, ref) => {
1856
1855
  const mode = useUIVariant();
1857
1856
  return /* @__PURE__ */ jsxs(
1858
1857
  ContextMenuPrimitive.SubTrigger,
@@ -1875,7 +1874,7 @@ var ContextMenuSubTrigger = React37.forwardRef(({ className, inset, children, ..
1875
1874
  );
1876
1875
  });
1877
1876
  ContextMenuSubTrigger.displayName = ContextMenuPrimitive.SubTrigger.displayName;
1878
- var ContextMenuSubContent = React37.forwardRef(({ className, mode: modeProp, children, ...props }, ref) => {
1877
+ var ContextMenuSubContent = React38.forwardRef(({ className, mode: modeProp, children, ...props }, ref) => {
1879
1878
  const inheritedMode = useUIVariant();
1880
1879
  const mode = modeProp ?? inheritedMode;
1881
1880
  return /* @__PURE__ */ jsx(
@@ -1895,7 +1894,7 @@ var ContextMenuSubContent = React37.forwardRef(({ className, mode: modeProp, chi
1895
1894
  );
1896
1895
  });
1897
1896
  ContextMenuSubContent.displayName = ContextMenuPrimitive.SubContent.displayName;
1898
- var ContextMenuContent = React37.forwardRef(({ className, mode: modeProp, children, ...props }, ref) => {
1897
+ var ContextMenuContent = React38.forwardRef(({ className, mode: modeProp, children, ...props }, ref) => {
1899
1898
  const inheritedMode = useUIVariant();
1900
1899
  const mode = modeProp ?? inheritedMode;
1901
1900
  return /* @__PURE__ */ jsx(ContextMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(
@@ -1915,7 +1914,7 @@ var ContextMenuContent = React37.forwardRef(({ className, mode: modeProp, childr
1915
1914
  ) });
1916
1915
  });
1917
1916
  ContextMenuContent.displayName = ContextMenuPrimitive.Content.displayName;
1918
- var ContextMenuItem = React37.forwardRef(({ className, inset, ...props }, ref) => {
1917
+ var ContextMenuItem = React38.forwardRef(({ className, inset, ...props }, ref) => {
1919
1918
  const mode = useUIVariant();
1920
1919
  return /* @__PURE__ */ jsx(
1921
1920
  ContextMenuPrimitive.Item,
@@ -1934,7 +1933,7 @@ var ContextMenuItem = React37.forwardRef(({ className, inset, ...props }, ref) =
1934
1933
  );
1935
1934
  });
1936
1935
  ContextMenuItem.displayName = ContextMenuPrimitive.Item.displayName;
1937
- var ContextMenuCheckboxItem = React37.forwardRef(({ className, children, checked, ...props }, ref) => {
1936
+ var ContextMenuCheckboxItem = React38.forwardRef(({ className, children, checked, ...props }, ref) => {
1938
1937
  const mode = useUIVariant();
1939
1938
  return /* @__PURE__ */ jsxs(
1940
1939
  ContextMenuPrimitive.CheckboxItem,
@@ -1957,7 +1956,7 @@ var ContextMenuCheckboxItem = React37.forwardRef(({ className, children, checked
1957
1956
  );
1958
1957
  });
1959
1958
  ContextMenuCheckboxItem.displayName = ContextMenuPrimitive.CheckboxItem.displayName;
1960
- var ContextMenuRadioItem = React37.forwardRef(({ className, children, ...props }, ref) => {
1959
+ var ContextMenuRadioItem = React38.forwardRef(({ className, children, ...props }, ref) => {
1961
1960
  const mode = useUIVariant();
1962
1961
  return /* @__PURE__ */ jsxs(
1963
1962
  ContextMenuPrimitive.RadioItem,
@@ -1979,7 +1978,7 @@ var ContextMenuRadioItem = React37.forwardRef(({ className, children, ...props }
1979
1978
  );
1980
1979
  });
1981
1980
  ContextMenuRadioItem.displayName = ContextMenuPrimitive.RadioItem.displayName;
1982
- var ContextMenuLabel = React37.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
1981
+ var ContextMenuLabel = React38.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
1983
1982
  ContextMenuPrimitive.Label,
1984
1983
  {
1985
1984
  ref,
@@ -1992,7 +1991,7 @@ var ContextMenuLabel = React37.forwardRef(({ className, inset, ...props }, ref)
1992
1991
  }
1993
1992
  ));
1994
1993
  ContextMenuLabel.displayName = ContextMenuPrimitive.Label.displayName;
1995
- var ContextMenuSeparator = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1994
+ var ContextMenuSeparator = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1996
1995
  ContextMenuPrimitive.Separator,
1997
1996
  {
1998
1997
  ref,
@@ -2034,7 +2033,7 @@ Drawer.displayName = "Drawer";
2034
2033
  var DrawerTrigger = Drawer$1.Trigger;
2035
2034
  var DrawerPortal = Drawer$1.Portal;
2036
2035
  var DrawerClose = Drawer$1.Close;
2037
- var DrawerOverlay = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
2036
+ var DrawerOverlay = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
2038
2037
  Drawer$1.Overlay,
2039
2038
  {
2040
2039
  ref,
@@ -2043,7 +2042,7 @@ var DrawerOverlay = React37.forwardRef(({ className, ...props }, ref) => /* @__P
2043
2042
  }
2044
2043
  ));
2045
2044
  DrawerOverlay.displayName = Drawer$1.Overlay.displayName;
2046
- var DrawerContent = React37.forwardRef(({ className, mode: modeProp, children, ...props }, ref) => {
2045
+ var DrawerContent = React38.forwardRef(({ className, mode: modeProp, children, ...props }, ref) => {
2047
2046
  const mode = modeProp ?? useUIVariant();
2048
2047
  return /* @__PURE__ */ jsxs(DrawerPortal, { children: [
2049
2048
  /* @__PURE__ */ jsx(DrawerOverlay, {}),
@@ -2090,7 +2089,7 @@ var DrawerFooter = ({
2090
2089
  }
2091
2090
  );
2092
2091
  DrawerFooter.displayName = "DrawerFooter";
2093
- var DrawerTitle = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
2092
+ var DrawerTitle = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
2094
2093
  Drawer$1.Title,
2095
2094
  {
2096
2095
  ref,
@@ -2102,7 +2101,7 @@ var DrawerTitle = React37.forwardRef(({ className, ...props }, ref) => /* @__PUR
2102
2101
  }
2103
2102
  ));
2104
2103
  DrawerTitle.displayName = Drawer$1.Title.displayName;
2105
- var DrawerDescription = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
2104
+ var DrawerDescription = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
2106
2105
  Drawer$1.Description,
2107
2106
  {
2108
2107
  ref,
@@ -2117,7 +2116,7 @@ var DropdownMenuGroup = DropdownMenuPrimitive.Group;
2117
2116
  var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
2118
2117
  var DropdownMenuSub = DropdownMenuPrimitive.Sub;
2119
2118
  var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
2120
- var DropdownMenuSubTrigger = React37.forwardRef(({ className, inset, children, ...props }, ref) => {
2119
+ var DropdownMenuSubTrigger = React38.forwardRef(({ className, inset, children, ...props }, ref) => {
2121
2120
  const mode = useUIVariant();
2122
2121
  return /* @__PURE__ */ jsxs(
2123
2122
  DropdownMenuPrimitive.SubTrigger,
@@ -2140,7 +2139,7 @@ var DropdownMenuSubTrigger = React37.forwardRef(({ className, inset, children, .
2140
2139
  );
2141
2140
  });
2142
2141
  DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
2143
- var DropdownMenuSubContent = React37.forwardRef(({ className, mode: modeProp, children, ...props }, ref) => {
2142
+ var DropdownMenuSubContent = React38.forwardRef(({ className, mode: modeProp, children, ...props }, ref) => {
2144
2143
  const inheritedMode = useUIVariant();
2145
2144
  const mode = modeProp ?? inheritedMode;
2146
2145
  return /* @__PURE__ */ jsx(
@@ -2160,7 +2159,7 @@ var DropdownMenuSubContent = React37.forwardRef(({ className, mode: modeProp, ch
2160
2159
  );
2161
2160
  });
2162
2161
  DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
2163
- var DropdownMenuContent = React37.forwardRef(({ className, sideOffset = 4, mode: modeProp, children, ...props }, ref) => {
2162
+ var DropdownMenuContent = React38.forwardRef(({ className, sideOffset = 4, mode: modeProp, children, ...props }, ref) => {
2164
2163
  const inheritedMode = useUIVariant();
2165
2164
  const mode = modeProp ?? inheritedMode;
2166
2165
  return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(
@@ -2181,7 +2180,7 @@ var DropdownMenuContent = React37.forwardRef(({ className, sideOffset = 4, mode:
2181
2180
  ) });
2182
2181
  });
2183
2182
  DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
2184
- var DropdownMenuItem = React37.forwardRef(({ className, inset, ...props }, ref) => {
2183
+ var DropdownMenuItem = React38.forwardRef(({ className, inset, ...props }, ref) => {
2185
2184
  const mode = useUIVariant();
2186
2185
  return /* @__PURE__ */ jsx(
2187
2186
  DropdownMenuPrimitive.Item,
@@ -2200,7 +2199,7 @@ var DropdownMenuItem = React37.forwardRef(({ className, inset, ...props }, ref)
2200
2199
  );
2201
2200
  });
2202
2201
  DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
2203
- var DropdownMenuCheckboxItem = React37.forwardRef(({ className, children, checked, ...props }, ref) => {
2202
+ var DropdownMenuCheckboxItem = React38.forwardRef(({ className, children, checked, ...props }, ref) => {
2204
2203
  const mode = useUIVariant();
2205
2204
  return /* @__PURE__ */ jsxs(
2206
2205
  DropdownMenuPrimitive.CheckboxItem,
@@ -2223,7 +2222,7 @@ var DropdownMenuCheckboxItem = React37.forwardRef(({ className, children, checke
2223
2222
  );
2224
2223
  });
2225
2224
  DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
2226
- var DropdownMenuRadioItem = React37.forwardRef(({ className, children, ...props }, ref) => {
2225
+ var DropdownMenuRadioItem = React38.forwardRef(({ className, children, ...props }, ref) => {
2227
2226
  const mode = useUIVariant();
2228
2227
  return /* @__PURE__ */ jsxs(
2229
2228
  DropdownMenuPrimitive.RadioItem,
@@ -2245,7 +2244,7 @@ var DropdownMenuRadioItem = React37.forwardRef(({ className, children, ...props
2245
2244
  );
2246
2245
  });
2247
2246
  DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
2248
- var DropdownMenuLabel = React37.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
2247
+ var DropdownMenuLabel = React38.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
2249
2248
  DropdownMenuPrimitive.Label,
2250
2249
  {
2251
2250
  ref,
@@ -2258,7 +2257,7 @@ var DropdownMenuLabel = React37.forwardRef(({ className, inset, ...props }, ref)
2258
2257
  }
2259
2258
  ));
2260
2259
  DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
2261
- var DropdownMenuSeparator = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
2260
+ var DropdownMenuSeparator = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
2262
2261
  DropdownMenuPrimitive.Separator,
2263
2262
  {
2264
2263
  ref,
@@ -2389,7 +2388,7 @@ var labelVariants = cva(
2389
2388
  }
2390
2389
  }
2391
2390
  );
2392
- var Label3 = React37.forwardRef(({ className, size, ...props }, ref) => /* @__PURE__ */ jsx(
2391
+ var Label3 = React38.forwardRef(({ className, size, ...props }, ref) => /* @__PURE__ */ jsx(
2393
2392
  LabelPrimitive.Root,
2394
2393
  {
2395
2394
  ref,
@@ -2616,15 +2615,15 @@ function FieldError({
2616
2615
  );
2617
2616
  }
2618
2617
  var Form = FormProvider;
2619
- var FormFieldContext = React37.createContext(null);
2618
+ var FormFieldContext = React38.createContext(null);
2620
2619
  var FormField = ({
2621
2620
  ...props
2622
2621
  }) => {
2623
2622
  return /* @__PURE__ */ jsx(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ jsx(Controller, { ...props }) });
2624
2623
  };
2625
2624
  var useFormField = () => {
2626
- const fieldContext = React37.useContext(FormFieldContext);
2627
- const itemContext = React37.useContext(FormItemContext);
2625
+ const fieldContext = React38.useContext(FormFieldContext);
2626
+ const itemContext = React38.useContext(FormItemContext);
2628
2627
  const { getFieldState, formState } = useFormContext();
2629
2628
  if (!fieldContext) {
2630
2629
  throw new Error("useFormField should be used within <FormField>");
@@ -2643,13 +2642,13 @@ var useFormField = () => {
2643
2642
  ...fieldState
2644
2643
  };
2645
2644
  };
2646
- var FormItemContext = React37.createContext(null);
2647
- var FormItem = React37.forwardRef(({ className, ...props }, ref) => {
2648
- const id = React37.useId();
2645
+ var FormItemContext = React38.createContext(null);
2646
+ var FormItem = React38.forwardRef(({ className, ...props }, ref) => {
2647
+ const id = React38.useId();
2649
2648
  return /* @__PURE__ */ jsx(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ jsx("div", { ref, className: cn("space-y-2", className), ...props }) });
2650
2649
  });
2651
2650
  FormItem.displayName = "FormItem";
2652
- var FormLabel = React37.forwardRef(({ className, ...props }, ref) => {
2651
+ var FormLabel = React38.forwardRef(({ className, ...props }, ref) => {
2653
2652
  const { error, formItemId } = useFormField();
2654
2653
  return /* @__PURE__ */ jsx(
2655
2654
  Label3,
@@ -2662,7 +2661,7 @@ var FormLabel = React37.forwardRef(({ className, ...props }, ref) => {
2662
2661
  );
2663
2662
  });
2664
2663
  FormLabel.displayName = "FormLabel";
2665
- var FormControl = React37.forwardRef(({ ...props }, ref) => {
2664
+ var FormControl = React38.forwardRef(({ ...props }, ref) => {
2666
2665
  const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
2667
2666
  return /* @__PURE__ */ jsx(
2668
2667
  Slot,
@@ -2676,7 +2675,7 @@ var FormControl = React37.forwardRef(({ ...props }, ref) => {
2676
2675
  );
2677
2676
  });
2678
2677
  FormControl.displayName = "FormControl";
2679
- var FormDescription = React37.forwardRef(({ className, ...props }, ref) => {
2678
+ var FormDescription = React38.forwardRef(({ className, ...props }, ref) => {
2680
2679
  const { formDescriptionId } = useFormField();
2681
2680
  return /* @__PURE__ */ jsx(
2682
2681
  "p",
@@ -2689,7 +2688,7 @@ var FormDescription = React37.forwardRef(({ className, ...props }, ref) => {
2689
2688
  );
2690
2689
  });
2691
2690
  FormDescription.displayName = "FormDescription";
2692
- var FormMessage = React37.forwardRef(({ className, children, ...props }, ref) => {
2691
+ var FormMessage = React38.forwardRef(({ className, children, ...props }, ref) => {
2693
2692
  const { error, formMessageId } = useFormField();
2694
2693
  const body = error ? String(error?.message ?? "") : children;
2695
2694
  if (!body) {
@@ -2709,7 +2708,7 @@ var FormMessage = React37.forwardRef(({ className, children, ...props }, ref) =>
2709
2708
  FormMessage.displayName = "FormMessage";
2710
2709
  var HoverCard = HoverCardPrimitive.Root;
2711
2710
  var HoverCardTrigger = HoverCardPrimitive.Trigger;
2712
- var HoverCardContent = React37.forwardRef(({ className, align = "center", sideOffset = 4, mode: modeProp, children, ...props }, ref) => {
2711
+ var HoverCardContent = React38.forwardRef(({ className, align = "center", sideOffset = 4, mode: modeProp, children, ...props }, ref) => {
2713
2712
  const inheritedMode = useUIVariant();
2714
2713
  const mode = modeProp ?? inheritedMode;
2715
2714
  return /* @__PURE__ */ jsx(
@@ -2731,15 +2730,18 @@ var HoverCardContent = React37.forwardRef(({ className, align = "center", sideOf
2731
2730
  );
2732
2731
  });
2733
2732
  HoverCardContent.displayName = HoverCardPrimitive.Content.displayName;
2734
- var Input = React37.forwardRef(
2733
+ var inputBase = "flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm aria-invalid:border-destructive aria-invalid:focus-visible:ring-destructive/20";
2734
+ var inputPlayfulBacking = "absolute inset-0 z-0 translate-x-[3px] translate-y-[3px] -rotate-[0.4deg] rounded-md bg-foreground/8 transition-transform duration-200 group-hover/playful:-rotate-[1deg] group-focus-within/playful:-rotate-[1deg] dark:bg-foreground/10";
2735
+ var Input = React38.forwardRef(
2735
2736
  ({ className, type, mode: modeProp, ...props }, ref) => {
2736
- const mode = modeProp ?? useUIVariant();
2737
+ const contextMode = useUIVariant();
2738
+ const mode = modeProp ?? contextMode;
2737
2739
  const input = /* @__PURE__ */ jsx(
2738
2740
  "input",
2739
2741
  {
2740
2742
  type,
2741
2743
  className: cn(
2742
- "flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm aria-invalid:border-destructive aria-invalid:focus-visible:ring-destructive/20",
2744
+ inputBase,
2743
2745
  mode === "smooth" && "rounded-full",
2744
2746
  mode === "playful" && "relative z-10",
2745
2747
  mode === "glass" && glassControl,
@@ -2751,13 +2753,7 @@ var Input = React37.forwardRef(
2751
2753
  );
2752
2754
  if (mode === "playful") {
2753
2755
  return /* @__PURE__ */ jsxs("span", { className: "group/playful relative inline-flex w-full", children: [
2754
- /* @__PURE__ */ jsx(
2755
- "span",
2756
- {
2757
- "aria-hidden": "true",
2758
- className: "absolute inset-0 z-0 translate-x-[3px] translate-y-[3px] -rotate-[0.4deg] rounded-md bg-foreground/8 transition-transform duration-200 group-hover/playful:-rotate-[1deg] group-focus-within/playful:-rotate-[1deg] dark:bg-foreground/10"
2759
- }
2760
- ),
2756
+ /* @__PURE__ */ jsx("span", { "aria-hidden": "true", className: inputPlayfulBacking }),
2761
2757
  input
2762
2758
  ] });
2763
2759
  }
@@ -2770,7 +2766,7 @@ var textareaSizes = {
2770
2766
  default: "min-h-20 px-3 py-2 text-base md:text-sm",
2771
2767
  lg: "min-h-28 px-4 py-3 text-base"
2772
2768
  };
2773
- var Textarea = React37.forwardRef(
2769
+ var Textarea = React38.forwardRef(
2774
2770
  ({ className, size = "default", mode: modeProp, ...props }, ref) => {
2775
2771
  const mode = modeProp ?? useUIVariant();
2776
2772
  const textarea = /* @__PURE__ */ jsx(
@@ -2950,11 +2946,11 @@ function InputGroupTextarea({
2950
2946
  }
2951
2947
  );
2952
2948
  }
2953
- var InputOTPSizeContext = React37.createContext("default");
2949
+ var InputOTPSizeContext = React38.createContext("default");
2954
2950
  function useInputOTPSize() {
2955
- return React37.useContext(InputOTPSizeContext);
2951
+ return React38.useContext(InputOTPSizeContext);
2956
2952
  }
2957
- var InputOTP = React37.forwardRef(({ className, containerClassName, mode, size = "default", ...props }, ref) => {
2953
+ var InputOTP = React38.forwardRef(({ className, containerClassName, mode, size = "default", ...props }, ref) => {
2958
2954
  const otpInputProps = props;
2959
2955
  return /* @__PURE__ */ jsx(UIVariantProvider, { mode, children: /* @__PURE__ */ jsx(InputOTPSizeContext.Provider, { value: size, children: /* @__PURE__ */ jsx(
2960
2956
  OTPInput,
@@ -2971,10 +2967,10 @@ var InputOTP = React37.forwardRef(({ className, containerClassName, mode, size =
2971
2967
  ) }) });
2972
2968
  });
2973
2969
  InputOTP.displayName = "InputOTP";
2974
- var InputOTPGroup = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("flex items-center", className), ...props }));
2970
+ var InputOTPGroup = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("flex items-center", className), ...props }));
2975
2971
  InputOTPGroup.displayName = "InputOTPGroup";
2976
- var InputOTPSlot = React37.forwardRef(({ index, className, ...props }, ref) => {
2977
- const inputOTPContext = React37.useContext(OTPInputContext);
2972
+ var InputOTPSlot = React38.forwardRef(({ index, className, ...props }, ref) => {
2973
+ const inputOTPContext = React38.useContext(OTPInputContext);
2978
2974
  const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index];
2979
2975
  const mode = useUIVariant();
2980
2976
  const size = useInputOTPSize();
@@ -3001,8 +2997,141 @@ var InputOTPSlot = React37.forwardRef(({ index, className, ...props }, ref) => {
3001
2997
  );
3002
2998
  });
3003
2999
  InputOTPSlot.displayName = "InputOTPSlot";
3004
- var InputOTPSeparator = React37.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, role: "separator", ...props, children: /* @__PURE__ */ jsx(Dot, {}) }));
3000
+ var InputOTPSeparator = React38.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, role: "separator", ...props, children: /* @__PURE__ */ jsx(Dot, {}) }));
3005
3001
  InputOTPSeparator.displayName = "InputOTPSeparator";
3002
+ var spinnerReset = "[appearance:textfield] [&::-webkit-outer-spin-button]:m-0 [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:m-0 [&::-webkit-inner-spin-button]:appearance-none";
3003
+ function toNumber(value) {
3004
+ if (value === void 0 || value === null || value === "") return null;
3005
+ const parsed = Number.parseFloat(String(value));
3006
+ return Number.isNaN(parsed) ? null : parsed;
3007
+ }
3008
+ function decimalsOf(step) {
3009
+ const fraction = String(step).split(".")[1];
3010
+ return fraction ? fraction.length : 0;
3011
+ }
3012
+ function writeValue(input, next) {
3013
+ const setter = Object.getOwnPropertyDescriptor(
3014
+ window.HTMLInputElement.prototype,
3015
+ "value"
3016
+ )?.set;
3017
+ setter?.call(input, next);
3018
+ input.dispatchEvent(new Event("input", { bubbles: true }));
3019
+ }
3020
+ var NumberInput = React38.forwardRef(
3021
+ ({
3022
+ className,
3023
+ mode: modeProp,
3024
+ hideStepper = false,
3025
+ incrementLabel = "Increase",
3026
+ decrementLabel = "Decrease",
3027
+ min,
3028
+ max,
3029
+ step,
3030
+ disabled,
3031
+ ...props
3032
+ }, forwardedRef) => {
3033
+ const contextMode = useUIVariant();
3034
+ const mode = modeProp ?? contextMode;
3035
+ const innerRef = React38.useRef(null);
3036
+ React38.useImperativeHandle(forwardedRef, () => innerRef.current);
3037
+ const [current, setCurrent] = React38.useState(
3038
+ () => toNumber(props.value ?? props.defaultValue)
3039
+ );
3040
+ React38.useEffect(() => {
3041
+ if (props.value !== void 0) setCurrent(toNumber(props.value));
3042
+ }, [props.value]);
3043
+ const minNum = toNumber(min);
3044
+ const maxNum = toNumber(max);
3045
+ const stepNum = toNumber(step) ?? 1;
3046
+ const atMin = minNum !== null && current !== null && current <= minNum;
3047
+ const atMax = maxNum !== null && current !== null && current >= maxNum;
3048
+ const stepBy = (direction) => {
3049
+ const input = innerRef.current;
3050
+ if (!input || disabled) return;
3051
+ const start = toNumber(input.value);
3052
+ const base = start ?? minNum ?? 0;
3053
+ let next = start === null ? base : base + direction * stepNum;
3054
+ if (minNum !== null) next = Math.max(minNum, next);
3055
+ if (maxNum !== null) next = Math.min(maxNum, next);
3056
+ const places = decimalsOf(stepNum);
3057
+ writeValue(input, places > 0 ? next.toFixed(places) : String(next));
3058
+ input.focus();
3059
+ };
3060
+ const stepperButton = (direction) => {
3061
+ const isUp = direction === 1;
3062
+ const Icon2 = isUp ? ChevronUp : ChevronDown;
3063
+ return /* @__PURE__ */ jsx(
3064
+ "button",
3065
+ {
3066
+ type: "button",
3067
+ tabIndex: -1,
3068
+ "aria-label": isUp ? incrementLabel : decrementLabel,
3069
+ disabled: disabled || (isUp ? atMax : atMin),
3070
+ onClick: () => stepBy(direction),
3071
+ className: cn(
3072
+ "flex h-1/2 w-full items-center justify-center text-muted-foreground transition-colors",
3073
+ "hover:text-foreground hover:bg-accent/60",
3074
+ "disabled:pointer-events-none disabled:opacity-30",
3075
+ mode === "smooth" ? "rounded-full" : "rounded-sm",
3076
+ isUp ? "rounded-b-none" : "rounded-t-none"
3077
+ ),
3078
+ children: /* @__PURE__ */ jsx(Icon2, { className: "size-3", "aria-hidden": "true" })
3079
+ }
3080
+ );
3081
+ };
3082
+ const field = /* @__PURE__ */ jsxs("span", { className: cn("relative inline-flex w-full", mode === "playful" && "z-10"), children: [
3083
+ /* @__PURE__ */ jsx(
3084
+ "input",
3085
+ {
3086
+ ...props,
3087
+ type: "number",
3088
+ ref: innerRef,
3089
+ min,
3090
+ max,
3091
+ step,
3092
+ disabled,
3093
+ onInput: (event) => {
3094
+ setCurrent(toNumber(event.currentTarget.value));
3095
+ props.onInput?.(event);
3096
+ },
3097
+ className: cn(
3098
+ inputBase,
3099
+ spinnerReset,
3100
+ !hideStepper && "pr-9",
3101
+ mode === "smooth" && "rounded-full",
3102
+ mode === "glass" && glassControl,
3103
+ className
3104
+ )
3105
+ }
3106
+ ),
3107
+ !hideStepper && // Inside the border, so the control reads as one field. `tabIndex={-1}`
3108
+ // on the buttons keeps Tab moving between fields — the keyboard already
3109
+ // has ArrowUp/ArrowDown for stepping, natively, and a keyboard user
3110
+ // gains nothing from two extra stops per number.
3111
+ /* @__PURE__ */ jsxs(
3112
+ "span",
3113
+ {
3114
+ className: cn(
3115
+ "absolute inset-y-1 flex w-7 flex-col",
3116
+ mode === "smooth" ? "right-1.5" : "right-1"
3117
+ ),
3118
+ children: [
3119
+ stepperButton(1),
3120
+ stepperButton(-1)
3121
+ ]
3122
+ }
3123
+ )
3124
+ ] });
3125
+ if (mode === "playful") {
3126
+ return /* @__PURE__ */ jsxs("span", { className: "group/playful relative inline-flex w-full", children: [
3127
+ /* @__PURE__ */ jsx("span", { "aria-hidden": "true", className: inputPlayfulBacking }),
3128
+ field
3129
+ ] });
3130
+ }
3131
+ return field;
3132
+ }
3133
+ );
3134
+ NumberInput.displayName = "NumberInput";
3006
3135
  function ItemGroup({
3007
3136
  className,
3008
3137
  mode: modeProp,
@@ -3290,7 +3419,7 @@ function MenubarSub({
3290
3419
  }) {
3291
3420
  return /* @__PURE__ */ jsx(MenubarPrimitive.Sub, { "data-slot": "menubar-sub", ...props });
3292
3421
  }
3293
- var Menubar = React37.forwardRef(({ className, mode, ...props }, ref) => /* @__PURE__ */ jsx(UIVariantProvider, { mode, children: /* @__PURE__ */ jsx(
3422
+ var Menubar = React38.forwardRef(({ className, mode, ...props }, ref) => /* @__PURE__ */ jsx(UIVariantProvider, { mode, children: /* @__PURE__ */ jsx(
3294
3423
  MenubarPrimitive.Root,
3295
3424
  {
3296
3425
  ref,
@@ -3305,7 +3434,7 @@ var Menubar = React37.forwardRef(({ className, mode, ...props }, ref) => /* @__P
3305
3434
  }
3306
3435
  ) }));
3307
3436
  Menubar.displayName = MenubarPrimitive.Root.displayName;
3308
- var MenubarTrigger = React37.forwardRef(({ className, ...props }, ref) => {
3437
+ var MenubarTrigger = React38.forwardRef(({ className, ...props }, ref) => {
3309
3438
  const mode = useUIVariant();
3310
3439
  return /* @__PURE__ */ jsx(
3311
3440
  MenubarPrimitive.Trigger,
@@ -3323,7 +3452,7 @@ var MenubarTrigger = React37.forwardRef(({ className, ...props }, ref) => {
3323
3452
  );
3324
3453
  });
3325
3454
  MenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;
3326
- var MenubarSubTrigger = React37.forwardRef(({ className, inset, children, ...props }, ref) => {
3455
+ var MenubarSubTrigger = React38.forwardRef(({ className, inset, children, ...props }, ref) => {
3327
3456
  const mode = useUIVariant();
3328
3457
  return /* @__PURE__ */ jsxs(
3329
3458
  MenubarPrimitive.SubTrigger,
@@ -3346,7 +3475,7 @@ var MenubarSubTrigger = React37.forwardRef(({ className, inset, children, ...pro
3346
3475
  );
3347
3476
  });
3348
3477
  MenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;
3349
- var MenubarSubContent = React37.forwardRef(({ className, mode: modeProp, children, ...props }, ref) => {
3478
+ var MenubarSubContent = React38.forwardRef(({ className, mode: modeProp, children, ...props }, ref) => {
3350
3479
  const inheritedMode = useUIVariant();
3351
3480
  const mode = modeProp ?? inheritedMode;
3352
3481
  return /* @__PURE__ */ jsx(
@@ -3366,7 +3495,7 @@ var MenubarSubContent = React37.forwardRef(({ className, mode: modeProp, childre
3366
3495
  );
3367
3496
  });
3368
3497
  MenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;
3369
- var MenubarContent = React37.forwardRef(
3498
+ var MenubarContent = React38.forwardRef(
3370
3499
  ({ className, align = "start", alignOffset = -4, sideOffset = 8, mode: modeProp, children, ...props }, ref) => {
3371
3500
  const inheritedMode = useUIVariant();
3372
3501
  const mode = modeProp ?? inheritedMode;
@@ -3391,7 +3520,7 @@ var MenubarContent = React37.forwardRef(
3391
3520
  }
3392
3521
  );
3393
3522
  MenubarContent.displayName = MenubarPrimitive.Content.displayName;
3394
- var MenubarItem = React37.forwardRef(({ className, inset, ...props }, ref) => {
3523
+ var MenubarItem = React38.forwardRef(({ className, inset, ...props }, ref) => {
3395
3524
  const mode = useUIVariant();
3396
3525
  return /* @__PURE__ */ jsx(
3397
3526
  MenubarPrimitive.Item,
@@ -3410,7 +3539,7 @@ var MenubarItem = React37.forwardRef(({ className, inset, ...props }, ref) => {
3410
3539
  );
3411
3540
  });
3412
3541
  MenubarItem.displayName = MenubarPrimitive.Item.displayName;
3413
- var MenubarCheckboxItem = React37.forwardRef(({ className, children, checked, ...props }, ref) => {
3542
+ var MenubarCheckboxItem = React38.forwardRef(({ className, children, checked, ...props }, ref) => {
3414
3543
  const mode = useUIVariant();
3415
3544
  return /* @__PURE__ */ jsxs(
3416
3545
  MenubarPrimitive.CheckboxItem,
@@ -3433,7 +3562,7 @@ var MenubarCheckboxItem = React37.forwardRef(({ className, children, checked, ..
3433
3562
  );
3434
3563
  });
3435
3564
  MenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;
3436
- var MenubarRadioItem = React37.forwardRef(({ className, children, ...props }, ref) => {
3565
+ var MenubarRadioItem = React38.forwardRef(({ className, children, ...props }, ref) => {
3437
3566
  const mode = useUIVariant();
3438
3567
  return /* @__PURE__ */ jsxs(
3439
3568
  MenubarPrimitive.RadioItem,
@@ -3455,7 +3584,7 @@ var MenubarRadioItem = React37.forwardRef(({ className, children, ...props }, re
3455
3584
  );
3456
3585
  });
3457
3586
  MenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;
3458
- var MenubarLabel = React37.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
3587
+ var MenubarLabel = React38.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
3459
3588
  MenubarPrimitive.Label,
3460
3589
  {
3461
3590
  ref,
@@ -3468,7 +3597,7 @@ var MenubarLabel = React37.forwardRef(({ className, inset, ...props }, ref) => /
3468
3597
  }
3469
3598
  ));
3470
3599
  MenubarLabel.displayName = MenubarPrimitive.Label.displayName;
3471
- var MenubarSeparator = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3600
+ var MenubarSeparator = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3472
3601
  MenubarPrimitive.Separator,
3473
3602
  {
3474
3603
  ref,
@@ -3496,7 +3625,7 @@ var MenubarShortcut = ({
3496
3625
  );
3497
3626
  };
3498
3627
  MenubarShortcut.displayName = "MenubarShortcut";
3499
- var NavigationMenu = React37.forwardRef(({ className, children, mode: modeProp, ...props }, ref) => {
3628
+ var NavigationMenu = React38.forwardRef(({ className, children, mode: modeProp, ...props }, ref) => {
3500
3629
  const mode = modeProp ?? useUIVariant();
3501
3630
  return /* @__PURE__ */ jsx(UIVariantProvider, { mode, children: /* @__PURE__ */ jsxs(
3502
3631
  NavigationMenuPrimitive.Root,
@@ -3515,7 +3644,7 @@ var NavigationMenu = React37.forwardRef(({ className, children, mode: modeProp,
3515
3644
  ) });
3516
3645
  });
3517
3646
  NavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;
3518
- var NavigationMenuList = React37.forwardRef(({ className, ...props }, ref) => {
3647
+ var NavigationMenuList = React38.forwardRef(({ className, ...props }, ref) => {
3519
3648
  const mode = useUIVariant();
3520
3649
  return /* @__PURE__ */ jsx(
3521
3650
  NavigationMenuPrimitive.List,
@@ -3535,7 +3664,7 @@ var NavigationMenuItem = NavigationMenuPrimitive.Item;
3535
3664
  var navigationMenuTriggerStyle = cva(
3536
3665
  "group inline-flex h-10 w-max cursor-pointer items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:text-accent-foreground data-[state=open]:bg-accent/50 data-[state=open]:hover:bg-accent data-[state=open]:focus:bg-accent"
3537
3666
  );
3538
- var NavigationMenuTrigger = React37.forwardRef(({ className, children, ...props }, ref) => {
3667
+ var NavigationMenuTrigger = React38.forwardRef(({ className, children, ...props }, ref) => {
3539
3668
  const mode = useUIVariant();
3540
3669
  const trigger = /* @__PURE__ */ jsxs(
3541
3670
  NavigationMenuPrimitive.Trigger,
@@ -3577,7 +3706,7 @@ var NavigationMenuTrigger = React37.forwardRef(({ className, children, ...props
3577
3706
  return trigger;
3578
3707
  });
3579
3708
  NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
3580
- var NavigationMenuContent = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3709
+ var NavigationMenuContent = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3581
3710
  NavigationMenuPrimitive.Content,
3582
3711
  {
3583
3712
  ref,
@@ -3589,7 +3718,7 @@ var NavigationMenuContent = React37.forwardRef(({ className, ...props }, ref) =>
3589
3718
  }
3590
3719
  ));
3591
3720
  NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
3592
- var NavigationMenuLink = React37.forwardRef(({ className, asChild, children, ...props }, ref) => {
3721
+ var NavigationMenuLink = React38.forwardRef(({ className, asChild, children, ...props }, ref) => {
3593
3722
  const mode = useUIVariant();
3594
3723
  if (!asChild && mode === "playful") {
3595
3724
  return /* @__PURE__ */ jsxs("span", { className: "group/playful relative inline-flex", children: [
@@ -3627,7 +3756,7 @@ var NavigationMenuLink = React37.forwardRef(({ className, asChild, children, ...
3627
3756
  );
3628
3757
  });
3629
3758
  NavigationMenuLink.displayName = NavigationMenuPrimitive.Link.displayName;
3630
- var NavigationMenuViewport = React37.forwardRef(({ className, ...props }, ref) => {
3759
+ var NavigationMenuViewport = React38.forwardRef(({ className, ...props }, ref) => {
3631
3760
  const mode = useUIVariant();
3632
3761
  if (mode === "playful") {
3633
3762
  return /* @__PURE__ */ jsx("div", { className: "absolute left-0 top-full flex justify-center", children: /* @__PURE__ */ jsxs("div", { className: "relative", children: [
@@ -3665,7 +3794,7 @@ var NavigationMenuViewport = React37.forwardRef(({ className, ...props }, ref) =
3665
3794
  ) });
3666
3795
  });
3667
3796
  NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
3668
- var NavigationMenuIndicator = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3797
+ var NavigationMenuIndicator = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3669
3798
  NavigationMenuPrimitive.Indicator,
3670
3799
  {
3671
3800
  ref,
@@ -3695,7 +3824,7 @@ var Pagination = ({
3695
3824
  ) });
3696
3825
  };
3697
3826
  Pagination.displayName = "Pagination";
3698
- var PaginationContent = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3827
+ var PaginationContent = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3699
3828
  "ul",
3700
3829
  {
3701
3830
  ref,
@@ -3704,7 +3833,7 @@ var PaginationContent = React37.forwardRef(({ className, ...props }, ref) => /*
3704
3833
  }
3705
3834
  ));
3706
3835
  PaginationContent.displayName = "PaginationContent";
3707
- var PaginationItem = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("li", { ref, className: cn("", className), ...props }));
3836
+ var PaginationItem = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("li", { ref, className: cn("", className), ...props }));
3708
3837
  PaginationItem.displayName = "PaginationItem";
3709
3838
  var paginationLinkSizes = {
3710
3839
  sm: "h-9 w-9",
@@ -3801,7 +3930,7 @@ PaginationEllipsis.displayName = "PaginationEllipsis";
3801
3930
  var Popover = PopoverPrimitive.Root;
3802
3931
  var PopoverTrigger = PopoverPrimitive.Trigger;
3803
3932
  var PopoverAnchor = PopoverPrimitive.Anchor;
3804
- var PopoverContent = React37.forwardRef(({ className, align = "center", sideOffset = 4, mode: modeProp, children, ...props }, ref) => {
3933
+ var PopoverContent = React38.forwardRef(({ className, align = "center", sideOffset = 4, mode: modeProp, children, ...props }, ref) => {
3805
3934
  const inheritedMode = useUIVariant();
3806
3935
  const mode = modeProp ?? inheritedMode;
3807
3936
  return /* @__PURE__ */ jsx(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx(
@@ -3824,7 +3953,7 @@ var PopoverContent = React37.forwardRef(({ className, align = "center", sideOffs
3824
3953
  ) });
3825
3954
  });
3826
3955
  PopoverContent.displayName = PopoverPrimitive.Content.displayName;
3827
- var Progress = React37.forwardRef(({ className, value, disabled = false, mode: modeProp, ...props }, ref) => {
3956
+ var Progress = React38.forwardRef(({ className, value, disabled = false, mode: modeProp, ...props }, ref) => {
3828
3957
  const mode = modeProp ?? useUIVariant();
3829
3958
  const bar = /* @__PURE__ */ jsx(
3830
3959
  ProgressPrimitive.Root,
@@ -3862,7 +3991,7 @@ var Progress = React37.forwardRef(({ className, value, disabled = false, mode: m
3862
3991
  return bar;
3863
3992
  });
3864
3993
  Progress.displayName = ProgressPrimitive.Root.displayName;
3865
- var RadioGroup4 = React37.forwardRef(({ className, ...props }, ref) => {
3994
+ var RadioGroup4 = React38.forwardRef(({ className, ...props }, ref) => {
3866
3995
  return /* @__PURE__ */ jsx(
3867
3996
  RadioGroupPrimitive.Root,
3868
3997
  {
@@ -3873,7 +4002,7 @@ var RadioGroup4 = React37.forwardRef(({ className, ...props }, ref) => {
3873
4002
  );
3874
4003
  });
3875
4004
  RadioGroup4.displayName = RadioGroupPrimitive.Root.displayName;
3876
- var RadioGroupItem = React37.forwardRef(({ className, mode: modeProp, ...props }, ref) => {
4005
+ var RadioGroupItem = React38.forwardRef(({ className, mode: modeProp, ...props }, ref) => {
3877
4006
  const mode = modeProp ?? useUIVariant();
3878
4007
  if (mode === "playful") {
3879
4008
  return /* @__PURE__ */ jsxs("span", { className: "group/playful relative inline-flex", children: [
@@ -3940,7 +4069,7 @@ var ResizableHandle = ({
3940
4069
  children: withHandle && /* @__PURE__ */ jsx("div", { className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border", children: /* @__PURE__ */ jsx(GripVertical, { className: "h-2.5 w-2.5" }) })
3941
4070
  }
3942
4071
  );
3943
- var ScrollArea = React37.forwardRef(({ className, children, scrollbars = "vertical", ...props }, ref) => /* @__PURE__ */ jsxs(
4072
+ var ScrollArea = React38.forwardRef(({ className, children, scrollbars = "vertical", ...props }, ref) => /* @__PURE__ */ jsxs(
3944
4073
  ScrollAreaPrimitive.Root,
3945
4074
  {
3946
4075
  ref,
@@ -3955,7 +4084,7 @@ var ScrollArea = React37.forwardRef(({ className, children, scrollbars = "vertic
3955
4084
  }
3956
4085
  ));
3957
4086
  ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
3958
- var ScrollBar = React37.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsx(
4087
+ var ScrollBar = React38.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsx(
3959
4088
  ScrollAreaPrimitive.ScrollAreaScrollbar,
3960
4089
  {
3961
4090
  ref,
@@ -3974,7 +4103,7 @@ ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
3974
4103
  var Select = SelectPrimitive.Root;
3975
4104
  var SelectGroup = SelectPrimitive.Group;
3976
4105
  var SelectValue = SelectPrimitive.Value;
3977
- var SelectTrigger = React37.forwardRef(({ className, children, mode: modeProp, size = "default", ...props }, ref) => {
4106
+ var SelectTrigger = React38.forwardRef(({ className, children, mode: modeProp, size = "default", ...props }, ref) => {
3978
4107
  const inheritedMode = useUIVariant();
3979
4108
  const mode = modeProp ?? inheritedMode;
3980
4109
  return /* @__PURE__ */ jsxs(
@@ -3999,7 +4128,7 @@ var SelectTrigger = React37.forwardRef(({ className, children, mode: modeProp, s
3999
4128
  );
4000
4129
  });
4001
4130
  SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
4002
- var SelectScrollUpButton = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
4131
+ var SelectScrollUpButton = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
4003
4132
  SelectPrimitive.ScrollUpButton,
4004
4133
  {
4005
4134
  ref,
@@ -4012,7 +4141,7 @@ var SelectScrollUpButton = React37.forwardRef(({ className, ...props }, ref) =>
4012
4141
  }
4013
4142
  ));
4014
4143
  SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
4015
- var SelectScrollDownButton = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
4144
+ var SelectScrollDownButton = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
4016
4145
  SelectPrimitive.ScrollDownButton,
4017
4146
  {
4018
4147
  ref,
@@ -4025,7 +4154,7 @@ var SelectScrollDownButton = React37.forwardRef(({ className, ...props }, ref) =
4025
4154
  }
4026
4155
  ));
4027
4156
  SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
4028
- var SelectContent = React37.forwardRef(({ className, children, position = "popper", mode: modeProp, ...props }, ref) => {
4157
+ var SelectContent = React38.forwardRef(({ className, children, position = "popper", mode: modeProp, ...props }, ref) => {
4029
4158
  const inheritedMode = useUIVariant();
4030
4159
  const mode = modeProp ?? inheritedMode;
4031
4160
  return /* @__PURE__ */ jsx(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs(
@@ -4060,7 +4189,7 @@ var SelectContent = React37.forwardRef(({ className, children, position = "poppe
4060
4189
  ) });
4061
4190
  });
4062
4191
  SelectContent.displayName = SelectPrimitive.Content.displayName;
4063
- var SelectLabel = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
4192
+ var SelectLabel = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
4064
4193
  SelectPrimitive.Label,
4065
4194
  {
4066
4195
  ref,
@@ -4069,7 +4198,7 @@ var SelectLabel = React37.forwardRef(({ className, ...props }, ref) => /* @__PUR
4069
4198
  }
4070
4199
  ));
4071
4200
  SelectLabel.displayName = SelectPrimitive.Label.displayName;
4072
- var SelectItem = React37.forwardRef(({ className, children, ...props }, ref) => {
4201
+ var SelectItem = React38.forwardRef(({ className, children, ...props }, ref) => {
4073
4202
  const mode = useUIVariant();
4074
4203
  return /* @__PURE__ */ jsxs(
4075
4204
  SelectPrimitive.Item,
@@ -4090,7 +4219,7 @@ var SelectItem = React37.forwardRef(({ className, children, ...props }, ref) =>
4090
4219
  );
4091
4220
  });
4092
4221
  SelectItem.displayName = SelectPrimitive.Item.displayName;
4093
- var SelectSeparator = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
4222
+ var SelectSeparator = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
4094
4223
  SelectPrimitive.Separator,
4095
4224
  {
4096
4225
  ref,
@@ -4103,7 +4232,7 @@ var Sheet = DialogPrimitive.Root;
4103
4232
  var SheetTrigger = DialogPrimitive.Trigger;
4104
4233
  var SheetClose = DialogPrimitive.Close;
4105
4234
  var SheetPortal = DialogPrimitive.Portal;
4106
- var SheetOverlay = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
4235
+ var SheetOverlay = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
4107
4236
  DialogPrimitive.Overlay,
4108
4237
  {
4109
4238
  className: cn(
@@ -4143,7 +4272,7 @@ var sideRoundingPlayful = {
4143
4272
  top: "rounded-b-xl",
4144
4273
  bottom: "rounded-t-xl"
4145
4274
  };
4146
- var SheetContent = React37.forwardRef(({ side = "right", className, children, container, mode: modeProp, ...props }, ref) => {
4275
+ var SheetContent = React38.forwardRef(({ side = "right", className, children, container, mode: modeProp, ...props }, ref) => {
4147
4276
  const mode = modeProp ?? useUIVariant();
4148
4277
  return /* @__PURE__ */ jsxs(SheetPortal, { container: container ?? void 0, children: [
4149
4278
  /* @__PURE__ */ jsx(SheetOverlay, {}),
@@ -4198,7 +4327,7 @@ var SheetFooter = ({
4198
4327
  }
4199
4328
  );
4200
4329
  SheetFooter.displayName = "SheetFooter";
4201
- var SheetTitle = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
4330
+ var SheetTitle = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
4202
4331
  DialogPrimitive.Title,
4203
4332
  {
4204
4333
  ref,
@@ -4207,7 +4336,7 @@ var SheetTitle = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE
4207
4336
  }
4208
4337
  ));
4209
4338
  SheetTitle.displayName = DialogPrimitive.Title.displayName;
4210
- var SheetDescription = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
4339
+ var SheetDescription = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
4211
4340
  DialogPrimitive.Description,
4212
4341
  {
4213
4342
  ref,
@@ -4218,8 +4347,8 @@ var SheetDescription = React37.forwardRef(({ className, ...props }, ref) => /* @
4218
4347
  SheetDescription.displayName = DialogPrimitive.Description.displayName;
4219
4348
  var MOBILE_BREAKPOINT = 768;
4220
4349
  function useIsMobile() {
4221
- const [isMobile, setIsMobile] = React37.useState(void 0);
4222
- React37.useEffect(() => {
4350
+ const [isMobile, setIsMobile] = React38.useState(void 0);
4351
+ React38.useEffect(() => {
4223
4352
  const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
4224
4353
  const onChange = () => {
4225
4354
  setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
@@ -4245,7 +4374,7 @@ function Skeleton({
4245
4374
  var TooltipProvider = TooltipPrimitive.Provider;
4246
4375
  var Tooltip2 = TooltipPrimitive.Root;
4247
4376
  var TooltipTrigger = TooltipPrimitive.Trigger;
4248
- var TooltipContent = React37.forwardRef(({ className, sideOffset = 4, mode: modeProp, children, ...props }, ref) => {
4377
+ var TooltipContent = React38.forwardRef(({ className, sideOffset = 4, mode: modeProp, children, ...props }, ref) => {
4249
4378
  const mode = modeProp ?? useUIVariant();
4250
4379
  return /* @__PURE__ */ jsx(
4251
4380
  TooltipPrimitive.Content,
@@ -4271,15 +4400,15 @@ var SIDEBAR_WIDTH = "16rem";
4271
4400
  var SIDEBAR_WIDTH_MOBILE = "18rem";
4272
4401
  var SIDEBAR_WIDTH_ICON = "3rem";
4273
4402
  var SIDEBAR_KEYBOARD_SHORTCUT = "b";
4274
- var SidebarContext = React37.createContext(null);
4403
+ var SidebarContext = React38.createContext(null);
4275
4404
  function useSidebar() {
4276
- const context = React37.useContext(SidebarContext);
4405
+ const context = React38.useContext(SidebarContext);
4277
4406
  if (!context) {
4278
4407
  throw new Error("useSidebar must be used within a SidebarProvider.");
4279
4408
  }
4280
4409
  return context;
4281
4410
  }
4282
- var SidebarProvider = React37.forwardRef(
4411
+ var SidebarProvider = React38.forwardRef(
4283
4412
  ({
4284
4413
  defaultOpen = true,
4285
4414
  open: openProp,
@@ -4294,14 +4423,14 @@ var SidebarProvider = React37.forwardRef(
4294
4423
  ...props
4295
4424
  }, ref) => {
4296
4425
  const viewportIsMobile = useIsMobile();
4297
- const wrapperRef = React37.useRef(null);
4298
- const [portalContainer, setPortalContainer] = React37.useState(null);
4299
- const [isContainerMobile, setIsContainerMobile] = React37.useState(null);
4426
+ const wrapperRef = React38.useRef(null);
4427
+ const [portalContainer, setPortalContainer] = React38.useState(null);
4428
+ const [isContainerMobile, setIsContainerMobile] = React38.useState(null);
4300
4429
  const isMobile = isContainerMobile ?? viewportIsMobile;
4301
- const [openMobile, setOpenMobile] = React37.useState(false);
4302
- const [_open, _setOpen] = React37.useState(defaultOpen);
4430
+ const [openMobile, setOpenMobile] = React38.useState(false);
4431
+ const [_open, _setOpen] = React38.useState(defaultOpen);
4303
4432
  const open = openProp ?? _open;
4304
- const setOpen = React37.useCallback(
4433
+ const setOpen = React38.useCallback(
4305
4434
  (value) => {
4306
4435
  const openState = typeof value === "function" ? value(open) : value;
4307
4436
  if (setOpenProp) {
@@ -4313,10 +4442,10 @@ var SidebarProvider = React37.forwardRef(
4313
4442
  },
4314
4443
  [setOpenProp, open]
4315
4444
  );
4316
- const toggleSidebar = React37.useCallback(() => {
4445
+ const toggleSidebar = React38.useCallback(() => {
4317
4446
  return isMobile ? setOpenMobile((open2) => !open2) : setOpen((open2) => !open2);
4318
4447
  }, [isMobile, setOpen, setOpenMobile]);
4319
- React37.useEffect(() => {
4448
+ React38.useEffect(() => {
4320
4449
  const node = wrapperRef.current;
4321
4450
  if (!node) return;
4322
4451
  setPortalContainer(node.ownerDocument?.body ?? null);
@@ -4336,7 +4465,7 @@ var SidebarProvider = React37.forwardRef(
4336
4465
  observer.observe(node);
4337
4466
  return () => observer.disconnect();
4338
4467
  }, [mobileBreakpoint]);
4339
- React37.useEffect(() => {
4468
+ React38.useEffect(() => {
4340
4469
  const handleKeyDown = (event) => {
4341
4470
  if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
4342
4471
  event.preventDefault();
@@ -4347,7 +4476,7 @@ var SidebarProvider = React37.forwardRef(
4347
4476
  return () => window.removeEventListener("keydown", handleKeyDown);
4348
4477
  }, [toggleSidebar]);
4349
4478
  const state = open ? "expanded" : "collapsed";
4350
- const contextValue = React37.useMemo(
4479
+ const contextValue = React38.useMemo(
4351
4480
  () => ({
4352
4481
  state,
4353
4482
  open,
@@ -4397,7 +4526,7 @@ var SidebarProvider = React37.forwardRef(
4397
4526
  }
4398
4527
  );
4399
4528
  SidebarProvider.displayName = "SidebarProvider";
4400
- var Sidebar = React37.forwardRef(
4529
+ var Sidebar = React38.forwardRef(
4401
4530
  ({
4402
4531
  side = "left",
4403
4532
  variant = "sidebar",
@@ -4531,7 +4660,7 @@ var Sidebar = React37.forwardRef(
4531
4660
  }
4532
4661
  );
4533
4662
  Sidebar.displayName = "Sidebar";
4534
- var SidebarTrigger = React37.forwardRef(({ className, onClick, ...props }, ref) => {
4663
+ var SidebarTrigger = React38.forwardRef(({ className, onClick, ...props }, ref) => {
4535
4664
  const { toggleSidebar } = useSidebar();
4536
4665
  return /* @__PURE__ */ jsxs(
4537
4666
  Button,
@@ -4554,7 +4683,7 @@ var SidebarTrigger = React37.forwardRef(({ className, onClick, ...props }, ref)
4554
4683
  );
4555
4684
  });
4556
4685
  SidebarTrigger.displayName = "SidebarTrigger";
4557
- var SidebarRail = React37.forwardRef(({ className, ...props }, ref) => {
4686
+ var SidebarRail = React38.forwardRef(({ className, ...props }, ref) => {
4558
4687
  const { toggleSidebar } = useSidebar();
4559
4688
  return /* @__PURE__ */ jsx(
4560
4689
  "button",
@@ -4579,7 +4708,7 @@ var SidebarRail = React37.forwardRef(({ className, ...props }, ref) => {
4579
4708
  );
4580
4709
  });
4581
4710
  SidebarRail.displayName = "SidebarRail";
4582
- var SidebarInset = React37.forwardRef(({ className, ...props }, ref) => {
4711
+ var SidebarInset = React38.forwardRef(({ className, ...props }, ref) => {
4583
4712
  return /* @__PURE__ */ jsx(
4584
4713
  "main",
4585
4714
  {
@@ -4596,7 +4725,7 @@ var SidebarInset = React37.forwardRef(({ className, ...props }, ref) => {
4596
4725
  );
4597
4726
  });
4598
4727
  SidebarInset.displayName = "SidebarInset";
4599
- var SidebarInput = React37.forwardRef(({ className, ...props }, ref) => {
4728
+ var SidebarInput = React38.forwardRef(({ className, ...props }, ref) => {
4600
4729
  return /* @__PURE__ */ jsx(
4601
4730
  Input,
4602
4731
  {
@@ -4611,7 +4740,7 @@ var SidebarInput = React37.forwardRef(({ className, ...props }, ref) => {
4611
4740
  );
4612
4741
  });
4613
4742
  SidebarInput.displayName = "SidebarInput";
4614
- var SidebarHeader = React37.forwardRef(({ className, ...props }, ref) => {
4743
+ var SidebarHeader = React38.forwardRef(({ className, ...props }, ref) => {
4615
4744
  return /* @__PURE__ */ jsx(
4616
4745
  "div",
4617
4746
  {
@@ -4623,7 +4752,7 @@ var SidebarHeader = React37.forwardRef(({ className, ...props }, ref) => {
4623
4752
  );
4624
4753
  });
4625
4754
  SidebarHeader.displayName = "SidebarHeader";
4626
- var SidebarFooter = React37.forwardRef(({ className, ...props }, ref) => {
4755
+ var SidebarFooter = React38.forwardRef(({ className, ...props }, ref) => {
4627
4756
  return /* @__PURE__ */ jsx(
4628
4757
  "div",
4629
4758
  {
@@ -4635,7 +4764,7 @@ var SidebarFooter = React37.forwardRef(({ className, ...props }, ref) => {
4635
4764
  );
4636
4765
  });
4637
4766
  SidebarFooter.displayName = "SidebarFooter";
4638
- var SidebarSeparator = React37.forwardRef(({ className, ...props }, ref) => {
4767
+ var SidebarSeparator = React38.forwardRef(({ className, ...props }, ref) => {
4639
4768
  return /* @__PURE__ */ jsx(
4640
4769
  Separator,
4641
4770
  {
@@ -4647,7 +4776,7 @@ var SidebarSeparator = React37.forwardRef(({ className, ...props }, ref) => {
4647
4776
  );
4648
4777
  });
4649
4778
  SidebarSeparator.displayName = "SidebarSeparator";
4650
- var SidebarContent = React37.forwardRef(({ className, ...props }, ref) => {
4779
+ var SidebarContent = React38.forwardRef(({ className, ...props }, ref) => {
4651
4780
  return /* @__PURE__ */ jsx(
4652
4781
  "div",
4653
4782
  {
@@ -4662,7 +4791,7 @@ var SidebarContent = React37.forwardRef(({ className, ...props }, ref) => {
4662
4791
  );
4663
4792
  });
4664
4793
  SidebarContent.displayName = "SidebarContent";
4665
- var SidebarGroup = React37.forwardRef(({ className, ...props }, ref) => {
4794
+ var SidebarGroup = React38.forwardRef(({ className, ...props }, ref) => {
4666
4795
  return /* @__PURE__ */ jsx(
4667
4796
  "div",
4668
4797
  {
@@ -4674,7 +4803,7 @@ var SidebarGroup = React37.forwardRef(({ className, ...props }, ref) => {
4674
4803
  );
4675
4804
  });
4676
4805
  SidebarGroup.displayName = "SidebarGroup";
4677
- var SidebarGroupLabel = React37.forwardRef(({ className, asChild = false, ...props }, ref) => {
4806
+ var SidebarGroupLabel = React38.forwardRef(({ className, asChild = false, ...props }, ref) => {
4678
4807
  const Comp = asChild ? Slot : "div";
4679
4808
  return /* @__PURE__ */ jsx(
4680
4809
  Comp,
@@ -4691,7 +4820,7 @@ var SidebarGroupLabel = React37.forwardRef(({ className, asChild = false, ...pro
4691
4820
  );
4692
4821
  });
4693
4822
  SidebarGroupLabel.displayName = "SidebarGroupLabel";
4694
- var SidebarGroupAction = React37.forwardRef(({ className, asChild = false, ...props }, ref) => {
4823
+ var SidebarGroupAction = React38.forwardRef(({ className, asChild = false, ...props }, ref) => {
4695
4824
  const Comp = asChild ? Slot : "button";
4696
4825
  return /* @__PURE__ */ jsx(
4697
4826
  Comp,
@@ -4710,7 +4839,7 @@ var SidebarGroupAction = React37.forwardRef(({ className, asChild = false, ...pr
4710
4839
  );
4711
4840
  });
4712
4841
  SidebarGroupAction.displayName = "SidebarGroupAction";
4713
- var SidebarGroupContent = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
4842
+ var SidebarGroupContent = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
4714
4843
  "div",
4715
4844
  {
4716
4845
  ref,
@@ -4720,7 +4849,7 @@ var SidebarGroupContent = React37.forwardRef(({ className, ...props }, ref) => /
4720
4849
  }
4721
4850
  ));
4722
4851
  SidebarGroupContent.displayName = "SidebarGroupContent";
4723
- var SidebarMenu = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
4852
+ var SidebarMenu = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
4724
4853
  "ul",
4725
4854
  {
4726
4855
  ref,
@@ -4730,7 +4859,7 @@ var SidebarMenu = React37.forwardRef(({ className, ...props }, ref) => /* @__PUR
4730
4859
  }
4731
4860
  ));
4732
4861
  SidebarMenu.displayName = "SidebarMenu";
4733
- var SidebarMenuItem = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
4862
+ var SidebarMenuItem = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
4734
4863
  "li",
4735
4864
  {
4736
4865
  ref,
@@ -4765,7 +4894,7 @@ var sidebarMenuButtonVariants = cva(
4765
4894
  }
4766
4895
  }
4767
4896
  );
4768
- var SidebarMenuButton = React37.forwardRef(
4897
+ var SidebarMenuButton = React38.forwardRef(
4769
4898
  ({
4770
4899
  asChild = false,
4771
4900
  isActive = false,
@@ -4833,7 +4962,7 @@ var SidebarMenuButton = React37.forwardRef(
4833
4962
  }
4834
4963
  );
4835
4964
  SidebarMenuButton.displayName = "SidebarMenuButton";
4836
- var SidebarMenuAction = React37.forwardRef(({ className, asChild = false, showOnHover = false, ...props }, ref) => {
4965
+ var SidebarMenuAction = React38.forwardRef(({ className, asChild = false, showOnHover = false, ...props }, ref) => {
4837
4966
  const Comp = asChild ? Slot : "button";
4838
4967
  return /* @__PURE__ */ jsx(
4839
4968
  Comp,
@@ -4856,7 +4985,7 @@ var SidebarMenuAction = React37.forwardRef(({ className, asChild = false, showOn
4856
4985
  );
4857
4986
  });
4858
4987
  SidebarMenuAction.displayName = "SidebarMenuAction";
4859
- var SidebarMenuBadge = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
4988
+ var SidebarMenuBadge = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
4860
4989
  "div",
4861
4990
  {
4862
4991
  ref,
@@ -4874,8 +5003,8 @@ var SidebarMenuBadge = React37.forwardRef(({ className, ...props }, ref) => /* @
4874
5003
  }
4875
5004
  ));
4876
5005
  SidebarMenuBadge.displayName = "SidebarMenuBadge";
4877
- var SidebarMenuSkeleton = React37.forwardRef(({ className, showIcon = false, ...props }, ref) => {
4878
- const width = React37.useMemo(() => {
5006
+ var SidebarMenuSkeleton = React38.forwardRef(({ className, showIcon = false, ...props }, ref) => {
5007
+ const width = React38.useMemo(() => {
4879
5008
  return `${Math.floor(Math.random() * 40) + 50}%`;
4880
5009
  }, []);
4881
5010
  return /* @__PURE__ */ jsxs(
@@ -4908,7 +5037,7 @@ var SidebarMenuSkeleton = React37.forwardRef(({ className, showIcon = false, ...
4908
5037
  );
4909
5038
  });
4910
5039
  SidebarMenuSkeleton.displayName = "SidebarMenuSkeleton";
4911
- var SidebarMenuSub = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
5040
+ var SidebarMenuSub = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
4912
5041
  "ul",
4913
5042
  {
4914
5043
  ref,
@@ -4922,9 +5051,9 @@ var SidebarMenuSub = React37.forwardRef(({ className, ...props }, ref) => /* @__
4922
5051
  }
4923
5052
  ));
4924
5053
  SidebarMenuSub.displayName = "SidebarMenuSub";
4925
- var SidebarMenuSubItem = React37.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx("li", { ref, ...props }));
5054
+ var SidebarMenuSubItem = React38.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx("li", { ref, ...props }));
4926
5055
  SidebarMenuSubItem.displayName = "SidebarMenuSubItem";
4927
- var SidebarMenuSubButton = React37.forwardRef(({ asChild = false, size = "md", isActive, className, ...props }, ref) => {
5056
+ var SidebarMenuSubButton = React38.forwardRef(({ asChild = false, size = "md", isActive, className, ...props }, ref) => {
4928
5057
  const Comp = asChild ? Slot : "a";
4929
5058
  return /* @__PURE__ */ jsx(
4930
5059
  Comp,
@@ -4956,7 +5085,7 @@ var sliderThumbSizes = {
4956
5085
  default: "h-5 w-5",
4957
5086
  lg: "h-6 w-6"
4958
5087
  };
4959
- var Slider = React37.forwardRef(({ className, size = "default", ...props }, ref) => /* @__PURE__ */ jsxs(
5088
+ var Slider = React38.forwardRef(({ className, size = "default", ...props }, ref) => /* @__PURE__ */ jsxs(
4960
5089
  SliderPrimitive.Root,
4961
5090
  {
4962
5091
  ref,
@@ -4989,10 +5118,57 @@ var Slider = React37.forwardRef(({ className, size = "default", ...props }, ref)
4989
5118
  }
4990
5119
  ));
4991
5120
  Slider.displayName = SliderPrimitive.Root.displayName;
5121
+ function useDocumentTheme() {
5122
+ const [theme, setTheme] = React38.useState("light");
5123
+ React38.useEffect(() => {
5124
+ const root = document.documentElement;
5125
+ const read = () => setTheme(
5126
+ root.classList.contains("dark") || root.dataset.theme === "dark" ? "dark" : "light"
5127
+ );
5128
+ read();
5129
+ const observer = new MutationObserver(read);
5130
+ observer.observe(root, { attributes: true, attributeFilter: ["class", "data-theme"] });
5131
+ return () => observer.disconnect();
5132
+ }, []);
5133
+ return theme;
5134
+ }
4992
5135
  var Toaster = ({ mode: modeProp, className, style, ...props }) => {
4993
- const { theme = "system" } = useTheme();
4994
- const mode = modeProp ?? useUIVariant();
5136
+ const theme = useDocumentTheme();
5137
+ const ctxVariant = useUIVariant();
5138
+ const mode = modeProp ?? ctxVariant;
4995
5139
  return /* @__PURE__ */ jsxs(Fragment, { children: [
5140
+ /* @__PURE__ */ jsx("style", { children: `
5141
+ [data-sonner-toaster] {
5142
+ --toast-close-button-start: unset;
5143
+ --toast-close-button-end: 0.5rem;
5144
+ --toast-close-button-transform: translateY(0.5rem);
5145
+ }
5146
+ [data-sonner-toaster] [data-sonner-toast][data-styled='true'] [data-close-button] {
5147
+ height: 1.25rem;
5148
+ width: 1.25rem;
5149
+ padding: 0;
5150
+ border: none;
5151
+ border-radius: var(--radius-sm);
5152
+ background: transparent;
5153
+ /* Inherited rather than a fixed token: on a richColors toast the
5154
+ text is already the only colour guaranteed to read against that
5155
+ background, so borrowing it keeps the button legible on every
5156
+ variant without a rule per type. */
5157
+ color: inherit;
5158
+ opacity: 0.6;
5159
+ transition: opacity 150ms ease, background-color 150ms ease;
5160
+ }
5161
+ [data-sonner-toaster] [data-sonner-toast][data-styled='true'] [data-close-button] svg {
5162
+ height: 0.75rem;
5163
+ width: 0.75rem;
5164
+ }
5165
+ [data-sonner-toaster] [data-sonner-toast][data-styled='true']:hover [data-close-button]:hover {
5166
+ background: color-mix(in oklab, currentColor 12%, transparent);
5167
+ border-color: transparent;
5168
+ color: inherit;
5169
+ opacity: 1;
5170
+ }
5171
+ ` }),
4996
5172
  mode === "smooth" && /* @__PURE__ */ jsx("style", { children: `[data-sonner-toaster].toaster-smooth { --border-radius: 1.5rem; }` }),
4997
5173
  mode === "playful" && /* @__PURE__ */ jsx("style", { children: `
4998
5174
  [data-sonner-toaster].toaster-playful [data-sonner-toast][data-mounted=true] {
@@ -5067,7 +5243,7 @@ function StatusIndicator({
5067
5243
  children,
5068
5244
  ...props
5069
5245
  }) {
5070
- const hasAccessibleLabel = props["aria-label"] != null || props["aria-labelledby"] != null || React37.Children.count(children) > 0;
5246
+ const hasAccessibleLabel = props["aria-label"] != null || props["aria-labelledby"] != null || React38.Children.count(children) > 0;
5071
5247
  return /* @__PURE__ */ jsxs(
5072
5248
  "span",
5073
5249
  {
@@ -5118,7 +5294,7 @@ var switchSizes = {
5118
5294
  thumb: "size-6 data-[state=checked]:translate-x-7"
5119
5295
  }
5120
5296
  };
5121
- var Switch = React37.forwardRef(({ className, size = "default", mode: modeProp, ...props }, ref) => {
5297
+ var Switch = React38.forwardRef(({ className, size = "default", mode: modeProp, ...props }, ref) => {
5122
5298
  const mode = modeProp ?? useUIVariant();
5123
5299
  const sizes = switchSizes[size];
5124
5300
  if (mode === "playful") {
@@ -5176,7 +5352,7 @@ var Switch = React37.forwardRef(({ className, size = "default", mode: modeProp,
5176
5352
  );
5177
5353
  });
5178
5354
  Switch.displayName = SwitchPrimitives.Root.displayName;
5179
- var TableSizeContext = React37.createContext("default");
5355
+ var TableSizeContext = React38.createContext("default");
5180
5356
  var tableTextSizes = {
5181
5357
  sm: "text-xs",
5182
5358
  default: "text-sm",
@@ -5197,7 +5373,7 @@ var tableCaptionSizes = {
5197
5373
  default: "mt-4 text-sm",
5198
5374
  lg: "mt-4 text-sm"
5199
5375
  };
5200
- var Table = React37.forwardRef(({ className, size = "default", ...props }, ref) => /* @__PURE__ */ jsx("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ jsx(TableSizeContext.Provider, { value: size, children: /* @__PURE__ */ jsx(
5376
+ var Table = React38.forwardRef(({ className, size = "default", ...props }, ref) => /* @__PURE__ */ jsx("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ jsx(TableSizeContext.Provider, { value: size, children: /* @__PURE__ */ jsx(
5201
5377
  "table",
5202
5378
  {
5203
5379
  ref,
@@ -5206,9 +5382,9 @@ var Table = React37.forwardRef(({ className, size = "default", ...props }, ref)
5206
5382
  }
5207
5383
  ) }) }));
5208
5384
  Table.displayName = "Table";
5209
- var TableHeader = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("thead", { ref, className: cn("[&_tr]:border-b", className), ...props }));
5385
+ var TableHeader = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("thead", { ref, className: cn("[&_tr]:border-b", className), ...props }));
5210
5386
  TableHeader.displayName = "TableHeader";
5211
- var TableBody = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
5387
+ var TableBody = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
5212
5388
  "tbody",
5213
5389
  {
5214
5390
  ref,
@@ -5217,7 +5393,7 @@ var TableBody = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE_
5217
5393
  }
5218
5394
  ));
5219
5395
  TableBody.displayName = "TableBody";
5220
- var TableFooter = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
5396
+ var TableFooter = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
5221
5397
  "tfoot",
5222
5398
  {
5223
5399
  ref,
@@ -5229,7 +5405,7 @@ var TableFooter = React37.forwardRef(({ className, ...props }, ref) => /* @__PUR
5229
5405
  }
5230
5406
  ));
5231
5407
  TableFooter.displayName = "TableFooter";
5232
- var TableRow = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
5408
+ var TableRow = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
5233
5409
  "tr",
5234
5410
  {
5235
5411
  ref,
@@ -5241,8 +5417,8 @@ var TableRow = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__
5241
5417
  }
5242
5418
  ));
5243
5419
  TableRow.displayName = "TableRow";
5244
- var TableHead = React37.forwardRef(({ className, ...props }, ref) => {
5245
- const size = React37.useContext(TableSizeContext);
5420
+ var TableHead = React38.forwardRef(({ className, ...props }, ref) => {
5421
+ const size = React38.useContext(TableSizeContext);
5246
5422
  return /* @__PURE__ */ jsx(
5247
5423
  "th",
5248
5424
  {
@@ -5257,8 +5433,8 @@ var TableHead = React37.forwardRef(({ className, ...props }, ref) => {
5257
5433
  );
5258
5434
  });
5259
5435
  TableHead.displayName = "TableHead";
5260
- var TableCell = React37.forwardRef(({ className, ...props }, ref) => {
5261
- const size = React37.useContext(TableSizeContext);
5436
+ var TableCell = React38.forwardRef(({ className, ...props }, ref) => {
5437
+ const size = React38.useContext(TableSizeContext);
5262
5438
  return /* @__PURE__ */ jsx(
5263
5439
  "td",
5264
5440
  {
@@ -5273,8 +5449,8 @@ var TableCell = React37.forwardRef(({ className, ...props }, ref) => {
5273
5449
  );
5274
5450
  });
5275
5451
  TableCell.displayName = "TableCell";
5276
- var TableCaption = React37.forwardRef(({ className, ...props }, ref) => {
5277
- const size = React37.useContext(TableSizeContext);
5452
+ var TableCaption = React38.forwardRef(({ className, ...props }, ref) => {
5453
+ const size = React38.useContext(TableSizeContext);
5278
5454
  return /* @__PURE__ */ jsx(
5279
5455
  "caption",
5280
5456
  {
@@ -5285,7 +5461,7 @@ var TableCaption = React37.forwardRef(({ className, ...props }, ref) => {
5285
5461
  );
5286
5462
  });
5287
5463
  TableCaption.displayName = "TableCaption";
5288
- var TabsSizeContext = React37.createContext("default");
5464
+ var TabsSizeContext = React38.createContext("default");
5289
5465
  var tabsListSizes = {
5290
5466
  sm: "h-8 p-1",
5291
5467
  default: "h-10 p-1",
@@ -5296,13 +5472,13 @@ var tabsTriggerSizes = {
5296
5472
  default: "px-3 py-1.5 text-sm",
5297
5473
  lg: "px-4 py-2 text-sm"
5298
5474
  };
5299
- var Tabs = React37.forwardRef(({ mode: modeProp, ...props }, ref) => {
5475
+ var Tabs = React38.forwardRef(({ mode: modeProp, ...props }, ref) => {
5300
5476
  const inheritedMode = useUIVariant();
5301
5477
  const mode = modeProp ?? inheritedMode;
5302
5478
  return /* @__PURE__ */ jsx(UIVariantProvider, { mode, children: /* @__PURE__ */ jsx(TabsPrimitive.Root, { ref, ...props }) });
5303
5479
  });
5304
5480
  Tabs.displayName = TabsPrimitive.Root.displayName;
5305
- var TabsList = React37.forwardRef(({ className, size = "default", ...props }, ref) => {
5481
+ var TabsList = React38.forwardRef(({ className, size = "default", ...props }, ref) => {
5306
5482
  const mode = useUIVariant();
5307
5483
  return /* @__PURE__ */ jsx(TabsSizeContext.Provider, { value: size, children: /* @__PURE__ */ jsx(
5308
5484
  TabsPrimitive.List,
@@ -5320,8 +5496,8 @@ var TabsList = React37.forwardRef(({ className, size = "default", ...props }, re
5320
5496
  ) });
5321
5497
  });
5322
5498
  TabsList.displayName = TabsPrimitive.List.displayName;
5323
- var TabsTrigger = React37.forwardRef(({ className, ...props }, ref) => {
5324
- const size = React37.useContext(TabsSizeContext);
5499
+ var TabsTrigger = React38.forwardRef(({ className, ...props }, ref) => {
5500
+ const size = React38.useContext(TabsSizeContext);
5325
5501
  const mode = useUIVariant();
5326
5502
  const trigger = /* @__PURE__ */ jsx(
5327
5503
  TabsPrimitive.Trigger,
@@ -5352,7 +5528,7 @@ var TabsTrigger = React37.forwardRef(({ className, ...props }, ref) => {
5352
5528
  return trigger;
5353
5529
  });
5354
5530
  TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
5355
- var TabsContent = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
5531
+ var TabsContent = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
5356
5532
  TabsPrimitive.Content,
5357
5533
  {
5358
5534
  ref,
@@ -5384,7 +5560,7 @@ var toggleVariants = cva(
5384
5560
  }
5385
5561
  }
5386
5562
  );
5387
- var Toggle = React37.forwardRef(({ className, variant, size, mode: modeProp, ...props }, ref) => {
5563
+ var Toggle = React38.forwardRef(({ className, variant, size, mode: modeProp, ...props }, ref) => {
5388
5564
  const inheritedMode = useUIVariant();
5389
5565
  const mode = modeProp ?? inheritedMode;
5390
5566
  const toggle = /* @__PURE__ */ jsx(
@@ -5415,11 +5591,11 @@ var Toggle = React37.forwardRef(({ className, variant, size, mode: modeProp, ...
5415
5591
  return toggle;
5416
5592
  });
5417
5593
  Toggle.displayName = TogglePrimitive.Root.displayName;
5418
- var ToggleGroupContext = React37.createContext({
5594
+ var ToggleGroupContext = React38.createContext({
5419
5595
  size: "default",
5420
5596
  variant: "default"
5421
5597
  });
5422
- var ToggleGroup = React37.forwardRef(({ className, variant, size, mode: modeProp, children, ...props }, ref) => {
5598
+ var ToggleGroup = React38.forwardRef(({ className, variant, size, mode: modeProp, children, ...props }, ref) => {
5423
5599
  const inheritedMode = useUIVariant();
5424
5600
  const mode = modeProp ?? inheritedMode;
5425
5601
  return /* @__PURE__ */ jsx(UIVariantProvider, { mode, children: /* @__PURE__ */ jsx(
@@ -5433,8 +5609,8 @@ var ToggleGroup = React37.forwardRef(({ className, variant, size, mode: modeProp
5433
5609
  ) });
5434
5610
  });
5435
5611
  ToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName;
5436
- var ToggleGroupItem = React37.forwardRef(({ className, children, variant, size, mode: modeProp, ...props }, ref) => {
5437
- const context = React37.useContext(ToggleGroupContext);
5612
+ var ToggleGroupItem = React38.forwardRef(({ className, children, variant, size, mode: modeProp, ...props }, ref) => {
5613
+ const context = React38.useContext(ToggleGroupContext);
5438
5614
  const inheritedMode = useUIVariant();
5439
5615
  const mode = modeProp ?? context.mode ?? inheritedMode;
5440
5616
  const item = /* @__PURE__ */ jsx(
@@ -6971,7 +7147,7 @@ function AsciiText({
6971
7147
  const isAccent = accentCols.has(cell.col);
6972
7148
  const multiAccentColor = multiAccentCols?.get(cell.col);
6973
7149
  const shineAlpha = shineBounds && shineCols.has(cell.col) ? getShineAlpha(cell.col, cell.row, 0.2, shineBounds) * (cell.ch === "\u2591" ? 0.55 : 1) : 0;
6974
- return /* @__PURE__ */ jsxs(React37.Fragment, { children: [
7150
+ return /* @__PURE__ */ jsxs(React38.Fragment, { children: [
6975
7151
  /* @__PURE__ */ jsx(
6976
7152
  "rect",
6977
7153
  {
@@ -7179,6 +7355,6 @@ function Enchanted({ children, className, hoverOnly = false, glintClassName, ...
7179
7355
  ] });
7180
7356
  }
7181
7357
 
7182
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AsciiText, AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Calendar, CalendarDayButton, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Collapsible, CollapsibleContent2 as CollapsibleContent, CollapsibleTrigger2 as CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, Enchanted, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item4 as Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Kbd, KbdGroup, Label3 as Label, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, Progress, RadioGroup4 as RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, 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, Spinner, StatusIndicator, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, ThemeScript, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip2 as Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UIVariantProvider, badgeVariants, buttonGroupVariants, buttonVariants, cn, fireConfetti, navigationMenuTriggerStyle, statusIndicatorDotVariants, toggleVariants, useCopyToClipboard, useFormField, useIsMobile, useSidebar, useUIVariant };
7358
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AsciiText, AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Calendar, CalendarDayButton, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Collapsible, CollapsibleContent2 as CollapsibleContent, CollapsibleTrigger2 as CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, Enchanted, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item4 as Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Kbd, KbdGroup, Label3 as Label, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, NumberInput, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, Progress, RadioGroup4 as RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, 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, Spinner, StatusIndicator, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, ThemeScript, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip2 as Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UIVariantProvider, badgeVariants, buttonGroupVariants, buttonVariants, cn, fireConfetti, inputBase, inputPlayfulBacking, navigationMenuTriggerStyle, statusIndicatorDotVariants, toggleVariants, useCopyToClipboard, useFormField, useIsMobile, useSidebar, useUIVariant };
7183
7359
  //# sourceMappingURL=index.js.map
7184
7360
  //# sourceMappingURL=index.js.map