@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.cjs CHANGED
@@ -260,6 +260,7 @@ __export(src_exports, {
260
260
  SegmentedControl: () => SegmentedControl,
261
261
  Select: () => Select,
262
262
  SelectControl: () => SelectControl,
263
+ SelectionBar: () => SelectionBar,
263
264
  Separator: () => Separator,
264
265
  Sidebar: () => Sidebar,
265
266
  SidebarProvider: () => SidebarProvider,
@@ -6369,13 +6370,21 @@ var Slider = (0, import_react40.forwardRef)(function Slider2({
6369
6370
  disabled = false,
6370
6371
  id,
6371
6372
  className,
6373
+ style,
6372
6374
  ...props
6373
6375
  }, ref) {
6374
6376
  const generatedId = (0, import_react40.useId)();
6375
6377
  const controlId = id ?? generatedId;
6376
6378
  const descriptionId = `${controlId}-description`;
6377
- const current = value ?? defaultValue ?? min;
6379
+ const [uncontrolled, setUncontrolled] = (0, import_react40.useState)(defaultValue ?? min);
6380
+ const current = value ?? uncontrolled;
6378
6381
  const display = formatValue ? formatValue(current) : String(current);
6382
+ const ratio = max > min ? Math.min(1, Math.max(0, (current - min) / (max - min))) : 0;
6383
+ const trackVars = {
6384
+ "--slider-fill": `calc(0.5rem + (100% - 1rem) * ${ratio})`,
6385
+ "--slider-fill-color": disabled ? "var(--color-background-disabled-default)" : "var(--color-background-brand-default)",
6386
+ "--slider-track-color": "var(--color-background-default-tertiary)"
6387
+ };
6379
6388
  return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: (0, import_clsx45.default)("flex w-full flex-col gap-1.5", className), children: [
6380
6389
  (label || showValue) && /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex items-baseline justify-between gap-2", children: [
6381
6390
  label && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
@@ -6410,23 +6419,32 @@ var Slider = (0, import_react40.forwardRef)(function Slider2({
6410
6419
  disabled,
6411
6420
  "aria-describedby": description ? descriptionId : void 0,
6412
6421
  "aria-valuetext": formatValue ? display : void 0,
6413
- onChange: (event) => onValueChange?.(Number(event.target.value)),
6422
+ onChange: (event) => {
6423
+ const next = Number(event.target.value);
6424
+ if (value === void 0) setUncontrolled(next);
6425
+ onValueChange?.(next);
6426
+ },
6427
+ style: { ...trackVars, ...style },
6414
6428
  className: (0, import_clsx45.default)(
6415
6429
  "h-5 w-full cursor-pointer appearance-none bg-transparent",
6416
6430
  "focus-visible:outline-none",
6417
- disabled && "cursor-not-allowed opacity-50",
6418
- // Track
6419
- "[&::-webkit-slider-runnable-track]:h-1.5 [&::-webkit-slider-runnable-track]:rounded-full [&::-webkit-slider-runnable-track]:bg-default-tertiary",
6420
- "[&::-moz-range-track]:h-1.5 [&::-moz-range-track]:rounded-full [&::-moz-range-track]:bg-default-tertiary",
6421
- "[&::-moz-range-progress]:h-1.5 [&::-moz-range-progress]:rounded-full [&::-moz-range-progress]:bg-brand",
6422
- // Thumb. The negative margin centres it on the track, since the input box is
6423
- // taller than the track to keep a comfortable pointer target.
6424
- "[&::-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",
6425
- "[&::-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",
6431
+ disabled && "cursor-not-allowed",
6432
+ // Track: filled (brand) up to the thumb, unfilled (grey) after it, as in Figma.
6433
+ "[&::-webkit-slider-runnable-track]:h-1 [&::-webkit-slider-runnable-track]:rounded-full",
6434
+ "[&::-webkit-slider-runnable-track]:[background:linear-gradient(to_right,var(--slider-fill-color)_var(--slider-fill),var(--slider-track-color)_var(--slider-fill))]",
6435
+ "rtl:[&::-webkit-slider-runnable-track]:[background:linear-gradient(to_left,var(--slider-fill-color)_var(--slider-fill),var(--slider-track-color)_var(--slider-fill))]",
6436
+ "[&::-moz-range-track]:h-1 [&::-moz-range-track]:rounded-full [&::-moz-range-track]:[background:var(--slider-track-color)]",
6437
+ "[&::-moz-range-progress]:h-1 [&::-moz-range-progress]:rounded-full [&::-moz-range-progress]:[background:var(--slider-fill-color)]",
6438
+ // Thumb: a solid knob in the fill colour (grey when disabled). The negative margin
6439
+ // centres it on the 4px track; the input box is taller to keep a comfortable target.
6440
+ "[&::-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",
6441
+ "[&::-moz-range-thumb]:size-4 [&::-moz-range-thumb]:rounded-full [&::-moz-range-thumb]:border-0 [&::-moz-range-thumb]:[background:var(--slider-fill-color)]",
6426
6442
  // Focus ring on the thumb, not the whole 100%-wide input — a ring around the
6427
- // full track reads as the row being focused rather than the handle.
6428
- "focus-visible:[&::-webkit-slider-thumb]:ring-2 focus-visible:[&::-webkit-slider-thumb]:ring-brand focus-visible:[&::-webkit-slider-thumb]:ring-offset-1",
6429
- "focus-visible:[&::-moz-range-thumb]:ring-2 focus-visible:[&::-moz-range-thumb]:ring-brand"
6443
+ // full track reads as the row being focused rather than the handle. Written as
6444
+ // `:focus-visible::thumb`: the `focus-visible:` prefix would emit
6445
+ // `::thumb:focus-visible`, a pseudo-class after a pseudo-element, which browsers drop.
6446
+ "[&:focus-visible::-webkit-slider-thumb]:ring-2 [&:focus-visible::-webkit-slider-thumb]:ring-brand [&:focus-visible::-webkit-slider-thumb]:ring-offset-1",
6447
+ "[&:focus-visible::-moz-range-thumb]:ring-2 [&:focus-visible::-moz-range-thumb]:ring-brand"
6430
6448
  ),
6431
6449
  ...props
6432
6450
  }
@@ -6539,7 +6557,10 @@ var ModalShell = (0, import_react42.forwardRef)(
6539
6557
  className: cn(
6540
6558
  // The overlay wraps the content (a Radix-supported layout), so it also does the
6541
6559
  // positioning: bottom sheet below `sm`, a card centred or top-anchored above it.
6542
- "fixed inset-0 z-modal flex items-end justify-center",
6560
+ // `max-sm:items-end`, not a base `items-end` that `sm:` overrides: an app that layers this
6561
+ // stylesheet under its own utilities (Cleo) and uses `items-end` itself would otherwise win
6562
+ // at every width, and every dialog sat at the bottom on desktop. Fixed in 0.10.3.
6563
+ "fixed inset-0 z-modal flex justify-center max-sm:items-end",
6543
6564
  OVERLAY_ALIGN[align],
6544
6565
  OVERLAY_SCRIM
6545
6566
  ),
@@ -11698,9 +11719,54 @@ function Listbox({
11698
11719
  );
11699
11720
  }
11700
11721
 
11722
+ // src/components/lists/selection-bar.tsx
11723
+ var import_jsx_runtime105 = require("react/jsx-runtime");
11724
+ var POSITION = {
11725
+ sticky: "sticky bottom-6 z-sticky",
11726
+ static: ""
11727
+ };
11728
+ function SelectionBar({
11729
+ label,
11730
+ description,
11731
+ children,
11732
+ onClear,
11733
+ clearLabel = "Clear",
11734
+ "aria-label": ariaLabel = "Selection actions",
11735
+ position = "sticky",
11736
+ className
11737
+ }) {
11738
+ return /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(
11739
+ "div",
11740
+ {
11741
+ role: "region",
11742
+ "aria-label": ariaLabel,
11743
+ "data-slot": "selection-bar",
11744
+ "data-position": position,
11745
+ className: cn(
11746
+ "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",
11747
+ POSITION[position],
11748
+ className
11749
+ ),
11750
+ children: [
11751
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("div", { className: "flex min-w-0 flex-1 basis-60 flex-col gap-0.5", children: [
11752
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("span", { className: "text-body font-medium", children: label }),
11753
+ description !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("span", { className: "truncate text-body-xs text-default-secondary", children: description })
11754
+ ] }),
11755
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("div", { className: "flex flex-wrap items-center gap-2", children: [
11756
+ onClear && /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(import_jsx_runtime105.Fragment, { children: [
11757
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(Button, { variant: "subtle", onClick: onClear, children: clearLabel }),
11758
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("span", { "aria-hidden": true, className: "h-6 border-l border-default" })
11759
+ ] }),
11760
+ children
11761
+ ] })
11762
+ ]
11763
+ }
11764
+ );
11765
+ }
11766
+
11701
11767
  // src/components/lists/list-row.tsx
11702
11768
  var import_clsx83 = __toESM(require("clsx"), 1);
11703
- var import_jsx_runtime105 = require("react/jsx-runtime");
11769
+ var import_jsx_runtime106 = require("react/jsx-runtime");
11704
11770
  var DENSITY2 = {
11705
11771
  default: {
11706
11772
  pad: "py-4",
@@ -11761,24 +11827,24 @@ function ListRow({
11761
11827
  className
11762
11828
  )
11763
11829
  };
11764
- const body = /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(import_jsx_runtime105.Fragment, { children: [
11765
- /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("div", { className: (0, import_clsx83.default)("flex min-w-0 flex-1 flex-col", d.gap), children: [
11766
- hasTitleLine && /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("div", { className: "flex items-center justify-between gap-2", children: [
11767
- /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("div", { className: "flex min-w-0 items-center gap-2", children: [
11830
+ const body = /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(import_jsx_runtime106.Fragment, { children: [
11831
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { className: (0, import_clsx83.default)("flex min-w-0 flex-1 flex-col", d.gap), children: [
11832
+ hasTitleLine && /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { className: "flex items-center justify-between gap-2", children: [
11833
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { className: "flex min-w-0 items-center gap-2", children: [
11768
11834
  leading,
11769
- title != null && /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("span", { className: (0, import_clsx83.default)("truncate", d.title), children: title }),
11770
- titleMeta && /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("span", { className: "shrink-0", children: titleMeta })
11835
+ title != null && /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("span", { className: (0, import_clsx83.default)("truncate", d.title), children: title }),
11836
+ titleMeta && /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("span", { className: "shrink-0", children: titleMeta })
11771
11837
  ] }),
11772
- meta && /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("span", { className: "shrink-0", children: meta })
11838
+ meta && /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("span", { className: "shrink-0", children: meta })
11773
11839
  ] }),
11774
- description && /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("p", { className: d.description, children: description }),
11840
+ description && /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("p", { className: d.description, children: description }),
11775
11841
  footer && // These two wrappers are propagation barriers, not controls — they add no
11776
11842
  // behaviour of their own and must not be focusable or take a role.
11777
11843
  // eslint-disable-next-line jsx-a11y/no-static-element-interactions
11778
- /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("div", { onClick: stopIfInteractive, onKeyDown: stopIfInteractive, children: footer })
11844
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("div", { onClick: stopIfInteractive, onKeyDown: stopIfInteractive, children: footer })
11779
11845
  ] }),
11780
11846
  trailing && // eslint-disable-next-line jsx-a11y/no-static-element-interactions
11781
- /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
11847
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
11782
11848
  "div",
11783
11849
  {
11784
11850
  className: "ml-3 flex shrink-0 items-center self-center",
@@ -11789,7 +11855,7 @@ function ListRow({
11789
11855
  )
11790
11856
  ] });
11791
11857
  if (asChild) {
11792
- return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
11858
+ return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
11793
11859
  Slot,
11794
11860
  {
11795
11861
  ...rootProps,
@@ -11802,7 +11868,7 @@ function ListRow({
11802
11868
  }
11803
11869
  );
11804
11870
  }
11805
- return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
11871
+ return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
11806
11872
  Tag,
11807
11873
  {
11808
11874
  ...rootProps,
@@ -11833,9 +11899,9 @@ function refusePress(event) {
11833
11899
  // src/components/lists/file-row.tsx
11834
11900
  var import_clsx84 = __toESM(require("clsx"), 1);
11835
11901
  var import_lucide_react31 = require("lucide-react");
11836
- var import_jsx_runtime106 = require("react/jsx-runtime");
11902
+ var import_jsx_runtime107 = require("react/jsx-runtime");
11837
11903
  function FileTypeBadge({ type }) {
11838
- return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("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 });
11904
+ return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("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 });
11839
11905
  }
11840
11906
  function FileRow({
11841
11907
  name,
@@ -11849,8 +11915,8 @@ function FileRow({
11849
11915
  actions,
11850
11916
  className
11851
11917
  }) {
11852
- const lead = leading ?? (fileType ? /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(FileTypeBadge, { type: fileType }) : null);
11853
- return /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(
11918
+ const lead = leading ?? (fileType ? /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(FileTypeBadge, { type: fileType }) : null);
11919
+ return /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(
11854
11920
  "div",
11855
11921
  {
11856
11922
  className: (0, import_clsx84.default)(
@@ -11859,14 +11925,14 @@ function FileRow({
11859
11925
  ),
11860
11926
  children: [
11861
11927
  lead,
11862
- /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
11863
- /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("span", { className: "truncate text-body-sm font-medium text-default", children: name }),
11864
- detail && /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("span", { className: "text-body-xs text-default-secondary", children: detail })
11928
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
11929
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("span", { className: "truncate text-body-sm font-medium text-default", children: name }),
11930
+ detail && /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("span", { className: "text-body-xs text-default-secondary", children: detail })
11865
11931
  ] }),
11866
- (onDownload || onRemove || actions) && /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { className: "flex shrink-0 items-center gap-1", children: [
11867
- onDownload && /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(Tooltip, { title: downloadLabel, children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(IconButton, { variant: "subtle", size: "sm", "aria-label": `${downloadLabel} ${name}`, onClick: onDownload, className: "touch-hit", children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_lucide_react31.DownloadIcon, { "aria-hidden": true }) }) }),
11868
- onRemove && /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(Tooltip, { title: removeLabel, children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(IconButton, { variant: "subtle", size: "sm", "aria-label": `${removeLabel} ${name}`, onClick: onRemove, className: "touch-hit", children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_lucide_react31.Trash2Icon, { "aria-hidden": true }) }) }),
11869
- actions && /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("div", { className: "ml-2 flex items-center gap-2", children: actions })
11932
+ (onDownload || onRemove || actions) && /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)("div", { className: "flex shrink-0 items-center gap-1", children: [
11933
+ onDownload && /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(Tooltip, { title: downloadLabel, children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(IconButton, { variant: "subtle", size: "sm", "aria-label": `${downloadLabel} ${name}`, onClick: onDownload, className: "touch-hit", children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_lucide_react31.DownloadIcon, { "aria-hidden": true }) }) }),
11934
+ onRemove && /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(Tooltip, { title: removeLabel, children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(IconButton, { variant: "subtle", size: "sm", "aria-label": `${removeLabel} ${name}`, onClick: onRemove, className: "touch-hit", children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_lucide_react31.Trash2Icon, { "aria-hidden": true }) }) }),
11935
+ actions && /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("div", { className: "ml-2 flex items-center gap-2", children: actions })
11870
11936
  ] })
11871
11937
  ]
11872
11938
  }
@@ -11875,7 +11941,7 @@ function FileRow({
11875
11941
 
11876
11942
  // src/components/lists/scored-row.tsx
11877
11943
  var import_clsx85 = __toESM(require("clsx"), 1);
11878
- var import_jsx_runtime107 = require("react/jsx-runtime");
11944
+ var import_jsx_runtime108 = require("react/jsx-runtime");
11879
11945
  var GAP5 = {
11880
11946
  sm: "gap-2",
11881
11947
  md: "gap-3",
@@ -11902,8 +11968,8 @@ function ScoredRow({
11902
11968
  align = "center",
11903
11969
  className
11904
11970
  }) {
11905
- return /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)("div", { className: (0, import_clsx85.default)("flex w-full", ALIGN3[align], GAP5[gap], className), children: [
11906
- /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(
11971
+ return /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)("div", { className: (0, import_clsx85.default)("flex w-full", ALIGN3[align], GAP5[gap], className), children: [
11972
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)(
11907
11973
  "div",
11908
11974
  {
11909
11975
  className: (0, import_clsx85.default)(
@@ -11915,14 +11981,14 @@ function ScoredRow({
11915
11981
  style: titleWidth ? { width: titleWidth } : void 0,
11916
11982
  children: [
11917
11983
  leading,
11918
- /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)("div", { className: "min-w-0 flex-1", children: [
11919
- /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("p", { className: "truncate text-body-sm font-medium leading-none text-default", children: title }),
11920
- subtitle && /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("p", { className: "mt-0.5 truncate text-body-xs text-default-secondary", children: subtitle })
11984
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)("div", { className: "min-w-0 flex-1", children: [
11985
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsx)("p", { className: "truncate text-body-sm font-medium leading-none text-default", children: title }),
11986
+ subtitle && /* @__PURE__ */ (0, import_jsx_runtime108.jsx)("p", { className: "mt-0.5 truncate text-body-xs text-default-secondary", children: subtitle })
11921
11987
  ] })
11922
11988
  ]
11923
11989
  }
11924
11990
  ),
11925
- aside && /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
11991
+ aside && /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
11926
11992
  "div",
11927
11993
  {
11928
11994
  className: (0, import_clsx85.default)("min-w-0", asideWidth ? "shrink-0" : "flex-1"),
@@ -11930,7 +11996,7 @@ function ScoredRow({
11930
11996
  children: aside
11931
11997
  }
11932
11998
  ),
11933
- meter && /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
11999
+ meter && /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
11934
12000
  "div",
11935
12001
  {
11936
12002
  className: (0, import_clsx85.default)("min-w-0", meterWidth ? "shrink-0" : "flex-1"),
@@ -11938,7 +12004,7 @@ function ScoredRow({
11938
12004
  children: meter
11939
12005
  }
11940
12006
  ),
11941
- trailing && /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("div", { className: "shrink-0 text-right", style: trailingWidth ? { width: trailingWidth } : void 0, children: trailing })
12007
+ trailing && /* @__PURE__ */ (0, import_jsx_runtime108.jsx)("div", { className: "shrink-0 text-right", style: trailingWidth ? { width: trailingWidth } : void 0, children: trailing })
11942
12008
  ] });
11943
12009
  }
11944
12010
 
@@ -11947,7 +12013,7 @@ var import_clsx86 = __toESM(require("clsx"), 1);
11947
12013
 
11948
12014
  // src/components/feedback/progress-bar.tsx
11949
12015
  var import_react76 = require("react");
11950
- var import_jsx_runtime108 = require("react/jsx-runtime");
12016
+ var import_jsx_runtime109 = require("react/jsx-runtime");
11951
12017
  var SIZE18 = {
11952
12018
  xs: "h-1",
11953
12019
  sm: "h-1.5",
@@ -11977,7 +12043,7 @@ function ProgressBar({
11977
12043
  const rounded = radius ? void 0 : "rounded-full";
11978
12044
  const labelId = (0, import_react76.useId)();
11979
12045
  const filledSegments = segments ? Math.round(clamped / 100 * segments) : 0;
11980
- const track = segments ? /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
12046
+ const track = segments ? /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
11981
12047
  "div",
11982
12048
  {
11983
12049
  role: "progressbar",
@@ -11989,7 +12055,7 @@ function ProgressBar({
11989
12055
  "aria-label": label ? void 0 : ariaLabel,
11990
12056
  "data-tone": tone,
11991
12057
  className: cn("flex w-full gap-1", className),
11992
- children: Array.from({ length: segments }, (_, index) => /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
12058
+ children: Array.from({ length: segments }, (_, index) => /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
11993
12059
  "span",
11994
12060
  {
11995
12061
  "data-filled": index < filledSegments || void 0,
@@ -11999,7 +12065,7 @@ function ProgressBar({
11999
12065
  index
12000
12066
  ))
12001
12067
  }
12002
- ) : /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
12068
+ ) : /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
12003
12069
  "div",
12004
12070
  {
12005
12071
  role: "progressbar",
@@ -12012,7 +12078,7 @@ function ProgressBar({
12012
12078
  "aria-label": label ? void 0 : ariaLabel,
12013
12079
  className: cn("w-full overflow-hidden bg-default-tertiary", SIZE18[size2], rounded, className),
12014
12080
  style: radius ? { borderRadius: radius } : void 0,
12015
- children: /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
12081
+ children: /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
12016
12082
  "div",
12017
12083
  {
12018
12084
  className: cn("h-full transition-all motion-reduce:transition-none", rounded, FILL[tone]),
@@ -12022,10 +12088,10 @@ function ProgressBar({
12022
12088
  }
12023
12089
  );
12024
12090
  if (!label && !showValue) return track;
12025
- return /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)("div", { children: [
12026
- /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)("div", { className: "mb-1.5 flex items-center justify-between gap-2", children: [
12027
- label && /* @__PURE__ */ (0, import_jsx_runtime108.jsx)("span", { id: labelId, className: "text-body-xs text-default-secondary", children: label }),
12028
- showValue && /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)("span", { className: "ml-auto text-body-xs font-medium tabular-nums text-default", children: [
12091
+ return /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)("div", { children: [
12092
+ /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)("div", { className: "mb-1.5 flex items-center justify-between gap-2", children: [
12093
+ label && /* @__PURE__ */ (0, import_jsx_runtime109.jsx)("span", { id: labelId, className: "text-body-xs text-default-secondary", children: label }),
12094
+ showValue && /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)("span", { className: "ml-auto text-body-xs font-medium tabular-nums text-default", children: [
12029
12095
  Math.round(clamped),
12030
12096
  "%"
12031
12097
  ] })
@@ -12035,7 +12101,7 @@ function ProgressBar({
12035
12101
  }
12036
12102
 
12037
12103
  // src/components/lists/numbered-list.tsx
12038
- var import_jsx_runtime109 = require("react/jsx-runtime");
12104
+ var import_jsx_runtime110 = require("react/jsx-runtime");
12039
12105
  var GAP6 = {
12040
12106
  sm: "gap-2",
12041
12107
  md: "gap-3"
@@ -12049,18 +12115,18 @@ function NumberedList({
12049
12115
  gap = "md",
12050
12116
  className
12051
12117
  }) {
12052
- return /* @__PURE__ */ (0, import_jsx_runtime109.jsx)("ol", { className: (0, import_clsx86.default)("flex list-none flex-col p-0", GAP6[gap], className), children: items.map((item, index) => {
12118
+ return /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("ol", { className: (0, import_clsx86.default)("flex list-none flex-col p-0", GAP6[gap], className), children: items.map((item, index) => {
12053
12119
  const tone = !item.tone || item.tone === "auto" ? getScoreTone(item.score, { direction }) : item.tone;
12054
- return /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)("li", { className: "flex w-full shrink-0 flex-col gap-1.5", children: [
12055
- /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)("div", { className: "flex w-full items-center justify-between", children: [
12056
- /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)("div", { className: "flex min-w-0 items-center gap-2.5", children: [
12057
- /* @__PURE__ */ (0, import_jsx_runtime109.jsx)("span", { className: "w-[14px] shrink-0 text-body-xs font-bold text-default-secondary", children: startAt + index }),
12058
- /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)("div", { className: "flex min-w-0 flex-col gap-px", children: [
12059
- /* @__PURE__ */ (0, import_jsx_runtime109.jsx)("span", { className: "truncate text-body-sm font-medium leading-none text-default", children: item.title }),
12060
- item.subtitle && /* @__PURE__ */ (0, import_jsx_runtime109.jsx)("span", { className: "text-body-tiny text-default-tertiary", children: item.subtitle })
12120
+ return /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("li", { className: "flex w-full shrink-0 flex-col gap-1.5", children: [
12121
+ /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("div", { className: "flex w-full items-center justify-between", children: [
12122
+ /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("div", { className: "flex min-w-0 items-center gap-2.5", children: [
12123
+ /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("span", { className: "w-[14px] shrink-0 text-body-xs font-bold text-default-secondary", children: startAt + index }),
12124
+ /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("div", { className: "flex min-w-0 flex-col gap-px", children: [
12125
+ /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("span", { className: "truncate text-body-sm font-medium leading-none text-default", children: item.title }),
12126
+ item.subtitle && /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("span", { className: "text-body-tiny text-default-tertiary", children: item.subtitle })
12061
12127
  ] })
12062
12128
  ] }),
12063
- /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
12129
+ /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
12064
12130
  ScoreValue,
12065
12131
  {
12066
12132
  value: item.score,
@@ -12071,20 +12137,20 @@ function NumberedList({
12071
12137
  }
12072
12138
  )
12073
12139
  ] }),
12074
- /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(ProgressBar, { value: item.score, tone, "aria-label": `${item.title} score` })
12140
+ /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(ProgressBar, { value: item.score, tone, "aria-label": `${item.title} score` })
12075
12141
  ] }, `${item.title}-${index}`);
12076
12142
  }) });
12077
12143
  }
12078
12144
 
12079
12145
  // src/components/lists/icon-text-row.tsx
12080
12146
  var import_clsx87 = __toESM(require("clsx"), 1);
12081
- var import_jsx_runtime110 = require("react/jsx-runtime");
12147
+ var import_jsx_runtime111 = require("react/jsx-runtime");
12082
12148
  function IconTextRow({ icon, title, detail, className }) {
12083
- return /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("div", { className: (0, import_clsx87.default)("flex items-start gap-3", className), children: [
12084
- /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("span", { className: "flex size-9 shrink-0 items-center justify-center rounded-full bg-brand-tertiary text-brand", children: icon }),
12085
- /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("div", { className: "min-w-0", children: [
12086
- /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("p", { className: "text-body-sm font-semibold text-default", children: title }),
12087
- /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("p", { className: "mt-0.5 text-body-xs text-default-secondary", children: detail })
12149
+ return /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)("div", { className: (0, import_clsx87.default)("flex items-start gap-3", className), children: [
12150
+ /* @__PURE__ */ (0, import_jsx_runtime111.jsx)("span", { className: "flex size-9 shrink-0 items-center justify-center rounded-full bg-brand-tertiary text-brand", children: icon }),
12151
+ /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)("div", { className: "min-w-0", children: [
12152
+ /* @__PURE__ */ (0, import_jsx_runtime111.jsx)("p", { className: "text-body-sm font-semibold text-default", children: title }),
12153
+ /* @__PURE__ */ (0, import_jsx_runtime111.jsx)("p", { className: "mt-0.5 text-body-xs text-default-secondary", children: detail })
12088
12154
  ] })
12089
12155
  ] });
12090
12156
  }
@@ -12092,10 +12158,10 @@ function IconTextRow({ icon, title, detail, className }) {
12092
12158
  // src/components/lists/checklist-row.tsx
12093
12159
  var import_clsx88 = __toESM(require("clsx"), 1);
12094
12160
  var import_lucide_react32 = require("lucide-react");
12095
- var import_jsx_runtime111 = require("react/jsx-runtime");
12161
+ var import_jsx_runtime112 = require("react/jsx-runtime");
12096
12162
  function ChecklistRow({ label, state, className }) {
12097
- return /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)("li", { "data-state": state, className: (0, import_clsx88.default)("flex items-center gap-3", className), children: [
12098
- /* @__PURE__ */ (0, import_jsx_runtime111.jsx)("span", { className: "flex size-5 shrink-0 items-center justify-center", children: state === "done" ? /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_lucide_react32.CheckIcon, { className: "size-4 text-positive", strokeWidth: 2.5, "aria-hidden": true }) : /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
12163
+ return /* @__PURE__ */ (0, import_jsx_runtime112.jsxs)("li", { "data-state": state, className: (0, import_clsx88.default)("flex items-center gap-3", className), children: [
12164
+ /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("span", { className: "flex size-5 shrink-0 items-center justify-center", children: state === "done" ? /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_lucide_react32.CheckIcon, { className: "size-4 text-positive", strokeWidth: 2.5, "aria-hidden": true }) : /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
12099
12165
  "span",
12100
12166
  {
12101
12167
  className: (0, import_clsx88.default)(
@@ -12104,7 +12170,7 @@ function ChecklistRow({ label, state, className }) {
12104
12170
  )
12105
12171
  }
12106
12172
  ) }),
12107
- /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
12173
+ /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
12108
12174
  "span",
12109
12175
  {
12110
12176
  className: (0, import_clsx88.default)(
@@ -12119,21 +12185,21 @@ function ChecklistRow({ label, state, className }) {
12119
12185
 
12120
12186
  // src/components/lists/steps-list.tsx
12121
12187
  var import_clsx89 = __toESM(require("clsx"), 1);
12122
- var import_jsx_runtime112 = (
12188
+ var import_jsx_runtime113 = (
12123
12189
  // `text-[12px]` was off the type scale; 12 sits midway between Scale 01 (11) and
12124
12190
  // Scale 02 (13), so it rounds up to 13 like every other snap in this pass.
12125
12191
  require("react/jsx-runtime")
12126
12192
  );
12127
12193
  function StepsList({ steps, className }) {
12128
- return /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("ol", { className: (0, import_clsx89.default)("flex flex-col gap-1.5", className), children: steps.map((step, i) => /* @__PURE__ */ (0, import_jsx_runtime112.jsxs)("li", { className: "flex items-start gap-2 text-body-xs text-default", children: [
12129
- /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("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 }),
12194
+ return /* @__PURE__ */ (0, import_jsx_runtime113.jsx)("ol", { className: (0, import_clsx89.default)("flex flex-col gap-1.5", className), children: steps.map((step, i) => /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)("li", { className: "flex items-start gap-2 text-body-xs text-default", children: [
12195
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsx)("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 }),
12130
12196
  step
12131
12197
  ] }, i)) });
12132
12198
  }
12133
12199
 
12134
12200
  // src/components/lists/detail-item.tsx
12135
12201
  var import_clsx90 = __toESM(require("clsx"), 1);
12136
- var import_jsx_runtime113 = require("react/jsx-runtime");
12202
+ var import_jsx_runtime114 = require("react/jsx-runtime");
12137
12203
  var SPAN = {
12138
12204
  1: "",
12139
12205
  2: "sm:col-span-2",
@@ -12150,18 +12216,18 @@ function DetailItem({
12150
12216
  }) {
12151
12217
  const shown = value === null || value === void 0 || value === "" ? "\u2014" : value;
12152
12218
  if (layout === "inline") {
12153
- return /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)("div", { className: (0, import_clsx90.default)("flex gap-3 text-body-xs", SPAN[span], className), children: [
12154
- /* @__PURE__ */ (0, import_jsx_runtime113.jsx)("span", { className: (0, import_clsx90.default)("shrink-0 text-default-secondary", labelWidth), children: label }),
12155
- /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)("span", { className: "flex min-w-0 flex-1 flex-col gap-0.5 [overflow-wrap:anywhere]", children: [
12156
- /* @__PURE__ */ (0, import_jsx_runtime113.jsx)("span", { className: "text-default", children: shown }),
12157
- detail && /* @__PURE__ */ (0, import_jsx_runtime113.jsx)("span", { className: "text-default-secondary", children: detail })
12219
+ return /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)("div", { className: (0, import_clsx90.default)("flex gap-3 text-body-xs", SPAN[span], className), children: [
12220
+ /* @__PURE__ */ (0, import_jsx_runtime114.jsx)("span", { className: (0, import_clsx90.default)("shrink-0 text-default-secondary", labelWidth), children: label }),
12221
+ /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)("span", { className: "flex min-w-0 flex-1 flex-col gap-0.5 [overflow-wrap:anywhere]", children: [
12222
+ /* @__PURE__ */ (0, import_jsx_runtime114.jsx)("span", { className: "text-default", children: shown }),
12223
+ detail && /* @__PURE__ */ (0, import_jsx_runtime114.jsx)("span", { className: "text-default-secondary", children: detail })
12158
12224
  ] })
12159
12225
  ] });
12160
12226
  }
12161
- return /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)("div", { className: (0, import_clsx90.default)("flex min-w-0 flex-col gap-0.5", SPAN[span], className), children: [
12162
- /* @__PURE__ */ (0, import_jsx_runtime113.jsx)("p", { className: "text-body-tiny font-medium text-default-secondary", children: label }),
12163
- /* @__PURE__ */ (0, import_jsx_runtime113.jsx)("p", { className: "text-body-sm font-medium text-default [overflow-wrap:anywhere]", children: shown }),
12164
- detail && /* @__PURE__ */ (0, import_jsx_runtime113.jsx)("p", { className: "text-body-xs text-default-secondary [overflow-wrap:anywhere]", children: detail })
12227
+ return /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)("div", { className: (0, import_clsx90.default)("flex min-w-0 flex-col gap-0.5", SPAN[span], className), children: [
12228
+ /* @__PURE__ */ (0, import_jsx_runtime114.jsx)("p", { className: "text-body-tiny font-medium text-default-secondary", children: label }),
12229
+ /* @__PURE__ */ (0, import_jsx_runtime114.jsx)("p", { className: "text-body-sm font-medium text-default [overflow-wrap:anywhere]", children: shown }),
12230
+ detail && /* @__PURE__ */ (0, import_jsx_runtime114.jsx)("p", { className: "text-body-xs text-default-secondary [overflow-wrap:anywhere]", children: detail })
12165
12231
  ] });
12166
12232
  }
12167
12233
  var COLUMNS3 = {
@@ -12172,24 +12238,24 @@ var COLUMNS3 = {
12172
12238
  4: "grid-cols-2 sm:grid-cols-3 lg:grid-cols-4"
12173
12239
  };
12174
12240
  function DetailGrid({ children, columns = "auto", className }) {
12175
- return /* @__PURE__ */ (0, import_jsx_runtime113.jsx)("div", { className: (0, import_clsx90.default)("grid gap-x-4 gap-y-4", COLUMNS3[columns], className), children });
12241
+ return /* @__PURE__ */ (0, import_jsx_runtime114.jsx)("div", { className: (0, import_clsx90.default)("grid gap-x-4 gap-y-4", COLUMNS3[columns], className), children });
12176
12242
  }
12177
12243
 
12178
12244
  // src/components/lists/description-list.tsx
12179
12245
  var import_react77 = require("react");
12180
12246
  var import_clsx91 = __toESM(require("clsx"), 1);
12181
12247
  var import_lucide_react33 = require("lucide-react");
12182
- var import_jsx_runtime114 = require("react/jsx-runtime");
12248
+ var import_jsx_runtime115 = require("react/jsx-runtime");
12183
12249
  function DescriptionList({ children, className }) {
12184
- return /* @__PURE__ */ (0, import_jsx_runtime114.jsx)("dl", { className: cn("flex flex-col gap-3", className), children });
12250
+ return /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("dl", { className: cn("flex flex-col gap-3", className), children });
12185
12251
  }
12186
12252
  function DescriptionItem({ label, value, copyValue, className }) {
12187
12253
  const shown = value === null || value === void 0 || value === "" ? "\u2014" : value;
12188
- return /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)("div", { className: cn("flex flex-wrap items-start gap-x-4 gap-y-0.5 text-body-xs", className), children: [
12189
- /* @__PURE__ */ (0, import_jsx_runtime114.jsx)("dt", { className: "shrink-0 grow-0 basis-28 text-default-secondary", children: label }),
12190
- /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)("dd", { className: "flex min-w-0 flex-[1_1_10rem] items-start gap-1.5 text-default", children: [
12191
- /* @__PURE__ */ (0, import_jsx_runtime114.jsx)("span", { className: "min-w-0 [overflow-wrap:anywhere]", children: shown }),
12192
- copyValue && /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(CopyButton, { value: copyValue, label: `Copy ${label.toLowerCase()}` })
12254
+ return /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("div", { className: cn("flex flex-wrap items-start gap-x-4 gap-y-0.5 text-body-xs", className), children: [
12255
+ /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("dt", { className: "shrink-0 grow-0 basis-28 text-default-secondary", children: label }),
12256
+ /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("dd", { className: "flex min-w-0 flex-[1_1_10rem] items-start gap-1.5 text-default", children: [
12257
+ /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("span", { className: "min-w-0 [overflow-wrap:anywhere]", children: shown }),
12258
+ copyValue && /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(CopyButton, { value: copyValue, label: `Copy ${label.toLowerCase()}` })
12193
12259
  ] })
12194
12260
  ] });
12195
12261
  }
@@ -12202,8 +12268,8 @@ function CopyButton({ value, label, copiedLabel = "Copied", className }) {
12202
12268
  }, [copied]);
12203
12269
  return (
12204
12270
  // relative: keeps the sr-only status (absolutely positioned) inside a scrolling container.
12205
- /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)("span", { className: "relative inline-flex", children: [
12206
- /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
12271
+ /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("span", { className: "relative inline-flex", children: [
12272
+ /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
12207
12273
  IconButton,
12208
12274
  {
12209
12275
  variant: "subtle",
@@ -12217,10 +12283,10 @@ function CopyButton({ value, label, copiedLabel = "Copied", className }) {
12217
12283
  () => void 0
12218
12284
  );
12219
12285
  },
12220
- children: copied ? /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(import_lucide_react33.CheckIcon, { "aria-hidden": true }) : /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(import_lucide_react33.CopyIcon, { "aria-hidden": true })
12286
+ children: copied ? /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_lucide_react33.CheckIcon, { "aria-hidden": true }) : /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_lucide_react33.CopyIcon, { "aria-hidden": true })
12221
12287
  }
12222
12288
  ),
12223
- /* @__PURE__ */ (0, import_jsx_runtime114.jsx)("span", { role: "status", className: "sr-only", children: copied ? copiedLabel : "" })
12289
+ /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("span", { role: "status", className: "sr-only", children: copied ? copiedLabel : "" })
12224
12290
  ] })
12225
12291
  );
12226
12292
  }
@@ -12228,16 +12294,16 @@ function EmailText({ email, className }) {
12228
12294
  const at = email.lastIndexOf("@");
12229
12295
  const local = at > 0 ? email.slice(0, at) : email;
12230
12296
  const domain = at > 0 ? email.slice(at) : "";
12231
- return /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)("span", { title: email, "data-slot": "email-text", className: (0, import_clsx91.default)("flex min-w-0 max-w-full", className), children: [
12232
- /* @__PURE__ */ (0, import_jsx_runtime114.jsx)("span", { className: "min-w-0 overflow-hidden text-ellipsis whitespace-nowrap", children: local }),
12233
- domain && /* @__PURE__ */ (0, import_jsx_runtime114.jsx)("span", { className: "min-w-0 overflow-hidden text-ellipsis whitespace-nowrap [flex-shrink:0.001]", children: domain })
12297
+ return /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("span", { title: email, "data-slot": "email-text", className: (0, import_clsx91.default)("flex min-w-0 max-w-full", className), children: [
12298
+ /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("span", { className: "min-w-0 overflow-hidden text-ellipsis whitespace-nowrap", children: local }),
12299
+ domain && /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("span", { className: "min-w-0 overflow-hidden text-ellipsis whitespace-nowrap [flex-shrink:0.001]", children: domain })
12234
12300
  ] });
12235
12301
  }
12236
12302
 
12237
12303
  // src/components/lists/checked-group-list.tsx
12238
12304
  var import_clsx92 = __toESM(require("clsx"), 1);
12239
12305
  var import_lucide_react34 = require("lucide-react");
12240
- var import_jsx_runtime115 = require("react/jsx-runtime");
12306
+ var import_jsx_runtime116 = require("react/jsx-runtime");
12241
12307
  var COLUMNS4 = {
12242
12308
  1: "columns-1",
12243
12309
  2: "columns-2",
@@ -12251,13 +12317,13 @@ function CheckedGroupList({
12251
12317
  className
12252
12318
  }) {
12253
12319
  if (groups.length === 0) {
12254
- return /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("p", { className: (0, import_clsx92.default)("text-body-xs text-default-secondary", className), children: emptyLabel });
12320
+ return /* @__PURE__ */ (0, import_jsx_runtime116.jsx)("p", { className: (0, import_clsx92.default)("text-body-xs text-default-secondary", className), children: emptyLabel });
12255
12321
  }
12256
- const glyph = icon === void 0 ? /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_lucide_react34.CheckIcon, { className: "size-3.5", strokeWidth: 2.5, "aria-hidden": true }) : icon;
12257
- return /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("div", { className: (0, import_clsx92.default)(COLUMNS4[columns], "gap-x-6", className), children: groups.map((group) => /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("div", { className: "mb-5 break-inside-avoid last:mb-0", children: [
12258
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("p", { className: "mb-2 text-body-tiny font-semibold uppercase tracking-wide text-default-secondary", children: group.label }),
12259
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("ul", { className: "space-y-1.5", children: group.items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("li", { className: "flex items-center gap-2 text-body-xs text-default", children: [
12260
- glyph && /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("span", { className: "shrink-0", children: glyph }),
12322
+ const glyph = icon === void 0 ? /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(import_lucide_react34.CheckIcon, { className: "size-3.5", strokeWidth: 2.5, "aria-hidden": true }) : icon;
12323
+ return /* @__PURE__ */ (0, import_jsx_runtime116.jsx)("div", { className: (0, import_clsx92.default)(COLUMNS4[columns], "gap-x-6", className), children: groups.map((group) => /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)("div", { className: "mb-5 break-inside-avoid last:mb-0", children: [
12324
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)("p", { className: "mb-2 text-body-tiny font-semibold uppercase tracking-wide text-default-secondary", children: group.label }),
12325
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)("ul", { className: "space-y-1.5", children: group.items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)("li", { className: "flex items-center gap-2 text-body-xs text-default", children: [
12326
+ glyph && /* @__PURE__ */ (0, import_jsx_runtime116.jsx)("span", { className: "shrink-0", children: glyph }),
12261
12327
  item
12262
12328
  ] }, item)) })
12263
12329
  ] }, group.label)) });
@@ -12267,7 +12333,7 @@ function CheckedGroupList({
12267
12333
  var import_react78 = require("react");
12268
12334
  var import_clsx93 = __toESM(require("clsx"), 1);
12269
12335
  var import_lucide_react35 = require("lucide-react");
12270
- var import_jsx_runtime116 = require("react/jsx-runtime");
12336
+ var import_jsx_runtime117 = require("react/jsx-runtime");
12271
12337
  var ROW = {
12272
12338
  sm: "min-h-8 py-1 text-body-xs",
12273
12339
  md: "min-h-10 py-2 text-body-sm"
@@ -12371,7 +12437,7 @@ function TreeView({
12371
12437
  if (!node) return null;
12372
12438
  const children = getChildren?.(item) ?? [];
12373
12439
  const isSelected = selected === id;
12374
- return /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)(
12440
+ return /* @__PURE__ */ (0, import_jsx_runtime117.jsxs)(
12375
12441
  "li",
12376
12442
  {
12377
12443
  role: "treeitem",
@@ -12393,7 +12459,7 @@ function TreeView({
12393
12459
  },
12394
12460
  className: "outline-none [&:focus-visible>div]:ring-2 [&:focus-visible>div]:ring-inset [&:focus-visible>div]:ring-brand",
12395
12461
  children: [
12396
- /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)(
12462
+ /* @__PURE__ */ (0, import_jsx_runtime117.jsxs)(
12397
12463
  "div",
12398
12464
  {
12399
12465
  onClick: () => {
@@ -12411,7 +12477,7 @@ function TreeView({
12411
12477
  // Not a button: the treeitem is the one tab stop, and Left/Right already toggle.
12412
12478
  // A pointer user still needs a target that toggles without selecting.
12413
12479
  // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
12414
- /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
12480
+ /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(
12415
12481
  "span",
12416
12482
  {
12417
12483
  "aria-hidden": true,
@@ -12422,11 +12488,11 @@ function TreeView({
12422
12488
  focus(id);
12423
12489
  },
12424
12490
  className: "flex size-5 shrink-0 items-center justify-center rounded text-icon-default-secondary hover:bg-default-tertiary",
12425
- children: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(import_lucide_react35.ChevronRightIcon, { className: (0, import_clsx93.default)("size-3.5 transition-transform motion-reduce:transition-none", node.expanded && "rotate-90") })
12491
+ children: /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(import_lucide_react35.ChevronRightIcon, { className: (0, import_clsx93.default)("size-3.5 transition-transform motion-reduce:transition-none", node.expanded && "rotate-90") })
12426
12492
  }
12427
12493
  )
12428
- ) : /* @__PURE__ */ (0, import_jsx_runtime116.jsx)("span", { "aria-hidden": true, className: "size-5 shrink-0" }),
12429
- /* @__PURE__ */ (0, import_jsx_runtime116.jsx)("div", { className: "min-w-0 flex-1", children: renderItem(item, {
12494
+ ) : /* @__PURE__ */ (0, import_jsx_runtime117.jsx)("span", { "aria-hidden": true, className: "size-5 shrink-0" }),
12495
+ /* @__PURE__ */ (0, import_jsx_runtime117.jsx)("div", { className: "min-w-0 flex-1", children: renderItem(item, {
12430
12496
  level,
12431
12497
  hasChildren: node.hasChildren,
12432
12498
  expanded: node.expanded,
@@ -12435,20 +12501,20 @@ function TreeView({
12435
12501
  ]
12436
12502
  }
12437
12503
  ),
12438
- node.expanded && /* @__PURE__ */ (0, import_jsx_runtime116.jsx)("ul", { role: "group", className: "m-0 list-none p-0", children: renderLevel(children, level + 1) })
12504
+ node.expanded && /* @__PURE__ */ (0, import_jsx_runtime117.jsx)("ul", { role: "group", className: "m-0 list-none p-0", children: renderLevel(children, level + 1) })
12439
12505
  ]
12440
12506
  },
12441
12507
  id
12442
12508
  );
12443
12509
  });
12444
- return /* @__PURE__ */ (0, import_jsx_runtime116.jsx)("ul", { role: "tree", "aria-label": label, className: (0, import_clsx93.default)("m-0 flex list-none flex-col p-0", className), children: renderLevel(items, 1) });
12510
+ return /* @__PURE__ */ (0, import_jsx_runtime117.jsx)("ul", { role: "tree", "aria-label": label, className: (0, import_clsx93.default)("m-0 flex list-none flex-col p-0", className), children: renderLevel(items, 1) });
12445
12511
  }
12446
12512
 
12447
12513
  // src/components/lists/table.tsx
12448
12514
  var import_react79 = require("react");
12449
12515
  var import_clsx94 = __toESM(require("clsx"), 1);
12450
12516
  var import_lucide_react36 = require("lucide-react");
12451
- var import_jsx_runtime117 = require("react/jsx-runtime");
12517
+ var import_jsx_runtime118 = require("react/jsx-runtime");
12452
12518
  var Table = (0, import_react79.forwardRef)(function Table2({ label, density = "default", fixed = false, maxHeight, className, children, ...rest }, ref) {
12453
12519
  return (
12454
12520
  // The scroll container is separate from the table so the header stays inside the
@@ -12456,7 +12522,7 @@ var Table = (0, import_react79.forwardRef)(function Table2({ label, density = "d
12456
12522
  // header.
12457
12523
  // The scroll wrapper is required for a <table>, which cannot itself scroll, so this
12458
12524
  // takes the scrollbar styling rather than ScrollArea.
12459
- /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(
12525
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
12460
12526
  "div",
12461
12527
  {
12462
12528
  className: (0, import_clsx94.default)(
@@ -12466,7 +12532,7 @@ var Table = (0, import_react79.forwardRef)(function Table2({ label, density = "d
12466
12532
  ),
12467
12533
  style: maxHeight ? { maxHeight } : void 0,
12468
12534
  ...maxHeight ? { role: "region", tabIndex: 0, "aria-label": label ? `${label} (scrolls)` : "Table (scrolls)" } : {},
12469
- children: /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(
12535
+ children: /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
12470
12536
  "table",
12471
12537
  {
12472
12538
  ref,
@@ -12484,7 +12550,7 @@ var Table = (0, import_react79.forwardRef)(function Table2({ label, density = "d
12484
12550
  });
12485
12551
  var TableCaption = (0, import_react79.forwardRef)(
12486
12552
  function TableCaption2({ className, ...rest }, ref) {
12487
- return /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(
12553
+ return /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
12488
12554
  "caption",
12489
12555
  {
12490
12556
  ref,
@@ -12496,17 +12562,17 @@ var TableCaption = (0, import_react79.forwardRef)(
12496
12562
  );
12497
12563
  var TableHeader = (0, import_react79.forwardRef)(
12498
12564
  function TableHeader2({ className, ...rest }, ref) {
12499
- return /* @__PURE__ */ (0, import_jsx_runtime117.jsx)("thead", { ref, className: cn("border-b border-default", className), ...rest });
12565
+ return /* @__PURE__ */ (0, import_jsx_runtime118.jsx)("thead", { ref, className: cn("border-b border-default", className), ...rest });
12500
12566
  }
12501
12567
  );
12502
12568
  var TableBody = (0, import_react79.forwardRef)(
12503
12569
  function TableBody2({ className, ...rest }, ref) {
12504
- return /* @__PURE__ */ (0, import_jsx_runtime117.jsx)("tbody", { ref, className, ...rest });
12570
+ return /* @__PURE__ */ (0, import_jsx_runtime118.jsx)("tbody", { ref, className, ...rest });
12505
12571
  }
12506
12572
  );
12507
12573
  var TableFooter = (0, import_react79.forwardRef)(
12508
12574
  function TableFooter2({ className, ...rest }, ref) {
12509
- return /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(
12575
+ return /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
12510
12576
  "tfoot",
12511
12577
  {
12512
12578
  ref,
@@ -12524,7 +12590,7 @@ var ROW_TONE = (0, import_clsx94.default)(
12524
12590
  "data-[tone=danger]:bg-danger-tertiary"
12525
12591
  );
12526
12592
  var TableRow = (0, import_react79.forwardRef)(function TableRow2({ selected, tone = "default", dimmed = false, className, ...rest }, ref) {
12527
- return /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(
12593
+ return /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
12528
12594
  "tr",
12529
12595
  {
12530
12596
  ref,
@@ -12547,7 +12613,7 @@ var TableRow = (0, import_react79.forwardRef)(function TableRow2({ selected, ton
12547
12613
  var ALIGN4 = { left: "text-left", center: "text-center", right: "text-right" };
12548
12614
  var TableHead = (0, import_react79.forwardRef)(function TableHead2({ sort, onSort, align = "left", sticky = false, className, children, ...rest }, ref) {
12549
12615
  const sortable = sort !== void 0 && onSort !== void 0;
12550
- return /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(
12616
+ return /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
12551
12617
  "th",
12552
12618
  {
12553
12619
  ref,
@@ -12560,7 +12626,7 @@ var TableHead = (0, import_react79.forwardRef)(function TableHead2({ sort, onSor
12560
12626
  className
12561
12627
  ),
12562
12628
  ...rest,
12563
- children: sortable ? /* @__PURE__ */ (0, import_jsx_runtime117.jsxs)(
12629
+ children: sortable ? /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)(
12564
12630
  "button",
12565
12631
  {
12566
12632
  type: "button",
@@ -12571,7 +12637,7 @@ var TableHead = (0, import_react79.forwardRef)(function TableHead2({ sort, onSor
12571
12637
  ),
12572
12638
  children: [
12573
12639
  children,
12574
- sort === false ? /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(import_lucide_react36.ChevronsUpDownIcon, { "aria-hidden": true, className: "size-3.5 opacity-50" }) : sort === "ascending" ? /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(import_lucide_react36.ChevronUpIcon, { "aria-hidden": true, className: "size-3.5" }) : /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(import_lucide_react36.ChevronDownIcon, { "aria-hidden": true, className: "size-3.5" })
12640
+ sort === false ? /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(import_lucide_react36.ChevronsUpDownIcon, { "aria-hidden": true, className: "size-3.5 opacity-50" }) : sort === "ascending" ? /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(import_lucide_react36.ChevronUpIcon, { "aria-hidden": true, className: "size-3.5" }) : /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(import_lucide_react36.ChevronDownIcon, { "aria-hidden": true, className: "size-3.5" })
12575
12641
  ]
12576
12642
  }
12577
12643
  ) : children
@@ -12580,7 +12646,7 @@ var TableHead = (0, import_react79.forwardRef)(function TableHead2({ sort, onSor
12580
12646
  });
12581
12647
  var TableCell = (0, import_react79.forwardRef)(function TableCell2({ align = "left", density = "default", header = false, className, ...rest }, ref) {
12582
12648
  const Tag = header ? "th" : "td";
12583
- return /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(
12649
+ return /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
12584
12650
  Tag,
12585
12651
  {
12586
12652
  ref,
@@ -12604,7 +12670,7 @@ var import_react_table = require("@tanstack/react-table");
12604
12670
 
12605
12671
  // src/components/feedback/empty-state.tsx
12606
12672
  var import_clsx95 = __toESM(require("clsx"), 1);
12607
- var import_jsx_runtime118 = require("react/jsx-runtime");
12673
+ var import_jsx_runtime119 = require("react/jsx-runtime");
12608
12674
  var SIZES = {
12609
12675
  sm: "py-8",
12610
12676
  md: "py-12",
@@ -12623,7 +12689,7 @@ function EmptyState({
12623
12689
  action,
12624
12690
  className
12625
12691
  }) {
12626
- return /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)(
12692
+ return /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)(
12627
12693
  "div",
12628
12694
  {
12629
12695
  "data-variant": variant,
@@ -12635,8 +12701,8 @@ function EmptyState({
12635
12701
  ),
12636
12702
  "aria-live": variant === "empty" ? void 0 : "polite",
12637
12703
  children: [
12638
- icon && /* @__PURE__ */ (0, import_jsx_runtime118.jsx)("span", { className: "text-default-tertiary", children: icon }),
12639
- /* @__PURE__ */ (0, import_jsx_runtime118.jsx)("p", { children: message }),
12704
+ icon && /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("span", { className: "text-default-tertiary", children: icon }),
12705
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("p", { children: message }),
12640
12706
  action
12641
12707
  ]
12642
12708
  }
@@ -12646,7 +12712,7 @@ function EmptyState({
12646
12712
  // src/components/feedback/skeleton.tsx
12647
12713
  var import_react80 = require("react");
12648
12714
  var import_clsx96 = __toESM(require("clsx"), 1);
12649
- var import_jsx_runtime119 = require("react/jsx-runtime");
12715
+ var import_jsx_runtime120 = require("react/jsx-runtime");
12650
12716
  var SHAPE2 = {
12651
12717
  line: "h-4 rounded",
12652
12718
  block: "h-full w-full rounded-lg",
@@ -12654,7 +12720,7 @@ var SHAPE2 = {
12654
12720
  };
12655
12721
  var Skeleton = (0, import_react80.forwardRef)(function Skeleton2({ shape = "line", lines = 1, className, ...rest }, ref) {
12656
12722
  if (shape === "line" && lines > 1) {
12657
- return /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("div", { ref, "aria-hidden": true, "data-slot": "skeleton-group", className: "flex flex-col gap-2", ...rest, children: Array.from({ length: lines }, (_, index) => /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
12723
+ return /* @__PURE__ */ (0, import_jsx_runtime120.jsx)("div", { ref, "aria-hidden": true, "data-slot": "skeleton-group", className: "flex flex-col gap-2", ...rest, children: Array.from({ length: lines }, (_, index) => /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
12658
12724
  "div",
12659
12725
  {
12660
12726
  className: (0, import_clsx96.default)(
@@ -12668,7 +12734,7 @@ var Skeleton = (0, import_react80.forwardRef)(function Skeleton2({ shape = "line
12668
12734
  index
12669
12735
  )) });
12670
12736
  }
12671
- return /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
12737
+ return /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
12672
12738
  "div",
12673
12739
  {
12674
12740
  ref,
@@ -12710,7 +12776,7 @@ function cardSlots(columns) {
12710
12776
 
12711
12777
  // src/components/lists/data-table-parts.tsx
12712
12778
  var import_lucide_react37 = require("lucide-react");
12713
- var import_jsx_runtime120 = require("react/jsx-runtime");
12779
+ var import_jsx_runtime121 = require("react/jsx-runtime");
12714
12780
  var SELECT_COLUMN_ID = "select";
12715
12781
  function columnLabel(column) {
12716
12782
  const meta = column.columnDef.meta;
@@ -12726,11 +12792,11 @@ function DataTableColumnHeader({
12726
12792
  const text = title ?? columnLabel(column);
12727
12793
  const hidden = column.columnDef.meta?.hideHeader;
12728
12794
  if (!column.getCanSort()) {
12729
- return /* @__PURE__ */ (0, import_jsx_runtime120.jsx)("span", { className: cn(hidden ? "sr-only" : "inline-block w-max whitespace-nowrap", className), children: text });
12795
+ return /* @__PURE__ */ (0, import_jsx_runtime121.jsx)("span", { className: cn(hidden ? "sr-only" : "inline-block w-max whitespace-nowrap", className), children: text });
12730
12796
  }
12731
12797
  const sorted = column.getIsSorted();
12732
12798
  const Icon = sorted === "asc" ? import_lucide_react37.ChevronUpIcon : sorted === "desc" ? import_lucide_react37.ChevronDownIcon : import_lucide_react37.ChevronsUpDownIcon;
12733
- return /* @__PURE__ */ (0, import_jsx_runtime120.jsxs)(
12799
+ return /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)(
12734
12800
  "button",
12735
12801
  {
12736
12802
  type: "button",
@@ -12744,8 +12810,8 @@ function DataTableColumnHeader({
12744
12810
  className
12745
12811
  ),
12746
12812
  children: [
12747
- /* @__PURE__ */ (0, import_jsx_runtime120.jsx)("span", { className: cn(hidden && "sr-only"), children: text }),
12748
- /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
12813
+ /* @__PURE__ */ (0, import_jsx_runtime121.jsx)("span", { className: cn(hidden && "sr-only"), children: text }),
12814
+ /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
12749
12815
  Icon,
12750
12816
  {
12751
12817
  "aria-hidden": true,
@@ -12761,7 +12827,7 @@ function createSelectColumn(options = {}) {
12761
12827
  const { getRowLabel, selectAllLabel = "Select all rows on this page" } = options;
12762
12828
  return {
12763
12829
  id: SELECT_COLUMN_ID,
12764
- header: ({ table }) => /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
12830
+ header: ({ table }) => /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
12765
12831
  Checkbox,
12766
12832
  {
12767
12833
  "aria-label": selectAllLabel,
@@ -12770,7 +12836,7 @@ function createSelectColumn(options = {}) {
12770
12836
  onCheckedChange: (checked) => table.toggleAllPageRowsSelected(checked)
12771
12837
  }
12772
12838
  ),
12773
- cell: ({ row }) => /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
12839
+ cell: ({ row }) => /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
12774
12840
  Checkbox,
12775
12841
  {
12776
12842
  "aria-label": getRowLabel ? getRowLabel(row.original) : "Select row",
@@ -12788,11 +12854,11 @@ function createSelectColumn(options = {}) {
12788
12854
  function DataTableViewOptions({ table, label = "Columns" }) {
12789
12855
  const columns = table.getAllLeafColumns().filter((column) => column.getCanHide());
12790
12856
  if (columns.length === 0) return null;
12791
- return /* @__PURE__ */ (0, import_jsx_runtime120.jsxs)(DropdownMenu, { children: [
12792
- /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(Button, { variant: "neutral", size: "md", leadingIcon: /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(import_lucide_react37.Columns3Icon, { "aria-hidden": true }), children: label }) }),
12793
- /* @__PURE__ */ (0, import_jsx_runtime120.jsxs)(DropdownMenuContent, { align: "end", children: [
12794
- /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(DropdownMenuLabel, { children: "Show columns" }),
12795
- columns.map((column) => /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
12857
+ return /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)(DropdownMenu, { children: [
12858
+ /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(Button, { variant: "neutral", size: "md", leadingIcon: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_lucide_react37.Columns3Icon, { "aria-hidden": true }), children: label }) }),
12859
+ /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)(DropdownMenuContent, { align: "end", children: [
12860
+ /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(DropdownMenuLabel, { children: "Show columns" }),
12861
+ columns.map((column) => /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
12796
12862
  DropdownMenuCheckboxItem,
12797
12863
  {
12798
12864
  checked: column.getIsVisible(),
@@ -12810,7 +12876,7 @@ function DataTablePagination({
12810
12876
  summary
12811
12877
  }) {
12812
12878
  const { pageIndex, pageSize } = table.getState().pagination;
12813
- return /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
12879
+ return /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
12814
12880
  PaginationBar,
12815
12881
  {
12816
12882
  page: pageIndex + 1,
@@ -12827,7 +12893,7 @@ function DataTablePagination({
12827
12893
 
12828
12894
  // src/components/lists/data-table-cells.tsx
12829
12895
  var import_clsx97 = __toESM(require("clsx"), 1);
12830
- var import_jsx_runtime121 = require("react/jsx-runtime");
12896
+ var import_jsx_runtime122 = require("react/jsx-runtime");
12831
12897
  function textFromNode(node) {
12832
12898
  if (typeof node === "string") return node;
12833
12899
  if (typeof node === "number") return String(node);
@@ -12838,8 +12904,8 @@ function textFromNode(node) {
12838
12904
  return void 0;
12839
12905
  }
12840
12906
  function TableCellLeadText({ primary, secondary, size: size2 = "md", className }) {
12841
- return /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)("div", { className: (0, import_clsx97.default)("flex min-w-0 flex-col gap-0.5", className), children: [
12842
- /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
12907
+ return /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: (0, import_clsx97.default)("flex min-w-0 flex-col gap-0.5", className), children: [
12908
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
12843
12909
  "span",
12844
12910
  {
12845
12911
  title: primary,
@@ -12850,7 +12916,7 @@ function TableCellLeadText({ primary, secondary, size: size2 = "md", className }
12850
12916
  children: primary
12851
12917
  }
12852
12918
  ),
12853
- secondary && (typeof secondary === "string" || typeof secondary === "number" ? /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
12919
+ secondary && (typeof secondary === "string" || typeof secondary === "number" ? /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
12854
12920
  "span",
12855
12921
  {
12856
12922
  title: String(secondary),
@@ -12863,7 +12929,7 @@ function TableCellLeadText({ primary, secondary, size: size2 = "md", className }
12863
12929
  ) : (
12864
12930
  // An element brings its own overflow handling, so it gets no `truncate` here,
12865
12931
  // which a card layout's touch un-truncation would otherwise turn into wrapping.
12866
- /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
12932
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
12867
12933
  "span",
12868
12934
  {
12869
12935
  className: (0, import_clsx97.default)(
@@ -12883,7 +12949,7 @@ function TableCellText({
12883
12949
  truncate = true,
12884
12950
  className
12885
12951
  }) {
12886
- return /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
12952
+ return /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
12887
12953
  "span",
12888
12954
  {
12889
12955
  title: truncate ? textFromNode(children) : void 0,
@@ -12899,7 +12965,7 @@ function TableCellText({
12899
12965
  );
12900
12966
  }
12901
12967
  function TableCellBadge({ label, className }) {
12902
- return /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
12968
+ return /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
12903
12969
  "span",
12904
12970
  {
12905
12971
  title: label,
@@ -12907,7 +12973,7 @@ function TableCellBadge({ label, className }) {
12907
12973
  "inline-flex max-w-full items-center rounded-md border border-default bg-default-secondary px-2 py-0.5 text-body-tiny font-medium text-default-secondary",
12908
12974
  className
12909
12975
  ),
12910
- children: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)("span", { className: "truncate", children: label })
12976
+ children: /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("span", { className: "truncate", children: label })
12911
12977
  }
12912
12978
  );
12913
12979
  }
@@ -12919,8 +12985,8 @@ function TableCellProgress({
12919
12985
  className
12920
12986
  }) {
12921
12987
  const clamped = Math.round(Math.min(100, Math.max(0, percent)));
12922
- return /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)("div", { className: (0, import_clsx97.default)("flex w-full min-w-0 items-center gap-2", className), children: [
12923
- /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
12988
+ return /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: (0, import_clsx97.default)("flex w-full min-w-0 items-center gap-2", className), children: [
12989
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
12924
12990
  ProgressBar,
12925
12991
  {
12926
12992
  value: clamped,
@@ -12930,7 +12996,7 @@ function TableCellProgress({
12930
12996
  "aria-label": label ?? `${clamped}%`
12931
12997
  }
12932
12998
  ),
12933
- /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)("span", { className: "shrink-0 text-body-tiny leading-none tabular-nums text-default-secondary", children: [
12999
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("span", { className: "shrink-0 text-body-tiny leading-none tabular-nums text-default-secondary", children: [
12934
13000
  clamped,
12935
13001
  "%"
12936
13002
  ] })
@@ -12938,7 +13004,7 @@ function TableCellProgress({
12938
13004
  }
12939
13005
 
12940
13006
  // src/components/lists/data-table.tsx
12941
- var import_jsx_runtime122 = (
13007
+ var import_jsx_runtime123 = (
12942
13008
  // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
12943
13009
  require("react/jsx-runtime")
12944
13010
  );
@@ -12986,7 +13052,7 @@ function useTableState(controlled, initial, onChange) {
12986
13052
  return [value, set];
12987
13053
  }
12988
13054
  function CellInteractionGuard({ children }) {
12989
- return /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
13055
+ return /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
12990
13056
  "div",
12991
13057
  {
12992
13058
  className: "contents",
@@ -13059,7 +13125,7 @@ function useScrollEdges() {
13059
13125
  }
13060
13126
  var serverSortedValue = () => void 0;
13061
13127
  function defaultRowLink({ children, ...props }) {
13062
- return /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("a", { ...props, children });
13128
+ return /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("a", { ...props, children });
13063
13129
  }
13064
13130
  function DataTable({
13065
13131
  columns,
@@ -13184,16 +13250,16 @@ function DataTable({
13184
13250
  const filtering = Boolean(globalFilter) || columnFilters.length > 0;
13185
13251
  const rows = table.getRowModel().rows;
13186
13252
  const isEmpty2 = !loading && !error && rows.length === 0;
13187
- const placeholder = error ? /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
13253
+ const placeholder = error ? /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
13188
13254
  EmptyState,
13189
13255
  {
13190
13256
  message: typeof error === "string" ? error : "Something went wrong loading this data.",
13191
13257
  variant: "error",
13192
13258
  size: "md",
13193
- action: onRetry ? /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(Button, { variant: "neutral", size: "sm", onClick: onRetry, children: "Retry" }) : void 0,
13259
+ action: onRetry ? /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(Button, { variant: "neutral", size: "sm", onClick: onRetry, children: "Retry" }) : void 0,
13194
13260
  className: "mx-auto max-w-[520px]"
13195
13261
  }
13196
- ) : isEmpty2 ? typeof empty === "string" ? /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(EmptyState, { message: empty, size: "md", className: "mx-auto max-w-[520px]" }) : empty : null;
13262
+ ) : isEmpty2 ? typeof empty === "string" ? /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(EmptyState, { message: empty, size: "md", className: "mx-auto max-w-[520px]" }) : empty : null;
13197
13263
  const resultCount = manual.filtering ? table.getRowCount() : table.getFilteredRowModel().rows.length;
13198
13264
  const showToolbar = Boolean(search || toolbar || showColumnMenu);
13199
13265
  const showPager = paginated && !error && table.getRowCount() > 0;
@@ -13215,9 +13281,9 @@ function DataTable({
13215
13281
  getRowLabel,
13216
13282
  maxHeight
13217
13283
  };
13218
- return /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { "data-slot": "data-table", className: cn("relative flex flex-col gap-3", className), children: [
13219
- showToolbar && /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: cn("flex flex-wrap items-center gap-2", !bordered && "px-4 pt-3"), children: [
13220
- search && /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
13284
+ return /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)("div", { "data-slot": "data-table", className: cn("relative flex flex-col gap-3", className), children: [
13285
+ showToolbar && /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)("div", { className: cn("flex flex-wrap items-center gap-2", !bordered && "px-4 pt-3"), children: [
13286
+ search && /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
13221
13287
  SearchInput,
13222
13288
  {
13223
13289
  size: "md",
@@ -13230,14 +13296,14 @@ function DataTable({
13230
13296
  }
13231
13297
  ),
13232
13298
  toolbar,
13233
- showColumnMenu && /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("div", { className: "ml-auto", children: /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(DataTableViewOptions, { table }) })
13299
+ showColumnMenu && /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("div", { className: "ml-auto", children: /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(DataTableViewOptions, { table }) })
13234
13300
  ] }),
13235
- /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("p", { role: "status", "aria-live": "polite", className: "sr-only", children: filtering && !loading ? `${resultCount} ${resultCount === 1 ? "result" : "results"}` : "" }),
13236
- /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { ref: wrapRef, className: cn("overflow-hidden bg-default", bordered && "rounded-xl border border-default"), children: [
13237
- mode === "cards" && caption && /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("div", { id: captionId, className: "px-4 pt-3 text-left text-body-sm text-default-secondary", children: caption }),
13238
- mode === "cards" ? maxHeight ? /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(CardScroll, { label, maxHeight, children: /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(CardList, { ...view }) }) : /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(CardList, { ...view }) : /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(TableView, { ...view }),
13239
- showPager && /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("div", { className: "border-t border-default px-4 py-3", children: /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(DataTablePagination, { table, pageSizeOptions }) }),
13240
- footer && /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("div", { className: "border-t border-default px-4 py-3", children: footer })
13301
+ /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("p", { role: "status", "aria-live": "polite", className: "sr-only", children: filtering && !loading ? `${resultCount} ${resultCount === 1 ? "result" : "results"}` : "" }),
13302
+ /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)("div", { ref: wrapRef, className: cn("overflow-hidden bg-default", bordered && "rounded-xl border border-default"), children: [
13303
+ mode === "cards" && caption && /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("div", { id: captionId, className: "px-4 pt-3 text-left text-body-sm text-default-secondary", children: caption }),
13304
+ mode === "cards" ? maxHeight ? /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(CardScroll, { label, maxHeight, children: /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(CardList, { ...view }) }) : /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(CardList, { ...view }) : /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(TableView, { ...view }),
13305
+ showPager && /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("div", { className: "border-t border-default px-4 py-3", children: /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(DataTablePagination, { table, pageSizeOptions }) }),
13306
+ footer && /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("div", { className: "border-t border-default px-4 py-3", children: footer })
13241
13307
  ] })
13242
13308
  ] });
13243
13309
  }
@@ -13291,8 +13357,8 @@ function TableView({
13291
13357
  const direction = scroll.overflowing && maxHeight && scroll.overflowingY ? "scrolls" : scroll.overflowing ? "scrolls horizontally" : "scrolls vertically";
13292
13358
  const regionLabel = `${label ?? "Table"} (${direction})`;
13293
13359
  const pinnedHeader = maxHeight ? (0, import_clsx98.default)("sticky top-0 z-sticky bg-default-secondary", !scroll.atTop && "shadow-[inset_0_-1px_0_var(--color-border-default-default)]") : void 0;
13294
- return /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "relative", children: [
13295
- /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
13360
+ return /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)("div", { className: "relative", children: [
13361
+ /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
13296
13362
  "div",
13297
13363
  {
13298
13364
  ref: scroll.ref,
@@ -13304,18 +13370,18 @@ function TableView({
13304
13370
  ),
13305
13371
  style: maxHeight ? { maxHeight } : void 0,
13306
13372
  ...scrolls ? { role: "region", tabIndex: 0, "aria-label": regionLabel } : {},
13307
- children: /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)(
13373
+ children: /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)(
13308
13374
  "table",
13309
13375
  {
13310
13376
  className: "w-full table-fixed border-collapse text-left",
13311
13377
  style: showPlaceholder ? void 0 : { minWidth },
13312
13378
  "aria-busy": loading || void 0,
13313
13379
  children: [
13314
- caption ? /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("caption", { className: "px-4 pt-3 text-left text-body-sm text-default-secondary", children: caption }) : label && /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("caption", { className: "sr-only", children: label }),
13315
- /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("colgroup", { children: columns.map((column) => {
13380
+ caption ? /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("caption", { className: "px-4 pt-3 text-left text-body-sm text-default-secondary", children: caption }) : label && /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("caption", { className: "sr-only", children: label }),
13381
+ /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("colgroup", { children: columns.map((column) => {
13316
13382
  const meta = column.columnDef.meta;
13317
13383
  const floor = headers.widths[column.id] ?? 0;
13318
- return /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
13384
+ return /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
13319
13385
  "col",
13320
13386
  {
13321
13387
  style: meta?.grow || !meta?.width ? void 0 : { width: floor > widthToPx(meta.width) ? floor : meta.width }
@@ -13323,12 +13389,12 @@ function TableView({
13323
13389
  column.id
13324
13390
  );
13325
13391
  }) }),
13326
- /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("thead", { children: table.getHeaderGroups().map((group) => /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("tr", { className: "bg-default-secondary", children: group.headers.map((header) => {
13392
+ /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("thead", { children: table.getHeaderGroups().map((group) => /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("tr", { className: "bg-default-secondary", children: group.headers.map((header) => {
13327
13393
  const meta = header.column.columnDef.meta;
13328
13394
  const sortable = header.column.getCanSort();
13329
13395
  const sorted = header.column.getIsSorted();
13330
13396
  const definition = header.column.columnDef.header;
13331
- return /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
13397
+ return /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
13332
13398
  "th",
13333
13399
  {
13334
13400
  scope: "col",
@@ -13343,12 +13409,12 @@ function TableView({
13343
13409
  pinnedHeader,
13344
13410
  meta?.headerClassName
13345
13411
  ),
13346
- children: header.isPlaceholder ? null : typeof definition === "string" || definition === void 0 ? /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("span", { ref: meta?.hideHeader ? void 0 : headers.register(header.column.id), className: "inline-block", children: /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(DataTableColumnHeader, { column: header.column }) }) : (0, import_react_table.flexRender)(definition, header.getContext())
13412
+ children: header.isPlaceholder ? null : typeof definition === "string" || definition === void 0 ? /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("span", { ref: meta?.hideHeader ? void 0 : headers.register(header.column.id), className: "inline-block", children: /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(DataTableColumnHeader, { column: header.column }) }) : (0, import_react_table.flexRender)(definition, header.getContext())
13347
13413
  },
13348
13414
  header.id
13349
13415
  );
13350
13416
  }) }, group.id)) }),
13351
- /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("tbody", { children: loading && !placeholder ? Array.from({ length: loadingRows }, (_, index) => /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("tr", { className: (0, import_clsx98.default)(index > 0 && "border-t border-default"), children: columns.map((column) => /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("td", { className: (0, import_clsx98.default)(d.bodyCell, "align-middle"), children: /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(Skeleton, { className: column.columnDef.meta?.grow ? "w-[70%]" : "w-[55%]" }) }, column.id)) }, `skeleton-${index}`)) : placeholder ? /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("tr", { children: /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("td", { colSpan: columns.length, className: "px-4", children: placeholder }) }) : table.getRowModel().rows.map((row) => /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
13417
+ /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("tbody", { children: loading && !placeholder ? Array.from({ length: loadingRows }, (_, index) => /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("tr", { className: (0, import_clsx98.default)(index > 0 && "border-t border-default"), children: columns.map((column) => /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("td", { className: (0, import_clsx98.default)(d.bodyCell, "align-middle"), children: /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(Skeleton, { className: column.columnDef.meta?.grow ? "w-[70%]" : "w-[55%]" }) }, column.id)) }, `skeleton-${index}`)) : placeholder ? /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("tr", { children: /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("td", { colSpan: columns.length, className: "px-4", children: placeholder }) }) : table.getRowModel().rows.map((row) => /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
13352
13418
  BodyRow,
13353
13419
  {
13354
13420
  row,
@@ -13371,8 +13437,8 @@ function TableView({
13371
13437
  )
13372
13438
  }
13373
13439
  ),
13374
- scroll.overflowing && !scroll.atStart && !stickyStart && /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("span", { "aria-hidden": true, className: "pointer-events-none absolute inset-y-0 left-0 w-6 bg-gradient-to-r from-default-secondary to-transparent" }),
13375
- scroll.overflowing && !scroll.atEnd && !stickyEnd && /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("span", { "aria-hidden": true, className: "pointer-events-none absolute inset-y-0 right-0 w-6 bg-gradient-to-l from-default-secondary to-transparent" })
13440
+ scroll.overflowing && !scroll.atStart && !stickyStart && /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("span", { "aria-hidden": true, className: "pointer-events-none absolute inset-y-0 left-0 w-6 bg-gradient-to-r from-default-secondary to-transparent" }),
13441
+ scroll.overflowing && !scroll.atEnd && !stickyEnd && /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("span", { "aria-hidden": true, className: "pointer-events-none absolute inset-y-0 right-0 w-6 bg-gradient-to-l from-default-secondary to-transparent" })
13376
13442
  ] });
13377
13443
  }
13378
13444
  function BodyRow({
@@ -13391,7 +13457,7 @@ function BodyRow({
13391
13457
  }) {
13392
13458
  const d = DENSITY3[density];
13393
13459
  const href = getRowHref?.(row.original);
13394
- return /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
13460
+ return /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
13395
13461
  TableRow,
13396
13462
  {
13397
13463
  selected: row.getIsSelected() || void 0,
@@ -13416,7 +13482,7 @@ function BodyRow({
13416
13482
  onRowClick(row.original);
13417
13483
  }
13418
13484
  } : void 0,
13419
- children: row.getVisibleCells().map((cell) => /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
13485
+ children: row.getVisibleCells().map((cell) => /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
13420
13486
  BodyCell,
13421
13487
  {
13422
13488
  cell,
@@ -13445,7 +13511,7 @@ function BodyCell({
13445
13511
  children: content
13446
13512
  }, cell.row.original);
13447
13513
  }
13448
- return /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
13514
+ return /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
13449
13515
  "td",
13450
13516
  {
13451
13517
  className: cn(
@@ -13456,13 +13522,13 @@ function BodyCell({
13456
13522
  !meta?.interactive && "overflow-hidden",
13457
13523
  meta?.cellClassName
13458
13524
  ),
13459
- children: meta?.interactive ? /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(CellInteractionGuard, { children: content }) : content
13525
+ children: meta?.interactive ? /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(CellInteractionGuard, { children: content }) : content
13460
13526
  }
13461
13527
  );
13462
13528
  }
13463
13529
  function CardScroll({ label, maxHeight, children }) {
13464
13530
  const scroll = useScrollEdges();
13465
- return /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
13531
+ return /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
13466
13532
  "div",
13467
13533
  {
13468
13534
  ref: scroll.ref,
@@ -13489,12 +13555,12 @@ function CardList({
13489
13555
  getRowDimmed,
13490
13556
  getRowLabel
13491
13557
  }) {
13492
- if (placeholder) return /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("div", { className: "px-4", children: placeholder });
13558
+ if (placeholder) return /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("div", { className: "px-4", children: placeholder });
13493
13559
  if (loading) {
13494
- return /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("ul", { "aria-label": label, "aria-labelledby": !label && caption ? captionId : void 0, "aria-busy": "true", className: "divide-y divide-default", children: Array.from({ length: loadingRows }, (_, index) => /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("li", { className: "flex flex-col gap-3 p-4", children: [
13495
- /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(Skeleton, { className: "w-2/3" }),
13496
- /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(Skeleton, { className: "w-1/2" }),
13497
- /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(Skeleton, { className: "w-5/6" })
13560
+ return /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("ul", { "aria-label": label, "aria-labelledby": !label && caption ? captionId : void 0, "aria-busy": "true", className: "divide-y divide-default", children: Array.from({ length: loadingRows }, (_, index) => /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)("li", { className: "flex flex-col gap-3 p-4", children: [
13561
+ /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(Skeleton, { className: "w-2/3" }),
13562
+ /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(Skeleton, { className: "w-1/2" }),
13563
+ /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(Skeleton, { className: "w-5/6" })
13498
13564
  ] }, index)) });
13499
13565
  }
13500
13566
  const columns = table.getVisibleLeafColumns();
@@ -13510,7 +13576,7 @@ function CardList({
13510
13576
  return (
13511
13577
  // Card mode un-truncates: on touch there is no hover tooltip, so a clipped value would be
13512
13578
  // unreadable. `.truncate` cell renderers wrap here instead.
13513
- /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
13579
+ /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
13514
13580
  "ul",
13515
13581
  {
13516
13582
  "aria-label": label,
@@ -13525,7 +13591,7 @@ function CardList({
13525
13591
  const href = getRowHref?.(row.original);
13526
13592
  const titleContent = render(slots.title?.id);
13527
13593
  const tone = getRowTone?.(row.original);
13528
- return /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)(
13594
+ return /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)(
13529
13595
  "li",
13530
13596
  {
13531
13597
  "data-state": row.getIsSelected() ? "selected" : void 0,
@@ -13540,9 +13606,9 @@ function CardList({
13540
13606
  "data-[state=selected]:bg-brand-tertiary"
13541
13607
  ),
13542
13608
  children: [
13543
- /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "flex items-start gap-3", children: [
13544
- selectable && /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("div", { className: "relative z-raised shrink-0 pt-0.5", children: render(SELECT_COLUMN_ID) }),
13545
- /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("div", { className: "min-w-0 flex-1", children: href ? renderRowLink({ href, [ROW_LINK_ATTR]: "", className: trigger, children: titleContent }, row.original) : onRowClick ? /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
13609
+ /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)("div", { className: "flex items-start gap-3", children: [
13610
+ selectable && /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("div", { className: "relative z-raised shrink-0 pt-0.5", children: render(SELECT_COLUMN_ID) }),
13611
+ /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("div", { className: "min-w-0 flex-1", children: href ? renderRowLink({ href, [ROW_LINK_ATTR]: "", className: trigger, children: titleContent }, row.original) : onRowClick ? /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
13546
13612
  "button",
13547
13613
  {
13548
13614
  type: "button",
@@ -13554,12 +13620,12 @@ function CardList({
13554
13620
  ) : titleContent }),
13555
13621
  slots.status && // A status pill is `nowrap`, so a long label would spill off the card. Let it
13556
13622
  // wrap inside the cap instead.
13557
- /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("div", { className: "flex max-w-[45%] shrink-0 justify-end [&_.whitespace-nowrap]:whitespace-normal", children: render(slots.status.id) }),
13558
- slots.actions && /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("div", { className: "relative z-raised shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(CellInteractionGuard, { children: render(slots.actions.id) }) })
13623
+ /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("div", { className: "flex max-w-[45%] shrink-0 justify-end [&_.whitespace-nowrap]:whitespace-normal", children: render(slots.status.id) }),
13624
+ slots.actions && /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("div", { className: "relative z-raised shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(CellInteractionGuard, { children: render(slots.actions.id) }) })
13559
13625
  ] }),
13560
- slots.fields.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("dl", { className: "grid grid-cols-[repeat(auto-fit,minmax(min(100%,8.5rem),1fr))] gap-x-4 gap-y-2.5", children: slots.fields.map(({ id, column }) => /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: (0, import_clsx98.default)("min-w-0", column.columnDef.meta?.interactive && "relative z-raised"), children: [
13561
- /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("dt", { className: "text-body-tiny text-default-secondary", children: columnLabel(column) }),
13562
- /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("dd", { className: "mt-0.5 min-w-0 text-body-xs text-default", children: column.columnDef.meta?.interactive ? /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(CellInteractionGuard, { children: render(id) }) : render(id) })
13626
+ slots.fields.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("dl", { className: "grid grid-cols-[repeat(auto-fit,minmax(min(100%,8.5rem),1fr))] gap-x-4 gap-y-2.5", children: slots.fields.map(({ id, column }) => /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)("div", { className: (0, import_clsx98.default)("min-w-0", column.columnDef.meta?.interactive && "relative z-raised"), children: [
13627
+ /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("dt", { className: "text-body-tiny text-default-secondary", children: columnLabel(column) }),
13628
+ /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("dd", { className: "mt-0.5 min-w-0 text-body-xs text-default", children: column.columnDef.meta?.interactive ? /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(CellInteractionGuard, { children: render(id) }) : render(id) })
13563
13629
  ] }, id)) })
13564
13630
  ]
13565
13631
  },
@@ -13577,7 +13643,7 @@ var import_react_table2 = require("@tanstack/react-table");
13577
13643
  // src/components/feedback/inline-alert.tsx
13578
13644
  var import_clsx99 = __toESM(require("clsx"), 1);
13579
13645
  var import_lucide_react38 = require("lucide-react");
13580
- var import_jsx_runtime123 = require("react/jsx-runtime");
13646
+ var import_jsx_runtime124 = require("react/jsx-runtime");
13581
13647
  var toneStyles3 = {
13582
13648
  info: "border-brand-tertiary bg-brand-tertiary text-brand",
13583
13649
  warning: "border-warning-tertiary bg-warning-tertiary text-warning",
@@ -13586,15 +13652,15 @@ var toneStyles3 = {
13586
13652
  neutral: "border-default bg-default text-default-secondary"
13587
13653
  };
13588
13654
  var toneIcons = {
13589
- info: /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(import_lucide_react38.InfoIcon, { className: "size-4" }),
13590
- warning: /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(import_lucide_react38.TriangleAlertIcon, { className: "size-4" }),
13591
- danger: /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(import_lucide_react38.TriangleAlertIcon, { className: "size-4" }),
13592
- positive: /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(import_lucide_react38.CircleCheckBigIcon, { className: "size-4" }),
13593
- neutral: /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(import_lucide_react38.InfoIcon, { className: "size-4 text-icon-default-secondary" })
13655
+ info: /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(import_lucide_react38.InfoIcon, { className: "size-4" }),
13656
+ warning: /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(import_lucide_react38.TriangleAlertIcon, { className: "size-4" }),
13657
+ danger: /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(import_lucide_react38.TriangleAlertIcon, { className: "size-4" }),
13658
+ positive: /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(import_lucide_react38.CircleCheckBigIcon, { className: "size-4" }),
13659
+ neutral: /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(import_lucide_react38.InfoIcon, { className: "size-4 text-icon-default-secondary" })
13594
13660
  };
13595
13661
  function InlineAlert({ tone, children, icon, role, className }) {
13596
13662
  const glyph = icon === void 0 ? toneIcons[tone] : icon;
13597
- return /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)(
13663
+ return /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)(
13598
13664
  "div",
13599
13665
  {
13600
13666
  "data-tone": tone,
@@ -13605,8 +13671,8 @@ function InlineAlert({ tone, children, icon, role, className }) {
13605
13671
  className
13606
13672
  ),
13607
13673
  children: [
13608
- glyph && /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("span", { "aria-hidden": true, className: "mt-px shrink-0", children: glyph }),
13609
- /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("div", { className: "min-w-0", children })
13674
+ glyph && /* @__PURE__ */ (0, import_jsx_runtime124.jsx)("span", { "aria-hidden": true, className: "mt-px shrink-0", children: glyph }),
13675
+ /* @__PURE__ */ (0, import_jsx_runtime124.jsx)("div", { className: "min-w-0", children })
13610
13676
  ]
13611
13677
  }
13612
13678
  );
@@ -13614,7 +13680,7 @@ function InlineAlert({ tone, children, icon, role, className }) {
13614
13680
 
13615
13681
  // src/components/feedback/error-boundary.tsx
13616
13682
  var import_react82 = require("react");
13617
- var import_jsx_runtime124 = require("react/jsx-runtime");
13683
+ var import_jsx_runtime125 = require("react/jsx-runtime");
13618
13684
  var ErrorBoundary = class extends import_react82.Component {
13619
13685
  constructor() {
13620
13686
  super(...arguments);
@@ -13634,7 +13700,7 @@ var ErrorBoundary = class extends import_react82.Component {
13634
13700
  }
13635
13701
  render() {
13636
13702
  if (!this.state.error) return this.props.children;
13637
- return this.props.fallback ?? /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
13703
+ return this.props.fallback ?? /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
13638
13704
  "div",
13639
13705
  {
13640
13706
  role: "status",
@@ -13650,7 +13716,7 @@ var ErrorBoundary = class extends import_react82.Component {
13650
13716
  var import_react83 = require("react");
13651
13717
  var import_clsx100 = __toESM(require("clsx"), 1);
13652
13718
  var import_lucide_react39 = require("lucide-react");
13653
- var import_jsx_runtime125 = require("react/jsx-runtime");
13719
+ var import_jsx_runtime126 = require("react/jsx-runtime");
13654
13720
  var TONE_STYLES3 = {
13655
13721
  info: "border-brand-tertiary bg-brand-tertiary text-default",
13656
13722
  positive: "border-positive-tertiary bg-positive-tertiary text-default",
@@ -13666,11 +13732,11 @@ var TONE_ICON_COLOR = {
13666
13732
  neutral: "text-icon-default-secondary"
13667
13733
  };
13668
13734
  var TONE_ICON2 = {
13669
- info: /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_lucide_react39.InfoIcon, { "aria-hidden": true, className: "size-5" }),
13670
- positive: /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_lucide_react39.CircleCheckBigIcon, { "aria-hidden": true, className: "size-5" }),
13671
- warning: /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_lucide_react39.TriangleAlertIcon, { "aria-hidden": true, className: "size-5" }),
13672
- danger: /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_lucide_react39.TriangleAlertIcon, { "aria-hidden": true, className: "size-5" }),
13673
- neutral: /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_lucide_react39.InfoIcon, { "aria-hidden": true, className: "size-5" })
13735
+ info: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_lucide_react39.InfoIcon, { "aria-hidden": true, className: "size-5" }),
13736
+ positive: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_lucide_react39.CircleCheckBigIcon, { "aria-hidden": true, className: "size-5" }),
13737
+ warning: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_lucide_react39.TriangleAlertIcon, { "aria-hidden": true, className: "size-5" }),
13738
+ danger: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_lucide_react39.TriangleAlertIcon, { "aria-hidden": true, className: "size-5" }),
13739
+ neutral: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_lucide_react39.InfoIcon, { "aria-hidden": true, className: "size-5" })
13674
13740
  };
13675
13741
  var Banner = (0, import_react83.forwardRef)(function Banner2({
13676
13742
  title,
@@ -13685,7 +13751,7 @@ var Banner = (0, import_react83.forwardRef)(function Banner2({
13685
13751
  }, ref) {
13686
13752
  const titleId = (0, import_react83.useId)();
13687
13753
  const glyph = icon === void 0 ? TONE_ICON2[tone] : icon;
13688
- return /* @__PURE__ */ (0, import_jsx_runtime125.jsxs)(
13754
+ return /* @__PURE__ */ (0, import_jsx_runtime126.jsxs)(
13689
13755
  "div",
13690
13756
  {
13691
13757
  "data-tone": tone,
@@ -13701,13 +13767,13 @@ var Banner = (0, import_react83.forwardRef)(function Banner2({
13701
13767
  ),
13702
13768
  ...rest,
13703
13769
  children: [
13704
- glyph && /* @__PURE__ */ (0, import_jsx_runtime125.jsx)("span", { "aria-hidden": true, className: (0, import_clsx100.default)("mt-px shrink-0", TONE_ICON_COLOR[tone]), children: glyph }),
13705
- /* @__PURE__ */ (0, import_jsx_runtime125.jsxs)("div", { className: "min-w-0 flex-1", children: [
13706
- /* @__PURE__ */ (0, import_jsx_runtime125.jsx)("p", { id: titleId, className: "text-body-sm font-semibold text-default", children: title }),
13707
- children && /* @__PURE__ */ (0, import_jsx_runtime125.jsx)("div", { className: "mt-1 text-body-xs text-default-secondary", children }),
13708
- action && /* @__PURE__ */ (0, import_jsx_runtime125.jsx)("div", { className: "mt-3 flex items-center gap-2", children: action })
13770
+ glyph && /* @__PURE__ */ (0, import_jsx_runtime126.jsx)("span", { "aria-hidden": true, className: (0, import_clsx100.default)("mt-px shrink-0", TONE_ICON_COLOR[tone]), children: glyph }),
13771
+ /* @__PURE__ */ (0, import_jsx_runtime126.jsxs)("div", { className: "min-w-0 flex-1", children: [
13772
+ /* @__PURE__ */ (0, import_jsx_runtime126.jsx)("p", { id: titleId, className: "text-body-sm font-semibold text-default", children: title }),
13773
+ children && /* @__PURE__ */ (0, import_jsx_runtime126.jsx)("div", { className: "mt-1 text-body-xs text-default-secondary", children }),
13774
+ action && /* @__PURE__ */ (0, import_jsx_runtime126.jsx)("div", { className: "mt-3 flex items-center gap-2", children: action })
13709
13775
  ] }),
13710
- onDismiss && /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
13776
+ onDismiss && /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
13711
13777
  IconButton,
13712
13778
  {
13713
13779
  variant: "subtle",
@@ -13715,7 +13781,7 @@ var Banner = (0, import_react83.forwardRef)(function Banner2({
13715
13781
  "aria-label": typeof title === "string" ? `Dismiss: ${title}` : "Dismiss",
13716
13782
  onClick: onDismiss,
13717
13783
  className: "-mr-1 -mt-1 shrink-0",
13718
- children: /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_lucide_react39.XIcon, { "aria-hidden": true, size: 16 })
13784
+ children: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_lucide_react39.XIcon, { "aria-hidden": true, size: 16 })
13719
13785
  }
13720
13786
  )
13721
13787
  ]
@@ -13727,7 +13793,7 @@ var Banner = (0, import_react83.forwardRef)(function Banner2({
13727
13793
  var import_react84 = require("react");
13728
13794
  var import_clsx101 = __toESM(require("clsx"), 1);
13729
13795
  var import_lucide_react40 = require("lucide-react");
13730
- var import_jsx_runtime126 = require("react/jsx-runtime");
13796
+ var import_jsx_runtime127 = require("react/jsx-runtime");
13731
13797
  var ToastContext = (0, import_react84.createContext)(null);
13732
13798
  function useToast() {
13733
13799
  const context = (0, import_react84.useContext)(ToastContext);
@@ -13735,11 +13801,11 @@ function useToast() {
13735
13801
  return context;
13736
13802
  }
13737
13803
  var TONE_ICON3 = {
13738
- info: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_lucide_react40.InfoIcon, { "aria-hidden": true, className: "size-4" }),
13739
- positive: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_lucide_react40.CircleCheckBigIcon, { "aria-hidden": true, className: "size-4" }),
13740
- warning: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_lucide_react40.TriangleAlertIcon, { "aria-hidden": true, className: "size-4" }),
13741
- danger: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_lucide_react40.TriangleAlertIcon, { "aria-hidden": true, className: "size-4" }),
13742
- neutral: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_lucide_react40.InfoIcon, { "aria-hidden": true, className: "size-4" })
13804
+ info: /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_lucide_react40.InfoIcon, { "aria-hidden": true, className: "size-4" }),
13805
+ positive: /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_lucide_react40.CircleCheckBigIcon, { "aria-hidden": true, className: "size-4" }),
13806
+ warning: /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_lucide_react40.TriangleAlertIcon, { "aria-hidden": true, className: "size-4" }),
13807
+ danger: /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_lucide_react40.TriangleAlertIcon, { "aria-hidden": true, className: "size-4" }),
13808
+ neutral: /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_lucide_react40.InfoIcon, { "aria-hidden": true, className: "size-4" })
13743
13809
  };
13744
13810
  var TONE_ICON_COLOR2 = {
13745
13811
  info: "text-icon-brand",
@@ -13748,7 +13814,7 @@ var TONE_ICON_COLOR2 = {
13748
13814
  danger: "text-icon-danger",
13749
13815
  neutral: "text-icon-default-secondary"
13750
13816
  };
13751
- var POSITION = {
13817
+ var POSITION2 = {
13752
13818
  "top-left": "top-[var(--toaster-mobile-offset)] md:top-[var(--toaster-offset)] left-4 items-start",
13753
13819
  "top-center": "top-[var(--toaster-mobile-offset)] md:top-[var(--toaster-offset)] left-1/2 -translate-x-1/2 items-center",
13754
13820
  "top-right": "top-[var(--toaster-mobile-offset)] md:top-[var(--toaster-offset)] right-4 items-end",
@@ -13807,9 +13873,9 @@ function Toaster({
13807
13873
  };
13808
13874
  }, []);
13809
13875
  const context = (0, import_react84.useMemo)(() => ({ toast, dismiss, dismissAll }), [toast, dismiss, dismissAll]);
13810
- return /* @__PURE__ */ (0, import_jsx_runtime126.jsxs)(ToastContext.Provider, { value: context, children: [
13876
+ return /* @__PURE__ */ (0, import_jsx_runtime127.jsxs)(ToastContext.Provider, { value: context, children: [
13811
13877
  children,
13812
- /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
13878
+ /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(
13813
13879
  "div",
13814
13880
  {
13815
13881
  "aria-live": "polite",
@@ -13817,20 +13883,20 @@ function Toaster({
13817
13883
  ...{ [TOASTER_ATTRIBUTE]: "" },
13818
13884
  className: (0, import_clsx101.default)(
13819
13885
  "pointer-events-none fixed z-toast flex w-[calc(100%-2rem)] max-w-[380px] flex-col gap-2",
13820
- POSITION[position]
13886
+ POSITION2[position]
13821
13887
  ),
13822
13888
  style: {
13823
13889
  "--toaster-offset": toLength(offset2),
13824
13890
  "--toaster-mobile-offset": toLength(mobileOffset ?? offset2)
13825
13891
  },
13826
- children: toasts.map((entry) => /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(ToastItem, { toast: entry, onDismiss: () => dismiss(entry.id) }, entry.id))
13892
+ children: toasts.map((entry) => /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(ToastItem, { toast: entry, onDismiss: () => dismiss(entry.id) }, entry.id))
13827
13893
  }
13828
13894
  ) })
13829
13895
  ] });
13830
13896
  }
13831
13897
  function ToastItem({ toast, onDismiss }) {
13832
13898
  const tone = toast.tone ?? "info";
13833
- return /* @__PURE__ */ (0, import_jsx_runtime126.jsxs)(
13899
+ return /* @__PURE__ */ (0, import_jsx_runtime127.jsxs)(
13834
13900
  "div",
13835
13901
  {
13836
13902
  role: tone === "danger" ? "alert" : "status",
@@ -13839,13 +13905,13 @@ function ToastItem({ toast, onDismiss }) {
13839
13905
  "bg-default p-4 shadow-400"
13840
13906
  ),
13841
13907
  children: [
13842
- /* @__PURE__ */ (0, import_jsx_runtime126.jsx)("span", { "aria-hidden": true, className: (0, import_clsx101.default)("mt-px shrink-0", TONE_ICON_COLOR2[tone]), children: TONE_ICON3[tone] }),
13843
- /* @__PURE__ */ (0, import_jsx_runtime126.jsxs)("div", { className: "min-w-0 flex-1", children: [
13844
- /* @__PURE__ */ (0, import_jsx_runtime126.jsx)("p", { className: "text-body-sm font-semibold text-default", children: toast.title }),
13845
- toast.description && /* @__PURE__ */ (0, import_jsx_runtime126.jsx)("p", { className: "mt-0.5 text-body-xs text-default-secondary", children: toast.description }),
13846
- toast.action && /* @__PURE__ */ (0, import_jsx_runtime126.jsx)("div", { className: "mt-2 flex items-center gap-2", children: toast.action })
13908
+ /* @__PURE__ */ (0, import_jsx_runtime127.jsx)("span", { "aria-hidden": true, className: (0, import_clsx101.default)("mt-px shrink-0", TONE_ICON_COLOR2[tone]), children: TONE_ICON3[tone] }),
13909
+ /* @__PURE__ */ (0, import_jsx_runtime127.jsxs)("div", { className: "min-w-0 flex-1", children: [
13910
+ /* @__PURE__ */ (0, import_jsx_runtime127.jsx)("p", { className: "text-body-sm font-semibold text-default", children: toast.title }),
13911
+ toast.description && /* @__PURE__ */ (0, import_jsx_runtime127.jsx)("p", { className: "mt-0.5 text-body-xs text-default-secondary", children: toast.description }),
13912
+ toast.action && /* @__PURE__ */ (0, import_jsx_runtime127.jsx)("div", { className: "mt-2 flex items-center gap-2", children: toast.action })
13847
13913
  ] }),
13848
- /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
13914
+ /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(
13849
13915
  IconButton,
13850
13916
  {
13851
13917
  variant: "subtle",
@@ -13853,7 +13919,7 @@ function ToastItem({ toast, onDismiss }) {
13853
13919
  "aria-label": typeof toast.title === "string" ? `Dismiss: ${toast.title}` : "Dismiss",
13854
13920
  onClick: onDismiss,
13855
13921
  className: "-mr-1 -mt-1 shrink-0",
13856
- children: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_lucide_react40.XIcon, { "aria-hidden": true, size: 14 })
13922
+ children: /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_lucide_react40.XIcon, { "aria-hidden": true, size: 14 })
13857
13923
  }
13858
13924
  )
13859
13925
  ]
@@ -13864,23 +13930,23 @@ function ToastItem({ toast, onDismiss }) {
13864
13930
  // src/components/forms/password-input.tsx
13865
13931
  var import_react85 = require("react");
13866
13932
  var import_lucide_react41 = require("lucide-react");
13867
- var import_jsx_runtime127 = require("react/jsx-runtime");
13933
+ var import_jsx_runtime128 = require("react/jsx-runtime");
13868
13934
  var PasswordInput = (0, import_react85.forwardRef)(function PasswordInput2(props, ref) {
13869
13935
  const [visible, setVisible] = (0, import_react85.useState)(false);
13870
- return /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(
13936
+ return /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
13871
13937
  Input,
13872
13938
  {
13873
13939
  ref,
13874
13940
  ...props,
13875
13941
  type: visible ? "text" : "password",
13876
- trailingAction: /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(
13942
+ trailingAction: /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
13877
13943
  "button",
13878
13944
  {
13879
13945
  type: "button",
13880
13946
  "aria-label": visible ? "Hide password" : "Show password",
13881
13947
  onClick: () => setVisible((v) => !v),
13882
13948
  className: "flex items-center justify-center rounded transition-colors hover:text-default focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand",
13883
- children: visible ? /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_lucide_react41.EyeOffIcon, { "aria-hidden": true, className: "size-4" }) : /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_lucide_react41.EyeIcon, { "aria-hidden": true, className: "size-4" })
13949
+ children: visible ? /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(import_lucide_react41.EyeOffIcon, { "aria-hidden": true, className: "size-4" }) : /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(import_lucide_react41.EyeIcon, { "aria-hidden": true, className: "size-4" })
13884
13950
  }
13885
13951
  )
13886
13952
  }
@@ -13890,12 +13956,12 @@ var PasswordInput = (0, import_react85.forwardRef)(function PasswordInput2(props
13890
13956
  // src/components/ai/ai-chat-bar.tsx
13891
13957
  var import_clsx102 = __toESM(require("clsx"), 1);
13892
13958
  var import_lucide_react42 = require("lucide-react");
13893
- var import_jsx_runtime128 = require("react/jsx-runtime");
13959
+ var import_jsx_runtime129 = require("react/jsx-runtime");
13894
13960
  function AIChatBar({
13895
13961
  placeholder = "Ask Intelligence about any entity, supplier, or risk\u2026",
13896
13962
  className
13897
13963
  }) {
13898
- return /* @__PURE__ */ (0, import_jsx_runtime128.jsxs)(
13964
+ return /* @__PURE__ */ (0, import_jsx_runtime129.jsxs)(
13899
13965
  "div",
13900
13966
  {
13901
13967
  className: (0, import_clsx102.default)(
@@ -13903,16 +13969,16 @@ function AIChatBar({
13903
13969
  className
13904
13970
  ),
13905
13971
  children: [
13906
- /* @__PURE__ */ (0, import_jsx_runtime128.jsx)("span", { "aria-hidden": true, className: "shrink-0 text-icon-default-secondary", children: /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(import_lucide_react42.SearchIcon, { className: "size-4" }) }),
13907
- /* @__PURE__ */ (0, import_jsx_runtime128.jsx)("p", { className: "flex-1 text-body-sm text-default-tertiary truncate", children: placeholder }),
13908
- /* @__PURE__ */ (0, import_jsx_runtime128.jsxs)(
13972
+ /* @__PURE__ */ (0, import_jsx_runtime129.jsx)("span", { "aria-hidden": true, className: "shrink-0 text-icon-default-secondary", children: /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(import_lucide_react42.SearchIcon, { className: "size-4" }) }),
13973
+ /* @__PURE__ */ (0, import_jsx_runtime129.jsx)("p", { className: "flex-1 text-body-sm text-default-tertiary truncate", children: placeholder }),
13974
+ /* @__PURE__ */ (0, import_jsx_runtime129.jsxs)(
13909
13975
  "button",
13910
13976
  {
13911
13977
  type: "button",
13912
13978
  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",
13913
13979
  children: [
13914
13980
  "Ask",
13915
- /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(import_lucide_react42.ArrowRightIcon, { "aria-hidden": true, className: "size-4" })
13981
+ /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(import_lucide_react42.ArrowRightIcon, { "aria-hidden": true, className: "size-4" })
13916
13982
  ]
13917
13983
  }
13918
13984
  )
@@ -13924,9 +13990,9 @@ function AIChatBar({
13924
13990
  // src/components/ai/ai-suggestion-chip.tsx
13925
13991
  var import_clsx103 = __toESM(require("clsx"), 1);
13926
13992
  var import_lucide_react43 = require("lucide-react");
13927
- var import_jsx_runtime129 = require("react/jsx-runtime");
13993
+ var import_jsx_runtime130 = require("react/jsx-runtime");
13928
13994
  function AISuggestionChip({ prompt, onClick, className }) {
13929
- return /* @__PURE__ */ (0, import_jsx_runtime129.jsxs)(
13995
+ return /* @__PURE__ */ (0, import_jsx_runtime130.jsxs)(
13930
13996
  "button",
13931
13997
  {
13932
13998
  type: "button",
@@ -13936,9 +14002,9 @@ function AISuggestionChip({ prompt, onClick, className }) {
13936
14002
  className
13937
14003
  ),
13938
14004
  children: [
13939
- /* @__PURE__ */ (0, import_jsx_runtime129.jsx)("span", { "aria-hidden": true, className: "shrink-0 text-icon-brand", children: /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(import_lucide_react43.CpuIcon, { className: "size-4" }) }),
13940
- /* @__PURE__ */ (0, import_jsx_runtime129.jsx)("span", { className: "flex-1 text-body-sm text-default truncate", children: prompt }),
13941
- /* @__PURE__ */ (0, import_jsx_runtime129.jsx)("span", { "aria-hidden": true, className: "shrink-0 text-icon-default-secondary", children: /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(import_lucide_react43.ArrowRightIcon, { className: "size-3.5", strokeWidth: 2.5 }) })
14005
+ /* @__PURE__ */ (0, import_jsx_runtime130.jsx)("span", { "aria-hidden": true, className: "shrink-0 text-icon-brand", children: /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(import_lucide_react43.CpuIcon, { className: "size-4" }) }),
14006
+ /* @__PURE__ */ (0, import_jsx_runtime130.jsx)("span", { className: "flex-1 text-body-sm text-default truncate", children: prompt }),
14007
+ /* @__PURE__ */ (0, import_jsx_runtime130.jsx)("span", { "aria-hidden": true, className: "shrink-0 text-icon-default-secondary", children: /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(import_lucide_react43.ArrowRightIcon, { className: "size-3.5", strokeWidth: 2.5 }) })
13942
14008
  ]
13943
14009
  }
13944
14010
  );
@@ -13946,18 +14012,18 @@ function AISuggestionChip({ prompt, onClick, className }) {
13946
14012
 
13947
14013
  // src/components/ai/quick-actions-bar.tsx
13948
14014
  var import_clsx104 = __toESM(require("clsx"), 1);
13949
- var import_jsx_runtime130 = require("react/jsx-runtime");
14015
+ var import_jsx_runtime131 = require("react/jsx-runtime");
13950
14016
  function QuickActionsBar({ actions, active, onSelect, className }) {
13951
- return /* @__PURE__ */ (0, import_jsx_runtime130.jsx)("div", { className: (0, import_clsx104.default)("flex flex-wrap items-center gap-3", className), children: actions.map((action) => {
14017
+ return /* @__PURE__ */ (0, import_jsx_runtime131.jsx)("div", { className: (0, import_clsx104.default)("flex flex-wrap items-center gap-3", className), children: actions.map((action) => {
13952
14018
  const isActive = active === action.value;
13953
- return /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
14019
+ return /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
13954
14020
  "button",
13955
14021
  {
13956
14022
  type: "button",
13957
14023
  "aria-pressed": isActive,
13958
14024
  onClick: () => onSelect?.(action.value),
13959
14025
  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",
13960
- children: /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(TagPill, { label: action.label, tone: isActive ? "brand" : "default" })
14026
+ children: /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(TagPill, { label: action.label, tone: isActive ? "brand" : "default" })
13961
14027
  },
13962
14028
  action.value
13963
14029
  );
@@ -13967,23 +14033,23 @@ function QuickActionsBar({ actions, active, onSelect, className }) {
13967
14033
  // src/components/ai/chat.tsx
13968
14034
  var import_clsx105 = __toESM(require("clsx"), 1);
13969
14035
  var import_lucide_react44 = require("lucide-react");
13970
- var import_jsx_runtime131 = require("react/jsx-runtime");
14036
+ var import_jsx_runtime132 = require("react/jsx-runtime");
13971
14037
  function AiAvatar({ className, icon }) {
13972
- return /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
14038
+ return /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
13973
14039
  "span",
13974
14040
  {
13975
14041
  "aria-hidden": true,
13976
14042
  className: cn("flex size-8 shrink-0 items-center justify-center rounded-full bg-brand text-icon-brand-on-brand", className),
13977
- children: icon ?? /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(import_lucide_react44.CpuIcon, { className: "size-3.5" })
14043
+ children: icon ?? /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(import_lucide_react44.CpuIcon, { className: "size-3.5" })
13978
14044
  }
13979
14045
  );
13980
14046
  }
13981
14047
  function TypingIndicator({ label = "Assistant is typing", className }) {
13982
- return /* @__PURE__ */ (0, import_jsx_runtime131.jsxs)("div", { role: "status", "aria-live": "polite", className: cn("flex items-center gap-3", className), children: [
13983
- /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(AiAvatar, {}),
13984
- /* @__PURE__ */ (0, import_jsx_runtime131.jsxs)("div", { className: "flex items-center gap-2 rounded-2xl rounded-tl-sm border border-default bg-default-secondary px-5 py-3", children: [
13985
- /* @__PURE__ */ (0, import_jsx_runtime131.jsx)("span", { className: "text-body-xs text-default-secondary", children: label }),
13986
- /* @__PURE__ */ (0, import_jsx_runtime131.jsx)("span", { "aria-hidden": true, className: "flex gap-1", children: [0, 1, 2].map((index) => /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
14048
+ return /* @__PURE__ */ (0, import_jsx_runtime132.jsxs)("div", { role: "status", "aria-live": "polite", className: cn("flex items-center gap-3", className), children: [
14049
+ /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(AiAvatar, {}),
14050
+ /* @__PURE__ */ (0, import_jsx_runtime132.jsxs)("div", { className: "flex items-center gap-2 rounded-2xl rounded-tl-sm border border-default bg-default-secondary px-5 py-3", children: [
14051
+ /* @__PURE__ */ (0, import_jsx_runtime132.jsx)("span", { className: "text-body-xs text-default-secondary", children: label }),
14052
+ /* @__PURE__ */ (0, import_jsx_runtime132.jsx)("span", { "aria-hidden": true, className: "flex gap-1", children: [0, 1, 2].map((index) => /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
13987
14053
  "span",
13988
14054
  {
13989
14055
  className: "inline-block size-1.5 rounded-full bg-default-tertiary motion-safe:animate-bounce",
@@ -13996,9 +14062,9 @@ function TypingIndicator({ label = "Assistant is typing", className }) {
13996
14062
  }
13997
14063
  function ChatBubble({ sender, children, failed = false, className }) {
13998
14064
  if (sender === "user") {
13999
- return /* @__PURE__ */ (0, import_jsx_runtime131.jsx)("div", { "data-sender": "user", className: cn("flex justify-end", className), children: /* @__PURE__ */ (0, import_jsx_runtime131.jsx)("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 }) });
14065
+ return /* @__PURE__ */ (0, import_jsx_runtime132.jsx)("div", { "data-sender": "user", className: cn("flex justify-end", className), children: /* @__PURE__ */ (0, import_jsx_runtime132.jsx)("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 }) });
14000
14066
  }
14001
- return /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
14067
+ return /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
14002
14068
  "div",
14003
14069
  {
14004
14070
  "data-sender": "assistant",
@@ -14017,17 +14083,17 @@ function ChatBubble({ sender, children, failed = false, className }) {
14017
14083
  }
14018
14084
 
14019
14085
  // src/components/decorative/aurora-backdrop.tsx
14020
- var import_jsx_runtime132 = require("react/jsx-runtime");
14086
+ var import_jsx_runtime133 = require("react/jsx-runtime");
14021
14087
  function blob(primitive, alpha) {
14022
14088
  return `radial-gradient(ellipse, color-mix(in srgb, var(${primitive}) ${alpha}%, transparent) 0%, transparent 70%)`;
14023
14089
  }
14024
14090
  function AuroraBackdrop() {
14025
- return /* @__PURE__ */ (0, import_jsx_runtime132.jsxs)("div", { className: "pointer-events-none absolute inset-0", "aria-hidden": true, children: [
14026
- /* @__PURE__ */ (0, import_jsx_runtime132.jsx)("div", { className: "absolute -left-24 -top-28", style: { width: 380, height: 380, background: blob("--prim-red-400", 45) } }),
14027
- /* @__PURE__ */ (0, import_jsx_runtime132.jsx)("div", { className: "absolute -top-24 right-[-4%]", style: { width: 320, height: 320, background: blob("--prim-red-300", 40) } }),
14028
- /* @__PURE__ */ (0, import_jsx_runtime132.jsx)("div", { className: "absolute bottom-[-10%] right-[14%]", style: { width: 420, height: 420, background: blob("--prim-violet-400", 30) } }),
14029
- /* @__PURE__ */ (0, import_jsx_runtime132.jsx)("div", { className: "absolute bottom-[-6%] left-[4%]", style: { width: 280, height: 280, background: blob("--prim-blue-400", 25) } }),
14030
- /* @__PURE__ */ (0, import_jsx_runtime132.jsx)("div", { className: "absolute left-[20%] top-[30%]", style: { width: 240, height: 240, background: blob("--prim-blue-300", 18) } })
14091
+ return /* @__PURE__ */ (0, import_jsx_runtime133.jsxs)("div", { className: "pointer-events-none absolute inset-0", "aria-hidden": true, children: [
14092
+ /* @__PURE__ */ (0, import_jsx_runtime133.jsx)("div", { className: "absolute -left-24 -top-28", style: { width: 380, height: 380, background: blob("--prim-red-400", 45) } }),
14093
+ /* @__PURE__ */ (0, import_jsx_runtime133.jsx)("div", { className: "absolute -top-24 right-[-4%]", style: { width: 320, height: 320, background: blob("--prim-red-300", 40) } }),
14094
+ /* @__PURE__ */ (0, import_jsx_runtime133.jsx)("div", { className: "absolute bottom-[-10%] right-[14%]", style: { width: 420, height: 420, background: blob("--prim-violet-400", 30) } }),
14095
+ /* @__PURE__ */ (0, import_jsx_runtime133.jsx)("div", { className: "absolute bottom-[-6%] left-[4%]", style: { width: 280, height: 280, background: blob("--prim-blue-400", 25) } }),
14096
+ /* @__PURE__ */ (0, import_jsx_runtime133.jsx)("div", { className: "absolute left-[20%] top-[30%]", style: { width: 240, height: 240, background: blob("--prim-blue-300", 18) } })
14031
14097
  ] });
14032
14098
  }
14033
14099
  // Annotate the CommonJS export names for ESM import in node:
@@ -14262,6 +14328,7 @@ function AuroraBackdrop() {
14262
14328
  SegmentedControl,
14263
14329
  Select,
14264
14330
  SelectControl,
14331
+ SelectionBar,
14265
14332
  Separator,
14266
14333
  Sidebar,
14267
14334
  SidebarProvider,