@platned/ui 0.9.3 → 0.9.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
@@ -482,7 +482,7 @@ var Spinner = (0, import_react2.forwardRef)(function Spinner2({ size: size2 = "s
482
482
  "aria-label": label,
483
483
  "aria-hidden": label ? void 0 : true,
484
484
  className: (0, import_clsx3.default)(
485
- "inline-block shrink-0 animate-spin rounded-full",
485
+ "inline-block shrink-0 rounded-full motion-safe:animate-spin motion-reduce:animate-pulse",
486
486
  "border-current border-t-transparent",
487
487
  SIZE[size2],
488
488
  className
@@ -3247,7 +3247,7 @@ var Switch = (0, import_react23.forwardRef)(function Switch2({
3247
3247
  "span",
3248
3248
  {
3249
3249
  className: (0, import_clsx20.default)(
3250
- "absolute left-0.5 top-0.5 rounded-full bg-default shadow-100 transition-transform",
3250
+ "absolute left-0.5 top-0.5 rounded-full bg-default shadow-100 transition-transform motion-reduce:transition-none",
3251
3251
  s.knob,
3252
3252
  checked ? s.translate : "translate-x-0"
3253
3253
  )
@@ -4307,7 +4307,7 @@ function Combobox({
4307
4307
  {
4308
4308
  "aria-hidden": true,
4309
4309
  className: (0, import_clsx29.default)(
4310
- "shrink-0 transition-transform",
4310
+ "shrink-0 transition-transform motion-reduce:transition-none",
4311
4311
  size2 === "sm" ? "size-3" : "size-4",
4312
4312
  disabled ? "text-icon-disabled" : "text-icon-default-secondary",
4313
4313
  open && "rotate-180"
@@ -5335,7 +5335,7 @@ var RadioCardsItem = (0, import_react34.forwardRef)(function RadioCardsItem2({ v
5335
5335
  "[label:has(:checked)_&]:border-brand",
5336
5336
  s.mark
5337
5337
  ),
5338
- children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { className: "size-2 scale-0 rounded-full bg-brand transition-transform [label:has(:checked)_&]:scale-100" })
5338
+ children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { className: "size-2 scale-0 rounded-full bg-brand transition-transform motion-reduce:transition-none [label:has(:checked)_&]:scale-100" })
5339
5339
  }
5340
5340
  )
5341
5341
  ] }),
@@ -7376,7 +7376,7 @@ var AccordionTrigger = (0, import_react53.forwardRef)(
7376
7376
  {
7377
7377
  "aria-hidden": true,
7378
7378
  className: (0, import_clsx48.default)(
7379
- "size-4 shrink-0 text-icon-default-secondary transition-transform",
7379
+ "size-4 shrink-0 text-icon-default-secondary transition-transform motion-reduce:transition-none",
7380
7380
  "group-data-[state=open]:rotate-180"
7381
7381
  )
7382
7382
  }
@@ -8238,6 +8238,7 @@ function FilterBar({ children, trailing, size: size2 = "md", className }) {
8238
8238
  // src/components/chrome/tabs.tsx
8239
8239
  var import_react59 = require("react");
8240
8240
  var import_clsx55 = __toESM(require("clsx"), 1);
8241
+ var import_lucide_react24 = require("lucide-react");
8241
8242
  var import_radix_ui14 = require("radix-ui");
8242
8243
  var import_jsx_runtime76 = require("react/jsx-runtime");
8243
8244
  var SIZE8 = {
@@ -8256,7 +8257,7 @@ var TAB_VARIANT = {
8256
8257
  "aria-selected:bg-brand aria-selected:text-brand-on-brand aria-selected:hover:bg-brand"
8257
8258
  ),
8258
8259
  underline: (0, import_clsx55.default)(
8259
- "leading-snug font-normal text-default-secondary hover:text-default",
8260
+ "snap-start leading-snug font-normal text-default-secondary hover:text-default",
8260
8261
  "border-b-2 border-transparent",
8261
8262
  "aria-selected:border-brand-emphasis aria-selected:font-semibold aria-selected:text-brand-emphasis"
8262
8263
  )
@@ -8268,14 +8269,22 @@ var tabClasses = (variant, size2) => (0, import_clsx55.default)(
8268
8269
  SIZE8[variant][size2].tab,
8269
8270
  TAB_VARIANT[variant]
8270
8271
  );
8272
+ var scrollsHorizontally = (variant, orientation) => variant === "underline" && orientation === "horizontal";
8271
8273
  var stripClasses = (variant, size2, orientation) => (0, import_clsx55.default)(
8272
- "flex shrink-0",
8274
+ "flex",
8273
8275
  // The strip's own children are the tab stops, so it needs no tab stop of its own.
8274
- orientation === "vertical" ? "flex-col" : (0, import_clsx55.default)("overflow-x-auto", SCROLLBAR_CLASSES),
8276
+ orientation === "vertical" ? "shrink-0 flex-col" : variant === "pill" ? (
8277
+ // Pills are a handful of filter-style choices: wrap, so every one stays visible.
8278
+ "shrink-0 flex-wrap"
8279
+ ) : (
8280
+ // Underline tabs are page sections: scroll, snapping to whole tabs. The edge buttons are
8281
+ // the affordance, so the (often overlay) native scrollbar is hidden rather than doubled.
8282
+ "min-w-0 flex-1 snap-x snap-mandatory overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden"
8283
+ ),
8275
8284
  SIZE8[variant][size2].strip,
8276
8285
  variant === "underline" && (orientation === "vertical" ? "border-r border-default" : "border-b border-default")
8277
8286
  );
8278
- function TabCount({ count, variant }) {
8287
+ function TabCount({ count, variant, locale }) {
8279
8288
  return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
8280
8289
  "span",
8281
8290
  {
@@ -8283,7 +8292,75 @@ function TabCount({ count, variant }) {
8283
8292
  "rounded-md bg-default-secondary px-1.5 py-px text-body-tiny font-medium leading-snug text-default-secondary",
8284
8293
  variant === "pill" && "group-aria-selected:bg-brand-hover group-aria-selected:text-brand-on-brand"
8285
8294
  ),
8286
- children: count
8295
+ children: typeof count === "number" ? count.toLocaleString(locale) : count
8296
+ }
8297
+ );
8298
+ }
8299
+ var EDGE_PAD = 32;
8300
+ var prefersReducedMotion = () => typeof window !== "undefined" && window.matchMedia?.("(prefers-reduced-motion: reduce)").matches === true;
8301
+ function useTabStrip(enabled) {
8302
+ const listRef = (0, import_react59.useRef)(null);
8303
+ const selected = (0, import_react59.useRef)(null);
8304
+ const [edges, setEdges] = (0, import_react59.useState)({ start: false, end: false });
8305
+ const measure = (0, import_react59.useCallback)(() => {
8306
+ const el = listRef.current;
8307
+ if (!enabled || !el) return;
8308
+ const start = el.scrollLeft > 1;
8309
+ const end = el.scrollLeft + el.clientWidth < el.scrollWidth - 1;
8310
+ setEdges((prev) => prev.start === start && prev.end === end ? prev : { start, end });
8311
+ }, [enabled]);
8312
+ (0, import_react59.useLayoutEffect)(() => {
8313
+ const el = listRef.current;
8314
+ if (!enabled || !el || typeof ResizeObserver === "undefined") return;
8315
+ const observer = new ResizeObserver(measure);
8316
+ observer.observe(el);
8317
+ return () => observer.disconnect();
8318
+ }, [enabled, measure]);
8319
+ (0, import_react59.useLayoutEffect)(() => {
8320
+ const list = listRef.current;
8321
+ if (!enabled || !list) return;
8322
+ measure();
8323
+ const tab = list.querySelector('[role="tab"][aria-selected="true"]');
8324
+ if (!tab || tab === selected.current) return;
8325
+ selected.current = tab;
8326
+ if (typeof list.scrollTo !== "function") return;
8327
+ const left = tab.offsetLeft - list.offsetLeft;
8328
+ const right = left + tab.offsetWidth;
8329
+ if (left < list.scrollLeft + EDGE_PAD) list.scrollTo({ left: Math.max(0, left - EDGE_PAD) });
8330
+ else if (right > list.scrollLeft + list.clientWidth - EDGE_PAD) {
8331
+ list.scrollTo({ left: right - list.clientWidth + EDGE_PAD });
8332
+ }
8333
+ });
8334
+ const page = (0, import_react59.useCallback)((direction) => {
8335
+ const el = listRef.current;
8336
+ if (!el || typeof el.scrollBy !== "function") return;
8337
+ el.scrollBy({ left: direction * el.clientWidth * 0.8, behavior: prefersReducedMotion() ? "auto" : "smooth" });
8338
+ }, []);
8339
+ return { listRef, edges, measure, page };
8340
+ }
8341
+ function TabStripFrame({ strip, children }) {
8342
+ return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "relative flex min-w-0 max-w-full", children: [
8343
+ children,
8344
+ strip.edges.start && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(TabStripEdge, { side: "start", onClick: () => strip.page(-1) }),
8345
+ strip.edges.end && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(TabStripEdge, { side: "end", onClick: () => strip.page(1) })
8346
+ ] });
8347
+ }
8348
+ function TabStripEdge({ side, onClick }) {
8349
+ const Icon = side === "start" ? import_lucide_react24.ChevronLeftIcon : import_lucide_react24.ChevronRightIcon;
8350
+ return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
8351
+ "button",
8352
+ {
8353
+ type: "button",
8354
+ "aria-hidden": true,
8355
+ tabIndex: -1,
8356
+ onClick,
8357
+ "data-edge": side,
8358
+ className: (0, import_clsx55.default)(
8359
+ // `bottom-px` keeps the strip's baseline visible under the fade.
8360
+ "absolute bottom-px top-0 z-raised flex w-8 items-center text-icon-default-secondary hover:text-icon-default",
8361
+ side === "start" ? "left-0 justify-start bg-gradient-to-r from-default via-default to-transparent" : "right-0 justify-end bg-gradient-to-l from-default via-default to-transparent"
8362
+ ),
8363
+ children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Icon, { className: "size-4" })
8287
8364
  }
8288
8365
  );
8289
8366
  }
@@ -8304,8 +8381,11 @@ function ItemsTabs({
8304
8381
  activation = "automatic",
8305
8382
  idPrefix,
8306
8383
  label,
8384
+ locale,
8307
8385
  className
8308
8386
  }) {
8387
+ const scrolls = scrollsHorizontally(variant, orientation);
8388
+ const strip = useTabStrip(scrolls);
8309
8389
  const generatedPrefix = (0, import_react59.useId)();
8310
8390
  const prefix = idPrefix ?? generatedPrefix;
8311
8391
  const [value, setValue] = useControllableState({
@@ -8322,14 +8402,20 @@ function ItemsTabs({
8322
8402
  loop: true,
8323
8403
  defaultIndex: selectedIndex
8324
8404
  });
8325
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
8405
+ const list = /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
8326
8406
  "div",
8327
8407
  {
8408
+ ref: strip.listRef,
8328
8409
  role: "tablist",
8329
8410
  "aria-label": label,
8330
8411
  "aria-orientation": orientation,
8331
8412
  "data-variant": variant,
8332
- className: cn(stripClasses(variant, size2, orientation), className),
8413
+ onScroll: scrolls ? strip.measure : void 0,
8414
+ className: cn(
8415
+ stripClasses(variant, size2, orientation),
8416
+ scrolls && (strip.edges.start || strip.edges.end) && "scroll-px-8",
8417
+ className
8418
+ ),
8333
8419
  ...roving.containerProps,
8334
8420
  children: items.map((tab, index) => {
8335
8421
  const active = tab.key === value;
@@ -8360,7 +8446,7 @@ function ItemsTabs({
8360
8446
  className: tabClasses(variant, size2),
8361
8447
  children: [
8362
8448
  tab.label,
8363
- tab.count !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(TabCount, { count: tab.count, variant })
8449
+ tab.count !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(TabCount, { count: tab.count, variant, locale })
8364
8450
  ]
8365
8451
  },
8366
8452
  tab.key
@@ -8368,6 +8454,7 @@ function ItemsTabs({
8368
8454
  })
8369
8455
  }
8370
8456
  );
8457
+ return scrolls ? /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(TabStripFrame, { strip, children: list }) : list;
8371
8458
  }
8372
8459
  var PANEL_CLASSES = (0, import_clsx55.default)(FOCUS_RING, "rounded-sm");
8373
8460
  function TabsPanel({
@@ -8410,6 +8497,7 @@ function TabsRoot({
8410
8497
  orientation = "horizontal",
8411
8498
  activation = "automatic",
8412
8499
  dir,
8500
+ locale,
8413
8501
  className
8414
8502
  }) {
8415
8503
  return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
@@ -8422,23 +8510,34 @@ function TabsRoot({
8422
8510
  activationMode: activation,
8423
8511
  dir,
8424
8512
  className: cn(orientation === "vertical" ? "flex gap-6" : "flex flex-col gap-4", className),
8425
- children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(TabsStyle.Provider, { value: { variant, size: size2, orientation }, children })
8513
+ children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(TabsStyle.Provider, { value: { variant, size: size2, orientation, locale }, children })
8426
8514
  }
8427
8515
  );
8428
8516
  }
8429
- var TabsList = (0, import_react59.forwardRef)(function TabsList2({ label, className, ...rest }, ref) {
8517
+ var TabsList = (0, import_react59.forwardRef)(function TabsList2({ label, className, onScroll, ...rest }, ref) {
8430
8518
  const style = (0, import_react59.useContext)(TabsStyle);
8431
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
8519
+ const scrolls = scrollsHorizontally(style.variant, style.orientation);
8520
+ const strip = useTabStrip(scrolls);
8521
+ const list = /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
8432
8522
  import_radix_ui14.Tabs.List,
8433
8523
  {
8434
- ref,
8524
+ ref: composeRefs(ref, strip.listRef),
8435
8525
  "aria-label": label,
8436
8526
  loop: true,
8437
8527
  "data-variant": style.variant,
8438
- className: cn(stripClasses(style.variant, style.size, style.orientation), className),
8528
+ onScroll: (event) => {
8529
+ onScroll?.(event);
8530
+ if (scrolls) strip.measure();
8531
+ },
8532
+ className: cn(
8533
+ stripClasses(style.variant, style.size, style.orientation),
8534
+ scrolls && (strip.edges.start || strip.edges.end) && "scroll-px-8",
8535
+ className
8536
+ ),
8439
8537
  ...rest
8440
8538
  }
8441
8539
  );
8540
+ return scrolls ? /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(TabStripFrame, { strip, children: list }) : list;
8442
8541
  });
8443
8542
  var TabsTrigger = (0, import_react59.forwardRef)(function TabsTrigger2({ value, disabled, count, className, children, ...rest }, ref) {
8444
8543
  const style = (0, import_react59.useContext)(TabsStyle);
@@ -8452,7 +8551,7 @@ var TabsTrigger = (0, import_react59.forwardRef)(function TabsTrigger2({ value,
8452
8551
  ...rest,
8453
8552
  children: [
8454
8553
  children,
8455
- count !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(TabCount, { count, variant: style.variant })
8554
+ count !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(TabCount, { count, variant: style.variant, locale: style.locale })
8456
8555
  ]
8457
8556
  }
8458
8557
  );
@@ -8676,7 +8775,7 @@ var Kbd = (0, import_react61.forwardRef)(function Kbd2({ children, size: size2 =
8676
8775
  // src/components/chrome/breadcrumb.tsx
8677
8776
  var import_react62 = require("react");
8678
8777
  var import_clsx60 = __toESM(require("clsx"), 1);
8679
- var import_lucide_react24 = require("lucide-react");
8778
+ var import_lucide_react25 = require("lucide-react");
8680
8779
  var import_jsx_runtime81 = require("react/jsx-runtime");
8681
8780
  var Breadcrumb = (0, import_react62.forwardRef)(function Breadcrumb2({ children, items, renderLink, maxItems, label = "Breadcrumb", className, ...rest }, ref) {
8682
8781
  return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("nav", { ref, "aria-label": label, "data-slot": "breadcrumb", ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("ol", { className: (0, import_clsx60.default)("flex flex-wrap items-center gap-1.5 p-0 text-body-xs", className), children: items ? renderItems(items, renderLink, maxItems) : children }) });
@@ -8698,7 +8797,7 @@ function renderItems(items, renderLink, maxItems) {
8698
8797
  var BreadcrumbItem = (0, import_react62.forwardRef)(
8699
8798
  function BreadcrumbItem2({ children, current = false, asChild = false, first = false, className, ...rest }, ref) {
8700
8799
  return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("li", { className: "flex items-center gap-1.5", children: [
8701
- !first && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_lucide_react24.ChevronRightIcon, { "aria-hidden": true, className: "size-3.5 shrink-0 text-icon-default-tertiary" }),
8800
+ !first && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_lucide_react25.ChevronRightIcon, { "aria-hidden": true, className: "size-3.5 shrink-0 text-icon-default-tertiary" }),
8702
8801
  current ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { "aria-current": "page", className: (0, import_clsx60.default)("font-medium text-default", className), children }) : asChild ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
8703
8802
  Slot,
8704
8803
  {
@@ -8729,7 +8828,7 @@ var BreadcrumbItem = (0, import_react62.forwardRef)(
8729
8828
  var BreadcrumbEllipsis = (0, import_react62.forwardRef)(
8730
8829
  function BreadcrumbEllipsis2({ className, ...rest }, ref) {
8731
8830
  return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("li", { className: "flex items-center gap-1.5", children: [
8732
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_lucide_react24.ChevronRightIcon, { "aria-hidden": true, className: "size-3.5 shrink-0 text-icon-default-tertiary" }),
8831
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_lucide_react25.ChevronRightIcon, { "aria-hidden": true, className: "size-3.5 shrink-0 text-icon-default-tertiary" }),
8733
8832
  /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
8734
8833
  "span",
8735
8834
  {
@@ -8747,7 +8846,7 @@ var BreadcrumbEllipsis = (0, import_react62.forwardRef)(
8747
8846
  // src/components/chrome/pagination.tsx
8748
8847
  var import_react63 = require("react");
8749
8848
  var import_clsx61 = __toESM(require("clsx"), 1);
8750
- var import_lucide_react25 = require("lucide-react");
8849
+ var import_lucide_react26 = require("lucide-react");
8751
8850
  var import_jsx_runtime82 = require("react/jsx-runtime");
8752
8851
  var GAP4 = "\u2026";
8753
8852
  function paginationRange(page, pageCount, siblingCount = 1) {
@@ -8813,7 +8912,7 @@ var Pagination = (0, import_react63.forwardRef)(function Pagination2({
8813
8912
  disabled: page <= 1,
8814
8913
  onClick: () => go(page - 1),
8815
8914
  className: ARROW_BASE,
8816
- children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_lucide_react25.ChevronLeftIcon, { "aria-hidden": true, className: "size-4" })
8915
+ children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_lucide_react26.ChevronLeftIcon, { "aria-hidden": true, className: "size-4" })
8817
8916
  }
8818
8917
  ),
8819
8918
  type === "dots" ? (
@@ -8876,7 +8975,7 @@ var Pagination = (0, import_react63.forwardRef)(function Pagination2({
8876
8975
  disabled: page >= pageCount,
8877
8976
  onClick: () => go(page + 1),
8878
8977
  className: ARROW_BASE,
8879
- children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_lucide_react25.ChevronRightIcon, { "aria-hidden": true, className: "size-4" })
8978
+ children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_lucide_react26.ChevronRightIcon, { "aria-hidden": true, className: "size-4" })
8880
8979
  }
8881
8980
  )
8882
8981
  ]
@@ -9576,7 +9675,7 @@ function BarChart({
9576
9675
  "div",
9577
9676
  {
9578
9677
  title: `${category} \xB7 ${bar.key}: ${bar.value}`,
9579
- className: "transition-all",
9678
+ className: "transition-all motion-reduce:transition-none",
9580
9679
  style: {
9581
9680
  backgroundColor: bar.color,
9582
9681
  borderRadius: radius,
@@ -9742,7 +9841,7 @@ function RadialGauge({
9742
9841
  strokeWidth: ring,
9743
9842
  strokeDasharray: `${arc * fraction} ${circumference - arc * fraction}`,
9744
9843
  strokeLinecap: "round",
9745
- className: "transition-all"
9844
+ className: "transition-all motion-reduce:transition-none"
9746
9845
  }
9747
9846
  )
9748
9847
  ]
@@ -9973,7 +10072,7 @@ function ChartLegend({
9973
10072
 
9974
10073
  // src/components/charts/trend-label.tsx
9975
10074
  var import_clsx79 = __toESM(require("clsx"), 1);
9976
- var import_lucide_react26 = require("lucide-react");
10075
+ var import_lucide_react27 = require("lucide-react");
9977
10076
  var import_jsx_runtime100 = require("react/jsx-runtime");
9978
10077
  var SIZE17 = {
9979
10078
  sm: "text-body-xs",
@@ -10007,7 +10106,7 @@ function TrendLabel({
10007
10106
  const rising = value > 0;
10008
10107
  const flat = value === 0;
10009
10108
  const good = direction === "up-is-good" ? rising : !rising;
10010
- const Arrow = rising ? import_lucide_react26.TrendingUpIcon : import_lucide_react26.TrendingDownIcon;
10109
+ const Arrow = rising ? import_lucide_react27.TrendingUpIcon : import_lucide_react27.TrendingDownIcon;
10011
10110
  return /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(
10012
10111
  "span",
10013
10112
  {
@@ -10163,7 +10262,7 @@ function refusePress(event) {
10163
10262
 
10164
10263
  // src/components/lists/file-row.tsx
10165
10264
  var import_clsx81 = __toESM(require("clsx"), 1);
10166
- var import_lucide_react27 = require("lucide-react");
10265
+ var import_lucide_react28 = require("lucide-react");
10167
10266
  var import_jsx_runtime102 = require("react/jsx-runtime");
10168
10267
  function FileTypeBadge({ type }) {
10169
10268
  return /* @__PURE__ */ (0, import_jsx_runtime102.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 });
@@ -10195,8 +10294,8 @@ function FileRow({
10195
10294
  detail && /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("span", { className: "text-body-xs text-default-secondary", children: detail })
10196
10295
  ] }),
10197
10296
  (onDownload || onRemove || actions) && /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)("div", { className: "flex shrink-0 items-center gap-1", children: [
10198
- onDownload && /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(Tooltip, { title: downloadLabel, children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(IconButton, { variant: "subtle", size: "sm", "aria-label": `${downloadLabel} ${name}`, onClick: onDownload, className: "touch-hit", children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_lucide_react27.DownloadIcon, { "aria-hidden": true }) }) }),
10199
- onRemove && /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(Tooltip, { title: removeLabel, children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(IconButton, { variant: "subtle", size: "sm", "aria-label": `${removeLabel} ${name}`, onClick: onRemove, className: "touch-hit", children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_lucide_react27.Trash2Icon, { "aria-hidden": true }) }) }),
10297
+ onDownload && /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(Tooltip, { title: downloadLabel, children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(IconButton, { variant: "subtle", size: "sm", "aria-label": `${downloadLabel} ${name}`, onClick: onDownload, className: "touch-hit", children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_lucide_react28.DownloadIcon, { "aria-hidden": true }) }) }),
10298
+ onRemove && /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(Tooltip, { title: removeLabel, children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(IconButton, { variant: "subtle", size: "sm", "aria-label": `${removeLabel} ${name}`, onClick: onRemove, className: "touch-hit", children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_lucide_react28.Trash2Icon, { "aria-hidden": true }) }) }),
10200
10299
  actions && /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("div", { className: "ml-2 flex items-center gap-2", children: actions })
10201
10300
  ] })
10202
10301
  ]
@@ -10346,7 +10445,7 @@ function ProgressBar({
10346
10445
  children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
10347
10446
  "div",
10348
10447
  {
10349
- className: cn("h-full transition-all", rounded, FILL[tone]),
10448
+ className: cn("h-full transition-all motion-reduce:transition-none", rounded, FILL[tone]),
10350
10449
  style: { width: `${clamped}%`, ...radius ? { borderRadius: radius } : void 0 }
10351
10450
  }
10352
10451
  )
@@ -10422,16 +10521,16 @@ function IconTextRow({ icon, title, detail, className }) {
10422
10521
 
10423
10522
  // src/components/lists/checklist-row.tsx
10424
10523
  var import_clsx85 = __toESM(require("clsx"), 1);
10425
- var import_lucide_react28 = require("lucide-react");
10524
+ var import_lucide_react29 = require("lucide-react");
10426
10525
  var import_jsx_runtime107 = require("react/jsx-runtime");
10427
10526
  function ChecklistRow({ label, state, className }) {
10428
10527
  return /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)("li", { "data-state": state, className: (0, import_clsx85.default)("flex items-center gap-3", className), children: [
10429
- /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("span", { className: "flex size-5 shrink-0 items-center justify-center", children: state === "done" ? /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_lucide_react28.CheckIcon, { className: "size-4 text-positive", strokeWidth: 2.5, "aria-hidden": true }) : /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
10528
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("span", { className: "flex size-5 shrink-0 items-center justify-center", children: state === "done" ? /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_lucide_react29.CheckIcon, { className: "size-4 text-positive", strokeWidth: 2.5, "aria-hidden": true }) : /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
10430
10529
  "span",
10431
10530
  {
10432
10531
  className: (0, import_clsx85.default)(
10433
10532
  "size-3.5 rounded-full border-2",
10434
- state === "active" ? "animate-pulse border-brand-emphasis border-t-transparent" : "border-disabled"
10533
+ state === "active" ? "motion-safe:animate-pulse border-brand-emphasis border-t-transparent" : "border-disabled"
10435
10534
  )
10436
10535
  }
10437
10536
  ) }),
@@ -10509,7 +10608,7 @@ function DetailGrid({ children, columns = "auto", className }) {
10509
10608
  // src/components/lists/description-list.tsx
10510
10609
  var import_react70 = require("react");
10511
10610
  var import_clsx88 = __toESM(require("clsx"), 1);
10512
- var import_lucide_react29 = require("lucide-react");
10611
+ var import_lucide_react30 = require("lucide-react");
10513
10612
  var import_jsx_runtime110 = require("react/jsx-runtime");
10514
10613
  function DescriptionList({ children, className }) {
10515
10614
  return /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("dl", { className: cn("flex flex-col gap-3", className), children });
@@ -10548,7 +10647,7 @@ function CopyButton({ value, label, copiedLabel = "Copied", className }) {
10548
10647
  () => void 0
10549
10648
  );
10550
10649
  },
10551
- children: copied ? /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_lucide_react29.CheckIcon, { "aria-hidden": true }) : /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_lucide_react29.CopyIcon, { "aria-hidden": true })
10650
+ children: copied ? /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_lucide_react30.CheckIcon, { "aria-hidden": true }) : /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_lucide_react30.CopyIcon, { "aria-hidden": true })
10552
10651
  }
10553
10652
  ),
10554
10653
  /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("span", { role: "status", className: "sr-only", children: copied ? copiedLabel : "" })
@@ -10567,7 +10666,7 @@ function EmailText({ email, className }) {
10567
10666
 
10568
10667
  // src/components/lists/checked-group-list.tsx
10569
10668
  var import_clsx89 = __toESM(require("clsx"), 1);
10570
- var import_lucide_react30 = require("lucide-react");
10669
+ var import_lucide_react31 = require("lucide-react");
10571
10670
  var import_jsx_runtime111 = require("react/jsx-runtime");
10572
10671
  var COLUMNS4 = {
10573
10672
  1: "columns-1",
@@ -10584,7 +10683,7 @@ function CheckedGroupList({
10584
10683
  if (groups.length === 0) {
10585
10684
  return /* @__PURE__ */ (0, import_jsx_runtime111.jsx)("p", { className: (0, import_clsx89.default)("text-body-xs text-default-secondary", className), children: emptyLabel });
10586
10685
  }
10587
- const glyph = icon === void 0 ? /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_lucide_react30.CheckIcon, { className: "size-3.5", strokeWidth: 2.5, "aria-hidden": true }) : icon;
10686
+ const glyph = icon === void 0 ? /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_lucide_react31.CheckIcon, { className: "size-3.5", strokeWidth: 2.5, "aria-hidden": true }) : icon;
10588
10687
  return /* @__PURE__ */ (0, import_jsx_runtime111.jsx)("div", { className: (0, import_clsx89.default)(COLUMNS4[columns], "gap-x-6", className), children: groups.map((group) => /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)("div", { className: "mb-5 break-inside-avoid last:mb-0", children: [
10589
10688
  /* @__PURE__ */ (0, import_jsx_runtime111.jsx)("p", { className: "mb-2 text-body-tiny font-semibold uppercase tracking-wide text-default-secondary", children: group.label }),
10590
10689
  /* @__PURE__ */ (0, import_jsx_runtime111.jsx)("ul", { className: "space-y-1.5", children: group.items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)("li", { className: "flex items-center gap-2 text-body-xs text-default", children: [
@@ -10597,7 +10696,7 @@ function CheckedGroupList({
10597
10696
  // src/components/lists/tree-view.tsx
10598
10697
  var import_react71 = require("react");
10599
10698
  var import_clsx90 = __toESM(require("clsx"), 1);
10600
- var import_lucide_react31 = require("lucide-react");
10699
+ var import_lucide_react32 = require("lucide-react");
10601
10700
  var import_jsx_runtime112 = require("react/jsx-runtime");
10602
10701
  var ROW = {
10603
10702
  sm: "min-h-8 py-1 text-body-xs",
@@ -10753,7 +10852,7 @@ function TreeView({
10753
10852
  focus(id);
10754
10853
  },
10755
10854
  className: "flex size-5 shrink-0 items-center justify-center rounded text-icon-default-secondary hover:bg-default-tertiary",
10756
- children: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_lucide_react31.ChevronRightIcon, { className: (0, import_clsx90.default)("size-3.5 transition-transform", node.expanded && "rotate-90") })
10855
+ children: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_lucide_react32.ChevronRightIcon, { className: (0, import_clsx90.default)("size-3.5 transition-transform motion-reduce:transition-none", node.expanded && "rotate-90") })
10757
10856
  }
10758
10857
  )
10759
10858
  ) : /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("span", { "aria-hidden": true, className: "size-5 shrink-0" }),
@@ -10778,7 +10877,7 @@ function TreeView({
10778
10877
  // src/components/lists/table.tsx
10779
10878
  var import_react72 = require("react");
10780
10879
  var import_clsx91 = __toESM(require("clsx"), 1);
10781
- var import_lucide_react32 = require("lucide-react");
10880
+ var import_lucide_react33 = require("lucide-react");
10782
10881
  var import_jsx_runtime113 = require("react/jsx-runtime");
10783
10882
  var Table = (0, import_react72.forwardRef)(function Table2({ label, density = "default", fixed = false, maxHeight, className, children, ...rest }, ref) {
10784
10883
  return (
@@ -10902,7 +11001,7 @@ var TableHead = (0, import_react72.forwardRef)(function TableHead2({ sort, onSor
10902
11001
  ),
10903
11002
  children: [
10904
11003
  children,
10905
- sort === false ? /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_lucide_react32.ChevronsUpDownIcon, { "aria-hidden": true, className: "size-3.5 opacity-50" }) : sort === "ascending" ? /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_lucide_react32.ChevronUpIcon, { "aria-hidden": true, className: "size-3.5" }) : /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_lucide_react32.ChevronDownIcon, { "aria-hidden": true, className: "size-3.5" })
11004
+ sort === false ? /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_lucide_react33.ChevronsUpDownIcon, { "aria-hidden": true, className: "size-3.5 opacity-50" }) : sort === "ascending" ? /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_lucide_react33.ChevronUpIcon, { "aria-hidden": true, className: "size-3.5" }) : /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_lucide_react33.ChevronDownIcon, { "aria-hidden": true, className: "size-3.5" })
10906
11005
  ]
10907
11006
  }
10908
11007
  ) : children
@@ -10989,7 +11088,7 @@ var Skeleton = (0, import_react73.forwardRef)(function Skeleton2({ shape = "line
10989
11088
  "div",
10990
11089
  {
10991
11090
  className: (0, import_clsx93.default)(
10992
- "animate-pulse bg-default-tertiary",
11091
+ "motion-safe:animate-pulse bg-default-tertiary",
10993
11092
  SHAPE2.line,
10994
11093
  // A ragged last line reads as a paragraph rather than a solid slab.
10995
11094
  index === lines - 1 ? "w-3/5" : "w-full",
@@ -11005,7 +11104,7 @@ var Skeleton = (0, import_react73.forwardRef)(function Skeleton2({ shape = "line
11005
11104
  ref,
11006
11105
  "aria-hidden": true,
11007
11106
  "data-slot": "skeleton",
11008
- className: (0, import_clsx93.default)("animate-pulse bg-default-tertiary", SHAPE2[shape], className),
11107
+ className: (0, import_clsx93.default)("motion-safe:animate-pulse bg-default-tertiary", SHAPE2[shape], className),
11009
11108
  ...rest
11010
11109
  }
11011
11110
  );
@@ -11040,7 +11139,7 @@ function cardSlots(columns) {
11040
11139
  }
11041
11140
 
11042
11141
  // src/components/lists/data-table-parts.tsx
11043
- var import_lucide_react33 = require("lucide-react");
11142
+ var import_lucide_react34 = require("lucide-react");
11044
11143
  var import_jsx_runtime116 = require("react/jsx-runtime");
11045
11144
  var SELECT_COLUMN_ID = "select";
11046
11145
  function columnLabel(column) {
@@ -11060,7 +11159,7 @@ function DataTableColumnHeader({
11060
11159
  return /* @__PURE__ */ (0, import_jsx_runtime116.jsx)("span", { className: cn(hidden ? "sr-only" : "inline-block w-max whitespace-nowrap", className), children: text });
11061
11160
  }
11062
11161
  const sorted = column.getIsSorted();
11063
- const Icon = sorted === "asc" ? import_lucide_react33.ChevronUpIcon : sorted === "desc" ? import_lucide_react33.ChevronDownIcon : import_lucide_react33.ChevronsUpDownIcon;
11162
+ const Icon = sorted === "asc" ? import_lucide_react34.ChevronUpIcon : sorted === "desc" ? import_lucide_react34.ChevronDownIcon : import_lucide_react34.ChevronsUpDownIcon;
11064
11163
  return /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)(
11065
11164
  "button",
11066
11165
  {
@@ -11120,7 +11219,7 @@ function DataTableViewOptions({ table, label = "Columns" }) {
11120
11219
  const columns = table.getAllLeafColumns().filter((column) => column.getCanHide());
11121
11220
  if (columns.length === 0) return null;
11122
11221
  return /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)(DropdownMenu, { children: [
11123
- /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(Button, { variant: "neutral", size: "md", leadingIcon: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(import_lucide_react33.Columns3Icon, { "aria-hidden": true }), children: label }) }),
11222
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(Button, { variant: "neutral", size: "md", leadingIcon: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(import_lucide_react34.Columns3Icon, { "aria-hidden": true }), children: label }) }),
11124
11223
  /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)(DropdownMenuContent, { align: "end", children: [
11125
11224
  /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(DropdownMenuLabel, { children: "Show columns" }),
11126
11225
  columns.map((column) => /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
@@ -11388,6 +11487,7 @@ function useScrollEdges() {
11388
11487
  }, [node, measure]);
11389
11488
  return { ref: setNode, onScroll: measure, ...edges };
11390
11489
  }
11490
+ var serverSortedValue = () => void 0;
11391
11491
  function defaultRowLink({ children, ...props }) {
11392
11492
  return /* @__PURE__ */ (0, import_jsx_runtime118.jsx)("a", { ...props, children });
11393
11493
  }
@@ -11453,10 +11553,15 @@ function DataTable({
11453
11553
  );
11454
11554
  const [rowSelection, setRowSelection] = useTableState(state.rowSelection, {}, onRowSelectionChange);
11455
11555
  const allColumns = (0, import_react74.useMemo)(() => {
11456
- const cols = columns;
11556
+ let cols = columns;
11557
+ if (manual.sorting) {
11558
+ cols = cols.map(
11559
+ (column) => column.enableSorting === true && !("accessorFn" in column) && !("accessorKey" in column) ? { ...column, accessorFn: serverSortedValue } : column
11560
+ );
11561
+ }
11457
11562
  if (!enableRowSelection || cols.some((column) => column.id === SELECT_COLUMN_ID)) return cols;
11458
11563
  return [createSelectColumn({ getRowLabel: getRowLabel && ((row) => `Select ${getRowLabel(row)}`) }), ...cols];
11459
- }, [columns, enableRowSelection, getRowLabel]);
11564
+ }, [columns, enableRowSelection, getRowLabel, manual.sorting]);
11460
11565
  const table = (0, import_react_table.useReactTable)({
11461
11566
  data,
11462
11567
  columns: allColumns,
@@ -11477,6 +11582,10 @@ function DataTable({
11477
11582
  manualFiltering: manual.filtering,
11478
11583
  manualPagination: !paginated || manual.pagination,
11479
11584
  rowCount: manual.rowCount,
11585
+ // Two states from 0.9.4: a third click no longer clears the sort. "Off" is not a direction a
11586
+ // person can see or ask for, and it silently reverted to an order nobody chose. Pass
11587
+ // `tableOptions={{ enableSortingRemoval: true }}` for the three-state cycle.
11588
+ enableSortingRemoval: false,
11480
11589
  ...tableOptions
11481
11590
  });
11482
11591
  const selectionReported = (0, import_react74.useRef)(false);
@@ -11885,12 +11994,12 @@ function CardList({
11885
11994
  );
11886
11995
  }
11887
11996
 
11888
- // src/index.tsx
11997
+ // src/data-table.tsx
11889
11998
  var import_react_table2 = require("@tanstack/react-table");
11890
11999
 
11891
12000
  // src/components/feedback/inline-alert.tsx
11892
12001
  var import_clsx96 = __toESM(require("clsx"), 1);
11893
- var import_lucide_react34 = require("lucide-react");
12002
+ var import_lucide_react35 = require("lucide-react");
11894
12003
  var import_jsx_runtime119 = require("react/jsx-runtime");
11895
12004
  var toneStyles3 = {
11896
12005
  info: "border-brand-tertiary bg-brand-tertiary text-brand",
@@ -11899,10 +12008,10 @@ var toneStyles3 = {
11899
12008
  positive: "border-positive-tertiary bg-positive-tertiary text-positive"
11900
12009
  };
11901
12010
  var toneIcons = {
11902
- info: /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(import_lucide_react34.InfoIcon, { className: "size-4" }),
11903
- warning: /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(import_lucide_react34.TriangleAlertIcon, { className: "size-4" }),
11904
- danger: /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(import_lucide_react34.TriangleAlertIcon, { className: "size-4" }),
11905
- positive: /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(import_lucide_react34.CircleCheckBigIcon, { className: "size-4" })
12011
+ info: /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(import_lucide_react35.InfoIcon, { className: "size-4" }),
12012
+ warning: /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(import_lucide_react35.TriangleAlertIcon, { className: "size-4" }),
12013
+ danger: /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(import_lucide_react35.TriangleAlertIcon, { className: "size-4" }),
12014
+ positive: /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(import_lucide_react35.CircleCheckBigIcon, { className: "size-4" })
11906
12015
  };
11907
12016
  function InlineAlert({ tone, children, icon, className }) {
11908
12017
  const glyph = icon === void 0 ? toneIcons[tone] : icon;
@@ -11961,7 +12070,7 @@ var ErrorBoundary = class extends import_react75.Component {
11961
12070
  // src/components/feedback/banner.tsx
11962
12071
  var import_react76 = require("react");
11963
12072
  var import_clsx97 = __toESM(require("clsx"), 1);
11964
- var import_lucide_react35 = require("lucide-react");
12073
+ var import_lucide_react36 = require("lucide-react");
11965
12074
  var import_jsx_runtime121 = require("react/jsx-runtime");
11966
12075
  var TONE_STYLES3 = {
11967
12076
  info: "border-brand-tertiary bg-brand-tertiary text-default",
@@ -11976,10 +12085,10 @@ var TONE_ICON_COLOR = {
11976
12085
  danger: "text-icon-danger"
11977
12086
  };
11978
12087
  var TONE_ICON2 = {
11979
- info: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_lucide_react35.InfoIcon, { "aria-hidden": true, className: "size-5" }),
11980
- positive: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_lucide_react35.CircleCheckBigIcon, { "aria-hidden": true, className: "size-5" }),
11981
- warning: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_lucide_react35.TriangleAlertIcon, { "aria-hidden": true, className: "size-5" }),
11982
- danger: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_lucide_react35.TriangleAlertIcon, { "aria-hidden": true, className: "size-5" })
12088
+ info: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_lucide_react36.InfoIcon, { "aria-hidden": true, className: "size-5" }),
12089
+ positive: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_lucide_react36.CircleCheckBigIcon, { "aria-hidden": true, className: "size-5" }),
12090
+ warning: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_lucide_react36.TriangleAlertIcon, { "aria-hidden": true, className: "size-5" }),
12091
+ danger: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_lucide_react36.TriangleAlertIcon, { "aria-hidden": true, className: "size-5" })
11983
12092
  };
11984
12093
  var Banner = (0, import_react76.forwardRef)(function Banner2({
11985
12094
  title,
@@ -12024,7 +12133,7 @@ var Banner = (0, import_react76.forwardRef)(function Banner2({
12024
12133
  "aria-label": typeof title === "string" ? `Dismiss: ${title}` : "Dismiss",
12025
12134
  onClick: onDismiss,
12026
12135
  className: "-mr-1 -mt-1 shrink-0",
12027
- children: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_lucide_react35.XIcon, { "aria-hidden": true, size: 16 })
12136
+ children: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_lucide_react36.XIcon, { "aria-hidden": true, size: 16 })
12028
12137
  }
12029
12138
  )
12030
12139
  ]
@@ -12035,7 +12144,7 @@ var Banner = (0, import_react76.forwardRef)(function Banner2({
12035
12144
  // src/components/feedback/toast.tsx
12036
12145
  var import_react77 = require("react");
12037
12146
  var import_clsx98 = __toESM(require("clsx"), 1);
12038
- var import_lucide_react36 = require("lucide-react");
12147
+ var import_lucide_react37 = require("lucide-react");
12039
12148
  var import_jsx_runtime122 = require("react/jsx-runtime");
12040
12149
  var ToastContext = (0, import_react77.createContext)(null);
12041
12150
  function useToast() {
@@ -12044,10 +12153,10 @@ function useToast() {
12044
12153
  return context;
12045
12154
  }
12046
12155
  var TONE_ICON3 = {
12047
- info: /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(import_lucide_react36.InfoIcon, { "aria-hidden": true, className: "size-4" }),
12048
- positive: /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(import_lucide_react36.CircleCheckBigIcon, { "aria-hidden": true, className: "size-4" }),
12049
- warning: /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(import_lucide_react36.TriangleAlertIcon, { "aria-hidden": true, className: "size-4" }),
12050
- danger: /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(import_lucide_react36.TriangleAlertIcon, { "aria-hidden": true, className: "size-4" })
12156
+ info: /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(import_lucide_react37.InfoIcon, { "aria-hidden": true, className: "size-4" }),
12157
+ positive: /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(import_lucide_react37.CircleCheckBigIcon, { "aria-hidden": true, className: "size-4" }),
12158
+ warning: /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(import_lucide_react37.TriangleAlertIcon, { "aria-hidden": true, className: "size-4" }),
12159
+ danger: /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(import_lucide_react37.TriangleAlertIcon, { "aria-hidden": true, className: "size-4" })
12051
12160
  };
12052
12161
  var TONE_ICON_COLOR2 = {
12053
12162
  info: "text-icon-brand",
@@ -12160,7 +12269,7 @@ function ToastItem({ toast, onDismiss }) {
12160
12269
  "aria-label": typeof toast.title === "string" ? `Dismiss: ${toast.title}` : "Dismiss",
12161
12270
  onClick: onDismiss,
12162
12271
  className: "-mr-1 -mt-1 shrink-0",
12163
- children: /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(import_lucide_react36.XIcon, { "aria-hidden": true, size: 14 })
12272
+ children: /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(import_lucide_react37.XIcon, { "aria-hidden": true, size: 14 })
12164
12273
  }
12165
12274
  )
12166
12275
  ]
@@ -12170,7 +12279,7 @@ function ToastItem({ toast, onDismiss }) {
12170
12279
 
12171
12280
  // src/components/forms/password-input.tsx
12172
12281
  var import_react78 = require("react");
12173
- var import_lucide_react37 = require("lucide-react");
12282
+ var import_lucide_react38 = require("lucide-react");
12174
12283
  var import_jsx_runtime123 = require("react/jsx-runtime");
12175
12284
  var PasswordInput = (0, import_react78.forwardRef)(function PasswordInput2(props, ref) {
12176
12285
  const [visible, setVisible] = (0, import_react78.useState)(false);
@@ -12187,7 +12296,7 @@ var PasswordInput = (0, import_react78.forwardRef)(function PasswordInput2(props
12187
12296
  "aria-label": visible ? "Hide password" : "Show password",
12188
12297
  onClick: () => setVisible((v) => !v),
12189
12298
  className: "flex items-center justify-center rounded transition-colors hover:text-default focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand",
12190
- children: visible ? /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(import_lucide_react37.EyeOffIcon, { "aria-hidden": true, className: "size-4" }) : /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(import_lucide_react37.EyeIcon, { "aria-hidden": true, className: "size-4" })
12299
+ children: visible ? /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(import_lucide_react38.EyeOffIcon, { "aria-hidden": true, className: "size-4" }) : /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(import_lucide_react38.EyeIcon, { "aria-hidden": true, className: "size-4" })
12191
12300
  }
12192
12301
  )
12193
12302
  }
@@ -12196,7 +12305,7 @@ var PasswordInput = (0, import_react78.forwardRef)(function PasswordInput2(props
12196
12305
 
12197
12306
  // src/components/ai/ai-chat-bar.tsx
12198
12307
  var import_clsx99 = __toESM(require("clsx"), 1);
12199
- var import_lucide_react38 = require("lucide-react");
12308
+ var import_lucide_react39 = require("lucide-react");
12200
12309
  var import_jsx_runtime124 = require("react/jsx-runtime");
12201
12310
  function AIChatBar({
12202
12311
  placeholder = "Ask Intelligence about any entity, supplier, or risk\u2026",
@@ -12210,7 +12319,7 @@ function AIChatBar({
12210
12319
  className
12211
12320
  ),
12212
12321
  children: [
12213
- /* @__PURE__ */ (0, import_jsx_runtime124.jsx)("span", { "aria-hidden": true, className: "shrink-0 text-icon-default-secondary", children: /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(import_lucide_react38.SearchIcon, { className: "size-4" }) }),
12322
+ /* @__PURE__ */ (0, import_jsx_runtime124.jsx)("span", { "aria-hidden": true, className: "shrink-0 text-icon-default-secondary", children: /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(import_lucide_react39.SearchIcon, { className: "size-4" }) }),
12214
12323
  /* @__PURE__ */ (0, import_jsx_runtime124.jsx)("p", { className: "flex-1 text-body-sm text-default-tertiary truncate", children: placeholder }),
12215
12324
  /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)(
12216
12325
  "button",
@@ -12219,7 +12328,7 @@ function AIChatBar({
12219
12328
  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",
12220
12329
  children: [
12221
12330
  "Ask",
12222
- /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(import_lucide_react38.ArrowRightIcon, { "aria-hidden": true, className: "size-4" })
12331
+ /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(import_lucide_react39.ArrowRightIcon, { "aria-hidden": true, className: "size-4" })
12223
12332
  ]
12224
12333
  }
12225
12334
  )
@@ -12230,7 +12339,7 @@ function AIChatBar({
12230
12339
 
12231
12340
  // src/components/ai/ai-suggestion-chip.tsx
12232
12341
  var import_clsx100 = __toESM(require("clsx"), 1);
12233
- var import_lucide_react39 = require("lucide-react");
12342
+ var import_lucide_react40 = require("lucide-react");
12234
12343
  var import_jsx_runtime125 = require("react/jsx-runtime");
12235
12344
  function AISuggestionChip({ prompt, onClick, className }) {
12236
12345
  return /* @__PURE__ */ (0, import_jsx_runtime125.jsxs)(
@@ -12243,9 +12352,9 @@ function AISuggestionChip({ prompt, onClick, className }) {
12243
12352
  className
12244
12353
  ),
12245
12354
  children: [
12246
- /* @__PURE__ */ (0, import_jsx_runtime125.jsx)("span", { "aria-hidden": true, className: "shrink-0 text-icon-brand", children: /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_lucide_react39.CpuIcon, { className: "size-4" }) }),
12355
+ /* @__PURE__ */ (0, import_jsx_runtime125.jsx)("span", { "aria-hidden": true, className: "shrink-0 text-icon-brand", children: /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_lucide_react40.CpuIcon, { className: "size-4" }) }),
12247
12356
  /* @__PURE__ */ (0, import_jsx_runtime125.jsx)("span", { className: "flex-1 text-body-sm text-default truncate", children: prompt }),
12248
- /* @__PURE__ */ (0, import_jsx_runtime125.jsx)("span", { "aria-hidden": true, className: "shrink-0 text-icon-default-secondary", children: /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_lucide_react39.ArrowRightIcon, { className: "size-3.5", strokeWidth: 2.5 }) })
12357
+ /* @__PURE__ */ (0, import_jsx_runtime125.jsx)("span", { "aria-hidden": true, className: "shrink-0 text-icon-default-secondary", children: /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_lucide_react40.ArrowRightIcon, { className: "size-3.5", strokeWidth: 2.5 }) })
12249
12358
  ]
12250
12359
  }
12251
12360
  );
@@ -12273,7 +12382,7 @@ function QuickActionsBar({ actions, active, onSelect, className }) {
12273
12382
 
12274
12383
  // src/components/ai/chat.tsx
12275
12384
  var import_clsx102 = __toESM(require("clsx"), 1);
12276
- var import_lucide_react40 = require("lucide-react");
12385
+ var import_lucide_react41 = require("lucide-react");
12277
12386
  var import_jsx_runtime127 = require("react/jsx-runtime");
12278
12387
  function AiAvatar({ className, icon }) {
12279
12388
  return /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(
@@ -12281,7 +12390,7 @@ function AiAvatar({ className, icon }) {
12281
12390
  {
12282
12391
  "aria-hidden": true,
12283
12392
  className: cn("flex size-8 shrink-0 items-center justify-center rounded-full bg-brand text-icon-brand-on-brand", className),
12284
- children: icon ?? /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_lucide_react40.CpuIcon, { className: "size-3.5" })
12393
+ children: icon ?? /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_lucide_react41.CpuIcon, { className: "size-3.5" })
12285
12394
  }
12286
12395
  );
12287
12396
  }