@qodo/design-system 0.17.2 → 0.17.3
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/design-system.css +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +272 -257
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -115,10 +115,10 @@ function wm() {
|
|
|
115
115
|
fe.unshift("Warning: " + D), Function.prototype.apply.call(console[w], console, fe);
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
|
-
var S = !1,
|
|
118
|
+
var S = !1, j = !1, k = !1, T = !1, R = !1, F;
|
|
119
119
|
F = Symbol.for("react.module.reference");
|
|
120
120
|
function U(w) {
|
|
121
|
-
return !!(typeof w == "string" || typeof w == "function" || w === n || w === a || R || w === o || w === u || w === f || T || w === m || S ||
|
|
121
|
+
return !!(typeof w == "string" || typeof w == "function" || w === n || w === a || R || w === o || w === u || w === f || T || w === m || S || j || k || typeof w == "object" && w !== null && (w.$$typeof === g || w.$$typeof === p || w.$$typeof === i || w.$$typeof === l || w.$$typeof === d || // This needs to include all possible module reference object
|
|
122
122
|
// types supported by any Flight configuration anywhere since
|
|
123
123
|
// we don't know which Flight build this will end up being used
|
|
124
124
|
// with.
|
|
@@ -923,9 +923,9 @@ const Cs = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ss = Fi, R
|
|
|
923
923
|
if (i.includes(S))
|
|
924
924
|
continue;
|
|
925
925
|
i.push(S);
|
|
926
|
-
const
|
|
927
|
-
for (let k = 0; k <
|
|
928
|
-
const T =
|
|
926
|
+
const j = o(y, h);
|
|
927
|
+
for (let k = 0; k < j.length; ++k) {
|
|
928
|
+
const T = j[k];
|
|
929
929
|
i.push(C + T);
|
|
930
930
|
}
|
|
931
931
|
d = f + (d.length > 0 ? " " + d : d);
|
|
@@ -996,7 +996,7 @@ const xe = (e) => {
|
|
|
996
996
|
"bottom-left",
|
|
997
997
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
998
998
|
"left-bottom"
|
|
999
|
-
],
|
|
999
|
+
], j = () => [...S(), X, Y], k = () => ["auto", "hidden", "clip", "visible", "scroll"], T = () => ["auto", "contain", "none"], R = () => [X, Y, d], F = () => [Bt, "full", "auto", ...R()], U = () => [lt, "none", "subgrid", X, Y], re = () => ["auto", {
|
|
1000
1000
|
span: ["full", lt, X, Y]
|
|
1001
1001
|
}, lt, X, Y], te = () => [lt, "auto", X, Y], Q = () => ["auto", "min", "max", "fr", X, Y], W = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], O = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], _ = () => ["auto", ...R()], M = () => [Bt, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...R()], E = () => [e, X, Y], I = () => [...S(), js, Ps, {
|
|
1002
1002
|
position: [X, Y]
|
|
@@ -1143,7 +1143,7 @@ const xe = (e) => {
|
|
|
1143
1143
|
* @see https://tailwindcss.com/docs/object-position
|
|
1144
1144
|
*/
|
|
1145
1145
|
"object-position": [{
|
|
1146
|
-
object:
|
|
1146
|
+
object: j()
|
|
1147
1147
|
}],
|
|
1148
1148
|
/**
|
|
1149
1149
|
* Overflow
|
|
@@ -2959,7 +2959,7 @@ const xe = (e) => {
|
|
|
2959
2959
|
* @see https://tailwindcss.com/docs/perspective-origin
|
|
2960
2960
|
*/
|
|
2961
2961
|
"perspective-origin": [{
|
|
2962
|
-
"perspective-origin":
|
|
2962
|
+
"perspective-origin": j()
|
|
2963
2963
|
}],
|
|
2964
2964
|
/**
|
|
2965
2965
|
* Rotate
|
|
@@ -3055,7 +3055,7 @@ const xe = (e) => {
|
|
|
3055
3055
|
* @see https://tailwindcss.com/docs/transform-origin
|
|
3056
3056
|
*/
|
|
3057
3057
|
"transform-origin": [{
|
|
3058
|
-
origin:
|
|
3058
|
+
origin: j()
|
|
3059
3059
|
}],
|
|
3060
3060
|
/**
|
|
3061
3061
|
* Transform Style
|
|
@@ -3448,7 +3448,7 @@ const xe = (e) => {
|
|
|
3448
3448
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
3449
3449
|
};
|
|
3450
3450
|
}, rg = /* @__PURE__ */ Dm(tg);
|
|
3451
|
-
function
|
|
3451
|
+
function P(...e) {
|
|
3452
3452
|
return rg(Fi(e));
|
|
3453
3453
|
}
|
|
3454
3454
|
function ng(e, t, r) {
|
|
@@ -3782,7 +3782,7 @@ const Wg = [
|
|
|
3782
3782
|
({ className: e, variant: t, size: r, loading: n, children: o, disabled: a, ...i }, l) => /* @__PURE__ */ s.jsxs(
|
|
3783
3783
|
"button",
|
|
3784
3784
|
{
|
|
3785
|
-
className:
|
|
3785
|
+
className: P(tl({ variant: t, size: r, className: e })),
|
|
3786
3786
|
ref: l,
|
|
3787
3787
|
disabled: a || n,
|
|
3788
3788
|
...i,
|
|
@@ -3819,7 +3819,7 @@ const zg = Rn(
|
|
|
3819
3819
|
type: r,
|
|
3820
3820
|
"data-slot": "input",
|
|
3821
3821
|
"aria-invalid": n || void 0,
|
|
3822
|
-
className:
|
|
3822
|
+
className: P(zg({ variant: t, className: e })),
|
|
3823
3823
|
...o
|
|
3824
3824
|
}
|
|
3825
3825
|
)
|
|
@@ -3990,8 +3990,8 @@ function kn(e) {
|
|
|
3990
3990
|
u.displayName = l;
|
|
3991
3991
|
const f = e + "CollectionItemSlot", p = "data-radix-collection-item", g = /* @__PURE__ */ ft(f), m = G.forwardRef(
|
|
3992
3992
|
(v, h) => {
|
|
3993
|
-
const { scope: y, children: x, ...C } = v, S = G.useRef(null),
|
|
3994
|
-
return G.useEffect(() => (k.itemMap.set(S, { ref: S, ...C }), () => void k.itemMap.delete(S))), /* @__PURE__ */ s.jsx(g, { [p]: "", ref:
|
|
3993
|
+
const { scope: y, children: x, ...C } = v, S = G.useRef(null), j = se(h, S), k = a(f, y);
|
|
3994
|
+
return G.useEffect(() => (k.itemMap.set(S, { ref: S, ...C }), () => void k.itemMap.delete(S))), /* @__PURE__ */ s.jsx(g, { [p]: "", ref: j, children: x });
|
|
3995
3995
|
}
|
|
3996
3996
|
);
|
|
3997
3997
|
m.displayName = f;
|
|
@@ -4077,7 +4077,7 @@ var rv = "DismissableLayer", Do = "dismissableLayer.update", nv = "dismissableLa
|
|
|
4077
4077
|
onInteractOutside: i,
|
|
4078
4078
|
onDismiss: l,
|
|
4079
4079
|
...d
|
|
4080
|
-
} = e, u = c.useContext(ol), [f, p] = c.useState(null), g = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, m] = c.useState({}), b = se(t, (T) => p(T)), v = Array.from(u.layers), [h] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), y = v.indexOf(h), x = f ? v.indexOf(f) : -1, C = u.layersWithOutsidePointerEventsDisabled.size > 0, S = x >= y,
|
|
4080
|
+
} = e, u = c.useContext(ol), [f, p] = c.useState(null), g = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, m] = c.useState({}), b = se(t, (T) => p(T)), v = Array.from(u.layers), [h] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), y = v.indexOf(h), x = f ? v.indexOf(f) : -1, C = u.layersWithOutsidePointerEventsDisabled.size > 0, S = x >= y, j = iv((T) => {
|
|
4081
4081
|
const R = T.target, F = [...u.branches].some((U) => U.contains(R));
|
|
4082
4082
|
!S || F || (o == null || o(T), i == null || i(T), T.defaultPrevented || l == null || l());
|
|
4083
4083
|
}, g), k = lv((T) => {
|
|
@@ -4109,7 +4109,7 @@ var rv = "DismissableLayer", Do = "dismissableLayer.update", nv = "dismissableLa
|
|
|
4109
4109
|
onBlurCapture: L(e.onBlurCapture, k.onBlurCapture),
|
|
4110
4110
|
onPointerDownCapture: L(
|
|
4111
4111
|
e.onPointerDownCapture,
|
|
4112
|
-
|
|
4112
|
+
j.onPointerDownCapture
|
|
4113
4113
|
)
|
|
4114
4114
|
}
|
|
4115
4115
|
);
|
|
@@ -4220,8 +4220,8 @@ var go = "focusScope.autoFocusOnMount", vo = "focusScope.autoFocusOnUnmount", Ms
|
|
|
4220
4220
|
S !== null && (l.contains(S) || ct(p.current, { select: !0 }));
|
|
4221
4221
|
}, y = function(C) {
|
|
4222
4222
|
if (document.activeElement === document.body)
|
|
4223
|
-
for (const
|
|
4224
|
-
|
|
4223
|
+
for (const j of C)
|
|
4224
|
+
j.removedNodes.length > 0 && ct(l);
|
|
4225
4225
|
};
|
|
4226
4226
|
document.addEventListener("focusin", v), document.addEventListener("focusout", h);
|
|
4227
4227
|
const x = new MutationObserver(y);
|
|
@@ -4507,7 +4507,7 @@ const kv = async (e, t, r) => {
|
|
|
4507
4507
|
x,
|
|
4508
4508
|
y: C,
|
|
4509
4509
|
data: S,
|
|
4510
|
-
reset:
|
|
4510
|
+
reset: j
|
|
4511
4511
|
} = await y({
|
|
4512
4512
|
x: f,
|
|
4513
4513
|
y: p,
|
|
@@ -4528,11 +4528,11 @@ const kv = async (e, t, r) => {
|
|
|
4528
4528
|
...m[h],
|
|
4529
4529
|
...S
|
|
4530
4530
|
}
|
|
4531
|
-
},
|
|
4531
|
+
}, j && b <= 50 && (b++, typeof j == "object" && (j.placement && (g = j.placement), j.rects && (u = j.rects === !0 ? await i.getElementRects({
|
|
4532
4532
|
reference: e,
|
|
4533
4533
|
floating: t,
|
|
4534
4534
|
strategy: o
|
|
4535
|
-
}) :
|
|
4535
|
+
}) : j.rects), {
|
|
4536
4536
|
x: f,
|
|
4537
4537
|
y: p
|
|
4538
4538
|
} = Vs(u, g, d)), v = -1);
|
|
@@ -4577,17 +4577,17 @@ async function Cr(e, t) {
|
|
|
4577
4577
|
} : {
|
|
4578
4578
|
x: 1,
|
|
4579
4579
|
y: 1
|
|
4580
|
-
},
|
|
4580
|
+
}, j = un(a.convertOffsetParentRelativeRectToViewportRelativeRect ? await a.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
4581
4581
|
elements: l,
|
|
4582
4582
|
rect: x,
|
|
4583
4583
|
offsetParent: C,
|
|
4584
4584
|
strategy: d
|
|
4585
4585
|
}) : x);
|
|
4586
4586
|
return {
|
|
4587
|
-
top: (y.top -
|
|
4588
|
-
bottom: (
|
|
4589
|
-
left: (y.left -
|
|
4590
|
-
right: (
|
|
4587
|
+
top: (y.top - j.top + b.top) / S.y,
|
|
4588
|
+
bottom: (j.bottom - y.bottom + b.bottom) / S.y,
|
|
4589
|
+
left: (y.left - j.left + b.left) / S.x,
|
|
4590
|
+
right: (j.right - y.right + b.right) / S.x
|
|
4591
4591
|
};
|
|
4592
4592
|
}
|
|
4593
4593
|
const Tv = (e) => ({
|
|
@@ -4611,10 +4611,10 @@ const Tv = (e) => ({
|
|
|
4611
4611
|
const p = il(f), g = {
|
|
4612
4612
|
x: r,
|
|
4613
4613
|
y: n
|
|
4614
|
-
}, m = ua(o), b = da(m), v = await i.getDimensions(u), h = m === "y", y = h ? "top" : "left", x = h ? "bottom" : "right", C = h ? "clientHeight" : "clientWidth", S = a.reference[b] + a.reference[m] - g[m] - a.floating[b],
|
|
4614
|
+
}, m = ua(o), b = da(m), v = await i.getDimensions(u), h = m === "y", y = h ? "top" : "left", x = h ? "bottom" : "right", C = h ? "clientHeight" : "clientWidth", S = a.reference[b] + a.reference[m] - g[m] - a.floating[b], j = g[m] - a.reference[m], k = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(u));
|
|
4615
4615
|
let T = k ? k[C] : 0;
|
|
4616
4616
|
(!T || !await (i.isElement == null ? void 0 : i.isElement(k))) && (T = l.floating[C] || a.floating[b]);
|
|
4617
|
-
const R = S / 2 -
|
|
4617
|
+
const R = S / 2 - j / 2, F = T / 2 - v[b] / 2 - 1, U = pt(p[y], F), re = pt(p[x], F), te = U, Q = T - v[b] - re, W = T / 2 - v[b] / 2 + R, O = $o(te, W, Q), _ = !d.arrow && or(o) != null && W !== O && a.reference[b] / 2 - (W < te ? U : re) - v[b] / 2 < 0, M = _ ? W < te ? W - te : W - Q : 0;
|
|
4618
4618
|
return {
|
|
4619
4619
|
[m]: g[m] + M,
|
|
4620
4620
|
data: {
|
|
@@ -4651,9 +4651,9 @@ const Tv = (e) => ({
|
|
|
4651
4651
|
} = ot(e, t);
|
|
4652
4652
|
if ((r = a.arrow) != null && r.alignmentOffset)
|
|
4653
4653
|
return {};
|
|
4654
|
-
const y = at(o), x = Xe(l), C = at(l) === l, S = await (d.isRTL == null ? void 0 : d.isRTL(u.floating)),
|
|
4655
|
-
!g && k &&
|
|
4656
|
-
const T = [l, ...
|
|
4654
|
+
const y = at(o), x = Xe(l), C = at(l) === l, S = await (d.isRTL == null ? void 0 : d.isRTL(u.floating)), j = g || (C || !v ? [dn(l)] : Sv(l)), k = b !== "none";
|
|
4655
|
+
!g && k && j.push(...jv(l, v, b, S));
|
|
4656
|
+
const T = [l, ...j], R = await Cr(t, h), F = [];
|
|
4657
4657
|
let U = ((n = a.flip) == null ? void 0 : n.overflows) || [];
|
|
4658
4658
|
if (f && F.push(R[y]), p) {
|
|
4659
4659
|
const W = Cv(o, i, S);
|
|
@@ -4895,13 +4895,13 @@ const Mv = function(e) {
|
|
|
4895
4895
|
...v
|
|
4896
4896
|
};
|
|
4897
4897
|
if (d) {
|
|
4898
|
-
const C = g === "y" ? "height" : "width", S = a.reference[g] - a.floating[C] + h.mainAxis,
|
|
4899
|
-
m < S ? m = S : m >
|
|
4898
|
+
const C = g === "y" ? "height" : "width", S = a.reference[g] - a.floating[C] + h.mainAxis, j = a.reference[g] + a.reference[C] - h.mainAxis;
|
|
4899
|
+
m < S ? m = S : m > j && (m = j);
|
|
4900
4900
|
}
|
|
4901
4901
|
if (u) {
|
|
4902
4902
|
var y, x;
|
|
4903
|
-
const C = g === "y" ? "width" : "height", S = ll.has(at(o)),
|
|
4904
|
-
b <
|
|
4903
|
+
const C = g === "y" ? "width" : "height", S = ll.has(at(o)), j = a.reference[p] - a.floating[C] + (S && ((y = i.offset) == null ? void 0 : y[p]) || 0) + (S ? 0 : h.crossAxis), k = a.reference[p] + a.reference[C] + (S ? 0 : ((x = i.offset) == null ? void 0 : x[p]) || 0) - (S ? h.crossAxis : 0);
|
|
4904
|
+
b < j ? b = j : b > k && (b = k);
|
|
4905
4905
|
}
|
|
4906
4906
|
return {
|
|
4907
4907
|
[g]: m,
|
|
@@ -4930,8 +4930,8 @@ const Mv = function(e) {
|
|
|
4930
4930
|
} = a.floating;
|
|
4931
4931
|
let h, y;
|
|
4932
4932
|
p === "top" || p === "bottom" ? (h = p, y = g === (await (i.isRTL == null ? void 0 : i.isRTL(l.floating)) ? "start" : "end") ? "left" : "right") : (y = p, h = g === "end" ? "top" : "bottom");
|
|
4933
|
-
const x = v - f.top - f.bottom, C = b - f.left - f.right, S = pt(v - f[h], x),
|
|
4934
|
-
let T = S, R =
|
|
4933
|
+
const x = v - f.top - f.bottom, C = b - f.left - f.right, S = pt(v - f[h], x), j = pt(b - f[y], C), k = !t.middlewareData.shift;
|
|
4934
|
+
let T = S, R = j;
|
|
4935
4935
|
if ((r = t.middlewareData.shift) != null && r.enabled.x && (R = C), (n = t.middlewareData.shift) != null && n.enabled.y && (T = x), k && !g) {
|
|
4936
4936
|
const U = Ae(f.left, 0), re = Ae(f.right, 0), te = Ae(f.top, 0), Q = Ae(f.bottom, 0);
|
|
4937
4937
|
m ? R = b - 2 * (U !== 0 || re !== 0 ? U + re : Ae(f.left, f.right)) : T = v - 2 * (te !== 0 || Q !== 0 ? te + Q : Ae(f.top, f.bottom));
|
|
@@ -5377,7 +5377,7 @@ function lh(e, t) {
|
|
|
5377
5377
|
threshold: Ae(0, pt(1, d)) || 1
|
|
5378
5378
|
};
|
|
5379
5379
|
let S = !0;
|
|
5380
|
-
function
|
|
5380
|
+
function j(k) {
|
|
5381
5381
|
const T = k[0].intersectionRatio;
|
|
5382
5382
|
if (T !== d) {
|
|
5383
5383
|
if (!S)
|
|
@@ -5389,13 +5389,13 @@ function lh(e, t) {
|
|
|
5389
5389
|
T === 1 && !vl(u, e.getBoundingClientRect()) && i(), S = !1;
|
|
5390
5390
|
}
|
|
5391
5391
|
try {
|
|
5392
|
-
r = new IntersectionObserver(
|
|
5392
|
+
r = new IntersectionObserver(j, {
|
|
5393
5393
|
...C,
|
|
5394
5394
|
// Handle <iframe>s
|
|
5395
5395
|
root: o.ownerDocument
|
|
5396
5396
|
});
|
|
5397
5397
|
} catch {
|
|
5398
|
-
r = new IntersectionObserver(
|
|
5398
|
+
r = new IntersectionObserver(j, C);
|
|
5399
5399
|
}
|
|
5400
5400
|
r.observe(e);
|
|
5401
5401
|
}
|
|
@@ -5522,7 +5522,7 @@ function bh(e) {
|
|
|
5522
5522
|
E !== k.current && (k.current = E, v(E));
|
|
5523
5523
|
}, []), C = c.useCallback((E) => {
|
|
5524
5524
|
E !== T.current && (T.current = E, y(E));
|
|
5525
|
-
}, []), S = a || b,
|
|
5525
|
+
}, []), S = a || b, j = i || h, k = c.useRef(null), T = c.useRef(null), R = c.useRef(f), F = d != null, U = xo(d), re = xo(o), te = xo(u), Q = c.useCallback(() => {
|
|
5526
5526
|
if (!k.current || !T.current)
|
|
5527
5527
|
return;
|
|
5528
5528
|
const E = {
|
|
@@ -5554,12 +5554,12 @@ function bh(e) {
|
|
|
5554
5554
|
rn(() => (W.current = !0, () => {
|
|
5555
5555
|
W.current = !1;
|
|
5556
5556
|
}), []), rn(() => {
|
|
5557
|
-
if (S && (k.current = S),
|
|
5557
|
+
if (S && (k.current = S), j && (T.current = j), S && j) {
|
|
5558
5558
|
if (U.current)
|
|
5559
|
-
return U.current(S,
|
|
5559
|
+
return U.current(S, j, Q);
|
|
5560
5560
|
Q();
|
|
5561
5561
|
}
|
|
5562
|
-
}, [S,
|
|
5562
|
+
}, [S, j, Q, U, F]);
|
|
5563
5563
|
const O = c.useMemo(() => ({
|
|
5564
5564
|
reference: k,
|
|
5565
5565
|
floating: T,
|
|
@@ -5567,8 +5567,8 @@ function bh(e) {
|
|
|
5567
5567
|
setFloating: C
|
|
5568
5568
|
}), [x, C]), _ = c.useMemo(() => ({
|
|
5569
5569
|
reference: S,
|
|
5570
|
-
floating:
|
|
5571
|
-
}), [S,
|
|
5570
|
+
floating: j
|
|
5571
|
+
}), [S, j]), M = c.useMemo(() => {
|
|
5572
5572
|
const E = {
|
|
5573
5573
|
position: r,
|
|
5574
5574
|
left: 0,
|
|
@@ -5712,7 +5712,7 @@ var ha = "PopperContent", [Ah, _h] = bl(ha), El = c.forwardRef(
|
|
|
5712
5712
|
updatePositionStrategy: m = "optimized",
|
|
5713
5713
|
onPlaced: b,
|
|
5714
5714
|
...v
|
|
5715
|
-
} = e, h = yl(ha, r), [y, x] = c.useState(null), C = se(t, (Re) => x(Re)), [S,
|
|
5715
|
+
} = e, h = yl(ha, r), [y, x] = c.useState(null), C = se(t, (Re) => x(Re)), [S, j] = c.useState(null), k = ga(S), T = (k == null ? void 0 : k.width) ?? 0, R = (k == null ? void 0 : k.height) ?? 0, F = n + (a !== "center" ? "-" + a : ""), U = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, re = Array.isArray(u) ? u : [u], te = re.length > 0, Q = {
|
|
5716
5716
|
padding: U,
|
|
5717
5717
|
boundary: re.filter(Mh),
|
|
5718
5718
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
@@ -5783,7 +5783,7 @@ var ha = "PopperContent", [Ah, _h] = bl(ha), El = c.forwardRef(
|
|
|
5783
5783
|
{
|
|
5784
5784
|
scope: r,
|
|
5785
5785
|
placedSide: I,
|
|
5786
|
-
onArrowChange:
|
|
5786
|
+
onArrowChange: j,
|
|
5787
5787
|
arrowX: N,
|
|
5788
5788
|
arrowY: B,
|
|
5789
5789
|
shouldHideArrow: Z,
|
|
@@ -6158,11 +6158,11 @@ var Il = Qh(), wo = function() {
|
|
|
6158
6158
|
onScrollCapture: wo,
|
|
6159
6159
|
onWheelCapture: wo,
|
|
6160
6160
|
onTouchMoveCapture: wo
|
|
6161
|
-
}), o = n[0], a = n[1], i = e.forwardProps, l = e.children, d = e.className, u = e.removeScrollBar, f = e.enabled, p = e.shards, g = e.sideCar, m = e.noRelative, b = e.noIsolation, v = e.inert, h = e.allowPinchZoom, y = e.as, x = y === void 0 ? "div" : y, C = e.gapMode, S = Al(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]),
|
|
6161
|
+
}), o = n[0], a = n[1], i = e.forwardProps, l = e.children, d = e.className, u = e.removeScrollBar, f = e.enabled, p = e.shards, g = e.sideCar, m = e.noRelative, b = e.noIsolation, v = e.inert, h = e.allowPinchZoom, y = e.as, x = y === void 0 ? "div" : y, C = e.gapMode, S = Al(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), j = g, k = Xh([r, t]), T = Ye(Ye({}, S), o);
|
|
6162
6162
|
return c.createElement(
|
|
6163
6163
|
c.Fragment,
|
|
6164
6164
|
null,
|
|
6165
|
-
f && c.createElement(
|
|
6165
|
+
f && c.createElement(j, { sideCar: Il, removeScrollBar: u, shards: p, noRelative: m, noIsolation: b, inert: v, setCallbacks: a, allowPinchZoom: !!h, lockRef: r, gapMode: C }),
|
|
6166
6166
|
i ? c.cloneElement(c.Children.only(l), Ye(Ye({}, T), { ref: k })) : c.createElement(x, Ye({}, T, { className: d, ref: k }), l)
|
|
6167
6167
|
);
|
|
6168
6168
|
});
|
|
@@ -6409,31 +6409,31 @@ function Ex(e) {
|
|
|
6409
6409
|
var l = c.useCallback(function(v, h) {
|
|
6410
6410
|
if ("touches" in v && v.touches.length === 2 || v.type === "wheel" && v.ctrlKey)
|
|
6411
6411
|
return !i.current.allowPinchZoom;
|
|
6412
|
-
var y = Qr(v), x = r.current, C = "deltaX" in v ? v.deltaX : x[0] - y[0], S = "deltaY" in v ? v.deltaY : x[1] - y[1],
|
|
6412
|
+
var y = Qr(v), x = r.current, C = "deltaX" in v ? v.deltaX : x[0] - y[0], S = "deltaY" in v ? v.deltaY : x[1] - y[1], j, k = v.target, T = Math.abs(C) > Math.abs(S) ? "h" : "v";
|
|
6413
6413
|
if ("touches" in v && T === "h" && k.type === "range")
|
|
6414
6414
|
return !1;
|
|
6415
6415
|
var R = Zs(T, k);
|
|
6416
6416
|
if (!R)
|
|
6417
6417
|
return !0;
|
|
6418
|
-
if (R ?
|
|
6418
|
+
if (R ? j = T : (j = T === "v" ? "h" : "v", R = Zs(T, k)), !R)
|
|
6419
6419
|
return !1;
|
|
6420
|
-
if (!n.current && "changedTouches" in v && (C || S) && (n.current =
|
|
6420
|
+
if (!n.current && "changedTouches" in v && (C || S) && (n.current = j), !j)
|
|
6421
6421
|
return !0;
|
|
6422
|
-
var F = n.current ||
|
|
6422
|
+
var F = n.current || j;
|
|
6423
6423
|
return yx(F, h, v, F === "h" ? C : S);
|
|
6424
6424
|
}, []), d = c.useCallback(function(v) {
|
|
6425
6425
|
var h = v;
|
|
6426
6426
|
if (!(!zt.length || zt[zt.length - 1] !== a)) {
|
|
6427
|
-
var y = "deltaY" in h ? Js(h) : Qr(h), x = t.current.filter(function(
|
|
6428
|
-
return
|
|
6427
|
+
var y = "deltaY" in h ? Js(h) : Qr(h), x = t.current.filter(function(j) {
|
|
6428
|
+
return j.name === h.type && (j.target === h.target || h.target === j.shadowParent) && wx(j.delta, y);
|
|
6429
6429
|
})[0];
|
|
6430
6430
|
if (x && x.should) {
|
|
6431
6431
|
h.cancelable && h.preventDefault();
|
|
6432
6432
|
return;
|
|
6433
6433
|
}
|
|
6434
6434
|
if (!x) {
|
|
6435
|
-
var C = (i.current.shards || []).map(Qs).filter(Boolean).filter(function(
|
|
6436
|
-
return
|
|
6435
|
+
var C = (i.current.shards || []).map(Qs).filter(Boolean).filter(function(j) {
|
|
6436
|
+
return j.contains(h.target);
|
|
6437
6437
|
}), S = C.length > 0 ? l(h, C[0]) : !i.current.noIsolation;
|
|
6438
6438
|
S && h.cancelable && h.preventDefault();
|
|
6439
6439
|
}
|
|
@@ -6500,7 +6500,7 @@ var jx = [" ", "Enter", "ArrowUp", "ArrowDown"], Nx = [" ", "Enter"], Tt = "Sele
|
|
|
6500
6500
|
disabled: g,
|
|
6501
6501
|
required: m,
|
|
6502
6502
|
form: b
|
|
6503
|
-
} = e, v = Bn(t), [h, y] = c.useState(null), [x, C] = c.useState(null), [S,
|
|
6503
|
+
} = e, v = Bn(t), [h, y] = c.useState(null), [x, C] = c.useState(null), [S, j] = c.useState(!1), k = Ot(u), [T, R] = we({
|
|
6504
6504
|
prop: n,
|
|
6505
6505
|
defaultProp: o ?? !1,
|
|
6506
6506
|
onChange: a,
|
|
@@ -6521,7 +6521,7 @@ var jx = [" ", "Enter", "ArrowUp", "ArrowDown"], Nx = [" ", "Enter"], Tt = "Sele
|
|
|
6521
6521
|
valueNode: x,
|
|
6522
6522
|
onValueNodeChange: C,
|
|
6523
6523
|
valueNodeHasChildren: S,
|
|
6524
|
-
onValueNodeHasChildrenChange:
|
|
6524
|
+
onValueNodeHasChildrenChange: j,
|
|
6525
6525
|
contentId: me(),
|
|
6526
6526
|
value: F,
|
|
6527
6527
|
onValueChange: U,
|
|
@@ -6679,7 +6679,7 @@ var Le = 10, [Ul, xt] = ir(At), Ox = "SelectContentImpl", Dx = /* @__PURE__ */ f
|
|
|
6679
6679
|
avoidCollisions: h,
|
|
6680
6680
|
//
|
|
6681
6681
|
...y
|
|
6682
|
-
} = e, x = ht(At, r), [C, S] = c.useState(null), [
|
|
6682
|
+
} = e, x = ht(At, r), [C, S] = c.useState(null), [j, k] = c.useState(null), T = se(t, (A) => S(A)), [R, F] = c.useState(null), [U, re] = c.useState(
|
|
6683
6683
|
null
|
|
6684
6684
|
), te = Vn(r), [Q, W] = c.useState(!1), O = c.useRef(!1);
|
|
6685
6685
|
c.useEffect(() => {
|
|
@@ -6689,9 +6689,9 @@ var Le = 10, [Ul, xt] = ir(At), Ox = "SelectContentImpl", Dx = /* @__PURE__ */ f
|
|
|
6689
6689
|
(A) => {
|
|
6690
6690
|
const [K, ...ee] = te().map((ie) => ie.ref.current), [oe] = ee.slice(-1), ce = document.activeElement;
|
|
6691
6691
|
for (const ie of A)
|
|
6692
|
-
if (ie === ce || (ie == null || ie.scrollIntoView({ block: "nearest" }), ie === K &&
|
|
6692
|
+
if (ie === ce || (ie == null || ie.scrollIntoView({ block: "nearest" }), ie === K && j && (j.scrollTop = 0), ie === oe && j && (j.scrollTop = j.scrollHeight), ie == null || ie.focus(), document.activeElement !== ce)) return;
|
|
6693
6693
|
},
|
|
6694
|
-
[te,
|
|
6694
|
+
[te, j]
|
|
6695
6695
|
), M = c.useCallback(
|
|
6696
6696
|
() => _([R, C]),
|
|
6697
6697
|
[_, R, C]
|
|
@@ -6754,7 +6754,7 @@ var Le = 10, [Ul, xt] = ir(At), Ox = "SelectContentImpl", Dx = /* @__PURE__ */ f
|
|
|
6754
6754
|
{
|
|
6755
6755
|
scope: r,
|
|
6756
6756
|
content: C,
|
|
6757
|
-
viewport:
|
|
6757
|
+
viewport: j,
|
|
6758
6758
|
onViewportChange: k,
|
|
6759
6759
|
itemRefCallback: N,
|
|
6760
6760
|
selectedItem: R,
|
|
@@ -6885,9 +6885,9 @@ var $x = "SelectItemAlignedPosition", Kl = c.forwardRef((e, t) => {
|
|
|
6885
6885
|
n
|
|
6886
6886
|
]);
|
|
6887
6887
|
ye(() => C(), [C]);
|
|
6888
|
-
const [S,
|
|
6888
|
+
const [S, j] = c.useState();
|
|
6889
6889
|
ye(() => {
|
|
6890
|
-
u &&
|
|
6890
|
+
u && j(window.getComputedStyle(u).zIndex);
|
|
6891
6891
|
}, [u]);
|
|
6892
6892
|
const k = c.useCallback(
|
|
6893
6893
|
(T) => {
|
|
@@ -7298,8 +7298,8 @@ const VR = Hx, BR = Jx, GR = Kx, tb = c.forwardRef(({ className: e, children: t,
|
|
|
7298
7298
|
disabled: n.disabled,
|
|
7299
7299
|
onPointerDown: n.disabled ? n.onPointerDown : a,
|
|
7300
7300
|
tabIndex: r ? 0 : void 0,
|
|
7301
|
-
className:
|
|
7302
|
-
|
|
7301
|
+
className: P(
|
|
7302
|
+
P(
|
|
7303
7303
|
"qodo qodo-select-trigger flex h-9 w-full min-w-0 items-center justify-between",
|
|
7304
7304
|
"rounded-md border bg-purple-muted-700 border-purple-muted-500",
|
|
7305
7305
|
"text-sm data-[placeholder]:text-muted-foreground [&:not([data-placeholder])]:text-purple-muted-300 md:text-sm selection:bg-primary selection:text-primary-foreground",
|
|
@@ -7324,7 +7324,7 @@ const yc = c.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s.jsx(
|
|
|
7324
7324
|
hc,
|
|
7325
7325
|
{
|
|
7326
7326
|
ref: r,
|
|
7327
|
-
className:
|
|
7327
|
+
className: P(
|
|
7328
7328
|
"qodo qodo-select-scroll-up-button flex cursor-default items-center justify-center py-1",
|
|
7329
7329
|
e
|
|
7330
7330
|
),
|
|
@@ -7337,7 +7337,7 @@ const wc = c.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s.jsx(
|
|
|
7337
7337
|
xc,
|
|
7338
7338
|
{
|
|
7339
7339
|
ref: r,
|
|
7340
|
-
className:
|
|
7340
|
+
className: P(
|
|
7341
7341
|
"qodo qodo-select-scroll-down-button flex cursor-default items-center justify-center py-1",
|
|
7342
7342
|
e
|
|
7343
7343
|
),
|
|
@@ -7351,7 +7351,7 @@ const rb = c.forwardRef(
|
|
|
7351
7351
|
mc,
|
|
7352
7352
|
{
|
|
7353
7353
|
ref: a,
|
|
7354
|
-
className:
|
|
7354
|
+
className: P(
|
|
7355
7355
|
"qodo qodo-select-content relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-purple-muted-600 border-purple-muted-500 text-purple-muted-300 shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
7356
7356
|
r === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
7357
7357
|
e
|
|
@@ -7363,7 +7363,7 @@ const rb = c.forwardRef(
|
|
|
7363
7363
|
/* @__PURE__ */ s.jsx(
|
|
7364
7364
|
Zx,
|
|
7365
7365
|
{
|
|
7366
|
-
className:
|
|
7366
|
+
className: P(
|
|
7367
7367
|
"p-1",
|
|
7368
7368
|
r === "popper" && "h-[var(--radix-select-trigger-height)] w-[var(--radix-select-trigger-width)]"
|
|
7369
7369
|
),
|
|
@@ -7380,7 +7380,7 @@ const nb = c.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s.jsx(
|
|
|
7380
7380
|
gc,
|
|
7381
7381
|
{
|
|
7382
7382
|
ref: r,
|
|
7383
|
-
className:
|
|
7383
|
+
className: P(
|
|
7384
7384
|
"qodo qodo-select-label py-1.5 pl-8 pr-2 text-sm font-semibold",
|
|
7385
7385
|
e
|
|
7386
7386
|
),
|
|
@@ -7393,8 +7393,8 @@ const ob = c.forwardRef(({ className: e, children: t, ...r }, n) => /* @__PURE__
|
|
|
7393
7393
|
{
|
|
7394
7394
|
ref: n,
|
|
7395
7395
|
title: r.value,
|
|
7396
|
-
className:
|
|
7397
|
-
|
|
7396
|
+
className: P(
|
|
7397
|
+
P(
|
|
7398
7398
|
"qodo qodo-select-item relative w-full cursor-default select-none rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none",
|
|
7399
7399
|
"focus:bg-purple-muted-500 focus:text-purple-100 text-purple-100",
|
|
7400
7400
|
"data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
@@ -7414,7 +7414,7 @@ const ab = c.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s.jsx(
|
|
|
7414
7414
|
bc,
|
|
7415
7415
|
{
|
|
7416
7416
|
ref: r,
|
|
7417
|
-
className:
|
|
7417
|
+
className: P(
|
|
7418
7418
|
"qodo qodo-select-separator -mx-1 my-1 h-px bg-muted",
|
|
7419
7419
|
e
|
|
7420
7420
|
),
|
|
@@ -7730,7 +7730,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
7730
7730
|
let r = Ht(() => {
|
|
7731
7731
|
var N, B;
|
|
7732
7732
|
return { search: "", value: (B = (N = e.value) != null ? N : e.defaultValue) != null ? B : "", selectedItemId: void 0, filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
|
|
7733
|
-
}), n = Ht(() => /* @__PURE__ */ new Set()), o = Ht(() => /* @__PURE__ */ new Map()), a = Ht(() => /* @__PURE__ */ new Map()), i = Ht(() => /* @__PURE__ */ new Set()), l = Yc(e), { label: d, children: u, value: f, onValueChange: p, filter: g, shouldFilter: m, loop: b, disablePointerSelection: v = !1, vimBindings: h = !0, ...y } = e, x = me(), C = me(), S = me(),
|
|
7733
|
+
}), n = Ht(() => /* @__PURE__ */ new Set()), o = Ht(() => /* @__PURE__ */ new Map()), a = Ht(() => /* @__PURE__ */ new Map()), i = Ht(() => /* @__PURE__ */ new Set()), l = Yc(e), { label: d, children: u, value: f, onValueChange: p, filter: g, shouldFilter: m, loop: b, disablePointerSelection: v = !1, vimBindings: h = !0, ...y } = e, x = me(), C = me(), S = me(), j = c.useRef(null), k = Gb();
|
|
7734
7734
|
It(() => {
|
|
7735
7735
|
if (f !== void 0) {
|
|
7736
7736
|
let N = f.trim();
|
|
@@ -7776,7 +7776,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
7776
7776
|
});
|
|
7777
7777
|
}), group: (N) => (o.current.has(N) || o.current.set(N, /* @__PURE__ */ new Set()), () => {
|
|
7778
7778
|
a.current.delete(N), o.current.delete(N);
|
|
7779
|
-
}), filter: () => l.current.shouldFilter, label: d || e["aria-label"], getDisablePointerSelection: () => l.current.disablePointerSelection, listId: x, inputId: S, labelId: C, listInnerRef:
|
|
7779
|
+
}), filter: () => l.current.shouldFilter, label: d || e["aria-label"], getDisablePointerSelection: () => l.current.disablePointerSelection, listId: x, inputId: S, labelId: C, listInnerRef: j }), []);
|
|
7780
7780
|
function F(N, B) {
|
|
7781
7781
|
var Z, z;
|
|
7782
7782
|
let $ = (z = (Z = l.current) == null ? void 0 : Z.filter) != null ? z : Ab;
|
|
@@ -7792,7 +7792,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
7792
7792
|
A = Math.max(ee, A);
|
|
7793
7793
|
}), B.push([z, A]);
|
|
7794
7794
|
});
|
|
7795
|
-
let Z =
|
|
7795
|
+
let Z = j.current;
|
|
7796
7796
|
O().sort((z, $) => {
|
|
7797
7797
|
var A, K;
|
|
7798
7798
|
let ee = z.getAttribute("id"), oe = $.getAttribute("id");
|
|
@@ -7802,7 +7802,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
7802
7802
|
$ ? $.appendChild(z.parentElement === $ ? z : z.closest(`${Ro} > *`)) : Z.appendChild(z.parentElement === Z ? z : z.closest(`${Ro} > *`));
|
|
7803
7803
|
}), B.sort((z, $) => $[1] - z[1]).forEach((z) => {
|
|
7804
7804
|
var $;
|
|
7805
|
-
let A = ($ =
|
|
7805
|
+
let A = ($ = j.current) == null ? void 0 : $.querySelector(`${pr}[${Ut}="${encodeURIComponent(z[0])}"]`);
|
|
7806
7806
|
A == null || A.parentElement.appendChild(A);
|
|
7807
7807
|
});
|
|
7808
7808
|
}
|
|
@@ -7835,11 +7835,11 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
7835
7835
|
}
|
|
7836
7836
|
function W() {
|
|
7837
7837
|
var N;
|
|
7838
|
-
return (N =
|
|
7838
|
+
return (N = j.current) == null ? void 0 : N.querySelector(`${zc}[aria-selected="true"]`);
|
|
7839
7839
|
}
|
|
7840
7840
|
function O() {
|
|
7841
7841
|
var N;
|
|
7842
|
-
return Array.from(((N =
|
|
7842
|
+
return Array.from(((N = j.current) == null ? void 0 : N.querySelectorAll(ri)) || []);
|
|
7843
7843
|
}
|
|
7844
7844
|
function _(N) {
|
|
7845
7845
|
let B = O()[N];
|
|
@@ -7920,8 +7920,8 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
7920
7920
|
p.setState("value", f.current, !0);
|
|
7921
7921
|
}
|
|
7922
7922
|
if (!m) return null;
|
|
7923
|
-
let { disabled: h, value: y, onSelect: x, forceMount: C, keywords: S, ...
|
|
7924
|
-
return c.createElement(H.div, { ref: nt(a, t), ...
|
|
7923
|
+
let { disabled: h, value: y, onSelect: x, forceMount: C, keywords: S, ...j } = e;
|
|
7924
|
+
return c.createElement(H.div, { ref: nt(a, t), ...j, id: o, "cmdk-item": "", role: "option", "aria-disabled": !!h, "aria-selected": !!g, "data-disabled": !!h, "data-selected": !!g, onPointerMove: h || l.getDisablePointerSelection() ? void 0 : v, onClick: h ? void 0 : b }, e.children);
|
|
7925
7925
|
}), Ib = c.forwardRef((e, t) => {
|
|
7926
7926
|
let { heading: r, children: n, forceMount: o, ...a } = e, i = me(), l = c.useRef(null), d = c.useRef(null), u = me(), f = Mr(), p = gt((m) => o || f.filter() === !1 ? !0 : m.search ? m.filtered.groups.has(i) : !0);
|
|
7927
7927
|
It(() => f.group(i), []), Xc(i, l, [e.value, e.heading, d]);
|
|
@@ -8046,7 +8046,7 @@ function Ub({
|
|
|
8046
8046
|
Bc,
|
|
8047
8047
|
{
|
|
8048
8048
|
"data-slot": "dialog-overlay",
|
|
8049
|
-
className:
|
|
8049
|
+
className: P(
|
|
8050
8050
|
"qodo qodo-dialog-overlay,",
|
|
8051
8051
|
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80",
|
|
8052
8052
|
e
|
|
@@ -8067,7 +8067,7 @@ function KR({
|
|
|
8067
8067
|
Gc,
|
|
8068
8068
|
{
|
|
8069
8069
|
"data-slot": "dialog-content",
|
|
8070
|
-
className:
|
|
8070
|
+
className: P(
|
|
8071
8071
|
"qodo qodo-dialog-content bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg dark:bg-background dark:border-border",
|
|
8072
8072
|
e
|
|
8073
8073
|
),
|
|
@@ -8095,7 +8095,7 @@ function YR({ className: e, ...t }) {
|
|
|
8095
8095
|
"div",
|
|
8096
8096
|
{
|
|
8097
8097
|
"data-slot": "dialog-header",
|
|
8098
|
-
className:
|
|
8098
|
+
className: P(
|
|
8099
8099
|
"qodo qodo-dialog-header flex flex-col gap-2 text-center sm:text-left",
|
|
8100
8100
|
e
|
|
8101
8101
|
),
|
|
@@ -8108,7 +8108,7 @@ function XR({ className: e, ...t }) {
|
|
|
8108
8108
|
"div",
|
|
8109
8109
|
{
|
|
8110
8110
|
"data-slot": "dialog-footer",
|
|
8111
|
-
className:
|
|
8111
|
+
className: P(
|
|
8112
8112
|
"qodo qodo-dialog-footer flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
|
|
8113
8113
|
e
|
|
8114
8114
|
),
|
|
@@ -8124,7 +8124,7 @@ function ZR({
|
|
|
8124
8124
|
Nb,
|
|
8125
8125
|
{
|
|
8126
8126
|
"data-slot": "dialog-title",
|
|
8127
|
-
className:
|
|
8127
|
+
className: P(
|
|
8128
8128
|
"qodo qodo-dialog-title text-lg leading-none font-semibold",
|
|
8129
8129
|
e
|
|
8130
8130
|
),
|
|
@@ -8140,7 +8140,7 @@ function JR({
|
|
|
8140
8140
|
kb,
|
|
8141
8141
|
{
|
|
8142
8142
|
"data-slot": "dialog-description",
|
|
8143
|
-
className:
|
|
8143
|
+
className: P(
|
|
8144
8144
|
"qodo qodo-dialog-description text-muted-foreground text-sm dark:text-muted-foreground",
|
|
8145
8145
|
e
|
|
8146
8146
|
),
|
|
@@ -8156,7 +8156,7 @@ function Zc({
|
|
|
8156
8156
|
Dt,
|
|
8157
8157
|
{
|
|
8158
8158
|
"data-slot": "command",
|
|
8159
|
-
className:
|
|
8159
|
+
className: P(
|
|
8160
8160
|
"qodo qodo-command bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",
|
|
8161
8161
|
e
|
|
8162
8162
|
),
|
|
@@ -8172,7 +8172,7 @@ function Jc({
|
|
|
8172
8172
|
"div",
|
|
8173
8173
|
{
|
|
8174
8174
|
"data-slot": "command-input-wrapper",
|
|
8175
|
-
className:
|
|
8175
|
+
className: P(
|
|
8176
8176
|
"qodo qodo-command-input-wrapper",
|
|
8177
8177
|
"flex h-9 items-center gap-2 border-b border-[var(--border-panel-neutral)] px-3 text-purple-muted-300"
|
|
8178
8178
|
),
|
|
@@ -8182,7 +8182,7 @@ function Jc({
|
|
|
8182
8182
|
Dt.Input,
|
|
8183
8183
|
{
|
|
8184
8184
|
"data-slot": "command-input",
|
|
8185
|
-
className:
|
|
8185
|
+
className: P(
|
|
8186
8186
|
"qodo qodo-command-input",
|
|
8187
8187
|
"placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
|
|
8188
8188
|
e
|
|
@@ -8202,7 +8202,7 @@ function Qc({
|
|
|
8202
8202
|
Dt.List,
|
|
8203
8203
|
{
|
|
8204
8204
|
"data-slot": "command-list",
|
|
8205
|
-
className:
|
|
8205
|
+
className: P(
|
|
8206
8206
|
"qodo qodo-command-list max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",
|
|
8207
8207
|
e
|
|
8208
8208
|
),
|
|
@@ -8217,7 +8217,7 @@ function ed({
|
|
|
8217
8217
|
Dt.Empty,
|
|
8218
8218
|
{
|
|
8219
8219
|
"data-slot": "command-empty",
|
|
8220
|
-
className:
|
|
8220
|
+
className: P(
|
|
8221
8221
|
"qodo qodo-command-empty",
|
|
8222
8222
|
"py-6 text-center text-sm text-purple-muted-300"
|
|
8223
8223
|
),
|
|
@@ -8233,7 +8233,7 @@ function Hb({
|
|
|
8233
8233
|
Dt.Loading,
|
|
8234
8234
|
{
|
|
8235
8235
|
"data-slot": "command-loading",
|
|
8236
|
-
className:
|
|
8236
|
+
className: P(
|
|
8237
8237
|
"qodo qodo-command-loading",
|
|
8238
8238
|
"py-6 text-center text-sm text-purple-muted-300",
|
|
8239
8239
|
e
|
|
@@ -8250,7 +8250,7 @@ function td({
|
|
|
8250
8250
|
Dt.Group,
|
|
8251
8251
|
{
|
|
8252
8252
|
"data-slot": "command-group",
|
|
8253
|
-
className:
|
|
8253
|
+
className: P(
|
|
8254
8254
|
"qodo qodo-command-group",
|
|
8255
8255
|
"text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",
|
|
8256
8256
|
e
|
|
@@ -8267,7 +8267,7 @@ function rd({
|
|
|
8267
8267
|
Dt.Item,
|
|
8268
8268
|
{
|
|
8269
8269
|
"data-slot": "command-item",
|
|
8270
|
-
className:
|
|
8270
|
+
className: P(
|
|
8271
8271
|
"qodo qodo-command-item",
|
|
8272
8272
|
"data-[selected=true]:bg-purple-muted-500 data-[selected=true]:text-purple-100 [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
8273
8273
|
e
|
|
@@ -8510,7 +8510,7 @@ function ja({
|
|
|
8510
8510
|
"data-slot": "popover-content",
|
|
8511
8511
|
align: t,
|
|
8512
8512
|
sideOffset: r,
|
|
8513
|
-
className:
|
|
8513
|
+
className: P(
|
|
8514
8514
|
"qodo qodo-popover-content bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",
|
|
8515
8515
|
e
|
|
8516
8516
|
),
|
|
@@ -8535,24 +8535,24 @@ const pd = c.forwardRef(
|
|
|
8535
8535
|
loadingText: g = "Loading...",
|
|
8536
8536
|
...m
|
|
8537
8537
|
}, b) => {
|
|
8538
|
-
const [v, h] = c.useState(!1), [y, x] = c.useState(""), [C, S] = c.useState(0),
|
|
8538
|
+
const [v, h] = c.useState(!1), [y, x] = c.useState(""), [C, S] = c.useState(0), j = c.useRef(null), k = e.find((R) => R.value === t), T = (R) => {
|
|
8539
8539
|
x(R), f == null || f(R);
|
|
8540
8540
|
};
|
|
8541
8541
|
return c.useEffect(() => {
|
|
8542
|
-
|
|
8542
|
+
j.current && S(j.current.offsetWidth);
|
|
8543
8543
|
}, []), /* @__PURE__ */ s.jsxs(Ra, { open: l ? !1 : v, onOpenChange: h, children: [
|
|
8544
8544
|
/* @__PURE__ */ s.jsx(Pa, { asChild: !0, children: /* @__PURE__ */ s.jsxs(
|
|
8545
8545
|
ut,
|
|
8546
8546
|
{
|
|
8547
8547
|
ref: (R) => {
|
|
8548
|
-
typeof b == "function" ? b(R) : b && (b.current = R),
|
|
8548
|
+
typeof b == "function" ? b(R) : b && (b.current = R), j.current = R;
|
|
8549
8549
|
},
|
|
8550
8550
|
variant: "outline",
|
|
8551
8551
|
role: "combobox",
|
|
8552
8552
|
"aria-expanded": v,
|
|
8553
8553
|
"aria-invalid": d || void 0,
|
|
8554
8554
|
"data-readonly": l || void 0,
|
|
8555
|
-
className:
|
|
8555
|
+
className: P(
|
|
8556
8556
|
"qodo qodo-combobox w-full h-9 px-3 py-1 justify-between rounded-md",
|
|
8557
8557
|
"border border-purple-muted-500 bg-purple-muted-700 hover:bg-purple-muted-700",
|
|
8558
8558
|
"text-sm md:text-sm text-purple-muted-300 hover:text-purple-muted-300 focus:text-purple-muted-300 active:text-purple-muted-300 selection:bg-primary selection:text-primary-foreground",
|
|
@@ -8604,7 +8604,7 @@ const pd = c.forwardRef(
|
|
|
8604
8604
|
value: R.value,
|
|
8605
8605
|
keywords: [R.label],
|
|
8606
8606
|
disabled: R.disabled,
|
|
8607
|
-
className:
|
|
8607
|
+
className: P(
|
|
8608
8608
|
"text-purple-100 hover:bg-purple-muted-500",
|
|
8609
8609
|
"focus:bg-purple-muted-500 focus:text-purple-100",
|
|
8610
8610
|
{
|
|
@@ -8620,7 +8620,7 @@ const pd = c.forwardRef(
|
|
|
8620
8620
|
/* @__PURE__ */ s.jsx(
|
|
8621
8621
|
Nr,
|
|
8622
8622
|
{
|
|
8623
|
-
className:
|
|
8623
|
+
className: P("mr-2 h-4 w-4", {
|
|
8624
8624
|
"opacity-100": F,
|
|
8625
8625
|
"opacity-0": !F
|
|
8626
8626
|
})
|
|
@@ -8684,7 +8684,7 @@ function Er({
|
|
|
8684
8684
|
{
|
|
8685
8685
|
"aria-disabled": n,
|
|
8686
8686
|
"aria-active": o,
|
|
8687
|
-
className:
|
|
8687
|
+
className: P(ly({ variant: t, size: r }), e),
|
|
8688
8688
|
...a
|
|
8689
8689
|
}
|
|
8690
8690
|
);
|
|
@@ -8697,7 +8697,7 @@ function cy({
|
|
|
8697
8697
|
"div",
|
|
8698
8698
|
{
|
|
8699
8699
|
"data-slot": "card",
|
|
8700
|
-
className:
|
|
8700
|
+
className: P(
|
|
8701
8701
|
"qodo qodo-card bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm dark:bg-card dark:text-card-foreground dark:border-border",
|
|
8702
8702
|
e
|
|
8703
8703
|
),
|
|
@@ -8710,7 +8710,7 @@ function dy({ className: e, ...t }) {
|
|
|
8710
8710
|
"div",
|
|
8711
8711
|
{
|
|
8712
8712
|
"data-slot": "card-header",
|
|
8713
|
-
className:
|
|
8713
|
+
className: P(
|
|
8714
8714
|
"qodo qodo-card-header @container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",
|
|
8715
8715
|
e
|
|
8716
8716
|
),
|
|
@@ -8723,7 +8723,7 @@ function uy({ className: e, ...t }) {
|
|
|
8723
8723
|
"div",
|
|
8724
8724
|
{
|
|
8725
8725
|
"data-slot": "card-title",
|
|
8726
|
-
className:
|
|
8726
|
+
className: P(
|
|
8727
8727
|
"qodo qodo-card-title leading-none font-semibold",
|
|
8728
8728
|
e
|
|
8729
8729
|
),
|
|
@@ -8736,7 +8736,7 @@ function fy({ className: e, ...t }) {
|
|
|
8736
8736
|
"div",
|
|
8737
8737
|
{
|
|
8738
8738
|
"data-slot": "card-description",
|
|
8739
|
-
className:
|
|
8739
|
+
className: P(
|
|
8740
8740
|
"qodo qodo-card-description text-muted-foreground text-sm dark:text-muted-foreground",
|
|
8741
8741
|
e
|
|
8742
8742
|
),
|
|
@@ -8749,7 +8749,7 @@ function eP({ className: e, ...t }) {
|
|
|
8749
8749
|
"div",
|
|
8750
8750
|
{
|
|
8751
8751
|
"data-slot": "card-action",
|
|
8752
|
-
className:
|
|
8752
|
+
className: P(
|
|
8753
8753
|
"qodo qodo-card-action col-start-2 row-span-2 row-start-1 self-start justify-self-end",
|
|
8754
8754
|
e
|
|
8755
8755
|
),
|
|
@@ -8762,7 +8762,7 @@ function py({ className: e, ...t }) {
|
|
|
8762
8762
|
"div",
|
|
8763
8763
|
{
|
|
8764
8764
|
"data-slot": "card-content",
|
|
8765
|
-
className:
|
|
8765
|
+
className: P("qodo qodo-card-content px-6", e),
|
|
8766
8766
|
...t
|
|
8767
8767
|
}
|
|
8768
8768
|
);
|
|
@@ -8772,7 +8772,7 @@ function tP({ className: e, ...t }) {
|
|
|
8772
8772
|
"div",
|
|
8773
8773
|
{
|
|
8774
8774
|
"data-slot": "card-footer",
|
|
8775
|
-
className:
|
|
8775
|
+
className: P(
|
|
8776
8776
|
"qodo qodo-card-footer flex items-center px-6 [.border-t]:pt-6",
|
|
8777
8777
|
e
|
|
8778
8778
|
),
|
|
@@ -8863,7 +8863,7 @@ function nP({
|
|
|
8863
8863
|
yy,
|
|
8864
8864
|
{
|
|
8865
8865
|
"data-slot": "progress",
|
|
8866
|
-
className:
|
|
8866
|
+
className: P(
|
|
8867
8867
|
"qodo qodo-progress bg-primary/20 relative h-2 w-full overflow-hidden rounded-full dark:bg-primary/20",
|
|
8868
8868
|
e
|
|
8869
8869
|
),
|
|
@@ -8886,7 +8886,7 @@ function Cy({
|
|
|
8886
8886
|
return /* @__PURE__ */ s.jsx(
|
|
8887
8887
|
"div",
|
|
8888
8888
|
{
|
|
8889
|
-
className:
|
|
8889
|
+
className: P(
|
|
8890
8890
|
"qodo qodo-skeleton animate-pulse rounded-md bg-neutral-900/10 dark:bg-neutral-50/10",
|
|
8891
8891
|
e
|
|
8892
8892
|
),
|
|
@@ -9019,7 +9019,7 @@ function aP({
|
|
|
9019
9019
|
jy,
|
|
9020
9020
|
{
|
|
9021
9021
|
"data-slot": "switch",
|
|
9022
|
-
className:
|
|
9022
|
+
className: P(
|
|
9023
9023
|
"qodo qodo-switch peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 dark:data-[state=checked]:bg-primary dark:data-[state=unchecked]:bg-input",
|
|
9024
9024
|
e
|
|
9025
9025
|
),
|
|
@@ -9028,7 +9028,7 @@ function aP({
|
|
|
9028
9028
|
Ny,
|
|
9029
9029
|
{
|
|
9030
9030
|
"data-slot": "switch-thumb",
|
|
9031
|
-
className:
|
|
9031
|
+
className: P(
|
|
9032
9032
|
"bg-background pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0 dark:bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground"
|
|
9033
9033
|
)
|
|
9034
9034
|
}
|
|
@@ -9090,7 +9090,7 @@ function sP({
|
|
|
9090
9090
|
ky,
|
|
9091
9091
|
{
|
|
9092
9092
|
"data-slot": "toggle",
|
|
9093
|
-
className:
|
|
9093
|
+
className: P(Ed({ variant: t, size: r, className: e })),
|
|
9094
9094
|
...n
|
|
9095
9095
|
}
|
|
9096
9096
|
);
|
|
@@ -9119,7 +9119,7 @@ var Oy = c.forwardRef((e, t) => {
|
|
|
9119
9119
|
defaultProp: l ?? null,
|
|
9120
9120
|
onChange: d,
|
|
9121
9121
|
caller: Dr
|
|
9122
|
-
}), [y, x] = c.useState(!1), C = Fe(u), S = Rd(r),
|
|
9122
|
+
}), [y, x] = c.useState(!1), C = Fe(u), S = Rd(r), j = c.useRef(!1), [k, T] = c.useState(0);
|
|
9123
9123
|
return c.useEffect(() => {
|
|
9124
9124
|
const R = g.current;
|
|
9125
9125
|
if (R)
|
|
@@ -9154,10 +9154,10 @@ var Oy = c.forwardRef((e, t) => {
|
|
|
9154
9154
|
ref: m,
|
|
9155
9155
|
style: { outline: "none", ...e.style },
|
|
9156
9156
|
onMouseDown: L(e.onMouseDown, () => {
|
|
9157
|
-
|
|
9157
|
+
j.current = !0;
|
|
9158
9158
|
}),
|
|
9159
9159
|
onFocus: L(e.onFocus, (R) => {
|
|
9160
|
-
const F = !
|
|
9160
|
+
const F = !j.current;
|
|
9161
9161
|
if (R.target === R.currentTarget && F && !y) {
|
|
9162
9162
|
const U = new CustomEvent(Po, Ty);
|
|
9163
9163
|
if (R.currentTarget.dispatchEvent(U), !U.defaultPrevented) {
|
|
@@ -9167,7 +9167,7 @@ var Oy = c.forwardRef((e, t) => {
|
|
|
9167
9167
|
kd(O, f);
|
|
9168
9168
|
}
|
|
9169
9169
|
}
|
|
9170
|
-
|
|
9170
|
+
j.current = !1;
|
|
9171
9171
|
}),
|
|
9172
9172
|
onBlur: L(e.onBlur, () => x(!1))
|
|
9173
9173
|
}
|
|
@@ -9403,7 +9403,7 @@ function lP({
|
|
|
9403
9403
|
"data-slot": "toggle-group",
|
|
9404
9404
|
"data-variant": t,
|
|
9405
9405
|
"data-size": r,
|
|
9406
|
-
className:
|
|
9406
|
+
className: P(
|
|
9407
9407
|
"qodo qodo-toggle-group group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs dark:data-[variant=outline]:shadow-xs",
|
|
9408
9408
|
e
|
|
9409
9409
|
),
|
|
@@ -9426,7 +9426,7 @@ function cP({
|
|
|
9426
9426
|
"data-slot": "toggle-group-item",
|
|
9427
9427
|
"data-variant": a.variant || r,
|
|
9428
9428
|
"data-size": a.size || n,
|
|
9429
|
-
className:
|
|
9429
|
+
className: P(
|
|
9430
9430
|
Ed({
|
|
9431
9431
|
variant: a.variant || r,
|
|
9432
9432
|
size: a.size || n
|
|
@@ -9619,7 +9619,7 @@ var [Wd, tw] = Yn(We), [zd, rw] = Yn(
|
|
|
9619
9619
|
if (h === -1) return;
|
|
9620
9620
|
m.preventDefault();
|
|
9621
9621
|
let x = h;
|
|
9622
|
-
const C = 0, S = y - 1,
|
|
9622
|
+
const C = 0, S = y - 1, j = () => {
|
|
9623
9623
|
x = h + 1, x > S && (x = C);
|
|
9624
9624
|
}, k = () => {
|
|
9625
9625
|
x = h - 1, x < C && (x = S);
|
|
@@ -9632,13 +9632,13 @@ var [Wd, tw] = Yn(We), [zd, rw] = Yn(
|
|
|
9632
9632
|
x = S;
|
|
9633
9633
|
break;
|
|
9634
9634
|
case "ArrowRight":
|
|
9635
|
-
a === "horizontal" && (p ?
|
|
9635
|
+
a === "horizontal" && (p ? j() : k());
|
|
9636
9636
|
break;
|
|
9637
9637
|
case "ArrowDown":
|
|
9638
|
-
a === "vertical" &&
|
|
9638
|
+
a === "vertical" && j();
|
|
9639
9639
|
break;
|
|
9640
9640
|
case "ArrowLeft":
|
|
9641
|
-
a === "horizontal" && (p ? k() :
|
|
9641
|
+
a === "horizontal" && (p ? k() : j());
|
|
9642
9642
|
break;
|
|
9643
9643
|
case "ArrowUp":
|
|
9644
9644
|
a === "vertical" && k();
|
|
@@ -9768,7 +9768,7 @@ function fP({
|
|
|
9768
9768
|
lw,
|
|
9769
9769
|
{
|
|
9770
9770
|
"data-slot": "accordion-item",
|
|
9771
|
-
className:
|
|
9771
|
+
className: P(
|
|
9772
9772
|
"qodo qodo-accordion-item border-b last:border-b-0 dark:border-border",
|
|
9773
9773
|
e
|
|
9774
9774
|
),
|
|
@@ -9785,7 +9785,7 @@ function pP({
|
|
|
9785
9785
|
dw,
|
|
9786
9786
|
{
|
|
9787
9787
|
"data-slot": "accordion-trigger",
|
|
9788
|
-
className:
|
|
9788
|
+
className: P(
|
|
9789
9789
|
"qodo qodo-accordion-trigger focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium text-foreground transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180 dark:text-foreground dark:focus-visible:border-ring dark:focus-visible:ring-ring/50",
|
|
9790
9790
|
e
|
|
9791
9791
|
),
|
|
@@ -9806,12 +9806,12 @@ function mP({
|
|
|
9806
9806
|
uw,
|
|
9807
9807
|
{
|
|
9808
9808
|
"data-slot": "accordion-content",
|
|
9809
|
-
className:
|
|
9809
|
+
className: P(
|
|
9810
9810
|
"qodo qodo-accordion-content",
|
|
9811
9811
|
"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm text-foreground dark:text-foreground"
|
|
9812
9812
|
),
|
|
9813
9813
|
...r,
|
|
9814
|
-
children: /* @__PURE__ */ s.jsx("div", { className:
|
|
9814
|
+
children: /* @__PURE__ */ s.jsx("div", { className: P("pt-0 pb-4", e), children: t })
|
|
9815
9815
|
}
|
|
9816
9816
|
);
|
|
9817
9817
|
}
|
|
@@ -9966,7 +9966,7 @@ function vP({
|
|
|
9966
9966
|
mw,
|
|
9967
9967
|
{
|
|
9968
9968
|
"data-slot": "tabs",
|
|
9969
|
-
className:
|
|
9969
|
+
className: P("qodo qodo-tabs flex flex-col gap-2", e),
|
|
9970
9970
|
...t
|
|
9971
9971
|
}
|
|
9972
9972
|
);
|
|
@@ -9979,7 +9979,7 @@ function hP({
|
|
|
9979
9979
|
gw,
|
|
9980
9980
|
{
|
|
9981
9981
|
"data-slot": "tabs-list",
|
|
9982
|
-
className:
|
|
9982
|
+
className: P(
|
|
9983
9983
|
"inline-flex w-full items-end justify-start gap-4",
|
|
9984
9984
|
e
|
|
9985
9985
|
),
|
|
@@ -9995,7 +9995,7 @@ function xP({
|
|
|
9995
9995
|
vw,
|
|
9996
9996
|
{
|
|
9997
9997
|
"data-slot": "tabs-trigger",
|
|
9998
|
-
className:
|
|
9998
|
+
className: P(
|
|
9999
9999
|
"text-[var(--text-interactive-neutral-idle)] hover:text-[var(--text-interactive-neutral-hover)] data-[state=active]:text-[var(--text-interactive-emphasis-active)] focus-visible:ring-ring/50 focus-visible:outline-ring inline-flex items-center justify-center gap-1.5 border-b border-transparent py-4 text-xs font-normal whitespace-nowrap transition-[color,border-color] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed data-[state=active]:border-[var(--color-purple-400)] relative -mb-px tracking-[0.01em] leading-[150%] cursor-pointer [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
10000
10000
|
e
|
|
10001
10001
|
),
|
|
@@ -10011,7 +10011,7 @@ function bP({
|
|
|
10011
10011
|
hw,
|
|
10012
10012
|
{
|
|
10013
10013
|
"data-slot": "tabs-content",
|
|
10014
|
-
className:
|
|
10014
|
+
className: P("flex-1 outline-none", e),
|
|
10015
10015
|
...t
|
|
10016
10016
|
}
|
|
10017
10017
|
);
|
|
@@ -10224,9 +10224,9 @@ function Tw(e) {
|
|
|
10224
10224
|
...p.current.rules,
|
|
10225
10225
|
...jo(p.current.disabled) ? { disabled: p.current.disabled } : {}
|
|
10226
10226
|
});
|
|
10227
|
-
const C = (S,
|
|
10227
|
+
const C = (S, j) => {
|
|
10228
10228
|
const k = ke(o._fields, S);
|
|
10229
|
-
k && k._f && (k._f.mount =
|
|
10229
|
+
k && k._f && (k._f.mount = j);
|
|
10230
10230
|
};
|
|
10231
10231
|
if (C(r, !0), x) {
|
|
10232
10232
|
const S = du(ke(o._options.defaultValues, r));
|
|
@@ -10390,7 +10390,7 @@ function Cu({
|
|
|
10390
10390
|
Ww,
|
|
10391
10391
|
{
|
|
10392
10392
|
"data-slot": "label",
|
|
10393
|
-
className:
|
|
10393
|
+
className: P(
|
|
10394
10394
|
"qodo qodo-label flex items-center text-purple-muted-300 gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
|
|
10395
10395
|
e
|
|
10396
10396
|
),
|
|
@@ -10424,7 +10424,7 @@ function qw({ className: e, ...t }) {
|
|
|
10424
10424
|
"div",
|
|
10425
10425
|
{
|
|
10426
10426
|
"data-slot": "form-item",
|
|
10427
|
-
className:
|
|
10427
|
+
className: P("qodo qodo-form-item grid gap-2", e),
|
|
10428
10428
|
...t
|
|
10429
10429
|
}
|
|
10430
10430
|
) });
|
|
@@ -10438,7 +10438,7 @@ function Uw({
|
|
|
10438
10438
|
Cu,
|
|
10439
10439
|
{
|
|
10440
10440
|
"data-slot": "form-label",
|
|
10441
|
-
className:
|
|
10441
|
+
className: P(
|
|
10442
10442
|
"data-[error=true]:text-destructive font-normal text-sm",
|
|
10443
10443
|
e
|
|
10444
10444
|
),
|
|
@@ -10467,7 +10467,7 @@ function Kw({ className: e, ...t }) {
|
|
|
10467
10467
|
{
|
|
10468
10468
|
"data-slot": "form-description",
|
|
10469
10469
|
id: r,
|
|
10470
|
-
className:
|
|
10470
|
+
className: P("text-purple-muted-300 text-sm", e),
|
|
10471
10471
|
...t
|
|
10472
10472
|
}
|
|
10473
10473
|
);
|
|
@@ -10479,7 +10479,7 @@ function Yw({ className: e, ...t }) {
|
|
|
10479
10479
|
{
|
|
10480
10480
|
"data-slot": "form-message",
|
|
10481
10481
|
id: n,
|
|
10482
|
-
className:
|
|
10482
|
+
className: P("text-destructive text-sm", e),
|
|
10483
10483
|
...t,
|
|
10484
10484
|
children: o
|
|
10485
10485
|
}
|
|
@@ -10541,7 +10541,7 @@ var Rr = "Tooltip", [Jw, $r] = Qn(Rr), ju = (e) => {
|
|
|
10541
10541
|
caller: Rr
|
|
10542
10542
|
}), C = c.useMemo(() => y ? h.current ? "delayed-open" : "instant-open" : "closed", [y]), S = c.useCallback(() => {
|
|
10543
10543
|
window.clearTimeout(m.current), m.current = 0, h.current = !1, x(!0);
|
|
10544
|
-
}, [x]),
|
|
10544
|
+
}, [x]), j = c.useCallback(() => {
|
|
10545
10545
|
window.clearTimeout(m.current), m.current = 0, x(!1);
|
|
10546
10546
|
}, [x]), k = c.useCallback(() => {
|
|
10547
10547
|
window.clearTimeout(m.current), m.current = window.setTimeout(() => {
|
|
@@ -10563,10 +10563,10 @@ var Rr = "Tooltip", [Jw, $r] = Qn(Rr), ju = (e) => {
|
|
|
10563
10563
|
d.isOpenDelayedRef.current ? k() : S();
|
|
10564
10564
|
}, [d.isOpenDelayedRef, k, S]),
|
|
10565
10565
|
onTriggerLeave: c.useCallback(() => {
|
|
10566
|
-
b ?
|
|
10567
|
-
}, [
|
|
10566
|
+
b ? j() : (window.clearTimeout(m.current), m.current = 0);
|
|
10567
|
+
}, [j, b]),
|
|
10568
10568
|
onOpen: S,
|
|
10569
|
-
onClose:
|
|
10569
|
+
onClose: j,
|
|
10570
10570
|
disableHoverableContent: b,
|
|
10571
10571
|
children: r
|
|
10572
10572
|
}
|
|
@@ -10619,8 +10619,8 @@ var er = "TooltipContent", Tu = c.forwardRef(
|
|
|
10619
10619
|
l(null), p(!1);
|
|
10620
10620
|
}, [p]), m = c.useCallback(
|
|
10621
10621
|
(b, v) => {
|
|
10622
|
-
const h = b.currentTarget, y = { x: b.clientX, y: b.clientY }, x = a0(y, h.getBoundingClientRect()), C = s0(y, x), S = i0(v.getBoundingClientRect()),
|
|
10623
|
-
l(
|
|
10622
|
+
const h = b.currentTarget, y = { x: b.clientX, y: b.clientY }, x = a0(y, h.getBoundingClientRect()), C = s0(y, x), S = i0(v.getBoundingClientRect()), j = c0([...C, ...S]);
|
|
10623
|
+
l(j), p(!0);
|
|
10624
10624
|
},
|
|
10625
10625
|
[p]
|
|
10626
10626
|
);
|
|
@@ -10831,7 +10831,7 @@ function $u({
|
|
|
10831
10831
|
{
|
|
10832
10832
|
"data-slot": "tooltip-content",
|
|
10833
10833
|
sideOffset: t,
|
|
10834
|
-
className:
|
|
10834
|
+
className: P(
|
|
10835
10835
|
"qodo qodo-tooltip-content bg-purple-muted-700 border border-purple-muted-600 text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",
|
|
10836
10836
|
e,
|
|
10837
10837
|
{ "py-2.5": n }
|
|
@@ -11140,7 +11140,7 @@ function I0({
|
|
|
11140
11140
|
"data-slot": "radio-group",
|
|
11141
11141
|
"data-readonly": r || void 0,
|
|
11142
11142
|
disabled: n.disabled || r,
|
|
11143
|
-
className:
|
|
11143
|
+
className: P("qodo qodo-radio-group grid gap-3 group", e),
|
|
11144
11144
|
...n
|
|
11145
11145
|
}
|
|
11146
11146
|
);
|
|
@@ -11153,7 +11153,7 @@ function M0({
|
|
|
11153
11153
|
A0,
|
|
11154
11154
|
{
|
|
11155
11155
|
"data-slot": "radio-group-item",
|
|
11156
|
-
className:
|
|
11156
|
+
className: P(
|
|
11157
11157
|
"qodo qodo-radio-group-item dark:border-purple-muted-200 dark:text-purple-muted-200 focus-visible:border-ring focus-visible:ring-ring/50",
|
|
11158
11158
|
"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
11159
11159
|
"aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px]",
|
|
@@ -11191,7 +11191,7 @@ const Xu = G.forwardRef((e, t) => {
|
|
|
11191
11191
|
i || (p == null || p({
|
|
11192
11192
|
target: { value: v }
|
|
11193
11193
|
}), o == null || o(v));
|
|
11194
|
-
}, b =
|
|
11194
|
+
}, b = P(
|
|
11195
11195
|
"qodo qodo-custom-radio-group",
|
|
11196
11196
|
"flex",
|
|
11197
11197
|
{
|
|
@@ -11230,7 +11230,7 @@ const Zu = ({
|
|
|
11230
11230
|
Cu,
|
|
11231
11231
|
{
|
|
11232
11232
|
htmlFor: i,
|
|
11233
|
-
className:
|
|
11233
|
+
className: P(
|
|
11234
11234
|
"flex items-start p-4 rounded-lg gap-2 transition-all duration-200",
|
|
11235
11235
|
"font-normal text-purple-muted-200 dark:text-purple-muted-200 leading-5",
|
|
11236
11236
|
{
|
|
@@ -11256,12 +11256,12 @@ const Zu = ({
|
|
|
11256
11256
|
);
|
|
11257
11257
|
};
|
|
11258
11258
|
Zu.displayName = "RadioGroupItemComponent";
|
|
11259
|
-
const O0 = cr(Xu), D0 = (e) => /* @__PURE__ */ s.jsx("hr", { className: "w-full h-px border-purple-muted-500", ...e }), $0 = ({ children: e, description: t, className: r }) => /* @__PURE__ */ s.jsxs("div", { className:
|
|
11259
|
+
const O0 = cr(Xu), D0 = (e) => /* @__PURE__ */ s.jsx("hr", { className: "w-full h-px border-purple-muted-500", ...e }), $0 = ({ children: e, description: t, className: r }) => /* @__PURE__ */ s.jsxs("div", { className: P("space-y-1", r), children: [
|
|
11260
11260
|
/* @__PURE__ */ s.jsx("h2", { className: "flex items-center gap-2.5 text-2xl text-white", children: e }),
|
|
11261
11261
|
t && /* @__PURE__ */ s.jsx("span", { className: "text-sm text-purple-muted-300", children: t })
|
|
11262
11262
|
] }), Ju = G.forwardRef(
|
|
11263
11263
|
({ direction: e = "horizontal", className: t, ...r }, n) => {
|
|
11264
|
-
const o =
|
|
11264
|
+
const o = P(
|
|
11265
11265
|
"flex flex-row gap-6",
|
|
11266
11266
|
{
|
|
11267
11267
|
"flex-col": e === "vertical"
|
|
@@ -11282,7 +11282,7 @@ function L0({
|
|
|
11282
11282
|
{
|
|
11283
11283
|
"data-slot": "textarea",
|
|
11284
11284
|
rows: t,
|
|
11285
|
-
className:
|
|
11285
|
+
className: P(
|
|
11286
11286
|
"qodo qodo-textarea border-input px-3 py-2 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20",
|
|
11287
11287
|
"dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex min-h-16 w-full rounded-md border bg-transparent",
|
|
11288
11288
|
"placeholder:text-purple-muted-400 text-purple-muted-300 shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] selection:bg-primary selection:text-primary-foreground disabled:cursor-not-allowed disabled:opacity-50 disabled:bg-purple-muted-700 disabled:border-purple-muted-500 disabled:text-purple-muted-400 read-only:bg-purple-muted-700 read-only:border-purple-muted-400 read-only:cursor-default read-only:text-purple-muted-200 md:text-sm",
|
|
@@ -11294,7 +11294,22 @@ function L0({
|
|
|
11294
11294
|
);
|
|
11295
11295
|
}
|
|
11296
11296
|
const F0 = G.forwardRef(
|
|
11297
|
-
(
|
|
11297
|
+
({ variant: e = "default", className: t, ...r }, n) => {
|
|
11298
|
+
const o = cr(L0);
|
|
11299
|
+
return /* @__PURE__ */ s.jsx(
|
|
11300
|
+
o,
|
|
11301
|
+
{
|
|
11302
|
+
...r,
|
|
11303
|
+
ref: n,
|
|
11304
|
+
className: P(
|
|
11305
|
+
{
|
|
11306
|
+
"font-plex-mono text-sm leading-relaxed rounded dark:bg-fill-input-neutral-idle px-3 py-2 border-0": e === "code"
|
|
11307
|
+
},
|
|
11308
|
+
t
|
|
11309
|
+
)
|
|
11310
|
+
}
|
|
11311
|
+
);
|
|
11312
|
+
}
|
|
11298
11313
|
), Qu = ({
|
|
11299
11314
|
label: e,
|
|
11300
11315
|
id: t,
|
|
@@ -11308,7 +11323,7 @@ const F0 = G.forwardRef(
|
|
|
11308
11323
|
variant: a,
|
|
11309
11324
|
disabled: n,
|
|
11310
11325
|
size: "sm",
|
|
11311
|
-
className:
|
|
11326
|
+
className: P(
|
|
11312
11327
|
"flex items-center gap-1 px-2 py-0.5",
|
|
11313
11328
|
"font-normal whitespace-nowrap",
|
|
11314
11329
|
o
|
|
@@ -11345,7 +11360,7 @@ const F0 = G.forwardRef(
|
|
|
11345
11360
|
"div",
|
|
11346
11361
|
{
|
|
11347
11362
|
onClick: r,
|
|
11348
|
-
className:
|
|
11363
|
+
className: P(
|
|
11349
11364
|
"bg-transparent hover:bg-purple-muted-800 rounded-sm py-1 px-2",
|
|
11350
11365
|
a
|
|
11351
11366
|
),
|
|
@@ -11409,7 +11424,7 @@ const F0 = G.forwardRef(
|
|
|
11409
11424
|
onResetTags: C = () => {
|
|
11410
11425
|
}
|
|
11411
11426
|
}) => {
|
|
11412
|
-
const [S,
|
|
11427
|
+
const [S, j] = Te(""), [k, T] = Te(!1), R = be(null), F = be(null), U = be(null), [re, te] = Te();
|
|
11413
11428
|
dt(() => {
|
|
11414
11429
|
F.current && te(F.current.offsetWidth);
|
|
11415
11430
|
}, []);
|
|
@@ -11424,7 +11439,7 @@ const F0 = G.forwardRef(
|
|
|
11424
11439
|
h == null || h([]), C();
|
|
11425
11440
|
}, M = ($) => {
|
|
11426
11441
|
const A = $.target.value;
|
|
11427
|
-
|
|
11442
|
+
j(A), T(!0);
|
|
11428
11443
|
}, E = () => {
|
|
11429
11444
|
const $ = S.trim().toLowerCase();
|
|
11430
11445
|
if (!$) return [];
|
|
@@ -11438,13 +11453,13 @@ const F0 = G.forwardRef(
|
|
|
11438
11453
|
const A = I($);
|
|
11439
11454
|
if (!A) return;
|
|
11440
11455
|
if (e.some((ee) => ee.id === A)) {
|
|
11441
|
-
|
|
11456
|
+
j(""), T(!1);
|
|
11442
11457
|
return;
|
|
11443
11458
|
}
|
|
11444
11459
|
const K = o.find(
|
|
11445
11460
|
(ee) => ee.id === A || I(ee.label) === A
|
|
11446
11461
|
);
|
|
11447
|
-
K ? W(K) : a && W({ id: A, label: A }),
|
|
11462
|
+
K ? W(K) : a && W({ id: A, label: A }), j(""), T(!1);
|
|
11448
11463
|
}, J = ($) => {
|
|
11449
11464
|
const A = $.key === No.BACKSPACE && !S && e.length > 0, K = $.key === No.ENTER && S, ee = $.key === No.ESCAPE;
|
|
11450
11465
|
K ? ($.preventDefault(), V(), U.current && (U.current.scrollLeft = U.current.scrollWidth)) : A ? O(e[e.length - 1].id) : ee && T(!1);
|
|
@@ -11462,7 +11477,7 @@ const F0 = G.forwardRef(
|
|
|
11462
11477
|
children: /* @__PURE__ */ s.jsx(
|
|
11463
11478
|
"div",
|
|
11464
11479
|
{
|
|
11465
|
-
className:
|
|
11480
|
+
className: P(
|
|
11466
11481
|
"max-h-[200px] overflow-y-auto flex flex-col gap-1 p-1",
|
|
11467
11482
|
u
|
|
11468
11483
|
),
|
|
@@ -11478,7 +11493,7 @@ const F0 = G.forwardRef(
|
|
|
11478
11493
|
tagVariant: t,
|
|
11479
11494
|
onClick: () => {
|
|
11480
11495
|
var A;
|
|
11481
|
-
W($),
|
|
11496
|
+
W($), j(""), T(!1), (A = R.current) == null || A.focus();
|
|
11482
11497
|
}
|
|
11483
11498
|
},
|
|
11484
11499
|
$.id
|
|
@@ -11505,13 +11520,13 @@ const F0 = G.forwardRef(
|
|
|
11505
11520
|
onClick: _
|
|
11506
11521
|
}
|
|
11507
11522
|
);
|
|
11508
|
-
return /* @__PURE__ */ s.jsx("div", { className:
|
|
11523
|
+
return /* @__PURE__ */ s.jsx("div", { className: P("w-full", d), children: /* @__PURE__ */ s.jsxs(Ra, { open: k && !l, onOpenChange: T, modal: !1, children: [
|
|
11509
11524
|
/* @__PURE__ */ s.jsx(Pa, { className: "w-full", children: /* @__PURE__ */ s.jsxs(
|
|
11510
11525
|
"div",
|
|
11511
11526
|
{
|
|
11512
11527
|
ref: F,
|
|
11513
11528
|
tabIndex: -1,
|
|
11514
|
-
className:
|
|
11529
|
+
className: P(
|
|
11515
11530
|
"flex items-center gap-2 border border-[var(--border-tag-neutral-idle)] bg-purple-muted-800 py-0.5 px-3 rounded-md scrollbar-thin",
|
|
11516
11531
|
{ "opacity-60": l }
|
|
11517
11532
|
),
|
|
@@ -11540,7 +11555,7 @@ const F0 = G.forwardRef(
|
|
|
11540
11555
|
onKeyDown: J,
|
|
11541
11556
|
placeholder: r,
|
|
11542
11557
|
disabled: l || Q,
|
|
11543
|
-
className:
|
|
11558
|
+
className: P(
|
|
11544
11559
|
"m-0 h-6.5 flex-1 min-w-[6rem] border-0 bg-transparent dark:bg-transparent p-0 shadow-none focus-visible:outline-none focus-visible:ring-0 font-normal text-xs",
|
|
11545
11560
|
"placeholder:text-[var(--text-input-neutral-placeholder)] dark:placeholder:text-[var(--text-input-neutral-placeholder)] placeholder:text-xs"
|
|
11546
11561
|
)
|
|
@@ -11814,7 +11829,7 @@ function pf({
|
|
|
11814
11829
|
}, v = () => p ? /* @__PURE__ */ s.jsx(Rg, { className: "w-2 h-2 flex-shrink-0 transition-opacity text-[var(--text-interactive-neutral-idle)]" }) : /* @__PURE__ */ s.jsx(
|
|
11815
11830
|
Nr,
|
|
11816
11831
|
{
|
|
11817
|
-
className:
|
|
11832
|
+
className: P(
|
|
11818
11833
|
"h-4 w-4 flex-shrink-0 transition-opacity text-[var(--text-interactive-neutral-idle)] opacity-0",
|
|
11819
11834
|
{ "opacity-100": g }
|
|
11820
11835
|
)
|
|
@@ -11835,7 +11850,7 @@ function pf({
|
|
|
11835
11850
|
}, y = () => /* @__PURE__ */ s.jsxs(
|
|
11836
11851
|
"div",
|
|
11837
11852
|
{
|
|
11838
|
-
className:
|
|
11853
|
+
className: P("flex items-center w-full gap-2 flex-row", {
|
|
11839
11854
|
"flex-row-reverse": a === pi.LTR
|
|
11840
11855
|
}),
|
|
11841
11856
|
style: { paddingLeft: d },
|
|
@@ -11855,7 +11870,7 @@ function pf({
|
|
|
11855
11870
|
{
|
|
11856
11871
|
disabled: e.disabled || o,
|
|
11857
11872
|
onSelect: () => r(e.value, i),
|
|
11858
|
-
className:
|
|
11873
|
+
className: P(
|
|
11859
11874
|
"text-[var(--text-interactive-neutral-idle)] hover:text-[var(--text-interactive-neutral-hover)]! cursor-pointer disabled:cursor-not-allowed",
|
|
11860
11875
|
"focus:text-[var(--text-interactive-neutral-active)] data-[selected=true]:text-[var(--text-interactive-neutral-hover)]!",
|
|
11861
11876
|
{
|
|
@@ -11886,18 +11901,18 @@ function R1({
|
|
|
11886
11901
|
dir: b = "ltr",
|
|
11887
11902
|
...v
|
|
11888
11903
|
}) {
|
|
11889
|
-
const [h, y] = Te(0), [x, C] = Te(!1), S = be(null),
|
|
11890
|
-
e !== void 0 ? e :
|
|
11904
|
+
const [h, y] = Te(0), [x, C] = Te(!1), S = be(null), j = o === fi.MULTIPLE, [k, T] = Te(
|
|
11905
|
+
e !== void 0 ? e : j ? [] : ""
|
|
11891
11906
|
), R = b1(k), F = new Set(R);
|
|
11892
11907
|
dt(() => {
|
|
11893
11908
|
S.current && y(S.current.offsetWidth);
|
|
11894
11909
|
}, [k]);
|
|
11895
11910
|
const U = y1(t), re = w1(t);
|
|
11896
11911
|
dt(() => {
|
|
11897
|
-
e !== void 0 && T(
|
|
11898
|
-
}, [e,
|
|
11912
|
+
e !== void 0 && T(j ? e || [] : e || "");
|
|
11913
|
+
}, [e, j]);
|
|
11899
11914
|
function te(M, E) {
|
|
11900
|
-
if (!
|
|
11915
|
+
if (!j) {
|
|
11901
11916
|
T(M), r == null || r(M), C(!1);
|
|
11902
11917
|
return;
|
|
11903
11918
|
}
|
|
@@ -11926,7 +11941,7 @@ function R1({
|
|
|
11926
11941
|
{
|
|
11927
11942
|
variant: p,
|
|
11928
11943
|
size: "md",
|
|
11929
|
-
className:
|
|
11944
|
+
className: P("text-purple-muted-300", f),
|
|
11930
11945
|
children: a
|
|
11931
11946
|
}
|
|
11932
11947
|
) : M.map((I) => {
|
|
@@ -11936,7 +11951,7 @@ function R1({
|
|
|
11936
11951
|
{
|
|
11937
11952
|
variant: p,
|
|
11938
11953
|
size: "md",
|
|
11939
|
-
className:
|
|
11954
|
+
className: P("text-[var(--text-bg-neutral-mid)]", f),
|
|
11940
11955
|
children: /* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-1", children: [
|
|
11941
11956
|
V && /* @__PURE__ */ s.jsx("div", { className: "flex-shrink-0", children: V }),
|
|
11942
11957
|
/* @__PURE__ */ s.jsx("span", { children: J })
|
|
@@ -11959,7 +11974,7 @@ function R1({
|
|
|
11959
11974
|
/* @__PURE__ */ s.jsx(Pa, { asChild: !0, disabled: n, children: /* @__PURE__ */ s.jsxs(
|
|
11960
11975
|
"div",
|
|
11961
11976
|
{
|
|
11962
|
-
className:
|
|
11977
|
+
className: P(
|
|
11963
11978
|
"flex items-center gap-1.5 justify-between py-1 px-3 w-[100%] border border-[var(--border-interactive-neutral-idle)] bg-[var(--fill-input-neutral-idle)] rounded-sm scrollbar-thin",
|
|
11964
11979
|
"aria-invalid:!border-destructive aria-invalid:!ring-destructive/20 dark:aria-invalid:!ring-destructive/40",
|
|
11965
11980
|
{
|
|
@@ -11975,7 +11990,7 @@ function R1({
|
|
|
11975
11990
|
/* @__PURE__ */ s.jsx(
|
|
11976
11991
|
"div",
|
|
11977
11992
|
{
|
|
11978
|
-
className:
|
|
11993
|
+
className: P(
|
|
11979
11994
|
"flex justify-start text-start w-[100%] whitespace-nowrap overflow-x-auto gap-1.5",
|
|
11980
11995
|
d
|
|
11981
11996
|
),
|
|
@@ -12044,7 +12059,7 @@ const P1 = cr(mf), ze = (e) => {
|
|
|
12044
12059
|
onSubmit: a = () => {
|
|
12045
12060
|
},
|
|
12046
12061
|
...i
|
|
12047
|
-
} = e, { handleSubmit: l } = o, d =
|
|
12062
|
+
} = e, { handleSubmit: l } = o, d = P("qodo qodo-form", "flex flex-col gap-6", t);
|
|
12048
12063
|
return /* @__PURE__ */ s.jsx(Aw, { methods: o, disabled: r, readOnly: n, children: /* @__PURE__ */ s.jsx("form", { className: d, onSubmit: l(a), ...i }) });
|
|
12049
12064
|
};
|
|
12050
12065
|
ze.Button = Iw;
|
|
@@ -12286,7 +12301,7 @@ function oS(e, t = {}) {
|
|
|
12286
12301
|
return d;
|
|
12287
12302
|
},
|
|
12288
12303
|
getComputed() {
|
|
12289
|
-
return
|
|
12304
|
+
return j;
|
|
12290
12305
|
},
|
|
12291
12306
|
getRefs() {
|
|
12292
12307
|
return v;
|
|
@@ -12339,7 +12354,7 @@ function oS(e, t = {}) {
|
|
|
12339
12354
|
guard: x,
|
|
12340
12355
|
track: nS,
|
|
12341
12356
|
refs: v,
|
|
12342
|
-
computed:
|
|
12357
|
+
computed: j,
|
|
12343
12358
|
flush: ki,
|
|
12344
12359
|
scope: r,
|
|
12345
12360
|
choose: S
|
|
@@ -12372,7 +12387,7 @@ function oS(e, t = {}) {
|
|
|
12372
12387
|
}, S = (O) => j1(O).find((_) => {
|
|
12373
12388
|
let M = !_.guard;
|
|
12374
12389
|
return an(_.guard) ? M = !!x(_.guard) : hr(_.guard) && (M = _.guard(h())), M;
|
|
12375
|
-
}),
|
|
12390
|
+
}), j = (O) => {
|
|
12376
12391
|
W1(e.computed, () => "[zag-js] No computed object found on machine");
|
|
12377
12392
|
const _ = e.computed[O];
|
|
12378
12393
|
return _({
|
|
@@ -12381,7 +12396,7 @@ function oS(e, t = {}) {
|
|
|
12381
12396
|
prop: a,
|
|
12382
12397
|
refs: v,
|
|
12383
12398
|
scope: r,
|
|
12384
|
-
computed:
|
|
12399
|
+
computed: j
|
|
12385
12400
|
});
|
|
12386
12401
|
}, k = wn(() => ({
|
|
12387
12402
|
defaultValue: e.initialState({ prop: a }),
|
|
@@ -12441,7 +12456,7 @@ function oS(e, t = {}) {
|
|
|
12441
12456
|
prop: a,
|
|
12442
12457
|
scope: r,
|
|
12443
12458
|
refs: v,
|
|
12444
|
-
computed:
|
|
12459
|
+
computed: j,
|
|
12445
12460
|
event: m(),
|
|
12446
12461
|
getStatus: () => R.current
|
|
12447
12462
|
};
|
|
@@ -12943,7 +12958,7 @@ const Af = aa(void 0), PS = ({ children: e, step: t }) => /* @__PURE__ */ s.jsx(
|
|
|
12943
12958
|
step: t,
|
|
12944
12959
|
...r
|
|
12945
12960
|
}) => {
|
|
12946
|
-
const n =
|
|
12961
|
+
const n = P(
|
|
12947
12962
|
"qodo qodo-steps",
|
|
12948
12963
|
"flex flex-col gap-4",
|
|
12949
12964
|
e
|
|
@@ -12953,19 +12968,19 @@ const Af = aa(void 0), PS = ({ children: e, step: t }) => /* @__PURE__ */ s.jsx(
|
|
|
12953
12968
|
className: e,
|
|
12954
12969
|
...t
|
|
12955
12970
|
}) => {
|
|
12956
|
-
const r =
|
|
12971
|
+
const r = P("flex flex-row gap-4", e);
|
|
12957
12972
|
return /* @__PURE__ */ s.jsx(Rf, { className: r, ...t });
|
|
12958
12973
|
}, kS = ({
|
|
12959
12974
|
className: e,
|
|
12960
12975
|
...t
|
|
12961
12976
|
}) => {
|
|
12962
|
-
const r =
|
|
12977
|
+
const r = P("flex flex-row items-center gap-4", e);
|
|
12963
12978
|
return /* @__PURE__ */ s.jsx(Ef, { className: r, ...t });
|
|
12964
12979
|
}, TS = ({
|
|
12965
12980
|
className: e,
|
|
12966
12981
|
...t
|
|
12967
12982
|
}) => {
|
|
12968
|
-
const r =
|
|
12983
|
+
const r = P(
|
|
12969
12984
|
"flex flex-row items-center gap-4 text-purple-muted-100 text-sm",
|
|
12970
12985
|
e
|
|
12971
12986
|
);
|
|
@@ -12975,13 +12990,13 @@ const Af = aa(void 0), PS = ({ children: e, step: t }) => /* @__PURE__ */ s.jsx(
|
|
|
12975
12990
|
className: t,
|
|
12976
12991
|
...r
|
|
12977
12992
|
}) => {
|
|
12978
|
-
const { step: n } = _f(), o = e === n, a = e < n, i =
|
|
12993
|
+
const { step: n } = _f(), o = e === n, a = e < n, i = P(
|
|
12979
12994
|
"flex items-center justify-center w-8 h-8 rounded-full text-white",
|
|
12980
12995
|
a && "bg-green-700",
|
|
12981
12996
|
o && "bg-green-600",
|
|
12982
12997
|
!a && !o && "bg-purple-muted-500",
|
|
12983
12998
|
t
|
|
12984
|
-
), l =
|
|
12999
|
+
), l = P({
|
|
12985
13000
|
"text-white": o,
|
|
12986
13001
|
"text-purple-muted-300": !a && e !== n
|
|
12987
13002
|
});
|
|
@@ -12991,7 +13006,7 @@ const Af = aa(void 0), PS = ({ children: e, step: t }) => /* @__PURE__ */ s.jsx(
|
|
|
12991
13006
|
className: t,
|
|
12992
13007
|
...r
|
|
12993
13008
|
}) => {
|
|
12994
|
-
const { step: n } = _f(), o = e < n, a =
|
|
13009
|
+
const { step: n } = _f(), o = e < n, a = P(
|
|
12995
13010
|
"min-w-12 h-px",
|
|
12996
13011
|
o ? "bg-green-400" : "bg-gray-400",
|
|
12997
13012
|
t
|
|
@@ -13001,19 +13016,19 @@ const Af = aa(void 0), PS = ({ children: e, step: t }) => /* @__PURE__ */ s.jsx(
|
|
|
13001
13016
|
className: e,
|
|
13002
13017
|
...t
|
|
13003
13018
|
}) => {
|
|
13004
|
-
const r =
|
|
13019
|
+
const r = P(e);
|
|
13005
13020
|
return /* @__PURE__ */ s.jsx(Cf, { className: r, ...t });
|
|
13006
13021
|
}, MS = ({
|
|
13007
13022
|
className: e,
|
|
13008
13023
|
...t
|
|
13009
13024
|
}) => {
|
|
13010
|
-
const r =
|
|
13025
|
+
const r = P(e);
|
|
13011
13026
|
return /* @__PURE__ */ s.jsx(wf, { className: r, ...t });
|
|
13012
13027
|
}, OS = ({
|
|
13013
13028
|
className: e,
|
|
13014
13029
|
...t
|
|
13015
13030
|
}) => {
|
|
13016
|
-
const r =
|
|
13031
|
+
const r = P(
|
|
13017
13032
|
"bg-primary text-white px-4 py-2 rounded-md",
|
|
13018
13033
|
e
|
|
13019
13034
|
);
|
|
@@ -13022,7 +13037,7 @@ const Af = aa(void 0), PS = ({ children: e, step: t }) => /* @__PURE__ */ s.jsx(
|
|
|
13022
13037
|
className: e,
|
|
13023
13038
|
...t
|
|
13024
13039
|
}) => {
|
|
13025
|
-
const r =
|
|
13040
|
+
const r = P(
|
|
13026
13041
|
"bg-primary text-white px-4 py-2 rounded-md",
|
|
13027
13042
|
e
|
|
13028
13043
|
);
|
|
@@ -13076,7 +13091,7 @@ function FS(e) {
|
|
|
13076
13091
|
const If = c.forwardRef(({ className: e, wrapperClassName: t, ...r }, n) => /* @__PURE__ */ s.jsx(
|
|
13077
13092
|
"div",
|
|
13078
13093
|
{
|
|
13079
|
-
className:
|
|
13094
|
+
className: P(
|
|
13080
13095
|
"max-h-[100%] min-h-0 overflow-auto rounded-lg border border-purple-muted-600",
|
|
13081
13096
|
t
|
|
13082
13097
|
),
|
|
@@ -13084,7 +13099,7 @@ const If = c.forwardRef(({ className: e, wrapperClassName: t, ...r }, n) => /* @
|
|
|
13084
13099
|
"table",
|
|
13085
13100
|
{
|
|
13086
13101
|
ref: n,
|
|
13087
|
-
className:
|
|
13102
|
+
className: P("w-full caption-bottom text-sm", e),
|
|
13088
13103
|
...r
|
|
13089
13104
|
}
|
|
13090
13105
|
)
|
|
@@ -13095,7 +13110,7 @@ const Mf = c.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s.jsx(
|
|
|
13095
13110
|
"thead",
|
|
13096
13111
|
{
|
|
13097
13112
|
ref: r,
|
|
13098
|
-
className:
|
|
13113
|
+
className: P(
|
|
13099
13114
|
"sticky top-0 z-10 b-0 [&>tr]:hover:bg-transparent",
|
|
13100
13115
|
e
|
|
13101
13116
|
),
|
|
@@ -13107,7 +13122,7 @@ const Of = c.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s.jsx(
|
|
|
13107
13122
|
"tbody",
|
|
13108
13123
|
{
|
|
13109
13124
|
ref: r,
|
|
13110
|
-
className:
|
|
13125
|
+
className: P(
|
|
13111
13126
|
"[&_tr:last-child]:border-0 [&_tr:first-child]:border-top-0",
|
|
13112
13127
|
e
|
|
13113
13128
|
),
|
|
@@ -13119,7 +13134,7 @@ const VS = c.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s.jsx(
|
|
|
13119
13134
|
"tfoot",
|
|
13120
13135
|
{
|
|
13121
13136
|
ref: r,
|
|
13122
|
-
className:
|
|
13137
|
+
className: P(
|
|
13123
13138
|
"border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",
|
|
13124
13139
|
e
|
|
13125
13140
|
),
|
|
@@ -13131,7 +13146,7 @@ const Nt = c.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s.jsx(
|
|
|
13131
13146
|
"tr",
|
|
13132
13147
|
{
|
|
13133
13148
|
ref: r,
|
|
13134
|
-
className:
|
|
13149
|
+
className: P(
|
|
13135
13150
|
"border-b border-purple-muted-600 transition-colors hover:bg-muted/50 data-[state=selected]:bg-purple-muted-600/30",
|
|
13136
13151
|
e,
|
|
13137
13152
|
{ "cursor-pointer hover:bg-purple-muted-600/20": !!t.onClick }
|
|
@@ -13144,7 +13159,7 @@ const Df = c.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s.jsx(
|
|
|
13144
13159
|
"th",
|
|
13145
13160
|
{
|
|
13146
13161
|
ref: r,
|
|
13147
|
-
className:
|
|
13162
|
+
className: P(
|
|
13148
13163
|
"h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",
|
|
13149
13164
|
e
|
|
13150
13165
|
),
|
|
@@ -13156,7 +13171,7 @@ const Yt = c.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s.jsx(
|
|
|
13156
13171
|
"td",
|
|
13157
13172
|
{
|
|
13158
13173
|
ref: r,
|
|
13159
|
-
className:
|
|
13174
|
+
className: P("p-4 align-middle [&:has([role=checkbox])]:pr-0", e),
|
|
13160
13175
|
...t
|
|
13161
13176
|
}
|
|
13162
13177
|
));
|
|
@@ -13165,7 +13180,7 @@ const BS = c.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s.jsx(
|
|
|
13165
13180
|
"caption",
|
|
13166
13181
|
{
|
|
13167
13182
|
ref: r,
|
|
13168
|
-
className:
|
|
13183
|
+
className: P("mt-4 text-sm text-muted-foreground", e),
|
|
13169
13184
|
...t
|
|
13170
13185
|
}
|
|
13171
13186
|
));
|
|
@@ -13433,7 +13448,7 @@ const GS = ({ title: e = "No results" }) => /* @__PURE__ */ s.jsx("div", { class
|
|
|
13433
13448
|
{
|
|
13434
13449
|
role: "navigation",
|
|
13435
13450
|
"aria-label": "pagination",
|
|
13436
|
-
className:
|
|
13451
|
+
className: P(
|
|
13437
13452
|
"qodo qodo-pagination mx-auto flex w-full justify-center",
|
|
13438
13453
|
e
|
|
13439
13454
|
),
|
|
@@ -13445,12 +13460,12 @@ const Lf = c.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s.jsx(
|
|
|
13445
13460
|
"ul",
|
|
13446
13461
|
{
|
|
13447
13462
|
ref: r,
|
|
13448
|
-
className:
|
|
13463
|
+
className: P("flex flex-row items-center gap-1", e),
|
|
13449
13464
|
...t
|
|
13450
13465
|
}
|
|
13451
13466
|
));
|
|
13452
13467
|
Lf.displayName = "PaginationContent";
|
|
13453
|
-
const br = c.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s.jsx("li", { ref: r, className:
|
|
13468
|
+
const br = c.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s.jsx("li", { ref: r, className: P("", e), ...t }));
|
|
13454
13469
|
br.displayName = "PaginationItem";
|
|
13455
13470
|
const Ff = ({
|
|
13456
13471
|
className: e,
|
|
@@ -13461,7 +13476,7 @@ const Ff = ({
|
|
|
13461
13476
|
"a",
|
|
13462
13477
|
{
|
|
13463
13478
|
"aria-current": t ? "page" : void 0,
|
|
13464
|
-
className:
|
|
13479
|
+
className: P(
|
|
13465
13480
|
tl({
|
|
13466
13481
|
variant: t ? "outline" : "ghost",
|
|
13467
13482
|
size: r
|
|
@@ -13479,7 +13494,7 @@ const Vf = ({
|
|
|
13479
13494
|
"span",
|
|
13480
13495
|
{
|
|
13481
13496
|
"aria-hidden": !0,
|
|
13482
|
-
className:
|
|
13497
|
+
className: P("flex h-9 w-9 items-center justify-center", e),
|
|
13483
13498
|
...t,
|
|
13484
13499
|
children: [
|
|
13485
13500
|
/* @__PURE__ */ s.jsx(Ji, { className: "h-4 w-4" }),
|
|
@@ -13499,19 +13514,19 @@ const qS = ({
|
|
|
13499
13514
|
const i = ln(() => {
|
|
13500
13515
|
const m = "text-purple-muted-300 dark:text-purple-muted-300", b = "hover:bg-purple-muted-600 hover:text-purple-muted-300 dark:hover:bg-purple-muted-600 dark:hover:text-purple-muted-300", v = "bg-purple-muted-600 text-purple-muted-300 dark:bg-purple-muted-600 dark:text-purple-muted-300", h = "border-none flex items-center justify-center w-8 h-8", y = "pointer-events-none opacity-50 cursor-not-allowed";
|
|
13501
13516
|
return {
|
|
13502
|
-
previous:
|
|
13517
|
+
previous: P(
|
|
13503
13518
|
n === 1 || t ? "pointer-events-none opacity-50" : "cursor-pointer",
|
|
13504
13519
|
h,
|
|
13505
13520
|
m,
|
|
13506
13521
|
t && y
|
|
13507
13522
|
),
|
|
13508
|
-
next:
|
|
13523
|
+
next: P(
|
|
13509
13524
|
n === r || t ? "pointer-events-none opacity-50" : "cursor-pointer",
|
|
13510
13525
|
h,
|
|
13511
13526
|
m,
|
|
13512
13527
|
t && y
|
|
13513
13528
|
),
|
|
13514
|
-
link: (x) =>
|
|
13529
|
+
link: (x) => P(
|
|
13515
13530
|
h,
|
|
13516
13531
|
t ? "cursor-not-allowed" : "cursor-pointer",
|
|
13517
13532
|
m,
|
|
@@ -13630,17 +13645,17 @@ const qS = ({
|
|
|
13630
13645
|
loadingRowsCount: p = 8,
|
|
13631
13646
|
activeRowId: g
|
|
13632
13647
|
}) => {
|
|
13633
|
-
const m = e.getVisibleFlatColumns().length, b = e.options.manualPagination && e.options.onPaginationChange, v = e.getRowModel().rows.length === 0, h = e.getCoreRowModel().rows.length === 0 && !o, y = !o && (a || h || v), x = "hover:bg-transparent cursor-default", C = () => e.getHeaderGroups().map((
|
|
13648
|
+
const m = e.getVisibleFlatColumns().length, b = e.options.manualPagination && e.options.onPaginationChange, v = e.getRowModel().rows.length === 0, h = e.getCoreRowModel().rows.length === 0 && !o, y = !o && (a || h || v), x = "hover:bg-transparent cursor-default", C = () => e.getHeaderGroups().map((j) => /* @__PURE__ */ s.jsx(Nt, { children: j.headers.map((k) => /* @__PURE__ */ s.jsx(
|
|
13634
13649
|
Df,
|
|
13635
13650
|
{
|
|
13636
|
-
className:
|
|
13651
|
+
className: P(
|
|
13637
13652
|
"text-[#A1A1AA]",
|
|
13638
13653
|
Ii(k.getSize(), k.column)
|
|
13639
13654
|
),
|
|
13640
13655
|
children: k.isPlaceholder ? void 0 : Ai(k.column.columnDef.header, k.getContext())
|
|
13641
13656
|
},
|
|
13642
13657
|
k.id
|
|
13643
|
-
)) },
|
|
13658
|
+
)) }, j.id)), S = () => o ? /* @__PURE__ */ s.jsx(
|
|
13644
13659
|
WS,
|
|
13645
13660
|
{
|
|
13646
13661
|
rowsCount: p,
|
|
@@ -13658,18 +13673,18 @@ const qS = ({
|
|
|
13658
13673
|
title: l,
|
|
13659
13674
|
description: d
|
|
13660
13675
|
}
|
|
13661
|
-
) }) }) : v ? /* @__PURE__ */ s.jsx(Nt, { className: x, children: /* @__PURE__ */ s.jsx(Yt, { colSpan: m, children: (r == null ? void 0 : r()) || /* @__PURE__ */ s.jsx(GS, { title: u }) }) }) : e.getRowModel().rows.map((
|
|
13676
|
+
) }) }) : v ? /* @__PURE__ */ s.jsx(Nt, { className: x, children: /* @__PURE__ */ s.jsx(Yt, { colSpan: m, children: (r == null ? void 0 : r()) || /* @__PURE__ */ s.jsx(GS, { title: u }) }) }) : e.getRowModel().rows.map((j) => {
|
|
13662
13677
|
var R;
|
|
13663
|
-
const k = (R =
|
|
13678
|
+
const k = (R = j.original) == null ? void 0 : R.id, T = j.getIsSelected() || !!g && g === k;
|
|
13664
13679
|
return /* @__PURE__ */ s.jsx(
|
|
13665
13680
|
Nt,
|
|
13666
13681
|
{
|
|
13667
13682
|
"data-state": T ? "selected" : void 0,
|
|
13668
|
-
onClick: () => i == null ? void 0 : i(
|
|
13669
|
-
children:
|
|
13683
|
+
onClick: () => i == null ? void 0 : i(j.original),
|
|
13684
|
+
children: j.getVisibleCells().map((F) => /* @__PURE__ */ s.jsx(
|
|
13670
13685
|
Yt,
|
|
13671
13686
|
{
|
|
13672
|
-
className:
|
|
13687
|
+
className: P(
|
|
13673
13688
|
"text-[#FAFAFA] whitespace-nowrap",
|
|
13674
13689
|
Ii(F.column.getSize(), F.column)
|
|
13675
13690
|
),
|
|
@@ -13678,15 +13693,15 @@ const qS = ({
|
|
|
13678
13693
|
F.id
|
|
13679
13694
|
))
|
|
13680
13695
|
},
|
|
13681
|
-
|
|
13696
|
+
j.id
|
|
13682
13697
|
);
|
|
13683
13698
|
});
|
|
13684
|
-
return /* @__PURE__ */ s.jsxs("div", { className:
|
|
13699
|
+
return /* @__PURE__ */ s.jsxs("div", { className: P("qodo qodo-table", "flex flex-col h-full w-full"), children: [
|
|
13685
13700
|
/* @__PURE__ */ s.jsx("div", { className: "flex-1 min-h-0", children: /* @__PURE__ */ s.jsxs(
|
|
13686
13701
|
If,
|
|
13687
13702
|
{
|
|
13688
13703
|
wrapperClassName: f,
|
|
13689
|
-
className:
|
|
13704
|
+
className: P({
|
|
13690
13705
|
"h-[100%]": y
|
|
13691
13706
|
}),
|
|
13692
13707
|
children: [
|
|
@@ -13741,7 +13756,7 @@ const qS = ({
|
|
|
13741
13756
|
/* @__PURE__ */ s.jsx(
|
|
13742
13757
|
dg,
|
|
13743
13758
|
{
|
|
13744
|
-
className:
|
|
13759
|
+
className: P("ml-2 h-4 w-4", {
|
|
13745
13760
|
invisible: !n
|
|
13746
13761
|
})
|
|
13747
13762
|
}
|
|
@@ -13864,7 +13879,7 @@ var De = "MenuContent", [rE, Qa] = Lt(De), Kf = c.forwardRef(
|
|
|
13864
13879
|
onDismiss: m,
|
|
13865
13880
|
disableOutsideScroll: b,
|
|
13866
13881
|
...v
|
|
13867
|
-
} = e, h = St(De, r), y = zr(De, r), x = Wr(r), C = Wf(r), S = ZS(r), [
|
|
13882
|
+
} = e, h = St(De, r), y = zr(De, r), x = Wr(r), C = Wf(r), S = ZS(r), [j, k] = c.useState(null), T = c.useRef(null), R = se(t, T, h.onContentChange), F = c.useRef(0), U = c.useRef(""), re = c.useRef(0), te = c.useRef(null), Q = c.useRef("right"), W = c.useRef(0), O = b ? Ir : c.Fragment, _ = b ? { as: aE, allowPinchZoom: !0 } : void 0, M = (I) => {
|
|
13868
13883
|
var A, K;
|
|
13869
13884
|
const V = U.current + I, J = S().filter((ee) => !ee.disabled), N = document.activeElement, B = (A = J.find((ee) => ee.ref.current === N)) == null ? void 0 : A.textValue, Z = J.map((ee) => ee.textValue), z = hE(Z, V, B), $ = (K = J.find((ee) => ee.textValue === z)) == null ? void 0 : K.ref.current;
|
|
13870
13885
|
(function ee(oe) {
|
|
@@ -13932,7 +13947,7 @@ var De = "MenuContent", [rE, Qa] = Lt(De), Kf = c.forwardRef(
|
|
|
13932
13947
|
dir: y.dir,
|
|
13933
13948
|
orientation: "vertical",
|
|
13934
13949
|
loop: n,
|
|
13935
|
-
currentTabStopId:
|
|
13950
|
+
currentTabStopId: j,
|
|
13936
13951
|
onCurrentTabStopIdChange: k,
|
|
13937
13952
|
onEntryFocus: L(d, (I) => {
|
|
13938
13953
|
y.isUsingKeyboardRef.current || I.preventDefault();
|
|
@@ -14535,7 +14550,7 @@ const nR = JE, oR = QE, aR = eR, sR = kp, iR = rR, lR = tR, Fp = c.forwardRef(({
|
|
|
14535
14550
|
$p,
|
|
14536
14551
|
{
|
|
14537
14552
|
ref: o,
|
|
14538
|
-
className:
|
|
14553
|
+
className: P(
|
|
14539
14554
|
"qodo qodo-dropdown-menu-sub-trigger flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none hover:text-[var(--text-interactive-neutral-hover)] hover:bg-[var(--fill-interactive-neutral-hover)] active:bg-[var(--fill-interactive-emphasis-active)] [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
14540
14555
|
t && "pl-8",
|
|
14541
14556
|
e
|
|
@@ -14552,7 +14567,7 @@ const Vp = c.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s.jsx(
|
|
|
14552
14567
|
Lp,
|
|
14553
14568
|
{
|
|
14554
14569
|
ref: r,
|
|
14555
|
-
className:
|
|
14570
|
+
className: P(
|
|
14556
14571
|
"z-50 min-w-[8rem] overflow-hidden cursor-pointer rounded-sm border shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
14557
14572
|
"text-[var(--text-interactive-neutral-idle)] bg-[var(--fill-interactive-neutral-idle)] border-[var(--border-interactive-neutral-idle)] px-1 py-1",
|
|
14558
14573
|
e
|
|
@@ -14566,7 +14581,7 @@ const Bp = c.forwardRef(({ className: e, sideOffset: t = 4, ...r }, n) => /* @__
|
|
|
14566
14581
|
{
|
|
14567
14582
|
ref: n,
|
|
14568
14583
|
sideOffset: t,
|
|
14569
|
-
className:
|
|
14584
|
+
className: P(
|
|
14570
14585
|
"qodo qodo-dropdown-menu-content z-50 min-w-[8rem] overflow-hidden rounded-sm border text-[var(--text-interactive-neutral-idle)] bg-[var(--fill-interactive-neutral-idle)] border-[var(--border-interactive-neutral-idle)] px-1 py-1 ",
|
|
14571
14586
|
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 [&_svg]:text-inherit dark:[&_svg]:text-inherit",
|
|
14572
14587
|
e
|
|
@@ -14579,7 +14594,7 @@ const as = c.forwardRef(({ className: e, inset: t, ...r }, n) => /* @__PURE__ */
|
|
|
14579
14594
|
_p,
|
|
14580
14595
|
{
|
|
14581
14596
|
ref: n,
|
|
14582
|
-
className:
|
|
14597
|
+
className: P(
|
|
14583
14598
|
"w-full qodo qodo-dropdown-menu-item relative flex select-none items-center gap-2 rounded-xs px-2 py-1.5 text-sm outline-none transition-colors focus:bg-[var(--fill-interactive-neutral-hover)] active:bg-[var(--fill-interactive-emphasis-active)] data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0 focus:text-[var(--text-interactive-neutral-hover)] active:text-[var(--text-interactive-emphasis-active)] cursor-pointer data-[disabled]:cursor-default",
|
|
14584
14599
|
t && "pl-8",
|
|
14585
14600
|
e
|
|
@@ -14592,7 +14607,7 @@ const Gp = c.forwardRef(({ className: e, children: t, checked: r, ...n }, o) =>
|
|
|
14592
14607
|
Ip,
|
|
14593
14608
|
{
|
|
14594
14609
|
ref: o,
|
|
14595
|
-
className:
|
|
14610
|
+
className: P(
|
|
14596
14611
|
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:text-[var(--text-interactive-neutral-hover)] active:text-[var(--text-interactive-emphasis-active)] data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-[var(--fill-interactive-neutral-hover)] active:bg-[var(--fill-interactive-emphasis-active)] data-[disabled]:cursor-default",
|
|
14597
14612
|
e
|
|
14598
14613
|
),
|
|
@@ -14609,7 +14624,7 @@ const Wp = c.forwardRef(({ className: e, children: t, ...r }, n) => /* @__PURE__
|
|
|
14609
14624
|
Mp,
|
|
14610
14625
|
{
|
|
14611
14626
|
ref: n,
|
|
14612
|
-
className:
|
|
14627
|
+
className: P(
|
|
14613
14628
|
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-[var(--fill-interactive-neutral-hover)] active:bg-[var(--fill-interactive-emphasis-active)] data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:text-[var(--text-interactive-neutral-hover)] active:text-[var(--text-interactive-emphasis-active)] data-[disabled]:cursor-default",
|
|
14614
14629
|
e
|
|
14615
14630
|
),
|
|
@@ -14625,7 +14640,7 @@ const ss = c.forwardRef(({ className: e, inset: t, ...r }, n) => /* @__PURE__ */
|
|
|
14625
14640
|
Ap,
|
|
14626
14641
|
{
|
|
14627
14642
|
ref: n,
|
|
14628
|
-
className:
|
|
14643
|
+
className: P(
|
|
14629
14644
|
"px-2 py-1.5 text-sm font-semibold",
|
|
14630
14645
|
t && "pl-8",
|
|
14631
14646
|
e
|
|
@@ -14638,7 +14653,7 @@ const Et = c.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s.jsx(
|
|
|
14638
14653
|
Dp,
|
|
14639
14654
|
{
|
|
14640
14655
|
ref: r,
|
|
14641
|
-
className:
|
|
14656
|
+
className: P("-mx-1 my-1 h-px bg-purple-muted-500", e),
|
|
14642
14657
|
...t
|
|
14643
14658
|
}
|
|
14644
14659
|
));
|
|
@@ -14649,7 +14664,7 @@ const zp = ({
|
|
|
14649
14664
|
}) => /* @__PURE__ */ s.jsx(
|
|
14650
14665
|
"span",
|
|
14651
14666
|
{
|
|
14652
|
-
className:
|
|
14667
|
+
className: P(
|
|
14653
14668
|
"ml-auto text-xs tracking-widest [&>svg]:size-4 self-end",
|
|
14654
14669
|
e
|
|
14655
14670
|
),
|
|
@@ -14810,7 +14825,7 @@ const cR = ({ radioItem: e }) => /* @__PURE__ */ s.jsxs(
|
|
|
14810
14825
|
},
|
|
14811
14826
|
!1
|
|
14812
14827
|
);
|
|
14813
|
-
return /* @__PURE__ */ s.jsx("div", { className:
|
|
14828
|
+
return /* @__PURE__ */ s.jsx("div", { className: P("qodo qodo-dropdown"), children: /* @__PURE__ */ s.jsxs(nR, { modal: l, children: [
|
|
14814
14829
|
/* @__PURE__ */ s.jsx(
|
|
14815
14830
|
oR,
|
|
14816
14831
|
{
|
|
@@ -14844,7 +14859,7 @@ const cR = ({ radioItem: e }) => /* @__PURE__ */ s.jsxs(
|
|
|
14844
14859
|
variant: "ghost",
|
|
14845
14860
|
size: "icon",
|
|
14846
14861
|
"aria-label": e,
|
|
14847
|
-
className:
|
|
14862
|
+
className: P("flex items-center justify-center h-4 w-4", t),
|
|
14848
14863
|
...r,
|
|
14849
14864
|
children: /* @__PURE__ */ s.jsx(Ji, { className: "h-4 w-4" })
|
|
14850
14865
|
}
|
|
@@ -14863,7 +14878,7 @@ const cR = ({ radioItem: e }) => /* @__PURE__ */ s.jsxs(
|
|
|
14863
14878
|
triggerElement: /* @__PURE__ */ s.jsx(
|
|
14864
14879
|
t,
|
|
14865
14880
|
{
|
|
14866
|
-
className:
|
|
14881
|
+
className: P(
|
|
14867
14882
|
"flex items-center justify-center",
|
|
14868
14883
|
r == null ? void 0 : r.className
|
|
14869
14884
|
),
|
|
@@ -14901,29 +14916,29 @@ const cR = ({ radioItem: e }) => /* @__PURE__ */ s.jsxs(
|
|
|
14901
14916
|
disableFilterIcon: o = !0,
|
|
14902
14917
|
...a
|
|
14903
14918
|
}) => {
|
|
14904
|
-
const i = r === Di.LARGE ? "pl-12 py-3 pr-4 h-[45px]" : "pl-9 py-1.5 pr-2 h-[33px]", l =
|
|
14919
|
+
const i = r === Di.LARGE ? "pl-12 py-3 pr-4 h-[45px]" : "pl-9 py-1.5 pr-2 h-[33px]", l = P(
|
|
14905
14920
|
"absolute top-1/2 h-4 w-4 -translate-y-1/2",
|
|
14906
14921
|
n ? "text-purple-muted-600" : "text-purple-muted-400"
|
|
14907
|
-
), d =
|
|
14922
|
+
), d = P(
|
|
14908
14923
|
"text-purple-muted-200 dark:border-purple-muted-600 dark:text-purple-muted-200 dark:bg-[#1C1C1C] dark:placeholder:text-purple-muted-400 pl-9",
|
|
14909
14924
|
{ "pr-9": !o }
|
|
14910
14925
|
);
|
|
14911
14926
|
return /* @__PURE__ */ s.jsxs(
|
|
14912
14927
|
"div",
|
|
14913
14928
|
{
|
|
14914
|
-
className:
|
|
14929
|
+
className: P("qodo qodo-search-input", "relative", e),
|
|
14915
14930
|
children: [
|
|
14916
|
-
/* @__PURE__ */ s.jsx(el, { className:
|
|
14931
|
+
/* @__PURE__ */ s.jsx(el, { className: P(l, "left-3") }),
|
|
14917
14932
|
/* @__PURE__ */ s.jsx(
|
|
14918
14933
|
Nn,
|
|
14919
14934
|
{
|
|
14920
|
-
className:
|
|
14935
|
+
className: P(i, d, t),
|
|
14921
14936
|
disabled: n,
|
|
14922
14937
|
...a,
|
|
14923
14938
|
...SR
|
|
14924
14939
|
}
|
|
14925
14940
|
),
|
|
14926
|
-
!o && /* @__PURE__ */ s.jsx(Tg, { className:
|
|
14941
|
+
!o && /* @__PURE__ */ s.jsx(Tg, { className: P(l, "right-3") })
|
|
14927
14942
|
]
|
|
14928
14943
|
}
|
|
14929
14944
|
);
|
|
@@ -15140,7 +15155,7 @@ const cR = ({ radioItem: e }) => /* @__PURE__ */ s.jsxs(
|
|
|
15140
15155
|
invalidEmailError: d = "Invalid email",
|
|
15141
15156
|
invalidDomainError: u = "Email domain is not allowed"
|
|
15142
15157
|
}) => {
|
|
15143
|
-
const f = be(null), p = be(null), [g, m] = Te(""), [b, v] = Te(!1), { emails: h, setEmails: y, addTokens: x, removeToken: C, clearAll: S, notify:
|
|
15158
|
+
const f = be(null), p = be(null), [g, m] = Te(""), [b, v] = Te(!1), { emails: h, setEmails: y, addTokens: x, removeToken: C, clearAll: S, notify: j } = kR({ onChange: e, organization: o }), k = TR({
|
|
15144
15159
|
draft: g,
|
|
15145
15160
|
setDraft: m,
|
|
15146
15161
|
addTokens: x,
|
|
@@ -15149,7 +15164,7 @@ const cR = ({ radioItem: e }) => /* @__PURE__ */ s.jsxs(
|
|
|
15149
15164
|
clearAll: S,
|
|
15150
15165
|
emails: h,
|
|
15151
15166
|
setEmails: y,
|
|
15152
|
-
notify:
|
|
15167
|
+
notify: j
|
|
15153
15168
|
}), T = () => {
|
|
15154
15169
|
var J;
|
|
15155
15170
|
const V = ((J = o == null ? void 0 : o.domains) == null ? void 0 : J[0]) || "example.com";
|
|
@@ -15179,16 +15194,16 @@ const cR = ({ radioItem: e }) => /* @__PURE__ */ s.jsxs(
|
|
|
15179
15194
|
J && ((N = f.current) != null && N.contains(J)) || g.trim() && (x(g), m(""));
|
|
15180
15195
|
},
|
|
15181
15196
|
[g, x]
|
|
15182
|
-
), W = h.length > 0, O = !W && g.length === 0, _ = W || g.length > 0, M =
|
|
15197
|
+
), W = h.length > 0, O = !W && g.length === 0, _ = W || g.length > 0, M = P(
|
|
15183
15198
|
"bg-transparent text-sm outline-none border-0 p-0 h-6 shadow-none focus-visible:ring-0 whitespace-nowrap text-purple-muted-200 placeholder:text-purple-muted-400",
|
|
15184
15199
|
W ? "flex-none shrink-0 overflow-x-auto overflow-y-hidden no-scrollbar" : "flex-1 !min-w-full overflow-hidden",
|
|
15185
15200
|
{ "opacity-50 cursor-not-allowed": t },
|
|
15186
15201
|
a
|
|
15187
|
-
), E =
|
|
15202
|
+
), E = P(
|
|
15188
15203
|
"inline-flex items-center gap-1 no-scrollbar",
|
|
15189
15204
|
W ? "w-max" : "w-full",
|
|
15190
15205
|
i
|
|
15191
|
-
), I =
|
|
15206
|
+
), I = P(
|
|
15192
15207
|
"qodo qodo-email-chips-input",
|
|
15193
15208
|
"relative w-full max-w-full min-w-0 overflow-hidden rounded-md border pl-9 pr-14 py-2 pl-9 pr-14 py-2 focus-within:ring-1 border-purple-muted-500 dark:bg-purple-muted-800 focus-within:ring-purple-muted-400",
|
|
15194
15209
|
l
|
|
@@ -15265,20 +15280,20 @@ function MP({
|
|
|
15265
15280
|
icon: d,
|
|
15266
15281
|
iconClassName: u
|
|
15267
15282
|
}) {
|
|
15268
|
-
const f =
|
|
15283
|
+
const f = P(
|
|
15269
15284
|
"px-6 py-4 gap-1 flex flex-row items-center gap-4",
|
|
15270
15285
|
"border-[var(--border-panel-neutral)] rounded-md fill-[var(--fill-panel-neutral)]",
|
|
15271
15286
|
{ "px-4": !!d },
|
|
15272
15287
|
l
|
|
15273
|
-
), p =
|
|
15288
|
+
), p = P(
|
|
15274
15289
|
"p-0 m-0 text-xs",
|
|
15275
15290
|
"text-[var(--color-text-bg-neutral-mild)] dark:text-[var(--color-text-bg-neutral-mild)] font-normal",
|
|
15276
15291
|
o
|
|
15277
|
-
), g =
|
|
15292
|
+
), g = P(
|
|
15278
15293
|
"w-8 h-8 flex items-center justify-center",
|
|
15279
15294
|
"bg-purple-muted-600 rounded-full p-2.5",
|
|
15280
15295
|
u
|
|
15281
|
-
), m =
|
|
15296
|
+
), m = P(
|
|
15282
15297
|
"text-xl font-medium p-0 m-0 leading-4",
|
|
15283
15298
|
{
|
|
15284
15299
|
"text-muted-foreground dark:text-white": i === tn.DEFAULT,
|
|
@@ -15364,7 +15379,7 @@ export {
|
|
|
15364
15379
|
cP as ToggleGroupItem,
|
|
15365
15380
|
no as Tooltip,
|
|
15366
15381
|
$R as borderRadius,
|
|
15367
|
-
|
|
15382
|
+
P as cn,
|
|
15368
15383
|
OR as colors,
|
|
15369
15384
|
DR as spacing,
|
|
15370
15385
|
LR as typography,
|