impact-nova 3.0.0-alpha.5 → 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/cell-renderers/editors/list-select-cell-editor.js +56 -42
- package/dist/components/data/ag-grid-react/cell-renderers/editors/select-cell-editor.js +48 -45
- package/dist/components/data/ag-grid-react/cell-renderers/list-select-display-renderer.js +31 -33
- package/dist/components/data/ag-grid-react/cell-renderers/select-display-renderer.js +18 -17
- package/dist/components/data/ag-grid-react/editable-utils.d.ts +9 -1
- package/dist/components/data/ag-grid-react/editable-utils.js +46 -41
- package/dist/components/data/ag-grid-react/headers/header-search-input.js +203 -199
- package/dist/components/data/expandable-list-item/expandable-list-item-attributes.js +3 -2
- package/dist/components/data/expandable-list-item/expandable-list-item-metrics.js +3 -2
- package/dist/components/data/expandable-list-item/sku-picker-chrome.js +35 -30
- package/dist/components/data/expandable-list-item/virtualized-responsive-grid.catalog.d.ts +1 -1
- package/dist/components/data-display/chart/chart-scatter3d.d.ts +39 -0
- package/dist/components/data-display/chart/chart-scatter3d.js +180 -0
- package/dist/components/data-display/chart/chart.js +125 -112
- package/dist/components/data-display/chart/chart.utils.js +122 -92
- package/dist/components/feedback/tooltip/tab-tooltip-render.js +3 -2
- package/dist/components/flows/command-palette/shortcut-settings.js +10 -10
- package/dist/components/flows/filter-panel/filter-panel.js +4 -4
- 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 +82 -51
- package/dist/components/forms/choice-card/choice-card.js +23 -23
- package/dist/components/forms/input/input.js +5 -5
- package/dist/components/forms/select/components/SelectTriggerValue.js +3 -2
- package/dist/components/forms/select/components/Submenu.js +3 -2
- 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 +7 -7
- 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 +88 -4
- package/dist/impact-nova.css +1 -1
- package/dist/llms/rules/installation.js +1 -1
- package/dist/llms/rules/requirements.js +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as o, jsxs as
|
|
1
|
+
import { jsx as o, jsxs as x } from "react/jsx-runtime";
|
|
2
2
|
import * as n from "react";
|
|
3
3
|
import * as L from "@radix-ui/react-checkbox";
|
|
4
4
|
import * as G from "@radix-ui/react-radio-group";
|
|
@@ -12,7 +12,7 @@ import { cn as l } from "../../../lib/utils.js";
|
|
|
12
12
|
import { choiceCardCheckboxIndicatorClassName as H, choiceCardRadioIndicatorClassName as $ } from "./choice-card-indicator.variants.js";
|
|
13
13
|
import { ChoiceCardFeaturedBackdrop as K } from "./choice-card-featured-backdrop.js";
|
|
14
14
|
import { choiceCardVariants as W } from "./choice-card.variants.js";
|
|
15
|
-
const y = n.createContext(null),
|
|
15
|
+
const y = n.createContext(null), g = n.createContext({
|
|
16
16
|
value: "",
|
|
17
17
|
selected: !1,
|
|
18
18
|
type: "single",
|
|
@@ -44,7 +44,7 @@ function Ce() {
|
|
|
44
44
|
);
|
|
45
45
|
}
|
|
46
46
|
function pe() {
|
|
47
|
-
return n.useContext(
|
|
47
|
+
return n.useContext(g);
|
|
48
48
|
}
|
|
49
49
|
function Z({
|
|
50
50
|
selected: e,
|
|
@@ -266,7 +266,7 @@ const U = p(
|
|
|
266
266
|
"aria-label": z
|
|
267
267
|
}
|
|
268
268
|
);
|
|
269
|
-
return /* @__PURE__ */ o(
|
|
269
|
+
return /* @__PURE__ */ o(g.Provider, { value: j, children: /* @__PURE__ */ x(
|
|
270
270
|
U,
|
|
271
271
|
{
|
|
272
272
|
ref: C,
|
|
@@ -279,7 +279,7 @@ const U = p(
|
|
|
279
279
|
a,
|
|
280
280
|
u.inCompare && l(
|
|
281
281
|
"isolate grid w-full grid-rows-subgrid [grid-row:1/-1] gap-0",
|
|
282
|
-
u.fit === "auto" ? "min-w-0 max-w-[420px]" : "min-w-[411px]"
|
|
282
|
+
u.fit === "auto" ? "min-w-0 max-w-[420px]" : "w-[411px] min-w-[411px] max-w-[411px]"
|
|
283
283
|
)
|
|
284
284
|
),
|
|
285
285
|
...h,
|
|
@@ -295,7 +295,7 @@ const U = p(
|
|
|
295
295
|
), fe = p(
|
|
296
296
|
"ChoiceCardIndicator",
|
|
297
297
|
({ className: e }, a) => {
|
|
298
|
-
const { selected: t, type: r, disabled: c } = n.useContext(
|
|
298
|
+
const { selected: t, type: r, disabled: c } = n.useContext(g);
|
|
299
299
|
return r === "multiple" ? /* @__PURE__ */ o(
|
|
300
300
|
"span",
|
|
301
301
|
{
|
|
@@ -361,9 +361,9 @@ function X({ className: e }) {
|
|
|
361
361
|
}
|
|
362
362
|
);
|
|
363
363
|
}
|
|
364
|
-
const
|
|
364
|
+
const xe = p(
|
|
365
365
|
"ChoiceCardRibbon",
|
|
366
|
-
({ className: e, children: a, ...t }, r) => /* @__PURE__ */
|
|
366
|
+
({ className: e, children: a, ...t }, r) => /* @__PURE__ */ x(
|
|
367
367
|
"div",
|
|
368
368
|
{
|
|
369
369
|
ref: r,
|
|
@@ -387,7 +387,7 @@ const ge = p(
|
|
|
387
387
|
]
|
|
388
388
|
}
|
|
389
389
|
)
|
|
390
|
-
),
|
|
390
|
+
), ge = p(
|
|
391
391
|
"ChoiceCardFooter",
|
|
392
392
|
({ className: e, children: a, ...t }, r) => {
|
|
393
393
|
const c = n.useContext(v);
|
|
@@ -409,7 +409,7 @@ const ge = p(
|
|
|
409
409
|
), we = p(
|
|
410
410
|
"ChoiceCardContent",
|
|
411
411
|
({ className: e, children: a, ...t }, r) => {
|
|
412
|
-
const { variant: c } = n.useContext(
|
|
412
|
+
const { variant: c } = n.useContext(g);
|
|
413
413
|
return n.useContext(v).inCompare ? /* @__PURE__ */ o(
|
|
414
414
|
"div",
|
|
415
415
|
{
|
|
@@ -445,7 +445,7 @@ const ge = p(
|
|
|
445
445
|
children: a
|
|
446
446
|
}
|
|
447
447
|
)), Ne = p("ChoiceCardTitle", ({ className: e, children: a, ...t }, r) => {
|
|
448
|
-
const { selected: c, disabled: i, size: m, variant: h, labelIsExplicit: C, setAccessibleName: s } = n.useContext(
|
|
448
|
+
const { selected: c, disabled: i, size: m, variant: h, labelIsExplicit: C, setAccessibleName: s } = n.useContext(g), u = n.useRef(null), f = _(r, u);
|
|
449
449
|
return n.useLayoutEffect(() => {
|
|
450
450
|
if (C) return;
|
|
451
451
|
const d = u.current?.textContent?.trim();
|
|
@@ -485,7 +485,7 @@ const ge = p(
|
|
|
485
485
|
);
|
|
486
486
|
}
|
|
487
487
|
), ye = p("ChoiceCardDescription", ({ className: e, children: a, ...t }, r) => {
|
|
488
|
-
const { selected: c, disabled: i, variant: m } = n.useContext(
|
|
488
|
+
const { selected: c, disabled: i, variant: m } = n.useContext(g);
|
|
489
489
|
return /* @__PURE__ */ o(
|
|
490
490
|
"p",
|
|
491
491
|
{
|
|
@@ -511,7 +511,7 @@ const ge = p(
|
|
|
511
511
|
children: c = "Selected",
|
|
512
512
|
...i
|
|
513
513
|
}, m) => {
|
|
514
|
-
const { selected: h } = n.useContext(
|
|
514
|
+
const { selected: h } = n.useContext(g);
|
|
515
515
|
return h ? /* @__PURE__ */ o(
|
|
516
516
|
a ? T : "div",
|
|
517
517
|
{
|
|
@@ -557,7 +557,7 @@ const ge = p(
|
|
|
557
557
|
e
|
|
558
558
|
),
|
|
559
559
|
...t,
|
|
560
|
-
children: c.map((i, m) => /* @__PURE__ */
|
|
560
|
+
children: c.map((i, m) => /* @__PURE__ */ x(n.Fragment, { children: [
|
|
561
561
|
m > 0 ? /* @__PURE__ */ o("div", { className: "h-3 w-px shrink-0 bg-stroke-field", "aria-hidden": "true" }) : null,
|
|
562
562
|
i
|
|
563
563
|
] }, m))
|
|
@@ -566,7 +566,7 @@ const ge = p(
|
|
|
566
566
|
}
|
|
567
567
|
), Ie = p(
|
|
568
568
|
"ChoiceCardStat",
|
|
569
|
-
({ className: e, value: a, label: t, ...r }, c) => /* @__PURE__ */
|
|
569
|
+
({ className: e, value: a, label: t, ...r }, c) => /* @__PURE__ */ x(
|
|
570
570
|
"div",
|
|
571
571
|
{
|
|
572
572
|
ref: c,
|
|
@@ -585,14 +585,14 @@ const ge = p(
|
|
|
585
585
|
);
|
|
586
586
|
function Y(e, a) {
|
|
587
587
|
if (e <= 0) return "max-content";
|
|
588
|
-
const t = a === "auto" ? "minmax(0, 420px)" : "
|
|
588
|
+
const t = a === "auto" ? "minmax(0, 420px)" : "411px";
|
|
589
589
|
return `max-content ${Array.from(
|
|
590
590
|
{ length: e },
|
|
591
591
|
(c, i) => i === 0 ? t : `1rem ${t}`
|
|
592
592
|
).join(" ")}`;
|
|
593
593
|
}
|
|
594
594
|
function ee({ rows: e }) {
|
|
595
|
-
return /* @__PURE__ */
|
|
595
|
+
return /* @__PURE__ */ x(
|
|
596
596
|
"div",
|
|
597
597
|
{
|
|
598
598
|
"data-slot": "choice-card-compare-gutter",
|
|
@@ -615,7 +615,7 @@ function ee({ rows: e }) {
|
|
|
615
615
|
}
|
|
616
616
|
const te = p(
|
|
617
617
|
"ChoiceCardCompareLabels",
|
|
618
|
-
({ className: e, children: a, ...t }, r) => /* @__PURE__ */
|
|
618
|
+
({ className: e, children: a, ...t }, r) => /* @__PURE__ */ x(
|
|
619
619
|
"div",
|
|
620
620
|
{
|
|
621
621
|
ref: r,
|
|
@@ -635,7 +635,7 @@ const te = p(
|
|
|
635
635
|
)
|
|
636
636
|
), Pe = p(
|
|
637
637
|
"ChoiceCardCompareLabel",
|
|
638
|
-
({ className: e, children: a, ...t }, r) => /* @__PURE__ */
|
|
638
|
+
({ className: e, children: a, ...t }, r) => /* @__PURE__ */ x(
|
|
639
639
|
"div",
|
|
640
640
|
{
|
|
641
641
|
ref: r,
|
|
@@ -698,7 +698,7 @@ const te = p(
|
|
|
698
698
|
e
|
|
699
699
|
),
|
|
700
700
|
...r,
|
|
701
|
-
children: /* @__PURE__ */
|
|
701
|
+
children: /* @__PURE__ */ x(
|
|
702
702
|
"div",
|
|
703
703
|
{
|
|
704
704
|
className: l(
|
|
@@ -711,7 +711,7 @@ const te = p(
|
|
|
711
711
|
},
|
|
712
712
|
children: [
|
|
713
713
|
m,
|
|
714
|
-
h.map((s, u) => /* @__PURE__ */
|
|
714
|
+
h.map((s, u) => /* @__PURE__ */ x(n.Fragment, { children: [
|
|
715
715
|
u > 0 && C > 0 ? /* @__PURE__ */ o(ee, { rows: C }) : null,
|
|
716
716
|
s
|
|
717
717
|
] }, u))
|
|
@@ -733,13 +733,13 @@ export {
|
|
|
733
733
|
we as ChoiceCardContent,
|
|
734
734
|
ye as ChoiceCardDescription,
|
|
735
735
|
K as ChoiceCardFeaturedBackdrop,
|
|
736
|
-
|
|
736
|
+
ge as ChoiceCardFooter,
|
|
737
737
|
O as ChoiceCardGroup,
|
|
738
738
|
ke as ChoiceCardHeader,
|
|
739
739
|
ze as ChoiceCardIndex,
|
|
740
740
|
fe as ChoiceCardIndicator,
|
|
741
741
|
ve as ChoiceCardMedia,
|
|
742
|
-
|
|
742
|
+
xe as ChoiceCardRibbon,
|
|
743
743
|
Ie as ChoiceCardStat,
|
|
744
744
|
Re as ChoiceCardStats,
|
|
745
745
|
Se as ChoiceCardStatus,
|
|
@@ -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
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { cn as x } from "../../../../lib/utils.js";
|
|
3
|
+
import "react";
|
|
3
4
|
import { OverflowTooltip as m } from "../../../feedback/tooltip/overflow-tooltip.js";
|
|
4
5
|
import { isInvertedSelection as h, isOptionArray as d } from "../utils/select.js";
|
|
5
|
-
function
|
|
6
|
+
function C({
|
|
6
7
|
isMulti: u,
|
|
7
8
|
isDisabled: p,
|
|
8
9
|
internalValue: o,
|
|
@@ -52,5 +53,5 @@ function w({
|
|
|
52
53
|
);
|
|
53
54
|
}
|
|
54
55
|
export {
|
|
55
|
-
|
|
56
|
+
C as SelectTriggerValue
|
|
56
57
|
};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { jsxs as s, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import * as i from "@radix-ui/react-popover";
|
|
3
3
|
import { Checkbox as P } from "../../checkbox/checkbox.js";
|
|
4
|
+
import "react";
|
|
4
5
|
import { OverflowTooltip as y } from "../../../feedback/tooltip/overflow-tooltip.js";
|
|
5
6
|
import { ChevronRight as A, Checkmark as O } from "impact-nova-icons";
|
|
6
7
|
import { cn as v } from "../../../../lib/utils.js";
|
|
7
8
|
import { useOverlayPortalContainer as T } from "../../../../lib/overlay/overlay-portal-context.js";
|
|
8
9
|
import { OVERLAY_NESTED_FLOATING_INSTANT_HIDE_CLASS as _ } from "../../../../lib/overlay/overlay-host.constants.js";
|
|
9
10
|
import { useSuppressOptionClickForTextSelection as E } from "../hooks/useSuppressOptionClickForTextSelection.js";
|
|
10
|
-
const
|
|
11
|
+
const R = ({
|
|
11
12
|
parentOption: n,
|
|
12
13
|
isMulti: u,
|
|
13
14
|
isReadOnly: l,
|
|
@@ -105,5 +106,5 @@ const G = ({
|
|
|
105
106
|
] });
|
|
106
107
|
};
|
|
107
108
|
export {
|
|
108
|
-
|
|
109
|
+
R as Submenu
|
|
109
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
|
};
|
|
@@ -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
|
({
|
|
@@ -14,12 +14,12 @@ const V = p.forwardRef(
|
|
|
14
14
|
onStepClick: m,
|
|
15
15
|
stepAriaLabel: f,
|
|
16
16
|
...h
|
|
17
|
-
},
|
|
18
|
-
const
|
|
17
|
+
}, x) => {
|
|
18
|
+
const b = o.length, c = !!m;
|
|
19
19
|
return /* @__PURE__ */ e(
|
|
20
20
|
"div",
|
|
21
21
|
{
|
|
22
|
-
ref:
|
|
22
|
+
ref: x,
|
|
23
23
|
className: i(S({ variant: "summary" }), d),
|
|
24
24
|
"data-orientation": "horizontal",
|
|
25
25
|
"data-variant": "summary",
|
|
@@ -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,
|
|
@@ -36,7 +36,7 @@ const V = p.forwardRef(
|
|
|
36
36
|
status: a,
|
|
37
37
|
disabled: t.disabled,
|
|
38
38
|
interactive: c,
|
|
39
|
-
ariaLabel: f(s,
|
|
39
|
+
ariaLabel: f(s, b),
|
|
40
40
|
isActive: r,
|
|
41
41
|
onStepClick: m,
|
|
42
42
|
className: i(
|
|
@@ -87,7 +87,7 @@ const V = p.forwardRef(
|
|
|
87
87
|
alt: "",
|
|
88
88
|
"aria-hidden": !0,
|
|
89
89
|
"data-summary-connector": "",
|
|
90
|
-
className: "relative z-[1] -rotate-90
|
|
90
|
+
className: "relative z-[1] -rotate-90"
|
|
91
91
|
}
|
|
92
92
|
) : null
|
|
93
93
|
] }) : null
|
|
@@ -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
|
{
|