@simple-parlay/components 1.30.6-pre.10 → 1.30.6-pre.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +653 -467
- package/dist/react/components/CallPayoutTable.d.ts +7 -1
- package/dist/react/components/EntrySubmission.d.ts +1 -1
- package/dist/react/components/EventSwipeModal.d.ts +4 -0
- package/dist/react/components/GameCardParts.d.ts +28 -0
- package/dist/react/components/GameModeCard.d.ts +6 -2
- package/dist/react/components/GameSelector.d.ts +1 -27
- package/dist/react/components/GameShowcaseCatalogue.d.ts +3 -1
- package/dist/react/components/GameSkeletons.d.ts +24 -0
- package/dist/react/components/HowToPlayButton.d.ts +2 -1
- package/dist/react/components/LoadingIndicators.d.ts +27 -10
- package/dist/react/components/MatchRail.d.ts +23 -1
- package/dist/react/components/MatchTopBar.d.ts +19 -0
- package/dist/react/components/MultiLegTable.d.ts +3 -1
- package/dist/react/components/PageBackButton.d.ts +28 -7
- package/dist/react/components/PageSkeletons.d.ts +24 -0
- package/dist/react/components/PickGroupSection.d.ts +37 -0
- package/dist/react/components/PickerBrand.d.ts +0 -5
- package/dist/react/components/PicksSkeletons.d.ts +30 -0
- package/dist/react/components/PlaceEntryProvider.d.ts +34 -3
- package/dist/react/components/PropositionFilters.d.ts +0 -1
- package/dist/react/components/PropositionParts.d.ts +38 -0
- package/dist/react/components/QuickPickButton.d.ts +24 -1
- package/dist/react/components/QuickPickMenu.d.ts +19 -1
- package/dist/react/components/SafetyNetPage.d.ts +19 -0
- package/dist/react/components/SelectionsPage.d.ts +7 -2
- package/dist/react/components/ShelfKit.d.ts +43 -0
- package/dist/react/components/SportRail.d.ts +1 -1
- package/dist/react/components/SportSelector.d.ts +1 -36
- package/dist/react/components/SuccessPage.d.ts +4 -2
- package/dist/react/components/SwipeDeck.d.ts +32 -3
- package/dist/react/components/YesNoMultiLogo.d.ts +13 -0
- package/dist/react/components/_primitives/index.d.ts +47 -12
- package/dist/react/index.cjs +1 -1
- package/dist/react/index.d.ts +10 -2
- package/dist/react/index.mjs +653 -467
- package/dist/react/utils/themes.d.ts +1 -1
- package/dist/react-native/components/CallGameCatalogue.d.ts +1 -0
- package/dist/react-native/components/CallPayoutTable.d.ts +7 -1
- package/dist/react-native/components/DenseUi.d.ts +2 -9
- package/dist/react-native/components/EntrySubmission.d.ts +1 -1
- package/dist/react-native/components/EventSwipeModal.d.ts +5 -0
- package/dist/react-native/components/GameCardParts.d.ts +29 -0
- package/dist/react-native/components/GameModeCard.d.ts +3 -1
- package/dist/react-native/components/GameSelector.d.ts +0 -27
- package/dist/react-native/components/GameShelfCatalogue.d.ts +0 -5
- package/dist/react-native/components/GameSkeletons.d.ts +23 -0
- package/dist/react-native/components/HowToPlayButton.d.ts +2 -1
- package/dist/react-native/components/LoadingIndicators.d.ts +22 -10
- package/dist/react-native/components/MatchRail.d.ts +23 -2
- package/dist/react-native/components/MatchTopBar.d.ts +17 -0
- package/dist/react-native/components/MultiLegTable.d.ts +3 -1
- package/dist/react-native/components/PageBackButton.d.ts +26 -10
- package/dist/react-native/components/PageSkeletons.d.ts +23 -0
- package/dist/react-native/components/PickGroupSection.d.ts +37 -0
- package/dist/react-native/components/PickerBrand.d.ts +0 -4
- package/dist/react-native/components/PicksSkeletons.d.ts +31 -0
- package/dist/react-native/components/PlaceEntryProvider.d.ts +34 -3
- package/dist/react-native/components/PropositionFilters.d.ts +0 -1
- package/dist/react-native/components/PropositionParts.d.ts +35 -0
- package/dist/react-native/components/QuickPickButton.d.ts +24 -1
- package/dist/react-native/components/QuickPickMenu.d.ts +20 -1
- package/dist/react-native/components/SafetyNetPage.d.ts +17 -0
- package/dist/react-native/components/SelectionsPage.d.ts +6 -2
- package/dist/react-native/components/ShelfKit.d.ts +62 -0
- package/dist/react-native/components/SportRail.d.ts +1 -1
- package/dist/react-native/components/SportSelector.d.ts +1 -33
- package/dist/react-native/components/SuccessPage.d.ts +4 -2
- package/dist/react-native/components/SwipeDeck.d.ts +37 -3
- package/dist/react-native/components/YesNoMultiLogo.d.ts +12 -0
- package/dist/react-native/components/_primitives/index.d.ts +83 -10
- package/dist/react-native/index.cjs +1 -1
- package/dist/react-native/index.d.ts +10 -2
- package/dist/react-native/index.mjs +561 -438
- package/dist/react-native/utils/themes.d.ts +1 -1
- package/dist/shared/button-ui.d.ts +62 -0
- package/dist/shared/call-presentation.d.ts +9 -1
- package/dist/shared/canvas.d.ts +14 -0
- package/dist/shared/correlation-steering.d.ts +7 -0
- package/dist/shared/date-filters.d.ts +0 -23
- package/dist/shared/entry-progress.d.ts +38 -0
- package/dist/shared/game-artwork.d.ts +2 -0
- package/dist/shared/game-flow.d.ts +20 -0
- package/dist/shared/game-icons.d.ts +2 -1
- package/dist/shared/game-shelf-presentation.d.ts +38 -2
- package/dist/shared/hooks.d.ts +1 -1
- package/dist/shared/selection-actions.d.ts +70 -3
- package/dist/shared/selection-caps.d.ts +66 -10
- package/dist/shared/selection-variants.d.ts +5 -0
- package/dist/shared/shelf-covers.d.ts +92 -0
- package/dist/shared/shelf-ui.d.ts +47 -0
- package/dist/shared/swipe-deck.d.ts +10 -0
- package/dist/shared/themes.d.ts +48 -8
- package/dist/shared/tokens.d.ts +7 -0
- package/dist/shared/types.d.ts +6 -1
- package/dist/shared/ui-system.d.ts +4 -3
- package/dist/shared/utils.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BladeTheme } from '../../shared/themes';
|
|
2
2
|
export type { BladeTheme, BladeThemeSet, ColorScheme } from '../../shared/themes';
|
|
3
|
-
export { defaultTheme, greenTheme, greenLightTheme, darkTheme, goldTheme, goldLightTheme, defaultThemeSet, greenThemeSet, goldThemeSet, getTheme, getThemeSet, themes, themeSets, themeHeading, themeLabel, themeValue, themeProductYes, themeProductNo, PRODUCT_YES, PRODUCT_NO, themeAccent, accentOnSurface, themeTextAlt, themeTextAltMuted, themeSelectionCard, themeMatchupHeader, themeSelectionProp, themePickerSurfaceColors, resolveTheme, isThemeSet, useResolvedTheme, } from '../../shared/themes';
|
|
3
|
+
export { defaultTheme, greenTheme, greenLightTheme, darkTheme, goldTheme, goldLightTheme, defaultThemeSet, greenThemeSet, goldThemeSet, getTheme, getThemeSet, themes, themeSets, themeHeading, themeLabel, themeValue, themeProductYes, themeProductNo, PRODUCT_YES, PRODUCT_NO, productTextOn, themeAccent, canvasTheme, accentOnSurface, themeTextAlt, themeTextAltMuted, themeSelectionCard, themeMatchupHeader, themeSelectionProp, themePickerSurfaceColors, resolveTheme, isThemeSet, useResolvedTheme, } from '../../shared/themes';
|
|
4
4
|
export declare function themeBodyFont(t: BladeTheme): string;
|
|
5
5
|
export declare function themeHeadingFont(t: BladeTheme): string;
|
|
6
6
|
/**
|
|
@@ -12,5 +12,6 @@ interface Props {
|
|
|
12
12
|
showTier?: boolean;
|
|
13
13
|
showCategory?: boolean;
|
|
14
14
|
}
|
|
15
|
+
/** A game tile: the standard card hover (primary border) and press sink. */
|
|
15
16
|
export declare function CallGameCatalogue({ games, theme, onPlay, maxPayouts, quickPickLoading, showTier }: Props): import("react/jsx-runtime").JSX.Element;
|
|
16
17
|
export {};
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { CallPayoutView } from '../../shared/call-presentation';
|
|
2
2
|
import { BladeTheme } from '../../shared/themes';
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* The outcome card: best outcome on a primary band, $0 outcomes muted.
|
|
5
|
+
* `bare` drops the card chrome so it can sit inside a card or dock (Game Shelf):
|
|
6
|
+
* the band floats with radius 12 and only plain rows are ruled.
|
|
7
|
+
*/
|
|
8
|
+
export declare function CallPayoutTable({ view, theme, bare }: {
|
|
4
9
|
view: CallPayoutView;
|
|
5
10
|
theme: BladeTheme;
|
|
11
|
+
bare?: boolean;
|
|
6
12
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -18,7 +18,8 @@ export declare function denseTokens(theme: BladeTheme): {
|
|
|
18
18
|
alignItems: "center";
|
|
19
19
|
gap: number;
|
|
20
20
|
};
|
|
21
|
-
|
|
21
|
+
/** A text field: the web .dd-btn on inputs. */
|
|
22
|
+
field: {
|
|
22
23
|
minHeight: number;
|
|
23
24
|
paddingVertical: number;
|
|
24
25
|
paddingHorizontal: number;
|
|
@@ -29,14 +30,6 @@ export declare function denseTokens(theme: BladeTheme): {
|
|
|
29
30
|
backgroundColor: string;
|
|
30
31
|
};
|
|
31
32
|
};
|
|
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
33
|
export declare function DenseOutcome({ view, theme, compact, }: {
|
|
41
34
|
view: CallPayoutView;
|
|
42
35
|
theme: BladeTheme;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { EntrySubmissionProps } from '../types';
|
|
2
|
-
export declare function EntrySubmission({ game, propositions, selections, onToggleSelection, onRemoveSelection, onSubmit, onBack, loading, error, expectedCorrect, onExpectedCorrectChange, betAmount, onBetAmountChange, theme: themeProp, colorScheme, hideActions, winningCounts: winningCountsProp, payouts: payoutsProp, renderTeamLogo, componentById, showCustomAmount, betAmountLocked, betAmountLockedNote, canSubmit: canSubmitProp, authenticated, userBalance, onRecharge, boostBanner, }: EntrySubmissionProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function EntrySubmission({ game, propositions, selections, onToggleSelection, onRemoveSelection, onSubmit, onBack, loading, error, expectedCorrect, onExpectedCorrectChange, betAmount, onBetAmountChange, theme: themeProp, colorScheme, hideActions, winningCounts: winningCountsProp, payouts: payoutsProp, renderTeamLogo, componentById, showCustomAmount, betAmountLocked, betAmountLockedNote, canSubmit: canSubmitProp, confirming, authenticated, userBalance, onRecharge, boostBanner, }: EntrySubmissionProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -7,6 +7,11 @@ import { Proposition } from '../types';
|
|
|
7
7
|
* `useSwipeDeck` for the queue, `SwipeCard`/`SwipeCardFace` for the cards —
|
|
8
8
|
* over just the props handed in. Silks and composite legs come with the face.
|
|
9
9
|
*/
|
|
10
|
+
/** A card on its stack — the glyph on every Swipe button. Web twin in react EventSwipeModal. */
|
|
11
|
+
export declare function SwipeIcon({ size, color }: {
|
|
12
|
+
size?: number;
|
|
13
|
+
color: string;
|
|
14
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
10
15
|
export interface EventSwipeModalProps {
|
|
11
16
|
/** The fixture's answerable questions, in card order. */
|
|
12
17
|
propositions: Proposition[];
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { BladeTheme } from '../../shared/themes';
|
|
2
|
+
import { DividendMode, DividendTier } from '../../shared/game-dividends';
|
|
3
|
+
/** The game's dividends, rendered inside the How to Play modal. */
|
|
4
|
+
export declare function CardDividends({ tiers, modes, pydDividends, onPlayCount, minBet, maxBet, colors: c, bodyFont, headingFont, theme, }: {
|
|
5
|
+
tiers: DividendTier[];
|
|
6
|
+
modes?: DividendMode[];
|
|
7
|
+
/** Pick Your Dividend: the set dividends and the stake each starts from. */
|
|
8
|
+
pydDividends?: {
|
|
9
|
+
dividend: number;
|
|
10
|
+
stakeFrom: number;
|
|
11
|
+
}[];
|
|
12
|
+
/** Makes each leg row play that many picks. */
|
|
13
|
+
onPlayCount?: (count: number) => void;
|
|
14
|
+
/** The game's bet limits — the example bet is clamped to them. */
|
|
15
|
+
minBet?: number;
|
|
16
|
+
maxBet?: number | null;
|
|
17
|
+
colors: any;
|
|
18
|
+
bodyFont: string | undefined;
|
|
19
|
+
headingFont: string | undefined;
|
|
20
|
+
theme?: BladeTheme;
|
|
21
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
22
|
+
/** PressToPlayTile's stacked-tile mark, cropped — no card frame or caption. */
|
|
23
|
+
export declare function GameMark({ iconUrl, size, brandColor, iconColor, accentColor, }: {
|
|
24
|
+
iconUrl: string;
|
|
25
|
+
size: number;
|
|
26
|
+
brandColor: string;
|
|
27
|
+
iconColor: string;
|
|
28
|
+
accentColor?: string;
|
|
29
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -48,8 +48,10 @@ export declare function LegPips({ legs, prizeBall }: {
|
|
|
48
48
|
legs: number;
|
|
49
49
|
prizeBall?: boolean;
|
|
50
50
|
}): import("react/jsx-runtime").JSX.Element;
|
|
51
|
-
|
|
51
|
+
/** The setup kit's card. A tappable card passes its button's `hovered` / `pressed` (from `usePress`): border previews the primary, a press sinks it. Web twin: KitCard. */
|
|
52
|
+
export declare function KitCard({ hovered, pressed, style, children, ...hover }: {
|
|
52
53
|
hovered?: boolean;
|
|
54
|
+
pressed?: boolean;
|
|
53
55
|
style?: StyleProp<ViewStyle>;
|
|
54
56
|
children: React.ReactNode;
|
|
55
57
|
onMouseEnter?: () => void;
|
|
@@ -1,29 +1,2 @@
|
|
|
1
1
|
import { GameSelectorProps } from '../types';
|
|
2
|
-
import { DividendMode, DividendTier } from '../../shared/game-dividends';
|
|
3
|
-
/** The game's dividends, rendered inside the How to Play modal. */
|
|
4
|
-
export declare function CardDividends({ tiers, modes, pydDividends, onPlayCount, minBet, maxBet, colors: c, bodyFont, headingFont, }: {
|
|
5
|
-
tiers: DividendTier[];
|
|
6
|
-
modes?: DividendMode[];
|
|
7
|
-
/** Pick Your Dividend: the set dividends and the stake each starts from. */
|
|
8
|
-
pydDividends?: {
|
|
9
|
-
dividend: number;
|
|
10
|
-
stakeFrom: number;
|
|
11
|
-
}[];
|
|
12
|
-
/** Makes each leg row play that many picks. */
|
|
13
|
-
onPlayCount?: (count: number) => void;
|
|
14
|
-
/** The game's bet limits — the example bet is clamped to them. */
|
|
15
|
-
minBet?: number;
|
|
16
|
-
maxBet?: number | null;
|
|
17
|
-
colors: any;
|
|
18
|
-
bodyFont: string | undefined;
|
|
19
|
-
headingFont: string | undefined;
|
|
20
|
-
}): import("react/jsx-runtime").JSX.Element | null;
|
|
21
|
-
/** PressToPlayTile's stacked-tile mark, cropped — no card frame or caption. */
|
|
22
|
-
export declare function GameMark({ iconUrl, size, brandColor, iconColor, accentColor, }: {
|
|
23
|
-
iconUrl: string;
|
|
24
|
-
size: number;
|
|
25
|
-
brandColor: string;
|
|
26
|
-
iconColor: string;
|
|
27
|
-
accentColor?: string;
|
|
28
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
29
2
|
export declare function GameSelector({ games: allGames, selectedGame, onSelectGame, loading, error, theme: themeProp, colorScheme, uiVariant: uiVariantProp, gameVariant, showTier, showCategory, showTierFilter, onPropositionCountChange, onPropositionCountSelected, onQuickPickGame, quickPickLoading, maxPayouts, }: GameSelectorProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,2 @@
|
|
|
1
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
2
|
export declare function GameShelfCatalogue({ games, selectedGame, theme, onPlay, maxPayouts, quickPickLoading }: CallGameCatalogueProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { BladeTheme } from '../../shared/themes';
|
|
2
|
+
import { UiSystemPages } from '../../shared/ui-system';
|
|
3
|
+
import { UiVariant } from '../../shared/ui-variant';
|
|
4
|
+
import { PickerSurfaceColors } from './LoadingIndicators';
|
|
5
|
+
/**
|
|
6
|
+
* Loading skeletons for each game-chooser layout — twin of the web
|
|
7
|
+
* GameSkeletons, mirroring the RN catalogues' own boxes. Cards / Split /
|
|
8
|
+
* Compare / Showcase are web-only layouts, so they have no skeleton here.
|
|
9
|
+
*/
|
|
10
|
+
export type GameChooserLayout = UiSystemPages['games'];
|
|
11
|
+
/**
|
|
12
|
+
* GameSelector's loading state: the skeleton of the layout that will replace
|
|
13
|
+
* it. `layout` is resolved exactly as GameSelector resolves it after loading.
|
|
14
|
+
*/
|
|
15
|
+
export declare function GameChooserSkeleton({ layout, uiVariant, theme, colors, count, showTierTabs, }: {
|
|
16
|
+
layout: GameChooserLayout;
|
|
17
|
+
uiVariant: UiVariant;
|
|
18
|
+
theme: BladeTheme;
|
|
19
|
+
colors: PickerSurfaceColors;
|
|
20
|
+
/** Games already known, if any; each layout falls back to a screenful. */
|
|
21
|
+
count: number;
|
|
22
|
+
showTierTabs?: boolean;
|
|
23
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -9,7 +9,8 @@ export interface HowToPlayButtonProps {
|
|
|
9
9
|
extra?: React.ReactNode;
|
|
10
10
|
title?: string;
|
|
11
11
|
label?: string;
|
|
12
|
-
|
|
12
|
+
/** link: "How to play" as the Game Shelf quiet button. */
|
|
13
|
+
variant?: 'pill' | 'icon' | 'link';
|
|
13
14
|
/** Optional touch target size for compact layouts. */
|
|
14
15
|
touchSize?: number;
|
|
15
16
|
colors: {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { BladeTheme } from '../../shared/themes';
|
|
1
2
|
/**
|
|
2
3
|
* RN mirror of the web `LoadingIndicators` picker skeletons. The web side uses
|
|
3
4
|
* `animate-pulse` (CSS keyframes) for the shimmer; RN renders a static tinted
|
|
@@ -13,60 +14,70 @@ export interface PickerSurfaceColors {
|
|
|
13
14
|
primary: string;
|
|
14
15
|
selectionCard?: string;
|
|
15
16
|
}
|
|
17
|
+
export declare function cardBackground(colors: PickerSurfaceColors): string;
|
|
16
18
|
/** Static shimmer block — web uses animate-pulse (CSS keyframes, no RN equivalent). */
|
|
17
19
|
export declare function Shimmer({ color, style }: {
|
|
18
20
|
color: string;
|
|
19
21
|
style?: object;
|
|
20
22
|
}): import("react/jsx-runtime").JSX.Element;
|
|
21
23
|
/** RN mirror of web `CategoryGridSkeleton` (1 col < 400px, 2 cols ≥ 400px). */
|
|
22
|
-
export declare function CategoryGridSkeleton({ colors, count, }: {
|
|
24
|
+
export declare function CategoryGridSkeleton({ colors, count, theme, }: {
|
|
23
25
|
colors: PickerSurfaceColors;
|
|
26
|
+
theme?: BladeTheme;
|
|
24
27
|
count?: number;
|
|
25
28
|
}): import("react/jsx-runtime").JSX.Element;
|
|
26
29
|
/** RN mirror of web `SportGridSkeleton` — a stacked tile at every width. */
|
|
27
|
-
export declare function SportGridSkeleton({ colors, count, }: {
|
|
30
|
+
export declare function SportGridSkeleton({ colors, count, theme, }: {
|
|
28
31
|
colors: PickerSurfaceColors;
|
|
32
|
+
theme?: BladeTheme;
|
|
29
33
|
count?: number;
|
|
30
34
|
}): import("react/jsx-runtime").JSX.Element;
|
|
31
35
|
/** RN mirror of web `EventListSkeleton` — matchup bar, meta line, chevron. */
|
|
32
|
-
export declare function EventListSkeleton({ colors, count, }: {
|
|
36
|
+
export declare function EventListSkeleton({ colors, count, theme, }: {
|
|
33
37
|
colors: PickerSurfaceColors;
|
|
38
|
+
theme?: BladeTheme;
|
|
34
39
|
count?: number;
|
|
35
40
|
}): import("react/jsx-runtime").JSX.Element;
|
|
36
|
-
export declare function GameCardSkeleton({ colors, tileSize, width, }: {
|
|
41
|
+
export declare function GameCardSkeleton({ colors, tileSize, width, theme, }: {
|
|
37
42
|
colors: PickerSurfaceColors;
|
|
38
43
|
tileSize?: number;
|
|
39
44
|
width?: number | `${number}%`;
|
|
45
|
+
theme?: BladeTheme;
|
|
40
46
|
}): import("react/jsx-runtime").JSX.Element;
|
|
41
47
|
/** RN mirror of web `GameTierTabsSkeleton`. */
|
|
42
|
-
export declare function GameTierTabsSkeleton({ colors }: {
|
|
48
|
+
export declare function GameTierTabsSkeleton({ colors, theme }: {
|
|
43
49
|
colors: PickerSurfaceColors;
|
|
50
|
+
theme?: BladeTheme;
|
|
44
51
|
}): import("react/jsx-runtime").JSX.Element;
|
|
45
52
|
/** RN mirror of web `GameCardListSkeleton` (1 col < 420px, 2 cols ≥ 420px). */
|
|
46
|
-
export declare function GameCardListSkeleton({ colors, count, tileSize, showTierTabs, }: {
|
|
53
|
+
export declare function GameCardListSkeleton({ colors, count, tileSize, showTierTabs, theme, }: {
|
|
47
54
|
colors: PickerSurfaceColors;
|
|
48
55
|
count?: number;
|
|
49
56
|
tileSize?: number;
|
|
50
57
|
showTierTabs?: boolean;
|
|
58
|
+
theme?: BladeTheme;
|
|
51
59
|
}): import("react/jsx-runtime").JSX.Element;
|
|
52
60
|
/** RN mirror of web `PropositionListSkeleton` — filter pill, then matchup cards. */
|
|
53
|
-
export declare function PropositionListSkeleton({ colors, groups, rowsPerGroup, }: {
|
|
61
|
+
export declare function PropositionListSkeleton({ colors, groups, rowsPerGroup, theme, }: {
|
|
54
62
|
colors: PickerSurfaceColors;
|
|
55
63
|
groups?: number;
|
|
56
64
|
rowsPerGroup?: number;
|
|
65
|
+
theme?: BladeTheme;
|
|
57
66
|
}): import("react/jsx-runtime").JSX.Element;
|
|
58
67
|
export declare function EntryTabsSkeleton({ colors }: {
|
|
59
68
|
colors: PickerSurfaceColors;
|
|
60
69
|
}): import("react/jsx-runtime").JSX.Element;
|
|
61
|
-
export declare function EntryCardSkeleton({ colors }: {
|
|
70
|
+
export declare function EntryCardSkeleton({ colors, theme }: {
|
|
62
71
|
colors: PickerSurfaceColors;
|
|
72
|
+
theme?: BladeTheme;
|
|
63
73
|
}): import("react/jsx-runtime").JSX.Element;
|
|
64
|
-
export declare function EntryListSkeleton({ colors, rows, }: {
|
|
74
|
+
export declare function EntryListSkeleton({ colors, rows, theme, }: {
|
|
65
75
|
colors: PickerSurfaceColors;
|
|
66
76
|
rows?: number;
|
|
77
|
+
theme?: BladeTheme;
|
|
67
78
|
}): import("react/jsx-runtime").JSX.Element;
|
|
68
79
|
export type PickerLoadingVariant = 'category' | 'sport' | 'event' | 'games' | 'propositions' | 'entries';
|
|
69
|
-
export declare function PickerLoadingPanel({ colors, bodyFont, message, variant, gameCardCount, categoryCount, showTierTabs, }: {
|
|
80
|
+
export declare function PickerLoadingPanel({ colors, bodyFont, message, variant, gameCardCount, categoryCount, showTierTabs, theme, }: {
|
|
70
81
|
colors: PickerSurfaceColors;
|
|
71
82
|
bodyFont?: string;
|
|
72
83
|
message?: string;
|
|
@@ -74,4 +85,5 @@ export declare function PickerLoadingPanel({ colors, bodyFont, message, variant,
|
|
|
74
85
|
gameCardCount?: number;
|
|
75
86
|
categoryCount?: number;
|
|
76
87
|
showTierTabs?: boolean;
|
|
88
|
+
theme?: BladeTheme;
|
|
77
89
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { BladeTheme } from '../../shared/themes';
|
|
3
3
|
import { SelectionEvent } from '../../shared/selection-variants';
|
|
4
|
+
import { ShelfPage } from '../../shared/selection-actions';
|
|
5
|
+
import { RenderTeamLogo } from '../../shared/types';
|
|
4
6
|
export interface ChipRailItem {
|
|
5
7
|
key: string;
|
|
6
8
|
/** The compact label every chip shows (team codes, sport code). */
|
|
@@ -15,12 +17,31 @@ export interface ChipRailItem {
|
|
|
15
17
|
leading?: (on: boolean) => React.ReactNode;
|
|
16
18
|
trailing?: (on: boolean) => React.ReactNode;
|
|
17
19
|
}
|
|
18
|
-
|
|
20
|
+
/**
|
|
21
|
+
* The shelf's match control — twin of the web `MatchStepper`: Prev / Next
|
|
22
|
+
* either side of the matches on screen, by name; the names open a modal
|
|
23
|
+
* board of every match, by day, to jump straight to one.
|
|
24
|
+
*/
|
|
25
|
+
export declare function MatchStepper({ theme: themeProp, events, page, per, picked, onGo, renderTeamLogo, racing, }: {
|
|
26
|
+
theme: BladeTheme;
|
|
27
|
+
events: SelectionEvent[];
|
|
28
|
+
/** What's on screen, and where Prev / Next go (`shelfPage`). */
|
|
29
|
+
page: ShelfPage;
|
|
30
|
+
/** Matches to a page, for the arrows' names: "Next 2 matches". */
|
|
31
|
+
per: number;
|
|
32
|
+
picked: (event: SelectionEvent) => number;
|
|
33
|
+
/** Show the page holding this match. */
|
|
34
|
+
onGo: (index: number) => void;
|
|
35
|
+
renderTeamLogo?: RenderTeamLogo;
|
|
36
|
+
racing?: boolean;
|
|
37
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
38
|
+
export declare function ChipRail({ theme: themeProp, items, activeKey, onSelect, noun, groupLabel, }: {
|
|
19
39
|
theme: BladeTheme;
|
|
20
40
|
items: ChipRailItem[];
|
|
41
|
+
/** The chip that's on, and the one the edge buttons step from. */
|
|
21
42
|
activeKey?: string;
|
|
22
43
|
onSelect: (key: string) => void;
|
|
23
|
-
/** Names the edge buttons: "
|
|
44
|
+
/** Names the edge buttons: "Next match". */
|
|
24
45
|
noun: string;
|
|
25
46
|
groupLabel: string;
|
|
26
47
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { BladeTheme } from '../../shared/themes';
|
|
3
|
+
import { RenderTeamLogo } from '../../shared/types';
|
|
4
|
+
/**
|
|
5
|
+
* The top bar every system's match card opens with: stacked badges and teams, kick-off, and whatever sits at the
|
|
6
|
+
* far right (Swipe, or the original list's answered count and chevron). Web twin: MatchTopBar in the web components.
|
|
7
|
+
*/
|
|
8
|
+
export declare function MatchTopBar({ theme, title, home, away, racing, date, renderTeamLogo, trailing }: {
|
|
9
|
+
theme: BladeTheme;
|
|
10
|
+
title: string;
|
|
11
|
+
home?: string;
|
|
12
|
+
away?: string;
|
|
13
|
+
racing?: boolean;
|
|
14
|
+
date: Date | null;
|
|
15
|
+
renderTeamLogo?: RenderTeamLogo;
|
|
16
|
+
trailing?: React.ReactNode;
|
|
17
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Game } from '../../shared/types';
|
|
2
|
+
import { BladeTheme } from '../../shared/themes';
|
|
2
3
|
export interface MultiLegTableColors {
|
|
3
4
|
textMuted: string;
|
|
4
5
|
success: string;
|
|
@@ -35,5 +36,6 @@ export interface MultiLegTableProps {
|
|
|
35
36
|
expanded?: boolean;
|
|
36
37
|
onExpandedChange?: (expanded: boolean) => void;
|
|
37
38
|
summaryTiers?: MultiLegTableTier[];
|
|
39
|
+
theme?: BladeTheme;
|
|
38
40
|
}
|
|
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;
|
|
41
|
+
export declare function MultiLegTable({ tiers, game, selectedCount, onSelect, colors: c, bodyFont, extraBetAmount, buttonLabel, columnLabel, buildYourOwn, quickPickOnly, onQuickPick, collapsible, expanded: expandedProp, onExpandedChange, summaryTiers, theme }: MultiLegTableProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,28 +1,44 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
import { StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
2
3
|
/**
|
|
3
|
-
*
|
|
4
|
-
* the
|
|
5
|
-
*
|
|
4
|
+
* The one back control: the arrow and an optional label, one button. It rests
|
|
5
|
+
* in the header's context colour, turns primary on hover and sinks on press;
|
|
6
|
+
* its tap target reaches 44px without growing the row. Every header layout and
|
|
7
|
+
* the setup pages' back link draw this. Twin: web `PageBackButton`.
|
|
6
8
|
*/
|
|
7
|
-
export declare function PageBackButton({ onBack, title, }: {
|
|
9
|
+
export declare function PageBackButton({ onBack, title, label, ariaLabel, color, labelStyle, labelLines, style, }: {
|
|
8
10
|
onBack: () => void;
|
|
11
|
+
/** The accessible name when there is no label. */
|
|
9
12
|
title?: string;
|
|
13
|
+
/** Context text beside the arrow; part of the button. */
|
|
14
|
+
label?: React.ReactNode;
|
|
15
|
+
/** Overrides the accessible name (Shelf: "Back to Sports"). */
|
|
16
|
+
ariaLabel?: string;
|
|
17
|
+
/** Resting colour; muted text by default. */
|
|
18
|
+
color?: string;
|
|
19
|
+
labelStyle?: StyleProp<TextStyle>;
|
|
20
|
+
/** Truncate the label to this many lines (the Shelf eyebrow: 1). */
|
|
21
|
+
labelLines?: number;
|
|
22
|
+
style?: StyleProp<ViewStyle>;
|
|
10
23
|
}): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
/**
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
24
|
+
/** The success check that sits in the back arrow's slot: the same 16px mark. */
|
|
25
|
+
export declare function HeaderCheck({ color, testID }: {
|
|
26
|
+
color: string;
|
|
27
|
+
testID?: string;
|
|
28
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
/** The setup pages' body back link: the one back control with a label. */
|
|
16
30
|
export declare function PageBackLink({ onBack, label, }: {
|
|
17
31
|
onBack: () => void;
|
|
18
32
|
label?: string;
|
|
19
33
|
}): import("react/jsx-runtime").JSX.Element;
|
|
20
|
-
export declare function PageHeader({ title, onBack, backLabel, actions, children, }: {
|
|
34
|
+
export declare function PageHeader({ title, onBack, backLabel, actions, children, leading, }: {
|
|
21
35
|
title: React.ReactNode;
|
|
22
36
|
onBack?: () => void;
|
|
23
37
|
backLabel?: React.ReactNode;
|
|
24
38
|
actions?: React.ReactNode;
|
|
25
39
|
children?: React.ReactNode;
|
|
40
|
+
/** Toolbar layout: takes the back button's slot (the success page puts its check here). */
|
|
41
|
+
leading?: React.ReactNode;
|
|
26
42
|
}): import("react/jsx-runtime").JSX.Element;
|
|
27
43
|
export declare function PageTitleBackRow({ onBack, hideActions: _hideActions, label, children, }: {
|
|
28
44
|
onBack?: () => void;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { BladeTheme } from '../utils/themes';
|
|
2
|
+
/**
|
|
3
|
+
* RN mirror of the web `PageSkeletons`: page loading skeletons shaped like each
|
|
4
|
+
* UI system's loaded page, so nothing jumps when the data lands.
|
|
5
|
+
*/
|
|
6
|
+
export type SkeletonLayout = 'kit' | 'shelf';
|
|
7
|
+
/** CategoryPickerPage grid. Shelf: one banner per category, filling the row from 300px each. */
|
|
8
|
+
export declare function CategoryPageSkeleton({ theme, layout, categories }: {
|
|
9
|
+
theme: BladeTheme;
|
|
10
|
+
layout: SkeletonLayout;
|
|
11
|
+
categories: readonly string[];
|
|
12
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
/** GameEntries. Kit: underline tabs + collapsed cards. Shelf: pill tab track + summary rows with pips. */
|
|
14
|
+
export declare function EntriesPageSkeleton({ theme, layout, rows }: {
|
|
15
|
+
theme: BladeTheme;
|
|
16
|
+
layout: SkeletonLayout;
|
|
17
|
+
rows?: number;
|
|
18
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
/** EventPickerPage — the intro line, then fixture cards; the matchup stacks on phones. */
|
|
20
|
+
export declare function EventPageSkeleton({ theme, count }: {
|
|
21
|
+
theme: BladeTheme;
|
|
22
|
+
count?: number;
|
|
23
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Proposition } from '../types';
|
|
3
|
+
import { BladeTheme } from '../../shared/themes';
|
|
4
|
+
import { PickGroup, SelectionCaps } from '../../shared/selection-caps';
|
|
5
|
+
import { Game } from '../../shared/types';
|
|
6
|
+
/** Stroked paths on a 24×24 box. */
|
|
7
|
+
export declare function PathIcon({ paths, size, strokeWidth, color }: {
|
|
8
|
+
paths: readonly string[];
|
|
9
|
+
size: number;
|
|
10
|
+
strokeWidth: number;
|
|
11
|
+
color: string;
|
|
12
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export interface PickGroupSectionProps {
|
|
14
|
+
theme: BladeTheme;
|
|
15
|
+
group: PickGroup;
|
|
16
|
+
selections: Record<number, 'yes' | 'no'>;
|
|
17
|
+
caps: SelectionCaps;
|
|
18
|
+
game?: Game | null;
|
|
19
|
+
/** Every proposition on offer, for working out which pick a swap replaces. */
|
|
20
|
+
pool: readonly Proposition[];
|
|
21
|
+
componentById?: ReadonlyMap<number, Proposition> | null;
|
|
22
|
+
pickOrder?: readonly number[];
|
|
23
|
+
/** Stretch to fill the card (the last group of a shelf card). */
|
|
24
|
+
last?: boolean;
|
|
25
|
+
/** One row. `swap` is set on a row a full limit folded: answering it swaps it in, resolving the picks it replaces on the tap. */
|
|
26
|
+
renderRow: (prop: Proposition, opts: {
|
|
27
|
+
top: boolean;
|
|
28
|
+
swap?: () => readonly number[];
|
|
29
|
+
}) => React.ReactNode;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* One group of a match's questions (the line, the total, the players): a rounded rail tile (icon, label, the limit
|
|
33
|
+
* when there are more options than it allows) beside its rows. Once the limit is full, the rows it blocks fold away
|
|
34
|
+
* in place behind one tile; opened, each of them swaps in for the held pick. Every system's picks page draws it.
|
|
35
|
+
* Web twin: PickGroupSection in the web components.
|
|
36
|
+
*/
|
|
37
|
+
export declare function PickGroupSection({ theme, group, selections, caps, game, pool, componentById, pickOrder, last, renderRow }: PickGroupSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -13,10 +13,6 @@ export declare function LockIcon({ size, color, }: {
|
|
|
13
13
|
size?: number;
|
|
14
14
|
color?: string;
|
|
15
15
|
}): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
export declare function FilterIcon({ size, color, }: {
|
|
17
|
-
size?: number;
|
|
18
|
-
color?: string;
|
|
19
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
20
16
|
export declare function YesNoCategoryLabel({ label, category, icon, theme, disabled, }: {
|
|
21
17
|
label: string;
|
|
22
18
|
category: string;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ViewStyle } from 'react-native';
|
|
2
|
+
import { BladeTheme } from '../../shared/themes';
|
|
3
|
+
import { SelectionVariant } from '../../shared/selection-variants';
|
|
4
|
+
/**
|
|
5
|
+
* Picks-screen loading skeletons, one per layout the loaded list can take —
|
|
6
|
+
* twin of the web `PicksSkeletons`. Each copies its layout's rails, shells and
|
|
7
|
+
* row anatomy from the RN SportSelector, SportRail, ChipRail,
|
|
8
|
+
* SelectionVariantList and DenseUi (which differ from web where those do), so
|
|
9
|
+
* nothing moves when the propositions land.
|
|
10
|
+
*/
|
|
11
|
+
export type PicksSkeletonLayout = 'kit' | 'split' | 'split-inline' | 'compact' | 'shelf' | 'call' | 'dense';
|
|
12
|
+
/** The layout SportSelector draws for the selection variant it resolved. */
|
|
13
|
+
export declare function picksSkeletonLayout(variant?: SelectionVariant): PicksSkeletonLayout;
|
|
14
|
+
export interface PicksSkeletonProps {
|
|
15
|
+
theme: BladeTheme;
|
|
16
|
+
/** The selection layout SportSelector resolved; undefined is the packaged list. */
|
|
17
|
+
variant?: SelectionVariant;
|
|
18
|
+
/** Sports on offer when the screen carries the sport step; undefined when it has none. */
|
|
19
|
+
sports?: number;
|
|
20
|
+
/** The rail's heading line carries controls (the Swipe-all pill). */
|
|
21
|
+
actions?: boolean;
|
|
22
|
+
/** The packaged list's matchup header fill — it follows the game colour. */
|
|
23
|
+
headerBg?: string;
|
|
24
|
+
/** The packaged list's raised-card shadow. */
|
|
25
|
+
shadow?: ViewStyle;
|
|
26
|
+
/** The host draws club badges. */
|
|
27
|
+
logos?: boolean;
|
|
28
|
+
/** Fixtures carry a Swipe pill. */
|
|
29
|
+
swipe?: boolean;
|
|
30
|
+
}
|
|
31
|
+
export declare function PicksSkeleton({ theme, variant, sports, actions, headerBg, shadow, logos, swipe, }: PicksSkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -10,7 +10,9 @@ import { BladeTheme, BladeThemeSet, ColorScheme } from '../utils/themes';
|
|
|
10
10
|
import { SportDisplayNameOverrides, CategoryDisplayNameOverrides } from '../utils';
|
|
11
11
|
import { RenderTeamLogo, RenderPropositionSilk, GamePermittedRule, GameCategory } from '../../shared/types';
|
|
12
12
|
import { SelectionVariant } from '../../shared/selection-variants';
|
|
13
|
+
import { SwipeVariant } from '../../shared/swipe-deck';
|
|
13
14
|
import { useCorrelationSteering } from '../../shared/correlation-steering';
|
|
15
|
+
import { QuickPickMode } from '../../shared/selection-caps';
|
|
14
16
|
import { SameGameMultiEvent } from '../../shared/same-game-multi';
|
|
15
17
|
export interface PlaceEntryContextValue {
|
|
16
18
|
gameLibrary: GameLibrary<PlaceEntryContextValue>;
|
|
@@ -45,6 +47,8 @@ export interface PlaceEntryContextValue {
|
|
|
45
47
|
showCorrelationDebug: boolean;
|
|
46
48
|
canSelectAnswer: (id: number, answer: 'yes' | 'no') => boolean;
|
|
47
49
|
answeredCount: number;
|
|
50
|
+
/** Answered ids in the order they were picked — `selections` keys are numeric, so they sort. */
|
|
51
|
+
pickOrder: number[];
|
|
48
52
|
betAmount: number;
|
|
49
53
|
setBetAmount: (v: number) => void;
|
|
50
54
|
expectedCorrect: number;
|
|
@@ -67,7 +71,12 @@ export interface PlaceEntryContextValue {
|
|
|
67
71
|
userBalance?: number;
|
|
68
72
|
hasSufficientBalance: boolean;
|
|
69
73
|
refreshUserBalance: () => Promise<void>;
|
|
70
|
-
|
|
74
|
+
/** Two-stage: the first call arms `confirmPending`, the second places. Resolves true once placed. */
|
|
75
|
+
handleSubmit: () => Promise<boolean>;
|
|
76
|
+
/** The first Place entry press landed — buttons read "Confirm entry" until placed or the entry changes. */
|
|
77
|
+
confirmPending: boolean;
|
|
78
|
+
/** Integrator's own entry id, shown on the success page in place of BLADE's `#id`. */
|
|
79
|
+
entryReference?: string;
|
|
71
80
|
selectGame: (game: Game) => void;
|
|
72
81
|
goToSportSelection: () => void;
|
|
73
82
|
goToConfirmation: () => void;
|
|
@@ -78,7 +87,23 @@ export interface PlaceEntryContextValue {
|
|
|
78
87
|
correlationTargetCount: number;
|
|
79
88
|
toggleSelection: (id: number, answer: 'yes' | 'no') => void;
|
|
80
89
|
quickPickGame: (game: Game, count: number, stake?: number) => void;
|
|
81
|
-
|
|
90
|
+
/** Fills the empty slots only — existing picks stay. Returns the total picked after. */
|
|
91
|
+
/** fill (default) keeps the player's picks and fills or trims to `count`; replace randomises the whole card. */
|
|
92
|
+
quickPickSelections: (count: number, mode?: QuickPickMode) => number;
|
|
93
|
+
/** Ids QuickPick answered that still hold its answer, so rows can say so. */
|
|
94
|
+
quickPickedIds: number[];
|
|
95
|
+
/** Clear picks: drop every pick at once. Undoable. */
|
|
96
|
+
clearSelections: () => void;
|
|
97
|
+
/** Pick `id` in place of `out` (the picks holding its slot) as one undoable change. */
|
|
98
|
+
swapSelection: (id: number, answer: 'yes' | 'no', out: readonly number[]) => void;
|
|
99
|
+
/** The last bulk change (QuickPick fill, Clear picks) while it can still be taken back. */
|
|
100
|
+
/** The last bulk change, for the snackbar: what QuickPick or Clear picks did. */
|
|
101
|
+
selectionUndo: {
|
|
102
|
+
message: string;
|
|
103
|
+
kind: 'quickpick' | 'clear' | 'swap';
|
|
104
|
+
} | null;
|
|
105
|
+
undoSelectionChange: () => void;
|
|
106
|
+
dismissSelectionUndo: () => void;
|
|
82
107
|
selectedCategory: string | null;
|
|
83
108
|
setSelectedCategory: (category: string | null) => void;
|
|
84
109
|
selectedSport: string | null;
|
|
@@ -102,6 +127,8 @@ export interface PlaceEntryContextValue {
|
|
|
102
127
|
gameVariant?: GameVariant;
|
|
103
128
|
/** Drop the per-fixture swipe deck the variant layouts offer. */
|
|
104
129
|
disableEventSwipe?: boolean;
|
|
130
|
+
/** Look of the swipe view: the card `stack` (default) or the one-question `run`. */
|
|
131
|
+
swipeVariant?: SwipeVariant;
|
|
105
132
|
/** Let players star a sport in the rail to pin it up front (per device). Off by default. */
|
|
106
133
|
enableSportFavourites?: boolean;
|
|
107
134
|
filterSport?: string;
|
|
@@ -165,11 +192,15 @@ export interface PlaceEntryProviderProps {
|
|
|
165
192
|
/** Game discovery layout; native supports `shelf`, with web-only layouts falling back. */
|
|
166
193
|
gameVariant?: GameVariant;
|
|
167
194
|
disableEventSwipe?: boolean;
|
|
195
|
+
/** Look of the swipe view: the card `stack` (default) or the one-question `run`. */
|
|
196
|
+
swipeVariant?: SwipeVariant;
|
|
168
197
|
/** Let players star a sport in the rail to pin it up front (per device). Off by default. */
|
|
169
198
|
yesNoLabels?: YesNoLabels;
|
|
170
199
|
enableSportFavourites?: boolean;
|
|
171
200
|
onEntryPlaced?: (entry: GameEntry) => void;
|
|
172
201
|
onBeforeSubmit?: (betAmount: number) => void | Promise<void>;
|
|
202
|
+
/** Integrator's own entry id — shown where "Entry #id successfully submitted" names the entry. Set it from `onEntryPlaced`. */
|
|
203
|
+
entryReference?: string;
|
|
173
204
|
onCancel?: () => void;
|
|
174
205
|
onShare?: (data: ShareData) => void;
|
|
175
206
|
onRecharge?: () => void;
|
|
@@ -179,4 +210,4 @@ export interface PlaceEntryProviderProps {
|
|
|
179
210
|
sportDisplayNames?: SportDisplayNameOverrides;
|
|
180
211
|
categoryDisplayNames?: CategoryDisplayNameOverrides;
|
|
181
212
|
}
|
|
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;
|
|
213
|
+
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, swipeVariant, enableSportFavourites, yesNoLabels, onEntryPlaced, onBeforeSubmit, entryReference, onCancel, onShare, onRecharge, onClearEventFilter, screenSize, howToPlayMarkdown: howToPlayMarkdownProp, sportDisplayNames, categoryDisplayNames, }: PlaceEntryProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -16,7 +16,6 @@ export interface FilterChipCarouselProps {
|
|
|
16
16
|
bodyFont?: string;
|
|
17
17
|
}
|
|
18
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;
|
|
20
19
|
export interface FilterChipRowProps extends FilterChipGroup {
|
|
21
20
|
theme: BladeTheme;
|
|
22
21
|
bodyFont?: string;
|