@sovereignfs/ui 0.92.0 → 0.98.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
@@ -1,4 +1,8 @@
1
1
  'use client';
2
+ import {
3
+ useMountTransition,
4
+ usePrefersReducedMotion
5
+ } from "./chunk-E24U223W.js";
2
6
 
3
7
  // src/components/LegalLinks/LegalLinks.tsx
4
8
  import styles from "./LegalLinks.module.css";
@@ -4202,39 +4206,9 @@ function TagInput({
4202
4206
  }
4203
4207
 
4204
4208
  // src/components/Dialog/Dialog.tsx
4205
- import { createContext, useContext, useEffect as useEffect5, useRef as useRef6, useState as useState6 } from "react";
4209
+ import { createContext, useContext, useEffect as useEffect4, useRef as useRef6, useState as useState5 } from "react";
4206
4210
  import { createPortal } from "react-dom";
4207
4211
 
4208
- // src/motion.ts
4209
- import { useEffect as useEffect4, useState as useState5 } from "react";
4210
- function useMountTransition(open, durationMs) {
4211
- const [phase, setPhase] = useState5(open ? "entering" : "closed");
4212
- useEffect4(() => {
4213
- if (open) {
4214
- setPhase("entering");
4215
- const raf = requestAnimationFrame(() => setPhase("open"));
4216
- return () => cancelAnimationFrame(raf);
4217
- }
4218
- setPhase((p) => p === "closed" ? "closed" : "closing");
4219
- const timer = setTimeout(() => setPhase("closed"), durationMs);
4220
- return () => clearTimeout(timer);
4221
- }, [open, durationMs]);
4222
- return { mounted: phase !== "closed", phase };
4223
- }
4224
- function usePrefersReducedMotion() {
4225
- const [reduced, setReduced] = useState5(false);
4226
- useEffect4(() => {
4227
- const mql = window.matchMedia("(prefers-reduced-motion: reduce)");
4228
- setReduced(mql.matches);
4229
- function handleChange(e) {
4230
- setReduced(e.matches);
4231
- }
4232
- mql.addEventListener("change", handleChange);
4233
- return () => mql.removeEventListener("change", handleChange);
4234
- }, []);
4235
- return reduced;
4236
- }
4237
-
4238
4212
  // src/components/OverlayHeader/OverlayHeader.tsx
4239
4213
  import styles28 from "./OverlayHeader.module.css";
4240
4214
  import { jsx as jsx150, jsxs as jsxs124 } from "react/jsx-runtime";
@@ -4267,7 +4241,7 @@ var OverlaySecondRowContext = createContext(
4267
4241
  );
4268
4242
  function useOverlaySecondRow(node) {
4269
4243
  const setSecondRow = useContext(OverlaySecondRowContext);
4270
- useEffect5(() => {
4244
+ useEffect4(() => {
4271
4245
  if (!setSecondRow) return;
4272
4246
  setSecondRow(node);
4273
4247
  return () => setSecondRow(null);
@@ -4292,7 +4266,7 @@ function Dialog({
4292
4266
  open,
4293
4267
  reducedMotion ? 0 : OVERLAY_MOTION_DURATION_MS
4294
4268
  );
4295
- const [secondRow, setSecondRow] = useState6(null);
4269
+ const [secondRow, setSecondRow] = useState5(null);
4296
4270
  const portalTarget = useOverlayPortalTarget();
4297
4271
  useOverlayScrollLock(mounted);
4298
4272
  useOverlayFocusCapture(panelRef, mounted && portalTarget !== null);
@@ -4521,7 +4495,7 @@ function Sheet({
4521
4495
  }
4522
4496
 
4523
4497
  // src/components/ConfirmDialog/ConfirmDialog.tsx
4524
- import { useEffect as useEffect6, useRef as useRef9 } from "react";
4498
+ import { useEffect as useEffect5, useRef as useRef9 } from "react";
4525
4499
  import styles32 from "./ConfirmDialog.module.css";
4526
4500
  import { jsx as jsx154, jsxs as jsxs128 } from "react/jsx-runtime";
4527
4501
  function ConfirmDialog({
@@ -4537,18 +4511,18 @@ function ConfirmDialog({
4537
4511
  error
4538
4512
  }) {
4539
4513
  const dialogRef = useRef9(null);
4540
- useEffect6(() => {
4514
+ useEffect5(() => {
4541
4515
  if (!open) return;
4542
4516
  const id = registerOpenOverlay();
4543
4517
  return () => unregisterOpenOverlay(id);
4544
4518
  }, [open]);
4545
- useEffect6(() => {
4519
+ useEffect5(() => {
4546
4520
  const el = dialogRef.current;
4547
4521
  if (!el) return;
4548
4522
  if (open) el.showModal();
4549
4523
  else el.close();
4550
4524
  }, [open]);
4551
- useEffect6(() => {
4525
+ useEffect5(() => {
4552
4526
  const el = dialogRef.current;
4553
4527
  if (!el) return;
4554
4528
  const handleClose = () => onClose();
@@ -4608,13 +4582,13 @@ function ConfirmDialog({
4608
4582
  }
4609
4583
 
4610
4584
  // src/hooks/useLongPress.ts
4611
- import { useCallback as useCallback2, useEffect as useEffect7, useRef as useRef10, useState as useState7 } from "react";
4585
+ import { useCallback as useCallback2, useEffect as useEffect6, useRef as useRef10, useState as useState6 } from "react";
4612
4586
  var DEFAULT_DELAY_MS = 500;
4613
4587
  var DEFAULT_MOVE_TOLERANCE_PX = 10;
4614
4588
  var DEFAULT_SUPPRESS_CLICK_MS = 700;
4615
4589
  function usePrefersCoarsePointer() {
4616
- const [coarse, setCoarse] = useState7(false);
4617
- useEffect7(() => {
4590
+ const [coarse, setCoarse] = useState6(false);
4591
+ useEffect6(() => {
4618
4592
  const mql = window.matchMedia("(pointer: coarse)");
4619
4593
  setCoarse(mql.matches);
4620
4594
  function handleChange(e) {
@@ -4642,7 +4616,7 @@ function useLongPress({
4642
4616
  timerRef.current = null;
4643
4617
  }
4644
4618
  }, []);
4645
- useEffect7(() => clearTimer, [clearTimer]);
4619
+ useEffect6(() => clearTimer, [clearTimer]);
4646
4620
  const onPointerDown = useCallback2(
4647
4621
  (e) => {
4648
4622
  if (disabled || e.pointerType !== "touch") return;
@@ -4745,11 +4719,11 @@ function useSingleOrDoubleTap(onSingle, onDouble) {
4745
4719
  }
4746
4720
 
4747
4721
  // src/hooks/useIsMobile.ts
4748
- import { useEffect as useEffect8, useState as useState8 } from "react";
4722
+ import { useEffect as useEffect7, useState as useState7 } from "react";
4749
4723
  var MOBILE_BREAKPOINT_PX = 768;
4750
4724
  function useIsMobile(breakpointPx = MOBILE_BREAKPOINT_PX) {
4751
- const [isMobile, setIsMobile] = useState8(false);
4752
- useEffect8(() => {
4725
+ const [isMobile, setIsMobile] = useState7(false);
4726
+ useEffect7(() => {
4753
4727
  const mql = window.matchMedia(`(max-width: ${breakpointPx}px)`);
4754
4728
  setIsMobile(mql.matches);
4755
4729
  function handleChange(e) {
@@ -4762,10 +4736,10 @@ function useIsMobile(breakpointPx = MOBILE_BREAKPOINT_PX) {
4762
4736
  }
4763
4737
 
4764
4738
  // src/hooks/useIsOffline.ts
4765
- import { useEffect as useEffect9, useState as useState9 } from "react";
4739
+ import { useEffect as useEffect8, useState as useState8 } from "react";
4766
4740
  function useIsOffline() {
4767
- const [isOffline, setIsOffline] = useState9(false);
4768
- useEffect9(() => {
4741
+ const [isOffline, setIsOffline] = useState8(false);
4742
+ useEffect8(() => {
4769
4743
  setIsOffline(!navigator.onLine);
4770
4744
  const handleOffline = () => setIsOffline(true);
4771
4745
  const handleOnline = () => setIsOffline(false);
@@ -4851,7 +4825,7 @@ function useSwipeReveal({
4851
4825
  }
4852
4826
 
4853
4827
  // src/hooks/useSnapCarousel.ts
4854
- import { useCallback as useCallback3, useEffect as useEffect10, useRef as useRef13, useState as useState10 } from "react";
4828
+ import { useCallback as useCallback3, useEffect as useEffect9, useRef as useRef13, useState as useState9 } from "react";
4855
4829
  function useSnapCarousel({
4856
4830
  itemCount,
4857
4831
  onSettle,
@@ -4862,12 +4836,12 @@ function useSnapCarousel({
4862
4836
  const timerRef = useRef13(null);
4863
4837
  const lastIndexRef = useRef13(null);
4864
4838
  const restoreSnapRef = useRef13(null);
4865
- const [liveIndex, setLiveIndex] = useState10(initialIndex);
4839
+ const [liveIndex, setLiveIndex] = useState9(initialIndex);
4866
4840
  const onSettleRef = useRef13(onSettle);
4867
4841
  onSettleRef.current = onSettle;
4868
4842
  const lastGestureAtRef = useRef13(0);
4869
4843
  const chainTrustedRef = useRef13(false);
4870
- useEffect10(() => {
4844
+ useEffect9(() => {
4871
4845
  const el = scrollRef.current;
4872
4846
  if (!el) return;
4873
4847
  function noteGesture() {
@@ -4971,7 +4945,7 @@ function useResponsiveLayout({
4971
4945
  }
4972
4946
 
4973
4947
  // src/hooks/useCarouselRouteSync.ts
4974
- import { useEffect as useEffect11, useRef as useRef14, useState as useState11 } from "react";
4948
+ import { useEffect as useEffect10, useRef as useRef14, useState as useState10 } from "react";
4975
4949
  function useCarouselRouteSync({
4976
4950
  indexForPathname,
4977
4951
  pathForIndex,
@@ -4984,10 +4958,10 @@ function useCarouselRouteSync({
4984
4958
  pathForIndexRef.current = pathForIndex;
4985
4959
  const onNavigateRef = useRef14(onNavigate);
4986
4960
  onNavigateRef.current = onNavigate;
4987
- const [activeIndex, setActiveIndex] = useState11(() => indexForPathname(pathname));
4961
+ const [activeIndex, setActiveIndex] = useState10(() => indexForPathname(pathname));
4988
4962
  const isInternalNavRef = useRef14(false);
4989
4963
  const didMountRef = useRef14(false);
4990
- useEffect11(() => {
4964
+ useEffect10(() => {
4991
4965
  if (!didMountRef.current) {
4992
4966
  didMountRef.current = true;
4993
4967
  return;
@@ -5121,10 +5095,10 @@ function useSwipeStack({
5121
5095
  function flingOut(direction) {
5122
5096
  const card = cardRef.current;
5123
5097
  if (!card) return;
5124
- const distance = 1.4 * Math.max(window.innerWidth, window.innerHeight);
5098
+ const distance2 = 1.4 * Math.max(window.innerWidth, window.innerHeight);
5125
5099
  const [ux, uy] = UNIT_VECTOR[direction];
5126
5100
  card.style.transition = `transform ${SWIPE_STACK_TRANSITION_MS}ms ease`;
5127
- card.style.transform = `translate(${ux * distance}px, ${uy * distance}px) rotate(${ux * ROTATION_MAX_DEG}deg)`;
5101
+ card.style.transform = `translate(${ux * distance2}px, ${uy * distance2}px) rotate(${ux * ROTATION_MAX_DEG}deg)`;
5128
5102
  }
5129
5103
  function onPointerDown(e) {
5130
5104
  if (disabled) return;
@@ -5159,8 +5133,8 @@ function useSwipeStack({
5159
5133
  );
5160
5134
  const direction = resolveDirection(dx, dy, live);
5161
5135
  writeProgress(null, 0);
5162
- const distance = Math.max(Math.abs(dx), Math.abs(dy));
5163
- if (direction && distance >= threshold) {
5136
+ const distance2 = Math.max(Math.abs(dx), Math.abs(dy));
5137
+ if (direction && distance2 >= threshold) {
5164
5138
  flingOut(direction);
5165
5139
  onCommit(direction);
5166
5140
  } else {
@@ -5269,7 +5243,7 @@ function Menu({
5269
5243
  }
5270
5244
 
5271
5245
  // src/components/UserMenu/UserMenu.tsx
5272
- import { useState as useState12 } from "react";
5246
+ import { useState as useState11 } from "react";
5273
5247
  import styles34 from "./UserMenu.module.css";
5274
5248
  import { jsx as jsx156, jsxs as jsxs130 } from "react/jsx-runtime";
5275
5249
  function initials(value) {
@@ -5287,7 +5261,7 @@ function UserMenu({
5287
5261
  align = "right",
5288
5262
  size = "md"
5289
5263
  }) {
5290
- const [open, setOpen] = useState12(false);
5264
+ const [open, setOpen] = useState11(false);
5291
5265
  const displayName = name || email || "";
5292
5266
  return /* @__PURE__ */ jsxs130(
5293
5267
  Popover,
@@ -5336,7 +5310,7 @@ function UserMenu({
5336
5310
  }
5337
5311
 
5338
5312
  // src/components/AppsLauncher/AppsLauncher.tsx
5339
- import { useState as useState13 } from "react";
5313
+ import { useState as useState12 } from "react";
5340
5314
 
5341
5315
  // src/components/Spinner/Spinner.tsx
5342
5316
  import styles35 from "./Spinner.module.css";
@@ -5379,7 +5353,7 @@ function AppsLauncher({
5379
5353
  "aria-label": ariaLabel = "Apps",
5380
5354
  align = "right"
5381
5355
  }) {
5382
- const [open, setOpen] = useState13(false);
5356
+ const [open, setOpen] = useState12(false);
5383
5357
  return /* @__PURE__ */ jsxs131(
5384
5358
  Popover,
5385
5359
  {
@@ -5409,7 +5383,7 @@ function AppsLauncher({
5409
5383
  }
5410
5384
 
5411
5385
  // src/components/NotificationsPanel/NotificationsPanel.tsx
5412
- import { useState as useState14 } from "react";
5386
+ import { useState as useState13 } from "react";
5413
5387
  import styles37 from "./NotificationsPanel.module.css";
5414
5388
  import { Fragment as Fragment5, jsx as jsx159, jsxs as jsxs132 } from "react/jsx-runtime";
5415
5389
  function NotificationRow({ item }) {
@@ -5454,7 +5428,7 @@ function NotificationsPanel({
5454
5428
  align = "right",
5455
5429
  viewAllHref
5456
5430
  }) {
5457
- const [open, setOpen] = useState14(false);
5431
+ const [open, setOpen] = useState13(false);
5458
5432
  return /* @__PURE__ */ jsxs132(
5459
5433
  Popover,
5460
5434
  {
@@ -5513,11 +5487,11 @@ import {
5513
5487
  createContext as createContext2,
5514
5488
  useCallback as useCallback4,
5515
5489
  useContext as useContext2,
5516
- useEffect as useEffect12,
5490
+ useEffect as useEffect11,
5517
5491
  useId as useId3,
5518
5492
  useMemo as useMemo2,
5519
5493
  useRef as useRef16,
5520
- useState as useState15
5494
+ useState as useState14
5521
5495
  } from "react";
5522
5496
  import styles38 from "./Toast.module.css";
5523
5497
  import { jsx as jsx160, jsxs as jsxs133 } from "react/jsx-runtime";
@@ -5528,7 +5502,7 @@ function useToast() {
5528
5502
  return ctx;
5529
5503
  }
5530
5504
  function ToastProvider({ children }) {
5531
- const [toasts, setToasts] = useState15([]);
5505
+ const [toasts, setToasts] = useState14([]);
5532
5506
  const timers = useRef16(/* @__PURE__ */ new Map());
5533
5507
  const seedId = useId3();
5534
5508
  const counter = useRef16(0);
@@ -5551,7 +5525,7 @@ function ToastProvider({ children }) {
5551
5525
  },
5552
5526
  [seedId, dismiss]
5553
5527
  );
5554
- useEffect12(() => {
5528
+ useEffect11(() => {
5555
5529
  const currentTimers = timers.current;
5556
5530
  return () => {
5557
5531
  currentTimers.forEach((t) => clearTimeout(t));
@@ -5616,9 +5590,34 @@ function Toast({
5616
5590
  );
5617
5591
  }
5618
5592
 
5593
+ // src/components/AppTile/AppTile.tsx
5594
+ import styles39 from "./AppTile.module.css";
5595
+ import { Fragment as Fragment6, jsx as jsx161, jsxs as jsxs134 } from "react/jsx-runtime";
5596
+ function AppTile({
5597
+ icon,
5598
+ name,
5599
+ description,
5600
+ tags,
5601
+ href,
5602
+ variant = "solid",
5603
+ className
5604
+ }) {
5605
+ const classes = [styles39.tile, variant === "ghost" && styles39.ghost, href && styles39.link, className].filter(Boolean).join(" ");
5606
+ const content = /* @__PURE__ */ jsxs134(Fragment6, { children: [
5607
+ /* @__PURE__ */ jsx161("span", { className: styles39.icon, "aria-hidden": "true", children: icon }),
5608
+ /* @__PURE__ */ jsx161("span", { className: styles39.name, children: name }),
5609
+ description ? /* @__PURE__ */ jsx161("span", { className: styles39.description, children: description }) : /* @__PURE__ */ jsx161("span", { className: styles39.fill }),
5610
+ tags ? /* @__PURE__ */ jsxs134(Fragment6, { children: [
5611
+ /* @__PURE__ */ jsx161("span", { className: styles39.separator, "aria-hidden": "true" }),
5612
+ /* @__PURE__ */ jsx161("span", { className: styles39.tags, children: tags })
5613
+ ] }) : null
5614
+ ] });
5615
+ return href ? /* @__PURE__ */ jsx161("a", { className: classes, href, children: content }) : /* @__PURE__ */ jsx161("div", { className: classes, children: content });
5616
+ }
5617
+
5619
5618
  // src/components/CardTile/CardTile.tsx
5620
- import styles39 from "./CardTile.module.css";
5621
- import { jsx as jsx161, jsxs as jsxs134 } from "react/jsx-runtime";
5619
+ import styles40 from "./CardTile.module.css";
5620
+ import { jsx as jsx162, jsxs as jsxs135 } from "react/jsx-runtime";
5622
5621
  function CardTileGrid({
5623
5622
  children,
5624
5623
  minTileWidth = 200,
@@ -5626,10 +5625,10 @@ function CardTileGrid({
5626
5625
  dense = false
5627
5626
  }) {
5628
5627
  const style = { "--sv-card-tile-min-width": `${minTileWidth}px` };
5629
- return /* @__PURE__ */ jsx161(
5628
+ return /* @__PURE__ */ jsx162(
5630
5629
  "div",
5631
5630
  {
5632
- className: [styles39.grid, dense && styles39.gridDense, className].filter(Boolean).join(" "),
5631
+ className: [styles40.grid, dense && styles40.gridDense, className].filter(Boolean).join(" "),
5633
5632
  style,
5634
5633
  children
5635
5634
  }
@@ -5644,22 +5643,22 @@ function CardTile({
5644
5643
  ...rest
5645
5644
  }) {
5646
5645
  const isIcon = variant === "icon";
5647
- return /* @__PURE__ */ jsxs134(
5646
+ return /* @__PURE__ */ jsxs135(
5648
5647
  "div",
5649
5648
  {
5650
- className: [styles39.tile, isIcon && styles39.tileIcon, className].filter(Boolean).join(" "),
5649
+ className: [styles40.tile, isIcon && styles40.tileIcon, className].filter(Boolean).join(" "),
5651
5650
  ...rest,
5652
5651
  children: [
5653
- /* @__PURE__ */ jsx161(
5652
+ /* @__PURE__ */ jsx162(
5654
5653
  "div",
5655
5654
  {
5656
- className: styles39.banner,
5655
+ className: styles40.banner,
5657
5656
  "aria-hidden": "true",
5658
5657
  style: !isIcon && bannerColor ? { backgroundColor: bannerColor } : void 0,
5659
5658
  children: banner
5660
5659
  }
5661
5660
  ),
5662
- /* @__PURE__ */ jsx161("div", { className: styles39.footer, children })
5661
+ /* @__PURE__ */ jsx162("div", { className: styles40.footer, children })
5663
5662
  ]
5664
5663
  }
5665
5664
  );
@@ -5673,15 +5672,15 @@ function NewCardTile({
5673
5672
  ...rest
5674
5673
  }) {
5675
5674
  const isIcon = variant === "icon";
5676
- return /* @__PURE__ */ jsxs134(
5675
+ return /* @__PURE__ */ jsxs135(
5677
5676
  "button",
5678
5677
  {
5679
5678
  type,
5680
- className: [styles39.newTile, isIcon && styles39.newTileIcon, className].filter(Boolean).join(" "),
5679
+ className: [styles40.newTile, isIcon && styles40.newTileIcon, className].filter(Boolean).join(" "),
5681
5680
  ...rest,
5682
5681
  "aria-label": isIcon ? label : void 0,
5683
5682
  children: [
5684
- /* @__PURE__ */ jsx161(Icon, { name: icon, size: isIcon ? "md" : "sm", "aria-hidden": true }),
5683
+ /* @__PURE__ */ jsx162(Icon, { name: icon, size: isIcon ? "md" : "sm", "aria-hidden": true }),
5685
5684
  !isIcon && label
5686
5685
  ]
5687
5686
  }
@@ -5690,8 +5689,8 @@ function NewCardTile({
5690
5689
 
5691
5690
  // src/components/FormField/FormField.tsx
5692
5691
  import { useId as useId4 } from "react";
5693
- import styles40 from "./FormField.module.css";
5694
- import { jsx as jsx162, jsxs as jsxs135 } from "react/jsx-runtime";
5692
+ import styles41 from "./FormField.module.css";
5693
+ import { jsx as jsx163, jsxs as jsxs136 } from "react/jsx-runtime";
5695
5694
  function FormField({
5696
5695
  label,
5697
5696
  hint,
@@ -5712,27 +5711,27 @@ function FormField({
5712
5711
  "aria-invalid": error ? true : void 0,
5713
5712
  required: required || void 0
5714
5713
  };
5715
- return /* @__PURE__ */ jsxs135("div", { className: [styles40.field, className].filter(Boolean).join(" "), children: [
5716
- /* @__PURE__ */ jsxs135("label", { className: styles40.label, htmlFor: fieldId, children: [
5714
+ return /* @__PURE__ */ jsxs136("div", { className: [styles41.field, className].filter(Boolean).join(" "), children: [
5715
+ /* @__PURE__ */ jsxs136("label", { className: styles41.label, htmlFor: fieldId, children: [
5717
5716
  label,
5718
- required && /* @__PURE__ */ jsx162("span", { className: styles40.required, "aria-hidden": "true", children: "*" })
5717
+ required && /* @__PURE__ */ jsx163("span", { className: styles41.required, "aria-hidden": "true", children: "*" })
5719
5718
  ] }),
5720
5719
  children(field),
5721
- hint && !error && /* @__PURE__ */ jsx162("p", { id: hintId, className: styles40.hint, children: hint }),
5722
- error && /* @__PURE__ */ jsx162("p", { id: errorId, className: styles40.error, role: "alert", children: error })
5720
+ hint && !error && /* @__PURE__ */ jsx163("p", { id: hintId, className: styles41.hint, children: hint }),
5721
+ error && /* @__PURE__ */ jsx163("p", { id: errorId, className: styles41.error, role: "alert", children: error })
5723
5722
  ] });
5724
5723
  }
5725
5724
 
5726
5725
  // src/components/ResponsiveSurface/ResponsiveSurface.tsx
5727
- import { Fragment as Fragment6, jsx as jsx163 } from "react/jsx-runtime";
5726
+ import { Fragment as Fragment7, jsx as jsx164 } from "react/jsx-runtime";
5728
5727
  function ResponsiveSurface({ web, mobile, breakpointPx }) {
5729
5728
  const { value } = useResponsiveLayout({ web, mobile, breakpointPx });
5730
- return /* @__PURE__ */ jsx163(Fragment6, { children: value });
5729
+ return /* @__PURE__ */ jsx164(Fragment7, { children: value });
5731
5730
  }
5732
5731
 
5733
5732
  // src/components/PageHeader/PageHeader.tsx
5734
- import styles41 from "./PageHeader.module.css";
5735
- import { jsx as jsx164, jsxs as jsxs136 } from "react/jsx-runtime";
5733
+ import styles42 from "./PageHeader.module.css";
5734
+ import { jsx as jsx165, jsxs as jsxs137 } from "react/jsx-runtime";
5736
5735
  var HEADING_TAG = { 1: "h1", 2: "h2", 3: "h3" };
5737
5736
  function PageHeaderWeb({
5738
5737
  title,
@@ -5743,15 +5742,15 @@ function PageHeaderWeb({
5743
5742
  className
5744
5743
  }) {
5745
5744
  const Heading = HEADING_TAG[headingLevel];
5746
- return /* @__PURE__ */ jsxs136("header", { className: [styles41.header, className].filter(Boolean).join(" "), children: [
5747
- /* @__PURE__ */ jsxs136("div", { className: styles41.text, children: [
5748
- /* @__PURE__ */ jsxs136("div", { className: styles41.titleRow, children: [
5749
- icon && /* @__PURE__ */ jsx164(Icon, { name: icon, size: "lg", "aria-hidden": true }),
5750
- /* @__PURE__ */ jsx164(Heading, { className: styles41.title, children: title })
5745
+ return /* @__PURE__ */ jsxs137("header", { className: [styles42.header, className].filter(Boolean).join(" "), children: [
5746
+ /* @__PURE__ */ jsxs137("div", { className: styles42.text, children: [
5747
+ /* @__PURE__ */ jsxs137("div", { className: styles42.titleRow, children: [
5748
+ icon && /* @__PURE__ */ jsx165(Icon, { name: icon, size: "lg", "aria-hidden": true }),
5749
+ /* @__PURE__ */ jsx165(Heading, { className: styles42.title, children: title })
5751
5750
  ] }),
5752
- description && /* @__PURE__ */ jsx164("p", { className: styles41.description, children: description })
5751
+ description && /* @__PURE__ */ jsx165("p", { className: styles42.description, children: description })
5753
5752
  ] }),
5754
- action && /* @__PURE__ */ jsx164("div", { className: styles41.action, children: action })
5753
+ action && /* @__PURE__ */ jsx165("div", { className: styles42.action, children: action })
5755
5754
  ] });
5756
5755
  }
5757
5756
  function PageHeaderMobile({
@@ -5764,30 +5763,30 @@ function PageHeaderMobile({
5764
5763
  className
5765
5764
  }) {
5766
5765
  const Heading = HEADING_TAG[headingLevel];
5767
- return /* @__PURE__ */ jsxs136("header", { className: [styles41.mobileHeader, className].filter(Boolean).join(" "), children: [
5768
- onBack && /* @__PURE__ */ jsx164(
5766
+ return /* @__PURE__ */ jsxs137("header", { className: [styles42.mobileHeader, className].filter(Boolean).join(" "), children: [
5767
+ onBack && /* @__PURE__ */ jsx165(
5769
5768
  Button,
5770
5769
  {
5771
5770
  variant: "ghost",
5772
5771
  size: "sm",
5773
5772
  "aria-label": "Back",
5774
5773
  onClick: onBack,
5775
- className: styles41.mobileBack,
5776
- children: /* @__PURE__ */ jsx164(Icon, { name: "circle-chevron-left", size: "md", "aria-hidden": true })
5774
+ className: styles42.mobileBack,
5775
+ children: /* @__PURE__ */ jsx165(Icon, { name: "circle-chevron-left", size: "md", "aria-hidden": true })
5777
5776
  }
5778
5777
  ),
5779
- icon && /* @__PURE__ */ jsx164(Icon, { name: icon, size: "md", "aria-hidden": true, className: styles41.mobileTitleIcon }),
5780
- /* @__PURE__ */ jsx164(Heading, { className: styles41.mobileTitle, children: title }),
5781
- action && /* @__PURE__ */ jsx164("div", { className: styles41.mobileAction, children: action }),
5782
- onMenuClick && /* @__PURE__ */ jsx164(
5778
+ icon && /* @__PURE__ */ jsx165(Icon, { name: icon, size: "md", "aria-hidden": true, className: styles42.mobileTitleIcon }),
5779
+ /* @__PURE__ */ jsx165(Heading, { className: styles42.mobileTitle, children: title }),
5780
+ action && /* @__PURE__ */ jsx165("div", { className: styles42.mobileAction, children: action }),
5781
+ onMenuClick && /* @__PURE__ */ jsx165(
5783
5782
  Button,
5784
5783
  {
5785
5784
  variant: "ghost",
5786
5785
  size: "sm",
5787
5786
  "aria-label": "Menu",
5788
5787
  onClick: onMenuClick,
5789
- className: styles41.mobileMenu,
5790
- children: /* @__PURE__ */ jsx164(Icon, { name: "ellipsis-vertical", size: "md", "aria-hidden": true })
5788
+ className: styles42.mobileMenu,
5789
+ children: /* @__PURE__ */ jsx165(Icon, { name: "ellipsis-vertical", size: "md", "aria-hidden": true })
5791
5790
  }
5792
5791
  )
5793
5792
  ] });
@@ -5802,10 +5801,10 @@ function PageHeader({
5802
5801
  onBack,
5803
5802
  onMenuClick
5804
5803
  }) {
5805
- return /* @__PURE__ */ jsx164(
5804
+ return /* @__PURE__ */ jsx165(
5806
5805
  ResponsiveSurface,
5807
5806
  {
5808
- web: /* @__PURE__ */ jsx164(
5807
+ web: /* @__PURE__ */ jsx165(
5809
5808
  PageHeaderWeb,
5810
5809
  {
5811
5810
  title,
@@ -5816,7 +5815,7 @@ function PageHeader({
5816
5815
  className
5817
5816
  }
5818
5817
  ),
5819
- mobile: /* @__PURE__ */ jsx164(
5818
+ mobile: /* @__PURE__ */ jsx165(
5820
5819
  PageHeaderMobile,
5821
5820
  {
5822
5821
  title,
@@ -5833,19 +5832,19 @@ function PageHeader({
5833
5832
  }
5834
5833
 
5835
5834
  // src/components/PageContainer/PageContainer.tsx
5836
- import styles42 from "./PageContainer.module.css";
5837
- import { jsx as jsx165 } from "react/jsx-runtime";
5835
+ import styles43 from "./PageContainer.module.css";
5836
+ import { jsx as jsx166 } from "react/jsx-runtime";
5838
5837
  var maxWidthClass = {
5839
- sm: styles42.sm,
5840
- md: styles42.md,
5841
- lg: styles42.lg,
5842
- full: styles42.full
5838
+ sm: styles43.sm,
5839
+ md: styles43.md,
5840
+ lg: styles43.lg,
5841
+ full: styles43.full
5843
5842
  };
5844
5843
  var paddingClass2 = {
5845
- none: styles42.padNone,
5846
- sm: styles42.padSm,
5847
- md: styles42.padMd,
5848
- lg: styles42.padLg
5844
+ none: styles43.padNone,
5845
+ sm: styles43.padSm,
5846
+ md: styles43.padMd,
5847
+ lg: styles43.padLg
5849
5848
  };
5850
5849
  function PageContainer({
5851
5850
  maxWidth = "full",
@@ -5854,13 +5853,13 @@ function PageContainer({
5854
5853
  children,
5855
5854
  ...rest
5856
5855
  }) {
5857
- const cls = [styles42.container, maxWidthClass[maxWidth], paddingClass2[padding], className].filter(Boolean).join(" ");
5858
- return /* @__PURE__ */ jsx165("div", { className: cls, ...rest, children });
5856
+ const cls = [styles43.container, maxWidthClass[maxWidth], paddingClass2[padding], className].filter(Boolean).join(" ");
5857
+ return /* @__PURE__ */ jsx166("div", { className: cls, ...rest, children });
5859
5858
  }
5860
5859
 
5861
5860
  // src/components/Header/Header.tsx
5862
- import styles43 from "./Header.module.css";
5863
- import { jsx as jsx166, jsxs as jsxs137 } from "react/jsx-runtime";
5861
+ import styles44 from "./Header.module.css";
5862
+ import { jsx as jsx167, jsxs as jsxs138 } from "react/jsx-runtime";
5864
5863
  function Header({
5865
5864
  instanceName,
5866
5865
  instanceLogoUrl,
@@ -5874,20 +5873,20 @@ function Header({
5874
5873
  ...rest
5875
5874
  }) {
5876
5875
  const brandInitial = instanceName.charAt(0).toUpperCase() || "S";
5877
- const cls = [styles43.header, className].filter(Boolean).join(" ");
5878
- return /* @__PURE__ */ jsxs137("header", { className: cls, ...rest, children: [
5879
- /* @__PURE__ */ jsxs137("div", { className: styles43.left, children: [
5876
+ const cls = [styles44.header, className].filter(Boolean).join(" ");
5877
+ return /* @__PURE__ */ jsxs138("header", { className: cls, ...rest, children: [
5878
+ /* @__PURE__ */ jsxs138("div", { className: styles44.left, children: [
5880
5879
  leading,
5881
- /* @__PURE__ */ jsx166("a", { href: homeHref, className: styles43.brandBadge, "aria-label": `${instanceName} home`, children: instanceLogoUrl ? /* @__PURE__ */ jsx166("img", { src: instanceLogoUrl, alt: "", className: styles43.brandLogoImg }) : brandInitial }),
5882
- plugin && (plugin.href ? /* @__PURE__ */ jsxs137("a", { href: plugin.href, className: styles43.plugin, children: [
5880
+ /* @__PURE__ */ jsx167("a", { href: homeHref, className: styles44.brandBadge, "aria-label": `${instanceName} home`, children: instanceLogoUrl ? /* @__PURE__ */ jsx167("img", { src: instanceLogoUrl, alt: "", className: styles44.brandLogoImg }) : brandInitial }),
5881
+ plugin && (plugin.href ? /* @__PURE__ */ jsxs138("a", { href: plugin.href, className: styles44.plugin, children: [
5883
5882
  plugin.icon,
5884
- /* @__PURE__ */ jsx166("span", { className: styles43.pluginName, children: plugin.name })
5885
- ] }) : /* @__PURE__ */ jsxs137("span", { className: styles43.plugin, children: [
5883
+ /* @__PURE__ */ jsx167("span", { className: styles44.pluginName, children: plugin.name })
5884
+ ] }) : /* @__PURE__ */ jsxs138("span", { className: styles44.plugin, children: [
5886
5885
  plugin.icon,
5887
- /* @__PURE__ */ jsx166("span", { className: styles43.pluginName, children: plugin.name })
5886
+ /* @__PURE__ */ jsx167("span", { className: styles44.pluginName, children: plugin.name })
5888
5887
  ] }))
5889
5888
  ] }),
5890
- /* @__PURE__ */ jsxs137("div", { className: styles43.right, children: [
5889
+ /* @__PURE__ */ jsxs138("div", { className: styles44.right, children: [
5891
5890
  launcher,
5892
5891
  notifications,
5893
5892
  avatarMenu
@@ -5926,10 +5925,10 @@ function usePublishShellChromeHeight(ref, cssVariable) {
5926
5925
  }
5927
5926
 
5928
5927
  // src/components/MobileHeader/MobileHeader.tsx
5929
- import styles44 from "./MobileHeader.module.css";
5930
- import { jsx as jsx167, jsxs as jsxs138 } from "react/jsx-runtime";
5928
+ import styles45 from "./MobileHeader.module.css";
5929
+ import { jsx as jsx168, jsxs as jsxs139 } from "react/jsx-runtime";
5931
5930
  function DefaultLogo() {
5932
- return /* @__PURE__ */ jsx167("span", { className: styles44.defaultLogo, "aria-hidden": "true", children: "S" });
5931
+ return /* @__PURE__ */ jsx168("span", { className: styles45.defaultLogo, "aria-hidden": "true", children: "S" });
5933
5932
  }
5934
5933
  function MobileHeader({
5935
5934
  logo,
@@ -5941,13 +5940,13 @@ function MobileHeader({
5941
5940
  }) {
5942
5941
  const headerRef = useRef17(null);
5943
5942
  usePublishShellChromeHeight(headerRef, "--sv-shell-header-height");
5944
- const cls = [styles44.header, className].filter(Boolean).join(" ");
5945
- return /* @__PURE__ */ jsxs138("div", { className: cls, ...rest, ref: headerRef, children: [
5946
- /* @__PURE__ */ jsxs138("div", { className: styles44.brandGroup, children: [
5947
- logo ?? /* @__PURE__ */ jsx167(DefaultLogo, {}),
5948
- title && /* @__PURE__ */ jsx167("span", { className: styles44.title, children: title })
5943
+ const cls = [styles45.header, className].filter(Boolean).join(" ");
5944
+ return /* @__PURE__ */ jsxs139("div", { className: cls, ...rest, ref: headerRef, children: [
5945
+ /* @__PURE__ */ jsxs139("div", { className: styles45.brandGroup, children: [
5946
+ logo ?? /* @__PURE__ */ jsx168(DefaultLogo, {}),
5947
+ title && /* @__PURE__ */ jsx168("span", { className: styles45.title, children: title })
5949
5948
  ] }),
5950
- /* @__PURE__ */ jsxs138("div", { className: styles44.right, children: [
5949
+ /* @__PURE__ */ jsxs139("div", { className: styles45.right, children: [
5951
5950
  bell,
5952
5951
  avatarMenu
5953
5952
  ] })
@@ -5956,12 +5955,12 @@ function MobileHeader({
5956
5955
 
5957
5956
  // src/components/MobileFooter/MobileFooter.tsx
5958
5957
  import { useRef as useRef18 } from "react";
5959
- import styles45 from "./MobileFooter.module.css";
5960
- import { jsx as jsx168, jsxs as jsxs139 } from "react/jsx-runtime";
5958
+ import styles46 from "./MobileFooter.module.css";
5959
+ import { jsx as jsx169, jsxs as jsxs140 } from "react/jsx-runtime";
5961
5960
  function FooterNavItem({ icon, label, href, onClick, active }) {
5962
- const className = [styles45.navItem, active ? styles45.navItemActive : ""].filter(Boolean).join(" ");
5961
+ const className = [styles46.navItem, active ? styles46.navItemActive : ""].filter(Boolean).join(" ");
5963
5962
  if (href) {
5964
- return /* @__PURE__ */ jsx168(
5963
+ return /* @__PURE__ */ jsx169(
5965
5964
  "a",
5966
5965
  {
5967
5966
  href,
@@ -5972,7 +5971,7 @@ function FooterNavItem({ icon, label, href, onClick, active }) {
5972
5971
  }
5973
5972
  );
5974
5973
  }
5975
- return /* @__PURE__ */ jsx168("button", { type: "button", className, "aria-label": label, onClick, children: icon });
5974
+ return /* @__PURE__ */ jsx169("button", { type: "button", className, "aria-label": label, onClick, children: icon });
5976
5975
  }
5977
5976
  function MobileFooter({
5978
5977
  onOpenApps,
@@ -5990,15 +5989,15 @@ function MobileFooter({
5990
5989
  }
5991
5990
  const navRef = useRef18(null);
5992
5991
  usePublishShellChromeHeight(navRef, "--sv-shell-footer-height");
5993
- const cls = [styles45.footer, className].filter(Boolean).join(" ");
5992
+ const cls = [styles46.footer, className].filter(Boolean).join(" ");
5994
5993
  const launcherClassName = [
5995
- styles45.navItem,
5996
- styles45.navItemApps,
5997
- launcherOpen ? styles45.navItemAppsOpen : ""
5994
+ styles46.navItem,
5995
+ styles46.navItemApps,
5996
+ launcherOpen ? styles46.navItemAppsOpen : ""
5998
5997
  ].filter(Boolean).join(" ");
5999
- return /* @__PURE__ */ jsxs139("nav", { ...rest, ref: navRef, className: cls, "aria-label": "App navigation", children: [
6000
- leftIcons.map((item) => /* @__PURE__ */ jsx168(FooterNavItem, { ...item }, item.label)),
6001
- /* @__PURE__ */ jsx168(
5998
+ return /* @__PURE__ */ jsxs140("nav", { ...rest, ref: navRef, className: cls, "aria-label": "App navigation", children: [
5999
+ leftIcons.map((item) => /* @__PURE__ */ jsx169(FooterNavItem, { ...item }, item.label)),
6000
+ /* @__PURE__ */ jsx169(
6002
6001
  "button",
6003
6002
  {
6004
6003
  type: "button",
@@ -6007,49 +6006,228 @@ function MobileFooter({
6007
6006
  "aria-expanded": launcherOpen,
6008
6007
  "aria-haspopup": "dialog",
6009
6008
  onClick: onOpenApps,
6010
- children: launcherIcon ?? /* @__PURE__ */ jsx168(Icon, { name: "grid-2x2", size: "md", "aria-hidden": true })
6009
+ children: launcherIcon ?? /* @__PURE__ */ jsx169(Icon, { name: "grid-2x2", size: "md", "aria-hidden": true })
6011
6010
  }
6012
6011
  ),
6013
- rightIcons.map((item) => /* @__PURE__ */ jsx168(FooterNavItem, { ...item }, item.label))
6012
+ rightIcons.map((item) => /* @__PURE__ */ jsx169(FooterNavItem, { ...item }, item.label))
6014
6013
  ] });
6015
6014
  }
6016
6015
 
6017
6016
  // src/components/MobileAppsDrawer/MobileAppsDrawer.tsx
6018
- import styles46 from "./MobileAppsDrawer.module.css";
6019
- import { Fragment as Fragment7, jsx as jsx169, jsxs as jsxs140 } from "react/jsx-runtime";
6017
+ import styles47 from "./MobileAppsDrawer.module.css";
6018
+ import { Fragment as Fragment8, jsx as jsx170, jsxs as jsxs141 } from "react/jsx-runtime";
6020
6019
  function DrawerGridTile({ icon, label, href, onClick }) {
6021
- const content = /* @__PURE__ */ jsxs140(Fragment7, { children: [
6022
- /* @__PURE__ */ jsx169("span", { className: styles46.gridIcon, "aria-hidden": "true", children: icon }),
6023
- /* @__PURE__ */ jsx169("span", { className: styles46.gridName, children: label })
6020
+ const content = /* @__PURE__ */ jsxs141(Fragment8, { children: [
6021
+ /* @__PURE__ */ jsx170("span", { className: styles47.gridIcon, "aria-hidden": "true", children: icon }),
6022
+ /* @__PURE__ */ jsx170("span", { className: styles47.gridName, children: label })
6024
6023
  ] });
6025
6024
  if (href) {
6026
- return /* @__PURE__ */ jsx169("a", { href, className: styles46.gridItem, onClick, children: content });
6025
+ return /* @__PURE__ */ jsx170("a", { href, className: styles47.gridItem, onClick, children: content });
6027
6026
  }
6028
- return /* @__PURE__ */ jsx169("button", { type: "button", className: styles46.gridItem, onClick, children: content });
6027
+ return /* @__PURE__ */ jsx170("button", { type: "button", className: styles47.gridItem, onClick, children: content });
6029
6028
  }
6030
6029
  function MobileAppsDrawer({ open, onClose, items, ...rest }) {
6031
6030
  const ariaLabel = rest["aria-label"];
6032
- return /* @__PURE__ */ jsx169(Drawer, { open, onClose, "aria-label": ariaLabel, children: /* @__PURE__ */ jsx169("nav", { "aria-label": ariaLabel, children: /* @__PURE__ */ jsx169("ul", { className: styles46.grid, children: items.map(({ key, ...item }) => /* @__PURE__ */ jsx169("li", { children: /* @__PURE__ */ jsx169(DrawerGridTile, { ...item }, key) }, key)) }) }) });
6031
+ return /* @__PURE__ */ jsx170(Drawer, { open, onClose, "aria-label": ariaLabel, children: /* @__PURE__ */ jsx170("nav", { "aria-label": ariaLabel, children: /* @__PURE__ */ jsx170("ul", { className: styles47.grid, children: items.map(({ key, ...item }) => /* @__PURE__ */ jsx170("li", { children: /* @__PURE__ */ jsx170(DrawerGridTile, { ...item }, key) }, key)) }) }) });
6033
6032
  }
6034
6033
 
6035
6034
  // src/components/EmptyState/EmptyState.tsx
6036
- import styles47 from "./EmptyState.module.css";
6037
- import { jsx as jsx170, jsxs as jsxs141 } from "react/jsx-runtime";
6035
+ import styles48 from "./EmptyState.module.css";
6036
+ import { jsx as jsx171, jsxs as jsxs142 } from "react/jsx-runtime";
6038
6037
  function EmptyState({ icon, heading, description, action, className }) {
6039
- return /* @__PURE__ */ jsxs141("div", { className: [styles47.root, className].filter(Boolean).join(" "), children: [
6040
- icon && /* @__PURE__ */ jsx170("span", { className: styles47.icon, children: /* @__PURE__ */ jsx170(Icon, { name: icon, size: "lg", "aria-hidden": true }) }),
6041
- /* @__PURE__ */ jsx170("h2", { className: styles47.heading, children: heading }),
6042
- description && /* @__PURE__ */ jsx170("p", { className: styles47.description, children: description }),
6038
+ return /* @__PURE__ */ jsxs142("div", { className: [styles48.root, className].filter(Boolean).join(" "), children: [
6039
+ icon && /* @__PURE__ */ jsx171("span", { className: styles48.icon, children: /* @__PURE__ */ jsx171(Icon, { name: icon, size: "lg", "aria-hidden": true }) }),
6040
+ /* @__PURE__ */ jsx171("h2", { className: styles48.heading, children: heading }),
6041
+ description && /* @__PURE__ */ jsx171("p", { className: styles48.description, children: description }),
6043
6042
  action
6044
6043
  ] });
6045
6044
  }
6046
6045
 
6046
+ // src/components/LockedState/LockedState.tsx
6047
+ import { jsx as jsx172 } from "react/jsx-runtime";
6048
+ function LockedState({ reason, appName, sharedBy, action, className }) {
6049
+ if (reason === "removed") {
6050
+ return /* @__PURE__ */ jsx172(
6051
+ EmptyState,
6052
+ {
6053
+ icon: "user-x",
6054
+ heading: "You no longer have access",
6055
+ description: sharedBy ? `${sharedBy} stopped sharing this with you. Ask them if you still need it.` : "This is no longer shared with you. Ask the person who shared it if you still need it.",
6056
+ action,
6057
+ className
6058
+ }
6059
+ );
6060
+ }
6061
+ return /* @__PURE__ */ jsx172(
6062
+ EmptyState,
6063
+ {
6064
+ icon: "lock",
6065
+ heading: "Unlock to see this",
6066
+ description: `${appName} keeps this encrypted, so only you and the people you share it with can read it. Unlock with your password or a passkey to open it on this browser.`,
6067
+ action,
6068
+ className
6069
+ }
6070
+ );
6071
+ }
6072
+
6073
+ // src/components/RecoveryKit/RecoveryKit.tsx
6074
+ import { useState as useState15 } from "react";
6075
+
6076
+ // src/components/Checkbox/Checkbox.tsx
6077
+ import styles49 from "./Checkbox.module.css";
6078
+ import { jsx as jsx173, jsxs as jsxs143 } from "react/jsx-runtime";
6079
+ function Checkbox({
6080
+ checked,
6081
+ onChange,
6082
+ label,
6083
+ strikeThrough = false,
6084
+ disabled,
6085
+ className,
6086
+ id,
6087
+ ...rest
6088
+ }) {
6089
+ const inputId = id ?? `checkbox-${label.toLowerCase().replace(/\s+/g, "-")}`;
6090
+ return /* @__PURE__ */ jsxs143("span", { className: [styles49.root, className].filter(Boolean).join(" "), children: [
6091
+ /* @__PURE__ */ jsxs143("span", { className: [styles49.box, checked ? styles49.checked : ""].filter(Boolean).join(" "), children: [
6092
+ /* @__PURE__ */ jsx173(
6093
+ "input",
6094
+ {
6095
+ ...rest,
6096
+ id: inputId,
6097
+ type: "checkbox",
6098
+ checked,
6099
+ disabled,
6100
+ className: styles49.input,
6101
+ onChange: (e) => onChange(e.target.checked)
6102
+ }
6103
+ ),
6104
+ checked && /* @__PURE__ */ jsx173("svg", { className: styles49.tick, viewBox: "0 0 10 8", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ jsx173(
6105
+ "path",
6106
+ {
6107
+ d: "M1 4l3 3 5-6",
6108
+ stroke: "currentColor",
6109
+ strokeWidth: "1.5",
6110
+ strokeLinecap: "round",
6111
+ strokeLinejoin: "round"
6112
+ }
6113
+ ) })
6114
+ ] }),
6115
+ label && /* @__PURE__ */ jsx173(
6116
+ "label",
6117
+ {
6118
+ htmlFor: inputId,
6119
+ className: [
6120
+ styles49.label,
6121
+ strikeThrough && checked ? styles49.struck : "",
6122
+ disabled ? styles49.disabled : ""
6123
+ ].filter(Boolean).join(" "),
6124
+ children: label
6125
+ }
6126
+ )
6127
+ ] });
6128
+ }
6129
+
6130
+ // src/components/RecoveryKit/RecoveryKit.tsx
6131
+ import styles50 from "./RecoveryKit.module.css";
6132
+ import { jsx as jsx174, jsxs as jsxs144 } from "react/jsx-runtime";
6133
+ function recoveryKitFileName(instanceName) {
6134
+ const slug = instanceName.toLowerCase().split(/[^a-z0-9]+/).filter(Boolean).join("-");
6135
+ return `${slug || "sovereign"}-recovery-kit.txt`;
6136
+ }
6137
+ function recoveryKitFileText(kit, instanceName, ownerCanRecover = false) {
6138
+ return [
6139
+ `Recovery kit for ${instanceName}`,
6140
+ "",
6141
+ kit,
6142
+ "",
6143
+ ownerCanRecover ? `Keep this somewhere safe. If you forget your password and have no passkey, it is your own way back to your encrypted data. The owner of ${instanceName} can also recover it.` : "Keep this somewhere safe. If you forget your password and have no passkey, it is the only way back to your encrypted data.",
6144
+ ""
6145
+ ].join("\n");
6146
+ }
6147
+ function RecoveryKit({
6148
+ kit,
6149
+ instanceName,
6150
+ onContinue,
6151
+ continuing = false,
6152
+ ownerCanRecover = false,
6153
+ className
6154
+ }) {
6155
+ const [kept, setKept] = useState15(false);
6156
+ const groups = kit.split(/[\s-]+/).filter(Boolean);
6157
+ const save = () => {
6158
+ const url = URL.createObjectURL(
6159
+ new Blob([recoveryKitFileText(kit, instanceName, ownerCanRecover)], {
6160
+ type: "text/plain;charset=utf-8"
6161
+ })
6162
+ );
6163
+ const link = document.createElement("a");
6164
+ link.href = url;
6165
+ link.download = recoveryKitFileName(instanceName);
6166
+ link.click();
6167
+ URL.revokeObjectURL(url);
6168
+ };
6169
+ return /* @__PURE__ */ jsxs144(
6170
+ "section",
6171
+ {
6172
+ className: [styles50.root, className].filter(Boolean).join(" "),
6173
+ "aria-labelledby": "recovery-kit-heading",
6174
+ children: [
6175
+ /* @__PURE__ */ jsx174("h2", { id: "recovery-kit-heading", className: styles50.heading, children: "Save your recovery kit" }),
6176
+ ownerCanRecover ? /* @__PURE__ */ jsxs144("p", { className: styles50.explain, children: [
6177
+ "If you forget your password and have no passkey, this kit is your own way back to your encrypted data. The owner of ",
6178
+ instanceName,
6179
+ " has turned on recovery, so they can also recover it for you."
6180
+ ] }) : /* @__PURE__ */ jsx174("p", { className: styles50.explain, children: "If you forget your password and have no passkey, this kit is the only way back to your encrypted data. Nobody else can get it back for you, not even this service\u2019s operators." }),
6181
+ /* @__PURE__ */ jsxs144("div", { className: styles50.printable, children: [
6182
+ /* @__PURE__ */ jsxs144("p", { className: styles50.printTitle, children: [
6183
+ "Recovery kit for ",
6184
+ instanceName
6185
+ ] }),
6186
+ /* @__PURE__ */ jsx174("ol", { className: styles50.groups, "aria-label": "Your recovery kit, in groups of four", children: groups.map((group, index) => /* @__PURE__ */ jsx174(
6187
+ "li",
6188
+ {
6189
+ className: [styles50.group, index === groups.length - 1 ? styles50.check : ""].filter(Boolean).join(" "),
6190
+ "aria-label": [...group].join(" "),
6191
+ children: group
6192
+ },
6193
+ index
6194
+ )) }),
6195
+ /* @__PURE__ */ jsx174("p", { className: styles50.note, children: "The last group checks the others for typos." })
6196
+ ] }),
6197
+ /* @__PURE__ */ jsxs144("div", { className: styles50.actions, children: [
6198
+ /* @__PURE__ */ jsx174(Button, { variant: "secondary", onClick: () => window.print(), children: "Print" }),
6199
+ /* @__PURE__ */ jsx174(Button, { variant: "secondary", onClick: save, children: "Save as a file" })
6200
+ ] }),
6201
+ /* @__PURE__ */ jsx174(
6202
+ Checkbox,
6203
+ {
6204
+ id: "recovery-kit-kept",
6205
+ checked: kept,
6206
+ onChange: setKept,
6207
+ label: "I've kept my recovery kit somewhere safe"
6208
+ }
6209
+ ),
6210
+ /* @__PURE__ */ jsx174(
6211
+ Button,
6212
+ {
6213
+ className: styles50.continue,
6214
+ disabled: !kept,
6215
+ loading: continuing,
6216
+ onClick: onContinue,
6217
+ children: continuing ? "Continuing\u2026" : "Continue"
6218
+ }
6219
+ )
6220
+ ]
6221
+ }
6222
+ );
6223
+ }
6224
+
6047
6225
  // src/components/OfflineGate/OfflineGate.tsx
6048
- import { Fragment as Fragment8, jsx as jsx171 } from "react/jsx-runtime";
6226
+ import { Fragment as Fragment9, jsx as jsx175 } from "react/jsx-runtime";
6049
6227
  function OfflineGate({ children, surfaceName, className }) {
6050
6228
  const isOffline = useIsOffline();
6051
- if (!isOffline) return /* @__PURE__ */ jsx171(Fragment8, { children });
6052
- return /* @__PURE__ */ jsx171(
6229
+ if (!isOffline) return /* @__PURE__ */ jsx175(Fragment9, { children });
6230
+ return /* @__PURE__ */ jsx175(
6053
6231
  EmptyState,
6054
6232
  {
6055
6233
  icon: "alert-triangle",
@@ -6061,15 +6239,15 @@ function OfflineGate({ children, surfaceName, className }) {
6061
6239
  }
6062
6240
 
6063
6241
  // src/components/DeviceOnlyGate/DeviceOnlyGate.tsx
6064
- import { Fragment as Fragment9, jsx as jsx172 } from "react/jsx-runtime";
6242
+ import { Fragment as Fragment10, jsx as jsx176 } from "react/jsx-runtime";
6065
6243
  function DeviceOnlyGate({
6066
6244
  children,
6067
6245
  surfaceName,
6068
6246
  available,
6069
6247
  className
6070
6248
  }) {
6071
- if (available) return /* @__PURE__ */ jsx172(Fragment9, { children });
6072
- return /* @__PURE__ */ jsx172(
6249
+ if (available) return /* @__PURE__ */ jsx176(Fragment10, { children });
6250
+ return /* @__PURE__ */ jsx176(
6073
6251
  EmptyState,
6074
6252
  {
6075
6253
  icon: "smartphone",
@@ -6081,7 +6259,7 @@ function DeviceOnlyGate({
6081
6259
  }
6082
6260
 
6083
6261
  // src/components/DeviceStorageKeyGate/DeviceStorageKeyGate.tsx
6084
- import { Fragment as Fragment10, jsx as jsx173 } from "react/jsx-runtime";
6262
+ import { Fragment as Fragment11, jsx as jsx177 } from "react/jsx-runtime";
6085
6263
  function DeviceStorageKeyGate({
6086
6264
  children,
6087
6265
  surfaceName,
@@ -6090,9 +6268,9 @@ function DeviceStorageKeyGate({
6090
6268
  className
6091
6269
  }) {
6092
6270
  if (status === "checking") return null;
6093
- if (status === "set-up") return /* @__PURE__ */ jsx173(Fragment10, { children });
6271
+ if (status === "set-up") return /* @__PURE__ */ jsx177(Fragment11, { children });
6094
6272
  if (status === "unsupported") {
6095
- return /* @__PURE__ */ jsx173(
6273
+ return /* @__PURE__ */ jsx177(
6096
6274
  EmptyState,
6097
6275
  {
6098
6276
  icon: "smartphone",
@@ -6103,7 +6281,7 @@ function DeviceStorageKeyGate({
6103
6281
  );
6104
6282
  }
6105
6283
  if (status === "no-device-auth") {
6106
- return /* @__PURE__ */ jsx173(
6284
+ return /* @__PURE__ */ jsx177(
6107
6285
  EmptyState,
6108
6286
  {
6109
6287
  icon: "alert-triangle",
@@ -6113,7 +6291,7 @@ function DeviceStorageKeyGate({
6113
6291
  }
6114
6292
  );
6115
6293
  }
6116
- return /* @__PURE__ */ jsx173(
6294
+ return /* @__PURE__ */ jsx177(
6117
6295
  EmptyState,
6118
6296
  {
6119
6297
  icon: "lock",
@@ -6127,45 +6305,70 @@ function DeviceStorageKeyGate({
6127
6305
 
6128
6306
  // src/components/Avatar/Avatar.tsx
6129
6307
  import { useState as useState16 } from "react";
6130
- import styles48 from "./Avatar.module.css";
6131
- import { jsx as jsx174 } from "react/jsx-runtime";
6308
+ import styles51 from "./Avatar.module.css";
6309
+ import { jsx as jsx178 } from "react/jsx-runtime";
6132
6310
  function initials2(name) {
6133
6311
  const parts = name.trim().split(/\s+/);
6134
6312
  if (parts.length === 1) return (parts[0] ?? "").slice(0, 2).toUpperCase();
6135
6313
  return ((parts[0]?.[0] ?? "") + (parts[parts.length - 1]?.[0] ?? "")).toUpperCase();
6136
6314
  }
6137
6315
  var sizeClass2 = {
6138
- sm: styles48.sm,
6139
- md: styles48.md,
6140
- lg: styles48.lg
6316
+ sm: styles51.sm,
6317
+ md: styles51.md,
6318
+ lg: styles51.lg
6141
6319
  };
6142
6320
  function Avatar({ name, src, size = "md", className }) {
6143
6321
  const [imgFailed, setImgFailed] = useState16(false);
6144
- const cls = [styles48.avatar, sizeClass2[size], className].filter(Boolean).join(" ");
6322
+ const cls = [styles51.avatar, sizeClass2[size], className].filter(Boolean).join(" ");
6145
6323
  if (src && !imgFailed) {
6146
- return /* @__PURE__ */ jsx174("span", { className: cls, "aria-label": name, children: /* @__PURE__ */ jsx174("img", { src, alt: name, className: styles48.img, onError: () => setImgFailed(true) }) });
6324
+ return /* @__PURE__ */ jsx178("span", { className: cls, "aria-label": name, children: /* @__PURE__ */ jsx178("img", { src, alt: name, className: styles51.img, onError: () => setImgFailed(true) }) });
6147
6325
  }
6148
- return /* @__PURE__ */ jsx174("span", { className: cls, "aria-label": name, children: initials2(name) });
6326
+ return /* @__PURE__ */ jsx178("span", { className: cls, "aria-label": name, children: initials2(name) });
6327
+ }
6328
+
6329
+ // src/components/AvatarStack/AvatarStack.tsx
6330
+ import styles52 from "./AvatarStack.module.css";
6331
+ import { jsx as jsx179, jsxs as jsxs145 } from "react/jsx-runtime";
6332
+ function namesOf(people) {
6333
+ const names = people.map((person) => person.name.trim()).filter((name) => name !== "");
6334
+ if (names.length <= 1) return names[0] ?? "";
6335
+ return `${names.slice(0, -1).join(", ")} and ${names[names.length - 1]}`;
6336
+ }
6337
+ function AvatarStack({ people, max = 4, size = "md", label, className }) {
6338
+ if (people.length === 0) return null;
6339
+ const limit = Math.max(1, Math.floor(max));
6340
+ const hidden = people.length > limit + 1 ? people.length - limit : 0;
6341
+ const shown = hidden > 0 ? people.slice(0, limit) : people;
6342
+ const names = namesOf(people);
6343
+ const accessible = label ? `${label}: ${names}` : names;
6344
+ const cls = [styles52.stack, styles52[size], className].filter(Boolean).join(" ");
6345
+ return /* @__PURE__ */ jsxs145("span", { className: cls, role: "img", "aria-label": accessible, children: [
6346
+ 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}`)),
6347
+ hidden > 0 ? /* @__PURE__ */ jsxs145("span", { className: `${styles52.item} ${styles52.more}`, "aria-hidden": "true", children: [
6348
+ "+",
6349
+ hidden
6350
+ ] }) : null
6351
+ ] });
6149
6352
  }
6150
6353
 
6151
6354
  // src/components/NavTabs/NavTabs.tsx
6152
- import { Fragment as Fragment11 } from "react";
6153
- import styles49 from "./NavTabs.module.css";
6154
- import { jsx as jsx175 } from "react/jsx-runtime";
6355
+ import { Fragment as Fragment12 } from "react";
6356
+ import styles53 from "./NavTabs.module.css";
6357
+ import { jsx as jsx180 } from "react/jsx-runtime";
6155
6358
  function NavTabs({ items, className, "aria-label": ariaLabel, renderLink }) {
6156
- return /* @__PURE__ */ jsx175(
6359
+ return /* @__PURE__ */ jsx180(
6157
6360
  "nav",
6158
6361
  {
6159
- className: [styles49.nav, className].filter(Boolean).join(" "),
6362
+ className: [styles53.nav, className].filter(Boolean).join(" "),
6160
6363
  "aria-label": ariaLabel ?? "Page navigation",
6161
6364
  children: items.map((item) => {
6162
6365
  const linkProps = {
6163
6366
  href: item.href,
6164
- className: [styles49.link, item.active && styles49.active].filter(Boolean).join(" "),
6367
+ className: [styles53.link, item.active && styles53.active].filter(Boolean).join(" "),
6165
6368
  "aria-current": item.active ? "page" : void 0,
6166
6369
  children: item.label
6167
6370
  };
6168
- return /* @__PURE__ */ jsx175(Fragment11, { children: renderLink ? renderLink(item, linkProps) : /* @__PURE__ */ jsx175(
6371
+ return /* @__PURE__ */ jsx180(Fragment12, { children: renderLink ? renderLink(item, linkProps) : /* @__PURE__ */ jsx180(
6169
6372
  "a",
6170
6373
  {
6171
6374
  href: linkProps.href,
@@ -6181,80 +6384,26 @@ function NavTabs({ items, className, "aria-label": ariaLabel, renderLink }) {
6181
6384
 
6182
6385
  // src/components/Tooltip/Tooltip.tsx
6183
6386
  import { useId as useId5 } from "react";
6184
- import styles50 from "./Tooltip.module.css";
6185
- import { jsx as jsx176, jsxs as jsxs142 } from "react/jsx-runtime";
6387
+ import styles54 from "./Tooltip.module.css";
6388
+ import { jsx as jsx181, jsxs as jsxs146 } from "react/jsx-runtime";
6186
6389
  var sideClass = {
6187
- top: styles50.top,
6188
- bottom: styles50.bottom,
6189
- left: styles50.left,
6190
- right: styles50.right
6390
+ top: styles54.top,
6391
+ bottom: styles54.bottom,
6392
+ left: styles54.left,
6393
+ right: styles54.right
6191
6394
  };
6192
6395
  function Tooltip({ content, children, side = "top" }) {
6193
6396
  const tipId = useId5();
6194
- return /* @__PURE__ */ jsxs142("span", { className: styles50.wrapper, children: [
6195
- /* @__PURE__ */ jsx176("span", { "aria-describedby": tipId, children }),
6196
- /* @__PURE__ */ jsx176("span", { id: tipId, role: "tooltip", className: [styles50.tip, sideClass[side]].join(" "), children: content })
6197
- ] });
6198
- }
6199
-
6200
- // src/components/Checkbox/Checkbox.tsx
6201
- import styles51 from "./Checkbox.module.css";
6202
- import { jsx as jsx177, jsxs as jsxs143 } from "react/jsx-runtime";
6203
- function Checkbox({
6204
- checked,
6205
- onChange,
6206
- label,
6207
- strikeThrough = false,
6208
- disabled,
6209
- className,
6210
- id,
6211
- ...rest
6212
- }) {
6213
- const inputId = id ?? `checkbox-${label.toLowerCase().replace(/\s+/g, "-")}`;
6214
- return /* @__PURE__ */ jsxs143("span", { className: [styles51.root, className].filter(Boolean).join(" "), children: [
6215
- /* @__PURE__ */ jsxs143("span", { className: [styles51.box, checked ? styles51.checked : ""].filter(Boolean).join(" "), children: [
6216
- /* @__PURE__ */ jsx177(
6217
- "input",
6218
- {
6219
- ...rest,
6220
- id: inputId,
6221
- type: "checkbox",
6222
- checked,
6223
- disabled,
6224
- className: styles51.input,
6225
- onChange: (e) => onChange(e.target.checked)
6226
- }
6227
- ),
6228
- checked && /* @__PURE__ */ jsx177("svg", { className: styles51.tick, viewBox: "0 0 10 8", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ jsx177(
6229
- "path",
6230
- {
6231
- d: "M1 4l3 3 5-6",
6232
- stroke: "currentColor",
6233
- strokeWidth: "1.5",
6234
- strokeLinecap: "round",
6235
- strokeLinejoin: "round"
6236
- }
6237
- ) })
6238
- ] }),
6239
- label && /* @__PURE__ */ jsx177(
6240
- "label",
6241
- {
6242
- htmlFor: inputId,
6243
- className: [
6244
- styles51.label,
6245
- strikeThrough && checked ? styles51.struck : "",
6246
- disabled ? styles51.disabled : ""
6247
- ].filter(Boolean).join(" "),
6248
- children: label
6249
- }
6250
- )
6397
+ return /* @__PURE__ */ jsxs146("span", { className: styles54.wrapper, children: [
6398
+ /* @__PURE__ */ jsx181("span", { "aria-describedby": tipId, children }),
6399
+ /* @__PURE__ */ jsx181("span", { id: tipId, role: "tooltip", className: [styles54.tip, sideClass[side]].join(" "), children: content })
6251
6400
  ] });
6252
6401
  }
6253
6402
 
6254
6403
  // src/components/RadioGroup/RadioGroup.tsx
6255
6404
  import { useId as useId6 } from "react";
6256
- import styles52 from "./RadioGroup.module.css";
6257
- import { jsx as jsx178, jsxs as jsxs144 } from "react/jsx-runtime";
6405
+ import styles55 from "./RadioGroup.module.css";
6406
+ import { jsx as jsx182, jsxs as jsxs147 } from "react/jsx-runtime";
6258
6407
  function RadioGroup({
6259
6408
  items,
6260
6409
  value,
@@ -6271,7 +6420,7 @@ function RadioGroup({
6271
6420
  }) {
6272
6421
  const generatedName = useId6();
6273
6422
  const groupName = name ?? generatedName;
6274
- return /* @__PURE__ */ jsx178(
6423
+ return /* @__PURE__ */ jsx182(
6275
6424
  "div",
6276
6425
  {
6277
6426
  id,
@@ -6281,19 +6430,19 @@ function RadioGroup({
6281
6430
  "aria-describedby": ariaDescribedBy,
6282
6431
  "aria-invalid": ariaInvalid,
6283
6432
  "aria-required": required,
6284
- className: [styles52.root, className].filter(Boolean).join(" "),
6433
+ className: [styles55.root, className].filter(Boolean).join(" "),
6285
6434
  children: items.map((item) => {
6286
6435
  const checked = item.value === value;
6287
6436
  const itemDisabled = disabled || item.disabled;
6288
6437
  const inputId = `${groupName}-${item.value}`;
6289
- return /* @__PURE__ */ jsxs144(
6438
+ return /* @__PURE__ */ jsxs147(
6290
6439
  "label",
6291
6440
  {
6292
6441
  htmlFor: inputId,
6293
- className: [styles52.option, itemDisabled ? styles52.disabled : ""].filter(Boolean).join(" "),
6442
+ className: [styles55.option, itemDisabled ? styles55.disabled : ""].filter(Boolean).join(" "),
6294
6443
  children: [
6295
- /* @__PURE__ */ jsxs144("span", { className: [styles52.circle, checked ? styles52.checked : ""].join(" "), children: [
6296
- /* @__PURE__ */ jsx178(
6444
+ /* @__PURE__ */ jsxs147("span", { className: [styles55.circle, checked ? styles55.checked : ""].join(" "), children: [
6445
+ /* @__PURE__ */ jsx182(
6297
6446
  "input",
6298
6447
  {
6299
6448
  id: inputId,
@@ -6303,13 +6452,13 @@ function RadioGroup({
6303
6452
  checked,
6304
6453
  disabled: itemDisabled,
6305
6454
  required,
6306
- className: styles52.input,
6455
+ className: styles55.input,
6307
6456
  onChange: () => onChange(item.value)
6308
6457
  }
6309
6458
  ),
6310
- checked && /* @__PURE__ */ jsx178("span", { className: styles52.dot })
6459
+ checked && /* @__PURE__ */ jsx182("span", { className: styles55.dot })
6311
6460
  ] }),
6312
- /* @__PURE__ */ jsx178("span", { className: styles52.optionLabel, children: item.label })
6461
+ /* @__PURE__ */ jsx182("span", { className: styles55.optionLabel, children: item.label })
6313
6462
  ]
6314
6463
  },
6315
6464
  item.value
@@ -6321,8 +6470,8 @@ function RadioGroup({
6321
6470
 
6322
6471
  // src/components/Slider/Slider.tsx
6323
6472
  import { useId as useId7 } from "react";
6324
- import styles53 from "./Slider.module.css";
6325
- import { jsx as jsx179, jsxs as jsxs145 } from "react/jsx-runtime";
6473
+ import styles56 from "./Slider.module.css";
6474
+ import { jsx as jsx183, jsxs as jsxs148 } from "react/jsx-runtime";
6326
6475
  function Slider({
6327
6476
  value,
6328
6477
  onChange,
@@ -6341,9 +6490,9 @@ function Slider({
6341
6490
  const generatedId = useId7();
6342
6491
  const inputId = id ?? generatedId;
6343
6492
  const fillPercent = max > min ? (value - min) / (max - min) * 100 : 0;
6344
- return /* @__PURE__ */ jsxs145("div", { className: [styles53.root, className].filter(Boolean).join(" "), children: [
6345
- label && /* @__PURE__ */ jsx179("label", { htmlFor: inputId, className: styles53.label, children: label }),
6346
- /* @__PURE__ */ jsx179(
6493
+ return /* @__PURE__ */ jsxs148("div", { className: [styles56.root, className].filter(Boolean).join(" "), children: [
6494
+ label && /* @__PURE__ */ jsx183("label", { htmlFor: inputId, className: styles56.label, children: label }),
6495
+ /* @__PURE__ */ jsx183(
6347
6496
  "input",
6348
6497
  {
6349
6498
  id: inputId,
@@ -6357,7 +6506,7 @@ function Slider({
6357
6506
  "aria-label": label ? void 0 : ariaLabel,
6358
6507
  "aria-describedby": ariaDescribedBy,
6359
6508
  "aria-invalid": ariaInvalid,
6360
- className: styles53.slider,
6509
+ className: styles56.slider,
6361
6510
  style: { "--slider-fill": `${fillPercent}%` },
6362
6511
  onChange: (e) => onChange(Number(e.target.value))
6363
6512
  }
@@ -6366,11 +6515,11 @@ function Slider({
6366
6515
  }
6367
6516
 
6368
6517
  // src/components/Progress/Progress.tsx
6369
- import styles54 from "./Progress.module.css";
6370
- import { jsx as jsx180 } from "react/jsx-runtime";
6518
+ import styles57 from "./Progress.module.css";
6519
+ import { jsx as jsx184 } from "react/jsx-runtime";
6371
6520
  function Progress({ value, label, id, className }) {
6372
6521
  const clamped = Math.min(100, Math.max(0, value));
6373
- return /* @__PURE__ */ jsx180(
6522
+ return /* @__PURE__ */ jsx184(
6374
6523
  "div",
6375
6524
  {
6376
6525
  id,
@@ -6379,37 +6528,37 @@ function Progress({ value, label, id, className }) {
6379
6528
  "aria-valuemin": 0,
6380
6529
  "aria-valuemax": 100,
6381
6530
  "aria-label": label,
6382
- className: [styles54.track, className].filter(Boolean).join(" "),
6383
- children: /* @__PURE__ */ jsx180("div", { className: styles54.fill, style: { width: `${clamped}%` } })
6531
+ className: [styles57.track, className].filter(Boolean).join(" "),
6532
+ children: /* @__PURE__ */ jsx184("div", { className: styles57.fill, style: { width: `${clamped}%` } })
6384
6533
  }
6385
6534
  );
6386
6535
  }
6387
6536
 
6388
6537
  // src/components/Table/Table.tsx
6389
- import styles55 from "./Table.module.css";
6390
- import { jsx as jsx181 } from "react/jsx-runtime";
6538
+ import styles58 from "./Table.module.css";
6539
+ import { jsx as jsx185 } from "react/jsx-runtime";
6391
6540
  function Table({ children, className }) {
6392
- return /* @__PURE__ */ jsx181("div", { className: styles55.scrollContainer, children: /* @__PURE__ */ jsx181("table", { className: [styles55.table, className].filter(Boolean).join(" "), children }) });
6541
+ return /* @__PURE__ */ jsx185("div", { className: styles58.scrollContainer, children: /* @__PURE__ */ jsx185("table", { className: [styles58.table, className].filter(Boolean).join(" "), children }) });
6393
6542
  }
6394
6543
  function TableHead({ children }) {
6395
- return /* @__PURE__ */ jsx181("thead", { className: styles55.head, children });
6544
+ return /* @__PURE__ */ jsx185("thead", { className: styles58.head, children });
6396
6545
  }
6397
6546
  function TableBody({ children }) {
6398
- return /* @__PURE__ */ jsx181("tbody", { className: styles55.body, children });
6547
+ return /* @__PURE__ */ jsx185("tbody", { className: styles58.body, children });
6399
6548
  }
6400
6549
  function TableRow({ children }) {
6401
- return /* @__PURE__ */ jsx181("tr", { className: styles55.row, children });
6550
+ return /* @__PURE__ */ jsx185("tr", { className: styles58.row, children });
6402
6551
  }
6403
6552
  function TableHeaderCell({ children, ...rest }) {
6404
- return /* @__PURE__ */ jsx181("th", { className: styles55.th, ...rest, children });
6553
+ return /* @__PURE__ */ jsx185("th", { className: styles58.th, ...rest, children });
6405
6554
  }
6406
6555
  function TableCell({ children, ...rest }) {
6407
- return /* @__PURE__ */ jsx181("td", { className: styles55.td, ...rest, children });
6556
+ return /* @__PURE__ */ jsx185("td", { className: styles58.td, ...rest, children });
6408
6557
  }
6409
6558
 
6410
6559
  // src/components/Alert/Alert.tsx
6411
- import styles56 from "./Alert.module.css";
6412
- import { jsx as jsx182, jsxs as jsxs146 } from "react/jsx-runtime";
6560
+ import styles59 from "./Alert.module.css";
6561
+ import { jsx as jsx186, jsxs as jsxs149 } from "react/jsx-runtime";
6413
6562
  var DEFAULT_ICON = {
6414
6563
  info: "info",
6415
6564
  success: "circle-check",
@@ -6419,17 +6568,17 @@ var DEFAULT_ICON = {
6419
6568
  };
6420
6569
  function Alert({ variant, heading, icon, children, id, className }) {
6421
6570
  const resolvedIcon = icon === void 0 ? DEFAULT_ICON[variant] : icon || void 0;
6422
- return /* @__PURE__ */ jsxs146(
6571
+ return /* @__PURE__ */ jsxs149(
6423
6572
  "div",
6424
6573
  {
6425
6574
  id,
6426
6575
  role: variant === "error" ? "alert" : "status",
6427
- className: [styles56.alert, styles56[variant], className].filter(Boolean).join(" "),
6576
+ className: [styles59.alert, styles59[variant], className].filter(Boolean).join(" "),
6428
6577
  children: [
6429
- resolvedIcon && /* @__PURE__ */ jsx182(Icon, { name: resolvedIcon, size: "sm", className: styles56.icon, "aria-hidden": true }),
6430
- /* @__PURE__ */ jsxs146("div", { className: styles56.content, children: [
6431
- heading && /* @__PURE__ */ jsx182("p", { className: styles56.heading, children: heading }),
6432
- /* @__PURE__ */ jsx182("div", { className: styles56.body, children })
6578
+ resolvedIcon && /* @__PURE__ */ jsx186(Icon, { name: resolvedIcon, size: "sm", className: styles59.icon, "aria-hidden": true }),
6579
+ /* @__PURE__ */ jsxs149("div", { className: styles59.content, children: [
6580
+ heading && /* @__PURE__ */ jsx186("p", { className: styles59.heading, children: heading }),
6581
+ /* @__PURE__ */ jsx186("div", { className: styles59.body, children })
6433
6582
  ] })
6434
6583
  ]
6435
6584
  }
@@ -6437,26 +6586,26 @@ function Alert({ variant, heading, icon, children, id, className }) {
6437
6586
  }
6438
6587
 
6439
6588
  // src/components/Breadcrumb/Breadcrumb.tsx
6440
- import styles57 from "./Breadcrumb.module.css";
6441
- import { jsx as jsx183, jsxs as jsxs147 } from "react/jsx-runtime";
6589
+ import styles60 from "./Breadcrumb.module.css";
6590
+ import { jsx as jsx187, jsxs as jsxs150 } from "react/jsx-runtime";
6442
6591
  function Breadcrumb({
6443
6592
  items,
6444
6593
  renderLink,
6445
6594
  className,
6446
6595
  "aria-label": ariaLabel = "Breadcrumb"
6447
6596
  }) {
6448
- return /* @__PURE__ */ jsx183("nav", { "aria-label": ariaLabel, className: [styles57.nav, className].filter(Boolean).join(" "), children: /* @__PURE__ */ jsx183("ol", { className: styles57.list, children: items.map((item, index) => {
6597
+ 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) => {
6449
6598
  const isLast = index === items.length - 1;
6450
- return /* @__PURE__ */ jsxs147("li", { className: styles57.item, children: [
6451
- item.href ? renderLink ? renderLink(item, item.label) : /* @__PURE__ */ jsx183("a", { href: item.href, className: styles57.link, children: item.label }) : /* @__PURE__ */ jsx183("span", { className: styles57.current, "aria-current": "page", children: item.label }),
6452
- !isLast && /* @__PURE__ */ jsx183(Icon, { name: "chevron-right", size: "xs", "aria-hidden": true, className: styles57.separator })
6599
+ return /* @__PURE__ */ jsxs150("li", { className: styles60.item, children: [
6600
+ 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 }),
6601
+ !isLast && /* @__PURE__ */ jsx187(Icon, { name: "chevron-right", size: "xs", "aria-hidden": true, className: styles60.separator })
6453
6602
  ] }, item.label + index);
6454
6603
  }) }) });
6455
6604
  }
6456
6605
 
6457
6606
  // src/components/Pagination/Pagination.tsx
6458
- import styles58 from "./Pagination.module.css";
6459
- import { jsx as jsx184, jsxs as jsxs148 } from "react/jsx-runtime";
6607
+ import styles61 from "./Pagination.module.css";
6608
+ import { jsx as jsx188, jsxs as jsxs151 } from "react/jsx-runtime";
6460
6609
  function getPageList(page, totalPages) {
6461
6610
  if (totalPages <= 1) return [1];
6462
6611
  const siblingCount = 1;
@@ -6479,24 +6628,24 @@ function Pagination({
6479
6628
  "aria-label": ariaLabel = "Pagination"
6480
6629
  }) {
6481
6630
  const pages = getPageList(page, totalPages);
6482
- return /* @__PURE__ */ jsxs148("nav", { "aria-label": ariaLabel, className: [styles58.nav, className].filter(Boolean).join(" "), children: [
6483
- /* @__PURE__ */ jsx184(
6631
+ return /* @__PURE__ */ jsxs151("nav", { "aria-label": ariaLabel, className: [styles61.nav, className].filter(Boolean).join(" "), children: [
6632
+ /* @__PURE__ */ jsx188(
6484
6633
  "button",
6485
6634
  {
6486
6635
  type: "button",
6487
- className: styles58.navButton,
6636
+ className: styles61.navButton,
6488
6637
  onClick: () => onChange(page - 1),
6489
6638
  disabled: page <= 1,
6490
6639
  "aria-label": "Previous page",
6491
- children: /* @__PURE__ */ jsx184(Icon, { name: "chevron-left", size: "sm", "aria-hidden": true })
6640
+ children: /* @__PURE__ */ jsx188(Icon, { name: "chevron-left", size: "sm", "aria-hidden": true })
6492
6641
  }
6493
6642
  ),
6494
- /* @__PURE__ */ jsx184("ul", { className: styles58.list, children: pages.map(
6495
- (p, index) => p === "ellipsis" ? /* @__PURE__ */ jsx184("li", { className: styles58.ellipsis, "aria-hidden": "true", children: "\u2026" }, `ellipsis-${index}`) : /* @__PURE__ */ jsx184("li", { children: /* @__PURE__ */ jsx184(
6643
+ /* @__PURE__ */ jsx188("ul", { className: styles61.list, children: pages.map(
6644
+ (p, index) => p === "ellipsis" ? /* @__PURE__ */ jsx188("li", { className: styles61.ellipsis, "aria-hidden": "true", children: "\u2026" }, `ellipsis-${index}`) : /* @__PURE__ */ jsx188("li", { children: /* @__PURE__ */ jsx188(
6496
6645
  "button",
6497
6646
  {
6498
6647
  type: "button",
6499
- className: [styles58.pageButton, p === page ? styles58.active : ""].filter(Boolean).join(" "),
6648
+ className: [styles61.pageButton, p === page ? styles61.active : ""].filter(Boolean).join(" "),
6500
6649
  onClick: () => onChange(p),
6501
6650
  "aria-current": p === page ? "page" : void 0,
6502
6651
  "aria-label": `Page ${p}`,
@@ -6504,31 +6653,31 @@ function Pagination({
6504
6653
  }
6505
6654
  ) }, p)
6506
6655
  ) }),
6507
- /* @__PURE__ */ jsx184(
6656
+ /* @__PURE__ */ jsx188(
6508
6657
  "button",
6509
6658
  {
6510
6659
  type: "button",
6511
- className: styles58.navButton,
6660
+ className: styles61.navButton,
6512
6661
  onClick: () => onChange(page + 1),
6513
6662
  disabled: page >= totalPages,
6514
6663
  "aria-label": "Next page",
6515
- children: /* @__PURE__ */ jsx184(Icon, { name: "chevron-right", size: "sm", "aria-hidden": true })
6664
+ children: /* @__PURE__ */ jsx188(Icon, { name: "chevron-right", size: "sm", "aria-hidden": true })
6516
6665
  }
6517
6666
  )
6518
6667
  ] });
6519
6668
  }
6520
6669
 
6521
6670
  // src/components/Kbd/Kbd.tsx
6522
- import styles59 from "./Kbd.module.css";
6523
- import { jsx as jsx185 } from "react/jsx-runtime";
6671
+ import styles62 from "./Kbd.module.css";
6672
+ import { jsx as jsx189 } from "react/jsx-runtime";
6524
6673
  function Kbd({ children, className }) {
6525
- return /* @__PURE__ */ jsx185("kbd", { className: [styles59.kbd, className].filter(Boolean).join(" "), children });
6674
+ return /* @__PURE__ */ jsx189("kbd", { className: [styles62.kbd, className].filter(Boolean).join(" "), children });
6526
6675
  }
6527
6676
 
6528
6677
  // src/components/Collapsible/Collapsible.tsx
6529
6678
  import { useId as useId8 } from "react";
6530
- import styles60 from "./Collapsible.module.css";
6531
- import { jsx as jsx186, jsxs as jsxs149 } from "react/jsx-runtime";
6679
+ import styles63 from "./Collapsible.module.css";
6680
+ import { jsx as jsx190, jsxs as jsxs152 } from "react/jsx-runtime";
6532
6681
  function Collapsible({
6533
6682
  open,
6534
6683
  onOpenChange,
@@ -6539,45 +6688,45 @@ function Collapsible({
6539
6688
  }) {
6540
6689
  const generatedId = useId8();
6541
6690
  const contentId = `${id ?? generatedId}-content`;
6542
- return /* @__PURE__ */ jsxs149("div", { className: [styles60.root, className].filter(Boolean).join(" "), children: [
6543
- /* @__PURE__ */ jsxs149(
6691
+ return /* @__PURE__ */ jsxs152("div", { className: [styles63.root, className].filter(Boolean).join(" "), children: [
6692
+ /* @__PURE__ */ jsxs152(
6544
6693
  "button",
6545
6694
  {
6546
6695
  type: "button",
6547
- className: styles60.trigger,
6696
+ className: styles63.trigger,
6548
6697
  "aria-expanded": open,
6549
6698
  "aria-controls": contentId,
6550
6699
  onClick: () => onOpenChange(!open),
6551
6700
  children: [
6552
- /* @__PURE__ */ jsx186("span", { className: styles60.triggerLabel, children: trigger }),
6553
- /* @__PURE__ */ jsx186(
6701
+ /* @__PURE__ */ jsx190("span", { className: styles63.triggerLabel, children: trigger }),
6702
+ /* @__PURE__ */ jsx190(
6554
6703
  Icon,
6555
6704
  {
6556
6705
  name: "chevron-down",
6557
6706
  size: "sm",
6558
6707
  "aria-hidden": true,
6559
- className: [styles60.chevron, open ? styles60.chevronOpen : ""].filter(Boolean).join(" ")
6708
+ className: [styles63.chevron, open ? styles63.chevronOpen : ""].filter(Boolean).join(" ")
6560
6709
  }
6561
6710
  )
6562
6711
  ]
6563
6712
  }
6564
6713
  ),
6565
- /* @__PURE__ */ jsx186(
6714
+ /* @__PURE__ */ jsx190(
6566
6715
  "div",
6567
6716
  {
6568
6717
  id: contentId,
6569
- className: styles60.contentWrapper,
6718
+ className: styles63.contentWrapper,
6570
6719
  "data-open": open,
6571
6720
  inert: !open || void 0,
6572
- children: /* @__PURE__ */ jsx186("div", { className: styles60.contentInner, children })
6721
+ children: /* @__PURE__ */ jsx190("div", { className: styles63.contentInner, children })
6573
6722
  }
6574
6723
  )
6575
6724
  ] });
6576
6725
  }
6577
6726
 
6578
6727
  // src/components/Accordion/Accordion.tsx
6579
- import styles61 from "./Accordion.module.css";
6580
- import { jsx as jsx187 } from "react/jsx-runtime";
6728
+ import styles64 from "./Accordion.module.css";
6729
+ import { jsx as jsx191 } from "react/jsx-runtime";
6581
6730
  function Accordion({ items, type, openIds, onOpenIdsChange, className }) {
6582
6731
  function handleOpenChange(id, open) {
6583
6732
  if (type === "single") {
@@ -6586,7 +6735,7 @@ function Accordion({ items, type, openIds, onOpenIdsChange, className }) {
6586
6735
  }
6587
6736
  onOpenIdsChange(open ? [...openIds, id] : openIds.filter((openId) => openId !== id));
6588
6737
  }
6589
- return /* @__PURE__ */ jsx187("div", { className: [styles61.root, className].filter(Boolean).join(" "), children: items.map((item) => /* @__PURE__ */ jsx187(
6738
+ return /* @__PURE__ */ jsx191("div", { className: [styles64.root, className].filter(Boolean).join(" "), children: items.map((item) => /* @__PURE__ */ jsx191(
6590
6739
  Collapsible,
6591
6740
  {
6592
6741
  id: item.id,
@@ -6600,13 +6749,13 @@ function Accordion({ items, type, openIds, onOpenIdsChange, className }) {
6600
6749
  }
6601
6750
 
6602
6751
  // src/components/AspectRatio/AspectRatio.tsx
6603
- import styles62 from "./AspectRatio.module.css";
6604
- import { jsx as jsx188 } from "react/jsx-runtime";
6752
+ import styles65 from "./AspectRatio.module.css";
6753
+ import { jsx as jsx192 } from "react/jsx-runtime";
6605
6754
  function AspectRatio({ ratio, children, className }) {
6606
- return /* @__PURE__ */ jsx188(
6755
+ return /* @__PURE__ */ jsx192(
6607
6756
  "div",
6608
6757
  {
6609
- className: [styles62.root, className].filter(Boolean).join(" "),
6758
+ className: [styles65.root, className].filter(Boolean).join(" "),
6610
6759
  style: { aspectRatio: ratio },
6611
6760
  children
6612
6761
  }
@@ -6614,8 +6763,8 @@ function AspectRatio({ ratio, children, className }) {
6614
6763
  }
6615
6764
 
6616
6765
  // src/components/ButtonLink/ButtonLink.tsx
6617
- import styles63 from "./Button.module.css";
6618
- import { jsx as jsx189 } from "react/jsx-runtime";
6766
+ import styles66 from "./Button.module.css";
6767
+ import { jsx as jsx193 } from "react/jsx-runtime";
6619
6768
  function ButtonLink({
6620
6769
  variant = "primary",
6621
6770
  size = "md",
@@ -6624,29 +6773,29 @@ function ButtonLink({
6624
6773
  renderLink,
6625
6774
  ...rest
6626
6775
  }) {
6627
- const classes = [styles63.button, styles63[variant], styles63[size], styles63.link, className].filter(Boolean).join(" ");
6776
+ const classes = [styles66.button, styles66[variant], styles66[size], styles66.link, className].filter(Boolean).join(" ");
6628
6777
  const props = { ...rest, className: classes, children };
6629
- return renderLink ? renderLink(props) : /* @__PURE__ */ jsx189("a", { ...rest, className: classes, children });
6778
+ return renderLink ? renderLink(props) : /* @__PURE__ */ jsx193("a", { ...rest, className: classes, children });
6630
6779
  }
6631
6780
 
6632
6781
  // src/components/ButtonGroup/ButtonGroup.tsx
6633
- import styles64 from "./ButtonGroup.module.css";
6634
- import { jsx as jsx190 } from "react/jsx-runtime";
6782
+ import styles67 from "./ButtonGroup.module.css";
6783
+ import { jsx as jsx194 } from "react/jsx-runtime";
6635
6784
  function ButtonGroup({ children, className, "aria-label": ariaLabel }) {
6636
- return /* @__PURE__ */ jsx190(
6785
+ return /* @__PURE__ */ jsx194(
6637
6786
  "div",
6638
6787
  {
6639
6788
  role: "group",
6640
6789
  "aria-label": ariaLabel,
6641
- className: [styles64.root, className].filter(Boolean).join(" "),
6790
+ className: [styles67.root, className].filter(Boolean).join(" "),
6642
6791
  children
6643
6792
  }
6644
6793
  );
6645
6794
  }
6646
6795
 
6647
6796
  // src/components/Item/Item.tsx
6648
- import styles65 from "./Item.module.css";
6649
- import { Fragment as Fragment12, jsx as jsx191, jsxs as jsxs150 } from "react/jsx-runtime";
6797
+ import styles68 from "./Item.module.css";
6798
+ import { Fragment as Fragment13, jsx as jsx195, jsxs as jsxs153 } from "react/jsx-runtime";
6650
6799
  function Item({
6651
6800
  leading,
6652
6801
  title,
@@ -6657,29 +6806,29 @@ function Item({
6657
6806
  className
6658
6807
  }) {
6659
6808
  const interactive = Boolean(onClick);
6660
- const classes = [styles65.root, interactive ? styles65.interactive : "", className].filter(Boolean).join(" ");
6661
- const content = /* @__PURE__ */ jsxs150(Fragment12, { children: [
6662
- leading && /* @__PURE__ */ jsx191("span", { className: styles65.leading, children: leading }),
6663
- /* @__PURE__ */ jsxs150("span", { className: styles65.content, children: [
6664
- /* @__PURE__ */ jsx191("span", { className: styles65.title, children: title }),
6665
- description && /* @__PURE__ */ jsx191("span", { className: styles65.description, children: description })
6809
+ const classes = [styles68.root, interactive ? styles68.interactive : "", className].filter(Boolean).join(" ");
6810
+ const content = /* @__PURE__ */ jsxs153(Fragment13, { children: [
6811
+ leading && /* @__PURE__ */ jsx195("span", { className: styles68.leading, children: leading }),
6812
+ /* @__PURE__ */ jsxs153("span", { className: styles68.content, children: [
6813
+ /* @__PURE__ */ jsx195("span", { className: styles68.title, children: title }),
6814
+ description && /* @__PURE__ */ jsx195("span", { className: styles68.description, children: description })
6666
6815
  ] }),
6667
- trailing && /* @__PURE__ */ jsx191("span", { className: styles65.trailing, children: trailing })
6816
+ trailing && /* @__PURE__ */ jsx195("span", { className: styles68.trailing, children: trailing })
6668
6817
  ] });
6669
6818
  if (interactive) {
6670
- return /* @__PURE__ */ jsx191("button", { type: "button", onClick, disabled, className: classes, children: content });
6819
+ return /* @__PURE__ */ jsx195("button", { type: "button", onClick, disabled, className: classes, children: content });
6671
6820
  }
6672
- return /* @__PURE__ */ jsx191("div", { className: classes, children: content });
6821
+ return /* @__PURE__ */ jsx195("div", { className: classes, children: content });
6673
6822
  }
6674
6823
 
6675
6824
  // src/components/Label/Label.tsx
6676
- import styles66 from "./Label.module.css";
6677
- import { jsx as jsx192 } from "react/jsx-runtime";
6825
+ import styles69 from "./Label.module.css";
6826
+ import { jsx as jsx196 } from "react/jsx-runtime";
6678
6827
  function Label({ disabled, className, children, ...rest }) {
6679
- return /* @__PURE__ */ jsx192(
6828
+ return /* @__PURE__ */ jsx196(
6680
6829
  "label",
6681
6830
  {
6682
- className: [styles66.label, disabled ? styles66.disabled : "", className].filter(Boolean).join(" "),
6831
+ className: [styles69.label, disabled ? styles69.disabled : "", className].filter(Boolean).join(" "),
6683
6832
  ...rest,
6684
6833
  children
6685
6834
  }
@@ -6687,49 +6836,512 @@ function Label({ disabled, className, children, ...rest }) {
6687
6836
  }
6688
6837
 
6689
6838
  // src/components/ScrollArea/ScrollArea.tsx
6690
- import styles67 from "./ScrollArea.module.css";
6691
- import { jsx as jsx193 } from "react/jsx-runtime";
6839
+ import styles70 from "./ScrollArea.module.css";
6840
+ import { jsx as jsx197 } from "react/jsx-runtime";
6692
6841
  function ScrollArea({ children, maxHeight, maxWidth, className }) {
6693
6842
  const style = {};
6694
6843
  if (maxHeight !== void 0) style.maxHeight = maxHeight;
6695
6844
  if (maxWidth !== void 0) style.maxWidth = maxWidth;
6696
- return /* @__PURE__ */ jsx193("div", { className: [styles67.root, className].filter(Boolean).join(" "), style, children });
6845
+ return /* @__PURE__ */ jsx197("div", { className: [styles70.root, className].filter(Boolean).join(" "), style, children });
6846
+ }
6847
+
6848
+ // src/components/FloatingActionButton/FloatingActionButton.tsx
6849
+ import styles71 from "./FloatingActionButton.module.css";
6850
+ import { Fragment as Fragment14, jsx as jsx198, jsxs as jsxs154 } from "react/jsx-runtime";
6851
+ function FloatingActionButton({
6852
+ label,
6853
+ icon,
6854
+ extended = false,
6855
+ className,
6856
+ href,
6857
+ type = "button",
6858
+ disabled,
6859
+ rel,
6860
+ target,
6861
+ ...rest
6862
+ }) {
6863
+ const cls = [styles71.fab, extended ? styles71.extended : "", className].filter(Boolean).join(" ");
6864
+ const content = /* @__PURE__ */ jsxs154(Fragment14, { children: [
6865
+ /* @__PURE__ */ jsx198("span", { className: styles71.icon, "aria-hidden": "true", children: icon }),
6866
+ extended ? /* @__PURE__ */ jsx198("span", { className: styles71.label, children: label }) : null
6867
+ ] });
6868
+ if (href !== void 0) {
6869
+ return /* @__PURE__ */ jsx198(
6870
+ "a",
6871
+ {
6872
+ ...rest,
6873
+ href,
6874
+ ...rel !== void 0 ? { rel } : {},
6875
+ ...target !== void 0 ? { target } : {},
6876
+ className: cls,
6877
+ "aria-label": label,
6878
+ children: content
6879
+ }
6880
+ );
6881
+ }
6882
+ return /* @__PURE__ */ jsx198("button", { ...rest, type, disabled, className: cls, "aria-label": label, children: content });
6883
+ }
6884
+
6885
+ // src/components/PhotoViewer/PhotoGrid.tsx
6886
+ import { useState as useState18 } from "react";
6887
+
6888
+ // src/components/PhotoViewer/PhotoViewer.tsx
6889
+ import {
6890
+ useCallback as useCallback5,
6891
+ useEffect as useEffect12,
6892
+ useRef as useRef19,
6893
+ useState as useState17
6894
+ } from "react";
6895
+ import { createPortal as createPortal4 } from "react-dom";
6896
+
6897
+ // src/components/PhotoViewer/photoGestures.ts
6898
+ var MIN_SCALE = 1;
6899
+ var MAX_SCALE = 5;
6900
+ var DOUBLE_TAP_SCALE = 2.5;
6901
+ var SWIPE_FRACTION = 0.2;
6902
+ var SWIPE_VELOCITY = 0.5;
6903
+ var DISMISS_DISTANCE = 110;
6904
+ var DISMISS_VELOCITY = 0.6;
6905
+ var DOUBLE_TAP_MS2 = 300;
6906
+ var DOUBLE_TAP_PX = 32;
6907
+ var clamp2 = (value, low, high) => Math.min(high, Math.max(low, value));
6908
+ var clampScale = (scale) => clamp2(scale, MIN_SCALE, MAX_SCALE);
6909
+ var distance = (a, b) => Math.hypot(a.x - b.x, a.y - b.y);
6910
+ var midpoint = (a, b) => ({ x: (a.x + b.x) / 2, y: (a.y + b.y) / 2 });
6911
+ function pinchScale(startScale, startDistance, nowDistance) {
6912
+ if (startDistance <= 0) return clampScale(startScale);
6913
+ return clampScale(startScale * nowDistance / startDistance);
6914
+ }
6915
+ function panLimit(size, box, scale) {
6916
+ return {
6917
+ x: Math.max(0, (size.width * scale - box.width) / 2),
6918
+ y: Math.max(0, (size.height * scale - box.height) / 2)
6919
+ };
6920
+ }
6921
+ function clampPan(pan, size, box, scale) {
6922
+ const limit = panLimit(size, box, scale);
6923
+ return { x: clamp2(pan.x, -limit.x, limit.x), y: clamp2(pan.y, -limit.y, limit.y) };
6924
+ }
6925
+ function panAfterZoom(pan, focus, from, to) {
6926
+ const ratio = to / from;
6927
+ return { x: focus.x - (focus.x - pan.x) * ratio, y: focus.y - (focus.y - pan.y) * ratio };
6928
+ }
6929
+ function judgeDrag(input) {
6930
+ const { dx, dy, width, hasPrevious, hasNext } = input;
6931
+ const ms = Math.max(1, input.ms);
6932
+ if (Math.abs(dx) >= Math.abs(dy)) {
6933
+ const quick = Math.abs(dx) / ms >= SWIPE_VELOCITY && Math.abs(dx) >= 24;
6934
+ if (Math.abs(dx) >= width * SWIPE_FRACTION || quick) {
6935
+ if (dx < 0 && hasNext) return { kind: "next" };
6936
+ if (dx > 0 && hasPrevious) return { kind: "previous" };
6937
+ }
6938
+ return { kind: "stay" };
6939
+ }
6940
+ if (dy > 0 && (dy >= DISMISS_DISTANCE || dy / ms >= DISMISS_VELOCITY && dy >= 40))
6941
+ return { kind: "dismiss" };
6942
+ return { kind: "stay" };
6943
+ }
6944
+ function isDoubleTap(last, now) {
6945
+ return last !== void 0 && now.at - last.at <= DOUBLE_TAP_MS2 && distance(last.point, now.point) <= DOUBLE_TAP_PX;
6946
+ }
6947
+ var doubleTapScale = (scale) => scale > MIN_SCALE + 0.01 ? MIN_SCALE : DOUBLE_TAP_SCALE;
6948
+ var stepIndex = (index, step, count) => clamp2(index + step, 0, Math.max(0, count - 1));
6949
+
6950
+ // src/components/PhotoViewer/PhotoViewer.tsx
6951
+ import styles72 from "./PhotoViewer.module.css";
6952
+ import { jsx as jsx199, jsxs as jsxs155 } from "react/jsx-runtime";
6953
+ var TAP_SLOP_PX = 8;
6954
+ function PhotoViewer({
6955
+ photos,
6956
+ open,
6957
+ index,
6958
+ onIndexChange,
6959
+ onClose,
6960
+ label = "Photos"
6961
+ }) {
6962
+ const panelRef = useRef19(null);
6963
+ const stageRef = useRef19(null);
6964
+ const imageRef = useRef19(null);
6965
+ const reducedMotion = usePrefersReducedMotion();
6966
+ const { mounted, phase } = useMountTransition(
6967
+ open,
6968
+ reducedMotion ? 0 : OVERLAY_MOTION_DURATION_MS
6969
+ );
6970
+ const portalTarget = useOverlayPortalTarget();
6971
+ useOverlayScrollLock(mounted);
6972
+ useOverlayFocusCapture(panelRef, mounted && portalTarget !== null);
6973
+ useOverlayKeyboardTrap(panelRef, open, onClose);
6974
+ const count = photos.length;
6975
+ const current = clamp2(index, 0, Math.max(0, count - 1));
6976
+ const photo = photos[current];
6977
+ const [scale, setScale] = useState17(MIN_SCALE);
6978
+ const [pan, setPan] = useState17({ x: 0, y: 0 });
6979
+ const [drag, setDrag] = useState17({ x: 0, y: 0 });
6980
+ const [dragging, setDragging] = useState17(false);
6981
+ const [failed, setFailed] = useState17(false);
6982
+ const pointers = useRef19(/* @__PURE__ */ new Map());
6983
+ const gesture = useRef19({
6984
+ startScale: 1,
6985
+ startPan: { x: 0, y: 0 },
6986
+ startDistance: 0,
6987
+ start: { x: 0, y: 0 },
6988
+ startAt: 0,
6989
+ axis: void 0,
6990
+ moved: false,
6991
+ pinched: false
6992
+ });
6993
+ const lastTap = useRef19(void 0);
6994
+ useEffect12(() => {
6995
+ setScale(MIN_SCALE);
6996
+ setPan({ x: 0, y: 0 });
6997
+ setDrag({ x: 0, y: 0 });
6998
+ setFailed(false);
6999
+ }, [current, open]);
7000
+ useEffect12(() => {
7001
+ if (!open) return;
7002
+ for (const next of [photos[current - 1], photos[current + 1]]) {
7003
+ if (next) new Image().src = next.src;
7004
+ }
7005
+ }, [open, current, photos]);
7006
+ const go = useCallback5(
7007
+ (step) => {
7008
+ const next = stepIndex(current, step, count);
7009
+ if (next !== current) onIndexChange(next);
7010
+ },
7011
+ [current, count, onIndexChange]
7012
+ );
7013
+ const sizes = useCallback5(() => {
7014
+ const stage = stageRef.current?.getBoundingClientRect();
7015
+ const image = imageRef.current;
7016
+ const box = { width: stage?.width ?? 0, height: stage?.height ?? 0 };
7017
+ const natural = {
7018
+ width: image?.naturalWidth || box.width,
7019
+ height: image?.naturalHeight || box.height
7020
+ };
7021
+ const fit = Math.min(box.width / natural.width, box.height / natural.height) || 1;
7022
+ return { box, size: { width: natural.width * fit, height: natural.height * fit } };
7023
+ }, []);
7024
+ const zoomTo = useCallback5(
7025
+ (next, focus = { x: 0, y: 0 }) => {
7026
+ const to = clampScale(next);
7027
+ const { box, size } = sizes();
7028
+ setPan((from) => clampPan(panAfterZoom(from, focus, scale, to), size, box, to));
7029
+ setScale(to);
7030
+ },
7031
+ [scale, sizes]
7032
+ );
7033
+ useEffect12(() => {
7034
+ if (!open) return;
7035
+ function onKey(event) {
7036
+ if (event.key === "ArrowRight") go(1);
7037
+ else if (event.key === "ArrowLeft") go(-1);
7038
+ else if (event.key === "Home") onIndexChange(0);
7039
+ else if (event.key === "End") onIndexChange(Math.max(0, count - 1));
7040
+ else if (event.key === "+" || event.key === "=") zoomTo(scale * 1.5);
7041
+ else if (event.key === "-") zoomTo(scale / 1.5);
7042
+ else if (event.key === "0") zoomTo(MIN_SCALE);
7043
+ else return;
7044
+ event.preventDefault();
7045
+ }
7046
+ document.addEventListener("keydown", onKey);
7047
+ return () => document.removeEventListener("keydown", onKey);
7048
+ }, [open, go, onIndexChange, count, zoomTo, scale]);
7049
+ const focusOf = (x, y) => {
7050
+ const rect = stageRef.current?.getBoundingClientRect();
7051
+ return rect ? { x: x - rect.left - rect.width / 2, y: y - rect.top - rect.height / 2 } : { x: 0, y: 0 };
7052
+ };
7053
+ function onPointerDown(event) {
7054
+ if (event.pointerType === "mouse" && event.button !== 0) return;
7055
+ event.currentTarget.setPointerCapture?.(event.pointerId);
7056
+ pointers.current.set(event.pointerId, { x: event.clientX, y: event.clientY });
7057
+ const g = gesture.current;
7058
+ if (pointers.current.size === 1) {
7059
+ g.start = { x: event.clientX, y: event.clientY };
7060
+ g.startAt = event.timeStamp;
7061
+ g.startScale = scale;
7062
+ g.startPan = pan;
7063
+ g.axis = void 0;
7064
+ g.moved = false;
7065
+ g.pinched = false;
7066
+ setDragging(true);
7067
+ } else if (pointers.current.size === 2) {
7068
+ const [a, b] = [...pointers.current.values()];
7069
+ g.startDistance = distance(a, b);
7070
+ g.startScale = scale;
7071
+ g.startPan = pan;
7072
+ g.pinched = true;
7073
+ g.moved = true;
7074
+ setDrag({ x: 0, y: 0 });
7075
+ }
7076
+ }
7077
+ function onPointerMove(event) {
7078
+ if (!pointers.current.has(event.pointerId)) return;
7079
+ pointers.current.set(event.pointerId, { x: event.clientX, y: event.clientY });
7080
+ const g = gesture.current;
7081
+ const { box, size } = sizes();
7082
+ if (pointers.current.size >= 2) {
7083
+ const [a, b] = [...pointers.current.values()];
7084
+ const to = pinchScale(g.startScale, g.startDistance, distance(a, b));
7085
+ const mid = midpoint(a, b);
7086
+ const focus = focusOf(mid.x, mid.y);
7087
+ setPan(clampPan(panAfterZoom(g.startPan, focus, g.startScale, to), size, box, to));
7088
+ setScale(to);
7089
+ return;
7090
+ }
7091
+ if (g.pinched) return;
7092
+ const dx = event.clientX - g.start.x;
7093
+ const dy = event.clientY - g.start.y;
7094
+ if (!g.moved && Math.hypot(dx, dy) < TAP_SLOP_PX) return;
7095
+ g.moved = true;
7096
+ if (scale > MIN_SCALE) {
7097
+ setPan(clampPan({ x: g.startPan.x + dx, y: g.startPan.y + dy }, size, box, scale));
7098
+ return;
7099
+ }
7100
+ g.axis ??= Math.abs(dx) >= Math.abs(dy) ? "x" : "y";
7101
+ setDrag(g.axis === "x" ? { x: dx, y: 0 } : { x: 0, y: Math.max(0, dy) });
7102
+ }
7103
+ function onPointerUp(event) {
7104
+ if (!pointers.current.has(event.pointerId)) return;
7105
+ pointers.current.delete(event.pointerId);
7106
+ const g = gesture.current;
7107
+ if (pointers.current.size > 0) return;
7108
+ setDragging(false);
7109
+ if (g.pinched) {
7110
+ g.pinched = false;
7111
+ setDrag({ x: 0, y: 0 });
7112
+ return;
7113
+ }
7114
+ if (!g.moved) {
7115
+ const tap = { at: event.timeStamp, point: { x: event.clientX, y: event.clientY } };
7116
+ if (isDoubleTap(lastTap.current, tap)) {
7117
+ lastTap.current = void 0;
7118
+ zoomTo(doubleTapScale(scale), focusOf(event.clientX, event.clientY));
7119
+ } else lastTap.current = tap;
7120
+ return;
7121
+ }
7122
+ if (scale > MIN_SCALE) return;
7123
+ const result = judgeDrag({
7124
+ dx: event.clientX - g.start.x,
7125
+ dy: event.clientY - g.start.y,
7126
+ ms: event.timeStamp - g.startAt,
7127
+ width: stageRef.current?.getBoundingClientRect().width ?? 1,
7128
+ hasPrevious: current > 0,
7129
+ hasNext: current < count - 1
7130
+ });
7131
+ setDrag({ x: 0, y: 0 });
7132
+ if (result.kind === "next") go(1);
7133
+ else if (result.kind === "previous") go(-1);
7134
+ else if (result.kind === "dismiss") onClose();
7135
+ }
7136
+ function onPointerCancel(event) {
7137
+ pointers.current.delete(event.pointerId);
7138
+ if (pointers.current.size === 0) {
7139
+ gesture.current.pinched = false;
7140
+ setDragging(false);
7141
+ setDrag({ x: 0, y: 0 });
7142
+ }
7143
+ }
7144
+ function onWheel(event) {
7145
+ zoomTo(
7146
+ scale * Math.exp(-event.deltaY * (event.ctrlKey ? 0.01 : 2e-3)),
7147
+ focusOf(event.clientX, event.clientY)
7148
+ );
7149
+ }
7150
+ function onStageKeyDown(event) {
7151
+ if (scale <= MIN_SCALE) return;
7152
+ const step = 60;
7153
+ const moves = {
7154
+ ArrowUp: { x: 0, y: step },
7155
+ ArrowDown: { x: 0, y: -step },
7156
+ ArrowLeft: { x: step, y: 0 },
7157
+ ArrowRight: { x: -step, y: 0 }
7158
+ };
7159
+ const move = moves[event.key];
7160
+ if (!move) return;
7161
+ const { box, size } = sizes();
7162
+ setPan((from) => clampPan({ x: from.x + move.x, y: from.y + move.y }, size, box, scale));
7163
+ event.stopPropagation();
7164
+ event.preventDefault();
7165
+ }
7166
+ if (!mounted || !portalTarget || !photo) return null;
7167
+ const isOpenPhase = phase === "open";
7168
+ const fade = clamp2(1 - drag.y / 400, 0.3, 1);
7169
+ const transform = `translate3d(${pan.x + drag.x}px, ${pan.y + drag.y}px, 0) scale(${scale})`;
7170
+ return createPortal4(
7171
+ /* @__PURE__ */ jsx199(
7172
+ "div",
7173
+ {
7174
+ className: [styles72.scrim, isOpenPhase ? styles72.scrimOpen : ""].filter(Boolean).join(" "),
7175
+ style: { ["--photo-fade"]: String(fade) },
7176
+ children: /* @__PURE__ */ jsxs155(
7177
+ "div",
7178
+ {
7179
+ ref: panelRef,
7180
+ role: "dialog",
7181
+ "aria-modal": "true",
7182
+ "aria-label": label,
7183
+ "aria-roledescription": "photo viewer",
7184
+ tabIndex: -1,
7185
+ className: styles72.panel,
7186
+ children: [
7187
+ /* @__PURE__ */ jsxs155("div", { className: styles72.bar, children: [
7188
+ /* @__PURE__ */ jsxs155("span", { className: styles72.count, "aria-live": "polite", "aria-atomic": "true", children: [
7189
+ current + 1,
7190
+ " of ",
7191
+ count
7192
+ ] }),
7193
+ /* @__PURE__ */ jsx199("button", { type: "button", className: styles72.control, "aria-label": "Close", onClick: onClose, children: /* @__PURE__ */ jsx199(Icon, { name: "x", size: "md", "aria-hidden": true }) })
7194
+ ] }),
7195
+ /* @__PURE__ */ jsx199(
7196
+ "div",
7197
+ {
7198
+ ref: stageRef,
7199
+ className: styles72.stage,
7200
+ onPointerDown,
7201
+ onPointerMove,
7202
+ onPointerUp,
7203
+ onPointerCancel,
7204
+ onWheel,
7205
+ onKeyDown: onStageKeyDown,
7206
+ children: failed ? /* @__PURE__ */ jsx199("p", { className: styles72.failed, role: "status", children: "This photo could not be shown." }) : /* @__PURE__ */ jsx199(
7207
+ "img",
7208
+ {
7209
+ ref: imageRef,
7210
+ src: photo.src,
7211
+ alt: photo.alt,
7212
+ draggable: false,
7213
+ className: [styles72.image, dragging ? styles72.dragging : ""].filter(Boolean).join(" "),
7214
+ style: { transform },
7215
+ onError: () => setFailed(true)
7216
+ },
7217
+ photo.id
7218
+ )
7219
+ }
7220
+ ),
7221
+ current > 0 ? /* @__PURE__ */ jsx199(
7222
+ "button",
7223
+ {
7224
+ type: "button",
7225
+ className: [styles72.control, styles72.previous].join(" "),
7226
+ "aria-label": "Previous photo",
7227
+ onClick: () => go(-1),
7228
+ children: /* @__PURE__ */ jsx199(Icon, { name: "chevron-left", size: "md", "aria-hidden": true })
7229
+ }
7230
+ ) : null,
7231
+ current < count - 1 ? /* @__PURE__ */ jsx199(
7232
+ "button",
7233
+ {
7234
+ type: "button",
7235
+ className: [styles72.control, styles72.next].join(" "),
7236
+ "aria-label": "Next photo",
7237
+ onClick: () => go(1),
7238
+ children: /* @__PURE__ */ jsx199(Icon, { name: "chevron-right", size: "md", "aria-hidden": true })
7239
+ }
7240
+ ) : null,
7241
+ photo.caption ? /* @__PURE__ */ jsx199("div", { className: styles72.caption, children: photo.caption }) : null
7242
+ ]
7243
+ }
7244
+ )
7245
+ }
7246
+ ),
7247
+ portalTarget
7248
+ );
7249
+ }
7250
+
7251
+ // src/components/PhotoViewer/PhotoGrid.tsx
7252
+ import styles73 from "./PhotoGrid.module.css";
7253
+ import { Fragment as Fragment15, jsx as jsx200, jsxs as jsxs156 } from "react/jsx-runtime";
7254
+ function PhotoGrid({ photos, onOpen, label = "Photos", className }) {
7255
+ if (photos.length === 0) return null;
7256
+ 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(
7257
+ "button",
7258
+ {
7259
+ type: "button",
7260
+ className: styles73.thumb,
7261
+ "aria-label": `Photo ${index + 1} of ${photos.length}: ${photo.alt}`,
7262
+ onClick: () => onOpen(index),
7263
+ children: /* @__PURE__ */ jsx200(
7264
+ "img",
7265
+ {
7266
+ src: photo.thumbSrc ?? photo.src,
7267
+ alt: "",
7268
+ loading: "lazy",
7269
+ decoding: "async",
7270
+ draggable: false,
7271
+ className: styles73.img
7272
+ }
7273
+ )
7274
+ }
7275
+ ) }, photo.id)) });
7276
+ }
7277
+ function PhotoGallery({ photos, label, className, onView }) {
7278
+ const [open, setOpen] = useState18(false);
7279
+ const [index, setIndex] = useState18(0);
7280
+ return /* @__PURE__ */ jsxs156(Fragment15, { children: [
7281
+ /* @__PURE__ */ jsx200(
7282
+ PhotoGrid,
7283
+ {
7284
+ photos,
7285
+ ...label !== void 0 ? { label } : {},
7286
+ ...className !== void 0 ? { className } : {},
7287
+ onOpen: (next) => {
7288
+ setIndex(next);
7289
+ setOpen(true);
7290
+ onView?.(next);
7291
+ }
7292
+ }
7293
+ ),
7294
+ /* @__PURE__ */ jsx200(
7295
+ PhotoViewer,
7296
+ {
7297
+ photos,
7298
+ open,
7299
+ index,
7300
+ ...label !== void 0 ? { label } : {},
7301
+ onIndexChange: (next) => {
7302
+ setIndex(next);
7303
+ onView?.(next);
7304
+ },
7305
+ onClose: () => setOpen(false)
7306
+ }
7307
+ )
7308
+ ] });
6697
7309
  }
6698
7310
 
6699
7311
  // src/components/Marker/Marker.tsx
6700
- import styles68 from "./Marker.module.css";
6701
- import { jsx as jsx194 } from "react/jsx-runtime";
7312
+ import styles74 from "./Marker.module.css";
7313
+ import { jsx as jsx201 } from "react/jsx-runtime";
6702
7314
  function Marker({ index, label, onClick, className }) {
6703
- const classes = [styles68.marker, className].filter(Boolean).join(" ");
7315
+ const classes = [styles74.marker, className].filter(Boolean).join(" ");
6704
7316
  if (onClick) {
6705
- return /* @__PURE__ */ jsx194("button", { type: "button", onClick, "aria-label": label, className: classes, children: index });
7317
+ return /* @__PURE__ */ jsx201("button", { type: "button", onClick, "aria-label": label, className: classes, children: index });
6706
7318
  }
6707
- return /* @__PURE__ */ jsx194("span", { "aria-label": label, className: classes, children: index });
7319
+ return /* @__PURE__ */ jsx201("span", { "aria-label": label, className: classes, children: index });
6708
7320
  }
6709
7321
 
6710
7322
  // src/components/Message/Message.tsx
6711
- import styles69 from "./Message.module.css";
6712
- import { jsx as jsx195, jsxs as jsxs151 } from "react/jsx-runtime";
7323
+ import styles75 from "./Message.module.css";
7324
+ import { jsx as jsx202, jsxs as jsxs157 } from "react/jsx-runtime";
6713
7325
  function Message({ sender, children, pending, actions, className }) {
6714
- return /* @__PURE__ */ jsxs151("div", { className: [styles69.row, styles69[sender], className].filter(Boolean).join(" "), children: [
6715
- /* @__PURE__ */ jsx195("div", { className: styles69.bubble, children: pending ? /* @__PURE__ */ jsxs151("span", { className: styles69.typingDots, "aria-label": "Thinking", children: [
6716
- /* @__PURE__ */ jsx195("span", { className: styles69.dot }),
6717
- /* @__PURE__ */ jsx195("span", { className: styles69.dot }),
6718
- /* @__PURE__ */ jsx195("span", { className: styles69.dot })
7326
+ return /* @__PURE__ */ jsxs157("div", { className: [styles75.row, styles75[sender], className].filter(Boolean).join(" "), children: [
7327
+ /* @__PURE__ */ jsx202("div", { className: styles75.bubble, children: pending ? /* @__PURE__ */ jsxs157("span", { className: styles75.typingDots, "aria-label": "Thinking", children: [
7328
+ /* @__PURE__ */ jsx202("span", { className: styles75.dot }),
7329
+ /* @__PURE__ */ jsx202("span", { className: styles75.dot }),
7330
+ /* @__PURE__ */ jsx202("span", { className: styles75.dot })
6719
7331
  ] }) : children }),
6720
- actions && !pending && /* @__PURE__ */ jsx195("div", { className: styles69.actions, children: actions })
7332
+ actions && !pending && /* @__PURE__ */ jsx202("div", { className: styles75.actions, children: actions })
6721
7333
  ] });
6722
7334
  }
6723
7335
 
6724
7336
  // src/components/MessageScroller/MessageScroller.tsx
6725
- import { useEffect as useEffect13, useRef as useRef19, useState as useState17 } from "react";
6726
- import styles70 from "./MessageScroller.module.css";
6727
- import { jsx as jsx196, jsxs as jsxs152 } from "react/jsx-runtime";
7337
+ import { useEffect as useEffect13, useRef as useRef20, useState as useState19 } from "react";
7338
+ import styles76 from "./MessageScroller.module.css";
7339
+ import { jsx as jsx203, jsxs as jsxs158 } from "react/jsx-runtime";
6728
7340
  var NEAR_BOTTOM_THRESHOLD_PX = 80;
6729
7341
  function MessageScroller({ children, className }) {
6730
- const containerRef = useRef19(null);
6731
- const isNearBottomRef = useRef19(true);
6732
- const [hasNewMessages, setHasNewMessages] = useState17(false);
7342
+ const containerRef = useRef20(null);
7343
+ const isNearBottomRef = useRef20(true);
7344
+ const [hasNewMessages, setHasNewMessages] = useState19(false);
6733
7345
  useEffect13(() => {
6734
7346
  const el = containerRef.current;
6735
7347
  if (!el) return;
@@ -6755,23 +7367,23 @@ function MessageScroller({ children, className }) {
6755
7367
  isNearBottomRef.current = true;
6756
7368
  setHasNewMessages(false);
6757
7369
  }
6758
- return /* @__PURE__ */ jsxs152("div", { className: [styles70.root, className].filter(Boolean).join(" "), children: [
6759
- /* @__PURE__ */ jsxs152("div", { className: styles70.scrollContainer, ref: containerRef, onScroll: handleScroll, children: [
6760
- /* @__PURE__ */ jsx196("div", { className: styles70.spacer, "aria-hidden": "true" }),
7370
+ return /* @__PURE__ */ jsxs158("div", { className: [styles76.root, className].filter(Boolean).join(" "), children: [
7371
+ /* @__PURE__ */ jsxs158("div", { className: styles76.scrollContainer, ref: containerRef, onScroll: handleScroll, children: [
7372
+ /* @__PURE__ */ jsx203("div", { className: styles76.spacer, "aria-hidden": "true" }),
6761
7373
  children
6762
7374
  ] }),
6763
- hasNewMessages && /* @__PURE__ */ jsx196("button", { type: "button", className: styles70.jumpButton, onClick: scrollToBottom, children: "New messages \u2193" })
7375
+ hasNewMessages && /* @__PURE__ */ jsx203("button", { type: "button", className: styles76.jumpButton, onClick: scrollToBottom, children: "New messages \u2193" })
6764
7376
  ] });
6765
7377
  }
6766
7378
 
6767
7379
  // src/components/HoverCard/HoverCard.tsx
6768
- import { cloneElement, useEffect as useEffect14, useRef as useRef20, useState as useState18 } from "react";
6769
- import styles71 from "./HoverCard.module.css";
6770
- import { jsx as jsx197 } from "react/jsx-runtime";
7380
+ import { cloneElement, useEffect as useEffect14, useRef as useRef21, useState as useState20 } from "react";
7381
+ import styles77 from "./HoverCard.module.css";
7382
+ import { jsx as jsx204 } from "react/jsx-runtime";
6771
7383
  var OPEN_DELAY_MS = 400;
6772
7384
  var CLOSE_DELAY_MS = 150;
6773
7385
  function useHoverCapable() {
6774
- const [hoverCapable, setHoverCapable] = useState18(true);
7386
+ const [hoverCapable, setHoverCapable] = useState20(true);
6775
7387
  useEffect14(() => {
6776
7388
  const mql = window.matchMedia("(hover: hover)");
6777
7389
  setHoverCapable(mql.matches);
@@ -6790,10 +7402,10 @@ function HoverCard({
6790
7402
  width,
6791
7403
  "aria-label": ariaLabel
6792
7404
  }) {
6793
- const [open, setOpen] = useState18(false);
7405
+ const [open, setOpen] = useState20(false);
6794
7406
  const hoverCapable = useHoverCapable();
6795
- const openTimer = useRef20(void 0);
6796
- const closeTimer = useRef20(void 0);
7407
+ const openTimer = useRef21(void 0);
7408
+ const closeTimer = useRef21(void 0);
6797
7409
  function scheduleOpen() {
6798
7410
  clearTimeout(closeTimer.current);
6799
7411
  openTimer.current = setTimeout(() => setOpen(true), OPEN_DELAY_MS);
@@ -6812,13 +7424,13 @@ function HoverCard({
6812
7424
  onBlur: scheduleClose
6813
7425
  } : { onClick: () => setOpen((o) => !o) };
6814
7426
  const wrappedTrigger = cloneElement(trigger, triggerHandlers);
6815
- return /* @__PURE__ */ jsx197(
7427
+ return /* @__PURE__ */ jsx204(
6816
7428
  "div",
6817
7429
  {
6818
- className: styles71.root,
7430
+ className: styles77.root,
6819
7431
  onMouseEnter: hoverCapable ? cancelScheduledClose : void 0,
6820
7432
  onMouseLeave: hoverCapable ? scheduleClose : void 0,
6821
- children: /* @__PURE__ */ jsx197(
7433
+ children: /* @__PURE__ */ jsx204(
6822
7434
  Popover,
6823
7435
  {
6824
7436
  trigger: wrappedTrigger,
@@ -6835,12 +7447,12 @@ function HoverCard({
6835
7447
  }
6836
7448
 
6837
7449
  // src/components/ContextMenu/ContextMenu.tsx
6838
- import { cloneElement as cloneElement2, useState as useState19 } from "react";
6839
- import { Fragment as Fragment13, jsx as jsx198, jsxs as jsxs153 } from "react/jsx-runtime";
7450
+ import { cloneElement as cloneElement2, useState as useState21 } from "react";
7451
+ import { Fragment as Fragment16, jsx as jsx205, jsxs as jsxs159 } from "react/jsx-runtime";
6840
7452
  function ContextMenu({ children, items, "aria-label": ariaLabel }) {
6841
7453
  const isMobile = useIsMobile();
6842
- const [open, setOpen] = useState19(false);
6843
- const [point, setPoint] = useState19({ x: 0, y: 0 });
7454
+ const [open, setOpen] = useState21(false);
7455
+ const [point, setPoint] = useState21({ x: 0, y: 0 });
6844
7456
  const longPressHandlers = useLongPress({
6845
7457
  onLongPress: () => setOpen(true),
6846
7458
  disabled: !isMobile
@@ -6854,7 +7466,7 @@ function ContextMenu({ children, items, "aria-label": ariaLabel }) {
6854
7466
  children,
6855
7467
  isMobile ? longPressHandlers : { onContextMenu: handleContextMenu }
6856
7468
  );
6857
- const list = /* @__PURE__ */ jsx198(
7469
+ const list = /* @__PURE__ */ jsx205(
6858
7470
  MenuEntries,
6859
7471
  {
6860
7472
  items,
@@ -6865,17 +7477,17 @@ function ContextMenu({ children, items, "aria-label": ariaLabel }) {
6865
7477
  }
6866
7478
  );
6867
7479
  if (isMobile) {
6868
- return /* @__PURE__ */ jsxs153(Fragment13, { children: [
7480
+ return /* @__PURE__ */ jsxs159(Fragment16, { children: [
6869
7481
  wrappedChild,
6870
- /* @__PURE__ */ jsx198(Drawer, { open, onClose: () => setOpen(false), "aria-label": ariaLabel, children: list })
7482
+ /* @__PURE__ */ jsx205(Drawer, { open, onClose: () => setOpen(false), "aria-label": ariaLabel, children: list })
6871
7483
  ] });
6872
7484
  }
6873
- return /* @__PURE__ */ jsxs153(Fragment13, { children: [
7485
+ return /* @__PURE__ */ jsxs159(Fragment16, { children: [
6874
7486
  wrappedChild,
6875
- open && /* @__PURE__ */ jsx198("div", { style: { position: "fixed", left: point.x, top: point.y, width: 0, height: 0 }, children: /* @__PURE__ */ jsx198(
7487
+ open && /* @__PURE__ */ jsx205("div", { style: { position: "fixed", left: point.x, top: point.y, width: 0, height: 0 }, children: /* @__PURE__ */ jsx205(
6876
7488
  Popover,
6877
7489
  {
6878
- trigger: /* @__PURE__ */ jsx198("span", {}),
7490
+ trigger: /* @__PURE__ */ jsx205("span", {}),
6879
7491
  open,
6880
7492
  onClose: () => setOpen(false),
6881
7493
  "aria-label": ariaLabel,
@@ -6886,16 +7498,16 @@ function ContextMenu({ children, items, "aria-label": ariaLabel }) {
6886
7498
  }
6887
7499
 
6888
7500
  // src/components/NavigationMenu/NavigationMenu.tsx
6889
- import { useRef as useRef21, useState as useState20 } from "react";
6890
- import styles72 from "./NavigationMenu.module.css";
6891
- import { jsx as jsx199 } from "react/jsx-runtime";
7501
+ import { useRef as useRef22, useState as useState22 } from "react";
7502
+ import styles78 from "./NavigationMenu.module.css";
7503
+ import { jsx as jsx206 } from "react/jsx-runtime";
6892
7504
  function NavigationMenu({
6893
7505
  items,
6894
7506
  renderLink,
6895
7507
  "aria-label": ariaLabel
6896
7508
  }) {
6897
- const [openIndex, setOpenIndex] = useState20(null);
6898
- const triggerRefs = useRef21([]);
7509
+ const [openIndex, setOpenIndex] = useState22(null);
7510
+ const triggerRefs = useRef22([]);
6899
7511
  function handleKeyDown(e, index) {
6900
7512
  if (e.key === "Escape") {
6901
7513
  setOpenIndex(null);
@@ -6909,26 +7521,26 @@ function NavigationMenu({
6909
7521
  triggerRefs.current[nextIndex]?.focus();
6910
7522
  }
6911
7523
  }
6912
- return /* @__PURE__ */ jsx199("nav", { "aria-label": ariaLabel, className: styles72.nav, children: /* @__PURE__ */ jsx199("ul", { className: styles72.list, children: items.map((item, index) => {
7524
+ return /* @__PURE__ */ jsx206("nav", { "aria-label": ariaLabel, className: styles78.nav, children: /* @__PURE__ */ jsx206("ul", { className: styles78.list, children: items.map((item, index) => {
6913
7525
  if (!item.content) {
6914
7526
  const linkChildren = item.label;
6915
- return /* @__PURE__ */ jsx199("li", { children: item.href && renderLink ? renderLink(item.href, linkChildren) : /* @__PURE__ */ jsx199("a", { href: item.href, className: styles72.link, children: linkChildren }) }, item.label);
7527
+ 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);
6916
7528
  }
6917
7529
  const isOpen = openIndex === index;
6918
- return /* @__PURE__ */ jsx199("li", { children: /* @__PURE__ */ jsx199(
7530
+ return /* @__PURE__ */ jsx206("li", { children: /* @__PURE__ */ jsx206(
6919
7531
  Popover,
6920
7532
  {
6921
7533
  "aria-label": item.label,
6922
7534
  open: isOpen,
6923
7535
  onClose: () => setOpenIndex((current) => current === index ? null : current),
6924
- trigger: /* @__PURE__ */ jsx199(
7536
+ trigger: /* @__PURE__ */ jsx206(
6925
7537
  "button",
6926
7538
  {
6927
7539
  ref: (el) => {
6928
7540
  triggerRefs.current[index] = el;
6929
7541
  },
6930
7542
  type: "button",
6931
- className: [styles72.trigger, isOpen ? styles72.triggerOpen : ""].filter(Boolean).join(" "),
7543
+ className: [styles78.trigger, isOpen ? styles78.triggerOpen : ""].filter(Boolean).join(" "),
6932
7544
  "aria-expanded": isOpen,
6933
7545
  onClick: () => setOpenIndex((current) => current === index ? null : index),
6934
7546
  onMouseEnter: () => {
@@ -6945,15 +7557,15 @@ function NavigationMenu({
6945
7557
  }
6946
7558
 
6947
7559
  // src/components/Menubar/Menubar.tsx
6948
- import { jsx as jsx200 } from "react/jsx-runtime";
7560
+ import { jsx as jsx207 } from "react/jsx-runtime";
6949
7561
  function Menubar({ menus, "aria-label": ariaLabel = "Menu bar" }) {
6950
- return /* @__PURE__ */ jsx200(
7562
+ return /* @__PURE__ */ jsx207(
6951
7563
  NavigationMenu,
6952
7564
  {
6953
7565
  "aria-label": ariaLabel,
6954
7566
  items: menus.map((menu) => ({
6955
7567
  label: menu.label,
6956
- content: (close) => /* @__PURE__ */ jsx200(
7568
+ content: (close) => /* @__PURE__ */ jsx207(
6957
7569
  MenuEntries,
6958
7570
  {
6959
7571
  items: menu.items,
@@ -6969,9 +7581,9 @@ function Menubar({ menus, "aria-label": ariaLabel = "Menu bar" }) {
6969
7581
  }
6970
7582
 
6971
7583
  // src/components/Command/Command.tsx
6972
- import { useEffect as useEffect15, useId as useId9, useMemo as useMemo3, useRef as useRef22, useState as useState21 } from "react";
6973
- import styles73 from "./Command.module.css";
6974
- import { jsx as jsx201, jsxs as jsxs154 } from "react/jsx-runtime";
7584
+ import { useEffect as useEffect15, useId as useId9, useMemo as useMemo3, useRef as useRef23, useState as useState23 } from "react";
7585
+ import styles79 from "./Command.module.css";
7586
+ import { jsx as jsx208, jsxs as jsxs160 } from "react/jsx-runtime";
6975
7587
  function matches(item, query) {
6976
7588
  if (!query) return true;
6977
7589
  const haystack = `${item.label} ${item.keywords ?? ""}`.toLowerCase();
@@ -6984,9 +7596,9 @@ function Command({
6984
7596
  placeholder = "Type a command\u2026",
6985
7597
  "aria-label": ariaLabel = "Command palette"
6986
7598
  }) {
6987
- const [query, setQuery] = useState21("");
6988
- const [highlightedIndex, setHighlightedIndex] = useState21(0);
6989
- const inputRef = useRef22(null);
7599
+ const [query, setQuery] = useState23("");
7600
+ const [highlightedIndex, setHighlightedIndex] = useState23(0);
7601
+ const inputRef = useRef23(null);
6990
7602
  const listId = useId9();
6991
7603
  const filtered = useMemo3(() => items.filter((item) => matches(item, query)), [items, query]);
6992
7604
  useEffect15(() => {
@@ -7029,8 +7641,8 @@ function Command({
7029
7641
  return order.map((group) => ({ group, items: byGroup.get(group) ?? [] }));
7030
7642
  }, [filtered]);
7031
7643
  const highlightedId = filtered[highlightedIndex] ? `${listId}-${filtered[highlightedIndex].id}` : void 0;
7032
- return /* @__PURE__ */ jsx201(Dialog, { open, onClose, "aria-label": ariaLabel, size: "sm", children: /* @__PURE__ */ jsxs154("div", { className: styles73.root, children: [
7033
- /* @__PURE__ */ jsx201(
7644
+ return /* @__PURE__ */ jsx208(Dialog, { open, onClose, "aria-label": ariaLabel, size: "sm", children: /* @__PURE__ */ jsxs160("div", { className: styles79.root, children: [
7645
+ /* @__PURE__ */ jsx208(
7034
7646
  "input",
7035
7647
  {
7036
7648
  ref: inputRef,
@@ -7040,35 +7652,35 @@ function Command({
7040
7652
  "aria-controls": listId,
7041
7653
  "aria-activedescendant": highlightedId,
7042
7654
  "aria-autocomplete": "list",
7043
- className: styles73.input,
7655
+ className: styles79.input,
7044
7656
  placeholder,
7045
7657
  value: query,
7046
7658
  onChange: (e) => setQuery(e.target.value),
7047
7659
  onKeyDown: handleKeyDown
7048
7660
  }
7049
7661
  ),
7050
- /* @__PURE__ */ jsxs154("ul", { id: listId, role: "listbox", className: styles73.list, children: [
7051
- filtered.length === 0 && /* @__PURE__ */ jsx201("li", { className: styles73.empty, children: "No matching commands." }),
7052
- groups.map(({ group, items: groupItems }) => /* @__PURE__ */ jsxs154("li", { children: [
7053
- group && /* @__PURE__ */ jsx201("div", { className: styles73.groupLabel, children: group }),
7054
- /* @__PURE__ */ jsx201("ul", { className: styles73.groupList, children: groupItems.map((item) => {
7662
+ /* @__PURE__ */ jsxs160("ul", { id: listId, role: "listbox", className: styles79.list, children: [
7663
+ filtered.length === 0 && /* @__PURE__ */ jsx208("li", { className: styles79.empty, children: "No matching commands." }),
7664
+ groups.map(({ group, items: groupItems }) => /* @__PURE__ */ jsxs160("li", { children: [
7665
+ group && /* @__PURE__ */ jsx208("div", { className: styles79.groupLabel, children: group }),
7666
+ /* @__PURE__ */ jsx208("ul", { className: styles79.groupList, children: groupItems.map((item) => {
7055
7667
  const index = filtered.indexOf(item);
7056
7668
  const isHighlighted = index === highlightedIndex;
7057
- return /* @__PURE__ */ jsx201("li", { children: /* @__PURE__ */ jsxs154(
7669
+ return /* @__PURE__ */ jsx208("li", { children: /* @__PURE__ */ jsxs160(
7058
7670
  "button",
7059
7671
  {
7060
7672
  id: `${listId}-${item.id}`,
7061
7673
  type: "button",
7062
7674
  role: "option",
7063
7675
  "aria-selected": isHighlighted,
7064
- className: [styles73.item, isHighlighted ? styles73.itemHighlighted : ""].filter(Boolean).join(" "),
7676
+ className: [styles79.item, isHighlighted ? styles79.itemHighlighted : ""].filter(Boolean).join(" "),
7065
7677
  onMouseEnter: () => setHighlightedIndex(index),
7066
7678
  onClick: () => {
7067
7679
  onClose();
7068
7680
  item.onSelect();
7069
7681
  },
7070
7682
  children: [
7071
- item.icon && /* @__PURE__ */ jsx201(Icon, { name: item.icon, size: "sm", "aria-hidden": true }),
7683
+ item.icon && /* @__PURE__ */ jsx208(Icon, { name: item.icon, size: "sm", "aria-hidden": true }),
7072
7684
  item.label
7073
7685
  ]
7074
7686
  }
@@ -7080,11 +7692,11 @@ function Command({
7080
7692
  }
7081
7693
 
7082
7694
  // src/components/Resizable/Resizable.tsx
7083
- import { Children, isValidElement, useEffect as useEffect16, useRef as useRef23, useState as useState22 } from "react";
7084
- import styles74 from "./Resizable.module.css";
7085
- import { jsx as jsx202 } from "react/jsx-runtime";
7695
+ import { Children, isValidElement, useEffect as useEffect16, useRef as useRef24, useState as useState24 } from "react";
7696
+ import styles80 from "./Resizable.module.css";
7697
+ import { jsx as jsx209 } from "react/jsx-runtime";
7086
7698
  function ResizablePanel({ children, className, style }) {
7087
- return /* @__PURE__ */ jsx202("div", { className: [styles74.panel, className].filter(Boolean).join(" "), style, children });
7699
+ return /* @__PURE__ */ jsx209("div", { className: [styles80.panel, className].filter(Boolean).join(" "), style, children });
7088
7700
  }
7089
7701
  function ResizableHandle({
7090
7702
  "aria-label": ariaLabel = "Resize panels",
@@ -7097,10 +7709,10 @@ function ResizableHandle({
7097
7709
  }) {
7098
7710
  return (
7099
7711
  /* 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/). */
7100
- /* @__PURE__ */ jsx202(
7712
+ /* @__PURE__ */ jsx209(
7101
7713
  "div",
7102
7714
  {
7103
- className: [styles74.handle, direction === "vertical" ? styles74.handleVertical : ""].filter(Boolean).join(" "),
7715
+ className: [styles80.handle, direction === "vertical" ? styles80.handleVertical : ""].filter(Boolean).join(" "),
7104
7716
  role: "separator",
7105
7717
  tabIndex: 0,
7106
7718
  "aria-orientation": direction === "horizontal" ? "vertical" : "horizontal",
@@ -7114,7 +7726,7 @@ function ResizableHandle({
7114
7726
  )
7115
7727
  );
7116
7728
  }
7117
- var clamp2 = (value, min, max) => Math.min(Math.max(value, min), max);
7729
+ var clamp3 = (value, min, max) => Math.min(Math.max(value, min), max);
7118
7730
  function ResizablePanelGroup({ direction, children, className }) {
7119
7731
  const elements = Children.toArray(children).filter(isValidElement);
7120
7732
  const panelCount = elements.filter((el) => el.type === ResizablePanel).length;
@@ -7126,21 +7738,21 @@ function ResizablePanelGroup({ direction, children, className }) {
7126
7738
  maxSize: props.maxSize ?? 90
7127
7739
  };
7128
7740
  });
7129
- const [sizes, setSizes] = useState22(() => constraints.map((c) => c.defaultSize));
7741
+ const [sizes, setSizes] = useState24(() => constraints.map((c) => c.defaultSize));
7130
7742
  if (sizes.length !== constraints.length) {
7131
7743
  setSizes(constraints.map((c) => c.defaultSize));
7132
7744
  }
7133
- const containerRef = useRef23(null);
7134
- const constraintsRef = useRef23(constraints);
7745
+ const containerRef = useRef24(null);
7746
+ const constraintsRef = useRef24(constraints);
7135
7747
  constraintsRef.current = constraints;
7136
- const directionRef = useRef23(direction);
7748
+ const directionRef = useRef24(direction);
7137
7749
  directionRef.current = direction;
7138
- const dragState = useRef23(null);
7750
+ const dragState = useRef24(null);
7139
7751
  function applyResize(handleIndex2, nextA, combined) {
7140
7752
  const a = constraintsRef.current[handleIndex2];
7141
7753
  const b = constraintsRef.current[handleIndex2 + 1];
7142
7754
  if (!a || !b) return;
7143
- const clampedA = clamp2(
7755
+ const clampedA = clamp3(
7144
7756
  nextA,
7145
7757
  Math.max(a.minSize, combined - b.maxSize),
7146
7758
  Math.min(a.maxSize, combined - b.minSize)
@@ -7211,16 +7823,16 @@ function ResizablePanelGroup({ direction, children, className }) {
7211
7823
  }
7212
7824
  let panelIndex = -1;
7213
7825
  let handleIndex = -1;
7214
- return /* @__PURE__ */ jsx202(
7826
+ return /* @__PURE__ */ jsx209(
7215
7827
  "div",
7216
7828
  {
7217
7829
  ref: containerRef,
7218
- className: [styles74.group, direction === "vertical" ? styles74.groupVertical : "", className].filter(Boolean).join(" "),
7830
+ className: [styles80.group, direction === "vertical" ? styles80.groupVertical : "", className].filter(Boolean).join(" "),
7219
7831
  children: elements.map((element, key) => {
7220
7832
  if (element.type === ResizablePanel) {
7221
7833
  panelIndex += 1;
7222
7834
  const size = sizes[panelIndex] ?? constraints[panelIndex]?.defaultSize ?? 0;
7223
- return /* @__PURE__ */ jsx202(
7835
+ return /* @__PURE__ */ jsx209(
7224
7836
  ResizablePanelClone,
7225
7837
  {
7226
7838
  element,
@@ -7233,7 +7845,7 @@ function ResizablePanelGroup({ direction, children, className }) {
7233
7845
  handleIndex += 1;
7234
7846
  const index = handleIndex;
7235
7847
  const constraint = constraints[index];
7236
- return /* @__PURE__ */ jsx202(
7848
+ return /* @__PURE__ */ jsx209(
7237
7849
  ResizableHandleClone,
7238
7850
  {
7239
7851
  element,
@@ -7262,19 +7874,19 @@ function ResizablePanelClone({
7262
7874
  flexGrow: 0,
7263
7875
  flexShrink: 0
7264
7876
  };
7265
- return /* @__PURE__ */ jsx202(ResizablePanel, { ...element.props, style });
7877
+ return /* @__PURE__ */ jsx209(ResizablePanel, { ...element.props, style });
7266
7878
  }
7267
7879
  function ResizableHandleClone({
7268
7880
  element,
7269
7881
  ...injected
7270
7882
  }) {
7271
- return /* @__PURE__ */ jsx202(ResizableHandle, { ...element.props, ...injected });
7883
+ return /* @__PURE__ */ jsx209(ResizableHandle, { ...element.props, ...injected });
7272
7884
  }
7273
7885
 
7274
7886
  // src/components/DataTable/DataTable.tsx
7275
- import { useMemo as useMemo4, useState as useState23 } from "react";
7276
- import styles75 from "./DataTable.module.css";
7277
- import { jsx as jsx203, jsxs as jsxs155 } from "react/jsx-runtime";
7887
+ import { useMemo as useMemo4, useState as useState25 } from "react";
7888
+ import styles81 from "./DataTable.module.css";
7889
+ import { jsx as jsx210, jsxs as jsxs161 } from "react/jsx-runtime";
7278
7890
  function compareValues(a, b) {
7279
7891
  if (typeof a === "number" && typeof b === "number") return a - b;
7280
7892
  return String(a).localeCompare(String(b));
@@ -7288,8 +7900,8 @@ function DataTable({
7288
7900
  emptyMessage = "No results.",
7289
7901
  className
7290
7902
  }) {
7291
- const [sortKey, setSortKey] = useState23(defaultSortKey);
7292
- const [sortDirection, setSortDirection] = useState23(defaultSortDirection);
7903
+ const [sortKey, setSortKey] = useState25(defaultSortKey);
7904
+ const [sortDirection, setSortDirection] = useState25(defaultSortDirection);
7293
7905
  const sortColumn = columns.find((c) => c.key === sortKey);
7294
7906
  const sortedData = useMemo4(() => {
7295
7907
  if (!sortColumn) return data;
@@ -7310,26 +7922,26 @@ function DataTable({
7310
7922
  }
7311
7923
  }
7312
7924
  if (data.length === 0) {
7313
- return /* @__PURE__ */ jsx203(EmptyState, { heading: emptyMessage });
7925
+ return /* @__PURE__ */ jsx210(EmptyState, { heading: emptyMessage });
7314
7926
  }
7315
- return /* @__PURE__ */ jsxs155(Table, { className, children: [
7316
- /* @__PURE__ */ jsx203(TableHead, { children: /* @__PURE__ */ jsx203(TableRow, { children: columns.map((column) => {
7927
+ return /* @__PURE__ */ jsxs161(Table, { className, children: [
7928
+ /* @__PURE__ */ jsx210(TableHead, { children: /* @__PURE__ */ jsx210(TableRow, { children: columns.map((column) => {
7317
7929
  const isSorted = sortKey === column.key;
7318
7930
  const ariaSort = !column.sortable ? void 0 : isSorted ? sortDirection === "asc" ? "ascending" : "descending" : "none";
7319
- return /* @__PURE__ */ jsx203(
7931
+ return /* @__PURE__ */ jsx210(
7320
7932
  TableHeaderCell,
7321
7933
  {
7322
7934
  "aria-sort": ariaSort,
7323
7935
  style: column.align === "end" ? { textAlign: "end" } : void 0,
7324
- children: column.sortable ? /* @__PURE__ */ jsxs155(
7936
+ children: column.sortable ? /* @__PURE__ */ jsxs161(
7325
7937
  "button",
7326
7938
  {
7327
7939
  type: "button",
7328
- className: styles75.sortButton,
7940
+ className: styles81.sortButton,
7329
7941
  onClick: () => handleSort(column),
7330
7942
  children: [
7331
7943
  column.header,
7332
- /* @__PURE__ */ jsx203("span", { className: styles75.sortIcon, children: isSorted && /* @__PURE__ */ jsx203(
7944
+ /* @__PURE__ */ jsx210("span", { className: styles81.sortIcon, children: isSorted && /* @__PURE__ */ jsx210(
7333
7945
  Icon,
7334
7946
  {
7335
7947
  name: sortDirection === "asc" ? "chevron-up" : "chevron-down",
@@ -7344,7 +7956,7 @@ function DataTable({
7344
7956
  column.key
7345
7957
  );
7346
7958
  }) }) }),
7347
- /* @__PURE__ */ jsx203(TableBody, { children: sortedData.map((row) => /* @__PURE__ */ jsx203(TableRow, { children: columns.map((column) => /* @__PURE__ */ jsx203(
7959
+ /* @__PURE__ */ jsx210(TableBody, { children: sortedData.map((row) => /* @__PURE__ */ jsx210(TableRow, { children: columns.map((column) => /* @__PURE__ */ jsx210(
7348
7960
  TableCell,
7349
7961
  {
7350
7962
  style: column.align === "end" ? { textAlign: "end" } : void 0,
@@ -7356,9 +7968,9 @@ function DataTable({
7356
7968
  }
7357
7969
 
7358
7970
  // src/components/Combobox/Combobox.tsx
7359
- import { useEffect as useEffect17, useId as useId10, useMemo as useMemo5, useRef as useRef24, useState as useState24 } from "react";
7360
- import styles76 from "./Combobox.module.css";
7361
- import { Fragment as Fragment14, jsx as jsx204, jsxs as jsxs156 } from "react/jsx-runtime";
7971
+ import { useEffect as useEffect17, useId as useId10, useMemo as useMemo5, useRef as useRef25, useState as useState26 } from "react";
7972
+ import styles82 from "./Combobox.module.css";
7973
+ import { Fragment as Fragment17, jsx as jsx211, jsxs as jsxs162 } from "react/jsx-runtime";
7362
7974
  function matches2(option, query) {
7363
7975
  if (!query) return true;
7364
7976
  return option.label.toLowerCase().includes(query.toLowerCase());
@@ -7374,11 +7986,11 @@ function Combobox({
7374
7986
  disabled = false,
7375
7987
  className
7376
7988
  }) {
7377
- const [open, setOpen] = useState24(false);
7378
- const [query, setQuery] = useState24("");
7379
- const [highlightedIndex, setHighlightedIndex] = useState24(0);
7989
+ const [open, setOpen] = useState26(false);
7990
+ const [query, setQuery] = useState26("");
7991
+ const [highlightedIndex, setHighlightedIndex] = useState26(0);
7380
7992
  const isMobile = useIsMobile();
7381
- const inputRef = useRef24(null);
7993
+ const inputRef = useRef25(null);
7382
7994
  const listId = useId10();
7383
7995
  const selected = options.find((o) => o.value === value) ?? null;
7384
7996
  const filtered = useMemo5(
@@ -7412,24 +8024,24 @@ function Combobox({
7412
8024
  }
7413
8025
  }
7414
8026
  const highlightedId = filtered[highlightedIndex] ? `${listId}-${filtered[highlightedIndex].value}` : void 0;
7415
- const trigger = /* @__PURE__ */ jsxs156(
8027
+ const trigger = /* @__PURE__ */ jsxs162(
7416
8028
  "button",
7417
8029
  {
7418
8030
  type: "button",
7419
- className: [styles76.trigger, className].filter(Boolean).join(" "),
8031
+ className: [styles82.trigger, className].filter(Boolean).join(" "),
7420
8032
  disabled,
7421
8033
  "aria-label": ariaLabel,
7422
8034
  "aria-haspopup": "listbox",
7423
8035
  "aria-expanded": open,
7424
8036
  onClick: () => setOpen((o) => !o),
7425
8037
  children: [
7426
- /* @__PURE__ */ jsx204("span", { className: selected ? styles76.triggerValue : styles76.triggerPlaceholder, children: selected ? selected.label : placeholder }),
7427
- /* @__PURE__ */ jsx204(Icon, { name: "chevron-down", size: "sm", "aria-hidden": true })
8038
+ /* @__PURE__ */ jsx211("span", { className: selected ? styles82.triggerValue : styles82.triggerPlaceholder, children: selected ? selected.label : placeholder }),
8039
+ /* @__PURE__ */ jsx211(Icon, { name: "chevron-down", size: "sm", "aria-hidden": true })
7428
8040
  ]
7429
8041
  }
7430
8042
  );
7431
- const body = /* @__PURE__ */ jsxs156("div", { className: styles76.body, children: [
7432
- /* @__PURE__ */ jsx204(
8043
+ const body = /* @__PURE__ */ jsxs162("div", { className: styles82.body, children: [
8044
+ /* @__PURE__ */ jsx211(
7433
8045
  "input",
7434
8046
  {
7435
8047
  ref: inputRef,
@@ -7439,30 +8051,30 @@ function Combobox({
7439
8051
  "aria-controls": listId,
7440
8052
  "aria-activedescendant": highlightedId,
7441
8053
  "aria-autocomplete": "list",
7442
- className: styles76.search,
8054
+ className: styles82.search,
7443
8055
  placeholder: searchPlaceholder,
7444
8056
  value: query,
7445
8057
  onChange: (e) => setQuery(e.target.value),
7446
8058
  onKeyDown: handleKeyDown
7447
8059
  }
7448
8060
  ),
7449
- /* @__PURE__ */ jsxs156("ul", { id: listId, role: "listbox", className: styles76.list, children: [
7450
- filtered.length === 0 && /* @__PURE__ */ jsx204("li", { className: styles76.empty, children: emptyMessage }),
8061
+ /* @__PURE__ */ jsxs162("ul", { id: listId, role: "listbox", className: styles82.list, children: [
8062
+ filtered.length === 0 && /* @__PURE__ */ jsx211("li", { className: styles82.empty, children: emptyMessage }),
7451
8063
  filtered.map((option, index) => {
7452
8064
  const isHighlighted = index === highlightedIndex;
7453
8065
  const isSelected = option.value === value;
7454
- return /* @__PURE__ */ jsx204("li", { children: /* @__PURE__ */ jsxs156(
8066
+ return /* @__PURE__ */ jsx211("li", { children: /* @__PURE__ */ jsxs162(
7455
8067
  "button",
7456
8068
  {
7457
8069
  id: `${listId}-${option.value}`,
7458
8070
  type: "button",
7459
8071
  role: "option",
7460
8072
  "aria-selected": isSelected,
7461
- className: [styles76.option, isHighlighted ? styles76.optionHighlighted : ""].filter(Boolean).join(" "),
8073
+ className: [styles82.option, isHighlighted ? styles82.optionHighlighted : ""].filter(Boolean).join(" "),
7462
8074
  onMouseEnter: () => setHighlightedIndex(index),
7463
8075
  onClick: () => commit(option),
7464
8076
  children: [
7465
- /* @__PURE__ */ jsx204("span", { className: styles76.check, children: isSelected && /* @__PURE__ */ jsx204(Icon, { name: "check", size: "sm", "aria-hidden": true }) }),
8077
+ /* @__PURE__ */ jsx211("span", { className: styles82.check, children: isSelected && /* @__PURE__ */ jsx211(Icon, { name: "check", size: "sm", "aria-hidden": true }) }),
7466
8078
  option.label
7467
8079
  ]
7468
8080
  }
@@ -7471,12 +8083,12 @@ function Combobox({
7471
8083
  ] })
7472
8084
  ] });
7473
8085
  if (isMobile) {
7474
- return /* @__PURE__ */ jsxs156(Fragment14, { children: [
8086
+ return /* @__PURE__ */ jsxs162(Fragment17, { children: [
7475
8087
  trigger,
7476
- /* @__PURE__ */ jsx204(Drawer, { open, onClose: () => setOpen(false), "aria-label": ariaLabel, children: body })
8088
+ /* @__PURE__ */ jsx211(Drawer, { open, onClose: () => setOpen(false), "aria-label": ariaLabel, children: body })
7477
8089
  ] });
7478
8090
  }
7479
- return /* @__PURE__ */ jsx204(
8091
+ return /* @__PURE__ */ jsx211(
7480
8092
  Popover,
7481
8093
  {
7482
8094
  trigger,
@@ -7490,9 +8102,9 @@ function Combobox({
7490
8102
  }
7491
8103
 
7492
8104
  // src/components/GripIcon/GripIcon.tsx
7493
- import { jsx as jsx205 } from "react/jsx-runtime";
8105
+ import { jsx as jsx212 } from "react/jsx-runtime";
7494
8106
  function GripIcon({ size = 14, className }) {
7495
- return /* @__PURE__ */ jsx205(
8107
+ return /* @__PURE__ */ jsx212(
7496
8108
  "svg",
7497
8109
  {
7498
8110
  width: size,
@@ -7502,15 +8114,15 @@ function GripIcon({ size = 14, className }) {
7502
8114
  "aria-hidden": "true",
7503
8115
  className,
7504
8116
  children: [3, 7, 11].map(
7505
- (cy) => [4, 10].map((cx) => /* @__PURE__ */ jsx205("circle", { cx, cy, r: 1.2, fill: "currentColor" }, `${cx}-${cy}`))
8117
+ (cy) => [4, 10].map((cx) => /* @__PURE__ */ jsx212("circle", { cx, cy, r: 1.2, fill: "currentColor" }, `${cx}-${cy}`))
7506
8118
  )
7507
8119
  }
7508
8120
  );
7509
8121
  }
7510
8122
 
7511
8123
  // src/components/DragHandleRow/DragHandleRow.tsx
7512
- import styles77 from "./DragHandleRow.module.css";
7513
- import { jsx as jsx206, jsxs as jsxs157 } from "react/jsx-runtime";
8124
+ import styles83 from "./DragHandleRow.module.css";
8125
+ import { jsx as jsx213, jsxs as jsxs163 } from "react/jsx-runtime";
7514
8126
  function DragHandleRow({
7515
8127
  children,
7516
8128
  handleProps,
@@ -7518,32 +8130,32 @@ function DragHandleRow({
7518
8130
  className,
7519
8131
  ...rest
7520
8132
  }) {
7521
- return /* @__PURE__ */ jsxs157(
8133
+ return /* @__PURE__ */ jsxs163(
7522
8134
  "div",
7523
8135
  {
7524
8136
  ...rest,
7525
- className: [styles77.row, isDragging ? styles77.dragging : "", className].filter(Boolean).join(" "),
8137
+ className: [styles83.row, isDragging ? styles83.dragging : "", className].filter(Boolean).join(" "),
7526
8138
  children: [
7527
- /* @__PURE__ */ jsx206(
8139
+ /* @__PURE__ */ jsx213(
7528
8140
  "button",
7529
8141
  {
7530
8142
  type: "button",
7531
8143
  "aria-label": "Drag to reorder",
7532
- className: styles77.handle,
8144
+ className: styles83.handle,
7533
8145
  tabIndex: -1,
7534
8146
  ...handleProps,
7535
- children: /* @__PURE__ */ jsx206(GripIcon, { className: styles77.icon })
8147
+ children: /* @__PURE__ */ jsx213(GripIcon, { className: styles83.icon })
7536
8148
  }
7537
8149
  ),
7538
- /* @__PURE__ */ jsx206("div", { className: styles77.content, children })
8150
+ /* @__PURE__ */ jsx213("div", { className: styles83.content, children })
7539
8151
  ]
7540
8152
  }
7541
8153
  );
7542
8154
  }
7543
8155
 
7544
8156
  // src/components/StepStrip/StepStrip.tsx
7545
- import styles78 from "./StepStrip.module.css";
7546
- import { jsx as jsx207, jsxs as jsxs158 } from "react/jsx-runtime";
8157
+ import styles84 from "./StepStrip.module.css";
8158
+ import { jsx as jsx214, jsxs as jsxs164 } from "react/jsx-runtime";
7547
8159
  function StepStrip({
7548
8160
  items,
7549
8161
  activeId,
@@ -7553,28 +8165,28 @@ function StepStrip({
7553
8165
  className,
7554
8166
  "aria-label": ariaLabel
7555
8167
  }) {
7556
- return /* @__PURE__ */ jsxs158(
8168
+ return /* @__PURE__ */ jsxs164(
7557
8169
  "div",
7558
8170
  {
7559
- className: [styles78.strip, className].filter(Boolean).join(" "),
8171
+ className: [styles84.strip, className].filter(Boolean).join(" "),
7560
8172
  role: "list",
7561
8173
  "aria-label": ariaLabel,
7562
8174
  children: [
7563
- items.map((item, index) => /* @__PURE__ */ jsxs158("div", { className: styles78.step, role: "listitem", children: [
8175
+ items.map((item, index) => /* @__PURE__ */ jsxs164("div", { className: styles84.step, role: "listitem", children: [
7564
8176
  renderItem(item, { isActive: item.id === activeId, index }),
7565
- (index < items.length - 1 || onAdd) && /* @__PURE__ */ jsx207(
8177
+ (index < items.length - 1 || onAdd) && /* @__PURE__ */ jsx214(
7566
8178
  "div",
7567
8179
  {
7568
8180
  className: [
7569
- styles78.connector,
7570
- index === items.length - 1 ? styles78.connectorDashed : ""
8181
+ styles84.connector,
8182
+ index === items.length - 1 ? styles84.connectorDashed : ""
7571
8183
  ].filter(Boolean).join(" "),
7572
8184
  "aria-hidden": "true"
7573
8185
  }
7574
8186
  )
7575
8187
  ] }, item.id)),
7576
- onAdd && /* @__PURE__ */ jsxs158("button", { type: "button", className: styles78.addChip, onClick: onAdd, children: [
7577
- /* @__PURE__ */ jsx207(Icon, { name: "plus", size: "sm", "aria-hidden": true }),
8188
+ onAdd && /* @__PURE__ */ jsxs164("button", { type: "button", className: styles84.addChip, onClick: onAdd, children: [
8189
+ /* @__PURE__ */ jsx214(Icon, { name: "plus", size: "sm", "aria-hidden": true }),
7578
8190
  addLabel
7579
8191
  ] })
7580
8192
  ]
@@ -7583,9 +8195,9 @@ function StepStrip({
7583
8195
  }
7584
8196
 
7585
8197
  // src/components/FileDropzone/FileDropzone.tsx
7586
- import { useRef as useRef25, useState as useState25 } from "react";
7587
- import styles79 from "./FileDropzone.module.css";
7588
- import { jsx as jsx208, jsxs as jsxs159 } from "react/jsx-runtime";
8198
+ import { useRef as useRef26, useState as useState27 } from "react";
8199
+ import styles85 from "./FileDropzone.module.css";
8200
+ import { jsx as jsx215, jsxs as jsxs165 } from "react/jsx-runtime";
7589
8201
  function FileDropzone({
7590
8202
  name,
7591
8203
  accept,
@@ -7597,15 +8209,15 @@ function FileDropzone({
7597
8209
  disabled,
7598
8210
  className
7599
8211
  }) {
7600
- const [dragging, setDragging] = useState25(false);
7601
- const inputRef = useRef25(null);
7602
- return /* @__PURE__ */ jsxs159(
8212
+ const [dragging, setDragging] = useState27(false);
8213
+ const inputRef = useRef26(null);
8214
+ return /* @__PURE__ */ jsxs165(
7603
8215
  "label",
7604
8216
  {
7605
8217
  className: [
7606
- styles79.dropzone,
7607
- dragging ? styles79.dropzoneActive : "",
7608
- disabled ? styles79.dropzoneDisabled : "",
8218
+ styles85.dropzone,
8219
+ dragging ? styles85.dropzoneActive : "",
8220
+ disabled ? styles85.dropzoneDisabled : "",
7609
8221
  className
7610
8222
  ].filter(Boolean).join(" "),
7611
8223
  onDragOver: (event) => {
@@ -7628,12 +8240,12 @@ function FileDropzone({
7628
8240
  onFileSelect(dropped);
7629
8241
  },
7630
8242
  children: [
7631
- /* @__PURE__ */ jsx208("span", { className: styles79.icon, "aria-hidden": "true", children: icon ?? /* @__PURE__ */ jsx208(Icon, { name: "file", size: "lg", "aria-hidden": true }) }),
7632
- /* @__PURE__ */ jsxs159("span", { className: styles79.text, children: [
7633
- /* @__PURE__ */ jsx208("span", { className: styles79.title, children: label }),
7634
- hint && /* @__PURE__ */ jsx208("span", { className: styles79.hint, children: hint })
8243
+ /* @__PURE__ */ jsx215("span", { className: styles85.icon, "aria-hidden": "true", children: icon ?? /* @__PURE__ */ jsx215(Icon, { name: "file", size: "lg", "aria-hidden": true }) }),
8244
+ /* @__PURE__ */ jsxs165("span", { className: styles85.text, children: [
8245
+ /* @__PURE__ */ jsx215("span", { className: styles85.title, children: label }),
8246
+ hint && /* @__PURE__ */ jsx215("span", { className: styles85.hint, children: hint })
7635
8247
  ] }),
7636
- /* @__PURE__ */ jsx208(
8248
+ /* @__PURE__ */ jsx215(
7637
8249
  "input",
7638
8250
  {
7639
8251
  ref: inputRef,
@@ -7643,7 +8255,7 @@ function FileDropzone({
7643
8255
  accept,
7644
8256
  disabled,
7645
8257
  onChange: (event) => onFileSelect(event.target.files?.[0] ?? null),
7646
- className: styles79.hiddenInput
8258
+ className: styles85.hiddenInput
7647
8259
  }
7648
8260
  )
7649
8261
  ]
@@ -7652,7 +8264,7 @@ function FileDropzone({
7652
8264
  }
7653
8265
 
7654
8266
  // src/components/Calendar/Calendar.tsx
7655
- import { useRef as useRef26, useState as useState26 } from "react";
8267
+ import { useRef as useRef27, useState as useState28 } from "react";
7656
8268
 
7657
8269
  // src/components/Calendar/dateUtils.ts
7658
8270
  function startOfMonth(date) {
@@ -7718,8 +8330,8 @@ function formatDateLabel(date) {
7718
8330
  }
7719
8331
 
7720
8332
  // src/components/Calendar/Calendar.tsx
7721
- import styles80 from "./Calendar.module.css";
7722
- import { jsx as jsx209, jsxs as jsxs160 } from "react/jsx-runtime";
8333
+ import styles86 from "./Calendar.module.css";
8334
+ import { jsx as jsx216, jsxs as jsxs166 } from "react/jsx-runtime";
7723
8335
  var WEEKDAY_LABEL_WEEK = getMonthGrid(new Date(2026, 0, 1))[0] ?? [];
7724
8336
  function Calendar({
7725
8337
  value,
@@ -7728,9 +8340,9 @@ function Calendar({
7728
8340
  maxDate,
7729
8341
  "aria-label": ariaLabel
7730
8342
  }) {
7731
- const [displayedMonth, setDisplayedMonth] = useState26(() => startOfMonth(value ?? /* @__PURE__ */ new Date()));
7732
- const [focusedDate, setFocusedDate] = useState26(() => value ?? /* @__PURE__ */ new Date());
7733
- const gridRef = useRef26(null);
8343
+ const [displayedMonth, setDisplayedMonth] = useState28(() => startOfMonth(value ?? /* @__PURE__ */ new Date()));
8344
+ const [focusedDate, setFocusedDate] = useState28(() => value ?? /* @__PURE__ */ new Date());
8345
+ const gridRef = useRef27(null);
7734
8346
  const weeks = getMonthGrid(displayedMonth);
7735
8347
  function goToMonth(next) {
7736
8348
  setDisplayedMonth(startOfMonth(next));
@@ -7789,51 +8401,51 @@ function Calendar({
7789
8401
  default:
7790
8402
  }
7791
8403
  }
7792
- return /* @__PURE__ */ jsxs160("div", { className: styles80.calendar, "aria-label": ariaLabel, children: [
7793
- /* @__PURE__ */ jsxs160("div", { className: styles80.header, children: [
7794
- /* @__PURE__ */ jsx209(
8404
+ return /* @__PURE__ */ jsxs166("div", { className: styles86.calendar, "aria-label": ariaLabel, children: [
8405
+ /* @__PURE__ */ jsxs166("div", { className: styles86.header, children: [
8406
+ /* @__PURE__ */ jsx216(
7795
8407
  "button",
7796
8408
  {
7797
8409
  type: "button",
7798
- className: styles80.navButton,
8410
+ className: styles86.navButton,
7799
8411
  "aria-label": "Previous month",
7800
8412
  onClick: () => goToMonth(addMonths(displayedMonth, -1)),
7801
- children: /* @__PURE__ */ jsx209(Icon, { name: "chevron-left", size: "sm", "aria-hidden": true })
8413
+ children: /* @__PURE__ */ jsx216(Icon, { name: "chevron-left", size: "sm", "aria-hidden": true })
7802
8414
  }
7803
8415
  ),
7804
- /* @__PURE__ */ jsx209("span", { className: styles80.monthLabel, children: formatMonthYear(displayedMonth) }),
7805
- /* @__PURE__ */ jsx209(
8416
+ /* @__PURE__ */ jsx216("span", { className: styles86.monthLabel, children: formatMonthYear(displayedMonth) }),
8417
+ /* @__PURE__ */ jsx216(
7806
8418
  "button",
7807
8419
  {
7808
8420
  type: "button",
7809
- className: styles80.navButton,
8421
+ className: styles86.navButton,
7810
8422
  "aria-label": "Next month",
7811
8423
  onClick: () => goToMonth(addMonths(displayedMonth, 1)),
7812
- children: /* @__PURE__ */ jsx209(Icon, { name: "chevron-right", size: "sm", "aria-hidden": true })
8424
+ children: /* @__PURE__ */ jsx216(Icon, { name: "chevron-right", size: "sm", "aria-hidden": true })
7813
8425
  }
7814
8426
  )
7815
8427
  ] }),
7816
- /* @__PURE__ */ jsxs160(
8428
+ /* @__PURE__ */ jsxs166(
7817
8429
  "div",
7818
8430
  {
7819
8431
  ref: gridRef,
7820
8432
  role: "grid",
7821
8433
  "aria-label": formatMonthYear(displayedMonth),
7822
- className: styles80.grid,
8434
+ className: styles86.grid,
7823
8435
  onKeyDown: handleKeyDown,
7824
8436
  tabIndex: -1,
7825
8437
  children: [
7826
- /* @__PURE__ */ jsx209("div", { role: "row", className: styles80.weekdayRow, children: WEEKDAY_LABEL_WEEK.map((d) => /* @__PURE__ */ jsx209("span", { role: "columnheader", className: styles80.weekday, "aria-hidden": true, children: formatWeekdayShort(d) }, d.getDay())) }),
8438
+ /* @__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())) }),
7827
8439
  weeks.map((week) => {
7828
8440
  const firstDayOfWeek = week[0];
7829
8441
  if (!firstDayOfWeek) return null;
7830
- return /* @__PURE__ */ jsx209("div", { role: "row", className: styles80.week, children: week.map((date) => {
8442
+ return /* @__PURE__ */ jsx216("div", { role: "row", className: styles86.week, children: week.map((date) => {
7831
8443
  const isCurrentMonth = isSameMonth(date, displayedMonth);
7832
8444
  const isSelected = value !== null && isSameDay(date, value);
7833
8445
  const isToday = isSameDay(date, /* @__PURE__ */ new Date());
7834
8446
  const isFocusTarget = isSameDay(date, focusedDate);
7835
8447
  const disabled = !isWithinRange(date, minDate, maxDate);
7836
- return /* @__PURE__ */ jsx209("div", { role: "gridcell", "aria-selected": isSelected, children: /* @__PURE__ */ jsx209(
8448
+ return /* @__PURE__ */ jsx216("div", { role: "gridcell", "aria-selected": isSelected, children: /* @__PURE__ */ jsx216(
7837
8449
  "button",
7838
8450
  {
7839
8451
  type: "button",
@@ -7842,10 +8454,10 @@ function Calendar({
7842
8454
  "aria-current": isToday ? "date" : void 0,
7843
8455
  "aria-label": formatDateLabel(date),
7844
8456
  className: [
7845
- styles80.day,
7846
- !isCurrentMonth ? styles80.dayOutside : "",
7847
- isSelected ? styles80.daySelected : "",
7848
- isToday && !isSelected ? styles80.dayToday : ""
8457
+ styles86.day,
8458
+ !isCurrentMonth ? styles86.dayOutside : "",
8459
+ isSelected ? styles86.daySelected : "",
8460
+ isToday && !isSelected ? styles86.dayToday : ""
7849
8461
  ].filter(Boolean).join(" "),
7850
8462
  onClick: () => selectDate(date),
7851
8463
  onFocus: () => setFocusedDate(date),
@@ -7861,9 +8473,9 @@ function Calendar({
7861
8473
  }
7862
8474
 
7863
8475
  // src/components/DatePicker/DatePicker.tsx
7864
- import { useState as useState27 } from "react";
7865
- import styles81 from "./DatePicker.module.css";
7866
- import { Fragment as Fragment15, jsx as jsx210, jsxs as jsxs161 } from "react/jsx-runtime";
8476
+ import { useState as useState29 } from "react";
8477
+ import styles87 from "./DatePicker.module.css";
8478
+ import { Fragment as Fragment18, jsx as jsx217, jsxs as jsxs167 } from "react/jsx-runtime";
7867
8479
  var POPOVER_WIDTH = 320;
7868
8480
  function DatePicker({
7869
8481
  value,
@@ -7874,29 +8486,29 @@ function DatePicker({
7874
8486
  "aria-label": ariaLabel,
7875
8487
  disabled = false
7876
8488
  }) {
7877
- const [open, setOpen] = useState27(false);
8489
+ const [open, setOpen] = useState29(false);
7878
8490
  const isMobile = useIsMobile();
7879
8491
  function handleSelect(date) {
7880
8492
  onChange(date);
7881
8493
  setOpen(false);
7882
8494
  }
7883
- const trigger = /* @__PURE__ */ jsxs161(
8495
+ const trigger = /* @__PURE__ */ jsxs167(
7884
8496
  "button",
7885
8497
  {
7886
8498
  type: "button",
7887
- className: styles81.trigger,
8499
+ className: styles87.trigger,
7888
8500
  disabled,
7889
8501
  "aria-label": ariaLabel,
7890
8502
  "aria-haspopup": "dialog",
7891
8503
  "aria-expanded": open,
7892
8504
  onClick: () => setOpen((o) => !o),
7893
8505
  children: [
7894
- /* @__PURE__ */ jsx210("span", { className: value ? styles81.triggerValue : styles81.triggerPlaceholder, children: value ? formatDateShort(value) : placeholder }),
7895
- /* @__PURE__ */ jsx210(Icon, { name: "calendar", size: "sm", "aria-hidden": true })
8506
+ /* @__PURE__ */ jsx217("span", { className: value ? styles87.triggerValue : styles87.triggerPlaceholder, children: value ? formatDateShort(value) : placeholder }),
8507
+ /* @__PURE__ */ jsx217(Icon, { name: "calendar", size: "sm", "aria-hidden": true })
7896
8508
  ]
7897
8509
  }
7898
8510
  );
7899
- const calendar = /* @__PURE__ */ jsx210(
8511
+ const calendar = /* @__PURE__ */ jsx217(
7900
8512
  Calendar,
7901
8513
  {
7902
8514
  value,
@@ -7907,12 +8519,12 @@ function DatePicker({
7907
8519
  }
7908
8520
  );
7909
8521
  if (isMobile) {
7910
- return /* @__PURE__ */ jsxs161(Fragment15, { children: [
8522
+ return /* @__PURE__ */ jsxs167(Fragment18, { children: [
7911
8523
  trigger,
7912
- /* @__PURE__ */ jsx210(Drawer, { open, onClose: () => setOpen(false), "aria-label": ariaLabel, children: /* @__PURE__ */ jsx210("div", { className: styles81.drawerBody, children: calendar }) })
8524
+ /* @__PURE__ */ jsx217(Drawer, { open, onClose: () => setOpen(false), "aria-label": ariaLabel, children: /* @__PURE__ */ jsx217("div", { className: styles87.drawerBody, children: calendar }) })
7913
8525
  ] });
7914
8526
  }
7915
- return /* @__PURE__ */ jsx210(
8527
+ return /* @__PURE__ */ jsx217(
7916
8528
  Popover,
7917
8529
  {
7918
8530
  trigger,
@@ -7920,15 +8532,299 @@ function DatePicker({
7920
8532
  onClose: () => setOpen(false),
7921
8533
  "aria-label": ariaLabel,
7922
8534
  width: POPOVER_WIDTH,
7923
- children: /* @__PURE__ */ jsx210("div", { className: styles81.popoverBody, children: calendar })
8535
+ children: /* @__PURE__ */ jsx217("div", { className: styles87.popoverBody, children: calendar })
8536
+ }
8537
+ );
8538
+ }
8539
+
8540
+ // src/components/DateRangePicker/DateRangePicker.tsx
8541
+ import { useState as useState31 } from "react";
8542
+ import pickerStyles from "./DatePicker.module.css";
8543
+
8544
+ // src/components/DateRangePicker/RangeCalendar.tsx
8545
+ import { useRef as useRef28, useState as useState30 } from "react";
8546
+ import calendarStyles from "./Calendar.module.css";
8547
+
8548
+ // src/components/DateRangePicker/rangeUtils.ts
8549
+ var ISO = /^(\d{4})-(\d{2})-(\d{2})$/;
8550
+ function parseIso(text) {
8551
+ const match = text ? ISO.exec(text) : null;
8552
+ if (!match) return void 0;
8553
+ const [year, month, day] = [Number(match[1]), Number(match[2]), Number(match[3])];
8554
+ const date = new Date(year, month - 1, day);
8555
+ return date.getFullYear() === year && date.getMonth() === month - 1 && date.getDate() === day ? date : void 0;
8556
+ }
8557
+ function toIso(date) {
8558
+ const pad = (n, width = 2) => String(n).padStart(width, "0");
8559
+ return `${pad(date.getFullYear(), 4)}-${pad(date.getMonth() + 1)}-${pad(date.getDate())}`;
8560
+ }
8561
+ function nightsBetween(start, end) {
8562
+ const a = Date.UTC(start.getFullYear(), start.getMonth(), start.getDate());
8563
+ const b = Date.UTC(end.getFullYear(), end.getMonth(), end.getDate());
8564
+ return Math.round((b - a) / 864e5);
8565
+ }
8566
+ function nightsLabel(nights) {
8567
+ return nights === 0 ? "same day" : nights === 1 ? "1 night" : `${nights} nights`;
8568
+ }
8569
+ function rangeOf(first, second) {
8570
+ return nightsBetween(first, second) >= 0 ? { start: first, end: second } : { start: second, end: first };
8571
+ }
8572
+
8573
+ // src/components/DateRangePicker/RangeCalendar.tsx
8574
+ import styles88 from "./DateRangePicker.module.css";
8575
+ import { jsx as jsx218, jsxs as jsxs168 } from "react/jsx-runtime";
8576
+ var WEEKDAY_LABEL_WEEK2 = getMonthGrid(new Date(2026, 0, 1))[0] ?? [];
8577
+ function RangeCalendar({
8578
+ value,
8579
+ onChange,
8580
+ minDate,
8581
+ maxDate,
8582
+ "aria-label": ariaLabel
8583
+ }) {
8584
+ const [displayedMonth, setDisplayedMonth] = useState30(
8585
+ () => startOfMonth(value?.start ?? /* @__PURE__ */ new Date())
8586
+ );
8587
+ const [focusedDate, setFocusedDate] = useState30(() => value?.start ?? /* @__PURE__ */ new Date());
8588
+ const [first, setFirst] = useState30(null);
8589
+ const [hover, setHover] = useState30(null);
8590
+ const gridRef = useRef28(null);
8591
+ const weeks = getMonthGrid(displayedMonth);
8592
+ const shown = first ? rangeOf(first, hover ?? first) : value;
8593
+ function goToMonth(next) {
8594
+ setDisplayedMonth(startOfMonth(next));
8595
+ }
8596
+ function moveFocus(next) {
8597
+ setFocusedDate(next);
8598
+ if (first) setHover(next);
8599
+ if (!isSameMonth(next, displayedMonth)) goToMonth(next);
8600
+ requestAnimationFrame(() => {
8601
+ gridRef.current?.querySelector('[tabindex="0"]')?.focus();
8602
+ });
8603
+ }
8604
+ function pick(date) {
8605
+ if (!isWithinRange(date, minDate, maxDate)) return;
8606
+ setFocusedDate(date);
8607
+ if (!first) {
8608
+ setFirst(date);
8609
+ setHover(date);
8610
+ return;
8611
+ }
8612
+ const range = rangeOf(first, date);
8613
+ setFirst(null);
8614
+ setHover(null);
8615
+ onChange(range);
8616
+ }
8617
+ function handleKeyDown(e) {
8618
+ switch (e.key) {
8619
+ case "ArrowLeft":
8620
+ e.preventDefault();
8621
+ return moveFocus(addDays(focusedDate, -1));
8622
+ case "ArrowRight":
8623
+ e.preventDefault();
8624
+ return moveFocus(addDays(focusedDate, 1));
8625
+ case "ArrowUp":
8626
+ e.preventDefault();
8627
+ return moveFocus(addDays(focusedDate, -7));
8628
+ case "ArrowDown":
8629
+ e.preventDefault();
8630
+ return moveFocus(addDays(focusedDate, 7));
8631
+ case "Home":
8632
+ e.preventDefault();
8633
+ return moveFocus(addDays(focusedDate, -focusedDate.getDay()));
8634
+ case "End":
8635
+ e.preventDefault();
8636
+ return moveFocus(addDays(focusedDate, 6 - focusedDate.getDay()));
8637
+ case "PageUp":
8638
+ e.preventDefault();
8639
+ return moveFocus(addMonths(focusedDate, -1));
8640
+ case "PageDown":
8641
+ e.preventDefault();
8642
+ return moveFocus(addMonths(focusedDate, 1));
8643
+ case "Escape":
8644
+ if (first) {
8645
+ setFirst(null);
8646
+ setHover(null);
8647
+ }
8648
+ return;
8649
+ case "Enter":
8650
+ case " ":
8651
+ e.preventDefault();
8652
+ return pick(focusedDate);
8653
+ default:
8654
+ }
8655
+ }
8656
+ const nights = shown ? nightsBetween(shown.start, shown.end) : null;
8657
+ return /* @__PURE__ */ jsxs168("div", { className: calendarStyles.calendar, "aria-label": ariaLabel, children: [
8658
+ /* @__PURE__ */ jsxs168("div", { className: calendarStyles.header, children: [
8659
+ /* @__PURE__ */ jsx218(
8660
+ "button",
8661
+ {
8662
+ type: "button",
8663
+ className: calendarStyles.navButton,
8664
+ "aria-label": "Previous month",
8665
+ onClick: () => goToMonth(addMonths(displayedMonth, -1)),
8666
+ children: /* @__PURE__ */ jsx218(Icon, { name: "chevron-left", size: "sm", "aria-hidden": true })
8667
+ }
8668
+ ),
8669
+ /* @__PURE__ */ jsx218("span", { className: calendarStyles.monthLabel, children: formatMonthYear(displayedMonth) }),
8670
+ /* @__PURE__ */ jsx218(
8671
+ "button",
8672
+ {
8673
+ type: "button",
8674
+ className: calendarStyles.navButton,
8675
+ "aria-label": "Next month",
8676
+ onClick: () => goToMonth(addMonths(displayedMonth, 1)),
8677
+ children: /* @__PURE__ */ jsx218(Icon, { name: "chevron-right", size: "sm", "aria-hidden": true })
8678
+ }
8679
+ )
8680
+ ] }),
8681
+ /* @__PURE__ */ jsxs168(
8682
+ "div",
8683
+ {
8684
+ ref: gridRef,
8685
+ role: "grid",
8686
+ "aria-label": formatMonthYear(displayedMonth),
8687
+ className: calendarStyles.grid,
8688
+ onKeyDown: handleKeyDown,
8689
+ tabIndex: -1,
8690
+ children: [
8691
+ /* @__PURE__ */ jsx218("div", { role: "row", className: calendarStyles.weekdayRow, children: WEEKDAY_LABEL_WEEK2.map((d) => /* @__PURE__ */ jsx218(
8692
+ "span",
8693
+ {
8694
+ role: "columnheader",
8695
+ className: calendarStyles.weekday,
8696
+ "aria-hidden": true,
8697
+ children: formatWeekdayShort(d)
8698
+ },
8699
+ d.getDay()
8700
+ )) }),
8701
+ weeks.map((week) => {
8702
+ const firstDayOfWeek = week[0];
8703
+ if (!firstDayOfWeek) return null;
8704
+ return /* @__PURE__ */ jsx218("div", { role: "row", className: calendarStyles.week, children: week.map((date) => {
8705
+ const isCurrentMonth = isSameMonth(date, displayedMonth);
8706
+ const isStart = shown !== null && isSameDay(date, shown.start);
8707
+ const isEnd = shown !== null && isSameDay(date, shown.end);
8708
+ const inside = shown !== null && nightsBetween(shown.start, date) > 0 && nightsBetween(date, shown.end) > 0;
8709
+ const isToday = isSameDay(date, /* @__PURE__ */ new Date());
8710
+ const disabled = !isWithinRange(date, minDate, maxDate);
8711
+ return /* @__PURE__ */ jsx218(
8712
+ "div",
8713
+ {
8714
+ role: "gridcell",
8715
+ "aria-selected": isStart || isEnd || inside,
8716
+ className: [
8717
+ styles88.cell,
8718
+ inside ? styles88.cellInside : "",
8719
+ isStart && !isEnd ? styles88.cellStart : "",
8720
+ isEnd && !isStart ? styles88.cellEnd : ""
8721
+ ].filter(Boolean).join(" "),
8722
+ children: /* @__PURE__ */ jsx218(
8723
+ "button",
8724
+ {
8725
+ type: "button",
8726
+ tabIndex: isSameDay(date, focusedDate) ? 0 : -1,
8727
+ disabled,
8728
+ "aria-current": isToday ? "date" : void 0,
8729
+ "aria-label": formatDateLabel(date),
8730
+ "aria-pressed": isStart || isEnd,
8731
+ className: [
8732
+ calendarStyles.day,
8733
+ !isCurrentMonth ? calendarStyles.dayOutside : "",
8734
+ isStart || isEnd ? calendarStyles.daySelected : "",
8735
+ isToday && !(isStart || isEnd) ? calendarStyles.dayToday : ""
8736
+ ].filter(Boolean).join(" "),
8737
+ onClick: () => pick(date),
8738
+ onFocus: () => {
8739
+ setFocusedDate(date);
8740
+ if (first) setHover(date);
8741
+ },
8742
+ onMouseEnter: () => first && !disabled && setHover(date),
8743
+ children: date.getDate()
8744
+ }
8745
+ )
8746
+ },
8747
+ date.toISOString()
8748
+ );
8749
+ }) }, firstDayOfWeek.toISOString());
8750
+ })
8751
+ ]
8752
+ }
8753
+ ),
8754
+ /* @__PURE__ */ jsx218("p", { className: styles88.summary, role: "status", children: first ? "Now choose the last day." : nights === null ? "Choose the first day." : nightsLabel(nights) })
8755
+ ] });
8756
+ }
8757
+
8758
+ // src/components/DateRangePicker/DateRangePicker.tsx
8759
+ import { Fragment as Fragment19, jsx as jsx219, jsxs as jsxs169 } from "react/jsx-runtime";
8760
+ var POPOVER_WIDTH2 = 320;
8761
+ function DateRangePicker({
8762
+ value,
8763
+ onChange,
8764
+ min,
8765
+ max,
8766
+ placeholder = "Select dates",
8767
+ "aria-label": ariaLabel,
8768
+ disabled = false
8769
+ }) {
8770
+ const [open, setOpen] = useState31(false);
8771
+ const isMobile = useIsMobile();
8772
+ const start = parseIso(value.start);
8773
+ const end = parseIso(value.end);
8774
+ const range = start && end ? { start, end } : null;
8775
+ function handleChange(next) {
8776
+ onChange({ start: toIso(next.start), end: toIso(next.end) });
8777
+ setOpen(false);
8778
+ }
8779
+ const trigger = /* @__PURE__ */ jsxs169(
8780
+ "button",
8781
+ {
8782
+ type: "button",
8783
+ className: pickerStyles.trigger,
8784
+ disabled,
8785
+ "aria-label": ariaLabel,
8786
+ "aria-haspopup": "dialog",
8787
+ "aria-expanded": open,
8788
+ onClick: () => setOpen((o) => !o),
8789
+ children: [
8790
+ /* @__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 }),
8791
+ /* @__PURE__ */ jsx219(Icon, { name: "calendar", size: "sm", "aria-hidden": true })
8792
+ ]
8793
+ }
8794
+ );
8795
+ const calendar = /* @__PURE__ */ jsx219(
8796
+ RangeCalendar,
8797
+ {
8798
+ value: range,
8799
+ onChange: handleChange,
8800
+ minDate: parseIso(min),
8801
+ maxDate: parseIso(max),
8802
+ "aria-label": ariaLabel
8803
+ }
8804
+ );
8805
+ if (isMobile) {
8806
+ return /* @__PURE__ */ jsxs169(Fragment19, { children: [
8807
+ trigger,
8808
+ /* @__PURE__ */ jsx219(Drawer, { open, onClose: () => setOpen(false), "aria-label": ariaLabel, children: /* @__PURE__ */ jsx219("div", { className: pickerStyles.drawerBody, children: calendar }) })
8809
+ ] });
8810
+ }
8811
+ return /* @__PURE__ */ jsx219(
8812
+ Popover,
8813
+ {
8814
+ trigger,
8815
+ open,
8816
+ onClose: () => setOpen(false),
8817
+ "aria-label": ariaLabel,
8818
+ width: POPOVER_WIDTH2,
8819
+ children: /* @__PURE__ */ jsx219("div", { className: pickerStyles.popoverBody, children: calendar })
7924
8820
  }
7925
8821
  );
7926
8822
  }
7927
8823
 
7928
8824
  // src/components/SuggestionInput/SuggestionInput.tsx
7929
- import { useId as useId11, useRef as useRef27, useState as useState28 } from "react";
7930
- import styles82 from "./SuggestionInput.module.css";
7931
- import { Fragment as Fragment16, jsx as jsx211, jsxs as jsxs162 } from "react/jsx-runtime";
8825
+ import { useId as useId11, useRef as useRef29, useState as useState32 } from "react";
8826
+ import styles89 from "./SuggestionInput.module.css";
8827
+ import { Fragment as Fragment20, jsx as jsx220, jsxs as jsxs170 } from "react/jsx-runtime";
7932
8828
  function SuggestionInput({
7933
8829
  value,
7934
8830
  onChange,
@@ -7946,9 +8842,9 @@ function SuggestionInput({
7946
8842
  const generatedId = useId11();
7947
8843
  const inputId = id ?? generatedId;
7948
8844
  const listId = `${inputId}-suggestions`;
7949
- const inputRef = useRef27(null);
7950
- const [focused, setFocused] = useState28(false);
7951
- const [activeIndex, setActiveIndex] = useState28(-1);
8845
+ const inputRef = useRef29(null);
8846
+ const [focused, setFocused] = useState32(false);
8847
+ const [activeIndex, setActiveIndex] = useState32(-1);
7952
8848
  const showCreateRow = Boolean(onCreate && createLabel && value.trim());
7953
8849
  const rowCount = options.length + (showCreateRow ? 1 : 0);
7954
8850
  const open = focused && (rowCount > 0 || loading);
@@ -7985,7 +8881,7 @@ function SuggestionInput({
7985
8881
  close();
7986
8882
  }
7987
8883
  }
7988
- const trigger = /* @__PURE__ */ jsx211(
8884
+ const trigger = /* @__PURE__ */ jsx220(
7989
8885
  "input",
7990
8886
  {
7991
8887
  ref: inputRef,
@@ -7997,7 +8893,7 @@ function SuggestionInput({
7997
8893
  "aria-autocomplete": "list",
7998
8894
  "aria-activedescendant": activeIndex >= 0 ? `${listId}-option-${activeIndex}` : void 0,
7999
8895
  "aria-label": ariaLabel,
8000
- className: [styles82.input, className].filter(Boolean).join(" "),
8896
+ className: [styles89.input, className].filter(Boolean).join(" "),
8001
8897
  value,
8002
8898
  placeholder,
8003
8899
  disabled,
@@ -8010,7 +8906,7 @@ function SuggestionInput({
8010
8906
  onKeyDown: handleKeyDown
8011
8907
  }
8012
8908
  );
8013
- return /* @__PURE__ */ jsx211(
8909
+ return /* @__PURE__ */ jsx220(
8014
8910
  Popover,
8015
8911
  {
8016
8912
  trigger,
@@ -8018,29 +8914,29 @@ function SuggestionInput({
8018
8914
  onClose: close,
8019
8915
  width: "trigger",
8020
8916
  "aria-label": `${ariaLabel} suggestions`,
8021
- children: /* @__PURE__ */ jsx211("ul", { id: listId, role: "listbox", className: styles82.list, children: loading ? /* @__PURE__ */ jsx211("li", { className: styles82.status, children: "Loading\u2026" }) : /* @__PURE__ */ jsxs162(Fragment16, { children: [
8022
- options.map((option, index) => /* @__PURE__ */ jsx211("li", { role: "none", children: /* @__PURE__ */ jsxs162(
8917
+ 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: [
8918
+ options.map((option, index) => /* @__PURE__ */ jsx220("li", { role: "none", children: /* @__PURE__ */ jsxs170(
8023
8919
  "button",
8024
8920
  {
8025
8921
  id: `${listId}-option-${index}`,
8026
8922
  role: "option",
8027
8923
  "aria-selected": index === activeIndex,
8028
8924
  type: "button",
8029
- className: [styles82.option, index === activeIndex ? styles82.optionActive : ""].filter(Boolean).join(" "),
8925
+ className: [styles89.option, index === activeIndex ? styles89.optionActive : ""].filter(Boolean).join(" "),
8030
8926
  onMouseDown: (e) => {
8031
8927
  e.preventDefault();
8032
8928
  commitIndex(index);
8033
8929
  },
8034
8930
  children: [
8035
- option.icon && /* @__PURE__ */ jsx211("span", { className: styles82.optionIcon, children: option.icon }),
8036
- /* @__PURE__ */ jsx211("span", { className: styles82.optionLabel, children: option.label }),
8037
- option.meta && /* @__PURE__ */ jsx211("span", { className: styles82.optionMeta, children: option.meta })
8931
+ option.icon && /* @__PURE__ */ jsx220("span", { className: styles89.optionIcon, children: option.icon }),
8932
+ /* @__PURE__ */ jsx220("span", { className: styles89.optionLabel, children: option.label }),
8933
+ option.meta && /* @__PURE__ */ jsx220("span", { className: styles89.optionMeta, children: option.meta })
8038
8934
  ]
8039
8935
  }
8040
8936
  ) }, option.id)),
8041
- showCreateRow && createLabel && /* @__PURE__ */ jsxs162("li", { role: "none", children: [
8042
- options.length > 0 && /* @__PURE__ */ jsx211("div", { className: styles82.divider }),
8043
- /* @__PURE__ */ jsx211(
8937
+ showCreateRow && createLabel && /* @__PURE__ */ jsxs170("li", { role: "none", children: [
8938
+ options.length > 0 && /* @__PURE__ */ jsx220("div", { className: styles89.divider }),
8939
+ /* @__PURE__ */ jsx220(
8044
8940
  "button",
8045
8941
  {
8046
8942
  id: `${listId}-option-${options.length}`,
@@ -8048,9 +8944,9 @@ function SuggestionInput({
8048
8944
  "aria-selected": options.length === activeIndex,
8049
8945
  type: "button",
8050
8946
  className: [
8051
- styles82.option,
8052
- styles82.optionCreate,
8053
- options.length === activeIndex ? styles82.optionActive : ""
8947
+ styles89.option,
8948
+ styles89.optionCreate,
8949
+ options.length === activeIndex ? styles89.optionActive : ""
8054
8950
  ].filter(Boolean).join(" "),
8055
8951
  onMouseDown: (e) => {
8056
8952
  e.preventDefault();
@@ -8066,9 +8962,9 @@ function SuggestionInput({
8066
8962
  }
8067
8963
 
8068
8964
  // src/components/IconPicker/IconPicker.tsx
8069
- import { useState as useState29 } from "react";
8070
- import styles83 from "./IconPicker.module.css";
8071
- import { jsx as jsx212, jsxs as jsxs163 } from "react/jsx-runtime";
8965
+ import { useState as useState33 } from "react";
8966
+ import styles90 from "./IconPicker.module.css";
8967
+ import { jsx as jsx221, jsxs as jsxs171 } from "react/jsx-runtime";
8072
8968
  function IconPicker({
8073
8969
  value,
8074
8970
  onChange,
@@ -8078,24 +8974,24 @@ function IconPicker({
8078
8974
  disabled = false,
8079
8975
  className
8080
8976
  }) {
8081
- const [open, setOpen] = useState29(false);
8082
- const trigger = /* @__PURE__ */ jsxs163(
8977
+ const [open, setOpen] = useState33(false);
8978
+ const trigger = /* @__PURE__ */ jsxs171(
8083
8979
  "button",
8084
8980
  {
8085
8981
  type: "button",
8086
- className: [styles83.trigger, className].filter(Boolean).join(" "),
8982
+ className: [styles90.trigger, className].filter(Boolean).join(" "),
8087
8983
  onClick: () => setOpen((o) => !o),
8088
8984
  disabled,
8089
8985
  "aria-label": ariaLabel,
8090
8986
  "aria-haspopup": "true",
8091
8987
  "aria-expanded": open,
8092
8988
  children: [
8093
- value ? /* @__PURE__ */ jsx212(Icon, { name: value, size: "md", "aria-hidden": true }) : /* @__PURE__ */ jsx212("span", { className: styles83.placeholder, "aria-hidden": true, children: "?" }),
8094
- triggerLabel && /* @__PURE__ */ jsx212("span", { className: styles83.triggerLabel, children: triggerLabel })
8989
+ value ? /* @__PURE__ */ jsx221(Icon, { name: value, size: "md", "aria-hidden": true }) : /* @__PURE__ */ jsx221("span", { className: styles90.placeholder, "aria-hidden": true, children: "?" }),
8990
+ triggerLabel && /* @__PURE__ */ jsx221("span", { className: styles90.triggerLabel, children: triggerLabel })
8095
8991
  ]
8096
8992
  }
8097
8993
  );
8098
- return /* @__PURE__ */ jsx212(
8994
+ return /* @__PURE__ */ jsx221(
8099
8995
  Popover,
8100
8996
  {
8101
8997
  trigger,
@@ -8103,18 +8999,18 @@ function IconPicker({
8103
8999
  onClose: () => setOpen(false),
8104
9000
  width: 240,
8105
9001
  "aria-label": `${ariaLabel} options`,
8106
- children: /* @__PURE__ */ jsx212("div", { className: styles83.grid, role: "listbox", "aria-label": ariaLabel, children: options.map((name) => /* @__PURE__ */ jsx212(
9002
+ children: /* @__PURE__ */ jsx221("div", { className: styles90.grid, role: "listbox", "aria-label": ariaLabel, children: options.map((name) => /* @__PURE__ */ jsx221(
8107
9003
  "button",
8108
9004
  {
8109
9005
  type: "button",
8110
9006
  role: "option",
8111
9007
  "aria-selected": name === value,
8112
- className: [styles83.option, name === value ? styles83.optionSelected : ""].filter(Boolean).join(" "),
9008
+ className: [styles90.option, name === value ? styles90.optionSelected : ""].filter(Boolean).join(" "),
8113
9009
  onClick: () => {
8114
9010
  onChange(name);
8115
9011
  setOpen(false);
8116
9012
  },
8117
- children: /* @__PURE__ */ jsx212(Icon, { name, size: "md", "aria-hidden": true })
9013
+ children: /* @__PURE__ */ jsx221(Icon, { name, size: "md", "aria-hidden": true })
8118
9014
  },
8119
9015
  name
8120
9016
  )) })
@@ -8123,8 +9019,8 @@ function IconPicker({
8123
9019
  }
8124
9020
 
8125
9021
  // src/components/ColorPicker/ColorPicker.tsx
8126
- import styles84 from "./ColorPicker.module.css";
8127
- import { jsx as jsx213, jsxs as jsxs164 } from "react/jsx-runtime";
9022
+ import styles91 from "./ColorPicker.module.css";
9023
+ import { jsx as jsx222, jsxs as jsxs172 } from "react/jsx-runtime";
8128
9024
  function normalize(hex) {
8129
9025
  return hex.toLowerCase();
8130
9026
  }
@@ -8144,14 +9040,14 @@ function ColorPicker({
8144
9040
  const matchedSwatch = swatches.find((s) => normalize(s.value) === normalizedValue);
8145
9041
  const isCustomActive = normalizedValue !== null && !matchedSwatch;
8146
9042
  const customDialValue = isCustomActive && value ? value : swatches[0]?.value ?? "#000000";
8147
- return /* @__PURE__ */ jsxs164(
9043
+ return /* @__PURE__ */ jsxs172(
8148
9044
  "div",
8149
9045
  {
8150
- className: [styles84.row, className].filter(Boolean).join(" "),
9046
+ className: [styles91.row, className].filter(Boolean).join(" "),
8151
9047
  role: "group",
8152
9048
  "aria-label": ariaLabel,
8153
9049
  children: [
8154
- allowNone && /* @__PURE__ */ jsx213(
9050
+ allowNone && /* @__PURE__ */ jsx222(
8155
9051
  "button",
8156
9052
  {
8157
9053
  type: "button",
@@ -8160,15 +9056,15 @@ function ColorPicker({
8160
9056
  "aria-label": noneLabel,
8161
9057
  title: noneLabel,
8162
9058
  disabled,
8163
- className: [styles84.swatch, styles84.swatchNone, value === null ? styles84.swatchSelected : ""].filter(Boolean).join(" "),
9059
+ className: [styles91.swatch, styles91.swatchNone, value === null ? styles91.swatchSelected : ""].filter(Boolean).join(" "),
8164
9060
  onClick: () => {
8165
9061
  onChange(null);
8166
9062
  onSelectionComplete?.();
8167
9063
  },
8168
- children: /* @__PURE__ */ jsx213(Icon, { name: "x", size: "sm", "aria-hidden": true })
9064
+ children: /* @__PURE__ */ jsx222(Icon, { name: "x", size: "sm", "aria-hidden": true })
8169
9065
  }
8170
9066
  ),
8171
- swatches.map((s) => /* @__PURE__ */ jsx213(
9067
+ swatches.map((s) => /* @__PURE__ */ jsx222(
8172
9068
  "button",
8173
9069
  {
8174
9070
  type: "button",
@@ -8178,8 +9074,8 @@ function ColorPicker({
8178
9074
  title: s.label,
8179
9075
  disabled,
8180
9076
  className: [
8181
- styles84.swatch,
8182
- normalize(s.value) === normalizedValue ? styles84.swatchSelected : ""
9077
+ styles91.swatch,
9078
+ normalize(s.value) === normalizedValue ? styles91.swatchSelected : ""
8183
9079
  ].filter(Boolean).join(" "),
8184
9080
  style: { backgroundColor: s.value },
8185
9081
  onClick: () => {
@@ -8189,19 +9085,19 @@ function ColorPicker({
8189
9085
  },
8190
9086
  s.value
8191
9087
  )),
8192
- /* @__PURE__ */ jsxs164(
9088
+ /* @__PURE__ */ jsxs172(
8193
9089
  "span",
8194
9090
  {
8195
9091
  className: [
8196
- styles84.customWrapper,
8197
- isCustomActive ? styles84.swatchSelected : styles84.customWrapperEmpty
9092
+ styles91.customWrapper,
9093
+ isCustomActive ? styles91.swatchSelected : styles91.customWrapperEmpty
8198
9094
  ].filter(Boolean).join(" "),
8199
9095
  children: [
8200
- /* @__PURE__ */ jsx213(
9096
+ /* @__PURE__ */ jsx222(
8201
9097
  "input",
8202
9098
  {
8203
9099
  type: "color",
8204
- className: styles84.customInput,
9100
+ className: styles91.customInput,
8205
9101
  "aria-label": customLabel,
8206
9102
  title: customLabel,
8207
9103
  disabled,
@@ -8209,7 +9105,7 @@ function ColorPicker({
8209
9105
  onChange: (e) => onChange(e.target.value)
8210
9106
  }
8211
9107
  ),
8212
- !isCustomActive && /* @__PURE__ */ jsx213(Icon, { name: "plus", size: "sm", "aria-hidden": true, className: styles84.customPlusIcon })
9108
+ !isCustomActive && /* @__PURE__ */ jsx222(Icon, { name: "plus", size: "sm", "aria-hidden": true, className: styles91.customPlusIcon })
8213
9109
  ]
8214
9110
  }
8215
9111
  )
@@ -8220,8 +9116,8 @@ function ColorPicker({
8220
9116
 
8221
9117
  // src/components/QuantityStepper/QuantityStepper.tsx
8222
9118
  import { useId as useId12 } from "react";
8223
- import styles85 from "./QuantityStepper.module.css";
8224
- import { jsx as jsx214, jsxs as jsxs165 } from "react/jsx-runtime";
9119
+ import styles92 from "./QuantityStepper.module.css";
9120
+ import { jsx as jsx223, jsxs as jsxs173 } from "react/jsx-runtime";
8225
9121
  function QuantityStepper({
8226
9122
  value,
8227
9123
  onChange,
@@ -8236,7 +9132,7 @@ function QuantityStepper({
8236
9132
  }) {
8237
9133
  const generatedId = useId12();
8238
9134
  const inputId = id ?? generatedId;
8239
- function clamp3(next) {
9135
+ function clamp4(next) {
8240
9136
  let result = next;
8241
9137
  if (min !== void 0) result = Math.max(min, result);
8242
9138
  if (max !== void 0) result = Math.min(max, result);
@@ -8244,28 +9140,28 @@ function QuantityStepper({
8244
9140
  }
8245
9141
  function handleInputChange(e) {
8246
9142
  const parsed = Number.parseFloat(e.target.value);
8247
- if (!Number.isNaN(parsed)) onChange(clamp3(parsed));
9143
+ if (!Number.isNaN(parsed)) onChange(clamp4(parsed));
8248
9144
  }
8249
9145
  const decrementDisabled = disabled || min !== void 0 && value <= min;
8250
9146
  const incrementDisabled = disabled || max !== void 0 && value >= max;
8251
- return /* @__PURE__ */ jsxs165("div", { className: [styles85.root, className].filter(Boolean).join(" "), children: [
8252
- /* @__PURE__ */ jsx214(
9147
+ return /* @__PURE__ */ jsxs173("div", { className: [styles92.root, className].filter(Boolean).join(" "), children: [
9148
+ /* @__PURE__ */ jsx223(
8253
9149
  "button",
8254
9150
  {
8255
9151
  type: "button",
8256
- className: styles85.button,
8257
- onClick: () => onChange(clamp3(value - step)),
9152
+ className: styles92.button,
9153
+ onClick: () => onChange(clamp4(value - step)),
8258
9154
  disabled: decrementDisabled,
8259
9155
  "aria-label": `Decrease ${ariaLabel}`,
8260
9156
  children: "\u2212"
8261
9157
  }
8262
9158
  ),
8263
- /* @__PURE__ */ jsx214(
9159
+ /* @__PURE__ */ jsx223(
8264
9160
  "input",
8265
9161
  {
8266
9162
  id: inputId,
8267
9163
  type: "number",
8268
- className: styles85.input,
9164
+ className: styles92.input,
8269
9165
  value,
8270
9166
  onChange: handleInputChange,
8271
9167
  min,
@@ -8275,13 +9171,13 @@ function QuantityStepper({
8275
9171
  "aria-label": ariaLabel
8276
9172
  }
8277
9173
  ),
8278
- unit && /* @__PURE__ */ jsx214("span", { className: styles85.unit, "aria-hidden": true, children: unit }),
8279
- /* @__PURE__ */ jsx214(
9174
+ unit && /* @__PURE__ */ jsx223("span", { className: styles92.unit, "aria-hidden": true, children: unit }),
9175
+ /* @__PURE__ */ jsx223(
8280
9176
  "button",
8281
9177
  {
8282
9178
  type: "button",
8283
- className: styles85.button,
8284
- onClick: () => onChange(clamp3(value + step)),
9179
+ className: styles92.button,
9180
+ onClick: () => onChange(clamp4(value + step)),
8285
9181
  disabled: incrementDisabled,
8286
9182
  "aria-label": `Increase ${ariaLabel}`,
8287
9183
  children: "+"
@@ -8291,8 +9187,8 @@ function QuantityStepper({
8291
9187
  }
8292
9188
 
8293
9189
  // src/components/CheckableListRow/CheckableListRow.tsx
8294
- import styles86 from "./CheckableListRow.module.css";
8295
- import { jsx as jsx215, jsxs as jsxs166 } from "react/jsx-runtime";
9190
+ import styles93 from "./CheckableListRow.module.css";
9191
+ import { jsx as jsx224, jsxs as jsxs174 } from "react/jsx-runtime";
8296
9192
  function CheckableListRow({
8297
9193
  checked,
8298
9194
  onCheckedChange,
@@ -8311,8 +9207,8 @@ function CheckableListRow({
8311
9207
  toggle();
8312
9208
  }
8313
9209
  }
8314
- return /* @__PURE__ */ jsxs166("div", { className: [styles86.row, className].filter(Boolean).join(" "), children: [
8315
- /* @__PURE__ */ jsxs166(
9210
+ return /* @__PURE__ */ jsxs174("div", { className: [styles93.row, className].filter(Boolean).join(" "), children: [
9211
+ /* @__PURE__ */ jsxs174(
8316
9212
  "div",
8317
9213
  {
8318
9214
  role: "checkbox",
@@ -8320,11 +9216,11 @@ function CheckableListRow({
8320
9216
  "aria-label": label,
8321
9217
  "aria-disabled": disabled || void 0,
8322
9218
  tabIndex: disabled ? -1 : 0,
8323
- className: styles86.tapTarget,
9219
+ className: styles93.tapTarget,
8324
9220
  onClick: toggle,
8325
9221
  onKeyDown: handleKeyDown,
8326
9222
  children: [
8327
- /* @__PURE__ */ jsx215("span", { className: [styles86.box, checked ? styles86.checked : ""].filter(Boolean).join(" "), children: checked && /* @__PURE__ */ jsx215("svg", { className: styles86.tick, viewBox: "0 0 10 8", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ jsx215(
9223
+ /* @__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(
8328
9224
  "path",
8329
9225
  {
8330
9226
  d: "M1 4l3 3 5-6",
@@ -8334,18 +9230,18 @@ function CheckableListRow({
8334
9230
  strokeLinejoin: "round"
8335
9231
  }
8336
9232
  ) }) }),
8337
- icon && /* @__PURE__ */ jsx215("span", { className: styles86.icon, children: icon }),
8338
- /* @__PURE__ */ jsx215("span", { className: [styles86.label, checked ? styles86.struck : ""].filter(Boolean).join(" "), children: label })
9233
+ icon && /* @__PURE__ */ jsx224("span", { className: styles93.icon, children: icon }),
9234
+ /* @__PURE__ */ jsx224("span", { className: [styles93.label, checked ? styles93.struck : ""].filter(Boolean).join(" "), children: label })
8339
9235
  ]
8340
9236
  }
8341
9237
  ),
8342
- trailing && /* @__PURE__ */ jsx215("span", { className: styles86.trailing, children: trailing })
9238
+ trailing && /* @__PURE__ */ jsx224("span", { className: styles93.trailing, children: trailing })
8343
9239
  ] });
8344
9240
  }
8345
9241
 
8346
9242
  // src/components/CurrencyInput/CurrencyInput.tsx
8347
- import { useState as useState30 } from "react";
8348
- import { jsx as jsx216 } from "react/jsx-runtime";
9243
+ import { useState as useState34 } from "react";
9244
+ import { jsx as jsx225 } from "react/jsx-runtime";
8349
9245
  function minorToText(minor, decimals) {
8350
9246
  return (minor / 10 ** decimals).toFixed(decimals);
8351
9247
  }
@@ -8362,13 +9258,13 @@ function CurrencyInput({
8362
9258
  decimals = 2,
8363
9259
  ...rest
8364
9260
  }) {
8365
- const [text, setText] = useState30(
9261
+ const [text, setText] = useState34(
8366
9262
  () => valueCents != null ? minorToText(valueCents, decimals) : ""
8367
9263
  );
8368
9264
  if (textToMinor(text, decimals) !== valueCents) {
8369
9265
  setText(valueCents != null ? minorToText(valueCents, decimals) : "");
8370
9266
  }
8371
- return /* @__PURE__ */ jsx216(
9267
+ return /* @__PURE__ */ jsx225(
8372
9268
  Input,
8373
9269
  {
8374
9270
  ...rest,
@@ -8385,19 +9281,19 @@ function CurrencyInput({
8385
9281
  }
8386
9282
 
8387
9283
  // src/components/BalanceChip/BalanceChip.tsx
8388
- import styles87 from "./BalanceChip.module.css";
8389
- import { jsx as jsx217 } from "react/jsx-runtime";
9284
+ import styles94 from "./BalanceChip.module.css";
9285
+ import { jsx as jsx226 } from "react/jsx-runtime";
8390
9286
  function formatAbsCents(cents) {
8391
9287
  return (Math.abs(cents) / 100).toFixed(2);
8392
9288
  }
8393
9289
  function BalanceChip({ amountCents, currency, className }) {
8394
9290
  const direction = amountCents > 0 ? "owed" : amountCents < 0 ? "owes" : "settled";
8395
9291
  const text = direction === "settled" ? "Settled up" : `${direction === "owed" ? "Owed" : "Owes"} ${currency} ${formatAbsCents(amountCents)}`;
8396
- return /* @__PURE__ */ jsx217("span", { className: [styles87.chip, styles87[direction], className].filter(Boolean).join(" "), children: text });
9292
+ return /* @__PURE__ */ jsx226("span", { className: [styles94.chip, styles94[direction], className].filter(Boolean).join(" "), children: text });
8397
9293
  }
8398
9294
 
8399
9295
  // src/components/SplitMethodSelector/SplitMethodSelector.tsx
8400
- import { jsx as jsx218 } from "react/jsx-runtime";
9296
+ import { jsx as jsx227 } from "react/jsx-runtime";
8401
9297
  var OPTIONS = [
8402
9298
  { label: "Equal", value: "equal" },
8403
9299
  { label: "Amount", value: "amount" },
@@ -8410,7 +9306,7 @@ function SplitMethodSelector({
8410
9306
  size = "sm",
8411
9307
  "aria-label": ariaLabel = "Split method"
8412
9308
  }) {
8413
- return /* @__PURE__ */ jsx218(
9309
+ return /* @__PURE__ */ jsx227(
8414
9310
  SegmentedControl,
8415
9311
  {
8416
9312
  value,
@@ -8423,8 +9319,8 @@ function SplitMethodSelector({
8423
9319
  }
8424
9320
 
8425
9321
  // src/components/MemberMultiSelect/MemberMultiSelect.tsx
8426
- import styles88 from "./MemberMultiSelect.module.css";
8427
- import { jsx as jsx219, jsxs as jsxs167 } from "react/jsx-runtime";
9322
+ import styles95 from "./MemberMultiSelect.module.css";
9323
+ import { jsx as jsx228, jsxs as jsxs175 } from "react/jsx-runtime";
8428
9324
  function MemberMultiSelect({
8429
9325
  options,
8430
9326
  selectedIds,
@@ -8434,12 +9330,12 @@ function MemberMultiSelect({
8434
9330
  hint,
8435
9331
  className
8436
9332
  }) {
8437
- return /* @__PURE__ */ jsxs167("div", { className: [styles88.group, className].filter(Boolean).join(" "), children: [
8438
- label && /* @__PURE__ */ jsx219("span", { className: styles88.label, children: label }),
9333
+ return /* @__PURE__ */ jsxs175("div", { className: [styles95.group, className].filter(Boolean).join(" "), children: [
9334
+ label && /* @__PURE__ */ jsx228("span", { className: styles95.label, children: label }),
8439
9335
  options.map((option) => {
8440
9336
  const checked = selectedIds.has(option.id);
8441
- return /* @__PURE__ */ jsxs167("div", { className: styles88.row, children: [
8442
- /* @__PURE__ */ jsx219(
9337
+ return /* @__PURE__ */ jsxs175("div", { className: styles95.row, children: [
9338
+ /* @__PURE__ */ jsx228(
8443
9339
  Checkbox,
8444
9340
  {
8445
9341
  checked,
@@ -8447,16 +9343,16 @@ function MemberMultiSelect({
8447
9343
  label: option.label
8448
9344
  }
8449
9345
  ),
8450
- checked && renderTrailing && /* @__PURE__ */ jsx219("span", { className: styles88.trailing, children: renderTrailing(option.id) })
9346
+ checked && renderTrailing && /* @__PURE__ */ jsx228("span", { className: styles95.trailing, children: renderTrailing(option.id) })
8451
9347
  ] }, option.id);
8452
9348
  }),
8453
- hint && /* @__PURE__ */ jsx219("span", { className: styles88.hint, children: hint })
9349
+ hint && /* @__PURE__ */ jsx228("span", { className: styles95.hint, children: hint })
8454
9350
  ] });
8455
9351
  }
8456
9352
 
8457
9353
  // src/components/SwipableMobileCarouselDots/SwipableMobileCarouselDots.tsx
8458
- import styles89 from "./SwipableMobileCarouselDots.module.css";
8459
- import { jsx as jsx220 } from "react/jsx-runtime";
9354
+ import styles96 from "./SwipableMobileCarouselDots.module.css";
9355
+ import { jsx as jsx229 } from "react/jsx-runtime";
8460
9356
  function SwipableMobileCarouselDots({
8461
9357
  count,
8462
9358
  activeIndex,
@@ -8466,23 +9362,23 @@ function SwipableMobileCarouselDots({
8466
9362
  density = "default",
8467
9363
  className
8468
9364
  }) {
8469
- return /* @__PURE__ */ jsx220(
9365
+ return /* @__PURE__ */ jsx229(
8470
9366
  "div",
8471
9367
  {
8472
9368
  role: "tablist",
8473
9369
  "aria-label": ariaLabel,
8474
- className: [styles89.dots, density === "compact" ? styles89.dotsCompact : "", className].filter(Boolean).join(" "),
9370
+ className: [styles96.dots, density === "compact" ? styles96.dotsCompact : "", className].filter(Boolean).join(" "),
8475
9371
  children: Array.from({ length: count }, (_, i) => {
8476
9372
  const active = i === activeIndex;
8477
9373
  const label = labels?.[i] ?? `Slide ${i + 1} of ${count}`;
8478
- return /* @__PURE__ */ jsx220(
9374
+ return /* @__PURE__ */ jsx229(
8479
9375
  "button",
8480
9376
  {
8481
9377
  type: "button",
8482
9378
  role: "tab",
8483
9379
  "aria-selected": active,
8484
9380
  "aria-label": label,
8485
- className: [styles89.dot, active ? styles89.dotActive : ""].filter(Boolean).join(" "),
9381
+ className: [styles96.dot, active ? styles96.dotActive : ""].filter(Boolean).join(" "),
8486
9382
  onClick: () => onJump(i)
8487
9383
  },
8488
9384
  i
@@ -8499,7 +9395,7 @@ import {
8499
9395
  useEffect as useEffect18,
8500
9396
  useLayoutEffect as useLayoutEffect4,
8501
9397
  useMemo as useMemo6,
8502
- useRef as useRef28
9398
+ useRef as useRef30
8503
9399
  } from "react";
8504
9400
 
8505
9401
  // src/components/SwipableMobileCarousel/SwipableMobileCarouselSlide.tsx
@@ -8510,16 +9406,16 @@ import { createContext as createContext3 } from "react";
8510
9406
  var CarouselSlideMountContext = createContext3(null);
8511
9407
 
8512
9408
  // src/components/SwipableMobileCarousel/SwipableMobileCarouselSlide.tsx
8513
- import { Fragment as Fragment17, jsx as jsx221 } from "react/jsx-runtime";
9409
+ import { Fragment as Fragment21, jsx as jsx230 } from "react/jsx-runtime";
8514
9410
  function SwipableMobileCarouselSlide({ children }) {
8515
9411
  const ctx = useContext3(CarouselSlideMountContext);
8516
9412
  if (!ctx?.isMounted) return null;
8517
- return /* @__PURE__ */ jsx221(Fragment17, { children });
9413
+ return /* @__PURE__ */ jsx230(Fragment21, { children });
8518
9414
  }
8519
9415
 
8520
9416
  // src/components/SwipableMobileCarousel/SwipableMobileCarousel.tsx
8521
- import styles90 from "./SwipableMobileCarousel.module.css";
8522
- import { jsx as jsx222, jsxs as jsxs168 } from "react/jsx-runtime";
9417
+ import styles97 from "./SwipableMobileCarousel.module.css";
9418
+ import { jsx as jsx231, jsxs as jsxs176 } from "react/jsx-runtime";
8523
9419
  function describeChild(child) {
8524
9420
  if (isValidElement2(child)) {
8525
9421
  const type = child.type;
@@ -8568,7 +9464,7 @@ function SwipableMobileCarousel({
8568
9464
  const slides = useMemo6(() => resolveSlides(children), [children]);
8569
9465
  const count = slides.length;
8570
9466
  const clampedActiveIndex = count === 0 ? 0 : Math.max(0, Math.min(count - 1, activeIndex));
8571
- const initialActiveIndexRef = useRef28(clampedActiveIndex);
9467
+ const initialActiveIndexRef = useRef30(clampedActiveIndex);
8572
9468
  const { scrollRef, scrollToIndex, liveIndex } = useSnapCarousel({
8573
9469
  itemCount: count,
8574
9470
  onSettle,
@@ -8578,7 +9474,7 @@ function SwipableMobileCarousel({
8578
9474
  useLayoutEffect4(() => {
8579
9475
  scrollToIndex(initialActiveIndexRef.current, "instant");
8580
9476
  }, []);
8581
- const didMountActiveIndexSyncRef = useRef28(false);
9477
+ const didMountActiveIndexSyncRef = useRef30(false);
8582
9478
  useEffect18(() => {
8583
9479
  if (!didMountActiveIndexSyncRef.current) {
8584
9480
  didMountActiveIndexSyncRef.current = true;
@@ -8586,7 +9482,7 @@ function SwipableMobileCarousel({
8586
9482
  }
8587
9483
  scrollToIndex(clampedActiveIndex, "smooth");
8588
9484
  }, [clampedActiveIndex, scrollToIndex]);
8589
- const prevKeysRef = useRef28(null);
9485
+ const prevKeysRef = useRef30(null);
8590
9486
  useLayoutEffect4(() => {
8591
9487
  const currentKeys = slides.map((s) => s.key);
8592
9488
  const prevKeys = prevKeysRef.current;
@@ -8610,7 +9506,7 @@ function SwipableMobileCarousel({
8610
9506
  onSettle(index);
8611
9507
  }
8612
9508
  const labels = slides.map((s) => s.label);
8613
- const indicator = renderIndicator === null ? null : renderIndicator ? renderIndicator({ count, activeIndex: clampedActiveIndex, labels, onJump: handleJump }) : /* @__PURE__ */ jsx222(
9509
+ const indicator = renderIndicator === null ? null : renderIndicator ? renderIndicator({ count, activeIndex: clampedActiveIndex, labels, onJump: handleJump }) : /* @__PURE__ */ jsx231(
8614
9510
  SwipableMobileCarouselDots,
8615
9511
  {
8616
9512
  count,
@@ -8620,8 +9516,8 @@ function SwipableMobileCarousel({
8620
9516
  onJump: handleJump
8621
9517
  }
8622
9518
  );
8623
- return /* @__PURE__ */ jsxs168("div", { className: [styles90.wrap, className].filter(Boolean).join(" "), children: [
8624
- /* @__PURE__ */ jsx222("div", { className: styles90.scroller, ref: scrollRef, role: "region", "aria-label": ariaLabel, children: slides.map((slide, i) => /* @__PURE__ */ jsx222("div", { className: styles90.slide, children: /* @__PURE__ */ jsx222(
9519
+ return /* @__PURE__ */ jsxs176("div", { className: [styles97.wrap, className].filter(Boolean).join(" "), children: [
9520
+ /* @__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(
8625
9521
  CarouselSlideMountContext.Provider,
8626
9522
  {
8627
9523
  value: {
@@ -8639,61 +9535,61 @@ function SwipableMobileCarousel({
8639
9535
  children: slide.element
8640
9536
  }
8641
9537
  ) }, slide.key)) }),
8642
- indicator && /* @__PURE__ */ jsx222("div", { className: styles90.indicatorSlot, children: indicator })
9538
+ indicator && /* @__PURE__ */ jsx231("div", { className: styles97.indicatorSlot, children: indicator })
8643
9539
  ] });
8644
9540
  }
8645
9541
 
8646
9542
  // src/components/SwipableMobileCarousel/SwipableMobileCarouselSlideHeader.tsx
8647
- import styles91 from "./SwipableMobileCarouselSlideParts.module.css";
8648
- import { jsx as jsx223 } from "react/jsx-runtime";
9543
+ import styles98 from "./SwipableMobileCarouselSlideParts.module.css";
9544
+ import { jsx as jsx232 } from "react/jsx-runtime";
8649
9545
  function SwipableMobileCarouselSlideHeader({
8650
9546
  children,
8651
9547
  className
8652
9548
  }) {
8653
- return /* @__PURE__ */ jsx223("div", { className: [styles91.header, className].filter(Boolean).join(" "), children });
9549
+ return /* @__PURE__ */ jsx232("div", { className: [styles98.header, className].filter(Boolean).join(" "), children });
8654
9550
  }
8655
9551
 
8656
9552
  // src/components/SwipableMobileCarousel/SwipableMobileCarouselSlideBody.tsx
8657
- import styles92 from "./SwipableMobileCarouselSlideParts.module.css";
8658
- import { jsx as jsx224 } from "react/jsx-runtime";
8659
- var defaultLoadingFallback = /* @__PURE__ */ jsx224("div", { className: styles92.loading, children: "Loading\u2026" });
9553
+ import styles99 from "./SwipableMobileCarouselSlideParts.module.css";
9554
+ import { jsx as jsx233 } from "react/jsx-runtime";
9555
+ var defaultLoadingFallback = /* @__PURE__ */ jsx233("div", { className: styles99.loading, children: "Loading\u2026" });
8660
9556
  function SwipableMobileCarouselSlideBody({
8661
9557
  children,
8662
9558
  loading = false,
8663
9559
  loadingFallback,
8664
9560
  className
8665
9561
  }) {
8666
- return /* @__PURE__ */ jsx224("div", { className: [styles92.body, className].filter(Boolean).join(" "), children: loading ? loadingFallback ?? defaultLoadingFallback : children });
9562
+ return /* @__PURE__ */ jsx233("div", { className: [styles99.body, className].filter(Boolean).join(" "), children: loading ? loadingFallback ?? defaultLoadingFallback : children });
8667
9563
  }
8668
9564
 
8669
9565
  // src/components/SwipableMobileCarousel/SwipableMobileCarouselSlideFooter.tsx
8670
- import styles93 from "./SwipableMobileCarouselSlideParts.module.css";
8671
- import { jsx as jsx225 } from "react/jsx-runtime";
9566
+ import styles100 from "./SwipableMobileCarouselSlideParts.module.css";
9567
+ import { jsx as jsx234 } from "react/jsx-runtime";
8672
9568
  function SwipableMobileCarouselSlideFooter({
8673
9569
  children,
8674
9570
  className
8675
9571
  }) {
8676
- return /* @__PURE__ */ jsx225("div", { className: [styles93.footer, className].filter(Boolean).join(" "), children });
9572
+ return /* @__PURE__ */ jsx234("div", { className: [styles100.footer, className].filter(Boolean).join(" "), children });
8677
9573
  }
8678
9574
 
8679
9575
  // src/components/SwipeStack/SwipeStack.tsx
8680
- import { Children as Children3, isValidElement as isValidElement3, useEffect as useEffect19, useRef as useRef29, useState as useState31 } from "react";
9576
+ import { Children as Children3, isValidElement as isValidElement3, useEffect as useEffect19, useRef as useRef31, useState as useState35 } from "react";
8681
9577
 
8682
9578
  // src/components/SwipeStack/SwipeStackCard.tsx
8683
- import { Fragment as Fragment18, jsx as jsx226 } from "react/jsx-runtime";
9579
+ import { Fragment as Fragment22, jsx as jsx235 } from "react/jsx-runtime";
8684
9580
  function SwipeStackCard({ children }) {
8685
- return /* @__PURE__ */ jsx226(Fragment18, { children });
9581
+ return /* @__PURE__ */ jsx235(Fragment22, { children });
8686
9582
  }
8687
9583
 
8688
9584
  // src/components/SwipeStack/SwipeStack.tsx
8689
- import styles94 from "./SwipeStack.module.css";
8690
- import { jsx as jsx227, jsxs as jsxs169 } from "react/jsx-runtime";
9585
+ import styles101 from "./SwipeStack.module.css";
9586
+ import { jsx as jsx236, jsxs as jsxs177 } from "react/jsx-runtime";
8691
9587
  var DIRECTION_KEYS = ["up", "down", "left", "right"];
8692
9588
  var STAMP_CLASS = {
8693
- up: styles94.stampUp,
8694
- down: styles94.stampDown,
8695
- left: styles94.stampLeft,
8696
- right: styles94.stampRight
9589
+ up: styles101.stampUp,
9590
+ down: styles101.stampDown,
9591
+ left: styles101.stampLeft,
9592
+ right: styles101.stampRight
8697
9593
  };
8698
9594
  function describeChild2(child) {
8699
9595
  if (isValidElement3(child)) {
@@ -8734,9 +9630,9 @@ function SwipeStack({
8734
9630
  children
8735
9631
  }) {
8736
9632
  const cards = resolveCards(children);
8737
- const [dismissed, setDismissed] = useState31(() => /* @__PURE__ */ new Set());
8738
- const [exiting, setExiting] = useState31(null);
8739
- const exitTimerRef = useRef29(null);
9633
+ const [dismissed, setDismissed] = useState35(() => /* @__PURE__ */ new Set());
9634
+ const [exiting, setExiting] = useState35(null);
9635
+ const exitTimerRef = useRef31(null);
8740
9636
  useEffect19(
8741
9637
  () => () => {
8742
9638
  if (exitTimerRef.current) clearTimeout(exitTimerRef.current);
@@ -8764,33 +9660,33 @@ function SwipeStack({
8764
9660
  onSwipe(direction, committed.key);
8765
9661
  }
8766
9662
  });
8767
- return /* @__PURE__ */ jsxs169("div", { className: [styles94.wrap, className].filter(Boolean).join(" "), children: [
8768
- /* @__PURE__ */ jsxs169("div", { className: styles94.stack, role: "region", "aria-label": ariaLabel, children: [
8769
- peek && /* @__PURE__ */ jsx227("div", { className: styles94.peek, "aria-hidden": "true", children: peek.element }, peek.key),
8770
- current && /* @__PURE__ */ jsxs169("div", { className: styles94.cardSlot, ref: wrapRef, children: [
9663
+ return /* @__PURE__ */ jsxs177("div", { className: [styles101.wrap, className].filter(Boolean).join(" "), children: [
9664
+ /* @__PURE__ */ jsxs177("div", { className: styles101.stack, role: "region", "aria-label": ariaLabel, children: [
9665
+ peek && /* @__PURE__ */ jsx236("div", { className: styles101.peek, "aria-hidden": "true", children: peek.element }, peek.key),
9666
+ current && /* @__PURE__ */ jsxs177("div", { className: styles101.cardSlot, ref: wrapRef, children: [
8771
9667
  liveDirections.map((d) => {
8772
9668
  const meta = directions[d];
8773
9669
  if (!meta) return null;
8774
- return /* @__PURE__ */ jsxs169(
9670
+ return /* @__PURE__ */ jsxs177(
8775
9671
  "div",
8776
9672
  {
8777
- className: [styles94.stamp, STAMP_CLASS[d]].join(" "),
9673
+ className: [styles101.stamp, STAMP_CLASS[d]].join(" "),
8778
9674
  "aria-hidden": "true",
8779
9675
  children: [
8780
- meta.icon && /* @__PURE__ */ jsx227(Icon, { name: meta.icon, size: "sm", "aria-hidden": true }),
8781
- /* @__PURE__ */ jsx227("span", { children: meta.label })
9676
+ meta.icon && /* @__PURE__ */ jsx236(Icon, { name: meta.icon, size: "sm", "aria-hidden": true }),
9677
+ /* @__PURE__ */ jsx236("span", { children: meta.label })
8782
9678
  ]
8783
9679
  },
8784
9680
  d
8785
9681
  );
8786
9682
  }),
8787
- /* @__PURE__ */ jsx227("div", { className: styles94.card, ref: cardRef, style: { touchAction }, ...handlers, children: current.element })
9683
+ /* @__PURE__ */ jsx236("div", { className: styles101.card, ref: cardRef, style: { touchAction }, ...handlers, children: current.element })
8788
9684
  ] }, current.key)
8789
9685
  ] }),
8790
- liveDirections.length > 0 && /* @__PURE__ */ jsx227("div", { className: styles94.actions, role: "group", "aria-label": `${ariaLabel} actions`, children: liveDirections.map((d) => {
9686
+ liveDirections.length > 0 && /* @__PURE__ */ jsx236("div", { className: styles101.actions, role: "group", "aria-label": `${ariaLabel} actions`, children: liveDirections.map((d) => {
8791
9687
  const meta = directions[d];
8792
9688
  if (!meta) return null;
8793
- return /* @__PURE__ */ jsxs169(
9689
+ return /* @__PURE__ */ jsxs177(
8794
9690
  Button,
8795
9691
  {
8796
9692
  variant: "secondary",
@@ -8798,7 +9694,7 @@ function SwipeStack({
8798
9694
  disabled: !current,
8799
9695
  onClick: () => triggerCommit(d),
8800
9696
  children: [
8801
- meta.icon && /* @__PURE__ */ jsx227(Icon, { name: meta.icon, size: "sm", "aria-hidden": true }),
9697
+ meta.icon && /* @__PURE__ */ jsx236(Icon, { name: meta.icon, size: "sm", "aria-hidden": true }),
8802
9698
  meta.label
8803
9699
  ]
8804
9700
  },
@@ -8810,8 +9706,8 @@ function SwipeStack({
8810
9706
 
8811
9707
  // src/components/ThreeColumnLayout/ThreeColumnLayout.tsx
8812
9708
  import { Children as Children4 } from "react";
8813
- import styles95 from "./ThreeColumnLayout.module.css";
8814
- import { jsx as jsx228, jsxs as jsxs170 } from "react/jsx-runtime";
9709
+ import styles102 from "./ThreeColumnLayout.module.css";
9710
+ import { jsx as jsx237, jsxs as jsxs178 } from "react/jsx-runtime";
8815
9711
  function ThreeColumnLayout({
8816
9712
  children,
8817
9713
  sidebarWidth = 280,
@@ -8826,24 +9722,24 @@ function ThreeColumnLayout({
8826
9722
  );
8827
9723
  }
8828
9724
  const [sidebar, main, detail] = items;
8829
- return /* @__PURE__ */ jsxs170("div", { className: [styles95.shell, className].filter(Boolean).join(" "), children: [
8830
- /* @__PURE__ */ jsx228(
9725
+ return /* @__PURE__ */ jsxs178("div", { className: [styles102.shell, className].filter(Boolean).join(" "), children: [
9726
+ /* @__PURE__ */ jsx237(
8831
9727
  "div",
8832
9728
  {
8833
- className: [styles95.sidebar, sidebarHidden && styles95.sidebarHidden].filter(Boolean).join(" "),
9729
+ className: [styles102.sidebar, sidebarHidden && styles102.sidebarHidden].filter(Boolean).join(" "),
8834
9730
  style: sidebarHidden ? void 0 : { width: sidebarWidth },
8835
9731
  hidden: sidebarHidden,
8836
9732
  children: sidebar
8837
9733
  }
8838
9734
  ),
8839
- /* @__PURE__ */ jsx228("div", { className: styles95.main, children: main }),
8840
- detail && /* @__PURE__ */ jsx228("div", { className: styles95.detail, style: { width: detailWidth }, children: detail })
9735
+ /* @__PURE__ */ jsx237("div", { className: styles102.main, children: main }),
9736
+ detail && /* @__PURE__ */ jsx237("div", { className: styles102.detail, style: { width: detailWidth }, children: detail })
8841
9737
  ] });
8842
9738
  }
8843
9739
 
8844
9740
  // src/components/HeaderFooterLayout/HeaderFooterLayout.tsx
8845
- import styles96 from "./HeaderFooterLayout.module.css";
8846
- import { jsx as jsx229, jsxs as jsxs171 } from "react/jsx-runtime";
9741
+ import styles103 from "./HeaderFooterLayout.module.css";
9742
+ import { jsx as jsx238, jsxs as jsxs179 } from "react/jsx-runtime";
8847
9743
  function HeaderFooterLayout({
8848
9744
  children,
8849
9745
  header,
@@ -8852,17 +9748,17 @@ function HeaderFooterLayout({
8852
9748
  footerHeight = 60,
8853
9749
  className
8854
9750
  }) {
8855
- return /* @__PURE__ */ jsxs171("div", { className: [styles96.shell, className].filter(Boolean).join(" "), children: [
8856
- header && /* @__PURE__ */ jsx229("div", { className: styles96.header, style: { height: headerHeight }, children: header }),
8857
- /* @__PURE__ */ jsx229("div", { className: styles96.main, children }),
8858
- footer && /* @__PURE__ */ jsx229("div", { className: styles96.footer, style: { height: footerHeight }, children: footer })
9751
+ return /* @__PURE__ */ jsxs179("div", { className: [styles103.shell, className].filter(Boolean).join(" "), children: [
9752
+ header && /* @__PURE__ */ jsx238("div", { className: styles103.header, style: { height: headerHeight }, children: header }),
9753
+ /* @__PURE__ */ jsx238("div", { className: styles103.main, children }),
9754
+ footer && /* @__PURE__ */ jsx238("div", { className: styles103.footer, style: { height: footerHeight }, children: footer })
8859
9755
  ] });
8860
9756
  }
8861
9757
 
8862
9758
  // src/components/RootLayout/RootLayout.tsx
8863
9759
  import { Children as Children5 } from "react";
8864
- import styles97 from "./RootLayout.module.css";
8865
- import { Fragment as Fragment19, jsx as jsx230, jsxs as jsxs172 } from "react/jsx-runtime";
9760
+ import styles104 from "./RootLayout.module.css";
9761
+ import { Fragment as Fragment23, jsx as jsx239, jsxs as jsxs180 } from "react/jsx-runtime";
8866
9762
  var EXPECTED_CHILD_COUNT = {
8867
9763
  plain: 1,
8868
9764
  sidebar: 2,
@@ -8872,17 +9768,17 @@ var EXPECTED_CHILD_COUNT = {
8872
9768
  function RootLayoutWeb({ variant, items, sidebarWidth, headerHeight }) {
8873
9769
  if (variant === "sidebar") {
8874
9770
  const [sidebar, main2] = items;
8875
- return /* @__PURE__ */ jsxs172(ThreeColumnLayout, { sidebarWidth, children: [
9771
+ return /* @__PURE__ */ jsxs180(ThreeColumnLayout, { sidebarWidth, children: [
8876
9772
  sidebar,
8877
9773
  main2
8878
9774
  ] });
8879
9775
  }
8880
9776
  if (variant === "header") {
8881
9777
  const [header, main2] = items;
8882
- return /* @__PURE__ */ jsx230(HeaderFooterLayout, { header, headerHeight, children: main2 });
9778
+ return /* @__PURE__ */ jsx239(HeaderFooterLayout, { header, headerHeight, children: main2 });
8883
9779
  }
8884
9780
  const main = variant === "shell" ? items[1] : items[0];
8885
- return /* @__PURE__ */ jsx230(Fragment19, { children: main });
9781
+ return /* @__PURE__ */ jsx239(Fragment23, { children: main });
8886
9782
  }
8887
9783
  function RootLayoutMobile({
8888
9784
  variant,
@@ -8892,11 +9788,11 @@ function RootLayoutMobile({
8892
9788
  }) {
8893
9789
  if (variant === "header") {
8894
9790
  const [header, main2] = items;
8895
- return /* @__PURE__ */ jsx230(HeaderFooterLayout, { header, headerHeight: mobileHeaderHeight, children: main2 });
9791
+ return /* @__PURE__ */ jsx239(HeaderFooterLayout, { header, headerHeight: mobileHeaderHeight, children: main2 });
8896
9792
  }
8897
9793
  if (variant === "shell") {
8898
9794
  const [header, main2, footer] = items;
8899
- return /* @__PURE__ */ jsx230(
9795
+ return /* @__PURE__ */ jsx239(
8900
9796
  HeaderFooterLayout,
8901
9797
  {
8902
9798
  header,
@@ -8908,7 +9804,7 @@ function RootLayoutMobile({
8908
9804
  );
8909
9805
  }
8910
9806
  const main = variant === "sidebar" ? items[1] : items[0];
8911
- return /* @__PURE__ */ jsx230(Fragment19, { children: main });
9807
+ return /* @__PURE__ */ jsx239(Fragment23, { children: main });
8912
9808
  }
8913
9809
  function RootLayout({
8914
9810
  variant = "plain",
@@ -8925,10 +9821,10 @@ function RootLayout({
8925
9821
  `[RootLayout] variant="${variant}" expects ${EXPECTED_CHILD_COUNT[variant]} children; received ${items.length}.`
8926
9822
  );
8927
9823
  }
8928
- return /* @__PURE__ */ jsx230("div", { className: [styles97.root, className].filter(Boolean).join(" "), children: /* @__PURE__ */ jsx230(
9824
+ return /* @__PURE__ */ jsx239("div", { className: [styles104.root, className].filter(Boolean).join(" "), children: /* @__PURE__ */ jsx239(
8929
9825
  ResponsiveSurface,
8930
9826
  {
8931
- web: /* @__PURE__ */ jsx230(
9827
+ web: /* @__PURE__ */ jsx239(
8932
9828
  RootLayoutWeb,
8933
9829
  {
8934
9830
  variant,
@@ -8937,7 +9833,7 @@ function RootLayout({
8937
9833
  headerHeight
8938
9834
  }
8939
9835
  ),
8940
- mobile: /* @__PURE__ */ jsx230(
9836
+ mobile: /* @__PURE__ */ jsx239(
8941
9837
  RootLayoutMobile,
8942
9838
  {
8943
9839
  variant,
@@ -8951,25 +9847,25 @@ function RootLayout({
8951
9847
  }
8952
9848
 
8953
9849
  // src/components/PageLayout/PageLayout.tsx
8954
- import styles98 from "./PageLayout.module.css";
8955
- import { jsx as jsx231, jsxs as jsxs173 } from "react/jsx-runtime";
9850
+ import styles105 from "./PageLayout.module.css";
9851
+ import { jsx as jsx240, jsxs as jsxs181 } from "react/jsx-runtime";
8956
9852
  var paddingClass3 = {
8957
- none: styles98.padNone,
8958
- sm: styles98.padSm,
8959
- md: styles98.padMd,
8960
- lg: styles98.padLg
9853
+ none: styles105.padNone,
9854
+ sm: styles105.padSm,
9855
+ md: styles105.padMd,
9856
+ lg: styles105.padLg
8961
9857
  };
8962
9858
  function PageLayout({ header, padding = "none", children, className }) {
8963
- return /* @__PURE__ */ jsxs173("div", { className: [styles98.root, className].filter(Boolean).join(" "), children: [
8964
- header && /* @__PURE__ */ jsx231("div", { className: styles98.header, children: header }),
8965
- /* @__PURE__ */ jsx231("div", { className: [styles98.content, paddingClass3[padding]].join(" "), children })
9859
+ return /* @__PURE__ */ jsxs181("div", { className: [styles105.root, className].filter(Boolean).join(" "), children: [
9860
+ header && /* @__PURE__ */ jsx240("div", { className: styles105.header, children: header }),
9861
+ /* @__PURE__ */ jsx240("div", { className: [styles105.content, paddingClass3[padding]].join(" "), children })
8966
9862
  ] });
8967
9863
  }
8968
9864
 
8969
9865
  // src/components/NavList/NavList.tsx
8970
- import { Fragment as Fragment20 } from "react";
8971
- import styles99 from "./NavList.module.css";
8972
- import { Fragment as Fragment21, jsx as jsx232, jsxs as jsxs174 } from "react/jsx-runtime";
9866
+ import { Fragment as Fragment24 } from "react";
9867
+ import styles106 from "./NavList.module.css";
9868
+ import { Fragment as Fragment25, jsx as jsx241, jsxs as jsxs182 } from "react/jsx-runtime";
8973
9869
  function NavList({
8974
9870
  groups,
8975
9871
  variant,
@@ -8978,28 +9874,28 @@ function NavList({
8978
9874
  className,
8979
9875
  renderLink
8980
9876
  }) {
8981
- return /* @__PURE__ */ jsx232(
9877
+ return /* @__PURE__ */ jsx241(
8982
9878
  "nav",
8983
9879
  {
8984
- className: [styles99.nav, styles99[variant], density === "compact" && styles99.compact, className].filter(Boolean).join(" "),
9880
+ className: [styles106.nav, styles106[variant], density === "compact" && styles106.compact, className].filter(Boolean).join(" "),
8985
9881
  "aria-label": ariaLabel,
8986
- children: groups.map((group) => /* @__PURE__ */ jsxs174("div", { className: styles99.group, children: [
8987
- group.label && /* @__PURE__ */ jsx232("div", { className: styles99.groupLabel, children: group.label }),
9882
+ children: groups.map((group) => /* @__PURE__ */ jsxs182("div", { className: styles106.group, children: [
9883
+ group.label && /* @__PURE__ */ jsx241("div", { className: styles106.groupLabel, children: group.label }),
8988
9884
  group.items.map((item) => {
8989
9885
  const isActive = variant === "static" && !!item.active;
8990
- const rowContent = /* @__PURE__ */ jsxs174(Fragment21, { children: [
8991
- /* @__PURE__ */ jsx232(Icon, { name: item.icon, size: "sm", "aria-hidden": true, className: styles99.icon }),
8992
- /* @__PURE__ */ jsx232("span", { className: styles99.label, children: item.label }),
8993
- item.badge && /* @__PURE__ */ jsx232("span", { className: styles99.badge, children: item.badge }),
8994
- variant === "drilldown" && /* @__PURE__ */ jsx232(Icon, { name: "chevron-right", size: "sm", "aria-hidden": true, className: styles99.chevron })
9886
+ const rowContent = /* @__PURE__ */ jsxs182(Fragment25, { children: [
9887
+ /* @__PURE__ */ jsx241(Icon, { name: item.icon, size: "sm", "aria-hidden": true, className: styles106.icon }),
9888
+ /* @__PURE__ */ jsx241("span", { className: styles106.label, children: item.label }),
9889
+ item.badge && /* @__PURE__ */ jsx241("span", { className: styles106.badge, children: item.badge }),
9890
+ variant === "drilldown" && /* @__PURE__ */ jsx241(Icon, { name: "chevron-right", size: "sm", "aria-hidden": true, className: styles106.chevron })
8995
9891
  ] });
8996
9892
  const linkProps = {
8997
9893
  href: item.href,
8998
- className: [styles99.row, isActive && styles99.rowActive].filter(Boolean).join(" "),
9894
+ className: [styles106.row, isActive && styles106.rowActive].filter(Boolean).join(" "),
8999
9895
  "aria-current": isActive ? "page" : void 0,
9000
9896
  children: rowContent
9001
9897
  };
9002
- return /* @__PURE__ */ jsx232(Fragment20, { children: renderLink ? renderLink(item, linkProps) : /* @__PURE__ */ jsx232(
9898
+ return /* @__PURE__ */ jsx241(Fragment24, { children: renderLink ? renderLink(item, linkProps) : /* @__PURE__ */ jsx241(
9003
9899
  "a",
9004
9900
  {
9005
9901
  href: linkProps.href,
@@ -9057,8 +9953,8 @@ var THEME_PRESETS = {
9057
9953
  };
9058
9954
 
9059
9955
  // src/components/CopyButton/CopyButton.tsx
9060
- import { useState as useState32 } from "react";
9061
- import { jsx as jsx233 } from "react/jsx-runtime";
9956
+ import { useState as useState36 } from "react";
9957
+ import { jsx as jsx242 } from "react/jsx-runtime";
9062
9958
  function CopyButton({
9063
9959
  text,
9064
9960
  label,
@@ -9067,7 +9963,7 @@ function CopyButton({
9067
9963
  variant = "secondary",
9068
9964
  size = "sm"
9069
9965
  }) {
9070
- const [state, setState] = useState32("idle");
9966
+ const [state, setState] = useState36("idle");
9071
9967
  async function copy() {
9072
9968
  try {
9073
9969
  await navigator.clipboard.writeText(text);
@@ -9076,12 +9972,12 @@ function CopyButton({
9076
9972
  setState("failed");
9077
9973
  }
9078
9974
  }
9079
- return /* @__PURE__ */ jsx233(Button, { type: "button", variant, size, onClick: () => void copy(), children: state === "copied" ? copiedLabel : state === "failed" ? failedLabel : label });
9975
+ return /* @__PURE__ */ jsx242(Button, { type: "button", variant, size, onClick: () => void copy(), children: state === "copied" ? copiedLabel : state === "failed" ? failedLabel : label });
9080
9976
  }
9081
9977
 
9082
9978
  // src/components/QrCode/QrCode.tsx
9083
- import styles100 from "./QrCode.module.css";
9084
- import { jsx as jsx234 } from "react/jsx-runtime";
9979
+ import styles107 from "./QrCode.module.css";
9980
+ import { jsx as jsx243 } from "react/jsx-runtime";
9085
9981
  var QUIET_ZONE = 2;
9086
9982
  function QrCode({ modules, label }) {
9087
9983
  const size = modules.length + QUIET_ZONE * 2;
@@ -9091,7 +9987,7 @@ function QrCode({ modules, label }) {
9091
9987
  if (dark) path += `M${x + QUIET_ZONE} ${y + QUIET_ZONE}h1v1h-1z`;
9092
9988
  });
9093
9989
  });
9094
- return /* @__PURE__ */ jsx234("div", { className: styles100.qr, children: /* @__PURE__ */ jsx234(
9990
+ return /* @__PURE__ */ jsx243("div", { className: styles107.qr, children: /* @__PURE__ */ jsx243(
9095
9991
  "svg",
9096
9992
  {
9097
9993
  viewBox: `0 0 ${size} ${size}`,
@@ -9099,13 +9995,14 @@ function QrCode({ modules, label }) {
9099
9995
  "aria-label": label,
9100
9996
  shapeRendering: "crispEdges",
9101
9997
  xmlns: "http://www.w3.org/2000/svg",
9102
- children: /* @__PURE__ */ jsx234("path", { d: path })
9998
+ children: /* @__PURE__ */ jsx243("path", { d: path })
9103
9999
  }
9104
10000
  ) });
9105
10001
  }
9106
10002
  export {
9107
10003
  Accordion,
9108
10004
  Alert,
10005
+ AppTile,
9109
10006
  AppsLauncher,
9110
10007
  AspectRatio,
9111
10008
  AuthButton,
@@ -9121,6 +10018,7 @@ export {
9121
10018
  AuthNotice,
9122
10019
  AuthShell,
9123
10020
  Avatar,
10021
+ AvatarStack,
9124
10022
  Badge,
9125
10023
  BalanceChip,
9126
10024
  BrandBadge,
@@ -9146,6 +10044,7 @@ export {
9146
10044
  CurrencyInput,
9147
10045
  DataTable,
9148
10046
  DatePicker,
10047
+ DateRangePicker,
9149
10048
  DeviceOnlyGate,
9150
10049
  DeviceStorageKeyGate,
9151
10050
  Dialog,
@@ -9153,6 +10052,7 @@ export {
9153
10052
  Drawer,
9154
10053
  EmptyState,
9155
10054
  FileDropzone,
10055
+ FloatingActionButton,
9156
10056
  FormField,
9157
10057
  GripIcon,
9158
10058
  Header,
@@ -9165,6 +10065,7 @@ export {
9165
10065
  Kbd,
9166
10066
  Label,
9167
10067
  LegalLinks,
10068
+ LockedState,
9168
10069
  MOBILE_BREAKPOINT_PX,
9169
10070
  Markdown,
9170
10071
  Marker,
@@ -9188,11 +10089,16 @@ export {
9188
10089
  PageHeader,
9189
10090
  PageLayout,
9190
10091
  Pagination,
10092
+ PhotoGallery,
10093
+ PhotoGrid,
10094
+ PhotoViewer,
9191
10095
  Popover,
9192
10096
  Progress,
9193
10097
  QrCode,
9194
10098
  QuantityStepper,
9195
10099
  RadioGroup,
10100
+ RangeCalendar,
10101
+ RecoveryKit,
9196
10102
  ResizableHandle,
9197
10103
  ResizablePanel,
9198
10104
  ResizablePanelGroup,
@@ -9236,6 +10142,8 @@ export {
9236
10142
  Tooltip,
9237
10143
  Typography,
9238
10144
  UserMenu,
10145
+ recoveryKitFileName,
10146
+ recoveryKitFileText,
9239
10147
  shouldHandleDndEvent,
9240
10148
  useCarouselRouteSync,
9241
10149
  useCommitOnEnterOrBlur,