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.
Files changed (24) hide show
  1. package/dist/components/data/ag-grid-react/headers/header-search-input.js +203 -199
  2. package/dist/components/flows/iris-chat/iris-chat-artifact.js +46 -36
  3. package/dist/components/flows/iris-chat/iris-chat-markdown.js +47 -27
  4. package/dist/components/flows/iris-chat/iris-chat-thread.d.ts +1 -0
  5. package/dist/components/flows/iris-chat/iris-chat-thread.js +81 -75
  6. package/dist/components/flows/iris-chat/iris-chat.js +83 -83
  7. package/dist/components/flows/iris-chat/iris-chat.types.d.ts +2 -0
  8. package/dist/components/flows/iris-chat/iris-chat.variants.d.ts +1 -0
  9. package/dist/components/flows/iris-chat/iris-chat.variants.js +29 -11
  10. package/dist/components/forms/choice-card/choice-card-percent.js +50 -37
  11. package/dist/components/forms/input/input.js +5 -5
  12. package/dist/components/primitives/button/button.variants.js +1 -1
  13. package/dist/components/primitives/stepper/internals/step-model.d.ts +1 -1
  14. package/dist/components/primitives/stepper/internals/step-model.js +5 -5
  15. package/dist/components/primitives/stepper/internals/stepper-compact.js +13 -13
  16. package/dist/components/primitives/stepper/internals/stepper-pipeline.js +6 -6
  17. package/dist/components/primitives/stepper/internals/stepper-rail.js +15 -15
  18. package/dist/components/primitives/stepper/internals/stepper-summary.js +2 -2
  19. package/dist/components/primitives/stepper/internals/stepper-track.js +2 -2
  20. package/dist/components/primitives/stepper/stepper.js +92 -91
  21. package/dist/components/primitives/stepper/stepper.types.d.ts +2 -0
  22. package/dist/impact-nova-components.css +56 -0
  23. package/dist/impact-nova.css +1 -1
  24. 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 g } from "react";
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 f } from "../../feedback/tooltip/button-icon-tooltip.js";
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 se } from "./iris-chat-icons.js";
13
- import { useIrisChatOptional as re } from "./iris-chat-context.js";
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: r, name: a, greeting: t, subtitle: s, children: n, mark: l }, x) => {
19
- const { t: u } = b(), C = re(), m = C?.placement === "minimized" || C?.placement === "composer", y = ne(), w = l ?? oe(), i = t ?? u(le(y)), 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";
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: x,
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
- r
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: s ?? u("irisChat.greetingSubtitle")
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: r, children: a, ...t }, s) => {
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: s,
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
- r
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: r, children: a, type: t = "button", ...s }, n) => /* @__PURE__ */ o(
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
- r
88
+ s
89
89
  ),
90
- ...s,
90
+ ...r,
91
91
  children: [
92
- /* @__PURE__ */ e(se, { size: 14 }),
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: r, children: a, onShowMore: t, ...s }, n) => {
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", r),
105
- ...s,
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: r, title: a, description: t, type: s = "button", ...n }, l) => /* @__PURE__ */ o(
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: s,
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
- r
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: r, ...a }, t) => /* @__PURE__ */ e(
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", r),
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: r, children: a, ...t }, s) => /* @__PURE__ */ e(
164
+ ({ className: s, children: a, ...t }, r) => /* @__PURE__ */ e(
165
165
  "div",
166
166
  {
167
- ref: s,
167
+ ref: r,
168
168
  "data-component": "iris-chat-day",
169
- className: c("flex justify-center", r),
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: r, role: a, time: t, children: s, ...n }, l) => /* @__PURE__ */ o(
176
+ ({ className: s, role: a, time: t, framed: r, children: n, ...l }, u) => /* @__PURE__ */ e(
177
177
  "article",
178
178
  {
179
- ref: l,
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
- r
185
+ s
186
186
  ),
187
- ...n,
188
- children: [
189
- /* @__PURE__ */ e("div", { "data-slot": "bubble", className: ie({ role: a }), children: s }),
190
- t ? /* @__PURE__ */ e("time", { className: "px-1 text-[10px] leading-4 text-content-caption", children: t }) : null
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: r,
203
+ className: s,
198
204
  liked: a,
199
205
  disliked: t,
200
- copyText: s,
206
+ copyText: r,
201
207
  onLike: n,
202
208
  onDislike: l,
203
- onCopy: x,
204
- onRetry: u,
209
+ onCopy: u,
210
+ onRetry: f,
205
211
  onSpeak: C,
206
212
  onFeedback: m,
207
- ...y
213
+ ...I
208
214
  }, w) => {
209
- const { t: i } = b(), [k, v] = g(!1), [N, I] = g(!1), [G, A] = g(!1), [S, F] = g("notAsked"), [T, j] = g(""), [M, P] = g(!1), O = {
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
- s && navigator.clipboard?.writeText(s).catch(() => {
216
- }), x?.(), v(!0), window.setTimeout(() => v(!1), 1600);
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 (!s || typeof window.speechSynthesis > "u")
228
+ if (!r || typeof window.speechSynthesis > "u")
223
229
  return;
224
230
  if (N) {
225
- window.speechSynthesis.cancel(), I(!1);
231
+ window.speechSynthesis.cancel(), y(!1);
226
232
  return;
227
233
  }
228
- const h = new SpeechSynthesisUtterance(s);
229
- h.onend = () => I(!1), h.onerror = () => I(!1), window.speechSynthesis.speak(h), I(!0);
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", r),
237
- ...y,
242
+ className: c("flex items-center gap-0.5", s),
243
+ ...I,
238
244
  children: [
239
- /* @__PURE__ */ e(f, { label: i("irisChat.like"), children: /* @__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(f, { label: i("irisChat.dislike"), children: /* @__PURE__ */ e(H, { asChild: !0, children: /* @__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(f, { label: i("irisChat.dislike"), children: /* @__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
- s || x ? /* @__PURE__ */ e(f, { label: i(k ? "irisChat.copied" : "irisChat.copy"), children: /* @__PURE__ */ e(
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(f, { label: i(N ? "irisChat.stopSpeaking" : "irisChat.speak"), children: /* @__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
- u ? /* @__PURE__ */ e(f, { label: i("irisChat.retry"), children: /* @__PURE__ */ e(
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: u,
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: r, ...a }, t) => /* @__PURE__ */ e(
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", r),
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: r, children: a, type: t = "button", ...s }, n) => /* @__PURE__ */ o(
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
- r
394
+ s
389
395
  ),
390
- ...s,
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: r, name: a, kind: t = "file", sizeLabel: s, previewUrl: n, onRemove: l }, x) => {
403
- const { t: u } = b();
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: x,
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
- r
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
- s ? /* @__PURE__ */ e("span", { className: "block text-content-caption", children: s }) : null
424
+ r ? /* @__PURE__ */ e("span", { className: "block text-content-caption", children: r }) : null
419
425
  ] }),
420
- l ? /* @__PURE__ */ e(f, { label: u("irisChat.removeAttachment"), children: /* @__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": u("irisChat.removeAttachment"),
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: r, title: a, description: t, onRetry: s }, n) => {
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", r), children: /* @__PURE__ */ o(J, { variant: "error", children: [
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
- s ? /* @__PURE__ */ e(
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: s,
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: r, type: a = "button", variant: t = "default", ...s }, n) => /* @__PURE__ */ e(
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
- r
478
+ s
473
479
  ),
474
- ...s
480
+ ...r
475
481
  }
476
482
  )
477
483
  );