biblio-react 3.0.0-alpha302-popup → 3.0.0-alpha304-popup

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
@@ -27931,7 +27931,7 @@ function wV(t) {
27931
27931
  /* @__PURE__ */ b(mV, { ...y }),
27932
27932
  /* @__PURE__ */ b(yV, { ...y }),
27933
27933
  a && p !== "custom" && /* @__PURE__ */ b(hd, { onClick: g, children: /* @__PURE__ */ b(vA, { fontSize: "small" }) }),
27934
- u && /* @__PURE__ */ b(
27934
+ u !== !1 && /* @__PURE__ */ b(
27935
27935
  jk,
27936
27936
  {
27937
27937
  containerRef: d,
@@ -30220,7 +30220,7 @@ const eM = /* @__PURE__ */ s((t) => {
30220
30220
  loadingOverlay: _5,
30221
30221
  noRowsOverlay: Vb,
30222
30222
  baseIconButton: Zk,
30223
- toolbar: Sr || ye ? () => /* @__PURE__ */ b(
30223
+ toolbar: Sr !== !1 || ye ? () => /* @__PURE__ */ b(
30224
30224
  jk,
30225
30225
  {
30226
30226
  containerRef: Z,
@@ -34792,9 +34792,12 @@ const Ix = S.forwardRef(/* @__PURE__ */ s(function(e, n) {
34792
34792
  incluyeAcciones: o = !1,
34793
34793
  saveButtonProps: i,
34794
34794
  ...a
34795
- } = t, [l, u] = Te(!1), d = Fr(a), p = br(), { trigger: f } = gn(), { hidden: h } = CO(), m = S.useContext(Zn) || {}, y = Le(
34796
- async (g, v, x) => {
34797
- typeof e == "function" ? (x?.skipValidation ? !0 : await f()) ? (u(!0), e(d, v, x?.name, g).finally(
34795
+ } = t, [l, u] = Te(!1), d = Fr(a), p = br(), { trigger: f } = gn(), { hidden: h } = CO(), m = S.useContext(Zn) || {}, y = S.useMemo(
34796
+ () => [...r || [], ...e?.buttons || []],
34797
+ [r, e]
34798
+ ), g = Le(
34799
+ async (v, x, T) => {
34800
+ typeof e == "function" ? (T?.skipValidation ? !0 : await f()) ? (u(!0), e(d, x, T?.name, v).finally(
34798
34801
  () => {
34799
34802
  u(!1);
34800
34803
  }
@@ -34806,19 +34809,19 @@ const Ix = S.forwardRef(/* @__PURE__ */ s(function(e, n) {
34806
34809
  );
34807
34810
  return /* @__PURE__ */ H(DT, { children: [
34808
34811
  o ? /* @__PURE__ */ b(bc, { sx: { mr: 1 }, ...i }) : null,
34809
- r.filter(
34810
- (g) => !h[g.name] && Fc(m, g.perbot)
34811
- ).map((g) => /* @__PURE__ */ b(
34812
+ y.filter(
34813
+ (v) => !h[v.name] && Fc(m, v.perbot)
34814
+ ).map((v) => /* @__PURE__ */ b(
34812
34815
  kn,
34813
34816
  {
34814
- label: g.label,
34817
+ label: v.label,
34815
34818
  disabled: l,
34816
- onClick: /* @__PURE__ */ s(async (v) => {
34817
- await y(v, n, g);
34819
+ onClick: /* @__PURE__ */ s(async (x) => {
34820
+ await g(x, n, v);
34818
34821
  }, "onClick"),
34819
- children: g.icon
34822
+ children: v.icon
34820
34823
  },
34821
- g.name
34824
+ v.name
34822
34825
  ))
34823
34826
  ] });
34824
34827
  }, "FormToolbar"), FJ = /* @__PURE__ */ s((t) => /* @__PURE__ */ b(ks, { timeout: 0, ...t }), "Loading"), h0 = HD({