@sovereignfs/ui 0.99.0 → 0.101.0

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
@@ -5602,6 +5602,7 @@ function AppTile({
5602
5602
  variant = "solid",
5603
5603
  external = false,
5604
5604
  monochrome = false,
5605
+ onClick,
5605
5606
  className
5606
5607
  }) {
5607
5608
  const opensElsewhere = external && href !== void 0;
@@ -5633,6 +5634,7 @@ function AppTile({
5633
5634
  className: classes,
5634
5635
  href,
5635
5636
  ...opensElsewhere ? { target: "_blank", rel: "noopener noreferrer" } : {},
5637
+ ...onClick ? { onClick } : {},
5636
5638
  children: content
5637
5639
  }
5638
5640
  ) : /* @__PURE__ */ jsx161("div", { className: classes, children: content });
@@ -6261,16 +6263,149 @@ function OfflineGate({ children, surfaceName, className }) {
6261
6263
  );
6262
6264
  }
6263
6265
 
6266
+ // src/components/InstallPrompt/InstallPrompt.tsx
6267
+ import { useCallback as useCallback5, useEffect as useEffect12, useState as useState16 } from "react";
6268
+ import styles51 from "./InstallPrompt.module.css";
6269
+ import { jsx as jsx176, jsxs as jsxs145 } from "react/jsx-runtime";
6270
+ function InstallHint({ appName, kind, onInstall, onDismiss, className }) {
6271
+ return /* @__PURE__ */ jsxs145(
6272
+ "section",
6273
+ {
6274
+ "aria-label": `Install ${appName}`,
6275
+ className: [styles51.hint, className].filter(Boolean).join(" "),
6276
+ children: [
6277
+ /* @__PURE__ */ jsx176("span", { className: styles51.icon, "aria-hidden": true, children: /* @__PURE__ */ jsx176(Icon, { name: kind === "ios" ? "smartphone" : "download", size: "md", "aria-hidden": true }) }),
6278
+ /* @__PURE__ */ jsxs145("div", { className: styles51.body, children: [
6279
+ /* @__PURE__ */ jsxs145("p", { className: styles51.title, children: [
6280
+ "Install ",
6281
+ appName
6282
+ ] }),
6283
+ /* @__PURE__ */ jsx176("p", { className: styles51.text, children: kind === "ios" ? "Open it from your Home Screen, in a window of its own: tap Share, then Add to Home Screen." : "Open it from your home screen or app list, in a window of its own." })
6284
+ ] }),
6285
+ /* @__PURE__ */ jsxs145("div", { className: styles51.actions, children: [
6286
+ kind === "prompt" ? /* @__PURE__ */ jsx176(Button, { size: "sm", onClick: onInstall, children: "Install" }) : null,
6287
+ /* @__PURE__ */ jsx176(Button, { size: "sm", variant: "ghost", onClick: onDismiss, children: "Not now" })
6288
+ ] })
6289
+ ]
6290
+ }
6291
+ );
6292
+ }
6293
+ function isInstalledDisplay() {
6294
+ if (typeof window === "undefined") return false;
6295
+ const standalone = navigator.standalone === true;
6296
+ return standalone || ["standalone", "minimal-ui", "fullscreen", "window-controls-overlay"].some(
6297
+ (mode) => window.matchMedia?.(`(display-mode: ${mode})`).matches
6298
+ );
6299
+ }
6300
+ function isAppleMobile() {
6301
+ const ua = navigator.userAgent;
6302
+ return /iPhone|iPad|iPod/.test(ua) || /Macintosh/.test(ua) && navigator.maxTouchPoints > 1;
6303
+ }
6304
+ function readDismissed(key) {
6305
+ try {
6306
+ return window.localStorage.getItem(key) === "1";
6307
+ } catch {
6308
+ return false;
6309
+ }
6310
+ }
6311
+ function writeDismissed(key) {
6312
+ try {
6313
+ window.localStorage.setItem(key, "1");
6314
+ } catch {
6315
+ }
6316
+ }
6317
+ function useInstallPrompt(storageKey = "sv-install-dismissed") {
6318
+ const [kind, setKind] = useState16(null);
6319
+ const [deferred, setDeferred] = useState16(null);
6320
+ useEffect12(() => {
6321
+ if (isInstalledDisplay() || readDismissed(storageKey)) return;
6322
+ if (isAppleMobile()) setKind("ios");
6323
+ const offered = (event) => {
6324
+ event.preventDefault();
6325
+ setDeferred(event);
6326
+ setKind("prompt");
6327
+ };
6328
+ const installed = () => {
6329
+ setDeferred(null);
6330
+ setKind(null);
6331
+ };
6332
+ window.addEventListener("beforeinstallprompt", offered);
6333
+ window.addEventListener("appinstalled", installed);
6334
+ return () => {
6335
+ window.removeEventListener("beforeinstallprompt", offered);
6336
+ window.removeEventListener("appinstalled", installed);
6337
+ };
6338
+ }, [storageKey]);
6339
+ const install = useCallback5(async () => {
6340
+ if (!deferred) return;
6341
+ await deferred.prompt();
6342
+ const { outcome } = await deferred.userChoice;
6343
+ setDeferred(null);
6344
+ setKind(null);
6345
+ if (outcome === "dismissed") writeDismissed(storageKey);
6346
+ }, [deferred, storageKey]);
6347
+ const dismiss = useCallback5(() => {
6348
+ writeDismissed(storageKey);
6349
+ setKind(null);
6350
+ }, [storageKey]);
6351
+ return { kind, install, dismiss };
6352
+ }
6353
+ function InstallPrompt({ appName, storageKey, className }) {
6354
+ const { kind, install, dismiss } = useInstallPrompt(storageKey);
6355
+ if (!kind) return null;
6356
+ return /* @__PURE__ */ jsx176(
6357
+ InstallHint,
6358
+ {
6359
+ appName,
6360
+ kind,
6361
+ onInstall: () => void install(),
6362
+ onDismiss: dismiss,
6363
+ ...className ? { className } : {}
6364
+ }
6365
+ );
6366
+ }
6367
+
6368
+ // src/components/UpdateNotice/UpdateNotice.tsx
6369
+ import styles52 from "./UpdateNotice.module.css";
6370
+ import { jsx as jsx177, jsxs as jsxs146 } from "react/jsx-runtime";
6371
+ function UpdateNotice({
6372
+ appName,
6373
+ onReload,
6374
+ onDismiss,
6375
+ reloading = false,
6376
+ className
6377
+ }) {
6378
+ return /* @__PURE__ */ jsxs146(
6379
+ "div",
6380
+ {
6381
+ role: "status",
6382
+ "aria-live": "polite",
6383
+ className: [styles52.notice, className].filter(Boolean).join(" "),
6384
+ children: [
6385
+ /* @__PURE__ */ jsxs146("p", { className: styles52.text, children: [
6386
+ "A new version of ",
6387
+ appName,
6388
+ " is ready."
6389
+ ] }),
6390
+ /* @__PURE__ */ jsxs146("div", { className: styles52.actions, children: [
6391
+ onDismiss ? /* @__PURE__ */ jsx177(Button, { size: "sm", variant: "ghost", onClick: onDismiss, disabled: reloading, children: "Later" }) : null,
6392
+ /* @__PURE__ */ jsx177(Button, { size: "sm", onClick: onReload, disabled: reloading, children: reloading ? "Reloading\u2026" : "Reload" })
6393
+ ] })
6394
+ ]
6395
+ }
6396
+ );
6397
+ }
6398
+
6264
6399
  // src/components/DeviceOnlyGate/DeviceOnlyGate.tsx
6265
- import { Fragment as Fragment10, jsx as jsx176 } from "react/jsx-runtime";
6400
+ import { Fragment as Fragment10, jsx as jsx178 } from "react/jsx-runtime";
6266
6401
  function DeviceOnlyGate({
6267
6402
  children,
6268
6403
  surfaceName,
6269
6404
  available,
6270
6405
  className
6271
6406
  }) {
6272
- if (available) return /* @__PURE__ */ jsx176(Fragment10, { children });
6273
- return /* @__PURE__ */ jsx176(
6407
+ if (available) return /* @__PURE__ */ jsx178(Fragment10, { children });
6408
+ return /* @__PURE__ */ jsx178(
6274
6409
  EmptyState,
6275
6410
  {
6276
6411
  icon: "smartphone",
@@ -6282,7 +6417,7 @@ function DeviceOnlyGate({
6282
6417
  }
6283
6418
 
6284
6419
  // src/components/DeviceStorageKeyGate/DeviceStorageKeyGate.tsx
6285
- import { Fragment as Fragment11, jsx as jsx177 } from "react/jsx-runtime";
6420
+ import { Fragment as Fragment11, jsx as jsx179 } from "react/jsx-runtime";
6286
6421
  function DeviceStorageKeyGate({
6287
6422
  children,
6288
6423
  surfaceName,
@@ -6291,9 +6426,9 @@ function DeviceStorageKeyGate({
6291
6426
  className
6292
6427
  }) {
6293
6428
  if (status === "checking") return null;
6294
- if (status === "set-up") return /* @__PURE__ */ jsx177(Fragment11, { children });
6429
+ if (status === "set-up") return /* @__PURE__ */ jsx179(Fragment11, { children });
6295
6430
  if (status === "unsupported") {
6296
- return /* @__PURE__ */ jsx177(
6431
+ return /* @__PURE__ */ jsx179(
6297
6432
  EmptyState,
6298
6433
  {
6299
6434
  icon: "smartphone",
@@ -6304,7 +6439,7 @@ function DeviceStorageKeyGate({
6304
6439
  );
6305
6440
  }
6306
6441
  if (status === "no-device-auth") {
6307
- return /* @__PURE__ */ jsx177(
6442
+ return /* @__PURE__ */ jsx179(
6308
6443
  EmptyState,
6309
6444
  {
6310
6445
  icon: "alert-triangle",
@@ -6314,7 +6449,7 @@ function DeviceStorageKeyGate({
6314
6449
  }
6315
6450
  );
6316
6451
  }
6317
- return /* @__PURE__ */ jsx177(
6452
+ return /* @__PURE__ */ jsx179(
6318
6453
  EmptyState,
6319
6454
  {
6320
6455
  icon: "lock",
@@ -6327,31 +6462,31 @@ function DeviceStorageKeyGate({
6327
6462
  }
6328
6463
 
6329
6464
  // src/components/Avatar/Avatar.tsx
6330
- import { useState as useState16 } from "react";
6331
- import styles51 from "./Avatar.module.css";
6332
- import { jsx as jsx178 } from "react/jsx-runtime";
6465
+ import { useState as useState17 } from "react";
6466
+ import styles53 from "./Avatar.module.css";
6467
+ import { jsx as jsx180 } from "react/jsx-runtime";
6333
6468
  function initials2(name) {
6334
6469
  const parts = name.trim().split(/\s+/);
6335
6470
  if (parts.length === 1) return (parts[0] ?? "").slice(0, 2).toUpperCase();
6336
6471
  return ((parts[0]?.[0] ?? "") + (parts[parts.length - 1]?.[0] ?? "")).toUpperCase();
6337
6472
  }
6338
6473
  var sizeClass2 = {
6339
- sm: styles51.sm,
6340
- md: styles51.md,
6341
- lg: styles51.lg
6474
+ sm: styles53.sm,
6475
+ md: styles53.md,
6476
+ lg: styles53.lg
6342
6477
  };
6343
6478
  function Avatar({ name, src, size = "md", className }) {
6344
- const [imgFailed, setImgFailed] = useState16(false);
6345
- const cls = [styles51.avatar, sizeClass2[size], className].filter(Boolean).join(" ");
6479
+ const [imgFailed, setImgFailed] = useState17(false);
6480
+ const cls = [styles53.avatar, sizeClass2[size], className].filter(Boolean).join(" ");
6346
6481
  if (src && !imgFailed) {
6347
- return /* @__PURE__ */ jsx178("span", { className: cls, "aria-label": name, children: /* @__PURE__ */ jsx178("img", { src, alt: name, className: styles51.img, onError: () => setImgFailed(true) }) });
6482
+ return /* @__PURE__ */ jsx180("span", { className: cls, "aria-label": name, children: /* @__PURE__ */ jsx180("img", { src, alt: name, className: styles53.img, onError: () => setImgFailed(true) }) });
6348
6483
  }
6349
- return /* @__PURE__ */ jsx178("span", { className: cls, "aria-label": name, children: initials2(name) });
6484
+ return /* @__PURE__ */ jsx180("span", { className: cls, "aria-label": name, children: initials2(name) });
6350
6485
  }
6351
6486
 
6352
6487
  // src/components/AvatarStack/AvatarStack.tsx
6353
- import styles52 from "./AvatarStack.module.css";
6354
- import { jsx as jsx179, jsxs as jsxs145 } from "react/jsx-runtime";
6488
+ import styles54 from "./AvatarStack.module.css";
6489
+ import { jsx as jsx181, jsxs as jsxs147 } from "react/jsx-runtime";
6355
6490
  function namesOf(people) {
6356
6491
  const names = people.map((person) => person.name.trim()).filter((name) => name !== "");
6357
6492
  if (names.length <= 1) return names[0] ?? "";
@@ -6364,10 +6499,10 @@ function AvatarStack({ people, max = 4, size = "md", label, className }) {
6364
6499
  const shown = hidden > 0 ? people.slice(0, limit) : people;
6365
6500
  const names = namesOf(people);
6366
6501
  const accessible = label ? `${label}: ${names}` : names;
6367
- const cls = [styles52.stack, styles52[size], className].filter(Boolean).join(" ");
6368
- return /* @__PURE__ */ jsxs145("span", { className: cls, role: "img", "aria-label": accessible, children: [
6369
- shown.map((person, index) => /* @__PURE__ */ jsx179("span", { className: styles52.item, "aria-hidden": "true", children: /* @__PURE__ */ jsx179(Avatar, { name: person.name, ...person.src ? { src: person.src } : {}, size }) }, `${index}:${person.name}`)),
6370
- hidden > 0 ? /* @__PURE__ */ jsxs145("span", { className: `${styles52.item} ${styles52.more}`, "aria-hidden": "true", children: [
6502
+ const cls = [styles54.stack, styles54[size], className].filter(Boolean).join(" ");
6503
+ return /* @__PURE__ */ jsxs147("span", { className: cls, role: "img", "aria-label": accessible, children: [
6504
+ shown.map((person, index) => /* @__PURE__ */ jsx181("span", { className: styles54.item, "aria-hidden": "true", children: /* @__PURE__ */ jsx181(Avatar, { name: person.name, ...person.src ? { src: person.src } : {}, size }) }, `${index}:${person.name}`)),
6505
+ hidden > 0 ? /* @__PURE__ */ jsxs147("span", { className: `${styles54.item} ${styles54.more}`, "aria-hidden": "true", children: [
6371
6506
  "+",
6372
6507
  hidden
6373
6508
  ] }) : null
@@ -6376,22 +6511,22 @@ function AvatarStack({ people, max = 4, size = "md", label, className }) {
6376
6511
 
6377
6512
  // src/components/NavTabs/NavTabs.tsx
6378
6513
  import { Fragment as Fragment12 } from "react";
6379
- import styles53 from "./NavTabs.module.css";
6380
- import { jsx as jsx180 } from "react/jsx-runtime";
6514
+ import styles55 from "./NavTabs.module.css";
6515
+ import { jsx as jsx182 } from "react/jsx-runtime";
6381
6516
  function NavTabs({ items, className, "aria-label": ariaLabel, renderLink }) {
6382
- return /* @__PURE__ */ jsx180(
6517
+ return /* @__PURE__ */ jsx182(
6383
6518
  "nav",
6384
6519
  {
6385
- className: [styles53.nav, className].filter(Boolean).join(" "),
6520
+ className: [styles55.nav, className].filter(Boolean).join(" "),
6386
6521
  "aria-label": ariaLabel ?? "Page navigation",
6387
6522
  children: items.map((item) => {
6388
6523
  const linkProps = {
6389
6524
  href: item.href,
6390
- className: [styles53.link, item.active && styles53.active].filter(Boolean).join(" "),
6525
+ className: [styles55.link, item.active && styles55.active].filter(Boolean).join(" "),
6391
6526
  "aria-current": item.active ? "page" : void 0,
6392
6527
  children: item.label
6393
6528
  };
6394
- return /* @__PURE__ */ jsx180(Fragment12, { children: renderLink ? renderLink(item, linkProps) : /* @__PURE__ */ jsx180(
6529
+ return /* @__PURE__ */ jsx182(Fragment12, { children: renderLink ? renderLink(item, linkProps) : /* @__PURE__ */ jsx182(
6395
6530
  "a",
6396
6531
  {
6397
6532
  href: linkProps.href,
@@ -6407,26 +6542,26 @@ function NavTabs({ items, className, "aria-label": ariaLabel, renderLink }) {
6407
6542
 
6408
6543
  // src/components/Tooltip/Tooltip.tsx
6409
6544
  import { useId as useId5 } from "react";
6410
- import styles54 from "./Tooltip.module.css";
6411
- import { jsx as jsx181, jsxs as jsxs146 } from "react/jsx-runtime";
6545
+ import styles56 from "./Tooltip.module.css";
6546
+ import { jsx as jsx183, jsxs as jsxs148 } from "react/jsx-runtime";
6412
6547
  var sideClass = {
6413
- top: styles54.top,
6414
- bottom: styles54.bottom,
6415
- left: styles54.left,
6416
- right: styles54.right
6548
+ top: styles56.top,
6549
+ bottom: styles56.bottom,
6550
+ left: styles56.left,
6551
+ right: styles56.right
6417
6552
  };
6418
6553
  function Tooltip({ content, children, side = "top" }) {
6419
6554
  const tipId = useId5();
6420
- return /* @__PURE__ */ jsxs146("span", { className: styles54.wrapper, children: [
6421
- /* @__PURE__ */ jsx181("span", { "aria-describedby": tipId, children }),
6422
- /* @__PURE__ */ jsx181("span", { id: tipId, role: "tooltip", className: [styles54.tip, sideClass[side]].join(" "), children: content })
6555
+ return /* @__PURE__ */ jsxs148("span", { className: styles56.wrapper, children: [
6556
+ /* @__PURE__ */ jsx183("span", { "aria-describedby": tipId, children }),
6557
+ /* @__PURE__ */ jsx183("span", { id: tipId, role: "tooltip", className: [styles56.tip, sideClass[side]].join(" "), children: content })
6423
6558
  ] });
6424
6559
  }
6425
6560
 
6426
6561
  // src/components/RadioGroup/RadioGroup.tsx
6427
6562
  import { useId as useId6 } from "react";
6428
- import styles55 from "./RadioGroup.module.css";
6429
- import { jsx as jsx182, jsxs as jsxs147 } from "react/jsx-runtime";
6563
+ import styles57 from "./RadioGroup.module.css";
6564
+ import { jsx as jsx184, jsxs as jsxs149 } from "react/jsx-runtime";
6430
6565
  function RadioGroup({
6431
6566
  items,
6432
6567
  value,
@@ -6443,7 +6578,7 @@ function RadioGroup({
6443
6578
  }) {
6444
6579
  const generatedName = useId6();
6445
6580
  const groupName = name ?? generatedName;
6446
- return /* @__PURE__ */ jsx182(
6581
+ return /* @__PURE__ */ jsx184(
6447
6582
  "div",
6448
6583
  {
6449
6584
  id,
@@ -6453,19 +6588,19 @@ function RadioGroup({
6453
6588
  "aria-describedby": ariaDescribedBy,
6454
6589
  "aria-invalid": ariaInvalid,
6455
6590
  "aria-required": required,
6456
- className: [styles55.root, className].filter(Boolean).join(" "),
6591
+ className: [styles57.root, className].filter(Boolean).join(" "),
6457
6592
  children: items.map((item) => {
6458
6593
  const checked = item.value === value;
6459
6594
  const itemDisabled = disabled || item.disabled;
6460
6595
  const inputId = `${groupName}-${item.value}`;
6461
- return /* @__PURE__ */ jsxs147(
6596
+ return /* @__PURE__ */ jsxs149(
6462
6597
  "label",
6463
6598
  {
6464
6599
  htmlFor: inputId,
6465
- className: [styles55.option, itemDisabled ? styles55.disabled : ""].filter(Boolean).join(" "),
6600
+ className: [styles57.option, itemDisabled ? styles57.disabled : ""].filter(Boolean).join(" "),
6466
6601
  children: [
6467
- /* @__PURE__ */ jsxs147("span", { className: [styles55.circle, checked ? styles55.checked : ""].join(" "), children: [
6468
- /* @__PURE__ */ jsx182(
6602
+ /* @__PURE__ */ jsxs149("span", { className: [styles57.circle, checked ? styles57.checked : ""].join(" "), children: [
6603
+ /* @__PURE__ */ jsx184(
6469
6604
  "input",
6470
6605
  {
6471
6606
  id: inputId,
@@ -6475,13 +6610,13 @@ function RadioGroup({
6475
6610
  checked,
6476
6611
  disabled: itemDisabled,
6477
6612
  required,
6478
- className: styles55.input,
6613
+ className: styles57.input,
6479
6614
  onChange: () => onChange(item.value)
6480
6615
  }
6481
6616
  ),
6482
- checked && /* @__PURE__ */ jsx182("span", { className: styles55.dot })
6617
+ checked && /* @__PURE__ */ jsx184("span", { className: styles57.dot })
6483
6618
  ] }),
6484
- /* @__PURE__ */ jsx182("span", { className: styles55.optionLabel, children: item.label })
6619
+ /* @__PURE__ */ jsx184("span", { className: styles57.optionLabel, children: item.label })
6485
6620
  ]
6486
6621
  },
6487
6622
  item.value
@@ -6493,8 +6628,8 @@ function RadioGroup({
6493
6628
 
6494
6629
  // src/components/Slider/Slider.tsx
6495
6630
  import { useId as useId7 } from "react";
6496
- import styles56 from "./Slider.module.css";
6497
- import { jsx as jsx183, jsxs as jsxs148 } from "react/jsx-runtime";
6631
+ import styles58 from "./Slider.module.css";
6632
+ import { jsx as jsx185, jsxs as jsxs150 } from "react/jsx-runtime";
6498
6633
  function Slider({
6499
6634
  value,
6500
6635
  onChange,
@@ -6513,9 +6648,9 @@ function Slider({
6513
6648
  const generatedId = useId7();
6514
6649
  const inputId = id ?? generatedId;
6515
6650
  const fillPercent = max > min ? (value - min) / (max - min) * 100 : 0;
6516
- return /* @__PURE__ */ jsxs148("div", { className: [styles56.root, className].filter(Boolean).join(" "), children: [
6517
- label && /* @__PURE__ */ jsx183("label", { htmlFor: inputId, className: styles56.label, children: label }),
6518
- /* @__PURE__ */ jsx183(
6651
+ return /* @__PURE__ */ jsxs150("div", { className: [styles58.root, className].filter(Boolean).join(" "), children: [
6652
+ label && /* @__PURE__ */ jsx185("label", { htmlFor: inputId, className: styles58.label, children: label }),
6653
+ /* @__PURE__ */ jsx185(
6519
6654
  "input",
6520
6655
  {
6521
6656
  id: inputId,
@@ -6529,7 +6664,7 @@ function Slider({
6529
6664
  "aria-label": label ? void 0 : ariaLabel,
6530
6665
  "aria-describedby": ariaDescribedBy,
6531
6666
  "aria-invalid": ariaInvalid,
6532
- className: styles56.slider,
6667
+ className: styles58.slider,
6533
6668
  style: { "--slider-fill": `${fillPercent}%` },
6534
6669
  onChange: (e) => onChange(Number(e.target.value))
6535
6670
  }
@@ -6538,11 +6673,11 @@ function Slider({
6538
6673
  }
6539
6674
 
6540
6675
  // src/components/Progress/Progress.tsx
6541
- import styles57 from "./Progress.module.css";
6542
- import { jsx as jsx184 } from "react/jsx-runtime";
6676
+ import styles59 from "./Progress.module.css";
6677
+ import { jsx as jsx186 } from "react/jsx-runtime";
6543
6678
  function Progress({ value, label, id, className }) {
6544
6679
  const clamped = Math.min(100, Math.max(0, value));
6545
- return /* @__PURE__ */ jsx184(
6680
+ return /* @__PURE__ */ jsx186(
6546
6681
  "div",
6547
6682
  {
6548
6683
  id,
@@ -6551,37 +6686,37 @@ function Progress({ value, label, id, className }) {
6551
6686
  "aria-valuemin": 0,
6552
6687
  "aria-valuemax": 100,
6553
6688
  "aria-label": label,
6554
- className: [styles57.track, className].filter(Boolean).join(" "),
6555
- children: /* @__PURE__ */ jsx184("div", { className: styles57.fill, style: { width: `${clamped}%` } })
6689
+ className: [styles59.track, className].filter(Boolean).join(" "),
6690
+ children: /* @__PURE__ */ jsx186("div", { className: styles59.fill, style: { width: `${clamped}%` } })
6556
6691
  }
6557
6692
  );
6558
6693
  }
6559
6694
 
6560
6695
  // src/components/Table/Table.tsx
6561
- import styles58 from "./Table.module.css";
6562
- import { jsx as jsx185 } from "react/jsx-runtime";
6696
+ import styles60 from "./Table.module.css";
6697
+ import { jsx as jsx187 } from "react/jsx-runtime";
6563
6698
  function Table({ children, className }) {
6564
- return /* @__PURE__ */ jsx185("div", { className: styles58.scrollContainer, children: /* @__PURE__ */ jsx185("table", { className: [styles58.table, className].filter(Boolean).join(" "), children }) });
6699
+ return /* @__PURE__ */ jsx187("div", { className: styles60.scrollContainer, children: /* @__PURE__ */ jsx187("table", { className: [styles60.table, className].filter(Boolean).join(" "), children }) });
6565
6700
  }
6566
6701
  function TableHead({ children }) {
6567
- return /* @__PURE__ */ jsx185("thead", { className: styles58.head, children });
6702
+ return /* @__PURE__ */ jsx187("thead", { className: styles60.head, children });
6568
6703
  }
6569
6704
  function TableBody({ children }) {
6570
- return /* @__PURE__ */ jsx185("tbody", { className: styles58.body, children });
6705
+ return /* @__PURE__ */ jsx187("tbody", { className: styles60.body, children });
6571
6706
  }
6572
6707
  function TableRow({ children }) {
6573
- return /* @__PURE__ */ jsx185("tr", { className: styles58.row, children });
6708
+ return /* @__PURE__ */ jsx187("tr", { className: styles60.row, children });
6574
6709
  }
6575
6710
  function TableHeaderCell({ children, ...rest }) {
6576
- return /* @__PURE__ */ jsx185("th", { className: styles58.th, ...rest, children });
6711
+ return /* @__PURE__ */ jsx187("th", { className: styles60.th, ...rest, children });
6577
6712
  }
6578
6713
  function TableCell({ children, ...rest }) {
6579
- return /* @__PURE__ */ jsx185("td", { className: styles58.td, ...rest, children });
6714
+ return /* @__PURE__ */ jsx187("td", { className: styles60.td, ...rest, children });
6580
6715
  }
6581
6716
 
6582
6717
  // src/components/Alert/Alert.tsx
6583
- import styles59 from "./Alert.module.css";
6584
- import { jsx as jsx186, jsxs as jsxs149 } from "react/jsx-runtime";
6718
+ import styles61 from "./Alert.module.css";
6719
+ import { jsx as jsx188, jsxs as jsxs151 } from "react/jsx-runtime";
6585
6720
  var DEFAULT_ICON = {
6586
6721
  info: "info",
6587
6722
  success: "circle-check",
@@ -6591,17 +6726,17 @@ var DEFAULT_ICON = {
6591
6726
  };
6592
6727
  function Alert({ variant, heading, icon, children, id, className }) {
6593
6728
  const resolvedIcon = icon === void 0 ? DEFAULT_ICON[variant] : icon || void 0;
6594
- return /* @__PURE__ */ jsxs149(
6729
+ return /* @__PURE__ */ jsxs151(
6595
6730
  "div",
6596
6731
  {
6597
6732
  id,
6598
6733
  role: variant === "error" ? "alert" : "status",
6599
- className: [styles59.alert, styles59[variant], className].filter(Boolean).join(" "),
6734
+ className: [styles61.alert, styles61[variant], className].filter(Boolean).join(" "),
6600
6735
  children: [
6601
- resolvedIcon && /* @__PURE__ */ jsx186(Icon, { name: resolvedIcon, size: "sm", className: styles59.icon, "aria-hidden": true }),
6602
- /* @__PURE__ */ jsxs149("div", { className: styles59.content, children: [
6603
- heading && /* @__PURE__ */ jsx186("p", { className: styles59.heading, children: heading }),
6604
- /* @__PURE__ */ jsx186("div", { className: styles59.body, children })
6736
+ resolvedIcon && /* @__PURE__ */ jsx188(Icon, { name: resolvedIcon, size: "sm", className: styles61.icon, "aria-hidden": true }),
6737
+ /* @__PURE__ */ jsxs151("div", { className: styles61.content, children: [
6738
+ heading && /* @__PURE__ */ jsx188("p", { className: styles61.heading, children: heading }),
6739
+ /* @__PURE__ */ jsx188("div", { className: styles61.body, children })
6605
6740
  ] })
6606
6741
  ]
6607
6742
  }
@@ -6609,26 +6744,26 @@ function Alert({ variant, heading, icon, children, id, className }) {
6609
6744
  }
6610
6745
 
6611
6746
  // src/components/Breadcrumb/Breadcrumb.tsx
6612
- import styles60 from "./Breadcrumb.module.css";
6613
- import { jsx as jsx187, jsxs as jsxs150 } from "react/jsx-runtime";
6747
+ import styles62 from "./Breadcrumb.module.css";
6748
+ import { jsx as jsx189, jsxs as jsxs152 } from "react/jsx-runtime";
6614
6749
  function Breadcrumb({
6615
6750
  items,
6616
6751
  renderLink,
6617
6752
  className,
6618
6753
  "aria-label": ariaLabel = "Breadcrumb"
6619
6754
  }) {
6620
- return /* @__PURE__ */ jsx187("nav", { "aria-label": ariaLabel, className: [styles60.nav, className].filter(Boolean).join(" "), children: /* @__PURE__ */ jsx187("ol", { className: styles60.list, children: items.map((item, index) => {
6755
+ return /* @__PURE__ */ jsx189("nav", { "aria-label": ariaLabel, className: [styles62.nav, className].filter(Boolean).join(" "), children: /* @__PURE__ */ jsx189("ol", { className: styles62.list, children: items.map((item, index) => {
6621
6756
  const isLast = index === items.length - 1;
6622
- return /* @__PURE__ */ jsxs150("li", { className: styles60.item, children: [
6623
- item.href ? renderLink ? renderLink(item, item.label) : /* @__PURE__ */ jsx187("a", { href: item.href, className: styles60.link, children: item.label }) : /* @__PURE__ */ jsx187("span", { className: styles60.current, "aria-current": "page", children: item.label }),
6624
- !isLast && /* @__PURE__ */ jsx187(Icon, { name: "chevron-right", size: "xs", "aria-hidden": true, className: styles60.separator })
6757
+ return /* @__PURE__ */ jsxs152("li", { className: styles62.item, children: [
6758
+ item.href ? renderLink ? renderLink(item, item.label) : /* @__PURE__ */ jsx189("a", { href: item.href, className: styles62.link, children: item.label }) : /* @__PURE__ */ jsx189("span", { className: styles62.current, "aria-current": "page", children: item.label }),
6759
+ !isLast && /* @__PURE__ */ jsx189(Icon, { name: "chevron-right", size: "xs", "aria-hidden": true, className: styles62.separator })
6625
6760
  ] }, item.label + index);
6626
6761
  }) }) });
6627
6762
  }
6628
6763
 
6629
6764
  // src/components/Pagination/Pagination.tsx
6630
- import styles61 from "./Pagination.module.css";
6631
- import { jsx as jsx188, jsxs as jsxs151 } from "react/jsx-runtime";
6765
+ import styles63 from "./Pagination.module.css";
6766
+ import { jsx as jsx190, jsxs as jsxs153 } from "react/jsx-runtime";
6632
6767
  function getPageList(page, totalPages) {
6633
6768
  if (totalPages <= 1) return [1];
6634
6769
  const siblingCount = 1;
@@ -6651,24 +6786,24 @@ function Pagination({
6651
6786
  "aria-label": ariaLabel = "Pagination"
6652
6787
  }) {
6653
6788
  const pages = getPageList(page, totalPages);
6654
- return /* @__PURE__ */ jsxs151("nav", { "aria-label": ariaLabel, className: [styles61.nav, className].filter(Boolean).join(" "), children: [
6655
- /* @__PURE__ */ jsx188(
6789
+ return /* @__PURE__ */ jsxs153("nav", { "aria-label": ariaLabel, className: [styles63.nav, className].filter(Boolean).join(" "), children: [
6790
+ /* @__PURE__ */ jsx190(
6656
6791
  "button",
6657
6792
  {
6658
6793
  type: "button",
6659
- className: styles61.navButton,
6794
+ className: styles63.navButton,
6660
6795
  onClick: () => onChange(page - 1),
6661
6796
  disabled: page <= 1,
6662
6797
  "aria-label": "Previous page",
6663
- children: /* @__PURE__ */ jsx188(Icon, { name: "chevron-left", size: "sm", "aria-hidden": true })
6798
+ children: /* @__PURE__ */ jsx190(Icon, { name: "chevron-left", size: "sm", "aria-hidden": true })
6664
6799
  }
6665
6800
  ),
6666
- /* @__PURE__ */ jsx188("ul", { className: styles61.list, children: pages.map(
6667
- (p, index) => p === "ellipsis" ? /* @__PURE__ */ jsx188("li", { className: styles61.ellipsis, "aria-hidden": "true", children: "\u2026" }, `ellipsis-${index}`) : /* @__PURE__ */ jsx188("li", { children: /* @__PURE__ */ jsx188(
6801
+ /* @__PURE__ */ jsx190("ul", { className: styles63.list, children: pages.map(
6802
+ (p, index) => p === "ellipsis" ? /* @__PURE__ */ jsx190("li", { className: styles63.ellipsis, "aria-hidden": "true", children: "\u2026" }, `ellipsis-${index}`) : /* @__PURE__ */ jsx190("li", { children: /* @__PURE__ */ jsx190(
6668
6803
  "button",
6669
6804
  {
6670
6805
  type: "button",
6671
- className: [styles61.pageButton, p === page ? styles61.active : ""].filter(Boolean).join(" "),
6806
+ className: [styles63.pageButton, p === page ? styles63.active : ""].filter(Boolean).join(" "),
6672
6807
  onClick: () => onChange(p),
6673
6808
  "aria-current": p === page ? "page" : void 0,
6674
6809
  "aria-label": `Page ${p}`,
@@ -6676,31 +6811,31 @@ function Pagination({
6676
6811
  }
6677
6812
  ) }, p)
6678
6813
  ) }),
6679
- /* @__PURE__ */ jsx188(
6814
+ /* @__PURE__ */ jsx190(
6680
6815
  "button",
6681
6816
  {
6682
6817
  type: "button",
6683
- className: styles61.navButton,
6818
+ className: styles63.navButton,
6684
6819
  onClick: () => onChange(page + 1),
6685
6820
  disabled: page >= totalPages,
6686
6821
  "aria-label": "Next page",
6687
- children: /* @__PURE__ */ jsx188(Icon, { name: "chevron-right", size: "sm", "aria-hidden": true })
6822
+ children: /* @__PURE__ */ jsx190(Icon, { name: "chevron-right", size: "sm", "aria-hidden": true })
6688
6823
  }
6689
6824
  )
6690
6825
  ] });
6691
6826
  }
6692
6827
 
6693
6828
  // src/components/Kbd/Kbd.tsx
6694
- import styles62 from "./Kbd.module.css";
6695
- import { jsx as jsx189 } from "react/jsx-runtime";
6829
+ import styles64 from "./Kbd.module.css";
6830
+ import { jsx as jsx191 } from "react/jsx-runtime";
6696
6831
  function Kbd({ children, className }) {
6697
- return /* @__PURE__ */ jsx189("kbd", { className: [styles62.kbd, className].filter(Boolean).join(" "), children });
6832
+ return /* @__PURE__ */ jsx191("kbd", { className: [styles64.kbd, className].filter(Boolean).join(" "), children });
6698
6833
  }
6699
6834
 
6700
6835
  // src/components/Collapsible/Collapsible.tsx
6701
6836
  import { useId as useId8 } from "react";
6702
- import styles63 from "./Collapsible.module.css";
6703
- import { jsx as jsx190, jsxs as jsxs152 } from "react/jsx-runtime";
6837
+ import styles65 from "./Collapsible.module.css";
6838
+ import { jsx as jsx192, jsxs as jsxs154 } from "react/jsx-runtime";
6704
6839
  function Collapsible({
6705
6840
  open,
6706
6841
  onOpenChange,
@@ -6711,45 +6846,45 @@ function Collapsible({
6711
6846
  }) {
6712
6847
  const generatedId = useId8();
6713
6848
  const contentId = `${id ?? generatedId}-content`;
6714
- return /* @__PURE__ */ jsxs152("div", { className: [styles63.root, className].filter(Boolean).join(" "), children: [
6715
- /* @__PURE__ */ jsxs152(
6849
+ return /* @__PURE__ */ jsxs154("div", { className: [styles65.root, className].filter(Boolean).join(" "), children: [
6850
+ /* @__PURE__ */ jsxs154(
6716
6851
  "button",
6717
6852
  {
6718
6853
  type: "button",
6719
- className: styles63.trigger,
6854
+ className: styles65.trigger,
6720
6855
  "aria-expanded": open,
6721
6856
  "aria-controls": contentId,
6722
6857
  onClick: () => onOpenChange(!open),
6723
6858
  children: [
6724
- /* @__PURE__ */ jsx190("span", { className: styles63.triggerLabel, children: trigger }),
6725
- /* @__PURE__ */ jsx190(
6859
+ /* @__PURE__ */ jsx192("span", { className: styles65.triggerLabel, children: trigger }),
6860
+ /* @__PURE__ */ jsx192(
6726
6861
  Icon,
6727
6862
  {
6728
6863
  name: "chevron-down",
6729
6864
  size: "sm",
6730
6865
  "aria-hidden": true,
6731
- className: [styles63.chevron, open ? styles63.chevronOpen : ""].filter(Boolean).join(" ")
6866
+ className: [styles65.chevron, open ? styles65.chevronOpen : ""].filter(Boolean).join(" ")
6732
6867
  }
6733
6868
  )
6734
6869
  ]
6735
6870
  }
6736
6871
  ),
6737
- /* @__PURE__ */ jsx190(
6872
+ /* @__PURE__ */ jsx192(
6738
6873
  "div",
6739
6874
  {
6740
6875
  id: contentId,
6741
- className: styles63.contentWrapper,
6876
+ className: styles65.contentWrapper,
6742
6877
  "data-open": open,
6743
6878
  inert: !open || void 0,
6744
- children: /* @__PURE__ */ jsx190("div", { className: styles63.contentInner, children })
6879
+ children: /* @__PURE__ */ jsx192("div", { className: styles65.contentInner, children })
6745
6880
  }
6746
6881
  )
6747
6882
  ] });
6748
6883
  }
6749
6884
 
6750
6885
  // src/components/Accordion/Accordion.tsx
6751
- import styles64 from "./Accordion.module.css";
6752
- import { jsx as jsx191 } from "react/jsx-runtime";
6886
+ import styles66 from "./Accordion.module.css";
6887
+ import { jsx as jsx193 } from "react/jsx-runtime";
6753
6888
  function Accordion({ items, type, openIds, onOpenIdsChange, className }) {
6754
6889
  function handleOpenChange(id, open) {
6755
6890
  if (type === "single") {
@@ -6758,7 +6893,7 @@ function Accordion({ items, type, openIds, onOpenIdsChange, className }) {
6758
6893
  }
6759
6894
  onOpenIdsChange(open ? [...openIds, id] : openIds.filter((openId) => openId !== id));
6760
6895
  }
6761
- return /* @__PURE__ */ jsx191("div", { className: [styles64.root, className].filter(Boolean).join(" "), children: items.map((item) => /* @__PURE__ */ jsx191(
6896
+ return /* @__PURE__ */ jsx193("div", { className: [styles66.root, className].filter(Boolean).join(" "), children: items.map((item) => /* @__PURE__ */ jsx193(
6762
6897
  Collapsible,
6763
6898
  {
6764
6899
  id: item.id,
@@ -6772,13 +6907,13 @@ function Accordion({ items, type, openIds, onOpenIdsChange, className }) {
6772
6907
  }
6773
6908
 
6774
6909
  // src/components/AspectRatio/AspectRatio.tsx
6775
- import styles65 from "./AspectRatio.module.css";
6776
- import { jsx as jsx192 } from "react/jsx-runtime";
6910
+ import styles67 from "./AspectRatio.module.css";
6911
+ import { jsx as jsx194 } from "react/jsx-runtime";
6777
6912
  function AspectRatio({ ratio, children, className }) {
6778
- return /* @__PURE__ */ jsx192(
6913
+ return /* @__PURE__ */ jsx194(
6779
6914
  "div",
6780
6915
  {
6781
- className: [styles65.root, className].filter(Boolean).join(" "),
6916
+ className: [styles67.root, className].filter(Boolean).join(" "),
6782
6917
  style: { aspectRatio: ratio },
6783
6918
  children
6784
6919
  }
@@ -6786,8 +6921,8 @@ function AspectRatio({ ratio, children, className }) {
6786
6921
  }
6787
6922
 
6788
6923
  // src/components/ButtonLink/ButtonLink.tsx
6789
- import styles66 from "./Button.module.css";
6790
- import { jsx as jsx193 } from "react/jsx-runtime";
6924
+ import styles68 from "./Button.module.css";
6925
+ import { jsx as jsx195 } from "react/jsx-runtime";
6791
6926
  function ButtonLink({
6792
6927
  variant = "primary",
6793
6928
  size = "md",
@@ -6796,29 +6931,29 @@ function ButtonLink({
6796
6931
  renderLink,
6797
6932
  ...rest
6798
6933
  }) {
6799
- const classes = [styles66.button, styles66[variant], styles66[size], styles66.link, className].filter(Boolean).join(" ");
6934
+ const classes = [styles68.button, styles68[variant], styles68[size], styles68.link, className].filter(Boolean).join(" ");
6800
6935
  const props = { ...rest, className: classes, children };
6801
- return renderLink ? renderLink(props) : /* @__PURE__ */ jsx193("a", { ...rest, className: classes, children });
6936
+ return renderLink ? renderLink(props) : /* @__PURE__ */ jsx195("a", { ...rest, className: classes, children });
6802
6937
  }
6803
6938
 
6804
6939
  // src/components/ButtonGroup/ButtonGroup.tsx
6805
- import styles67 from "./ButtonGroup.module.css";
6806
- import { jsx as jsx194 } from "react/jsx-runtime";
6940
+ import styles69 from "./ButtonGroup.module.css";
6941
+ import { jsx as jsx196 } from "react/jsx-runtime";
6807
6942
  function ButtonGroup({ children, className, "aria-label": ariaLabel }) {
6808
- return /* @__PURE__ */ jsx194(
6943
+ return /* @__PURE__ */ jsx196(
6809
6944
  "div",
6810
6945
  {
6811
6946
  role: "group",
6812
6947
  "aria-label": ariaLabel,
6813
- className: [styles67.root, className].filter(Boolean).join(" "),
6948
+ className: [styles69.root, className].filter(Boolean).join(" "),
6814
6949
  children
6815
6950
  }
6816
6951
  );
6817
6952
  }
6818
6953
 
6819
6954
  // src/components/Item/Item.tsx
6820
- import styles68 from "./Item.module.css";
6821
- import { Fragment as Fragment13, jsx as jsx195, jsxs as jsxs153 } from "react/jsx-runtime";
6955
+ import styles70 from "./Item.module.css";
6956
+ import { Fragment as Fragment13, jsx as jsx197, jsxs as jsxs155 } from "react/jsx-runtime";
6822
6957
  function Item({
6823
6958
  leading,
6824
6959
  title,
@@ -6829,29 +6964,29 @@ function Item({
6829
6964
  className
6830
6965
  }) {
6831
6966
  const interactive = Boolean(onClick);
6832
- const classes = [styles68.root, interactive ? styles68.interactive : "", className].filter(Boolean).join(" ");
6833
- const content = /* @__PURE__ */ jsxs153(Fragment13, { children: [
6834
- leading && /* @__PURE__ */ jsx195("span", { className: styles68.leading, children: leading }),
6835
- /* @__PURE__ */ jsxs153("span", { className: styles68.content, children: [
6836
- /* @__PURE__ */ jsx195("span", { className: styles68.title, children: title }),
6837
- description && /* @__PURE__ */ jsx195("span", { className: styles68.description, children: description })
6967
+ const classes = [styles70.root, interactive ? styles70.interactive : "", className].filter(Boolean).join(" ");
6968
+ const content = /* @__PURE__ */ jsxs155(Fragment13, { children: [
6969
+ leading && /* @__PURE__ */ jsx197("span", { className: styles70.leading, children: leading }),
6970
+ /* @__PURE__ */ jsxs155("span", { className: styles70.content, children: [
6971
+ /* @__PURE__ */ jsx197("span", { className: styles70.title, children: title }),
6972
+ description && /* @__PURE__ */ jsx197("span", { className: styles70.description, children: description })
6838
6973
  ] }),
6839
- trailing && /* @__PURE__ */ jsx195("span", { className: styles68.trailing, children: trailing })
6974
+ trailing && /* @__PURE__ */ jsx197("span", { className: styles70.trailing, children: trailing })
6840
6975
  ] });
6841
6976
  if (interactive) {
6842
- return /* @__PURE__ */ jsx195("button", { type: "button", onClick, disabled, className: classes, children: content });
6977
+ return /* @__PURE__ */ jsx197("button", { type: "button", onClick, disabled, className: classes, children: content });
6843
6978
  }
6844
- return /* @__PURE__ */ jsx195("div", { className: classes, children: content });
6979
+ return /* @__PURE__ */ jsx197("div", { className: classes, children: content });
6845
6980
  }
6846
6981
 
6847
6982
  // src/components/Label/Label.tsx
6848
- import styles69 from "./Label.module.css";
6849
- import { jsx as jsx196 } from "react/jsx-runtime";
6983
+ import styles71 from "./Label.module.css";
6984
+ import { jsx as jsx198 } from "react/jsx-runtime";
6850
6985
  function Label({ disabled, className, children, ...rest }) {
6851
- return /* @__PURE__ */ jsx196(
6986
+ return /* @__PURE__ */ jsx198(
6852
6987
  "label",
6853
6988
  {
6854
- className: [styles69.label, disabled ? styles69.disabled : "", className].filter(Boolean).join(" "),
6989
+ className: [styles71.label, disabled ? styles71.disabled : "", className].filter(Boolean).join(" "),
6855
6990
  ...rest,
6856
6991
  children
6857
6992
  }
@@ -6859,18 +6994,18 @@ function Label({ disabled, className, children, ...rest }) {
6859
6994
  }
6860
6995
 
6861
6996
  // src/components/ScrollArea/ScrollArea.tsx
6862
- import styles70 from "./ScrollArea.module.css";
6863
- import { jsx as jsx197 } from "react/jsx-runtime";
6997
+ import styles72 from "./ScrollArea.module.css";
6998
+ import { jsx as jsx199 } from "react/jsx-runtime";
6864
6999
  function ScrollArea({ children, maxHeight, maxWidth, className }) {
6865
7000
  const style = {};
6866
7001
  if (maxHeight !== void 0) style.maxHeight = maxHeight;
6867
7002
  if (maxWidth !== void 0) style.maxWidth = maxWidth;
6868
- return /* @__PURE__ */ jsx197("div", { className: [styles70.root, className].filter(Boolean).join(" "), style, children });
7003
+ return /* @__PURE__ */ jsx199("div", { className: [styles72.root, className].filter(Boolean).join(" "), style, children });
6869
7004
  }
6870
7005
 
6871
7006
  // src/components/FloatingActionButton/FloatingActionButton.tsx
6872
- import styles71 from "./FloatingActionButton.module.css";
6873
- import { Fragment as Fragment14, jsx as jsx198, jsxs as jsxs154 } from "react/jsx-runtime";
7007
+ import styles73 from "./FloatingActionButton.module.css";
7008
+ import { Fragment as Fragment14, jsx as jsx200, jsxs as jsxs156 } from "react/jsx-runtime";
6874
7009
  function FloatingActionButton({
6875
7010
  label,
6876
7011
  icon,
@@ -6883,13 +7018,13 @@ function FloatingActionButton({
6883
7018
  target,
6884
7019
  ...rest
6885
7020
  }) {
6886
- const cls = [styles71.fab, extended ? styles71.extended : "", className].filter(Boolean).join(" ");
6887
- const content = /* @__PURE__ */ jsxs154(Fragment14, { children: [
6888
- /* @__PURE__ */ jsx198("span", { className: styles71.icon, "aria-hidden": "true", children: icon }),
6889
- extended ? /* @__PURE__ */ jsx198("span", { className: styles71.label, children: label }) : null
7021
+ const cls = [styles73.fab, extended ? styles73.extended : "", className].filter(Boolean).join(" ");
7022
+ const content = /* @__PURE__ */ jsxs156(Fragment14, { children: [
7023
+ /* @__PURE__ */ jsx200("span", { className: styles73.icon, "aria-hidden": "true", children: icon }),
7024
+ extended ? /* @__PURE__ */ jsx200("span", { className: styles73.label, children: label }) : null
6890
7025
  ] });
6891
7026
  if (href !== void 0) {
6892
- return /* @__PURE__ */ jsx198(
7027
+ return /* @__PURE__ */ jsx200(
6893
7028
  "a",
6894
7029
  {
6895
7030
  ...rest,
@@ -6902,18 +7037,18 @@ function FloatingActionButton({
6902
7037
  }
6903
7038
  );
6904
7039
  }
6905
- return /* @__PURE__ */ jsx198("button", { ...rest, type, disabled, className: cls, "aria-label": label, children: content });
7040
+ return /* @__PURE__ */ jsx200("button", { ...rest, type, disabled, className: cls, "aria-label": label, children: content });
6906
7041
  }
6907
7042
 
6908
7043
  // src/components/PhotoViewer/PhotoGrid.tsx
6909
- import { useState as useState18 } from "react";
7044
+ import { useState as useState19 } from "react";
6910
7045
 
6911
7046
  // src/components/PhotoViewer/PhotoViewer.tsx
6912
7047
  import {
6913
- useCallback as useCallback5,
6914
- useEffect as useEffect12,
7048
+ useCallback as useCallback6,
7049
+ useEffect as useEffect13,
6915
7050
  useRef as useRef19,
6916
- useState as useState17
7051
+ useState as useState18
6917
7052
  } from "react";
6918
7053
  import { createPortal as createPortal4 } from "react-dom";
6919
7054
 
@@ -6971,8 +7106,8 @@ var doubleTapScale = (scale) => scale > MIN_SCALE + 0.01 ? MIN_SCALE : DOUBLE_TA
6971
7106
  var stepIndex = (index, step, count) => clamp2(index + step, 0, Math.max(0, count - 1));
6972
7107
 
6973
7108
  // src/components/PhotoViewer/PhotoViewer.tsx
6974
- import styles72 from "./PhotoViewer.module.css";
6975
- import { jsx as jsx199, jsxs as jsxs155 } from "react/jsx-runtime";
7109
+ import styles74 from "./PhotoViewer.module.css";
7110
+ import { jsx as jsx201, jsxs as jsxs157 } from "react/jsx-runtime";
6976
7111
  var TAP_SLOP_PX = 8;
6977
7112
  function PhotoViewer({
6978
7113
  photos,
@@ -6997,11 +7132,11 @@ function PhotoViewer({
6997
7132
  const count = photos.length;
6998
7133
  const current = clamp2(index, 0, Math.max(0, count - 1));
6999
7134
  const photo = photos[current];
7000
- const [scale, setScale] = useState17(MIN_SCALE);
7001
- const [pan, setPan] = useState17({ x: 0, y: 0 });
7002
- const [drag, setDrag] = useState17({ x: 0, y: 0 });
7003
- const [dragging, setDragging] = useState17(false);
7004
- const [failed, setFailed] = useState17(false);
7135
+ const [scale, setScale] = useState18(MIN_SCALE);
7136
+ const [pan, setPan] = useState18({ x: 0, y: 0 });
7137
+ const [drag, setDrag] = useState18({ x: 0, y: 0 });
7138
+ const [dragging, setDragging] = useState18(false);
7139
+ const [failed, setFailed] = useState18(false);
7005
7140
  const pointers = useRef19(/* @__PURE__ */ new Map());
7006
7141
  const gesture = useRef19({
7007
7142
  startScale: 1,
@@ -7014,26 +7149,26 @@ function PhotoViewer({
7014
7149
  pinched: false
7015
7150
  });
7016
7151
  const lastTap = useRef19(void 0);
7017
- useEffect12(() => {
7152
+ useEffect13(() => {
7018
7153
  setScale(MIN_SCALE);
7019
7154
  setPan({ x: 0, y: 0 });
7020
7155
  setDrag({ x: 0, y: 0 });
7021
7156
  setFailed(false);
7022
7157
  }, [current, open]);
7023
- useEffect12(() => {
7158
+ useEffect13(() => {
7024
7159
  if (!open) return;
7025
7160
  for (const next of [photos[current - 1], photos[current + 1]]) {
7026
7161
  if (next) new Image().src = next.src;
7027
7162
  }
7028
7163
  }, [open, current, photos]);
7029
- const go = useCallback5(
7164
+ const go = useCallback6(
7030
7165
  (step) => {
7031
7166
  const next = stepIndex(current, step, count);
7032
7167
  if (next !== current) onIndexChange(next);
7033
7168
  },
7034
7169
  [current, count, onIndexChange]
7035
7170
  );
7036
- const sizes = useCallback5(() => {
7171
+ const sizes = useCallback6(() => {
7037
7172
  const stage = stageRef.current?.getBoundingClientRect();
7038
7173
  const image = imageRef.current;
7039
7174
  const box = { width: stage?.width ?? 0, height: stage?.height ?? 0 };
@@ -7044,7 +7179,7 @@ function PhotoViewer({
7044
7179
  const fit = Math.min(box.width / natural.width, box.height / natural.height) || 1;
7045
7180
  return { box, size: { width: natural.width * fit, height: natural.height * fit } };
7046
7181
  }, []);
7047
- const zoomTo = useCallback5(
7182
+ const zoomTo = useCallback6(
7048
7183
  (next, focus = { x: 0, y: 0 }) => {
7049
7184
  const to = clampScale(next);
7050
7185
  const { box, size } = sizes();
@@ -7053,7 +7188,7 @@ function PhotoViewer({
7053
7188
  },
7054
7189
  [scale, sizes]
7055
7190
  );
7056
- useEffect12(() => {
7191
+ useEffect13(() => {
7057
7192
  if (!open) return;
7058
7193
  function onKey(event) {
7059
7194
  if (event.key === "ArrowRight") go(1);
@@ -7191,12 +7326,12 @@ function PhotoViewer({
7191
7326
  const fade = clamp2(1 - drag.y / 400, 0.3, 1);
7192
7327
  const transform = `translate3d(${pan.x + drag.x}px, ${pan.y + drag.y}px, 0) scale(${scale})`;
7193
7328
  return createPortal4(
7194
- /* @__PURE__ */ jsx199(
7329
+ /* @__PURE__ */ jsx201(
7195
7330
  "div",
7196
7331
  {
7197
- className: [styles72.scrim, isOpenPhase ? styles72.scrimOpen : ""].filter(Boolean).join(" "),
7332
+ className: [styles74.scrim, isOpenPhase ? styles74.scrimOpen : ""].filter(Boolean).join(" "),
7198
7333
  style: { ["--photo-fade"]: String(fade) },
7199
- children: /* @__PURE__ */ jsxs155(
7334
+ children: /* @__PURE__ */ jsxs157(
7200
7335
  "div",
7201
7336
  {
7202
7337
  ref: panelRef,
@@ -7205,35 +7340,35 @@ function PhotoViewer({
7205
7340
  "aria-label": label,
7206
7341
  "aria-roledescription": "photo viewer",
7207
7342
  tabIndex: -1,
7208
- className: styles72.panel,
7343
+ className: styles74.panel,
7209
7344
  children: [
7210
- /* @__PURE__ */ jsxs155("div", { className: styles72.bar, children: [
7211
- /* @__PURE__ */ jsxs155("span", { className: styles72.count, "aria-live": "polite", "aria-atomic": "true", children: [
7345
+ /* @__PURE__ */ jsxs157("div", { className: styles74.bar, children: [
7346
+ /* @__PURE__ */ jsxs157("span", { className: styles74.count, "aria-live": "polite", "aria-atomic": "true", children: [
7212
7347
  current + 1,
7213
7348
  " of ",
7214
7349
  count
7215
7350
  ] }),
7216
- /* @__PURE__ */ jsx199("button", { type: "button", className: styles72.control, "aria-label": "Close", onClick: onClose, children: /* @__PURE__ */ jsx199(Icon, { name: "x", size: "md", "aria-hidden": true }) })
7351
+ /* @__PURE__ */ jsx201("button", { type: "button", className: styles74.control, "aria-label": "Close", onClick: onClose, children: /* @__PURE__ */ jsx201(Icon, { name: "x", size: "md", "aria-hidden": true }) })
7217
7352
  ] }),
7218
- /* @__PURE__ */ jsx199(
7353
+ /* @__PURE__ */ jsx201(
7219
7354
  "div",
7220
7355
  {
7221
7356
  ref: stageRef,
7222
- className: styles72.stage,
7357
+ className: styles74.stage,
7223
7358
  onPointerDown,
7224
7359
  onPointerMove,
7225
7360
  onPointerUp,
7226
7361
  onPointerCancel,
7227
7362
  onWheel,
7228
7363
  onKeyDown: onStageKeyDown,
7229
- children: failed ? /* @__PURE__ */ jsx199("p", { className: styles72.failed, role: "status", children: "This photo could not be shown." }) : /* @__PURE__ */ jsx199(
7364
+ children: failed ? /* @__PURE__ */ jsx201("p", { className: styles74.failed, role: "status", children: "This photo could not be shown." }) : /* @__PURE__ */ jsx201(
7230
7365
  "img",
7231
7366
  {
7232
7367
  ref: imageRef,
7233
7368
  src: photo.src,
7234
7369
  alt: photo.alt,
7235
7370
  draggable: false,
7236
- className: [styles72.image, dragging ? styles72.dragging : ""].filter(Boolean).join(" "),
7371
+ className: [styles74.image, dragging ? styles74.dragging : ""].filter(Boolean).join(" "),
7237
7372
  style: { transform },
7238
7373
  onError: () => setFailed(true)
7239
7374
  },
@@ -7241,27 +7376,27 @@ function PhotoViewer({
7241
7376
  )
7242
7377
  }
7243
7378
  ),
7244
- current > 0 ? /* @__PURE__ */ jsx199(
7379
+ current > 0 ? /* @__PURE__ */ jsx201(
7245
7380
  "button",
7246
7381
  {
7247
7382
  type: "button",
7248
- className: [styles72.control, styles72.previous].join(" "),
7383
+ className: [styles74.control, styles74.previous].join(" "),
7249
7384
  "aria-label": "Previous photo",
7250
7385
  onClick: () => go(-1),
7251
- children: /* @__PURE__ */ jsx199(Icon, { name: "chevron-left", size: "md", "aria-hidden": true })
7386
+ children: /* @__PURE__ */ jsx201(Icon, { name: "chevron-left", size: "md", "aria-hidden": true })
7252
7387
  }
7253
7388
  ) : null,
7254
- current < count - 1 ? /* @__PURE__ */ jsx199(
7389
+ current < count - 1 ? /* @__PURE__ */ jsx201(
7255
7390
  "button",
7256
7391
  {
7257
7392
  type: "button",
7258
- className: [styles72.control, styles72.next].join(" "),
7393
+ className: [styles74.control, styles74.next].join(" "),
7259
7394
  "aria-label": "Next photo",
7260
7395
  onClick: () => go(1),
7261
- children: /* @__PURE__ */ jsx199(Icon, { name: "chevron-right", size: "md", "aria-hidden": true })
7396
+ children: /* @__PURE__ */ jsx201(Icon, { name: "chevron-right", size: "md", "aria-hidden": true })
7262
7397
  }
7263
7398
  ) : null,
7264
- photo.caption ? /* @__PURE__ */ jsx199("div", { className: styles72.caption, children: photo.caption }) : null
7399
+ photo.caption ? /* @__PURE__ */ jsx201("div", { className: styles74.caption, children: photo.caption }) : null
7265
7400
  ]
7266
7401
  }
7267
7402
  )
@@ -7272,18 +7407,18 @@ function PhotoViewer({
7272
7407
  }
7273
7408
 
7274
7409
  // src/components/PhotoViewer/PhotoGrid.tsx
7275
- import styles73 from "./PhotoGrid.module.css";
7276
- import { Fragment as Fragment15, jsx as jsx200, jsxs as jsxs156 } from "react/jsx-runtime";
7410
+ import styles75 from "./PhotoGrid.module.css";
7411
+ import { Fragment as Fragment15, jsx as jsx202, jsxs as jsxs158 } from "react/jsx-runtime";
7277
7412
  function PhotoGrid({ photos, onOpen, label = "Photos", className }) {
7278
7413
  if (photos.length === 0) return null;
7279
- return /* @__PURE__ */ jsx200("ul", { className: [styles73.grid, className].filter(Boolean).join(" "), "aria-label": label, children: photos.map((photo, index) => /* @__PURE__ */ jsx200("li", { className: styles73.cell, children: /* @__PURE__ */ jsx200(
7414
+ return /* @__PURE__ */ jsx202("ul", { className: [styles75.grid, className].filter(Boolean).join(" "), "aria-label": label, children: photos.map((photo, index) => /* @__PURE__ */ jsx202("li", { className: styles75.cell, children: /* @__PURE__ */ jsx202(
7280
7415
  "button",
7281
7416
  {
7282
7417
  type: "button",
7283
- className: styles73.thumb,
7418
+ className: styles75.thumb,
7284
7419
  "aria-label": `Photo ${index + 1} of ${photos.length}: ${photo.alt}`,
7285
7420
  onClick: () => onOpen(index),
7286
- children: /* @__PURE__ */ jsx200(
7421
+ children: /* @__PURE__ */ jsx202(
7287
7422
  "img",
7288
7423
  {
7289
7424
  src: photo.thumbSrc ?? photo.src,
@@ -7291,17 +7426,17 @@ function PhotoGrid({ photos, onOpen, label = "Photos", className }) {
7291
7426
  loading: "lazy",
7292
7427
  decoding: "async",
7293
7428
  draggable: false,
7294
- className: styles73.img
7429
+ className: styles75.img
7295
7430
  }
7296
7431
  )
7297
7432
  }
7298
7433
  ) }, photo.id)) });
7299
7434
  }
7300
7435
  function PhotoGallery({ photos, label, className, onView }) {
7301
- const [open, setOpen] = useState18(false);
7302
- const [index, setIndex] = useState18(0);
7303
- return /* @__PURE__ */ jsxs156(Fragment15, { children: [
7304
- /* @__PURE__ */ jsx200(
7436
+ const [open, setOpen] = useState19(false);
7437
+ const [index, setIndex] = useState19(0);
7438
+ return /* @__PURE__ */ jsxs158(Fragment15, { children: [
7439
+ /* @__PURE__ */ jsx202(
7305
7440
  PhotoGrid,
7306
7441
  {
7307
7442
  photos,
@@ -7314,7 +7449,7 @@ function PhotoGallery({ photos, label, className, onView }) {
7314
7449
  }
7315
7450
  }
7316
7451
  ),
7317
- /* @__PURE__ */ jsx200(
7452
+ /* @__PURE__ */ jsx202(
7318
7453
  PhotoViewer,
7319
7454
  {
7320
7455
  photos,
@@ -7332,40 +7467,40 @@ function PhotoGallery({ photos, label, className, onView }) {
7332
7467
  }
7333
7468
 
7334
7469
  // src/components/Marker/Marker.tsx
7335
- import styles74 from "./Marker.module.css";
7336
- import { jsx as jsx201 } from "react/jsx-runtime";
7470
+ import styles76 from "./Marker.module.css";
7471
+ import { jsx as jsx203 } from "react/jsx-runtime";
7337
7472
  function Marker({ index, label, onClick, className }) {
7338
- const classes = [styles74.marker, className].filter(Boolean).join(" ");
7473
+ const classes = [styles76.marker, className].filter(Boolean).join(" ");
7339
7474
  if (onClick) {
7340
- return /* @__PURE__ */ jsx201("button", { type: "button", onClick, "aria-label": label, className: classes, children: index });
7475
+ return /* @__PURE__ */ jsx203("button", { type: "button", onClick, "aria-label": label, className: classes, children: index });
7341
7476
  }
7342
- return /* @__PURE__ */ jsx201("span", { "aria-label": label, className: classes, children: index });
7477
+ return /* @__PURE__ */ jsx203("span", { "aria-label": label, className: classes, children: index });
7343
7478
  }
7344
7479
 
7345
7480
  // src/components/Message/Message.tsx
7346
- import styles75 from "./Message.module.css";
7347
- import { jsx as jsx202, jsxs as jsxs157 } from "react/jsx-runtime";
7481
+ import styles77 from "./Message.module.css";
7482
+ import { jsx as jsx204, jsxs as jsxs159 } from "react/jsx-runtime";
7348
7483
  function Message({ sender, children, pending, actions, className }) {
7349
- return /* @__PURE__ */ jsxs157("div", { className: [styles75.row, styles75[sender], className].filter(Boolean).join(" "), children: [
7350
- /* @__PURE__ */ jsx202("div", { className: styles75.bubble, children: pending ? /* @__PURE__ */ jsxs157("span", { className: styles75.typingDots, "aria-label": "Thinking", children: [
7351
- /* @__PURE__ */ jsx202("span", { className: styles75.dot }),
7352
- /* @__PURE__ */ jsx202("span", { className: styles75.dot }),
7353
- /* @__PURE__ */ jsx202("span", { className: styles75.dot })
7484
+ return /* @__PURE__ */ jsxs159("div", { className: [styles77.row, styles77[sender], className].filter(Boolean).join(" "), children: [
7485
+ /* @__PURE__ */ jsx204("div", { className: styles77.bubble, children: pending ? /* @__PURE__ */ jsxs159("span", { className: styles77.typingDots, "aria-label": "Thinking", children: [
7486
+ /* @__PURE__ */ jsx204("span", { className: styles77.dot }),
7487
+ /* @__PURE__ */ jsx204("span", { className: styles77.dot }),
7488
+ /* @__PURE__ */ jsx204("span", { className: styles77.dot })
7354
7489
  ] }) : children }),
7355
- actions && !pending && /* @__PURE__ */ jsx202("div", { className: styles75.actions, children: actions })
7490
+ actions && !pending && /* @__PURE__ */ jsx204("div", { className: styles77.actions, children: actions })
7356
7491
  ] });
7357
7492
  }
7358
7493
 
7359
7494
  // src/components/MessageScroller/MessageScroller.tsx
7360
- import { useEffect as useEffect13, useRef as useRef20, useState as useState19 } from "react";
7361
- import styles76 from "./MessageScroller.module.css";
7362
- import { jsx as jsx203, jsxs as jsxs158 } from "react/jsx-runtime";
7495
+ import { useEffect as useEffect14, useRef as useRef20, useState as useState20 } from "react";
7496
+ import styles78 from "./MessageScroller.module.css";
7497
+ import { jsx as jsx205, jsxs as jsxs160 } from "react/jsx-runtime";
7363
7498
  var NEAR_BOTTOM_THRESHOLD_PX = 80;
7364
7499
  function MessageScroller({ children, className }) {
7365
7500
  const containerRef = useRef20(null);
7366
7501
  const isNearBottomRef = useRef20(true);
7367
- const [hasNewMessages, setHasNewMessages] = useState19(false);
7368
- useEffect13(() => {
7502
+ const [hasNewMessages, setHasNewMessages] = useState20(false);
7503
+ useEffect14(() => {
7369
7504
  const el = containerRef.current;
7370
7505
  if (!el) return;
7371
7506
  if (isNearBottomRef.current) {
@@ -7390,24 +7525,24 @@ function MessageScroller({ children, className }) {
7390
7525
  isNearBottomRef.current = true;
7391
7526
  setHasNewMessages(false);
7392
7527
  }
7393
- return /* @__PURE__ */ jsxs158("div", { className: [styles76.root, className].filter(Boolean).join(" "), children: [
7394
- /* @__PURE__ */ jsxs158("div", { className: styles76.scrollContainer, ref: containerRef, onScroll: handleScroll, children: [
7395
- /* @__PURE__ */ jsx203("div", { className: styles76.spacer, "aria-hidden": "true" }),
7528
+ return /* @__PURE__ */ jsxs160("div", { className: [styles78.root, className].filter(Boolean).join(" "), children: [
7529
+ /* @__PURE__ */ jsxs160("div", { className: styles78.scrollContainer, ref: containerRef, onScroll: handleScroll, children: [
7530
+ /* @__PURE__ */ jsx205("div", { className: styles78.spacer, "aria-hidden": "true" }),
7396
7531
  children
7397
7532
  ] }),
7398
- hasNewMessages && /* @__PURE__ */ jsx203("button", { type: "button", className: styles76.jumpButton, onClick: scrollToBottom, children: "New messages \u2193" })
7533
+ hasNewMessages && /* @__PURE__ */ jsx205("button", { type: "button", className: styles78.jumpButton, onClick: scrollToBottom, children: "New messages \u2193" })
7399
7534
  ] });
7400
7535
  }
7401
7536
 
7402
7537
  // src/components/HoverCard/HoverCard.tsx
7403
- import { cloneElement, useEffect as useEffect14, useRef as useRef21, useState as useState20 } from "react";
7404
- import styles77 from "./HoverCard.module.css";
7405
- import { jsx as jsx204 } from "react/jsx-runtime";
7538
+ import { cloneElement, useEffect as useEffect15, useRef as useRef21, useState as useState21 } from "react";
7539
+ import styles79 from "./HoverCard.module.css";
7540
+ import { jsx as jsx206 } from "react/jsx-runtime";
7406
7541
  var OPEN_DELAY_MS = 400;
7407
7542
  var CLOSE_DELAY_MS = 150;
7408
7543
  function useHoverCapable() {
7409
- const [hoverCapable, setHoverCapable] = useState20(true);
7410
- useEffect14(() => {
7544
+ const [hoverCapable, setHoverCapable] = useState21(true);
7545
+ useEffect15(() => {
7411
7546
  const mql = window.matchMedia("(hover: hover)");
7412
7547
  setHoverCapable(mql.matches);
7413
7548
  function handleChange(e) {
@@ -7425,7 +7560,7 @@ function HoverCard({
7425
7560
  width,
7426
7561
  "aria-label": ariaLabel
7427
7562
  }) {
7428
- const [open, setOpen] = useState20(false);
7563
+ const [open, setOpen] = useState21(false);
7429
7564
  const hoverCapable = useHoverCapable();
7430
7565
  const openTimer = useRef21(void 0);
7431
7566
  const closeTimer = useRef21(void 0);
@@ -7447,13 +7582,13 @@ function HoverCard({
7447
7582
  onBlur: scheduleClose
7448
7583
  } : { onClick: () => setOpen((o) => !o) };
7449
7584
  const wrappedTrigger = cloneElement(trigger, triggerHandlers);
7450
- return /* @__PURE__ */ jsx204(
7585
+ return /* @__PURE__ */ jsx206(
7451
7586
  "div",
7452
7587
  {
7453
- className: styles77.root,
7588
+ className: styles79.root,
7454
7589
  onMouseEnter: hoverCapable ? cancelScheduledClose : void 0,
7455
7590
  onMouseLeave: hoverCapable ? scheduleClose : void 0,
7456
- children: /* @__PURE__ */ jsx204(
7591
+ children: /* @__PURE__ */ jsx206(
7457
7592
  Popover,
7458
7593
  {
7459
7594
  trigger: wrappedTrigger,
@@ -7470,12 +7605,12 @@ function HoverCard({
7470
7605
  }
7471
7606
 
7472
7607
  // src/components/ContextMenu/ContextMenu.tsx
7473
- import { cloneElement as cloneElement2, useState as useState21 } from "react";
7474
- import { Fragment as Fragment16, jsx as jsx205, jsxs as jsxs159 } from "react/jsx-runtime";
7608
+ import { cloneElement as cloneElement2, useState as useState22 } from "react";
7609
+ import { Fragment as Fragment16, jsx as jsx207, jsxs as jsxs161 } from "react/jsx-runtime";
7475
7610
  function ContextMenu({ children, items, "aria-label": ariaLabel }) {
7476
7611
  const isMobile = useIsMobile();
7477
- const [open, setOpen] = useState21(false);
7478
- const [point, setPoint] = useState21({ x: 0, y: 0 });
7612
+ const [open, setOpen] = useState22(false);
7613
+ const [point, setPoint] = useState22({ x: 0, y: 0 });
7479
7614
  const longPressHandlers = useLongPress({
7480
7615
  onLongPress: () => setOpen(true),
7481
7616
  disabled: !isMobile
@@ -7489,7 +7624,7 @@ function ContextMenu({ children, items, "aria-label": ariaLabel }) {
7489
7624
  children,
7490
7625
  isMobile ? longPressHandlers : { onContextMenu: handleContextMenu }
7491
7626
  );
7492
- const list = /* @__PURE__ */ jsx205(
7627
+ const list = /* @__PURE__ */ jsx207(
7493
7628
  MenuEntries,
7494
7629
  {
7495
7630
  items,
@@ -7500,17 +7635,17 @@ function ContextMenu({ children, items, "aria-label": ariaLabel }) {
7500
7635
  }
7501
7636
  );
7502
7637
  if (isMobile) {
7503
- return /* @__PURE__ */ jsxs159(Fragment16, { children: [
7638
+ return /* @__PURE__ */ jsxs161(Fragment16, { children: [
7504
7639
  wrappedChild,
7505
- /* @__PURE__ */ jsx205(Drawer, { open, onClose: () => setOpen(false), "aria-label": ariaLabel, children: list })
7640
+ /* @__PURE__ */ jsx207(Drawer, { open, onClose: () => setOpen(false), "aria-label": ariaLabel, children: list })
7506
7641
  ] });
7507
7642
  }
7508
- return /* @__PURE__ */ jsxs159(Fragment16, { children: [
7643
+ return /* @__PURE__ */ jsxs161(Fragment16, { children: [
7509
7644
  wrappedChild,
7510
- open && /* @__PURE__ */ jsx205("div", { style: { position: "fixed", left: point.x, top: point.y, width: 0, height: 0 }, children: /* @__PURE__ */ jsx205(
7645
+ open && /* @__PURE__ */ jsx207("div", { style: { position: "fixed", left: point.x, top: point.y, width: 0, height: 0 }, children: /* @__PURE__ */ jsx207(
7511
7646
  Popover,
7512
7647
  {
7513
- trigger: /* @__PURE__ */ jsx205("span", {}),
7648
+ trigger: /* @__PURE__ */ jsx207("span", {}),
7514
7649
  open,
7515
7650
  onClose: () => setOpen(false),
7516
7651
  "aria-label": ariaLabel,
@@ -7521,15 +7656,15 @@ function ContextMenu({ children, items, "aria-label": ariaLabel }) {
7521
7656
  }
7522
7657
 
7523
7658
  // src/components/NavigationMenu/NavigationMenu.tsx
7524
- import { useRef as useRef22, useState as useState22 } from "react";
7525
- import styles78 from "./NavigationMenu.module.css";
7526
- import { jsx as jsx206 } from "react/jsx-runtime";
7659
+ import { useRef as useRef22, useState as useState23 } from "react";
7660
+ import styles80 from "./NavigationMenu.module.css";
7661
+ import { jsx as jsx208 } from "react/jsx-runtime";
7527
7662
  function NavigationMenu({
7528
7663
  items,
7529
7664
  renderLink,
7530
7665
  "aria-label": ariaLabel
7531
7666
  }) {
7532
- const [openIndex, setOpenIndex] = useState22(null);
7667
+ const [openIndex, setOpenIndex] = useState23(null);
7533
7668
  const triggerRefs = useRef22([]);
7534
7669
  function handleKeyDown(e, index) {
7535
7670
  if (e.key === "Escape") {
@@ -7544,26 +7679,26 @@ function NavigationMenu({
7544
7679
  triggerRefs.current[nextIndex]?.focus();
7545
7680
  }
7546
7681
  }
7547
- return /* @__PURE__ */ jsx206("nav", { "aria-label": ariaLabel, className: styles78.nav, children: /* @__PURE__ */ jsx206("ul", { className: styles78.list, children: items.map((item, index) => {
7682
+ return /* @__PURE__ */ jsx208("nav", { "aria-label": ariaLabel, className: styles80.nav, children: /* @__PURE__ */ jsx208("ul", { className: styles80.list, children: items.map((item, index) => {
7548
7683
  if (!item.content) {
7549
7684
  const linkChildren = item.label;
7550
- return /* @__PURE__ */ jsx206("li", { children: item.href && renderLink ? renderLink(item.href, linkChildren) : /* @__PURE__ */ jsx206("a", { href: item.href, className: styles78.link, children: linkChildren }) }, item.label);
7685
+ return /* @__PURE__ */ jsx208("li", { children: item.href && renderLink ? renderLink(item.href, linkChildren) : /* @__PURE__ */ jsx208("a", { href: item.href, className: styles80.link, children: linkChildren }) }, item.label);
7551
7686
  }
7552
7687
  const isOpen = openIndex === index;
7553
- return /* @__PURE__ */ jsx206("li", { children: /* @__PURE__ */ jsx206(
7688
+ return /* @__PURE__ */ jsx208("li", { children: /* @__PURE__ */ jsx208(
7554
7689
  Popover,
7555
7690
  {
7556
7691
  "aria-label": item.label,
7557
7692
  open: isOpen,
7558
7693
  onClose: () => setOpenIndex((current) => current === index ? null : current),
7559
- trigger: /* @__PURE__ */ jsx206(
7694
+ trigger: /* @__PURE__ */ jsx208(
7560
7695
  "button",
7561
7696
  {
7562
7697
  ref: (el) => {
7563
7698
  triggerRefs.current[index] = el;
7564
7699
  },
7565
7700
  type: "button",
7566
- className: [styles78.trigger, isOpen ? styles78.triggerOpen : ""].filter(Boolean).join(" "),
7701
+ className: [styles80.trigger, isOpen ? styles80.triggerOpen : ""].filter(Boolean).join(" "),
7567
7702
  "aria-expanded": isOpen,
7568
7703
  onClick: () => setOpenIndex((current) => current === index ? null : index),
7569
7704
  onMouseEnter: () => {
@@ -7580,15 +7715,15 @@ function NavigationMenu({
7580
7715
  }
7581
7716
 
7582
7717
  // src/components/Menubar/Menubar.tsx
7583
- import { jsx as jsx207 } from "react/jsx-runtime";
7718
+ import { jsx as jsx209 } from "react/jsx-runtime";
7584
7719
  function Menubar({ menus, "aria-label": ariaLabel = "Menu bar" }) {
7585
- return /* @__PURE__ */ jsx207(
7720
+ return /* @__PURE__ */ jsx209(
7586
7721
  NavigationMenu,
7587
7722
  {
7588
7723
  "aria-label": ariaLabel,
7589
7724
  items: menus.map((menu) => ({
7590
7725
  label: menu.label,
7591
- content: (close) => /* @__PURE__ */ jsx207(
7726
+ content: (close) => /* @__PURE__ */ jsx209(
7592
7727
  MenuEntries,
7593
7728
  {
7594
7729
  items: menu.items,
@@ -7604,9 +7739,9 @@ function Menubar({ menus, "aria-label": ariaLabel = "Menu bar" }) {
7604
7739
  }
7605
7740
 
7606
7741
  // src/components/Command/Command.tsx
7607
- import { useEffect as useEffect15, useId as useId9, useMemo as useMemo3, useRef as useRef23, useState as useState23 } from "react";
7608
- import styles79 from "./Command.module.css";
7609
- import { jsx as jsx208, jsxs as jsxs160 } from "react/jsx-runtime";
7742
+ import { useEffect as useEffect16, useId as useId9, useMemo as useMemo3, useRef as useRef23, useState as useState24 } from "react";
7743
+ import styles81 from "./Command.module.css";
7744
+ import { jsx as jsx210, jsxs as jsxs162 } from "react/jsx-runtime";
7610
7745
  function matches(item, query) {
7611
7746
  if (!query) return true;
7612
7747
  const haystack = `${item.label} ${item.keywords ?? ""}`.toLowerCase();
@@ -7619,15 +7754,15 @@ function Command({
7619
7754
  placeholder = "Type a command\u2026",
7620
7755
  "aria-label": ariaLabel = "Command palette"
7621
7756
  }) {
7622
- const [query, setQuery] = useState23("");
7623
- const [highlightedIndex, setHighlightedIndex] = useState23(0);
7757
+ const [query, setQuery] = useState24("");
7758
+ const [highlightedIndex, setHighlightedIndex] = useState24(0);
7624
7759
  const inputRef = useRef23(null);
7625
7760
  const listId = useId9();
7626
7761
  const filtered = useMemo3(() => items.filter((item) => matches(item, query)), [items, query]);
7627
- useEffect15(() => {
7762
+ useEffect16(() => {
7628
7763
  setHighlightedIndex(0);
7629
7764
  }, [query, open]);
7630
- useEffect15(() => {
7765
+ useEffect16(() => {
7631
7766
  if (open) {
7632
7767
  setQuery("");
7633
7768
  requestAnimationFrame(() => inputRef.current?.focus());
@@ -7664,8 +7799,8 @@ function Command({
7664
7799
  return order.map((group) => ({ group, items: byGroup.get(group) ?? [] }));
7665
7800
  }, [filtered]);
7666
7801
  const highlightedId = filtered[highlightedIndex] ? `${listId}-${filtered[highlightedIndex].id}` : void 0;
7667
- return /* @__PURE__ */ jsx208(Dialog, { open, onClose, "aria-label": ariaLabel, size: "sm", children: /* @__PURE__ */ jsxs160("div", { className: styles79.root, children: [
7668
- /* @__PURE__ */ jsx208(
7802
+ return /* @__PURE__ */ jsx210(Dialog, { open, onClose, "aria-label": ariaLabel, size: "sm", children: /* @__PURE__ */ jsxs162("div", { className: styles81.root, children: [
7803
+ /* @__PURE__ */ jsx210(
7669
7804
  "input",
7670
7805
  {
7671
7806
  ref: inputRef,
@@ -7675,35 +7810,35 @@ function Command({
7675
7810
  "aria-controls": listId,
7676
7811
  "aria-activedescendant": highlightedId,
7677
7812
  "aria-autocomplete": "list",
7678
- className: styles79.input,
7813
+ className: styles81.input,
7679
7814
  placeholder,
7680
7815
  value: query,
7681
7816
  onChange: (e) => setQuery(e.target.value),
7682
7817
  onKeyDown: handleKeyDown
7683
7818
  }
7684
7819
  ),
7685
- /* @__PURE__ */ jsxs160("ul", { id: listId, role: "listbox", className: styles79.list, children: [
7686
- filtered.length === 0 && /* @__PURE__ */ jsx208("li", { className: styles79.empty, children: "No matching commands." }),
7687
- groups.map(({ group, items: groupItems }) => /* @__PURE__ */ jsxs160("li", { children: [
7688
- group && /* @__PURE__ */ jsx208("div", { className: styles79.groupLabel, children: group }),
7689
- /* @__PURE__ */ jsx208("ul", { className: styles79.groupList, children: groupItems.map((item) => {
7820
+ /* @__PURE__ */ jsxs162("ul", { id: listId, role: "listbox", className: styles81.list, children: [
7821
+ filtered.length === 0 && /* @__PURE__ */ jsx210("li", { className: styles81.empty, children: "No matching commands." }),
7822
+ groups.map(({ group, items: groupItems }) => /* @__PURE__ */ jsxs162("li", { children: [
7823
+ group && /* @__PURE__ */ jsx210("div", { className: styles81.groupLabel, children: group }),
7824
+ /* @__PURE__ */ jsx210("ul", { className: styles81.groupList, children: groupItems.map((item) => {
7690
7825
  const index = filtered.indexOf(item);
7691
7826
  const isHighlighted = index === highlightedIndex;
7692
- return /* @__PURE__ */ jsx208("li", { children: /* @__PURE__ */ jsxs160(
7827
+ return /* @__PURE__ */ jsx210("li", { children: /* @__PURE__ */ jsxs162(
7693
7828
  "button",
7694
7829
  {
7695
7830
  id: `${listId}-${item.id}`,
7696
7831
  type: "button",
7697
7832
  role: "option",
7698
7833
  "aria-selected": isHighlighted,
7699
- className: [styles79.item, isHighlighted ? styles79.itemHighlighted : ""].filter(Boolean).join(" "),
7834
+ className: [styles81.item, isHighlighted ? styles81.itemHighlighted : ""].filter(Boolean).join(" "),
7700
7835
  onMouseEnter: () => setHighlightedIndex(index),
7701
7836
  onClick: () => {
7702
7837
  onClose();
7703
7838
  item.onSelect();
7704
7839
  },
7705
7840
  children: [
7706
- item.icon && /* @__PURE__ */ jsx208(Icon, { name: item.icon, size: "sm", "aria-hidden": true }),
7841
+ item.icon && /* @__PURE__ */ jsx210(Icon, { name: item.icon, size: "sm", "aria-hidden": true }),
7707
7842
  item.label
7708
7843
  ]
7709
7844
  }
@@ -7715,11 +7850,11 @@ function Command({
7715
7850
  }
7716
7851
 
7717
7852
  // src/components/Resizable/Resizable.tsx
7718
- import { Children, isValidElement, useEffect as useEffect16, useRef as useRef24, useState as useState24 } from "react";
7719
- import styles80 from "./Resizable.module.css";
7720
- import { jsx as jsx209 } from "react/jsx-runtime";
7853
+ import { Children, isValidElement, useEffect as useEffect17, useRef as useRef24, useState as useState25 } from "react";
7854
+ import styles82 from "./Resizable.module.css";
7855
+ import { jsx as jsx211 } from "react/jsx-runtime";
7721
7856
  function ResizablePanel({ children, className, style }) {
7722
- return /* @__PURE__ */ jsx209("div", { className: [styles80.panel, className].filter(Boolean).join(" "), style, children });
7857
+ return /* @__PURE__ */ jsx211("div", { className: [styles82.panel, className].filter(Boolean).join(" "), style, children });
7723
7858
  }
7724
7859
  function ResizableHandle({
7725
7860
  "aria-label": ariaLabel = "Resize panels",
@@ -7732,10 +7867,10 @@ function ResizableHandle({
7732
7867
  }) {
7733
7868
  return (
7734
7869
  /* eslint-disable jsx-a11y/no-noninteractive-element-interactions, jsx-a11y/no-noninteractive-tabindex -- WAI-ARIA "window splitter" pattern: a focusable, keyboard-operable separator is the documented exception to role="separator" being non-interactive (https://www.w3.org/WAI/ARIA/apg/patterns/windowsplitter/). */
7735
- /* @__PURE__ */ jsx209(
7870
+ /* @__PURE__ */ jsx211(
7736
7871
  "div",
7737
7872
  {
7738
- className: [styles80.handle, direction === "vertical" ? styles80.handleVertical : ""].filter(Boolean).join(" "),
7873
+ className: [styles82.handle, direction === "vertical" ? styles82.handleVertical : ""].filter(Boolean).join(" "),
7739
7874
  role: "separator",
7740
7875
  tabIndex: 0,
7741
7876
  "aria-orientation": direction === "horizontal" ? "vertical" : "horizontal",
@@ -7761,7 +7896,7 @@ function ResizablePanelGroup({ direction, children, className }) {
7761
7896
  maxSize: props.maxSize ?? 90
7762
7897
  };
7763
7898
  });
7764
- const [sizes, setSizes] = useState24(() => constraints.map((c) => c.defaultSize));
7899
+ const [sizes, setSizes] = useState25(() => constraints.map((c) => c.defaultSize));
7765
7900
  if (sizes.length !== constraints.length) {
7766
7901
  setSizes(constraints.map((c) => c.defaultSize));
7767
7902
  }
@@ -7787,7 +7922,7 @@ function ResizablePanelGroup({ direction, children, className }) {
7787
7922
  return next;
7788
7923
  });
7789
7924
  }
7790
- useEffect16(() => {
7925
+ useEffect17(() => {
7791
7926
  function handlePointerMove(event) {
7792
7927
  const drag = dragState.current;
7793
7928
  const rect = containerRef.current?.getBoundingClientRect();
@@ -7846,16 +7981,16 @@ function ResizablePanelGroup({ direction, children, className }) {
7846
7981
  }
7847
7982
  let panelIndex = -1;
7848
7983
  let handleIndex = -1;
7849
- return /* @__PURE__ */ jsx209(
7984
+ return /* @__PURE__ */ jsx211(
7850
7985
  "div",
7851
7986
  {
7852
7987
  ref: containerRef,
7853
- className: [styles80.group, direction === "vertical" ? styles80.groupVertical : "", className].filter(Boolean).join(" "),
7988
+ className: [styles82.group, direction === "vertical" ? styles82.groupVertical : "", className].filter(Boolean).join(" "),
7854
7989
  children: elements.map((element, key) => {
7855
7990
  if (element.type === ResizablePanel) {
7856
7991
  panelIndex += 1;
7857
7992
  const size = sizes[panelIndex] ?? constraints[panelIndex]?.defaultSize ?? 0;
7858
- return /* @__PURE__ */ jsx209(
7993
+ return /* @__PURE__ */ jsx211(
7859
7994
  ResizablePanelClone,
7860
7995
  {
7861
7996
  element,
@@ -7868,7 +8003,7 @@ function ResizablePanelGroup({ direction, children, className }) {
7868
8003
  handleIndex += 1;
7869
8004
  const index = handleIndex;
7870
8005
  const constraint = constraints[index];
7871
- return /* @__PURE__ */ jsx209(
8006
+ return /* @__PURE__ */ jsx211(
7872
8007
  ResizableHandleClone,
7873
8008
  {
7874
8009
  element,
@@ -7897,19 +8032,19 @@ function ResizablePanelClone({
7897
8032
  flexGrow: 0,
7898
8033
  flexShrink: 0
7899
8034
  };
7900
- return /* @__PURE__ */ jsx209(ResizablePanel, { ...element.props, style });
8035
+ return /* @__PURE__ */ jsx211(ResizablePanel, { ...element.props, style });
7901
8036
  }
7902
8037
  function ResizableHandleClone({
7903
8038
  element,
7904
8039
  ...injected
7905
8040
  }) {
7906
- return /* @__PURE__ */ jsx209(ResizableHandle, { ...element.props, ...injected });
8041
+ return /* @__PURE__ */ jsx211(ResizableHandle, { ...element.props, ...injected });
7907
8042
  }
7908
8043
 
7909
8044
  // src/components/DataTable/DataTable.tsx
7910
- import { useMemo as useMemo4, useState as useState25 } from "react";
7911
- import styles81 from "./DataTable.module.css";
7912
- import { jsx as jsx210, jsxs as jsxs161 } from "react/jsx-runtime";
8045
+ import { useMemo as useMemo4, useState as useState26 } from "react";
8046
+ import styles83 from "./DataTable.module.css";
8047
+ import { jsx as jsx212, jsxs as jsxs163 } from "react/jsx-runtime";
7913
8048
  function compareValues(a, b) {
7914
8049
  if (typeof a === "number" && typeof b === "number") return a - b;
7915
8050
  return String(a).localeCompare(String(b));
@@ -7923,8 +8058,8 @@ function DataTable({
7923
8058
  emptyMessage = "No results.",
7924
8059
  className
7925
8060
  }) {
7926
- const [sortKey, setSortKey] = useState25(defaultSortKey);
7927
- const [sortDirection, setSortDirection] = useState25(defaultSortDirection);
8061
+ const [sortKey, setSortKey] = useState26(defaultSortKey);
8062
+ const [sortDirection, setSortDirection] = useState26(defaultSortDirection);
7928
8063
  const sortColumn = columns.find((c) => c.key === sortKey);
7929
8064
  const sortedData = useMemo4(() => {
7930
8065
  if (!sortColumn) return data;
@@ -7945,26 +8080,26 @@ function DataTable({
7945
8080
  }
7946
8081
  }
7947
8082
  if (data.length === 0) {
7948
- return /* @__PURE__ */ jsx210(EmptyState, { heading: emptyMessage });
8083
+ return /* @__PURE__ */ jsx212(EmptyState, { heading: emptyMessage });
7949
8084
  }
7950
- return /* @__PURE__ */ jsxs161(Table, { className, children: [
7951
- /* @__PURE__ */ jsx210(TableHead, { children: /* @__PURE__ */ jsx210(TableRow, { children: columns.map((column) => {
8085
+ return /* @__PURE__ */ jsxs163(Table, { className, children: [
8086
+ /* @__PURE__ */ jsx212(TableHead, { children: /* @__PURE__ */ jsx212(TableRow, { children: columns.map((column) => {
7952
8087
  const isSorted = sortKey === column.key;
7953
8088
  const ariaSort = !column.sortable ? void 0 : isSorted ? sortDirection === "asc" ? "ascending" : "descending" : "none";
7954
- return /* @__PURE__ */ jsx210(
8089
+ return /* @__PURE__ */ jsx212(
7955
8090
  TableHeaderCell,
7956
8091
  {
7957
8092
  "aria-sort": ariaSort,
7958
8093
  style: column.align === "end" ? { textAlign: "end" } : void 0,
7959
- children: column.sortable ? /* @__PURE__ */ jsxs161(
8094
+ children: column.sortable ? /* @__PURE__ */ jsxs163(
7960
8095
  "button",
7961
8096
  {
7962
8097
  type: "button",
7963
- className: styles81.sortButton,
8098
+ className: styles83.sortButton,
7964
8099
  onClick: () => handleSort(column),
7965
8100
  children: [
7966
8101
  column.header,
7967
- /* @__PURE__ */ jsx210("span", { className: styles81.sortIcon, children: isSorted && /* @__PURE__ */ jsx210(
8102
+ /* @__PURE__ */ jsx212("span", { className: styles83.sortIcon, children: isSorted && /* @__PURE__ */ jsx212(
7968
8103
  Icon,
7969
8104
  {
7970
8105
  name: sortDirection === "asc" ? "chevron-up" : "chevron-down",
@@ -7979,7 +8114,7 @@ function DataTable({
7979
8114
  column.key
7980
8115
  );
7981
8116
  }) }) }),
7982
- /* @__PURE__ */ jsx210(TableBody, { children: sortedData.map((row) => /* @__PURE__ */ jsx210(TableRow, { children: columns.map((column) => /* @__PURE__ */ jsx210(
8117
+ /* @__PURE__ */ jsx212(TableBody, { children: sortedData.map((row) => /* @__PURE__ */ jsx212(TableRow, { children: columns.map((column) => /* @__PURE__ */ jsx212(
7983
8118
  TableCell,
7984
8119
  {
7985
8120
  style: column.align === "end" ? { textAlign: "end" } : void 0,
@@ -7991,9 +8126,9 @@ function DataTable({
7991
8126
  }
7992
8127
 
7993
8128
  // src/components/Combobox/Combobox.tsx
7994
- import { useEffect as useEffect17, useId as useId10, useMemo as useMemo5, useRef as useRef25, useState as useState26 } from "react";
7995
- import styles82 from "./Combobox.module.css";
7996
- import { Fragment as Fragment17, jsx as jsx211, jsxs as jsxs162 } from "react/jsx-runtime";
8129
+ import { useEffect as useEffect18, useId as useId10, useMemo as useMemo5, useRef as useRef25, useState as useState27 } from "react";
8130
+ import styles84 from "./Combobox.module.css";
8131
+ import { Fragment as Fragment17, jsx as jsx213, jsxs as jsxs164 } from "react/jsx-runtime";
7997
8132
  function matches2(option, query) {
7998
8133
  if (!query) return true;
7999
8134
  return option.label.toLowerCase().includes(query.toLowerCase());
@@ -8009,9 +8144,9 @@ function Combobox({
8009
8144
  disabled = false,
8010
8145
  className
8011
8146
  }) {
8012
- const [open, setOpen] = useState26(false);
8013
- const [query, setQuery] = useState26("");
8014
- const [highlightedIndex, setHighlightedIndex] = useState26(0);
8147
+ const [open, setOpen] = useState27(false);
8148
+ const [query, setQuery] = useState27("");
8149
+ const [highlightedIndex, setHighlightedIndex] = useState27(0);
8015
8150
  const isMobile = useIsMobile();
8016
8151
  const inputRef = useRef25(null);
8017
8152
  const listId = useId10();
@@ -8020,10 +8155,10 @@ function Combobox({
8020
8155
  () => options.filter((option) => matches2(option, query)),
8021
8156
  [options, query]
8022
8157
  );
8023
- useEffect17(() => {
8158
+ useEffect18(() => {
8024
8159
  setHighlightedIndex(0);
8025
8160
  }, [query, open]);
8026
- useEffect17(() => {
8161
+ useEffect18(() => {
8027
8162
  if (open) {
8028
8163
  setQuery("");
8029
8164
  requestAnimationFrame(() => inputRef.current?.focus());
@@ -8047,24 +8182,24 @@ function Combobox({
8047
8182
  }
8048
8183
  }
8049
8184
  const highlightedId = filtered[highlightedIndex] ? `${listId}-${filtered[highlightedIndex].value}` : void 0;
8050
- const trigger = /* @__PURE__ */ jsxs162(
8185
+ const trigger = /* @__PURE__ */ jsxs164(
8051
8186
  "button",
8052
8187
  {
8053
8188
  type: "button",
8054
- className: [styles82.trigger, className].filter(Boolean).join(" "),
8189
+ className: [styles84.trigger, className].filter(Boolean).join(" "),
8055
8190
  disabled,
8056
8191
  "aria-label": ariaLabel,
8057
8192
  "aria-haspopup": "listbox",
8058
8193
  "aria-expanded": open,
8059
8194
  onClick: () => setOpen((o) => !o),
8060
8195
  children: [
8061
- /* @__PURE__ */ jsx211("span", { className: selected ? styles82.triggerValue : styles82.triggerPlaceholder, children: selected ? selected.label : placeholder }),
8062
- /* @__PURE__ */ jsx211(Icon, { name: "chevron-down", size: "sm", "aria-hidden": true })
8196
+ /* @__PURE__ */ jsx213("span", { className: selected ? styles84.triggerValue : styles84.triggerPlaceholder, children: selected ? selected.label : placeholder }),
8197
+ /* @__PURE__ */ jsx213(Icon, { name: "chevron-down", size: "sm", "aria-hidden": true })
8063
8198
  ]
8064
8199
  }
8065
8200
  );
8066
- const body = /* @__PURE__ */ jsxs162("div", { className: styles82.body, children: [
8067
- /* @__PURE__ */ jsx211(
8201
+ const body = /* @__PURE__ */ jsxs164("div", { className: styles84.body, children: [
8202
+ /* @__PURE__ */ jsx213(
8068
8203
  "input",
8069
8204
  {
8070
8205
  ref: inputRef,
@@ -8074,30 +8209,30 @@ function Combobox({
8074
8209
  "aria-controls": listId,
8075
8210
  "aria-activedescendant": highlightedId,
8076
8211
  "aria-autocomplete": "list",
8077
- className: styles82.search,
8212
+ className: styles84.search,
8078
8213
  placeholder: searchPlaceholder,
8079
8214
  value: query,
8080
8215
  onChange: (e) => setQuery(e.target.value),
8081
8216
  onKeyDown: handleKeyDown
8082
8217
  }
8083
8218
  ),
8084
- /* @__PURE__ */ jsxs162("ul", { id: listId, role: "listbox", className: styles82.list, children: [
8085
- filtered.length === 0 && /* @__PURE__ */ jsx211("li", { className: styles82.empty, children: emptyMessage }),
8219
+ /* @__PURE__ */ jsxs164("ul", { id: listId, role: "listbox", className: styles84.list, children: [
8220
+ filtered.length === 0 && /* @__PURE__ */ jsx213("li", { className: styles84.empty, children: emptyMessage }),
8086
8221
  filtered.map((option, index) => {
8087
8222
  const isHighlighted = index === highlightedIndex;
8088
8223
  const isSelected = option.value === value;
8089
- return /* @__PURE__ */ jsx211("li", { children: /* @__PURE__ */ jsxs162(
8224
+ return /* @__PURE__ */ jsx213("li", { children: /* @__PURE__ */ jsxs164(
8090
8225
  "button",
8091
8226
  {
8092
8227
  id: `${listId}-${option.value}`,
8093
8228
  type: "button",
8094
8229
  role: "option",
8095
8230
  "aria-selected": isSelected,
8096
- className: [styles82.option, isHighlighted ? styles82.optionHighlighted : ""].filter(Boolean).join(" "),
8231
+ className: [styles84.option, isHighlighted ? styles84.optionHighlighted : ""].filter(Boolean).join(" "),
8097
8232
  onMouseEnter: () => setHighlightedIndex(index),
8098
8233
  onClick: () => commit(option),
8099
8234
  children: [
8100
- /* @__PURE__ */ jsx211("span", { className: styles82.check, children: isSelected && /* @__PURE__ */ jsx211(Icon, { name: "check", size: "sm", "aria-hidden": true }) }),
8235
+ /* @__PURE__ */ jsx213("span", { className: styles84.check, children: isSelected && /* @__PURE__ */ jsx213(Icon, { name: "check", size: "sm", "aria-hidden": true }) }),
8101
8236
  option.label
8102
8237
  ]
8103
8238
  }
@@ -8106,12 +8241,12 @@ function Combobox({
8106
8241
  ] })
8107
8242
  ] });
8108
8243
  if (isMobile) {
8109
- return /* @__PURE__ */ jsxs162(Fragment17, { children: [
8244
+ return /* @__PURE__ */ jsxs164(Fragment17, { children: [
8110
8245
  trigger,
8111
- /* @__PURE__ */ jsx211(Drawer, { open, onClose: () => setOpen(false), "aria-label": ariaLabel, children: body })
8246
+ /* @__PURE__ */ jsx213(Drawer, { open, onClose: () => setOpen(false), "aria-label": ariaLabel, children: body })
8112
8247
  ] });
8113
8248
  }
8114
- return /* @__PURE__ */ jsx211(
8249
+ return /* @__PURE__ */ jsx213(
8115
8250
  Popover,
8116
8251
  {
8117
8252
  trigger,
@@ -8125,9 +8260,9 @@ function Combobox({
8125
8260
  }
8126
8261
 
8127
8262
  // src/components/GripIcon/GripIcon.tsx
8128
- import { jsx as jsx212 } from "react/jsx-runtime";
8263
+ import { jsx as jsx214 } from "react/jsx-runtime";
8129
8264
  function GripIcon({ size = 14, className }) {
8130
- return /* @__PURE__ */ jsx212(
8265
+ return /* @__PURE__ */ jsx214(
8131
8266
  "svg",
8132
8267
  {
8133
8268
  width: size,
@@ -8137,15 +8272,15 @@ function GripIcon({ size = 14, className }) {
8137
8272
  "aria-hidden": "true",
8138
8273
  className,
8139
8274
  children: [3, 7, 11].map(
8140
- (cy) => [4, 10].map((cx) => /* @__PURE__ */ jsx212("circle", { cx, cy, r: 1.2, fill: "currentColor" }, `${cx}-${cy}`))
8275
+ (cy) => [4, 10].map((cx) => /* @__PURE__ */ jsx214("circle", { cx, cy, r: 1.2, fill: "currentColor" }, `${cx}-${cy}`))
8141
8276
  )
8142
8277
  }
8143
8278
  );
8144
8279
  }
8145
8280
 
8146
8281
  // src/components/DragHandleRow/DragHandleRow.tsx
8147
- import styles83 from "./DragHandleRow.module.css";
8148
- import { jsx as jsx213, jsxs as jsxs163 } from "react/jsx-runtime";
8282
+ import styles85 from "./DragHandleRow.module.css";
8283
+ import { jsx as jsx215, jsxs as jsxs165 } from "react/jsx-runtime";
8149
8284
  function DragHandleRow({
8150
8285
  children,
8151
8286
  handleProps,
@@ -8153,32 +8288,32 @@ function DragHandleRow({
8153
8288
  className,
8154
8289
  ...rest
8155
8290
  }) {
8156
- return /* @__PURE__ */ jsxs163(
8291
+ return /* @__PURE__ */ jsxs165(
8157
8292
  "div",
8158
8293
  {
8159
8294
  ...rest,
8160
- className: [styles83.row, isDragging ? styles83.dragging : "", className].filter(Boolean).join(" "),
8295
+ className: [styles85.row, isDragging ? styles85.dragging : "", className].filter(Boolean).join(" "),
8161
8296
  children: [
8162
- /* @__PURE__ */ jsx213(
8297
+ /* @__PURE__ */ jsx215(
8163
8298
  "button",
8164
8299
  {
8165
8300
  type: "button",
8166
8301
  "aria-label": "Drag to reorder",
8167
- className: styles83.handle,
8302
+ className: styles85.handle,
8168
8303
  tabIndex: -1,
8169
8304
  ...handleProps,
8170
- children: /* @__PURE__ */ jsx213(GripIcon, { className: styles83.icon })
8305
+ children: /* @__PURE__ */ jsx215(GripIcon, { className: styles85.icon })
8171
8306
  }
8172
8307
  ),
8173
- /* @__PURE__ */ jsx213("div", { className: styles83.content, children })
8308
+ /* @__PURE__ */ jsx215("div", { className: styles85.content, children })
8174
8309
  ]
8175
8310
  }
8176
8311
  );
8177
8312
  }
8178
8313
 
8179
8314
  // src/components/StepStrip/StepStrip.tsx
8180
- import styles84 from "./StepStrip.module.css";
8181
- import { jsx as jsx214, jsxs as jsxs164 } from "react/jsx-runtime";
8315
+ import styles86 from "./StepStrip.module.css";
8316
+ import { jsx as jsx216, jsxs as jsxs166 } from "react/jsx-runtime";
8182
8317
  function StepStrip({
8183
8318
  items,
8184
8319
  activeId,
@@ -8188,28 +8323,28 @@ function StepStrip({
8188
8323
  className,
8189
8324
  "aria-label": ariaLabel
8190
8325
  }) {
8191
- return /* @__PURE__ */ jsxs164(
8326
+ return /* @__PURE__ */ jsxs166(
8192
8327
  "div",
8193
8328
  {
8194
- className: [styles84.strip, className].filter(Boolean).join(" "),
8329
+ className: [styles86.strip, className].filter(Boolean).join(" "),
8195
8330
  role: "list",
8196
8331
  "aria-label": ariaLabel,
8197
8332
  children: [
8198
- items.map((item, index) => /* @__PURE__ */ jsxs164("div", { className: styles84.step, role: "listitem", children: [
8333
+ items.map((item, index) => /* @__PURE__ */ jsxs166("div", { className: styles86.step, role: "listitem", children: [
8199
8334
  renderItem(item, { isActive: item.id === activeId, index }),
8200
- (index < items.length - 1 || onAdd) && /* @__PURE__ */ jsx214(
8335
+ (index < items.length - 1 || onAdd) && /* @__PURE__ */ jsx216(
8201
8336
  "div",
8202
8337
  {
8203
8338
  className: [
8204
- styles84.connector,
8205
- index === items.length - 1 ? styles84.connectorDashed : ""
8339
+ styles86.connector,
8340
+ index === items.length - 1 ? styles86.connectorDashed : ""
8206
8341
  ].filter(Boolean).join(" "),
8207
8342
  "aria-hidden": "true"
8208
8343
  }
8209
8344
  )
8210
8345
  ] }, item.id)),
8211
- onAdd && /* @__PURE__ */ jsxs164("button", { type: "button", className: styles84.addChip, onClick: onAdd, children: [
8212
- /* @__PURE__ */ jsx214(Icon, { name: "plus", size: "sm", "aria-hidden": true }),
8346
+ onAdd && /* @__PURE__ */ jsxs166("button", { type: "button", className: styles86.addChip, onClick: onAdd, children: [
8347
+ /* @__PURE__ */ jsx216(Icon, { name: "plus", size: "sm", "aria-hidden": true }),
8213
8348
  addLabel
8214
8349
  ] })
8215
8350
  ]
@@ -8218,9 +8353,9 @@ function StepStrip({
8218
8353
  }
8219
8354
 
8220
8355
  // src/components/FileDropzone/FileDropzone.tsx
8221
- import { useRef as useRef26, useState as useState27 } from "react";
8222
- import styles85 from "./FileDropzone.module.css";
8223
- import { jsx as jsx215, jsxs as jsxs165 } from "react/jsx-runtime";
8356
+ import { useRef as useRef26, useState as useState28 } from "react";
8357
+ import styles87 from "./FileDropzone.module.css";
8358
+ import { jsx as jsx217, jsxs as jsxs167 } from "react/jsx-runtime";
8224
8359
  function FileDropzone({
8225
8360
  name,
8226
8361
  accept,
@@ -8232,15 +8367,15 @@ function FileDropzone({
8232
8367
  disabled,
8233
8368
  className
8234
8369
  }) {
8235
- const [dragging, setDragging] = useState27(false);
8370
+ const [dragging, setDragging] = useState28(false);
8236
8371
  const inputRef = useRef26(null);
8237
- return /* @__PURE__ */ jsxs165(
8372
+ return /* @__PURE__ */ jsxs167(
8238
8373
  "label",
8239
8374
  {
8240
8375
  className: [
8241
- styles85.dropzone,
8242
- dragging ? styles85.dropzoneActive : "",
8243
- disabled ? styles85.dropzoneDisabled : "",
8376
+ styles87.dropzone,
8377
+ dragging ? styles87.dropzoneActive : "",
8378
+ disabled ? styles87.dropzoneDisabled : "",
8244
8379
  className
8245
8380
  ].filter(Boolean).join(" "),
8246
8381
  onDragOver: (event) => {
@@ -8263,12 +8398,12 @@ function FileDropzone({
8263
8398
  onFileSelect(dropped);
8264
8399
  },
8265
8400
  children: [
8266
- /* @__PURE__ */ jsx215("span", { className: styles85.icon, "aria-hidden": "true", children: icon ?? /* @__PURE__ */ jsx215(Icon, { name: "file", size: "lg", "aria-hidden": true }) }),
8267
- /* @__PURE__ */ jsxs165("span", { className: styles85.text, children: [
8268
- /* @__PURE__ */ jsx215("span", { className: styles85.title, children: label }),
8269
- hint && /* @__PURE__ */ jsx215("span", { className: styles85.hint, children: hint })
8401
+ /* @__PURE__ */ jsx217("span", { className: styles87.icon, "aria-hidden": "true", children: icon ?? /* @__PURE__ */ jsx217(Icon, { name: "file", size: "lg", "aria-hidden": true }) }),
8402
+ /* @__PURE__ */ jsxs167("span", { className: styles87.text, children: [
8403
+ /* @__PURE__ */ jsx217("span", { className: styles87.title, children: label }),
8404
+ hint && /* @__PURE__ */ jsx217("span", { className: styles87.hint, children: hint })
8270
8405
  ] }),
8271
- /* @__PURE__ */ jsx215(
8406
+ /* @__PURE__ */ jsx217(
8272
8407
  "input",
8273
8408
  {
8274
8409
  ref: inputRef,
@@ -8278,7 +8413,7 @@ function FileDropzone({
8278
8413
  accept,
8279
8414
  disabled,
8280
8415
  onChange: (event) => onFileSelect(event.target.files?.[0] ?? null),
8281
- className: styles85.hiddenInput
8416
+ className: styles87.hiddenInput
8282
8417
  }
8283
8418
  )
8284
8419
  ]
@@ -8287,7 +8422,7 @@ function FileDropzone({
8287
8422
  }
8288
8423
 
8289
8424
  // src/components/Calendar/Calendar.tsx
8290
- import { useRef as useRef27, useState as useState28 } from "react";
8425
+ import { useRef as useRef27, useState as useState29 } from "react";
8291
8426
 
8292
8427
  // src/components/Calendar/dateUtils.ts
8293
8428
  function startOfMonth(date) {
@@ -8353,8 +8488,8 @@ function formatDateLabel(date) {
8353
8488
  }
8354
8489
 
8355
8490
  // src/components/Calendar/Calendar.tsx
8356
- import styles86 from "./Calendar.module.css";
8357
- import { jsx as jsx216, jsxs as jsxs166 } from "react/jsx-runtime";
8491
+ import styles88 from "./Calendar.module.css";
8492
+ import { jsx as jsx218, jsxs as jsxs168 } from "react/jsx-runtime";
8358
8493
  var WEEKDAY_LABEL_WEEK = getMonthGrid(new Date(2026, 0, 1))[0] ?? [];
8359
8494
  function Calendar({
8360
8495
  value,
@@ -8363,8 +8498,8 @@ function Calendar({
8363
8498
  maxDate,
8364
8499
  "aria-label": ariaLabel
8365
8500
  }) {
8366
- const [displayedMonth, setDisplayedMonth] = useState28(() => startOfMonth(value ?? /* @__PURE__ */ new Date()));
8367
- const [focusedDate, setFocusedDate] = useState28(() => value ?? /* @__PURE__ */ new Date());
8501
+ const [displayedMonth, setDisplayedMonth] = useState29(() => startOfMonth(value ?? /* @__PURE__ */ new Date()));
8502
+ const [focusedDate, setFocusedDate] = useState29(() => value ?? /* @__PURE__ */ new Date());
8368
8503
  const gridRef = useRef27(null);
8369
8504
  const weeks = getMonthGrid(displayedMonth);
8370
8505
  function goToMonth(next) {
@@ -8424,51 +8559,51 @@ function Calendar({
8424
8559
  default:
8425
8560
  }
8426
8561
  }
8427
- return /* @__PURE__ */ jsxs166("div", { className: styles86.calendar, "aria-label": ariaLabel, children: [
8428
- /* @__PURE__ */ jsxs166("div", { className: styles86.header, children: [
8429
- /* @__PURE__ */ jsx216(
8562
+ return /* @__PURE__ */ jsxs168("div", { className: styles88.calendar, "aria-label": ariaLabel, children: [
8563
+ /* @__PURE__ */ jsxs168("div", { className: styles88.header, children: [
8564
+ /* @__PURE__ */ jsx218(
8430
8565
  "button",
8431
8566
  {
8432
8567
  type: "button",
8433
- className: styles86.navButton,
8568
+ className: styles88.navButton,
8434
8569
  "aria-label": "Previous month",
8435
8570
  onClick: () => goToMonth(addMonths(displayedMonth, -1)),
8436
- children: /* @__PURE__ */ jsx216(Icon, { name: "chevron-left", size: "sm", "aria-hidden": true })
8571
+ children: /* @__PURE__ */ jsx218(Icon, { name: "chevron-left", size: "sm", "aria-hidden": true })
8437
8572
  }
8438
8573
  ),
8439
- /* @__PURE__ */ jsx216("span", { className: styles86.monthLabel, children: formatMonthYear(displayedMonth) }),
8440
- /* @__PURE__ */ jsx216(
8574
+ /* @__PURE__ */ jsx218("span", { className: styles88.monthLabel, children: formatMonthYear(displayedMonth) }),
8575
+ /* @__PURE__ */ jsx218(
8441
8576
  "button",
8442
8577
  {
8443
8578
  type: "button",
8444
- className: styles86.navButton,
8579
+ className: styles88.navButton,
8445
8580
  "aria-label": "Next month",
8446
8581
  onClick: () => goToMonth(addMonths(displayedMonth, 1)),
8447
- children: /* @__PURE__ */ jsx216(Icon, { name: "chevron-right", size: "sm", "aria-hidden": true })
8582
+ children: /* @__PURE__ */ jsx218(Icon, { name: "chevron-right", size: "sm", "aria-hidden": true })
8448
8583
  }
8449
8584
  )
8450
8585
  ] }),
8451
- /* @__PURE__ */ jsxs166(
8586
+ /* @__PURE__ */ jsxs168(
8452
8587
  "div",
8453
8588
  {
8454
8589
  ref: gridRef,
8455
8590
  role: "grid",
8456
8591
  "aria-label": formatMonthYear(displayedMonth),
8457
- className: styles86.grid,
8592
+ className: styles88.grid,
8458
8593
  onKeyDown: handleKeyDown,
8459
8594
  tabIndex: -1,
8460
8595
  children: [
8461
- /* @__PURE__ */ jsx216("div", { role: "row", className: styles86.weekdayRow, children: WEEKDAY_LABEL_WEEK.map((d) => /* @__PURE__ */ jsx216("span", { role: "columnheader", className: styles86.weekday, "aria-hidden": true, children: formatWeekdayShort(d) }, d.getDay())) }),
8596
+ /* @__PURE__ */ jsx218("div", { role: "row", className: styles88.weekdayRow, children: WEEKDAY_LABEL_WEEK.map((d) => /* @__PURE__ */ jsx218("span", { role: "columnheader", className: styles88.weekday, "aria-hidden": true, children: formatWeekdayShort(d) }, d.getDay())) }),
8462
8597
  weeks.map((week) => {
8463
8598
  const firstDayOfWeek = week[0];
8464
8599
  if (!firstDayOfWeek) return null;
8465
- return /* @__PURE__ */ jsx216("div", { role: "row", className: styles86.week, children: week.map((date) => {
8600
+ return /* @__PURE__ */ jsx218("div", { role: "row", className: styles88.week, children: week.map((date) => {
8466
8601
  const isCurrentMonth = isSameMonth(date, displayedMonth);
8467
8602
  const isSelected = value !== null && isSameDay(date, value);
8468
8603
  const isToday = isSameDay(date, /* @__PURE__ */ new Date());
8469
8604
  const isFocusTarget = isSameDay(date, focusedDate);
8470
8605
  const disabled = !isWithinRange(date, minDate, maxDate);
8471
- return /* @__PURE__ */ jsx216("div", { role: "gridcell", "aria-selected": isSelected, children: /* @__PURE__ */ jsx216(
8606
+ return /* @__PURE__ */ jsx218("div", { role: "gridcell", "aria-selected": isSelected, children: /* @__PURE__ */ jsx218(
8472
8607
  "button",
8473
8608
  {
8474
8609
  type: "button",
@@ -8477,10 +8612,10 @@ function Calendar({
8477
8612
  "aria-current": isToday ? "date" : void 0,
8478
8613
  "aria-label": formatDateLabel(date),
8479
8614
  className: [
8480
- styles86.day,
8481
- !isCurrentMonth ? styles86.dayOutside : "",
8482
- isSelected ? styles86.daySelected : "",
8483
- isToday && !isSelected ? styles86.dayToday : ""
8615
+ styles88.day,
8616
+ !isCurrentMonth ? styles88.dayOutside : "",
8617
+ isSelected ? styles88.daySelected : "",
8618
+ isToday && !isSelected ? styles88.dayToday : ""
8484
8619
  ].filter(Boolean).join(" "),
8485
8620
  onClick: () => selectDate(date),
8486
8621
  onFocus: () => setFocusedDate(date),
@@ -8496,9 +8631,9 @@ function Calendar({
8496
8631
  }
8497
8632
 
8498
8633
  // src/components/DatePicker/DatePicker.tsx
8499
- import { useState as useState29 } from "react";
8500
- import styles87 from "./DatePicker.module.css";
8501
- import { Fragment as Fragment18, jsx as jsx217, jsxs as jsxs167 } from "react/jsx-runtime";
8634
+ import { useState as useState30 } from "react";
8635
+ import styles89 from "./DatePicker.module.css";
8636
+ import { Fragment as Fragment18, jsx as jsx219, jsxs as jsxs169 } from "react/jsx-runtime";
8502
8637
  var POPOVER_WIDTH = 320;
8503
8638
  function DatePicker({
8504
8639
  value,
@@ -8509,29 +8644,29 @@ function DatePicker({
8509
8644
  "aria-label": ariaLabel,
8510
8645
  disabled = false
8511
8646
  }) {
8512
- const [open, setOpen] = useState29(false);
8647
+ const [open, setOpen] = useState30(false);
8513
8648
  const isMobile = useIsMobile();
8514
8649
  function handleSelect(date) {
8515
8650
  onChange(date);
8516
8651
  setOpen(false);
8517
8652
  }
8518
- const trigger = /* @__PURE__ */ jsxs167(
8653
+ const trigger = /* @__PURE__ */ jsxs169(
8519
8654
  "button",
8520
8655
  {
8521
8656
  type: "button",
8522
- className: styles87.trigger,
8657
+ className: styles89.trigger,
8523
8658
  disabled,
8524
8659
  "aria-label": ariaLabel,
8525
8660
  "aria-haspopup": "dialog",
8526
8661
  "aria-expanded": open,
8527
8662
  onClick: () => setOpen((o) => !o),
8528
8663
  children: [
8529
- /* @__PURE__ */ jsx217("span", { className: value ? styles87.triggerValue : styles87.triggerPlaceholder, children: value ? formatDateShort(value) : placeholder }),
8530
- /* @__PURE__ */ jsx217(Icon, { name: "calendar", size: "sm", "aria-hidden": true })
8664
+ /* @__PURE__ */ jsx219("span", { className: value ? styles89.triggerValue : styles89.triggerPlaceholder, children: value ? formatDateShort(value) : placeholder }),
8665
+ /* @__PURE__ */ jsx219(Icon, { name: "calendar", size: "sm", "aria-hidden": true })
8531
8666
  ]
8532
8667
  }
8533
8668
  );
8534
- const calendar = /* @__PURE__ */ jsx217(
8669
+ const calendar = /* @__PURE__ */ jsx219(
8535
8670
  Calendar,
8536
8671
  {
8537
8672
  value,
@@ -8542,12 +8677,12 @@ function DatePicker({
8542
8677
  }
8543
8678
  );
8544
8679
  if (isMobile) {
8545
- return /* @__PURE__ */ jsxs167(Fragment18, { children: [
8680
+ return /* @__PURE__ */ jsxs169(Fragment18, { children: [
8546
8681
  trigger,
8547
- /* @__PURE__ */ jsx217(Drawer, { open, onClose: () => setOpen(false), "aria-label": ariaLabel, children: /* @__PURE__ */ jsx217("div", { className: styles87.drawerBody, children: calendar }) })
8682
+ /* @__PURE__ */ jsx219(Drawer, { open, onClose: () => setOpen(false), "aria-label": ariaLabel, children: /* @__PURE__ */ jsx219("div", { className: styles89.drawerBody, children: calendar }) })
8548
8683
  ] });
8549
8684
  }
8550
- return /* @__PURE__ */ jsx217(
8685
+ return /* @__PURE__ */ jsx219(
8551
8686
  Popover,
8552
8687
  {
8553
8688
  trigger,
@@ -8555,17 +8690,17 @@ function DatePicker({
8555
8690
  onClose: () => setOpen(false),
8556
8691
  "aria-label": ariaLabel,
8557
8692
  width: POPOVER_WIDTH,
8558
- children: /* @__PURE__ */ jsx217("div", { className: styles87.popoverBody, children: calendar })
8693
+ children: /* @__PURE__ */ jsx219("div", { className: styles89.popoverBody, children: calendar })
8559
8694
  }
8560
8695
  );
8561
8696
  }
8562
8697
 
8563
8698
  // src/components/DateRangePicker/DateRangePicker.tsx
8564
- import { useState as useState31 } from "react";
8699
+ import { useState as useState32 } from "react";
8565
8700
  import pickerStyles from "./DatePicker.module.css";
8566
8701
 
8567
8702
  // src/components/DateRangePicker/RangeCalendar.tsx
8568
- import { useRef as useRef28, useState as useState30 } from "react";
8703
+ import { useRef as useRef28, useState as useState31 } from "react";
8569
8704
  import calendarStyles from "./Calendar.module.css";
8570
8705
 
8571
8706
  // src/components/DateRangePicker/rangeUtils.ts
@@ -8594,8 +8729,8 @@ function rangeOf(first, second) {
8594
8729
  }
8595
8730
 
8596
8731
  // src/components/DateRangePicker/RangeCalendar.tsx
8597
- import styles88 from "./DateRangePicker.module.css";
8598
- import { jsx as jsx218, jsxs as jsxs168 } from "react/jsx-runtime";
8732
+ import styles90 from "./DateRangePicker.module.css";
8733
+ import { jsx as jsx220, jsxs as jsxs170 } from "react/jsx-runtime";
8599
8734
  var WEEKDAY_LABEL_WEEK2 = getMonthGrid(new Date(2026, 0, 1))[0] ?? [];
8600
8735
  function RangeCalendar({
8601
8736
  value,
@@ -8604,12 +8739,12 @@ function RangeCalendar({
8604
8739
  maxDate,
8605
8740
  "aria-label": ariaLabel
8606
8741
  }) {
8607
- const [displayedMonth, setDisplayedMonth] = useState30(
8742
+ const [displayedMonth, setDisplayedMonth] = useState31(
8608
8743
  () => startOfMonth(value?.start ?? /* @__PURE__ */ new Date())
8609
8744
  );
8610
- const [focusedDate, setFocusedDate] = useState30(() => value?.start ?? /* @__PURE__ */ new Date());
8611
- const [first, setFirst] = useState30(null);
8612
- const [hover, setHover] = useState30(null);
8745
+ const [focusedDate, setFocusedDate] = useState31(() => value?.start ?? /* @__PURE__ */ new Date());
8746
+ const [first, setFirst] = useState31(null);
8747
+ const [hover, setHover] = useState31(null);
8613
8748
  const gridRef = useRef28(null);
8614
8749
  const weeks = getMonthGrid(displayedMonth);
8615
8750
  const shown = first ? rangeOf(first, hover ?? first) : value;
@@ -8677,31 +8812,31 @@ function RangeCalendar({
8677
8812
  }
8678
8813
  }
8679
8814
  const nights = shown ? nightsBetween(shown.start, shown.end) : null;
8680
- return /* @__PURE__ */ jsxs168("div", { className: calendarStyles.calendar, "aria-label": ariaLabel, children: [
8681
- /* @__PURE__ */ jsxs168("div", { className: calendarStyles.header, children: [
8682
- /* @__PURE__ */ jsx218(
8815
+ return /* @__PURE__ */ jsxs170("div", { className: calendarStyles.calendar, "aria-label": ariaLabel, children: [
8816
+ /* @__PURE__ */ jsxs170("div", { className: calendarStyles.header, children: [
8817
+ /* @__PURE__ */ jsx220(
8683
8818
  "button",
8684
8819
  {
8685
8820
  type: "button",
8686
8821
  className: calendarStyles.navButton,
8687
8822
  "aria-label": "Previous month",
8688
8823
  onClick: () => goToMonth(addMonths(displayedMonth, -1)),
8689
- children: /* @__PURE__ */ jsx218(Icon, { name: "chevron-left", size: "sm", "aria-hidden": true })
8824
+ children: /* @__PURE__ */ jsx220(Icon, { name: "chevron-left", size: "sm", "aria-hidden": true })
8690
8825
  }
8691
8826
  ),
8692
- /* @__PURE__ */ jsx218("span", { className: calendarStyles.monthLabel, children: formatMonthYear(displayedMonth) }),
8693
- /* @__PURE__ */ jsx218(
8827
+ /* @__PURE__ */ jsx220("span", { className: calendarStyles.monthLabel, children: formatMonthYear(displayedMonth) }),
8828
+ /* @__PURE__ */ jsx220(
8694
8829
  "button",
8695
8830
  {
8696
8831
  type: "button",
8697
8832
  className: calendarStyles.navButton,
8698
8833
  "aria-label": "Next month",
8699
8834
  onClick: () => goToMonth(addMonths(displayedMonth, 1)),
8700
- children: /* @__PURE__ */ jsx218(Icon, { name: "chevron-right", size: "sm", "aria-hidden": true })
8835
+ children: /* @__PURE__ */ jsx220(Icon, { name: "chevron-right", size: "sm", "aria-hidden": true })
8701
8836
  }
8702
8837
  )
8703
8838
  ] }),
8704
- /* @__PURE__ */ jsxs168(
8839
+ /* @__PURE__ */ jsxs170(
8705
8840
  "div",
8706
8841
  {
8707
8842
  ref: gridRef,
@@ -8711,7 +8846,7 @@ function RangeCalendar({
8711
8846
  onKeyDown: handleKeyDown,
8712
8847
  tabIndex: -1,
8713
8848
  children: [
8714
- /* @__PURE__ */ jsx218("div", { role: "row", className: calendarStyles.weekdayRow, children: WEEKDAY_LABEL_WEEK2.map((d) => /* @__PURE__ */ jsx218(
8849
+ /* @__PURE__ */ jsx220("div", { role: "row", className: calendarStyles.weekdayRow, children: WEEKDAY_LABEL_WEEK2.map((d) => /* @__PURE__ */ jsx220(
8715
8850
  "span",
8716
8851
  {
8717
8852
  role: "columnheader",
@@ -8724,25 +8859,25 @@ function RangeCalendar({
8724
8859
  weeks.map((week) => {
8725
8860
  const firstDayOfWeek = week[0];
8726
8861
  if (!firstDayOfWeek) return null;
8727
- return /* @__PURE__ */ jsx218("div", { role: "row", className: calendarStyles.week, children: week.map((date) => {
8862
+ return /* @__PURE__ */ jsx220("div", { role: "row", className: calendarStyles.week, children: week.map((date) => {
8728
8863
  const isCurrentMonth = isSameMonth(date, displayedMonth);
8729
8864
  const isStart = shown !== null && isSameDay(date, shown.start);
8730
8865
  const isEnd = shown !== null && isSameDay(date, shown.end);
8731
8866
  const inside = shown !== null && nightsBetween(shown.start, date) > 0 && nightsBetween(date, shown.end) > 0;
8732
8867
  const isToday = isSameDay(date, /* @__PURE__ */ new Date());
8733
8868
  const disabled = !isWithinRange(date, minDate, maxDate);
8734
- return /* @__PURE__ */ jsx218(
8869
+ return /* @__PURE__ */ jsx220(
8735
8870
  "div",
8736
8871
  {
8737
8872
  role: "gridcell",
8738
8873
  "aria-selected": isStart || isEnd || inside,
8739
8874
  className: [
8740
- styles88.cell,
8741
- inside ? styles88.cellInside : "",
8742
- isStart && !isEnd ? styles88.cellStart : "",
8743
- isEnd && !isStart ? styles88.cellEnd : ""
8875
+ styles90.cell,
8876
+ inside ? styles90.cellInside : "",
8877
+ isStart && !isEnd ? styles90.cellStart : "",
8878
+ isEnd && !isStart ? styles90.cellEnd : ""
8744
8879
  ].filter(Boolean).join(" "),
8745
- children: /* @__PURE__ */ jsx218(
8880
+ children: /* @__PURE__ */ jsx220(
8746
8881
  "button",
8747
8882
  {
8748
8883
  type: "button",
@@ -8774,12 +8909,12 @@ function RangeCalendar({
8774
8909
  ]
8775
8910
  }
8776
8911
  ),
8777
- /* @__PURE__ */ jsx218("p", { className: styles88.summary, role: "status", children: first ? "Now choose the last day." : nights === null ? "Choose the first day." : nightsLabel(nights) })
8912
+ /* @__PURE__ */ jsx220("p", { className: styles90.summary, role: "status", children: first ? "Now choose the last day." : nights === null ? "Choose the first day." : nightsLabel(nights) })
8778
8913
  ] });
8779
8914
  }
8780
8915
 
8781
8916
  // src/components/DateRangePicker/DateRangePicker.tsx
8782
- import { Fragment as Fragment19, jsx as jsx219, jsxs as jsxs169 } from "react/jsx-runtime";
8917
+ import { Fragment as Fragment19, jsx as jsx221, jsxs as jsxs171 } from "react/jsx-runtime";
8783
8918
  var POPOVER_WIDTH2 = 320;
8784
8919
  function DateRangePicker({
8785
8920
  value,
@@ -8790,7 +8925,7 @@ function DateRangePicker({
8790
8925
  "aria-label": ariaLabel,
8791
8926
  disabled = false
8792
8927
  }) {
8793
- const [open, setOpen] = useState31(false);
8928
+ const [open, setOpen] = useState32(false);
8794
8929
  const isMobile = useIsMobile();
8795
8930
  const start = parseIso(value.start);
8796
8931
  const end = parseIso(value.end);
@@ -8799,7 +8934,7 @@ function DateRangePicker({
8799
8934
  onChange({ start: toIso(next.start), end: toIso(next.end) });
8800
8935
  setOpen(false);
8801
8936
  }
8802
- const trigger = /* @__PURE__ */ jsxs169(
8937
+ const trigger = /* @__PURE__ */ jsxs171(
8803
8938
  "button",
8804
8939
  {
8805
8940
  type: "button",
@@ -8810,12 +8945,12 @@ function DateRangePicker({
8810
8945
  "aria-expanded": open,
8811
8946
  onClick: () => setOpen((o) => !o),
8812
8947
  children: [
8813
- /* @__PURE__ */ jsx219("span", { className: range ? pickerStyles.triggerValue : pickerStyles.triggerPlaceholder, children: range ? `${formatDateShort(range.start)} \u2013 ${formatDateShort(range.end)} \xB7 ${nightsLabel(nightsBetween(range.start, range.end))}` : placeholder }),
8814
- /* @__PURE__ */ jsx219(Icon, { name: "calendar", size: "sm", "aria-hidden": true })
8948
+ /* @__PURE__ */ jsx221("span", { className: range ? pickerStyles.triggerValue : pickerStyles.triggerPlaceholder, children: range ? `${formatDateShort(range.start)} \u2013 ${formatDateShort(range.end)} \xB7 ${nightsLabel(nightsBetween(range.start, range.end))}` : placeholder }),
8949
+ /* @__PURE__ */ jsx221(Icon, { name: "calendar", size: "sm", "aria-hidden": true })
8815
8950
  ]
8816
8951
  }
8817
8952
  );
8818
- const calendar = /* @__PURE__ */ jsx219(
8953
+ const calendar = /* @__PURE__ */ jsx221(
8819
8954
  RangeCalendar,
8820
8955
  {
8821
8956
  value: range,
@@ -8826,12 +8961,12 @@ function DateRangePicker({
8826
8961
  }
8827
8962
  );
8828
8963
  if (isMobile) {
8829
- return /* @__PURE__ */ jsxs169(Fragment19, { children: [
8964
+ return /* @__PURE__ */ jsxs171(Fragment19, { children: [
8830
8965
  trigger,
8831
- /* @__PURE__ */ jsx219(Drawer, { open, onClose: () => setOpen(false), "aria-label": ariaLabel, children: /* @__PURE__ */ jsx219("div", { className: pickerStyles.drawerBody, children: calendar }) })
8966
+ /* @__PURE__ */ jsx221(Drawer, { open, onClose: () => setOpen(false), "aria-label": ariaLabel, children: /* @__PURE__ */ jsx221("div", { className: pickerStyles.drawerBody, children: calendar }) })
8832
8967
  ] });
8833
8968
  }
8834
- return /* @__PURE__ */ jsx219(
8969
+ return /* @__PURE__ */ jsx221(
8835
8970
  Popover,
8836
8971
  {
8837
8972
  trigger,
@@ -8839,15 +8974,15 @@ function DateRangePicker({
8839
8974
  onClose: () => setOpen(false),
8840
8975
  "aria-label": ariaLabel,
8841
8976
  width: POPOVER_WIDTH2,
8842
- children: /* @__PURE__ */ jsx219("div", { className: pickerStyles.popoverBody, children: calendar })
8977
+ children: /* @__PURE__ */ jsx221("div", { className: pickerStyles.popoverBody, children: calendar })
8843
8978
  }
8844
8979
  );
8845
8980
  }
8846
8981
 
8847
8982
  // src/components/SuggestionInput/SuggestionInput.tsx
8848
- import { useId as useId11, useRef as useRef29, useState as useState32 } from "react";
8849
- import styles89 from "./SuggestionInput.module.css";
8850
- import { Fragment as Fragment20, jsx as jsx220, jsxs as jsxs170 } from "react/jsx-runtime";
8983
+ import { useId as useId11, useRef as useRef29, useState as useState33 } from "react";
8984
+ import styles91 from "./SuggestionInput.module.css";
8985
+ import { Fragment as Fragment20, jsx as jsx222, jsxs as jsxs172 } from "react/jsx-runtime";
8851
8986
  function SuggestionInput({
8852
8987
  value,
8853
8988
  onChange,
@@ -8866,8 +9001,8 @@ function SuggestionInput({
8866
9001
  const inputId = id ?? generatedId;
8867
9002
  const listId = `${inputId}-suggestions`;
8868
9003
  const inputRef = useRef29(null);
8869
- const [focused, setFocused] = useState32(false);
8870
- const [activeIndex, setActiveIndex] = useState32(-1);
9004
+ const [focused, setFocused] = useState33(false);
9005
+ const [activeIndex, setActiveIndex] = useState33(-1);
8871
9006
  const showCreateRow = Boolean(onCreate && createLabel && value.trim());
8872
9007
  const rowCount = options.length + (showCreateRow ? 1 : 0);
8873
9008
  const open = focused && (rowCount > 0 || loading);
@@ -8904,7 +9039,7 @@ function SuggestionInput({
8904
9039
  close();
8905
9040
  }
8906
9041
  }
8907
- const trigger = /* @__PURE__ */ jsx220(
9042
+ const trigger = /* @__PURE__ */ jsx222(
8908
9043
  "input",
8909
9044
  {
8910
9045
  ref: inputRef,
@@ -8916,7 +9051,7 @@ function SuggestionInput({
8916
9051
  "aria-autocomplete": "list",
8917
9052
  "aria-activedescendant": activeIndex >= 0 ? `${listId}-option-${activeIndex}` : void 0,
8918
9053
  "aria-label": ariaLabel,
8919
- className: [styles89.input, className].filter(Boolean).join(" "),
9054
+ className: [styles91.input, className].filter(Boolean).join(" "),
8920
9055
  value,
8921
9056
  placeholder,
8922
9057
  disabled,
@@ -8929,7 +9064,7 @@ function SuggestionInput({
8929
9064
  onKeyDown: handleKeyDown
8930
9065
  }
8931
9066
  );
8932
- return /* @__PURE__ */ jsx220(
9067
+ return /* @__PURE__ */ jsx222(
8933
9068
  Popover,
8934
9069
  {
8935
9070
  trigger,
@@ -8937,29 +9072,29 @@ function SuggestionInput({
8937
9072
  onClose: close,
8938
9073
  width: "trigger",
8939
9074
  "aria-label": `${ariaLabel} suggestions`,
8940
- children: /* @__PURE__ */ jsx220("ul", { id: listId, role: "listbox", className: styles89.list, children: loading ? /* @__PURE__ */ jsx220("li", { className: styles89.status, children: "Loading\u2026" }) : /* @__PURE__ */ jsxs170(Fragment20, { children: [
8941
- options.map((option, index) => /* @__PURE__ */ jsx220("li", { role: "none", children: /* @__PURE__ */ jsxs170(
9075
+ children: /* @__PURE__ */ jsx222("ul", { id: listId, role: "listbox", className: styles91.list, children: loading ? /* @__PURE__ */ jsx222("li", { className: styles91.status, children: "Loading\u2026" }) : /* @__PURE__ */ jsxs172(Fragment20, { children: [
9076
+ options.map((option, index) => /* @__PURE__ */ jsx222("li", { role: "none", children: /* @__PURE__ */ jsxs172(
8942
9077
  "button",
8943
9078
  {
8944
9079
  id: `${listId}-option-${index}`,
8945
9080
  role: "option",
8946
9081
  "aria-selected": index === activeIndex,
8947
9082
  type: "button",
8948
- className: [styles89.option, index === activeIndex ? styles89.optionActive : ""].filter(Boolean).join(" "),
9083
+ className: [styles91.option, index === activeIndex ? styles91.optionActive : ""].filter(Boolean).join(" "),
8949
9084
  onMouseDown: (e) => {
8950
9085
  e.preventDefault();
8951
9086
  commitIndex(index);
8952
9087
  },
8953
9088
  children: [
8954
- option.icon && /* @__PURE__ */ jsx220("span", { className: styles89.optionIcon, children: option.icon }),
8955
- /* @__PURE__ */ jsx220("span", { className: styles89.optionLabel, children: option.label }),
8956
- option.meta && /* @__PURE__ */ jsx220("span", { className: styles89.optionMeta, children: option.meta })
9089
+ option.icon && /* @__PURE__ */ jsx222("span", { className: styles91.optionIcon, children: option.icon }),
9090
+ /* @__PURE__ */ jsx222("span", { className: styles91.optionLabel, children: option.label }),
9091
+ option.meta && /* @__PURE__ */ jsx222("span", { className: styles91.optionMeta, children: option.meta })
8957
9092
  ]
8958
9093
  }
8959
9094
  ) }, option.id)),
8960
- showCreateRow && createLabel && /* @__PURE__ */ jsxs170("li", { role: "none", children: [
8961
- options.length > 0 && /* @__PURE__ */ jsx220("div", { className: styles89.divider }),
8962
- /* @__PURE__ */ jsx220(
9095
+ showCreateRow && createLabel && /* @__PURE__ */ jsxs172("li", { role: "none", children: [
9096
+ options.length > 0 && /* @__PURE__ */ jsx222("div", { className: styles91.divider }),
9097
+ /* @__PURE__ */ jsx222(
8963
9098
  "button",
8964
9099
  {
8965
9100
  id: `${listId}-option-${options.length}`,
@@ -8967,9 +9102,9 @@ function SuggestionInput({
8967
9102
  "aria-selected": options.length === activeIndex,
8968
9103
  type: "button",
8969
9104
  className: [
8970
- styles89.option,
8971
- styles89.optionCreate,
8972
- options.length === activeIndex ? styles89.optionActive : ""
9105
+ styles91.option,
9106
+ styles91.optionCreate,
9107
+ options.length === activeIndex ? styles91.optionActive : ""
8973
9108
  ].filter(Boolean).join(" "),
8974
9109
  onMouseDown: (e) => {
8975
9110
  e.preventDefault();
@@ -8985,9 +9120,9 @@ function SuggestionInput({
8985
9120
  }
8986
9121
 
8987
9122
  // src/components/IconPicker/IconPicker.tsx
8988
- import { useState as useState33 } from "react";
8989
- import styles90 from "./IconPicker.module.css";
8990
- import { jsx as jsx221, jsxs as jsxs171 } from "react/jsx-runtime";
9123
+ import { useState as useState34 } from "react";
9124
+ import styles92 from "./IconPicker.module.css";
9125
+ import { jsx as jsx223, jsxs as jsxs173 } from "react/jsx-runtime";
8991
9126
  function IconPicker({
8992
9127
  value,
8993
9128
  onChange,
@@ -8997,24 +9132,24 @@ function IconPicker({
8997
9132
  disabled = false,
8998
9133
  className
8999
9134
  }) {
9000
- const [open, setOpen] = useState33(false);
9001
- const trigger = /* @__PURE__ */ jsxs171(
9135
+ const [open, setOpen] = useState34(false);
9136
+ const trigger = /* @__PURE__ */ jsxs173(
9002
9137
  "button",
9003
9138
  {
9004
9139
  type: "button",
9005
- className: [styles90.trigger, className].filter(Boolean).join(" "),
9140
+ className: [styles92.trigger, className].filter(Boolean).join(" "),
9006
9141
  onClick: () => setOpen((o) => !o),
9007
9142
  disabled,
9008
9143
  "aria-label": ariaLabel,
9009
9144
  "aria-haspopup": "true",
9010
9145
  "aria-expanded": open,
9011
9146
  children: [
9012
- value ? /* @__PURE__ */ jsx221(Icon, { name: value, size: "md", "aria-hidden": true }) : /* @__PURE__ */ jsx221("span", { className: styles90.placeholder, "aria-hidden": true, children: "?" }),
9013
- triggerLabel && /* @__PURE__ */ jsx221("span", { className: styles90.triggerLabel, children: triggerLabel })
9147
+ value ? /* @__PURE__ */ jsx223(Icon, { name: value, size: "md", "aria-hidden": true }) : /* @__PURE__ */ jsx223("span", { className: styles92.placeholder, "aria-hidden": true, children: "?" }),
9148
+ triggerLabel && /* @__PURE__ */ jsx223("span", { className: styles92.triggerLabel, children: triggerLabel })
9014
9149
  ]
9015
9150
  }
9016
9151
  );
9017
- return /* @__PURE__ */ jsx221(
9152
+ return /* @__PURE__ */ jsx223(
9018
9153
  Popover,
9019
9154
  {
9020
9155
  trigger,
@@ -9022,18 +9157,18 @@ function IconPicker({
9022
9157
  onClose: () => setOpen(false),
9023
9158
  width: 240,
9024
9159
  "aria-label": `${ariaLabel} options`,
9025
- children: /* @__PURE__ */ jsx221("div", { className: styles90.grid, role: "listbox", "aria-label": ariaLabel, children: options.map((name) => /* @__PURE__ */ jsx221(
9160
+ children: /* @__PURE__ */ jsx223("div", { className: styles92.grid, role: "listbox", "aria-label": ariaLabel, children: options.map((name) => /* @__PURE__ */ jsx223(
9026
9161
  "button",
9027
9162
  {
9028
9163
  type: "button",
9029
9164
  role: "option",
9030
9165
  "aria-selected": name === value,
9031
- className: [styles90.option, name === value ? styles90.optionSelected : ""].filter(Boolean).join(" "),
9166
+ className: [styles92.option, name === value ? styles92.optionSelected : ""].filter(Boolean).join(" "),
9032
9167
  onClick: () => {
9033
9168
  onChange(name);
9034
9169
  setOpen(false);
9035
9170
  },
9036
- children: /* @__PURE__ */ jsx221(Icon, { name, size: "md", "aria-hidden": true })
9171
+ children: /* @__PURE__ */ jsx223(Icon, { name, size: "md", "aria-hidden": true })
9037
9172
  },
9038
9173
  name
9039
9174
  )) })
@@ -9042,8 +9177,8 @@ function IconPicker({
9042
9177
  }
9043
9178
 
9044
9179
  // src/components/ColorPicker/ColorPicker.tsx
9045
- import styles91 from "./ColorPicker.module.css";
9046
- import { jsx as jsx222, jsxs as jsxs172 } from "react/jsx-runtime";
9180
+ import styles93 from "./ColorPicker.module.css";
9181
+ import { jsx as jsx224, jsxs as jsxs174 } from "react/jsx-runtime";
9047
9182
  function normalize(hex) {
9048
9183
  return hex.toLowerCase();
9049
9184
  }
@@ -9063,14 +9198,14 @@ function ColorPicker({
9063
9198
  const matchedSwatch = swatches.find((s) => normalize(s.value) === normalizedValue);
9064
9199
  const isCustomActive = normalizedValue !== null && !matchedSwatch;
9065
9200
  const customDialValue = isCustomActive && value ? value : swatches[0]?.value ?? "#000000";
9066
- return /* @__PURE__ */ jsxs172(
9201
+ return /* @__PURE__ */ jsxs174(
9067
9202
  "div",
9068
9203
  {
9069
- className: [styles91.row, className].filter(Boolean).join(" "),
9204
+ className: [styles93.row, className].filter(Boolean).join(" "),
9070
9205
  role: "group",
9071
9206
  "aria-label": ariaLabel,
9072
9207
  children: [
9073
- allowNone && /* @__PURE__ */ jsx222(
9208
+ allowNone && /* @__PURE__ */ jsx224(
9074
9209
  "button",
9075
9210
  {
9076
9211
  type: "button",
@@ -9079,15 +9214,15 @@ function ColorPicker({
9079
9214
  "aria-label": noneLabel,
9080
9215
  title: noneLabel,
9081
9216
  disabled,
9082
- className: [styles91.swatch, styles91.swatchNone, value === null ? styles91.swatchSelected : ""].filter(Boolean).join(" "),
9217
+ className: [styles93.swatch, styles93.swatchNone, value === null ? styles93.swatchSelected : ""].filter(Boolean).join(" "),
9083
9218
  onClick: () => {
9084
9219
  onChange(null);
9085
9220
  onSelectionComplete?.();
9086
9221
  },
9087
- children: /* @__PURE__ */ jsx222(Icon, { name: "x", size: "sm", "aria-hidden": true })
9222
+ children: /* @__PURE__ */ jsx224(Icon, { name: "x", size: "sm", "aria-hidden": true })
9088
9223
  }
9089
9224
  ),
9090
- swatches.map((s) => /* @__PURE__ */ jsx222(
9225
+ swatches.map((s) => /* @__PURE__ */ jsx224(
9091
9226
  "button",
9092
9227
  {
9093
9228
  type: "button",
@@ -9097,8 +9232,8 @@ function ColorPicker({
9097
9232
  title: s.label,
9098
9233
  disabled,
9099
9234
  className: [
9100
- styles91.swatch,
9101
- normalize(s.value) === normalizedValue ? styles91.swatchSelected : ""
9235
+ styles93.swatch,
9236
+ normalize(s.value) === normalizedValue ? styles93.swatchSelected : ""
9102
9237
  ].filter(Boolean).join(" "),
9103
9238
  style: { backgroundColor: s.value },
9104
9239
  onClick: () => {
@@ -9108,19 +9243,19 @@ function ColorPicker({
9108
9243
  },
9109
9244
  s.value
9110
9245
  )),
9111
- /* @__PURE__ */ jsxs172(
9246
+ /* @__PURE__ */ jsxs174(
9112
9247
  "span",
9113
9248
  {
9114
9249
  className: [
9115
- styles91.customWrapper,
9116
- isCustomActive ? styles91.swatchSelected : styles91.customWrapperEmpty
9250
+ styles93.customWrapper,
9251
+ isCustomActive ? styles93.swatchSelected : styles93.customWrapperEmpty
9117
9252
  ].filter(Boolean).join(" "),
9118
9253
  children: [
9119
- /* @__PURE__ */ jsx222(
9254
+ /* @__PURE__ */ jsx224(
9120
9255
  "input",
9121
9256
  {
9122
9257
  type: "color",
9123
- className: styles91.customInput,
9258
+ className: styles93.customInput,
9124
9259
  "aria-label": customLabel,
9125
9260
  title: customLabel,
9126
9261
  disabled,
@@ -9128,7 +9263,7 @@ function ColorPicker({
9128
9263
  onChange: (e) => onChange(e.target.value)
9129
9264
  }
9130
9265
  ),
9131
- !isCustomActive && /* @__PURE__ */ jsx222(Icon, { name: "plus", size: "sm", "aria-hidden": true, className: styles91.customPlusIcon })
9266
+ !isCustomActive && /* @__PURE__ */ jsx224(Icon, { name: "plus", size: "sm", "aria-hidden": true, className: styles93.customPlusIcon })
9132
9267
  ]
9133
9268
  }
9134
9269
  )
@@ -9139,8 +9274,8 @@ function ColorPicker({
9139
9274
 
9140
9275
  // src/components/QuantityStepper/QuantityStepper.tsx
9141
9276
  import { useId as useId12 } from "react";
9142
- import styles92 from "./QuantityStepper.module.css";
9143
- import { jsx as jsx223, jsxs as jsxs173 } from "react/jsx-runtime";
9277
+ import styles94 from "./QuantityStepper.module.css";
9278
+ import { jsx as jsx225, jsxs as jsxs175 } from "react/jsx-runtime";
9144
9279
  function QuantityStepper({
9145
9280
  value,
9146
9281
  onChange,
@@ -9167,24 +9302,24 @@ function QuantityStepper({
9167
9302
  }
9168
9303
  const decrementDisabled = disabled || min !== void 0 && value <= min;
9169
9304
  const incrementDisabled = disabled || max !== void 0 && value >= max;
9170
- return /* @__PURE__ */ jsxs173("div", { className: [styles92.root, className].filter(Boolean).join(" "), children: [
9171
- /* @__PURE__ */ jsx223(
9305
+ return /* @__PURE__ */ jsxs175("div", { className: [styles94.root, className].filter(Boolean).join(" "), children: [
9306
+ /* @__PURE__ */ jsx225(
9172
9307
  "button",
9173
9308
  {
9174
9309
  type: "button",
9175
- className: styles92.button,
9310
+ className: styles94.button,
9176
9311
  onClick: () => onChange(clamp4(value - step)),
9177
9312
  disabled: decrementDisabled,
9178
9313
  "aria-label": `Decrease ${ariaLabel}`,
9179
9314
  children: "\u2212"
9180
9315
  }
9181
9316
  ),
9182
- /* @__PURE__ */ jsx223(
9317
+ /* @__PURE__ */ jsx225(
9183
9318
  "input",
9184
9319
  {
9185
9320
  id: inputId,
9186
9321
  type: "number",
9187
- className: styles92.input,
9322
+ className: styles94.input,
9188
9323
  value,
9189
9324
  onChange: handleInputChange,
9190
9325
  min,
@@ -9194,12 +9329,12 @@ function QuantityStepper({
9194
9329
  "aria-label": ariaLabel
9195
9330
  }
9196
9331
  ),
9197
- unit && /* @__PURE__ */ jsx223("span", { className: styles92.unit, "aria-hidden": true, children: unit }),
9198
- /* @__PURE__ */ jsx223(
9332
+ unit && /* @__PURE__ */ jsx225("span", { className: styles94.unit, "aria-hidden": true, children: unit }),
9333
+ /* @__PURE__ */ jsx225(
9199
9334
  "button",
9200
9335
  {
9201
9336
  type: "button",
9202
- className: styles92.button,
9337
+ className: styles94.button,
9203
9338
  onClick: () => onChange(clamp4(value + step)),
9204
9339
  disabled: incrementDisabled,
9205
9340
  "aria-label": `Increase ${ariaLabel}`,
@@ -9210,8 +9345,8 @@ function QuantityStepper({
9210
9345
  }
9211
9346
 
9212
9347
  // src/components/CheckableListRow/CheckableListRow.tsx
9213
- import styles93 from "./CheckableListRow.module.css";
9214
- import { jsx as jsx224, jsxs as jsxs174 } from "react/jsx-runtime";
9348
+ import styles95 from "./CheckableListRow.module.css";
9349
+ import { jsx as jsx226, jsxs as jsxs176 } from "react/jsx-runtime";
9215
9350
  function CheckableListRow({
9216
9351
  checked,
9217
9352
  onCheckedChange,
@@ -9230,8 +9365,8 @@ function CheckableListRow({
9230
9365
  toggle();
9231
9366
  }
9232
9367
  }
9233
- return /* @__PURE__ */ jsxs174("div", { className: [styles93.row, className].filter(Boolean).join(" "), children: [
9234
- /* @__PURE__ */ jsxs174(
9368
+ return /* @__PURE__ */ jsxs176("div", { className: [styles95.row, className].filter(Boolean).join(" "), children: [
9369
+ /* @__PURE__ */ jsxs176(
9235
9370
  "div",
9236
9371
  {
9237
9372
  role: "checkbox",
@@ -9239,11 +9374,11 @@ function CheckableListRow({
9239
9374
  "aria-label": label,
9240
9375
  "aria-disabled": disabled || void 0,
9241
9376
  tabIndex: disabled ? -1 : 0,
9242
- className: styles93.tapTarget,
9377
+ className: styles95.tapTarget,
9243
9378
  onClick: toggle,
9244
9379
  onKeyDown: handleKeyDown,
9245
9380
  children: [
9246
- /* @__PURE__ */ jsx224("span", { className: [styles93.box, checked ? styles93.checked : ""].filter(Boolean).join(" "), children: checked && /* @__PURE__ */ jsx224("svg", { className: styles93.tick, viewBox: "0 0 10 8", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ jsx224(
9381
+ /* @__PURE__ */ jsx226("span", { className: [styles95.box, checked ? styles95.checked : ""].filter(Boolean).join(" "), children: checked && /* @__PURE__ */ jsx226("svg", { className: styles95.tick, viewBox: "0 0 10 8", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ jsx226(
9247
9382
  "path",
9248
9383
  {
9249
9384
  d: "M1 4l3 3 5-6",
@@ -9253,18 +9388,18 @@ function CheckableListRow({
9253
9388
  strokeLinejoin: "round"
9254
9389
  }
9255
9390
  ) }) }),
9256
- icon && /* @__PURE__ */ jsx224("span", { className: styles93.icon, children: icon }),
9257
- /* @__PURE__ */ jsx224("span", { className: [styles93.label, checked ? styles93.struck : ""].filter(Boolean).join(" "), children: label })
9391
+ icon && /* @__PURE__ */ jsx226("span", { className: styles95.icon, children: icon }),
9392
+ /* @__PURE__ */ jsx226("span", { className: [styles95.label, checked ? styles95.struck : ""].filter(Boolean).join(" "), children: label })
9258
9393
  ]
9259
9394
  }
9260
9395
  ),
9261
- trailing && /* @__PURE__ */ jsx224("span", { className: styles93.trailing, children: trailing })
9396
+ trailing && /* @__PURE__ */ jsx226("span", { className: styles95.trailing, children: trailing })
9262
9397
  ] });
9263
9398
  }
9264
9399
 
9265
9400
  // src/components/CurrencyInput/CurrencyInput.tsx
9266
- import { useState as useState34 } from "react";
9267
- import { jsx as jsx225 } from "react/jsx-runtime";
9401
+ import { useState as useState35 } from "react";
9402
+ import { jsx as jsx227 } from "react/jsx-runtime";
9268
9403
  function minorToText(minor, decimals) {
9269
9404
  return (minor / 10 ** decimals).toFixed(decimals);
9270
9405
  }
@@ -9281,13 +9416,13 @@ function CurrencyInput({
9281
9416
  decimals = 2,
9282
9417
  ...rest
9283
9418
  }) {
9284
- const [text, setText] = useState34(
9419
+ const [text, setText] = useState35(
9285
9420
  () => valueCents != null ? minorToText(valueCents, decimals) : ""
9286
9421
  );
9287
9422
  if (textToMinor(text, decimals) !== valueCents) {
9288
9423
  setText(valueCents != null ? minorToText(valueCents, decimals) : "");
9289
9424
  }
9290
- return /* @__PURE__ */ jsx225(
9425
+ return /* @__PURE__ */ jsx227(
9291
9426
  Input,
9292
9427
  {
9293
9428
  ...rest,
@@ -9304,19 +9439,19 @@ function CurrencyInput({
9304
9439
  }
9305
9440
 
9306
9441
  // src/components/BalanceChip/BalanceChip.tsx
9307
- import styles94 from "./BalanceChip.module.css";
9308
- import { jsx as jsx226 } from "react/jsx-runtime";
9442
+ import styles96 from "./BalanceChip.module.css";
9443
+ import { jsx as jsx228 } from "react/jsx-runtime";
9309
9444
  function formatAbsCents(cents) {
9310
9445
  return (Math.abs(cents) / 100).toFixed(2);
9311
9446
  }
9312
9447
  function BalanceChip({ amountCents, currency, className }) {
9313
9448
  const direction = amountCents > 0 ? "owed" : amountCents < 0 ? "owes" : "settled";
9314
9449
  const text = direction === "settled" ? "Settled up" : `${direction === "owed" ? "Owed" : "Owes"} ${currency} ${formatAbsCents(amountCents)}`;
9315
- return /* @__PURE__ */ jsx226("span", { className: [styles94.chip, styles94[direction], className].filter(Boolean).join(" "), children: text });
9450
+ return /* @__PURE__ */ jsx228("span", { className: [styles96.chip, styles96[direction], className].filter(Boolean).join(" "), children: text });
9316
9451
  }
9317
9452
 
9318
9453
  // src/components/SplitMethodSelector/SplitMethodSelector.tsx
9319
- import { jsx as jsx227 } from "react/jsx-runtime";
9454
+ import { jsx as jsx229 } from "react/jsx-runtime";
9320
9455
  var OPTIONS = [
9321
9456
  { label: "Equal", value: "equal" },
9322
9457
  { label: "Amount", value: "amount" },
@@ -9329,7 +9464,7 @@ function SplitMethodSelector({
9329
9464
  size = "sm",
9330
9465
  "aria-label": ariaLabel = "Split method"
9331
9466
  }) {
9332
- return /* @__PURE__ */ jsx227(
9467
+ return /* @__PURE__ */ jsx229(
9333
9468
  SegmentedControl,
9334
9469
  {
9335
9470
  value,
@@ -9342,8 +9477,8 @@ function SplitMethodSelector({
9342
9477
  }
9343
9478
 
9344
9479
  // src/components/MemberMultiSelect/MemberMultiSelect.tsx
9345
- import styles95 from "./MemberMultiSelect.module.css";
9346
- import { jsx as jsx228, jsxs as jsxs175 } from "react/jsx-runtime";
9480
+ import styles97 from "./MemberMultiSelect.module.css";
9481
+ import { jsx as jsx230, jsxs as jsxs177 } from "react/jsx-runtime";
9347
9482
  function MemberMultiSelect({
9348
9483
  options,
9349
9484
  selectedIds,
@@ -9353,12 +9488,12 @@ function MemberMultiSelect({
9353
9488
  hint,
9354
9489
  className
9355
9490
  }) {
9356
- return /* @__PURE__ */ jsxs175("div", { className: [styles95.group, className].filter(Boolean).join(" "), children: [
9357
- label && /* @__PURE__ */ jsx228("span", { className: styles95.label, children: label }),
9491
+ return /* @__PURE__ */ jsxs177("div", { className: [styles97.group, className].filter(Boolean).join(" "), children: [
9492
+ label && /* @__PURE__ */ jsx230("span", { className: styles97.label, children: label }),
9358
9493
  options.map((option) => {
9359
9494
  const checked = selectedIds.has(option.id);
9360
- return /* @__PURE__ */ jsxs175("div", { className: styles95.row, children: [
9361
- /* @__PURE__ */ jsx228(
9495
+ return /* @__PURE__ */ jsxs177("div", { className: styles97.row, children: [
9496
+ /* @__PURE__ */ jsx230(
9362
9497
  Checkbox,
9363
9498
  {
9364
9499
  checked,
@@ -9366,16 +9501,16 @@ function MemberMultiSelect({
9366
9501
  label: option.label
9367
9502
  }
9368
9503
  ),
9369
- checked && renderTrailing && /* @__PURE__ */ jsx228("span", { className: styles95.trailing, children: renderTrailing(option.id) })
9504
+ checked && renderTrailing && /* @__PURE__ */ jsx230("span", { className: styles97.trailing, children: renderTrailing(option.id) })
9370
9505
  ] }, option.id);
9371
9506
  }),
9372
- hint && /* @__PURE__ */ jsx228("span", { className: styles95.hint, children: hint })
9507
+ hint && /* @__PURE__ */ jsx230("span", { className: styles97.hint, children: hint })
9373
9508
  ] });
9374
9509
  }
9375
9510
 
9376
9511
  // src/components/SwipableMobileCarouselDots/SwipableMobileCarouselDots.tsx
9377
- import styles96 from "./SwipableMobileCarouselDots.module.css";
9378
- import { jsx as jsx229 } from "react/jsx-runtime";
9512
+ import styles98 from "./SwipableMobileCarouselDots.module.css";
9513
+ import { jsx as jsx231 } from "react/jsx-runtime";
9379
9514
  function SwipableMobileCarouselDots({
9380
9515
  count,
9381
9516
  activeIndex,
@@ -9385,23 +9520,23 @@ function SwipableMobileCarouselDots({
9385
9520
  density = "default",
9386
9521
  className
9387
9522
  }) {
9388
- return /* @__PURE__ */ jsx229(
9523
+ return /* @__PURE__ */ jsx231(
9389
9524
  "div",
9390
9525
  {
9391
9526
  role: "tablist",
9392
9527
  "aria-label": ariaLabel,
9393
- className: [styles96.dots, density === "compact" ? styles96.dotsCompact : "", className].filter(Boolean).join(" "),
9528
+ className: [styles98.dots, density === "compact" ? styles98.dotsCompact : "", className].filter(Boolean).join(" "),
9394
9529
  children: Array.from({ length: count }, (_, i) => {
9395
9530
  const active = i === activeIndex;
9396
9531
  const label = labels?.[i] ?? `Slide ${i + 1} of ${count}`;
9397
- return /* @__PURE__ */ jsx229(
9532
+ return /* @__PURE__ */ jsx231(
9398
9533
  "button",
9399
9534
  {
9400
9535
  type: "button",
9401
9536
  role: "tab",
9402
9537
  "aria-selected": active,
9403
9538
  "aria-label": label,
9404
- className: [styles96.dot, active ? styles96.dotActive : ""].filter(Boolean).join(" "),
9539
+ className: [styles98.dot, active ? styles98.dotActive : ""].filter(Boolean).join(" "),
9405
9540
  onClick: () => onJump(i)
9406
9541
  },
9407
9542
  i
@@ -9415,7 +9550,7 @@ function SwipableMobileCarouselDots({
9415
9550
  import {
9416
9551
  Children as Children2,
9417
9552
  isValidElement as isValidElement2,
9418
- useEffect as useEffect18,
9553
+ useEffect as useEffect19,
9419
9554
  useLayoutEffect as useLayoutEffect4,
9420
9555
  useMemo as useMemo6,
9421
9556
  useRef as useRef30
@@ -9429,16 +9564,16 @@ import { createContext as createContext3 } from "react";
9429
9564
  var CarouselSlideMountContext = createContext3(null);
9430
9565
 
9431
9566
  // src/components/SwipableMobileCarousel/SwipableMobileCarouselSlide.tsx
9432
- import { Fragment as Fragment21, jsx as jsx230 } from "react/jsx-runtime";
9567
+ import { Fragment as Fragment21, jsx as jsx232 } from "react/jsx-runtime";
9433
9568
  function SwipableMobileCarouselSlide({ children }) {
9434
9569
  const ctx = useContext3(CarouselSlideMountContext);
9435
9570
  if (!ctx?.isMounted) return null;
9436
- return /* @__PURE__ */ jsx230(Fragment21, { children });
9571
+ return /* @__PURE__ */ jsx232(Fragment21, { children });
9437
9572
  }
9438
9573
 
9439
9574
  // src/components/SwipableMobileCarousel/SwipableMobileCarousel.tsx
9440
- import styles97 from "./SwipableMobileCarousel.module.css";
9441
- import { jsx as jsx231, jsxs as jsxs176 } from "react/jsx-runtime";
9575
+ import styles99 from "./SwipableMobileCarousel.module.css";
9576
+ import { jsx as jsx233, jsxs as jsxs178 } from "react/jsx-runtime";
9442
9577
  function describeChild(child) {
9443
9578
  if (isValidElement2(child)) {
9444
9579
  const type = child.type;
@@ -9498,7 +9633,7 @@ function SwipableMobileCarousel({
9498
9633
  scrollToIndex(initialActiveIndexRef.current, "instant");
9499
9634
  }, []);
9500
9635
  const didMountActiveIndexSyncRef = useRef30(false);
9501
- useEffect18(() => {
9636
+ useEffect19(() => {
9502
9637
  if (!didMountActiveIndexSyncRef.current) {
9503
9638
  didMountActiveIndexSyncRef.current = true;
9504
9639
  return;
@@ -9529,7 +9664,7 @@ function SwipableMobileCarousel({
9529
9664
  onSettle(index);
9530
9665
  }
9531
9666
  const labels = slides.map((s) => s.label);
9532
- const indicator = renderIndicator === null ? null : renderIndicator ? renderIndicator({ count, activeIndex: clampedActiveIndex, labels, onJump: handleJump }) : /* @__PURE__ */ jsx231(
9667
+ const indicator = renderIndicator === null ? null : renderIndicator ? renderIndicator({ count, activeIndex: clampedActiveIndex, labels, onJump: handleJump }) : /* @__PURE__ */ jsx233(
9533
9668
  SwipableMobileCarouselDots,
9534
9669
  {
9535
9670
  count,
@@ -9539,8 +9674,8 @@ function SwipableMobileCarousel({
9539
9674
  onJump: handleJump
9540
9675
  }
9541
9676
  );
9542
- return /* @__PURE__ */ jsxs176("div", { className: [styles97.wrap, className].filter(Boolean).join(" "), children: [
9543
- /* @__PURE__ */ jsx231("div", { className: styles97.scroller, ref: scrollRef, role: "region", "aria-label": ariaLabel, children: slides.map((slide, i) => /* @__PURE__ */ jsx231("div", { className: styles97.slide, children: /* @__PURE__ */ jsx231(
9677
+ return /* @__PURE__ */ jsxs178("div", { className: [styles99.wrap, className].filter(Boolean).join(" "), children: [
9678
+ /* @__PURE__ */ jsx233("div", { className: styles99.scroller, ref: scrollRef, role: "region", "aria-label": ariaLabel, children: slides.map((slide, i) => /* @__PURE__ */ jsx233("div", { className: styles99.slide, children: /* @__PURE__ */ jsx233(
9544
9679
  CarouselSlideMountContext.Provider,
9545
9680
  {
9546
9681
  value: {
@@ -9558,61 +9693,61 @@ function SwipableMobileCarousel({
9558
9693
  children: slide.element
9559
9694
  }
9560
9695
  ) }, slide.key)) }),
9561
- indicator && /* @__PURE__ */ jsx231("div", { className: styles97.indicatorSlot, children: indicator })
9696
+ indicator && /* @__PURE__ */ jsx233("div", { className: styles99.indicatorSlot, children: indicator })
9562
9697
  ] });
9563
9698
  }
9564
9699
 
9565
9700
  // src/components/SwipableMobileCarousel/SwipableMobileCarouselSlideHeader.tsx
9566
- import styles98 from "./SwipableMobileCarouselSlideParts.module.css";
9567
- import { jsx as jsx232 } from "react/jsx-runtime";
9701
+ import styles100 from "./SwipableMobileCarouselSlideParts.module.css";
9702
+ import { jsx as jsx234 } from "react/jsx-runtime";
9568
9703
  function SwipableMobileCarouselSlideHeader({
9569
9704
  children,
9570
9705
  className
9571
9706
  }) {
9572
- return /* @__PURE__ */ jsx232("div", { className: [styles98.header, className].filter(Boolean).join(" "), children });
9707
+ return /* @__PURE__ */ jsx234("div", { className: [styles100.header, className].filter(Boolean).join(" "), children });
9573
9708
  }
9574
9709
 
9575
9710
  // src/components/SwipableMobileCarousel/SwipableMobileCarouselSlideBody.tsx
9576
- import styles99 from "./SwipableMobileCarouselSlideParts.module.css";
9577
- import { jsx as jsx233 } from "react/jsx-runtime";
9578
- var defaultLoadingFallback = /* @__PURE__ */ jsx233("div", { className: styles99.loading, children: "Loading\u2026" });
9711
+ import styles101 from "./SwipableMobileCarouselSlideParts.module.css";
9712
+ import { jsx as jsx235 } from "react/jsx-runtime";
9713
+ var defaultLoadingFallback = /* @__PURE__ */ jsx235("div", { className: styles101.loading, children: "Loading\u2026" });
9579
9714
  function SwipableMobileCarouselSlideBody({
9580
9715
  children,
9581
9716
  loading = false,
9582
9717
  loadingFallback,
9583
9718
  className
9584
9719
  }) {
9585
- return /* @__PURE__ */ jsx233("div", { className: [styles99.body, className].filter(Boolean).join(" "), children: loading ? loadingFallback ?? defaultLoadingFallback : children });
9720
+ return /* @__PURE__ */ jsx235("div", { className: [styles101.body, className].filter(Boolean).join(" "), children: loading ? loadingFallback ?? defaultLoadingFallback : children });
9586
9721
  }
9587
9722
 
9588
9723
  // src/components/SwipableMobileCarousel/SwipableMobileCarouselSlideFooter.tsx
9589
- import styles100 from "./SwipableMobileCarouselSlideParts.module.css";
9590
- import { jsx as jsx234 } from "react/jsx-runtime";
9724
+ import styles102 from "./SwipableMobileCarouselSlideParts.module.css";
9725
+ import { jsx as jsx236 } from "react/jsx-runtime";
9591
9726
  function SwipableMobileCarouselSlideFooter({
9592
9727
  children,
9593
9728
  className
9594
9729
  }) {
9595
- return /* @__PURE__ */ jsx234("div", { className: [styles100.footer, className].filter(Boolean).join(" "), children });
9730
+ return /* @__PURE__ */ jsx236("div", { className: [styles102.footer, className].filter(Boolean).join(" "), children });
9596
9731
  }
9597
9732
 
9598
9733
  // src/components/SwipeStack/SwipeStack.tsx
9599
- import { Children as Children3, isValidElement as isValidElement3, useEffect as useEffect19, useRef as useRef31, useState as useState35 } from "react";
9734
+ import { Children as Children3, isValidElement as isValidElement3, useEffect as useEffect20, useRef as useRef31, useState as useState36 } from "react";
9600
9735
 
9601
9736
  // src/components/SwipeStack/SwipeStackCard.tsx
9602
- import { Fragment as Fragment22, jsx as jsx235 } from "react/jsx-runtime";
9737
+ import { Fragment as Fragment22, jsx as jsx237 } from "react/jsx-runtime";
9603
9738
  function SwipeStackCard({ children }) {
9604
- return /* @__PURE__ */ jsx235(Fragment22, { children });
9739
+ return /* @__PURE__ */ jsx237(Fragment22, { children });
9605
9740
  }
9606
9741
 
9607
9742
  // src/components/SwipeStack/SwipeStack.tsx
9608
- import styles101 from "./SwipeStack.module.css";
9609
- import { jsx as jsx236, jsxs as jsxs177 } from "react/jsx-runtime";
9743
+ import styles103 from "./SwipeStack.module.css";
9744
+ import { jsx as jsx238, jsxs as jsxs179 } from "react/jsx-runtime";
9610
9745
  var DIRECTION_KEYS = ["up", "down", "left", "right"];
9611
9746
  var STAMP_CLASS = {
9612
- up: styles101.stampUp,
9613
- down: styles101.stampDown,
9614
- left: styles101.stampLeft,
9615
- right: styles101.stampRight
9747
+ up: styles103.stampUp,
9748
+ down: styles103.stampDown,
9749
+ left: styles103.stampLeft,
9750
+ right: styles103.stampRight
9616
9751
  };
9617
9752
  function describeChild2(child) {
9618
9753
  if (isValidElement3(child)) {
@@ -9653,10 +9788,10 @@ function SwipeStack({
9653
9788
  children
9654
9789
  }) {
9655
9790
  const cards = resolveCards(children);
9656
- const [dismissed, setDismissed] = useState35(() => /* @__PURE__ */ new Set());
9657
- const [exiting, setExiting] = useState35(null);
9791
+ const [dismissed, setDismissed] = useState36(() => /* @__PURE__ */ new Set());
9792
+ const [exiting, setExiting] = useState36(null);
9658
9793
  const exitTimerRef = useRef31(null);
9659
- useEffect19(
9794
+ useEffect20(
9660
9795
  () => () => {
9661
9796
  if (exitTimerRef.current) clearTimeout(exitTimerRef.current);
9662
9797
  },
@@ -9683,33 +9818,33 @@ function SwipeStack({
9683
9818
  onSwipe(direction, committed.key);
9684
9819
  }
9685
9820
  });
9686
- return /* @__PURE__ */ jsxs177("div", { className: [styles101.wrap, className].filter(Boolean).join(" "), children: [
9687
- /* @__PURE__ */ jsxs177("div", { className: styles101.stack, role: "region", "aria-label": ariaLabel, children: [
9688
- peek && /* @__PURE__ */ jsx236("div", { className: styles101.peek, "aria-hidden": "true", children: peek.element }, peek.key),
9689
- current && /* @__PURE__ */ jsxs177("div", { className: styles101.cardSlot, ref: wrapRef, children: [
9821
+ return /* @__PURE__ */ jsxs179("div", { className: [styles103.wrap, className].filter(Boolean).join(" "), children: [
9822
+ /* @__PURE__ */ jsxs179("div", { className: styles103.stack, role: "region", "aria-label": ariaLabel, children: [
9823
+ peek && /* @__PURE__ */ jsx238("div", { className: styles103.peek, "aria-hidden": "true", children: peek.element }, peek.key),
9824
+ current && /* @__PURE__ */ jsxs179("div", { className: styles103.cardSlot, ref: wrapRef, children: [
9690
9825
  liveDirections.map((d) => {
9691
9826
  const meta = directions[d];
9692
9827
  if (!meta) return null;
9693
- return /* @__PURE__ */ jsxs177(
9828
+ return /* @__PURE__ */ jsxs179(
9694
9829
  "div",
9695
9830
  {
9696
- className: [styles101.stamp, STAMP_CLASS[d]].join(" "),
9831
+ className: [styles103.stamp, STAMP_CLASS[d]].join(" "),
9697
9832
  "aria-hidden": "true",
9698
9833
  children: [
9699
- meta.icon && /* @__PURE__ */ jsx236(Icon, { name: meta.icon, size: "sm", "aria-hidden": true }),
9700
- /* @__PURE__ */ jsx236("span", { children: meta.label })
9834
+ meta.icon && /* @__PURE__ */ jsx238(Icon, { name: meta.icon, size: "sm", "aria-hidden": true }),
9835
+ /* @__PURE__ */ jsx238("span", { children: meta.label })
9701
9836
  ]
9702
9837
  },
9703
9838
  d
9704
9839
  );
9705
9840
  }),
9706
- /* @__PURE__ */ jsx236("div", { className: styles101.card, ref: cardRef, style: { touchAction }, ...handlers, children: current.element })
9841
+ /* @__PURE__ */ jsx238("div", { className: styles103.card, ref: cardRef, style: { touchAction }, ...handlers, children: current.element })
9707
9842
  ] }, current.key)
9708
9843
  ] }),
9709
- liveDirections.length > 0 && /* @__PURE__ */ jsx236("div", { className: styles101.actions, role: "group", "aria-label": `${ariaLabel} actions`, children: liveDirections.map((d) => {
9844
+ liveDirections.length > 0 && /* @__PURE__ */ jsx238("div", { className: styles103.actions, role: "group", "aria-label": `${ariaLabel} actions`, children: liveDirections.map((d) => {
9710
9845
  const meta = directions[d];
9711
9846
  if (!meta) return null;
9712
- return /* @__PURE__ */ jsxs177(
9847
+ return /* @__PURE__ */ jsxs179(
9713
9848
  Button,
9714
9849
  {
9715
9850
  variant: "secondary",
@@ -9717,7 +9852,7 @@ function SwipeStack({
9717
9852
  disabled: !current,
9718
9853
  onClick: () => triggerCommit(d),
9719
9854
  children: [
9720
- meta.icon && /* @__PURE__ */ jsx236(Icon, { name: meta.icon, size: "sm", "aria-hidden": true }),
9855
+ meta.icon && /* @__PURE__ */ jsx238(Icon, { name: meta.icon, size: "sm", "aria-hidden": true }),
9721
9856
  meta.label
9722
9857
  ]
9723
9858
  },
@@ -9729,8 +9864,8 @@ function SwipeStack({
9729
9864
 
9730
9865
  // src/components/ThreeColumnLayout/ThreeColumnLayout.tsx
9731
9866
  import { Children as Children4 } from "react";
9732
- import styles102 from "./ThreeColumnLayout.module.css";
9733
- import { jsx as jsx237, jsxs as jsxs178 } from "react/jsx-runtime";
9867
+ import styles104 from "./ThreeColumnLayout.module.css";
9868
+ import { jsx as jsx239, jsxs as jsxs180 } from "react/jsx-runtime";
9734
9869
  function ThreeColumnLayout({
9735
9870
  children,
9736
9871
  sidebarWidth = 280,
@@ -9745,24 +9880,24 @@ function ThreeColumnLayout({
9745
9880
  );
9746
9881
  }
9747
9882
  const [sidebar, main, detail] = items;
9748
- return /* @__PURE__ */ jsxs178("div", { className: [styles102.shell, className].filter(Boolean).join(" "), children: [
9749
- /* @__PURE__ */ jsx237(
9883
+ return /* @__PURE__ */ jsxs180("div", { className: [styles104.shell, className].filter(Boolean).join(" "), children: [
9884
+ /* @__PURE__ */ jsx239(
9750
9885
  "div",
9751
9886
  {
9752
- className: [styles102.sidebar, sidebarHidden && styles102.sidebarHidden].filter(Boolean).join(" "),
9887
+ className: [styles104.sidebar, sidebarHidden && styles104.sidebarHidden].filter(Boolean).join(" "),
9753
9888
  style: sidebarHidden ? void 0 : { width: sidebarWidth },
9754
9889
  hidden: sidebarHidden,
9755
9890
  children: sidebar
9756
9891
  }
9757
9892
  ),
9758
- /* @__PURE__ */ jsx237("div", { className: styles102.main, children: main }),
9759
- detail && /* @__PURE__ */ jsx237("div", { className: styles102.detail, style: { width: detailWidth }, children: detail })
9893
+ /* @__PURE__ */ jsx239("div", { className: styles104.main, children: main }),
9894
+ detail && /* @__PURE__ */ jsx239("div", { className: styles104.detail, style: { width: detailWidth }, children: detail })
9760
9895
  ] });
9761
9896
  }
9762
9897
 
9763
9898
  // src/components/HeaderFooterLayout/HeaderFooterLayout.tsx
9764
- import styles103 from "./HeaderFooterLayout.module.css";
9765
- import { jsx as jsx238, jsxs as jsxs179 } from "react/jsx-runtime";
9899
+ import styles105 from "./HeaderFooterLayout.module.css";
9900
+ import { jsx as jsx240, jsxs as jsxs181 } from "react/jsx-runtime";
9766
9901
  function HeaderFooterLayout({
9767
9902
  children,
9768
9903
  header,
@@ -9771,17 +9906,17 @@ function HeaderFooterLayout({
9771
9906
  footerHeight = 60,
9772
9907
  className
9773
9908
  }) {
9774
- return /* @__PURE__ */ jsxs179("div", { className: [styles103.shell, className].filter(Boolean).join(" "), children: [
9775
- header && /* @__PURE__ */ jsx238("div", { className: styles103.header, style: { height: headerHeight }, children: header }),
9776
- /* @__PURE__ */ jsx238("div", { className: styles103.main, children }),
9777
- footer && /* @__PURE__ */ jsx238("div", { className: styles103.footer, style: { height: footerHeight }, children: footer })
9909
+ return /* @__PURE__ */ jsxs181("div", { className: [styles105.shell, className].filter(Boolean).join(" "), children: [
9910
+ header && /* @__PURE__ */ jsx240("div", { className: styles105.header, style: { height: headerHeight }, children: header }),
9911
+ /* @__PURE__ */ jsx240("div", { className: styles105.main, children }),
9912
+ footer && /* @__PURE__ */ jsx240("div", { className: styles105.footer, style: { height: footerHeight }, children: footer })
9778
9913
  ] });
9779
9914
  }
9780
9915
 
9781
9916
  // src/components/RootLayout/RootLayout.tsx
9782
9917
  import { Children as Children5 } from "react";
9783
- import styles104 from "./RootLayout.module.css";
9784
- import { Fragment as Fragment23, jsx as jsx239, jsxs as jsxs180 } from "react/jsx-runtime";
9918
+ import styles106 from "./RootLayout.module.css";
9919
+ import { Fragment as Fragment23, jsx as jsx241, jsxs as jsxs182 } from "react/jsx-runtime";
9785
9920
  var EXPECTED_CHILD_COUNT = {
9786
9921
  plain: 1,
9787
9922
  sidebar: 2,
@@ -9791,17 +9926,17 @@ var EXPECTED_CHILD_COUNT = {
9791
9926
  function RootLayoutWeb({ variant, items, sidebarWidth, headerHeight }) {
9792
9927
  if (variant === "sidebar") {
9793
9928
  const [sidebar, main2] = items;
9794
- return /* @__PURE__ */ jsxs180(ThreeColumnLayout, { sidebarWidth, children: [
9929
+ return /* @__PURE__ */ jsxs182(ThreeColumnLayout, { sidebarWidth, children: [
9795
9930
  sidebar,
9796
9931
  main2
9797
9932
  ] });
9798
9933
  }
9799
9934
  if (variant === "header") {
9800
9935
  const [header, main2] = items;
9801
- return /* @__PURE__ */ jsx239(HeaderFooterLayout, { header, headerHeight, children: main2 });
9936
+ return /* @__PURE__ */ jsx241(HeaderFooterLayout, { header, headerHeight, children: main2 });
9802
9937
  }
9803
9938
  const main = variant === "shell" ? items[1] : items[0];
9804
- return /* @__PURE__ */ jsx239(Fragment23, { children: main });
9939
+ return /* @__PURE__ */ jsx241(Fragment23, { children: main });
9805
9940
  }
9806
9941
  function RootLayoutMobile({
9807
9942
  variant,
@@ -9811,11 +9946,11 @@ function RootLayoutMobile({
9811
9946
  }) {
9812
9947
  if (variant === "header") {
9813
9948
  const [header, main2] = items;
9814
- return /* @__PURE__ */ jsx239(HeaderFooterLayout, { header, headerHeight: mobileHeaderHeight, children: main2 });
9949
+ return /* @__PURE__ */ jsx241(HeaderFooterLayout, { header, headerHeight: mobileHeaderHeight, children: main2 });
9815
9950
  }
9816
9951
  if (variant === "shell") {
9817
9952
  const [header, main2, footer] = items;
9818
- return /* @__PURE__ */ jsx239(
9953
+ return /* @__PURE__ */ jsx241(
9819
9954
  HeaderFooterLayout,
9820
9955
  {
9821
9956
  header,
@@ -9827,7 +9962,7 @@ function RootLayoutMobile({
9827
9962
  );
9828
9963
  }
9829
9964
  const main = variant === "sidebar" ? items[1] : items[0];
9830
- return /* @__PURE__ */ jsx239(Fragment23, { children: main });
9965
+ return /* @__PURE__ */ jsx241(Fragment23, { children: main });
9831
9966
  }
9832
9967
  function RootLayout({
9833
9968
  variant = "plain",
@@ -9844,10 +9979,10 @@ function RootLayout({
9844
9979
  `[RootLayout] variant="${variant}" expects ${EXPECTED_CHILD_COUNT[variant]} children; received ${items.length}.`
9845
9980
  );
9846
9981
  }
9847
- return /* @__PURE__ */ jsx239("div", { className: [styles104.root, className].filter(Boolean).join(" "), children: /* @__PURE__ */ jsx239(
9982
+ return /* @__PURE__ */ jsx241("div", { className: [styles106.root, className].filter(Boolean).join(" "), children: /* @__PURE__ */ jsx241(
9848
9983
  ResponsiveSurface,
9849
9984
  {
9850
- web: /* @__PURE__ */ jsx239(
9985
+ web: /* @__PURE__ */ jsx241(
9851
9986
  RootLayoutWeb,
9852
9987
  {
9853
9988
  variant,
@@ -9856,7 +9991,7 @@ function RootLayout({
9856
9991
  headerHeight
9857
9992
  }
9858
9993
  ),
9859
- mobile: /* @__PURE__ */ jsx239(
9994
+ mobile: /* @__PURE__ */ jsx241(
9860
9995
  RootLayoutMobile,
9861
9996
  {
9862
9997
  variant,
@@ -9870,25 +10005,25 @@ function RootLayout({
9870
10005
  }
9871
10006
 
9872
10007
  // src/components/PageLayout/PageLayout.tsx
9873
- import styles105 from "./PageLayout.module.css";
9874
- import { jsx as jsx240, jsxs as jsxs181 } from "react/jsx-runtime";
10008
+ import styles107 from "./PageLayout.module.css";
10009
+ import { jsx as jsx242, jsxs as jsxs183 } from "react/jsx-runtime";
9875
10010
  var paddingClass3 = {
9876
- none: styles105.padNone,
9877
- sm: styles105.padSm,
9878
- md: styles105.padMd,
9879
- lg: styles105.padLg
10011
+ none: styles107.padNone,
10012
+ sm: styles107.padSm,
10013
+ md: styles107.padMd,
10014
+ lg: styles107.padLg
9880
10015
  };
9881
10016
  function PageLayout({ header, padding = "none", children, className }) {
9882
- return /* @__PURE__ */ jsxs181("div", { className: [styles105.root, className].filter(Boolean).join(" "), children: [
9883
- header && /* @__PURE__ */ jsx240("div", { className: styles105.header, children: header }),
9884
- /* @__PURE__ */ jsx240("div", { className: [styles105.content, paddingClass3[padding]].join(" "), children })
10017
+ return /* @__PURE__ */ jsxs183("div", { className: [styles107.root, className].filter(Boolean).join(" "), children: [
10018
+ header && /* @__PURE__ */ jsx242("div", { className: styles107.header, children: header }),
10019
+ /* @__PURE__ */ jsx242("div", { className: [styles107.content, paddingClass3[padding]].join(" "), children })
9885
10020
  ] });
9886
10021
  }
9887
10022
 
9888
10023
  // src/components/NavList/NavList.tsx
9889
10024
  import { Fragment as Fragment24 } from "react";
9890
- import styles106 from "./NavList.module.css";
9891
- import { Fragment as Fragment25, jsx as jsx241, jsxs as jsxs182 } from "react/jsx-runtime";
10025
+ import styles108 from "./NavList.module.css";
10026
+ import { Fragment as Fragment25, jsx as jsx243, jsxs as jsxs184 } from "react/jsx-runtime";
9892
10027
  function NavList({
9893
10028
  groups,
9894
10029
  variant,
@@ -9897,28 +10032,28 @@ function NavList({
9897
10032
  className,
9898
10033
  renderLink
9899
10034
  }) {
9900
- return /* @__PURE__ */ jsx241(
10035
+ return /* @__PURE__ */ jsx243(
9901
10036
  "nav",
9902
10037
  {
9903
- className: [styles106.nav, styles106[variant], density === "compact" && styles106.compact, className].filter(Boolean).join(" "),
10038
+ className: [styles108.nav, styles108[variant], density === "compact" && styles108.compact, className].filter(Boolean).join(" "),
9904
10039
  "aria-label": ariaLabel,
9905
- children: groups.map((group) => /* @__PURE__ */ jsxs182("div", { className: styles106.group, children: [
9906
- group.label && /* @__PURE__ */ jsx241("div", { className: styles106.groupLabel, children: group.label }),
10040
+ children: groups.map((group) => /* @__PURE__ */ jsxs184("div", { className: styles108.group, children: [
10041
+ group.label && /* @__PURE__ */ jsx243("div", { className: styles108.groupLabel, children: group.label }),
9907
10042
  group.items.map((item) => {
9908
10043
  const isActive = variant === "static" && !!item.active;
9909
- const rowContent = /* @__PURE__ */ jsxs182(Fragment25, { children: [
9910
- /* @__PURE__ */ jsx241(Icon, { name: item.icon, size: "sm", "aria-hidden": true, className: styles106.icon }),
9911
- /* @__PURE__ */ jsx241("span", { className: styles106.label, children: item.label }),
9912
- item.badge && /* @__PURE__ */ jsx241("span", { className: styles106.badge, children: item.badge }),
9913
- variant === "drilldown" && /* @__PURE__ */ jsx241(Icon, { name: "chevron-right", size: "sm", "aria-hidden": true, className: styles106.chevron })
10044
+ const rowContent = /* @__PURE__ */ jsxs184(Fragment25, { children: [
10045
+ /* @__PURE__ */ jsx243(Icon, { name: item.icon, size: "sm", "aria-hidden": true, className: styles108.icon }),
10046
+ /* @__PURE__ */ jsx243("span", { className: styles108.label, children: item.label }),
10047
+ item.badge && /* @__PURE__ */ jsx243("span", { className: styles108.badge, children: item.badge }),
10048
+ variant === "drilldown" && /* @__PURE__ */ jsx243(Icon, { name: "chevron-right", size: "sm", "aria-hidden": true, className: styles108.chevron })
9914
10049
  ] });
9915
10050
  const linkProps = {
9916
10051
  href: item.href,
9917
- className: [styles106.row, isActive && styles106.rowActive].filter(Boolean).join(" "),
10052
+ className: [styles108.row, isActive && styles108.rowActive].filter(Boolean).join(" "),
9918
10053
  "aria-current": isActive ? "page" : void 0,
9919
10054
  children: rowContent
9920
10055
  };
9921
- return /* @__PURE__ */ jsx241(Fragment24, { children: renderLink ? renderLink(item, linkProps) : /* @__PURE__ */ jsx241(
10056
+ return /* @__PURE__ */ jsx243(Fragment24, { children: renderLink ? renderLink(item, linkProps) : /* @__PURE__ */ jsx243(
9922
10057
  "a",
9923
10058
  {
9924
10059
  href: linkProps.href,
@@ -9976,8 +10111,8 @@ var THEME_PRESETS = {
9976
10111
  };
9977
10112
 
9978
10113
  // src/components/CopyButton/CopyButton.tsx
9979
- import { useState as useState36 } from "react";
9980
- import { jsx as jsx242 } from "react/jsx-runtime";
10114
+ import { useState as useState37 } from "react";
10115
+ import { jsx as jsx244 } from "react/jsx-runtime";
9981
10116
  function CopyButton({
9982
10117
  text,
9983
10118
  label,
@@ -9986,7 +10121,7 @@ function CopyButton({
9986
10121
  variant = "secondary",
9987
10122
  size = "sm"
9988
10123
  }) {
9989
- const [state, setState] = useState36("idle");
10124
+ const [state, setState] = useState37("idle");
9990
10125
  async function copy() {
9991
10126
  try {
9992
10127
  await navigator.clipboard.writeText(text);
@@ -9995,12 +10130,12 @@ function CopyButton({
9995
10130
  setState("failed");
9996
10131
  }
9997
10132
  }
9998
- return /* @__PURE__ */ jsx242(Button, { type: "button", variant, size, onClick: () => void copy(), children: state === "copied" ? copiedLabel : state === "failed" ? failedLabel : label });
10133
+ return /* @__PURE__ */ jsx244(Button, { type: "button", variant, size, onClick: () => void copy(), children: state === "copied" ? copiedLabel : state === "failed" ? failedLabel : label });
9999
10134
  }
10000
10135
 
10001
10136
  // src/components/QrCode/QrCode.tsx
10002
- import styles107 from "./QrCode.module.css";
10003
- import { jsx as jsx243 } from "react/jsx-runtime";
10137
+ import styles109 from "./QrCode.module.css";
10138
+ import { jsx as jsx245 } from "react/jsx-runtime";
10004
10139
  var QUIET_ZONE = 2;
10005
10140
  function QrCode({ modules, label }) {
10006
10141
  const size = modules.length + QUIET_ZONE * 2;
@@ -10010,7 +10145,7 @@ function QrCode({ modules, label }) {
10010
10145
  if (dark) path += `M${x + QUIET_ZONE} ${y + QUIET_ZONE}h1v1h-1z`;
10011
10146
  });
10012
10147
  });
10013
- return /* @__PURE__ */ jsx243("div", { className: styles107.qr, children: /* @__PURE__ */ jsx243(
10148
+ return /* @__PURE__ */ jsx245("div", { className: styles109.qr, children: /* @__PURE__ */ jsx245(
10014
10149
  "svg",
10015
10150
  {
10016
10151
  viewBox: `0 0 ${size} ${size}`,
@@ -10018,7 +10153,7 @@ function QrCode({ modules, label }) {
10018
10153
  "aria-label": label,
10019
10154
  shapeRendering: "crispEdges",
10020
10155
  xmlns: "http://www.w3.org/2000/svg",
10021
- children: /* @__PURE__ */ jsx243("path", { d: path })
10156
+ children: /* @__PURE__ */ jsx245("path", { d: path })
10022
10157
  }
10023
10158
  ) });
10024
10159
  }
@@ -10084,6 +10219,8 @@ export {
10084
10219
  Icon,
10085
10220
  IconPicker,
10086
10221
  Input,
10222
+ InstallHint,
10223
+ InstallPrompt,
10087
10224
  Item,
10088
10225
  Kbd,
10089
10226
  Label,
@@ -10164,13 +10301,16 @@ export {
10164
10301
  Toggle,
10165
10302
  Tooltip,
10166
10303
  Typography,
10304
+ UpdateNotice,
10167
10305
  UserMenu,
10306
+ isInstalledDisplay,
10168
10307
  recoveryKitFileName,
10169
10308
  recoveryKitFileText,
10170
10309
  shouldHandleDndEvent,
10171
10310
  useCarouselRouteSync,
10172
10311
  useCommitOnEnterOrBlur,
10173
10312
  useDoubleTapHandler,
10313
+ useInstallPrompt,
10174
10314
  useIsMobile,
10175
10315
  useIsOffline,
10176
10316
  useLongPress,