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

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.
@@ -6,6 +6,26 @@ export declare const PICKER_BRAND: {
6
6
  readonly tealSoft: "#7B9DA5";
7
7
  };
8
8
  export declare const SPORT_SHORT_CODES: Record<string, string>;
9
+ /**
10
+ * What a league's acronym stands for. The sport track rides on short codes and
11
+ * swaps in the full names once it is wide enough to hold them, so the leagues
12
+ * whose display name *is* the acronym need a longer one to open into.
13
+ */
14
+ export declare const SPORT_LONG_NAMES: Record<string, string>;
15
+ export declare function getSportLongName(sport: string, fallback: string): string;
16
+ /**
17
+ * The pair of labels one sport track segment rides on: the code it shows at
18
+ * rest and the name it opens out to. `shown` is whatever the flow calls the
19
+ * sport — a host override, the API's label, or the derived name.
20
+ *
21
+ * A `shown` that is already an acronym *is* the code (deriving one from the raw
22
+ * key gave AFLW the code "RUG"), and a sport whose name is only its acronym
23
+ * opens out to the long form, if there is one to open into.
24
+ */
25
+ export declare function sportTrackLabels(sport: string, shown: string, sportBaseKey?: string | null): {
26
+ code: string;
27
+ name: string;
28
+ };
9
29
  export declare function getCategoryTagline(category: string): string;
10
30
  export declare function getSportShortCode(sport: string, sportBaseKey?: string | null, override?: string): string;
11
31
  export declare function getSportPickerTagline(count: number, selectedCategory?: string | null): string;
@@ -9,8 +9,8 @@ export declare const SLIP_CLEAR = "Clear bet";
9
9
  export declare const SPORT_LOCKED_HINT = "One sport per bet.";
10
10
  export declare const VIEW_LIST_GLYPH = "\u2630";
11
11
  export declare const VIEW_SWIPE_GLYPH = "\u21C6";
12
- export declare const VIEW_LIST_LABEL = "List view";
13
- export declare const VIEW_SWIPE_LABEL = "Swipe cards";
12
+ export declare const VIEW_LIST_LABEL = "List";
13
+ export declare const VIEW_SWIPE_LABEL = "Swipe";
14
14
  export interface LiveSlipLeg {
15
15
  id: number;
16
16
  /** 1-based position in the multi — the number printed on the tile. */
@@ -4,6 +4,10 @@ export declare const MARKET_FAMILIES: MarketFamily[];
4
4
  export declare const MARKET_CAPS: Record<MarketFamily, number>;
5
5
  /** Slot names, as they read on a fixture header. */
6
6
  export declare const MARKET_FAMILY_LABEL: Record<MarketFamily, string>;
7
+ /** How the market filter names each family — plural, since it picks many. */
8
+ export declare const MARKET_FAMILY_FILTER_LABEL: Record<MarketFamily, string>;
9
+ /** A raw feed market type as a filter chip reads it: `player_first_try` → "Player First Try". */
10
+ export declare function formatMarketTypeLabel(marketType: string): string;
7
11
  export declare function slotTooltip(family: MarketFamily, filled: boolean): string;
8
12
  /** Why a greyed row won't answer. */
9
13
  export declare function capReason(family: MarketFamily): string;
@@ -332,7 +332,12 @@ export interface SportSelectorProps {
332
332
  onPropositionCountChange?: (count: number) => void;
333
333
  allowAnswerToggle?: boolean;
334
334
  headerExtra?: ReactNode;
335
- railSlot?: ReactNode;
335
+ /**
336
+ * Sport rail for the header row. A node draws to the left of the filter and
337
+ * view controls; a function is handed those controls to place itself, which
338
+ * is how the rail keeps the full width for its track.
339
+ */
340
+ railSlot?: ReactNode | ((actions: ReactNode) => ReactNode);
336
341
  /**
337
342
  * Which proposition layout to draw. Omitted (the default) is the packaged
338
343
  * matchup list; the variants are YESNO's fixture-first designs. Falls back to
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simple-parlay/components",
3
- "version": "1.30.6-pre.5",
3
+ "version": "1.30.6-pre.6",
4
4
  "description": "UI components, hooks, and utilities for React and React Native",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",