@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
|
@@ -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
|
-
/**
|
|
9
|
-
|
|
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
|
-
*
|
|
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,
|
|
27
|
+
export declare function SportRail({ label, sublabel, actions, style }: SportRailProps): import("react/jsx-runtime").JSX.Element | null;
|