@danxbot/ui 20.18.2 → 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 CHANGED
@@ -152,6 +152,7 @@ const zP = {
152
152
  /* --- card face --- */
153
153
  "alarm-clock": [["circle", { cx: "12", cy: "13", r: "8" }], ["path", { d: "M12 9v4l2 2" }], ["path", { d: "M5 3 2 6" }], ["path", { d: "m22 6-3-3" }], ["path", { d: "M6.38 18.7 4 21" }], ["path", { d: "M17.64 18.67 20 21" }]],
154
154
  "badge-check": [["path", { d: "M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z" }], ["path", { d: "m9 12 2 2 4-4" }]],
155
+ "circle-dollar-sign": [["circle", { cx: "12", cy: "12", r: "10" }], ["path", { d: "M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8" }], ["path", { d: "M12 18V6" }]],
155
156
  "circle-minus": [["circle", { cx: "12", cy: "12", r: "10" }], ["path", { d: "M8 12h8" }]],
156
157
  "clipboard-check": [["rect", { width: "8", height: "4", x: "8", y: "2", rx: "1", ry: "1" }], ["path", { d: "M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2" }], ["path", { d: "m9 14 2 2 4-4" }]],
157
158
  coins: [["circle", { cx: "8", cy: "8", r: "6" }], ["path", { d: "M18.09 10.37A6 6 0 1 1 10.34 18" }], ["path", { d: "M7 6h1v4" }], ["path", { d: "m16.71 13.88.7.71-2.82 2.82" }]],
@@ -39518,29 +39519,30 @@ function nJ({
39518
39519
  steps: t,
39519
39520
  current: n,
39520
39521
  onCurrentChange: r,
39521
- onFinish: o,
39522
- backLabel: s = "Back",
39523
- nextLabel: i = "Next",
39524
- finishLabel: a = "Finish",
39525
- orientation: c = "horizontal",
39526
- children: l,
39527
- className: d
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
39528
39530
  }) {
39529
39531
  of(t, n);
39530
- const f = jU(t, n), p = UU(t, n), h = n === t.length - 1, g = `stepper-blocked-${Rt()}`, x = c === "vertical";
39531
- return /* @__PURE__ */ R("div", { className: B("flex min-w-0 flex-col gap-6", d), children: [
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: [
39532
39534
  /* @__PURE__ */ R("div", { className: "flex flex-wrap items-center gap-3", children: [
39533
39535
  /* @__PURE__ */ R("p", { className: "text-2xs font-semibold tracking-widest text-tertiary uppercase", children: [
39534
39536
  "Step ",
39535
- f.position,
39537
+ p.position,
39536
39538
  " of ",
39537
- f.total
39539
+ p.total
39538
39540
  ] }),
39539
- f.skipped > 0 && /* THE DISAGREEMENT, STATED. This is the chip a progress bar would
39541
+ p.skipped > 0 && /* THE DISAGREEMENT, STATED. This is the chip a progress bar would
39540
39542
  have swallowed: the cursor is at step 4 and only two of the three
39541
39543
  behind it are finished. */
39542
39544
  /* @__PURE__ */ R(dt, { size: "sm", tone: "danger", dot: !0, children: [
39543
- f.skipped,
39545
+ p.skipped,
39544
39546
  " skipped"
39545
39547
  ] })
39546
39548
  ] }),
@@ -39555,10 +39557,10 @@ function nJ({
39555
39557
  unpositioned scroller is not in its containing-block chain — so
39556
39558
  the strip would not clip it and its width would reach the
39557
39559
  document. See `scripts/probe-containment.mjs`. */
39558
- x ? "flex-col gap-1" : "relative flex-row items-center gap-3 overflow-x-auto"
39560
+ b ? "flex-col gap-1" : "relative flex-row items-center gap-3 overflow-x-auto"
39559
39561
  ),
39560
- children: t.map((b, y) => {
39561
- const v = HU(t, n, y), C = GU[v], E = r !== void 0 && y < n, k = /* @__PURE__ */ R(Ke, { children: [
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: [
39562
39564
  /* @__PURE__ */ u(
39563
39565
  "span",
39564
39566
  {
@@ -39567,9 +39569,9 @@ function nJ({
39567
39569
  "grid size-7 shrink-0 place-items-center rounded-full border",
39568
39570
  "font-mono text-2xs tabular-nums",
39569
39571
  "transition-colors duration-(--dur-base) ease-hover",
39570
- C.marker
39572
+ E.marker
39571
39573
  ),
39572
- children: C.icon === null ? y + 1 : /* @__PURE__ */ u(ae, { name: C.icon, size: "xs" })
39574
+ children: E.icon === null ? v + 1 : /* @__PURE__ */ u(ae, { name: E.icon, size: "xs" })
39573
39575
  }
39574
39576
  ),
39575
39577
  /* @__PURE__ */ R("span", { className: "flex min-w-0 flex-col gap-0.5 text-left", children: [
@@ -39579,79 +39581,79 @@ function nJ({
39579
39581
  className: B(
39580
39582
  "truncate text-sm font-medium",
39581
39583
  "transition-colors duration-(--dur-fast) ease-hover",
39582
- C.label
39584
+ E.label
39583
39585
  ),
39584
- children: b.label
39586
+ children: y.label
39585
39587
  }
39586
39588
  ),
39587
- b.hint && /* @__PURE__ */ u("span", { className: "truncate text-xs text-tertiary", children: b.hint })
39589
+ y.hint && /* @__PURE__ */ u("span", { className: "truncate text-xs text-tertiary", children: y.hint })
39588
39590
  ] }),
39589
39591
  /* @__PURE__ */ R("span", { className: "sr-only", children: [
39590
39592
  ", ",
39591
- C.word
39593
+ E.word
39592
39594
  ] })
39593
- ] }), N = "flex min-w-0 items-center gap-3 rounded-lg px-1 py-1";
39595
+ ] }), S = "flex min-w-0 items-center gap-3 rounded-lg px-1 py-1";
39594
39596
  return /* @__PURE__ */ R(
39595
39597
  "li",
39596
39598
  {
39597
- "data-status": v,
39598
- "aria-current": y === n ? "step" : void 0,
39599
- className: B("flex min-w-0 items-center gap-3", !x && "flex-1"),
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"),
39600
39602
  children: [
39601
- E ? /* @__PURE__ */ u(
39603
+ k ? /* @__PURE__ */ u(
39602
39604
  "button",
39603
39605
  {
39604
39606
  type: "button",
39605
- onClick: () => r(y),
39607
+ onClick: () => r(v),
39606
39608
  className: B(
39607
- N,
39609
+ S,
39608
39610
  "dx-tap cursor-pointer text-left outline-none",
39609
39611
  "transition-colors duration-(--dur-fast) ease-hover",
39610
39612
  "hover:bg-surface-hover",
39611
39613
  "focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent-border"
39612
39614
  ),
39613
- children: k
39615
+ children: N
39614
39616
  }
39615
- ) : /* @__PURE__ */ u("span", { className: N, children: k }),
39616
- !x && y < t.length - 1 && /* @__PURE__ */ u("span", { "aria-hidden": "true", className: "h-px min-w-4 flex-1 bg-border-subtle" })
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" })
39617
39619
  ]
39618
39620
  },
39619
- b.id
39621
+ y.id
39620
39622
  );
39621
39623
  })
39622
39624
  }
39623
39625
  ),
39624
- l !== void 0 && /* @__PURE__ */ u("div", { className: "min-w-0", children: l }),
39625
- 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: [
39626
39628
  n > 0 && /* @__PURE__ */ u(
39627
39629
  Ze,
39628
39630
  {
39629
39631
  variant: "outline",
39630
39632
  onClick: () => r(n - 1),
39631
39633
  leadingIcon: /* @__PURE__ */ u(ae, { name: "arrow-left", size: "sm" }),
39632
- children: s
39634
+ children: i
39633
39635
  }
39634
39636
  ),
39635
- (!h || o !== void 0) && /* @__PURE__ */ u(
39637
+ (!m || s !== void 0) && /* @__PURE__ */ u(
39636
39638
  Ze,
39637
39639
  {
39638
- disabled: p !== null,
39639
- "aria-describedby": p !== null ? g : void 0,
39640
+ disabled: h !== null,
39641
+ "aria-describedby": h !== null ? x : void 0,
39640
39642
  onClick: () => {
39641
- h ? o?.() : r(n + 1);
39643
+ m ? s?.() : r(n + 1);
39642
39644
  },
39643
- trailingIcon: h ? void 0 : /* @__PURE__ */ u(ae, { name: "arrow-right", size: "sm" }),
39644
- children: h ? a : i
39645
+ trailingIcon: m ? void 0 : /* @__PURE__ */ u(ae, { name: "arrow-right", size: "sm" }),
39646
+ children: m ? c : a
39645
39647
  }
39646
39648
  ),
39647
- p !== null && /* @__PURE__ */ R(
39649
+ h !== null && /* @__PURE__ */ R(
39648
39650
  "p",
39649
39651
  {
39650
- id: g,
39652
+ id: x,
39651
39653
  className: "flex min-w-0 items-center gap-1.5 text-sm text-warning-text",
39652
39654
  children: [
39653
39655
  /* @__PURE__ */ u(ae, { name: "triangle-alert", size: "sm", className: "shrink-0" }),
39654
- /* @__PURE__ */ u("span", { className: "min-w-0", children: p })
39656
+ /* @__PURE__ */ u("span", { className: "min-w-0", children: h })
39655
39657
  ]
39656
39658
  }
39657
39659
  )