@scriptonita/chess-football-ui 0.4.1 → 0.4.2

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.js CHANGED
@@ -65,14 +65,14 @@ function GamePiece({ piece, isSelected, hasBall, onClick }) {
65
65
  onClick,
66
66
  style,
67
67
  className: cn(
68
- "relative w-[88%] h-[88%] flex items-center justify-center rounded-full cursor-pointer z-10 transition-transform",
68
+ "relative w-[88%] h-[88%] flex items-center justify-center rounded-full cursor-pointer z-10 transition-transform motion-reduce:transition-none",
69
69
  isSelected && "ring-4 ring-primary scale-110 z-30",
70
70
  piece.hasMovedThisTurn && "opacity-70"
71
71
  ),
72
72
  children: [
73
73
  /* @__PURE__ */ jsx(PieceIcon, { type: piece.type, side: piece.side }),
74
74
  hasBall && /* @__PURE__ */ jsx("div", { className: "absolute inset-0 rounded-full ring-2 ring-orange-400 pointer-events-none" }),
75
- isSelected && /* @__PURE__ */ jsx("div", { className: "absolute inset-0 rounded-full animate-pulse ring-2 ring-yellow-400 ring-offset-2 ring-offset-transparent" })
75
+ isSelected && /* @__PURE__ */ jsx("div", { className: "absolute inset-0 rounded-full animate-pulse motion-reduce:animate-none ring-2 ring-yellow-400 ring-offset-2 ring-offset-transparent" })
76
76
  ]
77
77
  }
78
78
  );
@@ -693,7 +693,7 @@ function PlayerInfo({ name, team, avatarUrl, isActive, actionPoints, maxActionPo
693
693
  ), children: name }),
694
694
  /* @__PURE__ */ jsxs("div", { className: cn("flex items-center gap-1", align === "right" && "flex-row-reverse"), children: [
695
695
  /* @__PURE__ */ jsx("span", { className: "font-mono text-[10px] text-fg-muted uppercase", children: team }),
696
- isActive && /* @__PURE__ */ jsx("span", { className: "w-1.5 h-1.5 rounded-full bg-accent-green animate-pulse", "aria-hidden": "true" })
696
+ isActive && /* @__PURE__ */ jsx("span", { className: "w-1.5 h-1.5 rounded-full bg-accent-green animate-pulse motion-reduce:animate-none", "aria-hidden": "true" })
697
697
  ] }),
698
698
  /* @__PURE__ */ jsx(
699
699
  ActionPoints,
@@ -1314,7 +1314,7 @@ function HistoryChip({ lastMove, onClick, className }) {
1314
1314
  "bg-bg-surface border border-border-subtle",
1315
1315
  "font-mono text-[11px] text-fg-secondary",
1316
1316
  "hover:text-fg-primary hover:bg-bg-surface-elevated active:scale-95",
1317
- "transition-all duration-150",
1317
+ "transition-all duration-150 motion-reduce:transition-none",
1318
1318
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-green",
1319
1319
  className
1320
1320
  ),