prometeo-design-system 7.3.5 → 7.3.7

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.
Files changed (38) hide show
  1. package/dist/Avatar.es.js +36 -34
  2. package/dist/AvatarBase-D6H-sXbg.js +67 -0
  3. package/dist/Chat.es.js +51 -17
  4. package/dist/ChatCard-0GSfoMZZ.js +201 -0
  5. package/dist/ChatCard.es.js +2 -165
  6. package/dist/Chip.es.js +1 -1
  7. package/dist/ListItem.es.js +1 -1
  8. package/dist/SplitButton.d.ts +6 -0
  9. package/dist/SplitButton.es.js +187 -0
  10. package/dist/components/Avatar/AvatarAndSubavatar.d.ts +1 -1
  11. package/dist/components/Avatar/AvatarBase.d.ts +3 -1
  12. package/dist/components/Avatar/avatarTypes.d.ts +4 -0
  13. package/dist/components/Chat/Chat.d.ts +7 -7
  14. package/dist/components/Chat/Chat.types.d.ts +27 -0
  15. package/dist/components/Chat/ChatGroup.d.ts +4 -0
  16. package/dist/components/Chat/ChatViewport.d.ts +3 -0
  17. package/dist/components/Chat/chatBurst.types.d.ts +12 -0
  18. package/dist/components/Chat/groupMessagesBySender.d.ts +20 -0
  19. package/dist/components/Chat/injectDirection.d.ts +3 -0
  20. package/dist/components/Chat/useChatBursts.d.ts +6 -0
  21. package/dist/components/ChatCard/ChatCard.d.ts +6 -3
  22. package/dist/components/ChatCard/ChatCard.types.d.ts +5 -21
  23. package/dist/components/SplitButton/SplitButton.d.ts +28 -0
  24. package/dist/exports/Chat.d.ts +5 -1
  25. package/dist/exports/SplitButton.d.ts +3 -0
  26. package/dist/index.d.ts +9 -3
  27. package/dist/prometeo-design-system.es.js +151 -146
  28. package/dist/styles.css +1 -1
  29. package/package.json +5 -1
  30. package/src/styles/intellisense.css +42 -6
  31. package/src/styles/tokens.css +61 -13
  32. package/src/styles/utilities/background.css +36 -0
  33. package/src/styles/utilities/border.css +36 -0
  34. package/src/styles/utilities/icon.css +66 -12
  35. package/src/styles/utilities/text.css +42 -6
  36. package/src/styles/utilities.css +180 -18
  37. package/dist/AvatarBase-sKVPLn_O.js +0 -66
  38. package/dist/components/ChatCard/ChatCardContext.d.ts +0 -3
package/dist/Avatar.es.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { j as i } from "./jsx-runtime-GkKLlHH4.js";
2
2
  import { c as f } from "./index-BOQuZ0gG.js";
3
3
  import { memo as b, useState as x, useEffect as v } from "react";
4
- import { A as d } from "./AvatarBase-sKVPLn_O.js";
4
+ import { A as u } from "./AvatarBase-D6H-sXbg.js";
5
5
  const z = f(
6
6
  "bg-brand-secondary-default border-neutral-default-default border-1 rounded-full text-brand-secondary-default grid place-items-center overflow-hidden object-cover object-center absolute ",
7
7
  {
@@ -17,30 +17,31 @@ const z = f(
17
17
  }
18
18
  }
19
19
  ), A = ({
20
- subImageUrl: a,
21
- size: e = "medium",
22
- ...t
20
+ ref: a,
21
+ subImageUrl: e,
22
+ size: r = "medium",
23
+ ...s
23
24
  }) => {
24
- const [s, l] = x(!1);
25
+ const [o, l] = x(!1);
25
26
  return v(() => {
26
27
  l(!1);
27
- }, [a]), /* @__PURE__ */ i.jsxs("div", { className: "relative size-max", children: [
28
- /* @__PURE__ */ i.jsx(d, { ...t, size: e }),
29
- a && !s && /* @__PURE__ */ i.jsx(
28
+ }, [e]), /* @__PURE__ */ i.jsxs("div", { ref: a, className: "relative size-max", children: [
29
+ /* @__PURE__ */ i.jsx(u, { ...s, size: r }),
30
+ e && !o && /* @__PURE__ */ i.jsx(
30
31
  "img",
31
32
  {
32
- className: z({ size: e }),
33
- src: a,
33
+ className: z({ size: r }),
34
+ src: e,
34
35
  alt: "subimage",
35
36
  draggable: !1,
36
37
  onError: () => l(!0)
37
38
  }
38
39
  )
39
40
  ] });
40
- }, u = b(A);
41
- u.displayName = "AvatarAndSubavatar";
42
- const p = "[Pyrion Avatar]", c = /* @__PURE__ */ new Set(), r = (a, e) => {
43
- c.has(a) || (c.add(a), console.warn(`${p} ${e}`));
41
+ }, g = b(A);
42
+ g.displayName = "AvatarAndSubavatar";
43
+ const p = "[Pyrion Avatar]", d = /* @__PURE__ */ new Set(), t = (a, e) => {
44
+ d.has(a) || (d.add(a), console.warn(`${p} ${e}`));
44
45
  }, k = {
45
46
  xxxxs: "xsmall",
46
47
  xxxs: "small",
@@ -53,48 +54,48 @@ const p = "[Pyrion Avatar]", c = /* @__PURE__ */ new Set(), r = (a, e) => {
53
54
  }, y = (a) => {
54
55
  if (a.size) return a.size;
55
56
  if (a.sizeImage ?? a.sizeFallback) {
56
- a.sizeImage && r(
57
+ a.sizeImage && t(
57
58
  "sizeImage",
58
59
  'La prop "sizeImage" está deprecada. Usá "size" (AvatarSize) en su lugar.'
59
- ), a.sizeFallback && r(
60
+ ), a.sizeFallback && t(
60
61
  "sizeFallback",
61
62
  'La prop "sizeFallback" está deprecada. Usá "size" (AvatarSize) en su lugar.'
62
63
  );
63
- const t = a.sizeImage ?? a.sizeFallback;
64
- return k[t];
64
+ const r = a.sizeImage ?? a.sizeFallback;
65
+ return k[r];
65
66
  }
66
67
  return "medium";
67
68
  }, I = (a) => {
68
69
  if (a.name) return a.name;
69
70
  if (a.fallbackText)
70
- return r(
71
+ return t(
71
72
  "fallbackText",
72
73
  'La prop "fallbackText" está deprecada. Usá "name" en su lugar.'
73
74
  ), a.fallbackText;
74
75
  }, L = (a) => {
75
76
  const {
76
77
  sizeImage: e,
77
- sizeFallback: t,
78
+ sizeFallback: r,
78
79
  imageDiameter: s,
79
- fallbackText: l,
80
- subImageDiameter: g,
81
- subImageUrl: o,
82
- fallbackType: m,
80
+ fallbackText: o,
81
+ subImageDiameter: l,
82
+ subImageUrl: m,
83
+ fallbackType: c,
83
84
  ...n
84
85
  } = a;
85
- return o && r(
86
+ return m && t(
86
87
  "subImageUrl",
87
88
  'La prop "subImageUrl" en Avatar está deprecada. Usá el componente AvatarAndSubavatar en su lugar.'
88
- ), s !== void 0 && r(
89
+ ), s !== void 0 && t(
89
90
  "imageDiameter",
90
91
  'La prop "imageDiameter" ya no tiene efecto. Usá "size" (AvatarSize) en su lugar.'
91
- ), g !== void 0 && r(
92
+ ), l !== void 0 && t(
92
93
  "subImageDiameter",
93
94
  'La prop "subImageDiameter" ya no tiene efecto en el nuevo layout del subavatar.'
94
- ), m === "defaultAvatar" && r(
95
+ ), c === "defaultAvatar" && t(
95
96
  "fallbackType-defaultAvatar",
96
97
  'La prop "fallbackType=defaultAvatar" está deprecada. El avatar usa el icono por defecto cuando no hay imagen ni nombre.'
97
- ), a.isLoading && r(
98
+ ), a.isLoading && t(
98
99
  "isLoading",
99
100
  'La prop "isLoading" en Avatar está deprecada para futuras versiones; sigue soportada por retrocompatibilidad.'
100
101
  ), {
@@ -103,16 +104,17 @@ const p = "[Pyrion Avatar]", c = /* @__PURE__ */ new Set(), r = (a, e) => {
103
104
  name: I(a),
104
105
  className: n.className,
105
106
  isLoading: n.isLoading,
106
- fallbackType: m ?? "initials",
107
- subImageUrl: o
107
+ fallbackType: c ?? "initials",
108
+ subImageUrl: m,
109
+ ref: n.ref
108
110
  };
109
111
  };
110
112
  function E(a) {
111
- const e = L(a), { subImageUrl: t, ...s } = e;
112
- return t ? /* @__PURE__ */ i.jsx(u, { subImageUrl: t, ...s }) : /* @__PURE__ */ i.jsx(d, { ...s });
113
+ const e = L(a), { subImageUrl: r, ...s } = e;
114
+ return r ? /* @__PURE__ */ i.jsx(g, { subImageUrl: r, ...s }) : /* @__PURE__ */ i.jsx(u, { ...s });
113
115
  }
114
116
  export {
115
117
  E as AvatarAndSubavatar,
116
- d as AvatarBase,
118
+ u as AvatarBase,
117
119
  E as default
118
120
  };
@@ -0,0 +1,67 @@
1
+ import { j as e } from "./jsx-runtime-GkKLlHH4.js";
2
+ import { c as t } from "./cn-B6yFEsav.js";
3
+ import { c } from "./index-BOQuZ0gG.js";
4
+ import { useState as u, useEffect as g } from "react";
5
+ import b from "./Skeleton.es.js";
6
+ import { UserAvatar as h } from "./Icons/UserAvatar.es.js";
7
+ const o = c(
8
+ "bg-brand-secondary-default rounded-full text-brand-secondary-default grid place-items-center overflow-hidden object-cover object-center select-none",
9
+ {
10
+ variants: {
11
+ size: {
12
+ "2xlarge": "size-[128px]",
13
+ xlarge: "size-16",
14
+ large: "size-[42px]",
15
+ medium: "size-8",
16
+ small: "size-6",
17
+ xsmall: "size-4"
18
+ }
19
+ }
20
+ }
21
+ ), j = c("text-brand-secondary-default w-full text-center", {
22
+ variants: {
23
+ size: {
24
+ "2xlarge": "pyrion-fonts-headline-large text-[56px]",
25
+ xlarge: "pyrion-fonts-headline-medium",
26
+ large: "pyrion-fonts-headline-small",
27
+ medium: "pyrion-fonts-label-large",
28
+ small: "pyrion-fonts-label-medium",
29
+ xsmall: "pyrion-fonts-label-small text-[8px]"
30
+ }
31
+ }
32
+ }), v = (r) => r.trim().split(" ").map((a) => a.charAt(0)).join("").toUpperCase().slice(0, 2);
33
+ function I({
34
+ ref: r,
35
+ imageUrl: a,
36
+ size: s = "medium",
37
+ isLoading: m = !1,
38
+ className: l = "",
39
+ name: n,
40
+ fallbackType: d = "initials"
41
+ }) {
42
+ const [f, i] = u(!1);
43
+ if (g(() => {
44
+ i(!1);
45
+ }, [a]), m)
46
+ return /* @__PURE__ */ e.jsx("div", { ref: r, className: t("inline-flex", l), children: /* @__PURE__ */ e.jsx(
47
+ b,
48
+ {
49
+ shape: "circle",
50
+ className: t(o({ size: s }), "border-0")
51
+ }
52
+ ) });
53
+ const p = d === "initials" && n, x = !!a && !f;
54
+ return /* @__PURE__ */ e.jsx("div", { ref: r, className: t(o({ size: s }), l), children: x ? /* @__PURE__ */ e.jsx(
55
+ "img",
56
+ {
57
+ src: a,
58
+ alt: "avatar",
59
+ className: "w-full h-full object-cover",
60
+ draggable: !1,
61
+ onError: () => i(!0)
62
+ }
63
+ ) : p ? /* @__PURE__ */ e.jsx("p", { className: j({ size: s }), children: v(n) }) : /* @__PURE__ */ e.jsx(h, { className: "size-full rounded-full" }) });
64
+ }
65
+ export {
66
+ I as A
67
+ };
package/dist/Chat.es.js CHANGED
@@ -1,20 +1,54 @@
1
+ import { M as f } from "./ChatCard-0GSfoMZZ.js";
1
2
  import { j as a } from "./jsx-runtime-GkKLlHH4.js";
2
- import { memo as r, forwardRef as f } from "react";
3
- import { c as e } from "./cn-B6yFEsav.js";
4
- import i from "./CardBackground.es.js";
5
- const c = f(function({ cardBackground: s, children: t, className: o, ...l }, m) {
6
- return /* @__PURE__ */ a.jsxs("div", { className: e("relative w-full", o), ref: m, ...l, children: [
7
- s && /* @__PURE__ */ a.jsx(
8
- i,
9
- {
10
- ...s,
11
- className: e("absolute inset-0 z-0", s.className)
12
- }
13
- ),
14
- /* @__PURE__ */ a.jsx("div", { className: "relative z-10 flex flex-col w-full overflow-y-auto", children: t })
15
- ] });
16
- }), n = r(c);
17
- n.displayName = "Chat";
3
+ import { memo as d, forwardRef as l, useMemo as m } from "react";
4
+ import { c as i } from "./cn-B6yFEsav.js";
5
+ import c from "./CardBackground.es.js";
6
+ const p = l(
7
+ function({ cardBackground: s, children: n, className: r, ...t }, o) {
8
+ return /* @__PURE__ */ a.jsxs("div", { className: i("relative w-full", r), ref: o, ...t, children: [
9
+ s && /* @__PURE__ */ a.jsx(
10
+ c,
11
+ {
12
+ ...s,
13
+ className: i("absolute inset-0 z-0", s.className)
14
+ }
15
+ ),
16
+ /* @__PURE__ */ a.jsx("div", { className: "relative z-10 flex flex-col w-full overflow-y-auto", children: n })
17
+ ] });
18
+ }
19
+ ), u = d(p);
20
+ u.displayName = "Chat.Viewport";
21
+ const h = f;
22
+ h.Viewport = u;
23
+ function w(e) {
24
+ return `${e.senderId}-${e.firstMessage.id}`;
25
+ }
26
+ function C(e, s) {
27
+ if (e.length === 0) return [];
28
+ const n = s?.getBurstKey ?? w, r = [];
29
+ for (const t of e) {
30
+ const o = r[r.length - 1];
31
+ if (o && o.senderId === t.senderId) {
32
+ o.messages.push(t);
33
+ continue;
34
+ }
35
+ r.push({
36
+ key: n({ senderId: t.senderId, firstMessage: t }),
37
+ senderId: t.senderId,
38
+ messages: [t]
39
+ });
40
+ }
41
+ return r;
42
+ }
43
+ function V(e, s) {
44
+ return m(
45
+ () => C(e, s),
46
+ [e, s]
47
+ );
48
+ }
18
49
  export {
19
- n as default
50
+ u as ChatViewport,
51
+ h as default,
52
+ C as groupMessagesBySender,
53
+ V as useChatBursts
20
54
  };
@@ -0,0 +1,201 @@
1
+ import { j as n } from "./jsx-runtime-GkKLlHH4.js";
2
+ import { Children as C, isValidElement as h, cloneElement as j, memo as d, forwardRef as w } from "react";
3
+ import { c as l } from "./cn-B6yFEsav.js";
4
+ import { c as m } from "./index-BOQuZ0gG.js";
5
+ import b from "./Avatar.es.js";
6
+ import D from "./Link.es.js";
7
+ import S from "./CardBackground.es.js";
8
+ function k(t) {
9
+ if (typeof t != "function" && typeof t != "object") return;
10
+ const e = t;
11
+ return e.displayName ?? e.type?.displayName;
12
+ }
13
+ function z(t) {
14
+ const e = t.type;
15
+ return e === c || k(e) === "ChatCard";
16
+ }
17
+ function F(t, e) {
18
+ return C.map(t, (r) => !h(r) || !z(r) || r.props.direction ? r : j(r, {
19
+ direction: e
20
+ }));
21
+ }
22
+ const V = m("relative flex flex-col gap-1 justify-start", {
23
+ variants: {
24
+ direction: {
25
+ left: "items-start",
26
+ right: "items-end"
27
+ },
28
+ withAvatar: {
29
+ true: "",
30
+ false: ""
31
+ }
32
+ },
33
+ compoundVariants: [
34
+ { direction: "left", withAvatar: !0, class: "pl-12" },
35
+ { direction: "right", withAvatar: !0, class: "pr-12" }
36
+ ]
37
+ }), $ = m("flex gap-1", {
38
+ variants: {
39
+ direction: {
40
+ left: "flex-row",
41
+ right: "flex-row-reverse"
42
+ }
43
+ }
44
+ });
45
+ function A({
46
+ direction: t,
47
+ avatar: e,
48
+ link: r,
49
+ children: a,
50
+ className: s
51
+ }) {
52
+ const { ref: o, label: i, href: f, onClick: u } = r, g = f ? { href: f } : { onClick: u }, N = F(a, t);
53
+ return /* @__PURE__ */ n.jsxs(
54
+ "div",
55
+ {
56
+ className: l(
57
+ V({ direction: t, withAvatar: !0 }),
58
+ s
59
+ ),
60
+ children: [
61
+ /* @__PURE__ */ n.jsxs("div", { className: $({ direction: t }), children: [
62
+ /* @__PURE__ */ n.jsx("div", { className: "flex items-end shrink-0 self-end", children: /* @__PURE__ */ n.jsx(b, { ...e, size: e.size ?? "small" }) }),
63
+ /* @__PURE__ */ n.jsx("div", { className: "flex flex-col gap-2 flex-1 min-w-0", children: N })
64
+ ] }),
65
+ /* @__PURE__ */ n.jsx(
66
+ D,
67
+ {
68
+ ref: o,
69
+ color: "brand",
70
+ size: "medium",
71
+ withBackground: !1,
72
+ ...g,
73
+ children: i
74
+ }
75
+ )
76
+ ]
77
+ }
78
+ );
79
+ }
80
+ const x = d(A);
81
+ x.displayName = "Chat";
82
+ function E(t) {
83
+ if (!t) return;
84
+ if (typeof t == "string") return t;
85
+ const e = String(t.getDate()).padStart(2, "0"), r = String(t.getMonth() + 1).padStart(2, "0"), a = t.getFullYear(), s = String(t.getHours()).padStart(2, "0"), o = String(t.getMinutes()).padStart(2, "0");
86
+ return `${e}/${r}/${a}, ${s}:${o}`;
87
+ }
88
+ const T = m("relative overflow-hidden flex flex-col rounded-[var(--radius-large)]", {
89
+ variants: {
90
+ direction: {
91
+ left: "[&:last-child]:rounded-bl-none",
92
+ right: "[&:last-child]:rounded-br-none"
93
+ }
94
+ }
95
+ }), M = m("flex flex-col gap-3 relative z-10 p-3"), v = d(function({
96
+ children: e,
97
+ className: r,
98
+ ...a
99
+ }) {
100
+ return /* @__PURE__ */ n.jsx("div", { className: l("flex flex-col gap-3 ", r), ...a, children: e });
101
+ }), y = d(function({
102
+ children: e,
103
+ className: r,
104
+ ...a
105
+ }) {
106
+ return /* @__PURE__ */ n.jsx(
107
+ "p",
108
+ {
109
+ className: l(
110
+ "pyrion-fonts-body-medium text-neutral-primary-default",
111
+ r
112
+ ),
113
+ ...a,
114
+ children: e
115
+ }
116
+ );
117
+ }), p = d(function({
118
+ date: e,
119
+ leftSlot: r,
120
+ actions: a,
121
+ className: s,
122
+ ...o
123
+ }) {
124
+ const i = E(e);
125
+ return /* @__PURE__ */ n.jsxs(
126
+ "div",
127
+ {
128
+ className: l(
129
+ "flex items-center pl-3 pr-1 pb-1 relative z-10",
130
+ s
131
+ ),
132
+ ...o,
133
+ children: [
134
+ /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-1 flex-1 pyrion-fonts-body-small text-neutral-tertiary-default", children: [
135
+ r,
136
+ i && /* @__PURE__ */ n.jsx("span", { children: i })
137
+ ] }),
138
+ a && /* @__PURE__ */ n.jsx("div", { className: "shrink-0", children: a })
139
+ ]
140
+ }
141
+ );
142
+ });
143
+ function P(t) {
144
+ if (typeof t != "function" && typeof t != "object") return;
145
+ const e = t;
146
+ return e.displayName ?? e.type?.displayName;
147
+ }
148
+ function R(t) {
149
+ const e = t.type;
150
+ return e === p || P(e) === "ChatCard.Footer";
151
+ }
152
+ function G(t) {
153
+ const e = [], r = [];
154
+ return C.forEach(t, (a) => {
155
+ if (h(a) && R(a)) {
156
+ r.push(a);
157
+ return;
158
+ }
159
+ e.push(a);
160
+ }), { commentContent: e, footers: r };
161
+ }
162
+ const B = w(function({ cardBackground: e, children: r, className: a, direction: s = "left", ...o }, i) {
163
+ const { commentContent: f, footers: u } = G(r);
164
+ return /* @__PURE__ */ n.jsxs(
165
+ "div",
166
+ {
167
+ className: l(T({ direction: s }), a),
168
+ ref: i,
169
+ ...o,
170
+ children: [
171
+ /* @__PURE__ */ n.jsx(
172
+ S,
173
+ {
174
+ color: "neutral",
175
+ variant: "secondary",
176
+ ...e,
177
+ className: l("absolute inset-0 z-0", e?.className)
178
+ }
179
+ ),
180
+ /* @__PURE__ */ n.jsx("div", { className: M(), children: f }),
181
+ u
182
+ ]
183
+ }
184
+ );
185
+ });
186
+ function H(t) {
187
+ return /* @__PURE__ */ n.jsx(x, { ...t });
188
+ }
189
+ const c = d(B);
190
+ c.Content = v;
191
+ c.Text = y;
192
+ c.Footer = p;
193
+ c.Participant = H;
194
+ c.displayName = "ChatCard";
195
+ v.displayName = "ChatCard.Content";
196
+ y.displayName = "ChatCard.Text";
197
+ p.displayName = "ChatCard.Footer";
198
+ export {
199
+ c as C,
200
+ x as M
201
+ };
@@ -1,167 +1,4 @@
1
- import { j as r } from "./jsx-runtime-GkKLlHH4.js";
2
- import { useContext as p, createContext as C, memo as d, forwardRef as v, useMemo as g } from "react";
3
- import { c as l } from "./cn-B6yFEsav.js";
4
- import { c as m } from "./index-BOQuZ0gG.js";
5
- import j from "./Avatar.es.js";
6
- import y from "./CardBackground.es.js";
7
- import N from "./Link.es.js";
8
- const f = C(null);
9
- function w() {
10
- const t = p(f);
11
- if (!t)
12
- throw new Error("ChatCard must be used inside <ChatCard.Participant>");
13
- return t;
14
- }
15
- function b(t) {
16
- if (!t) return;
17
- if (typeof t == "string") return t;
18
- const a = String(t.getDate()).padStart(2, "0"), e = String(t.getMonth() + 1).padStart(2, "0"), n = t.getFullYear(), s = String(t.getHours()).padStart(2, "0"), i = String(t.getMinutes()).padStart(2, "0");
19
- return `${a}/${e}/${n}, ${s}:${i}`;
20
- }
21
- const S = m("relative flex flex-col gap-1 justify-start", {
22
- variants: {
23
- direction: {
24
- left: "items-start",
25
- right: "items-end"
26
- },
27
- withAvatar: {
28
- true: "",
29
- false: ""
30
- }
31
- },
32
- compoundVariants: [
33
- { direction: "left", withAvatar: !0, class: "pl-12" },
34
- { direction: "right", withAvatar: !0, class: "pr-12" }
35
- ]
36
- }), P = m("flex gap-1", {
37
- variants: {
38
- direction: {
39
- left: "flex-row",
40
- right: "flex-row-reverse"
41
- }
42
- }
43
- }), z = m("relative overflow-hidden flex flex-col rounded-[var(--radius-large)]", {
44
- variants: {
45
- direction: {
46
- left: "[&:last-child]:rounded-bl-none",
47
- right: "[&:last-child]:rounded-br-none"
48
- }
49
- }
50
- }), V = m("flex flex-col gap-1 relative z-10 px-3 pt-3"), h = d(function({
51
- children: a,
52
- className: e,
53
- ...n
54
- }) {
55
- return /* @__PURE__ */ r.jsx("div", { className: l("flex flex-col gap-2", e), ...n, children: a });
56
- }), x = d(function({
57
- children: a,
58
- className: e,
59
- ...n
60
- }) {
61
- return /* @__PURE__ */ r.jsx(
62
- "p",
63
- {
64
- className: l(
65
- "pyrion-fonts-body-medium text-neutral-primary-default",
66
- e
67
- ),
68
- ...n,
69
- children: a
70
- }
71
- );
72
- }), u = d(function({
73
- date: a,
74
- leftSlot: e,
75
- actions: n,
76
- className: s,
77
- ...i
78
- }) {
79
- const o = b(a);
80
- return /* @__PURE__ */ r.jsxs(
81
- "div",
82
- {
83
- className: l(
84
- "flex items-center pl-3 pr-1 pb-1 relative z-10 min-h-[28px]",
85
- s
86
- ),
87
- ...i,
88
- children: [
89
- /* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-1 flex-1 pyrion-fonts-body-small text-neutral-tertiary-default", children: [
90
- e,
91
- o && /* @__PURE__ */ r.jsx("span", { children: o })
92
- ] }),
93
- n && /* @__PURE__ */ r.jsx("div", { className: "shrink-0", children: n })
94
- ]
95
- }
96
- );
97
- }), A = v(function({ cardBackground: a, children: e, className: n, ...s }, i) {
98
- const { direction: o } = w();
99
- return /* @__PURE__ */ r.jsxs(
100
- "div",
101
- {
102
- className: l(z({ direction: o }), n),
103
- ref: i,
104
- ...s,
105
- children: [
106
- /* @__PURE__ */ r.jsx(
107
- y,
108
- {
109
- color: "neutral",
110
- variant: "secondary",
111
- ...a,
112
- className: l("absolute inset-0 z-0", a?.className)
113
- }
114
- ),
115
- /* @__PURE__ */ r.jsx("div", { className: V(), children: e })
116
- ]
117
- }
118
- );
119
- }), c = d(A);
120
- function F({
121
- direction: t,
122
- avatar: a,
123
- link: e,
124
- children: n,
125
- className: s
126
- }) {
127
- const i = g(
128
- () => ({ direction: t, avatar: a, link: e }),
129
- [t, a, e]
130
- ), o = e.href ? { href: e.href } : { onClick: e.onClick };
131
- return /* @__PURE__ */ r.jsx(f.Provider, { value: i, children: /* @__PURE__ */ r.jsxs(
132
- "div",
133
- {
134
- className: l(
135
- S({ direction: t, withAvatar: !0 }),
136
- s
137
- ),
138
- children: [
139
- /* @__PURE__ */ r.jsxs("div", { className: P({ direction: t }), children: [
140
- /* @__PURE__ */ r.jsx("div", { className: "flex items-end shrink-0 self-end", children: /* @__PURE__ */ r.jsx(j, { ...a, size: a.size ?? "small" }) }),
141
- /* @__PURE__ */ r.jsx("div", { className: "flex flex-col gap-2 flex-1 min-w-0", children: n })
142
- ] }),
143
- /* @__PURE__ */ r.jsx(
144
- N,
145
- {
146
- color: "brand",
147
- size: "medium",
148
- withBackground: !1,
149
- ...o,
150
- children: e.label
151
- }
152
- )
153
- ]
154
- }
155
- ) });
156
- }
157
- c.Content = h;
158
- c.Text = x;
159
- c.Footer = u;
160
- c.Participant = F;
161
- c.displayName = "ChatCard";
162
- h.displayName = "ChatCard.Content";
163
- x.displayName = "ChatCard.Text";
164
- u.displayName = "ChatCard.Footer";
1
+ import { C as f } from "./ChatCard-0GSfoMZZ.js";
165
2
  export {
166
- c as default
3
+ f as default
167
4
  };
package/dist/Chip.es.js CHANGED
@@ -4,7 +4,7 @@ import { c as h } from "./index-BOQuZ0gG.js";
4
4
  import { c as v } from "./cn-B6yFEsav.js";
5
5
  import { i as V } from "./iconUtils-rTOfKDxE.js";
6
6
  import { Close as K } from "./Icons/Close.es.js";
7
- import { A as q } from "./AvatarBase-sKVPLn_O.js";
7
+ import { A as q } from "./AvatarBase-D6H-sXbg.js";
8
8
  const Q = {
9
9
  small: "h-5 px-2 text-xs prometeo-fonts-body-small",
10
10
  medium: "h-8 px-3 text-sm prometeo-fonts-body-medium",
@@ -6,7 +6,7 @@ import { memo as p, forwardRef as S, useMemo as g } from "react";
6
6
  import { c as u } from "./index-BOQuZ0gG.js";
7
7
  import R from "./Divider.es.js";
8
8
  import { ChevronDown as B } from "./Icons/ChevronDown.es.js";
9
- import { A as O } from "./AvatarBase-sKVPLn_O.js";
9
+ import { A as O } from "./AvatarBase-D6H-sXbg.js";
10
10
  const _ = {
11
11
  size: "small",
12
12
  name: "A B"
@@ -0,0 +1,6 @@
1
+ export * from './exports/SplitButton'
2
+ export {}
3
+ import PrometeoDesignSystem from './exports/SplitButton'
4
+ export default PrometeoDesignSystem
5
+ export * from './exports/SplitButton'
6
+ export {}