@simple-parlay/components 1.30.5 → 1.30.6-pre.10

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 (131) hide show
  1. package/dist/index.cjs +1 -0
  2. package/dist/index.d.ts +1 -1
  3. package/dist/index.mjs +451 -374
  4. package/dist/react/components/CallGameCatalogue.d.ts +4 -0
  5. package/dist/react/components/CallPayoutTable.d.ts +6 -0
  6. package/dist/react/components/CallTicketBuilder.d.ts +3 -0
  7. package/dist/react/components/CorrelationChoicesSkeleton.d.ts +4 -0
  8. package/dist/react/components/CorrelationPricingDebug.d.ts +2 -0
  9. package/dist/react/components/CorrelationPropPlaceholder.d.ts +13 -0
  10. package/dist/react/components/DenseGameCatalogue.d.ts +2 -0
  11. package/dist/react/components/DenseUi.d.ts +30 -0
  12. package/dist/react/components/EntriesPage.d.ts +0 -4
  13. package/dist/react/components/EntrySubmission.d.ts +1 -1
  14. package/dist/react/components/EventSwipeModal.d.ts +19 -0
  15. package/dist/react/components/GameModeCard.d.ts +41 -6
  16. package/dist/react/components/GamePage.d.ts +3 -1
  17. package/dist/react/components/GameSelector.d.ts +9 -1
  18. package/dist/react/components/GameSetupPage.d.ts +6 -2
  19. package/dist/react/components/GameShelfCatalogue.d.ts +2 -0
  20. package/dist/react/components/GameShowcaseCatalogue.d.ts +9 -0
  21. package/dist/react/components/GameVariantCatalogue.d.ts +6 -0
  22. package/dist/react/components/HowToPlayButton.d.ts +3 -1
  23. package/dist/react/components/MatchRail.d.ts +30 -0
  24. package/dist/react/components/MultiLegTable.d.ts +3 -1
  25. package/dist/react/components/PageBackButton.d.ts +8 -0
  26. package/dist/react/components/PickerBrand.d.ts +7 -0
  27. package/dist/react/components/PlaceEntryProvider.d.ts +62 -5
  28. package/dist/react/components/PlaybookChooser.d.ts +7 -0
  29. package/dist/react/components/PropositionFilters.d.ts +3 -1
  30. package/dist/react/components/QuickPickButton.d.ts +3 -1
  31. package/dist/react/components/ScrollShelf.d.ts +25 -0
  32. package/dist/react/components/SelectionReview.d.ts +1 -1
  33. package/dist/react/components/SelectionVariantList.d.ts +20 -0
  34. package/dist/react/components/SelectionsPage.d.ts +1 -1
  35. package/dist/react/components/SportRail.d.ts +26 -0
  36. package/dist/react/components/SportSelector.d.ts +32 -2
  37. package/dist/react/components/_primitives/index.d.ts +9 -1
  38. package/dist/react/index.cjs +1 -0
  39. package/dist/react/index.d.ts +49 -16
  40. package/dist/react/index.mjs +451 -374
  41. package/dist/react/utils/dom.d.ts +7 -0
  42. package/dist/react/utils/index.d.ts +1 -1
  43. package/dist/react-native/components/CallGameCatalogue.d.ts +16 -0
  44. package/dist/react-native/components/CallPayoutTable.d.ts +6 -0
  45. package/dist/react-native/components/CallTicketBuilder.d.ts +33 -0
  46. package/dist/react-native/components/CorrelationChoicesSkeleton.d.ts +3 -0
  47. package/dist/react-native/components/CorrelationPricingDebug.d.ts +2 -0
  48. package/dist/react-native/components/CorrelationPropPlaceholder.d.ts +7 -0
  49. package/dist/react-native/components/DenseGameCatalogue.d.ts +2 -0
  50. package/dist/react-native/components/DenseUi.d.ts +59 -0
  51. package/dist/react-native/components/EntrySubmission.d.ts +1 -1
  52. package/dist/react-native/components/EventSwipeModal.d.ts +17 -0
  53. package/dist/react-native/components/GameModeCard.d.ts +41 -6
  54. package/dist/react-native/components/GamePage.d.ts +4 -1
  55. package/dist/react-native/components/GameSelector.d.ts +9 -1
  56. package/dist/react-native/components/GameSetupPage.d.ts +5 -14
  57. package/dist/react-native/components/GameShelfCatalogue.d.ts +7 -0
  58. package/dist/react-native/components/HowToPlayButton.d.ts +3 -1
  59. package/dist/react-native/components/LoadingIndicators.d.ts +1 -1
  60. package/dist/react-native/components/MatchRail.d.ts +36 -0
  61. package/dist/react-native/components/MultiLegTable.d.ts +3 -1
  62. package/dist/react-native/components/PageBackButton.d.ts +7 -0
  63. package/dist/react-native/components/PickerBrand.d.ts +6 -0
  64. package/dist/react-native/components/PlaceEntryProvider.d.ts +57 -5
  65. package/dist/react-native/components/PlaybookChooser.d.ts +7 -0
  66. package/dist/react-native/components/PropositionFilters.d.ts +3 -1
  67. package/dist/react-native/components/QuickPickButton.d.ts +3 -1
  68. package/dist/react-native/components/ScrollShelf.d.ts +23 -0
  69. package/dist/react-native/components/SelectionReview.d.ts +1 -1
  70. package/dist/react-native/components/SelectionVariantList.d.ts +20 -0
  71. package/dist/react-native/components/SelectionsPage.d.ts +1 -1
  72. package/dist/react-native/components/SportRail.d.ts +27 -0
  73. package/dist/react-native/components/SportSelector.d.ts +29 -2
  74. package/dist/react-native/components/_primitives/index.d.ts +12 -2
  75. package/dist/react-native/index.cjs +1 -0
  76. package/dist/react-native/index.d.ts +49 -16
  77. package/dist/react-native/index.mjs +438 -382
  78. package/dist/react-native/utils/index.d.ts +1 -1
  79. package/dist/shared/api-client.d.ts +4 -3
  80. package/dist/shared/call-presentation.d.ts +20 -0
  81. package/dist/shared/composite.d.ts +7 -0
  82. package/dist/shared/correlation-steering.d.ts +49 -0
  83. package/dist/shared/date-filters.d.ts +5 -4
  84. package/dist/shared/dense-ui.d.ts +54 -0
  85. package/dist/shared/favourite-sport.d.ts +2 -0
  86. package/dist/shared/game-artwork.d.ts +61 -0
  87. package/dist/shared/game-flow.d.ts +18 -1
  88. package/dist/shared/game-icons.d.ts +6 -3
  89. package/dist/shared/game-library.d.ts +58 -0
  90. package/dist/shared/game-set-bet.d.ts +0 -1
  91. package/dist/shared/game-shelf-artwork.d.ts +3 -0
  92. package/dist/shared/game-shelf-presentation.d.ts +43 -0
  93. package/dist/shared/game-variants.d.ts +5 -0
  94. package/dist/shared/hooks.d.ts +9 -8
  95. package/dist/shared/how-to-play-html.d.ts +1 -1
  96. package/dist/shared/how-to-play-logo.d.ts +1 -1
  97. package/dist/shared/menu-placement.d.ts +26 -0
  98. package/dist/shared/mirror.d.ts +88 -5
  99. package/dist/shared/pick-your-dividend.d.ts +2 -1
  100. package/dist/shared/picker-brand.d.ts +22 -0
  101. package/dist/shared/playbook.d.ts +29 -0
  102. package/dist/shared/selection-actions.d.ts +61 -0
  103. package/dist/shared/selection-caps.d.ts +68 -0
  104. package/dist/shared/selection-variants.d.ts +52 -0
  105. package/dist/shared/six-again.d.ts +105 -0
  106. package/dist/shared/swipe-deck.d.ts +1 -1
  107. package/dist/shared/themes.d.ts +22 -0
  108. package/dist/shared/types.d.ts +83 -3
  109. package/dist/shared/ui-system.d.ts +69 -0
  110. package/dist/shared/ui-variant.d.ts +16 -0
  111. package/dist/shared/use-call-payouts.d.ts +8 -0
  112. package/dist/shared/utils.d.ts +18 -6
  113. package/package.json +7 -8
  114. package/dist/index.js +0 -1
  115. package/dist/react/components/GameSetBetPage.d.ts +0 -21
  116. package/dist/react/components/LadderPage.d.ts +0 -21
  117. package/dist/react/components/MirrorPage.d.ts +0 -21
  118. package/dist/react/components/PerfectPickPage.d.ts +0 -22
  119. package/dist/react/components/PickYourDividendPage.d.ts +0 -21
  120. package/dist/react/components/RuleSetupPage.d.ts +0 -27
  121. package/dist/react/components/SafetyNetPage.d.ts +0 -16
  122. package/dist/react/index.js +0 -1
  123. package/dist/react/utils/design.d.ts +0 -55
  124. package/dist/react-native/components/GameSetBetPage.d.ts +0 -19
  125. package/dist/react-native/components/LadderPage.d.ts +0 -19
  126. package/dist/react-native/components/MirrorPage.d.ts +0 -19
  127. package/dist/react-native/components/PerfectPickPage.d.ts +0 -20
  128. package/dist/react-native/components/PickYourDividendPage.d.ts +0 -19
  129. package/dist/react-native/components/RuleSetupPage.d.ts +0 -23
  130. package/dist/react-native/components/SafetyNetPage.d.ts +0 -14
  131. package/dist/react-native/index.js +0 -1
@@ -0,0 +1,4 @@
1
+ import { CallGameCatalogueProps } from '../../shared/dense-ui';
2
+ export type { CallGameCatalogueProps } from '../../shared/dense-ui';
3
+ /** Catalogue discovery is local presentation state; only Play commits the game. */
4
+ export declare function CallGameCatalogue({ games, theme, onPlay, maxPayouts, quickPickLoading, showTier, showCategory }: CallGameCatalogueProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { CallPayoutView } from '../../shared/call-presentation';
2
+ import { BladeTheme } from '../../shared/themes';
3
+ export declare function CallPayoutTable({ view, theme }: {
4
+ view: CallPayoutView;
5
+ theme: BladeTheme;
6
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { CallTicketBuilderProps } from '../../shared/dense-ui';
2
+ export type { CallTicketBuilderProps } from '../../shared/dense-ui';
3
+ export declare function CallTicketBuilder(p: CallTicketBuilderProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ /** Only unselected choices refresh; selected rows and page controls stay usable. */
2
+ export declare function CorrelationChoicesSkeleton({ view }: {
3
+ view: 'list' | 'swipe';
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ /** Opt-in diagnostics, shared by selection and confirmation. */
2
+ export declare function CorrelationPricingDebug(): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,13 @@
1
+ import { default as React } from 'react';
2
+ /**
3
+ * Holds a row back while the choices are re-priced. The first load has no
4
+ * quote to show yet, so it paints a skeleton over the original's dimensions.
5
+ * After that the rows on screen are the last quote's: they stay readable,
6
+ * dimmed, until the next one lands, so a tap never wipes the list.
7
+ */
8
+ export declare function CorrelationPropPlaceholder({ id, kind, stretch, children }: {
9
+ id: number;
10
+ kind: 'text' | 'answers';
11
+ stretch?: boolean;
12
+ children: React.ReactNode;
13
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { CallGameCatalogueProps } from './CallGameCatalogue';
2
+ export declare function DenseGameCatalogue(p: CallGameCatalogueProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,30 @@
1
+ import { default as React } from 'react';
2
+ import { BladeTheme } from '../../shared/themes';
3
+ import { CallPayoutView } from '../../shared/call-presentation';
4
+ import { CallTicketBuilderProps, DenseTicketActionsProps } from '../../shared/dense-ui';
5
+ export declare function DenseSurface({ theme, children, className, }: {
6
+ theme: BladeTheme;
7
+ children: React.ReactNode;
8
+ className?: string;
9
+ }): import("react/jsx-runtime").JSX.Element;
10
+ export declare function DenseOutcome({ view, compact, }: {
11
+ view: CallPayoutView;
12
+ compact?: boolean;
13
+ }): import("react/jsx-runtime").JSX.Element;
14
+ export declare function DenseSportControl({ actions }: {
15
+ actions?: React.ReactNode;
16
+ }): import("react/jsx-runtime").JSX.Element;
17
+ /** The Dense system's page header for a game: the shared `PageHeader` (bar layout) titled with the game. */
18
+ export declare function DenseHeader({ onBack, title, children, }: {
19
+ onBack?: () => void;
20
+ title?: string;
21
+ children?: React.ReactNode;
22
+ }): import("react/jsx-runtime").JSX.Element;
23
+ export declare function DenseSelectionHeader({ onBack }: {
24
+ onBack?: () => void;
25
+ }): import("react/jsx-runtime").JSX.Element;
26
+ export declare function DenseTicketBuilder(p: CallTicketBuilderProps & {
27
+ quotedView: CallPayoutView;
28
+ }): import("react/jsx-runtime").JSX.Element;
29
+ export type { DenseTicketActionsProps } from '../../shared/dense-ui';
30
+ export declare function DenseTicketActions(p: DenseTicketActionsProps): import("react/jsx-runtime").JSX.Element;
@@ -12,8 +12,4 @@ export declare function EntriesPageTitle({ className, onBack, hideActions, }: {
12
12
  onBack?: () => void;
13
13
  hideActions?: boolean;
14
14
  }): import("react/jsx-runtime").JSX.Element;
15
- /**
16
- * Standalone page that shows past / pending entries.
17
- * Must be rendered inside a `<PlaceEntryProvider>`.
18
- */
19
15
  export declare function EntriesPage({ className, onSelectEntry, onBack, hideTitle, hideActions }: EntriesPageProps): import("react/jsx-runtime").JSX.Element;
@@ -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, authenticated, 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, componentById, showCustomAmount, betAmountLocked, betAmountLockedNote, canSubmit: canSubmitProp, authenticated, userBalance, onRecharge, boostBanner, }: EntrySubmissionProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,19 @@
1
+ import { Proposition } from '../types';
2
+ /**
3
+ * Swipe one fixture's questions, over the card that opened it.
4
+ *
5
+ * The full `SwipeDeck` always swipes the whole proposition list and navigates
6
+ * on its own, so a per-fixture deck is composed from the same parts —
7
+ * `useSwipeDeck` for the queue, `SwipeCard`/`SwipeCardFace` for the cards —
8
+ * over just the props handed in. Silks and composite legs come with the face.
9
+ *
10
+ * Native `<dialog>` carries the backdrop, focus trap and Esc-to-close.
11
+ */
12
+ export interface EventSwipeModalProps {
13
+ /** The fixture's answerable questions, in card order. */
14
+ propositions: Proposition[];
15
+ /** Fixture label shown above the deck. */
16
+ title: string;
17
+ onClose: () => void;
18
+ }
19
+ export declare function EventSwipeModal({ propositions, title, onClose }: EventSwipeModalProps): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,15 @@
1
1
  import { default as React } from 'react';
2
- /** Shared card kit for the unique-game pages — same anatomy as RuleSetupPage's ModeCard/EmblemTile. */
2
+ /** Shared kit for every game setup page: masthead, tiles, cards, motion. */
3
3
  export declare function hexA(color: string, alpha: number): string;
4
- /** Branded rounded tile carrying a game icon — the EmblemTile look, icon-driven. */
4
+ export declare function useBrandTileColors(): {
5
+ chip: string;
6
+ icon: string;
7
+ ball: string;
8
+ };
9
+ export declare function BrandTile({ size, children }: {
10
+ size?: number;
11
+ children: React.ReactNode;
12
+ }): import("react/jsx-runtime").JSX.Element;
5
13
  export declare function BrandChipTile({ iconUrl, size }: {
6
14
  iconUrl: string;
7
15
  size?: number;
@@ -11,14 +19,24 @@ export declare function BrandChipTile({ iconUrl, size }: {
11
19
  * Eyebrow is desktop-only and the lockup shrinks on phones, so the picker
12
20
  * starts near the top of the screen instead of ~180px down.
13
21
  */
14
- export declare function GamePageHeader({ eyebrow, iconUrl, gameName, tagline, className, }: {
22
+ export declare function GamePageHeader({ eyebrow, iconUrl, gameName, subtitle, tagline, className, }: {
15
23
  /** Uppercase kicker above the lockup. Hidden on phones — pass `null` to drop it everywhere. */
16
24
  eyebrow?: string | null;
17
25
  iconUrl: string;
18
26
  gameName: string;
27
+ /** Small line under the lockup, e.g. "8 legs". */
28
+ subtitle?: string | null;
19
29
  tagline?: string | null;
20
30
  className?: string;
21
31
  }): import("react/jsx-runtime").JSX.Element;
32
+ /**
33
+ * The sport step of a game's setup page — the one place in the flow the sport
34
+ * is chosen. Renders nothing when the game has a single sport, which is what
35
+ * lets those games skip the step entirely.
36
+ */
37
+ export declare function GameSportRow({ className }: {
38
+ className?: string;
39
+ }): import("react/jsx-runtime").JSX.Element;
22
40
  /**
23
41
  * A set of equal-weight options — ladders, dividends, nets. One snapping row on
24
42
  * a phone (a 2-up grid cost four rows), the usual grid from `sm` up.
@@ -36,19 +54,36 @@ export declare function LegPips({ legs, prizeBall }: {
36
54
  legs: number;
37
55
  prizeBall?: boolean;
38
56
  }): import("react/jsx-runtime").JSX.Element;
57
+ export declare function KitCard({ interactive, className, style, children, }: {
58
+ interactive?: boolean;
59
+ className?: string;
60
+ style?: React.CSSProperties;
61
+ children: React.ReactNode;
62
+ }): import("react/jsx-runtime").JSX.Element;
39
63
  /**
40
64
  * Tap-to-play mode card — the Safety Net card, generalised. ONE click applies
41
65
  * and continues; `children` renders below the divider (payout rows, notes).
42
66
  */
43
- export declare function GameModeCard({ tile, label, stat, detail, onSelect, children, }: {
67
+ export declare function GameModeCard({ tile, label, stat, detail, body, ariaLabel, onSelect, children, }: {
44
68
  /** Left tile, e.g. `<BrandChipTile iconUrl={...} />`. */
45
69
  tile: React.ReactNode;
46
- label: string;
70
+ label?: string;
47
71
  /** Short positioning hint chip, e.g. "Fastest". */
48
72
  stat?: string;
49
73
  detail?: string[];
74
+ body?: React.ReactNode;
75
+ ariaLabel?: string;
50
76
  onSelect: () => void;
51
77
  children?: React.ReactNode;
52
78
  }): import("react/jsx-runtime").JSX.Element;
53
- /** Scoped hover/press motion for the mode cards — render once per page. */
79
+ export declare function PlayModeCards({ iconUrl, pickLabel, pickDetail, quickDetail, onPickYourOwn, onQuickPick, className, }: {
80
+ iconUrl: string;
81
+ pickLabel?: string;
82
+ pickDetail: string[];
83
+ quickDetail: string[];
84
+ onPickYourOwn: () => void;
85
+ onQuickPick: () => void;
86
+ className?: string;
87
+ }): import("react/jsx-runtime").JSX.Element;
88
+ /** Scoped entrance + hover/press motion for the setup kit — render once per page. */
54
89
  export declare function GameModeKitStyles(): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,7 @@
1
+ import { GameVariant } from '../../shared/game-variants';
1
2
  import { GameFlow } from '../../shared/game-flow';
2
3
  export interface GamePageProps {
4
+ gameVariant?: GameVariant;
3
5
  /** Called after a game is selected (e.g. navigate to selections page) */
4
6
  onSelectGame?: () => void;
5
7
  onGameSetup?: (flow: GameFlow) => void;
@@ -37,4 +39,4 @@ export declare function GamePageActions({ onCancel, className }: {
37
39
  onSelectGame?: () => void;
38
40
  className?: string;
39
41
  }): import("react/jsx-runtime").JSX.Element | null;
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;
42
+ export declare function GamePage({ gameVariant, onSelectGame, onGameSetup, onRuleSetup, onGameSetBet, onPickYourDividend, onLadder, onMirror, onSafetyNet, onQuickPick, onCancel, hideTitle, hideActions, showPerfectPickSetup, showTierFilter, className }: GamePageProps): import("react/jsx-runtime").JSX.Element;
@@ -17,4 +17,12 @@ export declare function CardDividends({ tiers, modes, pydDividends, onPlayCount,
17
17
  bodyFont: string | undefined;
18
18
  headingFont: string | undefined;
19
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;
20
+ /** PressToPlayTile's stacked-tile mark, cropped — no card frame or caption. */
21
+ export declare function GameMark({ iconUrl, size, brandColor, iconColor, accentColor, }: {
22
+ iconUrl: string;
23
+ size: number;
24
+ brandColor: string;
25
+ iconColor: string;
26
+ accentColor?: string;
27
+ }): import("react/jsx-runtime").JSX.Element;
28
+ export declare function GameSelector({ games: allGames, selectedGame, onSelectGame, loading, error, theme: themeProp, colorScheme, uiVariant: uiVariantProp, gameVariant, showTier, showCategory, showTierFilter, onPropositionCountChange, onPropositionCountSelected, onQuickPickGame, quickPickLoading, maxPayouts, onlyListedGames, }: GameSelectorProps): import("react/jsx-runtime").JSX.Element;
@@ -4,10 +4,14 @@ export interface GameSetupPageProps {
4
4
  /** Called after Quick Pick fills the slip (navigate to the bet slip / confirm page). */
5
5
  onQuickPick?: () => void;
6
6
  onBack?: () => void;
7
- /** Hide the built-in eyebrow titles on the underlying pages. */
7
+ /** Hide the built-in page header. */
8
8
  hideTitle?: boolean;
9
9
  /** Label for the back link (where "back" leads). @default 'Games' */
10
10
  backLabel?: string;
11
11
  className?: string;
12
12
  }
13
- export declare function GameSetupPage({ onPickYourOwn, onQuickPick, onBack, hideTitle, backLabel, className, }: GameSetupPageProps): import("react/jsx-runtime").JSX.Element;
13
+ export declare function GameSetupPage({ onPickYourOwn, onQuickPick, onBack, hideTitle, backLabel, className, }: GameSetupPageProps): import("react/jsx-runtime").JSX.Element | null;
14
+ export declare function GameSetupPageTitle({ onBack, className }: {
15
+ onBack?: () => void;
16
+ className?: string;
17
+ }): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,2 @@
1
+ import { CallGameCatalogueProps } from '../../shared/dense-ui';
2
+ export declare function GameShelfCatalogue({ games, selectedGame, theme, onPlay, maxPayouts, quickPickLoading }: CallGameCatalogueProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { CallGameCatalogueProps } from '../../shared/dense-ui';
2
+ export interface GameShowcaseCatalogueProps extends CallGameCatalogueProps {
3
+ /** @deprecated Back lives in the page header now. */
4
+ onBack?: () => void;
5
+ /** Show only the given games, without dimmed tiles for curated games the API is not offering. */
6
+ onlyListedGames?: boolean;
7
+ }
8
+ /** A hero-led carousel of games with an all-games strip and a dividends view. Browsing is local; Press to play commits. */
9
+ export declare function GameShowcaseCatalogue({ games, theme, onPlay, maxPayouts, quickPickLoading, onlyListedGames }: GameShowcaseCatalogueProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { GameVariant } from '../../shared/game-variants';
2
+ import { CallGameCatalogueProps } from '../../shared/dense-ui';
3
+ /** Browsing is local; only Continue commits a game to the host flow. */
4
+ export declare function GameVariantCatalogue({ variant, games, selectedGame, theme, onPlay, maxPayouts, quickPickLoading, tierFilter, showTier, showCategory }: CallGameCatalogueProps & {
5
+ variant: GameVariant;
6
+ }): import("react/jsx-runtime").JSX.Element;
@@ -32,9 +32,11 @@ export interface HowToPlayButtonProps {
32
32
  title?: string;
33
33
  label?: string;
34
34
  variant?: 'pill' | 'icon';
35
+ /** Optional touch target size for compact layouts. */
36
+ touchSize?: number;
35
37
  colors: HowToPlayModalProps['colors'];
36
38
  bodyFont?: string;
37
39
  headingFont?: string;
38
40
  className?: string;
39
41
  }
40
- export declare function HowToPlayButton({ content, panel, theme, extra, title, label, variant, colors, bodyFont, headingFont, className, }: HowToPlayButtonProps): import("react/jsx-runtime").JSX.Element | null;
42
+ export declare function HowToPlayButton({ content, panel, theme, extra, title, label, variant, touchSize, colors, bodyFont, headingFont, className, }: HowToPlayButtonProps): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,30 @@
1
+ import { default as React } from 'react';
2
+ import { BladeTheme } from '../../shared/themes';
3
+ import { SelectionEvent } from '../../shared/selection-variants';
4
+ export interface ChipRailItem {
5
+ key: string;
6
+ label: string;
7
+ fullLabel?: string;
8
+ ariaLabel: string;
9
+ count?: number;
10
+ disabled?: boolean;
11
+ leading?: (on: boolean) => React.ReactNode;
12
+ trailing?: (on: boolean) => React.ReactNode;
13
+ }
14
+ export declare function ChipRail({ theme, items, activeKey, onSelect, noun, groupLabel, }: {
15
+ theme: BladeTheme;
16
+ items: ChipRailItem[];
17
+ activeKey?: string;
18
+ onSelect: (key: string) => void;
19
+ noun: string;
20
+ groupLabel: string;
21
+ }): import("react/jsx-runtime").JSX.Element;
22
+ export declare function MatchRail({ theme, events, activeKey, picked, onSelect, racing, }: {
23
+ theme: BladeTheme;
24
+ events: SelectionEvent[];
25
+ activeKey?: string;
26
+ /** How many picks each fixture holds, for the count on its chip. */
27
+ picked: (event: SelectionEvent) => number;
28
+ onSelect: (key: string) => void;
29
+ racing?: boolean;
30
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,9 +1,11 @@
1
+ import { Game } from '../../shared/types';
1
2
  export interface MultiLegTableTier {
2
3
  count: number;
3
4
  payout20: number;
4
5
  }
5
6
  export interface MultiLegTableProps {
6
7
  tiers: MultiLegTableTier[];
8
+ game?: Game | null;
7
9
  selectedCount?: number;
8
10
  onSelect: (count: number) => void;
9
11
  colors: {
@@ -37,4 +39,4 @@ export interface MultiLegTableProps {
37
39
  * Renders a compact Legs / Dividend / $X returns table identical to the
38
40
  * one on the Game Page. Used by both GameSelector and ConfirmPage.
39
41
  */
40
- export declare function MultiLegTable({ tiers, selectedCount, onSelect, colors: c, bodyFont, extraBetAmount, buttonLabel, columnLabel, buildYourOwn, quickPickOnly, onQuickPick, collapsible, expanded: expandedProp, onExpandedChange, summaryTiers }: MultiLegTableProps): import("react/jsx-runtime").JSX.Element;
42
+ export declare function MultiLegTable({ tiers, game, selectedCount, onSelect, colors: c, bodyFont, extraBetAmount, buttonLabel, columnLabel, buildYourOwn, quickPickOnly, onQuickPick, collapsible, expanded: expandedProp, onExpandedChange, summaryTiers }: MultiLegTableProps): import("react/jsx-runtime").JSX.Element;
@@ -12,6 +12,14 @@ export declare function PageBackLink({ onBack, label, }: {
12
12
  onBack: () => void;
13
13
  label?: string;
14
14
  }): import("react/jsx-runtime").JSX.Element;
15
+ export declare function PageHeader({ title, onBack, backLabel, actions, children, className, }: {
16
+ title: React.ReactNode;
17
+ onBack?: () => void;
18
+ backLabel?: React.ReactNode;
19
+ actions?: React.ReactNode;
20
+ children?: React.ReactNode;
21
+ className?: string;
22
+ }): import("react/jsx-runtime").JSX.Element;
15
23
  export declare function PageTitleBackRow({ onBack, hideActions: _hideActions, label, children, className, }: {
16
24
  onBack?: () => void;
17
25
  /** @deprecated Back arrow visibility is controlled by `onBack` only */
@@ -27,3 +27,10 @@ export declare function LockIcon({ size, color, className, }: {
27
27
  color?: string;
28
28
  className?: string;
29
29
  }): import("react/jsx-runtime").JSX.Element;
30
+ export declare function StarIcon({ size, color, filled, className, }: {
31
+ size?: number;
32
+ color?: string;
33
+ /** Solid for a pinned favourite, outline for one you can pin. */
34
+ filled?: boolean;
35
+ className?: string;
36
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,19 +1,42 @@
1
+ import { GameVariant } from '../../shared/game-variants';
2
+ import { GameLibrary } from '../../shared/game-library';
3
+ import { GameFlow } from '../../shared/game-flow';
4
+ import { PreviewCallPayouts } from '../../shared/use-call-payouts';
5
+ import { UiVariant } from '../../shared/ui-variant';
1
6
  import { default as React } from 'react';
7
+ import { BladeApiClient } from '../utils/api-client';
8
+ import { YesNoLabels, EntryCategory } from '../../shared/utils';
2
9
  import { Game, Proposition, SportSummary, GameEntry, TopPayoutsResponse, ShareData, ScreenSize } from '../types';
3
10
  import { BladeTheme, BladeThemeSet, ColorScheme } from '../utils/themes';
4
11
  import { SportDisplayNameOverrides, CategoryDisplayNameOverrides } from '../utils';
5
- import { RenderTeamLogo, GamePermittedRule } from '../../shared/types';
12
+ import { RenderTeamLogo, RenderPropositionSilk, GamePermittedRule, GameCategory } from '../../shared/types';
13
+ import { SelectionVariant } from '../../shared/selection-variants';
14
+ import { useCorrelationSteering } from '../../shared/correlation-steering';
6
15
  import { SameGameMultiEvent } from '../../shared/same-game-multi';
7
16
  export interface PlaceEntryContextValue {
17
+ gameLibrary: GameLibrary<PlaceEntryContextValue>;
18
+ getGameFlow: (game: Game | null | undefined) => GameFlow;
8
19
  theme: BladeTheme;
9
20
  bodyFont: string;
10
21
  headingFont: string;
11
22
  games: Game[];
12
23
  propositions: Proposition[];
24
+ /** Component legs of composite propositions, by id — for per-leg event labels. */
25
+ compositeComponentById: ReadonlyMap<number, Proposition>;
13
26
  propositionsForCategoryPicker: Proposition[];
27
+ /** Categories with an active game, for the category tiles. Taken from the games, not the propositions: the unscoped propositions feed is paged, so it can leave a whole category out. */
28
+ availableCategories: EntryCategory[];
14
29
  propositionsForSportPicker: Proposition[];
30
+ sportsForSelectedGame: string[];
31
+ /** The sports the switcher can offer, busiest first, with their pick counts. */
32
+ sportOptions: {
33
+ key: string;
34
+ count: number;
35
+ }[];
15
36
  sportSummaries: SportSummary[];
16
37
  loading: boolean;
38
+ /** Game metadata can render before the selection pool is ready. */
39
+ gameListLoading: boolean;
17
40
  error: string | null;
18
41
  step: 'game' | 'sport' | 'review' | 'confirm' | 'success';
19
42
  selectedGame: Game | null;
@@ -22,6 +45,8 @@ export interface PlaceEntryContextValue {
22
45
  selectedPropositionIds: number[];
23
46
  selectedPropositions: Proposition[];
24
47
  selectionValid: boolean;
48
+ showCorrelationDebug: boolean;
49
+ canSelectAnswer: (id: number, answer: 'yes' | 'no') => boolean;
25
50
  answeredCount: number;
26
51
  betAmount: number;
27
52
  setBetAmount: (v: number) => void;
@@ -33,6 +58,8 @@ export interface PlaceEntryContextValue {
33
58
  selectedRuleId: number | null;
34
59
  setSelectedRuleId: (id: number | null) => void;
35
60
  selectedRule: GamePermittedRule | null;
61
+ /** Read-only quote for the optional Call setup and ticket panels. */
62
+ previewCallPayouts?: PreviewCallPayouts;
36
63
  winningCounts: number[];
37
64
  payouts: Record<number, number>;
38
65
  overloadPayouts: Record<number, number>;
@@ -50,8 +77,11 @@ export interface PlaceEntryContextValue {
50
77
  goBack: () => void;
51
78
  reset: () => void;
52
79
  clearSelectedGame: () => void;
80
+ correlation: ReturnType<typeof useCorrelationSteering>;
81
+ correlationTargetCount: number;
53
82
  toggleSelection: (id: number, answer: 'yes' | 'no') => void;
54
- quickPickGame: (game: Game, count: number) => void;
83
+ quickPickGame: (game: Game, count: number, stake?: number) => void;
84
+ quickPickSelections: (count: number) => number;
55
85
  selectedCategory: string | null;
56
86
  setSelectedCategory: (category: string | null) => void;
57
87
  selectedSport: string | null;
@@ -66,12 +96,22 @@ export interface PlaceEntryContextValue {
66
96
  userId?: string | number;
67
97
  disableQuickPick: boolean;
68
98
  renderTeamLogo?: RenderTeamLogo;
99
+ renderPropositionSilk?: RenderPropositionSilk;
100
+ /** Optional presentation. Existing UI remains the default. */
101
+ uiVariant?: UiVariant;
102
+ /** Proposition layout override; undefined follows the UI variant. */
103
+ selectionVariant?: SelectionVariant;
104
+ /** Optional game discovery layout, independent of uiVariant. `cards`, `split` and `compare` are web-only; native renders `shelf`. */
105
+ gameVariant?: GameVariant;
106
+ /** Drop the per-fixture swipe deck the variant layouts offer. */
107
+ disableEventSwipe?: boolean;
108
+ enableSportFavourites?: boolean;
69
109
  filterSport?: string;
70
110
  initialSport?: string;
71
111
  initialEventId?: string;
72
112
  initialEventLabel?: string;
73
113
  sportBaseKey?: string;
74
- gameCategory?: 'sports' | 'casino' | 'racing';
114
+ gameCategory?: GameCategory;
75
115
  screenSize: ScreenSize;
76
116
  eventFilterActive: boolean;
77
117
  eventFilterLabel?: string;
@@ -97,6 +137,14 @@ export declare const PlaceEntryContext: React.Context<PlaceEntryContextValue | n
97
137
  */
98
138
  export declare function usePlaceEntry(): PlaceEntryContextValue;
99
139
  export interface PlaceEntryProviderProps {
140
+ /** Additional game implementations. Perfect Pick, H2H and Safety Net are built in. */
141
+ gameLibrary?: GameLibrary<PlaceEntryContextValue>;
142
+ /** Retain a client above route-keyed providers to reuse its scoped cache. */
143
+ apiClient?: BladeApiClient;
144
+ /** Fetch the selected sport's pool; use the sport catalogue for navigation. */
145
+ scopePropositionsToSport?: boolean;
146
+ /** Show calculated Correlation fair odds for development. Never enable in player-facing builds. */
147
+ showCorrelationDebug?: boolean;
100
148
  apiUrl: string;
101
149
  apiKey?: string;
102
150
  fetchImpl?: typeof fetch;
@@ -112,7 +160,7 @@ export interface PlaceEntryProviderProps {
112
160
  demoEntries?: GameEntry[];
113
161
  /** Demo dividend/max-payout data (the /max-payout fetch is skipped for demo data). */
114
162
  demoMaxPayouts?: Record<number, TopPayoutsResponse>;
115
- gameCategory?: 'sports' | 'casino' | 'racing';
163
+ gameCategory?: GameCategory;
116
164
  jurisdiction?: string;
117
165
  initialGameId?: number;
118
166
  filterSport?: string;
@@ -122,6 +170,15 @@ export interface PlaceEntryProviderProps {
122
170
  sportBaseKey?: string;
123
171
  disableQuickPick?: boolean;
124
172
  renderTeamLogo?: RenderTeamLogo;
173
+ renderPropositionSilk?: RenderPropositionSilk;
174
+ /** Optional presentation. Existing UI remains the default. */
175
+ uiVariant?: UiVariant;
176
+ selectionVariant?: SelectionVariant;
177
+ /** Optional game discovery layout, independent of uiVariant. `cards`, `split` and `compare` are web-only; native renders `shelf`. */
178
+ gameVariant?: GameVariant;
179
+ disableEventSwipe?: boolean;
180
+ yesNoLabels?: YesNoLabels;
181
+ enableSportFavourites?: boolean;
125
182
  onEntryPlaced?: (entry: GameEntry) => void;
126
183
  onBeforeSubmit?: (betAmount: number) => void | Promise<void>;
127
184
  onCancel?: () => void;
@@ -135,4 +192,4 @@ export interface PlaceEntryProviderProps {
135
192
  /** Map entry categories to UI labels. */
136
193
  categoryDisplayNames?: CategoryDisplayNameOverrides;
137
194
  }
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;
195
+ export declare function PlaceEntryProvider({ gameLibrary, apiClient: suppliedApiClient, scopePropositionsToSport, showCorrelationDebug, apiUrl, apiKey, fetchImpl, getAuthHeaders, userId, getUserBalance, children, theme: themeProp, colorScheme, demoGames, demoPropositions, demoEntries, demoMaxPayouts, gameCategory, jurisdiction, initialGameId, filterSport, initialSport, initialEventId, initialEventLabel, sportBaseKey, disableQuickPick, renderTeamLogo, renderPropositionSilk, uiVariant, selectionVariant, gameVariant, disableEventSwipe, enableSportFavourites, yesNoLabels, onEntryPlaced, onBeforeSubmit, onCancel, onShare, onRecharge, onClearEventFilter, screenSize, howToPlayMarkdown: howToPlayMarkdownProp, sportDisplayNames, categoryDisplayNames, }: PlaceEntryProviderProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { CallGameCatalogueProps } from '../../shared/dense-ui';
2
+ /**
3
+ * Playbook chooser: one featured hero (press-to-play tile, name, tagline,
4
+ * payout hook) above a comparison grid of every game. Tapping a card previews
5
+ * it in the hero; the tile plays it.
6
+ */
7
+ export declare function PlaybookChooser({ games, selectedGame, theme, onPlay, maxPayouts, quickPickLoading }: CallGameCatalogueProps): import("react/jsx-runtime").JSX.Element;
@@ -6,9 +6,10 @@ export interface FilterChipOption {
6
6
  export interface FilterChipGroup {
7
7
  label?: string;
8
8
  options: FilterChipOption[];
9
- value: string | null;
9
+ value: string | null | string[];
10
10
  onChange: (value: string | null) => void;
11
11
  }
12
+ export declare function isChipActive(groupValue: FilterChipGroup['value'], optValue: string | null): boolean;
12
13
  export interface FilterChipCarouselProps {
13
14
  groups: FilterChipGroup[];
14
15
  theme: BladeTheme;
@@ -22,3 +23,4 @@ export interface FilterChipRowProps extends FilterChipGroup {
22
23
  className?: string;
23
24
  }
24
25
  export declare function FilterChipRow({ label, options, value, onChange, theme, bodyFont, className, }: FilterChipRowProps): import("react/jsx-runtime").JSX.Element;
26
+ export declare function FilterChipPanel({ groups, theme, bodyFont, className }: FilterChipCarouselProps): import("react/jsx-runtime").JSX.Element | null;
@@ -7,5 +7,7 @@ export interface QuickPickButtonProps {
7
7
  yesColor?: string;
8
8
  noColor?: string;
9
9
  theme?: BladeTheme;
10
+ menu?: boolean;
11
+ expanded?: boolean;
10
12
  }
11
- export declare function QuickPickButton({ onPress, onDoubleClick, label, size, yesColor, noColor, theme: themeProp, }: QuickPickButtonProps): import("react/jsx-runtime").JSX.Element;
13
+ export declare function QuickPickButton({ onPress, onDoubleClick, label, size, yesColor, noColor, theme: themeProp, menu, expanded, }: QuickPickButtonProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,25 @@
1
+ import { default as React } from 'react';
2
+ import { BladeTheme } from '../types';
3
+ export interface ScrollShelfProps {
4
+ theme: BladeTheme;
5
+ /** Re-measure when the row's contents change. */
6
+ itemCount?: number;
7
+ /** Extra padding inside the scroller — cards need room for their shadow. */
8
+ contentClassName?: string;
9
+ /** Colour the edge fades melt into. Defaults to the page background. */
10
+ fadeColor?: string;
11
+ /** Drop the arrow discs — they overhang, which a pill-shaped shelf clips. */
12
+ hideArrows?: boolean;
13
+ className?: string;
14
+ /**
15
+ * `dragged()` is true right after a mouse drag-scroll, so item click handlers
16
+ * can bail instead of firing at the end of a swipe.
17
+ */
18
+ children: (dragged: () => boolean) => React.ReactNode;
19
+ }
20
+ /**
21
+ * The horizontal shelf every picker row sits in: drag to scroll with a mouse,
22
+ * edge fades that say "more this way", and mouse-only arrow discs. Shared so
23
+ * the filter chips and the sport rail scroll identically.
24
+ */
25
+ export declare function ScrollShelf({ theme, itemCount, contentClassName, fadeColor, hideArrows, className, children, }: ScrollShelfProps): 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, 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, componentById, addMorePicks, }: SelectionReviewProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,20 @@
1
+ import { Proposition } from '../types';
2
+ import { BladeTheme } from '../utils/themes';
3
+ import { SelectionVariant } from '../../shared/selection-variants';
4
+ import { RenderTeamLogo } from '../../shared/types';
5
+ export interface SelectionVariantListProps {
6
+ variant: SelectionVariant;
7
+ /** Already filtered and grouped by `groupPropositionsForDisplay`. */
8
+ groups: Record<string, Proposition[]>;
9
+ racing: boolean;
10
+ selections: Record<number, 'yes' | 'no'>;
11
+ onToggleSelection: (id: number, answer: 'yes' | 'no') => void;
12
+ /** True once the game's leg cap is full — unanswered props go quiet. */
13
+ atMax: boolean;
14
+ theme: BladeTheme;
15
+ renderTeamLogo?: RenderTeamLogo;
16
+ componentById?: ReadonlyMap<number, Proposition>;
17
+ /** Drop the per-fixture swipe deck, leaving the rows as the only way to answer. */
18
+ disableEventSwipe?: boolean;
19
+ }
20
+ export declare function SelectionVariantList({ variant, groups, racing, selections, onToggleSelection, atMax, theme, renderTeamLogo, componentById, disableEventSwipe, }: SelectionVariantListProps): import("react/jsx-runtime").JSX.Element;
@@ -21,7 +21,7 @@ export declare function SelectionsPageTitle({ className, onBack, onNext, hideAct
21
21
  onNext?: () => void;
22
22
  hideActions?: boolean;
23
23
  }): import("react/jsx-runtime").JSX.Element;
24
- /** Renders selection progress indicator. Must be inside `<PlaceEntryProvider>`. */
24
+ /** Renders the live bet slip. Must be inside `<PlaceEntryProvider>`. */
25
25
  export declare function SelectionsPageActions({ onNext, onBack, hideButtons, className, }: {
26
26
  onNext?: () => void;
27
27
  onBack?: () => void;