prometeo-design-system 4.2.5 → 4.3.0
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/NotificationCard.es.js +12 -11
- package/dist/PyrionLayout.es.js +463 -450
- package/dist/Scrollable.es.js +298 -227
- package/dist/SelectSearch.es.js +41 -39
- package/dist/Toast.es.js +95 -51
- package/dist/components/PyrionNavigationDrawer/PyrionLayout.d.ts +3 -2
- package/dist/components/Scrollable/Scrollable.d.ts +10 -0
- package/dist/components/Toaster/Toaster.d.ts +13 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/src/styles/base.css +46 -0
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { j as e } from "./jsx-runtime-GkKLlHH4.js";
|
|
2
2
|
import { useCallback as h } from "react";
|
|
3
|
-
import { c as
|
|
3
|
+
import { c as o } from "./cn-B6yFEsav.js";
|
|
4
4
|
import b from "./Avatar.es.js";
|
|
5
5
|
import j from "./Button.es.js";
|
|
6
|
-
const z = ({ user:
|
|
6
|
+
const z = ({ user: m, body: s, date: a, actions: r, read: d, className: f, metadata: t, onClick: i }) => {
|
|
7
7
|
const c = typeof s == "function" ? s(t) : s, u = a instanceof Date ? `${a.toLocaleDateString("es-AR", { day: "2-digit", month: "2-digit", year: "numeric" })} a las ${a.toLocaleTimeString("es-AR", { hour: "2-digit", minute: "2-digit", hour12: !1 })}` : a, x = h(
|
|
8
8
|
() => {
|
|
9
9
|
i?.(t);
|
|
10
10
|
},
|
|
11
11
|
[i, t]
|
|
12
12
|
);
|
|
13
|
-
return /* @__PURE__ */ e.jsxs("article", { className:
|
|
14
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
13
|
+
return /* @__PURE__ */ e.jsxs("article", { className: o("flex flex-col gap-3 p-3 rounded-md bg-neutral-default-default ", f), onClick: x, children: [
|
|
14
|
+
/* @__PURE__ */ e.jsxs("div", { className: o("flex flex-col gap-2", i && "cursor-pointer"), children: [
|
|
15
15
|
/* @__PURE__ */ e.jsxs("div", { className: "flex gap-2 items-start w-full", children: [
|
|
16
16
|
/* @__PURE__ */ e.jsxs("div", { className: " relative min-w-max", children: [
|
|
17
|
-
!
|
|
17
|
+
!d && /* @__PURE__ */ e.jsx("div", { className: "size-3 border border-neutral-default bg-(--pyrion-orange-500) rounded-full absolute top-0 left-0 -translate-x-1/2 -translate-y-1/2 z-10" }),
|
|
18
18
|
/* @__PURE__ */ e.jsx(
|
|
19
19
|
b,
|
|
20
20
|
{
|
|
21
|
-
imageUrl:
|
|
22
|
-
fallbackText:
|
|
21
|
+
imageUrl: m.profile_picture,
|
|
22
|
+
fallbackText: m.name,
|
|
23
23
|
sizeFallback: "xs",
|
|
24
24
|
sizeImage: "xs"
|
|
25
25
|
}
|
|
@@ -29,7 +29,7 @@ const z = ({ user: o, body: s, date: a, actions: r, read: m, className: f, metad
|
|
|
29
29
|
] }),
|
|
30
30
|
/* @__PURE__ */ e.jsx("p", { className: "text-neutral-medium-default prometeo-fonts-body-xsmall text-right", children: u })
|
|
31
31
|
] }),
|
|
32
|
-
/* @__PURE__ */ e.jsx("div", { className: "flex gap-2 w-full", children: r?.map((l,
|
|
32
|
+
/* @__PURE__ */ e.jsx("div", { className: "flex gap-2 w-full", children: r?.map((l, n) => {
|
|
33
33
|
if (l.hidden)
|
|
34
34
|
return null;
|
|
35
35
|
const p = (g) => {
|
|
@@ -38,15 +38,16 @@ const z = ({ user: o, body: s, date: a, actions: r, read: m, className: f, metad
|
|
|
38
38
|
return /* @__PURE__ */ e.jsx(
|
|
39
39
|
j,
|
|
40
40
|
{
|
|
41
|
-
className:
|
|
41
|
+
className: o("flex-1 h-8", n === 0 && r.length > 1 && "order-2"),
|
|
42
42
|
animate: !1,
|
|
43
43
|
animateIcon: !1,
|
|
44
44
|
label: l.label,
|
|
45
45
|
onClick: p,
|
|
46
|
-
variant: l.variant || r.length > 1 ?
|
|
46
|
+
variant: l.variant || r.length > 1 ? n === 0 ? "fill" : "text" : "fill",
|
|
47
47
|
disabled: l.disabled,
|
|
48
48
|
size: "small"
|
|
49
|
-
}
|
|
49
|
+
},
|
|
50
|
+
l.label + n
|
|
50
51
|
);
|
|
51
52
|
}) })
|
|
52
53
|
] });
|