@altimateai/ui-components 0.0.68-beta.7 → 0.0.69-beta.1
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/CoachForm.js
CHANGED
|
@@ -37002,14 +37002,14 @@ const V$ = /* @__PURE__ */ oh(Y$), m3 = ({ artifacts: t }) => {
|
|
|
37002
37002
|
handleSavePrompt: r,
|
|
37003
37003
|
showSavePromptButton: i
|
|
37004
37004
|
}) => {
|
|
37005
|
-
const a = t.role === "assistant", { currentSessionId: s, loadingState: o, urls: l } = We();
|
|
37005
|
+
const a = t.role === "assistant", { currentSessionId: s, loadingState: o, urls: l, classNames: u = {} } = We();
|
|
37006
37006
|
return /* @__PURE__ */ E.jsxs(Tt, { gap: "sm", direction: "column", children: [
|
|
37007
37007
|
/* @__PURE__ */ E.jsx(Tt, { gap: "sm", justify: a ? "start" : "end", children: t.attachments && t.attachments.length > 0 && /* @__PURE__ */ E.jsx("div", { id: `message-${t.id}-attachments`, children: /* @__PURE__ */ E.jsx(yH, { attachments: t.attachments }) }) }),
|
|
37008
37008
|
/* @__PURE__ */ E.jsxs(
|
|
37009
37009
|
"div",
|
|
37010
37010
|
{
|
|
37011
37011
|
id: `message-${t.id}`,
|
|
37012
|
-
className: `al-flex al-items-start al-gap-2 ${a ? "" : "al-justify-end"}`,
|
|
37012
|
+
className: `al-flex al-items-start al-gap-2 ${a ? "" : "al-justify-end"} ${u.messageItem}`,
|
|
37013
37013
|
role: "article",
|
|
37014
37014
|
"aria-label": `${a ? "Assistant" : "User"} message`,
|
|
37015
37015
|
children: [
|
package/dist/Stack.js
CHANGED
|
@@ -236,16 +236,16 @@ function Ls(e, ...t) {
|
|
|
236
236
|
const _ = (e) => {
|
|
237
237
|
const t = (n) => n[e] || [];
|
|
238
238
|
return t.isThemeGetter = !0, t;
|
|
239
|
-
}, nr = /^\[(?:([a-z-]+):)?(.+)\]$/i, Fs = /^\d+\/\d+$/, $s = /* @__PURE__ */ new Set(["px", "full", "screen"]), Ws = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Vs = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,
|
|
239
|
+
}, nr = /^\[(?:([a-z-]+):)?(.+)\]$/i, Fs = /^\d+\/\d+$/, $s = /* @__PURE__ */ new Set(["px", "full", "screen"]), Ws = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Vs = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, zs = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, Bs = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Hs = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ne = (e) => Re(e) || $s.has(e) || Fs.test(e), ie = (e) => ke(e, "length", Qs), Re = (e) => !!e && !Number.isNaN(Number(e)), vt = (e) => ke(e, "number", Re), Le = (e) => !!e && Number.isInteger(Number(e)), Gs = (e) => e.endsWith("%") && Re(e.slice(0, -1)), N = (e) => nr.test(e), le = (e) => Ws.test(e), Us = /* @__PURE__ */ new Set(["length", "size", "percentage"]), Ks = (e) => ke(e, Us, rr), Ys = (e) => ke(e, "position", rr), Xs = /* @__PURE__ */ new Set(["image", "url"]), qs = (e) => ke(e, Xs, ea), Zs = (e) => ke(e, "", Js), Fe = () => !0, ke = (e, t, n) => {
|
|
240
240
|
const r = nr.exec(e);
|
|
241
241
|
return r ? r[1] ? typeof t == "string" ? r[1] === t : t.has(r[1]) : n(r[2]) : !1;
|
|
242
242
|
}, Qs = (e) => (
|
|
243
243
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
244
244
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
245
245
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
246
|
-
Vs.test(e) && !
|
|
247
|
-
), rr = () => !1, Js = (e) =>
|
|
248
|
-
const e = _("colors"), t = _("spacing"), n = _("blur"), r = _("brightness"), o = _("borderColor"), s = _("borderRadius"), a = _("borderSpacing"), i = _("borderWidth"), c = _("contrast"), u = _("grayscale"), d = _("hueRotate"), f = _("invert"), h = _("gap"), m = _("gradientColorStops"), v = _("gradientColorStopPositions"), p = _("inset"), b = _("margin"), y = _("opacity"), x = _("padding"), C = _("saturate"), w = _("scale"), E = _("sepia"), P = _("skew"), R = _("space"), S = _("translate"), I = () => ["auto", "contain", "none"], D = () => ["auto", "hidden", "clip", "visible", "scroll"], F = () => ["auto", N, t], A = () => [N, t], L = () => ["", ne, ie], j = () => ["auto", Re, N],
|
|
246
|
+
Vs.test(e) && !zs.test(e)
|
|
247
|
+
), rr = () => !1, Js = (e) => Bs.test(e), ea = (e) => Hs.test(e), ta = () => {
|
|
248
|
+
const e = _("colors"), t = _("spacing"), n = _("blur"), r = _("brightness"), o = _("borderColor"), s = _("borderRadius"), a = _("borderSpacing"), i = _("borderWidth"), c = _("contrast"), u = _("grayscale"), d = _("hueRotate"), f = _("invert"), h = _("gap"), m = _("gradientColorStops"), v = _("gradientColorStopPositions"), p = _("inset"), b = _("margin"), y = _("opacity"), x = _("padding"), C = _("saturate"), w = _("scale"), E = _("sepia"), P = _("skew"), R = _("space"), S = _("translate"), I = () => ["auto", "contain", "none"], D = () => ["auto", "hidden", "clip", "visible", "scroll"], F = () => ["auto", N, t], A = () => [N, t], L = () => ["", ne, ie], j = () => ["auto", Re, N], B = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], T = () => ["solid", "dashed", "dotted", "double", "none"], V = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], O = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], W = () => ["", "0", N], U = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], G = () => [Re, N];
|
|
249
249
|
return {
|
|
250
250
|
cacheSize: 500,
|
|
251
251
|
separator: ":",
|
|
@@ -368,7 +368,7 @@ const _ = (e) => {
|
|
|
368
368
|
* @see https://tailwindcss.com/docs/object-position
|
|
369
369
|
*/
|
|
370
370
|
"object-position": [{
|
|
371
|
-
object: [...
|
|
371
|
+
object: [...B(), N]
|
|
372
372
|
}],
|
|
373
373
|
/**
|
|
374
374
|
* Overflow
|
|
@@ -1177,7 +1177,7 @@ const _ = (e) => {
|
|
|
1177
1177
|
* @see https://tailwindcss.com/docs/background-position
|
|
1178
1178
|
*/
|
|
1179
1179
|
"bg-position": [{
|
|
1180
|
-
bg: [...
|
|
1180
|
+
bg: [...B(), Ys]
|
|
1181
1181
|
}],
|
|
1182
1182
|
/**
|
|
1183
1183
|
* Background Repeat
|
|
@@ -2400,7 +2400,7 @@ function De(...e) {
|
|
|
2400
2400
|
};
|
|
2401
2401
|
};
|
|
2402
2402
|
}
|
|
2403
|
-
function
|
|
2403
|
+
function z(...e) {
|
|
2404
2404
|
return l.useCallback(De(...e), e);
|
|
2405
2405
|
}
|
|
2406
2406
|
function da(e, t) {
|
|
@@ -2567,7 +2567,7 @@ var xa = "DismissableLayer", Tt = "dismissableLayer.update", wa = "dismissableLa
|
|
|
2567
2567
|
onInteractOutside: a,
|
|
2568
2568
|
onDismiss: i,
|
|
2569
2569
|
...c
|
|
2570
|
-
} = e, u = l.useContext(sr), [d, f] = l.useState(null), h = (d == null ? void 0 : d.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, m] = l.useState({}), v =
|
|
2570
|
+
} = e, u = l.useContext(sr), [d, f] = l.useState(null), h = (d == null ? void 0 : d.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, m] = l.useState({}), v = z(t, (R) => f(R)), p = Array.from(u.layers), [b] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), y = p.indexOf(b), x = d ? p.indexOf(d) : -1, C = u.layersWithOutsidePointerEventsDisabled.size > 0, w = x >= y, E = Ra((R) => {
|
|
2571
2571
|
const S = R.target, I = [...u.branches].some((D) => D.contains(S));
|
|
2572
2572
|
!w || I || (o == null || o(R), a == null || a(R), R.defaultPrevented || i == null || i());
|
|
2573
2573
|
}, h), P = Pa((R) => {
|
|
@@ -2607,7 +2607,7 @@ var xa = "DismissableLayer", Tt = "dismissableLayer.update", wa = "dismissableLa
|
|
|
2607
2607
|
);
|
|
2608
2608
|
Ve.displayName = xa;
|
|
2609
2609
|
var Ea = "DismissableLayerBranch", ar = l.forwardRef((e, t) => {
|
|
2610
|
-
const n = l.useContext(sr), r = l.useRef(null), o =
|
|
2610
|
+
const n = l.useContext(sr), r = l.useRef(null), o = z(t, r);
|
|
2611
2611
|
return l.useEffect(() => {
|
|
2612
2612
|
const s = r.current;
|
|
2613
2613
|
if (s)
|
|
@@ -2961,12 +2961,12 @@ const La = (e) => ({
|
|
|
2961
2961
|
}, m = Yt(o), v = Kt(m), p = await a.getDimensions(u), b = m === "y", y = b ? "top" : "left", x = b ? "bottom" : "right", C = b ? "clientHeight" : "clientWidth", w = s.reference[v] + s.reference[m] - h[m] - s.floating[v], E = h[m] - s.reference[m], P = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(u));
|
|
2962
2962
|
let R = P ? P[C] : 0;
|
|
2963
2963
|
(!R || !await (a.isElement == null ? void 0 : a.isElement(P))) && (R = i.floating[C] || s.floating[v]);
|
|
2964
|
-
const S = w / 2 - E / 2, I = R / 2 - p[v] / 2 - 1, D = fe(f[y], I), F = fe(f[x], I), A = D, L = R - p[v] - F, j = R / 2 - p[v] / 2 + S,
|
|
2964
|
+
const S = w / 2 - E / 2, I = R / 2 - p[v] / 2 - 1, D = fe(f[y], I), F = fe(f[x], I), A = D, L = R - p[v] - F, j = R / 2 - p[v] / 2 + S, B = kt(A, j, L), T = !c.arrow && je(o) != null && j !== B && s.reference[v] / 2 - (j < A ? D : F) - p[v] / 2 < 0, V = T ? j < A ? j - A : j - L : 0;
|
|
2965
2965
|
return {
|
|
2966
2966
|
[m]: h[m] + V,
|
|
2967
2967
|
data: {
|
|
2968
|
-
[m]:
|
|
2969
|
-
centerOffset: j -
|
|
2968
|
+
[m]: B,
|
|
2969
|
+
centerOffset: j - B - V,
|
|
2970
2970
|
...T && {
|
|
2971
2971
|
alignmentOffset: V
|
|
2972
2972
|
}
|
|
@@ -3011,15 +3011,15 @@ const La = (e) => ({
|
|
|
3011
3011
|
overflows: I
|
|
3012
3012
|
}], !I.every((j) => j <= 0)) {
|
|
3013
3013
|
var F, A;
|
|
3014
|
-
const j = (((F = s.flip) == null ? void 0 : F.index) || 0) + 1,
|
|
3015
|
-
if (
|
|
3014
|
+
const j = (((F = s.flip) == null ? void 0 : F.index) || 0) + 1, B = R[j];
|
|
3015
|
+
if (B)
|
|
3016
3016
|
return {
|
|
3017
3017
|
data: {
|
|
3018
3018
|
index: j,
|
|
3019
3019
|
overflows: D
|
|
3020
3020
|
},
|
|
3021
3021
|
reset: {
|
|
3022
|
-
placement:
|
|
3022
|
+
placement: B
|
|
3023
3023
|
}
|
|
3024
3024
|
};
|
|
3025
3025
|
let T = (A = D.filter((V) => V.overflows[0] <= 0).sort((V, O) => V.overflows[1] - O.overflows[1])[0]) == null ? void 0 : A.placement;
|
|
@@ -3156,7 +3156,7 @@ const Va = function(e) {
|
|
|
3156
3156
|
};
|
|
3157
3157
|
}
|
|
3158
3158
|
};
|
|
3159
|
-
},
|
|
3159
|
+
}, za = function(e) {
|
|
3160
3160
|
return e === void 0 && (e = {}), {
|
|
3161
3161
|
name: "shift",
|
|
3162
3162
|
options: e,
|
|
@@ -3212,7 +3212,7 @@ const Va = function(e) {
|
|
|
3212
3212
|
};
|
|
3213
3213
|
}
|
|
3214
3214
|
};
|
|
3215
|
-
},
|
|
3215
|
+
}, Ba = function(e) {
|
|
3216
3216
|
return e === void 0 && (e = {}), {
|
|
3217
3217
|
options: e,
|
|
3218
3218
|
fn(t) {
|
|
@@ -3321,7 +3321,7 @@ function J(e) {
|
|
|
3321
3321
|
function In(e) {
|
|
3322
3322
|
return !it() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Y(e).ShadowRoot;
|
|
3323
3323
|
}
|
|
3324
|
-
function
|
|
3324
|
+
function ze(e) {
|
|
3325
3325
|
const {
|
|
3326
3326
|
overflow: t,
|
|
3327
3327
|
overflowX: n,
|
|
@@ -3389,7 +3389,7 @@ function ge(e) {
|
|
|
3389
3389
|
}
|
|
3390
3390
|
function ur(e) {
|
|
3391
3391
|
const t = ge(e);
|
|
3392
|
-
return Ne(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : J(t) &&
|
|
3392
|
+
return Ne(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : J(t) && ze(t) ? t : ur(t);
|
|
3393
3393
|
}
|
|
3394
3394
|
function We(e, t, n) {
|
|
3395
3395
|
var r;
|
|
@@ -3397,7 +3397,7 @@ function We(e, t, n) {
|
|
|
3397
3397
|
const o = ur(e), s = o === ((r = e.ownerDocument) == null ? void 0 : r.body), a = Y(o);
|
|
3398
3398
|
if (s) {
|
|
3399
3399
|
const i = jt(a);
|
|
3400
|
-
return t.concat(a, a.visualViewport || [],
|
|
3400
|
+
return t.concat(a, a.visualViewport || [], ze(o) ? o : [], i && n ? We(i) : []);
|
|
3401
3401
|
}
|
|
3402
3402
|
return t.concat(o, We(o, [], n));
|
|
3403
3403
|
}
|
|
@@ -3480,7 +3480,7 @@ function Xa(e) {
|
|
|
3480
3480
|
scrollTop: 0
|
|
3481
3481
|
}, u = pe(1);
|
|
3482
3482
|
const d = pe(0), f = J(r);
|
|
3483
|
-
if ((f || !f && !s) && ((Ie(r) !== "body" ||
|
|
3483
|
+
if ((f || !f && !s) && ((Ie(r) !== "body" || ze(a)) && (c = ct(r)), J(r))) {
|
|
3484
3484
|
const h = ye(r);
|
|
3485
3485
|
u = Se(r), d.x = h.x + r.clientLeft, d.y = h.y + r.clientTop;
|
|
3486
3486
|
}
|
|
@@ -3564,7 +3564,7 @@ function ei(e, t) {
|
|
|
3564
3564
|
let a = s ? ge(e) : e;
|
|
3565
3565
|
for (; X(a) && !Ne(a); ) {
|
|
3566
3566
|
const i = q(a), c = Xt(a);
|
|
3567
|
-
!c && i.position === "fixed" && (o = null), (s ? !c && !o : !c && i.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) ||
|
|
3567
|
+
!c && i.position === "fixed" && (o = null), (s ? !c && !o : !c && i.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || ze(a) && !c && pr(e, a)) ? r = r.filter((d) => d !== a) : o = i, a = ge(a);
|
|
3568
3568
|
}
|
|
3569
3569
|
return t.set(e, r), r;
|
|
3570
3570
|
}
|
|
@@ -3604,7 +3604,7 @@ function ri(e, t, n) {
|
|
|
3604
3604
|
};
|
|
3605
3605
|
const c = pe(0);
|
|
3606
3606
|
if (r || !r && !s)
|
|
3607
|
-
if ((Ie(t) !== "body" ||
|
|
3607
|
+
if ((Ie(t) !== "body" || ze(o)) && (i = ct(t)), r) {
|
|
3608
3608
|
const m = ye(t, !0, s, t);
|
|
3609
3609
|
c.x = m.x + t.clientLeft, c.y = m.y + t.clientTop;
|
|
3610
3610
|
} else o && (c.x = It(o));
|
|
@@ -3760,7 +3760,7 @@ function li(e, t, n, r) {
|
|
|
3760
3760
|
}), f == null || f(), (y = m) == null || y.disconnect(), m = null, c && cancelAnimationFrame(v);
|
|
3761
3761
|
};
|
|
3762
3762
|
}
|
|
3763
|
-
const ci = Va, ui =
|
|
3763
|
+
const ci = Va, ui = za, di = Fa, fi = Ha, pi = $a, Ln = La, mi = Ba, gi = (e, t, n) => {
|
|
3764
3764
|
const r = /* @__PURE__ */ new Map(), o = {
|
|
3765
3765
|
platform: ai,
|
|
3766
3766
|
...n
|
|
@@ -3882,7 +3882,7 @@ function hi(e) {
|
|
|
3882
3882
|
L();
|
|
3883
3883
|
}
|
|
3884
3884
|
}, [w, E, L, D, I]);
|
|
3885
|
-
const
|
|
3885
|
+
const B = l.useMemo(() => ({
|
|
3886
3886
|
reference: P,
|
|
3887
3887
|
floating: R,
|
|
3888
3888
|
setReference: x,
|
|
@@ -3914,10 +3914,10 @@ function hi(e) {
|
|
|
3914
3914
|
return l.useMemo(() => ({
|
|
3915
3915
|
...d,
|
|
3916
3916
|
update: L,
|
|
3917
|
-
refs:
|
|
3917
|
+
refs: B,
|
|
3918
3918
|
elements: T,
|
|
3919
3919
|
floatingStyles: V
|
|
3920
|
-
}), [d, L,
|
|
3920
|
+
}), [d, L, B, T, V]);
|
|
3921
3921
|
}
|
|
3922
3922
|
const vi = (e) => {
|
|
3923
3923
|
function t(n) {
|
|
@@ -4008,7 +4008,7 @@ var Jt = "Popper", [vr, ut] = ae(Jt), [Ai, br] = vr(Jt), yr = (e) => {
|
|
|
4008
4008
|
yr.displayName = Jt;
|
|
4009
4009
|
var xr = "PopperAnchor", wr = l.forwardRef(
|
|
4010
4010
|
(e, t) => {
|
|
4011
|
-
const { __scopePopper: n, virtualRef: r, ...o } = e, s = br(xr, n), a = l.useRef(null), i =
|
|
4011
|
+
const { __scopePopper: n, virtualRef: r, ...o } = e, s = br(xr, n), a = l.useRef(null), i = z(t, a);
|
|
4012
4012
|
return l.useEffect(() => {
|
|
4013
4013
|
s.onAnchorChange((r == null ? void 0 : r.current) || a.current);
|
|
4014
4014
|
}), r ? null : /* @__PURE__ */ g.jsx($.div, { ...o, ref: i });
|
|
@@ -4033,12 +4033,12 @@ var en = "PopperContent", [Ni, Oi] = vr(en), Cr = l.forwardRef(
|
|
|
4033
4033
|
updatePositionStrategy: m = "optimized",
|
|
4034
4034
|
onPlaced: v,
|
|
4035
4035
|
...p
|
|
4036
|
-
} = e, b = br(en, n), [y, x] = l.useState(null), C =
|
|
4036
|
+
} = e, b = br(en, n), [y, x] = l.useState(null), C = z(t, (_e) => x(_e)), [w, E] = l.useState(null), P = Qt(w), R = (P == null ? void 0 : P.width) ?? 0, S = (P == null ? void 0 : P.height) ?? 0, I = r + (s !== "center" ? "-" + s : ""), D = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, F = Array.isArray(u) ? u : [u], A = F.length > 0, L = {
|
|
4037
4037
|
padding: D,
|
|
4038
4038
|
boundary: F.filter(ki),
|
|
4039
4039
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
4040
4040
|
altBoundary: A
|
|
4041
|
-
}, { refs: j, floatingStyles:
|
|
4041
|
+
}, { refs: j, floatingStyles: B, placement: T, isPositioned: V, middlewareData: O } = hi({
|
|
4042
4042
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
4043
4043
|
strategy: "fixed",
|
|
4044
4044
|
placement: I,
|
|
@@ -4081,8 +4081,8 @@ var en = "PopperContent", [Ni, Oi] = vr(en), Cr = l.forwardRef(
|
|
|
4081
4081
|
ref: j.setFloating,
|
|
4082
4082
|
"data-radix-popper-content-wrapper": "",
|
|
4083
4083
|
style: {
|
|
4084
|
-
...
|
|
4085
|
-
transform: V ?
|
|
4084
|
+
...B,
|
|
4085
|
+
transform: V ? B.transform : "translate(0, -200%)",
|
|
4086
4086
|
// keep off the page when measuring
|
|
4087
4087
|
minWidth: "max-content",
|
|
4088
4088
|
zIndex: ps,
|
|
@@ -4210,7 +4210,7 @@ function Ii(e, t) {
|
|
|
4210
4210
|
return l.useReducer((n, r) => t[n][r] ?? n, e);
|
|
4211
4211
|
}
|
|
4212
4212
|
var te = (e) => {
|
|
4213
|
-
const { present: t, children: n } = e, r = Mi(t), o = typeof n == "function" ? n({ present: r.isPresent }) : l.Children.only(n), s =
|
|
4213
|
+
const { present: t, children: n } = e, r = Mi(t), o = typeof n == "function" ? n({ present: r.isPresent }) : l.Children.only(n), s = z(r.ref, _i(o));
|
|
4214
4214
|
return typeof n == "function" || r.isPresent ? l.cloneElement(o, { ref: s }) : null;
|
|
4215
4215
|
};
|
|
4216
4216
|
te.displayName = "Presence";
|
|
@@ -4339,7 +4339,7 @@ function Vi({
|
|
|
4339
4339
|
o.current !== r && (s(r), o.current = r);
|
|
4340
4340
|
}, [r, o, s]), n;
|
|
4341
4341
|
}
|
|
4342
|
-
var
|
|
4342
|
+
var zi = "VisuallyHidden", Tr = l.forwardRef(
|
|
4343
4343
|
(e, t) => /* @__PURE__ */ g.jsx(
|
|
4344
4344
|
$.span,
|
|
4345
4345
|
{
|
|
@@ -4362,8 +4362,8 @@ var Bi = "VisuallyHidden", Tr = l.forwardRef(
|
|
|
4362
4362
|
}
|
|
4363
4363
|
)
|
|
4364
4364
|
);
|
|
4365
|
-
Tr.displayName =
|
|
4366
|
-
var
|
|
4365
|
+
Tr.displayName = zi;
|
|
4366
|
+
var Bi = Tr, [ft, Qu] = ae("Tooltip", [
|
|
4367
4367
|
ut
|
|
4368
4368
|
]), pt = ut(), kr = "TooltipProvider", Hi = 700, _t = "tooltip.open", [Gi, nn] = ft(kr), Dr = (e) => {
|
|
4369
4369
|
const {
|
|
@@ -4401,7 +4401,7 @@ var zi = Tr, [ft, Qu] = ae("Tooltip", [
|
|
|
4401
4401
|
);
|
|
4402
4402
|
};
|
|
4403
4403
|
Dr.displayName = kr;
|
|
4404
|
-
var mt = "Tooltip", [Ui,
|
|
4404
|
+
var mt = "Tooltip", [Ui, Be] = ft(mt), jr = (e) => {
|
|
4405
4405
|
const {
|
|
4406
4406
|
__scopeTooltip: t,
|
|
4407
4407
|
children: n,
|
|
@@ -4452,7 +4452,7 @@ var mt = "Tooltip", [Ui, ze] = ft(mt), jr = (e) => {
|
|
|
4452
4452
|
jr.displayName = mt;
|
|
4453
4453
|
var Lt = "TooltipTrigger", Ir = l.forwardRef(
|
|
4454
4454
|
(e, t) => {
|
|
4455
|
-
const { __scopeTooltip: n, ...r } = e, o =
|
|
4455
|
+
const { __scopeTooltip: n, ...r } = e, o = Be(Lt, n), s = nn(Lt, n), a = pt(n), i = l.useRef(null), c = z(t, i, o.onTriggerChange), u = l.useRef(!1), d = l.useRef(!1), f = l.useCallback(() => u.current = !1, []);
|
|
4456
4456
|
return l.useEffect(() => () => document.removeEventListener("pointerup", f), [f]), /* @__PURE__ */ g.jsx(tn, { asChild: !0, ...a, children: /* @__PURE__ */ g.jsx(
|
|
4457
4457
|
$.button,
|
|
4458
4458
|
{
|
|
@@ -4482,17 +4482,17 @@ Ir.displayName = Lt;
|
|
|
4482
4482
|
var rn = "TooltipPortal", [Ki, Yi] = ft(rn, {
|
|
4483
4483
|
forceMount: void 0
|
|
4484
4484
|
}), Mr = (e) => {
|
|
4485
|
-
const { __scopeTooltip: t, forceMount: n, children: r, container: o } = e, s =
|
|
4485
|
+
const { __scopeTooltip: t, forceMount: n, children: r, container: o } = e, s = Be(rn, t);
|
|
4486
4486
|
return /* @__PURE__ */ g.jsx(Ki, { scope: t, forceMount: n, children: /* @__PURE__ */ g.jsx(te, { present: n || s.open, children: /* @__PURE__ */ g.jsx(dt, { asChild: !0, container: o, children: r }) }) });
|
|
4487
4487
|
};
|
|
4488
4488
|
Mr.displayName = rn;
|
|
4489
4489
|
var Oe = "TooltipContent", _r = l.forwardRef(
|
|
4490
4490
|
(e, t) => {
|
|
4491
|
-
const n = Yi(Oe, e.__scopeTooltip), { forceMount: r = n.forceMount, side: o = "top", ...s } = e, a =
|
|
4491
|
+
const n = Yi(Oe, e.__scopeTooltip), { forceMount: r = n.forceMount, side: o = "top", ...s } = e, a = Be(Oe, e.__scopeTooltip);
|
|
4492
4492
|
return /* @__PURE__ */ g.jsx(te, { present: r || a.open, children: a.disableHoverableContent ? /* @__PURE__ */ g.jsx(Lr, { side: o, ...s, ref: t }) : /* @__PURE__ */ g.jsx(Xi, { side: o, ...s, ref: t }) });
|
|
4493
4493
|
}
|
|
4494
4494
|
), Xi = l.forwardRef((e, t) => {
|
|
4495
|
-
const n =
|
|
4495
|
+
const n = Be(Oe, e.__scopeTooltip), r = nn(Oe, e.__scopeTooltip), o = l.useRef(null), s = z(t, o), [a, i] = l.useState(null), { trigger: c, onClose: u } = n, d = o.current, { onPointerInTransitChange: f } = r, h = l.useCallback(() => {
|
|
4496
4496
|
i(null), f(!1);
|
|
4497
4497
|
}, [f]), m = l.useCallback(
|
|
4498
4498
|
(v, p) => {
|
|
@@ -4526,7 +4526,7 @@ var Oe = "TooltipContent", _r = l.forwardRef(
|
|
|
4526
4526
|
onEscapeKeyDown: s,
|
|
4527
4527
|
onPointerDownOutside: a,
|
|
4528
4528
|
...i
|
|
4529
|
-
} = e, c =
|
|
4529
|
+
} = e, c = Be(Oe, n), u = pt(n), { onClose: d } = c;
|
|
4530
4530
|
return l.useEffect(() => (document.addEventListener(_t, d), () => document.removeEventListener(_t, d)), [d]), l.useEffect(() => {
|
|
4531
4531
|
if (c.trigger) {
|
|
4532
4532
|
const f = (h) => {
|
|
@@ -4561,7 +4561,7 @@ var Oe = "TooltipContent", _r = l.forwardRef(
|
|
|
4561
4561
|
},
|
|
4562
4562
|
children: [
|
|
4563
4563
|
/* @__PURE__ */ g.jsx(Or, { children: r }),
|
|
4564
|
-
/* @__PURE__ */ g.jsx(qi, { scope: n, isInside: !0, children: /* @__PURE__ */ g.jsx(
|
|
4564
|
+
/* @__PURE__ */ g.jsx(qi, { scope: n, isInside: !0, children: /* @__PURE__ */ g.jsx(Bi, { id: c.contentId, role: "tooltip", children: o || r }) })
|
|
4565
4565
|
]
|
|
4566
4566
|
}
|
|
4567
4567
|
)
|
|
@@ -4738,7 +4738,7 @@ function Vr(e) {
|
|
|
4738
4738
|
const t = l.useRef({ value: e, previous: e });
|
|
4739
4739
|
return l.useMemo(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
|
|
4740
4740
|
}
|
|
4741
|
-
var on = "Checkbox", [ml, ed] = ae(on), [gl, hl] = ml(on),
|
|
4741
|
+
var on = "Checkbox", [ml, ed] = ae(on), [gl, hl] = ml(on), zr = l.forwardRef(
|
|
4742
4742
|
(e, t) => {
|
|
4743
4743
|
const {
|
|
4744
4744
|
__scopeCheckbox: n,
|
|
@@ -4751,7 +4751,7 @@ var on = "Checkbox", [ml, ed] = ae(on), [gl, hl] = ml(on), Br = l.forwardRef(
|
|
|
4751
4751
|
onCheckedChange: u,
|
|
4752
4752
|
form: d,
|
|
4753
4753
|
...f
|
|
4754
|
-
} = e, [h, m] = l.useState(null), v =
|
|
4754
|
+
} = e, [h, m] = l.useState(null), v = z(t, (w) => m(w)), p = l.useRef(!1), b = h ? d || !!h.closest("form") : !0, [y = !1, x] = Me({
|
|
4755
4755
|
prop: o,
|
|
4756
4756
|
defaultProp: s,
|
|
4757
4757
|
onChange: u
|
|
@@ -4802,10 +4802,10 @@ var on = "Checkbox", [ml, ed] = ae(on), [gl, hl] = ml(on), Br = l.forwardRef(
|
|
|
4802
4802
|
] });
|
|
4803
4803
|
}
|
|
4804
4804
|
);
|
|
4805
|
-
|
|
4806
|
-
var
|
|
4805
|
+
zr.displayName = on;
|
|
4806
|
+
var Br = "CheckboxIndicator", Hr = l.forwardRef(
|
|
4807
4807
|
(e, t) => {
|
|
4808
|
-
const { __scopeCheckbox: n, forceMount: r, ...o } = e, s = hl(
|
|
4808
|
+
const { __scopeCheckbox: n, forceMount: r, ...o } = e, s = hl(Br, n);
|
|
4809
4809
|
return /* @__PURE__ */ g.jsx(te, { present: r || de(s.state) || s.state === !0, children: /* @__PURE__ */ g.jsx(
|
|
4810
4810
|
$.span,
|
|
4811
4811
|
{
|
|
@@ -4818,7 +4818,7 @@ var zr = "CheckboxIndicator", Hr = l.forwardRef(
|
|
|
4818
4818
|
) });
|
|
4819
4819
|
}
|
|
4820
4820
|
);
|
|
4821
|
-
Hr.displayName =
|
|
4821
|
+
Hr.displayName = Br;
|
|
4822
4822
|
var vl = (e) => {
|
|
4823
4823
|
const { control: t, checked: n, bubbles: r = !0, defaultChecked: o, ...s } = e, a = l.useRef(null), i = Vr(n), c = Qt(t);
|
|
4824
4824
|
l.useEffect(() => {
|
|
@@ -4855,7 +4855,7 @@ function de(e) {
|
|
|
4855
4855
|
function Gr(e) {
|
|
4856
4856
|
return de(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
4857
4857
|
}
|
|
4858
|
-
var Ur =
|
|
4858
|
+
var Ur = zr, bl = Hr;
|
|
4859
4859
|
const Kr = H(({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx(
|
|
4860
4860
|
Ur,
|
|
4861
4861
|
{
|
|
@@ -4941,14 +4941,14 @@ function El(e) {
|
|
|
4941
4941
|
a.displayName = t;
|
|
4942
4942
|
const i = e + "CollectionSlot", c = ve.forwardRef(
|
|
4943
4943
|
(m, v) => {
|
|
4944
|
-
const { scope: p, children: b } = m, y = s(i, p), x =
|
|
4944
|
+
const { scope: p, children: b } = m, y = s(i, p), x = z(v, y.collectionRef);
|
|
4945
4945
|
return /* @__PURE__ */ g.jsx(Ft, { ref: x, children: b });
|
|
4946
4946
|
}
|
|
4947
4947
|
);
|
|
4948
4948
|
c.displayName = i;
|
|
4949
4949
|
const u = e + "CollectionItemSlot", d = "data-radix-collection-item", f = ve.forwardRef(
|
|
4950
4950
|
(m, v) => {
|
|
4951
|
-
const { scope: p, children: b, ...y } = m, x = ve.useRef(null), C =
|
|
4951
|
+
const { scope: p, children: b, ...y } = m, x = ve.useRef(null), C = z(v, x), w = s(u, p);
|
|
4952
4952
|
return ve.useEffect(() => (w.itemMap.set(x, { ref: x, ...y }), () => void w.itemMap.delete(x))), /* @__PURE__ */ g.jsx(Ft, { [d]: "", ref: C, children: b });
|
|
4953
4953
|
}
|
|
4954
4954
|
);
|
|
@@ -4994,7 +4994,7 @@ var Tl = l.forwardRef((e, t) => {
|
|
|
4994
4994
|
onEntryFocus: u,
|
|
4995
4995
|
preventScrollOnEntryFocus: d = !1,
|
|
4996
4996
|
...f
|
|
4997
|
-
} = e, h = l.useRef(null), m =
|
|
4997
|
+
} = e, h = l.useRef(null), m = z(t, h), v = Yr(s), [p = null, b] = Me({
|
|
4998
4998
|
prop: a,
|
|
4999
4999
|
defaultProp: i,
|
|
5000
5000
|
onChange: c
|
|
@@ -5040,10 +5040,10 @@ var Tl = l.forwardRef((e, t) => {
|
|
|
5040
5040
|
if (S.target === S.currentTarget && I && !y) {
|
|
5041
5041
|
const D = new CustomEvent(xt, Pl);
|
|
5042
5042
|
if (S.currentTarget.dispatchEvent(D), !D.defaultPrevented) {
|
|
5043
|
-
const F = w().filter((T) => T.focusable), A = F.find((T) => T.active), L = F.find((T) => T.id === p),
|
|
5043
|
+
const F = w().filter((T) => T.focusable), A = F.find((T) => T.active), L = F.find((T) => T.id === p), B = [A, L, ...F].filter(
|
|
5044
5044
|
Boolean
|
|
5045
5045
|
).map((T) => T.ref.current);
|
|
5046
|
-
eo(
|
|
5046
|
+
eo(B, d);
|
|
5047
5047
|
}
|
|
5048
5048
|
}
|
|
5049
5049
|
E.current = !1;
|
|
@@ -5148,7 +5148,7 @@ var Ml = Zr, _l = Jr, sn = "Radio", [Ll, to] = ae(sn), [Fl, $l] = Ll(sn), no = l
|
|
|
5148
5148
|
onCheck: c,
|
|
5149
5149
|
form: u,
|
|
5150
5150
|
...d
|
|
5151
|
-
} = e, [f, h] = l.useState(null), m =
|
|
5151
|
+
} = e, [f, h] = l.useState(null), m = z(t, (b) => h(b)), v = l.useRef(!1), p = f ? u || !!f.closest("form") : !0;
|
|
5152
5152
|
return /* @__PURE__ */ g.jsxs(Fl, { scope: n, checked: o, disabled: a, children: [
|
|
5153
5153
|
/* @__PURE__ */ g.jsx(
|
|
5154
5154
|
$.button,
|
|
@@ -5231,10 +5231,10 @@ var Wl = (e) => {
|
|
|
5231
5231
|
function so(e) {
|
|
5232
5232
|
return e ? "checked" : "unchecked";
|
|
5233
5233
|
}
|
|
5234
|
-
var Vl = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], an = "RadioGroup", [
|
|
5234
|
+
var Vl = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], an = "RadioGroup", [zl, td] = ae(an, [
|
|
5235
5235
|
qr,
|
|
5236
5236
|
to
|
|
5237
|
-
]), ao = qr(), io = to(), [
|
|
5237
|
+
]), ao = qr(), io = to(), [Bl, Hl] = zl(an), lo = l.forwardRef(
|
|
5238
5238
|
(e, t) => {
|
|
5239
5239
|
const {
|
|
5240
5240
|
__scopeRadioGroup: n,
|
|
@@ -5254,7 +5254,7 @@ var Vl = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], an = "RadioGroup",
|
|
|
5254
5254
|
onChange: f
|
|
5255
5255
|
});
|
|
5256
5256
|
return /* @__PURE__ */ g.jsx(
|
|
5257
|
-
|
|
5257
|
+
Bl,
|
|
5258
5258
|
{
|
|
5259
5259
|
scope: n,
|
|
5260
5260
|
name: r,
|
|
@@ -5291,7 +5291,7 @@ var Vl = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], an = "RadioGroup",
|
|
|
5291
5291
|
lo.displayName = an;
|
|
5292
5292
|
var co = "RadioGroupItem", uo = l.forwardRef(
|
|
5293
5293
|
(e, t) => {
|
|
5294
|
-
const { __scopeRadioGroup: n, disabled: r, ...o } = e, s = Hl(co, n), a = s.disabled || r, i = ao(n), c = io(n), u = l.useRef(null), d =
|
|
5294
|
+
const { __scopeRadioGroup: n, disabled: r, ...o } = e, s = Hl(co, n), a = s.disabled || r, i = ao(n), c = io(n), u = l.useRef(null), d = z(t, u), f = s.value === o.value, h = l.useRef(!1);
|
|
5295
5295
|
return l.useEffect(() => {
|
|
5296
5296
|
const m = (p) => {
|
|
5297
5297
|
Vl.includes(p.key) && (h.current = !0);
|
|
@@ -5426,7 +5426,7 @@ var wt = "focusScope.autoFocusOnMount", Ct = "focusScope.autoFocusOnUnmount", $n
|
|
|
5426
5426
|
onMountAutoFocus: o,
|
|
5427
5427
|
onUnmountAutoFocus: s,
|
|
5428
5428
|
...a
|
|
5429
|
-
} = e, [i, c] = l.useState(null), u = re(o), d = re(s), f = l.useRef(null), h =
|
|
5429
|
+
} = e, [i, c] = l.useState(null), u = re(o), d = re(s), f = l.useRef(null), h = z(t, (p) => c(p)), m = l.useRef({
|
|
5430
5430
|
paused: !1,
|
|
5431
5431
|
pause() {
|
|
5432
5432
|
this.paused = !0;
|
|
@@ -5533,15 +5533,15 @@ function tc() {
|
|
|
5533
5533
|
return {
|
|
5534
5534
|
add(t) {
|
|
5535
5535
|
const n = e[0];
|
|
5536
|
-
t !== n && (n == null || n.pause()), e =
|
|
5536
|
+
t !== n && (n == null || n.pause()), e = zn(e, t), e.unshift(t);
|
|
5537
5537
|
},
|
|
5538
5538
|
remove(t) {
|
|
5539
5539
|
var n;
|
|
5540
|
-
e =
|
|
5540
|
+
e = zn(e, t), (n = e[0]) == null || n.resume();
|
|
5541
5541
|
}
|
|
5542
5542
|
};
|
|
5543
5543
|
}
|
|
5544
|
-
function
|
|
5544
|
+
function zn(e, t) {
|
|
5545
5545
|
const n = [...e], r = n.indexOf(t);
|
|
5546
5546
|
return r !== -1 && n.splice(r, 1), n;
|
|
5547
5547
|
}
|
|
@@ -5552,12 +5552,12 @@ var Et = 0;
|
|
|
5552
5552
|
function vo() {
|
|
5553
5553
|
l.useEffect(() => {
|
|
5554
5554
|
const e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
5555
|
-
return document.body.insertAdjacentElement("afterbegin", e[0] ??
|
|
5555
|
+
return document.body.insertAdjacentElement("afterbegin", e[0] ?? Bn()), document.body.insertAdjacentElement("beforeend", e[1] ?? Bn()), Et++, () => {
|
|
5556
5556
|
Et === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), Et--;
|
|
5557
5557
|
};
|
|
5558
5558
|
}, []);
|
|
5559
5559
|
}
|
|
5560
|
-
function
|
|
5560
|
+
function Bn() {
|
|
5561
5561
|
const e = document.createElement("span");
|
|
5562
5562
|
return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
|
|
5563
5563
|
}
|
|
@@ -6078,15 +6078,15 @@ var $c = function(e) {
|
|
|
6078
6078
|
return null;
|
|
6079
6079
|
};
|
|
6080
6080
|
}, Ao = l.forwardRef((e, t) => {
|
|
6081
|
-
const { children: n, ...r } = e, o = l.Children.toArray(n), s = o.find(
|
|
6081
|
+
const { children: n, ...r } = e, o = l.Children.toArray(n), s = o.find(Bc);
|
|
6082
6082
|
if (s) {
|
|
6083
6083
|
const a = s.props.children, i = o.map((c) => c === s ? l.Children.count(a) > 1 ? l.Children.only(null) : l.isValidElement(a) ? a.props.children : null : c);
|
|
6084
|
-
return /* @__PURE__ */ g.jsx(
|
|
6084
|
+
return /* @__PURE__ */ g.jsx(zt, { ...r, ref: t, children: l.isValidElement(a) ? l.cloneElement(a, void 0, i) : null });
|
|
6085
6085
|
}
|
|
6086
|
-
return /* @__PURE__ */ g.jsx(
|
|
6086
|
+
return /* @__PURE__ */ g.jsx(zt, { ...r, ref: t, children: n });
|
|
6087
6087
|
});
|
|
6088
6088
|
Ao.displayName = "Slot";
|
|
6089
|
-
var
|
|
6089
|
+
var zt = l.forwardRef((e, t) => {
|
|
6090
6090
|
const { children: n, ...r } = e;
|
|
6091
6091
|
if (l.isValidElement(n)) {
|
|
6092
6092
|
const o = Gc(n);
|
|
@@ -6098,10 +6098,10 @@ var Bt = l.forwardRef((e, t) => {
|
|
|
6098
6098
|
}
|
|
6099
6099
|
return l.Children.count(n) > 1 ? l.Children.only(null) : null;
|
|
6100
6100
|
});
|
|
6101
|
-
|
|
6102
|
-
var
|
|
6103
|
-
function
|
|
6104
|
-
return l.isValidElement(e) && e.type ===
|
|
6101
|
+
zt.displayName = "SlotClone";
|
|
6102
|
+
var zc = ({ children: e }) => /* @__PURE__ */ g.jsx(g.Fragment, { children: e });
|
|
6103
|
+
function Bc(e) {
|
|
6104
|
+
return l.isValidElement(e) && e.type === zc;
|
|
6105
6105
|
}
|
|
6106
6106
|
function Hc(e, t) {
|
|
6107
6107
|
const n = { ...t };
|
|
@@ -6151,7 +6151,7 @@ var un = "Dialog", [No, nd] = ae(un), [Uc, Z] = No(un), Oo = (e) => {
|
|
|
6151
6151
|
Oo.displayName = un;
|
|
6152
6152
|
var To = "DialogTrigger", ko = l.forwardRef(
|
|
6153
6153
|
(e, t) => {
|
|
6154
|
-
const { __scopeDialog: n, ...r } = e, o = Z(To, n), s =
|
|
6154
|
+
const { __scopeDialog: n, ...r } = e, o = Z(To, n), s = z(t, o.triggerRef);
|
|
6155
6155
|
return /* @__PURE__ */ g.jsx(
|
|
6156
6156
|
$.button,
|
|
6157
6157
|
{
|
|
@@ -6208,7 +6208,7 @@ var Yc = l.forwardRef(
|
|
|
6208
6208
|
Mo.displayName = xe;
|
|
6209
6209
|
var Xc = l.forwardRef(
|
|
6210
6210
|
(e, t) => {
|
|
6211
|
-
const n = Z(xe, e.__scopeDialog), r = l.useRef(null), o =
|
|
6211
|
+
const n = Z(xe, e.__scopeDialog), r = l.useRef(null), o = z(t, n.contentRef, r);
|
|
6212
6212
|
return l.useEffect(() => {
|
|
6213
6213
|
const s = r.current;
|
|
6214
6214
|
if (s) return So(s);
|
|
@@ -6259,7 +6259,7 @@ var Xc = l.forwardRef(
|
|
|
6259
6259
|
}
|
|
6260
6260
|
), _o = l.forwardRef(
|
|
6261
6261
|
(e, t) => {
|
|
6262
|
-
const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: s, ...a } = e, i = Z(xe, n), c = l.useRef(null), u =
|
|
6262
|
+
const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: s, ...a } = e, i = Z(xe, n), c = l.useRef(null), u = z(t, c);
|
|
6263
6263
|
return vo(), /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
|
|
6264
6264
|
/* @__PURE__ */ g.jsx(
|
|
6265
6265
|
ln,
|
|
@@ -6322,12 +6322,12 @@ Vo.displayName = Wo;
|
|
|
6322
6322
|
function pn(e) {
|
|
6323
6323
|
return e ? "open" : "closed";
|
|
6324
6324
|
}
|
|
6325
|
-
var
|
|
6325
|
+
var zo = "DialogTitleWarning", [rd, Bo] = da(zo, {
|
|
6326
6326
|
contentName: xe,
|
|
6327
6327
|
titleName: fn,
|
|
6328
6328
|
docsSlug: "dialog"
|
|
6329
6329
|
}), Zc = ({ titleId: e }) => {
|
|
6330
|
-
const t = zo
|
|
6330
|
+
const t = Bo(zo), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
6331
6331
|
|
|
6332
6332
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
6333
6333
|
|
|
@@ -6336,7 +6336,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
6336
6336
|
e && (document.getElementById(e) || console.error(n));
|
|
6337
6337
|
}, [n, e]), null;
|
|
6338
6338
|
}, Qc = "DialogDescriptionWarning", Jc = ({ contentRef: e, descriptionId: t }) => {
|
|
6339
|
-
const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${
|
|
6339
|
+
const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Bo(Qc).contentName}}.`;
|
|
6340
6340
|
return l.useEffect(() => {
|
|
6341
6341
|
var s;
|
|
6342
6342
|
const o = (s = e.current) == null ? void 0 : s.getAttribute("aria-describedby");
|
|
@@ -6635,12 +6635,12 @@ var Qo = l.forwardRef((e, t) => {
|
|
|
6635
6635
|
const { children: n, ...r } = e, o = l.Children.toArray(n), s = o.find(Tu);
|
|
6636
6636
|
if (s) {
|
|
6637
6637
|
const a = s.props.children, i = o.map((c) => c === s ? l.Children.count(a) > 1 ? l.Children.only(null) : l.isValidElement(a) ? a.props.children : null : c);
|
|
6638
|
-
return /* @__PURE__ */ g.jsx(
|
|
6638
|
+
return /* @__PURE__ */ g.jsx(Bt, { ...r, ref: t, children: l.isValidElement(a) ? l.cloneElement(a, void 0, i) : null });
|
|
6639
6639
|
}
|
|
6640
|
-
return /* @__PURE__ */ g.jsx(
|
|
6640
|
+
return /* @__PURE__ */ g.jsx(Bt, { ...r, ref: t, children: n });
|
|
6641
6641
|
});
|
|
6642
6642
|
Qo.displayName = "Slot";
|
|
6643
|
-
var
|
|
6643
|
+
var Bt = l.forwardRef((e, t) => {
|
|
6644
6644
|
const { children: n, ...r } = e;
|
|
6645
6645
|
if (l.isValidElement(n)) {
|
|
6646
6646
|
const o = Du(n);
|
|
@@ -6652,7 +6652,7 @@ var zt = l.forwardRef((e, t) => {
|
|
|
6652
6652
|
}
|
|
6653
6653
|
return l.Children.count(n) > 1 ? l.Children.only(null) : null;
|
|
6654
6654
|
});
|
|
6655
|
-
|
|
6655
|
+
Bt.displayName = "SlotClone";
|
|
6656
6656
|
var Ou = ({ children: e }) => /* @__PURE__ */ g.jsx(g.Fragment, { children: e });
|
|
6657
6657
|
function Tu(e) {
|
|
6658
6658
|
return l.isValidElement(e) && e.type === Ou;
|
|
@@ -6714,7 +6714,7 @@ var ts = "PopoverAnchor", Iu = l.forwardRef(
|
|
|
6714
6714
|
Iu.displayName = ts;
|
|
6715
6715
|
var ns = "PopoverTrigger", rs = l.forwardRef(
|
|
6716
6716
|
(e, t) => {
|
|
6717
|
-
const { __scopePopover: n, ...r } = e, o = he(ns, n), s = He(n), a =
|
|
6717
|
+
const { __scopePopover: n, ...r } = e, o = he(ns, n), s = He(n), a = z(t, o.triggerRef), i = /* @__PURE__ */ g.jsx(
|
|
6718
6718
|
$.button,
|
|
6719
6719
|
{
|
|
6720
6720
|
type: "button",
|
|
@@ -6747,7 +6747,7 @@ var Te = "PopoverContent", ss = l.forwardRef(
|
|
|
6747
6747
|
ss.displayName = Te;
|
|
6748
6748
|
var Lu = l.forwardRef(
|
|
6749
6749
|
(e, t) => {
|
|
6750
|
-
const n = he(Te, e.__scopePopover), r = l.useRef(null), o =
|
|
6750
|
+
const n = he(Te, e.__scopePopover), r = l.useRef(null), o = z(t, r), s = l.useRef(!1);
|
|
6751
6751
|
return l.useEffect(() => {
|
|
6752
6752
|
const a = r.current;
|
|
6753
6753
|
if (a) return So(a);
|
|
@@ -6882,8 +6882,8 @@ Vu.displayName = Wu;
|
|
|
6882
6882
|
function ls(e) {
|
|
6883
6883
|
return e ? "open" : "closed";
|
|
6884
6884
|
}
|
|
6885
|
-
var
|
|
6886
|
-
const cd =
|
|
6885
|
+
var zu = es, Bu = rs, Hu = os, cs = ss;
|
|
6886
|
+
const cd = zu, ud = Bu, Gu = H(({ className: e, align: t = "center", sideOffset: n = 4, ...r }, o) => /* @__PURE__ */ g.jsx(Hu, { children: /* @__PURE__ */ g.jsx(
|
|
6887
6887
|
cs,
|
|
6888
6888
|
{
|
|
6889
6889
|
ref: o,
|
|
@@ -6926,12 +6926,12 @@ const ue = Gt("", {
|
|
|
6926
6926
|
}
|
|
6927
6927
|
}
|
|
6928
6928
|
}), dd = () => ({
|
|
6929
|
-
h1: ue({ variant: "h1" }),
|
|
6930
|
-
h2: ue({ variant: "h2" }),
|
|
6931
|
-
h3: ue({ variant: "h3" }),
|
|
6932
|
-
h4: ue({ variant: "h4" }),
|
|
6933
|
-
h5: ue({ variant: "h5" }),
|
|
6934
|
-
h6: ue({ variant: "h6" }),
|
|
6929
|
+
h1: ue({ variant: "h1", weight: "semibold", size: "xl" }),
|
|
6930
|
+
h2: ue({ variant: "h2", weight: "semibold", size: "lg" }),
|
|
6931
|
+
h3: ue({ variant: "h3", weight: "semibold", size: "md" }),
|
|
6932
|
+
h4: ue({ variant: "h4", weight: "semibold", size: "md" }),
|
|
6933
|
+
h5: ue({ variant: "h5", weight: "semibold", size: "sm" }),
|
|
6934
|
+
h6: ue({ variant: "h6", weight: "semibold", size: "sm" }),
|
|
6935
6935
|
body: ue({ variant: "body" }),
|
|
6936
6936
|
// Non-typography classes
|
|
6937
6937
|
link: "al-text-blue-500 al-underline",
|
|
@@ -7114,7 +7114,7 @@ export {
|
|
|
7114
7114
|
So as r,
|
|
7115
7115
|
vo as s,
|
|
7116
7116
|
Ve as t,
|
|
7117
|
-
|
|
7117
|
+
z as u,
|
|
7118
7118
|
Ml as v,
|
|
7119
7119
|
Ar as w,
|
|
7120
7120
|
_l as x,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React__default, { FC, ReactNode } from 'react';
|
|
2
|
-
import { j as ChatbotProps, k as ChatbotProviderProps, m as ChatState, A as Artifact, n as ContextOption, I as InteractionRequest, o as ChatMessage, p as AgentAction, q as ChatResponse, F as Feedback, r as LoadingState, s as ChatSession, i as Citation, t as TodoItem, M as MessageAttachment, D as DetectedEntity, E as EntityType, u as AgentStreamResponse, S as SessionStatusEnum } from '../types-
|
|
3
|
-
export { x as AssistantMeta, w as ChatEvent, v as ChatEventStatus, z as ChatbotUrls, B as Datamate, G as EntityDetectionRequest, H as EntityDetectionResponse, y as FileUploadProps, W as FinalResponseData, N as InteractionChoice, K as InteractionType, J as Mode, V as ProgressUpdate, R as ToolUsageData, U as UploadedFile, X as agentStreamResponseSchema, O as sessionStatusSchema, Q as todoItemSchema } from '../types-
|
|
2
|
+
import { j as ChatbotProps, k as ChatbotProviderProps, m as ChatState, A as Artifact, n as ContextOption, I as InteractionRequest, o as ChatMessage, p as AgentAction, q as ChatResponse, F as Feedback, r as LoadingState, s as ChatSession, i as Citation, t as TodoItem, M as MessageAttachment, D as DetectedEntity, E as EntityType, u as AgentStreamResponse, S as SessionStatusEnum } from '../types-C2UJ4TLI.js';
|
|
3
|
+
export { x as AssistantMeta, w as ChatEvent, v as ChatEventStatus, z as ChatbotUrls, B as Datamate, G as EntityDetectionRequest, H as EntityDetectionResponse, y as FileUploadProps, W as FinalResponseData, N as InteractionChoice, K as InteractionType, J as Mode, V as ProgressUpdate, R as ToolUsageData, U as UploadedFile, X as agentStreamResponseSchema, O as sessionStatusSchema, Q as todoItemSchema } from '../types-C2UJ4TLI.js';
|
|
4
4
|
import * as _reduxjs_toolkit from '@reduxjs/toolkit';
|
|
5
5
|
import { UnknownAction } from '@reduxjs/toolkit';
|
|
6
6
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
package/dist/index.d.ts
CHANGED
|
@@ -4,8 +4,8 @@ import { B as ButtonProps } from './Button-Bsgqi8kG.js';
|
|
|
4
4
|
import { Components } from 'react-markdown';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
6
|
import { PlotParams } from 'react-plotly.js';
|
|
7
|
-
import { T as TaskLabels, a as TeamMateContextProps, b as TeamMateState, c as TeamMateConfig, d as TeamMateActionType, e as TeamMateAvailability } from './types-
|
|
8
|
-
export { i as Citation, f as CoachAiConfirmationResponse, C as CoachAiResponse, g as ContentCategory, L as Learning, P as PersonalizationScope, h as TeamMateComponentProps, l as learningSchema } from './types-
|
|
7
|
+
import { T as TaskLabels, a as TeamMateContextProps, b as TeamMateState, c as TeamMateConfig, d as TeamMateActionType, e as TeamMateAvailability } from './types-C2UJ4TLI.js';
|
|
8
|
+
export { i as Citation, f as CoachAiConfirmationResponse, C as CoachAiResponse, g as ContentCategory, L as Learning, P as PersonalizationScope, h as TeamMateComponentProps, l as learningSchema } from './types-C2UJ4TLI.js';
|
|
9
9
|
import * as _reduxjs_toolkit from '@reduxjs/toolkit';
|
|
10
10
|
import { PayloadAction } from '@reduxjs/toolkit';
|
|
11
11
|
import * as immer from 'immer';
|
package/dist/shadcn/index.d.ts
CHANGED
package/dist/shadcn/index.js
CHANGED
|
@@ -3556,9 +3556,10 @@ ho.displayName = so.displayName;
|
|
|
3556
3556
|
function cg() {
|
|
3557
3557
|
const { toasts: e } = Bi();
|
|
3558
3558
|
return /* @__PURE__ */ u.jsxs(bf, { children: [
|
|
3559
|
-
e.map(function({ id: t, title: n, description: a, action: r,
|
|
3560
|
-
return /* @__PURE__ */ u.jsxs(uo, { ...
|
|
3561
|
-
/* @__PURE__ */ u.
|
|
3559
|
+
e.map(function({ id: t, title: n, description: a, action: r, icon: o, ...i }) {
|
|
3560
|
+
return /* @__PURE__ */ u.jsxs(uo, { ...i, children: [
|
|
3561
|
+
o && /* @__PURE__ */ u.jsx("div", { className: "al-flex-shrink-0", children: o }),
|
|
3562
|
+
/* @__PURE__ */ u.jsxs("div", { className: "al-grid al-gap-1 al-flex-1", children: [
|
|
3562
3563
|
n && /* @__PURE__ */ u.jsx(mo, { children: n }),
|
|
3563
3564
|
a && /* @__PURE__ */ u.jsx(ho, { children: a })
|
|
3564
3565
|
] }),
|
|
@@ -117,6 +117,7 @@ interface ChatbotProps {
|
|
|
117
117
|
classNames?: {
|
|
118
118
|
chatbot?: string;
|
|
119
119
|
chatMessages?: string;
|
|
120
|
+
messageItem?: string;
|
|
120
121
|
};
|
|
121
122
|
initialMessage?: string;
|
|
122
123
|
submitInitialMessageOnMount?: boolean;
|
|
@@ -246,6 +247,7 @@ interface ChatState {
|
|
|
246
247
|
classNames?: {
|
|
247
248
|
chatbot?: string;
|
|
248
249
|
chatMessages?: string;
|
|
250
|
+
messageItem?: string;
|
|
249
251
|
};
|
|
250
252
|
}
|
|
251
253
|
declare const todoItemSchema: z.ZodObject<{
|