@underverse-ui/underverse 0.1.22 → 0.1.23
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 +11 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -5441,14 +5441,23 @@ var MultiCombobox = ({
|
|
|
5441
5441
|
return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("span", { className: "inline-flex items-center gap-1 bg-accent text-accent-foreground rounded px-2 py-1 text-xs", children: [
|
|
5442
5442
|
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "truncate max-w-[120px]", children: option ? displayFormat(option) : itemValue }),
|
|
5443
5443
|
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
5444
|
-
"
|
|
5444
|
+
"div",
|
|
5445
5445
|
{
|
|
5446
|
-
|
|
5446
|
+
role: "button",
|
|
5447
|
+
tabIndex: 0,
|
|
5448
|
+
"aria-label": `Remove ${option ? option.label : itemValue}`,
|
|
5447
5449
|
onClick: (e) => {
|
|
5448
5450
|
e.preventDefault();
|
|
5449
5451
|
e.stopPropagation();
|
|
5450
5452
|
handleRemove(itemValue);
|
|
5451
5453
|
},
|
|
5454
|
+
onKeyDown: (e) => {
|
|
5455
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
5456
|
+
e.preventDefault();
|
|
5457
|
+
e.stopPropagation();
|
|
5458
|
+
handleRemove(itemValue);
|
|
5459
|
+
}
|
|
5460
|
+
},
|
|
5452
5461
|
className: "hover:text-destructive transition-colors cursor-pointer",
|
|
5453
5462
|
children: "\xD7"
|
|
5454
5463
|
}
|