@scriptonita/chess-football-ui 0.1.1 → 0.2.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.d.cts CHANGED
@@ -76,6 +76,31 @@ declare function MoveHistory({ scrollable, limit, className }: MoveHistoryProps)
76
76
 
77
77
  declare function StaticGameBoard(): react.JSX.Element;
78
78
 
79
+ interface TurnBannerProps {
80
+ isMyTurn: boolean;
81
+ /** Override for the "not my turn" label (e.g. "IA pensando…" in training mode). */
82
+ waitingLabel?: string;
83
+ className?: string;
84
+ }
85
+ /**
86
+ * Full-width banner showing whose turn it is.
87
+ * - My turn: accent-green background + "TU TURNO" + AP counter
88
+ * - Opponent: neutral background + waiting label
89
+ *
90
+ * Absorbs the floating "IA pensando…" toast in training mode when waitingLabel is set.
91
+ */
92
+ declare function TurnBanner({ isMyTurn, waitingLabel, className }: TurnBannerProps): react.JSX.Element | null;
93
+
94
+ interface EventToastProps {
95
+ className?: string;
96
+ }
97
+ declare function EventToast({ className }: EventToastProps): react.JSX.Element;
98
+
99
+ interface MobileHistoryProps {
100
+ className?: string;
101
+ }
102
+ declare function MobileHistory({ className }: MobileHistoryProps): react.JSX.Element | null;
103
+
79
104
  interface ActionPointsProps {
80
105
  total: number;
81
106
  remaining: number;
@@ -137,4 +162,4 @@ declare function useGameT(): GameTranslator;
137
162
 
138
163
  declare function cn(...inputs: ClassValue[]): string;
139
164
 
140
- export { ActionPoints, Avatar, AvatarFallback, AvatarImage, Button, type ButtonProps, ConfirmDialog, Football, GameBoard, GameControls, GameI18nProvider, GamePiece, type GameTranslator, MiniScoreboard, MoveHistory, Scoreboard, SelectedPieceDetail, StaticGameBoard, cn, useGameT };
165
+ export { ActionPoints, Avatar, AvatarFallback, AvatarImage, Button, type ButtonProps, ConfirmDialog, EventToast, Football, GameBoard, GameControls, GameI18nProvider, GamePiece, type GameTranslator, MiniScoreboard, MobileHistory, MoveHistory, Scoreboard, SelectedPieceDetail, StaticGameBoard, TurnBanner, cn, useGameT };
package/dist/index.d.ts CHANGED
@@ -76,6 +76,31 @@ declare function MoveHistory({ scrollable, limit, className }: MoveHistoryProps)
76
76
 
77
77
  declare function StaticGameBoard(): react.JSX.Element;
78
78
 
79
+ interface TurnBannerProps {
80
+ isMyTurn: boolean;
81
+ /** Override for the "not my turn" label (e.g. "IA pensando…" in training mode). */
82
+ waitingLabel?: string;
83
+ className?: string;
84
+ }
85
+ /**
86
+ * Full-width banner showing whose turn it is.
87
+ * - My turn: accent-green background + "TU TURNO" + AP counter
88
+ * - Opponent: neutral background + waiting label
89
+ *
90
+ * Absorbs the floating "IA pensando…" toast in training mode when waitingLabel is set.
91
+ */
92
+ declare function TurnBanner({ isMyTurn, waitingLabel, className }: TurnBannerProps): react.JSX.Element | null;
93
+
94
+ interface EventToastProps {
95
+ className?: string;
96
+ }
97
+ declare function EventToast({ className }: EventToastProps): react.JSX.Element;
98
+
99
+ interface MobileHistoryProps {
100
+ className?: string;
101
+ }
102
+ declare function MobileHistory({ className }: MobileHistoryProps): react.JSX.Element | null;
103
+
79
104
  interface ActionPointsProps {
80
105
  total: number;
81
106
  remaining: number;
@@ -137,4 +162,4 @@ declare function useGameT(): GameTranslator;
137
162
 
138
163
  declare function cn(...inputs: ClassValue[]): string;
139
164
 
140
- export { ActionPoints, Avatar, AvatarFallback, AvatarImage, Button, type ButtonProps, ConfirmDialog, Football, GameBoard, GameControls, GameI18nProvider, GamePiece, type GameTranslator, MiniScoreboard, MoveHistory, Scoreboard, SelectedPieceDetail, StaticGameBoard, cn, useGameT };
165
+ export { ActionPoints, Avatar, AvatarFallback, AvatarImage, Button, type ButtonProps, ConfirmDialog, EventToast, Football, GameBoard, GameControls, GameI18nProvider, GamePiece, type GameTranslator, MiniScoreboard, MobileHistory, MoveHistory, Scoreboard, SelectedPieceDetail, StaticGameBoard, TurnBanner, cn, useGameT };