@gisce/react-ooui 2.24.0-alpha.2 → 2.24.0-alpha.3
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
|
@@ -12596,21 +12596,32 @@ const Kh = (e) => {
|
|
|
12596
12596
|
/* @__PURE__ */ i(Uh, { children: /* @__PURE__ */ i(Gh, { text: t.text }) })
|
|
12597
12597
|
] }, t.id);
|
|
12598
12598
|
}, qh = (e) => {
|
|
12599
|
-
const { value: t } = e,
|
|
12600
|
-
if (
|
|
12599
|
+
const { value: t, ooui: n } = e, r = (t || []).map((o) => {
|
|
12600
|
+
if (o.type === "action")
|
|
12601
12601
|
return {
|
|
12602
|
-
children: `${
|
|
12602
|
+
children: `${o.event.date} - ${o.event.action}`
|
|
12603
12603
|
};
|
|
12604
|
-
if (
|
|
12604
|
+
if (o.type === "comment")
|
|
12605
12605
|
return {
|
|
12606
12606
|
color: "gray",
|
|
12607
|
-
position:
|
|
12608
|
-
label:
|
|
12609
|
-
children: /* @__PURE__ */ i(Kh, { data:
|
|
12607
|
+
position: o.event.isSender ? "left" : "right",
|
|
12608
|
+
label: o.event.date,
|
|
12609
|
+
children: /* @__PURE__ */ i(Kh, { data: o.event })
|
|
12610
12610
|
};
|
|
12611
12611
|
});
|
|
12612
|
-
return /* @__PURE__ */ i(
|
|
12613
|
-
|
|
12612
|
+
return /* @__PURE__ */ i(
|
|
12613
|
+
gr,
|
|
12614
|
+
{
|
|
12615
|
+
mode: "alternate",
|
|
12616
|
+
items: r,
|
|
12617
|
+
style: {
|
|
12618
|
+
height: n.height ? n.height + "px" : "100%",
|
|
12619
|
+
overflowX: "hidden",
|
|
12620
|
+
overflowY: "auto"
|
|
12621
|
+
}
|
|
12622
|
+
}
|
|
12623
|
+
);
|
|
12624
|
+
}, Yh = (e) => /* @__PURE__ */ i(Re, { ...e, children: /* @__PURE__ */ i(qh, { ooui: e.ooui }) }), zh = (e) => /* @__PURE__ */ i(Re, { ...e, children: /* @__PURE__ */ i(sl, {}) }), Jh = (e) => {
|
|
12614
12625
|
const { ooui: t } = e, { title: n, text: r, alertType: o, icon: s } = t;
|
|
12615
12626
|
function a(l) {
|
|
12616
12627
|
if (l) {
|