@simple-parlay/components 1.30.5 → 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 +451 -374
- 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/EventSwipeModal.d.ts +19 -0
- package/dist/react/components/GameModeCard.d.ts +41 -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/PickerBrand.d.ts +7 -0
- package/dist/react/components/PlaceEntryProvider.d.ts +62 -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 +25 -0
- package/dist/react/components/SelectionReview.d.ts +1 -1
- package/dist/react/components/SelectionVariantList.d.ts +20 -0
- package/dist/react/components/SelectionsPage.d.ts +1 -1
- package/dist/react/components/SportRail.d.ts +26 -0
- package/dist/react/components/SportSelector.d.ts +32 -2
- package/dist/react/components/_primitives/index.d.ts +9 -1
- package/dist/react/index.cjs +1 -0
- package/dist/react/index.d.ts +49 -16
- package/dist/react/index.mjs +451 -374
- 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/EventSwipeModal.d.ts +17 -0
- package/dist/react-native/components/GameModeCard.d.ts +41 -6
- 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/PickerBrand.d.ts +6 -0
- package/dist/react-native/components/PlaceEntryProvider.d.ts +57 -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 +23 -0
- package/dist/react-native/components/SelectionReview.d.ts +1 -1
- package/dist/react-native/components/SelectionVariantList.d.ts +20 -0
- package/dist/react-native/components/SelectionsPage.d.ts +1 -1
- package/dist/react-native/components/SportRail.d.ts +27 -0
- package/dist/react-native/components/SportSelector.d.ts +29 -2
- package/dist/react-native/components/_primitives/index.d.ts +12 -2
- package/dist/react-native/index.cjs +1 -0
- package/dist/react-native/index.d.ts +49 -16
- package/dist/react-native/index.mjs +438 -382
- 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/composite.d.ts +7 -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/favourite-sport.d.ts +2 -0
- package/dist/shared/game-artwork.d.ts +61 -0
- package/dist/shared/game-flow.d.ts +18 -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 +9 -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 +88 -5
- package/dist/shared/pick-your-dividend.d.ts +2 -1
- package/dist/shared/picker-brand.d.ts +22 -0
- package/dist/shared/playbook.d.ts +29 -0
- package/dist/shared/selection-actions.d.ts +61 -0
- package/dist/shared/selection-caps.d.ts +68 -0
- package/dist/shared/selection-variants.d.ts +52 -0
- package/dist/shared/six-again.d.ts +105 -0
- package/dist/shared/swipe-deck.d.ts +1 -1
- package/dist/shared/themes.d.ts +22 -0
- package/dist/shared/types.d.ts +83 -3
- 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 -6
- 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/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/index.js +0 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The document / window an element actually renders into. A host can mount
|
|
3
|
+
* us inside an iframe or a popup, so the global `document` may be a different
|
|
4
|
+
* page — portals, fixed positioning and listeners must use the element's own.
|
|
5
|
+
*/
|
|
6
|
+
export declare function docOf(el?: Node | null): Document;
|
|
7
|
+
export declare function winOf(el?: Node | null): Window;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { resolvePrice, toNumber, toBool, formatYesNo, formatCurrency, formatDate, groupPropositionsBySport, getPropositionSportKey, collectPropositionSportKeys, compositePropositionMatchesSport, compositePropositionMatchesGameSports, groupPropositionsByCategory, groupPropositionsByEntryCategory, getPropositionEntryCategory, isRacingProposition, getAvailableEntryCategories, getSportPickerTitle, getCategoryDisplayName, getCategoryTagline, getSportShortCode, getSportPickerTagline, getSportSummaryTagline, splitSportLabel, getSportComingSoonCaption, getHowToPlayPanel, describeDemoVerdict, groupByMatchup, groupByRace, groupPropositionsForDisplay, isRacingCategory, buildRangeLegOptions, getPayoutForCount, generateQuickPick, isValidSelectionCount, getEffectivePropositionLimits, findPermittedRule, getJackpotInfo, getSportDisplayName, resolveSportDisplayName, resolveCategoryDisplayName, filterPropositionsForGame, filterPropositionPool, filterGamesByPropositionPool, filterGamesByEntryCategory, gameHasPropositionsInPool, getGameEntryCategory, gameMatchesEntryCategory, gamePermitsSport, normalizeGamesSport, sportKeysCompatible, propositionSportMatches, isGameAvailableToday, getAvailableDaysLabel, contrastTextColour, readableColor, getCompositeOperatorLabel, getCompositeHelperText, parseCompositeDescription, inferCompositeOperatorFromDescription, resolveCompositeOperator, resolveCompositeDisplay, resolveCompositeLegs, parseCompositeComponentIds, collectCompositeComponentIds, formatPropositionEventLabel, getPropositionDescription, getPropositionMarketType, resolveGameIconId, resolveGameIconUrl, isGameIconUrl, resolveGameIconMarkup, } from '../../shared/utils';
|
|
1
|
+
export { resolvePrice, toNumber, toBool, formatYesNo, DEFAULT_YES_NO_LABELS, formatCurrency, formatDate, groupPropositionsBySport, getPropositionSportKey, collectPropositionSportKeys, compositePropositionMatchesSport, compositePropositionMatchesGameSports, groupPropositionsByCategory, groupPropositionsByEntryCategory, getPropositionEntryCategory, isRacingProposition, getAvailableEntryCategories, getSportPickerTitle, getCategoryDisplayName, getCategoryTagline, getSportShortCode, getSportPickerTagline, getSportSummaryTagline, splitSportLabel, getSportComingSoonCaption, getHowToPlayPanel, describeDemoVerdict, groupByMatchup, groupByRace, groupPropositionsForDisplay, isRacingCategory, buildRangeLegOptions, getPayoutForCount, generateQuickPick, isValidSelectionCount, getEffectivePropositionLimits, findPermittedRule, getJackpotInfo, getSportDisplayName, resolveSportDisplayName, resolveSportLabel, resolveCategoryDisplayName, filterPropositionsForGame, filterPropositionPool, filterGamesByPropositionPool, filterGamesByEntryCategory, gameHasPropositionsInPool, getGameEntryCategory, gameMatchesEntryCategory, gamePermitsSport, normalizeGamesSport, sportKeysCompatible, propositionSportMatches, isGameAvailableToday, getAvailableDaysLabel, contrastTextColour, readableColor, getCompositeOperatorLabel, getCompositeHelperText, parseCompositeDescription, inferCompositeOperatorFromDescription, resolveCompositeOperator, resolveCompositeDisplay, resolveCompositeLegs, parseCompositeComponentIds, collectCompositeComponentIds, formatPropositionEventLabel, getPropositionDescription, getPropositionMarketType, resolveGameIconId, resolveGameIconUrl, isGameIconUrl, resolveGameIconMarkup, } from '../../shared/utils';
|
|
2
2
|
export type { SportDisplayNameOverrides, CategoryDisplayNameOverrides, GameIconId, ComingSoonSport, HowToPlayPanelContent, HowToPlaySummarySegment, HowToPlayStep, HowToPlayDemoLeg, HowToPlayDemoVerdict } from '../../shared/utils';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Game, TopPayoutsResponse } from '../../shared/types';
|
|
3
|
+
import { BladeTheme } from '../../shared/themes';
|
|
4
|
+
interface Props {
|
|
5
|
+
games: Game[];
|
|
6
|
+
selectedGame: Game | null;
|
|
7
|
+
theme: BladeTheme;
|
|
8
|
+
onPlay: (game: Game, count: number) => void;
|
|
9
|
+
maxPayouts?: Record<number, TopPayoutsResponse>;
|
|
10
|
+
quickPickLoading?: boolean;
|
|
11
|
+
tierFilter?: React.ReactNode;
|
|
12
|
+
showTier?: boolean;
|
|
13
|
+
showCategory?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare function CallGameCatalogue({ games, theme, onPlay, maxPayouts, quickPickLoading, showTier }: Props): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Game } from '../../shared/types';
|
|
3
|
+
import { BladeTheme } from '../../shared/themes';
|
|
4
|
+
import { CallPayoutView } from '../../shared/call-presentation';
|
|
5
|
+
interface Props {
|
|
6
|
+
header?: React.ReactNode;
|
|
7
|
+
game: Game;
|
|
8
|
+
theme: BladeTheme;
|
|
9
|
+
legs: number;
|
|
10
|
+
legOptions: number[];
|
|
11
|
+
onLegs: (n: number) => void;
|
|
12
|
+
stake: number;
|
|
13
|
+
onStake: (n: number) => void;
|
|
14
|
+
stakes?: number[];
|
|
15
|
+
minStake?: number;
|
|
16
|
+
maxStake?: number | null;
|
|
17
|
+
modes?: {
|
|
18
|
+
id: string;
|
|
19
|
+
label: string;
|
|
20
|
+
detail: string;
|
|
21
|
+
}[];
|
|
22
|
+
modeId?: string;
|
|
23
|
+
onMode?: (id: string) => void;
|
|
24
|
+
expectedCorrect?: number;
|
|
25
|
+
ruleId?: number | null;
|
|
26
|
+
view: CallPayoutView;
|
|
27
|
+
valid?: boolean;
|
|
28
|
+
onPick: () => void;
|
|
29
|
+
onQuickPick: () => void;
|
|
30
|
+
onBack?: () => void;
|
|
31
|
+
}
|
|
32
|
+
export declare function CallTicketBuilder(p: Props): import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export declare function CorrelationPropPlaceholder({ id, kind, stretch, children }: {
|
|
3
|
+
id: number;
|
|
4
|
+
kind: 'text' | 'answers';
|
|
5
|
+
stretch?: boolean;
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,59 @@
|
|
|
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 denseTokens(theme: BladeTheme): {
|
|
6
|
+
text: {
|
|
7
|
+
color: string;
|
|
8
|
+
fontFamily: string;
|
|
9
|
+
fontSize: number;
|
|
10
|
+
};
|
|
11
|
+
muted: {
|
|
12
|
+
color: string;
|
|
13
|
+
fontFamily: string;
|
|
14
|
+
fontSize: number;
|
|
15
|
+
};
|
|
16
|
+
row: {
|
|
17
|
+
flexDirection: "row";
|
|
18
|
+
alignItems: "center";
|
|
19
|
+
gap: number;
|
|
20
|
+
};
|
|
21
|
+
btn: {
|
|
22
|
+
minHeight: number;
|
|
23
|
+
paddingVertical: number;
|
|
24
|
+
paddingHorizontal: number;
|
|
25
|
+
borderRadius: number;
|
|
26
|
+
borderWidth: number;
|
|
27
|
+
borderColor: string;
|
|
28
|
+
justifyContent: "center";
|
|
29
|
+
backgroundColor: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export declare function DenseButton({ theme, label, onPress, selected, disabled, primary, }: {
|
|
33
|
+
theme: BladeTheme;
|
|
34
|
+
label: string;
|
|
35
|
+
onPress?: () => void;
|
|
36
|
+
selected?: boolean;
|
|
37
|
+
disabled?: boolean;
|
|
38
|
+
primary?: boolean;
|
|
39
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
export declare function DenseOutcome({ view, theme, compact, }: {
|
|
41
|
+
view: CallPayoutView;
|
|
42
|
+
theme: BladeTheme;
|
|
43
|
+
compact?: boolean;
|
|
44
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
45
|
+
export declare function DenseSportControl({ actions }: {
|
|
46
|
+
actions?: React.ReactNode;
|
|
47
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
48
|
+
export declare function DenseHeader({ onBack, title, children, }: {
|
|
49
|
+
onBack?: () => void;
|
|
50
|
+
title?: string;
|
|
51
|
+
children?: React.ReactNode;
|
|
52
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
53
|
+
export declare function DenseSelectionHeader({ onBack }: {
|
|
54
|
+
onBack?: () => void;
|
|
55
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
56
|
+
export declare function DenseTicketBuilder(p: CallTicketBuilderProps & {
|
|
57
|
+
quotedView: CallPayoutView;
|
|
58
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
59
|
+
export declare function DenseTicketActions(p: DenseTicketActionsProps): 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;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Proposition } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Swipe one fixture's questions, over the card that opened it.
|
|
4
|
+
*
|
|
5
|
+
* The full `SwipeDeck` always swipes the whole proposition list and navigates
|
|
6
|
+
* on its own, so a per-fixture deck is composed from the same parts —
|
|
7
|
+
* `useSwipeDeck` for the queue, `SwipeCard`/`SwipeCardFace` for the cards —
|
|
8
|
+
* over just the props handed in. Silks and composite legs come with the face.
|
|
9
|
+
*/
|
|
10
|
+
export interface EventSwipeModalProps {
|
|
11
|
+
/** The fixture's answerable questions, in card order. */
|
|
12
|
+
propositions: Proposition[];
|
|
13
|
+
/** Fixture label shown above the deck. */
|
|
14
|
+
title: string;
|
|
15
|
+
onClose: () => void;
|
|
16
|
+
}
|
|
17
|
+
export declare function EventSwipeModal({ propositions, title, onClose }: EventSwipeModalProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { ViewStyle } from 'react-native';
|
|
3
|
-
/** Shared card kit for the unique-game pages — same anatomy as RuleSetupPage's ModeCard/EmblemTile. */
|
|
2
|
+
import { StyleProp, ViewStyle } from 'react-native';
|
|
4
3
|
export declare function hexA(color: string, alpha: number): string;
|
|
5
|
-
|
|
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;
|
|
6
13
|
export declare function BrandChipTile({ iconUrl, size }: {
|
|
7
14
|
iconUrl: string;
|
|
8
15
|
size?: number;
|
|
@@ -12,11 +19,13 @@ export declare function BrandChipTile({ iconUrl, size }: {
|
|
|
12
19
|
* Eyebrow is desktop-only and the lockup shrinks on phones, so the picker
|
|
13
20
|
* starts near the top of the screen instead of ~180px down.
|
|
14
21
|
*/
|
|
15
|
-
export declare function GamePageHeader({ eyebrow, iconUrl, gameName, tagline, style, }: {
|
|
22
|
+
export declare function GamePageHeader({ eyebrow, iconUrl, gameName, subtitle, tagline, style, }: {
|
|
16
23
|
/** Uppercase kicker above the lockup. Hidden on phones — pass `null` to drop it everywhere. */
|
|
17
24
|
eyebrow?: string | null;
|
|
18
25
|
iconUrl: string;
|
|
19
26
|
gameName: string;
|
|
27
|
+
/** Small line under the lockup, e.g. "8 legs". */
|
|
28
|
+
subtitle?: string | null;
|
|
20
29
|
tagline?: string | null;
|
|
21
30
|
style?: any;
|
|
22
31
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -39,17 +48,43 @@ export declare function LegPips({ legs, prizeBall }: {
|
|
|
39
48
|
legs: number;
|
|
40
49
|
prizeBall?: boolean;
|
|
41
50
|
}): import("react/jsx-runtime").JSX.Element;
|
|
51
|
+
export declare function KitCard({ hovered, style, children, ...hover }: {
|
|
52
|
+
hovered?: boolean;
|
|
53
|
+
style?: StyleProp<ViewStyle>;
|
|
54
|
+
children: React.ReactNode;
|
|
55
|
+
onMouseEnter?: () => void;
|
|
56
|
+
onMouseLeave?: () => void;
|
|
57
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
42
58
|
/**
|
|
43
59
|
* Tap-to-play mode card — the Safety Net card, generalised. ONE press applies
|
|
44
60
|
* and continues; `children` renders below the divider (payout rows, notes).
|
|
45
61
|
*/
|
|
46
|
-
export declare function GameModeCard({ tile, label, stat, detail, onSelect, children, }: {
|
|
62
|
+
export declare function GameModeCard({ tile, label, stat, detail, body, ariaLabel, onSelect, children, }: {
|
|
47
63
|
/** Left tile, e.g. `<BrandChipTile iconUrl={...} />`. */
|
|
48
64
|
tile: React.ReactNode;
|
|
49
|
-
label
|
|
65
|
+
label?: string;
|
|
50
66
|
/** Short positioning hint chip, e.g. "Fastest". */
|
|
51
67
|
stat?: string;
|
|
52
68
|
detail?: string[];
|
|
69
|
+
body?: React.ReactNode;
|
|
70
|
+
ariaLabel?: string;
|
|
53
71
|
onSelect: () => void;
|
|
54
72
|
children?: React.ReactNode;
|
|
55
73
|
}): import("react/jsx-runtime").JSX.Element;
|
|
74
|
+
export declare function PlayModeCards({ iconUrl, pickLabel, pickDetail, quickDetail, onPickYourOwn, onQuickPick, style, }: {
|
|
75
|
+
iconUrl: string;
|
|
76
|
+
pickLabel?: string;
|
|
77
|
+
pickDetail: string[];
|
|
78
|
+
quickDetail: string[];
|
|
79
|
+
onPickYourOwn: () => void;
|
|
80
|
+
onQuickPick: () => void;
|
|
81
|
+
style?: StyleProp<ViewStyle>;
|
|
82
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
83
|
+
/**
|
|
84
|
+
* The sport step of a game's setup page — the one place in the flow the sport
|
|
85
|
+
* is chosen. Renders nothing when the game has a single sport, which is what
|
|
86
|
+
* lets those games skip the step entirely.
|
|
87
|
+
*/
|
|
88
|
+
export declare function GameSportRow({ style }: {
|
|
89
|
+
style?: StyleProp<ViewStyle>;
|
|
90
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
import { GameVariant } from '../../shared/game-variants';
|
|
1
2
|
import { GameFlow } from '../../shared/game-flow';
|
|
2
3
|
export interface GamePageProps {
|
|
4
|
+
/** Overrides the provider game layout. Native supports `shelf`. */
|
|
5
|
+
gameVariant?: GameVariant;
|
|
3
6
|
/** Called after a game is selected (e.g. navigate to selections screen) */
|
|
4
7
|
onSelectGame?: () => void;
|
|
5
8
|
/**
|
|
@@ -39,4 +42,4 @@ export declare function GamePageActions({ onCancel, onSelectGame }: {
|
|
|
39
42
|
onCancel?: () => void;
|
|
40
43
|
onSelectGame?: () => void;
|
|
41
44
|
}): import("react/jsx-runtime").JSX.Element | null;
|
|
42
|
-
export declare function GamePage({ onSelectGame, onGameSetup, onRuleSetup, onGameSetBet, onPickYourDividend, onLadder, onMirror, onSafetyNet, onQuickPick, onCancel, hideTitle, hideActions, showPerfectPickSetup, showTierFilter }: GamePageProps): import("react/jsx-runtime").JSX.Element;
|
|
45
|
+
export declare function GamePage({ gameVariant, onSelectGame, onGameSetup, onRuleSetup, onGameSetBet, onPickYourDividend, onLadder, onMirror, onSafetyNet, onQuickPick, onCancel, hideTitle, hideActions, showPerfectPickSetup, showTierFilter }: GamePageProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -18,4 +18,12 @@ export declare function CardDividends({ tiers, modes, pydDividends, onPlayCount,
|
|
|
18
18
|
bodyFont: string | undefined;
|
|
19
19
|
headingFont: string | undefined;
|
|
20
20
|
}): import("react/jsx-runtime").JSX.Element | null;
|
|
21
|
-
|
|
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;
|
|
29
|
+
export declare function GameSelector({ games: allGames, selectedGame, onSelectGame, loading, error, theme: themeProp, colorScheme, uiVariant: uiVariantProp, gameVariant, showTier, showCategory, showTierFilter, onPropositionCountChange, onPropositionCountSelected, onQuickPickGame, quickPickLoading, maxPayouts, }: GameSelectorProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,24 +1,15 @@
|
|
|
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
|
-
* - Safety Net → net + legs + stake ticket builder
|
|
10
|
-
* - exact rules → Perfect Pick ticket builder
|
|
11
|
-
* - pick → the rule mode-select page
|
|
12
|
-
*/
|
|
13
1
|
export interface GameSetupPageProps {
|
|
14
2
|
/** Called when the user will make their own calls (navigate to selections). */
|
|
15
3
|
onPickYourOwn?: () => void;
|
|
16
4
|
/** Called after Quick Pick fills the slip (navigate to the bet slip / confirm page). */
|
|
17
5
|
onQuickPick?: () => void;
|
|
18
6
|
onBack?: () => void;
|
|
19
|
-
/** Hide the built-in
|
|
7
|
+
/** Hide the built-in page header. */
|
|
20
8
|
hideTitle?: boolean;
|
|
21
9
|
/** Label for the back link (where "back" leads). @default 'Games' */
|
|
22
10
|
backLabel?: string;
|
|
23
11
|
}
|
|
24
|
-
export declare function GameSetupPage({ onPickYourOwn, onQuickPick, onBack, hideTitle, backLabel, }: GameSetupPageProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare function GameSetupPage({ onPickYourOwn, onQuickPick, onBack, hideTitle, backLabel, }: GameSetupPageProps): import("react/jsx-runtime").JSX.Element | null;
|
|
13
|
+
export declare function GameSetupPageTitle({ onBack }: {
|
|
14
|
+
onBack?: () => void;
|
|
15
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CallGameCatalogueProps } from '../../shared/dense-ui';
|
|
2
|
+
/**
|
|
3
|
+
* Filterable cover grid. Tapping a cover opens its details in a sheet — a
|
|
4
|
+
* bottom sheet on phones, a centred card when wide — and wide screens get more
|
|
5
|
+
* covers per row, not bigger ones. Twin of the web shelf.
|
|
6
|
+
*/
|
|
7
|
+
export declare function GameShelfCatalogue({ games, selectedGame, theme, onPlay, maxPayouts, quickPickLoading }: CallGameCatalogueProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -10,6 +10,8 @@ export interface HowToPlayButtonProps {
|
|
|
10
10
|
title?: string;
|
|
11
11
|
label?: string;
|
|
12
12
|
variant?: 'pill' | 'icon';
|
|
13
|
+
/** Optional touch target size for compact layouts. */
|
|
14
|
+
touchSize?: number;
|
|
13
15
|
colors: {
|
|
14
16
|
text: string;
|
|
15
17
|
textMuted: string;
|
|
@@ -22,4 +24,4 @@ export interface HowToPlayButtonProps {
|
|
|
22
24
|
bodyFont?: string;
|
|
23
25
|
headingFont?: string;
|
|
24
26
|
}
|
|
25
|
-
export declare function HowToPlayButton({ content, panel, theme, extra, title, label, variant, colors, bodyFont, headingFont, }: HowToPlayButtonProps): import("react/jsx-runtime").JSX.Element | null;
|
|
27
|
+
export declare function HowToPlayButton({ content, panel, theme, extra, title, label, variant, touchSize, colors, bodyFont, headingFont, }: HowToPlayButtonProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -23,7 +23,7 @@ export declare function CategoryGridSkeleton({ colors, count, }: {
|
|
|
23
23
|
colors: PickerSurfaceColors;
|
|
24
24
|
count?: number;
|
|
25
25
|
}): import("react/jsx-runtime").JSX.Element;
|
|
26
|
-
/** RN mirror of web `SportGridSkeleton` — stacked tile
|
|
26
|
+
/** RN mirror of web `SportGridSkeleton` — a stacked tile at every width. */
|
|
27
27
|
export declare function SportGridSkeleton({ colors, count, }: {
|
|
28
28
|
colors: PickerSurfaceColors;
|
|
29
29
|
count?: number;
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
/** The compact label every chip shows (team codes, sport code). */
|
|
7
|
+
label: string;
|
|
8
|
+
/** Shown on the selected chip instead, while the rail has room for it. */
|
|
9
|
+
fullLabel?: string;
|
|
10
|
+
accessibilityLabel: string;
|
|
11
|
+
/** Picks held — the count after the label. */
|
|
12
|
+
count?: number;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
/** Marks either side of the label; `on` is whether the chip is selected. */
|
|
15
|
+
leading?: (on: boolean) => React.ReactNode;
|
|
16
|
+
trailing?: (on: boolean) => React.ReactNode;
|
|
17
|
+
}
|
|
18
|
+
export declare function ChipRail({ theme, items, activeKey, onSelect, noun, groupLabel, }: {
|
|
19
|
+
theme: BladeTheme;
|
|
20
|
+
items: ChipRailItem[];
|
|
21
|
+
activeKey?: string;
|
|
22
|
+
onSelect: (key: string) => void;
|
|
23
|
+
/** Names the edge buttons: "Previous {noun}" / "Next {noun}". */
|
|
24
|
+
noun: string;
|
|
25
|
+
groupLabel: string;
|
|
26
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
/** The match selector — twin of the web `MatchRail`: one chip per fixture, team codes until selected. */
|
|
28
|
+
export declare function MatchRail({ theme, events, activeKey, picked, onSelect, racing, }: {
|
|
29
|
+
theme: BladeTheme;
|
|
30
|
+
events: SelectionEvent[];
|
|
31
|
+
activeKey?: string;
|
|
32
|
+
/** How many picks each fixture holds, for the count on its chip. */
|
|
33
|
+
picked: (event: SelectionEvent) => number;
|
|
34
|
+
onSelect: (key: string) => void;
|
|
35
|
+
racing?: boolean;
|
|
36
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Game } from '../../shared/types';
|
|
1
2
|
export interface MultiLegTableColors {
|
|
2
3
|
textMuted: string;
|
|
3
4
|
success: string;
|
|
@@ -18,6 +19,7 @@ export interface MultiLegTableTier {
|
|
|
18
19
|
}
|
|
19
20
|
export interface MultiLegTableProps {
|
|
20
21
|
tiers: MultiLegTableTier[];
|
|
22
|
+
game?: Game | null;
|
|
21
23
|
selectedCount?: number;
|
|
22
24
|
onSelect: (count: number) => void;
|
|
23
25
|
colors: MultiLegTableColors;
|
|
@@ -34,4 +36,4 @@ export interface MultiLegTableProps {
|
|
|
34
36
|
onExpandedChange?: (expanded: boolean) => void;
|
|
35
37
|
summaryTiers?: MultiLegTableTier[];
|
|
36
38
|
}
|
|
37
|
-
export declare function MultiLegTable({ tiers, selectedCount, onSelect, colors: c, bodyFont, extraBetAmount, buttonLabel, columnLabel, buildYourOwn, quickPickOnly, onQuickPick, collapsible, expanded: expandedProp, onExpandedChange, summaryTiers }: MultiLegTableProps): import("react/jsx-runtime").JSX.Element;
|
|
39
|
+
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;
|
|
@@ -17,6 +17,13 @@ export declare function PageBackLink({ onBack, label, }: {
|
|
|
17
17
|
onBack: () => void;
|
|
18
18
|
label?: string;
|
|
19
19
|
}): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export declare function PageHeader({ title, onBack, backLabel, actions, children, }: {
|
|
21
|
+
title: React.ReactNode;
|
|
22
|
+
onBack?: () => void;
|
|
23
|
+
backLabel?: React.ReactNode;
|
|
24
|
+
actions?: React.ReactNode;
|
|
25
|
+
children?: React.ReactNode;
|
|
26
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
20
27
|
export declare function PageTitleBackRow({ onBack, hideActions: _hideActions, label, children, }: {
|
|
21
28
|
onBack?: () => void;
|
|
22
29
|
/** @deprecated Back arrow visibility is controlled by `onBack` only */
|
|
@@ -24,3 +24,9 @@ export declare function YesNoCategoryLabel({ label, category, icon, theme, disab
|
|
|
24
24
|
theme: BladeTheme;
|
|
25
25
|
disabled?: boolean;
|
|
26
26
|
}): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export declare function StarIcon({ size, color, filled, }: {
|
|
28
|
+
size?: number;
|
|
29
|
+
color?: string;
|
|
30
|
+
/** Solid for a pinned favourite, outline for one you can pin. */
|
|
31
|
+
filled?: boolean;
|
|
32
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,17 +1,37 @@
|
|
|
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 { YesNoLabels, EntryCategory } from '../../shared/utils';
|
|
2
8
|
import { Game, Proposition, SportSummary, GameEntry, TopPayoutsResponse, ShareData, ScreenSize } from '../types';
|
|
3
9
|
import { BladeTheme, BladeThemeSet, ColorScheme } from '../utils/themes';
|
|
4
10
|
import { SportDisplayNameOverrides, CategoryDisplayNameOverrides } from '../utils';
|
|
5
|
-
import { RenderTeamLogo, GamePermittedRule } from '../../shared/types';
|
|
11
|
+
import { RenderTeamLogo, RenderPropositionSilk, GamePermittedRule, GameCategory } from '../../shared/types';
|
|
12
|
+
import { SelectionVariant } from '../../shared/selection-variants';
|
|
13
|
+
import { useCorrelationSteering } from '../../shared/correlation-steering';
|
|
6
14
|
import { SameGameMultiEvent } from '../../shared/same-game-multi';
|
|
7
15
|
export interface PlaceEntryContextValue {
|
|
16
|
+
gameLibrary: GameLibrary<PlaceEntryContextValue>;
|
|
17
|
+
getGameFlow: (game: Game | null | undefined) => GameFlow;
|
|
8
18
|
theme: BladeTheme;
|
|
9
19
|
bodyFont: string;
|
|
10
20
|
headingFont: string;
|
|
11
21
|
games: Game[];
|
|
12
22
|
propositions: Proposition[];
|
|
23
|
+
/** Component legs of composite propositions, by id — for per-leg event labels. */
|
|
24
|
+
compositeComponentById: ReadonlyMap<number, Proposition>;
|
|
13
25
|
propositionsForCategoryPicker: Proposition[];
|
|
26
|
+
/** 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. */
|
|
27
|
+
availableCategories: EntryCategory[];
|
|
14
28
|
propositionsForSportPicker: Proposition[];
|
|
29
|
+
sportsForSelectedGame: string[];
|
|
30
|
+
/** The sports the switcher can offer, busiest first, with their pick counts. */
|
|
31
|
+
sportOptions: {
|
|
32
|
+
key: string;
|
|
33
|
+
count: number;
|
|
34
|
+
}[];
|
|
15
35
|
sportSummaries: SportSummary[];
|
|
16
36
|
loading: boolean;
|
|
17
37
|
error: string | null;
|
|
@@ -22,6 +42,8 @@ export interface PlaceEntryContextValue {
|
|
|
22
42
|
selectedPropositionIds: number[];
|
|
23
43
|
selectedPropositions: Proposition[];
|
|
24
44
|
selectionValid: boolean;
|
|
45
|
+
showCorrelationDebug: boolean;
|
|
46
|
+
canSelectAnswer: (id: number, answer: 'yes' | 'no') => boolean;
|
|
25
47
|
answeredCount: number;
|
|
26
48
|
betAmount: number;
|
|
27
49
|
setBetAmount: (v: number) => void;
|
|
@@ -33,6 +55,8 @@ export interface PlaceEntryContextValue {
|
|
|
33
55
|
selectedRuleId: number | null;
|
|
34
56
|
setSelectedRuleId: (id: number | null) => void;
|
|
35
57
|
selectedRule: GamePermittedRule | null;
|
|
58
|
+
/** Read-only quote for the optional Call setup and ticket panels. */
|
|
59
|
+
previewCallPayouts?: PreviewCallPayouts;
|
|
36
60
|
winningCounts: number[];
|
|
37
61
|
payouts: Record<number, number>;
|
|
38
62
|
overloadPayouts: Record<number, number>;
|
|
@@ -50,8 +74,11 @@ export interface PlaceEntryContextValue {
|
|
|
50
74
|
goBack: () => void;
|
|
51
75
|
reset: () => void;
|
|
52
76
|
clearSelectedGame: () => void;
|
|
77
|
+
correlation: ReturnType<typeof useCorrelationSteering>;
|
|
78
|
+
correlationTargetCount: number;
|
|
53
79
|
toggleSelection: (id: number, answer: 'yes' | 'no') => void;
|
|
54
|
-
quickPickGame: (game: Game, count: number) => void;
|
|
80
|
+
quickPickGame: (game: Game, count: number, stake?: number) => void;
|
|
81
|
+
quickPickSelections: (count: number) => number;
|
|
55
82
|
selectedCategory: string | null;
|
|
56
83
|
setSelectedCategory: (category: string | null) => void;
|
|
57
84
|
selectedSport: string | null;
|
|
@@ -66,12 +93,23 @@ export interface PlaceEntryContextValue {
|
|
|
66
93
|
userId?: string | number;
|
|
67
94
|
disableQuickPick: boolean;
|
|
68
95
|
renderTeamLogo?: RenderTeamLogo;
|
|
96
|
+
renderPropositionSilk?: RenderPropositionSilk;
|
|
97
|
+
/** Optional presentation. Existing UI remains the default. */
|
|
98
|
+
uiVariant?: UiVariant;
|
|
99
|
+
/** Proposition layout override; undefined follows the UI variant. */
|
|
100
|
+
selectionVariant?: SelectionVariant;
|
|
101
|
+
/** Game discovery layout; native supports `shelf`, with web-only layouts falling back. */
|
|
102
|
+
gameVariant?: GameVariant;
|
|
103
|
+
/** Drop the per-fixture swipe deck the variant layouts offer. */
|
|
104
|
+
disableEventSwipe?: boolean;
|
|
105
|
+
/** Let players star a sport in the rail to pin it up front (per device). Off by default. */
|
|
106
|
+
enableSportFavourites?: boolean;
|
|
69
107
|
filterSport?: string;
|
|
70
108
|
initialSport?: string;
|
|
71
109
|
initialEventId?: string;
|
|
72
110
|
initialEventLabel?: string;
|
|
73
111
|
sportBaseKey?: string;
|
|
74
|
-
gameCategory?:
|
|
112
|
+
gameCategory?: GameCategory;
|
|
75
113
|
screenSize: ScreenSize;
|
|
76
114
|
eventFilterActive: boolean;
|
|
77
115
|
eventFilterLabel?: string;
|
|
@@ -92,6 +130,10 @@ declare const PlaceEntryContext: React.Context<PlaceEntryContextValue | null>;
|
|
|
92
130
|
export { PlaceEntryContext };
|
|
93
131
|
export declare function usePlaceEntry(): PlaceEntryContextValue;
|
|
94
132
|
export interface PlaceEntryProviderProps {
|
|
133
|
+
/** Additional game implementations. Perfect Pick, H2H and Safety Net are built in. */
|
|
134
|
+
gameLibrary?: GameLibrary<PlaceEntryContextValue>;
|
|
135
|
+
/** Show calculated Correlation fair odds for development. Never enable in player-facing builds. */
|
|
136
|
+
showCorrelationDebug?: boolean;
|
|
95
137
|
apiUrl: string;
|
|
96
138
|
apiKey?: string;
|
|
97
139
|
fetchImpl?: typeof fetch;
|
|
@@ -106,7 +148,7 @@ export interface PlaceEntryProviderProps {
|
|
|
106
148
|
demoEntries?: GameEntry[];
|
|
107
149
|
/** Demo dividend/max-payout data (the /max-payout fetch is skipped for demo data). */
|
|
108
150
|
demoMaxPayouts?: Record<number, TopPayoutsResponse>;
|
|
109
|
-
gameCategory?:
|
|
151
|
+
gameCategory?: GameCategory;
|
|
110
152
|
jurisdiction?: string;
|
|
111
153
|
initialGameId?: number;
|
|
112
154
|
filterSport?: string;
|
|
@@ -116,6 +158,16 @@ export interface PlaceEntryProviderProps {
|
|
|
116
158
|
sportBaseKey?: string;
|
|
117
159
|
disableQuickPick?: boolean;
|
|
118
160
|
renderTeamLogo?: RenderTeamLogo;
|
|
161
|
+
renderPropositionSilk?: RenderPropositionSilk;
|
|
162
|
+
/** Optional presentation. Existing UI remains the default. */
|
|
163
|
+
uiVariant?: UiVariant;
|
|
164
|
+
selectionVariant?: SelectionVariant;
|
|
165
|
+
/** Game discovery layout; native supports `shelf`, with web-only layouts falling back. */
|
|
166
|
+
gameVariant?: GameVariant;
|
|
167
|
+
disableEventSwipe?: boolean;
|
|
168
|
+
/** Let players star a sport in the rail to pin it up front (per device). Off by default. */
|
|
169
|
+
yesNoLabels?: YesNoLabels;
|
|
170
|
+
enableSportFavourites?: boolean;
|
|
119
171
|
onEntryPlaced?: (entry: GameEntry) => void;
|
|
120
172
|
onBeforeSubmit?: (betAmount: number) => void | Promise<void>;
|
|
121
173
|
onCancel?: () => void;
|
|
@@ -127,4 +179,4 @@ export interface PlaceEntryProviderProps {
|
|
|
127
179
|
sportDisplayNames?: SportDisplayNameOverrides;
|
|
128
180
|
categoryDisplayNames?: CategoryDisplayNameOverrides;
|
|
129
181
|
}
|
|
130
|
-
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, onEntryPlaced, onBeforeSubmit, onCancel, onShare, onRecharge, onClearEventFilter, screenSize, howToPlayMarkdown: howToPlayMarkdownProp, sportDisplayNames, categoryDisplayNames, }: PlaceEntryProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
182
|
+
export declare function PlaceEntryProvider({ gameLibrary, 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. Twin of the web PlaybookChooser.
|
|
6
|
+
*/
|
|
7
|
+
export declare function PlaybookChooser({ games, selectedGame, theme, onPlay, maxPayouts, quickPickLoading }: CallGameCatalogueProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -6,15 +6,17 @@ 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;
|
|
15
16
|
bodyFont?: string;
|
|
16
17
|
}
|
|
17
18
|
export declare function FilterChipCarousel({ groups, theme, bodyFont, }: FilterChipCarouselProps): import("react/jsx-runtime").JSX.Element | null;
|
|
19
|
+
export declare function FilterChipPanel({ groups, theme, bodyFont }: FilterChipCarouselProps): import("react/jsx-runtime").JSX.Element | null;
|
|
18
20
|
export interface FilterChipRowProps extends FilterChipGroup {
|
|
19
21
|
theme: BladeTheme;
|
|
20
22
|
bodyFont?: string;
|
|
@@ -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;
|