@simple-parlay/components 1.30.5 → 1.30.6-pre.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +451 -374
- package/dist/react/components/CallGameCatalogue.d.ts +4 -0
- package/dist/react/components/CallPayoutTable.d.ts +6 -0
- package/dist/react/components/CallTicketBuilder.d.ts +3 -0
- package/dist/react/components/CorrelationChoicesSkeleton.d.ts +4 -0
- package/dist/react/components/CorrelationPricingDebug.d.ts +2 -0
- package/dist/react/components/CorrelationPropPlaceholder.d.ts +13 -0
- package/dist/react/components/DenseGameCatalogue.d.ts +2 -0
- package/dist/react/components/DenseUi.d.ts +30 -0
- package/dist/react/components/EntriesPage.d.ts +0 -4
- package/dist/react/components/EntrySubmission.d.ts +1 -1
- package/dist/react/components/EventSwipeModal.d.ts +19 -0
- package/dist/react/components/GameModeCard.d.ts +41 -6
- package/dist/react/components/GamePage.d.ts +3 -1
- package/dist/react/components/GameSelector.d.ts +9 -1
- package/dist/react/components/GameSetupPage.d.ts +6 -2
- package/dist/react/components/GameShelfCatalogue.d.ts +2 -0
- package/dist/react/components/GameShowcaseCatalogue.d.ts +9 -0
- package/dist/react/components/GameVariantCatalogue.d.ts +6 -0
- package/dist/react/components/HowToPlayButton.d.ts +3 -1
- package/dist/react/components/MatchRail.d.ts +30 -0
- package/dist/react/components/MultiLegTable.d.ts +3 -1
- package/dist/react/components/PageBackButton.d.ts +8 -0
- package/dist/react/components/PickerBrand.d.ts +7 -0
- package/dist/react/components/PlaceEntryProvider.d.ts +62 -5
- package/dist/react/components/PlaybookChooser.d.ts +7 -0
- package/dist/react/components/PropositionFilters.d.ts +3 -1
- package/dist/react/components/QuickPickButton.d.ts +3 -1
- package/dist/react/components/ScrollShelf.d.ts +25 -0
- package/dist/react/components/SelectionReview.d.ts +1 -1
- package/dist/react/components/SelectionVariantList.d.ts +20 -0
- package/dist/react/components/SelectionsPage.d.ts +1 -1
- package/dist/react/components/SportRail.d.ts +26 -0
- package/dist/react/components/SportSelector.d.ts +32 -2
- package/dist/react/components/_primitives/index.d.ts +9 -1
- package/dist/react/index.cjs +1 -0
- package/dist/react/index.d.ts +49 -16
- package/dist/react/index.mjs +451 -374
- package/dist/react/utils/dom.d.ts +7 -0
- package/dist/react/utils/index.d.ts +1 -1
- package/dist/react-native/components/CallGameCatalogue.d.ts +16 -0
- package/dist/react-native/components/CallPayoutTable.d.ts +6 -0
- package/dist/react-native/components/CallTicketBuilder.d.ts +33 -0
- package/dist/react-native/components/CorrelationChoicesSkeleton.d.ts +3 -0
- package/dist/react-native/components/CorrelationPricingDebug.d.ts +2 -0
- package/dist/react-native/components/CorrelationPropPlaceholder.d.ts +7 -0
- package/dist/react-native/components/DenseGameCatalogue.d.ts +2 -0
- package/dist/react-native/components/DenseUi.d.ts +59 -0
- package/dist/react-native/components/EntrySubmission.d.ts +1 -1
- package/dist/react-native/components/EventSwipeModal.d.ts +17 -0
- package/dist/react-native/components/GameModeCard.d.ts +41 -6
- package/dist/react-native/components/GamePage.d.ts +4 -1
- package/dist/react-native/components/GameSelector.d.ts +9 -1
- package/dist/react-native/components/GameSetupPage.d.ts +5 -14
- package/dist/react-native/components/GameShelfCatalogue.d.ts +7 -0
- package/dist/react-native/components/HowToPlayButton.d.ts +3 -1
- package/dist/react-native/components/LoadingIndicators.d.ts +1 -1
- package/dist/react-native/components/MatchRail.d.ts +36 -0
- package/dist/react-native/components/MultiLegTable.d.ts +3 -1
- package/dist/react-native/components/PageBackButton.d.ts +7 -0
- package/dist/react-native/components/PickerBrand.d.ts +6 -0
- package/dist/react-native/components/PlaceEntryProvider.d.ts +57 -5
- package/dist/react-native/components/PlaybookChooser.d.ts +7 -0
- package/dist/react-native/components/PropositionFilters.d.ts +3 -1
- package/dist/react-native/components/QuickPickButton.d.ts +3 -1
- package/dist/react-native/components/ScrollShelf.d.ts +23 -0
- package/dist/react-native/components/SelectionReview.d.ts +1 -1
- package/dist/react-native/components/SelectionVariantList.d.ts +20 -0
- package/dist/react-native/components/SelectionsPage.d.ts +1 -1
- package/dist/react-native/components/SportRail.d.ts +27 -0
- package/dist/react-native/components/SportSelector.d.ts +29 -2
- package/dist/react-native/components/_primitives/index.d.ts +12 -2
- package/dist/react-native/index.cjs +1 -0
- package/dist/react-native/index.d.ts +49 -16
- package/dist/react-native/index.mjs +438 -382
- package/dist/react-native/utils/index.d.ts +1 -1
- package/dist/shared/api-client.d.ts +4 -3
- package/dist/shared/call-presentation.d.ts +20 -0
- package/dist/shared/composite.d.ts +7 -0
- package/dist/shared/correlation-steering.d.ts +49 -0
- package/dist/shared/date-filters.d.ts +5 -4
- package/dist/shared/dense-ui.d.ts +54 -0
- package/dist/shared/favourite-sport.d.ts +2 -0
- package/dist/shared/game-artwork.d.ts +61 -0
- package/dist/shared/game-flow.d.ts +18 -1
- package/dist/shared/game-icons.d.ts +6 -3
- package/dist/shared/game-library.d.ts +58 -0
- package/dist/shared/game-set-bet.d.ts +0 -1
- package/dist/shared/game-shelf-artwork.d.ts +3 -0
- package/dist/shared/game-shelf-presentation.d.ts +43 -0
- package/dist/shared/game-variants.d.ts +5 -0
- package/dist/shared/hooks.d.ts +9 -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 +88 -5
- package/dist/shared/pick-your-dividend.d.ts +2 -1
- package/dist/shared/picker-brand.d.ts +22 -0
- package/dist/shared/playbook.d.ts +29 -0
- package/dist/shared/selection-actions.d.ts +61 -0
- package/dist/shared/selection-caps.d.ts +68 -0
- package/dist/shared/selection-variants.d.ts +52 -0
- package/dist/shared/six-again.d.ts +105 -0
- package/dist/shared/swipe-deck.d.ts +1 -1
- package/dist/shared/themes.d.ts +22 -0
- package/dist/shared/types.d.ts +83 -3
- package/dist/shared/ui-system.d.ts +69 -0
- package/dist/shared/ui-variant.d.ts +16 -0
- package/dist/shared/use-call-payouts.d.ts +8 -0
- package/dist/shared/utils.d.ts +18 -6
- package/package.json +7 -8
- package/dist/index.js +0 -1
- package/dist/react/components/GameSetBetPage.d.ts +0 -21
- package/dist/react/components/LadderPage.d.ts +0 -21
- package/dist/react/components/MirrorPage.d.ts +0 -21
- package/dist/react/components/PerfectPickPage.d.ts +0 -22
- package/dist/react/components/PickYourDividendPage.d.ts +0 -21
- package/dist/react/components/RuleSetupPage.d.ts +0 -27
- package/dist/react/components/SafetyNetPage.d.ts +0 -16
- package/dist/react/index.js +0 -1
- package/dist/react/utils/design.d.ts +0 -55
- package/dist/react-native/components/GameSetBetPage.d.ts +0 -19
- package/dist/react-native/components/LadderPage.d.ts +0 -19
- package/dist/react-native/components/MirrorPage.d.ts +0 -19
- package/dist/react-native/components/PerfectPickPage.d.ts +0 -20
- package/dist/react-native/components/PickYourDividendPage.d.ts +0 -19
- package/dist/react-native/components/RuleSetupPage.d.ts +0 -23
- package/dist/react-native/components/SafetyNetPage.d.ts +0 -14
- package/dist/react-native/index.js +0 -1
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface SportRailProps {
|
|
3
|
+
/** Heading above the rail. Pass `null` to drop it. @default 'Pick your sport' */
|
|
4
|
+
label?: string | null;
|
|
5
|
+
/** Line under the heading. Pass `null` to drop it; omit for the default hint. */
|
|
6
|
+
sublabel?: string | null;
|
|
7
|
+
/** Controls parked on the heading's right — the track keeps the full width. */
|
|
8
|
+
actions?: React.ReactNode;
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* The sport step. It sits on a game's setup page, and — for the games that have
|
|
13
|
+
* no setup page — above the proposition list, so there is always one place to
|
|
14
|
+
* change it. Never on the game grid.
|
|
15
|
+
*
|
|
16
|
+
* One oval track: every sport rides it as its short code, and the selected one
|
|
17
|
+
* opens out to its full name on a filled thumb. Codes keep the track compact,
|
|
18
|
+
* the selection says what it is in plain English.
|
|
19
|
+
*
|
|
20
|
+
* A bet is one sport: once the slip has picks the track locks, and the only way
|
|
21
|
+
* across is to clear the bet — silently wiping the card on a mis-tap was worse.
|
|
22
|
+
*
|
|
23
|
+
* Renders nothing at all when the sport is not a choice, which is every
|
|
24
|
+
* single-sport game.
|
|
25
|
+
*/
|
|
26
|
+
export declare function SportRail({ label, sublabel, actions, className }: SportRailProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { SportSelectorProps, Proposition } from '../../shared/types';
|
|
2
|
+
import { SportSelectorProps, Proposition, RenderTeamLogo } from '../../shared/types';
|
|
3
3
|
/** A header key names two teams when it splits on " vs " — `MatchupTeams`' own test. */
|
|
4
4
|
export declare function isMatchupKey(key?: string | null): boolean;
|
|
5
5
|
/** The runner's silk, for single-event rows; under an "A vs B" header the logos are already up top. */
|
|
@@ -12,4 +12,34 @@ export declare function MatchupTeams({ matchup, renderTeamLogo, altText, mutedCo
|
|
|
12
12
|
mutedColor: string;
|
|
13
13
|
size?: 'sm' | 'md';
|
|
14
14
|
}): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
export declare function
|
|
15
|
+
export declare function CompositePropositionText({ prop, colors: c, size, componentById, textClass: textClassOverride, textColor, eventLabels, renderTeamLogo, }: {
|
|
16
|
+
prop: Proposition;
|
|
17
|
+
colors: {
|
|
18
|
+
primary: string;
|
|
19
|
+
text: string;
|
|
20
|
+
textMuted?: string;
|
|
21
|
+
textAltMuted?: string;
|
|
22
|
+
backgroundAlt?: string;
|
|
23
|
+
border?: string;
|
|
24
|
+
};
|
|
25
|
+
size?: 'sm' | 'md';
|
|
26
|
+
componentById?: ReadonlyMap<number, Proposition>;
|
|
27
|
+
/** Replaces the size-derived type classes — the variant layouts set their own. */
|
|
28
|
+
textClass?: string;
|
|
29
|
+
/** Replaces `colors.text` on the question itself, legs included. */
|
|
30
|
+
textColor?: string;
|
|
31
|
+
/**
|
|
32
|
+
* How a leg names its fixture. `show` stacks the label above each leg —
|
|
33
|
+
* right where rows have room. `hover` keeps the legs on one line and puts
|
|
34
|
+
* the fixture in the tooltip instead, for compact rows like the slip and
|
|
35
|
+
* the confirm list. Either way the title attribute carries it.
|
|
36
|
+
*/
|
|
37
|
+
eventLabels?: 'show' | 'hover';
|
|
38
|
+
/**
|
|
39
|
+
* Supplied, a leg names its fixture with the two club badges instead of a
|
|
40
|
+
* text chip — far lighter in a row, and the full matchup stays in the
|
|
41
|
+
* tooltip. Falls back to the text chip when the host renders no logos.
|
|
42
|
+
*/
|
|
43
|
+
renderTeamLogo?: RenderTeamLogo;
|
|
44
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
45
|
+
export declare function SportSelector({ game, propositions, selections, onToggleSelection, onNext, onBack, loading, error, theme: themeProp, colorScheme, hideActions, initialSport, renderTeamLogo, disableQuickPick, selectedPropositionCount, onPropositionCountChange, gameCategory, headerExtra, railSlot, variant, disableEventSwipe, }: SportSelectorProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { default as React, CSSProperties, MouseEvent, ReactNode } from 'react';
|
|
2
2
|
import { BladeTheme } from '../../../shared/themes';
|
|
3
|
+
import { YesNoLabels } from '../../../shared/utils';
|
|
3
4
|
/** Minimum hit area for anything tappable, in px (Apple 44pt / Material 48dp). Shrink the paint, never the target. */
|
|
4
5
|
export declare const TOUCH_TARGET = 44;
|
|
5
6
|
export declare function useBreakpoint(minWidth?: number): boolean;
|
|
@@ -69,6 +70,9 @@ export declare function Divider({ theme, orientation, style, }: {
|
|
|
69
70
|
export type YesNoValue = 'yes' | 'no';
|
|
70
71
|
export type YesNoAnswer = YesNoValue | null | undefined;
|
|
71
72
|
export type YesNoSize = 'xs' | 'sm' | 'md';
|
|
73
|
+
export type { YesNoLabels };
|
|
74
|
+
export declare const YesNoLabelsProvider: React.Provider<YesNoLabels>;
|
|
75
|
+
export declare function useYesNoLabels(): YesNoLabels;
|
|
72
76
|
export interface YesNoButtonsProps {
|
|
73
77
|
theme: BladeTheme;
|
|
74
78
|
/** Currently selected side, if any. */
|
|
@@ -76,14 +80,18 @@ export interface YesNoButtonsProps {
|
|
|
76
80
|
onYes?: (e: MouseEvent<HTMLButtonElement>) => void;
|
|
77
81
|
onNo?: (e: MouseEvent<HTMLButtonElement>) => void;
|
|
78
82
|
size?: YesNoSize;
|
|
83
|
+
/** Fill the row, each side taking half — the roomy card layouts want this. */
|
|
84
|
+
stretch?: boolean;
|
|
79
85
|
disabled?: boolean;
|
|
86
|
+
yesDisabled?: boolean;
|
|
87
|
+
noDisabled?: boolean;
|
|
80
88
|
yesLabel?: string;
|
|
81
89
|
noLabel?: string;
|
|
82
90
|
className?: string;
|
|
83
91
|
style?: CSSProperties;
|
|
84
92
|
}
|
|
85
93
|
/** The interactive Yes/No pair. Identical everywhere it is used. */
|
|
86
|
-
export declare function YesNoButtons({ theme, value, onYes, onNo, size, disabled, yesLabel, noLabel, className, style, }: YesNoButtonsProps): import("react/jsx-runtime").JSX.Element;
|
|
94
|
+
export declare function YesNoButtons({ theme, value, onYes, onNo, size, stretch, disabled, yesDisabled, noDisabled, yesLabel, noLabel, className, style, }: YesNoButtonsProps): import("react/jsx-runtime").JSX.Element;
|
|
87
95
|
/** Read-only Yes/No chip — the settled answer, same product tokens. */
|
|
88
96
|
export declare function YesNoTag({ theme, value, size, style, }: {
|
|
89
97
|
theme: BladeTheme;
|