impact-nova 3.0.0-alpha.6 → 3.0.0-alpha.7
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/components/data/ag-grid-react/headers/header-search-input.js +203 -199
- package/dist/components/flows/iris-chat/iris-chat-artifact.js +46 -36
- package/dist/components/flows/iris-chat/iris-chat-markdown.js +47 -27
- package/dist/components/flows/iris-chat/iris-chat-thread.d.ts +1 -0
- package/dist/components/flows/iris-chat/iris-chat-thread.js +81 -75
- package/dist/components/flows/iris-chat/iris-chat.js +83 -83
- package/dist/components/flows/iris-chat/iris-chat.types.d.ts +2 -0
- package/dist/components/flows/iris-chat/iris-chat.variants.d.ts +1 -0
- package/dist/components/flows/iris-chat/iris-chat.variants.js +29 -11
- package/dist/components/forms/choice-card/choice-card-percent.js +50 -37
- package/dist/components/forms/input/input.js +5 -5
- package/dist/components/primitives/button/button.variants.js +1 -1
- package/dist/components/primitives/stepper/internals/step-model.d.ts +1 -1
- package/dist/components/primitives/stepper/internals/step-model.js +5 -5
- package/dist/components/primitives/stepper/internals/stepper-compact.js +13 -13
- package/dist/components/primitives/stepper/internals/stepper-pipeline.js +6 -6
- package/dist/components/primitives/stepper/internals/stepper-rail.js +15 -15
- package/dist/components/primitives/stepper/internals/stepper-summary.js +2 -2
- package/dist/components/primitives/stepper/internals/stepper-track.js +2 -2
- package/dist/components/primitives/stepper/stepper.js +92 -91
- package/dist/components/primitives/stepper/stepper.types.d.ts +2 -0
- package/dist/impact-nova-components.css +56 -0
- package/dist/impact-nova.css +1 -1
- package/package.json +1 -1
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import { jsxs as o, jsx as e, Fragment as W } from "react/jsx-runtime";
|
|
2
|
-
import { useState as
|
|
2
|
+
import { useState as x } from "react";
|
|
3
3
|
import { Cross as U, ChevronRight as z } from "impact-nova-icons";
|
|
4
4
|
import { Popover as K, PopoverTrigger as H, PopoverContent as L, PopoverHeader as R, PopoverTitle as V, PopoverBody as q } from "../../feedback/popover/popover.js";
|
|
5
|
-
import { ButtonIconTooltip as
|
|
5
|
+
import { ButtonIconTooltip as g } from "../../feedback/tooltip/button-icon-tooltip.js";
|
|
6
6
|
import { Alert as J, AlertIcon as Q, AlertTitle as X, AlertDescription as Y } from "../../feedback/alert/alert.js";
|
|
7
7
|
import { Button as p } from "../../primitives/button/button.js";
|
|
8
8
|
import { IrisAlanGradientIcon as _ } from "../../primitives/iris/iris-alan-gradient-icon.js";
|
|
9
9
|
import { useImpactNovaI18n as b } from "../../../i18n/use-impact-nova-i18n.js";
|
|
10
10
|
import { createComponent as d } from "../../../lib/primitives/create-component.js";
|
|
11
11
|
import { cn as c } from "../../../lib/utils.js";
|
|
12
|
-
import { IrisChatLikeIcon as Z, IrisChatDislikeIcon as E, IrisChatCopyIcon as $, IrisChatSpeakIcon as ee, IrisChatRetryIcon as te, IrisChatAttachIcon as ae, IrisChatSuggestIcon as
|
|
13
|
-
import { useIrisChatOptional as
|
|
12
|
+
import { IrisChatLikeIcon as Z, IrisChatDislikeIcon as E, IrisChatCopyIcon as $, IrisChatSpeakIcon as ee, IrisChatRetryIcon as te, IrisChatAttachIcon as ae, IrisChatSuggestIcon as re } from "./iris-chat-icons.js";
|
|
13
|
+
import { useIrisChatOptional as se } from "./iris-chat-context.js";
|
|
14
14
|
import { irisChatMessageVariants as ie } from "./iris-chat.variants.js";
|
|
15
15
|
import { readIrisGreetingPeriod as ne, readIrisGreetingMark as oe, readIrisGreetingMessageKey as le } from "./read-iris-greeting-period.js";
|
|
16
16
|
const we = d(
|
|
17
17
|
"IrisChatGreeting",
|
|
18
|
-
({ className:
|
|
19
|
-
const { t:
|
|
18
|
+
({ className: s, name: a, greeting: t, subtitle: r, children: n, mark: l }, u) => {
|
|
19
|
+
const { t: f } = b(), C = se(), m = C?.placement === "minimized" || C?.placement === "composer", I = ne(), w = l ?? oe(), i = t ?? f(le(I)), k = m ? "text-lg font-semibold leading-6 text-content" : "text-[26px] font-semibold leading-[46.8px] text-content", v = m ? "bg-clip-text text-lg font-extrabold leading-6 text-transparent" : "bg-clip-text text-[26px] font-extrabold leading-[46.8px] text-transparent";
|
|
20
20
|
return /* @__PURE__ */ o(
|
|
21
21
|
"div",
|
|
22
22
|
{
|
|
23
|
-
ref:
|
|
23
|
+
ref: u,
|
|
24
24
|
"data-component": "iris-chat-greeting",
|
|
25
25
|
"data-compact": m ? "" : void 0,
|
|
26
26
|
className: c(
|
|
27
27
|
"relative flex flex-col items-center justify-center text-center",
|
|
28
28
|
m ? "gap-1.5 py-4" : "gap-2 py-8",
|
|
29
29
|
"bg-[radial-gradient(ellipse_80%_70%_at_50%_45%,var(--color-iris-menu-surface-from),transparent_70%),radial-gradient(ellipse_70%_50%_at_50%_85%,color-mix(in_srgb,var(--color-iris-control-glow-cyan)_16%,transparent),transparent_72%)]",
|
|
30
|
-
|
|
30
|
+
s
|
|
31
31
|
),
|
|
32
32
|
children: [
|
|
33
33
|
/* @__PURE__ */ e(_, { size: m ? 56 : 84 }),
|
|
@@ -49,7 +49,7 @@ const we = d(
|
|
|
49
49
|
"p",
|
|
50
50
|
{
|
|
51
51
|
className: m ? "max-w-[20rem] text-sm font-medium leading-5 text-content-caption" : "text-base font-medium leading-5 text-content-caption",
|
|
52
|
-
children:
|
|
52
|
+
children: r ?? f("irisChat.greetingSubtitle")
|
|
53
53
|
}
|
|
54
54
|
),
|
|
55
55
|
n
|
|
@@ -57,16 +57,16 @@ const we = d(
|
|
|
57
57
|
}
|
|
58
58
|
);
|
|
59
59
|
}
|
|
60
|
-
), ze = d("IrisChatSuggestions", ({ className:
|
|
60
|
+
), ze = d("IrisChatSuggestions", ({ className: s, children: a, ...t }, r) => {
|
|
61
61
|
const { t: n } = b();
|
|
62
62
|
return /* @__PURE__ */ o(
|
|
63
63
|
"div",
|
|
64
64
|
{
|
|
65
|
-
ref:
|
|
65
|
+
ref: r,
|
|
66
66
|
"data-component": "iris-chat-suggestions",
|
|
67
67
|
className: c(
|
|
68
68
|
"flex flex-col gap-2 bg-[radial-gradient(ellipse_at_center,color-mix(in_srgb,var(--color-iris-control-glow-cyan)_12%,transparent),transparent_72%)] pb-6",
|
|
69
|
-
|
|
69
|
+
s
|
|
70
70
|
),
|
|
71
71
|
...t,
|
|
72
72
|
children: [
|
|
@@ -77,7 +77,7 @@ const we = d(
|
|
|
77
77
|
);
|
|
78
78
|
}), _e = d(
|
|
79
79
|
"IrisChatSuggestion",
|
|
80
|
-
({ className:
|
|
80
|
+
({ className: s, children: a, type: t = "button", ...r }, n) => /* @__PURE__ */ o(
|
|
81
81
|
"button",
|
|
82
82
|
{
|
|
83
83
|
ref: n,
|
|
@@ -85,24 +85,24 @@ const we = d(
|
|
|
85
85
|
"data-component": "iris-chat-suggestion",
|
|
86
86
|
className: c(
|
|
87
87
|
"flex h-8 items-center gap-1 rounded-md px-2 text-start text-sm font-medium leading-5 text-content-secondary hover:bg-accent",
|
|
88
|
-
|
|
88
|
+
s
|
|
89
89
|
),
|
|
90
|
-
...
|
|
90
|
+
...r,
|
|
91
91
|
children: [
|
|
92
|
-
/* @__PURE__ */ e(
|
|
92
|
+
/* @__PURE__ */ e(re, { size: 14 }),
|
|
93
93
|
/* @__PURE__ */ e("span", { className: "truncate", children: a })
|
|
94
94
|
]
|
|
95
95
|
}
|
|
96
96
|
)
|
|
97
|
-
), Ae = d("IrisChatWorkflows", ({ className:
|
|
97
|
+
), Ae = d("IrisChatWorkflows", ({ className: s, children: a, onShowMore: t, ...r }, n) => {
|
|
98
98
|
const { t: l } = b();
|
|
99
99
|
return /* @__PURE__ */ o(
|
|
100
100
|
"div",
|
|
101
101
|
{
|
|
102
102
|
ref: n,
|
|
103
103
|
"data-component": "iris-chat-workflows",
|
|
104
|
-
className: c("flex flex-col gap-2 pb-6",
|
|
105
|
-
...
|
|
104
|
+
className: c("flex flex-col gap-2 pb-6", s),
|
|
105
|
+
...r,
|
|
106
106
|
children: [
|
|
107
107
|
/* @__PURE__ */ e("p", { className: "text-xs font-medium capitalize leading-4 text-content-secondary", children: l("irisChat.suggestedWorkflows") }),
|
|
108
108
|
/* @__PURE__ */ e("div", { className: "flex flex-col", children: a }),
|
|
@@ -124,15 +124,15 @@ const we = d(
|
|
|
124
124
|
);
|
|
125
125
|
}), Se = d(
|
|
126
126
|
"IrisChatWorkflow",
|
|
127
|
-
({ className:
|
|
127
|
+
({ className: s, title: a, description: t, type: r = "button", ...n }, l) => /* @__PURE__ */ o(
|
|
128
128
|
"button",
|
|
129
129
|
{
|
|
130
130
|
ref: l,
|
|
131
|
-
type:
|
|
131
|
+
type: r,
|
|
132
132
|
"data-component": "iris-chat-workflow",
|
|
133
133
|
className: c(
|
|
134
134
|
"flex items-center gap-2 rounded-md py-2 text-start hover:bg-accent",
|
|
135
|
-
|
|
135
|
+
s
|
|
136
136
|
),
|
|
137
137
|
...n,
|
|
138
138
|
children: [
|
|
@@ -147,7 +147,7 @@ const we = d(
|
|
|
147
147
|
)
|
|
148
148
|
), Te = d(
|
|
149
149
|
"IrisChatThread",
|
|
150
|
-
({ className:
|
|
150
|
+
({ className: s, ...a }, t) => /* @__PURE__ */ e(
|
|
151
151
|
"div",
|
|
152
152
|
{
|
|
153
153
|
ref: t,
|
|
@@ -155,88 +155,94 @@ const we = d(
|
|
|
155
155
|
role: "log",
|
|
156
156
|
"aria-live": "polite",
|
|
157
157
|
"aria-relevant": "additions",
|
|
158
|
-
className: c("flex min-w-0 w-full flex-col gap-4 py-4",
|
|
158
|
+
className: c("flex min-w-0 w-full flex-col gap-4 py-4", s),
|
|
159
159
|
...a
|
|
160
160
|
}
|
|
161
161
|
)
|
|
162
162
|
), je = d(
|
|
163
163
|
"IrisChatDay",
|
|
164
|
-
({ className:
|
|
164
|
+
({ className: s, children: a, ...t }, r) => /* @__PURE__ */ e(
|
|
165
165
|
"div",
|
|
166
166
|
{
|
|
167
|
-
ref:
|
|
167
|
+
ref: r,
|
|
168
168
|
"data-component": "iris-chat-day",
|
|
169
|
-
className: c("flex justify-center",
|
|
169
|
+
className: c("flex justify-center", s),
|
|
170
170
|
...t,
|
|
171
171
|
children: /* @__PURE__ */ e("span", { className: "rounded-full bg-secondary px-3 py-1 text-xs font-medium text-content-secondary", children: a })
|
|
172
172
|
}
|
|
173
173
|
)
|
|
174
174
|
), Pe = d(
|
|
175
175
|
"IrisChatMessage",
|
|
176
|
-
({ className:
|
|
176
|
+
({ className: s, role: a, time: t, framed: r, children: n, ...l }, u) => /* @__PURE__ */ e(
|
|
177
177
|
"article",
|
|
178
178
|
{
|
|
179
|
-
ref:
|
|
179
|
+
ref: u,
|
|
180
180
|
"data-component": "iris-chat-message",
|
|
181
181
|
"data-role": a,
|
|
182
182
|
className: c(
|
|
183
183
|
"flex min-w-0 w-full flex-col gap-1",
|
|
184
184
|
a === "user" ? "items-end" : "items-start",
|
|
185
|
-
|
|
185
|
+
s
|
|
186
186
|
),
|
|
187
|
-
...
|
|
188
|
-
children: [
|
|
189
|
-
|
|
190
|
-
t ? /* @__PURE__ */ e(
|
|
191
|
-
|
|
187
|
+
...l,
|
|
188
|
+
children: /* @__PURE__ */ o("div", { "data-slot": "bubble", className: ie({ role: a, framed: r }), children: [
|
|
189
|
+
n,
|
|
190
|
+
t ? /* @__PURE__ */ e(
|
|
191
|
+
"time",
|
|
192
|
+
{
|
|
193
|
+
className: "col-start-2 self-end text-[10px] font-medium leading-[10px] text-secondary-foreground",
|
|
194
|
+
children: t
|
|
195
|
+
}
|
|
196
|
+
) : null
|
|
197
|
+
] })
|
|
192
198
|
}
|
|
193
199
|
)
|
|
194
200
|
), ce = ["notAsked", "tone", "incorrect", "other"], Ee = d(
|
|
195
201
|
"IrisChatActions",
|
|
196
202
|
({
|
|
197
|
-
className:
|
|
203
|
+
className: s,
|
|
198
204
|
liked: a,
|
|
199
205
|
disliked: t,
|
|
200
|
-
copyText:
|
|
206
|
+
copyText: r,
|
|
201
207
|
onLike: n,
|
|
202
208
|
onDislike: l,
|
|
203
|
-
onCopy:
|
|
204
|
-
onRetry:
|
|
209
|
+
onCopy: u,
|
|
210
|
+
onRetry: f,
|
|
205
211
|
onSpeak: C,
|
|
206
212
|
onFeedback: m,
|
|
207
|
-
...
|
|
213
|
+
...I
|
|
208
214
|
}, w) => {
|
|
209
|
-
const { t: i } = b(), [k, v] =
|
|
215
|
+
const { t: i } = b(), [k, v] = x(!1), [N, y] = x(!1), [G, A] = x(!1), [S, F] = x("notAsked"), [T, j] = x(""), [M, P] = x(!1), O = {
|
|
210
216
|
notAsked: i("irisChat.feedbackNotAsked"),
|
|
211
217
|
tone: i("irisChat.feedbackTone"),
|
|
212
218
|
incorrect: i("irisChat.feedbackIncorrect"),
|
|
213
219
|
other: i("irisChat.feedbackOther")
|
|
214
220
|
}, B = () => {
|
|
215
|
-
|
|
216
|
-
}),
|
|
221
|
+
r && navigator.clipboard?.writeText(r).catch(() => {
|
|
222
|
+
}), u?.(), v(!0), window.setTimeout(() => v(!1), 1600);
|
|
217
223
|
}, D = () => {
|
|
218
224
|
if (C) {
|
|
219
225
|
C();
|
|
220
226
|
return;
|
|
221
227
|
}
|
|
222
|
-
if (!
|
|
228
|
+
if (!r || typeof window.speechSynthesis > "u")
|
|
223
229
|
return;
|
|
224
230
|
if (N) {
|
|
225
|
-
window.speechSynthesis.cancel(),
|
|
231
|
+
window.speechSynthesis.cancel(), y(!1);
|
|
226
232
|
return;
|
|
227
233
|
}
|
|
228
|
-
const h = new SpeechSynthesisUtterance(
|
|
229
|
-
h.onend = () =>
|
|
234
|
+
const h = new SpeechSynthesisUtterance(r);
|
|
235
|
+
h.onend = () => y(!1), h.onerror = () => y(!1), window.speechSynthesis.speak(h), y(!0);
|
|
230
236
|
};
|
|
231
237
|
return /* @__PURE__ */ o(
|
|
232
238
|
"div",
|
|
233
239
|
{
|
|
234
240
|
ref: w,
|
|
235
241
|
"data-component": "iris-chat-actions",
|
|
236
|
-
className: c("flex items-center gap-0.5",
|
|
237
|
-
...
|
|
242
|
+
className: c("flex items-center gap-0.5", s),
|
|
243
|
+
...I,
|
|
238
244
|
children: [
|
|
239
|
-
/* @__PURE__ */ e(
|
|
245
|
+
/* @__PURE__ */ e(g, { label: i("irisChat.like"), children: /* @__PURE__ */ e(
|
|
240
246
|
p,
|
|
241
247
|
{
|
|
242
248
|
type: "button",
|
|
@@ -257,7 +263,7 @@ const we = d(
|
|
|
257
263
|
A(h), h || (P(!1), j(""));
|
|
258
264
|
},
|
|
259
265
|
children: [
|
|
260
|
-
/* @__PURE__ */ e(
|
|
266
|
+
/* @__PURE__ */ e(g, { label: i("irisChat.dislike"), children: /* @__PURE__ */ e(H, { asChild: !0, children: /* @__PURE__ */ e(
|
|
261
267
|
p,
|
|
262
268
|
{
|
|
263
269
|
type: "button",
|
|
@@ -311,7 +317,7 @@ const we = d(
|
|
|
311
317
|
] }) })
|
|
312
318
|
]
|
|
313
319
|
}
|
|
314
|
-
) : /* @__PURE__ */ e(
|
|
320
|
+
) : /* @__PURE__ */ e(g, { label: i("irisChat.dislike"), children: /* @__PURE__ */ e(
|
|
315
321
|
p,
|
|
316
322
|
{
|
|
317
323
|
type: "button",
|
|
@@ -324,7 +330,7 @@ const we = d(
|
|
|
324
330
|
children: /* @__PURE__ */ e(E, { size: 16 })
|
|
325
331
|
}
|
|
326
332
|
) }),
|
|
327
|
-
|
|
333
|
+
r || u ? /* @__PURE__ */ e(g, { label: i(k ? "irisChat.copied" : "irisChat.copy"), children: /* @__PURE__ */ e(
|
|
328
334
|
p,
|
|
329
335
|
{
|
|
330
336
|
type: "button",
|
|
@@ -336,7 +342,7 @@ const we = d(
|
|
|
336
342
|
children: /* @__PURE__ */ e($, { size: 16 })
|
|
337
343
|
}
|
|
338
344
|
) }) : null,
|
|
339
|
-
/* @__PURE__ */ e(
|
|
345
|
+
/* @__PURE__ */ e(g, { label: i(N ? "irisChat.stopSpeaking" : "irisChat.speak"), children: /* @__PURE__ */ e(
|
|
340
346
|
p,
|
|
341
347
|
{
|
|
342
348
|
type: "button",
|
|
@@ -348,7 +354,7 @@ const we = d(
|
|
|
348
354
|
children: /* @__PURE__ */ e(ee, { size: 16 })
|
|
349
355
|
}
|
|
350
356
|
) }),
|
|
351
|
-
|
|
357
|
+
f ? /* @__PURE__ */ e(g, { label: i("irisChat.retry"), children: /* @__PURE__ */ e(
|
|
352
358
|
p,
|
|
353
359
|
{
|
|
354
360
|
type: "button",
|
|
@@ -356,7 +362,7 @@ const we = d(
|
|
|
356
362
|
size: "icon",
|
|
357
363
|
"aria-label": i("irisChat.retry"),
|
|
358
364
|
"data-testid": "iris-chat-retry",
|
|
359
|
-
onClick:
|
|
365
|
+
onClick: f,
|
|
360
366
|
children: /* @__PURE__ */ e(te, { size: 16 })
|
|
361
367
|
}
|
|
362
368
|
) }) : null
|
|
@@ -366,18 +372,18 @@ const we = d(
|
|
|
366
372
|
}
|
|
367
373
|
), Ge = d(
|
|
368
374
|
"IrisChatFollowUps",
|
|
369
|
-
({ className:
|
|
375
|
+
({ className: s, ...a }, t) => /* @__PURE__ */ e(
|
|
370
376
|
"div",
|
|
371
377
|
{
|
|
372
378
|
ref: t,
|
|
373
379
|
"data-component": "iris-chat-follow-ups",
|
|
374
|
-
className: c("flex w-full flex-col overflow-hidden rounded-xl border border-stroke-subtle",
|
|
380
|
+
className: c("flex w-full flex-col overflow-hidden rounded-xl border border-stroke-subtle", s),
|
|
375
381
|
...a
|
|
376
382
|
}
|
|
377
383
|
)
|
|
378
384
|
), Fe = d(
|
|
379
385
|
"IrisChatFollowUp",
|
|
380
|
-
({ className:
|
|
386
|
+
({ className: s, children: a, type: t = "button", ...r }, n) => /* @__PURE__ */ o(
|
|
381
387
|
"button",
|
|
382
388
|
{
|
|
383
389
|
ref: n,
|
|
@@ -385,9 +391,9 @@ const we = d(
|
|
|
385
391
|
"data-component": "iris-chat-follow-up",
|
|
386
392
|
className: c(
|
|
387
393
|
"flex w-full items-center justify-between gap-3 border-b border-stroke-subtle px-3 py-2.5 text-start text-sm last:border-b-0 hover:bg-accent",
|
|
388
|
-
|
|
394
|
+
s
|
|
389
395
|
),
|
|
390
|
-
...
|
|
396
|
+
...r,
|
|
391
397
|
children: [
|
|
392
398
|
/* @__PURE__ */ o("span", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
|
|
393
399
|
/* @__PURE__ */ e(_, { size: 14 }),
|
|
@@ -399,32 +405,32 @@ const we = d(
|
|
|
399
405
|
)
|
|
400
406
|
), Me = d(
|
|
401
407
|
"IrisChatAttachment",
|
|
402
|
-
({ className:
|
|
403
|
-
const { t:
|
|
408
|
+
({ className: s, name: a, kind: t = "file", sizeLabel: r, previewUrl: n, onRemove: l }, u) => {
|
|
409
|
+
const { t: f } = b();
|
|
404
410
|
return /* @__PURE__ */ o(
|
|
405
411
|
"div",
|
|
406
412
|
{
|
|
407
|
-
ref:
|
|
413
|
+
ref: u,
|
|
408
414
|
"data-component": "iris-chat-attachment",
|
|
409
415
|
"data-kind": t,
|
|
410
416
|
className: c(
|
|
411
417
|
"flex max-w-full items-center gap-2 rounded-xl bg-canvas-elevated px-2 py-1.5 text-xs text-content",
|
|
412
|
-
|
|
418
|
+
s
|
|
413
419
|
),
|
|
414
420
|
children: [
|
|
415
421
|
t === "image" && n ? /* @__PURE__ */ e("img", { src: n, alt: "", className: "size-10 shrink-0 rounded-lg object-cover" }) : /* @__PURE__ */ e(ae, { size: 14 }),
|
|
416
422
|
/* @__PURE__ */ o("span", { className: "min-w-0", children: [
|
|
417
423
|
/* @__PURE__ */ e("span", { className: "block truncate font-medium", children: a }),
|
|
418
|
-
|
|
424
|
+
r ? /* @__PURE__ */ e("span", { className: "block text-content-caption", children: r }) : null
|
|
419
425
|
] }),
|
|
420
|
-
l ? /* @__PURE__ */ e(
|
|
426
|
+
l ? /* @__PURE__ */ e(g, { label: f("irisChat.removeAttachment"), children: /* @__PURE__ */ e(
|
|
421
427
|
p,
|
|
422
428
|
{
|
|
423
429
|
type: "button",
|
|
424
430
|
variant: "ghost",
|
|
425
431
|
size: "icon",
|
|
426
432
|
className: "size-6",
|
|
427
|
-
"aria-label":
|
|
433
|
+
"aria-label": f("irisChat.removeAttachment"),
|
|
428
434
|
onClick: l,
|
|
429
435
|
children: /* @__PURE__ */ e(U, { size: 12 })
|
|
430
436
|
}
|
|
@@ -435,14 +441,14 @@ const we = d(
|
|
|
435
441
|
}
|
|
436
442
|
), Oe = d(
|
|
437
443
|
"IrisChatError",
|
|
438
|
-
({ className:
|
|
444
|
+
({ className: s, title: a, description: t, onRetry: r }, n) => {
|
|
439
445
|
const { t: l } = b();
|
|
440
|
-
return /* @__PURE__ */ e("div", { ref: n, "data-component": "iris-chat-error", className: c("w-full",
|
|
446
|
+
return /* @__PURE__ */ e("div", { ref: n, "data-component": "iris-chat-error", className: c("w-full", s), children: /* @__PURE__ */ o(J, { variant: "error", children: [
|
|
441
447
|
/* @__PURE__ */ e(Q, { variant: "error" }),
|
|
442
448
|
/* @__PURE__ */ o("div", { className: "flex min-w-0 flex-1 flex-col gap-2", children: [
|
|
443
449
|
/* @__PURE__ */ e(X, { children: a ?? l("irisChat.generationError") }),
|
|
444
450
|
/* @__PURE__ */ e(Y, { children: t ?? l("irisChat.generationErrorBody") }),
|
|
445
|
-
|
|
451
|
+
r ? /* @__PURE__ */ e(
|
|
446
452
|
p,
|
|
447
453
|
{
|
|
448
454
|
type: "button",
|
|
@@ -450,7 +456,7 @@ const we = d(
|
|
|
450
456
|
variant: "outline",
|
|
451
457
|
className: "w-fit",
|
|
452
458
|
"data-testid": "iris-chat-error-retry",
|
|
453
|
-
onClick:
|
|
459
|
+
onClick: r,
|
|
454
460
|
children: l("irisChat.retry")
|
|
455
461
|
}
|
|
456
462
|
) : null
|
|
@@ -459,7 +465,7 @@ const we = d(
|
|
|
459
465
|
}
|
|
460
466
|
), Be = d(
|
|
461
467
|
"IrisChatChip",
|
|
462
|
-
({ className:
|
|
468
|
+
({ className: s, type: a = "button", variant: t = "default", ...r }, n) => /* @__PURE__ */ e(
|
|
463
469
|
"button",
|
|
464
470
|
{
|
|
465
471
|
ref: n,
|
|
@@ -469,9 +475,9 @@ const we = d(
|
|
|
469
475
|
className: c(
|
|
470
476
|
"rounded-full px-3 py-1.5 text-sm font-medium leading-5 disabled:pointer-events-none disabled:opacity-50",
|
|
471
477
|
t === "outline" ? "border border-stroke bg-canvas text-content hover:bg-accent" : "border border-stroke-subtle bg-secondary text-content hover:bg-accent",
|
|
472
|
-
|
|
478
|
+
s
|
|
473
479
|
),
|
|
474
|
-
...
|
|
480
|
+
...r
|
|
475
481
|
}
|
|
476
482
|
)
|
|
477
483
|
);
|