@simple-parlay/components 1.30.6-pre.4 → 1.30.6-pre.5

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.
@@ -1,4 +1,5 @@
1
1
  import { default as React } from 'react';
2
+ import { YesNoLabels } from '../../shared/utils';
2
3
  import { Game, Proposition, SportSummary, GameEntry, TopPayoutsResponse, ShareData, ScreenSize } from '../types';
3
4
  import { BladeTheme, BladeThemeSet, ColorScheme } from '../utils/themes';
4
5
  import { SportDisplayNameOverrides, CategoryDisplayNameOverrides } from '../utils';
@@ -141,6 +142,7 @@ export interface PlaceEntryProviderProps {
141
142
  renderPropositionSilk?: RenderPropositionSilk;
142
143
  selectionVariant?: SelectionVariant;
143
144
  disableEventSwipe?: boolean;
145
+ yesNoLabels?: YesNoLabels;
144
146
  enableSportFavourites?: boolean;
145
147
  onEntryPlaced?: (entry: GameEntry) => void;
146
148
  onBeforeSubmit?: (betAmount: number) => void | Promise<void>;
@@ -155,4 +157,4 @@ export interface PlaceEntryProviderProps {
155
157
  /** Map entry categories to UI labels. */
156
158
  categoryDisplayNames?: CategoryDisplayNameOverrides;
157
159
  }
158
- 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;
160
+ 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, yesNoLabels, onEntryPlaced, onBeforeSubmit, onCancel, onShare, onRecharge, onClearEventFilter, screenSize, howToPlayMarkdown: howToPlayMarkdownProp, sportDisplayNames, categoryDisplayNames, }: PlaceEntryProviderProps): 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;
@@ -22,3 +23,4 @@ export interface FilterChipRowProps extends FilterChipGroup {
22
23
  className?: string;
23
24
  }
24
25
  export declare function FilterChipRow({ label, options, value, onChange, theme, bodyFont, className, }: FilterChipRowProps): import("react/jsx-runtime").JSX.Element;
26
+ export declare function FilterChipPanel({ groups, theme, bodyFont, className }: FilterChipCarouselProps): import("react/jsx-runtime").JSX.Element | null;
@@ -9,10 +9,6 @@ export interface SportRailProps {
9
9
  className?: string;
10
10
  }
11
11
  /**
12
- * The sport step, and the only place the sport is chosen: it sits on the game's
13
- * setup page, after the game and before the picks. The game page never shows it
14
- * — a sport picked up front just scopes the game list — and the selections show
15
- * the sport read-only, with a Change that comes back here.
16
12
  *
17
13
  * Renders nothing at all when the sport is not a choice, which is every
18
14
  * single-sport game.
@@ -42,4 +42,4 @@ export declare function CompositePropositionText({ prop, colors: c, size, compon
42
42
  */
43
43
  renderTeamLogo?: RenderTeamLogo;
44
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, variant, disableEventSwipe, }: SportSelectorProps): 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. */
@@ -14,6 +14,8 @@ export { GameEntries } from './components/GameEntries';
14
14
  export { QuickPickButton } from './components/QuickPickButton';
15
15
  export type { QuickPickButtonProps } from './components/QuickPickButton';
16
16
  export { PlaceEntryProvider, usePlaceEntry } from './components/PlaceEntryProvider';
17
+ export { useYesNoLabels } from './components/_primitives';
18
+ export type { YesNoLabels } from '../shared/utils';
17
19
  export type { PlaceEntryProviderProps, PlaceEntryContextValue } from './components/PlaceEntryProvider';
18
20
  export { GamePage, GamePageTitle, GamePageActions } from './components/GamePage';
19
21
  export type { GamePageProps } from './components/GamePage';