@dinofront/design_system 1.20.13-alpha.0 → 1.20.14-alpha.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, 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 R, Moon as ne, MoreHorizontal as z, MoreVertical as re, Paperclip as B, Pencil as ie, Pin as ae, PinOff as oe, Plus as se, RefreshCw as ce, Search as le, SearchX as ue, 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 R, Moon as z, MoreHorizontal as ne, MoreVertical as re, Paperclip as B, Pencil as ie, Pin as ae, PinOff as oe, Plus as se, RefreshCw as ce, Search as le, SearchX as ue, 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";
@@ -305,7 +305,7 @@ var ht = a(function({ accept: e, multiple: t = !1, maxSizeMB: n, hint: r, onFile
305
305
  id: `${N}-error`,
306
306
  className: "text-p-sm text-red-700",
307
307
  children: S
308
- }) : null, ne = f && l.length > 0 && /* @__PURE__ */ G("div", {
308
+ }) : null, z = f && l.length > 0 && /* @__PURE__ */ G("div", {
309
309
  className: "flex flex-col gap-2",
310
310
  children: l.map((e, t) => /* @__PURE__ */ G(_t, {
311
311
  name: e.name,
@@ -321,7 +321,7 @@ var ht = a(function({ accept: e, multiple: t = !1, maxSizeMB: n, hint: r, onFile
321
321
  ...E,
322
322
  children: [
323
323
  L,
324
- ne,
324
+ z,
325
325
  R
326
326
  ]
327
327
  });
@@ -345,12 +345,12 @@ var ht = a(function({ accept: e, multiple: t = !1, maxSizeMB: n, hint: r, onFile
345
345
  children: e ? v ?? /* @__PURE__ */ G(ie, { className: "h-4 w-4" }) : _ ?? "Choose a file"
346
346
  }),
347
347
  I,
348
- ne,
348
+ z,
349
349
  R
350
350
  ]
351
351
  });
352
352
  }
353
- let z = /* @__PURE__ */ K("div", {
353
+ let ne = /* @__PURE__ */ K("div", {
354
354
  ref: D,
355
355
  onDragEnter: () => {
356
356
  j.current += 1, a || A(!0);
@@ -393,12 +393,12 @@ var ht = a(function({ accept: e, multiple: t = !1, maxSizeMB: n, hint: r, onFile
393
393
  I
394
394
  ]
395
395
  });
396
- return !L && !R && !ne ? z : /* @__PURE__ */ K("div", {
396
+ return !L && !R && !z ? ne : /* @__PURE__ */ K("div", {
397
397
  className: "flex flex-col gap-1.5",
398
398
  children: [
399
399
  L,
400
- z,
401
400
  ne,
401
+ z,
402
402
  R
403
403
  ]
404
404
  });
@@ -897,8 +897,8 @@ function Qt() {
897
897
  //#endregion
898
898
  //#region src/lib/useFloatingPosition.ts
899
899
  var $t = 8, en = 10;
900
- function tn({ anchor: e, panel: t, open: n, side: r = "top", align: i = "center", offset: a = 8, flip: o = !0, shift: s = !0, matchAnchorWidth: c = !1, constrainToViewport: l = !1, recomputeKey: u, zIndex: f = 50 }) {
901
- let [p, h] = m({
900
+ function tn({ anchor: e, panel: t, open: n, side: r = "top", align: i = "center", offset: a = 8, flip: o = !0, shift: s = !0, matchAnchorWidth: c = !1, constrainToViewport: l = !1, recomputeKey: u }) {
901
+ let [f, p] = m({
902
902
  style: {
903
903
  position: "fixed",
904
904
  top: 0,
@@ -913,42 +913,41 @@ function tn({ anchor: e, panel: t, open: n, side: r = "top", align: i = "center"
913
913
  let u = () => {
914
914
  let n = e?.current;
915
915
  if (!n) return;
916
- let u = n.getBoundingClientRect(), d = t.getBoundingClientRect(), p = window.innerWidth, m = window.innerHeight, g = r === "top" || r === "bottom", _ = r;
917
- if (o) if (g) {
916
+ let u = n.getBoundingClientRect(), d = t.getBoundingClientRect(), f = window.innerWidth, m = window.innerHeight, h = r === "top" || r === "bottom", g = r;
917
+ if (o) if (h) {
918
918
  let e = u.top, t = m - u.bottom;
919
- r === "top" && e < d.height + a && t > e ? _ = "bottom" : r === "bottom" && t < d.height + a && e > t && (_ = "top");
919
+ r === "top" && e < d.height + a && t > e ? g = "bottom" : r === "bottom" && t < d.height + a && e > t && (g = "top");
920
920
  } else {
921
- let e = u.left, t = p - u.right;
922
- r === "left" && e < d.width + a && t > e ? _ = "right" : r === "right" && t < d.width + a && e > t && (_ = "left");
921
+ let e = u.left, t = f - u.right;
922
+ r === "left" && e < d.width + a && t > e ? g = "right" : r === "right" && t < d.width + a && e > t && (g = "left");
923
923
  }
924
- let v = _ === "top" || _ === "bottom", y, b;
925
- v ? (y = _ === "bottom" ? u.bottom + a : u.top - d.height - a, b = i === "start" ? u.left : i === "end" ? u.right - d.width : u.left + u.width / 2 - d.width / 2) : (b = _ === "right" ? u.right + a : u.left - d.width - a, y = i === "start" ? u.top : i === "end" ? u.bottom - d.height : u.top + u.height / 2 - d.height / 2), s && (v ? b = Math.min(Math.max(b, $t), p - d.width - $t) : y = Math.min(Math.max(y, $t), m - d.height - $t));
926
- let x;
927
- if (v) {
924
+ let _ = g === "top" || g === "bottom", v, y;
925
+ _ ? (v = g === "bottom" ? u.bottom + a : u.top - d.height - a, y = i === "start" ? u.left : i === "end" ? u.right - d.width : u.left + u.width / 2 - d.width / 2) : (y = g === "right" ? u.right + a : u.left - d.width - a, v = i === "start" ? u.top : i === "end" ? u.bottom - d.height : u.top + u.height / 2 - d.height / 2), s && (_ ? y = Math.min(Math.max(y, $t), f - d.width - $t) : v = Math.min(Math.max(v, $t), m - d.height - $t));
926
+ let b;
927
+ if (_) {
928
928
  let e = u.left + u.width / 2;
929
- x = {
930
- left: Math.min(Math.max(e - b, en), d.width - en),
931
- [_ === "bottom" ? "top" : "bottom"]: -8 / 2
929
+ b = {
930
+ left: Math.min(Math.max(e - y, en), d.width - en),
931
+ [g === "bottom" ? "top" : "bottom"]: -8 / 2
932
932
  };
933
933
  } else {
934
934
  let e = u.top + u.height / 2;
935
- x = {
936
- top: Math.min(Math.max(e - y, en), d.height - en),
937
- [_ === "right" ? "left" : "right"]: -8 / 2
935
+ b = {
936
+ top: Math.min(Math.max(e - v, en), d.height - en),
937
+ [g === "right" ? "left" : "right"]: -8 / 2
938
938
  };
939
939
  }
940
- let S;
941
- l && (S = v ? p - 2 * $t : _ === "right" ? p - u.right - a - $t : u.left - a - $t), h({
940
+ let x;
941
+ l && (x = _ ? f - 2 * $t : g === "right" ? f - u.right - a - $t : u.left - a - $t), p({
942
942
  style: {
943
943
  position: "fixed",
944
- top: y,
945
- left: b,
946
- zIndex: f,
944
+ top: v,
945
+ left: y,
947
946
  ...c ? { minWidth: u.width } : {},
948
- ...S === void 0 ? {} : { maxWidth: S }
947
+ ...x === void 0 ? {} : { maxWidth: x }
949
948
  },
950
- arrowStyle: x,
951
- resolvedSide: _
949
+ arrowStyle: b,
950
+ resolvedSide: g
952
951
  });
953
952
  };
954
953
  u(), window.addEventListener("resize", u), document.addEventListener("scroll", u, {
@@ -970,9 +969,8 @@ function tn({ anchor: e, panel: t, open: n, side: r = "top", align: i = "center"
970
969
  s,
971
970
  c,
972
971
  l,
973
- u,
974
- f
975
- ]), p;
972
+ u
973
+ ]), f;
976
974
  }
977
975
  //#endregion
978
976
  //#region src/components/Popover/Popover.tsx
@@ -1044,8 +1042,11 @@ function rn({ content: e, children: t, side: r = "top", align: i = "center", off
1044
1042
  "data-side": M,
1045
1043
  "data-test-id": b,
1046
1044
  style: A,
1047
- className: X("fixed z-50 max-w-60 max-h-54 overflow-auto rounded-lg border border-border-default bg-bg-default p-3 text-fg-default shadow-z4", y),
1048
- children: [e, h && /* @__PURE__ */ G("span", {
1045
+ className: "fixed z-50 max-w-60",
1046
+ children: [/* @__PURE__ */ G("div", {
1047
+ className: X("max-h-54 overflow-auto rounded-lg border border-border-default bg-bg-default p-3 text-fg-default shadow-z4", y),
1048
+ children: e
1049
+ }), h && /* @__PURE__ */ G("span", {
1049
1050
  "aria-hidden": !0,
1050
1051
  style: j,
1051
1052
  className: X("absolute size-2 rotate-45 bg-bg-default", nn[M])
@@ -1287,7 +1288,7 @@ function En(e) {
1287
1288
  return `${e.getFullYear()}-${t}-${n}`;
1288
1289
  }
1289
1290
  var Dn = a(function({ value: e, onChange: t, clearable: n = !0, 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) {
1290
- let te = u(), P = A ?? te, [F, I] = m(!1), [L, R] = m(e ?? i?.start ?? /* @__PURE__ */ new Date()), [ne, z] = m(null), [re, B] = m(null), ie = p(null), ae = p(null), oe = Qt(), { style: se, resolvedSide: ce } = tn({
1291
+ let te = u(), P = A ?? te, [F, I] = m(!1), [L, R] = m(e ?? i?.start ?? /* @__PURE__ */ new Date()), [z, ne] = m(null), [re, B] = m(null), ie = p(null), ae = p(null), oe = Qt(), { style: se, resolvedSide: ce } = tn({
1291
1292
  anchor: ae,
1292
1293
  panel: re,
1293
1294
  open: F,
@@ -1340,7 +1341,7 @@ var Dn = a(function({ value: e, onChange: t, clearable: n = !0, range: r = !1, r
1340
1341
  e.stopPropagation(), r ? (a?.({
1341
1342
  start: null,
1342
1343
  end: null
1343
- }), z(null)) : t?.(null);
1344
+ }), ne(null)) : t?.(null);
1344
1345
  }
1345
1346
  let { monthNames: me, weekdayNames: he } = f(() => {
1346
1347
  let e = gn(s);
@@ -1351,7 +1352,7 @@ var Dn = a(function({ value: e, onChange: t, clearable: n = !0, range: r = !1, r
1351
1352
  }, [s]), ge = Tn(L), _e = Sn(/* @__PURE__ */ new Date()), V = Z(N), U = i ?? {
1352
1353
  start: null,
1353
1354
  end: null
1354
- }, ve = U.end ?? ne;
1355
+ }, ve = U.end ?? z;
1355
1356
  return /* @__PURE__ */ K("div", {
1356
1357
  ref: ie,
1357
1358
  "data-test-id": V("root"),
@@ -1446,7 +1447,7 @@ var Dn = a(function({ value: e, onChange: t, clearable: n = !0, range: r = !1, r
1446
1447
  "data-today": o || void 0,
1447
1448
  "data-excluded": a || void 0,
1448
1449
  "aria-current": o ? "date" : void 0,
1449
- onMouseEnter: () => !i && r && U.start && !U.end && z(t),
1450
+ onMouseEnter: () => !i && r && U.start && !U.end && ne(t),
1450
1451
  onClick: () => !i && fe(t),
1451
1452
  className: X("h-8 rounded-md text-p-sm font-medium", d, f),
1452
1453
  children: t.getDate()
@@ -2591,7 +2592,7 @@ var Ur = "inline-flex items-center justify-center min-w-9 h-9 px-2 text-p-std ro
2591
2592
  if (t === "ellipsis-left" || t === "ellipsis-right") return /* @__PURE__ */ G("span", {
2592
2593
  "aria-hidden": !0,
2593
2594
  className: "inline-flex items-center justify-center w-9 h-9 text-fg-tertiary",
2594
- children: /* @__PURE__ */ G(z, { className: "h-4 w-4" })
2595
+ children: /* @__PURE__ */ G(ne, { className: "h-4 w-4" })
2595
2596
  }, `${t}-${r}`);
2596
2597
  let i = t === e;
2597
2598
  return /* @__PURE__ */ G("button", {
@@ -3002,7 +3003,7 @@ function xi(e, t, n) {
3002
3003
  indicatorSeparator: () => "hidden",
3003
3004
  menu: ({ placement: e }) => X("rounded-lg border border-border-default bg-bg-default shadow-z4 overflow-hidden !z-[2]", e === "top" ? "mb-1" : "mt-1"),
3004
3005
  menuList: () => "max-h-60 overflow-y-auto py-1",
3005
- menuPortal: () => "!z-[50]",
3006
+ menuPortal: () => "z-[50]",
3006
3007
  group: () => "py-1",
3007
3008
  groupHeading: () => "px-3 pt-2 pb-1 text-label-sm font-medium uppercase tracking-wide text-fg-tertiary select-none",
3008
3009
  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"),
@@ -3170,22 +3171,22 @@ function Pi(t) {
3170
3171
  });
3171
3172
  }
3172
3173
  var Fi = a(function(e, t) {
3173
- 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 = !0, 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: R, onInputChange: ne, ...z } = e, re = e.isMulti ? !!e.singleLine : !1, B = si[j], ie = v ?? B.placeholder, ae = A ?? B.noResults, oe = c ?? ((e) => B.createLabel(e)), se = u(), ce = P ?? se, le = w || !!C, ue = h !== void 0, [de, fe] = m(() => {
3174
+ 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, searchable: D, virtualized: O = !1, emptyText: k, locale: A = "en-US", storageKey: j, saveSelectionLabel: M, size: N = "md", disabled: ee = !1, id: te, className: P, wrapperClassName: F, dataTestId: I, inputValue: L, onInputChange: R, ...z } = e, ne = e.isMulti ? !!e.singleLine : !1, re = d || e.clearable, B = si[A], ie = v ?? B.placeholder, ae = k ?? B.noResults, oe = c ?? ((e) => B.createLabel(e)), se = u(), ce = te ?? se, le = w || !!C, ue = h !== void 0, [de, fe] = m(() => {
3174
3175
  if (!d) {
3175
- if (M && !ue) {
3176
- let e = _i(M);
3176
+ if (j && !ue) {
3177
+ let e = _i(j);
3177
3178
  if (e !== void 0) return e;
3178
3179
  }
3179
3180
  return g;
3180
3181
  }
3181
3182
  }), [pe, me] = m(() => {
3182
3183
  if (!d) return [];
3183
- if (M && !ue) {
3184
- let e = _i(M);
3184
+ if (j && !ue) {
3185
+ let e = _i(j);
3185
3186
  if (Array.isArray(e)) return e;
3186
3187
  }
3187
3188
  return g ?? [];
3188
- }), [he, ge] = m(() => !!M && vi(M)), [_e, V] = m(() => {
3189
+ }), [he, ge] = m(() => !!j && vi(j)), [_e, V] = m(() => {
3189
3190
  let e = /* @__PURE__ */ new Map();
3190
3191
  for (let t of n) e.set(String(t.value), t);
3191
3192
  if (Array.isArray(i)) for (let t of i) e.set(String(t.value), t);
@@ -3241,11 +3242,11 @@ var Fi = a(function(e, t) {
3241
3242
  U,
3242
3243
  _,
3243
3244
  o
3244
- ]), q = !!r, ke = O ?? (q || a ? !0 : n.length >= 10), Ae = q ? a ? Oe : Ee : a ? De : Te, je = f(() => xi(ee, le, re), [
3245
- ee,
3245
+ ]), q = !!r, ke = D ?? (q || a ? !0 : n.length >= 10), Ae = q ? a ? Oe : Ee : a ? De : Te, je = f(() => xi(N, le, ne), [
3246
+ N,
3246
3247
  le,
3247
- re
3248
- ]), Me = p(null), Ne = p(null), Pe = p(null), Fe = !!d && re, Ie = oi({
3248
+ ne
3249
+ ]), Me = p(null), Ne = p(null), Pe = p(null), Fe = !!d && ne, Ie = oi({
3249
3250
  wrapperRef: Me,
3250
3251
  measureRef: Ne,
3251
3252
  total: xe.length,
@@ -3275,28 +3276,28 @@ var Fi = a(function(e, t) {
3275
3276
  W
3276
3277
  ]), ze = !!d && !q, Be = d ? W : ye;
3277
3278
  l(() => {
3278
- !M || !he || yi(M, Be);
3279
+ !j || !he || yi(j, Be);
3279
3280
  }, [
3280
- M,
3281
+ j,
3281
3282
  he,
3282
3283
  Be
3283
3284
  ]);
3284
3285
  let Ve = s(() => {
3285
- M && ge((e) => {
3286
+ j && ge((e) => {
3286
3287
  let t = !e;
3287
- return t ? yi(M, Be) : bi(M), t;
3288
+ return t ? yi(j, Be) : bi(j), t;
3288
3289
  });
3289
- }, [M, Be]), He = f(() => M ? {
3290
+ }, [j, Be]), He = f(() => j ? {
3290
3291
  checked: he,
3291
- label: N ?? B.saveSelectionLabel
3292
+ label: M ?? B.saveSelectionLabel
3292
3293
  } : null, [
3293
- M,
3294
+ j,
3294
3295
  he,
3295
- N,
3296
+ M,
3296
3297
  B
3297
- ]), [Ue, We] = m(""), J = R ?? Ue, Ge = ze || R !== void 0 || ne !== void 0, Ke = s((e, t) => {
3298
- We(e), ne?.(e, t);
3299
- }, [ne]), Y = f(() => ze ? n.filter((e) => !e.disabled && hi(e, J)) : [], [
3298
+ ]), [Ue, We] = m(""), J = L ?? Ue, Ge = ze || L !== void 0 || R !== void 0, Ke = s((e, t) => {
3299
+ We(e), R?.(e, t);
3300
+ }, [R]), Y = f(() => ze ? n.filter((e) => !e.disabled && hi(e, J)) : [], [
3300
3301
  ze,
3301
3302
  n,
3302
3303
  J
@@ -3333,13 +3334,13 @@ var Fi = a(function(e, t) {
3333
3334
  ]), Z = Qt(), Ye = {
3334
3335
  ...q ? {} : { filterOption: (e, t) => e.data.__isNew__ === !0 || hi(e.data, t) },
3335
3336
  ...z,
3336
- dataTestId: L,
3337
+ dataTestId: I,
3337
3338
  dropdownIcon: x,
3338
- inputValueControlled: R !== void 0,
3339
+ inputValueControlled: L !== void 0,
3339
3340
  inputId: ce,
3340
3341
  unstyled: !0,
3341
3342
  classNames: je,
3342
- className: F,
3343
+ className: P,
3343
3344
  isMulti: d,
3344
3345
  options: Re,
3345
3346
  loadOptions: Se,
@@ -3368,7 +3369,7 @@ var Fi = a(function(e, t) {
3368
3369
  className: "min-w-0 flex-1 truncate",
3369
3370
  children: n
3370
3371
  }), /* @__PURE__ */ G("span", {
3371
- "data-test-id": Ci({ dataTestId: L }, `option-${String(e.value)}-actions`),
3372
+ "data-test-id": Ci({ dataTestId: I }, `option-${String(e.value)}-actions`),
3372
3373
  className: "ml-auto inline-flex shrink-0 items-center",
3373
3374
  onMouseDown: (e) => {
3374
3375
  e.preventDefault(), e.stopPropagation();
@@ -3380,8 +3381,8 @@ var Fi = a(function(e, t) {
3380
3381
  },
3381
3382
  isOptionDisabled: (e) => !!e.disabled,
3382
3383
  placeholder: ie,
3383
- isDisabled: te || E,
3384
- isClearable: D,
3384
+ isDisabled: ee || E,
3385
+ isClearable: re,
3385
3386
  isSearchable: ke,
3386
3387
  isLoading: E || void 0,
3387
3388
  noOptionsMessage: () => ae,
@@ -3417,15 +3418,15 @@ var Fi = a(function(e, t) {
3417
3418
  MultiValueRemove: ki,
3418
3419
  LoadingIndicator: Mi,
3419
3420
  IndicatorSeparator: () => null,
3420
- ...k ? { MenuList: Pi } : {},
3421
+ ...O ? { MenuList: Pi } : {},
3421
3422
  ...Fe ? { MultiValue: Ai } : {},
3422
3423
  Option: ji
3423
3424
  }
3424
3425
  };
3425
3426
  return /* @__PURE__ */ K("div", {
3426
3427
  ref: Me,
3427
- "data-test-id": L,
3428
- className: X("flex flex-col gap-1.5 w-full", I),
3428
+ "data-test-id": I,
3429
+ className: X("flex flex-col gap-1.5 w-full", F),
3429
3430
  children: [
3430
3431
  (y || b) && /* @__PURE__ */ K("div", {
3431
3432
  className: "flex items-center gap-1.5",
@@ -4271,7 +4272,7 @@ function Na({ header: e, dataTestId: t, density: n, enableSorting: r, enableFilt
4271
4272
  type: "button",
4272
4273
  "aria-label": `${typeof g == "string" ? g : l.id} column options`,
4273
4274
  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",
4274
- children: /* @__PURE__ */ G(z, { className: "h-3.5 w-3.5" })
4275
+ children: /* @__PURE__ */ G(ne, { className: "h-3.5 w-3.5" })
4275
4276
  }) }), /* @__PURE__ */ K(yr, {
4276
4277
  align: "start",
4277
4278
  children: [
@@ -4366,7 +4367,7 @@ function Fa({ rowCount: e }) {
4366
4367
  }, t)) });
4367
4368
  }
4368
4369
  function Ia(e, t) {
4369
- 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: R = 10, pageSizeOptions: ne, pagination: z, onPaginationChange: re, locale: B = "en-US", manualPagination: ie = !1, pageCount: ae, rowCount: oe, enableVirtualization: se = !1, estimatedRowHeight: ce = 44, maxBodyHeight: le = 480, onRowClick: ue, 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] = ja(u, h, []), [xe, Se] = ja(v, y, []), [Ce, we] = ja(S, C, ""), [Te, q] = ja(E, D, {}), [Ee, De] = ja(k, A, {}), [Oe, Le] = ja(M, N, []), [Re, ze] = ja(te, P, {}), [Be, Ve] = ja(z, re, {
4370
+ 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: R = 10, pageSizeOptions: z, pagination: ne, onPaginationChange: re, locale: B = "en-US", manualPagination: ie = !1, pageCount: ae, rowCount: oe, enableVirtualization: se = !1, estimatedRowHeight: ce = 44, maxBodyHeight: le = 480, onRowClick: ue, 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] = ja(u, h, []), [xe, Se] = ja(v, y, []), [Ce, we] = ja(S, C, ""), [Te, q] = ja(E, D, {}), [Ee, De] = ja(k, A, {}), [Oe, Le] = ja(M, N, []), [Re, ze] = ja(te, P, {}), [Be, Ve] = ja(ne, re, {
4370
4371
  pageIndex: 0,
4371
4372
  pageSize: R
4372
4373
  }), Ue = Fe({
@@ -4560,7 +4561,7 @@ function Ia(e, t) {
4560
4561
  })] }),
4561
4562
  L && !a && /* @__PURE__ */ G(_a, {
4562
4563
  table: Ue,
4563
- pageSizeOptions: ne,
4564
+ pageSizeOptions: z,
4564
4565
  locale: B,
4565
4566
  dataTestId: ve
4566
4567
  })
@@ -4798,11 +4799,11 @@ var Ua = {
4798
4799
  ...o
4799
4800
  }),
4800
4801
  /* @__PURE__ */ K("span", {
4801
- className: X("inline-flex h-8 w-16 items-center justify-between rounded-full border px-2 transition-colors", "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"),
4802
+ className: X("inline-flex h-8 w-16 items-center justify-between rounded-full border border-border-default px-2 transition-colors", "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"),
4802
4803
  children: [/* @__PURE__ */ G(pe, {
4803
4804
  className: "size-4 text-yellow-500 z-1",
4804
4805
  "aria-hidden": !0
4805
- }), /* @__PURE__ */ G(ne, {
4806
+ }), /* @__PURE__ */ G(z, {
4806
4807
  className: "size-4 text-gray-400 z-1",
4807
4808
  "aria-hidden": !0
4808
4809
  })]