@platned/ui 0.9.5 → 0.9.7

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
@@ -74,6 +74,7 @@ import {
74
74
  deferEscapeToInnerPopup,
75
75
  devWarn,
76
76
  focusMenuEdge,
77
+ overlayItemTone,
77
78
  paginationRange,
78
79
  stopToAncestors,
79
80
  useControlSize,
@@ -85,7 +86,7 @@ import {
85
86
  useOverlayDismiss,
86
87
  usePortalContainer,
87
88
  useRovingFocus
88
- } from "./chunk-OGQIGGVB.js";
89
+ } from "./chunk-O2Y4XUXQ.js";
89
90
 
90
91
  // src/components/forms/button-group.tsx
91
92
  import clsx from "clsx";
@@ -6401,7 +6402,9 @@ var TabsContent = forwardRef25(function TabsContent2({ value, keepMounted = fals
6401
6402
  });
6402
6403
 
6403
6404
  // src/components/chrome/nav-item.tsx
6405
+ import { forwardRef as forwardRef26 } from "react";
6404
6406
  import clsx44 from "clsx";
6407
+ import { ChevronDownIcon as ChevronDownIcon4 } from "lucide-react";
6405
6408
  import { Fragment as Fragment8, jsx as jsx64, jsxs as jsxs45 } from "react/jsx-runtime";
6406
6409
  var SIZE8 = {
6407
6410
  sm: { box: "h-9 gap-2 rounded-lg px-3 py-1.5", label: "text-body-xs", square: "w-9" },
@@ -6437,7 +6440,32 @@ var VARIANT2 = {
6437
6440
  inactive: clsx44("text-default-secondary", STATE.hover)
6438
6441
  }
6439
6442
  };
6440
- function NavItem({
6443
+ var DENSITY = {
6444
+ comfortable: {
6445
+ box: "h-11 gap-3 rounded-xl",
6446
+ pad: "px-3.5",
6447
+ square: "w-11",
6448
+ active: clsx44("border border-transparent", STATE.active),
6449
+ inactive: clsx44("border border-default bg-default text-default", STATE.hover),
6450
+ disabled: "data-[disabled]:hover:bg-default",
6451
+ // Straddles the card's corner, as in Figma.
6452
+ dot: "-right-px -top-px",
6453
+ railDot: "-right-px -top-px"
6454
+ },
6455
+ compact: {
6456
+ box: "h-10 gap-3 rounded-xl",
6457
+ pad: "px-3",
6458
+ square: "w-10",
6459
+ active: STATE.active,
6460
+ inactive: clsx44("text-default", STATE.hover),
6461
+ disabled: "data-[disabled]:hover:bg-transparent",
6462
+ // A plain row has no corner to sit on, so the expanded dot trails the label instead.
6463
+ dot: "right-2 top-1/2 -translate-y-1/2",
6464
+ railDot: "right-0 top-0"
6465
+ }
6466
+ };
6467
+ var DENSITY_DISABLED = "data-[disabled]:cursor-not-allowed data-[disabled]:text-disabled data-[disabled]:hover:text-disabled";
6468
+ var NavItem = forwardRef26(function NavItem2({
6441
6469
  icon,
6442
6470
  label,
6443
6471
  isActive = false,
@@ -6445,16 +6473,21 @@ function NavItem({
6445
6473
  collapsed = false,
6446
6474
  size = "md",
6447
6475
  variant = "card",
6476
+ density,
6477
+ trailing,
6448
6478
  asChild = false,
6449
6479
  disabled = false,
6450
6480
  children,
6451
6481
  className,
6452
6482
  onClick,
6453
6483
  ...rest
6454
- }) {
6484
+ }, ref) {
6455
6485
  const s = SIZE8[size];
6456
6486
  const v = VARIANT2[variant];
6487
+ const d = density ? DENSITY[density] : null;
6457
6488
  const rootProps = {
6489
+ ref,
6490
+ "data-density": density,
6458
6491
  // Only meaningful when `asChild` renders a real link — a decorative span with
6459
6492
  // aria-current would be a lie.
6460
6493
  "aria-current": asChild && isActive ? "page" : void 0,
@@ -6475,12 +6508,25 @@ function NavItem({
6475
6508
  // halo on the #F5F5F5 rail. The offset itself is load-bearing — in dark mode
6476
6509
  // `ring-brand` and `bg-brand` are both #F1F7FD, so without it a focused *active* row
6477
6510
  // would have no visible ring at its inner edge.
6511
+ // It is also Figma's focus state for both densities: 1px rail-coloured gap, 3px of brand
6512
+ // in all. Figma's compact focus variant draws a 0px shadow — no ring at all — which
6513
+ // would fail WCAG 2.4.7, so compact keeps this ring too.
6478
6514
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand focus-visible:ring-offset-1 focus-visible:ring-offset-default-secondary",
6479
- s.box,
6480
- // Expanded rows fill the nav; a collapsed one is a centred square, not a stretched row.
6481
- collapsed ? clsx44("justify-center", s.square) : "w-full",
6482
- isActive ? v.active : v.inactive,
6483
- "data-[disabled]:cursor-not-allowed data-[disabled]:opacity-40 data-[disabled]:hover:bg-transparent data-[disabled]:hover:text-default-secondary",
6515
+ d ? clsx44(
6516
+ // text-left: a parent row is a <button>, which centres its text by default.
6517
+ "group/nav-item text-left",
6518
+ d.box,
6519
+ collapsed ? clsx44("justify-center", d.square) : clsx44("w-full", d.pad),
6520
+ isActive ? d.active : d.inactive,
6521
+ DENSITY_DISABLED,
6522
+ d.disabled
6523
+ ) : clsx44(
6524
+ s.box,
6525
+ // Expanded rows fill the nav; a collapsed one is a centred square, not a stretched row.
6526
+ collapsed ? clsx44("justify-center", s.square) : "w-full",
6527
+ isActive ? v.active : v.inactive,
6528
+ "data-[disabled]:cursor-not-allowed data-[disabled]:opacity-40 data-[disabled]:hover:bg-transparent data-[disabled]:hover:text-default-secondary"
6529
+ ),
6484
6530
  className
6485
6531
  ),
6486
6532
  ...rest,
@@ -6496,7 +6542,22 @@ function NavItem({
6496
6542
  }
6497
6543
  };
6498
6544
  const content = /* @__PURE__ */ jsxs45(Fragment8, { children: [
6499
- icon != null ? /* @__PURE__ */ jsx64("span", { "aria-hidden": true, className: "shrink-0 [&_svg]:size-4", children: icon }) : (
6545
+ icon != null ? /* @__PURE__ */ jsx64(
6546
+ "span",
6547
+ {
6548
+ "aria-hidden": true,
6549
+ className: clsx44(
6550
+ "shrink-0",
6551
+ d ? clsx44(
6552
+ // Figma: a 20px glyph, icon-secondary at rest, brand under hover,
6553
+ // on-brand on the current row, disabled grey on a disabled one.
6554
+ "flex size-5 items-center justify-center [&_svg]:size-5",
6555
+ disabled ? "text-icon-disabled" : isActive ? "text-icon-brand-on-brand" : "text-icon-default-secondary group-hover/nav-item:text-icon-brand"
6556
+ ) : "[&_svg]:size-4"
6557
+ ),
6558
+ children: icon
6559
+ }
6560
+ ) : (
6500
6561
  // Icons are optional, but the collapsed rail hides the label — so a row with neither
6501
6562
  // renders as an empty box. Through 0.5.0 that is exactly what a nav without icons
6502
6563
  // collapsed to, the docs site's own 36-row sidebar included. The monogram is
@@ -6515,19 +6576,23 @@ function NavItem({
6515
6576
  "span",
6516
6577
  {
6517
6578
  className: clsx44(
6518
- "min-w-0 truncate font-regular leading-snug",
6519
- s.label,
6579
+ "min-w-0 truncate font-regular",
6580
+ d ? "text-body" : clsx44("leading-snug", s.label),
6520
6581
  collapsed ? "sr-only" : "flex-1"
6521
6582
  ),
6522
6583
  children: label
6523
6584
  }
6524
6585
  ),
6586
+ trailing != null && !collapsed && /* @__PURE__ */ jsx64("span", { "aria-hidden": true, className: "flex shrink-0 items-center [&_svg]:size-4", children: trailing }),
6525
6587
  indicator && /* @__PURE__ */ jsx64(
6526
6588
  "span",
6527
6589
  {
6528
6590
  role: "status",
6529
6591
  "aria-label": "Unread",
6530
- className: "absolute -right-px -top-px size-2 rounded-full bg-danger"
6592
+ className: clsx44(
6593
+ "absolute size-2 rounded-full bg-danger",
6594
+ d ? collapsed ? d.railDot : d.dot : "-right-px -top-px"
6595
+ )
6531
6596
  }
6532
6597
  )
6533
6598
  ] });
@@ -6535,17 +6600,638 @@ function NavItem({
6535
6600
  return /* @__PURE__ */ jsx64(Slot, { wrapChildren: () => content, ...rootProps, children });
6536
6601
  }
6537
6602
  return /* @__PURE__ */ jsx64("span", { ...rootProps, children: content });
6603
+ });
6604
+ var SUB_HEIGHT = { comfortable: "h-11", compact: "h-10" };
6605
+ var NavSubItem = forwardRef26(function NavSubItem2({
6606
+ label,
6607
+ isActive = false,
6608
+ disabled = false,
6609
+ last = false,
6610
+ density = "comfortable",
6611
+ asChild = false,
6612
+ children,
6613
+ className,
6614
+ onClick,
6615
+ ...rest
6616
+ }, ref) {
6617
+ const rootProps = {
6618
+ ref,
6619
+ "aria-current": asChild && isActive ? "page" : void 0,
6620
+ "data-state": isActive ? "active" : void 0,
6621
+ "data-disabled": disabled || void 0,
6622
+ "aria-disabled": disabled || void 0,
6623
+ className: clsx44(
6624
+ "relative flex w-full items-center gap-3 rounded-md pl-4 pr-3 transition-colors",
6625
+ // Figma's focus variant is a 1px brand border on the hover tint. The transparent
6626
+ // border holds the 1px at rest so the label does not move when focus arrives.
6627
+ "border border-transparent focus-visible:border-brand focus-visible:bg-brand-secondary focus-visible:text-brand focus-visible:outline-none",
6628
+ SUB_HEIGHT[density],
6629
+ isActive ? "bg-brand text-brand-on-brand" : "text-default-secondary hover:bg-brand-secondary hover:text-brand",
6630
+ "data-[disabled]:cursor-not-allowed data-[disabled]:text-disabled data-[disabled]:hover:bg-transparent data-[disabled]:hover:text-disabled",
6631
+ className
6632
+ ),
6633
+ ...rest,
6634
+ ...disabled ? { tabIndex: -1 } : {},
6635
+ onClick: (event) => {
6636
+ if (disabled) {
6637
+ event.preventDefault();
6638
+ return;
6639
+ }
6640
+ onClick?.(event);
6641
+ }
6642
+ };
6643
+ const content = /* @__PURE__ */ jsxs45(Fragment8, { children: [
6644
+ /* @__PURE__ */ jsx64(NestIndicator, { last }),
6645
+ /* @__PURE__ */ jsx64("span", { className: "min-w-0 flex-1 truncate text-body font-regular", children: label })
6646
+ ] });
6647
+ if (asChild) {
6648
+ return /* @__PURE__ */ jsx64(Slot, { wrapChildren: () => content, ...rootProps, children });
6649
+ }
6650
+ return /* @__PURE__ */ jsx64("span", { ...rootProps, children: content });
6651
+ });
6652
+ function NestIndicator({ last }) {
6653
+ return /* @__PURE__ */ jsxs45("span", { "aria-hidden": true, className: "relative w-4 shrink-0 self-stretch", children: [
6654
+ /* @__PURE__ */ jsx64(
6655
+ "span",
6656
+ {
6657
+ className: clsx44(
6658
+ "absolute left-1/2 top-0 w-px -translate-x-1/2 bg-[var(--prim-stone-400)]",
6659
+ last ? "h-1/2" : "h-full"
6660
+ )
6661
+ }
6662
+ ),
6663
+ last && /* @__PURE__ */ jsx64("span", { className: "absolute left-1/2 right-0 top-1/2 h-px bg-[var(--prim-stone-400)]" })
6664
+ ] });
6538
6665
  }
6666
+ var NavGroupHeader = forwardRef26(function NavGroupHeader2({ title, open, onOpenChange, controls, action, className, ...rest }, ref) {
6667
+ const collapsible = open !== void 0 && onOpenChange !== void 0;
6668
+ return /* @__PURE__ */ jsxs45("div", { ref, className: clsx44("flex items-center gap-2 pl-2.5", className), ...rest, children: [
6669
+ collapsible && /* @__PURE__ */ jsx64(
6670
+ "button",
6671
+ {
6672
+ type: "button",
6673
+ "aria-expanded": open,
6674
+ "aria-controls": controls,
6675
+ "aria-label": `${open ? "Collapse" : "Expand"} ${title}`,
6676
+ onClick: () => onOpenChange(!open),
6677
+ className: clsx44(
6678
+ "flex shrink-0 items-center justify-center rounded-full p-1 text-icon-default-secondary transition-colors",
6679
+ "hover:bg-brand-tertiary-hover hover:text-icon-brand",
6680
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand focus-visible:ring-offset-1 focus-visible:ring-offset-default-secondary"
6681
+ ),
6682
+ children: /* @__PURE__ */ jsx64(
6683
+ ChevronDownIcon4,
6684
+ {
6685
+ "aria-hidden": true,
6686
+ className: clsx44(
6687
+ "size-4 transition-transform motion-reduce:transition-none",
6688
+ !open && "-rotate-90"
6689
+ )
6690
+ }
6691
+ )
6692
+ }
6693
+ ),
6694
+ /* @__PURE__ */ jsx64("p", { className: "min-w-0 flex-1 truncate text-body font-regular text-neutral-tertiary", children: title }),
6695
+ action != null && /* @__PURE__ */ jsx64("div", { className: "flex shrink-0 items-center", children: action })
6696
+ ] });
6697
+ });
6539
6698
 
6540
- // src/components/chrome/eyebrow-label.tsx
6699
+ // src/components/chrome/sidebar.tsx
6700
+ import {
6701
+ createContext as createContext14,
6702
+ forwardRef as forwardRef27,
6703
+ useCallback as useCallback7,
6704
+ useContext as useContext14,
6705
+ useEffect as useEffect10,
6706
+ useId as useId18,
6707
+ useMemo as useMemo11,
6708
+ useState as useState20
6709
+ } from "react";
6710
+ import { DropdownMenu as DropdownMenuPrimitive } from "radix-ui";
6711
+ import {
6712
+ ChevronDownIcon as ChevronDownIcon5,
6713
+ ChevronLeftIcon as ChevronLeftIcon4,
6714
+ ChevronRightIcon as ChevronRightIcon5,
6715
+ EllipsisVerticalIcon,
6716
+ LogOutIcon,
6717
+ MenuIcon
6718
+ } from "lucide-react";
6541
6719
  import clsx45 from "clsx";
6542
- import { jsx as jsx65 } from "react/jsx-runtime";
6543
- function EyebrowLabel({ children, variant = "uppercase", className }) {
6720
+
6721
+ // src/lib/use-media-query.ts
6722
+ import { useCallback as useCallback6, useSyncExternalStore } from "react";
6723
+ function useMediaQuery(query) {
6724
+ const subscribe = useCallback6(
6725
+ (onChange) => {
6726
+ if (typeof window === "undefined" || typeof window.matchMedia !== "function") return () => {
6727
+ };
6728
+ const list = window.matchMedia(query);
6729
+ list.addEventListener("change", onChange);
6730
+ return () => list.removeEventListener("change", onChange);
6731
+ },
6732
+ [query]
6733
+ );
6734
+ const getSnapshot = () => typeof window !== "undefined" && typeof window.matchMedia === "function" ? window.matchMedia(query).matches : false;
6735
+ return useSyncExternalStore(subscribe, getSnapshot, () => false);
6736
+ }
6737
+
6738
+ // src/components/chrome/sidebar.tsx
6739
+ import { Fragment as Fragment9, jsx as jsx65, jsxs as jsxs46 } from "react/jsx-runtime";
6740
+ var MOBILE_QUERY = "(max-width: 767.98px)";
6741
+ var SidebarContext = createContext14(null);
6742
+ function useSidebar() {
6743
+ const value = useContext14(SidebarContext);
6744
+ if (!value) throw new Error("useSidebar must be used inside <SidebarProvider>");
6745
+ return value;
6746
+ }
6747
+ function readStored(key) {
6748
+ try {
6749
+ const value = window.localStorage.getItem(key);
6750
+ return value === "true" ? true : value === "false" ? false : null;
6751
+ } catch {
6752
+ return null;
6753
+ }
6754
+ }
6755
+ function writeStored(key, value) {
6756
+ try {
6757
+ window.localStorage.setItem(key, String(value));
6758
+ } catch {
6759
+ }
6760
+ }
6761
+ function SidebarProvider({
6762
+ children,
6763
+ collapsed: collapsedProp,
6764
+ defaultCollapsed = false,
6765
+ onCollapsedChange,
6766
+ storageKey,
6767
+ mobileOpen: mobileOpenProp,
6768
+ defaultMobileOpen = false,
6769
+ onMobileOpenChange
6770
+ }) {
6771
+ const [collapsed, setCollapsedState] = useControllableState({
6772
+ value: collapsedProp,
6773
+ defaultValue: defaultCollapsed,
6774
+ onChange: onCollapsedChange
6775
+ });
6776
+ const [mobileOpen, setMobileOpen] = useControllableState({
6777
+ value: mobileOpenProp,
6778
+ defaultValue: defaultMobileOpen,
6779
+ onChange: onMobileOpenChange
6780
+ });
6781
+ const isMobile = useMediaQuery(MOBILE_QUERY);
6782
+ useEffect10(() => {
6783
+ if (!storageKey) return;
6784
+ const stored = readStored(storageKey);
6785
+ if (stored !== null) setCollapsedState(stored);
6786
+ }, [storageKey, setCollapsedState]);
6787
+ const setCollapsed = useCallback7(
6788
+ (next) => {
6789
+ if (storageKey) writeStored(storageKey, next);
6790
+ setCollapsedState(next);
6791
+ },
6792
+ [storageKey, setCollapsedState]
6793
+ );
6794
+ const value = useMemo11(
6795
+ () => ({
6796
+ collapsed,
6797
+ setCollapsed,
6798
+ toggleCollapsed: () => setCollapsed(!collapsed),
6799
+ mobileOpen,
6800
+ setMobileOpen,
6801
+ isMobile
6802
+ }),
6803
+ [collapsed, setCollapsed, mobileOpen, setMobileOpen, isMobile]
6804
+ );
6805
+ return /* @__PURE__ */ jsx65(SidebarContext.Provider, { value, children });
6806
+ }
6807
+ var DefaultLink = forwardRef27(function DefaultLink2({ children, ...rest }, ref) {
6808
+ return /* @__PURE__ */ jsx65("a", { ref, ...rest, children });
6809
+ });
6810
+ var Row = createContext14(null);
6811
+ function useRow() {
6812
+ const value = useContext14(Row);
6813
+ if (!value) throw new Error("Sidebar rows must be rendered by <Sidebar>");
6814
+ return value;
6815
+ }
6816
+ function Sidebar(props) {
6817
+ const outer = useContext14(SidebarContext);
6818
+ if (outer) return /* @__PURE__ */ jsx65(SidebarRoot, { ...props, context: outer, ownsState: false });
6544
6819
  return /* @__PURE__ */ jsx65(
6820
+ SidebarProvider,
6821
+ {
6822
+ collapsed: props.collapsed,
6823
+ defaultCollapsed: props.defaultCollapsed,
6824
+ onCollapsedChange: props.onCollapsedChange,
6825
+ storageKey: props.storageKey,
6826
+ children: /* @__PURE__ */ jsx65(SidebarFromContext, { ...props })
6827
+ }
6828
+ );
6829
+ }
6830
+ function SidebarFromContext(props) {
6831
+ return /* @__PURE__ */ jsx65(SidebarRoot, { ...props, context: useSidebar(), ownsState: true });
6832
+ }
6833
+ function SidebarRoot({
6834
+ groups,
6835
+ footerNav,
6836
+ brand,
6837
+ footer,
6838
+ density: densityProp,
6839
+ collapsible = true,
6840
+ collapsed: collapsedProp,
6841
+ onCollapsedChange,
6842
+ onToggle,
6843
+ currentPath,
6844
+ currentHash,
6845
+ linkComponent = DefaultLink,
6846
+ onNavigate,
6847
+ label = "Primary",
6848
+ variant,
6849
+ width = "w-80",
6850
+ collapsedWidth,
6851
+ className,
6852
+ context,
6853
+ ownsState
6854
+ }) {
6855
+ const density = densityProp ?? (variant === "plain" ? "compact" : "comfortable");
6856
+ const asideId = useId18();
6857
+ const { isMobile, setMobileOpen } = context;
6858
+ const collapsed = !isMobile && collapsible && (collapsedProp ?? context.collapsed);
6859
+ const showToggle = collapsible && !isMobile && (collapsedProp === void 0 || onToggle != null || onCollapsedChange != null);
6860
+ const toggle = () => {
6861
+ const next = !collapsed;
6862
+ onToggle?.();
6863
+ if (!ownsState) onCollapsedChange?.(next);
6864
+ context.setCollapsed(next);
6865
+ };
6866
+ const hashTargets = useMemo11(
6867
+ () => new Set(
6868
+ [...groups.flatMap((group) => group.items), ...footerNav ?? []].flatMap((item) => [item, ...item.children ?? []]).map((item) => item.to).filter((to) => to?.includes("#") ?? false)
6869
+ ),
6870
+ [groups, footerNav]
6871
+ );
6872
+ const row = useMemo11(
6873
+ () => ({
6874
+ density,
6875
+ collapsed,
6876
+ path: currentPath,
6877
+ hash: currentHash,
6878
+ hashTargets,
6879
+ Link: linkComponent,
6880
+ onNavigate: () => {
6881
+ if (isMobile) setMobileOpen(false);
6882
+ onNavigate?.();
6883
+ }
6884
+ }),
6885
+ [density, collapsed, currentPath, currentHash, hashTargets, linkComponent, isMobile, setMobileOpen, onNavigate]
6886
+ );
6887
+ const state = { collapsed, density };
6888
+ const comfortable = density === "comfortable";
6889
+ const panel = /* @__PURE__ */ jsxs46(
6890
+ "aside",
6891
+ {
6892
+ id: asideId,
6893
+ "aria-label": label,
6894
+ "data-density": density,
6895
+ "data-collapsed": collapsed || void 0,
6896
+ className: cn(
6897
+ "relative flex h-full shrink-0 flex-col justify-between bg-default-secondary py-2",
6898
+ "transition-[width] duration-200 motion-reduce:transition-none",
6899
+ isMobile ? "w-full" : clsx45(
6900
+ "rounded-xl border-r border-default",
6901
+ collapsed ? collapsedWidth ?? (comfortable ? "w-20" : "w-[72px]") : width
6902
+ ),
6903
+ className
6904
+ ),
6905
+ children: [
6906
+ showToggle && /* @__PURE__ */ jsx65(
6907
+ "button",
6908
+ {
6909
+ type: "button",
6910
+ "aria-label": collapsed ? "Expand sidebar" : "Collapse sidebar",
6911
+ "aria-expanded": !collapsed,
6912
+ "aria-controls": asideId,
6913
+ onClick: toggle,
6914
+ className: cn(
6915
+ "absolute -right-3 top-5 z-raised flex size-6 items-center justify-center rounded-full",
6916
+ "border border-default bg-default text-default-secondary",
6917
+ // Not `hover:bg-default-hover` — that is #F5F5F5, exactly the rail colour, and
6918
+ // this button straddles the rail edge, so half of it dissolved into the rail on
6919
+ // hover. Same hover vocabulary as the rows instead.
6920
+ "shadow-100 transition-colors hover:bg-brand-tertiary-hover hover:text-brand",
6921
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand focus-visible:ring-offset-1 focus-visible:ring-offset-default"
6922
+ ),
6923
+ children: collapsed ? /* @__PURE__ */ jsx65(ChevronRightIcon5, { className: "size-3", strokeWidth: 2.5, "aria-hidden": true }) : /* @__PURE__ */ jsx65(ChevronLeftIcon4, { className: "size-3", strokeWidth: 2.5, "aria-hidden": true })
6924
+ }
6925
+ ),
6926
+ /* @__PURE__ */ jsxs46("div", { className: "flex min-h-0 flex-1 flex-col gap-1 pb-3", children: [
6927
+ brand && /* @__PURE__ */ jsx65(
6928
+ "div",
6929
+ {
6930
+ className: cn(
6931
+ "flex shrink-0 items-center overflow-hidden p-4",
6932
+ collapsed ? "justify-center" : "gap-2.5"
6933
+ ),
6934
+ children: typeof brand === "function" ? brand(state) : brand
6935
+ }
6936
+ ),
6937
+ /* @__PURE__ */ jsx65(ScrollArea, { axis: "vertical", label: "Sidebar navigation", className: "min-h-0 flex-1", children: /* @__PURE__ */ jsx65(Row.Provider, { value: row, children: /* @__PURE__ */ jsx65("nav", { "aria-label": "Main", className: cn("flex flex-col px-4", comfortable ? "gap-4 pt-2" : "gap-2"), children: groups.map((group, index) => /* @__PURE__ */ jsx65(SidebarGroupView, { group }, group.id ?? group.title ?? `group-${index}`)) }) }) })
6938
+ ] }),
6939
+ (Boolean(footerNav?.length) || footer != null) && /* @__PURE__ */ jsxs46("div", { className: "flex shrink-0 flex-col", children: [
6940
+ footerNav && footerNav.length > 0 && /* @__PURE__ */ jsx65(Row.Provider, { value: row, children: /* @__PURE__ */ jsx65(
6941
+ "nav",
6942
+ {
6943
+ "aria-label": "Secondary",
6944
+ className: cn("flex flex-col px-4 pt-2", comfortable && "gap-1", collapsed && "items-center"),
6945
+ children: footerNav.map((item) => /* @__PURE__ */ jsx65(SidebarRow, { item }, itemKey(item)))
6946
+ }
6947
+ ) }),
6948
+ typeof footer === "function" ? footer(state) : footer
6949
+ ] })
6950
+ ]
6951
+ }
6952
+ );
6953
+ if (isMobile) {
6954
+ return /* @__PURE__ */ jsx65(
6955
+ Drawer,
6956
+ {
6957
+ side: "left",
6958
+ open: context.mobileOpen,
6959
+ onOpenChange: setMobileOpen,
6960
+ label,
6961
+ width: "w-80 max-w-[85vw]",
6962
+ className: "bg-default-secondary",
6963
+ children: panel
6964
+ }
6965
+ );
6966
+ }
6967
+ return panel;
6968
+ }
6969
+ function itemKey(item) {
6970
+ return item.id ?? item.to ?? item.href ?? item.label;
6971
+ }
6972
+ function SidebarGroupView({ group }) {
6973
+ const { density, collapsed } = useRow();
6974
+ const [open, setOpen] = useState20(group.defaultOpen ?? true);
6975
+ const regionId = useId18();
6976
+ const foldable = Boolean(group.collapsible && group.title) && !collapsed;
6977
+ const comfortable = density === "comfortable";
6978
+ return (
6979
+ // Figma "Menu Container": 8px above and below; 12px (comfortable) or 8px (compact)
6980
+ // between the heading and the rows; rows 4px apart when comfortable, touching when compact.
6981
+ /* @__PURE__ */ jsxs46("div", { className: cn("flex flex-col py-2", comfortable ? "gap-3" : "gap-2"), children: [
6982
+ group.title && (collapsed ? (
6983
+ // No room in the rail, but still the only thing naming the run of icons below.
6984
+ /* @__PURE__ */ jsx65("p", { className: "sr-only", children: group.title })
6985
+ ) : /* @__PURE__ */ jsx65(
6986
+ NavGroupHeader,
6987
+ {
6988
+ title: group.title,
6989
+ action: group.action,
6990
+ ...foldable ? { open, onOpenChange: setOpen, controls: regionId } : {}
6991
+ }
6992
+ )),
6993
+ (!foldable || open) && /* @__PURE__ */ jsx65("div", { id: regionId, className: cn("flex flex-col", comfortable && "gap-1", collapsed && "items-center"), children: group.items.map((item) => /* @__PURE__ */ jsx65(SidebarRow, { item }, itemKey(item))) })
6994
+ ] })
6995
+ );
6996
+ }
6997
+ function isRowActive(item, row) {
6998
+ if (item.isActive !== void 0) return item.isActive;
6999
+ if (!item.to || row.path === void 0) return false;
7000
+ const [path, hash] = item.to.split("#");
7001
+ const pathMatches = item.end ? row.path === path : row.path === path || row.path.startsWith(`${path.replace(/\/$/, "")}/`);
7002
+ if (!pathMatches) return false;
7003
+ if (hash !== void 0) return row.hash === `#${hash}`;
7004
+ return !row.hashTargets.has(`${row.path}${row.hash ?? ""}`);
7005
+ }
7006
+ function SidebarRow({ item }) {
7007
+ const row = useRow();
7008
+ if (item.children?.length) {
7009
+ return row.collapsed ? /* @__PURE__ */ jsx65(RailParent, { item }) : /* @__PURE__ */ jsx65(ParentRow, { item });
7010
+ }
7011
+ return /* @__PURE__ */ jsx65(LeafRow, { item });
7012
+ }
7013
+ function navigateHandler(row) {
7014
+ return (event) => {
7015
+ if (!event.defaultPrevented) row.onNavigate();
7016
+ };
7017
+ }
7018
+ function LeafRow({ item }) {
7019
+ const row = useRow();
7020
+ const active = isRowActive(item, row);
7021
+ const common = {
7022
+ icon: item.icon,
7023
+ label: item.label,
7024
+ isActive: active,
7025
+ indicator: item.indicator,
7026
+ disabled: item.disabled,
7027
+ collapsed: row.collapsed,
7028
+ density: row.density
7029
+ };
7030
+ let element;
7031
+ if (item.href) {
7032
+ element = /* @__PURE__ */ jsx65(NavItem, { asChild: true, ...common, onClick: navigateHandler(row), children: /* @__PURE__ */ jsx65("a", { href: item.href, target: "_blank", rel: "noreferrer" }) });
7033
+ } else if (item.to) {
7034
+ const { Link } = row;
7035
+ element = /* @__PURE__ */ jsx65(NavItem, { asChild: true, ...common, onClick: navigateHandler(row), children: /* @__PURE__ */ jsx65(Link, { href: item.to }) });
7036
+ } else {
7037
+ return /* @__PURE__ */ jsx65(NavItem, { ...common });
7038
+ }
7039
+ if (!row.collapsed) return element;
7040
+ return /* @__PURE__ */ jsx65(Tooltip, { title: item.label, side: "right", children: element });
7041
+ }
7042
+ function ParentRow({ item }) {
7043
+ const row = useRow();
7044
+ const children = item.children ?? [];
7045
+ const childActive = children.some((child) => isRowActive(child, row));
7046
+ const [open, setOpen] = useState20(item.defaultOpen ?? childActive);
7047
+ const regionId = useId18();
7048
+ useEffect10(() => {
7049
+ if (childActive) setOpen(true);
7050
+ }, [childActive]);
7051
+ return /* @__PURE__ */ jsxs46(Fragment9, { children: [
7052
+ /* @__PURE__ */ jsx65(
7053
+ NavItem,
7054
+ {
7055
+ asChild: true,
7056
+ icon: item.icon,
7057
+ label: item.label,
7058
+ isActive: !open && childActive,
7059
+ indicator: item.indicator,
7060
+ disabled: item.disabled,
7061
+ density: row.density,
7062
+ trailing: /* @__PURE__ */ jsx65(
7063
+ ChevronDownIcon5,
7064
+ {
7065
+ className: cn(
7066
+ "text-icon-default-secondary transition-transform motion-reduce:transition-none",
7067
+ !open && "-rotate-90"
7068
+ )
7069
+ }
7070
+ ),
7071
+ children: /* @__PURE__ */ jsx65("button", { type: "button", "aria-expanded": open, "aria-controls": regionId, onClick: () => setOpen(!open) })
7072
+ }
7073
+ ),
7074
+ open && /* @__PURE__ */ jsx65("div", { id: regionId, className: "flex flex-col", children: children.map((child, index) => /* @__PURE__ */ jsx65(SubRow, { item: child, last: index === children.length - 1 }, itemKey(child))) })
7075
+ ] });
7076
+ }
7077
+ function SubRow({ item, last }) {
7078
+ const row = useRow();
7079
+ const common = {
7080
+ label: item.label,
7081
+ isActive: isRowActive(item, row),
7082
+ disabled: item.disabled,
7083
+ last,
7084
+ density: row.density
7085
+ };
7086
+ if (item.href) {
7087
+ return /* @__PURE__ */ jsx65(NavSubItem, { asChild: true, ...common, onClick: navigateHandler(row), children: /* @__PURE__ */ jsx65("a", { href: item.href, target: "_blank", rel: "noreferrer" }) });
7088
+ }
7089
+ if (item.to) {
7090
+ const { Link } = row;
7091
+ return /* @__PURE__ */ jsx65(NavSubItem, { asChild: true, ...common, onClick: navigateHandler(row), children: /* @__PURE__ */ jsx65(Link, { href: item.to }) });
7092
+ }
7093
+ return /* @__PURE__ */ jsx65(NavSubItem, { ...common });
7094
+ }
7095
+ var FLYOUT_ITEM = clsx45(OVERLAY_ITEM_BASE, OVERLAY_ITEM_SIZE.md, "no-underline");
7096
+ function RailParent({ item }) {
7097
+ const row = useRow();
7098
+ const children = item.children ?? [];
7099
+ const childActive = children.some((child) => isRowActive(child, row));
7100
+ const { Link } = row;
7101
+ return /* @__PURE__ */ jsxs46(DropdownMenu, { children: [
7102
+ /* @__PURE__ */ jsx65(Tooltip, { title: item.label, side: "right", children: /* @__PURE__ */ jsx65(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsx65(
7103
+ NavItem,
7104
+ {
7105
+ asChild: true,
7106
+ icon: item.icon,
7107
+ label: item.label,
7108
+ isActive: childActive,
7109
+ indicator: item.indicator,
7110
+ disabled: item.disabled,
7111
+ collapsed: true,
7112
+ density: row.density,
7113
+ children: /* @__PURE__ */ jsx65("button", { type: "button" })
7114
+ }
7115
+ ) }) }),
7116
+ /* @__PURE__ */ jsxs46(DropdownMenuContent, { side: "right", align: "start", children: [
7117
+ /* @__PURE__ */ jsx65(DropdownMenuLabel, { children: item.label }),
7118
+ children.map((child) => {
7119
+ const active = isRowActive(child, row);
7120
+ const className = cn(
7121
+ FLYOUT_ITEM,
7122
+ overlayItemTone("default", Boolean(child.disabled)),
7123
+ active && "bg-brand text-brand-on-brand hover:bg-brand-hover focus:bg-brand-hover"
7124
+ );
7125
+ if (!child.to && !child.href) {
7126
+ return /* @__PURE__ */ jsx65(DropdownMenuItem, { disabled: child.disabled, children: child.label }, itemKey(child));
7127
+ }
7128
+ return /* @__PURE__ */ jsx65(
7129
+ DropdownMenuPrimitive.Item,
7130
+ {
7131
+ asChild: true,
7132
+ disabled: child.disabled,
7133
+ className,
7134
+ onSelect: () => row.onNavigate(),
7135
+ children: child.href ? /* @__PURE__ */ jsx65("a", { href: child.href, target: "_blank", rel: "noreferrer", children: child.label }) : /* @__PURE__ */ jsx65(Link, { href: child.to, "aria-current": active ? "page" : void 0, children: child.label })
7136
+ },
7137
+ itemKey(child)
7138
+ );
7139
+ })
7140
+ ] })
7141
+ ] });
7142
+ }
7143
+ var SidebarTrigger = forwardRef27(function SidebarTrigger2({ "aria-label": ariaLabel = "Open navigation", className, onClick, variant = "subtle", ...rest }, ref) {
7144
+ const context = useContext14(SidebarContext);
7145
+ if (!context) return null;
7146
+ const { mobileOpen, setMobileOpen } = context;
7147
+ return /* @__PURE__ */ jsx65(
7148
+ IconButton,
7149
+ {
7150
+ ref,
7151
+ "aria-label": ariaLabel,
7152
+ "aria-expanded": mobileOpen,
7153
+ "aria-haspopup": "dialog",
7154
+ variant,
7155
+ className: cn("md:hidden", className),
7156
+ onClick: (event) => {
7157
+ onClick?.(event);
7158
+ if (!event.defaultPrevented) setMobileOpen(!mobileOpen);
7159
+ },
7160
+ ...rest,
7161
+ children: /* @__PURE__ */ jsx65(MenuIcon, { className: "size-5", "aria-hidden": true })
7162
+ }
7163
+ );
7164
+ });
7165
+ function filterNav(groups, isVisible) {
7166
+ return groups.map((group) => ({ ...group, items: filterNavItems(group.items, isVisible) })).filter((group) => group.items.length > 0);
7167
+ }
7168
+ function filterNavItems(items, isVisible) {
7169
+ return items.flatMap((item) => {
7170
+ if (!isVisible(item)) return [];
7171
+ if (!item.children) return [item];
7172
+ const children = filterNavItems(item.children, isVisible);
7173
+ if (children.length === 0 && !item.to && !item.href) return [];
7174
+ return [{ ...item, children }];
7175
+ });
7176
+ }
7177
+ function SidebarSeparator({ className, ...rest }) {
7178
+ return /* @__PURE__ */ jsx65("div", { "aria-hidden": true, className: cn("mx-1 h-px shrink-0 bg-divider", className), ...rest });
7179
+ }
7180
+ function SidebarUserCard({
7181
+ name,
7182
+ role,
7183
+ onLogout,
7184
+ collapsed = false,
7185
+ menu,
7186
+ className
7187
+ }) {
7188
+ const initial = name.trim().charAt(0);
7189
+ const items = /* @__PURE__ */ jsxs46(Fragment9, { children: [
7190
+ menu,
7191
+ /* @__PURE__ */ jsx65(DropdownMenuItem, { icon: /* @__PURE__ */ jsx65(LogOutIcon, { className: "size-3.5", "aria-hidden": true }), onSelect: onLogout, children: "Sign out" })
7192
+ ] });
7193
+ if (collapsed) {
7194
+ return (
7195
+ // Figma collapsed user card: the avatar alone, 24px above and 16px below.
7196
+ /* @__PURE__ */ jsx65("div", { className: cn("flex shrink-0 items-center justify-center px-4 pb-4 pt-6", className), children: /* @__PURE__ */ jsxs46(DropdownMenu, { children: [
7197
+ /* @__PURE__ */ jsx65(DropdownMenuTrigger, { asChild: true, label: "User options", children: /* @__PURE__ */ jsx65("button", { type: "button", "aria-label": `${name} \u2014 user options`, className: "rounded-full", children: /* @__PURE__ */ jsx65(Avatar, { initial, size: "lg", shape: "circle" }) }) }),
7198
+ /* @__PURE__ */ jsx65(DropdownMenuContent, { side: "right", align: "end", children: items })
7199
+ ] }) })
7200
+ );
7201
+ }
7202
+ return (
7203
+ // Figma: 16px padding, plus 4px more above and below the row inside it.
7204
+ /* @__PURE__ */ jsxs46("div", { className: cn("flex shrink-0 items-center gap-2.5 px-4 py-5", className), children: [
7205
+ /* @__PURE__ */ jsx65(Avatar, { initial, size: "lg", shape: "circle" }),
7206
+ /* @__PURE__ */ jsxs46("div", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
7207
+ /* @__PURE__ */ jsx65("span", { className: "truncate text-body-sm font-semibold leading-snug text-default", children: name }),
7208
+ /* @__PURE__ */ jsx65("span", { className: "truncate text-body-tiny font-regular leading-none text-default-secondary", children: role })
7209
+ ] }),
7210
+ /* @__PURE__ */ jsxs46(DropdownMenu, { children: [
7211
+ /* @__PURE__ */ jsx65(DropdownMenuTrigger, { asChild: true, label: "User options", children: /* @__PURE__ */ jsx65(
7212
+ "button",
7213
+ {
7214
+ type: "button",
7215
+ "aria-label": `${name} \u2014 user options`,
7216
+ className: "flex size-6 shrink-0 items-center justify-center rounded-md text-default-secondary transition-colors hover:bg-brand-tertiary-hover hover:text-brand",
7217
+ children: /* @__PURE__ */ jsx65(EllipsisVerticalIcon, { className: "size-5", "aria-hidden": true })
7218
+ }
7219
+ ) }),
7220
+ /* @__PURE__ */ jsx65(DropdownMenuContent, { side: "top", align: "end", children: items })
7221
+ ] })
7222
+ ] })
7223
+ );
7224
+ }
7225
+
7226
+ // src/components/chrome/eyebrow-label.tsx
7227
+ import clsx46 from "clsx";
7228
+ import { jsx as jsx66 } from "react/jsx-runtime";
7229
+ function EyebrowLabel({ children, variant = "uppercase", className }) {
7230
+ return /* @__PURE__ */ jsx66(
6545
7231
  "p",
6546
7232
  {
6547
7233
  "data-variant": variant,
6548
- className: clsx45(
7234
+ className: clsx46(
6549
7235
  "text-body-tiny font-semibold tracking-wide text-default-secondary",
6550
7236
  variant === "uppercase" && "uppercase",
6551
7237
  className
@@ -6556,18 +7242,18 @@ function EyebrowLabel({ children, variant = "uppercase", className }) {
6556
7242
  }
6557
7243
 
6558
7244
  // src/components/chrome/separator.tsx
6559
- import { forwardRef as forwardRef26 } from "react";
6560
- import clsx46 from "clsx";
6561
- import { jsx as jsx66 } from "react/jsx-runtime";
6562
- var Separator = forwardRef26(function Separator2({ orientation = "horizontal", decorative = true, className, ...rest }, ref) {
6563
- return /* @__PURE__ */ jsx66(
7245
+ import { forwardRef as forwardRef28 } from "react";
7246
+ import clsx47 from "clsx";
7247
+ import { jsx as jsx67 } from "react/jsx-runtime";
7248
+ var Separator = forwardRef28(function Separator2({ orientation = "horizontal", decorative = true, className, ...rest }, ref) {
7249
+ return /* @__PURE__ */ jsx67(
6564
7250
  "div",
6565
7251
  {
6566
7252
  ref,
6567
7253
  role: decorative ? "none" : "separator",
6568
7254
  "aria-orientation": decorative ? void 0 : orientation,
6569
7255
  "data-slot": "separator",
6570
- className: clsx46(
7256
+ className: clsx47(
6571
7257
  "shrink-0 bg-divider",
6572
7258
  orientation === "horizontal" ? "h-px w-full" : "h-full w-px",
6573
7259
  className
@@ -6578,20 +7264,20 @@ var Separator = forwardRef26(function Separator2({ orientation = "horizontal", d
6578
7264
  });
6579
7265
 
6580
7266
  // src/components/chrome/kbd.tsx
6581
- import { forwardRef as forwardRef27 } from "react";
6582
- import clsx47 from "clsx";
6583
- import { jsx as jsx67 } from "react/jsx-runtime";
7267
+ import { forwardRef as forwardRef29 } from "react";
7268
+ import clsx48 from "clsx";
7269
+ import { jsx as jsx68 } from "react/jsx-runtime";
6584
7270
  var SIZE9 = {
6585
7271
  sm: "h-4 min-w-4 px-1 text-body-tiny",
6586
7272
  md: "h-5 min-w-5 px-1.5 text-body-xs"
6587
7273
  };
6588
- var Kbd = forwardRef27(function Kbd2({ children, size = "md", className, ...rest }, ref) {
6589
- return /* @__PURE__ */ jsx67(
7274
+ var Kbd = forwardRef29(function Kbd2({ children, size = "md", className, ...rest }, ref) {
7275
+ return /* @__PURE__ */ jsx68(
6590
7276
  "kbd",
6591
7277
  {
6592
7278
  ref,
6593
7279
  "data-slot": "kbd",
6594
- className: clsx47(
7280
+ className: clsx48(
6595
7281
  "inline-flex items-center justify-center rounded border border-default bg-default-secondary",
6596
7282
  "font-medium tabular-nums text-default-secondary",
6597
7283
  SIZE9[size],
@@ -6605,14 +7291,14 @@ var Kbd = forwardRef27(function Kbd2({ children, size = "md", className, ...rest
6605
7291
 
6606
7292
  // src/components/chrome/breadcrumb.tsx
6607
7293
  import {
6608
- Fragment as Fragment9,
6609
- forwardRef as forwardRef28
7294
+ Fragment as Fragment10,
7295
+ forwardRef as forwardRef30
6610
7296
  } from "react";
6611
- import clsx48 from "clsx";
6612
- import { ChevronRightIcon as ChevronRightIcon5 } from "lucide-react";
6613
- import { jsx as jsx68, jsxs as jsxs46 } from "react/jsx-runtime";
6614
- var Breadcrumb = forwardRef28(function Breadcrumb2({ children, items, renderLink, maxItems, label = "Breadcrumb", className, ...rest }, ref) {
6615
- return /* @__PURE__ */ jsx68("nav", { ref, "aria-label": label, "data-slot": "breadcrumb", ...rest, children: /* @__PURE__ */ jsx68("ol", { className: clsx48("flex flex-wrap items-center gap-1.5 p-0 text-body-xs", className), children: items ? renderItems(items, renderLink, maxItems) : children }) });
7297
+ import clsx49 from "clsx";
7298
+ import { ChevronRightIcon as ChevronRightIcon6 } from "lucide-react";
7299
+ import { jsx as jsx69, jsxs as jsxs47 } from "react/jsx-runtime";
7300
+ var Breadcrumb = forwardRef30(function Breadcrumb2({ children, items, renderLink, maxItems, label = "Breadcrumb", className, ...rest }, ref) {
7301
+ return /* @__PURE__ */ jsx69("nav", { ref, "aria-label": label, "data-slot": "breadcrumb", ...rest, children: /* @__PURE__ */ jsx69("ol", { className: clsx49("flex flex-wrap items-center gap-1.5 p-0 text-body-xs", className), children: items ? renderItems(items, renderLink, maxItems) : children }) });
6616
7302
  });
6617
7303
  function renderItems(items, renderLink, maxItems) {
6618
7304
  const last = items.length - 1;
@@ -6621,21 +7307,21 @@ function renderItems(items, renderLink, maxItems) {
6621
7307
  return shown.map((index, position) => {
6622
7308
  const item = items[index];
6623
7309
  const current = item.current ?? index === last;
6624
- const crumb = !current && renderLink ? /* @__PURE__ */ jsx68(BreadcrumbItem, { asChild: true, first: position === 0, children: renderLink(item) }) : /* @__PURE__ */ jsx68(BreadcrumbItem, { href: item.href, current, first: position === 0, children: item.label });
6625
- return /* @__PURE__ */ jsxs46(Fragment9, { children: [
7310
+ const crumb = !current && renderLink ? /* @__PURE__ */ jsx69(BreadcrumbItem, { asChild: true, first: position === 0, children: renderLink(item) }) : /* @__PURE__ */ jsx69(BreadcrumbItem, { href: item.href, current, first: position === 0, children: item.label });
7311
+ return /* @__PURE__ */ jsxs47(Fragment10, { children: [
6626
7312
  crumb,
6627
- collapse && position === 0 && /* @__PURE__ */ jsx68(BreadcrumbEllipsis, {})
7313
+ collapse && position === 0 && /* @__PURE__ */ jsx69(BreadcrumbEllipsis, {})
6628
7314
  ] }, item.id ?? index);
6629
7315
  });
6630
7316
  }
6631
- var BreadcrumbItem = forwardRef28(
7317
+ var BreadcrumbItem = forwardRef30(
6632
7318
  function BreadcrumbItem2({ children, current = false, asChild = false, first = false, className, ...rest }, ref) {
6633
- return /* @__PURE__ */ jsxs46("li", { className: "flex items-center gap-1.5", children: [
6634
- !first && /* @__PURE__ */ jsx68(ChevronRightIcon5, { "aria-hidden": true, className: "size-3.5 shrink-0 text-icon-default-tertiary" }),
6635
- current ? /* @__PURE__ */ jsx68("span", { "aria-current": "page", className: clsx48("font-medium text-default", className), children }) : asChild ? /* @__PURE__ */ jsx68(
7319
+ return /* @__PURE__ */ jsxs47("li", { className: "flex items-center gap-1.5", children: [
7320
+ !first && /* @__PURE__ */ jsx69(ChevronRightIcon6, { "aria-hidden": true, className: "size-3.5 shrink-0 text-icon-default-tertiary" }),
7321
+ current ? /* @__PURE__ */ jsx69("span", { "aria-current": "page", className: clsx49("font-medium text-default", className), children }) : asChild ? /* @__PURE__ */ jsx69(
6636
7322
  Slot,
6637
7323
  {
6638
- className: clsx48(
7324
+ className: clsx49(
6639
7325
  "rounded text-default-secondary transition-colors hover:text-brand",
6640
7326
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand focus-visible:ring-offset-1 focus-visible:ring-offset-default",
6641
7327
  className
@@ -6643,11 +7329,11 @@ var BreadcrumbItem = forwardRef28(
6643
7329
  ...rest,
6644
7330
  children
6645
7331
  }
6646
- ) : /* @__PURE__ */ jsx68(
7332
+ ) : /* @__PURE__ */ jsx69(
6647
7333
  "a",
6648
7334
  {
6649
7335
  ref,
6650
- className: clsx48(
7336
+ className: clsx49(
6651
7337
  "rounded text-default-secondary transition-colors hover:text-brand",
6652
7338
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand focus-visible:ring-offset-1 focus-visible:ring-offset-default",
6653
7339
  className
@@ -6659,16 +7345,16 @@ var BreadcrumbItem = forwardRef28(
6659
7345
  ] });
6660
7346
  }
6661
7347
  );
6662
- var BreadcrumbEllipsis = forwardRef28(
7348
+ var BreadcrumbEllipsis = forwardRef30(
6663
7349
  function BreadcrumbEllipsis2({ className, ...rest }, ref) {
6664
- return /* @__PURE__ */ jsxs46("li", { className: "flex items-center gap-1.5", children: [
6665
- /* @__PURE__ */ jsx68(ChevronRightIcon5, { "aria-hidden": true, className: "size-3.5 shrink-0 text-icon-default-tertiary" }),
6666
- /* @__PURE__ */ jsx68(
7350
+ return /* @__PURE__ */ jsxs47("li", { className: "flex items-center gap-1.5", children: [
7351
+ /* @__PURE__ */ jsx69(ChevronRightIcon6, { "aria-hidden": true, className: "size-3.5 shrink-0 text-icon-default-tertiary" }),
7352
+ /* @__PURE__ */ jsx69(
6667
7353
  "span",
6668
7354
  {
6669
7355
  ref,
6670
7356
  "aria-label": "Collapsed items",
6671
- className: clsx48("px-0.5 text-default-tertiary", className),
7357
+ className: clsx49("px-0.5 text-default-tertiary", className),
6672
7358
  ...rest,
6673
7359
  children: "\u2026"
6674
7360
  }
@@ -6678,15 +7364,15 @@ var BreadcrumbEllipsis = forwardRef28(
6678
7364
  );
6679
7365
 
6680
7366
  // src/components/chrome/navigation-menu.tsx
6681
- import { forwardRef as forwardRef29 } from "react";
6682
- import clsx49 from "clsx";
6683
- import { Fragment as Fragment10, jsx as jsx69, jsxs as jsxs47 } from "react/jsx-runtime";
6684
- var NavigationMenu = forwardRef29(
7367
+ import { forwardRef as forwardRef31 } from "react";
7368
+ import clsx50 from "clsx";
7369
+ import { Fragment as Fragment11, jsx as jsx70, jsxs as jsxs48 } from "react/jsx-runtime";
7370
+ var NavigationMenu = forwardRef31(
6685
7371
  function NavigationMenu2({ children, orientation = "horizontal", label, className, ...rest }, ref) {
6686
- return /* @__PURE__ */ jsx69("nav", { ref, "aria-label": label, "data-slot": "navigation-menu", ...rest, children: /* @__PURE__ */ jsx69(
7372
+ return /* @__PURE__ */ jsx70("nav", { ref, "aria-label": label, "data-slot": "navigation-menu", ...rest, children: /* @__PURE__ */ jsx70(
6687
7373
  "ul",
6688
7374
  {
6689
- className: clsx49(
7375
+ className: clsx50(
6690
7376
  "flex list-none p-0",
6691
7377
  orientation === "vertical" ? "flex-col gap-1" : "flex-row items-center gap-1",
6692
7378
  className
@@ -6696,21 +7382,21 @@ var NavigationMenu = forwardRef29(
6696
7382
  ) });
6697
7383
  }
6698
7384
  );
6699
- var NavigationMenuItem = forwardRef29(
7385
+ var NavigationMenuItem = forwardRef31(
6700
7386
  function NavigationMenuItem2({ children, active = false, variant = "pill", asChild = false, icon, className, ...rest }, ref) {
6701
- const content = /* @__PURE__ */ jsxs47(Fragment10, { children: [
6702
- icon && /* @__PURE__ */ jsx69("span", { "aria-hidden": true, className: "shrink-0 [&_svg]:size-4", children: icon }),
6703
- /* @__PURE__ */ jsx69("span", { className: "min-w-0 truncate", children })
7387
+ const content = /* @__PURE__ */ jsxs48(Fragment11, { children: [
7388
+ icon && /* @__PURE__ */ jsx70("span", { "aria-hidden": true, className: "shrink-0 [&_svg]:size-4", children: icon }),
7389
+ /* @__PURE__ */ jsx70("span", { className: "min-w-0 truncate", children })
6704
7390
  ] });
6705
7391
  const linkProps = {
6706
7392
  "aria-current": active ? "page" : void 0,
6707
- className: clsx49(
7393
+ className: clsx50(
6708
7394
  "inline-flex items-center gap-2 whitespace-nowrap transition-colors",
6709
7395
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand focus-visible:ring-offset-1 focus-visible:ring-offset-default",
6710
- variant === "pill" ? clsx49(
7396
+ variant === "pill" ? clsx50(
6711
7397
  "rounded-lg px-3 py-1.5 text-body-xs font-medium",
6712
7398
  active ? "bg-brand text-brand-on-brand" : "text-default-secondary hover:bg-default-secondary hover:text-default"
6713
- ) : clsx49(
7399
+ ) : clsx50(
6714
7400
  "rounded px-1 py-0.5 text-body-sm",
6715
7401
  active ? "font-semibold text-brand" : "text-default-secondary hover:text-default"
6716
7402
  ),
@@ -6718,14 +7404,14 @@ var NavigationMenuItem = forwardRef29(
6718
7404
  ),
6719
7405
  ...rest
6720
7406
  };
6721
- return /* @__PURE__ */ jsx69("li", { children: asChild ? /* @__PURE__ */ jsx69(Slot, { wrapChildren: () => content, ...linkProps, children }) : /* @__PURE__ */ jsx69("a", { ref, ...linkProps, children: content }) });
7407
+ return /* @__PURE__ */ jsx70("li", { children: asChild ? /* @__PURE__ */ jsx70(Slot, { wrapChildren: () => content, ...linkProps, children }) : /* @__PURE__ */ jsx70("a", { ref, ...linkProps, children: content }) });
6722
7408
  }
6723
7409
  );
6724
7410
 
6725
7411
  // src/components/chrome/typography.tsx
6726
- import { forwardRef as forwardRef30 } from "react";
6727
- import clsx50 from "clsx";
6728
- import { jsx as jsx70 } from "react/jsx-runtime";
7412
+ import { forwardRef as forwardRef32 } from "react";
7413
+ import clsx51 from "clsx";
7414
+ import { jsx as jsx71 } from "react/jsx-runtime";
6729
7415
  var TONE2 = {
6730
7416
  default: "text-default",
6731
7417
  muted: "text-default-secondary",
@@ -6736,9 +7422,9 @@ var TONE2 = {
6736
7422
  danger: "text-danger"
6737
7423
  };
6738
7424
  function textComponent(displayName, defaultElement, classes) {
6739
- const Component2 = forwardRef30(function TextComponent({ children, asChild = false, tone, className, ...rest }, ref) {
7425
+ const Component2 = forwardRef32(function TextComponent({ children, asChild = false, tone, className, ...rest }, ref) {
6740
7426
  const Root = asChild ? Slot : defaultElement;
6741
- return /* @__PURE__ */ jsx70(
7427
+ return /* @__PURE__ */ jsx71(
6742
7428
  Root,
6743
7429
  {
6744
7430
  ref,
@@ -6768,8 +7454,8 @@ var TitlePage = textComponent("TitlePage", "h1", "text-title font-bold text-defa
6768
7454
  var Subtitle = textComponent("Subtitle", "p", "text-subtitle text-default-secondary");
6769
7455
  var Heading = textComponent("Heading", "h2", "text-heading font-semibold text-default");
6770
7456
  var Subheading = textComponent("Subheading", "h3", "text-subheading text-default");
6771
- var Blockquote = forwardRef30(function Blockquote2({ children, cite, tone, className, ...rest }, ref) {
6772
- return /* @__PURE__ */ jsx70(
7457
+ var Blockquote = forwardRef32(function Blockquote2({ children, cite, tone, className, ...rest }, ref) {
7458
+ return /* @__PURE__ */ jsx71(
6773
7459
  "blockquote",
6774
7460
  {
6775
7461
  ref,
@@ -6789,14 +7475,14 @@ var TEXT_LINK_TONE = {
6789
7475
  brand: "text-brand underline decoration-1 hover:text-brand-secondary",
6790
7476
  neutral: "text-default no-underline decoration-1 hover:underline"
6791
7477
  };
6792
- var TextLink = forwardRef30(function TextLink2({ children, asChild = false, tone = "brand", className, ...rest }, ref) {
7478
+ var TextLink = forwardRef32(function TextLink2({ children, asChild = false, tone = "brand", className, ...rest }, ref) {
6793
7479
  const Root = asChild ? Slot : "a";
6794
- return /* @__PURE__ */ jsx70(
7480
+ return /* @__PURE__ */ jsx71(
6795
7481
  Root,
6796
7482
  {
6797
7483
  ref,
6798
7484
  "data-tone": tone,
6799
- className: clsx50(
7485
+ className: clsx51(
6800
7486
  "rounded underline-offset-2 transition-colors",
6801
7487
  TEXT_LINK_TONE[tone],
6802
7488
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand focus-visible:ring-offset-1 focus-visible:ring-offset-default",
@@ -6812,13 +7498,13 @@ var LIST_MARKER = {
6812
7498
  numbered: "list-decimal pl-5",
6813
7499
  plain: "list-none pl-0"
6814
7500
  };
6815
- var TextList = forwardRef30(function TextList2({ children, variant = "bulleted", density = "default", className, ...rest }, ref) {
7501
+ var TextList = forwardRef32(function TextList2({ children, variant = "bulleted", density = "default", className, ...rest }, ref) {
6816
7502
  const Root = variant === "numbered" ? "ol" : "ul";
6817
- return /* @__PURE__ */ jsx70(
7503
+ return /* @__PURE__ */ jsx71(
6818
7504
  Root,
6819
7505
  {
6820
7506
  ref,
6821
- className: clsx50(
7507
+ className: clsx51(
6822
7508
  "text-body text-default",
6823
7509
  LIST_MARKER[variant],
6824
7510
  density === "compact" ? "space-y-0.5" : "space-y-1.5",
@@ -6829,17 +7515,17 @@ var TextList = forwardRef30(function TextList2({ children, variant = "bulleted",
6829
7515
  }
6830
7516
  );
6831
7517
  });
6832
- var TextListItem = forwardRef30(function TextListItem2({ children, className, ...rest }, ref) {
6833
- return /* @__PURE__ */ jsx70("li", { ref, className: clsx50("text-body text-default", className), ...rest, children });
7518
+ var TextListItem = forwardRef32(function TextListItem2({ children, className, ...rest }, ref) {
7519
+ return /* @__PURE__ */ jsx71("li", { ref, className: clsx51("text-body text-default", className), ...rest, children });
6834
7520
  });
6835
7521
 
6836
7522
  // src/components/widgets/widget-header.tsx
6837
- import { createContext as createContext14, useContext as useContext14 } from "react";
6838
- import clsx52 from "clsx";
7523
+ import { createContext as createContext15, useContext as useContext15 } from "react";
7524
+ import clsx53 from "clsx";
6839
7525
 
6840
7526
  // src/components/widgets/widget-title.tsx
6841
- import clsx51 from "clsx";
6842
- import { jsx as jsx71 } from "react/jsx-runtime";
7527
+ import clsx52 from "clsx";
7528
+ import { jsx as jsx72 } from "react/jsx-runtime";
6843
7529
  var sizeStyles4 = {
6844
7530
  sm: "text-subheading-sm font-semibold leading-none",
6845
7531
  // Was `text-[18px]`, which had no step on the type scale (Scale 04 = 16, Scale 05 = 20).
@@ -6849,17 +7535,17 @@ var sizeStyles4 = {
6849
7535
  lg: "text-subheading font-semibold leading-[1.2]"
6850
7536
  };
6851
7537
  function WidgetTitle({ children, size = "sm", className }) {
6852
- return /* @__PURE__ */ jsx71("h3", { className: clsx51(sizeStyles4[size], "text-default", className), children });
7538
+ return /* @__PURE__ */ jsx72("h3", { className: clsx52(sizeStyles4[size], "text-default", className), children });
6853
7539
  }
6854
7540
 
6855
7541
  // src/components/widgets/widget-header.tsx
6856
- import { jsx as jsx72, jsxs as jsxs48 } from "react/jsx-runtime";
6857
- var WidgetHeaderAccessoryContext = createContext14(null);
7542
+ import { jsx as jsx73, jsxs as jsxs49 } from "react/jsx-runtime";
7543
+ var WidgetHeaderAccessoryContext = createContext15(null);
6858
7544
  function WidgetHeaderAccessoryProvider({ accessory, children }) {
6859
- return /* @__PURE__ */ jsx72(WidgetHeaderAccessoryContext.Provider, { value: accessory, children });
7545
+ return /* @__PURE__ */ jsx73(WidgetHeaderAccessoryContext.Provider, { value: accessory, children });
6860
7546
  }
6861
7547
  function useWidgetHeaderAccessory() {
6862
- return useContext14(WidgetHeaderAccessoryContext);
7548
+ return useContext15(WidgetHeaderAccessoryContext);
6863
7549
  }
6864
7550
  var eyebrowStyles = {
6865
7551
  uppercase: "text-body-tiny font-medium uppercase tracking-[0.66px] text-default-secondary",
@@ -6878,13 +7564,13 @@ function WidgetHeader({
6878
7564
  }) {
6879
7565
  const provided = useWidgetHeaderAccessory();
6880
7566
  const accessory = accessoryProp !== void 0 ? accessoryProp : provided;
6881
- return /* @__PURE__ */ jsxs48("div", { className: clsx52("flex items-start justify-between gap-2", className), children: [
6882
- /* @__PURE__ */ jsxs48("div", { className: "min-w-0 flex-1", children: [
6883
- eyebrow && /* @__PURE__ */ jsx72("p", { className: eyebrowStyles[eyebrowVariant], children: eyebrow }),
6884
- /* @__PURE__ */ jsx72(WidgetTitle, { size: titleSize, children: title }),
6885
- subtitle && /* @__PURE__ */ jsx72("p", { className: "mt-1 text-body-xs text-default-secondary leading-snug", children: subtitle })
7567
+ return /* @__PURE__ */ jsxs49("div", { className: clsx53("flex items-start justify-between gap-2", className), children: [
7568
+ /* @__PURE__ */ jsxs49("div", { className: "min-w-0 flex-1", children: [
7569
+ eyebrow && /* @__PURE__ */ jsx73("p", { className: eyebrowStyles[eyebrowVariant], children: eyebrow }),
7570
+ /* @__PURE__ */ jsx73(WidgetTitle, { size: titleSize, children: title }),
7571
+ subtitle && /* @__PURE__ */ jsx73("p", { className: "mt-1 text-body-xs text-default-secondary leading-snug", children: subtitle })
6886
7572
  ] }),
6887
- /* @__PURE__ */ jsxs48("div", { className: "flex shrink-0 items-center gap-2", children: [
7573
+ /* @__PURE__ */ jsxs49("div", { className: "flex shrink-0 items-center gap-2", children: [
6888
7574
  badge,
6889
7575
  action,
6890
7576
  accessory
@@ -6893,24 +7579,24 @@ function WidgetHeader({
6893
7579
  }
6894
7580
 
6895
7581
  // src/components/widgets/widget-footer.tsx
6896
- import clsx53 from "clsx";
6897
- import { jsx as jsx73, jsxs as jsxs49 } from "react/jsx-runtime";
7582
+ import clsx54 from "clsx";
7583
+ import { jsx as jsx74, jsxs as jsxs50 } from "react/jsx-runtime";
6898
7584
  function WidgetFooter({ caption, subcaption, action, className }) {
6899
- return /* @__PURE__ */ jsxs49("div", { className: clsx53("flex items-center gap-3", className), children: [
6900
- caption && /* @__PURE__ */ jsxs49("div", { className: "flex items-stretch gap-3 flex-1 min-w-0", children: [
6901
- /* @__PURE__ */ jsx73("div", { className: "w-0.5 shrink-0 self-stretch rounded-full bg-brand" }),
6902
- /* @__PURE__ */ jsxs49("div", { className: "min-w-0", children: [
6903
- /* @__PURE__ */ jsx73("p", { className: "text-body-sm font-medium text-default leading-snug", children: caption }),
6904
- subcaption && /* @__PURE__ */ jsx73("p", { className: "mt-0.5 text-body-xs text-default-secondary", children: subcaption })
7585
+ return /* @__PURE__ */ jsxs50("div", { className: clsx54("flex items-center gap-3", className), children: [
7586
+ caption && /* @__PURE__ */ jsxs50("div", { className: "flex items-stretch gap-3 flex-1 min-w-0", children: [
7587
+ /* @__PURE__ */ jsx74("div", { className: "w-0.5 shrink-0 self-stretch rounded-full bg-brand" }),
7588
+ /* @__PURE__ */ jsxs50("div", { className: "min-w-0", children: [
7589
+ /* @__PURE__ */ jsx74("p", { className: "text-body-sm font-medium text-default leading-snug", children: caption }),
7590
+ subcaption && /* @__PURE__ */ jsx74("p", { className: "mt-0.5 text-body-xs text-default-secondary", children: subcaption })
6905
7591
  ] })
6906
7592
  ] }),
6907
- action && /* @__PURE__ */ jsx73("div", { className: "ml-auto shrink-0", children: action })
7593
+ action && /* @__PURE__ */ jsx74("div", { className: "ml-auto shrink-0", children: action })
6908
7594
  ] });
6909
7595
  }
6910
7596
 
6911
7597
  // src/components/widgets/widget-grid.tsx
6912
- import clsx54 from "clsx";
6913
- import { jsx as jsx74 } from "react/jsx-runtime";
7598
+ import clsx55 from "clsx";
7599
+ import { jsx as jsx75 } from "react/jsx-runtime";
6914
7600
  var COL_SPAN = {
6915
7601
  tiny: "col-span-6 lg:col-span-3",
6916
7602
  small: "col-span-12 lg:col-span-4",
@@ -6929,18 +7615,18 @@ var HEIGHT_PX = {
6929
7615
  large: 752
6930
7616
  };
6931
7617
  function WidgetGrid({ children, className }) {
6932
- return /* @__PURE__ */ jsx74("div", { className: cn("flex w-full flex-col gap-3 lg:gap-6", className), children });
7618
+ return /* @__PURE__ */ jsx75("div", { className: cn("flex w-full flex-col gap-3 lg:gap-6", className), children });
6933
7619
  }
6934
7620
  function WidgetGridRow({ children, className }) {
6935
- return /* @__PURE__ */ jsx74("div", { className: cn("grid grid-cols-12 items-start gap-3 lg:gap-6", className), children });
7621
+ return /* @__PURE__ */ jsx75("div", { className: cn("grid grid-cols-12 items-start gap-3 lg:gap-6", className), children });
6936
7622
  }
6937
7623
  function WidgetGridItem({ size, height, className, ...rest }) {
6938
- return /* @__PURE__ */ jsx74(
7624
+ return /* @__PURE__ */ jsx75(
6939
7625
  "div",
6940
7626
  {
6941
7627
  "data-size": size,
6942
7628
  "data-height": height,
6943
- className: cn(COL_SPAN[size], height && clsx54(HEIGHT_CLASS[height], "min-h-0"), className),
7629
+ className: cn(COL_SPAN[size], height && clsx55(HEIGHT_CLASS[height], "min-h-0"), className),
6944
7630
  ...rest
6945
7631
  }
6946
7632
  );
@@ -7003,12 +7689,12 @@ function slotWidthPx(gridWidthPx, columnGapPx, cols) {
7003
7689
  }
7004
7690
 
7005
7691
  // src/lib/use-width-tier.ts
7006
- import { useCallback as useCallback6, useEffect as useEffect10, useLayoutEffect as useLayoutEffect3, useRef as useRef14, useState as useState20 } from "react";
7007
- var useIsomorphicLayoutEffect = typeof window === "undefined" ? useEffect10 : useLayoutEffect3;
7692
+ import { useCallback as useCallback8, useEffect as useEffect11, useLayoutEffect as useLayoutEffect3, useRef as useRef14, useState as useState21 } from "react";
7693
+ var useIsomorphicLayoutEffect = typeof window === "undefined" ? useEffect11 : useLayoutEffect3;
7008
7694
  var TIER_SETTLE_MS = 200;
7009
7695
  function useWidthTier({ frozen = false } = {}) {
7010
- const [node, setNode] = useState20(null);
7011
- const [{ widthPx, tier }, setMeasured] = useState20({
7696
+ const [node, setNode] = useState21(null);
7697
+ const [{ widthPx, tier }, setMeasured] = useState21({
7012
7698
  widthPx: null,
7013
7699
  tier: "wide"
7014
7700
  });
@@ -7019,7 +7705,7 @@ function useWidthTier({ frozen = false } = {}) {
7019
7705
  tierRef.current = tier;
7020
7706
  const widthRef = useRef14(widthPx);
7021
7707
  widthRef.current = widthPx;
7022
- const commit = useCallback6(() => {
7708
+ const commit = useCallback8(() => {
7023
7709
  const raw = observed.current;
7024
7710
  if (raw === null || raw <= 0 || frozenRef.current) return;
7025
7711
  const next = quantizeWidth(raw);
@@ -7051,15 +7737,15 @@ function useWidthTier({ frozen = false } = {}) {
7051
7737
  if (timer) clearTimeout(timer);
7052
7738
  };
7053
7739
  }, [node, commit]);
7054
- useEffect10(() => {
7740
+ useEffect11(() => {
7055
7741
  if (!frozen) commit();
7056
7742
  }, [frozen, commit]);
7057
7743
  return { ref: setNode, widthPx, tier };
7058
7744
  }
7059
7745
 
7060
7746
  // src/components/stats/stat-tile.tsx
7061
- import clsx55 from "clsx";
7062
- import { Fragment as Fragment11, jsx as jsx75, jsxs as jsxs50 } from "react/jsx-runtime";
7747
+ import clsx56 from "clsx";
7748
+ import { Fragment as Fragment12, jsx as jsx76, jsxs as jsxs51 } from "react/jsx-runtime";
7063
7749
  var DOT_TONE = {
7064
7750
  neutral: "bg-status-dot-neutral",
7065
7751
  info: "bg-status-dot-info",
@@ -7084,20 +7770,20 @@ function StatTile({
7084
7770
  }) {
7085
7771
  const showDot = Boolean(tone || dotColor);
7086
7772
  const interactive = Boolean(onClick) || asChild;
7087
- const content = /* @__PURE__ */ jsxs50(Fragment11, { children: [
7088
- /* @__PURE__ */ jsxs50("span", { className: "flex items-center gap-1.5", children: [
7089
- showDot && /* @__PURE__ */ jsx75(
7773
+ const content = /* @__PURE__ */ jsxs51(Fragment12, { children: [
7774
+ /* @__PURE__ */ jsxs51("span", { className: "flex items-center gap-1.5", children: [
7775
+ showDot && /* @__PURE__ */ jsx76(
7090
7776
  "span",
7091
7777
  {
7092
7778
  "aria-hidden": true,
7093
- className: clsx55("size-2 shrink-0 rounded-full", tone && DOT_TONE[tone]),
7779
+ className: clsx56("size-2 shrink-0 rounded-full", tone && DOT_TONE[tone]),
7094
7780
  style: tone ? void 0 : { backgroundColor: dotColor }
7095
7781
  }
7096
7782
  ),
7097
- /* @__PURE__ */ jsx75("span", { className: "text-body-xs font-medium text-default-secondary whitespace-nowrap", children: label })
7783
+ /* @__PURE__ */ jsx76("span", { className: "text-body-xs font-medium text-default-secondary whitespace-nowrap", children: label })
7098
7784
  ] }),
7099
- /* @__PURE__ */ jsx75("span", { className: "text-heading font-semibold text-default leading-none", children: value }),
7100
- hint && /* @__PURE__ */ jsx75("span", { className: "text-body-tiny text-default-secondary", children: hint })
7785
+ /* @__PURE__ */ jsx76("span", { className: "text-heading font-semibold text-default leading-none", children: value }),
7786
+ hint && /* @__PURE__ */ jsx76("span", { className: "text-body-tiny text-default-secondary", children: hint })
7101
7787
  ] });
7102
7788
  const rootProps = {
7103
7789
  "data-state": selected ? "selected" : void 0,
@@ -7112,18 +7798,18 @@ function StatTile({
7112
7798
  return (
7113
7799
  // A link to a filtered view is the current one, not a pressed toggle: `aria-pressed` is
7114
7800
  // only valid on a button.
7115
- /* @__PURE__ */ jsx75(Slot, { ...rootProps, "aria-current": selected ? "true" : void 0, wrapChildren: () => content, children })
7801
+ /* @__PURE__ */ jsx76(Slot, { ...rootProps, "aria-current": selected ? "true" : void 0, wrapChildren: () => content, children })
7116
7802
  );
7117
7803
  }
7118
7804
  if (onClick) {
7119
- return /* @__PURE__ */ jsx75("button", { type: "button", "aria-pressed": selected ?? false, onClick, ...rootProps, children: content });
7805
+ return /* @__PURE__ */ jsx76("button", { type: "button", "aria-pressed": selected ?? false, onClick, ...rootProps, children: content });
7120
7806
  }
7121
- return /* @__PURE__ */ jsx75("div", { ...rootProps, children: content });
7807
+ return /* @__PURE__ */ jsx76("div", { ...rootProps, children: content });
7122
7808
  }
7123
7809
 
7124
7810
  // src/components/stats/stat-number.tsx
7125
- import clsx56 from "clsx";
7126
- import { jsx as jsx76, jsxs as jsxs51 } from "react/jsx-runtime";
7811
+ import clsx57 from "clsx";
7812
+ import { jsx as jsx77, jsxs as jsxs52 } from "react/jsx-runtime";
7127
7813
  var sizeStyles5 = {
7128
7814
  sm: "text-subtitle",
7129
7815
  md: "text-subtitle-lg",
@@ -7134,22 +7820,22 @@ var weightStyles = {
7134
7820
  bold: "font-bold"
7135
7821
  };
7136
7822
  function StatNumber({ value, unit, size = "md", weight = "bold", color, className }) {
7137
- return /* @__PURE__ */ jsxs51(
7823
+ return /* @__PURE__ */ jsxs52(
7138
7824
  "p",
7139
7825
  {
7140
- className: clsx56(sizeStyles5[size], weightStyles[weight], "leading-none", !color && "text-default", className),
7826
+ className: clsx57(sizeStyles5[size], weightStyles[weight], "leading-none", !color && "text-default", className),
7141
7827
  style: color ? { color } : void 0,
7142
7828
  children: [
7143
7829
  value,
7144
- unit && /* @__PURE__ */ jsx76("span", { className: "ml-1 text-subheading font-medium text-default-secondary", children: unit })
7830
+ unit && /* @__PURE__ */ jsx77("span", { className: "ml-1 text-subheading font-medium text-default-secondary", children: unit })
7145
7831
  ]
7146
7832
  }
7147
7833
  );
7148
7834
  }
7149
7835
 
7150
7836
  // src/components/stats/score-value.tsx
7151
- import clsx57 from "clsx";
7152
- import { jsx as jsx77, jsxs as jsxs52 } from "react/jsx-runtime";
7837
+ import clsx58 from "clsx";
7838
+ import { jsx as jsx78, jsxs as jsxs53 } from "react/jsx-runtime";
7153
7839
  var DEFAULT_SCORE_THRESHOLDS = { danger: 80, warning: 65, neutral: 50 };
7154
7840
  function getScoreTone(score, {
7155
7841
  direction = "higher-is-worse",
@@ -7193,15 +7879,15 @@ function ScoreValue({
7193
7879
  }) {
7194
7880
  const numeric = typeof value === "number" ? value : Number(value);
7195
7881
  const resolved = tone === "auto" ? Number.isFinite(numeric) ? getScoreTone(numeric, { direction, thresholds }) : "default" : tone;
7196
- return /* @__PURE__ */ jsxs52("span", { "data-tone": resolved, className: clsx57("inline-flex items-baseline gap-1", className), children: [
7197
- /* @__PURE__ */ jsx77("span", { className: clsx57(SIZE10[size], WEIGHT[weight], TONE3[resolved]), children: value }),
7198
- label && /* @__PURE__ */ jsx77("span", { className: "text-body-xs text-default-secondary whitespace-nowrap", children: label })
7882
+ return /* @__PURE__ */ jsxs53("span", { "data-tone": resolved, className: clsx58("inline-flex items-baseline gap-1", className), children: [
7883
+ /* @__PURE__ */ jsx78("span", { className: clsx58(SIZE10[size], WEIGHT[weight], TONE3[resolved]), children: value }),
7884
+ label && /* @__PURE__ */ jsx78("span", { className: "text-body-xs text-default-secondary whitespace-nowrap", children: label })
7199
7885
  ] });
7200
7886
  }
7201
7887
 
7202
7888
  // src/components/stats/tile-grid.tsx
7203
- import clsx58 from "clsx";
7204
- import { jsx as jsx78 } from "react/jsx-runtime";
7889
+ import clsx59 from "clsx";
7890
+ import { jsx as jsx79 } from "react/jsx-runtime";
7205
7891
  var COLUMNS2 = {
7206
7892
  sm: {
7207
7893
  2: "grid-cols-2",
@@ -7231,7 +7917,7 @@ function TileGrid({
7231
7917
  at = "lg",
7232
7918
  className
7233
7919
  }) {
7234
- return /* @__PURE__ */ jsx78("div", { className: clsx58("grid gap-3", COLUMNS2[at][columns], className), children });
7920
+ return /* @__PURE__ */ jsx79("div", { className: clsx59("grid gap-3", COLUMNS2[at][columns], className), children });
7235
7921
  }
7236
7922
 
7237
7923
  // src/components/charts/chart-tone.ts
@@ -7252,8 +7938,8 @@ function resolveChartColor(color, tone, index = 0) {
7252
7938
  }
7253
7939
 
7254
7940
  // src/components/charts/bar-chart.tsx
7255
- import clsx59 from "clsx";
7256
- import { jsx as jsx79, jsxs as jsxs53 } from "react/jsx-runtime";
7941
+ import clsx60 from "clsx";
7942
+ import { jsx as jsx80, jsxs as jsxs54 } from "react/jsx-runtime";
7257
7943
  var SIZE11 = {
7258
7944
  sm: { band: 14, gap: 6, label: "text-body-tiny" },
7259
7945
  md: { band: 20, gap: 8, label: "text-body-xs" },
@@ -7280,10 +7966,10 @@ function BarChart({
7280
7966
  );
7281
7967
  const max = Math.max(...categoryTotals, 1);
7282
7968
  const horizontal = orientation === "horizontal";
7283
- return /* @__PURE__ */ jsx79(
7969
+ return /* @__PURE__ */ jsx80(
7284
7970
  "div",
7285
7971
  {
7286
- className: clsx59("flex w-full min-w-0", horizontal ? "flex-col gap-2" : "flex-row items-end gap-3", className),
7972
+ className: clsx60("flex w-full min-w-0", horizontal ? "flex-col gap-2" : "flex-row items-end gap-3", className),
7287
7973
  role: label ? "img" : void 0,
7288
7974
  "aria-label": label,
7289
7975
  "aria-hidden": label ? void 0 : true,
@@ -7293,23 +7979,23 @@ function BarChart({
7293
7979
  value: Math.max(0, s.values[ci] ?? 0),
7294
7980
  color: resolveChartColor(s.color, s.tone, si)
7295
7981
  }));
7296
- return /* @__PURE__ */ jsxs53(
7982
+ return /* @__PURE__ */ jsxs54(
7297
7983
  "div",
7298
7984
  {
7299
- className: clsx59("flex min-w-0", horizontal ? "flex-col gap-1" : "h-full flex-col justify-end gap-1.5"),
7985
+ className: clsx60("flex min-w-0", horizontal ? "flex-col gap-1" : "h-full flex-col justify-end gap-1.5"),
7300
7986
  style: horizontal ? void 0 : { width: perCategory },
7301
7987
  children: [
7302
- showLabels && horizontal && /* @__PURE__ */ jsx79("span", { className: clsx59("truncate text-default-secondary", labelClass2), children: category }),
7303
- /* @__PURE__ */ jsxs53(
7988
+ showLabels && horizontal && /* @__PURE__ */ jsx80("span", { className: clsx60("truncate text-default-secondary", labelClass2), children: category }),
7989
+ /* @__PURE__ */ jsxs54(
7304
7990
  "div",
7305
7991
  {
7306
- className: clsx59("flex", horizontal ? "items-center gap-2" : "w-full flex-1 items-end justify-center"),
7992
+ className: clsx60("flex", horizontal ? "items-center gap-2" : "w-full flex-1 items-end justify-center"),
7307
7993
  style: horizontal ? void 0 : { height: length },
7308
7994
  children: [
7309
- /* @__PURE__ */ jsx79(
7995
+ /* @__PURE__ */ jsx80(
7310
7996
  "div",
7311
7997
  {
7312
- className: clsx59("flex min-w-0", stacked ? "gap-0" : ""),
7998
+ className: clsx60("flex min-w-0", stacked ? "gap-0" : ""),
7313
7999
  style: horizontal ? { width: length, flexDirection: stacked ? "row" : "column", gap: stacked ? 0 : gap } : {
7314
8000
  height: "100%",
7315
8001
  width: perCategory,
@@ -7319,7 +8005,7 @@ function BarChart({
7319
8005
  },
7320
8006
  children: bars.map((bar) => {
7321
8007
  const extent = `${bar.value / max * 100}%`;
7322
- return /* @__PURE__ */ jsx79(
8008
+ return /* @__PURE__ */ jsx80(
7323
8009
  "div",
7324
8010
  {
7325
8011
  title: `${category} \xB7 ${bar.key}: ${bar.value}`,
@@ -7335,11 +8021,11 @@ function BarChart({
7335
8021
  })
7336
8022
  }
7337
8023
  ),
7338
- showValues && horizontal && /* @__PURE__ */ jsx79("span", { className: clsx59("shrink-0 tabular-nums text-default-secondary", labelClass2), children: categoryTotals[ci] })
8024
+ showValues && horizontal && /* @__PURE__ */ jsx80("span", { className: clsx60("shrink-0 tabular-nums text-default-secondary", labelClass2), children: categoryTotals[ci] })
7339
8025
  ]
7340
8026
  }
7341
8027
  ),
7342
- showLabels && !horizontal && /* @__PURE__ */ jsx79("span", { className: clsx59("truncate text-center text-default-secondary", labelClass2), children: category })
8028
+ showLabels && !horizontal && /* @__PURE__ */ jsx80("span", { className: clsx60("truncate text-center text-default-secondary", labelClass2), children: category })
7343
8029
  ]
7344
8030
  },
7345
8031
  category
@@ -7350,8 +8036,8 @@ function BarChart({
7350
8036
  }
7351
8037
 
7352
8038
  // src/components/charts/donut-chart.tsx
7353
- import clsx60 from "clsx";
7354
- import { jsx as jsx80, jsxs as jsxs54 } from "react/jsx-runtime";
8039
+ import clsx61 from "clsx";
8040
+ import { jsx as jsx81, jsxs as jsxs55 } from "react/jsx-runtime";
7355
8041
  var SIZE12 = {
7356
8042
  sm: { box: 88, thickness: 10 },
7357
8043
  md: { box: 128, thickness: 14 },
@@ -7375,8 +8061,8 @@ function DonutChart({
7375
8061
  const visible = segments.filter((s) => s.value > 0);
7376
8062
  const gapLength = visible.length > 1 ? gap / 360 * circumference : 0;
7377
8063
  let offset = 0;
7378
- return /* @__PURE__ */ jsxs54("div", { className: clsx60("relative inline-flex shrink-0 items-center justify-center", className), children: [
7379
- /* @__PURE__ */ jsxs54(
8064
+ return /* @__PURE__ */ jsxs55("div", { className: clsx61("relative inline-flex shrink-0 items-center justify-center", className), children: [
8065
+ /* @__PURE__ */ jsxs55(
7380
8066
  "svg",
7381
8067
  {
7382
8068
  width: box,
@@ -7387,7 +8073,7 @@ function DonutChart({
7387
8073
  "aria-hidden": label ? void 0 : true,
7388
8074
  className: "block -rotate-90",
7389
8075
  children: [
7390
- /* @__PURE__ */ jsx80("circle", { cx: box / 2, cy: box / 2, r: radius, fill: "none", stroke: CHART_TRACK, strokeWidth: ring }),
8076
+ /* @__PURE__ */ jsx81("circle", { cx: box / 2, cy: box / 2, r: radius, fill: "none", stroke: CHART_TRACK, strokeWidth: ring }),
7391
8077
  total > 0 && segments.map((segment, i) => {
7392
8078
  const fraction = Math.max(0, segment.value) / total;
7393
8079
  const length = Math.max(0, fraction * circumference - gapLength);
@@ -7395,7 +8081,7 @@ function DonutChart({
7395
8081
  const thisOffset = offset;
7396
8082
  offset += fraction * circumference;
7397
8083
  if (segment.value <= 0) return null;
7398
- return /* @__PURE__ */ jsx80(
8084
+ return /* @__PURE__ */ jsx81(
7399
8085
  "circle",
7400
8086
  {
7401
8087
  cx: box / 2,
@@ -7414,16 +8100,16 @@ function DonutChart({
7414
8100
  ]
7415
8101
  }
7416
8102
  ),
7417
- (centerValue != null || centerLabel != null) && /* @__PURE__ */ jsxs54("div", { className: "absolute inset-0 flex flex-col items-center justify-center text-center", children: [
7418
- centerValue != null && /* @__PURE__ */ jsx80("span", { className: "text-subheading-sm font-bold leading-none text-default", children: centerValue }),
7419
- centerLabel != null && /* @__PURE__ */ jsx80("span", { className: "mt-0.5 text-body-tiny text-default-secondary", children: centerLabel })
8103
+ (centerValue != null || centerLabel != null) && /* @__PURE__ */ jsxs55("div", { className: "absolute inset-0 flex flex-col items-center justify-center text-center", children: [
8104
+ centerValue != null && /* @__PURE__ */ jsx81("span", { className: "text-subheading-sm font-bold leading-none text-default", children: centerValue }),
8105
+ centerLabel != null && /* @__PURE__ */ jsx81("span", { className: "mt-0.5 text-body-tiny text-default-secondary", children: centerLabel })
7420
8106
  ] })
7421
8107
  ] });
7422
8108
  }
7423
8109
 
7424
8110
  // src/components/charts/radial-gauge.tsx
7425
- import clsx61 from "clsx";
7426
- import { jsx as jsx81, jsxs as jsxs55 } from "react/jsx-runtime";
8111
+ import clsx62 from "clsx";
8112
+ import { jsx as jsx82, jsxs as jsxs56 } from "react/jsx-runtime";
7427
8113
  var SIZE13 = {
7428
8114
  sm: { box: 72, thickness: 8, value: "text-body-sm" },
7429
8115
  md: { box: 104, thickness: 11, value: "text-subheading-sm" },
@@ -7452,8 +8138,8 @@ function RadialGauge({
7452
8138
  const fraction = max > 0 ? Math.min(1, Math.max(0, value / max)) : 0;
7453
8139
  const stroke = resolveChartColor(color, tone);
7454
8140
  const rotation = -90 + (360 - clampedSweep) / 2;
7455
- return /* @__PURE__ */ jsxs55("div", { className: clsx61("relative inline-flex shrink-0 items-center justify-center", className), children: [
7456
- /* @__PURE__ */ jsxs55(
8141
+ return /* @__PURE__ */ jsxs56("div", { className: clsx62("relative inline-flex shrink-0 items-center justify-center", className), children: [
8142
+ /* @__PURE__ */ jsxs56(
7457
8143
  "svg",
7458
8144
  {
7459
8145
  width: box,
@@ -7465,7 +8151,7 @@ function RadialGauge({
7465
8151
  className: "block",
7466
8152
  style: { transform: `rotate(${rotation}deg)` },
7467
8153
  children: [
7468
- /* @__PURE__ */ jsx81(
8154
+ /* @__PURE__ */ jsx82(
7469
8155
  "circle",
7470
8156
  {
7471
8157
  cx: box / 2,
@@ -7478,7 +8164,7 @@ function RadialGauge({
7478
8164
  strokeLinecap: "round"
7479
8165
  }
7480
8166
  ),
7481
- /* @__PURE__ */ jsx81(
8167
+ /* @__PURE__ */ jsx82(
7482
8168
  "circle",
7483
8169
  {
7484
8170
  cx: box / 2,
@@ -7495,17 +8181,17 @@ function RadialGauge({
7495
8181
  ]
7496
8182
  }
7497
8183
  ),
7498
- /* @__PURE__ */ jsxs55("div", { className: "absolute inset-0 flex flex-col items-center justify-center text-center", children: [
7499
- children === void 0 ? /* @__PURE__ */ jsx81("span", { className: clsx61("font-bold leading-none text-default", preset.value), children: value }) : children,
7500
- centerLabel != null && /* @__PURE__ */ jsx81("span", { className: "mt-0.5 text-body-tiny text-default-secondary", children: centerLabel })
8184
+ /* @__PURE__ */ jsxs56("div", { className: "absolute inset-0 flex flex-col items-center justify-center text-center", children: [
8185
+ children === void 0 ? /* @__PURE__ */ jsx82("span", { className: clsx62("font-bold leading-none text-default", preset.value), children: value }) : children,
8186
+ centerLabel != null && /* @__PURE__ */ jsx82("span", { className: "mt-0.5 text-body-tiny text-default-secondary", children: centerLabel })
7501
8187
  ] })
7502
8188
  ] });
7503
8189
  }
7504
8190
 
7505
8191
  // src/components/charts/sparkline.tsx
7506
- import { useId as useId18 } from "react";
7507
- import clsx62 from "clsx";
7508
- import { Fragment as Fragment12, jsx as jsx82, jsxs as jsxs56 } from "react/jsx-runtime";
8192
+ import { useId as useId19 } from "react";
8193
+ import clsx63 from "clsx";
8194
+ import { Fragment as Fragment13, jsx as jsx83, jsxs as jsxs57 } from "react/jsx-runtime";
7509
8195
  var SIZE14 = {
7510
8196
  sm: { width: 80, height: 24 },
7511
8197
  md: { width: 120, height: 36 },
@@ -7525,7 +8211,7 @@ function Sparkline({
7525
8211
  label,
7526
8212
  className
7527
8213
  }) {
7528
- const gradientId = useId18();
8214
+ const gradientId = useId19();
7529
8215
  if (data.length < 2) return null;
7530
8216
  const w = width ?? SIZE14[size].width;
7531
8217
  const h = height ?? SIZE14[size].height;
@@ -7543,7 +8229,7 @@ function Sparkline({
7543
8229
  const points = coords.map((p) => `${p.x.toFixed(2)},${p.y.toFixed(2)}`).join(" ");
7544
8230
  const areaPath = `M ${points.split(" ").join(" L ")} L ${coords[coords.length - 1].x.toFixed(2)},${h} L ${coords[0].x.toFixed(2)},${h} Z`;
7545
8231
  const last = coords[coords.length - 1];
7546
- return /* @__PURE__ */ jsxs56(
8232
+ return /* @__PURE__ */ jsxs57(
7547
8233
  "svg",
7548
8234
  {
7549
8235
  width: stretch ? void 0 : w,
@@ -7554,16 +8240,16 @@ function Sparkline({
7554
8240
  role: label ? "img" : void 0,
7555
8241
  "aria-label": label,
7556
8242
  "aria-hidden": label ? void 0 : true,
7557
- className: clsx62("block", stretch ? "h-full w-full" : "shrink-0", className),
8243
+ className: clsx63("block", stretch ? "h-full w-full" : "shrink-0", className),
7558
8244
  children: [
7559
- variant === "area" && /* @__PURE__ */ jsxs56(Fragment12, { children: [
7560
- /* @__PURE__ */ jsx82("defs", { children: /* @__PURE__ */ jsxs56("linearGradient", { id: gradientId, x1: "0", y1: "0", x2: "0", y2: "1", children: [
7561
- /* @__PURE__ */ jsx82("stop", { offset: "0%", stopColor: stroke, stopOpacity: 0.24 }),
7562
- /* @__PURE__ */ jsx82("stop", { offset: "100%", stopColor: stroke, stopOpacity: 0 })
8245
+ variant === "area" && /* @__PURE__ */ jsxs57(Fragment13, { children: [
8246
+ /* @__PURE__ */ jsx83("defs", { children: /* @__PURE__ */ jsxs57("linearGradient", { id: gradientId, x1: "0", y1: "0", x2: "0", y2: "1", children: [
8247
+ /* @__PURE__ */ jsx83("stop", { offset: "0%", stopColor: stroke, stopOpacity: 0.24 }),
8248
+ /* @__PURE__ */ jsx83("stop", { offset: "100%", stopColor: stroke, stopOpacity: 0 })
7563
8249
  ] }) }),
7564
- /* @__PURE__ */ jsx82("path", { d: areaPath, fill: `url(#${gradientId})` })
8250
+ /* @__PURE__ */ jsx83("path", { d: areaPath, fill: `url(#${gradientId})` })
7565
8251
  ] }),
7566
- /* @__PURE__ */ jsx82(
8252
+ /* @__PURE__ */ jsx83(
7567
8253
  "polyline",
7568
8254
  {
7569
8255
  points,
@@ -7575,7 +8261,7 @@ function Sparkline({
7575
8261
  fill: "none"
7576
8262
  }
7577
8263
  ),
7578
- showEndDot && /* @__PURE__ */ jsx82(
8264
+ showEndDot && /* @__PURE__ */ jsx83(
7579
8265
  "circle",
7580
8266
  {
7581
8267
  cx: last.x,
@@ -7592,8 +8278,8 @@ function Sparkline({
7592
8278
  }
7593
8279
 
7594
8280
  // src/components/charts/mini-bar-chart.tsx
7595
- import clsx63 from "clsx";
7596
- import { jsx as jsx83 } from "react/jsx-runtime";
8281
+ import clsx64 from "clsx";
8282
+ import { jsx as jsx84 } from "react/jsx-runtime";
7597
8283
  var SIZE15 = {
7598
8284
  sm: { width: 80, height: 32, gap: 2 },
7599
8285
  md: { width: 120, height: 48, gap: 3 },
@@ -7629,7 +8315,7 @@ function MiniBarChart({
7629
8315
  const span = vertical ? w : h;
7630
8316
  const extent = vertical ? h : w;
7631
8317
  const barThickness = (span - g * (bars.length - 1)) / bars.length;
7632
- return /* @__PURE__ */ jsx83(
8318
+ return /* @__PURE__ */ jsx84(
7633
8319
  "svg",
7634
8320
  {
7635
8321
  width: stretch ? void 0 : w,
@@ -7640,11 +8326,11 @@ function MiniBarChart({
7640
8326
  role: label ? "img" : void 0,
7641
8327
  "aria-label": label,
7642
8328
  "aria-hidden": label ? void 0 : true,
7643
- className: clsx63("block", stretch ? "h-full w-full" : "shrink-0", className),
8329
+ className: clsx64("block", stretch ? "h-full w-full" : "shrink-0", className),
7644
8330
  children: bars.map((v, i) => {
7645
8331
  const magnitude = Math.max(2, v / max * extent);
7646
8332
  const offset = i * (barThickness + g);
7647
- return /* @__PURE__ */ jsx83(
8333
+ return /* @__PURE__ */ jsx84(
7648
8334
  "rect",
7649
8335
  {
7650
8336
  x: (vertical ? offset : 0).toFixed(2),
@@ -7662,21 +8348,21 @@ function MiniBarChart({
7662
8348
  }
7663
8349
 
7664
8350
  // src/components/charts/chart-legend.tsx
7665
- import clsx65 from "clsx";
8351
+ import clsx66 from "clsx";
7666
8352
 
7667
8353
  // src/components/charts/legend-dot.tsx
7668
- import clsx64 from "clsx";
7669
- import { jsx as jsx84 } from "react/jsx-runtime";
8354
+ import clsx65 from "clsx";
8355
+ import { jsx as jsx85 } from "react/jsx-runtime";
7670
8356
  var SHAPE = {
7671
8357
  dot: { sm: "size-1.5 rounded-full", md: "size-2 rounded-full" },
7672
8358
  square: { sm: "size-1.5 rounded-[2px]", md: "size-2 rounded-[3px]" },
7673
8359
  line: { sm: "h-0.5 w-3 rounded-full", md: "h-0.5 w-4 rounded-full" }
7674
8360
  };
7675
8361
  function LegendDot({ tone, color, hue, size = "md", shape = "dot", className }) {
7676
- return /* @__PURE__ */ jsx84(
8362
+ return /* @__PURE__ */ jsx85(
7677
8363
  "span",
7678
8364
  {
7679
- className: clsx64("inline-block shrink-0", SHAPE[shape][size], className),
8365
+ className: clsx65("inline-block shrink-0", SHAPE[shape][size], className),
7680
8366
  style: { backgroundColor: color || !hue ? resolveChartColor(color, tone) : `var(--badge-${hue}-text)` },
7681
8367
  "aria-hidden": true
7682
8368
  }
@@ -7684,7 +8370,7 @@ function LegendDot({ tone, color, hue, size = "md", shape = "dot", className })
7684
8370
  }
7685
8371
 
7686
8372
  // src/components/charts/chart-legend.tsx
7687
- import { jsx as jsx85, jsxs as jsxs57 } from "react/jsx-runtime";
8373
+ import { jsx as jsx86, jsxs as jsxs58 } from "react/jsx-runtime";
7688
8374
  function ChartLegend({
7689
8375
  items,
7690
8376
  orientation = "vertical",
@@ -7693,23 +8379,23 @@ function ChartLegend({
7693
8379
  className
7694
8380
  }) {
7695
8381
  const horizontal = orientation === "horizontal";
7696
- return /* @__PURE__ */ jsx85(
8382
+ return /* @__PURE__ */ jsx86(
7697
8383
  "div",
7698
8384
  {
7699
- className: clsx65(
8385
+ className: clsx66(
7700
8386
  horizontal ? "flex flex-wrap items-center gap-x-4 gap-y-2" : "flex flex-col gap-3",
7701
8387
  className
7702
8388
  ),
7703
- children: items.map((item, i) => /* @__PURE__ */ jsxs57(
8389
+ children: items.map((item, i) => /* @__PURE__ */ jsxs58(
7704
8390
  "div",
7705
8391
  {
7706
- className: clsx65("flex items-center gap-2", horizontal ? "min-w-0" : "justify-between"),
8392
+ className: clsx66("flex items-center gap-2", horizontal ? "min-w-0" : "justify-between"),
7707
8393
  children: [
7708
- /* @__PURE__ */ jsxs57("div", { className: "flex min-w-0 items-center gap-2", children: [
7709
- /* @__PURE__ */ jsx85(LegendDot, { color: resolveChartColor(item.color, item.tone, i), size, shape }),
7710
- /* @__PURE__ */ jsx85("span", { className: "truncate text-body-xs text-default-secondary", children: item.label })
8394
+ /* @__PURE__ */ jsxs58("div", { className: "flex min-w-0 items-center gap-2", children: [
8395
+ /* @__PURE__ */ jsx86(LegendDot, { color: resolveChartColor(item.color, item.tone, i), size, shape }),
8396
+ /* @__PURE__ */ jsx86("span", { className: "truncate text-body-xs text-default-secondary", children: item.label })
7711
8397
  ] }),
7712
- item.count != null && /* @__PURE__ */ jsx85("span", { className: "shrink-0 text-body-xs font-semibold tabular-nums text-default", children: item.count })
8398
+ item.count != null && /* @__PURE__ */ jsx86("span", { className: "shrink-0 text-body-xs font-semibold tabular-nums text-default", children: item.count })
7713
8399
  ]
7714
8400
  },
7715
8401
  item.label
@@ -7719,9 +8405,9 @@ function ChartLegend({
7719
8405
  }
7720
8406
 
7721
8407
  // src/components/charts/trend-label.tsx
7722
- import clsx66 from "clsx";
8408
+ import clsx67 from "clsx";
7723
8409
  import { TrendingDownIcon, TrendingUpIcon } from "lucide-react";
7724
- import { jsx as jsx86, jsxs as jsxs58 } from "react/jsx-runtime";
8410
+ import { jsx as jsx87, jsxs as jsxs59 } from "react/jsx-runtime";
7725
8411
  var SIZE16 = {
7726
8412
  sm: "text-body-xs",
7727
8413
  md: "text-body-sm",
@@ -7755,10 +8441,10 @@ function TrendLabel({
7755
8441
  const flat = value === 0;
7756
8442
  const good = direction === "up-is-good" ? rising : !rising;
7757
8443
  const Arrow = rising ? TrendingUpIcon : TrendingDownIcon;
7758
- return /* @__PURE__ */ jsxs58(
8444
+ return /* @__PURE__ */ jsxs59(
7759
8445
  "span",
7760
8446
  {
7761
- className: clsx66(
8447
+ className: clsx67(
7762
8448
  "inline-flex items-center gap-1 whitespace-nowrap",
7763
8449
  SIZE16[size],
7764
8450
  WEIGHT2[weight ?? weightBySize[size]],
@@ -7767,7 +8453,7 @@ function TrendLabel({
7767
8453
  ),
7768
8454
  style: color ? { color } : void 0,
7769
8455
  children: [
7770
- showArrow && !flat && /* @__PURE__ */ jsx86(Arrow, { className: clsx66("shrink-0", ICON_SIZE[size]), "aria-hidden": true }),
8456
+ showArrow && !flat && /* @__PURE__ */ jsx87(Arrow, { className: clsx67("shrink-0", ICON_SIZE[size]), "aria-hidden": true }),
7771
8457
  rising ? "+" : "",
7772
8458
  value,
7773
8459
  suffix
@@ -7777,9 +8463,9 @@ function TrendLabel({
7777
8463
  }
7778
8464
 
7779
8465
  // src/components/lists/listbox.tsx
7780
- import { Fragment as Fragment13, useEffect as useEffect11, useId as useId19, useMemo as useMemo11 } from "react";
7781
- import clsx67 from "clsx";
7782
- import { jsx as jsx87, jsxs as jsxs59 } from "react/jsx-runtime";
8466
+ import { Fragment as Fragment14, useEffect as useEffect12, useId as useId20, useMemo as useMemo12 } from "react";
8467
+ import clsx68 from "clsx";
8468
+ import { jsx as jsx88, jsxs as jsxs60 } from "react/jsx-runtime";
7783
8469
  var isGroup2 = (entry) => "options" in entry;
7784
8470
  function Listbox({
7785
8471
  options,
@@ -7792,13 +8478,13 @@ function Listbox({
7792
8478
  empty,
7793
8479
  className
7794
8480
  }) {
7795
- const id = useId19();
8481
+ const id = useId20();
7796
8482
  const [value, setValue] = useControllableState({
7797
8483
  value: valueProp,
7798
8484
  defaultValue,
7799
8485
  onChange: onValueChange
7800
8486
  });
7801
- const flat = useMemo11(
8487
+ const flat = useMemo12(
7802
8488
  () => options.flatMap((entry) => isGroup2(entry) ? entry.options : [entry]),
7803
8489
  [options]
7804
8490
  );
@@ -7810,7 +8496,7 @@ function Listbox({
7810
8496
  defaultIndex: Math.max(0, selectedIndex)
7811
8497
  });
7812
8498
  const { setActiveIndex } = roving;
7813
- useEffect11(() => {
8499
+ useEffect12(() => {
7814
8500
  if (selectedIndex >= 0) setActiveIndex(selectedIndex);
7815
8501
  }, [selectedIndex, setActiveIndex]);
7816
8502
  let index = -1;
@@ -7825,7 +8511,7 @@ function Listbox({
7825
8511
  const select = () => {
7826
8512
  if (!option.disabled) setValue(option.value);
7827
8513
  };
7828
- return /* @__PURE__ */ jsxs59(
8514
+ return /* @__PURE__ */ jsxs60(
7829
8515
  "div",
7830
8516
  {
7831
8517
  ref: item.ref,
@@ -7846,7 +8532,7 @@ function Listbox({
7846
8532
  select();
7847
8533
  }
7848
8534
  },
7849
- className: clsx67(
8535
+ className: clsx68(
7850
8536
  "flex w-full cursor-pointer items-center gap-2.5 border-b border-default bg-default px-4 py-2 text-left text-body-xs text-default",
7851
8537
  "hover:bg-default-secondary",
7852
8538
  "data-[state=selected]:bg-brand-tertiary data-[state=selected]:font-semibold",
@@ -7854,17 +8540,17 @@ function Listbox({
7854
8540
  FOCUS_RING_INSET
7855
8541
  ),
7856
8542
  children: [
7857
- /* @__PURE__ */ jsx87("span", { className: "min-w-0 flex-1", children: option.label }),
7858
- option.meta !== void 0 && /* @__PURE__ */ jsx87("span", { className: "shrink-0 whitespace-nowrap font-normal text-default-secondary", children: option.meta })
8543
+ /* @__PURE__ */ jsx88("span", { className: "min-w-0 flex-1", children: option.label }),
8544
+ option.meta !== void 0 && /* @__PURE__ */ jsx88("span", { className: "shrink-0 whitespace-nowrap font-normal text-default-secondary", children: option.meta })
7859
8545
  ]
7860
8546
  },
7861
8547
  option.value
7862
8548
  );
7863
8549
  };
7864
8550
  if (flat.length === 0 && empty) {
7865
- return /* @__PURE__ */ jsx87("div", { className: cn("px-4 py-6 text-center text-body-xs text-default-secondary", className), children: empty });
8551
+ return /* @__PURE__ */ jsx88("div", { className: cn("px-4 py-6 text-center text-body-xs text-default-secondary", className), children: empty });
7866
8552
  }
7867
- return /* @__PURE__ */ jsx87(
8553
+ return /* @__PURE__ */ jsx88(
7868
8554
  "div",
7869
8555
  {
7870
8556
  role: "listbox",
@@ -7873,10 +8559,10 @@ function Listbox({
7873
8559
  className: cn(maxHeight !== void 0 && ["overflow-auto overscroll-contain", SCROLLBAR_CLASSES], className),
7874
8560
  style: maxHeight !== void 0 ? { maxHeight } : void 0,
7875
8561
  children: options.map((entry, groupIndex) => {
7876
- if (!isGroup2(entry)) return /* @__PURE__ */ jsx87(Fragment13, { children: renderOption(entry) }, entry.value);
8562
+ if (!isGroup2(entry)) return /* @__PURE__ */ jsx88(Fragment14, { children: renderOption(entry) }, entry.value);
7877
8563
  const headerId = `${id}-group-${groupIndex}`;
7878
- return /* @__PURE__ */ jsxs59("div", { role: "group", "aria-labelledby": headerId, children: [
7879
- /* @__PURE__ */ jsx87("div", { id: headerId, className: "border-b border-default bg-default-secondary px-4 py-2", children: /* @__PURE__ */ jsx87(EyebrowLabel, { children: entry.label }) }),
8564
+ return /* @__PURE__ */ jsxs60("div", { role: "group", "aria-labelledby": headerId, children: [
8565
+ /* @__PURE__ */ jsx88("div", { id: headerId, className: "border-b border-default bg-default-secondary px-4 py-2", children: /* @__PURE__ */ jsx88(EyebrowLabel, { children: entry.label }) }),
7880
8566
  entry.options.map(renderOption)
7881
8567
  ] }, `${groupIndex}-${entry.label}`);
7882
8568
  })
@@ -7885,9 +8571,9 @@ function Listbox({
7885
8571
  }
7886
8572
 
7887
8573
  // src/components/lists/list-row.tsx
7888
- import clsx68 from "clsx";
7889
- import { Fragment as Fragment14, jsx as jsx88, jsxs as jsxs60 } from "react/jsx-runtime";
7890
- var DENSITY = {
8574
+ import clsx69 from "clsx";
8575
+ import { Fragment as Fragment15, jsx as jsx89, jsxs as jsxs61 } from "react/jsx-runtime";
8576
+ var DENSITY2 = {
7891
8577
  default: {
7892
8578
  pad: "py-4",
7893
8579
  gap: "gap-3",
@@ -7926,7 +8612,7 @@ function ListRow({
7926
8612
  "aria-label": ariaLabel,
7927
8613
  className
7928
8614
  }) {
7929
- const d = DENSITY[density];
8615
+ const d = DENSITY2[density];
7930
8616
  const hasTitleLine = Boolean(leading || title != null || titleMeta || meta);
7931
8617
  const clickable = Boolean(onClick) && !asChild;
7932
8618
  const interactive = clickable || asChild;
@@ -7947,24 +8633,24 @@ function ListRow({
7947
8633
  className
7948
8634
  )
7949
8635
  };
7950
- const body = /* @__PURE__ */ jsxs60(Fragment14, { children: [
7951
- /* @__PURE__ */ jsxs60("div", { className: clsx68("flex min-w-0 flex-1 flex-col", d.gap), children: [
7952
- hasTitleLine && /* @__PURE__ */ jsxs60("div", { className: "flex items-center justify-between gap-2", children: [
7953
- /* @__PURE__ */ jsxs60("div", { className: "flex min-w-0 items-center gap-2", children: [
8636
+ const body = /* @__PURE__ */ jsxs61(Fragment15, { children: [
8637
+ /* @__PURE__ */ jsxs61("div", { className: clsx69("flex min-w-0 flex-1 flex-col", d.gap), children: [
8638
+ hasTitleLine && /* @__PURE__ */ jsxs61("div", { className: "flex items-center justify-between gap-2", children: [
8639
+ /* @__PURE__ */ jsxs61("div", { className: "flex min-w-0 items-center gap-2", children: [
7954
8640
  leading,
7955
- title != null && /* @__PURE__ */ jsx88("span", { className: clsx68("truncate", d.title), children: title }),
7956
- titleMeta && /* @__PURE__ */ jsx88("span", { className: "shrink-0", children: titleMeta })
8641
+ title != null && /* @__PURE__ */ jsx89("span", { className: clsx69("truncate", d.title), children: title }),
8642
+ titleMeta && /* @__PURE__ */ jsx89("span", { className: "shrink-0", children: titleMeta })
7957
8643
  ] }),
7958
- meta && /* @__PURE__ */ jsx88("span", { className: "shrink-0", children: meta })
8644
+ meta && /* @__PURE__ */ jsx89("span", { className: "shrink-0", children: meta })
7959
8645
  ] }),
7960
- description && /* @__PURE__ */ jsx88("p", { className: d.description, children: description }),
8646
+ description && /* @__PURE__ */ jsx89("p", { className: d.description, children: description }),
7961
8647
  footer && // These two wrappers are propagation barriers, not controls — they add no
7962
8648
  // behaviour of their own and must not be focusable or take a role.
7963
8649
  // eslint-disable-next-line jsx-a11y/no-static-element-interactions
7964
- /* @__PURE__ */ jsx88("div", { onClick: stopIfInteractive, onKeyDown: stopIfInteractive, children: footer })
8650
+ /* @__PURE__ */ jsx89("div", { onClick: stopIfInteractive, onKeyDown: stopIfInteractive, children: footer })
7965
8651
  ] }),
7966
8652
  trailing && // eslint-disable-next-line jsx-a11y/no-static-element-interactions
7967
- /* @__PURE__ */ jsx88(
8653
+ /* @__PURE__ */ jsx89(
7968
8654
  "div",
7969
8655
  {
7970
8656
  className: "ml-3 flex shrink-0 items-center self-center",
@@ -7975,7 +8661,7 @@ function ListRow({
7975
8661
  )
7976
8662
  ] });
7977
8663
  if (asChild) {
7978
- return /* @__PURE__ */ jsx88(
8664
+ return /* @__PURE__ */ jsx89(
7979
8665
  Slot,
7980
8666
  {
7981
8667
  ...rootProps,
@@ -7988,7 +8674,7 @@ function ListRow({
7988
8674
  }
7989
8675
  );
7990
8676
  }
7991
- return /* @__PURE__ */ jsx88(
8677
+ return /* @__PURE__ */ jsx89(
7992
8678
  Tag,
7993
8679
  {
7994
8680
  ...rootProps,
@@ -8017,11 +8703,11 @@ function refusePress(event) {
8017
8703
  }
8018
8704
 
8019
8705
  // src/components/lists/file-row.tsx
8020
- import clsx69 from "clsx";
8706
+ import clsx70 from "clsx";
8021
8707
  import { DownloadIcon, Trash2Icon } from "lucide-react";
8022
- import { jsx as jsx89, jsxs as jsxs61 } from "react/jsx-runtime";
8708
+ import { jsx as jsx90, jsxs as jsxs62 } from "react/jsx-runtime";
8023
8709
  function FileTypeBadge({ type }) {
8024
- return /* @__PURE__ */ jsx89("span", { className: "flex size-[34px] shrink-0 items-center justify-center rounded-md bg-brand-tertiary text-body-tiny font-semibold text-brand", children: type });
8710
+ return /* @__PURE__ */ jsx90("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 });
8025
8711
  }
8026
8712
  function FileRow({
8027
8713
  name,
@@ -8035,24 +8721,24 @@ function FileRow({
8035
8721
  actions,
8036
8722
  className
8037
8723
  }) {
8038
- const lead = leading ?? (fileType ? /* @__PURE__ */ jsx89(FileTypeBadge, { type: fileType }) : null);
8039
- return /* @__PURE__ */ jsxs61(
8724
+ const lead = leading ?? (fileType ? /* @__PURE__ */ jsx90(FileTypeBadge, { type: fileType }) : null);
8725
+ return /* @__PURE__ */ jsxs62(
8040
8726
  "div",
8041
8727
  {
8042
- className: clsx69(
8728
+ className: clsx70(
8043
8729
  "flex items-center gap-3 rounded-lg border border-default bg-default px-3 py-2.5",
8044
8730
  className
8045
8731
  ),
8046
8732
  children: [
8047
8733
  lead,
8048
- /* @__PURE__ */ jsxs61("div", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
8049
- /* @__PURE__ */ jsx89("span", { className: "truncate text-body-sm font-medium text-default", children: name }),
8050
- detail && /* @__PURE__ */ jsx89("span", { className: "text-body-xs text-default-secondary", children: detail })
8734
+ /* @__PURE__ */ jsxs62("div", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
8735
+ /* @__PURE__ */ jsx90("span", { className: "truncate text-body-sm font-medium text-default", children: name }),
8736
+ detail && /* @__PURE__ */ jsx90("span", { className: "text-body-xs text-default-secondary", children: detail })
8051
8737
  ] }),
8052
- (onDownload || onRemove || actions) && /* @__PURE__ */ jsxs61("div", { className: "flex shrink-0 items-center gap-1", children: [
8053
- onDownload && /* @__PURE__ */ jsx89(Tooltip, { title: downloadLabel, children: /* @__PURE__ */ jsx89(IconButton, { variant: "subtle", size: "sm", "aria-label": `${downloadLabel} ${name}`, onClick: onDownload, className: "touch-hit", children: /* @__PURE__ */ jsx89(DownloadIcon, { "aria-hidden": true }) }) }),
8054
- onRemove && /* @__PURE__ */ jsx89(Tooltip, { title: removeLabel, children: /* @__PURE__ */ jsx89(IconButton, { variant: "subtle", size: "sm", "aria-label": `${removeLabel} ${name}`, onClick: onRemove, className: "touch-hit", children: /* @__PURE__ */ jsx89(Trash2Icon, { "aria-hidden": true }) }) }),
8055
- actions && /* @__PURE__ */ jsx89("div", { className: "ml-2 flex items-center gap-2", children: actions })
8738
+ (onDownload || onRemove || actions) && /* @__PURE__ */ jsxs62("div", { className: "flex shrink-0 items-center gap-1", children: [
8739
+ onDownload && /* @__PURE__ */ jsx90(Tooltip, { title: downloadLabel, children: /* @__PURE__ */ jsx90(IconButton, { variant: "subtle", size: "sm", "aria-label": `${downloadLabel} ${name}`, onClick: onDownload, className: "touch-hit", children: /* @__PURE__ */ jsx90(DownloadIcon, { "aria-hidden": true }) }) }),
8740
+ onRemove && /* @__PURE__ */ jsx90(Tooltip, { title: removeLabel, children: /* @__PURE__ */ jsx90(IconButton, { variant: "subtle", size: "sm", "aria-label": `${removeLabel} ${name}`, onClick: onRemove, className: "touch-hit", children: /* @__PURE__ */ jsx90(Trash2Icon, { "aria-hidden": true }) }) }),
8741
+ actions && /* @__PURE__ */ jsx90("div", { className: "ml-2 flex items-center gap-2", children: actions })
8056
8742
  ] })
8057
8743
  ]
8058
8744
  }
@@ -8060,8 +8746,8 @@ function FileRow({
8060
8746
  }
8061
8747
 
8062
8748
  // src/components/lists/scored-row.tsx
8063
- import clsx70 from "clsx";
8064
- import { jsx as jsx90, jsxs as jsxs62 } from "react/jsx-runtime";
8749
+ import clsx71 from "clsx";
8750
+ import { jsx as jsx91, jsxs as jsxs63 } from "react/jsx-runtime";
8065
8751
  var GAP3 = {
8066
8752
  sm: "gap-2",
8067
8753
  md: "gap-3",
@@ -8088,11 +8774,11 @@ function ScoredRow({
8088
8774
  align = "center",
8089
8775
  className
8090
8776
  }) {
8091
- return /* @__PURE__ */ jsxs62("div", { className: clsx70("flex w-full", ALIGN3[align], GAP3[gap], className), children: [
8092
- /* @__PURE__ */ jsxs62(
8777
+ return /* @__PURE__ */ jsxs63("div", { className: clsx71("flex w-full", ALIGN3[align], GAP3[gap], className), children: [
8778
+ /* @__PURE__ */ jsxs63(
8093
8779
  "div",
8094
8780
  {
8095
- className: clsx70(
8781
+ className: clsx71(
8096
8782
  "flex min-w-0",
8097
8783
  ALIGN3[align],
8098
8784
  GAP3[leadingGap ?? gap],
@@ -8101,36 +8787,36 @@ function ScoredRow({
8101
8787
  style: titleWidth ? { width: titleWidth } : void 0,
8102
8788
  children: [
8103
8789
  leading,
8104
- /* @__PURE__ */ jsxs62("div", { className: "min-w-0 flex-1", children: [
8105
- /* @__PURE__ */ jsx90("p", { className: "truncate text-body-sm font-medium leading-none text-default", children: title }),
8106
- subtitle && /* @__PURE__ */ jsx90("p", { className: "mt-0.5 truncate text-body-xs text-default-secondary", children: subtitle })
8790
+ /* @__PURE__ */ jsxs63("div", { className: "min-w-0 flex-1", children: [
8791
+ /* @__PURE__ */ jsx91("p", { className: "truncate text-body-sm font-medium leading-none text-default", children: title }),
8792
+ subtitle && /* @__PURE__ */ jsx91("p", { className: "mt-0.5 truncate text-body-xs text-default-secondary", children: subtitle })
8107
8793
  ] })
8108
8794
  ]
8109
8795
  }
8110
8796
  ),
8111
- aside && /* @__PURE__ */ jsx90(
8797
+ aside && /* @__PURE__ */ jsx91(
8112
8798
  "div",
8113
8799
  {
8114
- className: clsx70("min-w-0", asideWidth ? "shrink-0" : "flex-1"),
8800
+ className: clsx71("min-w-0", asideWidth ? "shrink-0" : "flex-1"),
8115
8801
  style: asideWidth ? { width: asideWidth } : void 0,
8116
8802
  children: aside
8117
8803
  }
8118
8804
  ),
8119
- meter && /* @__PURE__ */ jsx90(
8805
+ meter && /* @__PURE__ */ jsx91(
8120
8806
  "div",
8121
8807
  {
8122
- className: clsx70("min-w-0", meterWidth ? "shrink-0" : "flex-1"),
8808
+ className: clsx71("min-w-0", meterWidth ? "shrink-0" : "flex-1"),
8123
8809
  style: meterWidth ? { width: meterWidth } : void 0,
8124
8810
  children: meter
8125
8811
  }
8126
8812
  ),
8127
- trailing && /* @__PURE__ */ jsx90("div", { className: "shrink-0 text-right", style: trailingWidth ? { width: trailingWidth } : void 0, children: trailing })
8813
+ trailing && /* @__PURE__ */ jsx91("div", { className: "shrink-0 text-right", style: trailingWidth ? { width: trailingWidth } : void 0, children: trailing })
8128
8814
  ] });
8129
8815
  }
8130
8816
 
8131
8817
  // src/components/lists/numbered-list.tsx
8132
- import clsx71 from "clsx";
8133
- import { jsx as jsx91, jsxs as jsxs63 } from "react/jsx-runtime";
8818
+ import clsx72 from "clsx";
8819
+ import { jsx as jsx92, jsxs as jsxs64 } from "react/jsx-runtime";
8134
8820
  var GAP4 = {
8135
8821
  sm: "gap-2",
8136
8822
  md: "gap-3"
@@ -8144,18 +8830,18 @@ function NumberedList({
8144
8830
  gap = "md",
8145
8831
  className
8146
8832
  }) {
8147
- return /* @__PURE__ */ jsx91("ol", { className: clsx71("flex list-none flex-col p-0", GAP4[gap], className), children: items.map((item, index) => {
8833
+ return /* @__PURE__ */ jsx92("ol", { className: clsx72("flex list-none flex-col p-0", GAP4[gap], className), children: items.map((item, index) => {
8148
8834
  const tone = !item.tone || item.tone === "auto" ? getScoreTone(item.score, { direction }) : item.tone;
8149
- return /* @__PURE__ */ jsxs63("li", { className: "flex w-full shrink-0 flex-col gap-1.5", children: [
8150
- /* @__PURE__ */ jsxs63("div", { className: "flex w-full items-center justify-between", children: [
8151
- /* @__PURE__ */ jsxs63("div", { className: "flex min-w-0 items-center gap-2.5", children: [
8152
- /* @__PURE__ */ jsx91("span", { className: "w-[14px] shrink-0 text-body-xs font-bold text-default-secondary", children: startAt + index }),
8153
- /* @__PURE__ */ jsxs63("div", { className: "flex min-w-0 flex-col gap-px", children: [
8154
- /* @__PURE__ */ jsx91("span", { className: "truncate text-body-sm font-medium leading-none text-default", children: item.title }),
8155
- item.subtitle && /* @__PURE__ */ jsx91("span", { className: "text-body-tiny text-default-tertiary", children: item.subtitle })
8835
+ return /* @__PURE__ */ jsxs64("li", { className: "flex w-full shrink-0 flex-col gap-1.5", children: [
8836
+ /* @__PURE__ */ jsxs64("div", { className: "flex w-full items-center justify-between", children: [
8837
+ /* @__PURE__ */ jsxs64("div", { className: "flex min-w-0 items-center gap-2.5", children: [
8838
+ /* @__PURE__ */ jsx92("span", { className: "w-[14px] shrink-0 text-body-xs font-bold text-default-secondary", children: startAt + index }),
8839
+ /* @__PURE__ */ jsxs64("div", { className: "flex min-w-0 flex-col gap-px", children: [
8840
+ /* @__PURE__ */ jsx92("span", { className: "truncate text-body-sm font-medium leading-none text-default", children: item.title }),
8841
+ item.subtitle && /* @__PURE__ */ jsx92("span", { className: "text-body-tiny text-default-tertiary", children: item.subtitle })
8156
8842
  ] })
8157
8843
  ] }),
8158
- /* @__PURE__ */ jsx91(
8844
+ /* @__PURE__ */ jsx92(
8159
8845
  ScoreValue,
8160
8846
  {
8161
8847
  value: item.score,
@@ -8166,43 +8852,43 @@ function NumberedList({
8166
8852
  }
8167
8853
  )
8168
8854
  ] }),
8169
- /* @__PURE__ */ jsx91(ProgressBar, { value: item.score, tone, "aria-label": `${item.title} score` })
8855
+ /* @__PURE__ */ jsx92(ProgressBar, { value: item.score, tone, "aria-label": `${item.title} score` })
8170
8856
  ] }, `${item.title}-${index}`);
8171
8857
  }) });
8172
8858
  }
8173
8859
 
8174
8860
  // src/components/lists/icon-text-row.tsx
8175
- import clsx72 from "clsx";
8176
- import { jsx as jsx92, jsxs as jsxs64 } from "react/jsx-runtime";
8861
+ import clsx73 from "clsx";
8862
+ import { jsx as jsx93, jsxs as jsxs65 } from "react/jsx-runtime";
8177
8863
  function IconTextRow({ icon, title, detail, className }) {
8178
- return /* @__PURE__ */ jsxs64("div", { className: clsx72("flex items-start gap-3", className), children: [
8179
- /* @__PURE__ */ jsx92("span", { className: "flex size-9 shrink-0 items-center justify-center rounded-full bg-brand-tertiary text-brand", children: icon }),
8180
- /* @__PURE__ */ jsxs64("div", { className: "min-w-0", children: [
8181
- /* @__PURE__ */ jsx92("p", { className: "text-body-sm font-semibold text-default", children: title }),
8182
- /* @__PURE__ */ jsx92("p", { className: "mt-0.5 text-body-xs text-default-secondary", children: detail })
8864
+ return /* @__PURE__ */ jsxs65("div", { className: clsx73("flex items-start gap-3", className), children: [
8865
+ /* @__PURE__ */ jsx93("span", { className: "flex size-9 shrink-0 items-center justify-center rounded-full bg-brand-tertiary text-brand", children: icon }),
8866
+ /* @__PURE__ */ jsxs65("div", { className: "min-w-0", children: [
8867
+ /* @__PURE__ */ jsx93("p", { className: "text-body-sm font-semibold text-default", children: title }),
8868
+ /* @__PURE__ */ jsx93("p", { className: "mt-0.5 text-body-xs text-default-secondary", children: detail })
8183
8869
  ] })
8184
8870
  ] });
8185
8871
  }
8186
8872
 
8187
8873
  // src/components/lists/checklist-row.tsx
8188
- import clsx73 from "clsx";
8874
+ import clsx74 from "clsx";
8189
8875
  import { CheckIcon as CheckIcon5 } from "lucide-react";
8190
- import { jsx as jsx93, jsxs as jsxs65 } from "react/jsx-runtime";
8876
+ import { jsx as jsx94, jsxs as jsxs66 } from "react/jsx-runtime";
8191
8877
  function ChecklistRow({ label, state, className }) {
8192
- return /* @__PURE__ */ jsxs65("li", { "data-state": state, className: clsx73("flex items-center gap-3", className), children: [
8193
- /* @__PURE__ */ jsx93("span", { className: "flex size-5 shrink-0 items-center justify-center", children: state === "done" ? /* @__PURE__ */ jsx93(CheckIcon5, { className: "size-4 text-positive", strokeWidth: 2.5, "aria-hidden": true }) : /* @__PURE__ */ jsx93(
8878
+ return /* @__PURE__ */ jsxs66("li", { "data-state": state, className: clsx74("flex items-center gap-3", className), children: [
8879
+ /* @__PURE__ */ jsx94("span", { className: "flex size-5 shrink-0 items-center justify-center", children: state === "done" ? /* @__PURE__ */ jsx94(CheckIcon5, { className: "size-4 text-positive", strokeWidth: 2.5, "aria-hidden": true }) : /* @__PURE__ */ jsx94(
8194
8880
  "span",
8195
8881
  {
8196
- className: clsx73(
8882
+ className: clsx74(
8197
8883
  "size-3.5 rounded-full border-2",
8198
8884
  state === "active" ? "motion-safe:animate-pulse border-brand-emphasis border-t-transparent" : "border-disabled"
8199
8885
  )
8200
8886
  }
8201
8887
  ) }),
8202
- /* @__PURE__ */ jsx93(
8888
+ /* @__PURE__ */ jsx94(
8203
8889
  "span",
8204
8890
  {
8205
- className: clsx73(
8891
+ className: clsx74(
8206
8892
  "text-body-sm",
8207
8893
  state === "pending" ? "text-default-tertiary" : "font-semibold text-default"
8208
8894
  ),
@@ -8213,22 +8899,22 @@ function ChecklistRow({ label, state, className }) {
8213
8899
  }
8214
8900
 
8215
8901
  // src/components/lists/steps-list.tsx
8216
- import clsx74 from "clsx";
8217
- import { jsx as jsx94, jsxs as jsxs66 } from "react/jsx-runtime";
8902
+ import clsx75 from "clsx";
8903
+ import { jsx as jsx95, jsxs as jsxs67 } from "react/jsx-runtime";
8218
8904
  function StepsList({ steps, className }) {
8219
- return /* @__PURE__ */ jsx94("ol", { className: clsx74("flex flex-col gap-1.5", className), children: steps.map((step, i) => (
8905
+ return /* @__PURE__ */ jsx95("ol", { className: clsx75("flex flex-col gap-1.5", className), children: steps.map((step, i) => (
8220
8906
  // `text-[12px]` was off the type scale; 12 sits midway between Scale 01 (11) and
8221
8907
  // Scale 02 (13), so it rounds up to 13 like every other snap in this pass.
8222
- /* @__PURE__ */ jsxs66("li", { className: "flex items-start gap-2 text-body-xs text-default", children: [
8223
- /* @__PURE__ */ jsx94("span", { className: "mt-0.5 flex size-4 shrink-0 items-center justify-center rounded-full bg-brand-tertiary text-[9px] font-bold text-brand", children: i + 1 }),
8908
+ /* @__PURE__ */ jsxs67("li", { className: "flex items-start gap-2 text-body-xs text-default", children: [
8909
+ /* @__PURE__ */ jsx95("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 }),
8224
8910
  step
8225
8911
  ] }, i)
8226
8912
  )) });
8227
8913
  }
8228
8914
 
8229
8915
  // src/components/lists/detail-item.tsx
8230
- import clsx75 from "clsx";
8231
- import { jsx as jsx95, jsxs as jsxs67 } from "react/jsx-runtime";
8916
+ import clsx76 from "clsx";
8917
+ import { jsx as jsx96, jsxs as jsxs68 } from "react/jsx-runtime";
8232
8918
  var SPAN = {
8233
8919
  1: "",
8234
8920
  2: "sm:col-span-2",
@@ -8245,18 +8931,18 @@ function DetailItem({
8245
8931
  }) {
8246
8932
  const shown = value === null || value === void 0 || value === "" ? "\u2014" : value;
8247
8933
  if (layout === "inline") {
8248
- return /* @__PURE__ */ jsxs67("div", { className: clsx75("flex gap-3 text-body-xs", SPAN[span], className), children: [
8249
- /* @__PURE__ */ jsx95("span", { className: clsx75("shrink-0 text-default-secondary", labelWidth), children: label }),
8250
- /* @__PURE__ */ jsxs67("span", { className: "flex min-w-0 flex-1 flex-col gap-0.5 [overflow-wrap:anywhere]", children: [
8251
- /* @__PURE__ */ jsx95("span", { className: "text-default", children: shown }),
8252
- detail && /* @__PURE__ */ jsx95("span", { className: "text-default-secondary", children: detail })
8934
+ return /* @__PURE__ */ jsxs68("div", { className: clsx76("flex gap-3 text-body-xs", SPAN[span], className), children: [
8935
+ /* @__PURE__ */ jsx96("span", { className: clsx76("shrink-0 text-default-secondary", labelWidth), children: label }),
8936
+ /* @__PURE__ */ jsxs68("span", { className: "flex min-w-0 flex-1 flex-col gap-0.5 [overflow-wrap:anywhere]", children: [
8937
+ /* @__PURE__ */ jsx96("span", { className: "text-default", children: shown }),
8938
+ detail && /* @__PURE__ */ jsx96("span", { className: "text-default-secondary", children: detail })
8253
8939
  ] })
8254
8940
  ] });
8255
8941
  }
8256
- return /* @__PURE__ */ jsxs67("div", { className: clsx75("flex min-w-0 flex-col gap-0.5", SPAN[span], className), children: [
8257
- /* @__PURE__ */ jsx95("p", { className: "text-body-tiny font-medium text-default-secondary", children: label }),
8258
- /* @__PURE__ */ jsx95("p", { className: "text-body-sm font-medium text-default [overflow-wrap:anywhere]", children: shown }),
8259
- detail && /* @__PURE__ */ jsx95("p", { className: "text-body-xs text-default-secondary [overflow-wrap:anywhere]", children: detail })
8942
+ return /* @__PURE__ */ jsxs68("div", { className: clsx76("flex min-w-0 flex-col gap-0.5", SPAN[span], className), children: [
8943
+ /* @__PURE__ */ jsx96("p", { className: "text-body-tiny font-medium text-default-secondary", children: label }),
8944
+ /* @__PURE__ */ jsx96("p", { className: "text-body-sm font-medium text-default [overflow-wrap:anywhere]", children: shown }),
8945
+ detail && /* @__PURE__ */ jsx96("p", { className: "text-body-xs text-default-secondary [overflow-wrap:anywhere]", children: detail })
8260
8946
  ] });
8261
8947
  }
8262
8948
  var COLUMNS3 = {
@@ -8267,38 +8953,38 @@ var COLUMNS3 = {
8267
8953
  4: "grid-cols-2 sm:grid-cols-3 lg:grid-cols-4"
8268
8954
  };
8269
8955
  function DetailGrid({ children, columns = "auto", className }) {
8270
- return /* @__PURE__ */ jsx95("div", { className: clsx75("grid gap-x-4 gap-y-4", COLUMNS3[columns], className), children });
8956
+ return /* @__PURE__ */ jsx96("div", { className: clsx76("grid gap-x-4 gap-y-4", COLUMNS3[columns], className), children });
8271
8957
  }
8272
8958
 
8273
8959
  // src/components/lists/description-list.tsx
8274
- import { useEffect as useEffect12, useState as useState21 } from "react";
8275
- import clsx76 from "clsx";
8960
+ import { useEffect as useEffect13, useState as useState22 } from "react";
8961
+ import clsx77 from "clsx";
8276
8962
  import { CheckIcon as CheckIcon6, CopyIcon } from "lucide-react";
8277
- import { jsx as jsx96, jsxs as jsxs68 } from "react/jsx-runtime";
8963
+ import { jsx as jsx97, jsxs as jsxs69 } from "react/jsx-runtime";
8278
8964
  function DescriptionList({ children, className }) {
8279
- return /* @__PURE__ */ jsx96("dl", { className: cn("flex flex-col gap-3", className), children });
8965
+ return /* @__PURE__ */ jsx97("dl", { className: cn("flex flex-col gap-3", className), children });
8280
8966
  }
8281
8967
  function DescriptionItem({ label, value, copyValue, className }) {
8282
8968
  const shown = value === null || value === void 0 || value === "" ? "\u2014" : value;
8283
- return /* @__PURE__ */ jsxs68("div", { className: cn("flex flex-wrap items-start gap-x-4 gap-y-0.5 text-body-xs", className), children: [
8284
- /* @__PURE__ */ jsx96("dt", { className: "shrink-0 grow-0 basis-28 text-default-secondary", children: label }),
8285
- /* @__PURE__ */ jsxs68("dd", { className: "flex min-w-0 flex-[1_1_10rem] items-start gap-1.5 text-default", children: [
8286
- /* @__PURE__ */ jsx96("span", { className: "min-w-0 [overflow-wrap:anywhere]", children: shown }),
8287
- copyValue && /* @__PURE__ */ jsx96(CopyButton, { value: copyValue, label: `Copy ${label.toLowerCase()}` })
8969
+ return /* @__PURE__ */ jsxs69("div", { className: cn("flex flex-wrap items-start gap-x-4 gap-y-0.5 text-body-xs", className), children: [
8970
+ /* @__PURE__ */ jsx97("dt", { className: "shrink-0 grow-0 basis-28 text-default-secondary", children: label }),
8971
+ /* @__PURE__ */ jsxs69("dd", { className: "flex min-w-0 flex-[1_1_10rem] items-start gap-1.5 text-default", children: [
8972
+ /* @__PURE__ */ jsx97("span", { className: "min-w-0 [overflow-wrap:anywhere]", children: shown }),
8973
+ copyValue && /* @__PURE__ */ jsx97(CopyButton, { value: copyValue, label: `Copy ${label.toLowerCase()}` })
8288
8974
  ] })
8289
8975
  ] });
8290
8976
  }
8291
8977
  function CopyButton({ value, label, copiedLabel = "Copied", className }) {
8292
- const [copied, setCopied] = useState21(false);
8293
- useEffect12(() => {
8978
+ const [copied, setCopied] = useState22(false);
8979
+ useEffect13(() => {
8294
8980
  if (!copied) return;
8295
8981
  const timer = window.setTimeout(() => setCopied(false), 2e3);
8296
8982
  return () => window.clearTimeout(timer);
8297
8983
  }, [copied]);
8298
8984
  return (
8299
8985
  // relative: keeps the sr-only status (absolutely positioned) inside a scrolling container.
8300
- /* @__PURE__ */ jsxs68("span", { className: "relative inline-flex", children: [
8301
- /* @__PURE__ */ jsx96(
8986
+ /* @__PURE__ */ jsxs69("span", { className: "relative inline-flex", children: [
8987
+ /* @__PURE__ */ jsx97(
8302
8988
  IconButton,
8303
8989
  {
8304
8990
  variant: "subtle",
@@ -8312,10 +8998,10 @@ function CopyButton({ value, label, copiedLabel = "Copied", className }) {
8312
8998
  () => void 0
8313
8999
  );
8314
9000
  },
8315
- children: copied ? /* @__PURE__ */ jsx96(CheckIcon6, { "aria-hidden": true }) : /* @__PURE__ */ jsx96(CopyIcon, { "aria-hidden": true })
9001
+ children: copied ? /* @__PURE__ */ jsx97(CheckIcon6, { "aria-hidden": true }) : /* @__PURE__ */ jsx97(CopyIcon, { "aria-hidden": true })
8316
9002
  }
8317
9003
  ),
8318
- /* @__PURE__ */ jsx96("span", { role: "status", className: "sr-only", children: copied ? copiedLabel : "" })
9004
+ /* @__PURE__ */ jsx97("span", { role: "status", className: "sr-only", children: copied ? copiedLabel : "" })
8319
9005
  ] })
8320
9006
  );
8321
9007
  }
@@ -8323,16 +9009,16 @@ function EmailText({ email, className }) {
8323
9009
  const at = email.lastIndexOf("@");
8324
9010
  const local = at > 0 ? email.slice(0, at) : email;
8325
9011
  const domain = at > 0 ? email.slice(at) : "";
8326
- return /* @__PURE__ */ jsxs68("span", { title: email, "data-slot": "email-text", className: clsx76("flex min-w-0 max-w-full", className), children: [
8327
- /* @__PURE__ */ jsx96("span", { className: "min-w-0 overflow-hidden text-ellipsis whitespace-nowrap", children: local }),
8328
- domain && /* @__PURE__ */ jsx96("span", { className: "min-w-0 overflow-hidden text-ellipsis whitespace-nowrap [flex-shrink:0.001]", children: domain })
9012
+ return /* @__PURE__ */ jsxs69("span", { title: email, "data-slot": "email-text", className: clsx77("flex min-w-0 max-w-full", className), children: [
9013
+ /* @__PURE__ */ jsx97("span", { className: "min-w-0 overflow-hidden text-ellipsis whitespace-nowrap", children: local }),
9014
+ domain && /* @__PURE__ */ jsx97("span", { className: "min-w-0 overflow-hidden text-ellipsis whitespace-nowrap [flex-shrink:0.001]", children: domain })
8329
9015
  ] });
8330
9016
  }
8331
9017
 
8332
9018
  // src/components/lists/checked-group-list.tsx
8333
- import clsx77 from "clsx";
9019
+ import clsx78 from "clsx";
8334
9020
  import { CheckIcon as CheckIcon7 } from "lucide-react";
8335
- import { jsx as jsx97, jsxs as jsxs69 } from "react/jsx-runtime";
9021
+ import { jsx as jsx98, jsxs as jsxs70 } from "react/jsx-runtime";
8336
9022
  var COLUMNS4 = {
8337
9023
  1: "columns-1",
8338
9024
  2: "columns-2",
@@ -8346,23 +9032,23 @@ function CheckedGroupList({
8346
9032
  className
8347
9033
  }) {
8348
9034
  if (groups.length === 0) {
8349
- return /* @__PURE__ */ jsx97("p", { className: clsx77("text-body-xs text-default-secondary", className), children: emptyLabel });
9035
+ return /* @__PURE__ */ jsx98("p", { className: clsx78("text-body-xs text-default-secondary", className), children: emptyLabel });
8350
9036
  }
8351
- const glyph = icon === void 0 ? /* @__PURE__ */ jsx97(CheckIcon7, { className: "size-3.5", strokeWidth: 2.5, "aria-hidden": true }) : icon;
8352
- return /* @__PURE__ */ jsx97("div", { className: clsx77(COLUMNS4[columns], "gap-x-6", className), children: groups.map((group) => /* @__PURE__ */ jsxs69("div", { className: "mb-5 break-inside-avoid last:mb-0", children: [
8353
- /* @__PURE__ */ jsx97("p", { className: "mb-2 text-body-tiny font-semibold uppercase tracking-wide text-default-secondary", children: group.label }),
8354
- /* @__PURE__ */ jsx97("ul", { className: "space-y-1.5", children: group.items.map((item) => /* @__PURE__ */ jsxs69("li", { className: "flex items-center gap-2 text-body-xs text-default", children: [
8355
- glyph && /* @__PURE__ */ jsx97("span", { className: "shrink-0", children: glyph }),
9037
+ const glyph = icon === void 0 ? /* @__PURE__ */ jsx98(CheckIcon7, { className: "size-3.5", strokeWidth: 2.5, "aria-hidden": true }) : icon;
9038
+ return /* @__PURE__ */ jsx98("div", { className: clsx78(COLUMNS4[columns], "gap-x-6", className), children: groups.map((group) => /* @__PURE__ */ jsxs70("div", { className: "mb-5 break-inside-avoid last:mb-0", children: [
9039
+ /* @__PURE__ */ jsx98("p", { className: "mb-2 text-body-tiny font-semibold uppercase tracking-wide text-default-secondary", children: group.label }),
9040
+ /* @__PURE__ */ jsx98("ul", { className: "space-y-1.5", children: group.items.map((item) => /* @__PURE__ */ jsxs70("li", { className: "flex items-center gap-2 text-body-xs text-default", children: [
9041
+ glyph && /* @__PURE__ */ jsx98("span", { className: "shrink-0", children: glyph }),
8356
9042
  item
8357
9043
  ] }, item)) })
8358
9044
  ] }, group.label)) });
8359
9045
  }
8360
9046
 
8361
9047
  // src/components/lists/tree-view.tsx
8362
- import { useMemo as useMemo12, useRef as useRef15, useState as useState22 } from "react";
8363
- import clsx78 from "clsx";
8364
- import { ChevronRightIcon as ChevronRightIcon6 } from "lucide-react";
8365
- import { jsx as jsx98, jsxs as jsxs70 } from "react/jsx-runtime";
9048
+ import { useMemo as useMemo13, useRef as useRef15, useState as useState23 } from "react";
9049
+ import clsx79 from "clsx";
9050
+ import { ChevronRightIcon as ChevronRightIcon7 } from "lucide-react";
9051
+ import { jsx as jsx99, jsxs as jsxs71 } from "react/jsx-runtime";
8366
9052
  var ROW = {
8367
9053
  sm: "min-h-8 py-1 text-body-xs",
8368
9054
  md: "min-h-10 py-2 text-body-sm"
@@ -8392,10 +9078,10 @@ function TreeView({
8392
9078
  value: selectedProp,
8393
9079
  defaultValue: defaultSelected
8394
9080
  });
8395
- const [focusedId, setFocusedId] = useState22(null);
9081
+ const [focusedId, setFocusedId] = useState23(null);
8396
9082
  const rowRefs = useRef15(/* @__PURE__ */ new Map());
8397
- const expandedSet = useMemo12(() => new Set(expanded), [expanded]);
8398
- const visible = useMemo12(() => {
9083
+ const expandedSet = useMemo13(() => new Set(expanded), [expanded]);
9084
+ const visible = useMemo13(() => {
8399
9085
  const out = [];
8400
9086
  const walk = (nodes, level, parentId) => {
8401
9087
  for (const item of nodes) {
@@ -8466,7 +9152,7 @@ function TreeView({
8466
9152
  if (!node) return null;
8467
9153
  const children = getChildren?.(item) ?? [];
8468
9154
  const isSelected = selected === id;
8469
- return /* @__PURE__ */ jsxs70(
9155
+ return /* @__PURE__ */ jsxs71(
8470
9156
  "li",
8471
9157
  {
8472
9158
  role: "treeitem",
@@ -8488,7 +9174,7 @@ function TreeView({
8488
9174
  },
8489
9175
  className: "outline-none [&:focus-visible>div]:ring-2 [&:focus-visible>div]:ring-inset [&:focus-visible>div]:ring-brand",
8490
9176
  children: [
8491
- /* @__PURE__ */ jsxs70(
9177
+ /* @__PURE__ */ jsxs71(
8492
9178
  "div",
8493
9179
  {
8494
9180
  onClick: () => {
@@ -8496,7 +9182,7 @@ function TreeView({
8496
9182
  choose(node);
8497
9183
  },
8498
9184
  style: { paddingLeft: 8 + (level - 1) * INDENT },
8499
- className: clsx78(
9185
+ className: clsx79(
8500
9186
  "flex w-full cursor-pointer items-center gap-1.5 rounded-md pr-2 transition-colors",
8501
9187
  ROW[size],
8502
9188
  isSelected ? "bg-brand-secondary text-default" : "text-default hover:bg-default-secondary"
@@ -8506,7 +9192,7 @@ function TreeView({
8506
9192
  // Not a button: the treeitem is the one tab stop, and Left/Right already toggle.
8507
9193
  // A pointer user still needs a target that toggles without selecting.
8508
9194
  // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
8509
- /* @__PURE__ */ jsx98(
9195
+ /* @__PURE__ */ jsx99(
8510
9196
  "span",
8511
9197
  {
8512
9198
  "aria-hidden": true,
@@ -8517,11 +9203,11 @@ function TreeView({
8517
9203
  focus(id);
8518
9204
  },
8519
9205
  className: "flex size-5 shrink-0 items-center justify-center rounded text-icon-default-secondary hover:bg-default-tertiary",
8520
- children: /* @__PURE__ */ jsx98(ChevronRightIcon6, { className: clsx78("size-3.5 transition-transform motion-reduce:transition-none", node.expanded && "rotate-90") })
9206
+ children: /* @__PURE__ */ jsx99(ChevronRightIcon7, { className: clsx79("size-3.5 transition-transform motion-reduce:transition-none", node.expanded && "rotate-90") })
8521
9207
  }
8522
9208
  )
8523
- ) : /* @__PURE__ */ jsx98("span", { "aria-hidden": true, className: "size-5 shrink-0" }),
8524
- /* @__PURE__ */ jsx98("div", { className: "min-w-0 flex-1", children: renderItem(item, {
9209
+ ) : /* @__PURE__ */ jsx99("span", { "aria-hidden": true, className: "size-5 shrink-0" }),
9210
+ /* @__PURE__ */ jsx99("div", { className: "min-w-0 flex-1", children: renderItem(item, {
8525
9211
  level,
8526
9212
  hasChildren: node.hasChildren,
8527
9213
  expanded: node.expanded,
@@ -8530,22 +9216,22 @@ function TreeView({
8530
9216
  ]
8531
9217
  }
8532
9218
  ),
8533
- node.expanded && /* @__PURE__ */ jsx98("ul", { role: "group", className: "m-0 list-none p-0", children: renderLevel(children, level + 1) })
9219
+ node.expanded && /* @__PURE__ */ jsx99("ul", { role: "group", className: "m-0 list-none p-0", children: renderLevel(children, level + 1) })
8534
9220
  ]
8535
9221
  },
8536
9222
  id
8537
9223
  );
8538
9224
  });
8539
- return /* @__PURE__ */ jsx98("ul", { role: "tree", "aria-label": label, className: clsx78("m-0 flex list-none flex-col p-0", className), children: renderLevel(items, 1) });
9225
+ return /* @__PURE__ */ jsx99("ul", { role: "tree", "aria-label": label, className: clsx79("m-0 flex list-none flex-col p-0", className), children: renderLevel(items, 1) });
8540
9226
  }
8541
9227
 
8542
9228
  // src/index.tsx
8543
9229
  export * from "./data-table.js";
8544
9230
 
8545
9231
  // src/components/feedback/inline-alert.tsx
8546
- import clsx79 from "clsx";
9232
+ import clsx80 from "clsx";
8547
9233
  import { CircleCheckBigIcon as CircleCheckBigIcon2, InfoIcon as InfoIcon2, TriangleAlertIcon as TriangleAlertIcon2 } from "lucide-react";
8548
- import { jsx as jsx99, jsxs as jsxs71 } from "react/jsx-runtime";
9234
+ import { jsx as jsx100, jsxs as jsxs72 } from "react/jsx-runtime";
8549
9235
  var toneStyles3 = {
8550
9236
  info: "border-brand-tertiary bg-brand-tertiary text-brand",
8551
9237
  warning: "border-warning-tertiary bg-warning-tertiary text-warning",
@@ -8554,27 +9240,27 @@ var toneStyles3 = {
8554
9240
  neutral: "border-default bg-default text-default-secondary"
8555
9241
  };
8556
9242
  var toneIcons = {
8557
- info: /* @__PURE__ */ jsx99(InfoIcon2, { className: "size-4" }),
8558
- warning: /* @__PURE__ */ jsx99(TriangleAlertIcon2, { className: "size-4" }),
8559
- danger: /* @__PURE__ */ jsx99(TriangleAlertIcon2, { className: "size-4" }),
8560
- positive: /* @__PURE__ */ jsx99(CircleCheckBigIcon2, { className: "size-4" }),
8561
- neutral: /* @__PURE__ */ jsx99(InfoIcon2, { className: "size-4 text-icon-default-secondary" })
9243
+ info: /* @__PURE__ */ jsx100(InfoIcon2, { className: "size-4" }),
9244
+ warning: /* @__PURE__ */ jsx100(TriangleAlertIcon2, { className: "size-4" }),
9245
+ danger: /* @__PURE__ */ jsx100(TriangleAlertIcon2, { className: "size-4" }),
9246
+ positive: /* @__PURE__ */ jsx100(CircleCheckBigIcon2, { className: "size-4" }),
9247
+ neutral: /* @__PURE__ */ jsx100(InfoIcon2, { className: "size-4 text-icon-default-secondary" })
8562
9248
  };
8563
9249
  function InlineAlert({ tone, children, icon, role, className }) {
8564
9250
  const glyph = icon === void 0 ? toneIcons[tone] : icon;
8565
- return /* @__PURE__ */ jsxs71(
9251
+ return /* @__PURE__ */ jsxs72(
8566
9252
  "div",
8567
9253
  {
8568
9254
  "data-tone": tone,
8569
9255
  role: role ?? (tone === "danger" ? "alert" : "status"),
8570
- className: clsx79(
9256
+ className: clsx80(
8571
9257
  "flex items-start gap-3 rounded-xl border p-4 text-body-xs",
8572
9258
  toneStyles3[tone],
8573
9259
  className
8574
9260
  ),
8575
9261
  children: [
8576
- glyph && /* @__PURE__ */ jsx99("span", { "aria-hidden": true, className: "mt-px shrink-0", children: glyph }),
8577
- /* @__PURE__ */ jsx99("div", { className: "min-w-0", children })
9262
+ glyph && /* @__PURE__ */ jsx100("span", { "aria-hidden": true, className: "mt-px shrink-0", children: glyph }),
9263
+ /* @__PURE__ */ jsx100("div", { className: "min-w-0", children })
8578
9264
  ]
8579
9265
  }
8580
9266
  );
@@ -8582,7 +9268,7 @@ function InlineAlert({ tone, children, icon, role, className }) {
8582
9268
 
8583
9269
  // src/components/feedback/error-boundary.tsx
8584
9270
  import { Component } from "react";
8585
- import { jsx as jsx100 } from "react/jsx-runtime";
9271
+ import { jsx as jsx101 } from "react/jsx-runtime";
8586
9272
  var ErrorBoundary = class extends Component {
8587
9273
  constructor() {
8588
9274
  super(...arguments);
@@ -8602,7 +9288,7 @@ var ErrorBoundary = class extends Component {
8602
9288
  }
8603
9289
  render() {
8604
9290
  if (!this.state.error) return this.props.children;
8605
- return this.props.fallback ?? /* @__PURE__ */ jsx100(
9291
+ return this.props.fallback ?? /* @__PURE__ */ jsx101(
8606
9292
  "div",
8607
9293
  {
8608
9294
  role: "status",
@@ -8615,10 +9301,10 @@ var ErrorBoundary = class extends Component {
8615
9301
  };
8616
9302
 
8617
9303
  // src/components/feedback/banner.tsx
8618
- import { forwardRef as forwardRef31, useId as useId20 } from "react";
8619
- import clsx80 from "clsx";
9304
+ import { forwardRef as forwardRef33, useId as useId21 } from "react";
9305
+ import clsx81 from "clsx";
8620
9306
  import { CircleCheckBigIcon as CircleCheckBigIcon3, InfoIcon as InfoIcon3, TriangleAlertIcon as TriangleAlertIcon3, XIcon as XIcon7 } from "lucide-react";
8621
- import { jsx as jsx101, jsxs as jsxs72 } from "react/jsx-runtime";
9307
+ import { jsx as jsx102, jsxs as jsxs73 } from "react/jsx-runtime";
8622
9308
  var TONE_STYLES3 = {
8623
9309
  info: "border-brand-tertiary bg-brand-tertiary text-default",
8624
9310
  positive: "border-positive-tertiary bg-positive-tertiary text-default",
@@ -8634,13 +9320,13 @@ var TONE_ICON_COLOR = {
8634
9320
  neutral: "text-icon-default-secondary"
8635
9321
  };
8636
9322
  var TONE_ICON2 = {
8637
- info: /* @__PURE__ */ jsx101(InfoIcon3, { "aria-hidden": true, className: "size-5" }),
8638
- positive: /* @__PURE__ */ jsx101(CircleCheckBigIcon3, { "aria-hidden": true, className: "size-5" }),
8639
- warning: /* @__PURE__ */ jsx101(TriangleAlertIcon3, { "aria-hidden": true, className: "size-5" }),
8640
- danger: /* @__PURE__ */ jsx101(TriangleAlertIcon3, { "aria-hidden": true, className: "size-5" }),
8641
- neutral: /* @__PURE__ */ jsx101(InfoIcon3, { "aria-hidden": true, className: "size-5" })
9323
+ info: /* @__PURE__ */ jsx102(InfoIcon3, { "aria-hidden": true, className: "size-5" }),
9324
+ positive: /* @__PURE__ */ jsx102(CircleCheckBigIcon3, { "aria-hidden": true, className: "size-5" }),
9325
+ warning: /* @__PURE__ */ jsx102(TriangleAlertIcon3, { "aria-hidden": true, className: "size-5" }),
9326
+ danger: /* @__PURE__ */ jsx102(TriangleAlertIcon3, { "aria-hidden": true, className: "size-5" }),
9327
+ neutral: /* @__PURE__ */ jsx102(InfoIcon3, { "aria-hidden": true, className: "size-5" })
8642
9328
  };
8643
- var Banner = forwardRef31(function Banner2({
9329
+ var Banner = forwardRef33(function Banner2({
8644
9330
  title,
8645
9331
  children,
8646
9332
  variant = "message",
@@ -8651,9 +9337,9 @@ var Banner = forwardRef31(function Banner2({
8651
9337
  className,
8652
9338
  ...rest
8653
9339
  }, ref) {
8654
- const titleId = useId20();
9340
+ const titleId = useId21();
8655
9341
  const glyph = icon === void 0 ? TONE_ICON2[tone] : icon;
8656
- return /* @__PURE__ */ jsxs72(
9342
+ return /* @__PURE__ */ jsxs73(
8657
9343
  "div",
8658
9344
  {
8659
9345
  "data-tone": tone,
@@ -8662,20 +9348,20 @@ var Banner = forwardRef31(function Banner2({
8662
9348
  role: variant === "alert" ? "alert" : "status",
8663
9349
  "aria-labelledby": titleId,
8664
9350
  "data-slot": "banner",
8665
- className: clsx80(
9351
+ className: clsx81(
8666
9352
  "flex w-full items-start gap-3 rounded-xl border p-4",
8667
9353
  TONE_STYLES3[tone],
8668
9354
  className
8669
9355
  ),
8670
9356
  ...rest,
8671
9357
  children: [
8672
- glyph && /* @__PURE__ */ jsx101("span", { "aria-hidden": true, className: clsx80("mt-px shrink-0", TONE_ICON_COLOR[tone]), children: glyph }),
8673
- /* @__PURE__ */ jsxs72("div", { className: "min-w-0 flex-1", children: [
8674
- /* @__PURE__ */ jsx101("p", { id: titleId, className: "text-body-sm font-semibold text-default", children: title }),
8675
- children && /* @__PURE__ */ jsx101("div", { className: "mt-1 text-body-xs text-default-secondary", children }),
8676
- action && /* @__PURE__ */ jsx101("div", { className: "mt-3 flex items-center gap-2", children: action })
9358
+ glyph && /* @__PURE__ */ jsx102("span", { "aria-hidden": true, className: clsx81("mt-px shrink-0", TONE_ICON_COLOR[tone]), children: glyph }),
9359
+ /* @__PURE__ */ jsxs73("div", { className: "min-w-0 flex-1", children: [
9360
+ /* @__PURE__ */ jsx102("p", { id: titleId, className: "text-body-sm font-semibold text-default", children: title }),
9361
+ children && /* @__PURE__ */ jsx102("div", { className: "mt-1 text-body-xs text-default-secondary", children }),
9362
+ action && /* @__PURE__ */ jsx102("div", { className: "mt-3 flex items-center gap-2", children: action })
8677
9363
  ] }),
8678
- onDismiss && /* @__PURE__ */ jsx101(
9364
+ onDismiss && /* @__PURE__ */ jsx102(
8679
9365
  IconButton,
8680
9366
  {
8681
9367
  variant: "subtle",
@@ -8683,7 +9369,7 @@ var Banner = forwardRef31(function Banner2({
8683
9369
  "aria-label": typeof title === "string" ? `Dismiss: ${title}` : "Dismiss",
8684
9370
  onClick: onDismiss,
8685
9371
  className: "-mr-1 -mt-1 shrink-0",
8686
- children: /* @__PURE__ */ jsx101(XIcon7, { "aria-hidden": true, size: 16 })
9372
+ children: /* @__PURE__ */ jsx102(XIcon7, { "aria-hidden": true, size: 16 })
8687
9373
  }
8688
9374
  )
8689
9375
  ]
@@ -8693,29 +9379,29 @@ var Banner = forwardRef31(function Banner2({
8693
9379
 
8694
9380
  // src/components/feedback/toast.tsx
8695
9381
  import {
8696
- createContext as createContext15,
8697
- useCallback as useCallback7,
8698
- useContext as useContext15,
8699
- useEffect as useEffect13,
8700
- useMemo as useMemo13,
9382
+ createContext as createContext16,
9383
+ useCallback as useCallback9,
9384
+ useContext as useContext16,
9385
+ useEffect as useEffect14,
9386
+ useMemo as useMemo14,
8701
9387
  useRef as useRef16,
8702
- useState as useState23
9388
+ useState as useState24
8703
9389
  } from "react";
8704
- import clsx81 from "clsx";
9390
+ import clsx82 from "clsx";
8705
9391
  import { CircleCheckBigIcon as CircleCheckBigIcon4, InfoIcon as InfoIcon4, TriangleAlertIcon as TriangleAlertIcon4, XIcon as XIcon8 } from "lucide-react";
8706
- import { jsx as jsx102, jsxs as jsxs73 } from "react/jsx-runtime";
8707
- var ToastContext = createContext15(null);
9392
+ import { jsx as jsx103, jsxs as jsxs74 } from "react/jsx-runtime";
9393
+ var ToastContext = createContext16(null);
8708
9394
  function useToast() {
8709
- const context = useContext15(ToastContext);
9395
+ const context = useContext16(ToastContext);
8710
9396
  if (!context) throw new Error("useToast() must be used inside <Toaster>");
8711
9397
  return context;
8712
9398
  }
8713
9399
  var TONE_ICON3 = {
8714
- info: /* @__PURE__ */ jsx102(InfoIcon4, { "aria-hidden": true, className: "size-4" }),
8715
- positive: /* @__PURE__ */ jsx102(CircleCheckBigIcon4, { "aria-hidden": true, className: "size-4" }),
8716
- warning: /* @__PURE__ */ jsx102(TriangleAlertIcon4, { "aria-hidden": true, className: "size-4" }),
8717
- danger: /* @__PURE__ */ jsx102(TriangleAlertIcon4, { "aria-hidden": true, className: "size-4" }),
8718
- neutral: /* @__PURE__ */ jsx102(InfoIcon4, { "aria-hidden": true, className: "size-4" })
9400
+ info: /* @__PURE__ */ jsx103(InfoIcon4, { "aria-hidden": true, className: "size-4" }),
9401
+ positive: /* @__PURE__ */ jsx103(CircleCheckBigIcon4, { "aria-hidden": true, className: "size-4" }),
9402
+ warning: /* @__PURE__ */ jsx103(TriangleAlertIcon4, { "aria-hidden": true, className: "size-4" }),
9403
+ danger: /* @__PURE__ */ jsx103(TriangleAlertIcon4, { "aria-hidden": true, className: "size-4" }),
9404
+ neutral: /* @__PURE__ */ jsx103(InfoIcon4, { "aria-hidden": true, className: "size-4" })
8719
9405
  };
8720
9406
  var TONE_ICON_COLOR2 = {
8721
9407
  info: "text-icon-brand",
@@ -8743,10 +9429,10 @@ function Toaster({
8743
9429
  offset = 16,
8744
9430
  mobileOffset
8745
9431
  }) {
8746
- const [toasts, setToasts] = useState23([]);
9432
+ const [toasts, setToasts] = useState24([]);
8747
9433
  const timers = useRef16(/* @__PURE__ */ new Map());
8748
9434
  const counter = useRef16(0);
8749
- const dismiss = useCallback7((id) => {
9435
+ const dismiss = useCallback9((id) => {
8750
9436
  const timer = timers.current.get(id);
8751
9437
  if (timer) {
8752
9438
  clearTimeout(timer);
@@ -8754,12 +9440,12 @@ function Toaster({
8754
9440
  }
8755
9441
  setToasts((current) => current.filter((entry) => entry.id !== id));
8756
9442
  }, []);
8757
- const dismissAll = useCallback7(() => {
9443
+ const dismissAll = useCallback9(() => {
8758
9444
  for (const timer of timers.current.values()) clearTimeout(timer);
8759
9445
  timers.current.clear();
8760
9446
  setToasts([]);
8761
9447
  }, []);
8762
- const toast = useCallback7(
9448
+ const toast = useCallback9(
8763
9449
  (options) => {
8764
9450
  counter.current += 1;
8765
9451
  const id = `toast-${counter.current}`;
@@ -8775,23 +9461,23 @@ function Toaster({
8775
9461
  },
8776
9462
  [duration, max, dismiss]
8777
9463
  );
8778
- useEffect13(() => {
9464
+ useEffect14(() => {
8779
9465
  const map = timers.current;
8780
9466
  return () => {
8781
9467
  for (const timer of map.values()) clearTimeout(timer);
8782
9468
  map.clear();
8783
9469
  };
8784
9470
  }, []);
8785
- const context = useMemo13(() => ({ toast, dismiss, dismissAll }), [toast, dismiss, dismissAll]);
8786
- return /* @__PURE__ */ jsxs73(ToastContext.Provider, { value: context, children: [
9471
+ const context = useMemo14(() => ({ toast, dismiss, dismissAll }), [toast, dismiss, dismissAll]);
9472
+ return /* @__PURE__ */ jsxs74(ToastContext.Provider, { value: context, children: [
8787
9473
  children,
8788
- /* @__PURE__ */ jsx102(Portal, { children: /* @__PURE__ */ jsx102(
9474
+ /* @__PURE__ */ jsx103(Portal, { children: /* @__PURE__ */ jsx103(
8789
9475
  "div",
8790
9476
  {
8791
9477
  "aria-live": "polite",
8792
9478
  "aria-atomic": "false",
8793
9479
  ...{ [TOASTER_ATTRIBUTE]: "" },
8794
- className: clsx81(
9480
+ className: clsx82(
8795
9481
  "pointer-events-none fixed z-toast flex w-[calc(100%-2rem)] max-w-[380px] flex-col gap-2",
8796
9482
  POSITION[position]
8797
9483
  ),
@@ -8799,29 +9485,29 @@ function Toaster({
8799
9485
  "--toaster-offset": toLength(offset),
8800
9486
  "--toaster-mobile-offset": toLength(mobileOffset ?? offset)
8801
9487
  },
8802
- children: toasts.map((entry) => /* @__PURE__ */ jsx102(ToastItem, { toast: entry, onDismiss: () => dismiss(entry.id) }, entry.id))
9488
+ children: toasts.map((entry) => /* @__PURE__ */ jsx103(ToastItem, { toast: entry, onDismiss: () => dismiss(entry.id) }, entry.id))
8803
9489
  }
8804
9490
  ) })
8805
9491
  ] });
8806
9492
  }
8807
9493
  function ToastItem({ toast, onDismiss }) {
8808
9494
  const tone = toast.tone ?? "info";
8809
- return /* @__PURE__ */ jsxs73(
9495
+ return /* @__PURE__ */ jsxs74(
8810
9496
  "div",
8811
9497
  {
8812
9498
  role: tone === "danger" ? "alert" : "status",
8813
- className: clsx81(
9499
+ className: clsx82(
8814
9500
  "pointer-events-auto flex w-full items-start gap-3 rounded-xl border border-default",
8815
9501
  "bg-default p-4 shadow-400"
8816
9502
  ),
8817
9503
  children: [
8818
- /* @__PURE__ */ jsx102("span", { "aria-hidden": true, className: clsx81("mt-px shrink-0", TONE_ICON_COLOR2[tone]), children: TONE_ICON3[tone] }),
8819
- /* @__PURE__ */ jsxs73("div", { className: "min-w-0 flex-1", children: [
8820
- /* @__PURE__ */ jsx102("p", { className: "text-body-sm font-semibold text-default", children: toast.title }),
8821
- toast.description && /* @__PURE__ */ jsx102("p", { className: "mt-0.5 text-body-xs text-default-secondary", children: toast.description }),
8822
- toast.action && /* @__PURE__ */ jsx102("div", { className: "mt-2 flex items-center gap-2", children: toast.action })
9504
+ /* @__PURE__ */ jsx103("span", { "aria-hidden": true, className: clsx82("mt-px shrink-0", TONE_ICON_COLOR2[tone]), children: TONE_ICON3[tone] }),
9505
+ /* @__PURE__ */ jsxs74("div", { className: "min-w-0 flex-1", children: [
9506
+ /* @__PURE__ */ jsx103("p", { className: "text-body-sm font-semibold text-default", children: toast.title }),
9507
+ toast.description && /* @__PURE__ */ jsx103("p", { className: "mt-0.5 text-body-xs text-default-secondary", children: toast.description }),
9508
+ toast.action && /* @__PURE__ */ jsx103("div", { className: "mt-2 flex items-center gap-2", children: toast.action })
8823
9509
  ] }),
8824
- /* @__PURE__ */ jsx102(
9510
+ /* @__PURE__ */ jsx103(
8825
9511
  IconButton,
8826
9512
  {
8827
9513
  variant: "subtle",
@@ -8829,7 +9515,7 @@ function ToastItem({ toast, onDismiss }) {
8829
9515
  "aria-label": typeof toast.title === "string" ? `Dismiss: ${toast.title}` : "Dismiss",
8830
9516
  onClick: onDismiss,
8831
9517
  className: "-mr-1 -mt-1 shrink-0",
8832
- children: /* @__PURE__ */ jsx102(XIcon8, { "aria-hidden": true, size: 14 })
9518
+ children: /* @__PURE__ */ jsx103(XIcon8, { "aria-hidden": true, size: 14 })
8833
9519
  }
8834
9520
  )
8835
9521
  ]
@@ -8838,25 +9524,25 @@ function ToastItem({ toast, onDismiss }) {
8838
9524
  }
8839
9525
 
8840
9526
  // src/components/forms/password-input.tsx
8841
- import { forwardRef as forwardRef32, useState as useState24 } from "react";
9527
+ import { forwardRef as forwardRef34, useState as useState25 } from "react";
8842
9528
  import { EyeIcon, EyeOffIcon } from "lucide-react";
8843
- import { jsx as jsx103 } from "react/jsx-runtime";
8844
- var PasswordInput = forwardRef32(function PasswordInput2(props, ref) {
8845
- const [visible, setVisible] = useState24(false);
8846
- return /* @__PURE__ */ jsx103(
9529
+ import { jsx as jsx104 } from "react/jsx-runtime";
9530
+ var PasswordInput = forwardRef34(function PasswordInput2(props, ref) {
9531
+ const [visible, setVisible] = useState25(false);
9532
+ return /* @__PURE__ */ jsx104(
8847
9533
  Input,
8848
9534
  {
8849
9535
  ref,
8850
9536
  ...props,
8851
9537
  type: visible ? "text" : "password",
8852
- trailingAction: /* @__PURE__ */ jsx103(
9538
+ trailingAction: /* @__PURE__ */ jsx104(
8853
9539
  "button",
8854
9540
  {
8855
9541
  type: "button",
8856
9542
  "aria-label": visible ? "Hide password" : "Show password",
8857
9543
  onClick: () => setVisible((v) => !v),
8858
9544
  className: "flex items-center justify-center rounded transition-colors hover:text-default focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand",
8859
- children: visible ? /* @__PURE__ */ jsx103(EyeOffIcon, { "aria-hidden": true, className: "size-4" }) : /* @__PURE__ */ jsx103(EyeIcon, { "aria-hidden": true, className: "size-4" })
9545
+ children: visible ? /* @__PURE__ */ jsx104(EyeOffIcon, { "aria-hidden": true, className: "size-4" }) : /* @__PURE__ */ jsx104(EyeIcon, { "aria-hidden": true, className: "size-4" })
8860
9546
  }
8861
9547
  )
8862
9548
  }
@@ -8864,31 +9550,31 @@ var PasswordInput = forwardRef32(function PasswordInput2(props, ref) {
8864
9550
  });
8865
9551
 
8866
9552
  // src/components/ai/ai-chat-bar.tsx
8867
- import clsx82 from "clsx";
9553
+ import clsx83 from "clsx";
8868
9554
  import { ArrowRightIcon as ArrowRightIcon2, SearchIcon as SearchIcon2 } from "lucide-react";
8869
- import { jsx as jsx104, jsxs as jsxs74 } from "react/jsx-runtime";
9555
+ import { jsx as jsx105, jsxs as jsxs75 } from "react/jsx-runtime";
8870
9556
  function AIChatBar({
8871
9557
  placeholder = "Ask Intelligence about any entity, supplier, or risk\u2026",
8872
9558
  className
8873
9559
  }) {
8874
- return /* @__PURE__ */ jsxs74(
9560
+ return /* @__PURE__ */ jsxs75(
8875
9561
  "div",
8876
9562
  {
8877
- className: clsx82(
9563
+ className: clsx83(
8878
9564
  "flex h-16 items-center gap-3 rounded-2xl border border-default bg-default px-6 shadow-panel",
8879
9565
  className
8880
9566
  ),
8881
9567
  children: [
8882
- /* @__PURE__ */ jsx104("span", { "aria-hidden": true, className: "shrink-0 text-icon-default-secondary", children: /* @__PURE__ */ jsx104(SearchIcon2, { className: "size-4" }) }),
8883
- /* @__PURE__ */ jsx104("p", { className: "flex-1 text-body-sm text-default-tertiary truncate", children: placeholder }),
8884
- /* @__PURE__ */ jsxs74(
9568
+ /* @__PURE__ */ jsx105("span", { "aria-hidden": true, className: "shrink-0 text-icon-default-secondary", children: /* @__PURE__ */ jsx105(SearchIcon2, { className: "size-4" }) }),
9569
+ /* @__PURE__ */ jsx105("p", { className: "flex-1 text-body-sm text-default-tertiary truncate", children: placeholder }),
9570
+ /* @__PURE__ */ jsxs75(
8885
9571
  "button",
8886
9572
  {
8887
9573
  type: "button",
8888
9574
  className: "inline-flex shrink-0 items-center gap-2 rounded-xl bg-brand px-4 py-3 text-body-sm font-semibold text-brand-on-brand hover:bg-brand-hover transition-colors",
8889
9575
  children: [
8890
9576
  "Ask",
8891
- /* @__PURE__ */ jsx104(ArrowRightIcon2, { "aria-hidden": true, className: "size-4" })
9577
+ /* @__PURE__ */ jsx105(ArrowRightIcon2, { "aria-hidden": true, className: "size-4" })
8892
9578
  ]
8893
9579
  }
8894
9580
  )
@@ -8898,42 +9584,42 @@ function AIChatBar({
8898
9584
  }
8899
9585
 
8900
9586
  // src/components/ai/ai-suggestion-chip.tsx
8901
- import clsx83 from "clsx";
9587
+ import clsx84 from "clsx";
8902
9588
  import { ArrowRightIcon as ArrowRightIcon3, CpuIcon } from "lucide-react";
8903
- import { jsx as jsx105, jsxs as jsxs75 } from "react/jsx-runtime";
9589
+ import { jsx as jsx106, jsxs as jsxs76 } from "react/jsx-runtime";
8904
9590
  function AISuggestionChip({ prompt, onClick, className }) {
8905
- return /* @__PURE__ */ jsxs75(
9591
+ return /* @__PURE__ */ jsxs76(
8906
9592
  "button",
8907
9593
  {
8908
9594
  type: "button",
8909
9595
  onClick,
8910
- className: clsx83(
9596
+ className: clsx84(
8911
9597
  "flex h-12 w-full items-center gap-3 rounded-xl border border-default bg-default px-3 text-left hover:bg-default-hover transition-colors",
8912
9598
  className
8913
9599
  ),
8914
9600
  children: [
8915
- /* @__PURE__ */ jsx105("span", { "aria-hidden": true, className: "shrink-0 text-icon-brand", children: /* @__PURE__ */ jsx105(CpuIcon, { className: "size-4" }) }),
8916
- /* @__PURE__ */ jsx105("span", { className: "flex-1 text-body-sm text-default truncate", children: prompt }),
8917
- /* @__PURE__ */ jsx105("span", { "aria-hidden": true, className: "shrink-0 text-icon-default-secondary", children: /* @__PURE__ */ jsx105(ArrowRightIcon3, { className: "size-3.5", strokeWidth: 2.5 }) })
9601
+ /* @__PURE__ */ jsx106("span", { "aria-hidden": true, className: "shrink-0 text-icon-brand", children: /* @__PURE__ */ jsx106(CpuIcon, { className: "size-4" }) }),
9602
+ /* @__PURE__ */ jsx106("span", { className: "flex-1 text-body-sm text-default truncate", children: prompt }),
9603
+ /* @__PURE__ */ jsx106("span", { "aria-hidden": true, className: "shrink-0 text-icon-default-secondary", children: /* @__PURE__ */ jsx106(ArrowRightIcon3, { className: "size-3.5", strokeWidth: 2.5 }) })
8918
9604
  ]
8919
9605
  }
8920
9606
  );
8921
9607
  }
8922
9608
 
8923
9609
  // src/components/ai/quick-actions-bar.tsx
8924
- import clsx84 from "clsx";
8925
- import { jsx as jsx106 } from "react/jsx-runtime";
9610
+ import clsx85 from "clsx";
9611
+ import { jsx as jsx107 } from "react/jsx-runtime";
8926
9612
  function QuickActionsBar({ actions, active, onSelect, className }) {
8927
- return /* @__PURE__ */ jsx106("div", { className: clsx84("flex flex-wrap items-center gap-3", className), children: actions.map((action) => {
9613
+ return /* @__PURE__ */ jsx107("div", { className: clsx85("flex flex-wrap items-center gap-3", className), children: actions.map((action) => {
8928
9614
  const isActive = active === action.value;
8929
- return /* @__PURE__ */ jsx106(
9615
+ return /* @__PURE__ */ jsx107(
8930
9616
  "button",
8931
9617
  {
8932
9618
  type: "button",
8933
9619
  "aria-pressed": isActive,
8934
9620
  onClick: () => onSelect?.(action.value),
8935
9621
  className: "rounded-full focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand focus-visible:ring-offset-1 focus-visible:ring-offset-default",
8936
- children: /* @__PURE__ */ jsx106(TagPill, { label: action.label, tone: isActive ? "brand" : "default" })
9622
+ children: /* @__PURE__ */ jsx107(TagPill, { label: action.label, tone: isActive ? "brand" : "default" })
8937
9623
  },
8938
9624
  action.value
8939
9625
  );
@@ -8941,25 +9627,25 @@ function QuickActionsBar({ actions, active, onSelect, className }) {
8941
9627
  }
8942
9628
 
8943
9629
  // src/components/ai/chat.tsx
8944
- import clsx85 from "clsx";
9630
+ import clsx86 from "clsx";
8945
9631
  import { CpuIcon as CpuIcon2 } from "lucide-react";
8946
- import { jsx as jsx107, jsxs as jsxs76 } from "react/jsx-runtime";
9632
+ import { jsx as jsx108, jsxs as jsxs77 } from "react/jsx-runtime";
8947
9633
  function AiAvatar({ className, icon }) {
8948
- return /* @__PURE__ */ jsx107(
9634
+ return /* @__PURE__ */ jsx108(
8949
9635
  "span",
8950
9636
  {
8951
9637
  "aria-hidden": true,
8952
9638
  className: cn("flex size-8 shrink-0 items-center justify-center rounded-full bg-brand text-icon-brand-on-brand", className),
8953
- children: icon ?? /* @__PURE__ */ jsx107(CpuIcon2, { className: "size-3.5" })
9639
+ children: icon ?? /* @__PURE__ */ jsx108(CpuIcon2, { className: "size-3.5" })
8954
9640
  }
8955
9641
  );
8956
9642
  }
8957
9643
  function TypingIndicator({ label = "Assistant is typing", className }) {
8958
- return /* @__PURE__ */ jsxs76("div", { role: "status", "aria-live": "polite", className: cn("flex items-center gap-3", className), children: [
8959
- /* @__PURE__ */ jsx107(AiAvatar, {}),
8960
- /* @__PURE__ */ jsxs76("div", { className: "flex items-center gap-2 rounded-2xl rounded-tl-sm border border-default bg-default-secondary px-5 py-3", children: [
8961
- /* @__PURE__ */ jsx107("span", { className: "text-body-xs text-default-secondary", children: label }),
8962
- /* @__PURE__ */ jsx107("span", { "aria-hidden": true, className: "flex gap-1", children: [0, 1, 2].map((index) => /* @__PURE__ */ jsx107(
9644
+ return /* @__PURE__ */ jsxs77("div", { role: "status", "aria-live": "polite", className: cn("flex items-center gap-3", className), children: [
9645
+ /* @__PURE__ */ jsx108(AiAvatar, {}),
9646
+ /* @__PURE__ */ jsxs77("div", { className: "flex items-center gap-2 rounded-2xl rounded-tl-sm border border-default bg-default-secondary px-5 py-3", children: [
9647
+ /* @__PURE__ */ jsx108("span", { className: "text-body-xs text-default-secondary", children: label }),
9648
+ /* @__PURE__ */ jsx108("span", { "aria-hidden": true, className: "flex gap-1", children: [0, 1, 2].map((index) => /* @__PURE__ */ jsx108(
8963
9649
  "span",
8964
9650
  {
8965
9651
  className: "inline-block size-1.5 rounded-full bg-default-tertiary motion-safe:animate-bounce",
@@ -8972,16 +9658,16 @@ function TypingIndicator({ label = "Assistant is typing", className }) {
8972
9658
  }
8973
9659
  function ChatBubble({ sender, children, failed = false, className }) {
8974
9660
  if (sender === "user") {
8975
- return /* @__PURE__ */ jsx107("div", { "data-sender": "user", className: cn("flex justify-end", className), children: /* @__PURE__ */ jsx107("div", { className: "max-w-[85%] rounded-[18px] rounded-tr-sm bg-neutral px-5 py-3.5 text-body-sm leading-relaxed text-neutral-on-neutral md:max-w-[441px] md:px-7 md:py-4", children }) });
9661
+ return /* @__PURE__ */ jsx108("div", { "data-sender": "user", className: cn("flex justify-end", className), children: /* @__PURE__ */ jsx108("div", { className: "max-w-[85%] rounded-[18px] rounded-tr-sm bg-neutral px-5 py-3.5 text-body-sm leading-relaxed text-neutral-on-neutral md:max-w-[441px] md:px-7 md:py-4", children }) });
8976
9662
  }
8977
- return /* @__PURE__ */ jsx107(
9663
+ return /* @__PURE__ */ jsx108(
8978
9664
  "div",
8979
9665
  {
8980
9666
  "data-sender": "assistant",
8981
9667
  "data-state": failed ? "failed" : void 0,
8982
9668
  className: cn(
8983
9669
  "rounded-2xl rounded-tl-sm border px-5 py-4 text-body-sm leading-relaxed",
8984
- clsx85(
9670
+ clsx86(
8985
9671
  "border-default bg-default-secondary text-default",
8986
9672
  "data-[state=failed]:border-danger-secondary data-[state=failed]:bg-danger-tertiary data-[state=failed]:text-danger"
8987
9673
  ),
@@ -8993,17 +9679,17 @@ function ChatBubble({ sender, children, failed = false, className }) {
8993
9679
  }
8994
9680
 
8995
9681
  // src/components/decorative/aurora-backdrop.tsx
8996
- import { jsx as jsx108, jsxs as jsxs77 } from "react/jsx-runtime";
9682
+ import { jsx as jsx109, jsxs as jsxs78 } from "react/jsx-runtime";
8997
9683
  function blob(primitive, alpha) {
8998
9684
  return `radial-gradient(ellipse, color-mix(in srgb, var(${primitive}) ${alpha}%, transparent) 0%, transparent 70%)`;
8999
9685
  }
9000
9686
  function AuroraBackdrop() {
9001
- return /* @__PURE__ */ jsxs77("div", { className: "pointer-events-none absolute inset-0", "aria-hidden": true, children: [
9002
- /* @__PURE__ */ jsx108("div", { className: "absolute -left-24 -top-28", style: { width: 380, height: 380, background: blob("--prim-red-400", 45) } }),
9003
- /* @__PURE__ */ jsx108("div", { className: "absolute -top-24 right-[-4%]", style: { width: 320, height: 320, background: blob("--prim-red-300", 40) } }),
9004
- /* @__PURE__ */ jsx108("div", { className: "absolute bottom-[-10%] right-[14%]", style: { width: 420, height: 420, background: blob("--prim-violet-400", 30) } }),
9005
- /* @__PURE__ */ jsx108("div", { className: "absolute bottom-[-6%] left-[4%]", style: { width: 280, height: 280, background: blob("--prim-blue-400", 25) } }),
9006
- /* @__PURE__ */ jsx108("div", { className: "absolute left-[20%] top-[30%]", style: { width: 240, height: 240, background: blob("--prim-blue-300", 18) } })
9687
+ return /* @__PURE__ */ jsxs78("div", { className: "pointer-events-none absolute inset-0", "aria-hidden": true, children: [
9688
+ /* @__PURE__ */ jsx109("div", { className: "absolute -left-24 -top-28", style: { width: 380, height: 380, background: blob("--prim-red-400", 45) } }),
9689
+ /* @__PURE__ */ jsx109("div", { className: "absolute -top-24 right-[-4%]", style: { width: 320, height: 320, background: blob("--prim-red-300", 40) } }),
9690
+ /* @__PURE__ */ jsx109("div", { className: "absolute bottom-[-10%] right-[14%]", style: { width: 420, height: 420, background: blob("--prim-violet-400", 30) } }),
9691
+ /* @__PURE__ */ jsx109("div", { className: "absolute bottom-[-6%] left-[4%]", style: { width: 280, height: 280, background: blob("--prim-blue-400", 25) } }),
9692
+ /* @__PURE__ */ jsx109("div", { className: "absolute left-[20%] top-[30%]", style: { width: 240, height: 240, background: blob("--prim-blue-300", 18) } })
9007
9693
  ] });
9008
9694
  }
9009
9695
  export {
@@ -9186,7 +9872,9 @@ export {
9186
9872
  MultiSelectCard,
9187
9873
  NativeSelect,
9188
9874
  NativeSelectControl,
9875
+ NavGroupHeader,
9189
9876
  NavItem,
9877
+ NavSubItem,
9190
9878
  NavigationMenu,
9191
9879
  NavigationMenuItem,
9192
9880
  NoteConfirmModal,
@@ -9229,6 +9917,11 @@ export {
9229
9917
  Select,
9230
9918
  SelectControl,
9231
9919
  Separator,
9920
+ Sidebar,
9921
+ SidebarProvider,
9922
+ SidebarSeparator,
9923
+ SidebarTrigger,
9924
+ SidebarUserCard,
9232
9925
  Skeleton,
9233
9926
  Slider,
9234
9927
  Slot,
@@ -9303,6 +9996,8 @@ export {
9303
9996
  composeRefs,
9304
9997
  countryOptions,
9305
9998
  currentZoneName,
9999
+ filterNav,
10000
+ filterNavItems,
9306
10001
  formatFileSize,
9307
10002
  getScoreTone,
9308
10003
  nextTier,
@@ -9322,6 +10017,7 @@ export {
9322
10017
  useFilePicker,
9323
10018
  useOverlayDismiss,
9324
10019
  usePortalContainer,
10020
+ useSidebar,
9325
10021
  useToast,
9326
10022
  useWidgetHeaderAccessory,
9327
10023
  useWidthTier