@simple-parlay/components 1.30.6-pre.9 → 2.0.0
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 -515
- package/dist/react/components/CallPayoutTable.d.ts +7 -1
- package/dist/react/components/CorrelationPropPlaceholder.d.ts +6 -1
- package/dist/react/components/DenseUi.d.ts +1 -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 +4 -0
- package/dist/react/components/GameCardParts.d.ts +28 -0
- package/dist/react/components/GameModeCard.d.ts +37 -6
- package/dist/react/components/GamePage.d.ts +4 -2
- package/dist/react/components/GameSelector.d.ts +1 -27
- package/dist/react/components/GameSetupPage.d.ts +5 -1
- package/dist/react/components/GameShelfCatalogue.d.ts +1 -7
- package/dist/react/components/GameShowcaseCatalogue.d.ts +4 -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 +52 -0
- 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 +35 -6
- 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 +37 -4
- 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 +27 -1
- package/dist/react/components/QuickPickMenu.d.ts +19 -1
- package/dist/react/components/SelectionsPage.d.ts +8 -4
- 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 +7 -3
- 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 +57 -12
- package/dist/react/index.cjs +1 -1
- package/dist/react/index.d.ts +14 -12
- package/dist/react/index.mjs +653 -515
- package/dist/react/utils/dom.d.ts +7 -0
- 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/CallTicketBuilder.d.ts +2 -0
- package/dist/react-native/components/DenseUi.d.ts +4 -10
- 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 +34 -5
- package/dist/react-native/components/GamePage.d.ts +3 -1
- package/dist/react-native/components/GameSelector.d.ts +1 -28
- package/dist/react-native/components/GameSetupPage.d.ts +4 -13
- package/dist/react-native/components/GameShelfCatalogue.d.ts +1 -6
- 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 +57 -0
- 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 +32 -9
- 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 +37 -4
- 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 +27 -1
- package/dist/react-native/components/QuickPickMenu.d.ts +20 -1
- package/dist/react-native/components/SelectionsPage.d.ts +7 -4
- 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 +7 -3
- package/dist/react-native/components/SwipeDeck.d.ts +43 -3
- package/dist/react-native/components/YesNoMultiLogo.d.ts +12 -0
- package/dist/react-native/components/_primitives/index.d.ts +92 -10
- package/dist/react-native/index.cjs +1 -1
- package/dist/react-native/index.d.ts +14 -12
- package/dist/react-native/index.mjs +559 -474
- package/dist/react-native/utils/themes.d.ts +1 -1
- package/dist/shared/button-ui.d.ts +65 -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 +14 -1
- package/dist/shared/date-filters.d.ts +0 -23
- package/dist/shared/dense-ui.d.ts +0 -1
- 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 +22 -0
- package/dist/shared/game-icons.d.ts +2 -1
- package/dist/shared/game-library.d.ts +30 -6
- package/dist/shared/game-shelf-presentation.d.ts +36 -1
- package/dist/shared/hooks.d.ts +1 -1
- package/dist/shared/selection-actions.d.ts +70 -4
- package/dist/shared/selection-caps.d.ts +67 -10
- package/dist/shared/selection-variants.d.ts +7 -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 +53 -10
- package/dist/shared/tokens.d.ts +7 -0
- package/dist/shared/types.d.ts +19 -4
- package/dist/shared/ui-system.d.ts +71 -0
- package/dist/shared/ui-variant.d.ts +5 -3
- package/dist/shared/utils.d.ts +4 -1
- package/package.json +1 -1
- package/dist/react/components/PerfectPickPage.d.ts +0 -22
- package/dist/react/components/RuleSetupPage.d.ts +0 -27
- package/dist/react-native/components/PerfectPickPage.d.ts +0 -20
- package/dist/react-native/components/RuleSetupPage.d.ts +0 -23
|
@@ -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,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;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { Game } from '../../shared/types';
|
|
2
3
|
import { BladeTheme } from '../../shared/themes';
|
|
3
4
|
import { CallPayoutView } from '../../shared/call-presentation';
|
|
4
5
|
interface Props {
|
|
6
|
+
header?: React.ReactNode;
|
|
5
7
|
game: Game;
|
|
6
8
|
theme: BladeTheme;
|
|
7
9
|
legs: number;
|
|
@@ -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;
|
|
@@ -45,8 +38,9 @@ export declare function DenseOutcome({ view, theme, compact, }: {
|
|
|
45
38
|
export declare function DenseSportControl({ actions }: {
|
|
46
39
|
actions?: React.ReactNode;
|
|
47
40
|
}): import("react/jsx-runtime").JSX.Element;
|
|
48
|
-
export declare function DenseHeader({ onBack, children, }: {
|
|
41
|
+
export declare function DenseHeader({ onBack, title, children, }: {
|
|
49
42
|
onBack?: () => void;
|
|
43
|
+
title?: string;
|
|
50
44
|
children?: React.ReactNode;
|
|
51
45
|
}): import("react/jsx-runtime").JSX.Element;
|
|
52
46
|
export declare function DenseSelectionHeader({ onBack }: {
|
|
@@ -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, aboveDock, }: 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;
|
|
@@ -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,40 @@ export declare function LegPips({ legs, prizeBall }: {
|
|
|
39
48
|
legs: number;
|
|
40
49
|
prizeBall?: boolean;
|
|
41
50
|
}): import("react/jsx-runtime").JSX.Element;
|
|
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 }: {
|
|
53
|
+
hovered?: boolean;
|
|
54
|
+
pressed?: boolean;
|
|
55
|
+
style?: StyleProp<ViewStyle>;
|
|
56
|
+
children: React.ReactNode;
|
|
57
|
+
onMouseEnter?: () => void;
|
|
58
|
+
onMouseLeave?: () => void;
|
|
59
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
42
60
|
/**
|
|
43
61
|
* Tap-to-play mode card — the Safety Net card, generalised. ONE press applies
|
|
44
62
|
* and continues; `children` renders below the divider (payout rows, notes).
|
|
45
63
|
*/
|
|
46
|
-
export declare function GameModeCard({ tile, label, stat, detail, onSelect, children, }: {
|
|
64
|
+
export declare function GameModeCard({ tile, label, stat, detail, body, ariaLabel, onSelect, children, }: {
|
|
47
65
|
/** Left tile, e.g. `<BrandChipTile iconUrl={...} />`. */
|
|
48
66
|
tile: React.ReactNode;
|
|
49
|
-
label
|
|
67
|
+
label?: string;
|
|
50
68
|
/** Short positioning hint chip, e.g. "Fastest". */
|
|
51
69
|
stat?: string;
|
|
52
70
|
detail?: string[];
|
|
71
|
+
body?: React.ReactNode;
|
|
72
|
+
ariaLabel?: string;
|
|
53
73
|
onSelect: () => void;
|
|
54
74
|
children?: React.ReactNode;
|
|
55
75
|
}): import("react/jsx-runtime").JSX.Element;
|
|
76
|
+
export declare function PlayModeCards({ iconUrl, pickLabel, pickDetail, quickDetail, onPickYourOwn, onQuickPick, style, }: {
|
|
77
|
+
iconUrl: string;
|
|
78
|
+
pickLabel?: string;
|
|
79
|
+
pickDetail: string[];
|
|
80
|
+
quickDetail: string[];
|
|
81
|
+
onPickYourOwn: () => void;
|
|
82
|
+
onQuickPick: () => void;
|
|
83
|
+
style?: StyleProp<ViewStyle>;
|
|
84
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
56
85
|
/**
|
|
57
86
|
* The sport step of a game's setup page — the one place in the flow the sport
|
|
58
87
|
* is chosen. Renders nothing when the game has a single sport, which is what
|
|
@@ -33,11 +33,13 @@ export interface GamePageProps {
|
|
|
33
33
|
showPerfectPickSetup?: boolean;
|
|
34
34
|
/** Show the Signature/Premier/Exclusive game-tier filter tabs above the grid */
|
|
35
35
|
showTierFilter?: boolean;
|
|
36
|
+
/** Hide the Showcase hero image. Accepted for web parity; native renders the shelf only, so it has no effect. */
|
|
37
|
+
disableImage?: boolean;
|
|
36
38
|
}
|
|
37
39
|
export declare function GamePageTitle({ onBack, hideActions, }?: {
|
|
38
40
|
onBack?: () => void;
|
|
39
41
|
hideActions?: boolean;
|
|
40
|
-
}): import("react/jsx-runtime").JSX.Element
|
|
42
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
41
43
|
export declare function GamePageActions({ onCancel, onSelectGame }: {
|
|
42
44
|
onCancel?: () => void;
|
|
43
45
|
onSelectGame?: () => void;
|
|
@@ -1,29 +1,2 @@
|
|
|
1
1
|
import { GameSelectorProps } from '../types';
|
|
2
|
-
|
|
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
|
-
export declare function GameSelector({ games: allGames, selectedGame, onSelectGame, loading, error, theme: themeProp, colorScheme, uiVariant: uiVariantProp, gameVariant, onBack, showTier, showCategory, showTierFilter, onPropositionCountChange, onPropositionCountSelected, onQuickPickGame, quickPickLoading, maxPayouts, }: GameSelectorProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function GameSelector({ games: allGames, selectedGame, onSelectGame, loading, error, theme: themeProp, colorScheme, uiVariant: uiVariantProp, gameVariant, showTier, showCategory, showTierFilter, onPropositionCountChange, onPropositionCountSelected, onQuickPickGame, quickPickLoading, maxPayouts, }: 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
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;
|
|
@@ -1,7 +1,2 @@
|
|
|
1
1
|
import { CallGameCatalogueProps } from '../../shared/dense-ui';
|
|
2
|
-
|
|
3
|
-
* Filterable cover grid with a mobile details sheet and a wide side preview.
|
|
4
|
-
*/
|
|
5
|
-
export declare function GameShelfCatalogue({ games, selectedGame, theme, onPlay, maxPayouts, quickPickLoading, onBack }: CallGameCatalogueProps & {
|
|
6
|
-
onBack?: () => void;
|
|
7
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
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;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { BladeTheme } from '../../shared/themes';
|
|
3
|
+
import { SelectionEvent } from '../../shared/selection-variants';
|
|
4
|
+
import { ShelfPage } from '../../shared/selection-actions';
|
|
5
|
+
import { RenderTeamLogo } from '../../shared/types';
|
|
6
|
+
export interface ChipRailItem {
|
|
7
|
+
key: string;
|
|
8
|
+
/** The compact label every chip shows (team codes, sport code). */
|
|
9
|
+
label: string;
|
|
10
|
+
/** Shown on the selected chip instead, while the rail has room for it. */
|
|
11
|
+
fullLabel?: string;
|
|
12
|
+
accessibilityLabel: string;
|
|
13
|
+
/** Picks held — the count after the label. */
|
|
14
|
+
count?: number;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
/** Marks either side of the label; `on` is whether the chip is selected. */
|
|
17
|
+
leading?: (on: boolean) => React.ReactNode;
|
|
18
|
+
trailing?: (on: boolean) => React.ReactNode;
|
|
19
|
+
}
|
|
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, }: {
|
|
39
|
+
theme: BladeTheme;
|
|
40
|
+
items: ChipRailItem[];
|
|
41
|
+
/** The chip that's on, and the one the edge buttons step from. */
|
|
42
|
+
activeKey?: string;
|
|
43
|
+
onSelect: (key: string) => void;
|
|
44
|
+
/** Names the edge buttons: "Next match". */
|
|
45
|
+
noun: string;
|
|
46
|
+
groupLabel: string;
|
|
47
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
48
|
+
/** The match selector — twin of the web `MatchRail`: one chip per fixture, team codes until selected. */
|
|
49
|
+
export declare function MatchRail({ theme, events, activeKey, picked, onSelect, racing, }: {
|
|
50
|
+
theme: BladeTheme;
|
|
51
|
+
events: SelectionEvent[];
|
|
52
|
+
activeKey?: string;
|
|
53
|
+
/** How many picks each fixture holds, for the count on its chip. */
|
|
54
|
+
picked: (event: SelectionEvent) => number;
|
|
55
|
+
onSelect: (key: string) => void;
|
|
56
|
+
racing?: boolean;
|
|
57
|
+
}): 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,22 +1,45 @@
|
|
|
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;
|
|
34
|
+
export declare function PageHeader({ title, onBack, backLabel, actions, children, leading, }: {
|
|
35
|
+
title: React.ReactNode;
|
|
36
|
+
onBack?: () => void;
|
|
37
|
+
backLabel?: React.ReactNode;
|
|
38
|
+
actions?: React.ReactNode;
|
|
39
|
+
children?: React.ReactNode;
|
|
40
|
+
/** Takes the back button's slot (the success page puts its check here). */
|
|
41
|
+
leading?: React.ReactNode;
|
|
42
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
20
43
|
export declare function PageTitleBackRow({ onBack, hideActions: _hideActions, label, children, }: {
|
|
21
44
|
onBack?: () => void;
|
|
22
45
|
/** @deprecated Back arrow visibility is controlled by `onBack` only */
|
|
@@ -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;
|