@gisce/react-ooui 2.33.0 → 2.34.1

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.
@@ -12585,13 +12585,13 @@ const Vh = ht(_h), Dh = (e) => {
12585
12585
  const { ooui: t } = e, { required: n } = t;
12586
12586
  return /* @__PURE__ */ i(Re, { required: n, type: "any", ...e, children: /* @__PURE__ */ i(Bh, { ...e }) });
12587
12587
  }, Bh = (e) => {
12588
- const { ooui: t, value: n } = e, { selectionValues: r, errorField: o } = t, s = re(He), a = Array.from(r.entries()), l = a.map((f) => f[0]).indexOf(n);
12589
- let c = "process", u = "";
12590
- return o && (u = s.getFieldValue(o), u && (c = "error")), /* @__PURE__ */ i(Co, { current: l, status: c, children: a.map((f, d) => /* @__PURE__ */ i(
12588
+ const { ooui: t, value: n } = e, { selectionValues: r, errorField: o, lastStep: s } = t, a = re(He), l = Array.from(r.entries()), c = l.map((d) => d[0]).indexOf(n);
12589
+ let u = "process", f = "";
12590
+ return o && (f = a.getFieldValue(o), f && (u = "error")), s && c + 1 == l.length && (u = "finish"), /* @__PURE__ */ i(Co, { current: c, status: u, children: l.map((d, h) => /* @__PURE__ */ i(
12591
12591
  Co.Step,
12592
12592
  {
12593
- title: f[1],
12594
- description: d === l && c === "error" ? u : null
12593
+ title: d[1],
12594
+ description: h === c && u === "error" ? f : null
12595
12595
  }
12596
12596
  )) });
12597
12597
  }, Hh = (e) => {