@simple-parlay/components 1.30.6-pre.10 → 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 (100) hide show
  1. package/dist/index.cjs +1 -1
  2. package/dist/index.d.ts +1 -1
  3. package/dist/index.mjs +653 -467
  4. package/dist/react/components/CallPayoutTable.d.ts +7 -1
  5. package/dist/react/components/EntrySubmission.d.ts +1 -1
  6. package/dist/react/components/EventSwipeModal.d.ts +4 -0
  7. package/dist/react/components/GameCardParts.d.ts +28 -0
  8. package/dist/react/components/GameModeCard.d.ts +6 -2
  9. package/dist/react/components/GameSelector.d.ts +1 -27
  10. package/dist/react/components/GameShowcaseCatalogue.d.ts +3 -1
  11. package/dist/react/components/GameSkeletons.d.ts +24 -0
  12. package/dist/react/components/HowToPlayButton.d.ts +2 -1
  13. package/dist/react/components/LoadingIndicators.d.ts +27 -10
  14. package/dist/react/components/MatchRail.d.ts +23 -1
  15. package/dist/react/components/MatchTopBar.d.ts +19 -0
  16. package/dist/react/components/MultiLegTable.d.ts +3 -1
  17. package/dist/react/components/PageBackButton.d.ts +28 -7
  18. package/dist/react/components/PageSkeletons.d.ts +24 -0
  19. package/dist/react/components/PickGroupSection.d.ts +37 -0
  20. package/dist/react/components/PickerBrand.d.ts +0 -5
  21. package/dist/react/components/PicksSkeletons.d.ts +30 -0
  22. package/dist/react/components/PlaceEntryProvider.d.ts +34 -3
  23. package/dist/react/components/PropositionFilters.d.ts +0 -1
  24. package/dist/react/components/PropositionParts.d.ts +38 -0
  25. package/dist/react/components/QuickPickButton.d.ts +24 -1
  26. package/dist/react/components/QuickPickMenu.d.ts +19 -1
  27. package/dist/react/components/SafetyNetPage.d.ts +19 -0
  28. package/dist/react/components/SelectionsPage.d.ts +7 -2
  29. package/dist/react/components/ShelfKit.d.ts +43 -0
  30. package/dist/react/components/SportRail.d.ts +1 -1
  31. package/dist/react/components/SportSelector.d.ts +1 -36
  32. package/dist/react/components/SuccessPage.d.ts +4 -2
  33. package/dist/react/components/SwipeDeck.d.ts +32 -3
  34. package/dist/react/components/YesNoMultiLogo.d.ts +13 -0
  35. package/dist/react/components/_primitives/index.d.ts +47 -12
  36. package/dist/react/index.cjs +1 -1
  37. package/dist/react/index.d.ts +10 -2
  38. package/dist/react/index.mjs +653 -467
  39. package/dist/react/utils/themes.d.ts +1 -1
  40. package/dist/react-native/components/CallGameCatalogue.d.ts +1 -0
  41. package/dist/react-native/components/CallPayoutTable.d.ts +7 -1
  42. package/dist/react-native/components/DenseUi.d.ts +2 -9
  43. package/dist/react-native/components/EntrySubmission.d.ts +1 -1
  44. package/dist/react-native/components/EventSwipeModal.d.ts +5 -0
  45. package/dist/react-native/components/GameCardParts.d.ts +29 -0
  46. package/dist/react-native/components/GameModeCard.d.ts +3 -1
  47. package/dist/react-native/components/GameSelector.d.ts +0 -27
  48. package/dist/react-native/components/GameShelfCatalogue.d.ts +0 -5
  49. package/dist/react-native/components/GameSkeletons.d.ts +23 -0
  50. package/dist/react-native/components/HowToPlayButton.d.ts +2 -1
  51. package/dist/react-native/components/LoadingIndicators.d.ts +22 -10
  52. package/dist/react-native/components/MatchRail.d.ts +23 -2
  53. package/dist/react-native/components/MatchTopBar.d.ts +17 -0
  54. package/dist/react-native/components/MultiLegTable.d.ts +3 -1
  55. package/dist/react-native/components/PageBackButton.d.ts +26 -10
  56. package/dist/react-native/components/PageSkeletons.d.ts +23 -0
  57. package/dist/react-native/components/PickGroupSection.d.ts +37 -0
  58. package/dist/react-native/components/PickerBrand.d.ts +0 -4
  59. package/dist/react-native/components/PicksSkeletons.d.ts +31 -0
  60. package/dist/react-native/components/PlaceEntryProvider.d.ts +34 -3
  61. package/dist/react-native/components/PropositionFilters.d.ts +0 -1
  62. package/dist/react-native/components/PropositionParts.d.ts +35 -0
  63. package/dist/react-native/components/QuickPickButton.d.ts +24 -1
  64. package/dist/react-native/components/QuickPickMenu.d.ts +20 -1
  65. package/dist/react-native/components/SafetyNetPage.d.ts +17 -0
  66. package/dist/react-native/components/SelectionsPage.d.ts +6 -2
  67. package/dist/react-native/components/ShelfKit.d.ts +62 -0
  68. package/dist/react-native/components/SportRail.d.ts +1 -1
  69. package/dist/react-native/components/SportSelector.d.ts +1 -33
  70. package/dist/react-native/components/SuccessPage.d.ts +4 -2
  71. package/dist/react-native/components/SwipeDeck.d.ts +37 -3
  72. package/dist/react-native/components/YesNoMultiLogo.d.ts +12 -0
  73. package/dist/react-native/components/_primitives/index.d.ts +83 -10
  74. package/dist/react-native/index.cjs +1 -1
  75. package/dist/react-native/index.d.ts +10 -2
  76. package/dist/react-native/index.mjs +561 -438
  77. package/dist/react-native/utils/themes.d.ts +1 -1
  78. package/dist/shared/button-ui.d.ts +62 -0
  79. package/dist/shared/call-presentation.d.ts +9 -1
  80. package/dist/shared/canvas.d.ts +14 -0
  81. package/dist/shared/correlation-steering.d.ts +7 -0
  82. package/dist/shared/date-filters.d.ts +0 -23
  83. package/dist/shared/entry-progress.d.ts +38 -0
  84. package/dist/shared/game-artwork.d.ts +2 -0
  85. package/dist/shared/game-flow.d.ts +20 -0
  86. package/dist/shared/game-icons.d.ts +2 -1
  87. package/dist/shared/game-shelf-presentation.d.ts +38 -2
  88. package/dist/shared/hooks.d.ts +1 -1
  89. package/dist/shared/selection-actions.d.ts +70 -3
  90. package/dist/shared/selection-caps.d.ts +66 -10
  91. package/dist/shared/selection-variants.d.ts +5 -0
  92. package/dist/shared/shelf-covers.d.ts +92 -0
  93. package/dist/shared/shelf-ui.d.ts +47 -0
  94. package/dist/shared/swipe-deck.d.ts +10 -0
  95. package/dist/shared/themes.d.ts +48 -8
  96. package/dist/shared/tokens.d.ts +7 -0
  97. package/dist/shared/types.d.ts +6 -1
  98. package/dist/shared/ui-system.d.ts +4 -3
  99. package/dist/shared/utils.d.ts +2 -0
  100. package/package.json +1 -1
@@ -1,6 +1,12 @@
1
1
  import { CallPayoutView } from '../../shared/call-presentation';
2
2
  import { BladeTheme } from '../../shared/themes';
3
- export declare function CallPayoutTable({ view, theme }: {
3
+ /**
4
+ * The outcome card: best outcome on a primary band, $0 outcomes muted.
5
+ * `bare` drops the card chrome so it can sit inside a card or dock (Game Shelf):
6
+ * the band floats with radius 12 and only plain rows are ruled.
7
+ */
8
+ export declare function CallPayoutTable({ view, theme, bare }: {
4
9
  view: CallPayoutView;
5
10
  theme: BladeTheme;
11
+ bare?: boolean;
6
12
  }): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import { EntrySubmissionProps } from '../types';
2
- export declare function EntrySubmission({ game, propositions, selections, onToggleSelection, onRemoveSelection, onSubmit, onBack, loading, error, expectedCorrect, onExpectedCorrectChange, betAmount, onBetAmountChange, theme: themeProp, colorScheme, hideActions, winningCounts: winningCountsProp, payouts: payoutsProp, renderTeamLogo, componentById, showCustomAmount, betAmountLocked, betAmountLockedNote, canSubmit: canSubmitProp, authenticated, userBalance, onRecharge, boostBanner, }: EntrySubmissionProps): import("react/jsx-runtime").JSX.Element;
2
+ export declare function EntrySubmission({ game, propositions, selections, onToggleSelection, onRemoveSelection, onSubmit, onBack, loading, error, expectedCorrect, onExpectedCorrectChange, betAmount, onBetAmountChange, theme: themeProp, colorScheme, hideActions, winningCounts: winningCountsProp, payouts: payoutsProp, renderTeamLogo, componentById, showCustomAmount, betAmountLocked, betAmountLockedNote, canSubmit: canSubmitProp, confirming, authenticated, userBalance, onRecharge, boostBanner, }: EntrySubmissionProps): import("react/jsx-runtime").JSX.Element;
@@ -9,6 +9,10 @@ import { Proposition } from '../types';
9
9
  *
10
10
  * Native `<dialog>` carries the backdrop, focus trap and Esc-to-close.
11
11
  */
12
+ /** A card on its stack — the glyph on every Swipe button. RN twin in RN EventSwipeModal. */
13
+ export declare function SwipeIcon({ size }: {
14
+ size?: number;
15
+ }): import("react/jsx-runtime").JSX.Element;
12
16
  export interface EventSwipeModalProps {
13
17
  /** The fixture's answerable questions, in card order. */
14
18
  propositions: Proposition[];
@@ -0,0 +1,28 @@
1
+ import { BladeTheme } from '../../shared/themes';
2
+ import { DividendMode, DividendTier } from '../../shared/game-dividends';
3
+ /** The game's dividends, rendered inside the How to Play modal. */
4
+ export declare function CardDividends({ tiers, modes, pydDividends, onPlayCount, minBet, maxBet, colors: c, bodyFont, headingFont, theme, }: {
5
+ tiers: DividendTier[];
6
+ modes?: DividendMode[];
7
+ pydDividends?: {
8
+ dividend: number;
9
+ stakeFrom: number;
10
+ }[];
11
+ /** Makes each leg row play that many picks. */
12
+ onPlayCount?: (count: number) => void;
13
+ /** The game's bet limits — the example bet is clamped to them. */
14
+ minBet?: number;
15
+ maxBet?: number | null;
16
+ colors: any;
17
+ bodyFont: string | undefined;
18
+ headingFont: string | undefined;
19
+ theme?: BladeTheme;
20
+ }): import("react/jsx-runtime").JSX.Element | null;
21
+ /** PressToPlayTile's stacked-tile mark, cropped — no card frame or caption. */
22
+ export declare function GameMark({ iconUrl, size, brandColor, iconColor, accentColor, }: {
23
+ iconUrl: string;
24
+ size: number;
25
+ brandColor: string;
26
+ iconColor: string;
27
+ accentColor?: string;
28
+ }): import("react/jsx-runtime").JSX.Element;
@@ -54,8 +54,12 @@ export declare function LegPips({ legs, prizeBall }: {
54
54
  legs: number;
55
55
  prizeBall?: boolean;
56
56
  }): import("react/jsx-runtime").JSX.Element;
57
- export declare function KitCard({ interactive, className, style, children, }: {
57
+ /** The setup kit's card. A tappable card passes its button's `hovered` / `pressed` (from `usePress`): border previews the primary, a press sinks it. RN twin: KitCard. */
58
+ export declare function KitCard({ hovered, pressed, className, style, children, }: {
59
+ /** @deprecated Hover comes from `hovered` / `pressed` now; this does nothing. */
58
60
  interactive?: boolean;
61
+ hovered?: boolean;
62
+ pressed?: boolean;
59
63
  className?: string;
60
64
  style?: React.CSSProperties;
61
65
  children: React.ReactNode;
@@ -85,5 +89,5 @@ export declare function PlayModeCards({ iconUrl, pickLabel, pickDetail, quickDet
85
89
  onQuickPick: () => void;
86
90
  className?: string;
87
91
  }): import("react/jsx-runtime").JSX.Element;
88
- /** Scoped entrance + hover/press motion for the setup kit — render once per page. */
92
+ /** Scoped entrance motion for the setup kit — render once per page. */
89
93
  export declare function GameModeKitStyles(): import("react/jsx-runtime").JSX.Element;
@@ -1,28 +1,2 @@
1
1
  import { GameSelectorProps } from '../types';
2
- import { DividendMode, DividendTier } from '../../shared/game-dividends';
3
- /** The game's dividends, rendered inside the How to Play modal. */
4
- export declare function CardDividends({ tiers, modes, pydDividends, onPlayCount, minBet, maxBet, colors: c, bodyFont, headingFont, }: {
5
- tiers: DividendTier[];
6
- modes?: DividendMode[];
7
- pydDividends?: {
8
- dividend: number;
9
- stakeFrom: number;
10
- }[];
11
- /** Makes each leg row play that many picks. */
12
- onPlayCount?: (count: number) => void;
13
- /** The game's bet limits — the example bet is clamped to them. */
14
- minBet?: number;
15
- maxBet?: number | null;
16
- colors: any;
17
- bodyFont: string | undefined;
18
- headingFont: string | undefined;
19
- }): import("react/jsx-runtime").JSX.Element | null;
20
- /** PressToPlayTile's stacked-tile mark, cropped — no card frame or caption. */
21
- export declare function GameMark({ iconUrl, size, brandColor, iconColor, accentColor, }: {
22
- iconUrl: string;
23
- size: number;
24
- brandColor: string;
25
- iconColor: string;
26
- accentColor?: string;
27
- }): import("react/jsx-runtime").JSX.Element;
28
- export declare function GameSelector({ games: allGames, selectedGame, onSelectGame, loading, error, theme: themeProp, colorScheme, uiVariant: uiVariantProp, gameVariant, showTier, showCategory, showTierFilter, onPropositionCountChange, onPropositionCountSelected, onQuickPickGame, quickPickLoading, maxPayouts, onlyListedGames, }: GameSelectorProps): import("react/jsx-runtime").JSX.Element;
2
+ export declare function GameSelector({ games: allGames, selectedGame, onSelectGame, loading, error, theme: themeProp, colorScheme, uiVariant: uiVariantProp, gameVariant, showTier, showCategory, showTierFilter, onPropositionCountChange, onPropositionCountSelected, onQuickPickGame, quickPickLoading, maxPayouts, onlyListedGames, disableImage, }: GameSelectorProps): import("react/jsx-runtime").JSX.Element;
@@ -4,6 +4,8 @@ export interface GameShowcaseCatalogueProps extends CallGameCatalogueProps {
4
4
  onBack?: () => void;
5
5
  /** Show only the given games, without dimmed tiles for curated games the API is not offering. */
6
6
  onlyListedGames?: boolean;
7
+ /** Leave out the hero image. */
8
+ disableImage?: boolean;
7
9
  }
8
10
  /** A hero-led carousel of games with an all-games strip and a dividends view. Browsing is local; Press to play commits. */
9
- export declare function GameShowcaseCatalogue({ games, theme, onPlay, maxPayouts, quickPickLoading, onlyListedGames }: GameShowcaseCatalogueProps): import("react/jsx-runtime").JSX.Element;
11
+ export declare function GameShowcaseCatalogue({ games, theme, onPlay, maxPayouts, quickPickLoading, onlyListedGames, disableImage }: GameShowcaseCatalogueProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,24 @@
1
+ import { BladeTheme } from '../../shared/themes';
2
+ import { UiSystemPages } from '../../shared/ui-system';
3
+ import { GameVariant } from '../../shared/game-variants';
4
+ import { UiVariant } from '../../shared/ui-variant';
5
+ import { ThemeSurfaceColors } from './LoadingIndicators';
6
+ /**
7
+ * Loading skeletons for each game-chooser layout. Each one copies its
8
+ * catalogue's container, grid, radii, gaps and line heights, so nothing jumps
9
+ * when the games arrive. Numbers come from the catalogue CSS they mirror.
10
+ */
11
+ export type GameChooserLayout = UiSystemPages['games'] | GameVariant;
12
+ /**
13
+ * GameSelector's loading state: the skeleton of the layout that will replace
14
+ * it. `layout` is resolved exactly as GameSelector resolves it after loading.
15
+ */
16
+ export declare function GameChooserSkeleton({ layout, uiVariant, theme, colors, count, showTierTabs, }: {
17
+ layout: GameChooserLayout;
18
+ uiVariant: UiVariant;
19
+ theme: BladeTheme;
20
+ colors: ThemeSurfaceColors;
21
+ /** Games already known, if any; each layout falls back to a screenful. */
22
+ count: number;
23
+ showTierTabs?: boolean;
24
+ }): import("react/jsx-runtime").JSX.Element;
@@ -31,7 +31,8 @@ export interface HowToPlayButtonProps {
31
31
  extra?: React.ReactNode;
32
32
  title?: string;
33
33
  label?: string;
34
- variant?: 'pill' | 'icon';
34
+ /** link: "How to play" as the Game Shelf quiet button. */
35
+ variant?: 'pill' | 'icon' | 'link';
35
36
  /** Optional touch target size for compact layouts. */
36
37
  touchSize?: number;
37
38
  colors: HowToPlayModalProps['colors'];
@@ -1,4 +1,5 @@
1
1
  import { default as React } from 'react';
2
+ import { BladeTheme } from '../../shared/themes';
2
3
  export type ThemeSurfaceColors = {
3
4
  textMuted: string;
4
5
  border: string;
@@ -7,6 +8,7 @@ export type ThemeSurfaceColors = {
7
8
  primary: string;
8
9
  selectionCard?: string;
9
10
  };
11
+ export declare function cardBackground(colors: ThemeSurfaceColors): string;
10
12
  export declare function ThemeSpinner({ color, size, label, }: {
11
13
  color: string;
12
14
  size?: number;
@@ -16,60 +18,74 @@ export declare function ThemeButtonSpinner({ color, size, }: {
16
18
  color?: string;
17
19
  size?: number;
18
20
  }): import("react/jsx-runtime").JSX.Element;
21
+ export declare function Shimmer({ color, className, style, }: {
22
+ color: string;
23
+ className?: string;
24
+ style?: React.CSSProperties;
25
+ }): import("react/jsx-runtime").JSX.Element;
19
26
  export declare function PickerPageShell({ className, bodyFont, children, }: {
20
27
  className?: string;
21
28
  bodyFont: string;
22
29
  children: React.ReactNode;
23
30
  }): import("react/jsx-runtime").JSX.Element;
24
- export declare function CategoryGridSkeleton({ colors, count, }: {
31
+ export declare function CategoryGridSkeleton({ colors, count, theme, }: {
25
32
  colors: ThemeSurfaceColors;
33
+ theme?: BladeTheme;
26
34
  count?: number;
27
35
  showLogoArea?: boolean;
28
36
  }): import("react/jsx-runtime").JSX.Element;
29
37
  /** SportPickerPage grid — stacked tile on phones, logo-row on sm+. */
30
- export declare function SportGridSkeleton({ colors, count, }: {
38
+ export declare function SportGridSkeleton({ colors, count, theme, }: {
31
39
  colors: ThemeSurfaceColors;
40
+ theme?: BladeTheme;
32
41
  count?: number;
33
42
  }): import("react/jsx-runtime").JSX.Element;
34
43
  /** EventPickerPage fixture list — matchup bar, meta line, chevron. */
35
- export declare function EventListSkeleton({ colors, count, }: {
44
+ export declare function EventListSkeleton({ colors, count, theme, }: {
36
45
  colors: ThemeSurfaceColors;
46
+ theme?: BladeTheme;
37
47
  count?: number;
38
48
  }): import("react/jsx-runtime").JSX.Element;
39
49
  /** One carousel card — tile, YESNO wordmark, name, tagline/description. */
40
- export declare function GameCardSkeleton({ colors, tileSize, }: {
50
+ export declare function GameCardSkeleton({ colors, tileSize, theme, }: {
41
51
  colors: ThemeSurfaceColors;
42
52
  tileSize?: number;
53
+ theme?: BladeTheme;
43
54
  }): import("react/jsx-runtime").JSX.Element;
44
- export declare function GameTierTabsSkeleton({ colors }: {
55
+ export declare function GameTierTabsSkeleton({ colors, theme }: {
45
56
  colors: ThemeSurfaceColors;
57
+ theme?: BladeTheme;
46
58
  }): import("react/jsx-runtime").JSX.Element;
47
59
  /** GameSelector carousel — one centred card, dot row, all-games strip. */
48
- export declare function GameCardListSkeleton({ colors, count, tileSize, showTierTabs, }: {
60
+ export declare function GameCardListSkeleton({ colors, count, tileSize, showTierTabs, theme, }: {
49
61
  colors: ThemeSurfaceColors;
50
62
  count?: number;
51
63
  tileSize?: number;
52
64
  showTierTabs?: boolean;
65
+ theme?: BladeTheme;
53
66
  }): import("react/jsx-runtime").JSX.Element;
54
67
  /** SportSelector list — filter pill, then matchup cards of header + prop rows. */
55
- export declare function PropositionListSkeleton({ colors, groups, rowsPerGroup, }: {
68
+ export declare function PropositionListSkeleton({ colors, groups, rowsPerGroup, theme, }: {
56
69
  colors: ThemeSurfaceColors;
57
70
  groups?: number;
58
71
  rowsPerGroup?: number;
72
+ theme?: BladeTheme;
59
73
  }): import("react/jsx-runtime").JSX.Element;
60
74
  /** GameEntries tab bar — matches `flex border-b mb-4`. */
61
75
  export declare function EntryTabsSkeleton({ colors }: {
62
76
  colors: ThemeSurfaceColors;
63
77
  }): import("react/jsx-runtime").JSX.Element;
64
- export declare function EntryCardSkeleton({ colors }: {
78
+ export declare function EntryCardSkeleton({ colors, theme }: {
65
79
  colors: ThemeSurfaceColors;
80
+ theme?: BladeTheme;
66
81
  }): import("react/jsx-runtime").JSX.Element;
67
- export declare function EntryListSkeleton({ colors, rows, }: {
82
+ export declare function EntryListSkeleton({ colors, rows, theme, }: {
68
83
  colors: ThemeSurfaceColors;
69
84
  rows?: number;
85
+ theme?: BladeTheme;
70
86
  }): import("react/jsx-runtime").JSX.Element;
71
87
  export type PickerLoadingVariant = 'category' | 'sport' | 'event' | 'games' | 'propositions' | 'entries';
72
- export declare function PickerLoadingPanel({ colors, bodyFont, message, className, variant, showLogoArea, gameCardCount, categoryCount, showTierTabs, }: {
88
+ export declare function PickerLoadingPanel({ colors, bodyFont, message, className, variant, showLogoArea, gameCardCount, categoryCount, showTierTabs, theme, }: {
73
89
  colors: ThemeSurfaceColors;
74
90
  bodyFont: string;
75
91
  message?: string;
@@ -79,4 +95,5 @@ export declare function PickerLoadingPanel({ colors, bodyFont, message, classNam
79
95
  gameCardCount?: number;
80
96
  categoryCount?: number;
81
97
  showTierTabs?: boolean;
98
+ theme?: BladeTheme;
82
99
  }): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,8 @@
1
1
  import { default as React } from 'react';
2
2
  import { BladeTheme } from '../../shared/themes';
3
3
  import { SelectionEvent } from '../../shared/selection-variants';
4
+ import { ShelfPage } from '../../shared/selection-actions';
5
+ import { RenderTeamLogo } from '../../shared/types';
4
6
  export interface ChipRailItem {
5
7
  key: string;
6
8
  label: string;
@@ -11,9 +13,29 @@ export interface ChipRailItem {
11
13
  leading?: (on: boolean) => React.ReactNode;
12
14
  trailing?: (on: boolean) => React.ReactNode;
13
15
  }
14
- export declare function ChipRail({ theme, items, activeKey, onSelect, noun, groupLabel, }: {
16
+ /**
17
+ * The shelf's match control: Prev / Next either side of the matches on screen,
18
+ * by name. The names are a button too: they open a modal board of every
19
+ * match, by day, to jump straight to one. Native `<dialog>` sits in the top
20
+ * layer, so it needs no z-index over the host. RN twin: MatchStepper in the RN MatchRail.
21
+ */
22
+ export declare function MatchStepper({ theme: themeProp, events, page, per, picked, onGo, renderTeamLogo, racing, }: {
23
+ theme: BladeTheme;
24
+ events: SelectionEvent[];
25
+ /** What's on screen, and where Prev / Next go (`shelfPage`). */
26
+ page: ShelfPage;
27
+ /** Matches to a page, for the arrows' names: "Next 2 matches". */
28
+ per: number;
29
+ picked: (event: SelectionEvent) => number;
30
+ /** Show the page holding this match. */
31
+ onGo: (index: number) => void;
32
+ renderTeamLogo?: RenderTeamLogo;
33
+ racing?: boolean;
34
+ }): import("react/jsx-runtime").JSX.Element;
35
+ export declare function ChipRail({ theme: themeProp, items, activeKey, onSelect, noun, groupLabel, }: {
15
36
  theme: BladeTheme;
16
37
  items: ChipRailItem[];
38
+ /** The chip that's on, and the one the edge buttons step from. */
17
39
  activeKey?: string;
18
40
  onSelect: (key: string) => void;
19
41
  noun: string;
@@ -0,0 +1,19 @@
1
+ import { default as React } from 'react';
2
+ import { BladeTheme } from '../utils/themes';
3
+ import { RenderTeamLogo } from '../../shared/types';
4
+ /**
5
+ * The top bar every system's match card opens with: stacked badges and teams, kick-off, and whatever sits at the
6
+ * far right (Swipe, or the original list's answered count and chevron). RN twin: MatchTopBar in the RN components.
7
+ */
8
+ export declare function MatchTopBar({ theme, title, home, away, racing, date, renderTeamLogo, trailing, inButton }: {
9
+ theme: BladeTheme;
10
+ title: string;
11
+ home?: string;
12
+ away?: string;
13
+ racing?: boolean;
14
+ date: Date | null;
15
+ renderTeamLogo?: RenderTeamLogo;
16
+ trailing?: React.ReactNode;
17
+ /** Drawn inside a button: spans only, no heading. */
18
+ inButton?: boolean;
19
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,5 @@
1
1
  import { Game } from '../../shared/types';
2
+ import { BladeTheme } from '../../shared/themes';
2
3
  export interface MultiLegTableTier {
3
4
  count: number;
4
5
  payout20: number;
@@ -34,9 +35,10 @@ export interface MultiLegTableProps {
34
35
  expanded?: boolean;
35
36
  onExpandedChange?: (expanded: boolean) => void;
36
37
  summaryTiers?: MultiLegTableTier[];
38
+ theme?: BladeTheme;
37
39
  }
38
40
  /**
39
41
  * Renders a compact Legs / Dividend / $X returns table identical to the
40
42
  * one on the Game Page. Used by both GameSelector and ConfirmPage.
41
43
  */
42
- export declare function MultiLegTable({ tiers, game, selectedCount, onSelect, colors: c, bodyFont, extraBetAmount, buttonLabel, columnLabel, buildYourOwn, quickPickOnly, onQuickPick, collapsible, expanded: expandedProp, onExpandedChange, summaryTiers }: MultiLegTableProps): import("react/jsx-runtime").JSX.Element;
44
+ export declare function MultiLegTable({ tiers, game, selectedCount, onSelect, colors: c, bodyFont, extraBetAmount, buttonLabel, columnLabel, buildYourOwn, quickPickOnly, onQuickPick, collapsible, expanded: expandedProp, onExpandedChange, summaryTiers, theme }: MultiLegTableProps): import("react/jsx-runtime").JSX.Element;
@@ -1,23 +1,44 @@
1
1
  import { default as React } from 'react';
2
- export declare function PageBackButton({ onBack, title, className, }: {
2
+ import { BladeTheme } from '../types';
3
+ /**
4
+ * The one back control: the arrow and an optional label, one button. It rests
5
+ * in the header's context colour, turns primary on hover and sinks on press;
6
+ * its tap target reaches 44px without growing the row. Every header layout and
7
+ * the setup pages' back link draw this. Twin: RN `PageBackButton`.
8
+ */
9
+ export declare const PageBackButton: React.ForwardRefExoticComponent<{
3
10
  onBack: () => void;
11
+ /** Tooltip, and the accessible name when there is no label. */
4
12
  title?: string;
13
+ /** Context text beside the arrow; part of the button. */
14
+ label?: React.ReactNode;
15
+ /** Overrides the accessible name (Shelf: "Back to Sports"). */
16
+ ariaLabel?: string;
17
+ /** Resting colour; muted text by default. */
18
+ color?: string;
19
+ labelClassName?: string;
5
20
  className?: string;
6
- }): import("react/jsx-runtime").JSX.Element;
7
- /**
8
- * The body back link used by the game setup pages — arrow + label,
9
- * hover → primary colour + slide left. Twin of the RN `PageBackLink`.
10
- */
21
+ style?: React.CSSProperties;
22
+ /** Defaults to the place-entry page theme. */
23
+ theme?: BladeTheme;
24
+ } & React.RefAttributes<HTMLButtonElement>>;
25
+ /** The success check that sits in the back arrow's slot: the same 16px mark. */
26
+ export declare function HeaderCheck({ color, ...rest }: {
27
+ color: string;
28
+ } & React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
29
+ /** The setup pages' body back link: the one back control with a label. */
11
30
  export declare function PageBackLink({ onBack, label, }: {
12
31
  onBack: () => void;
13
32
  label?: string;
14
33
  }): import("react/jsx-runtime").JSX.Element;
15
- export declare function PageHeader({ title, onBack, backLabel, actions, children, className, }: {
34
+ export declare function PageHeader({ title, onBack, backLabel, actions, children, leading, className, }: {
16
35
  title: React.ReactNode;
17
36
  onBack?: () => void;
18
37
  backLabel?: React.ReactNode;
19
38
  actions?: React.ReactNode;
20
39
  children?: React.ReactNode;
40
+ /** Toolbar layout: takes the back button's slot (the success page puts its check here). */
41
+ leading?: React.ReactNode;
21
42
  className?: string;
22
43
  }): import("react/jsx-runtime").JSX.Element;
23
44
  export declare function PageTitleBackRow({ onBack, hideActions: _hideActions, label, children, className, }: {
@@ -0,0 +1,24 @@
1
+ import { BladeTheme } from '../utils/themes';
2
+ /**
3
+ * Page loading skeletons shaped like each UI system's loaded page, so nothing
4
+ * jumps when the data lands. Sizes are copied from CategoryPickerPage,
5
+ * GameEntries and EventPickerPage; the native twin mirrors them.
6
+ */
7
+ export type SkeletonLayout = 'kit' | 'shelf';
8
+ /** CategoryPickerPage grid. Shelf: one banner per category, filling the row from 300px each. */
9
+ export declare function CategoryPageSkeleton({ theme, layout, categories }: {
10
+ theme: BladeTheme;
11
+ layout: SkeletonLayout;
12
+ categories: readonly string[];
13
+ }): import("react/jsx-runtime").JSX.Element;
14
+ /** GameEntries. Kit: underline tabs + collapsed cards. Shelf: two option tabs + white summary cards with pips. */
15
+ export declare function EntriesPageSkeleton({ theme, layout, rows }: {
16
+ theme: BladeTheme;
17
+ layout: SkeletonLayout;
18
+ rows?: number;
19
+ }): import("react/jsx-runtime").JSX.Element;
20
+ /** EventPickerPage — the intro line, then fixture cards; the matchup stacks on phones. */
21
+ export declare function EventPageSkeleton({ theme, count }: {
22
+ theme: BladeTheme;
23
+ count?: number;
24
+ }): import("react/jsx-runtime").JSX.Element;
@@ -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;
@@ -11,7 +11,9 @@ import { BladeTheme, BladeThemeSet, ColorScheme } from '../utils/themes';
11
11
  import { SportDisplayNameOverrides, CategoryDisplayNameOverrides } from '../utils';
12
12
  import { RenderTeamLogo, RenderPropositionSilk, GamePermittedRule, GameCategory } from '../../shared/types';
13
13
  import { SelectionVariant } from '../../shared/selection-variants';
14
+ import { SwipeVariant } from '../../shared/swipe-deck';
14
15
  import { useCorrelationSteering } from '../../shared/correlation-steering';
16
+ import { QuickPickMode } from '../../shared/selection-caps';
15
17
  import { SameGameMultiEvent } from '../../shared/same-game-multi';
16
18
  export interface PlaceEntryContextValue {
17
19
  gameLibrary: GameLibrary<PlaceEntryContextValue>;
@@ -48,6 +50,8 @@ export interface PlaceEntryContextValue {
48
50
  showCorrelationDebug: boolean;
49
51
  canSelectAnswer: (id: number, answer: 'yes' | 'no') => boolean;
50
52
  answeredCount: number;
53
+ /** Answered ids in the order they were picked — `selections` keys are numeric, so they sort. */
54
+ pickOrder: number[];
51
55
  betAmount: number;
52
56
  setBetAmount: (v: number) => void;
53
57
  expectedCorrect: number;
@@ -70,7 +74,12 @@ export interface PlaceEntryContextValue {
70
74
  userBalance?: number;
71
75
  hasSufficientBalance: boolean;
72
76
  refreshUserBalance: () => Promise<void>;
73
- 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;
74
83
  selectGame: (game: Game) => void;
75
84
  goToSportSelection: () => void;
76
85
  goToConfirmation: () => void;
@@ -81,7 +90,23 @@ export interface PlaceEntryContextValue {
81
90
  correlationTargetCount: number;
82
91
  toggleSelection: (id: number, answer: 'yes' | 'no') => void;
83
92
  quickPickGame: (game: Game, count: number, stake?: number) => void;
84
- quickPickSelections: (count: number) => number;
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;
85
110
  selectedCategory: string | null;
86
111
  setSelectedCategory: (category: string | null) => void;
87
112
  selectedSport: string | null;
@@ -105,6 +130,8 @@ export interface PlaceEntryContextValue {
105
130
  gameVariant?: GameVariant;
106
131
  /** Drop the per-fixture swipe deck the variant layouts offer. */
107
132
  disableEventSwipe?: boolean;
133
+ /** Look of the swipe view: the card `stack` (default) or the one-question `run`. */
134
+ swipeVariant?: SwipeVariant;
108
135
  enableSportFavourites?: boolean;
109
136
  filterSport?: string;
110
137
  initialSport?: string;
@@ -177,10 +204,14 @@ export interface PlaceEntryProviderProps {
177
204
  /** Optional game discovery layout, independent of uiVariant. `cards`, `split` and `compare` are web-only; native renders `shelf`. */
178
205
  gameVariant?: GameVariant;
179
206
  disableEventSwipe?: boolean;
207
+ /** Look of the swipe view: the card `stack` (default) or the one-question `run`. */
208
+ swipeVariant?: SwipeVariant;
180
209
  yesNoLabels?: YesNoLabels;
181
210
  enableSportFavourites?: boolean;
182
211
  onEntryPlaced?: (entry: GameEntry) => void;
183
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;
184
215
  onCancel?: () => void;
185
216
  onShare?: (data: ShareData) => void;
186
217
  onRecharge?: () => void;
@@ -192,4 +223,4 @@ export interface PlaceEntryProviderProps {
192
223
  /** Map entry categories to UI labels. */
193
224
  categoryDisplayNames?: CategoryDisplayNameOverrides;
194
225
  }
195
- export declare function PlaceEntryProvider({ gameLibrary, apiClient: suppliedApiClient, scopePropositionsToSport, showCorrelationDebug, apiUrl, apiKey, fetchImpl, getAuthHeaders, userId, getUserBalance, children, theme: themeProp, colorScheme, demoGames, demoPropositions, demoEntries, demoMaxPayouts, gameCategory, jurisdiction, initialGameId, filterSport, initialSport, initialEventId, initialEventLabel, sportBaseKey, disableQuickPick, renderTeamLogo, renderPropositionSilk, uiVariant, selectionVariant, gameVariant, disableEventSwipe, enableSportFavourites, yesNoLabels, onEntryPlaced, onBeforeSubmit, onCancel, onShare, onRecharge, onClearEventFilter, screenSize, howToPlayMarkdown: howToPlayMarkdownProp, sportDisplayNames, categoryDisplayNames, }: PlaceEntryProviderProps): import("react/jsx-runtime").JSX.Element;
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;
@@ -23,4 +23,3 @@ export interface FilterChipRowProps extends FilterChipGroup {
23
23
  className?: string;
24
24
  }
25
25
  export declare function FilterChipRow({ label, options, value, onChange, theme, bodyFont, className, }: FilterChipRowProps): import("react/jsx-runtime").JSX.Element;
26
- export declare function FilterChipPanel({ groups, theme, bodyFont, className }: FilterChipCarouselProps): import("react/jsx-runtime").JSX.Element | null;
@@ -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;