@platned/ui 0.10.2 → 0.10.4

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
@@ -4455,7 +4455,7 @@ var CheckboxGroupItem = forwardRef12(
4455
4455
  );
4456
4456
 
4457
4457
  // src/components/forms/slider.tsx
4458
- import { forwardRef as forwardRef13, useId as useId11 } from "react";
4458
+ import { forwardRef as forwardRef13, useId as useId11, useState as useState14 } from "react";
4459
4459
  import clsx34 from "clsx";
4460
4460
  import { jsx as jsx40, jsxs as jsxs29 } from "react/jsx-runtime";
4461
4461
  var Slider = forwardRef13(function Slider2({
@@ -4472,13 +4472,21 @@ var Slider = forwardRef13(function Slider2({
4472
4472
  disabled = false,
4473
4473
  id,
4474
4474
  className,
4475
+ style,
4475
4476
  ...props
4476
4477
  }, ref) {
4477
4478
  const generatedId = useId11();
4478
4479
  const controlId = id ?? generatedId;
4479
4480
  const descriptionId = `${controlId}-description`;
4480
- const current = value ?? defaultValue ?? min;
4481
+ const [uncontrolled, setUncontrolled] = useState14(defaultValue ?? min);
4482
+ const current = value ?? uncontrolled;
4481
4483
  const display = formatValue ? formatValue(current) : String(current);
4484
+ const ratio = max > min ? Math.min(1, Math.max(0, (current - min) / (max - min))) : 0;
4485
+ const trackVars = {
4486
+ "--slider-fill": `calc(0.5rem + (100% - 1rem) * ${ratio})`,
4487
+ "--slider-fill-color": disabled ? "var(--color-background-disabled-default)" : "var(--color-background-brand-default)",
4488
+ "--slider-track-color": "var(--color-background-default-tertiary)"
4489
+ };
4482
4490
  return /* @__PURE__ */ jsxs29("div", { className: clsx34("flex w-full flex-col gap-1.5", className), children: [
4483
4491
  (label || showValue) && /* @__PURE__ */ jsxs29("div", { className: "flex items-baseline justify-between gap-2", children: [
4484
4492
  label && /* @__PURE__ */ jsx40(
@@ -4513,23 +4521,32 @@ var Slider = forwardRef13(function Slider2({
4513
4521
  disabled,
4514
4522
  "aria-describedby": description ? descriptionId : void 0,
4515
4523
  "aria-valuetext": formatValue ? display : void 0,
4516
- onChange: (event) => onValueChange?.(Number(event.target.value)),
4524
+ onChange: (event) => {
4525
+ const next = Number(event.target.value);
4526
+ if (value === void 0) setUncontrolled(next);
4527
+ onValueChange?.(next);
4528
+ },
4529
+ style: { ...trackVars, ...style },
4517
4530
  className: clsx34(
4518
4531
  "h-5 w-full cursor-pointer appearance-none bg-transparent",
4519
4532
  "focus-visible:outline-none",
4520
- disabled && "cursor-not-allowed opacity-50",
4521
- // Track
4522
- "[&::-webkit-slider-runnable-track]:h-1.5 [&::-webkit-slider-runnable-track]:rounded-full [&::-webkit-slider-runnable-track]:bg-default-tertiary",
4523
- "[&::-moz-range-track]:h-1.5 [&::-moz-range-track]:rounded-full [&::-moz-range-track]:bg-default-tertiary",
4524
- "[&::-moz-range-progress]:h-1.5 [&::-moz-range-progress]:rounded-full [&::-moz-range-progress]:bg-brand",
4525
- // Thumb. The negative margin centres it on the track, since the input box is
4526
- // taller than the track to keep a comfortable pointer target.
4527
- "[&::-webkit-slider-thumb]:-mt-[7px] [&::-webkit-slider-thumb]:size-4 [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:border-2 [&::-webkit-slider-thumb]:border-brand [&::-webkit-slider-thumb]:bg-default [&::-webkit-slider-thumb]:shadow-100",
4528
- "[&::-moz-range-thumb]:size-4 [&::-moz-range-thumb]:rounded-full [&::-moz-range-thumb]:border-2 [&::-moz-range-thumb]:border-brand [&::-moz-range-thumb]:bg-default",
4533
+ disabled && "cursor-not-allowed",
4534
+ // Track: filled (brand) up to the thumb, unfilled (grey) after it, as in Figma.
4535
+ "[&::-webkit-slider-runnable-track]:h-1 [&::-webkit-slider-runnable-track]:rounded-full",
4536
+ "[&::-webkit-slider-runnable-track]:[background:linear-gradient(to_right,var(--slider-fill-color)_var(--slider-fill),var(--slider-track-color)_var(--slider-fill))]",
4537
+ "rtl:[&::-webkit-slider-runnable-track]:[background:linear-gradient(to_left,var(--slider-fill-color)_var(--slider-fill),var(--slider-track-color)_var(--slider-fill))]",
4538
+ "[&::-moz-range-track]:h-1 [&::-moz-range-track]:rounded-full [&::-moz-range-track]:[background:var(--slider-track-color)]",
4539
+ "[&::-moz-range-progress]:h-1 [&::-moz-range-progress]:rounded-full [&::-moz-range-progress]:[background:var(--slider-fill-color)]",
4540
+ // Thumb: a solid knob in the fill colour (grey when disabled). The negative margin
4541
+ // centres it on the 4px track; the input box is taller to keep a comfortable target.
4542
+ "[&::-webkit-slider-thumb]:-mt-1.5 [&::-webkit-slider-thumb]:size-4 [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:border-0 [&::-webkit-slider-thumb]:[background:var(--slider-fill-color)] [&::-webkit-slider-thumb]:shadow-100",
4543
+ "[&::-moz-range-thumb]:size-4 [&::-moz-range-thumb]:rounded-full [&::-moz-range-thumb]:border-0 [&::-moz-range-thumb]:[background:var(--slider-fill-color)]",
4529
4544
  // Focus ring on the thumb, not the whole 100%-wide input — a ring around the
4530
- // full track reads as the row being focused rather than the handle.
4531
- "focus-visible:[&::-webkit-slider-thumb]:ring-2 focus-visible:[&::-webkit-slider-thumb]:ring-brand focus-visible:[&::-webkit-slider-thumb]:ring-offset-1",
4532
- "focus-visible:[&::-moz-range-thumb]:ring-2 focus-visible:[&::-moz-range-thumb]:ring-brand"
4545
+ // full track reads as the row being focused rather than the handle. Written as
4546
+ // `:focus-visible::thumb`: the `focus-visible:` prefix would emit
4547
+ // `::thumb:focus-visible`, a pseudo-class after a pseudo-element, which browsers drop.
4548
+ "[&:focus-visible::-webkit-slider-thumb]:ring-2 [&:focus-visible::-webkit-slider-thumb]:ring-brand [&:focus-visible::-webkit-slider-thumb]:ring-offset-1",
4549
+ "[&:focus-visible::-moz-range-thumb]:ring-2 [&:focus-visible::-moz-range-thumb]:ring-brand"
4533
4550
  ),
4534
4551
  ...props
4535
4552
  }
@@ -4573,7 +4590,7 @@ import {
4573
4590
  forwardRef as forwardRef15,
4574
4591
  useContext as useContext6,
4575
4592
  useEffect as useEffect7,
4576
- useState as useState14
4593
+ useState as useState15
4577
4594
  } from "react";
4578
4595
  import { Dialog as DialogPrimitive } from "radix-ui";
4579
4596
  import { CircleCheckBigIcon, InfoIcon, OctagonAlertIcon, TriangleAlertIcon, XIcon as XIcon5 } from "lucide-react";
@@ -4635,10 +4652,10 @@ var ModalShell = forwardRef15(
4635
4652
  onInteractOutside,
4636
4653
  initialFocus
4637
4654
  }, ref) {
4638
- const [hasTitle, setHasTitle] = useState14(false);
4639
- const [hasDescription, setHasDescription] = useState14(false);
4640
- const [contentNode, setContentNode] = useState14(null);
4641
- const [returnFocusTo] = useState14(
4655
+ const [hasTitle, setHasTitle] = useState15(false);
4656
+ const [hasDescription, setHasDescription] = useState15(false);
4657
+ const [contentNode, setContentNode] = useState15(null);
4658
+ const [returnFocusTo] = useState15(
4642
4659
  () => typeof document === "undefined" ? null : document.activeElement
4643
4660
  );
4644
4661
  return /* @__PURE__ */ jsx42(
@@ -4648,7 +4665,10 @@ var ModalShell = forwardRef15(
4648
4665
  className: cn(
4649
4666
  // The overlay wraps the content (a Radix-supported layout), so it also does the
4650
4667
  // positioning: bottom sheet below `sm`, a card centred or top-anchored above it.
4651
- "fixed inset-0 z-modal flex items-end justify-center",
4668
+ // `max-sm:items-end`, not a base `items-end` that `sm:` overrides: an app that layers this
4669
+ // stylesheet under its own utilities (Cleo) and uses `items-end` itself would otherwise win
4670
+ // at every width, and every dialog sat at the bottom on desktop. Fixed in 0.10.3.
4671
+ "fixed inset-0 z-modal flex justify-center max-sm:items-end",
4652
4672
  OVERLAY_ALIGN[align],
4653
4673
  OVERLAY_SCRIM
4654
4674
  ),
@@ -4864,7 +4884,7 @@ function Tooltip({
4864
4884
  }
4865
4885
 
4866
4886
  // src/components/overlays/hover-card.tsx
4867
- import { useId as useId13, useState as useState15 } from "react";
4887
+ import { useId as useId13, useState as useState16 } from "react";
4868
4888
  import { HoverCard as HoverCardPrimitive } from "radix-ui";
4869
4889
  import { jsx as jsx44, jsxs as jsxs32 } from "react/jsx-runtime";
4870
4890
  function HoverCard({
@@ -4883,7 +4903,7 @@ function HoverCard({
4883
4903
  const baseId = useId13();
4884
4904
  const contentId = `${baseId}-content`;
4885
4905
  const triggerId = `${baseId}-trigger`;
4886
- const [openState, setOpenState] = useState15(defaultOpen);
4906
+ const [openState, setOpenState] = useState16(defaultOpen);
4887
4907
  const open = openProp ?? openState;
4888
4908
  const handleOpenChange = (next) => {
4889
4909
  setOpenState(next);
@@ -5116,13 +5136,13 @@ import {
5116
5136
  forwardRef as forwardRef19,
5117
5137
  useContext as useContext7,
5118
5138
  useEffect as useEffect9,
5119
- useState as useState17
5139
+ useState as useState18
5120
5140
  } from "react";
5121
5141
  import { Dialog as DialogPrimitive2 } from "radix-ui";
5122
5142
  import { XIcon as XIcon6 } from "lucide-react";
5123
5143
 
5124
5144
  // src/components/cards/scroll-area.tsx
5125
- import { forwardRef as forwardRef18, useEffect as useEffect8, useRef as useRef11, useState as useState16 } from "react";
5145
+ import { forwardRef as forwardRef18, useEffect as useEffect8, useRef as useRef11, useState as useState17 } from "react";
5126
5146
  import clsx36 from "clsx";
5127
5147
  import { jsx as jsx47 } from "react/jsx-runtime";
5128
5148
  var OVERFLOW = {
@@ -5132,7 +5152,7 @@ var OVERFLOW = {
5132
5152
  };
5133
5153
  var ScrollArea = forwardRef18(function ScrollArea2({ children, axis = "vertical", label, className, ...rest }, ref) {
5134
5154
  const localRef = useRef11(null);
5135
- const [overflows, setOverflows] = useState16(false);
5155
+ const [overflows, setOverflows] = useState17(false);
5136
5156
  useEffect8(() => {
5137
5157
  const node = localRef.current;
5138
5158
  if (!node) return;
@@ -5213,10 +5233,10 @@ var Drawer = forwardRef19(function Drawer2({
5213
5233
  ] });
5214
5234
  });
5215
5235
  var DrawerPanel = forwardRef19(function DrawerPanel2({ side = "right", width, label, className, onEscapeKeyDown, onInteractOutside, initialFocus, children }, ref) {
5216
- const [hasTitle, setHasTitle] = useState17(false);
5217
- const [hasDescription, setHasDescription] = useState17(false);
5218
- const [panelNode, setPanelNode] = useState17(null);
5219
- const [returnFocusTo] = useState17(
5236
+ const [hasTitle, setHasTitle] = useState18(false);
5237
+ const [hasDescription, setHasDescription] = useState18(false);
5238
+ const [panelNode, setPanelNode] = useState18(null);
5239
+ const [returnFocusTo] = useState18(
5220
5240
  () => typeof document === "undefined" ? null : document.activeElement
5221
5241
  );
5222
5242
  return /* @__PURE__ */ jsx48(
@@ -5449,7 +5469,7 @@ function ConfirmDialog({
5449
5469
  }
5450
5470
 
5451
5471
  // src/components/overlays/note-confirm-modal.tsx
5452
- import { useState as useState18 } from "react";
5472
+ import { useState as useState19 } from "react";
5453
5473
  import { jsx as jsx50, jsxs as jsxs37 } from "react/jsx-runtime";
5454
5474
  function NoteConfirmModal({ open, ...rest }) {
5455
5475
  if (!open) return null;
@@ -5474,7 +5494,7 @@ function NoteConfirmModalShell({
5474
5494
  onConfirm,
5475
5495
  onDiscardNote
5476
5496
  }) {
5477
- const [note, setNote] = useState18("");
5497
+ const [note, setNote] = useState19("");
5478
5498
  const noteMissing = requireNote && !note.trim();
5479
5499
  const requestOpenChange = (next) => {
5480
5500
  if (!next && isSubmitting) return;
@@ -5561,7 +5581,7 @@ function Scrim({ onClose, label, position = "fixed", open, className }) {
5561
5581
  }
5562
5582
 
5563
5583
  // src/components/overlays/fullscreen-surface.tsx
5564
- import { useState as useState19 } from "react";
5584
+ import { useState as useState20 } from "react";
5565
5585
  import { Dialog as DialogPrimitive3 } from "radix-ui";
5566
5586
  import { XIcon as XIcon7 } from "lucide-react";
5567
5587
  import { jsx as jsx52, jsxs as jsxs38 } from "react/jsx-runtime";
@@ -5577,8 +5597,8 @@ function FullscreenSurface({
5577
5597
  children,
5578
5598
  className
5579
5599
  }) {
5580
- const [node, setNode] = useState19(null);
5581
- const [returnFocusTo] = useState19(
5600
+ const [node, setNode] = useState20(null);
5601
+ const [returnFocusTo] = useState20(
5582
5602
  () => typeof document === "undefined" ? null : document.activeElement
5583
5603
  );
5584
5604
  return /* @__PURE__ */ jsx52(DialogPrimitive3.Root, { open: true, onOpenChange: (open) => !open && onClose(), children: /* @__PURE__ */ jsx52(DialogPrimitive3.Portal, { children: /* @__PURE__ */ jsxs38(
@@ -6238,7 +6258,7 @@ import {
6238
6258
  useId as useId15,
6239
6259
  useMemo as useMemo10,
6240
6260
  useRef as useRef13,
6241
- useState as useState20
6261
+ useState as useState21
6242
6262
  } from "react";
6243
6263
  import clsx39 from "clsx";
6244
6264
  import { ChevronLeftIcon as ChevronLeftIcon2, ChevronRightIcon as ChevronRightIcon3 } from "lucide-react";
@@ -6268,8 +6288,8 @@ function Carousel({
6268
6288
  });
6269
6289
  const baseId = useId15();
6270
6290
  const cursor = useRef13(0);
6271
- const [paused, setPaused] = useState20(false);
6272
- const [userTookControl, setUserTookControl] = useState20(false);
6291
+ const [paused, setPaused] = useState21(false);
6292
+ const [userTookControl, setUserTookControl] = useState21(false);
6273
6293
  const hasAutoplay = autoplayInterval !== void 0 && autoplayInterval > 0;
6274
6294
  const context = useMemo10(
6275
6295
  () => ({
@@ -6443,7 +6463,7 @@ import {
6443
6463
  useId as useId16,
6444
6464
  useMemo as useMemo11,
6445
6465
  useRef as useRef14,
6446
- useState as useState21
6466
+ useState as useState22
6447
6467
  } from "react";
6448
6468
  import clsx40 from "clsx";
6449
6469
  import { jsx as jsx61, jsxs as jsxs41 } from "react/jsx-runtime";
@@ -6471,7 +6491,7 @@ function Resizable({
6471
6491
  });
6472
6492
  const containerRef = useRef14(null);
6473
6493
  const baseId = useId16();
6474
- const [dragging, setDragging] = useState21(false);
6494
+ const [dragging, setDragging] = useState22(false);
6475
6495
  const context = useMemo11(
6476
6496
  () => ({
6477
6497
  direction,
@@ -6761,7 +6781,7 @@ import {
6761
6781
  useId as useId17,
6762
6782
  useLayoutEffect as useLayoutEffect2,
6763
6783
  useRef as useRef15,
6764
- useState as useState22
6784
+ useState as useState23
6765
6785
  } from "react";
6766
6786
  import clsx44 from "clsx";
6767
6787
  import { ChevronLeftIcon as ChevronLeftIcon3, ChevronRightIcon as ChevronRightIcon4 } from "lucide-react";
@@ -6827,7 +6847,7 @@ var prefersReducedMotion = () => typeof window !== "undefined" && window.matchMe
6827
6847
  function useTabStrip(enabled) {
6828
6848
  const listRef = useRef15(null);
6829
6849
  const selected = useRef15(null);
6830
- const [edges, setEdges] = useState22({ start: false, end: false });
6850
+ const [edges, setEdges] = useState23({ start: false, end: false });
6831
6851
  const measure = useCallback6(() => {
6832
6852
  const el = listRef.current;
6833
6853
  if (!enabled || !el) return;
@@ -7399,7 +7419,7 @@ import {
7399
7419
  useEffect as useEffect12,
7400
7420
  useId as useId18,
7401
7421
  useMemo as useMemo12,
7402
- useState as useState23
7422
+ useState as useState24
7403
7423
  } from "react";
7404
7424
  import { DropdownMenu as DropdownMenuPrimitive } from "radix-ui";
7405
7425
  import {
@@ -7665,7 +7685,7 @@ function itemKey(item) {
7665
7685
  }
7666
7686
  function SidebarGroupView({ group }) {
7667
7687
  const { density, collapsed } = useRow();
7668
- const [open, setOpen] = useState23(group.defaultOpen ?? true);
7688
+ const [open, setOpen] = useState24(group.defaultOpen ?? true);
7669
7689
  const regionId = useId18();
7670
7690
  const foldable = Boolean(group.collapsible && group.title) && !collapsed;
7671
7691
  const comfortable = density === "comfortable";
@@ -7737,7 +7757,7 @@ function ParentRow({ item }) {
7737
7757
  const row = useRow();
7738
7758
  const children = item.children ?? [];
7739
7759
  const childActive = children.some((child) => isRowActive(child, row));
7740
- const [open, setOpen] = useState23(item.defaultOpen ?? childActive);
7760
+ const [open, setOpen] = useState24(item.defaultOpen ?? childActive);
7741
7761
  const regionId = useId18();
7742
7762
  useEffect12(() => {
7743
7763
  if (childActive) setOpen(true);
@@ -8383,12 +8403,12 @@ function slotWidthPx(gridWidthPx, columnGapPx, cols) {
8383
8403
  }
8384
8404
 
8385
8405
  // src/lib/use-width-tier.ts
8386
- import { useCallback as useCallback9, useEffect as useEffect13, useLayoutEffect as useLayoutEffect3, useRef as useRef16, useState as useState24 } from "react";
8406
+ import { useCallback as useCallback9, useEffect as useEffect13, useLayoutEffect as useLayoutEffect3, useRef as useRef16, useState as useState25 } from "react";
8387
8407
  var useIsomorphicLayoutEffect = typeof window === "undefined" ? useEffect13 : useLayoutEffect3;
8388
8408
  var TIER_SETTLE_MS = 200;
8389
8409
  function useWidthTier({ frozen = false } = {}) {
8390
- const [node, setNode] = useState24(null);
8391
- const [{ widthPx, tier }, setMeasured] = useState24({
8410
+ const [node, setNode] = useState25(null);
8411
+ const [{ widthPx, tier }, setMeasured] = useState25({
8392
8412
  widthPx: null,
8393
8413
  tier: "wide"
8394
8414
  });
@@ -9303,9 +9323,54 @@ function Listbox({
9303
9323
  );
9304
9324
  }
9305
9325
 
9326
+ // src/components/lists/selection-bar.tsx
9327
+ import { Fragment as Fragment16, jsx as jsx91, jsxs as jsxs62 } from "react/jsx-runtime";
9328
+ var POSITION = {
9329
+ sticky: "sticky bottom-6 z-sticky",
9330
+ static: ""
9331
+ };
9332
+ function SelectionBar({
9333
+ label,
9334
+ description,
9335
+ children,
9336
+ onClear,
9337
+ clearLabel = "Clear",
9338
+ "aria-label": ariaLabel = "Selection actions",
9339
+ position = "sticky",
9340
+ className
9341
+ }) {
9342
+ return /* @__PURE__ */ jsxs62(
9343
+ "div",
9344
+ {
9345
+ role: "region",
9346
+ "aria-label": ariaLabel,
9347
+ "data-slot": "selection-bar",
9348
+ "data-position": position,
9349
+ className: cn(
9350
+ "mx-auto flex w-full max-w-[880px] flex-wrap items-center gap-4 rounded-xl border border-default bg-default py-3 pl-5 pr-3 text-default shadow-400",
9351
+ POSITION[position],
9352
+ className
9353
+ ),
9354
+ children: [
9355
+ /* @__PURE__ */ jsxs62("div", { className: "flex min-w-0 flex-1 basis-60 flex-col gap-0.5", children: [
9356
+ /* @__PURE__ */ jsx91("span", { className: "text-body font-medium", children: label }),
9357
+ description !== void 0 && /* @__PURE__ */ jsx91("span", { className: "truncate text-body-xs text-default-secondary", children: description })
9358
+ ] }),
9359
+ /* @__PURE__ */ jsxs62("div", { className: "flex flex-wrap items-center gap-2", children: [
9360
+ onClear && /* @__PURE__ */ jsxs62(Fragment16, { children: [
9361
+ /* @__PURE__ */ jsx91(Button, { variant: "subtle", onClick: onClear, children: clearLabel }),
9362
+ /* @__PURE__ */ jsx91("span", { "aria-hidden": true, className: "h-6 border-l border-default" })
9363
+ ] }),
9364
+ children
9365
+ ] })
9366
+ ]
9367
+ }
9368
+ );
9369
+ }
9370
+
9306
9371
  // src/components/lists/list-row.tsx
9307
9372
  import clsx70 from "clsx";
9308
- import { Fragment as Fragment16, jsx as jsx91, jsxs as jsxs62 } from "react/jsx-runtime";
9373
+ import { Fragment as Fragment17, jsx as jsx92, jsxs as jsxs63 } from "react/jsx-runtime";
9309
9374
  var DENSITY2 = {
9310
9375
  default: {
9311
9376
  pad: "py-4",
@@ -9366,24 +9431,24 @@ function ListRow({
9366
9431
  className
9367
9432
  )
9368
9433
  };
9369
- const body = /* @__PURE__ */ jsxs62(Fragment16, { children: [
9370
- /* @__PURE__ */ jsxs62("div", { className: clsx70("flex min-w-0 flex-1 flex-col", d.gap), children: [
9371
- hasTitleLine && /* @__PURE__ */ jsxs62("div", { className: "flex items-center justify-between gap-2", children: [
9372
- /* @__PURE__ */ jsxs62("div", { className: "flex min-w-0 items-center gap-2", children: [
9434
+ const body = /* @__PURE__ */ jsxs63(Fragment17, { children: [
9435
+ /* @__PURE__ */ jsxs63("div", { className: clsx70("flex min-w-0 flex-1 flex-col", d.gap), children: [
9436
+ hasTitleLine && /* @__PURE__ */ jsxs63("div", { className: "flex items-center justify-between gap-2", children: [
9437
+ /* @__PURE__ */ jsxs63("div", { className: "flex min-w-0 items-center gap-2", children: [
9373
9438
  leading,
9374
- title != null && /* @__PURE__ */ jsx91("span", { className: clsx70("truncate", d.title), children: title }),
9375
- titleMeta && /* @__PURE__ */ jsx91("span", { className: "shrink-0", children: titleMeta })
9439
+ title != null && /* @__PURE__ */ jsx92("span", { className: clsx70("truncate", d.title), children: title }),
9440
+ titleMeta && /* @__PURE__ */ jsx92("span", { className: "shrink-0", children: titleMeta })
9376
9441
  ] }),
9377
- meta && /* @__PURE__ */ jsx91("span", { className: "shrink-0", children: meta })
9442
+ meta && /* @__PURE__ */ jsx92("span", { className: "shrink-0", children: meta })
9378
9443
  ] }),
9379
- description && /* @__PURE__ */ jsx91("p", { className: d.description, children: description }),
9444
+ description && /* @__PURE__ */ jsx92("p", { className: d.description, children: description }),
9380
9445
  footer && // These two wrappers are propagation barriers, not controls — they add no
9381
9446
  // behaviour of their own and must not be focusable or take a role.
9382
9447
  // eslint-disable-next-line jsx-a11y/no-static-element-interactions
9383
- /* @__PURE__ */ jsx91("div", { onClick: stopIfInteractive, onKeyDown: stopIfInteractive, children: footer })
9448
+ /* @__PURE__ */ jsx92("div", { onClick: stopIfInteractive, onKeyDown: stopIfInteractive, children: footer })
9384
9449
  ] }),
9385
9450
  trailing && // eslint-disable-next-line jsx-a11y/no-static-element-interactions
9386
- /* @__PURE__ */ jsx91(
9451
+ /* @__PURE__ */ jsx92(
9387
9452
  "div",
9388
9453
  {
9389
9454
  className: "ml-3 flex shrink-0 items-center self-center",
@@ -9394,7 +9459,7 @@ function ListRow({
9394
9459
  )
9395
9460
  ] });
9396
9461
  if (asChild) {
9397
- return /* @__PURE__ */ jsx91(
9462
+ return /* @__PURE__ */ jsx92(
9398
9463
  Slot,
9399
9464
  {
9400
9465
  ...rootProps,
@@ -9407,7 +9472,7 @@ function ListRow({
9407
9472
  }
9408
9473
  );
9409
9474
  }
9410
- return /* @__PURE__ */ jsx91(
9475
+ return /* @__PURE__ */ jsx92(
9411
9476
  Tag,
9412
9477
  {
9413
9478
  ...rootProps,
@@ -9438,9 +9503,9 @@ function refusePress(event) {
9438
9503
  // src/components/lists/file-row.tsx
9439
9504
  import clsx71 from "clsx";
9440
9505
  import { DownloadIcon, Trash2Icon } from "lucide-react";
9441
- import { jsx as jsx92, jsxs as jsxs63 } from "react/jsx-runtime";
9506
+ import { jsx as jsx93, jsxs as jsxs64 } from "react/jsx-runtime";
9442
9507
  function FileTypeBadge({ type }) {
9443
- return /* @__PURE__ */ jsx92("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 });
9508
+ return /* @__PURE__ */ jsx93("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 });
9444
9509
  }
9445
9510
  function FileRow({
9446
9511
  name,
@@ -9454,8 +9519,8 @@ function FileRow({
9454
9519
  actions,
9455
9520
  className
9456
9521
  }) {
9457
- const lead = leading ?? (fileType ? /* @__PURE__ */ jsx92(FileTypeBadge, { type: fileType }) : null);
9458
- return /* @__PURE__ */ jsxs63(
9522
+ const lead = leading ?? (fileType ? /* @__PURE__ */ jsx93(FileTypeBadge, { type: fileType }) : null);
9523
+ return /* @__PURE__ */ jsxs64(
9459
9524
  "div",
9460
9525
  {
9461
9526
  className: clsx71(
@@ -9464,14 +9529,14 @@ function FileRow({
9464
9529
  ),
9465
9530
  children: [
9466
9531
  lead,
9467
- /* @__PURE__ */ jsxs63("div", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
9468
- /* @__PURE__ */ jsx92("span", { className: "truncate text-body-sm font-medium text-default", children: name }),
9469
- detail && /* @__PURE__ */ jsx92("span", { className: "text-body-xs text-default-secondary", children: detail })
9532
+ /* @__PURE__ */ jsxs64("div", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
9533
+ /* @__PURE__ */ jsx93("span", { className: "truncate text-body-sm font-medium text-default", children: name }),
9534
+ detail && /* @__PURE__ */ jsx93("span", { className: "text-body-xs text-default-secondary", children: detail })
9470
9535
  ] }),
9471
- (onDownload || onRemove || actions) && /* @__PURE__ */ jsxs63("div", { className: "flex shrink-0 items-center gap-1", children: [
9472
- onDownload && /* @__PURE__ */ jsx92(Tooltip, { title: downloadLabel, children: /* @__PURE__ */ jsx92(IconButton, { variant: "subtle", size: "sm", "aria-label": `${downloadLabel} ${name}`, onClick: onDownload, className: "touch-hit", children: /* @__PURE__ */ jsx92(DownloadIcon, { "aria-hidden": true }) }) }),
9473
- onRemove && /* @__PURE__ */ jsx92(Tooltip, { title: removeLabel, children: /* @__PURE__ */ jsx92(IconButton, { variant: "subtle", size: "sm", "aria-label": `${removeLabel} ${name}`, onClick: onRemove, className: "touch-hit", children: /* @__PURE__ */ jsx92(Trash2Icon, { "aria-hidden": true }) }) }),
9474
- actions && /* @__PURE__ */ jsx92("div", { className: "ml-2 flex items-center gap-2", children: actions })
9536
+ (onDownload || onRemove || actions) && /* @__PURE__ */ jsxs64("div", { className: "flex shrink-0 items-center gap-1", children: [
9537
+ onDownload && /* @__PURE__ */ jsx93(Tooltip, { title: downloadLabel, children: /* @__PURE__ */ jsx93(IconButton, { variant: "subtle", size: "sm", "aria-label": `${downloadLabel} ${name}`, onClick: onDownload, className: "touch-hit", children: /* @__PURE__ */ jsx93(DownloadIcon, { "aria-hidden": true }) }) }),
9538
+ onRemove && /* @__PURE__ */ jsx93(Tooltip, { title: removeLabel, children: /* @__PURE__ */ jsx93(IconButton, { variant: "subtle", size: "sm", "aria-label": `${removeLabel} ${name}`, onClick: onRemove, className: "touch-hit", children: /* @__PURE__ */ jsx93(Trash2Icon, { "aria-hidden": true }) }) }),
9539
+ actions && /* @__PURE__ */ jsx93("div", { className: "ml-2 flex items-center gap-2", children: actions })
9475
9540
  ] })
9476
9541
  ]
9477
9542
  }
@@ -9480,7 +9545,7 @@ function FileRow({
9480
9545
 
9481
9546
  // src/components/lists/scored-row.tsx
9482
9547
  import clsx72 from "clsx";
9483
- import { jsx as jsx93, jsxs as jsxs64 } from "react/jsx-runtime";
9548
+ import { jsx as jsx94, jsxs as jsxs65 } from "react/jsx-runtime";
9484
9549
  var GAP3 = {
9485
9550
  sm: "gap-2",
9486
9551
  md: "gap-3",
@@ -9507,8 +9572,8 @@ function ScoredRow({
9507
9572
  align = "center",
9508
9573
  className
9509
9574
  }) {
9510
- return /* @__PURE__ */ jsxs64("div", { className: clsx72("flex w-full", ALIGN3[align], GAP3[gap], className), children: [
9511
- /* @__PURE__ */ jsxs64(
9575
+ return /* @__PURE__ */ jsxs65("div", { className: clsx72("flex w-full", ALIGN3[align], GAP3[gap], className), children: [
9576
+ /* @__PURE__ */ jsxs65(
9512
9577
  "div",
9513
9578
  {
9514
9579
  className: clsx72(
@@ -9520,14 +9585,14 @@ function ScoredRow({
9520
9585
  style: titleWidth ? { width: titleWidth } : void 0,
9521
9586
  children: [
9522
9587
  leading,
9523
- /* @__PURE__ */ jsxs64("div", { className: "min-w-0 flex-1", children: [
9524
- /* @__PURE__ */ jsx93("p", { className: "truncate text-body-sm font-medium leading-none text-default", children: title }),
9525
- subtitle && /* @__PURE__ */ jsx93("p", { className: "mt-0.5 truncate text-body-xs text-default-secondary", children: subtitle })
9588
+ /* @__PURE__ */ jsxs65("div", { className: "min-w-0 flex-1", children: [
9589
+ /* @__PURE__ */ jsx94("p", { className: "truncate text-body-sm font-medium leading-none text-default", children: title }),
9590
+ subtitle && /* @__PURE__ */ jsx94("p", { className: "mt-0.5 truncate text-body-xs text-default-secondary", children: subtitle })
9526
9591
  ] })
9527
9592
  ]
9528
9593
  }
9529
9594
  ),
9530
- aside && /* @__PURE__ */ jsx93(
9595
+ aside && /* @__PURE__ */ jsx94(
9531
9596
  "div",
9532
9597
  {
9533
9598
  className: clsx72("min-w-0", asideWidth ? "shrink-0" : "flex-1"),
@@ -9535,7 +9600,7 @@ function ScoredRow({
9535
9600
  children: aside
9536
9601
  }
9537
9602
  ),
9538
- meter && /* @__PURE__ */ jsx93(
9603
+ meter && /* @__PURE__ */ jsx94(
9539
9604
  "div",
9540
9605
  {
9541
9606
  className: clsx72("min-w-0", meterWidth ? "shrink-0" : "flex-1"),
@@ -9543,13 +9608,13 @@ function ScoredRow({
9543
9608
  children: meter
9544
9609
  }
9545
9610
  ),
9546
- trailing && /* @__PURE__ */ jsx93("div", { className: "shrink-0 text-right", style: trailingWidth ? { width: trailingWidth } : void 0, children: trailing })
9611
+ trailing && /* @__PURE__ */ jsx94("div", { className: "shrink-0 text-right", style: trailingWidth ? { width: trailingWidth } : void 0, children: trailing })
9547
9612
  ] });
9548
9613
  }
9549
9614
 
9550
9615
  // src/components/lists/numbered-list.tsx
9551
9616
  import clsx73 from "clsx";
9552
- import { jsx as jsx94, jsxs as jsxs65 } from "react/jsx-runtime";
9617
+ import { jsx as jsx95, jsxs as jsxs66 } from "react/jsx-runtime";
9553
9618
  var GAP4 = {
9554
9619
  sm: "gap-2",
9555
9620
  md: "gap-3"
@@ -9563,18 +9628,18 @@ function NumberedList({
9563
9628
  gap = "md",
9564
9629
  className
9565
9630
  }) {
9566
- return /* @__PURE__ */ jsx94("ol", { className: clsx73("flex list-none flex-col p-0", GAP4[gap], className), children: items.map((item, index) => {
9631
+ return /* @__PURE__ */ jsx95("ol", { className: clsx73("flex list-none flex-col p-0", GAP4[gap], className), children: items.map((item, index) => {
9567
9632
  const tone = !item.tone || item.tone === "auto" ? getScoreTone(item.score, { direction }) : item.tone;
9568
- return /* @__PURE__ */ jsxs65("li", { className: "flex w-full shrink-0 flex-col gap-1.5", children: [
9569
- /* @__PURE__ */ jsxs65("div", { className: "flex w-full items-center justify-between", children: [
9570
- /* @__PURE__ */ jsxs65("div", { className: "flex min-w-0 items-center gap-2.5", children: [
9571
- /* @__PURE__ */ jsx94("span", { className: "w-[14px] shrink-0 text-body-xs font-bold text-default-secondary", children: startAt + index }),
9572
- /* @__PURE__ */ jsxs65("div", { className: "flex min-w-0 flex-col gap-px", children: [
9573
- /* @__PURE__ */ jsx94("span", { className: "truncate text-body-sm font-medium leading-none text-default", children: item.title }),
9574
- item.subtitle && /* @__PURE__ */ jsx94("span", { className: "text-body-tiny text-default-tertiary", children: item.subtitle })
9633
+ return /* @__PURE__ */ jsxs66("li", { className: "flex w-full shrink-0 flex-col gap-1.5", children: [
9634
+ /* @__PURE__ */ jsxs66("div", { className: "flex w-full items-center justify-between", children: [
9635
+ /* @__PURE__ */ jsxs66("div", { className: "flex min-w-0 items-center gap-2.5", children: [
9636
+ /* @__PURE__ */ jsx95("span", { className: "w-[14px] shrink-0 text-body-xs font-bold text-default-secondary", children: startAt + index }),
9637
+ /* @__PURE__ */ jsxs66("div", { className: "flex min-w-0 flex-col gap-px", children: [
9638
+ /* @__PURE__ */ jsx95("span", { className: "truncate text-body-sm font-medium leading-none text-default", children: item.title }),
9639
+ item.subtitle && /* @__PURE__ */ jsx95("span", { className: "text-body-tiny text-default-tertiary", children: item.subtitle })
9575
9640
  ] })
9576
9641
  ] }),
9577
- /* @__PURE__ */ jsx94(
9642
+ /* @__PURE__ */ jsx95(
9578
9643
  ScoreValue,
9579
9644
  {
9580
9645
  value: item.score,
@@ -9585,20 +9650,20 @@ function NumberedList({
9585
9650
  }
9586
9651
  )
9587
9652
  ] }),
9588
- /* @__PURE__ */ jsx94(ProgressBar, { value: item.score, tone, "aria-label": `${item.title} score` })
9653
+ /* @__PURE__ */ jsx95(ProgressBar, { value: item.score, tone, "aria-label": `${item.title} score` })
9589
9654
  ] }, `${item.title}-${index}`);
9590
9655
  }) });
9591
9656
  }
9592
9657
 
9593
9658
  // src/components/lists/icon-text-row.tsx
9594
9659
  import clsx74 from "clsx";
9595
- import { jsx as jsx95, jsxs as jsxs66 } from "react/jsx-runtime";
9660
+ import { jsx as jsx96, jsxs as jsxs67 } from "react/jsx-runtime";
9596
9661
  function IconTextRow({ icon, title, detail, className }) {
9597
- return /* @__PURE__ */ jsxs66("div", { className: clsx74("flex items-start gap-3", className), children: [
9598
- /* @__PURE__ */ jsx95("span", { className: "flex size-9 shrink-0 items-center justify-center rounded-full bg-brand-tertiary text-brand", children: icon }),
9599
- /* @__PURE__ */ jsxs66("div", { className: "min-w-0", children: [
9600
- /* @__PURE__ */ jsx95("p", { className: "text-body-sm font-semibold text-default", children: title }),
9601
- /* @__PURE__ */ jsx95("p", { className: "mt-0.5 text-body-xs text-default-secondary", children: detail })
9662
+ return /* @__PURE__ */ jsxs67("div", { className: clsx74("flex items-start gap-3", className), children: [
9663
+ /* @__PURE__ */ jsx96("span", { className: "flex size-9 shrink-0 items-center justify-center rounded-full bg-brand-tertiary text-brand", children: icon }),
9664
+ /* @__PURE__ */ jsxs67("div", { className: "min-w-0", children: [
9665
+ /* @__PURE__ */ jsx96("p", { className: "text-body-sm font-semibold text-default", children: title }),
9666
+ /* @__PURE__ */ jsx96("p", { className: "mt-0.5 text-body-xs text-default-secondary", children: detail })
9602
9667
  ] })
9603
9668
  ] });
9604
9669
  }
@@ -9606,10 +9671,10 @@ function IconTextRow({ icon, title, detail, className }) {
9606
9671
  // src/components/lists/checklist-row.tsx
9607
9672
  import clsx75 from "clsx";
9608
9673
  import { CheckIcon as CheckIcon5 } from "lucide-react";
9609
- import { jsx as jsx96, jsxs as jsxs67 } from "react/jsx-runtime";
9674
+ import { jsx as jsx97, jsxs as jsxs68 } from "react/jsx-runtime";
9610
9675
  function ChecklistRow({ label, state, className }) {
9611
- return /* @__PURE__ */ jsxs67("li", { "data-state": state, className: clsx75("flex items-center gap-3", className), children: [
9612
- /* @__PURE__ */ jsx96("span", { className: "flex size-5 shrink-0 items-center justify-center", children: state === "done" ? /* @__PURE__ */ jsx96(CheckIcon5, { className: "size-4 text-positive", strokeWidth: 2.5, "aria-hidden": true }) : /* @__PURE__ */ jsx96(
9676
+ return /* @__PURE__ */ jsxs68("li", { "data-state": state, className: clsx75("flex items-center gap-3", className), children: [
9677
+ /* @__PURE__ */ jsx97("span", { className: "flex size-5 shrink-0 items-center justify-center", children: state === "done" ? /* @__PURE__ */ jsx97(CheckIcon5, { className: "size-4 text-positive", strokeWidth: 2.5, "aria-hidden": true }) : /* @__PURE__ */ jsx97(
9613
9678
  "span",
9614
9679
  {
9615
9680
  className: clsx75(
@@ -9618,7 +9683,7 @@ function ChecklistRow({ label, state, className }) {
9618
9683
  )
9619
9684
  }
9620
9685
  ) }),
9621
- /* @__PURE__ */ jsx96(
9686
+ /* @__PURE__ */ jsx97(
9622
9687
  "span",
9623
9688
  {
9624
9689
  className: clsx75(
@@ -9633,13 +9698,13 @@ function ChecklistRow({ label, state, className }) {
9633
9698
 
9634
9699
  // src/components/lists/steps-list.tsx
9635
9700
  import clsx76 from "clsx";
9636
- import { jsx as jsx97, jsxs as jsxs68 } from "react/jsx-runtime";
9701
+ import { jsx as jsx98, jsxs as jsxs69 } from "react/jsx-runtime";
9637
9702
  function StepsList({ steps, className }) {
9638
- return /* @__PURE__ */ jsx97("ol", { className: clsx76("flex flex-col gap-1.5", className), children: steps.map((step, i) => (
9703
+ return /* @__PURE__ */ jsx98("ol", { className: clsx76("flex flex-col gap-1.5", className), children: steps.map((step, i) => (
9639
9704
  // `text-[12px]` was off the type scale; 12 sits midway between Scale 01 (11) and
9640
9705
  // Scale 02 (13), so it rounds up to 13 like every other snap in this pass.
9641
- /* @__PURE__ */ jsxs68("li", { className: "flex items-start gap-2 text-body-xs text-default", children: [
9642
- /* @__PURE__ */ jsx97("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 }),
9706
+ /* @__PURE__ */ jsxs69("li", { className: "flex items-start gap-2 text-body-xs text-default", children: [
9707
+ /* @__PURE__ */ jsx98("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 }),
9643
9708
  step
9644
9709
  ] }, i)
9645
9710
  )) });
@@ -9647,7 +9712,7 @@ function StepsList({ steps, className }) {
9647
9712
 
9648
9713
  // src/components/lists/detail-item.tsx
9649
9714
  import clsx77 from "clsx";
9650
- import { jsx as jsx98, jsxs as jsxs69 } from "react/jsx-runtime";
9715
+ import { jsx as jsx99, jsxs as jsxs70 } from "react/jsx-runtime";
9651
9716
  var SPAN = {
9652
9717
  1: "",
9653
9718
  2: "sm:col-span-2",
@@ -9664,18 +9729,18 @@ function DetailItem({
9664
9729
  }) {
9665
9730
  const shown = value === null || value === void 0 || value === "" ? "\u2014" : value;
9666
9731
  if (layout === "inline") {
9667
- return /* @__PURE__ */ jsxs69("div", { className: clsx77("flex gap-3 text-body-xs", SPAN[span], className), children: [
9668
- /* @__PURE__ */ jsx98("span", { className: clsx77("shrink-0 text-default-secondary", labelWidth), children: label }),
9669
- /* @__PURE__ */ jsxs69("span", { className: "flex min-w-0 flex-1 flex-col gap-0.5 [overflow-wrap:anywhere]", children: [
9670
- /* @__PURE__ */ jsx98("span", { className: "text-default", children: shown }),
9671
- detail && /* @__PURE__ */ jsx98("span", { className: "text-default-secondary", children: detail })
9732
+ return /* @__PURE__ */ jsxs70("div", { className: clsx77("flex gap-3 text-body-xs", SPAN[span], className), children: [
9733
+ /* @__PURE__ */ jsx99("span", { className: clsx77("shrink-0 text-default-secondary", labelWidth), children: label }),
9734
+ /* @__PURE__ */ jsxs70("span", { className: "flex min-w-0 flex-1 flex-col gap-0.5 [overflow-wrap:anywhere]", children: [
9735
+ /* @__PURE__ */ jsx99("span", { className: "text-default", children: shown }),
9736
+ detail && /* @__PURE__ */ jsx99("span", { className: "text-default-secondary", children: detail })
9672
9737
  ] })
9673
9738
  ] });
9674
9739
  }
9675
- return /* @__PURE__ */ jsxs69("div", { className: clsx77("flex min-w-0 flex-col gap-0.5", SPAN[span], className), children: [
9676
- /* @__PURE__ */ jsx98("p", { className: "text-body-tiny font-medium text-default-secondary", children: label }),
9677
- /* @__PURE__ */ jsx98("p", { className: "text-body-sm font-medium text-default [overflow-wrap:anywhere]", children: shown }),
9678
- detail && /* @__PURE__ */ jsx98("p", { className: "text-body-xs text-default-secondary [overflow-wrap:anywhere]", children: detail })
9740
+ return /* @__PURE__ */ jsxs70("div", { className: clsx77("flex min-w-0 flex-col gap-0.5", SPAN[span], className), children: [
9741
+ /* @__PURE__ */ jsx99("p", { className: "text-body-tiny font-medium text-default-secondary", children: label }),
9742
+ /* @__PURE__ */ jsx99("p", { className: "text-body-sm font-medium text-default [overflow-wrap:anywhere]", children: shown }),
9743
+ detail && /* @__PURE__ */ jsx99("p", { className: "text-body-xs text-default-secondary [overflow-wrap:anywhere]", children: detail })
9679
9744
  ] });
9680
9745
  }
9681
9746
  var COLUMNS3 = {
@@ -9686,29 +9751,29 @@ var COLUMNS3 = {
9686
9751
  4: "grid-cols-2 sm:grid-cols-3 lg:grid-cols-4"
9687
9752
  };
9688
9753
  function DetailGrid({ children, columns = "auto", className }) {
9689
- return /* @__PURE__ */ jsx98("div", { className: clsx77("grid gap-x-4 gap-y-4", COLUMNS3[columns], className), children });
9754
+ return /* @__PURE__ */ jsx99("div", { className: clsx77("grid gap-x-4 gap-y-4", COLUMNS3[columns], className), children });
9690
9755
  }
9691
9756
 
9692
9757
  // src/components/lists/description-list.tsx
9693
- import { useEffect as useEffect15, useState as useState25 } from "react";
9758
+ import { useEffect as useEffect15, useState as useState26 } from "react";
9694
9759
  import clsx78 from "clsx";
9695
9760
  import { CheckIcon as CheckIcon6, CopyIcon } from "lucide-react";
9696
- import { jsx as jsx99, jsxs as jsxs70 } from "react/jsx-runtime";
9761
+ import { jsx as jsx100, jsxs as jsxs71 } from "react/jsx-runtime";
9697
9762
  function DescriptionList({ children, className }) {
9698
- return /* @__PURE__ */ jsx99("dl", { className: cn("flex flex-col gap-3", className), children });
9763
+ return /* @__PURE__ */ jsx100("dl", { className: cn("flex flex-col gap-3", className), children });
9699
9764
  }
9700
9765
  function DescriptionItem({ label, value, copyValue, className }) {
9701
9766
  const shown = value === null || value === void 0 || value === "" ? "\u2014" : value;
9702
- return /* @__PURE__ */ jsxs70("div", { className: cn("flex flex-wrap items-start gap-x-4 gap-y-0.5 text-body-xs", className), children: [
9703
- /* @__PURE__ */ jsx99("dt", { className: "shrink-0 grow-0 basis-28 text-default-secondary", children: label }),
9704
- /* @__PURE__ */ jsxs70("dd", { className: "flex min-w-0 flex-[1_1_10rem] items-start gap-1.5 text-default", children: [
9705
- /* @__PURE__ */ jsx99("span", { className: "min-w-0 [overflow-wrap:anywhere]", children: shown }),
9706
- copyValue && /* @__PURE__ */ jsx99(CopyButton, { value: copyValue, label: `Copy ${label.toLowerCase()}` })
9767
+ return /* @__PURE__ */ jsxs71("div", { className: cn("flex flex-wrap items-start gap-x-4 gap-y-0.5 text-body-xs", className), children: [
9768
+ /* @__PURE__ */ jsx100("dt", { className: "shrink-0 grow-0 basis-28 text-default-secondary", children: label }),
9769
+ /* @__PURE__ */ jsxs71("dd", { className: "flex min-w-0 flex-[1_1_10rem] items-start gap-1.5 text-default", children: [
9770
+ /* @__PURE__ */ jsx100("span", { className: "min-w-0 [overflow-wrap:anywhere]", children: shown }),
9771
+ copyValue && /* @__PURE__ */ jsx100(CopyButton, { value: copyValue, label: `Copy ${label.toLowerCase()}` })
9707
9772
  ] })
9708
9773
  ] });
9709
9774
  }
9710
9775
  function CopyButton({ value, label, copiedLabel = "Copied", className }) {
9711
- const [copied, setCopied] = useState25(false);
9776
+ const [copied, setCopied] = useState26(false);
9712
9777
  useEffect15(() => {
9713
9778
  if (!copied) return;
9714
9779
  const timer = window.setTimeout(() => setCopied(false), 2e3);
@@ -9716,8 +9781,8 @@ function CopyButton({ value, label, copiedLabel = "Copied", className }) {
9716
9781
  }, [copied]);
9717
9782
  return (
9718
9783
  // relative: keeps the sr-only status (absolutely positioned) inside a scrolling container.
9719
- /* @__PURE__ */ jsxs70("span", { className: "relative inline-flex", children: [
9720
- /* @__PURE__ */ jsx99(
9784
+ /* @__PURE__ */ jsxs71("span", { className: "relative inline-flex", children: [
9785
+ /* @__PURE__ */ jsx100(
9721
9786
  IconButton,
9722
9787
  {
9723
9788
  variant: "subtle",
@@ -9731,10 +9796,10 @@ function CopyButton({ value, label, copiedLabel = "Copied", className }) {
9731
9796
  () => void 0
9732
9797
  );
9733
9798
  },
9734
- children: copied ? /* @__PURE__ */ jsx99(CheckIcon6, { "aria-hidden": true }) : /* @__PURE__ */ jsx99(CopyIcon, { "aria-hidden": true })
9799
+ children: copied ? /* @__PURE__ */ jsx100(CheckIcon6, { "aria-hidden": true }) : /* @__PURE__ */ jsx100(CopyIcon, { "aria-hidden": true })
9735
9800
  }
9736
9801
  ),
9737
- /* @__PURE__ */ jsx99("span", { role: "status", className: "sr-only", children: copied ? copiedLabel : "" })
9802
+ /* @__PURE__ */ jsx100("span", { role: "status", className: "sr-only", children: copied ? copiedLabel : "" })
9738
9803
  ] })
9739
9804
  );
9740
9805
  }
@@ -9742,16 +9807,16 @@ function EmailText({ email, className }) {
9742
9807
  const at = email.lastIndexOf("@");
9743
9808
  const local = at > 0 ? email.slice(0, at) : email;
9744
9809
  const domain = at > 0 ? email.slice(at) : "";
9745
- return /* @__PURE__ */ jsxs70("span", { title: email, "data-slot": "email-text", className: clsx78("flex min-w-0 max-w-full", className), children: [
9746
- /* @__PURE__ */ jsx99("span", { className: "min-w-0 overflow-hidden text-ellipsis whitespace-nowrap", children: local }),
9747
- domain && /* @__PURE__ */ jsx99("span", { className: "min-w-0 overflow-hidden text-ellipsis whitespace-nowrap [flex-shrink:0.001]", children: domain })
9810
+ return /* @__PURE__ */ jsxs71("span", { title: email, "data-slot": "email-text", className: clsx78("flex min-w-0 max-w-full", className), children: [
9811
+ /* @__PURE__ */ jsx100("span", { className: "min-w-0 overflow-hidden text-ellipsis whitespace-nowrap", children: local }),
9812
+ domain && /* @__PURE__ */ jsx100("span", { className: "min-w-0 overflow-hidden text-ellipsis whitespace-nowrap [flex-shrink:0.001]", children: domain })
9748
9813
  ] });
9749
9814
  }
9750
9815
 
9751
9816
  // src/components/lists/checked-group-list.tsx
9752
9817
  import clsx79 from "clsx";
9753
9818
  import { CheckIcon as CheckIcon7 } from "lucide-react";
9754
- import { jsx as jsx100, jsxs as jsxs71 } from "react/jsx-runtime";
9819
+ import { jsx as jsx101, jsxs as jsxs72 } from "react/jsx-runtime";
9755
9820
  var COLUMNS4 = {
9756
9821
  1: "columns-1",
9757
9822
  2: "columns-2",
@@ -9765,23 +9830,23 @@ function CheckedGroupList({
9765
9830
  className
9766
9831
  }) {
9767
9832
  if (groups.length === 0) {
9768
- return /* @__PURE__ */ jsx100("p", { className: clsx79("text-body-xs text-default-secondary", className), children: emptyLabel });
9833
+ return /* @__PURE__ */ jsx101("p", { className: clsx79("text-body-xs text-default-secondary", className), children: emptyLabel });
9769
9834
  }
9770
- const glyph = icon === void 0 ? /* @__PURE__ */ jsx100(CheckIcon7, { className: "size-3.5", strokeWidth: 2.5, "aria-hidden": true }) : icon;
9771
- return /* @__PURE__ */ jsx100("div", { className: clsx79(COLUMNS4[columns], "gap-x-6", className), children: groups.map((group) => /* @__PURE__ */ jsxs71("div", { className: "mb-5 break-inside-avoid last:mb-0", children: [
9772
- /* @__PURE__ */ jsx100("p", { className: "mb-2 text-body-tiny font-semibold uppercase tracking-wide text-default-secondary", children: group.label }),
9773
- /* @__PURE__ */ jsx100("ul", { className: "space-y-1.5", children: group.items.map((item) => /* @__PURE__ */ jsxs71("li", { className: "flex items-center gap-2 text-body-xs text-default", children: [
9774
- glyph && /* @__PURE__ */ jsx100("span", { className: "shrink-0", children: glyph }),
9835
+ const glyph = icon === void 0 ? /* @__PURE__ */ jsx101(CheckIcon7, { className: "size-3.5", strokeWidth: 2.5, "aria-hidden": true }) : icon;
9836
+ return /* @__PURE__ */ jsx101("div", { className: clsx79(COLUMNS4[columns], "gap-x-6", className), children: groups.map((group) => /* @__PURE__ */ jsxs72("div", { className: "mb-5 break-inside-avoid last:mb-0", children: [
9837
+ /* @__PURE__ */ jsx101("p", { className: "mb-2 text-body-tiny font-semibold uppercase tracking-wide text-default-secondary", children: group.label }),
9838
+ /* @__PURE__ */ jsx101("ul", { className: "space-y-1.5", children: group.items.map((item) => /* @__PURE__ */ jsxs72("li", { className: "flex items-center gap-2 text-body-xs text-default", children: [
9839
+ glyph && /* @__PURE__ */ jsx101("span", { className: "shrink-0", children: glyph }),
9775
9840
  item
9776
9841
  ] }, item)) })
9777
9842
  ] }, group.label)) });
9778
9843
  }
9779
9844
 
9780
9845
  // src/components/lists/tree-view.tsx
9781
- import { useMemo as useMemo14, useRef as useRef17, useState as useState26 } from "react";
9846
+ import { useMemo as useMemo14, useRef as useRef17, useState as useState27 } from "react";
9782
9847
  import clsx80 from "clsx";
9783
9848
  import { ChevronRightIcon as ChevronRightIcon7 } from "lucide-react";
9784
- import { jsx as jsx101, jsxs as jsxs72 } from "react/jsx-runtime";
9849
+ import { jsx as jsx102, jsxs as jsxs73 } from "react/jsx-runtime";
9785
9850
  var ROW = {
9786
9851
  sm: "min-h-8 py-1 text-body-xs",
9787
9852
  md: "min-h-10 py-2 text-body-sm"
@@ -9811,7 +9876,7 @@ function TreeView({
9811
9876
  value: selectedProp,
9812
9877
  defaultValue: defaultSelected
9813
9878
  });
9814
- const [focusedId, setFocusedId] = useState26(null);
9879
+ const [focusedId, setFocusedId] = useState27(null);
9815
9880
  const rowRefs = useRef17(/* @__PURE__ */ new Map());
9816
9881
  const expandedSet = useMemo14(() => new Set(expanded), [expanded]);
9817
9882
  const visible = useMemo14(() => {
@@ -9885,7 +9950,7 @@ function TreeView({
9885
9950
  if (!node) return null;
9886
9951
  const children = getChildren?.(item) ?? [];
9887
9952
  const isSelected = selected === id;
9888
- return /* @__PURE__ */ jsxs72(
9953
+ return /* @__PURE__ */ jsxs73(
9889
9954
  "li",
9890
9955
  {
9891
9956
  role: "treeitem",
@@ -9907,7 +9972,7 @@ function TreeView({
9907
9972
  },
9908
9973
  className: "outline-none [&:focus-visible>div]:ring-2 [&:focus-visible>div]:ring-inset [&:focus-visible>div]:ring-brand",
9909
9974
  children: [
9910
- /* @__PURE__ */ jsxs72(
9975
+ /* @__PURE__ */ jsxs73(
9911
9976
  "div",
9912
9977
  {
9913
9978
  onClick: () => {
@@ -9925,7 +9990,7 @@ function TreeView({
9925
9990
  // Not a button: the treeitem is the one tab stop, and Left/Right already toggle.
9926
9991
  // A pointer user still needs a target that toggles without selecting.
9927
9992
  // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
9928
- /* @__PURE__ */ jsx101(
9993
+ /* @__PURE__ */ jsx102(
9929
9994
  "span",
9930
9995
  {
9931
9996
  "aria-hidden": true,
@@ -9936,11 +10001,11 @@ function TreeView({
9936
10001
  focus(id);
9937
10002
  },
9938
10003
  className: "flex size-5 shrink-0 items-center justify-center rounded text-icon-default-secondary hover:bg-default-tertiary",
9939
- children: /* @__PURE__ */ jsx101(ChevronRightIcon7, { className: clsx80("size-3.5 transition-transform motion-reduce:transition-none", node.expanded && "rotate-90") })
10004
+ children: /* @__PURE__ */ jsx102(ChevronRightIcon7, { className: clsx80("size-3.5 transition-transform motion-reduce:transition-none", node.expanded && "rotate-90") })
9940
10005
  }
9941
10006
  )
9942
- ) : /* @__PURE__ */ jsx101("span", { "aria-hidden": true, className: "size-5 shrink-0" }),
9943
- /* @__PURE__ */ jsx101("div", { className: "min-w-0 flex-1", children: renderItem(item, {
10007
+ ) : /* @__PURE__ */ jsx102("span", { "aria-hidden": true, className: "size-5 shrink-0" }),
10008
+ /* @__PURE__ */ jsx102("div", { className: "min-w-0 flex-1", children: renderItem(item, {
9944
10009
  level,
9945
10010
  hasChildren: node.hasChildren,
9946
10011
  expanded: node.expanded,
@@ -9949,13 +10014,13 @@ function TreeView({
9949
10014
  ]
9950
10015
  }
9951
10016
  ),
9952
- node.expanded && /* @__PURE__ */ jsx101("ul", { role: "group", className: "m-0 list-none p-0", children: renderLevel(children, level + 1) })
10017
+ node.expanded && /* @__PURE__ */ jsx102("ul", { role: "group", className: "m-0 list-none p-0", children: renderLevel(children, level + 1) })
9953
10018
  ]
9954
10019
  },
9955
10020
  id
9956
10021
  );
9957
10022
  });
9958
- return /* @__PURE__ */ jsx101("ul", { role: "tree", "aria-label": label, className: clsx80("m-0 flex list-none flex-col p-0", className), children: renderLevel(items, 1) });
10023
+ return /* @__PURE__ */ jsx102("ul", { role: "tree", "aria-label": label, className: clsx80("m-0 flex list-none flex-col p-0", className), children: renderLevel(items, 1) });
9959
10024
  }
9960
10025
 
9961
10026
  // src/index.tsx
@@ -9964,7 +10029,7 @@ export * from "./data-table.js";
9964
10029
  // src/components/feedback/inline-alert.tsx
9965
10030
  import clsx81 from "clsx";
9966
10031
  import { CircleCheckBigIcon as CircleCheckBigIcon2, InfoIcon as InfoIcon2, TriangleAlertIcon as TriangleAlertIcon2 } from "lucide-react";
9967
- import { jsx as jsx102, jsxs as jsxs73 } from "react/jsx-runtime";
10032
+ import { jsx as jsx103, jsxs as jsxs74 } from "react/jsx-runtime";
9968
10033
  var toneStyles3 = {
9969
10034
  info: "border-brand-tertiary bg-brand-tertiary text-brand",
9970
10035
  warning: "border-warning-tertiary bg-warning-tertiary text-warning",
@@ -9973,15 +10038,15 @@ var toneStyles3 = {
9973
10038
  neutral: "border-default bg-default text-default-secondary"
9974
10039
  };
9975
10040
  var toneIcons = {
9976
- info: /* @__PURE__ */ jsx102(InfoIcon2, { className: "size-4" }),
9977
- warning: /* @__PURE__ */ jsx102(TriangleAlertIcon2, { className: "size-4" }),
9978
- danger: /* @__PURE__ */ jsx102(TriangleAlertIcon2, { className: "size-4" }),
9979
- positive: /* @__PURE__ */ jsx102(CircleCheckBigIcon2, { className: "size-4" }),
9980
- neutral: /* @__PURE__ */ jsx102(InfoIcon2, { className: "size-4 text-icon-default-secondary" })
10041
+ info: /* @__PURE__ */ jsx103(InfoIcon2, { className: "size-4" }),
10042
+ warning: /* @__PURE__ */ jsx103(TriangleAlertIcon2, { className: "size-4" }),
10043
+ danger: /* @__PURE__ */ jsx103(TriangleAlertIcon2, { className: "size-4" }),
10044
+ positive: /* @__PURE__ */ jsx103(CircleCheckBigIcon2, { className: "size-4" }),
10045
+ neutral: /* @__PURE__ */ jsx103(InfoIcon2, { className: "size-4 text-icon-default-secondary" })
9981
10046
  };
9982
10047
  function InlineAlert({ tone, children, icon, role, className }) {
9983
10048
  const glyph = icon === void 0 ? toneIcons[tone] : icon;
9984
- return /* @__PURE__ */ jsxs73(
10049
+ return /* @__PURE__ */ jsxs74(
9985
10050
  "div",
9986
10051
  {
9987
10052
  "data-tone": tone,
@@ -9992,8 +10057,8 @@ function InlineAlert({ tone, children, icon, role, className }) {
9992
10057
  className
9993
10058
  ),
9994
10059
  children: [
9995
- glyph && /* @__PURE__ */ jsx102("span", { "aria-hidden": true, className: "mt-px shrink-0", children: glyph }),
9996
- /* @__PURE__ */ jsx102("div", { className: "min-w-0", children })
10060
+ glyph && /* @__PURE__ */ jsx103("span", { "aria-hidden": true, className: "mt-px shrink-0", children: glyph }),
10061
+ /* @__PURE__ */ jsx103("div", { className: "min-w-0", children })
9997
10062
  ]
9998
10063
  }
9999
10064
  );
@@ -10001,7 +10066,7 @@ function InlineAlert({ tone, children, icon, role, className }) {
10001
10066
 
10002
10067
  // src/components/feedback/error-boundary.tsx
10003
10068
  import { Component } from "react";
10004
- import { jsx as jsx103 } from "react/jsx-runtime";
10069
+ import { jsx as jsx104 } from "react/jsx-runtime";
10005
10070
  var ErrorBoundary = class extends Component {
10006
10071
  constructor() {
10007
10072
  super(...arguments);
@@ -10021,7 +10086,7 @@ var ErrorBoundary = class extends Component {
10021
10086
  }
10022
10087
  render() {
10023
10088
  if (!this.state.error) return this.props.children;
10024
- return this.props.fallback ?? /* @__PURE__ */ jsx103(
10089
+ return this.props.fallback ?? /* @__PURE__ */ jsx104(
10025
10090
  "div",
10026
10091
  {
10027
10092
  role: "status",
@@ -10037,7 +10102,7 @@ var ErrorBoundary = class extends Component {
10037
10102
  import { forwardRef as forwardRef33, useId as useId21 } from "react";
10038
10103
  import clsx82 from "clsx";
10039
10104
  import { CircleCheckBigIcon as CircleCheckBigIcon3, InfoIcon as InfoIcon3, TriangleAlertIcon as TriangleAlertIcon3, XIcon as XIcon8 } from "lucide-react";
10040
- import { jsx as jsx104, jsxs as jsxs74 } from "react/jsx-runtime";
10105
+ import { jsx as jsx105, jsxs as jsxs75 } from "react/jsx-runtime";
10041
10106
  var TONE_STYLES3 = {
10042
10107
  info: "border-brand-tertiary bg-brand-tertiary text-default",
10043
10108
  positive: "border-positive-tertiary bg-positive-tertiary text-default",
@@ -10053,11 +10118,11 @@ var TONE_ICON_COLOR = {
10053
10118
  neutral: "text-icon-default-secondary"
10054
10119
  };
10055
10120
  var TONE_ICON2 = {
10056
- info: /* @__PURE__ */ jsx104(InfoIcon3, { "aria-hidden": true, className: "size-5" }),
10057
- positive: /* @__PURE__ */ jsx104(CircleCheckBigIcon3, { "aria-hidden": true, className: "size-5" }),
10058
- warning: /* @__PURE__ */ jsx104(TriangleAlertIcon3, { "aria-hidden": true, className: "size-5" }),
10059
- danger: /* @__PURE__ */ jsx104(TriangleAlertIcon3, { "aria-hidden": true, className: "size-5" }),
10060
- neutral: /* @__PURE__ */ jsx104(InfoIcon3, { "aria-hidden": true, className: "size-5" })
10121
+ info: /* @__PURE__ */ jsx105(InfoIcon3, { "aria-hidden": true, className: "size-5" }),
10122
+ positive: /* @__PURE__ */ jsx105(CircleCheckBigIcon3, { "aria-hidden": true, className: "size-5" }),
10123
+ warning: /* @__PURE__ */ jsx105(TriangleAlertIcon3, { "aria-hidden": true, className: "size-5" }),
10124
+ danger: /* @__PURE__ */ jsx105(TriangleAlertIcon3, { "aria-hidden": true, className: "size-5" }),
10125
+ neutral: /* @__PURE__ */ jsx105(InfoIcon3, { "aria-hidden": true, className: "size-5" })
10061
10126
  };
10062
10127
  var Banner = forwardRef33(function Banner2({
10063
10128
  title,
@@ -10072,7 +10137,7 @@ var Banner = forwardRef33(function Banner2({
10072
10137
  }, ref) {
10073
10138
  const titleId = useId21();
10074
10139
  const glyph = icon === void 0 ? TONE_ICON2[tone] : icon;
10075
- return /* @__PURE__ */ jsxs74(
10140
+ return /* @__PURE__ */ jsxs75(
10076
10141
  "div",
10077
10142
  {
10078
10143
  "data-tone": tone,
@@ -10088,13 +10153,13 @@ var Banner = forwardRef33(function Banner2({
10088
10153
  ),
10089
10154
  ...rest,
10090
10155
  children: [
10091
- glyph && /* @__PURE__ */ jsx104("span", { "aria-hidden": true, className: clsx82("mt-px shrink-0", TONE_ICON_COLOR[tone]), children: glyph }),
10092
- /* @__PURE__ */ jsxs74("div", { className: "min-w-0 flex-1", children: [
10093
- /* @__PURE__ */ jsx104("p", { id: titleId, className: "text-body-sm font-semibold text-default", children: title }),
10094
- children && /* @__PURE__ */ jsx104("div", { className: "mt-1 text-body-xs text-default-secondary", children }),
10095
- action && /* @__PURE__ */ jsx104("div", { className: "mt-3 flex items-center gap-2", children: action })
10156
+ glyph && /* @__PURE__ */ jsx105("span", { "aria-hidden": true, className: clsx82("mt-px shrink-0", TONE_ICON_COLOR[tone]), children: glyph }),
10157
+ /* @__PURE__ */ jsxs75("div", { className: "min-w-0 flex-1", children: [
10158
+ /* @__PURE__ */ jsx105("p", { id: titleId, className: "text-body-sm font-semibold text-default", children: title }),
10159
+ children && /* @__PURE__ */ jsx105("div", { className: "mt-1 text-body-xs text-default-secondary", children }),
10160
+ action && /* @__PURE__ */ jsx105("div", { className: "mt-3 flex items-center gap-2", children: action })
10096
10161
  ] }),
10097
- onDismiss && /* @__PURE__ */ jsx104(
10162
+ onDismiss && /* @__PURE__ */ jsx105(
10098
10163
  IconButton,
10099
10164
  {
10100
10165
  variant: "subtle",
@@ -10102,7 +10167,7 @@ var Banner = forwardRef33(function Banner2({
10102
10167
  "aria-label": typeof title === "string" ? `Dismiss: ${title}` : "Dismiss",
10103
10168
  onClick: onDismiss,
10104
10169
  className: "-mr-1 -mt-1 shrink-0",
10105
- children: /* @__PURE__ */ jsx104(XIcon8, { "aria-hidden": true, size: 16 })
10170
+ children: /* @__PURE__ */ jsx105(XIcon8, { "aria-hidden": true, size: 16 })
10106
10171
  }
10107
10172
  )
10108
10173
  ]
@@ -10118,11 +10183,11 @@ import {
10118
10183
  useEffect as useEffect16,
10119
10184
  useMemo as useMemo15,
10120
10185
  useRef as useRef18,
10121
- useState as useState27
10186
+ useState as useState28
10122
10187
  } from "react";
10123
10188
  import clsx83 from "clsx";
10124
10189
  import { CircleCheckBigIcon as CircleCheckBigIcon4, InfoIcon as InfoIcon4, TriangleAlertIcon as TriangleAlertIcon4, XIcon as XIcon9 } from "lucide-react";
10125
- import { jsx as jsx105, jsxs as jsxs75 } from "react/jsx-runtime";
10190
+ import { jsx as jsx106, jsxs as jsxs76 } from "react/jsx-runtime";
10126
10191
  var ToastContext = createContext16(null);
10127
10192
  function useToast() {
10128
10193
  const context = useContext16(ToastContext);
@@ -10130,11 +10195,11 @@ function useToast() {
10130
10195
  return context;
10131
10196
  }
10132
10197
  var TONE_ICON3 = {
10133
- info: /* @__PURE__ */ jsx105(InfoIcon4, { "aria-hidden": true, className: "size-4" }),
10134
- positive: /* @__PURE__ */ jsx105(CircleCheckBigIcon4, { "aria-hidden": true, className: "size-4" }),
10135
- warning: /* @__PURE__ */ jsx105(TriangleAlertIcon4, { "aria-hidden": true, className: "size-4" }),
10136
- danger: /* @__PURE__ */ jsx105(TriangleAlertIcon4, { "aria-hidden": true, className: "size-4" }),
10137
- neutral: /* @__PURE__ */ jsx105(InfoIcon4, { "aria-hidden": true, className: "size-4" })
10198
+ info: /* @__PURE__ */ jsx106(InfoIcon4, { "aria-hidden": true, className: "size-4" }),
10199
+ positive: /* @__PURE__ */ jsx106(CircleCheckBigIcon4, { "aria-hidden": true, className: "size-4" }),
10200
+ warning: /* @__PURE__ */ jsx106(TriangleAlertIcon4, { "aria-hidden": true, className: "size-4" }),
10201
+ danger: /* @__PURE__ */ jsx106(TriangleAlertIcon4, { "aria-hidden": true, className: "size-4" }),
10202
+ neutral: /* @__PURE__ */ jsx106(InfoIcon4, { "aria-hidden": true, className: "size-4" })
10138
10203
  };
10139
10204
  var TONE_ICON_COLOR2 = {
10140
10205
  info: "text-icon-brand",
@@ -10143,7 +10208,7 @@ var TONE_ICON_COLOR2 = {
10143
10208
  danger: "text-icon-danger",
10144
10209
  neutral: "text-icon-default-secondary"
10145
10210
  };
10146
- var POSITION = {
10211
+ var POSITION2 = {
10147
10212
  "top-left": "top-[var(--toaster-mobile-offset)] md:top-[var(--toaster-offset)] left-4 items-start",
10148
10213
  "top-center": "top-[var(--toaster-mobile-offset)] md:top-[var(--toaster-offset)] left-1/2 -translate-x-1/2 items-center",
10149
10214
  "top-right": "top-[var(--toaster-mobile-offset)] md:top-[var(--toaster-offset)] right-4 items-end",
@@ -10162,7 +10227,7 @@ function Toaster({
10162
10227
  offset = 16,
10163
10228
  mobileOffset
10164
10229
  }) {
10165
- const [toasts, setToasts] = useState27([]);
10230
+ const [toasts, setToasts] = useState28([]);
10166
10231
  const timers = useRef18(/* @__PURE__ */ new Map());
10167
10232
  const counter = useRef18(0);
10168
10233
  const dismiss = useCallback10((id) => {
@@ -10202,9 +10267,9 @@ function Toaster({
10202
10267
  };
10203
10268
  }, []);
10204
10269
  const context = useMemo15(() => ({ toast, dismiss, dismissAll }), [toast, dismiss, dismissAll]);
10205
- return /* @__PURE__ */ jsxs75(ToastContext.Provider, { value: context, children: [
10270
+ return /* @__PURE__ */ jsxs76(ToastContext.Provider, { value: context, children: [
10206
10271
  children,
10207
- /* @__PURE__ */ jsx105(Portal, { children: /* @__PURE__ */ jsx105(
10272
+ /* @__PURE__ */ jsx106(Portal, { children: /* @__PURE__ */ jsx106(
10208
10273
  "div",
10209
10274
  {
10210
10275
  "aria-live": "polite",
@@ -10212,20 +10277,20 @@ function Toaster({
10212
10277
  ...{ [TOASTER_ATTRIBUTE]: "" },
10213
10278
  className: clsx83(
10214
10279
  "pointer-events-none fixed z-toast flex w-[calc(100%-2rem)] max-w-[380px] flex-col gap-2",
10215
- POSITION[position]
10280
+ POSITION2[position]
10216
10281
  ),
10217
10282
  style: {
10218
10283
  "--toaster-offset": toLength(offset),
10219
10284
  "--toaster-mobile-offset": toLength(mobileOffset ?? offset)
10220
10285
  },
10221
- children: toasts.map((entry) => /* @__PURE__ */ jsx105(ToastItem, { toast: entry, onDismiss: () => dismiss(entry.id) }, entry.id))
10286
+ children: toasts.map((entry) => /* @__PURE__ */ jsx106(ToastItem, { toast: entry, onDismiss: () => dismiss(entry.id) }, entry.id))
10222
10287
  }
10223
10288
  ) })
10224
10289
  ] });
10225
10290
  }
10226
10291
  function ToastItem({ toast, onDismiss }) {
10227
10292
  const tone = toast.tone ?? "info";
10228
- return /* @__PURE__ */ jsxs75(
10293
+ return /* @__PURE__ */ jsxs76(
10229
10294
  "div",
10230
10295
  {
10231
10296
  role: tone === "danger" ? "alert" : "status",
@@ -10234,13 +10299,13 @@ function ToastItem({ toast, onDismiss }) {
10234
10299
  "bg-default p-4 shadow-400"
10235
10300
  ),
10236
10301
  children: [
10237
- /* @__PURE__ */ jsx105("span", { "aria-hidden": true, className: clsx83("mt-px shrink-0", TONE_ICON_COLOR2[tone]), children: TONE_ICON3[tone] }),
10238
- /* @__PURE__ */ jsxs75("div", { className: "min-w-0 flex-1", children: [
10239
- /* @__PURE__ */ jsx105("p", { className: "text-body-sm font-semibold text-default", children: toast.title }),
10240
- toast.description && /* @__PURE__ */ jsx105("p", { className: "mt-0.5 text-body-xs text-default-secondary", children: toast.description }),
10241
- toast.action && /* @__PURE__ */ jsx105("div", { className: "mt-2 flex items-center gap-2", children: toast.action })
10302
+ /* @__PURE__ */ jsx106("span", { "aria-hidden": true, className: clsx83("mt-px shrink-0", TONE_ICON_COLOR2[tone]), children: TONE_ICON3[tone] }),
10303
+ /* @__PURE__ */ jsxs76("div", { className: "min-w-0 flex-1", children: [
10304
+ /* @__PURE__ */ jsx106("p", { className: "text-body-sm font-semibold text-default", children: toast.title }),
10305
+ toast.description && /* @__PURE__ */ jsx106("p", { className: "mt-0.5 text-body-xs text-default-secondary", children: toast.description }),
10306
+ toast.action && /* @__PURE__ */ jsx106("div", { className: "mt-2 flex items-center gap-2", children: toast.action })
10242
10307
  ] }),
10243
- /* @__PURE__ */ jsx105(
10308
+ /* @__PURE__ */ jsx106(
10244
10309
  IconButton,
10245
10310
  {
10246
10311
  variant: "subtle",
@@ -10248,7 +10313,7 @@ function ToastItem({ toast, onDismiss }) {
10248
10313
  "aria-label": typeof toast.title === "string" ? `Dismiss: ${toast.title}` : "Dismiss",
10249
10314
  onClick: onDismiss,
10250
10315
  className: "-mr-1 -mt-1 shrink-0",
10251
- children: /* @__PURE__ */ jsx105(XIcon9, { "aria-hidden": true, size: 14 })
10316
+ children: /* @__PURE__ */ jsx106(XIcon9, { "aria-hidden": true, size: 14 })
10252
10317
  }
10253
10318
  )
10254
10319
  ]
@@ -10257,25 +10322,25 @@ function ToastItem({ toast, onDismiss }) {
10257
10322
  }
10258
10323
 
10259
10324
  // src/components/forms/password-input.tsx
10260
- import { forwardRef as forwardRef34, useState as useState28 } from "react";
10325
+ import { forwardRef as forwardRef34, useState as useState29 } from "react";
10261
10326
  import { EyeIcon as EyeIcon2, EyeOffIcon as EyeOffIcon2 } from "lucide-react";
10262
- import { jsx as jsx106 } from "react/jsx-runtime";
10327
+ import { jsx as jsx107 } from "react/jsx-runtime";
10263
10328
  var PasswordInput = forwardRef34(function PasswordInput2(props, ref) {
10264
- const [visible, setVisible] = useState28(false);
10265
- return /* @__PURE__ */ jsx106(
10329
+ const [visible, setVisible] = useState29(false);
10330
+ return /* @__PURE__ */ jsx107(
10266
10331
  Input,
10267
10332
  {
10268
10333
  ref,
10269
10334
  ...props,
10270
10335
  type: visible ? "text" : "password",
10271
- trailingAction: /* @__PURE__ */ jsx106(
10336
+ trailingAction: /* @__PURE__ */ jsx107(
10272
10337
  "button",
10273
10338
  {
10274
10339
  type: "button",
10275
10340
  "aria-label": visible ? "Hide password" : "Show password",
10276
10341
  onClick: () => setVisible((v) => !v),
10277
10342
  className: "flex items-center justify-center rounded transition-colors hover:text-default focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand",
10278
- children: visible ? /* @__PURE__ */ jsx106(EyeOffIcon2, { "aria-hidden": true, className: "size-4" }) : /* @__PURE__ */ jsx106(EyeIcon2, { "aria-hidden": true, className: "size-4" })
10343
+ children: visible ? /* @__PURE__ */ jsx107(EyeOffIcon2, { "aria-hidden": true, className: "size-4" }) : /* @__PURE__ */ jsx107(EyeIcon2, { "aria-hidden": true, className: "size-4" })
10279
10344
  }
10280
10345
  )
10281
10346
  }
@@ -10285,12 +10350,12 @@ var PasswordInput = forwardRef34(function PasswordInput2(props, ref) {
10285
10350
  // src/components/ai/ai-chat-bar.tsx
10286
10351
  import clsx84 from "clsx";
10287
10352
  import { ArrowRightIcon as ArrowRightIcon2, SearchIcon as SearchIcon2 } from "lucide-react";
10288
- import { jsx as jsx107, jsxs as jsxs76 } from "react/jsx-runtime";
10353
+ import { jsx as jsx108, jsxs as jsxs77 } from "react/jsx-runtime";
10289
10354
  function AIChatBar({
10290
10355
  placeholder = "Ask Intelligence about any entity, supplier, or risk\u2026",
10291
10356
  className
10292
10357
  }) {
10293
- return /* @__PURE__ */ jsxs76(
10358
+ return /* @__PURE__ */ jsxs77(
10294
10359
  "div",
10295
10360
  {
10296
10361
  className: clsx84(
@@ -10298,16 +10363,16 @@ function AIChatBar({
10298
10363
  className
10299
10364
  ),
10300
10365
  children: [
10301
- /* @__PURE__ */ jsx107("span", { "aria-hidden": true, className: "shrink-0 text-icon-default-secondary", children: /* @__PURE__ */ jsx107(SearchIcon2, { className: "size-4" }) }),
10302
- /* @__PURE__ */ jsx107("p", { className: "flex-1 text-body-sm text-default-tertiary truncate", children: placeholder }),
10303
- /* @__PURE__ */ jsxs76(
10366
+ /* @__PURE__ */ jsx108("span", { "aria-hidden": true, className: "shrink-0 text-icon-default-secondary", children: /* @__PURE__ */ jsx108(SearchIcon2, { className: "size-4" }) }),
10367
+ /* @__PURE__ */ jsx108("p", { className: "flex-1 text-body-sm text-default-tertiary truncate", children: placeholder }),
10368
+ /* @__PURE__ */ jsxs77(
10304
10369
  "button",
10305
10370
  {
10306
10371
  type: "button",
10307
10372
  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",
10308
10373
  children: [
10309
10374
  "Ask",
10310
- /* @__PURE__ */ jsx107(ArrowRightIcon2, { "aria-hidden": true, className: "size-4" })
10375
+ /* @__PURE__ */ jsx108(ArrowRightIcon2, { "aria-hidden": true, className: "size-4" })
10311
10376
  ]
10312
10377
  }
10313
10378
  )
@@ -10319,9 +10384,9 @@ function AIChatBar({
10319
10384
  // src/components/ai/ai-suggestion-chip.tsx
10320
10385
  import clsx85 from "clsx";
10321
10386
  import { ArrowRightIcon as ArrowRightIcon3, CpuIcon } from "lucide-react";
10322
- import { jsx as jsx108, jsxs as jsxs77 } from "react/jsx-runtime";
10387
+ import { jsx as jsx109, jsxs as jsxs78 } from "react/jsx-runtime";
10323
10388
  function AISuggestionChip({ prompt, onClick, className }) {
10324
- return /* @__PURE__ */ jsxs77(
10389
+ return /* @__PURE__ */ jsxs78(
10325
10390
  "button",
10326
10391
  {
10327
10392
  type: "button",
@@ -10331,9 +10396,9 @@ function AISuggestionChip({ prompt, onClick, className }) {
10331
10396
  className
10332
10397
  ),
10333
10398
  children: [
10334
- /* @__PURE__ */ jsx108("span", { "aria-hidden": true, className: "shrink-0 text-icon-brand", children: /* @__PURE__ */ jsx108(CpuIcon, { className: "size-4" }) }),
10335
- /* @__PURE__ */ jsx108("span", { className: "flex-1 text-body-sm text-default truncate", children: prompt }),
10336
- /* @__PURE__ */ jsx108("span", { "aria-hidden": true, className: "shrink-0 text-icon-default-secondary", children: /* @__PURE__ */ jsx108(ArrowRightIcon3, { className: "size-3.5", strokeWidth: 2.5 }) })
10399
+ /* @__PURE__ */ jsx109("span", { "aria-hidden": true, className: "shrink-0 text-icon-brand", children: /* @__PURE__ */ jsx109(CpuIcon, { className: "size-4" }) }),
10400
+ /* @__PURE__ */ jsx109("span", { className: "flex-1 text-body-sm text-default truncate", children: prompt }),
10401
+ /* @__PURE__ */ jsx109("span", { "aria-hidden": true, className: "shrink-0 text-icon-default-secondary", children: /* @__PURE__ */ jsx109(ArrowRightIcon3, { className: "size-3.5", strokeWidth: 2.5 }) })
10337
10402
  ]
10338
10403
  }
10339
10404
  );
@@ -10341,18 +10406,18 @@ function AISuggestionChip({ prompt, onClick, className }) {
10341
10406
 
10342
10407
  // src/components/ai/quick-actions-bar.tsx
10343
10408
  import clsx86 from "clsx";
10344
- import { jsx as jsx109 } from "react/jsx-runtime";
10409
+ import { jsx as jsx110 } from "react/jsx-runtime";
10345
10410
  function QuickActionsBar({ actions, active, onSelect, className }) {
10346
- return /* @__PURE__ */ jsx109("div", { className: clsx86("flex flex-wrap items-center gap-3", className), children: actions.map((action) => {
10411
+ return /* @__PURE__ */ jsx110("div", { className: clsx86("flex flex-wrap items-center gap-3", className), children: actions.map((action) => {
10347
10412
  const isActive = active === action.value;
10348
- return /* @__PURE__ */ jsx109(
10413
+ return /* @__PURE__ */ jsx110(
10349
10414
  "button",
10350
10415
  {
10351
10416
  type: "button",
10352
10417
  "aria-pressed": isActive,
10353
10418
  onClick: () => onSelect?.(action.value),
10354
10419
  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",
10355
- children: /* @__PURE__ */ jsx109(TagPill, { label: action.label, tone: isActive ? "brand" : "default" })
10420
+ children: /* @__PURE__ */ jsx110(TagPill, { label: action.label, tone: isActive ? "brand" : "default" })
10356
10421
  },
10357
10422
  action.value
10358
10423
  );
@@ -10362,23 +10427,23 @@ function QuickActionsBar({ actions, active, onSelect, className }) {
10362
10427
  // src/components/ai/chat.tsx
10363
10428
  import clsx87 from "clsx";
10364
10429
  import { CpuIcon as CpuIcon2 } from "lucide-react";
10365
- import { jsx as jsx110, jsxs as jsxs78 } from "react/jsx-runtime";
10430
+ import { jsx as jsx111, jsxs as jsxs79 } from "react/jsx-runtime";
10366
10431
  function AiAvatar({ className, icon }) {
10367
- return /* @__PURE__ */ jsx110(
10432
+ return /* @__PURE__ */ jsx111(
10368
10433
  "span",
10369
10434
  {
10370
10435
  "aria-hidden": true,
10371
10436
  className: cn("flex size-8 shrink-0 items-center justify-center rounded-full bg-brand text-icon-brand-on-brand", className),
10372
- children: icon ?? /* @__PURE__ */ jsx110(CpuIcon2, { className: "size-3.5" })
10437
+ children: icon ?? /* @__PURE__ */ jsx111(CpuIcon2, { className: "size-3.5" })
10373
10438
  }
10374
10439
  );
10375
10440
  }
10376
10441
  function TypingIndicator({ label = "Assistant is typing", className }) {
10377
- return /* @__PURE__ */ jsxs78("div", { role: "status", "aria-live": "polite", className: cn("flex items-center gap-3", className), children: [
10378
- /* @__PURE__ */ jsx110(AiAvatar, {}),
10379
- /* @__PURE__ */ jsxs78("div", { className: "flex items-center gap-2 rounded-2xl rounded-tl-sm border border-default bg-default-secondary px-5 py-3", children: [
10380
- /* @__PURE__ */ jsx110("span", { className: "text-body-xs text-default-secondary", children: label }),
10381
- /* @__PURE__ */ jsx110("span", { "aria-hidden": true, className: "flex gap-1", children: [0, 1, 2].map((index) => /* @__PURE__ */ jsx110(
10442
+ return /* @__PURE__ */ jsxs79("div", { role: "status", "aria-live": "polite", className: cn("flex items-center gap-3", className), children: [
10443
+ /* @__PURE__ */ jsx111(AiAvatar, {}),
10444
+ /* @__PURE__ */ jsxs79("div", { className: "flex items-center gap-2 rounded-2xl rounded-tl-sm border border-default bg-default-secondary px-5 py-3", children: [
10445
+ /* @__PURE__ */ jsx111("span", { className: "text-body-xs text-default-secondary", children: label }),
10446
+ /* @__PURE__ */ jsx111("span", { "aria-hidden": true, className: "flex gap-1", children: [0, 1, 2].map((index) => /* @__PURE__ */ jsx111(
10382
10447
  "span",
10383
10448
  {
10384
10449
  className: "inline-block size-1.5 rounded-full bg-default-tertiary motion-safe:animate-bounce",
@@ -10391,9 +10456,9 @@ function TypingIndicator({ label = "Assistant is typing", className }) {
10391
10456
  }
10392
10457
  function ChatBubble({ sender, children, failed = false, className }) {
10393
10458
  if (sender === "user") {
10394
- return /* @__PURE__ */ jsx110("div", { "data-sender": "user", className: cn("flex justify-end", className), children: /* @__PURE__ */ jsx110("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 }) });
10459
+ return /* @__PURE__ */ jsx111("div", { "data-sender": "user", className: cn("flex justify-end", className), children: /* @__PURE__ */ jsx111("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 }) });
10395
10460
  }
10396
- return /* @__PURE__ */ jsx110(
10461
+ return /* @__PURE__ */ jsx111(
10397
10462
  "div",
10398
10463
  {
10399
10464
  "data-sender": "assistant",
@@ -10412,17 +10477,17 @@ function ChatBubble({ sender, children, failed = false, className }) {
10412
10477
  }
10413
10478
 
10414
10479
  // src/components/decorative/aurora-backdrop.tsx
10415
- import { jsx as jsx111, jsxs as jsxs79 } from "react/jsx-runtime";
10480
+ import { jsx as jsx112, jsxs as jsxs80 } from "react/jsx-runtime";
10416
10481
  function blob(primitive, alpha) {
10417
10482
  return `radial-gradient(ellipse, color-mix(in srgb, var(${primitive}) ${alpha}%, transparent) 0%, transparent 70%)`;
10418
10483
  }
10419
10484
  function AuroraBackdrop() {
10420
- return /* @__PURE__ */ jsxs79("div", { className: "pointer-events-none absolute inset-0", "aria-hidden": true, children: [
10421
- /* @__PURE__ */ jsx111("div", { className: "absolute -left-24 -top-28", style: { width: 380, height: 380, background: blob("--prim-red-400", 45) } }),
10422
- /* @__PURE__ */ jsx111("div", { className: "absolute -top-24 right-[-4%]", style: { width: 320, height: 320, background: blob("--prim-red-300", 40) } }),
10423
- /* @__PURE__ */ jsx111("div", { className: "absolute bottom-[-10%] right-[14%]", style: { width: 420, height: 420, background: blob("--prim-violet-400", 30) } }),
10424
- /* @__PURE__ */ jsx111("div", { className: "absolute bottom-[-6%] left-[4%]", style: { width: 280, height: 280, background: blob("--prim-blue-400", 25) } }),
10425
- /* @__PURE__ */ jsx111("div", { className: "absolute left-[20%] top-[30%]", style: { width: 240, height: 240, background: blob("--prim-blue-300", 18) } })
10485
+ return /* @__PURE__ */ jsxs80("div", { className: "pointer-events-none absolute inset-0", "aria-hidden": true, children: [
10486
+ /* @__PURE__ */ jsx112("div", { className: "absolute -left-24 -top-28", style: { width: 380, height: 380, background: blob("--prim-red-400", 45) } }),
10487
+ /* @__PURE__ */ jsx112("div", { className: "absolute -top-24 right-[-4%]", style: { width: 320, height: 320, background: blob("--prim-red-300", 40) } }),
10488
+ /* @__PURE__ */ jsx112("div", { className: "absolute bottom-[-10%] right-[14%]", style: { width: 420, height: 420, background: blob("--prim-violet-400", 30) } }),
10489
+ /* @__PURE__ */ jsx112("div", { className: "absolute bottom-[-6%] left-[4%]", style: { width: 280, height: 280, background: blob("--prim-blue-400", 25) } }),
10490
+ /* @__PURE__ */ jsx112("div", { className: "absolute left-[20%] top-[30%]", style: { width: 240, height: 240, background: blob("--prim-blue-300", 18) } })
10426
10491
  ] });
10427
10492
  }
10428
10493
  export {
@@ -10651,6 +10716,7 @@ export {
10651
10716
  SegmentedControl,
10652
10717
  Select,
10653
10718
  SelectControl,
10719
+ SelectionBar,
10654
10720
  Separator,
10655
10721
  Sidebar,
10656
10722
  SidebarProvider,