@platned/ui 0.7.1 → 0.8.1

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
@@ -2086,7 +2086,7 @@ function Calendar({
2086
2086
  children: /* @__PURE__ */ jsx14(ChevronLeftIcon, { "aria-hidden": true, size: 16 })
2087
2087
  }
2088
2088
  ),
2089
- captionLayout === "dropdown" ? /* @__PURE__ */ jsxs8("div", { className: "flex items-center gap-1.5", children: [
2089
+ captionLayout === "dropdown" ? /* @__PURE__ */ jsxs8("div", { className: "relative flex items-center gap-1.5", children: [
2090
2090
  /* @__PURE__ */ jsx14(
2091
2091
  "select",
2092
2092
  {
@@ -2805,6 +2805,7 @@ var Toggle = forwardRef12(function Toggle2({
2805
2805
  var ToggleGroupContext = createContext5(null);
2806
2806
  function ToggleGroup({
2807
2807
  children,
2808
+ options,
2808
2809
  type = "single",
2809
2810
  value: valueProp,
2810
2811
  defaultValue,
@@ -2858,7 +2859,16 @@ function ToggleGroup({
2858
2859
  ),
2859
2860
  ...roving.containerProps,
2860
2861
  ...rest,
2861
- children
2862
+ children: options ? options.map((option) => /* @__PURE__ */ jsx19(
2863
+ ToggleGroupItem,
2864
+ {
2865
+ value: option.value,
2866
+ "aria-label": option["aria-label"],
2867
+ disabled: option.disabled,
2868
+ children: option.label
2869
+ },
2870
+ option.value
2871
+ )) : children
2862
2872
  }
2863
2873
  ) });
2864
2874
  }
@@ -2928,7 +2938,7 @@ var InputOTP = forwardRef13(function InputOTP2({
2928
2938
  };
2929
2939
  const chars = value.split("");
2930
2940
  const activeIndex = Math.min(value.length, length - 1);
2931
- return /* @__PURE__ */ jsxs13("div", { className: clsx21("inline-flex flex-col gap-1.5", className), children: [
2941
+ return /* @__PURE__ */ jsxs13("div", { className: clsx21("relative inline-flex flex-col gap-1.5", className), children: [
2932
2942
  /* @__PURE__ */ jsxs13(
2933
2943
  "div",
2934
2944
  {
@@ -2989,7 +2999,7 @@ var InputOTP = forwardRef13(function InputOTP2({
2989
2999
  import { useRef as useRef11, useState as useState10 } from "react";
2990
3000
  import clsx22 from "clsx";
2991
3001
  import { UploadIcon } from "lucide-react";
2992
- import { Fragment as Fragment3, jsx as jsx21, jsxs as jsxs14 } from "react/jsx-runtime";
3002
+ import { jsx as jsx21, jsxs as jsxs14 } from "react/jsx-runtime";
2993
3003
  var DEFAULT_ACCEPT = ".pdf,.jpg,.jpeg,.png";
2994
3004
  var DEFAULT_MAX_SIZE_BYTES = 10 * 1024 * 1024;
2995
3005
  function formatFileSize(bytes) {
@@ -3055,62 +3065,66 @@ function FileDropZone({
3055
3065
  const picker = useFilePicker({ accept, maxSizeBytes, onFileSelected });
3056
3066
  const { error, handleFiles } = picker;
3057
3067
  const inputRef = picker.inputProps.ref;
3058
- return /* @__PURE__ */ jsxs14(Fragment3, { children: [
3059
- /* @__PURE__ */ jsx21("input", { ...picker.inputProps, disabled }),
3060
- /* @__PURE__ */ jsxs14(
3061
- "div",
3062
- {
3063
- role: "button",
3064
- "data-state": isDragging ? "dragging" : void 0,
3065
- tabIndex: disabled ? -1 : 0,
3066
- "aria-disabled": disabled,
3067
- onClick: () => {
3068
- if (!disabled) inputRef.current?.click();
3069
- },
3070
- onKeyDown: (e) => {
3071
- if (!disabled && (e.key === "Enter" || e.key === " ")) {
3072
- e.preventDefault();
3073
- inputRef.current?.click();
3074
- }
3075
- },
3076
- onDragOver: (e) => {
3077
- e.preventDefault();
3078
- if (!disabled) setIsDragging(true);
3079
- },
3080
- onDragEnter: (e) => {
3081
- e.preventDefault();
3082
- if (!disabled) setIsDragging(true);
3083
- },
3084
- onDragLeave: () => setIsDragging(false),
3085
- onDrop: (e) => {
3086
- e.preventDefault();
3087
- setIsDragging(false);
3088
- if (!disabled) handleFiles(e.dataTransfer.files);
3089
- },
3090
- className: clsx22(
3091
- "flex flex-col items-center justify-center gap-1 rounded-lg border-2 border-dashed py-4 px-4 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand focus-visible:ring-offset-1",
3092
- disabled ? "cursor-not-allowed border-disabled bg-disabled" : clsx22(
3093
- "cursor-pointer",
3094
- isDragging ? "border-brand bg-brand-tertiary" : "border-default bg-default-secondary hover:border-brand hover:bg-brand-tertiary"
3095
- ),
3096
- className
3097
- ),
3098
- children: [
3099
- /* @__PURE__ */ jsx21(
3100
- "span",
3101
- {
3102
- "aria-hidden": true,
3103
- className: disabled ? "text-disabled" : isDragging ? "text-brand" : "text-default-secondary",
3104
- children: /* @__PURE__ */ jsx21(UploadIcon, { className: "size-5" })
3068
+ return (
3069
+ // relative: the hidden input is absolutely positioned (sr-only); without a positioned
3070
+ // ancestor its box escapes a scrolling container and scrolls the page instead.
3071
+ /* @__PURE__ */ jsxs14("div", { className: "relative", children: [
3072
+ /* @__PURE__ */ jsx21("input", { ...picker.inputProps, disabled }),
3073
+ /* @__PURE__ */ jsxs14(
3074
+ "div",
3075
+ {
3076
+ role: "button",
3077
+ "data-state": isDragging ? "dragging" : void 0,
3078
+ tabIndex: disabled ? -1 : 0,
3079
+ "aria-disabled": disabled,
3080
+ onClick: () => {
3081
+ if (!disabled) inputRef.current?.click();
3082
+ },
3083
+ onKeyDown: (e) => {
3084
+ if (!disabled && (e.key === "Enter" || e.key === " ")) {
3085
+ e.preventDefault();
3086
+ inputRef.current?.click();
3105
3087
  }
3088
+ },
3089
+ onDragOver: (e) => {
3090
+ e.preventDefault();
3091
+ if (!disabled) setIsDragging(true);
3092
+ },
3093
+ onDragEnter: (e) => {
3094
+ e.preventDefault();
3095
+ if (!disabled) setIsDragging(true);
3096
+ },
3097
+ onDragLeave: () => setIsDragging(false),
3098
+ onDrop: (e) => {
3099
+ e.preventDefault();
3100
+ setIsDragging(false);
3101
+ if (!disabled) handleFiles(e.dataTransfer.files);
3102
+ },
3103
+ className: clsx22(
3104
+ "flex flex-col items-center justify-center gap-1 rounded-lg border-2 border-dashed py-4 px-4 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand focus-visible:ring-offset-1",
3105
+ disabled ? "cursor-not-allowed border-disabled bg-disabled" : clsx22(
3106
+ "cursor-pointer",
3107
+ isDragging ? "border-brand bg-brand-tertiary" : "border-default bg-default-secondary hover:border-brand hover:bg-brand-tertiary"
3108
+ ),
3109
+ className
3106
3110
  ),
3107
- /* @__PURE__ */ jsx21("span", { className: clsx22("text-body-sm font-medium", disabled ? "text-disabled" : "text-default"), children: "Upload file" }),
3108
- /* @__PURE__ */ jsx21("span", { className: "text-body-xs text-default-secondary text-center", children: description })
3109
- ]
3110
- }
3111
- ),
3112
- error && /* @__PURE__ */ jsx21("span", { role: "alert", className: "text-body-xs text-danger", children: error })
3113
- ] });
3111
+ children: [
3112
+ /* @__PURE__ */ jsx21(
3113
+ "span",
3114
+ {
3115
+ "aria-hidden": true,
3116
+ className: disabled ? "text-disabled" : isDragging ? "text-brand" : "text-default-secondary",
3117
+ children: /* @__PURE__ */ jsx21(UploadIcon, { className: "size-5" })
3118
+ }
3119
+ ),
3120
+ /* @__PURE__ */ jsx21("span", { className: clsx22("text-body-sm font-medium", disabled ? "text-disabled" : "text-default"), children: "Upload file" }),
3121
+ /* @__PURE__ */ jsx21("span", { className: "text-body-xs text-default-secondary text-center", children: description })
3122
+ ]
3123
+ }
3124
+ ),
3125
+ error && /* @__PURE__ */ jsx21("span", { role: "alert", className: "text-body-xs text-danger", children: error })
3126
+ ] })
3127
+ );
3114
3128
  }
3115
3129
 
3116
3130
  // src/components/forms/tag-input.tsx
@@ -3483,7 +3497,7 @@ import {
3483
3497
  } from "react";
3484
3498
  import clsx27 from "clsx";
3485
3499
  import { CheckIcon as CheckIcon4, ChevronDownIcon as ChevronDownIcon2 } from "lucide-react";
3486
- import { Fragment as Fragment4, jsx as jsx26, jsxs as jsxs18 } from "react/jsx-runtime";
3500
+ import { Fragment as Fragment3, jsx as jsx26, jsxs as jsxs18 } from "react/jsx-runtime";
3487
3501
  var HEIGHT = {
3488
3502
  lg: "h-12 px-4 text-body",
3489
3503
  md: "h-9 px-3 text-body-sm",
@@ -3719,7 +3733,7 @@ function Combobox({
3719
3733
  "items-center",
3720
3734
  option.disabled ? "cursor-not-allowed text-disabled" : isActive ? clsx27(OVERLAY_ITEM_ACTIVE, "text-default") : "text-default"
3721
3735
  ),
3722
- children: renderOption ? renderOption(option, isSelected) : /* @__PURE__ */ jsxs18(Fragment4, { children: [
3736
+ children: renderOption ? renderOption(option, isSelected) : /* @__PURE__ */ jsxs18(Fragment3, { children: [
3723
3737
  /* @__PURE__ */ jsxs18("span", { className: "min-w-0 flex-1", children: [
3724
3738
  /* @__PURE__ */ jsx26("span", { className: "block truncate", children: option.label }),
3725
3739
  option.description && /* @__PURE__ */ jsx26("span", { className: "block truncate text-body-tiny text-default-secondary", children: option.description })
@@ -3737,7 +3751,7 @@ function Combobox({
3737
3751
  }
3738
3752
 
3739
3753
  // src/components/forms/role-combo-box.tsx
3740
- import { Fragment as Fragment5, jsx as jsx27, jsxs as jsxs19 } from "react/jsx-runtime";
3754
+ import { Fragment as Fragment4, jsx as jsx27, jsxs as jsxs19 } from "react/jsx-runtime";
3741
3755
  var ROLE_COMBO_OPTIONS = [
3742
3756
  { role: "Reviewer", description: "Reviews onboarding requests" },
3743
3757
  { role: "Admin", description: "Full org control" },
@@ -3772,7 +3786,7 @@ function RoleComboBox({
3772
3786
  clearable: false,
3773
3787
  emptyMessage: "No roles match",
3774
3788
  className,
3775
- renderOption: (option) => /* @__PURE__ */ jsxs19(Fragment5, { children: [
3789
+ renderOption: (option) => /* @__PURE__ */ jsxs19(Fragment4, { children: [
3776
3790
  /* @__PURE__ */ jsx27(RoleBadge, { role: option.value, size: "sm" }),
3777
3791
  /* @__PURE__ */ jsx27("span", { className: "min-w-0 flex-1 truncate text-body-xs text-default-secondary", children: option.description })
3778
3792
  ] })
@@ -3952,7 +3966,7 @@ function Command({
3952
3966
  });
3953
3967
  };
3954
3968
  let renderedGroup;
3955
- return /* @__PURE__ */ jsxs20("div", { className: clsx28("flex w-full flex-col", className), children: [
3969
+ return /* @__PURE__ */ jsxs20("div", { className: clsx28("relative flex w-full flex-col", className), children: [
3956
3970
  /* @__PURE__ */ jsxs20("div", { className: "flex items-center gap-2 border-b border-default px-3.5 py-3", children: [
3957
3971
  /* @__PURE__ */ jsx30(SearchIcon, { "aria-hidden": true, className: "size-4 shrink-0 text-icon-default-secondary" }),
3958
3972
  /* @__PURE__ */ jsx30(
@@ -4420,7 +4434,10 @@ var Checkbox = forwardRef14(function Checkbox2({
4420
4434
  {
4421
4435
  htmlFor: controlId,
4422
4436
  className: clsx38(
4423
- "group inline-flex items-start gap-2.5",
4437
+ // relative: the hidden input is absolutely positioned (sr-only). Without a positioned
4438
+ // ancestor here its box lands far up the page, and focusing it on click scrolled a
4439
+ // scrolling container to that spot, away from the control.
4440
+ "group relative inline-flex items-start gap-2.5",
4424
4441
  disabled ? "cursor-not-allowed opacity-60" : "cursor-pointer"
4425
4442
  ),
4426
4443
  children: [
@@ -4481,6 +4498,7 @@ import { jsx as jsx42, jsxs as jsxs26 } from "react/jsx-runtime";
4481
4498
  var RadioGroupContext = createContext6(null);
4482
4499
  var RadioGroup = forwardRef15(function RadioGroup2({
4483
4500
  children,
4501
+ options,
4484
4502
  value: valueProp,
4485
4503
  defaultValue,
4486
4504
  onValueChange,
@@ -4527,7 +4545,16 @@ var RadioGroup = forwardRef15(function RadioGroup2({
4527
4545
  className
4528
4546
  ),
4529
4547
  ...rest,
4530
- children
4548
+ children: options ? options.map((option) => /* @__PURE__ */ jsx42(
4549
+ Radio,
4550
+ {
4551
+ value: option.value,
4552
+ label: option.label,
4553
+ description: option.description,
4554
+ disabled: option.disabled
4555
+ },
4556
+ option.value
4557
+ )) : children
4531
4558
  }
4532
4559
  )
4533
4560
  }
@@ -4551,7 +4578,10 @@ var Radio = forwardRef15(function Radio2({ value, label, description, disabled,
4551
4578
  {
4552
4579
  htmlFor: controlId,
4553
4580
  className: clsx39(
4554
- "group inline-flex items-start gap-2.5",
4581
+ // relative: the hidden input is absolutely positioned (sr-only). Without a positioned
4582
+ // ancestor here its box lands far up the page, and focusing it on click scrolled a
4583
+ // scrolling container to that spot, away from the control.
4584
+ "group relative inline-flex items-start gap-2.5",
4555
4585
  isDisabled ? "cursor-not-allowed opacity-60" : "cursor-pointer"
4556
4586
  ),
4557
4587
  children: [
@@ -4612,6 +4642,7 @@ import { jsx as jsx43, jsxs as jsxs27 } from "react/jsx-runtime";
4612
4642
  var RadioCardsContext = createContext7(null);
4613
4643
  var RadioCards = forwardRef16(function RadioCards2({
4614
4644
  children,
4645
+ options,
4615
4646
  value: valueProp,
4616
4647
  defaultValue,
4617
4648
  onValueChange,
@@ -4643,7 +4674,7 @@ var RadioCards = forwardRef16(function RadioCards2({
4643
4674
  "data-slot": "radio-cards",
4644
4675
  className: cn("grid gap-3", className),
4645
4676
  ...rest,
4646
- children
4677
+ children: options ? options.map((option) => /* @__PURE__ */ jsx43(RadioCardsItem, { ...option }, option.value)) : children
4647
4678
  }
4648
4679
  )
4649
4680
  }
@@ -4732,6 +4763,7 @@ import { jsx as jsx44, jsxs as jsxs28 } from "react/jsx-runtime";
4732
4763
  var CheckboxGroupContext = createContext8(null);
4733
4764
  var CheckboxGroup = forwardRef17(function CheckboxGroup2({
4734
4765
  children,
4766
+ options,
4735
4767
  legend,
4736
4768
  value: valueProp,
4737
4769
  defaultValue = [],
@@ -4767,7 +4799,7 @@ var CheckboxGroup = forwardRef17(function CheckboxGroup2({
4767
4799
  children: legend
4768
4800
  }
4769
4801
  ),
4770
- /* @__PURE__ */ jsx44("div", { className: cn("flex", orientation === "vertical" ? "flex-col gap-2.5" : "flex-row flex-wrap gap-4"), children })
4802
+ /* @__PURE__ */ jsx44("div", { className: cn("flex", orientation === "vertical" ? "flex-col gap-2.5" : "flex-row flex-wrap gap-4"), children: options ? options.map((option) => /* @__PURE__ */ jsx44(CheckboxGroupItem, { ...option }, option.value)) : children })
4771
4803
  ] }) });
4772
4804
  });
4773
4805
  var CheckboxGroupItem = forwardRef17(
@@ -5331,7 +5363,7 @@ var ModalFooter = forwardRef21(function ModalFooter2({ children, align = "end",
5331
5363
  // src/components/overlays/tooltip.tsx
5332
5364
  import { useId as useId15 } from "react";
5333
5365
  import { Tooltip as TooltipPrimitive } from "radix-ui";
5334
- import { Fragment as Fragment6, jsx as jsx50, jsxs as jsxs32 } from "react/jsx-runtime";
5366
+ import { Fragment as Fragment5, jsx as jsx50, jsxs as jsxs32 } from "react/jsx-runtime";
5335
5367
  function Tooltip({
5336
5368
  children,
5337
5369
  title,
@@ -5348,7 +5380,7 @@ function Tooltip({
5348
5380
  const container = usePortalContainer();
5349
5381
  const labelId = useId15();
5350
5382
  const labelled = association === "labelledby";
5351
- const content = /* @__PURE__ */ jsxs32(Fragment6, { children: [
5383
+ const content = /* @__PURE__ */ jsxs32(Fragment5, { children: [
5352
5384
  title && /* @__PURE__ */ jsx50("p", { className: "font-semibold", children: title }),
5353
5385
  body && /* @__PURE__ */ jsx50("p", { className: cn(title && "mt-0.5 opacity-80"), children: body })
5354
5386
  ] });
@@ -5457,12 +5489,13 @@ import { ContextMenu as ContextMenuPrimitive } from "radix-ui";
5457
5489
 
5458
5490
  // src/components/overlays/menu-core.tsx
5459
5491
  import {
5492
+ Fragment as Fragment6,
5460
5493
  forwardRef as forwardRef22,
5461
5494
  useId as useId17
5462
5495
  } from "react";
5463
5496
  import clsx45 from "clsx";
5464
5497
  import { CheckIcon as CheckIcon7, ChevronRightIcon as ChevronRightIcon3 } from "lucide-react";
5465
- import { jsx as jsx52, jsxs as jsxs34 } from "react/jsx-runtime";
5498
+ import { Fragment as Fragment7, jsx as jsx52, jsxs as jsxs34 } from "react/jsx-runtime";
5466
5499
  var MENU_PANEL_CLASSES = cn("z-popover", OVERLAY_PANEL_MENU, "focus:outline-none");
5467
5500
  var ITEM_BASE = clsx45(
5468
5501
  OVERLAY_ITEM_BASE,
@@ -5489,6 +5522,18 @@ function focusMenuEdge(event, edge) {
5489
5522
  else if (document.activeElement === panel) items[0]?.focus();
5490
5523
  });
5491
5524
  }
5525
+ function visibleMenuItems(items) {
5526
+ const kept = items.filter((item) => {
5527
+ if (item.hidden) return false;
5528
+ if (item.type === "group" || item.type === "submenu") return visibleMenuItems(item.items).length > 0;
5529
+ return true;
5530
+ });
5531
+ return kept.filter((item, i) => {
5532
+ if (item.type !== "separator") return true;
5533
+ const prev = kept[i - 1];
5534
+ return i > 0 && i < kept.length - 1 && prev.type !== "separator";
5535
+ });
5536
+ }
5492
5537
  function createMenuParts(P) {
5493
5538
  const Item = forwardRef22(function MenuItem({ children, onSelect, tone = "default", disabled = false, icon, description, shortcut, textValue, className, ...rest }, ref) {
5494
5539
  const descriptionId = useId17();
@@ -5619,7 +5664,58 @@ function createMenuParts(P) {
5619
5664
  }
5620
5665
  ) });
5621
5666
  });
5667
+ function Items({ items }) {
5668
+ return /* @__PURE__ */ jsx52(Fragment7, { children: visibleMenuItems(items).map(renderItem) });
5669
+ }
5670
+ function renderItem(item) {
5671
+ switch (item.type) {
5672
+ case "checkbox":
5673
+ return /* @__PURE__ */ jsx52(
5674
+ CheckboxItem,
5675
+ {
5676
+ checked: item.checked,
5677
+ onCheckedChange: item.onCheckedChange,
5678
+ disabled: item.disabled,
5679
+ shortcut: item.shortcut,
5680
+ textValue: item.textValue,
5681
+ children: item.label
5682
+ },
5683
+ item.id
5684
+ );
5685
+ case "radio":
5686
+ return /* @__PURE__ */ jsx52(RadioGroup3, { value: item.value, onValueChange: item.onValueChange, children: item.options.map((option) => /* @__PURE__ */ jsx52(RadioItem, { value: option.value, disabled: option.disabled, children: option.label }, option.value)) }, item.id);
5687
+ case "group":
5688
+ return /* @__PURE__ */ jsx52(Group, { label: item.label, children: /* @__PURE__ */ jsx52(Items, { items: item.items }) }, item.id);
5689
+ case "submenu":
5690
+ return /* @__PURE__ */ jsxs34(Sub, { children: [
5691
+ /* @__PURE__ */ jsx52(SubTrigger, { icon: item.icon, disabled: item.disabled, children: item.label }),
5692
+ /* @__PURE__ */ jsx52(SubContent, { children: /* @__PURE__ */ jsx52(Items, { items: item.items }) })
5693
+ ] }, item.id);
5694
+ case "label":
5695
+ return /* @__PURE__ */ jsx52(Label3, { children: item.label }, item.id);
5696
+ case "separator":
5697
+ return /* @__PURE__ */ jsx52(Separator3, {}, item.id);
5698
+ case "custom":
5699
+ return /* @__PURE__ */ jsx52(Fragment6, { children: item.render() }, item.id);
5700
+ default:
5701
+ return /* @__PURE__ */ jsx52(
5702
+ Item,
5703
+ {
5704
+ onSelect: item.onSelect,
5705
+ tone: item.tone,
5706
+ disabled: item.disabled,
5707
+ icon: item.icon,
5708
+ description: item.description,
5709
+ shortcut: item.shortcut,
5710
+ textValue: item.textValue,
5711
+ children: item.label
5712
+ },
5713
+ item.id
5714
+ );
5715
+ }
5716
+ }
5622
5717
  return {
5718
+ Items,
5623
5719
  Item,
5624
5720
  CheckboxItem,
5625
5721
  RadioGroup: RadioGroup3,
@@ -5635,14 +5731,17 @@ function createMenuParts(P) {
5635
5731
  }
5636
5732
 
5637
5733
  // src/components/overlays/context-menu.tsx
5638
- import { jsx as jsx53 } from "react/jsx-runtime";
5639
- function ContextMenu({ children, open: openProp, defaultOpen = false, onOpenChange }) {
5734
+ import { Fragment as Fragment8, jsx as jsx53, jsxs as jsxs35 } from "react/jsx-runtime";
5735
+ function ContextMenu({ children, items, open: openProp, defaultOpen = false, onOpenChange }) {
5640
5736
  const [, setOpen] = useControllableState({
5641
5737
  value: openProp,
5642
5738
  defaultValue: defaultOpen,
5643
5739
  onChange: onOpenChange
5644
5740
  });
5645
- return /* @__PURE__ */ jsx53(ContextMenuPrimitive.Root, { onOpenChange: setOpen, modal: false, children });
5741
+ return /* @__PURE__ */ jsx53(ContextMenuPrimitive.Root, { onOpenChange: setOpen, modal: false, children: items ? /* @__PURE__ */ jsxs35(Fragment8, { children: [
5742
+ /* @__PURE__ */ jsx53(ContextMenuTrigger, { children }),
5743
+ /* @__PURE__ */ jsx53(ContextMenuContent, { children: /* @__PURE__ */ jsx53(ContextMenuItems, { items }) })
5744
+ ] }) : children });
5646
5745
  }
5647
5746
  var ContextMenuTrigger = forwardRef23(
5648
5747
  function ContextMenuTrigger2({ children, disabled = false, className, onKeyDown, ...rest }, ref) {
@@ -5707,6 +5806,7 @@ var ContextMenuContent = forwardRef23(
5707
5806
  }
5708
5807
  );
5709
5808
  var parts = createMenuParts(ContextMenuPrimitive);
5809
+ var ContextMenuItems = parts.Items;
5710
5810
  var ContextMenuItem = parts.Item;
5711
5811
  var ContextMenuCheckboxItem = parts.CheckboxItem;
5712
5812
  var ContextMenuRadioGroup = parts.RadioGroup;
@@ -5722,8 +5822,8 @@ var ContextMenuSubContent = parts.SubContent;
5722
5822
  // src/components/overlays/menubar.tsx
5723
5823
  import { forwardRef as forwardRef24 } from "react";
5724
5824
  import { Menubar as MenubarPrimitive } from "radix-ui";
5725
- import { jsx as jsx54 } from "react/jsx-runtime";
5726
- var Menubar = forwardRef24(function Menubar2({ children, label, value, defaultValue, onValueChange, className, ...rest }, ref) {
5825
+ import { jsx as jsx54, jsxs as jsxs36 } from "react/jsx-runtime";
5826
+ var Menubar = forwardRef24(function Menubar2({ children, menus, label, value, defaultValue, onValueChange, className, ...rest }, ref) {
5727
5827
  return /* @__PURE__ */ jsx54(
5728
5828
  MenubarPrimitive.Root,
5729
5829
  {
@@ -5736,7 +5836,10 @@ var Menubar = forwardRef24(function Menubar2({ children, label, value, defaultVa
5736
5836
  "data-slot": "menubar",
5737
5837
  className: cn("flex items-center gap-0.5", className),
5738
5838
  ...rest,
5739
- children
5839
+ children: menus ? menus.filter((menu) => !menu.hidden).map((menu) => /* @__PURE__ */ jsxs36(MenubarMenu, { value: menu.value, children: [
5840
+ /* @__PURE__ */ jsx54(MenubarTrigger, { children: menu.label }),
5841
+ /* @__PURE__ */ jsx54(MenubarContent, { children: /* @__PURE__ */ jsx54(MenubarItems, { items: menu.items }) })
5842
+ ] }, menu.value)) : children
5740
5843
  }
5741
5844
  );
5742
5845
  });
@@ -5792,6 +5895,7 @@ var MenubarContent = forwardRef24(
5792
5895
  }
5793
5896
  );
5794
5897
  var parts2 = createMenuParts(MenubarPrimitive);
5898
+ var MenubarItems = parts2.Items;
5795
5899
  var MenubarItem = parts2.Item;
5796
5900
  var MenubarCheckboxItem = parts2.CheckboxItem;
5797
5901
  var MenubarRadioGroup = parts2.RadioGroup;
@@ -5865,7 +5969,7 @@ var ScrollArea = forwardRef25(function ScrollArea2({ children, axis = "vertical"
5865
5969
  });
5866
5970
 
5867
5971
  // src/components/overlays/drawer.tsx
5868
- import { Fragment as Fragment7, jsx as jsx56, jsxs as jsxs35 } from "react/jsx-runtime";
5972
+ import { Fragment as Fragment9, jsx as jsx56, jsxs as jsxs37 } from "react/jsx-runtime";
5869
5973
  var DrawerNaming = createContext10(null);
5870
5974
  var Drawer = forwardRef26(function Drawer2({
5871
5975
  open,
@@ -5884,7 +5988,7 @@ var Drawer = forwardRef26(function Drawer2({
5884
5988
  initialFocus,
5885
5989
  container
5886
5990
  }, ref) {
5887
- return /* @__PURE__ */ jsxs35(DialogPrimitive2.Root, { open, defaultOpen, onOpenChange, children: [
5991
+ return /* @__PURE__ */ jsxs37(DialogPrimitive2.Root, { open, defaultOpen, onOpenChange, children: [
5888
5992
  extractTrigger2(children),
5889
5993
  /* @__PURE__ */ jsx56(DialogPrimitive2.Portal, { container: container ?? void 0, children: /* @__PURE__ */ jsx56(
5890
5994
  DrawerPanel,
@@ -5897,7 +6001,7 @@ var Drawer = forwardRef26(function Drawer2({
5897
6001
  onEscapeKeyDown,
5898
6002
  onInteractOutside,
5899
6003
  initialFocus,
5900
- children: header !== void 0 ? /* @__PURE__ */ jsxs35(Fragment7, { children: [
6004
+ children: header !== void 0 ? /* @__PURE__ */ jsxs37(Fragment9, { children: [
5901
6005
  /* @__PURE__ */ jsx56(DrawerHeader, { children: header }),
5902
6006
  /* @__PURE__ */ jsx56(DrawerBody, { label, children: withoutTrigger2(children) }),
5903
6007
  footer && /* @__PURE__ */ jsx56(DrawerFooter, { align: footerAlign, children: footer })
@@ -5951,7 +6055,7 @@ var DrawerPanel = forwardRef26(function DrawerPanel2({ side = "right", width, la
5951
6055
  onInteractOutside?.(original);
5952
6056
  if (original.defaultPrevented) event.preventDefault();
5953
6057
  },
5954
- children: /* @__PURE__ */ jsxs35(
6058
+ children: /* @__PURE__ */ jsxs37(
5955
6059
  "div",
5956
6060
  {
5957
6061
  ref: composeRefs(ref, setPanelNode),
@@ -5999,7 +6103,7 @@ function withoutTrigger2(children) {
5999
6103
  return Array.isArray(children) ? children.filter((child) => !isTrigger2(child)) : isTrigger2(children) ? null : children;
6000
6104
  }
6001
6105
  var DrawerHeader = forwardRef26(function DrawerHeader2({ children, showClose = true, className, ...rest }, ref) {
6002
- return /* @__PURE__ */ jsxs35(
6106
+ return /* @__PURE__ */ jsxs37(
6003
6107
  "div",
6004
6108
  {
6005
6109
  ref,
@@ -6067,7 +6171,7 @@ var DrawerFooter = forwardRef26(function DrawerFooter2({ align = "end", classNam
6067
6171
 
6068
6172
  // src/components/overlays/confirm-dialog.tsx
6069
6173
  import { useRef as useRef16 } from "react";
6070
- import { jsx as jsx57, jsxs as jsxs36 } from "react/jsx-runtime";
6174
+ import { jsx as jsx57, jsxs as jsxs38 } from "react/jsx-runtime";
6071
6175
  function ConfirmDialog({
6072
6176
  open,
6073
6177
  title,
@@ -6079,6 +6183,7 @@ function ConfirmDialog({
6079
6183
  confirmVariant = "primary",
6080
6184
  isConfirming = false,
6081
6185
  confirmingLabel = "Working\u2026",
6186
+ confirmDisabled = false,
6082
6187
  children,
6083
6188
  className,
6084
6189
  onConfirm,
@@ -6093,7 +6198,7 @@ function ConfirmDialog({
6093
6198
  // `alertdialog`, not `dialog`: this interrupts to ask a yes/no question, so the body
6094
6199
  // should be announced on open rather than waiting to be browsed to. The name comes
6095
6200
  // from `ModalTitle` via `aria-labelledby`, so there is no `label` to keep in sync.
6096
- /* @__PURE__ */ jsxs36(
6201
+ /* @__PURE__ */ jsxs38(
6097
6202
  Modal,
6098
6203
  {
6099
6204
  open,
@@ -6103,12 +6208,12 @@ function ConfirmDialog({
6103
6208
  className,
6104
6209
  initialFocus: cancelRef,
6105
6210
  children: [
6106
- /* @__PURE__ */ jsxs36(ModalHeader, { tone, divider: Boolean(children), children: [
6211
+ /* @__PURE__ */ jsxs38(ModalHeader, { tone, divider: Boolean(children), children: [
6107
6212
  /* @__PURE__ */ jsx57(ModalTitle, { children: title }),
6108
6213
  subtitle && /* @__PURE__ */ jsx57(ModalDescription, { children: subtitle })
6109
6214
  ] }),
6110
6215
  children && /* @__PURE__ */ jsx57(ModalBody, { children }),
6111
- /* @__PURE__ */ jsxs36(ModalFooter, { children: [
6216
+ /* @__PURE__ */ jsxs38(ModalFooter, { children: [
6112
6217
  /* @__PURE__ */ jsx57(
6113
6218
  Button,
6114
6219
  {
@@ -6127,6 +6232,7 @@ function ConfirmDialog({
6127
6232
  size: "md",
6128
6233
  loading: isConfirming,
6129
6234
  loadingLabel: confirmingLabel,
6235
+ disabled: confirmDisabled,
6130
6236
  onClick: onConfirm,
6131
6237
  children: isConfirming ? confirmingLabel : confirmLabel
6132
6238
  }
@@ -6140,7 +6246,7 @@ function ConfirmDialog({
6140
6246
 
6141
6247
  // src/components/overlays/note-confirm-modal.tsx
6142
6248
  import { useState as useState18 } from "react";
6143
- import { jsx as jsx58, jsxs as jsxs37 } from "react/jsx-runtime";
6249
+ import { jsx as jsx58, jsxs as jsxs39 } from "react/jsx-runtime";
6144
6250
  function NoteConfirmModal({ open, ...rest }) {
6145
6251
  if (!open) return null;
6146
6252
  return /* @__PURE__ */ jsx58(NoteConfirmModalShell, { ...rest });
@@ -6178,7 +6284,7 @@ function NoteConfirmModalShell({
6178
6284
  const confirmed = onDiscardNote ? onDiscardNote(note) : typeof window !== "undefined" && window.confirm("Discard your note? It will not be saved.");
6179
6285
  if (!confirmed) event.preventDefault();
6180
6286
  };
6181
- return /* @__PURE__ */ jsxs37(
6287
+ return /* @__PURE__ */ jsxs39(
6182
6288
  Modal,
6183
6289
  {
6184
6290
  open: true,
@@ -6188,7 +6294,7 @@ function NoteConfirmModalShell({
6188
6294
  onEscapeKeyDown: guardDiscard,
6189
6295
  onInteractOutside: guardDiscard,
6190
6296
  children: [
6191
- /* @__PURE__ */ jsxs37(ModalHeader, { tone, children: [
6297
+ /* @__PURE__ */ jsxs39(ModalHeader, { tone, children: [
6192
6298
  /* @__PURE__ */ jsx58(ModalTitle, { children: title }),
6193
6299
  subtitle && /* @__PURE__ */ jsx58(ModalDescription, { children: subtitle })
6194
6300
  ] }),
@@ -6202,7 +6308,7 @@ function NoteConfirmModalShell({
6202
6308
  rows: 4
6203
6309
  }
6204
6310
  ) }),
6205
- /* @__PURE__ */ jsxs37(ModalFooter, { children: [
6311
+ /* @__PURE__ */ jsxs39(ModalFooter, { children: [
6206
6312
  /* @__PURE__ */ jsx58(
6207
6313
  Button,
6208
6314
  {
@@ -6241,7 +6347,7 @@ import {
6241
6347
  } from "react";
6242
6348
  import { DropdownMenu as DropdownMenuPrimitive } from "radix-ui";
6243
6349
  import { EllipsisIcon } from "lucide-react";
6244
- import { jsx as jsx59 } from "react/jsx-runtime";
6350
+ import { Fragment as Fragment10, jsx as jsx59, jsxs as jsxs40 } from "react/jsx-runtime";
6245
6351
  var DropdownMenuStateContext = createContext11(null);
6246
6352
  function useDropdownMenuState(part) {
6247
6353
  const value = useContext11(DropdownMenuStateContext);
@@ -6250,6 +6356,11 @@ function useDropdownMenuState(part) {
6250
6356
  }
6251
6357
  function DropdownMenu({
6252
6358
  children,
6359
+ items,
6360
+ trigger,
6361
+ label,
6362
+ side,
6363
+ align,
6253
6364
  open: openProp,
6254
6365
  defaultOpen = false,
6255
6366
  onOpenChange,
@@ -6262,7 +6373,10 @@ function DropdownMenu({
6262
6373
  });
6263
6374
  const pendingEdge = useRef17("start");
6264
6375
  const state = useMemo9(() => ({ setOpen, pendingEdge }), [setOpen]);
6265
- return /* @__PURE__ */ jsx59(DropdownMenuPrimitive.Root, { open, onOpenChange: setOpen, modal, children: /* @__PURE__ */ jsx59(DropdownMenuStateContext.Provider, { value: state, children }) });
6376
+ return /* @__PURE__ */ jsx59(DropdownMenuPrimitive.Root, { open, onOpenChange: setOpen, modal, children: /* @__PURE__ */ jsx59(DropdownMenuStateContext.Provider, { value: state, children: items ? /* @__PURE__ */ jsxs40(Fragment10, { children: [
6377
+ /* @__PURE__ */ jsx59(DropdownMenuTrigger, { asChild: trigger != null, label, children: trigger }),
6378
+ /* @__PURE__ */ jsx59(DropdownMenuContent, { side, align, children: /* @__PURE__ */ jsx59(DropdownMenuItems, { items }) })
6379
+ ] }) : children }) });
6266
6380
  }
6267
6381
  var DropdownMenuTrigger = forwardRef27(
6268
6382
  function DropdownMenuTrigger2({ children, asChild = false, label = "Open menu", onClick, onPointerDown, onMouseDown, onKeyDown, ...rest }, ref) {
@@ -6347,6 +6461,7 @@ var DropdownMenuContent = forwardRef27(
6347
6461
  }
6348
6462
  );
6349
6463
  var parts3 = createMenuParts(DropdownMenuPrimitive);
6464
+ var DropdownMenuItems = parts3.Items;
6350
6465
  var DropdownMenuItem = parts3.Item;
6351
6466
  var DropdownMenuCheckboxItem = parts3.CheckboxItem;
6352
6467
  var DropdownMenuRadioGroup = parts3.RadioGroup;
@@ -6380,7 +6495,7 @@ function Scrim({ onClose, label, position = "fixed", open, className }) {
6380
6495
  import { useState as useState19 } from "react";
6381
6496
  import { Dialog as DialogPrimitive3 } from "radix-ui";
6382
6497
  import { XIcon as XIcon6 } from "lucide-react";
6383
- import { jsx as jsx61, jsxs as jsxs38 } from "react/jsx-runtime";
6498
+ import { jsx as jsx61, jsxs as jsxs41 } from "react/jsx-runtime";
6384
6499
  var STACKING = {
6385
6500
  base: "z-overlay",
6386
6501
  elevated: "z-modal"
@@ -6394,7 +6509,7 @@ function FullscreenSurface({
6394
6509
  className
6395
6510
  }) {
6396
6511
  const [node, setNode] = useState19(null);
6397
- return /* @__PURE__ */ jsx61(DialogPrimitive3.Root, { open: true, onOpenChange: (open) => !open && onClose(), children: /* @__PURE__ */ jsx61(DialogPrimitive3.Portal, { children: /* @__PURE__ */ jsxs38(
6512
+ return /* @__PURE__ */ jsx61(DialogPrimitive3.Root, { open: true, onOpenChange: (open) => !open && onClose(), children: /* @__PURE__ */ jsx61(DialogPrimitive3.Portal, { children: /* @__PURE__ */ jsxs41(
6398
6513
  DialogPrimitive3.Content,
6399
6514
  {
6400
6515
  ref: setNode,
@@ -6581,10 +6696,11 @@ import { createContext as createContext13, forwardRef as forwardRef29, useContex
6581
6696
  import clsx47 from "clsx";
6582
6697
  import { Accordion as AccordionPrimitive } from "radix-ui";
6583
6698
  import { ChevronDownIcon as ChevronDownIcon3 } from "lucide-react";
6584
- import { jsx as jsx65, jsxs as jsxs39 } from "react/jsx-runtime";
6699
+ import { jsx as jsx65, jsxs as jsxs42 } from "react/jsx-runtime";
6585
6700
  var HeadingLevel = createContext13(3);
6586
6701
  var Accordion = forwardRef29(function Accordion2({
6587
- children,
6702
+ children: childrenProp,
6703
+ items,
6588
6704
  type = "single",
6589
6705
  value,
6590
6706
  defaultValue,
@@ -6595,6 +6711,10 @@ var Accordion = forwardRef29(function Accordion2({
6595
6711
  className,
6596
6712
  ...rest
6597
6713
  }, ref) {
6714
+ const children = items ? items.filter((item) => !item.hidden).map((item) => /* @__PURE__ */ jsxs42(AccordionItem, { value: item.value, disabled: item.disabled, children: [
6715
+ /* @__PURE__ */ jsx65(AccordionTrigger, { children: item.label }),
6716
+ /* @__PURE__ */ jsx65(AccordionContent, { children: item.content })
6717
+ ] }, item.value)) : childrenProp;
6598
6718
  const shared = {
6599
6719
  ref,
6600
6720
  disabled,
@@ -6646,7 +6766,7 @@ var AccordionTrigger = forwardRef29(
6646
6766
  return (
6647
6767
  // The heading carries no styling of its own — it exists so the accordion shows up in
6648
6768
  // the document outline, which is how screen reader users navigate between sections.
6649
- /* @__PURE__ */ jsx65(AccordionPrimitive.Header, { asChild: true, children: /* @__PURE__ */ jsx65(Heading2, { className: "m-0", children: /* @__PURE__ */ jsxs39(
6769
+ /* @__PURE__ */ jsx65(AccordionPrimitive.Header, { asChild: true, children: /* @__PURE__ */ jsx65(Heading2, { className: "m-0", children: /* @__PURE__ */ jsxs42(
6650
6770
  AccordionPrimitive.Trigger,
6651
6771
  {
6652
6772
  ref,
@@ -7044,7 +7164,7 @@ import {
7044
7164
  } from "react";
7045
7165
  import clsx49 from "clsx";
7046
7166
  import { ChevronLeftIcon as ChevronLeftIcon2, ChevronRightIcon as ChevronRightIcon4 } from "lucide-react";
7047
- import { jsx as jsx69, jsxs as jsxs40 } from "react/jsx-runtime";
7167
+ import { jsx as jsx69, jsxs as jsxs43 } from "react/jsx-runtime";
7048
7168
  var CarouselContext = createContext15(null);
7049
7169
  function useCarousel(part) {
7050
7170
  const value = useContext15(CarouselContext);
@@ -7174,7 +7294,7 @@ function CarouselControls({ showDots = true, className, ...rest }) {
7174
7294
  },
7175
7295
  [carousel, count, loop]
7176
7296
  );
7177
- return /* @__PURE__ */ jsxs40(
7297
+ return /* @__PURE__ */ jsxs43(
7178
7298
  "div",
7179
7299
  {
7180
7300
  className: clsx49("mt-3 flex items-center justify-between gap-3", className),
@@ -7207,7 +7327,7 @@ function CarouselControls({ showDots = true, className, ...rest }) {
7207
7327
  },
7208
7328
  i
7209
7329
  )) }),
7210
- /* @__PURE__ */ jsxs40("div", { className: "flex items-center gap-1.5", children: [
7330
+ /* @__PURE__ */ jsxs43("div", { className: "flex items-center gap-1.5", children: [
7211
7331
  carousel.hasAutoplay && /* @__PURE__ */ jsx69(
7212
7332
  IconButton,
7213
7333
  {
@@ -7248,7 +7368,7 @@ import {
7248
7368
  useState as useState21
7249
7369
  } from "react";
7250
7370
  import clsx50 from "clsx";
7251
- import { jsx as jsx70, jsxs as jsxs41 } from "react/jsx-runtime";
7371
+ import { jsx as jsx70, jsxs as jsxs44 } from "react/jsx-runtime";
7252
7372
  var ResizableContext = createContext16(null);
7253
7373
  function useResizable(part) {
7254
7374
  const value = useContext16(ResizableContext);
@@ -7364,7 +7484,7 @@ function ResizableHandle({
7364
7484
  // resized with a mouse. ARIA explicitly allows a focusable separator, which is what
7365
7485
  // carries `aria-valuenow`; jsx-a11y models `separator` as always non-interactive.
7366
7486
  // eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex, jsx-a11y/no-noninteractive-element-interactions
7367
- /* @__PURE__ */ jsxs41(
7487
+ /* @__PURE__ */ jsxs44(
7368
7488
  "div",
7369
7489
  {
7370
7490
  role: "separator",
@@ -7443,7 +7563,7 @@ function ResizableHandle({
7443
7563
 
7444
7564
  // src/components/chrome/page-heading.tsx
7445
7565
  import clsx51 from "clsx";
7446
- import { jsx as jsx71, jsxs as jsxs42 } from "react/jsx-runtime";
7566
+ import { jsx as jsx71, jsxs as jsxs45 } from "react/jsx-runtime";
7447
7567
  var TITLE = {
7448
7568
  // `text-2xl` was stock Tailwind rather than the design tokens. Same 24px, now on-token.
7449
7569
  page: "text-heading font-semibold text-default",
@@ -7468,12 +7588,12 @@ function PageHeading({
7468
7588
  className
7469
7589
  }) {
7470
7590
  const Tag = as ?? (size2 === "section" ? "h2" : "h1");
7471
- const heading = /* @__PURE__ */ jsxs42("div", { className: "flex min-w-0 flex-col gap-0.5", children: [
7591
+ const heading = /* @__PURE__ */ jsxs45("div", { className: "flex min-w-0 flex-col gap-0.5", children: [
7472
7592
  /* @__PURE__ */ jsx71(Tag, { className: clsx51(TITLE[size2], truncateTitle && "truncate"), children: title }),
7473
7593
  subtitle && /* @__PURE__ */ jsx71("p", { className: SUBTITLE[size2], children: subtitle })
7474
7594
  ] });
7475
7595
  if (!actions) return className ? /* @__PURE__ */ jsx71("div", { className, children: heading }) : heading;
7476
- return /* @__PURE__ */ jsxs42("div", { className: clsx51("flex items-start justify-between gap-4", className), children: [
7596
+ return /* @__PURE__ */ jsxs45("div", { className: clsx51("flex items-start justify-between gap-4", className), children: [
7477
7597
  heading,
7478
7598
  /* @__PURE__ */ jsx71("div", { className: "flex shrink-0 items-center gap-2", children: actions })
7479
7599
  ] });
@@ -7482,7 +7602,7 @@ function PageHeading({
7482
7602
  // src/components/chrome/page-toolbar.tsx
7483
7603
  import clsx52 from "clsx";
7484
7604
  import { ArrowLeftIcon as ArrowLeftIcon2 } from "lucide-react";
7485
- import { jsx as jsx72, jsxs as jsxs43 } from "react/jsx-runtime";
7605
+ import { jsx as jsx72, jsxs as jsxs46 } from "react/jsx-runtime";
7486
7606
  var SIZE9 = {
7487
7607
  sm: "min-h-[56px] px-4 py-3 md:px-7",
7488
7608
  md: "min-h-[72px] px-4 py-4 md:px-7"
@@ -7495,7 +7615,7 @@ function PageToolbar({
7495
7615
  size: size2 = "md",
7496
7616
  className
7497
7617
  }) {
7498
- return /* @__PURE__ */ jsxs43(
7618
+ return /* @__PURE__ */ jsxs46(
7499
7619
  "div",
7500
7620
  {
7501
7621
  className: clsx52(
@@ -7515,13 +7635,13 @@ function PageToolbar({
7515
7635
 
7516
7636
  // src/components/chrome/filter-bar.tsx
7517
7637
  import clsx53 from "clsx";
7518
- import { jsx as jsx73, jsxs as jsxs44 } from "react/jsx-runtime";
7638
+ import { jsx as jsx73, jsxs as jsxs47 } from "react/jsx-runtime";
7519
7639
  var GAP3 = {
7520
7640
  sm: "gap-2",
7521
7641
  md: "gap-3"
7522
7642
  };
7523
7643
  function FilterBar({ children, trailing, size: size2 = "md", className }) {
7524
- return /* @__PURE__ */ jsx73(ControlSizeProvider, { size: size2, children: /* @__PURE__ */ jsxs44("div", { className: clsx53("flex flex-wrap items-center", GAP3[size2], className), children: [
7644
+ return /* @__PURE__ */ jsx73(ControlSizeProvider, { size: size2, children: /* @__PURE__ */ jsxs47("div", { className: clsx53("flex flex-wrap items-center", GAP3[size2], className), children: [
7525
7645
  children,
7526
7646
  trailing && /* @__PURE__ */ jsx73("div", { className: clsx53("ml-auto flex items-center", GAP3[size2]), children: trailing })
7527
7647
  ] }) });
@@ -7536,7 +7656,7 @@ import {
7536
7656
  } from "react";
7537
7657
  import clsx54 from "clsx";
7538
7658
  import { Tabs as TabsPrimitive } from "radix-ui";
7539
- import { jsx as jsx74, jsxs as jsxs45 } from "react/jsx-runtime";
7659
+ import { jsx as jsx74, jsxs as jsxs48 } from "react/jsx-runtime";
7540
7660
  var SIZE10 = {
7541
7661
  underline: {
7542
7662
  sm: { strip: "gap-4", tab: "px-0.5 py-1.5 text-body-xs" },
@@ -7631,7 +7751,7 @@ function ItemsTabs({
7631
7751
  children: items.map((tab, index) => {
7632
7752
  const active = tab.key === value;
7633
7753
  const itemProps = roving.itemProps(index, { disabled: tab.disabled, label: tab.label });
7634
- return /* @__PURE__ */ jsxs45(
7754
+ return /* @__PURE__ */ jsxs48(
7635
7755
  "button",
7636
7756
  {
7637
7757
  type: "button",
@@ -7739,7 +7859,7 @@ var TabsList = forwardRef33(function TabsList2({ label, className, ...rest }, re
7739
7859
  });
7740
7860
  var TabsTrigger = forwardRef33(function TabsTrigger2({ value, disabled, count, className, children, ...rest }, ref) {
7741
7861
  const style = useContext17(TabsStyle);
7742
- return /* @__PURE__ */ jsxs45(
7862
+ return /* @__PURE__ */ jsxs48(
7743
7863
  TabsPrimitive.Trigger,
7744
7864
  {
7745
7865
  ref,
@@ -7769,7 +7889,7 @@ var TabsContent = forwardRef33(function TabsContent2({ value, keepMounted = fals
7769
7889
 
7770
7890
  // src/components/chrome/nav-item.tsx
7771
7891
  import clsx55 from "clsx";
7772
- import { Fragment as Fragment8, jsx as jsx75, jsxs as jsxs46 } from "react/jsx-runtime";
7892
+ import { Fragment as Fragment11, jsx as jsx75, jsxs as jsxs49 } from "react/jsx-runtime";
7773
7893
  var SIZE11 = {
7774
7894
  sm: { box: "h-9 gap-2 rounded-lg px-3 py-1.5", label: "text-body-xs", square: "w-9" },
7775
7895
  md: { box: "h-11 gap-3 rounded-xl px-3.5 py-2.5", label: "text-body-sm", square: "w-11" }
@@ -7862,7 +7982,7 @@ function NavItem({
7862
7982
  onClick?.(event);
7863
7983
  }
7864
7984
  };
7865
- const content = /* @__PURE__ */ jsxs46(Fragment8, { children: [
7985
+ const content = /* @__PURE__ */ jsxs49(Fragment11, { children: [
7866
7986
  icon != null ? /* @__PURE__ */ jsx75("span", { "aria-hidden": true, className: "shrink-0 [&_svg]:size-4", children: icon }) : (
7867
7987
  // Icons are optional, but the collapsed rail hides the label — so a row with neither
7868
7988
  // renders as an empty box. Through 0.5.0 that is exactly what a nav without icons
@@ -7971,16 +8091,33 @@ var Kbd = forwardRef35(function Kbd2({ children, size: size2 = "md", className,
7971
8091
  });
7972
8092
 
7973
8093
  // src/components/chrome/breadcrumb.tsx
7974
- import { forwardRef as forwardRef36 } from "react";
8094
+ import {
8095
+ Fragment as Fragment12,
8096
+ forwardRef as forwardRef36
8097
+ } from "react";
7975
8098
  import clsx59 from "clsx";
7976
8099
  import { ChevronRightIcon as ChevronRightIcon5 } from "lucide-react";
7977
- import { jsx as jsx79, jsxs as jsxs47 } from "react/jsx-runtime";
7978
- var Breadcrumb = forwardRef36(function Breadcrumb2({ children, label = "Breadcrumb", className, ...rest }, ref) {
7979
- return /* @__PURE__ */ jsx79("nav", { ref, "aria-label": label, "data-slot": "breadcrumb", ...rest, children: /* @__PURE__ */ jsx79("ol", { className: clsx59("flex flex-wrap items-center gap-1.5 p-0 text-body-xs", className), children }) });
8100
+ import { jsx as jsx79, jsxs as jsxs50 } from "react/jsx-runtime";
8101
+ var Breadcrumb = forwardRef36(function Breadcrumb2({ children, items, renderLink, maxItems, label = "Breadcrumb", className, ...rest }, ref) {
8102
+ return /* @__PURE__ */ jsx79("nav", { ref, "aria-label": label, "data-slot": "breadcrumb", ...rest, children: /* @__PURE__ */ jsx79("ol", { className: clsx59("flex flex-wrap items-center gap-1.5 p-0 text-body-xs", className), children: items ? renderItems(items, renderLink, maxItems) : children }) });
7980
8103
  });
8104
+ function renderItems(items, renderLink, maxItems) {
8105
+ const last = items.length - 1;
8106
+ const collapse = maxItems !== void 0 && maxItems >= 2 && items.length > maxItems;
8107
+ const shown = collapse ? [0, ...items.map((_, i) => i).slice(items.length - (maxItems - 1))] : items.map((_, i) => i);
8108
+ return shown.map((index, position) => {
8109
+ const item = items[index];
8110
+ const current = item.current ?? index === last;
8111
+ const crumb = !current && renderLink ? /* @__PURE__ */ jsx79(BreadcrumbItem, { asChild: true, first: position === 0, children: renderLink(item) }) : /* @__PURE__ */ jsx79(BreadcrumbItem, { href: item.href, current, first: position === 0, children: item.label });
8112
+ return /* @__PURE__ */ jsxs50(Fragment12, { children: [
8113
+ crumb,
8114
+ collapse && position === 0 && /* @__PURE__ */ jsx79(BreadcrumbEllipsis, {})
8115
+ ] }, item.id ?? index);
8116
+ });
8117
+ }
7981
8118
  var BreadcrumbItem = forwardRef36(
7982
8119
  function BreadcrumbItem2({ children, current = false, asChild = false, first = false, className, ...rest }, ref) {
7983
- return /* @__PURE__ */ jsxs47("li", { className: "flex items-center gap-1.5", children: [
8120
+ return /* @__PURE__ */ jsxs50("li", { className: "flex items-center gap-1.5", children: [
7984
8121
  !first && /* @__PURE__ */ jsx79(ChevronRightIcon5, { "aria-hidden": true, className: "size-3.5 shrink-0 text-icon-default-tertiary" }),
7985
8122
  current ? /* @__PURE__ */ jsx79("span", { "aria-current": "page", className: clsx59("font-medium text-default", className), children }) : asChild ? /* @__PURE__ */ jsx79(
7986
8123
  Slot,
@@ -8011,7 +8148,7 @@ var BreadcrumbItem = forwardRef36(
8011
8148
  );
8012
8149
  var BreadcrumbEllipsis = forwardRef36(
8013
8150
  function BreadcrumbEllipsis2({ className, ...rest }, ref) {
8014
- return /* @__PURE__ */ jsxs47("li", { className: "flex items-center gap-1.5", children: [
8151
+ return /* @__PURE__ */ jsxs50("li", { className: "flex items-center gap-1.5", children: [
8015
8152
  /* @__PURE__ */ jsx79(ChevronRightIcon5, { "aria-hidden": true, className: "size-3.5 shrink-0 text-icon-default-tertiary" }),
8016
8153
  /* @__PURE__ */ jsx79(
8017
8154
  "span",
@@ -8031,7 +8168,7 @@ var BreadcrumbEllipsis = forwardRef36(
8031
8168
  import { forwardRef as forwardRef37 } from "react";
8032
8169
  import clsx60 from "clsx";
8033
8170
  import { ChevronLeftIcon as ChevronLeftIcon3, ChevronRightIcon as ChevronRightIcon6 } from "lucide-react";
8034
- import { Fragment as Fragment9, jsx as jsx80, jsxs as jsxs48 } from "react/jsx-runtime";
8171
+ import { Fragment as Fragment13, jsx as jsx80, jsxs as jsxs51 } from "react/jsx-runtime";
8035
8172
  var GAP4 = "\u2026";
8036
8173
  function paginationRange(page, pageCount, siblingCount = 1) {
8037
8174
  const totalSlots = siblingCount * 2 + 5;
@@ -8079,7 +8216,7 @@ var Pagination = forwardRef37(function Pagination2({
8079
8216
  const clamped = Math.min(Math.max(next, 1), pageCount);
8080
8217
  if (clamped !== page) onPageChange(clamped);
8081
8218
  };
8082
- return /* @__PURE__ */ jsxs48(
8219
+ return /* @__PURE__ */ jsxs51(
8083
8220
  "nav",
8084
8221
  {
8085
8222
  ref,
@@ -8182,13 +8319,13 @@ function PaginationBar({
8182
8319
  const to = Math.min(total, page * pageSize);
8183
8320
  const showSize = Boolean(onPageSizeChange) && pageSizeOptions.length > 0;
8184
8321
  const options = pageSizeOptions.includes(pageSize) ? pageSizeOptions : [...pageSizeOptions, pageSize].sort((a, b) => a - b);
8185
- return /* @__PURE__ */ jsxs48(
8322
+ return /* @__PURE__ */ jsxs51(
8186
8323
  "div",
8187
8324
  {
8188
8325
  "data-slot": "pagination-bar",
8189
8326
  className: clsx60("flex flex-wrap items-center justify-between gap-x-4 gap-y-3", className),
8190
8327
  children: [
8191
- /* @__PURE__ */ jsx80("p", { className: "text-body-xs text-default-secondary", children: summary ?? /* @__PURE__ */ jsxs48(Fragment9, { children: [
8328
+ /* @__PURE__ */ jsx80("p", { className: "text-body-xs text-default-secondary", children: summary ?? /* @__PURE__ */ jsxs51(Fragment13, { children: [
8192
8329
  "Showing ",
8193
8330
  from,
8194
8331
  "\u2013",
@@ -8196,8 +8333,8 @@ function PaginationBar({
8196
8333
  " of ",
8197
8334
  total
8198
8335
  ] }) }),
8199
- /* @__PURE__ */ jsxs48("div", { className: "flex flex-wrap items-center gap-x-4 gap-y-3", children: [
8200
- showSize && /* @__PURE__ */ jsxs48("div", { className: "flex items-center gap-2", children: [
8336
+ /* @__PURE__ */ jsxs51("div", { className: "flex flex-wrap items-center gap-x-4 gap-y-3", children: [
8337
+ showSize && /* @__PURE__ */ jsxs51("div", { className: "flex items-center gap-2", children: [
8201
8338
  /* @__PURE__ */ jsx80("span", { "aria-hidden": true, className: "text-body-xs text-default-secondary", children: "Rows per page" }),
8202
8339
  /* @__PURE__ */ jsx80(
8203
8340
  SelectControl,
@@ -8221,7 +8358,7 @@ function PaginationBar({
8221
8358
  // src/components/chrome/navigation-menu.tsx
8222
8359
  import { forwardRef as forwardRef38 } from "react";
8223
8360
  import clsx61 from "clsx";
8224
- import { Fragment as Fragment10, jsx as jsx81, jsxs as jsxs49 } from "react/jsx-runtime";
8361
+ import { Fragment as Fragment14, jsx as jsx81, jsxs as jsxs52 } from "react/jsx-runtime";
8225
8362
  var NavigationMenu = forwardRef38(
8226
8363
  function NavigationMenu2({ children, orientation = "horizontal", label, className, ...rest }, ref) {
8227
8364
  return /* @__PURE__ */ jsx81("nav", { ref, "aria-label": label, "data-slot": "navigation-menu", ...rest, children: /* @__PURE__ */ jsx81(
@@ -8239,7 +8376,7 @@ var NavigationMenu = forwardRef38(
8239
8376
  );
8240
8377
  var NavigationMenuItem = forwardRef38(
8241
8378
  function NavigationMenuItem2({ children, active = false, variant = "pill", asChild = false, icon, className, ...rest }, ref) {
8242
- const content = /* @__PURE__ */ jsxs49(Fragment10, { children: [
8379
+ const content = /* @__PURE__ */ jsxs52(Fragment14, { children: [
8243
8380
  icon && /* @__PURE__ */ jsx81("span", { "aria-hidden": true, className: "shrink-0 [&_svg]:size-4", children: icon }),
8244
8381
  /* @__PURE__ */ jsx81("span", { className: "min-w-0 truncate", children })
8245
8382
  ] });
@@ -8388,7 +8525,7 @@ function WidgetTitle({ children, size: size2 = "sm", className }) {
8388
8525
  }
8389
8526
 
8390
8527
  // src/components/widgets/widget-header.tsx
8391
- import { jsx as jsx84, jsxs as jsxs50 } from "react/jsx-runtime";
8528
+ import { jsx as jsx84, jsxs as jsxs53 } from "react/jsx-runtime";
8392
8529
  var eyebrowStyles = {
8393
8530
  uppercase: "text-body-tiny font-medium uppercase tracking-[0.66px] text-default-secondary",
8394
8531
  plain: "text-body-xs leading-[1.4] text-default-secondary"
@@ -8403,13 +8540,13 @@ function WidgetHeader({
8403
8540
  action,
8404
8541
  className
8405
8542
  }) {
8406
- return /* @__PURE__ */ jsxs50("div", { className: clsx64("flex items-start justify-between gap-2", className), children: [
8407
- /* @__PURE__ */ jsxs50("div", { className: "min-w-0 flex-1", children: [
8543
+ return /* @__PURE__ */ jsxs53("div", { className: clsx64("flex items-start justify-between gap-2", className), children: [
8544
+ /* @__PURE__ */ jsxs53("div", { className: "min-w-0 flex-1", children: [
8408
8545
  eyebrow && /* @__PURE__ */ jsx84("p", { className: eyebrowStyles[eyebrowVariant], children: eyebrow }),
8409
8546
  /* @__PURE__ */ jsx84(WidgetTitle, { size: titleSize, children: title }),
8410
8547
  subtitle && /* @__PURE__ */ jsx84("p", { className: "mt-1 text-body-xs text-default-secondary leading-snug", children: subtitle })
8411
8548
  ] }),
8412
- /* @__PURE__ */ jsxs50("div", { className: "flex shrink-0 items-center gap-2", children: [
8549
+ /* @__PURE__ */ jsxs53("div", { className: "flex shrink-0 items-center gap-2", children: [
8413
8550
  badge,
8414
8551
  action
8415
8552
  ] })
@@ -8418,12 +8555,12 @@ function WidgetHeader({
8418
8555
 
8419
8556
  // src/components/widgets/widget-footer.tsx
8420
8557
  import clsx65 from "clsx";
8421
- import { jsx as jsx85, jsxs as jsxs51 } from "react/jsx-runtime";
8558
+ import { jsx as jsx85, jsxs as jsxs54 } from "react/jsx-runtime";
8422
8559
  function WidgetFooter({ caption, subcaption, action, className }) {
8423
- return /* @__PURE__ */ jsxs51("div", { className: clsx65("flex items-center gap-3", className), children: [
8424
- caption && /* @__PURE__ */ jsxs51("div", { className: "flex items-stretch gap-3 flex-1 min-w-0", children: [
8560
+ return /* @__PURE__ */ jsxs54("div", { className: clsx65("flex items-center gap-3", className), children: [
8561
+ caption && /* @__PURE__ */ jsxs54("div", { className: "flex items-stretch gap-3 flex-1 min-w-0", children: [
8425
8562
  /* @__PURE__ */ jsx85("div", { className: "w-0.5 shrink-0 self-stretch rounded-full bg-brand" }),
8426
- /* @__PURE__ */ jsxs51("div", { className: "min-w-0", children: [
8563
+ /* @__PURE__ */ jsxs54("div", { className: "min-w-0", children: [
8427
8564
  /* @__PURE__ */ jsx85("p", { className: "text-body-sm font-medium text-default leading-snug", children: caption }),
8428
8565
  subcaption && /* @__PURE__ */ jsx85("p", { className: "mt-0.5 text-body-xs text-default-secondary", children: subcaption })
8429
8566
  ] })
@@ -8583,7 +8720,7 @@ function useWidthTier({ frozen = false } = {}) {
8583
8720
 
8584
8721
  // src/components/stats/stat-tile.tsx
8585
8722
  import clsx67 from "clsx";
8586
- import { Fragment as Fragment11, jsx as jsx87, jsxs as jsxs52 } from "react/jsx-runtime";
8723
+ import { Fragment as Fragment15, jsx as jsx87, jsxs as jsxs55 } from "react/jsx-runtime";
8587
8724
  var DOT_TONE = {
8588
8725
  neutral: "bg-status-dot-neutral",
8589
8726
  info: "bg-status-dot-info",
@@ -8607,8 +8744,8 @@ function StatTile({
8607
8744
  }) {
8608
8745
  const showDot = Boolean(tone || dotColor);
8609
8746
  const interactive = Boolean(onClick) || asChild;
8610
- const content = /* @__PURE__ */ jsxs52(Fragment11, { children: [
8611
- /* @__PURE__ */ jsxs52("span", { className: "flex items-center gap-1.5", children: [
8747
+ const content = /* @__PURE__ */ jsxs55(Fragment15, { children: [
8748
+ /* @__PURE__ */ jsxs55("span", { className: "flex items-center gap-1.5", children: [
8612
8749
  showDot && /* @__PURE__ */ jsx87(
8613
8750
  "span",
8614
8751
  {
@@ -8646,7 +8783,7 @@ function StatTile({
8646
8783
 
8647
8784
  // src/components/stats/stat-number.tsx
8648
8785
  import clsx68 from "clsx";
8649
- import { jsx as jsx88, jsxs as jsxs53 } from "react/jsx-runtime";
8786
+ import { jsx as jsx88, jsxs as jsxs56 } from "react/jsx-runtime";
8650
8787
  var sizeStyles6 = {
8651
8788
  sm: "text-subtitle",
8652
8789
  md: "text-subtitle-lg",
@@ -8657,7 +8794,7 @@ var weightStyles = {
8657
8794
  bold: "font-bold"
8658
8795
  };
8659
8796
  function StatNumber({ value, unit, size: size2 = "md", weight = "bold", color, className }) {
8660
- return /* @__PURE__ */ jsxs53(
8797
+ return /* @__PURE__ */ jsxs56(
8661
8798
  "p",
8662
8799
  {
8663
8800
  className: clsx68(sizeStyles6[size2], weightStyles[weight], "leading-none", !color && "text-default", className),
@@ -8672,7 +8809,7 @@ function StatNumber({ value, unit, size: size2 = "md", weight = "bold", color, c
8672
8809
 
8673
8810
  // src/components/stats/score-value.tsx
8674
8811
  import clsx69 from "clsx";
8675
- import { jsx as jsx89, jsxs as jsxs54 } from "react/jsx-runtime";
8812
+ import { jsx as jsx89, jsxs as jsxs57 } from "react/jsx-runtime";
8676
8813
  var DEFAULT_SCORE_THRESHOLDS = { danger: 80, warning: 65, neutral: 50 };
8677
8814
  function getScoreTone(score, {
8678
8815
  direction = "higher-is-worse",
@@ -8716,7 +8853,7 @@ function ScoreValue({
8716
8853
  }) {
8717
8854
  const numeric = typeof value === "number" ? value : Number(value);
8718
8855
  const resolved = tone === "auto" ? Number.isFinite(numeric) ? getScoreTone(numeric, { direction, thresholds }) : "default" : tone;
8719
- return /* @__PURE__ */ jsxs54("span", { "data-tone": resolved, className: clsx69("inline-flex items-baseline gap-1", className), children: [
8856
+ return /* @__PURE__ */ jsxs57("span", { "data-tone": resolved, className: clsx69("inline-flex items-baseline gap-1", className), children: [
8720
8857
  /* @__PURE__ */ jsx89("span", { className: clsx69(SIZE13[size2], WEIGHT[weight], TONE3[resolved]), children: value }),
8721
8858
  label && /* @__PURE__ */ jsx89("span", { className: "text-body-xs text-default-secondary whitespace-nowrap", children: label })
8722
8859
  ] });
@@ -8776,7 +8913,7 @@ function resolveChartColor(color, tone, index = 0) {
8776
8913
 
8777
8914
  // src/components/charts/bar-chart.tsx
8778
8915
  import clsx71 from "clsx";
8779
- import { jsx as jsx91, jsxs as jsxs55 } from "react/jsx-runtime";
8916
+ import { jsx as jsx91, jsxs as jsxs58 } from "react/jsx-runtime";
8780
8917
  var SIZE14 = {
8781
8918
  sm: { band: 14, gap: 6, label: "text-body-tiny" },
8782
8919
  md: { band: 20, gap: 8, label: "text-body-xs" },
@@ -8816,14 +8953,14 @@ function BarChart({
8816
8953
  value: Math.max(0, s.values[ci] ?? 0),
8817
8954
  color: resolveChartColor(s.color, s.tone, si)
8818
8955
  }));
8819
- return /* @__PURE__ */ jsxs55(
8956
+ return /* @__PURE__ */ jsxs58(
8820
8957
  "div",
8821
8958
  {
8822
8959
  className: clsx71("flex min-w-0", horizontal ? "flex-col gap-1" : "h-full flex-col justify-end gap-1.5"),
8823
8960
  style: horizontal ? void 0 : { width: perCategory },
8824
8961
  children: [
8825
8962
  showLabels && horizontal && /* @__PURE__ */ jsx91("span", { className: clsx71("truncate text-default-secondary", labelClass2), children: category }),
8826
- /* @__PURE__ */ jsxs55(
8963
+ /* @__PURE__ */ jsxs58(
8827
8964
  "div",
8828
8965
  {
8829
8966
  className: clsx71("flex", horizontal ? "items-center gap-2" : "w-full flex-1 items-end justify-center"),
@@ -8874,7 +9011,7 @@ function BarChart({
8874
9011
 
8875
9012
  // src/components/charts/donut-chart.tsx
8876
9013
  import clsx72 from "clsx";
8877
- import { jsx as jsx92, jsxs as jsxs56 } from "react/jsx-runtime";
9014
+ import { jsx as jsx92, jsxs as jsxs59 } from "react/jsx-runtime";
8878
9015
  var SIZE15 = {
8879
9016
  sm: { box: 88, thickness: 10 },
8880
9017
  md: { box: 128, thickness: 14 },
@@ -8898,8 +9035,8 @@ function DonutChart({
8898
9035
  const visible = segments.filter((s) => s.value > 0);
8899
9036
  const gapLength = visible.length > 1 ? gap / 360 * circumference : 0;
8900
9037
  let offset2 = 0;
8901
- return /* @__PURE__ */ jsxs56("div", { className: clsx72("relative inline-flex shrink-0 items-center justify-center", className), children: [
8902
- /* @__PURE__ */ jsxs56(
9038
+ return /* @__PURE__ */ jsxs59("div", { className: clsx72("relative inline-flex shrink-0 items-center justify-center", className), children: [
9039
+ /* @__PURE__ */ jsxs59(
8903
9040
  "svg",
8904
9041
  {
8905
9042
  width: box,
@@ -8937,7 +9074,7 @@ function DonutChart({
8937
9074
  ]
8938
9075
  }
8939
9076
  ),
8940
- (centerValue != null || centerLabel != null) && /* @__PURE__ */ jsxs56("div", { className: "absolute inset-0 flex flex-col items-center justify-center text-center", children: [
9077
+ (centerValue != null || centerLabel != null) && /* @__PURE__ */ jsxs59("div", { className: "absolute inset-0 flex flex-col items-center justify-center text-center", children: [
8941
9078
  centerValue != null && /* @__PURE__ */ jsx92("span", { className: "text-subheading-sm font-bold leading-none text-default", children: centerValue }),
8942
9079
  centerLabel != null && /* @__PURE__ */ jsx92("span", { className: "mt-0.5 text-body-tiny text-default-secondary", children: centerLabel })
8943
9080
  ] })
@@ -8946,7 +9083,7 @@ function DonutChart({
8946
9083
 
8947
9084
  // src/components/charts/radial-gauge.tsx
8948
9085
  import clsx73 from "clsx";
8949
- import { jsx as jsx93, jsxs as jsxs57 } from "react/jsx-runtime";
9086
+ import { jsx as jsx93, jsxs as jsxs60 } from "react/jsx-runtime";
8950
9087
  var SIZE16 = {
8951
9088
  sm: { box: 72, thickness: 8, value: "text-body-sm" },
8952
9089
  md: { box: 104, thickness: 11, value: "text-subheading-sm" },
@@ -8975,8 +9112,8 @@ function RadialGauge({
8975
9112
  const fraction = max > 0 ? Math.min(1, Math.max(0, value / max)) : 0;
8976
9113
  const stroke = resolveChartColor(color, tone);
8977
9114
  const rotation = -90 + (360 - clampedSweep) / 2;
8978
- return /* @__PURE__ */ jsxs57("div", { className: clsx73("relative inline-flex shrink-0 items-center justify-center", className), children: [
8979
- /* @__PURE__ */ jsxs57(
9115
+ return /* @__PURE__ */ jsxs60("div", { className: clsx73("relative inline-flex shrink-0 items-center justify-center", className), children: [
9116
+ /* @__PURE__ */ jsxs60(
8980
9117
  "svg",
8981
9118
  {
8982
9119
  width: box,
@@ -9018,7 +9155,7 @@ function RadialGauge({
9018
9155
  ]
9019
9156
  }
9020
9157
  ),
9021
- /* @__PURE__ */ jsxs57("div", { className: "absolute inset-0 flex flex-col items-center justify-center text-center", children: [
9158
+ /* @__PURE__ */ jsxs60("div", { className: "absolute inset-0 flex flex-col items-center justify-center text-center", children: [
9022
9159
  children === void 0 ? /* @__PURE__ */ jsx93("span", { className: clsx73("font-bold leading-none text-default", preset.value), children: value }) : children,
9023
9160
  centerLabel != null && /* @__PURE__ */ jsx93("span", { className: "mt-0.5 text-body-tiny text-default-secondary", children: centerLabel })
9024
9161
  ] })
@@ -9028,7 +9165,7 @@ function RadialGauge({
9028
9165
  // src/components/charts/sparkline.tsx
9029
9166
  import { useId as useId22 } from "react";
9030
9167
  import clsx74 from "clsx";
9031
- import { Fragment as Fragment12, jsx as jsx94, jsxs as jsxs58 } from "react/jsx-runtime";
9168
+ import { Fragment as Fragment16, jsx as jsx94, jsxs as jsxs61 } from "react/jsx-runtime";
9032
9169
  var SIZE17 = {
9033
9170
  sm: { width: 80, height: 24 },
9034
9171
  md: { width: 120, height: 36 },
@@ -9066,7 +9203,7 @@ function Sparkline({
9066
9203
  const points = coords.map((p) => `${p.x.toFixed(2)},${p.y.toFixed(2)}`).join(" ");
9067
9204
  const areaPath = `M ${points.split(" ").join(" L ")} L ${coords[coords.length - 1].x.toFixed(2)},${h} L ${coords[0].x.toFixed(2)},${h} Z`;
9068
9205
  const last = coords[coords.length - 1];
9069
- return /* @__PURE__ */ jsxs58(
9206
+ return /* @__PURE__ */ jsxs61(
9070
9207
  "svg",
9071
9208
  {
9072
9209
  width: stretch ? void 0 : w,
@@ -9079,8 +9216,8 @@ function Sparkline({
9079
9216
  "aria-hidden": label ? void 0 : true,
9080
9217
  className: clsx74("block", stretch ? "h-full w-full" : "shrink-0", className),
9081
9218
  children: [
9082
- variant === "area" && /* @__PURE__ */ jsxs58(Fragment12, { children: [
9083
- /* @__PURE__ */ jsx94("defs", { children: /* @__PURE__ */ jsxs58("linearGradient", { id: gradientId, x1: "0", y1: "0", x2: "0", y2: "1", children: [
9219
+ variant === "area" && /* @__PURE__ */ jsxs61(Fragment16, { children: [
9220
+ /* @__PURE__ */ jsx94("defs", { children: /* @__PURE__ */ jsxs61("linearGradient", { id: gradientId, x1: "0", y1: "0", x2: "0", y2: "1", children: [
9084
9221
  /* @__PURE__ */ jsx94("stop", { offset: "0%", stopColor: stroke, stopOpacity: 0.24 }),
9085
9222
  /* @__PURE__ */ jsx94("stop", { offset: "100%", stopColor: stroke, stopOpacity: 0 })
9086
9223
  ] }) }),
@@ -9207,7 +9344,7 @@ function LegendDot({ tone, color, size: size2 = "md", shape = "dot", className }
9207
9344
  }
9208
9345
 
9209
9346
  // src/components/charts/chart-legend.tsx
9210
- import { jsx as jsx97, jsxs as jsxs59 } from "react/jsx-runtime";
9347
+ import { jsx as jsx97, jsxs as jsxs62 } from "react/jsx-runtime";
9211
9348
  function ChartLegend({
9212
9349
  items,
9213
9350
  orientation = "vertical",
@@ -9223,12 +9360,12 @@ function ChartLegend({
9223
9360
  horizontal ? "flex flex-wrap items-center gap-x-4 gap-y-2" : "flex flex-col gap-3",
9224
9361
  className
9225
9362
  ),
9226
- children: items.map((item, i) => /* @__PURE__ */ jsxs59(
9363
+ children: items.map((item, i) => /* @__PURE__ */ jsxs62(
9227
9364
  "div",
9228
9365
  {
9229
9366
  className: clsx77("flex items-center gap-2", horizontal ? "min-w-0" : "justify-between"),
9230
9367
  children: [
9231
- /* @__PURE__ */ jsxs59("div", { className: "flex min-w-0 items-center gap-2", children: [
9368
+ /* @__PURE__ */ jsxs62("div", { className: "flex min-w-0 items-center gap-2", children: [
9232
9369
  /* @__PURE__ */ jsx97(LegendDot, { color: resolveChartColor(item.color, item.tone, i), size: size2, shape }),
9233
9370
  /* @__PURE__ */ jsx97("span", { className: "truncate text-body-xs text-default-secondary", children: item.label })
9234
9371
  ] }),
@@ -9244,7 +9381,7 @@ function ChartLegend({
9244
9381
  // src/components/charts/trend-label.tsx
9245
9382
  import clsx78 from "clsx";
9246
9383
  import { TrendingDownIcon, TrendingUpIcon } from "lucide-react";
9247
- import { jsx as jsx98, jsxs as jsxs60 } from "react/jsx-runtime";
9384
+ import { jsx as jsx98, jsxs as jsxs63 } from "react/jsx-runtime";
9248
9385
  var SIZE19 = {
9249
9386
  sm: "text-body-xs",
9250
9387
  md: "text-body-sm",
@@ -9278,7 +9415,7 @@ function TrendLabel({
9278
9415
  const flat = value === 0;
9279
9416
  const good = direction === "up-is-good" ? rising : !rising;
9280
9417
  const Arrow = rising ? TrendingUpIcon : TrendingDownIcon;
9281
- return /* @__PURE__ */ jsxs60(
9418
+ return /* @__PURE__ */ jsxs63(
9282
9419
  "span",
9283
9420
  {
9284
9421
  className: clsx78(
@@ -9301,7 +9438,7 @@ function TrendLabel({
9301
9438
 
9302
9439
  // src/components/lists/list-row.tsx
9303
9440
  import clsx79 from "clsx";
9304
- import { Fragment as Fragment13, jsx as jsx99, jsxs as jsxs61 } from "react/jsx-runtime";
9441
+ import { Fragment as Fragment17, jsx as jsx99, jsxs as jsxs64 } from "react/jsx-runtime";
9305
9442
  var DENSITY = {
9306
9443
  default: {
9307
9444
  pad: "py-4",
@@ -9362,10 +9499,10 @@ function ListRow({
9362
9499
  className
9363
9500
  )
9364
9501
  };
9365
- const body = /* @__PURE__ */ jsxs61(Fragment13, { children: [
9366
- /* @__PURE__ */ jsxs61("div", { className: clsx79("flex min-w-0 flex-1 flex-col", d.gap), children: [
9367
- hasTitleLine && /* @__PURE__ */ jsxs61("div", { className: "flex items-center justify-between gap-2", children: [
9368
- /* @__PURE__ */ jsxs61("div", { className: "flex min-w-0 items-center gap-2", children: [
9502
+ const body = /* @__PURE__ */ jsxs64(Fragment17, { children: [
9503
+ /* @__PURE__ */ jsxs64("div", { className: clsx79("flex min-w-0 flex-1 flex-col", d.gap), children: [
9504
+ hasTitleLine && /* @__PURE__ */ jsxs64("div", { className: "flex items-center justify-between gap-2", children: [
9505
+ /* @__PURE__ */ jsxs64("div", { className: "flex min-w-0 items-center gap-2", children: [
9369
9506
  leading,
9370
9507
  title != null && /* @__PURE__ */ jsx99("span", { className: clsx79("truncate", d.title), children: title }),
9371
9508
  titleMeta && /* @__PURE__ */ jsx99("span", { className: "shrink-0", children: titleMeta })
@@ -9433,7 +9570,8 @@ function refusePress(event) {
9433
9570
 
9434
9571
  // src/components/lists/file-row.tsx
9435
9572
  import clsx80 from "clsx";
9436
- import { jsx as jsx100, jsxs as jsxs62 } from "react/jsx-runtime";
9573
+ import { DownloadIcon, Trash2Icon } from "lucide-react";
9574
+ import { jsx as jsx100, jsxs as jsxs65 } from "react/jsx-runtime";
9437
9575
  function FileTypeBadge({ type }) {
9438
9576
  return /* @__PURE__ */ jsx100("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 });
9439
9577
  }
@@ -9444,11 +9582,13 @@ function FileRow({
9444
9582
  leading,
9445
9583
  onDownload,
9446
9584
  downloadLabel = "Download",
9585
+ onRemove,
9586
+ removeLabel = "Remove",
9447
9587
  actions,
9448
9588
  className
9449
9589
  }) {
9450
9590
  const lead = leading ?? (fileType ? /* @__PURE__ */ jsx100(FileTypeBadge, { type: fileType }) : null);
9451
- return /* @__PURE__ */ jsxs62(
9591
+ return /* @__PURE__ */ jsxs65(
9452
9592
  "div",
9453
9593
  {
9454
9594
  className: clsx80(
@@ -9457,21 +9597,14 @@ function FileRow({
9457
9597
  ),
9458
9598
  children: [
9459
9599
  lead,
9460
- /* @__PURE__ */ jsxs62("div", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
9600
+ /* @__PURE__ */ jsxs65("div", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
9461
9601
  /* @__PURE__ */ jsx100("span", { className: "truncate text-body-sm font-medium text-default", children: name }),
9462
9602
  detail && /* @__PURE__ */ jsx100("span", { className: "text-body-xs text-default-secondary", children: detail })
9463
9603
  ] }),
9464
- (onDownload || actions) && /* @__PURE__ */ jsxs62("div", { className: "flex shrink-0 items-center gap-3", children: [
9465
- onDownload && /* @__PURE__ */ jsx100(
9466
- "button",
9467
- {
9468
- type: "button",
9469
- onClick: onDownload,
9470
- className: "text-body-xs font-medium text-brand hover:underline",
9471
- children: downloadLabel
9472
- }
9473
- ),
9474
- actions
9604
+ (onDownload || onRemove || actions) && /* @__PURE__ */ jsxs65("div", { className: "flex shrink-0 items-center gap-1", children: [
9605
+ onDownload && /* @__PURE__ */ jsx100(Tooltip, { title: downloadLabel, children: /* @__PURE__ */ jsx100(IconButton, { variant: "subtle", size: "sm", "aria-label": `${downloadLabel} ${name}`, onClick: onDownload, className: "touch-hit", children: /* @__PURE__ */ jsx100(DownloadIcon, { "aria-hidden": true }) }) }),
9606
+ onRemove && /* @__PURE__ */ jsx100(Tooltip, { title: removeLabel, children: /* @__PURE__ */ jsx100(IconButton, { variant: "subtle", size: "sm", "aria-label": `${removeLabel} ${name}`, onClick: onRemove, className: "touch-hit", children: /* @__PURE__ */ jsx100(Trash2Icon, { "aria-hidden": true }) }) }),
9607
+ actions && /* @__PURE__ */ jsx100("div", { className: "ml-2 flex items-center gap-2", children: actions })
9475
9608
  ] })
9476
9609
  ]
9477
9610
  }
@@ -9480,7 +9613,7 @@ function FileRow({
9480
9613
 
9481
9614
  // src/components/lists/scored-row.tsx
9482
9615
  import clsx81 from "clsx";
9483
- import { jsx as jsx101, jsxs as jsxs63 } from "react/jsx-runtime";
9616
+ import { jsx as jsx101, jsxs as jsxs66 } from "react/jsx-runtime";
9484
9617
  var GAP5 = {
9485
9618
  sm: "gap-2",
9486
9619
  md: "gap-3",
@@ -9507,8 +9640,8 @@ function ScoredRow({
9507
9640
  align = "center",
9508
9641
  className
9509
9642
  }) {
9510
- return /* @__PURE__ */ jsxs63("div", { className: clsx81("flex w-full", ALIGN2[align], GAP5[gap], className), children: [
9511
- /* @__PURE__ */ jsxs63(
9643
+ return /* @__PURE__ */ jsxs66("div", { className: clsx81("flex w-full", ALIGN2[align], GAP5[gap], className), children: [
9644
+ /* @__PURE__ */ jsxs66(
9512
9645
  "div",
9513
9646
  {
9514
9647
  className: clsx81(
@@ -9520,7 +9653,7 @@ function ScoredRow({
9520
9653
  style: titleWidth ? { width: titleWidth } : void 0,
9521
9654
  children: [
9522
9655
  leading,
9523
- /* @__PURE__ */ jsxs63("div", { className: "min-w-0 flex-1", children: [
9656
+ /* @__PURE__ */ jsxs66("div", { className: "min-w-0 flex-1", children: [
9524
9657
  /* @__PURE__ */ jsx101("p", { className: "truncate text-body-sm font-medium leading-none text-default", children: title }),
9525
9658
  subtitle && /* @__PURE__ */ jsx101("p", { className: "mt-0.5 truncate text-body-xs text-default-secondary", children: subtitle })
9526
9659
  ] })
@@ -9552,7 +9685,7 @@ import clsx82 from "clsx";
9552
9685
 
9553
9686
  // src/components/feedback/progress-bar.tsx
9554
9687
  import { useId as useId23 } from "react";
9555
- import { jsx as jsx102, jsxs as jsxs64 } from "react/jsx-runtime";
9688
+ import { jsx as jsx102, jsxs as jsxs67 } from "react/jsx-runtime";
9556
9689
  var SIZE20 = {
9557
9690
  xs: "h-1",
9558
9691
  sm: "h-1.5",
@@ -9627,10 +9760,10 @@ function ProgressBar({
9627
9760
  }
9628
9761
  );
9629
9762
  if (!label && !showValue) return track;
9630
- return /* @__PURE__ */ jsxs64("div", { children: [
9631
- /* @__PURE__ */ jsxs64("div", { className: "mb-1.5 flex items-center justify-between gap-2", children: [
9763
+ return /* @__PURE__ */ jsxs67("div", { children: [
9764
+ /* @__PURE__ */ jsxs67("div", { className: "mb-1.5 flex items-center justify-between gap-2", children: [
9632
9765
  label && /* @__PURE__ */ jsx102("span", { id: labelId, className: "text-body-xs text-default-secondary", children: label }),
9633
- showValue && /* @__PURE__ */ jsxs64("span", { className: "ml-auto text-body-xs font-medium tabular-nums text-default", children: [
9766
+ showValue && /* @__PURE__ */ jsxs67("span", { className: "ml-auto text-body-xs font-medium tabular-nums text-default", children: [
9634
9767
  Math.round(clamped),
9635
9768
  "%"
9636
9769
  ] })
@@ -9640,7 +9773,7 @@ function ProgressBar({
9640
9773
  }
9641
9774
 
9642
9775
  // src/components/lists/numbered-list.tsx
9643
- import { jsx as jsx103, jsxs as jsxs65 } from "react/jsx-runtime";
9776
+ import { jsx as jsx103, jsxs as jsxs68 } from "react/jsx-runtime";
9644
9777
  var GAP6 = {
9645
9778
  sm: "gap-2",
9646
9779
  md: "gap-3"
@@ -9656,11 +9789,11 @@ function NumberedList({
9656
9789
  }) {
9657
9790
  return /* @__PURE__ */ jsx103("ol", { className: clsx82("flex list-none flex-col p-0", GAP6[gap], className), children: items.map((item, index) => {
9658
9791
  const tone = !item.tone || item.tone === "auto" ? getScoreTone(item.score, { direction }) : item.tone;
9659
- return /* @__PURE__ */ jsxs65("li", { className: "flex w-full shrink-0 flex-col gap-1.5", children: [
9660
- /* @__PURE__ */ jsxs65("div", { className: "flex w-full items-center justify-between", children: [
9661
- /* @__PURE__ */ jsxs65("div", { className: "flex min-w-0 items-center gap-2.5", children: [
9792
+ return /* @__PURE__ */ jsxs68("li", { className: "flex w-full shrink-0 flex-col gap-1.5", children: [
9793
+ /* @__PURE__ */ jsxs68("div", { className: "flex w-full items-center justify-between", children: [
9794
+ /* @__PURE__ */ jsxs68("div", { className: "flex min-w-0 items-center gap-2.5", children: [
9662
9795
  /* @__PURE__ */ jsx103("span", { className: "w-[14px] shrink-0 text-body-xs font-bold text-default-secondary", children: startAt + index }),
9663
- /* @__PURE__ */ jsxs65("div", { className: "flex min-w-0 flex-col gap-px", children: [
9796
+ /* @__PURE__ */ jsxs68("div", { className: "flex min-w-0 flex-col gap-px", children: [
9664
9797
  /* @__PURE__ */ jsx103("span", { className: "truncate text-body-sm font-medium leading-none text-default", children: item.title }),
9665
9798
  item.subtitle && /* @__PURE__ */ jsx103("span", { className: "text-body-tiny text-default-tertiary", children: item.subtitle })
9666
9799
  ] })
@@ -9683,11 +9816,11 @@ function NumberedList({
9683
9816
 
9684
9817
  // src/components/lists/icon-text-row.tsx
9685
9818
  import clsx83 from "clsx";
9686
- import { jsx as jsx104, jsxs as jsxs66 } from "react/jsx-runtime";
9819
+ import { jsx as jsx104, jsxs as jsxs69 } from "react/jsx-runtime";
9687
9820
  function IconTextRow({ icon, title, detail, className }) {
9688
- return /* @__PURE__ */ jsxs66("div", { className: clsx83("flex items-start gap-3", className), children: [
9821
+ return /* @__PURE__ */ jsxs69("div", { className: clsx83("flex items-start gap-3", className), children: [
9689
9822
  /* @__PURE__ */ jsx104("span", { className: "flex size-9 shrink-0 items-center justify-center rounded-full bg-brand-tertiary text-brand", children: icon }),
9690
- /* @__PURE__ */ jsxs66("div", { className: "min-w-0", children: [
9823
+ /* @__PURE__ */ jsxs69("div", { className: "min-w-0", children: [
9691
9824
  /* @__PURE__ */ jsx104("p", { className: "text-body-sm font-semibold text-default", children: title }),
9692
9825
  /* @__PURE__ */ jsx104("p", { className: "mt-0.5 text-body-xs text-default-secondary", children: detail })
9693
9826
  ] })
@@ -9697,9 +9830,9 @@ function IconTextRow({ icon, title, detail, className }) {
9697
9830
  // src/components/lists/checklist-row.tsx
9698
9831
  import clsx84 from "clsx";
9699
9832
  import { CheckIcon as CheckIcon8 } from "lucide-react";
9700
- import { jsx as jsx105, jsxs as jsxs67 } from "react/jsx-runtime";
9833
+ import { jsx as jsx105, jsxs as jsxs70 } from "react/jsx-runtime";
9701
9834
  function ChecklistRow({ label, state, className }) {
9702
- return /* @__PURE__ */ jsxs67("li", { "data-state": state, className: clsx84("flex items-center gap-3", className), children: [
9835
+ return /* @__PURE__ */ jsxs70("li", { "data-state": state, className: clsx84("flex items-center gap-3", className), children: [
9703
9836
  /* @__PURE__ */ jsx105("span", { className: "flex size-5 shrink-0 items-center justify-center", children: state === "done" ? /* @__PURE__ */ jsx105(CheckIcon8, { className: "size-4 text-positive", strokeWidth: 2.5, "aria-hidden": true }) : /* @__PURE__ */ jsx105(
9704
9837
  "span",
9705
9838
  {
@@ -9724,12 +9857,12 @@ function ChecklistRow({ label, state, className }) {
9724
9857
 
9725
9858
  // src/components/lists/steps-list.tsx
9726
9859
  import clsx85 from "clsx";
9727
- import { jsx as jsx106, jsxs as jsxs68 } from "react/jsx-runtime";
9860
+ import { jsx as jsx106, jsxs as jsxs71 } from "react/jsx-runtime";
9728
9861
  function StepsList({ steps, className }) {
9729
9862
  return /* @__PURE__ */ jsx106("ol", { className: clsx85("flex flex-col gap-1.5", className), children: steps.map((step, i) => (
9730
9863
  // `text-[12px]` was off the type scale; 12 sits midway between Scale 01 (11) and
9731
9864
  // Scale 02 (13), so it rounds up to 13 like every other snap in this pass.
9732
- /* @__PURE__ */ jsxs68("li", { className: "flex items-start gap-2 text-body-xs text-default", children: [
9865
+ /* @__PURE__ */ jsxs71("li", { className: "flex items-start gap-2 text-body-xs text-default", children: [
9733
9866
  /* @__PURE__ */ jsx106("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 }),
9734
9867
  step
9735
9868
  ] }, i)
@@ -9738,7 +9871,7 @@ function StepsList({ steps, className }) {
9738
9871
 
9739
9872
  // src/components/lists/detail-item.tsx
9740
9873
  import clsx86 from "clsx";
9741
- import { jsx as jsx107, jsxs as jsxs69 } from "react/jsx-runtime";
9874
+ import { jsx as jsx107, jsxs as jsxs72 } from "react/jsx-runtime";
9742
9875
  var SPAN = {
9743
9876
  1: "",
9744
9877
  2: "sm:col-span-2",
@@ -9755,15 +9888,15 @@ function DetailItem({
9755
9888
  }) {
9756
9889
  const shown = value === null || value === void 0 || value === "" ? "\u2014" : value;
9757
9890
  if (layout === "inline") {
9758
- return /* @__PURE__ */ jsxs69("div", { className: clsx86("flex gap-3 text-body-xs", SPAN[span], className), children: [
9891
+ return /* @__PURE__ */ jsxs72("div", { className: clsx86("flex gap-3 text-body-xs", SPAN[span], className), children: [
9759
9892
  /* @__PURE__ */ jsx107("span", { className: clsx86("shrink-0 text-default-secondary", labelWidth), children: label }),
9760
- /* @__PURE__ */ jsxs69("span", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
9893
+ /* @__PURE__ */ jsxs72("span", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
9761
9894
  /* @__PURE__ */ jsx107("span", { className: "text-default", children: shown }),
9762
9895
  detail && /* @__PURE__ */ jsx107("span", { className: "text-default-secondary", children: detail })
9763
9896
  ] })
9764
9897
  ] });
9765
9898
  }
9766
- return /* @__PURE__ */ jsxs69("div", { className: clsx86("flex min-w-0 flex-col gap-0.5", SPAN[span], className), children: [
9899
+ return /* @__PURE__ */ jsxs72("div", { className: clsx86("flex min-w-0 flex-col gap-0.5", SPAN[span], className), children: [
9767
9900
  /* @__PURE__ */ jsx107("p", { className: "text-body-tiny font-medium text-default-secondary", children: label }),
9768
9901
  /* @__PURE__ */ jsx107("p", { className: "text-body-sm font-medium text-default", children: shown }),
9769
9902
  detail && /* @__PURE__ */ jsx107("p", { className: "text-body-xs text-default-secondary", children: detail })
@@ -9784,15 +9917,15 @@ function DetailGrid({ children, columns = "auto", className }) {
9784
9917
  import { useEffect as useEffect17, useState as useState23 } from "react";
9785
9918
  import clsx87 from "clsx";
9786
9919
  import { CheckIcon as CheckIcon9, CopyIcon } from "lucide-react";
9787
- import { Fragment as Fragment14, jsx as jsx108, jsxs as jsxs70 } from "react/jsx-runtime";
9920
+ import { jsx as jsx108, jsxs as jsxs73 } from "react/jsx-runtime";
9788
9921
  function DescriptionList({ children, className }) {
9789
9922
  return /* @__PURE__ */ jsx108("dl", { className: cn("flex flex-col gap-3", className), children });
9790
9923
  }
9791
9924
  function DescriptionItem({ label, value, copyValue, className }) {
9792
9925
  const shown = value === null || value === void 0 || value === "" ? "\u2014" : value;
9793
- return /* @__PURE__ */ jsxs70("div", { className: cn("flex flex-wrap items-start gap-x-4 gap-y-0.5 text-body-xs", className), children: [
9926
+ return /* @__PURE__ */ jsxs73("div", { className: cn("flex flex-wrap items-start gap-x-4 gap-y-0.5 text-body-xs", className), children: [
9794
9927
  /* @__PURE__ */ jsx108("dt", { className: "shrink-0 grow-0 basis-28 text-default-secondary", children: label }),
9795
- /* @__PURE__ */ jsxs70("dd", { className: "flex min-w-0 flex-[1_1_10rem] items-start gap-1.5 text-default", children: [
9928
+ /* @__PURE__ */ jsxs73("dd", { className: "flex min-w-0 flex-[1_1_10rem] items-start gap-1.5 text-default", children: [
9796
9929
  /* @__PURE__ */ jsx108("span", { className: "min-w-0 [overflow-wrap:anywhere]", children: shown }),
9797
9930
  copyValue && /* @__PURE__ */ jsx108(CopyButton, { value: copyValue, label: `Copy ${label.toLowerCase()}` })
9798
9931
  ] })
@@ -9805,32 +9938,35 @@ function CopyButton({ value, label, copiedLabel = "Copied", className }) {
9805
9938
  const timer = window.setTimeout(() => setCopied(false), 2e3);
9806
9939
  return () => window.clearTimeout(timer);
9807
9940
  }, [copied]);
9808
- return /* @__PURE__ */ jsxs70(Fragment14, { children: [
9809
- /* @__PURE__ */ jsx108(
9810
- IconButton,
9811
- {
9812
- variant: "subtle",
9813
- size: "sm",
9814
- "aria-label": label,
9815
- "data-state": copied ? "copied" : void 0,
9816
- className: cn("-my-0.5 touch-hit", className),
9817
- onClick: () => {
9818
- void navigator.clipboard?.writeText(value).then(
9819
- () => setCopied(true),
9820
- () => void 0
9821
- );
9822
- },
9823
- children: copied ? /* @__PURE__ */ jsx108(CheckIcon9, { "aria-hidden": true }) : /* @__PURE__ */ jsx108(CopyIcon, { "aria-hidden": true })
9824
- }
9825
- ),
9826
- /* @__PURE__ */ jsx108("span", { role: "status", className: "sr-only", children: copied ? copiedLabel : "" })
9827
- ] });
9941
+ return (
9942
+ // relative: keeps the sr-only status (absolutely positioned) inside a scrolling container.
9943
+ /* @__PURE__ */ jsxs73("span", { className: "relative inline-flex", children: [
9944
+ /* @__PURE__ */ jsx108(
9945
+ IconButton,
9946
+ {
9947
+ variant: "subtle",
9948
+ size: "sm",
9949
+ "aria-label": label,
9950
+ "data-state": copied ? "copied" : void 0,
9951
+ className: cn("-my-0.5 touch-hit", className),
9952
+ onClick: () => {
9953
+ void navigator.clipboard?.writeText(value).then(
9954
+ () => setCopied(true),
9955
+ () => void 0
9956
+ );
9957
+ },
9958
+ children: copied ? /* @__PURE__ */ jsx108(CheckIcon9, { "aria-hidden": true }) : /* @__PURE__ */ jsx108(CopyIcon, { "aria-hidden": true })
9959
+ }
9960
+ ),
9961
+ /* @__PURE__ */ jsx108("span", { role: "status", className: "sr-only", children: copied ? copiedLabel : "" })
9962
+ ] })
9963
+ );
9828
9964
  }
9829
9965
  function EmailText({ email, className }) {
9830
9966
  const at = email.lastIndexOf("@");
9831
9967
  const local = at > 0 ? email.slice(0, at) : email;
9832
9968
  const domain = at > 0 ? email.slice(at) : "";
9833
- return /* @__PURE__ */ jsxs70("span", { title: email, className: clsx87("flex min-w-0 max-w-full", className), children: [
9969
+ return /* @__PURE__ */ jsxs73("span", { title: email, className: clsx87("flex min-w-0 max-w-full", className), children: [
9834
9970
  /* @__PURE__ */ jsx108("span", { className: "min-w-0 truncate", children: local }),
9835
9971
  domain && /* @__PURE__ */ jsx108("span", { className: "min-w-0 truncate [flex-shrink:0.001]", children: domain })
9836
9972
  ] });
@@ -9839,7 +9975,7 @@ function EmailText({ email, className }) {
9839
9975
  // src/components/lists/checked-group-list.tsx
9840
9976
  import clsx88 from "clsx";
9841
9977
  import { CheckIcon as CheckIcon10 } from "lucide-react";
9842
- import { jsx as jsx109, jsxs as jsxs71 } from "react/jsx-runtime";
9978
+ import { jsx as jsx109, jsxs as jsxs74 } from "react/jsx-runtime";
9843
9979
  var COLUMNS4 = {
9844
9980
  1: "columns-1",
9845
9981
  2: "columns-2",
@@ -9856,9 +9992,9 @@ function CheckedGroupList({
9856
9992
  return /* @__PURE__ */ jsx109("p", { className: clsx88("text-body-xs text-default-secondary", className), children: emptyLabel });
9857
9993
  }
9858
9994
  const glyph = icon === void 0 ? /* @__PURE__ */ jsx109(CheckIcon10, { className: "size-3.5", strokeWidth: 2.5, "aria-hidden": true }) : icon;
9859
- return /* @__PURE__ */ jsx109("div", { className: clsx88(COLUMNS4[columns], "gap-x-6", className), children: groups.map((group) => /* @__PURE__ */ jsxs71("div", { className: "mb-5 break-inside-avoid last:mb-0", children: [
9995
+ return /* @__PURE__ */ jsx109("div", { className: clsx88(COLUMNS4[columns], "gap-x-6", className), children: groups.map((group) => /* @__PURE__ */ jsxs74("div", { className: "mb-5 break-inside-avoid last:mb-0", children: [
9860
9996
  /* @__PURE__ */ jsx109("p", { className: "mb-2 text-body-tiny font-semibold uppercase tracking-wide text-default-secondary", children: group.label }),
9861
- /* @__PURE__ */ jsx109("ul", { className: "space-y-1.5", children: group.items.map((item) => /* @__PURE__ */ jsxs71("li", { className: "flex items-center gap-2 text-body-xs text-default", children: [
9997
+ /* @__PURE__ */ jsx109("ul", { className: "space-y-1.5", children: group.items.map((item) => /* @__PURE__ */ jsxs74("li", { className: "flex items-center gap-2 text-body-xs text-default", children: [
9862
9998
  glyph && /* @__PURE__ */ jsx109("span", { className: "shrink-0", children: glyph }),
9863
9999
  item
9864
10000
  ] }, item)) })
@@ -9869,7 +10005,7 @@ function CheckedGroupList({
9869
10005
  import { useMemo as useMemo12, useRef as useRef21, useState as useState24 } from "react";
9870
10006
  import clsx89 from "clsx";
9871
10007
  import { ChevronRightIcon as ChevronRightIcon7 } from "lucide-react";
9872
- import { jsx as jsx110, jsxs as jsxs72 } from "react/jsx-runtime";
10008
+ import { jsx as jsx110, jsxs as jsxs75 } from "react/jsx-runtime";
9873
10009
  var ROW = {
9874
10010
  sm: "min-h-8 py-1 text-body-xs",
9875
10011
  md: "min-h-10 py-2 text-body-sm"
@@ -9973,7 +10109,7 @@ function TreeView({
9973
10109
  if (!node) return null;
9974
10110
  const children = getChildren?.(item) ?? [];
9975
10111
  const isSelected = selected === id;
9976
- return /* @__PURE__ */ jsxs72(
10112
+ return /* @__PURE__ */ jsxs75(
9977
10113
  "li",
9978
10114
  {
9979
10115
  role: "treeitem",
@@ -9995,7 +10131,7 @@ function TreeView({
9995
10131
  },
9996
10132
  className: "outline-none [&:focus-visible>div]:ring-2 [&:focus-visible>div]:ring-inset [&:focus-visible>div]:ring-brand",
9997
10133
  children: [
9998
- /* @__PURE__ */ jsxs72(
10134
+ /* @__PURE__ */ jsxs75(
9999
10135
  "div",
10000
10136
  {
10001
10137
  onClick: () => {
@@ -10050,7 +10186,7 @@ function TreeView({
10050
10186
  import { forwardRef as forwardRef40 } from "react";
10051
10187
  import clsx90 from "clsx";
10052
10188
  import { ChevronDownIcon as ChevronDownIcon4, ChevronsUpDownIcon, ChevronUpIcon } from "lucide-react";
10053
- import { jsx as jsx111, jsxs as jsxs73 } from "react/jsx-runtime";
10189
+ import { jsx as jsx111, jsxs as jsxs76 } from "react/jsx-runtime";
10054
10190
  var Table = forwardRef40(function Table2({ label, density = "default", fixed = false, maxHeight, className, children, ...rest }, ref) {
10055
10191
  return (
10056
10192
  // The scroll container is separate from the table so the header stays inside the
@@ -10162,7 +10298,7 @@ var TableHead = forwardRef40(function TableHead2({ sort, onSort, align = "left",
10162
10298
  className
10163
10299
  ),
10164
10300
  ...rest,
10165
- children: sortable ? /* @__PURE__ */ jsxs73(
10301
+ children: sortable ? /* @__PURE__ */ jsxs76(
10166
10302
  "button",
10167
10303
  {
10168
10304
  type: "button",
@@ -10244,7 +10380,7 @@ function useElementWidth() {
10244
10380
 
10245
10381
  // src/components/feedback/empty-state.tsx
10246
10382
  import clsx91 from "clsx";
10247
- import { jsx as jsx112, jsxs as jsxs74 } from "react/jsx-runtime";
10383
+ import { jsx as jsx112, jsxs as jsxs77 } from "react/jsx-runtime";
10248
10384
  var SIZES = {
10249
10385
  sm: "py-8",
10250
10386
  md: "py-12",
@@ -10263,7 +10399,7 @@ function EmptyState({
10263
10399
  action,
10264
10400
  className
10265
10401
  }) {
10266
- return /* @__PURE__ */ jsxs74(
10402
+ return /* @__PURE__ */ jsxs77(
10267
10403
  "div",
10268
10404
  {
10269
10405
  "data-variant": variant,
@@ -10350,7 +10486,7 @@ function cardSlots(columns) {
10350
10486
 
10351
10487
  // src/components/lists/data-table-parts.tsx
10352
10488
  import { ChevronDownIcon as ChevronDownIcon5, ChevronUpIcon as ChevronUpIcon2, ChevronsUpDownIcon as ChevronsUpDownIcon2, Columns3Icon } from "lucide-react";
10353
- import { jsx as jsx114, jsxs as jsxs75 } from "react/jsx-runtime";
10489
+ import { jsx as jsx114, jsxs as jsxs78 } from "react/jsx-runtime";
10354
10490
  var SELECT_COLUMN_ID = "select";
10355
10491
  function columnLabel(column) {
10356
10492
  const meta = column.columnDef.meta;
@@ -10370,7 +10506,7 @@ function DataTableColumnHeader({
10370
10506
  }
10371
10507
  const sorted = column.getIsSorted();
10372
10508
  const Icon = sorted === "asc" ? ChevronUpIcon2 : sorted === "desc" ? ChevronDownIcon5 : ChevronsUpDownIcon2;
10373
- return /* @__PURE__ */ jsxs75(
10509
+ return /* @__PURE__ */ jsxs78(
10374
10510
  "button",
10375
10511
  {
10376
10512
  type: "button",
@@ -10428,9 +10564,9 @@ function createSelectColumn(options = {}) {
10428
10564
  function DataTableViewOptions({ table, label = "Columns" }) {
10429
10565
  const columns = table.getAllLeafColumns().filter((column) => column.getCanHide());
10430
10566
  if (columns.length === 0) return null;
10431
- return /* @__PURE__ */ jsxs75(DropdownMenu, { children: [
10567
+ return /* @__PURE__ */ jsxs78(DropdownMenu, { children: [
10432
10568
  /* @__PURE__ */ jsx114(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsx114(Button, { variant: "neutral", size: "md", leadingIcon: /* @__PURE__ */ jsx114(Columns3Icon, { "aria-hidden": true }), children: label }) }),
10433
- /* @__PURE__ */ jsxs75(DropdownMenuContent, { align: "end", children: [
10569
+ /* @__PURE__ */ jsxs78(DropdownMenuContent, { align: "end", children: [
10434
10570
  /* @__PURE__ */ jsx114(DropdownMenuLabel, { children: "Show columns" }),
10435
10571
  columns.map((column) => /* @__PURE__ */ jsx114(
10436
10572
  DropdownMenuCheckboxItem,
@@ -10467,9 +10603,9 @@ function DataTablePagination({
10467
10603
 
10468
10604
  // src/components/lists/data-table-cells.tsx
10469
10605
  import clsx93 from "clsx";
10470
- import { jsx as jsx115, jsxs as jsxs76 } from "react/jsx-runtime";
10606
+ import { jsx as jsx115, jsxs as jsxs79 } from "react/jsx-runtime";
10471
10607
  function TableCellLeadText({ primary, secondary, size: size2 = "md", className }) {
10472
- return /* @__PURE__ */ jsxs76("div", { className: clsx93("flex flex-col gap-0.5", className), children: [
10608
+ return /* @__PURE__ */ jsxs79("div", { className: clsx93("flex flex-col gap-0.5", className), children: [
10473
10609
  /* @__PURE__ */ jsx115(
10474
10610
  "span",
10475
10611
  {
@@ -10532,7 +10668,7 @@ function TableCellProgress({
10532
10668
  className
10533
10669
  }) {
10534
10670
  const clamped = Math.min(100, Math.max(0, percent));
10535
- return /* @__PURE__ */ jsxs76("div", { className: clsx93("flex w-full min-w-0 items-center gap-2", className), children: [
10671
+ return /* @__PURE__ */ jsxs79("div", { className: clsx93("flex w-full min-w-0 items-center gap-2", className), children: [
10536
10672
  /* @__PURE__ */ jsx115(
10537
10673
  ProgressBar,
10538
10674
  {
@@ -10543,7 +10679,7 @@ function TableCellProgress({
10543
10679
  "aria-label": `${clamped}%`
10544
10680
  }
10545
10681
  ),
10546
- /* @__PURE__ */ jsxs76("span", { className: "shrink-0 text-body-tiny leading-none tabular-nums text-default-secondary", children: [
10682
+ /* @__PURE__ */ jsxs79("span", { className: "shrink-0 text-body-tiny leading-none tabular-nums text-default-secondary", children: [
10547
10683
  percent,
10548
10684
  "%"
10549
10685
  ] })
@@ -10551,7 +10687,7 @@ function TableCellProgress({
10551
10687
  }
10552
10688
 
10553
10689
  // src/components/lists/data-table.tsx
10554
- import { jsx as jsx116, jsxs as jsxs77 } from "react/jsx-runtime";
10690
+ import { jsx as jsx116, jsxs as jsxs80 } from "react/jsx-runtime";
10555
10691
  var DENSITY2 = {
10556
10692
  default: {
10557
10693
  headerCell: "px-4 py-3",
@@ -10815,8 +10951,8 @@ function DataTable({
10815
10951
  getRowLabel,
10816
10952
  maxHeight
10817
10953
  };
10818
- return /* @__PURE__ */ jsxs77("div", { "data-slot": "data-table", className: cn("flex flex-col gap-3", className), children: [
10819
- showToolbar && /* @__PURE__ */ jsxs77("div", { className: "flex flex-wrap items-center gap-2", children: [
10954
+ return /* @__PURE__ */ jsxs80("div", { "data-slot": "data-table", className: cn("relative flex flex-col gap-3", className), children: [
10955
+ showToolbar && /* @__PURE__ */ jsxs80("div", { className: "flex flex-wrap items-center gap-2", children: [
10820
10956
  search && /* @__PURE__ */ jsx116(
10821
10957
  SearchInput,
10822
10958
  {
@@ -10833,7 +10969,7 @@ function DataTable({
10833
10969
  showColumnMenu && /* @__PURE__ */ jsx116("div", { className: "ml-auto", children: /* @__PURE__ */ jsx116(DataTableViewOptions, { table }) })
10834
10970
  ] }),
10835
10971
  /* @__PURE__ */ jsx116("p", { role: "status", "aria-live": "polite", className: "sr-only", children: filtering && !loading ? `${resultCount} ${resultCount === 1 ? "result" : "results"}` : "" }),
10836
- /* @__PURE__ */ jsxs77("div", { ref: wrapRef, className: "overflow-hidden rounded-xl border border-default bg-default", children: [
10972
+ /* @__PURE__ */ jsxs80("div", { ref: wrapRef, className: "overflow-hidden rounded-xl border border-default bg-default", children: [
10837
10973
  mode === "cards" ? maxHeight ? /* @__PURE__ */ jsx116(CardScroll, { label, maxHeight, children: /* @__PURE__ */ jsx116(CardList, { ...view }) }) : /* @__PURE__ */ jsx116(CardList, { ...view }) : /* @__PURE__ */ jsx116(TableView, { ...view }),
10838
10974
  showPager && /* @__PURE__ */ jsx116("div", { className: "border-t border-default px-4 py-3", children: /* @__PURE__ */ jsx116(DataTablePagination, { table, pageSizeOptions }) }),
10839
10975
  footer && /* @__PURE__ */ jsx116("div", { className: "border-t border-default px-4 py-3", children: footer })
@@ -10890,7 +11026,7 @@ function TableView({
10890
11026
  const direction = scroll.overflowing && maxHeight && scroll.overflowingY ? "scrolls" : scroll.overflowing ? "scrolls horizontally" : "scrolls vertically";
10891
11027
  const regionLabel = `${label ?? "Table"} (${direction})`;
10892
11028
  const pinnedHeader = maxHeight ? clsx94("sticky top-0 z-sticky bg-default-secondary", !scroll.atTop && "shadow-[inset_0_-1px_0_var(--color-border-default-default)]") : void 0;
10893
- return /* @__PURE__ */ jsxs77("div", { className: "relative", children: [
11029
+ return /* @__PURE__ */ jsxs80("div", { className: "relative", children: [
10894
11030
  /* @__PURE__ */ jsx116(
10895
11031
  "div",
10896
11032
  {
@@ -10903,7 +11039,7 @@ function TableView({
10903
11039
  ),
10904
11040
  style: maxHeight ? { maxHeight } : void 0,
10905
11041
  ...scrolls ? { role: "region", tabIndex: 0, "aria-label": regionLabel } : {},
10906
- children: /* @__PURE__ */ jsxs77(
11042
+ children: /* @__PURE__ */ jsxs80(
10907
11043
  "table",
10908
11044
  {
10909
11045
  className: "w-full table-fixed border-collapse text-left",
@@ -11088,7 +11224,7 @@ function CardList({
11088
11224
  }) {
11089
11225
  if (placeholder) return /* @__PURE__ */ jsx116("div", { className: "px-4", children: placeholder });
11090
11226
  if (loading) {
11091
- return /* @__PURE__ */ jsx116("ul", { "aria-label": label, "aria-busy": "true", className: "divide-y divide-default", children: Array.from({ length: loadingRows }, (_, index) => /* @__PURE__ */ jsxs77("li", { className: "flex flex-col gap-3 p-4", children: [
11227
+ return /* @__PURE__ */ jsx116("ul", { "aria-label": label, "aria-busy": "true", className: "divide-y divide-default", children: Array.from({ length: loadingRows }, (_, index) => /* @__PURE__ */ jsxs80("li", { className: "flex flex-col gap-3 p-4", children: [
11092
11228
  /* @__PURE__ */ jsx116(Skeleton, { className: "w-2/3" }),
11093
11229
  /* @__PURE__ */ jsx116(Skeleton, { className: "w-1/2" }),
11094
11230
  /* @__PURE__ */ jsx116(Skeleton, { className: "w-5/6" })
@@ -11121,7 +11257,7 @@ function CardList({
11121
11257
  const href = getRowHref?.(row.original);
11122
11258
  const titleContent = render(slots.title?.id);
11123
11259
  const tone = getRowTone?.(row.original);
11124
- return /* @__PURE__ */ jsxs77(
11260
+ return /* @__PURE__ */ jsxs80(
11125
11261
  "li",
11126
11262
  {
11127
11263
  "data-state": row.getIsSelected() ? "selected" : void 0,
@@ -11136,7 +11272,7 @@ function CardList({
11136
11272
  "data-[state=selected]:bg-brand-tertiary"
11137
11273
  ),
11138
11274
  children: [
11139
- /* @__PURE__ */ jsxs77("div", { className: "flex items-start gap-3", children: [
11275
+ /* @__PURE__ */ jsxs80("div", { className: "flex items-start gap-3", children: [
11140
11276
  selectable && /* @__PURE__ */ jsx116("div", { className: "relative z-raised shrink-0 pt-0.5", children: render(SELECT_COLUMN_ID) }),
11141
11277
  /* @__PURE__ */ jsx116("div", { className: "min-w-0 flex-1", children: href ? renderRowLink({ href, [ROW_LINK_ATTR]: "", className: trigger, children: titleContent }) : onRowClick ? /* @__PURE__ */ jsx116(
11142
11278
  "button",
@@ -11153,7 +11289,7 @@ function CardList({
11153
11289
  /* @__PURE__ */ jsx116("div", { className: "flex max-w-[45%] shrink-0 justify-end [&_.whitespace-nowrap]:whitespace-normal", children: render(slots.status.id) }),
11154
11290
  slots.actions && /* @__PURE__ */ jsx116("div", { className: "relative z-raised shrink-0", children: /* @__PURE__ */ jsx116(CellInteractionGuard, { children: render(slots.actions.id) }) })
11155
11291
  ] }),
11156
- slots.fields.length > 0 && /* @__PURE__ */ jsx116("dl", { className: "grid grid-cols-[repeat(auto-fit,minmax(min(100%,8.5rem),1fr))] gap-x-4 gap-y-2.5", children: slots.fields.map(({ id, column }) => /* @__PURE__ */ jsxs77("div", { className: clsx94("min-w-0", column.columnDef.meta?.interactive && "relative z-raised"), children: [
11292
+ slots.fields.length > 0 && /* @__PURE__ */ jsx116("dl", { className: "grid grid-cols-[repeat(auto-fit,minmax(min(100%,8.5rem),1fr))] gap-x-4 gap-y-2.5", children: slots.fields.map(({ id, column }) => /* @__PURE__ */ jsxs80("div", { className: clsx94("min-w-0", column.columnDef.meta?.interactive && "relative z-raised"), children: [
11157
11293
  /* @__PURE__ */ jsx116("dt", { className: "text-body-tiny text-default-secondary", children: columnLabel(column) }),
11158
11294
  /* @__PURE__ */ jsx116("dd", { className: "mt-0.5 min-w-0 text-body-xs text-default", children: column.columnDef.meta?.interactive ? /* @__PURE__ */ jsx116(CellInteractionGuard, { children: render(id) }) : render(id) })
11159
11295
  ] }, id)) })
@@ -11173,7 +11309,7 @@ import { createColumnHelper } from "@tanstack/react-table";
11173
11309
  // src/components/feedback/inline-alert.tsx
11174
11310
  import clsx95 from "clsx";
11175
11311
  import { CircleCheckBigIcon as CircleCheckBigIcon2, InfoIcon as InfoIcon2, TriangleAlertIcon as TriangleAlertIcon2 } from "lucide-react";
11176
- import { jsx as jsx117, jsxs as jsxs78 } from "react/jsx-runtime";
11312
+ import { jsx as jsx117, jsxs as jsxs81 } from "react/jsx-runtime";
11177
11313
  var toneStyles3 = {
11178
11314
  info: "border-brand-tertiary bg-brand-tertiary text-brand",
11179
11315
  warning: "border-warning-tertiary bg-warning-tertiary text-warning",
@@ -11188,7 +11324,7 @@ var toneIcons = {
11188
11324
  };
11189
11325
  function InlineAlert({ tone, children, icon, className }) {
11190
11326
  const glyph = icon === void 0 ? toneIcons[tone] : icon;
11191
- return /* @__PURE__ */ jsxs78(
11327
+ return /* @__PURE__ */ jsxs81(
11192
11328
  "div",
11193
11329
  {
11194
11330
  "data-tone": tone,
@@ -11244,7 +11380,7 @@ var ErrorBoundary = class extends Component {
11244
11380
  import { forwardRef as forwardRef42, useId as useId24 } from "react";
11245
11381
  import clsx96 from "clsx";
11246
11382
  import { CircleCheckBigIcon as CircleCheckBigIcon3, InfoIcon as InfoIcon3, TriangleAlertIcon as TriangleAlertIcon3, XIcon as XIcon7 } from "lucide-react";
11247
- import { jsx as jsx119, jsxs as jsxs79 } from "react/jsx-runtime";
11383
+ import { jsx as jsx119, jsxs as jsxs82 } from "react/jsx-runtime";
11248
11384
  var TONE_STYLES3 = {
11249
11385
  info: "border-brand-tertiary bg-brand-tertiary text-default",
11250
11386
  positive: "border-positive-tertiary bg-positive-tertiary text-default",
@@ -11276,7 +11412,7 @@ var Banner = forwardRef42(function Banner2({
11276
11412
  }, ref) {
11277
11413
  const titleId = useId24();
11278
11414
  const glyph = icon === void 0 ? TONE_ICON2[tone] : icon;
11279
- return /* @__PURE__ */ jsxs79(
11415
+ return /* @__PURE__ */ jsxs82(
11280
11416
  "div",
11281
11417
  {
11282
11418
  "data-tone": tone,
@@ -11293,7 +11429,7 @@ var Banner = forwardRef42(function Banner2({
11293
11429
  ...rest,
11294
11430
  children: [
11295
11431
  glyph && /* @__PURE__ */ jsx119("span", { "aria-hidden": true, className: clsx96("mt-px shrink-0", TONE_ICON_COLOR[tone]), children: glyph }),
11296
- /* @__PURE__ */ jsxs79("div", { className: "min-w-0 flex-1", children: [
11432
+ /* @__PURE__ */ jsxs82("div", { className: "min-w-0 flex-1", children: [
11297
11433
  /* @__PURE__ */ jsx119("p", { id: titleId, className: "text-body-sm font-semibold text-default", children: title }),
11298
11434
  children && /* @__PURE__ */ jsx119("div", { className: "mt-1 text-body-xs text-default-secondary", children }),
11299
11435
  action && /* @__PURE__ */ jsx119("div", { className: "mt-3 flex items-center gap-2", children: action })
@@ -11326,7 +11462,7 @@ import {
11326
11462
  } from "react";
11327
11463
  import clsx97 from "clsx";
11328
11464
  import { CircleCheckBigIcon as CircleCheckBigIcon4, InfoIcon as InfoIcon4, TriangleAlertIcon as TriangleAlertIcon4, XIcon as XIcon8 } from "lucide-react";
11329
- import { jsx as jsx120, jsxs as jsxs80 } from "react/jsx-runtime";
11465
+ import { jsx as jsx120, jsxs as jsxs83 } from "react/jsx-runtime";
11330
11466
  var ToastContext = createContext18(null);
11331
11467
  function useToast() {
11332
11468
  const context = useContext18(ToastContext);
@@ -11399,7 +11535,7 @@ function Toaster({
11399
11535
  };
11400
11536
  }, []);
11401
11537
  const context = useMemo14(() => ({ toast, dismiss, dismissAll }), [toast, dismiss, dismissAll]);
11402
- return /* @__PURE__ */ jsxs80(ToastContext.Provider, { value: context, children: [
11538
+ return /* @__PURE__ */ jsxs83(ToastContext.Provider, { value: context, children: [
11403
11539
  children,
11404
11540
  /* @__PURE__ */ jsx120(Portal, { children: /* @__PURE__ */ jsx120(
11405
11541
  "div",
@@ -11418,7 +11554,7 @@ function Toaster({
11418
11554
  }
11419
11555
  function ToastItem({ toast, onDismiss }) {
11420
11556
  const tone = toast.tone ?? "info";
11421
- return /* @__PURE__ */ jsxs80(
11557
+ return /* @__PURE__ */ jsxs83(
11422
11558
  "div",
11423
11559
  {
11424
11560
  role: tone === "danger" ? "alert" : "status",
@@ -11428,7 +11564,7 @@ function ToastItem({ toast, onDismiss }) {
11428
11564
  ),
11429
11565
  children: [
11430
11566
  /* @__PURE__ */ jsx120("span", { "aria-hidden": true, className: clsx97("mt-px shrink-0", TONE_ICON_COLOR2[tone]), children: TONE_ICON3[tone] }),
11431
- /* @__PURE__ */ jsxs80("div", { className: "min-w-0 flex-1", children: [
11567
+ /* @__PURE__ */ jsxs83("div", { className: "min-w-0 flex-1", children: [
11432
11568
  /* @__PURE__ */ jsx120("p", { className: "text-body-sm font-semibold text-default", children: toast.title }),
11433
11569
  toast.description && /* @__PURE__ */ jsx120("p", { className: "mt-0.5 text-body-xs text-default-secondary", children: toast.description }),
11434
11570
  toast.action && /* @__PURE__ */ jsx120("div", { className: "mt-2 flex items-center gap-2", children: toast.action })
@@ -11478,12 +11614,12 @@ var PasswordInput = forwardRef43(function PasswordInput2(props, ref) {
11478
11614
  // src/components/ai/ai-chat-bar.tsx
11479
11615
  import clsx98 from "clsx";
11480
11616
  import { ArrowRightIcon as ArrowRightIcon2, SearchIcon as SearchIcon3 } from "lucide-react";
11481
- import { jsx as jsx122, jsxs as jsxs81 } from "react/jsx-runtime";
11617
+ import { jsx as jsx122, jsxs as jsxs84 } from "react/jsx-runtime";
11482
11618
  function AIChatBar({
11483
11619
  placeholder = "Ask Intelligence about any entity, supplier, or risk\u2026",
11484
11620
  className
11485
11621
  }) {
11486
- return /* @__PURE__ */ jsxs81(
11622
+ return /* @__PURE__ */ jsxs84(
11487
11623
  "div",
11488
11624
  {
11489
11625
  className: clsx98(
@@ -11493,7 +11629,7 @@ function AIChatBar({
11493
11629
  children: [
11494
11630
  /* @__PURE__ */ jsx122("span", { "aria-hidden": true, className: "shrink-0 text-icon-default-secondary", children: /* @__PURE__ */ jsx122(SearchIcon3, { className: "size-4" }) }),
11495
11631
  /* @__PURE__ */ jsx122("p", { className: "flex-1 text-body-sm text-default-tertiary truncate", children: placeholder }),
11496
- /* @__PURE__ */ jsxs81(
11632
+ /* @__PURE__ */ jsxs84(
11497
11633
  "button",
11498
11634
  {
11499
11635
  type: "button",
@@ -11512,9 +11648,9 @@ function AIChatBar({
11512
11648
  // src/components/ai/ai-suggestion-chip.tsx
11513
11649
  import clsx99 from "clsx";
11514
11650
  import { ArrowRightIcon as ArrowRightIcon3, CpuIcon } from "lucide-react";
11515
- import { jsx as jsx123, jsxs as jsxs82 } from "react/jsx-runtime";
11651
+ import { jsx as jsx123, jsxs as jsxs85 } from "react/jsx-runtime";
11516
11652
  function AISuggestionChip({ prompt, onClick, className }) {
11517
- return /* @__PURE__ */ jsxs82(
11653
+ return /* @__PURE__ */ jsxs85(
11518
11654
  "button",
11519
11655
  {
11520
11656
  type: "button",
@@ -11555,7 +11691,7 @@ function QuickActionsBar({ actions, active, onSelect, className }) {
11555
11691
  // src/components/ai/chat.tsx
11556
11692
  import clsx101 from "clsx";
11557
11693
  import { CpuIcon as CpuIcon2 } from "lucide-react";
11558
- import { jsx as jsx125, jsxs as jsxs83 } from "react/jsx-runtime";
11694
+ import { jsx as jsx125, jsxs as jsxs86 } from "react/jsx-runtime";
11559
11695
  function AiAvatar({ className, icon }) {
11560
11696
  return /* @__PURE__ */ jsx125(
11561
11697
  "span",
@@ -11567,9 +11703,9 @@ function AiAvatar({ className, icon }) {
11567
11703
  );
11568
11704
  }
11569
11705
  function TypingIndicator({ label = "Assistant is typing", className }) {
11570
- return /* @__PURE__ */ jsxs83("div", { role: "status", "aria-live": "polite", className: cn("flex items-center gap-3", className), children: [
11706
+ return /* @__PURE__ */ jsxs86("div", { role: "status", "aria-live": "polite", className: cn("flex items-center gap-3", className), children: [
11571
11707
  /* @__PURE__ */ jsx125(AiAvatar, {}),
11572
- /* @__PURE__ */ jsxs83("div", { className: "flex items-center gap-2 rounded-2xl rounded-tl-sm border border-default bg-default-secondary px-5 py-3", children: [
11708
+ /* @__PURE__ */ jsxs86("div", { className: "flex items-center gap-2 rounded-2xl rounded-tl-sm border border-default bg-default-secondary px-5 py-3", children: [
11573
11709
  /* @__PURE__ */ jsx125("span", { className: "text-body-xs text-default-secondary", children: label }),
11574
11710
  /* @__PURE__ */ jsx125("span", { "aria-hidden": true, className: "flex gap-1", children: [0, 1, 2].map((index) => /* @__PURE__ */ jsx125(
11575
11711
  "span",
@@ -11605,9 +11741,9 @@ function ChatBubble({ sender, children, failed = false, className }) {
11605
11741
  }
11606
11742
 
11607
11743
  // src/components/decorative/aurora-backdrop.tsx
11608
- import { jsx as jsx126, jsxs as jsxs84 } from "react/jsx-runtime";
11744
+ import { jsx as jsx126, jsxs as jsxs87 } from "react/jsx-runtime";
11609
11745
  function AuroraBackdrop() {
11610
- return /* @__PURE__ */ jsxs84("div", { className: "pointer-events-none absolute inset-0", "aria-hidden": true, children: [
11746
+ return /* @__PURE__ */ jsxs87("div", { className: "pointer-events-none absolute inset-0", "aria-hidden": true, children: [
11611
11747
  /* @__PURE__ */ jsx126("div", { className: "absolute -left-24 -top-28", style: { width: 380, height: 380, background: "radial-gradient(ellipse, rgba(249,133,133,0.45) 0%, transparent 70%)" } }),
11612
11748
  /* @__PURE__ */ jsx126("div", { className: "absolute -top-24 right-[-4%]", style: { width: 320, height: 320, background: "radial-gradient(ellipse, rgba(254,160,160,0.4) 0%, transparent 70%)" } }),
11613
11749
  /* @__PURE__ */ jsx126("div", { className: "absolute bottom-[-10%] right-[14%]", style: { width: 420, height: 420, background: "radial-gradient(ellipse, rgba(196,181,253,0.3) 0%, transparent 70%)" } }),
@@ -11677,6 +11813,7 @@ export {
11677
11813
  ContextMenuContent,
11678
11814
  ContextMenuGroup,
11679
11815
  ContextMenuItem,
11816
+ ContextMenuItems,
11680
11817
  ContextMenuLabel,
11681
11818
  ContextMenuRadioGroup,
11682
11819
  ContextMenuRadioItem,
@@ -11714,6 +11851,7 @@ export {
11714
11851
  DropdownMenuContent,
11715
11852
  DropdownMenuGroup,
11716
11853
  DropdownMenuItem,
11854
+ DropdownMenuItems,
11717
11855
  DropdownMenuLabel,
11718
11856
  DropdownMenuRadioGroup,
11719
11857
  DropdownMenuRadioItem,
@@ -11772,6 +11910,7 @@ export {
11772
11910
  MenubarContent,
11773
11911
  MenubarGroup,
11774
11912
  MenubarItem,
11913
+ MenubarItems,
11775
11914
  MenubarLabel,
11776
11915
  MenubarMenu,
11777
11916
  MenubarRadioGroup,