@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.
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +389 -389
- package/dist/react/index.js +1 -1
- package/dist/react/index.mjs +389 -389
- package/dist/react/utils/themes.d.ts +1 -1
- package/dist/react-native/components/GameModeCard.d.ts +2 -13
- package/dist/react-native/components/IconSvg.d.ts +2 -2
- package/dist/react-native/components/_primitives/index.d.ts +13 -1
- package/dist/react-native/index.js +1 -1
- package/dist/react-native/index.mjs +296 -303
- package/dist/react-native/utils/themes.d.ts +1 -1
- package/dist/shared/themes.d.ts +1 -0
- package/package.json +1 -1
|
@@ -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?:
|
|
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;
|
|
@@ -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
|
|
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 {
|