@aveonline/ui-react 2.33.9 → 2.33.10
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/ui-react.mjs
CHANGED
|
@@ -55981,60 +55981,63 @@ function pve({
|
|
|
55981
55981
|
}
|
|
55982
55982
|
) });
|
|
55983
55983
|
}
|
|
55984
|
-
function mve({ infoItems: e, onItemClick: t }) {
|
|
55985
|
-
const
|
|
55986
|
-
var
|
|
55987
|
-
(
|
|
55988
|
-
},
|
|
55989
|
-
if (!
|
|
55984
|
+
function mve({ infoItems: e, onItemClick: t, clickable: n = !0 }) {
|
|
55985
|
+
const r = ue(null), [i, a] = pe(!1), o = () => {
|
|
55986
|
+
var s;
|
|
55987
|
+
(s = r.current) == null || s.scrollBy({ left: -r.current.offsetWidth });
|
|
55988
|
+
}, l = () => {
|
|
55989
|
+
if (!r.current)
|
|
55990
55990
|
return;
|
|
55991
|
-
|
|
55991
|
+
r.current.scrollLeft + r.current.offsetWidth >= r.current.scrollWidth ? r.current.scrollTo({ left: 0 }) : r.current.scrollBy({ left: r.current.offsetWidth });
|
|
55992
55992
|
};
|
|
55993
55993
|
return me(() => {
|
|
55994
|
-
const
|
|
55995
|
-
if (
|
|
55996
|
-
const
|
|
55997
|
-
|
|
55994
|
+
const s = () => {
|
|
55995
|
+
if (r.current) {
|
|
55996
|
+
const c = r.current.scrollWidth > r.current.offsetWidth;
|
|
55997
|
+
a(c);
|
|
55998
55998
|
}
|
|
55999
55999
|
};
|
|
56000
|
-
return
|
|
56000
|
+
return s(), window.addEventListener("resize", s), () => window.removeEventListener("resize", s);
|
|
56001
56001
|
}, [e]), me(() => {
|
|
56002
|
-
const
|
|
56003
|
-
|
|
56002
|
+
const s = setInterval(() => {
|
|
56003
|
+
l();
|
|
56004
56004
|
}, 8e3);
|
|
56005
|
-
return () => clearInterval(
|
|
56005
|
+
return () => clearInterval(s);
|
|
56006
56006
|
}, []), /* @__PURE__ */ A.jsxs("div", { className: "flex w-full items-center justify-center mt-4", children: [
|
|
56007
|
-
|
|
56007
|
+
i && /* @__PURE__ */ A.jsx(
|
|
56008
56008
|
u1,
|
|
56009
56009
|
{
|
|
56010
56010
|
size: "sm",
|
|
56011
56011
|
variant: "plain-monochrome",
|
|
56012
56012
|
className: "rounded-full",
|
|
56013
|
-
onClick:
|
|
56013
|
+
onClick: o,
|
|
56014
56014
|
children: /* @__PURE__ */ A.jsx(vt, { size: "sm", kind: "page-back" })
|
|
56015
56015
|
}
|
|
56016
56016
|
),
|
|
56017
|
-
/* @__PURE__ */ A.jsx("div", { ref:
|
|
56017
|
+
/* @__PURE__ */ A.jsx("div", { ref: r, className: "flex gap-1 overflow-hidden", children: e.map((s, c) => /* @__PURE__ */ A.jsx(
|
|
56018
56018
|
"div",
|
|
56019
56019
|
{
|
|
56020
|
-
className:
|
|
56021
|
-
onClick: () => t
|
|
56020
|
+
className: `slider-item border border-surface-active rounded-sm ${n ? "cursor-pointer" : "cursor-default"}`,
|
|
56021
|
+
onClick: n && t ? () => t(s) : void 0,
|
|
56022
56022
|
children: /* @__PURE__ */ A.jsx("div", { className: "p-4 w-[180px] h-[190px] flex items-center justify-center", children: /* @__PURE__ */ A.jsxs("div", { className: "block gap-y-2 items-center p-4", children: [
|
|
56023
|
-
/* @__PURE__ */ A.jsx(B2, { description:
|
|
56023
|
+
/* @__PURE__ */ A.jsx(B2, { description: s.tooltipMessage || "", children: /* @__PURE__ */ A.jsx(
|
|
56024
56024
|
"img",
|
|
56025
56025
|
{
|
|
56026
56026
|
className: "size-[50px] rounded-full object-cover",
|
|
56027
|
-
src:
|
|
56027
|
+
src: s.imageUrl,
|
|
56028
56028
|
alt: "image transport"
|
|
56029
56029
|
}
|
|
56030
56030
|
) }),
|
|
56031
|
-
/* @__PURE__ */ A.jsx(Be, { className: "text-center mt-4
|
|
56032
|
-
/* @__PURE__ */ A.
|
|
56031
|
+
/* @__PURE__ */ A.jsx(Be, { className: "text-center mt-4", weight: "bold", children: s.title }),
|
|
56032
|
+
/* @__PURE__ */ A.jsxs(Be, { className: "text-center mt-2", weight: "bold", children: [
|
|
56033
|
+
" ",
|
|
56034
|
+
s.value
|
|
56035
|
+
] })
|
|
56033
56036
|
] }) })
|
|
56034
56037
|
},
|
|
56035
|
-
|
|
56038
|
+
c
|
|
56036
56039
|
)) }),
|
|
56037
|
-
|
|
56040
|
+
i && /* @__PURE__ */ A.jsx(u1, { size: "sm", variant: "plain-monochrome", onClick: l, children: /* @__PURE__ */ A.jsx(vt, { size: "sm", kind: "page-front" }) })
|
|
56038
56041
|
] });
|
|
56039
56042
|
}
|
|
56040
56043
|
function vve({ steps: e }) {
|
|
@@ -56244,7 +56247,8 @@ function Ave({
|
|
|
56244
56247
|
{
|
|
56245
56248
|
type: o,
|
|
56246
56249
|
dataKey: d.dataKey,
|
|
56247
|
-
stroke: d.stroke
|
|
56250
|
+
stroke: d.stroke,
|
|
56251
|
+
strokeWidth: 3
|
|
56248
56252
|
},
|
|
56249
56253
|
f
|
|
56250
56254
|
))
|