@arcadeai/design-system 3.39.2 → 3.39.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/{DialogRoot-DDokfJcO.js → DialogRoot-DPdhw92q.js} +1 -1
- package/dist/{DialogTrigger-CFUE8YsM.js → DialogTrigger-C5WbKc3Z.js} +1 -1
- package/dist/components/index.js +2 -2
- package/dist/components/ui/atoms/alert-dialog.js +1 -1
- package/dist/components/ui/atoms/dialog.js +2 -2
- package/dist/components/ui/atoms/dropdown-menu.js +2 -2
- package/dist/components/ui/atoms/hover-card.js +17 -17
- package/dist/components/ui/atoms/index.js +1 -1
- package/dist/components/ui/atoms/markdown.js +1 -1
- package/dist/components/ui/atoms/popover.js +1 -1
- package/dist/components/ui/atoms/sheet.js +2 -2
- package/dist/components/ui/atoms/sidebar.js +1 -1
- package/dist/components/ui/atoms/tabs.js +5 -5
- package/dist/components/ui/index.js +2 -2
- package/dist/components/ui/molecules/index.js +1 -1
- package/dist/components/ui/molecules/message.js +1 -1
- package/dist/components/ui/molecules/requirement-badges.js +2 -2
- package/dist/components/ui/molecules/toolkit-card.js +1 -1
- package/dist/{highlighted-body-OFNGDK62-Df6AJMbs.js → highlighted-body-OFNGDK62-BiqCpm9-.js} +1 -1
- package/dist/main.js +2 -2
- package/dist/{markdown-B71Eurda.js → markdown-Cv6uZPhi.js} +27 -30
- package/dist/mermaid-GHXKKRXX-4WUOeY7t.js +5 -0
- package/dist/{toolkit-card-DhpOY80l.js → toolkit-card-Dc104Z9e.js} +1 -1
- package/dist/{useRole-N-RCRzo1.js → useRole-BQ8R4yU3.js} +3 -3
- package/package.json +1 -1
- package/dist/mermaid-GHXKKRXX-BkplG-MI.js +0 -5
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import * as x from "react";
|
|
3
3
|
import { a as h } from "./useRenderElement-DNB2vtF1.js";
|
|
4
4
|
import { u as P } from "./useOnFirstRender-B4aruaIA.js";
|
|
5
|
-
import { u as R, g as D, h as I, i as O } from "./DialogTrigger-
|
|
5
|
+
import { u as R, g as D, h as I, i as O } from "./DialogTrigger-C5WbKc3Z.js";
|
|
6
6
|
import { jsx as v } from "react/jsx-runtime";
|
|
7
7
|
function k(u) {
|
|
8
8
|
const {
|
|
@@ -4,7 +4,7 @@ import { u as L } from "./useStableCallback-CudqoENs.js";
|
|
|
4
4
|
import { u as q, a as z, F as H, I as Y, b as $ } from "./InternalBackdrop-BVEfe6O1.js";
|
|
5
5
|
import { c as _, i as A, d as J } from "./createBaseUIEventDetails-CqidROtw.js";
|
|
6
6
|
import { a as Q, b as X, u as Z, p as ee, c as te, d as oe } from "./useSyncedFloatingRootContext-Bc90zSTy.js";
|
|
7
|
-
import { u as ne } from "./useRole-
|
|
7
|
+
import { u as ne } from "./useRole-BQ8R4yU3.js";
|
|
8
8
|
import { p as se, q as U, R as re, P as ae, d as S, x as K, y as w, z as ie, C as le, r as ce } from "./popupStateMapping-BT9Y_jIq.js";
|
|
9
9
|
import { b as ue, c as de } from "./element-DSo91iOi.js";
|
|
10
10
|
import { f as B, u as I } from "./useRenderElement-DNB2vtF1.js";
|
package/dist/components/index.js
CHANGED
|
@@ -179,7 +179,7 @@ import { InputGroup as ii, InputGroupAddon as li, InputGroupButton as ni, InputG
|
|
|
179
179
|
import { JsonHighlight as ui, jsonHighlightVariants as gi } from "./ui/atoms/json-highlight.js";
|
|
180
180
|
import { Label as ci } from "./ui/atoms/label.js";
|
|
181
181
|
import { Loader as Si } from "./ui/atoms/loader.js";
|
|
182
|
-
import { M as bi } from "../markdown-
|
|
182
|
+
import { M as bi } from "../markdown-Cv6uZPhi.js";
|
|
183
183
|
import { MobileTooltip as Di, MobileTooltipContent as Mi, MobileTooltipProvider as ki, MobileTooltipTrigger as Bi } from "./ui/atoms/mobile-tooltip.js";
|
|
184
184
|
import { Popover as Pi, PopoverContent as Ii, PopoverDescription as vi, PopoverHeader as Li, PopoverTitle as yi, PopoverTrigger as wi } from "./ui/atoms/popover.js";
|
|
185
185
|
import { ProBadge as Ei } from "./ui/atoms/pro-badge.js";
|
|
@@ -214,7 +214,7 @@ import { EmptyState as $n } from "./ui/molecules/empty-state.js";
|
|
|
214
214
|
import { ErrorState as rf } from "./ui/molecules/error-state.js";
|
|
215
215
|
import { Message as tf, MessageAction as af, MessageActions as pf, MessageAvatar as mf, MessageContent as lf } from "./ui/molecules/message.js";
|
|
216
216
|
import { PromptInput as ff, PromptInputAction as xf, PromptInputActions as df, PromptInputTextarea as sf } from "./ui/molecules/prompt-input.js";
|
|
217
|
-
import { R as gf, T as Cf } from "../toolkit-card-
|
|
217
|
+
import { R as gf, T as Cf } from "../toolkit-card-Dc104Z9e.js";
|
|
218
218
|
import { StepsProgress as Tf } from "./ui/molecules/steps-progress.js";
|
|
219
219
|
import { SuggestionCard as hf, SuggestionCardSkeleton as bf } from "./ui/molecules/suggestion-card.js";
|
|
220
220
|
import { ToolAuthorization as Df, ToolAuthorizationArgs as Mf, ToolAuthorizationContent as kf, ToolAuthorizationHeader as Bf, ToolAuthorizationMessage as Gf } from "./ui/molecules/tool-authorization.js";
|
|
@@ -4,7 +4,7 @@ import { Button as g } from "./button.js";
|
|
|
4
4
|
import { cn as l } from "../../../lib/utils.js";
|
|
5
5
|
import * as z from "react";
|
|
6
6
|
import { a as h } from "../../../useRenderElement-DNB2vtF1.js";
|
|
7
|
-
import { u as A, g as b, h as v, i as P, D as w, a as y, b as N, c as R, d as I, e as T, f as k } from "../../../DialogTrigger-
|
|
7
|
+
import { u as A, g as b, h as v, i as P, D as w, a as y, b as N, c as R, d as I, e as T, f as k } from "../../../DialogTrigger-C5WbKc3Z.js";
|
|
8
8
|
function O(t) {
|
|
9
9
|
const {
|
|
10
10
|
children: e,
|
|
@@ -3,8 +3,8 @@ import { jsx as o, jsxs as l } from "react/jsx-runtime";
|
|
|
3
3
|
import { XIcon as s } from "lucide-react";
|
|
4
4
|
import { Button as d } from "./button.js";
|
|
5
5
|
import { cn as e } from "../../../lib/utils.js";
|
|
6
|
-
import { D as g } from "../../../DialogRoot-
|
|
7
|
-
import { D as n, a as u, b as c, c as m, d as f, e as p, f as D } from "../../../DialogTrigger-
|
|
6
|
+
import { D as g } from "../../../DialogRoot-DPdhw92q.js";
|
|
7
|
+
import { D as n, a as u, b as c, c as m, d as f, e as p, f as D } from "../../../DialogTrigger-C5WbKc3Z.js";
|
|
8
8
|
function $({ ...a }) {
|
|
9
9
|
return /* @__PURE__ */ o(g, { "data-slot": "dialog", ...a });
|
|
10
10
|
}
|
|
@@ -14,7 +14,7 @@ import { x as dt, z as on, L as rn, s as sn, w as an, R as un, P as cn, M as lt,
|
|
|
14
14
|
import { u as Rn } from "../../../DirectionContext-BSOheMwC.js";
|
|
15
15
|
import { r as Ee, c as ae, o as yn, b as ye, s as be, t as st, a as En, e as In, f as ke, l as Pn, i as Nn, q as Tn } from "../../../createBaseUIEventDetails-CqidROtw.js";
|
|
16
16
|
import { p as wn, c as Sn, a as On, b as kn, u as Dn, d as _n, e as Vn } from "../../../useSyncedFloatingRootContext-Bc90zSTy.js";
|
|
17
|
-
import { u as Fn } from "../../../useRole-
|
|
17
|
+
import { u as Fn } from "../../../useRole-BQ8R4yU3.js";
|
|
18
18
|
import { u as An, a as Un, g as Bn } from "../../../getPseudoElementBounds-B4_miSEJ.js";
|
|
19
19
|
import { u as mt } from "../../../useControlled-Sx-_x7Sz.js";
|
|
20
20
|
import { b as Gn } from "../../../detectBrowser-Dn2N72k1.js";
|
|
@@ -32,8 +32,8 @@ import * as at from "react-dom";
|
|
|
32
32
|
import { o as De } from "../../../owner-rKN292Q9.js";
|
|
33
33
|
import { C as Jn } from "../../../CompositeItem-CniPsjzP.js";
|
|
34
34
|
import { i as Qn, n as Zn, m as eo } from "../../../floating-ui.utils.dom-jr2suqy2.js";
|
|
35
|
-
import { u as to } from "../../../useFocus-Aj9ShMQu.js";
|
|
36
35
|
import { c as Se } from "../../../element-DSo91iOi.js";
|
|
36
|
+
import { u as to } from "../../../useFocus-Aj9ShMQu.js";
|
|
37
37
|
const Ae = /* @__PURE__ */ n.createContext(void 0);
|
|
38
38
|
process.env.NODE_ENV !== "production" && (Ae.displayName = "MenuPositionerContext");
|
|
39
39
|
function Me(e) {
|
|
@@ -7,8 +7,8 @@ import { u as ee } from "../../../useOnFirstRender-B4aruaIA.js";
|
|
|
7
7
|
import { f as N, a as te, u as b } from "../../../useRenderElement-DNB2vtF1.js";
|
|
8
8
|
import { b as H, t as oe, a as ne, e as re, c as se, i as ie } from "../../../createBaseUIEventDetails-CqidROtw.js";
|
|
9
9
|
import * as ae from "react-dom";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
10
|
+
import { R as de, P as ce, d as B, o as ue, p as pe, q as le, r as ge, s as fe, v as me, w as Ce, x as z } from "../../../popupStateMapping-BT9Y_jIq.js";
|
|
11
|
+
import { p as ve, u as Pe, c as we, a as he, b as Se, d as ye } from "../../../useSyncedFloatingRootContext-Bc90zSTy.js";
|
|
12
12
|
import { F as Re } from "../../../FloatingPortalLite-BHsRx4XN.js";
|
|
13
13
|
import { u as Te, a as Oe, g as W } from "../../../getDisabledMountTransitionStyles-fmnaQYVj.js";
|
|
14
14
|
import { u as Ee } from "../../../useStableCallback-CudqoENs.js";
|
|
@@ -25,11 +25,11 @@ function x(t) {
|
|
|
25
25
|
return e;
|
|
26
26
|
}
|
|
27
27
|
const Ae = 600, Y = 300, Ue = {
|
|
28
|
-
...
|
|
28
|
+
...ve,
|
|
29
29
|
instantType: B((t) => t.instantType),
|
|
30
30
|
hasViewport: B((t) => t.hasViewport)
|
|
31
31
|
};
|
|
32
|
-
class V extends
|
|
32
|
+
class V extends de {
|
|
33
33
|
constructor(e) {
|
|
34
34
|
super({
|
|
35
35
|
..._e(),
|
|
@@ -38,7 +38,7 @@ class V extends fe {
|
|
|
38
38
|
popupRef: /* @__PURE__ */ s.createRef(),
|
|
39
39
|
onOpenChange: void 0,
|
|
40
40
|
onOpenChangeComplete: void 0,
|
|
41
|
-
triggerElements: new
|
|
41
|
+
triggerElements: new ce(),
|
|
42
42
|
closeDelayRef: {
|
|
43
43
|
current: Y
|
|
44
44
|
}
|
|
@@ -61,7 +61,7 @@ class V extends fe {
|
|
|
61
61
|
a ? ae.flushSync(m) : m();
|
|
62
62
|
};
|
|
63
63
|
static useStore(e, n) {
|
|
64
|
-
const i = te(() => new V(n)).current, a = e ?? i, p =
|
|
64
|
+
const i = te(() => new V(n)).current, a = e ?? i, p = Pe({
|
|
65
65
|
popupStore: a,
|
|
66
66
|
onOpenChange: a.setOpen
|
|
67
67
|
});
|
|
@@ -70,7 +70,7 @@ class V extends fe {
|
|
|
70
70
|
}
|
|
71
71
|
function _e() {
|
|
72
72
|
return {
|
|
73
|
-
...
|
|
73
|
+
...we(),
|
|
74
74
|
instantType: void 0,
|
|
75
75
|
hasViewport: !1
|
|
76
76
|
};
|
|
@@ -99,10 +99,10 @@ function k(t) {
|
|
|
99
99
|
});
|
|
100
100
|
}), o.useControlledProp("openProp", e), o.useControlledProp("triggerIdProp", m), o.useContextCallback("onOpenChange", i), o.useContextCallback("onOpenChangeComplete", a);
|
|
101
101
|
const C = o.useState("open"), c = o.useState("activeTriggerId"), v = o.useState("payload");
|
|
102
|
-
|
|
102
|
+
he(o);
|
|
103
103
|
const {
|
|
104
104
|
forceUnmount: w
|
|
105
|
-
} =
|
|
105
|
+
} = Se(C, o);
|
|
106
106
|
L(() => {
|
|
107
107
|
C && c == null && o.set("payload", void 0);
|
|
108
108
|
}, [o, c, C]);
|
|
@@ -113,11 +113,11 @@ function k(t) {
|
|
|
113
113
|
unmount: w,
|
|
114
114
|
close: S
|
|
115
115
|
}), [w, S]);
|
|
116
|
-
const y = o.useState("floatingRootContext"), R =
|
|
116
|
+
const y = o.useState("floatingRootContext"), R = pe(y), {
|
|
117
117
|
getReferenceProps: g,
|
|
118
118
|
getTriggerProps: h,
|
|
119
119
|
getFloatingProps: T
|
|
120
|
-
} =
|
|
120
|
+
} = le([R]), P = s.useMemo(() => g(), [g]), O = s.useMemo(() => h(), [h]), E = s.useMemo(() => T(), [T]);
|
|
121
121
|
return o.useSyncedValues({
|
|
122
122
|
activeTriggerProps: P,
|
|
123
123
|
inactiveTriggerProps: O,
|
|
@@ -132,7 +132,7 @@ function k(t) {
|
|
|
132
132
|
function Fe(t) {
|
|
133
133
|
return x(!0) ? /* @__PURE__ */ f(k, {
|
|
134
134
|
...t
|
|
135
|
-
}) : /* @__PURE__ */ f(
|
|
135
|
+
}) : /* @__PURE__ */ f(ue, {
|
|
136
136
|
children: /* @__PURE__ */ f(k, {
|
|
137
137
|
...t
|
|
138
138
|
})
|
|
@@ -182,7 +182,7 @@ const q = /* @__PURE__ */ s.forwardRef(function(e, n) {
|
|
|
182
182
|
const v = Me(m), w = c.useState("isTriggerActive", v), S = c.useState("isOpenedByTrigger", v), y = c.useState("floatingRootContext"), R = s.useRef(null), g = p ?? Ae, h = r ?? Y, {
|
|
183
183
|
registerTrigger: T,
|
|
184
184
|
isMountedByThisTrigger: P
|
|
185
|
-
} =
|
|
185
|
+
} = ye(v, R, c, {
|
|
186
186
|
payload: d
|
|
187
187
|
});
|
|
188
188
|
L(() => {
|
|
@@ -209,7 +209,7 @@ const q = /* @__PURE__ */ s.forwardRef(function(e, n) {
|
|
|
209
209
|
props: [O, E.reference, D, {
|
|
210
210
|
id: v
|
|
211
211
|
}, o],
|
|
212
|
-
stateAttributesMapping:
|
|
212
|
+
stateAttributesMapping: ge
|
|
213
213
|
});
|
|
214
214
|
});
|
|
215
215
|
process.env.NODE_ENV !== "production" && (q.displayName = "PreviewCardTrigger");
|
|
@@ -236,9 +236,9 @@ const K = /* @__PURE__ */ s.forwardRef(function(e, n) {
|
|
|
236
236
|
arrowPadding: v = 5,
|
|
237
237
|
sticky: w = !1,
|
|
238
238
|
disableAnchorTracking: S = !1,
|
|
239
|
-
collisionAvoidance: y =
|
|
239
|
+
collisionAvoidance: y = fe,
|
|
240
240
|
...R
|
|
241
|
-
} = e, g = x(), h = Be(), T =
|
|
241
|
+
} = e, g = x(), h = Be(), T = me(), P = g.useState("open"), O = g.useState("mounted"), E = g.useState("floatingRootContext"), I = g.useState("instantType"), D = g.useState("transitionStatus"), _ = g.useState("hasViewport"), u = Te({
|
|
242
242
|
anchor: p,
|
|
243
243
|
floatingRootContext: E,
|
|
244
244
|
positionMethod: r,
|
|
@@ -286,7 +286,7 @@ const K = /* @__PURE__ */ s.forwardRef(function(e, n) {
|
|
|
286
286
|
});
|
|
287
287
|
return /* @__PURE__ */ f(U.Provider, {
|
|
288
288
|
value: X,
|
|
289
|
-
children: /* @__PURE__ */ f(
|
|
289
|
+
children: /* @__PURE__ */ f(Ce, {
|
|
290
290
|
id: T,
|
|
291
291
|
children: Z
|
|
292
292
|
})
|
|
@@ -179,7 +179,7 @@ import { InputGroup as ii, InputGroupAddon as fi, InputGroupButton as xi, InputG
|
|
|
179
179
|
import { JsonHighlight as gi, jsonHighlightVariants as si } from "./json-highlight.js";
|
|
180
180
|
import { Label as Ci } from "./label.js";
|
|
181
181
|
import { Loader as Si } from "./loader.js";
|
|
182
|
-
import { M as Ti } from "../../../markdown-
|
|
182
|
+
import { M as Ti } from "../../../markdown-Cv6uZPhi.js";
|
|
183
183
|
import { MobileTooltip as Mi, MobileTooltipContent as Ai, MobileTooltipProvider as Gi, MobileTooltipTrigger as Bi } from "./mobile-tooltip.js";
|
|
184
184
|
import { Popover as Ii, PopoverContent as Pi, PopoverDescription as vi, PopoverHeader as wi, PopoverTitle as yi, PopoverTrigger as Li } from "./popover.js";
|
|
185
185
|
import { ProBadge as Vi } from "./pro-badge.js";
|
|
@@ -11,7 +11,7 @@ import { u as Ne } from "../../../useOnMount-JHtE6teb.js";
|
|
|
11
11
|
import { R as Fe, P as Me, A as ke, d as R, o as we, p as De, q as le, u as Ve, B as _e, r as Ae, C as Be, E as He, j as Ue, G as Ge, k as Le, i as ce, z as Ke, s as ze, v as je, w as $e, x as de } from "../../../popupStateMapping-BT9Y_jIq.js";
|
|
12
12
|
import { p as Ye, c as qe, a as We, b as Je, u as Qe, d as Xe } from "../../../useSyncedFloatingRootContext-Bc90zSTy.js";
|
|
13
13
|
import { b as q, a as Q, e as Ze, f as X, c as Z, i as et } from "../../../createBaseUIEventDetails-CqidROtw.js";
|
|
14
|
-
import { u as tt } from "../../../useRole-
|
|
14
|
+
import { u as tt } from "../../../useRole-BQ8R4yU3.js";
|
|
15
15
|
import { u as ee } from "../../../useStableCallback-CudqoENs.js";
|
|
16
16
|
import { a as ot } from "../../../useButton-JYPKQKj4.js";
|
|
17
17
|
import { u as te } from "../../../useBaseUiId-C8Dq0BQq.js";
|
|
@@ -3,8 +3,8 @@ import { jsx as e, jsxs as i } from "react/jsx-runtime";
|
|
|
3
3
|
import { XIcon as n } from "lucide-react";
|
|
4
4
|
import { Button as g } from "./button.js";
|
|
5
5
|
import { cn as s } from "../../../lib/utils.js";
|
|
6
|
-
import { D as m } from "../../../DialogRoot-
|
|
7
|
-
import { D as o, a as c, b as h, e as f, f as p, d as u, c as x } from "../../../DialogTrigger-
|
|
6
|
+
import { D as m } from "../../../DialogRoot-DPdhw92q.js";
|
|
7
|
+
import { D as o, a as c, b as h, e as f, f as p, d as u, c as x } from "../../../DialogTrigger-C5WbKc3Z.js";
|
|
8
8
|
function C({ ...t }) {
|
|
9
9
|
return /* @__PURE__ */ e(m, { "data-slot": "sheet", ...t });
|
|
10
10
|
}
|
|
@@ -216,7 +216,7 @@ function be({ className: e, ...a }) {
|
|
|
216
216
|
"main",
|
|
217
217
|
{
|
|
218
218
|
className: r(
|
|
219
|
-
"relative flex w-full flex-1 flex-col bg-background md:peer-data-[variant=inset]:peer-data-collapsed:ml-2 md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm",
|
|
219
|
+
"relative flex w-full min-w-0 flex-1 flex-col bg-background md:peer-data-[variant=inset]:peer-data-collapsed:ml-2 md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm",
|
|
220
220
|
e
|
|
221
221
|
),
|
|
222
222
|
"data-slot": "sidebar-inset",
|
|
@@ -17,8 +17,8 @@ import { A as vt, C as mt } from "../../../CompositeRoot-Dy-5A-Je.js";
|
|
|
17
17
|
import { o as J } from "../../../owner-rKN292Q9.js";
|
|
18
18
|
import { u as ht } from "../../../useCompositeItem-D00ALGkT.js";
|
|
19
19
|
import { c as Q, n as X } from "../../../createBaseUIEventDetails-CqidROtw.js";
|
|
20
|
-
import { a as Tt } from "../../../
|
|
21
|
-
import { a as
|
|
20
|
+
import { a as Tt, c as xt } from "../../../element-DSo91iOi.js";
|
|
21
|
+
import { a as Et } from "../../../useButton-JYPKQKj4.js";
|
|
22
22
|
const Y = /* @__PURE__ */ e.createContext(void 0);
|
|
23
23
|
process.env.NODE_ENV !== "production" && (Y.displayName = "TabsRootContext");
|
|
24
24
|
function W() {
|
|
@@ -177,8 +177,8 @@ const at = /* @__PURE__ */ e.forwardRef(function(o, u) {
|
|
|
177
177
|
return;
|
|
178
178
|
const h = i;
|
|
179
179
|
if (h != null) {
|
|
180
|
-
const U =
|
|
181
|
-
if (U &&
|
|
180
|
+
const U = Tt(J(h));
|
|
181
|
+
if (U && xt(h, U))
|
|
182
182
|
return;
|
|
183
183
|
}
|
|
184
184
|
n || S(v);
|
|
@@ -186,7 +186,7 @@ const at = /* @__PURE__ */ e.forwardRef(function(o, u) {
|
|
|
186
186
|
const {
|
|
187
187
|
getButtonProps: k,
|
|
188
188
|
buttonRef: A
|
|
189
|
-
} =
|
|
189
|
+
} = Et({
|
|
190
190
|
disabled: n,
|
|
191
191
|
native: b,
|
|
192
192
|
focusableWhenDisabled: !0
|
|
@@ -179,7 +179,7 @@ import { InputGroup as ii, InputGroupAddon as li, InputGroupButton as ni, InputG
|
|
|
179
179
|
import { JsonHighlight as ui, jsonHighlightVariants as gi } from "./atoms/json-highlight.js";
|
|
180
180
|
import { Label as ci } from "./atoms/label.js";
|
|
181
181
|
import { Loader as Si } from "./atoms/loader.js";
|
|
182
|
-
import { M as bi } from "../../markdown-
|
|
182
|
+
import { M as bi } from "../../markdown-Cv6uZPhi.js";
|
|
183
183
|
import { MobileTooltip as Di, MobileTooltipContent as Mi, MobileTooltipProvider as ki, MobileTooltipTrigger as Bi } from "./atoms/mobile-tooltip.js";
|
|
184
184
|
import { Popover as Pi, PopoverContent as Ii, PopoverDescription as vi, PopoverHeader as Li, PopoverTitle as yi, PopoverTrigger as wi } from "./atoms/popover.js";
|
|
185
185
|
import { ProBadge as Ei } from "./atoms/pro-badge.js";
|
|
@@ -214,7 +214,7 @@ import { EmptyState as $n } from "./molecules/empty-state.js";
|
|
|
214
214
|
import { ErrorState as rf } from "./molecules/error-state.js";
|
|
215
215
|
import { Message as tf, MessageAction as af, MessageActions as pf, MessageAvatar as mf, MessageContent as lf } from "./molecules/message.js";
|
|
216
216
|
import { PromptInput as ff, PromptInputAction as xf, PromptInputActions as df, PromptInputTextarea as sf } from "./molecules/prompt-input.js";
|
|
217
|
-
import { R as gf, T as Cf } from "../../toolkit-card-
|
|
217
|
+
import { R as gf, T as Cf } from "../../toolkit-card-Dc104Z9e.js";
|
|
218
218
|
import { StepsProgress as Tf } from "./molecules/steps-progress.js";
|
|
219
219
|
import { SuggestionCard as hf, SuggestionCardSkeleton as bf } from "./molecules/suggestion-card.js";
|
|
220
220
|
import { ToolAuthorization as Df, ToolAuthorizationArgs as Mf, ToolAuthorizationContent as kf, ToolAuthorizationHeader as Bf, ToolAuthorizationMessage as Gf } from "./molecules/tool-authorization.js";
|
|
@@ -8,7 +8,7 @@ import { EmptyState as u } from "./empty-state.js";
|
|
|
8
8
|
import { ErrorState as h } from "./error-state.js";
|
|
9
9
|
import { Message as S, MessageAction as I, MessageActions as P, MessageAvatar as z, MessageContent as k } from "./message.js";
|
|
10
10
|
import { PromptInput as y, PromptInputAction as B, PromptInputActions as E, PromptInputTextarea as H } from "./prompt-input.js";
|
|
11
|
-
import { R, T as U } from "../../../toolkit-card-
|
|
11
|
+
import { R, T as U } from "../../../toolkit-card-Dc104Z9e.js";
|
|
12
12
|
import { StepsProgress as D } from "./steps-progress.js";
|
|
13
13
|
import { SuggestionCard as b, SuggestionCardSkeleton as j } from "./suggestion-card.js";
|
|
14
14
|
import { ToolAuthorization as F, ToolAuthorizationArgs as G, ToolAuthorizationContent as J, ToolAuthorizationHeader as K, ToolAuthorizationMessage as O } from "./tool-authorization.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as o, jsxs as i } from "react/jsx-runtime";
|
|
2
2
|
import { Avatar as c, AvatarImage as m, AvatarFallback as l } from "../atoms/avatar.js";
|
|
3
|
-
import { M as d } from "../../../markdown-
|
|
3
|
+
import { M as d } from "../../../markdown-Cv6uZPhi.js";
|
|
4
4
|
import { TooltipProvider as p, Tooltip as f, TooltipTrigger as g, TooltipContent as u } from "../atoms/tooltip.js";
|
|
5
5
|
import { cn as n } from "../../../lib/utils.js";
|
|
6
6
|
function N({ children: e, className: t, ...r }) {
|
|
@@ -6,7 +6,7 @@ import "../atoms/badge.js";
|
|
|
6
6
|
import "../atoms/byoc-badge.js";
|
|
7
7
|
import "../atoms/chart.js";
|
|
8
8
|
import "../atoms/json-highlight.js";
|
|
9
|
-
import "../../../markdown-
|
|
9
|
+
import "../../../markdown-Cv6uZPhi.js";
|
|
10
10
|
import "../atoms/mobile-tooltip.js";
|
|
11
11
|
import "../atoms/pro-badge.js";
|
|
12
12
|
import "../../../react-resizable-panels-BqIpIFl2.js";
|
|
@@ -15,7 +15,7 @@ import "../atoms/sidebar.js";
|
|
|
15
15
|
import "../atoms/view-tools-control.js";
|
|
16
16
|
import "./date-time-picker.js";
|
|
17
17
|
import "./prompt-input.js";
|
|
18
|
-
import { O as A, R as b, S as j } from "../../../toolkit-card-
|
|
18
|
+
import { O as A, R as b, S as j } from "../../../toolkit-card-Dc104Z9e.js";
|
|
19
19
|
import "./tool-call-accordion.js";
|
|
20
20
|
import "./tool-card.js";
|
|
21
21
|
import "../utils/memo.js";
|
|
@@ -6,7 +6,7 @@ import "../atoms/card.js";
|
|
|
6
6
|
import "../atoms/checkbox.js";
|
|
7
7
|
import "../atoms/view-tools-control.js";
|
|
8
8
|
import "../../../lib/utils.js";
|
|
9
|
-
import { T as k } from "../../../toolkit-card-
|
|
9
|
+
import { T as k } from "../../../toolkit-card-Dc104Z9e.js";
|
|
10
10
|
import "../utils/memo.js";
|
|
11
11
|
export {
|
|
12
12
|
k as ToolkitCard
|
package/dist/{highlighted-body-OFNGDK62-Df6AJMbs.js → highlighted-body-OFNGDK62-BiqCpm9-.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { R as c, L as f, A as d } from "./markdown-
|
|
2
|
+
import { R as c, L as f, A as d } from "./markdown-Cv6uZPhi.js";
|
|
3
3
|
import { useContext as p, useState as L, useEffect as N } from "react";
|
|
4
4
|
import { jsx as x } from "react/jsx-runtime";
|
|
5
5
|
var A = ({ code: s, language: e, raw: t, className: o, startLine: m, lineNumbers: u, ...n }) => {
|
package/dist/main.js
CHANGED
|
@@ -179,7 +179,7 @@ import { InputGroup as ii, InputGroupAddon as li, InputGroupButton as ni, InputG
|
|
|
179
179
|
import { JsonHighlight as ui, jsonHighlightVariants as gi } from "./components/ui/atoms/json-highlight.js";
|
|
180
180
|
import { Label as Ti } from "./components/ui/atoms/label.js";
|
|
181
181
|
import { Loader as Si } from "./components/ui/atoms/loader.js";
|
|
182
|
-
import { M as Ai } from "./markdown-
|
|
182
|
+
import { M as Ai } from "./markdown-Cv6uZPhi.js";
|
|
183
183
|
import { MobileTooltip as Di, MobileTooltipContent as Ii, MobileTooltipProvider as Mi, MobileTooltipTrigger as Pi } from "./components/ui/atoms/mobile-tooltip.js";
|
|
184
184
|
import { Popover as ki, PopoverContent as Gi, PopoverDescription as Li, PopoverHeader as vi, PopoverTitle as Oi, PopoverTrigger as yi } from "./components/ui/atoms/popover.js";
|
|
185
185
|
import { ProBadge as wi } from "./components/ui/atoms/pro-badge.js";
|
|
@@ -214,7 +214,7 @@ import { EmptyState as $n } from "./components/ui/molecules/empty-state.js";
|
|
|
214
214
|
import { ErrorState as rf } from "./components/ui/molecules/error-state.js";
|
|
215
215
|
import { Message as tf, MessageAction as af, MessageActions as pf, MessageAvatar as mf, MessageContent as lf } from "./components/ui/molecules/message.js";
|
|
216
216
|
import { PromptInput as ff, PromptInputAction as xf, PromptInputActions as df, PromptInputTextarea as sf } from "./components/ui/molecules/prompt-input.js";
|
|
217
|
-
import { R as gf, T as Cf } from "./toolkit-card-
|
|
217
|
+
import { R as gf, T as Cf } from "./toolkit-card-Dc104Z9e.js";
|
|
218
218
|
import { StepsProgress as cf } from "./components/ui/molecules/steps-progress.js";
|
|
219
219
|
import { SuggestionCard as hf, SuggestionCardSkeleton as Af } from "./components/ui/molecules/suggestion-card.js";
|
|
220
220
|
import { ToolAuthorization as Df, ToolAuthorizationArgs as If, ToolAuthorizationContent as Mf, ToolAuthorizationHeader as Pf, ToolAuthorizationMessage as Bf } from "./components/ui/molecules/tool-authorization.js";
|
|
@@ -599,18 +599,18 @@ function Xf(e, t, n) {
|
|
|
599
599
|
return Jr(_n("-"));
|
|
600
600
|
}
|
|
601
601
|
function Zf({ negate: e }, t, n) {
|
|
602
|
-
const { tokens: r, walk: i } = t, a =
|
|
603
|
-
let u = Bs(
|
|
602
|
+
const { tokens: r, walk: i } = t, a = [Nr()], s = r[t.nextIndex];
|
|
603
|
+
let u = Bs(s);
|
|
604
604
|
for (; u.type !== "CharacterClassClose"; ) {
|
|
605
|
-
if (u.type === "CharacterClassIntersector")
|
|
605
|
+
if (u.type === "CharacterClassIntersector") a.push(Nr()), t.nextIndex++;
|
|
606
606
|
else {
|
|
607
|
-
const l =
|
|
607
|
+
const l = a.at(-1);
|
|
608
608
|
l.body.push(i(l, n));
|
|
609
609
|
}
|
|
610
|
-
u = Bs(r[t.nextIndex],
|
|
610
|
+
u = Bs(r[t.nextIndex], s);
|
|
611
611
|
}
|
|
612
612
|
const o = Nr({ negate: e });
|
|
613
|
-
return
|
|
613
|
+
return a.length === 1 ? o.body = a[0].body : (o.kind = "intersection", o.body = a.map((l) => l.body.length === 1 ? l.body[0] : l)), t.nextIndex++, o;
|
|
614
614
|
}
|
|
615
615
|
function Jf({ kind: e, negate: t, value: n }, r) {
|
|
616
616
|
const { normalizeUnknownPropertyNames: i, skipPropertyNameValidation: a, unicodePropertyMap: s } = r;
|
|
@@ -784,7 +784,8 @@ function ei(e) {
|
|
|
784
784
|
return e.replace(/[- _]+/g, "").toLowerCase();
|
|
785
785
|
}
|
|
786
786
|
function Bs(e, t) {
|
|
787
|
-
|
|
787
|
+
const n = t;
|
|
788
|
+
return An(e, `Unclosed character class${n?.type === "Character" && n.value === 93 && n.raw === "]" ? ' (started with "]")' : ""}`);
|
|
788
789
|
}
|
|
789
790
|
function Fs(e) {
|
|
790
791
|
return An(e, "Unclosed group");
|
|
@@ -820,12 +821,11 @@ function jn(e, t, n = null) {
|
|
|
820
821
|
} }, { type: h } = a, p = t["*"], m = t[h], T = typeof p == "function" ? p : p?.enter, A = typeof m == "function" ? m : m?.enter;
|
|
821
822
|
if (T?.(d, n), A?.(d, n), !c) switch (h) {
|
|
822
823
|
case "AbsenceFunction":
|
|
823
|
-
case "CapturingGroup":
|
|
824
|
-
case "Group":
|
|
825
|
-
r(a.body, a);
|
|
826
|
-
break;
|
|
827
824
|
case "Alternative":
|
|
825
|
+
case "CapturingGroup":
|
|
828
826
|
case "CharacterClass":
|
|
827
|
+
case "Group":
|
|
828
|
+
case "LookaroundAssertion":
|
|
829
829
|
r(a.body, a);
|
|
830
830
|
break;
|
|
831
831
|
case "Assertion":
|
|
@@ -840,9 +840,6 @@ function jn(e, t, n = null) {
|
|
|
840
840
|
case "CharacterClassRange":
|
|
841
841
|
i(a.min, a, "min"), i(a.max, a, "max");
|
|
842
842
|
break;
|
|
843
|
-
case "LookaroundAssertion":
|
|
844
|
-
r(a.body, a);
|
|
845
|
-
break;
|
|
846
843
|
case "Quantifier":
|
|
847
844
|
i(a.body, a, "body");
|
|
848
845
|
break;
|
|
@@ -1866,7 +1863,7 @@ var Dh = {
|
|
|
1866
1863
|
}
|
|
1867
1864
|
},
|
|
1868
1865
|
exit({ node: e }, { openRefs: t }) {
|
|
1869
|
-
t.delete(e.number);
|
|
1866
|
+
t.get(e.number) === e && t.delete(e.number);
|
|
1870
1867
|
}
|
|
1871
1868
|
},
|
|
1872
1869
|
Group: {
|
|
@@ -20753,7 +20750,7 @@ ${c}` : c;
|
|
|
20753
20750
|
let r = this.rules.inline.emStrongLDelim.exec(e);
|
|
20754
20751
|
if (!(!r || !r[1] && !r[2] && !r[3] && !r[4] || r[4] && n.match(this.rules.other.unicodeAlphaNumeric)) && (!(r[1] || r[3]) || !n || this.rules.inline.punctuation.exec(n))) {
|
|
20755
20752
|
let i = [...r[0]].length - 1, a, s, u = i, o = 0, l = r[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
|
|
20756
|
-
for (l.lastIndex = 0, t = t.slice(-1 * e.length + i); (r = l.exec(t))
|
|
20753
|
+
for (l.lastIndex = 0, t = t.slice(-1 * e.length + i); (r = l.exec(t)) !== null; ) {
|
|
20757
20754
|
if (a = r[1] || r[2] || r[3] || r[4] || r[5] || r[6], !a) continue;
|
|
20758
20755
|
if (s = [...a].length, r[3] || r[4]) {
|
|
20759
20756
|
u += s;
|
|
@@ -20789,7 +20786,7 @@ ${c}` : c;
|
|
|
20789
20786
|
let r = this.rules.inline.delLDelim.exec(e);
|
|
20790
20787
|
if (r && (!r[1] || !n || this.rules.inline.punctuation.exec(n))) {
|
|
20791
20788
|
let i = [...r[0]].length - 1, a, s, u = i, o = this.rules.inline.delRDelim;
|
|
20792
|
-
for (o.lastIndex = 0, t = t.slice(-1 * e.length + i); (r = o.exec(t))
|
|
20789
|
+
for (o.lastIndex = 0, t = t.slice(-1 * e.length + i); (r = o.exec(t)) !== null; ) {
|
|
20793
20790
|
if (a = r[1] || r[2] || r[3] || r[4] || r[5] || r[6], !a || (s = [...a].length, s !== i)) continue;
|
|
20794
20791
|
if (r[3] || r[4]) {
|
|
20795
20792
|
u += s;
|
|
@@ -20963,11 +20960,11 @@ ${c}` : c;
|
|
|
20963
20960
|
let r = t, i = null;
|
|
20964
20961
|
if (this.tokens.links) {
|
|
20965
20962
|
let o = Object.keys(this.tokens.links);
|
|
20966
|
-
if (o.length > 0) for (; (i = this.tokenizer.rules.inline.reflinkSearch.exec(r))
|
|
20963
|
+
if (o.length > 0) for (; (i = this.tokenizer.rules.inline.reflinkSearch.exec(r)) !== null; ) o.includes(i[0].slice(i[0].lastIndexOf("[") + 1, -1)) && (r = r.slice(0, i.index) + "[" + "a".repeat(i[0].length - 2) + "]" + r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex));
|
|
20967
20964
|
}
|
|
20968
|
-
for (; (i = this.tokenizer.rules.inline.anyPunctuation.exec(r))
|
|
20965
|
+
for (; (i = this.tokenizer.rules.inline.anyPunctuation.exec(r)) !== null; ) r = r.slice(0, i.index) + "++" + r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);
|
|
20969
20966
|
let a;
|
|
20970
|
-
for (; (i = this.tokenizer.rules.inline.blockSkip.exec(r))
|
|
20967
|
+
for (; (i = this.tokenizer.rules.inline.blockSkip.exec(r)) !== null; ) a = i[2] ? i[2].length : 0, r = r.slice(0, i.index + a) + "[" + "a".repeat(i[0].length - a - 2) + "]" + r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);
|
|
20971
20968
|
r = this.options.hooks?.emStrongMask?.call({ lexer: this }, r) ?? r;
|
|
20972
20969
|
let s = !1, u = "";
|
|
20973
20970
|
for (; t; ) {
|
|
@@ -21358,11 +21355,11 @@ ${t}</tr>
|
|
|
21358
21355
|
emStrongMask(e) {
|
|
21359
21356
|
return e;
|
|
21360
21357
|
}
|
|
21361
|
-
provideLexer() {
|
|
21362
|
-
return
|
|
21358
|
+
provideLexer(e = this.block) {
|
|
21359
|
+
return e ? Ke.lex : Ke.lexInline;
|
|
21363
21360
|
}
|
|
21364
|
-
provideParser() {
|
|
21365
|
-
return
|
|
21361
|
+
provideParser(e = this.block) {
|
|
21362
|
+
return e ? et.parse : et.parseInline;
|
|
21366
21363
|
}
|
|
21367
21364
|
}, p_ = class {
|
|
21368
21365
|
defaults = ls();
|
|
@@ -21497,16 +21494,16 @@ ${t}</tr>
|
|
|
21497
21494
|
if (typeof n > "u" || n === null) return s(new Error("marked(): input parameter is undefined or null"));
|
|
21498
21495
|
if (typeof n != "string") return s(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(n) + ", string expected"));
|
|
21499
21496
|
if (a.hooks && (a.hooks.options = a, a.hooks.block = t), a.async) return (async () => {
|
|
21500
|
-
let u = a.hooks ? await a.hooks.preprocess(n) : n, o = await (a.hooks ? await a.hooks.provideLexer() : t ? Ke.lex : Ke.lexInline)(u, a), l = a.hooks ? await a.hooks.processAllTokens(o) : o;
|
|
21497
|
+
let u = a.hooks ? await a.hooks.preprocess(n) : n, o = await (a.hooks ? await a.hooks.provideLexer(t) : t ? Ke.lex : Ke.lexInline)(u, a), l = a.hooks ? await a.hooks.processAllTokens(o) : o;
|
|
21501
21498
|
a.walkTokens && await Promise.all(this.walkTokens(l, a.walkTokens));
|
|
21502
|
-
let c = await (a.hooks ? await a.hooks.provideParser() : t ? et.parse : et.parseInline)(l, a);
|
|
21499
|
+
let c = await (a.hooks ? await a.hooks.provideParser(t) : t ? et.parse : et.parseInline)(l, a);
|
|
21503
21500
|
return a.hooks ? await a.hooks.postprocess(c) : c;
|
|
21504
21501
|
})().catch(s);
|
|
21505
21502
|
try {
|
|
21506
21503
|
a.hooks && (n = a.hooks.preprocess(n));
|
|
21507
|
-
let u = (a.hooks ? a.hooks.provideLexer() : t ? Ke.lex : Ke.lexInline)(n, a);
|
|
21504
|
+
let u = (a.hooks ? a.hooks.provideLexer(t) : t ? Ke.lex : Ke.lexInline)(n, a);
|
|
21508
21505
|
a.hooks && (u = a.hooks.processAllTokens(u)), a.walkTokens && this.walkTokens(u, a.walkTokens);
|
|
21509
|
-
let o = (a.hooks ? a.hooks.provideParser() : t ? et.parse : et.parseInline)(u, a);
|
|
21506
|
+
let o = (a.hooks ? a.hooks.provideParser(t) : t ? et.parse : et.parseInline)(u, a);
|
|
21510
21507
|
return a.hooks && (o = a.hooks.postprocess(o)), o;
|
|
21511
21508
|
} catch (u) {
|
|
21512
21509
|
return s(u);
|
|
@@ -21684,7 +21681,7 @@ var gd = en(!1), N_ = () => Ce(gd), Es = (...e) => Po(Mo(e)), I_ = (e, t) => {
|
|
|
21684
21681
|
for (; t > 0 && e[t - 1] === `
|
|
21685
21682
|
`; ) t--;
|
|
21686
21683
|
return e.slice(0, t);
|
|
21687
|
-
}, B_ = Do(() => import("./highlighted-body-OFNGDK62-
|
|
21684
|
+
}, B_ = Do(() => import("./highlighted-body-OFNGDK62-BiqCpm9-.js").then((e) => ({ default: e.HighlightedCodeBlockBody }))), F_ = ({ code: e, language: t, className: n, children: r, isIncomplete: i = !1, startLine: a, lineNumbers: s, ...u }) => {
|
|
21688
21685
|
let o = Q(), l = ce(() => v_(e), [e]), c = ce(() => ({ bg: "transparent", fg: "inherit", tokens: l.split(`
|
|
21689
21686
|
`).map((d) => [{ content: d, color: "inherit", bgColor: "transparent", htmlStyle: {}, offset: 0 }]) }), [l]);
|
|
21690
21687
|
return C(bd.Provider, { value: { code: e }, children: J(P_, { isIncomplete: i, language: t, children: [C(M_, { language: t }), r ? C("div", { className: o("pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end"), children: C("div", { className: o("pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur"), "data-streamdown": "code-block-actions", children: r }) }) : null, C(Xi, { fallback: C(D_, { className: n, language: t, lineNumbers: s, result: c, startLine: a, ...u }), children: C(B_, { className: n, code: l, language: t, lineNumbers: s, raw: c, startLine: a, ...u }) })] }) });
|
|
@@ -22026,7 +22023,7 @@ var gd = en(!1), N_ = () => Ce(gd), Es = (...e) => Po(Mo(e)), I_ = (e, t) => {
|
|
|
22026
22023
|
}, sA = ({ children: e, className: t, showControls: n, showCopy: r = !0, showDownload: i = !0, showFullscreen: a = !0, ...s }) => {
|
|
22027
22024
|
let u = Q(), o = n && r, l = n && i, c = n && a, d = o || l || c;
|
|
22028
22025
|
return J("div", { className: u("my-4 flex flex-col gap-2 rounded-lg border border-border bg-sidebar p-2"), "data-streamdown": "table-wrapper", children: [d ? J("div", { className: u("flex items-center justify-end gap-1"), children: [o ? C(Ad, {}) : null, l ? C(xd, {}) : null, c ? C(aA, { showCopy: o, showDownload: l, children: e }) : null] }) : null, C("div", { className: u("border-collapse overflow-x-auto overflow-y-auto rounded-md border border-border bg-background"), children: C("table", { className: u("w-full divide-y divide-border", t), "data-streamdown": "table", ...s, children: e }) })] });
|
|
22029
|
-
}, uA = /startLine=(\d+)/, oA = /\bnoLineNumbers\b/, lA = Do(() => import("./mermaid-GHXKKRXX-
|
|
22026
|
+
}, uA = /startLine=(\d+)/, oA = /\bnoLineNumbers\b/, lA = Do(() => import("./mermaid-GHXKKRXX-4WUOeY7t.js").then((e) => ({ default: e.Mermaid }))), cA = /language-([^\s]+)/;
|
|
22030
22027
|
function bi(e, t) {
|
|
22031
22028
|
if (!(e != null && e.position || t != null && t.position)) return !0;
|
|
22032
22029
|
if (!(e != null && e.position && t != null && t.position)) return !1;
|
|
@@ -11,7 +11,7 @@ import { Badge as N } from "./components/ui/atoms/badge.js";
|
|
|
11
11
|
import { ByocBadge as U } from "./components/ui/atoms/byoc-badge.js";
|
|
12
12
|
import "./components/ui/atoms/chart.js";
|
|
13
13
|
import "./components/ui/atoms/json-highlight.js";
|
|
14
|
-
import "./markdown-
|
|
14
|
+
import "./markdown-Cv6uZPhi.js";
|
|
15
15
|
import "./components/ui/atoms/mobile-tooltip.js";
|
|
16
16
|
import { ProBadge as _ } from "./components/ui/atoms/pro-badge.js";
|
|
17
17
|
import "./react-resizable-panels-BqIpIFl2.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as r from "react";
|
|
2
2
|
import { a as E } from "./useBaseUiId-C8Dq0BQq.js";
|
|
3
3
|
import { u as P } from "./popupStateMapping-BT9Y_jIq.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { g as S } from "./element-DSo91iOi.js";
|
|
5
|
+
import { E as F } from "./useRenderElement-DNB2vtF1.js";
|
|
6
6
|
const y = /* @__PURE__ */ new Map([["select", "listbox"], ["combobox", "listbox"], ["label", !1]]);
|
|
7
7
|
function $(c, g = {}) {
|
|
8
8
|
const a = "rootStore" in c ? c.rootStore : c, l = a.useState("open"), u = a.useState("floatingId"), I = a.useState("domReferenceElement"), d = a.useState("floatingElement"), {
|
|
9
9
|
role: o = "dialog"
|
|
10
|
-
} = g, x = E(), s = I?.id || x, t = r.useMemo(() =>
|
|
10
|
+
} = g, x = E(), s = I?.id || x, t = r.useMemo(() => S(d)?.id || u, [d, u]), e = y.get(o) ?? o, m = P() != null, i = r.useMemo(() => e === "tooltip" || o === "label" ? F : {
|
|
11
11
|
"aria-haspopup": e === "alertdialog" ? "dialog" : e,
|
|
12
12
|
"aria-expanded": "false",
|
|
13
13
|
...e === "listbox" && {
|
package/package.json
CHANGED