@platned/ui 0.10.2 → 0.10.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -4648,7 +4648,10 @@ var ModalShell = forwardRef15(
4648
4648
  className: cn(
4649
4649
  // The overlay wraps the content (a Radix-supported layout), so it also does the
4650
4650
  // positioning: bottom sheet below `sm`, a card centred or top-anchored above it.
4651
- "fixed inset-0 z-modal flex items-end justify-center",
4651
+ // `max-sm:items-end`, not a base `items-end` that `sm:` overrides: an app that layers this
4652
+ // stylesheet under its own utilities (Cleo) and uses `items-end` itself would otherwise win
4653
+ // at every width, and every dialog sat at the bottom on desktop. Fixed in 0.10.3.
4654
+ "fixed inset-0 z-modal flex justify-center max-sm:items-end",
4652
4655
  OVERLAY_ALIGN[align],
4653
4656
  OVERLAY_SCRIM
4654
4657
  ),
@@ -9303,9 +9306,54 @@ function Listbox({
9303
9306
  );
9304
9307
  }
9305
9308
 
9309
+ // src/components/lists/selection-bar.tsx
9310
+ import { Fragment as Fragment16, jsx as jsx91, jsxs as jsxs62 } from "react/jsx-runtime";
9311
+ var POSITION = {
9312
+ sticky: "sticky bottom-6 z-sticky",
9313
+ static: ""
9314
+ };
9315
+ function SelectionBar({
9316
+ label,
9317
+ description,
9318
+ children,
9319
+ onClear,
9320
+ clearLabel = "Clear",
9321
+ "aria-label": ariaLabel = "Selection actions",
9322
+ position = "sticky",
9323
+ className
9324
+ }) {
9325
+ return /* @__PURE__ */ jsxs62(
9326
+ "div",
9327
+ {
9328
+ role: "region",
9329
+ "aria-label": ariaLabel,
9330
+ "data-slot": "selection-bar",
9331
+ "data-position": position,
9332
+ className: cn(
9333
+ "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",
9334
+ POSITION[position],
9335
+ className
9336
+ ),
9337
+ children: [
9338
+ /* @__PURE__ */ jsxs62("div", { className: "flex min-w-0 flex-1 basis-60 flex-col gap-0.5", children: [
9339
+ /* @__PURE__ */ jsx91("span", { className: "text-body font-medium", children: label }),
9340
+ description !== void 0 && /* @__PURE__ */ jsx91("span", { className: "truncate text-body-xs text-default-secondary", children: description })
9341
+ ] }),
9342
+ /* @__PURE__ */ jsxs62("div", { className: "flex flex-wrap items-center gap-2", children: [
9343
+ onClear && /* @__PURE__ */ jsxs62(Fragment16, { children: [
9344
+ /* @__PURE__ */ jsx91(Button, { variant: "subtle", onClick: onClear, children: clearLabel }),
9345
+ /* @__PURE__ */ jsx91("span", { "aria-hidden": true, className: "h-6 border-l border-default" })
9346
+ ] }),
9347
+ children
9348
+ ] })
9349
+ ]
9350
+ }
9351
+ );
9352
+ }
9353
+
9306
9354
  // src/components/lists/list-row.tsx
9307
9355
  import clsx70 from "clsx";
9308
- import { Fragment as Fragment16, jsx as jsx91, jsxs as jsxs62 } from "react/jsx-runtime";
9356
+ import { Fragment as Fragment17, jsx as jsx92, jsxs as jsxs63 } from "react/jsx-runtime";
9309
9357
  var DENSITY2 = {
9310
9358
  default: {
9311
9359
  pad: "py-4",
@@ -9366,24 +9414,24 @@ function ListRow({
9366
9414
  className
9367
9415
  )
9368
9416
  };
9369
- const body = /* @__PURE__ */ jsxs62(Fragment16, { children: [
9370
- /* @__PURE__ */ jsxs62("div", { className: clsx70("flex min-w-0 flex-1 flex-col", d.gap), children: [
9371
- hasTitleLine && /* @__PURE__ */ jsxs62("div", { className: "flex items-center justify-between gap-2", children: [
9372
- /* @__PURE__ */ jsxs62("div", { className: "flex min-w-0 items-center gap-2", children: [
9417
+ const body = /* @__PURE__ */ jsxs63(Fragment17, { children: [
9418
+ /* @__PURE__ */ jsxs63("div", { className: clsx70("flex min-w-0 flex-1 flex-col", d.gap), children: [
9419
+ hasTitleLine && /* @__PURE__ */ jsxs63("div", { className: "flex items-center justify-between gap-2", children: [
9420
+ /* @__PURE__ */ jsxs63("div", { className: "flex min-w-0 items-center gap-2", children: [
9373
9421
  leading,
9374
- title != null && /* @__PURE__ */ jsx91("span", { className: clsx70("truncate", d.title), children: title }),
9375
- titleMeta && /* @__PURE__ */ jsx91("span", { className: "shrink-0", children: titleMeta })
9422
+ title != null && /* @__PURE__ */ jsx92("span", { className: clsx70("truncate", d.title), children: title }),
9423
+ titleMeta && /* @__PURE__ */ jsx92("span", { className: "shrink-0", children: titleMeta })
9376
9424
  ] }),
9377
- meta && /* @__PURE__ */ jsx91("span", { className: "shrink-0", children: meta })
9425
+ meta && /* @__PURE__ */ jsx92("span", { className: "shrink-0", children: meta })
9378
9426
  ] }),
9379
- description && /* @__PURE__ */ jsx91("p", { className: d.description, children: description }),
9427
+ description && /* @__PURE__ */ jsx92("p", { className: d.description, children: description }),
9380
9428
  footer && // These two wrappers are propagation barriers, not controls — they add no
9381
9429
  // behaviour of their own and must not be focusable or take a role.
9382
9430
  // eslint-disable-next-line jsx-a11y/no-static-element-interactions
9383
- /* @__PURE__ */ jsx91("div", { onClick: stopIfInteractive, onKeyDown: stopIfInteractive, children: footer })
9431
+ /* @__PURE__ */ jsx92("div", { onClick: stopIfInteractive, onKeyDown: stopIfInteractive, children: footer })
9384
9432
  ] }),
9385
9433
  trailing && // eslint-disable-next-line jsx-a11y/no-static-element-interactions
9386
- /* @__PURE__ */ jsx91(
9434
+ /* @__PURE__ */ jsx92(
9387
9435
  "div",
9388
9436
  {
9389
9437
  className: "ml-3 flex shrink-0 items-center self-center",
@@ -9394,7 +9442,7 @@ function ListRow({
9394
9442
  )
9395
9443
  ] });
9396
9444
  if (asChild) {
9397
- return /* @__PURE__ */ jsx91(
9445
+ return /* @__PURE__ */ jsx92(
9398
9446
  Slot,
9399
9447
  {
9400
9448
  ...rootProps,
@@ -9407,7 +9455,7 @@ function ListRow({
9407
9455
  }
9408
9456
  );
9409
9457
  }
9410
- return /* @__PURE__ */ jsx91(
9458
+ return /* @__PURE__ */ jsx92(
9411
9459
  Tag,
9412
9460
  {
9413
9461
  ...rootProps,
@@ -9438,9 +9486,9 @@ function refusePress(event) {
9438
9486
  // src/components/lists/file-row.tsx
9439
9487
  import clsx71 from "clsx";
9440
9488
  import { DownloadIcon, Trash2Icon } from "lucide-react";
9441
- import { jsx as jsx92, jsxs as jsxs63 } from "react/jsx-runtime";
9489
+ import { jsx as jsx93, jsxs as jsxs64 } from "react/jsx-runtime";
9442
9490
  function FileTypeBadge({ type }) {
9443
- return /* @__PURE__ */ jsx92("span", { className: "flex size-[34px] shrink-0 items-center justify-center rounded-md bg-brand-tertiary text-body-tiny font-semibold text-brand", children: type });
9491
+ return /* @__PURE__ */ jsx93("span", { className: "flex size-[34px] shrink-0 items-center justify-center rounded-md bg-brand-tertiary text-body-tiny font-semibold text-brand", children: type });
9444
9492
  }
9445
9493
  function FileRow({
9446
9494
  name,
@@ -9454,8 +9502,8 @@ function FileRow({
9454
9502
  actions,
9455
9503
  className
9456
9504
  }) {
9457
- const lead = leading ?? (fileType ? /* @__PURE__ */ jsx92(FileTypeBadge, { type: fileType }) : null);
9458
- return /* @__PURE__ */ jsxs63(
9505
+ const lead = leading ?? (fileType ? /* @__PURE__ */ jsx93(FileTypeBadge, { type: fileType }) : null);
9506
+ return /* @__PURE__ */ jsxs64(
9459
9507
  "div",
9460
9508
  {
9461
9509
  className: clsx71(
@@ -9464,14 +9512,14 @@ function FileRow({
9464
9512
  ),
9465
9513
  children: [
9466
9514
  lead,
9467
- /* @__PURE__ */ jsxs63("div", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
9468
- /* @__PURE__ */ jsx92("span", { className: "truncate text-body-sm font-medium text-default", children: name }),
9469
- detail && /* @__PURE__ */ jsx92("span", { className: "text-body-xs text-default-secondary", children: detail })
9515
+ /* @__PURE__ */ jsxs64("div", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
9516
+ /* @__PURE__ */ jsx93("span", { className: "truncate text-body-sm font-medium text-default", children: name }),
9517
+ detail && /* @__PURE__ */ jsx93("span", { className: "text-body-xs text-default-secondary", children: detail })
9470
9518
  ] }),
9471
- (onDownload || onRemove || actions) && /* @__PURE__ */ jsxs63("div", { className: "flex shrink-0 items-center gap-1", children: [
9472
- onDownload && /* @__PURE__ */ jsx92(Tooltip, { title: downloadLabel, children: /* @__PURE__ */ jsx92(IconButton, { variant: "subtle", size: "sm", "aria-label": `${downloadLabel} ${name}`, onClick: onDownload, className: "touch-hit", children: /* @__PURE__ */ jsx92(DownloadIcon, { "aria-hidden": true }) }) }),
9473
- onRemove && /* @__PURE__ */ jsx92(Tooltip, { title: removeLabel, children: /* @__PURE__ */ jsx92(IconButton, { variant: "subtle", size: "sm", "aria-label": `${removeLabel} ${name}`, onClick: onRemove, className: "touch-hit", children: /* @__PURE__ */ jsx92(Trash2Icon, { "aria-hidden": true }) }) }),
9474
- actions && /* @__PURE__ */ jsx92("div", { className: "ml-2 flex items-center gap-2", children: actions })
9519
+ (onDownload || onRemove || actions) && /* @__PURE__ */ jsxs64("div", { className: "flex shrink-0 items-center gap-1", children: [
9520
+ onDownload && /* @__PURE__ */ jsx93(Tooltip, { title: downloadLabel, children: /* @__PURE__ */ jsx93(IconButton, { variant: "subtle", size: "sm", "aria-label": `${downloadLabel} ${name}`, onClick: onDownload, className: "touch-hit", children: /* @__PURE__ */ jsx93(DownloadIcon, { "aria-hidden": true }) }) }),
9521
+ onRemove && /* @__PURE__ */ jsx93(Tooltip, { title: removeLabel, children: /* @__PURE__ */ jsx93(IconButton, { variant: "subtle", size: "sm", "aria-label": `${removeLabel} ${name}`, onClick: onRemove, className: "touch-hit", children: /* @__PURE__ */ jsx93(Trash2Icon, { "aria-hidden": true }) }) }),
9522
+ actions && /* @__PURE__ */ jsx93("div", { className: "ml-2 flex items-center gap-2", children: actions })
9475
9523
  ] })
9476
9524
  ]
9477
9525
  }
@@ -9480,7 +9528,7 @@ function FileRow({
9480
9528
 
9481
9529
  // src/components/lists/scored-row.tsx
9482
9530
  import clsx72 from "clsx";
9483
- import { jsx as jsx93, jsxs as jsxs64 } from "react/jsx-runtime";
9531
+ import { jsx as jsx94, jsxs as jsxs65 } from "react/jsx-runtime";
9484
9532
  var GAP3 = {
9485
9533
  sm: "gap-2",
9486
9534
  md: "gap-3",
@@ -9507,8 +9555,8 @@ function ScoredRow({
9507
9555
  align = "center",
9508
9556
  className
9509
9557
  }) {
9510
- return /* @__PURE__ */ jsxs64("div", { className: clsx72("flex w-full", ALIGN3[align], GAP3[gap], className), children: [
9511
- /* @__PURE__ */ jsxs64(
9558
+ return /* @__PURE__ */ jsxs65("div", { className: clsx72("flex w-full", ALIGN3[align], GAP3[gap], className), children: [
9559
+ /* @__PURE__ */ jsxs65(
9512
9560
  "div",
9513
9561
  {
9514
9562
  className: clsx72(
@@ -9520,14 +9568,14 @@ function ScoredRow({
9520
9568
  style: titleWidth ? { width: titleWidth } : void 0,
9521
9569
  children: [
9522
9570
  leading,
9523
- /* @__PURE__ */ jsxs64("div", { className: "min-w-0 flex-1", children: [
9524
- /* @__PURE__ */ jsx93("p", { className: "truncate text-body-sm font-medium leading-none text-default", children: title }),
9525
- subtitle && /* @__PURE__ */ jsx93("p", { className: "mt-0.5 truncate text-body-xs text-default-secondary", children: subtitle })
9571
+ /* @__PURE__ */ jsxs65("div", { className: "min-w-0 flex-1", children: [
9572
+ /* @__PURE__ */ jsx94("p", { className: "truncate text-body-sm font-medium leading-none text-default", children: title }),
9573
+ subtitle && /* @__PURE__ */ jsx94("p", { className: "mt-0.5 truncate text-body-xs text-default-secondary", children: subtitle })
9526
9574
  ] })
9527
9575
  ]
9528
9576
  }
9529
9577
  ),
9530
- aside && /* @__PURE__ */ jsx93(
9578
+ aside && /* @__PURE__ */ jsx94(
9531
9579
  "div",
9532
9580
  {
9533
9581
  className: clsx72("min-w-0", asideWidth ? "shrink-0" : "flex-1"),
@@ -9535,7 +9583,7 @@ function ScoredRow({
9535
9583
  children: aside
9536
9584
  }
9537
9585
  ),
9538
- meter && /* @__PURE__ */ jsx93(
9586
+ meter && /* @__PURE__ */ jsx94(
9539
9587
  "div",
9540
9588
  {
9541
9589
  className: clsx72("min-w-0", meterWidth ? "shrink-0" : "flex-1"),
@@ -9543,13 +9591,13 @@ function ScoredRow({
9543
9591
  children: meter
9544
9592
  }
9545
9593
  ),
9546
- trailing && /* @__PURE__ */ jsx93("div", { className: "shrink-0 text-right", style: trailingWidth ? { width: trailingWidth } : void 0, children: trailing })
9594
+ trailing && /* @__PURE__ */ jsx94("div", { className: "shrink-0 text-right", style: trailingWidth ? { width: trailingWidth } : void 0, children: trailing })
9547
9595
  ] });
9548
9596
  }
9549
9597
 
9550
9598
  // src/components/lists/numbered-list.tsx
9551
9599
  import clsx73 from "clsx";
9552
- import { jsx as jsx94, jsxs as jsxs65 } from "react/jsx-runtime";
9600
+ import { jsx as jsx95, jsxs as jsxs66 } from "react/jsx-runtime";
9553
9601
  var GAP4 = {
9554
9602
  sm: "gap-2",
9555
9603
  md: "gap-3"
@@ -9563,18 +9611,18 @@ function NumberedList({
9563
9611
  gap = "md",
9564
9612
  className
9565
9613
  }) {
9566
- return /* @__PURE__ */ jsx94("ol", { className: clsx73("flex list-none flex-col p-0", GAP4[gap], className), children: items.map((item, index) => {
9614
+ return /* @__PURE__ */ jsx95("ol", { className: clsx73("flex list-none flex-col p-0", GAP4[gap], className), children: items.map((item, index) => {
9567
9615
  const tone = !item.tone || item.tone === "auto" ? getScoreTone(item.score, { direction }) : item.tone;
9568
- return /* @__PURE__ */ jsxs65("li", { className: "flex w-full shrink-0 flex-col gap-1.5", children: [
9569
- /* @__PURE__ */ jsxs65("div", { className: "flex w-full items-center justify-between", children: [
9570
- /* @__PURE__ */ jsxs65("div", { className: "flex min-w-0 items-center gap-2.5", children: [
9571
- /* @__PURE__ */ jsx94("span", { className: "w-[14px] shrink-0 text-body-xs font-bold text-default-secondary", children: startAt + index }),
9572
- /* @__PURE__ */ jsxs65("div", { className: "flex min-w-0 flex-col gap-px", children: [
9573
- /* @__PURE__ */ jsx94("span", { className: "truncate text-body-sm font-medium leading-none text-default", children: item.title }),
9574
- item.subtitle && /* @__PURE__ */ jsx94("span", { className: "text-body-tiny text-default-tertiary", children: item.subtitle })
9616
+ return /* @__PURE__ */ jsxs66("li", { className: "flex w-full shrink-0 flex-col gap-1.5", children: [
9617
+ /* @__PURE__ */ jsxs66("div", { className: "flex w-full items-center justify-between", children: [
9618
+ /* @__PURE__ */ jsxs66("div", { className: "flex min-w-0 items-center gap-2.5", children: [
9619
+ /* @__PURE__ */ jsx95("span", { className: "w-[14px] shrink-0 text-body-xs font-bold text-default-secondary", children: startAt + index }),
9620
+ /* @__PURE__ */ jsxs66("div", { className: "flex min-w-0 flex-col gap-px", children: [
9621
+ /* @__PURE__ */ jsx95("span", { className: "truncate text-body-sm font-medium leading-none text-default", children: item.title }),
9622
+ item.subtitle && /* @__PURE__ */ jsx95("span", { className: "text-body-tiny text-default-tertiary", children: item.subtitle })
9575
9623
  ] })
9576
9624
  ] }),
9577
- /* @__PURE__ */ jsx94(
9625
+ /* @__PURE__ */ jsx95(
9578
9626
  ScoreValue,
9579
9627
  {
9580
9628
  value: item.score,
@@ -9585,20 +9633,20 @@ function NumberedList({
9585
9633
  }
9586
9634
  )
9587
9635
  ] }),
9588
- /* @__PURE__ */ jsx94(ProgressBar, { value: item.score, tone, "aria-label": `${item.title} score` })
9636
+ /* @__PURE__ */ jsx95(ProgressBar, { value: item.score, tone, "aria-label": `${item.title} score` })
9589
9637
  ] }, `${item.title}-${index}`);
9590
9638
  }) });
9591
9639
  }
9592
9640
 
9593
9641
  // src/components/lists/icon-text-row.tsx
9594
9642
  import clsx74 from "clsx";
9595
- import { jsx as jsx95, jsxs as jsxs66 } from "react/jsx-runtime";
9643
+ import { jsx as jsx96, jsxs as jsxs67 } from "react/jsx-runtime";
9596
9644
  function IconTextRow({ icon, title, detail, className }) {
9597
- return /* @__PURE__ */ jsxs66("div", { className: clsx74("flex items-start gap-3", className), children: [
9598
- /* @__PURE__ */ jsx95("span", { className: "flex size-9 shrink-0 items-center justify-center rounded-full bg-brand-tertiary text-brand", children: icon }),
9599
- /* @__PURE__ */ jsxs66("div", { className: "min-w-0", children: [
9600
- /* @__PURE__ */ jsx95("p", { className: "text-body-sm font-semibold text-default", children: title }),
9601
- /* @__PURE__ */ jsx95("p", { className: "mt-0.5 text-body-xs text-default-secondary", children: detail })
9645
+ return /* @__PURE__ */ jsxs67("div", { className: clsx74("flex items-start gap-3", className), children: [
9646
+ /* @__PURE__ */ jsx96("span", { className: "flex size-9 shrink-0 items-center justify-center rounded-full bg-brand-tertiary text-brand", children: icon }),
9647
+ /* @__PURE__ */ jsxs67("div", { className: "min-w-0", children: [
9648
+ /* @__PURE__ */ jsx96("p", { className: "text-body-sm font-semibold text-default", children: title }),
9649
+ /* @__PURE__ */ jsx96("p", { className: "mt-0.5 text-body-xs text-default-secondary", children: detail })
9602
9650
  ] })
9603
9651
  ] });
9604
9652
  }
@@ -9606,10 +9654,10 @@ function IconTextRow({ icon, title, detail, className }) {
9606
9654
  // src/components/lists/checklist-row.tsx
9607
9655
  import clsx75 from "clsx";
9608
9656
  import { CheckIcon as CheckIcon5 } from "lucide-react";
9609
- import { jsx as jsx96, jsxs as jsxs67 } from "react/jsx-runtime";
9657
+ import { jsx as jsx97, jsxs as jsxs68 } from "react/jsx-runtime";
9610
9658
  function ChecklistRow({ label, state, className }) {
9611
- return /* @__PURE__ */ jsxs67("li", { "data-state": state, className: clsx75("flex items-center gap-3", className), children: [
9612
- /* @__PURE__ */ jsx96("span", { className: "flex size-5 shrink-0 items-center justify-center", children: state === "done" ? /* @__PURE__ */ jsx96(CheckIcon5, { className: "size-4 text-positive", strokeWidth: 2.5, "aria-hidden": true }) : /* @__PURE__ */ jsx96(
9659
+ return /* @__PURE__ */ jsxs68("li", { "data-state": state, className: clsx75("flex items-center gap-3", className), children: [
9660
+ /* @__PURE__ */ jsx97("span", { className: "flex size-5 shrink-0 items-center justify-center", children: state === "done" ? /* @__PURE__ */ jsx97(CheckIcon5, { className: "size-4 text-positive", strokeWidth: 2.5, "aria-hidden": true }) : /* @__PURE__ */ jsx97(
9613
9661
  "span",
9614
9662
  {
9615
9663
  className: clsx75(
@@ -9618,7 +9666,7 @@ function ChecklistRow({ label, state, className }) {
9618
9666
  )
9619
9667
  }
9620
9668
  ) }),
9621
- /* @__PURE__ */ jsx96(
9669
+ /* @__PURE__ */ jsx97(
9622
9670
  "span",
9623
9671
  {
9624
9672
  className: clsx75(
@@ -9633,13 +9681,13 @@ function ChecklistRow({ label, state, className }) {
9633
9681
 
9634
9682
  // src/components/lists/steps-list.tsx
9635
9683
  import clsx76 from "clsx";
9636
- import { jsx as jsx97, jsxs as jsxs68 } from "react/jsx-runtime";
9684
+ import { jsx as jsx98, jsxs as jsxs69 } from "react/jsx-runtime";
9637
9685
  function StepsList({ steps, className }) {
9638
- return /* @__PURE__ */ jsx97("ol", { className: clsx76("flex flex-col gap-1.5", className), children: steps.map((step, i) => (
9686
+ return /* @__PURE__ */ jsx98("ol", { className: clsx76("flex flex-col gap-1.5", className), children: steps.map((step, i) => (
9639
9687
  // `text-[12px]` was off the type scale; 12 sits midway between Scale 01 (11) and
9640
9688
  // Scale 02 (13), so it rounds up to 13 like every other snap in this pass.
9641
- /* @__PURE__ */ jsxs68("li", { className: "flex items-start gap-2 text-body-xs text-default", children: [
9642
- /* @__PURE__ */ jsx97("span", { className: "mt-0.5 flex size-4 shrink-0 items-center justify-center rounded-full bg-brand-tertiary text-[9px] font-bold text-brand", children: i + 1 }),
9689
+ /* @__PURE__ */ jsxs69("li", { className: "flex items-start gap-2 text-body-xs text-default", children: [
9690
+ /* @__PURE__ */ jsx98("span", { className: "mt-0.5 flex size-4 shrink-0 items-center justify-center rounded-full bg-brand-tertiary text-[9px] font-bold text-brand", children: i + 1 }),
9643
9691
  step
9644
9692
  ] }, i)
9645
9693
  )) });
@@ -9647,7 +9695,7 @@ function StepsList({ steps, className }) {
9647
9695
 
9648
9696
  // src/components/lists/detail-item.tsx
9649
9697
  import clsx77 from "clsx";
9650
- import { jsx as jsx98, jsxs as jsxs69 } from "react/jsx-runtime";
9698
+ import { jsx as jsx99, jsxs as jsxs70 } from "react/jsx-runtime";
9651
9699
  var SPAN = {
9652
9700
  1: "",
9653
9701
  2: "sm:col-span-2",
@@ -9664,18 +9712,18 @@ function DetailItem({
9664
9712
  }) {
9665
9713
  const shown = value === null || value === void 0 || value === "" ? "\u2014" : value;
9666
9714
  if (layout === "inline") {
9667
- return /* @__PURE__ */ jsxs69("div", { className: clsx77("flex gap-3 text-body-xs", SPAN[span], className), children: [
9668
- /* @__PURE__ */ jsx98("span", { className: clsx77("shrink-0 text-default-secondary", labelWidth), children: label }),
9669
- /* @__PURE__ */ jsxs69("span", { className: "flex min-w-0 flex-1 flex-col gap-0.5 [overflow-wrap:anywhere]", children: [
9670
- /* @__PURE__ */ jsx98("span", { className: "text-default", children: shown }),
9671
- detail && /* @__PURE__ */ jsx98("span", { className: "text-default-secondary", children: detail })
9715
+ return /* @__PURE__ */ jsxs70("div", { className: clsx77("flex gap-3 text-body-xs", SPAN[span], className), children: [
9716
+ /* @__PURE__ */ jsx99("span", { className: clsx77("shrink-0 text-default-secondary", labelWidth), children: label }),
9717
+ /* @__PURE__ */ jsxs70("span", { className: "flex min-w-0 flex-1 flex-col gap-0.5 [overflow-wrap:anywhere]", children: [
9718
+ /* @__PURE__ */ jsx99("span", { className: "text-default", children: shown }),
9719
+ detail && /* @__PURE__ */ jsx99("span", { className: "text-default-secondary", children: detail })
9672
9720
  ] })
9673
9721
  ] });
9674
9722
  }
9675
- return /* @__PURE__ */ jsxs69("div", { className: clsx77("flex min-w-0 flex-col gap-0.5", SPAN[span], className), children: [
9676
- /* @__PURE__ */ jsx98("p", { className: "text-body-tiny font-medium text-default-secondary", children: label }),
9677
- /* @__PURE__ */ jsx98("p", { className: "text-body-sm font-medium text-default [overflow-wrap:anywhere]", children: shown }),
9678
- detail && /* @__PURE__ */ jsx98("p", { className: "text-body-xs text-default-secondary [overflow-wrap:anywhere]", children: detail })
9723
+ return /* @__PURE__ */ jsxs70("div", { className: clsx77("flex min-w-0 flex-col gap-0.5", SPAN[span], className), children: [
9724
+ /* @__PURE__ */ jsx99("p", { className: "text-body-tiny font-medium text-default-secondary", children: label }),
9725
+ /* @__PURE__ */ jsx99("p", { className: "text-body-sm font-medium text-default [overflow-wrap:anywhere]", children: shown }),
9726
+ detail && /* @__PURE__ */ jsx99("p", { className: "text-body-xs text-default-secondary [overflow-wrap:anywhere]", children: detail })
9679
9727
  ] });
9680
9728
  }
9681
9729
  var COLUMNS3 = {
@@ -9686,24 +9734,24 @@ var COLUMNS3 = {
9686
9734
  4: "grid-cols-2 sm:grid-cols-3 lg:grid-cols-4"
9687
9735
  };
9688
9736
  function DetailGrid({ children, columns = "auto", className }) {
9689
- return /* @__PURE__ */ jsx98("div", { className: clsx77("grid gap-x-4 gap-y-4", COLUMNS3[columns], className), children });
9737
+ return /* @__PURE__ */ jsx99("div", { className: clsx77("grid gap-x-4 gap-y-4", COLUMNS3[columns], className), children });
9690
9738
  }
9691
9739
 
9692
9740
  // src/components/lists/description-list.tsx
9693
9741
  import { useEffect as useEffect15, useState as useState25 } from "react";
9694
9742
  import clsx78 from "clsx";
9695
9743
  import { CheckIcon as CheckIcon6, CopyIcon } from "lucide-react";
9696
- import { jsx as jsx99, jsxs as jsxs70 } from "react/jsx-runtime";
9744
+ import { jsx as jsx100, jsxs as jsxs71 } from "react/jsx-runtime";
9697
9745
  function DescriptionList({ children, className }) {
9698
- return /* @__PURE__ */ jsx99("dl", { className: cn("flex flex-col gap-3", className), children });
9746
+ return /* @__PURE__ */ jsx100("dl", { className: cn("flex flex-col gap-3", className), children });
9699
9747
  }
9700
9748
  function DescriptionItem({ label, value, copyValue, className }) {
9701
9749
  const shown = value === null || value === void 0 || value === "" ? "\u2014" : value;
9702
- return /* @__PURE__ */ jsxs70("div", { className: cn("flex flex-wrap items-start gap-x-4 gap-y-0.5 text-body-xs", className), children: [
9703
- /* @__PURE__ */ jsx99("dt", { className: "shrink-0 grow-0 basis-28 text-default-secondary", children: label }),
9704
- /* @__PURE__ */ jsxs70("dd", { className: "flex min-w-0 flex-[1_1_10rem] items-start gap-1.5 text-default", children: [
9705
- /* @__PURE__ */ jsx99("span", { className: "min-w-0 [overflow-wrap:anywhere]", children: shown }),
9706
- copyValue && /* @__PURE__ */ jsx99(CopyButton, { value: copyValue, label: `Copy ${label.toLowerCase()}` })
9750
+ return /* @__PURE__ */ jsxs71("div", { className: cn("flex flex-wrap items-start gap-x-4 gap-y-0.5 text-body-xs", className), children: [
9751
+ /* @__PURE__ */ jsx100("dt", { className: "shrink-0 grow-0 basis-28 text-default-secondary", children: label }),
9752
+ /* @__PURE__ */ jsxs71("dd", { className: "flex min-w-0 flex-[1_1_10rem] items-start gap-1.5 text-default", children: [
9753
+ /* @__PURE__ */ jsx100("span", { className: "min-w-0 [overflow-wrap:anywhere]", children: shown }),
9754
+ copyValue && /* @__PURE__ */ jsx100(CopyButton, { value: copyValue, label: `Copy ${label.toLowerCase()}` })
9707
9755
  ] })
9708
9756
  ] });
9709
9757
  }
@@ -9716,8 +9764,8 @@ function CopyButton({ value, label, copiedLabel = "Copied", className }) {
9716
9764
  }, [copied]);
9717
9765
  return (
9718
9766
  // relative: keeps the sr-only status (absolutely positioned) inside a scrolling container.
9719
- /* @__PURE__ */ jsxs70("span", { className: "relative inline-flex", children: [
9720
- /* @__PURE__ */ jsx99(
9767
+ /* @__PURE__ */ jsxs71("span", { className: "relative inline-flex", children: [
9768
+ /* @__PURE__ */ jsx100(
9721
9769
  IconButton,
9722
9770
  {
9723
9771
  variant: "subtle",
@@ -9731,10 +9779,10 @@ function CopyButton({ value, label, copiedLabel = "Copied", className }) {
9731
9779
  () => void 0
9732
9780
  );
9733
9781
  },
9734
- children: copied ? /* @__PURE__ */ jsx99(CheckIcon6, { "aria-hidden": true }) : /* @__PURE__ */ jsx99(CopyIcon, { "aria-hidden": true })
9782
+ children: copied ? /* @__PURE__ */ jsx100(CheckIcon6, { "aria-hidden": true }) : /* @__PURE__ */ jsx100(CopyIcon, { "aria-hidden": true })
9735
9783
  }
9736
9784
  ),
9737
- /* @__PURE__ */ jsx99("span", { role: "status", className: "sr-only", children: copied ? copiedLabel : "" })
9785
+ /* @__PURE__ */ jsx100("span", { role: "status", className: "sr-only", children: copied ? copiedLabel : "" })
9738
9786
  ] })
9739
9787
  );
9740
9788
  }
@@ -9742,16 +9790,16 @@ function EmailText({ email, className }) {
9742
9790
  const at = email.lastIndexOf("@");
9743
9791
  const local = at > 0 ? email.slice(0, at) : email;
9744
9792
  const domain = at > 0 ? email.slice(at) : "";
9745
- return /* @__PURE__ */ jsxs70("span", { title: email, "data-slot": "email-text", className: clsx78("flex min-w-0 max-w-full", className), children: [
9746
- /* @__PURE__ */ jsx99("span", { className: "min-w-0 overflow-hidden text-ellipsis whitespace-nowrap", children: local }),
9747
- domain && /* @__PURE__ */ jsx99("span", { className: "min-w-0 overflow-hidden text-ellipsis whitespace-nowrap [flex-shrink:0.001]", children: domain })
9793
+ return /* @__PURE__ */ jsxs71("span", { title: email, "data-slot": "email-text", className: clsx78("flex min-w-0 max-w-full", className), children: [
9794
+ /* @__PURE__ */ jsx100("span", { className: "min-w-0 overflow-hidden text-ellipsis whitespace-nowrap", children: local }),
9795
+ domain && /* @__PURE__ */ jsx100("span", { className: "min-w-0 overflow-hidden text-ellipsis whitespace-nowrap [flex-shrink:0.001]", children: domain })
9748
9796
  ] });
9749
9797
  }
9750
9798
 
9751
9799
  // src/components/lists/checked-group-list.tsx
9752
9800
  import clsx79 from "clsx";
9753
9801
  import { CheckIcon as CheckIcon7 } from "lucide-react";
9754
- import { jsx as jsx100, jsxs as jsxs71 } from "react/jsx-runtime";
9802
+ import { jsx as jsx101, jsxs as jsxs72 } from "react/jsx-runtime";
9755
9803
  var COLUMNS4 = {
9756
9804
  1: "columns-1",
9757
9805
  2: "columns-2",
@@ -9765,13 +9813,13 @@ function CheckedGroupList({
9765
9813
  className
9766
9814
  }) {
9767
9815
  if (groups.length === 0) {
9768
- return /* @__PURE__ */ jsx100("p", { className: clsx79("text-body-xs text-default-secondary", className), children: emptyLabel });
9816
+ return /* @__PURE__ */ jsx101("p", { className: clsx79("text-body-xs text-default-secondary", className), children: emptyLabel });
9769
9817
  }
9770
- const glyph = icon === void 0 ? /* @__PURE__ */ jsx100(CheckIcon7, { className: "size-3.5", strokeWidth: 2.5, "aria-hidden": true }) : icon;
9771
- return /* @__PURE__ */ jsx100("div", { className: clsx79(COLUMNS4[columns], "gap-x-6", className), children: groups.map((group) => /* @__PURE__ */ jsxs71("div", { className: "mb-5 break-inside-avoid last:mb-0", children: [
9772
- /* @__PURE__ */ jsx100("p", { className: "mb-2 text-body-tiny font-semibold uppercase tracking-wide text-default-secondary", children: group.label }),
9773
- /* @__PURE__ */ jsx100("ul", { className: "space-y-1.5", children: group.items.map((item) => /* @__PURE__ */ jsxs71("li", { className: "flex items-center gap-2 text-body-xs text-default", children: [
9774
- glyph && /* @__PURE__ */ jsx100("span", { className: "shrink-0", children: glyph }),
9818
+ const glyph = icon === void 0 ? /* @__PURE__ */ jsx101(CheckIcon7, { className: "size-3.5", strokeWidth: 2.5, "aria-hidden": true }) : icon;
9819
+ return /* @__PURE__ */ jsx101("div", { className: clsx79(COLUMNS4[columns], "gap-x-6", className), children: groups.map((group) => /* @__PURE__ */ jsxs72("div", { className: "mb-5 break-inside-avoid last:mb-0", children: [
9820
+ /* @__PURE__ */ jsx101("p", { className: "mb-2 text-body-tiny font-semibold uppercase tracking-wide text-default-secondary", children: group.label }),
9821
+ /* @__PURE__ */ jsx101("ul", { className: "space-y-1.5", children: group.items.map((item) => /* @__PURE__ */ jsxs72("li", { className: "flex items-center gap-2 text-body-xs text-default", children: [
9822
+ glyph && /* @__PURE__ */ jsx101("span", { className: "shrink-0", children: glyph }),
9775
9823
  item
9776
9824
  ] }, item)) })
9777
9825
  ] }, group.label)) });
@@ -9781,7 +9829,7 @@ function CheckedGroupList({
9781
9829
  import { useMemo as useMemo14, useRef as useRef17, useState as useState26 } from "react";
9782
9830
  import clsx80 from "clsx";
9783
9831
  import { ChevronRightIcon as ChevronRightIcon7 } from "lucide-react";
9784
- import { jsx as jsx101, jsxs as jsxs72 } from "react/jsx-runtime";
9832
+ import { jsx as jsx102, jsxs as jsxs73 } from "react/jsx-runtime";
9785
9833
  var ROW = {
9786
9834
  sm: "min-h-8 py-1 text-body-xs",
9787
9835
  md: "min-h-10 py-2 text-body-sm"
@@ -9885,7 +9933,7 @@ function TreeView({
9885
9933
  if (!node) return null;
9886
9934
  const children = getChildren?.(item) ?? [];
9887
9935
  const isSelected = selected === id;
9888
- return /* @__PURE__ */ jsxs72(
9936
+ return /* @__PURE__ */ jsxs73(
9889
9937
  "li",
9890
9938
  {
9891
9939
  role: "treeitem",
@@ -9907,7 +9955,7 @@ function TreeView({
9907
9955
  },
9908
9956
  className: "outline-none [&:focus-visible>div]:ring-2 [&:focus-visible>div]:ring-inset [&:focus-visible>div]:ring-brand",
9909
9957
  children: [
9910
- /* @__PURE__ */ jsxs72(
9958
+ /* @__PURE__ */ jsxs73(
9911
9959
  "div",
9912
9960
  {
9913
9961
  onClick: () => {
@@ -9925,7 +9973,7 @@ function TreeView({
9925
9973
  // Not a button: the treeitem is the one tab stop, and Left/Right already toggle.
9926
9974
  // A pointer user still needs a target that toggles without selecting.
9927
9975
  // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
9928
- /* @__PURE__ */ jsx101(
9976
+ /* @__PURE__ */ jsx102(
9929
9977
  "span",
9930
9978
  {
9931
9979
  "aria-hidden": true,
@@ -9936,11 +9984,11 @@ function TreeView({
9936
9984
  focus(id);
9937
9985
  },
9938
9986
  className: "flex size-5 shrink-0 items-center justify-center rounded text-icon-default-secondary hover:bg-default-tertiary",
9939
- children: /* @__PURE__ */ jsx101(ChevronRightIcon7, { className: clsx80("size-3.5 transition-transform motion-reduce:transition-none", node.expanded && "rotate-90") })
9987
+ children: /* @__PURE__ */ jsx102(ChevronRightIcon7, { className: clsx80("size-3.5 transition-transform motion-reduce:transition-none", node.expanded && "rotate-90") })
9940
9988
  }
9941
9989
  )
9942
- ) : /* @__PURE__ */ jsx101("span", { "aria-hidden": true, className: "size-5 shrink-0" }),
9943
- /* @__PURE__ */ jsx101("div", { className: "min-w-0 flex-1", children: renderItem(item, {
9990
+ ) : /* @__PURE__ */ jsx102("span", { "aria-hidden": true, className: "size-5 shrink-0" }),
9991
+ /* @__PURE__ */ jsx102("div", { className: "min-w-0 flex-1", children: renderItem(item, {
9944
9992
  level,
9945
9993
  hasChildren: node.hasChildren,
9946
9994
  expanded: node.expanded,
@@ -9949,13 +9997,13 @@ function TreeView({
9949
9997
  ]
9950
9998
  }
9951
9999
  ),
9952
- node.expanded && /* @__PURE__ */ jsx101("ul", { role: "group", className: "m-0 list-none p-0", children: renderLevel(children, level + 1) })
10000
+ node.expanded && /* @__PURE__ */ jsx102("ul", { role: "group", className: "m-0 list-none p-0", children: renderLevel(children, level + 1) })
9953
10001
  ]
9954
10002
  },
9955
10003
  id
9956
10004
  );
9957
10005
  });
9958
- return /* @__PURE__ */ jsx101("ul", { role: "tree", "aria-label": label, className: clsx80("m-0 flex list-none flex-col p-0", className), children: renderLevel(items, 1) });
10006
+ return /* @__PURE__ */ jsx102("ul", { role: "tree", "aria-label": label, className: clsx80("m-0 flex list-none flex-col p-0", className), children: renderLevel(items, 1) });
9959
10007
  }
9960
10008
 
9961
10009
  // src/index.tsx
@@ -9964,7 +10012,7 @@ export * from "./data-table.js";
9964
10012
  // src/components/feedback/inline-alert.tsx
9965
10013
  import clsx81 from "clsx";
9966
10014
  import { CircleCheckBigIcon as CircleCheckBigIcon2, InfoIcon as InfoIcon2, TriangleAlertIcon as TriangleAlertIcon2 } from "lucide-react";
9967
- import { jsx as jsx102, jsxs as jsxs73 } from "react/jsx-runtime";
10015
+ import { jsx as jsx103, jsxs as jsxs74 } from "react/jsx-runtime";
9968
10016
  var toneStyles3 = {
9969
10017
  info: "border-brand-tertiary bg-brand-tertiary text-brand",
9970
10018
  warning: "border-warning-tertiary bg-warning-tertiary text-warning",
@@ -9973,15 +10021,15 @@ var toneStyles3 = {
9973
10021
  neutral: "border-default bg-default text-default-secondary"
9974
10022
  };
9975
10023
  var toneIcons = {
9976
- info: /* @__PURE__ */ jsx102(InfoIcon2, { className: "size-4" }),
9977
- warning: /* @__PURE__ */ jsx102(TriangleAlertIcon2, { className: "size-4" }),
9978
- danger: /* @__PURE__ */ jsx102(TriangleAlertIcon2, { className: "size-4" }),
9979
- positive: /* @__PURE__ */ jsx102(CircleCheckBigIcon2, { className: "size-4" }),
9980
- neutral: /* @__PURE__ */ jsx102(InfoIcon2, { className: "size-4 text-icon-default-secondary" })
10024
+ info: /* @__PURE__ */ jsx103(InfoIcon2, { className: "size-4" }),
10025
+ warning: /* @__PURE__ */ jsx103(TriangleAlertIcon2, { className: "size-4" }),
10026
+ danger: /* @__PURE__ */ jsx103(TriangleAlertIcon2, { className: "size-4" }),
10027
+ positive: /* @__PURE__ */ jsx103(CircleCheckBigIcon2, { className: "size-4" }),
10028
+ neutral: /* @__PURE__ */ jsx103(InfoIcon2, { className: "size-4 text-icon-default-secondary" })
9981
10029
  };
9982
10030
  function InlineAlert({ tone, children, icon, role, className }) {
9983
10031
  const glyph = icon === void 0 ? toneIcons[tone] : icon;
9984
- return /* @__PURE__ */ jsxs73(
10032
+ return /* @__PURE__ */ jsxs74(
9985
10033
  "div",
9986
10034
  {
9987
10035
  "data-tone": tone,
@@ -9992,8 +10040,8 @@ function InlineAlert({ tone, children, icon, role, className }) {
9992
10040
  className
9993
10041
  ),
9994
10042
  children: [
9995
- glyph && /* @__PURE__ */ jsx102("span", { "aria-hidden": true, className: "mt-px shrink-0", children: glyph }),
9996
- /* @__PURE__ */ jsx102("div", { className: "min-w-0", children })
10043
+ glyph && /* @__PURE__ */ jsx103("span", { "aria-hidden": true, className: "mt-px shrink-0", children: glyph }),
10044
+ /* @__PURE__ */ jsx103("div", { className: "min-w-0", children })
9997
10045
  ]
9998
10046
  }
9999
10047
  );
@@ -10001,7 +10049,7 @@ function InlineAlert({ tone, children, icon, role, className }) {
10001
10049
 
10002
10050
  // src/components/feedback/error-boundary.tsx
10003
10051
  import { Component } from "react";
10004
- import { jsx as jsx103 } from "react/jsx-runtime";
10052
+ import { jsx as jsx104 } from "react/jsx-runtime";
10005
10053
  var ErrorBoundary = class extends Component {
10006
10054
  constructor() {
10007
10055
  super(...arguments);
@@ -10021,7 +10069,7 @@ var ErrorBoundary = class extends Component {
10021
10069
  }
10022
10070
  render() {
10023
10071
  if (!this.state.error) return this.props.children;
10024
- return this.props.fallback ?? /* @__PURE__ */ jsx103(
10072
+ return this.props.fallback ?? /* @__PURE__ */ jsx104(
10025
10073
  "div",
10026
10074
  {
10027
10075
  role: "status",
@@ -10037,7 +10085,7 @@ var ErrorBoundary = class extends Component {
10037
10085
  import { forwardRef as forwardRef33, useId as useId21 } from "react";
10038
10086
  import clsx82 from "clsx";
10039
10087
  import { CircleCheckBigIcon as CircleCheckBigIcon3, InfoIcon as InfoIcon3, TriangleAlertIcon as TriangleAlertIcon3, XIcon as XIcon8 } from "lucide-react";
10040
- import { jsx as jsx104, jsxs as jsxs74 } from "react/jsx-runtime";
10088
+ import { jsx as jsx105, jsxs as jsxs75 } from "react/jsx-runtime";
10041
10089
  var TONE_STYLES3 = {
10042
10090
  info: "border-brand-tertiary bg-brand-tertiary text-default",
10043
10091
  positive: "border-positive-tertiary bg-positive-tertiary text-default",
@@ -10053,11 +10101,11 @@ var TONE_ICON_COLOR = {
10053
10101
  neutral: "text-icon-default-secondary"
10054
10102
  };
10055
10103
  var TONE_ICON2 = {
10056
- info: /* @__PURE__ */ jsx104(InfoIcon3, { "aria-hidden": true, className: "size-5" }),
10057
- positive: /* @__PURE__ */ jsx104(CircleCheckBigIcon3, { "aria-hidden": true, className: "size-5" }),
10058
- warning: /* @__PURE__ */ jsx104(TriangleAlertIcon3, { "aria-hidden": true, className: "size-5" }),
10059
- danger: /* @__PURE__ */ jsx104(TriangleAlertIcon3, { "aria-hidden": true, className: "size-5" }),
10060
- neutral: /* @__PURE__ */ jsx104(InfoIcon3, { "aria-hidden": true, className: "size-5" })
10104
+ info: /* @__PURE__ */ jsx105(InfoIcon3, { "aria-hidden": true, className: "size-5" }),
10105
+ positive: /* @__PURE__ */ jsx105(CircleCheckBigIcon3, { "aria-hidden": true, className: "size-5" }),
10106
+ warning: /* @__PURE__ */ jsx105(TriangleAlertIcon3, { "aria-hidden": true, className: "size-5" }),
10107
+ danger: /* @__PURE__ */ jsx105(TriangleAlertIcon3, { "aria-hidden": true, className: "size-5" }),
10108
+ neutral: /* @__PURE__ */ jsx105(InfoIcon3, { "aria-hidden": true, className: "size-5" })
10061
10109
  };
10062
10110
  var Banner = forwardRef33(function Banner2({
10063
10111
  title,
@@ -10072,7 +10120,7 @@ var Banner = forwardRef33(function Banner2({
10072
10120
  }, ref) {
10073
10121
  const titleId = useId21();
10074
10122
  const glyph = icon === void 0 ? TONE_ICON2[tone] : icon;
10075
- return /* @__PURE__ */ jsxs74(
10123
+ return /* @__PURE__ */ jsxs75(
10076
10124
  "div",
10077
10125
  {
10078
10126
  "data-tone": tone,
@@ -10088,13 +10136,13 @@ var Banner = forwardRef33(function Banner2({
10088
10136
  ),
10089
10137
  ...rest,
10090
10138
  children: [
10091
- glyph && /* @__PURE__ */ jsx104("span", { "aria-hidden": true, className: clsx82("mt-px shrink-0", TONE_ICON_COLOR[tone]), children: glyph }),
10092
- /* @__PURE__ */ jsxs74("div", { className: "min-w-0 flex-1", children: [
10093
- /* @__PURE__ */ jsx104("p", { id: titleId, className: "text-body-sm font-semibold text-default", children: title }),
10094
- children && /* @__PURE__ */ jsx104("div", { className: "mt-1 text-body-xs text-default-secondary", children }),
10095
- action && /* @__PURE__ */ jsx104("div", { className: "mt-3 flex items-center gap-2", children: action })
10139
+ glyph && /* @__PURE__ */ jsx105("span", { "aria-hidden": true, className: clsx82("mt-px shrink-0", TONE_ICON_COLOR[tone]), children: glyph }),
10140
+ /* @__PURE__ */ jsxs75("div", { className: "min-w-0 flex-1", children: [
10141
+ /* @__PURE__ */ jsx105("p", { id: titleId, className: "text-body-sm font-semibold text-default", children: title }),
10142
+ children && /* @__PURE__ */ jsx105("div", { className: "mt-1 text-body-xs text-default-secondary", children }),
10143
+ action && /* @__PURE__ */ jsx105("div", { className: "mt-3 flex items-center gap-2", children: action })
10096
10144
  ] }),
10097
- onDismiss && /* @__PURE__ */ jsx104(
10145
+ onDismiss && /* @__PURE__ */ jsx105(
10098
10146
  IconButton,
10099
10147
  {
10100
10148
  variant: "subtle",
@@ -10102,7 +10150,7 @@ var Banner = forwardRef33(function Banner2({
10102
10150
  "aria-label": typeof title === "string" ? `Dismiss: ${title}` : "Dismiss",
10103
10151
  onClick: onDismiss,
10104
10152
  className: "-mr-1 -mt-1 shrink-0",
10105
- children: /* @__PURE__ */ jsx104(XIcon8, { "aria-hidden": true, size: 16 })
10153
+ children: /* @__PURE__ */ jsx105(XIcon8, { "aria-hidden": true, size: 16 })
10106
10154
  }
10107
10155
  )
10108
10156
  ]
@@ -10122,7 +10170,7 @@ import {
10122
10170
  } from "react";
10123
10171
  import clsx83 from "clsx";
10124
10172
  import { CircleCheckBigIcon as CircleCheckBigIcon4, InfoIcon as InfoIcon4, TriangleAlertIcon as TriangleAlertIcon4, XIcon as XIcon9 } from "lucide-react";
10125
- import { jsx as jsx105, jsxs as jsxs75 } from "react/jsx-runtime";
10173
+ import { jsx as jsx106, jsxs as jsxs76 } from "react/jsx-runtime";
10126
10174
  var ToastContext = createContext16(null);
10127
10175
  function useToast() {
10128
10176
  const context = useContext16(ToastContext);
@@ -10130,11 +10178,11 @@ function useToast() {
10130
10178
  return context;
10131
10179
  }
10132
10180
  var TONE_ICON3 = {
10133
- info: /* @__PURE__ */ jsx105(InfoIcon4, { "aria-hidden": true, className: "size-4" }),
10134
- positive: /* @__PURE__ */ jsx105(CircleCheckBigIcon4, { "aria-hidden": true, className: "size-4" }),
10135
- warning: /* @__PURE__ */ jsx105(TriangleAlertIcon4, { "aria-hidden": true, className: "size-4" }),
10136
- danger: /* @__PURE__ */ jsx105(TriangleAlertIcon4, { "aria-hidden": true, className: "size-4" }),
10137
- neutral: /* @__PURE__ */ jsx105(InfoIcon4, { "aria-hidden": true, className: "size-4" })
10181
+ info: /* @__PURE__ */ jsx106(InfoIcon4, { "aria-hidden": true, className: "size-4" }),
10182
+ positive: /* @__PURE__ */ jsx106(CircleCheckBigIcon4, { "aria-hidden": true, className: "size-4" }),
10183
+ warning: /* @__PURE__ */ jsx106(TriangleAlertIcon4, { "aria-hidden": true, className: "size-4" }),
10184
+ danger: /* @__PURE__ */ jsx106(TriangleAlertIcon4, { "aria-hidden": true, className: "size-4" }),
10185
+ neutral: /* @__PURE__ */ jsx106(InfoIcon4, { "aria-hidden": true, className: "size-4" })
10138
10186
  };
10139
10187
  var TONE_ICON_COLOR2 = {
10140
10188
  info: "text-icon-brand",
@@ -10143,7 +10191,7 @@ var TONE_ICON_COLOR2 = {
10143
10191
  danger: "text-icon-danger",
10144
10192
  neutral: "text-icon-default-secondary"
10145
10193
  };
10146
- var POSITION = {
10194
+ var POSITION2 = {
10147
10195
  "top-left": "top-[var(--toaster-mobile-offset)] md:top-[var(--toaster-offset)] left-4 items-start",
10148
10196
  "top-center": "top-[var(--toaster-mobile-offset)] md:top-[var(--toaster-offset)] left-1/2 -translate-x-1/2 items-center",
10149
10197
  "top-right": "top-[var(--toaster-mobile-offset)] md:top-[var(--toaster-offset)] right-4 items-end",
@@ -10202,9 +10250,9 @@ function Toaster({
10202
10250
  };
10203
10251
  }, []);
10204
10252
  const context = useMemo15(() => ({ toast, dismiss, dismissAll }), [toast, dismiss, dismissAll]);
10205
- return /* @__PURE__ */ jsxs75(ToastContext.Provider, { value: context, children: [
10253
+ return /* @__PURE__ */ jsxs76(ToastContext.Provider, { value: context, children: [
10206
10254
  children,
10207
- /* @__PURE__ */ jsx105(Portal, { children: /* @__PURE__ */ jsx105(
10255
+ /* @__PURE__ */ jsx106(Portal, { children: /* @__PURE__ */ jsx106(
10208
10256
  "div",
10209
10257
  {
10210
10258
  "aria-live": "polite",
@@ -10212,20 +10260,20 @@ function Toaster({
10212
10260
  ...{ [TOASTER_ATTRIBUTE]: "" },
10213
10261
  className: clsx83(
10214
10262
  "pointer-events-none fixed z-toast flex w-[calc(100%-2rem)] max-w-[380px] flex-col gap-2",
10215
- POSITION[position]
10263
+ POSITION2[position]
10216
10264
  ),
10217
10265
  style: {
10218
10266
  "--toaster-offset": toLength(offset),
10219
10267
  "--toaster-mobile-offset": toLength(mobileOffset ?? offset)
10220
10268
  },
10221
- children: toasts.map((entry) => /* @__PURE__ */ jsx105(ToastItem, { toast: entry, onDismiss: () => dismiss(entry.id) }, entry.id))
10269
+ children: toasts.map((entry) => /* @__PURE__ */ jsx106(ToastItem, { toast: entry, onDismiss: () => dismiss(entry.id) }, entry.id))
10222
10270
  }
10223
10271
  ) })
10224
10272
  ] });
10225
10273
  }
10226
10274
  function ToastItem({ toast, onDismiss }) {
10227
10275
  const tone = toast.tone ?? "info";
10228
- return /* @__PURE__ */ jsxs75(
10276
+ return /* @__PURE__ */ jsxs76(
10229
10277
  "div",
10230
10278
  {
10231
10279
  role: tone === "danger" ? "alert" : "status",
@@ -10234,13 +10282,13 @@ function ToastItem({ toast, onDismiss }) {
10234
10282
  "bg-default p-4 shadow-400"
10235
10283
  ),
10236
10284
  children: [
10237
- /* @__PURE__ */ jsx105("span", { "aria-hidden": true, className: clsx83("mt-px shrink-0", TONE_ICON_COLOR2[tone]), children: TONE_ICON3[tone] }),
10238
- /* @__PURE__ */ jsxs75("div", { className: "min-w-0 flex-1", children: [
10239
- /* @__PURE__ */ jsx105("p", { className: "text-body-sm font-semibold text-default", children: toast.title }),
10240
- toast.description && /* @__PURE__ */ jsx105("p", { className: "mt-0.5 text-body-xs text-default-secondary", children: toast.description }),
10241
- toast.action && /* @__PURE__ */ jsx105("div", { className: "mt-2 flex items-center gap-2", children: toast.action })
10285
+ /* @__PURE__ */ jsx106("span", { "aria-hidden": true, className: clsx83("mt-px shrink-0", TONE_ICON_COLOR2[tone]), children: TONE_ICON3[tone] }),
10286
+ /* @__PURE__ */ jsxs76("div", { className: "min-w-0 flex-1", children: [
10287
+ /* @__PURE__ */ jsx106("p", { className: "text-body-sm font-semibold text-default", children: toast.title }),
10288
+ toast.description && /* @__PURE__ */ jsx106("p", { className: "mt-0.5 text-body-xs text-default-secondary", children: toast.description }),
10289
+ toast.action && /* @__PURE__ */ jsx106("div", { className: "mt-2 flex items-center gap-2", children: toast.action })
10242
10290
  ] }),
10243
- /* @__PURE__ */ jsx105(
10291
+ /* @__PURE__ */ jsx106(
10244
10292
  IconButton,
10245
10293
  {
10246
10294
  variant: "subtle",
@@ -10248,7 +10296,7 @@ function ToastItem({ toast, onDismiss }) {
10248
10296
  "aria-label": typeof toast.title === "string" ? `Dismiss: ${toast.title}` : "Dismiss",
10249
10297
  onClick: onDismiss,
10250
10298
  className: "-mr-1 -mt-1 shrink-0",
10251
- children: /* @__PURE__ */ jsx105(XIcon9, { "aria-hidden": true, size: 14 })
10299
+ children: /* @__PURE__ */ jsx106(XIcon9, { "aria-hidden": true, size: 14 })
10252
10300
  }
10253
10301
  )
10254
10302
  ]
@@ -10259,23 +10307,23 @@ function ToastItem({ toast, onDismiss }) {
10259
10307
  // src/components/forms/password-input.tsx
10260
10308
  import { forwardRef as forwardRef34, useState as useState28 } from "react";
10261
10309
  import { EyeIcon as EyeIcon2, EyeOffIcon as EyeOffIcon2 } from "lucide-react";
10262
- import { jsx as jsx106 } from "react/jsx-runtime";
10310
+ import { jsx as jsx107 } from "react/jsx-runtime";
10263
10311
  var PasswordInput = forwardRef34(function PasswordInput2(props, ref) {
10264
10312
  const [visible, setVisible] = useState28(false);
10265
- return /* @__PURE__ */ jsx106(
10313
+ return /* @__PURE__ */ jsx107(
10266
10314
  Input,
10267
10315
  {
10268
10316
  ref,
10269
10317
  ...props,
10270
10318
  type: visible ? "text" : "password",
10271
- trailingAction: /* @__PURE__ */ jsx106(
10319
+ trailingAction: /* @__PURE__ */ jsx107(
10272
10320
  "button",
10273
10321
  {
10274
10322
  type: "button",
10275
10323
  "aria-label": visible ? "Hide password" : "Show password",
10276
10324
  onClick: () => setVisible((v) => !v),
10277
10325
  className: "flex items-center justify-center rounded transition-colors hover:text-default focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand",
10278
- children: visible ? /* @__PURE__ */ jsx106(EyeOffIcon2, { "aria-hidden": true, className: "size-4" }) : /* @__PURE__ */ jsx106(EyeIcon2, { "aria-hidden": true, className: "size-4" })
10326
+ children: visible ? /* @__PURE__ */ jsx107(EyeOffIcon2, { "aria-hidden": true, className: "size-4" }) : /* @__PURE__ */ jsx107(EyeIcon2, { "aria-hidden": true, className: "size-4" })
10279
10327
  }
10280
10328
  )
10281
10329
  }
@@ -10285,12 +10333,12 @@ var PasswordInput = forwardRef34(function PasswordInput2(props, ref) {
10285
10333
  // src/components/ai/ai-chat-bar.tsx
10286
10334
  import clsx84 from "clsx";
10287
10335
  import { ArrowRightIcon as ArrowRightIcon2, SearchIcon as SearchIcon2 } from "lucide-react";
10288
- import { jsx as jsx107, jsxs as jsxs76 } from "react/jsx-runtime";
10336
+ import { jsx as jsx108, jsxs as jsxs77 } from "react/jsx-runtime";
10289
10337
  function AIChatBar({
10290
10338
  placeholder = "Ask Intelligence about any entity, supplier, or risk\u2026",
10291
10339
  className
10292
10340
  }) {
10293
- return /* @__PURE__ */ jsxs76(
10341
+ return /* @__PURE__ */ jsxs77(
10294
10342
  "div",
10295
10343
  {
10296
10344
  className: clsx84(
@@ -10298,16 +10346,16 @@ function AIChatBar({
10298
10346
  className
10299
10347
  ),
10300
10348
  children: [
10301
- /* @__PURE__ */ jsx107("span", { "aria-hidden": true, className: "shrink-0 text-icon-default-secondary", children: /* @__PURE__ */ jsx107(SearchIcon2, { className: "size-4" }) }),
10302
- /* @__PURE__ */ jsx107("p", { className: "flex-1 text-body-sm text-default-tertiary truncate", children: placeholder }),
10303
- /* @__PURE__ */ jsxs76(
10349
+ /* @__PURE__ */ jsx108("span", { "aria-hidden": true, className: "shrink-0 text-icon-default-secondary", children: /* @__PURE__ */ jsx108(SearchIcon2, { className: "size-4" }) }),
10350
+ /* @__PURE__ */ jsx108("p", { className: "flex-1 text-body-sm text-default-tertiary truncate", children: placeholder }),
10351
+ /* @__PURE__ */ jsxs77(
10304
10352
  "button",
10305
10353
  {
10306
10354
  type: "button",
10307
10355
  className: "inline-flex shrink-0 items-center gap-2 rounded-xl bg-brand px-4 py-3 text-body-sm font-semibold text-brand-on-brand hover:bg-brand-hover transition-colors",
10308
10356
  children: [
10309
10357
  "Ask",
10310
- /* @__PURE__ */ jsx107(ArrowRightIcon2, { "aria-hidden": true, className: "size-4" })
10358
+ /* @__PURE__ */ jsx108(ArrowRightIcon2, { "aria-hidden": true, className: "size-4" })
10311
10359
  ]
10312
10360
  }
10313
10361
  )
@@ -10319,9 +10367,9 @@ function AIChatBar({
10319
10367
  // src/components/ai/ai-suggestion-chip.tsx
10320
10368
  import clsx85 from "clsx";
10321
10369
  import { ArrowRightIcon as ArrowRightIcon3, CpuIcon } from "lucide-react";
10322
- import { jsx as jsx108, jsxs as jsxs77 } from "react/jsx-runtime";
10370
+ import { jsx as jsx109, jsxs as jsxs78 } from "react/jsx-runtime";
10323
10371
  function AISuggestionChip({ prompt, onClick, className }) {
10324
- return /* @__PURE__ */ jsxs77(
10372
+ return /* @__PURE__ */ jsxs78(
10325
10373
  "button",
10326
10374
  {
10327
10375
  type: "button",
@@ -10331,9 +10379,9 @@ function AISuggestionChip({ prompt, onClick, className }) {
10331
10379
  className
10332
10380
  ),
10333
10381
  children: [
10334
- /* @__PURE__ */ jsx108("span", { "aria-hidden": true, className: "shrink-0 text-icon-brand", children: /* @__PURE__ */ jsx108(CpuIcon, { className: "size-4" }) }),
10335
- /* @__PURE__ */ jsx108("span", { className: "flex-1 text-body-sm text-default truncate", children: prompt }),
10336
- /* @__PURE__ */ jsx108("span", { "aria-hidden": true, className: "shrink-0 text-icon-default-secondary", children: /* @__PURE__ */ jsx108(ArrowRightIcon3, { className: "size-3.5", strokeWidth: 2.5 }) })
10382
+ /* @__PURE__ */ jsx109("span", { "aria-hidden": true, className: "shrink-0 text-icon-brand", children: /* @__PURE__ */ jsx109(CpuIcon, { className: "size-4" }) }),
10383
+ /* @__PURE__ */ jsx109("span", { className: "flex-1 text-body-sm text-default truncate", children: prompt }),
10384
+ /* @__PURE__ */ jsx109("span", { "aria-hidden": true, className: "shrink-0 text-icon-default-secondary", children: /* @__PURE__ */ jsx109(ArrowRightIcon3, { className: "size-3.5", strokeWidth: 2.5 }) })
10337
10385
  ]
10338
10386
  }
10339
10387
  );
@@ -10341,18 +10389,18 @@ function AISuggestionChip({ prompt, onClick, className }) {
10341
10389
 
10342
10390
  // src/components/ai/quick-actions-bar.tsx
10343
10391
  import clsx86 from "clsx";
10344
- import { jsx as jsx109 } from "react/jsx-runtime";
10392
+ import { jsx as jsx110 } from "react/jsx-runtime";
10345
10393
  function QuickActionsBar({ actions, active, onSelect, className }) {
10346
- return /* @__PURE__ */ jsx109("div", { className: clsx86("flex flex-wrap items-center gap-3", className), children: actions.map((action) => {
10394
+ return /* @__PURE__ */ jsx110("div", { className: clsx86("flex flex-wrap items-center gap-3", className), children: actions.map((action) => {
10347
10395
  const isActive = active === action.value;
10348
- return /* @__PURE__ */ jsx109(
10396
+ return /* @__PURE__ */ jsx110(
10349
10397
  "button",
10350
10398
  {
10351
10399
  type: "button",
10352
10400
  "aria-pressed": isActive,
10353
10401
  onClick: () => onSelect?.(action.value),
10354
10402
  className: "rounded-full focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand focus-visible:ring-offset-1 focus-visible:ring-offset-default",
10355
- children: /* @__PURE__ */ jsx109(TagPill, { label: action.label, tone: isActive ? "brand" : "default" })
10403
+ children: /* @__PURE__ */ jsx110(TagPill, { label: action.label, tone: isActive ? "brand" : "default" })
10356
10404
  },
10357
10405
  action.value
10358
10406
  );
@@ -10362,23 +10410,23 @@ function QuickActionsBar({ actions, active, onSelect, className }) {
10362
10410
  // src/components/ai/chat.tsx
10363
10411
  import clsx87 from "clsx";
10364
10412
  import { CpuIcon as CpuIcon2 } from "lucide-react";
10365
- import { jsx as jsx110, jsxs as jsxs78 } from "react/jsx-runtime";
10413
+ import { jsx as jsx111, jsxs as jsxs79 } from "react/jsx-runtime";
10366
10414
  function AiAvatar({ className, icon }) {
10367
- return /* @__PURE__ */ jsx110(
10415
+ return /* @__PURE__ */ jsx111(
10368
10416
  "span",
10369
10417
  {
10370
10418
  "aria-hidden": true,
10371
10419
  className: cn("flex size-8 shrink-0 items-center justify-center rounded-full bg-brand text-icon-brand-on-brand", className),
10372
- children: icon ?? /* @__PURE__ */ jsx110(CpuIcon2, { className: "size-3.5" })
10420
+ children: icon ?? /* @__PURE__ */ jsx111(CpuIcon2, { className: "size-3.5" })
10373
10421
  }
10374
10422
  );
10375
10423
  }
10376
10424
  function TypingIndicator({ label = "Assistant is typing", className }) {
10377
- return /* @__PURE__ */ jsxs78("div", { role: "status", "aria-live": "polite", className: cn("flex items-center gap-3", className), children: [
10378
- /* @__PURE__ */ jsx110(AiAvatar, {}),
10379
- /* @__PURE__ */ jsxs78("div", { className: "flex items-center gap-2 rounded-2xl rounded-tl-sm border border-default bg-default-secondary px-5 py-3", children: [
10380
- /* @__PURE__ */ jsx110("span", { className: "text-body-xs text-default-secondary", children: label }),
10381
- /* @__PURE__ */ jsx110("span", { "aria-hidden": true, className: "flex gap-1", children: [0, 1, 2].map((index) => /* @__PURE__ */ jsx110(
10425
+ return /* @__PURE__ */ jsxs79("div", { role: "status", "aria-live": "polite", className: cn("flex items-center gap-3", className), children: [
10426
+ /* @__PURE__ */ jsx111(AiAvatar, {}),
10427
+ /* @__PURE__ */ jsxs79("div", { className: "flex items-center gap-2 rounded-2xl rounded-tl-sm border border-default bg-default-secondary px-5 py-3", children: [
10428
+ /* @__PURE__ */ jsx111("span", { className: "text-body-xs text-default-secondary", children: label }),
10429
+ /* @__PURE__ */ jsx111("span", { "aria-hidden": true, className: "flex gap-1", children: [0, 1, 2].map((index) => /* @__PURE__ */ jsx111(
10382
10430
  "span",
10383
10431
  {
10384
10432
  className: "inline-block size-1.5 rounded-full bg-default-tertiary motion-safe:animate-bounce",
@@ -10391,9 +10439,9 @@ function TypingIndicator({ label = "Assistant is typing", className }) {
10391
10439
  }
10392
10440
  function ChatBubble({ sender, children, failed = false, className }) {
10393
10441
  if (sender === "user") {
10394
- return /* @__PURE__ */ jsx110("div", { "data-sender": "user", className: cn("flex justify-end", className), children: /* @__PURE__ */ jsx110("div", { className: "max-w-[85%] rounded-[18px] rounded-tr-sm bg-neutral px-5 py-3.5 text-body-sm leading-relaxed text-neutral-on-neutral md:max-w-[441px] md:px-7 md:py-4", children }) });
10442
+ return /* @__PURE__ */ jsx111("div", { "data-sender": "user", className: cn("flex justify-end", className), children: /* @__PURE__ */ jsx111("div", { className: "max-w-[85%] rounded-[18px] rounded-tr-sm bg-neutral px-5 py-3.5 text-body-sm leading-relaxed text-neutral-on-neutral md:max-w-[441px] md:px-7 md:py-4", children }) });
10395
10443
  }
10396
- return /* @__PURE__ */ jsx110(
10444
+ return /* @__PURE__ */ jsx111(
10397
10445
  "div",
10398
10446
  {
10399
10447
  "data-sender": "assistant",
@@ -10412,17 +10460,17 @@ function ChatBubble({ sender, children, failed = false, className }) {
10412
10460
  }
10413
10461
 
10414
10462
  // src/components/decorative/aurora-backdrop.tsx
10415
- import { jsx as jsx111, jsxs as jsxs79 } from "react/jsx-runtime";
10463
+ import { jsx as jsx112, jsxs as jsxs80 } from "react/jsx-runtime";
10416
10464
  function blob(primitive, alpha) {
10417
10465
  return `radial-gradient(ellipse, color-mix(in srgb, var(${primitive}) ${alpha}%, transparent) 0%, transparent 70%)`;
10418
10466
  }
10419
10467
  function AuroraBackdrop() {
10420
- return /* @__PURE__ */ jsxs79("div", { className: "pointer-events-none absolute inset-0", "aria-hidden": true, children: [
10421
- /* @__PURE__ */ jsx111("div", { className: "absolute -left-24 -top-28", style: { width: 380, height: 380, background: blob("--prim-red-400", 45) } }),
10422
- /* @__PURE__ */ jsx111("div", { className: "absolute -top-24 right-[-4%]", style: { width: 320, height: 320, background: blob("--prim-red-300", 40) } }),
10423
- /* @__PURE__ */ jsx111("div", { className: "absolute bottom-[-10%] right-[14%]", style: { width: 420, height: 420, background: blob("--prim-violet-400", 30) } }),
10424
- /* @__PURE__ */ jsx111("div", { className: "absolute bottom-[-6%] left-[4%]", style: { width: 280, height: 280, background: blob("--prim-blue-400", 25) } }),
10425
- /* @__PURE__ */ jsx111("div", { className: "absolute left-[20%] top-[30%]", style: { width: 240, height: 240, background: blob("--prim-blue-300", 18) } })
10468
+ return /* @__PURE__ */ jsxs80("div", { className: "pointer-events-none absolute inset-0", "aria-hidden": true, children: [
10469
+ /* @__PURE__ */ jsx112("div", { className: "absolute -left-24 -top-28", style: { width: 380, height: 380, background: blob("--prim-red-400", 45) } }),
10470
+ /* @__PURE__ */ jsx112("div", { className: "absolute -top-24 right-[-4%]", style: { width: 320, height: 320, background: blob("--prim-red-300", 40) } }),
10471
+ /* @__PURE__ */ jsx112("div", { className: "absolute bottom-[-10%] right-[14%]", style: { width: 420, height: 420, background: blob("--prim-violet-400", 30) } }),
10472
+ /* @__PURE__ */ jsx112("div", { className: "absolute bottom-[-6%] left-[4%]", style: { width: 280, height: 280, background: blob("--prim-blue-400", 25) } }),
10473
+ /* @__PURE__ */ jsx112("div", { className: "absolute left-[20%] top-[30%]", style: { width: 240, height: 240, background: blob("--prim-blue-300", 18) } })
10426
10474
  ] });
10427
10475
  }
10428
10476
  export {
@@ -10651,6 +10699,7 @@ export {
10651
10699
  SegmentedControl,
10652
10700
  Select,
10653
10701
  SelectControl,
10702
+ SelectionBar,
10654
10703
  Separator,
10655
10704
  Sidebar,
10656
10705
  SidebarProvider,