@simple-parlay/components 1.29.0 → 1.30.1

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.
Files changed (70) hide show
  1. package/README.md +6 -164
  2. package/dist/index.d.ts +1 -1
  3. package/dist/index.js +1 -1
  4. package/dist/index.mjs +346 -282
  5. package/dist/react/components/ConfirmPage.d.ts +9 -2
  6. package/dist/react/components/EntrySubmission.d.ts +1 -1
  7. package/dist/react/components/GameModeCard.d.ts +26 -6
  8. package/dist/react/components/GamePage.d.ts +10 -6
  9. package/dist/react/components/GameSelector.d.ts +19 -1
  10. package/dist/react/components/GameSetupPage.d.ts +0 -14
  11. package/dist/react/components/HowToPlayButton.d.ts +15 -3
  12. package/dist/react/components/HowToPlayPanel.d.ts +13 -0
  13. package/dist/react/components/LoadingIndicators.d.ts +21 -6
  14. package/dist/react/components/PageBackButton.d.ts +11 -1
  15. package/dist/react/components/PickerBrand.d.ts +10 -0
  16. package/dist/react/components/PlaceEntryProvider.d.ts +5 -4
  17. package/dist/react/components/PropositionFilters.d.ts +24 -0
  18. package/dist/react/components/SafetyNetPage.d.ts +16 -0
  19. package/dist/react/components/SelectionReview.d.ts +1 -1
  20. package/dist/react/components/SelectionsPage.d.ts +7 -1
  21. package/dist/react/components/SportPickerPage.d.ts +3 -1
  22. package/dist/react/components/SportSelector.d.ts +15 -2
  23. package/dist/react/components/SwipeDeck.d.ts +33 -0
  24. package/dist/react/components/_primitives/index.d.ts +2 -0
  25. package/dist/react/index.d.ts +16 -4
  26. package/dist/react/index.js +1 -1
  27. package/dist/react/index.mjs +346 -282
  28. package/dist/react/types/index.d.ts +1 -1
  29. package/dist/react/utils/index.d.ts +2 -2
  30. package/dist/react/utils/themes.d.ts +1 -1
  31. package/dist/react-native/components/ConfirmPage.d.ts +9 -2
  32. package/dist/react-native/components/EntrySubmission.d.ts +1 -1
  33. package/dist/react-native/components/GameModeCard.d.ts +29 -7
  34. package/dist/react-native/components/GamePage.d.ts +15 -6
  35. package/dist/react-native/components/GameSelector.d.ts +19 -0
  36. package/dist/react-native/components/GameSetupPage.d.ts +2 -4
  37. package/dist/react-native/components/HowToPlayButton.d.ts +9 -1
  38. package/dist/react-native/components/HowToPlayPanel.d.ts +12 -0
  39. package/dist/react-native/components/IconSvg.d.ts +2 -2
  40. package/dist/react-native/components/LoadingIndicators.d.ts +23 -8
  41. package/dist/react-native/components/PageBackButton.d.ts +3 -1
  42. package/dist/react-native/components/PickerBrand.d.ts +8 -0
  43. package/dist/react-native/components/PlaceEntryProvider.d.ts +5 -4
  44. package/dist/react-native/components/PropositionFilters.d.ts +22 -0
  45. package/dist/react-native/components/SafetyNetPage.d.ts +14 -0
  46. package/dist/react-native/components/SelectionReview.d.ts +1 -1
  47. package/dist/react-native/components/SelectionsPage.d.ts +7 -1
  48. package/dist/react-native/components/SportPickerPage.d.ts +3 -1
  49. package/dist/react-native/components/SportSelector.d.ts +15 -2
  50. package/dist/react-native/components/SwipeDeck.d.ts +32 -0
  51. package/dist/react-native/components/_primitives/index.d.ts +21 -0
  52. package/dist/react-native/index.d.ts +16 -4
  53. package/dist/react-native/index.js +1 -1
  54. package/dist/react-native/index.mjs +384 -334
  55. package/dist/react-native/types/index.d.ts +1 -1
  56. package/dist/react-native/utils/index.d.ts +2 -2
  57. package/dist/react-native/utils/themes.d.ts +1 -1
  58. package/dist/shared/api-client.d.ts +1 -0
  59. package/dist/shared/game-dividends.d.ts +34 -0
  60. package/dist/shared/game-flow.d.ts +3 -2
  61. package/dist/shared/hooks.d.ts +2 -1
  62. package/dist/shared/how-to-play-panel.d.ts +36 -0
  63. package/dist/shared/picker-brand.d.ts +11 -0
  64. package/dist/shared/rule-setup.d.ts +1 -8
  65. package/dist/shared/safety-net.d.ts +47 -0
  66. package/dist/shared/swipe-deck.d.ts +22 -0
  67. package/dist/shared/themes.d.ts +1 -0
  68. package/dist/shared/types.d.ts +31 -10
  69. package/dist/shared/utils.d.ts +21 -9
  70. package/package.json +2 -1
@@ -1,8 +1,13 @@
1
+ import { PendingBet } from '../../shared/types';
1
2
  export interface ConfirmPageProps {
2
3
  /** Called when the user presses Back (e.g. navigate to selections page) */
3
4
  onBack?: () => void;
4
5
  /** Called after a successful submission (e.g. navigate to success page) */
5
6
  onSubmitted?: () => void;
7
+ /** When false, nothing is submitted — `onUnauthenticated` fires instead. */
8
+ authenticated?: boolean;
9
+ /** Handed the bet the user tried to place, so it can be restored after login. */
10
+ onUnauthenticated?: (bet: PendingBet) => void;
6
11
  /** Hide the built-in title section (use `<ConfirmPageTitle />` separately) */
7
12
  hideTitle?: boolean;
8
13
  /** Hide the built-in action buttons (use `<ConfirmPageActions />` separately) */
@@ -15,9 +20,11 @@ export declare function ConfirmPageTitle({ className, onBack, hideActions, }: {
15
20
  hideActions?: boolean;
16
21
  }): import("react/jsx-runtime").JSX.Element;
17
22
  /** Renders Back + Place Entry buttons with payout info. Must be inside `<PlaceEntryProvider>`. */
18
- export declare function ConfirmPageActions({ onBack, onSubmitted, className, }: {
23
+ export declare function ConfirmPageActions({ onBack, onSubmitted, authenticated, onUnauthenticated, className, }: {
19
24
  onBack?: () => void;
20
25
  onSubmitted?: () => void;
26
+ authenticated?: boolean;
27
+ onUnauthenticated?: (bet: PendingBet) => void;
21
28
  className?: string;
22
29
  }): import("react/jsx-runtime").JSX.Element | null;
23
- export declare function ConfirmPage({ onBack, onSubmitted, hideTitle, hideActions, className }: ConfirmPageProps): import("react/jsx-runtime").JSX.Element | null;
30
+ export declare function ConfirmPage({ onBack, onSubmitted, authenticated, onUnauthenticated, hideTitle, hideActions, className }: ConfirmPageProps): import("react/jsx-runtime").JSX.Element | null;
@@ -1,2 +1,2 @@
1
1
  import { EntrySubmissionProps } from '../types';
2
- export declare function EntrySubmission({ game, propositions, selections, onToggleSelection, onRemoveSelection, onSubmit, onBack, loading, error, expectedCorrect, onExpectedCorrectChange, betAmount, onBetAmountChange, theme: themeProp, colorScheme, hideActions, winningCounts: winningCountsProp, payouts: payoutsProp, renderTeamLogo, showCustomAmount, betAmountLocked, betAmountLockedNote, canSubmit: canSubmitProp, userBalance, onRecharge, boostBanner, }: EntrySubmissionProps): import("react/jsx-runtime").JSX.Element;
2
+ export declare function EntrySubmission({ game, propositions, selections, onToggleSelection, onRemoveSelection, onSubmit, onBack, loading, error, expectedCorrect, onExpectedCorrectChange, betAmount, onBetAmountChange, theme: themeProp, colorScheme, hideActions, winningCounts: winningCountsProp, payouts: payoutsProp, renderTeamLogo, showCustomAmount, betAmountLocked, betAmountLockedNote, canSubmit: canSubmitProp, authenticated, userBalance, onRecharge, boostBanner, }: EntrySubmissionProps): import("react/jsx-runtime").JSX.Element;
@@ -1,16 +1,36 @@
1
1
  import { default as React } from 'react';
2
- /**
3
- * Shared card kit for the unique-game pages (Game Set Bet, Pick Your
4
- * Dividend). Mirrors the RuleSetupPage ModeCard / EmblemTile anatomy exactly
5
- * — same tile, borders, hover, stat chip, detail lines and chevron — so every
6
- * game reads as one system; only the copy and the controls differ.
7
- */
2
+ /** Shared card kit for the unique-game pages — same anatomy as RuleSetupPage's ModeCard/EmblemTile. */
8
3
  export declare function hexA(color: string, alpha: number): string;
9
4
  /** Branded rounded tile carrying a game icon — the EmblemTile look, icon-driven. */
10
5
  export declare function BrandChipTile({ iconUrl, size }: {
11
6
  iconUrl: string;
12
7
  size?: number;
13
8
  }): import("react/jsx-runtime").JSX.Element;
9
+ /**
10
+ * The masthead every game page opens with — eyebrow, brand lockup, tagline.
11
+ * Eyebrow is desktop-only and the lockup shrinks on phones, so the picker
12
+ * starts near the top of the screen instead of ~180px down.
13
+ */
14
+ export declare function GamePageHeader({ eyebrow, iconUrl, gameName, tagline, className, }: {
15
+ /** Uppercase kicker above the lockup. Hidden on phones — pass `null` to drop it everywhere. */
16
+ eyebrow?: string | null;
17
+ iconUrl: string;
18
+ gameName: string;
19
+ tagline?: string | null;
20
+ className?: string;
21
+ }): import("react/jsx-runtime").JSX.Element;
22
+ /**
23
+ * A set of equal-weight options — ladders, dividends, nets. One snapping row on
24
+ * a phone (a 2-up grid cost four rows), the usual grid from `sm` up.
25
+ */
26
+ export declare function OptionStrip({ smGridClassName, ariaLabel, children, }: {
27
+ /** e.g. `"sm:grid-cols-5"` — must be a literal for Tailwind's scanner. */
28
+ smGridClassName: string;
29
+ ariaLabel: string;
30
+ children: React.ReactNode;
31
+ }): import("react/jsx-runtime").JSX.Element;
32
+ /** Sizing for a single `OptionStrip` child: fixed on the phone rail, fluid in the grid. */
33
+ export declare const OPTION_STRIP_ITEM = "w-[124px] shrink-0 snap-start sm:w-auto sm:shrink";
14
34
  /** A row of the shared pip language: teal filled pips = must-hit legs, citron ball = the prize. */
15
35
  export declare function LegPips({ legs, prizeBall }: {
16
36
  legs: number;
@@ -1,16 +1,20 @@
1
+ import { GameFlow } from '../../shared/game-flow';
1
2
  export interface GamePageProps {
2
3
  /** Called after a game is selected (e.g. navigate to selections page) */
3
4
  onSelectGame?: () => void;
4
- /** Called when the selected game needs a rule setup step before selections */
5
+ onGameSetup?: (flow: GameFlow) => void;
6
+ /** @deprecated Use `onGameSetup`. Also fires as the fallback for any setup flow without a handler. */
5
7
  onRuleSetup?: () => void;
6
- /** Called when the selected game is a Game Set Bet (navigate to the ticket-builder page) */
8
+ /** @deprecated Use `onGameSetup`. */
7
9
  onGameSetBet?: () => void;
8
- /** Called when the selected game is a Pick Your Dividend game (navigate to the dividend page) */
10
+ /** @deprecated Use `onGameSetup`. */
9
11
  onPickYourDividend?: () => void;
10
- /** Called when the selected game is a Ladder game (navigate to the ladder page) */
12
+ /** @deprecated Use `onGameSetup`. */
11
13
  onLadder?: () => void;
12
- /** Called when the selected game is a Mirror game (navigate to the mirror page) */
14
+ /** @deprecated Use `onGameSetup`. */
13
15
  onMirror?: () => void;
16
+ /** @deprecated Use `onGameSetup`. */
17
+ onSafetyNet?: () => void;
14
18
  onQuickPick?: () => void;
15
19
  /** Called when the user cancels */
16
20
  onCancel?: () => void;
@@ -33,4 +37,4 @@ export declare function GamePageActions({ onCancel, className }: {
33
37
  onSelectGame?: () => void;
34
38
  className?: string;
35
39
  }): import("react/jsx-runtime").JSX.Element | null;
36
- export declare function GamePage({ onSelectGame, onRuleSetup, onGameSetBet, onPickYourDividend, onLadder, onMirror, onQuickPick, onCancel, hideTitle, hideActions, showPerfectPickSetup, showTierFilter, className }: GamePageProps): import("react/jsx-runtime").JSX.Element;
40
+ export declare function GamePage({ onSelectGame, onGameSetup, onRuleSetup, onGameSetBet, onPickYourDividend, onLadder, onMirror, onSafetyNet, onQuickPick, onCancel, hideTitle, hideActions, showPerfectPickSetup, showTierFilter, className }: GamePageProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,20 @@
1
1
  import { GameSelectorProps } from '../types';
2
- export declare function GameSelector({ games, selectedGame, onSelectGame, loading, error, theme: themeProp, colorScheme, showTier, showCategory, showTierFilter, selectedPropositionCount, onPropositionCountChange, onPropositionCountSelected, onQuickPickGame, maxPayouts, }: GameSelectorProps): import("react/jsx-runtime").JSX.Element;
2
+ import { DividendMode, DividendTier } from '../../shared/game-dividends';
3
+ /** The game's dividends, rendered inside the How to Play modal. */
4
+ export declare function CardDividends({ tiers, modes, pydDividends, onPlayCount, minBet, maxBet, colors: c, bodyFont, headingFont, }: {
5
+ tiers: DividendTier[];
6
+ modes?: DividendMode[];
7
+ pydDividends?: {
8
+ dividend: number;
9
+ stakeFrom: number;
10
+ }[];
11
+ /** Makes each leg row play that many picks. */
12
+ onPlayCount?: (count: number) => void;
13
+ /** The game's bet limits — the example bet is clamped to them. */
14
+ minBet?: number;
15
+ maxBet?: number | null;
16
+ colors: any;
17
+ bodyFont: string | undefined;
18
+ headingFont: string | undefined;
19
+ }): import("react/jsx-runtime").JSX.Element | null;
20
+ export declare function GameSelector({ games, selectedGame, onSelectGame, loading, error, theme: themeProp, colorScheme, showTier, showCategory, showTierFilter, onPropositionCountChange, onPropositionCountSelected, onQuickPickGame, maxPayouts, }: GameSelectorProps): import("react/jsx-runtime").JSX.Element;
@@ -1,17 +1,3 @@
1
- /**
2
- * The one setup page for every game — hosts route a single step (e.g. /rule)
3
- * here and it renders the right experience for the selected game:
4
- *
5
- * - Game Set Bet → legs + stake ticket builder
6
- * - Pick Your Dividend → dividend picker + stake ladder
7
- * - Ladder → ladder picker + stacking prize table
8
- * - Mirror → legs + stake builder, all right / all wrong pays
9
- * - exact rules → Perfect Pick ticket builder
10
- * - safety_net / pick → the rule mode-select page
11
- *
12
- * All of them share the same kit (lockup header, cards, pips, mode cards), so
13
- * the UI stays one system while the controls change per game.
14
- */
15
1
  export interface GameSetupPageProps {
16
2
  /** Called when the user will make their own calls (navigate to selections). */
17
3
  onPickYourOwn?: () => void;
@@ -1,8 +1,15 @@
1
+ import { default as React } from 'react';
2
+ import { HowToPlayPanelContent } from '../../shared/how-to-play-panel';
3
+ import { BladeTheme } from '../types';
1
4
  export interface HowToPlayModalProps {
2
5
  open: boolean;
3
6
  onClose: () => void;
4
7
  title?: string;
5
- content: string;
8
+ content?: string;
9
+ panel?: HowToPlayPanelContent | null;
10
+ theme?: BladeTheme;
11
+ /** Rendered under the how-to-play body, inside the same scroll region. */
12
+ extra?: React.ReactNode;
6
13
  colors: {
7
14
  text: string;
8
15
  textMuted: string;
@@ -15,14 +22,19 @@ export interface HowToPlayModalProps {
15
22
  bodyFont?: string;
16
23
  headingFont?: string;
17
24
  }
18
- export declare function HowToPlayModal({ open, onClose, title, content, colors, bodyFont, headingFont, }: HowToPlayModalProps): import("react/jsx-runtime").JSX.Element | null;
25
+ export declare function HowToPlayModal({ open, onClose, title, content, panel, theme, extra, colors, bodyFont, headingFont, }: HowToPlayModalProps): import("react/jsx-runtime").JSX.Element | null;
19
26
  export interface HowToPlayButtonProps {
20
27
  content?: string | null;
28
+ panel?: HowToPlayPanelContent | null;
29
+ theme?: BladeTheme;
30
+ /** Rendered under the how-to-play body — the game's dividends, typically. */
31
+ extra?: React.ReactNode;
21
32
  title?: string;
22
33
  label?: string;
34
+ variant?: 'pill' | 'icon';
23
35
  colors: HowToPlayModalProps['colors'];
24
36
  bodyFont?: string;
25
37
  headingFont?: string;
26
38
  className?: string;
27
39
  }
28
- export declare function HowToPlayButton({ content, title, label, colors, bodyFont, headingFont, className, }: HowToPlayButtonProps): import("react/jsx-runtime").JSX.Element | null;
40
+ export declare function HowToPlayButton({ content, panel, theme, extra, title, label, variant, colors, bodyFont, headingFont, className, }: HowToPlayButtonProps): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,13 @@
1
+ import { default as React } from 'react';
2
+ import { BladeTheme } from '../types';
3
+ import { HowToPlayPanelContent } from '../../shared/how-to-play-panel';
4
+ export interface HowToPlayPanelProps {
5
+ panel: HowToPlayPanelContent;
6
+ theme: BladeTheme;
7
+ /** Adds a third tab when given — the game's dividends. */
8
+ dividends?: React.ReactNode;
9
+ bodyFont?: string;
10
+ headingFont?: string;
11
+ className?: string;
12
+ }
13
+ export declare function HowToPlayPanel({ panel, theme, dividends, bodyFont, headingFont, className, }: HowToPlayPanelProps): import("react/jsx-runtime").JSX.Element;
@@ -26,22 +26,36 @@ export declare function CategoryGridSkeleton({ colors, count, }: {
26
26
  count?: number;
27
27
  showLogoArea?: boolean;
28
28
  }): import("react/jsx-runtime").JSX.Element;
29
- export declare function SportListSkeleton({ colors, count, }: {
29
+ /** SportPickerPage grid — stacked tile on phones, logo-row on sm+. */
30
+ export declare function SportGridSkeleton({ colors, count, }: {
30
31
  colors: ThemeSurfaceColors;
31
32
  count?: number;
32
33
  }): import("react/jsx-runtime").JSX.Element;
34
+ /** EventPickerPage fixture list — matchup bar, meta line, chevron. */
35
+ export declare function EventListSkeleton({ colors, count, }: {
36
+ colors: ThemeSurfaceColors;
37
+ count?: number;
38
+ }): import("react/jsx-runtime").JSX.Element;
39
+ /** One carousel card — tile, YESNO wordmark, name, tagline/description. */
33
40
  export declare function GameCardSkeleton({ colors, tileSize, }: {
34
41
  colors: ThemeSurfaceColors;
35
42
  tileSize?: number;
36
43
  }): import("react/jsx-runtime").JSX.Element;
37
- export declare function GameCardListSkeleton({ colors, count, tileSize, }: {
44
+ export declare function GameTierTabsSkeleton({ colors }: {
45
+ colors: ThemeSurfaceColors;
46
+ }): import("react/jsx-runtime").JSX.Element;
47
+ /** GameSelector carousel — one centred card, dot row, all-games strip. */
48
+ export declare function GameCardListSkeleton({ colors, count, tileSize, showTierTabs, }: {
38
49
  colors: ThemeSurfaceColors;
39
50
  count?: number;
40
51
  tileSize?: number;
52
+ showTierTabs?: boolean;
41
53
  }): import("react/jsx-runtime").JSX.Element;
42
- export declare function PropositionListSkeleton({ colors, rows, }: {
54
+ /** SportSelector list — filter pill, then matchup cards of header + prop rows. */
55
+ export declare function PropositionListSkeleton({ colors, groups, rowsPerGroup, }: {
43
56
  colors: ThemeSurfaceColors;
44
- rows?: number;
57
+ groups?: number;
58
+ rowsPerGroup?: number;
45
59
  }): import("react/jsx-runtime").JSX.Element;
46
60
  /** GameEntries tab bar — matches `flex border-b mb-4`. */
47
61
  export declare function EntryTabsSkeleton({ colors }: {
@@ -54,8 +68,8 @@ export declare function EntryListSkeleton({ colors, rows, }: {
54
68
  colors: ThemeSurfaceColors;
55
69
  rows?: number;
56
70
  }): import("react/jsx-runtime").JSX.Element;
57
- export type PickerLoadingVariant = 'category' | 'sport' | 'games' | 'propositions' | 'entries';
58
- export declare function PickerLoadingPanel({ colors, bodyFont, message, className, variant, showLogoArea, gameCardCount, categoryCount, }: {
71
+ export type PickerLoadingVariant = 'category' | 'sport' | 'event' | 'games' | 'propositions' | 'entries';
72
+ export declare function PickerLoadingPanel({ colors, bodyFont, message, className, variant, showLogoArea, gameCardCount, categoryCount, showTierTabs, }: {
59
73
  colors: ThemeSurfaceColors;
60
74
  bodyFont: string;
61
75
  message?: string;
@@ -64,4 +78,5 @@ export declare function PickerLoadingPanel({ colors, bodyFont, message, classNam
64
78
  showLogoArea?: boolean;
65
79
  gameCardCount?: number;
66
80
  categoryCount?: number;
81
+ showTierTabs?: boolean;
67
82
  }): import("react/jsx-runtime").JSX.Element;
@@ -4,10 +4,20 @@ export declare function PageBackButton({ onBack, title, className, }: {
4
4
  title?: string;
5
5
  className?: string;
6
6
  }): import("react/jsx-runtime").JSX.Element;
7
- export declare function PageTitleBackRow({ onBack, hideActions: _hideActions, children, className, }: {
7
+ /**
8
+ * The body back link used by the game setup pages — arrow + label,
9
+ * hover → primary colour + slide left. Twin of the RN `PageBackLink`.
10
+ */
11
+ export declare function PageBackLink({ onBack, label, }: {
12
+ onBack: () => void;
13
+ label?: string;
14
+ }): import("react/jsx-runtime").JSX.Element;
15
+ export declare function PageTitleBackRow({ onBack, hideActions: _hideActions, label, children, className, }: {
8
16
  onBack?: () => void;
9
17
  /** @deprecated Back arrow visibility is controlled by `onBack` only */
10
18
  hideActions?: boolean;
19
+ /** Context text (game name, category) — part of the back button's click target when `onBack` is set. */
20
+ label?: React.ReactNode;
11
21
  children?: React.ReactNode;
12
22
  className?: string;
13
23
  }): import("react/jsx-runtime").JSX.Element | null;
@@ -12,8 +12,18 @@ export declare function CategoryIcon({ category, size, color, }: {
12
12
  size?: number | string;
13
13
  color?: string;
14
14
  }): import("react/jsx-runtime").JSX.Element;
15
+ export declare function FilterIcon({ size, color, className, }: {
16
+ size?: number;
17
+ color?: string;
18
+ className?: string;
19
+ }): import("react/jsx-runtime").JSX.Element;
15
20
  export declare function ChevronRightIcon({ size, color, className, }: {
16
21
  size?: number;
17
22
  color?: string;
18
23
  className?: string;
19
24
  }): import("react/jsx-runtime").JSX.Element;
25
+ export declare function LockIcon({ size, color, className, }: {
26
+ size?: number;
27
+ color?: string;
28
+ className?: string;
29
+ }): import("react/jsx-runtime").JSX.Element;
@@ -2,7 +2,7 @@ import { default as React } from 'react';
2
2
  import { Game, Proposition, SportSummary, GameEntry, TopPayoutsResponse, ShareData, ScreenSize } from '../types';
3
3
  import { BladeTheme, BladeThemeSet, ColorScheme } from '../utils/themes';
4
4
  import { SportDisplayNameOverrides, CategoryDisplayNameOverrides } from '../utils';
5
- import { RenderTeamLogo } from '../../shared/types';
5
+ import { RenderTeamLogo, GamePermittedRule } from '../../shared/types';
6
6
  import { SameGameMultiEvent } from '../../shared/same-game-multi';
7
7
  export interface PlaceEntryContextValue {
8
8
  theme: BladeTheme;
@@ -30,6 +30,9 @@ export interface PlaceEntryContextValue {
30
30
  selectedPropositionCount: number | undefined;
31
31
  handlePropositionCountChange: (count: number) => void;
32
32
  upgradePropositionCount: (count: number) => void;
33
+ selectedRuleId: number | null;
34
+ setSelectedRuleId: (id: number | null) => void;
35
+ selectedRule: GamePermittedRule | null;
33
36
  winningCounts: number[];
34
37
  payouts: Record<number, number>;
35
38
  overloadPayouts: Record<number, number>;
@@ -61,7 +64,6 @@ export interface PlaceEntryContextValue {
61
64
  fetchImpl?: typeof fetch;
62
65
  getAuthHeaders?: () => Promise<Record<string, string>> | Record<string, string>;
63
66
  userId?: string | number;
64
- showHomeAway: boolean;
65
67
  disableQuickPick: boolean;
66
68
  renderTeamLogo?: RenderTeamLogo;
67
69
  filterSport?: string;
@@ -118,7 +120,6 @@ export interface PlaceEntryProviderProps {
118
120
  initialEventId?: string;
119
121
  initialEventLabel?: string;
120
122
  sportBaseKey?: string;
121
- showHomeAway?: boolean;
122
123
  disableQuickPick?: boolean;
123
124
  renderTeamLogo?: RenderTeamLogo;
124
125
  onEntryPlaced?: (entry: GameEntry) => void;
@@ -134,4 +135,4 @@ export interface PlaceEntryProviderProps {
134
135
  /** Map entry categories to UI labels. */
135
136
  categoryDisplayNames?: CategoryDisplayNameOverrides;
136
137
  }
137
- export declare function PlaceEntryProvider({ apiUrl, apiKey, fetchImpl, getAuthHeaders, userId, getUserBalance, children, theme: themeProp, colorScheme, demoGames, demoPropositions, demoEntries, demoMaxPayouts, gameCategory, jurisdiction, initialGameId, filterSport, initialSport, initialEventId, initialEventLabel, sportBaseKey, showHomeAway, disableQuickPick, renderTeamLogo, onEntryPlaced, onBeforeSubmit, onCancel, onShare, onRecharge, onClearEventFilter, screenSize, howToPlayMarkdown: howToPlayMarkdownProp, sportDisplayNames, categoryDisplayNames, }: PlaceEntryProviderProps): import("react/jsx-runtime").JSX.Element;
138
+ export declare function PlaceEntryProvider({ apiUrl, apiKey, fetchImpl, getAuthHeaders, userId, getUserBalance, children, theme: themeProp, colorScheme, demoGames, demoPropositions, demoEntries, demoMaxPayouts, gameCategory, jurisdiction, initialGameId, filterSport, initialSport, initialEventId, initialEventLabel, sportBaseKey, disableQuickPick, renderTeamLogo, onEntryPlaced, onBeforeSubmit, onCancel, onShare, onRecharge, onClearEventFilter, screenSize, howToPlayMarkdown: howToPlayMarkdownProp, sportDisplayNames, categoryDisplayNames, }: PlaceEntryProviderProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,24 @@
1
+ import { BladeTheme } from '../types';
2
+ export interface FilterChipOption {
3
+ value: string | null;
4
+ label: string;
5
+ }
6
+ export interface FilterChipGroup {
7
+ label?: string;
8
+ options: FilterChipOption[];
9
+ value: string | null;
10
+ onChange: (value: string | null) => void;
11
+ }
12
+ export interface FilterChipCarouselProps {
13
+ groups: FilterChipGroup[];
14
+ theme: BladeTheme;
15
+ bodyFont?: string;
16
+ className?: string;
17
+ }
18
+ export declare function FilterChipCarousel({ groups, theme, bodyFont, className, }: FilterChipCarouselProps): import("react/jsx-runtime").JSX.Element | null;
19
+ export interface FilterChipRowProps extends FilterChipGroup {
20
+ theme: BladeTheme;
21
+ bodyFont?: string;
22
+ className?: string;
23
+ }
24
+ export declare function FilterChipRow({ label, options, value, onChange, theme, bodyFont, className, }: FilterChipRowProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,16 @@
1
+ import { SafetyNetConfig } from '../../shared/safety-net';
2
+ export interface SafetyNetPageProps {
3
+ onQuickPick?: () => void;
4
+ onPickYourOwn?: () => void;
5
+ onBack?: () => void;
6
+ hideTitle?: boolean;
7
+ config?: SafetyNetConfig | null;
8
+ backLabel?: string;
9
+ className?: string;
10
+ }
11
+ export declare function SafetyNetPageTitle({ className, onBack, hideActions, }: {
12
+ className?: string;
13
+ onBack?: () => void;
14
+ hideActions?: boolean;
15
+ }): import("react/jsx-runtime").JSX.Element;
16
+ export declare function SafetyNetPage({ onQuickPick, onPickYourOwn, onBack, hideTitle, config: configOverride, backLabel, className, }: SafetyNetPageProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import { SelectionReviewProps } from '../types';
2
- export declare function SelectionReview({ propositions, selections, onToggleSelection, onNext, onBack, theme: themeProp, colorScheme, hideActions, renderTeamLogo, showHomeAway, allowAnswerToggle, gameName, potentialPayout, defaultExpanded, addMorePicks, }: SelectionReviewProps): import("react/jsx-runtime").JSX.Element;
2
+ export declare function SelectionReview({ propositions, selections, onToggleSelection, onNext, onBack, theme: themeProp, colorScheme, hideActions, renderTeamLogo, allowAnswerToggle, gameName, potentialPayout, defaultExpanded, addMorePicks, }: SelectionReviewProps): import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,4 @@
1
+ export type SelectionsView = 'list' | 'swipe';
1
2
  export interface SelectionsPageProps {
2
3
  /** Called when the user presses Continue (e.g. navigate to confirm page) */
3
4
  onNext?: () => void;
@@ -7,6 +8,11 @@ export interface SelectionsPageProps {
7
8
  hideTitle?: boolean;
8
9
  /** Hide the built-in action buttons (use `<SelectionsPageActions />` separately) */
9
10
  hideActions?: boolean;
11
+ defaultView?: SelectionsView;
12
+ view?: SelectionsView;
13
+ onViewChange?: (view: SelectionsView) => void;
14
+ hideViewSwitch?: boolean;
15
+ onSwipeDragStateChange?: (dragging: boolean) => void;
10
16
  className?: string;
11
17
  }
12
18
  export declare function SelectionsPageTitle({ className, onBack, onNext, hideActions }: {
@@ -22,4 +28,4 @@ export declare function SelectionsPageActions({ onNext, onBack, hideButtons, cla
22
28
  hideButtons?: boolean;
23
29
  className?: string;
24
30
  }): import("react/jsx-runtime").JSX.Element;
25
- export declare function SelectionsPage({ onNext, onBack, hideTitle, hideActions, className }: SelectionsPageProps): import("react/jsx-runtime").JSX.Element | null;
31
+ export declare function SelectionsPage({ onNext, onBack, hideTitle, hideActions, defaultView, view: controlledView, onViewChange, hideViewSwitch, onSwipeDragStateChange, className, }: SelectionsPageProps): import("react/jsx-runtime").JSX.Element | null;
@@ -1,4 +1,5 @@
1
1
  import { default as React } from 'react';
2
+ import { ComingSoonSport } from '../../shared/picker-brand';
2
3
  export interface SportPickerPageProps {
3
4
  /** Called after a sport is selected */
4
5
  onSelectSport?: (sport: string) => void;
@@ -12,6 +13,7 @@ export interface SportPickerPageProps {
12
13
  renderSportTagline?: (sport: string, count: number) => string;
13
14
  /** Label for the back link (where "back" leads). @default 'Category' */
14
15
  backLabel?: string;
16
+ comingSoonSports?: ComingSoonSport[];
15
17
  className?: string;
16
18
  }
17
19
  export declare function SportPickerPageTitle({ className, onBack, hideActions, backLabel, }: {
@@ -24,4 +26,4 @@ export declare function SportPickerPageActions({ onCancel, className, }: {
24
26
  onCancel?: () => void;
25
27
  className?: string;
26
28
  }): import("react/jsx-runtime").JSX.Element | null;
27
- export declare function SportPickerPage({ onSelectSport, onCancel, hideTitle, hideActions, renderSportLogo, renderSportTagline, backLabel, className, }: SportPickerPageProps): import("react/jsx-runtime").JSX.Element;
29
+ export declare function SportPickerPage({ onSelectSport, onCancel, hideTitle, hideActions, renderSportLogo, renderSportTagline, backLabel, comingSoonSports, className, }: SportPickerPageProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,15 @@
1
- import { SportSelectorProps } from '../../shared/types';
2
- export declare function SportSelector({ game, propositions, selections, onToggleSelection, onNext, onBack, loading, error, theme: themeProp, colorScheme, hideActions, initialSport, renderTeamLogo, disableQuickPick, selectedPropositionCount, onPropositionCountChange, showHomeAway, gameCategory, }: SportSelectorProps): import("react/jsx-runtime").JSX.Element;
1
+ import { default as React } from 'react';
2
+ import { SportSelectorProps, Proposition } from '../../shared/types';
3
+ /** A header key names two teams when it splits on " vs " — `MatchupTeams`' own test. */
4
+ export declare function isMatchupKey(key?: string | null): boolean;
5
+ /** The runner's silk, for single-event rows; under an "A vs B" header the logos are already up top. */
6
+ export declare function runnerLogo(prop: Proposition, renderTeamLogo: SportSelectorProps['renderTeamLogo'], headerKey?: string | null): React.ReactNode;
7
+ /** "A vs B" as a header — names stack beside the "vs" on a phone, one line from `sm` up. */
8
+ export declare function MatchupTeams({ matchup, renderTeamLogo, altText, mutedColor, size, }: {
9
+ matchup: string;
10
+ renderTeamLogo?: SportSelectorProps['renderTeamLogo'];
11
+ altText: string;
12
+ mutedColor: string;
13
+ size?: 'sm' | 'md';
14
+ }): import("react/jsx-runtime").JSX.Element;
15
+ export declare function SportSelector({ game, propositions, selections, onToggleSelection, onNext, onBack, loading, error, theme: themeProp, colorScheme, hideActions, initialSport, renderTeamLogo, disableQuickPick, selectedPropositionCount, onPropositionCountChange, gameCategory, headerExtra, }: SportSelectorProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,33 @@
1
+ import { default as React } from 'react';
2
+ import { BladeTheme } from '../utils/themes';
3
+ import { FlyDirection } from '../../shared/swipe-deck';
4
+ import { Proposition } from '../../shared/types';
5
+ export type { FlyDirection };
6
+ export interface SwipeCardApi {
7
+ fly: (direction: FlyDirection) => void;
8
+ }
9
+ export interface SwipeCardProps {
10
+ prop: Proposition;
11
+ /** Only used for the Yes/No/Skip stamps. Defaults to the provider's theme, then the default theme. */
12
+ theme?: BladeTheme;
13
+ depth?: number;
14
+ enterFrom?: FlyDirection | null;
15
+ canSkip?: boolean;
16
+ onResolve: (id: number, answer: 'yes' | 'no' | null) => void;
17
+ registerApi?: (api: SwipeCardApi | null) => void;
18
+ onDragStateChange?: (dragging: boolean) => void;
19
+ children: React.ReactNode;
20
+ }
21
+ export declare function SwipeCard({ prop, theme: themeProp, depth, enterFrom, canSkip, onResolve, registerApi, onDragStateChange, children, }: SwipeCardProps): import("react/jsx-runtime").JSX.Element;
22
+ export interface SwipeCardFaceProps {
23
+ prop: Proposition;
24
+ }
25
+ export declare function SwipeCardFace({ prop }: SwipeCardFaceProps): import("react/jsx-runtime").JSX.Element;
26
+ export interface SwipeDeckProps {
27
+ onBack?: () => void;
28
+ onNext?: () => void;
29
+ viewSwitch?: React.ReactNode;
30
+ onDragStateChange?: (dragging: boolean) => void;
31
+ className?: string;
32
+ }
33
+ export declare function SwipeDeck({ onBack, onNext, viewSwitch, onDragStateChange, className }: SwipeDeckProps): import("react/jsx-runtime").JSX.Element | null;
@@ -1,5 +1,7 @@
1
1
  import { default as React, CSSProperties, MouseEvent, ReactNode } from 'react';
2
2
  import { BladeTheme } from '../../../shared/themes';
3
+ /** Minimum hit area for anything tappable, in px (Apple 44pt / Material 48dp). Shrink the paint, never the target. */
4
+ export declare const TOUCH_TARGET = 44;
3
5
  export declare function useBreakpoint(minWidth?: number): boolean;
4
6
  export type SurfaceLevel = 'flat' | 'raised' | 'elevated';
5
7
  export interface SurfaceProps {
@@ -1,5 +1,9 @@
1
1
  export { HowToPlayButton, HowToPlayModal } from './components/HowToPlayButton';
2
2
  export type { HowToPlayButtonProps, HowToPlayModalProps } from './components/HowToPlayButton';
3
+ export { HowToPlayPanel } from './components/HowToPlayPanel';
4
+ export type { HowToPlayPanelProps } from './components/HowToPlayPanel';
5
+ export { FilterChipRow, FilterChipCarousel } from './components/PropositionFilters';
6
+ export type { FilterChipRowProps, FilterChipCarouselProps, FilterChipGroup, FilterChipOption } from './components/PropositionFilters';
3
7
  export { MarkdownContent } from './components/MarkdownContent';
4
8
  export type { MarkdownContentProps } from './components/MarkdownContent';
5
9
  export { GameSelector } from './components/GameSelector';
@@ -16,7 +20,11 @@ export type { GamePageProps } from './components/GamePage';
16
20
  export { EventFilterBanner } from './components/EventFilterBanner';
17
21
  export type { EventFilterBannerProps } from './components/EventFilterBanner';
18
22
  export { SelectionsPage, SelectionsPageTitle, SelectionsPageActions } from './components/SelectionsPage';
19
- export type { SelectionsPageProps } from './components/SelectionsPage';
23
+ export type { SelectionsPageProps, SelectionsView } from './components/SelectionsPage';
24
+ export { SwipeDeck, SwipeCard, SwipeCardFace } from './components/SwipeDeck';
25
+ export type { SwipeDeckProps, SwipeCardProps, SwipeCardFaceProps, SwipeCardApi, FlyDirection, } from './components/SwipeDeck';
26
+ export { useSwipeDeck, VISIBLE_DEPTH } from '../shared/swipe-deck';
27
+ export type { SwipeDeckState } from '../shared/swipe-deck';
20
28
  export { ConfirmPage, ConfirmPageTitle, ConfirmPageActions } from './components/ConfirmPage';
21
29
  export type { ConfirmPageProps } from './components/ConfirmPage';
22
30
  export { SuccessPage, SuccessPageTitle, SuccessPageActions } from './components/SuccessPage';
@@ -49,6 +57,10 @@ export { MirrorPage, MirrorPageTitle } from './components/MirrorPage';
49
57
  export type { MirrorPageProps } from './components/MirrorPage';
50
58
  export { getMirrorConfig, mirrorPrize, isMirrorGame, MIRROR_STANDARD_MARGIN, } from '../shared/mirror';
51
59
  export type { MirrorConfig, MirrorPrize, } from '../shared/mirror';
60
+ export { SafetyNetPage, SafetyNetPageTitle } from './components/SafetyNetPage';
61
+ export type { SafetyNetPageProps } from './components/SafetyNetPage';
62
+ export { getSafetyNetConfig, getSafetyNetPricing, isSafetyNetGame, safetyNetTicket, safetyNetCollect, EXTRA_SHOT_MIN_LEGS, DOUBLE_SHOT_MIN_LEGS, } from '../shared/safety-net';
63
+ export type { SafetyNetConfig, SafetyNetMode, SafetyNetModeId, SafetyNetPricing, SafetyNetTicket, } from '../shared/safety-net';
52
64
  export { getGameFlow, getConfirmBoostCopy, isFixedCardExactGame, isOpenExactMultiGame } from '../shared/game-flow';
53
65
  export type { GameFlow, ConfirmBoostCopy } from '../shared/game-flow';
54
66
  export { GAME_TIER_LEVEL, GAME_TIER_TABS, resolveGameTierLevel, filterGamesByTierLevel, availableGameTierTabs, defaultGameTierId, } from '../shared/game-tiers';
@@ -63,12 +75,12 @@ export { BrandLockup } from './components/BrandLockup';
63
75
  export type { BrandLockupProps } from './components/BrandLockup';
64
76
  export { GameLogo } from './components/GameLogo';
65
77
  export type { GameLogoProps } from './components/GameLogo';
66
- export { YesNoCategoryLabel, CategoryIcon, ChevronRightIcon } from './components/PickerBrand';
67
- export type { Game, SportSummary, Proposition, GameEntry, RuleExpressionObject, PlaceEntryFlowProps, GameSelectorProps, EntrySubmissionProps, SelectionReviewProps, GameEntriesProps, ResolvedEntryData, ShareData, ScreenSize, EvaluateRuleRequest, EvaluateRuleResponse, CalculatePayoutRequest, CalculatePayoutResponse, EntryPreviewRequest, EntryPreviewResponse, } from './types';
78
+ export { YesNoCategoryLabel, CategoryIcon, ChevronRightIcon, LockIcon } from './components/PickerBrand';
79
+ export type { Game, SportSummary, Proposition, GameEntry, RuleExpressionObject, PlaceEntryFlowProps, GameSelectorProps, EntrySubmissionProps, SelectionReviewProps, GameEntriesProps, ResolvedEntryData, ShareData, PendingBet, ScreenSize, EvaluateRuleRequest, EvaluateRuleResponse, CalculatePayoutRequest, CalculatePayoutResponse, EntryPreviewRequest, EntryPreviewResponse, } from './types';
68
80
  export { BladeApiClient } from './utils/api-client';
69
81
  export type { BladeApiClientConfig } from './utils/api-client';
70
82
  export { formatCurrency, formatDate, groupPropositionsBySport, isValidSelectionCount, getSportDisplayName, resolveSportDisplayName, resolveCategoryDisplayName, resolvePrice, getJackpotInfo, contrastTextColour, } from './utils';
71
- export type { SportDisplayNameOverrides, CategoryDisplayNameOverrides } from './utils';
83
+ export type { SportDisplayNameOverrides, CategoryDisplayNameOverrides, ComingSoonSport } from './utils';
72
84
  export { getTheme, getThemeSet, applyTheme, useBladeTheme, useResolvedTheme, resolveTheme, isThemeSet, themes, themeSets, defaultTheme, greenTheme, greenLightTheme, darkTheme, goldTheme, goldLightTheme, defaultThemeSet, greenThemeSet, goldThemeSet, themeHeading, themeLabel, themeValue, themeAccent, themeTextAlt, themeTextAltMuted, themeBodyFont, themeHeadingFont, } from './utils/themes';
73
85
  export type { BladeTheme, BladeThemeSet, ColorScheme } from './utils/themes';
74
86
  export { useGames, usePropositions, useSports, useGameEntries, useCreateGameEntry, useGameMaxPayouts, usePlaceEntryFlow, useEvaluateRule, useCalculatePayout, useEntryPreview, } from './hooks';