@epam/ai-dial-ui-kit 0.10.0-dev.30 → 0.10.0-dev.31

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.
@@ -3782,8 +3782,9 @@ const Dy = (e, t) => {
3782
3782
  onChangeStep: i
3783
3783
  }) => {
3784
3784
  const s = (n) => {
3785
- const o = e.findIndex((a) => a.id === t), r = e.findIndex((a) => a.id === n);
3786
- (n !== t && e[o].status === di.VALID || r < o) && i(n);
3785
+ const o = e.findIndex((l) => l.id === t), r = e.findIndex((l) => l.id === n);
3786
+ if (n === t) return;
3787
+ (e.slice(0, r).every((l) => l.status === di.VALID) || r < o) && i(n);
3787
3788
  };
3788
3789
  return /* @__PURE__ */ g.jsx("div", { id: "steps", className: "flex gap-x-3", children: e.map((n, o) => /* @__PURE__ */ g.jsx(
3789
3790
  Ty,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-ui-kit",
3
- "version": "0.10.0-dev.30",
3
+ "version": "0.10.0-dev.31",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "A modern UI kit for building AI DIAL interfaces with React",