@gisce/react-ooui 2.63.0 → 2.64.1

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.
@@ -3891,11 +3891,19 @@ const _u = xt(Au), Fu = ({
3891
3891
  ...new Set(r.filter((o) => o in e.fields))
3892
3892
  ];
3893
3893
  }, { useToken: Du } = Ue, { Text: ui } = Bt, Ys = (e) => {
3894
- const { title: t, children: n, action: r, openAction: o, parms: a, tooltip: s } = e, { token: l } = Du(), c = Object.keys(a).length > 0;
3894
+ const {
3895
+ title: t,
3896
+ children: n,
3897
+ action: r,
3898
+ openAction: o,
3899
+ parms: a,
3900
+ tooltip: s,
3901
+ card: l = !1
3902
+ } = e, { token: c } = Du(), u = Object.keys(a).length > 0;
3895
3903
  return /* @__PURE__ */ P(
3896
3904
  "div",
3897
3905
  {
3898
- className: c ? "shadow-md" : void 0,
3906
+ className: u ? "shadow-md" : void 0,
3899
3907
  style: {
3900
3908
  height: "100%",
3901
3909
  display: "flex",
@@ -3903,7 +3911,7 @@ const _u = xt(Au), Fu = ({
3903
3911
  overflow: "hidden",
3904
3912
  border: "1px solid #eee",
3905
3913
  backgroundColor: "white",
3906
- borderRadius: l.borderRadius
3914
+ borderRadius: c.borderRadius
3907
3915
  },
3908
3916
  children: [
3909
3917
  /* @__PURE__ */ P(
@@ -3911,8 +3919,8 @@ const _u = xt(Au), Fu = ({
3911
3919
  {
3912
3920
  align: "middle",
3913
3921
  style: {
3914
- borderBottom: "1px solid #ddd",
3915
- backgroundColor: l.colorPrimaryBg
3922
+ borderBottom: l ? "none" : "1px solid #ddd",
3923
+ backgroundColor: l ? c.colorBgBase : c.colorPrimaryBg
3916
3924
  },
3917
3925
  wrap: !1,
3918
3926
  children: [
@@ -3924,13 +3932,23 @@ const _u = xt(Au), Fu = ({
3924
3932
  style: {
3925
3933
  fontWeight: "bold",
3926
3934
  padding: "0.5rem",
3927
- cursor: c ? "grab" : void 0,
3935
+ cursor: u ? "grab" : void 0,
3928
3936
  overflow: "hidden"
3929
3937
  },
3930
3938
  children: s ? /* @__PURE__ */ P(le, { children: [
3931
3939
  /* @__PURE__ */ i(Vt, { title: s, children: /* @__PURE__ */ i(wo, { className: "pr-1 text-xs" }) }),
3932
3940
  /* @__PURE__ */ i(ui, { ellipsis: !0, children: t })
3933
- ] }) : /* @__PURE__ */ i(ui, { ellipsis: !0, children: t })
3941
+ ] }) : /* @__PURE__ */ i(
3942
+ ui,
3943
+ {
3944
+ ellipsis: !0,
3945
+ style: {
3946
+ color: l ? c.colorTextDescription : c.colorTextHeading,
3947
+ fontWeight: l ? "normal" : "bold"
3948
+ },
3949
+ children: t
3950
+ }
3951
+ )
3934
3952
  }
3935
3953
  ),
3936
3954
  r && /* @__PURE__ */ i(Te, { flex: "25px", style: { padding: "0.5rem" }, children: /* @__PURE__ */ i(je, { justify: "end", align: "middle", children: /* @__PURE__ */ i(
@@ -3945,8 +3963,8 @@ const _u = xt(Au), Fu = ({
3945
3963
  ]
3946
3964
  }
3947
3965
  ),
3948
- !c && /* @__PURE__ */ i("div", { style: { padding: 10 }, children: /* @__PURE__ */ i(Xn, { children: n }) }),
3949
- c && /* @__PURE__ */ i(Xn, { children: n })
3966
+ !u && /* @__PURE__ */ i("div", { style: { padding: 10 }, children: /* @__PURE__ */ i(Xn, { children: n }) }),
3967
+ u && /* @__PURE__ */ i(Xn, { children: n })
3950
3968
  ]
3951
3969
  }
3952
3970
  );
@@ -4024,6 +4042,7 @@ const _u = xt(Au), Fu = ({
4024
4042
  action: s,
4025
4043
  openAction: m,
4026
4044
  tooltip: O,
4045
+ card: t.card,
4027
4046
  children: [
4028
4047
  l && /* @__PURE__ */ i(Nn, {}),
4029
4048
  !l && /* @__PURE__ */ i(le, { children: o ? (w == null ? void 0 : w.id) && /* @__PURE__ */ i(