@opencxh/ui-kit 3.111.4 → 3.112.1
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/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +13 -5
- package/dist/index.js.map +1 -1
- package/dist/src/content/MessageBubble.d.ts +11 -5
- package/dist/src/feedback/Badge.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3437,7 +3437,9 @@ const ir = {
|
|
|
3437
3437
|
success: "bg-success-soft text-success-fg",
|
|
3438
3438
|
warning: "bg-warning-soft text-warning-fg",
|
|
3439
3439
|
error: "bg-danger-soft text-danger-fg",
|
|
3440
|
-
info: "bg-info-soft text-info-fg"
|
|
3440
|
+
info: "bg-info-soft text-info-fg",
|
|
3441
|
+
// Internal-note amber. Never for customer-visible content.
|
|
3442
|
+
note: "bg-note-soft text-note"
|
|
3441
3443
|
}, dr = {
|
|
3442
3444
|
sm: "px-2 py-0.5 text-xs",
|
|
3443
3445
|
md: "px-2.5 py-1 text-sm",
|
|
@@ -3449,7 +3451,8 @@ const ir = {
|
|
|
3449
3451
|
success: "bg-success",
|
|
3450
3452
|
warning: "bg-warning",
|
|
3451
3453
|
error: "bg-danger",
|
|
3452
|
-
info: "bg-info"
|
|
3454
|
+
info: "bg-info",
|
|
3455
|
+
note: "bg-note"
|
|
3453
3456
|
};
|
|
3454
3457
|
function tn({
|
|
3455
3458
|
variant: t = "default",
|
|
@@ -4138,10 +4141,15 @@ function hn({
|
|
|
4138
4141
|
"div",
|
|
4139
4142
|
{
|
|
4140
4143
|
className: d(
|
|
4141
|
-
|
|
4142
|
-
|
|
4144
|
+
// A bubble never spans the whole column; it narrows further from md,
|
|
4145
|
+
// where the thread itself is wide enough for the difference to matter.
|
|
4146
|
+
"min-w-0 max-w-bubble border md:max-w-bubble-md",
|
|
4147
|
+
n === "warning" && "border-warning-border",
|
|
4148
|
+
n === "note" && "border-note-border",
|
|
4149
|
+
n === "default" && "border-border",
|
|
4143
4150
|
// The tight corner points back at the sender.
|
|
4144
|
-
t === "out" ? "rounded-lg rounded-tr-sm
|
|
4151
|
+
t === "out" ? "rounded-lg rounded-tr-sm" : "rounded-lg rounded-tl-sm",
|
|
4152
|
+
n === "note" ? "bg-note-soft" : t === "out" ? "bg-bubble-out-soft" : "bg-surface",
|
|
4145
4153
|
r && "mt-1",
|
|
4146
4154
|
s
|
|
4147
4155
|
),
|