@sovereignfs/ui 0.96.1 → 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
@@ -6043,12 +6043,191 @@ function EmptyState({ icon, heading, description, action, className }) {
6043
6043
  ] });
6044
6044
  }
6045
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
+
6046
6225
  // src/components/OfflineGate/OfflineGate.tsx
6047
- import { Fragment as Fragment9, jsx as jsx172 } from "react/jsx-runtime";
6226
+ import { Fragment as Fragment9, jsx as jsx175 } from "react/jsx-runtime";
6048
6227
  function OfflineGate({ children, surfaceName, className }) {
6049
6228
  const isOffline = useIsOffline();
6050
- if (!isOffline) return /* @__PURE__ */ jsx172(Fragment9, { children });
6051
- return /* @__PURE__ */ jsx172(
6229
+ if (!isOffline) return /* @__PURE__ */ jsx175(Fragment9, { children });
6230
+ return /* @__PURE__ */ jsx175(
6052
6231
  EmptyState,
6053
6232
  {
6054
6233
  icon: "alert-triangle",
@@ -6060,15 +6239,15 @@ function OfflineGate({ children, surfaceName, className }) {
6060
6239
  }
6061
6240
 
6062
6241
  // src/components/DeviceOnlyGate/DeviceOnlyGate.tsx
6063
- import { Fragment as Fragment10, jsx as jsx173 } from "react/jsx-runtime";
6242
+ import { Fragment as Fragment10, jsx as jsx176 } from "react/jsx-runtime";
6064
6243
  function DeviceOnlyGate({
6065
6244
  children,
6066
6245
  surfaceName,
6067
6246
  available,
6068
6247
  className
6069
6248
  }) {
6070
- if (available) return /* @__PURE__ */ jsx173(Fragment10, { children });
6071
- return /* @__PURE__ */ jsx173(
6249
+ if (available) return /* @__PURE__ */ jsx176(Fragment10, { children });
6250
+ return /* @__PURE__ */ jsx176(
6072
6251
  EmptyState,
6073
6252
  {
6074
6253
  icon: "smartphone",
@@ -6080,7 +6259,7 @@ function DeviceOnlyGate({
6080
6259
  }
6081
6260
 
6082
6261
  // src/components/DeviceStorageKeyGate/DeviceStorageKeyGate.tsx
6083
- import { Fragment as Fragment11, jsx as jsx174 } from "react/jsx-runtime";
6262
+ import { Fragment as Fragment11, jsx as jsx177 } from "react/jsx-runtime";
6084
6263
  function DeviceStorageKeyGate({
6085
6264
  children,
6086
6265
  surfaceName,
@@ -6089,9 +6268,9 @@ function DeviceStorageKeyGate({
6089
6268
  className
6090
6269
  }) {
6091
6270
  if (status === "checking") return null;
6092
- if (status === "set-up") return /* @__PURE__ */ jsx174(Fragment11, { children });
6271
+ if (status === "set-up") return /* @__PURE__ */ jsx177(Fragment11, { children });
6093
6272
  if (status === "unsupported") {
6094
- return /* @__PURE__ */ jsx174(
6273
+ return /* @__PURE__ */ jsx177(
6095
6274
  EmptyState,
6096
6275
  {
6097
6276
  icon: "smartphone",
@@ -6102,7 +6281,7 @@ function DeviceStorageKeyGate({
6102
6281
  );
6103
6282
  }
6104
6283
  if (status === "no-device-auth") {
6105
- return /* @__PURE__ */ jsx174(
6284
+ return /* @__PURE__ */ jsx177(
6106
6285
  EmptyState,
6107
6286
  {
6108
6287
  icon: "alert-triangle",
@@ -6112,7 +6291,7 @@ function DeviceStorageKeyGate({
6112
6291
  }
6113
6292
  );
6114
6293
  }
6115
- return /* @__PURE__ */ jsx174(
6294
+ return /* @__PURE__ */ jsx177(
6116
6295
  EmptyState,
6117
6296
  {
6118
6297
  icon: "lock",
@@ -6125,31 +6304,31 @@ function DeviceStorageKeyGate({
6125
6304
  }
6126
6305
 
6127
6306
  // src/components/Avatar/Avatar.tsx
6128
- import { useState as useState15 } from "react";
6129
- import styles49 from "./Avatar.module.css";
6130
- import { jsx as jsx175 } from "react/jsx-runtime";
6307
+ import { useState as useState16 } from "react";
6308
+ import styles51 from "./Avatar.module.css";
6309
+ import { jsx as jsx178 } from "react/jsx-runtime";
6131
6310
  function initials2(name) {
6132
6311
  const parts = name.trim().split(/\s+/);
6133
6312
  if (parts.length === 1) return (parts[0] ?? "").slice(0, 2).toUpperCase();
6134
6313
  return ((parts[0]?.[0] ?? "") + (parts[parts.length - 1]?.[0] ?? "")).toUpperCase();
6135
6314
  }
6136
6315
  var sizeClass2 = {
6137
- sm: styles49.sm,
6138
- md: styles49.md,
6139
- lg: styles49.lg
6316
+ sm: styles51.sm,
6317
+ md: styles51.md,
6318
+ lg: styles51.lg
6140
6319
  };
6141
6320
  function Avatar({ name, src, size = "md", className }) {
6142
- const [imgFailed, setImgFailed] = useState15(false);
6143
- const cls = [styles49.avatar, sizeClass2[size], className].filter(Boolean).join(" ");
6321
+ const [imgFailed, setImgFailed] = useState16(false);
6322
+ const cls = [styles51.avatar, sizeClass2[size], className].filter(Boolean).join(" ");
6144
6323
  if (src && !imgFailed) {
6145
- return /* @__PURE__ */ jsx175("span", { className: cls, "aria-label": name, children: /* @__PURE__ */ jsx175("img", { src, alt: name, className: styles49.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) }) });
6146
6325
  }
6147
- return /* @__PURE__ */ jsx175("span", { className: cls, "aria-label": name, children: initials2(name) });
6326
+ return /* @__PURE__ */ jsx178("span", { className: cls, "aria-label": name, children: initials2(name) });
6148
6327
  }
6149
6328
 
6150
6329
  // src/components/AvatarStack/AvatarStack.tsx
6151
- import styles50 from "./AvatarStack.module.css";
6152
- import { jsx as jsx176, jsxs as jsxs143 } from "react/jsx-runtime";
6330
+ import styles52 from "./AvatarStack.module.css";
6331
+ import { jsx as jsx179, jsxs as jsxs145 } from "react/jsx-runtime";
6153
6332
  function namesOf(people) {
6154
6333
  const names = people.map((person) => person.name.trim()).filter((name) => name !== "");
6155
6334
  if (names.length <= 1) return names[0] ?? "";
@@ -6162,10 +6341,10 @@ function AvatarStack({ people, max = 4, size = "md", label, className }) {
6162
6341
  const shown = hidden > 0 ? people.slice(0, limit) : people;
6163
6342
  const names = namesOf(people);
6164
6343
  const accessible = label ? `${label}: ${names}` : names;
6165
- const cls = [styles50.stack, styles50[size], className].filter(Boolean).join(" ");
6166
- return /* @__PURE__ */ jsxs143("span", { className: cls, role: "img", "aria-label": accessible, children: [
6167
- shown.map((person, index) => /* @__PURE__ */ jsx176("span", { className: styles50.item, "aria-hidden": "true", children: /* @__PURE__ */ jsx176(Avatar, { name: person.name, ...person.src ? { src: person.src } : {}, size }) }, `${index}:${person.name}`)),
6168
- hidden > 0 ? /* @__PURE__ */ jsxs143("span", { className: `${styles50.item} ${styles50.more}`, "aria-hidden": "true", children: [
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: [
6169
6348
  "+",
6170
6349
  hidden
6171
6350
  ] }) : null
@@ -6174,22 +6353,22 @@ function AvatarStack({ people, max = 4, size = "md", label, className }) {
6174
6353
 
6175
6354
  // src/components/NavTabs/NavTabs.tsx
6176
6355
  import { Fragment as Fragment12 } from "react";
6177
- import styles51 from "./NavTabs.module.css";
6178
- import { jsx as jsx177 } from "react/jsx-runtime";
6356
+ import styles53 from "./NavTabs.module.css";
6357
+ import { jsx as jsx180 } from "react/jsx-runtime";
6179
6358
  function NavTabs({ items, className, "aria-label": ariaLabel, renderLink }) {
6180
- return /* @__PURE__ */ jsx177(
6359
+ return /* @__PURE__ */ jsx180(
6181
6360
  "nav",
6182
6361
  {
6183
- className: [styles51.nav, className].filter(Boolean).join(" "),
6362
+ className: [styles53.nav, className].filter(Boolean).join(" "),
6184
6363
  "aria-label": ariaLabel ?? "Page navigation",
6185
6364
  children: items.map((item) => {
6186
6365
  const linkProps = {
6187
6366
  href: item.href,
6188
- className: [styles51.link, item.active && styles51.active].filter(Boolean).join(" "),
6367
+ className: [styles53.link, item.active && styles53.active].filter(Boolean).join(" "),
6189
6368
  "aria-current": item.active ? "page" : void 0,
6190
6369
  children: item.label
6191
6370
  };
6192
- return /* @__PURE__ */ jsx177(Fragment12, { children: renderLink ? renderLink(item, linkProps) : /* @__PURE__ */ jsx177(
6371
+ return /* @__PURE__ */ jsx180(Fragment12, { children: renderLink ? renderLink(item, linkProps) : /* @__PURE__ */ jsx180(
6193
6372
  "a",
6194
6373
  {
6195
6374
  href: linkProps.href,
@@ -6205,80 +6384,26 @@ function NavTabs({ items, className, "aria-label": ariaLabel, renderLink }) {
6205
6384
 
6206
6385
  // src/components/Tooltip/Tooltip.tsx
6207
6386
  import { useId as useId5 } from "react";
6208
- import styles52 from "./Tooltip.module.css";
6209
- import { jsx as jsx178, jsxs as jsxs144 } from "react/jsx-runtime";
6387
+ import styles54 from "./Tooltip.module.css";
6388
+ import { jsx as jsx181, jsxs as jsxs146 } from "react/jsx-runtime";
6210
6389
  var sideClass = {
6211
- top: styles52.top,
6212
- bottom: styles52.bottom,
6213
- left: styles52.left,
6214
- right: styles52.right
6390
+ top: styles54.top,
6391
+ bottom: styles54.bottom,
6392
+ left: styles54.left,
6393
+ right: styles54.right
6215
6394
  };
6216
6395
  function Tooltip({ content, children, side = "top" }) {
6217
6396
  const tipId = useId5();
6218
- return /* @__PURE__ */ jsxs144("span", { className: styles52.wrapper, children: [
6219
- /* @__PURE__ */ jsx178("span", { "aria-describedby": tipId, children }),
6220
- /* @__PURE__ */ jsx178("span", { id: tipId, role: "tooltip", className: [styles52.tip, sideClass[side]].join(" "), children: content })
6221
- ] });
6222
- }
6223
-
6224
- // src/components/Checkbox/Checkbox.tsx
6225
- import styles53 from "./Checkbox.module.css";
6226
- import { jsx as jsx179, jsxs as jsxs145 } from "react/jsx-runtime";
6227
- function Checkbox({
6228
- checked,
6229
- onChange,
6230
- label,
6231
- strikeThrough = false,
6232
- disabled,
6233
- className,
6234
- id,
6235
- ...rest
6236
- }) {
6237
- const inputId = id ?? `checkbox-${label.toLowerCase().replace(/\s+/g, "-")}`;
6238
- return /* @__PURE__ */ jsxs145("span", { className: [styles53.root, className].filter(Boolean).join(" "), children: [
6239
- /* @__PURE__ */ jsxs145("span", { className: [styles53.box, checked ? styles53.checked : ""].filter(Boolean).join(" "), children: [
6240
- /* @__PURE__ */ jsx179(
6241
- "input",
6242
- {
6243
- ...rest,
6244
- id: inputId,
6245
- type: "checkbox",
6246
- checked,
6247
- disabled,
6248
- className: styles53.input,
6249
- onChange: (e) => onChange(e.target.checked)
6250
- }
6251
- ),
6252
- checked && /* @__PURE__ */ jsx179("svg", { className: styles53.tick, viewBox: "0 0 10 8", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ jsx179(
6253
- "path",
6254
- {
6255
- d: "M1 4l3 3 5-6",
6256
- stroke: "currentColor",
6257
- strokeWidth: "1.5",
6258
- strokeLinecap: "round",
6259
- strokeLinejoin: "round"
6260
- }
6261
- ) })
6262
- ] }),
6263
- label && /* @__PURE__ */ jsx179(
6264
- "label",
6265
- {
6266
- htmlFor: inputId,
6267
- className: [
6268
- styles53.label,
6269
- strikeThrough && checked ? styles53.struck : "",
6270
- disabled ? styles53.disabled : ""
6271
- ].filter(Boolean).join(" "),
6272
- children: label
6273
- }
6274
- )
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 })
6275
6400
  ] });
6276
6401
  }
6277
6402
 
6278
6403
  // src/components/RadioGroup/RadioGroup.tsx
6279
6404
  import { useId as useId6 } from "react";
6280
- import styles54 from "./RadioGroup.module.css";
6281
- import { jsx as jsx180, jsxs as jsxs146 } from "react/jsx-runtime";
6405
+ import styles55 from "./RadioGroup.module.css";
6406
+ import { jsx as jsx182, jsxs as jsxs147 } from "react/jsx-runtime";
6282
6407
  function RadioGroup({
6283
6408
  items,
6284
6409
  value,
@@ -6295,7 +6420,7 @@ function RadioGroup({
6295
6420
  }) {
6296
6421
  const generatedName = useId6();
6297
6422
  const groupName = name ?? generatedName;
6298
- return /* @__PURE__ */ jsx180(
6423
+ return /* @__PURE__ */ jsx182(
6299
6424
  "div",
6300
6425
  {
6301
6426
  id,
@@ -6305,19 +6430,19 @@ function RadioGroup({
6305
6430
  "aria-describedby": ariaDescribedBy,
6306
6431
  "aria-invalid": ariaInvalid,
6307
6432
  "aria-required": required,
6308
- className: [styles54.root, className].filter(Boolean).join(" "),
6433
+ className: [styles55.root, className].filter(Boolean).join(" "),
6309
6434
  children: items.map((item) => {
6310
6435
  const checked = item.value === value;
6311
6436
  const itemDisabled = disabled || item.disabled;
6312
6437
  const inputId = `${groupName}-${item.value}`;
6313
- return /* @__PURE__ */ jsxs146(
6438
+ return /* @__PURE__ */ jsxs147(
6314
6439
  "label",
6315
6440
  {
6316
6441
  htmlFor: inputId,
6317
- className: [styles54.option, itemDisabled ? styles54.disabled : ""].filter(Boolean).join(" "),
6442
+ className: [styles55.option, itemDisabled ? styles55.disabled : ""].filter(Boolean).join(" "),
6318
6443
  children: [
6319
- /* @__PURE__ */ jsxs146("span", { className: [styles54.circle, checked ? styles54.checked : ""].join(" "), children: [
6320
- /* @__PURE__ */ jsx180(
6444
+ /* @__PURE__ */ jsxs147("span", { className: [styles55.circle, checked ? styles55.checked : ""].join(" "), children: [
6445
+ /* @__PURE__ */ jsx182(
6321
6446
  "input",
6322
6447
  {
6323
6448
  id: inputId,
@@ -6327,13 +6452,13 @@ function RadioGroup({
6327
6452
  checked,
6328
6453
  disabled: itemDisabled,
6329
6454
  required,
6330
- className: styles54.input,
6455
+ className: styles55.input,
6331
6456
  onChange: () => onChange(item.value)
6332
6457
  }
6333
6458
  ),
6334
- checked && /* @__PURE__ */ jsx180("span", { className: styles54.dot })
6459
+ checked && /* @__PURE__ */ jsx182("span", { className: styles55.dot })
6335
6460
  ] }),
6336
- /* @__PURE__ */ jsx180("span", { className: styles54.optionLabel, children: item.label })
6461
+ /* @__PURE__ */ jsx182("span", { className: styles55.optionLabel, children: item.label })
6337
6462
  ]
6338
6463
  },
6339
6464
  item.value
@@ -6345,8 +6470,8 @@ function RadioGroup({
6345
6470
 
6346
6471
  // src/components/Slider/Slider.tsx
6347
6472
  import { useId as useId7 } from "react";
6348
- import styles55 from "./Slider.module.css";
6349
- import { jsx as jsx181, jsxs as jsxs147 } from "react/jsx-runtime";
6473
+ import styles56 from "./Slider.module.css";
6474
+ import { jsx as jsx183, jsxs as jsxs148 } from "react/jsx-runtime";
6350
6475
  function Slider({
6351
6476
  value,
6352
6477
  onChange,
@@ -6365,9 +6490,9 @@ function Slider({
6365
6490
  const generatedId = useId7();
6366
6491
  const inputId = id ?? generatedId;
6367
6492
  const fillPercent = max > min ? (value - min) / (max - min) * 100 : 0;
6368
- return /* @__PURE__ */ jsxs147("div", { className: [styles55.root, className].filter(Boolean).join(" "), children: [
6369
- label && /* @__PURE__ */ jsx181("label", { htmlFor: inputId, className: styles55.label, children: label }),
6370
- /* @__PURE__ */ jsx181(
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(
6371
6496
  "input",
6372
6497
  {
6373
6498
  id: inputId,
@@ -6381,7 +6506,7 @@ function Slider({
6381
6506
  "aria-label": label ? void 0 : ariaLabel,
6382
6507
  "aria-describedby": ariaDescribedBy,
6383
6508
  "aria-invalid": ariaInvalid,
6384
- className: styles55.slider,
6509
+ className: styles56.slider,
6385
6510
  style: { "--slider-fill": `${fillPercent}%` },
6386
6511
  onChange: (e) => onChange(Number(e.target.value))
6387
6512
  }
@@ -6390,11 +6515,11 @@ function Slider({
6390
6515
  }
6391
6516
 
6392
6517
  // src/components/Progress/Progress.tsx
6393
- import styles56 from "./Progress.module.css";
6394
- import { jsx as jsx182 } from "react/jsx-runtime";
6518
+ import styles57 from "./Progress.module.css";
6519
+ import { jsx as jsx184 } from "react/jsx-runtime";
6395
6520
  function Progress({ value, label, id, className }) {
6396
6521
  const clamped = Math.min(100, Math.max(0, value));
6397
- return /* @__PURE__ */ jsx182(
6522
+ return /* @__PURE__ */ jsx184(
6398
6523
  "div",
6399
6524
  {
6400
6525
  id,
@@ -6403,37 +6528,37 @@ function Progress({ value, label, id, className }) {
6403
6528
  "aria-valuemin": 0,
6404
6529
  "aria-valuemax": 100,
6405
6530
  "aria-label": label,
6406
- className: [styles56.track, className].filter(Boolean).join(" "),
6407
- children: /* @__PURE__ */ jsx182("div", { className: styles56.fill, style: { width: `${clamped}%` } })
6531
+ className: [styles57.track, className].filter(Boolean).join(" "),
6532
+ children: /* @__PURE__ */ jsx184("div", { className: styles57.fill, style: { width: `${clamped}%` } })
6408
6533
  }
6409
6534
  );
6410
6535
  }
6411
6536
 
6412
6537
  // src/components/Table/Table.tsx
6413
- import styles57 from "./Table.module.css";
6414
- import { jsx as jsx183 } from "react/jsx-runtime";
6538
+ import styles58 from "./Table.module.css";
6539
+ import { jsx as jsx185 } from "react/jsx-runtime";
6415
6540
  function Table({ children, className }) {
6416
- return /* @__PURE__ */ jsx183("div", { className: styles57.scrollContainer, children: /* @__PURE__ */ jsx183("table", { className: [styles57.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 }) });
6417
6542
  }
6418
6543
  function TableHead({ children }) {
6419
- return /* @__PURE__ */ jsx183("thead", { className: styles57.head, children });
6544
+ return /* @__PURE__ */ jsx185("thead", { className: styles58.head, children });
6420
6545
  }
6421
6546
  function TableBody({ children }) {
6422
- return /* @__PURE__ */ jsx183("tbody", { className: styles57.body, children });
6547
+ return /* @__PURE__ */ jsx185("tbody", { className: styles58.body, children });
6423
6548
  }
6424
6549
  function TableRow({ children }) {
6425
- return /* @__PURE__ */ jsx183("tr", { className: styles57.row, children });
6550
+ return /* @__PURE__ */ jsx185("tr", { className: styles58.row, children });
6426
6551
  }
6427
6552
  function TableHeaderCell({ children, ...rest }) {
6428
- return /* @__PURE__ */ jsx183("th", { className: styles57.th, ...rest, children });
6553
+ return /* @__PURE__ */ jsx185("th", { className: styles58.th, ...rest, children });
6429
6554
  }
6430
6555
  function TableCell({ children, ...rest }) {
6431
- return /* @__PURE__ */ jsx183("td", { className: styles57.td, ...rest, children });
6556
+ return /* @__PURE__ */ jsx185("td", { className: styles58.td, ...rest, children });
6432
6557
  }
6433
6558
 
6434
6559
  // src/components/Alert/Alert.tsx
6435
- import styles58 from "./Alert.module.css";
6436
- import { jsx as jsx184, jsxs as jsxs148 } from "react/jsx-runtime";
6560
+ import styles59 from "./Alert.module.css";
6561
+ import { jsx as jsx186, jsxs as jsxs149 } from "react/jsx-runtime";
6437
6562
  var DEFAULT_ICON = {
6438
6563
  info: "info",
6439
6564
  success: "circle-check",
@@ -6443,17 +6568,17 @@ var DEFAULT_ICON = {
6443
6568
  };
6444
6569
  function Alert({ variant, heading, icon, children, id, className }) {
6445
6570
  const resolvedIcon = icon === void 0 ? DEFAULT_ICON[variant] : icon || void 0;
6446
- return /* @__PURE__ */ jsxs148(
6571
+ return /* @__PURE__ */ jsxs149(
6447
6572
  "div",
6448
6573
  {
6449
6574
  id,
6450
6575
  role: variant === "error" ? "alert" : "status",
6451
- className: [styles58.alert, styles58[variant], className].filter(Boolean).join(" "),
6576
+ className: [styles59.alert, styles59[variant], className].filter(Boolean).join(" "),
6452
6577
  children: [
6453
- resolvedIcon && /* @__PURE__ */ jsx184(Icon, { name: resolvedIcon, size: "sm", className: styles58.icon, "aria-hidden": true }),
6454
- /* @__PURE__ */ jsxs148("div", { className: styles58.content, children: [
6455
- heading && /* @__PURE__ */ jsx184("p", { className: styles58.heading, children: heading }),
6456
- /* @__PURE__ */ jsx184("div", { className: styles58.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 })
6457
6582
  ] })
6458
6583
  ]
6459
6584
  }
@@ -6461,26 +6586,26 @@ function Alert({ variant, heading, icon, children, id, className }) {
6461
6586
  }
6462
6587
 
6463
6588
  // src/components/Breadcrumb/Breadcrumb.tsx
6464
- import styles59 from "./Breadcrumb.module.css";
6465
- import { jsx as jsx185, jsxs as jsxs149 } from "react/jsx-runtime";
6589
+ import styles60 from "./Breadcrumb.module.css";
6590
+ import { jsx as jsx187, jsxs as jsxs150 } from "react/jsx-runtime";
6466
6591
  function Breadcrumb({
6467
6592
  items,
6468
6593
  renderLink,
6469
6594
  className,
6470
6595
  "aria-label": ariaLabel = "Breadcrumb"
6471
6596
  }) {
6472
- return /* @__PURE__ */ jsx185("nav", { "aria-label": ariaLabel, className: [styles59.nav, className].filter(Boolean).join(" "), children: /* @__PURE__ */ jsx185("ol", { className: styles59.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) => {
6473
6598
  const isLast = index === items.length - 1;
6474
- return /* @__PURE__ */ jsxs149("li", { className: styles59.item, children: [
6475
- item.href ? renderLink ? renderLink(item, item.label) : /* @__PURE__ */ jsx185("a", { href: item.href, className: styles59.link, children: item.label }) : /* @__PURE__ */ jsx185("span", { className: styles59.current, "aria-current": "page", children: item.label }),
6476
- !isLast && /* @__PURE__ */ jsx185(Icon, { name: "chevron-right", size: "xs", "aria-hidden": true, className: styles59.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 })
6477
6602
  ] }, item.label + index);
6478
6603
  }) }) });
6479
6604
  }
6480
6605
 
6481
6606
  // src/components/Pagination/Pagination.tsx
6482
- import styles60 from "./Pagination.module.css";
6483
- import { jsx as jsx186, jsxs as jsxs150 } from "react/jsx-runtime";
6607
+ import styles61 from "./Pagination.module.css";
6608
+ import { jsx as jsx188, jsxs as jsxs151 } from "react/jsx-runtime";
6484
6609
  function getPageList(page, totalPages) {
6485
6610
  if (totalPages <= 1) return [1];
6486
6611
  const siblingCount = 1;
@@ -6503,24 +6628,24 @@ function Pagination({
6503
6628
  "aria-label": ariaLabel = "Pagination"
6504
6629
  }) {
6505
6630
  const pages = getPageList(page, totalPages);
6506
- return /* @__PURE__ */ jsxs150("nav", { "aria-label": ariaLabel, className: [styles60.nav, className].filter(Boolean).join(" "), children: [
6507
- /* @__PURE__ */ jsx186(
6631
+ return /* @__PURE__ */ jsxs151("nav", { "aria-label": ariaLabel, className: [styles61.nav, className].filter(Boolean).join(" "), children: [
6632
+ /* @__PURE__ */ jsx188(
6508
6633
  "button",
6509
6634
  {
6510
6635
  type: "button",
6511
- className: styles60.navButton,
6636
+ className: styles61.navButton,
6512
6637
  onClick: () => onChange(page - 1),
6513
6638
  disabled: page <= 1,
6514
6639
  "aria-label": "Previous page",
6515
- children: /* @__PURE__ */ jsx186(Icon, { name: "chevron-left", size: "sm", "aria-hidden": true })
6640
+ children: /* @__PURE__ */ jsx188(Icon, { name: "chevron-left", size: "sm", "aria-hidden": true })
6516
6641
  }
6517
6642
  ),
6518
- /* @__PURE__ */ jsx186("ul", { className: styles60.list, children: pages.map(
6519
- (p, index) => p === "ellipsis" ? /* @__PURE__ */ jsx186("li", { className: styles60.ellipsis, "aria-hidden": "true", children: "\u2026" }, `ellipsis-${index}`) : /* @__PURE__ */ jsx186("li", { children: /* @__PURE__ */ jsx186(
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(
6520
6645
  "button",
6521
6646
  {
6522
6647
  type: "button",
6523
- className: [styles60.pageButton, p === page ? styles60.active : ""].filter(Boolean).join(" "),
6648
+ className: [styles61.pageButton, p === page ? styles61.active : ""].filter(Boolean).join(" "),
6524
6649
  onClick: () => onChange(p),
6525
6650
  "aria-current": p === page ? "page" : void 0,
6526
6651
  "aria-label": `Page ${p}`,
@@ -6528,31 +6653,31 @@ function Pagination({
6528
6653
  }
6529
6654
  ) }, p)
6530
6655
  ) }),
6531
- /* @__PURE__ */ jsx186(
6656
+ /* @__PURE__ */ jsx188(
6532
6657
  "button",
6533
6658
  {
6534
6659
  type: "button",
6535
- className: styles60.navButton,
6660
+ className: styles61.navButton,
6536
6661
  onClick: () => onChange(page + 1),
6537
6662
  disabled: page >= totalPages,
6538
6663
  "aria-label": "Next page",
6539
- children: /* @__PURE__ */ jsx186(Icon, { name: "chevron-right", size: "sm", "aria-hidden": true })
6664
+ children: /* @__PURE__ */ jsx188(Icon, { name: "chevron-right", size: "sm", "aria-hidden": true })
6540
6665
  }
6541
6666
  )
6542
6667
  ] });
6543
6668
  }
6544
6669
 
6545
6670
  // src/components/Kbd/Kbd.tsx
6546
- import styles61 from "./Kbd.module.css";
6547
- import { jsx as jsx187 } from "react/jsx-runtime";
6671
+ import styles62 from "./Kbd.module.css";
6672
+ import { jsx as jsx189 } from "react/jsx-runtime";
6548
6673
  function Kbd({ children, className }) {
6549
- return /* @__PURE__ */ jsx187("kbd", { className: [styles61.kbd, className].filter(Boolean).join(" "), children });
6674
+ return /* @__PURE__ */ jsx189("kbd", { className: [styles62.kbd, className].filter(Boolean).join(" "), children });
6550
6675
  }
6551
6676
 
6552
6677
  // src/components/Collapsible/Collapsible.tsx
6553
6678
  import { useId as useId8 } from "react";
6554
- import styles62 from "./Collapsible.module.css";
6555
- import { jsx as jsx188, jsxs as jsxs151 } from "react/jsx-runtime";
6679
+ import styles63 from "./Collapsible.module.css";
6680
+ import { jsx as jsx190, jsxs as jsxs152 } from "react/jsx-runtime";
6556
6681
  function Collapsible({
6557
6682
  open,
6558
6683
  onOpenChange,
@@ -6563,45 +6688,45 @@ function Collapsible({
6563
6688
  }) {
6564
6689
  const generatedId = useId8();
6565
6690
  const contentId = `${id ?? generatedId}-content`;
6566
- return /* @__PURE__ */ jsxs151("div", { className: [styles62.root, className].filter(Boolean).join(" "), children: [
6567
- /* @__PURE__ */ jsxs151(
6691
+ return /* @__PURE__ */ jsxs152("div", { className: [styles63.root, className].filter(Boolean).join(" "), children: [
6692
+ /* @__PURE__ */ jsxs152(
6568
6693
  "button",
6569
6694
  {
6570
6695
  type: "button",
6571
- className: styles62.trigger,
6696
+ className: styles63.trigger,
6572
6697
  "aria-expanded": open,
6573
6698
  "aria-controls": contentId,
6574
6699
  onClick: () => onOpenChange(!open),
6575
6700
  children: [
6576
- /* @__PURE__ */ jsx188("span", { className: styles62.triggerLabel, children: trigger }),
6577
- /* @__PURE__ */ jsx188(
6701
+ /* @__PURE__ */ jsx190("span", { className: styles63.triggerLabel, children: trigger }),
6702
+ /* @__PURE__ */ jsx190(
6578
6703
  Icon,
6579
6704
  {
6580
6705
  name: "chevron-down",
6581
6706
  size: "sm",
6582
6707
  "aria-hidden": true,
6583
- className: [styles62.chevron, open ? styles62.chevronOpen : ""].filter(Boolean).join(" ")
6708
+ className: [styles63.chevron, open ? styles63.chevronOpen : ""].filter(Boolean).join(" ")
6584
6709
  }
6585
6710
  )
6586
6711
  ]
6587
6712
  }
6588
6713
  ),
6589
- /* @__PURE__ */ jsx188(
6714
+ /* @__PURE__ */ jsx190(
6590
6715
  "div",
6591
6716
  {
6592
6717
  id: contentId,
6593
- className: styles62.contentWrapper,
6718
+ className: styles63.contentWrapper,
6594
6719
  "data-open": open,
6595
6720
  inert: !open || void 0,
6596
- children: /* @__PURE__ */ jsx188("div", { className: styles62.contentInner, children })
6721
+ children: /* @__PURE__ */ jsx190("div", { className: styles63.contentInner, children })
6597
6722
  }
6598
6723
  )
6599
6724
  ] });
6600
6725
  }
6601
6726
 
6602
6727
  // src/components/Accordion/Accordion.tsx
6603
- import styles63 from "./Accordion.module.css";
6604
- import { jsx as jsx189 } from "react/jsx-runtime";
6728
+ import styles64 from "./Accordion.module.css";
6729
+ import { jsx as jsx191 } from "react/jsx-runtime";
6605
6730
  function Accordion({ items, type, openIds, onOpenIdsChange, className }) {
6606
6731
  function handleOpenChange(id, open) {
6607
6732
  if (type === "single") {
@@ -6610,7 +6735,7 @@ function Accordion({ items, type, openIds, onOpenIdsChange, className }) {
6610
6735
  }
6611
6736
  onOpenIdsChange(open ? [...openIds, id] : openIds.filter((openId) => openId !== id));
6612
6737
  }
6613
- return /* @__PURE__ */ jsx189("div", { className: [styles63.root, className].filter(Boolean).join(" "), children: items.map((item) => /* @__PURE__ */ jsx189(
6738
+ return /* @__PURE__ */ jsx191("div", { className: [styles64.root, className].filter(Boolean).join(" "), children: items.map((item) => /* @__PURE__ */ jsx191(
6614
6739
  Collapsible,
6615
6740
  {
6616
6741
  id: item.id,
@@ -6624,13 +6749,13 @@ function Accordion({ items, type, openIds, onOpenIdsChange, className }) {
6624
6749
  }
6625
6750
 
6626
6751
  // src/components/AspectRatio/AspectRatio.tsx
6627
- import styles64 from "./AspectRatio.module.css";
6628
- import { jsx as jsx190 } from "react/jsx-runtime";
6752
+ import styles65 from "./AspectRatio.module.css";
6753
+ import { jsx as jsx192 } from "react/jsx-runtime";
6629
6754
  function AspectRatio({ ratio, children, className }) {
6630
- return /* @__PURE__ */ jsx190(
6755
+ return /* @__PURE__ */ jsx192(
6631
6756
  "div",
6632
6757
  {
6633
- className: [styles64.root, className].filter(Boolean).join(" "),
6758
+ className: [styles65.root, className].filter(Boolean).join(" "),
6634
6759
  style: { aspectRatio: ratio },
6635
6760
  children
6636
6761
  }
@@ -6638,8 +6763,8 @@ function AspectRatio({ ratio, children, className }) {
6638
6763
  }
6639
6764
 
6640
6765
  // src/components/ButtonLink/ButtonLink.tsx
6641
- import styles65 from "./Button.module.css";
6642
- import { jsx as jsx191 } from "react/jsx-runtime";
6766
+ import styles66 from "./Button.module.css";
6767
+ import { jsx as jsx193 } from "react/jsx-runtime";
6643
6768
  function ButtonLink({
6644
6769
  variant = "primary",
6645
6770
  size = "md",
@@ -6648,29 +6773,29 @@ function ButtonLink({
6648
6773
  renderLink,
6649
6774
  ...rest
6650
6775
  }) {
6651
- const classes = [styles65.button, styles65[variant], styles65[size], styles65.link, className].filter(Boolean).join(" ");
6776
+ const classes = [styles66.button, styles66[variant], styles66[size], styles66.link, className].filter(Boolean).join(" ");
6652
6777
  const props = { ...rest, className: classes, children };
6653
- return renderLink ? renderLink(props) : /* @__PURE__ */ jsx191("a", { ...rest, className: classes, children });
6778
+ return renderLink ? renderLink(props) : /* @__PURE__ */ jsx193("a", { ...rest, className: classes, children });
6654
6779
  }
6655
6780
 
6656
6781
  // src/components/ButtonGroup/ButtonGroup.tsx
6657
- import styles66 from "./ButtonGroup.module.css";
6658
- import { jsx as jsx192 } from "react/jsx-runtime";
6782
+ import styles67 from "./ButtonGroup.module.css";
6783
+ import { jsx as jsx194 } from "react/jsx-runtime";
6659
6784
  function ButtonGroup({ children, className, "aria-label": ariaLabel }) {
6660
- return /* @__PURE__ */ jsx192(
6785
+ return /* @__PURE__ */ jsx194(
6661
6786
  "div",
6662
6787
  {
6663
6788
  role: "group",
6664
6789
  "aria-label": ariaLabel,
6665
- className: [styles66.root, className].filter(Boolean).join(" "),
6790
+ className: [styles67.root, className].filter(Boolean).join(" "),
6666
6791
  children
6667
6792
  }
6668
6793
  );
6669
6794
  }
6670
6795
 
6671
6796
  // src/components/Item/Item.tsx
6672
- import styles67 from "./Item.module.css";
6673
- import { Fragment as Fragment13, jsx as jsx193, jsxs as jsxs152 } 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";
6674
6799
  function Item({
6675
6800
  leading,
6676
6801
  title,
@@ -6681,29 +6806,29 @@ function Item({
6681
6806
  className
6682
6807
  }) {
6683
6808
  const interactive = Boolean(onClick);
6684
- const classes = [styles67.root, interactive ? styles67.interactive : "", className].filter(Boolean).join(" ");
6685
- const content = /* @__PURE__ */ jsxs152(Fragment13, { children: [
6686
- leading && /* @__PURE__ */ jsx193("span", { className: styles67.leading, children: leading }),
6687
- /* @__PURE__ */ jsxs152("span", { className: styles67.content, children: [
6688
- /* @__PURE__ */ jsx193("span", { className: styles67.title, children: title }),
6689
- description && /* @__PURE__ */ jsx193("span", { className: styles67.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 })
6690
6815
  ] }),
6691
- trailing && /* @__PURE__ */ jsx193("span", { className: styles67.trailing, children: trailing })
6816
+ trailing && /* @__PURE__ */ jsx195("span", { className: styles68.trailing, children: trailing })
6692
6817
  ] });
6693
6818
  if (interactive) {
6694
- return /* @__PURE__ */ jsx193("button", { type: "button", onClick, disabled, className: classes, children: content });
6819
+ return /* @__PURE__ */ jsx195("button", { type: "button", onClick, disabled, className: classes, children: content });
6695
6820
  }
6696
- return /* @__PURE__ */ jsx193("div", { className: classes, children: content });
6821
+ return /* @__PURE__ */ jsx195("div", { className: classes, children: content });
6697
6822
  }
6698
6823
 
6699
6824
  // src/components/Label/Label.tsx
6700
- import styles68 from "./Label.module.css";
6701
- import { jsx as jsx194 } from "react/jsx-runtime";
6825
+ import styles69 from "./Label.module.css";
6826
+ import { jsx as jsx196 } from "react/jsx-runtime";
6702
6827
  function Label({ disabled, className, children, ...rest }) {
6703
- return /* @__PURE__ */ jsx194(
6828
+ return /* @__PURE__ */ jsx196(
6704
6829
  "label",
6705
6830
  {
6706
- className: [styles68.label, disabled ? styles68.disabled : "", className].filter(Boolean).join(" "),
6831
+ className: [styles69.label, disabled ? styles69.disabled : "", className].filter(Boolean).join(" "),
6707
6832
  ...rest,
6708
6833
  children
6709
6834
  }
@@ -6711,18 +6836,18 @@ function Label({ disabled, className, children, ...rest }) {
6711
6836
  }
6712
6837
 
6713
6838
  // src/components/ScrollArea/ScrollArea.tsx
6714
- import styles69 from "./ScrollArea.module.css";
6715
- import { jsx as jsx195 } from "react/jsx-runtime";
6839
+ import styles70 from "./ScrollArea.module.css";
6840
+ import { jsx as jsx197 } from "react/jsx-runtime";
6716
6841
  function ScrollArea({ children, maxHeight, maxWidth, className }) {
6717
6842
  const style = {};
6718
6843
  if (maxHeight !== void 0) style.maxHeight = maxHeight;
6719
6844
  if (maxWidth !== void 0) style.maxWidth = maxWidth;
6720
- return /* @__PURE__ */ jsx195("div", { className: [styles69.root, className].filter(Boolean).join(" "), style, children });
6845
+ return /* @__PURE__ */ jsx197("div", { className: [styles70.root, className].filter(Boolean).join(" "), style, children });
6721
6846
  }
6722
6847
 
6723
6848
  // src/components/FloatingActionButton/FloatingActionButton.tsx
6724
- import styles70 from "./FloatingActionButton.module.css";
6725
- import { Fragment as Fragment14, jsx as jsx196, jsxs as jsxs153 } from "react/jsx-runtime";
6849
+ import styles71 from "./FloatingActionButton.module.css";
6850
+ import { Fragment as Fragment14, jsx as jsx198, jsxs as jsxs154 } from "react/jsx-runtime";
6726
6851
  function FloatingActionButton({
6727
6852
  label,
6728
6853
  icon,
@@ -6735,13 +6860,13 @@ function FloatingActionButton({
6735
6860
  target,
6736
6861
  ...rest
6737
6862
  }) {
6738
- const cls = [styles70.fab, extended ? styles70.extended : "", className].filter(Boolean).join(" ");
6739
- const content = /* @__PURE__ */ jsxs153(Fragment14, { children: [
6740
- /* @__PURE__ */ jsx196("span", { className: styles70.icon, "aria-hidden": "true", children: icon }),
6741
- extended ? /* @__PURE__ */ jsx196("span", { className: styles70.label, children: label }) : null
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
6742
6867
  ] });
6743
6868
  if (href !== void 0) {
6744
- return /* @__PURE__ */ jsx196(
6869
+ return /* @__PURE__ */ jsx198(
6745
6870
  "a",
6746
6871
  {
6747
6872
  ...rest,
@@ -6754,18 +6879,18 @@ function FloatingActionButton({
6754
6879
  }
6755
6880
  );
6756
6881
  }
6757
- return /* @__PURE__ */ jsx196("button", { ...rest, type, disabled, className: cls, "aria-label": label, children: content });
6882
+ return /* @__PURE__ */ jsx198("button", { ...rest, type, disabled, className: cls, "aria-label": label, children: content });
6758
6883
  }
6759
6884
 
6760
6885
  // src/components/PhotoViewer/PhotoGrid.tsx
6761
- import { useState as useState17 } from "react";
6886
+ import { useState as useState18 } from "react";
6762
6887
 
6763
6888
  // src/components/PhotoViewer/PhotoViewer.tsx
6764
6889
  import {
6765
6890
  useCallback as useCallback5,
6766
6891
  useEffect as useEffect12,
6767
6892
  useRef as useRef19,
6768
- useState as useState16
6893
+ useState as useState17
6769
6894
  } from "react";
6770
6895
  import { createPortal as createPortal4 } from "react-dom";
6771
6896
 
@@ -6823,8 +6948,8 @@ var doubleTapScale = (scale) => scale > MIN_SCALE + 0.01 ? MIN_SCALE : DOUBLE_TA
6823
6948
  var stepIndex = (index, step, count) => clamp2(index + step, 0, Math.max(0, count - 1));
6824
6949
 
6825
6950
  // src/components/PhotoViewer/PhotoViewer.tsx
6826
- import styles71 from "./PhotoViewer.module.css";
6827
- import { jsx as jsx197, jsxs as jsxs154 } from "react/jsx-runtime";
6951
+ import styles72 from "./PhotoViewer.module.css";
6952
+ import { jsx as jsx199, jsxs as jsxs155 } from "react/jsx-runtime";
6828
6953
  var TAP_SLOP_PX = 8;
6829
6954
  function PhotoViewer({
6830
6955
  photos,
@@ -6849,11 +6974,11 @@ function PhotoViewer({
6849
6974
  const count = photos.length;
6850
6975
  const current = clamp2(index, 0, Math.max(0, count - 1));
6851
6976
  const photo = photos[current];
6852
- const [scale, setScale] = useState16(MIN_SCALE);
6853
- const [pan, setPan] = useState16({ x: 0, y: 0 });
6854
- const [drag, setDrag] = useState16({ x: 0, y: 0 });
6855
- const [dragging, setDragging] = useState16(false);
6856
- const [failed, setFailed] = useState16(false);
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);
6857
6982
  const pointers = useRef19(/* @__PURE__ */ new Map());
6858
6983
  const gesture = useRef19({
6859
6984
  startScale: 1,
@@ -7043,12 +7168,12 @@ function PhotoViewer({
7043
7168
  const fade = clamp2(1 - drag.y / 400, 0.3, 1);
7044
7169
  const transform = `translate3d(${pan.x + drag.x}px, ${pan.y + drag.y}px, 0) scale(${scale})`;
7045
7170
  return createPortal4(
7046
- /* @__PURE__ */ jsx197(
7171
+ /* @__PURE__ */ jsx199(
7047
7172
  "div",
7048
7173
  {
7049
- className: [styles71.scrim, isOpenPhase ? styles71.scrimOpen : ""].filter(Boolean).join(" "),
7174
+ className: [styles72.scrim, isOpenPhase ? styles72.scrimOpen : ""].filter(Boolean).join(" "),
7050
7175
  style: { ["--photo-fade"]: String(fade) },
7051
- children: /* @__PURE__ */ jsxs154(
7176
+ children: /* @__PURE__ */ jsxs155(
7052
7177
  "div",
7053
7178
  {
7054
7179
  ref: panelRef,
@@ -7057,35 +7182,35 @@ function PhotoViewer({
7057
7182
  "aria-label": label,
7058
7183
  "aria-roledescription": "photo viewer",
7059
7184
  tabIndex: -1,
7060
- className: styles71.panel,
7185
+ className: styles72.panel,
7061
7186
  children: [
7062
- /* @__PURE__ */ jsxs154("div", { className: styles71.bar, children: [
7063
- /* @__PURE__ */ jsxs154("span", { className: styles71.count, "aria-live": "polite", "aria-atomic": "true", children: [
7187
+ /* @__PURE__ */ jsxs155("div", { className: styles72.bar, children: [
7188
+ /* @__PURE__ */ jsxs155("span", { className: styles72.count, "aria-live": "polite", "aria-atomic": "true", children: [
7064
7189
  current + 1,
7065
7190
  " of ",
7066
7191
  count
7067
7192
  ] }),
7068
- /* @__PURE__ */ jsx197("button", { type: "button", className: styles71.control, "aria-label": "Close", onClick: onClose, children: /* @__PURE__ */ jsx197(Icon, { name: "x", size: "md", "aria-hidden": true }) })
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 }) })
7069
7194
  ] }),
7070
- /* @__PURE__ */ jsx197(
7195
+ /* @__PURE__ */ jsx199(
7071
7196
  "div",
7072
7197
  {
7073
7198
  ref: stageRef,
7074
- className: styles71.stage,
7199
+ className: styles72.stage,
7075
7200
  onPointerDown,
7076
7201
  onPointerMove,
7077
7202
  onPointerUp,
7078
7203
  onPointerCancel,
7079
7204
  onWheel,
7080
7205
  onKeyDown: onStageKeyDown,
7081
- children: failed ? /* @__PURE__ */ jsx197("p", { className: styles71.failed, role: "status", children: "This photo could not be shown." }) : /* @__PURE__ */ jsx197(
7206
+ children: failed ? /* @__PURE__ */ jsx199("p", { className: styles72.failed, role: "status", children: "This photo could not be shown." }) : /* @__PURE__ */ jsx199(
7082
7207
  "img",
7083
7208
  {
7084
7209
  ref: imageRef,
7085
7210
  src: photo.src,
7086
7211
  alt: photo.alt,
7087
7212
  draggable: false,
7088
- className: [styles71.image, dragging ? styles71.dragging : ""].filter(Boolean).join(" "),
7213
+ className: [styles72.image, dragging ? styles72.dragging : ""].filter(Boolean).join(" "),
7089
7214
  style: { transform },
7090
7215
  onError: () => setFailed(true)
7091
7216
  },
@@ -7093,27 +7218,27 @@ function PhotoViewer({
7093
7218
  )
7094
7219
  }
7095
7220
  ),
7096
- current > 0 ? /* @__PURE__ */ jsx197(
7221
+ current > 0 ? /* @__PURE__ */ jsx199(
7097
7222
  "button",
7098
7223
  {
7099
7224
  type: "button",
7100
- className: [styles71.control, styles71.previous].join(" "),
7225
+ className: [styles72.control, styles72.previous].join(" "),
7101
7226
  "aria-label": "Previous photo",
7102
7227
  onClick: () => go(-1),
7103
- children: /* @__PURE__ */ jsx197(Icon, { name: "chevron-left", size: "md", "aria-hidden": true })
7228
+ children: /* @__PURE__ */ jsx199(Icon, { name: "chevron-left", size: "md", "aria-hidden": true })
7104
7229
  }
7105
7230
  ) : null,
7106
- current < count - 1 ? /* @__PURE__ */ jsx197(
7231
+ current < count - 1 ? /* @__PURE__ */ jsx199(
7107
7232
  "button",
7108
7233
  {
7109
7234
  type: "button",
7110
- className: [styles71.control, styles71.next].join(" "),
7235
+ className: [styles72.control, styles72.next].join(" "),
7111
7236
  "aria-label": "Next photo",
7112
7237
  onClick: () => go(1),
7113
- children: /* @__PURE__ */ jsx197(Icon, { name: "chevron-right", size: "md", "aria-hidden": true })
7238
+ children: /* @__PURE__ */ jsx199(Icon, { name: "chevron-right", size: "md", "aria-hidden": true })
7114
7239
  }
7115
7240
  ) : null,
7116
- photo.caption ? /* @__PURE__ */ jsx197("div", { className: styles71.caption, children: photo.caption }) : null
7241
+ photo.caption ? /* @__PURE__ */ jsx199("div", { className: styles72.caption, children: photo.caption }) : null
7117
7242
  ]
7118
7243
  }
7119
7244
  )
@@ -7124,18 +7249,18 @@ function PhotoViewer({
7124
7249
  }
7125
7250
 
7126
7251
  // src/components/PhotoViewer/PhotoGrid.tsx
7127
- import styles72 from "./PhotoGrid.module.css";
7128
- import { Fragment as Fragment15, jsx as jsx198, jsxs as jsxs155 } from "react/jsx-runtime";
7252
+ import styles73 from "./PhotoGrid.module.css";
7253
+ import { Fragment as Fragment15, jsx as jsx200, jsxs as jsxs156 } from "react/jsx-runtime";
7129
7254
  function PhotoGrid({ photos, onOpen, label = "Photos", className }) {
7130
7255
  if (photos.length === 0) return null;
7131
- return /* @__PURE__ */ jsx198("ul", { className: [styles72.grid, className].filter(Boolean).join(" "), "aria-label": label, children: photos.map((photo, index) => /* @__PURE__ */ jsx198("li", { className: styles72.cell, children: /* @__PURE__ */ jsx198(
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(
7132
7257
  "button",
7133
7258
  {
7134
7259
  type: "button",
7135
- className: styles72.thumb,
7260
+ className: styles73.thumb,
7136
7261
  "aria-label": `Photo ${index + 1} of ${photos.length}: ${photo.alt}`,
7137
7262
  onClick: () => onOpen(index),
7138
- children: /* @__PURE__ */ jsx198(
7263
+ children: /* @__PURE__ */ jsx200(
7139
7264
  "img",
7140
7265
  {
7141
7266
  src: photo.thumbSrc ?? photo.src,
@@ -7143,17 +7268,17 @@ function PhotoGrid({ photos, onOpen, label = "Photos", className }) {
7143
7268
  loading: "lazy",
7144
7269
  decoding: "async",
7145
7270
  draggable: false,
7146
- className: styles72.img
7271
+ className: styles73.img
7147
7272
  }
7148
7273
  )
7149
7274
  }
7150
7275
  ) }, photo.id)) });
7151
7276
  }
7152
7277
  function PhotoGallery({ photos, label, className, onView }) {
7153
- const [open, setOpen] = useState17(false);
7154
- const [index, setIndex] = useState17(0);
7155
- return /* @__PURE__ */ jsxs155(Fragment15, { children: [
7156
- /* @__PURE__ */ jsx198(
7278
+ const [open, setOpen] = useState18(false);
7279
+ const [index, setIndex] = useState18(0);
7280
+ return /* @__PURE__ */ jsxs156(Fragment15, { children: [
7281
+ /* @__PURE__ */ jsx200(
7157
7282
  PhotoGrid,
7158
7283
  {
7159
7284
  photos,
@@ -7166,7 +7291,7 @@ function PhotoGallery({ photos, label, className, onView }) {
7166
7291
  }
7167
7292
  }
7168
7293
  ),
7169
- /* @__PURE__ */ jsx198(
7294
+ /* @__PURE__ */ jsx200(
7170
7295
  PhotoViewer,
7171
7296
  {
7172
7297
  photos,
@@ -7184,39 +7309,39 @@ function PhotoGallery({ photos, label, className, onView }) {
7184
7309
  }
7185
7310
 
7186
7311
  // src/components/Marker/Marker.tsx
7187
- import styles73 from "./Marker.module.css";
7188
- import { jsx as jsx199 } from "react/jsx-runtime";
7312
+ import styles74 from "./Marker.module.css";
7313
+ import { jsx as jsx201 } from "react/jsx-runtime";
7189
7314
  function Marker({ index, label, onClick, className }) {
7190
- const classes = [styles73.marker, className].filter(Boolean).join(" ");
7315
+ const classes = [styles74.marker, className].filter(Boolean).join(" ");
7191
7316
  if (onClick) {
7192
- return /* @__PURE__ */ jsx199("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 });
7193
7318
  }
7194
- return /* @__PURE__ */ jsx199("span", { "aria-label": label, className: classes, children: index });
7319
+ return /* @__PURE__ */ jsx201("span", { "aria-label": label, className: classes, children: index });
7195
7320
  }
7196
7321
 
7197
7322
  // src/components/Message/Message.tsx
7198
- import styles74 from "./Message.module.css";
7199
- import { jsx as jsx200, jsxs as jsxs156 } from "react/jsx-runtime";
7323
+ import styles75 from "./Message.module.css";
7324
+ import { jsx as jsx202, jsxs as jsxs157 } from "react/jsx-runtime";
7200
7325
  function Message({ sender, children, pending, actions, className }) {
7201
- return /* @__PURE__ */ jsxs156("div", { className: [styles74.row, styles74[sender], className].filter(Boolean).join(" "), children: [
7202
- /* @__PURE__ */ jsx200("div", { className: styles74.bubble, children: pending ? /* @__PURE__ */ jsxs156("span", { className: styles74.typingDots, "aria-label": "Thinking", children: [
7203
- /* @__PURE__ */ jsx200("span", { className: styles74.dot }),
7204
- /* @__PURE__ */ jsx200("span", { className: styles74.dot }),
7205
- /* @__PURE__ */ jsx200("span", { className: styles74.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 })
7206
7331
  ] }) : children }),
7207
- actions && !pending && /* @__PURE__ */ jsx200("div", { className: styles74.actions, children: actions })
7332
+ actions && !pending && /* @__PURE__ */ jsx202("div", { className: styles75.actions, children: actions })
7208
7333
  ] });
7209
7334
  }
7210
7335
 
7211
7336
  // src/components/MessageScroller/MessageScroller.tsx
7212
- import { useEffect as useEffect13, useRef as useRef20, useState as useState18 } from "react";
7213
- import styles75 from "./MessageScroller.module.css";
7214
- import { jsx as jsx201, jsxs as jsxs157 } 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";
7215
7340
  var NEAR_BOTTOM_THRESHOLD_PX = 80;
7216
7341
  function MessageScroller({ children, className }) {
7217
7342
  const containerRef = useRef20(null);
7218
7343
  const isNearBottomRef = useRef20(true);
7219
- const [hasNewMessages, setHasNewMessages] = useState18(false);
7344
+ const [hasNewMessages, setHasNewMessages] = useState19(false);
7220
7345
  useEffect13(() => {
7221
7346
  const el = containerRef.current;
7222
7347
  if (!el) return;
@@ -7242,23 +7367,23 @@ function MessageScroller({ children, className }) {
7242
7367
  isNearBottomRef.current = true;
7243
7368
  setHasNewMessages(false);
7244
7369
  }
7245
- return /* @__PURE__ */ jsxs157("div", { className: [styles75.root, className].filter(Boolean).join(" "), children: [
7246
- /* @__PURE__ */ jsxs157("div", { className: styles75.scrollContainer, ref: containerRef, onScroll: handleScroll, children: [
7247
- /* @__PURE__ */ jsx201("div", { className: styles75.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" }),
7248
7373
  children
7249
7374
  ] }),
7250
- hasNewMessages && /* @__PURE__ */ jsx201("button", { type: "button", className: styles75.jumpButton, onClick: scrollToBottom, children: "New messages \u2193" })
7375
+ hasNewMessages && /* @__PURE__ */ jsx203("button", { type: "button", className: styles76.jumpButton, onClick: scrollToBottom, children: "New messages \u2193" })
7251
7376
  ] });
7252
7377
  }
7253
7378
 
7254
7379
  // src/components/HoverCard/HoverCard.tsx
7255
- import { cloneElement, useEffect as useEffect14, useRef as useRef21, useState as useState19 } from "react";
7256
- import styles76 from "./HoverCard.module.css";
7257
- import { jsx as jsx202 } 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";
7258
7383
  var OPEN_DELAY_MS = 400;
7259
7384
  var CLOSE_DELAY_MS = 150;
7260
7385
  function useHoverCapable() {
7261
- const [hoverCapable, setHoverCapable] = useState19(true);
7386
+ const [hoverCapable, setHoverCapable] = useState20(true);
7262
7387
  useEffect14(() => {
7263
7388
  const mql = window.matchMedia("(hover: hover)");
7264
7389
  setHoverCapable(mql.matches);
@@ -7277,7 +7402,7 @@ function HoverCard({
7277
7402
  width,
7278
7403
  "aria-label": ariaLabel
7279
7404
  }) {
7280
- const [open, setOpen] = useState19(false);
7405
+ const [open, setOpen] = useState20(false);
7281
7406
  const hoverCapable = useHoverCapable();
7282
7407
  const openTimer = useRef21(void 0);
7283
7408
  const closeTimer = useRef21(void 0);
@@ -7299,13 +7424,13 @@ function HoverCard({
7299
7424
  onBlur: scheduleClose
7300
7425
  } : { onClick: () => setOpen((o) => !o) };
7301
7426
  const wrappedTrigger = cloneElement(trigger, triggerHandlers);
7302
- return /* @__PURE__ */ jsx202(
7427
+ return /* @__PURE__ */ jsx204(
7303
7428
  "div",
7304
7429
  {
7305
- className: styles76.root,
7430
+ className: styles77.root,
7306
7431
  onMouseEnter: hoverCapable ? cancelScheduledClose : void 0,
7307
7432
  onMouseLeave: hoverCapable ? scheduleClose : void 0,
7308
- children: /* @__PURE__ */ jsx202(
7433
+ children: /* @__PURE__ */ jsx204(
7309
7434
  Popover,
7310
7435
  {
7311
7436
  trigger: wrappedTrigger,
@@ -7322,12 +7447,12 @@ function HoverCard({
7322
7447
  }
7323
7448
 
7324
7449
  // src/components/ContextMenu/ContextMenu.tsx
7325
- import { cloneElement as cloneElement2, useState as useState20 } from "react";
7326
- import { Fragment as Fragment16, jsx as jsx203, jsxs as jsxs158 } 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";
7327
7452
  function ContextMenu({ children, items, "aria-label": ariaLabel }) {
7328
7453
  const isMobile = useIsMobile();
7329
- const [open, setOpen] = useState20(false);
7330
- const [point, setPoint] = useState20({ x: 0, y: 0 });
7454
+ const [open, setOpen] = useState21(false);
7455
+ const [point, setPoint] = useState21({ x: 0, y: 0 });
7331
7456
  const longPressHandlers = useLongPress({
7332
7457
  onLongPress: () => setOpen(true),
7333
7458
  disabled: !isMobile
@@ -7341,7 +7466,7 @@ function ContextMenu({ children, items, "aria-label": ariaLabel }) {
7341
7466
  children,
7342
7467
  isMobile ? longPressHandlers : { onContextMenu: handleContextMenu }
7343
7468
  );
7344
- const list = /* @__PURE__ */ jsx203(
7469
+ const list = /* @__PURE__ */ jsx205(
7345
7470
  MenuEntries,
7346
7471
  {
7347
7472
  items,
@@ -7352,17 +7477,17 @@ function ContextMenu({ children, items, "aria-label": ariaLabel }) {
7352
7477
  }
7353
7478
  );
7354
7479
  if (isMobile) {
7355
- return /* @__PURE__ */ jsxs158(Fragment16, { children: [
7480
+ return /* @__PURE__ */ jsxs159(Fragment16, { children: [
7356
7481
  wrappedChild,
7357
- /* @__PURE__ */ jsx203(Drawer, { open, onClose: () => setOpen(false), "aria-label": ariaLabel, children: list })
7482
+ /* @__PURE__ */ jsx205(Drawer, { open, onClose: () => setOpen(false), "aria-label": ariaLabel, children: list })
7358
7483
  ] });
7359
7484
  }
7360
- return /* @__PURE__ */ jsxs158(Fragment16, { children: [
7485
+ return /* @__PURE__ */ jsxs159(Fragment16, { children: [
7361
7486
  wrappedChild,
7362
- open && /* @__PURE__ */ jsx203("div", { style: { position: "fixed", left: point.x, top: point.y, width: 0, height: 0 }, children: /* @__PURE__ */ jsx203(
7487
+ open && /* @__PURE__ */ jsx205("div", { style: { position: "fixed", left: point.x, top: point.y, width: 0, height: 0 }, children: /* @__PURE__ */ jsx205(
7363
7488
  Popover,
7364
7489
  {
7365
- trigger: /* @__PURE__ */ jsx203("span", {}),
7490
+ trigger: /* @__PURE__ */ jsx205("span", {}),
7366
7491
  open,
7367
7492
  onClose: () => setOpen(false),
7368
7493
  "aria-label": ariaLabel,
@@ -7373,15 +7498,15 @@ function ContextMenu({ children, items, "aria-label": ariaLabel }) {
7373
7498
  }
7374
7499
 
7375
7500
  // src/components/NavigationMenu/NavigationMenu.tsx
7376
- import { useRef as useRef22, useState as useState21 } from "react";
7377
- import styles77 from "./NavigationMenu.module.css";
7378
- import { jsx as jsx204 } 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";
7379
7504
  function NavigationMenu({
7380
7505
  items,
7381
7506
  renderLink,
7382
7507
  "aria-label": ariaLabel
7383
7508
  }) {
7384
- const [openIndex, setOpenIndex] = useState21(null);
7509
+ const [openIndex, setOpenIndex] = useState22(null);
7385
7510
  const triggerRefs = useRef22([]);
7386
7511
  function handleKeyDown(e, index) {
7387
7512
  if (e.key === "Escape") {
@@ -7396,26 +7521,26 @@ function NavigationMenu({
7396
7521
  triggerRefs.current[nextIndex]?.focus();
7397
7522
  }
7398
7523
  }
7399
- return /* @__PURE__ */ jsx204("nav", { "aria-label": ariaLabel, className: styles77.nav, children: /* @__PURE__ */ jsx204("ul", { className: styles77.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) => {
7400
7525
  if (!item.content) {
7401
7526
  const linkChildren = item.label;
7402
- return /* @__PURE__ */ jsx204("li", { children: item.href && renderLink ? renderLink(item.href, linkChildren) : /* @__PURE__ */ jsx204("a", { href: item.href, className: styles77.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);
7403
7528
  }
7404
7529
  const isOpen = openIndex === index;
7405
- return /* @__PURE__ */ jsx204("li", { children: /* @__PURE__ */ jsx204(
7530
+ return /* @__PURE__ */ jsx206("li", { children: /* @__PURE__ */ jsx206(
7406
7531
  Popover,
7407
7532
  {
7408
7533
  "aria-label": item.label,
7409
7534
  open: isOpen,
7410
7535
  onClose: () => setOpenIndex((current) => current === index ? null : current),
7411
- trigger: /* @__PURE__ */ jsx204(
7536
+ trigger: /* @__PURE__ */ jsx206(
7412
7537
  "button",
7413
7538
  {
7414
7539
  ref: (el) => {
7415
7540
  triggerRefs.current[index] = el;
7416
7541
  },
7417
7542
  type: "button",
7418
- className: [styles77.trigger, isOpen ? styles77.triggerOpen : ""].filter(Boolean).join(" "),
7543
+ className: [styles78.trigger, isOpen ? styles78.triggerOpen : ""].filter(Boolean).join(" "),
7419
7544
  "aria-expanded": isOpen,
7420
7545
  onClick: () => setOpenIndex((current) => current === index ? null : index),
7421
7546
  onMouseEnter: () => {
@@ -7432,15 +7557,15 @@ function NavigationMenu({
7432
7557
  }
7433
7558
 
7434
7559
  // src/components/Menubar/Menubar.tsx
7435
- import { jsx as jsx205 } from "react/jsx-runtime";
7560
+ import { jsx as jsx207 } from "react/jsx-runtime";
7436
7561
  function Menubar({ menus, "aria-label": ariaLabel = "Menu bar" }) {
7437
- return /* @__PURE__ */ jsx205(
7562
+ return /* @__PURE__ */ jsx207(
7438
7563
  NavigationMenu,
7439
7564
  {
7440
7565
  "aria-label": ariaLabel,
7441
7566
  items: menus.map((menu) => ({
7442
7567
  label: menu.label,
7443
- content: (close) => /* @__PURE__ */ jsx205(
7568
+ content: (close) => /* @__PURE__ */ jsx207(
7444
7569
  MenuEntries,
7445
7570
  {
7446
7571
  items: menu.items,
@@ -7456,9 +7581,9 @@ function Menubar({ menus, "aria-label": ariaLabel = "Menu bar" }) {
7456
7581
  }
7457
7582
 
7458
7583
  // src/components/Command/Command.tsx
7459
- import { useEffect as useEffect15, useId as useId9, useMemo as useMemo3, useRef as useRef23, useState as useState22 } from "react";
7460
- import styles78 from "./Command.module.css";
7461
- import { jsx as jsx206, jsxs as jsxs159 } 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";
7462
7587
  function matches(item, query) {
7463
7588
  if (!query) return true;
7464
7589
  const haystack = `${item.label} ${item.keywords ?? ""}`.toLowerCase();
@@ -7471,8 +7596,8 @@ function Command({
7471
7596
  placeholder = "Type a command\u2026",
7472
7597
  "aria-label": ariaLabel = "Command palette"
7473
7598
  }) {
7474
- const [query, setQuery] = useState22("");
7475
- const [highlightedIndex, setHighlightedIndex] = useState22(0);
7599
+ const [query, setQuery] = useState23("");
7600
+ const [highlightedIndex, setHighlightedIndex] = useState23(0);
7476
7601
  const inputRef = useRef23(null);
7477
7602
  const listId = useId9();
7478
7603
  const filtered = useMemo3(() => items.filter((item) => matches(item, query)), [items, query]);
@@ -7516,8 +7641,8 @@ function Command({
7516
7641
  return order.map((group) => ({ group, items: byGroup.get(group) ?? [] }));
7517
7642
  }, [filtered]);
7518
7643
  const highlightedId = filtered[highlightedIndex] ? `${listId}-${filtered[highlightedIndex].id}` : void 0;
7519
- return /* @__PURE__ */ jsx206(Dialog, { open, onClose, "aria-label": ariaLabel, size: "sm", children: /* @__PURE__ */ jsxs159("div", { className: styles78.root, children: [
7520
- /* @__PURE__ */ jsx206(
7644
+ return /* @__PURE__ */ jsx208(Dialog, { open, onClose, "aria-label": ariaLabel, size: "sm", children: /* @__PURE__ */ jsxs160("div", { className: styles79.root, children: [
7645
+ /* @__PURE__ */ jsx208(
7521
7646
  "input",
7522
7647
  {
7523
7648
  ref: inputRef,
@@ -7527,35 +7652,35 @@ function Command({
7527
7652
  "aria-controls": listId,
7528
7653
  "aria-activedescendant": highlightedId,
7529
7654
  "aria-autocomplete": "list",
7530
- className: styles78.input,
7655
+ className: styles79.input,
7531
7656
  placeholder,
7532
7657
  value: query,
7533
7658
  onChange: (e) => setQuery(e.target.value),
7534
7659
  onKeyDown: handleKeyDown
7535
7660
  }
7536
7661
  ),
7537
- /* @__PURE__ */ jsxs159("ul", { id: listId, role: "listbox", className: styles78.list, children: [
7538
- filtered.length === 0 && /* @__PURE__ */ jsx206("li", { className: styles78.empty, children: "No matching commands." }),
7539
- groups.map(({ group, items: groupItems }) => /* @__PURE__ */ jsxs159("li", { children: [
7540
- group && /* @__PURE__ */ jsx206("div", { className: styles78.groupLabel, children: group }),
7541
- /* @__PURE__ */ jsx206("ul", { className: styles78.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) => {
7542
7667
  const index = filtered.indexOf(item);
7543
7668
  const isHighlighted = index === highlightedIndex;
7544
- return /* @__PURE__ */ jsx206("li", { children: /* @__PURE__ */ jsxs159(
7669
+ return /* @__PURE__ */ jsx208("li", { children: /* @__PURE__ */ jsxs160(
7545
7670
  "button",
7546
7671
  {
7547
7672
  id: `${listId}-${item.id}`,
7548
7673
  type: "button",
7549
7674
  role: "option",
7550
7675
  "aria-selected": isHighlighted,
7551
- className: [styles78.item, isHighlighted ? styles78.itemHighlighted : ""].filter(Boolean).join(" "),
7676
+ className: [styles79.item, isHighlighted ? styles79.itemHighlighted : ""].filter(Boolean).join(" "),
7552
7677
  onMouseEnter: () => setHighlightedIndex(index),
7553
7678
  onClick: () => {
7554
7679
  onClose();
7555
7680
  item.onSelect();
7556
7681
  },
7557
7682
  children: [
7558
- item.icon && /* @__PURE__ */ jsx206(Icon, { name: item.icon, size: "sm", "aria-hidden": true }),
7683
+ item.icon && /* @__PURE__ */ jsx208(Icon, { name: item.icon, size: "sm", "aria-hidden": true }),
7559
7684
  item.label
7560
7685
  ]
7561
7686
  }
@@ -7567,11 +7692,11 @@ function Command({
7567
7692
  }
7568
7693
 
7569
7694
  // src/components/Resizable/Resizable.tsx
7570
- import { Children, isValidElement, useEffect as useEffect16, useRef as useRef24, useState as useState23 } from "react";
7571
- import styles79 from "./Resizable.module.css";
7572
- import { jsx as jsx207 } 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";
7573
7698
  function ResizablePanel({ children, className, style }) {
7574
- return /* @__PURE__ */ jsx207("div", { className: [styles79.panel, className].filter(Boolean).join(" "), style, children });
7699
+ return /* @__PURE__ */ jsx209("div", { className: [styles80.panel, className].filter(Boolean).join(" "), style, children });
7575
7700
  }
7576
7701
  function ResizableHandle({
7577
7702
  "aria-label": ariaLabel = "Resize panels",
@@ -7584,10 +7709,10 @@ function ResizableHandle({
7584
7709
  }) {
7585
7710
  return (
7586
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/). */
7587
- /* @__PURE__ */ jsx207(
7712
+ /* @__PURE__ */ jsx209(
7588
7713
  "div",
7589
7714
  {
7590
- className: [styles79.handle, direction === "vertical" ? styles79.handleVertical : ""].filter(Boolean).join(" "),
7715
+ className: [styles80.handle, direction === "vertical" ? styles80.handleVertical : ""].filter(Boolean).join(" "),
7591
7716
  role: "separator",
7592
7717
  tabIndex: 0,
7593
7718
  "aria-orientation": direction === "horizontal" ? "vertical" : "horizontal",
@@ -7613,7 +7738,7 @@ function ResizablePanelGroup({ direction, children, className }) {
7613
7738
  maxSize: props.maxSize ?? 90
7614
7739
  };
7615
7740
  });
7616
- const [sizes, setSizes] = useState23(() => constraints.map((c) => c.defaultSize));
7741
+ const [sizes, setSizes] = useState24(() => constraints.map((c) => c.defaultSize));
7617
7742
  if (sizes.length !== constraints.length) {
7618
7743
  setSizes(constraints.map((c) => c.defaultSize));
7619
7744
  }
@@ -7698,16 +7823,16 @@ function ResizablePanelGroup({ direction, children, className }) {
7698
7823
  }
7699
7824
  let panelIndex = -1;
7700
7825
  let handleIndex = -1;
7701
- return /* @__PURE__ */ jsx207(
7826
+ return /* @__PURE__ */ jsx209(
7702
7827
  "div",
7703
7828
  {
7704
7829
  ref: containerRef,
7705
- className: [styles79.group, direction === "vertical" ? styles79.groupVertical : "", className].filter(Boolean).join(" "),
7830
+ className: [styles80.group, direction === "vertical" ? styles80.groupVertical : "", className].filter(Boolean).join(" "),
7706
7831
  children: elements.map((element, key) => {
7707
7832
  if (element.type === ResizablePanel) {
7708
7833
  panelIndex += 1;
7709
7834
  const size = sizes[panelIndex] ?? constraints[panelIndex]?.defaultSize ?? 0;
7710
- return /* @__PURE__ */ jsx207(
7835
+ return /* @__PURE__ */ jsx209(
7711
7836
  ResizablePanelClone,
7712
7837
  {
7713
7838
  element,
@@ -7720,7 +7845,7 @@ function ResizablePanelGroup({ direction, children, className }) {
7720
7845
  handleIndex += 1;
7721
7846
  const index = handleIndex;
7722
7847
  const constraint = constraints[index];
7723
- return /* @__PURE__ */ jsx207(
7848
+ return /* @__PURE__ */ jsx209(
7724
7849
  ResizableHandleClone,
7725
7850
  {
7726
7851
  element,
@@ -7749,19 +7874,19 @@ function ResizablePanelClone({
7749
7874
  flexGrow: 0,
7750
7875
  flexShrink: 0
7751
7876
  };
7752
- return /* @__PURE__ */ jsx207(ResizablePanel, { ...element.props, style });
7877
+ return /* @__PURE__ */ jsx209(ResizablePanel, { ...element.props, style });
7753
7878
  }
7754
7879
  function ResizableHandleClone({
7755
7880
  element,
7756
7881
  ...injected
7757
7882
  }) {
7758
- return /* @__PURE__ */ jsx207(ResizableHandle, { ...element.props, ...injected });
7883
+ return /* @__PURE__ */ jsx209(ResizableHandle, { ...element.props, ...injected });
7759
7884
  }
7760
7885
 
7761
7886
  // src/components/DataTable/DataTable.tsx
7762
- import { useMemo as useMemo4, useState as useState24 } from "react";
7763
- import styles80 from "./DataTable.module.css";
7764
- import { jsx as jsx208, jsxs as jsxs160 } 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";
7765
7890
  function compareValues(a, b) {
7766
7891
  if (typeof a === "number" && typeof b === "number") return a - b;
7767
7892
  return String(a).localeCompare(String(b));
@@ -7775,8 +7900,8 @@ function DataTable({
7775
7900
  emptyMessage = "No results.",
7776
7901
  className
7777
7902
  }) {
7778
- const [sortKey, setSortKey] = useState24(defaultSortKey);
7779
- const [sortDirection, setSortDirection] = useState24(defaultSortDirection);
7903
+ const [sortKey, setSortKey] = useState25(defaultSortKey);
7904
+ const [sortDirection, setSortDirection] = useState25(defaultSortDirection);
7780
7905
  const sortColumn = columns.find((c) => c.key === sortKey);
7781
7906
  const sortedData = useMemo4(() => {
7782
7907
  if (!sortColumn) return data;
@@ -7797,26 +7922,26 @@ function DataTable({
7797
7922
  }
7798
7923
  }
7799
7924
  if (data.length === 0) {
7800
- return /* @__PURE__ */ jsx208(EmptyState, { heading: emptyMessage });
7925
+ return /* @__PURE__ */ jsx210(EmptyState, { heading: emptyMessage });
7801
7926
  }
7802
- return /* @__PURE__ */ jsxs160(Table, { className, children: [
7803
- /* @__PURE__ */ jsx208(TableHead, { children: /* @__PURE__ */ jsx208(TableRow, { children: columns.map((column) => {
7927
+ return /* @__PURE__ */ jsxs161(Table, { className, children: [
7928
+ /* @__PURE__ */ jsx210(TableHead, { children: /* @__PURE__ */ jsx210(TableRow, { children: columns.map((column) => {
7804
7929
  const isSorted = sortKey === column.key;
7805
7930
  const ariaSort = !column.sortable ? void 0 : isSorted ? sortDirection === "asc" ? "ascending" : "descending" : "none";
7806
- return /* @__PURE__ */ jsx208(
7931
+ return /* @__PURE__ */ jsx210(
7807
7932
  TableHeaderCell,
7808
7933
  {
7809
7934
  "aria-sort": ariaSort,
7810
7935
  style: column.align === "end" ? { textAlign: "end" } : void 0,
7811
- children: column.sortable ? /* @__PURE__ */ jsxs160(
7936
+ children: column.sortable ? /* @__PURE__ */ jsxs161(
7812
7937
  "button",
7813
7938
  {
7814
7939
  type: "button",
7815
- className: styles80.sortButton,
7940
+ className: styles81.sortButton,
7816
7941
  onClick: () => handleSort(column),
7817
7942
  children: [
7818
7943
  column.header,
7819
- /* @__PURE__ */ jsx208("span", { className: styles80.sortIcon, children: isSorted && /* @__PURE__ */ jsx208(
7944
+ /* @__PURE__ */ jsx210("span", { className: styles81.sortIcon, children: isSorted && /* @__PURE__ */ jsx210(
7820
7945
  Icon,
7821
7946
  {
7822
7947
  name: sortDirection === "asc" ? "chevron-up" : "chevron-down",
@@ -7831,7 +7956,7 @@ function DataTable({
7831
7956
  column.key
7832
7957
  );
7833
7958
  }) }) }),
7834
- /* @__PURE__ */ jsx208(TableBody, { children: sortedData.map((row) => /* @__PURE__ */ jsx208(TableRow, { children: columns.map((column) => /* @__PURE__ */ jsx208(
7959
+ /* @__PURE__ */ jsx210(TableBody, { children: sortedData.map((row) => /* @__PURE__ */ jsx210(TableRow, { children: columns.map((column) => /* @__PURE__ */ jsx210(
7835
7960
  TableCell,
7836
7961
  {
7837
7962
  style: column.align === "end" ? { textAlign: "end" } : void 0,
@@ -7843,9 +7968,9 @@ function DataTable({
7843
7968
  }
7844
7969
 
7845
7970
  // src/components/Combobox/Combobox.tsx
7846
- import { useEffect as useEffect17, useId as useId10, useMemo as useMemo5, useRef as useRef25, useState as useState25 } from "react";
7847
- import styles81 from "./Combobox.module.css";
7848
- import { Fragment as Fragment17, jsx as jsx209, jsxs as jsxs161 } 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";
7849
7974
  function matches2(option, query) {
7850
7975
  if (!query) return true;
7851
7976
  return option.label.toLowerCase().includes(query.toLowerCase());
@@ -7861,9 +7986,9 @@ function Combobox({
7861
7986
  disabled = false,
7862
7987
  className
7863
7988
  }) {
7864
- const [open, setOpen] = useState25(false);
7865
- const [query, setQuery] = useState25("");
7866
- const [highlightedIndex, setHighlightedIndex] = useState25(0);
7989
+ const [open, setOpen] = useState26(false);
7990
+ const [query, setQuery] = useState26("");
7991
+ const [highlightedIndex, setHighlightedIndex] = useState26(0);
7867
7992
  const isMobile = useIsMobile();
7868
7993
  const inputRef = useRef25(null);
7869
7994
  const listId = useId10();
@@ -7899,24 +8024,24 @@ function Combobox({
7899
8024
  }
7900
8025
  }
7901
8026
  const highlightedId = filtered[highlightedIndex] ? `${listId}-${filtered[highlightedIndex].value}` : void 0;
7902
- const trigger = /* @__PURE__ */ jsxs161(
8027
+ const trigger = /* @__PURE__ */ jsxs162(
7903
8028
  "button",
7904
8029
  {
7905
8030
  type: "button",
7906
- className: [styles81.trigger, className].filter(Boolean).join(" "),
8031
+ className: [styles82.trigger, className].filter(Boolean).join(" "),
7907
8032
  disabled,
7908
8033
  "aria-label": ariaLabel,
7909
8034
  "aria-haspopup": "listbox",
7910
8035
  "aria-expanded": open,
7911
8036
  onClick: () => setOpen((o) => !o),
7912
8037
  children: [
7913
- /* @__PURE__ */ jsx209("span", { className: selected ? styles81.triggerValue : styles81.triggerPlaceholder, children: selected ? selected.label : placeholder }),
7914
- /* @__PURE__ */ jsx209(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 })
7915
8040
  ]
7916
8041
  }
7917
8042
  );
7918
- const body = /* @__PURE__ */ jsxs161("div", { className: styles81.body, children: [
7919
- /* @__PURE__ */ jsx209(
8043
+ const body = /* @__PURE__ */ jsxs162("div", { className: styles82.body, children: [
8044
+ /* @__PURE__ */ jsx211(
7920
8045
  "input",
7921
8046
  {
7922
8047
  ref: inputRef,
@@ -7926,30 +8051,30 @@ function Combobox({
7926
8051
  "aria-controls": listId,
7927
8052
  "aria-activedescendant": highlightedId,
7928
8053
  "aria-autocomplete": "list",
7929
- className: styles81.search,
8054
+ className: styles82.search,
7930
8055
  placeholder: searchPlaceholder,
7931
8056
  value: query,
7932
8057
  onChange: (e) => setQuery(e.target.value),
7933
8058
  onKeyDown: handleKeyDown
7934
8059
  }
7935
8060
  ),
7936
- /* @__PURE__ */ jsxs161("ul", { id: listId, role: "listbox", className: styles81.list, children: [
7937
- filtered.length === 0 && /* @__PURE__ */ jsx209("li", { className: styles81.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 }),
7938
8063
  filtered.map((option, index) => {
7939
8064
  const isHighlighted = index === highlightedIndex;
7940
8065
  const isSelected = option.value === value;
7941
- return /* @__PURE__ */ jsx209("li", { children: /* @__PURE__ */ jsxs161(
8066
+ return /* @__PURE__ */ jsx211("li", { children: /* @__PURE__ */ jsxs162(
7942
8067
  "button",
7943
8068
  {
7944
8069
  id: `${listId}-${option.value}`,
7945
8070
  type: "button",
7946
8071
  role: "option",
7947
8072
  "aria-selected": isSelected,
7948
- className: [styles81.option, isHighlighted ? styles81.optionHighlighted : ""].filter(Boolean).join(" "),
8073
+ className: [styles82.option, isHighlighted ? styles82.optionHighlighted : ""].filter(Boolean).join(" "),
7949
8074
  onMouseEnter: () => setHighlightedIndex(index),
7950
8075
  onClick: () => commit(option),
7951
8076
  children: [
7952
- /* @__PURE__ */ jsx209("span", { className: styles81.check, children: isSelected && /* @__PURE__ */ jsx209(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 }) }),
7953
8078
  option.label
7954
8079
  ]
7955
8080
  }
@@ -7958,12 +8083,12 @@ function Combobox({
7958
8083
  ] })
7959
8084
  ] });
7960
8085
  if (isMobile) {
7961
- return /* @__PURE__ */ jsxs161(Fragment17, { children: [
8086
+ return /* @__PURE__ */ jsxs162(Fragment17, { children: [
7962
8087
  trigger,
7963
- /* @__PURE__ */ jsx209(Drawer, { open, onClose: () => setOpen(false), "aria-label": ariaLabel, children: body })
8088
+ /* @__PURE__ */ jsx211(Drawer, { open, onClose: () => setOpen(false), "aria-label": ariaLabel, children: body })
7964
8089
  ] });
7965
8090
  }
7966
- return /* @__PURE__ */ jsx209(
8091
+ return /* @__PURE__ */ jsx211(
7967
8092
  Popover,
7968
8093
  {
7969
8094
  trigger,
@@ -7977,9 +8102,9 @@ function Combobox({
7977
8102
  }
7978
8103
 
7979
8104
  // src/components/GripIcon/GripIcon.tsx
7980
- import { jsx as jsx210 } from "react/jsx-runtime";
8105
+ import { jsx as jsx212 } from "react/jsx-runtime";
7981
8106
  function GripIcon({ size = 14, className }) {
7982
- return /* @__PURE__ */ jsx210(
8107
+ return /* @__PURE__ */ jsx212(
7983
8108
  "svg",
7984
8109
  {
7985
8110
  width: size,
@@ -7989,15 +8114,15 @@ function GripIcon({ size = 14, className }) {
7989
8114
  "aria-hidden": "true",
7990
8115
  className,
7991
8116
  children: [3, 7, 11].map(
7992
- (cy) => [4, 10].map((cx) => /* @__PURE__ */ jsx210("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}`))
7993
8118
  )
7994
8119
  }
7995
8120
  );
7996
8121
  }
7997
8122
 
7998
8123
  // src/components/DragHandleRow/DragHandleRow.tsx
7999
- import styles82 from "./DragHandleRow.module.css";
8000
- import { jsx as jsx211, jsxs as jsxs162 } from "react/jsx-runtime";
8124
+ import styles83 from "./DragHandleRow.module.css";
8125
+ import { jsx as jsx213, jsxs as jsxs163 } from "react/jsx-runtime";
8001
8126
  function DragHandleRow({
8002
8127
  children,
8003
8128
  handleProps,
@@ -8005,32 +8130,32 @@ function DragHandleRow({
8005
8130
  className,
8006
8131
  ...rest
8007
8132
  }) {
8008
- return /* @__PURE__ */ jsxs162(
8133
+ return /* @__PURE__ */ jsxs163(
8009
8134
  "div",
8010
8135
  {
8011
8136
  ...rest,
8012
- className: [styles82.row, isDragging ? styles82.dragging : "", className].filter(Boolean).join(" "),
8137
+ className: [styles83.row, isDragging ? styles83.dragging : "", className].filter(Boolean).join(" "),
8013
8138
  children: [
8014
- /* @__PURE__ */ jsx211(
8139
+ /* @__PURE__ */ jsx213(
8015
8140
  "button",
8016
8141
  {
8017
8142
  type: "button",
8018
8143
  "aria-label": "Drag to reorder",
8019
- className: styles82.handle,
8144
+ className: styles83.handle,
8020
8145
  tabIndex: -1,
8021
8146
  ...handleProps,
8022
- children: /* @__PURE__ */ jsx211(GripIcon, { className: styles82.icon })
8147
+ children: /* @__PURE__ */ jsx213(GripIcon, { className: styles83.icon })
8023
8148
  }
8024
8149
  ),
8025
- /* @__PURE__ */ jsx211("div", { className: styles82.content, children })
8150
+ /* @__PURE__ */ jsx213("div", { className: styles83.content, children })
8026
8151
  ]
8027
8152
  }
8028
8153
  );
8029
8154
  }
8030
8155
 
8031
8156
  // src/components/StepStrip/StepStrip.tsx
8032
- import styles83 from "./StepStrip.module.css";
8033
- import { jsx as jsx212, jsxs as jsxs163 } from "react/jsx-runtime";
8157
+ import styles84 from "./StepStrip.module.css";
8158
+ import { jsx as jsx214, jsxs as jsxs164 } from "react/jsx-runtime";
8034
8159
  function StepStrip({
8035
8160
  items,
8036
8161
  activeId,
@@ -8040,28 +8165,28 @@ function StepStrip({
8040
8165
  className,
8041
8166
  "aria-label": ariaLabel
8042
8167
  }) {
8043
- return /* @__PURE__ */ jsxs163(
8168
+ return /* @__PURE__ */ jsxs164(
8044
8169
  "div",
8045
8170
  {
8046
- className: [styles83.strip, className].filter(Boolean).join(" "),
8171
+ className: [styles84.strip, className].filter(Boolean).join(" "),
8047
8172
  role: "list",
8048
8173
  "aria-label": ariaLabel,
8049
8174
  children: [
8050
- items.map((item, index) => /* @__PURE__ */ jsxs163("div", { className: styles83.step, role: "listitem", children: [
8175
+ items.map((item, index) => /* @__PURE__ */ jsxs164("div", { className: styles84.step, role: "listitem", children: [
8051
8176
  renderItem(item, { isActive: item.id === activeId, index }),
8052
- (index < items.length - 1 || onAdd) && /* @__PURE__ */ jsx212(
8177
+ (index < items.length - 1 || onAdd) && /* @__PURE__ */ jsx214(
8053
8178
  "div",
8054
8179
  {
8055
8180
  className: [
8056
- styles83.connector,
8057
- index === items.length - 1 ? styles83.connectorDashed : ""
8181
+ styles84.connector,
8182
+ index === items.length - 1 ? styles84.connectorDashed : ""
8058
8183
  ].filter(Boolean).join(" "),
8059
8184
  "aria-hidden": "true"
8060
8185
  }
8061
8186
  )
8062
8187
  ] }, item.id)),
8063
- onAdd && /* @__PURE__ */ jsxs163("button", { type: "button", className: styles83.addChip, onClick: onAdd, children: [
8064
- /* @__PURE__ */ jsx212(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 }),
8065
8190
  addLabel
8066
8191
  ] })
8067
8192
  ]
@@ -8070,9 +8195,9 @@ function StepStrip({
8070
8195
  }
8071
8196
 
8072
8197
  // src/components/FileDropzone/FileDropzone.tsx
8073
- import { useRef as useRef26, useState as useState26 } from "react";
8074
- import styles84 from "./FileDropzone.module.css";
8075
- import { jsx as jsx213, jsxs as jsxs164 } 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";
8076
8201
  function FileDropzone({
8077
8202
  name,
8078
8203
  accept,
@@ -8084,15 +8209,15 @@ function FileDropzone({
8084
8209
  disabled,
8085
8210
  className
8086
8211
  }) {
8087
- const [dragging, setDragging] = useState26(false);
8212
+ const [dragging, setDragging] = useState27(false);
8088
8213
  const inputRef = useRef26(null);
8089
- return /* @__PURE__ */ jsxs164(
8214
+ return /* @__PURE__ */ jsxs165(
8090
8215
  "label",
8091
8216
  {
8092
8217
  className: [
8093
- styles84.dropzone,
8094
- dragging ? styles84.dropzoneActive : "",
8095
- disabled ? styles84.dropzoneDisabled : "",
8218
+ styles85.dropzone,
8219
+ dragging ? styles85.dropzoneActive : "",
8220
+ disabled ? styles85.dropzoneDisabled : "",
8096
8221
  className
8097
8222
  ].filter(Boolean).join(" "),
8098
8223
  onDragOver: (event) => {
@@ -8115,12 +8240,12 @@ function FileDropzone({
8115
8240
  onFileSelect(dropped);
8116
8241
  },
8117
8242
  children: [
8118
- /* @__PURE__ */ jsx213("span", { className: styles84.icon, "aria-hidden": "true", children: icon ?? /* @__PURE__ */ jsx213(Icon, { name: "file", size: "lg", "aria-hidden": true }) }),
8119
- /* @__PURE__ */ jsxs164("span", { className: styles84.text, children: [
8120
- /* @__PURE__ */ jsx213("span", { className: styles84.title, children: label }),
8121
- hint && /* @__PURE__ */ jsx213("span", { className: styles84.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 })
8122
8247
  ] }),
8123
- /* @__PURE__ */ jsx213(
8248
+ /* @__PURE__ */ jsx215(
8124
8249
  "input",
8125
8250
  {
8126
8251
  ref: inputRef,
@@ -8130,7 +8255,7 @@ function FileDropzone({
8130
8255
  accept,
8131
8256
  disabled,
8132
8257
  onChange: (event) => onFileSelect(event.target.files?.[0] ?? null),
8133
- className: styles84.hiddenInput
8258
+ className: styles85.hiddenInput
8134
8259
  }
8135
8260
  )
8136
8261
  ]
@@ -8139,7 +8264,7 @@ function FileDropzone({
8139
8264
  }
8140
8265
 
8141
8266
  // src/components/Calendar/Calendar.tsx
8142
- import { useRef as useRef27, useState as useState27 } from "react";
8267
+ import { useRef as useRef27, useState as useState28 } from "react";
8143
8268
 
8144
8269
  // src/components/Calendar/dateUtils.ts
8145
8270
  function startOfMonth(date) {
@@ -8205,8 +8330,8 @@ function formatDateLabel(date) {
8205
8330
  }
8206
8331
 
8207
8332
  // src/components/Calendar/Calendar.tsx
8208
- import styles85 from "./Calendar.module.css";
8209
- import { jsx as jsx214, jsxs as jsxs165 } from "react/jsx-runtime";
8333
+ import styles86 from "./Calendar.module.css";
8334
+ import { jsx as jsx216, jsxs as jsxs166 } from "react/jsx-runtime";
8210
8335
  var WEEKDAY_LABEL_WEEK = getMonthGrid(new Date(2026, 0, 1))[0] ?? [];
8211
8336
  function Calendar({
8212
8337
  value,
@@ -8215,8 +8340,8 @@ function Calendar({
8215
8340
  maxDate,
8216
8341
  "aria-label": ariaLabel
8217
8342
  }) {
8218
- const [displayedMonth, setDisplayedMonth] = useState27(() => startOfMonth(value ?? /* @__PURE__ */ new Date()));
8219
- const [focusedDate, setFocusedDate] = useState27(() => value ?? /* @__PURE__ */ new Date());
8343
+ const [displayedMonth, setDisplayedMonth] = useState28(() => startOfMonth(value ?? /* @__PURE__ */ new Date()));
8344
+ const [focusedDate, setFocusedDate] = useState28(() => value ?? /* @__PURE__ */ new Date());
8220
8345
  const gridRef = useRef27(null);
8221
8346
  const weeks = getMonthGrid(displayedMonth);
8222
8347
  function goToMonth(next) {
@@ -8276,51 +8401,51 @@ function Calendar({
8276
8401
  default:
8277
8402
  }
8278
8403
  }
8279
- return /* @__PURE__ */ jsxs165("div", { className: styles85.calendar, "aria-label": ariaLabel, children: [
8280
- /* @__PURE__ */ jsxs165("div", { className: styles85.header, children: [
8281
- /* @__PURE__ */ jsx214(
8404
+ return /* @__PURE__ */ jsxs166("div", { className: styles86.calendar, "aria-label": ariaLabel, children: [
8405
+ /* @__PURE__ */ jsxs166("div", { className: styles86.header, children: [
8406
+ /* @__PURE__ */ jsx216(
8282
8407
  "button",
8283
8408
  {
8284
8409
  type: "button",
8285
- className: styles85.navButton,
8410
+ className: styles86.navButton,
8286
8411
  "aria-label": "Previous month",
8287
8412
  onClick: () => goToMonth(addMonths(displayedMonth, -1)),
8288
- children: /* @__PURE__ */ jsx214(Icon, { name: "chevron-left", size: "sm", "aria-hidden": true })
8413
+ children: /* @__PURE__ */ jsx216(Icon, { name: "chevron-left", size: "sm", "aria-hidden": true })
8289
8414
  }
8290
8415
  ),
8291
- /* @__PURE__ */ jsx214("span", { className: styles85.monthLabel, children: formatMonthYear(displayedMonth) }),
8292
- /* @__PURE__ */ jsx214(
8416
+ /* @__PURE__ */ jsx216("span", { className: styles86.monthLabel, children: formatMonthYear(displayedMonth) }),
8417
+ /* @__PURE__ */ jsx216(
8293
8418
  "button",
8294
8419
  {
8295
8420
  type: "button",
8296
- className: styles85.navButton,
8421
+ className: styles86.navButton,
8297
8422
  "aria-label": "Next month",
8298
8423
  onClick: () => goToMonth(addMonths(displayedMonth, 1)),
8299
- children: /* @__PURE__ */ jsx214(Icon, { name: "chevron-right", size: "sm", "aria-hidden": true })
8424
+ children: /* @__PURE__ */ jsx216(Icon, { name: "chevron-right", size: "sm", "aria-hidden": true })
8300
8425
  }
8301
8426
  )
8302
8427
  ] }),
8303
- /* @__PURE__ */ jsxs165(
8428
+ /* @__PURE__ */ jsxs166(
8304
8429
  "div",
8305
8430
  {
8306
8431
  ref: gridRef,
8307
8432
  role: "grid",
8308
8433
  "aria-label": formatMonthYear(displayedMonth),
8309
- className: styles85.grid,
8434
+ className: styles86.grid,
8310
8435
  onKeyDown: handleKeyDown,
8311
8436
  tabIndex: -1,
8312
8437
  children: [
8313
- /* @__PURE__ */ jsx214("div", { role: "row", className: styles85.weekdayRow, children: WEEKDAY_LABEL_WEEK.map((d) => /* @__PURE__ */ jsx214("span", { role: "columnheader", className: styles85.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())) }),
8314
8439
  weeks.map((week) => {
8315
8440
  const firstDayOfWeek = week[0];
8316
8441
  if (!firstDayOfWeek) return null;
8317
- return /* @__PURE__ */ jsx214("div", { role: "row", className: styles85.week, children: week.map((date) => {
8442
+ return /* @__PURE__ */ jsx216("div", { role: "row", className: styles86.week, children: week.map((date) => {
8318
8443
  const isCurrentMonth = isSameMonth(date, displayedMonth);
8319
8444
  const isSelected = value !== null && isSameDay(date, value);
8320
8445
  const isToday = isSameDay(date, /* @__PURE__ */ new Date());
8321
8446
  const isFocusTarget = isSameDay(date, focusedDate);
8322
8447
  const disabled = !isWithinRange(date, minDate, maxDate);
8323
- return /* @__PURE__ */ jsx214("div", { role: "gridcell", "aria-selected": isSelected, children: /* @__PURE__ */ jsx214(
8448
+ return /* @__PURE__ */ jsx216("div", { role: "gridcell", "aria-selected": isSelected, children: /* @__PURE__ */ jsx216(
8324
8449
  "button",
8325
8450
  {
8326
8451
  type: "button",
@@ -8329,10 +8454,10 @@ function Calendar({
8329
8454
  "aria-current": isToday ? "date" : void 0,
8330
8455
  "aria-label": formatDateLabel(date),
8331
8456
  className: [
8332
- styles85.day,
8333
- !isCurrentMonth ? styles85.dayOutside : "",
8334
- isSelected ? styles85.daySelected : "",
8335
- isToday && !isSelected ? styles85.dayToday : ""
8457
+ styles86.day,
8458
+ !isCurrentMonth ? styles86.dayOutside : "",
8459
+ isSelected ? styles86.daySelected : "",
8460
+ isToday && !isSelected ? styles86.dayToday : ""
8336
8461
  ].filter(Boolean).join(" "),
8337
8462
  onClick: () => selectDate(date),
8338
8463
  onFocus: () => setFocusedDate(date),
@@ -8348,9 +8473,9 @@ function Calendar({
8348
8473
  }
8349
8474
 
8350
8475
  // src/components/DatePicker/DatePicker.tsx
8351
- import { useState as useState28 } from "react";
8352
- import styles86 from "./DatePicker.module.css";
8353
- import { Fragment as Fragment18, jsx as jsx215, jsxs as jsxs166 } 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";
8354
8479
  var POPOVER_WIDTH = 320;
8355
8480
  function DatePicker({
8356
8481
  value,
@@ -8361,29 +8486,29 @@ function DatePicker({
8361
8486
  "aria-label": ariaLabel,
8362
8487
  disabled = false
8363
8488
  }) {
8364
- const [open, setOpen] = useState28(false);
8489
+ const [open, setOpen] = useState29(false);
8365
8490
  const isMobile = useIsMobile();
8366
8491
  function handleSelect(date) {
8367
8492
  onChange(date);
8368
8493
  setOpen(false);
8369
8494
  }
8370
- const trigger = /* @__PURE__ */ jsxs166(
8495
+ const trigger = /* @__PURE__ */ jsxs167(
8371
8496
  "button",
8372
8497
  {
8373
8498
  type: "button",
8374
- className: styles86.trigger,
8499
+ className: styles87.trigger,
8375
8500
  disabled,
8376
8501
  "aria-label": ariaLabel,
8377
8502
  "aria-haspopup": "dialog",
8378
8503
  "aria-expanded": open,
8379
8504
  onClick: () => setOpen((o) => !o),
8380
8505
  children: [
8381
- /* @__PURE__ */ jsx215("span", { className: value ? styles86.triggerValue : styles86.triggerPlaceholder, children: value ? formatDateShort(value) : placeholder }),
8382
- /* @__PURE__ */ jsx215(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 })
8383
8508
  ]
8384
8509
  }
8385
8510
  );
8386
- const calendar = /* @__PURE__ */ jsx215(
8511
+ const calendar = /* @__PURE__ */ jsx217(
8387
8512
  Calendar,
8388
8513
  {
8389
8514
  value,
@@ -8394,12 +8519,12 @@ function DatePicker({
8394
8519
  }
8395
8520
  );
8396
8521
  if (isMobile) {
8397
- return /* @__PURE__ */ jsxs166(Fragment18, { children: [
8522
+ return /* @__PURE__ */ jsxs167(Fragment18, { children: [
8398
8523
  trigger,
8399
- /* @__PURE__ */ jsx215(Drawer, { open, onClose: () => setOpen(false), "aria-label": ariaLabel, children: /* @__PURE__ */ jsx215("div", { className: styles86.drawerBody, children: calendar }) })
8524
+ /* @__PURE__ */ jsx217(Drawer, { open, onClose: () => setOpen(false), "aria-label": ariaLabel, children: /* @__PURE__ */ jsx217("div", { className: styles87.drawerBody, children: calendar }) })
8400
8525
  ] });
8401
8526
  }
8402
- return /* @__PURE__ */ jsx215(
8527
+ return /* @__PURE__ */ jsx217(
8403
8528
  Popover,
8404
8529
  {
8405
8530
  trigger,
@@ -8407,17 +8532,17 @@ function DatePicker({
8407
8532
  onClose: () => setOpen(false),
8408
8533
  "aria-label": ariaLabel,
8409
8534
  width: POPOVER_WIDTH,
8410
- children: /* @__PURE__ */ jsx215("div", { className: styles86.popoverBody, children: calendar })
8535
+ children: /* @__PURE__ */ jsx217("div", { className: styles87.popoverBody, children: calendar })
8411
8536
  }
8412
8537
  );
8413
8538
  }
8414
8539
 
8415
8540
  // src/components/DateRangePicker/DateRangePicker.tsx
8416
- import { useState as useState30 } from "react";
8541
+ import { useState as useState31 } from "react";
8417
8542
  import pickerStyles from "./DatePicker.module.css";
8418
8543
 
8419
8544
  // src/components/DateRangePicker/RangeCalendar.tsx
8420
- import { useRef as useRef28, useState as useState29 } from "react";
8545
+ import { useRef as useRef28, useState as useState30 } from "react";
8421
8546
  import calendarStyles from "./Calendar.module.css";
8422
8547
 
8423
8548
  // src/components/DateRangePicker/rangeUtils.ts
@@ -8446,8 +8571,8 @@ function rangeOf(first, second) {
8446
8571
  }
8447
8572
 
8448
8573
  // src/components/DateRangePicker/RangeCalendar.tsx
8449
- import styles87 from "./DateRangePicker.module.css";
8450
- import { jsx as jsx216, jsxs as jsxs167 } from "react/jsx-runtime";
8574
+ import styles88 from "./DateRangePicker.module.css";
8575
+ import { jsx as jsx218, jsxs as jsxs168 } from "react/jsx-runtime";
8451
8576
  var WEEKDAY_LABEL_WEEK2 = getMonthGrid(new Date(2026, 0, 1))[0] ?? [];
8452
8577
  function RangeCalendar({
8453
8578
  value,
@@ -8456,12 +8581,12 @@ function RangeCalendar({
8456
8581
  maxDate,
8457
8582
  "aria-label": ariaLabel
8458
8583
  }) {
8459
- const [displayedMonth, setDisplayedMonth] = useState29(
8584
+ const [displayedMonth, setDisplayedMonth] = useState30(
8460
8585
  () => startOfMonth(value?.start ?? /* @__PURE__ */ new Date())
8461
8586
  );
8462
- const [focusedDate, setFocusedDate] = useState29(() => value?.start ?? /* @__PURE__ */ new Date());
8463
- const [first, setFirst] = useState29(null);
8464
- const [hover, setHover] = useState29(null);
8587
+ const [focusedDate, setFocusedDate] = useState30(() => value?.start ?? /* @__PURE__ */ new Date());
8588
+ const [first, setFirst] = useState30(null);
8589
+ const [hover, setHover] = useState30(null);
8465
8590
  const gridRef = useRef28(null);
8466
8591
  const weeks = getMonthGrid(displayedMonth);
8467
8592
  const shown = first ? rangeOf(first, hover ?? first) : value;
@@ -8529,31 +8654,31 @@ function RangeCalendar({
8529
8654
  }
8530
8655
  }
8531
8656
  const nights = shown ? nightsBetween(shown.start, shown.end) : null;
8532
- return /* @__PURE__ */ jsxs167("div", { className: calendarStyles.calendar, "aria-label": ariaLabel, children: [
8533
- /* @__PURE__ */ jsxs167("div", { className: calendarStyles.header, children: [
8534
- /* @__PURE__ */ jsx216(
8657
+ return /* @__PURE__ */ jsxs168("div", { className: calendarStyles.calendar, "aria-label": ariaLabel, children: [
8658
+ /* @__PURE__ */ jsxs168("div", { className: calendarStyles.header, children: [
8659
+ /* @__PURE__ */ jsx218(
8535
8660
  "button",
8536
8661
  {
8537
8662
  type: "button",
8538
8663
  className: calendarStyles.navButton,
8539
8664
  "aria-label": "Previous month",
8540
8665
  onClick: () => goToMonth(addMonths(displayedMonth, -1)),
8541
- children: /* @__PURE__ */ jsx216(Icon, { name: "chevron-left", size: "sm", "aria-hidden": true })
8666
+ children: /* @__PURE__ */ jsx218(Icon, { name: "chevron-left", size: "sm", "aria-hidden": true })
8542
8667
  }
8543
8668
  ),
8544
- /* @__PURE__ */ jsx216("span", { className: calendarStyles.monthLabel, children: formatMonthYear(displayedMonth) }),
8545
- /* @__PURE__ */ jsx216(
8669
+ /* @__PURE__ */ jsx218("span", { className: calendarStyles.monthLabel, children: formatMonthYear(displayedMonth) }),
8670
+ /* @__PURE__ */ jsx218(
8546
8671
  "button",
8547
8672
  {
8548
8673
  type: "button",
8549
8674
  className: calendarStyles.navButton,
8550
8675
  "aria-label": "Next month",
8551
8676
  onClick: () => goToMonth(addMonths(displayedMonth, 1)),
8552
- children: /* @__PURE__ */ jsx216(Icon, { name: "chevron-right", size: "sm", "aria-hidden": true })
8677
+ children: /* @__PURE__ */ jsx218(Icon, { name: "chevron-right", size: "sm", "aria-hidden": true })
8553
8678
  }
8554
8679
  )
8555
8680
  ] }),
8556
- /* @__PURE__ */ jsxs167(
8681
+ /* @__PURE__ */ jsxs168(
8557
8682
  "div",
8558
8683
  {
8559
8684
  ref: gridRef,
@@ -8563,7 +8688,7 @@ function RangeCalendar({
8563
8688
  onKeyDown: handleKeyDown,
8564
8689
  tabIndex: -1,
8565
8690
  children: [
8566
- /* @__PURE__ */ jsx216("div", { role: "row", className: calendarStyles.weekdayRow, children: WEEKDAY_LABEL_WEEK2.map((d) => /* @__PURE__ */ jsx216(
8691
+ /* @__PURE__ */ jsx218("div", { role: "row", className: calendarStyles.weekdayRow, children: WEEKDAY_LABEL_WEEK2.map((d) => /* @__PURE__ */ jsx218(
8567
8692
  "span",
8568
8693
  {
8569
8694
  role: "columnheader",
@@ -8576,25 +8701,25 @@ function RangeCalendar({
8576
8701
  weeks.map((week) => {
8577
8702
  const firstDayOfWeek = week[0];
8578
8703
  if (!firstDayOfWeek) return null;
8579
- return /* @__PURE__ */ jsx216("div", { role: "row", className: calendarStyles.week, children: week.map((date) => {
8704
+ return /* @__PURE__ */ jsx218("div", { role: "row", className: calendarStyles.week, children: week.map((date) => {
8580
8705
  const isCurrentMonth = isSameMonth(date, displayedMonth);
8581
8706
  const isStart = shown !== null && isSameDay(date, shown.start);
8582
8707
  const isEnd = shown !== null && isSameDay(date, shown.end);
8583
8708
  const inside = shown !== null && nightsBetween(shown.start, date) > 0 && nightsBetween(date, shown.end) > 0;
8584
8709
  const isToday = isSameDay(date, /* @__PURE__ */ new Date());
8585
8710
  const disabled = !isWithinRange(date, minDate, maxDate);
8586
- return /* @__PURE__ */ jsx216(
8711
+ return /* @__PURE__ */ jsx218(
8587
8712
  "div",
8588
8713
  {
8589
8714
  role: "gridcell",
8590
8715
  "aria-selected": isStart || isEnd || inside,
8591
8716
  className: [
8592
- styles87.cell,
8593
- inside ? styles87.cellInside : "",
8594
- isStart && !isEnd ? styles87.cellStart : "",
8595
- isEnd && !isStart ? styles87.cellEnd : ""
8717
+ styles88.cell,
8718
+ inside ? styles88.cellInside : "",
8719
+ isStart && !isEnd ? styles88.cellStart : "",
8720
+ isEnd && !isStart ? styles88.cellEnd : ""
8596
8721
  ].filter(Boolean).join(" "),
8597
- children: /* @__PURE__ */ jsx216(
8722
+ children: /* @__PURE__ */ jsx218(
8598
8723
  "button",
8599
8724
  {
8600
8725
  type: "button",
@@ -8626,12 +8751,12 @@ function RangeCalendar({
8626
8751
  ]
8627
8752
  }
8628
8753
  ),
8629
- /* @__PURE__ */ jsx216("p", { className: styles87.summary, role: "status", children: first ? "Now choose the last day." : nights === null ? "Choose the first day." : nightsLabel(nights) })
8754
+ /* @__PURE__ */ jsx218("p", { className: styles88.summary, role: "status", children: first ? "Now choose the last day." : nights === null ? "Choose the first day." : nightsLabel(nights) })
8630
8755
  ] });
8631
8756
  }
8632
8757
 
8633
8758
  // src/components/DateRangePicker/DateRangePicker.tsx
8634
- import { Fragment as Fragment19, jsx as jsx217, jsxs as jsxs168 } from "react/jsx-runtime";
8759
+ import { Fragment as Fragment19, jsx as jsx219, jsxs as jsxs169 } from "react/jsx-runtime";
8635
8760
  var POPOVER_WIDTH2 = 320;
8636
8761
  function DateRangePicker({
8637
8762
  value,
@@ -8642,7 +8767,7 @@ function DateRangePicker({
8642
8767
  "aria-label": ariaLabel,
8643
8768
  disabled = false
8644
8769
  }) {
8645
- const [open, setOpen] = useState30(false);
8770
+ const [open, setOpen] = useState31(false);
8646
8771
  const isMobile = useIsMobile();
8647
8772
  const start = parseIso(value.start);
8648
8773
  const end = parseIso(value.end);
@@ -8651,7 +8776,7 @@ function DateRangePicker({
8651
8776
  onChange({ start: toIso(next.start), end: toIso(next.end) });
8652
8777
  setOpen(false);
8653
8778
  }
8654
- const trigger = /* @__PURE__ */ jsxs168(
8779
+ const trigger = /* @__PURE__ */ jsxs169(
8655
8780
  "button",
8656
8781
  {
8657
8782
  type: "button",
@@ -8662,12 +8787,12 @@ function DateRangePicker({
8662
8787
  "aria-expanded": open,
8663
8788
  onClick: () => setOpen((o) => !o),
8664
8789
  children: [
8665
- /* @__PURE__ */ jsx217("span", { className: range ? pickerStyles.triggerValue : pickerStyles.triggerPlaceholder, children: range ? `${formatDateShort(range.start)} \u2013 ${formatDateShort(range.end)} \xB7 ${nightsLabel(nightsBetween(range.start, range.end))}` : placeholder }),
8666
- /* @__PURE__ */ jsx217(Icon, { name: "calendar", size: "sm", "aria-hidden": true })
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 })
8667
8792
  ]
8668
8793
  }
8669
8794
  );
8670
- const calendar = /* @__PURE__ */ jsx217(
8795
+ const calendar = /* @__PURE__ */ jsx219(
8671
8796
  RangeCalendar,
8672
8797
  {
8673
8798
  value: range,
@@ -8678,12 +8803,12 @@ function DateRangePicker({
8678
8803
  }
8679
8804
  );
8680
8805
  if (isMobile) {
8681
- return /* @__PURE__ */ jsxs168(Fragment19, { children: [
8806
+ return /* @__PURE__ */ jsxs169(Fragment19, { children: [
8682
8807
  trigger,
8683
- /* @__PURE__ */ jsx217(Drawer, { open, onClose: () => setOpen(false), "aria-label": ariaLabel, children: /* @__PURE__ */ jsx217("div", { className: pickerStyles.drawerBody, children: calendar }) })
8808
+ /* @__PURE__ */ jsx219(Drawer, { open, onClose: () => setOpen(false), "aria-label": ariaLabel, children: /* @__PURE__ */ jsx219("div", { className: pickerStyles.drawerBody, children: calendar }) })
8684
8809
  ] });
8685
8810
  }
8686
- return /* @__PURE__ */ jsx217(
8811
+ return /* @__PURE__ */ jsx219(
8687
8812
  Popover,
8688
8813
  {
8689
8814
  trigger,
@@ -8691,15 +8816,15 @@ function DateRangePicker({
8691
8816
  onClose: () => setOpen(false),
8692
8817
  "aria-label": ariaLabel,
8693
8818
  width: POPOVER_WIDTH2,
8694
- children: /* @__PURE__ */ jsx217("div", { className: pickerStyles.popoverBody, children: calendar })
8819
+ children: /* @__PURE__ */ jsx219("div", { className: pickerStyles.popoverBody, children: calendar })
8695
8820
  }
8696
8821
  );
8697
8822
  }
8698
8823
 
8699
8824
  // src/components/SuggestionInput/SuggestionInput.tsx
8700
- import { useId as useId11, useRef as useRef29, useState as useState31 } from "react";
8701
- import styles88 from "./SuggestionInput.module.css";
8702
- import { Fragment as Fragment20, jsx as jsx218, jsxs as jsxs169 } 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";
8703
8828
  function SuggestionInput({
8704
8829
  value,
8705
8830
  onChange,
@@ -8718,8 +8843,8 @@ function SuggestionInput({
8718
8843
  const inputId = id ?? generatedId;
8719
8844
  const listId = `${inputId}-suggestions`;
8720
8845
  const inputRef = useRef29(null);
8721
- const [focused, setFocused] = useState31(false);
8722
- const [activeIndex, setActiveIndex] = useState31(-1);
8846
+ const [focused, setFocused] = useState32(false);
8847
+ const [activeIndex, setActiveIndex] = useState32(-1);
8723
8848
  const showCreateRow = Boolean(onCreate && createLabel && value.trim());
8724
8849
  const rowCount = options.length + (showCreateRow ? 1 : 0);
8725
8850
  const open = focused && (rowCount > 0 || loading);
@@ -8756,7 +8881,7 @@ function SuggestionInput({
8756
8881
  close();
8757
8882
  }
8758
8883
  }
8759
- const trigger = /* @__PURE__ */ jsx218(
8884
+ const trigger = /* @__PURE__ */ jsx220(
8760
8885
  "input",
8761
8886
  {
8762
8887
  ref: inputRef,
@@ -8768,7 +8893,7 @@ function SuggestionInput({
8768
8893
  "aria-autocomplete": "list",
8769
8894
  "aria-activedescendant": activeIndex >= 0 ? `${listId}-option-${activeIndex}` : void 0,
8770
8895
  "aria-label": ariaLabel,
8771
- className: [styles88.input, className].filter(Boolean).join(" "),
8896
+ className: [styles89.input, className].filter(Boolean).join(" "),
8772
8897
  value,
8773
8898
  placeholder,
8774
8899
  disabled,
@@ -8781,7 +8906,7 @@ function SuggestionInput({
8781
8906
  onKeyDown: handleKeyDown
8782
8907
  }
8783
8908
  );
8784
- return /* @__PURE__ */ jsx218(
8909
+ return /* @__PURE__ */ jsx220(
8785
8910
  Popover,
8786
8911
  {
8787
8912
  trigger,
@@ -8789,29 +8914,29 @@ function SuggestionInput({
8789
8914
  onClose: close,
8790
8915
  width: "trigger",
8791
8916
  "aria-label": `${ariaLabel} suggestions`,
8792
- children: /* @__PURE__ */ jsx218("ul", { id: listId, role: "listbox", className: styles88.list, children: loading ? /* @__PURE__ */ jsx218("li", { className: styles88.status, children: "Loading\u2026" }) : /* @__PURE__ */ jsxs169(Fragment20, { children: [
8793
- options.map((option, index) => /* @__PURE__ */ jsx218("li", { role: "none", children: /* @__PURE__ */ jsxs169(
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(
8794
8919
  "button",
8795
8920
  {
8796
8921
  id: `${listId}-option-${index}`,
8797
8922
  role: "option",
8798
8923
  "aria-selected": index === activeIndex,
8799
8924
  type: "button",
8800
- className: [styles88.option, index === activeIndex ? styles88.optionActive : ""].filter(Boolean).join(" "),
8925
+ className: [styles89.option, index === activeIndex ? styles89.optionActive : ""].filter(Boolean).join(" "),
8801
8926
  onMouseDown: (e) => {
8802
8927
  e.preventDefault();
8803
8928
  commitIndex(index);
8804
8929
  },
8805
8930
  children: [
8806
- option.icon && /* @__PURE__ */ jsx218("span", { className: styles88.optionIcon, children: option.icon }),
8807
- /* @__PURE__ */ jsx218("span", { className: styles88.optionLabel, children: option.label }),
8808
- option.meta && /* @__PURE__ */ jsx218("span", { className: styles88.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 })
8809
8934
  ]
8810
8935
  }
8811
8936
  ) }, option.id)),
8812
- showCreateRow && createLabel && /* @__PURE__ */ jsxs169("li", { role: "none", children: [
8813
- options.length > 0 && /* @__PURE__ */ jsx218("div", { className: styles88.divider }),
8814
- /* @__PURE__ */ jsx218(
8937
+ showCreateRow && createLabel && /* @__PURE__ */ jsxs170("li", { role: "none", children: [
8938
+ options.length > 0 && /* @__PURE__ */ jsx220("div", { className: styles89.divider }),
8939
+ /* @__PURE__ */ jsx220(
8815
8940
  "button",
8816
8941
  {
8817
8942
  id: `${listId}-option-${options.length}`,
@@ -8819,9 +8944,9 @@ function SuggestionInput({
8819
8944
  "aria-selected": options.length === activeIndex,
8820
8945
  type: "button",
8821
8946
  className: [
8822
- styles88.option,
8823
- styles88.optionCreate,
8824
- options.length === activeIndex ? styles88.optionActive : ""
8947
+ styles89.option,
8948
+ styles89.optionCreate,
8949
+ options.length === activeIndex ? styles89.optionActive : ""
8825
8950
  ].filter(Boolean).join(" "),
8826
8951
  onMouseDown: (e) => {
8827
8952
  e.preventDefault();
@@ -8837,9 +8962,9 @@ function SuggestionInput({
8837
8962
  }
8838
8963
 
8839
8964
  // src/components/IconPicker/IconPicker.tsx
8840
- import { useState as useState32 } from "react";
8841
- import styles89 from "./IconPicker.module.css";
8842
- import { jsx as jsx219, jsxs as jsxs170 } 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";
8843
8968
  function IconPicker({
8844
8969
  value,
8845
8970
  onChange,
@@ -8849,24 +8974,24 @@ function IconPicker({
8849
8974
  disabled = false,
8850
8975
  className
8851
8976
  }) {
8852
- const [open, setOpen] = useState32(false);
8853
- const trigger = /* @__PURE__ */ jsxs170(
8977
+ const [open, setOpen] = useState33(false);
8978
+ const trigger = /* @__PURE__ */ jsxs171(
8854
8979
  "button",
8855
8980
  {
8856
8981
  type: "button",
8857
- className: [styles89.trigger, className].filter(Boolean).join(" "),
8982
+ className: [styles90.trigger, className].filter(Boolean).join(" "),
8858
8983
  onClick: () => setOpen((o) => !o),
8859
8984
  disabled,
8860
8985
  "aria-label": ariaLabel,
8861
8986
  "aria-haspopup": "true",
8862
8987
  "aria-expanded": open,
8863
8988
  children: [
8864
- value ? /* @__PURE__ */ jsx219(Icon, { name: value, size: "md", "aria-hidden": true }) : /* @__PURE__ */ jsx219("span", { className: styles89.placeholder, "aria-hidden": true, children: "?" }),
8865
- triggerLabel && /* @__PURE__ */ jsx219("span", { className: styles89.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 })
8866
8991
  ]
8867
8992
  }
8868
8993
  );
8869
- return /* @__PURE__ */ jsx219(
8994
+ return /* @__PURE__ */ jsx221(
8870
8995
  Popover,
8871
8996
  {
8872
8997
  trigger,
@@ -8874,18 +8999,18 @@ function IconPicker({
8874
8999
  onClose: () => setOpen(false),
8875
9000
  width: 240,
8876
9001
  "aria-label": `${ariaLabel} options`,
8877
- children: /* @__PURE__ */ jsx219("div", { className: styles89.grid, role: "listbox", "aria-label": ariaLabel, children: options.map((name) => /* @__PURE__ */ jsx219(
9002
+ children: /* @__PURE__ */ jsx221("div", { className: styles90.grid, role: "listbox", "aria-label": ariaLabel, children: options.map((name) => /* @__PURE__ */ jsx221(
8878
9003
  "button",
8879
9004
  {
8880
9005
  type: "button",
8881
9006
  role: "option",
8882
9007
  "aria-selected": name === value,
8883
- className: [styles89.option, name === value ? styles89.optionSelected : ""].filter(Boolean).join(" "),
9008
+ className: [styles90.option, name === value ? styles90.optionSelected : ""].filter(Boolean).join(" "),
8884
9009
  onClick: () => {
8885
9010
  onChange(name);
8886
9011
  setOpen(false);
8887
9012
  },
8888
- children: /* @__PURE__ */ jsx219(Icon, { name, size: "md", "aria-hidden": true })
9013
+ children: /* @__PURE__ */ jsx221(Icon, { name, size: "md", "aria-hidden": true })
8889
9014
  },
8890
9015
  name
8891
9016
  )) })
@@ -8894,8 +9019,8 @@ function IconPicker({
8894
9019
  }
8895
9020
 
8896
9021
  // src/components/ColorPicker/ColorPicker.tsx
8897
- import styles90 from "./ColorPicker.module.css";
8898
- import { jsx as jsx220, jsxs as jsxs171 } from "react/jsx-runtime";
9022
+ import styles91 from "./ColorPicker.module.css";
9023
+ import { jsx as jsx222, jsxs as jsxs172 } from "react/jsx-runtime";
8899
9024
  function normalize(hex) {
8900
9025
  return hex.toLowerCase();
8901
9026
  }
@@ -8915,14 +9040,14 @@ function ColorPicker({
8915
9040
  const matchedSwatch = swatches.find((s) => normalize(s.value) === normalizedValue);
8916
9041
  const isCustomActive = normalizedValue !== null && !matchedSwatch;
8917
9042
  const customDialValue = isCustomActive && value ? value : swatches[0]?.value ?? "#000000";
8918
- return /* @__PURE__ */ jsxs171(
9043
+ return /* @__PURE__ */ jsxs172(
8919
9044
  "div",
8920
9045
  {
8921
- className: [styles90.row, className].filter(Boolean).join(" "),
9046
+ className: [styles91.row, className].filter(Boolean).join(" "),
8922
9047
  role: "group",
8923
9048
  "aria-label": ariaLabel,
8924
9049
  children: [
8925
- allowNone && /* @__PURE__ */ jsx220(
9050
+ allowNone && /* @__PURE__ */ jsx222(
8926
9051
  "button",
8927
9052
  {
8928
9053
  type: "button",
@@ -8931,15 +9056,15 @@ function ColorPicker({
8931
9056
  "aria-label": noneLabel,
8932
9057
  title: noneLabel,
8933
9058
  disabled,
8934
- className: [styles90.swatch, styles90.swatchNone, value === null ? styles90.swatchSelected : ""].filter(Boolean).join(" "),
9059
+ className: [styles91.swatch, styles91.swatchNone, value === null ? styles91.swatchSelected : ""].filter(Boolean).join(" "),
8935
9060
  onClick: () => {
8936
9061
  onChange(null);
8937
9062
  onSelectionComplete?.();
8938
9063
  },
8939
- children: /* @__PURE__ */ jsx220(Icon, { name: "x", size: "sm", "aria-hidden": true })
9064
+ children: /* @__PURE__ */ jsx222(Icon, { name: "x", size: "sm", "aria-hidden": true })
8940
9065
  }
8941
9066
  ),
8942
- swatches.map((s) => /* @__PURE__ */ jsx220(
9067
+ swatches.map((s) => /* @__PURE__ */ jsx222(
8943
9068
  "button",
8944
9069
  {
8945
9070
  type: "button",
@@ -8949,8 +9074,8 @@ function ColorPicker({
8949
9074
  title: s.label,
8950
9075
  disabled,
8951
9076
  className: [
8952
- styles90.swatch,
8953
- normalize(s.value) === normalizedValue ? styles90.swatchSelected : ""
9077
+ styles91.swatch,
9078
+ normalize(s.value) === normalizedValue ? styles91.swatchSelected : ""
8954
9079
  ].filter(Boolean).join(" "),
8955
9080
  style: { backgroundColor: s.value },
8956
9081
  onClick: () => {
@@ -8960,19 +9085,19 @@ function ColorPicker({
8960
9085
  },
8961
9086
  s.value
8962
9087
  )),
8963
- /* @__PURE__ */ jsxs171(
9088
+ /* @__PURE__ */ jsxs172(
8964
9089
  "span",
8965
9090
  {
8966
9091
  className: [
8967
- styles90.customWrapper,
8968
- isCustomActive ? styles90.swatchSelected : styles90.customWrapperEmpty
9092
+ styles91.customWrapper,
9093
+ isCustomActive ? styles91.swatchSelected : styles91.customWrapperEmpty
8969
9094
  ].filter(Boolean).join(" "),
8970
9095
  children: [
8971
- /* @__PURE__ */ jsx220(
9096
+ /* @__PURE__ */ jsx222(
8972
9097
  "input",
8973
9098
  {
8974
9099
  type: "color",
8975
- className: styles90.customInput,
9100
+ className: styles91.customInput,
8976
9101
  "aria-label": customLabel,
8977
9102
  title: customLabel,
8978
9103
  disabled,
@@ -8980,7 +9105,7 @@ function ColorPicker({
8980
9105
  onChange: (e) => onChange(e.target.value)
8981
9106
  }
8982
9107
  ),
8983
- !isCustomActive && /* @__PURE__ */ jsx220(Icon, { name: "plus", size: "sm", "aria-hidden": true, className: styles90.customPlusIcon })
9108
+ !isCustomActive && /* @__PURE__ */ jsx222(Icon, { name: "plus", size: "sm", "aria-hidden": true, className: styles91.customPlusIcon })
8984
9109
  ]
8985
9110
  }
8986
9111
  )
@@ -8991,8 +9116,8 @@ function ColorPicker({
8991
9116
 
8992
9117
  // src/components/QuantityStepper/QuantityStepper.tsx
8993
9118
  import { useId as useId12 } from "react";
8994
- import styles91 from "./QuantityStepper.module.css";
8995
- import { jsx as jsx221, jsxs as jsxs172 } from "react/jsx-runtime";
9119
+ import styles92 from "./QuantityStepper.module.css";
9120
+ import { jsx as jsx223, jsxs as jsxs173 } from "react/jsx-runtime";
8996
9121
  function QuantityStepper({
8997
9122
  value,
8998
9123
  onChange,
@@ -9019,24 +9144,24 @@ function QuantityStepper({
9019
9144
  }
9020
9145
  const decrementDisabled = disabled || min !== void 0 && value <= min;
9021
9146
  const incrementDisabled = disabled || max !== void 0 && value >= max;
9022
- return /* @__PURE__ */ jsxs172("div", { className: [styles91.root, className].filter(Boolean).join(" "), children: [
9023
- /* @__PURE__ */ jsx221(
9147
+ return /* @__PURE__ */ jsxs173("div", { className: [styles92.root, className].filter(Boolean).join(" "), children: [
9148
+ /* @__PURE__ */ jsx223(
9024
9149
  "button",
9025
9150
  {
9026
9151
  type: "button",
9027
- className: styles91.button,
9152
+ className: styles92.button,
9028
9153
  onClick: () => onChange(clamp4(value - step)),
9029
9154
  disabled: decrementDisabled,
9030
9155
  "aria-label": `Decrease ${ariaLabel}`,
9031
9156
  children: "\u2212"
9032
9157
  }
9033
9158
  ),
9034
- /* @__PURE__ */ jsx221(
9159
+ /* @__PURE__ */ jsx223(
9035
9160
  "input",
9036
9161
  {
9037
9162
  id: inputId,
9038
9163
  type: "number",
9039
- className: styles91.input,
9164
+ className: styles92.input,
9040
9165
  value,
9041
9166
  onChange: handleInputChange,
9042
9167
  min,
@@ -9046,12 +9171,12 @@ function QuantityStepper({
9046
9171
  "aria-label": ariaLabel
9047
9172
  }
9048
9173
  ),
9049
- unit && /* @__PURE__ */ jsx221("span", { className: styles91.unit, "aria-hidden": true, children: unit }),
9050
- /* @__PURE__ */ jsx221(
9174
+ unit && /* @__PURE__ */ jsx223("span", { className: styles92.unit, "aria-hidden": true, children: unit }),
9175
+ /* @__PURE__ */ jsx223(
9051
9176
  "button",
9052
9177
  {
9053
9178
  type: "button",
9054
- className: styles91.button,
9179
+ className: styles92.button,
9055
9180
  onClick: () => onChange(clamp4(value + step)),
9056
9181
  disabled: incrementDisabled,
9057
9182
  "aria-label": `Increase ${ariaLabel}`,
@@ -9062,8 +9187,8 @@ function QuantityStepper({
9062
9187
  }
9063
9188
 
9064
9189
  // src/components/CheckableListRow/CheckableListRow.tsx
9065
- import styles92 from "./CheckableListRow.module.css";
9066
- import { jsx as jsx222, jsxs as jsxs173 } from "react/jsx-runtime";
9190
+ import styles93 from "./CheckableListRow.module.css";
9191
+ import { jsx as jsx224, jsxs as jsxs174 } from "react/jsx-runtime";
9067
9192
  function CheckableListRow({
9068
9193
  checked,
9069
9194
  onCheckedChange,
@@ -9082,8 +9207,8 @@ function CheckableListRow({
9082
9207
  toggle();
9083
9208
  }
9084
9209
  }
9085
- return /* @__PURE__ */ jsxs173("div", { className: [styles92.row, className].filter(Boolean).join(" "), children: [
9086
- /* @__PURE__ */ jsxs173(
9210
+ return /* @__PURE__ */ jsxs174("div", { className: [styles93.row, className].filter(Boolean).join(" "), children: [
9211
+ /* @__PURE__ */ jsxs174(
9087
9212
  "div",
9088
9213
  {
9089
9214
  role: "checkbox",
@@ -9091,11 +9216,11 @@ function CheckableListRow({
9091
9216
  "aria-label": label,
9092
9217
  "aria-disabled": disabled || void 0,
9093
9218
  tabIndex: disabled ? -1 : 0,
9094
- className: styles92.tapTarget,
9219
+ className: styles93.tapTarget,
9095
9220
  onClick: toggle,
9096
9221
  onKeyDown: handleKeyDown,
9097
9222
  children: [
9098
- /* @__PURE__ */ jsx222("span", { className: [styles92.box, checked ? styles92.checked : ""].filter(Boolean).join(" "), children: checked && /* @__PURE__ */ jsx222("svg", { className: styles92.tick, viewBox: "0 0 10 8", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ jsx222(
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(
9099
9224
  "path",
9100
9225
  {
9101
9226
  d: "M1 4l3 3 5-6",
@@ -9105,18 +9230,18 @@ function CheckableListRow({
9105
9230
  strokeLinejoin: "round"
9106
9231
  }
9107
9232
  ) }) }),
9108
- icon && /* @__PURE__ */ jsx222("span", { className: styles92.icon, children: icon }),
9109
- /* @__PURE__ */ jsx222("span", { className: [styles92.label, checked ? styles92.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 })
9110
9235
  ]
9111
9236
  }
9112
9237
  ),
9113
- trailing && /* @__PURE__ */ jsx222("span", { className: styles92.trailing, children: trailing })
9238
+ trailing && /* @__PURE__ */ jsx224("span", { className: styles93.trailing, children: trailing })
9114
9239
  ] });
9115
9240
  }
9116
9241
 
9117
9242
  // src/components/CurrencyInput/CurrencyInput.tsx
9118
- import { useState as useState33 } from "react";
9119
- import { jsx as jsx223 } from "react/jsx-runtime";
9243
+ import { useState as useState34 } from "react";
9244
+ import { jsx as jsx225 } from "react/jsx-runtime";
9120
9245
  function minorToText(minor, decimals) {
9121
9246
  return (minor / 10 ** decimals).toFixed(decimals);
9122
9247
  }
@@ -9133,13 +9258,13 @@ function CurrencyInput({
9133
9258
  decimals = 2,
9134
9259
  ...rest
9135
9260
  }) {
9136
- const [text, setText] = useState33(
9261
+ const [text, setText] = useState34(
9137
9262
  () => valueCents != null ? minorToText(valueCents, decimals) : ""
9138
9263
  );
9139
9264
  if (textToMinor(text, decimals) !== valueCents) {
9140
9265
  setText(valueCents != null ? minorToText(valueCents, decimals) : "");
9141
9266
  }
9142
- return /* @__PURE__ */ jsx223(
9267
+ return /* @__PURE__ */ jsx225(
9143
9268
  Input,
9144
9269
  {
9145
9270
  ...rest,
@@ -9156,19 +9281,19 @@ function CurrencyInput({
9156
9281
  }
9157
9282
 
9158
9283
  // src/components/BalanceChip/BalanceChip.tsx
9159
- import styles93 from "./BalanceChip.module.css";
9160
- import { jsx as jsx224 } from "react/jsx-runtime";
9284
+ import styles94 from "./BalanceChip.module.css";
9285
+ import { jsx as jsx226 } from "react/jsx-runtime";
9161
9286
  function formatAbsCents(cents) {
9162
9287
  return (Math.abs(cents) / 100).toFixed(2);
9163
9288
  }
9164
9289
  function BalanceChip({ amountCents, currency, className }) {
9165
9290
  const direction = amountCents > 0 ? "owed" : amountCents < 0 ? "owes" : "settled";
9166
9291
  const text = direction === "settled" ? "Settled up" : `${direction === "owed" ? "Owed" : "Owes"} ${currency} ${formatAbsCents(amountCents)}`;
9167
- return /* @__PURE__ */ jsx224("span", { className: [styles93.chip, styles93[direction], className].filter(Boolean).join(" "), children: text });
9292
+ return /* @__PURE__ */ jsx226("span", { className: [styles94.chip, styles94[direction], className].filter(Boolean).join(" "), children: text });
9168
9293
  }
9169
9294
 
9170
9295
  // src/components/SplitMethodSelector/SplitMethodSelector.tsx
9171
- import { jsx as jsx225 } from "react/jsx-runtime";
9296
+ import { jsx as jsx227 } from "react/jsx-runtime";
9172
9297
  var OPTIONS = [
9173
9298
  { label: "Equal", value: "equal" },
9174
9299
  { label: "Amount", value: "amount" },
@@ -9181,7 +9306,7 @@ function SplitMethodSelector({
9181
9306
  size = "sm",
9182
9307
  "aria-label": ariaLabel = "Split method"
9183
9308
  }) {
9184
- return /* @__PURE__ */ jsx225(
9309
+ return /* @__PURE__ */ jsx227(
9185
9310
  SegmentedControl,
9186
9311
  {
9187
9312
  value,
@@ -9194,8 +9319,8 @@ function SplitMethodSelector({
9194
9319
  }
9195
9320
 
9196
9321
  // src/components/MemberMultiSelect/MemberMultiSelect.tsx
9197
- import styles94 from "./MemberMultiSelect.module.css";
9198
- import { jsx as jsx226, jsxs as jsxs174 } from "react/jsx-runtime";
9322
+ import styles95 from "./MemberMultiSelect.module.css";
9323
+ import { jsx as jsx228, jsxs as jsxs175 } from "react/jsx-runtime";
9199
9324
  function MemberMultiSelect({
9200
9325
  options,
9201
9326
  selectedIds,
@@ -9205,12 +9330,12 @@ function MemberMultiSelect({
9205
9330
  hint,
9206
9331
  className
9207
9332
  }) {
9208
- return /* @__PURE__ */ jsxs174("div", { className: [styles94.group, className].filter(Boolean).join(" "), children: [
9209
- label && /* @__PURE__ */ jsx226("span", { className: styles94.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 }),
9210
9335
  options.map((option) => {
9211
9336
  const checked = selectedIds.has(option.id);
9212
- return /* @__PURE__ */ jsxs174("div", { className: styles94.row, children: [
9213
- /* @__PURE__ */ jsx226(
9337
+ return /* @__PURE__ */ jsxs175("div", { className: styles95.row, children: [
9338
+ /* @__PURE__ */ jsx228(
9214
9339
  Checkbox,
9215
9340
  {
9216
9341
  checked,
@@ -9218,16 +9343,16 @@ function MemberMultiSelect({
9218
9343
  label: option.label
9219
9344
  }
9220
9345
  ),
9221
- checked && renderTrailing && /* @__PURE__ */ jsx226("span", { className: styles94.trailing, children: renderTrailing(option.id) })
9346
+ checked && renderTrailing && /* @__PURE__ */ jsx228("span", { className: styles95.trailing, children: renderTrailing(option.id) })
9222
9347
  ] }, option.id);
9223
9348
  }),
9224
- hint && /* @__PURE__ */ jsx226("span", { className: styles94.hint, children: hint })
9349
+ hint && /* @__PURE__ */ jsx228("span", { className: styles95.hint, children: hint })
9225
9350
  ] });
9226
9351
  }
9227
9352
 
9228
9353
  // src/components/SwipableMobileCarouselDots/SwipableMobileCarouselDots.tsx
9229
- import styles95 from "./SwipableMobileCarouselDots.module.css";
9230
- import { jsx as jsx227 } from "react/jsx-runtime";
9354
+ import styles96 from "./SwipableMobileCarouselDots.module.css";
9355
+ import { jsx as jsx229 } from "react/jsx-runtime";
9231
9356
  function SwipableMobileCarouselDots({
9232
9357
  count,
9233
9358
  activeIndex,
@@ -9237,23 +9362,23 @@ function SwipableMobileCarouselDots({
9237
9362
  density = "default",
9238
9363
  className
9239
9364
  }) {
9240
- return /* @__PURE__ */ jsx227(
9365
+ return /* @__PURE__ */ jsx229(
9241
9366
  "div",
9242
9367
  {
9243
9368
  role: "tablist",
9244
9369
  "aria-label": ariaLabel,
9245
- className: [styles95.dots, density === "compact" ? styles95.dotsCompact : "", className].filter(Boolean).join(" "),
9370
+ className: [styles96.dots, density === "compact" ? styles96.dotsCompact : "", className].filter(Boolean).join(" "),
9246
9371
  children: Array.from({ length: count }, (_, i) => {
9247
9372
  const active = i === activeIndex;
9248
9373
  const label = labels?.[i] ?? `Slide ${i + 1} of ${count}`;
9249
- return /* @__PURE__ */ jsx227(
9374
+ return /* @__PURE__ */ jsx229(
9250
9375
  "button",
9251
9376
  {
9252
9377
  type: "button",
9253
9378
  role: "tab",
9254
9379
  "aria-selected": active,
9255
9380
  "aria-label": label,
9256
- className: [styles95.dot, active ? styles95.dotActive : ""].filter(Boolean).join(" "),
9381
+ className: [styles96.dot, active ? styles96.dotActive : ""].filter(Boolean).join(" "),
9257
9382
  onClick: () => onJump(i)
9258
9383
  },
9259
9384
  i
@@ -9281,16 +9406,16 @@ import { createContext as createContext3 } from "react";
9281
9406
  var CarouselSlideMountContext = createContext3(null);
9282
9407
 
9283
9408
  // src/components/SwipableMobileCarousel/SwipableMobileCarouselSlide.tsx
9284
- import { Fragment as Fragment21, jsx as jsx228 } from "react/jsx-runtime";
9409
+ import { Fragment as Fragment21, jsx as jsx230 } from "react/jsx-runtime";
9285
9410
  function SwipableMobileCarouselSlide({ children }) {
9286
9411
  const ctx = useContext3(CarouselSlideMountContext);
9287
9412
  if (!ctx?.isMounted) return null;
9288
- return /* @__PURE__ */ jsx228(Fragment21, { children });
9413
+ return /* @__PURE__ */ jsx230(Fragment21, { children });
9289
9414
  }
9290
9415
 
9291
9416
  // src/components/SwipableMobileCarousel/SwipableMobileCarousel.tsx
9292
- import styles96 from "./SwipableMobileCarousel.module.css";
9293
- import { jsx as jsx229, jsxs as jsxs175 } from "react/jsx-runtime";
9417
+ import styles97 from "./SwipableMobileCarousel.module.css";
9418
+ import { jsx as jsx231, jsxs as jsxs176 } from "react/jsx-runtime";
9294
9419
  function describeChild(child) {
9295
9420
  if (isValidElement2(child)) {
9296
9421
  const type = child.type;
@@ -9381,7 +9506,7 @@ function SwipableMobileCarousel({
9381
9506
  onSettle(index);
9382
9507
  }
9383
9508
  const labels = slides.map((s) => s.label);
9384
- const indicator = renderIndicator === null ? null : renderIndicator ? renderIndicator({ count, activeIndex: clampedActiveIndex, labels, onJump: handleJump }) : /* @__PURE__ */ jsx229(
9509
+ const indicator = renderIndicator === null ? null : renderIndicator ? renderIndicator({ count, activeIndex: clampedActiveIndex, labels, onJump: handleJump }) : /* @__PURE__ */ jsx231(
9385
9510
  SwipableMobileCarouselDots,
9386
9511
  {
9387
9512
  count,
@@ -9391,8 +9516,8 @@ function SwipableMobileCarousel({
9391
9516
  onJump: handleJump
9392
9517
  }
9393
9518
  );
9394
- return /* @__PURE__ */ jsxs175("div", { className: [styles96.wrap, className].filter(Boolean).join(" "), children: [
9395
- /* @__PURE__ */ jsx229("div", { className: styles96.scroller, ref: scrollRef, role: "region", "aria-label": ariaLabel, children: slides.map((slide, i) => /* @__PURE__ */ jsx229("div", { className: styles96.slide, children: /* @__PURE__ */ jsx229(
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(
9396
9521
  CarouselSlideMountContext.Provider,
9397
9522
  {
9398
9523
  value: {
@@ -9410,61 +9535,61 @@ function SwipableMobileCarousel({
9410
9535
  children: slide.element
9411
9536
  }
9412
9537
  ) }, slide.key)) }),
9413
- indicator && /* @__PURE__ */ jsx229("div", { className: styles96.indicatorSlot, children: indicator })
9538
+ indicator && /* @__PURE__ */ jsx231("div", { className: styles97.indicatorSlot, children: indicator })
9414
9539
  ] });
9415
9540
  }
9416
9541
 
9417
9542
  // src/components/SwipableMobileCarousel/SwipableMobileCarouselSlideHeader.tsx
9418
- import styles97 from "./SwipableMobileCarouselSlideParts.module.css";
9419
- import { jsx as jsx230 } from "react/jsx-runtime";
9543
+ import styles98 from "./SwipableMobileCarouselSlideParts.module.css";
9544
+ import { jsx as jsx232 } from "react/jsx-runtime";
9420
9545
  function SwipableMobileCarouselSlideHeader({
9421
9546
  children,
9422
9547
  className
9423
9548
  }) {
9424
- return /* @__PURE__ */ jsx230("div", { className: [styles97.header, className].filter(Boolean).join(" "), children });
9549
+ return /* @__PURE__ */ jsx232("div", { className: [styles98.header, className].filter(Boolean).join(" "), children });
9425
9550
  }
9426
9551
 
9427
9552
  // src/components/SwipableMobileCarousel/SwipableMobileCarouselSlideBody.tsx
9428
- import styles98 from "./SwipableMobileCarouselSlideParts.module.css";
9429
- import { jsx as jsx231 } from "react/jsx-runtime";
9430
- var defaultLoadingFallback = /* @__PURE__ */ jsx231("div", { className: styles98.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" });
9431
9556
  function SwipableMobileCarouselSlideBody({
9432
9557
  children,
9433
9558
  loading = false,
9434
9559
  loadingFallback,
9435
9560
  className
9436
9561
  }) {
9437
- return /* @__PURE__ */ jsx231("div", { className: [styles98.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 });
9438
9563
  }
9439
9564
 
9440
9565
  // src/components/SwipableMobileCarousel/SwipableMobileCarouselSlideFooter.tsx
9441
- import styles99 from "./SwipableMobileCarouselSlideParts.module.css";
9442
- import { jsx as jsx232 } from "react/jsx-runtime";
9566
+ import styles100 from "./SwipableMobileCarouselSlideParts.module.css";
9567
+ import { jsx as jsx234 } from "react/jsx-runtime";
9443
9568
  function SwipableMobileCarouselSlideFooter({
9444
9569
  children,
9445
9570
  className
9446
9571
  }) {
9447
- return /* @__PURE__ */ jsx232("div", { className: [styles99.footer, className].filter(Boolean).join(" "), children });
9572
+ return /* @__PURE__ */ jsx234("div", { className: [styles100.footer, className].filter(Boolean).join(" "), children });
9448
9573
  }
9449
9574
 
9450
9575
  // src/components/SwipeStack/SwipeStack.tsx
9451
- import { Children as Children3, isValidElement as isValidElement3, useEffect as useEffect19, useRef as useRef31, useState as useState34 } from "react";
9576
+ import { Children as Children3, isValidElement as isValidElement3, useEffect as useEffect19, useRef as useRef31, useState as useState35 } from "react";
9452
9577
 
9453
9578
  // src/components/SwipeStack/SwipeStackCard.tsx
9454
- import { Fragment as Fragment22, jsx as jsx233 } from "react/jsx-runtime";
9579
+ import { Fragment as Fragment22, jsx as jsx235 } from "react/jsx-runtime";
9455
9580
  function SwipeStackCard({ children }) {
9456
- return /* @__PURE__ */ jsx233(Fragment22, { children });
9581
+ return /* @__PURE__ */ jsx235(Fragment22, { children });
9457
9582
  }
9458
9583
 
9459
9584
  // src/components/SwipeStack/SwipeStack.tsx
9460
- import styles100 from "./SwipeStack.module.css";
9461
- import { jsx as jsx234, jsxs as jsxs176 } from "react/jsx-runtime";
9585
+ import styles101 from "./SwipeStack.module.css";
9586
+ import { jsx as jsx236, jsxs as jsxs177 } from "react/jsx-runtime";
9462
9587
  var DIRECTION_KEYS = ["up", "down", "left", "right"];
9463
9588
  var STAMP_CLASS = {
9464
- up: styles100.stampUp,
9465
- down: styles100.stampDown,
9466
- left: styles100.stampLeft,
9467
- right: styles100.stampRight
9589
+ up: styles101.stampUp,
9590
+ down: styles101.stampDown,
9591
+ left: styles101.stampLeft,
9592
+ right: styles101.stampRight
9468
9593
  };
9469
9594
  function describeChild2(child) {
9470
9595
  if (isValidElement3(child)) {
@@ -9505,8 +9630,8 @@ function SwipeStack({
9505
9630
  children
9506
9631
  }) {
9507
9632
  const cards = resolveCards(children);
9508
- const [dismissed, setDismissed] = useState34(() => /* @__PURE__ */ new Set());
9509
- const [exiting, setExiting] = useState34(null);
9633
+ const [dismissed, setDismissed] = useState35(() => /* @__PURE__ */ new Set());
9634
+ const [exiting, setExiting] = useState35(null);
9510
9635
  const exitTimerRef = useRef31(null);
9511
9636
  useEffect19(
9512
9637
  () => () => {
@@ -9535,33 +9660,33 @@ function SwipeStack({
9535
9660
  onSwipe(direction, committed.key);
9536
9661
  }
9537
9662
  });
9538
- return /* @__PURE__ */ jsxs176("div", { className: [styles100.wrap, className].filter(Boolean).join(" "), children: [
9539
- /* @__PURE__ */ jsxs176("div", { className: styles100.stack, role: "region", "aria-label": ariaLabel, children: [
9540
- peek && /* @__PURE__ */ jsx234("div", { className: styles100.peek, "aria-hidden": "true", children: peek.element }, peek.key),
9541
- current && /* @__PURE__ */ jsxs176("div", { className: styles100.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: [
9542
9667
  liveDirections.map((d) => {
9543
9668
  const meta = directions[d];
9544
9669
  if (!meta) return null;
9545
- return /* @__PURE__ */ jsxs176(
9670
+ return /* @__PURE__ */ jsxs177(
9546
9671
  "div",
9547
9672
  {
9548
- className: [styles100.stamp, STAMP_CLASS[d]].join(" "),
9673
+ className: [styles101.stamp, STAMP_CLASS[d]].join(" "),
9549
9674
  "aria-hidden": "true",
9550
9675
  children: [
9551
- meta.icon && /* @__PURE__ */ jsx234(Icon, { name: meta.icon, size: "sm", "aria-hidden": true }),
9552
- /* @__PURE__ */ jsx234("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 })
9553
9678
  ]
9554
9679
  },
9555
9680
  d
9556
9681
  );
9557
9682
  }),
9558
- /* @__PURE__ */ jsx234("div", { className: styles100.card, ref: cardRef, style: { touchAction }, ...handlers, children: current.element })
9683
+ /* @__PURE__ */ jsx236("div", { className: styles101.card, ref: cardRef, style: { touchAction }, ...handlers, children: current.element })
9559
9684
  ] }, current.key)
9560
9685
  ] }),
9561
- liveDirections.length > 0 && /* @__PURE__ */ jsx234("div", { className: styles100.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) => {
9562
9687
  const meta = directions[d];
9563
9688
  if (!meta) return null;
9564
- return /* @__PURE__ */ jsxs176(
9689
+ return /* @__PURE__ */ jsxs177(
9565
9690
  Button,
9566
9691
  {
9567
9692
  variant: "secondary",
@@ -9569,7 +9694,7 @@ function SwipeStack({
9569
9694
  disabled: !current,
9570
9695
  onClick: () => triggerCommit(d),
9571
9696
  children: [
9572
- meta.icon && /* @__PURE__ */ jsx234(Icon, { name: meta.icon, size: "sm", "aria-hidden": true }),
9697
+ meta.icon && /* @__PURE__ */ jsx236(Icon, { name: meta.icon, size: "sm", "aria-hidden": true }),
9573
9698
  meta.label
9574
9699
  ]
9575
9700
  },
@@ -9581,8 +9706,8 @@ function SwipeStack({
9581
9706
 
9582
9707
  // src/components/ThreeColumnLayout/ThreeColumnLayout.tsx
9583
9708
  import { Children as Children4 } from "react";
9584
- import styles101 from "./ThreeColumnLayout.module.css";
9585
- import { jsx as jsx235, jsxs as jsxs177 } from "react/jsx-runtime";
9709
+ import styles102 from "./ThreeColumnLayout.module.css";
9710
+ import { jsx as jsx237, jsxs as jsxs178 } from "react/jsx-runtime";
9586
9711
  function ThreeColumnLayout({
9587
9712
  children,
9588
9713
  sidebarWidth = 280,
@@ -9597,24 +9722,24 @@ function ThreeColumnLayout({
9597
9722
  );
9598
9723
  }
9599
9724
  const [sidebar, main, detail] = items;
9600
- return /* @__PURE__ */ jsxs177("div", { className: [styles101.shell, className].filter(Boolean).join(" "), children: [
9601
- /* @__PURE__ */ jsx235(
9725
+ return /* @__PURE__ */ jsxs178("div", { className: [styles102.shell, className].filter(Boolean).join(" "), children: [
9726
+ /* @__PURE__ */ jsx237(
9602
9727
  "div",
9603
9728
  {
9604
- className: [styles101.sidebar, sidebarHidden && styles101.sidebarHidden].filter(Boolean).join(" "),
9729
+ className: [styles102.sidebar, sidebarHidden && styles102.sidebarHidden].filter(Boolean).join(" "),
9605
9730
  style: sidebarHidden ? void 0 : { width: sidebarWidth },
9606
9731
  hidden: sidebarHidden,
9607
9732
  children: sidebar
9608
9733
  }
9609
9734
  ),
9610
- /* @__PURE__ */ jsx235("div", { className: styles101.main, children: main }),
9611
- detail && /* @__PURE__ */ jsx235("div", { className: styles101.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 })
9612
9737
  ] });
9613
9738
  }
9614
9739
 
9615
9740
  // src/components/HeaderFooterLayout/HeaderFooterLayout.tsx
9616
- import styles102 from "./HeaderFooterLayout.module.css";
9617
- import { jsx as jsx236, jsxs as jsxs178 } from "react/jsx-runtime";
9741
+ import styles103 from "./HeaderFooterLayout.module.css";
9742
+ import { jsx as jsx238, jsxs as jsxs179 } from "react/jsx-runtime";
9618
9743
  function HeaderFooterLayout({
9619
9744
  children,
9620
9745
  header,
@@ -9623,17 +9748,17 @@ function HeaderFooterLayout({
9623
9748
  footerHeight = 60,
9624
9749
  className
9625
9750
  }) {
9626
- return /* @__PURE__ */ jsxs178("div", { className: [styles102.shell, className].filter(Boolean).join(" "), children: [
9627
- header && /* @__PURE__ */ jsx236("div", { className: styles102.header, style: { height: headerHeight }, children: header }),
9628
- /* @__PURE__ */ jsx236("div", { className: styles102.main, children }),
9629
- footer && /* @__PURE__ */ jsx236("div", { className: styles102.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 })
9630
9755
  ] });
9631
9756
  }
9632
9757
 
9633
9758
  // src/components/RootLayout/RootLayout.tsx
9634
9759
  import { Children as Children5 } from "react";
9635
- import styles103 from "./RootLayout.module.css";
9636
- import { Fragment as Fragment23, jsx as jsx237, jsxs as jsxs179 } 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";
9637
9762
  var EXPECTED_CHILD_COUNT = {
9638
9763
  plain: 1,
9639
9764
  sidebar: 2,
@@ -9643,17 +9768,17 @@ var EXPECTED_CHILD_COUNT = {
9643
9768
  function RootLayoutWeb({ variant, items, sidebarWidth, headerHeight }) {
9644
9769
  if (variant === "sidebar") {
9645
9770
  const [sidebar, main2] = items;
9646
- return /* @__PURE__ */ jsxs179(ThreeColumnLayout, { sidebarWidth, children: [
9771
+ return /* @__PURE__ */ jsxs180(ThreeColumnLayout, { sidebarWidth, children: [
9647
9772
  sidebar,
9648
9773
  main2
9649
9774
  ] });
9650
9775
  }
9651
9776
  if (variant === "header") {
9652
9777
  const [header, main2] = items;
9653
- return /* @__PURE__ */ jsx237(HeaderFooterLayout, { header, headerHeight, children: main2 });
9778
+ return /* @__PURE__ */ jsx239(HeaderFooterLayout, { header, headerHeight, children: main2 });
9654
9779
  }
9655
9780
  const main = variant === "shell" ? items[1] : items[0];
9656
- return /* @__PURE__ */ jsx237(Fragment23, { children: main });
9781
+ return /* @__PURE__ */ jsx239(Fragment23, { children: main });
9657
9782
  }
9658
9783
  function RootLayoutMobile({
9659
9784
  variant,
@@ -9663,11 +9788,11 @@ function RootLayoutMobile({
9663
9788
  }) {
9664
9789
  if (variant === "header") {
9665
9790
  const [header, main2] = items;
9666
- return /* @__PURE__ */ jsx237(HeaderFooterLayout, { header, headerHeight: mobileHeaderHeight, children: main2 });
9791
+ return /* @__PURE__ */ jsx239(HeaderFooterLayout, { header, headerHeight: mobileHeaderHeight, children: main2 });
9667
9792
  }
9668
9793
  if (variant === "shell") {
9669
9794
  const [header, main2, footer] = items;
9670
- return /* @__PURE__ */ jsx237(
9795
+ return /* @__PURE__ */ jsx239(
9671
9796
  HeaderFooterLayout,
9672
9797
  {
9673
9798
  header,
@@ -9679,7 +9804,7 @@ function RootLayoutMobile({
9679
9804
  );
9680
9805
  }
9681
9806
  const main = variant === "sidebar" ? items[1] : items[0];
9682
- return /* @__PURE__ */ jsx237(Fragment23, { children: main });
9807
+ return /* @__PURE__ */ jsx239(Fragment23, { children: main });
9683
9808
  }
9684
9809
  function RootLayout({
9685
9810
  variant = "plain",
@@ -9696,10 +9821,10 @@ function RootLayout({
9696
9821
  `[RootLayout] variant="${variant}" expects ${EXPECTED_CHILD_COUNT[variant]} children; received ${items.length}.`
9697
9822
  );
9698
9823
  }
9699
- return /* @__PURE__ */ jsx237("div", { className: [styles103.root, className].filter(Boolean).join(" "), children: /* @__PURE__ */ jsx237(
9824
+ return /* @__PURE__ */ jsx239("div", { className: [styles104.root, className].filter(Boolean).join(" "), children: /* @__PURE__ */ jsx239(
9700
9825
  ResponsiveSurface,
9701
9826
  {
9702
- web: /* @__PURE__ */ jsx237(
9827
+ web: /* @__PURE__ */ jsx239(
9703
9828
  RootLayoutWeb,
9704
9829
  {
9705
9830
  variant,
@@ -9708,7 +9833,7 @@ function RootLayout({
9708
9833
  headerHeight
9709
9834
  }
9710
9835
  ),
9711
- mobile: /* @__PURE__ */ jsx237(
9836
+ mobile: /* @__PURE__ */ jsx239(
9712
9837
  RootLayoutMobile,
9713
9838
  {
9714
9839
  variant,
@@ -9722,25 +9847,25 @@ function RootLayout({
9722
9847
  }
9723
9848
 
9724
9849
  // src/components/PageLayout/PageLayout.tsx
9725
- import styles104 from "./PageLayout.module.css";
9726
- import { jsx as jsx238, jsxs as jsxs180 } from "react/jsx-runtime";
9850
+ import styles105 from "./PageLayout.module.css";
9851
+ import { jsx as jsx240, jsxs as jsxs181 } from "react/jsx-runtime";
9727
9852
  var paddingClass3 = {
9728
- none: styles104.padNone,
9729
- sm: styles104.padSm,
9730
- md: styles104.padMd,
9731
- lg: styles104.padLg
9853
+ none: styles105.padNone,
9854
+ sm: styles105.padSm,
9855
+ md: styles105.padMd,
9856
+ lg: styles105.padLg
9732
9857
  };
9733
9858
  function PageLayout({ header, padding = "none", children, className }) {
9734
- return /* @__PURE__ */ jsxs180("div", { className: [styles104.root, className].filter(Boolean).join(" "), children: [
9735
- header && /* @__PURE__ */ jsx238("div", { className: styles104.header, children: header }),
9736
- /* @__PURE__ */ jsx238("div", { className: [styles104.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 })
9737
9862
  ] });
9738
9863
  }
9739
9864
 
9740
9865
  // src/components/NavList/NavList.tsx
9741
9866
  import { Fragment as Fragment24 } from "react";
9742
- import styles105 from "./NavList.module.css";
9743
- import { Fragment as Fragment25, jsx as jsx239, jsxs as jsxs181 } from "react/jsx-runtime";
9867
+ import styles106 from "./NavList.module.css";
9868
+ import { Fragment as Fragment25, jsx as jsx241, jsxs as jsxs182 } from "react/jsx-runtime";
9744
9869
  function NavList({
9745
9870
  groups,
9746
9871
  variant,
@@ -9749,28 +9874,28 @@ function NavList({
9749
9874
  className,
9750
9875
  renderLink
9751
9876
  }) {
9752
- return /* @__PURE__ */ jsx239(
9877
+ return /* @__PURE__ */ jsx241(
9753
9878
  "nav",
9754
9879
  {
9755
- className: [styles105.nav, styles105[variant], density === "compact" && styles105.compact, className].filter(Boolean).join(" "),
9880
+ className: [styles106.nav, styles106[variant], density === "compact" && styles106.compact, className].filter(Boolean).join(" "),
9756
9881
  "aria-label": ariaLabel,
9757
- children: groups.map((group) => /* @__PURE__ */ jsxs181("div", { className: styles105.group, children: [
9758
- group.label && /* @__PURE__ */ jsx239("div", { className: styles105.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 }),
9759
9884
  group.items.map((item) => {
9760
9885
  const isActive = variant === "static" && !!item.active;
9761
- const rowContent = /* @__PURE__ */ jsxs181(Fragment25, { children: [
9762
- /* @__PURE__ */ jsx239(Icon, { name: item.icon, size: "sm", "aria-hidden": true, className: styles105.icon }),
9763
- /* @__PURE__ */ jsx239("span", { className: styles105.label, children: item.label }),
9764
- item.badge && /* @__PURE__ */ jsx239("span", { className: styles105.badge, children: item.badge }),
9765
- variant === "drilldown" && /* @__PURE__ */ jsx239(Icon, { name: "chevron-right", size: "sm", "aria-hidden": true, className: styles105.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 })
9766
9891
  ] });
9767
9892
  const linkProps = {
9768
9893
  href: item.href,
9769
- className: [styles105.row, isActive && styles105.rowActive].filter(Boolean).join(" "),
9894
+ className: [styles106.row, isActive && styles106.rowActive].filter(Boolean).join(" "),
9770
9895
  "aria-current": isActive ? "page" : void 0,
9771
9896
  children: rowContent
9772
9897
  };
9773
- return /* @__PURE__ */ jsx239(Fragment24, { children: renderLink ? renderLink(item, linkProps) : /* @__PURE__ */ jsx239(
9898
+ return /* @__PURE__ */ jsx241(Fragment24, { children: renderLink ? renderLink(item, linkProps) : /* @__PURE__ */ jsx241(
9774
9899
  "a",
9775
9900
  {
9776
9901
  href: linkProps.href,
@@ -9828,8 +9953,8 @@ var THEME_PRESETS = {
9828
9953
  };
9829
9954
 
9830
9955
  // src/components/CopyButton/CopyButton.tsx
9831
- import { useState as useState35 } from "react";
9832
- import { jsx as jsx240 } from "react/jsx-runtime";
9956
+ import { useState as useState36 } from "react";
9957
+ import { jsx as jsx242 } from "react/jsx-runtime";
9833
9958
  function CopyButton({
9834
9959
  text,
9835
9960
  label,
@@ -9838,7 +9963,7 @@ function CopyButton({
9838
9963
  variant = "secondary",
9839
9964
  size = "sm"
9840
9965
  }) {
9841
- const [state, setState] = useState35("idle");
9966
+ const [state, setState] = useState36("idle");
9842
9967
  async function copy() {
9843
9968
  try {
9844
9969
  await navigator.clipboard.writeText(text);
@@ -9847,12 +9972,12 @@ function CopyButton({
9847
9972
  setState("failed");
9848
9973
  }
9849
9974
  }
9850
- return /* @__PURE__ */ jsx240(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 });
9851
9976
  }
9852
9977
 
9853
9978
  // src/components/QrCode/QrCode.tsx
9854
- import styles106 from "./QrCode.module.css";
9855
- import { jsx as jsx241 } from "react/jsx-runtime";
9979
+ import styles107 from "./QrCode.module.css";
9980
+ import { jsx as jsx243 } from "react/jsx-runtime";
9856
9981
  var QUIET_ZONE = 2;
9857
9982
  function QrCode({ modules, label }) {
9858
9983
  const size = modules.length + QUIET_ZONE * 2;
@@ -9862,7 +9987,7 @@ function QrCode({ modules, label }) {
9862
9987
  if (dark) path += `M${x + QUIET_ZONE} ${y + QUIET_ZONE}h1v1h-1z`;
9863
9988
  });
9864
9989
  });
9865
- return /* @__PURE__ */ jsx241("div", { className: styles106.qr, children: /* @__PURE__ */ jsx241(
9990
+ return /* @__PURE__ */ jsx243("div", { className: styles107.qr, children: /* @__PURE__ */ jsx243(
9866
9991
  "svg",
9867
9992
  {
9868
9993
  viewBox: `0 0 ${size} ${size}`,
@@ -9870,7 +9995,7 @@ function QrCode({ modules, label }) {
9870
9995
  "aria-label": label,
9871
9996
  shapeRendering: "crispEdges",
9872
9997
  xmlns: "http://www.w3.org/2000/svg",
9873
- children: /* @__PURE__ */ jsx241("path", { d: path })
9998
+ children: /* @__PURE__ */ jsx243("path", { d: path })
9874
9999
  }
9875
10000
  ) });
9876
10001
  }
@@ -9940,6 +10065,7 @@ export {
9940
10065
  Kbd,
9941
10066
  Label,
9942
10067
  LegalLinks,
10068
+ LockedState,
9943
10069
  MOBILE_BREAKPOINT_PX,
9944
10070
  Markdown,
9945
10071
  Marker,
@@ -9972,6 +10098,7 @@ export {
9972
10098
  QuantityStepper,
9973
10099
  RadioGroup,
9974
10100
  RangeCalendar,
10101
+ RecoveryKit,
9975
10102
  ResizableHandle,
9976
10103
  ResizablePanel,
9977
10104
  ResizablePanelGroup,
@@ -10015,6 +10142,8 @@ export {
10015
10142
  Tooltip,
10016
10143
  Typography,
10017
10144
  UserMenu,
10145
+ recoveryKitFileName,
10146
+ recoveryKitFileText,
10018
10147
  shouldHandleDndEvent,
10019
10148
  useCarouselRouteSync,
10020
10149
  useCommitOnEnterOrBlur,