@eqtylab/equality 2.3.2 → 2.4.0

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.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var React16 = require('react');
3
+ var React14 = require('react');
4
4
  var classVarianceAuthority = require('class-variance-authority');
5
5
  var styles2 = require('./alert.module.module.css.module.css');
6
6
  var LucideIcons = require('lucide-react');
@@ -115,7 +115,7 @@ function _interopNamespace(e) {
115
115
  return Object.freeze(n);
116
116
  }
117
117
 
118
- var React16__namespace = /*#__PURE__*/_interopNamespace(React16);
118
+ var React14__namespace = /*#__PURE__*/_interopNamespace(React14);
119
119
  var styles2__default = /*#__PURE__*/_interopDefault(styles2);
120
120
  var LucideIcons__namespace = /*#__PURE__*/_interopNamespace(LucideIcons);
121
121
  var styles__default = /*#__PURE__*/_interopDefault(styles);
@@ -257,7 +257,7 @@ var iconVariants = classVarianceAuthority.cva(styles__default.default["icon-cont
257
257
  }
258
258
  });
259
259
  var iconElevationVariants = generateElevationVariants(styles__default.default, "icon-container", ELEVATION.RAISED);
260
- var Icon = React16.forwardRef(
260
+ var Icon = React14.forwardRef(
261
261
  ({ className, size, background, icon, elevation = ELEVATION.RAISED, ...props }, ref) => {
262
262
  let renderedIcon;
263
263
  if (typeof icon === "string") {
@@ -266,9 +266,9 @@ var Icon = React16.forwardRef(
266
266
  throw new Error(`Icon "${icon}" not found in lucide-react`);
267
267
  }
268
268
  renderedIcon = /* @__PURE__ */ jsxRuntime.jsx(LucideIcon, { className: cn(styles__default.default["icon"]) });
269
- } else if (React16__namespace.isValidElement(icon)) {
269
+ } else if (React14__namespace.isValidElement(icon)) {
270
270
  const existingProps = icon.props;
271
- renderedIcon = React16__namespace.cloneElement(
271
+ renderedIcon = React14__namespace.cloneElement(
272
272
  icon,
273
273
  {
274
274
  ...existingProps,
@@ -313,7 +313,7 @@ var defaultVariantIcons = {
313
313
  warning: "OctagonAlert",
314
314
  danger: "TriangleAlert"
315
315
  };
316
- var Alert = React16__namespace.forwardRef(
316
+ var Alert = React14__namespace.forwardRef(
317
317
  ({ className, variant, title, description, icon, ...props }, ref) => {
318
318
  const effectiveIcon = icon === void 0 ? variant ? defaultVariantIcons[variant] : void 0 : icon;
319
319
  return /* @__PURE__ */ jsxRuntime.jsxs(
@@ -366,7 +366,7 @@ var buttonVariants = classVarianceAuthority.cva(styles3__default.default["button
366
366
  size: "md"
367
367
  }
368
368
  });
369
- var Button = React16__namespace.forwardRef(
369
+ var Button = React14__namespace.forwardRef(
370
370
  ({ className, variant, size, asChild = false, prefix, suffix, children, ...props }, ref) => {
371
371
  const isLink = "href" in props && props.href;
372
372
  if (isLink) {
@@ -409,7 +409,7 @@ Button.displayName = "Button";
409
409
  var AlertDialog = AlertDialogPrimitive__namespace.Root;
410
410
  var AlertDialogTrigger = AlertDialogPrimitive__namespace.Trigger;
411
411
  var AlertDialogPortal = ({ children }) => /* @__PURE__ */ jsxRuntime.jsx(AlertDialogPrimitive__namespace.Portal, { container: getThemeProviderRoot(), children });
412
- var AlertDialogOverlay = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
412
+ var AlertDialogOverlay = React14__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
413
413
  AlertDialogPrimitive__namespace.Overlay,
414
414
  {
415
415
  className: cn(styles4__default.default["alert-dialog-overlay"], className),
@@ -418,7 +418,7 @@ var AlertDialogOverlay = React16__namespace.forwardRef(({ className, ...props },
418
418
  }
419
419
  ));
420
420
  AlertDialogOverlay.displayName = AlertDialogPrimitive__namespace.Overlay.displayName;
421
- var AlertDialogContent = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(AlertDialogPortal, { children: [
421
+ var AlertDialogContent = React14__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(AlertDialogPortal, { children: [
422
422
  /* @__PURE__ */ jsxRuntime.jsx(AlertDialogOverlay, {}),
423
423
  /* @__PURE__ */ jsxRuntime.jsx(
424
424
  AlertDialogPrimitive__namespace.Content,
@@ -434,7 +434,7 @@ var AlertDialogHeader = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.
434
434
  AlertDialogHeader.displayName = "AlertDialogHeader";
435
435
  var AlertDialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(styles4__default.default["alert-dialog-footer"], className), ...props });
436
436
  AlertDialogFooter.displayName = "AlertDialogFooter";
437
- var AlertDialogTitle = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
437
+ var AlertDialogTitle = React14__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
438
438
  AlertDialogPrimitive__namespace.Title,
439
439
  {
440
440
  ref,
@@ -443,7 +443,7 @@ var AlertDialogTitle = React16__namespace.forwardRef(({ className, ...props }, r
443
443
  }
444
444
  ));
445
445
  AlertDialogTitle.displayName = AlertDialogPrimitive__namespace.Title.displayName;
446
- var AlertDialogDescription = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
446
+ var AlertDialogDescription = React14__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
447
447
  AlertDialogPrimitive__namespace.Description,
448
448
  {
449
449
  ref,
@@ -452,7 +452,7 @@ var AlertDialogDescription = React16__namespace.forwardRef(({ className, ...prop
452
452
  }
453
453
  ));
454
454
  AlertDialogDescription.displayName = AlertDialogPrimitive__namespace.Description.displayName;
455
- var AlertDialogAction = React16__namespace.forwardRef(({ className, variant = "primary", size = "sm", prefix, suffix, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
455
+ var AlertDialogAction = React14__namespace.forwardRef(({ className, variant = "primary", size = "sm", prefix, suffix, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
456
456
  AlertDialogPrimitive__namespace.Action,
457
457
  {
458
458
  ref,
@@ -466,7 +466,7 @@ var AlertDialogAction = React16__namespace.forwardRef(({ className, variant = "p
466
466
  }
467
467
  ));
468
468
  AlertDialogAction.displayName = AlertDialogPrimitive__namespace.Action.displayName;
469
- var AlertDialogCancel = React16__namespace.forwardRef(({ className, variant = "tertiary", size = "sm", prefix, suffix, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
469
+ var AlertDialogCancel = React14__namespace.forwardRef(({ className, variant = "tertiary", size = "sm", prefix, suffix, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
470
470
  AlertDialogPrimitive__namespace.Cancel,
471
471
  {
472
472
  ref,
@@ -480,7 +480,7 @@ var AlertDialogCancel = React16__namespace.forwardRef(({ className, variant = "t
480
480
  }
481
481
  ));
482
482
  AlertDialogCancel.displayName = AlertDialogPrimitive__namespace.Cancel.displayName;
483
- var Avatar = React16__namespace.forwardRef(
483
+ var Avatar = React14__namespace.forwardRef(
484
484
  ({ className, size = "md", shape = "circle", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
485
485
  AvatarPrimitive__namespace.Root,
486
486
  {
@@ -491,9 +491,9 @@ var Avatar = React16__namespace.forwardRef(
491
491
  )
492
492
  );
493
493
  Avatar.displayName = AvatarPrimitive__namespace.Root.displayName;
494
- var AvatarImage = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(AvatarPrimitive__namespace.Image, { ref, className: cn(styles5__default.default["avatar-image"], className), ...props }));
494
+ var AvatarImage = React14__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(AvatarPrimitive__namespace.Image, { ref, className: cn(styles5__default.default["avatar-image"], className), ...props }));
495
495
  AvatarImage.displayName = AvatarPrimitive__namespace.Image.displayName;
496
- var AvatarFallback = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
496
+ var AvatarFallback = React14__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
497
497
  AvatarPrimitive__namespace.Fallback,
498
498
  {
499
499
  ref,
@@ -506,7 +506,7 @@ var TooltipProvider = TooltipPrimitive__namespace.Provider;
506
506
  var Tooltip = TooltipPrimitive__namespace.Root;
507
507
  var TooltipTrigger = TooltipPrimitive__namespace.Trigger;
508
508
  var TooltipPortal = ({ children }) => /* @__PURE__ */ jsxRuntime.jsx(TooltipPrimitive__namespace.Portal, { container: getThemeProviderRoot(), children });
509
- var TooltipContent = React16__namespace.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(TooltipPortal, { children: /* @__PURE__ */ jsxRuntime.jsxs(
509
+ var TooltipContent = React14__namespace.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(TooltipPortal, { children: /* @__PURE__ */ jsxRuntime.jsxs(
510
510
  TooltipPrimitive__namespace.Content,
511
511
  {
512
512
  ref,
@@ -624,10 +624,10 @@ function Badge({
624
624
  }
625
625
  );
626
626
  }
627
- var BarGraphSegment = React16__namespace.forwardRef(
627
+ var BarGraphSegment = React14__namespace.forwardRef(
628
628
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
629
629
  ({ value, color, label, tooltip, className, style, ...props }, ref) => {
630
- const tooltipId = React16__namespace.useId();
630
+ const tooltipId = React14__namespace.useId();
631
631
  return (
632
632
  // Widths are proportional (`value / sum`): each segment grows by its `value`
633
633
  // within the flex row, so the parent never needs to know the total.
@@ -678,9 +678,9 @@ var barVariants = classVarianceAuthority.cva(styles8__default.default["bar"], {
678
678
  size: "md"
679
679
  }
680
680
  });
681
- var BarGraph = React16__namespace.forwardRef(
681
+ var BarGraph = React14__namespace.forwardRef(
682
682
  ({ className, children, showLabels = false, size, ...props }, ref) => {
683
- const validChildren = React16__namespace.Children.toArray(children).filter(React16__namespace.isValidElement);
683
+ const validChildren = React14__namespace.Children.toArray(children).filter(React14__namespace.isValidElement);
684
684
  const segments = validChildren.filter(
685
685
  (child) => child.type === BarGraphSegment
686
686
  );
@@ -768,9 +768,9 @@ var BgGradient = ({
768
768
  theme,
769
769
  placement = "full"
770
770
  }) => {
771
- const canvasRef = React16.useRef(null);
772
- const brandColors = React16.useMemo(() => getBrandColors(), []);
773
- React16.useEffect(() => {
771
+ const canvasRef = React14.useRef(null);
772
+ const brandColors = React14.useMemo(() => getBrandColors(), []);
773
+ React14.useEffect(() => {
774
774
  const canvas = canvasRef.current;
775
775
  if (!canvas) return;
776
776
  const ctx = canvas.getContext("2d");
@@ -1014,7 +1014,7 @@ var getTypeConfig = (type) => {
1014
1014
  };
1015
1015
  }
1016
1016
  };
1017
- var CardContentHeader = React16.forwardRef(
1017
+ var CardContentHeader = React14.forwardRef(
1018
1018
  ({ className, icon, heading, onButtonClick, ...props }, ref) => {
1019
1019
  const shouldRender = heading || onButtonClick;
1020
1020
  const shouldWrap = !!onButtonClick;
@@ -1042,7 +1042,7 @@ var CardContentHeader = React16.forwardRef(
1042
1042
  );
1043
1043
  CardContentHeader.displayName = "CardContentHeader";
1044
1044
  var cardElevationVariants = generateElevationVariants(styles12__default.default, "card", ELEVATION.RAISED);
1045
- var Card = React16__namespace.forwardRef(({ className, hoverGradientClassName, elevation = ELEVATION.RAISED, ...props }, ref) => {
1045
+ var Card = React14__namespace.forwardRef(({ className, hoverGradientClassName, elevation = ELEVATION.RAISED, ...props }, ref) => {
1046
1046
  const shouldHaveHoverStyle = props.onClick !== void 0;
1047
1047
  return /* @__PURE__ */ jsxRuntime.jsxs(
1048
1048
  "div",
@@ -1063,28 +1063,28 @@ var Card = React16__namespace.forwardRef(({ className, hoverGradientClassName, e
1063
1063
  );
1064
1064
  });
1065
1065
  Card.displayName = "Card";
1066
- var CardHeader = React16__namespace.forwardRef(
1066
+ var CardHeader = React14__namespace.forwardRef(
1067
1067
  ({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn(styles12__default.default["card-header"], className), ...props })
1068
1068
  );
1069
1069
  CardHeader.displayName = "CardHeader";
1070
- var CardTitle = React16__namespace.forwardRef(
1070
+ var CardTitle = React14__namespace.forwardRef(
1071
1071
  ({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn(styles12__default.default["card-title"], className), ...props })
1072
1072
  );
1073
1073
  CardTitle.displayName = "CardTitle";
1074
- var CardDescription = React16__namespace.forwardRef(
1074
+ var CardDescription = React14__namespace.forwardRef(
1075
1075
  ({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn(styles12__default.default["card-description"], className), ...props })
1076
1076
  );
1077
1077
  CardDescription.displayName = "CardDescription";
1078
- var CardContent = React16__namespace.forwardRef(
1078
+ var CardContent = React14__namespace.forwardRef(
1079
1079
  ({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn(styles12__default.default["card-content"], className), ...props })
1080
1080
  );
1081
1081
  CardContent.displayName = "CardContent";
1082
- var CardFooter = React16__namespace.forwardRef(
1082
+ var CardFooter = React14__namespace.forwardRef(
1083
1083
  ({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn(styles12__default.default["card-footer"], className), ...props })
1084
1084
  );
1085
1085
  CardFooter.displayName = "CardFooter";
1086
1086
  var CheckIcon = LucideIcons.Check;
1087
- var Checkbox = React16__namespace.forwardRef(
1087
+ var Checkbox = React14__namespace.forwardRef(
1088
1088
  ({ className, icon: Icon3, size = "md", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1089
1089
  CheckboxPrimitive__namespace.Root,
1090
1090
  {
@@ -1170,7 +1170,7 @@ function CopyButton({
1170
1170
  className,
1171
1171
  onClick
1172
1172
  }) {
1173
- const [copied, setCopied] = React16__namespace.useState(false);
1173
+ const [copied, setCopied] = React14__namespace.useState(false);
1174
1174
  const handleCopy = async () => {
1175
1175
  try {
1176
1176
  if (navigator.clipboard && navigator.clipboard.writeText) {
@@ -1327,7 +1327,7 @@ var getServerSnapshot = () => {
1327
1327
  return void 0;
1328
1328
  };
1329
1329
  var useTheme = () => {
1330
- const theme = React16.useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
1330
+ const theme = React14.useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
1331
1331
  return [theme, setTheme];
1332
1332
  };
1333
1333
  var WRAP = true;
@@ -1368,7 +1368,7 @@ var Dialog = DialogPrimitive__namespace.Root;
1368
1368
  var DialogTrigger = DialogPrimitive__namespace.Trigger;
1369
1369
  var DialogPortal = ({ children }) => /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Portal, { container: getThemeProviderRoot(), children });
1370
1370
  var DialogClose = DialogPrimitive__namespace.Close;
1371
- var DialogOverlay = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1371
+ var DialogOverlay = React14__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1372
1372
  DialogPrimitive__namespace.Overlay,
1373
1373
  {
1374
1374
  ref,
@@ -1377,7 +1377,7 @@ var DialogOverlay = React16__namespace.forwardRef(({ className, ...props }, ref)
1377
1377
  }
1378
1378
  ));
1379
1379
  DialogOverlay.displayName = DialogPrimitive__namespace.Overlay.displayName;
1380
- var DialogContainer = React16__namespace.forwardRef(({ className, children, size = "md", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(DialogPortal, { children: [
1380
+ var DialogContainer = React14__namespace.forwardRef(({ className, children, size = "md", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(DialogPortal, { children: [
1381
1381
  /* @__PURE__ */ jsxRuntime.jsx(DialogOverlay, {}),
1382
1382
  /* @__PURE__ */ jsxRuntime.jsx(
1383
1383
  DialogPrimitive__namespace.Content,
@@ -1397,12 +1397,12 @@ DialogContainer.displayName = DialogPrimitive__namespace.Content.displayName;
1397
1397
  var DialogHeaderIcon = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(styles16__default.default["dialog-header-icon"], className), ...props });
1398
1398
  DialogHeaderIcon.displayName = "DialogHeaderIcon";
1399
1399
  var DialogHeader = ({ className, children, ...props }) => {
1400
- const childrenArray = React16__namespace.Children.toArray(children);
1400
+ const childrenArray = React14__namespace.Children.toArray(children);
1401
1401
  const icon = childrenArray.find(
1402
- (child) => React16__namespace.isValidElement(child) && child.type === DialogHeaderIcon
1402
+ (child) => React14__namespace.isValidElement(child) && child.type === DialogHeaderIcon
1403
1403
  );
1404
1404
  const otherChildren = childrenArray.filter(
1405
- (child) => !(React16__namespace.isValidElement(child) && child.type === DialogHeaderIcon)
1405
+ (child) => !(React14__namespace.isValidElement(child) && child.type === DialogHeaderIcon)
1406
1406
  );
1407
1407
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(styles16__default.default["dialog-header"], className), ...props, children: [
1408
1408
  icon,
@@ -1413,9 +1413,9 @@ var DialogHeader = ({ className, children, ...props }) => {
1413
1413
  DialogHeader.displayName = "DialogHeader";
1414
1414
  var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(styles16__default.default["dialog-footer"], className), ...props });
1415
1415
  DialogFooter.displayName = "DialogFooter";
1416
- var DialogTitle = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Title, { ref, className: cn(styles16__default.default["dialog-title"], className), ...props }));
1416
+ var DialogTitle = React14__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Title, { ref, className: cn(styles16__default.default["dialog-title"], className), ...props }));
1417
1417
  DialogTitle.displayName = DialogPrimitive__namespace.Title.displayName;
1418
- var DialogDescription = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1418
+ var DialogDescription = React14__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1419
1419
  DialogPrimitive__namespace.Description,
1420
1420
  {
1421
1421
  ref,
@@ -1528,7 +1528,7 @@ function CommandShortcut({ className, ...props }) {
1528
1528
  var Popover = PopoverPrimitive__namespace.Root;
1529
1529
  var PopoverTrigger = PopoverPrimitive__namespace.Trigger;
1530
1530
  var PopoverPortal = ({ children }) => /* @__PURE__ */ jsxRuntime.jsx(PopoverPrimitive__namespace.Portal, { container: getThemeProviderRoot(), children });
1531
- var PopoverContent = React16__namespace.forwardRef(({ className, align = "center", sideOffset = 4, arrow = false, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(PopoverPortal, { children: /* @__PURE__ */ jsxRuntime.jsxs(
1531
+ var PopoverContent = React14__namespace.forwardRef(({ className, align = "center", sideOffset = 4, arrow = false, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(PopoverPortal, { children: /* @__PURE__ */ jsxRuntime.jsxs(
1532
1532
  PopoverPrimitive__namespace.Content,
1533
1533
  {
1534
1534
  ref,
@@ -1547,9 +1547,9 @@ var CalendarDaysIcon = LucideIcons.CalendarDays;
1547
1547
  var ChevronLeftIcon = LucideIcons.ChevronLeft;
1548
1548
  var ChevronRightIcon = LucideIcons.ChevronRight;
1549
1549
  var DateRangePicker = ({ dateRange, onSelect, className }) => {
1550
- const [selecting, setSelecting] = React16.useState(null);
1551
- const [displayedMonth, setDisplayedMonth] = React16.useState((/* @__PURE__ */ new Date()).getMonth());
1552
- const [displayedYear, setDisplayedYear] = React16.useState((/* @__PURE__ */ new Date()).getFullYear());
1550
+ const [selecting, setSelecting] = React14.useState(null);
1551
+ const [displayedMonth, setDisplayedMonth] = React14.useState((/* @__PURE__ */ new Date()).getMonth());
1552
+ const [displayedYear, setDisplayedYear] = React14.useState((/* @__PURE__ */ new Date()).getFullYear());
1553
1553
  const daysInMonth = new Date(displayedYear, displayedMonth + 1, 0).getDate();
1554
1554
  const firstDayOfMonth = new Date(displayedYear, displayedMonth, 1).getDay();
1555
1555
  const days = Array.from(
@@ -1751,8 +1751,8 @@ function DisplayField({
1751
1751
  slot,
1752
1752
  ...props
1753
1753
  }) {
1754
- const middleTruncationContainerRef = React16.useRef(null);
1755
- const [middleTruncationWidth, setMiddleTruncationWidth] = React16.useState(void 0);
1754
+ const middleTruncationContainerRef = React14.useRef(null);
1755
+ const [middleTruncationWidth, setMiddleTruncationWidth] = React14.useState(void 0);
1756
1756
  const getIcon = () => {
1757
1757
  if (variant === "success" || variant === "neutralCheck") {
1758
1758
  return /* @__PURE__ */ jsxRuntime.jsx(LucideIcons.Check, { className: styles20__default.default["icon-width"] });
@@ -1780,7 +1780,7 @@ function DisplayField({
1780
1780
  return "";
1781
1781
  };
1782
1782
  const showActions = copy || actions;
1783
- React16.useEffect(() => {
1783
+ React14.useEffect(() => {
1784
1784
  const calcMiddleTruncationWidth = () => {
1785
1785
  const targetW = middleTruncationContainerRef.current?.getBoundingClientRect().width;
1786
1786
  setMiddleTruncationWidth(targetW);
@@ -1838,7 +1838,7 @@ Drawer.displayName = "Drawer";
1838
1838
  var DrawerTrigger = vaul.Drawer.Trigger;
1839
1839
  var DrawerPortal = ({ children }) => /* @__PURE__ */ jsxRuntime.jsx(vaul.Drawer.Portal, { container: getThemeProviderRoot(), children });
1840
1840
  var DrawerClose = vaul.Drawer.Close;
1841
- var DrawerOverlay = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1841
+ var DrawerOverlay = React14__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1842
1842
  vaul.Drawer.Overlay,
1843
1843
  {
1844
1844
  ref,
@@ -1847,7 +1847,7 @@ var DrawerOverlay = React16__namespace.forwardRef(({ className, ...props }, ref)
1847
1847
  }
1848
1848
  ));
1849
1849
  DrawerOverlay.displayName = vaul.Drawer.Overlay.displayName;
1850
- var DrawerContent = React16__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(DrawerPortal, { children: [
1850
+ var DrawerContent = React14__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(DrawerPortal, { children: [
1851
1851
  /* @__PURE__ */ jsxRuntime.jsx(DrawerOverlay, {}),
1852
1852
  /* @__PURE__ */ jsxRuntime.jsxs(
1853
1853
  vaul.Drawer.Content,
@@ -1865,7 +1865,7 @@ var DrawerContent = React16__namespace.forwardRef(({ className, children, ...pro
1865
1865
  DrawerContent.displayName = "DrawerContent";
1866
1866
  var DrawerHeader = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(styles21__default.default["drawer-header"], className), ...props });
1867
1867
  DrawerHeader.displayName = "DrawerHeader";
1868
- var DrawerHeaderActions = React16__namespace.forwardRef(({ className, rowSpan, style, ...props }, ref) => {
1868
+ var DrawerHeaderActions = React14__namespace.forwardRef(({ className, rowSpan, style, ...props }, ref) => {
1869
1869
  return /* @__PURE__ */ jsxRuntime.jsx(
1870
1870
  "div",
1871
1871
  {
@@ -1879,9 +1879,9 @@ var DrawerHeaderActions = React16__namespace.forwardRef(({ className, rowSpan, s
1879
1879
  DrawerHeaderActions.displayName = "DrawerHeaderActions";
1880
1880
  var DrawerFooter = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(styles21__default.default["drawer-footer"], className), ...props });
1881
1881
  DrawerFooter.displayName = "DrawerFooter";
1882
- var DrawerTitle = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(vaul.Drawer.Title, { ref, className: cn(styles21__default.default["drawer-title"], className), ...props }));
1882
+ var DrawerTitle = React14__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(vaul.Drawer.Title, { ref, className: cn(styles21__default.default["drawer-title"], className), ...props }));
1883
1883
  DrawerTitle.displayName = vaul.Drawer.Title.displayName;
1884
- var DrawerDescription = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1884
+ var DrawerDescription = React14__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1885
1885
  vaul.Drawer.Description,
1886
1886
  {
1887
1887
  ref,
@@ -1895,30 +1895,173 @@ DrawerInnerContent.displayName = "DrawerInnerContent";
1895
1895
  var CheckIcon2 = LucideIcons.Check;
1896
1896
  var ChevronRightIcon2 = LucideIcons.ChevronRight;
1897
1897
  var CircleIcon = LucideIcons.Circle;
1898
- var DropdownMenu = DropdownMenuPrimitive__namespace.Root;
1898
+ var SearchIcon2 = LucideIcons.Search;
1899
+ var DropdownMenuSearchContext = React14__namespace.createContext(null);
1900
+ var useDropdownMenuSearch = () => React14__namespace.useContext(DropdownMenuSearchContext);
1901
+ var useIsSearching = () => {
1902
+ const ctx = useDropdownMenuSearch();
1903
+ return !!ctx && ctx.query.trim().length > 0;
1904
+ };
1905
+ var DropdownMenuBreadcrumbContext = React14__namespace.createContext([]);
1906
+ var useBreadcrumbAncestry = () => React14__namespace.useContext(DropdownMenuBreadcrumbContext);
1907
+ function getNodeText(node) {
1908
+ if (node == null || typeof node === "boolean") return "";
1909
+ if (typeof node === "string" || typeof node === "number") return String(node);
1910
+ if (Array.isArray(node)) return node.map(getNodeText).join("");
1911
+ if (React14__namespace.isValidElement(node)) {
1912
+ return getNodeText(node.props.children);
1913
+ }
1914
+ return "";
1915
+ }
1916
+ var SUB_CONTENT_NAME = "DropdownMenuSubContent";
1917
+ var SUB_TRIGGER_NAME = "DropdownMenuSubTrigger";
1918
+ function hasDisplayName(node, name) {
1919
+ return React14__namespace.isValidElement(node) && typeof node.type !== "string" && node.type.displayName === name;
1920
+ }
1921
+ var isSubContent = (node) => hasDisplayName(node, SUB_CONTENT_NAME);
1922
+ var isSubTrigger = (node) => hasDisplayName(node, SUB_TRIGGER_NAME);
1923
+ function findSubContentChildren(nodes) {
1924
+ let result = null;
1925
+ let done = false;
1926
+ const walk = (ns) => {
1927
+ React14__namespace.Children.forEach(ns, (child) => {
1928
+ if (done || !React14__namespace.isValidElement(child)) return;
1929
+ if (isSubContent(child)) {
1930
+ result = child.props.children ?? null;
1931
+ done = true;
1932
+ return;
1933
+ }
1934
+ const nested = child.props.children;
1935
+ if (nested != null) walk(nested);
1936
+ });
1937
+ };
1938
+ walk(nodes);
1939
+ return result;
1940
+ }
1941
+ function getSubTriggerLabel(nodes) {
1942
+ const trigger = React14__namespace.Children.toArray(nodes).find(isSubTrigger);
1943
+ return trigger ? getNodeText(trigger.props.children) : "";
1944
+ }
1945
+ function useFilterableItem(textValue, children) {
1946
+ const ctx = useDropdownMenuSearch();
1947
+ const id = React14__namespace.useId();
1948
+ const query = ctx?.query.trim().toLowerCase() ?? "";
1949
+ const visible = !query || (textValue ?? getNodeText(children)).toLowerCase().includes(query);
1950
+ const enabled = ctx?.enabled ?? false;
1951
+ const registerItem = ctx?.registerItem;
1952
+ const unregisterItem = ctx?.unregisterItem;
1953
+ React14__namespace.useEffect(() => {
1954
+ if (!enabled || !registerItem || !unregisterItem) return;
1955
+ registerItem(id, visible);
1956
+ return () => unregisterItem(id);
1957
+ }, [enabled, registerItem, unregisterItem, id, visible]);
1958
+ return visible;
1959
+ }
1960
+ var DropdownMenu = ({
1961
+ children,
1962
+ onOpenChange,
1963
+ ...props
1964
+ }) => {
1965
+ const [enabled, setEnabled] = React14__namespace.useState(false);
1966
+ const [visible, setVisible] = React14__namespace.useState(false);
1967
+ const [query, setQuery] = React14__namespace.useState("");
1968
+ const [focusSignal, setFocusSignal] = React14__namespace.useState(0);
1969
+ const requestFocus = React14__namespace.useCallback(() => setFocusSignal((n) => n + 1), []);
1970
+ const [listId, setListId] = React14__namespace.useState(void 0);
1971
+ const itemsRef = React14__namespace.useRef(/* @__PURE__ */ new Map());
1972
+ const [matchCount, setMatchCount] = React14__namespace.useState(0);
1973
+ const recount = React14__namespace.useCallback(() => {
1974
+ let count2 = 0;
1975
+ itemsRef.current.forEach((matches) => {
1976
+ if (matches) count2 += 1;
1977
+ });
1978
+ setMatchCount(count2);
1979
+ }, []);
1980
+ const registerItem = React14__namespace.useCallback(
1981
+ (id, matches) => {
1982
+ itemsRef.current.set(id, matches);
1983
+ recount();
1984
+ },
1985
+ [recount]
1986
+ );
1987
+ const unregisterItem = React14__namespace.useCallback(
1988
+ (id) => {
1989
+ itemsRef.current.delete(id);
1990
+ recount();
1991
+ },
1992
+ [recount]
1993
+ );
1994
+ const reveal = React14__namespace.useCallback((seed) => {
1995
+ setVisible(true);
1996
+ setQuery(seed);
1997
+ }, []);
1998
+ const handleOpenChange = React14__namespace.useCallback(
1999
+ (open) => {
2000
+ if (open) {
2001
+ setVisible(false);
2002
+ setQuery("");
2003
+ }
2004
+ onOpenChange?.(open);
2005
+ },
2006
+ [onOpenChange]
2007
+ );
2008
+ const value = React14__namespace.useMemo(
2009
+ () => ({
2010
+ enabled,
2011
+ setEnabled,
2012
+ visible,
2013
+ reveal,
2014
+ query,
2015
+ setQuery,
2016
+ focusSignal,
2017
+ requestFocus,
2018
+ listId,
2019
+ setListId,
2020
+ registerItem,
2021
+ unregisterItem,
2022
+ matchCount
2023
+ }),
2024
+ [
2025
+ enabled,
2026
+ visible,
2027
+ reveal,
2028
+ query,
2029
+ focusSignal,
2030
+ requestFocus,
2031
+ listId,
2032
+ registerItem,
2033
+ unregisterItem,
2034
+ matchCount
2035
+ ]
2036
+ );
2037
+ return /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuSearchContext.Provider, { value, children: /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.Root, { onOpenChange: handleOpenChange, ...props, children }) });
2038
+ };
1899
2039
  var DropdownMenuTrigger = DropdownMenuPrimitive__namespace.Trigger;
1900
2040
  var DropdownMenuGroup = DropdownMenuPrimitive__namespace.Group;
1901
2041
  var DropdownMenuPortal = ({ children }) => /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.Portal, { container: getThemeProviderRoot(), children });
1902
- var DropdownMenuSub = DropdownMenuPrimitive__namespace.Sub;
1903
2042
  var DropdownMenuRadioGroup = DropdownMenuPrimitive__namespace.RadioGroup;
1904
- var DropdownMenuSubTrigger = React16__namespace.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
1905
- DropdownMenuPrimitive__namespace.SubTrigger,
1906
- {
1907
- ref,
1908
- className: cn(
1909
- styles22__default.default["dropdown-menu-trigger"],
1910
- inset && styles22__default.default["dropdown-menu-inset"],
1911
- className
1912
- ),
1913
- ...props,
1914
- children: [
1915
- children,
1916
- /* @__PURE__ */ jsxRuntime.jsx(ChevronRightIcon2, { className: "ml-auto" })
1917
- ]
1918
- }
1919
- ));
2043
+ var DropdownMenuSubTrigger = React14__namespace.forwardRef(({ className, inset, children, ...props }, ref) => {
2044
+ const searching = useIsSearching();
2045
+ if (searching) return null;
2046
+ return /* @__PURE__ */ jsxRuntime.jsxs(
2047
+ DropdownMenuPrimitive__namespace.SubTrigger,
2048
+ {
2049
+ ref,
2050
+ className: cn(
2051
+ styles22__default.default["dropdown-menu-trigger"],
2052
+ inset && styles22__default.default["dropdown-menu-inset"],
2053
+ className
2054
+ ),
2055
+ ...props,
2056
+ children: [
2057
+ children,
2058
+ /* @__PURE__ */ jsxRuntime.jsx(ChevronRightIcon2, { className: "ml-auto" })
2059
+ ]
2060
+ }
2061
+ );
2062
+ });
1920
2063
  DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive__namespace.SubTrigger.displayName;
1921
- var DropdownMenuSubContent = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
2064
+ var DropdownMenuSubContent = React14__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1922
2065
  DropdownMenuPrimitive__namespace.SubContent,
1923
2066
  {
1924
2067
  ref,
@@ -1926,75 +2069,275 @@ var DropdownMenuSubContent = React16__namespace.forwardRef(({ className, ...prop
1926
2069
  ...props
1927
2070
  }
1928
2071
  ));
1929
- DropdownMenuSubContent.displayName = DropdownMenuPrimitive__namespace.SubContent.displayName;
1930
- var DropdownMenuContent = React16__namespace.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPortal, { children: /* @__PURE__ */ jsxRuntime.jsx(
1931
- DropdownMenuPrimitive__namespace.Content,
1932
- {
1933
- ref,
1934
- sideOffset,
1935
- className: cn(styles22__default.default["dropdown-menu-content"], className),
1936
- ...props
2072
+ DropdownMenuSubContent.displayName = SUB_CONTENT_NAME;
2073
+ var DropdownMenuSub = ({
2074
+ children,
2075
+ ...props
2076
+ }) => {
2077
+ const searching = useIsSearching();
2078
+ const parentAncestry = useBreadcrumbAncestry();
2079
+ if (searching) {
2080
+ const label = getSubTriggerLabel(children);
2081
+ const ancestry = label ? [...parentAncestry, label] : parentAncestry;
2082
+ return /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuBreadcrumbContext.Provider, { value: ancestry, children: findSubContentChildren(children) });
1937
2083
  }
1938
- ) }));
2084
+ return /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.Sub, { ...props, children });
2085
+ };
2086
+ var MENU_ITEM_SELECTOR = '[role="menuitem"]:not([data-disabled]),[role="menuitemcheckbox"]:not([data-disabled]),[role="menuitemradio"]:not([data-disabled])';
2087
+ var DropdownMenuContent = React14__namespace.forwardRef(({ className, sideOffset = 4, onKeyDown, children, ...props }, ref) => {
2088
+ const ctx = useDropdownMenuSearch();
2089
+ const setListId = ctx?.setListId;
2090
+ const searching = !!ctx && ctx.query.trim().length > 0;
2091
+ const resultCount = ctx?.matchCount ?? 0;
2092
+ const composedContentRef = React14__namespace.useCallback(
2093
+ (node) => {
2094
+ assignRefs(node, ref);
2095
+ setListId?.(node?.id || void 0);
2096
+ },
2097
+ [ref, setListId]
2098
+ );
2099
+ return /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPortal, { children: /* @__PURE__ */ jsxRuntime.jsxs(
2100
+ DropdownMenuPrimitive__namespace.Content,
2101
+ {
2102
+ ref: composedContentRef,
2103
+ sideOffset,
2104
+ className: cn(styles22__default.default["dropdown-menu-content"], className),
2105
+ onKeyDown: (event) => {
2106
+ onKeyDown?.(event);
2107
+ if (!ctx?.enabled) return;
2108
+ if (event.key === "ArrowUp" && ctx.visible) {
2109
+ const itemTarget = event.target?.closest(
2110
+ MENU_ITEM_SELECTOR
2111
+ );
2112
+ const items = Array.from(
2113
+ event.currentTarget.querySelectorAll(MENU_ITEM_SELECTOR)
2114
+ );
2115
+ if (itemTarget && items[0] === itemTarget) {
2116
+ event.preventDefault();
2117
+ ctx.requestFocus();
2118
+ return;
2119
+ }
2120
+ }
2121
+ if (event.defaultPrevented) return;
2122
+ const isPrintable = event.key.length === 1 && !event.metaKey && !event.ctrlKey && !event.altKey && /\S/.test(event.key);
2123
+ if (!isPrintable) return;
2124
+ const target = event.target;
2125
+ if (target?.closest?.("[data-dropdown-search]")) return;
2126
+ event.preventDefault();
2127
+ if (!ctx.visible) {
2128
+ ctx.reveal(event.key);
2129
+ } else {
2130
+ ctx.setQuery(ctx.query + event.key);
2131
+ ctx.requestFocus();
2132
+ }
2133
+ },
2134
+ ...props,
2135
+ children: [
2136
+ ctx?.enabled ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "sr-only", role: "status", "aria-live": "polite", children: searching && resultCount > 0 ? `${resultCount} result${resultCount === 1 ? "" : "s"} available` : null }) : null,
2137
+ children
2138
+ ]
2139
+ }
2140
+ ) });
2141
+ });
1939
2142
  DropdownMenuContent.displayName = DropdownMenuPrimitive__namespace.Content.displayName;
1940
- var DropdownMenuItem = React16__namespace.forwardRef(({ className, inset, variant = "neutral", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1941
- DropdownMenuPrimitive__namespace.Item,
1942
- {
1943
- ref,
1944
- className: cn(
1945
- styles22__default.default["dropdown-menu-item"],
1946
- inset && styles22__default.default["dropdown-menu-inset"],
1947
- variant === "danger" && styles22__default.default["dropdown-menu-item-danger"],
1948
- className
1949
- ),
2143
+ function assignRefs(node, ...refs) {
2144
+ refs.forEach((ref) => {
2145
+ if (typeof ref === "function") ref(node);
2146
+ else if (ref) ref.current = node;
2147
+ });
2148
+ }
2149
+ var DropdownMenuSearch = React14__namespace.forwardRef(
2150
+ ({
2151
+ className,
2152
+ placeholder = "Search...",
2153
+ icon,
2154
+ /* Render the input immediately instead of revealing on first keypress */
2155
+ alwaysVisible = false,
2156
+ onKeyDown,
2157
+ /* Pulled out of props so the placeholder fallback below isn't overwritten by the spread */
2158
+ "aria-label": ariaLabel,
1950
2159
  ...props
2160
+ }, forwardedRef) => {
2161
+ const ctx = useDropdownMenuSearch();
2162
+ if (!ctx) {
2163
+ throw new Error("DropdownMenuSearch must be used within a DropdownMenu");
2164
+ }
2165
+ const { setEnabled, reveal, visible, focusSignal } = ctx;
2166
+ const inputRef = React14__namespace.useRef(null);
2167
+ React14__namespace.useEffect(() => {
2168
+ setEnabled(true);
2169
+ return () => setEnabled(false);
2170
+ }, [setEnabled]);
2171
+ React14__namespace.useEffect(() => {
2172
+ if (!visible) return;
2173
+ const el = inputRef.current;
2174
+ if (!el) return;
2175
+ el.focus();
2176
+ const end = el.value.length;
2177
+ el.setSelectionRange(end, end);
2178
+ }, [visible, focusSignal]);
2179
+ React14__namespace.useEffect(() => {
2180
+ if (alwaysVisible && !visible) reveal("");
2181
+ }, [alwaysVisible, visible, reveal]);
2182
+ if (!alwaysVisible && !visible) return null;
2183
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles22__default.default["dropdown-menu-search"], children: [
2184
+ /* @__PURE__ */ jsxRuntime.jsx("span", { "aria-hidden": "true", className: "flex shrink-0", children: icon ?? /* @__PURE__ */ jsxRuntime.jsx(SearchIcon2, { className: styles22__default.default["icon-size"] }) }),
2185
+ /* @__PURE__ */ jsxRuntime.jsx(
2186
+ "input",
2187
+ {
2188
+ ref: (node) => {
2189
+ assignRefs(node, inputRef, forwardedRef);
2190
+ },
2191
+ "data-dropdown-search": "",
2192
+ className: cn(styles22__default.default["dropdown-menu-search-input"], className),
2193
+ value: ctx.query,
2194
+ placeholder,
2195
+ "aria-label": ariaLabel ?? placeholder,
2196
+ role: "searchbox",
2197
+ "aria-controls": ctx.listId,
2198
+ "aria-autocomplete": "list",
2199
+ onChange: (event) => ctx.setQuery(event.target.value),
2200
+ onKeyDown: (event) => {
2201
+ onKeyDown?.(event);
2202
+ if (event.key === "ArrowDown" || event.key === "ArrowUp") {
2203
+ const menu = event.currentTarget.closest('[role="menu"]');
2204
+ const items = menu ? Array.from(menu.querySelectorAll(MENU_ITEM_SELECTOR)) : [];
2205
+ if (items.length) {
2206
+ event.preventDefault();
2207
+ (event.key === "ArrowUp" ? items[items.length - 1] : items[0]).focus();
2208
+ }
2209
+ return;
2210
+ }
2211
+ if (["Enter", "Escape", "Tab"].includes(event.key)) return;
2212
+ event.stopPropagation();
2213
+ },
2214
+ ...props
2215
+ }
2216
+ )
2217
+ ] });
1951
2218
  }
1952
- ));
2219
+ );
2220
+ DropdownMenuSearch.displayName = "DropdownMenuSearch";
2221
+ var DropdownMenuEmpty = ({
2222
+ className,
2223
+ children,
2224
+ ...props
2225
+ }) => {
2226
+ const ctx = useDropdownMenuSearch();
2227
+ if (!ctx) return null;
2228
+ const query = ctx.query.trim();
2229
+ const isEmpty = !!query && ctx.matchCount === 0;
2230
+ return /* @__PURE__ */ jsxRuntime.jsx(
2231
+ "div",
2232
+ {
2233
+ role: "status",
2234
+ "aria-live": "polite",
2235
+ className: isEmpty ? cn(styles22__default.default["dropdown-menu-empty"], className) : void 0,
2236
+ ...props,
2237
+ children: isEmpty ? children : null
2238
+ }
2239
+ );
2240
+ };
2241
+ DropdownMenuEmpty.displayName = "DropdownMenuEmpty";
2242
+ var ItemBreadcrumb = () => {
2243
+ const ancestry = useBreadcrumbAncestry();
2244
+ if (!ancestry.length) return null;
2245
+ return /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles22__default.default["dropdown-menu-breadcrumb"], "aria-hidden": "true", children: ancestry.map((crumb, index) => /* @__PURE__ */ jsxRuntime.jsxs(React14__namespace.Fragment, { children: [
2246
+ crumb,
2247
+ /* @__PURE__ */ jsxRuntime.jsx(ChevronRightIcon2, {})
2248
+ ] }, index)) });
2249
+ };
2250
+ var DropdownMenuItem = React14__namespace.forwardRef(({ className, inset, variant = "neutral", textValue, children, ...props }, ref) => {
2251
+ const visible = useFilterableItem(textValue, children);
2252
+ if (!visible) return null;
2253
+ return /* @__PURE__ */ jsxRuntime.jsxs(
2254
+ DropdownMenuPrimitive__namespace.Item,
2255
+ {
2256
+ ref,
2257
+ textValue,
2258
+ className: cn(
2259
+ styles22__default.default["dropdown-menu-item"],
2260
+ inset && styles22__default.default["dropdown-menu-inset"],
2261
+ variant === "danger" && styles22__default.default["dropdown-menu-item-danger"],
2262
+ className
2263
+ ),
2264
+ ...props,
2265
+ children: [
2266
+ /* @__PURE__ */ jsxRuntime.jsx(ItemBreadcrumb, {}),
2267
+ children
2268
+ ]
2269
+ }
2270
+ );
2271
+ });
1953
2272
  DropdownMenuItem.displayName = DropdownMenuPrimitive__namespace.Item.displayName;
1954
- var DropdownMenuCheckboxItem = React16__namespace.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
1955
- DropdownMenuPrimitive__namespace.CheckboxItem,
1956
- {
1957
- ref,
1958
- className: cn(styles22__default.default["dropdown-menu-checkbox-item"], className),
1959
- checked,
1960
- ...props,
1961
- children: [
1962
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles22__default.default["dropdown-menu-item-indicator-checkbox"], children: /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(CheckIcon2, { className: styles22__default.default["icon-size"] }) }) }),
1963
- children
1964
- ]
1965
- }
1966
- ));
2273
+ var DropdownMenuCheckboxItem = React14__namespace.forwardRef(({ className, children, checked, textValue, ...props }, ref) => {
2274
+ const visible = useFilterableItem(textValue, children);
2275
+ if (!visible) return null;
2276
+ return /* @__PURE__ */ jsxRuntime.jsxs(
2277
+ DropdownMenuPrimitive__namespace.CheckboxItem,
2278
+ {
2279
+ ref,
2280
+ textValue,
2281
+ className: cn(styles22__default.default["dropdown-menu-checkbox-item"], className),
2282
+ checked,
2283
+ ...props,
2284
+ children: [
2285
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles22__default.default["dropdown-menu-item-indicator-checkbox"], children: /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(CheckIcon2, { className: styles22__default.default["icon-size"] }) }) }),
2286
+ /* @__PURE__ */ jsxRuntime.jsx(ItemBreadcrumb, {}),
2287
+ children
2288
+ ]
2289
+ }
2290
+ );
2291
+ });
1967
2292
  DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive__namespace.CheckboxItem.displayName;
1968
- var DropdownMenuRadioItem = React16__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
1969
- DropdownMenuPrimitive__namespace.RadioItem,
1970
- {
1971
- ref,
1972
- className: cn(styles22__default.default["dropdown-menu-radio-item"], className),
1973
- ...props,
1974
- children: [
1975
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles22__default.default["dropdown-menu-item-indicator-radio"], children: /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(CircleIcon, { className: styles22__default.default["radio-icon"] }) }) }),
1976
- children
1977
- ]
1978
- }
1979
- ));
2293
+ var DropdownMenuRadioItem = React14__namespace.forwardRef(({ className, children, textValue, ...props }, ref) => {
2294
+ const visible = useFilterableItem(textValue, children);
2295
+ if (!visible) return null;
2296
+ return /* @__PURE__ */ jsxRuntime.jsxs(
2297
+ DropdownMenuPrimitive__namespace.RadioItem,
2298
+ {
2299
+ ref,
2300
+ textValue,
2301
+ className: cn(styles22__default.default["dropdown-menu-radio-item"], className),
2302
+ ...props,
2303
+ children: [
2304
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles22__default.default["dropdown-menu-item-indicator-radio"], children: /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(CircleIcon, { className: styles22__default.default["radio-icon"] }) }) }),
2305
+ /* @__PURE__ */ jsxRuntime.jsx(ItemBreadcrumb, {}),
2306
+ children
2307
+ ]
2308
+ }
2309
+ );
2310
+ });
1980
2311
  DropdownMenuRadioItem.displayName = DropdownMenuPrimitive__namespace.RadioItem.displayName;
1981
- var DropdownMenuLabel = React16__namespace.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1982
- DropdownMenuPrimitive__namespace.Label,
1983
- {
1984
- ref,
1985
- className: cn(styles22__default.default["dropdown-menu-label"], inset && styles22__default.default["dropdown-menu-inset"], className),
1986
- ...props
1987
- }
1988
- ));
2312
+ var DropdownMenuLabel = React14__namespace.forwardRef(({ className, inset, ...props }, ref) => {
2313
+ const searching = useIsSearching();
2314
+ if (searching) return null;
2315
+ return /* @__PURE__ */ jsxRuntime.jsx(
2316
+ DropdownMenuPrimitive__namespace.Label,
2317
+ {
2318
+ ref,
2319
+ className: cn(
2320
+ styles22__default.default["dropdown-menu-label"],
2321
+ inset && styles22__default.default["dropdown-menu-inset"],
2322
+ className
2323
+ ),
2324
+ ...props
2325
+ }
2326
+ );
2327
+ });
1989
2328
  DropdownMenuLabel.displayName = DropdownMenuPrimitive__namespace.Label.displayName;
1990
- var DropdownMenuSeparator = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1991
- DropdownMenuPrimitive__namespace.Separator,
1992
- {
1993
- ref,
1994
- className: cn(styles22__default.default["dropdown-menu-separator"], className),
1995
- ...props
1996
- }
1997
- ));
2329
+ var DropdownMenuSeparator = React14__namespace.forwardRef(({ className, ...props }, ref) => {
2330
+ const searching = useIsSearching();
2331
+ if (searching) return null;
2332
+ return /* @__PURE__ */ jsxRuntime.jsx(
2333
+ DropdownMenuPrimitive__namespace.Separator,
2334
+ {
2335
+ ref,
2336
+ className: cn(styles22__default.default["dropdown-menu-separator"], className),
2337
+ ...props
2338
+ }
2339
+ );
2340
+ });
1998
2341
  DropdownMenuSeparator.displayName = DropdownMenuPrimitive__namespace.Separator.displayName;
1999
2342
  var DropdownMenuShortcut = ({ className, ...props }) => {
2000
2343
  return /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn(styles22__default.default["dropdown-menu-shortcut"], className), ...props });
@@ -2028,7 +2371,10 @@ var FilterDropdown = ({
2028
2371
  onClearAll,
2029
2372
  buttonClassName,
2030
2373
  contentClassName,
2031
- disabled = false
2374
+ disabled = false,
2375
+ searchable = false,
2376
+ searchPlaceholder = "Search filters...",
2377
+ emptyPlaceholder = "No filters found"
2032
2378
  }) => {
2033
2379
  const hasSelectedFilters = selectedFilters.length > 0;
2034
2380
  const filteredOptions = options.filter(
@@ -2056,6 +2402,10 @@ var FilterDropdown = ({
2056
2402
  align: "end",
2057
2403
  className: cn(styles24__default.default["dropdown-menu-content"], contentClassName),
2058
2404
  children: [
2405
+ searchable && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
2406
+ /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuSearch, { placeholder: searchPlaceholder }),
2407
+ /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuEmpty, { children: emptyPlaceholder })
2408
+ ] }),
2059
2409
  /* @__PURE__ */ jsxRuntime.jsxs(DropdownMenuLabel, { children: [
2060
2410
  "Filters",
2061
2411
  hasSelectedFilters && /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "link", size: "sm", onClick: onClearAll, children: "Clear all" })
@@ -2080,18 +2430,18 @@ var FilterDropdown = ({
2080
2430
  ] });
2081
2431
  };
2082
2432
  var labelVariants = classVarianceAuthority.cva(styles25__default.default["label"]);
2083
- var Label2 = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(LabelPrimitive__namespace.Root, { ref, className: cn(labelVariants(), className), ...props }));
2433
+ var Label2 = React14__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(LabelPrimitive__namespace.Root, { ref, className: cn(labelVariants(), className), ...props }));
2084
2434
  Label2.displayName = LabelPrimitive__namespace.Root.displayName;
2085
2435
  var Form = reactHookForm.FormProvider;
2086
- var FormFieldContext = React16__namespace.createContext({});
2436
+ var FormFieldContext = React14__namespace.createContext({});
2087
2437
  var FormField = ({
2088
2438
  ...props
2089
2439
  }) => {
2090
2440
  return /* @__PURE__ */ jsxRuntime.jsx(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ jsxRuntime.jsx(reactHookForm.Controller, { ...props }) });
2091
2441
  };
2092
2442
  var useFormField = () => {
2093
- const fieldContext = React16__namespace.useContext(FormFieldContext);
2094
- const itemContext = React16__namespace.useContext(FormItemContext);
2443
+ const fieldContext = React14__namespace.useContext(FormFieldContext);
2444
+ const itemContext = React14__namespace.useContext(FormItemContext);
2095
2445
  const { getFieldState, formState } = reactHookForm.useFormContext();
2096
2446
  const fieldState = getFieldState(fieldContext.name, formState);
2097
2447
  if (!fieldContext) {
@@ -2107,15 +2457,15 @@ var useFormField = () => {
2107
2457
  ...fieldState
2108
2458
  };
2109
2459
  };
2110
- var FormItemContext = React16__namespace.createContext({});
2111
- var FormItem = React16__namespace.forwardRef(
2460
+ var FormItemContext = React14__namespace.createContext({});
2461
+ var FormItem = React14__namespace.forwardRef(
2112
2462
  ({ className, ...props }, ref) => {
2113
- const id = React16__namespace.useId();
2463
+ const id = React14__namespace.useId();
2114
2464
  return /* @__PURE__ */ jsxRuntime.jsx(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn(styles26__default.default["form-item"], className), ...props }) });
2115
2465
  }
2116
2466
  );
2117
2467
  FormItem.displayName = "FormItem";
2118
- var FormLabel = React16__namespace.forwardRef(({ className, ...props }, ref) => {
2468
+ var FormLabel = React14__namespace.forwardRef(({ className, ...props }, ref) => {
2119
2469
  const { error, formItemId } = useFormField();
2120
2470
  return /* @__PURE__ */ jsxRuntime.jsx(
2121
2471
  Label2,
@@ -2128,7 +2478,7 @@ var FormLabel = React16__namespace.forwardRef(({ className, ...props }, ref) =>
2128
2478
  );
2129
2479
  });
2130
2480
  FormLabel.displayName = "FormLabel";
2131
- var FormControl = React16__namespace.forwardRef(({ ...props }, ref) => {
2481
+ var FormControl = React14__namespace.forwardRef(({ ...props }, ref) => {
2132
2482
  const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
2133
2483
  return /* @__PURE__ */ jsxRuntime.jsx(
2134
2484
  reactSlot.Slot,
@@ -2142,7 +2492,7 @@ var FormControl = React16__namespace.forwardRef(({ ...props }, ref) => {
2142
2492
  );
2143
2493
  });
2144
2494
  FormControl.displayName = "FormControl";
2145
- var FormDescription = React16__namespace.forwardRef(({ className, ...props }, ref) => {
2495
+ var FormDescription = React14__namespace.forwardRef(({ className, ...props }, ref) => {
2146
2496
  const { formDescriptionId } = useFormField();
2147
2497
  return /* @__PURE__ */ jsxRuntime.jsx(
2148
2498
  "p",
@@ -2155,7 +2505,7 @@ var FormDescription = React16__namespace.forwardRef(({ className, ...props }, re
2155
2505
  );
2156
2506
  });
2157
2507
  FormDescription.displayName = "FormDescription";
2158
- var FormMessage = React16__namespace.forwardRef(({ className, children, ...props }, ref) => {
2508
+ var FormMessage = React14__namespace.forwardRef(({ className, children, ...props }, ref) => {
2159
2509
  const { error, formMessageId } = useFormField();
2160
2510
  const body = error ? String(error?.message ?? "") : children;
2161
2511
  if (!body) {
@@ -2189,7 +2539,7 @@ var InfoCard = ({
2189
2539
  ] })
2190
2540
  ] }) }) });
2191
2541
  };
2192
- var Input = React16__namespace.forwardRef(
2542
+ var Input = React14__namespace.forwardRef(
2193
2543
  ({ className, type, prefix, suffix, ...props }, ref) => {
2194
2544
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(styles28__default.default["input-wrapper"], className), children: [
2195
2545
  prefix && /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles28__default.default["input-prefix"], children: prefix }),
@@ -2313,9 +2663,9 @@ var MotionCollapsibleContent = ({
2313
2663
  children,
2314
2664
  className
2315
2665
  }) => {
2316
- const [contentHeight, setContentHeight] = React16.useState(0);
2317
- const contentRef = React16.useRef(null);
2318
- React16.useEffect(() => {
2666
+ const [contentHeight, setContentHeight] = React14.useState(0);
2667
+ const contentRef = React14.useRef(null);
2668
+ React14.useEffect(() => {
2319
2669
  if (contentRef.current) {
2320
2670
  const resizeObserver = new ResizeObserver(() => {
2321
2671
  if (contentRef.current) {
@@ -2365,12 +2715,12 @@ var ChevronUpIcon = LucideIcons.ChevronUp;
2365
2715
  var Select = SelectPrimitive__namespace.Root;
2366
2716
  var SelectGroup = SelectPrimitive__namespace.Group;
2367
2717
  var SelectValue = SelectPrimitive__namespace.Value;
2368
- var SelectTrigger = React16__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(SelectPrimitive__namespace.Trigger, { ref, className: cn(styles35__default.default["select-trigger"], className), ...props, children: [
2718
+ var SelectTrigger = React14__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(SelectPrimitive__namespace.Trigger, { ref, className: cn(styles35__default.default["select-trigger"], className), ...props, children: [
2369
2719
  children,
2370
2720
  /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Icon, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(ChevronDownIcon2, { className: cn(styles35__default.default["select-icon"], styles35__default.default["select-icon--low-opacity"]) }) })
2371
2721
  ] }));
2372
2722
  SelectTrigger.displayName = SelectPrimitive__namespace.Trigger.displayName;
2373
- var SelectScrollUpButton = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
2723
+ var SelectScrollUpButton = React14__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
2374
2724
  SelectPrimitive__namespace.ScrollUpButton,
2375
2725
  {
2376
2726
  ref,
@@ -2380,7 +2730,7 @@ var SelectScrollUpButton = React16__namespace.forwardRef(({ className, ...props
2380
2730
  }
2381
2731
  ));
2382
2732
  SelectScrollUpButton.displayName = SelectPrimitive__namespace.ScrollUpButton.displayName;
2383
- var SelectScrollDownButton = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
2733
+ var SelectScrollDownButton = React14__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
2384
2734
  SelectPrimitive__namespace.ScrollDownButton,
2385
2735
  {
2386
2736
  ref,
@@ -2396,7 +2746,7 @@ var selectContentElevationVariants = generateElevationVariants(
2396
2746
  "select-content",
2397
2747
  ELEVATION.OVERLAY
2398
2748
  );
2399
- var SelectContent = React16__namespace.forwardRef(({ className, children, position = "popper", elevation = ELEVATION.OVERLAY, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(SelectPortal, { children: /* @__PURE__ */ jsxRuntime.jsxs(
2749
+ var SelectContent = React14__namespace.forwardRef(({ className, children, position = "popper", elevation = ELEVATION.OVERLAY, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(SelectPortal, { children: /* @__PURE__ */ jsxRuntime.jsxs(
2400
2750
  SelectPrimitive__namespace.Content,
2401
2751
  {
2402
2752
  ref,
@@ -2425,14 +2775,14 @@ var SelectContent = React16__namespace.forwardRef(({ className, children, positi
2425
2775
  }
2426
2776
  ) }));
2427
2777
  SelectContent.displayName = SelectPrimitive__namespace.Content.displayName;
2428
- var SelectLabel = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Label, { ref, className: cn(styles35__default.default["select-label"], className), ...props }));
2778
+ var SelectLabel = React14__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Label, { ref, className: cn(styles35__default.default["select-label"], className), ...props }));
2429
2779
  SelectLabel.displayName = SelectPrimitive__namespace.Label.displayName;
2430
- var SelectItem = React16__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(SelectPrimitive__namespace.Item, { ref, className: cn(styles35__default.default["select-item"], className), ...props, children: [
2780
+ var SelectItem = React14__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(SelectPrimitive__namespace.Item, { ref, className: cn(styles35__default.default["select-item"], className), ...props, children: [
2431
2781
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles35__default.default["select-item-indicator"], children: /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(CheckIcon3, { className: styles35__default.default["select-icon"] }) }) }),
2432
2782
  /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.ItemText, { children })
2433
2783
  ] }));
2434
2784
  SelectItem.displayName = SelectPrimitive__namespace.Item.displayName;
2435
- var SelectSeparator = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
2785
+ var SelectSeparator = React14__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
2436
2786
  SelectPrimitive__namespace.Separator,
2437
2787
  {
2438
2788
  ref,
@@ -2575,7 +2925,7 @@ var Pagination = ({
2575
2925
  var PanelLabel = ({ className, label }) => {
2576
2926
  return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(styles37__default.default["panel-label"], className), children: label });
2577
2927
  };
2578
- var Progress = React16__namespace.forwardRef(
2928
+ var Progress = React14__namespace.forwardRef(
2579
2929
  ({ className, value, color = "primary", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(ProgressPrimitive__namespace.Root, { ref, className: cn(styles38__default.default["progress"], className), ...props, children: /* @__PURE__ */ jsxRuntime.jsx(
2580
2930
  ProgressPrimitive__namespace.Indicator,
2581
2931
  {
@@ -2641,24 +2991,24 @@ function ProgressIndicator({
2641
2991
  "aria-label": ariaLabel = "Progress",
2642
2992
  ...props
2643
2993
  }) {
2644
- const stepChildren = React16__namespace.Children.toArray(children);
2994
+ const stepChildren = React14__namespace.Children.toArray(children);
2645
2995
  const stepCount = stepChildren.length;
2646
2996
  const hasActive = currentIndex >= 0 && currentIndex < stepCount;
2647
2997
  const segmentSize = stepCount > 0 ? 100 / stepCount : 0;
2648
2998
  const isLastStep = currentIndex === stepCount - 1;
2649
2999
  const fillSize = hasActive ? isLastStep ? 100 : (currentIndex + 0.5) * segmentSize : 0;
2650
3000
  const steps = stepChildren.map((child, index) => {
2651
- if (!React16__namespace.isValidElement(child) || child.type !== ProgressIndicatorStep) {
3001
+ if (!React14__namespace.isValidElement(child) || child.type !== ProgressIndicatorStep) {
2652
3002
  throw new Error("ProgressIndicator only accepts <ProgressIndicatorStep> children.");
2653
3003
  }
2654
- return React16__namespace.cloneElement(child, {
3004
+ return React14__namespace.cloneElement(child, {
2655
3005
  index,
2656
3006
  currentIndex,
2657
3007
  elevation
2658
3008
  });
2659
3009
  });
2660
3010
  const interactive = stepChildren.some((child) => {
2661
- if (!React16__namespace.isValidElement(child)) return false;
3011
+ if (!React14__namespace.isValidElement(child)) return false;
2662
3012
  const stepProps = child.props;
2663
3013
  return Boolean(stepProps.href || stepProps.onClick);
2664
3014
  });
@@ -2747,7 +3097,7 @@ function ProgressIndicatorStep({
2747
3097
  }
2748
3098
  );
2749
3099
  }
2750
- var RadialGraph = React16.forwardRef(
3100
+ var RadialGraph = React14.forwardRef(
2751
3101
  ({
2752
3102
  percentage,
2753
3103
  displayLabel,
@@ -2826,7 +3176,10 @@ var RadioDropdown = ({
2826
3176
  options,
2827
3177
  selectedValue,
2828
3178
  onSelect,
2829
- className
3179
+ className,
3180
+ searchable = false,
3181
+ searchPlaceholder = "Search options...",
3182
+ emptyPlaceholder = "No options found"
2830
3183
  }) => {
2831
3184
  const selectedOption = options.find((opt) => opt.value === selectedValue);
2832
3185
  const hasSelectedCount = selectedOption?.count !== void 0;
@@ -2842,6 +3195,10 @@ var RadioDropdown = ({
2842
3195
  /* @__PURE__ */ jsxRuntime.jsx(ChevronDownIcon3, { className: styles41__default.default["chevron-icon"] })
2843
3196
  ] }) }),
2844
3197
  /* @__PURE__ */ jsxRuntime.jsxs(DropdownMenuContent, { align: "end", className: styles41__default.default["dropdown-menu-content"], children: [
3198
+ searchable && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
3199
+ /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuSearch, { placeholder: searchPlaceholder }),
3200
+ /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuEmpty, { children: emptyPlaceholder })
3201
+ ] }),
2845
3202
  /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuLabel, { children: label }),
2846
3203
  /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuSeparator, {}),
2847
3204
  /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuRadioGroup, { value: selectedValue, onValueChange: onSelect, children: filteredOptions.map((option) => {
@@ -2855,7 +3212,7 @@ var RadioDropdown = ({
2855
3212
  ] });
2856
3213
  };
2857
3214
  var CircleIcon2 = LucideIcons.Circle;
2858
- var RadioGroup2 = React16__namespace.forwardRef(({ className, ...props }, ref) => {
3215
+ var RadioGroup2 = React14__namespace.forwardRef(({ className, ...props }, ref) => {
2859
3216
  return /* @__PURE__ */ jsxRuntime.jsx(
2860
3217
  RadioGroupPrimitive__namespace.Root,
2861
3218
  {
@@ -2866,7 +3223,7 @@ var RadioGroup2 = React16__namespace.forwardRef(({ className, ...props }, ref) =
2866
3223
  );
2867
3224
  });
2868
3225
  RadioGroup2.displayName = RadioGroupPrimitive__namespace.Root.displayName;
2869
- var RadioGroupItem = React16__namespace.forwardRef(({ className, ...props }, ref) => {
3226
+ var RadioGroupItem = React14__namespace.forwardRef(({ className, ...props }, ref) => {
2870
3227
  return /* @__PURE__ */ jsxRuntime.jsx(
2871
3228
  RadioGroupPrimitive__namespace.Item,
2872
3229
  {
@@ -2878,13 +3235,13 @@ var RadioGroupItem = React16__namespace.forwardRef(({ className, ...props }, ref
2878
3235
  );
2879
3236
  });
2880
3237
  RadioGroupItem.displayName = RadioGroupPrimitive__namespace.Item.displayName;
2881
- var ScrollArea = React16__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(ScrollAreaPrimitive__namespace.Root, { ref, className: cn(styles43__default.default["scroll-area"], className), ...props, children: [
3238
+ var ScrollArea = React14__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(ScrollAreaPrimitive__namespace.Root, { ref, className: cn(styles43__default.default["scroll-area"], className), ...props, children: [
2882
3239
  /* @__PURE__ */ jsxRuntime.jsx(ScrollAreaPrimitive__namespace.Viewport, { className: styles43__default.default["scroll-area-viewport"], children }),
2883
3240
  /* @__PURE__ */ jsxRuntime.jsx(ScrollBar, {}),
2884
3241
  /* @__PURE__ */ jsxRuntime.jsx(ScrollAreaPrimitive__namespace.Corner, {})
2885
3242
  ] }));
2886
3243
  ScrollArea.displayName = ScrollAreaPrimitive__namespace.Root.displayName;
2887
- var ScrollBar = React16__namespace.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3244
+ var ScrollBar = React14__namespace.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
2888
3245
  ScrollAreaPrimitive__namespace.ScrollAreaScrollbar,
2889
3246
  {
2890
3247
  ref,
@@ -2900,7 +3257,7 @@ var ScrollBar = React16__namespace.forwardRef(({ className, orientation = "verti
2900
3257
  }
2901
3258
  ));
2902
3259
  ScrollBar.displayName = ScrollAreaPrimitive__namespace.ScrollAreaScrollbar.displayName;
2903
- var SearchIcon2 = LucideIcons.Search;
3260
+ var SearchIcon3 = LucideIcons.Search;
2904
3261
  var SearchBar = ({
2905
3262
  searchQuery,
2906
3263
  setSearchQuery,
@@ -2920,7 +3277,7 @@ var SearchBar = ({
2920
3277
  value: searchQuery,
2921
3278
  onChange: handleChange,
2922
3279
  className: styles44__default.default["input"],
2923
- prefix: /* @__PURE__ */ jsxRuntime.jsx(SearchIcon2, { className: styles44__default.default["search-icon"] }),
3280
+ prefix: /* @__PURE__ */ jsxRuntime.jsx(SearchIcon3, { className: styles44__default.default["search-icon"] }),
2924
3281
  suffix: searchQuery && /* @__PURE__ */ jsxRuntime.jsx(
2925
3282
  IconButton,
2926
3283
  {
@@ -2958,22 +3315,22 @@ var SegmentedControls = ({
2958
3315
  const allHaveIcons = options.every((option) => option.icon != null);
2959
3316
  const effectiveDisplay = display === "icon-only" && !allHaveIcons ? "both" : display;
2960
3317
  const isIconOnly = effectiveDisplay === "icon-only";
2961
- const containerRef = React16.useRef(null);
2962
- const segmentRefs = React16.useRef({});
2963
- const [indicator, setIndicator] = React16.useState({
3318
+ const containerRef = React14.useRef(null);
3319
+ const segmentRefs = React14.useRef({});
3320
+ const [indicator, setIndicator] = React14.useState({
2964
3321
  left: 0,
2965
3322
  width: 0
2966
3323
  });
2967
- const updateIndicator = React16.useCallback(() => {
3324
+ const updateIndicator = React14.useCallback(() => {
2968
3325
  const activeSegment = segmentRefs.current[value];
2969
3326
  if (activeSegment) {
2970
3327
  setIndicator({ left: activeSegment.offsetLeft, width: activeSegment.offsetWidth });
2971
3328
  }
2972
3329
  }, [value]);
2973
- React16.useLayoutEffect(() => {
3330
+ React14.useLayoutEffect(() => {
2974
3331
  updateIndicator();
2975
3332
  }, [updateIndicator, options, effectiveDisplay]);
2976
- React16.useLayoutEffect(() => {
3333
+ React14.useLayoutEffect(() => {
2977
3334
  const container = containerRef.current;
2978
3335
  if (!container) return;
2979
3336
  const observer = new ResizeObserver(updateIndicator);
@@ -3019,7 +3376,7 @@ var SegmentedControls = ({
3019
3376
  )
3020
3377
  ] });
3021
3378
  };
3022
- var Separator3 = React16__namespace.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3379
+ var Separator3 = React14__namespace.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3023
3380
  SeparatorPrimitive__namespace.Root,
3024
3381
  {
3025
3382
  ref,
@@ -3038,7 +3395,7 @@ var Sheet = DialogPrimitive__namespace.Root;
3038
3395
  var SheetTrigger = DialogPrimitive__namespace.Trigger;
3039
3396
  var SheetClose = DialogPrimitive__namespace.Close;
3040
3397
  var SheetPortal = ({ children }) => /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Portal, { container: getThemeProviderRoot(), children });
3041
- var SheetOverlay = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Overlay, { className: cn(styles48__default.default["sheet-overlay"], className), ...props, ref }));
3398
+ var SheetOverlay = React14__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Overlay, { className: cn(styles48__default.default["sheet-overlay"], className), ...props, ref }));
3042
3399
  SheetOverlay.displayName = DialogPrimitive__namespace.Overlay.displayName;
3043
3400
  var sheetVariants = classVarianceAuthority.cva(styles48__default.default["sheet-content"], {
3044
3401
  variants: {
@@ -3053,7 +3410,7 @@ var sheetVariants = classVarianceAuthority.cva(styles48__default.default["sheet-
3053
3410
  side: "right"
3054
3411
  }
3055
3412
  });
3056
- var SheetContainer = React16__namespace.forwardRef(({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(SheetPortal, { children: [
3413
+ var SheetContainer = React14__namespace.forwardRef(({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(SheetPortal, { children: [
3057
3414
  /* @__PURE__ */ jsxRuntime.jsx(SheetOverlay, {}),
3058
3415
  /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Content, { ref, className: cn(sheetVariants({ side }), className), ...props, children })
3059
3416
  ] }));
@@ -3061,12 +3418,12 @@ SheetContainer.displayName = DialogPrimitive__namespace.Content.displayName;
3061
3418
  var SheetHeaderIcon = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(styles48__default.default["sheet-header-icon"], className), ...props });
3062
3419
  SheetHeaderIcon.displayName = "SheetHeaderIcon";
3063
3420
  var SheetHeader = ({ className, children, ...props }) => {
3064
- const childrenArray = React16__namespace.Children.toArray(children);
3421
+ const childrenArray = React14__namespace.Children.toArray(children);
3065
3422
  const icon = childrenArray.find(
3066
- (child) => React16__namespace.isValidElement(child) && child.type === SheetHeaderIcon
3423
+ (child) => React14__namespace.isValidElement(child) && child.type === SheetHeaderIcon
3067
3424
  );
3068
3425
  const otherChildren = childrenArray.filter(
3069
- (child) => !(React16__namespace.isValidElement(child) && child.type === SheetHeaderIcon)
3426
+ (child) => !(React14__namespace.isValidElement(child) && child.type === SheetHeaderIcon)
3070
3427
  );
3071
3428
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(styles48__default.default["sheet-header"], className), ...props, children: [
3072
3429
  icon,
@@ -3077,9 +3434,9 @@ var SheetHeader = ({ className, children, ...props }) => {
3077
3434
  SheetHeader.displayName = "SheetHeader";
3078
3435
  var SheetFooter = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(styles48__default.default["sheet-footer"], className), ...props });
3079
3436
  SheetFooter.displayName = "SheetFooter";
3080
- var SheetTitle = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Title, { ref, className: cn(styles48__default.default["sheet-title"], className), ...props }));
3437
+ var SheetTitle = React14__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Title, { ref, className: cn(styles48__default.default["sheet-title"], className), ...props }));
3081
3438
  SheetTitle.displayName = DialogPrimitive__namespace.Title.displayName;
3082
- var SheetDescription = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3439
+ var SheetDescription = React14__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3083
3440
  DialogPrimitive__namespace.Description,
3084
3441
  {
3085
3442
  ref,
@@ -3164,7 +3521,7 @@ function SortSelector({
3164
3521
  )
3165
3522
  ] });
3166
3523
  }
3167
- var Switch = React16__namespace.forwardRef(
3524
+ var Switch = React14__namespace.forwardRef(
3168
3525
  ({ className, size = "md", variant = "default", thumbIcon, ...props }, ref) => {
3169
3526
  const iconSize = size === "sm" ? "xs" : size === "md" ? "sm" : "md";
3170
3527
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -3202,7 +3559,7 @@ function SortButton({
3202
3559
  ] });
3203
3560
  }
3204
3561
  var tableElevationVariants = generateElevationVariants(styles53__default.default, "table", ELEVATION.RAISED);
3205
- var TableContainer = React16__namespace.forwardRef(({ className, style, elevation = ELEVATION.RAISED, border, columns, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3562
+ var TableContainer = React14__namespace.forwardRef(({ className, style, elevation = ELEVATION.RAISED, border, columns, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3206
3563
  "div",
3207
3564
  {
3208
3565
  className: cn(
@@ -3216,7 +3573,7 @@ var TableContainer = React16__namespace.forwardRef(({ className, style, elevatio
3216
3573
  }
3217
3574
  ));
3218
3575
  TableContainer.displayName = "Table";
3219
- var TableHeader = React16__namespace.forwardRef(({ className, sticky = false, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3576
+ var TableHeader = React14__namespace.forwardRef(({ className, sticky = false, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3220
3577
  "thead",
3221
3578
  {
3222
3579
  ref,
@@ -3230,11 +3587,11 @@ var TableHeader = React16__namespace.forwardRef(({ className, sticky = false, ..
3230
3587
  }
3231
3588
  ));
3232
3589
  TableHeader.displayName = "TableHeader";
3233
- var TableBody = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("tbody", { ref, className: cn(styles53__default.default["table-body"], className), ...props }));
3590
+ var TableBody = React14__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("tbody", { ref, className: cn(styles53__default.default["table-body"], className), ...props }));
3234
3591
  TableBody.displayName = "TableBody";
3235
- var TableFooter = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("tfoot", { ref, className: cn(styles53__default.default["table-footer"], className), ...props }));
3592
+ var TableFooter = React14__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("tfoot", { ref, className: cn(styles53__default.default["table-footer"], className), ...props }));
3236
3593
  TableFooter.displayName = "TableFooter";
3237
- var TableRow = React16__namespace.forwardRef(
3594
+ var TableRow = React14__namespace.forwardRef(
3238
3595
  ({ className, clickable, href, hrefLabel = "View details", children, onClick, ...props }, ref) => {
3239
3596
  const isClickable = clickable || !!href;
3240
3597
  const handleClick = (e) => {
@@ -3265,18 +3622,18 @@ var TableRow = React16__namespace.forwardRef(
3265
3622
  }
3266
3623
  );
3267
3624
  TableRow.displayName = "TableRow";
3268
- var TableHead = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("th", { ref, className: cn(styles53__default.default["table-head"], className), ...props }));
3625
+ var TableHead = React14__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("th", { ref, className: cn(styles53__default.default["table-head"], className), ...props }));
3269
3626
  TableHead.displayName = "TableHead";
3270
- var TableCell = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("td", { ref, className: cn(styles53__default.default["table-cell"], className), ...props }));
3627
+ var TableCell = React14__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("td", { ref, className: cn(styles53__default.default["table-cell"], className), ...props }));
3271
3628
  TableCell.displayName = "TableCell";
3272
- var TableCaption = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("caption", { ref, className: cn(styles53__default.default["table-caption"], className), ...props }));
3629
+ var TableCaption = React14__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("caption", { ref, className: cn(styles53__default.default["table-caption"], className), ...props }));
3273
3630
  TableCaption.displayName = "TableCaption";
3274
3631
  var TabsContainer = TabsPrimitive__namespace.Root;
3275
- var TabsList = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(TabsPrimitive__namespace.List, { ref, className: cn(styles54__default.default["tabs-list"], className), ...props }));
3632
+ var TabsList = React14__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(TabsPrimitive__namespace.List, { ref, className: cn(styles54__default.default["tabs-list"], className), ...props }));
3276
3633
  TabsList.displayName = TabsPrimitive__namespace.List.displayName;
3277
- var TabsTrigger = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(TabsPrimitive__namespace.Trigger, { ref, className: cn(styles54__default.default["tabs-trigger"], className), ...props }));
3634
+ var TabsTrigger = React14__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(TabsPrimitive__namespace.Trigger, { ref, className: cn(styles54__default.default["tabs-trigger"], className), ...props }));
3278
3635
  TabsTrigger.displayName = TabsPrimitive__namespace.Trigger.displayName;
3279
- var TabsContent = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(TabsPrimitive__namespace.Content, { ref, className: cn(styles54__default.default["tabs-content"], className), ...props }));
3636
+ var TabsContent = React14__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(TabsPrimitive__namespace.Content, { ref, className: cn(styles54__default.default["tabs-content"], className), ...props }));
3280
3637
  TabsContent.displayName = TabsPrimitive__namespace.Content.displayName;
3281
3638
  var Tabs = ({
3282
3639
  id,
@@ -3286,7 +3643,7 @@ var Tabs = ({
3286
3643
  defaultValue,
3287
3644
  onValueChange
3288
3645
  }) => {
3289
- const [activeTab, setActiveTab] = React16.useState(defaultValue ?? items[0].value);
3646
+ const [activeTab, setActiveTab] = React14.useState(defaultValue ?? items[0].value);
3290
3647
  const isFilled = tabsListBackground === "filled";
3291
3648
  const handleValueChange = (newTab) => {
3292
3649
  setActiveTab(newTab);
@@ -3330,7 +3687,7 @@ var Tabs = ({
3330
3687
  ),
3331
3688
  children: items.map(({ label, value, icon, suffix, triggerProps }) => {
3332
3689
  const isActive = activeTab === value;
3333
- return /* @__PURE__ */ React16.createElement(
3690
+ return /* @__PURE__ */ React14.createElement(
3334
3691
  TabsTrigger,
3335
3692
  {
3336
3693
  ...triggerProps,
@@ -3355,7 +3712,7 @@ var Tabs = ({
3355
3712
  }
3356
3713
  );
3357
3714
  };
3358
- var Textarea = React16__namespace.forwardRef(
3715
+ var Textarea = React14__namespace.forwardRef(
3359
3716
  ({ className, ...props }, ref) => {
3360
3717
  return /* @__PURE__ */ jsxRuntime.jsx("textarea", { className: cn(styles56__default.default["textarea"], className), ref, ...props });
3361
3718
  }
@@ -3417,12 +3774,12 @@ function FormatDate({
3417
3774
  ...props
3418
3775
  }) {
3419
3776
  const missing = isMissing(date);
3420
- const parsed = React16__namespace.useMemo(() => isMissing(date) ? null : toDate(date), [date]);
3421
- const [now, setNow] = React16__namespace.useState(() => /* @__PURE__ */ new Date());
3422
- const [mounted, setMounted] = React16__namespace.useState(false);
3777
+ const parsed = React14__namespace.useMemo(() => isMissing(date) ? null : toDate(date), [date]);
3778
+ const [now, setNow] = React14__namespace.useState(() => /* @__PURE__ */ new Date());
3779
+ const [mounted, setMounted] = React14__namespace.useState(false);
3423
3780
  const isRelative = displayAs === "relative";
3424
- React16__namespace.useEffect(() => setMounted(true), []);
3425
- React16__namespace.useEffect(() => {
3781
+ React14__namespace.useEffect(() => setMounted(true), []);
3782
+ React14__namespace.useEffect(() => {
3426
3783
  if (!isRelative || !live) return;
3427
3784
  const id = setInterval(() => setNow(/* @__PURE__ */ new Date()), LIVE_INTERVAL_MS);
3428
3785
  return () => clearInterval(id);
@@ -3463,7 +3820,7 @@ function FormatDate({
3463
3820
  }
3464
3821
  var XIcon2 = LucideIcons.X;
3465
3822
  var ToastProvider = ToastPrimitives__namespace.Provider;
3466
- var ToastViewport = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3823
+ var ToastViewport = React14__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3467
3824
  ToastPrimitives__namespace.Viewport,
3468
3825
  {
3469
3826
  ref,
@@ -3485,7 +3842,7 @@ var toastVariants = classVarianceAuthority.cva(styles58__default.default["toast"
3485
3842
  variant: "default"
3486
3843
  }
3487
3844
  });
3488
- var ToastContainer = React16__namespace.forwardRef(({ className, variant, ...props }, ref) => {
3845
+ var ToastContainer = React14__namespace.forwardRef(({ className, variant, ...props }, ref) => {
3489
3846
  return /* @__PURE__ */ jsxRuntime.jsx(
3490
3847
  ToastPrimitives__namespace.Root,
3491
3848
  {
@@ -3496,13 +3853,13 @@ var ToastContainer = React16__namespace.forwardRef(({ className, variant, ...pro
3496
3853
  );
3497
3854
  });
3498
3855
  ToastContainer.displayName = ToastPrimitives__namespace.Root.displayName;
3499
- var ToastAction = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(ToastPrimitives__namespace.Action, { ref, className: cn(styles58__default.default["toast-action"], className), ...props }));
3856
+ var ToastAction = React14__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(ToastPrimitives__namespace.Action, { ref, className: cn(styles58__default.default["toast-action"], className), ...props }));
3500
3857
  ToastAction.displayName = ToastPrimitives__namespace.Action.displayName;
3501
- var ToastClose = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(ToastPrimitives__namespace.Close, { ref, className: cn(styles58__default.default["toast-close"], className), ...props, children: /* @__PURE__ */ jsxRuntime.jsx(XIcon2, { className: styles58__default.default["toast-close-icon"] }) }));
3858
+ var ToastClose = React14__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(ToastPrimitives__namespace.Close, { ref, className: cn(styles58__default.default["toast-close"], className), ...props, children: /* @__PURE__ */ jsxRuntime.jsx(XIcon2, { className: styles58__default.default["toast-close-icon"] }) }));
3502
3859
  ToastClose.displayName = ToastPrimitives__namespace.Close.displayName;
3503
- var ToastTitle = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(ToastPrimitives__namespace.Title, { ref, className: cn(styles58__default.default["toast-title"], className), ...props }));
3860
+ var ToastTitle = React14__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(ToastPrimitives__namespace.Title, { ref, className: cn(styles58__default.default["toast-title"], className), ...props }));
3504
3861
  ToastTitle.displayName = ToastPrimitives__namespace.Title.displayName;
3505
- var ToastDescription = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3862
+ var ToastDescription = React14__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3506
3863
  ToastPrimitives__namespace.Description,
3507
3864
  {
3508
3865
  ref,
@@ -3609,8 +3966,8 @@ function toast({ ...props }) {
3609
3966
  };
3610
3967
  }
3611
3968
  function useToast() {
3612
- const [state, setState] = React16.useState(memoryState);
3613
- React16.useEffect(() => {
3969
+ const [state, setState] = React14.useState(memoryState);
3970
+ React14.useEffect(() => {
3614
3971
  listeners.push(setState);
3615
3972
  return () => {
3616
3973
  const index = listeners.indexOf(setState);
@@ -3672,7 +4029,7 @@ var TruncatedDescription = ({
3672
4029
  const plainText = removeHtmlTags(description);
3673
4030
  const isLongDescription = plainText.length > maxLength;
3674
4031
  const truncatedDescription = isLongDescription ? `${description.slice(0, maxLength)}...` : description;
3675
- const [expanded, setExpanded] = React16.useState(!isLongDescription);
4032
+ const [expanded, setExpanded] = React14.useState(!isLongDescription);
3676
4033
  const displayDescription = expanded ? description : truncatedDescription;
3677
4034
  const handleToggle = (e) => {
3678
4035
  e.stopPropagation();
@@ -3686,7 +4043,7 @@ var TruncatedDescription = ({
3686
4043
  var removeHtmlTags = (html) => {
3687
4044
  return html.replace(/<[^>]*>/g, "");
3688
4045
  };
3689
- var Heading = React16.forwardRef(
4046
+ var Heading = React14.forwardRef(
3690
4047
  ({ className, as, displayAs, children, ...props }, ref) => {
3691
4048
  const displayClasses = {
3692
4049
  h1: styles61__default.default["h1"],
@@ -3884,12 +4241,14 @@ exports.DrawerTrigger = DrawerTrigger;
3884
4241
  exports.DropdownMenu = DropdownMenu;
3885
4242
  exports.DropdownMenuCheckboxItem = DropdownMenuCheckboxItem;
3886
4243
  exports.DropdownMenuContent = DropdownMenuContent;
4244
+ exports.DropdownMenuEmpty = DropdownMenuEmpty;
3887
4245
  exports.DropdownMenuGroup = DropdownMenuGroup;
3888
4246
  exports.DropdownMenuItem = DropdownMenuItem;
3889
4247
  exports.DropdownMenuLabel = DropdownMenuLabel;
3890
4248
  exports.DropdownMenuPortal = DropdownMenuPortal;
3891
4249
  exports.DropdownMenuRadioGroup = DropdownMenuRadioGroup;
3892
4250
  exports.DropdownMenuRadioItem = DropdownMenuRadioItem;
4251
+ exports.DropdownMenuSearch = DropdownMenuSearch;
3893
4252
  exports.DropdownMenuSeparator = DropdownMenuSeparator;
3894
4253
  exports.DropdownMenuShortcut = DropdownMenuShortcut;
3895
4254
  exports.DropdownMenuSub = DropdownMenuSub;