@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
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { CallGameCatalogueProps } from '../../shared/dense-ui';
|
|
2
|
+
export type { CallGameCatalogueProps } from '../../shared/dense-ui';
|
|
3
|
+
/** Catalogue discovery is local presentation state; only Play commits the game. */
|
|
4
|
+
export declare function CallGameCatalogue({ games, theme, onPlay, maxPayouts, quickPickLoading, showTier, showCategory }: CallGameCatalogueProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CallPayoutView } from '../../shared/call-presentation';
|
|
2
|
+
import { BladeTheme } from '../../shared/themes';
|
|
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 }: {
|
|
9
|
+
view: CallPayoutView;
|
|
10
|
+
theme: BladeTheme;
|
|
11
|
+
bare?: boolean;
|
|
12
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Holds a row back while the choices are re-priced. The first load has no
|
|
4
|
+
* quote to show yet, so it paints a skeleton over the original's dimensions.
|
|
5
|
+
* After that the rows on screen are the last quote's: they stay readable,
|
|
6
|
+
* dimmed, until the next one lands, so a tap never wipes the list.
|
|
7
|
+
*/
|
|
8
|
+
export declare function CorrelationPropPlaceholder({ id, kind, stretch, children }: {
|
|
9
|
+
id: number;
|
|
10
|
+
kind: 'text' | 'answers';
|
|
11
|
+
stretch?: boolean;
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { BladeTheme } from '../../shared/themes';
|
|
3
|
+
import { CallPayoutView } from '../../shared/call-presentation';
|
|
4
|
+
import { CallTicketBuilderProps, DenseTicketActionsProps } from '../../shared/dense-ui';
|
|
5
|
+
export declare function DenseSurface({ theme, children, className, }: {
|
|
6
|
+
theme: BladeTheme;
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
className?: string;
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare function DenseOutcome({ view, compact, }: {
|
|
11
|
+
view: CallPayoutView;
|
|
12
|
+
compact?: boolean;
|
|
13
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare function DenseSportControl({ actions }: {
|
|
15
|
+
actions?: React.ReactNode;
|
|
16
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
/** The Dense system's page header for a game: the shared `PageHeader` (bar layout) titled with the game. */
|
|
18
|
+
export declare function DenseHeader({ onBack, title, children, }: {
|
|
19
|
+
onBack?: () => void;
|
|
20
|
+
title?: string;
|
|
21
|
+
children?: React.ReactNode;
|
|
22
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export declare function DenseSelectionHeader({ onBack }: {
|
|
24
|
+
onBack?: () => void;
|
|
25
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export declare function DenseTicketBuilder(p: CallTicketBuilderProps & {
|
|
27
|
+
quotedView: CallPayoutView;
|
|
28
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
export type { DenseTicketActionsProps } from '../../shared/dense-ui';
|
|
30
|
+
export declare function DenseTicketActions(p: DenseTicketActionsProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -12,8 +12,4 @@ export declare function EntriesPageTitle({ className, onBack, hideActions, }: {
|
|
|
12
12
|
onBack?: () => void;
|
|
13
13
|
hideActions?: boolean;
|
|
14
14
|
}): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
/**
|
|
16
|
-
* Standalone page that shows past / pending entries.
|
|
17
|
-
* Must be rendered inside a `<PlaceEntryProvider>`.
|
|
18
|
-
*/
|
|
19
15
|
export declare function EntriesPage({ className, onSelectEntry, onBack, hideTitle, hideActions }: EntriesPageProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { EntrySubmissionProps } from '../types';
|
|
2
|
-
export declare function EntrySubmission({ game, propositions, selections, onToggleSelection, onRemoveSelection, onSubmit, onBack, loading, error, expectedCorrect, onExpectedCorrectChange, betAmount, onBetAmountChange, theme: themeProp, colorScheme, hideActions, winningCounts: winningCountsProp, payouts: payoutsProp, renderTeamLogo, showCustomAmount, betAmountLocked, betAmountLockedNote, canSubmit: canSubmitProp, authenticated, userBalance, onRecharge, boostBanner, }: EntrySubmissionProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function EntrySubmission({ game, propositions, selections, onToggleSelection, onRemoveSelection, onSubmit, onBack, loading, error, expectedCorrect, onExpectedCorrectChange, betAmount, onBetAmountChange, theme: themeProp, colorScheme, hideActions, winningCounts: winningCountsProp, payouts: payoutsProp, renderTeamLogo, componentById, showCustomAmount, betAmountLocked, betAmountLockedNote, canSubmit: canSubmitProp, confirming, authenticated, userBalance, onRecharge, boostBanner, }: EntrySubmissionProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -9,6 +9,10 @@ import { Proposition } from '../types';
|
|
|
9
9
|
*
|
|
10
10
|
* Native `<dialog>` carries the backdrop, focus trap and Esc-to-close.
|
|
11
11
|
*/
|
|
12
|
+
/** A card on its stack — the glyph on every Swipe button. RN twin in RN EventSwipeModal. */
|
|
13
|
+
export declare function SwipeIcon({ size }: {
|
|
14
|
+
size?: number;
|
|
15
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
12
16
|
export interface EventSwipeModalProps {
|
|
13
17
|
/** The fixture's answerable questions, in card order. */
|
|
14
18
|
propositions: Proposition[];
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
pydDividends?: {
|
|
8
|
+
dividend: number;
|
|
9
|
+
stakeFrom: number;
|
|
10
|
+
}[];
|
|
11
|
+
/** Makes each leg row play that many picks. */
|
|
12
|
+
onPlayCount?: (count: number) => void;
|
|
13
|
+
/** The game's bet limits — the example bet is clamped to them. */
|
|
14
|
+
minBet?: number;
|
|
15
|
+
maxBet?: number | null;
|
|
16
|
+
colors: any;
|
|
17
|
+
bodyFont: string | undefined;
|
|
18
|
+
headingFont: string | undefined;
|
|
19
|
+
theme?: BladeTheme;
|
|
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;
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
/** Shared
|
|
2
|
+
/** Shared kit for every game setup page: masthead, tiles, cards, motion. */
|
|
3
3
|
export declare function hexA(color: string, alpha: number): string;
|
|
4
|
-
|
|
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;
|
|
5
13
|
export declare function BrandChipTile({ iconUrl, size }: {
|
|
6
14
|
iconUrl: string;
|
|
7
15
|
size?: number;
|
|
@@ -11,11 +19,13 @@ export declare function BrandChipTile({ iconUrl, size }: {
|
|
|
11
19
|
* Eyebrow is desktop-only and the lockup shrinks on phones, so the picker
|
|
12
20
|
* starts near the top of the screen instead of ~180px down.
|
|
13
21
|
*/
|
|
14
|
-
export declare function GamePageHeader({ eyebrow, iconUrl, gameName, tagline, className, }: {
|
|
22
|
+
export declare function GamePageHeader({ eyebrow, iconUrl, gameName, subtitle, tagline, className, }: {
|
|
15
23
|
/** Uppercase kicker above the lockup. Hidden on phones — pass `null` to drop it everywhere. */
|
|
16
24
|
eyebrow?: string | null;
|
|
17
25
|
iconUrl: string;
|
|
18
26
|
gameName: string;
|
|
27
|
+
/** Small line under the lockup, e.g. "8 legs". */
|
|
28
|
+
subtitle?: string | null;
|
|
19
29
|
tagline?: string | null;
|
|
20
30
|
className?: string;
|
|
21
31
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -44,19 +54,40 @@ export declare function LegPips({ legs, prizeBall }: {
|
|
|
44
54
|
legs: number;
|
|
45
55
|
prizeBall?: boolean;
|
|
46
56
|
}): import("react/jsx-runtime").JSX.Element;
|
|
57
|
+
/** The setup kit's card. A tappable card passes its button's `hovered` / `pressed` (from `usePress`): border previews the primary, a press sinks it. RN twin: KitCard. */
|
|
58
|
+
export declare function KitCard({ hovered, pressed, className, style, children, }: {
|
|
59
|
+
/** @deprecated Hover comes from `hovered` / `pressed` now; this does nothing. */
|
|
60
|
+
interactive?: boolean;
|
|
61
|
+
hovered?: boolean;
|
|
62
|
+
pressed?: boolean;
|
|
63
|
+
className?: string;
|
|
64
|
+
style?: React.CSSProperties;
|
|
65
|
+
children: React.ReactNode;
|
|
66
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
47
67
|
/**
|
|
48
68
|
* Tap-to-play mode card — the Safety Net card, generalised. ONE click applies
|
|
49
69
|
* and continues; `children` renders below the divider (payout rows, notes).
|
|
50
70
|
*/
|
|
51
|
-
export declare function GameModeCard({ tile, label, stat, detail, onSelect, children, }: {
|
|
71
|
+
export declare function GameModeCard({ tile, label, stat, detail, body, ariaLabel, onSelect, children, }: {
|
|
52
72
|
/** Left tile, e.g. `<BrandChipTile iconUrl={...} />`. */
|
|
53
73
|
tile: React.ReactNode;
|
|
54
|
-
label
|
|
74
|
+
label?: string;
|
|
55
75
|
/** Short positioning hint chip, e.g. "Fastest". */
|
|
56
76
|
stat?: string;
|
|
57
77
|
detail?: string[];
|
|
78
|
+
body?: React.ReactNode;
|
|
79
|
+
ariaLabel?: string;
|
|
58
80
|
onSelect: () => void;
|
|
59
81
|
children?: React.ReactNode;
|
|
60
82
|
}): import("react/jsx-runtime").JSX.Element;
|
|
61
|
-
|
|
83
|
+
export declare function PlayModeCards({ iconUrl, pickLabel, pickDetail, quickDetail, onPickYourOwn, onQuickPick, className, }: {
|
|
84
|
+
iconUrl: string;
|
|
85
|
+
pickLabel?: string;
|
|
86
|
+
pickDetail: string[];
|
|
87
|
+
quickDetail: string[];
|
|
88
|
+
onPickYourOwn: () => void;
|
|
89
|
+
onQuickPick: () => void;
|
|
90
|
+
className?: string;
|
|
91
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
92
|
+
/** Scoped entrance motion for the setup kit — render once per page. */
|
|
62
93
|
export declare function GameModeKitStyles(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { GameVariant } from '../../shared/game-variants';
|
|
1
2
|
import { GameFlow } from '../../shared/game-flow';
|
|
2
3
|
export interface GamePageProps {
|
|
4
|
+
gameVariant?: GameVariant;
|
|
3
5
|
/** Called after a game is selected (e.g. navigate to selections page) */
|
|
4
6
|
onSelectGame?: () => void;
|
|
5
7
|
onGameSetup?: (flow: GameFlow) => void;
|
|
@@ -37,4 +39,4 @@ export declare function GamePageActions({ onCancel, className }: {
|
|
|
37
39
|
onSelectGame?: () => void;
|
|
38
40
|
className?: string;
|
|
39
41
|
}): import("react/jsx-runtime").JSX.Element | null;
|
|
40
|
-
export declare function GamePage({ onSelectGame, onGameSetup, onRuleSetup, onGameSetBet, onPickYourDividend, onLadder, onMirror, onSafetyNet, onQuickPick, onCancel, hideTitle, hideActions, showPerfectPickSetup, showTierFilter, className }: GamePageProps): import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
export declare function GamePage({ gameVariant, onSelectGame, onGameSetup, onRuleSetup, onGameSetBet, onPickYourDividend, onLadder, onMirror, onSafetyNet, onQuickPick, onCancel, hideTitle, hideActions, showPerfectPickSetup, showTierFilter, className }: GamePageProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,20 +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
|
-
pydDividends?: {
|
|
8
|
-
dividend: number;
|
|
9
|
-
stakeFrom: number;
|
|
10
|
-
}[];
|
|
11
|
-
/** Makes each leg row play that many picks. */
|
|
12
|
-
onPlayCount?: (count: number) => void;
|
|
13
|
-
/** The game's bet limits — the example bet is clamped to them. */
|
|
14
|
-
minBet?: number;
|
|
15
|
-
maxBet?: number | null;
|
|
16
|
-
colors: any;
|
|
17
|
-
bodyFont: string | undefined;
|
|
18
|
-
headingFont: string | undefined;
|
|
19
|
-
}): import("react/jsx-runtime").JSX.Element | null;
|
|
20
|
-
export declare function GameSelector({ games, selectedGame, onSelectGame, loading, error, theme: themeProp, colorScheme, showTier, showCategory, showTierFilter, onPropositionCountChange, onPropositionCountSelected, onQuickPickGame, 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, onlyListedGames, disableImage, }: GameSelectorProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,10 +4,14 @@ export interface GameSetupPageProps {
|
|
|
4
4
|
/** Called after Quick Pick fills the slip (navigate to the bet slip / confirm page). */
|
|
5
5
|
onQuickPick?: () => void;
|
|
6
6
|
onBack?: () => void;
|
|
7
|
-
/** Hide the built-in
|
|
7
|
+
/** Hide the built-in page header. */
|
|
8
8
|
hideTitle?: boolean;
|
|
9
9
|
/** Label for the back link (where "back" leads). @default 'Games' */
|
|
10
10
|
backLabel?: string;
|
|
11
11
|
className?: string;
|
|
12
12
|
}
|
|
13
|
-
export declare function GameSetupPage({ onPickYourOwn, onQuickPick, onBack, hideTitle, backLabel, className, }: GameSetupPageProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare function GameSetupPage({ onPickYourOwn, onQuickPick, onBack, hideTitle, backLabel, className, }: GameSetupPageProps): import("react/jsx-runtime").JSX.Element | null;
|
|
14
|
+
export declare function GameSetupPageTitle({ onBack, className }: {
|
|
15
|
+
onBack?: () => void;
|
|
16
|
+
className?: string;
|
|
17
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CallGameCatalogueProps } from '../../shared/dense-ui';
|
|
2
|
+
export interface GameShowcaseCatalogueProps extends CallGameCatalogueProps {
|
|
3
|
+
/** @deprecated Back lives in the page header now. */
|
|
4
|
+
onBack?: () => void;
|
|
5
|
+
/** Show only the given games, without dimmed tiles for curated games the API is not offering. */
|
|
6
|
+
onlyListedGames?: boolean;
|
|
7
|
+
/** Leave out the hero image. */
|
|
8
|
+
disableImage?: boolean;
|
|
9
|
+
}
|
|
10
|
+
/** A hero-led carousel of games with an all-games strip and a dividends view. Browsing is local; Press to play commits. */
|
|
11
|
+
export declare function GameShowcaseCatalogue({ games, theme, onPlay, maxPayouts, quickPickLoading, onlyListedGames, disableImage }: GameShowcaseCatalogueProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { BladeTheme } from '../../shared/themes';
|
|
2
|
+
import { UiSystemPages } from '../../shared/ui-system';
|
|
3
|
+
import { GameVariant } from '../../shared/game-variants';
|
|
4
|
+
import { UiVariant } from '../../shared/ui-variant';
|
|
5
|
+
import { ThemeSurfaceColors } from './LoadingIndicators';
|
|
6
|
+
/**
|
|
7
|
+
* Loading skeletons for each game-chooser layout. Each one copies its
|
|
8
|
+
* catalogue's container, grid, radii, gaps and line heights, so nothing jumps
|
|
9
|
+
* when the games arrive. Numbers come from the catalogue CSS they mirror.
|
|
10
|
+
*/
|
|
11
|
+
export type GameChooserLayout = UiSystemPages['games'] | GameVariant;
|
|
12
|
+
/**
|
|
13
|
+
* GameSelector's loading state: the skeleton of the layout that will replace
|
|
14
|
+
* it. `layout` is resolved exactly as GameSelector resolves it after loading.
|
|
15
|
+
*/
|
|
16
|
+
export declare function GameChooserSkeleton({ layout, uiVariant, theme, colors, count, showTierTabs, }: {
|
|
17
|
+
layout: GameChooserLayout;
|
|
18
|
+
uiVariant: UiVariant;
|
|
19
|
+
theme: BladeTheme;
|
|
20
|
+
colors: ThemeSurfaceColors;
|
|
21
|
+
/** Games already known, if any; each layout falls back to a screenful. */
|
|
22
|
+
count: number;
|
|
23
|
+
showTierTabs?: boolean;
|
|
24
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { GameVariant } from '../../shared/game-variants';
|
|
2
|
+
import { CallGameCatalogueProps } from '../../shared/dense-ui';
|
|
3
|
+
/** Browsing is local; only Continue commits a game to the host flow. */
|
|
4
|
+
export declare function GameVariantCatalogue({ variant, games, selectedGame, theme, onPlay, maxPayouts, quickPickLoading, tierFilter, showTier, showCategory }: CallGameCatalogueProps & {
|
|
5
|
+
variant: GameVariant;
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -31,10 +31,13 @@ export interface HowToPlayButtonProps {
|
|
|
31
31
|
extra?: React.ReactNode;
|
|
32
32
|
title?: string;
|
|
33
33
|
label?: string;
|
|
34
|
-
|
|
34
|
+
/** link: "How to play" as the Game Shelf quiet button. */
|
|
35
|
+
variant?: 'pill' | 'icon' | 'link';
|
|
36
|
+
/** Optional touch target size for compact layouts. */
|
|
37
|
+
touchSize?: number;
|
|
35
38
|
colors: HowToPlayModalProps['colors'];
|
|
36
39
|
bodyFont?: string;
|
|
37
40
|
headingFont?: string;
|
|
38
41
|
className?: string;
|
|
39
42
|
}
|
|
40
|
-
export declare function HowToPlayButton({ content, panel, theme, extra, title, label, variant, colors, bodyFont, headingFont, className, }: HowToPlayButtonProps): import("react/jsx-runtime").JSX.Element | null;
|
|
43
|
+
export declare function HowToPlayButton({ content, panel, theme, extra, title, label, variant, touchSize, colors, bodyFont, headingFont, className, }: HowToPlayButtonProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
import { BladeTheme } from '../../shared/themes';
|
|
2
3
|
export type ThemeSurfaceColors = {
|
|
3
4
|
textMuted: string;
|
|
4
5
|
border: string;
|
|
@@ -7,6 +8,7 @@ export type ThemeSurfaceColors = {
|
|
|
7
8
|
primary: string;
|
|
8
9
|
selectionCard?: string;
|
|
9
10
|
};
|
|
11
|
+
export declare function cardBackground(colors: ThemeSurfaceColors): string;
|
|
10
12
|
export declare function ThemeSpinner({ color, size, label, }: {
|
|
11
13
|
color: string;
|
|
12
14
|
size?: number;
|
|
@@ -16,60 +18,74 @@ export declare function ThemeButtonSpinner({ color, size, }: {
|
|
|
16
18
|
color?: string;
|
|
17
19
|
size?: number;
|
|
18
20
|
}): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export declare function Shimmer({ color, className, style, }: {
|
|
22
|
+
color: string;
|
|
23
|
+
className?: string;
|
|
24
|
+
style?: React.CSSProperties;
|
|
25
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
19
26
|
export declare function PickerPageShell({ className, bodyFont, children, }: {
|
|
20
27
|
className?: string;
|
|
21
28
|
bodyFont: string;
|
|
22
29
|
children: React.ReactNode;
|
|
23
30
|
}): import("react/jsx-runtime").JSX.Element;
|
|
24
|
-
export declare function CategoryGridSkeleton({ colors, count, }: {
|
|
31
|
+
export declare function CategoryGridSkeleton({ colors, count, theme, }: {
|
|
25
32
|
colors: ThemeSurfaceColors;
|
|
33
|
+
theme?: BladeTheme;
|
|
26
34
|
count?: number;
|
|
27
35
|
showLogoArea?: boolean;
|
|
28
36
|
}): import("react/jsx-runtime").JSX.Element;
|
|
29
37
|
/** SportPickerPage grid — stacked tile on phones, logo-row on sm+. */
|
|
30
|
-
export declare function SportGridSkeleton({ colors, count, }: {
|
|
38
|
+
export declare function SportGridSkeleton({ colors, count, theme, }: {
|
|
31
39
|
colors: ThemeSurfaceColors;
|
|
40
|
+
theme?: BladeTheme;
|
|
32
41
|
count?: number;
|
|
33
42
|
}): import("react/jsx-runtime").JSX.Element;
|
|
34
43
|
/** EventPickerPage fixture list — matchup bar, meta line, chevron. */
|
|
35
|
-
export declare function EventListSkeleton({ colors, count, }: {
|
|
44
|
+
export declare function EventListSkeleton({ colors, count, theme, }: {
|
|
36
45
|
colors: ThemeSurfaceColors;
|
|
46
|
+
theme?: BladeTheme;
|
|
37
47
|
count?: number;
|
|
38
48
|
}): import("react/jsx-runtime").JSX.Element;
|
|
39
49
|
/** One carousel card — tile, YESNO wordmark, name, tagline/description. */
|
|
40
|
-
export declare function GameCardSkeleton({ colors, tileSize, }: {
|
|
50
|
+
export declare function GameCardSkeleton({ colors, tileSize, theme, }: {
|
|
41
51
|
colors: ThemeSurfaceColors;
|
|
42
52
|
tileSize?: number;
|
|
53
|
+
theme?: BladeTheme;
|
|
43
54
|
}): import("react/jsx-runtime").JSX.Element;
|
|
44
|
-
export declare function GameTierTabsSkeleton({ colors }: {
|
|
55
|
+
export declare function GameTierTabsSkeleton({ colors, theme }: {
|
|
45
56
|
colors: ThemeSurfaceColors;
|
|
57
|
+
theme?: BladeTheme;
|
|
46
58
|
}): import("react/jsx-runtime").JSX.Element;
|
|
47
59
|
/** GameSelector carousel — one centred card, dot row, all-games strip. */
|
|
48
|
-
export declare function GameCardListSkeleton({ colors, count, tileSize, showTierTabs, }: {
|
|
60
|
+
export declare function GameCardListSkeleton({ colors, count, tileSize, showTierTabs, theme, }: {
|
|
49
61
|
colors: ThemeSurfaceColors;
|
|
50
62
|
count?: number;
|
|
51
63
|
tileSize?: number;
|
|
52
64
|
showTierTabs?: boolean;
|
|
65
|
+
theme?: BladeTheme;
|
|
53
66
|
}): import("react/jsx-runtime").JSX.Element;
|
|
54
67
|
/** SportSelector list — filter pill, then matchup cards of header + prop rows. */
|
|
55
|
-
export declare function PropositionListSkeleton({ colors, groups, rowsPerGroup, }: {
|
|
68
|
+
export declare function PropositionListSkeleton({ colors, groups, rowsPerGroup, theme, }: {
|
|
56
69
|
colors: ThemeSurfaceColors;
|
|
57
70
|
groups?: number;
|
|
58
71
|
rowsPerGroup?: number;
|
|
72
|
+
theme?: BladeTheme;
|
|
59
73
|
}): import("react/jsx-runtime").JSX.Element;
|
|
60
74
|
/** GameEntries tab bar — matches `flex border-b mb-4`. */
|
|
61
75
|
export declare function EntryTabsSkeleton({ colors }: {
|
|
62
76
|
colors: ThemeSurfaceColors;
|
|
63
77
|
}): import("react/jsx-runtime").JSX.Element;
|
|
64
|
-
export declare function EntryCardSkeleton({ colors }: {
|
|
78
|
+
export declare function EntryCardSkeleton({ colors, theme }: {
|
|
65
79
|
colors: ThemeSurfaceColors;
|
|
80
|
+
theme?: BladeTheme;
|
|
66
81
|
}): import("react/jsx-runtime").JSX.Element;
|
|
67
|
-
export declare function EntryListSkeleton({ colors, rows, }: {
|
|
82
|
+
export declare function EntryListSkeleton({ colors, rows, theme, }: {
|
|
68
83
|
colors: ThemeSurfaceColors;
|
|
69
84
|
rows?: number;
|
|
85
|
+
theme?: BladeTheme;
|
|
70
86
|
}): import("react/jsx-runtime").JSX.Element;
|
|
71
87
|
export type PickerLoadingVariant = 'category' | 'sport' | 'event' | 'games' | 'propositions' | 'entries';
|
|
72
|
-
export declare function PickerLoadingPanel({ colors, bodyFont, message, className, variant, showLogoArea, gameCardCount, categoryCount, showTierTabs, }: {
|
|
88
|
+
export declare function PickerLoadingPanel({ colors, bodyFont, message, className, variant, showLogoArea, gameCardCount, categoryCount, showTierTabs, theme, }: {
|
|
73
89
|
colors: ThemeSurfaceColors;
|
|
74
90
|
bodyFont: string;
|
|
75
91
|
message?: string;
|
|
@@ -79,4 +95,5 @@ export declare function PickerLoadingPanel({ colors, bodyFont, message, classNam
|
|
|
79
95
|
gameCardCount?: number;
|
|
80
96
|
categoryCount?: number;
|
|
81
97
|
showTierTabs?: boolean;
|
|
98
|
+
theme?: BladeTheme;
|
|
82
99
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,52 @@
|
|
|
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
|
+
label: string;
|
|
9
|
+
fullLabel?: string;
|
|
10
|
+
ariaLabel: string;
|
|
11
|
+
count?: number;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
leading?: (on: boolean) => React.ReactNode;
|
|
14
|
+
trailing?: (on: boolean) => React.ReactNode;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* The shelf's match control: Prev / Next either side of the matches on screen,
|
|
18
|
+
* by name. The names are a button too: they open a modal board of every
|
|
19
|
+
* match, by day, to jump straight to one. Native `<dialog>` sits in the top
|
|
20
|
+
* layer, so it needs no z-index over the host. RN twin: MatchStepper in the RN MatchRail.
|
|
21
|
+
*/
|
|
22
|
+
export declare function MatchStepper({ theme: themeProp, events, page, per, picked, onGo, renderTeamLogo, racing, }: {
|
|
23
|
+
theme: BladeTheme;
|
|
24
|
+
events: SelectionEvent[];
|
|
25
|
+
/** What's on screen, and where Prev / Next go (`shelfPage`). */
|
|
26
|
+
page: ShelfPage;
|
|
27
|
+
/** Matches to a page, for the arrows' names: "Next 2 matches". */
|
|
28
|
+
per: number;
|
|
29
|
+
picked: (event: SelectionEvent) => number;
|
|
30
|
+
/** Show the page holding this match. */
|
|
31
|
+
onGo: (index: number) => void;
|
|
32
|
+
renderTeamLogo?: RenderTeamLogo;
|
|
33
|
+
racing?: boolean;
|
|
34
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
export declare function ChipRail({ theme: themeProp, items, activeKey, onSelect, noun, groupLabel, }: {
|
|
36
|
+
theme: BladeTheme;
|
|
37
|
+
items: ChipRailItem[];
|
|
38
|
+
/** The chip that's on, and the one the edge buttons step from. */
|
|
39
|
+
activeKey?: string;
|
|
40
|
+
onSelect: (key: string) => void;
|
|
41
|
+
noun: string;
|
|
42
|
+
groupLabel: string;
|
|
43
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
export declare function MatchRail({ theme, events, activeKey, picked, onSelect, racing, }: {
|
|
45
|
+
theme: BladeTheme;
|
|
46
|
+
events: SelectionEvent[];
|
|
47
|
+
activeKey?: string;
|
|
48
|
+
/** How many picks each fixture holds, for the count on its chip. */
|
|
49
|
+
picked: (event: SelectionEvent) => number;
|
|
50
|
+
onSelect: (key: string) => void;
|
|
51
|
+
racing?: boolean;
|
|
52
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { BladeTheme } from '../utils/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). RN twin: MatchTopBar in the RN components.
|
|
7
|
+
*/
|
|
8
|
+
export declare function MatchTopBar({ theme, title, home, away, racing, date, renderTeamLogo, trailing, inButton }: {
|
|
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
|
+
/** Drawn inside a button: spans only, no heading. */
|
|
18
|
+
inButton?: boolean;
|
|
19
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
import { Game } from '../../shared/types';
|
|
2
|
+
import { BladeTheme } from '../../shared/themes';
|
|
1
3
|
export interface MultiLegTableTier {
|
|
2
4
|
count: number;
|
|
3
5
|
payout20: number;
|
|
4
6
|
}
|
|
5
7
|
export interface MultiLegTableProps {
|
|
6
8
|
tiers: MultiLegTableTier[];
|
|
9
|
+
game?: Game | null;
|
|
7
10
|
selectedCount?: number;
|
|
8
11
|
onSelect: (count: number) => void;
|
|
9
12
|
colors: {
|
|
@@ -32,9 +35,10 @@ export interface MultiLegTableProps {
|
|
|
32
35
|
expanded?: boolean;
|
|
33
36
|
onExpandedChange?: (expanded: boolean) => void;
|
|
34
37
|
summaryTiers?: MultiLegTableTier[];
|
|
38
|
+
theme?: BladeTheme;
|
|
35
39
|
}
|
|
36
40
|
/**
|
|
37
41
|
* Renders a compact Legs / Dividend / $X returns table identical to the
|
|
38
42
|
* one on the Game Page. Used by both GameSelector and ConfirmPage.
|
|
39
43
|
*/
|
|
40
|
-
export declare function MultiLegTable({ tiers, selectedCount, onSelect, colors: c, bodyFont, extraBetAmount, buttonLabel, columnLabel, buildYourOwn, quickPickOnly, onQuickPick, collapsible, expanded: expandedProp, onExpandedChange, summaryTiers }: MultiLegTableProps): import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
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,17 +1,46 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
|
|
2
|
+
import { BladeTheme } from '../types';
|
|
3
|
+
/**
|
|
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: RN `PageBackButton`.
|
|
8
|
+
*/
|
|
9
|
+
export declare const PageBackButton: React.ForwardRefExoticComponent<{
|
|
3
10
|
onBack: () => void;
|
|
11
|
+
/** Tooltip, and the accessible name when there is no label. */
|
|
4
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
|
+
labelClassName?: string;
|
|
5
20
|
className?: string;
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
*/
|
|
21
|
+
style?: React.CSSProperties;
|
|
22
|
+
/** Defaults to the place-entry page theme. */
|
|
23
|
+
theme?: BladeTheme;
|
|
24
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
25
|
+
/** The success check that sits in the back arrow's slot: the same 16px mark. */
|
|
26
|
+
export declare function HeaderCheck({ color, ...rest }: {
|
|
27
|
+
color: string;
|
|
28
|
+
} & React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
/** The setup pages' body back link: the one back control with a label. */
|
|
11
30
|
export declare function PageBackLink({ onBack, label, }: {
|
|
12
31
|
onBack: () => void;
|
|
13
32
|
label?: string;
|
|
14
33
|
}): import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
export declare function PageHeader({ title, onBack, backLabel, actions, children, leading, className, }: {
|
|
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
|
+
className?: string;
|
|
43
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
15
44
|
export declare function PageTitleBackRow({ onBack, hideActions: _hideActions, label, children, className, }: {
|
|
16
45
|
onBack?: () => void;
|
|
17
46
|
/** @deprecated Back arrow visibility is controlled by `onBack` only */
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { BladeTheme } from '../utils/themes';
|
|
2
|
+
/**
|
|
3
|
+
* Page loading skeletons shaped like each UI system's loaded page, so nothing
|
|
4
|
+
* jumps when the data lands. Sizes are copied from CategoryPickerPage,
|
|
5
|
+
* GameEntries and EventPickerPage; the native twin mirrors them.
|
|
6
|
+
*/
|
|
7
|
+
export type SkeletonLayout = 'kit' | 'shelf';
|
|
8
|
+
/** CategoryPickerPage grid. Shelf: one banner per category, filling the row from 300px each. */
|
|
9
|
+
export declare function CategoryPageSkeleton({ theme, layout, categories }: {
|
|
10
|
+
theme: BladeTheme;
|
|
11
|
+
layout: SkeletonLayout;
|
|
12
|
+
categories: readonly string[];
|
|
13
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
/** GameEntries. Kit: underline tabs + collapsed cards. Shelf: two option tabs + white summary cards with pips. */
|
|
15
|
+
export declare function EntriesPageSkeleton({ theme, layout, rows }: {
|
|
16
|
+
theme: BladeTheme;
|
|
17
|
+
layout: SkeletonLayout;
|
|
18
|
+
rows?: number;
|
|
19
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
/** EventPickerPage — the intro line, then fixture cards; the matchup stacks on phones. */
|
|
21
|
+
export declare function EventPageSkeleton({ theme, count }: {
|
|
22
|
+
theme: BladeTheme;
|
|
23
|
+
count?: number;
|
|
24
|
+
}): import("react/jsx-runtime").JSX.Element;
|