@simple-parlay/components 1.30.6-pre → 1.30.6-pre.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +448 -432
- package/dist/react/components/CallGameCatalogue.d.ts +4 -0
- package/dist/react/components/CallPayoutTable.d.ts +6 -0
- package/dist/react/components/CallTicketBuilder.d.ts +3 -0
- package/dist/react/components/CorrelationChoicesSkeleton.d.ts +4 -0
- package/dist/react/components/CorrelationPricingDebug.d.ts +2 -0
- package/dist/react/components/CorrelationPropPlaceholder.d.ts +13 -0
- package/dist/react/components/DenseGameCatalogue.d.ts +2 -0
- package/dist/react/components/DenseUi.d.ts +30 -0
- package/dist/react/components/EntriesPage.d.ts +0 -4
- package/dist/react/components/EntrySubmission.d.ts +1 -1
- package/dist/react/components/GameModeCard.d.ts +33 -6
- package/dist/react/components/GamePage.d.ts +3 -1
- package/dist/react/components/GameSelector.d.ts +9 -1
- package/dist/react/components/GameSetupPage.d.ts +6 -2
- package/dist/react/components/GameShelfCatalogue.d.ts +2 -0
- package/dist/react/components/GameShowcaseCatalogue.d.ts +9 -0
- package/dist/react/components/GameVariantCatalogue.d.ts +6 -0
- package/dist/react/components/HowToPlayButton.d.ts +3 -1
- package/dist/react/components/MatchRail.d.ts +30 -0
- package/dist/react/components/MultiLegTable.d.ts +3 -1
- package/dist/react/components/PageBackButton.d.ts +8 -0
- package/dist/react/components/PlaceEntryProvider.d.ts +43 -5
- package/dist/react/components/PlaybookChooser.d.ts +7 -0
- package/dist/react/components/PropositionFilters.d.ts +3 -1
- package/dist/react/components/QuickPickButton.d.ts +3 -1
- package/dist/react/components/ScrollShelf.d.ts +5 -1
- package/dist/react/components/SelectionReview.d.ts +1 -1
- package/dist/react/components/SportRail.d.ts +13 -7
- package/dist/react/components/SportSelector.d.ts +16 -3
- package/dist/react/components/_primitives/index.d.ts +7 -1
- package/dist/react/index.cjs +1 -0
- package/dist/react/index.d.ts +36 -17
- package/dist/react/index.mjs +448 -432
- package/dist/react/utils/dom.d.ts +7 -0
- package/dist/react/utils/index.d.ts +1 -1
- package/dist/react-native/components/CallGameCatalogue.d.ts +16 -0
- package/dist/react-native/components/CallPayoutTable.d.ts +6 -0
- package/dist/react-native/components/CallTicketBuilder.d.ts +33 -0
- package/dist/react-native/components/CorrelationChoicesSkeleton.d.ts +3 -0
- package/dist/react-native/components/CorrelationPricingDebug.d.ts +2 -0
- package/dist/react-native/components/CorrelationPropPlaceholder.d.ts +7 -0
- package/dist/react-native/components/DenseGameCatalogue.d.ts +2 -0
- package/dist/react-native/components/DenseUi.d.ts +59 -0
- package/dist/react-native/components/EntrySubmission.d.ts +1 -1
- package/dist/react-native/components/GameModeCard.d.ts +32 -5
- package/dist/react-native/components/GamePage.d.ts +4 -1
- package/dist/react-native/components/GameSelector.d.ts +9 -1
- package/dist/react-native/components/GameSetupPage.d.ts +5 -14
- package/dist/react-native/components/GameShelfCatalogue.d.ts +7 -0
- package/dist/react-native/components/HowToPlayButton.d.ts +3 -1
- package/dist/react-native/components/LoadingIndicators.d.ts +1 -1
- package/dist/react-native/components/MatchRail.d.ts +36 -0
- package/dist/react-native/components/MultiLegTable.d.ts +3 -1
- package/dist/react-native/components/PageBackButton.d.ts +7 -0
- package/dist/react-native/components/PlaceEntryProvider.d.ts +36 -5
- package/dist/react-native/components/PlaybookChooser.d.ts +7 -0
- package/dist/react-native/components/PropositionFilters.d.ts +3 -1
- package/dist/react-native/components/QuickPickButton.d.ts +3 -1
- package/dist/react-native/components/ScrollShelf.d.ts +8 -1
- package/dist/react-native/components/SelectionReview.d.ts +1 -1
- package/dist/react-native/components/SportRail.d.ts +13 -7
- package/dist/react-native/components/SportSelector.d.ts +8 -3
- package/dist/react-native/components/_primitives/index.d.ts +10 -2
- package/dist/react-native/index.cjs +1 -0
- package/dist/react-native/index.d.ts +36 -17
- package/dist/react-native/index.mjs +438 -437
- package/dist/react-native/utils/index.d.ts +1 -1
- package/dist/shared/api-client.d.ts +4 -3
- package/dist/shared/call-presentation.d.ts +20 -0
- package/dist/shared/correlation-steering.d.ts +49 -0
- package/dist/shared/date-filters.d.ts +5 -4
- package/dist/shared/dense-ui.d.ts +54 -0
- package/dist/shared/game-artwork.d.ts +61 -0
- package/dist/shared/game-flow.d.ts +14 -1
- package/dist/shared/game-icons.d.ts +6 -3
- package/dist/shared/game-library.d.ts +58 -0
- package/dist/shared/game-set-bet.d.ts +0 -1
- package/dist/shared/game-shelf-artwork.d.ts +3 -0
- package/dist/shared/game-shelf-presentation.d.ts +43 -0
- package/dist/shared/game-variants.d.ts +5 -0
- package/dist/shared/hooks.d.ts +8 -8
- package/dist/shared/how-to-play-html.d.ts +1 -1
- package/dist/shared/how-to-play-logo.d.ts +1 -1
- package/dist/shared/menu-placement.d.ts +26 -0
- package/dist/shared/mirror.d.ts +55 -5
- package/dist/shared/picker-brand.d.ts +22 -6
- package/dist/shared/playbook.d.ts +29 -0
- package/dist/shared/selection-actions.d.ts +15 -4
- package/dist/shared/selection-caps.d.ts +68 -0
- package/dist/shared/selection-variants.d.ts +5 -1
- package/dist/shared/swipe-deck.d.ts +1 -1
- package/dist/shared/themes.d.ts +22 -0
- package/dist/shared/types.d.ts +43 -2
- package/dist/shared/ui-system.d.ts +69 -0
- package/dist/shared/ui-variant.d.ts +16 -0
- package/dist/shared/use-call-payouts.d.ts +8 -0
- package/dist/shared/utils.d.ts +18 -7
- package/package.json +7 -8
- package/dist/index.js +0 -1
- package/dist/react/components/GameSetBetPage.d.ts +0 -21
- package/dist/react/components/LadderPage.d.ts +0 -21
- package/dist/react/components/MirrorPage.d.ts +0 -21
- package/dist/react/components/PerfectPickPage.d.ts +0 -22
- package/dist/react/components/PickYourDividendPage.d.ts +0 -21
- package/dist/react/components/RuleSetupPage.d.ts +0 -27
- package/dist/react/components/SafetyNetPage.d.ts +0 -16
- package/dist/react/components/SixAgainPage.d.ts +0 -16
- package/dist/react/index.js +0 -1
- package/dist/react/utils/design.d.ts +0 -55
- package/dist/react-native/components/GameSetBetPage.d.ts +0 -19
- package/dist/react-native/components/LadderPage.d.ts +0 -19
- package/dist/react-native/components/MirrorPage.d.ts +0 -19
- package/dist/react-native/components/PerfectPickPage.d.ts +0 -20
- package/dist/react-native/components/PickYourDividendPage.d.ts +0 -19
- package/dist/react-native/components/RuleSetupPage.d.ts +0 -23
- package/dist/react-native/components/SafetyNetPage.d.ts +0 -14
- package/dist/react-native/components/SixAgainPage.d.ts +0 -14
- package/dist/react-native/index.js +0 -1
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { CallGameCatalogueProps } from '../../shared/dense-ui';
|
|
2
|
+
export type { CallGameCatalogueProps } from '../../shared/dense-ui';
|
|
3
|
+
/** Catalogue discovery is local presentation state; only Play commits the game. */
|
|
4
|
+
export declare function CallGameCatalogue({ games, theme, onPlay, maxPayouts, quickPickLoading, showTier, showCategory }: CallGameCatalogueProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Holds a row back while the choices are re-priced. The first load has no
|
|
4
|
+
* quote to show yet, so it paints a skeleton over the original's dimensions.
|
|
5
|
+
* After that the rows on screen are the last quote's: they stay readable,
|
|
6
|
+
* dimmed, until the next one lands, so a tap never wipes the list.
|
|
7
|
+
*/
|
|
8
|
+
export declare function CorrelationPropPlaceholder({ id, kind, stretch, children }: {
|
|
9
|
+
id: number;
|
|
10
|
+
kind: 'text' | 'answers';
|
|
11
|
+
stretch?: boolean;
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { BladeTheme } from '../../shared/themes';
|
|
3
|
+
import { CallPayoutView } from '../../shared/call-presentation';
|
|
4
|
+
import { CallTicketBuilderProps, DenseTicketActionsProps } from '../../shared/dense-ui';
|
|
5
|
+
export declare function DenseSurface({ theme, children, className, }: {
|
|
6
|
+
theme: BladeTheme;
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
className?: string;
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare function DenseOutcome({ view, compact, }: {
|
|
11
|
+
view: CallPayoutView;
|
|
12
|
+
compact?: boolean;
|
|
13
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare function DenseSportControl({ actions }: {
|
|
15
|
+
actions?: React.ReactNode;
|
|
16
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
/** The Dense system's page header for a game: the shared `PageHeader` (bar layout) titled with the game. */
|
|
18
|
+
export declare function DenseHeader({ onBack, title, children, }: {
|
|
19
|
+
onBack?: () => void;
|
|
20
|
+
title?: string;
|
|
21
|
+
children?: React.ReactNode;
|
|
22
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export declare function DenseSelectionHeader({ onBack }: {
|
|
24
|
+
onBack?: () => void;
|
|
25
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export declare function DenseTicketBuilder(p: CallTicketBuilderProps & {
|
|
27
|
+
quotedView: CallPayoutView;
|
|
28
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
export type { DenseTicketActionsProps } from '../../shared/dense-ui';
|
|
30
|
+
export declare function DenseTicketActions(p: DenseTicketActionsProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -12,8 +12,4 @@ export declare function EntriesPageTitle({ className, onBack, hideActions, }: {
|
|
|
12
12
|
onBack?: () => void;
|
|
13
13
|
hideActions?: boolean;
|
|
14
14
|
}): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
/**
|
|
16
|
-
* Standalone page that shows past / pending entries.
|
|
17
|
-
* Must be rendered inside a `<PlaceEntryProvider>`.
|
|
18
|
-
*/
|
|
19
15
|
export declare function EntriesPage({ className, onSelectEntry, onBack, hideTitle, hideActions }: EntriesPageProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { EntrySubmissionProps } from '../types';
|
|
2
|
-
export declare function EntrySubmission({ game, propositions, selections, onToggleSelection, onRemoveSelection, onSubmit, onBack, loading, error, expectedCorrect, onExpectedCorrectChange, betAmount, onBetAmountChange, theme: themeProp, colorScheme, hideActions, winningCounts: winningCountsProp, payouts: payoutsProp, renderTeamLogo, showCustomAmount, betAmountLocked, betAmountLockedNote, canSubmit: canSubmitProp, authenticated, userBalance, onRecharge, boostBanner, }: EntrySubmissionProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function EntrySubmission({ game, propositions, selections, onToggleSelection, onRemoveSelection, onSubmit, onBack, loading, error, expectedCorrect, onExpectedCorrectChange, betAmount, onBetAmountChange, theme: themeProp, colorScheme, hideActions, winningCounts: winningCountsProp, payouts: payoutsProp, renderTeamLogo, componentById, showCustomAmount, betAmountLocked, betAmountLockedNote, canSubmit: canSubmitProp, authenticated, userBalance, onRecharge, boostBanner, }: EntrySubmissionProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
/** Shared
|
|
2
|
+
/** Shared kit for every game setup page: masthead, tiles, cards, motion. */
|
|
3
3
|
export declare function hexA(color: string, alpha: number): string;
|
|
4
|
-
|
|
4
|
+
export declare function useBrandTileColors(): {
|
|
5
|
+
chip: string;
|
|
6
|
+
icon: string;
|
|
7
|
+
ball: string;
|
|
8
|
+
};
|
|
9
|
+
export declare function BrandTile({ size, children }: {
|
|
10
|
+
size?: number;
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
5
13
|
export declare function BrandChipTile({ iconUrl, size }: {
|
|
6
14
|
iconUrl: string;
|
|
7
15
|
size?: number;
|
|
@@ -11,11 +19,13 @@ export declare function BrandChipTile({ iconUrl, size }: {
|
|
|
11
19
|
* Eyebrow is desktop-only and the lockup shrinks on phones, so the picker
|
|
12
20
|
* starts near the top of the screen instead of ~180px down.
|
|
13
21
|
*/
|
|
14
|
-
export declare function GamePageHeader({ eyebrow, iconUrl, gameName, tagline, className, }: {
|
|
22
|
+
export declare function GamePageHeader({ eyebrow, iconUrl, gameName, subtitle, tagline, className, }: {
|
|
15
23
|
/** Uppercase kicker above the lockup. Hidden on phones — pass `null` to drop it everywhere. */
|
|
16
24
|
eyebrow?: string | null;
|
|
17
25
|
iconUrl: string;
|
|
18
26
|
gameName: string;
|
|
27
|
+
/** Small line under the lockup, e.g. "8 legs". */
|
|
28
|
+
subtitle?: string | null;
|
|
19
29
|
tagline?: string | null;
|
|
20
30
|
className?: string;
|
|
21
31
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -44,19 +54,36 @@ export declare function LegPips({ legs, prizeBall }: {
|
|
|
44
54
|
legs: number;
|
|
45
55
|
prizeBall?: boolean;
|
|
46
56
|
}): import("react/jsx-runtime").JSX.Element;
|
|
57
|
+
export declare function KitCard({ interactive, className, style, children, }: {
|
|
58
|
+
interactive?: boolean;
|
|
59
|
+
className?: string;
|
|
60
|
+
style?: React.CSSProperties;
|
|
61
|
+
children: React.ReactNode;
|
|
62
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
47
63
|
/**
|
|
48
64
|
* Tap-to-play mode card — the Safety Net card, generalised. ONE click applies
|
|
49
65
|
* and continues; `children` renders below the divider (payout rows, notes).
|
|
50
66
|
*/
|
|
51
|
-
export declare function GameModeCard({ tile, label, stat, detail, onSelect, children, }: {
|
|
67
|
+
export declare function GameModeCard({ tile, label, stat, detail, body, ariaLabel, onSelect, children, }: {
|
|
52
68
|
/** Left tile, e.g. `<BrandChipTile iconUrl={...} />`. */
|
|
53
69
|
tile: React.ReactNode;
|
|
54
|
-
label
|
|
70
|
+
label?: string;
|
|
55
71
|
/** Short positioning hint chip, e.g. "Fastest". */
|
|
56
72
|
stat?: string;
|
|
57
73
|
detail?: string[];
|
|
74
|
+
body?: React.ReactNode;
|
|
75
|
+
ariaLabel?: string;
|
|
58
76
|
onSelect: () => void;
|
|
59
77
|
children?: React.ReactNode;
|
|
60
78
|
}): import("react/jsx-runtime").JSX.Element;
|
|
61
|
-
|
|
79
|
+
export declare function PlayModeCards({ iconUrl, pickLabel, pickDetail, quickDetail, onPickYourOwn, onQuickPick, className, }: {
|
|
80
|
+
iconUrl: string;
|
|
81
|
+
pickLabel?: string;
|
|
82
|
+
pickDetail: string[];
|
|
83
|
+
quickDetail: string[];
|
|
84
|
+
onPickYourOwn: () => void;
|
|
85
|
+
onQuickPick: () => void;
|
|
86
|
+
className?: string;
|
|
87
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
88
|
+
/** Scoped entrance + hover/press motion for the setup kit — render once per page. */
|
|
62
89
|
export declare function GameModeKitStyles(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { GameVariant } from '../../shared/game-variants';
|
|
1
2
|
import { GameFlow } from '../../shared/game-flow';
|
|
2
3
|
export interface GamePageProps {
|
|
4
|
+
gameVariant?: GameVariant;
|
|
3
5
|
/** Called after a game is selected (e.g. navigate to selections page) */
|
|
4
6
|
onSelectGame?: () => void;
|
|
5
7
|
onGameSetup?: (flow: GameFlow) => void;
|
|
@@ -37,4 +39,4 @@ export declare function GamePageActions({ onCancel, className }: {
|
|
|
37
39
|
onSelectGame?: () => void;
|
|
38
40
|
className?: string;
|
|
39
41
|
}): import("react/jsx-runtime").JSX.Element | null;
|
|
40
|
-
export declare function GamePage({ onSelectGame, onGameSetup, onRuleSetup, onGameSetBet, onPickYourDividend, onLadder, onMirror, onSafetyNet, onQuickPick, onCancel, hideTitle, hideActions, showPerfectPickSetup, showTierFilter, className }: GamePageProps): import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
export declare function GamePage({ gameVariant, onSelectGame, onGameSetup, onRuleSetup, onGameSetBet, onPickYourDividend, onLadder, onMirror, onSafetyNet, onQuickPick, onCancel, hideTitle, hideActions, showPerfectPickSetup, showTierFilter, className }: GamePageProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -17,4 +17,12 @@ export declare function CardDividends({ tiers, modes, pydDividends, onPlayCount,
|
|
|
17
17
|
bodyFont: string | undefined;
|
|
18
18
|
headingFont: string | undefined;
|
|
19
19
|
}): import("react/jsx-runtime").JSX.Element | null;
|
|
20
|
-
|
|
20
|
+
/** PressToPlayTile's stacked-tile mark, cropped — no card frame or caption. */
|
|
21
|
+
export declare function GameMark({ iconUrl, size, brandColor, iconColor, accentColor, }: {
|
|
22
|
+
iconUrl: string;
|
|
23
|
+
size: number;
|
|
24
|
+
brandColor: string;
|
|
25
|
+
iconColor: string;
|
|
26
|
+
accentColor?: string;
|
|
27
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export declare function GameSelector({ games: allGames, selectedGame, onSelectGame, loading, error, theme: themeProp, colorScheme, uiVariant: uiVariantProp, gameVariant, showTier, showCategory, showTierFilter, onPropositionCountChange, onPropositionCountSelected, onQuickPickGame, quickPickLoading, maxPayouts, onlyListedGames, }: GameSelectorProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,10 +4,14 @@ export interface GameSetupPageProps {
|
|
|
4
4
|
/** Called after Quick Pick fills the slip (navigate to the bet slip / confirm page). */
|
|
5
5
|
onQuickPick?: () => void;
|
|
6
6
|
onBack?: () => void;
|
|
7
|
-
/** Hide the built-in
|
|
7
|
+
/** Hide the built-in page header. */
|
|
8
8
|
hideTitle?: boolean;
|
|
9
9
|
/** Label for the back link (where "back" leads). @default 'Games' */
|
|
10
10
|
backLabel?: string;
|
|
11
11
|
className?: string;
|
|
12
12
|
}
|
|
13
|
-
export declare function GameSetupPage({ onPickYourOwn, onQuickPick, onBack, hideTitle, backLabel, className, }: GameSetupPageProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare function GameSetupPage({ onPickYourOwn, onQuickPick, onBack, hideTitle, backLabel, className, }: GameSetupPageProps): import("react/jsx-runtime").JSX.Element | null;
|
|
14
|
+
export declare function GameSetupPageTitle({ onBack, className }: {
|
|
15
|
+
onBack?: () => void;
|
|
16
|
+
className?: string;
|
|
17
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CallGameCatalogueProps } from '../../shared/dense-ui';
|
|
2
|
+
export interface GameShowcaseCatalogueProps extends CallGameCatalogueProps {
|
|
3
|
+
/** @deprecated Back lives in the page header now. */
|
|
4
|
+
onBack?: () => void;
|
|
5
|
+
/** Show only the given games, without dimmed tiles for curated games the API is not offering. */
|
|
6
|
+
onlyListedGames?: boolean;
|
|
7
|
+
}
|
|
8
|
+
/** A hero-led carousel of games with an all-games strip and a dividends view. Browsing is local; Press to play commits. */
|
|
9
|
+
export declare function GameShowcaseCatalogue({ games, theme, onPlay, maxPayouts, quickPickLoading, onlyListedGames }: GameShowcaseCatalogueProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { GameVariant } from '../../shared/game-variants';
|
|
2
|
+
import { CallGameCatalogueProps } from '../../shared/dense-ui';
|
|
3
|
+
/** Browsing is local; only Continue commits a game to the host flow. */
|
|
4
|
+
export declare function GameVariantCatalogue({ variant, games, selectedGame, theme, onPlay, maxPayouts, quickPickLoading, tierFilter, showTier, showCategory }: CallGameCatalogueProps & {
|
|
5
|
+
variant: GameVariant;
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -32,9 +32,11 @@ export interface HowToPlayButtonProps {
|
|
|
32
32
|
title?: string;
|
|
33
33
|
label?: string;
|
|
34
34
|
variant?: 'pill' | 'icon';
|
|
35
|
+
/** Optional touch target size for compact layouts. */
|
|
36
|
+
touchSize?: number;
|
|
35
37
|
colors: HowToPlayModalProps['colors'];
|
|
36
38
|
bodyFont?: string;
|
|
37
39
|
headingFont?: string;
|
|
38
40
|
className?: string;
|
|
39
41
|
}
|
|
40
|
-
export declare function HowToPlayButton({ content, panel, theme, extra, title, label, variant, colors, bodyFont, headingFont, className, }: HowToPlayButtonProps): import("react/jsx-runtime").JSX.Element | null;
|
|
42
|
+
export declare function HowToPlayButton({ content, panel, theme, extra, title, label, variant, touchSize, colors, bodyFont, headingFont, className, }: HowToPlayButtonProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { BladeTheme } from '../../shared/themes';
|
|
3
|
+
import { SelectionEvent } from '../../shared/selection-variants';
|
|
4
|
+
export interface ChipRailItem {
|
|
5
|
+
key: string;
|
|
6
|
+
label: string;
|
|
7
|
+
fullLabel?: string;
|
|
8
|
+
ariaLabel: string;
|
|
9
|
+
count?: number;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
leading?: (on: boolean) => React.ReactNode;
|
|
12
|
+
trailing?: (on: boolean) => React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
export declare function ChipRail({ theme, items, activeKey, onSelect, noun, groupLabel, }: {
|
|
15
|
+
theme: BladeTheme;
|
|
16
|
+
items: ChipRailItem[];
|
|
17
|
+
activeKey?: string;
|
|
18
|
+
onSelect: (key: string) => void;
|
|
19
|
+
noun: string;
|
|
20
|
+
groupLabel: string;
|
|
21
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export declare function MatchRail({ theme, events, activeKey, picked, onSelect, racing, }: {
|
|
23
|
+
theme: BladeTheme;
|
|
24
|
+
events: SelectionEvent[];
|
|
25
|
+
activeKey?: string;
|
|
26
|
+
/** How many picks each fixture holds, for the count on its chip. */
|
|
27
|
+
picked: (event: SelectionEvent) => number;
|
|
28
|
+
onSelect: (key: string) => void;
|
|
29
|
+
racing?: boolean;
|
|
30
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import { Game } from '../../shared/types';
|
|
1
2
|
export interface MultiLegTableTier {
|
|
2
3
|
count: number;
|
|
3
4
|
payout20: number;
|
|
4
5
|
}
|
|
5
6
|
export interface MultiLegTableProps {
|
|
6
7
|
tiers: MultiLegTableTier[];
|
|
8
|
+
game?: Game | null;
|
|
7
9
|
selectedCount?: number;
|
|
8
10
|
onSelect: (count: number) => void;
|
|
9
11
|
colors: {
|
|
@@ -37,4 +39,4 @@ export interface MultiLegTableProps {
|
|
|
37
39
|
* Renders a compact Legs / Dividend / $X returns table identical to the
|
|
38
40
|
* one on the Game Page. Used by both GameSelector and ConfirmPage.
|
|
39
41
|
*/
|
|
40
|
-
export declare function MultiLegTable({ tiers, selectedCount, onSelect, colors: c, bodyFont, extraBetAmount, buttonLabel, columnLabel, buildYourOwn, quickPickOnly, onQuickPick, collapsible, expanded: expandedProp, onExpandedChange, summaryTiers }: MultiLegTableProps): import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
export declare function MultiLegTable({ tiers, game, selectedCount, onSelect, colors: c, bodyFont, extraBetAmount, buttonLabel, columnLabel, buildYourOwn, quickPickOnly, onQuickPick, collapsible, expanded: expandedProp, onExpandedChange, summaryTiers }: MultiLegTableProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -12,6 +12,14 @@ export declare function PageBackLink({ onBack, label, }: {
|
|
|
12
12
|
onBack: () => void;
|
|
13
13
|
label?: string;
|
|
14
14
|
}): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare function PageHeader({ title, onBack, backLabel, actions, children, className, }: {
|
|
16
|
+
title: React.ReactNode;
|
|
17
|
+
onBack?: () => void;
|
|
18
|
+
backLabel?: React.ReactNode;
|
|
19
|
+
actions?: React.ReactNode;
|
|
20
|
+
children?: React.ReactNode;
|
|
21
|
+
className?: string;
|
|
22
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
15
23
|
export declare function PageTitleBackRow({ onBack, hideActions: _hideActions, label, children, className, }: {
|
|
16
24
|
onBack?: () => void;
|
|
17
25
|
/** @deprecated Back arrow visibility is controlled by `onBack` only */
|
|
@@ -1,11 +1,21 @@
|
|
|
1
|
+
import { GameVariant } from '../../shared/game-variants';
|
|
2
|
+
import { GameLibrary } from '../../shared/game-library';
|
|
3
|
+
import { GameFlow } from '../../shared/game-flow';
|
|
4
|
+
import { PreviewCallPayouts } from '../../shared/use-call-payouts';
|
|
5
|
+
import { UiVariant } from '../../shared/ui-variant';
|
|
1
6
|
import { default as React } from 'react';
|
|
7
|
+
import { BladeApiClient } from '../utils/api-client';
|
|
8
|
+
import { YesNoLabels, EntryCategory } from '../../shared/utils';
|
|
2
9
|
import { Game, Proposition, SportSummary, GameEntry, TopPayoutsResponse, ShareData, ScreenSize } from '../types';
|
|
3
10
|
import { BladeTheme, BladeThemeSet, ColorScheme } from '../utils/themes';
|
|
4
11
|
import { SportDisplayNameOverrides, CategoryDisplayNameOverrides } from '../utils';
|
|
5
|
-
import { RenderTeamLogo, RenderPropositionSilk, GamePermittedRule } from '../../shared/types';
|
|
12
|
+
import { RenderTeamLogo, RenderPropositionSilk, GamePermittedRule, GameCategory } from '../../shared/types';
|
|
6
13
|
import { SelectionVariant } from '../../shared/selection-variants';
|
|
14
|
+
import { useCorrelationSteering } from '../../shared/correlation-steering';
|
|
7
15
|
import { SameGameMultiEvent } from '../../shared/same-game-multi';
|
|
8
16
|
export interface PlaceEntryContextValue {
|
|
17
|
+
gameLibrary: GameLibrary<PlaceEntryContextValue>;
|
|
18
|
+
getGameFlow: (game: Game | null | undefined) => GameFlow;
|
|
9
19
|
theme: BladeTheme;
|
|
10
20
|
bodyFont: string;
|
|
11
21
|
headingFont: string;
|
|
@@ -14,6 +24,8 @@ export interface PlaceEntryContextValue {
|
|
|
14
24
|
/** Component legs of composite propositions, by id — for per-leg event labels. */
|
|
15
25
|
compositeComponentById: ReadonlyMap<number, Proposition>;
|
|
16
26
|
propositionsForCategoryPicker: Proposition[];
|
|
27
|
+
/** Categories with an active game, for the category tiles. Taken from the games, not the propositions: the unscoped propositions feed is paged, so it can leave a whole category out. */
|
|
28
|
+
availableCategories: EntryCategory[];
|
|
17
29
|
propositionsForSportPicker: Proposition[];
|
|
18
30
|
sportsForSelectedGame: string[];
|
|
19
31
|
/** The sports the switcher can offer, busiest first, with their pick counts. */
|
|
@@ -23,6 +35,8 @@ export interface PlaceEntryContextValue {
|
|
|
23
35
|
}[];
|
|
24
36
|
sportSummaries: SportSummary[];
|
|
25
37
|
loading: boolean;
|
|
38
|
+
/** Game metadata can render before the selection pool is ready. */
|
|
39
|
+
gameListLoading: boolean;
|
|
26
40
|
error: string | null;
|
|
27
41
|
step: 'game' | 'sport' | 'review' | 'confirm' | 'success';
|
|
28
42
|
selectedGame: Game | null;
|
|
@@ -31,6 +45,8 @@ export interface PlaceEntryContextValue {
|
|
|
31
45
|
selectedPropositionIds: number[];
|
|
32
46
|
selectedPropositions: Proposition[];
|
|
33
47
|
selectionValid: boolean;
|
|
48
|
+
showCorrelationDebug: boolean;
|
|
49
|
+
canSelectAnswer: (id: number, answer: 'yes' | 'no') => boolean;
|
|
34
50
|
answeredCount: number;
|
|
35
51
|
betAmount: number;
|
|
36
52
|
setBetAmount: (v: number) => void;
|
|
@@ -42,6 +58,8 @@ export interface PlaceEntryContextValue {
|
|
|
42
58
|
selectedRuleId: number | null;
|
|
43
59
|
setSelectedRuleId: (id: number | null) => void;
|
|
44
60
|
selectedRule: GamePermittedRule | null;
|
|
61
|
+
/** Read-only quote for the optional Call setup and ticket panels. */
|
|
62
|
+
previewCallPayouts?: PreviewCallPayouts;
|
|
45
63
|
winningCounts: number[];
|
|
46
64
|
payouts: Record<number, number>;
|
|
47
65
|
overloadPayouts: Record<number, number>;
|
|
@@ -59,8 +77,11 @@ export interface PlaceEntryContextValue {
|
|
|
59
77
|
goBack: () => void;
|
|
60
78
|
reset: () => void;
|
|
61
79
|
clearSelectedGame: () => void;
|
|
80
|
+
correlation: ReturnType<typeof useCorrelationSteering>;
|
|
81
|
+
correlationTargetCount: number;
|
|
62
82
|
toggleSelection: (id: number, answer: 'yes' | 'no') => void;
|
|
63
83
|
quickPickGame: (game: Game, count: number, stake?: number) => void;
|
|
84
|
+
quickPickSelections: (count: number) => number;
|
|
64
85
|
selectedCategory: string | null;
|
|
65
86
|
setSelectedCategory: (category: string | null) => void;
|
|
66
87
|
selectedSport: string | null;
|
|
@@ -76,8 +97,12 @@ export interface PlaceEntryContextValue {
|
|
|
76
97
|
disableQuickPick: boolean;
|
|
77
98
|
renderTeamLogo?: RenderTeamLogo;
|
|
78
99
|
renderPropositionSilk?: RenderPropositionSilk;
|
|
79
|
-
/**
|
|
100
|
+
/** Optional presentation. Existing UI remains the default. */
|
|
101
|
+
uiVariant?: UiVariant;
|
|
102
|
+
/** Proposition layout override; undefined follows the UI variant. */
|
|
80
103
|
selectionVariant?: SelectionVariant;
|
|
104
|
+
/** Optional game discovery layout, independent of uiVariant. `cards`, `split` and `compare` are web-only; native renders `shelf`. */
|
|
105
|
+
gameVariant?: GameVariant;
|
|
81
106
|
/** Drop the per-fixture swipe deck the variant layouts offer. */
|
|
82
107
|
disableEventSwipe?: boolean;
|
|
83
108
|
enableSportFavourites?: boolean;
|
|
@@ -86,7 +111,7 @@ export interface PlaceEntryContextValue {
|
|
|
86
111
|
initialEventId?: string;
|
|
87
112
|
initialEventLabel?: string;
|
|
88
113
|
sportBaseKey?: string;
|
|
89
|
-
gameCategory?:
|
|
114
|
+
gameCategory?: GameCategory;
|
|
90
115
|
screenSize: ScreenSize;
|
|
91
116
|
eventFilterActive: boolean;
|
|
92
117
|
eventFilterLabel?: string;
|
|
@@ -112,6 +137,14 @@ export declare const PlaceEntryContext: React.Context<PlaceEntryContextValue | n
|
|
|
112
137
|
*/
|
|
113
138
|
export declare function usePlaceEntry(): PlaceEntryContextValue;
|
|
114
139
|
export interface PlaceEntryProviderProps {
|
|
140
|
+
/** Additional game implementations. Perfect Pick, H2H and Safety Net are built in. */
|
|
141
|
+
gameLibrary?: GameLibrary<PlaceEntryContextValue>;
|
|
142
|
+
/** Retain a client above route-keyed providers to reuse its scoped cache. */
|
|
143
|
+
apiClient?: BladeApiClient;
|
|
144
|
+
/** Fetch the selected sport's pool; use the sport catalogue for navigation. */
|
|
145
|
+
scopePropositionsToSport?: boolean;
|
|
146
|
+
/** Show calculated Correlation fair odds for development. Never enable in player-facing builds. */
|
|
147
|
+
showCorrelationDebug?: boolean;
|
|
115
148
|
apiUrl: string;
|
|
116
149
|
apiKey?: string;
|
|
117
150
|
fetchImpl?: typeof fetch;
|
|
@@ -127,7 +160,7 @@ export interface PlaceEntryProviderProps {
|
|
|
127
160
|
demoEntries?: GameEntry[];
|
|
128
161
|
/** Demo dividend/max-payout data (the /max-payout fetch is skipped for demo data). */
|
|
129
162
|
demoMaxPayouts?: Record<number, TopPayoutsResponse>;
|
|
130
|
-
gameCategory?:
|
|
163
|
+
gameCategory?: GameCategory;
|
|
131
164
|
jurisdiction?: string;
|
|
132
165
|
initialGameId?: number;
|
|
133
166
|
filterSport?: string;
|
|
@@ -138,8 +171,13 @@ export interface PlaceEntryProviderProps {
|
|
|
138
171
|
disableQuickPick?: boolean;
|
|
139
172
|
renderTeamLogo?: RenderTeamLogo;
|
|
140
173
|
renderPropositionSilk?: RenderPropositionSilk;
|
|
174
|
+
/** Optional presentation. Existing UI remains the default. */
|
|
175
|
+
uiVariant?: UiVariant;
|
|
141
176
|
selectionVariant?: SelectionVariant;
|
|
177
|
+
/** Optional game discovery layout, independent of uiVariant. `cards`, `split` and `compare` are web-only; native renders `shelf`. */
|
|
178
|
+
gameVariant?: GameVariant;
|
|
142
179
|
disableEventSwipe?: boolean;
|
|
180
|
+
yesNoLabels?: YesNoLabels;
|
|
143
181
|
enableSportFavourites?: boolean;
|
|
144
182
|
onEntryPlaced?: (entry: GameEntry) => void;
|
|
145
183
|
onBeforeSubmit?: (betAmount: number) => void | Promise<void>;
|
|
@@ -154,4 +192,4 @@ export interface PlaceEntryProviderProps {
|
|
|
154
192
|
/** Map entry categories to UI labels. */
|
|
155
193
|
categoryDisplayNames?: CategoryDisplayNameOverrides;
|
|
156
194
|
}
|
|
157
|
-
export declare function PlaceEntryProvider({ apiUrl, apiKey, fetchImpl, getAuthHeaders, userId, getUserBalance, children, theme: themeProp, colorScheme, demoGames, demoPropositions, demoEntries, demoMaxPayouts, gameCategory, jurisdiction, initialGameId, filterSport, initialSport, initialEventId, initialEventLabel, sportBaseKey, disableQuickPick, renderTeamLogo, renderPropositionSilk, selectionVariant, disableEventSwipe, enableSportFavourites, onEntryPlaced, onBeforeSubmit, onCancel, onShare, onRecharge, onClearEventFilter, screenSize, howToPlayMarkdown: howToPlayMarkdownProp, sportDisplayNames, categoryDisplayNames, }: PlaceEntryProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
195
|
+
export declare function PlaceEntryProvider({ gameLibrary, apiClient: suppliedApiClient, scopePropositionsToSport, showCorrelationDebug, apiUrl, apiKey, fetchImpl, getAuthHeaders, userId, getUserBalance, children, theme: themeProp, colorScheme, demoGames, demoPropositions, demoEntries, demoMaxPayouts, gameCategory, jurisdiction, initialGameId, filterSport, initialSport, initialEventId, initialEventLabel, sportBaseKey, disableQuickPick, renderTeamLogo, renderPropositionSilk, uiVariant, selectionVariant, gameVariant, disableEventSwipe, enableSportFavourites, yesNoLabels, onEntryPlaced, onBeforeSubmit, onCancel, onShare, onRecharge, onClearEventFilter, screenSize, howToPlayMarkdown: howToPlayMarkdownProp, sportDisplayNames, categoryDisplayNames, }: PlaceEntryProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CallGameCatalogueProps } from '../../shared/dense-ui';
|
|
2
|
+
/**
|
|
3
|
+
* Playbook chooser: one featured hero (press-to-play tile, name, tagline,
|
|
4
|
+
* payout hook) above a comparison grid of every game. Tapping a card previews
|
|
5
|
+
* it in the hero; the tile plays it.
|
|
6
|
+
*/
|
|
7
|
+
export declare function PlaybookChooser({ games, selectedGame, theme, onPlay, maxPayouts, quickPickLoading }: CallGameCatalogueProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -6,9 +6,10 @@ export interface FilterChipOption {
|
|
|
6
6
|
export interface FilterChipGroup {
|
|
7
7
|
label?: string;
|
|
8
8
|
options: FilterChipOption[];
|
|
9
|
-
value: string | null;
|
|
9
|
+
value: string | null | string[];
|
|
10
10
|
onChange: (value: string | null) => void;
|
|
11
11
|
}
|
|
12
|
+
export declare function isChipActive(groupValue: FilterChipGroup['value'], optValue: string | null): boolean;
|
|
12
13
|
export interface FilterChipCarouselProps {
|
|
13
14
|
groups: FilterChipGroup[];
|
|
14
15
|
theme: BladeTheme;
|
|
@@ -22,3 +23,4 @@ export interface FilterChipRowProps extends FilterChipGroup {
|
|
|
22
23
|
className?: string;
|
|
23
24
|
}
|
|
24
25
|
export declare function FilterChipRow({ label, options, value, onChange, theme, bodyFont, className, }: FilterChipRowProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export declare function FilterChipPanel({ groups, theme, bodyFont, className }: FilterChipCarouselProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -7,5 +7,7 @@ export interface QuickPickButtonProps {
|
|
|
7
7
|
yesColor?: string;
|
|
8
8
|
noColor?: string;
|
|
9
9
|
theme?: BladeTheme;
|
|
10
|
+
menu?: boolean;
|
|
11
|
+
expanded?: boolean;
|
|
10
12
|
}
|
|
11
|
-
export declare function QuickPickButton({ onPress, onDoubleClick, label, size, yesColor, noColor, theme: themeProp, }: QuickPickButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare function QuickPickButton({ onPress, onDoubleClick, label, size, yesColor, noColor, theme: themeProp, menu, expanded, }: QuickPickButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -6,6 +6,10 @@ export interface ScrollShelfProps {
|
|
|
6
6
|
itemCount?: number;
|
|
7
7
|
/** Extra padding inside the scroller — cards need room for their shadow. */
|
|
8
8
|
contentClassName?: string;
|
|
9
|
+
/** Colour the edge fades melt into. Defaults to the page background. */
|
|
10
|
+
fadeColor?: string;
|
|
11
|
+
/** Drop the arrow discs — they overhang, which a pill-shaped shelf clips. */
|
|
12
|
+
hideArrows?: boolean;
|
|
9
13
|
className?: string;
|
|
10
14
|
/**
|
|
11
15
|
* `dragged()` is true right after a mouse drag-scroll, so item click handlers
|
|
@@ -18,4 +22,4 @@ export interface ScrollShelfProps {
|
|
|
18
22
|
* edge fades that say "more this way", and mouse-only arrow discs. Shared so
|
|
19
23
|
* the filter chips and the sport rail scroll identically.
|
|
20
24
|
*/
|
|
21
|
-
export declare function ScrollShelf({ theme, itemCount, contentClassName, className, children, }: ScrollShelfProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export declare function ScrollShelf({ theme, itemCount, contentClassName, fadeColor, hideArrows, className, children, }: ScrollShelfProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { SelectionReviewProps } from '../types';
|
|
2
|
-
export declare function SelectionReview({ propositions, selections, onToggleSelection, onNext, onBack, theme: themeProp, colorScheme, hideActions, renderTeamLogo, allowAnswerToggle, gameName, potentialPayout, defaultExpanded, addMorePicks, }: SelectionReviewProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function SelectionReview({ propositions, selections, onToggleSelection, onNext, onBack, theme: themeProp, colorScheme, hideActions, renderTeamLogo, allowAnswerToggle, gameName, potentialPayout, defaultExpanded, componentById, addMorePicks, }: SelectionReviewProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,17 +4,23 @@ export interface SportRailProps {
|
|
|
4
4
|
label?: string | null;
|
|
5
5
|
/** Line under the heading. Pass `null` to drop it; omit for the default hint. */
|
|
6
6
|
sublabel?: string | null;
|
|
7
|
-
/**
|
|
8
|
-
|
|
7
|
+
/** Controls parked on the heading's right — the track keeps the full width. */
|
|
8
|
+
actions?: React.ReactNode;
|
|
9
9
|
className?: string;
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
|
-
* The sport step
|
|
13
|
-
* setup page
|
|
14
|
-
*
|
|
15
|
-
*
|
|
12
|
+
* The sport step. It sits on a game's setup page, and — for the games that have
|
|
13
|
+
* no setup page — above the proposition list, so there is always one place to
|
|
14
|
+
* change it. Never on the game grid.
|
|
15
|
+
*
|
|
16
|
+
* One oval track: every sport rides it as its short code, and the selected one
|
|
17
|
+
* opens out to its full name on a filled thumb. Codes keep the track compact,
|
|
18
|
+
* the selection says what it is in plain English.
|
|
19
|
+
*
|
|
20
|
+
* A bet is one sport: once the slip has picks the track locks, and the only way
|
|
21
|
+
* across is to clear the bet — silently wiping the card on a mis-tap was worse.
|
|
16
22
|
*
|
|
17
23
|
* Renders nothing at all when the sport is not a choice, which is every
|
|
18
24
|
* single-sport game.
|
|
19
25
|
*/
|
|
20
|
-
export declare function SportRail({ label, sublabel,
|
|
26
|
+
export declare function SportRail({ label, sublabel, actions, className }: SportRailProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { SportSelectorProps, Proposition } from '../../shared/types';
|
|
2
|
+
import { SportSelectorProps, Proposition, RenderTeamLogo } from '../../shared/types';
|
|
3
3
|
/** A header key names two teams when it splits on " vs " — `MatchupTeams`' own test. */
|
|
4
4
|
export declare function isMatchupKey(key?: string | null): boolean;
|
|
5
5
|
/** The runner's silk, for single-event rows; under an "A vs B" header the logos are already up top. */
|
|
@@ -12,7 +12,7 @@ export declare function MatchupTeams({ matchup, renderTeamLogo, altText, mutedCo
|
|
|
12
12
|
mutedColor: string;
|
|
13
13
|
size?: 'sm' | 'md';
|
|
14
14
|
}): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
export declare function CompositePropositionText({ prop, colors: c, size, componentById, textClass: textClassOverride, textColor, }: {
|
|
15
|
+
export declare function CompositePropositionText({ prop, colors: c, size, componentById, textClass: textClassOverride, textColor, eventLabels, renderTeamLogo, }: {
|
|
16
16
|
prop: Proposition;
|
|
17
17
|
colors: {
|
|
18
18
|
primary: string;
|
|
@@ -28,5 +28,18 @@ export declare function CompositePropositionText({ prop, colors: c, size, compon
|
|
|
28
28
|
textClass?: string;
|
|
29
29
|
/** Replaces `colors.text` on the question itself, legs included. */
|
|
30
30
|
textColor?: string;
|
|
31
|
+
/**
|
|
32
|
+
* How a leg names its fixture. `show` stacks the label above each leg —
|
|
33
|
+
* right where rows have room. `hover` keeps the legs on one line and puts
|
|
34
|
+
* the fixture in the tooltip instead, for compact rows like the slip and
|
|
35
|
+
* the confirm list. Either way the title attribute carries it.
|
|
36
|
+
*/
|
|
37
|
+
eventLabels?: 'show' | 'hover';
|
|
38
|
+
/**
|
|
39
|
+
* Supplied, a leg names its fixture with the two club badges instead of a
|
|
40
|
+
* text chip — far lighter in a row, and the full matchup stays in the
|
|
41
|
+
* tooltip. Falls back to the text chip when the host renders no logos.
|
|
42
|
+
*/
|
|
43
|
+
renderTeamLogo?: RenderTeamLogo;
|
|
31
44
|
}): import("react/jsx-runtime").JSX.Element;
|
|
32
|
-
export declare function SportSelector({ game, propositions, selections, onToggleSelection, onNext, onBack, loading, error, theme: themeProp, colorScheme, hideActions, initialSport, renderTeamLogo, disableQuickPick, selectedPropositionCount, onPropositionCountChange, gameCategory, headerExtra, variant, disableEventSwipe, }: SportSelectorProps): import("react/jsx-runtime").JSX.Element;
|
|
45
|
+
export declare function SportSelector({ game, propositions, selections, onToggleSelection, onNext, onBack, loading, error, theme: themeProp, colorScheme, hideActions, initialSport, renderTeamLogo, disableQuickPick, selectedPropositionCount, onPropositionCountChange, gameCategory, headerExtra, railSlot, variant, disableEventSwipe, }: SportSelectorProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { default as React, CSSProperties, MouseEvent, ReactNode } from 'react';
|
|
2
2
|
import { BladeTheme } from '../../../shared/themes';
|
|
3
|
+
import { YesNoLabels } from '../../../shared/utils';
|
|
3
4
|
/** Minimum hit area for anything tappable, in px (Apple 44pt / Material 48dp). Shrink the paint, never the target. */
|
|
4
5
|
export declare const TOUCH_TARGET = 44;
|
|
5
6
|
export declare function useBreakpoint(minWidth?: number): boolean;
|
|
@@ -69,6 +70,9 @@ export declare function Divider({ theme, orientation, style, }: {
|
|
|
69
70
|
export type YesNoValue = 'yes' | 'no';
|
|
70
71
|
export type YesNoAnswer = YesNoValue | null | undefined;
|
|
71
72
|
export type YesNoSize = 'xs' | 'sm' | 'md';
|
|
73
|
+
export type { YesNoLabels };
|
|
74
|
+
export declare const YesNoLabelsProvider: React.Provider<YesNoLabels>;
|
|
75
|
+
export declare function useYesNoLabels(): YesNoLabels;
|
|
72
76
|
export interface YesNoButtonsProps {
|
|
73
77
|
theme: BladeTheme;
|
|
74
78
|
/** Currently selected side, if any. */
|
|
@@ -79,13 +83,15 @@ export interface YesNoButtonsProps {
|
|
|
79
83
|
/** Fill the row, each side taking half — the roomy card layouts want this. */
|
|
80
84
|
stretch?: boolean;
|
|
81
85
|
disabled?: boolean;
|
|
86
|
+
yesDisabled?: boolean;
|
|
87
|
+
noDisabled?: boolean;
|
|
82
88
|
yesLabel?: string;
|
|
83
89
|
noLabel?: string;
|
|
84
90
|
className?: string;
|
|
85
91
|
style?: CSSProperties;
|
|
86
92
|
}
|
|
87
93
|
/** The interactive Yes/No pair. Identical everywhere it is used. */
|
|
88
|
-
export declare function YesNoButtons({ theme, value, onYes, onNo, size, stretch, disabled, yesLabel, noLabel, className, style, }: YesNoButtonsProps): import("react/jsx-runtime").JSX.Element;
|
|
94
|
+
export declare function YesNoButtons({ theme, value, onYes, onNo, size, stretch, disabled, yesDisabled, noDisabled, yesLabel, noLabel, className, style, }: YesNoButtonsProps): import("react/jsx-runtime").JSX.Element;
|
|
89
95
|
/** Read-only Yes/No chip — the settled answer, same product tokens. */
|
|
90
96
|
export declare function YesNoTag({ theme, value, size, style, }: {
|
|
91
97
|
theme: BladeTheme;
|