@simple-parlay/components 1.30.6-pre → 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.
Files changed (121) hide show
  1. package/dist/index.cjs +1 -0
  2. package/dist/index.d.ts +1 -1
  3. package/dist/index.mjs +448 -432
  4. package/dist/react/components/CallGameCatalogue.d.ts +4 -0
  5. package/dist/react/components/CallPayoutTable.d.ts +6 -0
  6. package/dist/react/components/CallTicketBuilder.d.ts +3 -0
  7. package/dist/react/components/CorrelationChoicesSkeleton.d.ts +4 -0
  8. package/dist/react/components/CorrelationPricingDebug.d.ts +2 -0
  9. package/dist/react/components/CorrelationPropPlaceholder.d.ts +13 -0
  10. package/dist/react/components/DenseGameCatalogue.d.ts +2 -0
  11. package/dist/react/components/DenseUi.d.ts +30 -0
  12. package/dist/react/components/EntriesPage.d.ts +0 -4
  13. package/dist/react/components/EntrySubmission.d.ts +1 -1
  14. package/dist/react/components/GameModeCard.d.ts +33 -6
  15. package/dist/react/components/GamePage.d.ts +3 -1
  16. package/dist/react/components/GameSelector.d.ts +9 -1
  17. package/dist/react/components/GameSetupPage.d.ts +6 -2
  18. package/dist/react/components/GameShelfCatalogue.d.ts +2 -0
  19. package/dist/react/components/GameShowcaseCatalogue.d.ts +9 -0
  20. package/dist/react/components/GameVariantCatalogue.d.ts +6 -0
  21. package/dist/react/components/HowToPlayButton.d.ts +3 -1
  22. package/dist/react/components/MatchRail.d.ts +30 -0
  23. package/dist/react/components/MultiLegTable.d.ts +3 -1
  24. package/dist/react/components/PageBackButton.d.ts +8 -0
  25. package/dist/react/components/PlaceEntryProvider.d.ts +43 -5
  26. package/dist/react/components/PlaybookChooser.d.ts +7 -0
  27. package/dist/react/components/PropositionFilters.d.ts +3 -1
  28. package/dist/react/components/QuickPickButton.d.ts +3 -1
  29. package/dist/react/components/ScrollShelf.d.ts +5 -1
  30. package/dist/react/components/SelectionReview.d.ts +1 -1
  31. package/dist/react/components/SportRail.d.ts +13 -7
  32. package/dist/react/components/SportSelector.d.ts +16 -3
  33. package/dist/react/components/_primitives/index.d.ts +7 -1
  34. package/dist/react/index.cjs +1 -0
  35. package/dist/react/index.d.ts +36 -17
  36. package/dist/react/index.mjs +448 -432
  37. package/dist/react/utils/dom.d.ts +7 -0
  38. package/dist/react/utils/index.d.ts +1 -1
  39. package/dist/react-native/components/CallGameCatalogue.d.ts +16 -0
  40. package/dist/react-native/components/CallPayoutTable.d.ts +6 -0
  41. package/dist/react-native/components/CallTicketBuilder.d.ts +33 -0
  42. package/dist/react-native/components/CorrelationChoicesSkeleton.d.ts +3 -0
  43. package/dist/react-native/components/CorrelationPricingDebug.d.ts +2 -0
  44. package/dist/react-native/components/CorrelationPropPlaceholder.d.ts +7 -0
  45. package/dist/react-native/components/DenseGameCatalogue.d.ts +2 -0
  46. package/dist/react-native/components/DenseUi.d.ts +59 -0
  47. package/dist/react-native/components/EntrySubmission.d.ts +1 -1
  48. package/dist/react-native/components/GameModeCard.d.ts +32 -5
  49. package/dist/react-native/components/GamePage.d.ts +4 -1
  50. package/dist/react-native/components/GameSelector.d.ts +9 -1
  51. package/dist/react-native/components/GameSetupPage.d.ts +5 -14
  52. package/dist/react-native/components/GameShelfCatalogue.d.ts +7 -0
  53. package/dist/react-native/components/HowToPlayButton.d.ts +3 -1
  54. package/dist/react-native/components/LoadingIndicators.d.ts +1 -1
  55. package/dist/react-native/components/MatchRail.d.ts +36 -0
  56. package/dist/react-native/components/MultiLegTable.d.ts +3 -1
  57. package/dist/react-native/components/PageBackButton.d.ts +7 -0
  58. package/dist/react-native/components/PlaceEntryProvider.d.ts +36 -5
  59. package/dist/react-native/components/PlaybookChooser.d.ts +7 -0
  60. package/dist/react-native/components/PropositionFilters.d.ts +3 -1
  61. package/dist/react-native/components/QuickPickButton.d.ts +3 -1
  62. package/dist/react-native/components/ScrollShelf.d.ts +8 -1
  63. package/dist/react-native/components/SelectionReview.d.ts +1 -1
  64. package/dist/react-native/components/SportRail.d.ts +13 -7
  65. package/dist/react-native/components/SportSelector.d.ts +8 -3
  66. package/dist/react-native/components/_primitives/index.d.ts +10 -2
  67. package/dist/react-native/index.cjs +1 -0
  68. package/dist/react-native/index.d.ts +36 -17
  69. package/dist/react-native/index.mjs +438 -437
  70. package/dist/react-native/utils/index.d.ts +1 -1
  71. package/dist/shared/api-client.d.ts +4 -3
  72. package/dist/shared/call-presentation.d.ts +20 -0
  73. package/dist/shared/correlation-steering.d.ts +49 -0
  74. package/dist/shared/date-filters.d.ts +5 -4
  75. package/dist/shared/dense-ui.d.ts +54 -0
  76. package/dist/shared/game-artwork.d.ts +61 -0
  77. package/dist/shared/game-flow.d.ts +14 -1
  78. package/dist/shared/game-icons.d.ts +6 -3
  79. package/dist/shared/game-library.d.ts +58 -0
  80. package/dist/shared/game-set-bet.d.ts +0 -1
  81. package/dist/shared/game-shelf-artwork.d.ts +3 -0
  82. package/dist/shared/game-shelf-presentation.d.ts +43 -0
  83. package/dist/shared/game-variants.d.ts +5 -0
  84. package/dist/shared/hooks.d.ts +8 -8
  85. package/dist/shared/how-to-play-html.d.ts +1 -1
  86. package/dist/shared/how-to-play-logo.d.ts +1 -1
  87. package/dist/shared/menu-placement.d.ts +26 -0
  88. package/dist/shared/mirror.d.ts +55 -5
  89. package/dist/shared/picker-brand.d.ts +22 -6
  90. package/dist/shared/playbook.d.ts +29 -0
  91. package/dist/shared/selection-actions.d.ts +15 -4
  92. package/dist/shared/selection-caps.d.ts +68 -0
  93. package/dist/shared/selection-variants.d.ts +5 -1
  94. package/dist/shared/swipe-deck.d.ts +1 -1
  95. package/dist/shared/themes.d.ts +22 -0
  96. package/dist/shared/types.d.ts +43 -2
  97. package/dist/shared/ui-system.d.ts +69 -0
  98. package/dist/shared/ui-variant.d.ts +16 -0
  99. package/dist/shared/use-call-payouts.d.ts +8 -0
  100. package/dist/shared/utils.d.ts +18 -7
  101. package/package.json +7 -8
  102. package/dist/index.js +0 -1
  103. package/dist/react/components/GameSetBetPage.d.ts +0 -21
  104. package/dist/react/components/LadderPage.d.ts +0 -21
  105. package/dist/react/components/MirrorPage.d.ts +0 -21
  106. package/dist/react/components/PerfectPickPage.d.ts +0 -22
  107. package/dist/react/components/PickYourDividendPage.d.ts +0 -21
  108. package/dist/react/components/RuleSetupPage.d.ts +0 -27
  109. package/dist/react/components/SafetyNetPage.d.ts +0 -16
  110. package/dist/react/components/SixAgainPage.d.ts +0 -16
  111. package/dist/react/index.js +0 -1
  112. package/dist/react/utils/design.d.ts +0 -55
  113. package/dist/react-native/components/GameSetBetPage.d.ts +0 -19
  114. package/dist/react-native/components/LadderPage.d.ts +0 -19
  115. package/dist/react-native/components/MirrorPage.d.ts +0 -19
  116. package/dist/react-native/components/PerfectPickPage.d.ts +0 -20
  117. package/dist/react-native/components/PickYourDividendPage.d.ts +0 -19
  118. package/dist/react-native/components/RuleSetupPage.d.ts +0 -23
  119. package/dist/react-native/components/SafetyNetPage.d.ts +0 -14
  120. package/dist/react-native/components/SixAgainPage.d.ts +0 -14
  121. package/dist/react-native/index.js +0 -1
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- import { Proposition, SportSelectorProps } from '../../shared/types';
2
+ import { Proposition, RenderTeamLogo, SportSelectorProps } 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,7 +12,7 @@ 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 CompositePropositionText({ prop, colors: c, size, componentById, textStyle, textColor, }: {
15
+ export declare function CompositePropositionText({ prop, colors: c, size, componentById, textStyle, textColor, renderTeamLogo, }: {
16
16
  prop: Proposition;
17
17
  colors: {
18
18
  primary: string;
@@ -33,5 +33,10 @@ export declare function CompositePropositionText({ prop, colors: c, size, compon
33
33
  };
34
34
  /** Replaces `colors.text` on the question itself, legs included. */
35
35
  textColor?: string;
36
+ /**
37
+ * Supplied, a leg names its fixture with the two club badges instead of a
38
+ * text chip — far lighter in a row. Falls back to the chip without it.
39
+ */
40
+ renderTeamLogo?: RenderTeamLogo;
36
41
  }): import("react/jsx-runtime").JSX.Element;
37
- 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;
42
+ 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,6 +1,7 @@
1
- import { ReactNode } from 'react';
1
+ import { default as React, ReactNode } from 'react';
2
2
  import { ViewStyle, TextStyle, StyleProp, Animated } from 'react-native';
3
3
  import { BladeTheme } from '../../../shared/themes';
4
+ import { YesNoLabels } from '../../../shared/utils';
4
5
  /** Twin of the web `TOUCH_TARGET`: minimum hit area in px. Shrink the paint, never the target. */
5
6
  export declare const TOUCH_TARGET = 44;
6
7
  /**
@@ -11,6 +12,8 @@ export declare const TOUCH_TARGET = 44;
11
12
  export declare function scrollRowTo(ref: {
12
13
  current: unknown;
13
14
  }, x: number, animated?: boolean): void;
15
+ export declare function webDocOf(node: unknown): Document;
16
+ export declare function webWinOf(node: unknown): Window;
14
17
  /**
15
18
  * Hover handlers for the react-native-web twin — RN's own prop types omit them
16
19
  * and they are inert on native. Spread it (`{...hoverHandlers(a, b)}`) instead
@@ -78,6 +81,9 @@ export declare function Divider({ theme, orientation, style, }: {
78
81
  export type YesNoValue = 'yes' | 'no';
79
82
  export type YesNoAnswer = YesNoValue | null | undefined;
80
83
  export type YesNoSize = 'xs' | 'sm' | 'md';
84
+ export type { YesNoLabels };
85
+ export declare const YesNoLabelsProvider: React.Provider<YesNoLabels>;
86
+ export declare function useYesNoLabels(): YesNoLabels;
81
87
  export interface YesNoButtonsProps {
82
88
  theme: BladeTheme;
83
89
  /** Currently selected side, if any. */
@@ -88,12 +94,14 @@ export interface YesNoButtonsProps {
88
94
  /** Fill the row, each side taking half — the roomy card layouts want this. */
89
95
  stretch?: boolean;
90
96
  disabled?: boolean;
97
+ yesDisabled?: boolean;
98
+ noDisabled?: boolean;
91
99
  yesLabel?: string;
92
100
  noLabel?: string;
93
101
  style?: StyleProp<ViewStyle>;
94
102
  }
95
103
  /** The interactive Yes/No pair. Identical everywhere it is used. */
96
- export declare function YesNoButtons({ theme, value, onYes, onNo, size, stretch, disabled, yesLabel, noLabel, style, }: YesNoButtonsProps): import("react/jsx-runtime").JSX.Element;
104
+ export declare function YesNoButtons({ theme, value, onYes, onNo, size, stretch, disabled, yesDisabled, noDisabled, yesLabel, noLabel, style, }: YesNoButtonsProps): import("react/jsx-runtime").JSX.Element;
97
105
  /** Read-only Yes/No chip — the settled answer, same product tokens. */
98
106
  export declare function YesNoTag({ theme, value, size, style, }: {
99
107
  theme: BladeTheme;