@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,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;
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
-
/** Shared card kit for the unique-game pages — same anatomy as RuleSetupPage's ModeCard/EmblemTile. */
|
|
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,20 +48,38 @@ 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;
|
|
56
83
|
/**
|
|
57
84
|
* The sport step of a game's setup page — the one place in the flow the sport
|
|
58
85
|
* is chosen. Renders nothing when the game has a single sport, which is what
|
|
@@ -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 */
|
|
@@ -1,11 +1,20 @@
|
|
|
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, RenderPropositionSilk, GamePermittedRule } from '../../shared/types';
|
|
11
|
+
import { RenderTeamLogo, RenderPropositionSilk, GamePermittedRule, GameCategory } from '../../shared/types';
|
|
6
12
|
import { SelectionVariant } from '../../shared/selection-variants';
|
|
13
|
+
import { useCorrelationSteering } from '../../shared/correlation-steering';
|
|
7
14
|
import { SameGameMultiEvent } from '../../shared/same-game-multi';
|
|
8
15
|
export interface PlaceEntryContextValue {
|
|
16
|
+
gameLibrary: GameLibrary<PlaceEntryContextValue>;
|
|
17
|
+
getGameFlow: (game: Game | null | undefined) => GameFlow;
|
|
9
18
|
theme: BladeTheme;
|
|
10
19
|
bodyFont: string;
|
|
11
20
|
headingFont: string;
|
|
@@ -14,6 +23,8 @@ export interface PlaceEntryContextValue {
|
|
|
14
23
|
/** Component legs of composite propositions, by id — for per-leg event labels. */
|
|
15
24
|
compositeComponentById: ReadonlyMap<number, Proposition>;
|
|
16
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[];
|
|
17
28
|
propositionsForSportPicker: Proposition[];
|
|
18
29
|
sportsForSelectedGame: string[];
|
|
19
30
|
/** The sports the switcher can offer, busiest first, with their pick counts. */
|
|
@@ -31,6 +42,8 @@ export interface PlaceEntryContextValue {
|
|
|
31
42
|
selectedPropositionIds: number[];
|
|
32
43
|
selectedPropositions: Proposition[];
|
|
33
44
|
selectionValid: boolean;
|
|
45
|
+
showCorrelationDebug: boolean;
|
|
46
|
+
canSelectAnswer: (id: number, answer: 'yes' | 'no') => boolean;
|
|
34
47
|
answeredCount: number;
|
|
35
48
|
betAmount: number;
|
|
36
49
|
setBetAmount: (v: number) => void;
|
|
@@ -42,6 +55,8 @@ export interface PlaceEntryContextValue {
|
|
|
42
55
|
selectedRuleId: number | null;
|
|
43
56
|
setSelectedRuleId: (id: number | null) => void;
|
|
44
57
|
selectedRule: GamePermittedRule | null;
|
|
58
|
+
/** Read-only quote for the optional Call setup and ticket panels. */
|
|
59
|
+
previewCallPayouts?: PreviewCallPayouts;
|
|
45
60
|
winningCounts: number[];
|
|
46
61
|
payouts: Record<number, number>;
|
|
47
62
|
overloadPayouts: Record<number, number>;
|
|
@@ -59,8 +74,11 @@ export interface PlaceEntryContextValue {
|
|
|
59
74
|
goBack: () => void;
|
|
60
75
|
reset: () => void;
|
|
61
76
|
clearSelectedGame: () => void;
|
|
77
|
+
correlation: ReturnType<typeof useCorrelationSteering>;
|
|
78
|
+
correlationTargetCount: number;
|
|
62
79
|
toggleSelection: (id: number, answer: 'yes' | 'no') => void;
|
|
63
80
|
quickPickGame: (game: Game, count: number, stake?: number) => void;
|
|
81
|
+
quickPickSelections: (count: number) => number;
|
|
64
82
|
selectedCategory: string | null;
|
|
65
83
|
setSelectedCategory: (category: string | null) => void;
|
|
66
84
|
selectedSport: string | null;
|
|
@@ -76,8 +94,12 @@ export interface PlaceEntryContextValue {
|
|
|
76
94
|
disableQuickPick: boolean;
|
|
77
95
|
renderTeamLogo?: RenderTeamLogo;
|
|
78
96
|
renderPropositionSilk?: RenderPropositionSilk;
|
|
79
|
-
/**
|
|
97
|
+
/** Optional presentation. Existing UI remains the default. */
|
|
98
|
+
uiVariant?: UiVariant;
|
|
99
|
+
/** Proposition layout override; undefined follows the UI variant. */
|
|
80
100
|
selectionVariant?: SelectionVariant;
|
|
101
|
+
/** Game discovery layout; native supports `shelf`, with web-only layouts falling back. */
|
|
102
|
+
gameVariant?: GameVariant;
|
|
81
103
|
/** Drop the per-fixture swipe deck the variant layouts offer. */
|
|
82
104
|
disableEventSwipe?: boolean;
|
|
83
105
|
/** Let players star a sport in the rail to pin it up front (per device). Off by default. */
|
|
@@ -87,7 +109,7 @@ export interface PlaceEntryContextValue {
|
|
|
87
109
|
initialEventId?: string;
|
|
88
110
|
initialEventLabel?: string;
|
|
89
111
|
sportBaseKey?: string;
|
|
90
|
-
gameCategory?:
|
|
112
|
+
gameCategory?: GameCategory;
|
|
91
113
|
screenSize: ScreenSize;
|
|
92
114
|
eventFilterActive: boolean;
|
|
93
115
|
eventFilterLabel?: string;
|
|
@@ -108,6 +130,10 @@ declare const PlaceEntryContext: React.Context<PlaceEntryContextValue | null>;
|
|
|
108
130
|
export { PlaceEntryContext };
|
|
109
131
|
export declare function usePlaceEntry(): PlaceEntryContextValue;
|
|
110
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;
|
|
111
137
|
apiUrl: string;
|
|
112
138
|
apiKey?: string;
|
|
113
139
|
fetchImpl?: typeof fetch;
|
|
@@ -122,7 +148,7 @@ export interface PlaceEntryProviderProps {
|
|
|
122
148
|
demoEntries?: GameEntry[];
|
|
123
149
|
/** Demo dividend/max-payout data (the /max-payout fetch is skipped for demo data). */
|
|
124
150
|
demoMaxPayouts?: Record<number, TopPayoutsResponse>;
|
|
125
|
-
gameCategory?:
|
|
151
|
+
gameCategory?: GameCategory;
|
|
126
152
|
jurisdiction?: string;
|
|
127
153
|
initialGameId?: number;
|
|
128
154
|
filterSport?: string;
|
|
@@ -133,9 +159,14 @@ export interface PlaceEntryProviderProps {
|
|
|
133
159
|
disableQuickPick?: boolean;
|
|
134
160
|
renderTeamLogo?: RenderTeamLogo;
|
|
135
161
|
renderPropositionSilk?: RenderPropositionSilk;
|
|
162
|
+
/** Optional presentation. Existing UI remains the default. */
|
|
163
|
+
uiVariant?: UiVariant;
|
|
136
164
|
selectionVariant?: SelectionVariant;
|
|
165
|
+
/** Game discovery layout; native supports `shelf`, with web-only layouts falling back. */
|
|
166
|
+
gameVariant?: GameVariant;
|
|
137
167
|
disableEventSwipe?: boolean;
|
|
138
168
|
/** Let players star a sport in the rail to pin it up front (per device). Off by default. */
|
|
169
|
+
yesNoLabels?: YesNoLabels;
|
|
139
170
|
enableSportFavourites?: boolean;
|
|
140
171
|
onEntryPlaced?: (entry: GameEntry) => void;
|
|
141
172
|
onBeforeSubmit?: (betAmount: number) => void | Promise<void>;
|
|
@@ -148,4 +179,4 @@ export interface PlaceEntryProviderProps {
|
|
|
148
179
|
sportDisplayNames?: SportDisplayNameOverrides;
|
|
149
180
|
categoryDisplayNames?: CategoryDisplayNameOverrides;
|
|
150
181
|
}
|
|
151
|
-
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;
|
|
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;
|
|
@@ -5,6 +5,13 @@ export interface ScrollShelfProps {
|
|
|
5
5
|
theme: BladeTheme;
|
|
6
6
|
/** Padding/gap for the row's content — cards need more room than chips. */
|
|
7
7
|
contentContainerStyle?: StyleProp<ViewStyle>;
|
|
8
|
+
/** Drop the arrow discs — they overhang, which a pill-shaped shelf clips. */
|
|
9
|
+
hideArrows?: boolean;
|
|
10
|
+
/** Row width vs. its content, so a caller can shorten labels that don't fit. */
|
|
11
|
+
onMetrics?: (metrics: {
|
|
12
|
+
viewport: number;
|
|
13
|
+
content: number;
|
|
14
|
+
}) => void;
|
|
8
15
|
style?: StyleProp<ViewStyle>;
|
|
9
16
|
children: React.ReactNode;
|
|
10
17
|
}
|
|
@@ -13,4 +20,4 @@ export interface ScrollShelfProps {
|
|
|
13
20
|
* more in that direction. Shared so the filter chips and the sport rail scroll
|
|
14
21
|
* identically.
|
|
15
22
|
*/
|
|
16
|
-
export declare function ScrollShelf({ theme, contentContainerStyle, style, children, }: ScrollShelfProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export declare function ScrollShelf({ theme, contentContainerStyle, hideArrows, onMetrics, style, 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;
|
|
@@ -5,17 +5,23 @@ export interface SportRailProps {
|
|
|
5
5
|
label?: string | null;
|
|
6
6
|
/** Line under the heading. Pass `null` to drop it; omit for the default hint. */
|
|
7
7
|
sublabel?: string | null;
|
|
8
|
-
/**
|
|
9
|
-
|
|
8
|
+
/** Controls parked on the heading's right — the track keeps the full width. */
|
|
9
|
+
actions?: React.ReactNode;
|
|
10
10
|
style?: StyleProp<ViewStyle>;
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
|
-
* The sport step
|
|
14
|
-
* setup page
|
|
15
|
-
*
|
|
16
|
-
*
|
|
13
|
+
* The sport step. It sits on a game's setup page, and — for the games that have
|
|
14
|
+
* no setup page — above the proposition list, so there is always one place to
|
|
15
|
+
* change it. Never on the game grid.
|
|
16
|
+
*
|
|
17
|
+
* One oval track: every sport rides it as its short code, and the selected one
|
|
18
|
+
* opens out to its full name on a filled thumb. Codes keep the track compact,
|
|
19
|
+
* the selection says what it is in plain English.
|
|
20
|
+
*
|
|
21
|
+
* A bet is one sport: once the slip has picks the track locks, and the only way
|
|
22
|
+
* across is to clear the bet — silently wiping the card on a mis-tap was worse.
|
|
17
23
|
*
|
|
18
24
|
* Renders nothing at all when the sport is not a choice, which is every
|
|
19
25
|
* single-sport game.
|
|
20
26
|
*/
|
|
21
|
-
export declare function SportRail({ label, sublabel,
|
|
27
|
+
export declare function SportRail({ label, sublabel, actions, style }: SportRailProps): import("react/jsx-runtime").JSX.Element | null;
|