pxengine 0.1.39 → 0.1.41

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.mjs CHANGED
@@ -37594,14 +37594,21 @@ var MultiAgentUISelector = ({
37594
37594
  /* @__PURE__ */ jsx130("div", { className: "grid grid-cols-2 gap-1.5", children: comps.map((comp) => {
37595
37595
  const isSelected = selections[activeStageId]?.has(comp.name) || false;
37596
37596
  return /* @__PURE__ */ jsxs89(
37597
- "button",
37597
+ "div",
37598
37598
  {
37599
+ role: "button",
37600
+ tabIndex: 0,
37599
37601
  onClick: () => toggleComponent(activeStageId, comp.name),
37600
- disabled: submitted,
37602
+ onKeyDown: (e) => {
37603
+ if (e.key === "Enter" || e.key === " ") {
37604
+ e.preventDefault();
37605
+ toggleComponent(activeStageId, comp.name);
37606
+ }
37607
+ },
37601
37608
  className: cn(
37602
- "text-left p-2.5 rounded-lg border text-[11px] transition-all overflow-hidden",
37609
+ "text-left p-2.5 rounded-lg border text-[11px] transition-all overflow-hidden cursor-pointer",
37603
37610
  isSelected ? "border-interactive bg-interactive/5" : "border-[var(--border-color)] hover:border-interactive/50",
37604
- submitted && "opacity-60 cursor-default"
37611
+ submitted && "opacity-60 cursor-default pointer-events-none"
37605
37612
  ),
37606
37613
  children: [
37607
37614
  /* @__PURE__ */ jsxs89("div", { className: "flex items-center gap-1.5", children: [