@3w-witim/ui 0.1.0 → 0.3.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,6 +1,6 @@
1
1
  import { clsx } from 'clsx';
2
2
  import { twMerge } from 'tailwind-merge';
3
- import * as React16 from 'react';
3
+ import * as React17 from 'react';
4
4
  import { Slot } from '@radix-ui/react-slot';
5
5
  import { cva } from 'class-variance-authority';
6
6
  import { jsx, jsxs } from 'react/jsx-runtime';
@@ -36,7 +36,7 @@ var buttonVariants = cva(
36
36
  }
37
37
  }
38
38
  );
39
- var Button = React16.forwardRef(
39
+ var Button = React17.forwardRef(
40
40
  ({ className, variant, size, asChild = false, ...props }, ref) => {
41
41
  const Comp = asChild ? Slot : "button";
42
42
  return /* @__PURE__ */ jsx(
@@ -70,7 +70,7 @@ var inputVariants = cva(
70
70
  }
71
71
  }
72
72
  );
73
- var Input = React16.forwardRef(
73
+ var Input = React17.forwardRef(
74
74
  ({
75
75
  className,
76
76
  type = "text",
@@ -84,7 +84,7 @@ var Input = React16.forwardRef(
84
84
  ...props
85
85
  }, ref) => {
86
86
  const isError = state === "error";
87
- const reactId = React16.useId();
87
+ const reactId = React17.useId();
88
88
  const helperId = helperText ? `${id ?? reactId}-helper` : void 0;
89
89
  const describedBy = [ariaDescribedby, helperId].filter(Boolean).join(" ") || void 0;
90
90
  return /* @__PURE__ */ jsxs("div", { className: "flex w-full flex-col gap-1.5", children: [
@@ -188,7 +188,7 @@ var textareaVariants = cva(
188
188
  }
189
189
  }
190
190
  );
191
- var Textarea = React16.forwardRef(
191
+ var Textarea = React17.forwardRef(
192
192
  ({ className, state, size, "aria-invalid": ariaInvalid, ...props }, ref) => {
193
193
  return /* @__PURE__ */ jsx(
194
194
  "textarea",
@@ -214,7 +214,7 @@ var cardVariants = cva("rounded-lg text-text-default transition-colors", {
214
214
  variant: "default"
215
215
  }
216
216
  });
217
- var Card = React16.forwardRef(
217
+ var Card = React17.forwardRef(
218
218
  ({ className, variant, ...props }, ref) => /* @__PURE__ */ jsx(
219
219
  "div",
220
220
  {
@@ -225,7 +225,7 @@ var Card = React16.forwardRef(
225
225
  )
226
226
  );
227
227
  Card.displayName = "Card";
228
- var CardHeader = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
228
+ var CardHeader = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
229
229
  "div",
230
230
  {
231
231
  ref,
@@ -234,7 +234,7 @@ var CardHeader = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE
234
234
  }
235
235
  ));
236
236
  CardHeader.displayName = "CardHeader";
237
- var CardTitle = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
237
+ var CardTitle = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
238
238
  "div",
239
239
  {
240
240
  ref,
@@ -246,7 +246,7 @@ var CardTitle = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE_
246
246
  }
247
247
  ));
248
248
  CardTitle.displayName = "CardTitle";
249
- var CardDescription = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
249
+ var CardDescription = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
250
250
  "div",
251
251
  {
252
252
  ref,
@@ -255,9 +255,9 @@ var CardDescription = React16.forwardRef(({ className, ...props }, ref) => /* @_
255
255
  }
256
256
  ));
257
257
  CardDescription.displayName = "CardDescription";
258
- var CardContent = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("p-5 pt-0", className), ...props }));
258
+ var CardContent = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("p-5 pt-0", className), ...props }));
259
259
  CardContent.displayName = "CardContent";
260
- var CardFooter = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
260
+ var CardFooter = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
261
261
  "div",
262
262
  {
263
263
  ref,
@@ -266,7 +266,7 @@ var CardFooter = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE
266
266
  }
267
267
  ));
268
268
  CardFooter.displayName = "CardFooter";
269
- var ScrollArea = React16.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
269
+ var ScrollArea = React17.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
270
270
  ScrollAreaPrimitive.Root,
271
271
  {
272
272
  ref,
@@ -280,7 +280,7 @@ var ScrollArea = React16.forwardRef(({ className, children, ...props }, ref) =>
280
280
  }
281
281
  ));
282
282
  ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
283
- var ScrollBar = React16.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsx(
283
+ var ScrollBar = React17.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsx(
284
284
  ScrollAreaPrimitive.ScrollAreaScrollbar,
285
285
  {
286
286
  ref,
@@ -311,7 +311,7 @@ var labelVariants = cva(
311
311
  }
312
312
  }
313
313
  );
314
- var Label = React16.forwardRef(
314
+ var Label = React17.forwardRef(
315
315
  ({ className, variant, ...props }, ref) => {
316
316
  return /* @__PURE__ */ jsx(
317
317
  "span",
@@ -336,7 +336,7 @@ var skeletonVariants = cva("animate-pulse bg-border-subtle", {
336
336
  variant: "rect"
337
337
  }
338
338
  });
339
- var Skeleton = React16.forwardRef(
339
+ var Skeleton = React17.forwardRef(
340
340
  ({ className, variant, ...props }, ref) => {
341
341
  return /* @__PURE__ */ jsx(
342
342
  "div",
@@ -385,7 +385,7 @@ function clamp(value) {
385
385
  if (Number.isNaN(value)) return 0;
386
386
  return Math.min(100, Math.max(0, value));
387
387
  }
388
- var Progress = React16.forwardRef(
388
+ var Progress = React17.forwardRef(
389
389
  ({
390
390
  className,
391
391
  size,
@@ -452,9 +452,9 @@ var CheckIcon = ({ className }) => /* @__PURE__ */ jsx(
452
452
  )
453
453
  }
454
454
  );
455
- var Checkbox = React16.forwardRef(
455
+ var Checkbox = React17.forwardRef(
456
456
  ({ className, state, error, label, id, disabled, "aria-invalid": ariaInvalid, ...props }, ref) => {
457
- const reactId = React16.useId();
457
+ const reactId = React17.useId();
458
458
  const inputId = id ?? reactId;
459
459
  const resolvedState = error ? "error" : state ?? "default";
460
460
  const isInvalid = resolvedState === "error";
@@ -498,10 +498,10 @@ var Checkbox = React16.forwardRef(
498
498
  }
499
499
  );
500
500
  Checkbox.displayName = "Checkbox";
501
- var RadioGroupContext = React16.createContext(
501
+ var RadioGroupContext = React17.createContext(
502
502
  null
503
503
  );
504
- var RadioGroup = React16.forwardRef(
504
+ var RadioGroup = React17.forwardRef(
505
505
  ({
506
506
  className,
507
507
  name,
@@ -513,17 +513,17 @@ var RadioGroup = React16.forwardRef(
513
513
  children,
514
514
  ...props
515
515
  }, ref) => {
516
- const [internalValue, setInternalValue] = React16.useState(defaultValue);
516
+ const [internalValue, setInternalValue] = React17.useState(defaultValue);
517
517
  const isControlled = value !== void 0;
518
518
  const currentValue = isControlled ? value : internalValue;
519
- const handleValueChange = React16.useCallback(
519
+ const handleValueChange = React17.useCallback(
520
520
  (next) => {
521
521
  if (!isControlled) setInternalValue(next);
522
522
  onValueChange?.(next);
523
523
  },
524
524
  [isControlled, onValueChange]
525
525
  );
526
- const ctx = React16.useMemo(
526
+ const ctx = React17.useMemo(
527
527
  () => ({
528
528
  name,
529
529
  value: currentValue,
@@ -575,7 +575,7 @@ var radioDotVariants = cva(
575
575
  }
576
576
  }
577
577
  );
578
- var Radio = React16.forwardRef(
578
+ var Radio = React17.forwardRef(
579
579
  ({
580
580
  className,
581
581
  id,
@@ -591,12 +591,12 @@ var Radio = React16.forwardRef(
591
591
  onClick,
592
592
  ...props
593
593
  }, ref) => {
594
- const group = React16.useContext(RadioGroupContext);
595
- const reactId = React16.useId();
594
+ const group = React17.useContext(RadioGroupContext);
595
+ const reactId = React17.useId();
596
596
  const inputId = id ?? reactId;
597
597
  const isGroup = group != null;
598
598
  const isControlled = checkedProp !== void 0;
599
- const [internalChecked, setInternalChecked] = React16.useState(false);
599
+ const [internalChecked, setInternalChecked] = React17.useState(false);
600
600
  const name = nameProp ?? group?.name;
601
601
  const disabled = disabledProp ?? group?.disabled ?? false;
602
602
  const error = errorProp ?? group?.error ?? false;
@@ -725,7 +725,7 @@ var toggleThumbVariants = cva(
725
725
  }
726
726
  }
727
727
  );
728
- var Toggle = React16.forwardRef(
728
+ var Toggle = React17.forwardRef(
729
729
  ({
730
730
  className,
731
731
  size,
@@ -737,7 +737,7 @@ var Toggle = React16.forwardRef(
737
737
  ...props
738
738
  }, ref) => {
739
739
  const isControlled = checked !== void 0;
740
- const [internalChecked, setInternalChecked] = React16.useState(defaultChecked);
740
+ const [internalChecked, setInternalChecked] = React17.useState(defaultChecked);
741
741
  const isOn = isControlled ? checked : internalChecked;
742
742
  const state = isOn ? "on" : "off";
743
743
  const handleClick = (event) => {
@@ -805,7 +805,7 @@ var CloseIcon = () => /* @__PURE__ */ jsx(
805
805
  children: /* @__PURE__ */ jsx("path", { d: "M4 4l8 8M12 4l-8 8" })
806
806
  }
807
807
  );
808
- var Chip = React16.forwardRef(
808
+ var Chip = React17.forwardRef(
809
809
  ({
810
810
  className,
811
811
  variant,
@@ -856,6 +856,50 @@ var Chip = React16.forwardRef(
856
856
  }
857
857
  );
858
858
  Chip.displayName = "Chip";
859
+ var reactionPillVariants = cva(
860
+ "inline-flex items-center rounded-lg border font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus focus-visible:ring-offset-2 focus-visible:ring-offset-bg-base disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",
861
+ {
862
+ variants: {
863
+ state: {
864
+ default: "border-border-subtle bg-surface-default text-text-default hover:border-border-default active:bg-surface-pressed",
865
+ selected: "border-brand-border bg-brand-subtle text-brand-text hover:bg-brand-subtle active:bg-brand-subtle"
866
+ },
867
+ size: {
868
+ sm: "h-[22px] gap-[3px] px-[7px] text-[11px]",
869
+ md: "h-[26px] gap-[5px] px-[9px] text-xs"
870
+ }
871
+ },
872
+ defaultVariants: {
873
+ state: "default",
874
+ size: "md"
875
+ }
876
+ }
877
+ );
878
+ var ReactionPill = React17.forwardRef(
879
+ ({ className, emoji, count, active = false, size, ...props }, ref) => {
880
+ return /* @__PURE__ */ jsxs(
881
+ "button",
882
+ {
883
+ type: "button",
884
+ ref,
885
+ "aria-pressed": active,
886
+ className: cn(
887
+ reactionPillVariants({
888
+ state: active ? "selected" : "default",
889
+ size
890
+ }),
891
+ className
892
+ ),
893
+ ...props,
894
+ children: [
895
+ /* @__PURE__ */ jsx("span", { className: "leading-none", children: emoji }),
896
+ /* @__PURE__ */ jsx("span", { className: "tabular-nums", children: count })
897
+ ]
898
+ }
899
+ );
900
+ }
901
+ );
902
+ ReactionPill.displayName = "ReactionPill";
859
903
  var alertVariants = cva(
860
904
  "relative flex gap-3 rounded-lg border p-3 [&>svg]:size-5 [&>svg]:shrink-0 [&>svg]:mt-0.5",
861
905
  {
@@ -870,7 +914,7 @@ var alertVariants = cva(
870
914
  }
871
915
  }
872
916
  );
873
- var Alert = React16.forwardRef(
917
+ var Alert = React17.forwardRef(
874
918
  ({ className, variant, role = "alert", ...props }, ref) => /* @__PURE__ */ jsx(
875
919
  "div",
876
920
  {
@@ -882,7 +926,7 @@ var Alert = React16.forwardRef(
882
926
  )
883
927
  );
884
928
  Alert.displayName = "Alert";
885
- var AlertTitle = React16.forwardRef(
929
+ var AlertTitle = React17.forwardRef(
886
930
  ({ className, ...props }, ref) => /* @__PURE__ */ jsx(
887
931
  "p",
888
932
  {
@@ -896,7 +940,7 @@ var AlertTitle = React16.forwardRef(
896
940
  )
897
941
  );
898
942
  AlertTitle.displayName = "AlertTitle";
899
- var AlertDescription = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
943
+ var AlertDescription = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
900
944
  "p",
901
945
  {
902
946
  ref,
@@ -1029,7 +1073,7 @@ function MascotImage({
1029
1073
  }
1030
1074
  );
1031
1075
  }
1032
- var Avatar = React16.forwardRef(
1076
+ var Avatar = React17.forwardRef(
1033
1077
  ({ className, size = "sm", src, alt, color, presence, children, ...props }, ref) => {
1034
1078
  const resolvedSize = size ?? "sm";
1035
1079
  return (
@@ -1070,9 +1114,9 @@ var Avatar = React16.forwardRef(
1070
1114
  }
1071
1115
  );
1072
1116
  Avatar.displayName = "Avatar";
1073
- var AvatarImage = React16.forwardRef(
1117
+ var AvatarImage = React17.forwardRef(
1074
1118
  ({ className, alt = "", color, seed, ...props }, ref) => {
1075
- const [errored, setErrored] = React16.useState(false);
1119
+ const [errored, setErrored] = React17.useState(false);
1076
1120
  if (errored) {
1077
1121
  return /* @__PURE__ */ jsx(MascotImage, { color, seed: seed ?? alt, alt });
1078
1122
  }
@@ -1089,7 +1133,7 @@ var AvatarImage = React16.forwardRef(
1089
1133
  }
1090
1134
  );
1091
1135
  AvatarImage.displayName = "AvatarImage";
1092
- var AvatarFallback = React16.forwardRef(
1136
+ var AvatarFallback = React17.forwardRef(
1093
1137
  ({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1094
1138
  "span",
1095
1139
  {
@@ -1103,9 +1147,9 @@ var AvatarFallback = React16.forwardRef(
1103
1147
  )
1104
1148
  );
1105
1149
  AvatarFallback.displayName = "AvatarFallback";
1106
- var AvatarGroup = React16.forwardRef(
1150
+ var AvatarGroup = React17.forwardRef(
1107
1151
  ({ className, children, max, size = "sm", ...props }, ref) => {
1108
- const items = React16.Children.toArray(children).filter(React16.isValidElement);
1152
+ const items = React17.Children.toArray(children).filter(React17.isValidElement);
1109
1153
  const visible = typeof max === "number" ? items.slice(0, max) : items;
1110
1154
  const overflow = items.length - visible.length;
1111
1155
  return /* @__PURE__ */ jsxs("div", { ref, className: cn("flex items-center", className), ...props, children: [
@@ -1169,7 +1213,7 @@ var tooltipArrowVariants = cva(
1169
1213
  }
1170
1214
  }
1171
1215
  );
1172
- var Tooltip = React16.forwardRef(
1216
+ var Tooltip = React17.forwardRef(
1173
1217
  ({
1174
1218
  className,
1175
1219
  content,
@@ -1180,10 +1224,10 @@ var Tooltip = React16.forwardRef(
1180
1224
  disabled = false,
1181
1225
  ...props
1182
1226
  }, ref) => {
1183
- const [hovered, setHovered] = React16.useState(false);
1227
+ const [hovered, setHovered] = React17.useState(false);
1184
1228
  const isControlled = open !== void 0;
1185
1229
  const visible = !disabled && (isControlled ? open : hovered);
1186
- const tooltipId = React16.useId();
1230
+ const tooltipId = React17.useId();
1187
1231
  return /* @__PURE__ */ jsxs(
1188
1232
  "div",
1189
1233
  {
@@ -1227,20 +1271,20 @@ var Tooltip = React16.forwardRef(
1227
1271
  }
1228
1272
  );
1229
1273
  Tooltip.displayName = "Tooltip";
1230
- var DropdownMenuContext = React16.createContext(null);
1274
+ var DropdownMenuContext = React17.createContext(null);
1231
1275
  function useDropdownMenuContext(component) {
1232
- const ctx = React16.useContext(DropdownMenuContext);
1276
+ const ctx = React17.useContext(DropdownMenuContext);
1233
1277
  if (!ctx) {
1234
1278
  throw new Error(`${component} must be used within <DropdownMenu>`);
1235
1279
  }
1236
1280
  return ctx;
1237
1281
  }
1238
- var DropdownMenu = React16.forwardRef(
1282
+ var DropdownMenu = React17.forwardRef(
1239
1283
  ({ className, open: openProp, defaultOpen = false, onOpenChange, ...props }, ref) => {
1240
- const [uncontrolledOpen, setUncontrolledOpen] = React16.useState(defaultOpen);
1284
+ const [uncontrolledOpen, setUncontrolledOpen] = React17.useState(defaultOpen);
1241
1285
  const isControlled = openProp !== void 0;
1242
1286
  const open = isControlled ? openProp : uncontrolledOpen;
1243
- const setOpen = React16.useCallback(
1287
+ const setOpen = React17.useCallback(
1244
1288
  (value) => {
1245
1289
  const next = typeof value === "function" ? value(open) : value;
1246
1290
  if (!isControlled) setUncontrolledOpen(next);
@@ -1248,7 +1292,7 @@ var DropdownMenu = React16.forwardRef(
1248
1292
  },
1249
1293
  [isControlled, onOpenChange, open]
1250
1294
  );
1251
- const ctx = React16.useMemo(() => ({ open, setOpen }), [open, setOpen]);
1295
+ const ctx = React17.useMemo(() => ({ open, setOpen }), [open, setOpen]);
1252
1296
  return /* @__PURE__ */ jsx(DropdownMenuContext.Provider, { value: ctx, children: /* @__PURE__ */ jsx(
1253
1297
  "div",
1254
1298
  {
@@ -1260,7 +1304,7 @@ var DropdownMenu = React16.forwardRef(
1260
1304
  }
1261
1305
  );
1262
1306
  DropdownMenu.displayName = "DropdownMenu";
1263
- var DropdownMenuTrigger = React16.forwardRef(({ className, onClick, disabled, ...props }, ref) => {
1307
+ var DropdownMenuTrigger = React17.forwardRef(({ className, onClick, disabled, ...props }, ref) => {
1264
1308
  const { open, setOpen } = useDropdownMenuContext("DropdownMenuTrigger");
1265
1309
  return /* @__PURE__ */ jsx(
1266
1310
  "button",
@@ -1298,7 +1342,7 @@ var dropdownMenuContentVariants = cva(
1298
1342
  }
1299
1343
  }
1300
1344
  );
1301
- var DropdownMenuContent = React16.forwardRef(({ className, align, forceMount = false, ...props }, ref) => {
1345
+ var DropdownMenuContent = React17.forwardRef(({ className, align, forceMount = false, ...props }, ref) => {
1302
1346
  const { open } = useDropdownMenuContext("DropdownMenuContent");
1303
1347
  if (!open && !forceMount) return null;
1304
1348
  return /* @__PURE__ */ jsx(
@@ -1331,7 +1375,7 @@ var dropdownMenuItemVariants = cva(
1331
1375
  }
1332
1376
  }
1333
1377
  );
1334
- var DropdownMenuItem = React16.forwardRef(
1378
+ var DropdownMenuItem = React17.forwardRef(
1335
1379
  ({
1336
1380
  className,
1337
1381
  variant,
@@ -1362,7 +1406,7 @@ var DropdownMenuItem = React16.forwardRef(
1362
1406
  }
1363
1407
  );
1364
1408
  DropdownMenuItem.displayName = "DropdownMenuItem";
1365
- var DropdownMenuLabel = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1409
+ var DropdownMenuLabel = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1366
1410
  "div",
1367
1411
  {
1368
1412
  ref,
@@ -1374,7 +1418,7 @@ var DropdownMenuLabel = React16.forwardRef(({ className, ...props }, ref) => /*
1374
1418
  }
1375
1419
  ));
1376
1420
  DropdownMenuLabel.displayName = "DropdownMenuLabel";
1377
- var DropdownMenuSeparator = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1421
+ var DropdownMenuSeparator = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1378
1422
  "div",
1379
1423
  {
1380
1424
  ref,
@@ -1385,7 +1429,7 @@ var DropdownMenuSeparator = React16.forwardRef(({ className, ...props }, ref) =>
1385
1429
  }
1386
1430
  ));
1387
1431
  DropdownMenuSeparator.displayName = "DropdownMenuSeparator";
1388
- var DropdownMenuEmpty = React16.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(
1432
+ var DropdownMenuEmpty = React17.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(
1389
1433
  "div",
1390
1434
  {
1391
1435
  ref,
@@ -1441,7 +1485,7 @@ var CheckIcon3 = ({ className }) => /* @__PURE__ */ jsx(
1441
1485
  children: /* @__PURE__ */ jsx("path", { d: "m4.5 10.5 3.5 3.5 7.5-8" })
1442
1486
  }
1443
1487
  );
1444
- var Select = React16.forwardRef(
1488
+ var Select = React17.forwardRef(
1445
1489
  ({
1446
1490
  className,
1447
1491
  state,
@@ -1455,8 +1499,8 @@ var Select = React16.forwardRef(
1455
1499
  "aria-label": ariaLabel,
1456
1500
  ...props
1457
1501
  }, ref) => {
1458
- const [open, setOpen] = React16.useState(defaultOpen);
1459
- const selected = React16.useMemo(
1502
+ const [open, setOpen] = React17.useState(defaultOpen);
1503
+ const selected = React17.useMemo(
1460
1504
  () => options.find((o) => o.value === value),
1461
1505
  [options, value]
1462
1506
  );
@@ -1539,7 +1583,7 @@ var Select = React16.forwardRef(
1539
1583
  }
1540
1584
  );
1541
1585
  Select.displayName = "Select";
1542
- var DialogOverlay = React16.forwardRef(
1586
+ var DialogOverlay = React17.forwardRef(
1543
1587
  ({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1544
1588
  "div",
1545
1589
  {
@@ -1568,7 +1612,7 @@ var dialogPanelVariants = cva(
1568
1612
  }
1569
1613
  }
1570
1614
  );
1571
- var Dialog = React16.forwardRef(
1615
+ var Dialog = React17.forwardRef(
1572
1616
  ({
1573
1617
  open = true,
1574
1618
  onOpenChange,
@@ -1612,7 +1656,7 @@ var Dialog = React16.forwardRef(
1612
1656
  }
1613
1657
  );
1614
1658
  Dialog.displayName = "Dialog";
1615
- var DialogHeader = React16.forwardRef(
1659
+ var DialogHeader = React17.forwardRef(
1616
1660
  ({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1617
1661
  "div",
1618
1662
  {
@@ -1623,7 +1667,7 @@ var DialogHeader = React16.forwardRef(
1623
1667
  )
1624
1668
  );
1625
1669
  DialogHeader.displayName = "DialogHeader";
1626
- var DialogTitle = React16.forwardRef(
1670
+ var DialogTitle = React17.forwardRef(
1627
1671
  ({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1628
1672
  "h2",
1629
1673
  {
@@ -1637,7 +1681,7 @@ var DialogTitle = React16.forwardRef(
1637
1681
  )
1638
1682
  );
1639
1683
  DialogTitle.displayName = "DialogTitle";
1640
- var DialogDescription = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1684
+ var DialogDescription = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1641
1685
  "p",
1642
1686
  {
1643
1687
  ref,
@@ -1646,7 +1690,7 @@ var DialogDescription = React16.forwardRef(({ className, ...props }, ref) => /*
1646
1690
  }
1647
1691
  ));
1648
1692
  DialogDescription.displayName = "DialogDescription";
1649
- var DialogBody = React16.forwardRef(
1693
+ var DialogBody = React17.forwardRef(
1650
1694
  ({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1651
1695
  "div",
1652
1696
  {
@@ -1657,7 +1701,7 @@ var DialogBody = React16.forwardRef(
1657
1701
  )
1658
1702
  );
1659
1703
  DialogBody.displayName = "DialogBody";
1660
- var DialogFooter = React16.forwardRef(
1704
+ var DialogFooter = React17.forwardRef(
1661
1705
  ({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1662
1706
  "div",
1663
1707
  {
@@ -1697,7 +1741,7 @@ var sheetPanelVariants = cva(
1697
1741
  defaultVariants: { side: "bottom" }
1698
1742
  }
1699
1743
  );
1700
- var Sheet = React16.forwardRef(
1744
+ var Sheet = React17.forwardRef(
1701
1745
  ({
1702
1746
  className,
1703
1747
  side = "bottom",
@@ -1749,7 +1793,7 @@ var Sheet = React16.forwardRef(
1749
1793
  }
1750
1794
  );
1751
1795
  Sheet.displayName = "Sheet";
1752
- var SheetHandle = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1796
+ var SheetHandle = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1753
1797
  "div",
1754
1798
  {
1755
1799
  ref,
@@ -1762,7 +1806,7 @@ var SheetHandle = React16.forwardRef(({ className, ...props }, ref) => /* @__PUR
1762
1806
  }
1763
1807
  ));
1764
1808
  SheetHandle.displayName = "SheetHandle";
1765
- var SheetHeader = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1809
+ var SheetHeader = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1766
1810
  "div",
1767
1811
  {
1768
1812
  ref,
@@ -1771,7 +1815,7 @@ var SheetHeader = React16.forwardRef(({ className, ...props }, ref) => /* @__PUR
1771
1815
  }
1772
1816
  ));
1773
1817
  SheetHeader.displayName = "SheetHeader";
1774
- var SheetTitle = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1818
+ var SheetTitle = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1775
1819
  "h2",
1776
1820
  {
1777
1821
  ref,
@@ -1780,7 +1824,7 @@ var SheetTitle = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE
1780
1824
  }
1781
1825
  ));
1782
1826
  SheetTitle.displayName = "SheetTitle";
1783
- var SheetDescription = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1827
+ var SheetDescription = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1784
1828
  "p",
1785
1829
  {
1786
1830
  ref,
@@ -1789,7 +1833,7 @@ var SheetDescription = React16.forwardRef(({ className, ...props }, ref) => /* @
1789
1833
  }
1790
1834
  ));
1791
1835
  SheetDescription.displayName = "SheetDescription";
1792
- var SheetBody = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1836
+ var SheetBody = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1793
1837
  "div",
1794
1838
  {
1795
1839
  ref,
@@ -1798,7 +1842,7 @@ var SheetBody = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE_
1798
1842
  }
1799
1843
  ));
1800
1844
  SheetBody.displayName = "SheetBody";
1801
- var SheetFooter = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1845
+ var SheetFooter = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1802
1846
  "div",
1803
1847
  {
1804
1848
  ref,
@@ -1810,30 +1854,30 @@ var SheetFooter = React16.forwardRef(({ className, ...props }, ref) => /* @__PUR
1810
1854
  }
1811
1855
  ));
1812
1856
  SheetFooter.displayName = "SheetFooter";
1813
- var TabsContext = React16.createContext(null);
1857
+ var TabsContext = React17.createContext(null);
1814
1858
  function useTabsContext(component) {
1815
- const ctx = React16.useContext(TabsContext);
1859
+ const ctx = React17.useContext(TabsContext);
1816
1860
  if (!ctx) {
1817
1861
  throw new Error(`<${component}> must be used within <Tabs>`);
1818
1862
  }
1819
1863
  return ctx;
1820
1864
  }
1821
- var Tabs = React16.forwardRef(
1865
+ var Tabs = React17.forwardRef(
1822
1866
  ({ className, value, defaultValue, onValueChange, children, ...props }, ref) => {
1823
- const baseId = React16.useId();
1824
- const [internalValue, setInternalValue] = React16.useState(
1867
+ const baseId = React17.useId();
1868
+ const [internalValue, setInternalValue] = React17.useState(
1825
1869
  defaultValue ?? ""
1826
1870
  );
1827
1871
  const isControlled = value !== void 0;
1828
1872
  const activeValue = isControlled ? value : internalValue;
1829
- const setValue = React16.useCallback(
1873
+ const setValue = React17.useCallback(
1830
1874
  (next) => {
1831
1875
  if (!isControlled) setInternalValue(next);
1832
1876
  onValueChange?.(next);
1833
1877
  },
1834
1878
  [isControlled, onValueChange]
1835
1879
  );
1836
- const ctx = React16.useMemo(
1880
+ const ctx = React17.useMemo(
1837
1881
  () => ({ value: activeValue, setValue, baseId }),
1838
1882
  [activeValue, setValue, baseId]
1839
1883
  );
@@ -1855,7 +1899,7 @@ var tabsListVariants = cva(
1855
1899
  }
1856
1900
  }
1857
1901
  );
1858
- var TabsList = React16.forwardRef(
1902
+ var TabsList = React17.forwardRef(
1859
1903
  ({ className, fullWidth, ...props }, ref) => /* @__PURE__ */ jsx(
1860
1904
  "div",
1861
1905
  {
@@ -1889,7 +1933,7 @@ var tabsTriggerVariants = cva(
1889
1933
  }
1890
1934
  }
1891
1935
  );
1892
- var TabsTrigger = React16.forwardRef(
1936
+ var TabsTrigger = React17.forwardRef(
1893
1937
  ({ className, value, disabled, ...props }, ref) => {
1894
1938
  const { value: activeValue, setValue, baseId } = useTabsContext("TabsTrigger");
1895
1939
  const isActive = activeValue === value;
@@ -1913,7 +1957,7 @@ var TabsTrigger = React16.forwardRef(
1913
1957
  }
1914
1958
  );
1915
1959
  TabsTrigger.displayName = "TabsTrigger";
1916
- var TabsContent = React16.forwardRef(
1960
+ var TabsContent = React17.forwardRef(
1917
1961
  ({ className, value, forceMount, children, ...props }, ref) => {
1918
1962
  const { value: activeValue, baseId } = useTabsContext("TabsContent");
1919
1963
  const isActive = activeValue === value;
@@ -1953,7 +1997,7 @@ var tableVariants = cva(
1953
1997
  }
1954
1998
  }
1955
1999
  );
1956
- var Table = React16.forwardRef(
2000
+ var Table = React17.forwardRef(
1957
2001
  ({ className, density, containerProps, ...props }, ref) => /* @__PURE__ */ jsx(
1958
2002
  "div",
1959
2003
  {
@@ -1971,7 +2015,7 @@ var Table = React16.forwardRef(
1971
2015
  )
1972
2016
  );
1973
2017
  Table.displayName = "Table";
1974
- var TableHeader = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
2018
+ var TableHeader = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1975
2019
  "thead",
1976
2020
  {
1977
2021
  ref,
@@ -1980,7 +2024,7 @@ var TableHeader = React16.forwardRef(({ className, ...props }, ref) => /* @__PUR
1980
2024
  }
1981
2025
  ));
1982
2026
  TableHeader.displayName = "TableHeader";
1983
- var TableBody = React16.forwardRef(
2027
+ var TableBody = React17.forwardRef(
1984
2028
  ({ className, ...props }, ref) => /* @__PURE__ */ jsx("tbody", { ref, className: cn("", className), ...props })
1985
2029
  );
1986
2030
  TableBody.displayName = "TableBody";
@@ -1998,7 +2042,7 @@ var tableRowVariants = cva(
1998
2042
  }
1999
2043
  }
2000
2044
  );
2001
- var TableRow = React16.forwardRef(
2045
+ var TableRow = React17.forwardRef(
2002
2046
  ({ className, interactive, selected, ...props }, ref) => /* @__PURE__ */ jsx(
2003
2047
  "tr",
2004
2048
  {
@@ -2011,7 +2055,7 @@ var TableRow = React16.forwardRef(
2011
2055
  )
2012
2056
  );
2013
2057
  TableRow.displayName = "TableRow";
2014
- var TableHead = React16.forwardRef(
2058
+ var TableHead = React17.forwardRef(
2015
2059
  ({ className, sort, children, ...props }, ref) => /* @__PURE__ */ jsx(
2016
2060
  "th",
2017
2061
  {
@@ -2032,7 +2076,7 @@ var TableHead = React16.forwardRef(
2032
2076
  )
2033
2077
  );
2034
2078
  TableHead.displayName = "TableHead";
2035
- var TableCell = React16.forwardRef(
2079
+ var TableCell = React17.forwardRef(
2036
2080
  ({ className, ...props }, ref) => /* @__PURE__ */ jsx(
2037
2081
  "td",
2038
2082
  {
@@ -2046,7 +2090,7 @@ var TableCell = React16.forwardRef(
2046
2090
  )
2047
2091
  );
2048
2092
  TableCell.displayName = "TableCell";
2049
- var TableCaption = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
2093
+ var TableCaption = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
2050
2094
  "caption",
2051
2095
  {
2052
2096
  ref,
@@ -2112,7 +2156,7 @@ var EllipsisIcon = (props) => /* @__PURE__ */ jsxs(
2112
2156
  ]
2113
2157
  }
2114
2158
  );
2115
- var PaginationItem = React16.forwardRef(
2159
+ var PaginationItem = React17.forwardRef(
2116
2160
  ({ className, active, page, ...props }, ref) => {
2117
2161
  return /* @__PURE__ */ jsx(
2118
2162
  "button",
@@ -2129,7 +2173,7 @@ var PaginationItem = React16.forwardRef(
2129
2173
  }
2130
2174
  );
2131
2175
  PaginationItem.displayName = "PaginationItem";
2132
- var PaginationEllipsis = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs(
2176
+ var PaginationEllipsis = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs(
2133
2177
  "span",
2134
2178
  {
2135
2179
  ref,
@@ -2146,7 +2190,7 @@ var PaginationEllipsis = React16.forwardRef(({ className, ...props }, ref) => /*
2146
2190
  }
2147
2191
  ));
2148
2192
  PaginationEllipsis.displayName = "PaginationEllipsis";
2149
- var PaginationPrevious = React16.forwardRef(({ className, disabled, ...props }, ref) => /* @__PURE__ */ jsx(
2193
+ var PaginationPrevious = React17.forwardRef(({ className, disabled, ...props }, ref) => /* @__PURE__ */ jsx(
2150
2194
  "button",
2151
2195
  {
2152
2196
  ref,
@@ -2159,7 +2203,7 @@ var PaginationPrevious = React16.forwardRef(({ className, disabled, ...props },
2159
2203
  }
2160
2204
  ));
2161
2205
  PaginationPrevious.displayName = "PaginationPrevious";
2162
- var PaginationNext = React16.forwardRef(
2206
+ var PaginationNext = React17.forwardRef(
2163
2207
  ({ className, disabled, ...props }, ref) => /* @__PURE__ */ jsx(
2164
2208
  "button",
2165
2209
  {
@@ -2199,7 +2243,7 @@ function buildPageRange(current, total, siblingCount = 1) {
2199
2243
  }
2200
2244
  return range;
2201
2245
  }
2202
- var Pagination = React16.forwardRef(
2246
+ var Pagination = React17.forwardRef(
2203
2247
  ({
2204
2248
  className,
2205
2249
  totalPages,
@@ -2287,7 +2331,7 @@ var segmentItemVariants = cva(
2287
2331
  }
2288
2332
  }
2289
2333
  );
2290
- var SegmentedControl = React16.forwardRef(
2334
+ var SegmentedControl = React17.forwardRef(
2291
2335
  ({
2292
2336
  className,
2293
2337
  items,
@@ -2300,7 +2344,7 @@ var SegmentedControl = React16.forwardRef(
2300
2344
  ...props
2301
2345
  }, ref) => {
2302
2346
  const isControlled = value !== void 0;
2303
- const [internalValue, setInternalValue] = React16.useState(
2347
+ const [internalValue, setInternalValue] = React17.useState(
2304
2348
  defaultValue ?? items[0]?.value ?? ""
2305
2349
  );
2306
2350
  const currentValue = isControlled ? value : internalValue;
@@ -2431,7 +2475,7 @@ function CloseIcon2(props) {
2431
2475
  }
2432
2476
  );
2433
2477
  }
2434
- var Toast = React16.forwardRef(
2478
+ var Toast = React17.forwardRef(
2435
2479
  ({
2436
2480
  className,
2437
2481
  variant,
@@ -2624,7 +2668,7 @@ var SearchIcon = (props) => /* @__PURE__ */ jsxs(IconBase, { ...props, children:
2624
2668
  /* @__PURE__ */ jsx("path", { d: "m20 20-3.4-3.4" })
2625
2669
  ] });
2626
2670
  var XIcon = (props) => /* @__PURE__ */ jsx(IconBase, { ...props, children: /* @__PURE__ */ jsx("path", { d: "M18 6 6 18M6 6l12 12" }) });
2627
- var AccordionItem = React16.forwardRef(
2671
+ var AccordionItem = React17.forwardRef(
2628
2672
  ({ className, title, children, ...props }, ref) => /* @__PURE__ */ jsxs(
2629
2673
  "details",
2630
2674
  {
@@ -2651,7 +2695,7 @@ var AccordionItem = React16.forwardRef(
2651
2695
  )
2652
2696
  );
2653
2697
  AccordionItem.displayName = "AccordionItem";
2654
- var Accordion = React16.forwardRef(
2698
+ var Accordion = React17.forwardRef(
2655
2699
  ({ className, items, children, ...props }, ref) => /* @__PURE__ */ jsx(
2656
2700
  "div",
2657
2701
  {
@@ -2674,7 +2718,7 @@ var Accordion = React16.forwardRef(
2674
2718
  )
2675
2719
  );
2676
2720
  Accordion.displayName = "Accordion";
2677
- var KpiRow = React16.forwardRef(
2721
+ var KpiRow = React17.forwardRef(
2678
2722
  ({ items, className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("flex w-[360px] gap-2", className), ...props, children: items.map((k) => /* @__PURE__ */ jsxs(
2679
2723
  "div",
2680
2724
  {
@@ -2697,7 +2741,7 @@ var KpiRow = React16.forwardRef(
2697
2741
  )) })
2698
2742
  );
2699
2743
  KpiRow.displayName = "KpiRow";
2700
- var ProgressList = React16.forwardRef(
2744
+ var ProgressList = React17.forwardRef(
2701
2745
  ({ items, className, ...props }, ref) => /* @__PURE__ */ jsx(
2702
2746
  "div",
2703
2747
  {
@@ -2727,7 +2771,7 @@ var ProgressList = React16.forwardRef(
2727
2771
  )
2728
2772
  );
2729
2773
  ProgressList.displayName = "ProgressList";
2730
- var Ring = React16.forwardRef(
2774
+ var Ring = React17.forwardRef(
2731
2775
  ({ pct, size = 84, label, className, style, ...props }, ref) => /* @__PURE__ */ jsxs(
2732
2776
  "div",
2733
2777
  {
@@ -2769,7 +2813,7 @@ var Ring = React16.forwardRef(
2769
2813
  )
2770
2814
  );
2771
2815
  Ring.displayName = "Ring";
2772
- var StackBar = React16.forwardRef(
2816
+ var StackBar = React17.forwardRef(
2773
2817
  ({ segments, showLegend = true, className, ...props }, ref) => /* @__PURE__ */ jsxs("div", { ref, className: cn("w-[360px]", className), ...props, children: [
2774
2818
  /* @__PURE__ */ jsx("div", { className: "flex h-6 gap-0.5", children: segments.map((s, i) => /* @__PURE__ */ jsx(
2775
2819
  "div",
@@ -2815,7 +2859,7 @@ var BAR_BY_STATE = {
2815
2859
  unreached: "bg-brand-subtle",
2816
2860
  pending: "bg-surface-sunken"
2817
2861
  };
2818
- var WorkHoursBar = React16.forwardRef(
2862
+ var WorkHoursBar = React17.forwardRef(
2819
2863
  ({ data, max = 12, height = 120, caption, className, ...props }, ref) => /* @__PURE__ */ jsxs("div", { ref, className, ...props, children: [
2820
2864
  /* @__PURE__ */ jsx("div", { className: "flex items-end gap-3", children: data.map((d) => {
2821
2865
  const barH = d.state === "pending" ? 4 : d.hours / max * height;
@@ -2835,7 +2879,7 @@ var WorkHoursBar = React16.forwardRef(
2835
2879
  ] })
2836
2880
  );
2837
2881
  WorkHoursBar.displayName = "WorkHoursBar";
2838
- var Kbd = React16.forwardRef(
2882
+ var Kbd = React17.forwardRef(
2839
2883
  ({ active, className, children, ...props }, ref) => /* @__PURE__ */ jsx(
2840
2884
  "kbd",
2841
2885
  {
@@ -2851,7 +2895,7 @@ var Kbd = React16.forwardRef(
2851
2895
  )
2852
2896
  );
2853
2897
  Kbd.displayName = "Kbd";
2854
- var CommandPalette = React16.forwardRef(
2898
+ var CommandPalette = React17.forwardRef(
2855
2899
  ({
2856
2900
  groups,
2857
2901
  onSelect,
@@ -2909,7 +2953,7 @@ var CommandPalette = React16.forwardRef(
2909
2953
  }
2910
2954
  );
2911
2955
  CommandPalette.displayName = "CommandPalette";
2912
- var AvatarWithPresence = React16.forwardRef(
2956
+ var AvatarWithPresence = React17.forwardRef(
2913
2957
  ({
2914
2958
  name,
2915
2959
  status = "online",
@@ -2940,7 +2984,7 @@ var AvatarWithPresence = React16.forwardRef(
2940
2984
  ] })
2941
2985
  );
2942
2986
  AvatarWithPresence.displayName = "AvatarWithPresence";
2943
- var SidebarSection = React16.forwardRef(({ title, addable, onAdd, addLabel, className, children, ...props }, ref) => /* @__PURE__ */ jsxs("div", { ref, className, ...props, children: [
2987
+ var SidebarSection = React17.forwardRef(({ title, addable, onAdd, addLabel, className, children, ...props }, ref) => /* @__PURE__ */ jsxs("div", { ref, className, ...props, children: [
2944
2988
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1.5 px-2 pb-1.5 pt-2.5 text-xs font-semibold text-text-subtle", children: [
2945
2989
  title,
2946
2990
  addable && /* @__PURE__ */ jsx(
@@ -2959,7 +3003,7 @@ var SidebarSection = React16.forwardRef(({ title, addable, onAdd, addLabel, clas
2959
3003
  children
2960
3004
  ] }));
2961
3005
  SidebarSection.displayName = "SidebarSection";
2962
- var SidebarChannel = React16.forwardRef(({ name, icon, locked, active, badge, className, ...props }, ref) => {
3006
+ var SidebarChannel = React17.forwardRef(({ name, icon, locked, active, badge, className, ...props }, ref) => {
2963
3007
  const resolvedIcon = icon ?? (locked ? /* @__PURE__ */ jsx(LockIcon, { size: 17 }) : /* @__PURE__ */ jsx(HashIcon, { size: 17 }));
2964
3008
  return /* @__PURE__ */ jsxs(
2965
3009
  "button",
@@ -2991,7 +3035,7 @@ var SidebarChannel = React16.forwardRef(({ name, icon, locked, active, badge, cl
2991
3035
  );
2992
3036
  });
2993
3037
  SidebarChannel.displayName = "SidebarChannel";
2994
- var SidebarDm = React16.forwardRef(
3038
+ var SidebarDm = React17.forwardRef(
2995
3039
  ({ name, status = "online", color, avatarSrc, pinned, className, ...props }, ref) => /* @__PURE__ */ jsxs(
2996
3040
  "button",
2997
3041
  {
@@ -3040,7 +3084,7 @@ var sidebarContainerVariants = cva(
3040
3084
  defaultVariants: { variant: "panel" }
3041
3085
  }
3042
3086
  );
3043
- var SidebarPanel = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3087
+ var SidebarPanel = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3044
3088
  "div",
3045
3089
  {
3046
3090
  ref,
@@ -3049,7 +3093,7 @@ var SidebarPanel = React16.forwardRef(({ className, ...props }, ref) => /* @__PU
3049
3093
  }
3050
3094
  ));
3051
3095
  SidebarPanel.displayName = "SidebarPanel";
3052
- var Sidebar = React16.forwardRef(
3096
+ var Sidebar = React17.forwardRef(
3053
3097
  ({ sections, variant = "panel", className, ...props }, ref) => /* @__PURE__ */ jsx(
3054
3098
  "nav",
3055
3099
  {
@@ -3078,7 +3122,7 @@ var Sidebar = React16.forwardRef(
3078
3122
  )
3079
3123
  );
3080
3124
  Sidebar.displayName = "Sidebar";
3081
- var List = React16.forwardRef(
3125
+ var List = React17.forwardRef(
3082
3126
  ({ className, bordered = true, divided = true, ...props }, ref) => {
3083
3127
  return /* @__PURE__ */ jsx(
3084
3128
  "ul",
@@ -3096,7 +3140,7 @@ var List = React16.forwardRef(
3096
3140
  }
3097
3141
  );
3098
3142
  List.displayName = "List";
3099
- var ListItem = React16.forwardRef(
3143
+ var ListItem = React17.forwardRef(
3100
3144
  ({ className, leading, title, description, trailing, ...props }, ref) => {
3101
3145
  return /* @__PURE__ */ jsxs(
3102
3146
  "li",
@@ -3117,7 +3161,7 @@ var ListItem = React16.forwardRef(
3117
3161
  }
3118
3162
  );
3119
3163
  ListItem.displayName = "ListItem";
3120
- var SuccessCheck = React16.forwardRef(
3164
+ var SuccessCheck = React17.forwardRef(
3121
3165
  ({ size = 22, className, ...props }, ref) => /* @__PURE__ */ jsx(
3122
3166
  "span",
3123
3167
  {
@@ -3144,7 +3188,7 @@ var separatorVariants = cva("shrink-0 border-border-default", {
3144
3188
  orientation: "horizontal"
3145
3189
  }
3146
3190
  });
3147
- var Separator = React16.forwardRef(
3191
+ var Separator = React17.forwardRef(
3148
3192
  ({ className, orientation = "horizontal", label, decorative = false, ...props }, ref) => {
3149
3193
  const resolvedOrientation = orientation === "vertical" ? "vertical" : "horizontal";
3150
3194
  const ariaOrientation = label != null ? "horizontal" : resolvedOrientation;
@@ -3236,7 +3280,7 @@ var popoverContentVariants = cva(
3236
3280
  }
3237
3281
  }
3238
3282
  );
3239
- var Popover = React16.forwardRef(
3283
+ var Popover = React17.forwardRef(
3240
3284
  ({
3241
3285
  className,
3242
3286
  content,
@@ -3248,20 +3292,20 @@ var Popover = React16.forwardRef(
3248
3292
  onOpenChange,
3249
3293
  ...props
3250
3294
  }, ref) => {
3251
- const [uncontrolledOpen, setUncontrolledOpen] = React16.useState(defaultOpen);
3295
+ const [uncontrolledOpen, setUncontrolledOpen] = React17.useState(defaultOpen);
3252
3296
  const isControlled = openProp !== void 0;
3253
3297
  const open = isControlled ? openProp : uncontrolledOpen;
3254
- const innerRef = React16.useRef(null);
3255
- React16.useImperativeHandle(ref, () => innerRef.current, []);
3256
- const contentId = React16.useId();
3257
- const setOpen = React16.useCallback(
3298
+ const innerRef = React17.useRef(null);
3299
+ React17.useImperativeHandle(ref, () => innerRef.current, []);
3300
+ const contentId = React17.useId();
3301
+ const setOpen = React17.useCallback(
3258
3302
  (next) => {
3259
3303
  if (!isControlled) setUncontrolledOpen(next);
3260
3304
  onOpenChange?.(next);
3261
3305
  },
3262
3306
  [isControlled, onOpenChange]
3263
3307
  );
3264
- React16.useEffect(() => {
3308
+ React17.useEffect(() => {
3265
3309
  if (!open) return;
3266
3310
  const onPointerDown = (event) => {
3267
3311
  const node = innerRef.current;
@@ -3324,7 +3368,7 @@ var fieldVariants = cva("flex gap-1.5", {
3324
3368
  orientation: "vertical"
3325
3369
  }
3326
3370
  });
3327
- var Field = React16.forwardRef(
3371
+ var Field = React17.forwardRef(
3328
3372
  ({
3329
3373
  className,
3330
3374
  orientation = "vertical",
@@ -3337,11 +3381,11 @@ var Field = React16.forwardRef(
3337
3381
  children,
3338
3382
  ...props
3339
3383
  }, ref) => {
3340
- const reactId = React16.useId();
3384
+ const reactId = React17.useId();
3341
3385
  const controlId = htmlFor ?? reactId;
3342
3386
  const isHorizontal = orientation === "horizontal";
3343
3387
  const messageId = error ? `${controlId}-error` : hint ? `${controlId}-hint` : void 0;
3344
- const control = React16.isValidElement(children) ? React16.cloneElement(children, {
3388
+ const control = React17.isValidElement(children) ? React17.cloneElement(children, {
3345
3389
  id: children.props.id ?? controlId,
3346
3390
  "aria-invalid": error ? true : children.props["aria-invalid"],
3347
3391
  "aria-describedby": [children.props["aria-describedby"], messageId].filter(Boolean).join(" ") || void 0
@@ -3401,7 +3445,7 @@ var Field = React16.forwardRef(
3401
3445
  );
3402
3446
  Field.displayName = "Field";
3403
3447
  var accessoryButtonClass = "inline-flex size-6 shrink-0 items-center justify-center rounded text-text-subtle transition-colors hover:bg-surface-hover hover:text-text-default active:bg-surface-pressed focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-border disabled:pointer-events-none disabled:text-text-disabled";
3404
- var SearchField = React16.forwardRef(
3448
+ var SearchField = React17.forwardRef(
3405
3449
  ({
3406
3450
  className,
3407
3451
  value,
@@ -3417,12 +3461,12 @@ var SearchField = React16.forwardRef(
3417
3461
  ...props
3418
3462
  }, ref) => {
3419
3463
  const isControlled = value !== void 0;
3420
- const [internalValue, setInternalValue] = React16.useState(
3464
+ const [internalValue, setInternalValue] = React17.useState(
3421
3465
  defaultValue ?? ""
3422
3466
  );
3423
3467
  const currentValue = isControlled ? value : internalValue;
3424
- const innerRef = React16.useRef(null);
3425
- React16.useImperativeHandle(ref, () => innerRef.current);
3468
+ const innerRef = React17.useRef(null);
3469
+ React17.useImperativeHandle(ref, () => innerRef.current);
3426
3470
  const commit = (next) => {
3427
3471
  if (!isControlled) setInternalValue(next);
3428
3472
  onValueChange?.(next);
@@ -3530,7 +3574,7 @@ var bannerVariants = cva(
3530
3574
  }
3531
3575
  }
3532
3576
  );
3533
- var Banner = React16.forwardRef(
3577
+ var Banner = React17.forwardRef(
3534
3578
  ({
3535
3579
  className,
3536
3580
  variant,
@@ -3579,6 +3623,6 @@ var Banner = React16.forwardRef(
3579
3623
  );
3580
3624
  Banner.displayName = "Banner";
3581
3625
 
3582
- export { AVATAR_COLORS, Accordion, AccordionItem, Alert, AlertDescription, AlertTitle, Avatar, AvatarFallback, AvatarGroup, AvatarImage, AvatarWithPresence, Banner, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Chip, CommandPalette, Dialog, Button as DialogAction, DialogBody, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogTitle, DropdownMenu, DropdownMenuContent, DropdownMenuEmpty, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger, EmptyState, Field, Input, Kbd, KpiRow, Label, List, ListItem, PRESENCE_LABEL, Pagination, PaginationEllipsis, PaginationItem, PaginationNext, PaginationPrevious, Popover, Presence, Progress, ProgressList, Radio, RadioGroup, Ring, ScrollArea, ScrollBar, SearchField, SegmentedControl, Select, Separator, Sheet, SheetBody, SheetDescription, SheetFooter, SheetHandle, SheetHeader, SheetTitle, Sidebar, SidebarChannel, SidebarDm, SidebarPanel, SidebarSection, Skeleton, StackBar, SuccessCheck, Table, TableBody, TableCaption, TableCell, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toast, Toggle, Tooltip, WorkHoursBar, alertVariants, avatarVariants, bannerVariants, buildPageRange, buttonVariants, cardVariants, checkboxVariants, chipVariants, cn, dialogPanelVariants, dropdownMenuContentVariants, dropdownMenuItemVariants, fieldVariants, inputVariants, labelVariants, paginationItemVariants, popoverContentVariants, progressFillVariants, progressTrackVariants, radioVariants, segmentContainerVariants, segmentItemVariants, selectTriggerVariants, separatorVariants, sheetOverlayVariants, sheetPanelVariants, sidebarContainerVariants, skeletonVariants, tableRowVariants, tableVariants, tabsListVariants, tabsTriggerVariants, textareaVariants, toastVariants, toggleThumbVariants, toggleTrackVariants, tooltipArrowVariants, tooltipContentVariants };
3626
+ export { AVATAR_COLORS, Accordion, AccordionItem, Alert, AlertDescription, AlertTitle, Avatar, AvatarFallback, AvatarGroup, AvatarImage, AvatarWithPresence, Banner, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Chip, CommandPalette, Dialog, Button as DialogAction, DialogBody, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogTitle, DropdownMenu, DropdownMenuContent, DropdownMenuEmpty, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger, EmptyState, Field, Input, Kbd, KpiRow, Label, List, ListItem, PRESENCE_LABEL, Pagination, PaginationEllipsis, PaginationItem, PaginationNext, PaginationPrevious, Popover, Presence, Progress, ProgressList, Radio, RadioGroup, ReactionPill, Ring, ScrollArea, ScrollBar, SearchField, SegmentedControl, Select, Separator, Sheet, SheetBody, SheetDescription, SheetFooter, SheetHandle, SheetHeader, SheetTitle, Sidebar, SidebarChannel, SidebarDm, SidebarPanel, SidebarSection, Skeleton, StackBar, SuccessCheck, Table, TableBody, TableCaption, TableCell, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toast, Toggle, Tooltip, WorkHoursBar, alertVariants, avatarVariants, bannerVariants, buildPageRange, buttonVariants, cardVariants, checkboxVariants, chipVariants, cn, dialogPanelVariants, dropdownMenuContentVariants, dropdownMenuItemVariants, fieldVariants, inputVariants, labelVariants, paginationItemVariants, popoverContentVariants, progressFillVariants, progressTrackVariants, radioVariants, reactionPillVariants, segmentContainerVariants, segmentItemVariants, selectTriggerVariants, separatorVariants, sheetOverlayVariants, sheetPanelVariants, sidebarContainerVariants, skeletonVariants, tableRowVariants, tableVariants, tabsListVariants, tabsTriggerVariants, textareaVariants, toastVariants, toggleThumbVariants, toggleTrackVariants, tooltipArrowVariants, tooltipContentVariants };
3583
3627
  //# sourceMappingURL=index.mjs.map
3584
3628
  //# sourceMappingURL=index.mjs.map