@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.
@@ -5,6 +5,13 @@ export interface ScrollShelfProps {
5
5
  theme: BladeTheme;
6
6
  /** Padding/gap for the row's content — cards need more room than chips. */
7
7
  contentContainerStyle?: StyleProp<ViewStyle>;
8
+ /** Drop the arrow discs — they overhang, which a pill-shaped shelf clips. */
9
+ hideArrows?: boolean;
10
+ /** Row width vs. its content, so a caller can shorten labels that don't fit. */
11
+ onMetrics?: (metrics: {
12
+ viewport: number;
13
+ content: number;
14
+ }) => void;
8
15
  style?: StyleProp<ViewStyle>;
9
16
  children: React.ReactNode;
10
17
  }
@@ -13,4 +20,4 @@ export interface ScrollShelfProps {
13
20
  * more in that direction. Shared so the filter chips and the sport rail scroll
14
21
  * identically.
15
22
  */
16
- export declare function ScrollShelf({ theme, contentContainerStyle, style, children, }: ScrollShelfProps): import("react/jsx-runtime").JSX.Element;
23
+ export declare function ScrollShelf({ theme, contentContainerStyle, hideArrows, onMetrics, style, children, }: ScrollShelfProps): import("react/jsx-runtime").JSX.Element;
@@ -5,8 +5,8 @@ export interface SportRailProps {
5
5
  label?: string | null;
6
6
  /** Line under the heading. Pass `null` to drop it; omit for the default hint. */
7
7
  sublabel?: string | null;
8
- /** Custom renderer for the sport tile. */
9
- renderSportLogo?: (sportKey: string) => React.ReactNode;
8
+ /** Controls parked on the heading's right — the track keeps the full width. */
9
+ actions?: React.ReactNode;
10
10
  style?: StyleProp<ViewStyle>;
11
11
  }
12
12
  /**
@@ -14,10 +14,14 @@ export interface SportRailProps {
14
14
  * no setup page — above the proposition list, so there is always one place to
15
15
  * change it. Never on the game grid.
16
16
  *
17
- * A bet is one sport: once the slip has picks the rail locks, and the only way
17
+ * One oval track: every sport rides it as its short code, and the selected one
18
+ * opens out to its full name on a filled thumb. Codes keep the track compact,
19
+ * the selection says what it is in plain English.
20
+ *
21
+ * A bet is one sport: once the slip has picks the track locks, and the only way
18
22
  * across is to clear the bet — silently wiping the card on a mis-tap was worse.
19
23
  *
20
24
  * Renders nothing at all when the sport is not a choice, which is every
21
25
  * single-sport game.
22
26
  */
23
- export declare function SportRail({ label, sublabel, renderSportLogo, style }: SportRailProps): import("react/jsx-runtime").JSX.Element | null;
27
+ export declare function SportRail({ label, sublabel, actions, style }: SportRailProps): import("react/jsx-runtime").JSX.Element | null;