@simple-parlay/components 2.3.3-pre.1 → 2.3.3-pre.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,11 @@
1
1
  import { Game, GamePermittedRule, Proposition, QuickPickResult, GameCategory } from './types';
2
2
  export declare const DEFAULT_STAKE = 20;
3
3
  export declare function gridCellWidth(width: number, cols: number, gap: number): number;
4
+ /**
5
+ * The Game Shelf's columns for a grid this wide (web: the .gs-grid container queries). Two on a phone; from 520px as
6
+ * many 160px covers as fit, from 700px as many 180px ones, so a half-width window doesn't get two giant covers a row.
7
+ */
8
+ export declare function gameShelfColumns(width: number, gap: number): number;
4
9
  export declare function stripColumns(count: number, containerWidth: number): number;
5
10
  export declare function resolvePrice(price: number | string | {
6
11
  amount: number | string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simple-parlay/components",
3
- "version": "2.3.3-pre.1",
3
+ "version": "2.3.3-pre.2",
4
4
  "description": "UI components, hooks, and utilities for React and React Native",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",