@maxsteinwender/sort-ui 1.1.2 → 1.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.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import * as React78 from 'react';
2
+ import * as React80 from 'react';
3
3
  import * as AccordionPrimitive from '@radix-ui/react-accordion';
4
4
  import { cva } from 'class-variance-authority';
5
5
  import { clsx } from 'clsx';
@@ -118,7 +118,7 @@ var accordionItemVariants = cva(
118
118
  }
119
119
  }
120
120
  );
121
- var AccordionItem = React78.forwardRef((_a, ref) => {
121
+ var AccordionItem = React80.forwardRef((_a, ref) => {
122
122
  var _b = _a, { className, variant } = _b, props = __objRest(_b, ["className", "variant"]);
123
123
  return /* @__PURE__ */ jsx(
124
124
  AccordionPrimitive.Item,
@@ -129,7 +129,7 @@ var AccordionItem = React78.forwardRef((_a, ref) => {
129
129
  );
130
130
  });
131
131
  AccordionItem.displayName = "AccordionItem";
132
- var AccordionTrigger = React78.forwardRef((_a, ref) => {
132
+ var AccordionTrigger = React80.forwardRef((_a, ref) => {
133
133
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
134
134
  return /* @__PURE__ */ jsx(AccordionPrimitive.Header, { className: "flex", children: /* @__PURE__ */ jsxs(
135
135
  AccordionPrimitive.Trigger,
@@ -151,7 +151,7 @@ var AccordionTrigger = React78.forwardRef((_a, ref) => {
151
151
  ) });
152
152
  });
153
153
  AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
154
- var AccordionContent = React78.forwardRef((_a, ref) => {
154
+ var AccordionContent = React80.forwardRef((_a, ref) => {
155
155
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
156
156
  return /* @__PURE__ */ jsx(
157
157
  AccordionPrimitive.Content,
@@ -196,7 +196,7 @@ var alertVariants = cva(
196
196
  }
197
197
  }
198
198
  );
199
- var Alert = React78.forwardRef((_a, ref) => {
199
+ var Alert = React80.forwardRef((_a, ref) => {
200
200
  var _b = _a, { className, variant } = _b, props = __objRest(_b, ["className", "variant"]);
201
201
  return /* @__PURE__ */ jsx(
202
202
  "div",
@@ -208,7 +208,7 @@ var Alert = React78.forwardRef((_a, ref) => {
208
208
  );
209
209
  });
210
210
  Alert.displayName = "Alert";
211
- var AlertTitle = React78.forwardRef((_a, ref) => {
211
+ var AlertTitle = React80.forwardRef((_a, ref) => {
212
212
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
213
213
  return /* @__PURE__ */ jsx(
214
214
  "h5",
@@ -219,7 +219,7 @@ var AlertTitle = React78.forwardRef((_a, ref) => {
219
219
  );
220
220
  });
221
221
  AlertTitle.displayName = "AlertTitle";
222
- var AlertDescription = React78.forwardRef((_a, ref) => {
222
+ var AlertDescription = React80.forwardRef((_a, ref) => {
223
223
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
224
224
  return /* @__PURE__ */ jsx(
225
225
  "div",
@@ -231,8 +231,8 @@ var AlertDescription = React78.forwardRef((_a, ref) => {
231
231
  });
232
232
  AlertDescription.displayName = "AlertDescription";
233
233
  function useDevWarnIconOnlyAriaLabel(isIconOnly, ariaLabel, ariaLabelledBy, componentName) {
234
- const warnedRef = React78.useRef(false);
235
- React78.useEffect(() => {
234
+ const warnedRef = React80.useRef(false);
235
+ React80.useEffect(() => {
236
236
  if (process.env.NODE_ENV === "production") return;
237
237
  if (warnedRef.current) return;
238
238
  if (!isIconOnly) return;
@@ -250,8 +250,9 @@ var buttonVariants = cva(
250
250
  {
251
251
  variants: {
252
252
  variant: {
253
- // Primary — Sort UI: bg/state/primary, text/white-default, icon/white-default
254
- default: "bg-sui-bg-state-primary text-sui-text-white-default [text-shadow:var(--shadow-text)] [&_i]:text-icon-white-default [&_i]:[text-shadow:none] [&_svg]:text-icon-white-default [&_svg]:[text-shadow:none] shadow-button-default active:shadow-button-press [@media(hover:hover)]:hover:bg-sui-bg-state-primary-hover active:bg-sui-bg-state-primary-press disabled:bg-sui-bg-state-disabled disabled:[text-shadow:none]",
253
+ // Primary — Sort UI: bg/state/primary, text/on-primary, icon/on-primary
254
+ // (on-primary is theme-aware: white everywhere except Theme 2 Dark, where the button inverts to near-white and needs dark text)
255
+ default: "bg-sui-bg-state-primary text-sui-text-on-primary [text-shadow:var(--shadow-text)] [&_i]:text-icon-on-primary [&_i]:[text-shadow:none] [&_svg]:text-icon-on-primary [&_svg]:[text-shadow:none] shadow-button-default active:shadow-button-press [@media(hover:hover)]:hover:bg-sui-bg-state-primary-hover active:bg-sui-bg-state-primary-press disabled:bg-sui-bg-state-disabled disabled:[text-shadow:none]",
255
256
  // Soft — Sort UI: bg/state/soft, text/subtle, icon/default-muted
256
257
  secondary: "bg-sui-bg-state-soft text-sui-text-subtle [&_i]:text-icon-default-muted [&_svg]:text-icon-default-muted [@media(hover:hover)]:hover:bg-sui-bg-state-soft-hover active:bg-sui-bg-state-soft-press disabled:bg-sui-bg-state-disabled",
257
258
  // Secondary — Sort UI: bg/state/secondary, border/darker, text/default, icon/default-muted
@@ -306,6 +307,10 @@ var buttonBadgeVariants = cva(
306
307
  variants: {
307
308
  color: {
308
309
  inverse: "bg-[rgba(255,255,255,0.1)] border-[rgba(255,255,255,0.2)] text-sui-text-white-default group-disabled:bg-transparent group-disabled:border-transparent group-disabled:text-sui-text-hint",
310
+ // Same visual treatment as `inverse`, but theme-aware — used on the Primary
311
+ // (default) button only, since that's the one that inverts in Theme 2 Dark.
312
+ // Destructive keeps `inverse` because its red background never inverts.
313
+ "on-primary": "bg-[var(--overlay-on-primary)] border-[var(--overlay-on-primary-border)] text-sui-text-on-primary group-disabled:bg-transparent group-disabled:border-transparent group-disabled:text-sui-text-hint",
309
314
  neutral: "bg-transparent border-sui-border-default text-sui-text-muted group-disabled:text-sui-text-hint"
310
315
  },
311
316
  badgeSize: {
@@ -320,7 +325,7 @@ var buttonBadgeVariants = cva(
320
325
  }
321
326
  );
322
327
  var badgeColorMap = {
323
- default: "inverse",
328
+ default: "on-primary",
324
329
  destructive: "inverse",
325
330
  secondary: "neutral",
326
331
  outline: "neutral",
@@ -346,7 +351,7 @@ var loadingBgMap = {
346
351
  "ghost-muted": "bg-sui-bg-state-ghost-loading"
347
352
  };
348
353
  var loadingSpinnerColorMap = {
349
- default: "text-icon-white-default",
354
+ default: "text-icon-on-primary",
350
355
  destructive: "text-icon-white-default",
351
356
  outline: "text-icon-default-muted",
352
357
  secondary: "text-icon-default-muted",
@@ -354,7 +359,7 @@ var loadingSpinnerColorMap = {
354
359
  "ghost-muted": "text-icon-default-muted"
355
360
  };
356
361
  var loadingTextColorMap = {
357
- default: "text-sui-text-white-default",
362
+ default: "text-sui-text-on-primary",
358
363
  destructive: "text-sui-text-white-default",
359
364
  outline: "text-sui-text-muted",
360
365
  secondary: "text-sui-text-muted",
@@ -362,7 +367,7 @@ var loadingTextColorMap = {
362
367
  "ghost-muted": "text-sui-text-muted"
363
368
  };
364
369
  var loadingShadowVariants = /* @__PURE__ */ new Set(["default", "outline", "destructive"]);
365
- var Button = React78.forwardRef(
370
+ var Button = React80.forwardRef(
366
371
  (_a, ref) => {
367
372
  var _b = _a, { className, variant, size, shape, iconOnly, loading, leadIcon: _leadIcon, tailIcon: _tailIcon, badgeLeft: _badgeLeft, badgeRight: _badgeRight, asChild = false, children, showSeparator: _showSeparator } = _b, props = __objRest(_b, ["className", "variant", "size", "shape", "iconOnly", "loading", "leadIcon", "tailIcon", "badgeLeft", "badgeRight", "asChild", "children", "showSeparator"]);
368
373
  const Comp = asChild ? Slot : "button";
@@ -433,7 +438,7 @@ Button.displayName = "Button";
433
438
  var AlertDialog = AlertDialogPrimitive.Root;
434
439
  var AlertDialogTrigger = AlertDialogPrimitive.Trigger;
435
440
  var AlertDialogPortal = AlertDialogPrimitive.Portal;
436
- var AlertDialogOverlay = React78.forwardRef((_a, ref) => {
441
+ var AlertDialogOverlay = React80.forwardRef((_a, ref) => {
437
442
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
438
443
  return /* @__PURE__ */ jsx(
439
444
  AlertDialogPrimitive.Overlay,
@@ -448,7 +453,7 @@ var AlertDialogOverlay = React78.forwardRef((_a, ref) => {
448
453
  );
449
454
  });
450
455
  AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
451
- var AlertDialogContent = React78.forwardRef((_a, ref) => {
456
+ var AlertDialogContent = React80.forwardRef((_a, ref) => {
452
457
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
453
458
  return /* @__PURE__ */ jsxs(AlertDialogPortal, { children: [
454
459
  /* @__PURE__ */ jsx(AlertDialogOverlay, {}),
@@ -499,7 +504,7 @@ var AlertDialogFooter = (_a) => {
499
504
  );
500
505
  };
501
506
  AlertDialogFooter.displayName = "AlertDialogFooter";
502
- var AlertDialogTitle = React78.forwardRef((_a, ref) => {
507
+ var AlertDialogTitle = React80.forwardRef((_a, ref) => {
503
508
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
504
509
  return /* @__PURE__ */ jsx(
505
510
  AlertDialogPrimitive.Title,
@@ -510,7 +515,7 @@ var AlertDialogTitle = React78.forwardRef((_a, ref) => {
510
515
  );
511
516
  });
512
517
  AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
513
- var AlertDialogDescription = React78.forwardRef((_a, ref) => {
518
+ var AlertDialogDescription = React80.forwardRef((_a, ref) => {
514
519
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
515
520
  return /* @__PURE__ */ jsx(
516
521
  AlertDialogPrimitive.Description,
@@ -521,7 +526,7 @@ var AlertDialogDescription = React78.forwardRef((_a, ref) => {
521
526
  );
522
527
  });
523
528
  AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
524
- var AlertDialogAction = React78.forwardRef((_a, ref) => {
529
+ var AlertDialogAction = React80.forwardRef((_a, ref) => {
525
530
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
526
531
  return /* @__PURE__ */ jsx(
527
532
  AlertDialogPrimitive.Action,
@@ -532,7 +537,7 @@ var AlertDialogAction = React78.forwardRef((_a, ref) => {
532
537
  );
533
538
  });
534
539
  AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
535
- var AlertDialogCancel = React78.forwardRef((_a, ref) => {
540
+ var AlertDialogCancel = React80.forwardRef((_a, ref) => {
536
541
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
537
542
  return /* @__PURE__ */ jsx(
538
543
  AlertDialogPrimitive.Cancel,
@@ -547,6 +552,228 @@ var AlertDialogCancel = React78.forwardRef((_a, ref) => {
547
552
  );
548
553
  });
549
554
  AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
555
+ var attachmentVariants = cva(
556
+ "relative flex overflow-hidden border rounded-lg bg-sui-bg-card shadow-card",
557
+ {
558
+ variants: {
559
+ size: {
560
+ default: "gap-3 p-3",
561
+ sm: "gap-2 p-2.5",
562
+ xs: "gap-1.5 p-2"
563
+ },
564
+ orientation: {
565
+ horizontal: "flex-row items-center",
566
+ vertical: "flex-col"
567
+ },
568
+ state: {
569
+ idle: "border-sui-border-default",
570
+ uploading: "border-sui-border-default",
571
+ processing: "border-sui-border-default",
572
+ error: "border-sui-border-destructive",
573
+ done: "border-sui-border-default"
574
+ }
575
+ },
576
+ defaultVariants: {
577
+ size: "default",
578
+ orientation: "horizontal",
579
+ state: "done"
580
+ }
581
+ }
582
+ );
583
+ var AttachmentContext = React80.createContext({
584
+ size: "default",
585
+ state: "done"
586
+ });
587
+ var Attachment = React80.forwardRef(
588
+ (_a, ref) => {
589
+ var _b = _a, {
590
+ className,
591
+ size = "default",
592
+ orientation = "horizontal",
593
+ state = "done"
594
+ } = _b, props = __objRest(_b, [
595
+ "className",
596
+ "size",
597
+ "orientation",
598
+ "state"
599
+ ]);
600
+ const resolvedSize = size != null ? size : "default";
601
+ const resolvedState = state != null ? state : "done";
602
+ return /* @__PURE__ */ jsx(AttachmentContext.Provider, { value: { size: resolvedSize, state: resolvedState }, children: /* @__PURE__ */ jsx(
603
+ "div",
604
+ __spreadValues({
605
+ ref,
606
+ className: cn(attachmentVariants({ size, orientation, state }), className)
607
+ }, props)
608
+ ) });
609
+ }
610
+ );
611
+ Attachment.displayName = "Attachment";
612
+ var mediaContainerSize = {
613
+ default: "size-10",
614
+ sm: "size-8",
615
+ xs: "size-6"
616
+ };
617
+ var mediaIconSize = {
618
+ default: "[&_i]:text-xl [&_svg]:size-5",
619
+ sm: "[&_i]:text-lg [&_svg]:size-4",
620
+ xs: "[&_i]:text-sm [&_svg]:size-3.5"
621
+ };
622
+ var AttachmentMedia = React80.forwardRef(
623
+ (_a, ref) => {
624
+ var _b = _a, { className, variant = "icon", children } = _b, props = __objRest(_b, ["className", "variant", "children"]);
625
+ const { size } = React80.useContext(AttachmentContext);
626
+ return /* @__PURE__ */ jsx(
627
+ "div",
628
+ __spreadProps(__spreadValues({
629
+ ref,
630
+ className: cn(
631
+ "relative flex shrink-0 items-center justify-center overflow-hidden rounded-sm",
632
+ mediaContainerSize[size],
633
+ variant === "icon" && [
634
+ "bg-sui-bg-subtle border-[0.5px] border-sui-border-darker",
635
+ "[&_i]:text-icon-default-muted [&_svg]:text-icon-default-muted",
636
+ mediaIconSize[size]
637
+ ],
638
+ variant === "image" && "[&_img]:size-full [&_img]:object-cover",
639
+ className
640
+ )
641
+ }, props), {
642
+ children
643
+ })
644
+ );
645
+ }
646
+ );
647
+ AttachmentMedia.displayName = "AttachmentMedia";
648
+ var AttachmentContent = React80.forwardRef((_a, ref) => {
649
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
650
+ return /* @__PURE__ */ jsx(
651
+ "div",
652
+ __spreadValues({
653
+ ref,
654
+ className: cn("relative flex flex-1 flex-col gap-0.5 justify-center min-w-0", className)
655
+ }, props)
656
+ );
657
+ });
658
+ AttachmentContent.displayName = "AttachmentContent";
659
+ var titleTextSize = {
660
+ default: "text-sm",
661
+ sm: "text-sm",
662
+ xs: "text-xs"
663
+ };
664
+ var AttachmentTitle = React80.forwardRef((_a, ref) => {
665
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
666
+ const { size, state } = React80.useContext(AttachmentContext);
667
+ const isShimmering = state === "uploading" || state === "processing";
668
+ return /* @__PURE__ */ jsx(
669
+ "p",
670
+ __spreadValues({
671
+ ref,
672
+ className: cn(
673
+ "font-medium leading-5 text-sui-text-default truncate",
674
+ titleTextSize[size],
675
+ isShimmering && "animate-pulse",
676
+ className
677
+ )
678
+ }, props)
679
+ );
680
+ });
681
+ AttachmentTitle.displayName = "AttachmentTitle";
682
+ var stateIcon = {
683
+ uploading: "ri-loader-4-line animate-spin text-icon-informative",
684
+ processing: "ri-loader-4-line animate-spin text-icon-informative",
685
+ error: "ri-error-warning-line text-icon-destructive",
686
+ done: "ri-check-line text-icon-success"
687
+ };
688
+ var AttachmentDescription = React80.forwardRef((_a, ref) => {
689
+ var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
690
+ const { state } = React80.useContext(AttachmentContext);
691
+ const icon = stateIcon[state];
692
+ return /* @__PURE__ */ jsxs(
693
+ "div",
694
+ __spreadProps(__spreadValues({
695
+ ref,
696
+ className: cn(
697
+ "flex items-center gap-1 text-xs leading-4 whitespace-nowrap",
698
+ state === "error" ? "text-sui-text-destructive" : "text-sui-text-muted",
699
+ className
700
+ )
701
+ }, props), {
702
+ children: [
703
+ icon && /* @__PURE__ */ jsx("i", { className: cn(icon, "leading-none"), "aria-hidden": "true" }),
704
+ /* @__PURE__ */ jsx("span", { className: "truncate", children })
705
+ ]
706
+ })
707
+ );
708
+ });
709
+ AttachmentDescription.displayName = "AttachmentDescription";
710
+ var AttachmentActions = React80.forwardRef((_a, ref) => {
711
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
712
+ return /* @__PURE__ */ jsx(
713
+ "div",
714
+ __spreadValues({
715
+ ref,
716
+ className: cn("relative flex items-center gap-1 shrink-0", className)
717
+ }, props)
718
+ );
719
+ });
720
+ AttachmentActions.displayName = "AttachmentActions";
721
+ var AttachmentAction = React80.forwardRef(
722
+ (_a, ref) => {
723
+ var _b = _a, { className, size = "2xs", onClick } = _b, props = __objRest(_b, ["className", "size", "onClick"]);
724
+ return /* @__PURE__ */ jsx(
725
+ Button,
726
+ __spreadValues({
727
+ ref,
728
+ type: "button",
729
+ variant: "ghost",
730
+ size,
731
+ iconOnly: true,
732
+ onClick: (event) => {
733
+ event.stopPropagation();
734
+ onClick == null ? void 0 : onClick(event);
735
+ },
736
+ className
737
+ }, props)
738
+ );
739
+ }
740
+ );
741
+ AttachmentAction.displayName = "AttachmentAction";
742
+ var AttachmentTrigger = React80.forwardRef(
743
+ (_a, ref) => {
744
+ var _b = _a, { className, asChild = false } = _b, props = __objRest(_b, ["className", "asChild"]);
745
+ const Comp = asChild ? Slot : "button";
746
+ return /* @__PURE__ */ jsx(
747
+ Comp,
748
+ __spreadValues({
749
+ ref,
750
+ type: asChild ? void 0 : "button",
751
+ className: cn(
752
+ "absolute inset-0 z-0 rounded-[inherit]",
753
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sui-border-highlight focus-visible:ring-offset-2 focus-visible:ring-offset-sui-bg-default",
754
+ className
755
+ )
756
+ }, props)
757
+ );
758
+ }
759
+ );
760
+ AttachmentTrigger.displayName = "AttachmentTrigger";
761
+ var AttachmentGroup = React80.forwardRef((_a, ref) => {
762
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
763
+ return /* @__PURE__ */ jsx(
764
+ "div",
765
+ __spreadValues({
766
+ ref,
767
+ className: cn(
768
+ "flex gap-2 overflow-x-auto snap-x snap-mandatory",
769
+ "scroll-fade-x [--scroll-fade-size:16px]",
770
+ "[&>*]:snap-start",
771
+ className
772
+ )
773
+ }, props)
774
+ );
775
+ });
776
+ AttachmentGroup.displayName = "AttachmentGroup";
550
777
  var containerSize = {
551
778
  "2xs": "size-sui-8",
552
779
  "xs": "size-sui-10",
@@ -571,11 +798,11 @@ var awayIconSize = {
571
798
  "lg": "14px",
572
799
  "default": "16px"
573
800
  };
574
- var StatusBadge = React78.forwardRef(
801
+ var StatusBadge = React80.forwardRef(
575
802
  (_a, ref) => {
576
803
  var _b = _a, { variant, size = "default", src, className } = _b, props = __objRest(_b, ["variant", "size", "src", "className"]);
577
- const [imgError, setImgError] = React78.useState(false);
578
- React78.useEffect(() => {
804
+ const [imgError, setImgError] = React80.useState(false);
805
+ React80.useEffect(() => {
579
806
  setImgError(false);
580
807
  }, [src]);
581
808
  const sizeClass = containerSize[size];
@@ -788,12 +1015,12 @@ function extractInitials(value) {
788
1015
  }
789
1016
  return trimmed.slice(0, 2).toUpperCase();
790
1017
  }
791
- var AvatarContext = React78.createContext({
1018
+ var AvatarContext = React80.createContext({
792
1019
  size: "md",
793
1020
  shape: "circular",
794
1021
  color: "gray"
795
1022
  });
796
- var Avatar = React78.forwardRef((_a, ref) => {
1023
+ var Avatar = React80.forwardRef((_a, ref) => {
797
1024
  var _b = _a, {
798
1025
  className,
799
1026
  size = "md",
@@ -947,7 +1174,7 @@ var Avatar = React78.forwardRef((_a, ref) => {
947
1174
  ) });
948
1175
  });
949
1176
  Avatar.displayName = "Avatar";
950
- var AvatarImage = React78.forwardRef((_a, ref) => {
1177
+ var AvatarImage = React80.forwardRef((_a, ref) => {
951
1178
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
952
1179
  return /* @__PURE__ */ jsx(
953
1180
  AvatarPrimitive.Image,
@@ -958,10 +1185,10 @@ var AvatarImage = React78.forwardRef((_a, ref) => {
958
1185
  );
959
1186
  });
960
1187
  AvatarImage.displayName = "AvatarImage";
961
- var AvatarFallback = React78.forwardRef((_a, ref) => {
1188
+ var AvatarFallback = React80.forwardRef((_a, ref) => {
962
1189
  var _b = _a, { className, fallback, children } = _b, props = __objRest(_b, ["className", "fallback", "children"]);
963
1190
  var _a2, _b2, _c;
964
- const { size, shape, color } = React78.useContext(AvatarContext);
1191
+ const { size, shape, color } = React80.useContext(AvatarContext);
965
1192
  const shapeClass = shape === "rounded" ? "rounded-sm" : "rounded-full";
966
1193
  const fontClass = (_a2 = initialsFontSize[size]) != null ? _a2 : "text-sm";
967
1194
  const iconClass = (_b2 = iconSize[size]) != null ? _b2 : "text-lg";
@@ -1011,7 +1238,7 @@ var avatarButtonVariants = cva(
1011
1238
  }
1012
1239
  }
1013
1240
  );
1014
- var AvatarButton = React78.forwardRef(
1241
+ var AvatarButton = React80.forwardRef(
1015
1242
  (_a, ref) => {
1016
1243
  var _b = _a, {
1017
1244
  className,
@@ -1105,7 +1332,7 @@ var paddingBySize = {
1105
1332
  "2xl": "pr-sui-10",
1106
1333
  "3xl": "pr-sui-12"
1107
1334
  };
1108
- var AvatarGroup = React78.forwardRef(
1335
+ var AvatarGroup = React80.forwardRef(
1109
1336
  (_a, ref) => {
1110
1337
  var _b = _a, { className, size = "md", stacking = "last-on-top", items } = _b, props = __objRest(_b, ["className", "size", "stacking", "items"]);
1111
1338
  const isFirstOnTop = stacking === "first-on-top";
@@ -1147,7 +1374,7 @@ var AvatarGroup = React78.forwardRef(
1147
1374
  }
1148
1375
  );
1149
1376
  AvatarGroup.displayName = "AvatarGroup";
1150
- var AvatarUpload = React78.forwardRef(
1377
+ var AvatarUpload = React80.forwardRef(
1151
1378
  ({
1152
1379
  src,
1153
1380
  alt = "",
@@ -1240,7 +1467,7 @@ var controlButtonVariants = cva(
1240
1467
  }
1241
1468
  }
1242
1469
  );
1243
- var ControlButton = React78.forwardRef(
1470
+ var ControlButton = React80.forwardRef(
1244
1471
  (_a, ref) => {
1245
1472
  var _b = _a, {
1246
1473
  className,
@@ -1411,12 +1638,12 @@ function Badge(_a) {
1411
1638
  })
1412
1639
  );
1413
1640
  }
1414
- var Breadcrumb = React78.forwardRef((_a, ref) => {
1641
+ var Breadcrumb = React80.forwardRef((_a, ref) => {
1415
1642
  var props = __objRest(_a, []);
1416
1643
  return /* @__PURE__ */ jsx("nav", __spreadValues({ ref, "aria-label": "breadcrumb" }, props));
1417
1644
  });
1418
1645
  Breadcrumb.displayName = "Breadcrumb";
1419
- var BreadcrumbList = React78.forwardRef((_a, ref) => {
1646
+ var BreadcrumbList = React80.forwardRef((_a, ref) => {
1420
1647
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1421
1648
  return /* @__PURE__ */ jsx(
1422
1649
  "ol",
@@ -1430,7 +1657,7 @@ var BreadcrumbList = React78.forwardRef((_a, ref) => {
1430
1657
  );
1431
1658
  });
1432
1659
  BreadcrumbList.displayName = "BreadcrumbList";
1433
- var BreadcrumbItem = React78.forwardRef((_a, ref) => {
1660
+ var BreadcrumbItem = React80.forwardRef((_a, ref) => {
1434
1661
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1435
1662
  return /* @__PURE__ */ jsx(
1436
1663
  "li",
@@ -1441,7 +1668,7 @@ var BreadcrumbItem = React78.forwardRef((_a, ref) => {
1441
1668
  );
1442
1669
  });
1443
1670
  BreadcrumbItem.displayName = "BreadcrumbItem";
1444
- var BreadcrumbLink = React78.forwardRef((_a, ref) => {
1671
+ var BreadcrumbLink = React80.forwardRef((_a, ref) => {
1445
1672
  var _b = _a, { asChild, className } = _b, props = __objRest(_b, ["asChild", "className"]);
1446
1673
  const Comp = asChild ? Slot : "a";
1447
1674
  return /* @__PURE__ */ jsx(
@@ -1457,7 +1684,7 @@ var BreadcrumbLink = React78.forwardRef((_a, ref) => {
1457
1684
  );
1458
1685
  });
1459
1686
  BreadcrumbLink.displayName = "BreadcrumbLink";
1460
- var BreadcrumbPage = React78.forwardRef((_a, ref) => {
1687
+ var BreadcrumbPage = React80.forwardRef((_a, ref) => {
1461
1688
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
1462
1689
  return /* @__PURE__ */ jsx(
1463
1690
  "span",
@@ -1529,7 +1756,7 @@ function BreadcrumbDivider({ variant }) {
1529
1756
  variant === "dot" && /* @__PURE__ */ jsx("span", { className: "size-1 rounded-full bg-sui-text-muted" })
1530
1757
  ] });
1531
1758
  }
1532
- var SortBreadcrumb = React78.forwardRef(
1759
+ var SortBreadcrumb = React80.forwardRef(
1533
1760
  ({ items, variant = "slash", className }, ref) => {
1534
1761
  return /* @__PURE__ */ jsx("nav", { ref, "aria-label": "Breadcrumb", children: /* @__PURE__ */ jsx(
1535
1762
  "ol",
@@ -1540,7 +1767,7 @@ var SortBreadcrumb = React78.forwardRef(
1540
1767
  ),
1541
1768
  children: items.map((item, index) => {
1542
1769
  const isLast = index === items.length - 1;
1543
- return /* @__PURE__ */ jsxs(React78.Fragment, { children: [
1770
+ return /* @__PURE__ */ jsxs(React80.Fragment, { children: [
1544
1771
  /* @__PURE__ */ jsx("li", { className: "inline-flex", children: /* @__PURE__ */ jsx(
1545
1772
  SortBreadcrumbItem,
1546
1773
  __spreadProps(__spreadValues({}, item), {
@@ -1632,7 +1859,7 @@ var verticalChildRadius = {
1632
1859
  xs: "[&>button:first-child]:rounded-t-md [&>button:last-of-type]:rounded-b-md",
1633
1860
  "2xs": "[&>button:first-child]:rounded-t-sm [&>button:last-of-type]:rounded-b-sm"
1634
1861
  };
1635
- var ButtonGroup = React78.forwardRef(
1862
+ var ButtonGroup = React80.forwardRef(
1636
1863
  (_a, ref) => {
1637
1864
  var _b = _a, { size = "lg", orientation = "horizontal", className, children } = _b, props = __objRest(_b, ["size", "orientation", "className", "children"]);
1638
1865
  const isVertical = orientation === "vertical";
@@ -1651,9 +1878,9 @@ var ButtonGroup = React78.forwardRef(
1651
1878
  className
1652
1879
  )
1653
1880
  }, props), {
1654
- children: React78.Children.map(children, (child, index) => {
1655
- if (React78.isValidElement(child)) {
1656
- return React78.cloneElement(
1881
+ children: React80.Children.map(children, (child, index) => {
1882
+ if (React80.isValidElement(child)) {
1883
+ return React80.cloneElement(
1657
1884
  child,
1658
1885
  {
1659
1886
  showSeparator: index > 0,
@@ -1723,7 +1950,7 @@ var badgeClasses = {
1723
1950
  xs: "text-xs font-medium leading-4 py-sui-2",
1724
1951
  "2xs": "text-xs font-medium leading-4 py-0"
1725
1952
  };
1726
- var ButtonGroupItem = React78.forwardRef(
1953
+ var ButtonGroupItem = React80.forwardRef(
1727
1954
  (_a, ref) => {
1728
1955
  var _b = _a, {
1729
1956
  label,
@@ -1811,7 +2038,7 @@ var filterButtonVariants = cva(
1811
2038
  );
1812
2039
  var getVisualStateClasses = (selected) => selected ? "bg-sui-bg-state-secondary border border-solid border-sui-border-darker text-sui-text-muted [&_i]:text-icon-default-muted [&_svg]:text-icon-default-muted shadow-default" : "bg-sui-bg-state-secondary border border-dashed border-sui-border-darker text-sui-text-muted [&_i]:text-icon-default-muted [&_svg]:text-icon-default-muted";
1813
2040
  var SUB_BUTTON_FOCUS = "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sui-border-highlight focus-visible:ring-offset-1 rounded-sm";
1814
- var FilterButton = React78.forwardRef(
2041
+ var FilterButton = React80.forwardRef(
1815
2042
  (_a, ref) => {
1816
2043
  var _b = _a, {
1817
2044
  className,
@@ -2001,7 +2228,7 @@ var underlineOffsetMap = {
2001
2228
  md: "after:bottom-0",
2002
2229
  lg: "after:bottom-0"
2003
2230
  };
2004
- var LinkButton = React78.forwardRef(
2231
+ var LinkButton = React80.forwardRef(
2005
2232
  (_a, ref) => {
2006
2233
  var _b = _a, { className, variant, size, asChild = false, leadIcon, tailIcon, disabled, children } = _b, props = __objRest(_b, ["className", "variant", "size", "asChild", "leadIcon", "tailIcon", "disabled", "children"]);
2007
2234
  const Comp = asChild ? Slot : "button";
@@ -2084,7 +2311,7 @@ var brandMap = {
2084
2311
  dropbox: { icon: "ri-dropbox-fill", label: "Dropbox", bg: "var(--social-brand-dropbox)" },
2085
2312
  github: { icon: "ri-github-fill", label: "Github" }
2086
2313
  };
2087
- var SocialButton = React78.forwardRef(
2314
+ var SocialButton = React80.forwardRef(
2088
2315
  (_a, ref) => {
2089
2316
  var _b = _a, { className, variant, shape, brand, iconOnly, asChild = false, children } = _b, props = __objRest(_b, ["className", "variant", "shape", "brand", "iconOnly", "asChild", "children"]);
2090
2317
  const Comp = asChild ? Slot : "button";
@@ -2289,8 +2516,8 @@ function CalendarDayButton(_a) {
2289
2516
  "modifiers"
2290
2517
  ]);
2291
2518
  const defaultClassNames = getDefaultClassNames();
2292
- const ref = React78.useRef(null);
2293
- React78.useEffect(() => {
2519
+ const ref = React80.useRef(null);
2520
+ React80.useEffect(() => {
2294
2521
  var _a2;
2295
2522
  if (modifiers.focused) (_a2 = ref.current) == null ? void 0 : _a2.focus();
2296
2523
  }, [modifiers.focused]);
@@ -2362,7 +2589,7 @@ var cardVariants = cva(
2362
2589
  }
2363
2590
  }
2364
2591
  );
2365
- var Card = React78.forwardRef(
2592
+ var Card = React80.forwardRef(
2366
2593
  (_a, ref) => {
2367
2594
  var _b = _a, { className, variant, interactive, asChild = false } = _b, props = __objRest(_b, ["className", "variant", "interactive", "asChild"]);
2368
2595
  const Comp = asChild ? Slot : "div";
@@ -2385,7 +2612,7 @@ var Card = React78.forwardRef(
2385
2612
  }
2386
2613
  );
2387
2614
  Card.displayName = "Card";
2388
- var CardHeader = React78.forwardRef((_a, ref) => {
2615
+ var CardHeader = React80.forwardRef((_a, ref) => {
2389
2616
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2390
2617
  return /* @__PURE__ */ jsx(
2391
2618
  "div",
@@ -2396,7 +2623,7 @@ var CardHeader = React78.forwardRef((_a, ref) => {
2396
2623
  );
2397
2624
  });
2398
2625
  CardHeader.displayName = "CardHeader";
2399
- var CardTitle = React78.forwardRef((_a, ref) => {
2626
+ var CardTitle = React80.forwardRef((_a, ref) => {
2400
2627
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2401
2628
  return /* @__PURE__ */ jsx(
2402
2629
  "div",
@@ -2410,7 +2637,7 @@ var CardTitle = React78.forwardRef((_a, ref) => {
2410
2637
  );
2411
2638
  });
2412
2639
  CardTitle.displayName = "CardTitle";
2413
- var CardDescription = React78.forwardRef((_a, ref) => {
2640
+ var CardDescription = React80.forwardRef((_a, ref) => {
2414
2641
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2415
2642
  return /* @__PURE__ */ jsx(
2416
2643
  "div",
@@ -2421,12 +2648,12 @@ var CardDescription = React78.forwardRef((_a, ref) => {
2421
2648
  );
2422
2649
  });
2423
2650
  CardDescription.displayName = "CardDescription";
2424
- var CardContent = React78.forwardRef((_a, ref) => {
2651
+ var CardContent = React80.forwardRef((_a, ref) => {
2425
2652
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2426
2653
  return /* @__PURE__ */ jsx("div", __spreadValues({ ref, className: cn("p-6 pt-0", className) }, props));
2427
2654
  });
2428
2655
  CardContent.displayName = "CardContent";
2429
- var CardFooter = React78.forwardRef((_a, ref) => {
2656
+ var CardFooter = React80.forwardRef((_a, ref) => {
2430
2657
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
2431
2658
  return /* @__PURE__ */ jsx(
2432
2659
  "div",
@@ -2437,7 +2664,7 @@ var CardFooter = React78.forwardRef((_a, ref) => {
2437
2664
  );
2438
2665
  });
2439
2666
  CardFooter.displayName = "CardFooter";
2440
- var CardCover = React78.forwardRef(
2667
+ var CardCover = React80.forwardRef(
2441
2668
  (_a, ref) => {
2442
2669
  var _b = _a, { className, flush = false, aspectRatio = "3/2", style, children } = _b, props = __objRest(_b, ["className", "flush", "aspectRatio", "style", "children"]);
2443
2670
  return /* @__PURE__ */ jsx(
@@ -2458,17 +2685,17 @@ var CardCover = React78.forwardRef(
2458
2685
  );
2459
2686
  CardCover.displayName = "CardCover";
2460
2687
  var THEMES = { light: "", dark: ".dark" };
2461
- var ChartContext = React78.createContext(null);
2688
+ var ChartContext = React80.createContext(null);
2462
2689
  function useChart() {
2463
- const context = React78.useContext(ChartContext);
2690
+ const context = React80.useContext(ChartContext);
2464
2691
  if (!context) {
2465
2692
  throw new Error("useChart must be used within a <ChartContainer />");
2466
2693
  }
2467
2694
  return context;
2468
2695
  }
2469
- var ChartContainer = React78.forwardRef((_a, ref) => {
2696
+ var ChartContainer = React80.forwardRef((_a, ref) => {
2470
2697
  var _b = _a, { id, className, children, config } = _b, props = __objRest(_b, ["id", "className", "children", "config"]);
2471
- const uniqueId = React78.useId();
2698
+ const uniqueId = React80.useId();
2472
2699
  const chartId = `chart-${id || uniqueId.replace(/:/g, "")}`;
2473
2700
  return /* @__PURE__ */ jsx(ChartContext.Provider, { value: { config }, children: /* @__PURE__ */ jsxs(
2474
2701
  "div",
@@ -2515,7 +2742,7 @@ ${colorConfig.map(([key, itemConfig]) => {
2515
2742
  );
2516
2743
  };
2517
2744
  var ChartTooltip = RechartsPrimitive.Tooltip;
2518
- var ChartTooltipContent = React78.forwardRef(
2745
+ var ChartTooltipContent = React80.forwardRef(
2519
2746
  ({
2520
2747
  active,
2521
2748
  payload,
@@ -2532,7 +2759,7 @@ var ChartTooltipContent = React78.forwardRef(
2532
2759
  labelKey
2533
2760
  }, ref) => {
2534
2761
  const { config } = useChart();
2535
- const tooltipLabel = React78.useMemo(() => {
2762
+ const tooltipLabel = React80.useMemo(() => {
2536
2763
  var _a;
2537
2764
  if (hideLabel || !(payload == null ? void 0 : payload.length)) {
2538
2765
  return null;
@@ -2629,7 +2856,7 @@ var ChartTooltipContent = React78.forwardRef(
2629
2856
  );
2630
2857
  ChartTooltipContent.displayName = "ChartTooltip";
2631
2858
  var ChartLegend = RechartsPrimitive.Legend;
2632
- var ChartLegendContent = React78.forwardRef(
2859
+ var ChartLegendContent = React80.forwardRef(
2633
2860
  ({ className, hideIcon = false, payload, verticalAlign = "bottom", nameKey }, ref) => {
2634
2861
  const { config } = useChart();
2635
2862
  if (!(payload == null ? void 0 : payload.length)) {
@@ -2748,7 +2975,7 @@ var checkboxVariants = cva(
2748
2975
  }
2749
2976
  }
2750
2977
  );
2751
- var Checkbox = React78.forwardRef((_a, ref) => {
2978
+ var Checkbox = React80.forwardRef((_a, ref) => {
2752
2979
  var _b = _a, { className, variant, checked, indeterminate } = _b, props = __objRest(_b, ["className", "variant", "checked", "indeterminate"]);
2753
2980
  return /* @__PURE__ */ jsxs(
2754
2981
  CheckboxPrimitive.Root,
@@ -2870,7 +3097,7 @@ var checkboxCardVariants = cva(
2870
3097
  }
2871
3098
  }
2872
3099
  );
2873
- var CheckboxCard = React78.forwardRef(
3100
+ var CheckboxCard = React80.forwardRef(
2874
3101
  ({
2875
3102
  title,
2876
3103
  description,
@@ -2884,7 +3111,7 @@ var CheckboxCard = React78.forwardRef(
2884
3111
  disabled = false,
2885
3112
  className
2886
3113
  }, ref) => {
2887
- const generatedId = React78.useId();
3114
+ const generatedId = React80.useId();
2888
3115
  const checkboxId = `checkbox-card-${generatedId}`;
2889
3116
  const titleId = `checkbox-card-title-${generatedId}`;
2890
3117
  const descriptionId = `checkbox-card-desc-${generatedId}`;
@@ -2980,10 +3207,10 @@ var CheckboxCard = React78.forwardRef(
2980
3207
  }
2981
3208
  );
2982
3209
  CheckboxCard.displayName = "CheckboxCard";
2983
- var CheckboxList = React78.forwardRef(
3210
+ var CheckboxList = React80.forwardRef(
2984
3211
  (_a, ref) => {
2985
3212
  var _b = _a, { className, divider = true, children } = _b, props = __objRest(_b, ["className", "divider", "children"]);
2986
- const items = React78.Children.toArray(children);
3213
+ const items = React80.Children.toArray(children);
2987
3214
  return /* @__PURE__ */ jsx(
2988
3215
  "div",
2989
3216
  __spreadProps(__spreadValues({
@@ -3025,7 +3252,7 @@ var checkboxWithTextVariants = cva(
3025
3252
  }
3026
3253
  }
3027
3254
  );
3028
- var CheckboxWithText = React78.forwardRef(
3255
+ var CheckboxWithText = React80.forwardRef(
3029
3256
  ({
3030
3257
  label,
3031
3258
  description,
@@ -3038,7 +3265,7 @@ var CheckboxWithText = React78.forwardRef(
3038
3265
  className,
3039
3266
  id
3040
3267
  }, ref) => {
3041
- const generatedId = React78.useId();
3268
+ const generatedId = React80.useId();
3042
3269
  const checkboxId = id || generatedId;
3043
3270
  return /* @__PURE__ */ jsxs(
3044
3271
  "div",
@@ -3122,10 +3349,10 @@ var unselectedStyles = {
3122
3349
  ].join(" ")
3123
3350
  };
3124
3351
  var selectedStyles = {
3125
- // default, soft, ghost → blue selected
3126
- default: "bg-sui-bg-badge-blue border-sui-border-blue text-sui-bg-basic-blue-strong [&_i]:text-sui-bg-basic-blue-strong",
3127
- soft: "bg-sui-bg-badge-blue text-sui-bg-basic-blue-strong [&_i]:text-sui-bg-basic-blue-strong",
3128
- ghost: "bg-sui-bg-badge-blue text-sui-bg-basic-blue-strong [&_i]:text-sui-bg-basic-blue-strong",
3352
+ // default, soft, ghost → informative accent selected (shifts blue → orange in Theme 2; bg-badge-blue has no theme-adaptive equivalent yet)
3353
+ default: "bg-sui-bg-badge-blue border-sui-border-blue text-sui-text-informative [&_i]:text-sui-text-informative",
3354
+ soft: "bg-sui-bg-badge-blue text-sui-text-informative [&_i]:text-sui-text-informative",
3355
+ ghost: "bg-sui-bg-badge-blue text-sui-text-informative [&_i]:text-sui-text-informative",
3129
3356
  // ghost-muted → soft bg + subtle text
3130
3357
  "ghost-muted": "bg-sui-bg-state-soft text-sui-text-subtle [&_i]:text-icon-default-subtle"
3131
3358
  };
@@ -3186,7 +3413,7 @@ var labelClasses2 = {
3186
3413
  md: "text-sm font-medium leading-5",
3187
3414
  sm: "text-xs font-medium leading-4"
3188
3415
  };
3189
- var Chip = React78.forwardRef(
3416
+ var Chip = React80.forwardRef(
3190
3417
  (_a, ref) => {
3191
3418
  var _b = _a, {
3192
3419
  label,
@@ -3215,7 +3442,7 @@ var Chip = React78.forwardRef(
3215
3442
  "className",
3216
3443
  "onClick"
3217
3444
  ]);
3218
- const [internalSelected, setInternalSelected] = React78.useState(false);
3445
+ const [internalSelected, setInternalSelected] = React80.useState(false);
3219
3446
  const isControlled = controlledSelected !== void 0;
3220
3447
  const selected = isControlled ? controlledSelected : internalSelected;
3221
3448
  const handleClick = (e) => {
@@ -3313,7 +3540,7 @@ var badgeStyles = [
3313
3540
  "bg-sui-bg-state-soft border border-sui-border-darker rounded-xs",
3314
3541
  "text-sui-text-subtle text-xs font-medium leading-4"
3315
3542
  ].join(" ");
3316
- var TooltipContent = React78.forwardRef((_a, ref) => {
3543
+ var TooltipContent = React80.forwardRef((_a, ref) => {
3317
3544
  var _b = _a, { className, variant = "default", weight = "subtle", shortcut, sideOffset = 4, children } = _b, props = __objRest(_b, ["className", "variant", "weight", "shortcut", "sideOffset", "children"]);
3318
3545
  return /* @__PURE__ */ jsxs(
3319
3546
  TooltipPrimitive.Content,
@@ -3349,7 +3576,7 @@ var underlineTabsListVariants = cva(
3349
3576
  }
3350
3577
  }
3351
3578
  );
3352
- var UnderlineTabsList = React78.forwardRef((_a, ref) => {
3579
+ var UnderlineTabsList = React80.forwardRef((_a, ref) => {
3353
3580
  var _b = _a, { className, layout, size } = _b, props = __objRest(_b, ["className", "layout", "size"]);
3354
3581
  return /* @__PURE__ */ jsx(
3355
3582
  TabsPrimitive4.List,
@@ -3396,7 +3623,7 @@ var underlineTabItemVariants = cva(
3396
3623
  }
3397
3624
  }
3398
3625
  );
3399
- var UnderlineTabItem = React78.forwardRef(
3626
+ var UnderlineTabItem = React80.forwardRef(
3400
3627
  (_a, ref) => {
3401
3628
  var _b = _a, {
3402
3629
  className,
@@ -3434,7 +3661,7 @@ var UnderlineTabItem = React78.forwardRef(
3434
3661
  );
3435
3662
  UnderlineTabItem.displayName = "UnderlineTabItem";
3436
3663
  var DEFAULT_LANGUAGES = ["React", "JavaScript", "TypeScript", "Next.js"];
3437
- var CodeBlock = React78.forwardRef(
3664
+ var CodeBlock = React80.forwardRef(
3438
3665
  (_a, ref) => {
3439
3666
  var _b = _a, {
3440
3667
  className,
@@ -3464,10 +3691,10 @@ var CodeBlock = React78.forwardRef(
3464
3691
  "showLineNumbers"
3465
3692
  ]);
3466
3693
  var _a2, _b2, _c, _d, _e, _f;
3467
- const [activeTab, setActiveTab] = React78.useState((_b2 = (_a2 = tabs == null ? void 0 : tabs[0]) == null ? void 0 : _a2.label) != null ? _b2 : "");
3468
- const [copied, setCopied] = React78.useState(false);
3694
+ const [activeTab, setActiveTab] = React80.useState((_b2 = (_a2 = tabs == null ? void 0 : tabs[0]) == null ? void 0 : _a2.label) != null ? _b2 : "");
3695
+ const [copied, setCopied] = React80.useState(false);
3469
3696
  const activeCode = variant === "advanced" ? (_f = (_e = (_c = tabs == null ? void 0 : tabs.find((t) => t.label === activeTab)) == null ? void 0 : _c.code) != null ? _e : (_d = tabs == null ? void 0 : tabs[0]) == null ? void 0 : _d.code) != null ? _f : "" : code;
3470
- const handleCopy = React78.useCallback(() => {
3697
+ const handleCopy = React80.useCallback(() => {
3471
3698
  if (onCopy) {
3472
3699
  onCopy();
3473
3700
  } else {
@@ -3658,7 +3885,7 @@ var Dialog = DialogPrimitive.Root;
3658
3885
  var DialogTrigger = DialogPrimitive.Trigger;
3659
3886
  var DialogPortal = DialogPrimitive.Portal;
3660
3887
  var DialogClose = DialogPrimitive.Close;
3661
- var DialogOverlay = React78.forwardRef((_a, ref) => {
3888
+ var DialogOverlay = React80.forwardRef((_a, ref) => {
3662
3889
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
3663
3890
  return /* @__PURE__ */ jsx(
3664
3891
  DialogPrimitive.Overlay,
@@ -3672,7 +3899,7 @@ var DialogOverlay = React78.forwardRef((_a, ref) => {
3672
3899
  );
3673
3900
  });
3674
3901
  DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
3675
- var DialogContent = React78.forwardRef((_a, ref) => {
3902
+ var DialogContent = React80.forwardRef((_a, ref) => {
3676
3903
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
3677
3904
  return /* @__PURE__ */ jsxs(DialogPortal, { children: [
3678
3905
  /* @__PURE__ */ jsx(DialogOverlay, {}),
@@ -3731,7 +3958,7 @@ var DialogFooter = (_a) => {
3731
3958
  );
3732
3959
  };
3733
3960
  DialogFooter.displayName = "DialogFooter";
3734
- var DialogTitle = React78.forwardRef((_a, ref) => {
3961
+ var DialogTitle = React80.forwardRef((_a, ref) => {
3735
3962
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
3736
3963
  return /* @__PURE__ */ jsx(
3737
3964
  DialogPrimitive.Title,
@@ -3745,7 +3972,7 @@ var DialogTitle = React78.forwardRef((_a, ref) => {
3745
3972
  );
3746
3973
  });
3747
3974
  DialogTitle.displayName = DialogPrimitive.Title.displayName;
3748
- var DialogDescription = React78.forwardRef((_a, ref) => {
3975
+ var DialogDescription = React80.forwardRef((_a, ref) => {
3749
3976
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
3750
3977
  return /* @__PURE__ */ jsx(
3751
3978
  DialogPrimitive.Description,
@@ -3756,7 +3983,7 @@ var DialogDescription = React78.forwardRef((_a, ref) => {
3756
3983
  );
3757
3984
  });
3758
3985
  DialogDescription.displayName = DialogPrimitive.Description.displayName;
3759
- var Command = React78.forwardRef((_a, ref) => {
3986
+ var Command = React80.forwardRef((_a, ref) => {
3760
3987
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
3761
3988
  return /* @__PURE__ */ jsx(
3762
3989
  Command$1,
@@ -3774,7 +4001,7 @@ var CommandDialog = (_a) => {
3774
4001
  var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
3775
4002
  return /* @__PURE__ */ jsx(Dialog, __spreadProps(__spreadValues({}, props), { children: /* @__PURE__ */ jsx(DialogContent, { className: "overflow-hidden p-0 shadow-card max-w-[560px]", children: /* @__PURE__ */ jsx(Command, { className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-sui-text-hint [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_i]:h-4 [&_[cmdk-input-wrapper]_i]:w-4 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_i]:h-4 [&_[cmdk-item]_i]:w-4", children }) }) }));
3776
4003
  };
3777
- var CommandInput = React78.forwardRef((_a, ref) => {
4004
+ var CommandInput = React80.forwardRef((_a, ref) => {
3778
4005
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
3779
4006
  return /* @__PURE__ */ jsxs("div", { className: "flex items-center border-b border-sui-border-default px-3", "cmdk-input-wrapper": "", children: [
3780
4007
  /* @__PURE__ */ jsx("i", { className: "ri-search-line mr-2 shrink-0 text-icon-default-muted" }),
@@ -3791,7 +4018,7 @@ var CommandInput = React78.forwardRef((_a, ref) => {
3791
4018
  ] });
3792
4019
  });
3793
4020
  CommandInput.displayName = Command$1.Input.displayName;
3794
- var CommandList = React78.forwardRef((_a, ref) => {
4021
+ var CommandList = React80.forwardRef((_a, ref) => {
3795
4022
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
3796
4023
  return /* @__PURE__ */ jsx(
3797
4024
  Command$1.List,
@@ -3802,7 +4029,7 @@ var CommandList = React78.forwardRef((_a, ref) => {
3802
4029
  );
3803
4030
  });
3804
4031
  CommandList.displayName = Command$1.List.displayName;
3805
- var CommandEmpty = React78.forwardRef((props, ref) => /* @__PURE__ */ jsx(
4032
+ var CommandEmpty = React80.forwardRef((props, ref) => /* @__PURE__ */ jsx(
3806
4033
  Command$1.Empty,
3807
4034
  __spreadValues({
3808
4035
  ref,
@@ -3810,7 +4037,7 @@ var CommandEmpty = React78.forwardRef((props, ref) => /* @__PURE__ */ jsx(
3810
4037
  }, props)
3811
4038
  ));
3812
4039
  CommandEmpty.displayName = Command$1.Empty.displayName;
3813
- var CommandGroup = React78.forwardRef((_a, ref) => {
4040
+ var CommandGroup = React80.forwardRef((_a, ref) => {
3814
4041
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
3815
4042
  return /* @__PURE__ */ jsx(
3816
4043
  Command$1.Group,
@@ -3824,7 +4051,7 @@ var CommandGroup = React78.forwardRef((_a, ref) => {
3824
4051
  );
3825
4052
  });
3826
4053
  CommandGroup.displayName = Command$1.Group.displayName;
3827
- var CommandSeparator = React78.forwardRef((_a, ref) => {
4054
+ var CommandSeparator = React80.forwardRef((_a, ref) => {
3828
4055
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
3829
4056
  return /* @__PURE__ */ jsx(
3830
4057
  Command$1.Separator,
@@ -3835,7 +4062,7 @@ var CommandSeparator = React78.forwardRef((_a, ref) => {
3835
4062
  );
3836
4063
  });
3837
4064
  CommandSeparator.displayName = Command$1.Separator.displayName;
3838
- var CommandItem = React78.forwardRef((_a, ref) => {
4065
+ var CommandItem = React80.forwardRef((_a, ref) => {
3839
4066
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
3840
4067
  return /* @__PURE__ */ jsx(
3841
4068
  Command$1.Item,
@@ -3898,7 +4125,7 @@ var sliderHandleVariants = cva(
3898
4125
  }
3899
4126
  }
3900
4127
  );
3901
- var SliderHandle = React78.forwardRef(
4128
+ var SliderHandle = React80.forwardRef(
3902
4129
  (_a, ref) => {
3903
4130
  var _b = _a, { className, state, value, showTooltip = false } = _b, props = __objRest(_b, ["className", "state", "value", "showTooltip"]);
3904
4131
  const isDisabled = state === "disabled";
@@ -3961,7 +4188,7 @@ function buildHistogramPath(data, width, height) {
3961
4188
  path += ` L ${width} ${height} Z`;
3962
4189
  return path;
3963
4190
  }
3964
- var DataRangeSlider = React78.forwardRef(
4191
+ var DataRangeSlider = React80.forwardRef(
3965
4192
  (_a, ref) => {
3966
4193
  var _b = _a, {
3967
4194
  className,
@@ -3992,18 +4219,18 @@ var DataRangeSlider = React78.forwardRef(
3992
4219
  "formatValue",
3993
4220
  "onValueChange"
3994
4221
  ]);
3995
- const trackRef = React78.useRef(null);
3996
- const [draggingHandle, setDraggingHandle] = React78.useState(null);
3997
- const [focusedHandle, setFocusedHandle] = React78.useState(null);
3998
- const clipId = React78.useId();
4222
+ const trackRef = React80.useRef(null);
4223
+ const [draggingHandle, setDraggingHandle] = React80.useState(null);
4224
+ const [focusedHandle, setFocusedHandle] = React80.useState(null);
4225
+ const clipId = React80.useId();
3999
4226
  const [rangeMin, rangeMax] = value;
4000
4227
  const pctMin = percent(rangeMin, min, max);
4001
4228
  const pctMax = percent(rangeMax, min, max);
4002
- const fmt = React78.useCallback(
4229
+ const fmt = React80.useCallback(
4003
4230
  (v) => formatValue ? formatValue(v) : `${v}`,
4004
4231
  [formatValue]
4005
4232
  );
4006
- const getValueFromPointer = React78.useCallback(
4233
+ const getValueFromPointer = React80.useCallback(
4007
4234
  (clientX) => {
4008
4235
  const track = trackRef.current;
4009
4236
  if (!track) return 0;
@@ -4014,7 +4241,7 @@ var DataRangeSlider = React78.forwardRef(
4014
4241
  },
4015
4242
  [min, max, step]
4016
4243
  );
4017
- const closestHandle = React78.useCallback(
4244
+ const closestHandle = React80.useCallback(
4018
4245
  (pointerValue) => {
4019
4246
  const distMin = Math.abs(pointerValue - rangeMin);
4020
4247
  const distMax = Math.abs(pointerValue - rangeMax);
@@ -4022,7 +4249,7 @@ var DataRangeSlider = React78.forwardRef(
4022
4249
  },
4023
4250
  [rangeMin, rangeMax]
4024
4251
  );
4025
- const updateValue = React78.useCallback(
4252
+ const updateValue = React80.useCallback(
4026
4253
  (handle, newVal) => {
4027
4254
  if (handle === 0) {
4028
4255
  const clamped = clamp(newVal, min, rangeMax);
@@ -4034,7 +4261,7 @@ var DataRangeSlider = React78.forwardRef(
4034
4261
  },
4035
4262
  [min, max, rangeMin, rangeMax, onValueChange]
4036
4263
  );
4037
- const handlePointerDown = React78.useCallback(
4264
+ const handlePointerDown = React80.useCallback(
4038
4265
  (e) => {
4039
4266
  if (disabled) return;
4040
4267
  e.preventDefault();
@@ -4046,7 +4273,7 @@ var DataRangeSlider = React78.forwardRef(
4046
4273
  },
4047
4274
  [disabled, getValueFromPointer, closestHandle, updateValue]
4048
4275
  );
4049
- const handlePointerMove = React78.useCallback(
4276
+ const handlePointerMove = React80.useCallback(
4050
4277
  (e) => {
4051
4278
  if (draggingHandle === null || disabled) return;
4052
4279
  const newVal = getValueFromPointer(e.clientX);
@@ -4054,10 +4281,10 @@ var DataRangeSlider = React78.forwardRef(
4054
4281
  },
4055
4282
  [draggingHandle, disabled, getValueFromPointer, updateValue]
4056
4283
  );
4057
- const handlePointerUp = React78.useCallback(() => {
4284
+ const handlePointerUp = React80.useCallback(() => {
4058
4285
  setDraggingHandle(null);
4059
4286
  }, []);
4060
- const makeKeyHandler = React78.useCallback(
4287
+ const makeKeyHandler = React80.useCallback(
4061
4288
  (handle) => (e) => {
4062
4289
  if (disabled) return;
4063
4290
  const currentVal = handle === 0 ? rangeMin : rangeMax;
@@ -4085,7 +4312,7 @@ var DataRangeSlider = React78.forwardRef(
4085
4312
  },
4086
4313
  [disabled, rangeMin, rangeMax, step, min, max, updateValue]
4087
4314
  );
4088
- const tickLabels = React78.useMemo(() => {
4315
+ const tickLabels = React80.useMemo(() => {
4089
4316
  if (pointLabels) return pointLabels;
4090
4317
  const labels = [];
4091
4318
  for (let i = 0; i < pointCount; i++) {
@@ -4096,7 +4323,7 @@ var DataRangeSlider = React78.forwardRef(
4096
4323
  }, [pointLabels, pointCount, min, max, fmt]);
4097
4324
  const chartWidth = 320;
4098
4325
  const chartHeight = 32;
4099
- const histogramPath = React78.useMemo(
4326
+ const histogramPath = React80.useMemo(
4100
4327
  () => buildHistogramPath(data, chartWidth, chartHeight),
4101
4328
  [data]
4102
4329
  );
@@ -4243,7 +4470,7 @@ DataRangeSlider.displayName = "DataRangeSlider";
4243
4470
  var labelVariants = cva(
4244
4471
  "text-sm font-medium leading-5 text-sui-text-default"
4245
4472
  );
4246
- var Label = React78.forwardRef((_a, ref) => {
4473
+ var Label = React80.forwardRef((_a, ref) => {
4247
4474
  var _b = _a, { className, required, supportText, tailIcon, children } = _b, props = __objRest(_b, ["className", "required", "supportText", "tailIcon", "children"]);
4248
4475
  const hasTail = !!(supportText || tailIcon);
4249
4476
  return /* @__PURE__ */ jsxs(
@@ -4304,7 +4531,7 @@ var inputContainerVariants = cva(
4304
4531
  }
4305
4532
  }
4306
4533
  );
4307
- var InputField = React78.forwardRef(
4534
+ var InputField = React80.forwardRef(
4308
4535
  (_a, ref) => {
4309
4536
  var _b = _a, {
4310
4537
  className,
@@ -4367,15 +4594,15 @@ var InputField = React78.forwardRef(
4367
4594
  "spellCheck",
4368
4595
  "autoComplete"
4369
4596
  ]);
4370
- const generatedId = React78.useId();
4597
+ const generatedId = React80.useId();
4371
4598
  const inputId = id || generatedId;
4372
4599
  const captionId = `${inputId}-caption`;
4373
4600
  const hasError = !!error;
4374
4601
  const helperText = hasError ? error : caption;
4375
4602
  const hasInlineTags = !!(tags && tags.length > 0 && !hasError && !disabled);
4376
- const innerRef = React78.useRef(null);
4377
- React78.useImperativeHandle(ref, () => innerRef.current, []);
4378
- const [internalHasValue, setInternalHasValue] = React78.useState(false);
4603
+ const innerRef = React80.useRef(null);
4604
+ React80.useImperativeHandle(ref, () => innerRef.current, []);
4605
+ const [internalHasValue, setInternalHasValue] = React80.useState(false);
4379
4606
  const hasValue = clearable ? typeof value === "string" ? value.length > 0 : internalHasValue : false;
4380
4607
  const handleChange = (e) => {
4381
4608
  if (clearable && value === void 0) {
@@ -4587,8 +4814,7 @@ var InputField = React78.forwardRef(
4587
4814
  ),
4588
4815
  children: tailAddon
4589
4816
  }
4590
- ),
4591
- /* @__PURE__ */ jsx("div", { className: "pointer-events-none absolute inset-0 rounded-[inherit] shadow-inset-bottom" })
4817
+ )
4592
4818
  ]
4593
4819
  }
4594
4820
  ),
@@ -4607,7 +4833,7 @@ var InputField = React78.forwardRef(
4607
4833
  }
4608
4834
  );
4609
4835
  InputField.displayName = "InputField";
4610
- var DataRangeSliderInput = React78.forwardRef(
4836
+ var DataRangeSliderInput = React80.forwardRef(
4611
4837
  (_a, ref) => {
4612
4838
  var _b = _a, {
4613
4839
  className,
@@ -4727,7 +4953,7 @@ var DataRangeSliderInput = React78.forwardRef(
4727
4953
  DataRangeSliderInput.displayName = "DataRangeSliderInput";
4728
4954
  var Popover = PopoverPrimitive.Root;
4729
4955
  var PopoverTrigger = PopoverPrimitive.Trigger;
4730
- var PopoverContent = React78.forwardRef((_a, ref) => {
4956
+ var PopoverContent = React80.forwardRef((_a, ref) => {
4731
4957
  var _b = _a, { className, align = "center", sideOffset = 4 } = _b, props = __objRest(_b, ["className", "align", "sideOffset"]);
4732
4958
  return /* @__PURE__ */ jsx(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx(
4733
4959
  PopoverPrimitive.Content,
@@ -4750,7 +4976,7 @@ function DatePicker({
4750
4976
  className,
4751
4977
  disabled
4752
4978
  }) {
4753
- const [open, setOpen] = React78.useState(false);
4979
+ const [open, setOpen] = React80.useState(false);
4754
4980
  return /* @__PURE__ */ jsxs(Popover, { open, onOpenChange: setOpen, children: [
4755
4981
  /* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(
4756
4982
  Button,
@@ -4791,7 +5017,7 @@ function DateRangePicker({
4791
5017
  className,
4792
5018
  disabled
4793
5019
  }) {
4794
- const [open, setOpen] = React78.useState(false);
5020
+ const [open, setOpen] = React80.useState(false);
4795
5021
  return /* @__PURE__ */ jsxs(Popover, { open, onOpenChange: setOpen, children: [
4796
5022
  /* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(
4797
5023
  Button,
@@ -4842,7 +5068,7 @@ function DatePickerWithPresets({
4842
5068
  className,
4843
5069
  disabled
4844
5070
  }) {
4845
- const [open, setOpen] = React78.useState(false);
5071
+ const [open, setOpen] = React80.useState(false);
4846
5072
  return /* @__PURE__ */ jsxs(Popover, { open, onOpenChange: setOpen, children: [
4847
5073
  /* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(
4848
5074
  Button,
@@ -4963,7 +5189,7 @@ function RequirementItem({ label, met }) {
4963
5189
  )
4964
5190
  ] });
4965
5191
  }
4966
- var InputCaption = React78.forwardRef(
5192
+ var InputCaption = React80.forwardRef(
4967
5193
  (_a, ref) => {
4968
5194
  var _b = _a, {
4969
5195
  variant = "default",
@@ -5054,9 +5280,9 @@ var InputCaption = React78.forwardRef(
5054
5280
  className
5055
5281
  )
5056
5282
  }, props), {
5057
- children: React78.Children.map(children, (child) => {
5058
- if (!React78.isValidElement(child)) return child;
5059
- return React78.cloneElement(child, {
5283
+ children: React80.Children.map(children, (child) => {
5284
+ if (!React80.isValidElement(child)) return child;
5285
+ return React80.cloneElement(child, {
5060
5286
  className: cn(
5061
5287
  "flex-1",
5062
5288
  child.props.className
@@ -5332,38 +5558,38 @@ function DatePickerInput({
5332
5558
  disabled = false,
5333
5559
  className
5334
5560
  }) {
5335
- const [calendarOpen, setCalendarOpen] = React78.useState(false);
5561
+ const [calendarOpen, setCalendarOpen] = React80.useState(false);
5336
5562
  const hasError = !!error;
5337
5563
  const helperText = hasError ? error : caption;
5338
5564
  const singleSegments = dateToSegments(date);
5339
- const [singleDay, setSingleDay] = React78.useState(singleSegments.day);
5340
- const [singleMonth, setSingleMonth] = React78.useState(singleSegments.month);
5341
- const [singleYear, setSingleYear] = React78.useState(singleSegments.year);
5565
+ const [singleDay, setSingleDay] = React80.useState(singleSegments.day);
5566
+ const [singleMonth, setSingleMonth] = React80.useState(singleSegments.month);
5567
+ const [singleYear, setSingleYear] = React80.useState(singleSegments.year);
5342
5568
  const startSegments = dateToSegments(dateRange == null ? void 0 : dateRange.from);
5343
5569
  const endSegments = dateToSegments(dateRange == null ? void 0 : dateRange.to);
5344
- const [startDay, setStartDay] = React78.useState(startSegments.day);
5345
- const [startMonth, setStartMonth] = React78.useState(startSegments.month);
5346
- const [startYear, setStartYear] = React78.useState(startSegments.year);
5347
- const [endDay, setEndDay] = React78.useState(endSegments.day);
5348
- const [endMonth, setEndMonth] = React78.useState(endSegments.month);
5349
- const [endYear, setEndYear] = React78.useState(endSegments.year);
5350
- const singleDayRef = React78.useRef(null);
5351
- const singleMonthRef = React78.useRef(null);
5352
- const singleYearRef = React78.useRef(null);
5353
- const startDayRef = React78.useRef(null);
5354
- const startMonthRef = React78.useRef(null);
5355
- const startYearRef = React78.useRef(null);
5356
- const endDayRef = React78.useRef(null);
5357
- const endMonthRef = React78.useRef(null);
5358
- const endYearRef = React78.useRef(null);
5359
- const calendarIconRef = React78.useRef(null);
5360
- React78.useEffect(() => {
5570
+ const [startDay, setStartDay] = React80.useState(startSegments.day);
5571
+ const [startMonth, setStartMonth] = React80.useState(startSegments.month);
5572
+ const [startYear, setStartYear] = React80.useState(startSegments.year);
5573
+ const [endDay, setEndDay] = React80.useState(endSegments.day);
5574
+ const [endMonth, setEndMonth] = React80.useState(endSegments.month);
5575
+ const [endYear, setEndYear] = React80.useState(endSegments.year);
5576
+ const singleDayRef = React80.useRef(null);
5577
+ const singleMonthRef = React80.useRef(null);
5578
+ const singleYearRef = React80.useRef(null);
5579
+ const startDayRef = React80.useRef(null);
5580
+ const startMonthRef = React80.useRef(null);
5581
+ const startYearRef = React80.useRef(null);
5582
+ const endDayRef = React80.useRef(null);
5583
+ const endMonthRef = React80.useRef(null);
5584
+ const endYearRef = React80.useRef(null);
5585
+ const calendarIconRef = React80.useRef(null);
5586
+ React80.useEffect(() => {
5361
5587
  const s = dateToSegments(date);
5362
5588
  setSingleDay(s.day);
5363
5589
  setSingleMonth(s.month);
5364
5590
  setSingleYear(s.year);
5365
5591
  }, [date]);
5366
- React78.useEffect(() => {
5592
+ React80.useEffect(() => {
5367
5593
  const s = dateToSegments(dateRange == null ? void 0 : dateRange.from);
5368
5594
  setStartDay(s.day);
5369
5595
  setStartMonth(s.month);
@@ -5373,7 +5599,7 @@ function DatePickerInput({
5373
5599
  setEndMonth(e.month);
5374
5600
  setEndYear(e.year);
5375
5601
  }, [dateRange]);
5376
- const handleSingleSegmentChange = React78.useCallback(
5602
+ const handleSingleSegmentChange = React80.useCallback(
5377
5603
  (day, month, year) => {
5378
5604
  const d = segmentsToDate(day, month, year);
5379
5605
  if (day.length === 2 && month.length === 2 && year.length === 4) {
@@ -5384,7 +5610,7 @@ function DatePickerInput({
5384
5610
  },
5385
5611
  [onDateChange]
5386
5612
  );
5387
- const handleRangeSegmentChange = React78.useCallback(
5613
+ const handleRangeSegmentChange = React80.useCallback(
5388
5614
  (sd, sm, sy, ed, em, ey) => {
5389
5615
  const from = segmentsToDate(sd, sm, sy);
5390
5616
  const to = segmentsToDate(ed, em, ey);
@@ -5459,7 +5685,7 @@ function DatePickerInput({
5459
5685
  setCalendarOpen(false);
5460
5686
  }
5461
5687
  };
5462
- const inputId = React78.useId();
5688
+ const inputId = React80.useId();
5463
5689
  return /* @__PURE__ */ jsxs("div", { className: cn("flex w-full flex-col gap-2", className), children: [
5464
5690
  label && /* @__PURE__ */ jsx(Label, { htmlFor: inputId, children: label }),
5465
5691
  /* @__PURE__ */ jsxs(Popover, { open: calendarOpen, onOpenChange: setCalendarOpen, children: [
@@ -5645,7 +5871,7 @@ var lineVariants = cva("h-px min-w-0 flex-1 border-t border-sui-border-default",
5645
5871
  lineStyle: "solid"
5646
5872
  }
5647
5873
  });
5648
- var Divider = React78.forwardRef(
5874
+ var Divider = React80.forwardRef(
5649
5875
  (_a, ref) => {
5650
5876
  var _b = _a, {
5651
5877
  className,
@@ -5720,7 +5946,7 @@ var Divider = React78.forwardRef(
5720
5946
  }
5721
5947
  );
5722
5948
  Divider.displayName = "Divider";
5723
- var MenuSearchInput = React78.forwardRef(
5949
+ var MenuSearchInput = React80.forwardRef(
5724
5950
  (_a, ref) => {
5725
5951
  var _b = _a, {
5726
5952
  className,
@@ -5742,15 +5968,15 @@ var MenuSearchInput = React78.forwardRef(
5742
5968
  "id"
5743
5969
  ]);
5744
5970
  var _a2, _b2;
5745
- const internalRef = React78.useRef(null);
5971
+ const internalRef = React80.useRef(null);
5746
5972
  const inputRef = ref || internalRef;
5747
- const [internalValue, setInternalValue] = React78.useState(
5973
+ const [internalValue, setInternalValue] = React80.useState(
5748
5974
  defaultValue || ""
5749
5975
  );
5750
5976
  const isControlled = value !== void 0;
5751
5977
  const currentValue = isControlled ? String(value) : internalValue;
5752
5978
  const hasValue = currentValue.length > 0;
5753
- const generatedId = React78.useId();
5979
+ const generatedId = React80.useId();
5754
5980
  const inputId = id || generatedId;
5755
5981
  const handleChange = (e) => {
5756
5982
  var _a3;
@@ -5769,7 +5995,7 @@ var MenuSearchInput = React78.forwardRef(
5769
5995
  (_a3 = inputRef.current) == null ? void 0 : _a3.focus();
5770
5996
  }
5771
5997
  };
5772
- const [isFocused, setIsFocused] = React78.useState(false);
5998
+ const [isFocused, setIsFocused] = React80.useState(false);
5773
5999
  const showShortcut = !!shortcutKey && !hasValue && !isFocused && !disabled;
5774
6000
  const handleFocus = (e) => {
5775
6001
  var _a3;
@@ -5883,7 +6109,7 @@ var DropdownMenuGroup = DropdownMenuPrimitive.Group;
5883
6109
  var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
5884
6110
  var DropdownMenuSub = DropdownMenuPrimitive.Sub;
5885
6111
  var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
5886
- var DropdownMenuSubTrigger = React78.forwardRef((_a, ref) => {
6112
+ var DropdownMenuSubTrigger = React80.forwardRef((_a, ref) => {
5887
6113
  var _b = _a, { className, inset, children } = _b, props = __objRest(_b, ["className", "inset", "children"]);
5888
6114
  return /* @__PURE__ */ jsxs(
5889
6115
  DropdownMenuPrimitive.SubTrigger,
@@ -5907,7 +6133,7 @@ var DropdownMenuSubTrigger = React78.forwardRef((_a, ref) => {
5907
6133
  );
5908
6134
  });
5909
6135
  DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
5910
- var DropdownMenuSubContent = React78.forwardRef((_a, ref) => {
6136
+ var DropdownMenuSubContent = React80.forwardRef((_a, ref) => {
5911
6137
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
5912
6138
  return /* @__PURE__ */ jsx(
5913
6139
  DropdownMenuPrimitive.SubContent,
@@ -5922,7 +6148,7 @@ var DropdownMenuSubContent = React78.forwardRef((_a, ref) => {
5922
6148
  );
5923
6149
  });
5924
6150
  DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
5925
- var DropdownMenuContent = React78.forwardRef((_a, ref) => {
6151
+ var DropdownMenuContent = React80.forwardRef((_a, ref) => {
5926
6152
  var _b = _a, { className, sideOffset = 4, search, searchValue, onSearchChange, onSearchClear, searchPlaceholder = "Search", children } = _b, props = __objRest(_b, ["className", "sideOffset", "search", "searchValue", "onSearchChange", "onSearchClear", "searchPlaceholder", "children"]);
5927
6153
  return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(
5928
6154
  DropdownMenuPrimitive.Content,
@@ -5960,7 +6186,7 @@ var DropdownMenuContent = React78.forwardRef((_a, ref) => {
5960
6186
  ) });
5961
6187
  });
5962
6188
  DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
5963
- var DropdownMenuItem = React78.forwardRef((_a, ref) => {
6189
+ var DropdownMenuItem = React80.forwardRef((_a, ref) => {
5964
6190
  var _b = _a, { className, inset, variant = "default" } = _b, props = __objRest(_b, ["className", "inset", "variant"]);
5965
6191
  return /* @__PURE__ */ jsx(
5966
6192
  DropdownMenuPrimitive.Item,
@@ -5981,7 +6207,7 @@ var DropdownMenuItem = React78.forwardRef((_a, ref) => {
5981
6207
  );
5982
6208
  });
5983
6209
  DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
5984
- var DropdownMenuCheckboxItem = React78.forwardRef((_a, ref) => {
6210
+ var DropdownMenuCheckboxItem = React80.forwardRef((_a, ref) => {
5985
6211
  var _b = _a, { className, children, checked } = _b, props = __objRest(_b, ["className", "children", "checked"]);
5986
6212
  return /* @__PURE__ */ jsxs(
5987
6213
  DropdownMenuPrimitive.CheckboxItem,
@@ -6003,7 +6229,7 @@ var DropdownMenuCheckboxItem = React78.forwardRef((_a, ref) => {
6003
6229
  );
6004
6230
  });
6005
6231
  DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
6006
- var DropdownMenuRadioItem = React78.forwardRef((_a, ref) => {
6232
+ var DropdownMenuRadioItem = React80.forwardRef((_a, ref) => {
6007
6233
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
6008
6234
  return /* @__PURE__ */ jsxs(
6009
6235
  DropdownMenuPrimitive.RadioItem,
@@ -6024,7 +6250,7 @@ var DropdownMenuRadioItem = React78.forwardRef((_a, ref) => {
6024
6250
  );
6025
6251
  });
6026
6252
  DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
6027
- var DropdownMenuLabel = React78.forwardRef((_a, ref) => {
6253
+ var DropdownMenuLabel = React80.forwardRef((_a, ref) => {
6028
6254
  var _b = _a, { className, inset } = _b, props = __objRest(_b, ["className", "inset"]);
6029
6255
  return /* @__PURE__ */ jsx(
6030
6256
  DropdownMenuPrimitive.Label,
@@ -6039,7 +6265,7 @@ var DropdownMenuLabel = React78.forwardRef((_a, ref) => {
6039
6265
  );
6040
6266
  });
6041
6267
  DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
6042
- var DropdownMenuSeparator = React78.forwardRef((_a, ref) => {
6268
+ var DropdownMenuSeparator = React80.forwardRef((_a, ref) => {
6043
6269
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6044
6270
  return /* @__PURE__ */ jsx(
6045
6271
  DropdownMenuPrimitive.Separator,
@@ -6068,7 +6294,7 @@ var DropdownMenuShortcut = (_a) => {
6068
6294
  );
6069
6295
  };
6070
6296
  DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
6071
- var DropdownMenuCaption = React78.forwardRef((_a, ref) => {
6297
+ var DropdownMenuCaption = React80.forwardRef((_a, ref) => {
6072
6298
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6073
6299
  return /* @__PURE__ */ jsx(
6074
6300
  "p",
@@ -6083,7 +6309,7 @@ var DropdownMenuCaption = React78.forwardRef((_a, ref) => {
6083
6309
  );
6084
6310
  });
6085
6311
  DropdownMenuCaption.displayName = "DropdownMenuCaption";
6086
- var DropdownMenuUserbar = React78.forwardRef((_a, ref) => {
6312
+ var DropdownMenuUserbar = React80.forwardRef((_a, ref) => {
6087
6313
  var _b = _a, { className, name, email, avatar, badge } = _b, props = __objRest(_b, ["className", "name", "email", "avatar", "badge"]);
6088
6314
  return /* @__PURE__ */ jsxs(
6089
6315
  "div",
@@ -6108,7 +6334,7 @@ var DropdownMenuUserbar = React78.forwardRef((_a, ref) => {
6108
6334
  );
6109
6335
  });
6110
6336
  DropdownMenuUserbar.displayName = "DropdownMenuUserbar";
6111
- var DropdownMenuLargeItem = React78.forwardRef((_a, ref) => {
6337
+ var DropdownMenuLargeItem = React80.forwardRef((_a, ref) => {
6112
6338
  var _b = _a, { className, label, caption, icon, badge, tailIcon } = _b, props = __objRest(_b, ["className", "label", "caption", "icon", "badge", "tailIcon"]);
6113
6339
  return /* @__PURE__ */ jsxs(
6114
6340
  DropdownMenuPrimitive.Item,
@@ -6149,7 +6375,7 @@ var emptyStateVariants = cva(
6149
6375
  }
6150
6376
  }
6151
6377
  );
6152
- var EmptyState = React78.forwardRef(
6378
+ var EmptyState = React80.forwardRef(
6153
6379
  (_a, ref) => {
6154
6380
  var _b = _a, {
6155
6381
  className,
@@ -6215,7 +6441,7 @@ function EmptyStateText({
6215
6441
  /* @__PURE__ */ jsx("p", { className: "text-xs leading-4 text-sui-text-muted w-full", children: description })
6216
6442
  ] });
6217
6443
  }
6218
- var FileUploadArea = React78.forwardRef(
6444
+ var FileUploadArea = React80.forwardRef(
6219
6445
  (_a, ref) => {
6220
6446
  var _b = _a, {
6221
6447
  className,
@@ -6240,8 +6466,8 @@ var FileUploadArea = React78.forwardRef(
6240
6466
  "onDrop",
6241
6467
  "onDragOver"
6242
6468
  ]);
6243
- const [isDragOver, setIsDragOver] = React78.useState(false);
6244
- const handleDragOver = React78.useCallback(
6469
+ const [isDragOver, setIsDragOver] = React80.useState(false);
6470
+ const handleDragOver = React80.useCallback(
6245
6471
  (e) => {
6246
6472
  if (disabled) return;
6247
6473
  e.preventDefault();
@@ -6250,10 +6476,10 @@ var FileUploadArea = React78.forwardRef(
6250
6476
  },
6251
6477
  [disabled, onDragOver]
6252
6478
  );
6253
- const handleDragLeave = React78.useCallback(() => {
6479
+ const handleDragLeave = React80.useCallback(() => {
6254
6480
  setIsDragOver(false);
6255
6481
  }, []);
6256
- const handleDrop = React78.useCallback(
6482
+ const handleDrop = React80.useCallback(
6257
6483
  (e) => {
6258
6484
  if (disabled) return;
6259
6485
  e.preventDefault();
@@ -6262,11 +6488,11 @@ var FileUploadArea = React78.forwardRef(
6262
6488
  },
6263
6489
  [disabled, onDrop]
6264
6490
  );
6265
- const handleClick = React78.useCallback(() => {
6491
+ const handleClick = React80.useCallback(() => {
6266
6492
  if (disabled) return;
6267
6493
  onClick == null ? void 0 : onClick();
6268
6494
  }, [disabled, onClick]);
6269
- const handleKeyDown = React78.useCallback(
6495
+ const handleKeyDown = React80.useCallback(
6270
6496
  (e) => {
6271
6497
  if (disabled) return;
6272
6498
  if (e.key === "Enter" || e.key === " ") {
@@ -6382,7 +6608,7 @@ var progressBarVariants = cva(
6382
6608
  }
6383
6609
  );
6384
6610
  var SEGMENT_COUNT = 10;
6385
- var ProgressBar = React78.forwardRef(
6611
+ var ProgressBar = React80.forwardRef(
6386
6612
  (_a, ref) => {
6387
6613
  var _b = _a, {
6388
6614
  className,
@@ -6404,7 +6630,7 @@ var ProgressBar = React78.forwardRef(
6404
6630
  const clampedValue = Math.min(100, Math.max(0, value != null ? value : 0));
6405
6631
  const displayPercentage = `${Math.round(clampedValue)}%`;
6406
6632
  const filledSegments = Math.round(clampedValue / 100 * SEGMENT_COUNT);
6407
- const generatedId = React78.useId();
6633
+ const generatedId = React80.useId();
6408
6634
  const labelId = `${generatedId}-label`;
6409
6635
  return /* @__PURE__ */ jsxs(
6410
6636
  "div",
@@ -6490,7 +6716,7 @@ var statusLabel = {
6490
6716
  uploading: "Uploading...",
6491
6717
  failed: "Error"
6492
6718
  };
6493
- var FileUploadCard = React78.forwardRef(
6719
+ var FileUploadCard = React80.forwardRef(
6494
6720
  (_a, ref) => {
6495
6721
  var _b = _a, {
6496
6722
  className,
@@ -6702,7 +6928,7 @@ var lineColorMap = {
6702
6928
  warning: "bg-sui-bg-basic-orange-accent",
6703
6929
  error: "bg-sui-bg-basic-red-accent"
6704
6930
  };
6705
- var InlineTips = React78.forwardRef(
6931
+ var InlineTips = React80.forwardRef(
6706
6932
  (_a, ref) => {
6707
6933
  var _b = _a, {
6708
6934
  className,
@@ -6833,7 +7059,7 @@ function validateFile(file, accept, maxSize) {
6833
7059
  }
6834
7060
  return null;
6835
7061
  }
6836
- var FileUpload = React78.forwardRef(
7062
+ var FileUpload = React80.forwardRef(
6837
7063
  ({
6838
7064
  files = [],
6839
7065
  onFilesAdded,
@@ -6854,16 +7080,16 @@ var FileUpload = React78.forwardRef(
6854
7080
  icon,
6855
7081
  className
6856
7082
  }, ref) => {
6857
- const inputRef = React78.useRef(null);
6858
- const [errors, setErrors] = React78.useState([]);
6859
- const [thumbnails, setThumbnails] = React78.useState(
7083
+ const inputRef = React80.useRef(null);
7084
+ const [errors, setErrors] = React80.useState([]);
7085
+ const [thumbnails, setThumbnails] = React80.useState(
6860
7086
  {}
6861
7087
  );
6862
- const thumbnailsRef = React78.useRef(thumbnails);
6863
- React78.useEffect(() => {
7088
+ const thumbnailsRef = React80.useRef(thumbnails);
7089
+ React80.useEffect(() => {
6864
7090
  thumbnailsRef.current = thumbnails;
6865
7091
  }, [thumbnails]);
6866
- React78.useEffect(() => {
7092
+ React80.useEffect(() => {
6867
7093
  if (!autoPreview) return;
6868
7094
  setThumbnails((prev) => {
6869
7095
  let next = prev;
@@ -6894,7 +7120,7 @@ var FileUpload = React78.forwardRef(
6894
7120
  return changed ? next : prev;
6895
7121
  });
6896
7122
  }, [files, autoPreview]);
6897
- React78.useEffect(() => {
7123
+ React80.useEffect(() => {
6898
7124
  return () => {
6899
7125
  for (const url of Object.values(thumbnailsRef.current)) {
6900
7126
  URL.revokeObjectURL(url);
@@ -6902,7 +7128,7 @@ var FileUpload = React78.forwardRef(
6902
7128
  };
6903
7129
  }, []);
6904
7130
  const resolvedDescription = description != null ? description : generateDescription(accept, maxSize, maxFiles);
6905
- const processFiles = React78.useCallback(
7131
+ const processFiles = React80.useCallback(
6906
7132
  (fileList) => {
6907
7133
  const newFiles = Array.from(fileList);
6908
7134
  const validationErrors = [];
@@ -6930,11 +7156,11 @@ var FileUpload = React78.forwardRef(
6930
7156
  },
6931
7157
  [files.length, maxFiles, accept, maxSize, onFilesAdded]
6932
7158
  );
6933
- const handleClick = React78.useCallback(() => {
7159
+ const handleClick = React80.useCallback(() => {
6934
7160
  var _a;
6935
7161
  (_a = inputRef.current) == null ? void 0 : _a.click();
6936
7162
  }, []);
6937
- const handleInputChange = React78.useCallback(
7163
+ const handleInputChange = React80.useCallback(
6938
7164
  (e) => {
6939
7165
  if (e.target.files && e.target.files.length > 0) {
6940
7166
  processFiles(e.target.files);
@@ -6943,7 +7169,7 @@ var FileUpload = React78.forwardRef(
6943
7169
  },
6944
7170
  [processFiles]
6945
7171
  );
6946
- const handleDrop = React78.useCallback(
7172
+ const handleDrop = React80.useCallback(
6947
7173
  (e) => {
6948
7174
  if (e.dataTransfer.files && e.dataTransfer.files.length > 0) {
6949
7175
  processFiles(e.dataTransfer.files);
@@ -6951,10 +7177,10 @@ var FileUpload = React78.forwardRef(
6951
7177
  },
6952
7178
  [processFiles]
6953
7179
  );
6954
- const dismissError = React78.useCallback((index) => {
7180
+ const dismissError = React80.useCallback((index) => {
6955
7181
  setErrors((prev) => prev.filter((_, i) => i !== index));
6956
7182
  }, []);
6957
- const handlePaste = React78.useCallback(
7183
+ const handlePaste = React80.useCallback(
6958
7184
  (e) => {
6959
7185
  var _a;
6960
7186
  if (disabled || !pasteEnabled) return;
@@ -6975,7 +7201,7 @@ var FileUpload = React78.forwardRef(
6975
7201
  },
6976
7202
  [disabled, pasteEnabled, processFiles]
6977
7203
  );
6978
- const handleCancel = React78.useCallback(
7204
+ const handleCancel = React80.useCallback(
6979
7205
  (id) => {
6980
7206
  const uploadFile = files.find((f) => f.id === id);
6981
7207
  if (uploadFile == null ? void 0 : uploadFile.abortController) {
@@ -7092,7 +7318,7 @@ var ariaSortMap = {
7092
7318
  desc: "descending",
7093
7319
  none: "none"
7094
7320
  };
7095
- var GridTableHeaderItem = React78.forwardRef(
7321
+ var GridTableHeaderItem = React80.forwardRef(
7096
7322
  (_a, ref) => {
7097
7323
  var _b = _a, {
7098
7324
  className,
@@ -7194,7 +7420,7 @@ var gridTableRowVariants = cva(
7194
7420
  }
7195
7421
  }
7196
7422
  );
7197
- var GridTableRow = React78.forwardRef(
7423
+ var GridTableRow = React80.forwardRef(
7198
7424
  (_a, ref) => {
7199
7425
  var _b = _a, { className, variant = "default", children } = _b, props = __objRest(_b, ["className", "variant", "children"]);
7200
7426
  return /* @__PURE__ */ jsx(
@@ -7210,7 +7436,7 @@ var GridTableRow = React78.forwardRef(
7210
7436
  }
7211
7437
  );
7212
7438
  GridTableRow.displayName = "GridTableRow";
7213
- var GridTableCell = React78.forwardRef(
7439
+ var GridTableCell = React80.forwardRef(
7214
7440
  (_a, ref) => {
7215
7441
  var _b = _a, { className, bordered = true, children } = _b, props = __objRest(_b, ["className", "bordered", "children"]);
7216
7442
  return /* @__PURE__ */ jsx(
@@ -7254,7 +7480,7 @@ var gridTableSlotItemVariants = cva(
7254
7480
  }
7255
7481
  }
7256
7482
  );
7257
- var GridTableSlotItem = React78.forwardRef(
7483
+ var GridTableSlotItem = React80.forwardRef(
7258
7484
  (_a, ref) => {
7259
7485
  var _b = _a, {
7260
7486
  className,
@@ -7402,7 +7628,7 @@ var stepperNumberVariants = cva(
7402
7628
  }
7403
7629
  }
7404
7630
  );
7405
- var StepperNumber = React78.forwardRef(
7631
+ var StepperNumber = React80.forwardRef(
7406
7632
  (_a, ref) => {
7407
7633
  var _b = _a, { className, size, color, number = "1" } = _b, props = __objRest(_b, ["className", "size", "color", "number"]);
7408
7634
  return /* @__PURE__ */ jsxs(
@@ -7441,7 +7667,7 @@ var stepperIconVariants = cva(
7441
7667
  }
7442
7668
  }
7443
7669
  );
7444
- var StepperIcon = React78.forwardRef(
7670
+ var StepperIcon = React80.forwardRef(
7445
7671
  (_a, ref) => {
7446
7672
  var _b = _a, { className, variant = "dot-large", icon } = _b, props = __objRest(_b, ["className", "variant", "icon"]);
7447
7673
  return /* @__PURE__ */ jsxs(
@@ -7495,7 +7721,7 @@ function ConnectorLine({ success }) {
7495
7721
  }
7496
7722
  );
7497
7723
  }
7498
- var HorizontalStepperItem = React78.forwardRef(
7724
+ var HorizontalStepperItem = React80.forwardRef(
7499
7725
  (_a, ref) => {
7500
7726
  var _b = _a, {
7501
7727
  className,
@@ -7620,7 +7846,7 @@ var HorizontalStepperItem = React78.forwardRef(
7620
7846
  }
7621
7847
  );
7622
7848
  HorizontalStepperItem.displayName = "HorizontalStepperItem";
7623
- var HorizontalStepper = React78.forwardRef(
7849
+ var HorizontalStepper = React80.forwardRef(
7624
7850
  (_a, ref) => {
7625
7851
  var _b = _a, {
7626
7852
  className,
@@ -7695,7 +7921,7 @@ var HorizontalStepper = React78.forwardRef(
7695
7921
  }
7696
7922
  );
7697
7923
  HorizontalStepper.displayName = "HorizontalStepper";
7698
- var Input = React78.forwardRef(
7924
+ var Input = React80.forwardRef(
7699
7925
  (_a, ref) => {
7700
7926
  var _b = _a, { className, type, spellCheck, autoComplete } = _b, props = __objRest(_b, ["className", "type", "spellCheck", "autoComplete"]);
7701
7927
  return /* @__PURE__ */ jsx(
@@ -7788,7 +8014,7 @@ var inputButtonVariants = cva(
7788
8014
  }
7789
8015
  );
7790
8016
  var iconOnlyHoverClasses = "[@media(hover:hover)]:hover:[&_i]:text-icon-default-subtle [@media(hover:hover)]:hover:[&_svg]:text-icon-default-subtle active:[&_i]:text-icon-default-subtle active:[&_svg]:text-icon-default-subtle";
7791
- var InputButton = React78.forwardRef(
8017
+ var InputButton = React80.forwardRef(
7792
8018
  (_a, ref) => {
7793
8019
  var _b = _a, {
7794
8020
  className,
@@ -7920,7 +8146,7 @@ var InputButton = React78.forwardRef(
7920
8146
  }
7921
8147
  );
7922
8148
  InputButton.displayName = "InputButton";
7923
- var InputStepper = React78.forwardRef(
8149
+ var InputStepper = React80.forwardRef(
7924
8150
  ({ onIncrement, onDecrement, disabled, className }, ref) => {
7925
8151
  return /* @__PURE__ */ jsxs(
7926
8152
  "div",
@@ -7977,7 +8203,7 @@ var InputStepper = React78.forwardRef(
7977
8203
  }
7978
8204
  );
7979
8205
  InputStepper.displayName = "InputStepper";
7980
- var NavigationMenu = React78.forwardRef((_a, ref) => {
8206
+ var NavigationMenu = React80.forwardRef((_a, ref) => {
7981
8207
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
7982
8208
  return /* @__PURE__ */ jsxs(
7983
8209
  NavigationMenuPrimitive.Root,
@@ -7996,7 +8222,7 @@ var NavigationMenu = React78.forwardRef((_a, ref) => {
7996
8222
  );
7997
8223
  });
7998
8224
  NavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;
7999
- var NavigationMenuList = React78.forwardRef((_a, ref) => {
8225
+ var NavigationMenuList = React80.forwardRef((_a, ref) => {
8000
8226
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
8001
8227
  return /* @__PURE__ */ jsx(
8002
8228
  NavigationMenuPrimitive.List,
@@ -8014,7 +8240,7 @@ var NavigationMenuItem = NavigationMenuPrimitive.Item;
8014
8240
  var navigationMenuTriggerStyle = cva(
8015
8241
  "group inline-flex h-10 w-max items-center justify-center rounded-md bg-transparent px-4 py-2 text-sm font-medium text-sui-text-default transition-colors [@media(hover:hover)]:hover:bg-sui-bg-state-ghost-hover [@media(hover:hover)]:hover:text-sui-text-default focus:bg-sui-bg-state-ghost-hover focus:text-sui-text-default focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sui-border-highlight focus-visible:ring-offset-2 focus-visible:ring-offset-sui-bg-default disabled:text-sui-text-hint disabled:pointer-events-none data-[state=open]:text-sui-text-default data-[state=open]:bg-sui-bg-state-ghost-hover"
8016
8242
  );
8017
- var NavigationMenuTrigger = React78.forwardRef((_a, ref) => {
8243
+ var NavigationMenuTrigger = React80.forwardRef((_a, ref) => {
8018
8244
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
8019
8245
  return /* @__PURE__ */ jsxs(
8020
8246
  NavigationMenuPrimitive.Trigger,
@@ -8037,7 +8263,7 @@ var NavigationMenuTrigger = React78.forwardRef((_a, ref) => {
8037
8263
  );
8038
8264
  });
8039
8265
  NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
8040
- var NavigationMenuContent = React78.forwardRef((_a, ref) => {
8266
+ var NavigationMenuContent = React80.forwardRef((_a, ref) => {
8041
8267
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
8042
8268
  return /* @__PURE__ */ jsx(
8043
8269
  NavigationMenuPrimitive.Content,
@@ -8052,7 +8278,7 @@ var NavigationMenuContent = React78.forwardRef((_a, ref) => {
8052
8278
  });
8053
8279
  NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
8054
8280
  var NavigationMenuLink = NavigationMenuPrimitive.Link;
8055
- var NavigationMenuViewport = React78.forwardRef((_a, ref) => {
8281
+ var NavigationMenuViewport = React80.forwardRef((_a, ref) => {
8056
8282
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
8057
8283
  return /* @__PURE__ */ jsx("div", { className: cn("absolute left-0 top-full flex justify-center"), children: /* @__PURE__ */ jsx(
8058
8284
  NavigationMenuPrimitive.Viewport,
@@ -8066,7 +8292,7 @@ var NavigationMenuViewport = React78.forwardRef((_a, ref) => {
8066
8292
  ) });
8067
8293
  });
8068
8294
  NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
8069
- var NavigationMenuIndicator = React78.forwardRef((_a, ref) => {
8295
+ var NavigationMenuIndicator = React80.forwardRef((_a, ref) => {
8070
8296
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
8071
8297
  return /* @__PURE__ */ jsx(
8072
8298
  NavigationMenuPrimitive.Indicator,
@@ -8128,16 +8354,16 @@ var pageItemVariants = cva(
8128
8354
  );
8129
8355
  var activeDefaultClasses = [
8130
8356
  "bg-sui-bg-state-ghost",
8131
- // Blue text/border: uses bg-basic-blue tokens because text-informative shifts to orange in Theme 2
8132
- "text-sui-bg-basic-blue-strong",
8133
- "border border-sui-bg-basic-blue-accent",
8134
- "[@media(hover:hover)]:hover:bg-sui-bg-state-ghost [@media(hover:hover)]:hover:text-sui-bg-basic-blue-strong"
8357
+ // Semantic accent tokens shift blue orange in Theme 2, matching the theme's accent color
8358
+ "text-sui-text-informative",
8359
+ "border border-sui-border-informative",
8360
+ "[@media(hover:hover)]:hover:bg-sui-bg-state-ghost [@media(hover:hover)]:hover:text-sui-text-informative"
8135
8361
  ].join(" ");
8136
8362
  var activeDotClasses = [
8137
- "bg-sui-bg-basic-blue-accent",
8138
- "[@media(hover:hover)]:hover:bg-sui-bg-basic-blue-accent"
8363
+ "bg-informative",
8364
+ "[@media(hover:hover)]:hover:bg-informative"
8139
8365
  ].join(" ");
8140
- var PageItem = React78.forwardRef(
8366
+ var PageItem = React80.forwardRef(
8141
8367
  (_a, ref) => {
8142
8368
  var _b = _a, { className, variant = "default", active = false, label = "0", disabled, asChild = false } = _b, props = __objRest(_b, ["className", "variant", "active", "label", "disabled", "asChild"]);
8143
8369
  const Comp = asChild ? Slot : "button";
@@ -8172,7 +8398,7 @@ var Pagination = (_a) => {
8172
8398
  );
8173
8399
  };
8174
8400
  Pagination.displayName = "Pagination";
8175
- var PaginationContent = React78.forwardRef((_a, ref) => {
8401
+ var PaginationContent = React80.forwardRef((_a, ref) => {
8176
8402
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
8177
8403
  return /* @__PURE__ */ jsx(
8178
8404
  "ul",
@@ -8183,7 +8409,7 @@ var PaginationContent = React78.forwardRef((_a, ref) => {
8183
8409
  );
8184
8410
  });
8185
8411
  PaginationContent.displayName = "PaginationContent";
8186
- var PaginationItem = React78.forwardRef((_a, ref) => {
8412
+ var PaginationItem = React80.forwardRef((_a, ref) => {
8187
8413
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
8188
8414
  return /* @__PURE__ */ jsx("li", __spreadValues({ ref, className: cn("", className) }, props));
8189
8415
  });
@@ -8304,7 +8530,7 @@ function getPageRange(currentPage, totalPages, maxVisible) {
8304
8530
  }
8305
8531
  return pages;
8306
8532
  }
8307
- var Paginator = React78.forwardRef(
8533
+ var Paginator = React80.forwardRef(
8308
8534
  (_a, ref) => {
8309
8535
  var _b = _a, {
8310
8536
  className,
@@ -8484,7 +8710,236 @@ var Paginator = React78.forwardRef(
8484
8710
  }
8485
8711
  );
8486
8712
  Paginator.displayName = "Paginator";
8487
- var Progress = React78.forwardRef((_a, ref) => {
8713
+ var CoverImage = ({
8714
+ src,
8715
+ className,
8716
+ imageClassName
8717
+ }) => /* @__PURE__ */ jsx("div", { className: cn("relative overflow-clip", className), children: src ? /* @__PURE__ */ jsx(
8718
+ "img",
8719
+ {
8720
+ src,
8721
+ alt: "",
8722
+ className: cn("absolute inset-0 size-full object-cover", imageClassName)
8723
+ }
8724
+ ) : /* @__PURE__ */ jsx("div", { className: "absolute inset-0 bg-sui-bg-muted" }) });
8725
+ var TitleRow = ({ title, price }) => /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between font-medium text-md leading-6 text-sui-text-default", children: [
8726
+ /* @__PURE__ */ jsx("span", { children: title }),
8727
+ price && /* @__PURE__ */ jsx("span", { children: price })
8728
+ ] });
8729
+ var DateRow = ({
8730
+ date,
8731
+ prefix = "Added"
8732
+ }) => date ? /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1.5 text-sm font-normal leading-5 text-sui-text-muted", children: [
8733
+ /* @__PURE__ */ jsx("span", { children: prefix }),
8734
+ /* @__PURE__ */ jsx("span", { children: date })
8735
+ ] }) : null;
8736
+ var TagList = ({ tags }) => /* @__PURE__ */ jsx("div", { className: "flex flex-wrap gap-2", children: tags.map((tag) => /* @__PURE__ */ jsx(Badge, { size: "sm", children: tag }, tag)) });
8737
+ var ProductCard = React80.forwardRef(
8738
+ (_a, ref) => {
8739
+ var _b = _a, {
8740
+ className,
8741
+ variant = "minimal",
8742
+ title = "Product name",
8743
+ price,
8744
+ image,
8745
+ date,
8746
+ description,
8747
+ tags,
8748
+ author,
8749
+ rating,
8750
+ ctaLabel = "Add to cart",
8751
+ onCta,
8752
+ thumbnail
8753
+ } = _b, props = __objRest(_b, [
8754
+ "className",
8755
+ "variant",
8756
+ "title",
8757
+ "price",
8758
+ "image",
8759
+ "date",
8760
+ "description",
8761
+ "tags",
8762
+ "author",
8763
+ "rating",
8764
+ "ctaLabel",
8765
+ "onCta",
8766
+ "thumbnail"
8767
+ ]);
8768
+ if (variant === "minimal") {
8769
+ return /* @__PURE__ */ jsxs(
8770
+ "div",
8771
+ __spreadProps(__spreadValues({
8772
+ ref,
8773
+ className: cn("flex flex-col gap-3", className)
8774
+ }, props), {
8775
+ children: [
8776
+ /* @__PURE__ */ jsxs("div", { className: "relative aspect-[3/2] w-full overflow-clip rounded-lg border border-sui-border-darker shadow-card", children: [
8777
+ /* @__PURE__ */ jsx(CoverImage, { src: image, className: "absolute inset-0", imageClassName: "rounded-lg" }),
8778
+ rating && rating > 0 ? /* @__PURE__ */ jsxs("div", { className: "absolute right-[9px] top-[9px] flex items-center gap-0 overflow-clip rounded-md border border-sui-border-default bg-sui-bg-badge-default px-1 py-1 backdrop-blur-[2px]", children: [
8779
+ /* @__PURE__ */ jsx("i", { className: "ri-star-fill text-xs leading-none text-icon-default-muted", "aria-hidden": "true" }),
8780
+ /* @__PURE__ */ jsx("span", { className: "pl-0.5 pr-1 text-xs font-medium leading-4 text-sui-text-subtle", children: rating })
8781
+ ] }) : null,
8782
+ /* @__PURE__ */ jsx("div", { className: "pointer-events-none absolute inset-0 rounded-[inherit] shadow-inset-bottom-strong" })
8783
+ ] }),
8784
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1", children: [
8785
+ /* @__PURE__ */ jsx(TitleRow, { title, price }),
8786
+ date && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1.5 text-sm font-normal leading-5 text-sui-text-muted", children: [
8787
+ /* @__PURE__ */ jsx("span", { children: "Added" }),
8788
+ /* @__PURE__ */ jsx("span", { children: date })
8789
+ ] })
8790
+ ] })
8791
+ ]
8792
+ })
8793
+ );
8794
+ }
8795
+ if (variant === "featured") {
8796
+ return /* @__PURE__ */ jsxs(
8797
+ "div",
8798
+ __spreadProps(__spreadValues({
8799
+ ref,
8800
+ className: cn(
8801
+ "relative flex flex-col gap-3 rounded-xl border border-sui-border-darker bg-sui-bg-card p-4 shadow-card",
8802
+ className
8803
+ )
8804
+ }, props), {
8805
+ children: [
8806
+ /* @__PURE__ */ jsx("div", { className: "relative aspect-[3/2] w-full overflow-clip rounded-sm border border-sui-border-darker", children: /* @__PURE__ */ jsx(CoverImage, { src: image, className: "absolute inset-0" }) }),
8807
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-4", children: [
8808
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1", children: [
8809
+ /* @__PURE__ */ jsx(TitleRow, { title, price }),
8810
+ /* @__PURE__ */ jsx(DateRow, { date })
8811
+ ] }),
8812
+ /* @__PURE__ */ jsx(Divider, {}),
8813
+ tags && tags.length > 0 && /* @__PURE__ */ jsx(TagList, { tags }),
8814
+ /* @__PURE__ */ jsxs(Button, { size: "md", className: "w-full", onClick: onCta, children: [
8815
+ /* @__PURE__ */ jsx("i", { className: "ri-shopping-cart-2-line", "aria-hidden": "true" }),
8816
+ ctaLabel
8817
+ ] })
8818
+ ] }),
8819
+ /* @__PURE__ */ jsx("div", { className: "pointer-events-none absolute inset-0 rounded-[inherit] shadow-inset-bottom-strong" })
8820
+ ]
8821
+ })
8822
+ );
8823
+ }
8824
+ if (variant === "detailed") {
8825
+ return /* @__PURE__ */ jsxs(
8826
+ "div",
8827
+ __spreadProps(__spreadValues({
8828
+ ref,
8829
+ className: cn(
8830
+ "relative flex flex-col overflow-clip rounded-xl border border-sui-border-darker bg-sui-bg-card shadow-card",
8831
+ className
8832
+ )
8833
+ }, props), {
8834
+ children: [
8835
+ /* @__PURE__ */ jsx("div", { className: "relative aspect-[5/3] w-full shrink-0 border-b border-sui-border-darker", children: /* @__PURE__ */ jsx(CoverImage, { src: image, className: "absolute inset-0" }) }),
8836
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-4 p-4", children: [
8837
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1", children: [
8838
+ /* @__PURE__ */ jsx(TitleRow, { title, price }),
8839
+ /* @__PURE__ */ jsx(DateRow, { date })
8840
+ ] }),
8841
+ /* @__PURE__ */ jsx(Divider, {}),
8842
+ description && /* @__PURE__ */ jsx("p", { className: "text-sm font-normal leading-5 text-sui-text-muted", children: description }),
8843
+ /* @__PURE__ */ jsx(Divider, {}),
8844
+ tags && tags.length > 0 && /* @__PURE__ */ jsx(TagList, { tags }),
8845
+ /* @__PURE__ */ jsxs(Button, { size: "md", className: "w-full", onClick: onCta, children: [
8846
+ /* @__PURE__ */ jsx("i", { className: "ri-shopping-cart-2-line", "aria-hidden": "true" }),
8847
+ ctaLabel
8848
+ ] })
8849
+ ] }),
8850
+ /* @__PURE__ */ jsx("div", { className: "pointer-events-none absolute inset-0 rounded-[inherit] shadow-inset-bottom-strong" })
8851
+ ]
8852
+ })
8853
+ );
8854
+ }
8855
+ if (variant === "author") {
8856
+ return /* @__PURE__ */ jsxs(
8857
+ "div",
8858
+ __spreadProps(__spreadValues({
8859
+ ref,
8860
+ className: cn("flex flex-col gap-3", className)
8861
+ }, props), {
8862
+ children: [
8863
+ /* @__PURE__ */ jsxs("div", { className: "relative aspect-[3/2] w-full overflow-clip rounded-lg border border-sui-border-darker shadow-card", children: [
8864
+ /* @__PURE__ */ jsx(CoverImage, { src: image, className: "absolute inset-0" }),
8865
+ /* @__PURE__ */ jsx("div", { className: "pointer-events-none absolute inset-0 rounded-[inherit] shadow-inset-bottom-strong" })
8866
+ ] }),
8867
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1.5", children: [
8868
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between font-medium text-md leading-6 text-sui-text-default", children: [
8869
+ /* @__PURE__ */ jsx("span", { children: title }),
8870
+ price && /* @__PURE__ */ jsx("span", { children: price })
8871
+ ] }),
8872
+ author && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
8873
+ /* @__PURE__ */ jsxs(Avatar, { className: "size-6", children: [
8874
+ author.avatar && /* @__PURE__ */ jsx(AvatarImage, { src: author.avatar, alt: author.name }),
8875
+ /* @__PURE__ */ jsx(AvatarFallback, { className: "text-xs", children: author.name.slice(0, 2).toUpperCase() })
8876
+ ] }),
8877
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1 text-sm font-normal leading-5 text-sui-text-subtle", children: [
8878
+ /* @__PURE__ */ jsx("span", { children: author.name }),
8879
+ author.category && /* @__PURE__ */ jsxs(Fragment, { children: [
8880
+ /* @__PURE__ */ jsx("i", { className: "ri-arrow-right-s-line text-base leading-none text-icon-default-muted", "aria-hidden": "true" }),
8881
+ /* @__PURE__ */ jsx("span", { children: author.category })
8882
+ ] })
8883
+ ] })
8884
+ ] })
8885
+ ] })
8886
+ ]
8887
+ })
8888
+ );
8889
+ }
8890
+ if (variant === "overlay") {
8891
+ return /* @__PURE__ */ jsx(
8892
+ "div",
8893
+ __spreadProps(__spreadValues({
8894
+ ref,
8895
+ className: cn("relative", className)
8896
+ }, props), {
8897
+ children: /* @__PURE__ */ jsxs("div", { className: "relative aspect-[3/2] w-full overflow-clip rounded-lg border border-sui-border-darker shadow-card", children: [
8898
+ /* @__PURE__ */ jsx(CoverImage, { src: image, className: "absolute inset-0" }),
8899
+ /* @__PURE__ */ jsxs("div", { className: "absolute inset-x-0 bottom-0 flex items-end justify-between bg-gradient-to-b from-transparent to-sui-bg-default pb-2.5 pt-8 px-2.5", children: [
8900
+ /* @__PURE__ */ jsx(Button, { variant: "outline", size: "sm", children: "Live preview" }),
8901
+ /* @__PURE__ */ jsxs(Button, { variant: "outline", size: "sm", children: [
8902
+ /* @__PURE__ */ jsx("i", { className: "ri-file-copy-line", "aria-hidden": "true" }),
8903
+ "Copy"
8904
+ ] })
8905
+ ] }),
8906
+ /* @__PURE__ */ jsx("div", { className: "pointer-events-none absolute inset-0 rounded-[inherit] shadow-inset-bottom-strong" })
8907
+ ] })
8908
+ })
8909
+ );
8910
+ }
8911
+ return /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsxs(
8912
+ "div",
8913
+ __spreadProps(__spreadValues({
8914
+ ref,
8915
+ className: cn("flex items-center justify-between gap-3", className)
8916
+ }, props), {
8917
+ children: [
8918
+ /* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-1 items-center gap-3", children: [
8919
+ (thumbnail || image) && /* @__PURE__ */ jsx("div", { className: "relative size-6 shrink-0 overflow-clip rounded-sm", children: /* @__PURE__ */ jsx(
8920
+ "img",
8921
+ {
8922
+ src: thumbnail != null ? thumbnail : image,
8923
+ alt: "",
8924
+ className: "absolute inset-0 size-full object-cover"
8925
+ }
8926
+ ) }),
8927
+ /* @__PURE__ */ jsx("span", { className: "truncate font-medium text-md leading-6 text-sui-text-default", children: title })
8928
+ ] }),
8929
+ /* @__PURE__ */ jsxs("div", { className: "flex shrink-0 items-center gap-1", children: [
8930
+ /* @__PURE__ */ jsxs(Tooltip2, { children: [
8931
+ /* @__PURE__ */ jsx(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx(Button, { variant: "ghost", size: "2xs", className: "size-6 p-0", children: /* @__PURE__ */ jsx("i", { className: "ri-bookmark-line", "aria-hidden": "true" }) }) }),
8932
+ /* @__PURE__ */ jsx(TooltipContent, { children: "Save to library" })
8933
+ ] }),
8934
+ /* @__PURE__ */ jsx(Button, { variant: "ghost", size: "2xs", className: "size-6 p-0", children: /* @__PURE__ */ jsx("i", { className: "ri-more-2-fill", "aria-hidden": "true" }) })
8935
+ ] })
8936
+ ]
8937
+ })
8938
+ ) });
8939
+ }
8940
+ );
8941
+ ProductCard.displayName = "ProductCard";
8942
+ var Progress = React80.forwardRef((_a, ref) => {
8488
8943
  var _b = _a, { className, value } = _b, props = __objRest(_b, ["className", "value"]);
8489
8944
  return /* @__PURE__ */ jsx(
8490
8945
  ProgressPrimitive2.Root,
@@ -8534,7 +8989,7 @@ var arcStrokeVarMap = {
8534
8989
  success: "var(--text-success)",
8535
8990
  failed: "var(--text-destructive)"
8536
8991
  };
8537
- var RadialProgressBar = React78.forwardRef(
8992
+ var RadialProgressBar = React80.forwardRef(
8538
8993
  (_a, ref) => {
8539
8994
  var _b = _a, {
8540
8995
  className,
@@ -8654,7 +9109,7 @@ var RadialProgressBar = React78.forwardRef(
8654
9109
  }
8655
9110
  );
8656
9111
  RadialProgressBar.displayName = "RadialProgressBar";
8657
- var RadioGroup2 = React78.forwardRef((_a, ref) => {
9112
+ var RadioGroup2 = React80.forwardRef((_a, ref) => {
8658
9113
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
8659
9114
  return /* @__PURE__ */ jsx(
8660
9115
  RadioGroupPrimitive.Root,
@@ -8714,7 +9169,7 @@ var radioButtonVariants = cva(
8714
9169
  }
8715
9170
  }
8716
9171
  );
8717
- var RadioButton = React78.forwardRef((_a, ref) => {
9172
+ var RadioButton = React80.forwardRef((_a, ref) => {
8718
9173
  var _b = _a, { className, variant } = _b, props = __objRest(_b, ["className", "variant"]);
8719
9174
  return /* @__PURE__ */ jsxs(
8720
9175
  RadioGroupPrimitive.Item,
@@ -8754,7 +9209,7 @@ var RadioButton = React78.forwardRef((_a, ref) => {
8754
9209
  );
8755
9210
  });
8756
9211
  RadioButton.displayName = "RadioButton";
8757
- var RadioCardGroup = React78.forwardRef((_a, ref) => {
9212
+ var RadioCardGroup = React80.forwardRef((_a, ref) => {
8758
9213
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
8759
9214
  return /* @__PURE__ */ jsx(
8760
9215
  RadioGroupPrimitive.Root,
@@ -8803,7 +9258,7 @@ var radioButtonCardVariants = cva(
8803
9258
  }
8804
9259
  }
8805
9260
  );
8806
- var RadioButtonCard = React78.forwardRef(
9261
+ var RadioButtonCard = React80.forwardRef(
8807
9262
  ({
8808
9263
  title,
8809
9264
  description,
@@ -8817,7 +9272,7 @@ var RadioButtonCard = React78.forwardRef(
8817
9272
  disabled = false,
8818
9273
  className
8819
9274
  }, ref) => {
8820
- const generatedId = React78.useId();
9275
+ const generatedId = React80.useId();
8821
9276
  const titleId = `radio-card-title-${generatedId}`;
8822
9277
  const descriptionId = `radio-card-desc-${generatedId}`;
8823
9278
  const isHorizontal = layout === "horizontal";
@@ -8925,9 +9380,9 @@ var RadioButtonCard = React78.forwardRef(
8925
9380
  }
8926
9381
  );
8927
9382
  RadioButtonCard.displayName = "RadioButtonCard";
8928
- var RadioButtonList = React78.forwardRef(
9383
+ var RadioButtonList = React80.forwardRef(
8929
9384
  ({ className, divider = true, value, defaultValue, onValueChange, disabled, children }, ref) => {
8930
- const items = React78.Children.toArray(children);
9385
+ const items = React80.Children.toArray(children);
8931
9386
  return /* @__PURE__ */ jsx(
8932
9387
  RadioGroup2,
8933
9388
  {
@@ -8971,7 +9426,7 @@ var radioButtonWithTextVariants = cva(
8971
9426
  }
8972
9427
  }
8973
9428
  );
8974
- var RadioButtonWithText = React78.forwardRef(
9429
+ var RadioButtonWithText = React80.forwardRef(
8975
9430
  ({
8976
9431
  label,
8977
9432
  description,
@@ -8982,7 +9437,7 @@ var RadioButtonWithText = React78.forwardRef(
8982
9437
  className,
8983
9438
  id
8984
9439
  }, ref) => {
8985
- const generatedId = React78.useId();
9440
+ const generatedId = React80.useId();
8986
9441
  const radioId = id || generatedId;
8987
9442
  return /* @__PURE__ */ jsxs(
8988
9443
  "div",
@@ -9037,7 +9492,7 @@ var RadioButtonWithText = React78.forwardRef(
9037
9492
  }
9038
9493
  );
9039
9494
  RadioButtonWithText.displayName = "RadioButtonWithText";
9040
- var ScrollArea = React78.forwardRef((_a, ref) => {
9495
+ var ScrollArea = React80.forwardRef((_a, ref) => {
9041
9496
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
9042
9497
  return /* @__PURE__ */ jsxs(
9043
9498
  ScrollAreaPrimitive.Root,
@@ -9054,7 +9509,7 @@ var ScrollArea = React78.forwardRef((_a, ref) => {
9054
9509
  );
9055
9510
  });
9056
9511
  ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
9057
- var ScrollBar = React78.forwardRef((_a, ref) => {
9512
+ var ScrollBar = React80.forwardRef((_a, ref) => {
9058
9513
  var _b = _a, { className, orientation = "vertical" } = _b, props = __objRest(_b, ["className", "orientation"]);
9059
9514
  return /* @__PURE__ */ jsx(
9060
9515
  ScrollAreaPrimitive.ScrollAreaScrollbar,
@@ -9076,7 +9531,7 @@ ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
9076
9531
  var Select = SelectPrimitive.Root;
9077
9532
  var SelectGroup = SelectPrimitive.Group;
9078
9533
  var SelectValue = SelectPrimitive.Value;
9079
- var SelectTrigger = React78.forwardRef((_a, ref) => {
9534
+ var SelectTrigger = React80.forwardRef((_a, ref) => {
9080
9535
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
9081
9536
  return /* @__PURE__ */ jsxs(
9082
9537
  SelectPrimitive.Trigger,
@@ -9099,7 +9554,7 @@ var SelectTrigger = React78.forwardRef((_a, ref) => {
9099
9554
  );
9100
9555
  });
9101
9556
  SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
9102
- var SelectScrollUpButton = React78.forwardRef((_a, ref) => {
9557
+ var SelectScrollUpButton = React80.forwardRef((_a, ref) => {
9103
9558
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
9104
9559
  return /* @__PURE__ */ jsx(
9105
9560
  SelectPrimitive.ScrollUpButton,
@@ -9115,7 +9570,7 @@ var SelectScrollUpButton = React78.forwardRef((_a, ref) => {
9115
9570
  );
9116
9571
  });
9117
9572
  SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
9118
- var SelectScrollDownButton = React78.forwardRef((_a, ref) => {
9573
+ var SelectScrollDownButton = React80.forwardRef((_a, ref) => {
9119
9574
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
9120
9575
  return /* @__PURE__ */ jsx(
9121
9576
  SelectPrimitive.ScrollDownButton,
@@ -9131,7 +9586,7 @@ var SelectScrollDownButton = React78.forwardRef((_a, ref) => {
9131
9586
  );
9132
9587
  });
9133
9588
  SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
9134
- var SelectContent = React78.forwardRef((_a, ref) => {
9589
+ var SelectContent = React80.forwardRef((_a, ref) => {
9135
9590
  var _b = _a, { className, children, position = "popper" } = _b, props = __objRest(_b, ["className", "children", "position"]);
9136
9591
  return /* @__PURE__ */ jsx(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs(
9137
9592
  SelectPrimitive.Content,
@@ -9164,7 +9619,7 @@ var SelectContent = React78.forwardRef((_a, ref) => {
9164
9619
  ) });
9165
9620
  });
9166
9621
  SelectContent.displayName = SelectPrimitive.Content.displayName;
9167
- var SelectLabel = React78.forwardRef((_a, ref) => {
9622
+ var SelectLabel = React80.forwardRef((_a, ref) => {
9168
9623
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
9169
9624
  return /* @__PURE__ */ jsx(
9170
9625
  SelectPrimitive.Label,
@@ -9178,7 +9633,7 @@ var SelectLabel = React78.forwardRef((_a, ref) => {
9178
9633
  );
9179
9634
  });
9180
9635
  SelectLabel.displayName = SelectPrimitive.Label.displayName;
9181
- var SelectItem = React78.forwardRef((_a, ref) => {
9636
+ var SelectItem = React80.forwardRef((_a, ref) => {
9182
9637
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
9183
9638
  return /* @__PURE__ */ jsxs(
9184
9639
  SelectPrimitive.Item,
@@ -9203,7 +9658,7 @@ var SelectItem = React78.forwardRef((_a, ref) => {
9203
9658
  );
9204
9659
  });
9205
9660
  SelectItem.displayName = SelectPrimitive.Item.displayName;
9206
- var SelectSeparator = React78.forwardRef((_a, ref) => {
9661
+ var SelectSeparator = React80.forwardRef((_a, ref) => {
9207
9662
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
9208
9663
  return /* @__PURE__ */ jsx(
9209
9664
  SelectPrimitive.Separator,
@@ -9214,7 +9669,7 @@ var SelectSeparator = React78.forwardRef((_a, ref) => {
9214
9669
  );
9215
9670
  });
9216
9671
  SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
9217
- var SelectMenu = React78.forwardRef(
9672
+ var SelectMenu = React80.forwardRef(
9218
9673
  (_a, ref) => {
9219
9674
  var _b = _a, {
9220
9675
  className,
@@ -9245,19 +9700,19 @@ var SelectMenu = React78.forwardRef(
9245
9700
  ]);
9246
9701
  var _a2;
9247
9702
  const indicator = selectType === "checkbox" ? "checkbox" : selectType === "radio" ? "radio" : selectType === "default" ? "checkmark" : "none";
9248
- const hasChildren = React78.Children.count(children) > 0;
9249
- const generatedId = React78.useId();
9703
+ const hasChildren = React80.Children.count(children) > 0;
9704
+ const generatedId = React80.useId();
9250
9705
  const listId = `${generatedId}-list`;
9251
- const listRef = React78.useRef(null);
9252
- const [activeIndex, setActiveIndex] = React78.useState(-1);
9706
+ const listRef = React80.useRef(null);
9707
+ const [activeIndex, setActiveIndex] = React80.useState(-1);
9253
9708
  const activeItemId = activeIndex >= 0 ? `${listId}-item-${activeIndex}` : void 0;
9254
- const getItems = React78.useCallback(() => {
9709
+ const getItems = React80.useCallback(() => {
9255
9710
  if (!listRef.current) return [];
9256
9711
  return Array.from(
9257
9712
  listRef.current.querySelectorAll('[role="option"]')
9258
9713
  );
9259
9714
  }, []);
9260
- const handleKeyDown = React78.useCallback(
9715
+ const handleKeyDown = React80.useCallback(
9261
9716
  (e) => {
9262
9717
  var _a3;
9263
9718
  const items = getItems();
@@ -9340,8 +9795,8 @@ var SelectMenu = React78.forwardRef(
9340
9795
  "focus-visible:outline-none"
9341
9796
  ),
9342
9797
  style: listMaxHeight ? { maxHeight: listMaxHeight } : void 0,
9343
- children: hasChildren ? /* @__PURE__ */ jsx("div", { className: "flex flex-col px-1", role: "presentation", children: React78.Children.map(children, (child, index) => {
9344
- if (React78.isValidElement(child) && child.type.displayName === "SelectMenuItem") {
9798
+ children: hasChildren ? /* @__PURE__ */ jsx("div", { className: "flex flex-col px-1", role: "presentation", children: React80.Children.map(children, (child, index) => {
9799
+ if (React80.isValidElement(child) && child.type.displayName === "SelectMenuItem") {
9345
9800
  const itemProps = child.props;
9346
9801
  const overrides = {};
9347
9802
  if (indicator !== "none" && itemProps.indicator === void 0) {
@@ -9358,7 +9813,7 @@ var SelectMenu = React78.forwardRef(
9358
9813
  overrides["data-active"] = "true";
9359
9814
  }
9360
9815
  if (Object.keys(overrides).length > 0) {
9361
- return React78.cloneElement(
9816
+ return React80.cloneElement(
9362
9817
  child,
9363
9818
  overrides
9364
9819
  );
@@ -9383,7 +9838,7 @@ var SelectMenu = React78.forwardRef(
9383
9838
  }
9384
9839
  );
9385
9840
  SelectMenu.displayName = "SelectMenu";
9386
- var SelectMenuFooterButton = React78.forwardRef((_a, ref) => {
9841
+ var SelectMenuFooterButton = React80.forwardRef((_a, ref) => {
9387
9842
  var _b = _a, { className, icon = "ri-add-line", children = "Add new", disabled } = _b, props = __objRest(_b, ["className", "icon", "children", "disabled"]);
9388
9843
  return /* @__PURE__ */ jsxs(
9389
9844
  "button",
@@ -9426,7 +9881,7 @@ var SelectMenuFooterButton = React78.forwardRef((_a, ref) => {
9426
9881
  );
9427
9882
  });
9428
9883
  SelectMenuFooterButton.displayName = "SelectMenuFooterButton";
9429
- var SelectInput = React78.forwardRef(
9884
+ var SelectInput = React80.forwardRef(
9430
9885
  ({
9431
9886
  label,
9432
9887
  required,
@@ -9458,10 +9913,10 @@ var SelectInput = React78.forwardRef(
9458
9913
  footer,
9459
9914
  className
9460
9915
  }, ref) => {
9461
- const [internalOpen, setInternalOpen] = React78.useState(false);
9916
+ const [internalOpen, setInternalOpen] = React80.useState(false);
9462
9917
  const isControlled = controlledOpen !== void 0;
9463
9918
  const isOpen = isControlled ? controlledOpen : internalOpen;
9464
- const handleOpenChange = React78.useCallback(
9919
+ const handleOpenChange = React80.useCallback(
9465
9920
  (next) => {
9466
9921
  if (disabled) return;
9467
9922
  if (!isControlled) setInternalOpen(next);
@@ -9469,7 +9924,7 @@ var SelectInput = React78.forwardRef(
9469
9924
  },
9470
9925
  [disabled, isControlled, onOpenChange]
9471
9926
  );
9472
- const generatedId = React78.useId();
9927
+ const generatedId = React80.useId();
9473
9928
  const hasError = !!error;
9474
9929
  const helperText = hasError ? error : caption;
9475
9930
  const hasTags = tags && tags.length > 0;
@@ -9548,7 +10003,7 @@ var SelectInput = React78.forwardRef(
9548
10003
  children: leadIcon
9549
10004
  }
9550
10005
  ) : null,
9551
- hasTags ? /* @__PURE__ */ jsx("span", { className: "flex min-w-0 flex-1 items-center gap-1 overflow-hidden", children: tags.map((tag, i) => /* @__PURE__ */ jsxs(React78.Fragment, { children: [
10006
+ hasTags ? /* @__PURE__ */ jsx("span", { className: "flex min-w-0 flex-1 items-center gap-1 overflow-hidden", children: tags.map((tag, i) => /* @__PURE__ */ jsxs(React80.Fragment, { children: [
9552
10007
  i > 0 && /* @__PURE__ */ jsx(
9553
10008
  "span",
9554
10009
  {
@@ -9665,7 +10120,7 @@ var SelectInput = React78.forwardRef(
9665
10120
  }
9666
10121
  );
9667
10122
  SelectInput.displayName = "SelectInput";
9668
- var SelectMenuItem = React78.forwardRef(
10123
+ var SelectMenuItem = React80.forwardRef(
9669
10124
  (_a, ref) => {
9670
10125
  var _b = _a, {
9671
10126
  className,
@@ -9829,7 +10284,7 @@ var SelectMenuItem = React78.forwardRef(
9829
10284
  }
9830
10285
  );
9831
10286
  SelectMenuItem.displayName = "SelectMenuItem";
9832
- var SelectMenuLabel = React78.forwardRef(
10287
+ var SelectMenuLabel = React80.forwardRef(
9833
10288
  (_a, ref) => {
9834
10289
  var _b = _a, { className, caption, children } = _b, props = __objRest(_b, ["className", "caption", "children"]);
9835
10290
  return /* @__PURE__ */ jsxs(
@@ -9851,7 +10306,7 @@ var SelectMenuLabel = React78.forwardRef(
9851
10306
  }
9852
10307
  );
9853
10308
  SelectMenuLabel.displayName = "SelectMenuLabel";
9854
- var SelectMenuDescription = React78.forwardRef((_a, ref) => {
10309
+ var SelectMenuDescription = React80.forwardRef((_a, ref) => {
9855
10310
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
9856
10311
  return /* @__PURE__ */ jsx(
9857
10312
  "p",
@@ -9865,7 +10320,7 @@ var SelectMenuDescription = React78.forwardRef((_a, ref) => {
9865
10320
  );
9866
10321
  });
9867
10322
  SelectMenuDescription.displayName = "SelectMenuDescription";
9868
- var SelectMenuSeparator = React78.forwardRef((_a, ref) => {
10323
+ var SelectMenuSeparator = React80.forwardRef((_a, ref) => {
9869
10324
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
9870
10325
  return /* @__PURE__ */ jsx(
9871
10326
  "div",
@@ -9877,7 +10332,7 @@ var SelectMenuSeparator = React78.forwardRef((_a, ref) => {
9877
10332
  );
9878
10333
  });
9879
10334
  SelectMenuSeparator.displayName = "SelectMenuSeparator";
9880
- var SelectMenuLargeItem = React78.forwardRef(
10335
+ var SelectMenuLargeItem = React80.forwardRef(
9881
10336
  (_a, ref) => {
9882
10337
  var _b = _a, {
9883
10338
  className,
@@ -9973,7 +10428,7 @@ var SelectMenuLargeItem = React78.forwardRef(
9973
10428
  }
9974
10429
  );
9975
10430
  SelectMenuLargeItem.displayName = "SelectMenuLargeItem";
9976
- var Separator3 = React78.forwardRef(
10431
+ var Separator3 = React80.forwardRef(
9977
10432
  (_a, ref) => {
9978
10433
  var _b = _a, { className, orientation = "horizontal", decorative = true } = _b, props = __objRest(_b, ["className", "orientation", "decorative"]);
9979
10434
  return /* @__PURE__ */ jsx(
@@ -9996,7 +10451,7 @@ var Sheet = DialogPrimitive.Root;
9996
10451
  var SheetTrigger = DialogPrimitive.Trigger;
9997
10452
  var SheetClose = DialogPrimitive.Close;
9998
10453
  var SheetPortal = DialogPrimitive.Portal;
9999
- var SheetOverlay = React78.forwardRef((_a, ref) => {
10454
+ var SheetOverlay = React80.forwardRef((_a, ref) => {
10000
10455
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
10001
10456
  return /* @__PURE__ */ jsx(
10002
10457
  DialogPrimitive.Overlay,
@@ -10027,7 +10482,7 @@ var sheetVariants = cva(
10027
10482
  }
10028
10483
  }
10029
10484
  );
10030
- var SheetContent = React78.forwardRef((_a, ref) => {
10485
+ var SheetContent = React80.forwardRef((_a, ref) => {
10031
10486
  var _b = _a, { side = "right", className, children } = _b, props = __objRest(_b, ["side", "className", "children"]);
10032
10487
  return /* @__PURE__ */ jsxs(SheetPortal, { children: [
10033
10488
  /* @__PURE__ */ jsx(SheetOverlay, {}),
@@ -10083,7 +10538,7 @@ var SheetFooter = (_a) => {
10083
10538
  );
10084
10539
  };
10085
10540
  SheetFooter.displayName = "SheetFooter";
10086
- var SheetTitle = React78.forwardRef((_a, ref) => {
10541
+ var SheetTitle = React80.forwardRef((_a, ref) => {
10087
10542
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
10088
10543
  return /* @__PURE__ */ jsx(
10089
10544
  DialogPrimitive.Title,
@@ -10094,7 +10549,7 @@ var SheetTitle = React78.forwardRef((_a, ref) => {
10094
10549
  );
10095
10550
  });
10096
10551
  SheetTitle.displayName = DialogPrimitive.Title.displayName;
10097
- var SheetDescription = React78.forwardRef((_a, ref) => {
10552
+ var SheetDescription = React80.forwardRef((_a, ref) => {
10098
10553
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
10099
10554
  return /* @__PURE__ */ jsx(
10100
10555
  DialogPrimitive.Description,
@@ -10107,8 +10562,8 @@ var SheetDescription = React78.forwardRef((_a, ref) => {
10107
10562
  SheetDescription.displayName = DialogPrimitive.Description.displayName;
10108
10563
  var MOBILE_BREAKPOINT = 768;
10109
10564
  function useIsMobile() {
10110
- const [isMobile, setIsMobile] = React78.useState(void 0);
10111
- React78.useEffect(() => {
10565
+ const [isMobile, setIsMobile] = React80.useState(void 0);
10566
+ React80.useEffect(() => {
10112
10567
  const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
10113
10568
  const onChange = () => {
10114
10569
  setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
@@ -10138,15 +10593,15 @@ var SIDEBAR_WIDTH = "16rem";
10138
10593
  var SIDEBAR_WIDTH_MOBILE = "18rem";
10139
10594
  var SIDEBAR_WIDTH_ICON = "3rem";
10140
10595
  var SIDEBAR_KEYBOARD_SHORTCUT = "b";
10141
- var SidebarContext = React78.createContext(null);
10596
+ var SidebarContext = React80.createContext(null);
10142
10597
  function useSidebar() {
10143
- const context = React78.useContext(SidebarContext);
10598
+ const context = React80.useContext(SidebarContext);
10144
10599
  if (!context) {
10145
10600
  throw new Error("useSidebar must be used within a SidebarProvider.");
10146
10601
  }
10147
10602
  return context;
10148
10603
  }
10149
- var SidebarProvider = React78.forwardRef(
10604
+ var SidebarProvider = React80.forwardRef(
10150
10605
  (_a, ref) => {
10151
10606
  var _b = _a, {
10152
10607
  defaultOpen = true,
@@ -10164,10 +10619,10 @@ var SidebarProvider = React78.forwardRef(
10164
10619
  "children"
10165
10620
  ]);
10166
10621
  const isMobile = useIsMobile();
10167
- const [openMobile, setOpenMobile] = React78.useState(false);
10168
- const [_open, _setOpen] = React78.useState(defaultOpen);
10622
+ const [openMobile, setOpenMobile] = React80.useState(false);
10623
+ const [_open, _setOpen] = React80.useState(defaultOpen);
10169
10624
  const open = openProp != null ? openProp : _open;
10170
- const setOpen = React78.useCallback(
10625
+ const setOpen = React80.useCallback(
10171
10626
  (value) => {
10172
10627
  const openState = typeof value === "function" ? value(open) : value;
10173
10628
  if (setOpenProp) {
@@ -10179,10 +10634,10 @@ var SidebarProvider = React78.forwardRef(
10179
10634
  },
10180
10635
  [setOpenProp, open]
10181
10636
  );
10182
- const toggleSidebar = React78.useCallback(() => {
10637
+ const toggleSidebar = React80.useCallback(() => {
10183
10638
  return isMobile ? setOpenMobile((open2) => !open2) : setOpen((open2) => !open2);
10184
10639
  }, [isMobile, setOpen, setOpenMobile]);
10185
- React78.useEffect(() => {
10640
+ React80.useEffect(() => {
10186
10641
  const handleKeyDown = (event) => {
10187
10642
  if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
10188
10643
  event.preventDefault();
@@ -10193,7 +10648,7 @@ var SidebarProvider = React78.forwardRef(
10193
10648
  return () => window.removeEventListener("keydown", handleKeyDown);
10194
10649
  }, [toggleSidebar]);
10195
10650
  const state = open ? "expanded" : "collapsed";
10196
- const contextValue = React78.useMemo(
10651
+ const contextValue = React80.useMemo(
10197
10652
  () => ({
10198
10653
  state,
10199
10654
  open,
@@ -10224,7 +10679,7 @@ var SidebarProvider = React78.forwardRef(
10224
10679
  }
10225
10680
  );
10226
10681
  SidebarProvider.displayName = "SidebarProvider";
10227
- var Sidebar = React78.forwardRef(
10682
+ var Sidebar = React80.forwardRef(
10228
10683
  (_a, ref) => {
10229
10684
  var _b = _a, {
10230
10685
  side = "left",
@@ -10323,7 +10778,7 @@ var Sidebar = React78.forwardRef(
10323
10778
  }
10324
10779
  );
10325
10780
  Sidebar.displayName = "Sidebar";
10326
- var SidebarTrigger = React78.forwardRef((_a, ref) => {
10781
+ var SidebarTrigger = React80.forwardRef((_a, ref) => {
10327
10782
  var _b = _a, { className, onClick } = _b, props = __objRest(_b, ["className", "onClick"]);
10328
10783
  const { toggleSidebar } = useSidebar();
10329
10784
  return /* @__PURE__ */ jsxs(
@@ -10348,7 +10803,7 @@ var SidebarTrigger = React78.forwardRef((_a, ref) => {
10348
10803
  );
10349
10804
  });
10350
10805
  SidebarTrigger.displayName = "SidebarTrigger";
10351
- var SidebarRail = React78.forwardRef((_a, ref) => {
10806
+ var SidebarRail = React80.forwardRef((_a, ref) => {
10352
10807
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
10353
10808
  const { toggleSidebar } = useSidebar();
10354
10809
  return /* @__PURE__ */ jsx(
@@ -10373,7 +10828,7 @@ var SidebarRail = React78.forwardRef((_a, ref) => {
10373
10828
  );
10374
10829
  });
10375
10830
  SidebarRail.displayName = "SidebarRail";
10376
- var SidebarInset = React78.forwardRef((_a, ref) => {
10831
+ var SidebarInset = React80.forwardRef((_a, ref) => {
10377
10832
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
10378
10833
  return /* @__PURE__ */ jsx(
10379
10834
  "main",
@@ -10388,7 +10843,7 @@ var SidebarInset = React78.forwardRef((_a, ref) => {
10388
10843
  );
10389
10844
  });
10390
10845
  SidebarInset.displayName = "SidebarInset";
10391
- var SidebarInput = React78.forwardRef((_a, ref) => {
10846
+ var SidebarInput = React80.forwardRef((_a, ref) => {
10392
10847
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
10393
10848
  return /* @__PURE__ */ jsx(
10394
10849
  Input,
@@ -10403,7 +10858,7 @@ var SidebarInput = React78.forwardRef((_a, ref) => {
10403
10858
  );
10404
10859
  });
10405
10860
  SidebarInput.displayName = "SidebarInput";
10406
- var SidebarHeader = React78.forwardRef((_a, ref) => {
10861
+ var SidebarHeader = React80.forwardRef((_a, ref) => {
10407
10862
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
10408
10863
  return /* @__PURE__ */ jsx(
10409
10864
  "div",
@@ -10415,7 +10870,7 @@ var SidebarHeader = React78.forwardRef((_a, ref) => {
10415
10870
  );
10416
10871
  });
10417
10872
  SidebarHeader.displayName = "SidebarHeader";
10418
- var SidebarFooter = React78.forwardRef((_a, ref) => {
10873
+ var SidebarFooter = React80.forwardRef((_a, ref) => {
10419
10874
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
10420
10875
  return /* @__PURE__ */ jsx(
10421
10876
  "div",
@@ -10427,7 +10882,7 @@ var SidebarFooter = React78.forwardRef((_a, ref) => {
10427
10882
  );
10428
10883
  });
10429
10884
  SidebarFooter.displayName = "SidebarFooter";
10430
- var SidebarSeparator = React78.forwardRef((_a, ref) => {
10885
+ var SidebarSeparator = React80.forwardRef((_a, ref) => {
10431
10886
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
10432
10887
  return /* @__PURE__ */ jsx(
10433
10888
  Separator3,
@@ -10439,7 +10894,7 @@ var SidebarSeparator = React78.forwardRef((_a, ref) => {
10439
10894
  );
10440
10895
  });
10441
10896
  SidebarSeparator.displayName = "SidebarSeparator";
10442
- var SidebarContent = React78.forwardRef((_a, ref) => {
10897
+ var SidebarContent = React80.forwardRef((_a, ref) => {
10443
10898
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
10444
10899
  return /* @__PURE__ */ jsx(
10445
10900
  "div",
@@ -10454,7 +10909,7 @@ var SidebarContent = React78.forwardRef((_a, ref) => {
10454
10909
  );
10455
10910
  });
10456
10911
  SidebarContent.displayName = "SidebarContent";
10457
- var SidebarGroup = React78.forwardRef((_a, ref) => {
10912
+ var SidebarGroup = React80.forwardRef((_a, ref) => {
10458
10913
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
10459
10914
  return /* @__PURE__ */ jsx(
10460
10915
  "div",
@@ -10466,7 +10921,7 @@ var SidebarGroup = React78.forwardRef((_a, ref) => {
10466
10921
  );
10467
10922
  });
10468
10923
  SidebarGroup.displayName = "SidebarGroup";
10469
- var SidebarGroupLabel = React78.forwardRef((_a, ref) => {
10924
+ var SidebarGroupLabel = React80.forwardRef((_a, ref) => {
10470
10925
  var _b = _a, { className, asChild = false } = _b, props = __objRest(_b, ["className", "asChild"]);
10471
10926
  const Comp = asChild ? Slot : "div";
10472
10927
  return /* @__PURE__ */ jsx(
@@ -10483,7 +10938,7 @@ var SidebarGroupLabel = React78.forwardRef((_a, ref) => {
10483
10938
  );
10484
10939
  });
10485
10940
  SidebarGroupLabel.displayName = "SidebarGroupLabel";
10486
- var SidebarGroupAction = React78.forwardRef((_a, ref) => {
10941
+ var SidebarGroupAction = React80.forwardRef((_a, ref) => {
10487
10942
  var _b = _a, { className, asChild = false } = _b, props = __objRest(_b, ["className", "asChild"]);
10488
10943
  const Comp = asChild ? Slot : "button";
10489
10944
  return /* @__PURE__ */ jsx(
@@ -10502,7 +10957,7 @@ var SidebarGroupAction = React78.forwardRef((_a, ref) => {
10502
10957
  );
10503
10958
  });
10504
10959
  SidebarGroupAction.displayName = "SidebarGroupAction";
10505
- var SidebarGroupContent = React78.forwardRef((_a, ref) => {
10960
+ var SidebarGroupContent = React80.forwardRef((_a, ref) => {
10506
10961
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
10507
10962
  return /* @__PURE__ */ jsx(
10508
10963
  "div",
@@ -10514,7 +10969,7 @@ var SidebarGroupContent = React78.forwardRef((_a, ref) => {
10514
10969
  );
10515
10970
  });
10516
10971
  SidebarGroupContent.displayName = "SidebarGroupContent";
10517
- var SidebarMenu = React78.forwardRef((_a, ref) => {
10972
+ var SidebarMenu = React80.forwardRef((_a, ref) => {
10518
10973
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
10519
10974
  return /* @__PURE__ */ jsx(
10520
10975
  "ul",
@@ -10526,7 +10981,7 @@ var SidebarMenu = React78.forwardRef((_a, ref) => {
10526
10981
  );
10527
10982
  });
10528
10983
  SidebarMenu.displayName = "SidebarMenu";
10529
- var SidebarMenuItem = React78.forwardRef((_a, ref) => {
10984
+ var SidebarMenuItem = React80.forwardRef((_a, ref) => {
10530
10985
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
10531
10986
  return /* @__PURE__ */ jsx(
10532
10987
  "li",
@@ -10558,7 +11013,7 @@ var sidebarMenuButtonVariants = cva(
10558
11013
  }
10559
11014
  }
10560
11015
  );
10561
- var SidebarMenuButton = React78.forwardRef(
11016
+ var SidebarMenuButton = React80.forwardRef(
10562
11017
  (_a, ref) => {
10563
11018
  var _b = _a, {
10564
11019
  asChild = false,
@@ -10609,7 +11064,7 @@ var SidebarMenuButton = React78.forwardRef(
10609
11064
  }
10610
11065
  );
10611
11066
  SidebarMenuButton.displayName = "SidebarMenuButton";
10612
- var SidebarMenuAction = React78.forwardRef((_a, ref) => {
11067
+ var SidebarMenuAction = React80.forwardRef((_a, ref) => {
10613
11068
  var _b = _a, { className, asChild = false, showOnHover = false } = _b, props = __objRest(_b, ["className", "asChild", "showOnHover"]);
10614
11069
  const Comp = asChild ? Slot : "button";
10615
11070
  return /* @__PURE__ */ jsx(
@@ -10632,7 +11087,7 @@ var SidebarMenuAction = React78.forwardRef((_a, ref) => {
10632
11087
  );
10633
11088
  });
10634
11089
  SidebarMenuAction.displayName = "SidebarMenuAction";
10635
- var SidebarMenuBadge = React78.forwardRef((_a, ref) => {
11090
+ var SidebarMenuBadge = React80.forwardRef((_a, ref) => {
10636
11091
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
10637
11092
  return /* @__PURE__ */ jsx(
10638
11093
  "div",
@@ -10652,10 +11107,10 @@ var SidebarMenuBadge = React78.forwardRef((_a, ref) => {
10652
11107
  );
10653
11108
  });
10654
11109
  SidebarMenuBadge.displayName = "SidebarMenuBadge";
10655
- var SidebarMenuSkeleton = React78.forwardRef((_a, ref) => {
11110
+ var SidebarMenuSkeleton = React80.forwardRef((_a, ref) => {
10656
11111
  var _b = _a, { className, showIcon = false } = _b, props = __objRest(_b, ["className", "showIcon"]);
10657
- const id = React78.useId();
10658
- const width = React78.useMemo(() => {
11112
+ const id = React80.useId();
11113
+ const width = React80.useMemo(() => {
10659
11114
  const hash = id.split("").reduce((a, c) => a + c.charCodeAt(0), 0);
10660
11115
  return `${hash % 40 + 50}%`;
10661
11116
  }, [id]);
@@ -10689,7 +11144,7 @@ var SidebarMenuSkeleton = React78.forwardRef((_a, ref) => {
10689
11144
  );
10690
11145
  });
10691
11146
  SidebarMenuSkeleton.displayName = "SidebarMenuSkeleton";
10692
- var SidebarMenuSub = React78.forwardRef((_a, ref) => {
11147
+ var SidebarMenuSub = React80.forwardRef((_a, ref) => {
10693
11148
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
10694
11149
  return /* @__PURE__ */ jsx(
10695
11150
  "ul",
@@ -10705,12 +11160,12 @@ var SidebarMenuSub = React78.forwardRef((_a, ref) => {
10705
11160
  );
10706
11161
  });
10707
11162
  SidebarMenuSub.displayName = "SidebarMenuSub";
10708
- var SidebarMenuSubItem = React78.forwardRef((_a, ref) => {
11163
+ var SidebarMenuSubItem = React80.forwardRef((_a, ref) => {
10709
11164
  var props = __objRest(_a, []);
10710
11165
  return /* @__PURE__ */ jsx("li", __spreadValues({ ref }, props));
10711
11166
  });
10712
11167
  SidebarMenuSubItem.displayName = "SidebarMenuSubItem";
10713
- var SidebarMenuSubButton = React78.forwardRef((_a, ref) => {
11168
+ var SidebarMenuSubButton = React80.forwardRef((_a, ref) => {
10714
11169
  var _b = _a, { asChild = false, size = "md", isActive, className } = _b, props = __objRest(_b, ["asChild", "size", "isActive", "className"]);
10715
11170
  const Comp = asChild ? Slot : "a";
10716
11171
  return /* @__PURE__ */ jsx(
@@ -10750,7 +11205,7 @@ var sidebarCardVariants = cva(
10750
11205
  }
10751
11206
  }
10752
11207
  );
10753
- var SidebarCard = React78.forwardRef(
11208
+ var SidebarCard = React80.forwardRef(
10754
11209
  (_a, ref) => {
10755
11210
  var _b = _a, { className, variant, children } = _b, props = __objRest(_b, ["className", "variant", "children"]);
10756
11211
  return /* @__PURE__ */ jsx(
@@ -10789,7 +11244,7 @@ var sidebarMenuItemVariants = cva("", {
10789
11244
  variant: "default"
10790
11245
  }
10791
11246
  });
10792
- var SidebarMenuItem2 = React78.forwardRef(
11247
+ var SidebarMenuItem2 = React80.forwardRef(
10793
11248
  (_a, ref) => {
10794
11249
  var _b = _a, {
10795
11250
  className,
@@ -10974,6 +11429,198 @@ var SidebarMenuItem2 = React78.forwardRef(
10974
11429
  }
10975
11430
  );
10976
11431
  SidebarMenuItem2.displayName = "SidebarMenuItem";
11432
+ var DefaultLogo = () => /* @__PURE__ */ jsx("div", { className: "flex size-8 items-center justify-center rounded-lg bg-sui-bg-state-primary", children: /* @__PURE__ */ jsx("i", { className: "ri-layout-grid-fill text-md leading-none text-icon-on-primary", "aria-hidden": "true" }) });
11433
+ var CardFooter2 = ({
11434
+ text,
11435
+ linkText,
11436
+ onClick,
11437
+ centered
11438
+ }) => /* @__PURE__ */ jsxs("div", { className: cn("flex gap-1 text-sm leading-5", centered && "justify-center"), children: [
11439
+ /* @__PURE__ */ jsx("span", { className: "font-normal text-sui-text-muted", children: text }),
11440
+ /* @__PURE__ */ jsx(
11441
+ "button",
11442
+ {
11443
+ type: "button",
11444
+ onClick,
11445
+ className: "font-medium text-sui-text-informative [@media(hover:hover)]:hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sui-border-highlight focus-visible:ring-offset-2 focus-visible:ring-offset-sui-bg-default rounded-sm",
11446
+ children: linkText
11447
+ }
11448
+ )
11449
+ ] });
11450
+ var SignInCard = React80.forwardRef(
11451
+ (_a, ref) => {
11452
+ var _b = _a, {
11453
+ className,
11454
+ variant = "simple",
11455
+ title = "Sign in to Sort UI",
11456
+ subtitle = "Welcome back! Please enter your details.",
11457
+ logo,
11458
+ showRememberMe = true,
11459
+ showResetPassword = true,
11460
+ showSso = true,
11461
+ socialProviders = ["apple", "google", "twitter"],
11462
+ ctaLabel,
11463
+ footerText = "New to Sort UI?",
11464
+ footerLinkText = "Sign up",
11465
+ onFooterClick
11466
+ } = _b, props = __objRest(_b, [
11467
+ "className",
11468
+ "variant",
11469
+ "title",
11470
+ "subtitle",
11471
+ "logo",
11472
+ "showRememberMe",
11473
+ "showResetPassword",
11474
+ "showSso",
11475
+ "socialProviders",
11476
+ "ctaLabel",
11477
+ "footerText",
11478
+ "footerLinkText",
11479
+ "onFooterClick"
11480
+ ]);
11481
+ const logoNode = logo != null ? logo : /* @__PURE__ */ jsx(DefaultLogo, {});
11482
+ const isCentered = variant === "centered" || variant === "social";
11483
+ const Header2 = /* @__PURE__ */ jsxs("div", { className: cn("flex flex-col gap-3", isCentered && "items-center"), children: [
11484
+ logoNode,
11485
+ /* @__PURE__ */ jsxs("div", { className: cn("flex flex-col gap-1", isCentered && "items-center text-center"), children: [
11486
+ /* @__PURE__ */ jsx("p", { className: "text-md font-semibold leading-6 text-sui-text-default", children: title }),
11487
+ /* @__PURE__ */ jsx("p", { className: "text-sm font-normal leading-5 text-sui-text-muted", children: subtitle })
11488
+ ] })
11489
+ ] });
11490
+ const FormFields = /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-5", children: [
11491
+ /* @__PURE__ */ jsx(
11492
+ InputField,
11493
+ {
11494
+ label: "Email address or username",
11495
+ placeholder: "",
11496
+ inputStyle: "shadow",
11497
+ type: "email",
11498
+ autoComplete: "email"
11499
+ }
11500
+ ),
11501
+ /* @__PURE__ */ jsx(
11502
+ InputField,
11503
+ {
11504
+ label: "Password",
11505
+ placeholder: "",
11506
+ inputStyle: "shadow",
11507
+ type: "password",
11508
+ autoComplete: "current-password",
11509
+ labelSupportText: showResetPassword ? "Reset password" : void 0,
11510
+ tailIcon: showResetPassword ? void 0 : void 0
11511
+ }
11512
+ ),
11513
+ showRememberMe && /* @__PURE__ */ jsx(CheckboxWithText, { label: "Remember me" })
11514
+ ] });
11515
+ if (variant === "simple") {
11516
+ return /* @__PURE__ */ jsxs(
11517
+ "div",
11518
+ __spreadProps(__spreadValues({
11519
+ ref,
11520
+ className: cn(
11521
+ "flex w-[400px] flex-col gap-6 overflow-clip rounded-xl bg-sui-bg-card",
11522
+ "pt-9 pb-6 px-9",
11523
+ "shadow-modal-sm",
11524
+ className
11525
+ )
11526
+ }, props), {
11527
+ children: [
11528
+ Header2,
11529
+ FormFields,
11530
+ /* @__PURE__ */ jsx(Button, { className: "w-full", size: "md", children: ctaLabel != null ? ctaLabel : "Sign In" }),
11531
+ /* @__PURE__ */ jsx(Divider, {}),
11532
+ /* @__PURE__ */ jsx(CardFooter2, { text: footerText, linkText: footerLinkText, onClick: onFooterClick })
11533
+ ]
11534
+ })
11535
+ );
11536
+ }
11537
+ if (variant === "centered") {
11538
+ return /* @__PURE__ */ jsxs(
11539
+ "div",
11540
+ __spreadProps(__spreadValues({
11541
+ ref,
11542
+ className: cn(
11543
+ "flex w-[400px] flex-col gap-6 overflow-clip rounded-xl bg-sui-bg-card",
11544
+ "pt-9 pb-6 px-9",
11545
+ "shadow-modal-sm",
11546
+ className
11547
+ )
11548
+ }, props), {
11549
+ children: [
11550
+ Header2,
11551
+ FormFields,
11552
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2", children: [
11553
+ /* @__PURE__ */ jsx(Button, { className: "w-full", size: "md", children: ctaLabel != null ? ctaLabel : "Sign In" }),
11554
+ showSso && /* @__PURE__ */ jsxs(Button, { variant: "secondary", className: "w-full", size: "md", children: [
11555
+ /* @__PURE__ */ jsx("i", { className: "ri-key-2-line", "aria-hidden": "true" }),
11556
+ "Single sign-on (SSO)"
11557
+ ] })
11558
+ ] }),
11559
+ /* @__PURE__ */ jsx(Divider, {}),
11560
+ /* @__PURE__ */ jsx(CardFooter2, { text: footerText, linkText: footerLinkText, onClick: onFooterClick, centered: true })
11561
+ ]
11562
+ })
11563
+ );
11564
+ }
11565
+ if (variant === "social") {
11566
+ return /* @__PURE__ */ jsxs(
11567
+ "div",
11568
+ __spreadProps(__spreadValues({
11569
+ ref,
11570
+ className: cn(
11571
+ "flex w-[400px] flex-col overflow-clip rounded-xl bg-sui-bg-card-subtle",
11572
+ "shadow-modal-sm",
11573
+ className
11574
+ )
11575
+ }, props), {
11576
+ children: [
11577
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-6 border-b border-sui-border-default bg-sui-bg-card p-9", children: [
11578
+ Header2,
11579
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-6", children: [
11580
+ socialProviders.length > 0 && /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-2", children: socialProviders.map((brand) => /* @__PURE__ */ jsx(SocialButton, { brand, variant: "secondary", className: "w-full" }, brand)) }),
11581
+ /* @__PURE__ */ jsx(Divider, { type: "text-center", label: "or" }),
11582
+ /* @__PURE__ */ jsx(Button, { className: "w-full", size: "md", children: ctaLabel != null ? ctaLabel : "Sign in with email" })
11583
+ ] })
11584
+ ] }),
11585
+ /* @__PURE__ */ jsx("div", { className: "flex px-9 py-6 justify-center", children: /* @__PURE__ */ jsx(CardFooter2, { text: footerText, linkText: footerLinkText, onClick: onFooterClick, centered: true }) })
11586
+ ]
11587
+ })
11588
+ );
11589
+ }
11590
+ return /* @__PURE__ */ jsxs(
11591
+ "div",
11592
+ __spreadProps(__spreadValues({
11593
+ ref,
11594
+ className: cn(
11595
+ "flex w-[400px] flex-col overflow-clip rounded-xl bg-sui-bg-card-subtle",
11596
+ "shadow-modal-sm",
11597
+ className
11598
+ )
11599
+ }, props), {
11600
+ children: [
11601
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-3 border-b border-sui-border-default bg-sui-bg-card p-9", children: [
11602
+ Header2,
11603
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2 pt-3", children: [
11604
+ /* @__PURE__ */ jsx(
11605
+ InputField,
11606
+ {
11607
+ label: "Email address",
11608
+ placeholder: "",
11609
+ inputStyle: "shadow",
11610
+ type: "email",
11611
+ autoComplete: "email"
11612
+ }
11613
+ ),
11614
+ /* @__PURE__ */ jsx(Button, { className: "w-full", size: "md", children: ctaLabel != null ? ctaLabel : "Continue" })
11615
+ ] })
11616
+ ] }),
11617
+ /* @__PURE__ */ jsx("div", { className: "flex px-9 py-6", children: /* @__PURE__ */ jsx(CardFooter2, { text: footerText, linkText: footerLinkText, onClick: onFooterClick }) })
11618
+ ]
11619
+ })
11620
+ );
11621
+ }
11622
+ );
11623
+ SignInCard.displayName = "SignInCard";
10977
11624
  function clamp2(value, min, max) {
10978
11625
  return Math.min(Math.max(value, min), max);
10979
11626
  }
@@ -10985,7 +11632,7 @@ function percent2(value, min, max) {
10985
11632
  if (max === min) return 0;
10986
11633
  return (value - min) / (max - min) * 100;
10987
11634
  }
10988
- var Slider = React78.forwardRef(
11635
+ var Slider = React80.forwardRef(
10989
11636
  (_a, ref) => {
10990
11637
  var _b = _a, {
10991
11638
  className,
@@ -11018,12 +11665,12 @@ var Slider = React78.forwardRef(
11018
11665
  "formatValue",
11019
11666
  "onValueChange"
11020
11667
  ]);
11021
- const trackRef = React78.useRef(null);
11022
- const [isDragging, setIsDragging] = React78.useState(false);
11023
- const [isFocused, setIsFocused] = React78.useState(false);
11668
+ const trackRef = React80.useRef(null);
11669
+ const [isDragging, setIsDragging] = React80.useState(false);
11670
+ const [isFocused, setIsFocused] = React80.useState(false);
11024
11671
  const pct = percent2(value, min, max);
11025
11672
  const displayValue = formatValue ? formatValue(value) : `${value}`;
11026
- const getValueFromPointer = React78.useCallback(
11673
+ const getValueFromPointer = React80.useCallback(
11027
11674
  (clientX) => {
11028
11675
  const track = trackRef.current;
11029
11676
  if (!track) return 0;
@@ -11034,7 +11681,7 @@ var Slider = React78.forwardRef(
11034
11681
  },
11035
11682
  [min, max, step]
11036
11683
  );
11037
- const handlePointerDown = React78.useCallback(
11684
+ const handlePointerDown = React80.useCallback(
11038
11685
  (e) => {
11039
11686
  if (disabled) return;
11040
11687
  e.preventDefault();
@@ -11045,7 +11692,7 @@ var Slider = React78.forwardRef(
11045
11692
  },
11046
11693
  [disabled, getValueFromPointer, onValueChange, value]
11047
11694
  );
11048
- const handlePointerMove = React78.useCallback(
11695
+ const handlePointerMove = React80.useCallback(
11049
11696
  (e) => {
11050
11697
  if (!isDragging || disabled) return;
11051
11698
  const newValue = getValueFromPointer(e.clientX);
@@ -11053,10 +11700,10 @@ var Slider = React78.forwardRef(
11053
11700
  },
11054
11701
  [isDragging, disabled, getValueFromPointer, onValueChange, value]
11055
11702
  );
11056
- const handlePointerUp = React78.useCallback(() => {
11703
+ const handlePointerUp = React80.useCallback(() => {
11057
11704
  setIsDragging(false);
11058
11705
  }, []);
11059
- const handleKeyDown = React78.useCallback(
11706
+ const handleKeyDown = React80.useCallback(
11060
11707
  (e) => {
11061
11708
  if (disabled) return;
11062
11709
  let newValue = value;
@@ -11083,7 +11730,7 @@ var Slider = React78.forwardRef(
11083
11730
  },
11084
11731
  [disabled, value, step, min, max, onValueChange]
11085
11732
  );
11086
- const tickLabels = React78.useMemo(() => {
11733
+ const tickLabels = React80.useMemo(() => {
11087
11734
  if (pointLabels) return pointLabels;
11088
11735
  const count2 = pointCount;
11089
11736
  const labels = [];
@@ -11177,7 +11824,7 @@ Slider.displayName = "Slider";
11177
11824
  function clamp3(value, min, max) {
11178
11825
  return Math.min(Math.max(value, min), max);
11179
11826
  }
11180
- var SliderInput = React78.forwardRef(
11827
+ var SliderInput = React80.forwardRef(
11181
11828
  (_a, ref) => {
11182
11829
  var _b = _a, {
11183
11830
  className,
@@ -11200,8 +11847,8 @@ var SliderInput = React78.forwardRef(
11200
11847
  "formatValue",
11201
11848
  "onValueChange"
11202
11849
  ]);
11203
- const [internalValue, setInternalValue] = React78.useState(value);
11204
- React78.useEffect(() => {
11850
+ const [internalValue, setInternalValue] = React80.useState(value);
11851
+ React80.useEffect(() => {
11205
11852
  setInternalValue(value);
11206
11853
  }, [value]);
11207
11854
  const commit = (newVal) => {
@@ -11308,7 +11955,7 @@ function percent3(value, min, max) {
11308
11955
  if (max === min) return 0;
11309
11956
  return (value - min) / (max - min) * 100;
11310
11957
  }
11311
- var SliderRange = React78.forwardRef(
11958
+ var SliderRange = React80.forwardRef(
11312
11959
  (_a, ref) => {
11313
11960
  var _b = _a, {
11314
11961
  className,
@@ -11341,15 +11988,15 @@ var SliderRange = React78.forwardRef(
11341
11988
  "formatValue",
11342
11989
  "onValueChange"
11343
11990
  ]);
11344
- const trackRef = React78.useRef(null);
11345
- const [draggingHandle, setDraggingHandle] = React78.useState(null);
11346
- const [focusedHandle, setFocusedHandle] = React78.useState(null);
11991
+ const trackRef = React80.useRef(null);
11992
+ const [draggingHandle, setDraggingHandle] = React80.useState(null);
11993
+ const [focusedHandle, setFocusedHandle] = React80.useState(null);
11347
11994
  const [rangeMin, rangeMax] = value;
11348
11995
  const pctMin = percent3(rangeMin, min, max);
11349
11996
  const pctMax = percent3(rangeMax, min, max);
11350
11997
  const fmt = (v) => formatValue ? formatValue(v) : `${v}`;
11351
11998
  const displayValue = `${fmt(rangeMin)} \u2013 ${fmt(rangeMax)}`;
11352
- const getValueFromPointer = React78.useCallback(
11999
+ const getValueFromPointer = React80.useCallback(
11353
12000
  (clientX) => {
11354
12001
  const track = trackRef.current;
11355
12002
  if (!track) return 0;
@@ -11360,7 +12007,7 @@ var SliderRange = React78.forwardRef(
11360
12007
  },
11361
12008
  [min, max, step]
11362
12009
  );
11363
- const closestHandle = React78.useCallback(
12010
+ const closestHandle = React80.useCallback(
11364
12011
  (pointerValue) => {
11365
12012
  const distMin = Math.abs(pointerValue - rangeMin);
11366
12013
  const distMax = Math.abs(pointerValue - rangeMax);
@@ -11368,7 +12015,7 @@ var SliderRange = React78.forwardRef(
11368
12015
  },
11369
12016
  [rangeMin, rangeMax]
11370
12017
  );
11371
- const updateValue = React78.useCallback(
12018
+ const updateValue = React80.useCallback(
11372
12019
  (handle, newVal) => {
11373
12020
  if (handle === 0) {
11374
12021
  const clamped = clamp4(newVal, min, rangeMax);
@@ -11380,7 +12027,7 @@ var SliderRange = React78.forwardRef(
11380
12027
  },
11381
12028
  [min, max, rangeMin, rangeMax, onValueChange]
11382
12029
  );
11383
- const handlePointerDown = React78.useCallback(
12030
+ const handlePointerDown = React80.useCallback(
11384
12031
  (e) => {
11385
12032
  if (disabled) return;
11386
12033
  e.preventDefault();
@@ -11392,7 +12039,7 @@ var SliderRange = React78.forwardRef(
11392
12039
  },
11393
12040
  [disabled, getValueFromPointer, closestHandle, updateValue]
11394
12041
  );
11395
- const handlePointerMove = React78.useCallback(
12042
+ const handlePointerMove = React80.useCallback(
11396
12043
  (e) => {
11397
12044
  if (draggingHandle === null || disabled) return;
11398
12045
  const newVal = getValueFromPointer(e.clientX);
@@ -11400,10 +12047,10 @@ var SliderRange = React78.forwardRef(
11400
12047
  },
11401
12048
  [draggingHandle, disabled, getValueFromPointer, updateValue]
11402
12049
  );
11403
- const handlePointerUp = React78.useCallback(() => {
12050
+ const handlePointerUp = React80.useCallback(() => {
11404
12051
  setDraggingHandle(null);
11405
12052
  }, []);
11406
- const makeKeyHandler = React78.useCallback(
12053
+ const makeKeyHandler = React80.useCallback(
11407
12054
  (handle) => (e) => {
11408
12055
  if (disabled) return;
11409
12056
  const currentVal = handle === 0 ? rangeMin : rangeMax;
@@ -11431,7 +12078,7 @@ var SliderRange = React78.forwardRef(
11431
12078
  },
11432
12079
  [disabled, rangeMin, rangeMax, step, min, max, updateValue]
11433
12080
  );
11434
- const tickLabels = React78.useMemo(() => {
12081
+ const tickLabels = React80.useMemo(() => {
11435
12082
  if (pointLabels) return pointLabels;
11436
12083
  const labels = [];
11437
12084
  for (let i = 0; i < pointCount; i++) {
@@ -11548,7 +12195,7 @@ var SliderRange = React78.forwardRef(
11548
12195
  }
11549
12196
  );
11550
12197
  SliderRange.displayName = "SliderRange";
11551
- var SliderRangeInput = React78.forwardRef(
12198
+ var SliderRangeInput = React80.forwardRef(
11552
12199
  (_a, ref) => {
11553
12200
  var _b = _a, {
11554
12201
  className,
@@ -11682,7 +12329,7 @@ var Toaster = (_a) => {
11682
12329
  classNames: {
11683
12330
  toast: "group toast group-[.toaster]:bg-sui-bg-default group-[.toaster]:text-sui-text-default group-[.toaster]:border-sui-border-default group-[.toaster]:shadow-modal-sm",
11684
12331
  description: "group-[.toast]:text-sui-text-muted",
11685
- actionButton: "group-[.toast]:bg-sui-bg-state-primary group-[.toast]:text-sui-text-white-default",
12332
+ actionButton: "group-[.toast]:bg-sui-bg-state-primary group-[.toast]:text-sui-text-on-primary",
11686
12333
  cancelButton: "group-[.toast]:bg-sui-bg-subtle group-[.toast]:text-sui-text-muted"
11687
12334
  }
11688
12335
  }
@@ -11690,7 +12337,7 @@ var Toaster = (_a) => {
11690
12337
  );
11691
12338
  };
11692
12339
  var ToastProvider = ToastPrimitives.Provider;
11693
- var ToastViewport = React78.forwardRef((_a, ref) => {
12340
+ var ToastViewport = React80.forwardRef((_a, ref) => {
11694
12341
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
11695
12342
  return /* @__PURE__ */ jsx(
11696
12343
  ToastPrimitives.Viewport,
@@ -11718,7 +12365,7 @@ var toastVariants = cva(
11718
12365
  }
11719
12366
  }
11720
12367
  );
11721
- var Toast = React78.forwardRef((_a, ref) => {
12368
+ var Toast = React80.forwardRef((_a, ref) => {
11722
12369
  var _b = _a, { className, variant } = _b, props = __objRest(_b, ["className", "variant"]);
11723
12370
  return /* @__PURE__ */ jsx(
11724
12371
  ToastPrimitives.Root,
@@ -11729,7 +12376,7 @@ var Toast = React78.forwardRef((_a, ref) => {
11729
12376
  );
11730
12377
  });
11731
12378
  Toast.displayName = ToastPrimitives.Root.displayName;
11732
- var ToastAction = React78.forwardRef((_a, ref) => {
12379
+ var ToastAction = React80.forwardRef((_a, ref) => {
11733
12380
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
11734
12381
  return /* @__PURE__ */ jsx(
11735
12382
  ToastPrimitives.Action,
@@ -11743,7 +12390,7 @@ var ToastAction = React78.forwardRef((_a, ref) => {
11743
12390
  );
11744
12391
  });
11745
12392
  ToastAction.displayName = ToastPrimitives.Action.displayName;
11746
- var ToastClose = React78.forwardRef((_a, ref) => {
12393
+ var ToastClose = React80.forwardRef((_a, ref) => {
11747
12394
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
11748
12395
  return /* @__PURE__ */ jsx(
11749
12396
  ToastPrimitives.Close,
@@ -11760,7 +12407,7 @@ var ToastClose = React78.forwardRef((_a, ref) => {
11760
12407
  );
11761
12408
  });
11762
12409
  ToastClose.displayName = ToastPrimitives.Close.displayName;
11763
- var ToastTitle = React78.forwardRef((_a, ref) => {
12410
+ var ToastTitle = React80.forwardRef((_a, ref) => {
11764
12411
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
11765
12412
  return /* @__PURE__ */ jsx(
11766
12413
  ToastPrimitives.Title,
@@ -11771,7 +12418,7 @@ var ToastTitle = React78.forwardRef((_a, ref) => {
11771
12418
  );
11772
12419
  });
11773
12420
  ToastTitle.displayName = ToastPrimitives.Title.displayName;
11774
- var ToastDescription = React78.forwardRef((_a, ref) => {
12421
+ var ToastDescription = React80.forwardRef((_a, ref) => {
11775
12422
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
11776
12423
  return /* @__PURE__ */ jsx(
11777
12424
  ToastPrimitives.Description,
@@ -11876,8 +12523,8 @@ function toast(_a) {
11876
12523
  };
11877
12524
  }
11878
12525
  function useToast() {
11879
- const [state, setState] = React78.useState(memoryState);
11880
- React78.useEffect(() => {
12526
+ const [state, setState] = React80.useState(memoryState);
12527
+ React80.useEffect(() => {
11881
12528
  listeners.push(setState);
11882
12529
  return () => {
11883
12530
  const index = listeners.indexOf(setState);
@@ -11908,7 +12555,7 @@ function Toaster2() {
11908
12555
  /* @__PURE__ */ jsx(ToastViewport, {})
11909
12556
  ] });
11910
12557
  }
11911
- var Switch = React78.forwardRef((_a, ref) => {
12558
+ var Switch = React80.forwardRef((_a, ref) => {
11912
12559
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
11913
12560
  return /* @__PURE__ */ jsx(
11914
12561
  SwitchPrimitives.Root,
@@ -11960,10 +12607,10 @@ var Switch = React78.forwardRef((_a, ref) => {
11960
12607
  );
11961
12608
  });
11962
12609
  Switch.displayName = "Switch";
11963
- var SwitchList = React78.forwardRef(
12610
+ var SwitchList = React80.forwardRef(
11964
12611
  (_a, ref) => {
11965
12612
  var _b = _a, { className, divider = true, children } = _b, props = __objRest(_b, ["className", "divider", "children"]);
11966
- const items = React78.Children.toArray(children);
12613
+ const items = React80.Children.toArray(children);
11967
12614
  return /* @__PURE__ */ jsx(
11968
12615
  "div",
11969
12616
  __spreadProps(__spreadValues({
@@ -11991,7 +12638,7 @@ var SwitchList = React78.forwardRef(
11991
12638
  }
11992
12639
  );
11993
12640
  SwitchList.displayName = "SwitchList";
11994
- var SwitchWithText = React78.forwardRef(
12641
+ var SwitchWithText = React80.forwardRef(
11995
12642
  (_a, ref) => {
11996
12643
  var _b = _a, {
11997
12644
  className,
@@ -12008,7 +12655,7 @@ var SwitchWithText = React78.forwardRef(
12008
12655
  "disabled",
12009
12656
  "id"
12010
12657
  ]);
12011
- const generatedId = React78.useId();
12658
+ const generatedId = React80.useId();
12012
12659
  const switchId = id || generatedId;
12013
12660
  return /* @__PURE__ */ jsxs(
12014
12661
  "div",
@@ -12065,7 +12712,7 @@ var SwitchWithText = React78.forwardRef(
12065
12712
  }
12066
12713
  );
12067
12714
  SwitchWithText.displayName = "SwitchWithText";
12068
- var Table = React78.forwardRef((_a, ref) => {
12715
+ var Table = React80.forwardRef((_a, ref) => {
12069
12716
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
12070
12717
  return /* @__PURE__ */ jsx("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ jsx(
12071
12718
  "table",
@@ -12076,12 +12723,12 @@ var Table = React78.forwardRef((_a, ref) => {
12076
12723
  ) });
12077
12724
  });
12078
12725
  Table.displayName = "Table";
12079
- var TableHeader = React78.forwardRef((_a, ref) => {
12726
+ var TableHeader = React80.forwardRef((_a, ref) => {
12080
12727
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
12081
12728
  return /* @__PURE__ */ jsx("thead", __spreadValues({ ref, className: cn("[&_tr]:border-b [&_tr]:border-sui-border-default", className) }, props));
12082
12729
  });
12083
12730
  TableHeader.displayName = "TableHeader";
12084
- var TableBody = React78.forwardRef((_a, ref) => {
12731
+ var TableBody = React80.forwardRef((_a, ref) => {
12085
12732
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
12086
12733
  return /* @__PURE__ */ jsx(
12087
12734
  "tbody",
@@ -12092,7 +12739,7 @@ var TableBody = React78.forwardRef((_a, ref) => {
12092
12739
  );
12093
12740
  });
12094
12741
  TableBody.displayName = "TableBody";
12095
- var TableFooter = React78.forwardRef((_a, ref) => {
12742
+ var TableFooter = React80.forwardRef((_a, ref) => {
12096
12743
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
12097
12744
  return /* @__PURE__ */ jsx(
12098
12745
  "tfoot",
@@ -12106,7 +12753,7 @@ var TableFooter = React78.forwardRef((_a, ref) => {
12106
12753
  );
12107
12754
  });
12108
12755
  TableFooter.displayName = "TableFooter";
12109
- var TableRow = React78.forwardRef((_a, ref) => {
12756
+ var TableRow = React80.forwardRef((_a, ref) => {
12110
12757
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
12111
12758
  return /* @__PURE__ */ jsx(
12112
12759
  "tr",
@@ -12120,7 +12767,7 @@ var TableRow = React78.forwardRef((_a, ref) => {
12120
12767
  );
12121
12768
  });
12122
12769
  TableRow.displayName = "TableRow";
12123
- var TableHead = React78.forwardRef((_a, ref) => {
12770
+ var TableHead = React80.forwardRef((_a, ref) => {
12124
12771
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
12125
12772
  return /* @__PURE__ */ jsx(
12126
12773
  "th",
@@ -12134,7 +12781,7 @@ var TableHead = React78.forwardRef((_a, ref) => {
12134
12781
  );
12135
12782
  });
12136
12783
  TableHead.displayName = "TableHead";
12137
- var TableCell = React78.forwardRef((_a, ref) => {
12784
+ var TableCell = React80.forwardRef((_a, ref) => {
12138
12785
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
12139
12786
  return /* @__PURE__ */ jsx(
12140
12787
  "td",
@@ -12145,7 +12792,7 @@ var TableCell = React78.forwardRef((_a, ref) => {
12145
12792
  );
12146
12793
  });
12147
12794
  TableCell.displayName = "TableCell";
12148
- var TableCaption = React78.forwardRef((_a, ref) => {
12795
+ var TableCaption = React80.forwardRef((_a, ref) => {
12149
12796
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
12150
12797
  return /* @__PURE__ */ jsx(
12151
12798
  "caption",
@@ -12181,7 +12828,7 @@ var ariaSortMap2 = {
12181
12828
  desc: "descending",
12182
12829
  none: "none"
12183
12830
  };
12184
- var TableHeaderItem = React78.forwardRef(
12831
+ var TableHeaderItem = React80.forwardRef(
12185
12832
  (_a, ref) => {
12186
12833
  var _b = _a, {
12187
12834
  className,
@@ -12297,7 +12944,7 @@ var tableItemVariants = cva("flex items-center px-2", {
12297
12944
  size: "lg"
12298
12945
  }
12299
12946
  });
12300
- var TableItem = React78.forwardRef(
12947
+ var TableItem = React80.forwardRef(
12301
12948
  (_a, ref) => {
12302
12949
  var _b = _a, {
12303
12950
  className,
@@ -12381,7 +13028,7 @@ var TableItem = React78.forwardRef(
12381
13028
  }
12382
13029
  );
12383
13030
  TableItem.displayName = "TableItem";
12384
- var TablePagination = React78.forwardRef(
13031
+ var TablePagination = React80.forwardRef(
12385
13032
  (_a, ref) => {
12386
13033
  var _b = _a, {
12387
13034
  className,
@@ -12468,7 +13115,7 @@ var tableRowSortVariants = cva(
12468
13115
  }
12469
13116
  }
12470
13117
  );
12471
- var TableRowSort = React78.forwardRef(
13118
+ var TableRowSort = React80.forwardRef(
12472
13119
  (_a, ref) => {
12473
13120
  var _b = _a, { className, variant = "default", striped, sticky, children } = _b, props = __objRest(_b, ["className", "variant", "striped", "sticky", "children"]);
12474
13121
  return /* @__PURE__ */ jsx(
@@ -12491,7 +13138,7 @@ var TableRowSort = React78.forwardRef(
12491
13138
  TableRowSort.displayName = "TableRowSort";
12492
13139
  var textWidths = ["w-20", "w-28", "w-24", "w-32", "w-16", "w-26", "w-22", "w-30"];
12493
13140
  var skeletonBg = "bg-sui-bg-basic-gray-alpha-4";
12494
- var TableSkeletonRow = React78.forwardRef(
13141
+ var TableSkeletonRow = React80.forwardRef(
12495
13142
  (_a, ref) => {
12496
13143
  var _b = _a, { className, columns, rowCount = 5, size = "sm" } = _b, props = __objRest(_b, ["className", "columns", "rowCount", "size"]);
12497
13144
  return /* @__PURE__ */ jsx("div", __spreadProps(__spreadValues({ ref, className, "aria-hidden": "true" }, props), { children: Array.from({ length: rowCount }, (_, rowIdx) => /* @__PURE__ */ jsx(TableRowSort, { variant: "default", children: columns.map((col, colIdx) => {
@@ -12541,12 +13188,12 @@ var tabListVariants = cva(
12541
13188
  }
12542
13189
  }
12543
13190
  );
12544
- var TabList = React78.forwardRef((_a, ref) => {
13191
+ var TabList = React80.forwardRef((_a, ref) => {
12545
13192
  var _b = _a, { className, variant = "pill", shape = "pill", layout, children } = _b, props = __objRest(_b, ["className", "variant", "shape", "layout", "children"]);
12546
13193
  const childShape = variant === "segmented" && shape === "rounded" ? "rounded" : shape;
12547
13194
  const childRadiusOverride = variant === "segmented" && shape === "rounded" ? "rounded-sm" : void 0;
12548
- const enhancedChildren = React78.Children.map(children, (child) => {
12549
- if (!React78.isValidElement(child)) return child;
13195
+ const enhancedChildren = React80.Children.map(children, (child) => {
13196
+ if (!React80.isValidElement(child)) return child;
12550
13197
  const extraProps = {
12551
13198
  shape: childShape
12552
13199
  };
@@ -12554,7 +13201,7 @@ var TabList = React78.forwardRef((_a, ref) => {
12554
13201
  const existingClassName = child.props.className;
12555
13202
  extraProps.className = cn(existingClassName, childRadiusOverride);
12556
13203
  }
12557
- return React78.cloneElement(child, extraProps);
13204
+ return React80.cloneElement(child, extraProps);
12558
13205
  });
12559
13206
  return /* @__PURE__ */ jsx(
12560
13207
  TabsPrimitive4.List,
@@ -12616,7 +13263,7 @@ var tabItemVariants = cva(
12616
13263
  }
12617
13264
  }
12618
13265
  );
12619
- var TabItem = React78.forwardRef((_a, ref) => {
13266
+ var TabItem = React80.forwardRef((_a, ref) => {
12620
13267
  var _b = _a, { className, shape, size } = _b, props = __objRest(_b, ["className", "shape", "size"]);
12621
13268
  return /* @__PURE__ */ jsx(
12622
13269
  TabsPrimitive4.Trigger,
@@ -12628,35 +13275,35 @@ var TabItem = React78.forwardRef((_a, ref) => {
12628
13275
  });
12629
13276
  TabItem.displayName = "TabItem";
12630
13277
  var Tabs = TabsPrimitive4.Root;
12631
- var TabsList = React78.forwardRef((_a, ref) => {
13278
+ var TabsList = React80.forwardRef((_a, ref) => {
12632
13279
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
12633
13280
  return /* @__PURE__ */ jsx(
12634
13281
  TabsPrimitive4.List,
12635
13282
  __spreadValues({
12636
13283
  ref,
12637
13284
  className: cn(
12638
- "inline-flex h-10 items-center justify-center rounded-md bg-sui-bg-subtle p-1 text-sui-text-muted",
13285
+ "inline-flex h-10 items-center justify-center rounded-md bg-sui-bg-state-soft p-1 text-sui-text-muted",
12639
13286
  className
12640
13287
  )
12641
13288
  }, props)
12642
13289
  );
12643
13290
  });
12644
13291
  TabsList.displayName = TabsPrimitive4.List.displayName;
12645
- var TabsTrigger = React78.forwardRef((_a, ref) => {
13292
+ var TabsTrigger = React80.forwardRef((_a, ref) => {
12646
13293
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
12647
13294
  return /* @__PURE__ */ jsx(
12648
13295
  TabsPrimitive4.Trigger,
12649
13296
  __spreadValues({
12650
13297
  ref,
12651
13298
  className: cn(
12652
- "inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-sui-bg-default transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sui-border-highlight focus-visible:ring-offset-2 disabled:text-sui-text-hint disabled:pointer-events-none data-[state=active]:bg-sui-bg-default data-[state=active]:text-sui-text-default data-[state=active]:shadow-sm",
13299
+ "inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-sui-bg-default transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sui-border-highlight focus-visible:ring-offset-2 disabled:text-sui-text-hint disabled:pointer-events-none [@media(hover:hover)]:hover:bg-sui-bg-state-ghost-hover [@media(hover:hover)]:hover:text-sui-text-default data-[state=active]:bg-sui-bg-default data-[state=active]:text-sui-text-default data-[state=active]:shadow-default",
12653
13300
  className
12654
13301
  )
12655
13302
  }, props)
12656
13303
  );
12657
13304
  });
12658
13305
  TabsTrigger.displayName = TabsPrimitive4.Trigger.displayName;
12659
- var TabsContent = React78.forwardRef((_a, ref) => {
13306
+ var TabsContent = React80.forwardRef((_a, ref) => {
12660
13307
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
12661
13308
  return /* @__PURE__ */ jsx(
12662
13309
  TabsPrimitive4.Content,
@@ -12700,7 +13347,7 @@ var textAreaContainerVariants = cva(
12700
13347
  }
12701
13348
  }
12702
13349
  );
12703
- var TextAreaField = React78.forwardRef(
13350
+ var TextAreaField = React80.forwardRef(
12704
13351
  (_a, ref) => {
12705
13352
  var _b = _a, {
12706
13353
  className,
@@ -12749,7 +13396,7 @@ var TextAreaField = React78.forwardRef(
12749
13396
  "spellCheck",
12750
13397
  "autoComplete"
12751
13398
  ]);
12752
- const generatedId = React78.useId();
13399
+ const generatedId = React80.useId();
12753
13400
  const textAreaId = id || generatedId;
12754
13401
  const captionId = `${textAreaId}-caption`;
12755
13402
  const charCountId = `${textAreaId}-charcount`;
@@ -12757,8 +13404,8 @@ var TextAreaField = React78.forwardRef(
12757
13404
  const helperText = hasError ? error : caption;
12758
13405
  const hasActionBar = !!(leadActions || tailActions);
12759
13406
  const showCount = !!(showCharCount && maxLength);
12760
- const innerRef = React78.useRef(null);
12761
- React78.useImperativeHandle(ref, () => innerRef.current, []);
13407
+ const innerRef = React80.useRef(null);
13408
+ React80.useImperativeHandle(ref, () => innerRef.current, []);
12762
13409
  const focusTextareaOnDecorationClick = (e) => {
12763
13410
  var _a2;
12764
13411
  if (disabled) return;
@@ -12775,12 +13422,12 @@ var TextAreaField = React78.forwardRef(
12775
13422
  helperText ? captionId : null,
12776
13423
  showCount ? charCountId : null
12777
13424
  ].filter(Boolean).join(" ") || void 0;
12778
- const [charCount, setCharCount] = React78.useState(() => {
13425
+ const [charCount, setCharCount] = React80.useState(() => {
12779
13426
  if (value !== void 0) return String(value).length;
12780
13427
  if (defaultValue !== void 0) return String(defaultValue).length;
12781
13428
  return 0;
12782
13429
  });
12783
- React78.useEffect(() => {
13430
+ React80.useEffect(() => {
12784
13431
  if (value !== void 0) {
12785
13432
  setCharCount(String(value).length);
12786
13433
  }
@@ -12966,7 +13613,7 @@ var TextAreaField = React78.forwardRef(
12966
13613
  }
12967
13614
  );
12968
13615
  TextAreaField.displayName = "TextAreaField";
12969
- var Textarea = React78.forwardRef((_a, ref) => {
13616
+ var Textarea = React80.forwardRef((_a, ref) => {
12970
13617
  var _b = _a, { className, spellCheck } = _b, props = __objRest(_b, ["className", "spellCheck"]);
12971
13618
  return /* @__PURE__ */ jsx(
12972
13619
  "textarea",
@@ -13019,7 +13666,7 @@ var toggleVariants = cva(
13019
13666
  }
13020
13667
  }
13021
13668
  );
13022
- var Toggle = React78.forwardRef((_a, ref) => {
13669
+ var Toggle = React80.forwardRef((_a, ref) => {
13023
13670
  var _b = _a, { className, variant, size } = _b, props = __objRest(_b, ["className", "variant", "size"]);
13024
13671
  return /* @__PURE__ */ jsx(
13025
13672
  TogglePrimitive.Root,
@@ -13031,7 +13678,7 @@ var Toggle = React78.forwardRef((_a, ref) => {
13031
13678
  });
13032
13679
  Toggle.displayName = TogglePrimitive.Root.displayName;
13033
13680
  function useMergedRef(...refs) {
13034
- return React78.useCallback((node) => {
13681
+ return React80.useCallback((node) => {
13035
13682
  refs.forEach((ref) => {
13036
13683
  if (typeof ref === "function") ref(node);
13037
13684
  else if (ref && "current" in ref)
@@ -13060,13 +13707,13 @@ var chipSizeMap = {
13060
13707
  xs: "sm",
13061
13708
  "2xs": "sm"
13062
13709
  };
13063
- var ToggleGroupContext = React78.createContext(null);
13710
+ var ToggleGroupContext = React80.createContext(null);
13064
13711
  function useToggleGroup() {
13065
- const ctx = React78.useContext(ToggleGroupContext);
13712
+ const ctx = React80.useContext(ToggleGroupContext);
13066
13713
  if (!ctx) throw new Error("ToggleGroupItem must be used within a ToggleGroup");
13067
13714
  return ctx;
13068
13715
  }
13069
- var ToggleGroup = React78.forwardRef(
13716
+ var ToggleGroup = React80.forwardRef(
13070
13717
  (props, ref) => {
13071
13718
  const {
13072
13719
  type,
@@ -13081,16 +13728,16 @@ var ToggleGroup = React78.forwardRef(
13081
13728
  const controlledValue = "value" in props ? props.value : void 0;
13082
13729
  const defaultValue = "defaultValue" in props ? props.defaultValue : void 0;
13083
13730
  const onValueChange = "onValueChange" in props ? props.onValueChange : void 0;
13084
- const [internalValue, setInternalValue] = React78.useState(
13731
+ const [internalValue, setInternalValue] = React80.useState(
13085
13732
  defaultValue
13086
13733
  );
13087
13734
  const isControlled = controlledValue !== void 0;
13088
13735
  const value = isControlled ? controlledValue : internalValue;
13089
- const [rovingFocusValue, setRovingFocusValue] = React78.useState(null);
13090
- const itemRefs = React78.useRef(/* @__PURE__ */ new Map());
13091
- const itemValues = React78.useRef([]);
13092
- const [, notifyRegistration] = React78.useReducer((x) => x + 1, 0);
13093
- const isActive = React78.useCallback(
13736
+ const [rovingFocusValue, setRovingFocusValue] = React80.useState(null);
13737
+ const itemRefs = React80.useRef(/* @__PURE__ */ new Map());
13738
+ const itemValues = React80.useRef([]);
13739
+ const [, notifyRegistration] = React80.useReducer((x) => x + 1, 0);
13740
+ const isActive = React80.useCallback(
13094
13741
  (itemValue) => {
13095
13742
  if (type === "single") return value === itemValue;
13096
13743
  if (type === "multiple" && Array.isArray(value)) return value.includes(itemValue);
@@ -13098,7 +13745,7 @@ var ToggleGroup = React78.forwardRef(
13098
13745
  },
13099
13746
  [type, value]
13100
13747
  );
13101
- const toggle = React78.useCallback(
13748
+ const toggle = React80.useCallback(
13102
13749
  (itemValue) => {
13103
13750
  if (type === "single") {
13104
13751
  const newValue = value === itemValue ? void 0 : itemValue;
@@ -13142,7 +13789,7 @@ var ToggleGroup = React78.forwardRef(
13142
13789
  }
13143
13790
  );
13144
13791
  ToggleGroup.displayName = "ToggleGroup";
13145
- var ToggleGroupItem = React78.forwardRef(
13792
+ var ToggleGroupItem = React80.forwardRef(
13146
13793
  (_a, ref) => {
13147
13794
  var _b = _a, {
13148
13795
  value: itemValue,
@@ -13177,9 +13824,9 @@ var ToggleGroupItem = React78.forwardRef(
13177
13824
  const disabled = ctx.disabled || itemDisabled;
13178
13825
  const resolvedSize = bgSize != null ? bgSize : "lg";
13179
13826
  const chipSize = chipSizeMap[resolvedSize];
13180
- const internalRef = React78.useRef(null);
13827
+ const internalRef = React80.useRef(null);
13181
13828
  const mergedRef = useMergedRef(ref, internalRef);
13182
- React78.useEffect(() => {
13829
+ React80.useEffect(() => {
13183
13830
  const el = internalRef.current;
13184
13831
  if (!el) return;
13185
13832
  ctx.itemRefs.current.set(itemValue, el);
@@ -13315,8 +13962,8 @@ var ToggleGroupItem = React78.forwardRef(
13315
13962
  "bg-sui-bg-state-ghost text-sui-text-muted [&_svg]:text-icon-default-muted",
13316
13963
  "[@media(hover:hover)]:hover:bg-sui-bg-state-ghost-hover [@media(hover:hover)]:hover:text-sui-text-subtle [@media(hover:hover)]:hover:[&_svg]:text-icon-default-subtle",
13317
13964
  "active:bg-sui-bg-state-ghost-press",
13318
- // Selected state
13319
- active && "bg-sui-bg-badge-blue text-sui-bg-basic-blue-strong [&_svg]:text-sui-bg-basic-blue-strong",
13965
+ // Selected state — bg-badge-blue has no theme-adaptive equivalent yet (stays a light-blue tint in Theme 2); text/icon use the semantic informative token so they shift blue → orange
13966
+ active && "bg-sui-bg-badge-blue text-sui-text-informative [&_svg]:text-sui-text-informative",
13320
13967
  // Disabled
13321
13968
  disabled && "opacity-50 cursor-not-allowed pointer-events-none",
13322
13969
  // Size
@@ -13396,7 +14043,7 @@ var containedInnerVariants = cva(
13396
14043
  "group-hover:bg-sui-bg-state-secondary-hover group-active:bg-sui-bg-state-secondary-press"
13397
14044
  ]
13398
14045
  );
13399
- var Userbar = React78.forwardRef(
14046
+ var Userbar = React80.forwardRef(
13400
14047
  (_a, ref) => {
13401
14048
  var _b = _a, {
13402
14049
  className,
@@ -13505,7 +14152,7 @@ var Userbar = React78.forwardRef(
13505
14152
  }
13506
14153
  );
13507
14154
  Userbar.displayName = "Userbar";
13508
- var VerticalStepperItem = React78.forwardRef(
14155
+ var VerticalStepperItem = React80.forwardRef(
13509
14156
  (_a, ref) => {
13510
14157
  var _b = _a, {
13511
14158
  className,
@@ -13641,7 +14288,7 @@ var VerticalStepperItem = React78.forwardRef(
13641
14288
  }
13642
14289
  );
13643
14290
  VerticalStepperItem.displayName = "VerticalStepperItem";
13644
- var VerticalStepper = React78.forwardRef(
14291
+ var VerticalStepper = React80.forwardRef(
13645
14292
  (_a, ref) => {
13646
14293
  var _b = _a, {
13647
14294
  className,
@@ -13722,4 +14369,4 @@ var VerticalStepper = React78.forwardRef(
13722
14369
  );
13723
14370
  VerticalStepper.displayName = "VerticalStepper";
13724
14371
 
13725
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, Avatar, AvatarButton, AvatarFallback, AvatarGroup, AvatarImage, AvatarUpload, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, ButtonGroupItem, Calendar, CalendarDayButton, Card, CardContent, CardCover, CardDescription, CardFooter, CardHeader, CardTitle, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, CheckboxCard, CheckboxList, CheckboxWithText, Chip, CodeBlock, Collapsible, CollapsibleContent2 as CollapsibleContent, CollapsibleTrigger2 as CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ControlButton, DataRangeSlider, DataRangeSliderInput, DatePicker, DatePickerInput, DatePickerWithPresets, DateRangePicker, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Divider, DropdownMenu, DropdownMenuCaption, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuLargeItem, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, DropdownMenuUserbar, EmptyState, FileUpload, FileUploadArea, FileUploadCard, FilterButton, GridTableCell, GridTableHeaderItem, GridTableRow, GridTableSlotItem, HorizontalStepper, HorizontalStepperItem, InlineTips, Input, InputButton, InputCaption, InputField, InputStepper, Label, LinkButton, MenuSearchInput, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, PageItem, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Paginator, Popover, PopoverContent, PopoverTrigger, Progress, ProgressBar, RadialProgressBar, RadioButton, RadioButtonCard, RadioButtonList, RadioButtonWithText, RadioCardGroup, RadioGroup2 as RadioGroup, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectInput, SelectItem, SelectLabel, SelectMenu, SelectMenuDescription, SelectMenuFooterButton, SelectMenuItem, SelectMenuLabel, SelectMenuLargeItem, SelectMenuSeparator, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator3 as Separator, Toaster2 as ShadcnToaster, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarCard, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem2 as SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, SliderHandle, SliderInput, SliderRange, SliderRangeInput, SocialButton, SortBreadcrumb, SortBreadcrumbItem, StatusBadge, StepperIcon, StepperNumber, Switch, SwitchList, SwitchWithText, TabItem, TabList, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableHeaderItem, TableItem, TablePagination, TableRow, TableRowSort, TableSkeletonRow, Tabs, TabsContent, TabsList, TabsTrigger, TextAreaField, Textarea, Toast, ToastAction, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip2 as Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UnderlineTabItem, UnderlineTabsList, Userbar, VerticalStepper, VerticalStepperItem, accordionItemVariants, avatarButtonVariants, avatarVariants, buttonGroupItemVariants, buttonVariants, cardVariants, checkboxCardVariants, checkboxVariants, checkboxWithTextVariants, chipVariants, controlButtonVariants, datePickerInputContainerVariants, dividerVariants2 as dividerVariants, emptyStateVariants, extractInitials, fileUploadCardVariants, filterButtonVariants, formatBytes, gridTableHeaderItemVariants, gridTableRowVariants, gridTableSlotItemVariants, horizontalStepperItemVariants, inlineTipsVariants, inputButtonVariants, inputContainerVariants, lineVariants, linkButtonVariants, navigationMenuTriggerStyle, pageItemVariants, progressBarVariants, radialProgressBarVariants, radioButtonCardVariants, radioButtonVariants, radioButtonWithTextVariants, sidebarCardVariants, sidebarMenuItemVariants, sliderHandleVariants, socialButtonVariants, stepperIconVariants, stepperNumberVariants, tabItemVariants, tabListVariants, tableHeaderItemVariants, tableItemVariants, tableRowSortVariants, textAreaContainerVariants, toggleVariants, tooltipContentVariants, underlineTabItemVariants, underlineTabsListVariants, useSidebar, userbarVariants, validateFile };
14372
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, Attachment, AttachmentAction, AttachmentActions, AttachmentContent, AttachmentDescription, AttachmentGroup, AttachmentMedia, AttachmentTitle, AttachmentTrigger, Avatar, AvatarButton, AvatarFallback, AvatarGroup, AvatarImage, AvatarUpload, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, ButtonGroupItem, Calendar, CalendarDayButton, Card, CardContent, CardCover, CardDescription, CardFooter, CardHeader, CardTitle, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, CheckboxCard, CheckboxList, CheckboxWithText, Chip, CodeBlock, Collapsible, CollapsibleContent2 as CollapsibleContent, CollapsibleTrigger2 as CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ControlButton, DataRangeSlider, DataRangeSliderInput, DatePicker, DatePickerInput, DatePickerWithPresets, DateRangePicker, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Divider, DropdownMenu, DropdownMenuCaption, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuLargeItem, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, DropdownMenuUserbar, EmptyState, FileUpload, FileUploadArea, FileUploadCard, FilterButton, GridTableCell, GridTableHeaderItem, GridTableRow, GridTableSlotItem, HorizontalStepper, HorizontalStepperItem, InlineTips, Input, InputButton, InputCaption, InputField, InputStepper, Label, LinkButton, MenuSearchInput, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, PageItem, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Paginator, Popover, PopoverContent, PopoverTrigger, ProductCard, Progress, ProgressBar, RadialProgressBar, RadioButton, RadioButtonCard, RadioButtonList, RadioButtonWithText, RadioCardGroup, RadioGroup2 as RadioGroup, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectInput, SelectItem, SelectLabel, SelectMenu, SelectMenuDescription, SelectMenuFooterButton, SelectMenuItem, SelectMenuLabel, SelectMenuLargeItem, SelectMenuSeparator, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator3 as Separator, Toaster2 as ShadcnToaster, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarCard, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem2 as SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, SignInCard, Skeleton, Slider, SliderHandle, SliderInput, SliderRange, SliderRangeInput, SocialButton, SortBreadcrumb, SortBreadcrumbItem, StatusBadge, StepperIcon, StepperNumber, Switch, SwitchList, SwitchWithText, TabItem, TabList, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableHeaderItem, TableItem, TablePagination, TableRow, TableRowSort, TableSkeletonRow, Tabs, TabsContent, TabsList, TabsTrigger, TextAreaField, Textarea, Toast, ToastAction, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip2 as Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UnderlineTabItem, UnderlineTabsList, Userbar, VerticalStepper, VerticalStepperItem, accordionItemVariants, attachmentVariants, avatarButtonVariants, avatarVariants, buttonGroupItemVariants, buttonVariants, cardVariants, checkboxCardVariants, checkboxVariants, checkboxWithTextVariants, chipVariants, controlButtonVariants, datePickerInputContainerVariants, dividerVariants2 as dividerVariants, emptyStateVariants, extractInitials, fileUploadCardVariants, filterButtonVariants, formatBytes, gridTableHeaderItemVariants, gridTableRowVariants, gridTableSlotItemVariants, horizontalStepperItemVariants, inlineTipsVariants, inputButtonVariants, inputContainerVariants, lineVariants, linkButtonVariants, navigationMenuTriggerStyle, pageItemVariants, progressBarVariants, radialProgressBarVariants, radioButtonCardVariants, radioButtonVariants, radioButtonWithTextVariants, sidebarCardVariants, sidebarMenuItemVariants, sliderHandleVariants, socialButtonVariants, stepperIconVariants, stepperNumberVariants, tabItemVariants, tabListVariants, tableHeaderItemVariants, tableItemVariants, tableRowSortVariants, textAreaContainerVariants, toggleVariants, tooltipContentVariants, underlineTabItemVariants, underlineTabsListVariants, useSidebar, userbarVariants, validateFile };