@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,18 @@
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
+ className?: string;
17
+ }
18
+ export declare function BrandLockup({ iconUrl, gameName, nameLines, height, showTrademark, className, }: BrandLockupProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,17 @@
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
+ className?: string;
12
+ /** Tighter layout for narrow screens — allows the game name to wrap. */
13
+ compact?: boolean;
14
+ /** When set, the lockup is pressable (e.g. same action as Press to Play). */
15
+ onPress?: () => void;
16
+ }
17
+ export declare function BrandLogo({ iconUrl, gameName, chipColor, textColor, iconColor, accentColor, brandColor, height, showTrademark, className, compact, onPress, }: BrandLogoProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,22 @@
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
+ /** Override the default category icon in the YESNO lockup */
8
+ renderCategoryIcon?: (category: string) => React.ReactNode;
9
+ /** Override the tagline beneath each category card */
10
+ getCategoryTagline?: (category: string) => string;
11
+ className?: string;
12
+ }
13
+ export declare function CategoryPickerPageTitle({ className, onBack, hideActions, }: {
14
+ className?: string;
15
+ onBack?: () => void;
16
+ hideActions?: boolean;
17
+ }): import("react/jsx-runtime").JSX.Element;
18
+ export declare function CategoryPickerPageActions({ onCancel, className, }: {
19
+ onCancel?: () => void;
20
+ className?: string;
21
+ }): import("react/jsx-runtime").JSX.Element | null;
22
+ export declare function CategoryPickerPage({ onSelectCategory, onCancel, hideTitle, hideActions, renderCategoryIcon, getCategoryTagline: getCategoryTaglineProp, className, }: CategoryPickerPageProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,23 @@
1
+ export interface ConfirmPageProps {
2
+ /** Called when the user presses Back (e.g. navigate to selections page) */
3
+ onBack?: () => void;
4
+ /** Called after a successful submission (e.g. navigate to success page) */
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
+ className?: string;
11
+ }
12
+ export declare function ConfirmPageTitle({ className, onBack, hideActions, }: {
13
+ className?: string;
14
+ onBack?: () => void;
15
+ hideActions?: boolean;
16
+ }): import("react/jsx-runtime").JSX.Element;
17
+ /** Renders Back + Place Entry buttons with payout info. Must be inside `<PlaceEntryProvider>`. */
18
+ export declare function ConfirmPageActions({ onBack, onSubmitted, className, }: {
19
+ onBack?: () => void;
20
+ onSubmitted?: () => void;
21
+ className?: string;
22
+ }): import("react/jsx-runtime").JSX.Element | null;
23
+ export declare function ConfirmPage({ onBack, onSubmitted, hideTitle, hideActions, className }: ConfirmPageProps): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,19 @@
1
+ import { ResolvedEntryData } from '../types';
2
+ export interface EntriesPageProps {
3
+ className?: string;
4
+ /** Called when an entry is tapped/selected */
5
+ onSelectEntry?: (data: ResolvedEntryData) => void;
6
+ onBack?: () => void;
7
+ hideTitle?: boolean;
8
+ hideActions?: boolean;
9
+ }
10
+ export declare function EntriesPageTitle({ className, onBack, hideActions, }: {
11
+ className?: string;
12
+ onBack?: () => void;
13
+ hideActions?: boolean;
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
+ export declare function EntriesPage({ className, 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
+ className?: string;
3
+ }
4
+ export declare function EventFilterBanner({ className }: EventFilterBannerProps): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,5 @@
1
+ export interface EventPickerPageProps {
2
+ onSelectEvent?: (eventId: string) => void;
3
+ className?: string;
4
+ }
5
+ export declare function EventPickerPage({ onSelectEvent, className }: 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, className, renderTeamLogo, filterSport, }: GameEntriesProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,10 @@
1
+ export interface GameLogoProps {
2
+ gameKey: string;
3
+ short?: string;
4
+ size?: number;
5
+ footer?: string | null;
6
+ className?: string;
7
+ title?: string;
8
+ sportBaseKey?: string | null;
9
+ }
10
+ export declare function GameLogo({ gameKey, short, size, footer, className, title, sportBaseKey, }: GameLogoProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,34 @@
1
+ import { default as React } from 'react';
2
+ /**
3
+ * Shared card kit for the unique-game pages (Game Set Bet, Pick Your
4
+ * Dividend). Mirrors the RuleSetupPage ModeCard / EmblemTile anatomy exactly
5
+ * — same tile, borders, hover, stat chip, detail lines and chevron — so every
6
+ * game reads as one system; only the copy and the controls differ.
7
+ */
8
+ export declare function hexA(color: string, alpha: number): string;
9
+ /** Branded rounded tile carrying a game icon — the EmblemTile look, icon-driven. */
10
+ export declare function BrandChipTile({ iconUrl, size }: {
11
+ iconUrl: string;
12
+ size?: number;
13
+ }): import("react/jsx-runtime").JSX.Element;
14
+ /** A row of the shared pip language: teal filled pips = must-hit legs, citron ball = the prize. */
15
+ export declare function LegPips({ legs, prizeBall }: {
16
+ legs: number;
17
+ prizeBall?: boolean;
18
+ }): import("react/jsx-runtime").JSX.Element;
19
+ /**
20
+ * Tap-to-play mode card — the Safety Net card, generalised. ONE click applies
21
+ * and continues; `children` renders below the divider (payout rows, notes).
22
+ */
23
+ export declare function GameModeCard({ tile, label, stat, detail, onSelect, children, }: {
24
+ /** Left tile, e.g. `<BrandChipTile iconUrl={...} />`. */
25
+ tile: React.ReactNode;
26
+ label: string;
27
+ /** Short positioning hint chip, e.g. "Fastest". */
28
+ stat?: string;
29
+ detail?: string[];
30
+ onSelect: () => void;
31
+ children?: React.ReactNode;
32
+ }): import("react/jsx-runtime").JSX.Element;
33
+ /** Scoped hover/press motion for the mode cards — render once per page. */
34
+ export declare function GameModeKitStyles(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,36 @@
1
+ export interface GamePageProps {
2
+ /** Called after a game is selected (e.g. navigate to selections page) */
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
+ className?: string;
25
+ }
26
+ export declare function GamePageTitle({ className, onBack, hideActions, }: {
27
+ className?: string;
28
+ onBack?: () => void;
29
+ hideActions?: boolean;
30
+ }): import("react/jsx-runtime").JSX.Element;
31
+ export declare function GamePageActions({ onCancel, className }: {
32
+ onCancel?: () => void;
33
+ onSelectGame?: () => void;
34
+ className?: string;
35
+ }): import("react/jsx-runtime").JSX.Element | null;
36
+ export declare function GamePage({ onSelectGame, onRuleSetup, onGameSetBet, onPickYourDividend, onLadder, onMirror, onQuickPick, onCancel, hideTitle, hideActions, showPerfectPickSetup, showTierFilter, className }: GamePageProps): import("react/jsx-runtime").JSX.Element;
@@ -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, selectedPropositionCount, onPropositionCountChange, onPropositionCountSelected, onQuickPickGame, maxPayouts, }: GameSelectorProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,21 @@
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
+ className?: string;
15
+ }
16
+ export declare function GameSetBetPageTitle({ className, onBack, hideActions, }: {
17
+ className?: string;
18
+ onBack?: () => void;
19
+ hideActions?: boolean;
20
+ }): import("react/jsx-runtime").JSX.Element;
21
+ export declare function GameSetBetPage({ onQuickPick, onPickYourOwn, onBack, hideTitle, config: configOverride, backLabel, className, }: GameSetBetPageProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,27 @@
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
+ className?: string;
26
+ }
27
+ export declare function GameSetupPage({ onPickYourOwn, onQuickPick, onBack, hideTitle, backLabel, className, }: GameSetupPageProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,28 @@
1
+ export interface HowToPlayModalProps {
2
+ open: boolean;
3
+ onClose: () => void;
4
+ title?: string;
5
+ content: string;
6
+ colors: {
7
+ text: string;
8
+ textMuted: string;
9
+ border: string;
10
+ background: string;
11
+ backgroundAlt: string;
12
+ primary: string;
13
+ primaryText: string;
14
+ };
15
+ bodyFont?: string;
16
+ headingFont?: string;
17
+ }
18
+ export declare function HowToPlayModal({ open, onClose, title, content, colors, bodyFont, headingFont, }: HowToPlayModalProps): import("react/jsx-runtime").JSX.Element | null;
19
+ export interface HowToPlayButtonProps {
20
+ content?: string | null;
21
+ title?: string;
22
+ label?: string;
23
+ colors: HowToPlayModalProps['colors'];
24
+ bodyFont?: string;
25
+ headingFont?: string;
26
+ className?: string;
27
+ }
28
+ export declare function HowToPlayButton({ content, title, label, colors, bodyFont, headingFont, className, }: HowToPlayButtonProps): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,6 @@
1
+ import { PropsTableRow } from '../../shared/how-to-play-props-table';
2
+ export interface HowToPlayPropsTableProps {
3
+ rows: PropsTableRow[];
4
+ className?: string;
5
+ }
6
+ export declare function HowToPlayPropsTable({ rows, className }: HowToPlayPropsTableProps): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,5 @@
1
+ export interface HtmlContentProps {
2
+ content: string;
3
+ className?: string;
4
+ }
5
+ export declare function HtmlContent({ content, className }: HtmlContentProps): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,11 @@
1
+ import { default as React } from 'react';
2
+ export interface IconSvgProps {
3
+ iconUrl: string;
4
+ width: number | string;
5
+ height: number | string;
6
+ iconColor?: string;
7
+ accentColor?: string;
8
+ ariaLabel?: string;
9
+ style?: React.CSSProperties;
10
+ }
11
+ export declare function IconSvg({ iconUrl, width, height, iconColor, accentColor, ariaLabel, style, }: IconSvgProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,21 @@
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
+ className?: string;
15
+ }
16
+ export declare function LadderPageTitle({ className, onBack, hideActions, }: {
17
+ className?: string;
18
+ onBack?: () => void;
19
+ hideActions?: boolean;
20
+ }): import("react/jsx-runtime").JSX.Element;
21
+ export declare function LadderPage({ onQuickPick, onPickYourOwn, onBack, hideTitle, config: configOverride, backLabel, className, }: LadderPageProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,67 @@
1
+ import { default as React } from 'react';
2
+ export type ThemeSurfaceColors = {
3
+ textMuted: string;
4
+ border: string;
5
+ background: string;
6
+ backgroundAlt: string;
7
+ primary: string;
8
+ selectionCard?: string;
9
+ };
10
+ export declare function ThemeSpinner({ color, size, label, }: {
11
+ color: string;
12
+ size?: number;
13
+ label?: string;
14
+ }): import("react/jsx-runtime").JSX.Element;
15
+ export declare function ThemeButtonSpinner({ color, size, }: {
16
+ color?: string;
17
+ size?: number;
18
+ }): import("react/jsx-runtime").JSX.Element;
19
+ export declare function PickerPageShell({ className, bodyFont, children, }: {
20
+ className?: string;
21
+ bodyFont: string;
22
+ children: React.ReactNode;
23
+ }): import("react/jsx-runtime").JSX.Element;
24
+ export declare function CategoryGridSkeleton({ colors, count, }: {
25
+ colors: ThemeSurfaceColors;
26
+ count?: number;
27
+ showLogoArea?: boolean;
28
+ }): import("react/jsx-runtime").JSX.Element;
29
+ export declare function SportListSkeleton({ colors, count, }: {
30
+ colors: ThemeSurfaceColors;
31
+ count?: number;
32
+ }): import("react/jsx-runtime").JSX.Element;
33
+ export declare function GameCardSkeleton({ colors, tileSize, }: {
34
+ colors: ThemeSurfaceColors;
35
+ tileSize?: number;
36
+ }): import("react/jsx-runtime").JSX.Element;
37
+ export declare function GameCardListSkeleton({ colors, count, tileSize, }: {
38
+ colors: ThemeSurfaceColors;
39
+ count?: number;
40
+ tileSize?: number;
41
+ }): import("react/jsx-runtime").JSX.Element;
42
+ export declare function PropositionListSkeleton({ colors, rows, }: {
43
+ colors: ThemeSurfaceColors;
44
+ rows?: number;
45
+ }): import("react/jsx-runtime").JSX.Element;
46
+ /** GameEntries tab bar — matches `flex border-b mb-4`. */
47
+ export declare function EntryTabsSkeleton({ colors }: {
48
+ colors: ThemeSurfaceColors;
49
+ }): import("react/jsx-runtime").JSX.Element;
50
+ export declare function EntryCardSkeleton({ colors }: {
51
+ colors: ThemeSurfaceColors;
52
+ }): import("react/jsx-runtime").JSX.Element;
53
+ export declare function EntryListSkeleton({ colors, rows, }: {
54
+ colors: ThemeSurfaceColors;
55
+ rows?: number;
56
+ }): import("react/jsx-runtime").JSX.Element;
57
+ export type PickerLoadingVariant = 'category' | 'sport' | 'games' | 'propositions' | 'entries';
58
+ export declare function PickerLoadingPanel({ colors, bodyFont, message, className, variant, showLogoArea, gameCardCount, categoryCount, }: {
59
+ colors: ThemeSurfaceColors;
60
+ bodyFont: string;
61
+ message?: string;
62
+ className?: string;
63
+ variant?: PickerLoadingVariant;
64
+ showLogoArea?: boolean;
65
+ gameCardCount?: number;
66
+ categoryCount?: number;
67
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,13 @@
1
+ export interface MarkdownContentProps {
2
+ content: string;
3
+ colors: {
4
+ text: string;
5
+ textMuted: string;
6
+ border: string;
7
+ primary?: string;
8
+ };
9
+ bodyFont?: string;
10
+ headingFont?: string;
11
+ className?: string;
12
+ }
13
+ export declare function MarkdownContent({ content, colors, bodyFont, headingFont, className, }: MarkdownContentProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,21 @@
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
+ className?: string;
15
+ }
16
+ export declare function MirrorPageTitle({ className, onBack, hideActions, }: {
17
+ className?: string;
18
+ onBack?: () => void;
19
+ hideActions?: boolean;
20
+ }): import("react/jsx-runtime").JSX.Element;
21
+ export declare function MirrorPage({ onQuickPick, onPickYourOwn, onBack, hideTitle, config: configOverride, backLabel, className, }: MirrorPageProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,40 @@
1
+ export interface MultiLegTableTier {
2
+ count: number;
3
+ payout20: number;
4
+ }
5
+ export interface MultiLegTableProps {
6
+ tiers: MultiLegTableTier[];
7
+ selectedCount?: number;
8
+ onSelect: (count: number) => void;
9
+ colors: {
10
+ textMuted: string;
11
+ success: string;
12
+ primary: string;
13
+ buttonPrimary?: string;
14
+ buttonPrimaryText?: string;
15
+ buttonSecondary?: string;
16
+ buttonSecondaryText?: string;
17
+ border?: string;
18
+ background?: string;
19
+ backgroundAlt?: string;
20
+ text?: string;
21
+ heading?: string;
22
+ };
23
+ bodyFont?: string;
24
+ extraBetAmount?: number;
25
+ buttonLabel?: (count: number) => string;
26
+ /** Left-column label above the tier buttons. @default 'Legs' */
27
+ columnLabel?: string;
28
+ buildYourOwn?: boolean;
29
+ quickPickOnly?: boolean;
30
+ onQuickPick?: (count: number) => void;
31
+ collapsible?: boolean;
32
+ expanded?: boolean;
33
+ onExpandedChange?: (expanded: boolean) => void;
34
+ summaryTiers?: MultiLegTableTier[];
35
+ }
36
+ /**
37
+ * Renders a compact Legs / Dividend / $X returns table identical to the
38
+ * one on the Game Page. Used by both GameSelector and ConfirmPage.
39
+ */
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;
@@ -0,0 +1,13 @@
1
+ import { default as React } from 'react';
2
+ export declare function PageBackButton({ onBack, title, className, }: {
3
+ onBack: () => void;
4
+ title?: string;
5
+ className?: string;
6
+ }): import("react/jsx-runtime").JSX.Element;
7
+ export declare function PageTitleBackRow({ onBack, hideActions: _hideActions, children, className, }: {
8
+ onBack?: () => void;
9
+ /** @deprecated Back arrow visibility is controlled by `onBack` only */
10
+ hideActions?: boolean;
11
+ children?: React.ReactNode;
12
+ className?: string;
13
+ }): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,15 @@
1
+ import { Game, BladeTheme } from '../types';
2
+ interface PayoutCirclesProps {
3
+ game: Game;
4
+ totalSelections: number;
5
+ expectedCorrect: number;
6
+ className?: string;
7
+ onExpectedCorrectChange?: (value: number) => void;
8
+ theme?: BladeTheme;
9
+ colorWinning?: string;
10
+ colorNone?: string;
11
+ winningCounts: number[];
12
+ payouts: Record<number, number>;
13
+ }
14
+ export declare function PayoutCircles({ game, totalSelections, expectedCorrect, className, onExpectedCorrectChange, theme, colorWinning, colorNone, winningCounts, payouts, }: PayoutCirclesProps): import("react/jsx-runtime").JSX.Element;
15
+ export {};
@@ -0,0 +1,22 @@
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
+ className?: string;
16
+ }
17
+ export declare function PerfectPickPageTitle({ className, onBack, hideActions, }: {
18
+ className?: string;
19
+ onBack?: () => void;
20
+ hideActions?: boolean;
21
+ }): import("react/jsx-runtime").JSX.Element;
22
+ export declare function PerfectPickPage({ onQuickPick, onPickYourOwn, onBack, hideTitle, backLabel, className, }: PerfectPickPageProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,21 @@
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
+ className?: string;
15
+ }
16
+ export declare function PickYourDividendPageTitle({ className, onBack, hideActions, }: {
17
+ className?: string;
18
+ onBack?: () => void;
19
+ hideActions?: boolean;
20
+ }): import("react/jsx-runtime").JSX.Element;
21
+ export declare function PickYourDividendPage({ onQuickPick, onPickYourOwn, onBack, hideTitle, config: configOverride, backLabel, className, }: PickYourDividendPageProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,19 @@
1
+ import { default as React } from 'react';
2
+ import { BladeTheme } from '../types';
3
+ export declare function YesNoCategoryLabel({ label, category, icon, theme, disabled, }: {
4
+ label: string;
5
+ category: string;
6
+ icon?: React.ReactNode;
7
+ theme: BladeTheme;
8
+ disabled?: boolean;
9
+ }): import("react/jsx-runtime").JSX.Element;
10
+ export declare function CategoryIcon({ category, size, color, }: {
11
+ category: string;
12
+ size?: number | string;
13
+ color?: string;
14
+ }): import("react/jsx-runtime").JSX.Element;
15
+ export declare function ChevronRightIcon({ size, color, className, }: {
16
+ size?: number;
17
+ color?: string;
18
+ className?: string;
19
+ }): import("react/jsx-runtime").JSX.Element;