@simple-parlay/components 1.30.6-pre → 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 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +653 -451
- package/dist/react/components/CallGameCatalogue.d.ts +4 -0
- package/dist/react/components/CallPayoutTable.d.ts +12 -0
- package/dist/react/components/CallTicketBuilder.d.ts +3 -0
- package/dist/react/components/CorrelationChoicesSkeleton.d.ts +4 -0
- package/dist/react/components/CorrelationPricingDebug.d.ts +2 -0
- package/dist/react/components/CorrelationPropPlaceholder.d.ts +13 -0
- package/dist/react/components/DenseGameCatalogue.d.ts +2 -0
- package/dist/react/components/DenseUi.d.ts +30 -0
- package/dist/react/components/EntriesPage.d.ts +0 -4
- package/dist/react/components/EntrySubmission.d.ts +1 -1
- package/dist/react/components/EventSwipeModal.d.ts +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 +3 -1
- package/dist/react/components/GameSelector.d.ts +1 -19
- 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 +11 -0
- package/dist/react/components/GameSkeletons.d.ts +24 -0
- package/dist/react/components/GameVariantCatalogue.d.ts +6 -0
- package/dist/react/components/HowToPlayButton.d.ts +5 -2
- 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 +5 -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 +75 -6
- package/dist/react/components/PlaybookChooser.d.ts +7 -0
- package/dist/react/components/PropositionFilters.d.ts +2 -1
- package/dist/react/components/PropositionParts.d.ts +38 -0
- package/dist/react/components/QuickPickButton.d.ts +26 -1
- package/dist/react/components/QuickPickMenu.d.ts +19 -1
- package/dist/react/components/SafetyNetPage.d.ts +4 -1
- package/dist/react/components/ScrollShelf.d.ts +5 -1
- package/dist/react/components/SelectionReview.d.ts +1 -1
- 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 +13 -7
- package/dist/react/components/SportSelector.d.ts +2 -24
- 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 +54 -13
- package/dist/react/index.cjs +1 -0
- package/dist/react/index.d.ts +46 -19
- package/dist/react/index.mjs +653 -451
- package/dist/react/utils/dom.d.ts +7 -0
- package/dist/react/utils/index.d.ts +1 -1
- package/dist/react/utils/themes.d.ts +1 -1
- package/dist/react-native/components/CallGameCatalogue.d.ts +17 -0
- package/dist/react-native/components/CallPayoutTable.d.ts +12 -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 +52 -0
- 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 +4 -1
- package/dist/react-native/components/GameSelector.d.ts +1 -20
- package/dist/react-native/components/GameSetupPage.d.ts +5 -14
- package/dist/react-native/components/GameShelfCatalogue.d.ts +2 -0
- package/dist/react-native/components/GameSkeletons.d.ts +23 -0
- package/dist/react-native/components/HowToPlayButton.d.ts +5 -2
- package/dist/react-native/components/LoadingIndicators.d.ts +23 -11
- 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 +5 -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 +68 -6
- package/dist/react-native/components/PlaybookChooser.d.ts +7 -0
- package/dist/react-native/components/PropositionFilters.d.ts +2 -1
- package/dist/react-native/components/PropositionParts.d.ts +35 -0
- package/dist/react-native/components/QuickPickButton.d.ts +26 -1
- package/dist/react-native/components/QuickPickMenu.d.ts +20 -1
- package/dist/react-native/components/SafetyNetPage.d.ts +4 -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/SelectionsPage.d.ts +6 -2
- package/dist/react-native/components/ShelfKit.d.ts +62 -0
- package/dist/react-native/components/SportRail.d.ts +13 -7
- package/dist/react-native/components/SportSelector.d.ts +2 -29
- 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 +93 -12
- package/dist/react-native/index.cjs +1 -0
- package/dist/react-native/index.d.ts +46 -19
- package/dist/react-native/index.mjs +561 -437
- package/dist/react-native/utils/index.d.ts +1 -1
- package/dist/react-native/utils/themes.d.ts +1 -1
- package/dist/shared/api-client.d.ts +4 -3
- package/dist/shared/button-ui.d.ts +62 -0
- package/dist/shared/call-presentation.d.ts +28 -0
- package/dist/shared/canvas.d.ts +14 -0
- package/dist/shared/correlation-steering.d.ts +56 -0
- package/dist/shared/date-filters.d.ts +0 -22
- package/dist/shared/dense-ui.d.ts +54 -0
- package/dist/shared/entry-progress.d.ts +38 -0
- package/dist/shared/game-artwork.d.ts +63 -0
- package/dist/shared/game-flow.d.ts +34 -1
- package/dist/shared/game-icons.d.ts +8 -4
- 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 +79 -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 +82 -4
- package/dist/shared/selection-caps.d.ts +124 -0
- package/dist/shared/selection-variants.d.ts +10 -1
- 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 +11 -1
- package/dist/shared/themes.d.ts +70 -8
- package/dist/shared/tokens.d.ts +7 -0
- package/dist/shared/types.d.ts +49 -3
- package/dist/shared/ui-system.d.ts +70 -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 +20 -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/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/SixAgainPage.d.ts +0 -14
- package/dist/react-native/index.js +0 -1
|
@@ -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
|
+
/** Toolbar layout: 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;
|
|
@@ -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;
|
|
@@ -1,11 +1,22 @@
|
|
|
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 { SwipeVariant } from '../../shared/swipe-deck';
|
|
14
|
+
import { useCorrelationSteering } from '../../shared/correlation-steering';
|
|
15
|
+
import { QuickPickMode } from '../../shared/selection-caps';
|
|
7
16
|
import { SameGameMultiEvent } from '../../shared/same-game-multi';
|
|
8
17
|
export interface PlaceEntryContextValue {
|
|
18
|
+
gameLibrary: GameLibrary<PlaceEntryContextValue>;
|
|
19
|
+
getGameFlow: (game: Game | null | undefined) => GameFlow;
|
|
9
20
|
theme: BladeTheme;
|
|
10
21
|
bodyFont: string;
|
|
11
22
|
headingFont: string;
|
|
@@ -14,6 +25,8 @@ export interface PlaceEntryContextValue {
|
|
|
14
25
|
/** Component legs of composite propositions, by id — for per-leg event labels. */
|
|
15
26
|
compositeComponentById: ReadonlyMap<number, Proposition>;
|
|
16
27
|
propositionsForCategoryPicker: Proposition[];
|
|
28
|
+
/** 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. */
|
|
29
|
+
availableCategories: EntryCategory[];
|
|
17
30
|
propositionsForSportPicker: Proposition[];
|
|
18
31
|
sportsForSelectedGame: string[];
|
|
19
32
|
/** The sports the switcher can offer, busiest first, with their pick counts. */
|
|
@@ -31,7 +44,11 @@ export interface PlaceEntryContextValue {
|
|
|
31
44
|
selectedPropositionIds: number[];
|
|
32
45
|
selectedPropositions: Proposition[];
|
|
33
46
|
selectionValid: boolean;
|
|
47
|
+
showCorrelationDebug: boolean;
|
|
48
|
+
canSelectAnswer: (id: number, answer: 'yes' | 'no') => boolean;
|
|
34
49
|
answeredCount: number;
|
|
50
|
+
/** Answered ids in the order they were picked — `selections` keys are numeric, so they sort. */
|
|
51
|
+
pickOrder: number[];
|
|
35
52
|
betAmount: number;
|
|
36
53
|
setBetAmount: (v: number) => void;
|
|
37
54
|
expectedCorrect: number;
|
|
@@ -42,6 +59,8 @@ export interface PlaceEntryContextValue {
|
|
|
42
59
|
selectedRuleId: number | null;
|
|
43
60
|
setSelectedRuleId: (id: number | null) => void;
|
|
44
61
|
selectedRule: GamePermittedRule | null;
|
|
62
|
+
/** Read-only quote for the optional Call setup and ticket panels. */
|
|
63
|
+
previewCallPayouts?: PreviewCallPayouts;
|
|
45
64
|
winningCounts: number[];
|
|
46
65
|
payouts: Record<number, number>;
|
|
47
66
|
overloadPayouts: Record<number, number>;
|
|
@@ -52,15 +71,39 @@ export interface PlaceEntryContextValue {
|
|
|
52
71
|
userBalance?: number;
|
|
53
72
|
hasSufficientBalance: boolean;
|
|
54
73
|
refreshUserBalance: () => Promise<void>;
|
|
55
|
-
|
|
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;
|
|
56
80
|
selectGame: (game: Game) => void;
|
|
57
81
|
goToSportSelection: () => void;
|
|
58
82
|
goToConfirmation: () => void;
|
|
59
83
|
goBack: () => void;
|
|
60
84
|
reset: () => void;
|
|
61
85
|
clearSelectedGame: () => void;
|
|
86
|
+
correlation: ReturnType<typeof useCorrelationSteering>;
|
|
87
|
+
correlationTargetCount: number;
|
|
62
88
|
toggleSelection: (id: number, answer: 'yes' | 'no') => void;
|
|
63
89
|
quickPickGame: (game: Game, count: number, stake?: number) => void;
|
|
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;
|
|
64
107
|
selectedCategory: string | null;
|
|
65
108
|
setSelectedCategory: (category: string | null) => void;
|
|
66
109
|
selectedSport: string | null;
|
|
@@ -76,10 +119,16 @@ export interface PlaceEntryContextValue {
|
|
|
76
119
|
disableQuickPick: boolean;
|
|
77
120
|
renderTeamLogo?: RenderTeamLogo;
|
|
78
121
|
renderPropositionSilk?: RenderPropositionSilk;
|
|
79
|
-
/**
|
|
122
|
+
/** Optional presentation. Existing UI remains the default. */
|
|
123
|
+
uiVariant?: UiVariant;
|
|
124
|
+
/** Proposition layout override; undefined follows the UI variant. */
|
|
80
125
|
selectionVariant?: SelectionVariant;
|
|
126
|
+
/** Game discovery layout; native supports `shelf`, with web-only layouts falling back. */
|
|
127
|
+
gameVariant?: GameVariant;
|
|
81
128
|
/** Drop the per-fixture swipe deck the variant layouts offer. */
|
|
82
129
|
disableEventSwipe?: boolean;
|
|
130
|
+
/** Look of the swipe view: the card `stack` (default) or the one-question `run`. */
|
|
131
|
+
swipeVariant?: SwipeVariant;
|
|
83
132
|
/** Let players star a sport in the rail to pin it up front (per device). Off by default. */
|
|
84
133
|
enableSportFavourites?: boolean;
|
|
85
134
|
filterSport?: string;
|
|
@@ -87,7 +136,7 @@ export interface PlaceEntryContextValue {
|
|
|
87
136
|
initialEventId?: string;
|
|
88
137
|
initialEventLabel?: string;
|
|
89
138
|
sportBaseKey?: string;
|
|
90
|
-
gameCategory?:
|
|
139
|
+
gameCategory?: GameCategory;
|
|
91
140
|
screenSize: ScreenSize;
|
|
92
141
|
eventFilterActive: boolean;
|
|
93
142
|
eventFilterLabel?: string;
|
|
@@ -108,6 +157,10 @@ declare const PlaceEntryContext: React.Context<PlaceEntryContextValue | null>;
|
|
|
108
157
|
export { PlaceEntryContext };
|
|
109
158
|
export declare function usePlaceEntry(): PlaceEntryContextValue;
|
|
110
159
|
export interface PlaceEntryProviderProps {
|
|
160
|
+
/** Additional game implementations. Perfect Pick, H2H and Safety Net are built in. */
|
|
161
|
+
gameLibrary?: GameLibrary<PlaceEntryContextValue>;
|
|
162
|
+
/** Show calculated Correlation fair odds for development. Never enable in player-facing builds. */
|
|
163
|
+
showCorrelationDebug?: boolean;
|
|
111
164
|
apiUrl: string;
|
|
112
165
|
apiKey?: string;
|
|
113
166
|
fetchImpl?: typeof fetch;
|
|
@@ -122,7 +175,7 @@ export interface PlaceEntryProviderProps {
|
|
|
122
175
|
demoEntries?: GameEntry[];
|
|
123
176
|
/** Demo dividend/max-payout data (the /max-payout fetch is skipped for demo data). */
|
|
124
177
|
demoMaxPayouts?: Record<number, TopPayoutsResponse>;
|
|
125
|
-
gameCategory?:
|
|
178
|
+
gameCategory?: GameCategory;
|
|
126
179
|
jurisdiction?: string;
|
|
127
180
|
initialGameId?: number;
|
|
128
181
|
filterSport?: string;
|
|
@@ -133,12 +186,21 @@ export interface PlaceEntryProviderProps {
|
|
|
133
186
|
disableQuickPick?: boolean;
|
|
134
187
|
renderTeamLogo?: RenderTeamLogo;
|
|
135
188
|
renderPropositionSilk?: RenderPropositionSilk;
|
|
189
|
+
/** Optional presentation. Existing UI remains the default. */
|
|
190
|
+
uiVariant?: UiVariant;
|
|
136
191
|
selectionVariant?: SelectionVariant;
|
|
192
|
+
/** Game discovery layout; native supports `shelf`, with web-only layouts falling back. */
|
|
193
|
+
gameVariant?: GameVariant;
|
|
137
194
|
disableEventSwipe?: boolean;
|
|
195
|
+
/** Look of the swipe view: the card `stack` (default) or the one-question `run`. */
|
|
196
|
+
swipeVariant?: SwipeVariant;
|
|
138
197
|
/** Let players star a sport in the rail to pin it up front (per device). Off by default. */
|
|
198
|
+
yesNoLabels?: YesNoLabels;
|
|
139
199
|
enableSportFavourites?: boolean;
|
|
140
200
|
onEntryPlaced?: (entry: GameEntry) => void;
|
|
141
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;
|
|
142
204
|
onCancel?: () => void;
|
|
143
205
|
onShare?: (data: ShareData) => void;
|
|
144
206
|
onRecharge?: () => void;
|
|
@@ -148,4 +210,4 @@ export interface PlaceEntryProviderProps {
|
|
|
148
210
|
sportDisplayNames?: SportDisplayNameOverrides;
|
|
149
211
|
categoryDisplayNames?: CategoryDisplayNameOverrides;
|
|
150
212
|
}
|
|
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;
|
|
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;
|
|
@@ -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,9 +6,10 @@ export interface FilterChipOption {
|
|
|
6
6
|
export interface FilterChipGroup {
|
|
7
7
|
label?: string;
|
|
8
8
|
options: FilterChipOption[];
|
|
9
|
-
value: string | null;
|
|
9
|
+
value: string | null | string[];
|
|
10
10
|
onChange: (value: string | null) => void;
|
|
11
11
|
}
|
|
12
|
+
export declare function isChipActive(groupValue: FilterChipGroup['value'], optValue: string | null): boolean;
|
|
12
13
|
export interface FilterChipCarouselProps {
|
|
13
14
|
groups: FilterChipGroup[];
|
|
14
15
|
theme: BladeTheme;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Proposition, RenderTeamLogo, SportSelectorProps } from '../../shared/types';
|
|
3
|
+
import { BladeTheme } from '../../shared/themes';
|
|
4
|
+
/** A header key names two teams when it splits on " vs " — `MatchupTeams`' own test. */
|
|
5
|
+
export declare function isMatchupKey(key?: string | null): boolean;
|
|
6
|
+
/** The runner's silk, for single-event rows; under an "A vs B" header the logos are already up top. */
|
|
7
|
+
export declare function runnerLogo(prop: Proposition, renderTeamLogo: SportSelectorProps['renderTeamLogo'], headerKey?: string | null): React.ReactNode;
|
|
8
|
+
export declare function CompositePropositionText({ prop, colors: c, size, componentById, textStyle, textColor, renderTeamLogo, theme, }: {
|
|
9
|
+
prop: Proposition;
|
|
10
|
+
colors: {
|
|
11
|
+
primary: string;
|
|
12
|
+
text: string;
|
|
13
|
+
textMuted?: string;
|
|
14
|
+
textAltMuted?: string;
|
|
15
|
+
backgroundAlt?: string;
|
|
16
|
+
border?: string;
|
|
17
|
+
};
|
|
18
|
+
size?: 'sm' | 'md';
|
|
19
|
+
componentById?: ReadonlyMap<number, Proposition>;
|
|
20
|
+
/** Replaces the size-derived type — the variant layouts set their own. */
|
|
21
|
+
textStyle?: {
|
|
22
|
+
fontSize: number;
|
|
23
|
+
fontWeight: '400' | '500' | '600' | '700';
|
|
24
|
+
lineHeight?: number;
|
|
25
|
+
textAlign?: 'left' | 'center';
|
|
26
|
+
};
|
|
27
|
+
/** Replaces `colors.text` on the question itself, legs included. */
|
|
28
|
+
textColor?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Supplied, a leg names its fixture with the two club badges instead of a
|
|
31
|
+
* text chip — far lighter in a row. Falls back to the chip without it.
|
|
32
|
+
*/
|
|
33
|
+
renderTeamLogo?: RenderTeamLogo;
|
|
34
|
+
theme?: BladeTheme;
|
|
35
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { StyleProp, ViewStyle } from 'react-native';
|
|
1
2
|
import { BladeTheme } from '../types';
|
|
2
3
|
export interface QuickPickButtonProps {
|
|
3
4
|
onPress: () => void;
|
|
@@ -7,5 +8,29 @@ export interface QuickPickButtonProps {
|
|
|
7
8
|
yesColor?: string;
|
|
8
9
|
noColor?: string;
|
|
9
10
|
theme?: BladeTheme;
|
|
11
|
+
menu?: boolean;
|
|
12
|
+
expanded?: boolean;
|
|
13
|
+
/** What a press will do, e.g. "Fill 6 for me". Shown by the deck style. */
|
|
14
|
+
hint?: string;
|
|
10
15
|
}
|
|
11
|
-
export
|
|
16
|
+
export interface QuickPickDeckButtonProps {
|
|
17
|
+
onPress: () => void;
|
|
18
|
+
onDoubleClick?: () => void;
|
|
19
|
+
/** What a press will do, e.g. "Fill 6 for me". */
|
|
20
|
+
hint?: string;
|
|
21
|
+
/** solid on its own; paper beside a main button, so that one stays the first choice. */
|
|
22
|
+
tone?: 'solid' | 'paper';
|
|
23
|
+
theme?: BladeTheme;
|
|
24
|
+
menu?: boolean;
|
|
25
|
+
expanded?: boolean;
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
style?: StyleProp<ViewStyle>;
|
|
28
|
+
}
|
|
29
|
+
/** QuickPick's shuffle mark. */
|
|
30
|
+
export declare function QuickPickIcon({ size, color }: {
|
|
31
|
+
size?: number;
|
|
32
|
+
color: string;
|
|
33
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
/** QuickPick as a small deck: the game icons' stacked tiles, an accent shuffle tile and a line saying what it will do. */
|
|
35
|
+
export declare function QuickPickDeckButton({ onPress, onDoubleClick, hint, tone, theme: themeProp, menu, expanded, disabled, style, }: QuickPickDeckButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
export declare function QuickPickButton({ onPress, onDoubleClick, label, size, yesColor, noColor, theme: themeProp, menu, expanded, hint, }: QuickPickButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import { TouchableOpacity } from 'react-native';
|
|
3
|
+
import { BladeTheme } from '../../shared/themes';
|
|
1
4
|
export interface QuickPickMenuColors {
|
|
2
5
|
background: string;
|
|
3
6
|
backgroundAlt: string;
|
|
@@ -6,6 +9,8 @@ export interface QuickPickMenuColors {
|
|
|
6
9
|
}
|
|
7
10
|
export interface QuickPickMenuProps {
|
|
8
11
|
counts: number[];
|
|
12
|
+
/** The size the card is on now, marked in the Shelf menu. */
|
|
13
|
+
current?: number;
|
|
9
14
|
onPick: (count: number) => void;
|
|
10
15
|
onDoubleAction?: () => void;
|
|
11
16
|
colors: QuickPickMenuColors;
|
|
@@ -13,5 +18,19 @@ export interface QuickPickMenuProps {
|
|
|
13
18
|
direction?: 'down' | 'up';
|
|
14
19
|
/** Themed elevation for the dropdown (pass `elevatedShadow(theme)`). */
|
|
15
20
|
menuShadow?: string;
|
|
21
|
+
/** Rounds the menu's corners to the theme's radius when set. */
|
|
22
|
+
theme?: BladeTheme;
|
|
23
|
+
/** What the trigger will do, shown by the deck QuickPick style. */
|
|
24
|
+
hint?: string;
|
|
25
|
+
/** "Fill the other 6": keep the player's picks, fill the empty slots. */
|
|
26
|
+
onFill?: () => void;
|
|
27
|
+
fillLabel?: string;
|
|
28
|
+
/** "Randomise all 8": throw the card away and pick it afresh. */
|
|
29
|
+
onRandomise?: () => void;
|
|
30
|
+
randomiseLabel?: string;
|
|
16
31
|
}
|
|
17
|
-
|
|
32
|
+
/** A list / menu row: the shared hoverTint over the row, nothing else. Web twin: MenuRow in the web QuickPickMenu. */
|
|
33
|
+
export declare function MenuRow({ theme: themeProp, style, ...rest }: ComponentProps<typeof TouchableOpacity> & {
|
|
34
|
+
theme?: BladeTheme;
|
|
35
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
export declare function QuickPickMenu({ counts, current, onPick, onDoubleAction, colors, align, direction, menuShadow, theme, hint, onFill, fillLabel, onRandomise, randomiseLabel }: QuickPickMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { SafetyNetConfig } from '../../shared/safety-net';
|
|
2
3
|
export interface SafetyNetPageProps {
|
|
3
4
|
onQuickPick?: () => void;
|
|
@@ -6,9 +7,11 @@ export interface SafetyNetPageProps {
|
|
|
6
7
|
hideTitle?: boolean;
|
|
7
8
|
config?: SafetyNetConfig | null;
|
|
8
9
|
backLabel?: string;
|
|
10
|
+
/** Replace the default game heading; pass null when the host supplies a header. */
|
|
11
|
+
header?: React.ReactNode;
|
|
9
12
|
}
|
|
10
13
|
export declare function SafetyNetPageTitle({ onBack, hideActions, }?: {
|
|
11
14
|
onBack?: () => void;
|
|
12
15
|
hideActions?: boolean;
|
|
13
16
|
}): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export declare function SafetyNetPage({ onQuickPick, onPickYourOwn, onBack, hideTitle, config: configOverride, backLabel, }: SafetyNetPageProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare function SafetyNetPage({ onQuickPick, onPickYourOwn, onBack, hideTitle, header, config: configOverride, backLabel, }: SafetyNetPageProps): 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;
|
|
@@ -6,7 +6,7 @@ export interface SelectionsPageProps {
|
|
|
6
6
|
onBack?: () => void;
|
|
7
7
|
/** Hide the built-in title section (use `<SelectionsPageTitle />` separately) */
|
|
8
8
|
hideTitle?: boolean;
|
|
9
|
-
/** Hide the built-in action buttons (use `<SelectionsPageActions />` separately) */
|
|
9
|
+
/** Hide the built-in action buttons (use `<SelectionsPageActions />` separately, with `<SelectionUndoSnackbar />` just above it) */
|
|
10
10
|
hideActions?: boolean;
|
|
11
11
|
defaultView?: SelectionsView;
|
|
12
12
|
view?: SelectionsView;
|
|
@@ -19,7 +19,11 @@ export declare function SelectionsPageTitle({ onBack, onNext, hideActions }?: {
|
|
|
19
19
|
onNext?: () => void;
|
|
20
20
|
hideActions?: boolean;
|
|
21
21
|
}): import("react/jsx-runtime").JSX.Element;
|
|
22
|
-
/**
|
|
22
|
+
/**
|
|
23
|
+
* What the last QuickPick or Clear picks did, with Undo: a white bar just above the dock, gone after 6s.
|
|
24
|
+
* Game Shelf picks only. Hosts that render `<SelectionsPageActions />` themselves mount this just above their dock.
|
|
25
|
+
*/
|
|
26
|
+
export declare function SelectionUndoSnackbar(): import("react/jsx-runtime").JSX.Element | null;
|
|
23
27
|
export declare function SelectionsPageActions({ onNext, onBack, hideButtons, }: {
|
|
24
28
|
onNext?: () => void;
|
|
25
29
|
onBack?: () => void;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { TouchableOpacity, StyleProp, ViewStyle, ViewProps } from 'react-native';
|
|
3
|
+
import { BladeTheme } from '../types';
|
|
4
|
+
import { DrawnCover } from '../../shared/shelf-covers';
|
|
5
|
+
import { ShelfPipState } from '../../shared/shelf-ui';
|
|
6
|
+
export declare function useShelfTheme(theme?: BladeTheme): BladeTheme;
|
|
7
|
+
/** A white card on the light page: hairline border, soft shadow, radius 16. */
|
|
8
|
+
export declare function ShelfCard({ theme: themeProp, padded, style, ...rest }: ViewProps & {
|
|
9
|
+
theme?: BladeTheme;
|
|
10
|
+
padded?: boolean;
|
|
11
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
/** The one action bar: a white card at the bottom of the page (RN has no sticky, so it closes the page). */
|
|
13
|
+
export declare function ShelfDock({ theme: themeProp, style, ...rest }: ViewProps & {
|
|
14
|
+
theme?: BladeTheme;
|
|
15
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export interface ShelfOptionProps {
|
|
17
|
+
theme?: BladeTheme;
|
|
18
|
+
selected: boolean;
|
|
19
|
+
/** A second, smaller line (a count or a detail); makes the option 52 tall. */
|
|
20
|
+
sub?: React.ReactNode;
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
onPress?: () => void;
|
|
23
|
+
accessibilityLabel?: string;
|
|
24
|
+
accessibilityRole?: 'button' | 'tab' | 'radio' | 'menuitem';
|
|
25
|
+
testID?: string;
|
|
26
|
+
style?: StyleProp<ViewStyle>;
|
|
27
|
+
children: React.ReactNode;
|
|
28
|
+
}
|
|
29
|
+
/** Every chip, filter, tab and option: teal with light text when chosen, white with a hairline when not. */
|
|
30
|
+
export declare function ShelfOption({ theme: themeProp, selected, sub, disabled, onPress, accessibilityLabel, accessibilityRole, testID, style, children }: ShelfOptionProps): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
/** One progress mark per pick: right fills teal, a miss is outlined, still to play is a hairline grey. */
|
|
32
|
+
export declare function ShelfPips({ theme: themeProp, states, label, style }: {
|
|
33
|
+
theme?: BladeTheme;
|
|
34
|
+
states: readonly ShelfPipState[];
|
|
35
|
+
label?: string;
|
|
36
|
+
style?: StyleProp<ViewStyle>;
|
|
37
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
38
|
+
/**
|
|
39
|
+
* A cover or banner's drawn art (`theme.shelf.coverStyle`): its pattern, tiles and mark. `frame` places
|
|
40
|
+
* the art box in px; inside it everything is a share of the box. Sits over its parent, full bleed.
|
|
41
|
+
* Web twin: DrawnArt in the web ShelfKit.
|
|
42
|
+
*/
|
|
43
|
+
export declare function DrawnArt({ drawn, frame, dim }: {
|
|
44
|
+
drawn: DrawnCover;
|
|
45
|
+
frame: {
|
|
46
|
+
left?: number;
|
|
47
|
+
right?: number;
|
|
48
|
+
top: number;
|
|
49
|
+
size: number;
|
|
50
|
+
};
|
|
51
|
+
dim?: boolean;
|
|
52
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
53
|
+
/**
|
|
54
|
+
* A borderless picture button (shelf cover, category banner): a press sinks it;
|
|
55
|
+
* hover and `lit` draw a 3px `ring` inside its edge. Web: the `.gs-item` CSS and
|
|
56
|
+
* ShelfCategoryBanner's ring overlay.
|
|
57
|
+
*/
|
|
58
|
+
export declare function ShelfArtButton({ ring, radius, lit, children, style, ...rest }: React.ComponentProps<typeof TouchableOpacity> & {
|
|
59
|
+
ring: string;
|
|
60
|
+
radius: number;
|
|
61
|
+
lit?: boolean;
|
|
62
|
+
}): 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 under the track — search and Swipe on the picks screen. */
|
|
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;
|