jclib-ui 0.0.41 → 0.0.43

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.
@@ -1909,40 +1909,41 @@ function ec({
1909
1909
  size: r,
1910
1910
  children: n,
1911
1911
  direction: o = "start",
1912
- ...i
1912
+ dados: i,
1913
+ ...a
1913
1914
  }) {
1914
- const a = ho(), [s, c] = Ue(!1), u = () => {
1915
- c((f) => !f);
1916
- }, l = (f) => {
1917
- a.push(f.route, !0);
1915
+ const s = ho(), [c, u] = Ue(!1), l = () => {
1916
+ u((h) => !h);
1917
+ }, f = (h) => {
1918
+ h.route ? s.push(h.route, !0) : h.onClick(i);
1918
1919
  };
1919
1920
  return /* @__PURE__ */ g.jsxs(
1920
1921
  ll,
1921
1922
  {
1922
- isOpen: s,
1923
- toggle: u,
1923
+ isOpen: c,
1924
+ toggle: l,
1924
1925
  direction: o,
1925
1926
  size: r,
1926
1927
  title: t,
1927
1928
  children: [
1928
1929
  /* @__PURE__ */ g.jsx(fl, { children: n }),
1929
- /* @__PURE__ */ g.jsxs(dl, { ...i, className: "left-shadow", children: [
1930
+ /* @__PURE__ */ g.jsxs(dl, { ...a, className: "left-shadow", children: [
1930
1931
  t && /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
1931
1932
  /* @__PURE__ */ g.jsx(xo, { header: !0, children: /* @__PURE__ */ g.jsx("strong", { className: "fs-6", children: t }) }),
1932
1933
  /* @__PURE__ */ g.jsx(xo, { divider: !0 })
1933
1934
  ] }),
1934
1935
  e && e.map(
1935
- (f, h) => f.isLine ? /* @__PURE__ */ g.jsx(xo, { divider: !0 }, h) : /* @__PURE__ */ g.jsx(
1936
+ (h, p) => h.isLine ? /* @__PURE__ */ g.jsx(xo, { divider: !0 }, p) : /* @__PURE__ */ g.jsx(
1936
1937
  xo,
1937
1938
  {
1938
- disabled: f.disabled,
1939
- onClick: () => l(f),
1940
- children: /* @__PURE__ */ g.jsxs(Fl, { disabled: f.disabled, children: [
1941
- /* @__PURE__ */ g.jsx("span", { children: f.icon }),
1942
- /* @__PURE__ */ g.jsx("div", { children: f.title })
1939
+ disabled: h.disabled,
1940
+ onClick: () => f(h),
1941
+ children: /* @__PURE__ */ g.jsxs(Fl, { disabled: h.disabled, children: [
1942
+ /* @__PURE__ */ g.jsx("span", { children: h.icon }),
1943
+ /* @__PURE__ */ g.jsx("div", { children: h.title })
1943
1944
  ] })
1944
1945
  },
1945
- h
1946
+ p
1946
1947
  )
1947
1948
  )
1948
1949
  ] })