@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.
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +277 -277
- package/dist/react/components/ScrollShelf.d.ts +5 -1
- package/dist/react/components/SportRail.d.ts +13 -3
- package/dist/react/index.js +1 -1
- package/dist/react/index.mjs +277 -277
- package/dist/react-native/components/ScrollShelf.d.ts +8 -1
- package/dist/react-native/components/SportRail.d.ts +8 -4
- package/dist/react-native/index.js +1 -1
- package/dist/react-native/index.mjs +369 -369
- package/dist/shared/picker-brand.d.ts +20 -0
- package/dist/shared/selection-actions.d.ts +2 -2
- package/dist/shared/selection-caps.d.ts +4 -0
- package/dist/shared/types.d.ts +6 -1
- package/package.json +1 -1
|
@@ -6,6 +6,10 @@ export interface ScrollShelfProps {
|
|
|
6
6
|
itemCount?: number;
|
|
7
7
|
/** Extra padding inside the scroller — cards need room for their shadow. */
|
|
8
8
|
contentClassName?: string;
|
|
9
|
+
/** Colour the edge fades melt into. Defaults to the page background. */
|
|
10
|
+
fadeColor?: string;
|
|
11
|
+
/** Drop the arrow discs — they overhang, which a pill-shaped shelf clips. */
|
|
12
|
+
hideArrows?: boolean;
|
|
9
13
|
className?: string;
|
|
10
14
|
/**
|
|
11
15
|
* `dragged()` is true right after a mouse drag-scroll, so item click handlers
|
|
@@ -18,4 +22,4 @@ export interface ScrollShelfProps {
|
|
|
18
22
|
* edge fades that say "more this way", and mouse-only arrow discs. Shared so
|
|
19
23
|
* the filter chips and the sport rail scroll identically.
|
|
20
24
|
*/
|
|
21
|
-
export declare function ScrollShelf({ theme, itemCount, contentClassName, className, children, }: ScrollShelfProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export declare function ScrollShelf({ theme, itemCount, contentClassName, fadeColor, hideArrows, className, children, }: ScrollShelfProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,13 +4,23 @@ export interface SportRailProps {
|
|
|
4
4
|
label?: string | null;
|
|
5
5
|
/** Line under the heading. Pass `null` to drop it; omit for the default hint. */
|
|
6
6
|
sublabel?: string | null;
|
|
7
|
-
/**
|
|
8
|
-
|
|
7
|
+
/** Controls parked on the heading's right — the track keeps the full width. */
|
|
8
|
+
actions?: React.ReactNode;
|
|
9
9
|
className?: string;
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
|
+
* The sport step. It sits on a game's setup page, and — for the games that have
|
|
13
|
+
* no setup page — above the proposition list, so there is always one place to
|
|
14
|
+
* change it. Never on the game grid.
|
|
15
|
+
*
|
|
16
|
+
* One oval track: every sport rides it as its short code, and the selected one
|
|
17
|
+
* opens out to its full name on a filled thumb. Codes keep the track compact,
|
|
18
|
+
* the selection says what it is in plain English.
|
|
19
|
+
*
|
|
20
|
+
* A bet is one sport: once the slip has picks the track locks, and the only way
|
|
21
|
+
* across is to clear the bet — silently wiping the card on a mis-tap was worse.
|
|
12
22
|
*
|
|
13
23
|
* Renders nothing at all when the sport is not a choice, which is every
|
|
14
24
|
* single-sport game.
|
|
15
25
|
*/
|
|
16
|
-
export declare function SportRail({ label, sublabel,
|
|
26
|
+
export declare function SportRail({ label, sublabel, actions, className }: SportRailProps): import("react/jsx-runtime").JSX.Element | null;
|