prometeo-design-system 8.2.2 → 8.2.4
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/Chat.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { j as n } from "./jsx-runtime-GkKLlHH4.js";
|
|
2
|
-
import { memo as d, forwardRef as j, Children as C, isValidElement as h, cloneElement as
|
|
2
|
+
import { memo as d, forwardRef as j, Children as C, isValidElement as h, cloneElement as w } from "react";
|
|
3
3
|
import { c as l } from "./cn-B6yFEsav.js";
|
|
4
4
|
import { c as m } from "./index-BOQuZ0gG.js";
|
|
5
|
-
import { AvatarAndSubavatar as
|
|
5
|
+
import { AvatarAndSubavatar as b } from "./Avatar.es.js";
|
|
6
6
|
import S from "./Link.es.js";
|
|
7
7
|
import D from "./CardBackground.es.js";
|
|
8
8
|
function k(t) {
|
|
@@ -131,7 +131,7 @@ function P(t) {
|
|
|
131
131
|
return e === c || M(e) === "ChatCard";
|
|
132
132
|
}
|
|
133
133
|
function R(t, e) {
|
|
134
|
-
return C.map(t, (r) => !h(r) || !P(r) || r.props.direction ? r :
|
|
134
|
+
return C.map(t, (r) => !h(r) || !P(r) || r.props.direction ? r : w(r, {
|
|
135
135
|
direction: e
|
|
136
136
|
}));
|
|
137
137
|
}
|
|
@@ -150,7 +150,7 @@ const G = m("relative flex flex-col gap-1 justify-start", {
|
|
|
150
150
|
{ direction: "left", withAvatar: !0, class: "pl-12" },
|
|
151
151
|
{ direction: "right", withAvatar: !0, class: "pr-12" }
|
|
152
152
|
]
|
|
153
|
-
}), B = m("flex gap-1", {
|
|
153
|
+
}), B = m("flex gap-1 min-w-0 max-w-full", {
|
|
154
154
|
variants: {
|
|
155
155
|
direction: {
|
|
156
156
|
left: "flex-row",
|
|
@@ -175,7 +175,7 @@ function H({
|
|
|
175
175
|
),
|
|
176
176
|
children: [
|
|
177
177
|
/* @__PURE__ */ n.jsxs("div", { className: B({ direction: t }), children: [
|
|
178
|
-
/* @__PURE__ */ n.jsx("div", { className: "flex items-end shrink-0 self-end", children: /* @__PURE__ */ n.jsx(
|
|
178
|
+
/* @__PURE__ */ n.jsx("div", { className: "flex items-end shrink-0 self-end", children: /* @__PURE__ */ n.jsx(b, { ...e, size: e.size ?? "small" }) }),
|
|
179
179
|
/* @__PURE__ */ n.jsx("div", { className: "flex flex-col gap-2 flex-1 min-w-0", children: N })
|
|
180
180
|
] }),
|
|
181
181
|
/* @__PURE__ */ n.jsx(
|
package/dist/ChatCard.es.js
CHANGED
package/dist/Chip.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { j as o } from "./jsx-runtime-GkKLlHH4.js";
|
|
2
|
-
import { memo as
|
|
2
|
+
import { memo as x, forwardRef as K, useMemo as N, useCallback as v } from "react";
|
|
3
3
|
import { c as m } from "./index-BOQuZ0gG.js";
|
|
4
4
|
import { c as h } from "./cn-B6yFEsav.js";
|
|
5
5
|
import { i as V } from "./iconUtils-rTOfKDxE.js";
|
|
@@ -33,7 +33,7 @@ function re(e) {
|
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
35
|
const te = m(
|
|
36
|
-
"group/chip flex items-center gap-1 p-2 w-max h-8 radius-medium border transition-all duration-300 ease-in-out",
|
|
36
|
+
"group/chip flex items-center gap-1 p-2 w-max max-w-full h-8 radius-medium border transition-all duration-300 ease-in-out",
|
|
37
37
|
{
|
|
38
38
|
variants: {
|
|
39
39
|
isSelected: {
|
|
@@ -372,13 +372,13 @@ function le(e) {
|
|
|
372
372
|
[e.isSelected, e.disabled, e.forcedStatus]
|
|
373
373
|
);
|
|
374
374
|
}
|
|
375
|
-
const D =
|
|
375
|
+
const D = x(function({
|
|
376
376
|
icon: a,
|
|
377
377
|
className: s,
|
|
378
378
|
size: i = 16
|
|
379
379
|
}) {
|
|
380
380
|
return /* @__PURE__ */ o.jsx(a, { size: i, className: s });
|
|
381
|
-
}), ce =
|
|
381
|
+
}), ce = x(function({
|
|
382
382
|
avatar: a,
|
|
383
383
|
className: s
|
|
384
384
|
}) {
|
|
@@ -387,14 +387,14 @@ const D = C(function({
|
|
|
387
387
|
function ue(e, a) {
|
|
388
388
|
return e.label === a.label && e.isSelected === a.isSelected && e.disabled === a.disabled && e.forcedStatus === a.forcedStatus && e.layout === a.layout && e.variant === a.variant && e.semanticVariant === a.semanticVariant && e.className === a.className && e.onRemove === a.onRemove && e.id === a.id && e.size === a.size && e.tabIndex === a.tabIndex && e.leadingIcon === a.leadingIcon && e.leadingSlot === a.leadingSlot && e.trailingIcon === a.trailingIcon && e.onClick === a.onClick && e.onTrailingIconClick === a.onTrailingIconClick && e.avatar?.imageUrl === a.avatar?.imageUrl && e.avatar?.name === a.avatar?.name;
|
|
389
389
|
}
|
|
390
|
-
const be =
|
|
390
|
+
const be = x(
|
|
391
391
|
K(function({
|
|
392
392
|
isSelected: a = !1,
|
|
393
393
|
label: s,
|
|
394
394
|
labelClassName: i,
|
|
395
395
|
leadingIcon: f,
|
|
396
396
|
leadingSlot: P,
|
|
397
|
-
trailingIcon:
|
|
397
|
+
trailingIcon: C,
|
|
398
398
|
forcedStatus: j,
|
|
399
399
|
onTrailingIconClick: p,
|
|
400
400
|
onClick: l,
|
|
@@ -409,7 +409,7 @@ const be = C(
|
|
|
409
409
|
tabIndex: y,
|
|
410
410
|
className: T,
|
|
411
411
|
...z
|
|
412
|
-
},
|
|
412
|
+
}, w) {
|
|
413
413
|
const t = N(
|
|
414
414
|
() => re({
|
|
415
415
|
layout: A,
|
|
@@ -420,7 +420,7 @@ const be = C(
|
|
|
420
420
|
size: _
|
|
421
421
|
}),
|
|
422
422
|
[A, L, I, c, u, _]
|
|
423
|
-
),
|
|
423
|
+
), M = ie(a, r, j), b = le(M), E = V(f) ? f : null, S = V(C) ? C : t.useLegacyRemoveHandler ? q : null, Y = N(
|
|
424
424
|
() => ({ ...ne, ...c }),
|
|
425
425
|
[c?.imageUrl, c?.name]
|
|
426
426
|
), n = !r && !!l, R = t.layout === "avatar", k = y !== void 0 ? y : n ? 0 : void 0, G = v(
|
|
@@ -448,7 +448,7 @@ const be = C(
|
|
|
448
448
|
"div",
|
|
449
449
|
{
|
|
450
450
|
...z,
|
|
451
|
-
ref:
|
|
451
|
+
ref: w,
|
|
452
452
|
className: h(
|
|
453
453
|
b.container,
|
|
454
454
|
!t.legacySizeClass && "h-8",
|
package/dist/Header.es.js
CHANGED
|
@@ -4,7 +4,7 @@ import { memo as x } from "react";
|
|
|
4
4
|
import { c as i } from "./index-BOQuZ0gG.js";
|
|
5
5
|
import { S as h } from "./Skeleton-B0cQzX3_.js";
|
|
6
6
|
import { resolveSkeletonTextLength as d } from "./Skeleton.es.js";
|
|
7
|
-
const A = i("grid bg-neutral-default-default overflow-hidden", {
|
|
7
|
+
const A = i("grid shrink-0 bg-neutral-default-default overflow-hidden", {
|
|
8
8
|
variants: {
|
|
9
9
|
hasMainActionSlot: {
|
|
10
10
|
true: "",
|
|
@@ -20,7 +20,7 @@ import { default as ut, default as dt } from "./Breadcrumbs.es.js";
|
|
|
20
20
|
import { Calendar as ft } from "./Calendar.es.js";
|
|
21
21
|
import { Card as pt, CardContent as ht, CardFooter as xt, CardHeader as bt } from "./Card.es.js";
|
|
22
22
|
import { default as vt, ChatViewport as Ct, groupMessagesBySender as yt, useChatBursts as wt } from "./Chat.es.js";
|
|
23
|
-
import { C as Tt } from "./ChatCard-
|
|
23
|
+
import { C as Tt } from "./ChatCard-O3S0nzbH.js";
|
|
24
24
|
import { default as It } from "./Chip.es.js";
|
|
25
25
|
import { CodeInput as At, CodeInput as Dt } from "./CodeInput.es.js";
|
|
26
26
|
import { default as Rt } from "./ColorPicker.es.js";
|