@lax-wp/design-system 0.13.45 → 0.13.47

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.
Files changed (25) hide show
  1. package/dist/components/floating-bar/FloatingBar.cjs.js +1 -1
  2. package/dist/components/floating-bar/FloatingBar.cjs.js.map +1 -1
  3. package/dist/components/floating-bar/FloatingBar.es.js +12 -12
  4. package/dist/components/floating-bar/FloatingBar.es.js.map +1 -1
  5. package/dist/components/forms/icon-picker/IconPicker.cjs.js +1 -1
  6. package/dist/components/forms/icon-picker/IconPicker.cjs.js.map +1 -1
  7. package/dist/components/forms/icon-picker/IconPicker.es.js +1 -1
  8. package/dist/components/forms/icon-picker/IconPicker.es.js.map +1 -1
  9. package/dist/components/navigation/tabs/TabOptions.cjs.js +1 -1
  10. package/dist/components/navigation/tabs/TabOptions.cjs.js.map +1 -1
  11. package/dist/components/navigation/tabs/TabOptions.es.js +36 -36
  12. package/dist/components/navigation/tabs/TabOptions.es.js.map +1 -1
  13. package/dist/components/navigation/tabs/Tabs.cjs.js +1 -1
  14. package/dist/components/navigation/tabs/Tabs.cjs.js.map +1 -1
  15. package/dist/components/navigation/tabs/Tabs.es.js +66 -66
  16. package/dist/components/navigation/tabs/Tabs.es.js.map +1 -1
  17. package/dist/components/user-avatar/UserAvatar.cjs.js +1 -1
  18. package/dist/components/user-avatar/UserAvatar.cjs.js.map +1 -1
  19. package/dist/components/user-avatar/UserAvatar.es.js +1 -1
  20. package/dist/components/user-avatar/UserAvatar.es.js.map +1 -1
  21. package/dist/components/user-avatar/constants.cjs.js +1 -1
  22. package/dist/components/user-avatar/constants.cjs.js.map +1 -1
  23. package/dist/components/user-avatar/constants.es.js +8 -8
  24. package/dist/components/user-avatar/constants.es.js.map +1 -1
  25. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { jsx as n, jsxs as ke } from "react/jsx-runtime";
2
- import { useSensors as zt, useSensor as Ze, MouseSensor as Rt, TouchSensor as Wt, DndContext as Pt, closestCenter as Ft } from "@dnd-kit/core";
2
+ import { useSensors as Rt, useSensor as Ze, MouseSensor as zt, TouchSensor as Wt, DndContext as Pt, closestCenter as Ft } from "@dnd-kit/core";
3
3
  import { SortableContext as Bt, horizontalListSortingStrategy as jt, arrayMove as Ke } from "@dnd-kit/sortable";
4
4
  import { Dropdown as ye } from "antd";
5
5
  import l from "../../../_virtual/index.es.js";
@@ -17,13 +17,13 @@ import Ce from "../../tooltip/Tooltip.es.js";
17
17
  import { EditIcon as Xt } from "../../icons/EditIcon.es.js";
18
18
  import { toast as Zt } from "react-toastify";
19
19
  import { TabSwitch as Se } from "./TabSwitch.es.js";
20
- import { PinIcon as se, ArrowOutwardIcon as Kt, ArrowUpwardIcon as en, ArrowDownwardIcon as tn, ContentCopyIcon as nn, VisibilityOffIcon as sn, VisibilityIcon as an, UnpinFilledIcon as on, DeleteIcon as rn } from "../../icon/icons.generated.es.js";
20
+ import { PinIcon as se, ArrowOutwardIcon as Kt, ArrowUpwardIcon as en, ArrowDownwardIcon as tn, ContentCopyIcon as nn, VisibilityOffIcon as sn, VisibilityIcon as on, UnpinFilledIcon as an, DeleteIcon as rn } from "../../icon/icons.generated.es.js";
21
21
  import { SortableTab as tt } from "./SortableTab.es.js";
22
22
  import { DropableWrapper as ln } from "./DropableWrapper.es.js";
23
23
  import { MoreButton as cn } from "./MoreButton.es.js";
24
24
  import { TabOptions as dn } from "./TabOptions.es.js";
25
25
  import { TabDragOverlay as un } from "./TabDragOverlay.es.js";
26
- const mn = () => Math.random().toString(16).slice(2, 13), ae = [
26
+ const mn = () => Math.random().toString(16).slice(2, 13), oe = [
27
27
  "[&_.ant-dropdown-menu-item]:!outline-none",
28
28
  "[&_.ant-dropdown-menu-submenu-title]:!outline-none",
29
29
  "[&_.ant-dropdown-menu-item:focus-visible_.option-button-inner]:ring-2",
@@ -66,9 +66,9 @@ const Ie = (T) => {
66
66
  className: ve,
67
67
  draggable: E = !1,
68
68
  showAllItems: A = !1,
69
- copyLink: at = !1,
70
- isDisabled: ot = !1,
71
- color: oe = "light",
69
+ copyLink: ot = !1,
70
+ isDisabled: at = !1,
71
+ color: ae = "light",
72
72
  iconsOnly: rt = !1,
73
73
  tabIcons: re = {},
74
74
  height: it = "h-6",
@@ -92,8 +92,8 @@ const Ie = (T) => {
92
92
  }) => {
93
93
  const x = Yt(), Le = S ? x?.getTabSettings(S) : void 0, le = dt ?? Le?.tab_items, Y = ut ?? Le?.tab_options, [ce, ft] = w(""), [I, J] = w(!1), [U, bt] = w(0), [d, de] = w([]), [q, ht] = w([]), [xt, Q] = w(null), [D, X] = w(null), [gt, Me] = w(!1), [He, Ue] = w(
94
94
  Y ?? At
95
- ), [ue, wt] = w(""), [ze, kt] = w("contains"), { showCounts: k, lockOrder: z, sortOrder: me } = He, { t: u } = $t(), Z = Te(null), yt = Te(null), Re = Te(U), { measureText: R } = Jt(), W = M(() => mn(), []), Tt = zt(
96
- Ze(Rt, { activationConstraint: { distance: 5 } }),
95
+ ), [ue, wt] = w(""), [Re, kt] = w("contains"), { showCounts: k, lockOrder: R, sortOrder: me } = He, { t: u } = $t(), Z = Te(null), yt = Te(null), ze = Te(U), { measureText: z } = Jt(), W = M(() => mn(), []), Tt = Rt(
96
+ Ze(zt, { activationConstraint: { distance: 5 } }),
97
97
  Ze(Wt, { activationConstraint: { delay: 300, tolerance: 5 } })
98
98
  ), p = M(() => $ && Object.fromEntries(
99
99
  Object.entries($).map(([e, t]) => [
@@ -104,14 +104,14 @@ const Ie = (T) => {
104
104
  () => We.filter(({ name: e }) => {
105
105
  if (!ue) return !0;
106
106
  const t = (e ?? "").toLowerCase(), s = ue.toLowerCase();
107
- return ze === "contains" ? t.includes(s) : !t.includes(s);
107
+ return Re === "contains" ? t.includes(s) : !t.includes(s);
108
108
  }),
109
- [We, ue, ze]
110
- ), o = M(
109
+ [We, ue, Re]
110
+ ), a = M(
111
111
  () => [...Pe].sort((e, t) => e.is_pinned && !t.is_pinned ? -1 : !e.is_pinned && t.is_pinned ? 1 : 0),
112
112
  [Pe]
113
- ), Ct = U < o.length, K = A ? o.length : Ct ? U : o.length, Fe = o.findIndex((e) => e.name === r) >= K, Be = d.length - K - (Fe ? 1 : 0);
114
- Re.current = U;
113
+ ), Ct = U < a.length, K = A ? a.length : Ct ? U : a.length, Fe = a.findIndex((e) => e.name === r) >= K, Be = d.length - K - (Fe ? 1 : 0);
114
+ ze.current = U;
115
115
  const P = v(
116
116
  (e) => {
117
117
  de(e), Ve?.(e), S && x?.persistTabSettings && x.persistTabSettings({ tab_type: S, tab_items: e });
@@ -125,45 +125,45 @@ const Ie = (T) => {
125
125
  ), je = (e) => e.is_pinned ? 32 : 0, pe = v(
126
126
  (e) => {
127
127
  if (!e) return;
128
- const t = E ? 30 : 0, s = k ? 190 : 84, i = O === "sm" ? 4 : 8, a = 32;
128
+ const t = E ? 30 : 0, s = k ? 190 : 84, i = O === "sm" ? 4 : 8, o = 32;
129
129
  let f = 0, te = 0, g = 0;
130
- const b = e - (H?.width || 0) - t, Ye = Re.current, Je = Ye < o.length, qe = V.length > 0;
131
- for (let h = 0; h < o.length; h++) {
132
- const N = o[h], ne = p?.[N.name] ? String(p?.[N.name]) : "", xe = k && ne ? R(ne, {
130
+ const b = e - (H?.width || 0) - t, Ye = ze.current, Je = Ye < a.length, qe = V.length > 0;
131
+ for (let h = 0; h < a.length; h++) {
132
+ const N = a[h], ne = p?.[N.name] ? String(p?.[N.name]) : "", xe = k && ne ? z(ne, {
133
133
  fontSize: "16px",
134
134
  fontWeight: "500",
135
135
  fontFamily: "Inter, system-ui, -apple-system, sans-serif"
136
- }) + 18 + 2 : 0, ge = R(N?.name || "", {
136
+ }) + 18 + 2 : 0, ge = z(N?.name || "", {
137
137
  fontSize: "16px",
138
138
  fontWeight: "600",
139
139
  fontFamily: "Inter, system-ui, -apple-system, sans-serif"
140
- }), we = C ? je(N) : 0, Xe = ge + xe + a + i + we;
140
+ }), we = C ? je(N) : 0, Xe = ge + xe + o + i + we;
141
141
  if (N.name === r && (te = Xe), f += Xe, b > f + (Je || qe ? s : 0) + h * 25)
142
142
  g = h + 1;
143
143
  else
144
144
  break;
145
145
  }
146
- const Qe = o.length - g;
147
- if (Qe + V.length === 1 && V.length === 0 && Qe === 1 && g < o.length) {
148
- const h = o[g];
146
+ const Qe = a.length - g;
147
+ if (Qe + V.length === 1 && V.length === 0 && Qe === 1 && g < a.length) {
148
+ const h = a[g];
149
149
  if (h) {
150
- const N = p?.[h.name] ? String(p?.[h.name]) : "", ne = k && N ? R(N, {
150
+ const N = p?.[h.name] ? String(p?.[h.name]) : "", ne = k && N ? z(N, {
151
151
  fontSize: "16px",
152
152
  fontWeight: "500",
153
153
  fontFamily: "Inter, system-ui, -apple-system, sans-serif"
154
- }) + 18 + 2 : 0, xe = R(h?.name || "", {
154
+ }) + 18 + 2 : 0, xe = z(h?.name || "", {
155
155
  fontSize: "16px",
156
156
  fontWeight: "600",
157
157
  fontFamily: "Inter, system-ui, -apple-system, sans-serif"
158
- }), ge = C ? je(h) : 0, we = xe + ne + a + i + ge;
158
+ }), ge = C ? je(h) : 0, we = xe + ne + o + i + ge;
159
159
  b >= f + we && (g += 1);
160
160
  }
161
161
  }
162
- const Ut = A ? o.length : g;
163
- o.findIndex((h) => h.name === r) >= Ut && (f += te, b < f + (Je || qe ? s : 0) && (g = Math.max(g - 1, 0))), g !== Ye && bt(g);
162
+ const Ut = A ? a.length : g;
163
+ a.findIndex((h) => h.name === r) >= Ut && (f += te, b < f + (Je || qe ? s : 0) && (g = Math.max(g - 1, 0))), g !== Ye && bt(g);
164
164
  },
165
165
  [
166
- o,
166
+ a,
167
167
  k,
168
168
  A,
169
169
  C,
@@ -173,7 +173,7 @@ const Ie = (T) => {
173
173
  O,
174
174
  E,
175
175
  V.length,
176
- R
176
+ z
177
177
  ]
178
178
  ), fe = v(
179
179
  () => {
@@ -192,12 +192,12 @@ const Ie = (T) => {
192
192
  ), F = v(
193
193
  (e) => m ? `?${be(fe(), e).toString()}` : void 0,
194
194
  [be, fe, m]
195
- ), Nt = at || !!m, It = v(
195
+ ), Nt = ot || !!m, It = v(
196
196
  async (e) => {
197
- const t = F(e), s = typeof window < "u" ? window.location.origin : "", i = typeof window < "u" ? window.location.pathname : "", a = t ? `${s}${i}${t}` : `${s}${i}`;
198
- await navigator.clipboard.writeText(a), Zt.success(u("Link copied to clipboard"), {
197
+ const t = F(e), s = typeof window < "u" ? window.location.origin : "", i = typeof window < "u" ? window.location.pathname : "", o = t ? `${s}${i}${t}` : `${s}${i}`;
198
+ await navigator.clipboard.writeText(o), Zt.success(u("Link copied to clipboard"), {
199
199
  toastId: "Link copied to clipboard"
200
- }), Ee?.(e, a);
200
+ }), Ee?.(e, o);
201
201
  },
202
202
  [F, u, Ee]
203
203
  ), B = (e) => {
@@ -206,11 +206,11 @@ const Ie = (T) => {
206
206
  x.navigate(`?${t.toString()}`);
207
207
  }
208
208
  }, $e = (e) => {
209
- if (o.length <= 1) return;
209
+ if (a.length <= 1) return;
210
210
  const t = d.map(
211
- (a) => a.name === e ? { ...a, is_hidden: !0 } : a
212
- ), s = o.findIndex((a) => a.name === e), i = s === 0 ? 1 : s - 1;
213
- B(o[i].name), P(t);
211
+ (o) => o.name === e ? { ...o, is_hidden: !0 } : o
212
+ ), s = a.findIndex((o) => o.name === e), i = s === 0 ? 1 : s - 1;
213
+ B(a[i].name), P(t);
214
214
  }, vt = (e) => {
215
215
  const t = d.map(
216
216
  (s) => s.name === e ? { ...s, is_hidden: !1 } : s
@@ -223,7 +223,7 @@ const Ie = (T) => {
223
223
  );
224
224
  P(t);
225
225
  }, Ae = (e, t) => {
226
- const s = d.findIndex(({ name: a }) => a === e), i = t === "left" ? s - (d[s - 1]?.name === r ? 2 : 1) : s + 1;
226
+ const s = d.findIndex(({ name: o }) => o === e), i = t === "left" ? s - (d[s - 1]?.name === r ? 2 : 1) : s + 1;
227
227
  P(Ke(d, s, i));
228
228
  }, Ge = () => J(!I), _t = (e) => X(e.active.id), Ot = (e) => {
229
229
  const { active: t, over: s } = e;
@@ -231,8 +231,8 @@ const Ie = (T) => {
231
231
  $e(t.id), X(null), Q(null);
232
232
  return;
233
233
  }
234
- const i = d.findIndex(({ name: f }) => f === t.id), a = d.findIndex(({ name: f }) => f === s?.id);
235
- P(Ke(d, i, a)), X(null), Q(null);
234
+ const i = d.findIndex(({ name: f }) => f === t.id), o = d.findIndex(({ name: f }) => f === s?.id);
235
+ P(Ke(d, i, o)), X(null), Q(null);
236
236
  }, Et = () => {
237
237
  X(null), Q(null);
238
238
  }, Dt = (e) => {
@@ -241,7 +241,7 @@ const Ie = (T) => {
241
241
  }, Lt = (e, t) => {
242
242
  wt(e), kt(t);
243
243
  }, he = (e, t = !1, s = !1) => {
244
- const a = d.find((b) => b.name === e)?.is_pinned, f = [
244
+ const o = d.find((b) => b.name === e)?.is_pinned, f = [
245
245
  {
246
246
  label: /* @__PURE__ */ n(
247
247
  y,
@@ -260,12 +260,12 @@ const Ie = (T) => {
260
260
  {
261
261
  icon: /* @__PURE__ */ n(en, { size: 18, className: "text-inherit dark:text-inherit" }),
262
262
  text: u("Move Up"),
263
- isDisabled: z,
263
+ isDisabled: R,
264
264
  className: "text-black-900 dark:text-white"
265
265
  }
266
266
  ),
267
267
  key: c.MOVE_LEFT,
268
- disabled: z,
268
+ disabled: R,
269
269
  onClick: () => Ae(e, "left")
270
270
  },
271
271
  {
@@ -274,12 +274,12 @@ const Ie = (T) => {
274
274
  {
275
275
  icon: /* @__PURE__ */ n(tn, { size: 18, className: "text-inherit dark:text-inherit" }),
276
276
  text: u("Move Down"),
277
- isDisabled: z,
277
+ isDisabled: R,
278
278
  className: "text-black-900 dark:text-white"
279
279
  }
280
280
  ),
281
281
  key: c.MOVE_RIGHT,
282
- disabled: z,
282
+ disabled: R,
283
283
  onClick: () => Ae(e, "right")
284
284
  },
285
285
  {
@@ -310,7 +310,7 @@ const Ie = (T) => {
310
310
  label: /* @__PURE__ */ n(
311
311
  y,
312
312
  {
313
- icon: /* @__PURE__ */ n(an, { size: 18, className: "text-inherit dark:text-inherit" }),
313
+ icon: /* @__PURE__ */ n(on, { size: 18, className: "text-inherit dark:text-inherit" }),
314
314
  text: u("Unhide"),
315
315
  className: "text-black-900 dark:text-white"
316
316
  }
@@ -322,13 +322,13 @@ const Ie = (T) => {
322
322
  label: /* @__PURE__ */ n(
323
323
  y,
324
324
  {
325
- icon: a ? /* @__PURE__ */ n(on, { size: 20, className: "rotate-12 text-inherit dark:text-inherit" }) : /* @__PURE__ */ n(se, { size: 20, className: "rotate-45 text-inherit dark:text-inherit" }),
326
- text: u(a ? "Unpin" : "Pin"),
325
+ icon: o ? /* @__PURE__ */ n(an, { size: 20, className: "rotate-12 text-inherit dark:text-inherit" }) : /* @__PURE__ */ n(se, { size: 20, className: "rotate-45 text-inherit dark:text-inherit" }),
326
+ text: u(o ? "Unpin" : "Pin"),
327
327
  className: "text-black-900 dark:text-white",
328
328
  notVisible: !C
329
329
  }
330
330
  ),
331
- key: a ? c.UNPIN : c.PIN,
331
+ key: o ? c.UNPIN : c.PIN,
332
332
  onClick: () => ee(e)
333
333
  },
334
334
  {
@@ -360,7 +360,7 @@ const Ie = (T) => {
360
360
  ], te = [c.HIDE, c.UNHIDE], g = [c.SELECT, c.MOVE_LEFT, c.MOVE_RIGHT, c.UNHIDE];
361
361
  return f.filter(
362
362
  (b) => t ? b.key === c.UNHIDE : s ? !te.includes(b.key) : !g.includes(b.key)
363
- ).filter((b) => Nt ? !0 : b.key !== c.COPY_LINK).filter((b) => o.length === 1 ? b.key !== c.HIDE : !0);
363
+ ).filter((b) => Nt ? !0 : b.key !== c.COPY_LINK).filter((b) => a.length === 1 ? b.key !== c.HIDE : !0);
364
364
  }, L = (e, t) => ({
365
365
  classValue: {
366
366
  default: l("relative inline-flex pt-2 pb-3 px-2 pl-3 sm:px-2 rounded-t-sm group"),
@@ -399,7 +399,7 @@ const Ie = (T) => {
399
399
  _.forEach((t) => {
400
400
  e.find((s) => s.name === t) || e.push({ name: t, is_default: !1, is_hidden: !1, is_pinned: !1 });
401
401
  }), e = e.filter(
402
- (t, s, i) => _.includes(t.name) && s === i.findIndex((a) => a.name === t.name)
402
+ (t, s, i) => _.includes(t.name) && s === i.findIndex((o) => o.name === t.name)
403
403
  ), de(e);
404
404
  } else
405
405
  de(
@@ -420,11 +420,11 @@ const Ie = (T) => {
420
420
  "aria-orientation": "horizontal",
421
421
  className: l(
422
422
  "inline-flex grow-0 p-1 rounded-lg",
423
- oe === "dark" ? "border-[1.5px] border-neutral-800 bg-neutral-800 dark:border-black-800" : "bg-neutral-100 dark:bg-black-700",
423
+ ae === "dark" ? "border-[1.5px] border-neutral-800 bg-neutral-800 dark:border-black-800" : "bg-neutral-100 dark:bg-black-700",
424
424
  ie ? "w-full" : "w-auto"
425
425
  ),
426
426
  children: _.map((e) => {
427
- const t = r === e, s = re?.[e], i = d.find((f) => f.name === e), a = C && i?.is_pinned;
427
+ const t = r === e, s = re?.[e], i = d.find((f) => f.name === e), o = C && i?.is_pinned;
428
428
  return /* @__PURE__ */ n("li", { role: "presentation", className: l("inline-flex", ie ? "w-full" : "w-auto"), children: /* @__PURE__ */ n(
429
429
  Se,
430
430
  {
@@ -433,7 +433,7 @@ const Ie = (T) => {
433
433
  role: "tab",
434
434
  ariaSelected: t,
435
435
  tabIndex: 0,
436
- icon: a ? /* @__PURE__ */ n(Ce, { title: "Unpin", children: /* @__PURE__ */ n("span", { onClick: () => ee(e), children: /* @__PURE__ */ n(se, { size: 20, className: "rotate-45 text-inherit dark:text-inherit" }) }) }) : s,
436
+ icon: o ? /* @__PURE__ */ n(Ce, { title: "Unpin", children: /* @__PURE__ */ n("span", { onClick: () => ee(e), children: /* @__PURE__ */ n(se, { className: "rotate-45 w-icon h-icon text-inherit dark:text-inherit" }) }) }) : s,
437
437
  iconsOnly: rt,
438
438
  classValue: l(
439
439
  "relative py-0.5 border-gray-200",
@@ -442,7 +442,7 @@ const Ie = (T) => {
442
442
  ),
443
443
  selectedClassValue: l(
444
444
  "absolute inset-0 rounded-md z-0",
445
- oe === "dark" ? "bg-neutral-900" : "bg-white dark:bg-black-800"
445
+ ae === "dark" ? "bg-neutral-900" : "bg-white dark:bg-black-800"
446
446
  ),
447
447
  textClassValue: l(
448
448
  "relative text-xs font-semibold font-sans whitespace-nowrap",
@@ -450,10 +450,10 @@ const Ie = (T) => {
450
450
  ),
451
451
  isSelected: t,
452
452
  href: F(e),
453
- onClick: ot ? void 0 : () => B(e),
453
+ onClick: at ? void 0 : () => B(e),
454
454
  suffixRecord: p,
455
455
  selectedId: W,
456
- color: oe,
456
+ color: ae,
457
457
  disableAnimation: ct
458
458
  }
459
459
  ) }, e);
@@ -491,12 +491,12 @@ const Ie = (T) => {
491
491
  st ? /* @__PURE__ */ n("div", { className: "skeleton bg-neutral-300 dark:bg-black-700 animate-pulse h-10 min-w-[100px] w-full rounded" }) : /* @__PURE__ */ ke(
492
492
  Bt,
493
493
  {
494
- items: o.map(({ name: e }) => e),
494
+ items: a.map(({ name: e }) => e),
495
495
  strategy: jt,
496
496
  id: "sortable",
497
- disabled: !E || z,
497
+ disabled: !E || R,
498
498
  children: [
499
- o.slice(0, K).map(({ name: e, is_pinned: t }) => {
499
+ a.slice(0, K).map(({ name: e, is_pinned: t }) => {
500
500
  const s = r === e && !I, i = C && t;
501
501
  return /* @__PURE__ */ n(
502
502
  tt,
@@ -524,7 +524,7 @@ const Ie = (T) => {
524
524
  {
525
525
  menu: {
526
526
  items: he(e),
527
- className: ae
527
+ className: oe
528
528
  },
529
529
  trigger: ["click"],
530
530
  onOpenChange: Ie,
@@ -572,7 +572,7 @@ const Ie = (T) => {
572
572
  {
573
573
  menu: {
574
574
  items: he(r),
575
- className: ae
575
+ className: oe
576
576
  },
577
577
  trigger: ["click"],
578
578
  onOpenChange: Ie,
@@ -590,7 +590,7 @@ const Ie = (T) => {
590
590
  icon: C && d.find((e) => e.name === r)?.is_pinned ? /* @__PURE__ */ n(Ce, { title: u("Pinned"), children: /* @__PURE__ */ n("span", { onClick: () => ee(r), children: /* @__PURE__ */ n(se, { size: 20, className: "rotate-45 text-inherit dark:text-inherit" }) }) }) : re?.[r] ?? null
591
591
  }
592
592
  ) }, r) }, r) : null,
593
- (U < o.length && !A || V.length > 0) && Be > 0 ? /* @__PURE__ */ n(ln, { id: "more-tabs", children: /* @__PURE__ */ n(
593
+ (U < a.length && !A || V.length > 0) && Be > 0 ? /* @__PURE__ */ n(ln, { id: "more-tabs", children: /* @__PURE__ */ n(
594
594
  ye,
595
595
  {
596
596
  overlayStyle: {
@@ -619,7 +619,7 @@ const Ie = (T) => {
619
619
  }
620
620
  ) })
621
621
  },
622
- ...o.slice(K).filter((e) => e.name !== r).concat(V).filter(
622
+ ...a.slice(K).filter((e) => e.name !== r).concat(V).filter(
623
623
  ({ name: e }) => typeof e == "string" && (e ?? "").toLowerCase().includes(ce.toLowerCase())
624
624
  ).map(({ name: e, is_hidden: t }) => ({
625
625
  key: e,
@@ -640,11 +640,11 @@ const Ie = (T) => {
640
640
  }
641
641
  }
642
642
  ),
643
- popupClassName: ae,
643
+ popupClassName: oe,
644
644
  children: I ? he(e, t, !0) : null
645
645
  }))
646
646
  ],
647
- className: ae
647
+ className: oe
648
648
  },
649
649
  openClassName: "max-h-[350px] overflow-y-auto",
650
650
  trigger: ["click"],