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
|
@@ -3,19 +3,19 @@ import * as p from "react";
|
|
|
3
3
|
import { Checkmark as k } from "impact-nova-icons";
|
|
4
4
|
import { cn as l } from "../../../../lib/utils.js";
|
|
5
5
|
import { compactIconVariants as g, compactLabelVariants as x, compactStepVariants as V, stepperVariants as w } from "../stepper.variants.js";
|
|
6
|
-
import {
|
|
6
|
+
import { stepStatus as I, resolveStepItem as j } from "./step-model.js";
|
|
7
7
|
import { StepHitTarget as C } from "./step-hit-target.js";
|
|
8
8
|
const L = p.forwardRef(
|
|
9
9
|
({
|
|
10
10
|
className: n,
|
|
11
11
|
currentStep: d,
|
|
12
|
-
steps:
|
|
12
|
+
steps: o,
|
|
13
13
|
orientation: a = "vertical",
|
|
14
14
|
onStepClick: m,
|
|
15
15
|
stepAriaLabel: h,
|
|
16
16
|
...b
|
|
17
17
|
}, v) => {
|
|
18
|
-
const f =
|
|
18
|
+
const f = o.length, u = !!m;
|
|
19
19
|
return /* @__PURE__ */ e(
|
|
20
20
|
"div",
|
|
21
21
|
{
|
|
@@ -26,27 +26,27 @@ const L = p.forwardRef(
|
|
|
26
26
|
"data-component": "stepper",
|
|
27
27
|
role: "list",
|
|
28
28
|
...b,
|
|
29
|
-
children:
|
|
30
|
-
const
|
|
29
|
+
children: o.map((N, c) => {
|
|
30
|
+
const r = j(N), s = c + 1, t = I(s, d, r.status), S = t === "active";
|
|
31
31
|
return /* @__PURE__ */ i(p.Fragment, { children: [
|
|
32
32
|
/* @__PURE__ */ i(
|
|
33
33
|
C,
|
|
34
34
|
{
|
|
35
|
-
stepNumber:
|
|
35
|
+
stepNumber: s,
|
|
36
36
|
status: t,
|
|
37
|
-
disabled:
|
|
38
|
-
interactive:
|
|
39
|
-
ariaLabel: h(
|
|
37
|
+
disabled: r.disabled,
|
|
38
|
+
interactive: u,
|
|
39
|
+
ariaLabel: h(s, f),
|
|
40
40
|
isActive: S,
|
|
41
41
|
onStepClick: m,
|
|
42
42
|
className: V({ orientation: a, status: t }),
|
|
43
43
|
children: [
|
|
44
|
-
/* @__PURE__ */ e("div", { className: g({ status: t }), children: t === "completed" ? /* @__PURE__ */ e(k, { className: "size-3.5 stroke-[3px]" }) : /* @__PURE__ */ e("span", { children:
|
|
45
|
-
/* @__PURE__ */ e("span", { className: x({ status: t }), children:
|
|
44
|
+
/* @__PURE__ */ e("div", { className: g({ status: t }), children: t === "completed" ? /* @__PURE__ */ e(k, { className: "size-3.5 stroke-[3px]" }) : /* @__PURE__ */ e("span", { children: r.icon || s }) }),
|
|
45
|
+
/* @__PURE__ */ e("span", { className: x({ status: t }), children: r.label })
|
|
46
46
|
]
|
|
47
47
|
}
|
|
48
48
|
),
|
|
49
|
-
|
|
49
|
+
c < o.length - 1 ? /* @__PURE__ */ e(
|
|
50
50
|
"div",
|
|
51
51
|
{
|
|
52
52
|
"aria-hidden": !0,
|
|
@@ -56,7 +56,7 @@ const L = p.forwardRef(
|
|
|
56
56
|
)
|
|
57
57
|
}
|
|
58
58
|
) : null
|
|
59
|
-
] },
|
|
59
|
+
] }, c);
|
|
60
60
|
})
|
|
61
61
|
}
|
|
62
62
|
);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import * as j from "react";
|
|
3
|
-
import { cn as
|
|
3
|
+
import { cn as u } from "../../../../lib/utils.js";
|
|
4
4
|
import { pipelineDotVariants as M, stepperVariants as S } from "../stepper.variants.js";
|
|
5
5
|
import { PipelineCurrentMark as z } from "./pipeline-current-mark.js";
|
|
6
|
-
import {
|
|
6
|
+
import { stepStatus as I, resolveStepItem as P } from "./step-model.js";
|
|
7
7
|
import { StepHitTarget as R } from "./step-hit-target.js";
|
|
8
8
|
const V = j.forwardRef(
|
|
9
9
|
({
|
|
10
|
-
className:
|
|
10
|
+
className: f,
|
|
11
11
|
currentStep: n,
|
|
12
12
|
steps: o,
|
|
13
13
|
onStepClick: l,
|
|
@@ -22,7 +22,7 @@ const V = j.forwardRef(
|
|
|
22
22
|
"div",
|
|
23
23
|
{
|
|
24
24
|
ref: N,
|
|
25
|
-
className:
|
|
25
|
+
className: u(S({ variant: "pipeline" }), f),
|
|
26
26
|
"data-orientation": "horizontal",
|
|
27
27
|
"data-variant": "pipeline",
|
|
28
28
|
"data-component": "stepper",
|
|
@@ -54,7 +54,7 @@ const V = j.forwardRef(
|
|
|
54
54
|
}
|
|
55
55
|
),
|
|
56
56
|
o.map((y, d) => {
|
|
57
|
-
const r =
|
|
57
|
+
const r = P(y), s = d + 1, a = I(s, n, r.status), m = a === "active";
|
|
58
58
|
return /* @__PURE__ */ e(
|
|
59
59
|
R,
|
|
60
60
|
{
|
|
@@ -65,7 +65,7 @@ const V = j.forwardRef(
|
|
|
65
65
|
ariaLabel: b(s, i),
|
|
66
66
|
isActive: m,
|
|
67
67
|
onStepClick: l,
|
|
68
|
-
className:
|
|
68
|
+
className: u(
|
|
69
69
|
"relative z-[1] flex items-center justify-center p-0",
|
|
70
70
|
M({ status: a }),
|
|
71
71
|
p && !r.disabled && "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-focus-ring/25"
|
|
@@ -3,7 +3,7 @@ import * as y from "react";
|
|
|
3
3
|
import { cn as n } from "../../../../lib/utils.js";
|
|
4
4
|
import { stepperVariants as k } from "../stepper.variants.js";
|
|
5
5
|
import { RailStatusDot as f } from "./rail-status-dot.js";
|
|
6
|
-
import {
|
|
6
|
+
import { stepStatus as R, resolveStepItem as j } from "./step-model.js";
|
|
7
7
|
const S = y.forwardRef(
|
|
8
8
|
({
|
|
9
9
|
className: v,
|
|
@@ -14,7 +14,7 @@ const S = y.forwardRef(
|
|
|
14
14
|
stepAriaLabel: p,
|
|
15
15
|
...N
|
|
16
16
|
}, g) => {
|
|
17
|
-
const
|
|
17
|
+
const i = c.length, x = !!d;
|
|
18
18
|
return /* @__PURE__ */ o(
|
|
19
19
|
"div",
|
|
20
20
|
{
|
|
@@ -26,7 +26,7 @@ const S = y.forwardRef(
|
|
|
26
26
|
role: "list",
|
|
27
27
|
...N,
|
|
28
28
|
children: [
|
|
29
|
-
|
|
29
|
+
i > 1 ? /* @__PURE__ */ e(
|
|
30
30
|
"div",
|
|
31
31
|
{
|
|
32
32
|
"aria-hidden": !0,
|
|
@@ -34,17 +34,17 @@ const S = y.forwardRef(
|
|
|
34
34
|
className: "pointer-events-none absolute start-2 top-6 bottom-6 w-0 border-s border-dashed border-stroke-hairline"
|
|
35
35
|
}
|
|
36
36
|
) : null,
|
|
37
|
-
c.map((w,
|
|
38
|
-
const
|
|
37
|
+
c.map((w, s) => {
|
|
38
|
+
const a = j(w), r = s + 1, t = R(r, h, a.status), u = t === "active", b = !!a.disabled || t === "default", l = x && !b;
|
|
39
39
|
return /* @__PURE__ */ o(
|
|
40
40
|
"div",
|
|
41
41
|
{
|
|
42
42
|
role: "listitem",
|
|
43
|
-
"data-step":
|
|
43
|
+
"data-step": r,
|
|
44
44
|
"data-status": t,
|
|
45
45
|
"data-disabled": b || void 0,
|
|
46
46
|
"aria-current": !l && u ? "step" : void 0,
|
|
47
|
-
"aria-label": l ? void 0 : p(
|
|
47
|
+
"aria-label": l ? void 0 : p(r, i),
|
|
48
48
|
className: "relative flex w-full items-start gap-3 overflow-visible",
|
|
49
49
|
children: [
|
|
50
50
|
/* @__PURE__ */ e(
|
|
@@ -56,10 +56,10 @@ const S = y.forwardRef(
|
|
|
56
56
|
"button",
|
|
57
57
|
{
|
|
58
58
|
type: "button",
|
|
59
|
-
"aria-label": p(
|
|
59
|
+
"aria-label": p(r, i),
|
|
60
60
|
"aria-current": u ? "step" : void 0,
|
|
61
61
|
onClick: () => {
|
|
62
|
-
d?.(
|
|
62
|
+
d?.(s);
|
|
63
63
|
},
|
|
64
64
|
className: n(
|
|
65
65
|
"flex size-4 items-center justify-center border-0 bg-transparent p-0",
|
|
@@ -67,16 +67,16 @@ const S = y.forwardRef(
|
|
|
67
67
|
),
|
|
68
68
|
children: [
|
|
69
69
|
/* @__PURE__ */ e(f, { status: t }),
|
|
70
|
-
/* @__PURE__ */ e("span", { className: "sr-only", children:
|
|
70
|
+
/* @__PURE__ */ e("span", { className: "sr-only", children: a.label })
|
|
71
71
|
]
|
|
72
72
|
}
|
|
73
73
|
) : /* @__PURE__ */ e(f, { status: t })
|
|
74
74
|
}
|
|
75
75
|
),
|
|
76
76
|
/* @__PURE__ */ e("div", { className: "min-w-0 flex-1", children: m ? m({
|
|
77
|
-
step:
|
|
78
|
-
index:
|
|
79
|
-
stepNumber:
|
|
77
|
+
step: a,
|
|
78
|
+
index: s,
|
|
79
|
+
stepNumber: r,
|
|
80
80
|
status: t
|
|
81
81
|
}) : /* @__PURE__ */ e(
|
|
82
82
|
"div",
|
|
@@ -86,12 +86,12 @@ const S = y.forwardRef(
|
|
|
86
86
|
"flex h-12 items-center rounded-lg border border-stroke-hairline bg-canvas-elevated px-4 py-2",
|
|
87
87
|
t === "default" && "text-disabled-foreground"
|
|
88
88
|
),
|
|
89
|
-
children: /* @__PURE__ */ e("span", { className: "truncate text-sm font-semibold capitalize leading-[21px]", children:
|
|
89
|
+
children: /* @__PURE__ */ e("span", { className: "truncate text-sm font-semibold capitalize leading-[21px]", children: a.label })
|
|
90
90
|
}
|
|
91
91
|
) })
|
|
92
92
|
]
|
|
93
93
|
},
|
|
94
|
-
|
|
94
|
+
s
|
|
95
95
|
);
|
|
96
96
|
})
|
|
97
97
|
]
|
|
@@ -4,7 +4,7 @@ import { Checkmark as y } from "impact-nova-icons";
|
|
|
4
4
|
import { cn as i } from "../../../../lib/utils.js";
|
|
5
5
|
import { summaryIconVariants as N, summaryStepVariants as w, stepperVariants as S } from "../stepper.variants.js";
|
|
6
6
|
import { ClickMeArrow as k } from "../../../ui/local-raster-icons/rasterIcons.js";
|
|
7
|
-
import {
|
|
7
|
+
import { stepStatus as z, resolveStepItem as j } from "./step-model.js";
|
|
8
8
|
import { StepHitTarget as I, StepBrandRail as R } from "./step-hit-target.js";
|
|
9
9
|
const V = p.forwardRef(
|
|
10
10
|
({
|
|
@@ -27,7 +27,7 @@ const V = p.forwardRef(
|
|
|
27
27
|
role: "list",
|
|
28
28
|
...h,
|
|
29
29
|
children: o.map((g, l) => {
|
|
30
|
-
const t =
|
|
30
|
+
const t = j(g), s = l + 1, a = z(s, u, t.status), r = a === "active", v = l < o.length - 1;
|
|
31
31
|
return /* @__PURE__ */ n(p.Fragment, { children: [
|
|
32
32
|
/* @__PURE__ */ n(
|
|
33
33
|
I,
|
|
@@ -4,7 +4,7 @@ import { Checkmark as E, ChevronRight as y } from "impact-nova-icons";
|
|
|
4
4
|
import { Button as z } from "../../button/button.js";
|
|
5
5
|
import { cn as m } from "../../../../lib/utils.js";
|
|
6
6
|
import { trackIconVariants as _, trackStepVariants as T, stepperVariants as q } from "../stepper.variants.js";
|
|
7
|
-
import {
|
|
7
|
+
import { stepStatus as D, resolveStepItem as F } from "./step-model.js";
|
|
8
8
|
import { StepHitTarget as H } from "./step-hit-target.js";
|
|
9
9
|
const M = l.forwardRef(
|
|
10
10
|
({
|
|
@@ -63,7 +63,7 @@ const M = l.forwardRef(
|
|
|
63
63
|
v ? "px-8 [mask-image:linear-gradient(to_right,transparent,black_28px,black_calc(100%-28px),transparent)]" : "justify-center"
|
|
64
64
|
),
|
|
65
65
|
children: c.map((e, t) => {
|
|
66
|
-
const a =
|
|
66
|
+
const a = F(e), s = t + 1, n = D(s, u, a.status), g = n === "active", j = v && (t === 0 && b || t === c.length - 1 && h);
|
|
67
67
|
return /* @__PURE__ */ p(
|
|
68
68
|
H,
|
|
69
69
|
{
|
|
@@ -2,176 +2,177 @@ import { jsx as t, jsxs as g } from "react/jsx-runtime";
|
|
|
2
2
|
import * as z from "react";
|
|
3
3
|
import { Checkmark as D } from "impact-nova-icons";
|
|
4
4
|
import { createComponent as P } from "../../../lib/primitives/create-component.js";
|
|
5
|
-
import { cn as
|
|
6
|
-
import { OverflowTooltip as
|
|
5
|
+
import { cn as u } from "../../../lib/utils.js";
|
|
6
|
+
import { OverflowTooltip as w } from "../../feedback/tooltip/overflow-tooltip.js";
|
|
7
7
|
import { useImpactNovaI18n as T } from "../../../i18n/use-impact-nova-i18n.js";
|
|
8
8
|
import { iconVariants as V, stepVariants as k, stepperVariants as A } from "./stepper.variants.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
|
|
9
|
+
import { stepStatus as O, resolveStepItem as R } from "./internals/step-model.js";
|
|
10
|
+
import { CompactStepper as E } from "./internals/stepper-compact.js";
|
|
11
|
+
import { PipelineStepper as F } from "./internals/stepper-pipeline.js";
|
|
12
|
+
import { RailStepper as K } from "./internals/stepper-rail.js";
|
|
13
|
+
import { SummaryStepper as q } from "./internals/stepper-summary.js";
|
|
14
|
+
import { TrackStepper as B } from "./internals/stepper-track.js";
|
|
15
|
+
const S = P(
|
|
15
16
|
"Stepper",
|
|
16
17
|
({
|
|
17
|
-
className:
|
|
18
|
+
className: p,
|
|
18
19
|
currentStep: r,
|
|
19
|
-
steps:
|
|
20
|
-
orientation:
|
|
21
|
-
variant:
|
|
20
|
+
steps: o,
|
|
21
|
+
orientation: s = "horizontal",
|
|
22
|
+
variant: f = "default",
|
|
22
23
|
heading: I,
|
|
23
|
-
renderStep:
|
|
24
|
+
renderStep: L,
|
|
24
25
|
onStepClick: e,
|
|
25
|
-
...
|
|
26
|
-
},
|
|
27
|
-
const { t:
|
|
28
|
-
return
|
|
29
|
-
|
|
26
|
+
...m
|
|
27
|
+
}, n) => {
|
|
28
|
+
const { t: c } = T(), b = o.length, d = (v, l) => c("stepper.stepOfTotal", { current: v, total: l });
|
|
29
|
+
return f === "rail" ? /* @__PURE__ */ t(
|
|
30
|
+
K,
|
|
30
31
|
{
|
|
31
|
-
ref:
|
|
32
|
-
className:
|
|
32
|
+
ref: n,
|
|
33
|
+
className: p,
|
|
33
34
|
currentStep: r,
|
|
34
|
-
steps:
|
|
35
|
+
steps: o,
|
|
35
36
|
onStepClick: e,
|
|
36
|
-
renderStep:
|
|
37
|
+
renderStep: L,
|
|
37
38
|
stepAriaLabel: d,
|
|
38
|
-
...
|
|
39
|
+
...m
|
|
39
40
|
}
|
|
40
|
-
) :
|
|
41
|
-
|
|
41
|
+
) : f === "compact" ? /* @__PURE__ */ t(
|
|
42
|
+
E,
|
|
42
43
|
{
|
|
43
|
-
ref:
|
|
44
|
-
className:
|
|
44
|
+
ref: n,
|
|
45
|
+
className: p,
|
|
45
46
|
currentStep: r,
|
|
46
|
-
steps:
|
|
47
|
-
orientation:
|
|
47
|
+
steps: o,
|
|
48
|
+
orientation: s,
|
|
48
49
|
onStepClick: e,
|
|
49
50
|
stepAriaLabel: d,
|
|
50
|
-
...
|
|
51
|
+
...m
|
|
51
52
|
}
|
|
52
|
-
) :
|
|
53
|
-
|
|
53
|
+
) : f === "pipeline" ? /* @__PURE__ */ t(
|
|
54
|
+
F,
|
|
54
55
|
{
|
|
55
|
-
ref:
|
|
56
|
-
className:
|
|
56
|
+
ref: n,
|
|
57
|
+
className: p,
|
|
57
58
|
currentStep: r,
|
|
58
|
-
steps:
|
|
59
|
+
steps: o,
|
|
59
60
|
onStepClick: e,
|
|
60
61
|
heading: I,
|
|
61
62
|
stepAriaLabel: d,
|
|
62
|
-
pipelinePrefix:
|
|
63
|
-
stepsCountLabel:
|
|
64
|
-
...
|
|
63
|
+
pipelinePrefix: c("stepper.pipelinePrefix"),
|
|
64
|
+
stepsCountLabel: c("stepper.stepsCount", { current: r, total: b }),
|
|
65
|
+
...m
|
|
65
66
|
}
|
|
66
|
-
) :
|
|
67
|
-
|
|
67
|
+
) : f === "track" ? /* @__PURE__ */ t(
|
|
68
|
+
B,
|
|
68
69
|
{
|
|
69
|
-
ref:
|
|
70
|
-
className:
|
|
70
|
+
ref: n,
|
|
71
|
+
className: p,
|
|
71
72
|
currentStep: r,
|
|
72
|
-
steps:
|
|
73
|
+
steps: o,
|
|
73
74
|
onStepClick: e,
|
|
74
75
|
stepAriaLabel: d,
|
|
75
|
-
currentlyStepLabel:
|
|
76
|
+
currentlyStepLabel: c("stepper.currentlyStep", {
|
|
76
77
|
current: r,
|
|
77
|
-
total:
|
|
78
|
+
total: b
|
|
78
79
|
}),
|
|
79
|
-
previousLabel:
|
|
80
|
-
nextLabel:
|
|
81
|
-
...
|
|
80
|
+
previousLabel: c("stepper.previousSteps"),
|
|
81
|
+
nextLabel: c("stepper.nextSteps"),
|
|
82
|
+
...m
|
|
82
83
|
}
|
|
83
|
-
) :
|
|
84
|
-
|
|
84
|
+
) : f === "summary" ? /* @__PURE__ */ t(
|
|
85
|
+
q,
|
|
85
86
|
{
|
|
86
|
-
ref:
|
|
87
|
-
className:
|
|
87
|
+
ref: n,
|
|
88
|
+
className: p,
|
|
88
89
|
currentStep: r,
|
|
89
|
-
steps:
|
|
90
|
+
steps: o,
|
|
90
91
|
onStepClick: e,
|
|
91
92
|
stepAriaLabel: d,
|
|
92
|
-
...
|
|
93
|
+
...m
|
|
93
94
|
}
|
|
94
95
|
) : /* @__PURE__ */ t(
|
|
95
96
|
"div",
|
|
96
97
|
{
|
|
97
|
-
ref:
|
|
98
|
-
className:
|
|
99
|
-
"data-orientation":
|
|
98
|
+
ref: n,
|
|
99
|
+
className: u(A({ orientation: s, variant: "default" }), p),
|
|
100
|
+
"data-orientation": s,
|
|
100
101
|
"data-variant": "default",
|
|
101
102
|
"data-component": "stepper",
|
|
102
103
|
role: "list",
|
|
103
|
-
...
|
|
104
|
-
children:
|
|
105
|
-
const
|
|
104
|
+
...m,
|
|
105
|
+
children: o.map((v, l) => {
|
|
106
|
+
const a = R(v), h = l + 1, x = a.disabled, i = O(h, r, a.status), N = i === "active", j = i === "completed";
|
|
106
107
|
return /* @__PURE__ */ g(z.Fragment, { children: [
|
|
107
108
|
/* @__PURE__ */ g(
|
|
108
109
|
"div",
|
|
109
110
|
{
|
|
110
111
|
role: "listitem",
|
|
111
|
-
onClick: () => !
|
|
112
|
-
"aria-label": d(
|
|
113
|
-
"aria-current":
|
|
114
|
-
tabIndex: e && !
|
|
115
|
-
onKeyDown: e && !
|
|
116
|
-
(y.key === "Enter" || y.key === " ") && (y.preventDefault(), e(
|
|
112
|
+
onClick: () => !x && e?.(l),
|
|
113
|
+
"aria-label": d(h, b),
|
|
114
|
+
"aria-current": N ? "step" : void 0,
|
|
115
|
+
tabIndex: e && !x ? 0 : void 0,
|
|
116
|
+
onKeyDown: e && !x ? (y) => {
|
|
117
|
+
(y.key === "Enter" || y.key === " ") && (y.preventDefault(), e(l));
|
|
117
118
|
} : void 0,
|
|
118
|
-
"data-step":
|
|
119
|
-
"data-status":
|
|
120
|
-
"data-disabled":
|
|
121
|
-
className:
|
|
122
|
-
k({ orientation:
|
|
123
|
-
|
|
124
|
-
|
|
119
|
+
"data-step": h,
|
|
120
|
+
"data-status": i,
|
|
121
|
+
"data-disabled": x || void 0,
|
|
122
|
+
className: u(
|
|
123
|
+
k({ orientation: s, status: i }),
|
|
124
|
+
s === "horizontal" && "min-w-[140px]",
|
|
125
|
+
x ? "opacity-80 cursor-not-allowed" : e ? "cursor-pointer" : "cursor-default"
|
|
125
126
|
),
|
|
126
127
|
children: [
|
|
127
|
-
/* @__PURE__ */ t("div", { className:
|
|
128
|
+
/* @__PURE__ */ t("div", { className: u(V({ status: i }), "mr-2"), children: j ? /* @__PURE__ */ t(D, { className: "h-5 w-5 stroke-[3px]" }) : /* @__PURE__ */ t("span", { children: a.icon || h }) }),
|
|
128
129
|
/* @__PURE__ */ g("div", { className: "flex min-w-0 flex-col justify-center overflow-hidden", children: [
|
|
129
130
|
/* @__PURE__ */ t(
|
|
130
|
-
|
|
131
|
+
w,
|
|
131
132
|
{
|
|
132
|
-
triggerClassName:
|
|
133
|
+
triggerClassName: u(
|
|
133
134
|
"text-[14px] leading-tight font-medium truncate max-w-[200px] block",
|
|
134
|
-
|
|
135
|
-
|
|
135
|
+
i === "completed" ? "text-success" : "text-content",
|
|
136
|
+
i === "active" && s === "vertical" ? "text-brand" : ""
|
|
136
137
|
),
|
|
137
|
-
content:
|
|
138
|
+
content: a.label,
|
|
138
139
|
side: "top",
|
|
139
140
|
variant: "tertiary",
|
|
140
|
-
children:
|
|
141
|
+
children: a.label
|
|
141
142
|
}
|
|
142
143
|
),
|
|
143
|
-
|
|
144
|
-
|
|
144
|
+
a.description && /* @__PURE__ */ t(
|
|
145
|
+
w,
|
|
145
146
|
{
|
|
146
|
-
triggerClassName:
|
|
147
|
+
triggerClassName: u(
|
|
147
148
|
"text-[12px] leading-tight mt-0.5 truncate max-w-[200px] block",
|
|
148
|
-
|
|
149
|
+
i === "completed" ? "text-success" : "text-secondary-foreground"
|
|
149
150
|
),
|
|
150
|
-
content:
|
|
151
|
+
content: a.description,
|
|
151
152
|
side: "top",
|
|
152
153
|
variant: "tertiary",
|
|
153
|
-
children:
|
|
154
|
+
children: a.description
|
|
154
155
|
}
|
|
155
156
|
)
|
|
156
157
|
] })
|
|
157
158
|
]
|
|
158
159
|
}
|
|
159
160
|
),
|
|
160
|
-
|
|
161
|
+
l < o.length - 1 && /* @__PURE__ */ t(
|
|
161
162
|
"div",
|
|
162
163
|
{
|
|
163
|
-
className:
|
|
164
|
+
className: u(
|
|
164
165
|
"border-t border-dashed border-stroke-hairline transition-colors",
|
|
165
|
-
|
|
166
|
+
s === "horizontal" ? "mx-1 min-w-[24px] flex-1 self-center" : "my-[-4px] ml-[12px] h-6 w-0 border-l"
|
|
166
167
|
)
|
|
167
168
|
}
|
|
168
169
|
)
|
|
169
|
-
] },
|
|
170
|
+
] }, l);
|
|
170
171
|
})
|
|
171
172
|
}
|
|
172
173
|
);
|
|
173
174
|
}
|
|
174
175
|
);
|
|
175
176
|
export {
|
|
176
|
-
|
|
177
|
+
S as Stepper
|
|
177
178
|
};
|
|
@@ -6,6 +6,8 @@ export interface StepItem {
|
|
|
6
6
|
description?: string;
|
|
7
7
|
icon?: React.ReactNode;
|
|
8
8
|
disabled?: boolean;
|
|
9
|
+
/** Overrides progress inferred from `currentStep`. The selected step stays `active`. */
|
|
10
|
+
status?: StepStatus;
|
|
9
11
|
}
|
|
10
12
|
export type StepperVariant = NonNullable<VariantProps<typeof stepperVariants>["variant"]>;
|
|
11
13
|
export type StepperOrientation = NonNullable<VariantProps<typeof stepperVariants>["orientation"]>;
|
|
@@ -760,6 +760,32 @@
|
|
|
760
760
|
background-color: transparent;
|
|
761
761
|
}
|
|
762
762
|
|
|
763
|
+
/* Assistant reply card — same revolving ring as the small Iris button. */
|
|
764
|
+
.iris-reply-frame {
|
|
765
|
+
--iris-border-duration: 2.5s;
|
|
766
|
+
--iris-border-angle: 0deg;
|
|
767
|
+
display: inline-flex;
|
|
768
|
+
vertical-align: middle;
|
|
769
|
+
border: 1.2px solid transparent;
|
|
770
|
+
background-image: linear-gradient(var(--color-surface-elevated), var(--color-surface-elevated)), conic-gradient(from var(--iris-border-angle), var(--color-header-bot-gradient-teal-hover), var(--color-header-bot-gradient-indigo-hover), var(--color-header-bot-gradient-purple), var(--color-header-bot-gradient-orange-hover), var(--color-header-bot-gradient-teal-hover));
|
|
771
|
+
background-origin: border-box;
|
|
772
|
+
background-clip: padding-box, border-box;
|
|
773
|
+
animation: iris-border-spin var(--iris-border-duration, 2.5s) linear infinite;
|
|
774
|
+
transition: animation-duration 160ms ease;
|
|
775
|
+
}
|
|
776
|
+
@media (prefers-reduced-motion: reduce) {
|
|
777
|
+
.iris-reply-frame {
|
|
778
|
+
animation: none;
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
.iris-reply-frame {
|
|
782
|
+
display: grid;
|
|
783
|
+
width: 100%;
|
|
784
|
+
max-width: 100%;
|
|
785
|
+
min-width: 0;
|
|
786
|
+
vertical-align: unset;
|
|
787
|
+
}
|
|
788
|
+
|
|
763
789
|
/* Menu / status / wrap — static fill; conic ring on ::before only (Figma Menu 2852-95992). */
|
|
764
790
|
.iris-edge-wash-shell--menu {
|
|
765
791
|
--iris-border-angle: 0deg;
|
|
@@ -1378,6 +1404,36 @@ html.iris-agent-session *:not(.iris-agent-cursor):not(.iris-agent-cursor *):not(
|
|
|
1378
1404
|
padding-right: 0;
|
|
1379
1405
|
}
|
|
1380
1406
|
|
|
1407
|
+
.ag-header-cell:has(.ag-header-cell-search-active) .ag-header-cell-comp-wrapper {
|
|
1408
|
+
width: 100%;
|
|
1409
|
+
min-width: 0;
|
|
1410
|
+
}
|
|
1411
|
+
|
|
1412
|
+
.ag-header-cell-search-active {
|
|
1413
|
+
width: 100%;
|
|
1414
|
+
min-width: 0;
|
|
1415
|
+
justify-content: space-between;
|
|
1416
|
+
}
|
|
1417
|
+
|
|
1418
|
+
.ag-header-cell-search-active > :first-child {
|
|
1419
|
+
flex: 1 1 auto;
|
|
1420
|
+
min-width: 0;
|
|
1421
|
+
width: 100%;
|
|
1422
|
+
max-width: none;
|
|
1423
|
+
}
|
|
1424
|
+
|
|
1425
|
+
.ag-header-cell-search-active [data-component="input"],
|
|
1426
|
+
.ag-header-cell-search-active [data-component="select"] {
|
|
1427
|
+
width: 100%;
|
|
1428
|
+
min-width: 0;
|
|
1429
|
+
}
|
|
1430
|
+
|
|
1431
|
+
.ag-header-cell-search-active [data-component="input-border"],
|
|
1432
|
+
.ag-header-cell-search-active [data-component="select-trigger"] {
|
|
1433
|
+
width: 100%;
|
|
1434
|
+
max-width: none;
|
|
1435
|
+
}
|
|
1436
|
+
|
|
1381
1437
|
/* Row selection + custom checkbox renderers — zero padding, center in cell.
|
|
1382
1438
|
Default ag-cell rules clip 16px checkboxes and leave wrapper left-aligned. */
|
|
1383
1439
|
.ag-cell:not(.ag-cell-no-padding):not(.ag-cell-renderer-full-control):has(.ag-selection-checkbox),
|