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
|
@@ -18,22 +18,22 @@ import { irisChatRootVariants as J, irisChatHeaderVariants as K, irisChatPanelVa
|
|
|
18
18
|
const U = ({
|
|
19
19
|
open: e,
|
|
20
20
|
defaultOpen: t = !0,
|
|
21
|
-
onOpenChange:
|
|
21
|
+
onOpenChange: n,
|
|
22
22
|
placement: i,
|
|
23
|
-
defaultPlacement:
|
|
24
|
-
onPlacementChange:
|
|
23
|
+
defaultPlacement: o = "dock-right",
|
|
24
|
+
onPlacementChange: a,
|
|
25
25
|
className: l,
|
|
26
26
|
children: d
|
|
27
27
|
}) => {
|
|
28
|
-
const [
|
|
28
|
+
const [s, h] = b({
|
|
29
29
|
prop: e,
|
|
30
30
|
defaultProp: t,
|
|
31
|
-
onChange:
|
|
31
|
+
onChange: n
|
|
32
32
|
}), [u, x] = b({
|
|
33
33
|
prop: i,
|
|
34
|
-
defaultProp:
|
|
35
|
-
onChange:
|
|
36
|
-
}), C =
|
|
34
|
+
defaultProp: o,
|
|
35
|
+
onChange: a
|
|
36
|
+
}), C = s ?? t, f = u ?? o;
|
|
37
37
|
return /* @__PURE__ */ r(
|
|
38
38
|
A,
|
|
39
39
|
{
|
|
@@ -59,122 +59,122 @@ const U = ({
|
|
|
59
59
|
U.displayName = "IrisChat";
|
|
60
60
|
const me = c(
|
|
61
61
|
"IrisChatPanel",
|
|
62
|
-
({ className: e, hidden: t, ...
|
|
63
|
-
const
|
|
64
|
-
return t ?? !
|
|
62
|
+
({ className: e, hidden: t, ...n }, i) => {
|
|
63
|
+
const o = g();
|
|
64
|
+
return t ?? !o.open ? null : /* @__PURE__ */ r(
|
|
65
65
|
"div",
|
|
66
66
|
{
|
|
67
67
|
ref: i,
|
|
68
68
|
"data-component": "iris-chat-panel",
|
|
69
|
-
"data-placement":
|
|
70
|
-
className: m(Q({ placement:
|
|
71
|
-
...
|
|
69
|
+
"data-placement": o.placement,
|
|
70
|
+
className: m(Q({ placement: o.placement }), e),
|
|
71
|
+
...n
|
|
72
72
|
}
|
|
73
73
|
);
|
|
74
74
|
}
|
|
75
75
|
), de = c(
|
|
76
76
|
"IrisChatHeader",
|
|
77
|
-
({ className: e, ...t },
|
|
77
|
+
({ className: e, ...t }, n) => /* @__PURE__ */ r(
|
|
78
78
|
"header",
|
|
79
79
|
{
|
|
80
|
-
ref:
|
|
80
|
+
ref: n,
|
|
81
81
|
"data-component": "iris-chat-header",
|
|
82
82
|
className: m(K(), e),
|
|
83
83
|
...t
|
|
84
84
|
}
|
|
85
85
|
)
|
|
86
|
-
), he = c("IrisChatHeaderLeading", ({ className: e, ...t },
|
|
86
|
+
), he = c("IrisChatHeaderLeading", ({ className: e, ...t }, n) => /* @__PURE__ */ r(
|
|
87
87
|
"div",
|
|
88
88
|
{
|
|
89
|
-
ref:
|
|
89
|
+
ref: n,
|
|
90
90
|
"data-component": "iris-chat-header-leading",
|
|
91
91
|
className: m("flex min-w-0 items-center gap-2", e),
|
|
92
92
|
...t
|
|
93
93
|
}
|
|
94
|
-
)), pe = c("IrisChatHeaderTrailing", ({ className: e, ...t },
|
|
94
|
+
)), pe = c("IrisChatHeaderTrailing", ({ className: e, ...t }, n) => /* @__PURE__ */ r(
|
|
95
95
|
"div",
|
|
96
96
|
{
|
|
97
|
-
ref:
|
|
97
|
+
ref: n,
|
|
98
98
|
"data-component": "iris-chat-header-trailing",
|
|
99
99
|
className: m("flex shrink-0 items-center gap-2", e),
|
|
100
100
|
...t
|
|
101
101
|
}
|
|
102
102
|
)), ue = c(
|
|
103
103
|
"IrisChatHeaderTitle",
|
|
104
|
-
({ className: e, showBrand: t = !1, children:
|
|
105
|
-
const { t:
|
|
104
|
+
({ className: e, showBrand: t = !1, children: n, ...i }, o) => {
|
|
105
|
+
const { t: a } = p();
|
|
106
106
|
return /* @__PURE__ */ I("div", { className: "flex min-w-0 items-center gap-1", children: [
|
|
107
107
|
t ? /* @__PURE__ */ r(N, { size: 18 }) : null,
|
|
108
108
|
/* @__PURE__ */ r(
|
|
109
109
|
"h2",
|
|
110
110
|
{
|
|
111
|
-
ref:
|
|
111
|
+
ref: o,
|
|
112
112
|
"data-component": "iris-chat-header-title",
|
|
113
113
|
className: m("truncate text-sm font-semibold leading-5 text-content", e),
|
|
114
114
|
...i,
|
|
115
|
-
children:
|
|
115
|
+
children: n ?? a("irisChat.askIris")
|
|
116
116
|
}
|
|
117
117
|
)
|
|
118
118
|
] });
|
|
119
119
|
}
|
|
120
120
|
), v = c(
|
|
121
121
|
"IrisChatIconButton",
|
|
122
|
-
({ className: e, label: t, children:
|
|
122
|
+
({ className: e, label: t, children: n, type: i = "button", variant: o = "secondary", disabled: a, ...l }, d) => /* @__PURE__ */ r(L, { label: t, disabled: a, children: /* @__PURE__ */ r(
|
|
123
123
|
S,
|
|
124
124
|
{
|
|
125
125
|
ref: d,
|
|
126
126
|
type: i,
|
|
127
|
-
variant:
|
|
127
|
+
variant: o,
|
|
128
128
|
size: "icon",
|
|
129
129
|
"aria-label": t,
|
|
130
|
-
disabled:
|
|
130
|
+
disabled: a,
|
|
131
131
|
"data-component": "iris-chat-icon-button",
|
|
132
132
|
className: m(
|
|
133
133
|
"text-content",
|
|
134
|
-
|
|
134
|
+
o === "secondary" ? "rounded-full" : "rounded-lg",
|
|
135
135
|
e
|
|
136
136
|
),
|
|
137
137
|
...l,
|
|
138
|
-
children:
|
|
138
|
+
children: n
|
|
139
139
|
}
|
|
140
140
|
) })
|
|
141
|
-
), Ce = c("IrisChatHeaderMenuButton", ({ label: e, ...t },
|
|
141
|
+
), Ce = c("IrisChatHeaderMenuButton", ({ label: e, ...t }, n) => {
|
|
142
142
|
const { t: i } = p();
|
|
143
|
-
return /* @__PURE__ */ r(v, { ref:
|
|
144
|
-
}), fe = c("IrisChatHeaderBackButton", ({ label: e, ...t },
|
|
143
|
+
return /* @__PURE__ */ r(v, { ref: n, variant: "ghost", label: e ?? i("irisChat.menu"), ...t, children: /* @__PURE__ */ r(G, { size: 16 }) });
|
|
144
|
+
}), fe = c("IrisChatHeaderBackButton", ({ label: e, ...t }, n) => {
|
|
145
145
|
const { t: i } = p();
|
|
146
|
-
return /* @__PURE__ */ r(v, { ref:
|
|
147
|
-
}), Ie = c("IrisChatHeaderNewChatButton", ({ label: e, ...t },
|
|
146
|
+
return /* @__PURE__ */ r(v, { ref: n, variant: "ghost", label: e ?? i("irisChat.back"), ...t, children: /* @__PURE__ */ r(k, { size: 16 }) });
|
|
147
|
+
}), Ie = c("IrisChatHeaderNewChatButton", ({ label: e, ...t }, n) => {
|
|
148
148
|
const { t: i } = p();
|
|
149
|
-
return /* @__PURE__ */ r(v, { ref:
|
|
150
|
-
}), ge = c("IrisChatHeaderMinimizeButton", ({ label: e, onClick: t, ...
|
|
151
|
-
const { t:
|
|
152
|
-
|
|
153
|
-
), d =
|
|
149
|
+
return /* @__PURE__ */ r(v, { ref: n, label: e ?? i("irisChat.newChat"), ...t, children: /* @__PURE__ */ r(T, { size: 16 }) });
|
|
150
|
+
}), ge = c("IrisChatHeaderMinimizeButton", ({ label: e, onClick: t, ...n }, i) => {
|
|
151
|
+
const { t: o } = p(), a = g(), l = H.useRef(
|
|
152
|
+
a.placement === "minimized" ? "float" : a.placement
|
|
153
|
+
), d = a.placement === "minimized";
|
|
154
154
|
return /* @__PURE__ */ r(
|
|
155
155
|
v,
|
|
156
156
|
{
|
|
157
157
|
ref: i,
|
|
158
|
-
label: e ??
|
|
158
|
+
label: e ?? o(d ? "irisChat.expand" : "irisChat.minimize"),
|
|
159
159
|
"aria-pressed": d,
|
|
160
|
-
onClick: (
|
|
161
|
-
d ?
|
|
160
|
+
onClick: (s) => {
|
|
161
|
+
d ? a.setPlacement(l.current) : (l.current = a.placement, a.setPlacement("minimized")), t?.(s);
|
|
162
162
|
},
|
|
163
|
-
...
|
|
163
|
+
...n,
|
|
164
164
|
children: /* @__PURE__ */ r(q, { size: 16 })
|
|
165
165
|
}
|
|
166
166
|
);
|
|
167
|
-
}), ve = c("IrisChatHeaderCloseButton", ({ label: e, onClick: t, ...
|
|
168
|
-
const { t:
|
|
167
|
+
}), ve = c("IrisChatHeaderCloseButton", ({ label: e, onClick: t, ...n }, i) => {
|
|
168
|
+
const { t: o } = p(), a = g();
|
|
169
169
|
return /* @__PURE__ */ r(
|
|
170
170
|
v,
|
|
171
171
|
{
|
|
172
172
|
ref: i,
|
|
173
|
-
label: e ??
|
|
173
|
+
label: e ?? o("aria.close"),
|
|
174
174
|
onClick: (l) => {
|
|
175
|
-
|
|
175
|
+
a.setOpen(!1), t?.(l);
|
|
176
176
|
},
|
|
177
|
-
...
|
|
177
|
+
...n,
|
|
178
178
|
children: /* @__PURE__ */ r(w, { size: 16 })
|
|
179
179
|
}
|
|
180
180
|
);
|
|
@@ -184,22 +184,22 @@ function B(e) {
|
|
|
184
184
|
}
|
|
185
185
|
const xe = c(
|
|
186
186
|
"IrisChatBody",
|
|
187
|
-
({ className: e, onScroll: t, ...
|
|
188
|
-
const
|
|
187
|
+
({ className: e, onScroll: t, ...n }, i) => {
|
|
188
|
+
const o = g(), a = H.useRef(null), l = H.useRef(!0), d = j(i, a);
|
|
189
189
|
return H.useEffect(() => {
|
|
190
|
-
const
|
|
191
|
-
if (!
|
|
190
|
+
const s = a.current;
|
|
191
|
+
if (!s)
|
|
192
192
|
return;
|
|
193
193
|
const h = () => {
|
|
194
|
-
l.current && (
|
|
194
|
+
l.current && (s.scrollTop = s.scrollHeight);
|
|
195
195
|
}, u = new ResizeObserver(h), x = () => {
|
|
196
|
-
u.disconnect(), u.observe(
|
|
197
|
-
for (const f of
|
|
196
|
+
u.disconnect(), u.observe(s);
|
|
197
|
+
for (const f of s.children)
|
|
198
198
|
u.observe(f);
|
|
199
199
|
}, C = new MutationObserver(() => {
|
|
200
200
|
x(), h();
|
|
201
201
|
});
|
|
202
|
-
return C.observe(
|
|
202
|
+
return C.observe(s, { childList: !0, subtree: !0, characterData: !0 }), x(), h(), () => {
|
|
203
203
|
u.disconnect(), C.disconnect();
|
|
204
204
|
};
|
|
205
205
|
}, []), /* @__PURE__ */ r(
|
|
@@ -207,28 +207,28 @@ const xe = c(
|
|
|
207
207
|
{
|
|
208
208
|
ref: d,
|
|
209
209
|
"data-component": "iris-chat-body",
|
|
210
|
-
"data-placement":
|
|
210
|
+
"data-placement": o.placement,
|
|
211
211
|
className: m(
|
|
212
|
-
"flex min-h-0 min-w-0 flex-1 flex-col overflow-x-hidden overflow-y-auto",
|
|
213
|
-
B(
|
|
212
|
+
"flex min-h-0 min-w-0 flex-1 flex-col overflow-x-hidden overflow-y-auto overscroll-x-contain",
|
|
213
|
+
B(o.placement) ? "px-4" : "px-12",
|
|
214
214
|
e
|
|
215
215
|
),
|
|
216
|
-
onScroll: (
|
|
217
|
-
const h =
|
|
218
|
-
l.current = h.scrollHeight - h.scrollTop - h.clientHeight < 64, t?.(
|
|
216
|
+
onScroll: (s) => {
|
|
217
|
+
const h = s.currentTarget;
|
|
218
|
+
l.current = h.scrollHeight - h.scrollTop - h.clientHeight < 64, t?.(s);
|
|
219
219
|
},
|
|
220
|
-
...
|
|
220
|
+
...n
|
|
221
221
|
}
|
|
222
222
|
);
|
|
223
223
|
}
|
|
224
224
|
), He = c(
|
|
225
225
|
"IrisChatFooter",
|
|
226
|
-
({ className: e, ...t },
|
|
226
|
+
({ className: e, ...t }, n) => {
|
|
227
227
|
const i = g();
|
|
228
228
|
return /* @__PURE__ */ r(
|
|
229
229
|
"div",
|
|
230
230
|
{
|
|
231
|
-
ref:
|
|
231
|
+
ref: n,
|
|
232
232
|
"data-component": "iris-chat-footer",
|
|
233
233
|
"data-placement": i.placement,
|
|
234
234
|
className: m(
|
|
@@ -242,29 +242,29 @@ const xe = c(
|
|
|
242
242
|
}
|
|
243
243
|
), be = c(
|
|
244
244
|
"IrisChatDisclaimer",
|
|
245
|
-
({ className: e, href: t, children:
|
|
246
|
-
const { t:
|
|
245
|
+
({ className: e, href: t, children: n, ...i }, o) => {
|
|
246
|
+
const { t: a } = p();
|
|
247
247
|
return /* @__PURE__ */ r(
|
|
248
248
|
"p",
|
|
249
249
|
{
|
|
250
|
-
ref:
|
|
250
|
+
ref: o,
|
|
251
251
|
"data-component": "iris-chat-disclaimer",
|
|
252
252
|
className: m(
|
|
253
253
|
"shrink-0 px-4 py-3 text-center text-xs font-medium leading-4 text-content-caption",
|
|
254
254
|
e
|
|
255
255
|
),
|
|
256
256
|
...i,
|
|
257
|
-
children:
|
|
258
|
-
|
|
257
|
+
children: n ?? /* @__PURE__ */ I(z, { children: [
|
|
258
|
+
a("irisChat.disclaimer"),
|
|
259
259
|
" ",
|
|
260
|
-
t ? /* @__PURE__ */ r("a", { href: t, className: "underline hover:text-brand", children:
|
|
260
|
+
t ? /* @__PURE__ */ r("a", { href: t, className: "underline hover:text-brand", children: a("irisChat.learnMore") }) : /* @__PURE__ */ I(y, { children: [
|
|
261
261
|
/* @__PURE__ */ r(R, { asChild: !0, children: /* @__PURE__ */ r(
|
|
262
262
|
"button",
|
|
263
263
|
{
|
|
264
264
|
type: "button",
|
|
265
265
|
className: "underline hover:text-brand",
|
|
266
266
|
"data-testid": "iris-chat-learn-more",
|
|
267
|
-
children:
|
|
267
|
+
children: a("irisChat.learnMore")
|
|
268
268
|
}
|
|
269
269
|
) }),
|
|
270
270
|
/* @__PURE__ */ I(
|
|
@@ -276,9 +276,9 @@ const xe = c(
|
|
|
276
276
|
children: [
|
|
277
277
|
/* @__PURE__ */ r(O, { className: "mb-2", children: /* @__PURE__ */ I("div", { className: "flex items-center gap-2", children: [
|
|
278
278
|
/* @__PURE__ */ r(N, { size: 18 }),
|
|
279
|
-
/* @__PURE__ */ r(D, { className: "text-sm font-semibold", children:
|
|
279
|
+
/* @__PURE__ */ r(D, { className: "text-sm font-semibold", children: a("irisChat.disclaimerTitle") })
|
|
280
280
|
] }) }),
|
|
281
|
-
/* @__PURE__ */ r(F, { className: "text-sm leading-5 text-content-secondary", children:
|
|
281
|
+
/* @__PURE__ */ r(F, { className: "text-sm leading-5 text-content-secondary", children: a("irisChat.disclaimerBody") })
|
|
282
282
|
]
|
|
283
283
|
}
|
|
284
284
|
)
|
|
@@ -289,8 +289,8 @@ const xe = c(
|
|
|
289
289
|
}
|
|
290
290
|
), Ne = c(
|
|
291
291
|
"IrisChatTrigger",
|
|
292
|
-
({ asChild: e = !1, onClick: t, size:
|
|
293
|
-
const d = E(),
|
|
292
|
+
({ asChild: e = !1, onClick: t, size: n = "md", shape: i = "default", className: o, ...a }, l) => {
|
|
293
|
+
const d = E(), s = (h) => {
|
|
294
294
|
d?.setOpen(!0), t?.(h);
|
|
295
295
|
};
|
|
296
296
|
return e ? /* @__PURE__ */ r(
|
|
@@ -298,20 +298,20 @@ const xe = c(
|
|
|
298
298
|
{
|
|
299
299
|
ref: l,
|
|
300
300
|
"data-component": "iris-chat-trigger",
|
|
301
|
-
className: m("pointer-events-auto",
|
|
302
|
-
onClick:
|
|
303
|
-
...
|
|
301
|
+
className: m("pointer-events-auto", o),
|
|
302
|
+
onClick: s,
|
|
303
|
+
...a
|
|
304
304
|
}
|
|
305
305
|
) : /* @__PURE__ */ r(
|
|
306
306
|
V,
|
|
307
307
|
{
|
|
308
308
|
ref: l,
|
|
309
|
-
size:
|
|
309
|
+
size: n,
|
|
310
310
|
shape: i,
|
|
311
311
|
"data-component": "iris-chat-trigger",
|
|
312
|
-
className: m("pointer-events-auto",
|
|
313
|
-
onClick:
|
|
314
|
-
...
|
|
312
|
+
className: m("pointer-events-auto", o),
|
|
313
|
+
onClick: s,
|
|
314
|
+
...a
|
|
315
315
|
}
|
|
316
316
|
);
|
|
317
317
|
}
|
|
@@ -112,6 +112,8 @@ export type IrisChatDayProps = React.HTMLAttributes<HTMLDivElement>;
|
|
|
112
112
|
export type IrisChatMessageProps = React.HTMLAttributes<HTMLElement> & {
|
|
113
113
|
role: IrisChatRole;
|
|
114
114
|
time?: string;
|
|
115
|
+
/** Revolving reply ring. Leave unset for the thinking row. */
|
|
116
|
+
framed?: boolean;
|
|
115
117
|
};
|
|
116
118
|
export type IrisChatFeedbackReason = "notAsked" | "tone" | "incorrect" | "other";
|
|
117
119
|
export type IrisChatFeedback = {
|
|
@@ -10,5 +10,6 @@ export declare const irisChatComposerVariants: (props?: ({
|
|
|
10
10
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
11
11
|
export declare const irisChatMessageVariants: (props?: ({
|
|
12
12
|
role?: "user" | "assistant" | null | undefined;
|
|
13
|
+
framed?: boolean | null | undefined;
|
|
13
14
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
14
15
|
export declare const irisChatMarkdownVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
@@ -26,9 +26,9 @@ const l = e("relative min-h-0 min-w-0", {
|
|
|
26
26
|
placement: "dock-right"
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
-
), r = e(
|
|
30
|
-
"flex h-[50px] shrink-0 items-center justify-between px-4"
|
|
31
29
|
), a = e(
|
|
30
|
+
"flex h-[50px] shrink-0 items-center justify-between px-4"
|
|
31
|
+
), r = e(
|
|
32
32
|
"flex w-full min-w-0 max-w-full flex-col border border-stroke-subtle bg-canvas-elevated",
|
|
33
33
|
{
|
|
34
34
|
variants: {
|
|
@@ -44,13 +44,32 @@ const l = e("relative min-h-0 min-w-0", {
|
|
|
44
44
|
), n = e("text-sm leading-5", {
|
|
45
45
|
variants: {
|
|
46
46
|
role: {
|
|
47
|
-
user: "ms-auto max-w-[min(90%,100%)] break-words rounded-2xl px-4 py-3 text-content",
|
|
48
|
-
assistant:
|
|
47
|
+
user: "ms-auto flex max-w-[min(90%,100%)] flex-col break-words rounded-2xl px-4 py-3 text-content",
|
|
48
|
+
assistant: [
|
|
49
|
+
"grid w-full min-w-0 max-w-full overflow-x-hidden grid-cols-[minmax(0,1fr)_auto] items-end gap-x-2 gap-y-4 break-words text-content",
|
|
50
|
+
"[&>*]:min-w-0 [&>*]:max-w-full",
|
|
51
|
+
"[&>*:not(time):not([data-slot=reply-actions])]:col-span-2",
|
|
52
|
+
"[&>[data-slot=reply-actions]]:col-span-1 [&>[data-slot=reply-actions]]:col-start-1"
|
|
53
|
+
].join(" ")
|
|
54
|
+
},
|
|
55
|
+
framed: {
|
|
56
|
+
true: "",
|
|
57
|
+
false: ""
|
|
49
58
|
}
|
|
50
|
-
}
|
|
59
|
+
},
|
|
60
|
+
defaultVariants: {
|
|
61
|
+
framed: !1
|
|
62
|
+
},
|
|
63
|
+
compoundVariants: [
|
|
64
|
+
{
|
|
65
|
+
role: "assistant",
|
|
66
|
+
framed: !0,
|
|
67
|
+
class: "iris-reply-frame rounded-xl px-3 py-2"
|
|
68
|
+
}
|
|
69
|
+
]
|
|
51
70
|
}), s = e(
|
|
52
71
|
[
|
|
53
|
-
"iris-chat-markdown flex flex-col gap-3 text-sm font-medium leading-5 text-content",
|
|
72
|
+
"iris-chat-markdown flex w-full min-w-0 max-w-full flex-col gap-3 text-sm font-medium leading-5 text-content",
|
|
54
73
|
"[&_a]:text-brand [&_a]:underline",
|
|
55
74
|
"[&_blockquote]:m-0 [&_blockquote]:rounded-xl [&_blockquote]:border-0 [&_blockquote]:bg-secondary [&_blockquote]:px-3 [&_blockquote]:py-2 [&_blockquote]:text-content-secondary",
|
|
56
75
|
"[&_code]:rounded-md [&_code]:bg-secondary [&_code]:px-1 [&_code]:py-0.5 [&_code]:text-xs [&_code]:font-medium",
|
|
@@ -62,15 +81,14 @@ const l = e("relative min-h-0 min-w-0", {
|
|
|
62
81
|
"[&_p]:m-0",
|
|
63
82
|
"[&_pre]:m-0 [&_pre]:overflow-x-auto [&_pre]:rounded-xl [&_pre]:bg-secondary [&_pre]:p-3 [&_pre]:text-xs [&_pre]:leading-5",
|
|
64
83
|
"[&_pre_code]:bg-transparent [&_pre_code]:p-0",
|
|
65
|
-
"[&
|
|
66
|
-
"[&
|
|
67
|
-
"[&_th]:bg-secondary [&_th]:px-3 [&_th]:py-2 [&_th]:text-start [&_th]:text-xs [&_th]:font-semibold",
|
|
84
|
+
"[&_td]:whitespace-nowrap [&_td]:border-t [&_td]:border-stroke-subtle [&_td]:px-3 [&_td]:py-2",
|
|
85
|
+
"[&_th]:whitespace-nowrap [&_th]:bg-secondary [&_th]:px-3 [&_th]:py-2 [&_th]:text-start [&_th]:text-xs [&_th]:font-semibold",
|
|
68
86
|
"[&_ul]:m-0 [&_ul]:flex [&_ul]:list-disc [&_ul]:flex-col [&_ul]:gap-1.5 [&_ul]:ps-4"
|
|
69
87
|
].join(" ")
|
|
70
88
|
);
|
|
71
89
|
export {
|
|
72
|
-
|
|
73
|
-
|
|
90
|
+
r as irisChatComposerVariants,
|
|
91
|
+
a as irisChatHeaderVariants,
|
|
74
92
|
s as irisChatMarkdownVariants,
|
|
75
93
|
n as irisChatMessageVariants,
|
|
76
94
|
o as irisChatPanelVariants,
|
|
@@ -1,90 +1,103 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { ArrowUp as
|
|
1
|
+
import { jsxs as f, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { ArrowUp as I, ArrowDown as N } from "impact-nova-icons";
|
|
3
3
|
import { createComponent as j } from "../../../lib/primitives/create-component.js";
|
|
4
4
|
import { cn as l } from "../../../lib/utils.js";
|
|
5
|
-
import { useImpactNovaI18n as
|
|
6
|
-
function
|
|
7
|
-
return Math.min(s, Math.max(
|
|
5
|
+
import { useImpactNovaI18n as A } from "../../../i18n/use-impact-nova-i18n.js";
|
|
6
|
+
function z(c, n, s) {
|
|
7
|
+
return Math.min(s, Math.max(n, c));
|
|
8
8
|
}
|
|
9
|
-
const
|
|
9
|
+
const m = "inline-flex h-[11px] w-5 shrink-0 select-none cursor-pointer border-0 p-0 bg-canvas-muted text-content-icon transition-[color,background-color,transform] duration-150 motion-reduce:transition-none enabled:hover:bg-stroke-track enabled:hover:text-content-tertiary enabled:active:scale-[0.98] enabled:active:bg-stroke-hairline enabled:active:text-content focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-focus-ring focus-visible:ring-inset disabled:cursor-not-allowed disabled:opacity-40", $ = j(
|
|
10
10
|
"ChoiceCardPercent",
|
|
11
11
|
({
|
|
12
12
|
className: c,
|
|
13
|
-
value:
|
|
13
|
+
value: n,
|
|
14
14
|
onValueChange: s,
|
|
15
15
|
min: d = 0,
|
|
16
16
|
max: b = 100,
|
|
17
|
-
step:
|
|
18
|
-
suffix:
|
|
19
|
-
increaseLabel:
|
|
17
|
+
step: t = 1,
|
|
18
|
+
suffix: h = "%",
|
|
19
|
+
increaseLabel: x,
|
|
20
20
|
decreaseLabel: g,
|
|
21
21
|
disabled: r,
|
|
22
|
-
onKeyDown:
|
|
22
|
+
onKeyDown: w,
|
|
23
23
|
...v
|
|
24
|
-
},
|
|
25
|
-
const { t: p } =
|
|
26
|
-
function
|
|
27
|
-
r || s?.(
|
|
24
|
+
}, k) => {
|
|
25
|
+
const { t: p } = A(), y = x ?? p("aria.increase"), C = g ?? p("aria.decrease"), D = !r && n > d, u = !r && n < b;
|
|
26
|
+
function i(e) {
|
|
27
|
+
r || s?.(z(n + e, d, b));
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function o(e) {
|
|
30
30
|
e.stopPropagation();
|
|
31
31
|
}
|
|
32
32
|
function P(e) {
|
|
33
|
-
e.key === "ArrowUp" ? (e.preventDefault(),
|
|
33
|
+
e.key === "ArrowUp" ? (e.preventDefault(), i(t)) : e.key === "ArrowDown" && (e.preventDefault(), i(-t)), w?.(e);
|
|
34
34
|
}
|
|
35
|
-
return /* @__PURE__ */
|
|
35
|
+
return /* @__PURE__ */ f(
|
|
36
36
|
"div",
|
|
37
37
|
{
|
|
38
|
-
ref:
|
|
38
|
+
ref: k,
|
|
39
39
|
...v,
|
|
40
40
|
"data-slot": "choice-card-percent",
|
|
41
41
|
role: "group",
|
|
42
42
|
"aria-disabled": r || void 0,
|
|
43
43
|
tabIndex: r ? void 0 : 0,
|
|
44
44
|
onKeyDown: P,
|
|
45
|
-
onPointerDown:
|
|
46
|
-
onClick:
|
|
45
|
+
onPointerDown: o,
|
|
46
|
+
onClick: o,
|
|
47
47
|
className: l(
|
|
48
|
-
"relative z-[1] box-border flex h-8 w-[111px] items-center gap-2.5 overflow-hidden rounded-
|
|
48
|
+
"relative z-[1] box-border flex h-8 w-[111px] items-center gap-2.5 overflow-hidden rounded-[8px] border border-stroke-field bg-canvas py-1 pl-3 pr-1 transition-colors",
|
|
49
49
|
"hover:border-brand focus-within:border-brand focus-within:outline-none",
|
|
50
50
|
r && "pointer-events-none border-stroke bg-disabled-surface opacity-100 hover:border-stroke",
|
|
51
51
|
c
|
|
52
52
|
),
|
|
53
53
|
children: [
|
|
54
|
-
/* @__PURE__ */
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
/* @__PURE__ */ a(
|
|
55
|
+
"button",
|
|
56
|
+
{
|
|
57
|
+
type: "button",
|
|
58
|
+
tabIndex: -1,
|
|
59
|
+
disabled: !u,
|
|
60
|
+
className: "min-w-0 flex-1 truncate border-0 bg-transparent p-0 text-left text-sm font-normal leading-4 text-content disabled:opacity-40",
|
|
61
|
+
onPointerDown: o,
|
|
62
|
+
onClick: (e) => {
|
|
63
|
+
o(e), i(t);
|
|
64
|
+
},
|
|
65
|
+
children: `${n}${h}`
|
|
66
|
+
}
|
|
67
|
+
),
|
|
68
|
+
/* @__PURE__ */ f("div", { className: "flex h-[23px] shrink-0 flex-col gap-px", children: [
|
|
69
|
+
/* @__PURE__ */ a(
|
|
57
70
|
"button",
|
|
58
71
|
{
|
|
59
72
|
type: "button",
|
|
60
|
-
"aria-label":
|
|
61
|
-
disabled: !
|
|
73
|
+
"aria-label": y,
|
|
74
|
+
disabled: !u,
|
|
62
75
|
className: l(
|
|
63
|
-
|
|
76
|
+
m,
|
|
64
77
|
"items-center justify-center rounded-tr-sm"
|
|
65
78
|
),
|
|
66
|
-
onPointerDown:
|
|
79
|
+
onPointerDown: o,
|
|
67
80
|
onClick: (e) => {
|
|
68
|
-
|
|
81
|
+
o(e), i(t);
|
|
69
82
|
},
|
|
70
|
-
children: /* @__PURE__ */
|
|
83
|
+
children: /* @__PURE__ */ a(I, { size: 10 })
|
|
71
84
|
}
|
|
72
85
|
),
|
|
73
|
-
/* @__PURE__ */
|
|
86
|
+
/* @__PURE__ */ a(
|
|
74
87
|
"button",
|
|
75
88
|
{
|
|
76
89
|
type: "button",
|
|
77
90
|
"aria-label": C,
|
|
78
|
-
disabled: !
|
|
91
|
+
disabled: !D,
|
|
79
92
|
className: l(
|
|
80
|
-
|
|
93
|
+
m,
|
|
81
94
|
"items-center justify-center rounded-br-sm"
|
|
82
95
|
),
|
|
83
|
-
onPointerDown:
|
|
96
|
+
onPointerDown: o,
|
|
84
97
|
onClick: (e) => {
|
|
85
|
-
|
|
98
|
+
o(e), i(-t);
|
|
86
99
|
},
|
|
87
|
-
children: /* @__PURE__ */
|
|
100
|
+
children: /* @__PURE__ */ a(N, { size: 10 })
|
|
88
101
|
}
|
|
89
102
|
)
|
|
90
103
|
] })
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as o, jsxs as
|
|
1
|
+
import { jsx as o, jsxs as j } from "react/jsx-runtime";
|
|
2
2
|
import { createComponent as C } from "../../../lib/primitives/create-component.js";
|
|
3
3
|
import { useFieldChrome as B } from "../../../lib/primitives/use-field-chrome.js";
|
|
4
4
|
import { cn as r } from "../../../lib/utils.js";
|
|
@@ -23,7 +23,7 @@ const V = C(
|
|
|
23
23
|
id: g,
|
|
24
24
|
...u
|
|
25
25
|
}, N) => {
|
|
26
|
-
const t = h ?? x,
|
|
26
|
+
const t = h ?? x, w = !!(i || a || t), n = B({
|
|
27
27
|
label: i,
|
|
28
28
|
helperText: a,
|
|
29
29
|
helperTextPosition: l,
|
|
@@ -38,7 +38,7 @@ const V = C(
|
|
|
38
38
|
className: r(
|
|
39
39
|
a && l === "absolute" && "relative"
|
|
40
40
|
),
|
|
41
|
-
children: /* @__PURE__ */
|
|
41
|
+
children: /* @__PURE__ */ j(
|
|
42
42
|
"div",
|
|
43
43
|
{
|
|
44
44
|
"data-component": "input-border",
|
|
@@ -70,7 +70,7 @@ const V = C(
|
|
|
70
70
|
type: f,
|
|
71
71
|
id: n.controlId,
|
|
72
72
|
className: r(
|
|
73
|
-
"flex h-full w-full bg-transparent p-0 text-sm font-medium outline-none placeholder:font-medium placeholder:text-content-empty disabled:cursor-not-allowed disabled:opacity-50",
|
|
73
|
+
"flex h-full w-full min-w-0 bg-transparent p-0 text-sm font-medium outline-none placeholder:font-medium placeholder:text-content-empty disabled:cursor-not-allowed disabled:opacity-50",
|
|
74
74
|
e && "opacity-100 text-disabled-foreground placeholder:text-disabled-foreground"
|
|
75
75
|
),
|
|
76
76
|
ref: N,
|
|
@@ -104,7 +104,7 @@ const V = C(
|
|
|
104
104
|
"data-component": "input",
|
|
105
105
|
"data-disabled": e || void 0,
|
|
106
106
|
"data-invalid": t || void 0,
|
|
107
|
-
children:
|
|
107
|
+
children: w ? n.wrapControl(p) : p
|
|
108
108
|
}
|
|
109
109
|
);
|
|
110
110
|
}
|
|
@@ -12,7 +12,7 @@ const i = e(
|
|
|
12
12
|
secondary: "bg-secondary text-secondary-foreground hover:bg-accent hover:text-secondary-hover-foreground disabled:bg-disabled-surface disabled:text-disabled-foreground disabled:opacity-100",
|
|
13
13
|
tertiary: "border border-stroke-field bg-canvas text-content hover:bg-accent hover:text-secondary-hover-foreground hover:border-secondary-hover-foreground disabled:bg-disabled-surface disabled:border-stroke disabled:text-disabled-foreground disabled:opacity-100",
|
|
14
14
|
ghost: "text-content hover:bg-accent hover:text-accent-foreground disabled:text-disabled-foreground disabled:opacity-50",
|
|
15
|
-
link: "text-brand
|
|
15
|
+
link: "text-brand hover:text-brand-strong disabled:text-disabled-foreground disabled:opacity-50"
|
|
16
16
|
},
|
|
17
17
|
size: {
|
|
18
18
|
default: "h-8 min-h-8 px-3 py-1.5",
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { StepItem, StepStatus } from '../stepper.types';
|
|
2
2
|
export declare function resolveStepItem(step: string | StepItem): StepItem;
|
|
3
|
-
export declare function stepStatus(stepNumber: number, currentStep: number): StepStatus;
|
|
3
|
+
export declare function stepStatus(stepNumber: number, currentStep: number, statusOverride?: StepStatus): StepStatus;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
function
|
|
1
|
+
function f(t) {
|
|
2
2
|
return typeof t == "string" ? { label: t } : t;
|
|
3
3
|
}
|
|
4
|
-
function
|
|
5
|
-
return t <
|
|
4
|
+
function l(t, n, e) {
|
|
5
|
+
return e === "completed" || e === "active" || e === "default" ? e : t < n ? "completed" : t === n ? "active" : "default";
|
|
6
6
|
}
|
|
7
7
|
export {
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
f as resolveStepItem,
|
|
9
|
+
l as stepStatus
|
|
10
10
|
};
|