@applica-software-guru/react-admin 1.4.189 → 1.4.191

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.
@@ -3529,30 +3529,36 @@ const J5 = ap("div", {
3529
3529
  "& .MuiMenuItem-root": {
3530
3530
  padding: 0,
3531
3531
  margin: 0,
3532
- backgroundColor: e.palette.background.paper,
3532
+ // backgroundColor: theme.palette.background.paper,
3533
3533
  "& .MuiButton-startIcon": {
3534
3534
  marginRight: e.spacing(0)
3535
3535
  }
3536
3536
  }
3537
3537
  }));
3538
3538
  function ts({ horizontal: e = !1, children: t }) {
3539
- const [n, r] = je(null), o = Le.useRef(null), a = (u) => {
3540
- u.stopPropagation(), u.preventDefault(), r(u.currentTarget), o.current = u.currentTarget;
3541
- }, s = Se((u) => {
3542
- u.stopPropagation(), u.preventDefault(), r(null);
3539
+ const [n, r] = je(null), o = Le.useRef(null), a = (A) => {
3540
+ A.stopPropagation(), A.preventDefault(), r(A.currentTarget), o.current = A.currentTarget;
3541
+ }, s = Se((A) => {
3542
+ A.stopPropagation(), A.preventDefault(), r(null);
3543
3543
  }, []);
3544
3544
  if (!t || Le.Children.count(t) === 0 || // @ts-ignore
3545
- t != null && t.filter && (t == null ? void 0 : t.filter((u) => Le.isValidElement(u)).length) === 0)
3545
+ t != null && t.filter && (t == null ? void 0 : t.filter((A) => Le.isValidElement(A)).length) === 0)
3546
3546
  return null;
3547
- const c = Se((u) => {
3548
- var A;
3549
- u.stopPropagation(), u.preventDefault(), r(null), typeof ((A = u.currentTarget) == null ? void 0 : A.onClick) == "function" && u.currentTarget.onClick(u);
3550
- }, []);
3547
+ const c = Se((A) => {
3548
+ var f;
3549
+ A.stopPropagation(), A.preventDefault(), r(null), typeof ((f = A.currentTarget) == null ? void 0 : f.onClick) == "function" && A.currentTarget.onClick(A);
3550
+ }, []), u = { width: "100%", justifyContent: "flex-start" };
3551
3551
  return /* @__PURE__ */ $(J5, { children: [
3552
3552
  /* @__PURE__ */ h(zB, { "aria-label": "more", "aria-haspopup": "true", onClick: a, color: n ? "inherit" : "default", children: e ? /* @__PURE__ */ h(UD, {}) : /* @__PURE__ */ h(YD, {}) }),
3553
3553
  /* @__PURE__ */ h(X5, { open: n, onClose: s, arrow: "right-top", children: Wn.map(
3554
3554
  t,
3555
- (u, A) => Le.isValidElement(u) && /* @__PURE__ */ h(WB, { onClick: c, children: Le.cloneElement(u) }, A)
3555
+ (A, f) => Le.isValidElement(A) && /* @__PURE__ */ h(WB, { onClick: c, children: Le.cloneElement(
3556
+ A,
3557
+ {
3558
+ // @ts-ignore
3559
+ style: { ...u }
3560
+ }
3561
+ ) }, f)
3556
3562
  ) })
3557
3563
  ] });
3558
3564
  }
@@ -28408,44 +28414,45 @@ function vne({
28408
28414
  scrollToTop: a = !0,
28409
28415
  className: s,
28410
28416
  sx: c,
28411
- onSubmit: u,
28412
- onSuccess: A,
28413
- onError: f,
28414
- ...p
28417
+ fab: u = !0,
28418
+ onSubmit: A,
28419
+ onSuccess: f,
28420
+ onError: p,
28421
+ ...C
28415
28422
  }) {
28416
- const [C, m] = je(!1), I = Mr(), B = Zn(), { openDialog: v, closeDialog: w } = ns(), P = Se(() => v(B, () => m(!0)), [v, B]), y = Se(() => w(B, () => m(!1)), [w, B]), S = Ks((T) => T.breakpoints.down("md"));
28423
+ const [m, I] = je(!1), B = Mr(), v = Zn(), { openDialog: w, closeDialog: P } = ns(), y = Se(() => w(v, () => I(!0)), [w, v]), S = Se(() => P(v, () => I(!1)), [P, v]), T = u && Ks((D) => D.breakpoints.down("md"));
28417
28424
  return /* @__PURE__ */ $(rn, { children: [
28418
- S ? /* @__PURE__ */ h(
28425
+ T ? /* @__PURE__ */ h(
28419
28426
  i$,
28420
28427
  {
28421
- ...p,
28428
+ ...C,
28422
28429
  state: o$[String(a)],
28423
28430
  color: "primary",
28424
28431
  className: Xe(LB.floating, s),
28425
- "aria-label": n && I(n),
28426
- onClick: P,
28432
+ "aria-label": n && B(n),
28433
+ onClick: y,
28427
28434
  children: /* @__PURE__ */ h(lf, {})
28428
28435
  }
28429
- ) : /* @__PURE__ */ h(ti, { ...p, sx: c, label: n, onClick: P, children: /* @__PURE__ */ h(lf, {}) }),
28436
+ ) : /* @__PURE__ */ h(ti, { ...C, sx: c, label: n, onClick: y, children: /* @__PURE__ */ h(lf, {}) }),
28430
28437
  /* @__PURE__ */ h(
28431
28438
  eA,
28432
28439
  {
28433
- open: C,
28440
+ open: m,
28434
28441
  scroll: "body",
28435
28442
  sx: { "& .MuiToolbar-root": { position: "initial" } },
28436
- onClose: y,
28443
+ onClose: S,
28437
28444
  fullWidth: e,
28438
28445
  maxWidth: t,
28439
28446
  children: /* @__PURE__ */ h(
28440
28447
  r$,
28441
28448
  {
28442
- ...p,
28449
+ ...C,
28443
28450
  redirect: o,
28444
28451
  record: r,
28445
- onClose: y,
28446
- onSubmit: u,
28447
- onSuccess: A,
28448
- onError: f
28452
+ onClose: S,
28453
+ onSubmit: A,
28454
+ onSuccess: f,
28455
+ onError: p
28449
28456
  }
28450
28457
  )
28451
28458
  }