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.cjs CHANGED
@@ -37874,14 +37874,21 @@ var MultiAgentUISelector = ({
37874
37874
  /* @__PURE__ */ (0, import_jsx_runtime130.jsx)("div", { className: "grid grid-cols-2 gap-1.5", children: comps.map((comp) => {
37875
37875
  const isSelected = selections[activeStageId]?.has(comp.name) || false;
37876
37876
  return /* @__PURE__ */ (0, import_jsx_runtime130.jsxs)(
37877
- "button",
37877
+ "div",
37878
37878
  {
37879
+ role: "button",
37880
+ tabIndex: 0,
37879
37881
  onClick: () => toggleComponent(activeStageId, comp.name),
37880
- disabled: submitted,
37882
+ onKeyDown: (e) => {
37883
+ if (e.key === "Enter" || e.key === " ") {
37884
+ e.preventDefault();
37885
+ toggleComponent(activeStageId, comp.name);
37886
+ }
37887
+ },
37881
37888
  className: cn(
37882
- "text-left p-2.5 rounded-lg border text-[11px] transition-all overflow-hidden",
37889
+ "text-left p-2.5 rounded-lg border text-[11px] transition-all overflow-hidden cursor-pointer",
37883
37890
  isSelected ? "border-interactive bg-interactive/5" : "border-[var(--border-color)] hover:border-interactive/50",
37884
- submitted && "opacity-60 cursor-default"
37891
+ submitted && "opacity-60 cursor-default pointer-events-none"
37885
37892
  ),
37886
37893
  children: [
37887
37894
  /* @__PURE__ */ (0, import_jsx_runtime130.jsxs)("div", { className: "flex items-center gap-1.5", children: [