@opencxh/ui-kit 3.111.4 → 3.112.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/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +10 -4
- package/dist/index.js.map +1 -1
- package/dist/src/content/MessageBubble.d.ts +5 -2
- 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",
|
|
@@ -4139,9 +4142,12 @@ function hn({
|
|
|
4139
4142
|
{
|
|
4140
4143
|
className: d(
|
|
4141
4144
|
"min-w-0 border",
|
|
4142
|
-
n === "warning"
|
|
4145
|
+
n === "warning" && "border-warning-border",
|
|
4146
|
+
n === "note" && "border-note-border",
|
|
4147
|
+
n === "default" && "border-border",
|
|
4143
4148
|
// The tight corner points back at the sender.
|
|
4144
|
-
t === "out" ? "rounded-lg rounded-tr-sm
|
|
4149
|
+
t === "out" ? "rounded-lg rounded-tr-sm" : "rounded-lg rounded-tl-sm",
|
|
4150
|
+
n === "note" ? "bg-note-soft" : t === "out" ? "bg-bubble-out-soft" : "bg-surface",
|
|
4145
4151
|
r && "mt-1",
|
|
4146
4152
|
s
|
|
4147
4153
|
),
|