@omniaz/vue-component-library 0.2.9 → 0.2.12

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.
@@ -60223,8 +60223,8 @@ const lMe = ["onClick"], uMe = "inline-block py-2 px-4 text-red-600 rounded-t-lg
60223
60223
  }), s = Ee(() => a.tabs.find((u) => (u == null ? void 0 : u.index) === a.selectedIndex) ?? a.tabs[a.selectedIndex]);
60224
60224
  LW("TabsProvider", a);
60225
60225
  const l = (u) => {
60226
- var c, f, d, h, p;
60227
- (c = a.tabs[u]) != null && c.disabled || a.selectedIndex !== u && ((d = (f = a.tabs) == null ? void 0 : f[u]) != null && d.url ? r == null || r.visit(a.tabs[u].url) : ((p = (h = a.tabs) == null ? void 0 : h[u]) != null && p.onClick && a.tabs[u].onClick(), a.selectedIndex = u));
60226
+ const c = a.tabs.find((d) => (d == null ? void 0 : d.index) === u) ?? a.tabs[u], f = (c == null ? void 0 : c.index) ?? u;
60227
+ c != null && c.disabled || a.selectedIndex !== f && (c != null && c.url ? r == null || r.visit(c.url) : (c != null && c.onClick && c.onClick(), a.selectedIndex = f));
60228
60228
  };
60229
60229
  return ix(() => {
60230
60230
  var u, c;
@@ -60260,8 +60260,8 @@ const lMe = ["onClick"], uMe = "inline-block py-2 px-4 text-red-600 rounded-t-lg
60260
60260
  class: st(["mr-2", [u.vertical ? "border-r border-gray-100 dark:border-gray-700" : ""]])
60261
60261
  }, [
60262
60262
  Be("a", {
60263
- class: st(["cursor-pointer inline-flex items-center h-11 justify-center w-full", (d == null ? void 0 : d.index) === a.selectedIndex || h === a.selectedIndex ? i.value : d != null && d.disabled ? cMe : a.hasErrors[h] ? uMe : o.value]),
60264
- onClick: (p) => l(h)
60263
+ class: st(["cursor-pointer inline-flex items-center h-11 justify-center w-full", (d != null && d.index ? d.index === a.selectedIndex : h === a.selectedIndex) ? i.value : d != null && d.disabled ? cMe : a.hasErrors[h] ? uMe : o.value]),
60264
+ onClick: (p) => l((d == null ? void 0 : d.index) ?? h)
60265
60265
  }, [
60266
60266
  d != null && d.icon ? (ae(), xt(Fo, {
60267
60267
  key: 0,