@ankhorage/zora-tabletop 0.1.57 → 0.1.59
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/CHANGELOG.md +12 -0
- package/README.md +56 -52
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @ankhorage/zora-tabletop
|
|
2
2
|
|
|
3
|
+
## 0.1.59
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- a448c29: Update dependencies: `@ankhorage/devtools`.
|
|
8
|
+
|
|
9
|
+
## 0.1.58
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 87c49ca: Update Renovate-managed workflows.
|
|
14
|
+
|
|
3
15
|
## 0.1.57
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
# @ankhorage/zora-tabletop
|
|
5
5
|
|
|
6
|
-
         
|
|
7
7
|
|
|
8
8
|
Reusable tabletop, playing-card, seat, token, and card-game presentation components for React Native and React Native Web.
|
|
9
9
|
|
|
@@ -136,13 +136,13 @@ Related types: `CardBackProps`
|
|
|
136
136
|
<details>
|
|
137
137
|
<summary>Props</summary>
|
|
138
138
|
|
|
139
|
-
| Prop
|
|
140
|
-
|
|
|
141
|
-
| accessibilityLabel | `string \| undefined`
|
|
142
|
-
| colorScheme
|
|
143
|
-
| muted
|
|
144
|
-
| size
|
|
145
|
-
| testID
|
|
139
|
+
| Prop | Type | Required | Default | Description |
|
|
140
|
+
| --- | --- | --- | --- | --- |
|
|
141
|
+
| accessibilityLabel | `string \| undefined` | no | — | |
|
|
142
|
+
| colorScheme | `TabletopColorOverrides \| undefined` | no | — | |
|
|
143
|
+
| muted | `boolean \| undefined` | no | `false` | |
|
|
144
|
+
| size | `TabletopCardSize \| undefined` | no | `'medium'` | |
|
|
145
|
+
| testID | `string \| undefined` | no | — | |
|
|
146
146
|
|
|
147
147
|
</details>
|
|
148
148
|
|
|
@@ -179,15 +179,15 @@ Related types: `CardHandProps`
|
|
|
179
179
|
<details>
|
|
180
180
|
<summary>Props</summary>
|
|
181
181
|
|
|
182
|
-
| Prop
|
|
183
|
-
|
|
|
184
|
-
| accessibilityLabel | `string \| undefined`
|
|
185
|
-
| cards
|
|
186
|
-
| colorScheme
|
|
187
|
-
| faceDownCards
|
|
188
|
-
| muted
|
|
189
|
-
| size
|
|
190
|
-
| testID
|
|
182
|
+
| Prop | Type | Required | Default | Description |
|
|
183
|
+
| --- | --- | --- | --- | --- |
|
|
184
|
+
| accessibilityLabel | `string \| undefined` | no | — | |
|
|
185
|
+
| cards | `readonly PlayingCardValue[] \| undefined` | no | `[]` | |
|
|
186
|
+
| colorScheme | `TabletopColorOverrides \| undefined` | no | — | |
|
|
187
|
+
| faceDownCards | `number \| undefined` | no | `0` | |
|
|
188
|
+
| muted | `boolean \| undefined` | no | `false` | |
|
|
189
|
+
| size | `TabletopCardSize \| undefined` | no | `'medium'` | |
|
|
190
|
+
| testID | `string \| undefined` | no | — | |
|
|
191
191
|
|
|
192
192
|
</details>
|
|
193
193
|
|
|
@@ -225,15 +225,15 @@ Related types: `PlayingCardProps`
|
|
|
225
225
|
<details>
|
|
226
226
|
<summary>Props</summary>
|
|
227
227
|
|
|
228
|
-
| Prop
|
|
229
|
-
|
|
|
230
|
-
| accessibilityLabel | `string \| undefined`
|
|
231
|
-
| card
|
|
232
|
-
| colorScheme
|
|
233
|
-
| muted
|
|
234
|
-
| selected
|
|
235
|
-
| size
|
|
236
|
-
| testID
|
|
228
|
+
| Prop | Type | Required | Default | Description |
|
|
229
|
+
| --- | --- | --- | --- | --- |
|
|
230
|
+
| accessibilityLabel | `string \| undefined` | no | — | |
|
|
231
|
+
| card | `PlayingCardValue` | yes | — | |
|
|
232
|
+
| colorScheme | `TabletopColorOverrides \| undefined` | no | — | |
|
|
233
|
+
| muted | `boolean \| undefined` | no | `false` | |
|
|
234
|
+
| selected | `boolean \| undefined` | no | `false` | |
|
|
235
|
+
| size | `TabletopCardSize \| undefined` | no | `'medium'` | |
|
|
236
|
+
| testID | `string \| undefined` | no | — | |
|
|
237
237
|
|
|
238
238
|
</details>
|
|
239
239
|
|
|
@@ -267,7 +267,11 @@ rules into the component.
|
|
|
267
267
|
#### Basic table
|
|
268
268
|
|
|
269
269
|
```tsx
|
|
270
|
-
<TabletopTable
|
|
270
|
+
<TabletopTable
|
|
271
|
+
seats={seats}
|
|
272
|
+
centerCards={[{ rank: 'A', suit: 'spades' }]}
|
|
273
|
+
centerLabel="Round 1"
|
|
274
|
+
/>
|
|
271
275
|
```
|
|
272
276
|
|
|
273
277
|
Related types: `TabletopTableProps`
|
|
@@ -275,19 +279,19 @@ Related types: `TabletopTableProps`
|
|
|
275
279
|
<details>
|
|
276
280
|
<summary>Props</summary>
|
|
277
281
|
|
|
278
|
-
| Prop
|
|
279
|
-
|
|
|
280
|
-
| accessibilityLabel | `string \| undefined`
|
|
281
|
-
| cardSize
|
|
282
|
-
| centerCards
|
|
283
|
-
| centerLabel
|
|
284
|
-
| centerSublabel
|
|
285
|
-
| colorScheme
|
|
286
|
-
| disabled
|
|
287
|
-
| seatCount
|
|
288
|
-
| seats
|
|
289
|
-
| shape
|
|
290
|
-
| testID
|
|
282
|
+
| Prop | Type | Required | Default | Description |
|
|
283
|
+
| --- | --- | --- | --- | --- |
|
|
284
|
+
| accessibilityLabel | `string \| undefined` | no | — | |
|
|
285
|
+
| cardSize | `TabletopCardSize \| undefined` | no | `'small'` | |
|
|
286
|
+
| centerCards | `readonly PlayingCardValue[] \| undefined` | no | `[]` | |
|
|
287
|
+
| centerLabel | `React.ReactNode \| undefined` | no | — | |
|
|
288
|
+
| centerSublabel | `React.ReactNode \| undefined` | no | — | |
|
|
289
|
+
| colorScheme | `TabletopColorOverrides \| undefined` | no | — | |
|
|
290
|
+
| disabled | `boolean \| undefined` | no | `false` | |
|
|
291
|
+
| seatCount | `TabletopSeatCount \| undefined` | no | — | |
|
|
292
|
+
| seats | `readonly TabletopSeatState[]` | yes | — | |
|
|
293
|
+
| shape | `TabletopShape \| undefined` | no | `'oval'` | |
|
|
294
|
+
| testID | `string \| undefined` | no | — | |
|
|
291
295
|
|
|
292
296
|
</details>
|
|
293
297
|
|
|
@@ -334,8 +338,8 @@ PokerTrainingTable({
|
|
|
334
338
|
|
|
335
339
|
Manifest-ready poker training pattern that reconstructs a complete table from task data.
|
|
336
340
|
|
|
337
|
-
Bind the raw training task object to `task`; the pattern maps
|
|
338
|
-
|
|
341
|
+
Bind the raw training task object to `task`; the pattern maps the task's 6-max or 9-max table
|
|
342
|
+
state while leaving API execution in the generated application.
|
|
339
343
|
|
|
340
344
|
#### Training task binding
|
|
341
345
|
|
|
@@ -348,16 +352,16 @@ Related types: `PokerTrainingTableProps`
|
|
|
348
352
|
<details>
|
|
349
353
|
<summary>Props</summary>
|
|
350
354
|
|
|
351
|
-
| Prop
|
|
352
|
-
|
|
|
353
|
-
| accessibilityLabel
|
|
354
|
-
| cardSize
|
|
355
|
-
| colorScheme
|
|
356
|
-
| defaultStackBigBlinds | `number \| undefined`
|
|
357
|
-
| disabled
|
|
358
|
-
| shape
|
|
359
|
-
| task
|
|
360
|
-
| testID
|
|
355
|
+
| Prop | Type | Required | Default | Description |
|
|
356
|
+
| --- | --- | --- | --- | --- |
|
|
357
|
+
| accessibilityLabel | `string \| undefined` | no | — | |
|
|
358
|
+
| cardSize | `TabletopCardSize \| undefined` | no | — | |
|
|
359
|
+
| colorScheme | `TabletopColorOverrides \| undefined` | no | — | |
|
|
360
|
+
| defaultStackBigBlinds | `number \| undefined` | no | `100` | |
|
|
361
|
+
| disabled | `boolean \| undefined` | no | — | |
|
|
362
|
+
| shape | `TabletopShape \| undefined` | no | — | |
|
|
363
|
+
| task | `PokerTrainingTaskTableData \| undefined` | no | `{}` | |
|
|
364
|
+
| testID | `string \| undefined` | no | — | |
|
|
361
365
|
|
|
362
366
|
</details>
|
|
363
367
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ankhorage/zora-tabletop",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.59",
|
|
5
5
|
"description": "Tabletop and card-game UI primitives for React Native and React Native Web, built on ZORA.",
|
|
6
6
|
"homepage": "https://github.com/ankhorage/zora-tabletop#readme",
|
|
7
7
|
"bugs": {
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"react-native": ">=0.72.0"
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
|
-
"@ankhorage/devtools": "^
|
|
78
|
+
"@ankhorage/devtools": "^2.0.65",
|
|
79
79
|
"@ankhorage/paradox": "^0.1.26",
|
|
80
80
|
"@ankhorage/zora": "^21.0.19",
|
|
81
81
|
"@react-native-vector-icons/fontawesome": "^13.1.4",
|