@handijitcom/ui 3.6.1 → 3.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +275 -36
- package/build/chat.cjs +3 -3
- package/build/chat.cjs.map +1 -1
- package/build/chat.css +1 -1
- package/build/chat.js +168 -160
- package/build/chat.js.map +1 -1
- package/build/components/AddToCart/index.cjs +2 -0
- package/build/components/AddToCart/index.cjs.map +1 -0
- package/build/components/AddToCart/index.d.cts +31 -0
- package/build/components/AddToCart/index.d.ts +31 -0
- package/build/components/AddToCart/index.js +62 -0
- package/build/components/AddToCart/index.js.map +1 -0
- package/build/components/AddToCart/style.css +1 -0
- package/build/components/Alert/index.cjs +1 -1
- package/build/components/Alert/index.cjs.map +1 -1
- package/build/components/Alert/index.d.cts +7 -0
- package/build/components/Alert/index.d.ts +7 -0
- package/build/components/Alert/index.js +32 -19
- package/build/components/Alert/index.js.map +1 -1
- package/build/components/Alert/style.css +1 -1
- package/build/components/AppShell/style.css +1 -1
- package/build/components/AppliedFilters/style.css +1 -1
- package/build/components/CodeText/index.cjs.map +1 -1
- package/build/components/CodeText/index.js +11 -11
- package/build/components/CodeText/index.js.map +1 -1
- package/build/components/CommandPalette/style.css +1 -1
- package/build/components/Directory/style.css +1 -1
- package/build/components/EmptyState/style.css +1 -1
- package/build/components/FacetSection/index.cjs +1 -1
- package/build/components/FacetSection/index.cjs.map +1 -1
- package/build/components/FacetSection/index.js +145 -138
- package/build/components/FacetSection/index.js.map +1 -1
- package/build/components/FacetSection/style.css +1 -1
- package/build/components/FacetSidebar/index.cjs +1 -1
- package/build/components/FacetSidebar/index.cjs.map +1 -1
- package/build/components/FacetSidebar/index.js +22 -29
- package/build/components/FacetSidebar/index.js.map +1 -1
- package/build/components/Heading/index.cjs +2 -0
- package/build/components/Heading/index.cjs.map +1 -0
- package/build/components/Heading/index.d.cts +34 -0
- package/build/components/Heading/index.d.ts +34 -0
- package/build/components/Heading/index.js +44 -0
- package/build/components/Heading/index.js.map +1 -0
- package/build/components/Heading/style.css +1 -0
- package/build/components/MegaMenu/index.cjs +1 -1
- package/build/components/MegaMenu/index.cjs.map +1 -1
- package/build/components/MegaMenu/index.d.cts +5 -1
- package/build/components/MegaMenu/index.d.ts +5 -1
- package/build/components/MegaMenu/index.js +131 -111
- package/build/components/MegaMenu/index.js.map +1 -1
- package/build/components/MegaMenu/style.css +1 -1
- package/build/components/Modal/style.css +1 -1
- package/build/components/NotificationCenter/style.css +1 -1
- package/build/components/PageHeader/style.css +1 -1
- package/build/components/PartNumberList/index.cjs +2 -0
- package/build/components/PartNumberList/index.cjs.map +1 -0
- package/build/components/PartNumberList/index.d.cts +30 -0
- package/build/components/PartNumberList/index.d.ts +30 -0
- package/build/components/PartNumberList/index.js +36 -0
- package/build/components/PartNumberList/index.js.map +1 -0
- package/build/components/PartNumberList/style.css +1 -0
- package/build/components/Price/index.cjs +1 -1
- package/build/components/Price/index.cjs.map +1 -1
- package/build/components/Price/index.d.cts +5 -1
- package/build/components/Price/index.d.ts +5 -1
- package/build/components/Price/index.js +31 -32
- package/build/components/Price/index.js.map +1 -1
- package/build/components/Price/style.css +1 -1
- package/build/components/ProductCard/index.cjs +2 -0
- package/build/components/ProductCard/index.cjs.map +1 -0
- package/build/components/ProductCard/index.d.cts +55 -0
- package/build/components/ProductCard/index.d.ts +55 -0
- package/build/components/ProductCard/index.js +58 -0
- package/build/components/ProductCard/index.js.map +1 -0
- package/build/components/ProductCard/style.css +1 -0
- package/build/components/ProductRow/columns.cjs +2 -0
- package/build/components/ProductRow/columns.cjs.map +1 -0
- package/build/components/ProductRow/columns.d.cts +27 -0
- package/build/components/ProductRow/columns.d.ts +27 -0
- package/build/components/ProductRow/columns.js +83 -0
- package/build/components/ProductRow/columns.js.map +1 -0
- package/build/components/ProductRow/index.cjs +2 -0
- package/build/components/ProductRow/index.cjs.map +1 -0
- package/build/components/ProductRow/index.d.cts +25 -0
- package/build/components/ProductRow/index.d.ts +25 -0
- package/build/components/ProductRow/index.js +43 -0
- package/build/components/ProductRow/index.js.map +1 -0
- package/build/components/ProductRow/parts.cjs +2 -0
- package/build/components/ProductRow/parts.cjs.map +1 -0
- package/build/components/ProductRow/parts.d.cts +32 -0
- package/build/components/ProductRow/parts.d.ts +32 -0
- package/build/components/ProductRow/parts.js +31 -0
- package/build/components/ProductRow/parts.js.map +1 -0
- package/build/components/ProductRow/style.css +1 -0
- package/build/components/QuantityStepper/index.cjs +1 -1
- package/build/components/QuantityStepper/index.cjs.map +1 -1
- package/build/components/QuantityStepper/index.js +28 -28
- package/build/components/QuantityStepper/index.js.map +1 -1
- package/build/components/Radio/style.css +1 -1
- package/build/components/SectionHeader/style.css +1 -1
- package/build/components/SpecTable/index.cjs +2 -0
- package/build/components/SpecTable/index.cjs.map +1 -0
- package/build/components/SpecTable/index.d.cts +25 -0
- package/build/components/SpecTable/index.d.ts +25 -0
- package/build/components/SpecTable/index.js +25 -0
- package/build/components/SpecTable/index.js.map +1 -0
- package/build/components/SpecTable/style.css +1 -0
- package/build/components/Stat/index.cjs +1 -1
- package/build/components/Stat/index.cjs.map +1 -1
- package/build/components/Stat/index.d.cts +7 -3
- package/build/components/Stat/index.d.ts +7 -3
- package/build/components/Stat/index.js +61 -66
- package/build/components/Stat/index.js.map +1 -1
- package/build/components/StatCard/StatDelta.cjs +2 -0
- package/build/components/StatCard/StatDelta.cjs.map +1 -0
- package/build/components/StatCard/StatDelta.d.cts +17 -0
- package/build/components/StatCard/StatDelta.d.ts +17 -0
- package/build/components/StatCard/StatDelta.js +45 -0
- package/build/components/StatCard/StatDelta.js.map +1 -0
- package/build/components/StatCard/index.cjs +2 -0
- package/build/components/StatCard/index.cjs.map +1 -0
- package/build/components/StatCard/index.d.cts +36 -0
- package/build/components/StatCard/index.d.ts +36 -0
- package/build/components/StatCard/index.js +60 -0
- package/build/components/StatCard/index.js.map +1 -0
- package/build/components/StatCard/style.css +1 -0
- package/build/components/StatusCell/index.cjs +2 -0
- package/build/components/StatusCell/index.cjs.map +1 -0
- package/build/components/StatusCell/index.d.cts +28 -0
- package/build/components/StatusCell/index.d.ts +28 -0
- package/build/components/StatusCell/index.js +24 -0
- package/build/components/StatusCell/index.js.map +1 -0
- package/build/components/StatusCell/style.css +1 -0
- package/build/components/StockStatus/index.cjs +2 -0
- package/build/components/StockStatus/index.cjs.map +1 -0
- package/build/components/StockStatus/index.d.cts +28 -0
- package/build/components/StockStatus/index.d.ts +28 -0
- package/build/components/StockStatus/index.js +36 -0
- package/build/components/StockStatus/index.js.map +1 -0
- package/build/components/StockStatus/style.css +1 -0
- package/build/components/Table/style.css +1 -1
- package/build/components/Tabs/index.cjs +1 -1
- package/build/components/Tabs/index.cjs.map +1 -1
- package/build/components/Tabs/index.d.cts +26 -1
- package/build/components/Tabs/index.d.ts +26 -1
- package/build/components/Tabs/index.js +140 -112
- package/build/components/Tabs/index.js.map +1 -1
- package/build/components/Tabs/style.css +1 -1
- package/build/components/Text/index.cjs +2 -0
- package/build/components/Text/index.cjs.map +1 -0
- package/build/components/Text/index.d.cts +49 -0
- package/build/components/Text/index.d.ts +49 -0
- package/build/components/Text/index.js +47 -0
- package/build/components/Text/index.js.map +1 -0
- package/build/components/Text/style.css +1 -0
- package/build/components/Tooltip/index.cjs +1 -1
- package/build/components/Tooltip/index.cjs.map +1 -1
- package/build/components/Tooltip/index.js +27 -27
- package/build/components/Tooltip/index.js.map +1 -1
- package/build/components/VehicleTypeList/index.cjs +2 -0
- package/build/components/VehicleTypeList/index.cjs.map +1 -0
- package/build/components/VehicleTypeList/index.d.cts +17 -0
- package/build/components/VehicleTypeList/index.d.ts +17 -0
- package/build/components/VehicleTypeList/index.js +47 -0
- package/build/components/VehicleTypeList/index.js.map +1 -0
- package/build/components/VehicleTypeList/style.css +1 -0
- package/build/design/index.cjs +12 -2
- package/build/design/index.cjs.map +1 -1
- package/build/design/index.d.cts +1 -5
- package/build/design/index.d.mts +1 -5
- package/build/design/index.mjs +12 -2
- package/build/design/index.mjs.map +1 -1
- package/build/design/index.umd.cjs +1 -1
- package/build/design/index.umd.cjs.map +1 -1
- package/build/design/tokens.css +29 -4
- package/build/design/tokens.json +42 -2
- package/build/design/tokens.scss +55 -0
- package/build/helpers/text.helper.cjs +1 -1
- package/build/helpers/text.helper.cjs.map +1 -1
- package/build/helpers/text.helper.d.cts +5 -0
- package/build/helpers/text.helper.d.ts +5 -0
- package/build/helpers/text.helper.js +3 -2
- package/build/helpers/text.helper.js.map +1 -1
- package/build/index.cjs +1 -1
- package/build/index.d.cts +13 -2
- package/build/index.d.ts +13 -2
- package/build/index.js +203 -179
- package/build/index.js.map +1 -1
- package/build/scss/_mixins.scss +101 -13
- package/build/scss/_variables.scss +5 -1
- package/build/styles.css +43 -17
- package/build/types/chat/DescriptionList/index.d.cts +6 -0
- package/build/types/chat/DescriptionList/index.d.ts +6 -0
- package/build/types/stat.type.d.cts +2 -0
- package/build/types/stat.type.d.ts +2 -0
- package/build/types/theme.type.d.cts +25 -0
- package/build/types/theme.type.d.ts +25 -0
- package/build/types/types/theme.type.d.cts +25 -0
- package/build/types/types/theme.type.d.ts +25 -0
- package/package.json +111 -1
package/build/chat.js
CHANGED
|
@@ -20,20 +20,20 @@ const m = (...e) => {
|
|
|
20
20
|
thread__column: mt,
|
|
21
21
|
thread__dock: pt,
|
|
22
22
|
thread__latest: ht
|
|
23
|
-
}, bt = ({ children: e, dock: n, isStreaming: t, label:
|
|
23
|
+
}, bt = ({ children: e, dock: n, isStreaming: t, label: o, className: i, testId: r }) => {
|
|
24
24
|
var f, b, y;
|
|
25
25
|
const { labels: s } = C(), l = Pe(), c = L(null), { isAtEnd: _, scrollToEnd: d } = Ke(c), u = L(t);
|
|
26
26
|
return U(() => {
|
|
27
27
|
var v;
|
|
28
28
|
u.current && !t && l(x("ChatThread.replyReady", (v = s == null ? void 0 : s.chat) == null ? void 0 : v.replyReady)), u.current = t;
|
|
29
|
-
}, [l, t, (f = s == null ? void 0 : s.chat) == null ? void 0 : f.replyReady]), /* @__PURE__ */ p("div", { className: m(D.thread,
|
|
29
|
+
}, [l, t, (f = s == null ? void 0 : s.chat) == null ? void 0 : f.replyReady]), /* @__PURE__ */ p("div", { className: m(D.thread, i), "data-testid": r, children: [
|
|
30
30
|
/* @__PURE__ */ a(
|
|
31
31
|
"div",
|
|
32
32
|
{
|
|
33
33
|
ref: c,
|
|
34
34
|
className: D.thread__scroll,
|
|
35
35
|
role: "region",
|
|
36
|
-
"aria-label": x("ChatThread.label",
|
|
36
|
+
"aria-label": x("ChatThread.label", o, (b = s == null ? void 0 : s.chat) == null ? void 0 : b.thread),
|
|
37
37
|
tabIndex: 0,
|
|
38
38
|
children: /* @__PURE__ */ a("div", { className: D.thread__column, children: e })
|
|
39
39
|
}
|
|
@@ -68,21 +68,21 @@ const m = (...e) => {
|
|
|
68
68
|
author: e,
|
|
69
69
|
children: n,
|
|
70
70
|
avatar: t,
|
|
71
|
-
actions:
|
|
72
|
-
isStreaming:
|
|
73
|
-
className:
|
|
71
|
+
actions: o,
|
|
72
|
+
isStreaming: i,
|
|
73
|
+
className: r,
|
|
74
74
|
testId: s
|
|
75
75
|
}) => /* @__PURE__ */ p(
|
|
76
76
|
"article",
|
|
77
77
|
{
|
|
78
|
-
className: m(M.message, M[`message--${e}`],
|
|
79
|
-
"aria-busy":
|
|
78
|
+
className: m(M.message, M[`message--${e}`], r),
|
|
79
|
+
"aria-busy": i || void 0,
|
|
80
80
|
"data-testid": s,
|
|
81
81
|
children: [
|
|
82
82
|
e === "assistant" && t !== void 0 && /* @__PURE__ */ a("div", { className: M.message__avatar, children: t }),
|
|
83
83
|
/* @__PURE__ */ p("div", { className: M.message__main, children: [
|
|
84
84
|
/* @__PURE__ */ a("div", { className: M.message__body, children: n }),
|
|
85
|
-
|
|
85
|
+
o !== void 0 && /* @__PURE__ */ a("div", { className: M.message__actions, children: o })
|
|
86
86
|
] })
|
|
87
87
|
]
|
|
88
88
|
}
|
|
@@ -101,9 +101,9 @@ const m = (...e) => {
|
|
|
101
101
|
value: e,
|
|
102
102
|
onChange: n,
|
|
103
103
|
onSubmit: t,
|
|
104
|
-
onStop:
|
|
105
|
-
isBusy:
|
|
106
|
-
isDisabled:
|
|
104
|
+
onStop: o,
|
|
105
|
+
isBusy: i,
|
|
106
|
+
isDisabled: r,
|
|
107
107
|
isSubmitDisabled: s,
|
|
108
108
|
placeholder: l,
|
|
109
109
|
label: c,
|
|
@@ -115,19 +115,19 @@ const m = (...e) => {
|
|
|
115
115
|
testId: y
|
|
116
116
|
}, v) => {
|
|
117
117
|
var _e, ue;
|
|
118
|
-
const { labels: w } = C(),
|
|
118
|
+
const { labels: w } = C(), B = e.trim() === "";
|
|
119
119
|
U(() => {
|
|
120
|
-
if (!
|
|
120
|
+
if (!i || !o) return;
|
|
121
121
|
const T = (me) => {
|
|
122
|
-
me.key !== "Escape" || me.defaultPrevented || ot({ includeTransient: !0 }) ||
|
|
122
|
+
me.key !== "Escape" || me.defaultPrevented || ot({ includeTransient: !0 }) || o();
|
|
123
123
|
};
|
|
124
124
|
return document.addEventListener("keydown", T), () => document.removeEventListener("keydown", T);
|
|
125
|
-
}, [
|
|
125
|
+
}, [i, o]);
|
|
126
126
|
const Ye = (T) => {
|
|
127
|
-
T.key !== "Enter" || T.shiftKey || T.nativeEvent.isComposing || (T.preventDefault(), !
|
|
127
|
+
T.key !== "Enter" || T.shiftKey || T.nativeEvent.isComposing || (T.preventDefault(), !B && !i && !r && !s && t());
|
|
128
128
|
};
|
|
129
129
|
return /* @__PURE__ */ p("div", { className: m(R.prompt, b), "data-testid": y, children: [
|
|
130
|
-
/* @__PURE__ */ p("div", { className: m(R.prompt__box,
|
|
130
|
+
/* @__PURE__ */ p("div", { className: m(R.prompt__box, r && R["prompt__box--disabled"]), children: [
|
|
131
131
|
u !== void 0 && /* @__PURE__ */ a("div", { className: R.prompt__start, children: u }),
|
|
132
132
|
/* @__PURE__ */ a(
|
|
133
133
|
rt,
|
|
@@ -141,21 +141,21 @@ const m = (...e) => {
|
|
|
141
141
|
value: e,
|
|
142
142
|
placeholder: l,
|
|
143
143
|
"aria-label": c ?? l,
|
|
144
|
-
disabled:
|
|
144
|
+
disabled: r,
|
|
145
145
|
onChange: (T) => n(T.target.value),
|
|
146
146
|
onKeyDown: Ye
|
|
147
147
|
}
|
|
148
148
|
),
|
|
149
149
|
f !== void 0 && /* @__PURE__ */ a("div", { className: R.prompt__end, children: f }),
|
|
150
|
-
|
|
150
|
+
i ? /* @__PURE__ */ a(
|
|
151
151
|
te,
|
|
152
152
|
{
|
|
153
153
|
icon: /* @__PURE__ */ a(nt, { "aria-hidden": !0 }),
|
|
154
154
|
label: x("PromptInput.stop", (_e = w == null ? void 0 : w.chat) == null ? void 0 : _e.stop),
|
|
155
155
|
variant: "secondary",
|
|
156
156
|
shape: "round",
|
|
157
|
-
onClick:
|
|
158
|
-
disabled: !
|
|
157
|
+
onClick: o,
|
|
158
|
+
disabled: !o
|
|
159
159
|
}
|
|
160
160
|
) : /* @__PURE__ */ a(
|
|
161
161
|
te,
|
|
@@ -165,7 +165,7 @@ const m = (...e) => {
|
|
|
165
165
|
variant: "solid",
|
|
166
166
|
shape: "round",
|
|
167
167
|
onClick: t,
|
|
168
|
-
disabled:
|
|
168
|
+
disabled: B || r || s
|
|
169
169
|
}
|
|
170
170
|
)
|
|
171
171
|
] }),
|
|
@@ -179,10 +179,10 @@ const m = (...e) => {
|
|
|
179
179
|
card: Rt,
|
|
180
180
|
card__label: Ot,
|
|
181
181
|
card__description: Lt
|
|
182
|
-
}, zt = ({ label: e, items: n, onPick: t, className:
|
|
183
|
-
/* @__PURE__ */ a("span", { className: H.card__label, children:
|
|
184
|
-
|
|
185
|
-
] },
|
|
182
|
+
}, zt = ({ label: e, items: n, onPick: t, className: o, testId: i }) => /* @__PURE__ */ a("div", { role: "group", "aria-label": e, className: m(H.grid, o), "data-testid": i, children: n.map((r) => /* @__PURE__ */ p("button", { type: "button", className: H.card, onClick: () => t(r), children: [
|
|
183
|
+
/* @__PURE__ */ a("span", { className: H.card__label, children: r.label }),
|
|
184
|
+
r.description && /* @__PURE__ */ a("span", { className: H.card__description, children: r.description })
|
|
185
|
+
] }, r.id)) }), ta = /* @__PURE__ */ g(
|
|
186
186
|
/* @__PURE__ */ k(zt, "PromptSuggestions")
|
|
187
187
|
), It = "ui-prose-kAp6f", Dt = {
|
|
188
188
|
prose: It
|
|
@@ -201,23 +201,23 @@ const m = (...e) => {
|
|
|
201
201
|
return e;
|
|
202
202
|
}
|
|
203
203
|
let n = "", t = 0;
|
|
204
|
-
const
|
|
204
|
+
const o = () => `
|
|
205
205
|
${Kt.repeat(t)}`;
|
|
206
|
-
for (let
|
|
207
|
-
const
|
|
208
|
-
if (
|
|
209
|
-
const s = Ft(e,
|
|
210
|
-
n += e.slice(
|
|
211
|
-
} else if (
|
|
212
|
-
const s = jt(e,
|
|
213
|
-
e[s] === (
|
|
214
|
-
} else
|
|
206
|
+
for (let i = 0; i < e.length; i++) {
|
|
207
|
+
const r = e[i];
|
|
208
|
+
if (r === '"') {
|
|
209
|
+
const s = Ft(e, i);
|
|
210
|
+
n += e.slice(i, s), i = s - 1;
|
|
211
|
+
} else if (r === "{" || r === "[") {
|
|
212
|
+
const s = jt(e, i + 1);
|
|
213
|
+
e[s] === (r === "{" ? "}" : "]") ? (n += r + e[s], i = s) : (t++, n += r + o());
|
|
214
|
+
} else r === "}" || r === "]" ? (t--, n += o() + r) : r === "," ? n += `,${o()}` : r === ":" ? n += ": " : /\s/.test(r) || (n += r);
|
|
215
215
|
}
|
|
216
216
|
return n;
|
|
217
217
|
}, Ut = (e, n) => {
|
|
218
218
|
const t = e.replace(Pt, "").trimEnd();
|
|
219
219
|
return Bt(n) ? Zt(t) : t;
|
|
220
|
-
}, h = (e) => new Set(e.split(" ")), $ = /"(?:[^"\\\n]|\\.)*"?/, G = /'(?:[^'\\\n]|\\.)*'?/, Ze = /`(?:[^`\\]|\\[\s\S])*`?/, le = /"""[\s\S]*?(?:"""|(?![\s\S]))/, Gt = /'''[\s\S]*?(?:'''|(?![\s\S]))/, qt = /'(?:\\[^\n]{1,8}?|[^'\\\n])'/, ne = /\/\/.*/, q = /\/\*[\s\S]*?(?:\*\/|(?![\s\S]))/, z = /#.*/,
|
|
220
|
+
}, h = (e) => new Set(e.split(" ")), $ = /"(?:[^"\\\n]|\\.)*"?/, G = /'(?:[^'\\\n]|\\.)*'?/, Ze = /`(?:[^`\\]|\\[\s\S])*`?/, le = /"""[\s\S]*?(?:"""|(?![\s\S]))/, Gt = /'''[\s\S]*?(?:'''|(?![\s\S]))/, qt = /'(?:\\[^\n]{1,8}?|[^'\\\n])'/, ne = /\/\/.*/, q = /\/\*[\s\S]*?(?:\*\/|(?![\s\S]))/, z = /#.*/, K = /\b(?:0[xX][\dA-Fa-f_]+|0[bB][01_]+|0[oO][0-7_]+|\d[\d_]*(?:\.\d[\d_]*)?(?:[eE][+-]?\d+)?)[A-Za-z]*\b/, I = /[A-Za-z_]\w*/, se = /[{}[\]();,.:]/, de = /@[A-Za-z_][\w.]*/, Ht = /[\w$)\]]/, be = /\S/, fe = "break case catch class const continue debugger default delete do else export extends finally for function if import in instanceof let new return super switch this throw try typeof var void while with yield async await of static get set as from", Yt = "type interface enum implements namespace declare abstract private protected public readonly keyof infer is satisfies override module asserts unique", Wt = "true false null undefined NaN Infinity", Xt = "string number boolean any unknown never object symbol bigint", Jt = "int long short char float double bool boolean byte void unsigned signed string str usize isize u8 u16 u32 u64 u128 i8 i16 i32 i64 i128 f32 f64 rune uint uint8 uint16 uint32 uint64 int8 int16 int32 int64 float32 float64 error any decimal size_t", Qt = "true false null nil nullptr NULL", Ue = "auto break case const continue default do else enum extern for goto if inline register restrict return sizeof static struct switch typedef union volatile while", Vt = `${Ue} alignas alignof catch class constexpr consteval const_cast decltype delete dynamic_cast explicit export friend mutable namespace new noexcept operator private protected public reinterpret_cast static_assert static_cast template this thread_local throw try typeid typename using virtual override final concept requires co_await co_return co_yield`, en = "abstract as async await base break case catch checked class const continue default delegate do dynamic else enum event explicit extern finally fixed for foreach get goto if implicit in init interface internal is lock namespace new operator out override params partial private protected public readonly record ref return sealed set sizeof stackalloc static struct switch this throw try typeof unchecked unsafe using var virtual volatile when where while yield", tn = "abstract assert break case catch class const continue default do else enum extends final finally for goto if implements import instanceof interface native new package permits private protected public record return sealed static strictfp super switch synchronized this throw throws transient try var volatile while yield", nn = "abstract annotation as break by catch class companion const constructor continue crossinline data do else enum external final finally for fun get if import in infix init inline inner interface internal is lateinit noinline object open operator out override package private protected public reified return sealed set super suspend this throw try typealias val var vararg when where while", sn = "actor as associatedtype async await break case catch class continue default defer deinit do else enum extension fallthrough fileprivate final for func guard if import in init inout internal is lazy let mutating open operator override private protocol public repeat rethrows return self Self some static struct subscript super switch throw throws try typealias var weak where while", an = "break case chan const continue default defer else fallthrough for func go goto if import interface map package range return select struct switch type var", rn = "as async await break const continue crate dyn else enum extern fn for if impl in let loop match mod move mut pub ref return self Self static struct super trait type unsafe use where while", on = "abstract and array as break callable case catch class clone const continue declare default do echo else elseif empty extends final finally fn for foreach function global goto if implements include include_once instanceof insteadof interface isset list match namespace new or print private protected public readonly require require_once return static switch throw trait try unset use var while xor yield", cn = "if then else elif fi for while until do done case esac in function return local export select time break continue declare readonly unset shift source alias exit", ln = "FROM AS RUN CMD LABEL EXPOSE ENV ADD COPY ENTRYPOINT VOLUME USER WORKDIR ARG ONBUILD STOPSIGNAL HEALTHCHECK SHELL MAINTAINER", ae = (e, n) => ({
|
|
221
221
|
rules: [
|
|
222
222
|
["comment", ne],
|
|
223
223
|
["comment", q],
|
|
@@ -243,7 +243,7 @@ ${Kt.repeat(t)}`;
|
|
|
243
243
|
["tag", /<[A-Za-z][\w.:-]*/, Ht]
|
|
244
244
|
] : [],
|
|
245
245
|
["name", de],
|
|
246
|
-
["number",
|
|
246
|
+
["number", K],
|
|
247
247
|
["word", /[A-Za-z_$][\w$]*/],
|
|
248
248
|
["punctuation", se]
|
|
249
249
|
],
|
|
@@ -264,7 +264,7 @@ ${Kt.repeat(t)}`;
|
|
|
264
264
|
/* Go'nun ham dizesi. */
|
|
265
265
|
["string", Ze],
|
|
266
266
|
["name", de],
|
|
267
|
-
["number",
|
|
267
|
+
["number", K],
|
|
268
268
|
["word", I],
|
|
269
269
|
["punctuation", se]
|
|
270
270
|
],
|
|
@@ -281,7 +281,7 @@ ${Kt.repeat(t)}`;
|
|
|
281
281
|
],
|
|
282
282
|
["string", /(?:\b[rRbBuUfF]{1,2})?(?:"(?:[^"\\\n]|\\.)*"?|'(?:[^'\\\n]|\\.)*'?)/],
|
|
283
283
|
["name", de],
|
|
284
|
-
["number",
|
|
284
|
+
["number", K],
|
|
285
285
|
["word", I],
|
|
286
286
|
["punctuation", se]
|
|
287
287
|
],
|
|
@@ -299,7 +299,7 @@ ${Kt.repeat(t)}`;
|
|
|
299
299
|
/* Sembol (`:ad`) sabittir; `Foo::Bar` içindeki `:Bar` değil. */
|
|
300
300
|
["number", /:[A-Za-z_]\w*[?!]?/, /[\w:]/],
|
|
301
301
|
["name", /@{1,2}[A-Za-z_]\w*/],
|
|
302
|
-
["number",
|
|
302
|
+
["number", K],
|
|
303
303
|
["word", /[A-Za-z_]\w*[?!]?/],
|
|
304
304
|
["punctuation", se]
|
|
305
305
|
],
|
|
@@ -410,7 +410,7 @@ ${Kt.repeat(t)}`;
|
|
|
410
410
|
["comment", q],
|
|
411
411
|
["string", /'(?:[^']|'')*'?/],
|
|
412
412
|
["name", /"[^"\n]*"?|`[^`\n]*`?/],
|
|
413
|
-
["number",
|
|
413
|
+
["number", K],
|
|
414
414
|
["word", I],
|
|
415
415
|
["punctuation", /[(),;.]/]
|
|
416
416
|
],
|
|
@@ -441,7 +441,7 @@ ${Kt.repeat(t)}`;
|
|
|
441
441
|
["string", $],
|
|
442
442
|
["name", /\$\w+/],
|
|
443
443
|
["name", /@\w+/],
|
|
444
|
-
["number",
|
|
444
|
+
["number", K],
|
|
445
445
|
["word", I],
|
|
446
446
|
["punctuation", /[{}[\]():,!=|]/]
|
|
447
447
|
],
|
|
@@ -459,7 +459,7 @@ ${Kt.repeat(t)}`;
|
|
|
459
459
|
["name", /[^\s"'<>/=]+/],
|
|
460
460
|
["punctuation", /\/?>|=/]
|
|
461
461
|
]
|
|
462
|
-
}), W = () => ae(!1, !1), mn = () => ae(!1, !0), X = () => ae(!0, !1), pn = () => ae(!0, !0),
|
|
462
|
+
}), W = () => ae(!1, !1), mn = () => ae(!1, !0), X = () => ae(!0, !1), pn = () => ae(!0, !0), F = () => Ge(cn), xe = () => Ge(ln), Te = () => A(Ue), re = () => A(Vt), Ae = () => A(en), Ce = () => A(nn), Ee = () => A(an), $e = () => A(rn), hn = () => A(on, [
|
|
463
463
|
["comment", z],
|
|
464
464
|
["name", /\$[A-Za-z_]\w*/],
|
|
465
465
|
["string", G]
|
|
@@ -476,11 +476,11 @@ ${Kt.repeat(t)}`;
|
|
|
476
476
|
tsx: pn,
|
|
477
477
|
json: ke,
|
|
478
478
|
jsonc: ke,
|
|
479
|
-
bash:
|
|
480
|
-
sh:
|
|
481
|
-
shell:
|
|
482
|
-
zsh:
|
|
483
|
-
console:
|
|
479
|
+
bash: F,
|
|
480
|
+
sh: F,
|
|
481
|
+
shell: F,
|
|
482
|
+
zsh: F,
|
|
483
|
+
console: F,
|
|
484
484
|
dockerfile: xe,
|
|
485
485
|
docker: xe,
|
|
486
486
|
python: ye,
|
|
@@ -537,8 +537,8 @@ ${Kt.repeat(t)}`;
|
|
|
537
537
|
]), Le = /* @__PURE__ */ new Map(), qe = (e) => {
|
|
538
538
|
const n = Le.get(e);
|
|
539
539
|
if (n) return n;
|
|
540
|
-
const t = e(),
|
|
541
|
-
return Le.set(e,
|
|
540
|
+
const t = e(), i = { pattern: new RegExp(t.rules.map(([, r]) => `(${r.source})`).join("|"), "gm"), grammar: t };
|
|
541
|
+
return Le.set(e, i), i;
|
|
542
542
|
}, kn = (e) => {
|
|
543
543
|
const n = e == null ? void 0 : e.trim().toLowerCase();
|
|
544
544
|
return n && Object.hasOwn(Re, n) ? Re[n] : void 0;
|
|
@@ -546,28 +546,28 @@ ${Kt.repeat(t)}`;
|
|
|
546
546
|
let t = n - 1;
|
|
547
547
|
for (; t >= 0 && /\s/.test(e[t]); ) t--;
|
|
548
548
|
if (t < 0 || yn.test(e[t])) return !0;
|
|
549
|
-
const
|
|
549
|
+
const o = t + 1;
|
|
550
550
|
for (; t >= 0 && /[\w$]/.test(e[t]); ) t--;
|
|
551
|
-
return gn.has(e.slice(t + 1,
|
|
552
|
-
}, vn = (e, n, t,
|
|
551
|
+
return gn.has(e.slice(t + 1, o));
|
|
552
|
+
}, vn = (e, n, t, o, i) => {
|
|
553
553
|
var l, c, _;
|
|
554
|
-
Oe.lastIndex =
|
|
555
|
-
const
|
|
556
|
-
if (t[
|
|
554
|
+
Oe.lastIndex = i;
|
|
555
|
+
const r = Oe.test(t);
|
|
556
|
+
if (t[o - 1] === ".") return r ? "name" : void 0;
|
|
557
557
|
const s = e.isCaseInsensitive ? n.toLowerCase() : n;
|
|
558
558
|
if ((l = e.keywords) != null && l.has(s)) return "keyword";
|
|
559
559
|
if ((c = e.literals) != null && c.has(s)) return "number";
|
|
560
560
|
if ((_ = e.types) != null && _.has(s)) return "type";
|
|
561
|
-
if (
|
|
561
|
+
if (r) return "name";
|
|
562
562
|
if (e.hasCapitalTypes && /^[A-Z]/.test(n))
|
|
563
563
|
return fn.test(n) ? "number" : "type";
|
|
564
564
|
}, He = ({ pattern: e, grammar: n }, t) => {
|
|
565
|
-
const
|
|
565
|
+
const o = [], i = (s, l) => {
|
|
566
566
|
if (!s) return;
|
|
567
|
-
const c =
|
|
568
|
-
c && c.type === l ? c.text += s :
|
|
567
|
+
const c = o.at(-1);
|
|
568
|
+
c && c.type === l ? c.text += s : o.push({ text: s, type: l });
|
|
569
569
|
};
|
|
570
|
-
let
|
|
570
|
+
let r = 0;
|
|
571
571
|
e.lastIndex = 0;
|
|
572
572
|
for (let s = e.exec(t); s; s = e.exec(t)) {
|
|
573
573
|
const [l] = s, { index: c } = s, _ = c + l.length;
|
|
@@ -580,16 +580,16 @@ ${Kt.repeat(t)}`;
|
|
|
580
580
|
e.lastIndex = c + 1;
|
|
581
581
|
continue;
|
|
582
582
|
}
|
|
583
|
-
if (
|
|
584
|
-
else if (d === "regex")
|
|
583
|
+
if (i(t.slice(r, c)), r = _, d === "word") i(l, vn(n, l, t, c, _));
|
|
584
|
+
else if (d === "regex") i(l, "string");
|
|
585
585
|
else if (d === "tag") {
|
|
586
586
|
const b = l[1] === "/" ? 2 : 1, y = l.slice(b);
|
|
587
|
-
|
|
587
|
+
i(l.slice(0, b), "punctuation"), i(y, /^[A-Z]/.test(y) || y.includes(".") ? "type" : "keyword");
|
|
588
588
|
} else if (d === "markup")
|
|
589
|
-
for (const b of He(qe(un), l))
|
|
590
|
-
else
|
|
589
|
+
for (const b of He(qe(un), l)) i(b.text, b.type);
|
|
590
|
+
else i(l, d);
|
|
591
591
|
}
|
|
592
|
-
return
|
|
592
|
+
return i(t.slice(r)), o;
|
|
593
593
|
}, Nn = (e, n) => {
|
|
594
594
|
const t = kn(n);
|
|
595
595
|
return t && e.length <= bn ? He(qe(t), e) : [{ text: e }];
|
|
@@ -609,7 +609,7 @@ ${Kt.repeat(t)}`;
|
|
|
609
609
|
"block__token--punctuation": "ui-block__token--punctuation-Te2u8",
|
|
610
610
|
"block__token--inserted": "ui-block__token--inserted-sUKnQ",
|
|
611
611
|
"block__token--deleted": "ui-block__token--deleted-s74a-"
|
|
612
|
-
}, $n = 1600, Rn = ({ code: e, language: n, html: t, maxHeight:
|
|
612
|
+
}, $n = 1600, Rn = ({ code: e, language: n, html: t, maxHeight: o, className: i, testId: r }) => {
|
|
613
613
|
var v;
|
|
614
614
|
const { labels: s } = C(), l = Pe(), [c, _] = ce(!1), d = L(void 0), u = pe(() => t ? e : Ut(e, n), [e, t, n]), f = pe(() => t ? [] : Nn(u, n), [u, t, n]);
|
|
615
615
|
U(() => () => window.clearTimeout(d.current), []);
|
|
@@ -622,7 +622,7 @@ ${Kt.repeat(t)}`;
|
|
|
622
622
|
}
|
|
623
623
|
_(!0), l(x("CodeBlock.copied", (w = s == null ? void 0 : s.chat) == null ? void 0 : w.codeCopied)), window.clearTimeout(d.current), d.current = window.setTimeout(() => _(!1), $n);
|
|
624
624
|
}, y = n ?? "";
|
|
625
|
-
return /* @__PURE__ */ p("figure", { className: m(O.block,
|
|
625
|
+
return /* @__PURE__ */ p("figure", { className: m(O.block, i), "data-testid": r, children: [
|
|
626
626
|
/* @__PURE__ */ p("figcaption", { className: O.block__header, children: [
|
|
627
627
|
/* @__PURE__ */ a("span", { className: O.block__language, children: y }),
|
|
628
628
|
/* @__PURE__ */ a(
|
|
@@ -639,12 +639,12 @@ ${Kt.repeat(t)}`;
|
|
|
639
639
|
"div",
|
|
640
640
|
{
|
|
641
641
|
className: O.block__body,
|
|
642
|
-
style:
|
|
642
|
+
style: o === void 0 ? void 0 : { maxBlockSize: o },
|
|
643
643
|
tabIndex: 0,
|
|
644
644
|
role: y ? "region" : void 0,
|
|
645
645
|
"aria-label": y || void 0,
|
|
646
646
|
children: t ? /* @__PURE__ */ a("div", { className: O.block__highlighted, dangerouslySetInnerHTML: { __html: t } }) : /* @__PURE__ */ a("pre", { className: O.block__pre, children: /* @__PURE__ */ a("code", { children: f.map(
|
|
647
|
-
(w,
|
|
647
|
+
(w, B) => w.type ? /* @__PURE__ */ a("span", { className: O[`block__token--${w.type}`], children: w.text }, B) : /* @__PURE__ */ a(Je, { children: w.text }, B)
|
|
648
648
|
) }) })
|
|
649
649
|
}
|
|
650
650
|
)
|
|
@@ -658,19 +658,19 @@ ${Kt.repeat(t)}`;
|
|
|
658
658
|
summary: e,
|
|
659
659
|
isRunning: n = !1,
|
|
660
660
|
indicator: t,
|
|
661
|
-
isDefaultOpen:
|
|
662
|
-
children:
|
|
663
|
-
className:
|
|
661
|
+
isDefaultOpen: o = !1,
|
|
662
|
+
children: i,
|
|
663
|
+
className: r,
|
|
664
664
|
testId: s
|
|
665
665
|
}) => {
|
|
666
|
-
const [l, c] = ce(n ||
|
|
666
|
+
const [l, c] = ce(n || o), _ = L(!1);
|
|
667
667
|
return U(() => {
|
|
668
|
-
_.current || c(n ||
|
|
669
|
-
}, [n,
|
|
668
|
+
_.current || c(n || o);
|
|
669
|
+
}, [n, o]), /* @__PURE__ */ a(
|
|
670
670
|
Be,
|
|
671
671
|
{
|
|
672
672
|
variant: "plain",
|
|
673
|
-
className: m(J.block,
|
|
673
|
+
className: m(J.block, r),
|
|
674
674
|
summary: /* @__PURE__ */ p("span", { className: J.block__summary, children: [
|
|
675
675
|
n && /* @__PURE__ */ a("span", { className: J.block__indicator, children: t ?? /* @__PURE__ */ a(ct, { size: "sm" }) }),
|
|
676
676
|
e
|
|
@@ -680,7 +680,7 @@ ${Kt.repeat(t)}`;
|
|
|
680
680
|
_.current = !0, c(d);
|
|
681
681
|
},
|
|
682
682
|
testId: s,
|
|
683
|
-
children: /* @__PURE__ */ a("div", { className: J.block__body, children:
|
|
683
|
+
children: /* @__PURE__ */ a("div", { className: J.block__body, children: i })
|
|
684
684
|
}
|
|
685
685
|
);
|
|
686
686
|
}, aa = /* @__PURE__ */ g(
|
|
@@ -688,15 +688,15 @@ ${Kt.repeat(t)}`;
|
|
|
688
688
|
), Mn = "ui-text-WKVxU", Pn = "ui-text__body--uP0k", ze = {
|
|
689
689
|
text: Mn,
|
|
690
690
|
text__body: Pn
|
|
691
|
-
}, Kn = ({ text: e, label: n, maxHeight: t = 180, className:
|
|
691
|
+
}, Kn = ({ text: e, label: n, maxHeight: t = 180, className: o, testId: i }) => /* @__PURE__ */ a(
|
|
692
692
|
lt,
|
|
693
693
|
{
|
|
694
|
-
className: m(ze.text,
|
|
694
|
+
className: m(ze.text, o),
|
|
695
695
|
label: n,
|
|
696
696
|
maxHeight: t,
|
|
697
697
|
hasFade: !0,
|
|
698
698
|
isFollowingEnd: !0,
|
|
699
|
-
testId:
|
|
699
|
+
testId: i,
|
|
700
700
|
children: /* @__PURE__ */ a("p", { className: ze.text__body, children: e })
|
|
701
701
|
}
|
|
702
702
|
), ia = /* @__PURE__ */ g(
|
|
@@ -724,9 +724,9 @@ ${Kt.repeat(t)}`;
|
|
|
724
724
|
icon: e,
|
|
725
725
|
name: n,
|
|
726
726
|
summary: t,
|
|
727
|
-
status:
|
|
728
|
-
meta:
|
|
729
|
-
isDefaultOpen:
|
|
727
|
+
status: o,
|
|
728
|
+
meta: i,
|
|
729
|
+
isDefaultOpen: r,
|
|
730
730
|
isOpen: s,
|
|
731
731
|
onOpenChange: l,
|
|
732
732
|
children: c,
|
|
@@ -734,29 +734,29 @@ ${Kt.repeat(t)}`;
|
|
|
734
734
|
testId: d
|
|
735
735
|
}) => {
|
|
736
736
|
var y, v;
|
|
737
|
-
const { labels: u } = C(), f = x(`ToolCall.status.${
|
|
737
|
+
const { labels: u } = C(), f = x(`ToolCall.status.${o}`, (v = (y = u == null ? void 0 : u.chat) == null ? void 0 : y.toolStatus) == null ? void 0 : v[o]), b = /* @__PURE__ */ p("span", { className: N.call__header, children: [
|
|
738
738
|
e !== void 0 && /* @__PURE__ */ a(
|
|
739
739
|
"span",
|
|
740
740
|
{
|
|
741
|
-
className: m(N.call__icon,
|
|
741
|
+
className: m(N.call__icon, o === "running" && N["call__icon--running"]),
|
|
742
742
|
"aria-hidden": !0,
|
|
743
743
|
children: e
|
|
744
744
|
}
|
|
745
745
|
),
|
|
746
746
|
/* @__PURE__ */ a("span", { className: N.call__name, children: n }),
|
|
747
747
|
t !== void 0 && /* @__PURE__ */ a("span", { className: N.call__summary, children: t }),
|
|
748
|
-
/* @__PURE__ */ a(dt, { tone: Xn[
|
|
748
|
+
/* @__PURE__ */ a(dt, { tone: Xn[o], label: f, isPulsing: o === "running" })
|
|
749
749
|
] });
|
|
750
750
|
return c === void 0 ? /* @__PURE__ */ p("div", { className: m(N.call, N["call--static"], _), "data-testid": d, children: [
|
|
751
751
|
b,
|
|
752
|
-
|
|
752
|
+
i !== void 0 && /* @__PURE__ */ a("span", { className: N.call__meta, children: i })
|
|
753
753
|
] }) : /* @__PURE__ */ a(
|
|
754
754
|
Be,
|
|
755
755
|
{
|
|
756
756
|
className: m(N.call, _),
|
|
757
757
|
summary: b,
|
|
758
|
-
meta:
|
|
759
|
-
isDefaultOpen:
|
|
758
|
+
meta: i,
|
|
759
|
+
isDefaultOpen: r,
|
|
760
760
|
isOpen: s,
|
|
761
761
|
onOpenChange: l,
|
|
762
762
|
testId: d,
|
|
@@ -772,7 +772,7 @@ ${Kt.repeat(t)}`;
|
|
|
772
772
|
/* @__PURE__ */ a("span", { className: N.section__label, children: e }),
|
|
773
773
|
/* @__PURE__ */ a("div", { className: N.section__body, children: n })
|
|
774
774
|
] })
|
|
775
|
-
), oa = /* @__PURE__ */ g(/* @__PURE__ */ k(Jn, "ToolCall")), Qn = "ui-terminal-D4Bz8", Vn = "ui-terminal__command-A7PG2", es = "ui-terminal__prompt-9N1g2", ts = "ui-terminal__stderr-qCNFe", ns = "ui-terminal__srOnly-2pmQA",
|
|
775
|
+
), oa = /* @__PURE__ */ g(/* @__PURE__ */ k(Jn, "ToolCall")), Qn = "ui-terminal-D4Bz8", Vn = "ui-terminal__command-A7PG2", es = "ui-terminal__prompt-9N1g2", ts = "ui-terminal__stderr-qCNFe", ns = "ui-terminal__srOnly-2pmQA", j = {
|
|
776
776
|
terminal: Qn,
|
|
777
777
|
terminal__command: Vn,
|
|
778
778
|
terminal__prompt: es,
|
|
@@ -782,9 +782,9 @@ ${Kt.repeat(t)}`;
|
|
|
782
782
|
command: e,
|
|
783
783
|
chunks: n,
|
|
784
784
|
label: t,
|
|
785
|
-
maxHeight:
|
|
786
|
-
className:
|
|
787
|
-
testId:
|
|
785
|
+
maxHeight: o = 300,
|
|
786
|
+
className: i,
|
|
787
|
+
testId: r
|
|
788
788
|
}) => {
|
|
789
789
|
var _;
|
|
790
790
|
const { labels: s } = C(), l = L(null);
|
|
@@ -794,15 +794,15 @@ ${Kt.repeat(t)}`;
|
|
|
794
794
|
"pre",
|
|
795
795
|
{
|
|
796
796
|
ref: l,
|
|
797
|
-
className: m(
|
|
798
|
-
style: { maxBlockSize:
|
|
797
|
+
className: m(j.terminal, i),
|
|
798
|
+
style: { maxBlockSize: o },
|
|
799
799
|
tabIndex: 0,
|
|
800
800
|
role: "region",
|
|
801
801
|
"aria-label": t,
|
|
802
|
-
"data-testid":
|
|
802
|
+
"data-testid": r,
|
|
803
803
|
children: [
|
|
804
|
-
e !== void 0 && /* @__PURE__ */ p("span", { className:
|
|
805
|
-
/* @__PURE__ */ p("span", { className:
|
|
804
|
+
e !== void 0 && /* @__PURE__ */ p("span", { className: j.terminal__command, children: [
|
|
805
|
+
/* @__PURE__ */ p("span", { className: j.terminal__prompt, "aria-hidden": !0, children: [
|
|
806
806
|
"$",
|
|
807
807
|
" "
|
|
808
808
|
] }),
|
|
@@ -811,8 +811,8 @@ ${Kt.repeat(t)}`;
|
|
|
811
811
|
`
|
|
812
812
|
] }),
|
|
813
813
|
n.map(
|
|
814
|
-
(d, u) => d.stream === "stderr" ? /* @__PURE__ */ p("span", { className:
|
|
815
|
-
/* @__PURE__ */ a("span", { className:
|
|
814
|
+
(d, u) => d.stream === "stderr" ? /* @__PURE__ */ p("span", { className: j.terminal__stderr, children: [
|
|
815
|
+
/* @__PURE__ */ a("span", { className: j.terminal__srOnly, children: `${c}: ` }),
|
|
816
816
|
d.text
|
|
817
817
|
] }, u) : /* @__PURE__ */ a("span", { children: d.text }, u)
|
|
818
818
|
)
|
|
@@ -829,15 +829,15 @@ ${Kt.repeat(t)}`;
|
|
|
829
829
|
list__title: cs,
|
|
830
830
|
list__plain: ls,
|
|
831
831
|
list__domain: ds
|
|
832
|
-
}, _s = ({ items: e, label: n, className: t, testId:
|
|
833
|
-
var
|
|
834
|
-
const { labels:
|
|
832
|
+
}, _s = ({ items: e, label: n, className: t, testId: o }) => {
|
|
833
|
+
var r;
|
|
834
|
+
const { labels: i } = C();
|
|
835
835
|
return /* @__PURE__ */ a(
|
|
836
836
|
"ol",
|
|
837
837
|
{
|
|
838
838
|
className: m(E.list, t),
|
|
839
|
-
"aria-label": x("SourceList.label", n, (
|
|
840
|
-
"data-testid":
|
|
839
|
+
"aria-label": x("SourceList.label", n, (r = i == null ? void 0 : i.chat) == null ? void 0 : r.sources),
|
|
840
|
+
"data-testid": o,
|
|
841
841
|
children: e.map((s, l) => /* @__PURE__ */ p("li", { className: E.list__item, children: [
|
|
842
842
|
/* @__PURE__ */ a("span", { className: E.list__index, "aria-hidden": !0, children: l + 1 }),
|
|
843
843
|
/* @__PURE__ */ p("span", { className: E.list__text, children: [
|
|
@@ -858,32 +858,32 @@ ${Kt.repeat(t)}`;
|
|
|
858
858
|
);
|
|
859
859
|
}, la = /* @__PURE__ */ g(
|
|
860
860
|
/* @__PURE__ */ k(_s, "SourceList")
|
|
861
|
-
), us = "ui-citation-XrGMb", ms = "ui-citation__srOnly-GnMQp",
|
|
861
|
+
), us = "ui-citation-XrGMb", ms = "ui-citation__srOnly-GnMQp", Z = {
|
|
862
862
|
citation: us,
|
|
863
863
|
citation__srOnly: ms,
|
|
864
864
|
"citation--static": "ui-citation--static-8gXHs"
|
|
865
|
-
}, ps = ({ index: e, href: n, onClick: t, className:
|
|
865
|
+
}, ps = ({ index: e, href: n, onClick: t, className: o }) => {
|
|
866
866
|
var s;
|
|
867
|
-
const { labels:
|
|
868
|
-
return n ? /* @__PURE__ */ a("a", { className: m(
|
|
867
|
+
const { labels: i } = C(), r = je("Citation.label", (s = i == null ? void 0 : i.chat) == null ? void 0 : s.citation, e);
|
|
868
|
+
return n ? /* @__PURE__ */ a("a", { className: m(Z.citation, o), href: n, "aria-label": r, children: e }) : t ? /* @__PURE__ */ a(
|
|
869
869
|
"button",
|
|
870
870
|
{
|
|
871
871
|
type: "button",
|
|
872
|
-
className: m(
|
|
872
|
+
className: m(Z.citation, o),
|
|
873
873
|
onClick: t,
|
|
874
|
-
"aria-label":
|
|
874
|
+
"aria-label": r,
|
|
875
875
|
children: e
|
|
876
876
|
}
|
|
877
|
-
) : /* @__PURE__ */ p("span", { className: m(
|
|
877
|
+
) : /* @__PURE__ */ p("span", { className: m(Z.citation, Z["citation--static"], o), children: [
|
|
878
878
|
/* @__PURE__ */ a("span", { "aria-hidden": !0, children: e }),
|
|
879
|
-
/* @__PURE__ */ a("span", { className:
|
|
879
|
+
/* @__PURE__ */ a("span", { className: Z.citation__srOnly, children: r })
|
|
880
880
|
] });
|
|
881
881
|
}, da = /* @__PURE__ */ g(/* @__PURE__ */ k(ps, "Citation")), hs = "ui-actions-c8XlJ", bs = "ui-actions__meta-j-X3I", Ie = {
|
|
882
882
|
actions: hs,
|
|
883
883
|
actions__meta: bs
|
|
884
|
-
}, fs = "button:not(:disabled), a[href]", ys = ({ children: e, meta: n, label: t, className:
|
|
884
|
+
}, fs = "button:not(:disabled), a[href]", ys = ({ children: e, meta: n, label: t, className: o, testId: i }) => {
|
|
885
885
|
var c;
|
|
886
|
-
const { labels:
|
|
886
|
+
const { labels: r } = C(), s = L(null), l = (_) => {
|
|
887
887
|
var w;
|
|
888
888
|
const d = [...((w = s.current) == null ? void 0 : w.querySelectorAll(fs)) ?? []], u = d.indexOf(document.activeElement);
|
|
889
889
|
if (u < 0 || d.length === 0) return;
|
|
@@ -895,10 +895,10 @@ ${Kt.repeat(t)}`;
|
|
|
895
895
|
{
|
|
896
896
|
ref: s,
|
|
897
897
|
role: "toolbar",
|
|
898
|
-
"aria-label": x("MessageActions.label", t, (c =
|
|
899
|
-
className: m(Ie.actions,
|
|
898
|
+
"aria-label": x("MessageActions.label", t, (c = r == null ? void 0 : r.chat) == null ? void 0 : c.messageActions),
|
|
899
|
+
className: m(Ie.actions, o),
|
|
900
900
|
onKeyDown: l,
|
|
901
|
-
"data-testid":
|
|
901
|
+
"data-testid": i,
|
|
902
902
|
children: [
|
|
903
903
|
e,
|
|
904
904
|
n !== void 0 && /* @__PURE__ */ a("span", { className: Ie.actions__meta, children: n })
|
|
@@ -912,10 +912,10 @@ ${Kt.repeat(t)}`;
|
|
|
912
912
|
bar__brand: ks,
|
|
913
913
|
bar__start: ws,
|
|
914
914
|
bar__end: vs
|
|
915
|
-
}, De = "--ui-header-height", Ns = ({ brand: e, start: n, end: t, className:
|
|
916
|
-
const
|
|
915
|
+
}, De = "--ui-header-height", Ns = ({ brand: e, start: n, end: t, className: o, testId: i }) => {
|
|
916
|
+
const r = L(null);
|
|
917
917
|
return U(() => {
|
|
918
|
-
const s =
|
|
918
|
+
const s = r.current;
|
|
919
919
|
if (!s || typeof ResizeObserver > "u") return;
|
|
920
920
|
const l = document.documentElement, c = new ResizeObserver(
|
|
921
921
|
([_]) => {
|
|
@@ -929,7 +929,7 @@ ${Kt.repeat(t)}`;
|
|
|
929
929
|
return c.observe(s), () => {
|
|
930
930
|
c.disconnect(), l.style.removeProperty(De);
|
|
931
931
|
};
|
|
932
|
-
}, []), /* @__PURE__ */ p("header", { ref:
|
|
932
|
+
}, []), /* @__PURE__ */ p("header", { ref: r, className: m(Q.bar, o), "data-testid": i, children: [
|
|
933
933
|
/* @__PURE__ */ a("div", { className: Q.bar__brand, children: e }),
|
|
934
934
|
n !== void 0 && /* @__PURE__ */ a("div", { className: Q.bar__start, children: n }),
|
|
935
935
|
t !== void 0 && /* @__PURE__ */ a("div", { className: Q.bar__end, children: t })
|
|
@@ -949,21 +949,21 @@ ${Kt.repeat(t)}`;
|
|
|
949
949
|
label: e,
|
|
950
950
|
children: n,
|
|
951
951
|
rowHeight: t,
|
|
952
|
-
maxHeight:
|
|
953
|
-
className:
|
|
954
|
-
testId:
|
|
952
|
+
maxHeight: o = 320,
|
|
953
|
+
className: i,
|
|
954
|
+
testId: r
|
|
955
955
|
}) => {
|
|
956
956
|
const s = Qe.toArray(n).filter(Ve), [l, c] = ce(0);
|
|
957
957
|
if (!t)
|
|
958
|
-
return /* @__PURE__ */ a("ul", { className: m(S.list,
|
|
959
|
-
const _ = Math.max(0, Math.floor(l / t) - Me), d = Math.min(s.length, Math.ceil((l +
|
|
958
|
+
return /* @__PURE__ */ a("ul", { className: m(S.list, i), "aria-label": e, "data-testid": r, children: s });
|
|
959
|
+
const _ = Math.max(0, Math.floor(l / t) - Me), d = Math.min(s.length, Math.ceil((l + o) / t) + Me);
|
|
960
960
|
return /* @__PURE__ */ a(
|
|
961
961
|
"div",
|
|
962
962
|
{
|
|
963
|
-
className: m(S.list, S["list--virtual"],
|
|
964
|
-
style: { maxBlockSize:
|
|
963
|
+
className: m(S.list, S["list--virtual"], i),
|
|
964
|
+
style: { maxBlockSize: o, "--ui-row-height": `${t}px` },
|
|
965
965
|
onScroll: (u) => c(u.currentTarget.scrollTop),
|
|
966
|
-
"data-testid":
|
|
966
|
+
"data-testid": r,
|
|
967
967
|
children: /* @__PURE__ */ a(
|
|
968
968
|
"ul",
|
|
969
969
|
{
|
|
@@ -987,9 +987,9 @@ ${Kt.repeat(t)}`;
|
|
|
987
987
|
children: e,
|
|
988
988
|
start: n,
|
|
989
989
|
end: t,
|
|
990
|
-
onClick:
|
|
991
|
-
href:
|
|
992
|
-
isSelected:
|
|
990
|
+
onClick: o,
|
|
991
|
+
href: i,
|
|
992
|
+
isSelected: r,
|
|
993
993
|
isMuted: s,
|
|
994
994
|
testId: l,
|
|
995
995
|
"aria-posinset": c,
|
|
@@ -997,20 +997,20 @@ ${Kt.repeat(t)}`;
|
|
|
997
997
|
}) => {
|
|
998
998
|
const { linkComponent: d } = C(), u = m(
|
|
999
999
|
S.item,
|
|
1000
|
-
|
|
1000
|
+
r && S["item--selected"],
|
|
1001
1001
|
s && S["item--muted"]
|
|
1002
1002
|
), f = /* @__PURE__ */ p(We, { children: [
|
|
1003
1003
|
n !== void 0 && /* @__PURE__ */ a("span", { className: S.item__start, children: n }),
|
|
1004
1004
|
/* @__PURE__ */ a("span", { className: S.item__body, children: e }),
|
|
1005
1005
|
t !== void 0 && /* @__PURE__ */ a("span", { className: S.item__end, children: t })
|
|
1006
1006
|
] }), b = d ?? "a";
|
|
1007
|
-
return /* @__PURE__ */ a("li", { className: S.list__slot, "aria-posinset": c, "aria-setsize": _, children:
|
|
1007
|
+
return /* @__PURE__ */ a("li", { className: S.list__slot, "aria-posinset": c, "aria-setsize": _, children: i ? /* @__PURE__ */ a(b, { href: i, className: u, "data-testid": l, children: f }) : /* @__PURE__ */ a(
|
|
1008
1008
|
"button",
|
|
1009
1009
|
{
|
|
1010
1010
|
type: "button",
|
|
1011
1011
|
className: u,
|
|
1012
|
-
onClick:
|
|
1013
|
-
"aria-pressed":
|
|
1012
|
+
onClick: o,
|
|
1013
|
+
"aria-pressed": r,
|
|
1014
1014
|
"data-testid": l,
|
|
1015
1015
|
children: f
|
|
1016
1016
|
}
|
|
@@ -1022,10 +1022,10 @@ ${Kt.repeat(t)}`;
|
|
|
1022
1022
|
bar__segment: Ls,
|
|
1023
1023
|
bar__marker: zs,
|
|
1024
1024
|
"bar__marker--danger": "ui-bar__marker--danger-245FK"
|
|
1025
|
-
}, ee = (e, n) => n <= 0 ? 0 : Math.min(100, Math.max(0, e / n * 100)), Is = (e) => Fe(e === "muted" ? "text-3" : e), Ds = ({ label: e, max: n, segments: t, markers:
|
|
1025
|
+
}, ee = (e, n) => n <= 0 ? 0 : Math.min(100, Math.max(0, e / n * 100)), Is = (e) => Fe(e === "muted" ? "text-3" : e), Ds = ({ label: e, max: n, segments: t, markers: o = [], className: i, testId: r }) => {
|
|
1026
1026
|
const s = [
|
|
1027
1027
|
...t.map((c) => c.label),
|
|
1028
|
-
...
|
|
1028
|
+
...o.map((c) => c.label)
|
|
1029
1029
|
];
|
|
1030
1030
|
let l = 0;
|
|
1031
1031
|
return /* @__PURE__ */ p(
|
|
@@ -1033,8 +1033,8 @@ ${Kt.repeat(t)}`;
|
|
|
1033
1033
|
{
|
|
1034
1034
|
role: "img",
|
|
1035
1035
|
"aria-label": `${e}: ${s.join(", ")}`,
|
|
1036
|
-
className: m(V.bar,
|
|
1037
|
-
"data-testid":
|
|
1036
|
+
className: m(V.bar, i),
|
|
1037
|
+
"data-testid": r,
|
|
1038
1038
|
children: [
|
|
1039
1039
|
t.map((c) => {
|
|
1040
1040
|
const _ = c.from ?? l, d = c.to ?? _ + (c.value ?? 0);
|
|
@@ -1052,7 +1052,7 @@ ${Kt.repeat(t)}`;
|
|
|
1052
1052
|
c.id
|
|
1053
1053
|
);
|
|
1054
1054
|
}),
|
|
1055
|
-
|
|
1055
|
+
o.map((c) => /* @__PURE__ */ a(
|
|
1056
1056
|
"span",
|
|
1057
1057
|
{
|
|
1058
1058
|
className: m(
|
|
@@ -1073,32 +1073,40 @@ ${Kt.repeat(t)}`;
|
|
|
1073
1073
|
legend: Ms,
|
|
1074
1074
|
legend__item: Ps,
|
|
1075
1075
|
legend__swatch: Ks
|
|
1076
|
-
}, Bs = (e) => Fe(e === "muted" ? "text-3" : e), Fs = ({ items: e, className: n, testId: t }) => /* @__PURE__ */ a("ul", { className: m(oe.legend, n), "data-testid": t, children: e.map((
|
|
1076
|
+
}, Bs = (e) => Fe(e === "muted" ? "text-3" : e), Fs = ({ items: e, className: n, testId: t }) => /* @__PURE__ */ a("ul", { className: m(oe.legend, n), "data-testid": t, children: e.map((o) => /* @__PURE__ */ p("li", { className: oe.legend__item, children: [
|
|
1077
1077
|
/* @__PURE__ */ a(
|
|
1078
1078
|
"span",
|
|
1079
1079
|
{
|
|
1080
1080
|
"aria-hidden": !0,
|
|
1081
1081
|
className: oe.legend__swatch,
|
|
1082
|
-
style: { backgroundColor: Bs(
|
|
1082
|
+
style: { backgroundColor: Bs(o.tone) }
|
|
1083
1083
|
}
|
|
1084
1084
|
),
|
|
1085
|
-
|
|
1086
|
-
] },
|
|
1085
|
+
o.label
|
|
1086
|
+
] }, o.id)) }), ba = /* @__PURE__ */ g(/* @__PURE__ */ k(Fs, "Legend")), js = "ui-list-KSLu5", Zs = "ui-list__row-k7aHp", Us = "ui-list__term-vsD5B", Gs = "ui-list__value-6GY6z", P = {
|
|
1087
1087
|
list: js,
|
|
1088
|
+
"list--end": "ui-list--end-sf2sW",
|
|
1088
1089
|
list__row: Zs,
|
|
1089
1090
|
list__term: Us,
|
|
1090
1091
|
list__value: Gs,
|
|
1091
1092
|
"list__value--technical": "ui-list__value--technical-I-UYE"
|
|
1092
|
-
}, qs = ({ items: e,
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
"
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
children: i.
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1093
|
+
}, qs = ({ items: e, valueAlign: n = "start", className: t, testId: o }) => /* @__PURE__ */ a(
|
|
1094
|
+
"dl",
|
|
1095
|
+
{
|
|
1096
|
+
className: m(P.list, n === "end" && P["list--end"], t),
|
|
1097
|
+
"data-testid": o,
|
|
1098
|
+
children: e.map((i, r) => /* @__PURE__ */ p("div", { className: P.list__row, children: [
|
|
1099
|
+
/* @__PURE__ */ a("dt", { className: P.list__term, children: i.term }),
|
|
1100
|
+
/* @__PURE__ */ a(
|
|
1101
|
+
"dd",
|
|
1102
|
+
{
|
|
1103
|
+
className: m(P.list__value, i.isTechnical && P["list__value--technical"]),
|
|
1104
|
+
children: i.description
|
|
1105
|
+
}
|
|
1106
|
+
)
|
|
1107
|
+
] }, r))
|
|
1108
|
+
}
|
|
1109
|
+
), fa = /* @__PURE__ */ g(
|
|
1102
1110
|
/* @__PURE__ */ k(qs, "DescriptionList")
|
|
1103
1111
|
);
|
|
1104
1112
|
export {
|