@canaia/ui-kit 0.0.10-alpha.47 → 0.0.10-alpha.48
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/canaia-ui-kit.es.js +77 -50
- package/dist/canaia-ui-kit.umd.js +19 -19
- package/package.json +1 -1
package/dist/canaia-ui-kit.es.js
CHANGED
|
@@ -26897,62 +26897,89 @@ function LR(e) {
|
|
|
26897
26897
|
}
|
|
26898
26898
|
const dD = ({ items: e, colorIcon: t, onClickPinned: n, onClickConversation: r }) => {
|
|
26899
26899
|
const [o, i] = Re(
|
|
26900
|
-
() => e.map((s) => Array.isArray(s.content) ? s.content.map(() =>
|
|
26901
|
-
), a = (s, c, u
|
|
26902
|
-
i((
|
|
26903
|
-
const p = [...f], h =
|
|
26904
|
-
return
|
|
26905
|
-
}), n
|
|
26900
|
+
() => e.map((s) => Array.isArray(s.content) ? s.content.map((c) => c.is_pinned) : [])
|
|
26901
|
+
), a = (s, c, u) => {
|
|
26902
|
+
if (i((l) => {
|
|
26903
|
+
const f = [...l], p = [...f[s]], h = !p[c];
|
|
26904
|
+
return p[c] = h, f[s] = p, f;
|
|
26905
|
+
}), n) {
|
|
26906
|
+
const l = !o[s][c];
|
|
26907
|
+
n(u, l);
|
|
26908
|
+
}
|
|
26906
26909
|
};
|
|
26907
|
-
return /* @__PURE__ */ d.jsx(yr, { borderRadius: "1px", width: "100%", padding: ".5rem", children: /* @__PURE__ */ d.jsx(N2, { defaultIndex: [0], allowMultiple: !0, width: "100%", children: e.map((s, c) => /* @__PURE__ */ d.jsxs(
|
|
26908
|
-
|
|
26909
|
-
|
|
26910
|
-
|
|
26911
|
-
|
|
26912
|
-
|
|
26913
|
-
|
|
26914
|
-
|
|
26915
|
-
|
|
26916
|
-
|
|
26917
|
-
|
|
26918
|
-
fontSize: "16px",
|
|
26919
|
-
fontWeight: 400,
|
|
26920
|
-
margin: ".5rem",
|
|
26921
|
-
justifyContent: "space-between",
|
|
26922
|
-
width: "95%",
|
|
26923
|
-
position: "relative",
|
|
26924
|
-
_hover: {
|
|
26925
|
-
".pin-icon": o[c][l] ? {} : {
|
|
26926
|
-
visibility: "visible",
|
|
26927
|
-
opacity: 1
|
|
26928
|
-
}
|
|
26929
|
-
},
|
|
26930
|
-
children: [
|
|
26931
|
-
u,
|
|
26932
|
-
t && /* @__PURE__ */ d.jsx(
|
|
26910
|
+
return /* @__PURE__ */ d.jsx(yr, { borderRadius: "1px", width: "100%", padding: ".5rem", children: /* @__PURE__ */ d.jsx(N2, { defaultIndex: [0], allowMultiple: !0, width: "100%", children: e.map((s, c) => /* @__PURE__ */ d.jsxs(
|
|
26911
|
+
H2,
|
|
26912
|
+
{
|
|
26913
|
+
border: "none",
|
|
26914
|
+
onClick: () => {
|
|
26915
|
+
r && r(c);
|
|
26916
|
+
},
|
|
26917
|
+
cursor: "pointer",
|
|
26918
|
+
children: [
|
|
26919
|
+
/* @__PURE__ */ d.jsx("h2", { children: /* @__PURE__ */ d.jsxs(V2, { children: [
|
|
26920
|
+
/* @__PURE__ */ d.jsx(
|
|
26933
26921
|
nt,
|
|
26934
26922
|
{
|
|
26935
|
-
|
|
26936
|
-
|
|
26937
|
-
|
|
26938
|
-
|
|
26939
|
-
|
|
26940
|
-
|
|
26941
|
-
children:
|
|
26942
|
-
|
|
26923
|
+
as: "span",
|
|
26924
|
+
flex: "1",
|
|
26925
|
+
textAlign: "left",
|
|
26926
|
+
fontSize: "1rem",
|
|
26927
|
+
lineHeight: "1.5rem",
|
|
26928
|
+
fontWeight: 700,
|
|
26929
|
+
children: s.title
|
|
26930
|
+
}
|
|
26931
|
+
),
|
|
26932
|
+
/* @__PURE__ */ d.jsx(W2, { boxSize: 4 })
|
|
26933
|
+
] }) }),
|
|
26934
|
+
/* @__PURE__ */ d.jsx(q2, { pb: 4, textAlign: "left", children: Array.isArray(s.content) ? /* @__PURE__ */ d.jsx($c, { children: s.content.map((u, l) => /* @__PURE__ */ d.jsxs(
|
|
26935
|
+
U3,
|
|
26936
|
+
{
|
|
26937
|
+
display: "flex",
|
|
26938
|
+
alignItems: "center",
|
|
26939
|
+
fontFamily: "Lato",
|
|
26940
|
+
fontSize: "16px",
|
|
26941
|
+
fontWeight: 400,
|
|
26942
|
+
margin: ".5rem",
|
|
26943
|
+
justifyContent: "space-between",
|
|
26944
|
+
width: "95%",
|
|
26945
|
+
position: "relative",
|
|
26946
|
+
_hover: {
|
|
26947
|
+
".pin-icon": o[c][l] ? {} : { visibility: "visible", opacity: 1 }
|
|
26948
|
+
},
|
|
26949
|
+
children: [
|
|
26950
|
+
u.title,
|
|
26951
|
+
t && /* @__PURE__ */ d.jsx(
|
|
26952
|
+
nt,
|
|
26943
26953
|
{
|
|
26944
|
-
|
|
26945
|
-
|
|
26946
|
-
|
|
26954
|
+
className: "pin-icon",
|
|
26955
|
+
cursor: "pointer",
|
|
26956
|
+
visibility: o[c][l] ? "visible" : "hidden",
|
|
26957
|
+
opacity: o[c][l] ? 1 : 0,
|
|
26958
|
+
transition: "opacity 0.2s ease, visibility 0.2s ease",
|
|
26959
|
+
onClick: (f) => {
|
|
26960
|
+
f.stopPropagation(), a(c, l, u.id);
|
|
26961
|
+
},
|
|
26962
|
+
children: /* @__PURE__ */ d.jsx(
|
|
26963
|
+
q3,
|
|
26964
|
+
{
|
|
26965
|
+
as: o[c][l] ? LR : zR,
|
|
26966
|
+
color: t,
|
|
26967
|
+
boxSize: 4
|
|
26968
|
+
}
|
|
26969
|
+
)
|
|
26947
26970
|
}
|
|
26948
26971
|
)
|
|
26949
|
-
|
|
26950
|
-
|
|
26951
|
-
|
|
26952
|
-
|
|
26953
|
-
|
|
26954
|
-
|
|
26955
|
-
|
|
26972
|
+
]
|
|
26973
|
+
},
|
|
26974
|
+
u.id
|
|
26975
|
+
)) }) : (
|
|
26976
|
+
// Caso en que no sea un array
|
|
26977
|
+
s.content
|
|
26978
|
+
) })
|
|
26979
|
+
]
|
|
26980
|
+
},
|
|
26981
|
+
c
|
|
26982
|
+
)) }) });
|
|
26956
26983
|
}, fD = ({ items: e, navigation: t }) => {
|
|
26957
26984
|
const n = (r, o) => {
|
|
26958
26985
|
o.startsWith("/") ? (r.preventDefault(), t(o)) : window.open(o, "_blank");
|