@opencxh/ui-kit 3.111.3 → 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 +18 -12
- 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
|
),
|
|
@@ -4202,9 +4208,9 @@ const bn = ({
|
|
|
4202
4208
|
),
|
|
4203
4209
|
children: [
|
|
4204
4210
|
/* @__PURE__ */ i("div", { className: "flex flex-row sm:items-start sm:justify-between items-center gap-4", children: [
|
|
4205
|
-
/* @__PURE__ */
|
|
4206
|
-
/* @__PURE__ */
|
|
4207
|
-
|
|
4211
|
+
/* @__PURE__ */ e("div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ i("div", { className: "flex items-start gap-2 text-text", children: [
|
|
4212
|
+
N && /* @__PURE__ */ e(ee, { variant: "secondary", onClick: N, leftIcon: /* @__PURE__ */ e(J, { icon: ze, size: "sm" }), iconOnly: !0 }),
|
|
4213
|
+
/* @__PURE__ */ i("div", { className: "min-w-0 flex-1", children: [
|
|
4208
4214
|
x ? /* @__PURE__ */ e(
|
|
4209
4215
|
"input",
|
|
4210
4216
|
{
|
|
@@ -4214,7 +4220,7 @@ const bn = ({
|
|
|
4214
4220
|
onChange: (M) => y(M.target.value),
|
|
4215
4221
|
onBlur: $,
|
|
4216
4222
|
onKeyDown: _,
|
|
4217
|
-
className: "text-1xl font-semibold bg-transparent border-b-1 border-border rounded-lg outline-none focus:border-none px-1 -mx-1 min-w-0
|
|
4223
|
+
className: "text-1xl font-semibold bg-transparent border-b-1 border-border rounded-lg outline-none focus:border-none px-1 -mx-1 min-w-0 w-full"
|
|
4218
4224
|
}
|
|
4219
4225
|
) : /* @__PURE__ */ i("div", { className: "group flex items-baseline gap-2.5 min-w-0", children: [
|
|
4220
4226
|
/* @__PURE__ */ e(
|
|
@@ -4238,10 +4244,10 @@ const bn = ({
|
|
|
4238
4244
|
className: "shrink-0 cursor-pointer text-text-muted opacity-0 group-hover:opacity-100 transition-opacity"
|
|
4239
4245
|
}
|
|
4240
4246
|
)
|
|
4241
|
-
] })
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
] }),
|
|
4247
|
+
] }),
|
|
4248
|
+
s && /* @__PURE__ */ e("div", { className: "mt-0.5 truncate text-xs text-text-muted", children: s })
|
|
4249
|
+
] })
|
|
4250
|
+
] }) }),
|
|
4245
4251
|
a.length > 0 && /* @__PURE__ */ e("div", { className: "flex flex-wrap sm:flex-nowrap gap-2 sm:gap-3", children: a.map(
|
|
4246
4252
|
(M) => M.render ? /* @__PURE__ */ e(le.Fragment, { children: M.render() }, M.id) : M.splitOptions && M.splitOptions.length > 0 ? /* @__PURE__ */ e(
|
|
4247
4253
|
je,
|