@dinofront/design_system 1.5.0 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Children as e, Fragment as t, cloneElement as n, createContext as r, createElement as i, forwardRef as a, isValidElement as o, useCallback as s, useContext as c, useEffect as l, useId as u, useLayoutEffect as d, useMemo as f, useRef as p, useState as m } from "react";
2
- import { AlertCircle as h, AlertTriangle as g, ArrowDown as _, ArrowUp as v, Calendar as y, Check as b, CheckCircle2 as x, ChevronDown as S, ChevronLeft as C, ChevronRight as w, ChevronsUpDown as T, CircleCheck as E, CircleX as D, Columns3 as O, Construction as k, Copy as ee, Download as A, EyeOff as j, File as M, GripVertical as N, Info as P, Loader2 as F, Menu as I, Minus as L, Moon as R, MoreHorizontal as z, MoreVertical as B, Paperclip as V, Pencil as H, Pin as U, PinOff as W, Plus as te, RefreshCw as ne, Search as re, SearchX as ie, Sparkles as G, Sun as K, Trash2 as q, UploadCloud as ae, User as J, Users as oe, X as se, XCircle as ce } from "lucide-react";
2
+ import { AlertCircle as h, AlertTriangle as g, ArrowDown as _, ArrowUp as v, Calendar as y, Check as b, CheckCircle2 as x, ChevronDown as S, ChevronLeft as C, ChevronRight as w, ChevronsUpDown as T, CircleCheck as E, CircleX as D, Columns3 as O, Construction as k, Copy as ee, Download as A, EyeOff as j, File as M, GripVertical as N, Info as P, Loader2 as te, Menu as F, Minus as I, Moon as L, MoreHorizontal as R, MoreVertical as z, Paperclip as B, Pencil as V, Pin as H, PinOff as U, Plus as ne, RefreshCw as W, Search as re, SearchX as G, Sparkles as K, Sun as ie, Trash2 as q, UploadCloud as ae, User as oe, Users as J, X as se, XCircle as ce } from "lucide-react";
3
3
  import { clsx as le } from "clsx";
4
4
  import { extendTailwindMerge as ue } from "tailwind-merge";
5
5
  import { Fragment as Y, jsx as X, jsxs as Z } from "react/jsx-runtime";
@@ -190,7 +190,7 @@ var Xe = a(function({ type: e = "single", defaultValue: t, value: n, onValueChan
190
190
  },
191
191
  className: Q("inline-flex items-center justify-center font-medium transition-colors outline-none", a ? $e[t] : Qe[t], et[e], s && tt[e], o && "w-full", l),
192
192
  ...p,
193
- children: i ? /* @__PURE__ */ X(F, {
193
+ children: i ? /* @__PURE__ */ X(te, {
194
194
  className: "h-4 w-4 animate-spin",
195
195
  "aria-hidden": !0
196
196
  }) : /* @__PURE__ */ Z(Y, { children: [
@@ -265,9 +265,9 @@ var st = a(function({ accept: e, multiple: t = !1, maxSizeMB: n, hint: r, onFile
265
265
  r.push(i), u.push(i), --f;
266
266
  }
267
267
  r.length && i?.(r), a.length && d?.(a);
268
- }, F = (e) => {
268
+ }, te = (e) => {
269
269
  e.preventDefault(), A.current = 0, ee(!1), !a && P(Array.from(e.dataTransfer.files ?? []));
270
- }, I = r ?? `${e ? e.toUpperCase().replace(/\./g, "") : "Any file"}${n ? `, up to ${n} MB` : ""}`, L = /* @__PURE__ */ X("input", {
270
+ }, F = r ?? `${e ? e.toUpperCase().replace(/\./g, "") : "Any file"}${n ? `, up to ${n} MB` : ""}`, I = /* @__PURE__ */ X("input", {
271
271
  ref: O,
272
272
  type: "file",
273
273
  accept: e,
@@ -277,7 +277,7 @@ var st = a(function({ accept: e, multiple: t = !1, maxSizeMB: n, hint: r, onFile
277
277
  P(Array.from(e.target.files ?? [])), e.target.value = "";
278
278
  },
279
279
  className: "sr-only"
280
- }), R = (y || C) && /* @__PURE__ */ Z("div", {
280
+ }), L = (y || C) && /* @__PURE__ */ Z("div", {
281
281
  className: "flex items-center gap-1.5",
282
282
  children: [y && /* @__PURE__ */ Z("span", {
283
283
  className: "text-p-std font-medium text-fg-default inline-flex items-center gap-1",
@@ -290,11 +290,11 @@ var st = a(function({ accept: e, multiple: t = !1, maxSizeMB: n, hint: r, onFile
290
290
  className: "inline-flex items-center gap-1",
291
291
  children: C
292
292
  })]
293
- }), z = S ? /* @__PURE__ */ X("p", {
293
+ }), R = S ? /* @__PURE__ */ X("p", {
294
294
  id: `${M}-error`,
295
295
  className: "text-p-sm text-red-700",
296
296
  children: S
297
- }) : null, B = f && l.length > 0 && /* @__PURE__ */ X("div", {
297
+ }) : null, z = f && l.length > 0 && /* @__PURE__ */ X("div", {
298
298
  className: "flex flex-col gap-2",
299
299
  children: l.map((e, t) => /* @__PURE__ */ X(lt, {
300
300
  name: e.name,
@@ -309,9 +309,9 @@ var st = a(function({ accept: e, multiple: t = !1, maxSizeMB: n, hint: r, onFile
309
309
  className: Q("flex flex-col gap-1.5", w),
310
310
  ...E,
311
311
  children: [
312
- R,
313
- B,
314
- z
312
+ L,
313
+ z,
314
+ R
315
315
  ]
316
316
  });
317
317
  if (g !== "dropzone") {
@@ -322,24 +322,24 @@ var st = a(function({ accept: e, multiple: t = !1, maxSizeMB: n, hint: r, onFile
322
322
  className: Q("flex flex-col gap-1.5", w),
323
323
  ...E,
324
324
  children: [
325
- R,
325
+ L,
326
326
  /* @__PURE__ */ X(nt, {
327
327
  type: "button",
328
328
  variant: "secondary",
329
329
  iconOnly: e,
330
330
  disabled: a,
331
331
  onClick: () => O.current?.click(),
332
- leftIcon: e ? void 0 : v ?? /* @__PURE__ */ X(V, { className: "h-4 w-4" }),
332
+ leftIcon: e ? void 0 : v ?? /* @__PURE__ */ X(B, { className: "h-4 w-4" }),
333
333
  "aria-label": e ? "Upload file" : void 0,
334
- children: e ? v ?? /* @__PURE__ */ X(H, { className: "h-4 w-4" }) : _ ?? "Choose a file"
334
+ children: e ? v ?? /* @__PURE__ */ X(V, { className: "h-4 w-4" }) : _ ?? "Choose a file"
335
335
  }),
336
- L,
337
- B,
338
- z
336
+ I,
337
+ z,
338
+ R
339
339
  ]
340
340
  });
341
341
  }
342
- let U = /* @__PURE__ */ Z("div", {
342
+ let H = /* @__PURE__ */ Z("div", {
343
343
  ref: D,
344
344
  onDragEnter: () => {
345
345
  A.current += 1, a || ee(!0);
@@ -348,7 +348,7 @@ var st = a(function({ accept: e, multiple: t = !1, maxSizeMB: n, hint: r, onFile
348
348
  onDragLeave: () => {
349
349
  A.current = Math.max(0, A.current - 1), A.current === 0 && ee(!1);
350
350
  },
351
- onDrop: F,
351
+ onDrop: te,
352
352
  onClick: () => !a && O.current?.click(),
353
353
  role: "button",
354
354
  tabIndex: 0,
@@ -376,19 +376,19 @@ var st = a(function({ accept: e, multiple: t = !1, maxSizeMB: n, hint: r, onFile
376
376
  }), " or drag & drop it here."]
377
377
  }), /* @__PURE__ */ X("p", {
378
378
  className: "text-p-sm text-fg-tertiary",
379
- children: I
379
+ children: F
380
380
  })]
381
381
  }),
382
- L
382
+ I
383
383
  ]
384
384
  });
385
- return !R && !z && !B ? U : /* @__PURE__ */ Z("div", {
385
+ return !L && !R && !z ? H : /* @__PURE__ */ Z("div", {
386
386
  className: "flex flex-col gap-1.5",
387
387
  children: [
388
- R,
389
- U,
390
- B,
391
- z
388
+ L,
389
+ H,
390
+ z,
391
+ R
392
392
  ]
393
393
  });
394
394
  }), ct = {
@@ -560,7 +560,7 @@ var _t = a(function({ src: e, alt: t, name: n, size: r = "md", status: i, shape:
560
560
  alt: t ?? n ?? "",
561
561
  onError: () => b(!0),
562
562
  className: "h-full w-full object-cover"
563
- }) : n ? k : o ?? /* @__PURE__ */ X(J, { className: "h-1/2 w-1/2 text-white/90" })
563
+ }) : n ? k : o ?? /* @__PURE__ */ X(oe, { className: "h-1/2 w-1/2 text-white/90" })
564
564
  }),
565
565
  i && /* @__PURE__ */ X("span", {
566
566
  "aria-label": i,
@@ -573,7 +573,7 @@ var _t = a(function({ src: e, alt: t, name: n, size: r = "md", status: i, shape:
573
573
  },
574
574
  "aria-label": "Change avatar image",
575
575
  className: Q("absolute right-0 bottom-0 inline-flex items-center justify-center rounded-full ring-2 ring-white bg-brand-500 text-white hover:bg-brand-600 transition-colors", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-300 focus-visible:ring-offset-1", mt[r]),
576
- children: /* @__PURE__ */ X(H, { className: "h-1/2 w-1/2" })
576
+ children: /* @__PURE__ */ X(V, { className: "h-1/2 w-1/2" })
577
577
  }), /* @__PURE__ */ X("input", {
578
578
  ref: C,
579
579
  type: "file",
@@ -841,7 +841,7 @@ var _t = a(function({ src: e, alt: t, name: n, size: r = "md", status: i, shape:
841
841
  ...m
842
842
  }), /* @__PURE__ */ X("span", {
843
843
  className: Q("flex items-center justify-center border transition-colors", Rt[e], !a && "bg-bg-default", v ? "border-red-600" : a ? "border-brand-500" : "border-border-strong", !c && !a && (v ? "peer-hover:border-red-700" : "peer-hover:border-fg-tertiary"), "peer-focus-visible:ring-2 peer-focus-visible:ring-brand-300 peer-focus-visible:ring-offset-1", !a && "peer-checked:bg-brand-500 peer-checked:border-brand-500", a && "bg-brand-500", c && !a && "peer-checked:bg-bg-subtle peer-checked:border-border-strong", !a && "[&_svg]:opacity-0 peer-checked:[&_svg]:opacity-100 [&_svg]:transition-opacity"),
844
- children: X(a ? L : b, {
844
+ children: X(a ? I : b, {
845
845
  className: Q(zt[e], "text-white"),
846
846
  strokeWidth: 3,
847
847
  "aria-hidden": !0
@@ -998,8 +998,8 @@ function Kt({ content: e, children: t, side: r = "top", align: i = "center", off
998
998
  },
999
999
  "aria-haspopup": "dialog",
1000
1000
  "aria-expanded": w
1001
- }), F = v ?? (typeof document < "u" ? document.body : null);
1002
- return /* @__PURE__ */ Z(Y, { children: [P, w && F && de(/* @__PURE__ */ Z("div", {
1001
+ }), te = v ?? (typeof document < "u" ? document.body : null);
1002
+ return /* @__PURE__ */ Z(Y, { children: [P, w && te && de(/* @__PURE__ */ Z("div", {
1003
1003
  ref: Vt(D),
1004
1004
  id: O,
1005
1005
  role: "dialog",
@@ -1014,7 +1014,7 @@ function Kt({ content: e, children: t, side: r = "top", align: i = "center", off
1014
1014
  style: A,
1015
1015
  className: Q("absolute size-2 rotate-45 bg-bg-default", Gt[j])
1016
1016
  })]
1017
- }), F)] });
1017
+ }), te)] });
1018
1018
  }
1019
1019
  //#endregion
1020
1020
  //#region src/components/Copy/Copy.tsx
@@ -1177,7 +1177,7 @@ var qt = a(function({ text: e, copiedLabel: t = "Copied", label: n = "Copy to cl
1177
1177
  onClick: () => T(S - a),
1178
1178
  "aria-label": "Decrease",
1179
1179
  className: $t,
1180
- children: /* @__PURE__ */ X(L, { className: "size-4" })
1180
+ children: /* @__PURE__ */ X(I, { className: "size-4" })
1181
1181
  }),
1182
1182
  rightAddon: /* @__PURE__ */ X("button", {
1183
1183
  type: "button",
@@ -1185,7 +1185,7 @@ var qt = a(function({ text: e, copiedLabel: t = "Copied", label: n = "Copy to cl
1185
1185
  onClick: () => T(S + a),
1186
1186
  "aria-label": "Increase",
1187
1187
  className: $t,
1188
- children: /* @__PURE__ */ X(te, { className: "size-4" })
1188
+ children: /* @__PURE__ */ X(ne, { className: "size-4" })
1189
1189
  }),
1190
1190
  className: Q("text-center [appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none", p),
1191
1191
  ..._
@@ -1265,20 +1265,20 @@ function mn(e, t) {
1265
1265
  return i;
1266
1266
  }
1267
1267
  var hn = a(function({ value: e, onChange: t, clearable: n = !1, range: r = !1, rangeValue: i, onChangeRange: a, size: o = "md", locale: s = "en", format: c = "dd.MM.yyyy", label: d, required: h = !1, helperText: g, placeholder: _ = "Select date", fullWidth: v = !1, disabled: b = !1, minDate: x, maxDate: S, excludeDates: T, filterDate: E, error: D = !1, errorText: O, id: k, className: ee, wrapperClassName: A, dataTestId: j }, M) {
1268
- let N = u(), P = k ?? N, [F, I] = m(!1), [L, R] = m(e ?? i?.start ?? /* @__PURE__ */ new Date()), [z, B] = m(null), V = p(null), H = D || !!O, U = O ? `${P}-error` : g ? `${P}-help` : void 0;
1268
+ let N = u(), P = k ?? N, [te, F] = m(!1), [I, L] = m(e ?? i?.start ?? /* @__PURE__ */ new Date()), [R, z] = m(null), B = p(null), V = D || !!O, H = O ? `${P}-error` : g ? `${P}-help` : void 0;
1269
1269
  l(() => {
1270
- b && I(!1);
1270
+ b && F(!1);
1271
1271
  }, [b]), l(() => {
1272
- if (!F) return;
1272
+ if (!te) return;
1273
1273
  let e = (e) => {
1274
- V.current && !V.current.contains(e.target) && I(!1);
1274
+ B.current && !B.current.contains(e.target) && F(!1);
1275
1275
  };
1276
1276
  return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
1277
- }, [F]);
1278
- let W = r ? i?.start ? `${pn(i.start, c)}${i.end ? ` – ${pn(i.end, c)}` : ""}` : "" : e ? pn(e, c) : "";
1279
- function te(e) {
1277
+ }, [te]);
1278
+ let U = r ? i?.start ? `${pn(i.start, c)}${i.end ? ` – ${pn(i.end, c)}` : ""}` : "" : e ? pn(e, c) : "";
1279
+ function ne(e) {
1280
1280
  if (!r) {
1281
- t?.(e), I(!1);
1281
+ t?.(e), F(!1);
1282
1282
  return;
1283
1283
  }
1284
1284
  let n = i ?? {
@@ -1302,27 +1302,27 @@ var hn = a(function({ value: e, onChange: t, clearable: n = !1, range: r = !1, r
1302
1302
  a?.({
1303
1303
  start: n.start,
1304
1304
  end: e
1305
- }), I(!1);
1305
+ }), F(!1);
1306
1306
  }
1307
- function ne(e) {
1307
+ function W(e) {
1308
1308
  e.stopPropagation(), r ? (a?.({
1309
1309
  start: null,
1310
1310
  end: null
1311
- }), B(null)) : t?.(null);
1311
+ }), z(null)) : t?.(null);
1312
1312
  }
1313
- let { firstDayOfWeek: re, monthNames: ie, weekdayNames: G } = f(() => {
1313
+ let { firstDayOfWeek: re, monthNames: G, weekdayNames: K } = f(() => {
1314
1314
  let e = rn(s), t = an(e);
1315
1315
  return {
1316
1316
  firstDayOfWeek: t,
1317
1317
  monthNames: on(e),
1318
1318
  weekdayNames: cn(e, t)
1319
1319
  };
1320
- }, [s]), K = mn(L, re), q = i ?? {
1320
+ }, [s]), ie = mn(I, re), q = i ?? {
1321
1321
  start: null,
1322
1322
  end: null
1323
- }, ae = q.end ?? z;
1323
+ }, ae = q.end ?? R;
1324
1324
  return /* @__PURE__ */ Z("div", {
1325
- ref: V,
1325
+ ref: B,
1326
1326
  "data-test-id": j,
1327
1327
  className: Q("flex flex-col gap-1.5", v && "w-full", A),
1328
1328
  children: [
@@ -1342,26 +1342,26 @@ var hn = a(function({ value: e, onChange: t, clearable: n = !1, range: r = !1, r
1342
1342
  id: P,
1343
1343
  type: "button",
1344
1344
  disabled: b,
1345
- "aria-invalid": H || void 0,
1345
+ "aria-invalid": V || void 0,
1346
1346
  "aria-required": h || void 0,
1347
- "aria-describedby": U,
1348
- onClick: () => I((e) => !e),
1349
- className: Q("inline-flex items-center gap-2 rounded-lg border bg-bg-default text-left transition-colors focus-visible:outline-none focus-visible:ring-2", H ? "border-red-600" : "border-border-default", !b && !H && "hover:border-border-strong", H ? "focus-visible:ring-red-300 focus-visible:border-red-600" : "focus-visible:ring-brand-300 focus-visible:border-brand-500", b && "bg-bg-container border-border-default cursor-not-allowed text-fg-disabled", v ? "w-full min-w-0" : "min-w-[260px]", tn[o], ee),
1347
+ "aria-describedby": H,
1348
+ onClick: () => F((e) => !e),
1349
+ className: Q("inline-flex items-center gap-2 rounded-lg border bg-bg-default text-left transition-colors focus-visible:outline-none focus-visible:ring-2", V ? "border-red-600" : "border-border-default", !b && !V && "hover:border-border-strong", V ? "focus-visible:ring-red-300 focus-visible:border-red-600" : "focus-visible:ring-brand-300 focus-visible:border-brand-500", b && "bg-bg-container border-border-default cursor-not-allowed text-fg-disabled", v ? "w-full min-w-0" : "min-w-[260px]", tn[o], ee),
1350
1350
  children: [/* @__PURE__ */ X("span", {
1351
- className: Q("flex-1 text-left truncate", b ? "text-fg-disabled" : W ? "text-fg-default" : "text-fg-tertiary"),
1352
- children: W || _
1353
- }), n && W && !b ? /* @__PURE__ */ X("span", {
1351
+ className: Q("flex-1 text-left truncate", b ? "text-fg-disabled" : U ? "text-fg-default" : "text-fg-tertiary"),
1352
+ children: U || _
1353
+ }), n && U && !b ? /* @__PURE__ */ X("span", {
1354
1354
  role: "button",
1355
1355
  tabIndex: 0,
1356
1356
  "aria-label": "Clear date",
1357
- onClick: ne,
1357
+ onClick: W,
1358
1358
  onKeyDown: (e) => {
1359
- (e.key === "Enter" || e.key === " ") && (e.preventDefault(), ne(e));
1359
+ (e.key === "Enter" || e.key === " ") && (e.preventDefault(), W(e));
1360
1360
  },
1361
1361
  className: "inline-flex items-center justify-center rounded-full p-0.5 hover:bg-bg-container",
1362
1362
  children: /* @__PURE__ */ X(se, { className: "w-4 h-4 text-fg-secondary" })
1363
1363
  }) : /* @__PURE__ */ X(y, { className: Q("w-4 h-4", b ? "text-fg-disabled" : "text-fg-secondary") })]
1364
- }), F && /* @__PURE__ */ Z("div", {
1364
+ }), te && /* @__PURE__ */ Z("div", {
1365
1365
  className: "absolute z-50 mt-1 left-0 rounded-xl border border-border-default bg-bg-default shadow-z3 p-3 w-[300px]",
1366
1366
  children: [/* @__PURE__ */ Z("div", {
1367
1367
  className: "flex items-center justify-between mb-2",
@@ -1369,40 +1369,40 @@ var hn = a(function({ value: e, onChange: t, clearable: n = !1, range: r = !1, r
1369
1369
  /* @__PURE__ */ X("button", {
1370
1370
  type: "button",
1371
1371
  className: "w-8 h-8 rounded-md hover:bg-bg-container flex items-center justify-center text-fg-secondary",
1372
- onClick: () => R(new Date(L.getFullYear(), L.getMonth() - 1, 1)),
1372
+ onClick: () => L(new Date(I.getFullYear(), I.getMonth() - 1, 1)),
1373
1373
  "aria-label": "Previous month",
1374
1374
  children: /* @__PURE__ */ X(C, { className: "w-4 h-4" })
1375
1375
  }),
1376
1376
  /* @__PURE__ */ Z("div", {
1377
1377
  className: "text-p-md font-semibold text-fg-default",
1378
1378
  children: [
1379
- ie[L.getMonth()],
1379
+ G[I.getMonth()],
1380
1380
  " ",
1381
- L.getFullYear()
1381
+ I.getFullYear()
1382
1382
  ]
1383
1383
  }),
1384
1384
  /* @__PURE__ */ X("button", {
1385
1385
  type: "button",
1386
1386
  className: "w-8 h-8 rounded-md hover:bg-bg-container flex items-center justify-center text-fg-secondary",
1387
- onClick: () => R(new Date(L.getFullYear(), L.getMonth() + 1, 1)),
1387
+ onClick: () => L(new Date(I.getFullYear(), I.getMonth() + 1, 1)),
1388
1388
  "aria-label": "Next month",
1389
1389
  children: /* @__PURE__ */ X(w, { className: "w-4 h-4" })
1390
1390
  })
1391
1391
  ]
1392
1392
  }), /* @__PURE__ */ Z("div", {
1393
1393
  className: "grid grid-cols-7 gap-1 text-center",
1394
- children: [G.map((e, t) => /* @__PURE__ */ X("div", {
1394
+ children: [K.map((e, t) => /* @__PURE__ */ X("div", {
1395
1395
  className: "text-p-xs text-fg-tertiary py-1",
1396
1396
  children: e
1397
- }, t)), K.map((t, n) => {
1397
+ }, t)), ie.map((t, n) => {
1398
1398
  if (!t) return /* @__PURE__ */ X("div", {}, n);
1399
1399
  let i = fn(t, x, S, T, E), a = !r && un(t, e ?? null), o = r && un(t, q.start), s = r && un(t, ae), c = r && !!q.start && !!ae && t > q.start && t < ae;
1400
1400
  return /* @__PURE__ */ X("button", {
1401
1401
  type: "button",
1402
1402
  disabled: i,
1403
1403
  "aria-disabled": i || void 0,
1404
- onMouseEnter: () => !i && r && q.start && !q.end && B(t),
1405
- onClick: () => !i && te(t),
1404
+ onMouseEnter: () => !i && r && q.start && !q.end && z(t),
1405
+ onClick: () => !i && ne(t),
1406
1406
  className: Q("h-8 rounded-md text-p-sm font-medium", i ? "text-fg-disabled cursor-not-allowed" : a || o || s ? "bg-brand-500 text-white" : c ? "bg-bg-brand-lighter text-brand-700" : "text-fg-default hover:bg-bg-container"),
1407
1407
  children: t.getDate()
1408
1408
  }, n);
@@ -1945,7 +1945,7 @@ var Fn = "min-w-[200px] rounded-lg border border-border-default bg-bg-default sh
1945
1945
  ...s,
1946
1946
  children: [
1947
1947
  r ?? /* @__PURE__ */ X(Hn, {
1948
- icon: ie,
1948
+ icon: G,
1949
1949
  tone: "gray",
1950
1950
  shape: "circle",
1951
1951
  size: Yn[e]
@@ -2165,7 +2165,7 @@ var $n = a(function({ label: e, value: t, active: n = !1, size: r = "md", disabl
2165
2165
  discovery: {
2166
2166
  container: "bg-purple-50 border-purple-200",
2167
2167
  iconColor: "text-purple-700",
2168
- DefaultIcon: G
2168
+ DefaultIcon: K
2169
2169
  }
2170
2170
  }, ar = a(function({ variant: e = "info", title: t, description: n, onDismiss: r, actions: i, icon: a, className: o, dataTestId: s, ...c }, l) {
2171
2171
  let { container: u, iconColor: d, DefaultIcon: f } = ir[e];
@@ -2336,10 +2336,10 @@ var ur = {
2336
2336
  avatar: "sm"
2337
2337
  }
2338
2338
  }, dr = a(function({ options: e, value: n, onChange: r, onAdd: i, onRemove: a, size: o = "md", placeholder: s = "Select…", addMorePlaceholder: c = "Add another…", disabled: d = !1, loading: h = !1, error: g = !1, label: _, labelAddons: v, helperText: y, errorText: b, required: x = !1, lockedValues: S = [], max: C, searchable: w = !0, suggestionsLabel: T = "Suggestions", emptyText: E = "No matches. Try a different search.", showAvatars: D = !1, id: O, className: k, wrapperClassName: ee, dataTestId: A }, j) {
2339
- let M = u(), N = O ?? M, P = `${N}-listbox`, I = g || !!b, [L, R] = m(""), [z, B] = m(!1), [V, H] = m(0), U = p(null), W = p(null), te = (e) => {
2340
- W.current = e, typeof j == "function" ? j(e) : j && (j.current = e);
2341
- }, ne = f(() => new Map(e.map((e) => [String(e.value), e])), [e]), ie = f(() => n.map((e) => ne.get(String(e))).filter((e) => !!e), [n, ne]), G = f(() => {
2342
- let t = L.trim().toLowerCase();
2339
+ let M = u(), N = O ?? M, P = `${N}-listbox`, F = g || !!b, [I, L] = m(""), [R, z] = m(!1), [B, V] = m(0), H = p(null), U = p(null), ne = (e) => {
2340
+ U.current = e, typeof j == "function" ? j(e) : j && (j.current = e);
2341
+ }, W = f(() => new Map(e.map((e) => [String(e.value), e])), [e]), G = f(() => n.map((e) => W.get(String(e))).filter((e) => !!e), [n, W]), K = f(() => {
2342
+ let t = I.trim().toLowerCase();
2343
2343
  return e.filter((e) => {
2344
2344
  if (Ke(n, e.value)) return !1;
2345
2345
  if (t === "") return !0;
@@ -2349,36 +2349,36 @@ var ur = {
2349
2349
  }, [
2350
2350
  e,
2351
2351
  n,
2352
- L
2353
- ]), K = C !== void 0 && n.length >= C;
2352
+ I
2353
+ ]), ie = C !== void 0 && n.length >= C;
2354
2354
  l(() => {
2355
- if (!z) return;
2355
+ if (!R) return;
2356
2356
  let e = (e) => {
2357
- U.current && !U.current.contains(e.target) && B(!1);
2357
+ H.current && !H.current.contains(e.target) && z(!1);
2358
2358
  };
2359
2359
  return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
2360
- }, [z]), l(() => {
2361
- H((e) => Math.min(e, Math.max(0, G.length - 1)));
2362
- }, [G.length]), l(() => {
2363
- h && B(!1);
2360
+ }, [R]), l(() => {
2361
+ V((e) => Math.min(e, Math.max(0, K.length - 1)));
2362
+ }, [K.length]), l(() => {
2363
+ h && z(!1);
2364
2364
  }, [h]);
2365
2365
  let q = (e) => {
2366
- let t = ne.get(String(e));
2367
- d || K || !t || t.disabled || (r([...n, e]), i?.(t), R(""), H(0), W.current?.focus());
2366
+ let t = W.get(String(e));
2367
+ d || ie || !t || t.disabled || (r([...n, e]), i?.(t), L(""), V(0), U.current?.focus());
2368
2368
  }, ae = (e) => {
2369
2369
  d || Ke(S, e) || (r(n.filter((t) => !Ge(t, e))), a?.(e));
2370
- }, J = (e) => {
2371
- if (!G.length) return;
2372
- let t = V;
2373
- for (let n = 0; n < G.length && (t = (t + e + G.length) % G.length, G[t]?.disabled); n++);
2374
- H(t);
2370
+ }, oe = (e) => {
2371
+ if (!K.length) return;
2372
+ let t = B;
2373
+ for (let n = 0; n < K.length && (t = (t + e + K.length) % K.length, K[t]?.disabled); n++);
2374
+ V(t);
2375
2375
  }, ce = (e) => {
2376
- if (e.key === "ArrowDown") e.preventDefault(), z ? J(1) : h || B(!0);
2377
- else if (e.key === "ArrowUp") e.preventDefault(), J(-1);
2378
- else if (e.key === "Enter") z && G[V] && !G[V].disabled && (e.preventDefault(), q(G[V].value));
2379
- else if (e.key === "Escape") B(!1);
2380
- else if (e.key === "Backspace" && L === "" && ie.length > 0) {
2381
- let e = [...ie].reverse().find((e) => !Ke(S, e.value));
2376
+ if (e.key === "ArrowDown") e.preventDefault(), R ? oe(1) : h || z(!0);
2377
+ else if (e.key === "ArrowUp") e.preventDefault(), oe(-1);
2378
+ else if (e.key === "Enter") R && K[B] && !K[B].disabled && (e.preventDefault(), q(K[B].value));
2379
+ else if (e.key === "Escape") z(!1);
2380
+ else if (e.key === "Backspace" && I === "" && G.length > 0) {
2381
+ let e = [...G].reverse().find((e) => !Ke(S, e.value));
2382
2382
  e && ae(e.value);
2383
2383
  }
2384
2384
  }, le = b ? `${N}-error` : y ? `${N}-help` : void 0;
@@ -2402,13 +2402,13 @@ var ur = {
2402
2402
  })]
2403
2403
  }),
2404
2404
  /* @__PURE__ */ Z("div", {
2405
- ref: U,
2405
+ ref: H,
2406
2406
  className: "relative",
2407
2407
  children: [/* @__PURE__ */ Z("div", {
2408
- className: Q("flex flex-wrap items-center rounded-lg border bg-bg-default transition-colors", ur[o].box, d ? "opacity-60 cursor-not-allowed border-border-default" : I ? "border-red-500 focus-within:ring-2 focus-within:ring-red-300 focus-within:ring-offset-1 cursor-text" : "border-border-default hover:border-border-strong focus-within:border-fg-tertiary focus-within:ring-2 focus-within:ring-brand-300 focus-within:ring-offset-1 cursor-text", h && "cursor-wait", k),
2409
- onClick: () => !d && !h && W.current?.focus(),
2408
+ className: Q("flex flex-wrap items-center rounded-lg border bg-bg-default transition-colors", ur[o].box, d ? "opacity-60 cursor-not-allowed border-border-default" : F ? "border-red-500 focus-within:ring-2 focus-within:ring-red-300 focus-within:ring-offset-1 cursor-text" : "border-border-default hover:border-border-strong focus-within:border-fg-tertiary focus-within:ring-2 focus-within:ring-brand-300 focus-within:ring-offset-1 cursor-text", h && "cursor-wait", k),
2409
+ onClick: () => !d && !h && U.current?.focus(),
2410
2410
  children: [
2411
- ie.map((e) => {
2411
+ G.map((e) => {
2412
2412
  let t = Ke(S, e.value);
2413
2413
  return /* @__PURE__ */ Z("span", {
2414
2414
  className: Q("inline-flex items-center gap-1.5 rounded-full text-fg-default bg-bg-subtle", ur[o].chip, ur[o].chipText),
@@ -2440,44 +2440,44 @@ var ur = {
2440
2440
  }, String(e.value));
2441
2441
  }),
2442
2442
  /* @__PURE__ */ X("input", {
2443
- ref: te,
2443
+ ref: ne,
2444
2444
  id: N,
2445
2445
  type: "text",
2446
2446
  role: "combobox",
2447
- "aria-expanded": z,
2447
+ "aria-expanded": R,
2448
2448
  "aria-controls": P,
2449
2449
  "aria-autocomplete": "list",
2450
- "aria-activedescendant": z && G[V] ? `${P}-opt-${V}` : void 0,
2451
- "aria-invalid": I || void 0,
2450
+ "aria-activedescendant": R && K[B] ? `${P}-opt-${B}` : void 0,
2451
+ "aria-invalid": F || void 0,
2452
2452
  "aria-describedby": le,
2453
2453
  "aria-busy": h || void 0,
2454
- value: L,
2454
+ value: I,
2455
2455
  readOnly: !w,
2456
- disabled: d || K,
2456
+ disabled: d || ie,
2457
2457
  onChange: (e) => {
2458
- R(e.target.value), h || B(!0);
2458
+ L(e.target.value), h || z(!0);
2459
2459
  },
2460
- onFocus: () => !h && B(!0),
2460
+ onFocus: () => !h && z(!0),
2461
2461
  onKeyDown: ce,
2462
- placeholder: ie.length === 0 ? s : K ? `Limit ${C} reached` : c,
2462
+ placeholder: G.length === 0 ? s : ie ? `Limit ${C} reached` : c,
2463
2463
  className: Q("flex-1 bg-transparent outline-none text-fg-default placeholder:text-fg-tertiary disabled:cursor-not-allowed", !w && "cursor-pointer", ur[o].input)
2464
2464
  }),
2465
- h && /* @__PURE__ */ X(F, {
2465
+ h && /* @__PURE__ */ X(te, {
2466
2466
  className: "h-4 w-4 shrink-0 text-fg-secondary animate-spin",
2467
2467
  "aria-hidden": !0
2468
2468
  })
2469
2469
  ]
2470
- }), z && !d && !h && !K && /* @__PURE__ */ Z("div", {
2470
+ }), R && !d && !h && !ie && /* @__PURE__ */ Z("div", {
2471
2471
  className: "absolute top-full left-0 right-0 mt-1 z-20 max-h-80 overflow-y-auto rounded-lg border border-border-default bg-bg-default shadow-z4",
2472
2472
  children: [/* @__PURE__ */ Z("div", {
2473
2473
  className: "px-3 py-2 border-b border-border-subtle flex items-center gap-2 text-p-sm text-fg-tertiary",
2474
2474
  children: [/* @__PURE__ */ X(re, { className: "w-3.5 h-3.5 shrink-0" }), /* @__PURE__ */ X("span", {
2475
2475
  className: "truncate",
2476
- children: L ? `Matches for "${L}"` : T
2476
+ children: I ? `Matches for "${I}"` : T
2477
2477
  })]
2478
- }), G.length === 0 ? /* @__PURE__ */ Z("div", {
2478
+ }), K.length === 0 ? /* @__PURE__ */ Z("div", {
2479
2479
  className: "px-3 py-6 text-center",
2480
- children: [/* @__PURE__ */ X(oe, { className: "w-5 h-5 mx-auto text-fg-tertiary mb-2" }), /* @__PURE__ */ X("span", {
2480
+ children: [/* @__PURE__ */ X(J, { className: "w-5 h-5 mx-auto text-fg-tertiary mb-2" }), /* @__PURE__ */ X("span", {
2481
2481
  className: "text-p-sm text-fg-secondary",
2482
2482
  children: E
2483
2483
  })]
@@ -2485,23 +2485,23 @@ var ur = {
2485
2485
  role: "listbox",
2486
2486
  id: P,
2487
2487
  className: "py-1",
2488
- children: G.map((e, n) => /* @__PURE__ */ Z(t, { children: [!!e.group && e.group !== G[n - 1]?.group && /* @__PURE__ */ X("li", {
2488
+ children: K.map((e, n) => /* @__PURE__ */ Z(t, { children: [!!e.group && e.group !== K[n - 1]?.group && /* @__PURE__ */ X("li", {
2489
2489
  role: "presentation",
2490
2490
  className: "px-3 pt-2 pb-1 text-label-sm font-medium uppercase tracking-wide text-fg-tertiary select-none",
2491
2491
  children: e.group
2492
2492
  }), /* @__PURE__ */ X("li", {
2493
2493
  role: "option",
2494
2494
  id: `${P}-opt-${n}`,
2495
- "aria-selected": n === V,
2495
+ "aria-selected": n === B,
2496
2496
  "aria-disabled": e.disabled || void 0,
2497
2497
  children: /* @__PURE__ */ Z("button", {
2498
2498
  type: "button",
2499
2499
  disabled: e.disabled,
2500
- onMouseEnter: () => H(n),
2500
+ onMouseEnter: () => V(n),
2501
2501
  onMouseDown: (t) => {
2502
2502
  t.preventDefault(), q(e.value);
2503
2503
  },
2504
- className: Q("w-full px-3 py-2 flex items-center gap-3 text-left transition", e.disabled ? "opacity-50 cursor-not-allowed" : n === V ? "bg-bg-subtle" : "hover:bg-bg-subtle"),
2504
+ className: Q("w-full px-3 py-2 flex items-center gap-3 text-left transition", e.disabled ? "opacity-50 cursor-not-allowed" : n === B ? "bg-bg-subtle" : "hover:bg-bg-subtle"),
2505
2505
  children: [(D || e.avatarSrc) && /* @__PURE__ */ X(_t, {
2506
2506
  src: e.avatarSrc,
2507
2507
  name: lr(e),
@@ -2599,7 +2599,7 @@ var vr = "inline-flex items-center justify-center min-w-9 h-9 px-2 text-p-std ro
2599
2599
  if (t === "ellipsis-left" || t === "ellipsis-right") return /* @__PURE__ */ X("span", {
2600
2600
  "aria-hidden": !0,
2601
2601
  className: "inline-flex items-center justify-center w-9 h-9 text-fg-tertiary",
2602
- children: /* @__PURE__ */ X(z, { className: "h-4 w-4" })
2602
+ children: /* @__PURE__ */ X(R, { className: "h-4 w-4" })
2603
2603
  }, `${t}-${r}`);
2604
2604
  let i = t === e;
2605
2605
  return /* @__PURE__ */ X("button", {
@@ -2880,50 +2880,50 @@ function Rr(e) {
2880
2880
  return e.findIndex((e) => !e.disabled);
2881
2881
  }
2882
2882
  var zr = a(function({ options: e, value: n, defaultValue: r, onChange: i, placeholder: a = "Select…", label: o, labelAddons: s, helperText: c, errorText: d, error: h = !1, required: g = !1, loading: _ = !1, searchable: v = !1, searchPlaceholder: y = "Search…", emptyText: x = "No results", size: C = "md", disabled: w, id: T, className: E, wrapperClassName: D, dataTestId: O }, k) {
2883
- let ee = u(), A = T ?? ee, j = `${A}-listbox`, [M, N] = m(!1), [P, I] = m(r), L = n !== void 0, R = L ? n : P, z = p(null), B = p(null), V = p(null), [H, U] = m(-1), [W, te] = m(""), ne = h || !!d, ie = d ? `${A}-error` : c ? `${A}-help` : void 0, G = e.find((e) => Ge(e.value, R)), K = f(() => e.some((e) => e.icon != null), [e]), q = f(() => {
2884
- let t = v ? W.trim().toLowerCase() : "";
2883
+ let ee = u(), A = T ?? ee, j = `${A}-listbox`, [M, N] = m(!1), [P, F] = m(r), I = n !== void 0, L = I ? n : P, R = p(null), z = p(null), B = p(null), [V, H] = m(-1), [U, ne] = m(""), W = h || !!d, G = d ? `${A}-error` : c ? `${A}-help` : void 0, K = e.find((e) => Ge(e.value, L)), ie = f(() => e.some((e) => e.icon != null), [e]), q = f(() => {
2884
+ let t = v ? U.trim().toLowerCase() : "";
2885
2885
  return t ? e.filter((e) => (e.searchText ?? (typeof e.label == "string" ? e.label : void 0) ?? String(e.value)).toLowerCase().includes(t)) : e;
2886
2886
  }, [
2887
2887
  e,
2888
- W,
2888
+ U,
2889
2889
  v
2890
2890
  ]), ae = (e) => {
2891
- L || I(e), i?.(e), N(!1), v && B.current?.focus();
2891
+ I || F(e), i?.(e), N(!1), v && z.current?.focus();
2892
2892
  };
2893
2893
  l(() => {
2894
2894
  if (!M) return;
2895
2895
  let e = (e) => {
2896
- z.current?.contains(e.target) || N(!1);
2896
+ R.current?.contains(e.target) || N(!1);
2897
2897
  };
2898
2898
  return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
2899
2899
  }, [M]), l(() => {
2900
2900
  if (!M) {
2901
- U(-1), te("");
2901
+ H(-1), ne("");
2902
2902
  return;
2903
2903
  }
2904
- let e = q.findIndex((e) => Ge(e.value, R));
2905
- U(e >= 0 && !q[e]?.disabled ? e : Rr(q));
2904
+ let e = q.findIndex((e) => Ge(e.value, L));
2905
+ H(e >= 0 && !q[e]?.disabled ? e : Rr(q));
2906
2906
  }, [
2907
2907
  M,
2908
- R,
2908
+ L,
2909
2909
  q
2910
2910
  ]), l(() => {
2911
- M && v && V.current?.focus();
2911
+ M && v && B.current?.focus();
2912
2912
  }, [M, v]), l(() => {
2913
2913
  _ && N(!1);
2914
2914
  }, [_]);
2915
- let J = (e) => {
2915
+ let oe = (e) => {
2916
2916
  let t = q.length;
2917
2917
  if (t === 0) return;
2918
- let n = H < 0 ? e === 1 ? -1 : 0 : H;
2918
+ let n = V < 0 ? e === 1 ? -1 : 0 : V;
2919
2919
  for (let r = 0; r < t && (n = (n + e + t) % t, q[n]?.disabled); r++);
2920
- U(n);
2921
- }, oe = () => {
2922
- let e = q[H];
2920
+ H(n);
2921
+ }, J = () => {
2922
+ let e = q[V];
2923
2923
  e && !e.disabled && ae(e.value);
2924
2924
  };
2925
2925
  return /* @__PURE__ */ Z("div", {
2926
- ref: z,
2926
+ ref: R,
2927
2927
  "data-test-id": O,
2928
2928
  className: Q("flex flex-col gap-1.5 w-full relative", D),
2929
2929
  children: [
@@ -2943,7 +2943,7 @@ var zr = a(function({ options: e, value: n, defaultValue: r, onChange: i, placeh
2943
2943
  })]
2944
2944
  }),
2945
2945
  /* @__PURE__ */ Z("button", {
2946
- ref: Vt(k, B),
2946
+ ref: Vt(k, z),
2947
2947
  id: A,
2948
2948
  type: "button",
2949
2949
  disabled: w,
@@ -2957,31 +2957,31 @@ var zr = a(function({ options: e, value: n, defaultValue: r, onChange: i, placeh
2957
2957
  return;
2958
2958
  }
2959
2959
  if (e.key === "Enter" || e.key === " ") {
2960
- oe();
2960
+ J();
2961
2961
  return;
2962
2962
  }
2963
- J(e.key === "ArrowDown" ? 1 : -1);
2963
+ oe(e.key === "ArrowDown" ? 1 : -1);
2964
2964
  } else e.key === "Escape" && N(!1);
2965
2965
  },
2966
2966
  "aria-haspopup": "listbox",
2967
2967
  "aria-expanded": M,
2968
- "aria-invalid": ne || void 0,
2968
+ "aria-invalid": W || void 0,
2969
2969
  "aria-required": g || void 0,
2970
2970
  "aria-busy": _ || void 0,
2971
2971
  "aria-disabled": _ || void 0,
2972
- "aria-describedby": ie,
2972
+ "aria-describedby": G,
2973
2973
  "aria-controls": M && q.length > 0 ? j : void 0,
2974
- className: Q("inline-flex items-center justify-between w-full rounded-lg border bg-bg-default transition-colors outline-none", "text-left", ne ? "border-red-600" : "border-border-default", !w && !ne && "hover:border-border-strong", "focus-visible:ring-2", ne ? "focus-visible:ring-red-300 focus-visible:border-red-600" : "focus-visible:ring-brand-300 focus-visible:border-brand-500", w && "bg-bg-container border-border-default cursor-not-allowed text-fg-disabled", _ && "cursor-wait", Fr[C], E),
2974
+ className: Q("inline-flex items-center justify-between w-full rounded-lg border bg-bg-default transition-colors outline-none", "text-left", W ? "border-red-600" : "border-border-default", !w && !W && "hover:border-border-strong", "focus-visible:ring-2", W ? "focus-visible:ring-red-300 focus-visible:border-red-600" : "focus-visible:ring-brand-300 focus-visible:border-brand-500", w && "bg-bg-container border-border-default cursor-not-allowed text-fg-disabled", _ && "cursor-wait", Fr[C], E),
2975
2975
  children: [/* @__PURE__ */ Z("span", {
2976
2976
  className: "flex items-center gap-1.5 min-w-0",
2977
- children: [K && G?.icon && /* @__PURE__ */ X("span", {
2977
+ children: [ie && K?.icon && /* @__PURE__ */ X("span", {
2978
2978
  className: Lr,
2979
- children: G.icon
2979
+ children: K.icon
2980
2980
  }), /* @__PURE__ */ X("span", {
2981
- className: Q("truncate", !G && "text-fg-tertiary"),
2982
- children: G ? G.label : a
2981
+ className: Q("truncate", !K && "text-fg-tertiary"),
2982
+ children: K ? K.label : a
2983
2983
  })]
2984
- }), _ ? /* @__PURE__ */ X(F, {
2984
+ }), _ ? /* @__PURE__ */ X(te, {
2985
2985
  className: "h-4 w-4 ml-2 shrink-0 text-fg-secondary animate-spin",
2986
2986
  "aria-hidden": !0
2987
2987
  }) : /* @__PURE__ */ X(S, {
@@ -2997,17 +2997,17 @@ var zr = a(function({ options: e, value: n, defaultValue: r, onChange: i, placeh
2997
2997
  className: "h-3.5 w-3.5 shrink-0 text-fg-tertiary",
2998
2998
  "aria-hidden": !0
2999
2999
  }), /* @__PURE__ */ X("input", {
3000
- ref: V,
3000
+ ref: B,
3001
3001
  type: "text",
3002
3002
  role: "combobox",
3003
3003
  "aria-expanded": !0,
3004
3004
  "aria-controls": q.length > 0 ? j : void 0,
3005
3005
  "aria-autocomplete": "list",
3006
- "aria-activedescendant": H >= 0 ? `${j}-opt-${H}` : void 0,
3007
- value: W,
3008
- onChange: (e) => te(e.target.value),
3006
+ "aria-activedescendant": V >= 0 ? `${j}-opt-${V}` : void 0,
3007
+ value: U,
3008
+ onChange: (e) => ne(e.target.value),
3009
3009
  onKeyDown: (e) => {
3010
- e.key === "ArrowDown" || e.key === "ArrowUp" ? (e.preventDefault(), J(e.key === "ArrowDown" ? 1 : -1)) : e.key === "Enter" ? (e.preventDefault(), oe()) : e.key === "Escape" ? (e.preventDefault(), N(!1), B.current?.focus()) : e.key === "Tab" && (B.current?.focus(), N(!1));
3010
+ e.key === "ArrowDown" || e.key === "ArrowUp" ? (e.preventDefault(), oe(e.key === "ArrowDown" ? 1 : -1)) : e.key === "Enter" ? (e.preventDefault(), J()) : e.key === "Escape" ? (e.preventDefault(), N(!1), z.current?.focus()) : e.key === "Tab" && (z.current?.focus(), N(!1));
3011
3011
  },
3012
3012
  placeholder: y,
3013
3013
  className: "w-full bg-transparent outline-none text-p-std text-fg-default placeholder:text-fg-tertiary"
@@ -3020,7 +3020,7 @@ var zr = a(function({ options: e, value: n, defaultValue: r, onChange: i, placeh
3020
3020
  role: "listbox",
3021
3021
  className: "max-h-60 overflow-y-auto py-1",
3022
3022
  children: q.map((e, n) => {
3023
- let r = Ge(e.value, R), i = n === H;
3023
+ let r = Ge(e.value, L), i = n === V;
3024
3024
  return /* @__PURE__ */ Z(t, { children: [!!e.group && e.group !== q[n - 1]?.group && /* @__PURE__ */ X("li", {
3025
3025
  role: "presentation",
3026
3026
  className: "px-3 pt-2 pb-1 text-label-sm font-medium uppercase tracking-wide text-fg-tertiary select-none",
@@ -3030,12 +3030,12 @@ var zr = a(function({ options: e, value: n, defaultValue: r, onChange: i, placeh
3030
3030
  role: "option",
3031
3031
  "aria-selected": r,
3032
3032
  "aria-disabled": e.disabled || void 0,
3033
- onMouseEnter: () => !e.disabled && U(n),
3033
+ onMouseEnter: () => !e.disabled && H(n),
3034
3034
  onClick: () => !e.disabled && ae(e.value),
3035
3035
  className: Q("flex items-center justify-between gap-2 px-3 py-2 text-p-std cursor-pointer select-none", e.disabled && "opacity-50 cursor-not-allowed", i && !e.disabled && "bg-bg-subtle", r && "font-medium"),
3036
3036
  children: [/* @__PURE__ */ Z("span", {
3037
3037
  className: "flex items-center gap-2 min-w-0",
3038
- children: [K && /* @__PURE__ */ X("span", {
3038
+ children: [ie && /* @__PURE__ */ X("span", {
3039
3039
  className: Q(Lr, "w-4"),
3040
3040
  children: e.icon
3041
3041
  }), /* @__PURE__ */ X("span", {
@@ -3161,9 +3161,9 @@ function Zr(e, t, n) {
3161
3161
  clearIndicator: () => "text-fg-secondary hover:text-fg-default cursor-pointer p-0.5",
3162
3162
  dropdownIndicator: () => "text-fg-secondary p-0.5",
3163
3163
  indicatorSeparator: () => "hidden",
3164
- menu: () => "mt-1 rounded-lg border border-border-default bg-bg-default shadow-z4 overflow-hidden z-50",
3164
+ menu: () => "mt-1 rounded-lg border border-border-default bg-bg-default shadow-z4 overflow-hidden z-50!",
3165
3165
  menuList: () => "max-h-60 overflow-y-auto py-1",
3166
- menuPortal: () => "z-50",
3166
+ menuPortal: () => "z-50!",
3167
3167
  group: () => "py-1",
3168
3168
  groupHeading: () => "px-3 pt-2 pb-1 text-label-sm font-medium uppercase tracking-wide text-fg-tertiary select-none",
3169
3169
  option: ({ isFocused: e, isSelected: t, isDisabled: n }) => Q("flex items-center justify-between gap-2 px-3 py-2 cursor-pointer select-none", n && "opacity-50 cursor-not-allowed", e && !n && "bg-bg-subtle", t && "font-medium"),
@@ -3206,7 +3206,7 @@ function ti(e) {
3206
3206
  }) : null;
3207
3207
  }
3208
3208
  function ni() {
3209
- return /* @__PURE__ */ X(F, {
3209
+ return /* @__PURE__ */ X(te, {
3210
3210
  className: "h-4 w-4 animate-spin text-fg-secondary",
3211
3211
  "aria-hidden": !0
3212
3212
  });
@@ -3263,13 +3263,13 @@ function ii(t) {
3263
3263
  });
3264
3264
  }
3265
3265
  var ai = a(function(e, t) {
3266
- let { options: n, loadOptions: r, defaultOptions: i, creatable: a = !1, onCreateOption: o, formatCreateLabel: c, isMulti: l, value: d, defaultValue: h, onChange: g, placeholder: _, label: v, labelAddons: y, helperText: b, errorText: x, error: S = !1, required: C = !0, loading: w = !1, clearable: T = !1, searchable: E = !0, virtualized: D = !1, emptyText: O, locale: k = "en-US", size: ee = "md", disabled: A = !1, id: j, className: M, wrapperClassName: N, dataTestId: P } = e, F = e.isMulti ? !!e.singleLine : !1, I = Vr[k], L = _ ?? I.placeholder, R = O ?? I.noResults, z = c ?? ((e) => I.createLabel(e)), B = u(), V = j ?? B, H = S || !!x, U = d !== void 0, [W, te] = m(l ? void 0 : h), [ne, re] = m(l ? h ?? [] : []), [ie, G] = m(() => {
3266
+ let { options: n, loadOptions: r, defaultOptions: i, creatable: a = !1, onCreateOption: o, formatCreateLabel: c, isMulti: l, value: d, defaultValue: h, onChange: g, placeholder: _, label: v, labelAddons: y, helperText: b, errorText: x, error: S = !1, required: C = !0, loading: w = !1, clearable: T = !1, searchable: E = !0, virtualized: D = !1, emptyText: O, locale: k = "en-US", size: ee = "md", disabled: A = !1, id: j, className: M, wrapperClassName: N, dataTestId: P, ...te } = e, F = e.isMulti ? !!e.singleLine : !1, I = Vr[k], L = _ ?? I.placeholder, R = O ?? I.noResults, z = c ?? ((e) => I.createLabel(e)), B = u(), V = j ?? B, H = S || !!x, U = d !== void 0, [ne, W] = m(l ? void 0 : h), [re, G] = m(l ? h ?? [] : []), [K, ie] = m(() => {
3267
3267
  let e = /* @__PURE__ */ new Map();
3268
3268
  for (let t of n) e.set(String(t.value), t);
3269
3269
  if (Array.isArray(i)) for (let t of i) e.set(String(t.value), t);
3270
3270
  return e;
3271
- }), K = s((e) => {
3272
- e.length !== 0 && G((t) => {
3271
+ }), q = s((e) => {
3272
+ e.length !== 0 && ie((t) => {
3273
3273
  let n = !1, r = new Map(t);
3274
3274
  for (let t of e) {
3275
3275
  let e = String(t.value);
@@ -3279,108 +3279,109 @@ var ai = a(function(e, t) {
3279
3279
  });
3280
3280
  }, []);
3281
3281
  f(() => {
3282
- K(n);
3283
- }, [n, K]);
3284
- let q = s((e) => ie.get(String(e)) ?? {
3282
+ q(n);
3283
+ }, [n, q]);
3284
+ let ae = s((e) => K.get(String(e)) ?? {
3285
3285
  value: e,
3286
3286
  label: String(e)
3287
- }, [ie]), ae = U ? d : W, J = f(() => (U ? d : ne) ?? [], [
3287
+ }, [K]), oe = U ? d : ne, J = f(() => (U ? d : re) ?? [], [
3288
3288
  U,
3289
3289
  d,
3290
- ne
3291
- ]), oe = !l && ae !== void 0 ? q(ae) : null, ce = l ? J.map(q) : [], le = f(() => {
3292
- if (r) return (e) => Promise.resolve(r(e)).then((e) => (K(e), e));
3293
- }, [r, K]), ue = s((e) => {
3290
+ re
3291
+ ]), ce = !l && oe !== void 0 ? ae(oe) : null, le = l ? J.map(ae) : [], ue = f(() => {
3292
+ if (r) return (e) => Promise.resolve(r(e)).then((e) => (q(e), e));
3293
+ }, [r, q]), Y = s((e) => {
3294
3294
  if (l) {
3295
3295
  let t = [...e ?? []];
3296
- K(t);
3296
+ q(t);
3297
3297
  let n = t.map((e) => e.value);
3298
- re(n), g?.(n);
3298
+ G(n), g?.(n);
3299
3299
  } else {
3300
3300
  let t = e;
3301
- t && K([t]), te(t?.value), g?.(t?.value ?? void 0);
3301
+ t && q([t]), W(t?.value), g?.(t?.value ?? void 0);
3302
3302
  }
3303
3303
  }, [
3304
3304
  l,
3305
- K,
3305
+ q,
3306
3306
  g
3307
- ]), Y = s((e) => {
3307
+ ]), de = s((e) => {
3308
3308
  let t = {
3309
3309
  value: e,
3310
3310
  label: e
3311
3311
  };
3312
- if (K([t]), o?.(e), l) {
3312
+ if (q([t]), o?.(e), l) {
3313
3313
  let e = [...J, t.value];
3314
- re(e), g?.(e);
3315
- } else te(t.value), g?.(t.value);
3314
+ G(e), g?.(e);
3315
+ } else W(t.value), g?.(t.value);
3316
3316
  }, [
3317
3317
  l,
3318
3318
  J,
3319
- K,
3319
+ q,
3320
3320
  g,
3321
3321
  o
3322
- ]), de = !!r, fe = de ? a ? be : ve : a ? ye : ge, pe = f(() => Zr(ee, H, F), [
3322
+ ]), fe = !!r, pe = fe ? a ? be : ve : a ? ye : ge, me = f(() => Zr(ee, H, F), [
3323
3323
  ee,
3324
3324
  H,
3325
3325
  F
3326
- ]), me = p(null), he = p(null), _e = !!l && F, xe = Br({
3327
- wrapperRef: me,
3328
- measureRef: he,
3329
- total: ce.length,
3330
- labelsKey: ce.map(Yr).join("\0"),
3331
- enabled: _e
3332
- }), Se = f(() => n.some((e) => !!e.description), [n]), Ce = !!l && !de, [we, Te] = m(""), Ee = s((e, t) => {
3333
- t.action === "input-change" && Te(e);
3334
- }, []), De = f(() => Ce ? n.filter((e) => !e.disabled && Xr(e, we)) : [], [
3335
- Ce,
3326
+ ]), he = p(null), _e = p(null), xe = !!l && F, Se = Br({
3327
+ wrapperRef: he,
3328
+ measureRef: _e,
3329
+ total: le.length,
3330
+ labelsKey: le.map(Yr).join("\0"),
3331
+ enabled: xe
3332
+ }), Ce = f(() => n.some((e) => !!e.description), [n]), we = !!l && !fe, [Te, Ee] = m(""), De = s((e, t) => {
3333
+ t.action === "input-change" && Ee(e);
3334
+ }, []), Oe = f(() => we ? n.filter((e) => !e.disabled && Xr(e, Te)) : [], [
3335
+ we,
3336
3336
  n,
3337
- we
3338
- ]), Oe = f(() => {
3339
- if (!Ce || De.length === 0) return null;
3340
- let e = new Set(J.map(String)), t = De.filter((t) => e.has(String(t.value))).length;
3337
+ Te
3338
+ ]), ke = f(() => {
3339
+ if (!we || Oe.length === 0) return null;
3340
+ let e = new Set(J.map(String)), t = Oe.filter((t) => e.has(String(t.value))).length;
3341
3341
  return {
3342
- count: De.length,
3343
- checked: t === De.length,
3344
- indeterminate: t > 0 && t < De.length,
3345
- label: I.selectAllLabel(De.length)
3342
+ count: Oe.length,
3343
+ checked: t === Oe.length,
3344
+ indeterminate: t > 0 && t < Oe.length,
3345
+ label: I.selectAllLabel(Oe.length)
3346
3346
  };
3347
3347
  }, [
3348
- Ce,
3349
- De,
3348
+ we,
3349
+ Oe,
3350
3350
  J,
3351
3351
  I
3352
- ]), ke = s(() => {
3353
- if (!Oe) return;
3354
- let e = new Set(De.map((e) => String(e.value))), t;
3355
- if (Oe.checked) t = J.filter((t) => !e.has(String(t)));
3352
+ ]), Ae = s(() => {
3353
+ if (!ke) return;
3354
+ let e = new Set(Oe.map((e) => String(e.value))), t;
3355
+ if (ke.checked) t = J.filter((t) => !e.has(String(t)));
3356
3356
  else {
3357
- K(De);
3357
+ q(Oe);
3358
3358
  let e = new Set(J.map(String));
3359
- t = [...J, ...De.filter((t) => !e.has(String(t.value))).map((e) => e.value)];
3359
+ t = [...J, ...Oe.filter((t) => !e.has(String(t.value))).map((e) => e.value)];
3360
3360
  }
3361
- re(t), g?.(t);
3361
+ G(t), g?.(t);
3362
3362
  }, [
3363
+ ke,
3363
3364
  Oe,
3364
- De,
3365
3365
  J,
3366
- K,
3366
+ q,
3367
3367
  g
3368
- ]), Ae = {
3368
+ ]), je = {
3369
+ ...te,
3369
3370
  inputId: V,
3370
3371
  unstyled: !0,
3371
- classNames: pe,
3372
+ classNames: me,
3372
3373
  className: M,
3373
3374
  isMulti: l,
3374
3375
  options: n,
3375
- loadOptions: le,
3376
+ loadOptions: ue,
3376
3377
  defaultOptions: i,
3377
- value: l ? ce : oe,
3378
- onChange: ue,
3379
- onCreateOption: a ? Y : void 0,
3378
+ value: l ? le : ce,
3379
+ onChange: Y,
3380
+ onCreateOption: a ? de : void 0,
3380
3381
  formatCreateLabel: a ? z : void 0,
3381
3382
  getOptionValue: (e) => String(e.value),
3382
3383
  getOptionLabel: Yr,
3383
- formatOptionLabel: (e, t) => t.context === "value" ? e.label : Se && e.description ? /* @__PURE__ */ Z("span", {
3384
+ formatOptionLabel: (e, t) => t.context === "value" ? e.label : Ce && e.description ? /* @__PURE__ */ Z("span", {
3384
3385
  className: "flex flex-col min-w-0",
3385
3386
  children: [/* @__PURE__ */ X("span", {
3386
3387
  className: "truncate",
@@ -3400,13 +3401,13 @@ var ai = a(function(e, t) {
3400
3401
  loadingMessage: () => I.loadingMessage,
3401
3402
  "aria-invalid": H || void 0,
3402
3403
  "aria-required": C || void 0,
3403
- ...Ce ? {
3404
- inputValue: we,
3405
- onInputChange: Ee,
3406
- selectAllState: Oe,
3407
- onSelectAllToggle: ke
3404
+ ...we ? {
3405
+ inputValue: Te,
3406
+ onInputChange: De,
3407
+ selectAllState: ke,
3408
+ onSelectAllToggle: Ae
3408
3409
  } : {},
3409
- ..._e ? { visibleTagCount: xe } : {},
3410
+ ...xe ? { visibleTagCount: Se } : {},
3410
3411
  components: {
3411
3412
  DropdownIndicator: Qr,
3412
3413
  ClearIndicator: $r,
@@ -3414,12 +3415,12 @@ var ai = a(function(e, t) {
3414
3415
  LoadingIndicator: ni,
3415
3416
  IndicatorSeparator: () => null,
3416
3417
  ...D ? { MenuList: ii } : {},
3417
- ...Ce ? { Menu: ri } : {},
3418
- ..._e ? { MultiValue: ti } : {}
3418
+ ...we ? { Menu: ri } : {},
3419
+ ...xe ? { MultiValue: ti } : {}
3419
3420
  }
3420
3421
  };
3421
3422
  return /* @__PURE__ */ Z("div", {
3422
- ref: me,
3423
+ ref: he,
3423
3424
  "data-test-id": P,
3424
3425
  className: Q("flex flex-col gap-1.5 w-full", N),
3425
3426
  children: [
@@ -3438,12 +3439,12 @@ var ai = a(function(e, t) {
3438
3439
  children: y
3439
3440
  })]
3440
3441
  }),
3441
- /* @__PURE__ */ X(fe, {
3442
+ /* @__PURE__ */ X(pe, {
3442
3443
  ref: t,
3443
- ...Ae
3444
+ ...je
3444
3445
  }),
3445
- _e && /* @__PURE__ */ Z("div", {
3446
- ref: he,
3446
+ xe && /* @__PURE__ */ Z("div", {
3447
+ ref: _e,
3447
3448
  "aria-hidden": !0,
3448
3449
  className: "flex items-center gap-1 whitespace-nowrap",
3449
3450
  style: {
@@ -3452,7 +3453,7 @@ var ai = a(function(e, t) {
3452
3453
  left: -9999,
3453
3454
  visibility: "hidden"
3454
3455
  },
3455
- children: [ce.map((e) => /* @__PURE__ */ Z("span", {
3456
+ children: [le.map((e) => /* @__PURE__ */ Z("span", {
3456
3457
  "data-measure-chip": !0,
3457
3458
  className: Wr,
3458
3459
  children: [/* @__PURE__ */ X("span", {
@@ -3525,7 +3526,7 @@ var ci = a(function({ defaultCollapsed: e = !1, collapsed: t, onCollapsedChange:
3525
3526
  onClick: g,
3526
3527
  "aria-label": h ? "Expand sidebar" : "Collapse sidebar",
3527
3528
  className: Q("ml-auto inline-flex items-center justify-center h-8 w-8 rounded-md text-fg-secondary hover:bg-bg-subtle hover:text-fg-default focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-300", h && "ml-0"),
3528
- children: /* @__PURE__ */ X(I, { className: "h-4 w-4" })
3529
+ children: /* @__PURE__ */ X(F, { className: "h-4 w-4" })
3529
3530
  })
3530
3531
  ]
3531
3532
  }), /* @__PURE__ */ X("nav", {
@@ -4149,7 +4150,7 @@ function Qi({ table: e, enableGlobalFilter: t, enableColumnVisibility: n, search
4149
4150
  size: "sm",
4150
4151
  iconOnly: !0,
4151
4152
  "aria-label": "Refresh",
4152
- leftIcon: /* @__PURE__ */ X(ne, { className: "h-4 w-4" }),
4153
+ leftIcon: /* @__PURE__ */ X(W, { className: "h-4 w-4" }),
4153
4154
  onClick: i
4154
4155
  }),
4155
4156
  a && /* @__PURE__ */ X(nt, {
@@ -4208,7 +4209,7 @@ function na({ row: e, actions: t }) {
4208
4209
  size: "sm",
4209
4210
  iconOnly: !0,
4210
4211
  "aria-label": "Row actions",
4211
- leftIcon: /* @__PURE__ */ X(B, { className: "h-4 w-4" })
4212
+ leftIcon: /* @__PURE__ */ X(z, { className: "h-4 w-4" })
4212
4213
  }) }), /* @__PURE__ */ X(In, {
4213
4214
  align: "end",
4214
4215
  children: t.map((t, n) => /* @__PURE__ */ X(Ln, {
@@ -4331,23 +4332,23 @@ function ua({ header: e, density: t, enableSorting: n, enableFiltering: r, enabl
4331
4332
  type: "button",
4332
4333
  "aria-label": `${typeof h == "string" ? h : c.id} column options`,
4333
4334
  className: "ml-auto shrink-0 text-fg-tertiary hover:text-fg-default focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-300 rounded-sm",
4334
- children: /* @__PURE__ */ X(z, { className: "h-3.5 w-3.5" })
4335
+ children: /* @__PURE__ */ X(R, { className: "h-3.5 w-3.5" })
4335
4336
  }) }), /* @__PURE__ */ Z(In, {
4336
4337
  align: "start",
4337
4338
  children: [
4338
4339
  o && c.getCanPin() && /* @__PURE__ */ Z(Y, { children: [
4339
4340
  c.getIsPinned() !== "left" && /* @__PURE__ */ X(Ln, {
4340
- icon: /* @__PURE__ */ X(U, { className: "h-4 w-4" }),
4341
+ icon: /* @__PURE__ */ X(H, { className: "h-4 w-4" }),
4341
4342
  onSelect: () => c.pin("left"),
4342
4343
  children: "Pin left"
4343
4344
  }),
4344
4345
  c.getIsPinned() !== "right" && /* @__PURE__ */ X(Ln, {
4345
- icon: /* @__PURE__ */ X(U, { className: "h-4 w-4" }),
4346
+ icon: /* @__PURE__ */ X(H, { className: "h-4 w-4" }),
4346
4347
  onSelect: () => c.pin("right"),
4347
4348
  children: "Pin right"
4348
4349
  }),
4349
4350
  c.getIsPinned() && /* @__PURE__ */ X(Ln, {
4350
- icon: /* @__PURE__ */ X(W, { className: "h-4 w-4" }),
4351
+ icon: /* @__PURE__ */ X(U, { className: "h-4 w-4" }),
4351
4352
  onSelect: () => c.pin(!1),
4352
4353
  children: "Unpin"
4353
4354
  })
@@ -4426,9 +4427,9 @@ function fa({ rowCount: e }) {
4426
4427
  }, t)) });
4427
4428
  }
4428
4429
  function pa(e, t) {
4429
- let { data: n, columns: r, loading: i = !1, error: a, emptyMessage: o = "No results", getRowId: s, enableSorting: c = !1, enableMultiSort: l = !1, sorting: u, onSortingChange: d, manualSorting: m = !1, enableFiltering: h = !1, columnFilters: g, onColumnFiltersChange: _, manualFiltering: v = !1, enableGlobalFilter: y = !1, globalFilter: b, onGlobalFilterChange: x, enableRowSelection: S = !1, enableMultiRowSelection: C = !0, rowSelection: w, onRowSelectionChange: T, enableColumnVisibility: E = !1, columnVisibility: D, onColumnVisibilityChange: O, enableColumnOrdering: k = !1, columnOrder: ee, onColumnOrderChange: A, enablePinning: j = !1, columnPinning: M, onColumnPinningChange: N, enableColumnResizing: P = !1, columnResizeMode: F = "onChange", enablePagination: I = !1, pageSize: L = 10, pageSizeOptions: R, pagination: z, onPaginationChange: B, manualPagination: V = !1, pageCount: H, rowCount: U, enableVirtualization: W = !1, estimatedRowHeight: te = 44, maxBodyHeight: ne = 480, onRowClick: re, toolbar: ie = !1, toolbarActions: G, searchPlaceholder: K, onRefresh: q, onExport: ae, density: J = "comfortable", stickyHeader: oe = !1, wrapperClassName: se, className: ce, dataTestId: le } = e, [ue, de] = ca(u, d, []), [fe, pe] = ca(g, _, []), [me, he] = ca(b, x, ""), [ge, _e] = ca(w, T, {}), [ve, ye] = ca(D, O, {}), [be, ke] = ca(ee, A, []), [Ae, je] = ca(M, N, {}), [Me, Ne] = ca(z, B, {
4430
+ let { data: n, columns: r, loading: i = !1, error: a, emptyMessage: o = "No results", getRowId: s, enableSorting: c = !1, enableMultiSort: l = !1, sorting: u, onSortingChange: d, manualSorting: m = !1, enableFiltering: h = !1, columnFilters: g, onColumnFiltersChange: _, manualFiltering: v = !1, enableGlobalFilter: y = !1, globalFilter: b, onGlobalFilterChange: x, enableRowSelection: S = !1, enableMultiRowSelection: C = !0, rowSelection: w, onRowSelectionChange: T, enableColumnVisibility: E = !1, columnVisibility: D, onColumnVisibilityChange: O, enableColumnOrdering: k = !1, columnOrder: ee, onColumnOrderChange: A, enablePinning: j = !1, columnPinning: M, onColumnPinningChange: N, enableColumnResizing: P = !1, columnResizeMode: te = "onChange", enablePagination: F = !1, pageSize: I = 10, pageSizeOptions: L, pagination: R, onPaginationChange: z, manualPagination: B = !1, pageCount: V, rowCount: H, enableVirtualization: U = !1, estimatedRowHeight: ne = 44, maxBodyHeight: W = 480, onRowClick: re, toolbar: G = !1, toolbarActions: K, searchPlaceholder: ie, onRefresh: q, onExport: ae, density: oe = "comfortable", stickyHeader: J = !1, wrapperClassName: se, className: ce, dataTestId: le } = e, [ue, de] = ca(u, d, []), [fe, pe] = ca(g, _, []), [me, he] = ca(b, x, ""), [ge, _e] = ca(w, T, {}), [ve, ye] = ca(D, O, {}), [be, ke] = ca(ee, A, []), [Ae, je] = ca(M, N, {}), [Me, Ne] = ca(R, z, {
4430
4431
  pageIndex: 0,
4431
- pageSize: L
4432
+ pageSize: I
4432
4433
  }), Fe = De({
4433
4434
  data: n,
4434
4435
  columns: f(() => !S || r.some((e) => e.id === "select") ? r : [aa(), ...r], [r, S]),
@@ -4460,35 +4461,35 @@ function pa(e, t) {
4460
4461
  enableRowSelection: S,
4461
4462
  enableMultiRowSelection: C,
4462
4463
  enableColumnResizing: P,
4463
- columnResizeMode: F,
4464
- manualPagination: V,
4465
- pageCount: H,
4466
- rowCount: U,
4464
+ columnResizeMode: te,
4465
+ manualPagination: B,
4466
+ pageCount: V,
4467
+ rowCount: H,
4467
4468
  getCoreRowModel: Ce(),
4468
4469
  getSortedRowModel: c ? Ee() : void 0,
4469
4470
  getFilteredRowModel: h || y ? we() : void 0,
4470
- getPaginationRowModel: I ? Te() : void 0
4471
+ getPaginationRowModel: F ? Te() : void 0
4471
4472
  }), Le = Fe.getRowModel().rows, Re = Fe.getVisibleLeafColumns().length, ze = f(() => be.length > 0 ? be : Fe.getAllLeafColumns().map((e) => e.id), [be, Fe]), Be = ea({
4472
4473
  columnOrder: ze,
4473
4474
  onColumnOrderChange: ke
4474
4475
  }), Ve = (e) => Be.handleDragEnd(e), He = p(null), Ue = xe({
4475
4476
  count: Le.length,
4476
4477
  getScrollElement: () => He.current,
4477
- estimateSize: () => te,
4478
+ estimateSize: () => ne,
4478
4479
  overscan: 10,
4479
- enabled: W
4480
- }), We = W ? Ue.getVirtualItems() : null, Ge = We && We.length > 0 ? We[0]?.start ?? 0 : 0, Ke = We && We.length > 0 ? Ue.getTotalSize() - (We[We.length - 1]?.end ?? 0) : 0, qe = (e) => /* @__PURE__ */ X("tr", {
4480
+ enabled: U
4481
+ }), We = U ? Ue.getVirtualItems() : null, Ge = We && We.length > 0 ? We[0]?.start ?? 0 : 0, Ke = We && We.length > 0 ? Ue.getTotalSize() - (We[We.length - 1]?.end ?? 0) : 0, qe = (e) => /* @__PURE__ */ X("tr", {
4481
4482
  "data-selected": e.getIsSelected() || void 0,
4482
4483
  onClick: re ? () => re(e.original) : void 0,
4483
4484
  className: Q("border-t border-border-default", re && "cursor-pointer hover:bg-bg-container", e.getIsSelected() && "bg-brand-50"),
4484
4485
  children: e.getVisibleCells().map((e) => /* @__PURE__ */ X("td", {
4485
4486
  style: sa(e.column),
4486
- className: Q("bg-bg-default px-4", ra[J], ia[e.column.columnDef.meta?.align ?? "left"]),
4487
+ className: Q("bg-bg-default px-4", ra[oe], ia[e.column.columnDef.meta?.align ?? "left"]),
4487
4488
  children: Se(e.column.columnDef.cell, e.getContext())
4488
4489
  }, e.id))
4489
4490
  }, e.id), Je = (e, t) => /* @__PURE__ */ X("tr", { children: t.map((e) => /* @__PURE__ */ X(ua, {
4490
4491
  header: e,
4491
- density: J,
4492
+ density: oe,
4492
4493
  enableSorting: c,
4493
4494
  enableFiltering: h,
4494
4495
  enableColumnOrdering: k,
@@ -4499,7 +4500,7 @@ function pa(e, t) {
4499
4500
  className: "w-full border-collapse text-p-std text-fg-default",
4500
4501
  style: { width: P ? Fe.getTotalSize() : "100%" },
4501
4502
  children: [/* @__PURE__ */ X("thead", {
4502
- className: Q("text-p-sm font-semibold text-fg-secondary uppercase tracking-wider", oe && "sticky top-0 z-2"),
4503
+ className: Q("text-p-sm font-semibold text-fg-secondary uppercase tracking-wider", J && "sticky top-0 z-2"),
4503
4504
  children: Fe.getHeaderGroups().map((e) => Je(e.id, e.headers))
4504
4505
  }), /* @__PURE__ */ X("tbody", { children: i ? /* @__PURE__ */ X(Yi, {
4505
4506
  columnCount: Re,
@@ -4511,7 +4512,7 @@ function pa(e, t) {
4511
4512
  size: "sm",
4512
4513
  title: o
4513
4514
  })
4514
- }) }) : W && We ? /* @__PURE__ */ Z(Y, { children: [
4515
+ }) }) : U && We ? /* @__PURE__ */ Z(Y, { children: [
4515
4516
  Ge > 0 && /* @__PURE__ */ X("tr", {
4516
4517
  "aria-hidden": !0,
4517
4518
  children: /* @__PURE__ */ X("td", {
@@ -4537,14 +4538,14 @@ function pa(e, t) {
4537
4538
  "data-test-id": le,
4538
4539
  className: Q("w-full rounded-lg border border-border-default bg-bg-default", se, ce),
4539
4540
  children: [
4540
- ie === !1 ? null : ie ?? /* @__PURE__ */ X(Qi, {
4541
+ G === !1 ? null : G ?? /* @__PURE__ */ X(Qi, {
4541
4542
  table: Fe,
4542
4543
  enableGlobalFilter: y,
4543
4544
  enableColumnVisibility: E,
4544
- searchPlaceholder: K,
4545
+ searchPlaceholder: ie,
4545
4546
  onRefresh: q,
4546
4547
  onExport: ae,
4547
- actions: G
4548
+ actions: K
4548
4549
  }),
4549
4550
  a ? /* @__PURE__ */ X("div", {
4550
4551
  className: "p-4",
@@ -4557,8 +4558,8 @@ function pa(e, t) {
4557
4558
  className: "hidden md:block",
4558
4559
  children: /* @__PURE__ */ X("div", {
4559
4560
  ref: He,
4560
- className: Q("w-full overflow-auto", ie === !1 ? "rounded-lg" : "rounded-b-lg"),
4561
- style: W || oe ? { maxHeight: ne } : void 0,
4561
+ className: Q("w-full overflow-auto", G === !1 ? "rounded-lg" : "rounded-b-lg"),
4562
+ style: U || J ? { maxHeight: W } : void 0,
4562
4563
  children: k ? /* @__PURE__ */ X(Oe, {
4563
4564
  sensors: Be.sensors,
4564
4565
  collisionDetection: Be.collisionDetection,
@@ -4581,9 +4582,9 @@ function pa(e, t) {
4581
4582
  onRowClick: re
4582
4583
  }, e.id))
4583
4584
  })] }),
4584
- I && !a && /* @__PURE__ */ X(Ji, {
4585
+ F && !a && /* @__PURE__ */ X(Ji, {
4585
4586
  table: Fe,
4586
- pageSizeOptions: R
4587
+ pageSizeOptions: L
4587
4588
  })
4588
4589
  ]
4589
4590
  });
@@ -4823,10 +4824,10 @@ var ba = {
4823
4824
  }),
4824
4825
  /* @__PURE__ */ Z("span", {
4825
4826
  className: Q("inline-flex h-8 w-16 items-center justify-between rounded-full px-2 transition-colors", "bg-gray-200 peer-checked:bg-gray-700 dark:bg-gray-700 dark:peer-checked:bg-gray-900", "peer-focus-visible:ring-2 peer-focus-visible:ring-brand-300 peer-focus-visible:ring-offset-2"),
4826
- children: [/* @__PURE__ */ X(K, {
4827
+ children: [/* @__PURE__ */ X(ie, {
4827
4828
  className: "size-4 text-yellow-500 z-1",
4828
4829
  "aria-hidden": !0
4829
- }), /* @__PURE__ */ X(R, {
4830
+ }), /* @__PURE__ */ X(L, {
4830
4831
  className: "size-4 text-gray-400 z-1",
4831
4832
  "aria-hidden": !0
4832
4833
  })]