@simple-parlay/components 1.30.0 → 1.30.2

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.
@@ -1,6 +1,6 @@
1
1
  import { BladeTheme } from '../../shared/themes';
2
2
  export type { BladeTheme, BladeThemeSet, ColorScheme } from '../../shared/themes';
3
- export { defaultTheme, greenTheme, greenLightTheme, darkTheme, goldTheme, goldLightTheme, defaultThemeSet, greenThemeSet, goldThemeSet, getTheme, getThemeSet, themes, themeSets, themeHeading, themeLabel, themeValue, themeProductYes, themeProductNo, PRODUCT_YES, PRODUCT_NO, themeAccent, themeTextAlt, themeTextAltMuted, themeSelectionCard, themeMatchupHeader, themeSelectionProp, themePickerSurfaceColors, resolveTheme, isThemeSet, useResolvedTheme, } from '../../shared/themes';
3
+ export { defaultTheme, greenTheme, greenLightTheme, darkTheme, goldTheme, goldLightTheme, defaultThemeSet, greenThemeSet, goldThemeSet, getTheme, getThemeSet, themes, themeSets, themeHeading, themeLabel, themeValue, themeProductYes, themeProductNo, PRODUCT_YES, PRODUCT_NO, themeAccent, accentOnSurface, themeTextAlt, themeTextAltMuted, themeSelectionCard, themeMatchupHeader, themeSelectionProp, themePickerSurfaceColors, resolveTheme, isThemeSet, useResolvedTheme, } from '../../shared/themes';
4
4
  export declare function themeBodyFont(t: BladeTheme): string;
5
5
  export declare function themeHeadingFont(t: BladeTheme): string;
6
6
  /**
@@ -1,4 +1,5 @@
1
1
  import { default as React } from 'react';
2
+ import { ViewStyle } from 'react-native';
2
3
  /** Shared card kit for the unique-game pages — same anatomy as RuleSetupPage's ModeCard/EmblemTile. */
3
4
  export declare function hexA(color: string, alpha: number): string;
4
5
  /** Branded rounded tile carrying a game icon — the EmblemTile look, icon-driven. */
@@ -32,19 +33,7 @@ export declare function OptionStrip({ ariaLabel, children, }: {
32
33
  * the grid. `wideBasis` is the grid's per-column basis — the twin of the web
33
34
  * `sm:grid-cols-N` (5-up is `'17%'`, 4-up `'21%'`).
34
35
  */
35
- export declare function optionStripItemStyle(wide: boolean, wideBasis?: string): {
36
- flexGrow: number;
37
- flexBasis: string;
38
- minWidth: number;
39
- width?: undefined;
40
- flexShrink?: undefined;
41
- } | {
42
- width: number;
43
- flexGrow: number;
44
- flexShrink: number;
45
- flexBasis?: undefined;
46
- minWidth?: undefined;
47
- };
36
+ export declare function optionStripItemStyle(wide: boolean, wideBasis?: ViewStyle['flexBasis']): ViewStyle;
48
37
  /** A row of the shared pip language: teal filled pips = must-hit legs, citron ball = the prize. */
49
38
  export declare function LegPips({ legs, prizeBall }: {
50
39
  legs: number;
@@ -1,7 +1,7 @@
1
1
  export interface IconSvgProps {
2
2
  iconUrl: string;
3
- width: number | string;
4
- height: number | string;
3
+ width: number | `${number}%`;
4
+ height: number | `${number}%`;
5
5
  iconColor?: string;
6
6
  accentColor?: string;
7
7
  accessibilityLabel?: string;
@@ -5,11 +5,23 @@ import { BladeTheme } from '../../../shared/themes';
5
5
  export declare const TOUCH_TARGET = 44;
6
6
  /**
7
7
  * Scroll a horizontal `ScrollView` to `x`. RN-web's patched `scrollTo` never
8
- * moves the node, so web sets `scrollLeft` directly; native stays animated.
8
+ * moves the node. We need to handle platforms separately. RN 0.86 broke previous
9
+ * guard.
9
10
  */
10
11
  export declare function scrollRowTo(ref: {
11
12
  current: unknown;
12
13
  }, x: number, animated?: boolean): void;
14
+ /**
15
+ * Hover handlers for the react-native-web twin — RN's own prop types omit them
16
+ * and they are inert on native. Spread it (`{...hoverHandlers(a, b)}`) instead
17
+ * of setting `onMouseEnter`/`onMouseLeave` inline: a JSX spread skips the
18
+ * excess-property check, so there is no `@ts-expect-error` to go stale the next
19
+ * time RN's types move.
20
+ */
21
+ export declare function hoverHandlers(onEnter: () => void, onLeave: () => void): {
22
+ onMouseEnter: () => void;
23
+ onMouseLeave: () => void;
24
+ };
13
25
  export declare function useBreakpoint(minWidth?: number): boolean;
14
26
  export type SurfaceLevel = 'flat' | 'raised' | 'elevated';
15
27
  export interface SurfaceProps {