@dinofront/design_system 1.17.3 → 1.19.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
@@ -6,14 +6,14 @@ import { Fragment as K, jsx as q, jsxs as J } from "react/jsx-runtime";
6
6
  import { createPortal as _e } from "react-dom";
7
7
  import { Controller as ve, useFieldArray as ye, useForm as be } from "react-hook-form";
8
8
  import { yupResolver as xe } from "@hookform/resolvers/yup";
9
- import Se, { components as Y } from "react-select";
10
- import Ce from "react-select/async";
11
- import we from "react-select/creatable";
12
- import Te from "react-select/async-creatable";
13
- import { useVirtualizer as Ee } from "@tanstack/react-virtual";
14
- import { flexRender as De, getCoreRowModel as Oe, getFilteredRowModel as ke, getPaginationRowModel as Ae, getSortedRowModel as je, useReactTable as Me } from "@tanstack/react-table";
15
- import { DndContext as Ne, KeyboardSensor as Pe, PointerSensor as Fe, closestCenter as Ie, useSensor as Le, useSensors as Re } from "@dnd-kit/core";
16
- import { SortableContext as ze, arrayMove as Be, horizontalListSortingStrategy as X, sortableKeyboardCoordinates as Z, useSortable as Ve } from "@dnd-kit/sortable";
9
+ import Se, { components as Ce } from "react-select";
10
+ import we from "react-select/async";
11
+ import Te from "react-select/creatable";
12
+ import Ee from "react-select/async-creatable";
13
+ import { useVirtualizer as De } from "@tanstack/react-virtual";
14
+ import { flexRender as Oe, getCoreRowModel as ke, getFilteredRowModel as Ae, getPaginationRowModel as je, getSortedRowModel as Me, useReactTable as Ne } from "@tanstack/react-table";
15
+ import { DndContext as Pe, KeyboardSensor as Fe, PointerSensor as Ie, closestCenter as Le, useSensor as Re, useSensors as ze } from "@dnd-kit/core";
16
+ import { SortableContext as Be, arrayMove as Ve, horizontalListSortingStrategy as Y, sortableKeyboardCoordinates as X, useSortable as Z } from "@dnd-kit/sortable";
17
17
  import { CSS as He } from "@dnd-kit/utilities";
18
18
  //#region src/lib/cn.ts
19
19
  var Ue = ge({ extend: { theme: { text: [
@@ -39,44 +39,44 @@ function Q(...e) {
39
39
  return Ue(G(e));
40
40
  }
41
41
  //#endregion
42
- //#region src/components/Divider/Divider.tsx
43
- var We = {
42
+ //#region src/lib/testId.ts
43
+ var We = (e) => (t) => e ? `${e}-${t}` : void 0, Ge = {
44
44
  horizontal: "h-0 w-full border-t",
45
45
  vertical: "w-0 h-full self-stretch border-l"
46
- }, Ge = {
46
+ }, Ke = {
47
47
  solid: "border-solid",
48
48
  dashed: "border-dashed"
49
- }, Ke = {
49
+ }, qe = {
50
50
  default: "border-border-default",
51
51
  subtle: "border-border-subtle",
52
52
  strong: "border-border-strong",
53
53
  brand: "border-border-brand"
54
- }, qe = a(function({ orientation: e = "horizontal", variant: t = "solid", color: n = "default", className: r, dataTestId: i, ...a }, o) {
54
+ }, Je = a(function({ orientation: e = "horizontal", variant: t = "solid", color: n = "default", className: r, dataTestId: i, ...a }, o) {
55
55
  return /* @__PURE__ */ q("div", {
56
56
  ref: o,
57
57
  role: "separator",
58
58
  "aria-orientation": e,
59
59
  "data-test-id": i,
60
- className: Q("shrink-0", We[e], Ge[t], Ke[n], r),
60
+ className: Q("shrink-0", Ge[e], Ke[t], qe[n], r),
61
61
  ...a
62
62
  });
63
- }), Je = (e, t) => e !== void 0 && t !== void 0 && String(e) === String(t), Ye = (e, t) => e.some((e) => Je(e, t)), Xe = r(null);
64
- function Ze() {
65
- let e = c(Xe);
63
+ }), Ye = (e, t) => e !== void 0 && t !== void 0 && String(e) === String(t), Xe = (e, t) => e.some((e) => Ye(e, t)), Ze = r(null);
64
+ function Qe() {
65
+ let e = c(Ze);
66
66
  if (!e) throw Error("AccordionItem must be used inside <Accordion>");
67
67
  return e;
68
68
  }
69
- function Qe(e) {
69
+ function $e(e) {
70
70
  return e === void 0 ? [] : Array.isArray(e) ? e : [e];
71
71
  }
72
- var $e = a(function({ type: e = "single", defaultValue: t, value: n, onValueChange: r, animated: i = !0, showDivider: a = !1, className: o, children: s, dataTestId: c, ...l }, u) {
73
- let [d, f] = m(() => Qe(t)), p = n !== void 0, h = p ? Qe(n) : d;
74
- return /* @__PURE__ */ q(Xe.Provider, {
72
+ var et = a(function({ type: e = "single", defaultValue: t, value: n, onValueChange: r, animated: i = !0, showDivider: a = !1, className: o, children: s, dataTestId: c, ...l }, u) {
73
+ let [d, f] = m(() => $e(t)), p = n !== void 0, h = p ? $e(n) : d;
74
+ return /* @__PURE__ */ q(Ze.Provider, {
75
75
  value: {
76
76
  openValues: h,
77
77
  toggle: (t) => {
78
- let n = Ye(h, t), i;
79
- i = e === "single" ? n ? [] : [t] : n ? h.filter((e) => !Je(e, t)) : [...h, t], p || f(i), r?.(e === "single" ? i[0] : i);
78
+ let n = Xe(h, t), i;
79
+ i = e === "single" ? n ? [] : [t] : n ? h.filter((e) => !Ye(e, t)) : [...h, t], p || f(i), r?.(e === "single" ? i[0] : i);
80
80
  },
81
81
  animated: i,
82
82
  showDivider: a
@@ -89,8 +89,8 @@ var $e = a(function({ type: e = "single", defaultValue: t, value: n, onValueChan
89
89
  children: s
90
90
  })
91
91
  });
92
- }), et = a(function({ value: e, title: t, icon: n, disabled: r, className: i, children: a, dataTestId: o, ...s }, c) {
93
- let { openValues: l, toggle: d, animated: f, showDivider: p } = Ze(), m = Ye(l, e), h = u(), g = u(), _ = /* @__PURE__ */ J(K, { children: [p && /* @__PURE__ */ q(qe, { className: "mb-4" }), a] });
92
+ }), tt = a(function({ value: e, title: t, icon: n, disabled: r, className: i, children: a, dataTestId: o, ...s }, c) {
93
+ let { openValues: l, toggle: d, animated: f, showDivider: p } = Qe(), m = Xe(l, e), h = u(), g = u(), _ = /* @__PURE__ */ J(K, { children: [p && /* @__PURE__ */ q(Je, { className: "mb-4" }), a] });
94
94
  return /* @__PURE__ */ J("div", {
95
95
  ref: c,
96
96
  "data-test-id": o,
@@ -99,6 +99,7 @@ var $e = a(function({ type: e = "single", defaultValue: t, value: n, onValueChan
99
99
  ...s,
100
100
  children: [/* @__PURE__ */ q("h3", { children: /* @__PURE__ */ J("button", {
101
101
  id: g,
102
+ "data-test-id": We(o)("trigger"),
102
103
  type: "button",
103
104
  onClick: () => d(e),
104
105
  disabled: r,
@@ -137,15 +138,15 @@ var $e = a(function({ type: e = "single", defaultValue: t, value: n, onValueChan
137
138
  children: _
138
139
  })]
139
140
  });
140
- }), tt = {
141
+ }), nt = {
141
142
  lg: "h-12 px-5 text-p-md gap-2 rounded-lg",
142
143
  md: "h-10 px-4 text-p-std gap-2 rounded-lg",
143
144
  sm: "h-8 px-3 text-p-sm gap-1.5 rounded-md"
144
- }, nt = {
145
+ }, rt = {
145
146
  lg: "h-12 w-12 rounded-lg",
146
147
  md: "h-10 w-10 rounded-lg",
147
148
  sm: "h-8 w-8 rounded-md"
148
- }, rt = {
149
+ }, it = {
149
150
  primary: [
150
151
  "bg-brand-500 text-white border border-transparent",
151
152
  "hover:bg-brand-600 active:bg-brand-700",
@@ -170,12 +171,12 @@ var $e = a(function({ type: e = "single", defaultValue: t, value: n, onValueChan
170
171
  "disabled:bg-bg-subtle disabled:text-fg-disabled disabled:cursor-not-allowed",
171
172
  "focus-visible:ring-2 focus-visible:ring-red-300 focus-visible:ring-offset-2"
172
173
  ].join(" ")
173
- }, it = {
174
+ }, at = {
174
175
  primary: "bg-brand-700",
175
176
  secondary: "bg-bg-subtle",
176
177
  tertiary: "bg-bg-subtle",
177
178
  danger: "bg-red-900"
178
- }, at = a(function({ variant: e = "primary", size: t = "md", leftIcon: n, rightIcon: r, loading: i = !1, iconOnly: a = !1, fullWidth: o = !1, pressed: s = !1, disabled: c, className: l, children: u, onClick: d, dataTestId: f, ...p }, m) {
179
+ }, ot = a(function({ variant: e = "primary", size: t = "md", leftIcon: n, rightIcon: r, loading: i = !1, iconOnly: a = !1, fullWidth: o = !1, pressed: s = !1, disabled: c, className: l, children: u, onClick: d, dataTestId: f, ...p }, m) {
179
180
  return /* @__PURE__ */ q("button", {
180
181
  type: "button",
181
182
  ref: m,
@@ -189,7 +190,7 @@ var $e = a(function({ type: e = "single", defaultValue: t, value: n, onValueChan
189
190
  }
190
191
  d?.(e);
191
192
  },
192
- className: Q("inline-flex items-center justify-center whitespace-nowrap font-medium transition-colors outline-none cursor-pointer", a ? nt[t] : tt[t], rt[e], s && it[e], o && "w-full", l),
193
+ className: Q("inline-flex items-center justify-center whitespace-nowrap font-medium transition-colors outline-none cursor-pointer", a ? rt[t] : nt[t], it[e], s && at[e], o && "w-full", l),
193
194
  ...p,
194
195
  children: i ? /* @__PURE__ */ q(ne, {
195
196
  className: "h-4 w-4 animate-spin",
@@ -209,27 +210,27 @@ var $e = a(function({ type: e = "single", defaultValue: t, value: n, onValueChan
209
210
  });
210
211
  //#endregion
211
212
  //#region src/components/Upload/Upload.tsx
212
- function ot(e, t) {
213
+ function st(e, t) {
213
214
  let n = t.split(",").map((e) => e.trim().toLowerCase()).filter(Boolean);
214
215
  if (!n.length) return !0;
215
216
  let r = e.name.toLowerCase(), i = e.type.toLowerCase();
216
217
  return n.some((e) => e.endsWith("/*") ? i.startsWith(e.slice(0, -1)) : e.startsWith(".") ? r.endsWith(e) : i === e);
217
218
  }
218
- var st = [
219
+ var ct = [
219
220
  "KB",
220
221
  "MB",
221
222
  "GB"
222
223
  ];
223
- function ct(e) {
224
+ function lt(e) {
224
225
  if (e < 1024) return `${e} B`;
225
226
  let t = e / 1024, n = 0;
226
- for (; t >= 1024 && n < st.length - 1;) t /= 1024, n += 1;
227
- return `${t.toFixed(1)} ${st[n]}`;
227
+ for (; t >= 1024 && n < ct.length - 1;) t /= 1024, n += 1;
228
+ return `${t.toFixed(1)} ${ct[n]}`;
228
229
  }
229
- function lt(e, { accept: t, maxSizeMB: n }) {
230
- return t && !ot(e, t) ? "type" : n !== void 0 && e.size > n * 1024 * 1024 ? "size" : null;
230
+ function ut(e, { accept: t, maxSizeMB: n }) {
231
+ return t && !st(e, t) ? "type" : n !== void 0 && e.size > n * 1024 * 1024 ? "size" : null;
231
232
  }
232
- var ut = 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) {
233
+ var dt = 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) {
233
234
  let O = p(null), [k, A] = m(!1), j = p(0), M = x || !!S, ee = u(), te = S ? `${ee}-error` : void 0, N = (t) => {
234
235
  if (!t.length) return;
235
236
  if (!o) {
@@ -245,7 +246,7 @@ var ut = a(function({ accept: e, multiple: t = !1, maxSizeMB: n, hint: r, onFile
245
246
  });
246
247
  continue;
247
248
  }
248
- let t = lt(i, {
249
+ let t = ut(i, {
249
250
  accept: e,
250
251
  maxSizeMB: n
251
252
  });
@@ -297,9 +298,9 @@ var ut = a(function({ accept: e, multiple: t = !1, maxSizeMB: n, hint: r, onFile
297
298
  children: S
298
299
  }) : null, R = f && l.length > 0 && /* @__PURE__ */ q("div", {
299
300
  className: "flex flex-col gap-2",
300
- children: l.map((e, t) => /* @__PURE__ */ q(ft, {
301
+ children: l.map((e, t) => /* @__PURE__ */ q(pt, {
301
302
  name: e.name,
302
- meta: ct(e.size),
303
+ meta: lt(e.size),
303
304
  status: "completed",
304
305
  onRemove: g !== "view" && h ? () => h(e, t) : void 0
305
306
  }, `${t}-${e.name}-${e.size}`))
@@ -324,7 +325,7 @@ var ut = a(function({ accept: e, multiple: t = !1, maxSizeMB: n, hint: r, onFile
324
325
  ...E,
325
326
  children: [
326
327
  I,
327
- /* @__PURE__ */ q(at, {
328
+ /* @__PURE__ */ q(ot, {
328
329
  type: "button",
329
330
  variant: "secondary",
330
331
  iconOnly: e,
@@ -392,16 +393,16 @@ var ut = a(function({ accept: e, multiple: t = !1, maxSizeMB: n, hint: r, onFile
392
393
  L
393
394
  ]
394
395
  });
395
- }), dt = {
396
+ }), ft = {
396
397
  processing: "border-border-default bg-bg-default",
397
398
  completed: "border-border-default bg-bg-default",
398
399
  error: "border-red-300 bg-bg-danger-lighter"
399
- }, ft = a(function({ name: e, meta: t, status: n = "processing", progress: r = 0, errorText: i, onRetry: a, onRemove: o, onOpen: s, previewSrc: c, className: l, dataTestId: u, ...d }, f) {
400
+ }, pt = a(function({ name: e, meta: t, status: n = "processing", progress: r = 0, errorText: i, onRetry: a, onRemove: o, onOpen: s, previewSrc: c, className: l, dataTestId: u, ...d }, f) {
400
401
  let [p, g] = m(!1), _ = !!c && !p;
401
402
  return /* @__PURE__ */ J("div", {
402
403
  ref: f,
403
404
  "data-test-id": u,
404
- className: Q("flex items-start gap-3 px-3 py-2.5 rounded-lg border", dt[n], l),
405
+ className: Q("flex items-start gap-3 px-3 py-2.5 rounded-lg border", ft[n], l),
405
406
  ...d,
406
407
  children: [
407
408
  /* @__PURE__ */ q("div", {
@@ -468,7 +469,7 @@ var ut = a(function({ accept: e, multiple: t = !1, maxSizeMB: n, hint: r, onFile
468
469
  })
469
470
  ]
470
471
  });
471
- }), pt = {
472
+ }), mt = {
472
473
  "2xs": "h-5 w-5 text-p-xs",
473
474
  xs: "h-6 w-6 text-p-xs",
474
475
  sm: "h-8 w-8 text-p-sm",
@@ -476,7 +477,7 @@ var ut = a(function({ accept: e, multiple: t = !1, maxSizeMB: n, hint: r, onFile
476
477
  lg: "h-12 w-12 text-p-md",
477
478
  xl: "h-16 w-16 text-h-xs",
478
479
  "2xl": "h-20 w-20 text-h-xs"
479
- }, mt = {
480
+ }, ht = {
480
481
  "2xs": "h-1 w-1",
481
482
  xs: "h-1.5 w-1.5",
482
483
  sm: "h-2 w-2",
@@ -484,12 +485,12 @@ var ut = a(function({ accept: e, multiple: t = !1, maxSizeMB: n, hint: r, onFile
484
485
  lg: "h-3 w-3",
485
486
  xl: "h-3.5 w-3.5",
486
487
  "2xl": "h-4 w-4"
487
- }, ht = {
488
+ }, gt = {
488
489
  online: "bg-green-500",
489
490
  offline: "bg-gray-400 dark:bg-gray-500",
490
491
  away: "bg-yellow-600",
491
492
  busy: "bg-red-600"
492
- }, gt = {
493
+ }, _t = {
493
494
  "2xs": "-ml-1",
494
495
  xs: "-ml-1.5",
495
496
  sm: "-ml-2",
@@ -497,7 +498,7 @@ var ut = a(function({ accept: e, multiple: t = !1, maxSizeMB: n, hint: r, onFile
497
498
  lg: "-ml-3",
498
499
  xl: "-ml-4",
499
500
  "2xl": "-ml-5"
500
- }, _t = {
501
+ }, vt = {
501
502
  "2xs": "h-2 w-2",
502
503
  xs: "h-3 w-3",
503
504
  sm: "h-4 w-4",
@@ -506,11 +507,11 @@ var ut = a(function({ accept: e, multiple: t = !1, maxSizeMB: n, hint: r, onFile
506
507
  xl: "h-7 w-7",
507
508
  "2xl": "h-8 w-8"
508
509
  };
509
- function vt(e) {
510
+ function yt(e) {
510
511
  let t = e.trim().split(/\s+/);
511
512
  return t.length === 0 ? "" : t.length === 1 ? t[0].slice(0, 2).toUpperCase() : (t[0][0] + t[t.length - 1][0]).toUpperCase();
512
513
  }
513
- function yt(e) {
514
+ function bt(e) {
514
515
  let t = [
515
516
  "bg-brand-500",
516
517
  "bg-blue-600",
@@ -522,7 +523,7 @@ function yt(e) {
522
523
  for (let t = 0; t < e.length; t++) n = (n << 5) - n + e.charCodeAt(t), n |= 0;
523
524
  return t[Math.abs(n) % t.length];
524
525
  }
525
- var bt = a(function({ src: e, alt: t, name: n, size: r = "md", status: i, shape: a = "circle", fallback: o, editable: s, onImageChange: c, accept: u, maxSizeMB: d, onReject: f, className: h, dataTestId: g, ..._ }, v) {
526
+ var xt = a(function({ src: e, alt: t, name: n, size: r = "md", status: i, shape: a = "circle", fallback: o, editable: s, onImageChange: c, accept: u, maxSizeMB: d, onReject: f, className: h, dataTestId: g, ..._ }, v) {
526
527
  let [y, b] = m(!1), [x, S] = m(null), C = p(null), w = p(e), T = p(null);
527
528
  l(() => {
528
529
  if (T.current = x, x) return () => URL.revokeObjectURL(x);
@@ -534,7 +535,7 @@ var bt = a(function({ src: e, alt: t, name: n, size: r = "md", status: i, shape:
534
535
  let E = (e) => {
535
536
  let t = e?.[0];
536
537
  if (!t) return;
537
- let n = lt(t, {
538
+ let n = ut(t, {
538
539
  accept: u,
539
540
  maxSizeMB: d
540
541
  });
@@ -547,7 +548,7 @@ var bt = a(function({ src: e, alt: t, name: n, size: r = "md", status: i, shape:
547
548
  }
548
549
  let r = URL.createObjectURL(t);
549
550
  T.current = r, S(r), b(!1), c?.(t);
550
- }, D = x ?? e, O = !!D && !y, k = n ? vt(n) : "", A = n ? yt(n) : "bg-gray-300 dark:bg-gray-600";
551
+ }, D = x ?? e, O = !!D && !y, k = n ? yt(n) : "", A = n ? bt(n) : "bg-gray-300 dark:bg-gray-600";
551
552
  return /* @__PURE__ */ J("span", {
552
553
  ref: v,
553
554
  "data-test-id": g,
@@ -555,7 +556,7 @@ var bt = a(function({ src: e, alt: t, name: n, size: r = "md", status: i, shape:
555
556
  ..._,
556
557
  children: [
557
558
  /* @__PURE__ */ q("span", {
558
- className: Q("inline-flex items-center justify-center overflow-hidden font-semibold text-white select-none", pt[r], a === "circle" ? "rounded-full" : "rounded-md", !O && A),
559
+ className: Q("inline-flex items-center justify-center overflow-hidden font-semibold text-white select-none", mt[r], a === "circle" ? "rounded-full" : "rounded-md", !O && A),
559
560
  children: O ? /* @__PURE__ */ q("img", {
560
561
  src: D,
561
562
  alt: t ?? n ?? "",
@@ -565,7 +566,7 @@ var bt = a(function({ src: e, alt: t, name: n, size: r = "md", status: i, shape:
565
566
  }),
566
567
  i && /* @__PURE__ */ q("span", {
567
568
  "aria-label": i,
568
- className: Q("absolute bottom-0 rounded-full ring-2 ring-white", s ? "left-0" : "right-0", mt[r], ht[i])
569
+ className: Q("absolute bottom-0 rounded-full ring-2 ring-white", s ? "left-0" : "right-0", ht[r], gt[i])
569
570
  }),
570
571
  s && /* @__PURE__ */ J(K, { children: [/* @__PURE__ */ q("button", {
571
572
  type: "button",
@@ -573,7 +574,7 @@ var bt = a(function({ src: e, alt: t, name: n, size: r = "md", status: i, shape:
573
574
  e.stopPropagation(), C.current?.click();
574
575
  },
575
576
  "aria-label": "Change avatar image",
576
- 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", _t[r]),
577
+ 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", vt[r]),
577
578
  children: /* @__PURE__ */ q(ae, { className: "h-1/2 w-1/2" })
578
579
  }), /* @__PURE__ */ q("input", {
579
580
  ref: C,
@@ -587,7 +588,7 @@ var bt = a(function({ src: e, alt: t, name: n, size: r = "md", status: i, shape:
587
588
  })] })
588
589
  ]
589
590
  });
590
- }), xt = a(function({ size: e = "md", max: t, children: n, className: r, dataTestId: i, ...a }, o) {
591
+ }), St = a(function({ size: e = "md", max: t, children: n, className: r, dataTestId: i, ...a }, o) {
591
592
  let s = Array.isArray(n) ? n : [n], c = t === void 0 ? s : s.slice(0, t), l = t === void 0 ? 0 : s.length - t;
592
593
  return /* @__PURE__ */ J("div", {
593
594
  ref: o,
@@ -595,38 +596,38 @@ var bt = a(function({ src: e, alt: t, name: n, size: r = "md", status: i, shape:
595
596
  className: Q("inline-flex items-center", r),
596
597
  ...a,
597
598
  children: [c.map((t, n) => /* @__PURE__ */ q("div", {
598
- className: Q("rounded-full ring-2 ring-white", n > 0 && gt[e]),
599
+ className: Q("rounded-full ring-2 ring-white", n > 0 && _t[e]),
599
600
  style: { zIndex: c.length - n },
600
601
  children: t
601
602
  }, n)), l > 0 && /* @__PURE__ */ q("div", {
602
- className: Q("rounded-full ring-2 ring-white", gt[e]),
603
- children: /* @__PURE__ */ q(bt, {
603
+ className: Q("rounded-full ring-2 ring-white", _t[e]),
604
+ children: /* @__PURE__ */ q(xt, {
604
605
  size: e,
605
606
  name: `+${l}`
606
607
  })
607
608
  })]
608
609
  });
609
- }), St = {
610
+ }), Ct = {
610
611
  lg: "h-7 px-2.5 text-p-std gap-1.5",
611
612
  md: "h-6 px-2 text-p-sm gap-1",
612
613
  sm: "h-5 px-1.5 text-p-sm gap-1",
613
614
  xs: "h-4 px-1 text-p-xs gap-0.5"
614
- }, Ct = {
615
+ }, wt = {
615
616
  lg: "rounded-md",
616
617
  md: "rounded-md",
617
618
  sm: "rounded",
618
619
  xs: "rounded"
619
- }, wt = {
620
+ }, Tt = {
620
621
  lg: "size-2.5",
621
622
  md: "size-2",
622
623
  sm: "size-1.5",
623
624
  xs: "size-1"
624
- }, Tt = {
625
+ }, Et = {
625
626
  lg: "min-w-7 px-0 justify-center",
626
627
  md: "min-w-6 px-0 justify-center",
627
628
  sm: "min-w-5 px-0 justify-center",
628
629
  xs: "min-w-4 px-0 justify-center"
629
- }, Et = {
630
+ }, Dt = {
630
631
  neutral: "bg-bg-subtle text-fg-default border border-border-default",
631
632
  brand: "bg-brand-20 text-brand-800 border border-brand-100",
632
633
  success: "bg-green-50 text-green-800 border border-green-100",
@@ -634,7 +635,7 @@ var bt = a(function({ src: e, alt: t, name: n, size: r = "md", status: i, shape:
634
635
  danger: "bg-red-50 text-red-800 border border-red-100",
635
636
  info: "bg-blue-50 text-blue-800 border border-blue-100",
636
637
  privacy: "bg-purple-50 text-purple-800 border border-purple-100"
637
- }, Dt = {
638
+ }, Ot = {
638
639
  neutral: "bg-transparent text-fg-default border border-border-strong",
639
640
  brand: "bg-transparent text-brand-700 border border-brand-500",
640
641
  success: "bg-transparent text-green-700 border border-green-500",
@@ -642,7 +643,7 @@ var bt = a(function({ src: e, alt: t, name: n, size: r = "md", status: i, shape:
642
643
  danger: "bg-transparent text-red-700 border border-red-500",
643
644
  info: "bg-transparent text-blue-700 border border-blue-500",
644
645
  privacy: "bg-transparent text-purple-700 border border-purple-500"
645
- }, Ot = {
646
+ }, kt = {
646
647
  neutral: "bg-fg-default text-bg-default",
647
648
  brand: "bg-brand-500 text-white",
648
649
  success: "bg-green-600 text-white",
@@ -650,21 +651,21 @@ var bt = a(function({ src: e, alt: t, name: n, size: r = "md", status: i, shape:
650
651
  danger: "bg-red-700 text-white",
651
652
  info: "bg-blue-600 text-white",
652
653
  privacy: "bg-purple-500 text-white"
653
- }, kt = {
654
+ }, At = {
654
655
  filled: "hover:brightness-95 active:brightness-90",
655
656
  outline: "hover:bg-bg-subtle active:bg-bg-container",
656
657
  accent: "hover:brightness-90 active:brightness-80"
657
- }, At = a(function({ variant: e = "neutral", appearance: t = "filled", size: n = "md", shape: r = "rounded", leftIcon: i, rightIcon: a, onDismiss: o, dot: s = !1, withDot: c = !1, disabled: l = !1, interactive: u = !1, className: d, children: f, dataTestId: p, onClick: m, onKeyDown: h, ...g }, _) {
658
- let v = t === "filled" ? Et[e] : t === "outline" ? Dt[e] : Ot[e];
658
+ }, jt = a(function({ variant: e = "neutral", appearance: t = "filled", size: n = "md", shape: r = "rounded", leftIcon: i, rightIcon: a, onDismiss: o, dot: s = !1, withDot: c = !1, disabled: l = !1, interactive: u = !1, className: d, children: f, dataTestId: p, onClick: m, onKeyDown: h, ...g }, _) {
659
+ let v = t === "filled" ? Dt[e] : t === "outline" ? Ot[e] : kt[e];
659
660
  if (s) return /* @__PURE__ */ q("span", {
660
661
  ref: _,
661
662
  "data-test-id": p,
662
663
  "aria-hidden": !g["aria-label"] || void 0,
663
664
  onClick: l ? void 0 : m,
664
- className: Q("inline-block shrink-0 rounded-full", wt[n], Ot[e], l && "opacity-50", d),
665
+ className: Q("inline-block shrink-0 rounded-full", Tt[n], kt[e], l && "opacity-50", d),
665
666
  ...g
666
667
  });
667
- let y = f == null && !c && !!(i || a), b = r === "pill" ? "rounded-full" : Ct[n];
668
+ let y = f == null && !c && !!(i || a), b = r === "pill" ? "rounded-full" : wt[n];
668
669
  return /* @__PURE__ */ J("span", {
669
670
  ref: _,
670
671
  "data-test-id": p,
@@ -675,11 +676,11 @@ var bt = a(function({ src: e, alt: t, name: n, size: r = "md", status: i, shape:
675
676
  onKeyDown: u ? (e) => {
676
677
  h?.(e), !(l || !m) && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), m(e));
677
678
  } : h,
678
- className: Q("inline-flex items-center font-medium whitespace-nowrap select-none", St[n], b, v, y && Tt[n], u && !l && Q("cursor-pointer transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-300 focus-visible:ring-offset-1", kt[t]), l && "opacity-50 cursor-not-allowed pointer-events-none", d),
679
+ className: Q("inline-flex items-center font-medium whitespace-nowrap select-none", Ct[n], b, v, y && Et[n], u && !l && Q("cursor-pointer transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-300 focus-visible:ring-offset-1", At[t]), l && "opacity-50 cursor-not-allowed pointer-events-none", d),
679
680
  ...g,
680
681
  children: [
681
682
  c ? /* @__PURE__ */ q("span", {
682
- className: Q("inline-block shrink-0 rounded-full", wt[n], Ot[e]),
683
+ className: Q("inline-block shrink-0 rounded-full", Tt[n], kt[e]),
683
684
  "aria-hidden": !0
684
685
  }) : i && /* @__PURE__ */ q("span", {
685
686
  className: "inline-flex shrink-0",
@@ -700,16 +701,16 @@ var bt = a(function({ src: e, alt: t, name: n, size: r = "md", status: i, shape:
700
701
  })
701
702
  ]
702
703
  });
703
- }), jt = {
704
+ }), Mt = {
704
705
  md: "text-p-sm",
705
706
  sm: "text-p-xs"
706
- }, Mt = "rounded-sm text-fg-tertiary transition-colors hover:text-fg-secondary outline-none focus-visible:ring-2 focus-visible:ring-brand-300", Nt = a(function({ items: e, currentValue: n, onSelect: r, separator: i = "/", size: a = "md", className: o, dataTestId: s, ...c }, l) {
707
+ }, Nt = "rounded-sm text-fg-tertiary transition-colors hover:text-fg-secondary outline-none focus-visible:ring-2 focus-visible:ring-brand-300", Pt = a(function({ items: e, currentValue: n, onSelect: r, separator: i = "/", size: a = "md", className: o, dataTestId: s, ...c }, l) {
707
708
  let u = n ?? e[e.length - 1]?.value;
708
709
  return /* @__PURE__ */ q("nav", {
709
710
  ref: l,
710
711
  "aria-label": "Breadcrumb",
711
712
  "data-test-id": s,
712
- className: Q(jt[a], o),
713
+ className: Q(Mt[a], o),
713
714
  ...c,
714
715
  children: /* @__PURE__ */ q("ol", {
715
716
  className: "flex items-center",
@@ -731,74 +732,74 @@ var bt = a(function({ src: e, alt: t, name: n, size: r = "md", status: i, shape:
731
732
  }) : e.href ? /* @__PURE__ */ q("a", {
732
733
  href: e.href,
733
734
  onClick: () => r?.(e.value),
734
- className: Mt,
735
+ className: Nt,
735
736
  children: e.label
736
737
  }) : /* @__PURE__ */ q("button", {
737
738
  type: "button",
738
739
  onClick: () => r?.(e.value),
739
- className: Mt,
740
+ className: Nt,
740
741
  children: e.label
741
742
  })
742
743
  })] }, e.value);
743
744
  })
744
745
  })
745
746
  });
746
- }), Pt = {
747
+ }), Ft = {
747
748
  horizontal: "flex-row [&>*]:rounded-none [&>*:first-child]:rounded-l-lg [&>*:last-child]:rounded-r-lg [&>*:not(:first-child)]:-ml-px",
748
749
  vertical: "flex-col [&>*]:rounded-none [&>*:first-child]:rounded-t-lg [&>*:last-child]:rounded-b-lg [&>*:not(:first-child)]:-mt-px"
749
- }, Ft = a(function({ orientation: e = "horizontal", className: t, children: n, dataTestId: r, ...i }, a) {
750
+ }, It = a(function({ orientation: e = "horizontal", className: t, children: n, dataTestId: r, ...i }, a) {
750
751
  return /* @__PURE__ */ q("div", {
751
752
  ref: a,
752
753
  role: "group",
753
754
  "data-test-id": r,
754
- className: Q("inline-flex isolate", Pt[e], "[&>*]:relative [&>*:hover]:z-10 [&>*:focus-visible]:z-10", t),
755
+ className: Q("inline-flex isolate", Ft[e], "[&>*]:relative [&>*:hover]:z-10 [&>*:focus-visible]:z-10", t),
755
756
  ...i,
756
757
  children: n
757
758
  });
758
- }), It = {
759
+ }), Lt = {
759
760
  elevated: "bg-bg-default border border-border-default shadow-z1",
760
761
  outlined: "bg-bg-default border border-border-default",
761
762
  filled: "bg-bg-container border border-transparent"
762
- }, Lt = {
763
+ }, Rt = {
763
764
  none: "p-0",
764
765
  sm: "p-4",
765
766
  md: "p-5",
766
767
  lg: "p-6"
767
- }, Rt = a(function({ variant: e = "outlined", padding: t = "md", header: n, footer: r, interactive: i = !1, className: a, children: o, dataTestId: s, ...c }, l) {
768
+ }, zt = a(function({ variant: e = "outlined", padding: t = "md", header: n, footer: r, interactive: i = !1, className: a, children: o, dataTestId: s, ...c }, l) {
768
769
  let u = n || r;
769
770
  return /* @__PURE__ */ J("div", {
770
771
  ref: l,
771
772
  "data-test-id": s,
772
- className: Q("rounded-xl overflow-hidden", It[e], i && "transition-all hover:border-brand-500 hover:shadow-z2", !u && Lt[t], a),
773
+ className: Q("rounded-xl overflow-hidden", Lt[e], i && "transition-all hover:border-brand-500 hover:shadow-z2", !u && Rt[t], a),
773
774
  ...c,
774
775
  children: [
775
776
  n && /* @__PURE__ */ q("div", {
776
- className: Q("border-b border-border-subtle", Lt[t]),
777
+ className: Q("border-b border-border-subtle", Rt[t]),
777
778
  children: n
778
779
  }),
779
780
  u ? /* @__PURE__ */ q("div", {
780
- className: Lt[t],
781
+ className: Rt[t],
781
782
  children: o
782
783
  }) : o,
783
784
  r && /* @__PURE__ */ q("div", {
784
- className: Q("border-t border-border-subtle", Lt[t]),
785
+ className: Q("border-t border-border-subtle", Rt[t]),
785
786
  children: r
786
787
  })
787
788
  ]
788
789
  });
789
- }), zt = {
790
+ }), Bt = {
790
791
  brand: "bg-bg-brand-lighter text-brand-800",
791
792
  blue: "bg-bg-info-lighter text-blue-800",
792
793
  purple: "bg-purple-50 text-purple-800 dark:bg-purple-900/30 dark:text-purple-200",
793
794
  pink: "bg-pink-50 text-pink-800 dark:bg-pink-900/30 dark:text-pink-200",
794
795
  yellow: "bg-bg-warning-lighter text-yellow-900",
795
796
  gray: "bg-bg-subtle text-fg-secondary"
796
- }, Bt = a(function({ title: e, header: t, children: n, noDivider: r = !1, className: i, dataTestId: a, ...o }, s) {
797
+ }, Vt = a(function({ title: e, header: t, children: n, noDivider: r = !1, className: i, dataTestId: a, ...o }, s) {
797
798
  let c = e?.placement ?? "left", l = !!e && c !== "top", u = e && /* @__PURE__ */ q("div", {
798
- className: Q("flex shrink-0 items-center justify-center text-center text-label-md font-bold", l ? Q("px-2 [writing-mode:vertical-rl]", c === "left" && "rotate-180") : "px-4 py-2", zt[e.color ?? "gray"]),
799
+ className: Q("flex shrink-0 items-center justify-center text-center text-label-md font-bold", l ? Q("px-2 [writing-mode:vertical-rl]", c === "left" && "rotate-180") : "px-4 py-2", Bt[e.color ?? "gray"]),
799
800
  children: e.text
800
801
  });
801
- return /* @__PURE__ */ q(Rt, {
802
+ return /* @__PURE__ */ q(zt, {
802
803
  ref: s,
803
804
  dataTestId: a,
804
805
  variant: "outlined",
@@ -813,14 +814,14 @@ var bt = a(function({ src: e, alt: t, name: n, size: r = "md", status: i, shape:
813
814
  })]
814
815
  })
815
816
  });
816
- }), Vt = (e) => (t) => e ? `${e}-${t}` : void 0, Ht = {
817
+ }), Ht = {
817
818
  md: "h-5 w-5 rounded-sm",
818
819
  sm: "h-4 w-4 rounded-sm"
819
820
  }, Ut = {
820
821
  md: "h-3.5 w-3.5",
821
822
  sm: "h-3 w-3"
822
823
  }, Wt = a(function({ size: e = "md", label: t, description: n, errorText: r, required: i, indeterminate: a = !1, error: o = !1, id: s, disabled: c, checked: l, defaultChecked: d, className: f, dataTestId: p, ...m }, h) {
823
- let g = u(), _ = s ?? g, v = o || !!r, y = r ? `${_}-error` : void 0, x = Vt(p);
824
+ let g = u(), _ = s ?? g, v = o || !!r, y = r ? `${_}-error` : void 0, x = We(p);
824
825
  return /* @__PURE__ */ J("label", {
825
826
  htmlFor: _,
826
827
  "data-test-id": p,
@@ -1030,7 +1031,7 @@ var Zt = a(function({ text: e, copiedLabel: t = "Copied", label: n = "Copy to cl
1030
1031
  content: t,
1031
1032
  side: "top",
1032
1033
  align: "center",
1033
- children: /* @__PURE__ */ q(at, {
1034
+ children: /* @__PURE__ */ q(ot, {
1034
1035
  ref: d,
1035
1036
  type: "button",
1036
1037
  variant: "tertiary",
@@ -1340,7 +1341,7 @@ var xn = a(function({ value: e, onChange: t, clearable: n = !1, range: r = !1, r
1340
1341
  monthNames: dn(e),
1341
1342
  weekdayNames: pn(e, t)
1342
1343
  };
1343
- }, [s]), V = yn(L, pe), H = Vt(te), W = i ?? {
1344
+ }, [s]), V = yn(L, pe), H = We(te), W = i ?? {
1344
1345
  start: null,
1345
1346
  end: null
1346
1347
  }, G = W.end ?? re;
@@ -1771,39 +1772,42 @@ var Bn = {
1771
1772
  top: "-translate-y-full",
1772
1773
  bottom: "translate-y-full"
1773
1774
  }, Wn = a(function({ open: e, onClose: t, side: n = "right", size: r = "md", title: i, description: a, children: o, footer: s, closeOnOverlayClick: c = !0, showClose: u = !0, animated: d = !0, headerActions: f, className: m, dataTestId: h }, g) {
1774
- let _ = p(null), { mounted: v, state: y } = zn(e, d ? Ln.slow : 0), b = y === "entered";
1775
+ let _ = p(null), v = p(null), { mounted: y, state: b } = zn(e, d ? Ln.slow : 0), x = b === "entered";
1775
1776
  if (l(() => {
1776
- if (!v) return;
1777
- let e = (e) => {
1778
- e.key === "Escape" && t();
1779
- };
1780
- document.addEventListener("keydown", e);
1781
- let n = document.body.style.overflow;
1777
+ if (!y) return;
1778
+ let e = document.body.style.overflow;
1782
1779
  return document.body.style.overflow = "hidden", () => {
1783
- document.removeEventListener("keydown", e), document.body.style.overflow = n;
1780
+ document.body.style.overflow = e;
1781
+ };
1782
+ }, [y]), l(() => {
1783
+ let e = _.current;
1784
+ if (!(!y || !e || e.open)) return e.showModal(), v.current?.focus(), () => {
1785
+ e.open && e.close();
1784
1786
  };
1785
- }, [v, t]), l(() => {
1787
+ }, [y]), l(() => {
1786
1788
  if (!e) return;
1787
1789
  let t = document.activeElement;
1788
- return _.current?.focus(), () => t?.focus?.();
1789
- }, [e]), !v) return null;
1790
- let x = n === "left" || n === "right", S = x ? Bn[r] : Vn[r];
1791
- return _e(/* @__PURE__ */ J("div", {
1792
- role: "dialog",
1793
- "aria-modal": "true",
1794
- "aria-hidden": y === "exiting" || void 0,
1790
+ return v.current?.focus(), () => t?.focus?.();
1791
+ }, [e]), !y) return null;
1792
+ let S = n === "left" || n === "right", C = S ? Bn[r] : Vn[r];
1793
+ return _e(/* @__PURE__ */ J("dialog", {
1794
+ ref: _,
1795
+ onCancel: (e) => {
1796
+ e.preventDefault(), t();
1797
+ },
1798
+ "aria-hidden": b === "exiting" || void 0,
1795
1799
  "aria-labelledby": i ? "drawer-title" : void 0,
1796
1800
  "aria-describedby": a ? "drawer-desc" : void 0,
1797
- className: "fixed inset-0 z-50",
1801
+ className: "fixed inset-0 z-50 m-0 h-full max-h-none w-full max-w-none overflow-hidden border-0 bg-transparent p-0 text-inherit backdrop:bg-transparent",
1798
1802
  "data-test-id": h,
1799
1803
  children: [/* @__PURE__ */ q("div", {
1800
- className: Q("absolute inset-0 bg-black/50", d && "transition-opacity duration-200 motion-reduce:transition-none", b ? "opacity-100" : "opacity-0"),
1804
+ className: Q("absolute inset-0 bg-black/50", d && "transition-opacity duration-200 motion-reduce:transition-none", x ? "opacity-100" : "opacity-0"),
1801
1805
  onClick: () => c && t(),
1802
1806
  "aria-hidden": !0
1803
1807
  }), /* @__PURE__ */ J("div", {
1804
- ref: Gt(g, _),
1808
+ ref: Gt(g, v),
1805
1809
  tabIndex: -1,
1806
- className: Q("absolute bg-bg-default shadow-z5 outline-none flex flex-col", Hn[n], x ? `${S} h-full max-w-full` : `${S} w-full max-h-full`, "border-border-default", d && "transition-transform duration-300 ease-out motion-reduce:transition-none will-change-transform", b ? "translate-x-0 translate-y-0" : Un[n], m),
1810
+ className: Q("absolute bg-bg-default shadow-z5 outline-none flex flex-col", Hn[n], S ? `${C} h-full max-w-full` : `${C} w-full max-h-full`, "border-border-default", d && "transition-transform duration-300 ease-out motion-reduce:transition-none will-change-transform", x ? "translate-x-0 translate-y-0" : Un[n], m),
1807
1811
  children: [
1808
1812
  (i || u || f) && /* @__PURE__ */ J("div", {
1809
1813
  className: "flex items-start justify-between gap-4 px-6 pt-6 pb-4 border-b border-border-default",
@@ -1942,13 +1946,13 @@ function Zn({ children: e }) {
1942
1946
  "aria-expanded": t
1943
1947
  });
1944
1948
  }
1945
- var Qn = "min-w-[200px] rounded-lg border border-border-default bg-bg-default shadow-z4 z-50 py-1", $n = a(function({ children: e, align: t = "start", strategy: n = "fixed", side: r = "bottom", sideOffset: i = 4, flip: a = !0, shift: o = !0, matchTriggerWidth: s = !1, closeOnScroll: c = !1, className: u, dataTestId: d, onClick: h, ...g }, _) {
1946
- let { open: v, setOpen: y, triggerRef: b, anchorRef: x } = Yn(), S = p(null), [C, w] = m(null), { style: T, resolvedSide: E } = Kn({
1949
+ var Qn = "min-w-[200px] rounded-lg border border-border-default bg-bg-default shadow-z4 z-50 py-1", $n = a(function({ children: e, align: t = "start", strategy: n = "fixed", side: r = "bottom", sideOffset: i = 4, flip: a = !0, shift: o = !0, matchTriggerWidth: s = !1, closeOnScroll: c = !1, autoFocusFirstItem: u = !0, className: d, dataTestId: h, onClick: g, ..._ }, v) {
1950
+ let { open: y, setOpen: b, triggerRef: x, anchorRef: S } = Yn(), C = p(null), [w, T] = m(null), { style: E, resolvedSide: D } = Kn({
1947
1951
  anchor: f(() => ({ get current() {
1948
- return qn(x) ?? b.current;
1949
- } }), [x, b]),
1950
- panel: C,
1951
- open: v && n === "fixed",
1952
+ return qn(S) ?? x.current;
1953
+ } }), [S, x]),
1954
+ panel: w,
1955
+ open: y && n === "fixed",
1952
1956
  side: r,
1953
1957
  align: t,
1954
1958
  offset: i,
@@ -1957,56 +1961,56 @@ var Qn = "min-w-[200px] rounded-lg border border-border-default bg-bg-default sh
1957
1961
  matchAnchorWidth: s
1958
1962
  });
1959
1963
  if (l(() => {
1960
- if (!v) return;
1964
+ if (!y) return;
1961
1965
  let e = (e) => {
1962
1966
  let t = e.target;
1963
- S.current?.contains(t) || b.current?.contains(t) || qn(x)?.contains(t) || y(!1);
1967
+ C.current?.contains(t) || x.current?.contains(t) || qn(S)?.contains(t) || b(!1);
1964
1968
  };
1965
- return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
1969
+ return document.addEventListener("mousedown", e, !0), () => document.removeEventListener("mousedown", e, !0);
1966
1970
  }, [
1967
- v,
1968
1971
  y,
1969
1972
  b,
1970
- x
1973
+ x,
1974
+ S
1971
1975
  ]), l(() => {
1972
- if (!v || !c) return;
1973
- let e = () => y(!1);
1976
+ if (!y || !c) return;
1977
+ let e = () => b(!1);
1974
1978
  return document.addEventListener("scroll", e, {
1975
1979
  capture: !0,
1976
1980
  passive: !0
1977
1981
  }), () => document.removeEventListener("scroll", e, { capture: !0 });
1978
1982
  }, [
1979
- v,
1983
+ y,
1980
1984
  c,
1981
- y
1985
+ b
1982
1986
  ]), l(() => {
1983
- if (!v) return;
1987
+ if (!y || !u) return;
1984
1988
  let e = requestAnimationFrame(() => {
1985
- (S.current?.querySelector("[role=\"menuitem\"]:not(:disabled)"))?.focus();
1989
+ (C.current?.querySelector("[role=\"menuitem\"]:not(:disabled)"))?.focus();
1986
1990
  });
1987
1991
  return () => cancelAnimationFrame(e);
1988
- }, [v]), !v) return null;
1989
- let D = /* @__PURE__ */ q("div", {
1990
- ref: Gt(_, S, n === "fixed" ? w : void 0),
1992
+ }, [y, u]), !y) return null;
1993
+ let O = /* @__PURE__ */ q("div", {
1994
+ ref: Gt(v, C, n === "fixed" ? T : void 0),
1991
1995
  role: "menu",
1992
- "data-test-id": d,
1993
- "data-side": n === "fixed" ? E : void 0,
1996
+ "data-test-id": h,
1997
+ "data-side": n === "fixed" ? D : void 0,
1994
1998
  "data-align": t,
1995
1999
  onKeyDown: (e) => {
1996
- let t = Array.from(S.current?.querySelectorAll("[role=\"menuitem\"]:not(:disabled)") ?? []);
2000
+ let t = Array.from(C.current?.querySelectorAll("[role=\"menuitem\"]:not(:disabled)") ?? []);
1997
2001
  if (!t.length) return;
1998
2002
  let n = t.indexOf(document.activeElement);
1999
- e.key === "ArrowDown" ? (e.preventDefault(), t[(n + 1 + t.length) % t.length]?.focus()) : e.key === "ArrowUp" ? (e.preventDefault(), t[(n - 1 + t.length) % t.length]?.focus()) : e.key === "Home" ? (e.preventDefault(), t[0]?.focus()) : e.key === "End" && (e.preventDefault(), t[t.length - 1]?.focus());
2003
+ e.key === "ArrowDown" ? (e.preventDefault(), t[(n + 1 + t.length) % t.length]?.focus()) : e.key === "ArrowUp" ? (e.preventDefault(), t[(n - 1 + t.length) % t.length]?.focus()) : e.key === "Home" ? (e.preventDefault(), t[0]?.focus()) : e.key === "End" && (e.preventDefault(), t.at(-1)?.focus());
2000
2004
  },
2001
2005
  onClick: (e) => {
2002
- h?.(e), e.stopPropagation();
2006
+ g?.(e), e.stopPropagation();
2003
2007
  },
2004
- style: n === "fixed" ? T : void 0,
2005
- className: Q(Qn, n === "absolute" && Q("absolute top-full mt-1", t === "end" ? "right-0" : "left-0"), u),
2006
- ...g,
2008
+ style: n === "fixed" ? E : void 0,
2009
+ className: Q(Qn, n === "absolute" && Q("absolute top-full mt-1", t === "end" ? "right-0" : "left-0"), d),
2010
+ ..._,
2007
2011
  children: e
2008
2012
  });
2009
- return n === "fixed" ? _e(D, document.body) : D;
2013
+ return n === "fixed" ? _e(O, document.body) : O;
2010
2014
  }), er = a(function({ children: e, onSelect: t, disabled: n, icon: r, shortcut: i, destructive: a, checked: o, meta: s, className: c, dataTestId: l, onClick: u, ...d }, f) {
2011
2015
  let { setOpen: p } = Yn();
2012
2016
  return /* @__PURE__ */ J("button", {
@@ -2212,7 +2216,7 @@ var cr = a(function({ label: e, value: t, active: n = !1, size: r = "md", disabl
2212
2216
  children: [e, i && i.length > 0 && /* @__PURE__ */ q("div", {
2213
2217
  className: "flex items-center gap-3",
2214
2218
  "data-test-id": f ? `${f}-buttons` : void 0,
2215
- children: i.map((e, t) => /* @__PURE__ */ q(at, { ...e }, t))
2219
+ children: i.map((e, t) => /* @__PURE__ */ q(ot, { ...e }, t))
2216
2220
  })]
2217
2221
  })
2218
2222
  });
@@ -2485,7 +2489,7 @@ function Cr(e, t, n, r) {
2485
2489
  ];
2486
2490
  }
2487
2491
  var wr = "inline-flex items-center justify-center min-w-9 h-9 px-2 text-p-std rounded-md transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-300", Tr = "text-fg-default hover:bg-bg-subtle disabled:text-fg-disabled disabled:hover:bg-transparent disabled:cursor-not-allowed", Er = a(function({ page: e, pageCount: t, onPageChange: n, siblingCount: r = 1, boundaryCount: i = 1, className: a, dataTestId: o, "aria-label": s, ...c }, l) {
2488
- let u = Cr(e, t, r, i), d = e <= 1, f = e >= t, p = Vt(o);
2492
+ let u = Cr(e, t, r, i), d = e <= 1, f = e >= t, p = We(o);
2489
2493
  return /* @__PURE__ */ J("nav", {
2490
2494
  ref: l,
2491
2495
  "aria-label": s ?? "Pagination",
@@ -2547,7 +2551,7 @@ var wr = "inline-flex items-center justify-center min-w-9 h-9 px-2 text-p-std ro
2547
2551
  warning: "border-yellow-500 bg-yellow-50 dark:bg-yellow-900/20"
2548
2552
  }, kr = a(function({ name: e, role: t, avatar: n, variant: r = "default", size: i = "md", badge: a, onClick: o, className: s, dataTestId: c, ...l }, u) {
2549
2553
  let d = Dr[i], f = Or[r], p = /* @__PURE__ */ J(K, { children: [
2550
- /* @__PURE__ */ q(bt, {
2554
+ /* @__PURE__ */ q(xt, {
2551
2555
  src: n,
2552
2556
  name: e,
2553
2557
  size: d.avatar
@@ -2718,7 +2722,7 @@ var wr = "inline-flex items-center justify-center min-w-9 h-9 px-2 text-p-std ro
2718
2722
  md: "h-2 w-2",
2719
2723
  sm: "h-1.5 w-1.5"
2720
2724
  }, zr = a(function({ value: e, size: t, label: n, description: r, error: i = !1, id: a, disabled: o, checked: s, defaultChecked: l, onChange: d, className: f, dataTestId: p, ...m }, h) {
2721
- let g = c(Fr), _ = u(), v = a ?? _, y = t ?? g?.size ?? "md", b = o ?? g?.disabled, x = i || !!g?.error, S = g !== null, C = S && g.value !== void 0 ? Je(g.value, e) : void 0, w = S && g.defaultValue !== void 0 ? Je(g.defaultValue, e) : void 0, T = S ? C : s, E = S ? w : l;
2725
+ let g = c(Fr), _ = u(), v = a ?? _, y = t ?? g?.size ?? "md", b = o ?? g?.disabled, x = i || !!g?.error, S = g !== null, C = S && g.value !== void 0 ? Ye(g.value, e) : void 0, w = S && g.defaultValue !== void 0 ? Ye(g.defaultValue, e) : void 0, T = S ? C : s, E = S ? w : l;
2722
2726
  return /* @__PURE__ */ J("label", {
2723
2727
  htmlFor: v,
2724
2728
  "data-test-id": p,
@@ -2927,7 +2931,7 @@ function ti(e, t, n) {
2927
2931
  var ni = 36;
2928
2932
  function ri(e, t) {
2929
2933
  let { dataTestId: n } = e;
2930
- return Vt(n)(t);
2934
+ return We(n)(t);
2931
2935
  }
2932
2936
  function ii(e, t) {
2933
2937
  return {
@@ -2936,20 +2940,20 @@ function ii(e, t) {
2936
2940
  };
2937
2941
  }
2938
2942
  function ai(e) {
2939
- return /* @__PURE__ */ q(Y.Control, {
2943
+ return /* @__PURE__ */ q(Ce.Control, {
2940
2944
  ...e,
2941
2945
  innerProps: ii(e.innerProps, ri(e.selectProps, "trigger"))
2942
2946
  });
2943
2947
  }
2944
2948
  function oi(e) {
2945
2949
  let t = { "data-test-id": ri(e.selectProps, "search") };
2946
- return /* @__PURE__ */ q(Y.Input, {
2950
+ return /* @__PURE__ */ q(Ce.Input, {
2947
2951
  ...e,
2948
2952
  ...t
2949
2953
  });
2950
2954
  }
2951
2955
  function si(e) {
2952
- return /* @__PURE__ */ q(Y.DropdownIndicator, {
2956
+ return /* @__PURE__ */ q(Ce.DropdownIndicator, {
2953
2957
  ...e,
2954
2958
  children: /* @__PURE__ */ q(S, {
2955
2959
  className: Q("h-4 w-4 transition-transform", e.selectProps.menuIsOpen && "rotate-180"),
@@ -2958,7 +2962,7 @@ function si(e) {
2958
2962
  });
2959
2963
  }
2960
2964
  function ci(e) {
2961
- return /* @__PURE__ */ q(Y.ClearIndicator, {
2965
+ return /* @__PURE__ */ q(Ce.ClearIndicator, {
2962
2966
  ...e,
2963
2967
  innerProps: ii(e.innerProps, ri(e.selectProps, "clear")),
2964
2968
  children: /* @__PURE__ */ q(U, {
@@ -2968,7 +2972,7 @@ function ci(e) {
2968
2972
  });
2969
2973
  }
2970
2974
  function li(e) {
2971
- return /* @__PURE__ */ q(Y.MultiValueRemove, {
2975
+ return /* @__PURE__ */ q(Ce.MultiValueRemove, {
2972
2976
  ...e,
2973
2977
  innerProps: {
2974
2978
  ...e.innerProps,
@@ -2982,13 +2986,13 @@ function li(e) {
2982
2986
  }
2983
2987
  function ui(e) {
2984
2988
  let { visibleTagCount: t } = e.selectProps;
2985
- return t === void 0 || e.index < t ? /* @__PURE__ */ q(Y.MultiValue, { ...e }) : e.index === t ? /* @__PURE__ */ J("span", {
2989
+ return t === void 0 || e.index < t ? /* @__PURE__ */ q(Ce.MultiValue, { ...e }) : e.index === t ? /* @__PURE__ */ J("span", {
2986
2990
  className: Jr,
2987
2991
  children: ["+", (Array.isArray(e.selectProps.value) ? e.selectProps.value.length : 0) - t]
2988
2992
  }) : null;
2989
2993
  }
2990
2994
  function di(e) {
2991
- return /* @__PURE__ */ J(Y.Option, {
2995
+ return /* @__PURE__ */ J(Ce.Option, {
2992
2996
  ...e,
2993
2997
  innerProps: ii(e.innerProps, ri(e.selectProps, `option-${String(e.data.value)}`)),
2994
2998
  children: [e.children, e.isSelected && /* @__PURE__ */ q(b, {
@@ -3005,7 +3009,7 @@ function fi() {
3005
3009
  }
3006
3010
  function pi(e) {
3007
3011
  let { selectAllState: t, onSelectAllToggle: n, saveSelectionState: r, onSaveSelectionToggle: i } = e.selectProps;
3008
- return /* @__PURE__ */ J(Y.Menu, {
3012
+ return /* @__PURE__ */ J(Ce.Menu, {
3009
3013
  ...e,
3010
3014
  innerProps: ii(e.innerProps, ri(e.selectProps, "content")),
3011
3015
  children: [
@@ -3026,11 +3030,18 @@ function pi(e) {
3026
3030
  }),
3027
3031
  e.children,
3028
3032
  r && /* @__PURE__ */ q("div", {
3033
+ "data-test-id": ri(e.selectProps, "save_template"),
3034
+ role: "button",
3035
+ tabIndex: 0,
3036
+ "aria-pressed": r.checked,
3029
3037
  className: "border-t border-border-default px-3 py-2",
3030
3038
  onMouseDown: (e) => e.preventDefault(),
3031
3039
  onClick: (e) => {
3032
3040
  e.preventDefault(), i?.();
3033
3041
  },
3042
+ onKeyDown: (e) => {
3043
+ (e.key === "Enter" || e.key === " ") && (e.preventDefault(), i?.());
3044
+ },
3034
3045
  children: /* @__PURE__ */ q(Wt, {
3035
3046
  size: "sm",
3036
3047
  checked: r.checked,
@@ -3042,7 +3053,7 @@ function pi(e) {
3042
3053
  });
3043
3054
  }
3044
3055
  function mi(t) {
3045
- let { children: n, innerRef: r, innerProps: i, maxHeight: a } = t, o = e.toArray(n), s = p(null), c = Ee({
3056
+ let { children: n, innerRef: r, innerProps: i, maxHeight: a } = t, o = e.toArray(n), s = p(null), c = De({
3046
3057
  count: o.length,
3047
3058
  getScrollElement: () => s.current,
3048
3059
  estimateSize: () => ni,
@@ -3144,17 +3155,17 @@ var hi = a(function(e, t) {
3144
3155
  V,
3145
3156
  _,
3146
3157
  o
3147
- ]), be = !!r, xe = D ?? (be || a ? !0 : n.length >= 10), Y = be ? a ? Te : Ce : a ? we : Se, Ee = f(() => ti(ee, ce, L), [
3158
+ ]), be = !!r, xe = D ?? (be || a ? !0 : n.length >= 10), Ce = be ? a ? Ee : we : a ? Te : Se, De = f(() => ti(ee, ce, L), [
3148
3159
  ee,
3149
3160
  ce,
3150
3161
  L
3151
- ]), De = p(null), Oe = p(null), ke = p(null), Ae = !!d && L, je = Vr({
3152
- wrapperRef: De,
3153
- measureRef: Oe,
3162
+ ]), Oe = p(null), ke = p(null), Ae = p(null), je = !!d && L, Me = Vr({
3163
+ wrapperRef: Oe,
3164
+ measureRef: ke,
3154
3165
  total: K.length,
3155
3166
  labelsKey: K.map(Yr).join("\0"),
3156
- enabled: Ae
3157
- }), Me = f(() => n.some((e) => !!e.description), [n]), Ne = f(() => {
3167
+ enabled: je
3168
+ }), Ne = f(() => n.some((e) => !!e.description), [n]), Pe = f(() => {
3158
3169
  if (!n.some((e) => e.group)) return n;
3159
3170
  let e = /* @__PURE__ */ new Map(), t = [];
3160
3171
  for (let r of n) {
@@ -3169,20 +3180,20 @@ var hi = a(function(e, t) {
3169
3180
  })), n.push(r);
3170
3181
  }
3171
3182
  return t;
3172
- }, [n]), Pe = !!d && !be, Fe = d ? G : W;
3183
+ }, [n]), Fe = !!d && !be, Ie = d ? G : W;
3173
3184
  l(() => {
3174
- !j || !fe || $r(j, Fe);
3185
+ !j || !fe || $r(j, Ie);
3175
3186
  }, [
3176
3187
  j,
3177
3188
  fe,
3178
- Fe
3189
+ Ie
3179
3190
  ]);
3180
- let Ie = s(() => {
3191
+ let Le = s(() => {
3181
3192
  j && pe((e) => {
3182
3193
  let t = !e;
3183
- return t ? $r(j, Fe) : ei(j), t;
3194
+ return t ? $r(j, Ie) : ei(j), t;
3184
3195
  });
3185
- }, [j, Fe]), Le = f(() => j ? {
3196
+ }, [j, Ie]), Re = f(() => j ? {
3186
3197
  checked: fe,
3187
3198
  label: M ?? R.saveSelectionLabel
3188
3199
  } : null, [
@@ -3190,39 +3201,39 @@ var hi = a(function(e, t) {
3190
3201
  fe,
3191
3202
  M,
3192
3203
  R
3193
- ]), [Re, ze] = m(""), Be = s((e) => {
3194
- ze(e);
3195
- }, []), X = f(() => Pe ? n.filter((e) => !e.disabled && Xr(e, Re)) : [], [
3196
- Pe,
3204
+ ]), [ze, Be] = m(""), Ve = s((e) => {
3205
+ Be(e);
3206
+ }, []), Y = f(() => Fe ? n.filter((e) => !e.disabled && Xr(e, ze)) : [], [
3207
+ Fe,
3197
3208
  n,
3198
- Re
3199
- ]), Z = f(() => {
3200
- if (!Pe || X.length === 0) return null;
3201
- let e = new Set(G.map(String)), t = X.filter((t) => e.has(String(t.value))).length, n = t === X.length;
3209
+ ze
3210
+ ]), X = f(() => {
3211
+ if (!Fe || Y.length === 0) return null;
3212
+ let e = new Set(G.map(String)), t = Y.filter((t) => e.has(String(t.value))).length, n = t === Y.length;
3202
3213
  return {
3203
- count: X.length,
3214
+ count: Y.length,
3204
3215
  checked: n,
3205
- indeterminate: t > 0 && t < X.length,
3206
- label: n ? R.clearAllLabel(X.length) : R.selectAllLabel(X.length)
3216
+ indeterminate: t > 0 && t < Y.length,
3217
+ label: n ? R.clearAllLabel(Y.length) : R.selectAllLabel(Y.length)
3207
3218
  };
3208
3219
  }, [
3209
- Pe,
3210
- X,
3220
+ Fe,
3221
+ Y,
3211
3222
  G,
3212
3223
  R
3213
- ]), Ve = s(() => {
3214
- if (!Z) return;
3215
- let e = new Set(X.map((e) => String(e.value))), t;
3216
- if (Z.checked) t = G.filter((t) => !e.has(String(t)));
3224
+ ]), Z = s(() => {
3225
+ if (!X) return;
3226
+ let e = new Set(Y.map((e) => String(e.value))), t;
3227
+ if (X.checked) t = G.filter((t) => !e.has(String(t)));
3217
3228
  else {
3218
- V(X);
3229
+ V(Y);
3219
3230
  let e = new Set(G.map(String));
3220
- t = [...G, ...X.filter((t) => !e.has(String(t.value))).map((e) => e.value)];
3231
+ t = [...G, ...Y.filter((t) => !e.has(String(t.value))).map((e) => e.value)];
3221
3232
  }
3222
- de(t), _?.(t), ke.current?.onMenuClose();
3233
+ de(t), _?.(t), Ae.current?.onMenuClose();
3223
3234
  }, [
3224
- Z,
3225
3235
  X,
3236
+ Y,
3226
3237
  G,
3227
3238
  V,
3228
3239
  _
@@ -3231,10 +3242,10 @@ var hi = a(function(e, t) {
3231
3242
  dataTestId: F,
3232
3243
  inputId: se,
3233
3244
  unstyled: !0,
3234
- classNames: Ee,
3245
+ classNames: De,
3235
3246
  className: ne,
3236
3247
  isMulti: d,
3237
- options: Ne,
3248
+ options: Pe,
3238
3249
  loadOptions: _e,
3239
3250
  defaultOptions: i,
3240
3251
  value: d ? K : ge,
@@ -3243,16 +3254,34 @@ var hi = a(function(e, t) {
3243
3254
  formatCreateLabel: a ? ae : void 0,
3244
3255
  getOptionValue: (e) => String(e.value),
3245
3256
  getOptionLabel: Yr,
3246
- formatOptionLabel: (e, t) => t.context === "value" ? e.label : Me && e.description ? /* @__PURE__ */ J("span", {
3247
- className: "flex flex-col min-w-0",
3248
- children: [/* @__PURE__ */ q("span", {
3249
- className: "truncate",
3250
- children: e.label
3251
- }), /* @__PURE__ */ q("span", {
3252
- className: "truncate text-p-sm text-fg-secondary",
3253
- children: e.description
3254
- })]
3255
- }) : e.label,
3257
+ formatOptionLabel: (e, t) => {
3258
+ if (t.context === "value") return e.label;
3259
+ let n = Ne && e.description ? /* @__PURE__ */ J("span", {
3260
+ className: "flex flex-col min-w-0",
3261
+ children: [/* @__PURE__ */ q("span", {
3262
+ className: "truncate",
3263
+ children: e.label
3264
+ }), /* @__PURE__ */ q("span", {
3265
+ className: "truncate text-p-sm text-fg-secondary",
3266
+ children: e.description
3267
+ })]
3268
+ }) : e.label;
3269
+ return e.actions ? /* @__PURE__ */ J("span", {
3270
+ className: "flex min-w-0 flex-1 items-center gap-2",
3271
+ children: [/* @__PURE__ */ q("span", {
3272
+ className: "min-w-0 flex-1 truncate",
3273
+ children: n
3274
+ }), /* @__PURE__ */ q("span", {
3275
+ "data-test-id": ri({ dataTestId: F }, `option-${String(e.value)}-actions`),
3276
+ className: "ml-auto inline-flex shrink-0 items-center",
3277
+ onMouseDown: (e) => {
3278
+ e.preventDefault(), e.stopPropagation();
3279
+ },
3280
+ onClick: (e) => e.stopPropagation(),
3281
+ children: e.actions
3282
+ })]
3283
+ }) : n;
3284
+ },
3256
3285
  isOptionDisabled: (e) => !!e.disabled,
3257
3286
  placeholder: re,
3258
3287
  isDisabled: te || T,
@@ -3263,17 +3292,17 @@ var hi = a(function(e, t) {
3263
3292
  loadingMessage: () => R.loadingMessage,
3264
3293
  "aria-invalid": ce || void 0,
3265
3294
  "aria-required": w || void 0,
3266
- ...Pe ? {
3267
- inputValue: Re,
3268
- onInputChange: Be,
3269
- selectAllState: Z,
3270
- onSelectAllToggle: Ve
3295
+ ...Fe ? {
3296
+ inputValue: ze,
3297
+ onInputChange: Ve,
3298
+ selectAllState: X,
3299
+ onSelectAllToggle: Z
3271
3300
  } : {},
3272
- ...Le ? {
3273
- saveSelectionState: Le,
3274
- onSaveSelectionToggle: Ie
3301
+ ...Re ? {
3302
+ saveSelectionState: Re,
3303
+ onSaveSelectionToggle: Le
3275
3304
  } : {},
3276
- ...Ae ? { visibleTagCount: je } : {},
3305
+ ...je ? { visibleTagCount: Me } : {},
3277
3306
  ...d ? {
3278
3307
  closeMenuOnSelect: I.closeMenuOnSelect ?? !1,
3279
3308
  hideSelectedOptions: I.hideSelectedOptions ?? !1
@@ -3289,12 +3318,12 @@ var hi = a(function(e, t) {
3289
3318
  LoadingIndicator: fi,
3290
3319
  IndicatorSeparator: () => null,
3291
3320
  ...O ? { MenuList: mi } : {},
3292
- ...Ae ? { MultiValue: ui } : {},
3321
+ ...je ? { MultiValue: ui } : {},
3293
3322
  Option: di
3294
3323
  }
3295
3324
  };
3296
3325
  return /* @__PURE__ */ J("div", {
3297
- ref: De,
3326
+ ref: Oe,
3298
3327
  "data-test-id": F,
3299
3328
  className: Q("flex flex-col gap-1.5 w-full", P),
3300
3329
  children: [
@@ -3313,12 +3342,12 @@ var hi = a(function(e, t) {
3313
3342
  children: b
3314
3343
  })]
3315
3344
  }),
3316
- /* @__PURE__ */ q(Y, {
3317
- ref: Gt(t, ke),
3345
+ /* @__PURE__ */ q(Ce, {
3346
+ ref: Gt(t, Ae),
3318
3347
  ...He
3319
3348
  }),
3320
- Ae && /* @__PURE__ */ J("div", {
3321
- ref: Oe,
3349
+ je && /* @__PURE__ */ J("div", {
3350
+ ref: ke,
3322
3351
  "aria-hidden": !0,
3323
3352
  className: "flex items-center gap-1 whitespace-nowrap",
3324
3353
  style: {
@@ -3740,7 +3769,7 @@ var Gi = a(function({ steps: e, activeValue: t, onStepSelect: n, marker: r = "nu
3740
3769
  })]
3741
3770
  });
3742
3771
  return /* @__PURE__ */ J("li", {
3743
- "aria-current": Je(i.value, t) ? "step" : void 0,
3772
+ "aria-current": Ye(i.value, t) ? "step" : void 0,
3744
3773
  className: Q("relative flex", u ? "flex-row gap-3" : "flex-1 basis-0 min-w-0 flex-col"),
3745
3774
  children: [/* @__PURE__ */ J("div", {
3746
3775
  className: Q("relative flex shrink-0", u ? "w-9 flex-col items-center justify-center" : Q("w-full items-center justify-center", Fi[a])),
@@ -3860,7 +3889,7 @@ function Zi({ table: e, pageSizeOptions: t = [
3860
3889
  20,
3861
3890
  30
3862
3891
  ], locale: n = "en-US", dataTestId: r }) {
3863
- let { pageIndex: i, pageSize: a } = e.getState().pagination, o = e.options.rowCount ?? e.getPrePaginationRowModel().rows.length, s = Math.max(1, e.getPageCount()), c = o === 0 ? 0 : i * a + 1, l = Math.min(o, (i + 1) * a), u = Xi[n], d = Vt(r);
3892
+ let { pageIndex: i, pageSize: a } = e.getState().pagination, o = e.options.rowCount ?? e.getPrePaginationRowModel().rows.length, s = Math.max(1, e.getPageCount()), c = o === 0 ? 0 : i * a + 1, l = Math.min(o, (i + 1) * a), u = Xi[n], d = We(r);
3864
3893
  return /* @__PURE__ */ J("div", {
3865
3894
  className: "flex flex-wrap items-center justify-between gap-3 p-3 border-t border-border-default",
3866
3895
  children: [
@@ -3902,7 +3931,7 @@ function Zi({ table: e, pageSizeOptions: t = [
3902
3931
  //#endregion
3903
3932
  //#region src/components/TableV2/TableV2Skeleton.tsx
3904
3933
  function Qi({ columnCount: e, rowCount: t = 8, testIdPrefix: n }) {
3905
- let r = Vt(n);
3934
+ let r = We(n);
3906
3935
  return /* @__PURE__ */ q(K, { children: Array.from({ length: t }, (t, n) => /* @__PURE__ */ q("tr", {
3907
3936
  "data-test-id": r(`skeleton-row-${n}`),
3908
3937
  "aria-hidden": n > 0 || void 0,
@@ -3923,7 +3952,7 @@ function $i(e) {
3923
3952
  }
3924
3953
  function ea({ table: e }) {
3925
3954
  let t = e.getAllLeafColumns().filter((e) => e.getCanHide());
3926
- return /* @__PURE__ */ J(Xn, { children: [/* @__PURE__ */ q(Zn, { children: /* @__PURE__ */ q(at, {
3955
+ return /* @__PURE__ */ J(Xn, { children: [/* @__PURE__ */ q(Zn, { children: /* @__PURE__ */ q(ot, {
3927
3956
  variant: "secondary",
3928
3957
  size: "sm",
3929
3958
  leftIcon: /* @__PURE__ */ q(O, { className: "h-4 w-4" }),
@@ -3957,7 +3986,7 @@ function ta({ table: e, enableGlobalFilter: t, enableColumnVisibility: n, search
3957
3986
  }), /* @__PURE__ */ J("div", {
3958
3987
  className: "ml-auto flex items-center gap-2",
3959
3988
  children: [
3960
- i && /* @__PURE__ */ q(at, {
3989
+ i && /* @__PURE__ */ q(ot, {
3961
3990
  variant: "secondary",
3962
3991
  size: "sm",
3963
3992
  iconOnly: !0,
@@ -3965,7 +3994,7 @@ function ta({ table: e, enableGlobalFilter: t, enableColumnVisibility: n, search
3965
3994
  leftIcon: /* @__PURE__ */ q(z, { className: "h-4 w-4" }),
3966
3995
  onClick: i
3967
3996
  }),
3968
- a && /* @__PURE__ */ q(at, {
3997
+ a && /* @__PURE__ */ q(ot, {
3969
3998
  variant: "secondary",
3970
3999
  size: "sm",
3971
4000
  leftIcon: /* @__PURE__ */ q(j, { className: "h-4 w-4" }),
@@ -3986,19 +4015,19 @@ var na = ({ transform: e }) => ({
3986
4015
  });
3987
4016
  function ra({ columnOrder: e, onColumnOrderChange: t }) {
3988
4017
  return {
3989
- sensors: Re(Le(Fe, { activationConstraint: { distance: 4 } }), Le(Pe, { coordinateGetter: Z })),
3990
- collisionDetection: Ie,
4018
+ sensors: ze(Re(Ie, { activationConstraint: { distance: 4 } }), Re(Fe, { coordinateGetter: X })),
4019
+ collisionDetection: Le,
3991
4020
  modifiers: [na],
3992
4021
  handleDragEnd: (n) => {
3993
4022
  let { active: r, over: i } = n;
3994
4023
  if (!i || r.id === i.id) return;
3995
4024
  let a = e.indexOf(String(r.id)), o = e.indexOf(String(i.id));
3996
- a === -1 || o === -1 || t(Be(e, a, o));
4025
+ a === -1 || o === -1 || t(Ve(e, a, o));
3997
4026
  }
3998
4027
  };
3999
4028
  }
4000
4029
  function ia(e) {
4001
- let { attributes: t, listeners: n, setNodeRef: r, transform: i, transition: a, isDragging: o } = Ve({ id: e });
4030
+ let { attributes: t, listeners: n, setNodeRef: r, transform: i, transition: a, isDragging: o } = Z({ id: e });
4002
4031
  return {
4003
4032
  setNodeRef: r,
4004
4033
  attributes: t,
@@ -4016,7 +4045,7 @@ function ia(e) {
4016
4045
  //#endregion
4017
4046
  //#region src/components/TableV2/TableV2RowActions.tsx
4018
4047
  function aa({ row: e, actions: t }) {
4019
- return t.length === 0 ? null : /* @__PURE__ */ J(Xn, { children: [/* @__PURE__ */ q(Zn, { children: /* @__PURE__ */ q(at, {
4048
+ return t.length === 0 ? null : /* @__PURE__ */ J(Xn, { children: [/* @__PURE__ */ q(Zn, { children: /* @__PURE__ */ q(ot, {
4020
4049
  variant: "tertiary",
4021
4050
  size: "sm",
4022
4051
  iconOnly: !0,
@@ -4101,7 +4130,7 @@ function da(e, t, n) {
4101
4130
  }
4102
4131
  var fa = /* @__PURE__ */ new Set(["select", "actions"]);
4103
4132
  function pa({ header: e, density: t, enableSorting: n, enableFiltering: r, enableColumnOrdering: i, enableColumnResizing: a, enablePinning: o, enableColumnVisibility: s }) {
4104
- let c = e.column, l = fa.has(c.id), u = i && !l, d = ia(c.id), f = c.columnDef.meta?.align ?? "left", p = c.getIsSorted(), m = !l && (o && c.getCanPin() || s && c.getCanHide()), h = De(c.columnDef.header, e.getContext());
4133
+ let c = e.column, l = fa.has(c.id), u = i && !l, d = ia(c.id), f = c.columnDef.meta?.align ?? "left", p = c.getIsSorted(), m = !l && (o && c.getCanPin() || s && c.getCanHide()), h = Oe(c.columnDef.header, e.getContext());
4105
4134
  return /* @__PURE__ */ J("th", {
4106
4135
  ref: u ? d.setNodeRef : void 0,
4107
4136
  colSpan: e.colSpan,
@@ -4200,12 +4229,12 @@ function ma({ row: e, onRowClick: t }) {
4200
4229
  children: [/* @__PURE__ */ J("div", {
4201
4230
  className: "flex items-center gap-2",
4202
4231
  children: [
4203
- i && De(i.column.columnDef.cell, i.getContext()),
4232
+ i && Oe(i.column.columnDef.cell, i.getContext()),
4204
4233
  /* @__PURE__ */ q("div", {
4205
4234
  className: "flex-1 min-w-0 text-p-std font-medium text-fg-default truncate",
4206
- children: r && De(r.column.columnDef.cell, r.getContext())
4235
+ children: r && Oe(r.column.columnDef.cell, r.getContext())
4207
4236
  }),
4208
- a && De(a.column.columnDef.cell, a.getContext())
4237
+ a && Oe(a.column.columnDef.cell, a.getContext())
4209
4238
  ]
4210
4239
  }), o.length > 0 && /* @__PURE__ */ q("dl", {
4211
4240
  className: "grid grid-cols-2 gap-2",
@@ -4218,7 +4247,7 @@ function ma({ row: e, onRowClick: t }) {
4218
4247
  children: typeof t == "string" ? t : e.column.id
4219
4248
  }), /* @__PURE__ */ q("dd", {
4220
4249
  className: "text-p-sm text-fg-default truncate",
4221
- children: De(e.column.columnDef.cell, e.getContext())
4250
+ children: Oe(e.column.columnDef.cell, e.getContext())
4222
4251
  })]
4223
4252
  }, e.id);
4224
4253
  })
@@ -4239,10 +4268,10 @@ function ha({ rowCount: e }) {
4239
4268
  }, t)) });
4240
4269
  }
4241
4270
  function ga(e, t) {
4242
- 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: N, onColumnPinningChange: ne, enableColumnResizing: P = !1, columnResizeMode: F = "onChange", enablePagination: I = !1, pageSize: L = 10, pageSizeOptions: R, pagination: re, onPaginationChange: ie, locale: ae = "en-US", manualPagination: oe = !1, pageCount: se, rowCount: ce, enableVirtualization: z = !1, estimatedRowHeight: le = 44, maxBodyHeight: ue = 480, onRowClick: B, toolbar: de = !1, toolbarActions: fe, searchPlaceholder: pe, onRefresh: me, onExport: he, density: V = "comfortable", stickyHeader: H = !1, fillHeight: U = !1, wrapperClassName: W, className: G, dataTestId: ge } = e, [_e, ve] = da(u, h, []), [ye, be] = da(v, y, []), [xe, Se] = da(S, C, ""), [Y, Ce] = da(E, D, {}), [we, Te] = da(k, A, {}), [Pe, Fe] = da(M, ee, []), [Ie, Le] = da(N, ne, {}), [Re, Be] = da(re, ie, {
4271
+ 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: N, onColumnPinningChange: ne, enableColumnResizing: P = !1, columnResizeMode: F = "onChange", enablePagination: I = !1, pageSize: L = 10, pageSizeOptions: R, pagination: re, onPaginationChange: ie, locale: ae = "en-US", manualPagination: oe = !1, pageCount: se, rowCount: ce, enableVirtualization: z = !1, estimatedRowHeight: le = 44, maxBodyHeight: ue = 480, onRowClick: B, toolbar: de = !1, toolbarActions: fe, searchPlaceholder: pe, onRefresh: me, onExport: he, density: V = "comfortable", stickyHeader: H = !1, fillHeight: U = !1, wrapperClassName: W, className: G, dataTestId: ge } = e, [_e, ve] = da(u, h, []), [ye, be] = da(v, y, []), [xe, Se] = da(S, C, ""), [Ce, we] = da(E, D, {}), [Te, Ee] = da(k, A, {}), [Fe, Ie] = da(M, ee, []), [Le, Re] = da(N, ne, {}), [ze, Ve] = da(re, ie, {
4243
4272
  pageIndex: 0,
4244
4273
  pageSize: L
4245
- }), Z = Me({
4274
+ }), X = Ne({
4246
4275
  data: n,
4247
4276
  columns: f(() => !w || r.some((e) => e.id === "select") ? r : [ca(), ...r], [r, w]),
4248
4277
  getRowId: s,
@@ -4250,20 +4279,20 @@ function ga(e, t) {
4250
4279
  sorting: _e,
4251
4280
  columnFilters: ye,
4252
4281
  globalFilter: xe,
4253
- rowSelection: Y,
4254
- columnVisibility: we,
4255
- columnOrder: Pe,
4256
- columnPinning: Ie,
4257
- pagination: Re
4282
+ rowSelection: Ce,
4283
+ columnVisibility: Te,
4284
+ columnOrder: Fe,
4285
+ columnPinning: Le,
4286
+ pagination: ze
4258
4287
  },
4259
4288
  onSortingChange: ve,
4260
4289
  onColumnFiltersChange: be,
4261
4290
  onGlobalFilterChange: Se,
4262
- onRowSelectionChange: Ce,
4263
- onColumnVisibilityChange: Te,
4264
- onColumnOrderChange: Fe,
4265
- onColumnPinningChange: Le,
4266
- onPaginationChange: Be,
4291
+ onRowSelectionChange: we,
4292
+ onColumnVisibilityChange: Ee,
4293
+ onColumnOrderChange: Ie,
4294
+ onColumnPinningChange: Re,
4295
+ onPaginationChange: Ve,
4267
4296
  enableSorting: c,
4268
4297
  enableMultiSort: l,
4269
4298
  manualSorting: g,
@@ -4277,49 +4306,49 @@ function ga(e, t) {
4277
4306
  manualPagination: oe,
4278
4307
  pageCount: se,
4279
4308
  rowCount: ce,
4280
- getCoreRowModel: Oe(),
4281
- getSortedRowModel: c ? je() : void 0,
4282
- getFilteredRowModel: _ || x ? ke() : void 0,
4283
- getPaginationRowModel: I ? Ae() : void 0
4284
- }), Ve = Z.getRowModel().rows, He = Z.getVisibleLeafColumns().length, Ue = p(null), [We, Ge] = m(null);
4309
+ getCoreRowModel: ke(),
4310
+ getSortedRowModel: c ? Me() : void 0,
4311
+ getFilteredRowModel: _ || x ? Ae() : void 0,
4312
+ getPaginationRowModel: I ? je() : void 0
4313
+ }), Z = X.getRowModel().rows, He = X.getVisibleLeafColumns().length, Ue = p(null), [Ge, Ke] = m(null);
4285
4314
  d(() => {
4286
4315
  if (!I || z) return;
4287
4316
  let e = Ue.current?.getBoundingClientRect().height;
4288
- e && e !== We && Ge(e);
4317
+ e && e !== Ge && Ke(e);
4289
4318
  }, [
4290
4319
  I,
4291
4320
  z,
4292
4321
  V,
4293
- Ve,
4294
- We
4322
+ Z,
4323
+ Ge
4295
4324
  ]);
4296
- let Ke = We ?? le, qe = I && !z ? Math.max(0, Re.pageSize - Ve.length) * Ke : 0, Je = f(() => Pe.length > 0 ? Pe : Z.getAllLeafColumns().map((e) => e.id), [Pe, Z]), Ye = ra({
4297
- columnOrder: Je,
4298
- onColumnOrderChange: Fe
4299
- }), Xe = (e) => Ye.handleDragEnd(e), Ze = p(null), Qe = Ee({
4300
- count: Ve.length,
4301
- getScrollElement: () => Ze.current,
4325
+ let qe = Ge ?? le, Je = I && !z ? Math.max(0, ze.pageSize - Z.length) * qe : 0, Ye = f(() => Fe.length > 0 ? Fe : X.getAllLeafColumns().map((e) => e.id), [Fe, X]), Xe = ra({
4326
+ columnOrder: Ye,
4327
+ onColumnOrderChange: Ie
4328
+ }), Ze = (e) => Xe.handleDragEnd(e), Qe = p(null), $e = De({
4329
+ count: Z.length,
4330
+ getScrollElement: () => Qe.current,
4302
4331
  estimateSize: () => le,
4303
4332
  overscan: 10,
4304
4333
  enabled: z
4305
- }), $e = z ? Qe.getVirtualItems() : null, et = $e && $e.length > 0 ? $e[0]?.start ?? 0 : 0, tt = $e && $e.length > 0 ? Qe.getTotalSize() - ($e[$e.length - 1]?.end ?? 0) : 0, nt = Vt(ge), rt = (e) => {
4334
+ }), et = z ? $e.getVirtualItems() : null, tt = et && et.length > 0 ? et[0]?.start ?? 0 : 0, nt = et && et.length > 0 ? $e.getTotalSize() - (et[et.length - 1]?.end ?? 0) : 0, rt = We(ge), it = (e) => {
4306
4335
  let t = e.original?.id;
4307
4336
  return typeof t == "string" || typeof t == "number" ? String(t) : e.id;
4308
- }, it = (e, t) => /* @__PURE__ */ q("tr", {
4337
+ }, at = (e, t) => /* @__PURE__ */ q("tr", {
4309
4338
  ref: t,
4310
- "data-test-id": nt(`row-${rt(e)}`),
4311
- "data-row-id": rt(e),
4339
+ "data-test-id": rt(`row-${it(e)}`),
4340
+ "data-row-id": it(e),
4312
4341
  "data-selected": e.getIsSelected() || void 0,
4313
4342
  onClick: B ? () => B(e.original) : void 0,
4314
4343
  className: Q("group border-t border-border-default", B && "cursor-pointer"),
4315
4344
  children: e.getVisibleCells().map((e) => /* @__PURE__ */ q("td", {
4316
- "data-test-id": nt(`cell-${e.column.id}`),
4345
+ "data-test-id": rt(`cell-${e.column.id}`),
4317
4346
  style: ua(e.column),
4318
4347
  className: Q("bg-bg-default px-4 group-hover:bg-bg-container group-data-[selected]:bg-brand-50", oa[V], sa[e.column.columnDef.meta?.align ?? "left"]),
4319
- children: De(e.column.columnDef.cell, e.getContext())
4348
+ children: Oe(e.column.columnDef.cell, e.getContext())
4320
4349
  }, e.id))
4321
- }, e.id), at = (e, t) => /* @__PURE__ */ q("tr", {
4322
- "data-test-id": nt(`header-row-${e}`),
4350
+ }, e.id), ot = (e, t) => /* @__PURE__ */ q("tr", {
4351
+ "data-test-id": rt(`header-row-${e}`),
4323
4352
  children: t.map((e) => /* @__PURE__ */ q(pa, {
4324
4353
  header: e,
4325
4354
  density: V,
@@ -4330,18 +4359,18 @@ function ga(e, t) {
4330
4359
  enablePinning: te,
4331
4360
  enableColumnVisibility: O
4332
4361
  }, e.id))
4333
- }, e), ot = /* @__PURE__ */ J("table", {
4362
+ }, e), st = /* @__PURE__ */ J("table", {
4334
4363
  className: "w-full border-collapse text-p-std text-fg-default",
4335
- style: { width: P ? Z.getTotalSize() : "100%" },
4364
+ style: { width: P ? X.getTotalSize() : "100%" },
4336
4365
  children: [/* @__PURE__ */ q("thead", {
4337
4366
  className: Q("text-p-sm font-semibold text-fg-secondary uppercase tracking-wider", (H || U) && "sticky top-0 z-10"),
4338
- children: Z.getHeaderGroups().map((e) => at(e.id, e.headers))
4367
+ children: X.getHeaderGroups().map((e) => ot(e.id, e.headers))
4339
4368
  }), /* @__PURE__ */ q("tbody", { children: i ? /* @__PURE__ */ q(Qi, {
4340
4369
  columnCount: He,
4341
- rowCount: Re.pageSize,
4370
+ rowCount: ze.pageSize,
4342
4371
  testIdPrefix: ge
4343
- }) : Ve.length === 0 ? /* @__PURE__ */ q("tr", {
4344
- "data-test-id": nt("empty-row"),
4372
+ }) : Z.length === 0 ? /* @__PURE__ */ q("tr", {
4373
+ "data-test-id": rt("empty-row"),
4345
4374
  children: /* @__PURE__ */ q("td", {
4346
4375
  colSpan: He,
4347
4376
  className: "p-0",
@@ -4350,32 +4379,32 @@ function ga(e, t) {
4350
4379
  title: o
4351
4380
  })
4352
4381
  })
4353
- }) : z && $e ? /* @__PURE__ */ J(K, { children: [
4354
- et > 0 && /* @__PURE__ */ q("tr", {
4382
+ }) : z && et ? /* @__PURE__ */ J(K, { children: [
4383
+ tt > 0 && /* @__PURE__ */ q("tr", {
4355
4384
  "aria-hidden": !0,
4356
- "data-test-id": nt("padding-top-row"),
4385
+ "data-test-id": rt("padding-top-row"),
4357
4386
  children: /* @__PURE__ */ q("td", {
4358
- style: { height: et },
4387
+ style: { height: tt },
4359
4388
  colSpan: He
4360
4389
  })
4361
4390
  }),
4362
- $e.map((e) => {
4363
- let t = Ve[e.index];
4364
- return t ? it(t) : null;
4391
+ et.map((e) => {
4392
+ let t = Z[e.index];
4393
+ return t ? at(t) : null;
4365
4394
  }),
4366
- tt > 0 && /* @__PURE__ */ q("tr", {
4395
+ nt > 0 && /* @__PURE__ */ q("tr", {
4367
4396
  "aria-hidden": !0,
4368
- "data-test-id": nt("padding-bottom-row"),
4397
+ "data-test-id": rt("padding-bottom-row"),
4369
4398
  children: /* @__PURE__ */ q("td", {
4370
- style: { height: tt },
4399
+ style: { height: nt },
4371
4400
  colSpan: He
4372
4401
  })
4373
4402
  })
4374
- ] }) : /* @__PURE__ */ J(K, { children: [Ve.map((e, t) => it(e, t === 0 ? Ue : void 0)), qe > 0 && /* @__PURE__ */ q("tr", {
4403
+ ] }) : /* @__PURE__ */ J(K, { children: [Z.map((e, t) => at(e, t === 0 ? Ue : void 0)), Je > 0 && /* @__PURE__ */ q("tr", {
4375
4404
  "aria-hidden": !0,
4376
- "data-test-id": nt("filler-row"),
4405
+ "data-test-id": rt("filler-row"),
4377
4406
  children: /* @__PURE__ */ q("td", {
4378
- style: { height: qe },
4407
+ style: { height: Je },
4379
4408
  colSpan: He,
4380
4409
  className: "p-0"
4381
4410
  })
@@ -4387,7 +4416,7 @@ function ga(e, t) {
4387
4416
  className: Q("w-full rounded-lg border border-border-default bg-bg-default", U && "h-full flex flex-col", W, G),
4388
4417
  children: [
4389
4418
  de === !1 ? null : de ?? /* @__PURE__ */ q(ta, {
4390
- table: Z,
4419
+ table: X,
4391
4420
  enableGlobalFilter: x,
4392
4421
  enableColumnVisibility: O,
4393
4422
  searchPlaceholder: pe,
@@ -4405,33 +4434,33 @@ function ga(e, t) {
4405
4434
  }) : /* @__PURE__ */ J(K, { children: [/* @__PURE__ */ q("div", {
4406
4435
  className: Q("hidden", U ? "md:flex md:flex-col md:flex-1 md:min-h-0" : "md:block"),
4407
4436
  children: /* @__PURE__ */ q("div", {
4408
- ref: Ze,
4437
+ ref: Qe,
4409
4438
  className: Q("w-full overflow-auto", de === !1 ? "rounded-lg" : "rounded-b-lg", U && "flex-1 min-h-0"),
4410
4439
  style: U ? void 0 : z || H ? { maxHeight: ue } : void 0,
4411
- children: j ? /* @__PURE__ */ q(Ne, {
4412
- sensors: Ye.sensors,
4413
- collisionDetection: Ye.collisionDetection,
4414
- modifiers: Ye.modifiers,
4415
- onDragEnd: Xe,
4416
- children: /* @__PURE__ */ q(ze, {
4417
- items: Je,
4418
- strategy: X,
4419
- children: ot
4440
+ children: j ? /* @__PURE__ */ q(Pe, {
4441
+ sensors: Xe.sensors,
4442
+ collisionDetection: Xe.collisionDetection,
4443
+ modifiers: Xe.modifiers,
4444
+ onDragEnd: Ze,
4445
+ children: /* @__PURE__ */ q(Be, {
4446
+ items: Ye,
4447
+ strategy: Y,
4448
+ children: st
4420
4449
  })
4421
- }) : ot
4450
+ }) : st
4422
4451
  })
4423
4452
  }), /* @__PURE__ */ q("div", {
4424
4453
  className: "md:hidden",
4425
- children: i ? /* @__PURE__ */ q(ha, { rowCount: Re.pageSize }) : Ve.length === 0 ? /* @__PURE__ */ q(ar, {
4454
+ children: i ? /* @__PURE__ */ q(ha, { rowCount: ze.pageSize }) : Z.length === 0 ? /* @__PURE__ */ q(ar, {
4426
4455
  size: "sm",
4427
4456
  title: o
4428
- }) : Ve.map((e) => /* @__PURE__ */ q(ma, {
4457
+ }) : Z.map((e) => /* @__PURE__ */ q(ma, {
4429
4458
  row: e,
4430
4459
  onRowClick: B
4431
4460
  }, e.id))
4432
4461
  })] }),
4433
4462
  I && !a && /* @__PURE__ */ q(Zi, {
4434
- table: Z,
4463
+ table: X,
4435
4464
  pageSizeOptions: R,
4436
4465
  locale: ae,
4437
4466
  dataTestId: ge
@@ -4526,7 +4555,7 @@ var Ca = {
4526
4555
  off: "bg-bg-subtle text-fg-secondary"
4527
4556
  }
4528
4557
  }, Ta = a(function({ value: e, children: t, disabled: n, icon: r, badge: i, badgeProps: a, rightIcon: o, onRightIconClick: s, rightIconLabel: c, className: l, dataTestId: u, onClick: d, id: f, ...p }, m) {
4529
- let { value: h, setValue: g, variant: _, size: v, tabsId: y, disabled: b } = ya(), x = Je(h, e), S = b || n, C = i != null && i !== !1, w = f ?? `${y}-tab-${e}`, T = `${y}-panel-${e}`, E = Q("group relative inline-flex items-center justify-center gap-2 font-medium outline-none transition-colors", "focus-visible:ring-2 focus-visible:ring-brand-300 focus-visible:ring-offset-1 focus-visible:rounded-md", Ca[v], S && "opacity-50 cursor-not-allowed"), D = _ === "underline" ? Q("rounded-t-lg", x ? "text-fg-default" : "text-fg-secondary hover:text-fg-default hover:bg-bg-subtle/60") : _ === "pills" ? Q("rounded-full", x ? "bg-bg-default text-fg-default shadow-z1" : "bg-transparent text-fg-secondary hover:text-fg-default") : Q("border-r border-border-default last:border-r-0", x ? "bg-bg-default text-fg-default" : "bg-transparent text-fg-secondary hover:bg-bg-subtle"), O = /* @__PURE__ */ J("button", {
4558
+ let { value: h, setValue: g, variant: _, size: v, tabsId: y, disabled: b } = ya(), x = Ye(h, e), S = b || n, C = i != null && i !== !1, w = f ?? `${y}-tab-${e}`, T = `${y}-panel-${e}`, E = Q("group relative inline-flex items-center justify-center gap-2 font-medium outline-none transition-colors", "focus-visible:ring-2 focus-visible:ring-brand-300 focus-visible:ring-offset-1 focus-visible:rounded-md", Ca[v], S && "opacity-50 cursor-not-allowed"), D = _ === "underline" ? Q("rounded-t-lg", x ? "text-fg-default" : "text-fg-secondary hover:text-fg-default hover:bg-bg-subtle/60") : _ === "pills" ? Q("rounded-full", x ? "bg-bg-default text-fg-default shadow-z1" : "bg-transparent text-fg-secondary hover:text-fg-default") : Q("border-r border-border-default last:border-r-0", x ? "bg-bg-default text-fg-default" : "bg-transparent text-fg-secondary hover:bg-bg-subtle"), O = /* @__PURE__ */ J("button", {
4530
4559
  ref: m,
4531
4560
  id: w,
4532
4561
  type: "button",
@@ -4550,7 +4579,7 @@ var Ca = {
4550
4579
  className: "truncate",
4551
4580
  children: t
4552
4581
  }),
4553
- C && (a ? /* @__PURE__ */ q(At, {
4582
+ C && (a ? /* @__PURE__ */ q(jt, {
4554
4583
  size: "xs",
4555
4584
  ...a,
4556
4585
  children: i
@@ -4578,7 +4607,7 @@ var Ca = {
4578
4607
  })]
4579
4608
  }) : O;
4580
4609
  }), Ea = a(function({ value: e, children: t, className: n, dataTestId: r, id: i, keepMounted: a = !1, ...o }, s) {
4581
- let { value: c, tabsId: l } = ya(), u = Je(c, e);
4610
+ let { value: c, tabsId: l } = ya(), u = Ye(c, e);
4582
4611
  return !u && !a ? null : /* @__PURE__ */ q("div", {
4583
4612
  ref: s,
4584
4613
  id: i ?? `${l}-panel-${e}`,
@@ -5141,6 +5170,6 @@ var Qa = {
5141
5170
  z5: "0 8px 16px 0 rgba(0, 0, 0, 0.12), 0 24px 32px 0 rgba(0, 0, 0, 0.12)"
5142
5171
  };
5143
5172
  //#endregion
5144
- export { $e as Accordion, et as AccordionItem, bt as Avatar, xt as AvatarGroup, At as Badge, Nt as Breadcrumb, at as Button, Ft as ButtonGroup, Rt as Card, Bt as CardGroup, Wt as Checkbox, Zt as Copy, an as Counter, xn as DatePicker, Mn as DeviceRestriction, In as DistributionBar, qe as Divider, Wn as Drawer, $n as DropdownContent, er as DropdownItem, nr as DropdownLabel, Xn as DropdownMenu, tr as DropdownSeparator, Zn as DropdownTrigger, ar as Empty, cr as Filter, ur as FormContainer, dr as FormField, wn as IconTile, fr as InfoField, mr as InlineAlert, nn as Input, hr as Link, _r as Modal, Sr as NotificationBadge, Er as Pagination, kr as PersonCard, Xt as Popover, Pr as Progress, zr as Radio, Ir as RadioGroup, Br as ReadMore, hi as SelectV2, vi as Sidebar, yi as SidebarItem, Ci as Skeleton, ki as SnackbarProvider, Ni as Status, Gi as StepIndicator, Ji as Switch, Ta as Tab, Sa as TabList, Ea as TabPanel, _a as TableV2, Yi as TableV2ColumnFilter, ea as TableV2ColumnVisibilityMenu, Zi as TableV2Pagination, aa as TableV2RowActionsMenu, Qi as TableV2Skeleton, ta as TableV2Toolbar, xa as Tabs, kn as Text, Da as TextArea, Oa as ThemeSwitch, Ma as Tooltip, Ia as UnderConstruction, ut as Upload, ft as UploadItem, to as blue, Qa as brand, Q as cn, oo as colorPrimitives, ho as controlHeight, la as createRowActionsColumn, ca as createSelectionColumn, co as darkTheme, lo as fontFamily, ua as getPinnedStyles, $ as gray, eo as green, uo as headline, go as iconSize, po as label, so as lightTheme, fo as paragraph, ro as pink, no as purple, _o as radius, io as red, vo as shadows, mo as typography, Ha as useEscapeKey, ye as useFieldArray, Ja as useFormContext, Za as useFormProps, Ga as useHideBodyScroll, qa as useIsMobile, Va as useOnOutsideClick, Oi as useSnackbar, Ra as useStepper, lt as validateSingleFile, $a as white, ao as yellow };
5173
+ export { et as Accordion, tt as AccordionItem, xt as Avatar, St as AvatarGroup, jt as Badge, Pt as Breadcrumb, ot as Button, It as ButtonGroup, zt as Card, Vt as CardGroup, Wt as Checkbox, Zt as Copy, an as Counter, xn as DatePicker, Mn as DeviceRestriction, In as DistributionBar, Je as Divider, Wn as Drawer, $n as DropdownContent, er as DropdownItem, nr as DropdownLabel, Xn as DropdownMenu, tr as DropdownSeparator, Zn as DropdownTrigger, ar as Empty, cr as Filter, ur as FormContainer, dr as FormField, wn as IconTile, fr as InfoField, mr as InlineAlert, nn as Input, hr as Link, _r as Modal, Sr as NotificationBadge, Er as Pagination, kr as PersonCard, Xt as Popover, Pr as Progress, zr as Radio, Ir as RadioGroup, Br as ReadMore, hi as SelectV2, vi as Sidebar, yi as SidebarItem, Ci as Skeleton, ki as SnackbarProvider, Ni as Status, Gi as StepIndicator, Ji as Switch, Ta as Tab, Sa as TabList, Ea as TabPanel, _a as TableV2, Yi as TableV2ColumnFilter, ea as TableV2ColumnVisibilityMenu, Zi as TableV2Pagination, aa as TableV2RowActionsMenu, Qi as TableV2Skeleton, ta as TableV2Toolbar, xa as Tabs, kn as Text, Da as TextArea, Oa as ThemeSwitch, Ma as Tooltip, Ia as UnderConstruction, dt as Upload, pt as UploadItem, to as blue, Qa as brand, Q as cn, oo as colorPrimitives, ho as controlHeight, la as createRowActionsColumn, ca as createSelectionColumn, co as darkTheme, lo as fontFamily, ua as getPinnedStyles, $ as gray, eo as green, uo as headline, go as iconSize, po as label, so as lightTheme, fo as paragraph, ro as pink, no as purple, _o as radius, io as red, vo as shadows, mo as typography, Ha as useEscapeKey, ye as useFieldArray, Ja as useFormContext, Za as useFormProps, Ga as useHideBodyScroll, qa as useIsMobile, Va as useOnOutsideClick, Oi as useSnackbar, Ra as useStepper, ut as validateSingleFile, $a as white, ao as yellow };
5145
5174
 
5146
5175
  //# sourceMappingURL=index.js.map