@platned/ui 0.9.5 → 0.9.6

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,636 @@ 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 { mobileOpen, setMobileOpen } = useSidebar();
7145
+ return /* @__PURE__ */ jsx65(
7146
+ IconButton,
7147
+ {
7148
+ ref,
7149
+ "aria-label": ariaLabel,
7150
+ "aria-expanded": mobileOpen,
7151
+ "aria-haspopup": "dialog",
7152
+ variant,
7153
+ className: cn("md:hidden", className),
7154
+ onClick: (event) => {
7155
+ onClick?.(event);
7156
+ if (!event.defaultPrevented) setMobileOpen(!mobileOpen);
7157
+ },
7158
+ ...rest,
7159
+ children: /* @__PURE__ */ jsx65(MenuIcon, { className: "size-5", "aria-hidden": true })
7160
+ }
7161
+ );
7162
+ });
7163
+ function filterNav(groups, isVisible) {
7164
+ return groups.map((group) => ({ ...group, items: filterNavItems(group.items, isVisible) })).filter((group) => group.items.length > 0);
7165
+ }
7166
+ function filterNavItems(items, isVisible) {
7167
+ return items.flatMap((item) => {
7168
+ if (!isVisible(item)) return [];
7169
+ if (!item.children) return [item];
7170
+ const children = filterNavItems(item.children, isVisible);
7171
+ if (children.length === 0 && !item.to && !item.href) return [];
7172
+ return [{ ...item, children }];
7173
+ });
7174
+ }
7175
+ function SidebarSeparator({ className, ...rest }) {
7176
+ return /* @__PURE__ */ jsx65("div", { "aria-hidden": true, className: cn("mx-1 h-px shrink-0 bg-divider", className), ...rest });
7177
+ }
7178
+ function SidebarUserCard({
7179
+ name,
7180
+ role,
7181
+ onLogout,
7182
+ collapsed = false,
7183
+ menu,
7184
+ className
7185
+ }) {
7186
+ const initial = name.trim().charAt(0);
7187
+ const items = /* @__PURE__ */ jsxs46(Fragment9, { children: [
7188
+ menu,
7189
+ /* @__PURE__ */ jsx65(DropdownMenuItem, { icon: /* @__PURE__ */ jsx65(LogOutIcon, { className: "size-3.5", "aria-hidden": true }), onSelect: onLogout, children: "Sign out" })
7190
+ ] });
7191
+ if (collapsed) {
7192
+ return (
7193
+ // Figma collapsed user card: the avatar alone, 24px above and 16px below.
7194
+ /* @__PURE__ */ jsx65("div", { className: cn("flex shrink-0 items-center justify-center px-4 pb-4 pt-6", className), children: /* @__PURE__ */ jsxs46(DropdownMenu, { children: [
7195
+ /* @__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" }) }) }),
7196
+ /* @__PURE__ */ jsx65(DropdownMenuContent, { side: "right", align: "end", children: items })
7197
+ ] }) })
7198
+ );
7199
+ }
7200
+ return (
7201
+ // Figma: 16px padding, plus 4px more above and below the row inside it.
7202
+ /* @__PURE__ */ jsxs46("div", { className: cn("flex shrink-0 items-center gap-2.5 px-4 py-5", className), children: [
7203
+ /* @__PURE__ */ jsx65(Avatar, { initial, size: "lg", shape: "circle" }),
7204
+ /* @__PURE__ */ jsxs46("div", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
7205
+ /* @__PURE__ */ jsx65("span", { className: "truncate text-body-sm font-semibold leading-snug text-default", children: name }),
7206
+ /* @__PURE__ */ jsx65("span", { className: "truncate text-body-tiny font-regular leading-none text-default-secondary", children: role })
7207
+ ] }),
7208
+ /* @__PURE__ */ jsxs46(DropdownMenu, { children: [
7209
+ /* @__PURE__ */ jsx65(DropdownMenuTrigger, { asChild: true, label: "User options", children: /* @__PURE__ */ jsx65(
7210
+ "button",
7211
+ {
7212
+ type: "button",
7213
+ "aria-label": `${name} \u2014 user options`,
7214
+ 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",
7215
+ children: /* @__PURE__ */ jsx65(EllipsisVerticalIcon, { className: "size-5", "aria-hidden": true })
7216
+ }
7217
+ ) }),
7218
+ /* @__PURE__ */ jsx65(DropdownMenuContent, { side: "top", align: "end", children: items })
7219
+ ] })
7220
+ ] })
7221
+ );
7222
+ }
7223
+
7224
+ // src/components/chrome/eyebrow-label.tsx
7225
+ import clsx46 from "clsx";
7226
+ import { jsx as jsx66 } from "react/jsx-runtime";
7227
+ function EyebrowLabel({ children, variant = "uppercase", className }) {
7228
+ return /* @__PURE__ */ jsx66(
6545
7229
  "p",
6546
7230
  {
6547
7231
  "data-variant": variant,
6548
- className: clsx45(
7232
+ className: clsx46(
6549
7233
  "text-body-tiny font-semibold tracking-wide text-default-secondary",
6550
7234
  variant === "uppercase" && "uppercase",
6551
7235
  className
@@ -6556,18 +7240,18 @@ function EyebrowLabel({ children, variant = "uppercase", className }) {
6556
7240
  }
6557
7241
 
6558
7242
  // 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(
7243
+ import { forwardRef as forwardRef28 } from "react";
7244
+ import clsx47 from "clsx";
7245
+ import { jsx as jsx67 } from "react/jsx-runtime";
7246
+ var Separator = forwardRef28(function Separator2({ orientation = "horizontal", decorative = true, className, ...rest }, ref) {
7247
+ return /* @__PURE__ */ jsx67(
6564
7248
  "div",
6565
7249
  {
6566
7250
  ref,
6567
7251
  role: decorative ? "none" : "separator",
6568
7252
  "aria-orientation": decorative ? void 0 : orientation,
6569
7253
  "data-slot": "separator",
6570
- className: clsx46(
7254
+ className: clsx47(
6571
7255
  "shrink-0 bg-divider",
6572
7256
  orientation === "horizontal" ? "h-px w-full" : "h-full w-px",
6573
7257
  className
@@ -6578,20 +7262,20 @@ var Separator = forwardRef26(function Separator2({ orientation = "horizontal", d
6578
7262
  });
6579
7263
 
6580
7264
  // 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";
7265
+ import { forwardRef as forwardRef29 } from "react";
7266
+ import clsx48 from "clsx";
7267
+ import { jsx as jsx68 } from "react/jsx-runtime";
6584
7268
  var SIZE9 = {
6585
7269
  sm: "h-4 min-w-4 px-1 text-body-tiny",
6586
7270
  md: "h-5 min-w-5 px-1.5 text-body-xs"
6587
7271
  };
6588
- var Kbd = forwardRef27(function Kbd2({ children, size = "md", className, ...rest }, ref) {
6589
- return /* @__PURE__ */ jsx67(
7272
+ var Kbd = forwardRef29(function Kbd2({ children, size = "md", className, ...rest }, ref) {
7273
+ return /* @__PURE__ */ jsx68(
6590
7274
  "kbd",
6591
7275
  {
6592
7276
  ref,
6593
7277
  "data-slot": "kbd",
6594
- className: clsx47(
7278
+ className: clsx48(
6595
7279
  "inline-flex items-center justify-center rounded border border-default bg-default-secondary",
6596
7280
  "font-medium tabular-nums text-default-secondary",
6597
7281
  SIZE9[size],
@@ -6605,14 +7289,14 @@ var Kbd = forwardRef27(function Kbd2({ children, size = "md", className, ...rest
6605
7289
 
6606
7290
  // src/components/chrome/breadcrumb.tsx
6607
7291
  import {
6608
- Fragment as Fragment9,
6609
- forwardRef as forwardRef28
7292
+ Fragment as Fragment10,
7293
+ forwardRef as forwardRef30
6610
7294
  } 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 }) });
7295
+ import clsx49 from "clsx";
7296
+ import { ChevronRightIcon as ChevronRightIcon6 } from "lucide-react";
7297
+ import { jsx as jsx69, jsxs as jsxs47 } from "react/jsx-runtime";
7298
+ var Breadcrumb = forwardRef30(function Breadcrumb2({ children, items, renderLink, maxItems, label = "Breadcrumb", className, ...rest }, ref) {
7299
+ 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
7300
  });
6617
7301
  function renderItems(items, renderLink, maxItems) {
6618
7302
  const last = items.length - 1;
@@ -6621,21 +7305,21 @@ function renderItems(items, renderLink, maxItems) {
6621
7305
  return shown.map((index, position) => {
6622
7306
  const item = items[index];
6623
7307
  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: [
7308
+ 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 });
7309
+ return /* @__PURE__ */ jsxs47(Fragment10, { children: [
6626
7310
  crumb,
6627
- collapse && position === 0 && /* @__PURE__ */ jsx68(BreadcrumbEllipsis, {})
7311
+ collapse && position === 0 && /* @__PURE__ */ jsx69(BreadcrumbEllipsis, {})
6628
7312
  ] }, item.id ?? index);
6629
7313
  });
6630
7314
  }
6631
- var BreadcrumbItem = forwardRef28(
7315
+ var BreadcrumbItem = forwardRef30(
6632
7316
  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(
7317
+ return /* @__PURE__ */ jsxs47("li", { className: "flex items-center gap-1.5", children: [
7318
+ !first && /* @__PURE__ */ jsx69(ChevronRightIcon6, { "aria-hidden": true, className: "size-3.5 shrink-0 text-icon-default-tertiary" }),
7319
+ current ? /* @__PURE__ */ jsx69("span", { "aria-current": "page", className: clsx49("font-medium text-default", className), children }) : asChild ? /* @__PURE__ */ jsx69(
6636
7320
  Slot,
6637
7321
  {
6638
- className: clsx48(
7322
+ className: clsx49(
6639
7323
  "rounded text-default-secondary transition-colors hover:text-brand",
6640
7324
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand focus-visible:ring-offset-1 focus-visible:ring-offset-default",
6641
7325
  className
@@ -6643,11 +7327,11 @@ var BreadcrumbItem = forwardRef28(
6643
7327
  ...rest,
6644
7328
  children
6645
7329
  }
6646
- ) : /* @__PURE__ */ jsx68(
7330
+ ) : /* @__PURE__ */ jsx69(
6647
7331
  "a",
6648
7332
  {
6649
7333
  ref,
6650
- className: clsx48(
7334
+ className: clsx49(
6651
7335
  "rounded text-default-secondary transition-colors hover:text-brand",
6652
7336
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand focus-visible:ring-offset-1 focus-visible:ring-offset-default",
6653
7337
  className
@@ -6659,16 +7343,16 @@ var BreadcrumbItem = forwardRef28(
6659
7343
  ] });
6660
7344
  }
6661
7345
  );
6662
- var BreadcrumbEllipsis = forwardRef28(
7346
+ var BreadcrumbEllipsis = forwardRef30(
6663
7347
  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(
7348
+ return /* @__PURE__ */ jsxs47("li", { className: "flex items-center gap-1.5", children: [
7349
+ /* @__PURE__ */ jsx69(ChevronRightIcon6, { "aria-hidden": true, className: "size-3.5 shrink-0 text-icon-default-tertiary" }),
7350
+ /* @__PURE__ */ jsx69(
6667
7351
  "span",
6668
7352
  {
6669
7353
  ref,
6670
7354
  "aria-label": "Collapsed items",
6671
- className: clsx48("px-0.5 text-default-tertiary", className),
7355
+ className: clsx49("px-0.5 text-default-tertiary", className),
6672
7356
  ...rest,
6673
7357
  children: "\u2026"
6674
7358
  }
@@ -6678,15 +7362,15 @@ var BreadcrumbEllipsis = forwardRef28(
6678
7362
  );
6679
7363
 
6680
7364
  // 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(
7365
+ import { forwardRef as forwardRef31 } from "react";
7366
+ import clsx50 from "clsx";
7367
+ import { Fragment as Fragment11, jsx as jsx70, jsxs as jsxs48 } from "react/jsx-runtime";
7368
+ var NavigationMenu = forwardRef31(
6685
7369
  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(
7370
+ return /* @__PURE__ */ jsx70("nav", { ref, "aria-label": label, "data-slot": "navigation-menu", ...rest, children: /* @__PURE__ */ jsx70(
6687
7371
  "ul",
6688
7372
  {
6689
- className: clsx49(
7373
+ className: clsx50(
6690
7374
  "flex list-none p-0",
6691
7375
  orientation === "vertical" ? "flex-col gap-1" : "flex-row items-center gap-1",
6692
7376
  className
@@ -6696,21 +7380,21 @@ var NavigationMenu = forwardRef29(
6696
7380
  ) });
6697
7381
  }
6698
7382
  );
6699
- var NavigationMenuItem = forwardRef29(
7383
+ var NavigationMenuItem = forwardRef31(
6700
7384
  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 })
7385
+ const content = /* @__PURE__ */ jsxs48(Fragment11, { children: [
7386
+ icon && /* @__PURE__ */ jsx70("span", { "aria-hidden": true, className: "shrink-0 [&_svg]:size-4", children: icon }),
7387
+ /* @__PURE__ */ jsx70("span", { className: "min-w-0 truncate", children })
6704
7388
  ] });
6705
7389
  const linkProps = {
6706
7390
  "aria-current": active ? "page" : void 0,
6707
- className: clsx49(
7391
+ className: clsx50(
6708
7392
  "inline-flex items-center gap-2 whitespace-nowrap transition-colors",
6709
7393
  "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(
7394
+ variant === "pill" ? clsx50(
6711
7395
  "rounded-lg px-3 py-1.5 text-body-xs font-medium",
6712
7396
  active ? "bg-brand text-brand-on-brand" : "text-default-secondary hover:bg-default-secondary hover:text-default"
6713
- ) : clsx49(
7397
+ ) : clsx50(
6714
7398
  "rounded px-1 py-0.5 text-body-sm",
6715
7399
  active ? "font-semibold text-brand" : "text-default-secondary hover:text-default"
6716
7400
  ),
@@ -6718,14 +7402,14 @@ var NavigationMenuItem = forwardRef29(
6718
7402
  ),
6719
7403
  ...rest
6720
7404
  };
6721
- return /* @__PURE__ */ jsx69("li", { children: asChild ? /* @__PURE__ */ jsx69(Slot, { wrapChildren: () => content, ...linkProps, children }) : /* @__PURE__ */ jsx69("a", { ref, ...linkProps, children: content }) });
7405
+ return /* @__PURE__ */ jsx70("li", { children: asChild ? /* @__PURE__ */ jsx70(Slot, { wrapChildren: () => content, ...linkProps, children }) : /* @__PURE__ */ jsx70("a", { ref, ...linkProps, children: content }) });
6722
7406
  }
6723
7407
  );
6724
7408
 
6725
7409
  // 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";
7410
+ import { forwardRef as forwardRef32 } from "react";
7411
+ import clsx51 from "clsx";
7412
+ import { jsx as jsx71 } from "react/jsx-runtime";
6729
7413
  var TONE2 = {
6730
7414
  default: "text-default",
6731
7415
  muted: "text-default-secondary",
@@ -6736,9 +7420,9 @@ var TONE2 = {
6736
7420
  danger: "text-danger"
6737
7421
  };
6738
7422
  function textComponent(displayName, defaultElement, classes) {
6739
- const Component2 = forwardRef30(function TextComponent({ children, asChild = false, tone, className, ...rest }, ref) {
7423
+ const Component2 = forwardRef32(function TextComponent({ children, asChild = false, tone, className, ...rest }, ref) {
6740
7424
  const Root = asChild ? Slot : defaultElement;
6741
- return /* @__PURE__ */ jsx70(
7425
+ return /* @__PURE__ */ jsx71(
6742
7426
  Root,
6743
7427
  {
6744
7428
  ref,
@@ -6768,8 +7452,8 @@ var TitlePage = textComponent("TitlePage", "h1", "text-title font-bold text-defa
6768
7452
  var Subtitle = textComponent("Subtitle", "p", "text-subtitle text-default-secondary");
6769
7453
  var Heading = textComponent("Heading", "h2", "text-heading font-semibold text-default");
6770
7454
  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(
7455
+ var Blockquote = forwardRef32(function Blockquote2({ children, cite, tone, className, ...rest }, ref) {
7456
+ return /* @__PURE__ */ jsx71(
6773
7457
  "blockquote",
6774
7458
  {
6775
7459
  ref,
@@ -6789,14 +7473,14 @@ var TEXT_LINK_TONE = {
6789
7473
  brand: "text-brand underline decoration-1 hover:text-brand-secondary",
6790
7474
  neutral: "text-default no-underline decoration-1 hover:underline"
6791
7475
  };
6792
- var TextLink = forwardRef30(function TextLink2({ children, asChild = false, tone = "brand", className, ...rest }, ref) {
7476
+ var TextLink = forwardRef32(function TextLink2({ children, asChild = false, tone = "brand", className, ...rest }, ref) {
6793
7477
  const Root = asChild ? Slot : "a";
6794
- return /* @__PURE__ */ jsx70(
7478
+ return /* @__PURE__ */ jsx71(
6795
7479
  Root,
6796
7480
  {
6797
7481
  ref,
6798
7482
  "data-tone": tone,
6799
- className: clsx50(
7483
+ className: clsx51(
6800
7484
  "rounded underline-offset-2 transition-colors",
6801
7485
  TEXT_LINK_TONE[tone],
6802
7486
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand focus-visible:ring-offset-1 focus-visible:ring-offset-default",
@@ -6812,13 +7496,13 @@ var LIST_MARKER = {
6812
7496
  numbered: "list-decimal pl-5",
6813
7497
  plain: "list-none pl-0"
6814
7498
  };
6815
- var TextList = forwardRef30(function TextList2({ children, variant = "bulleted", density = "default", className, ...rest }, ref) {
7499
+ var TextList = forwardRef32(function TextList2({ children, variant = "bulleted", density = "default", className, ...rest }, ref) {
6816
7500
  const Root = variant === "numbered" ? "ol" : "ul";
6817
- return /* @__PURE__ */ jsx70(
7501
+ return /* @__PURE__ */ jsx71(
6818
7502
  Root,
6819
7503
  {
6820
7504
  ref,
6821
- className: clsx50(
7505
+ className: clsx51(
6822
7506
  "text-body text-default",
6823
7507
  LIST_MARKER[variant],
6824
7508
  density === "compact" ? "space-y-0.5" : "space-y-1.5",
@@ -6829,17 +7513,17 @@ var TextList = forwardRef30(function TextList2({ children, variant = "bulleted",
6829
7513
  }
6830
7514
  );
6831
7515
  });
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 });
7516
+ var TextListItem = forwardRef32(function TextListItem2({ children, className, ...rest }, ref) {
7517
+ return /* @__PURE__ */ jsx71("li", { ref, className: clsx51("text-body text-default", className), ...rest, children });
6834
7518
  });
6835
7519
 
6836
7520
  // src/components/widgets/widget-header.tsx
6837
- import { createContext as createContext14, useContext as useContext14 } from "react";
6838
- import clsx52 from "clsx";
7521
+ import { createContext as createContext15, useContext as useContext15 } from "react";
7522
+ import clsx53 from "clsx";
6839
7523
 
6840
7524
  // src/components/widgets/widget-title.tsx
6841
- import clsx51 from "clsx";
6842
- import { jsx as jsx71 } from "react/jsx-runtime";
7525
+ import clsx52 from "clsx";
7526
+ import { jsx as jsx72 } from "react/jsx-runtime";
6843
7527
  var sizeStyles4 = {
6844
7528
  sm: "text-subheading-sm font-semibold leading-none",
6845
7529
  // Was `text-[18px]`, which had no step on the type scale (Scale 04 = 16, Scale 05 = 20).
@@ -6849,17 +7533,17 @@ var sizeStyles4 = {
6849
7533
  lg: "text-subheading font-semibold leading-[1.2]"
6850
7534
  };
6851
7535
  function WidgetTitle({ children, size = "sm", className }) {
6852
- return /* @__PURE__ */ jsx71("h3", { className: clsx51(sizeStyles4[size], "text-default", className), children });
7536
+ return /* @__PURE__ */ jsx72("h3", { className: clsx52(sizeStyles4[size], "text-default", className), children });
6853
7537
  }
6854
7538
 
6855
7539
  // src/components/widgets/widget-header.tsx
6856
- import { jsx as jsx72, jsxs as jsxs48 } from "react/jsx-runtime";
6857
- var WidgetHeaderAccessoryContext = createContext14(null);
7540
+ import { jsx as jsx73, jsxs as jsxs49 } from "react/jsx-runtime";
7541
+ var WidgetHeaderAccessoryContext = createContext15(null);
6858
7542
  function WidgetHeaderAccessoryProvider({ accessory, children }) {
6859
- return /* @__PURE__ */ jsx72(WidgetHeaderAccessoryContext.Provider, { value: accessory, children });
7543
+ return /* @__PURE__ */ jsx73(WidgetHeaderAccessoryContext.Provider, { value: accessory, children });
6860
7544
  }
6861
7545
  function useWidgetHeaderAccessory() {
6862
- return useContext14(WidgetHeaderAccessoryContext);
7546
+ return useContext15(WidgetHeaderAccessoryContext);
6863
7547
  }
6864
7548
  var eyebrowStyles = {
6865
7549
  uppercase: "text-body-tiny font-medium uppercase tracking-[0.66px] text-default-secondary",
@@ -6878,13 +7562,13 @@ function WidgetHeader({
6878
7562
  }) {
6879
7563
  const provided = useWidgetHeaderAccessory();
6880
7564
  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 })
7565
+ return /* @__PURE__ */ jsxs49("div", { className: clsx53("flex items-start justify-between gap-2", className), children: [
7566
+ /* @__PURE__ */ jsxs49("div", { className: "min-w-0 flex-1", children: [
7567
+ eyebrow && /* @__PURE__ */ jsx73("p", { className: eyebrowStyles[eyebrowVariant], children: eyebrow }),
7568
+ /* @__PURE__ */ jsx73(WidgetTitle, { size: titleSize, children: title }),
7569
+ subtitle && /* @__PURE__ */ jsx73("p", { className: "mt-1 text-body-xs text-default-secondary leading-snug", children: subtitle })
6886
7570
  ] }),
6887
- /* @__PURE__ */ jsxs48("div", { className: "flex shrink-0 items-center gap-2", children: [
7571
+ /* @__PURE__ */ jsxs49("div", { className: "flex shrink-0 items-center gap-2", children: [
6888
7572
  badge,
6889
7573
  action,
6890
7574
  accessory
@@ -6893,24 +7577,24 @@ function WidgetHeader({
6893
7577
  }
6894
7578
 
6895
7579
  // src/components/widgets/widget-footer.tsx
6896
- import clsx53 from "clsx";
6897
- import { jsx as jsx73, jsxs as jsxs49 } from "react/jsx-runtime";
7580
+ import clsx54 from "clsx";
7581
+ import { jsx as jsx74, jsxs as jsxs50 } from "react/jsx-runtime";
6898
7582
  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 })
7583
+ return /* @__PURE__ */ jsxs50("div", { className: clsx54("flex items-center gap-3", className), children: [
7584
+ caption && /* @__PURE__ */ jsxs50("div", { className: "flex items-stretch gap-3 flex-1 min-w-0", children: [
7585
+ /* @__PURE__ */ jsx74("div", { className: "w-0.5 shrink-0 self-stretch rounded-full bg-brand" }),
7586
+ /* @__PURE__ */ jsxs50("div", { className: "min-w-0", children: [
7587
+ /* @__PURE__ */ jsx74("p", { className: "text-body-sm font-medium text-default leading-snug", children: caption }),
7588
+ subcaption && /* @__PURE__ */ jsx74("p", { className: "mt-0.5 text-body-xs text-default-secondary", children: subcaption })
6905
7589
  ] })
6906
7590
  ] }),
6907
- action && /* @__PURE__ */ jsx73("div", { className: "ml-auto shrink-0", children: action })
7591
+ action && /* @__PURE__ */ jsx74("div", { className: "ml-auto shrink-0", children: action })
6908
7592
  ] });
6909
7593
  }
6910
7594
 
6911
7595
  // src/components/widgets/widget-grid.tsx
6912
- import clsx54 from "clsx";
6913
- import { jsx as jsx74 } from "react/jsx-runtime";
7596
+ import clsx55 from "clsx";
7597
+ import { jsx as jsx75 } from "react/jsx-runtime";
6914
7598
  var COL_SPAN = {
6915
7599
  tiny: "col-span-6 lg:col-span-3",
6916
7600
  small: "col-span-12 lg:col-span-4",
@@ -6929,18 +7613,18 @@ var HEIGHT_PX = {
6929
7613
  large: 752
6930
7614
  };
6931
7615
  function WidgetGrid({ children, className }) {
6932
- return /* @__PURE__ */ jsx74("div", { className: cn("flex w-full flex-col gap-3 lg:gap-6", className), children });
7616
+ return /* @__PURE__ */ jsx75("div", { className: cn("flex w-full flex-col gap-3 lg:gap-6", className), children });
6933
7617
  }
6934
7618
  function WidgetGridRow({ children, className }) {
6935
- return /* @__PURE__ */ jsx74("div", { className: cn("grid grid-cols-12 items-start gap-3 lg:gap-6", className), children });
7619
+ return /* @__PURE__ */ jsx75("div", { className: cn("grid grid-cols-12 items-start gap-3 lg:gap-6", className), children });
6936
7620
  }
6937
7621
  function WidgetGridItem({ size, height, className, ...rest }) {
6938
- return /* @__PURE__ */ jsx74(
7622
+ return /* @__PURE__ */ jsx75(
6939
7623
  "div",
6940
7624
  {
6941
7625
  "data-size": size,
6942
7626
  "data-height": height,
6943
- className: cn(COL_SPAN[size], height && clsx54(HEIGHT_CLASS[height], "min-h-0"), className),
7627
+ className: cn(COL_SPAN[size], height && clsx55(HEIGHT_CLASS[height], "min-h-0"), className),
6944
7628
  ...rest
6945
7629
  }
6946
7630
  );
@@ -7003,12 +7687,12 @@ function slotWidthPx(gridWidthPx, columnGapPx, cols) {
7003
7687
  }
7004
7688
 
7005
7689
  // 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;
7690
+ import { useCallback as useCallback8, useEffect as useEffect11, useLayoutEffect as useLayoutEffect3, useRef as useRef14, useState as useState21 } from "react";
7691
+ var useIsomorphicLayoutEffect = typeof window === "undefined" ? useEffect11 : useLayoutEffect3;
7008
7692
  var TIER_SETTLE_MS = 200;
7009
7693
  function useWidthTier({ frozen = false } = {}) {
7010
- const [node, setNode] = useState20(null);
7011
- const [{ widthPx, tier }, setMeasured] = useState20({
7694
+ const [node, setNode] = useState21(null);
7695
+ const [{ widthPx, tier }, setMeasured] = useState21({
7012
7696
  widthPx: null,
7013
7697
  tier: "wide"
7014
7698
  });
@@ -7019,7 +7703,7 @@ function useWidthTier({ frozen = false } = {}) {
7019
7703
  tierRef.current = tier;
7020
7704
  const widthRef = useRef14(widthPx);
7021
7705
  widthRef.current = widthPx;
7022
- const commit = useCallback6(() => {
7706
+ const commit = useCallback8(() => {
7023
7707
  const raw = observed.current;
7024
7708
  if (raw === null || raw <= 0 || frozenRef.current) return;
7025
7709
  const next = quantizeWidth(raw);
@@ -7051,15 +7735,15 @@ function useWidthTier({ frozen = false } = {}) {
7051
7735
  if (timer) clearTimeout(timer);
7052
7736
  };
7053
7737
  }, [node, commit]);
7054
- useEffect10(() => {
7738
+ useEffect11(() => {
7055
7739
  if (!frozen) commit();
7056
7740
  }, [frozen, commit]);
7057
7741
  return { ref: setNode, widthPx, tier };
7058
7742
  }
7059
7743
 
7060
7744
  // 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";
7745
+ import clsx56 from "clsx";
7746
+ import { Fragment as Fragment12, jsx as jsx76, jsxs as jsxs51 } from "react/jsx-runtime";
7063
7747
  var DOT_TONE = {
7064
7748
  neutral: "bg-status-dot-neutral",
7065
7749
  info: "bg-status-dot-info",
@@ -7084,20 +7768,20 @@ function StatTile({
7084
7768
  }) {
7085
7769
  const showDot = Boolean(tone || dotColor);
7086
7770
  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(
7771
+ const content = /* @__PURE__ */ jsxs51(Fragment12, { children: [
7772
+ /* @__PURE__ */ jsxs51("span", { className: "flex items-center gap-1.5", children: [
7773
+ showDot && /* @__PURE__ */ jsx76(
7090
7774
  "span",
7091
7775
  {
7092
7776
  "aria-hidden": true,
7093
- className: clsx55("size-2 shrink-0 rounded-full", tone && DOT_TONE[tone]),
7777
+ className: clsx56("size-2 shrink-0 rounded-full", tone && DOT_TONE[tone]),
7094
7778
  style: tone ? void 0 : { backgroundColor: dotColor }
7095
7779
  }
7096
7780
  ),
7097
- /* @__PURE__ */ jsx75("span", { className: "text-body-xs font-medium text-default-secondary whitespace-nowrap", children: label })
7781
+ /* @__PURE__ */ jsx76("span", { className: "text-body-xs font-medium text-default-secondary whitespace-nowrap", children: label })
7098
7782
  ] }),
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 })
7783
+ /* @__PURE__ */ jsx76("span", { className: "text-heading font-semibold text-default leading-none", children: value }),
7784
+ hint && /* @__PURE__ */ jsx76("span", { className: "text-body-tiny text-default-secondary", children: hint })
7101
7785
  ] });
7102
7786
  const rootProps = {
7103
7787
  "data-state": selected ? "selected" : void 0,
@@ -7112,18 +7796,18 @@ function StatTile({
7112
7796
  return (
7113
7797
  // A link to a filtered view is the current one, not a pressed toggle: `aria-pressed` is
7114
7798
  // only valid on a button.
7115
- /* @__PURE__ */ jsx75(Slot, { ...rootProps, "aria-current": selected ? "true" : void 0, wrapChildren: () => content, children })
7799
+ /* @__PURE__ */ jsx76(Slot, { ...rootProps, "aria-current": selected ? "true" : void 0, wrapChildren: () => content, children })
7116
7800
  );
7117
7801
  }
7118
7802
  if (onClick) {
7119
- return /* @__PURE__ */ jsx75("button", { type: "button", "aria-pressed": selected ?? false, onClick, ...rootProps, children: content });
7803
+ return /* @__PURE__ */ jsx76("button", { type: "button", "aria-pressed": selected ?? false, onClick, ...rootProps, children: content });
7120
7804
  }
7121
- return /* @__PURE__ */ jsx75("div", { ...rootProps, children: content });
7805
+ return /* @__PURE__ */ jsx76("div", { ...rootProps, children: content });
7122
7806
  }
7123
7807
 
7124
7808
  // src/components/stats/stat-number.tsx
7125
- import clsx56 from "clsx";
7126
- import { jsx as jsx76, jsxs as jsxs51 } from "react/jsx-runtime";
7809
+ import clsx57 from "clsx";
7810
+ import { jsx as jsx77, jsxs as jsxs52 } from "react/jsx-runtime";
7127
7811
  var sizeStyles5 = {
7128
7812
  sm: "text-subtitle",
7129
7813
  md: "text-subtitle-lg",
@@ -7134,22 +7818,22 @@ var weightStyles = {
7134
7818
  bold: "font-bold"
7135
7819
  };
7136
7820
  function StatNumber({ value, unit, size = "md", weight = "bold", color, className }) {
7137
- return /* @__PURE__ */ jsxs51(
7821
+ return /* @__PURE__ */ jsxs52(
7138
7822
  "p",
7139
7823
  {
7140
- className: clsx56(sizeStyles5[size], weightStyles[weight], "leading-none", !color && "text-default", className),
7824
+ className: clsx57(sizeStyles5[size], weightStyles[weight], "leading-none", !color && "text-default", className),
7141
7825
  style: color ? { color } : void 0,
7142
7826
  children: [
7143
7827
  value,
7144
- unit && /* @__PURE__ */ jsx76("span", { className: "ml-1 text-subheading font-medium text-default-secondary", children: unit })
7828
+ unit && /* @__PURE__ */ jsx77("span", { className: "ml-1 text-subheading font-medium text-default-secondary", children: unit })
7145
7829
  ]
7146
7830
  }
7147
7831
  );
7148
7832
  }
7149
7833
 
7150
7834
  // src/components/stats/score-value.tsx
7151
- import clsx57 from "clsx";
7152
- import { jsx as jsx77, jsxs as jsxs52 } from "react/jsx-runtime";
7835
+ import clsx58 from "clsx";
7836
+ import { jsx as jsx78, jsxs as jsxs53 } from "react/jsx-runtime";
7153
7837
  var DEFAULT_SCORE_THRESHOLDS = { danger: 80, warning: 65, neutral: 50 };
7154
7838
  function getScoreTone(score, {
7155
7839
  direction = "higher-is-worse",
@@ -7193,15 +7877,15 @@ function ScoreValue({
7193
7877
  }) {
7194
7878
  const numeric = typeof value === "number" ? value : Number(value);
7195
7879
  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 })
7880
+ return /* @__PURE__ */ jsxs53("span", { "data-tone": resolved, className: clsx58("inline-flex items-baseline gap-1", className), children: [
7881
+ /* @__PURE__ */ jsx78("span", { className: clsx58(SIZE10[size], WEIGHT[weight], TONE3[resolved]), children: value }),
7882
+ label && /* @__PURE__ */ jsx78("span", { className: "text-body-xs text-default-secondary whitespace-nowrap", children: label })
7199
7883
  ] });
7200
7884
  }
7201
7885
 
7202
7886
  // src/components/stats/tile-grid.tsx
7203
- import clsx58 from "clsx";
7204
- import { jsx as jsx78 } from "react/jsx-runtime";
7887
+ import clsx59 from "clsx";
7888
+ import { jsx as jsx79 } from "react/jsx-runtime";
7205
7889
  var COLUMNS2 = {
7206
7890
  sm: {
7207
7891
  2: "grid-cols-2",
@@ -7231,7 +7915,7 @@ function TileGrid({
7231
7915
  at = "lg",
7232
7916
  className
7233
7917
  }) {
7234
- return /* @__PURE__ */ jsx78("div", { className: clsx58("grid gap-3", COLUMNS2[at][columns], className), children });
7918
+ return /* @__PURE__ */ jsx79("div", { className: clsx59("grid gap-3", COLUMNS2[at][columns], className), children });
7235
7919
  }
7236
7920
 
7237
7921
  // src/components/charts/chart-tone.ts
@@ -7252,8 +7936,8 @@ function resolveChartColor(color, tone, index = 0) {
7252
7936
  }
7253
7937
 
7254
7938
  // src/components/charts/bar-chart.tsx
7255
- import clsx59 from "clsx";
7256
- import { jsx as jsx79, jsxs as jsxs53 } from "react/jsx-runtime";
7939
+ import clsx60 from "clsx";
7940
+ import { jsx as jsx80, jsxs as jsxs54 } from "react/jsx-runtime";
7257
7941
  var SIZE11 = {
7258
7942
  sm: { band: 14, gap: 6, label: "text-body-tiny" },
7259
7943
  md: { band: 20, gap: 8, label: "text-body-xs" },
@@ -7280,10 +7964,10 @@ function BarChart({
7280
7964
  );
7281
7965
  const max = Math.max(...categoryTotals, 1);
7282
7966
  const horizontal = orientation === "horizontal";
7283
- return /* @__PURE__ */ jsx79(
7967
+ return /* @__PURE__ */ jsx80(
7284
7968
  "div",
7285
7969
  {
7286
- className: clsx59("flex w-full min-w-0", horizontal ? "flex-col gap-2" : "flex-row items-end gap-3", className),
7970
+ className: clsx60("flex w-full min-w-0", horizontal ? "flex-col gap-2" : "flex-row items-end gap-3", className),
7287
7971
  role: label ? "img" : void 0,
7288
7972
  "aria-label": label,
7289
7973
  "aria-hidden": label ? void 0 : true,
@@ -7293,23 +7977,23 @@ function BarChart({
7293
7977
  value: Math.max(0, s.values[ci] ?? 0),
7294
7978
  color: resolveChartColor(s.color, s.tone, si)
7295
7979
  }));
7296
- return /* @__PURE__ */ jsxs53(
7980
+ return /* @__PURE__ */ jsxs54(
7297
7981
  "div",
7298
7982
  {
7299
- className: clsx59("flex min-w-0", horizontal ? "flex-col gap-1" : "h-full flex-col justify-end gap-1.5"),
7983
+ className: clsx60("flex min-w-0", horizontal ? "flex-col gap-1" : "h-full flex-col justify-end gap-1.5"),
7300
7984
  style: horizontal ? void 0 : { width: perCategory },
7301
7985
  children: [
7302
- showLabels && horizontal && /* @__PURE__ */ jsx79("span", { className: clsx59("truncate text-default-secondary", labelClass2), children: category }),
7303
- /* @__PURE__ */ jsxs53(
7986
+ showLabels && horizontal && /* @__PURE__ */ jsx80("span", { className: clsx60("truncate text-default-secondary", labelClass2), children: category }),
7987
+ /* @__PURE__ */ jsxs54(
7304
7988
  "div",
7305
7989
  {
7306
- className: clsx59("flex", horizontal ? "items-center gap-2" : "w-full flex-1 items-end justify-center"),
7990
+ className: clsx60("flex", horizontal ? "items-center gap-2" : "w-full flex-1 items-end justify-center"),
7307
7991
  style: horizontal ? void 0 : { height: length },
7308
7992
  children: [
7309
- /* @__PURE__ */ jsx79(
7993
+ /* @__PURE__ */ jsx80(
7310
7994
  "div",
7311
7995
  {
7312
- className: clsx59("flex min-w-0", stacked ? "gap-0" : ""),
7996
+ className: clsx60("flex min-w-0", stacked ? "gap-0" : ""),
7313
7997
  style: horizontal ? { width: length, flexDirection: stacked ? "row" : "column", gap: stacked ? 0 : gap } : {
7314
7998
  height: "100%",
7315
7999
  width: perCategory,
@@ -7319,7 +8003,7 @@ function BarChart({
7319
8003
  },
7320
8004
  children: bars.map((bar) => {
7321
8005
  const extent = `${bar.value / max * 100}%`;
7322
- return /* @__PURE__ */ jsx79(
8006
+ return /* @__PURE__ */ jsx80(
7323
8007
  "div",
7324
8008
  {
7325
8009
  title: `${category} \xB7 ${bar.key}: ${bar.value}`,
@@ -7335,11 +8019,11 @@ function BarChart({
7335
8019
  })
7336
8020
  }
7337
8021
  ),
7338
- showValues && horizontal && /* @__PURE__ */ jsx79("span", { className: clsx59("shrink-0 tabular-nums text-default-secondary", labelClass2), children: categoryTotals[ci] })
8022
+ showValues && horizontal && /* @__PURE__ */ jsx80("span", { className: clsx60("shrink-0 tabular-nums text-default-secondary", labelClass2), children: categoryTotals[ci] })
7339
8023
  ]
7340
8024
  }
7341
8025
  ),
7342
- showLabels && !horizontal && /* @__PURE__ */ jsx79("span", { className: clsx59("truncate text-center text-default-secondary", labelClass2), children: category })
8026
+ showLabels && !horizontal && /* @__PURE__ */ jsx80("span", { className: clsx60("truncate text-center text-default-secondary", labelClass2), children: category })
7343
8027
  ]
7344
8028
  },
7345
8029
  category
@@ -7350,8 +8034,8 @@ function BarChart({
7350
8034
  }
7351
8035
 
7352
8036
  // src/components/charts/donut-chart.tsx
7353
- import clsx60 from "clsx";
7354
- import { jsx as jsx80, jsxs as jsxs54 } from "react/jsx-runtime";
8037
+ import clsx61 from "clsx";
8038
+ import { jsx as jsx81, jsxs as jsxs55 } from "react/jsx-runtime";
7355
8039
  var SIZE12 = {
7356
8040
  sm: { box: 88, thickness: 10 },
7357
8041
  md: { box: 128, thickness: 14 },
@@ -7375,8 +8059,8 @@ function DonutChart({
7375
8059
  const visible = segments.filter((s) => s.value > 0);
7376
8060
  const gapLength = visible.length > 1 ? gap / 360 * circumference : 0;
7377
8061
  let offset = 0;
7378
- return /* @__PURE__ */ jsxs54("div", { className: clsx60("relative inline-flex shrink-0 items-center justify-center", className), children: [
7379
- /* @__PURE__ */ jsxs54(
8062
+ return /* @__PURE__ */ jsxs55("div", { className: clsx61("relative inline-flex shrink-0 items-center justify-center", className), children: [
8063
+ /* @__PURE__ */ jsxs55(
7380
8064
  "svg",
7381
8065
  {
7382
8066
  width: box,
@@ -7387,7 +8071,7 @@ function DonutChart({
7387
8071
  "aria-hidden": label ? void 0 : true,
7388
8072
  className: "block -rotate-90",
7389
8073
  children: [
7390
- /* @__PURE__ */ jsx80("circle", { cx: box / 2, cy: box / 2, r: radius, fill: "none", stroke: CHART_TRACK, strokeWidth: ring }),
8074
+ /* @__PURE__ */ jsx81("circle", { cx: box / 2, cy: box / 2, r: radius, fill: "none", stroke: CHART_TRACK, strokeWidth: ring }),
7391
8075
  total > 0 && segments.map((segment, i) => {
7392
8076
  const fraction = Math.max(0, segment.value) / total;
7393
8077
  const length = Math.max(0, fraction * circumference - gapLength);
@@ -7395,7 +8079,7 @@ function DonutChart({
7395
8079
  const thisOffset = offset;
7396
8080
  offset += fraction * circumference;
7397
8081
  if (segment.value <= 0) return null;
7398
- return /* @__PURE__ */ jsx80(
8082
+ return /* @__PURE__ */ jsx81(
7399
8083
  "circle",
7400
8084
  {
7401
8085
  cx: box / 2,
@@ -7414,16 +8098,16 @@ function DonutChart({
7414
8098
  ]
7415
8099
  }
7416
8100
  ),
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 })
8101
+ (centerValue != null || centerLabel != null) && /* @__PURE__ */ jsxs55("div", { className: "absolute inset-0 flex flex-col items-center justify-center text-center", children: [
8102
+ centerValue != null && /* @__PURE__ */ jsx81("span", { className: "text-subheading-sm font-bold leading-none text-default", children: centerValue }),
8103
+ centerLabel != null && /* @__PURE__ */ jsx81("span", { className: "mt-0.5 text-body-tiny text-default-secondary", children: centerLabel })
7420
8104
  ] })
7421
8105
  ] });
7422
8106
  }
7423
8107
 
7424
8108
  // src/components/charts/radial-gauge.tsx
7425
- import clsx61 from "clsx";
7426
- import { jsx as jsx81, jsxs as jsxs55 } from "react/jsx-runtime";
8109
+ import clsx62 from "clsx";
8110
+ import { jsx as jsx82, jsxs as jsxs56 } from "react/jsx-runtime";
7427
8111
  var SIZE13 = {
7428
8112
  sm: { box: 72, thickness: 8, value: "text-body-sm" },
7429
8113
  md: { box: 104, thickness: 11, value: "text-subheading-sm" },
@@ -7452,8 +8136,8 @@ function RadialGauge({
7452
8136
  const fraction = max > 0 ? Math.min(1, Math.max(0, value / max)) : 0;
7453
8137
  const stroke = resolveChartColor(color, tone);
7454
8138
  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(
8139
+ return /* @__PURE__ */ jsxs56("div", { className: clsx62("relative inline-flex shrink-0 items-center justify-center", className), children: [
8140
+ /* @__PURE__ */ jsxs56(
7457
8141
  "svg",
7458
8142
  {
7459
8143
  width: box,
@@ -7465,7 +8149,7 @@ function RadialGauge({
7465
8149
  className: "block",
7466
8150
  style: { transform: `rotate(${rotation}deg)` },
7467
8151
  children: [
7468
- /* @__PURE__ */ jsx81(
8152
+ /* @__PURE__ */ jsx82(
7469
8153
  "circle",
7470
8154
  {
7471
8155
  cx: box / 2,
@@ -7478,7 +8162,7 @@ function RadialGauge({
7478
8162
  strokeLinecap: "round"
7479
8163
  }
7480
8164
  ),
7481
- /* @__PURE__ */ jsx81(
8165
+ /* @__PURE__ */ jsx82(
7482
8166
  "circle",
7483
8167
  {
7484
8168
  cx: box / 2,
@@ -7495,17 +8179,17 @@ function RadialGauge({
7495
8179
  ]
7496
8180
  }
7497
8181
  ),
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 })
8182
+ /* @__PURE__ */ jsxs56("div", { className: "absolute inset-0 flex flex-col items-center justify-center text-center", children: [
8183
+ children === void 0 ? /* @__PURE__ */ jsx82("span", { className: clsx62("font-bold leading-none text-default", preset.value), children: value }) : children,
8184
+ centerLabel != null && /* @__PURE__ */ jsx82("span", { className: "mt-0.5 text-body-tiny text-default-secondary", children: centerLabel })
7501
8185
  ] })
7502
8186
  ] });
7503
8187
  }
7504
8188
 
7505
8189
  // 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";
8190
+ import { useId as useId19 } from "react";
8191
+ import clsx63 from "clsx";
8192
+ import { Fragment as Fragment13, jsx as jsx83, jsxs as jsxs57 } from "react/jsx-runtime";
7509
8193
  var SIZE14 = {
7510
8194
  sm: { width: 80, height: 24 },
7511
8195
  md: { width: 120, height: 36 },
@@ -7525,7 +8209,7 @@ function Sparkline({
7525
8209
  label,
7526
8210
  className
7527
8211
  }) {
7528
- const gradientId = useId18();
8212
+ const gradientId = useId19();
7529
8213
  if (data.length < 2) return null;
7530
8214
  const w = width ?? SIZE14[size].width;
7531
8215
  const h = height ?? SIZE14[size].height;
@@ -7543,7 +8227,7 @@ function Sparkline({
7543
8227
  const points = coords.map((p) => `${p.x.toFixed(2)},${p.y.toFixed(2)}`).join(" ");
7544
8228
  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
8229
  const last = coords[coords.length - 1];
7546
- return /* @__PURE__ */ jsxs56(
8230
+ return /* @__PURE__ */ jsxs57(
7547
8231
  "svg",
7548
8232
  {
7549
8233
  width: stretch ? void 0 : w,
@@ -7554,16 +8238,16 @@ function Sparkline({
7554
8238
  role: label ? "img" : void 0,
7555
8239
  "aria-label": label,
7556
8240
  "aria-hidden": label ? void 0 : true,
7557
- className: clsx62("block", stretch ? "h-full w-full" : "shrink-0", className),
8241
+ className: clsx63("block", stretch ? "h-full w-full" : "shrink-0", className),
7558
8242
  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 })
8243
+ variant === "area" && /* @__PURE__ */ jsxs57(Fragment13, { children: [
8244
+ /* @__PURE__ */ jsx83("defs", { children: /* @__PURE__ */ jsxs57("linearGradient", { id: gradientId, x1: "0", y1: "0", x2: "0", y2: "1", children: [
8245
+ /* @__PURE__ */ jsx83("stop", { offset: "0%", stopColor: stroke, stopOpacity: 0.24 }),
8246
+ /* @__PURE__ */ jsx83("stop", { offset: "100%", stopColor: stroke, stopOpacity: 0 })
7563
8247
  ] }) }),
7564
- /* @__PURE__ */ jsx82("path", { d: areaPath, fill: `url(#${gradientId})` })
8248
+ /* @__PURE__ */ jsx83("path", { d: areaPath, fill: `url(#${gradientId})` })
7565
8249
  ] }),
7566
- /* @__PURE__ */ jsx82(
8250
+ /* @__PURE__ */ jsx83(
7567
8251
  "polyline",
7568
8252
  {
7569
8253
  points,
@@ -7575,7 +8259,7 @@ function Sparkline({
7575
8259
  fill: "none"
7576
8260
  }
7577
8261
  ),
7578
- showEndDot && /* @__PURE__ */ jsx82(
8262
+ showEndDot && /* @__PURE__ */ jsx83(
7579
8263
  "circle",
7580
8264
  {
7581
8265
  cx: last.x,
@@ -7592,8 +8276,8 @@ function Sparkline({
7592
8276
  }
7593
8277
 
7594
8278
  // src/components/charts/mini-bar-chart.tsx
7595
- import clsx63 from "clsx";
7596
- import { jsx as jsx83 } from "react/jsx-runtime";
8279
+ import clsx64 from "clsx";
8280
+ import { jsx as jsx84 } from "react/jsx-runtime";
7597
8281
  var SIZE15 = {
7598
8282
  sm: { width: 80, height: 32, gap: 2 },
7599
8283
  md: { width: 120, height: 48, gap: 3 },
@@ -7629,7 +8313,7 @@ function MiniBarChart({
7629
8313
  const span = vertical ? w : h;
7630
8314
  const extent = vertical ? h : w;
7631
8315
  const barThickness = (span - g * (bars.length - 1)) / bars.length;
7632
- return /* @__PURE__ */ jsx83(
8316
+ return /* @__PURE__ */ jsx84(
7633
8317
  "svg",
7634
8318
  {
7635
8319
  width: stretch ? void 0 : w,
@@ -7640,11 +8324,11 @@ function MiniBarChart({
7640
8324
  role: label ? "img" : void 0,
7641
8325
  "aria-label": label,
7642
8326
  "aria-hidden": label ? void 0 : true,
7643
- className: clsx63("block", stretch ? "h-full w-full" : "shrink-0", className),
8327
+ className: clsx64("block", stretch ? "h-full w-full" : "shrink-0", className),
7644
8328
  children: bars.map((v, i) => {
7645
8329
  const magnitude = Math.max(2, v / max * extent);
7646
8330
  const offset = i * (barThickness + g);
7647
- return /* @__PURE__ */ jsx83(
8331
+ return /* @__PURE__ */ jsx84(
7648
8332
  "rect",
7649
8333
  {
7650
8334
  x: (vertical ? offset : 0).toFixed(2),
@@ -7662,21 +8346,21 @@ function MiniBarChart({
7662
8346
  }
7663
8347
 
7664
8348
  // src/components/charts/chart-legend.tsx
7665
- import clsx65 from "clsx";
8349
+ import clsx66 from "clsx";
7666
8350
 
7667
8351
  // src/components/charts/legend-dot.tsx
7668
- import clsx64 from "clsx";
7669
- import { jsx as jsx84 } from "react/jsx-runtime";
8352
+ import clsx65 from "clsx";
8353
+ import { jsx as jsx85 } from "react/jsx-runtime";
7670
8354
  var SHAPE = {
7671
8355
  dot: { sm: "size-1.5 rounded-full", md: "size-2 rounded-full" },
7672
8356
  square: { sm: "size-1.5 rounded-[2px]", md: "size-2 rounded-[3px]" },
7673
8357
  line: { sm: "h-0.5 w-3 rounded-full", md: "h-0.5 w-4 rounded-full" }
7674
8358
  };
7675
8359
  function LegendDot({ tone, color, hue, size = "md", shape = "dot", className }) {
7676
- return /* @__PURE__ */ jsx84(
8360
+ return /* @__PURE__ */ jsx85(
7677
8361
  "span",
7678
8362
  {
7679
- className: clsx64("inline-block shrink-0", SHAPE[shape][size], className),
8363
+ className: clsx65("inline-block shrink-0", SHAPE[shape][size], className),
7680
8364
  style: { backgroundColor: color || !hue ? resolveChartColor(color, tone) : `var(--badge-${hue}-text)` },
7681
8365
  "aria-hidden": true
7682
8366
  }
@@ -7684,7 +8368,7 @@ function LegendDot({ tone, color, hue, size = "md", shape = "dot", className })
7684
8368
  }
7685
8369
 
7686
8370
  // src/components/charts/chart-legend.tsx
7687
- import { jsx as jsx85, jsxs as jsxs57 } from "react/jsx-runtime";
8371
+ import { jsx as jsx86, jsxs as jsxs58 } from "react/jsx-runtime";
7688
8372
  function ChartLegend({
7689
8373
  items,
7690
8374
  orientation = "vertical",
@@ -7693,23 +8377,23 @@ function ChartLegend({
7693
8377
  className
7694
8378
  }) {
7695
8379
  const horizontal = orientation === "horizontal";
7696
- return /* @__PURE__ */ jsx85(
8380
+ return /* @__PURE__ */ jsx86(
7697
8381
  "div",
7698
8382
  {
7699
- className: clsx65(
8383
+ className: clsx66(
7700
8384
  horizontal ? "flex flex-wrap items-center gap-x-4 gap-y-2" : "flex flex-col gap-3",
7701
8385
  className
7702
8386
  ),
7703
- children: items.map((item, i) => /* @__PURE__ */ jsxs57(
8387
+ children: items.map((item, i) => /* @__PURE__ */ jsxs58(
7704
8388
  "div",
7705
8389
  {
7706
- className: clsx65("flex items-center gap-2", horizontal ? "min-w-0" : "justify-between"),
8390
+ className: clsx66("flex items-center gap-2", horizontal ? "min-w-0" : "justify-between"),
7707
8391
  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 })
8392
+ /* @__PURE__ */ jsxs58("div", { className: "flex min-w-0 items-center gap-2", children: [
8393
+ /* @__PURE__ */ jsx86(LegendDot, { color: resolveChartColor(item.color, item.tone, i), size, shape }),
8394
+ /* @__PURE__ */ jsx86("span", { className: "truncate text-body-xs text-default-secondary", children: item.label })
7711
8395
  ] }),
7712
- item.count != null && /* @__PURE__ */ jsx85("span", { className: "shrink-0 text-body-xs font-semibold tabular-nums text-default", children: item.count })
8396
+ item.count != null && /* @__PURE__ */ jsx86("span", { className: "shrink-0 text-body-xs font-semibold tabular-nums text-default", children: item.count })
7713
8397
  ]
7714
8398
  },
7715
8399
  item.label
@@ -7719,9 +8403,9 @@ function ChartLegend({
7719
8403
  }
7720
8404
 
7721
8405
  // src/components/charts/trend-label.tsx
7722
- import clsx66 from "clsx";
8406
+ import clsx67 from "clsx";
7723
8407
  import { TrendingDownIcon, TrendingUpIcon } from "lucide-react";
7724
- import { jsx as jsx86, jsxs as jsxs58 } from "react/jsx-runtime";
8408
+ import { jsx as jsx87, jsxs as jsxs59 } from "react/jsx-runtime";
7725
8409
  var SIZE16 = {
7726
8410
  sm: "text-body-xs",
7727
8411
  md: "text-body-sm",
@@ -7755,10 +8439,10 @@ function TrendLabel({
7755
8439
  const flat = value === 0;
7756
8440
  const good = direction === "up-is-good" ? rising : !rising;
7757
8441
  const Arrow = rising ? TrendingUpIcon : TrendingDownIcon;
7758
- return /* @__PURE__ */ jsxs58(
8442
+ return /* @__PURE__ */ jsxs59(
7759
8443
  "span",
7760
8444
  {
7761
- className: clsx66(
8445
+ className: clsx67(
7762
8446
  "inline-flex items-center gap-1 whitespace-nowrap",
7763
8447
  SIZE16[size],
7764
8448
  WEIGHT2[weight ?? weightBySize[size]],
@@ -7767,7 +8451,7 @@ function TrendLabel({
7767
8451
  ),
7768
8452
  style: color ? { color } : void 0,
7769
8453
  children: [
7770
- showArrow && !flat && /* @__PURE__ */ jsx86(Arrow, { className: clsx66("shrink-0", ICON_SIZE[size]), "aria-hidden": true }),
8454
+ showArrow && !flat && /* @__PURE__ */ jsx87(Arrow, { className: clsx67("shrink-0", ICON_SIZE[size]), "aria-hidden": true }),
7771
8455
  rising ? "+" : "",
7772
8456
  value,
7773
8457
  suffix
@@ -7777,9 +8461,9 @@ function TrendLabel({
7777
8461
  }
7778
8462
 
7779
8463
  // 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";
8464
+ import { Fragment as Fragment14, useEffect as useEffect12, useId as useId20, useMemo as useMemo12 } from "react";
8465
+ import clsx68 from "clsx";
8466
+ import { jsx as jsx88, jsxs as jsxs60 } from "react/jsx-runtime";
7783
8467
  var isGroup2 = (entry) => "options" in entry;
7784
8468
  function Listbox({
7785
8469
  options,
@@ -7792,13 +8476,13 @@ function Listbox({
7792
8476
  empty,
7793
8477
  className
7794
8478
  }) {
7795
- const id = useId19();
8479
+ const id = useId20();
7796
8480
  const [value, setValue] = useControllableState({
7797
8481
  value: valueProp,
7798
8482
  defaultValue,
7799
8483
  onChange: onValueChange
7800
8484
  });
7801
- const flat = useMemo11(
8485
+ const flat = useMemo12(
7802
8486
  () => options.flatMap((entry) => isGroup2(entry) ? entry.options : [entry]),
7803
8487
  [options]
7804
8488
  );
@@ -7810,7 +8494,7 @@ function Listbox({
7810
8494
  defaultIndex: Math.max(0, selectedIndex)
7811
8495
  });
7812
8496
  const { setActiveIndex } = roving;
7813
- useEffect11(() => {
8497
+ useEffect12(() => {
7814
8498
  if (selectedIndex >= 0) setActiveIndex(selectedIndex);
7815
8499
  }, [selectedIndex, setActiveIndex]);
7816
8500
  let index = -1;
@@ -7825,7 +8509,7 @@ function Listbox({
7825
8509
  const select = () => {
7826
8510
  if (!option.disabled) setValue(option.value);
7827
8511
  };
7828
- return /* @__PURE__ */ jsxs59(
8512
+ return /* @__PURE__ */ jsxs60(
7829
8513
  "div",
7830
8514
  {
7831
8515
  ref: item.ref,
@@ -7846,7 +8530,7 @@ function Listbox({
7846
8530
  select();
7847
8531
  }
7848
8532
  },
7849
- className: clsx67(
8533
+ className: clsx68(
7850
8534
  "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
8535
  "hover:bg-default-secondary",
7852
8536
  "data-[state=selected]:bg-brand-tertiary data-[state=selected]:font-semibold",
@@ -7854,17 +8538,17 @@ function Listbox({
7854
8538
  FOCUS_RING_INSET
7855
8539
  ),
7856
8540
  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 })
8541
+ /* @__PURE__ */ jsx88("span", { className: "min-w-0 flex-1", children: option.label }),
8542
+ option.meta !== void 0 && /* @__PURE__ */ jsx88("span", { className: "shrink-0 whitespace-nowrap font-normal text-default-secondary", children: option.meta })
7859
8543
  ]
7860
8544
  },
7861
8545
  option.value
7862
8546
  );
7863
8547
  };
7864
8548
  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 });
8549
+ return /* @__PURE__ */ jsx88("div", { className: cn("px-4 py-6 text-center text-body-xs text-default-secondary", className), children: empty });
7866
8550
  }
7867
- return /* @__PURE__ */ jsx87(
8551
+ return /* @__PURE__ */ jsx88(
7868
8552
  "div",
7869
8553
  {
7870
8554
  role: "listbox",
@@ -7873,10 +8557,10 @@ function Listbox({
7873
8557
  className: cn(maxHeight !== void 0 && ["overflow-auto overscroll-contain", SCROLLBAR_CLASSES], className),
7874
8558
  style: maxHeight !== void 0 ? { maxHeight } : void 0,
7875
8559
  children: options.map((entry, groupIndex) => {
7876
- if (!isGroup2(entry)) return /* @__PURE__ */ jsx87(Fragment13, { children: renderOption(entry) }, entry.value);
8560
+ if (!isGroup2(entry)) return /* @__PURE__ */ jsx88(Fragment14, { children: renderOption(entry) }, entry.value);
7877
8561
  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 }) }),
8562
+ return /* @__PURE__ */ jsxs60("div", { role: "group", "aria-labelledby": headerId, children: [
8563
+ /* @__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
8564
  entry.options.map(renderOption)
7881
8565
  ] }, `${groupIndex}-${entry.label}`);
7882
8566
  })
@@ -7885,9 +8569,9 @@ function Listbox({
7885
8569
  }
7886
8570
 
7887
8571
  // 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 = {
8572
+ import clsx69 from "clsx";
8573
+ import { Fragment as Fragment15, jsx as jsx89, jsxs as jsxs61 } from "react/jsx-runtime";
8574
+ var DENSITY2 = {
7891
8575
  default: {
7892
8576
  pad: "py-4",
7893
8577
  gap: "gap-3",
@@ -7926,7 +8610,7 @@ function ListRow({
7926
8610
  "aria-label": ariaLabel,
7927
8611
  className
7928
8612
  }) {
7929
- const d = DENSITY[density];
8613
+ const d = DENSITY2[density];
7930
8614
  const hasTitleLine = Boolean(leading || title != null || titleMeta || meta);
7931
8615
  const clickable = Boolean(onClick) && !asChild;
7932
8616
  const interactive = clickable || asChild;
@@ -7947,24 +8631,24 @@ function ListRow({
7947
8631
  className
7948
8632
  )
7949
8633
  };
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: [
8634
+ const body = /* @__PURE__ */ jsxs61(Fragment15, { children: [
8635
+ /* @__PURE__ */ jsxs61("div", { className: clsx69("flex min-w-0 flex-1 flex-col", d.gap), children: [
8636
+ hasTitleLine && /* @__PURE__ */ jsxs61("div", { className: "flex items-center justify-between gap-2", children: [
8637
+ /* @__PURE__ */ jsxs61("div", { className: "flex min-w-0 items-center gap-2", children: [
7954
8638
  leading,
7955
- title != null && /* @__PURE__ */ jsx88("span", { className: clsx68("truncate", d.title), children: title }),
7956
- titleMeta && /* @__PURE__ */ jsx88("span", { className: "shrink-0", children: titleMeta })
8639
+ title != null && /* @__PURE__ */ jsx89("span", { className: clsx69("truncate", d.title), children: title }),
8640
+ titleMeta && /* @__PURE__ */ jsx89("span", { className: "shrink-0", children: titleMeta })
7957
8641
  ] }),
7958
- meta && /* @__PURE__ */ jsx88("span", { className: "shrink-0", children: meta })
8642
+ meta && /* @__PURE__ */ jsx89("span", { className: "shrink-0", children: meta })
7959
8643
  ] }),
7960
- description && /* @__PURE__ */ jsx88("p", { className: d.description, children: description }),
8644
+ description && /* @__PURE__ */ jsx89("p", { className: d.description, children: description }),
7961
8645
  footer && // These two wrappers are propagation barriers, not controls — they add no
7962
8646
  // behaviour of their own and must not be focusable or take a role.
7963
8647
  // eslint-disable-next-line jsx-a11y/no-static-element-interactions
7964
- /* @__PURE__ */ jsx88("div", { onClick: stopIfInteractive, onKeyDown: stopIfInteractive, children: footer })
8648
+ /* @__PURE__ */ jsx89("div", { onClick: stopIfInteractive, onKeyDown: stopIfInteractive, children: footer })
7965
8649
  ] }),
7966
8650
  trailing && // eslint-disable-next-line jsx-a11y/no-static-element-interactions
7967
- /* @__PURE__ */ jsx88(
8651
+ /* @__PURE__ */ jsx89(
7968
8652
  "div",
7969
8653
  {
7970
8654
  className: "ml-3 flex shrink-0 items-center self-center",
@@ -7975,7 +8659,7 @@ function ListRow({
7975
8659
  )
7976
8660
  ] });
7977
8661
  if (asChild) {
7978
- return /* @__PURE__ */ jsx88(
8662
+ return /* @__PURE__ */ jsx89(
7979
8663
  Slot,
7980
8664
  {
7981
8665
  ...rootProps,
@@ -7988,7 +8672,7 @@ function ListRow({
7988
8672
  }
7989
8673
  );
7990
8674
  }
7991
- return /* @__PURE__ */ jsx88(
8675
+ return /* @__PURE__ */ jsx89(
7992
8676
  Tag,
7993
8677
  {
7994
8678
  ...rootProps,
@@ -8017,11 +8701,11 @@ function refusePress(event) {
8017
8701
  }
8018
8702
 
8019
8703
  // src/components/lists/file-row.tsx
8020
- import clsx69 from "clsx";
8704
+ import clsx70 from "clsx";
8021
8705
  import { DownloadIcon, Trash2Icon } from "lucide-react";
8022
- import { jsx as jsx89, jsxs as jsxs61 } from "react/jsx-runtime";
8706
+ import { jsx as jsx90, jsxs as jsxs62 } from "react/jsx-runtime";
8023
8707
  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 });
8708
+ 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
8709
  }
8026
8710
  function FileRow({
8027
8711
  name,
@@ -8035,24 +8719,24 @@ function FileRow({
8035
8719
  actions,
8036
8720
  className
8037
8721
  }) {
8038
- const lead = leading ?? (fileType ? /* @__PURE__ */ jsx89(FileTypeBadge, { type: fileType }) : null);
8039
- return /* @__PURE__ */ jsxs61(
8722
+ const lead = leading ?? (fileType ? /* @__PURE__ */ jsx90(FileTypeBadge, { type: fileType }) : null);
8723
+ return /* @__PURE__ */ jsxs62(
8040
8724
  "div",
8041
8725
  {
8042
- className: clsx69(
8726
+ className: clsx70(
8043
8727
  "flex items-center gap-3 rounded-lg border border-default bg-default px-3 py-2.5",
8044
8728
  className
8045
8729
  ),
8046
8730
  children: [
8047
8731
  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 })
8732
+ /* @__PURE__ */ jsxs62("div", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
8733
+ /* @__PURE__ */ jsx90("span", { className: "truncate text-body-sm font-medium text-default", children: name }),
8734
+ detail && /* @__PURE__ */ jsx90("span", { className: "text-body-xs text-default-secondary", children: detail })
8051
8735
  ] }),
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 })
8736
+ (onDownload || onRemove || actions) && /* @__PURE__ */ jsxs62("div", { className: "flex shrink-0 items-center gap-1", children: [
8737
+ 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 }) }) }),
8738
+ 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 }) }) }),
8739
+ actions && /* @__PURE__ */ jsx90("div", { className: "ml-2 flex items-center gap-2", children: actions })
8056
8740
  ] })
8057
8741
  ]
8058
8742
  }
@@ -8060,8 +8744,8 @@ function FileRow({
8060
8744
  }
8061
8745
 
8062
8746
  // src/components/lists/scored-row.tsx
8063
- import clsx70 from "clsx";
8064
- import { jsx as jsx90, jsxs as jsxs62 } from "react/jsx-runtime";
8747
+ import clsx71 from "clsx";
8748
+ import { jsx as jsx91, jsxs as jsxs63 } from "react/jsx-runtime";
8065
8749
  var GAP3 = {
8066
8750
  sm: "gap-2",
8067
8751
  md: "gap-3",
@@ -8088,11 +8772,11 @@ function ScoredRow({
8088
8772
  align = "center",
8089
8773
  className
8090
8774
  }) {
8091
- return /* @__PURE__ */ jsxs62("div", { className: clsx70("flex w-full", ALIGN3[align], GAP3[gap], className), children: [
8092
- /* @__PURE__ */ jsxs62(
8775
+ return /* @__PURE__ */ jsxs63("div", { className: clsx71("flex w-full", ALIGN3[align], GAP3[gap], className), children: [
8776
+ /* @__PURE__ */ jsxs63(
8093
8777
  "div",
8094
8778
  {
8095
- className: clsx70(
8779
+ className: clsx71(
8096
8780
  "flex min-w-0",
8097
8781
  ALIGN3[align],
8098
8782
  GAP3[leadingGap ?? gap],
@@ -8101,36 +8785,36 @@ function ScoredRow({
8101
8785
  style: titleWidth ? { width: titleWidth } : void 0,
8102
8786
  children: [
8103
8787
  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 })
8788
+ /* @__PURE__ */ jsxs63("div", { className: "min-w-0 flex-1", children: [
8789
+ /* @__PURE__ */ jsx91("p", { className: "truncate text-body-sm font-medium leading-none text-default", children: title }),
8790
+ subtitle && /* @__PURE__ */ jsx91("p", { className: "mt-0.5 truncate text-body-xs text-default-secondary", children: subtitle })
8107
8791
  ] })
8108
8792
  ]
8109
8793
  }
8110
8794
  ),
8111
- aside && /* @__PURE__ */ jsx90(
8795
+ aside && /* @__PURE__ */ jsx91(
8112
8796
  "div",
8113
8797
  {
8114
- className: clsx70("min-w-0", asideWidth ? "shrink-0" : "flex-1"),
8798
+ className: clsx71("min-w-0", asideWidth ? "shrink-0" : "flex-1"),
8115
8799
  style: asideWidth ? { width: asideWidth } : void 0,
8116
8800
  children: aside
8117
8801
  }
8118
8802
  ),
8119
- meter && /* @__PURE__ */ jsx90(
8803
+ meter && /* @__PURE__ */ jsx91(
8120
8804
  "div",
8121
8805
  {
8122
- className: clsx70("min-w-0", meterWidth ? "shrink-0" : "flex-1"),
8806
+ className: clsx71("min-w-0", meterWidth ? "shrink-0" : "flex-1"),
8123
8807
  style: meterWidth ? { width: meterWidth } : void 0,
8124
8808
  children: meter
8125
8809
  }
8126
8810
  ),
8127
- trailing && /* @__PURE__ */ jsx90("div", { className: "shrink-0 text-right", style: trailingWidth ? { width: trailingWidth } : void 0, children: trailing })
8811
+ trailing && /* @__PURE__ */ jsx91("div", { className: "shrink-0 text-right", style: trailingWidth ? { width: trailingWidth } : void 0, children: trailing })
8128
8812
  ] });
8129
8813
  }
8130
8814
 
8131
8815
  // src/components/lists/numbered-list.tsx
8132
- import clsx71 from "clsx";
8133
- import { jsx as jsx91, jsxs as jsxs63 } from "react/jsx-runtime";
8816
+ import clsx72 from "clsx";
8817
+ import { jsx as jsx92, jsxs as jsxs64 } from "react/jsx-runtime";
8134
8818
  var GAP4 = {
8135
8819
  sm: "gap-2",
8136
8820
  md: "gap-3"
@@ -8144,18 +8828,18 @@ function NumberedList({
8144
8828
  gap = "md",
8145
8829
  className
8146
8830
  }) {
8147
- return /* @__PURE__ */ jsx91("ol", { className: clsx71("flex list-none flex-col p-0", GAP4[gap], className), children: items.map((item, index) => {
8831
+ return /* @__PURE__ */ jsx92("ol", { className: clsx72("flex list-none flex-col p-0", GAP4[gap], className), children: items.map((item, index) => {
8148
8832
  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 })
8833
+ return /* @__PURE__ */ jsxs64("li", { className: "flex w-full shrink-0 flex-col gap-1.5", children: [
8834
+ /* @__PURE__ */ jsxs64("div", { className: "flex w-full items-center justify-between", children: [
8835
+ /* @__PURE__ */ jsxs64("div", { className: "flex min-w-0 items-center gap-2.5", children: [
8836
+ /* @__PURE__ */ jsx92("span", { className: "w-[14px] shrink-0 text-body-xs font-bold text-default-secondary", children: startAt + index }),
8837
+ /* @__PURE__ */ jsxs64("div", { className: "flex min-w-0 flex-col gap-px", children: [
8838
+ /* @__PURE__ */ jsx92("span", { className: "truncate text-body-sm font-medium leading-none text-default", children: item.title }),
8839
+ item.subtitle && /* @__PURE__ */ jsx92("span", { className: "text-body-tiny text-default-tertiary", children: item.subtitle })
8156
8840
  ] })
8157
8841
  ] }),
8158
- /* @__PURE__ */ jsx91(
8842
+ /* @__PURE__ */ jsx92(
8159
8843
  ScoreValue,
8160
8844
  {
8161
8845
  value: item.score,
@@ -8166,43 +8850,43 @@ function NumberedList({
8166
8850
  }
8167
8851
  )
8168
8852
  ] }),
8169
- /* @__PURE__ */ jsx91(ProgressBar, { value: item.score, tone, "aria-label": `${item.title} score` })
8853
+ /* @__PURE__ */ jsx92(ProgressBar, { value: item.score, tone, "aria-label": `${item.title} score` })
8170
8854
  ] }, `${item.title}-${index}`);
8171
8855
  }) });
8172
8856
  }
8173
8857
 
8174
8858
  // src/components/lists/icon-text-row.tsx
8175
- import clsx72 from "clsx";
8176
- import { jsx as jsx92, jsxs as jsxs64 } from "react/jsx-runtime";
8859
+ import clsx73 from "clsx";
8860
+ import { jsx as jsx93, jsxs as jsxs65 } from "react/jsx-runtime";
8177
8861
  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 })
8862
+ return /* @__PURE__ */ jsxs65("div", { className: clsx73("flex items-start gap-3", className), children: [
8863
+ /* @__PURE__ */ jsx93("span", { className: "flex size-9 shrink-0 items-center justify-center rounded-full bg-brand-tertiary text-brand", children: icon }),
8864
+ /* @__PURE__ */ jsxs65("div", { className: "min-w-0", children: [
8865
+ /* @__PURE__ */ jsx93("p", { className: "text-body-sm font-semibold text-default", children: title }),
8866
+ /* @__PURE__ */ jsx93("p", { className: "mt-0.5 text-body-xs text-default-secondary", children: detail })
8183
8867
  ] })
8184
8868
  ] });
8185
8869
  }
8186
8870
 
8187
8871
  // src/components/lists/checklist-row.tsx
8188
- import clsx73 from "clsx";
8872
+ import clsx74 from "clsx";
8189
8873
  import { CheckIcon as CheckIcon5 } from "lucide-react";
8190
- import { jsx as jsx93, jsxs as jsxs65 } from "react/jsx-runtime";
8874
+ import { jsx as jsx94, jsxs as jsxs66 } from "react/jsx-runtime";
8191
8875
  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(
8876
+ return /* @__PURE__ */ jsxs66("li", { "data-state": state, className: clsx74("flex items-center gap-3", className), children: [
8877
+ /* @__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
8878
  "span",
8195
8879
  {
8196
- className: clsx73(
8880
+ className: clsx74(
8197
8881
  "size-3.5 rounded-full border-2",
8198
8882
  state === "active" ? "motion-safe:animate-pulse border-brand-emphasis border-t-transparent" : "border-disabled"
8199
8883
  )
8200
8884
  }
8201
8885
  ) }),
8202
- /* @__PURE__ */ jsx93(
8886
+ /* @__PURE__ */ jsx94(
8203
8887
  "span",
8204
8888
  {
8205
- className: clsx73(
8889
+ className: clsx74(
8206
8890
  "text-body-sm",
8207
8891
  state === "pending" ? "text-default-tertiary" : "font-semibold text-default"
8208
8892
  ),
@@ -8213,22 +8897,22 @@ function ChecklistRow({ label, state, className }) {
8213
8897
  }
8214
8898
 
8215
8899
  // src/components/lists/steps-list.tsx
8216
- import clsx74 from "clsx";
8217
- import { jsx as jsx94, jsxs as jsxs66 } from "react/jsx-runtime";
8900
+ import clsx75 from "clsx";
8901
+ import { jsx as jsx95, jsxs as jsxs67 } from "react/jsx-runtime";
8218
8902
  function StepsList({ steps, className }) {
8219
- return /* @__PURE__ */ jsx94("ol", { className: clsx74("flex flex-col gap-1.5", className), children: steps.map((step, i) => (
8903
+ return /* @__PURE__ */ jsx95("ol", { className: clsx75("flex flex-col gap-1.5", className), children: steps.map((step, i) => (
8220
8904
  // `text-[12px]` was off the type scale; 12 sits midway between Scale 01 (11) and
8221
8905
  // 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 }),
8906
+ /* @__PURE__ */ jsxs67("li", { className: "flex items-start gap-2 text-body-xs text-default", children: [
8907
+ /* @__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
8908
  step
8225
8909
  ] }, i)
8226
8910
  )) });
8227
8911
  }
8228
8912
 
8229
8913
  // src/components/lists/detail-item.tsx
8230
- import clsx75 from "clsx";
8231
- import { jsx as jsx95, jsxs as jsxs67 } from "react/jsx-runtime";
8914
+ import clsx76 from "clsx";
8915
+ import { jsx as jsx96, jsxs as jsxs68 } from "react/jsx-runtime";
8232
8916
  var SPAN = {
8233
8917
  1: "",
8234
8918
  2: "sm:col-span-2",
@@ -8245,18 +8929,18 @@ function DetailItem({
8245
8929
  }) {
8246
8930
  const shown = value === null || value === void 0 || value === "" ? "\u2014" : value;
8247
8931
  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 })
8932
+ return /* @__PURE__ */ jsxs68("div", { className: clsx76("flex gap-3 text-body-xs", SPAN[span], className), children: [
8933
+ /* @__PURE__ */ jsx96("span", { className: clsx76("shrink-0 text-default-secondary", labelWidth), children: label }),
8934
+ /* @__PURE__ */ jsxs68("span", { className: "flex min-w-0 flex-1 flex-col gap-0.5 [overflow-wrap:anywhere]", children: [
8935
+ /* @__PURE__ */ jsx96("span", { className: "text-default", children: shown }),
8936
+ detail && /* @__PURE__ */ jsx96("span", { className: "text-default-secondary", children: detail })
8253
8937
  ] })
8254
8938
  ] });
8255
8939
  }
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 })
8940
+ return /* @__PURE__ */ jsxs68("div", { className: clsx76("flex min-w-0 flex-col gap-0.5", SPAN[span], className), children: [
8941
+ /* @__PURE__ */ jsx96("p", { className: "text-body-tiny font-medium text-default-secondary", children: label }),
8942
+ /* @__PURE__ */ jsx96("p", { className: "text-body-sm font-medium text-default [overflow-wrap:anywhere]", children: shown }),
8943
+ detail && /* @__PURE__ */ jsx96("p", { className: "text-body-xs text-default-secondary [overflow-wrap:anywhere]", children: detail })
8260
8944
  ] });
8261
8945
  }
8262
8946
  var COLUMNS3 = {
@@ -8267,38 +8951,38 @@ var COLUMNS3 = {
8267
8951
  4: "grid-cols-2 sm:grid-cols-3 lg:grid-cols-4"
8268
8952
  };
8269
8953
  function DetailGrid({ children, columns = "auto", className }) {
8270
- return /* @__PURE__ */ jsx95("div", { className: clsx75("grid gap-x-4 gap-y-4", COLUMNS3[columns], className), children });
8954
+ return /* @__PURE__ */ jsx96("div", { className: clsx76("grid gap-x-4 gap-y-4", COLUMNS3[columns], className), children });
8271
8955
  }
8272
8956
 
8273
8957
  // src/components/lists/description-list.tsx
8274
- import { useEffect as useEffect12, useState as useState21 } from "react";
8275
- import clsx76 from "clsx";
8958
+ import { useEffect as useEffect13, useState as useState22 } from "react";
8959
+ import clsx77 from "clsx";
8276
8960
  import { CheckIcon as CheckIcon6, CopyIcon } from "lucide-react";
8277
- import { jsx as jsx96, jsxs as jsxs68 } from "react/jsx-runtime";
8961
+ import { jsx as jsx97, jsxs as jsxs69 } from "react/jsx-runtime";
8278
8962
  function DescriptionList({ children, className }) {
8279
- return /* @__PURE__ */ jsx96("dl", { className: cn("flex flex-col gap-3", className), children });
8963
+ return /* @__PURE__ */ jsx97("dl", { className: cn("flex flex-col gap-3", className), children });
8280
8964
  }
8281
8965
  function DescriptionItem({ label, value, copyValue, className }) {
8282
8966
  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()}` })
8967
+ return /* @__PURE__ */ jsxs69("div", { className: cn("flex flex-wrap items-start gap-x-4 gap-y-0.5 text-body-xs", className), children: [
8968
+ /* @__PURE__ */ jsx97("dt", { className: "shrink-0 grow-0 basis-28 text-default-secondary", children: label }),
8969
+ /* @__PURE__ */ jsxs69("dd", { className: "flex min-w-0 flex-[1_1_10rem] items-start gap-1.5 text-default", children: [
8970
+ /* @__PURE__ */ jsx97("span", { className: "min-w-0 [overflow-wrap:anywhere]", children: shown }),
8971
+ copyValue && /* @__PURE__ */ jsx97(CopyButton, { value: copyValue, label: `Copy ${label.toLowerCase()}` })
8288
8972
  ] })
8289
8973
  ] });
8290
8974
  }
8291
8975
  function CopyButton({ value, label, copiedLabel = "Copied", className }) {
8292
- const [copied, setCopied] = useState21(false);
8293
- useEffect12(() => {
8976
+ const [copied, setCopied] = useState22(false);
8977
+ useEffect13(() => {
8294
8978
  if (!copied) return;
8295
8979
  const timer = window.setTimeout(() => setCopied(false), 2e3);
8296
8980
  return () => window.clearTimeout(timer);
8297
8981
  }, [copied]);
8298
8982
  return (
8299
8983
  // relative: keeps the sr-only status (absolutely positioned) inside a scrolling container.
8300
- /* @__PURE__ */ jsxs68("span", { className: "relative inline-flex", children: [
8301
- /* @__PURE__ */ jsx96(
8984
+ /* @__PURE__ */ jsxs69("span", { className: "relative inline-flex", children: [
8985
+ /* @__PURE__ */ jsx97(
8302
8986
  IconButton,
8303
8987
  {
8304
8988
  variant: "subtle",
@@ -8312,10 +8996,10 @@ function CopyButton({ value, label, copiedLabel = "Copied", className }) {
8312
8996
  () => void 0
8313
8997
  );
8314
8998
  },
8315
- children: copied ? /* @__PURE__ */ jsx96(CheckIcon6, { "aria-hidden": true }) : /* @__PURE__ */ jsx96(CopyIcon, { "aria-hidden": true })
8999
+ children: copied ? /* @__PURE__ */ jsx97(CheckIcon6, { "aria-hidden": true }) : /* @__PURE__ */ jsx97(CopyIcon, { "aria-hidden": true })
8316
9000
  }
8317
9001
  ),
8318
- /* @__PURE__ */ jsx96("span", { role: "status", className: "sr-only", children: copied ? copiedLabel : "" })
9002
+ /* @__PURE__ */ jsx97("span", { role: "status", className: "sr-only", children: copied ? copiedLabel : "" })
8319
9003
  ] })
8320
9004
  );
8321
9005
  }
@@ -8323,16 +9007,16 @@ function EmailText({ email, className }) {
8323
9007
  const at = email.lastIndexOf("@");
8324
9008
  const local = at > 0 ? email.slice(0, at) : email;
8325
9009
  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 })
9010
+ return /* @__PURE__ */ jsxs69("span", { title: email, "data-slot": "email-text", className: clsx77("flex min-w-0 max-w-full", className), children: [
9011
+ /* @__PURE__ */ jsx97("span", { className: "min-w-0 overflow-hidden text-ellipsis whitespace-nowrap", children: local }),
9012
+ domain && /* @__PURE__ */ jsx97("span", { className: "min-w-0 overflow-hidden text-ellipsis whitespace-nowrap [flex-shrink:0.001]", children: domain })
8329
9013
  ] });
8330
9014
  }
8331
9015
 
8332
9016
  // src/components/lists/checked-group-list.tsx
8333
- import clsx77 from "clsx";
9017
+ import clsx78 from "clsx";
8334
9018
  import { CheckIcon as CheckIcon7 } from "lucide-react";
8335
- import { jsx as jsx97, jsxs as jsxs69 } from "react/jsx-runtime";
9019
+ import { jsx as jsx98, jsxs as jsxs70 } from "react/jsx-runtime";
8336
9020
  var COLUMNS4 = {
8337
9021
  1: "columns-1",
8338
9022
  2: "columns-2",
@@ -8346,23 +9030,23 @@ function CheckedGroupList({
8346
9030
  className
8347
9031
  }) {
8348
9032
  if (groups.length === 0) {
8349
- return /* @__PURE__ */ jsx97("p", { className: clsx77("text-body-xs text-default-secondary", className), children: emptyLabel });
9033
+ return /* @__PURE__ */ jsx98("p", { className: clsx78("text-body-xs text-default-secondary", className), children: emptyLabel });
8350
9034
  }
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 }),
9035
+ const glyph = icon === void 0 ? /* @__PURE__ */ jsx98(CheckIcon7, { className: "size-3.5", strokeWidth: 2.5, "aria-hidden": true }) : icon;
9036
+ 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: [
9037
+ /* @__PURE__ */ jsx98("p", { className: "mb-2 text-body-tiny font-semibold uppercase tracking-wide text-default-secondary", children: group.label }),
9038
+ /* @__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: [
9039
+ glyph && /* @__PURE__ */ jsx98("span", { className: "shrink-0", children: glyph }),
8356
9040
  item
8357
9041
  ] }, item)) })
8358
9042
  ] }, group.label)) });
8359
9043
  }
8360
9044
 
8361
9045
  // 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";
9046
+ import { useMemo as useMemo13, useRef as useRef15, useState as useState23 } from "react";
9047
+ import clsx79 from "clsx";
9048
+ import { ChevronRightIcon as ChevronRightIcon7 } from "lucide-react";
9049
+ import { jsx as jsx99, jsxs as jsxs71 } from "react/jsx-runtime";
8366
9050
  var ROW = {
8367
9051
  sm: "min-h-8 py-1 text-body-xs",
8368
9052
  md: "min-h-10 py-2 text-body-sm"
@@ -8392,10 +9076,10 @@ function TreeView({
8392
9076
  value: selectedProp,
8393
9077
  defaultValue: defaultSelected
8394
9078
  });
8395
- const [focusedId, setFocusedId] = useState22(null);
9079
+ const [focusedId, setFocusedId] = useState23(null);
8396
9080
  const rowRefs = useRef15(/* @__PURE__ */ new Map());
8397
- const expandedSet = useMemo12(() => new Set(expanded), [expanded]);
8398
- const visible = useMemo12(() => {
9081
+ const expandedSet = useMemo13(() => new Set(expanded), [expanded]);
9082
+ const visible = useMemo13(() => {
8399
9083
  const out = [];
8400
9084
  const walk = (nodes, level, parentId) => {
8401
9085
  for (const item of nodes) {
@@ -8466,7 +9150,7 @@ function TreeView({
8466
9150
  if (!node) return null;
8467
9151
  const children = getChildren?.(item) ?? [];
8468
9152
  const isSelected = selected === id;
8469
- return /* @__PURE__ */ jsxs70(
9153
+ return /* @__PURE__ */ jsxs71(
8470
9154
  "li",
8471
9155
  {
8472
9156
  role: "treeitem",
@@ -8488,7 +9172,7 @@ function TreeView({
8488
9172
  },
8489
9173
  className: "outline-none [&:focus-visible>div]:ring-2 [&:focus-visible>div]:ring-inset [&:focus-visible>div]:ring-brand",
8490
9174
  children: [
8491
- /* @__PURE__ */ jsxs70(
9175
+ /* @__PURE__ */ jsxs71(
8492
9176
  "div",
8493
9177
  {
8494
9178
  onClick: () => {
@@ -8496,7 +9180,7 @@ function TreeView({
8496
9180
  choose(node);
8497
9181
  },
8498
9182
  style: { paddingLeft: 8 + (level - 1) * INDENT },
8499
- className: clsx78(
9183
+ className: clsx79(
8500
9184
  "flex w-full cursor-pointer items-center gap-1.5 rounded-md pr-2 transition-colors",
8501
9185
  ROW[size],
8502
9186
  isSelected ? "bg-brand-secondary text-default" : "text-default hover:bg-default-secondary"
@@ -8506,7 +9190,7 @@ function TreeView({
8506
9190
  // Not a button: the treeitem is the one tab stop, and Left/Right already toggle.
8507
9191
  // A pointer user still needs a target that toggles without selecting.
8508
9192
  // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
8509
- /* @__PURE__ */ jsx98(
9193
+ /* @__PURE__ */ jsx99(
8510
9194
  "span",
8511
9195
  {
8512
9196
  "aria-hidden": true,
@@ -8517,11 +9201,11 @@ function TreeView({
8517
9201
  focus(id);
8518
9202
  },
8519
9203
  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") })
9204
+ children: /* @__PURE__ */ jsx99(ChevronRightIcon7, { className: clsx79("size-3.5 transition-transform motion-reduce:transition-none", node.expanded && "rotate-90") })
8521
9205
  }
8522
9206
  )
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, {
9207
+ ) : /* @__PURE__ */ jsx99("span", { "aria-hidden": true, className: "size-5 shrink-0" }),
9208
+ /* @__PURE__ */ jsx99("div", { className: "min-w-0 flex-1", children: renderItem(item, {
8525
9209
  level,
8526
9210
  hasChildren: node.hasChildren,
8527
9211
  expanded: node.expanded,
@@ -8530,22 +9214,22 @@ function TreeView({
8530
9214
  ]
8531
9215
  }
8532
9216
  ),
8533
- node.expanded && /* @__PURE__ */ jsx98("ul", { role: "group", className: "m-0 list-none p-0", children: renderLevel(children, level + 1) })
9217
+ node.expanded && /* @__PURE__ */ jsx99("ul", { role: "group", className: "m-0 list-none p-0", children: renderLevel(children, level + 1) })
8534
9218
  ]
8535
9219
  },
8536
9220
  id
8537
9221
  );
8538
9222
  });
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) });
9223
+ 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
9224
  }
8541
9225
 
8542
9226
  // src/index.tsx
8543
9227
  export * from "./data-table.js";
8544
9228
 
8545
9229
  // src/components/feedback/inline-alert.tsx
8546
- import clsx79 from "clsx";
9230
+ import clsx80 from "clsx";
8547
9231
  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";
9232
+ import { jsx as jsx100, jsxs as jsxs72 } from "react/jsx-runtime";
8549
9233
  var toneStyles3 = {
8550
9234
  info: "border-brand-tertiary bg-brand-tertiary text-brand",
8551
9235
  warning: "border-warning-tertiary bg-warning-tertiary text-warning",
@@ -8554,27 +9238,27 @@ var toneStyles3 = {
8554
9238
  neutral: "border-default bg-default text-default-secondary"
8555
9239
  };
8556
9240
  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" })
9241
+ info: /* @__PURE__ */ jsx100(InfoIcon2, { className: "size-4" }),
9242
+ warning: /* @__PURE__ */ jsx100(TriangleAlertIcon2, { className: "size-4" }),
9243
+ danger: /* @__PURE__ */ jsx100(TriangleAlertIcon2, { className: "size-4" }),
9244
+ positive: /* @__PURE__ */ jsx100(CircleCheckBigIcon2, { className: "size-4" }),
9245
+ neutral: /* @__PURE__ */ jsx100(InfoIcon2, { className: "size-4 text-icon-default-secondary" })
8562
9246
  };
8563
9247
  function InlineAlert({ tone, children, icon, role, className }) {
8564
9248
  const glyph = icon === void 0 ? toneIcons[tone] : icon;
8565
- return /* @__PURE__ */ jsxs71(
9249
+ return /* @__PURE__ */ jsxs72(
8566
9250
  "div",
8567
9251
  {
8568
9252
  "data-tone": tone,
8569
9253
  role: role ?? (tone === "danger" ? "alert" : "status"),
8570
- className: clsx79(
9254
+ className: clsx80(
8571
9255
  "flex items-start gap-3 rounded-xl border p-4 text-body-xs",
8572
9256
  toneStyles3[tone],
8573
9257
  className
8574
9258
  ),
8575
9259
  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 })
9260
+ glyph && /* @__PURE__ */ jsx100("span", { "aria-hidden": true, className: "mt-px shrink-0", children: glyph }),
9261
+ /* @__PURE__ */ jsx100("div", { className: "min-w-0", children })
8578
9262
  ]
8579
9263
  }
8580
9264
  );
@@ -8582,7 +9266,7 @@ function InlineAlert({ tone, children, icon, role, className }) {
8582
9266
 
8583
9267
  // src/components/feedback/error-boundary.tsx
8584
9268
  import { Component } from "react";
8585
- import { jsx as jsx100 } from "react/jsx-runtime";
9269
+ import { jsx as jsx101 } from "react/jsx-runtime";
8586
9270
  var ErrorBoundary = class extends Component {
8587
9271
  constructor() {
8588
9272
  super(...arguments);
@@ -8602,7 +9286,7 @@ var ErrorBoundary = class extends Component {
8602
9286
  }
8603
9287
  render() {
8604
9288
  if (!this.state.error) return this.props.children;
8605
- return this.props.fallback ?? /* @__PURE__ */ jsx100(
9289
+ return this.props.fallback ?? /* @__PURE__ */ jsx101(
8606
9290
  "div",
8607
9291
  {
8608
9292
  role: "status",
@@ -8615,10 +9299,10 @@ var ErrorBoundary = class extends Component {
8615
9299
  };
8616
9300
 
8617
9301
  // src/components/feedback/banner.tsx
8618
- import { forwardRef as forwardRef31, useId as useId20 } from "react";
8619
- import clsx80 from "clsx";
9302
+ import { forwardRef as forwardRef33, useId as useId21 } from "react";
9303
+ import clsx81 from "clsx";
8620
9304
  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";
9305
+ import { jsx as jsx102, jsxs as jsxs73 } from "react/jsx-runtime";
8622
9306
  var TONE_STYLES3 = {
8623
9307
  info: "border-brand-tertiary bg-brand-tertiary text-default",
8624
9308
  positive: "border-positive-tertiary bg-positive-tertiary text-default",
@@ -8634,13 +9318,13 @@ var TONE_ICON_COLOR = {
8634
9318
  neutral: "text-icon-default-secondary"
8635
9319
  };
8636
9320
  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" })
9321
+ info: /* @__PURE__ */ jsx102(InfoIcon3, { "aria-hidden": true, className: "size-5" }),
9322
+ positive: /* @__PURE__ */ jsx102(CircleCheckBigIcon3, { "aria-hidden": true, className: "size-5" }),
9323
+ warning: /* @__PURE__ */ jsx102(TriangleAlertIcon3, { "aria-hidden": true, className: "size-5" }),
9324
+ danger: /* @__PURE__ */ jsx102(TriangleAlertIcon3, { "aria-hidden": true, className: "size-5" }),
9325
+ neutral: /* @__PURE__ */ jsx102(InfoIcon3, { "aria-hidden": true, className: "size-5" })
8642
9326
  };
8643
- var Banner = forwardRef31(function Banner2({
9327
+ var Banner = forwardRef33(function Banner2({
8644
9328
  title,
8645
9329
  children,
8646
9330
  variant = "message",
@@ -8651,9 +9335,9 @@ var Banner = forwardRef31(function Banner2({
8651
9335
  className,
8652
9336
  ...rest
8653
9337
  }, ref) {
8654
- const titleId = useId20();
9338
+ const titleId = useId21();
8655
9339
  const glyph = icon === void 0 ? TONE_ICON2[tone] : icon;
8656
- return /* @__PURE__ */ jsxs72(
9340
+ return /* @__PURE__ */ jsxs73(
8657
9341
  "div",
8658
9342
  {
8659
9343
  "data-tone": tone,
@@ -8662,20 +9346,20 @@ var Banner = forwardRef31(function Banner2({
8662
9346
  role: variant === "alert" ? "alert" : "status",
8663
9347
  "aria-labelledby": titleId,
8664
9348
  "data-slot": "banner",
8665
- className: clsx80(
9349
+ className: clsx81(
8666
9350
  "flex w-full items-start gap-3 rounded-xl border p-4",
8667
9351
  TONE_STYLES3[tone],
8668
9352
  className
8669
9353
  ),
8670
9354
  ...rest,
8671
9355
  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 })
9356
+ glyph && /* @__PURE__ */ jsx102("span", { "aria-hidden": true, className: clsx81("mt-px shrink-0", TONE_ICON_COLOR[tone]), children: glyph }),
9357
+ /* @__PURE__ */ jsxs73("div", { className: "min-w-0 flex-1", children: [
9358
+ /* @__PURE__ */ jsx102("p", { id: titleId, className: "text-body-sm font-semibold text-default", children: title }),
9359
+ children && /* @__PURE__ */ jsx102("div", { className: "mt-1 text-body-xs text-default-secondary", children }),
9360
+ action && /* @__PURE__ */ jsx102("div", { className: "mt-3 flex items-center gap-2", children: action })
8677
9361
  ] }),
8678
- onDismiss && /* @__PURE__ */ jsx101(
9362
+ onDismiss && /* @__PURE__ */ jsx102(
8679
9363
  IconButton,
8680
9364
  {
8681
9365
  variant: "subtle",
@@ -8683,7 +9367,7 @@ var Banner = forwardRef31(function Banner2({
8683
9367
  "aria-label": typeof title === "string" ? `Dismiss: ${title}` : "Dismiss",
8684
9368
  onClick: onDismiss,
8685
9369
  className: "-mr-1 -mt-1 shrink-0",
8686
- children: /* @__PURE__ */ jsx101(XIcon7, { "aria-hidden": true, size: 16 })
9370
+ children: /* @__PURE__ */ jsx102(XIcon7, { "aria-hidden": true, size: 16 })
8687
9371
  }
8688
9372
  )
8689
9373
  ]
@@ -8693,29 +9377,29 @@ var Banner = forwardRef31(function Banner2({
8693
9377
 
8694
9378
  // src/components/feedback/toast.tsx
8695
9379
  import {
8696
- createContext as createContext15,
8697
- useCallback as useCallback7,
8698
- useContext as useContext15,
8699
- useEffect as useEffect13,
8700
- useMemo as useMemo13,
9380
+ createContext as createContext16,
9381
+ useCallback as useCallback9,
9382
+ useContext as useContext16,
9383
+ useEffect as useEffect14,
9384
+ useMemo as useMemo14,
8701
9385
  useRef as useRef16,
8702
- useState as useState23
9386
+ useState as useState24
8703
9387
  } from "react";
8704
- import clsx81 from "clsx";
9388
+ import clsx82 from "clsx";
8705
9389
  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);
9390
+ import { jsx as jsx103, jsxs as jsxs74 } from "react/jsx-runtime";
9391
+ var ToastContext = createContext16(null);
8708
9392
  function useToast() {
8709
- const context = useContext15(ToastContext);
9393
+ const context = useContext16(ToastContext);
8710
9394
  if (!context) throw new Error("useToast() must be used inside <Toaster>");
8711
9395
  return context;
8712
9396
  }
8713
9397
  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" })
9398
+ info: /* @__PURE__ */ jsx103(InfoIcon4, { "aria-hidden": true, className: "size-4" }),
9399
+ positive: /* @__PURE__ */ jsx103(CircleCheckBigIcon4, { "aria-hidden": true, className: "size-4" }),
9400
+ warning: /* @__PURE__ */ jsx103(TriangleAlertIcon4, { "aria-hidden": true, className: "size-4" }),
9401
+ danger: /* @__PURE__ */ jsx103(TriangleAlertIcon4, { "aria-hidden": true, className: "size-4" }),
9402
+ neutral: /* @__PURE__ */ jsx103(InfoIcon4, { "aria-hidden": true, className: "size-4" })
8719
9403
  };
8720
9404
  var TONE_ICON_COLOR2 = {
8721
9405
  info: "text-icon-brand",
@@ -8743,10 +9427,10 @@ function Toaster({
8743
9427
  offset = 16,
8744
9428
  mobileOffset
8745
9429
  }) {
8746
- const [toasts, setToasts] = useState23([]);
9430
+ const [toasts, setToasts] = useState24([]);
8747
9431
  const timers = useRef16(/* @__PURE__ */ new Map());
8748
9432
  const counter = useRef16(0);
8749
- const dismiss = useCallback7((id) => {
9433
+ const dismiss = useCallback9((id) => {
8750
9434
  const timer = timers.current.get(id);
8751
9435
  if (timer) {
8752
9436
  clearTimeout(timer);
@@ -8754,12 +9438,12 @@ function Toaster({
8754
9438
  }
8755
9439
  setToasts((current) => current.filter((entry) => entry.id !== id));
8756
9440
  }, []);
8757
- const dismissAll = useCallback7(() => {
9441
+ const dismissAll = useCallback9(() => {
8758
9442
  for (const timer of timers.current.values()) clearTimeout(timer);
8759
9443
  timers.current.clear();
8760
9444
  setToasts([]);
8761
9445
  }, []);
8762
- const toast = useCallback7(
9446
+ const toast = useCallback9(
8763
9447
  (options) => {
8764
9448
  counter.current += 1;
8765
9449
  const id = `toast-${counter.current}`;
@@ -8775,23 +9459,23 @@ function Toaster({
8775
9459
  },
8776
9460
  [duration, max, dismiss]
8777
9461
  );
8778
- useEffect13(() => {
9462
+ useEffect14(() => {
8779
9463
  const map = timers.current;
8780
9464
  return () => {
8781
9465
  for (const timer of map.values()) clearTimeout(timer);
8782
9466
  map.clear();
8783
9467
  };
8784
9468
  }, []);
8785
- const context = useMemo13(() => ({ toast, dismiss, dismissAll }), [toast, dismiss, dismissAll]);
8786
- return /* @__PURE__ */ jsxs73(ToastContext.Provider, { value: context, children: [
9469
+ const context = useMemo14(() => ({ toast, dismiss, dismissAll }), [toast, dismiss, dismissAll]);
9470
+ return /* @__PURE__ */ jsxs74(ToastContext.Provider, { value: context, children: [
8787
9471
  children,
8788
- /* @__PURE__ */ jsx102(Portal, { children: /* @__PURE__ */ jsx102(
9472
+ /* @__PURE__ */ jsx103(Portal, { children: /* @__PURE__ */ jsx103(
8789
9473
  "div",
8790
9474
  {
8791
9475
  "aria-live": "polite",
8792
9476
  "aria-atomic": "false",
8793
9477
  ...{ [TOASTER_ATTRIBUTE]: "" },
8794
- className: clsx81(
9478
+ className: clsx82(
8795
9479
  "pointer-events-none fixed z-toast flex w-[calc(100%-2rem)] max-w-[380px] flex-col gap-2",
8796
9480
  POSITION[position]
8797
9481
  ),
@@ -8799,29 +9483,29 @@ function Toaster({
8799
9483
  "--toaster-offset": toLength(offset),
8800
9484
  "--toaster-mobile-offset": toLength(mobileOffset ?? offset)
8801
9485
  },
8802
- children: toasts.map((entry) => /* @__PURE__ */ jsx102(ToastItem, { toast: entry, onDismiss: () => dismiss(entry.id) }, entry.id))
9486
+ children: toasts.map((entry) => /* @__PURE__ */ jsx103(ToastItem, { toast: entry, onDismiss: () => dismiss(entry.id) }, entry.id))
8803
9487
  }
8804
9488
  ) })
8805
9489
  ] });
8806
9490
  }
8807
9491
  function ToastItem({ toast, onDismiss }) {
8808
9492
  const tone = toast.tone ?? "info";
8809
- return /* @__PURE__ */ jsxs73(
9493
+ return /* @__PURE__ */ jsxs74(
8810
9494
  "div",
8811
9495
  {
8812
9496
  role: tone === "danger" ? "alert" : "status",
8813
- className: clsx81(
9497
+ className: clsx82(
8814
9498
  "pointer-events-auto flex w-full items-start gap-3 rounded-xl border border-default",
8815
9499
  "bg-default p-4 shadow-400"
8816
9500
  ),
8817
9501
  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 })
9502
+ /* @__PURE__ */ jsx103("span", { "aria-hidden": true, className: clsx82("mt-px shrink-0", TONE_ICON_COLOR2[tone]), children: TONE_ICON3[tone] }),
9503
+ /* @__PURE__ */ jsxs74("div", { className: "min-w-0 flex-1", children: [
9504
+ /* @__PURE__ */ jsx103("p", { className: "text-body-sm font-semibold text-default", children: toast.title }),
9505
+ toast.description && /* @__PURE__ */ jsx103("p", { className: "mt-0.5 text-body-xs text-default-secondary", children: toast.description }),
9506
+ toast.action && /* @__PURE__ */ jsx103("div", { className: "mt-2 flex items-center gap-2", children: toast.action })
8823
9507
  ] }),
8824
- /* @__PURE__ */ jsx102(
9508
+ /* @__PURE__ */ jsx103(
8825
9509
  IconButton,
8826
9510
  {
8827
9511
  variant: "subtle",
@@ -8829,7 +9513,7 @@ function ToastItem({ toast, onDismiss }) {
8829
9513
  "aria-label": typeof toast.title === "string" ? `Dismiss: ${toast.title}` : "Dismiss",
8830
9514
  onClick: onDismiss,
8831
9515
  className: "-mr-1 -mt-1 shrink-0",
8832
- children: /* @__PURE__ */ jsx102(XIcon8, { "aria-hidden": true, size: 14 })
9516
+ children: /* @__PURE__ */ jsx103(XIcon8, { "aria-hidden": true, size: 14 })
8833
9517
  }
8834
9518
  )
8835
9519
  ]
@@ -8838,25 +9522,25 @@ function ToastItem({ toast, onDismiss }) {
8838
9522
  }
8839
9523
 
8840
9524
  // src/components/forms/password-input.tsx
8841
- import { forwardRef as forwardRef32, useState as useState24 } from "react";
9525
+ import { forwardRef as forwardRef34, useState as useState25 } from "react";
8842
9526
  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(
9527
+ import { jsx as jsx104 } from "react/jsx-runtime";
9528
+ var PasswordInput = forwardRef34(function PasswordInput2(props, ref) {
9529
+ const [visible, setVisible] = useState25(false);
9530
+ return /* @__PURE__ */ jsx104(
8847
9531
  Input,
8848
9532
  {
8849
9533
  ref,
8850
9534
  ...props,
8851
9535
  type: visible ? "text" : "password",
8852
- trailingAction: /* @__PURE__ */ jsx103(
9536
+ trailingAction: /* @__PURE__ */ jsx104(
8853
9537
  "button",
8854
9538
  {
8855
9539
  type: "button",
8856
9540
  "aria-label": visible ? "Hide password" : "Show password",
8857
9541
  onClick: () => setVisible((v) => !v),
8858
9542
  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" })
9543
+ children: visible ? /* @__PURE__ */ jsx104(EyeOffIcon, { "aria-hidden": true, className: "size-4" }) : /* @__PURE__ */ jsx104(EyeIcon, { "aria-hidden": true, className: "size-4" })
8860
9544
  }
8861
9545
  )
8862
9546
  }
@@ -8864,31 +9548,31 @@ var PasswordInput = forwardRef32(function PasswordInput2(props, ref) {
8864
9548
  });
8865
9549
 
8866
9550
  // src/components/ai/ai-chat-bar.tsx
8867
- import clsx82 from "clsx";
9551
+ import clsx83 from "clsx";
8868
9552
  import { ArrowRightIcon as ArrowRightIcon2, SearchIcon as SearchIcon2 } from "lucide-react";
8869
- import { jsx as jsx104, jsxs as jsxs74 } from "react/jsx-runtime";
9553
+ import { jsx as jsx105, jsxs as jsxs75 } from "react/jsx-runtime";
8870
9554
  function AIChatBar({
8871
9555
  placeholder = "Ask Intelligence about any entity, supplier, or risk\u2026",
8872
9556
  className
8873
9557
  }) {
8874
- return /* @__PURE__ */ jsxs74(
9558
+ return /* @__PURE__ */ jsxs75(
8875
9559
  "div",
8876
9560
  {
8877
- className: clsx82(
9561
+ className: clsx83(
8878
9562
  "flex h-16 items-center gap-3 rounded-2xl border border-default bg-default px-6 shadow-panel",
8879
9563
  className
8880
9564
  ),
8881
9565
  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(
9566
+ /* @__PURE__ */ jsx105("span", { "aria-hidden": true, className: "shrink-0 text-icon-default-secondary", children: /* @__PURE__ */ jsx105(SearchIcon2, { className: "size-4" }) }),
9567
+ /* @__PURE__ */ jsx105("p", { className: "flex-1 text-body-sm text-default-tertiary truncate", children: placeholder }),
9568
+ /* @__PURE__ */ jsxs75(
8885
9569
  "button",
8886
9570
  {
8887
9571
  type: "button",
8888
9572
  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
9573
  children: [
8890
9574
  "Ask",
8891
- /* @__PURE__ */ jsx104(ArrowRightIcon2, { "aria-hidden": true, className: "size-4" })
9575
+ /* @__PURE__ */ jsx105(ArrowRightIcon2, { "aria-hidden": true, className: "size-4" })
8892
9576
  ]
8893
9577
  }
8894
9578
  )
@@ -8898,42 +9582,42 @@ function AIChatBar({
8898
9582
  }
8899
9583
 
8900
9584
  // src/components/ai/ai-suggestion-chip.tsx
8901
- import clsx83 from "clsx";
9585
+ import clsx84 from "clsx";
8902
9586
  import { ArrowRightIcon as ArrowRightIcon3, CpuIcon } from "lucide-react";
8903
- import { jsx as jsx105, jsxs as jsxs75 } from "react/jsx-runtime";
9587
+ import { jsx as jsx106, jsxs as jsxs76 } from "react/jsx-runtime";
8904
9588
  function AISuggestionChip({ prompt, onClick, className }) {
8905
- return /* @__PURE__ */ jsxs75(
9589
+ return /* @__PURE__ */ jsxs76(
8906
9590
  "button",
8907
9591
  {
8908
9592
  type: "button",
8909
9593
  onClick,
8910
- className: clsx83(
9594
+ className: clsx84(
8911
9595
  "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
9596
  className
8913
9597
  ),
8914
9598
  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 }) })
9599
+ /* @__PURE__ */ jsx106("span", { "aria-hidden": true, className: "shrink-0 text-icon-brand", children: /* @__PURE__ */ jsx106(CpuIcon, { className: "size-4" }) }),
9600
+ /* @__PURE__ */ jsx106("span", { className: "flex-1 text-body-sm text-default truncate", children: prompt }),
9601
+ /* @__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
9602
  ]
8919
9603
  }
8920
9604
  );
8921
9605
  }
8922
9606
 
8923
9607
  // src/components/ai/quick-actions-bar.tsx
8924
- import clsx84 from "clsx";
8925
- import { jsx as jsx106 } from "react/jsx-runtime";
9608
+ import clsx85 from "clsx";
9609
+ import { jsx as jsx107 } from "react/jsx-runtime";
8926
9610
  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) => {
9611
+ return /* @__PURE__ */ jsx107("div", { className: clsx85("flex flex-wrap items-center gap-3", className), children: actions.map((action) => {
8928
9612
  const isActive = active === action.value;
8929
- return /* @__PURE__ */ jsx106(
9613
+ return /* @__PURE__ */ jsx107(
8930
9614
  "button",
8931
9615
  {
8932
9616
  type: "button",
8933
9617
  "aria-pressed": isActive,
8934
9618
  onClick: () => onSelect?.(action.value),
8935
9619
  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" })
9620
+ children: /* @__PURE__ */ jsx107(TagPill, { label: action.label, tone: isActive ? "brand" : "default" })
8937
9621
  },
8938
9622
  action.value
8939
9623
  );
@@ -8941,25 +9625,25 @@ function QuickActionsBar({ actions, active, onSelect, className }) {
8941
9625
  }
8942
9626
 
8943
9627
  // src/components/ai/chat.tsx
8944
- import clsx85 from "clsx";
9628
+ import clsx86 from "clsx";
8945
9629
  import { CpuIcon as CpuIcon2 } from "lucide-react";
8946
- import { jsx as jsx107, jsxs as jsxs76 } from "react/jsx-runtime";
9630
+ import { jsx as jsx108, jsxs as jsxs77 } from "react/jsx-runtime";
8947
9631
  function AiAvatar({ className, icon }) {
8948
- return /* @__PURE__ */ jsx107(
9632
+ return /* @__PURE__ */ jsx108(
8949
9633
  "span",
8950
9634
  {
8951
9635
  "aria-hidden": true,
8952
9636
  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" })
9637
+ children: icon ?? /* @__PURE__ */ jsx108(CpuIcon2, { className: "size-3.5" })
8954
9638
  }
8955
9639
  );
8956
9640
  }
8957
9641
  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(
9642
+ return /* @__PURE__ */ jsxs77("div", { role: "status", "aria-live": "polite", className: cn("flex items-center gap-3", className), children: [
9643
+ /* @__PURE__ */ jsx108(AiAvatar, {}),
9644
+ /* @__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: [
9645
+ /* @__PURE__ */ jsx108("span", { className: "text-body-xs text-default-secondary", children: label }),
9646
+ /* @__PURE__ */ jsx108("span", { "aria-hidden": true, className: "flex gap-1", children: [0, 1, 2].map((index) => /* @__PURE__ */ jsx108(
8963
9647
  "span",
8964
9648
  {
8965
9649
  className: "inline-block size-1.5 rounded-full bg-default-tertiary motion-safe:animate-bounce",
@@ -8972,16 +9656,16 @@ function TypingIndicator({ label = "Assistant is typing", className }) {
8972
9656
  }
8973
9657
  function ChatBubble({ sender, children, failed = false, className }) {
8974
9658
  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 }) });
9659
+ 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
9660
  }
8977
- return /* @__PURE__ */ jsx107(
9661
+ return /* @__PURE__ */ jsx108(
8978
9662
  "div",
8979
9663
  {
8980
9664
  "data-sender": "assistant",
8981
9665
  "data-state": failed ? "failed" : void 0,
8982
9666
  className: cn(
8983
9667
  "rounded-2xl rounded-tl-sm border px-5 py-4 text-body-sm leading-relaxed",
8984
- clsx85(
9668
+ clsx86(
8985
9669
  "border-default bg-default-secondary text-default",
8986
9670
  "data-[state=failed]:border-danger-secondary data-[state=failed]:bg-danger-tertiary data-[state=failed]:text-danger"
8987
9671
  ),
@@ -8993,17 +9677,17 @@ function ChatBubble({ sender, children, failed = false, className }) {
8993
9677
  }
8994
9678
 
8995
9679
  // src/components/decorative/aurora-backdrop.tsx
8996
- import { jsx as jsx108, jsxs as jsxs77 } from "react/jsx-runtime";
9680
+ import { jsx as jsx109, jsxs as jsxs78 } from "react/jsx-runtime";
8997
9681
  function blob(primitive, alpha) {
8998
9682
  return `radial-gradient(ellipse, color-mix(in srgb, var(${primitive}) ${alpha}%, transparent) 0%, transparent 70%)`;
8999
9683
  }
9000
9684
  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) } })
9685
+ return /* @__PURE__ */ jsxs78("div", { className: "pointer-events-none absolute inset-0", "aria-hidden": true, children: [
9686
+ /* @__PURE__ */ jsx109("div", { className: "absolute -left-24 -top-28", style: { width: 380, height: 380, background: blob("--prim-red-400", 45) } }),
9687
+ /* @__PURE__ */ jsx109("div", { className: "absolute -top-24 right-[-4%]", style: { width: 320, height: 320, background: blob("--prim-red-300", 40) } }),
9688
+ /* @__PURE__ */ jsx109("div", { className: "absolute bottom-[-10%] right-[14%]", style: { width: 420, height: 420, background: blob("--prim-violet-400", 30) } }),
9689
+ /* @__PURE__ */ jsx109("div", { className: "absolute bottom-[-6%] left-[4%]", style: { width: 280, height: 280, background: blob("--prim-blue-400", 25) } }),
9690
+ /* @__PURE__ */ jsx109("div", { className: "absolute left-[20%] top-[30%]", style: { width: 240, height: 240, background: blob("--prim-blue-300", 18) } })
9007
9691
  ] });
9008
9692
  }
9009
9693
  export {
@@ -9186,7 +9870,9 @@ export {
9186
9870
  MultiSelectCard,
9187
9871
  NativeSelect,
9188
9872
  NativeSelectControl,
9873
+ NavGroupHeader,
9189
9874
  NavItem,
9875
+ NavSubItem,
9190
9876
  NavigationMenu,
9191
9877
  NavigationMenuItem,
9192
9878
  NoteConfirmModal,
@@ -9229,6 +9915,11 @@ export {
9229
9915
  Select,
9230
9916
  SelectControl,
9231
9917
  Separator,
9918
+ Sidebar,
9919
+ SidebarProvider,
9920
+ SidebarSeparator,
9921
+ SidebarTrigger,
9922
+ SidebarUserCard,
9232
9923
  Skeleton,
9233
9924
  Slider,
9234
9925
  Slot,
@@ -9303,6 +9994,8 @@ export {
9303
9994
  composeRefs,
9304
9995
  countryOptions,
9305
9996
  currentZoneName,
9997
+ filterNav,
9998
+ filterNavItems,
9306
9999
  formatFileSize,
9307
10000
  getScoreTone,
9308
10001
  nextTier,
@@ -9322,6 +10015,7 @@ export {
9322
10015
  useFilePicker,
9323
10016
  useOverlayDismiss,
9324
10017
  usePortalContainer,
10018
+ useSidebar,
9325
10019
  useToast,
9326
10020
  useWidgetHeaderAccessory,
9327
10021
  useWidthTier