@gisce/react-ooui 2.63.0-alpha.3 → 2.63.0-alpha.4
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/react-ooui.es.js
CHANGED
|
@@ -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 } = Ut, Ys = (e) => {
|
|
3894
|
-
const {
|
|
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__ */ V(
|
|
3896
3904
|
"div",
|
|
3897
3905
|
{
|
|
3898
|
-
className:
|
|
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:
|
|
3914
|
+
borderRadius: c.borderRadius
|
|
3907
3915
|
},
|
|
3908
3916
|
children: [
|
|
3909
3917
|
/* @__PURE__ */ V(
|
|
@@ -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:
|
|
3935
|
+
cursor: u ? "grab" : void 0,
|
|
3928
3936
|
overflow: "hidden"
|
|
3929
3937
|
},
|
|
3930
3938
|
children: s ? /* @__PURE__ */ V(oe, { children: [
|
|
3931
3939
|
/* @__PURE__ */ i(It, { title: s, children: /* @__PURE__ */ i($n, { className: "pr-1 text-xs" }) }),
|
|
3932
3940
|
/* @__PURE__ */ i(ui, { ellipsis: !0, children: t })
|
|
3933
|
-
] }) : /* @__PURE__ */ i(
|
|
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(Be, { justify: "end", align: "middle", children: /* @__PURE__ */ i(
|
|
@@ -3945,8 +3963,8 @@ const _u = xt(Au), Fu = ({
|
|
|
3945
3963
|
]
|
|
3946
3964
|
}
|
|
3947
3965
|
),
|
|
3948
|
-
!
|
|
3949
|
-
|
|
3966
|
+
!u && /* @__PURE__ */ i("div", { style: { padding: 10 }, children: /* @__PURE__ */ i(er, { children: n }) }),
|
|
3967
|
+
u && /* @__PURE__ */ i(er, { children: n })
|
|
3950
3968
|
]
|
|
3951
3969
|
}
|
|
3952
3970
|
);
|
|
@@ -4027,6 +4045,7 @@ const _u = xt(Au), Fu = ({
|
|
|
4027
4045
|
action: s,
|
|
4028
4046
|
openAction: m,
|
|
4029
4047
|
tooltip: O,
|
|
4048
|
+
card: t.card,
|
|
4030
4049
|
children: [
|
|
4031
4050
|
l && /* @__PURE__ */ i(jn, {}),
|
|
4032
4051
|
!l && /* @__PURE__ */ i(oe, { children: o ? (w == null ? void 0 : w.id) && /* @__PURE__ */ i(
|