@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.
Files changed (131) hide show
  1. package/dist/index.cjs +1 -0
  2. package/dist/index.d.ts +1 -1
  3. package/dist/index.mjs +451 -374
  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/EventSwipeModal.d.ts +19 -0
  15. package/dist/react/components/GameModeCard.d.ts +41 -6
  16. package/dist/react/components/GamePage.d.ts +3 -1
  17. package/dist/react/components/GameSelector.d.ts +9 -1
  18. package/dist/react/components/GameSetupPage.d.ts +6 -2
  19. package/dist/react/components/GameShelfCatalogue.d.ts +2 -0
  20. package/dist/react/components/GameShowcaseCatalogue.d.ts +9 -0
  21. package/dist/react/components/GameVariantCatalogue.d.ts +6 -0
  22. package/dist/react/components/HowToPlayButton.d.ts +3 -1
  23. package/dist/react/components/MatchRail.d.ts +30 -0
  24. package/dist/react/components/MultiLegTable.d.ts +3 -1
  25. package/dist/react/components/PageBackButton.d.ts +8 -0
  26. package/dist/react/components/PickerBrand.d.ts +7 -0
  27. package/dist/react/components/PlaceEntryProvider.d.ts +62 -5
  28. package/dist/react/components/PlaybookChooser.d.ts +7 -0
  29. package/dist/react/components/PropositionFilters.d.ts +3 -1
  30. package/dist/react/components/QuickPickButton.d.ts +3 -1
  31. package/dist/react/components/ScrollShelf.d.ts +25 -0
  32. package/dist/react/components/SelectionReview.d.ts +1 -1
  33. package/dist/react/components/SelectionVariantList.d.ts +20 -0
  34. package/dist/react/components/SelectionsPage.d.ts +1 -1
  35. package/dist/react/components/SportRail.d.ts +26 -0
  36. package/dist/react/components/SportSelector.d.ts +32 -2
  37. package/dist/react/components/_primitives/index.d.ts +9 -1
  38. package/dist/react/index.cjs +1 -0
  39. package/dist/react/index.d.ts +49 -16
  40. package/dist/react/index.mjs +451 -374
  41. package/dist/react/utils/dom.d.ts +7 -0
  42. package/dist/react/utils/index.d.ts +1 -1
  43. package/dist/react-native/components/CallGameCatalogue.d.ts +16 -0
  44. package/dist/react-native/components/CallPayoutTable.d.ts +6 -0
  45. package/dist/react-native/components/CallTicketBuilder.d.ts +33 -0
  46. package/dist/react-native/components/CorrelationChoicesSkeleton.d.ts +3 -0
  47. package/dist/react-native/components/CorrelationPricingDebug.d.ts +2 -0
  48. package/dist/react-native/components/CorrelationPropPlaceholder.d.ts +7 -0
  49. package/dist/react-native/components/DenseGameCatalogue.d.ts +2 -0
  50. package/dist/react-native/components/DenseUi.d.ts +59 -0
  51. package/dist/react-native/components/EntrySubmission.d.ts +1 -1
  52. package/dist/react-native/components/EventSwipeModal.d.ts +17 -0
  53. package/dist/react-native/components/GameModeCard.d.ts +41 -6
  54. package/dist/react-native/components/GamePage.d.ts +4 -1
  55. package/dist/react-native/components/GameSelector.d.ts +9 -1
  56. package/dist/react-native/components/GameSetupPage.d.ts +5 -14
  57. package/dist/react-native/components/GameShelfCatalogue.d.ts +7 -0
  58. package/dist/react-native/components/HowToPlayButton.d.ts +3 -1
  59. package/dist/react-native/components/LoadingIndicators.d.ts +1 -1
  60. package/dist/react-native/components/MatchRail.d.ts +36 -0
  61. package/dist/react-native/components/MultiLegTable.d.ts +3 -1
  62. package/dist/react-native/components/PageBackButton.d.ts +7 -0
  63. package/dist/react-native/components/PickerBrand.d.ts +6 -0
  64. package/dist/react-native/components/PlaceEntryProvider.d.ts +57 -5
  65. package/dist/react-native/components/PlaybookChooser.d.ts +7 -0
  66. package/dist/react-native/components/PropositionFilters.d.ts +3 -1
  67. package/dist/react-native/components/QuickPickButton.d.ts +3 -1
  68. package/dist/react-native/components/ScrollShelf.d.ts +23 -0
  69. package/dist/react-native/components/SelectionReview.d.ts +1 -1
  70. package/dist/react-native/components/SelectionVariantList.d.ts +20 -0
  71. package/dist/react-native/components/SelectionsPage.d.ts +1 -1
  72. package/dist/react-native/components/SportRail.d.ts +27 -0
  73. package/dist/react-native/components/SportSelector.d.ts +29 -2
  74. package/dist/react-native/components/_primitives/index.d.ts +12 -2
  75. package/dist/react-native/index.cjs +1 -0
  76. package/dist/react-native/index.d.ts +49 -16
  77. package/dist/react-native/index.mjs +438 -382
  78. package/dist/react-native/utils/index.d.ts +1 -1
  79. package/dist/shared/api-client.d.ts +4 -3
  80. package/dist/shared/call-presentation.d.ts +20 -0
  81. package/dist/shared/composite.d.ts +7 -0
  82. package/dist/shared/correlation-steering.d.ts +49 -0
  83. package/dist/shared/date-filters.d.ts +5 -4
  84. package/dist/shared/dense-ui.d.ts +54 -0
  85. package/dist/shared/favourite-sport.d.ts +2 -0
  86. package/dist/shared/game-artwork.d.ts +61 -0
  87. package/dist/shared/game-flow.d.ts +18 -1
  88. package/dist/shared/game-icons.d.ts +6 -3
  89. package/dist/shared/game-library.d.ts +58 -0
  90. package/dist/shared/game-set-bet.d.ts +0 -1
  91. package/dist/shared/game-shelf-artwork.d.ts +3 -0
  92. package/dist/shared/game-shelf-presentation.d.ts +43 -0
  93. package/dist/shared/game-variants.d.ts +5 -0
  94. package/dist/shared/hooks.d.ts +9 -8
  95. package/dist/shared/how-to-play-html.d.ts +1 -1
  96. package/dist/shared/how-to-play-logo.d.ts +1 -1
  97. package/dist/shared/menu-placement.d.ts +26 -0
  98. package/dist/shared/mirror.d.ts +88 -5
  99. package/dist/shared/pick-your-dividend.d.ts +2 -1
  100. package/dist/shared/picker-brand.d.ts +22 -0
  101. package/dist/shared/playbook.d.ts +29 -0
  102. package/dist/shared/selection-actions.d.ts +61 -0
  103. package/dist/shared/selection-caps.d.ts +68 -0
  104. package/dist/shared/selection-variants.d.ts +52 -0
  105. package/dist/shared/six-again.d.ts +105 -0
  106. package/dist/shared/swipe-deck.d.ts +1 -1
  107. package/dist/shared/themes.d.ts +22 -0
  108. package/dist/shared/types.d.ts +83 -3
  109. package/dist/shared/ui-system.d.ts +69 -0
  110. package/dist/shared/ui-variant.d.ts +16 -0
  111. package/dist/shared/use-call-payouts.d.ts +8 -0
  112. package/dist/shared/utils.d.ts +18 -6
  113. package/package.json +7 -8
  114. package/dist/index.js +0 -1
  115. package/dist/react/components/GameSetBetPage.d.ts +0 -21
  116. package/dist/react/components/LadderPage.d.ts +0 -21
  117. package/dist/react/components/MirrorPage.d.ts +0 -21
  118. package/dist/react/components/PerfectPickPage.d.ts +0 -22
  119. package/dist/react/components/PickYourDividendPage.d.ts +0 -21
  120. package/dist/react/components/RuleSetupPage.d.ts +0 -27
  121. package/dist/react/components/SafetyNetPage.d.ts +0 -16
  122. package/dist/react/index.js +0 -1
  123. package/dist/react/utils/design.d.ts +0 -55
  124. package/dist/react-native/components/GameSetBetPage.d.ts +0 -19
  125. package/dist/react-native/components/LadderPage.d.ts +0 -19
  126. package/dist/react-native/components/MirrorPage.d.ts +0 -19
  127. package/dist/react-native/components/PerfectPickPage.d.ts +0 -20
  128. package/dist/react-native/components/PickYourDividendPage.d.ts +0 -19
  129. package/dist/react-native/components/RuleSetupPage.d.ts +0 -23
  130. package/dist/react-native/components/SafetyNetPage.d.ts +0 -14
  131. package/dist/react-native/index.js +0 -1
@@ -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';
@@ -21,6 +23,12 @@ export { EventFilterBanner } from './components/EventFilterBanner';
21
23
  export type { EventFilterBannerProps } from './components/EventFilterBanner';
22
24
  export { SelectionsPage, SelectionsPageTitle, SelectionsPageActions } from './components/SelectionsPage';
23
25
  export type { SelectionsPageProps, SelectionsView } from './components/SelectionsPage';
26
+ export { SelectionVariantList } from './components/SelectionVariantList';
27
+ export type { SelectionVariantListProps } from './components/SelectionVariantList';
28
+ export { EventSwipeModal } from './components/EventSwipeModal';
29
+ export type { EventSwipeModalProps } from './components/EventSwipeModal';
30
+ export { SELECTION_VARIANTS, groupSelectionDays } from '../shared/selection-variants';
31
+ export type { SelectionVariant, SelectionDay, SelectionEvent } from '../shared/selection-variants';
24
32
  export { SwipeDeck, SwipeCard, SwipeCardFace } from './components/SwipeDeck';
25
33
  export type { SwipeDeckProps, SwipeCardProps, SwipeCardFaceProps, SwipeCardApi, FlyDirection, } from './components/SwipeDeck';
26
34
  export { useSwipeDeck, VISIBLE_DEPTH } from '../shared/swipe-deck';
@@ -31,51 +39,44 @@ export { SuccessPage, SuccessPageTitle, SuccessPageActions } from './components/
31
39
  export type { SuccessPageProps } from './components/SuccessPage';
32
40
  export { EntriesPage, EntriesPageTitle } from './components/EntriesPage';
33
41
  export type { EntriesPageProps } from './components/EntriesPage';
42
+ export { SportRail } from './components/SportRail';
43
+ export type { SportRailProps } from './components/SportRail';
44
+ export { ScrollShelf } from './components/ScrollShelf';
45
+ export type { ScrollShelfProps } from './components/ScrollShelf';
34
46
  export { SportPickerPage, SportPickerPageTitle, SportPickerPageActions } from './components/SportPickerPage';
35
47
  export type { SportPickerPageProps } from './components/SportPickerPage';
36
48
  export { EventPickerPage } from './components/EventPickerPage';
37
49
  export type { EventPickerPageProps } from './components/EventPickerPage';
38
50
  export { CategoryPickerPage, CategoryPickerPageTitle, CategoryPickerPageActions } from './components/CategoryPickerPage';
39
51
  export type { CategoryPickerPageProps } from './components/CategoryPickerPage';
40
- export { RuleSetupPage, RuleSetupPageTitle, RuleSetupPageActions } from './components/RuleSetupPage';
41
- export type { RuleSetupPageProps } from './components/RuleSetupPage';
42
52
  export { getRuleSetupConfig, gameNeedsRuleSetup, roundDividendAmount, } from '../shared/rule-setup';
43
53
  export type { RuleSetupConfig, RuleSetupMode, RuleSetupOption, } from '../shared/rule-setup';
44
- export { GameSetBetPage, GameSetBetPageTitle } from './components/GameSetBetPage';
45
- export type { GameSetBetPageProps } from './components/GameSetBetPage';
46
54
  export { getGameSetBetConfig, gameSetPrize, isGameSetBetGame, } from '../shared/game-set-bet';
47
55
  export type { GameSetBetConfig, GameSetBetPrize, } from '../shared/game-set-bet';
48
- export { PickYourDividendPage, PickYourDividendPageTitle } from './components/PickYourDividendPage';
49
- export type { PickYourDividendPageProps } from './components/PickYourDividendPage';
50
56
  export { getPickYourDividendConfig, isPickYourDividendGame, pydLadder, pydRung, PYD_RETAIL_DIVIDENDS, PYD_LEG_RUNGS, } from '../shared/pick-your-dividend';
51
57
  export type { PickYourDividendConfig, PydDividendGame, PydRung, } from '../shared/pick-your-dividend';
52
- export { LadderPage, LadderPageTitle } from './components/LadderPage';
53
- export type { LadderPageProps } from './components/LadderPage';
54
58
  export { getLadderConfig, isLadderGame, ladderTiers, ladderCollectAt, fullStackPrize, LADDER_FAMILY, LADDER_STAKES, LADDER_REFERENCE_BET, } from '../shared/ladder';
55
59
  export type { LadderConfig, LadderDef, LadderTier, } from '../shared/ladder';
56
- export { MirrorPage, MirrorPageTitle } from './components/MirrorPage';
57
- export type { MirrorPageProps } from './components/MirrorPage';
58
60
  export { getMirrorConfig, mirrorPrize, isMirrorGame, MIRROR_STANDARD_MARGIN, } from '../shared/mirror';
59
61
  export type { MirrorConfig, MirrorPrize, } from '../shared/mirror';
60
- export { SafetyNetPage, SafetyNetPageTitle } from './components/SafetyNetPage';
61
- export type { SafetyNetPageProps } from './components/SafetyNetPage';
62
62
  export { getSafetyNetConfig, getSafetyNetPricing, isSafetyNetGame, safetyNetTicket, safetyNetCollect, EXTRA_SHOT_MIN_LEGS, DOUBLE_SHOT_MIN_LEGS, } from '../shared/safety-net';
63
63
  export type { SafetyNetConfig, SafetyNetMode, SafetyNetModeId, SafetyNetPricing, SafetyNetTicket, } from '../shared/safety-net';
64
+ export { getSixAgainConfig, isSixAgainGame, sixAgainTicket, sixAgainRuleId, sixAgainStakeMultiples, NO_BOOSTS, SIX_AGAIN_MARGIN, SIX_AGAIN_LEGS, CHALLENGE_MULTIPLE, CHALLENGE_MISSES, GOLDEN_POINT_FACTOR, } from '../shared/six-again';
65
+ export type { SixAgainConfig, SixAgainTicket, SixAgainBoost, SixAgainBoostId, SixAgainBoosts, } from '../shared/six-again';
64
66
  export { getGameFlow, getConfirmBoostCopy, isFixedCardExactGame, isOpenExactMultiGame } from '../shared/game-flow';
65
67
  export type { GameFlow, ConfirmBoostCopy } from '../shared/game-flow';
66
68
  export { GAME_TIER_LEVEL, GAME_TIER_TABS, resolveGameTierLevel, filterGamesByTierLevel, availableGameTierTabs, defaultGameTierId, } from '../shared/game-tiers';
67
69
  export type { GameTierId } from '../shared/game-tiers';
70
+ export type { GameCategory } from '../shared/types';
68
71
  export { filterPropositionsToEvent, formatSameGameMultiEventLabel, getPropositionEventId, groupSameGameMultiEvents, isSameGameMultiGame, isSelectableSameGameMultiProposition, propositionsBelongToEvent, } from '../shared/same-game-multi';
69
72
  export type { SameGameMultiEvent } from '../shared/same-game-multi';
70
- export { GameSetupPage } from './components/GameSetupPage';
73
+ export { GameSetupPage, GameSetupPageTitle } from './components/GameSetupPage';
71
74
  export type { GameSetupPageProps } from './components/GameSetupPage';
72
- export { PerfectPickPage, PerfectPickPageTitle } from './components/PerfectPickPage';
73
- export type { PerfectPickPageProps } from './components/PerfectPickPage';
74
75
  export { BrandLockup } from './components/BrandLockup';
75
76
  export type { BrandLockupProps } from './components/BrandLockup';
76
77
  export { GameLogo } from './components/GameLogo';
77
78
  export type { GameLogoProps } from './components/GameLogo';
78
- export { YesNoCategoryLabel, CategoryIcon, ChevronRightIcon, LockIcon } from './components/PickerBrand';
79
+ export { YesNoCategoryLabel, CategoryIcon, ChevronRightIcon, LockIcon, StarIcon } from './components/PickerBrand';
79
80
  export type { Game, SportSummary, Proposition, GameEntry, RuleExpressionObject, PlaceEntryFlowProps, GameSelectorProps, EntrySubmissionProps, SelectionReviewProps, GameEntriesProps, ResolvedEntryData, ShareData, PendingBet, ScreenSize, EvaluateRuleRequest, EvaluateRuleResponse, CalculatePayoutRequest, CalculatePayoutResponse, EntryPreviewRequest, EntryPreviewResponse, } from './types';
80
81
  export { BladeApiClient } from './utils/api-client';
81
82
  export type { BladeApiClientConfig } from './utils/api-client';
@@ -84,3 +85,35 @@ export type { SportDisplayNameOverrides, CategoryDisplayNameOverrides, ComingSoo
84
85
  export { getTheme, getThemeSet, applyTheme, useBladeTheme, useResolvedTheme, resolveTheme, isThemeSet, themes, themeSets, defaultTheme, greenTheme, greenLightTheme, darkTheme, goldTheme, goldLightTheme, defaultThemeSet, greenThemeSet, goldThemeSet, themeHeading, themeLabel, themeValue, themeAccent, themeTextAlt, themeTextAltMuted, themeBodyFont, themeHeadingFont, } from './utils/themes';
85
86
  export type { BladeTheme, BladeThemeSet, ColorScheme } from './utils/themes';
86
87
  export { useGames, usePropositions, useSports, useGameEntries, useCreateGameEntry, useGameMaxPayouts, usePlaceEntryFlow, useEvaluateRule, useCalculatePayout, useEntryPreview, } from './hooks';
88
+ export { UI_VARIANTS } from '../shared/ui-variant';
89
+ export type { UiVariant } from '../shared/ui-variant';
90
+ export { isDenseUiVariant, uiVariantTheme, parseUiVariant, UI_VARIANT_LABELS } from '../shared/ui-variant';
91
+ export type { DenseUiVariant } from '../shared/ui-variant';
92
+ export { CorrelationChoicesSkeleton } from './components/CorrelationChoicesSkeleton';
93
+ export { CorrelationPricingDebug } from './components/CorrelationPricingDebug';
94
+ export { CorrelationPropPlaceholder } from './components/CorrelationPropPlaceholder';
95
+ export { useCorrelationSteering, usesCorrelationPricing, correlationDebugText } from '../shared/correlation-steering';
96
+ export type { CorrelationQuote, CorrelationRequest, CorrelationSuggestions } from '../shared/correlation-steering';
97
+ export { BASE_GAME_IDS } from '../shared/game-library';
98
+ export type GameLibrary = import('../shared/game-library').GameLibrary<import('./components/PlaceEntryProvider').PlaceEntryContextValue>;
99
+ export type GameDefinition = import('../shared/game-library').GameDefinition<import('./components/PlaceEntryProvider').PlaceEntryContextValue>;
100
+ export { IconSvg } from './components/IconSvg';
101
+ export type { IconSvgProps } from './components/IconSvg';
102
+ export { GAME_VARIANTS, GAME_VARIANT_LABELS, parseGameVariant } from '../shared/game-variants';
103
+ export type { GameVariant } from '../shared/game-variants';
104
+ export { PlaceEntryContext } from './components/PlaceEntryProvider';
105
+ export { YesNoLabelsProvider } from './components/_primitives';
106
+ export { UiVariantContext, useUiVariant } from '../shared/ui-variant';
107
+ export type { GameSetupProps, GameSetupFrameProps, GameSetupNav, GameSetupTicket } from '../shared/game-library';
108
+ export { GameModeCard, GameModeKitStyles, GamePageHeader, GameSportRow, BrandChipTile, BrandTile, useBrandTileColors, KitCard, PlayModeCards, LegPips, OptionStrip, OPTION_STRIP_ITEM, hexA } from './components/GameModeCard';
109
+ export { PageBackLink, PageHeader, PageTitleBackRow } from './components/PageBackButton';
110
+ export { CallTicketBuilder } from './components/CallTicketBuilder';
111
+ export { accentOnSurface, themeSelectionCard } from './utils/themes';
112
+ export { roundQuotedPayout } from '../shared/game-flow';
113
+ export { MIRROR_TICK, MIRROR_CROSS, mirrorPrizeRows, mirrorSuitePrize, mirrorVariantGames, collapseMirrorSet } from '../shared/mirror';
114
+ export { GAME_ICON_SVG, GAME_ICON_SCHEME, resolveGameIconId, resolveGameIconUrl, resolveGameIconMarkup, isGameIconUrl } from '../shared/game-icons';
115
+ export type { GameIconId } from '../shared/game-icons';
116
+ export { gameShelfArtwork, categoryShelfArtwork } from '../shared/game-shelf-artwork';
117
+ export { findCategoryGamePreset, mergeGameArtwork, BASE_GAME_ARTWORK, GameArtworkContext, useGameArtwork } from '../shared/game-artwork';
118
+ export type { CategoryGamePreset, GameSuiteCategory, GameArtwork, ShowcaseCard, ShowcaseCatalogue, ShowcaseCategory } from '../shared/game-artwork';
119
+ export { resolveShelfArtwork, previewCopy, shelfGameName } from '../shared/game-shelf-presentation';