@danxbot/ui 20.18.3 → 20.19.0
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/index.js +46 -45
- package/dist/index.js.map +1 -1
- package/dist/types/components/stepper/Stepper.d.ts +18 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -39519,29 +39519,30 @@ function nJ({
|
|
|
39519
39519
|
steps: t,
|
|
39520
39520
|
current: n,
|
|
39521
39521
|
onCurrentChange: r,
|
|
39522
|
-
|
|
39523
|
-
|
|
39524
|
-
|
|
39525
|
-
|
|
39526
|
-
|
|
39527
|
-
|
|
39528
|
-
|
|
39522
|
+
showControls: o = !0,
|
|
39523
|
+
onFinish: s,
|
|
39524
|
+
backLabel: i = "Back",
|
|
39525
|
+
nextLabel: a = "Next",
|
|
39526
|
+
finishLabel: c = "Finish",
|
|
39527
|
+
orientation: l = "horizontal",
|
|
39528
|
+
children: d,
|
|
39529
|
+
className: f
|
|
39529
39530
|
}) {
|
|
39530
39531
|
of(t, n);
|
|
39531
|
-
const
|
|
39532
|
-
return /* @__PURE__ */ R("div", { className: B("flex min-w-0 flex-col gap-6",
|
|
39532
|
+
const p = jU(t, n), h = UU(t, n), m = n === t.length - 1, x = `stepper-blocked-${Rt()}`, b = l === "vertical";
|
|
39533
|
+
return /* @__PURE__ */ R("div", { className: B("flex min-w-0 flex-col gap-6", f), children: [
|
|
39533
39534
|
/* @__PURE__ */ R("div", { className: "flex flex-wrap items-center gap-3", children: [
|
|
39534
39535
|
/* @__PURE__ */ R("p", { className: "text-2xs font-semibold tracking-widest text-tertiary uppercase", children: [
|
|
39535
39536
|
"Step ",
|
|
39536
|
-
|
|
39537
|
+
p.position,
|
|
39537
39538
|
" of ",
|
|
39538
|
-
|
|
39539
|
+
p.total
|
|
39539
39540
|
] }),
|
|
39540
|
-
|
|
39541
|
+
p.skipped > 0 && /* THE DISAGREEMENT, STATED. This is the chip a progress bar would
|
|
39541
39542
|
have swallowed: the cursor is at step 4 and only two of the three
|
|
39542
39543
|
behind it are finished. */
|
|
39543
39544
|
/* @__PURE__ */ R(dt, { size: "sm", tone: "danger", dot: !0, children: [
|
|
39544
|
-
|
|
39545
|
+
p.skipped,
|
|
39545
39546
|
" skipped"
|
|
39546
39547
|
] })
|
|
39547
39548
|
] }),
|
|
@@ -39556,10 +39557,10 @@ function nJ({
|
|
|
39556
39557
|
unpositioned scroller is not in its containing-block chain — so
|
|
39557
39558
|
the strip would not clip it and its width would reach the
|
|
39558
39559
|
document. See `scripts/probe-containment.mjs`. */
|
|
39559
|
-
|
|
39560
|
+
b ? "flex-col gap-1" : "relative flex-row items-center gap-3 overflow-x-auto"
|
|
39560
39561
|
),
|
|
39561
|
-
children: t.map((
|
|
39562
|
-
const
|
|
39562
|
+
children: t.map((y, v) => {
|
|
39563
|
+
const C = HU(t, n, v), E = GU[C], k = r !== void 0 && v < n, N = /* @__PURE__ */ R(Ke, { children: [
|
|
39563
39564
|
/* @__PURE__ */ u(
|
|
39564
39565
|
"span",
|
|
39565
39566
|
{
|
|
@@ -39568,9 +39569,9 @@ function nJ({
|
|
|
39568
39569
|
"grid size-7 shrink-0 place-items-center rounded-full border",
|
|
39569
39570
|
"font-mono text-2xs tabular-nums",
|
|
39570
39571
|
"transition-colors duration-(--dur-base) ease-hover",
|
|
39571
|
-
|
|
39572
|
+
E.marker
|
|
39572
39573
|
),
|
|
39573
|
-
children:
|
|
39574
|
+
children: E.icon === null ? v + 1 : /* @__PURE__ */ u(ae, { name: E.icon, size: "xs" })
|
|
39574
39575
|
}
|
|
39575
39576
|
),
|
|
39576
39577
|
/* @__PURE__ */ R("span", { className: "flex min-w-0 flex-col gap-0.5 text-left", children: [
|
|
@@ -39580,79 +39581,79 @@ function nJ({
|
|
|
39580
39581
|
className: B(
|
|
39581
39582
|
"truncate text-sm font-medium",
|
|
39582
39583
|
"transition-colors duration-(--dur-fast) ease-hover",
|
|
39583
|
-
|
|
39584
|
+
E.label
|
|
39584
39585
|
),
|
|
39585
|
-
children:
|
|
39586
|
+
children: y.label
|
|
39586
39587
|
}
|
|
39587
39588
|
),
|
|
39588
|
-
|
|
39589
|
+
y.hint && /* @__PURE__ */ u("span", { className: "truncate text-xs text-tertiary", children: y.hint })
|
|
39589
39590
|
] }),
|
|
39590
39591
|
/* @__PURE__ */ R("span", { className: "sr-only", children: [
|
|
39591
39592
|
", ",
|
|
39592
|
-
|
|
39593
|
+
E.word
|
|
39593
39594
|
] })
|
|
39594
|
-
] }),
|
|
39595
|
+
] }), S = "flex min-w-0 items-center gap-3 rounded-lg px-1 py-1";
|
|
39595
39596
|
return /* @__PURE__ */ R(
|
|
39596
39597
|
"li",
|
|
39597
39598
|
{
|
|
39598
|
-
"data-status":
|
|
39599
|
-
"aria-current":
|
|
39600
|
-
className: B("flex min-w-0 items-center gap-3", !
|
|
39599
|
+
"data-status": C,
|
|
39600
|
+
"aria-current": v === n ? "step" : void 0,
|
|
39601
|
+
className: B("flex min-w-0 items-center gap-3", !b && "flex-1"),
|
|
39601
39602
|
children: [
|
|
39602
|
-
|
|
39603
|
+
k ? /* @__PURE__ */ u(
|
|
39603
39604
|
"button",
|
|
39604
39605
|
{
|
|
39605
39606
|
type: "button",
|
|
39606
|
-
onClick: () => r(
|
|
39607
|
+
onClick: () => r(v),
|
|
39607
39608
|
className: B(
|
|
39608
|
-
|
|
39609
|
+
S,
|
|
39609
39610
|
"dx-tap cursor-pointer text-left outline-none",
|
|
39610
39611
|
"transition-colors duration-(--dur-fast) ease-hover",
|
|
39611
39612
|
"hover:bg-surface-hover",
|
|
39612
39613
|
"focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent-border"
|
|
39613
39614
|
),
|
|
39614
|
-
children:
|
|
39615
|
+
children: N
|
|
39615
39616
|
}
|
|
39616
|
-
) : /* @__PURE__ */ u("span", { className:
|
|
39617
|
-
!
|
|
39617
|
+
) : /* @__PURE__ */ u("span", { className: S, children: N }),
|
|
39618
|
+
!b && v < t.length - 1 && /* @__PURE__ */ u("span", { "aria-hidden": "true", className: "h-px min-w-4 flex-1 bg-border-subtle" })
|
|
39618
39619
|
]
|
|
39619
39620
|
},
|
|
39620
|
-
|
|
39621
|
+
y.id
|
|
39621
39622
|
);
|
|
39622
39623
|
})
|
|
39623
39624
|
}
|
|
39624
39625
|
),
|
|
39625
|
-
|
|
39626
|
-
r !== void 0 && /* @__PURE__ */ R("div", { className: "flex flex-wrap items-center gap-3", children: [
|
|
39626
|
+
d !== void 0 && /* @__PURE__ */ u("div", { className: "min-w-0", children: d }),
|
|
39627
|
+
r !== void 0 && o && /* @__PURE__ */ R("div", { className: "flex flex-wrap items-center gap-3", children: [
|
|
39627
39628
|
n > 0 && /* @__PURE__ */ u(
|
|
39628
39629
|
Ze,
|
|
39629
39630
|
{
|
|
39630
39631
|
variant: "outline",
|
|
39631
39632
|
onClick: () => r(n - 1),
|
|
39632
39633
|
leadingIcon: /* @__PURE__ */ u(ae, { name: "arrow-left", size: "sm" }),
|
|
39633
|
-
children:
|
|
39634
|
+
children: i
|
|
39634
39635
|
}
|
|
39635
39636
|
),
|
|
39636
|
-
(!
|
|
39637
|
+
(!m || s !== void 0) && /* @__PURE__ */ u(
|
|
39637
39638
|
Ze,
|
|
39638
39639
|
{
|
|
39639
|
-
disabled:
|
|
39640
|
-
"aria-describedby":
|
|
39640
|
+
disabled: h !== null,
|
|
39641
|
+
"aria-describedby": h !== null ? x : void 0,
|
|
39641
39642
|
onClick: () => {
|
|
39642
|
-
|
|
39643
|
+
m ? s?.() : r(n + 1);
|
|
39643
39644
|
},
|
|
39644
|
-
trailingIcon:
|
|
39645
|
-
children:
|
|
39645
|
+
trailingIcon: m ? void 0 : /* @__PURE__ */ u(ae, { name: "arrow-right", size: "sm" }),
|
|
39646
|
+
children: m ? c : a
|
|
39646
39647
|
}
|
|
39647
39648
|
),
|
|
39648
|
-
|
|
39649
|
+
h !== null && /* @__PURE__ */ R(
|
|
39649
39650
|
"p",
|
|
39650
39651
|
{
|
|
39651
|
-
id:
|
|
39652
|
+
id: x,
|
|
39652
39653
|
className: "flex min-w-0 items-center gap-1.5 text-sm text-warning-text",
|
|
39653
39654
|
children: [
|
|
39654
39655
|
/* @__PURE__ */ u(ae, { name: "triangle-alert", size: "sm", className: "shrink-0" }),
|
|
39655
|
-
/* @__PURE__ */ u("span", { className: "min-w-0", children:
|
|
39656
|
+
/* @__PURE__ */ u("span", { className: "min-w-0", children: h })
|
|
39656
39657
|
]
|
|
39657
39658
|
}
|
|
39658
39659
|
)
|