@simple-parlay/components 1.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. package/LICENSE +71 -0
  2. package/README.md +196 -0
  3. package/dist/index.d.ts +2 -0
  4. package/dist/index.js +1 -0
  5. package/dist/index.mjs +325 -0
  6. package/dist/react/components/BrandLockup.d.ts +18 -0
  7. package/dist/react/components/BrandLogo.d.ts +17 -0
  8. package/dist/react/components/CategoryPickerPage.d.ts +22 -0
  9. package/dist/react/components/ConfirmPage.d.ts +23 -0
  10. package/dist/react/components/EntriesPage.d.ts +19 -0
  11. package/dist/react/components/EntrySubmission.d.ts +2 -0
  12. package/dist/react/components/EventFilterBanner.d.ts +4 -0
  13. package/dist/react/components/EventPickerPage.d.ts +5 -0
  14. package/dist/react/components/GameEntries.d.ts +2 -0
  15. package/dist/react/components/GameLogo.d.ts +10 -0
  16. package/dist/react/components/GameModeCard.d.ts +34 -0
  17. package/dist/react/components/GamePage.d.ts +36 -0
  18. package/dist/react/components/GameSelector.d.ts +2 -0
  19. package/dist/react/components/GameSetBetPage.d.ts +21 -0
  20. package/dist/react/components/GameSetupPage.d.ts +27 -0
  21. package/dist/react/components/HowToPlayButton.d.ts +28 -0
  22. package/dist/react/components/HowToPlayPropsTable.d.ts +6 -0
  23. package/dist/react/components/HtmlContent.d.ts +5 -0
  24. package/dist/react/components/IconSvg.d.ts +11 -0
  25. package/dist/react/components/LadderPage.d.ts +21 -0
  26. package/dist/react/components/LoadingIndicators.d.ts +67 -0
  27. package/dist/react/components/MarkdownContent.d.ts +13 -0
  28. package/dist/react/components/MirrorPage.d.ts +21 -0
  29. package/dist/react/components/MultiLegTable.d.ts +40 -0
  30. package/dist/react/components/PageBackButton.d.ts +13 -0
  31. package/dist/react/components/PayoutCircles.d.ts +15 -0
  32. package/dist/react/components/PerfectPickPage.d.ts +22 -0
  33. package/dist/react/components/PickYourDividendPage.d.ts +21 -0
  34. package/dist/react/components/PickerBrand.d.ts +19 -0
  35. package/dist/react/components/PlaceEntryProvider.d.ts +137 -0
  36. package/dist/react/components/PressToPlayTile.d.ts +14 -0
  37. package/dist/react/components/QuickPickButton.d.ts +11 -0
  38. package/dist/react/components/QuickPickMenu.d.ts +17 -0
  39. package/dist/react/components/RuleSetupPage.d.ts +27 -0
  40. package/dist/react/components/SelectionReview.d.ts +2 -0
  41. package/dist/react/components/SelectionsPage.d.ts +25 -0
  42. package/dist/react/components/SportPickerPage.d.ts +27 -0
  43. package/dist/react/components/SportSelector.d.ts +2 -0
  44. package/dist/react/components/SuccessPage.d.ts +27 -0
  45. package/dist/react/components/_primitives/index.d.ts +91 -0
  46. package/dist/react/hooks/index.d.ts +1 -0
  47. package/dist/react/index.d.ts +74 -0
  48. package/dist/react/index.js +1 -0
  49. package/dist/react/index.mjs +325 -0
  50. package/dist/react/types/index.d.ts +8 -0
  51. package/dist/react/utils/api-client.d.ts +2 -0
  52. package/dist/react/utils/design.d.ts +55 -0
  53. package/dist/react/utils/dummy-data.d.ts +1 -0
  54. package/dist/react/utils/index.d.ts +2 -0
  55. package/dist/react/utils/themes.d.ts +13 -0
  56. package/dist/react-native/components/BrandLockup.d.ts +17 -0
  57. package/dist/react-native/components/BrandLogo.d.ts +16 -0
  58. package/dist/react-native/components/CategoryPickerPage.d.ts +17 -0
  59. package/dist/react-native/components/ConfirmPage.d.ts +19 -0
  60. package/dist/react-native/components/EntriesPage.d.ts +14 -0
  61. package/dist/react-native/components/EntrySubmission.d.ts +2 -0
  62. package/dist/react-native/components/EventFilterBanner.d.ts +4 -0
  63. package/dist/react-native/components/EventPickerPage.d.ts +4 -0
  64. package/dist/react-native/components/GameEntries.d.ts +2 -0
  65. package/dist/react-native/components/GameLogo.d.ts +9 -0
  66. package/dist/react-native/components/GameModeCard.d.ts +33 -0
  67. package/dist/react-native/components/GamePage.d.ts +33 -0
  68. package/dist/react-native/components/GameSelector.d.ts +2 -0
  69. package/dist/react-native/components/GameSetBetPage.d.ts +19 -0
  70. package/dist/react-native/components/GameSetupPage.d.ts +26 -0
  71. package/dist/react-native/components/HowToPlayButton.d.ts +17 -0
  72. package/dist/react-native/components/IconSvg.d.ts +9 -0
  73. package/dist/react-native/components/LadderPage.d.ts +19 -0
  74. package/dist/react-native/components/LoadingIndicators.d.ts +62 -0
  75. package/dist/react-native/components/MirrorPage.d.ts +19 -0
  76. package/dist/react-native/components/MultiLegTable.d.ts +37 -0
  77. package/dist/react-native/components/NativeMenuOverlay.d.ts +32 -0
  78. package/dist/react-native/components/PageBackButton.d.ts +25 -0
  79. package/dist/react-native/components/PayoutCircles.d.ts +14 -0
  80. package/dist/react-native/components/PerfectPickPage.d.ts +20 -0
  81. package/dist/react-native/components/PickYourDividendPage.d.ts +19 -0
  82. package/dist/react-native/components/PickerBrand.d.ts +18 -0
  83. package/dist/react-native/components/PlaceEntryProvider.d.ts +129 -0
  84. package/dist/react-native/components/PressToPlayTile.d.ts +13 -0
  85. package/dist/react-native/components/QuickPickButton.d.ts +11 -0
  86. package/dist/react-native/components/QuickPickMenu.d.ts +17 -0
  87. package/dist/react-native/components/RuleSetupPage.d.ts +23 -0
  88. package/dist/react-native/components/SelectionReview.d.ts +2 -0
  89. package/dist/react-native/components/SelectionsPage.d.ts +22 -0
  90. package/dist/react-native/components/SportPickerPage.d.ts +20 -0
  91. package/dist/react-native/components/SportSelector.d.ts +2 -0
  92. package/dist/react-native/components/SuccessPage.d.ts +24 -0
  93. package/dist/react-native/components/_primitives/index.d.ts +93 -0
  94. package/dist/react-native/hooks/index.d.ts +1 -0
  95. package/dist/react-native/index.d.ts +72 -0
  96. package/dist/react-native/index.js +1 -0
  97. package/dist/react-native/index.mjs +334 -0
  98. package/dist/react-native/types/index.d.ts +1 -0
  99. package/dist/react-native/utils/api-client.d.ts +2 -0
  100. package/dist/react-native/utils/dummy-data.d.ts +1 -0
  101. package/dist/react-native/utils/index.d.ts +2 -0
  102. package/dist/react-native/utils/themes.d.ts +5 -0
  103. package/dist/shared/api-client.d.ts +73 -0
  104. package/dist/shared/composite.d.ts +44 -0
  105. package/dist/shared/date-filters.d.ts +25 -0
  106. package/dist/shared/dummy-data.d.ts +9 -0
  107. package/dist/shared/game-flow.d.ts +39 -0
  108. package/dist/shared/game-icons.d.ts +10 -0
  109. package/dist/shared/game-set-bet.d.ts +48 -0
  110. package/dist/shared/game-tiers.d.ts +23 -0
  111. package/dist/shared/hooks.d.ts +100 -0
  112. package/dist/shared/how-to-play-html.d.ts +12 -0
  113. package/dist/shared/how-to-play-logo.d.ts +2 -0
  114. package/dist/shared/how-to-play-props-table.d.ts +21 -0
  115. package/dist/shared/how-to-play-styles.d.ts +2 -0
  116. package/dist/shared/ladder.d.ts +53 -0
  117. package/dist/shared/markdown.d.ts +24 -0
  118. package/dist/shared/mirror.d.ts +66 -0
  119. package/dist/shared/pick-your-dividend.d.ts +59 -0
  120. package/dist/shared/picker-brand.d.ts +11 -0
  121. package/dist/shared/rule-setup.d.ts +75 -0
  122. package/dist/shared/same-game-multi.d.ts +22 -0
  123. package/dist/shared/themes.d.ts +164 -0
  124. package/dist/shared/tokens.d.ts +64 -0
  125. package/dist/shared/types.d.ts +397 -0
  126. package/dist/shared/utils.d.ts +118 -0
  127. package/package.json +101 -0
@@ -0,0 +1,8 @@
1
+ import { PlaceEntryFlowProps as SharedPlaceEntryFlowProps, GameEntriesProps as SharedGameEntriesProps } from '../../shared/types';
2
+ export type { BladeTheme, BladeThemeSet, ColorScheme, ScreenSize, RuleExpressionObject, Game, GameAllocation, SportSummary, Proposition, GameEntry, GameSelectorProps, EntrySubmissionProps, SelectionReviewProps, EvaluateRuleRequest, EvaluateRuleResponse, CalculatePayoutRequest, CalculatePayoutResponse, EntryPreviewRequest, EntryPreviewResponse, TopPayoutEntry, TopPayoutsResponse, ResolvedEntryData, ShareData, QuickPickResult, } from '../../shared/types';
3
+ export interface PlaceEntryFlowProps extends SharedPlaceEntryFlowProps {
4
+ className?: string;
5
+ }
6
+ export interface GameEntriesProps extends SharedGameEntriesProps {
7
+ className?: string;
8
+ }
@@ -0,0 +1,2 @@
1
+ export { BladeApiClient } from '../../shared/api-client';
2
+ export type { BladeApiClientConfig } from '../../shared/api-client';
@@ -0,0 +1,55 @@
1
+ import { CSSProperties } from 'react';
2
+ import { BladeTheme } from '../../shared/themes';
3
+ export declare const trackedCaps: CSSProperties;
4
+ export declare const trackedCapsTight: CSSProperties;
5
+ export declare const tabularNums: CSSProperties;
6
+ export declare const displayFigure: CSSProperties;
7
+ /** Single-pixel hairline rule — used for separators between glass rows. */
8
+ export declare function hairline(color: string): string;
9
+ /**
10
+ * Spatial OS elevation. These are luminous, layered shadows: an inset top
11
+ * highlight that mimics a Vision-Pro-style glass edge plus a soft ambient
12
+ * drop. Use 'high' for floating popovers, 'med' for cards, 'low' for rows.
13
+ */
14
+ export declare function softShadow(intensity?: 'low' | 'med' | 'high'): string;
15
+ /** Smooth, slow-curve easing used everywhere — feels like inertial spatial OS. */
16
+ export declare const EASE = "cubic-bezier(0.16, 1, 0.3, 1)";
17
+ /** Compose a hover lift transform consistent across the system. */
18
+ export declare const liftHover: CSSProperties;
19
+ /** Resolve a theme's display font with a guaranteed sans fallback. */
20
+ export declare function displayFont(theme: BladeTheme): string;
21
+ /** Resolve a theme's mono font with a guaranteed monospaced fallback. */
22
+ export declare function monoFont(theme: BladeTheme): string;
23
+ /** Mix a CSS color with the page background to soft-tint a hue. */
24
+ export declare function tint(color: string, alphaHex?: string): string;
25
+ /** Tiny dot + tracked caps label — used as a section eyebrow. */
26
+ export declare const eyebrowStyle: (color: string) => CSSProperties;
27
+ /**
28
+ * Returns the inline style fragment used for a glass card surface.
29
+ * In light scheme the glass sits on top of a luminous backdrop and stays
30
+ * mostly opaque; in dark scheme it leans translucent with heavy blur.
31
+ */
32
+ export declare function glassCard(theme: BladeTheme, elevation?: 'low' | 'med' | 'high'): CSSProperties;
33
+ /** Construct the conic accent gradient used for halo rings, multiplier badges, etc. */
34
+ export declare function accentGradient(theme: BladeTheme, mode?: 'linear' | 'conic'): string;
35
+ /** A soft radial wash anchored to the top-right — used inside hero cards. */
36
+ export declare function ambientWash(theme: BladeTheme, opacity?: number): string;
37
+ /** Hex/rgba color with explicit alpha — handles `#RRGGBB`, `rgb()`, `rgba()`. */
38
+ export declare function withAlpha(color: string, alpha: number): string;
39
+ /**
40
+ * Primary CTA — a solid bright pill on dark schemes, near-black on light.
41
+ * Used for "Continue", "Place entry", "Select game" etc.
42
+ */
43
+ export declare function primaryButton(theme: BladeTheme, opts?: {
44
+ compact?: boolean;
45
+ disabled?: boolean;
46
+ }): CSSProperties;
47
+ /** Glass / ghost button used for "Back", "Cancel", secondary affordances. */
48
+ export declare function ghostButton(theme: BladeTheme, opts?: {
49
+ compact?: boolean;
50
+ }): CSSProperties;
51
+ /**
52
+ * Token-level animation keyframes injected once by the dev shell.
53
+ * Components reference these by name (no per-component <style> blocks).
54
+ */
55
+ export declare const GLOBAL_KEYFRAMES = "\n@keyframes glass-rise {\n from { opacity: 0; transform: translateY(14px) scale(0.985); filter: blur(8px); }\n to { opacity: 1; transform: none; filter: none; }\n}\n@keyframes glass-fade-in {\n from { opacity: 0; }\n to { opacity: 1; }\n}\n@keyframes halo-rotate {\n to { transform: rotate(360deg); }\n}\n@keyframes pulse-soft {\n 0%, 100% { opacity: 0.55; }\n 50% { opacity: 1; }\n}\n@keyframes drift-1 {\n 0%, 100% { transform: translate3d(0, 0, 0) scale(1); }\n 50% { transform: translate3d(40px, -30px, 0) scale(1.08); }\n}\n@keyframes drift-2 {\n 0%, 100% { transform: translate3d(0, 0, 0) scale(1); }\n 50% { transform: translate3d(-30px, 40px, 0) scale(1.12); }\n}\n@keyframes drift-3 {\n 0%, 100% { transform: translate3d(0, 0, 0) scale(1); }\n 50% { transform: translate3d(20px, 20px, 0) scale(0.94); }\n}\n@keyframes ticker {\n from { transform: translateX(0); }\n to { transform: translateX(-50%); }\n}\n@keyframes sweep {\n 0% { transform: translateX(-110%); }\n 60% { transform: translateX(110%); }\n 100% { transform: translateX(110%); }\n}\n@property --angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }\n";
@@ -0,0 +1 @@
1
+ export { DUMMY_GAMES, DUMMY_PROPOSITIONS, DUMMY_ENTRIES } from '../../shared/dummy-data';
@@ -0,0 +1,2 @@
1
+ export { resolvePrice, toNumber, toBool, formatYesNo, formatCurrency, formatDate, groupPropositionsBySport, getPropositionSportKey, collectPropositionSportKeys, compositePropositionMatchesSport, compositePropositionMatchesGameSports, groupPropositionsByCategory, groupPropositionsByEntryCategory, getPropositionEntryCategory, getAvailableEntryCategories, getSportPickerTitle, getCategoryDisplayName, getCategoryTagline, getSportShortCode, getSportPickerTagline, getSportSummaryTagline, groupByMatchup, groupByRace, groupPropositionsForDisplay, isRacingCategory, buildRangeLegOptions, getPayoutForCount, generateQuickPick, isValidSelectionCount, getEffectivePropositionLimits, getJackpotInfo, getSportDisplayName, resolveSportDisplayName, resolveCategoryDisplayName, filterPropositionsForGame, filterPropositionPool, filterGamesByPropositionPool, filterGamesByEntryCategory, gameHasPropositionsInPool, getGameEntryCategory, gameMatchesEntryCategory, gamePermitsSport, normalizeGamesSport, sportKeysCompatible, propositionSportMatches, isGameAvailableToday, getAvailableDaysLabel, contrastTextColour, readableColor, getCompositeOperatorLabel, getCompositeHelperText, parseCompositeDescription, inferCompositeOperatorFromDescription, resolveCompositeOperator, resolveCompositeDisplay, resolveCompositeLegs, parseCompositeComponentIds, collectCompositeComponentIds, formatPropositionEventLabel, getPropositionDescription, getPropositionMarketType, resolveGameIconId, resolveGameIconUrl, isGameIconUrl, resolveGameIconMarkup, } from '../../shared/utils';
2
+ export type { SportDisplayNameOverrides, CategoryDisplayNameOverrides, GameIconId } from '../../shared/utils';
@@ -0,0 +1,13 @@
1
+ import { BladeTheme } from '../../shared/themes';
2
+ export type { BladeTheme, BladeThemeSet, ColorScheme } from '../../shared/themes';
3
+ export { defaultTheme, greenTheme, greenLightTheme, darkTheme, goldTheme, goldLightTheme, defaultThemeSet, greenThemeSet, goldThemeSet, getTheme, getThemeSet, themes, themeSets, themeHeading, themeLabel, themeValue, themeProductYes, themeProductNo, PRODUCT_YES, PRODUCT_NO, themeAccent, themeTextAlt, themeTextAltMuted, themeSelectionCard, themeMatchupHeader, themeSelectionProp, themePickerSurfaceColors, resolveTheme, isThemeSet, useResolvedTheme, } from '../../shared/themes';
4
+ export declare function themeBodyFont(t: BladeTheme): string;
5
+ export declare function themeHeadingFont(t: BladeTheme): string;
6
+ /**
7
+ * Apply theme to CSS custom properties (web-only).
8
+ */
9
+ export declare function applyTheme(theme: BladeTheme, rootElement?: HTMLElement): void;
10
+ /**
11
+ * React hook for using themes (web-only).
12
+ */
13
+ export declare function useBladeTheme(themeName?: string): BladeTheme;
@@ -0,0 +1,17 @@
1
+ /**
2
+ * The pipe-divider sub-brand lockup (Layout A):
3
+ * [mark] YESNO | Extension™ — extension stacked in Manrope Medium lines.
4
+ * Theme-driven: mark/wordmark/extension in the heading ink, ball in citron.
5
+ */
6
+ export interface BrandLockupProps {
7
+ /** `game-icon:` token or URL for the sub-brand mark (e.g. the tennis ball). */
8
+ iconUrl: string;
9
+ /** Accessible name and fallback for the extension lines. */
10
+ gameName: string;
11
+ /** Extension text stacked one entry per line. Defaults to one word per line. */
12
+ nameLines?: string[];
13
+ /** Overall lockup height in px. @default 56 */
14
+ height?: number;
15
+ showTrademark?: boolean;
16
+ }
17
+ export declare function BrandLockup({ iconUrl, gameName, nameLines, height, showTrademark, }: BrandLockupProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,16 @@
1
+ export interface BrandLogoProps {
2
+ iconUrl: string;
3
+ gameName: string;
4
+ chipColor?: string;
5
+ textColor?: string;
6
+ iconColor?: string;
7
+ accentColor?: string;
8
+ brandColor?: string;
9
+ height?: number;
10
+ showTrademark?: boolean;
11
+ /** Tighter layout for narrow screens — allows the game name to wrap. */
12
+ compact?: boolean;
13
+ /** When set, the lockup is pressable (e.g. same action as Press to Play). */
14
+ onPress?: () => void;
15
+ }
16
+ export declare function BrandLogo({ iconUrl, gameName, chipColor, textColor, iconColor, accentColor, brandColor, height, showTrademark, compact, onPress, }: BrandLogoProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,17 @@
1
+ import { default as React } from 'react';
2
+ export interface CategoryPickerPageProps {
3
+ onSelectCategory?: (category: string) => void;
4
+ onCancel?: () => void;
5
+ hideTitle?: boolean;
6
+ hideActions?: boolean;
7
+ renderCategoryIcon?: (category: string) => React.ReactNode;
8
+ getCategoryTagline?: (category: string) => string;
9
+ }
10
+ export declare function CategoryPickerPageTitle({ onBack, hideActions, }?: {
11
+ onBack?: () => void;
12
+ hideActions?: boolean;
13
+ }): import("react/jsx-runtime").JSX.Element;
14
+ export declare function CategoryPickerPageActions({ onCancel }: {
15
+ onCancel?: () => void;
16
+ }): import("react/jsx-runtime").JSX.Element | null;
17
+ export declare function CategoryPickerPage({ onSelectCategory, onCancel, hideTitle, hideActions, renderCategoryIcon, getCategoryTagline: getCategoryTaglineProp, }: CategoryPickerPageProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,19 @@
1
+ export interface ConfirmPageProps {
2
+ /** Called when the user presses Back (e.g. navigate to selections screen) */
3
+ onBack?: () => void;
4
+ /** Called after a successful submission (e.g. navigate to success screen) */
5
+ onSubmitted?: () => void;
6
+ /** Hide the built-in title section (use `<ConfirmPageTitle />` separately) */
7
+ hideTitle?: boolean;
8
+ /** Hide the built-in action buttons (use `<ConfirmPageActions />` separately) */
9
+ hideActions?: boolean;
10
+ }
11
+ export declare function ConfirmPageTitle({ onBack, hideActions, }?: {
12
+ onBack?: () => void;
13
+ hideActions?: boolean;
14
+ }): import("react/jsx-runtime").JSX.Element;
15
+ export declare function ConfirmPageActions({ onBack, onSubmitted, }: {
16
+ onBack?: () => void;
17
+ onSubmitted?: () => void;
18
+ }): import("react/jsx-runtime").JSX.Element | null;
19
+ export declare function ConfirmPage({ onBack, onSubmitted, hideTitle, hideActions }: ConfirmPageProps): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,14 @@
1
+ import { ResolvedEntryData } from '../types';
2
+ export interface EntriesPageProps {
3
+ /** Called when an entry is tapped/selected */
4
+ onSelectEntry?: (data: ResolvedEntryData) => void;
5
+ onBack?: () => void;
6
+ /** Hide the built-in title section (use `<EntriesPageTitle />` separately) */
7
+ hideTitle?: boolean;
8
+ hideActions?: boolean;
9
+ }
10
+ export declare function EntriesPageTitle({ onBack, hideActions, }?: {
11
+ onBack?: () => void;
12
+ hideActions?: boolean;
13
+ }): import("react/jsx-runtime").JSX.Element;
14
+ export declare function EntriesPage({ onSelectEntry, onBack, hideTitle, hideActions }: EntriesPageProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
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;
@@ -0,0 +1,4 @@
1
+ export interface EventFilterBannerProps {
2
+ style?: object;
3
+ }
4
+ export declare function EventFilterBanner({ style }: EventFilterBannerProps): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,4 @@
1
+ export interface EventPickerPageProps {
2
+ onSelectEvent?: (eventId: string) => void;
3
+ }
4
+ export declare function EventPickerPage({ onSelectEvent }: EventPickerPageProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { GameEntriesProps } from '../types';
2
+ export declare function GameEntries({ apiUrl, apiKey, fetchImpl, getAuthHeaders, userId, demoEntries, demoGames, demoPropositions, onSelectEntry, theme: themeProp, colorScheme, renderTeamLogo, filterSport, }: GameEntriesProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ export interface GameLogoProps {
2
+ gameKey: string;
3
+ short?: string;
4
+ size?: number;
5
+ footer?: string | null;
6
+ title?: string;
7
+ sportBaseKey?: string | null;
8
+ }
9
+ export declare function GameLogo({ gameKey, short, size, footer, title, sportBaseKey, }: GameLogoProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,33 @@
1
+ import { default as React } from 'react';
2
+ /**
3
+ * Shared card kit for the unique-game pages (Game Set Bet, Pick Your
4
+ * Dividend, Ladder, Mirror, Perfect Pick). Mirrors the RuleSetupPage
5
+ * ModeCard / EmblemTile anatomy exactly — same tile, borders, hover, stat
6
+ * chip, detail lines and chevron — so every game reads as one system;
7
+ * only the copy and the controls differ.
8
+ */
9
+ export declare function hexA(color: string, alpha: number): string;
10
+ /** Branded rounded tile carrying a game icon — the EmblemTile look, icon-driven. */
11
+ export declare function BrandChipTile({ iconUrl, size }: {
12
+ iconUrl: string;
13
+ size?: number;
14
+ }): import("react/jsx-runtime").JSX.Element;
15
+ /** A row of the shared pip language: teal filled pips = must-hit legs, citron ball = the prize. */
16
+ export declare function LegPips({ legs, prizeBall }: {
17
+ legs: number;
18
+ prizeBall?: boolean;
19
+ }): import("react/jsx-runtime").JSX.Element;
20
+ /**
21
+ * Tap-to-play mode card — the Safety Net card, generalised. ONE press applies
22
+ * and continues; `children` renders below the divider (payout rows, notes).
23
+ */
24
+ export declare function GameModeCard({ tile, label, stat, detail, onSelect, children, }: {
25
+ /** Left tile, e.g. `<BrandChipTile iconUrl={...} />`. */
26
+ tile: React.ReactNode;
27
+ label: string;
28
+ /** Short positioning hint chip, e.g. "Fastest". */
29
+ stat?: string;
30
+ detail?: string[];
31
+ onSelect: () => void;
32
+ children?: React.ReactNode;
33
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,33 @@
1
+ export interface GamePageProps {
2
+ /** Called after a game is selected (e.g. navigate to selections screen) */
3
+ onSelectGame?: () => void;
4
+ /** Called when the selected game needs a rule setup step before selections */
5
+ onRuleSetup?: () => void;
6
+ /** Called when the selected game is a Game Set Bet (navigate to the ticket-builder page) */
7
+ onGameSetBet?: () => void;
8
+ /** Called when the selected game is a Pick Your Dividend game (navigate to the dividend page) */
9
+ onPickYourDividend?: () => void;
10
+ /** Called when the selected game is a Ladder game (navigate to the ladder page) */
11
+ onLadder?: () => void;
12
+ /** Called when the selected game is a Mirror game (navigate to the mirror page) */
13
+ onMirror?: () => void;
14
+ onQuickPick?: () => void;
15
+ /** Called when the user cancels */
16
+ onCancel?: () => void;
17
+ /** Hide the built-in title section (use `<GamePageTitle />` separately) */
18
+ hideTitle?: boolean;
19
+ /** Hide the built-in action buttons (use `<GamePageActions />` separately) */
20
+ hideActions?: boolean;
21
+ showPerfectPickSetup?: boolean;
22
+ /** Show the Signature/Premier/Exclusive game-tier filter tabs above the grid */
23
+ showTierFilter?: boolean;
24
+ }
25
+ export declare function GamePageTitle({ onBack, hideActions, }?: {
26
+ onBack?: () => void;
27
+ hideActions?: boolean;
28
+ }): import("react/jsx-runtime").JSX.Element;
29
+ export declare function GamePageActions({ onCancel, onSelectGame }: {
30
+ onCancel?: () => void;
31
+ onSelectGame?: () => void;
32
+ }): import("react/jsx-runtime").JSX.Element | null;
33
+ export declare function GamePage({ onSelectGame, onRuleSetup, onGameSetBet, onPickYourDividend, onLadder, onMirror, onQuickPick, onCancel, hideTitle, hideActions, showPerfectPickSetup, showTierFilter }: GamePageProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { GameSelectorProps } from '../types';
2
+ 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;
@@ -0,0 +1,19 @@
1
+ import { GameSetBetConfig } from '../../shared/game-set-bet';
2
+ export interface GameSetBetPageProps {
3
+ /** Called after Quick Pick fills the slip (navigate to the bet slip / confirm page). */
4
+ onQuickPick?: () => void;
5
+ /** Called when the user chooses to answer the legs themselves (navigate to selections). */
6
+ onPickYourOwn?: () => void;
7
+ onBack?: () => void;
8
+ /** Hide the built-in eyebrow title (use `<GameSetBetPageTitle />` separately). */
9
+ hideTitle?: boolean;
10
+ /** Override the built-in config (leg options, stake ladder, margin). */
11
+ config?: GameSetBetConfig | null;
12
+ /** Label for the back link (where "back" leads). @default 'Games' */
13
+ backLabel?: string;
14
+ }
15
+ export declare function GameSetBetPageTitle({ onBack, hideActions, }?: {
16
+ onBack?: () => void;
17
+ hideActions?: boolean;
18
+ }): import("react/jsx-runtime").JSX.Element;
19
+ export declare function GameSetBetPage({ onQuickPick, onPickYourOwn, onBack, hideTitle, config: configOverride, backLabel, }: GameSetBetPageProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,26 @@
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
+ export interface GameSetupPageProps {
16
+ /** Called when the user will make their own calls (navigate to selections). */
17
+ onPickYourOwn?: () => void;
18
+ /** Called after Quick Pick fills the slip (navigate to the bet slip / confirm page). */
19
+ onQuickPick?: () => void;
20
+ onBack?: () => void;
21
+ /** Hide the built-in eyebrow titles on the underlying pages. */
22
+ hideTitle?: boolean;
23
+ /** Label for the back link (where "back" leads). @default 'Games' */
24
+ backLabel?: string;
25
+ }
26
+ export declare function GameSetupPage({ onPickYourOwn, onQuickPick, onBack, hideTitle, backLabel, }: GameSetupPageProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,17 @@
1
+ export interface HowToPlayButtonProps {
2
+ content?: string | null;
3
+ title?: string;
4
+ label?: string;
5
+ colors: {
6
+ text: string;
7
+ textMuted: string;
8
+ border: string;
9
+ background: string;
10
+ backgroundAlt: string;
11
+ primary: string;
12
+ primaryText: string;
13
+ };
14
+ bodyFont?: string;
15
+ headingFont?: string;
16
+ }
17
+ export declare function HowToPlayButton({ content, title, label, colors, bodyFont, headingFont, }: HowToPlayButtonProps): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,9 @@
1
+ export interface IconSvgProps {
2
+ iconUrl: string;
3
+ width: number | string;
4
+ height: number | string;
5
+ iconColor?: string;
6
+ accentColor?: string;
7
+ accessibilityLabel?: string;
8
+ }
9
+ export declare function IconSvg({ iconUrl, width, height, iconColor, accentColor, accessibilityLabel, }: IconSvgProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,19 @@
1
+ import { LadderConfig } from '../../shared/ladder';
2
+ export interface LadderPageProps {
3
+ /** Called after Quick Pick fills the slip (navigate to the bet slip / confirm page). */
4
+ onQuickPick?: () => void;
5
+ /** Called when the user chooses to answer the legs themselves (navigate to selections). */
6
+ onPickYourOwn?: () => void;
7
+ onBack?: () => void;
8
+ /** Hide the built-in eyebrow title (use `<LadderPageTitle />` separately). */
9
+ hideTitle?: boolean;
10
+ /** Override the built-in config (ladder family, stakes). */
11
+ config?: LadderConfig | null;
12
+ /** Label for the back link (where "back" leads). @default 'Games' */
13
+ backLabel?: string;
14
+ }
15
+ export declare function LadderPageTitle({ onBack, hideActions, }?: {
16
+ onBack?: () => void;
17
+ hideActions?: boolean;
18
+ }): import("react/jsx-runtime").JSX.Element;
19
+ export declare function LadderPage({ onQuickPick, onPickYourOwn, onBack, hideTitle, config: configOverride, backLabel, }: LadderPageProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,62 @@
1
+ /**
2
+ * RN mirror of the web `LoadingIndicators` picker skeletons. The web side uses
3
+ * `animate-pulse` (CSS keyframes) for the shimmer; RN renders a static tinted
4
+ * block (matching the existing `PropositionsLoadingSkeleton` in SportSelector).
5
+ * Colours come from `themePickerSurfaceColors(theme)` so both platforms pass the
6
+ * same object.
7
+ */
8
+ export interface PickerSurfaceColors {
9
+ textMuted: string;
10
+ border: string;
11
+ background: string;
12
+ backgroundAlt: string;
13
+ primary: string;
14
+ selectionCard?: string;
15
+ }
16
+ /** Static shimmer block — web uses animate-pulse (CSS keyframes, no RN equivalent). */
17
+ export declare function Shimmer({ color, style }: {
18
+ color: string;
19
+ style?: object;
20
+ }): import("react/jsx-runtime").JSX.Element;
21
+ /** RN mirror of web `CategoryGridSkeleton` (1 col < 400px, 2 cols ≥ 400px). */
22
+ export declare function CategoryGridSkeleton({ colors, count, }: {
23
+ colors: PickerSurfaceColors;
24
+ count?: number;
25
+ }): import("react/jsx-runtime").JSX.Element;
26
+ /** RN mirror of web `SportListSkeleton`. */
27
+ export declare function SportListSkeleton({ colors, count, }: {
28
+ colors: PickerSurfaceColors;
29
+ count?: number;
30
+ }): import("react/jsx-runtime").JSX.Element;
31
+ export declare function GameCardSkeleton({ colors, tileSize, }: {
32
+ colors: PickerSurfaceColors;
33
+ tileSize?: number;
34
+ }): import("react/jsx-runtime").JSX.Element;
35
+ export declare function GameCardListSkeleton({ colors, count, tileSize, }: {
36
+ colors: PickerSurfaceColors;
37
+ count?: number;
38
+ tileSize?: number;
39
+ }): import("react/jsx-runtime").JSX.Element;
40
+ export declare function PropositionListSkeleton({ colors, rows, }: {
41
+ colors: PickerSurfaceColors;
42
+ rows?: number;
43
+ }): import("react/jsx-runtime").JSX.Element;
44
+ export declare function EntryTabsSkeleton({ colors }: {
45
+ colors: PickerSurfaceColors;
46
+ }): import("react/jsx-runtime").JSX.Element;
47
+ export declare function EntryCardSkeleton({ colors }: {
48
+ colors: PickerSurfaceColors;
49
+ }): import("react/jsx-runtime").JSX.Element;
50
+ export declare function EntryListSkeleton({ colors, rows, }: {
51
+ colors: PickerSurfaceColors;
52
+ rows?: number;
53
+ }): import("react/jsx-runtime").JSX.Element;
54
+ export type PickerLoadingVariant = 'category' | 'sport' | 'games' | 'propositions' | 'entries';
55
+ export declare function PickerLoadingPanel({ colors, bodyFont, message, variant, gameCardCount, categoryCount, }: {
56
+ colors: PickerSurfaceColors;
57
+ bodyFont?: string;
58
+ message?: string;
59
+ variant?: PickerLoadingVariant;
60
+ gameCardCount?: number;
61
+ categoryCount?: number;
62
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,19 @@
1
+ import { MirrorConfig } from '../../shared/mirror';
2
+ export interface MirrorPageProps {
3
+ /** Called after Quick Pick fills the slip (navigate to the bet slip / confirm page). */
4
+ onQuickPick?: () => void;
5
+ /** Called when the user chooses to answer the legs themselves (navigate to selections). */
6
+ onPickYourOwn?: () => void;
7
+ onBack?: () => void;
8
+ /** Hide the built-in eyebrow title (use `<MirrorPageTitle />` separately). */
9
+ hideTitle?: boolean;
10
+ /** Override the built-in config (leg options, stake ladder, margin). */
11
+ config?: MirrorConfig | null;
12
+ /** Label for the back link (where "back" leads). @default 'Games' */
13
+ backLabel?: string;
14
+ }
15
+ export declare function MirrorPageTitle({ onBack, hideActions, }?: {
16
+ onBack?: () => void;
17
+ hideActions?: boolean;
18
+ }): import("react/jsx-runtime").JSX.Element;
19
+ export declare function MirrorPage({ onQuickPick, onPickYourOwn, onBack, hideTitle, config: configOverride, backLabel, }: MirrorPageProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,37 @@
1
+ export interface MultiLegTableColors {
2
+ textMuted: string;
3
+ success: string;
4
+ primary: string;
5
+ buttonPrimary?: string;
6
+ buttonPrimaryText?: string;
7
+ buttonSecondary?: string;
8
+ buttonSecondaryText?: string;
9
+ border?: string;
10
+ background?: string;
11
+ backgroundAlt?: string;
12
+ text?: string;
13
+ heading?: string;
14
+ }
15
+ export interface MultiLegTableTier {
16
+ count: number;
17
+ payout20: number;
18
+ }
19
+ export interface MultiLegTableProps {
20
+ tiers: MultiLegTableTier[];
21
+ selectedCount?: number;
22
+ onSelect: (count: number) => void;
23
+ colors: MultiLegTableColors;
24
+ bodyFont?: string;
25
+ extraBetAmount?: number;
26
+ buttonLabel?: (count: number) => string;
27
+ /** Left-column label above the tier buttons. @default 'Legs' */
28
+ columnLabel?: string;
29
+ buildYourOwn?: boolean;
30
+ quickPickOnly?: boolean;
31
+ onQuickPick?: (count: number) => void;
32
+ collapsible?: boolean;
33
+ expanded?: boolean;
34
+ onExpandedChange?: (expanded: boolean) => void;
35
+ summaryTiers?: MultiLegTableTier[];
36
+ }
37
+ 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;
@@ -0,0 +1,32 @@
1
+ import { ReactNode } from 'react';
2
+ export interface NativeMenuAnchor {
3
+ x: number;
4
+ y: number;
5
+ width: number;
6
+ height: number;
7
+ }
8
+ export interface NativeMenuOverlayProps {
9
+ /** Whether the menu is open (already gated to native by the caller). */
10
+ visible: boolean;
11
+ /** Trigger rect in window coordinates, from `measureInWindow`. */
12
+ anchor: NativeMenuAnchor | null;
13
+ /** Dismiss handler — fired on outside tap or Android back. */
14
+ onClose: () => void;
15
+ /** Flip the menu above the trigger when there isn't room below. */
16
+ flipUp?: boolean;
17
+ /** Align the menu's left or right edge to the trigger. */
18
+ align?: 'left' | 'right';
19
+ /** Gap between trigger and menu (matches the web `+6`/`marginTop: 6`). */
20
+ gap?: number;
21
+ /** The styled menu surface. */
22
+ children: ReactNode;
23
+ }
24
+ /**
25
+ * Native-only dropdown overlay. Web/react-native-web dismiss the menu via a
26
+ * `document` `mousedown` listener (gated to `isWeb`); on true native there is no
27
+ * document, and a sibling backdrop cannot catch touches outside its parent's
28
+ * bounds, so we re-anchor the menu inside a full-screen `Modal` whose backdrop
29
+ * `Pressable` closes it on outside tap. This mirrors the web outside-close
30
+ * behaviour that was previously missing on native.
31
+ */
32
+ export declare function NativeMenuOverlay({ visible, anchor, onClose, flipUp, align, gap, children, }: NativeMenuOverlayProps): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,25 @@
1
+ import { default as React } from 'react';
2
+ /**
3
+ * Hover parity note: react-native-web forwards onMouseEnter/onMouseLeave to
4
+ * the DOM, so the same hover treatment as the web components (colour shift +
5
+ * translateX(-2px)) works in the browser preview; native ignores them.
6
+ */
7
+ export declare function PageBackButton({ onBack, title, }: {
8
+ onBack: () => void;
9
+ title?: string;
10
+ }): import("react/jsx-runtime").JSX.Element;
11
+ /**
12
+ * The body back link used by the game setup pages — arrow + label,
13
+ * hover → primary colour + slide left. Mirrors the web pages' inline
14
+ * back button exactly.
15
+ */
16
+ export declare function PageBackLink({ onBack, label, }: {
17
+ onBack: () => void;
18
+ label?: string;
19
+ }): import("react/jsx-runtime").JSX.Element;
20
+ export declare function PageTitleBackRow({ onBack, hideActions: _hideActions, children, }: {
21
+ onBack?: () => void;
22
+ /** @deprecated Back arrow visibility is controlled by `onBack` only */
23
+ hideActions?: boolean;
24
+ children?: React.ReactNode;
25
+ }): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,14 @@
1
+ import { Game, BladeTheme } from '../types';
2
+ interface PayoutCirclesProps {
3
+ game: Game;
4
+ totalSelections: number;
5
+ expectedCorrect: number;
6
+ onExpectedCorrectChange?: (value: number) => void;
7
+ theme?: BladeTheme;
8
+ colorWinning?: string;
9
+ colorNone?: string;
10
+ winningCounts: number[];
11
+ payouts: Record<number, number>;
12
+ }
13
+ export declare function PayoutCircles({ game, totalSelections, expectedCorrect, onExpectedCorrectChange, theme, colorWinning, colorNone, winningCounts, payouts, }: PayoutCirclesProps): import("react/jsx-runtime").JSX.Element;
14
+ export {};
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Setup page for exact-rule games (Perfect Pick, Head to Head, Total Points):
3
+ * brand lockup plus the same two mode cards as every other unique game.
4
+ */
5
+ export interface PerfectPickPageProps {
6
+ /** Called after Quick Pick fills the slip (navigate to the bet slip / confirm page). */
7
+ onQuickPick?: () => void;
8
+ /** Called when the user chooses to answer the legs themselves (navigate to selections). */
9
+ onPickYourOwn?: () => void;
10
+ onBack?: () => void;
11
+ /** Hide the built-in eyebrow title. */
12
+ hideTitle?: boolean;
13
+ /** Label for the back link (where "back" leads). @default 'Games' */
14
+ backLabel?: string;
15
+ }
16
+ export declare function PerfectPickPageTitle({ onBack, hideActions, }?: {
17
+ onBack?: () => void;
18
+ hideActions?: boolean;
19
+ }): import("react/jsx-runtime").JSX.Element;
20
+ export declare function PerfectPickPage({ onQuickPick, onPickYourOwn, onBack, hideTitle, backLabel, }: PerfectPickPageProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,19 @@
1
+ import { PickYourDividendConfig } from '../../shared/pick-your-dividend';
2
+ export interface PickYourDividendPageProps {
3
+ /** Called after Quick Pick fills the slip (navigate to the bet slip / confirm page). */
4
+ onQuickPick?: () => void;
5
+ /** Called when the user chooses to answer the legs themselves (navigate to selections). */
6
+ onPickYourOwn?: () => void;
7
+ onBack?: () => void;
8
+ /** Hide the built-in eyebrow title (use `<PickYourDividendPageTitle />` separately). */
9
+ hideTitle?: boolean;
10
+ /** Override the built-in config (dividend tiers, rungs). */
11
+ config?: PickYourDividendConfig | null;
12
+ /** Label for the back link (where "back" leads). @default 'Games' */
13
+ backLabel?: string;
14
+ }
15
+ export declare function PickYourDividendPageTitle({ onBack, hideActions, }?: {
16
+ onBack?: () => void;
17
+ hideActions?: boolean;
18
+ }): import("react/jsx-runtime").JSX.Element;
19
+ export declare function PickYourDividendPage({ onQuickPick, onPickYourOwn, onBack, hideTitle, config: configOverride, backLabel, }: PickYourDividendPageProps): import("react/jsx-runtime").JSX.Element;