@platned/ui 0.9.4 → 0.9.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -2029,7 +2029,7 @@ import clsx17 from "clsx";
2029
2029
  // src/components/status/tag-pill.tsx
2030
2030
  import clsx16 from "clsx";
2031
2031
  import { XIcon } from "lucide-react";
2032
- import { jsx as jsx16, jsxs as jsxs14 } from "react/jsx-runtime";
2032
+ import { Fragment as Fragment2, jsx as jsx16, jsxs as jsxs14 } from "react/jsx-runtime";
2033
2033
  var toneStyles = {
2034
2034
  default: "bg-default-secondary text-default-secondary",
2035
2035
  brand: "bg-brand-tertiary text-brand",
@@ -2046,51 +2046,64 @@ function TagPill({
2046
2046
  tone = "default",
2047
2047
  size = "sm",
2048
2048
  onRemove,
2049
+ asChild = false,
2050
+ icon,
2051
+ title,
2052
+ children,
2049
2053
  bg,
2050
2054
  color,
2051
2055
  className
2052
2056
  }) {
2057
+ if (asChild && onRemove) devWarn("TagPill: `asChild` and `onRemove` cannot be combined; `onRemove` is ignored.");
2053
2058
  const removeOnKey = (event) => {
2054
2059
  if (event.key === "Backspace" || event.key === "Delete") {
2055
2060
  event.preventDefault();
2056
2061
  onRemove?.();
2057
2062
  }
2058
2063
  };
2059
- return /* @__PURE__ */ jsxs14(
2060
- "span",
2061
- {
2062
- "data-tone": tone,
2063
- "data-size": size,
2064
- "data-removable": onRemove ? "" : void 0,
2065
- title: onRemove ? label : void 0,
2066
- className: clsx16(
2067
- "inline-flex items-center rounded-full text-body-xs font-medium",
2068
- sizeStyles2[size],
2069
- // The remove button sits in the end padding, so trim it to keep the × optically centred.
2070
- "data-[removable]:max-w-full data-[removable]:gap-1 data-[removable]:whitespace-nowrap data-[removable]:pr-1.5",
2071
- !bg && !color && toneStyles[tone],
2072
- className
2073
- ),
2074
- style: {
2075
- ...bg ? { backgroundColor: bg } : void 0,
2076
- ...color ? { color } : void 0
2077
- },
2078
- children: [
2079
- onRemove ? /* @__PURE__ */ jsx16("span", { className: "truncate", children: label }) : label,
2080
- onRemove && /* @__PURE__ */ jsx16(
2081
- "button",
2082
- {
2083
- type: "button",
2084
- onClick: onRemove,
2085
- onKeyDown: removeOnKey,
2086
- "aria-label": `Remove ${label}`,
2087
- className: "touch-hit inline-flex shrink-0 items-center justify-center rounded-full opacity-60 transition-opacity hover:opacity-100 focus-visible:opacity-100 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-current",
2088
- children: /* @__PURE__ */ jsx16(XIcon, { className: "size-3", strokeWidth: 2.5, "aria-hidden": true })
2089
- }
2090
- )
2091
- ]
2064
+ const glyph = icon && /* @__PURE__ */ jsx16("span", { "aria-hidden": true, className: "inline-flex size-3 shrink-0 [&>svg]:size-full", children: icon });
2065
+ const labelContent = icon ? /* @__PURE__ */ jsxs14(Fragment2, { children: [
2066
+ glyph,
2067
+ /* @__PURE__ */ jsx16("span", { className: "truncate", children: label })
2068
+ ] }) : label;
2069
+ const rootProps = {
2070
+ "data-tone": tone,
2071
+ "data-size": size,
2072
+ "data-removable": onRemove && !asChild ? "" : void 0,
2073
+ title: title ?? (onRemove && !asChild ? label : void 0),
2074
+ className: clsx16(
2075
+ "inline-flex items-center rounded-full text-body-xs font-medium",
2076
+ sizeStyles2[size],
2077
+ // The remove button sits in the end padding, so trim it to keep the × optically centred.
2078
+ "data-[removable]:max-w-full data-[removable]:gap-1 data-[removable]:whitespace-nowrap data-[removable]:pr-1.5",
2079
+ icon && "max-w-full gap-1",
2080
+ !bg && !color && toneStyles[tone],
2081
+ asChild && ["hover:underline underline-offset-2", FOCUS_RING],
2082
+ className
2083
+ ),
2084
+ style: {
2085
+ ...bg ? { backgroundColor: bg } : void 0,
2086
+ ...color ? { color } : void 0
2092
2087
  }
2093
- );
2088
+ };
2089
+ if (asChild) {
2090
+ return /* @__PURE__ */ jsx16(Slot, { ...rootProps, wrapChildren: () => labelContent, children });
2091
+ }
2092
+ return /* @__PURE__ */ jsxs14("span", { ...rootProps, children: [
2093
+ glyph,
2094
+ onRemove || icon ? /* @__PURE__ */ jsx16("span", { className: "truncate", children: label }) : label,
2095
+ onRemove && /* @__PURE__ */ jsx16(
2096
+ "button",
2097
+ {
2098
+ type: "button",
2099
+ onClick: onRemove,
2100
+ onKeyDown: removeOnKey,
2101
+ "aria-label": `Remove ${label}`,
2102
+ className: "touch-hit inline-flex shrink-0 items-center justify-center rounded-full opacity-60 transition-opacity hover:opacity-100 focus-visible:opacity-100 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-current",
2103
+ children: /* @__PURE__ */ jsx16(XIcon, { className: "size-3", strokeWidth: 2.5, "aria-hidden": true })
2104
+ }
2105
+ )
2106
+ ] });
2094
2107
  }
2095
2108
 
2096
2109
  // src/components/forms/tag-input.tsx
@@ -2326,6 +2339,7 @@ function FormCardFooter({
2326
2339
  import clsx19 from "clsx";
2327
2340
  import { XIcon as XIcon2 } from "lucide-react";
2328
2341
  import { jsx as jsx19, jsxs as jsxs17 } from "react/jsx-runtime";
2342
+ var BADGE_COLORS = ["blue", "green", "violet", "yellow", "teal", "pink", "lime", "red", "slate", "gray"];
2329
2343
  var defaultClasses = {
2330
2344
  gray: "bg-badge-gray text-badge-gray",
2331
2345
  red: "bg-badge-red text-badge-red",
@@ -2356,6 +2370,7 @@ function Badge({
2356
2370
  size = "sm",
2357
2371
  variant = "default",
2358
2372
  indicator = false,
2373
+ icon,
2359
2374
  onRemove: onRemoveProp,
2360
2375
  onClose,
2361
2376
  className
@@ -2382,6 +2397,14 @@ function Badge({
2382
2397
  )
2383
2398
  }
2384
2399
  ),
2400
+ icon && /* @__PURE__ */ jsx19(
2401
+ "span",
2402
+ {
2403
+ "aria-hidden": true,
2404
+ className: clsx19("inline-flex shrink-0 [&>svg]:h-full [&>svg]:w-full", size === "sm" ? "h-3 w-3" : "h-3.5 w-3.5"),
2405
+ children: icon
2406
+ }
2407
+ ),
2385
2408
  /* @__PURE__ */ jsx19(
2386
2409
  "span",
2387
2410
  {
@@ -2469,7 +2492,7 @@ import {
2469
2492
  } from "react";
2470
2493
  import clsx21 from "clsx";
2471
2494
  import { CheckIcon as CheckIcon3, ChevronDownIcon as ChevronDownIcon2 } from "lucide-react";
2472
- import { Fragment as Fragment2, jsx as jsx21, jsxs as jsxs18 } from "react/jsx-runtime";
2495
+ import { Fragment as Fragment3, jsx as jsx21, jsxs as jsxs18 } from "react/jsx-runtime";
2473
2496
  var HEIGHT = {
2474
2497
  lg: "h-12 px-4 text-body",
2475
2498
  md: "h-9 px-3 text-body-sm",
@@ -2707,7 +2730,7 @@ function Combobox({
2707
2730
  "items-center",
2708
2731
  option.disabled ? "cursor-not-allowed text-disabled" : isActive ? clsx21(OVERLAY_ITEM_ACTIVE, "text-default") : "text-default"
2709
2732
  ),
2710
- children: renderOption ? renderOption(option, isSelected) : /* @__PURE__ */ jsxs18(Fragment2, { children: [
2733
+ children: renderOption ? renderOption(option, isSelected) : /* @__PURE__ */ jsxs18(Fragment3, { children: [
2711
2734
  option.icon && /* @__PURE__ */ jsx21("span", { "aria-hidden": true, className: "flex shrink-0 items-center self-center", children: option.icon }),
2712
2735
  /* @__PURE__ */ jsxs18("span", { className: "min-w-0 flex-1", children: [
2713
2736
  /* @__PURE__ */ jsx21("span", { className: "block truncate", children: option.label }),
@@ -2726,7 +2749,7 @@ function Combobox({
2726
2749
  }
2727
2750
 
2728
2751
  // src/components/forms/role-combo-box.tsx
2729
- import { Fragment as Fragment3, jsx as jsx22, jsxs as jsxs19 } from "react/jsx-runtime";
2752
+ import { Fragment as Fragment4, jsx as jsx22, jsxs as jsxs19 } from "react/jsx-runtime";
2730
2753
  var ROLE_COMBO_OPTIONS = [
2731
2754
  { role: "Reviewer", description: "Reviews onboarding requests" },
2732
2755
  { role: "Admin", description: "Full org control" },
@@ -2761,7 +2784,7 @@ function RoleComboBox({
2761
2784
  clearable: false,
2762
2785
  emptyMessage: "No roles match",
2763
2786
  className,
2764
- renderOption: (option) => /* @__PURE__ */ jsxs19(Fragment3, { children: [
2787
+ renderOption: (option) => /* @__PURE__ */ jsxs19(Fragment4, { children: [
2765
2788
  /* @__PURE__ */ jsx22(RoleBadge, { role: option.value, size: "sm" }),
2766
2789
  /* @__PURE__ */ jsx22("span", { className: "min-w-0 flex-1 truncate text-body-xs text-default-secondary", children: option.description })
2767
2790
  ] })
@@ -3272,11 +3295,12 @@ import clsx29 from "clsx";
3272
3295
  import { jsx as jsx33 } from "react/jsx-runtime";
3273
3296
  var sizeStyles3 = {
3274
3297
  sm: "size-8",
3275
- md: "size-10"
3298
+ md: "size-10",
3299
+ lg: "size-14"
3276
3300
  };
3277
3301
  var shapeStyles = {
3278
- square: { sm: "rounded-lg", md: "rounded-xl" },
3279
- circle: { sm: "rounded-full", md: "rounded-full" }
3302
+ square: { sm: "rounded-lg", md: "rounded-xl", lg: "rounded-2xl" },
3303
+ circle: { sm: "rounded-full", md: "rounded-full", lg: "rounded-full" }
3280
3304
  };
3281
3305
  var toneStyles2 = {
3282
3306
  default: "bg-default-secondary text-icon-default",
@@ -3286,16 +3310,29 @@ var toneStyles2 = {
3286
3310
  danger: "bg-danger-tertiary text-icon-danger",
3287
3311
  neutral: "bg-neutral-tertiary text-icon-neutral"
3288
3312
  };
3289
- function EntityIconBadge({ size = "sm", tone = "default", shape = "square", bg, iconColor, children, className }) {
3313
+ var hueStyles = {
3314
+ gray: "bg-badge-gray text-badge-gray",
3315
+ red: "bg-badge-red text-badge-red",
3316
+ yellow: "bg-badge-yellow text-badge-yellow",
3317
+ lime: "bg-badge-lime text-badge-lime",
3318
+ green: "bg-badge-green text-badge-green",
3319
+ teal: "bg-badge-teal text-badge-teal",
3320
+ blue: "bg-badge-blue text-badge-blue",
3321
+ pink: "bg-badge-pink text-badge-pink",
3322
+ slate: "bg-badge-slate text-badge-slate",
3323
+ violet: "bg-badge-violet text-badge-violet"
3324
+ };
3325
+ function EntityIconBadge({ size = "sm", tone = "default", shape = "square", hue, bg, iconColor, children, className }) {
3290
3326
  return /* @__PURE__ */ jsx33(
3291
3327
  "span",
3292
3328
  {
3293
- "data-tone": tone,
3329
+ "data-tone": hue ? void 0 : tone,
3330
+ "data-hue": hue,
3294
3331
  className: clsx29(
3295
3332
  "inline-flex shrink-0 items-center justify-center",
3296
3333
  sizeStyles3[size],
3297
3334
  shapeStyles[shape][size],
3298
- !bg && !iconColor && toneStyles2[tone],
3335
+ !bg && !iconColor && (hue ? hueStyles[hue] : toneStyles2[tone]),
3299
3336
  className
3300
3337
  ),
3301
3338
  style: {
@@ -3385,14 +3422,33 @@ var LABEL_TEXT = {
3385
3422
  sm: "text-body-tiny",
3386
3423
  md: "text-body-xs"
3387
3424
  };
3388
- var Radio = forwardRef10(function Radio2({ value, label, description, disabled, id, className, ...props }, ref) {
3425
+ var Radio = forwardRef10(function Radio2({
3426
+ value,
3427
+ label,
3428
+ description,
3429
+ disabled,
3430
+ id,
3431
+ className,
3432
+ checked: checkedProp,
3433
+ onCheckedChange,
3434
+ size: sizeProp,
3435
+ invalid: invalidProp,
3436
+ name: nameProp,
3437
+ ...props
3438
+ }, ref) {
3389
3439
  const group = useContext3(RadioGroupContext);
3390
- if (!group) throw new Error("<Radio> must be used inside <RadioGroup>");
3440
+ if (!group && !nameProp) {
3441
+ devWarn("A standalone <Radio> needs a `name` shared by its set: without one, each radio is a group of its own.");
3442
+ }
3391
3443
  const generatedId = useId8();
3392
3444
  const controlId = id ?? generatedId;
3393
3445
  const descriptionId = `${controlId}-description`;
3394
- const isDisabled = disabled ?? group.disabled;
3395
- const checked = group.value === value;
3446
+ const isDisabled = disabled ?? group?.disabled ?? false;
3447
+ const checked = group ? group.value === value : Boolean(checkedProp);
3448
+ const size = group?.size ?? sizeProp ?? "md";
3449
+ const invalid = group?.invalid ?? invalidProp ?? false;
3450
+ const name = group?.name ?? nameProp;
3451
+ const select = () => group ? group.setValue(value) : onCheckedChange?.(true);
3396
3452
  return /* @__PURE__ */ jsxs25("div", { className: clsx30("flex flex-col", className), children: [
3397
3453
  /* @__PURE__ */ jsxs25(
3398
3454
  "label",
@@ -3412,27 +3468,19 @@ var Radio = forwardRef10(function Radio2({ value, label, description, disabled,
3412
3468
  ref,
3413
3469
  id: controlId,
3414
3470
  type: "radio",
3415
- name: group.name,
3471
+ name,
3416
3472
  value,
3417
3473
  checked,
3418
3474
  disabled: isDisabled,
3475
+ "aria-invalid": !group && invalid ? true : void 0,
3419
3476
  "aria-describedby": description ? descriptionId : void 0,
3420
- onChange: () => group.setValue(value),
3477
+ onChange: select,
3421
3478
  className: "peer sr-only",
3422
3479
  ...props
3423
3480
  }
3424
3481
  ),
3425
- /* @__PURE__ */ jsx34(
3426
- CheckControl,
3427
- {
3428
- type: "radio",
3429
- checked,
3430
- disabled: isDisabled,
3431
- invalid: group.invalid,
3432
- size: group.size
3433
- }
3434
- ),
3435
- label && /* @__PURE__ */ jsx34("span", { className: clsx30(LABEL_TEXT[group.size], "text-default"), children: label })
3482
+ /* @__PURE__ */ jsx34(CheckControl, { type: "radio", checked, disabled: isDisabled, invalid, size }),
3483
+ label && /* @__PURE__ */ jsx34("span", { className: clsx30(LABEL_TEXT[size], "text-default"), children: label })
3436
3484
  ]
3437
3485
  }
3438
3486
  ),
@@ -3442,7 +3490,7 @@ var Radio = forwardRef10(function Radio2({ value, label, description, disabled,
3442
3490
  id: descriptionId,
3443
3491
  className: clsx30(
3444
3492
  "mt-0.5 pl-[26px]",
3445
- LABEL_TEXT[group.size],
3493
+ LABEL_TEXT[size],
3446
3494
  isDisabled ? "text-disabled" : "text-default-secondary"
3447
3495
  ),
3448
3496
  children: description
@@ -4067,7 +4115,7 @@ var ModalFooter = forwardRef15(function ModalFooter2({ children, align = "end",
4067
4115
  // src/components/overlays/tooltip.tsx
4068
4116
  import { useId as useId12 } from "react";
4069
4117
  import { Tooltip as TooltipPrimitive } from "radix-ui";
4070
- import { Fragment as Fragment4, jsx as jsx41, jsxs as jsxs30 } from "react/jsx-runtime";
4118
+ import { Fragment as Fragment5, jsx as jsx41, jsxs as jsxs30 } from "react/jsx-runtime";
4071
4119
  function Tooltip({
4072
4120
  children,
4073
4121
  title,
@@ -4084,7 +4132,7 @@ function Tooltip({
4084
4132
  const container = usePortalContainer();
4085
4133
  const labelId = useId12();
4086
4134
  const labelled = association === "labelledby";
4087
- const content = /* @__PURE__ */ jsxs30(Fragment4, { children: [
4135
+ const content = /* @__PURE__ */ jsxs30(Fragment5, { children: [
4088
4136
  title && /* @__PURE__ */ jsx41("p", { className: "font-semibold", children: title }),
4089
4137
  body && /* @__PURE__ */ jsx41("p", { className: cn(title && "mt-0.5 opacity-80"), children: body })
4090
4138
  ] });
@@ -4190,14 +4238,14 @@ import {
4190
4238
  forwardRef as forwardRef16
4191
4239
  } from "react";
4192
4240
  import { ContextMenu as ContextMenuPrimitive } from "radix-ui";
4193
- import { Fragment as Fragment5, jsx as jsx43, jsxs as jsxs32 } from "react/jsx-runtime";
4241
+ import { Fragment as Fragment6, jsx as jsx43, jsxs as jsxs32 } from "react/jsx-runtime";
4194
4242
  function ContextMenu({ children, items, open: openProp, defaultOpen = false, onOpenChange }) {
4195
4243
  const [, setOpen] = useControllableState({
4196
4244
  value: openProp,
4197
4245
  defaultValue: defaultOpen,
4198
4246
  onChange: onOpenChange
4199
4247
  });
4200
- return /* @__PURE__ */ jsx43(ContextMenuPrimitive.Root, { onOpenChange: setOpen, modal: false, children: items ? /* @__PURE__ */ jsxs32(Fragment5, { children: [
4248
+ return /* @__PURE__ */ jsx43(ContextMenuPrimitive.Root, { onOpenChange: setOpen, modal: false, children: items ? /* @__PURE__ */ jsxs32(Fragment6, { children: [
4201
4249
  /* @__PURE__ */ jsx43(ContextMenuTrigger, { children }),
4202
4250
  /* @__PURE__ */ jsx43(ContextMenuContent, { children: /* @__PURE__ */ jsx43(ContextMenuItems, { items }) })
4203
4251
  ] }) : children });
@@ -4428,7 +4476,7 @@ var ScrollArea = forwardRef18(function ScrollArea2({ children, axis = "vertical"
4428
4476
  });
4429
4477
 
4430
4478
  // src/components/overlays/drawer.tsx
4431
- import { Fragment as Fragment6, jsx as jsx46, jsxs as jsxs34 } from "react/jsx-runtime";
4479
+ import { Fragment as Fragment7, jsx as jsx46, jsxs as jsxs34 } from "react/jsx-runtime";
4432
4480
  var DrawerNaming = createContext7(null);
4433
4481
  var Drawer = forwardRef19(function Drawer2({
4434
4482
  open,
@@ -4460,7 +4508,7 @@ var Drawer = forwardRef19(function Drawer2({
4460
4508
  onEscapeKeyDown,
4461
4509
  onInteractOutside,
4462
4510
  initialFocus,
4463
- children: header !== void 0 ? /* @__PURE__ */ jsxs34(Fragment6, { children: [
4511
+ children: header !== void 0 ? /* @__PURE__ */ jsxs34(Fragment7, { children: [
4464
4512
  /* @__PURE__ */ jsx46(DrawerHeader, { children: header }),
4465
4513
  /* @__PURE__ */ jsx46(DrawerBody, { label, children: withoutTrigger2(children) }),
4466
4514
  footer && /* @__PURE__ */ jsx46(DrawerFooter, { align: footerAlign, children: footer })
@@ -5918,13 +5966,19 @@ function PageHeading({
5918
5966
  subtitle,
5919
5967
  size = "page",
5920
5968
  as,
5969
+ badges,
5970
+ meta,
5921
5971
  actions,
5922
5972
  truncateTitle,
5923
5973
  className
5924
5974
  }) {
5925
5975
  const Tag = as ?? (size === "section" ? "h2" : "h1");
5926
5976
  const heading = /* @__PURE__ */ jsxs41("div", { className: "flex min-w-0 flex-col gap-0.5", children: [
5927
- /* @__PURE__ */ jsx60(Tag, { className: clsx40(TITLE[size], truncateTitle && "truncate"), children: title }),
5977
+ badges ? /* @__PURE__ */ jsxs41("div", { className: "flex min-w-0 flex-wrap items-center gap-2.5", children: [
5978
+ /* @__PURE__ */ jsx60(Tag, { className: clsx40(TITLE[size], truncateTitle && "truncate"), children: title }),
5979
+ badges
5980
+ ] }) : /* @__PURE__ */ jsx60(Tag, { className: clsx40(TITLE[size], truncateTitle && "truncate"), children: title }),
5981
+ meta && /* @__PURE__ */ jsx60("div", { className: "flex flex-wrap items-center gap-2.5 text-body-xs text-default-secondary", children: meta }),
5928
5982
  subtitle && /* @__PURE__ */ jsx60("p", { className: SUBTITLE[size], children: subtitle })
5929
5983
  ] });
5930
5984
  if (!actions) return className ? /* @__PURE__ */ jsx60("div", { className, children: heading }) : heading;
@@ -6348,7 +6402,7 @@ var TabsContent = forwardRef25(function TabsContent2({ value, keepMounted = fals
6348
6402
 
6349
6403
  // src/components/chrome/nav-item.tsx
6350
6404
  import clsx44 from "clsx";
6351
- import { Fragment as Fragment7, jsx as jsx64, jsxs as jsxs45 } from "react/jsx-runtime";
6405
+ import { Fragment as Fragment8, jsx as jsx64, jsxs as jsxs45 } from "react/jsx-runtime";
6352
6406
  var SIZE8 = {
6353
6407
  sm: { box: "h-9 gap-2 rounded-lg px-3 py-1.5", label: "text-body-xs", square: "w-9" },
6354
6408
  md: { box: "h-11 gap-3 rounded-xl px-3.5 py-2.5", label: "text-body-sm", square: "w-11" }
@@ -6441,7 +6495,7 @@ function NavItem({
6441
6495
  onClick?.(event);
6442
6496
  }
6443
6497
  };
6444
- const content = /* @__PURE__ */ jsxs45(Fragment7, { children: [
6498
+ const content = /* @__PURE__ */ jsxs45(Fragment8, { children: [
6445
6499
  icon != null ? /* @__PURE__ */ jsx64("span", { "aria-hidden": true, className: "shrink-0 [&_svg]:size-4", children: icon }) : (
6446
6500
  // Icons are optional, but the collapsed rail hides the label — so a row with neither
6447
6501
  // renders as an empty box. Through 0.5.0 that is exactly what a nav without icons
@@ -6551,7 +6605,7 @@ var Kbd = forwardRef27(function Kbd2({ children, size = "md", className, ...rest
6551
6605
 
6552
6606
  // src/components/chrome/breadcrumb.tsx
6553
6607
  import {
6554
- Fragment as Fragment8,
6608
+ Fragment as Fragment9,
6555
6609
  forwardRef as forwardRef28
6556
6610
  } from "react";
6557
6611
  import clsx48 from "clsx";
@@ -6568,7 +6622,7 @@ function renderItems(items, renderLink, maxItems) {
6568
6622
  const item = items[index];
6569
6623
  const current = item.current ?? index === last;
6570
6624
  const crumb = !current && renderLink ? /* @__PURE__ */ jsx68(BreadcrumbItem, { asChild: true, first: position === 0, children: renderLink(item) }) : /* @__PURE__ */ jsx68(BreadcrumbItem, { href: item.href, current, first: position === 0, children: item.label });
6571
- return /* @__PURE__ */ jsxs46(Fragment8, { children: [
6625
+ return /* @__PURE__ */ jsxs46(Fragment9, { children: [
6572
6626
  crumb,
6573
6627
  collapse && position === 0 && /* @__PURE__ */ jsx68(BreadcrumbEllipsis, {})
6574
6628
  ] }, item.id ?? index);
@@ -6626,7 +6680,7 @@ var BreadcrumbEllipsis = forwardRef28(
6626
6680
  // src/components/chrome/navigation-menu.tsx
6627
6681
  import { forwardRef as forwardRef29 } from "react";
6628
6682
  import clsx49 from "clsx";
6629
- import { Fragment as Fragment9, jsx as jsx69, jsxs as jsxs47 } from "react/jsx-runtime";
6683
+ import { Fragment as Fragment10, jsx as jsx69, jsxs as jsxs47 } from "react/jsx-runtime";
6630
6684
  var NavigationMenu = forwardRef29(
6631
6685
  function NavigationMenu2({ children, orientation = "horizontal", label, className, ...rest }, ref) {
6632
6686
  return /* @__PURE__ */ jsx69("nav", { ref, "aria-label": label, "data-slot": "navigation-menu", ...rest, children: /* @__PURE__ */ jsx69(
@@ -6644,7 +6698,7 @@ var NavigationMenu = forwardRef29(
6644
6698
  );
6645
6699
  var NavigationMenuItem = forwardRef29(
6646
6700
  function NavigationMenuItem2({ children, active = false, variant = "pill", asChild = false, icon, className, ...rest }, ref) {
6647
- const content = /* @__PURE__ */ jsxs47(Fragment9, { children: [
6701
+ const content = /* @__PURE__ */ jsxs47(Fragment10, { children: [
6648
6702
  icon && /* @__PURE__ */ jsx69("span", { "aria-hidden": true, className: "shrink-0 [&_svg]:size-4", children: icon }),
6649
6703
  /* @__PURE__ */ jsx69("span", { className: "min-w-0 truncate", children })
6650
6704
  ] });
@@ -6731,15 +6785,20 @@ var Blockquote = forwardRef30(function Blockquote2({ children, cite, tone, class
6731
6785
  }
6732
6786
  );
6733
6787
  });
6734
- var TextLink = forwardRef30(function TextLink2({ children, asChild = false, className, ...rest }, ref) {
6788
+ var TEXT_LINK_TONE = {
6789
+ brand: "text-brand underline decoration-1 hover:text-brand-secondary",
6790
+ neutral: "text-default no-underline decoration-1 hover:underline"
6791
+ };
6792
+ var TextLink = forwardRef30(function TextLink2({ children, asChild = false, tone = "brand", className, ...rest }, ref) {
6735
6793
  const Root = asChild ? Slot : "a";
6736
6794
  return /* @__PURE__ */ jsx70(
6737
6795
  Root,
6738
6796
  {
6739
6797
  ref,
6798
+ "data-tone": tone,
6740
6799
  className: clsx50(
6741
- "rounded text-brand underline decoration-1 underline-offset-2 transition-colors",
6742
- "hover:text-brand-secondary",
6800
+ "rounded underline-offset-2 transition-colors",
6801
+ TEXT_LINK_TONE[tone],
6743
6802
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand focus-visible:ring-offset-1 focus-visible:ring-offset-default",
6744
6803
  className
6745
6804
  ),
@@ -7000,7 +7059,7 @@ function useWidthTier({ frozen = false } = {}) {
7000
7059
 
7001
7060
  // src/components/stats/stat-tile.tsx
7002
7061
  import clsx55 from "clsx";
7003
- import { Fragment as Fragment10, jsx as jsx75, jsxs as jsxs50 } from "react/jsx-runtime";
7062
+ import { Fragment as Fragment11, jsx as jsx75, jsxs as jsxs50 } from "react/jsx-runtime";
7004
7063
  var DOT_TONE = {
7005
7064
  neutral: "bg-status-dot-neutral",
7006
7065
  info: "bg-status-dot-info",
@@ -7025,7 +7084,7 @@ function StatTile({
7025
7084
  }) {
7026
7085
  const showDot = Boolean(tone || dotColor);
7027
7086
  const interactive = Boolean(onClick) || asChild;
7028
- const content = /* @__PURE__ */ jsxs50(Fragment10, { children: [
7087
+ const content = /* @__PURE__ */ jsxs50(Fragment11, { children: [
7029
7088
  /* @__PURE__ */ jsxs50("span", { className: "flex items-center gap-1.5", children: [
7030
7089
  showDot && /* @__PURE__ */ jsx75(
7031
7090
  "span",
@@ -7446,7 +7505,7 @@ function RadialGauge({
7446
7505
  // src/components/charts/sparkline.tsx
7447
7506
  import { useId as useId18 } from "react";
7448
7507
  import clsx62 from "clsx";
7449
- import { Fragment as Fragment11, jsx as jsx82, jsxs as jsxs56 } from "react/jsx-runtime";
7508
+ import { Fragment as Fragment12, jsx as jsx82, jsxs as jsxs56 } from "react/jsx-runtime";
7450
7509
  var SIZE14 = {
7451
7510
  sm: { width: 80, height: 24 },
7452
7511
  md: { width: 120, height: 36 },
@@ -7497,7 +7556,7 @@ function Sparkline({
7497
7556
  "aria-hidden": label ? void 0 : true,
7498
7557
  className: clsx62("block", stretch ? "h-full w-full" : "shrink-0", className),
7499
7558
  children: [
7500
- variant === "area" && /* @__PURE__ */ jsxs56(Fragment11, { children: [
7559
+ variant === "area" && /* @__PURE__ */ jsxs56(Fragment12, { children: [
7501
7560
  /* @__PURE__ */ jsx82("defs", { children: /* @__PURE__ */ jsxs56("linearGradient", { id: gradientId, x1: "0", y1: "0", x2: "0", y2: "1", children: [
7502
7561
  /* @__PURE__ */ jsx82("stop", { offset: "0%", stopColor: stroke, stopOpacity: 0.24 }),
7503
7562
  /* @__PURE__ */ jsx82("stop", { offset: "100%", stopColor: stroke, stopOpacity: 0 })
@@ -7613,12 +7672,12 @@ var SHAPE = {
7613
7672
  square: { sm: "size-1.5 rounded-[2px]", md: "size-2 rounded-[3px]" },
7614
7673
  line: { sm: "h-0.5 w-3 rounded-full", md: "h-0.5 w-4 rounded-full" }
7615
7674
  };
7616
- function LegendDot({ tone, color, size = "md", shape = "dot", className }) {
7675
+ function LegendDot({ tone, color, hue, size = "md", shape = "dot", className }) {
7617
7676
  return /* @__PURE__ */ jsx84(
7618
7677
  "span",
7619
7678
  {
7620
7679
  className: clsx64("inline-block shrink-0", SHAPE[shape][size], className),
7621
- style: { backgroundColor: resolveChartColor(color, tone) },
7680
+ style: { backgroundColor: color || !hue ? resolveChartColor(color, tone) : `var(--badge-${hue}-text)` },
7622
7681
  "aria-hidden": true
7623
7682
  }
7624
7683
  );
@@ -7717,9 +7776,117 @@ function TrendLabel({
7717
7776
  );
7718
7777
  }
7719
7778
 
7720
- // src/components/lists/list-row.tsx
7779
+ // src/components/lists/listbox.tsx
7780
+ import { Fragment as Fragment13, useEffect as useEffect11, useId as useId19, useMemo as useMemo11 } from "react";
7721
7781
  import clsx67 from "clsx";
7722
- import { Fragment as Fragment12, jsx as jsx87, jsxs as jsxs59 } from "react/jsx-runtime";
7782
+ import { jsx as jsx87, jsxs as jsxs59 } from "react/jsx-runtime";
7783
+ var isGroup2 = (entry) => "options" in entry;
7784
+ function Listbox({
7785
+ options,
7786
+ value: valueProp,
7787
+ defaultValue,
7788
+ onValueChange,
7789
+ label,
7790
+ selectionFollowsFocus = true,
7791
+ maxHeight,
7792
+ empty,
7793
+ className
7794
+ }) {
7795
+ const id = useId19();
7796
+ const [value, setValue] = useControllableState({
7797
+ value: valueProp,
7798
+ defaultValue,
7799
+ onChange: onValueChange
7800
+ });
7801
+ const flat = useMemo11(
7802
+ () => options.flatMap((entry) => isGroup2(entry) ? entry.options : [entry]),
7803
+ [options]
7804
+ );
7805
+ const selectedIndex = flat.findIndex((option) => option.value === value);
7806
+ const roving = useRovingFocus({
7807
+ orientation: "vertical",
7808
+ loop: false,
7809
+ typeahead: true,
7810
+ defaultIndex: Math.max(0, selectedIndex)
7811
+ });
7812
+ const { setActiveIndex } = roving;
7813
+ useEffect11(() => {
7814
+ if (selectedIndex >= 0) setActiveIndex(selectedIndex);
7815
+ }, [selectedIndex, setActiveIndex]);
7816
+ let index = -1;
7817
+ const renderOption = (option) => {
7818
+ index += 1;
7819
+ const position = index;
7820
+ const selected = option.value === value;
7821
+ const item = roving.itemProps(position, {
7822
+ disabled: option.disabled,
7823
+ label: option.textValue ?? (typeof option.label === "string" ? option.label : void 0)
7824
+ });
7825
+ const select = () => {
7826
+ if (!option.disabled) setValue(option.value);
7827
+ };
7828
+ return /* @__PURE__ */ jsxs59(
7829
+ "div",
7830
+ {
7831
+ ref: item.ref,
7832
+ tabIndex: item.tabIndex,
7833
+ "data-roving-index": item["data-roving-index"],
7834
+ role: "option",
7835
+ "aria-selected": selected,
7836
+ "aria-disabled": option.disabled || void 0,
7837
+ "data-state": selected ? "selected" : void 0,
7838
+ onFocus: () => {
7839
+ item.onFocus();
7840
+ if (selectionFollowsFocus) select();
7841
+ },
7842
+ onClick: select,
7843
+ onKeyDown: (event) => {
7844
+ if (event.key === "Enter" || event.key === " ") {
7845
+ event.preventDefault();
7846
+ select();
7847
+ }
7848
+ },
7849
+ className: clsx67(
7850
+ "flex w-full cursor-pointer items-center gap-2.5 border-b border-default bg-default px-4 py-2 text-left text-body-xs text-default",
7851
+ "hover:bg-default-secondary",
7852
+ "data-[state=selected]:bg-brand-tertiary data-[state=selected]:font-semibold",
7853
+ "aria-disabled:cursor-not-allowed aria-disabled:text-disabled",
7854
+ FOCUS_RING_INSET
7855
+ ),
7856
+ children: [
7857
+ /* @__PURE__ */ jsx87("span", { className: "min-w-0 flex-1", children: option.label }),
7858
+ option.meta !== void 0 && /* @__PURE__ */ jsx87("span", { className: "shrink-0 whitespace-nowrap font-normal text-default-secondary", children: option.meta })
7859
+ ]
7860
+ },
7861
+ option.value
7862
+ );
7863
+ };
7864
+ if (flat.length === 0 && empty) {
7865
+ return /* @__PURE__ */ jsx87("div", { className: cn("px-4 py-6 text-center text-body-xs text-default-secondary", className), children: empty });
7866
+ }
7867
+ return /* @__PURE__ */ jsx87(
7868
+ "div",
7869
+ {
7870
+ role: "listbox",
7871
+ "aria-label": label,
7872
+ ...roving.containerProps,
7873
+ className: cn(maxHeight !== void 0 && ["overflow-auto overscroll-contain", SCROLLBAR_CLASSES], className),
7874
+ style: maxHeight !== void 0 ? { maxHeight } : void 0,
7875
+ children: options.map((entry, groupIndex) => {
7876
+ if (!isGroup2(entry)) return /* @__PURE__ */ jsx87(Fragment13, { children: renderOption(entry) }, entry.value);
7877
+ const headerId = `${id}-group-${groupIndex}`;
7878
+ return /* @__PURE__ */ jsxs59("div", { role: "group", "aria-labelledby": headerId, children: [
7879
+ /* @__PURE__ */ jsx87("div", { id: headerId, className: "border-b border-default bg-default-secondary px-4 py-2", children: /* @__PURE__ */ jsx87(EyebrowLabel, { children: entry.label }) }),
7880
+ entry.options.map(renderOption)
7881
+ ] }, `${groupIndex}-${entry.label}`);
7882
+ })
7883
+ }
7884
+ );
7885
+ }
7886
+
7887
+ // src/components/lists/list-row.tsx
7888
+ import clsx68 from "clsx";
7889
+ import { Fragment as Fragment14, jsx as jsx88, jsxs as jsxs60 } from "react/jsx-runtime";
7723
7890
  var DENSITY = {
7724
7891
  default: {
7725
7892
  pad: "py-4",
@@ -7780,24 +7947,24 @@ function ListRow({
7780
7947
  className
7781
7948
  )
7782
7949
  };
7783
- const body = /* @__PURE__ */ jsxs59(Fragment12, { children: [
7784
- /* @__PURE__ */ jsxs59("div", { className: clsx67("flex min-w-0 flex-1 flex-col", d.gap), children: [
7785
- hasTitleLine && /* @__PURE__ */ jsxs59("div", { className: "flex items-center justify-between gap-2", children: [
7786
- /* @__PURE__ */ jsxs59("div", { className: "flex min-w-0 items-center gap-2", children: [
7950
+ const body = /* @__PURE__ */ jsxs60(Fragment14, { children: [
7951
+ /* @__PURE__ */ jsxs60("div", { className: clsx68("flex min-w-0 flex-1 flex-col", d.gap), children: [
7952
+ hasTitleLine && /* @__PURE__ */ jsxs60("div", { className: "flex items-center justify-between gap-2", children: [
7953
+ /* @__PURE__ */ jsxs60("div", { className: "flex min-w-0 items-center gap-2", children: [
7787
7954
  leading,
7788
- title != null && /* @__PURE__ */ jsx87("span", { className: clsx67("truncate", d.title), children: title }),
7789
- titleMeta && /* @__PURE__ */ jsx87("span", { className: "shrink-0", children: titleMeta })
7955
+ title != null && /* @__PURE__ */ jsx88("span", { className: clsx68("truncate", d.title), children: title }),
7956
+ titleMeta && /* @__PURE__ */ jsx88("span", { className: "shrink-0", children: titleMeta })
7790
7957
  ] }),
7791
- meta && /* @__PURE__ */ jsx87("span", { className: "shrink-0", children: meta })
7958
+ meta && /* @__PURE__ */ jsx88("span", { className: "shrink-0", children: meta })
7792
7959
  ] }),
7793
- description && /* @__PURE__ */ jsx87("p", { className: d.description, children: description }),
7960
+ description && /* @__PURE__ */ jsx88("p", { className: d.description, children: description }),
7794
7961
  footer && // These two wrappers are propagation barriers, not controls — they add no
7795
7962
  // behaviour of their own and must not be focusable or take a role.
7796
7963
  // eslint-disable-next-line jsx-a11y/no-static-element-interactions
7797
- /* @__PURE__ */ jsx87("div", { onClick: stopIfInteractive, onKeyDown: stopIfInteractive, children: footer })
7964
+ /* @__PURE__ */ jsx88("div", { onClick: stopIfInteractive, onKeyDown: stopIfInteractive, children: footer })
7798
7965
  ] }),
7799
7966
  trailing && // eslint-disable-next-line jsx-a11y/no-static-element-interactions
7800
- /* @__PURE__ */ jsx87(
7967
+ /* @__PURE__ */ jsx88(
7801
7968
  "div",
7802
7969
  {
7803
7970
  className: "ml-3 flex shrink-0 items-center self-center",
@@ -7808,7 +7975,7 @@ function ListRow({
7808
7975
  )
7809
7976
  ] });
7810
7977
  if (asChild) {
7811
- return /* @__PURE__ */ jsx87(
7978
+ return /* @__PURE__ */ jsx88(
7812
7979
  Slot,
7813
7980
  {
7814
7981
  ...rootProps,
@@ -7821,7 +7988,7 @@ function ListRow({
7821
7988
  }
7822
7989
  );
7823
7990
  }
7824
- return /* @__PURE__ */ jsx87(
7991
+ return /* @__PURE__ */ jsx88(
7825
7992
  Tag,
7826
7993
  {
7827
7994
  ...rootProps,
@@ -7850,11 +8017,11 @@ function refusePress(event) {
7850
8017
  }
7851
8018
 
7852
8019
  // src/components/lists/file-row.tsx
7853
- import clsx68 from "clsx";
8020
+ import clsx69 from "clsx";
7854
8021
  import { DownloadIcon, Trash2Icon } from "lucide-react";
7855
- import { jsx as jsx88, jsxs as jsxs60 } from "react/jsx-runtime";
8022
+ import { jsx as jsx89, jsxs as jsxs61 } from "react/jsx-runtime";
7856
8023
  function FileTypeBadge({ type }) {
7857
- return /* @__PURE__ */ jsx88("span", { className: "flex size-[34px] shrink-0 items-center justify-center rounded-md bg-brand-tertiary text-body-tiny font-semibold text-brand", children: type });
8024
+ return /* @__PURE__ */ jsx89("span", { className: "flex size-[34px] shrink-0 items-center justify-center rounded-md bg-brand-tertiary text-body-tiny font-semibold text-brand", children: type });
7858
8025
  }
7859
8026
  function FileRow({
7860
8027
  name,
@@ -7868,24 +8035,24 @@ function FileRow({
7868
8035
  actions,
7869
8036
  className
7870
8037
  }) {
7871
- const lead = leading ?? (fileType ? /* @__PURE__ */ jsx88(FileTypeBadge, { type: fileType }) : null);
7872
- return /* @__PURE__ */ jsxs60(
8038
+ const lead = leading ?? (fileType ? /* @__PURE__ */ jsx89(FileTypeBadge, { type: fileType }) : null);
8039
+ return /* @__PURE__ */ jsxs61(
7873
8040
  "div",
7874
8041
  {
7875
- className: clsx68(
8042
+ className: clsx69(
7876
8043
  "flex items-center gap-3 rounded-lg border border-default bg-default px-3 py-2.5",
7877
8044
  className
7878
8045
  ),
7879
8046
  children: [
7880
8047
  lead,
7881
- /* @__PURE__ */ jsxs60("div", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
7882
- /* @__PURE__ */ jsx88("span", { className: "truncate text-body-sm font-medium text-default", children: name }),
7883
- detail && /* @__PURE__ */ jsx88("span", { className: "text-body-xs text-default-secondary", children: detail })
8048
+ /* @__PURE__ */ jsxs61("div", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
8049
+ /* @__PURE__ */ jsx89("span", { className: "truncate text-body-sm font-medium text-default", children: name }),
8050
+ detail && /* @__PURE__ */ jsx89("span", { className: "text-body-xs text-default-secondary", children: detail })
7884
8051
  ] }),
7885
- (onDownload || onRemove || actions) && /* @__PURE__ */ jsxs60("div", { className: "flex shrink-0 items-center gap-1", children: [
7886
- onDownload && /* @__PURE__ */ jsx88(Tooltip, { title: downloadLabel, children: /* @__PURE__ */ jsx88(IconButton, { variant: "subtle", size: "sm", "aria-label": `${downloadLabel} ${name}`, onClick: onDownload, className: "touch-hit", children: /* @__PURE__ */ jsx88(DownloadIcon, { "aria-hidden": true }) }) }),
7887
- onRemove && /* @__PURE__ */ jsx88(Tooltip, { title: removeLabel, children: /* @__PURE__ */ jsx88(IconButton, { variant: "subtle", size: "sm", "aria-label": `${removeLabel} ${name}`, onClick: onRemove, className: "touch-hit", children: /* @__PURE__ */ jsx88(Trash2Icon, { "aria-hidden": true }) }) }),
7888
- actions && /* @__PURE__ */ jsx88("div", { className: "ml-2 flex items-center gap-2", children: actions })
8052
+ (onDownload || onRemove || actions) && /* @__PURE__ */ jsxs61("div", { className: "flex shrink-0 items-center gap-1", children: [
8053
+ onDownload && /* @__PURE__ */ jsx89(Tooltip, { title: downloadLabel, children: /* @__PURE__ */ jsx89(IconButton, { variant: "subtle", size: "sm", "aria-label": `${downloadLabel} ${name}`, onClick: onDownload, className: "touch-hit", children: /* @__PURE__ */ jsx89(DownloadIcon, { "aria-hidden": true }) }) }),
8054
+ onRemove && /* @__PURE__ */ jsx89(Tooltip, { title: removeLabel, children: /* @__PURE__ */ jsx89(IconButton, { variant: "subtle", size: "sm", "aria-label": `${removeLabel} ${name}`, onClick: onRemove, className: "touch-hit", children: /* @__PURE__ */ jsx89(Trash2Icon, { "aria-hidden": true }) }) }),
8055
+ actions && /* @__PURE__ */ jsx89("div", { className: "ml-2 flex items-center gap-2", children: actions })
7889
8056
  ] })
7890
8057
  ]
7891
8058
  }
@@ -7893,8 +8060,8 @@ function FileRow({
7893
8060
  }
7894
8061
 
7895
8062
  // src/components/lists/scored-row.tsx
7896
- import clsx69 from "clsx";
7897
- import { jsx as jsx89, jsxs as jsxs61 } from "react/jsx-runtime";
8063
+ import clsx70 from "clsx";
8064
+ import { jsx as jsx90, jsxs as jsxs62 } from "react/jsx-runtime";
7898
8065
  var GAP3 = {
7899
8066
  sm: "gap-2",
7900
8067
  md: "gap-3",
@@ -7921,11 +8088,11 @@ function ScoredRow({
7921
8088
  align = "center",
7922
8089
  className
7923
8090
  }) {
7924
- return /* @__PURE__ */ jsxs61("div", { className: clsx69("flex w-full", ALIGN3[align], GAP3[gap], className), children: [
7925
- /* @__PURE__ */ jsxs61(
8091
+ return /* @__PURE__ */ jsxs62("div", { className: clsx70("flex w-full", ALIGN3[align], GAP3[gap], className), children: [
8092
+ /* @__PURE__ */ jsxs62(
7926
8093
  "div",
7927
8094
  {
7928
- className: clsx69(
8095
+ className: clsx70(
7929
8096
  "flex min-w-0",
7930
8097
  ALIGN3[align],
7931
8098
  GAP3[leadingGap ?? gap],
@@ -7934,36 +8101,36 @@ function ScoredRow({
7934
8101
  style: titleWidth ? { width: titleWidth } : void 0,
7935
8102
  children: [
7936
8103
  leading,
7937
- /* @__PURE__ */ jsxs61("div", { className: "min-w-0 flex-1", children: [
7938
- /* @__PURE__ */ jsx89("p", { className: "truncate text-body-sm font-medium leading-none text-default", children: title }),
7939
- subtitle && /* @__PURE__ */ jsx89("p", { className: "mt-0.5 truncate text-body-xs text-default-secondary", children: subtitle })
8104
+ /* @__PURE__ */ jsxs62("div", { className: "min-w-0 flex-1", children: [
8105
+ /* @__PURE__ */ jsx90("p", { className: "truncate text-body-sm font-medium leading-none text-default", children: title }),
8106
+ subtitle && /* @__PURE__ */ jsx90("p", { className: "mt-0.5 truncate text-body-xs text-default-secondary", children: subtitle })
7940
8107
  ] })
7941
8108
  ]
7942
8109
  }
7943
8110
  ),
7944
- aside && /* @__PURE__ */ jsx89(
8111
+ aside && /* @__PURE__ */ jsx90(
7945
8112
  "div",
7946
8113
  {
7947
- className: clsx69("min-w-0", asideWidth ? "shrink-0" : "flex-1"),
8114
+ className: clsx70("min-w-0", asideWidth ? "shrink-0" : "flex-1"),
7948
8115
  style: asideWidth ? { width: asideWidth } : void 0,
7949
8116
  children: aside
7950
8117
  }
7951
8118
  ),
7952
- meter && /* @__PURE__ */ jsx89(
8119
+ meter && /* @__PURE__ */ jsx90(
7953
8120
  "div",
7954
8121
  {
7955
- className: clsx69("min-w-0", meterWidth ? "shrink-0" : "flex-1"),
8122
+ className: clsx70("min-w-0", meterWidth ? "shrink-0" : "flex-1"),
7956
8123
  style: meterWidth ? { width: meterWidth } : void 0,
7957
8124
  children: meter
7958
8125
  }
7959
8126
  ),
7960
- trailing && /* @__PURE__ */ jsx89("div", { className: "shrink-0 text-right", style: trailingWidth ? { width: trailingWidth } : void 0, children: trailing })
8127
+ trailing && /* @__PURE__ */ jsx90("div", { className: "shrink-0 text-right", style: trailingWidth ? { width: trailingWidth } : void 0, children: trailing })
7961
8128
  ] });
7962
8129
  }
7963
8130
 
7964
8131
  // src/components/lists/numbered-list.tsx
7965
- import clsx70 from "clsx";
7966
- import { jsx as jsx90, jsxs as jsxs62 } from "react/jsx-runtime";
8132
+ import clsx71 from "clsx";
8133
+ import { jsx as jsx91, jsxs as jsxs63 } from "react/jsx-runtime";
7967
8134
  var GAP4 = {
7968
8135
  sm: "gap-2",
7969
8136
  md: "gap-3"
@@ -7977,18 +8144,18 @@ function NumberedList({
7977
8144
  gap = "md",
7978
8145
  className
7979
8146
  }) {
7980
- return /* @__PURE__ */ jsx90("ol", { className: clsx70("flex list-none flex-col p-0", GAP4[gap], className), children: items.map((item, index) => {
8147
+ return /* @__PURE__ */ jsx91("ol", { className: clsx71("flex list-none flex-col p-0", GAP4[gap], className), children: items.map((item, index) => {
7981
8148
  const tone = !item.tone || item.tone === "auto" ? getScoreTone(item.score, { direction }) : item.tone;
7982
- return /* @__PURE__ */ jsxs62("li", { className: "flex w-full shrink-0 flex-col gap-1.5", children: [
7983
- /* @__PURE__ */ jsxs62("div", { className: "flex w-full items-center justify-between", children: [
7984
- /* @__PURE__ */ jsxs62("div", { className: "flex min-w-0 items-center gap-2.5", children: [
7985
- /* @__PURE__ */ jsx90("span", { className: "w-[14px] shrink-0 text-body-xs font-bold text-default-secondary", children: startAt + index }),
7986
- /* @__PURE__ */ jsxs62("div", { className: "flex min-w-0 flex-col gap-px", children: [
7987
- /* @__PURE__ */ jsx90("span", { className: "truncate text-body-sm font-medium leading-none text-default", children: item.title }),
7988
- item.subtitle && /* @__PURE__ */ jsx90("span", { className: "text-body-tiny text-default-tertiary", children: item.subtitle })
8149
+ return /* @__PURE__ */ jsxs63("li", { className: "flex w-full shrink-0 flex-col gap-1.5", children: [
8150
+ /* @__PURE__ */ jsxs63("div", { className: "flex w-full items-center justify-between", children: [
8151
+ /* @__PURE__ */ jsxs63("div", { className: "flex min-w-0 items-center gap-2.5", children: [
8152
+ /* @__PURE__ */ jsx91("span", { className: "w-[14px] shrink-0 text-body-xs font-bold text-default-secondary", children: startAt + index }),
8153
+ /* @__PURE__ */ jsxs63("div", { className: "flex min-w-0 flex-col gap-px", children: [
8154
+ /* @__PURE__ */ jsx91("span", { className: "truncate text-body-sm font-medium leading-none text-default", children: item.title }),
8155
+ item.subtitle && /* @__PURE__ */ jsx91("span", { className: "text-body-tiny text-default-tertiary", children: item.subtitle })
7989
8156
  ] })
7990
8157
  ] }),
7991
- /* @__PURE__ */ jsx90(
8158
+ /* @__PURE__ */ jsx91(
7992
8159
  ScoreValue,
7993
8160
  {
7994
8161
  value: item.score,
@@ -7999,43 +8166,43 @@ function NumberedList({
7999
8166
  }
8000
8167
  )
8001
8168
  ] }),
8002
- /* @__PURE__ */ jsx90(ProgressBar, { value: item.score, tone, "aria-label": `${item.title} score` })
8169
+ /* @__PURE__ */ jsx91(ProgressBar, { value: item.score, tone, "aria-label": `${item.title} score` })
8003
8170
  ] }, `${item.title}-${index}`);
8004
8171
  }) });
8005
8172
  }
8006
8173
 
8007
8174
  // src/components/lists/icon-text-row.tsx
8008
- import clsx71 from "clsx";
8009
- import { jsx as jsx91, jsxs as jsxs63 } from "react/jsx-runtime";
8175
+ import clsx72 from "clsx";
8176
+ import { jsx as jsx92, jsxs as jsxs64 } from "react/jsx-runtime";
8010
8177
  function IconTextRow({ icon, title, detail, className }) {
8011
- return /* @__PURE__ */ jsxs63("div", { className: clsx71("flex items-start gap-3", className), children: [
8012
- /* @__PURE__ */ jsx91("span", { className: "flex size-9 shrink-0 items-center justify-center rounded-full bg-brand-tertiary text-brand", children: icon }),
8013
- /* @__PURE__ */ jsxs63("div", { className: "min-w-0", children: [
8014
- /* @__PURE__ */ jsx91("p", { className: "text-body-sm font-semibold text-default", children: title }),
8015
- /* @__PURE__ */ jsx91("p", { className: "mt-0.5 text-body-xs text-default-secondary", children: detail })
8178
+ return /* @__PURE__ */ jsxs64("div", { className: clsx72("flex items-start gap-3", className), children: [
8179
+ /* @__PURE__ */ jsx92("span", { className: "flex size-9 shrink-0 items-center justify-center rounded-full bg-brand-tertiary text-brand", children: icon }),
8180
+ /* @__PURE__ */ jsxs64("div", { className: "min-w-0", children: [
8181
+ /* @__PURE__ */ jsx92("p", { className: "text-body-sm font-semibold text-default", children: title }),
8182
+ /* @__PURE__ */ jsx92("p", { className: "mt-0.5 text-body-xs text-default-secondary", children: detail })
8016
8183
  ] })
8017
8184
  ] });
8018
8185
  }
8019
8186
 
8020
8187
  // src/components/lists/checklist-row.tsx
8021
- import clsx72 from "clsx";
8188
+ import clsx73 from "clsx";
8022
8189
  import { CheckIcon as CheckIcon5 } from "lucide-react";
8023
- import { jsx as jsx92, jsxs as jsxs64 } from "react/jsx-runtime";
8190
+ import { jsx as jsx93, jsxs as jsxs65 } from "react/jsx-runtime";
8024
8191
  function ChecklistRow({ label, state, className }) {
8025
- return /* @__PURE__ */ jsxs64("li", { "data-state": state, className: clsx72("flex items-center gap-3", className), children: [
8026
- /* @__PURE__ */ jsx92("span", { className: "flex size-5 shrink-0 items-center justify-center", children: state === "done" ? /* @__PURE__ */ jsx92(CheckIcon5, { className: "size-4 text-positive", strokeWidth: 2.5, "aria-hidden": true }) : /* @__PURE__ */ jsx92(
8192
+ return /* @__PURE__ */ jsxs65("li", { "data-state": state, className: clsx73("flex items-center gap-3", className), children: [
8193
+ /* @__PURE__ */ jsx93("span", { className: "flex size-5 shrink-0 items-center justify-center", children: state === "done" ? /* @__PURE__ */ jsx93(CheckIcon5, { className: "size-4 text-positive", strokeWidth: 2.5, "aria-hidden": true }) : /* @__PURE__ */ jsx93(
8027
8194
  "span",
8028
8195
  {
8029
- className: clsx72(
8196
+ className: clsx73(
8030
8197
  "size-3.5 rounded-full border-2",
8031
8198
  state === "active" ? "motion-safe:animate-pulse border-brand-emphasis border-t-transparent" : "border-disabled"
8032
8199
  )
8033
8200
  }
8034
8201
  ) }),
8035
- /* @__PURE__ */ jsx92(
8202
+ /* @__PURE__ */ jsx93(
8036
8203
  "span",
8037
8204
  {
8038
- className: clsx72(
8205
+ className: clsx73(
8039
8206
  "text-body-sm",
8040
8207
  state === "pending" ? "text-default-tertiary" : "font-semibold text-default"
8041
8208
  ),
@@ -8046,22 +8213,22 @@ function ChecklistRow({ label, state, className }) {
8046
8213
  }
8047
8214
 
8048
8215
  // src/components/lists/steps-list.tsx
8049
- import clsx73 from "clsx";
8050
- import { jsx as jsx93, jsxs as jsxs65 } from "react/jsx-runtime";
8216
+ import clsx74 from "clsx";
8217
+ import { jsx as jsx94, jsxs as jsxs66 } from "react/jsx-runtime";
8051
8218
  function StepsList({ steps, className }) {
8052
- return /* @__PURE__ */ jsx93("ol", { className: clsx73("flex flex-col gap-1.5", className), children: steps.map((step, i) => (
8219
+ return /* @__PURE__ */ jsx94("ol", { className: clsx74("flex flex-col gap-1.5", className), children: steps.map((step, i) => (
8053
8220
  // `text-[12px]` was off the type scale; 12 sits midway between Scale 01 (11) and
8054
8221
  // Scale 02 (13), so it rounds up to 13 like every other snap in this pass.
8055
- /* @__PURE__ */ jsxs65("li", { className: "flex items-start gap-2 text-body-xs text-default", children: [
8056
- /* @__PURE__ */ jsx93("span", { className: "mt-0.5 flex size-4 shrink-0 items-center justify-center rounded-full bg-brand-tertiary text-[9px] font-bold text-brand", children: i + 1 }),
8222
+ /* @__PURE__ */ jsxs66("li", { className: "flex items-start gap-2 text-body-xs text-default", children: [
8223
+ /* @__PURE__ */ jsx94("span", { className: "mt-0.5 flex size-4 shrink-0 items-center justify-center rounded-full bg-brand-tertiary text-[9px] font-bold text-brand", children: i + 1 }),
8057
8224
  step
8058
8225
  ] }, i)
8059
8226
  )) });
8060
8227
  }
8061
8228
 
8062
8229
  // src/components/lists/detail-item.tsx
8063
- import clsx74 from "clsx";
8064
- import { jsx as jsx94, jsxs as jsxs66 } from "react/jsx-runtime";
8230
+ import clsx75 from "clsx";
8231
+ import { jsx as jsx95, jsxs as jsxs67 } from "react/jsx-runtime";
8065
8232
  var SPAN = {
8066
8233
  1: "",
8067
8234
  2: "sm:col-span-2",
@@ -8078,18 +8245,18 @@ function DetailItem({
8078
8245
  }) {
8079
8246
  const shown = value === null || value === void 0 || value === "" ? "\u2014" : value;
8080
8247
  if (layout === "inline") {
8081
- return /* @__PURE__ */ jsxs66("div", { className: clsx74("flex gap-3 text-body-xs", SPAN[span], className), children: [
8082
- /* @__PURE__ */ jsx94("span", { className: clsx74("shrink-0 text-default-secondary", labelWidth), children: label }),
8083
- /* @__PURE__ */ jsxs66("span", { className: "flex min-w-0 flex-1 flex-col gap-0.5 [overflow-wrap:anywhere]", children: [
8084
- /* @__PURE__ */ jsx94("span", { className: "text-default", children: shown }),
8085
- detail && /* @__PURE__ */ jsx94("span", { className: "text-default-secondary", children: detail })
8248
+ return /* @__PURE__ */ jsxs67("div", { className: clsx75("flex gap-3 text-body-xs", SPAN[span], className), children: [
8249
+ /* @__PURE__ */ jsx95("span", { className: clsx75("shrink-0 text-default-secondary", labelWidth), children: label }),
8250
+ /* @__PURE__ */ jsxs67("span", { className: "flex min-w-0 flex-1 flex-col gap-0.5 [overflow-wrap:anywhere]", children: [
8251
+ /* @__PURE__ */ jsx95("span", { className: "text-default", children: shown }),
8252
+ detail && /* @__PURE__ */ jsx95("span", { className: "text-default-secondary", children: detail })
8086
8253
  ] })
8087
8254
  ] });
8088
8255
  }
8089
- return /* @__PURE__ */ jsxs66("div", { className: clsx74("flex min-w-0 flex-col gap-0.5", SPAN[span], className), children: [
8090
- /* @__PURE__ */ jsx94("p", { className: "text-body-tiny font-medium text-default-secondary", children: label }),
8091
- /* @__PURE__ */ jsx94("p", { className: "text-body-sm font-medium text-default [overflow-wrap:anywhere]", children: shown }),
8092
- detail && /* @__PURE__ */ jsx94("p", { className: "text-body-xs text-default-secondary [overflow-wrap:anywhere]", children: detail })
8256
+ return /* @__PURE__ */ jsxs67("div", { className: clsx75("flex min-w-0 flex-col gap-0.5", SPAN[span], className), children: [
8257
+ /* @__PURE__ */ jsx95("p", { className: "text-body-tiny font-medium text-default-secondary", children: label }),
8258
+ /* @__PURE__ */ jsx95("p", { className: "text-body-sm font-medium text-default [overflow-wrap:anywhere]", children: shown }),
8259
+ detail && /* @__PURE__ */ jsx95("p", { className: "text-body-xs text-default-secondary [overflow-wrap:anywhere]", children: detail })
8093
8260
  ] });
8094
8261
  }
8095
8262
  var COLUMNS3 = {
@@ -8100,38 +8267,38 @@ var COLUMNS3 = {
8100
8267
  4: "grid-cols-2 sm:grid-cols-3 lg:grid-cols-4"
8101
8268
  };
8102
8269
  function DetailGrid({ children, columns = "auto", className }) {
8103
- return /* @__PURE__ */ jsx94("div", { className: clsx74("grid gap-x-4 gap-y-4", COLUMNS3[columns], className), children });
8270
+ return /* @__PURE__ */ jsx95("div", { className: clsx75("grid gap-x-4 gap-y-4", COLUMNS3[columns], className), children });
8104
8271
  }
8105
8272
 
8106
8273
  // src/components/lists/description-list.tsx
8107
- import { useEffect as useEffect11, useState as useState21 } from "react";
8108
- import clsx75 from "clsx";
8274
+ import { useEffect as useEffect12, useState as useState21 } from "react";
8275
+ import clsx76 from "clsx";
8109
8276
  import { CheckIcon as CheckIcon6, CopyIcon } from "lucide-react";
8110
- import { jsx as jsx95, jsxs as jsxs67 } from "react/jsx-runtime";
8277
+ import { jsx as jsx96, jsxs as jsxs68 } from "react/jsx-runtime";
8111
8278
  function DescriptionList({ children, className }) {
8112
- return /* @__PURE__ */ jsx95("dl", { className: cn("flex flex-col gap-3", className), children });
8279
+ return /* @__PURE__ */ jsx96("dl", { className: cn("flex flex-col gap-3", className), children });
8113
8280
  }
8114
8281
  function DescriptionItem({ label, value, copyValue, className }) {
8115
8282
  const shown = value === null || value === void 0 || value === "" ? "\u2014" : value;
8116
- return /* @__PURE__ */ jsxs67("div", { className: cn("flex flex-wrap items-start gap-x-4 gap-y-0.5 text-body-xs", className), children: [
8117
- /* @__PURE__ */ jsx95("dt", { className: "shrink-0 grow-0 basis-28 text-default-secondary", children: label }),
8118
- /* @__PURE__ */ jsxs67("dd", { className: "flex min-w-0 flex-[1_1_10rem] items-start gap-1.5 text-default", children: [
8119
- /* @__PURE__ */ jsx95("span", { className: "min-w-0 [overflow-wrap:anywhere]", children: shown }),
8120
- copyValue && /* @__PURE__ */ jsx95(CopyButton, { value: copyValue, label: `Copy ${label.toLowerCase()}` })
8283
+ return /* @__PURE__ */ jsxs68("div", { className: cn("flex flex-wrap items-start gap-x-4 gap-y-0.5 text-body-xs", className), children: [
8284
+ /* @__PURE__ */ jsx96("dt", { className: "shrink-0 grow-0 basis-28 text-default-secondary", children: label }),
8285
+ /* @__PURE__ */ jsxs68("dd", { className: "flex min-w-0 flex-[1_1_10rem] items-start gap-1.5 text-default", children: [
8286
+ /* @__PURE__ */ jsx96("span", { className: "min-w-0 [overflow-wrap:anywhere]", children: shown }),
8287
+ copyValue && /* @__PURE__ */ jsx96(CopyButton, { value: copyValue, label: `Copy ${label.toLowerCase()}` })
8121
8288
  ] })
8122
8289
  ] });
8123
8290
  }
8124
8291
  function CopyButton({ value, label, copiedLabel = "Copied", className }) {
8125
8292
  const [copied, setCopied] = useState21(false);
8126
- useEffect11(() => {
8293
+ useEffect12(() => {
8127
8294
  if (!copied) return;
8128
8295
  const timer = window.setTimeout(() => setCopied(false), 2e3);
8129
8296
  return () => window.clearTimeout(timer);
8130
8297
  }, [copied]);
8131
8298
  return (
8132
8299
  // relative: keeps the sr-only status (absolutely positioned) inside a scrolling container.
8133
- /* @__PURE__ */ jsxs67("span", { className: "relative inline-flex", children: [
8134
- /* @__PURE__ */ jsx95(
8300
+ /* @__PURE__ */ jsxs68("span", { className: "relative inline-flex", children: [
8301
+ /* @__PURE__ */ jsx96(
8135
8302
  IconButton,
8136
8303
  {
8137
8304
  variant: "subtle",
@@ -8145,10 +8312,10 @@ function CopyButton({ value, label, copiedLabel = "Copied", className }) {
8145
8312
  () => void 0
8146
8313
  );
8147
8314
  },
8148
- children: copied ? /* @__PURE__ */ jsx95(CheckIcon6, { "aria-hidden": true }) : /* @__PURE__ */ jsx95(CopyIcon, { "aria-hidden": true })
8315
+ children: copied ? /* @__PURE__ */ jsx96(CheckIcon6, { "aria-hidden": true }) : /* @__PURE__ */ jsx96(CopyIcon, { "aria-hidden": true })
8149
8316
  }
8150
8317
  ),
8151
- /* @__PURE__ */ jsx95("span", { role: "status", className: "sr-only", children: copied ? copiedLabel : "" })
8318
+ /* @__PURE__ */ jsx96("span", { role: "status", className: "sr-only", children: copied ? copiedLabel : "" })
8152
8319
  ] })
8153
8320
  );
8154
8321
  }
@@ -8156,16 +8323,16 @@ function EmailText({ email, className }) {
8156
8323
  const at = email.lastIndexOf("@");
8157
8324
  const local = at > 0 ? email.slice(0, at) : email;
8158
8325
  const domain = at > 0 ? email.slice(at) : "";
8159
- return /* @__PURE__ */ jsxs67("span", { title: email, "data-slot": "email-text", className: clsx75("flex min-w-0 max-w-full", className), children: [
8160
- /* @__PURE__ */ jsx95("span", { className: "min-w-0 overflow-hidden text-ellipsis whitespace-nowrap", children: local }),
8161
- domain && /* @__PURE__ */ jsx95("span", { className: "min-w-0 overflow-hidden text-ellipsis whitespace-nowrap [flex-shrink:0.001]", children: domain })
8326
+ return /* @__PURE__ */ jsxs68("span", { title: email, "data-slot": "email-text", className: clsx76("flex min-w-0 max-w-full", className), children: [
8327
+ /* @__PURE__ */ jsx96("span", { className: "min-w-0 overflow-hidden text-ellipsis whitespace-nowrap", children: local }),
8328
+ domain && /* @__PURE__ */ jsx96("span", { className: "min-w-0 overflow-hidden text-ellipsis whitespace-nowrap [flex-shrink:0.001]", children: domain })
8162
8329
  ] });
8163
8330
  }
8164
8331
 
8165
8332
  // src/components/lists/checked-group-list.tsx
8166
- import clsx76 from "clsx";
8333
+ import clsx77 from "clsx";
8167
8334
  import { CheckIcon as CheckIcon7 } from "lucide-react";
8168
- import { jsx as jsx96, jsxs as jsxs68 } from "react/jsx-runtime";
8335
+ import { jsx as jsx97, jsxs as jsxs69 } from "react/jsx-runtime";
8169
8336
  var COLUMNS4 = {
8170
8337
  1: "columns-1",
8171
8338
  2: "columns-2",
@@ -8179,23 +8346,23 @@ function CheckedGroupList({
8179
8346
  className
8180
8347
  }) {
8181
8348
  if (groups.length === 0) {
8182
- return /* @__PURE__ */ jsx96("p", { className: clsx76("text-body-xs text-default-secondary", className), children: emptyLabel });
8349
+ return /* @__PURE__ */ jsx97("p", { className: clsx77("text-body-xs text-default-secondary", className), children: emptyLabel });
8183
8350
  }
8184
- const glyph = icon === void 0 ? /* @__PURE__ */ jsx96(CheckIcon7, { className: "size-3.5", strokeWidth: 2.5, "aria-hidden": true }) : icon;
8185
- return /* @__PURE__ */ jsx96("div", { className: clsx76(COLUMNS4[columns], "gap-x-6", className), children: groups.map((group) => /* @__PURE__ */ jsxs68("div", { className: "mb-5 break-inside-avoid last:mb-0", children: [
8186
- /* @__PURE__ */ jsx96("p", { className: "mb-2 text-body-tiny font-semibold uppercase tracking-wide text-default-secondary", children: group.label }),
8187
- /* @__PURE__ */ jsx96("ul", { className: "space-y-1.5", children: group.items.map((item) => /* @__PURE__ */ jsxs68("li", { className: "flex items-center gap-2 text-body-xs text-default", children: [
8188
- glyph && /* @__PURE__ */ jsx96("span", { className: "shrink-0", children: glyph }),
8351
+ const glyph = icon === void 0 ? /* @__PURE__ */ jsx97(CheckIcon7, { className: "size-3.5", strokeWidth: 2.5, "aria-hidden": true }) : icon;
8352
+ return /* @__PURE__ */ jsx97("div", { className: clsx77(COLUMNS4[columns], "gap-x-6", className), children: groups.map((group) => /* @__PURE__ */ jsxs69("div", { className: "mb-5 break-inside-avoid last:mb-0", children: [
8353
+ /* @__PURE__ */ jsx97("p", { className: "mb-2 text-body-tiny font-semibold uppercase tracking-wide text-default-secondary", children: group.label }),
8354
+ /* @__PURE__ */ jsx97("ul", { className: "space-y-1.5", children: group.items.map((item) => /* @__PURE__ */ jsxs69("li", { className: "flex items-center gap-2 text-body-xs text-default", children: [
8355
+ glyph && /* @__PURE__ */ jsx97("span", { className: "shrink-0", children: glyph }),
8189
8356
  item
8190
8357
  ] }, item)) })
8191
8358
  ] }, group.label)) });
8192
8359
  }
8193
8360
 
8194
8361
  // src/components/lists/tree-view.tsx
8195
- import { useMemo as useMemo11, useRef as useRef15, useState as useState22 } from "react";
8196
- import clsx77 from "clsx";
8362
+ import { useMemo as useMemo12, useRef as useRef15, useState as useState22 } from "react";
8363
+ import clsx78 from "clsx";
8197
8364
  import { ChevronRightIcon as ChevronRightIcon6 } from "lucide-react";
8198
- import { jsx as jsx97, jsxs as jsxs69 } from "react/jsx-runtime";
8365
+ import { jsx as jsx98, jsxs as jsxs70 } from "react/jsx-runtime";
8199
8366
  var ROW = {
8200
8367
  sm: "min-h-8 py-1 text-body-xs",
8201
8368
  md: "min-h-10 py-2 text-body-sm"
@@ -8227,8 +8394,8 @@ function TreeView({
8227
8394
  });
8228
8395
  const [focusedId, setFocusedId] = useState22(null);
8229
8396
  const rowRefs = useRef15(/* @__PURE__ */ new Map());
8230
- const expandedSet = useMemo11(() => new Set(expanded), [expanded]);
8231
- const visible = useMemo11(() => {
8397
+ const expandedSet = useMemo12(() => new Set(expanded), [expanded]);
8398
+ const visible = useMemo12(() => {
8232
8399
  const out = [];
8233
8400
  const walk = (nodes, level, parentId) => {
8234
8401
  for (const item of nodes) {
@@ -8299,7 +8466,7 @@ function TreeView({
8299
8466
  if (!node) return null;
8300
8467
  const children = getChildren?.(item) ?? [];
8301
8468
  const isSelected = selected === id;
8302
- return /* @__PURE__ */ jsxs69(
8469
+ return /* @__PURE__ */ jsxs70(
8303
8470
  "li",
8304
8471
  {
8305
8472
  role: "treeitem",
@@ -8321,7 +8488,7 @@ function TreeView({
8321
8488
  },
8322
8489
  className: "outline-none [&:focus-visible>div]:ring-2 [&:focus-visible>div]:ring-inset [&:focus-visible>div]:ring-brand",
8323
8490
  children: [
8324
- /* @__PURE__ */ jsxs69(
8491
+ /* @__PURE__ */ jsxs70(
8325
8492
  "div",
8326
8493
  {
8327
8494
  onClick: () => {
@@ -8329,7 +8496,7 @@ function TreeView({
8329
8496
  choose(node);
8330
8497
  },
8331
8498
  style: { paddingLeft: 8 + (level - 1) * INDENT },
8332
- className: clsx77(
8499
+ className: clsx78(
8333
8500
  "flex w-full cursor-pointer items-center gap-1.5 rounded-md pr-2 transition-colors",
8334
8501
  ROW[size],
8335
8502
  isSelected ? "bg-brand-secondary text-default" : "text-default hover:bg-default-secondary"
@@ -8339,7 +8506,7 @@ function TreeView({
8339
8506
  // Not a button: the treeitem is the one tab stop, and Left/Right already toggle.
8340
8507
  // A pointer user still needs a target that toggles without selecting.
8341
8508
  // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
8342
- /* @__PURE__ */ jsx97(
8509
+ /* @__PURE__ */ jsx98(
8343
8510
  "span",
8344
8511
  {
8345
8512
  "aria-hidden": true,
@@ -8350,11 +8517,11 @@ function TreeView({
8350
8517
  focus(id);
8351
8518
  },
8352
8519
  className: "flex size-5 shrink-0 items-center justify-center rounded text-icon-default-secondary hover:bg-default-tertiary",
8353
- children: /* @__PURE__ */ jsx97(ChevronRightIcon6, { className: clsx77("size-3.5 transition-transform motion-reduce:transition-none", node.expanded && "rotate-90") })
8520
+ children: /* @__PURE__ */ jsx98(ChevronRightIcon6, { className: clsx78("size-3.5 transition-transform motion-reduce:transition-none", node.expanded && "rotate-90") })
8354
8521
  }
8355
8522
  )
8356
- ) : /* @__PURE__ */ jsx97("span", { "aria-hidden": true, className: "size-5 shrink-0" }),
8357
- /* @__PURE__ */ jsx97("div", { className: "min-w-0 flex-1", children: renderItem(item, {
8523
+ ) : /* @__PURE__ */ jsx98("span", { "aria-hidden": true, className: "size-5 shrink-0" }),
8524
+ /* @__PURE__ */ jsx98("div", { className: "min-w-0 flex-1", children: renderItem(item, {
8358
8525
  level,
8359
8526
  hasChildren: node.hasChildren,
8360
8527
  expanded: node.expanded,
@@ -8363,49 +8530,51 @@ function TreeView({
8363
8530
  ]
8364
8531
  }
8365
8532
  ),
8366
- node.expanded && /* @__PURE__ */ jsx97("ul", { role: "group", className: "m-0 list-none p-0", children: renderLevel(children, level + 1) })
8533
+ node.expanded && /* @__PURE__ */ jsx98("ul", { role: "group", className: "m-0 list-none p-0", children: renderLevel(children, level + 1) })
8367
8534
  ]
8368
8535
  },
8369
8536
  id
8370
8537
  );
8371
8538
  });
8372
- return /* @__PURE__ */ jsx97("ul", { role: "tree", "aria-label": label, className: clsx77("m-0 flex list-none flex-col p-0", className), children: renderLevel(items, 1) });
8539
+ return /* @__PURE__ */ jsx98("ul", { role: "tree", "aria-label": label, className: clsx78("m-0 flex list-none flex-col p-0", className), children: renderLevel(items, 1) });
8373
8540
  }
8374
8541
 
8375
8542
  // src/index.tsx
8376
8543
  export * from "./data-table.js";
8377
8544
 
8378
8545
  // src/components/feedback/inline-alert.tsx
8379
- import clsx78 from "clsx";
8546
+ import clsx79 from "clsx";
8380
8547
  import { CircleCheckBigIcon as CircleCheckBigIcon2, InfoIcon as InfoIcon2, TriangleAlertIcon as TriangleAlertIcon2 } from "lucide-react";
8381
- import { jsx as jsx98, jsxs as jsxs70 } from "react/jsx-runtime";
8548
+ import { jsx as jsx99, jsxs as jsxs71 } from "react/jsx-runtime";
8382
8549
  var toneStyles3 = {
8383
8550
  info: "border-brand-tertiary bg-brand-tertiary text-brand",
8384
8551
  warning: "border-warning-tertiary bg-warning-tertiary text-warning",
8385
8552
  danger: "border-danger-tertiary bg-danger-tertiary text-danger",
8386
- positive: "border-positive-tertiary bg-positive-tertiary text-positive"
8553
+ positive: "border-positive-tertiary bg-positive-tertiary text-positive",
8554
+ neutral: "border-default bg-default text-default-secondary"
8387
8555
  };
8388
8556
  var toneIcons = {
8389
- info: /* @__PURE__ */ jsx98(InfoIcon2, { className: "size-4" }),
8390
- warning: /* @__PURE__ */ jsx98(TriangleAlertIcon2, { className: "size-4" }),
8391
- danger: /* @__PURE__ */ jsx98(TriangleAlertIcon2, { className: "size-4" }),
8392
- positive: /* @__PURE__ */ jsx98(CircleCheckBigIcon2, { className: "size-4" })
8557
+ info: /* @__PURE__ */ jsx99(InfoIcon2, { className: "size-4" }),
8558
+ warning: /* @__PURE__ */ jsx99(TriangleAlertIcon2, { className: "size-4" }),
8559
+ danger: /* @__PURE__ */ jsx99(TriangleAlertIcon2, { className: "size-4" }),
8560
+ positive: /* @__PURE__ */ jsx99(CircleCheckBigIcon2, { className: "size-4" }),
8561
+ neutral: /* @__PURE__ */ jsx99(InfoIcon2, { className: "size-4 text-icon-default-secondary" })
8393
8562
  };
8394
- function InlineAlert({ tone, children, icon, className }) {
8563
+ function InlineAlert({ tone, children, icon, role, className }) {
8395
8564
  const glyph = icon === void 0 ? toneIcons[tone] : icon;
8396
- return /* @__PURE__ */ jsxs70(
8565
+ return /* @__PURE__ */ jsxs71(
8397
8566
  "div",
8398
8567
  {
8399
8568
  "data-tone": tone,
8400
- role: tone === "danger" ? "alert" : "status",
8401
- className: clsx78(
8569
+ role: role ?? (tone === "danger" ? "alert" : "status"),
8570
+ className: clsx79(
8402
8571
  "flex items-start gap-3 rounded-xl border p-4 text-body-xs",
8403
8572
  toneStyles3[tone],
8404
8573
  className
8405
8574
  ),
8406
8575
  children: [
8407
- glyph && /* @__PURE__ */ jsx98("span", { "aria-hidden": true, className: "mt-px shrink-0", children: glyph }),
8408
- /* @__PURE__ */ jsx98("div", { className: "min-w-0", children })
8576
+ glyph && /* @__PURE__ */ jsx99("span", { "aria-hidden": true, className: "mt-px shrink-0", children: glyph }),
8577
+ /* @__PURE__ */ jsx99("div", { className: "min-w-0", children })
8409
8578
  ]
8410
8579
  }
8411
8580
  );
@@ -8413,7 +8582,7 @@ function InlineAlert({ tone, children, icon, className }) {
8413
8582
 
8414
8583
  // src/components/feedback/error-boundary.tsx
8415
8584
  import { Component } from "react";
8416
- import { jsx as jsx99 } from "react/jsx-runtime";
8585
+ import { jsx as jsx100 } from "react/jsx-runtime";
8417
8586
  var ErrorBoundary = class extends Component {
8418
8587
  constructor() {
8419
8588
  super(...arguments);
@@ -8433,7 +8602,7 @@ var ErrorBoundary = class extends Component {
8433
8602
  }
8434
8603
  render() {
8435
8604
  if (!this.state.error) return this.props.children;
8436
- return this.props.fallback ?? /* @__PURE__ */ jsx99(
8605
+ return this.props.fallback ?? /* @__PURE__ */ jsx100(
8437
8606
  "div",
8438
8607
  {
8439
8608
  role: "status",
@@ -8446,27 +8615,30 @@ var ErrorBoundary = class extends Component {
8446
8615
  };
8447
8616
 
8448
8617
  // src/components/feedback/banner.tsx
8449
- import { forwardRef as forwardRef31, useId as useId19 } from "react";
8450
- import clsx79 from "clsx";
8618
+ import { forwardRef as forwardRef31, useId as useId20 } from "react";
8619
+ import clsx80 from "clsx";
8451
8620
  import { CircleCheckBigIcon as CircleCheckBigIcon3, InfoIcon as InfoIcon3, TriangleAlertIcon as TriangleAlertIcon3, XIcon as XIcon7 } from "lucide-react";
8452
- import { jsx as jsx100, jsxs as jsxs71 } from "react/jsx-runtime";
8621
+ import { jsx as jsx101, jsxs as jsxs72 } from "react/jsx-runtime";
8453
8622
  var TONE_STYLES3 = {
8454
8623
  info: "border-brand-tertiary bg-brand-tertiary text-default",
8455
8624
  positive: "border-positive-tertiary bg-positive-tertiary text-default",
8456
8625
  warning: "border-warning-tertiary bg-warning-tertiary text-default",
8457
- danger: "border-danger-tertiary bg-danger-tertiary text-default"
8626
+ danger: "border-danger-tertiary bg-danger-tertiary text-default",
8627
+ neutral: "border-default bg-default text-default"
8458
8628
  };
8459
8629
  var TONE_ICON_COLOR = {
8460
8630
  info: "text-icon-brand",
8461
8631
  positive: "text-icon-positive",
8462
8632
  warning: "text-icon-warning",
8463
- danger: "text-icon-danger"
8633
+ danger: "text-icon-danger",
8634
+ neutral: "text-icon-default-secondary"
8464
8635
  };
8465
8636
  var TONE_ICON2 = {
8466
- info: /* @__PURE__ */ jsx100(InfoIcon3, { "aria-hidden": true, className: "size-5" }),
8467
- positive: /* @__PURE__ */ jsx100(CircleCheckBigIcon3, { "aria-hidden": true, className: "size-5" }),
8468
- warning: /* @__PURE__ */ jsx100(TriangleAlertIcon3, { "aria-hidden": true, className: "size-5" }),
8469
- danger: /* @__PURE__ */ jsx100(TriangleAlertIcon3, { "aria-hidden": true, className: "size-5" })
8637
+ info: /* @__PURE__ */ jsx101(InfoIcon3, { "aria-hidden": true, className: "size-5" }),
8638
+ positive: /* @__PURE__ */ jsx101(CircleCheckBigIcon3, { "aria-hidden": true, className: "size-5" }),
8639
+ warning: /* @__PURE__ */ jsx101(TriangleAlertIcon3, { "aria-hidden": true, className: "size-5" }),
8640
+ danger: /* @__PURE__ */ jsx101(TriangleAlertIcon3, { "aria-hidden": true, className: "size-5" }),
8641
+ neutral: /* @__PURE__ */ jsx101(InfoIcon3, { "aria-hidden": true, className: "size-5" })
8470
8642
  };
8471
8643
  var Banner = forwardRef31(function Banner2({
8472
8644
  title,
@@ -8479,9 +8651,9 @@ var Banner = forwardRef31(function Banner2({
8479
8651
  className,
8480
8652
  ...rest
8481
8653
  }, ref) {
8482
- const titleId = useId19();
8654
+ const titleId = useId20();
8483
8655
  const glyph = icon === void 0 ? TONE_ICON2[tone] : icon;
8484
- return /* @__PURE__ */ jsxs71(
8656
+ return /* @__PURE__ */ jsxs72(
8485
8657
  "div",
8486
8658
  {
8487
8659
  "data-tone": tone,
@@ -8490,20 +8662,20 @@ var Banner = forwardRef31(function Banner2({
8490
8662
  role: variant === "alert" ? "alert" : "status",
8491
8663
  "aria-labelledby": titleId,
8492
8664
  "data-slot": "banner",
8493
- className: clsx79(
8665
+ className: clsx80(
8494
8666
  "flex w-full items-start gap-3 rounded-xl border p-4",
8495
8667
  TONE_STYLES3[tone],
8496
8668
  className
8497
8669
  ),
8498
8670
  ...rest,
8499
8671
  children: [
8500
- glyph && /* @__PURE__ */ jsx100("span", { "aria-hidden": true, className: clsx79("mt-px shrink-0", TONE_ICON_COLOR[tone]), children: glyph }),
8501
- /* @__PURE__ */ jsxs71("div", { className: "min-w-0 flex-1", children: [
8502
- /* @__PURE__ */ jsx100("p", { id: titleId, className: "text-body-sm font-semibold text-default", children: title }),
8503
- children && /* @__PURE__ */ jsx100("div", { className: "mt-1 text-body-xs text-default-secondary", children }),
8504
- action && /* @__PURE__ */ jsx100("div", { className: "mt-3 flex items-center gap-2", children: action })
8672
+ glyph && /* @__PURE__ */ jsx101("span", { "aria-hidden": true, className: clsx80("mt-px shrink-0", TONE_ICON_COLOR[tone]), children: glyph }),
8673
+ /* @__PURE__ */ jsxs72("div", { className: "min-w-0 flex-1", children: [
8674
+ /* @__PURE__ */ jsx101("p", { id: titleId, className: "text-body-sm font-semibold text-default", children: title }),
8675
+ children && /* @__PURE__ */ jsx101("div", { className: "mt-1 text-body-xs text-default-secondary", children }),
8676
+ action && /* @__PURE__ */ jsx101("div", { className: "mt-3 flex items-center gap-2", children: action })
8505
8677
  ] }),
8506
- onDismiss && /* @__PURE__ */ jsx100(
8678
+ onDismiss && /* @__PURE__ */ jsx101(
8507
8679
  IconButton,
8508
8680
  {
8509
8681
  variant: "subtle",
@@ -8511,7 +8683,7 @@ var Banner = forwardRef31(function Banner2({
8511
8683
  "aria-label": typeof title === "string" ? `Dismiss: ${title}` : "Dismiss",
8512
8684
  onClick: onDismiss,
8513
8685
  className: "-mr-1 -mt-1 shrink-0",
8514
- children: /* @__PURE__ */ jsx100(XIcon7, { "aria-hidden": true, size: 16 })
8686
+ children: /* @__PURE__ */ jsx101(XIcon7, { "aria-hidden": true, size: 16 })
8515
8687
  }
8516
8688
  )
8517
8689
  ]
@@ -8524,14 +8696,14 @@ import {
8524
8696
  createContext as createContext15,
8525
8697
  useCallback as useCallback7,
8526
8698
  useContext as useContext15,
8527
- useEffect as useEffect12,
8528
- useMemo as useMemo12,
8699
+ useEffect as useEffect13,
8700
+ useMemo as useMemo13,
8529
8701
  useRef as useRef16,
8530
8702
  useState as useState23
8531
8703
  } from "react";
8532
- import clsx80 from "clsx";
8704
+ import clsx81 from "clsx";
8533
8705
  import { CircleCheckBigIcon as CircleCheckBigIcon4, InfoIcon as InfoIcon4, TriangleAlertIcon as TriangleAlertIcon4, XIcon as XIcon8 } from "lucide-react";
8534
- import { jsx as jsx101, jsxs as jsxs72 } from "react/jsx-runtime";
8706
+ import { jsx as jsx102, jsxs as jsxs73 } from "react/jsx-runtime";
8535
8707
  var ToastContext = createContext15(null);
8536
8708
  function useToast() {
8537
8709
  const context = useContext15(ToastContext);
@@ -8539,16 +8711,18 @@ function useToast() {
8539
8711
  return context;
8540
8712
  }
8541
8713
  var TONE_ICON3 = {
8542
- info: /* @__PURE__ */ jsx101(InfoIcon4, { "aria-hidden": true, className: "size-4" }),
8543
- positive: /* @__PURE__ */ jsx101(CircleCheckBigIcon4, { "aria-hidden": true, className: "size-4" }),
8544
- warning: /* @__PURE__ */ jsx101(TriangleAlertIcon4, { "aria-hidden": true, className: "size-4" }),
8545
- danger: /* @__PURE__ */ jsx101(TriangleAlertIcon4, { "aria-hidden": true, className: "size-4" })
8714
+ info: /* @__PURE__ */ jsx102(InfoIcon4, { "aria-hidden": true, className: "size-4" }),
8715
+ positive: /* @__PURE__ */ jsx102(CircleCheckBigIcon4, { "aria-hidden": true, className: "size-4" }),
8716
+ warning: /* @__PURE__ */ jsx102(TriangleAlertIcon4, { "aria-hidden": true, className: "size-4" }),
8717
+ danger: /* @__PURE__ */ jsx102(TriangleAlertIcon4, { "aria-hidden": true, className: "size-4" }),
8718
+ neutral: /* @__PURE__ */ jsx102(InfoIcon4, { "aria-hidden": true, className: "size-4" })
8546
8719
  };
8547
8720
  var TONE_ICON_COLOR2 = {
8548
8721
  info: "text-icon-brand",
8549
8722
  positive: "text-icon-positive",
8550
8723
  warning: "text-icon-warning",
8551
- danger: "text-icon-danger"
8724
+ danger: "text-icon-danger",
8725
+ neutral: "text-icon-default-secondary"
8552
8726
  };
8553
8727
  var POSITION = {
8554
8728
  "top-left": "top-[var(--toaster-mobile-offset)] md:top-[var(--toaster-offset)] left-4 items-start",
@@ -8601,23 +8775,23 @@ function Toaster({
8601
8775
  },
8602
8776
  [duration, max, dismiss]
8603
8777
  );
8604
- useEffect12(() => {
8778
+ useEffect13(() => {
8605
8779
  const map = timers.current;
8606
8780
  return () => {
8607
8781
  for (const timer of map.values()) clearTimeout(timer);
8608
8782
  map.clear();
8609
8783
  };
8610
8784
  }, []);
8611
- const context = useMemo12(() => ({ toast, dismiss, dismissAll }), [toast, dismiss, dismissAll]);
8612
- return /* @__PURE__ */ jsxs72(ToastContext.Provider, { value: context, children: [
8785
+ const context = useMemo13(() => ({ toast, dismiss, dismissAll }), [toast, dismiss, dismissAll]);
8786
+ return /* @__PURE__ */ jsxs73(ToastContext.Provider, { value: context, children: [
8613
8787
  children,
8614
- /* @__PURE__ */ jsx101(Portal, { children: /* @__PURE__ */ jsx101(
8788
+ /* @__PURE__ */ jsx102(Portal, { children: /* @__PURE__ */ jsx102(
8615
8789
  "div",
8616
8790
  {
8617
8791
  "aria-live": "polite",
8618
8792
  "aria-atomic": "false",
8619
8793
  ...{ [TOASTER_ATTRIBUTE]: "" },
8620
- className: clsx80(
8794
+ className: clsx81(
8621
8795
  "pointer-events-none fixed z-toast flex w-[calc(100%-2rem)] max-w-[380px] flex-col gap-2",
8622
8796
  POSITION[position]
8623
8797
  ),
@@ -8625,29 +8799,29 @@ function Toaster({
8625
8799
  "--toaster-offset": toLength(offset),
8626
8800
  "--toaster-mobile-offset": toLength(mobileOffset ?? offset)
8627
8801
  },
8628
- children: toasts.map((entry) => /* @__PURE__ */ jsx101(ToastItem, { toast: entry, onDismiss: () => dismiss(entry.id) }, entry.id))
8802
+ children: toasts.map((entry) => /* @__PURE__ */ jsx102(ToastItem, { toast: entry, onDismiss: () => dismiss(entry.id) }, entry.id))
8629
8803
  }
8630
8804
  ) })
8631
8805
  ] });
8632
8806
  }
8633
8807
  function ToastItem({ toast, onDismiss }) {
8634
8808
  const tone = toast.tone ?? "info";
8635
- return /* @__PURE__ */ jsxs72(
8809
+ return /* @__PURE__ */ jsxs73(
8636
8810
  "div",
8637
8811
  {
8638
8812
  role: tone === "danger" ? "alert" : "status",
8639
- className: clsx80(
8813
+ className: clsx81(
8640
8814
  "pointer-events-auto flex w-full items-start gap-3 rounded-xl border border-default",
8641
8815
  "bg-default p-4 shadow-400"
8642
8816
  ),
8643
8817
  children: [
8644
- /* @__PURE__ */ jsx101("span", { "aria-hidden": true, className: clsx80("mt-px shrink-0", TONE_ICON_COLOR2[tone]), children: TONE_ICON3[tone] }),
8645
- /* @__PURE__ */ jsxs72("div", { className: "min-w-0 flex-1", children: [
8646
- /* @__PURE__ */ jsx101("p", { className: "text-body-sm font-semibold text-default", children: toast.title }),
8647
- toast.description && /* @__PURE__ */ jsx101("p", { className: "mt-0.5 text-body-xs text-default-secondary", children: toast.description }),
8648
- toast.action && /* @__PURE__ */ jsx101("div", { className: "mt-2 flex items-center gap-2", children: toast.action })
8818
+ /* @__PURE__ */ jsx102("span", { "aria-hidden": true, className: clsx81("mt-px shrink-0", TONE_ICON_COLOR2[tone]), children: TONE_ICON3[tone] }),
8819
+ /* @__PURE__ */ jsxs73("div", { className: "min-w-0 flex-1", children: [
8820
+ /* @__PURE__ */ jsx102("p", { className: "text-body-sm font-semibold text-default", children: toast.title }),
8821
+ toast.description && /* @__PURE__ */ jsx102("p", { className: "mt-0.5 text-body-xs text-default-secondary", children: toast.description }),
8822
+ toast.action && /* @__PURE__ */ jsx102("div", { className: "mt-2 flex items-center gap-2", children: toast.action })
8649
8823
  ] }),
8650
- /* @__PURE__ */ jsx101(
8824
+ /* @__PURE__ */ jsx102(
8651
8825
  IconButton,
8652
8826
  {
8653
8827
  variant: "subtle",
@@ -8655,7 +8829,7 @@ function ToastItem({ toast, onDismiss }) {
8655
8829
  "aria-label": typeof toast.title === "string" ? `Dismiss: ${toast.title}` : "Dismiss",
8656
8830
  onClick: onDismiss,
8657
8831
  className: "-mr-1 -mt-1 shrink-0",
8658
- children: /* @__PURE__ */ jsx101(XIcon8, { "aria-hidden": true, size: 14 })
8832
+ children: /* @__PURE__ */ jsx102(XIcon8, { "aria-hidden": true, size: 14 })
8659
8833
  }
8660
8834
  )
8661
8835
  ]
@@ -8666,23 +8840,23 @@ function ToastItem({ toast, onDismiss }) {
8666
8840
  // src/components/forms/password-input.tsx
8667
8841
  import { forwardRef as forwardRef32, useState as useState24 } from "react";
8668
8842
  import { EyeIcon, EyeOffIcon } from "lucide-react";
8669
- import { jsx as jsx102 } from "react/jsx-runtime";
8843
+ import { jsx as jsx103 } from "react/jsx-runtime";
8670
8844
  var PasswordInput = forwardRef32(function PasswordInput2(props, ref) {
8671
8845
  const [visible, setVisible] = useState24(false);
8672
- return /* @__PURE__ */ jsx102(
8846
+ return /* @__PURE__ */ jsx103(
8673
8847
  Input,
8674
8848
  {
8675
8849
  ref,
8676
8850
  ...props,
8677
8851
  type: visible ? "text" : "password",
8678
- trailingAction: /* @__PURE__ */ jsx102(
8852
+ trailingAction: /* @__PURE__ */ jsx103(
8679
8853
  "button",
8680
8854
  {
8681
8855
  type: "button",
8682
8856
  "aria-label": visible ? "Hide password" : "Show password",
8683
8857
  onClick: () => setVisible((v) => !v),
8684
8858
  className: "flex items-center justify-center rounded transition-colors hover:text-default focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand",
8685
- children: visible ? /* @__PURE__ */ jsx102(EyeOffIcon, { "aria-hidden": true, className: "size-4" }) : /* @__PURE__ */ jsx102(EyeIcon, { "aria-hidden": true, className: "size-4" })
8859
+ children: visible ? /* @__PURE__ */ jsx103(EyeOffIcon, { "aria-hidden": true, className: "size-4" }) : /* @__PURE__ */ jsx103(EyeIcon, { "aria-hidden": true, className: "size-4" })
8686
8860
  }
8687
8861
  )
8688
8862
  }
@@ -8690,31 +8864,31 @@ var PasswordInput = forwardRef32(function PasswordInput2(props, ref) {
8690
8864
  });
8691
8865
 
8692
8866
  // src/components/ai/ai-chat-bar.tsx
8693
- import clsx81 from "clsx";
8867
+ import clsx82 from "clsx";
8694
8868
  import { ArrowRightIcon as ArrowRightIcon2, SearchIcon as SearchIcon2 } from "lucide-react";
8695
- import { jsx as jsx103, jsxs as jsxs73 } from "react/jsx-runtime";
8869
+ import { jsx as jsx104, jsxs as jsxs74 } from "react/jsx-runtime";
8696
8870
  function AIChatBar({
8697
8871
  placeholder = "Ask Intelligence about any entity, supplier, or risk\u2026",
8698
8872
  className
8699
8873
  }) {
8700
- return /* @__PURE__ */ jsxs73(
8874
+ return /* @__PURE__ */ jsxs74(
8701
8875
  "div",
8702
8876
  {
8703
- className: clsx81(
8877
+ className: clsx82(
8704
8878
  "flex h-16 items-center gap-3 rounded-2xl border border-default bg-default px-6 shadow-panel",
8705
8879
  className
8706
8880
  ),
8707
8881
  children: [
8708
- /* @__PURE__ */ jsx103("span", { "aria-hidden": true, className: "shrink-0 text-icon-default-secondary", children: /* @__PURE__ */ jsx103(SearchIcon2, { className: "size-4" }) }),
8709
- /* @__PURE__ */ jsx103("p", { className: "flex-1 text-body-sm text-default-tertiary truncate", children: placeholder }),
8710
- /* @__PURE__ */ jsxs73(
8882
+ /* @__PURE__ */ jsx104("span", { "aria-hidden": true, className: "shrink-0 text-icon-default-secondary", children: /* @__PURE__ */ jsx104(SearchIcon2, { className: "size-4" }) }),
8883
+ /* @__PURE__ */ jsx104("p", { className: "flex-1 text-body-sm text-default-tertiary truncate", children: placeholder }),
8884
+ /* @__PURE__ */ jsxs74(
8711
8885
  "button",
8712
8886
  {
8713
8887
  type: "button",
8714
8888
  className: "inline-flex shrink-0 items-center gap-2 rounded-xl bg-brand px-4 py-3 text-body-sm font-semibold text-brand-on-brand hover:bg-brand-hover transition-colors",
8715
8889
  children: [
8716
8890
  "Ask",
8717
- /* @__PURE__ */ jsx103(ArrowRightIcon2, { "aria-hidden": true, className: "size-4" })
8891
+ /* @__PURE__ */ jsx104(ArrowRightIcon2, { "aria-hidden": true, className: "size-4" })
8718
8892
  ]
8719
8893
  }
8720
8894
  )
@@ -8724,42 +8898,42 @@ function AIChatBar({
8724
8898
  }
8725
8899
 
8726
8900
  // src/components/ai/ai-suggestion-chip.tsx
8727
- import clsx82 from "clsx";
8901
+ import clsx83 from "clsx";
8728
8902
  import { ArrowRightIcon as ArrowRightIcon3, CpuIcon } from "lucide-react";
8729
- import { jsx as jsx104, jsxs as jsxs74 } from "react/jsx-runtime";
8903
+ import { jsx as jsx105, jsxs as jsxs75 } from "react/jsx-runtime";
8730
8904
  function AISuggestionChip({ prompt, onClick, className }) {
8731
- return /* @__PURE__ */ jsxs74(
8905
+ return /* @__PURE__ */ jsxs75(
8732
8906
  "button",
8733
8907
  {
8734
8908
  type: "button",
8735
8909
  onClick,
8736
- className: clsx82(
8910
+ className: clsx83(
8737
8911
  "flex h-12 w-full items-center gap-3 rounded-xl border border-default bg-default px-3 text-left hover:bg-default-hover transition-colors",
8738
8912
  className
8739
8913
  ),
8740
8914
  children: [
8741
- /* @__PURE__ */ jsx104("span", { "aria-hidden": true, className: "shrink-0 text-icon-brand", children: /* @__PURE__ */ jsx104(CpuIcon, { className: "size-4" }) }),
8742
- /* @__PURE__ */ jsx104("span", { className: "flex-1 text-body-sm text-default truncate", children: prompt }),
8743
- /* @__PURE__ */ jsx104("span", { "aria-hidden": true, className: "shrink-0 text-icon-default-secondary", children: /* @__PURE__ */ jsx104(ArrowRightIcon3, { className: "size-3.5", strokeWidth: 2.5 }) })
8915
+ /* @__PURE__ */ jsx105("span", { "aria-hidden": true, className: "shrink-0 text-icon-brand", children: /* @__PURE__ */ jsx105(CpuIcon, { className: "size-4" }) }),
8916
+ /* @__PURE__ */ jsx105("span", { className: "flex-1 text-body-sm text-default truncate", children: prompt }),
8917
+ /* @__PURE__ */ jsx105("span", { "aria-hidden": true, className: "shrink-0 text-icon-default-secondary", children: /* @__PURE__ */ jsx105(ArrowRightIcon3, { className: "size-3.5", strokeWidth: 2.5 }) })
8744
8918
  ]
8745
8919
  }
8746
8920
  );
8747
8921
  }
8748
8922
 
8749
8923
  // src/components/ai/quick-actions-bar.tsx
8750
- import clsx83 from "clsx";
8751
- import { jsx as jsx105 } from "react/jsx-runtime";
8924
+ import clsx84 from "clsx";
8925
+ import { jsx as jsx106 } from "react/jsx-runtime";
8752
8926
  function QuickActionsBar({ actions, active, onSelect, className }) {
8753
- return /* @__PURE__ */ jsx105("div", { className: clsx83("flex flex-wrap items-center gap-3", className), children: actions.map((action) => {
8927
+ return /* @__PURE__ */ jsx106("div", { className: clsx84("flex flex-wrap items-center gap-3", className), children: actions.map((action) => {
8754
8928
  const isActive = active === action.value;
8755
- return /* @__PURE__ */ jsx105(
8929
+ return /* @__PURE__ */ jsx106(
8756
8930
  "button",
8757
8931
  {
8758
8932
  type: "button",
8759
8933
  "aria-pressed": isActive,
8760
8934
  onClick: () => onSelect?.(action.value),
8761
8935
  className: "rounded-full focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand focus-visible:ring-offset-1 focus-visible:ring-offset-default",
8762
- children: /* @__PURE__ */ jsx105(TagPill, { label: action.label, tone: isActive ? "brand" : "default" })
8936
+ children: /* @__PURE__ */ jsx106(TagPill, { label: action.label, tone: isActive ? "brand" : "default" })
8763
8937
  },
8764
8938
  action.value
8765
8939
  );
@@ -8767,25 +8941,25 @@ function QuickActionsBar({ actions, active, onSelect, className }) {
8767
8941
  }
8768
8942
 
8769
8943
  // src/components/ai/chat.tsx
8770
- import clsx84 from "clsx";
8944
+ import clsx85 from "clsx";
8771
8945
  import { CpuIcon as CpuIcon2 } from "lucide-react";
8772
- import { jsx as jsx106, jsxs as jsxs75 } from "react/jsx-runtime";
8946
+ import { jsx as jsx107, jsxs as jsxs76 } from "react/jsx-runtime";
8773
8947
  function AiAvatar({ className, icon }) {
8774
- return /* @__PURE__ */ jsx106(
8948
+ return /* @__PURE__ */ jsx107(
8775
8949
  "span",
8776
8950
  {
8777
8951
  "aria-hidden": true,
8778
8952
  className: cn("flex size-8 shrink-0 items-center justify-center rounded-full bg-brand text-icon-brand-on-brand", className),
8779
- children: icon ?? /* @__PURE__ */ jsx106(CpuIcon2, { className: "size-3.5" })
8953
+ children: icon ?? /* @__PURE__ */ jsx107(CpuIcon2, { className: "size-3.5" })
8780
8954
  }
8781
8955
  );
8782
8956
  }
8783
8957
  function TypingIndicator({ label = "Assistant is typing", className }) {
8784
- return /* @__PURE__ */ jsxs75("div", { role: "status", "aria-live": "polite", className: cn("flex items-center gap-3", className), children: [
8785
- /* @__PURE__ */ jsx106(AiAvatar, {}),
8786
- /* @__PURE__ */ jsxs75("div", { className: "flex items-center gap-2 rounded-2xl rounded-tl-sm border border-default bg-default-secondary px-5 py-3", children: [
8787
- /* @__PURE__ */ jsx106("span", { className: "text-body-xs text-default-secondary", children: label }),
8788
- /* @__PURE__ */ jsx106("span", { "aria-hidden": true, className: "flex gap-1", children: [0, 1, 2].map((index) => /* @__PURE__ */ jsx106(
8958
+ return /* @__PURE__ */ jsxs76("div", { role: "status", "aria-live": "polite", className: cn("flex items-center gap-3", className), children: [
8959
+ /* @__PURE__ */ jsx107(AiAvatar, {}),
8960
+ /* @__PURE__ */ jsxs76("div", { className: "flex items-center gap-2 rounded-2xl rounded-tl-sm border border-default bg-default-secondary px-5 py-3", children: [
8961
+ /* @__PURE__ */ jsx107("span", { className: "text-body-xs text-default-secondary", children: label }),
8962
+ /* @__PURE__ */ jsx107("span", { "aria-hidden": true, className: "flex gap-1", children: [0, 1, 2].map((index) => /* @__PURE__ */ jsx107(
8789
8963
  "span",
8790
8964
  {
8791
8965
  className: "inline-block size-1.5 rounded-full bg-default-tertiary motion-safe:animate-bounce",
@@ -8798,16 +8972,16 @@ function TypingIndicator({ label = "Assistant is typing", className }) {
8798
8972
  }
8799
8973
  function ChatBubble({ sender, children, failed = false, className }) {
8800
8974
  if (sender === "user") {
8801
- return /* @__PURE__ */ jsx106("div", { "data-sender": "user", className: cn("flex justify-end", className), children: /* @__PURE__ */ jsx106("div", { className: "max-w-[85%] rounded-[18px] rounded-tr-sm bg-neutral px-5 py-3.5 text-body-sm leading-relaxed text-neutral-on-neutral md:max-w-[441px] md:px-7 md:py-4", children }) });
8975
+ return /* @__PURE__ */ jsx107("div", { "data-sender": "user", className: cn("flex justify-end", className), children: /* @__PURE__ */ jsx107("div", { className: "max-w-[85%] rounded-[18px] rounded-tr-sm bg-neutral px-5 py-3.5 text-body-sm leading-relaxed text-neutral-on-neutral md:max-w-[441px] md:px-7 md:py-4", children }) });
8802
8976
  }
8803
- return /* @__PURE__ */ jsx106(
8977
+ return /* @__PURE__ */ jsx107(
8804
8978
  "div",
8805
8979
  {
8806
8980
  "data-sender": "assistant",
8807
8981
  "data-state": failed ? "failed" : void 0,
8808
8982
  className: cn(
8809
8983
  "rounded-2xl rounded-tl-sm border px-5 py-4 text-body-sm leading-relaxed",
8810
- clsx84(
8984
+ clsx85(
8811
8985
  "border-default bg-default-secondary text-default",
8812
8986
  "data-[state=failed]:border-danger-secondary data-[state=failed]:bg-danger-tertiary data-[state=failed]:text-danger"
8813
8987
  ),
@@ -8819,17 +8993,17 @@ function ChatBubble({ sender, children, failed = false, className }) {
8819
8993
  }
8820
8994
 
8821
8995
  // src/components/decorative/aurora-backdrop.tsx
8822
- import { jsx as jsx107, jsxs as jsxs76 } from "react/jsx-runtime";
8996
+ import { jsx as jsx108, jsxs as jsxs77 } from "react/jsx-runtime";
8823
8997
  function blob(primitive, alpha) {
8824
8998
  return `radial-gradient(ellipse, color-mix(in srgb, var(${primitive}) ${alpha}%, transparent) 0%, transparent 70%)`;
8825
8999
  }
8826
9000
  function AuroraBackdrop() {
8827
- return /* @__PURE__ */ jsxs76("div", { className: "pointer-events-none absolute inset-0", "aria-hidden": true, children: [
8828
- /* @__PURE__ */ jsx107("div", { className: "absolute -left-24 -top-28", style: { width: 380, height: 380, background: blob("--prim-red-400", 45) } }),
8829
- /* @__PURE__ */ jsx107("div", { className: "absolute -top-24 right-[-4%]", style: { width: 320, height: 320, background: blob("--prim-red-300", 40) } }),
8830
- /* @__PURE__ */ jsx107("div", { className: "absolute bottom-[-10%] right-[14%]", style: { width: 420, height: 420, background: blob("--prim-violet-400", 30) } }),
8831
- /* @__PURE__ */ jsx107("div", { className: "absolute bottom-[-6%] left-[4%]", style: { width: 280, height: 280, background: blob("--prim-blue-400", 25) } }),
8832
- /* @__PURE__ */ jsx107("div", { className: "absolute left-[20%] top-[30%]", style: { width: 240, height: 240, background: blob("--prim-blue-300", 18) } })
9001
+ return /* @__PURE__ */ jsxs77("div", { className: "pointer-events-none absolute inset-0", "aria-hidden": true, children: [
9002
+ /* @__PURE__ */ jsx108("div", { className: "absolute -left-24 -top-28", style: { width: 380, height: 380, background: blob("--prim-red-400", 45) } }),
9003
+ /* @__PURE__ */ jsx108("div", { className: "absolute -top-24 right-[-4%]", style: { width: 320, height: 320, background: blob("--prim-red-300", 40) } }),
9004
+ /* @__PURE__ */ jsx108("div", { className: "absolute bottom-[-10%] right-[14%]", style: { width: 420, height: 420, background: blob("--prim-violet-400", 30) } }),
9005
+ /* @__PURE__ */ jsx108("div", { className: "absolute bottom-[-6%] left-[4%]", style: { width: 280, height: 280, background: blob("--prim-blue-400", 25) } }),
9006
+ /* @__PURE__ */ jsx108("div", { className: "absolute left-[20%] top-[30%]", style: { width: 240, height: 240, background: blob("--prim-blue-300", 18) } })
8833
9007
  ] });
8834
9008
  }
8835
9009
  export {
@@ -8846,6 +9020,7 @@ export {
8846
9020
  Avatar,
8847
9021
  AvatarBlock,
8848
9022
  AvatarGroup,
9023
+ BADGE_COLORS,
8849
9024
  Badge,
8850
9025
  Banner,
8851
9026
  BarChart,
@@ -8982,6 +9157,7 @@ export {
8982
9157
  Label,
8983
9158
  LegendDot,
8984
9159
  ListRow,
9160
+ Listbox,
8985
9161
  Menubar,
8986
9162
  MenubarCheckboxItem,
8987
9163
  MenubarContent,