@dinofront/design_system 1.20.3 → 1.20.5

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, Clock as O, Columns3 as k, Construction as A, Copy as j, Download as M, EyeOff as ee, File as te, GripVertical as ne, Info as N, Loader2 as P, Menu as F, Minus as I, Monitor as L, Moon as re, MoreHorizontal as R, MoreVertical as ie, Paperclip as z, Pencil as ae, Pin as oe, PinOff as se, Plus as ce, RefreshCw as le, Search as ue, SearchX as B, Smartphone as de, Sparkles as fe, Sun as pe, Tablet as me, TabletSmartphone as he, Trash2 as ge, UploadCloud as _e, User as V, X as H, XCircle as U } 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, Clock as O, Columns3 as k, Construction as A, Copy as j, Download as M, EyeOff as N, File as ee, GripVertical as te, Info as P, Loader2 as F, Menu as I, Minus as L, Monitor as ne, Moon as re, MoreHorizontal as R, MoreVertical as ie, Paperclip as z, Pencil as ae, Pin as oe, PinOff as se, Plus as ce, RefreshCw as le, Search as ue, SearchX as B, Smartphone as de, Sparkles as fe, Sun as pe, Tablet as me, TabletSmartphone as he, Trash2 as ge, UploadCloud as _e, User as V, X as H, XCircle as U } from "lucide-react";
3
3
  import { clsx as ve } from "clsx";
4
4
  import { extendTailwindMerge as ye } from "tailwind-merge";
5
5
  import { Fragment as W, jsx as G, jsxs as K } from "react/jsx-runtime";
@@ -205,7 +205,7 @@ var ot = {
205
205
  },
206
206
  className: X("inline-flex items-center justify-center whitespace-nowrap font-medium transition-colors outline-none cursor-pointer", a ? st[t] : ot[t], ct[e], s && lt[e], o && "w-full", l),
207
207
  ...p,
208
- children: i ? /* @__PURE__ */ G(P, {
208
+ children: i ? /* @__PURE__ */ G(F, {
209
209
  className: "h-4 w-4 animate-spin",
210
210
  "aria-hidden": !0
211
211
  }) : /* @__PURE__ */ K(W, { children: [
@@ -244,7 +244,7 @@ function mt(e, { accept: t, maxSizeMB: n }) {
244
244
  return t && !dt(e, t) ? "type" : n !== void 0 && e.size > n * 1024 * 1024 ? "size" : null;
245
245
  }
246
246
  var ht = a(function({ accept: e, multiple: t = !1, maxSizeMB: n, hint: r, onFiles: i, disabled: a, validateFiles: o = !1, maxFiles: s, dedupe: c = o, currentFiles: l = [], onReject: d, showFileList: f = !1, onRemoveFile: h, mode: g = "dropzone", triggerLabel: _, triggerIcon: v, label: y, required: b, error: x = !1, errorText: S, labelAddons: C, className: w, dataTestId: T, ...E }, D) {
247
- let O = p(null), [k, A] = m(!1), j = p(0), M = x || !!S, ee = u(), te = S ? `${ee}-error` : void 0, ne = (t) => {
247
+ let O = p(null), [k, A] = m(!1), j = p(0), M = x || !!S, N = u(), ee = S ? `${N}-error` : void 0, te = (t) => {
248
248
  if (!t.length) return;
249
249
  if (!o) {
250
250
  i?.(t);
@@ -280,19 +280,19 @@ var ht = a(function({ accept: e, multiple: t = !1, maxSizeMB: n, hint: r, onFile
280
280
  r.push(i), u.push(i), --f;
281
281
  }
282
282
  r.length && i?.(r), a.length && d?.(a);
283
- }, N = (e) => {
284
- e.preventDefault(), j.current = 0, A(!1), !a && ne(Array.from(e.dataTransfer.files ?? []));
285
- }, P = r ?? `${e ? e.toUpperCase().replace(/\./g, "") : "Any file"}${n ? `, up to ${n} MB` : ""}`, F = /* @__PURE__ */ G("input", {
283
+ }, P = (e) => {
284
+ e.preventDefault(), j.current = 0, A(!1), !a && te(Array.from(e.dataTransfer.files ?? []));
285
+ }, F = r ?? `${e ? e.toUpperCase().replace(/\./g, "") : "Any file"}${n ? `, up to ${n} MB` : ""}`, I = /* @__PURE__ */ G("input", {
286
286
  ref: O,
287
287
  type: "file",
288
288
  accept: e,
289
289
  multiple: t,
290
290
  disabled: a,
291
291
  onChange: (e) => {
292
- ne(Array.from(e.target.files ?? [])), e.target.value = "";
292
+ te(Array.from(e.target.files ?? [])), e.target.value = "";
293
293
  },
294
294
  className: "sr-only"
295
- }), I = (y || C) && /* @__PURE__ */ K("div", {
295
+ }), L = (y || C) && /* @__PURE__ */ K("div", {
296
296
  className: "flex items-center gap-1.5",
297
297
  children: [y && /* @__PURE__ */ K("span", {
298
298
  className: "text-p-std font-medium text-fg-default inline-flex items-center gap-1",
@@ -301,8 +301,8 @@ var ht = a(function({ accept: e, multiple: t = !1, maxSizeMB: n, hint: r, onFile
301
301
  className: "inline-flex items-center gap-1",
302
302
  children: C
303
303
  })]
304
- }), L = S ? /* @__PURE__ */ G("p", {
305
- id: `${ee}-error`,
304
+ }), ne = S ? /* @__PURE__ */ G("p", {
305
+ id: `${N}-error`,
306
306
  className: "text-p-sm text-red-700",
307
307
  children: S
308
308
  }) : null, re = f && l.length > 0 && /* @__PURE__ */ G("div", {
@@ -320,9 +320,9 @@ var ht = a(function({ accept: e, multiple: t = !1, maxSizeMB: n, hint: r, onFile
320
320
  className: X("flex flex-col gap-1.5", w),
321
321
  ...E,
322
322
  children: [
323
- I,
323
+ L,
324
324
  re,
325
- L
325
+ ne
326
326
  ]
327
327
  });
328
328
  if (g !== "dropzone") {
@@ -333,7 +333,7 @@ var ht = a(function({ accept: e, multiple: t = !1, maxSizeMB: n, hint: r, onFile
333
333
  className: X("flex flex-col gap-1.5", w),
334
334
  ...E,
335
335
  children: [
336
- I,
336
+ L,
337
337
  /* @__PURE__ */ G(ut, {
338
338
  type: "button",
339
339
  variant: "secondary",
@@ -344,9 +344,9 @@ var ht = a(function({ accept: e, multiple: t = !1, maxSizeMB: n, hint: r, onFile
344
344
  "aria-label": e ? "Upload file" : void 0,
345
345
  children: e ? v ?? /* @__PURE__ */ G(ae, { className: "h-4 w-4" }) : _ ?? "Choose a file"
346
346
  }),
347
- F,
347
+ I,
348
348
  re,
349
- L
349
+ ne
350
350
  ]
351
351
  });
352
352
  }
@@ -359,7 +359,7 @@ var ht = a(function({ accept: e, multiple: t = !1, maxSizeMB: n, hint: r, onFile
359
359
  onDragLeave: () => {
360
360
  j.current = Math.max(0, j.current - 1), j.current === 0 && A(!1);
361
361
  },
362
- onDrop: N,
362
+ onDrop: P,
363
363
  onClick: () => !a && O.current?.click(),
364
364
  role: "button",
365
365
  tabIndex: 0,
@@ -368,7 +368,7 @@ var ht = a(function({ accept: e, multiple: t = !1, maxSizeMB: n, hint: r, onFile
368
368
  },
369
369
  "aria-disabled": a || void 0,
370
370
  "aria-invalid": M || void 0,
371
- "aria-describedby": te,
371
+ "aria-describedby": ee,
372
372
  "data-test-id": T,
373
373
  className: X("flex flex-col items-center justify-center text-center gap-2 px-6 py-8 rounded-lg border-2 border-dashed cursor-pointer transition-colors outline-none", M ? "border-red-300 bg-bg-danger-lighter" : k ? "border-brand-500 bg-brand-20" : "border-border-default bg-bg-container hover:bg-bg-subtle", "focus-visible:ring-2 focus-visible:ring-brand-300 focus-visible:ring-offset-1", a && "opacity-50 cursor-not-allowed", w),
374
374
  ...E,
@@ -387,19 +387,19 @@ var ht = a(function({ accept: e, multiple: t = !1, maxSizeMB: n, hint: r, onFile
387
387
  }), " or drag & drop it here."]
388
388
  }), /* @__PURE__ */ G("p", {
389
389
  className: "text-p-sm text-fg-tertiary",
390
- children: P
390
+ children: F
391
391
  })]
392
392
  }),
393
- F
393
+ I
394
394
  ]
395
395
  });
396
- return !I && !L && !re ? R : /* @__PURE__ */ K("div", {
396
+ return !L && !ne && !re ? R : /* @__PURE__ */ K("div", {
397
397
  className: "flex flex-col gap-1.5",
398
398
  children: [
399
- I,
399
+ L,
400
400
  R,
401
401
  re,
402
- L
402
+ ne
403
403
  ]
404
404
  });
405
405
  }), gt = {
@@ -421,7 +421,7 @@ var ht = a(function({ accept: e, multiple: t = !1, maxSizeMB: n, hint: r, onFile
421
421
  alt: "",
422
422
  className: "h-full w-full object-cover",
423
423
  onError: () => g(!0)
424
- }) : /* @__PURE__ */ G(te, { className: "h-4 w-4" })
424
+ }) : /* @__PURE__ */ G(ee, { className: "h-4 w-4" })
425
425
  }),
426
426
  /* @__PURE__ */ K("div", {
427
427
  className: "flex-1 min-w-0",
@@ -854,7 +854,7 @@ var Tt = a(function({ src: e, alt: t, name: n, size: r = "md", status: i, shape:
854
854
  ...m
855
855
  }), /* @__PURE__ */ G("span", {
856
856
  className: X("flex items-center justify-center border transition-colors", Kt[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"),
857
- children: G(a ? I : b, {
857
+ children: G(a ? L : b, {
858
858
  className: X(qt[e], "text-white"),
859
859
  strokeWidth: 3,
860
860
  "aria-hidden": !0
@@ -981,7 +981,7 @@ function nn({ content: e, children: t, side: r = "top", align: i = "center", off
981
981
  align: i,
982
982
  offset: a,
983
983
  flip: f
984
- }), ee = Zt();
984
+ }), N = Zt();
985
985
  if (l(() => {
986
986
  if (!w) return;
987
987
  let e = (e) => {
@@ -1015,15 +1015,15 @@ function nn({ content: e, children: t, side: r = "top", align: i = "center", off
1015
1015
  _,
1016
1016
  E
1017
1017
  ]), !o(t)) return t;
1018
- let te = t.props ?? {}, ne = t.ref, N = n(t, {
1019
- ref: Yt(T, ne),
1018
+ let ee = t.props ?? {}, te = t.ref, P = n(t, {
1019
+ ref: Yt(T, te),
1020
1020
  onClick: (e) => {
1021
- te.onClick?.(e), e.defaultPrevented || k(!w);
1021
+ ee.onClick?.(e), e.defaultPrevented || k(!w);
1022
1022
  },
1023
1023
  "aria-haspopup": "dialog",
1024
1024
  "aria-expanded": w
1025
- }), P = v ?? ee;
1026
- return /* @__PURE__ */ K(W, { children: [N, w && P && be(/* @__PURE__ */ K("div", {
1025
+ }), F = v ?? N;
1026
+ return /* @__PURE__ */ K(W, { children: [P, w && F && be(/* @__PURE__ */ K("div", {
1027
1027
  ref: Yt(D),
1028
1028
  id: O,
1029
1029
  role: "dialog",
@@ -1038,7 +1038,7 @@ function nn({ content: e, children: t, side: r = "top", align: i = "center", off
1038
1038
  style: j,
1039
1039
  className: X("absolute size-2 rotate-45 bg-bg-default", tn[M])
1040
1040
  })]
1041
- }), P)] });
1041
+ }), F)] });
1042
1042
  }
1043
1043
  //#endregion
1044
1044
  //#region src/components/Copy/Copy.tsx
@@ -1202,7 +1202,7 @@ var un = a(function({ label: e, labelAddons: t, helperText: n, errorText: r, siz
1202
1202
  onClick: () => T(S - a),
1203
1203
  "aria-label": "Decrease",
1204
1204
  className: dn,
1205
- children: /* @__PURE__ */ G(I, { className: "size-4" })
1205
+ children: /* @__PURE__ */ G(L, { className: "size-4" })
1206
1206
  }),
1207
1207
  rightAddon: /* @__PURE__ */ G("button", {
1208
1208
  type: "button",
@@ -1274,31 +1274,31 @@ function Tn(e) {
1274
1274
  let t = String(e.getMonth() + 1).padStart(2, "0"), n = String(e.getDate()).padStart(2, "0");
1275
1275
  return `${e.getFullYear()}-${t}-${n}`;
1276
1276
  }
1277
- var En = 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, menuPlacement: D = "auto", error: O = !1, errorText: k, id: A, className: j, wrapperClassName: M, dataTestId: ee }, te) {
1278
- let ne = u(), N = A ?? ne, [P, F] = m(!1), [I, L] = m(e ?? i?.start ?? /* @__PURE__ */ new Date()), [re, R] = m(null), [ie, z] = m(null), ae = p(null), oe = p(null), se = Zt(), { style: ce, resolvedSide: le } = en({
1277
+ var En = 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, menuPlacement: D = "auto", error: O = !1, errorText: k, id: A, className: j, wrapperClassName: M, dataTestId: N }, ee) {
1278
+ let te = u(), P = A ?? te, [F, I] = m(!1), [L, ne] = m(e ?? i?.start ?? /* @__PURE__ */ new Date()), [re, R] = m(null), [ie, z] = m(null), ae = p(null), oe = p(null), se = Zt(), { style: ce, resolvedSide: le } = en({
1279
1279
  anchor: oe,
1280
1280
  panel: ie,
1281
- open: P,
1281
+ open: F,
1282
1282
  side: D === "top" ? "top" : "bottom",
1283
1283
  align: "start",
1284
1284
  offset: mn,
1285
1285
  flip: D === "auto",
1286
- recomputeKey: `${I.getFullYear()}-${I.getMonth()}-${r}`
1287
- }), ue = O || !!k, B = k ? `${N}-error` : g ? `${N}-help` : void 0;
1286
+ recomputeKey: `${L.getFullYear()}-${L.getMonth()}-${r}`
1287
+ }), ue = O || !!k, B = k ? `${P}-error` : g ? `${P}-help` : void 0;
1288
1288
  l(() => {
1289
- b && F(!1);
1289
+ b && I(!1);
1290
1290
  }, [b]), l(() => {
1291
- if (!P) return;
1291
+ if (!F) return;
1292
1292
  let e = (e) => {
1293
1293
  let t = e.target;
1294
- ae.current?.contains(t) || ie?.contains(t) || F(!1);
1294
+ ae.current?.contains(t) || ie?.contains(t) || I(!1);
1295
1295
  };
1296
1296
  return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
1297
- }, [P, ie]);
1297
+ }, [F, ie]);
1298
1298
  let de = r ? i?.start ? `${Cn(i.start, c)}${i.end ? ` – ${Cn(i.end, c)}` : ""}` : "" : e ? Cn(e, c) : "";
1299
1299
  function fe(e) {
1300
1300
  if (!r) {
1301
- t?.(e), F(!1);
1301
+ t?.(e), I(!1);
1302
1302
  return;
1303
1303
  }
1304
1304
  let n = i ?? {
@@ -1322,7 +1322,7 @@ var En = a(function({ value: e, onChange: t, clearable: n = !1, range: r = !1, r
1322
1322
  a?.({
1323
1323
  start: n.start,
1324
1324
  end: e
1325
- }), F(!1);
1325
+ }), I(!1);
1326
1326
  }
1327
1327
  function pe(e) {
1328
1328
  e.stopPropagation(), r ? (a?.({
@@ -1336,7 +1336,7 @@ var En = a(function({ value: e, onChange: t, clearable: n = !1, range: r = !1, r
1336
1336
  monthNames: gn(e),
1337
1337
  weekdayNames: vn(e)
1338
1338
  };
1339
- }, [s]), ge = wn(I), _e = xn(/* @__PURE__ */ new Date()), V = Z(ee), U = i ?? {
1339
+ }, [s]), ge = wn(L), _e = xn(/* @__PURE__ */ new Date()), V = Z(N), U = i ?? {
1340
1340
  start: null,
1341
1341
  end: null
1342
1342
  }, ve = U.end ?? re;
@@ -1346,7 +1346,7 @@ var En = a(function({ value: e, onChange: t, clearable: n = !1, range: r = !1, r
1346
1346
  className: X("flex flex-col gap-1.5", v && "w-full", M),
1347
1347
  children: [
1348
1348
  d && /* @__PURE__ */ K("label", {
1349
- htmlFor: N,
1349
+ htmlFor: P,
1350
1350
  className: "text-p-std font-medium text-fg-default inline-flex items-center gap-1",
1351
1351
  children: [d, h && /* @__PURE__ */ G(at, {})]
1352
1352
  }),
@@ -1354,9 +1354,9 @@ var En = a(function({ value: e, onChange: t, clearable: n = !1, range: r = !1, r
1354
1354
  ref: oe,
1355
1355
  className: "relative",
1356
1356
  children: [/* @__PURE__ */ K("button", {
1357
- ref: te,
1358
- id: N,
1359
- "data-test-id": ee,
1357
+ ref: ee,
1358
+ id: P,
1359
+ "data-test-id": N,
1360
1360
  "data-value": r ? void 0 : Tn(e),
1361
1361
  "data-from": r ? Tn(i?.start) : void 0,
1362
1362
  "data-to": r ? Tn(i?.end) : void 0,
@@ -1365,7 +1365,7 @@ var En = a(function({ value: e, onChange: t, clearable: n = !1, range: r = !1, r
1365
1365
  "aria-invalid": ue || void 0,
1366
1366
  "aria-required": h || void 0,
1367
1367
  "aria-describedby": B,
1368
- onClick: () => F((e) => !e),
1368
+ onClick: () => I((e) => !e),
1369
1369
  className: X("inline-flex items-center gap-2 rounded-lg border bg-bg-default text-left transition-colors focus-visible:outline-none focus-visible:ring-2", ue ? "border-red-600" : "border-border-default", !b && !ue && "hover:border-border-strong", ue ? "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]", pn[o], j),
1370
1370
  children: [/* @__PURE__ */ G("span", {
1371
1371
  className: X("flex-1 text-left truncate", b ? "text-fg-disabled" : de ? "text-fg-default" : "text-fg-tertiary"),
@@ -1381,7 +1381,7 @@ var En = a(function({ value: e, onChange: t, clearable: n = !1, range: r = !1, r
1381
1381
  className: "inline-flex items-center justify-center rounded-full p-0.5 hover:bg-bg-container",
1382
1382
  children: /* @__PURE__ */ G(H, { className: "w-4 h-4 text-fg-secondary" })
1383
1383
  }) : /* @__PURE__ */ G(y, { className: X("w-4 h-4", b ? "text-fg-disabled" : "text-fg-secondary") })]
1384
- }), P && se && be(/* @__PURE__ */ K("div", {
1384
+ }), F && se && be(/* @__PURE__ */ K("div", {
1385
1385
  ref: z,
1386
1386
  "data-test-id": V("calendar"),
1387
1387
  "data-side": le,
@@ -1393,25 +1393,25 @@ var En = a(function({ value: e, onChange: t, clearable: n = !1, range: r = !1, r
1393
1393
  /* @__PURE__ */ G("button", {
1394
1394
  type: "button",
1395
1395
  className: "w-8 h-8 rounded-md hover:bg-bg-container flex items-center justify-center text-fg-secondary",
1396
- onClick: () => L(new Date(I.getFullYear(), I.getMonth() - 1, 1)),
1396
+ onClick: () => ne(new Date(L.getFullYear(), L.getMonth() - 1, 1)),
1397
1397
  "aria-label": "Previous month",
1398
1398
  "data-test-id": V("prev-month"),
1399
1399
  children: /* @__PURE__ */ G(C, { className: "w-4 h-4" })
1400
1400
  }),
1401
1401
  /* @__PURE__ */ K("div", {
1402
1402
  "data-test-id": V("month-label"),
1403
- "data-month": `${I.getFullYear()}-${String(I.getMonth() + 1).padStart(2, "0")}`,
1403
+ "data-month": `${L.getFullYear()}-${String(L.getMonth() + 1).padStart(2, "0")}`,
1404
1404
  className: "text-p-md font-semibold text-fg-default",
1405
1405
  children: [
1406
- me[I.getMonth()],
1406
+ me[L.getMonth()],
1407
1407
  " ",
1408
- I.getFullYear()
1408
+ L.getFullYear()
1409
1409
  ]
1410
1410
  }),
1411
1411
  /* @__PURE__ */ G("button", {
1412
1412
  type: "button",
1413
1413
  className: "w-8 h-8 rounded-md hover:bg-bg-container flex items-center justify-center text-fg-secondary",
1414
- onClick: () => L(new Date(I.getFullYear(), I.getMonth() + 1, 1)),
1414
+ onClick: () => ne(new Date(L.getFullYear(), L.getMonth() + 1, 1)),
1415
1415
  "aria-label": "Next month",
1416
1416
  "data-test-id": V("next-month"),
1417
1417
  children: /* @__PURE__ */ G(w, { className: "w-4 h-4" })
@@ -1444,11 +1444,11 @@ var En = a(function({ value: e, onChange: t, clearable: n = !1, range: r = !1, r
1444
1444
  }), se)]
1445
1445
  }),
1446
1446
  k ? /* @__PURE__ */ G("p", {
1447
- id: `${N}-error`,
1447
+ id: `${P}-error`,
1448
1448
  className: "text-p-sm text-red-700",
1449
1449
  children: k
1450
1450
  }) : g ? /* @__PURE__ */ G("p", {
1451
- id: `${N}-help`,
1451
+ id: `${P}-help`,
1452
1452
  className: "text-p-sm text-fg-secondary",
1453
1453
  children: g
1454
1454
  }) : null
@@ -1643,7 +1643,7 @@ var En = a(function({ value: e, onChange: t, clearable: n = !1, range: r = !1, r
1643
1643
  }, In = {
1644
1644
  mobile: de,
1645
1645
  tablet: me,
1646
- desktop: L,
1646
+ desktop: ne,
1647
1647
  "mobile-tablet": he
1648
1648
  }, Ln = a(function({ type: e = "desktop", locale: t = "en-US", title: n, description: r, icon: i, fillHeight: a = !1, className: o, dataTestId: s, ...c }, l) {
1649
1649
  let u = Fn[t][e];
@@ -2244,14 +2244,14 @@ var Dr = a(function({ label: e, value: t, active: n = !1, size: r = "md", disabl
2244
2244
  defaultValues: r,
2245
2245
  shouldFocusError: s,
2246
2246
  shouldUnregister: o
2247
- }), { errors: O, isDirty: k, isSubmitted: A, isSubmitting: j, dirtyFields: M, isValid: ee } = y;
2247
+ }), { errors: O, isDirty: k, isSubmitted: A, isSubmitting: j, dirtyFields: M, isValid: N } = y;
2248
2248
  l(() => {
2249
2249
  let e = Object.keys(O).filter((e) => e !== "root" && e !== "form");
2250
2250
  e.length > 0 && T(e);
2251
2251
  }, [d]);
2252
- let te = h((e) => {
2252
+ let ee = h((e) => {
2253
2253
  u?.(e, y, M);
2254
- }), ne = {
2254
+ }), te = {
2255
2255
  control: v,
2256
2256
  register: g,
2257
2257
  errors: O,
@@ -2267,19 +2267,19 @@ var Dr = a(function({ label: e, value: t, active: n = !1, size: r = "md", disabl
2267
2267
  isDirty: k,
2268
2268
  isSubmitted: A,
2269
2269
  isSubmitting: j,
2270
- isValid: ee,
2270
+ isValid: N,
2271
2271
  dirtyFields: M,
2272
- submit: te
2272
+ submit: ee
2273
2273
  };
2274
2274
  return /* @__PURE__ */ G("form", {
2275
2275
  ref: m,
2276
2276
  id: c,
2277
- onSubmit: te,
2277
+ onSubmit: ee,
2278
2278
  "data-test-id": f,
2279
2279
  className: X("flex flex-col gap-4", t),
2280
2280
  ...p,
2281
2281
  children: /* @__PURE__ */ K(nr.Provider, {
2282
- value: ne,
2282
+ value: te,
2283
2283
  children: [e, i && i.length > 0 && /* @__PURE__ */ G("div", {
2284
2284
  className: "flex items-center gap-3",
2285
2285
  "data-test-id": f ? `${f}-buttons` : void 0,
@@ -2361,7 +2361,7 @@ var Dr = a(function({ label: e, value: t, active: n = !1, size: r = "md", disabl
2361
2361
  info: {
2362
2362
  container: "bg-blue-50 border-blue-200",
2363
2363
  iconColor: "text-blue-700",
2364
- DefaultIcon: N
2364
+ DefaultIcon: P
2365
2365
  },
2366
2366
  discovery: {
2367
2367
  container: "bg-purple-50 border-purple-200",
@@ -2938,8 +2938,10 @@ function pi(e) {
2938
2938
  return e.searchText ?? (typeof e.label == "string" ? e.label : String(e.value));
2939
2939
  }
2940
2940
  function mi(e, t) {
2941
- let n = t.trim().toLowerCase();
2942
- return !n || `${pi(e)} ${String(e.value)}`.toLowerCase().includes(n);
2941
+ let n = t.trim().toLowerCase().split(/\s+/).filter(Boolean);
2942
+ if (n.length === 0) return !0;
2943
+ let r = `${pi(e)} ${String(e.value)}`.toLowerCase();
2944
+ return n.every((e) => r.includes(e));
2943
2945
  }
2944
2946
  function hi(e) {
2945
2947
  try {
@@ -2981,9 +2983,9 @@ function yi(e, t, n) {
2981
2983
  clearIndicator: () => "text-fg-secondary hover:text-fg-default cursor-pointer p-0.5",
2982
2984
  dropdownIndicator: () => "text-fg-secondary p-0.5",
2983
2985
  indicatorSeparator: () => "hidden",
2984
- menu: ({ placement: e }) => X("rounded-lg border border-border-default bg-bg-default shadow-z4 overflow-hidden z-50!", e === "top" ? "mb-1" : "mt-1"),
2986
+ menu: ({ placement: e }) => X("rounded-lg border border-border-default bg-bg-default shadow-z4 overflow-hidden z-50", e === "top" ? "mb-1" : "mt-1"),
2985
2987
  menuList: () => "max-h-60 overflow-y-auto py-1",
2986
- menuPortal: () => "z-50!",
2988
+ menuPortal: () => "z-50",
2987
2989
  group: () => "py-1",
2988
2990
  groupHeading: () => "px-3 pt-2 pb-1 text-label-sm font-medium uppercase tracking-wide text-fg-tertiary select-none",
2989
2991
  option: ({ isFocused: e, isSelected: t, isDisabled: n }) => X("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"),
@@ -3069,7 +3071,7 @@ function ki(e) {
3069
3071
  });
3070
3072
  }
3071
3073
  function Ai() {
3072
- return /* @__PURE__ */ G(P, {
3074
+ return /* @__PURE__ */ G(F, {
3073
3075
  className: "h-4 w-4 animate-spin text-fg-secondary",
3074
3076
  "aria-hidden": !0
3075
3077
  });
@@ -3151,7 +3153,7 @@ function Mi(t) {
3151
3153
  });
3152
3154
  }
3153
3155
  var Ni = a(function(e, t) {
3154
- let { options: n, loadOptions: r, defaultOptions: i, creatable: a = !1, onCreateOption: o, formatCreateLabel: c, isMulti: d, value: h, defaultValue: g, onChange: _, placeholder: v, label: y, labelAddons: b, dropdownIcon: x, helperText: S, errorText: C, error: w = !1, required: T = !0, loading: E = !1, clearable: D = !1, searchable: O, virtualized: k = !1, emptyText: A, locale: j = "en-US", storageKey: M, saveSelectionLabel: ee, size: te = "md", disabled: ne = !1, id: N, className: P, wrapperClassName: F, dataTestId: I, inputValue: L, onInputChange: re, ...R } = e, ie = e.isMulti ? !!e.singleLine : !1, z = oi[j], ae = v ?? z.placeholder, oe = A ?? z.noResults, se = c ?? ((e) => z.createLabel(e)), ce = u(), le = N ?? ce, ue = w || !!C, B = h !== void 0, [de, fe] = m(() => {
3156
+ let { options: n, loadOptions: r, defaultOptions: i, creatable: a = !1, onCreateOption: o, formatCreateLabel: c, isMulti: d, value: h, defaultValue: g, onChange: _, placeholder: v, label: y, labelAddons: b, dropdownIcon: x, helperText: S, errorText: C, error: w = !1, required: T = !0, loading: E = !1, clearable: D = !1, searchable: O, virtualized: k = !1, emptyText: A, locale: j = "en-US", storageKey: M, saveSelectionLabel: N, size: ee = "md", disabled: te = !1, id: P, className: F, wrapperClassName: I, dataTestId: L, inputValue: ne, onInputChange: re, ...R } = e, ie = e.isMulti ? !!e.singleLine : !1, z = oi[j], ae = v ?? z.placeholder, oe = A ?? z.noResults, se = c ?? ((e) => z.createLabel(e)), ce = u(), le = P ?? ce, ue = w || !!C, B = h !== void 0, [de, fe] = m(() => {
3155
3157
  if (!d) {
3156
3158
  if (M && !B) {
3157
3159
  let e = hi(M);
@@ -3222,8 +3224,8 @@ var Ni = a(function(e, t) {
3222
3224
  U,
3223
3225
  _,
3224
3226
  o
3225
- ]), q = !!r, ke = O ?? (q || a ? !0 : n.length >= 10), Ae = q ? a ? Oe : Ee : a ? De : Te, je = f(() => yi(te, ue, ie), [
3226
- te,
3227
+ ]), q = !!r, ke = O ?? (q || a ? !0 : n.length >= 10), Ae = q ? a ? Oe : Ee : a ? De : Te, je = f(() => yi(ee, ue, ie), [
3228
+ ee,
3227
3229
  ue,
3228
3230
  ie
3229
3231
  ]), Me = p(null), Ne = p(null), Pe = p(null), Fe = !!d && ie, Ie = ai({
@@ -3262,13 +3264,13 @@ var Ni = a(function(e, t) {
3262
3264
  });
3263
3265
  }, [M, Be]), He = f(() => M ? {
3264
3266
  checked: he,
3265
- label: ee ?? z.saveSelectionLabel
3267
+ label: N ?? z.saveSelectionLabel
3266
3268
  } : null, [
3267
3269
  M,
3268
3270
  he,
3269
- ee,
3271
+ N,
3270
3272
  z
3271
- ]), [Ue, We] = m(""), J = L ?? Ue, Ge = ze || L !== void 0 || re !== void 0, Ke = s((e, t) => {
3273
+ ]), [Ue, We] = m(""), J = ne ?? Ue, Ge = ze || ne !== void 0 || re !== void 0, Ke = s((e, t) => {
3272
3274
  We(e), re?.(e, t);
3273
3275
  }, [re]), Y = f(() => ze ? n.filter((e) => !e.disabled && mi(e, J)) : [], [
3274
3276
  ze,
@@ -3305,14 +3307,15 @@ var Ni = a(function(e, t) {
3305
3307
  U,
3306
3308
  _
3307
3309
  ]), Z = Zt(), Ye = {
3310
+ ...q ? {} : { filterOption: (e, t) => e.data.__isNew__ === !0 || mi(e.data, t) },
3308
3311
  ...R,
3309
- dataTestId: I,
3312
+ dataTestId: L,
3310
3313
  dropdownIcon: x,
3311
- inputValueControlled: L !== void 0,
3314
+ inputValueControlled: ne !== void 0,
3312
3315
  inputId: le,
3313
3316
  unstyled: !0,
3314
3317
  classNames: je,
3315
- className: P,
3318
+ className: F,
3316
3319
  isMulti: d,
3317
3320
  options: Re,
3318
3321
  loadOptions: Se,
@@ -3341,7 +3344,7 @@ var Ni = a(function(e, t) {
3341
3344
  className: "min-w-0 flex-1 truncate",
3342
3345
  children: n
3343
3346
  }), /* @__PURE__ */ G("span", {
3344
- "data-test-id": xi({ dataTestId: I }, `option-${String(e.value)}-actions`),
3347
+ "data-test-id": xi({ dataTestId: L }, `option-${String(e.value)}-actions`),
3345
3348
  className: "ml-auto inline-flex shrink-0 items-center",
3346
3349
  onMouseDown: (e) => {
3347
3350
  e.preventDefault(), e.stopPropagation();
@@ -3353,7 +3356,7 @@ var Ni = a(function(e, t) {
3353
3356
  },
3354
3357
  isOptionDisabled: (e) => !!e.disabled,
3355
3358
  placeholder: ae,
3356
- isDisabled: ne || E,
3359
+ isDisabled: te || E,
3357
3360
  isClearable: D,
3358
3361
  isSearchable: ke,
3359
3362
  isLoading: E || void 0,
@@ -3397,8 +3400,8 @@ var Ni = a(function(e, t) {
3397
3400
  };
3398
3401
  return /* @__PURE__ */ K("div", {
3399
3402
  ref: Me,
3400
- "data-test-id": I,
3401
- className: X("flex flex-col gap-1.5 w-full", F),
3403
+ "data-test-id": L,
3404
+ className: X("flex flex-col gap-1.5 w-full", I),
3402
3405
  children: [
3403
3406
  (y || b) && /* @__PURE__ */ K("div", {
3404
3407
  className: "flex items-center gap-1.5",
@@ -3498,7 +3501,7 @@ var Ii = a(function({ defaultCollapsed: e = !1, collapsed: t, onCollapsedChange:
3498
3501
  onClick: g,
3499
3502
  "aria-label": h ? "Expand sidebar" : "Collapse sidebar",
3500
3503
  className: X("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"),
3501
- children: /* @__PURE__ */ G(F, { className: "h-4 w-4" })
3504
+ children: /* @__PURE__ */ G(I, { className: "h-4 w-4" })
3502
3505
  })
3503
3506
  ]
3504
3507
  }), /* @__PURE__ */ G("nav", {
@@ -3618,11 +3621,11 @@ var Vi = a(function({ variant: e = "text", animation: t = "pulse", width: n, hei
3618
3621
  },
3619
3622
  info: {
3620
3623
  container: "bg-gray-900 dark:bg-gray-700 text-white",
3621
- icon: N
3624
+ icon: P
3622
3625
  },
3623
3626
  neutral: {
3624
3627
  container: "bg-gray-900 dark:bg-gray-700 text-white",
3625
- icon: N
3628
+ icon: P
3626
3629
  }
3627
3630
  }, Ui = {
3628
3631
  success: "text-green-400",
@@ -4222,7 +4225,7 @@ function ja({ header: e, density: t, enableSorting: n, enableFiltering: r, enabl
4222
4225
  "aria-label": `Reorder ${typeof h == "string" ? h : c.id} column`,
4223
4226
  ...d.attributes,
4224
4227
  ...d.listeners,
4225
- children: /* @__PURE__ */ G(ne, { className: "h-3.5 w-3.5" })
4228
+ children: /* @__PURE__ */ G(te, { className: "h-3.5 w-3.5" })
4226
4229
  }),
4227
4230
  n && c.getCanSort() ? /* @__PURE__ */ K("button", {
4228
4231
  type: "button",
@@ -4266,7 +4269,7 @@ function ja({ header: e, density: t, enableSorting: n, enableFiltering: r, enabl
4266
4269
  ] }),
4267
4270
  o && c.getCanPin() && s && c.getCanHide() && /* @__PURE__ */ G(br, {}),
4268
4271
  s && c.getCanHide() && /* @__PURE__ */ G(yr, {
4269
- icon: /* @__PURE__ */ G(ee, { className: "h-4 w-4" }),
4272
+ icon: /* @__PURE__ */ G(N, { className: "h-4 w-4" }),
4270
4273
  onSelect: () => c.toggleVisibility(!1),
4271
4274
  children: "Hide column"
4272
4275
  })
@@ -4338,9 +4341,9 @@ function Na({ rowCount: e }) {
4338
4341
  }, t)) });
4339
4342
  }
4340
4343
  function Pa(e, t) {
4341
- 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: h, manualSorting: g = !1, enableFiltering: _ = !1, columnFilters: v, onColumnFiltersChange: y, manualFiltering: b = !1, enableGlobalFilter: x = !1, globalFilter: S, onGlobalFilterChange: C, enableRowSelection: w = !1, enableMultiRowSelection: T = !0, rowSelection: E, onRowSelectionChange: D, enableColumnVisibility: O = !1, columnVisibility: k, onColumnVisibilityChange: A, enableColumnOrdering: j = !1, columnOrder: M, onColumnOrderChange: ee, enablePinning: te = !1, columnPinning: ne, onColumnPinningChange: N, enableColumnResizing: P = !1, columnResizeMode: F = "onChange", enablePagination: I = !1, pageSize: L = 10, pageSizeOptions: re, pagination: R, onPaginationChange: ie, locale: z = "en-US", manualPagination: ae = !1, pageCount: oe, rowCount: se, enableVirtualization: ce = !1, estimatedRowHeight: le = 44, maxBodyHeight: ue = 480, onRowClick: B, toolbar: de = !1, toolbarActions: fe, searchPlaceholder: pe, onRefresh: me, onExport: he, density: ge = "comfortable", stickyHeader: _e = !1, fillHeight: V = !1, wrapperClassName: H, className: U, dataTestId: ve } = e, [ye, be] = ka(u, h, []), [xe, Se] = ka(v, y, []), [Ce, we] = ka(S, C, ""), [Te, q] = ka(E, D, {}), [Ee, De] = ka(k, A, {}), [Oe, Le] = ka(M, ee, []), [Re, ze] = ka(ne, N, {}), [Be, Ve] = ka(R, ie, {
4344
+ 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: h, manualSorting: g = !1, enableFiltering: _ = !1, columnFilters: v, onColumnFiltersChange: y, manualFiltering: b = !1, enableGlobalFilter: x = !1, globalFilter: S, onGlobalFilterChange: C, enableRowSelection: w = !1, enableMultiRowSelection: T = !0, rowSelection: E, onRowSelectionChange: D, enableColumnVisibility: O = !1, columnVisibility: k, onColumnVisibilityChange: A, enableColumnOrdering: j = !1, columnOrder: M, onColumnOrderChange: N, enablePinning: ee = !1, columnPinning: te, onColumnPinningChange: P, enableColumnResizing: F = !1, columnResizeMode: I = "onChange", enablePagination: L = !1, pageSize: ne = 10, pageSizeOptions: re, pagination: R, onPaginationChange: ie, locale: z = "en-US", manualPagination: ae = !1, pageCount: oe, rowCount: se, enableVirtualization: ce = !1, estimatedRowHeight: le = 44, maxBodyHeight: ue = 480, onRowClick: B, toolbar: de = !1, toolbarActions: fe, searchPlaceholder: pe, onRefresh: me, onExport: he, density: ge = "comfortable", stickyHeader: _e = !1, fillHeight: V = !1, wrapperClassName: H, className: U, dataTestId: ve } = e, [ye, be] = ka(u, h, []), [xe, Se] = ka(v, y, []), [Ce, we] = ka(S, C, ""), [Te, q] = ka(E, D, {}), [Ee, De] = ka(k, A, {}), [Oe, Le] = ka(M, N, []), [Re, ze] = ka(te, P, {}), [Be, Ve] = ka(R, ie, {
4342
4345
  pageIndex: 0,
4343
- pageSize: L
4346
+ pageSize: ne
4344
4347
  }), Ue = Fe({
4345
4348
  data: n,
4346
4349
  columns: f(() => !w || r.some((e) => e.id === "select") ? r : [Ea(), ...r], [r, w]),
@@ -4371,28 +4374,28 @@ function Pa(e, t) {
4371
4374
  manualFiltering: b,
4372
4375
  enableRowSelection: w,
4373
4376
  enableMultiRowSelection: T,
4374
- enableColumnResizing: P,
4375
- columnResizeMode: F,
4377
+ enableColumnResizing: F,
4378
+ columnResizeMode: I,
4376
4379
  manualPagination: ae,
4377
4380
  pageCount: oe,
4378
4381
  rowCount: se,
4379
4382
  getCoreRowModel: je(),
4380
4383
  getSortedRowModel: c ? Pe() : void 0,
4381
4384
  getFilteredRowModel: _ || x ? Me() : void 0,
4382
- getPaginationRowModel: I ? Ne() : void 0
4385
+ getPaginationRowModel: L ? Ne() : void 0
4383
4386
  }), J = Ue.getRowModel().rows, Ge = Ue.getVisibleLeafColumns().length, Ke = p(null), [Y, qe] = m(null);
4384
4387
  d(() => {
4385
- if (!I || ce) return;
4388
+ if (!L || ce) return;
4386
4389
  let e = Ke.current?.getBoundingClientRect().height;
4387
4390
  e && e !== Y && qe(e);
4388
4391
  }, [
4389
- I,
4392
+ L,
4390
4393
  ce,
4391
4394
  ge,
4392
4395
  J,
4393
4396
  Y
4394
4397
  ]);
4395
- let Je = Y ?? le, Ye = I && !ce ? Math.max(0, Be.pageSize - J.length) * Je : 0, Xe = f(() => Oe.length > 0 ? Oe : Ue.getAllLeafColumns().map((e) => e.id), [Oe, Ue]), Ze = xa({
4398
+ let Je = Y ?? le, Ye = L && !ce ? Math.max(0, Be.pageSize - J.length) * Je : 0, Xe = f(() => Oe.length > 0 ? Oe : Ue.getAllLeafColumns().map((e) => e.id), [Oe, Ue]), Ze = xa({
4396
4399
  columnOrder: Xe,
4397
4400
  onColumnOrderChange: Le
4398
4401
  }), Qe = (e) => Ze.handleDragEnd(e), $e = p(null), et = ke({
@@ -4425,13 +4428,13 @@ function Pa(e, t) {
4425
4428
  enableSorting: c,
4426
4429
  enableFiltering: _,
4427
4430
  enableColumnOrdering: j,
4428
- enableColumnResizing: P,
4429
- enablePinning: te,
4431
+ enableColumnResizing: F,
4432
+ enablePinning: ee,
4430
4433
  enableColumnVisibility: O
4431
4434
  }, e.id))
4432
4435
  }, e), st = /* @__PURE__ */ K("table", {
4433
4436
  className: "w-full border-collapse text-p-std text-fg-default",
4434
- style: { width: P ? Ue.getTotalSize() : "100%" },
4437
+ style: { width: F ? Ue.getTotalSize() : "100%" },
4435
4438
  children: [/* @__PURE__ */ G("thead", {
4436
4439
  className: X("text-p-sm font-semibold text-fg-secondary uppercase tracking-wider", (_e || V) && "sticky top-0 z-10"),
4437
4440
  children: Ue.getHeaderGroups().map((e) => ot(e.id, e.headers))
@@ -4529,7 +4532,7 @@ function Pa(e, t) {
4529
4532
  onRowClick: B
4530
4533
  }, e.id))
4531
4534
  })] }),
4532
- I && !a && /* @__PURE__ */ G(ha, {
4535
+ L && !a && /* @__PURE__ */ G(ha, {
4533
4536
  table: Ue,
4534
4537
  pageSizeOptions: re,
4535
4538
  locale: z,
@@ -4924,20 +4927,20 @@ var uo = {
4924
4927
  highlightItem: X(ho, "justify-start pl-5")
4925
4928
  };
4926
4929
  function vo({ value: e, onCommit: t, times: n, isDisabled: r, clearable: i, size: a = "md", label: o, required: s = !1, helperText: c, placeholder: l = "Select time", disabled: d = !1, error: p = !1, errorText: h, mobileTitle: g, mobileApplyText: _ = "Apply", id: v, className: y, dataTestId: b }) {
4927
- let x = u(), S = v ?? x, C = Z(b), w = p || !!h, [T, E] = m(!1), [D, k] = m("00"), [A, j] = m("00"), M = (e, t) => !r(`${e}:${t}`), ee = f(() => fo.map((e) => ({
4930
+ let x = u(), S = v ?? x, C = Z(b), w = p || !!h, [T, E] = m(!1), [D, k] = m("00"), [A, j] = m("00"), M = (e, t) => !r(`${e}:${t}`), N = f(() => fo.map((e) => ({
4928
4931
  value: e,
4929
4932
  label: e,
4930
4933
  disabled: !po.some((t) => !r(`${e}:${t}`))
4931
- })), [r]), te = f(() => po.map((e) => ({
4934
+ })), [r]), ee = f(() => po.map((e) => ({
4932
4935
  value: e,
4933
4936
  label: e,
4934
4937
  disabled: r(`${D}:${e}`)
4935
- })), [D, r]), ne = (e) => po.find((t) => M(e, t)), N = () => {
4938
+ })), [D, r]), te = (e) => po.find((t) => M(e, t)), P = () => {
4936
4939
  let t = co(/* @__PURE__ */ new Date()), [i = "00", a = "00"] = (e ?? (r(t) ? n.find((e) => !r(e)) ?? t : t)).split(":");
4937
4940
  k(i), j(a), E(!0);
4938
- }, P = (e) => {
4939
- k(e), M(e, A) || j(ne(e) ?? A);
4940
- }, F = `${D}:${A}`, I = !r(F);
4941
+ }, F = (e) => {
4942
+ k(e), M(e, A) || j(te(e) ?? A);
4943
+ }, I = `${D}:${A}`, L = !r(I);
4941
4944
  return /* @__PURE__ */ K("div", {
4942
4945
  "data-test-id": b,
4943
4946
  className: "flex w-full flex-col gap-1.5",
@@ -4956,7 +4959,7 @@ function vo({ value: e, onCommit: t, times: n, isDisabled: r, clearable: i, size
4956
4959
  "aria-invalid": w || void 0,
4957
4960
  "aria-describedby": h ? `${S}-error` : c ? `${S}-help` : void 0,
4958
4961
  "data-test-id": C("trigger"),
4959
- onClick: N,
4962
+ onClick: P,
4960
4963
  className: X("flex w-full items-center justify-between gap-2 rounded-lg border bg-bg-default text-left transition-colors", "focus-visible:outline-none", uo[a], w ? "border-red-600" : "border-border-default", !d && !w && "hover:border-border-strong", T && !w && "ring-2 ring-brand-300 border-brand-500", !w && "focus-visible:ring-2 focus-visible:ring-brand-300 focus-visible:border-brand-500", w && "focus-visible:ring-2 focus-visible:ring-red-300", d && "cursor-not-allowed border-border-default bg-bg-container hover:border-border-default", y),
4961
4964
  children: [/* @__PURE__ */ G("span", {
4962
4965
  className: X("truncate tabular-nums", e ? "text-fg-default" : "text-fg-tertiary"),
@@ -4993,9 +4996,9 @@ function vo({ value: e, onCommit: t, times: n, isDisabled: r, clearable: i, size
4993
4996
  }), /* @__PURE__ */ G(ut, {
4994
4997
  fullWidth: !0,
4995
4998
  onClick: () => {
4996
- I && (t(F), E(!1));
4999
+ L && (t(I), E(!1));
4997
5000
  },
4998
- disabled: !I,
5001
+ disabled: !L,
4999
5002
  dataTestId: C("apply"),
5000
5003
  className: "flex-1",
5001
5004
  children: _
@@ -5008,14 +5011,14 @@ function vo({ value: e, onCommit: t, times: n, isDisabled: r, clearable: i, size
5008
5011
  className: "justify-center",
5009
5012
  children: [/* @__PURE__ */ G(Y, {
5010
5013
  value: D,
5011
- onValueChange: P,
5012
- options: ee,
5014
+ onValueChange: F,
5015
+ options: N,
5013
5016
  infinite: !0,
5014
5017
  classNames: go
5015
5018
  }), /* @__PURE__ */ G(Y, {
5016
5019
  value: A,
5017
5020
  onValueChange: j,
5018
- options: te,
5021
+ options: ee,
5019
5022
  infinite: !0,
5020
5023
  classNames: _o
5021
5024
  })]