@simple-parlay/components 1.30.6-pre → 1.30.6-pre.11

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 (160) hide show
  1. package/dist/index.cjs +1 -0
  2. package/dist/index.d.ts +1 -1
  3. package/dist/index.mjs +653 -451
  4. package/dist/react/components/CallGameCatalogue.d.ts +4 -0
  5. package/dist/react/components/CallPayoutTable.d.ts +12 -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 +4 -0
  15. package/dist/react/components/GameCardParts.d.ts +28 -0
  16. package/dist/react/components/GameModeCard.d.ts +37 -6
  17. package/dist/react/components/GamePage.d.ts +3 -1
  18. package/dist/react/components/GameSelector.d.ts +1 -19
  19. package/dist/react/components/GameSetupPage.d.ts +6 -2
  20. package/dist/react/components/GameShelfCatalogue.d.ts +2 -0
  21. package/dist/react/components/GameShowcaseCatalogue.d.ts +11 -0
  22. package/dist/react/components/GameSkeletons.d.ts +24 -0
  23. package/dist/react/components/GameVariantCatalogue.d.ts +6 -0
  24. package/dist/react/components/HowToPlayButton.d.ts +5 -2
  25. package/dist/react/components/LoadingIndicators.d.ts +27 -10
  26. package/dist/react/components/MatchRail.d.ts +52 -0
  27. package/dist/react/components/MatchTopBar.d.ts +19 -0
  28. package/dist/react/components/MultiLegTable.d.ts +5 -1
  29. package/dist/react/components/PageBackButton.d.ts +35 -6
  30. package/dist/react/components/PageSkeletons.d.ts +24 -0
  31. package/dist/react/components/PickGroupSection.d.ts +37 -0
  32. package/dist/react/components/PickerBrand.d.ts +0 -5
  33. package/dist/react/components/PicksSkeletons.d.ts +30 -0
  34. package/dist/react/components/PlaceEntryProvider.d.ts +75 -6
  35. package/dist/react/components/PlaybookChooser.d.ts +7 -0
  36. package/dist/react/components/PropositionFilters.d.ts +2 -1
  37. package/dist/react/components/PropositionParts.d.ts +38 -0
  38. package/dist/react/components/QuickPickButton.d.ts +26 -1
  39. package/dist/react/components/QuickPickMenu.d.ts +19 -1
  40. package/dist/react/components/SafetyNetPage.d.ts +4 -1
  41. package/dist/react/components/ScrollShelf.d.ts +5 -1
  42. package/dist/react/components/SelectionReview.d.ts +1 -1
  43. package/dist/react/components/SelectionsPage.d.ts +7 -2
  44. package/dist/react/components/ShelfKit.d.ts +43 -0
  45. package/dist/react/components/SportRail.d.ts +13 -7
  46. package/dist/react/components/SportSelector.d.ts +2 -24
  47. package/dist/react/components/SuccessPage.d.ts +4 -2
  48. package/dist/react/components/SwipeDeck.d.ts +32 -3
  49. package/dist/react/components/YesNoMultiLogo.d.ts +13 -0
  50. package/dist/react/components/_primitives/index.d.ts +54 -13
  51. package/dist/react/index.cjs +1 -0
  52. package/dist/react/index.d.ts +46 -19
  53. package/dist/react/index.mjs +653 -451
  54. package/dist/react/utils/dom.d.ts +7 -0
  55. package/dist/react/utils/index.d.ts +1 -1
  56. package/dist/react/utils/themes.d.ts +1 -1
  57. package/dist/react-native/components/CallGameCatalogue.d.ts +17 -0
  58. package/dist/react-native/components/CallPayoutTable.d.ts +12 -0
  59. package/dist/react-native/components/CallTicketBuilder.d.ts +33 -0
  60. package/dist/react-native/components/CorrelationChoicesSkeleton.d.ts +3 -0
  61. package/dist/react-native/components/CorrelationPricingDebug.d.ts +2 -0
  62. package/dist/react-native/components/CorrelationPropPlaceholder.d.ts +7 -0
  63. package/dist/react-native/components/DenseGameCatalogue.d.ts +2 -0
  64. package/dist/react-native/components/DenseUi.d.ts +52 -0
  65. package/dist/react-native/components/EntrySubmission.d.ts +1 -1
  66. package/dist/react-native/components/EventSwipeModal.d.ts +5 -0
  67. package/dist/react-native/components/GameCardParts.d.ts +29 -0
  68. package/dist/react-native/components/GameModeCard.d.ts +34 -5
  69. package/dist/react-native/components/GamePage.d.ts +4 -1
  70. package/dist/react-native/components/GameSelector.d.ts +1 -20
  71. package/dist/react-native/components/GameSetupPage.d.ts +5 -14
  72. package/dist/react-native/components/GameShelfCatalogue.d.ts +2 -0
  73. package/dist/react-native/components/GameSkeletons.d.ts +23 -0
  74. package/dist/react-native/components/HowToPlayButton.d.ts +5 -2
  75. package/dist/react-native/components/LoadingIndicators.d.ts +23 -11
  76. package/dist/react-native/components/MatchRail.d.ts +57 -0
  77. package/dist/react-native/components/MatchTopBar.d.ts +17 -0
  78. package/dist/react-native/components/MultiLegTable.d.ts +5 -1
  79. package/dist/react-native/components/PageBackButton.d.ts +32 -9
  80. package/dist/react-native/components/PageSkeletons.d.ts +23 -0
  81. package/dist/react-native/components/PickGroupSection.d.ts +37 -0
  82. package/dist/react-native/components/PickerBrand.d.ts +0 -4
  83. package/dist/react-native/components/PicksSkeletons.d.ts +31 -0
  84. package/dist/react-native/components/PlaceEntryProvider.d.ts +68 -6
  85. package/dist/react-native/components/PlaybookChooser.d.ts +7 -0
  86. package/dist/react-native/components/PropositionFilters.d.ts +2 -1
  87. package/dist/react-native/components/PropositionParts.d.ts +35 -0
  88. package/dist/react-native/components/QuickPickButton.d.ts +26 -1
  89. package/dist/react-native/components/QuickPickMenu.d.ts +20 -1
  90. package/dist/react-native/components/SafetyNetPage.d.ts +4 -1
  91. package/dist/react-native/components/ScrollShelf.d.ts +8 -1
  92. package/dist/react-native/components/SelectionReview.d.ts +1 -1
  93. package/dist/react-native/components/SelectionsPage.d.ts +6 -2
  94. package/dist/react-native/components/ShelfKit.d.ts +62 -0
  95. package/dist/react-native/components/SportRail.d.ts +13 -7
  96. package/dist/react-native/components/SportSelector.d.ts +2 -29
  97. package/dist/react-native/components/SuccessPage.d.ts +4 -2
  98. package/dist/react-native/components/SwipeDeck.d.ts +37 -3
  99. package/dist/react-native/components/YesNoMultiLogo.d.ts +12 -0
  100. package/dist/react-native/components/_primitives/index.d.ts +93 -12
  101. package/dist/react-native/index.cjs +1 -0
  102. package/dist/react-native/index.d.ts +46 -19
  103. package/dist/react-native/index.mjs +561 -437
  104. package/dist/react-native/utils/index.d.ts +1 -1
  105. package/dist/react-native/utils/themes.d.ts +1 -1
  106. package/dist/shared/api-client.d.ts +4 -3
  107. package/dist/shared/button-ui.d.ts +62 -0
  108. package/dist/shared/call-presentation.d.ts +28 -0
  109. package/dist/shared/canvas.d.ts +14 -0
  110. package/dist/shared/correlation-steering.d.ts +56 -0
  111. package/dist/shared/date-filters.d.ts +0 -22
  112. package/dist/shared/dense-ui.d.ts +54 -0
  113. package/dist/shared/entry-progress.d.ts +38 -0
  114. package/dist/shared/game-artwork.d.ts +63 -0
  115. package/dist/shared/game-flow.d.ts +34 -1
  116. package/dist/shared/game-icons.d.ts +8 -4
  117. package/dist/shared/game-library.d.ts +58 -0
  118. package/dist/shared/game-set-bet.d.ts +0 -1
  119. package/dist/shared/game-shelf-artwork.d.ts +3 -0
  120. package/dist/shared/game-shelf-presentation.d.ts +79 -0
  121. package/dist/shared/game-variants.d.ts +5 -0
  122. package/dist/shared/hooks.d.ts +8 -8
  123. package/dist/shared/how-to-play-html.d.ts +1 -1
  124. package/dist/shared/how-to-play-logo.d.ts +1 -1
  125. package/dist/shared/menu-placement.d.ts +26 -0
  126. package/dist/shared/mirror.d.ts +55 -5
  127. package/dist/shared/picker-brand.d.ts +22 -6
  128. package/dist/shared/playbook.d.ts +29 -0
  129. package/dist/shared/selection-actions.d.ts +82 -4
  130. package/dist/shared/selection-caps.d.ts +124 -0
  131. package/dist/shared/selection-variants.d.ts +10 -1
  132. package/dist/shared/shelf-covers.d.ts +92 -0
  133. package/dist/shared/shelf-ui.d.ts +47 -0
  134. package/dist/shared/swipe-deck.d.ts +11 -1
  135. package/dist/shared/themes.d.ts +70 -8
  136. package/dist/shared/tokens.d.ts +7 -0
  137. package/dist/shared/types.d.ts +49 -3
  138. package/dist/shared/ui-system.d.ts +70 -0
  139. package/dist/shared/ui-variant.d.ts +16 -0
  140. package/dist/shared/use-call-payouts.d.ts +8 -0
  141. package/dist/shared/utils.d.ts +20 -7
  142. package/package.json +7 -8
  143. package/dist/index.js +0 -1
  144. package/dist/react/components/GameSetBetPage.d.ts +0 -21
  145. package/dist/react/components/LadderPage.d.ts +0 -21
  146. package/dist/react/components/MirrorPage.d.ts +0 -21
  147. package/dist/react/components/PerfectPickPage.d.ts +0 -22
  148. package/dist/react/components/PickYourDividendPage.d.ts +0 -21
  149. package/dist/react/components/RuleSetupPage.d.ts +0 -27
  150. package/dist/react/components/SixAgainPage.d.ts +0 -16
  151. package/dist/react/index.js +0 -1
  152. package/dist/react/utils/design.d.ts +0 -55
  153. package/dist/react-native/components/GameSetBetPage.d.ts +0 -19
  154. package/dist/react-native/components/LadderPage.d.ts +0 -19
  155. package/dist/react-native/components/MirrorPage.d.ts +0 -19
  156. package/dist/react-native/components/PerfectPickPage.d.ts +0 -20
  157. package/dist/react-native/components/PickYourDividendPage.d.ts +0 -19
  158. package/dist/react-native/components/RuleSetupPage.d.ts +0 -23
  159. package/dist/react-native/components/SixAgainPage.d.ts +0 -14
  160. package/dist/react-native/index.js +0 -1
@@ -0,0 +1,37 @@
1
+ import { default as React } from 'react';
2
+ import { Proposition } from '../types';
3
+ import { BladeTheme } from '../utils/themes';
4
+ import { PickGroup, SelectionCaps } from '../../shared/selection-caps';
5
+ import { Game } from '../../shared/types';
6
+ /** Stroked paths on a 24×24 box, in currentColor unless told otherwise. RN twin: PathIcon in the RN section. */
7
+ export declare function PathIcon({ paths, size, strokeWidth, color }: {
8
+ paths: readonly string[];
9
+ size: number;
10
+ strokeWidth: number;
11
+ color?: string;
12
+ }): import("react/jsx-runtime").JSX.Element;
13
+ export interface PickGroupSectionProps {
14
+ theme: BladeTheme;
15
+ group: PickGroup;
16
+ selections: Record<number, 'yes' | 'no'>;
17
+ caps: SelectionCaps;
18
+ game?: Game | null;
19
+ /** Every proposition on offer, for working out which pick a swap replaces. */
20
+ pool: readonly Proposition[];
21
+ componentById?: ReadonlyMap<number, Proposition> | null;
22
+ pickOrder?: readonly number[];
23
+ /** Stretch to fill the card (the last group of a shelf card). */
24
+ last?: boolean;
25
+ /** One row. `swap` is set on a row a full limit folded: answering it swaps it in, resolving the picks it replaces on the tap. */
26
+ renderRow: (prop: Proposition, opts: {
27
+ top: boolean;
28
+ swap?: () => readonly number[];
29
+ }) => React.ReactNode;
30
+ }
31
+ /**
32
+ * One group of a match's questions (the line, the total, the players): a rounded rail tile (icon, label, the limit
33
+ * when there are more options than it allows) beside its rows. Once the limit is full, the rows it blocks fold away
34
+ * in place behind one tile; opened, each of them swaps in for the held pick. Every system's picks page draws it.
35
+ * RN twin: PickGroupSection in the RN components.
36
+ */
37
+ export declare function PickGroupSection({ theme, group, selections, caps, game, pool, componentById, pickOrder, last, renderRow }: PickGroupSectionProps): import("react/jsx-runtime").JSX.Element;
@@ -12,11 +12,6 @@ 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;
20
15
  export declare function ChevronRightIcon({ size, color, className, }: {
21
16
  size?: number;
22
17
  color?: string;
@@ -0,0 +1,30 @@
1
+ import { BladeTheme } from '../../shared/themes';
2
+ import { SelectionVariant } from '../../shared/selection-variants';
3
+ /**
4
+ * Picks-screen loading skeletons, one per layout the loaded list can take.
5
+ * Each copies its layout's rails, shells and row anatomy — the paddings,
6
+ * radii and the Yes/No pair at the system's real size — from SportSelector,
7
+ * SportRail, ChipRail, SelectionVariantList and DenseUi, so nothing moves when
8
+ * the propositions land. Twin: react-native/components/PicksSkeletons.
9
+ */
10
+ export type PicksSkeletonLayout = 'kit' | 'split' | 'split-inline' | 'compact' | 'shelf' | 'call' | 'dense';
11
+ /** The layout SportSelector draws for the selection variant it resolved. */
12
+ export declare function picksSkeletonLayout(variant?: SelectionVariant): PicksSkeletonLayout;
13
+ export interface PicksSkeletonProps {
14
+ theme: BladeTheme;
15
+ /** The selection layout SportSelector resolved; undefined is the packaged list. */
16
+ variant?: SelectionVariant;
17
+ /** Sports on offer when the screen carries the sport step; undefined when it has none. */
18
+ sports?: number;
19
+ /** The rail's heading line carries controls (the Swipe-all pill). */
20
+ actions?: boolean;
21
+ /** The packaged list's matchup header fill — it follows the game colour. */
22
+ headerBg?: string;
23
+ /** The packaged list's raised-card shadow. */
24
+ shadow?: string;
25
+ /** The host draws club badges. */
26
+ logos?: boolean;
27
+ /** Fixtures carry a Swipe pill. */
28
+ swipe?: boolean;
29
+ }
30
+ export declare function PicksSkeleton({ theme, variant, sports, actions, headerBg, shadow, logos, swipe, }: PicksSkeletonProps): import("react/jsx-runtime").JSX.Element;
@@ -1,11 +1,23 @@
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, RenderPropositionSilk, GamePermittedRule } from '../../shared/types';
12
+ import { RenderTeamLogo, RenderPropositionSilk, GamePermittedRule, GameCategory } from '../../shared/types';
6
13
  import { SelectionVariant } from '../../shared/selection-variants';
14
+ import { SwipeVariant } from '../../shared/swipe-deck';
15
+ import { useCorrelationSteering } from '../../shared/correlation-steering';
16
+ import { QuickPickMode } from '../../shared/selection-caps';
7
17
  import { SameGameMultiEvent } from '../../shared/same-game-multi';
8
18
  export interface PlaceEntryContextValue {
19
+ gameLibrary: GameLibrary<PlaceEntryContextValue>;
20
+ getGameFlow: (game: Game | null | undefined) => GameFlow;
9
21
  theme: BladeTheme;
10
22
  bodyFont: string;
11
23
  headingFont: string;
@@ -14,6 +26,8 @@ export interface PlaceEntryContextValue {
14
26
  /** Component legs of composite propositions, by id — for per-leg event labels. */
15
27
  compositeComponentById: ReadonlyMap<number, Proposition>;
16
28
  propositionsForCategoryPicker: Proposition[];
29
+ /** 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. */
30
+ availableCategories: EntryCategory[];
17
31
  propositionsForSportPicker: Proposition[];
18
32
  sportsForSelectedGame: string[];
19
33
  /** The sports the switcher can offer, busiest first, with their pick counts. */
@@ -23,6 +37,8 @@ export interface PlaceEntryContextValue {
23
37
  }[];
24
38
  sportSummaries: SportSummary[];
25
39
  loading: boolean;
40
+ /** Game metadata can render before the selection pool is ready. */
41
+ gameListLoading: boolean;
26
42
  error: string | null;
27
43
  step: 'game' | 'sport' | 'review' | 'confirm' | 'success';
28
44
  selectedGame: Game | null;
@@ -31,7 +47,11 @@ export interface PlaceEntryContextValue {
31
47
  selectedPropositionIds: number[];
32
48
  selectedPropositions: Proposition[];
33
49
  selectionValid: boolean;
50
+ showCorrelationDebug: boolean;
51
+ canSelectAnswer: (id: number, answer: 'yes' | 'no') => boolean;
34
52
  answeredCount: number;
53
+ /** Answered ids in the order they were picked — `selections` keys are numeric, so they sort. */
54
+ pickOrder: number[];
35
55
  betAmount: number;
36
56
  setBetAmount: (v: number) => void;
37
57
  expectedCorrect: number;
@@ -42,6 +62,8 @@ export interface PlaceEntryContextValue {
42
62
  selectedRuleId: number | null;
43
63
  setSelectedRuleId: (id: number | null) => void;
44
64
  selectedRule: GamePermittedRule | null;
65
+ /** Read-only quote for the optional Call setup and ticket panels. */
66
+ previewCallPayouts?: PreviewCallPayouts;
45
67
  winningCounts: number[];
46
68
  payouts: Record<number, number>;
47
69
  overloadPayouts: Record<number, number>;
@@ -52,15 +74,39 @@ export interface PlaceEntryContextValue {
52
74
  userBalance?: number;
53
75
  hasSufficientBalance: boolean;
54
76
  refreshUserBalance: () => Promise<void>;
55
- handleSubmit: () => Promise<void>;
77
+ /** Two-stage: the first call arms `confirmPending`, the second places. Resolves true once placed. */
78
+ handleSubmit: () => Promise<boolean>;
79
+ /** The first Place entry press landed — buttons read "Confirm entry" until placed or the entry changes. */
80
+ confirmPending: boolean;
81
+ /** Integrator's own entry id, shown on the success page in place of BLADE's `#id`. */
82
+ entryReference?: string;
56
83
  selectGame: (game: Game) => void;
57
84
  goToSportSelection: () => void;
58
85
  goToConfirmation: () => void;
59
86
  goBack: () => void;
60
87
  reset: () => void;
61
88
  clearSelectedGame: () => void;
89
+ correlation: ReturnType<typeof useCorrelationSteering>;
90
+ correlationTargetCount: number;
62
91
  toggleSelection: (id: number, answer: 'yes' | 'no') => void;
63
92
  quickPickGame: (game: Game, count: number, stake?: number) => void;
93
+ /** Fills the empty slots only — existing picks stay. Returns the total picked after. */
94
+ /** fill (default) keeps the player's picks and fills or trims to `count`; replace randomises the whole card. */
95
+ quickPickSelections: (count: number, mode?: QuickPickMode) => number;
96
+ /** Ids QuickPick answered that still hold its answer, so rows can say so. */
97
+ quickPickedIds: number[];
98
+ /** Clear picks: drop every pick at once. Undoable. */
99
+ clearSelections: () => void;
100
+ /** Pick `id` in place of `out` (the picks holding its slot) as one undoable change. */
101
+ swapSelection: (id: number, answer: 'yes' | 'no', out: readonly number[]) => void;
102
+ /** The last bulk change (QuickPick fill, Clear picks) while it can still be taken back. */
103
+ /** The last bulk change, for the snackbar: what QuickPick or Clear picks did. */
104
+ selectionUndo: {
105
+ message: string;
106
+ kind: 'quickpick' | 'clear' | 'swap';
107
+ } | null;
108
+ undoSelectionChange: () => void;
109
+ dismissSelectionUndo: () => void;
64
110
  selectedCategory: string | null;
65
111
  setSelectedCategory: (category: string | null) => void;
66
112
  selectedSport: string | null;
@@ -76,17 +122,23 @@ export interface PlaceEntryContextValue {
76
122
  disableQuickPick: boolean;
77
123
  renderTeamLogo?: RenderTeamLogo;
78
124
  renderPropositionSilk?: RenderPropositionSilk;
79
- /** Proposition layout for the selection screens; undefined = the packaged list. */
125
+ /** Optional presentation. Existing UI remains the default. */
126
+ uiVariant?: UiVariant;
127
+ /** Proposition layout override; undefined follows the UI variant. */
80
128
  selectionVariant?: SelectionVariant;
129
+ /** Optional game discovery layout, independent of uiVariant. `cards`, `split` and `compare` are web-only; native renders `shelf`. */
130
+ gameVariant?: GameVariant;
81
131
  /** Drop the per-fixture swipe deck the variant layouts offer. */
82
132
  disableEventSwipe?: boolean;
133
+ /** Look of the swipe view: the card `stack` (default) or the one-question `run`. */
134
+ swipeVariant?: SwipeVariant;
83
135
  enableSportFavourites?: boolean;
84
136
  filterSport?: string;
85
137
  initialSport?: string;
86
138
  initialEventId?: string;
87
139
  initialEventLabel?: string;
88
140
  sportBaseKey?: string;
89
- gameCategory?: 'sports' | 'casino' | 'racing';
141
+ gameCategory?: GameCategory;
90
142
  screenSize: ScreenSize;
91
143
  eventFilterActive: boolean;
92
144
  eventFilterLabel?: string;
@@ -112,6 +164,14 @@ export declare const PlaceEntryContext: React.Context<PlaceEntryContextValue | n
112
164
  */
113
165
  export declare function usePlaceEntry(): PlaceEntryContextValue;
114
166
  export interface PlaceEntryProviderProps {
167
+ /** Additional game implementations. Perfect Pick, H2H and Safety Net are built in. */
168
+ gameLibrary?: GameLibrary<PlaceEntryContextValue>;
169
+ /** Retain a client above route-keyed providers to reuse its scoped cache. */
170
+ apiClient?: BladeApiClient;
171
+ /** Fetch the selected sport's pool; use the sport catalogue for navigation. */
172
+ scopePropositionsToSport?: boolean;
173
+ /** Show calculated Correlation fair odds for development. Never enable in player-facing builds. */
174
+ showCorrelationDebug?: boolean;
115
175
  apiUrl: string;
116
176
  apiKey?: string;
117
177
  fetchImpl?: typeof fetch;
@@ -127,7 +187,7 @@ export interface PlaceEntryProviderProps {
127
187
  demoEntries?: GameEntry[];
128
188
  /** Demo dividend/max-payout data (the /max-payout fetch is skipped for demo data). */
129
189
  demoMaxPayouts?: Record<number, TopPayoutsResponse>;
130
- gameCategory?: 'sports' | 'casino' | 'racing';
190
+ gameCategory?: GameCategory;
131
191
  jurisdiction?: string;
132
192
  initialGameId?: number;
133
193
  filterSport?: string;
@@ -138,11 +198,20 @@ export interface PlaceEntryProviderProps {
138
198
  disableQuickPick?: boolean;
139
199
  renderTeamLogo?: RenderTeamLogo;
140
200
  renderPropositionSilk?: RenderPropositionSilk;
201
+ /** Optional presentation. Existing UI remains the default. */
202
+ uiVariant?: UiVariant;
141
203
  selectionVariant?: SelectionVariant;
204
+ /** Optional game discovery layout, independent of uiVariant. `cards`, `split` and `compare` are web-only; native renders `shelf`. */
205
+ gameVariant?: GameVariant;
142
206
  disableEventSwipe?: boolean;
207
+ /** Look of the swipe view: the card `stack` (default) or the one-question `run`. */
208
+ swipeVariant?: SwipeVariant;
209
+ yesNoLabels?: YesNoLabels;
143
210
  enableSportFavourites?: boolean;
144
211
  onEntryPlaced?: (entry: GameEntry) => void;
145
212
  onBeforeSubmit?: (betAmount: number) => void | Promise<void>;
213
+ /** Integrator's own entry id — shown where "Entry #id successfully submitted" names the entry. Set it from `onEntryPlaced`. */
214
+ entryReference?: string;
146
215
  onCancel?: () => void;
147
216
  onShare?: (data: ShareData) => void;
148
217
  onRecharge?: () => void;
@@ -154,4 +223,4 @@ export interface PlaceEntryProviderProps {
154
223
  /** Map entry categories to UI labels. */
155
224
  categoryDisplayNames?: CategoryDisplayNameOverrides;
156
225
  }
157
- 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, renderPropositionSilk, selectionVariant, disableEventSwipe, enableSportFavourites, onEntryPlaced, onBeforeSubmit, onCancel, onShare, onRecharge, onClearEventFilter, screenSize, howToPlayMarkdown: howToPlayMarkdownProp, sportDisplayNames, categoryDisplayNames, }: PlaceEntryProviderProps): import("react/jsx-runtime").JSX.Element;
226
+ 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, swipeVariant, enableSportFavourites, yesNoLabels, onEntryPlaced, onBeforeSubmit, entryReference, 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;
@@ -0,0 +1,38 @@
1
+ import { default as React } from 'react';
2
+ import { Proposition, RenderTeamLogo, SportSelectorProps } from '../../shared/types';
3
+ import { BladeTheme } from '../../shared/themes';
4
+ /** A header key names two teams when it splits on " vs " — `MatchupTeams`' own test. */
5
+ export declare function isMatchupKey(key?: string | null): boolean;
6
+ /** The runner's silk, for single-event rows; under an "A vs B" header the logos are already up top. */
7
+ export declare function runnerLogo(prop: Proposition, renderTeamLogo: SportSelectorProps['renderTeamLogo'], headerKey?: string | null): React.ReactNode;
8
+ export declare function CompositePropositionText({ prop, colors: c, size, componentById, textClass: textClassOverride, textColor, eventLabels, renderTeamLogo, theme, }: {
9
+ prop: Proposition;
10
+ colors: {
11
+ primary: string;
12
+ text: string;
13
+ textMuted?: string;
14
+ textAltMuted?: string;
15
+ backgroundAlt?: string;
16
+ border?: string;
17
+ };
18
+ size?: 'sm' | 'md';
19
+ componentById?: ReadonlyMap<number, Proposition>;
20
+ /** Replaces the size-derived type classes — the variant layouts set their own. */
21
+ textClass?: string;
22
+ /** Replaces `colors.text` on the question itself, legs included. */
23
+ textColor?: string;
24
+ /**
25
+ * How a leg names its fixture. `show` stacks the label above each leg —
26
+ * right where rows have room. `hover` keeps the legs on one line and puts
27
+ * the fixture in the tooltip instead, for compact rows like the slip and
28
+ * the confirm list. Either way the title attribute carries it.
29
+ */
30
+ eventLabels?: 'show' | 'hover';
31
+ /**
32
+ * Supplied, a leg names its fixture with the two club badges instead of a
33
+ * text chip — far lighter in a row, and the full matchup stays in the
34
+ * tooltip. Falls back to the text chip when the host renders no logos.
35
+ */
36
+ renderTeamLogo?: RenderTeamLogo;
37
+ theme?: BladeTheme;
38
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,4 @@
1
+ import { default as React } from 'react';
1
2
  import { BladeTheme } from '../types';
2
3
  export interface QuickPickButtonProps {
3
4
  onPress: () => void;
@@ -7,5 +8,29 @@ export interface QuickPickButtonProps {
7
8
  yesColor?: string;
8
9
  noColor?: string;
9
10
  theme?: BladeTheme;
11
+ menu?: boolean;
12
+ expanded?: boolean;
13
+ /** What a press will do, e.g. "Fill 6 for me". Shown by the deck style. */
14
+ hint?: string;
10
15
  }
11
- export declare function QuickPickButton({ onPress, onDoubleClick, label, size, yesColor, noColor, theme: themeProp, }: QuickPickButtonProps): import("react/jsx-runtime").JSX.Element;
16
+ export interface QuickPickDeckButtonProps {
17
+ onPress: () => void;
18
+ onDoubleClick?: () => void;
19
+ /** What a press will do, e.g. "Fill 6 for me". */
20
+ hint?: string;
21
+ /** solid on its own; paper beside a main button, so that one stays the first choice. */
22
+ tone?: 'solid' | 'paper';
23
+ theme?: BladeTheme;
24
+ menu?: boolean;
25
+ expanded?: boolean;
26
+ disabled?: boolean;
27
+ style?: React.CSSProperties;
28
+ }
29
+ /** QuickPick's shuffle mark. Decorative unless given a role and label. */
30
+ export declare function QuickPickIcon({ size, color, ...rest }: {
31
+ size?: number;
32
+ color?: string;
33
+ } & React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
34
+ /** QuickPick as a small deck: the game icons' stacked tiles, an accent shuffle tile and a line saying what it will do. */
35
+ export declare function QuickPickDeckButton({ onPress, onDoubleClick, hint, tone, theme: themeProp, menu, expanded, disabled, style, }: QuickPickDeckButtonProps): import("react/jsx-runtime").JSX.Element;
36
+ export declare function QuickPickButton({ onPress, onDoubleClick, label, size, yesColor, noColor, theme: themeProp, menu, expanded, hint, }: QuickPickButtonProps): import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,5 @@
1
+ import { default as React } from 'react';
2
+ import { BladeTheme } from '../../shared/themes';
1
3
  export interface QuickPickMenuColors {
2
4
  background: string;
3
5
  backgroundAlt: string;
@@ -6,6 +8,8 @@ export interface QuickPickMenuColors {
6
8
  }
7
9
  export interface QuickPickMenuProps {
8
10
  counts: number[];
11
+ /** The size the card is on now, marked in the Shelf menu. */
12
+ current?: number;
9
13
  onPick: (count: number) => void;
10
14
  onDoubleAction?: () => void;
11
15
  colors: QuickPickMenuColors;
@@ -13,5 +17,19 @@ export interface QuickPickMenuProps {
13
17
  direction?: 'down' | 'up';
14
18
  /** Themed elevation for the dropdown (pass `elevatedShadow(theme)`). */
15
19
  menuShadow?: string;
20
+ /** Rounds the menu's corners to the theme's radius when set. */
21
+ theme?: BladeTheme;
22
+ /** What the trigger will do, shown by the deck QuickPick style. */
23
+ hint?: string;
24
+ /** "Fill the other 6": keep the player's picks, fill the empty slots. */
25
+ onFill?: () => void;
26
+ fillLabel?: string;
27
+ /** "Randomise all 8": throw the card away and pick it afresh. */
28
+ onRandomise?: () => void;
29
+ randomiseLabel?: string;
16
30
  }
17
- export declare function QuickPickMenu({ counts, onPick, onDoubleAction, colors, align, direction, menuShadow }: QuickPickMenuProps): import("react/jsx-runtime").JSX.Element;
31
+ /** A list / menu row: the shared hoverTint over the row, nothing else. RN twin: MenuRow in the RN QuickPickMenu. */
32
+ export declare function MenuRow({ theme: themeProp, style, ...rest }: React.ButtonHTMLAttributes<HTMLButtonElement> & {
33
+ theme?: BladeTheme;
34
+ }): import("react/jsx-runtime").JSX.Element;
35
+ export declare function QuickPickMenu({ counts, current, onPick, onDoubleAction, colors, align, direction, menuShadow, theme, hint, onFill, fillLabel, onRandomise, randomiseLabel }: QuickPickMenuProps): import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,4 @@
1
+ import { default as React } from 'react';
1
2
  import { SafetyNetConfig } from '../../shared/safety-net';
2
3
  export interface SafetyNetPageProps {
3
4
  onQuickPick?: () => void;
@@ -7,10 +8,12 @@ export interface SafetyNetPageProps {
7
8
  config?: SafetyNetConfig | null;
8
9
  backLabel?: string;
9
10
  className?: string;
11
+ /** Replace the default game heading; pass null when the host supplies a header. */
12
+ header?: React.ReactNode;
10
13
  }
11
14
  export declare function SafetyNetPageTitle({ className, onBack, hideActions, }: {
12
15
  className?: string;
13
16
  onBack?: () => void;
14
17
  hideActions?: boolean;
15
18
  }): 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;
19
+ export declare function SafetyNetPage({ onQuickPick, onPickYourOwn, onBack, hideTitle, header, config: configOverride, backLabel, className, }: SafetyNetPageProps): import("react/jsx-runtime").JSX.Element;
@@ -6,6 +6,10 @@ export interface ScrollShelfProps {
6
6
  itemCount?: number;
7
7
  /** Extra padding inside the scroller — cards need room for their shadow. */
8
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;
9
13
  className?: string;
10
14
  /**
11
15
  * `dragged()` is true right after a mouse drag-scroll, so item click handlers
@@ -18,4 +22,4 @@ export interface ScrollShelfProps {
18
22
  * edge fades that say "more this way", and mouse-only arrow discs. Shared so
19
23
  * the filter chips and the sport rail scroll identically.
20
24
  */
21
- export declare function ScrollShelf({ theme, itemCount, contentClassName, className, children, }: ScrollShelfProps): import("react/jsx-runtime").JSX.Element;
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;
@@ -6,7 +6,7 @@ export interface SelectionsPageProps {
6
6
  onBack?: () => void;
7
7
  /** Hide the built-in title section (use `<SelectionsPageTitle />` separately) */
8
8
  hideTitle?: boolean;
9
- /** Hide the built-in action buttons (use `<SelectionsPageActions />` separately) */
9
+ /** Hide the built-in action buttons (use `<SelectionsPageActions />` separately, with `<SelectionUndoSnackbar />` just above it) */
10
10
  hideActions?: boolean;
11
11
  defaultView?: SelectionsView;
12
12
  view?: SelectionsView;
@@ -21,7 +21,12 @@ 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 the live bet slip. Must be inside `<PlaceEntryProvider>`. */
24
+ /**
25
+ * What the last QuickPick or Clear picks did, with Undo: a white bar just above the dock, gone after 6s
26
+ * (held while hovered or focused). Game Shelf picks only. Hosts that render `<SelectionsPageActions />`
27
+ * themselves mount this just above their dock, inside the same sticky block.
28
+ */
29
+ export declare function SelectionUndoSnackbar(): import("react/jsx-runtime").JSX.Element | null;
25
30
  export declare function SelectionsPageActions({ onNext, onBack, hideButtons, className, }: {
26
31
  onNext?: () => void;
27
32
  onBack?: () => void;
@@ -0,0 +1,43 @@
1
+ import { default as React } from 'react';
2
+ import { BladeTheme } from '../types';
3
+ import { DrawnCover } from '../../shared/shelf-covers';
4
+ import { ShelfPipState } from '../../shared/shelf-ui';
5
+ export declare function useShelfTheme(theme?: BladeTheme): BladeTheme;
6
+ type DivProps = React.HTMLAttributes<HTMLDivElement>;
7
+ /** A white card on the light page: hairline border, soft shadow, radius 16. */
8
+ export declare function ShelfCard({ theme: themeProp, padded, style, ...rest }: DivProps & {
9
+ theme?: BladeTheme;
10
+ padded?: boolean;
11
+ }): import("react/jsx-runtime").JSX.Element;
12
+ /** The one action bar: a white card docked to the bottom of the page (sticky on web when asked). */
13
+ export declare function ShelfDock({ theme: themeProp, sticky, style, ...rest }: DivProps & {
14
+ theme?: BladeTheme;
15
+ sticky?: boolean;
16
+ }): import("react/jsx-runtime").JSX.Element;
17
+ type OptionProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'style'> & {
18
+ theme?: BladeTheme;
19
+ selected: boolean;
20
+ /** A second, smaller line (a count or a detail); makes the option 52 tall. */
21
+ sub?: React.ReactNode;
22
+ style?: React.CSSProperties;
23
+ };
24
+ /** Every chip, filter, tab and option: teal with light text when chosen, white with a hairline when not. */
25
+ export declare function ShelfOption({ theme: themeProp, selected, sub, children, disabled, type, style, onMouseEnter, onMouseLeave, onPointerDown, onPointerUp, onFocus, onBlur, ...rest }: OptionProps): import("react/jsx-runtime").JSX.Element;
26
+ /** One progress mark per pick: right fills teal, a miss is outlined, still to play is a hairline grey. */
27
+ export declare function ShelfPips({ theme: themeProp, states, label, style }: {
28
+ theme?: BladeTheme;
29
+ states: readonly ShelfPipState[];
30
+ label?: string;
31
+ style?: React.CSSProperties;
32
+ }): import("react/jsx-runtime").JSX.Element;
33
+ /**
34
+ * A cover or banner's drawn art (`theme.shelf.coverStyle`): its pattern, tiles and mark. `frame` places
35
+ * the art box in any CSS lengths; inside it everything is a share of the box, so it scales with it. Sits over a
36
+ * `position: relative` surface. RN twin: DrawnArt in the RN ShelfKit.
37
+ */
38
+ export declare function DrawnArt({ drawn, frame, className }: {
39
+ drawn: DrawnCover;
40
+ frame: React.CSSProperties;
41
+ className?: string;
42
+ }): import("react/jsx-runtime").JSX.Element;
43
+ export {};
@@ -4,17 +4,23 @@ export interface SportRailProps {
4
4
  label?: string | null;
5
5
  /** Line under the heading. Pass `null` to drop it; omit for the default hint. */
6
6
  sublabel?: string | null;
7
- /** Custom renderer for the sport tile. */
8
- renderSportLogo?: (sportKey: string) => React.ReactNode;
7
+ /** Controls under the track — search and Swipe on the picks screen. */
8
+ actions?: React.ReactNode;
9
9
  className?: string;
10
10
  }
11
11
  /**
12
- * The sport step, and the only place the sport is chosen: it sits on the game's
13
- * setup page, after the game and before the picks. The game page never shows it
14
- * — a sport picked up front just scopes the game list — and the selections show
15
- * the sport read-only, with a Change that comes back here.
12
+ * The sport step. It sits on a game's setup page, and — for the games that have
13
+ * no setup page — above the proposition list, so there is always one place to
14
+ * change it. Never on the game grid.
15
+ *
16
+ * One oval track: every sport rides it as its short code, and the selected one
17
+ * opens out to its full name on a filled thumb. Codes keep the track compact,
18
+ * the selection says what it is in plain English.
19
+ *
20
+ * A bet is one sport: once the slip has picks the track locks, and the only way
21
+ * across is to clear the bet — silently wiping the card on a mis-tap was worse.
16
22
  *
17
23
  * Renders nothing at all when the sport is not a choice, which is every
18
24
  * single-sport game.
19
25
  */
20
- export declare function SportRail({ label, sublabel, renderSportLogo, className }: SportRailProps): import("react/jsx-runtime").JSX.Element | null;
26
+ export declare function SportRail({ label, sublabel, actions, className }: SportRailProps): import("react/jsx-runtime").JSX.Element | null;
@@ -1,9 +1,4 @@
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;
1
+ import { SportSelectorProps } from '../../shared/types';
7
2
  /** "A vs B" as a header — names stack beside the "vs" on a phone, one line from `sm` up. */
8
3
  export declare function MatchupTeams({ matchup, renderTeamLogo, altText, mutedColor, size, }: {
9
4
  matchup: string;
@@ -12,21 +7,4 @@ export declare function MatchupTeams({ matchup, renderTeamLogo, altText, mutedCo
12
7
  mutedColor: string;
13
8
  size?: 'sm' | 'md';
14
9
  }): import("react/jsx-runtime").JSX.Element;
15
- export declare function CompositePropositionText({ prop, colors: c, size, componentById, textClass: textClassOverride, textColor, }: {
16
- prop: Proposition;
17
- colors: {
18
- primary: string;
19
- text: string;
20
- textMuted?: string;
21
- textAltMuted?: string;
22
- backgroundAlt?: string;
23
- border?: string;
24
- };
25
- size?: 'sm' | 'md';
26
- componentById?: ReadonlyMap<number, Proposition>;
27
- /** Replaces the size-derived type classes — the variant layouts set their own. */
28
- textClass?: string;
29
- /** Replaces `colors.text` on the question itself, legs included. */
30
- textColor?: string;
31
- }): import("react/jsx-runtime").JSX.Element;
32
- export declare function SportSelector({ game, propositions, selections, onToggleSelection, onNext, onBack, loading, error, theme: themeProp, colorScheme, hideActions, initialSport, renderTeamLogo, disableQuickPick, selectedPropositionCount, onPropositionCountChange, gameCategory, headerExtra, variant, disableEventSwipe, }: SportSelectorProps): import("react/jsx-runtime").JSX.Element;
10
+ export declare function SportSelector({ game, propositions, selections, onToggleSelection, onNext, onBack, loading, error, theme: themeProp, colorScheme, hideActions, initialSport, renderTeamLogo, disableQuickPick, selectedPropositionCount, onPropositionCountChange, gameCategory, headerExtra, railSlot, variant, disableEventSwipe, }: SportSelectorProps): import("react/jsx-runtime").JSX.Element;
@@ -12,12 +12,14 @@ export interface SuccessPageProps {
12
12
  hideActions?: boolean;
13
13
  className?: string;
14
14
  }
15
- export declare function SuccessPageTitle({ className, onBack, hideActions, }: {
15
+ export declare function SuccessPageTitle({ className, onBack, onDone, hideActions, }: {
16
16
  className?: string;
17
17
  onBack?: () => void;
18
+ /** Non-shelf systems: the header's × (shelf's lives in its dock as "View my entries"). */
19
+ onDone?: () => void;
18
20
  hideActions?: boolean;
19
21
  }): import("react/jsx-runtime").JSX.Element;
20
- /** Renders Place Another + Share + Done buttons. Must be inside `<PlaceEntryProvider>`. */
22
+ /** Renders Place Another (shelf: View my entries + Play again). Must be inside `<PlaceEntryProvider>`. */
21
23
  export declare function SuccessPageActions({ onPlayAgain, onDone, onShare, className, }: {
22
24
  onPlayAgain?: () => void;
23
25
  onDone?: () => void;